edge-currency-accountbased 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/android/src/main/assets/edge-currency-accountbased/1944.chunk.js +4 -0
  3. package/android/src/main/assets/edge-currency-accountbased/2153.chunk.js +2 -0
  4. package/android/src/main/assets/edge-currency-accountbased/2821.chunk.js +2 -0
  5. package/android/src/main/assets/edge-currency-accountbased/2896.chunk.js +35 -0
  6. package/android/src/main/assets/edge-currency-accountbased/2945.chunk.js +25 -0
  7. package/android/src/main/assets/edge-currency-accountbased/3491.chunk.js +1 -0
  8. package/android/src/main/assets/edge-currency-accountbased/{620.chunk.js → 3620.chunk.js} +1 -1
  9. package/android/src/main/assets/edge-currency-accountbased/{666.chunk.js → 3666.chunk.js} +1 -1
  10. package/android/src/main/assets/edge-currency-accountbased/3720.chunk.js +1 -0
  11. package/android/src/main/assets/edge-currency-accountbased/{978.chunk.js → 3978.chunk.js} +1 -1
  12. package/android/src/main/assets/edge-currency-accountbased/4251.chunk.js +4 -0
  13. package/android/src/main/assets/edge-currency-accountbased/4431.chunk.js +1 -0
  14. package/android/src/main/assets/edge-currency-accountbased/4618.chunk.js +20 -0
  15. package/android/src/main/assets/edge-currency-accountbased/{627.chunk.js → 4627.chunk.js} +1 -1
  16. package/android/src/main/assets/edge-currency-accountbased/4650.chunk.js +1 -0
  17. package/android/src/main/assets/edge-currency-accountbased/{826.chunk.js → 5179.chunk.js} +1 -1
  18. package/android/src/main/assets/edge-currency-accountbased/{835.chunk.js → 5835.chunk.js} +1 -1
  19. package/android/src/main/assets/edge-currency-accountbased/5836.chunk.js +1 -0
  20. package/android/src/main/assets/edge-currency-accountbased/6266.chunk.js +1 -0
  21. package/android/src/main/assets/edge-currency-accountbased/6291.chunk.js +58 -0
  22. package/android/src/main/assets/edge-currency-accountbased/6341.chunk.js +44 -0
  23. package/android/src/main/assets/edge-currency-accountbased/7221.chunk.js +1 -0
  24. package/android/src/main/assets/edge-currency-accountbased/7428.chunk.js +6 -0
  25. package/android/src/main/assets/edge-currency-accountbased/{481.chunk.js → 7481.chunk.js} +1 -1
  26. package/android/src/main/assets/edge-currency-accountbased/7542.chunk.js +1 -0
  27. package/android/src/main/assets/edge-currency-accountbased/7786.chunk.js +2 -0
  28. package/android/src/main/assets/edge-currency-accountbased/8190.chunk.js +1 -0
  29. package/android/src/main/assets/edge-currency-accountbased/{689.chunk.js → 8689.chunk.js} +1 -1
  30. package/android/src/main/assets/edge-currency-accountbased/{726.chunk.js → 8726.chunk.js} +1 -1
  31. package/android/src/main/assets/edge-currency-accountbased/9068.chunk.js +1 -0
  32. package/android/src/main/assets/edge-currency-accountbased/{223.chunk.js → 9223.chunk.js} +2 -2
  33. package/android/src/main/assets/edge-currency-accountbased/9539.chunk.js +10 -0
  34. package/android/src/main/assets/edge-currency-accountbased/{645.chunk.js → 9645.chunk.js} +6 -6
  35. package/android/src/main/assets/edge-currency-accountbased/9669.chunk.js +7 -0
  36. package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +1 -1
  37. package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +2 -2
  38. package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +2 -18
  39. package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +5 -5
  40. package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +2 -2
  41. package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
  42. package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
  43. package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
  44. package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
  45. package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +2 -2
  46. package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +2 -2
  47. package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +2 -2
  48. package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +2 -2
  49. package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
  50. package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
  51. package/lib/ethereum/info/avalancheInfo.js +8 -0
  52. package/lib/ethereum/info/ethereumInfo.js +8 -0
  53. package/lib/filecoin/FilecoinEngine.js +112 -79
  54. package/lib/filecoin/Filfox.js +68 -1
  55. package/lib/filecoin/filecoinInfo.js +8 -3
  56. package/lib/filecoin/filecoinTypes.js +1 -6
  57. package/lib/zcash/ZcashEngine.js +11 -9
  58. package/package.json +1 -1
  59. package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
  60. package/android/src/main/assets/edge-currency-accountbased/17.chunk.js +0 -58
  61. package/android/src/main/assets/edge-currency-accountbased/190.chunk.js +0 -1
  62. package/android/src/main/assets/edge-currency-accountbased/221.chunk.js +0 -1
  63. package/android/src/main/assets/edge-currency-accountbased/298.chunk.js +0 -44
  64. package/android/src/main/assets/edge-currency-accountbased/431.chunk.js +0 -1
  65. package/android/src/main/assets/edge-currency-accountbased/491.chunk.js +0 -1
  66. package/android/src/main/assets/edge-currency-accountbased/539.chunk.js +0 -10
  67. package/android/src/main/assets/edge-currency-accountbased/542.chunk.js +0 -1
  68. package/android/src/main/assets/edge-currency-accountbased/618.chunk.js +0 -20
  69. package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
  70. package/android/src/main/assets/edge-currency-accountbased/68.chunk.js +0 -1
  71. package/android/src/main/assets/edge-currency-accountbased/720.chunk.js +0 -1
  72. package/android/src/main/assets/edge-currency-accountbased/786.chunk.js +0 -2
  73. package/android/src/main/assets/edge-currency-accountbased/836.chunk.js +0 -1
  74. package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +0 -1
  75. package/android/src/main/assets/edge-currency-accountbased/944.chunk.js +0 -4
  76. package/android/src/main/assets/edge-currency-accountbased/945.chunk.js +0 -25
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[650],{84650:function(F,K,D){D.d(K,{P:function(){return J}});var L=D(77591),Q=D.n(L),_=D(94935),p=D(20918),y=D(62177),I=D(76714),N=Object.defineProperty,R=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,P=(x,t,n)=>t in x?N(x,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):x[t]=n,B=(x,t)=>{for(var n in t||(t={}))U.call(t,n)&&P(x,n,t[n]);if(R)for(var n of R(t))$.call(t,n)&&P(x,n,t[n]);return x},d=(x,t,n)=>new Promise((s,o)=>{var c=u=>{try{m(n.next(u))}catch(T){o(T)}},r=u=>{try{m(n.throw(u))}catch(T){o(T)}},m=u=>u.done?s(u.value):Promise.resolve(u.value).then(c,r);m((n=n.apply(x,t)).next())});const j=1e4,W=1e3,M=3600*24;class J{constructor(t,n,s,o){this.allTokens=[],this.allTokensMap={},this.builtinTokens={},this.customTokens={},this.enabledTokenIds=[],this.enabledTokens=[];const{builtinTokens:c,currencyInfo:r}=t,{callbacks:m,customTokens:u,enabledTokenIds:T,log:C,walletLocalDisklet:v}=o;this.tools=n,this.log=C,this.warn=(O,S)=>this.log.warn(O+(0,I.HY)(S)),this.error=(O,S)=>this.log.error(O+(0,I.HY)(S)),this.engineOn=!1,this.addressesChecked=!1,this.tokenCheckBalanceStatus={},this.tokenCheckTransactionsStatus={},this.walletLocalDataDirty=!1,this.transactionsChangedArray=[],this.transactionList={},this.transactionListDirty=!1,this.transactionsLoaded=!1,this.txIdMap={},this.txIdList={},this.walletInfo=s,this.walletId=s.id,this.currencyInfo=r,this.timers={},this.otherData=void 0,this.minimumAddressBalance="0";const{currencyCode:b}=r;this.transactionList[b]=[],this.txIdMap[b]={},this.txIdList[b]=[],this.builtinTokens=c,this.changeCustomTokensSync(u),this.changeEnabledTokenIdsSync(T),o.userSettings!=null?this.currentSettings=o.userSettings:this.currentSettings=this.currencyInfo.defaultSettings,this.currencyEngineCallbacks=m,this.walletLocalDisklet=v,typeof this.walletInfo.keys.publicKey!="string"&&(this.walletInfo.keys.publicKey=s.keys.publicKey),this.walletLocalData={blockHeight:0,lastAddressQueryHeight:0,lastTransactionQueryHeight:{},lastTransactionDate:{},publicKey:"",totalBalances:{},lastCheckedTxsDropped:0,numUnconfirmedSpendTxs:0,numTransactions:{},unactivatedTokenIds:[],otherData:void 0},this.log(`Created Wallet Type ${this.walletInfo.type} for Currency Plugin ${this.currencyInfo.pluginId}`)}isSpendTx(t){if(t.nativeAmount!==""){if(t.nativeAmount.slice(0,1)==="-")return!0;if((0,L.gt)(t.nativeAmount,"0"))return!1}let n=!0;if(t.ourReceiveAddresses.length>0)for(const s of t.ourReceiveAddresses)s===this.walletLocalData.publicKey&&(n=!1);return n}setOtherData(t){throw new Error(`Unimplemented setOtherData for ${this.walletInfo.type}`)}loadTransactions(){return d(this,null,function*(){if(this.transactionsLoaded){this.log("Transactions already loaded");return}this.transactionsLoaded=!0;const t=this.walletLocalDisklet;let n;try{const r=yield t.getText(y.TD);n=JSON.parse(r)}catch{this.log("Could not load txidList file. Failure is ok on new device"),yield t.setText(y.TD,JSON.stringify(this.txIdList))}let s;try{const r=yield t.getText(y.DZ);s=JSON.parse(r)}catch{this.log("Could not load txidMap file. Failure is ok on new device"),yield t.setText(y.DZ,JSON.stringify(this.txIdMap))}let o;try{const r=yield t.getText(y.tC);o=JSON.parse(r)}catch(r){r.code==="ENOENT"?(this.log("Could not load transactionList file. Failure is ok on new device"),yield t.setText(y.tC,JSON.stringify(this.transactionList))):this.log.crash(r,this.walletLocalData)}let c=!0;for(const r of Object.keys(this.transactionList))if(this.transactionList[r]!=null&&this.transactionList[r].length>0){c=!1;break}if(c)this.transactionList=o!=null?o:this.transactionList,this.txIdList=n!=null?n:this.txIdList,this.txIdMap=s!=null?s:this.txIdMap;else if(o!=null)for(const r of Object.keys(o))for(const m of o[r])this.addTransaction(r,m);for(const r in this.transactionList)this.walletLocalData.numTransactions[r]=this.transactionList[r].length})}loadEngine(){return d(this,null,function*(){var t;const{walletInfo:n}=this,{currencyCode:s}=this.currencyInfo;this.walletInfo.keys.publicKey==null&&(this.walletInfo.keys.publicKey=n.keys.publicKey);const o=this.walletLocalDisklet;try{const c=yield o.getText(y.Pe);this.walletLocalData=(0,y.O2)(JSON.parse(c)),this.walletLocalData.publicKey=this.walletInfo.keys.publicKey}catch{try{this.log("No walletLocalData setup yet: Failure is ok"),this.walletLocalData=(0,y.O2)({}),this.walletLocalData.publicKey=this.walletInfo.keys.publicKey,yield o.setText(y.Pe,JSON.stringify(this.walletLocalData))}catch(r){throw this.error("Error writing to localDataStore. Engine not started: ",r),r}}this.setOtherData((t=this.walletLocalData.otherData)!=null?t:{}),this.walletLocalDataDirty=!(0,I.dQ)(this.otherData,this.walletLocalData.otherData),this.tokenCheckBalanceStatus[s]=0,this.tokenCheckTransactionsStatus[s]=0,this.doInitialBalanceCallback(),this.doInitialUnactivatedTokenIdsCallback()})}findTransaction(t,n){if(this.txIdMap[t]!=null){const s=this.txIdMap[t][n];if(typeof s=="number")return s}return-1}sortTxByDate(t,n){return n.date-t.date}addTransaction(t,n,s){this.log("executing addTransaction: ",n.txid),n.otherParams==null&&(n.otherParams={}),n.blockHeight<1&&(n.otherParams.lastSeenTime=s!=null?s:Math.round(Date.now()/1e3));const o=(0,I.f0)(n.txid),c=this.findTransaction(t,o);let r=!1;if(c===-1){if(this.isSpendTx(n)&&n.blockHeight===0&&(this.walletLocalData.numUnconfirmedSpendTxs++,this.walletLocalDataDirty=!0),r=!0,typeof this.transactionList[t]>"u")this.transactionList[t]=[];else if(this.transactionList[t].length>=W)return;this.transactionList[t].push(n),this.walletLocalData.numTransactions[t]=this.transactionList[t].length,this.walletLocalDataDirty=!0,this.transactionListDirty=!0,this.transactionsChangedArray.push(n),this.warn(`addTransaction new tx: ${n.txid}`)}else{const u=this.transactionList[t][c],{otherParams:T={}}=u,{otherParams:C={}}=n;(u.blockHeight<n.blockHeight||u.blockHeight===0&&n.blockHeight<0||u.blockHeight===n.blockHeight&&(u.networkFee!==n.networkFee||u.nativeAmount!==n.nativeAmount||T.lastSeenTime!==C.lastSeenTime||u.date!==n.date))&&(this.isSpendTx(n)&&n.blockHeight!==0&&u.blockHeight===0&&this.walletLocalData.numUnconfirmedSpendTxs--,u.date!==n.date&&(r=!0),this.warn(`addTransaction: update ${n.txid} height:${n.blockHeight}`),this.walletLocalDataDirty=!0,this.updateTransaction(t,n,c))}r&&this.sortTransactions(t)}sortTransactions(t){this.transactionList[t].sort(this.sortTxByDate);const n=[];let s=0;for(const o of this.transactionList[t])this.txIdMap[t]==null&&(this.txIdMap[t]={}),this.txIdMap[t][(0,I.f0)(o.txid)]=s,n.push((0,I.f0)(o.txid)),s++;this.txIdList[t]=n}checkDroppedTransactionsThrottled(){const t=Date.now()/1e3;t-this.walletLocalData.lastCheckedTxsDropped>M&&(this.checkDroppedTransactions(t),this.walletLocalData.lastCheckedTxsDropped=t,this.walletLocalDataDirty=!0,this.transactionsChangedArray.length>0&&(this.currencyEngineCallbacks.onTransactionsChanged(this.transactionsChangedArray),this.transactionsChangedArray=[]))}checkDroppedTransactions(t){let n=0;for(const s in this.transactionList)for(let o=0;o<this.transactionList[s].length;o++){const c=this.transactionList[s][o];if(c.blockHeight===0){const{otherParams:r={}}=c,m=r.lastSeenTime;t-m>M?(c.blockHeight=-1,c.nativeAmount="0",this.transactionsChangedArray.push(c)):this.isSpendTx(c)&&n++}}this.walletLocalData.numUnconfirmedSpendTxs=n,this.walletLocalDataDirty=!0}updateBalance(t,n){const s=this.walletLocalData.totalBalances[t];this.walletLocalData.totalBalances[t]==null&&(this.walletLocalData.totalBalances[t]="0"),(s==null||!(0,L.eq)(n,s))&&(this.walletLocalData.totalBalances[t]=n,this.walletLocalDataDirty=!0,this.warn(`${t}: token Address balance: ${n}`),this.currencyEngineCallbacks.onBalanceChanged(t,n)),this.tokenCheckBalanceStatus[t]=1,this.updateOnAddressesChecked()}updateTransaction(t,n,s){this.transactionList[t][s]=n,this.transactionListDirty=!0,this.transactionsChangedArray.push(n),this.warn(`updateTransaction: ${n.txid}`)}saveWalletLoop(){return d(this,null,function*(){const t=this.walletLocalDisklet,n=[];if(this.transactionListDirty){yield this.loadTransactions(),this.log("transactionListDirty. Saving...");let s=JSON.stringify(this.transactionList);n.push(t.setText(y.tC,s).catch(o=>{this.error("Error saving transactionList ",o)})),s=JSON.stringify(this.txIdList),n.push(t.setText(y.TD,s).catch(o=>{this.error("Error saving txIdList ",o)})),s=JSON.stringify(this.txIdMap),n.push(t.setText(y.DZ,s).catch(o=>{this.error("Error saving txIdMap ",o)})),yield Promise.all(n),this.transactionListDirty=!1}if(this.walletLocalDataDirty){this.log("walletLocalDataDirty. Saving..."),this.walletLocalData.otherData=this.otherData;const s=JSON.stringify(this.walletLocalData);yield t.setText(y.Pe,s).then(()=>{this.walletLocalDataDirty=!1}).catch(o=>{this.error("Error saving walletLocalData ",o)})}})}doInitialBalanceCallback(){var t;for(const n of this.enabledTokens)try{this.currencyEngineCallbacks.onBalanceChanged(n,(t=this.walletLocalData.totalBalances[n])!=null?t:"0")}catch(s){this.error(`doInitialBalanceCallback Error for currencyCode ${n}`,s)}}doInitialUnactivatedTokenIdsCallback(){try{this.walletLocalData.unactivatedTokenIds!=null&&this.walletLocalData.unactivatedTokenIds.length>0&&this.currencyEngineCallbacks.onUnactivatedTokenIdsChanged(this.walletLocalData.unactivatedTokenIds)}catch(t){this.error("doInitialUnactivatedTokenIdsCallback Error",t)}}addToLoop(t,n){return d(this,null,function*(){try{yield this[t]()}catch(s){this.error(`Error in Loop: ${t} `,s)}return this.engineOn&&(this.timers[t]=setTimeout(()=>{this.engineOn&&this.addToLoop(t,n).catch(s=>this.log(s.message))},n)),!0})}getTokenInfo(t){return this.allTokens.find(n=>n.currencyCode===t)}updateOnAddressesChecked(){var t,n;if(this.addressesChecked)return;const s=this.enabledTokens,o=1/s.length;let c=0,r=0;for(const m of s){const u=(t=this.tokenCheckBalanceStatus[m])!=null?t:0,T=(n=this.tokenCheckTransactionsStatus[m])!=null?n:0;c+=(u+T)/2*o,u===1&&T===1&&r++}r===s.length&&(c=1,this.addressesChecked=!0),this.log(`${this.walletId} syncRatio of: ${c}`),this.currencyEngineCallbacks.onAddressesChecked(c)}clearBlockchainCache(){return d(this,null,function*(){this.walletLocalData=(0,y.O2)({publicKey:this.walletLocalData.publicKey}),this.walletLocalDataDirty=!0,this.addressesChecked=!1,this.tokenCheckBalanceStatus={},this.tokenCheckTransactionsStatus={},this.transactionList={},this.txIdList={},this.txIdMap={},this.transactionListDirty=!0,this.setOtherData({}),yield this.saveWalletLoop()})}startEngine(){return d(this,null,function*(){this.addToLoop("saveWalletLoop",j).catch(()=>{})})}killEngine(){return d(this,null,function*(){this.engineOn=!1;for(const t in this.timers)clearTimeout(this.timers[t]);this.timers={}})}changeUserSettings(t){return d(this,null,function*(){this.currentSettings=t})}getBlockHeight(){return this.walletLocalData.blockHeight}changeCustomTokensSync(t){this.customTokens={};for(const n of Object.keys(t)){const s=t[n];try{(0,p.Rp)(s)}catch{this.log.warn(`Dropping custom token "${s.currencyCode}" / ${n}`);continue}this.customTokens[n]=s}this.allTokensMap=B(B({},this.customTokens),this.builtinTokens),this.allTokens=(0,p.ZS)(this.allTokensMap)}changeCustomTokens(t){return d(this,null,function*(){this.changeCustomTokensSync(t)})}changeEnabledTokenIdsSync(t){const{currencyCode:n}=this.currencyInfo,s=new Set,o=new Set;for(const c of t){const r=this.allTokensMap[c];r!=null&&(s.add(r.currencyCode),o.add(c))}this.enabledTokens=[...s,n],this.enabledTokenIds=[...o]}changeEnabledTokenIds(t){return d(this,null,function*(){this.changeEnabledTokenIdsSync(t)})}getBalance(t){const{currencyCode:n=this.currencyInfo.currencyCode}=t,s=this.walletLocalData.totalBalances[n];return s==null?"0":s}getNumTransactions(t){const{currencyCode:n=this.currencyInfo.currencyCode}=t;return this.walletLocalData.numTransactions[n]==null?0:this.walletLocalData.numTransactions[n]}getTransactions(t){return d(this,null,function*(){const{currencyCode:n=this.currencyInfo.currencyCode}=t;if(yield this.loadTransactions(),this.transactionList[n]==null)return[];let s=0,o=0;if(t===null)return this.transactionList[n].slice(0);t.startIndex!=null&&t.startIndex>0&&(s=t.startIndex,s>=this.transactionList[n].length&&(s=this.transactionList[n].length-1)),t.startEntries!=null&&t.startEntries>0&&(o=t.startEntries,o+s>this.transactionList[n].length&&(o=this.transactionList[n].length-s));let c=[];return o!==0?c=this.transactionList[n].slice(s,o+s):c=this.transactionList[n].slice(s),c})}getFreshAddress(t){return d(this,null,function*(){return{publicAddress:this.walletLocalData.publicKey}})}addGapLimitAddresses(t){return d(this,null,function*(){})}isAddressUsed(t){return d(this,null,function*(){return!1})}dumpData(){return d(this,null,function*(){return{walletId:this.walletId.split(" - ")[0],walletType:this.walletInfo.type,data:{pluginType:{pluginId:this.currencyInfo.pluginId},walletLocalData:this.walletLocalData}}})}makeSpendCheck(t){var n,s,o;const{skipChecks:c=!1}=t;for(const C of t.spendTargets)if(!c&&C.publicAddress===this.walletLocalData.publicKey)throw new _.l0;let r="";if(typeof t.currencyCode=="string"){if(r=t.currencyCode,r!==this.currencyInfo.currencyCode&&!this.enabledTokens.includes(r))throw new Error("Error: Token not supported or enabled")}else r=this.currencyInfo.currencyCode;const m=(n=this.walletLocalData.totalBalances[r])!=null?n:"0",u={};for(const C of t.spendTargets){const{nativeAmount:v}=C;v!=null&&(u[r]=(s=u[r])!=null?s:"0",u[r]=(0,L.add)(u[r],v))}for(const[C,v]of Object.entries(u)){const b=(o=this.walletLocalData.totalBalances[C])!=null?o:"0";if(!c&&(0,L.lt)(b,v))throw new _.C_}t.currencyCode=r;const T=(0,I.aL)(r,this.currencyInfo,this.allTokensMap);if(T==null)throw new Error("InternalErrorInvalidCurrencyCode");return{edgeSpendInfo:t,nativeBalance:m,currencyCode:r,denom:T,skipChecks:c}}checkRecipientMinimumBalance(t,n,s){return d(this,null,function*(){if((0,L.gte)(n,this.minimumAddressBalance))return;const o=yield t(s);if((0,L.lt)((0,L.add)(n,o),this.minimumAddressBalance)){const c=this.currencyInfo.denominations.find(m=>m.name===this.currencyInfo.currencyCode);if(c==null)throw new Error("Unknown denom");const r=(0,L.div)(this.minimumAddressBalance,c.multiplier);throw new Error(`Recipient address not activated. A minimum ${r} ${this.currencyInfo.currencyCode} transfer is required to send funds to this address`)}})}saveTx(t){return d(this,null,function*(){this.addTransaction(t.currencyCode,t),this.transactionsChangedArray.forEach(n=>this.warn(`executing back in saveTx and this.transactionsChangedArray is: ${(0,I.oX)(n)}`)),this.transactionsChangedArray.length>0&&this.currencyEngineCallbacks.onTransactionsChanged(this.transactionsChangedArray)})}resyncBlockchain(){return d(this,null,function*(){throw new Error("not implemented")})}makeSpend(t,n){return d(this,null,function*(){throw new Error("not implemented")})}signTx(t,n){return d(this,null,function*(){throw new Error("not implemented")})}broadcastTx(t,n){return d(this,null,function*(){throw new Error("not implemented")})}}},76714:function(F,K,D){D.d(K,{$9:function(){return M},EE:function(){return b},HB:function(){return n},HY:function(){return S},KT:function(){return d},NC:function(){return $},QJ:function(){return r},Qs:function(){return J},Sy:function(){return N},Vs:function(){return c},Wp:function(){return s},X0:function(){return W},Xp:function(){return u},Y7:function(){return V},Z8:function(){return j},aL:function(){return x},ah:function(){return P},dQ:function(){return X},f0:function(){return I},gc:function(){return B},jT:function(){return T},ml:function(){return o},nu:function(){return Z},oX:function(){return v},sD:function(){return m},vq:function(){return U},zR:function(){return O}});var L=D(77591),Q=D.n(L),_=D(48764),p=D(82448),y=(e,i,a)=>new Promise((l,f)=>{var g=k=>{try{w(a.next(k))}catch(E){f(E)}},h=k=>{try{w(a.throw(k))}catch(E){f(E)}},w=k=>k.done?l(k.value):Promise.resolve(k.value).then(g,h);w((a=a.apply(e,i)).next())});function I(e){return e.toLowerCase().replace("0x","")}function N(e){let i=e.length,a,l;for(;i!==0;)l=Math.floor(Math.random()*i),i-=1,a=e[i],e[i]=e[l],e[l]=a;return e}function R(e){return Object.keys(e).length!==0}function U(e){return/^[0-9A-F]+$/i.test(d(e))}function $(e){return(0,L.add)(e,"0",16)}function P(e){const i=e.replace("0x","");return _.Buffer.from(i,"hex")}function B(e,i){return 2*i-e.length>0?e.padStart(2*i,"0"):e}function d(e){return e.indexOf("0x")===0?e.substring(2):e}function j(e){const i=e.toLowerCase(),a=i.startsWith("0x")?i:`0x${i}`;return(0,L.add)(a,"0",10)}function W(e){return(0,L.add)(e,"0",16)}function M(e){return"0x"+_.Buffer.from(e).toString("hex")}function J(e,i,a){for(const l of i.denominations)if(l.name===e)return l;for(const l of a)for(const f of l.denominations)if(f.name===e)return f;for(const l of i.metaTokens)for(const f of l.denominations)if(f.name===e)return f}function x(e,i,a){for(const l of i.denominations)if(l.name===e)return l;for(const l of Object.keys(a)){const f=a[l];for(const g of f.denominations)if(g.name===e)return g}}const t=e=>y(void 0,null,function*(){return yield new Promise((i,a)=>setTimeout(a,e))}),n=e=>y(void 0,null,function*(){return yield new Promise(i=>setTimeout(i,e))});function s(e){return y(this,null,function*(){return yield new Promise((i,a)=>{let l=e.length;for(const f of e)f.then(g=>{i(g)},g=>{--l===0&&a(g)})})})}function o(e,i){return y(this,arguments,function*(a,l,f=a.length){const g={};return yield new Promise((h,w)=>{let k=0,E=0,z=!1;for(const G of a)G.then(H=>{const A=l(H);A!==void 0?(k++,g[A]!==void 0?g[A]++:g[A]=1,!z&&g[A]>=f&&(z=!0,h(H))):++E+k===a.length&&w(Error(`Could not resolve ${f} promises`))},H=>{++E+k===a.length&&w(H)})})})}function c(e,i){return y(this,arguments,function*(a,l,f=new Error(`Timeout of ${l}ms exceeded`)){return yield new Promise((g,h)=>{const w=setTimeout(()=>h(f),l);a.then(k=>{g(k),clearTimeout(w)},k=>{h(k),clearTimeout(w)})})})}function r(e,i=5e3){return y(this,null,function*(){let a=e.length;const l=[];for(const f of e){const g=l.length;l.push(f().catch(h=>{throw h.index=g,h})),a>1&&l.push(new Promise(h=>{n(i).then(()=>{h("async_waterfall_timed_out")})}));try{const h=yield Promise.race(l);if(h==="async_waterfall_timed_out"){const w=l.pop();w==null||w.then().catch(),--a}else return h}catch(h){const w=h.index;l.splice(w,1);const k=l.pop();if(k==null||k.then().catch(),--a,a===0)throw h}}})}function m(e,i){if(e.length<=i)return e;const a=[];for(let l=0;l<e.length&&a.length<i;++l){const f=(i-a.length)/(e.length-l);Math.random()<=f&&a.push(e[l])}return a}function u(e){const i=e.otherParams;if(i==null)throw new TypeError("Transaction is missing otherParams");return i}function T(){let e=!1;const i=[];return function(l){return y(this,null,function*(){e&&(yield new Promise(f=>i.push(()=>f(void 0))));try{return e=!0,yield l()}finally{e=!1;const f=i.shift();f!=null&&f()}})}}const C=(0,p.su)({txid:p.XC,spendTargets:(0,p.Zz)((0,p._2)((0,p.su)({currencyCode:p.XC,nativeAmount:p.XC,publicAddress:p.XC,uniqueIdentifier:(0,p.Zz)(p.XC)}))),signedTx:p.XC,otherParams:(0,p.Zz)((0,p.su)({gas:(0,p.Zz)(p.XC),gasPrice:(0,p.Zz)(p.XC),nonceUsed:(0,p.Zz)(p.XC)}))});function v(e){return JSON.stringify(C(e),null,2)}function b(e){const[i,a]=e.split("e");return a==null?e:(0,L.mul)(i,"1"+"0".repeat(parseInt(a))).toString()}function O(e){var i;return(i=e.fetchCors)!=null?i:e.fetch}function S(e){let i="";return e!=null&&(e.name!=null&&(i+=`${e.name} `),e.message!=null&&(i+=e.message)),i}function Z(...e){const i={};for(const a of e)if(a!=null)for(const l of Object.keys(a))a[l]!=null&&(i[l]=i[l]!=null&&typeof a[l]=="object"?Z(i[l],a[l]):a[l]);return i}function V(e){const[i,a]=e.split(".");return a==null?i:parseInt(a[0])>=5?(0,L.add)(i,"1"):i}const q=e=>console.log(JSON.stringify(e,null,2));function X(e,i){if(typeof e!="object"||typeof i!="object"||e==null||i==null)return e===i;const a=Array.isArray(e),l=Array.isArray(i);if(a!==l)return!1;if(a){if(e.length!==i.length)return!1;for(let h=0;h<e.length;++h)if(!X(e[h],i[h]))return!1;return!0}const f=Object.getOwnPropertyNames(e).filter(h=>e[h]!==void 0),g=Object.getOwnPropertyNames(i).filter(h=>i[h]!==void 0);if(f.length!==g.length)return!1;for(const h of f)if(!Object.prototype.hasOwnProperty.call(i,h)||!X(e[h],i[h]))return!1;return!0}const Y=(e,i)=>{for(const a of Object.keys(e)){if(typeof e[a]=="object"){if(typeof i[a]!="object"||!Y(e[a],i[a]))return!1;continue}if(e[a]!==i[a])return!1}return!0}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[68],{59068:function(Qe,Q,w){w.r(Q),w.d(Q,{CID:function(){return d},bytes:function(){return R},digest:function(){return j},hasher:function(){return k},varint:function(){return F}});var F={};w.r(F),w.d(F,{decode:function(){return V},encodeTo:function(){return z},encodingLength:function(){return O}});var R={};w.r(R),w.d(R,{coerce:function(){return D},empty:function(){return q},equals:function(){return W},fromHex:function(){return Ae},fromString:function(){return Ce},isBinary:function(){return Ue},toHex:function(){return Ee},toString:function(){return ze}});var j={};w.r(j),w.d(j,{Digest:function(){return L},create:function(){return B},decode:function(){return Z},equals:function(){return Y}});var k={};w.r(k),w.d(k,{Hasher:function(){return se},from:function(){return Pe}});var oe=K,G=128,ie=127,ce=~ie,ae=Math.pow(2,31);function K(r,t,e){t=t||[],e=e||0;for(var n=e;r>=ae;)t[e++]=r&255|G,r/=128;for(;r&ce;)t[e++]=r&255|G,r>>>=7;return t[e]=r|0,K.bytes=e-n+1,t}var de=J,he=128,X=127;function J(r,n){var e=0,n=n||0,s=0,o=n,i,a=r.length;do{if(o>=a)throw J.bytes=0,new RangeError("Could not decode varint");i=r[o++],e+=s<28?(i&X)<<s:(i&X)*Math.pow(2,s),s+=7}while(i>=he);return J.bytes=o-n,e}var fe=Math.pow(2,7),ue=Math.pow(2,14),le=Math.pow(2,21),pe=Math.pow(2,28),be=Math.pow(2,35),we=Math.pow(2,42),ye=Math.pow(2,49),ge=Math.pow(2,56),ve=Math.pow(2,63),me=function(r){return r<fe?1:r<ue?2:r<le?3:r<pe?4:r<be?5:r<we?6:r<ye?7:r<ge?8:r<ve?9:10},xe={encode:oe,decode:de,encodingLength:me},Se=xe,N=Se;const V=(r,t=0)=>[N.decode(r,t),N.decode.bytes],z=(r,t,e=0)=>(N.encode(r,t,e),t),O=r=>N.encodingLength(r),q=new Uint8Array(0),Ee=r=>r.reduce((t,e)=>t+e.toString(16).padStart(2,"0"),""),Ae=r=>{const t=r.match(/../g);return t?new Uint8Array(t.map(e=>parseInt(e,16))):q},W=(r,t)=>{if(r===t)return!0;if(r.byteLength!==t.byteLength)return!1;for(let e=0;e<r.byteLength;e++)if(r[e]!==t[e])return!1;return!0},D=r=>{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},Ue=r=>r instanceof ArrayBuffer||ArrayBuffer.isView(r),Ce=r=>new TextEncoder().encode(r),ze=r=>new TextDecoder().decode(r),B=(r,t)=>{const e=t.byteLength,n=O(r),s=n+O(e),o=new Uint8Array(s+e);return z(r,o,0),z(e,o,n),o.set(t,s),new L(r,e,t,o)},Z=r=>{const t=D(r),[e,n]=V(t),[s,o]=V(t.subarray(n)),i=t.subarray(n+o);if(i.byteLength!==s)throw new Error("Incorrect length");return new L(e,s,i,t)},Y=(r,t)=>{if(r===t)return!0;{const e=t;return r.code===e.code&&r.size===e.size&&e.bytes instanceof Uint8Array&&W(r.bytes,e.bytes)}};class L{constructor(t,e,n,s){this.code=t,this.size=e,this.digest=n,this.bytes=s}}function Oe(r,t){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var s=0;s<r.length;s++){var o=r.charAt(s),i=o.charCodeAt(0);if(e[i]!==255)throw new TypeError(o+" is ambiguous");e[i]=s}var a=r.length,h=r.charAt(0),U=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function C(c){if(c instanceof Uint8Array||(ArrayBuffer.isView(c)?c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength):Array.isArray(c)&&(c=Uint8Array.from(c))),!(c instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(c.length===0)return"";for(var f=0,A=0,p=0,y=c.length;p!==y&&c[p]===0;)p++,f++;for(var g=(y-p)*u+1>>>0,l=new Uint8Array(g);p!==y;){for(var v=c[p],E=0,b=g-1;(v!==0||E<A)&&b!==-1;b--,E++)v+=256*l[b]>>>0,l[b]=v%a>>>0,v=v/a>>>0;if(v!==0)throw new Error("Non-zero carry");A=E,p++}for(var x=g-A;x!==g&&l[x]===0;)x++;for(var I=h.repeat(f);x<g;++x)I+=r.charAt(l[x]);return I}function $(c){if(typeof c!="string")throw new TypeError("Expected String");if(c.length===0)return new Uint8Array;var f=0;if(c[f]!==" "){for(var A=0,p=0;c[f]===h;)A++,f++;for(var y=(c.length-f)*U+1>>>0,g=new Uint8Array(y);c[f];){var l=e[c.charCodeAt(f)];if(l===255)return;for(var v=0,E=y-1;(l!==0||v<p)&&E!==-1;E--,v++)l+=a*g[E]>>>0,g[E]=l%256>>>0,l=l/256>>>0;if(l!==0)throw new Error("Non-zero carry");p=v,f++}if(c[f]!==" "){for(var b=y-p;b!==y&&g[b]===0;)b++;for(var x=new Uint8Array(A+(y-b)),I=A;b!==y;)x[I++]=g[b++];return x}}}function He(c){var f=$(c);if(f)return f;throw new Error(`Non-${t} character`)}return{encode:C,decodeUnsafe:$,decode:He}}var Me=Oe,Ne=Me,Ve=Ne;class De{constructor(t,e,n){this.name=t,this.prefix=e,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class Be{constructor(t,e,n){if(this.name=t,this.prefix=e,e.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return _(this,t)}}class Le{constructor(t){this.decoders=t}or(t){return _(this,t)}decode(t){const e=t[0],n=this.decoders[e];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const _=(r,t)=>new Le({...r.decoders||{[r.prefix]:r},...t.decoders||{[t.prefix]:t}});class Te{constructor(t,e,n,s){this.name=t,this.prefix=e,this.baseEncode=n,this.baseDecode=s,this.encoder=new De(t,e,n),this.decoder=new Be(t,e,s)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const ee=({name:r,prefix:t,encode:e,decode:n})=>new Te(r,t,e,n),te=({prefix:r,name:t,alphabet:e})=>{const{encode:n,decode:s}=Ve(e,t);return ee({prefix:r,name:t,encode:n,decode:o=>D(s(o))})},$e=(r,t,e,n)=>{const s={};for(let u=0;u<t.length;++u)s[t[u]]=u;let o=r.length;for(;r[o-1]==="=";)--o;const i=new Uint8Array(o*e/8|0);let a=0,h=0,U=0;for(let u=0;u<o;++u){const C=s[r[u]];if(C===void 0)throw new SyntaxError(`Non-${n} character`);h=h<<e|C,a+=e,a>=8&&(a-=8,i[U++]=255&h>>a)}if(a>=e||255&h<<8-a)throw new SyntaxError("Unexpected end of data");return i},Ie=(r,t,e)=>{const n=t[t.length-1]==="=",s=(1<<e)-1;let o="",i=0,a=0;for(let h=0;h<r.length;++h)for(a=a<<8|r[h],i+=8;i>e;)i-=e,o+=t[s&a>>i];if(i&&(o+=t[s&a<<e-i]),n)for(;o.length*e&7;)o+="=";return o},m=({name:r,prefix:t,bitsPerChar:e,alphabet:n})=>ee({prefix:t,name:r,encode(s){return Ie(s,n,e)},decode(s){return $e(s,n,e,r)}}),S=te({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Ge=te({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),T=m({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ke=m({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Xe=m({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),qe=m({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),We=m({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Ze=m({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Ye=m({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),_e=m({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),et=m({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),P=(r,t)=>{const{bytes:e,version:n}=r;switch(n){case 0:return Re(e,H(r),t||S.encoder);default:return je(e,H(r),t||T.encoder)}},tt=r=>({"/":P(r)}),rt=r=>d.parse(r["/"]),re=new WeakMap,H=r=>{const t=re.get(r);if(t==null){const e=new Map;return re.set(r,e),e}return t};class d{constructor(t,e,n,s){this.code=e,this.version=t,this.multihash=n,this.bytes=s,this["/"]=s}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{const{code:t,multihash:e}=this;if(t!==M)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==ke)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return d.createV0(e)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{const{code:t,digest:e}=this.multihash,n=B(t,e);return d.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(t){return d.equals(this,t)}static equals(t,e){const n=e;return n&&t.code===n.code&&t.version===n.version&&Y(t.multihash,n.multihash)}toString(t){return P(this,t)}toJSON(){return{"/":P(this)}}link(){return this}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(t){if(t==null)return null;const e=t;if(e instanceof d)return e;if(e["/"]!=null&&e["/"]===e.bytes||e.asCID===e){const{version:n,code:s,multihash:o,bytes:i}=e;return new d(n,s,o,i||ne(n,s,o.bytes))}else if(e[Je]===!0){const{version:n,multihash:s,code:o}=e,i=Z(s);return d.create(n,o,i)}else return null}static create(t,e,n){if(typeof e!="number")throw new Error("String codecs are no longer supported");if(!(n.bytes instanceof Uint8Array))throw new Error("Invalid digest");switch(t){case 0:{if(e!==M)throw new Error(`Version 0 CID must use dag-pb (code: ${M}) block encoding`);return new d(t,e,n,n.bytes)}case 1:{const s=ne(t,e,n.bytes);return new d(t,e,n,s)}default:throw new Error("Invalid version")}}static createV0(t){return d.create(0,M,t)}static createV1(t,e){return d.create(1,t,e)}static decode(t){const[e,n]=d.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return e}static decodeFirst(t){const e=d.inspectBytes(t),n=e.size-e.multihashSize,s=D(t.subarray(n,n+e.multihashSize));if(s.byteLength!==e.multihashSize)throw new Error("Incorrect length");const o=s.subarray(e.multihashSize-e.digestSize),i=new L(e.multihashCode,e.digestSize,o,s);return[e.version===0?d.createV0(i):d.createV1(e.codec,i),t.subarray(e.size)]}static inspectBytes(t){let e=0;const n=()=>{const[C,$]=V(t.subarray(e));return e+=$,C};let s=n(),o=M;if(s===18?(s=0,e=0):o=n(),s!==0&&s!==1)throw new RangeError(`Invalid CID version ${s}`);const i=e,a=n(),h=n(),U=e+h,u=U-i;return{version:s,codec:o,multihashCode:a,digestSize:h,multihashSize:u,size:U}}static parse(t,e){const[n,s]=Fe(t,e),o=d.decode(s);if(o.version===0&&t[0]!=="Q")throw Error("Version 0 CID string must not include multibase prefix");return H(o).set(n,t),o}}const Fe=(r,t)=>{switch(r[0]){case"Q":{const e=t||S;return[S.prefix,e.decode(`${S.prefix}${r}`)]}case S.prefix:{const e=t||S;return[S.prefix,e.decode(r)]}case T.prefix:{const e=t||T;return[T.prefix,e.decode(r)]}default:{if(t==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],t.decode(r)]}}},Re=(r,t,e)=>{const{prefix:n}=e;if(n!==S.prefix)throw Error(`Cannot string encode V0 in ${e.name} encoding`);const s=t.get(n);if(s==null){const o=e.encode(r).slice(1);return t.set(n,o),o}else return s},je=(r,t,e)=>{const{prefix:n}=e,s=t.get(n);if(s==null){const o=e.encode(r);return t.set(n,o),o}else return s},M=112,ke=18,ne=(r,t,e)=>{const n=O(r),s=n+O(t),o=new Uint8Array(s+e.byteLength);return z(r,o,0),z(t,o,n),o.set(e,s),o},Je=Symbol.for("@ipld/js-cid/CID"),Pe=({name:r,code:t,encode:e})=>new se(r,t,e);class se{constructor(t,e,n){this.name=t,this.code=e,this.encode=n}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?B(this.code,e):e.then(n=>B(this.code,n))}else throw Error("Unknown type, must be binary type")}}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[720],{43720:function(C){C.exports=r;var E=null;try{E=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function r(i,t,e){this.low=i|0,this.high=t|0,this.unsigned=!!e}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0});function l(i){return(i&&i.__isLong__)===!0}r.isLong=l;var A={},B={};function b(i,t){var e,h,u;return t?(i>>>=0,(u=0<=i&&i<256)&&(h=B[i],h)?h:(e=s(i,(i|0)<0?-1:0,!0),u&&(B[i]=e),e)):(i|=0,(u=-128<=i&&i<128)&&(h=A[i],h)?h:(e=s(i,i<0?-1:0,!1),u&&(A[i]=e),e))}r.fromInt=b;function N(i,t){if(isNaN(i))return t?y:v;if(t){if(i<0)return y;if(i>=W)return V}else{if(i<=-Z)return c;if(i+1>=Z)return R}return i<0?N(-i,t).neg():s(i%U|0,i/U|0,t)}r.fromNumber=N;function s(i,t,e){return new r(i,t,e)}r.fromBits=s;var m=Math.pow;function x(i,t,e){if(i.length===0)throw Error("empty string");if(i==="NaN"||i==="Infinity"||i==="+Infinity"||i==="-Infinity")return v;if(typeof t=="number"?(e=t,t=!1):t=!!t,e=e||10,e<2||36<e)throw RangeError("radix");var h;if((h=i.indexOf("-"))>0)throw Error("interior hyphen");if(h===0)return x(i.substring(1),t,e).neg();for(var u=N(m(e,8)),f=v,o=0;o<i.length;o+=8){var w=Math.min(8,i.length-o),q=parseInt(i.substring(o,o+w),e);if(w<8){var F=N(m(e,w));f=f.mul(F).add(N(q))}else f=f.mul(u),f=f.add(N(q))}return f.unsigned=t,f}r.fromString=x;function O(i,t){return typeof i=="number"?N(i,t):typeof i=="string"?x(i,t):s(i.low,i.high,typeof t=="boolean"?t:i.unsigned)}r.fromValue=O;var M=1<<16,D=1<<24,U=M*M,W=U*U,Z=W/2,P=b(D),v=b(0);r.ZERO=v;var y=b(0,!0);r.UZERO=y;var T=b(1);r.ONE=T;var S=b(1,!0);r.UONE=S;var I=b(-1);r.NEG_ONE=I;var R=s(-1,2147483647,!1);r.MAX_VALUE=R;var V=s(-1,-1,!0);r.MAX_UNSIGNED_VALUE=V;var c=s(0,-2147483648,!1);r.MIN_VALUE=c;var n=r.prototype;n.toInt=function(){return this.unsigned?this.low>>>0:this.low},n.toNumber=function(){return this.unsigned?(this.high>>>0)*U+(this.low>>>0):this.high*U+(this.low>>>0)},n.toString=function(t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(c)){var e=N(t),h=this.div(e),u=h.mul(e).sub(this);return h.toString(t)+u.toInt().toString(t)}else return"-"+this.neg().toString(t);for(var f=N(m(t,6),this.unsigned),o=this,w="";;){var q=o.div(f),F=o.sub(q.mul(f)).toInt()>>>0,g=F.toString(t);if(o=q,o.isZero())return g+w;for(;g.length<6;)g="0"+g;w=""+g+w}},n.getHighBits=function(){return this.high},n.getHighBitsUnsigned=function(){return this.high>>>0},n.getLowBits=function(){return this.low},n.getLowBitsUnsigned=function(){return this.low>>>0},n.getNumBitsAbs=function(){if(this.isNegative())return this.eq(c)?64:this.neg().getNumBitsAbs();for(var t=this.high!=0?this.high:this.low,e=31;e>0&&(t&1<<e)==0;e--);return this.high!=0?e+33:e+1},n.isZero=function(){return this.high===0&&this.low===0},n.eqz=n.isZero,n.isNegative=function(){return!this.unsigned&&this.high<0},n.isPositive=function(){return this.unsigned||this.high>=0},n.isOdd=function(){return(this.low&1)===1},n.isEven=function(){return(this.low&1)===0},n.equals=function(t){return l(t)||(t=O(t)),this.unsigned!==t.unsigned&&this.high>>>31===1&&t.high>>>31===1?!1:this.high===t.high&&this.low===t.low},n.eq=n.equals,n.notEquals=function(t){return!this.eq(t)},n.neq=n.notEquals,n.ne=n.notEquals,n.lessThan=function(t){return this.comp(t)<0},n.lt=n.lessThan,n.lessThanOrEqual=function(t){return this.comp(t)<=0},n.lte=n.lessThanOrEqual,n.le=n.lessThanOrEqual,n.greaterThan=function(t){return this.comp(t)>0},n.gt=n.greaterThan,n.greaterThanOrEqual=function(t){return this.comp(t)>=0},n.gte=n.greaterThanOrEqual,n.ge=n.greaterThanOrEqual,n.compare=function(t){if(l(t)||(t=O(t)),this.eq(t))return 0;var e=this.isNegative(),h=t.isNegative();return e&&!h?-1:!e&&h?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},n.comp=n.compare,n.negate=function(){return!this.unsigned&&this.eq(c)?c:this.not().add(T)},n.neg=n.negate,n.add=function(t){l(t)||(t=O(t));var e=this.high>>>16,h=this.high&65535,u=this.low>>>16,f=this.low&65535,o=t.high>>>16,w=t.high&65535,q=t.low>>>16,F=t.low&65535,g=0,L=0,a=0,_=0;return _+=f+F,a+=_>>>16,_&=65535,a+=u+q,L+=a>>>16,a&=65535,L+=h+w,g+=L>>>16,L&=65535,g+=e+o,g&=65535,s(a<<16|_,g<<16|L,this.unsigned)},n.subtract=function(t){return l(t)||(t=O(t)),this.add(t.neg())},n.sub=n.subtract,n.multiply=function(t){if(this.isZero())return v;if(l(t)||(t=O(t)),E){var e=E.mul(this.low,this.high,t.low,t.high);return s(e,E.get_high(),this.unsigned)}if(t.isZero())return v;if(this.eq(c))return t.isOdd()?c:v;if(t.eq(c))return this.isOdd()?c:v;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(P)&&t.lt(P))return N(this.toNumber()*t.toNumber(),this.unsigned);var h=this.high>>>16,u=this.high&65535,f=this.low>>>16,o=this.low&65535,w=t.high>>>16,q=t.high&65535,F=t.low>>>16,g=t.low&65535,L=0,a=0,_=0,d=0;return d+=o*g,_+=d>>>16,d&=65535,_+=f*g,a+=_>>>16,_&=65535,_+=o*F,a+=_>>>16,_&=65535,a+=u*g,L+=a>>>16,a&=65535,a+=f*F,L+=a>>>16,a&=65535,a+=o*q,L+=a>>>16,a&=65535,L+=h*g+u*F+f*q+o*w,L&=65535,s(_<<16|d,L<<16|a,this.unsigned)},n.mul=n.multiply,n.divide=function(t){if(l(t)||(t=O(t)),t.isZero())throw Error("division by zero");if(E){if(!this.unsigned&&this.high===-2147483648&&t.low===-1&&t.high===-1)return this;var e=(this.unsigned?E.div_u:E.div_s)(this.low,this.high,t.low,t.high);return s(e,E.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?y:v;var h,u,f;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return y;if(t.gt(this.shru(1)))return S;f=y}else{if(this.eq(c)){if(t.eq(T)||t.eq(I))return c;if(t.eq(c))return T;var o=this.shr(1);return h=o.div(t).shl(1),h.eq(v)?t.isNegative()?T:I:(u=this.sub(t.mul(h)),f=h.add(u.div(t)),f)}else if(t.eq(c))return this.unsigned?y:v;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();f=v}for(u=this;u.gte(t);){h=Math.max(1,Math.floor(u.toNumber()/t.toNumber()));for(var w=Math.ceil(Math.log(h)/Math.LN2),q=w<=48?1:m(2,w-48),F=N(h),g=F.mul(t);g.isNegative()||g.gt(u);)h-=q,F=N(h,this.unsigned),g=F.mul(t);F.isZero()&&(F=T),f=f.add(F),u=u.sub(g)}return f},n.div=n.divide,n.modulo=function(t){if(l(t)||(t=O(t)),E){var e=(this.unsigned?E.rem_u:E.rem_s)(this.low,this.high,t.low,t.high);return s(e,E.get_high(),this.unsigned)}return this.sub(this.div(t).mul(t))},n.mod=n.modulo,n.rem=n.modulo,n.not=function(){return s(~this.low,~this.high,this.unsigned)},n.and=function(t){return l(t)||(t=O(t)),s(this.low&t.low,this.high&t.high,this.unsigned)},n.or=function(t){return l(t)||(t=O(t)),s(this.low|t.low,this.high|t.high,this.unsigned)},n.xor=function(t){return l(t)||(t=O(t)),s(this.low^t.low,this.high^t.high,this.unsigned)},n.shiftLeft=function(t){return l(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?s(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):s(0,this.low<<t-32,this.unsigned)},n.shl=n.shiftLeft,n.shiftRight=function(t){return l(t)&&(t=t.toInt()),(t&=63)===0?this:t<32?s(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):s(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},n.shr=n.shiftRight,n.shiftRightUnsigned=function(t){if(l(t)&&(t=t.toInt()),t&=63,t===0)return this;var e=this.high;if(t<32){var h=this.low;return s(h>>>t|e<<32-t,e>>>t,this.unsigned)}else return t===32?s(e,0,this.unsigned):s(e>>>t-32,0,this.unsigned)},n.shru=n.shiftRightUnsigned,n.shr_u=n.shiftRightUnsigned,n.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},n.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)},n.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},n.toBytesLE=function(){var t=this.high,e=this.low;return[e&255,e>>>8&255,e>>>16&255,e>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]},n.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,e>>>24,e>>>16&255,e>>>8&255,e&255]},r.fromBytes=function(t,e,h){return h?r.fromBytesLE(t,e):r.fromBytesBE(t,e)},r.fromBytesLE=function(t,e){return new r(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},r.fromBytesBE=function(t,e){return new r(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)}}}]);
@@ -1,2 +0,0 @@
1
- (self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[786],{84090:function(O,w,l){"use strict";var o=l(48764).Buffer;Object.defineProperty(w,"__esModule",{value:!0});const g=l(56903),A=l(58334),y=l(95892),a=l(2401),b=l(37174),K=a.BufferN(32),D=a.compile({wif:a.UInt8,bip32:{public:a.UInt32,private:a.UInt32}}),m={messagePrefix:`Bitcoin Signed Message:
2
- `,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},H=2147483648,E=Math.pow(2,31)-1;function d(c){return a.String(c)&&c.match(/^(m\/)?(\d+'?\/)*\d+'?$/)!==null}function P(c){return a.UInt32(c)&&c<=E}class S{constructor(t,r,i,u,s=0,_=0,v=0){this.__D=t,this.__Q=r,this.chainCode=i,this.network=u,this.__DEPTH=s,this.__INDEX=_,this.__PARENT_FINGERPRINT=v,a(D,u),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return this.__Q===void 0&&(this.__Q=y.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return g.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return this.__D===void 0}neutered(){return R(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const t=this.network,r=this.isNeutered()?t.bip32.public:t.bip32.private,i=o.allocUnsafe(78);return i.writeUInt32BE(r,0),i.writeUInt8(this.depth,4),i.writeUInt32BE(this.parentFingerprint,5),i.writeUInt32BE(this.index,9),this.chainCode.copy(i,13),this.isNeutered()?this.publicKey.copy(i,45):(i.writeUInt8(0,45),this.privateKey.copy(i,46)),A.encode(i)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return b.encode(this.network.wif,this.privateKey,!0)}derive(t){a(a.UInt32,t);const r=t>=H,i=o.allocUnsafe(37);if(r){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");i[0]=0,this.privateKey.copy(i,1),i.writeUInt32BE(t,33)}else this.publicKey.copy(i,0),i.writeUInt32BE(t,33);const u=g.hmacSHA512(this.chainCode,i),s=u.slice(0,32),_=u.slice(32);if(!y.isPrivate(s))return this.derive(t+1);let v;if(this.isNeutered()){const I=y.pointAddScalar(this.publicKey,s,!0);if(I===null)return this.derive(t+1);v=R(I,_,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}else{const I=y.privateAdd(this.privateKey,s);if(I==null)return this.derive(t+1);v=x(I,_,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}return v}deriveHardened(t){return a(P,t),this.derive(t+H)}derivePath(t){a(d,t);let r=t.split("/");if(r[0]==="m"){if(this.parentFingerprint)throw new TypeError("Expected master, got child");r=r.slice(1)}return r.reduce((i,u)=>{let s;return u.slice(-1)==="'"?(s=parseInt(u.slice(0,-1),10),i.deriveHardened(s)):(s=parseInt(u,10),i.derive(s))},this)}sign(t,r){if(!this.privateKey)throw new Error("Missing private key");if(r===void 0&&(r=this.lowR),r===!1)return y.sign(t,this.privateKey);{let i=y.sign(t,this.privateKey);const u=o.alloc(32,0);let s=0;for(;i[0]>127;)s++,u.writeUIntLE(s,0,6),i=y.signWithEntropy(t,this.privateKey,u);return i}}verify(t,r){return y.verify(t,this.publicKey,r)}}function G(c,t){const r=A.decode(c);if(r.length!==78)throw new TypeError("Invalid buffer length");t=t||m;const i=r.readUInt32BE(0);if(i!==t.bip32.private&&i!==t.bip32.public)throw new TypeError("Invalid network version");const u=r[4],s=r.readUInt32BE(5);if(u===0&&s!==0)throw new TypeError("Invalid parent fingerprint");const _=r.readUInt32BE(9);if(u===0&&_!==0)throw new TypeError("Invalid index");const v=r.slice(13,45);let I;if(i===t.bip32.private){if(r.readUInt8(45)!==0)throw new TypeError("Invalid private key");const F=r.slice(46,78);I=x(F,v,t,u,_,s)}else{const F=r.slice(45,78);I=R(F,v,t,u,_,s)}return I}w.fromBase58=G;function L(c,t,r){return x(c,t,r)}w.fromPrivateKey=L;function x(c,t,r,i,u,s){if(a({privateKey:K,chainCode:K},{privateKey:c,chainCode:t}),r=r||m,!y.isPrivate(c))throw new TypeError("Private key not in range [1, n)");return new S(c,void 0,t,r,i,u,s)}function N(c,t,r){return R(c,t,r)}w.fromPublicKey=N;function R(c,t,r,i,u,s){if(a({publicKey:a.BufferN(33),chainCode:K},{publicKey:c,chainCode:t}),r=r||m,!y.isPoint(c))throw new TypeError("Point is not on the curve");return new S(void 0,c,t,r,i,u,s)}function U(c,t){if(a(a.Buffer,c),c.length<16)throw new TypeError("Seed should be at least 128 bits");if(c.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||m;const r=g.hmacSHA512(o.from("Bitcoin seed","utf8"),c),i=r.slice(0,32),u=r.slice(32);return L(i,u,t)}w.fromSeed=U},56903:function(O,w,l){"use strict";Object.defineProperty(w,"__esModule",{value:!0});const o=l(23482),g=l(58355);function A(a){const b=o("sha256").update(a).digest();try{return o("rmd160").update(b).digest()}catch{return o("ripemd160").update(b).digest()}}w.hash160=A;function y(a,b){return g("sha512",a).update(b).digest()}w.hmacSHA512=y},37786:function(O,w,l){"use strict";Object.defineProperty(w,"__esModule",{value:!0});var o=l(84090);w.fromSeed=o.fromSeed,w.fromBase58=o.fromBase58,w.fromPublicKey=o.fromPublicKey,w.fromPrivateKey=o.fromPrivateKey},95892:function(O,w,l){var o=l(48764).Buffer;const g=l(13550),A=l(86266).ec,y=new A("secp256k1"),a=l(44142),b=o.alloc(32,0),K=o.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),D=o.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),m=y.curve.n,H=m.shrn(1),E=y.curve.g,d="Expected Private",P="Expected Point",S="Expected Tweak",G="Expected Hash",L="Expected Signature",x="Expected Extra Data (32 bytes)";function N(e){return o.isBuffer(e)&&e.length===32}function R(e){return N(e)?e.compare(K)<0:!1}function U(e){if(!o.isBuffer(e)||e.length<33)return!1;const n=e[0],f=e.slice(1,33);if(f.compare(b)===0||f.compare(D)>=0)return!1;if((n===2||n===3)&&e.length===33){try{v(e)}catch{return!1}return!0}const p=e.slice(33);return p.compare(b)===0||p.compare(D)>=0?!1:n===4&&e.length===65}function c(e){return e[0]!==4}function t(e){return U(e)?c(e):!1}function r(e){return N(e)?e.compare(b)>0&&e.compare(K)<0:!1}function i(e){const n=e.slice(0,32),f=e.slice(32,64);return o.isBuffer(e)&&e.length===64&&n.compare(K)<0&&f.compare(K)<0}function u(e,n){return e===void 0&&n!==void 0?c(n):e===void 0?!0:e}function s(e){return new g(e)}function _(e){return e.toArrayLike(o,"be",32)}function v(e){return y.curve.decodePoint(e)}function I(e,n){return o.from(e._encode(n))}function F(e,n,f){if(!U(e))throw new TypeError(P);if(!U(n))throw new TypeError(P);const p=v(e),h=v(n),B=p.add(h);if(B.isInfinity())return null;const T=u(f,e);return I(B,T)}function Z(e,n,f){if(!U(e))throw new TypeError(P);if(!R(n))throw new TypeError(S);const p=u(f,e),h=v(e);if(n.compare(b)===0)return I(h,p);const B=s(n),T=E.mul(B),C=h.add(T);return C.isInfinity()?null:I(C,p)}function j(e,n){if(!U(e))throw new TypeError(P);const f=v(e);if(f.isInfinity())throw new TypeError(P);return I(f,n)}function Y(e,n){if(!r(e))throw new TypeError(d);const f=s(e),p=E.mul(f);if(p.isInfinity())return null;const h=u(n);return I(p,h)}function V(e,n,f){if(!U(e))throw new TypeError(P);if(!R(n))throw new TypeError(S);const p=u(f,e),h=v(e),B=s(n),T=h.mul(B);return T.isInfinity()?null:I(T,p)}function $(e,n){if(!r(e))throw new TypeError(d);if(!R(n))throw new TypeError(S);const f=s(e),p=s(n),h=_(f.add(p).umod(m));return r(h)?h:null}function z(e,n){if(!r(e))throw new TypeError(d);if(!R(n))throw new TypeError(S);const f=s(e),p=s(n),h=_(f.sub(p).umod(m));return r(h)?h:null}function J(e,n){return X(e,n)}function q(e,n,f){return X(e,n,f)}function X(e,n,f){if(!N(e))throw new TypeError(G);if(!r(n))throw new TypeError(d);if(f!==void 0&&!N(f))throw new TypeError(x);const p=s(n),h=s(e);let B,T;a(e,n,function(Q){const M=s(Q),k=E.mul(M);return!(k.isInfinity()||(B=k.x.umod(m),B.isZero()===0)||(T=M.invm(m).mul(h.add(p.mul(B))).umod(m),T.isZero()===0))},r,f),T.cmp(H)>0&&(T=m.sub(T));const W=o.allocUnsafe(64);return _(B).copy(W,0),_(T).copy(W,32),W}function ee(e,n,f){if(!N(e))throw new TypeError(G);if(!U(n))throw new TypeError(P);if(!i(f))throw new TypeError(L);const p=v(n),h=s(f.slice(0,32)),B=s(f.slice(32,64));if(h.gtn(0)<=0||B.gtn(0)<=0)return!1;const T=s(e),C=B.invm(m),W=T.mul(C).umod(m),Q=h.mul(C).umod(m),M=E.mulAdd(W,p,Q);return M.isInfinity()?!1:M.x.umod(m).eq(h)}O.exports={isPoint:U,isPointCompressed:t,isPrivate:r,pointAdd:F,pointAddScalar:Z,pointCompress:j,pointFromScalar:Y,pointMultiply:V,privateAdd:$,privateSub:z,sign:J,signWithEntropy:q,verify:ee}},44142:function(O,w,l){var o=l(48764).Buffer;const g=l(58355),A=o.alloc(1,1),y=o.alloc(1,0);function a(b,K,D,m,H){let E=o.alloc(32,0),d=o.alloc(32,1);E=g("sha256",E).update(d).update(y).update(K).update(b).update(H||"").digest(),d=g("sha256",E).update(d).digest(),E=g("sha256",E).update(d).update(A).update(K).update(b).update(H||"").digest(),d=g("sha256",E).update(d).digest(),d=g("sha256",E).update(d).digest();let P=d;for(;!m(P)||!D(P);)E=g("sha256",E).update(d).update(y).digest(),d=g("sha256",E).update(d).digest(),d=g("sha256",E).update(d).digest(),P=d;return P}O.exports=a}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[836],{50584:function(n){n.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},79267:function(n,f,t){var e=t(8501),r=t(8575),o=n.exports;for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a]);o.request=function(s,u){return s=i(s),e.request.call(this,s,u)},o.get=function(s,u){return s=i(s),e.get.call(this,s,u)};function i(s){if(typeof s=="string"&&(s=r.parse(s)),s.protocol||(s.protocol="https:"),s.protocol!=="https:")throw new Error('Protocol "'+s.protocol+'" not supported. Expected "https:"');return s}},18552:function(n,f,t){var e=t(10852),r=t(55639),o=e(r,"DataView");n.exports=o},1989:function(n,f,t){var e=t(51789),r=t(80401),o=t(57667),a=t(21327),i=t(81866);function s(u){var c=-1,d=u==null?0:u.length;for(this.clear();++c<d;){var v=u[c];this.set(v[0],v[1])}}s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,n.exports=s},38407:function(n,f,t){var e=t(27040),r=t(14125),o=t(82117),a=t(67518),i=t(54705);function s(u){var c=-1,d=u==null?0:u.length;for(this.clear();++c<d;){var v=u[c];this.set(v[0],v[1])}}s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,n.exports=s},57071:function(n,f,t){var e=t(10852),r=t(55639),o=e(r,"Map");n.exports=o},83369:function(n,f,t){var e=t(24785),r=t(11285),o=t(96e3),a=t(49916),i=t(95265);function s(u){var c=-1,d=u==null?0:u.length;for(this.clear();++c<d;){var v=u[c];this.set(v[0],v[1])}}s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=o,s.prototype.has=a,s.prototype.set=i,n.exports=s},53818:function(n,f,t){var e=t(10852),r=t(55639),o=e(r,"Promise");n.exports=o},58525:function(n,f,t){var e=t(10852),r=t(55639),o=e(r,"Set");n.exports=o},88668:function(n,f,t){var e=t(83369),r=t(90619),o=t(72385);function a(i){var s=-1,u=i==null?0:i.length;for(this.__data__=new e;++s<u;)this.add(i[s])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,n.exports=a},46384:function(n,f,t){var e=t(38407),r=t(37465),o=t(63779),a=t(67599),i=t(44758),s=t(34309);function u(c){var d=this.__data__=new e(c);this.size=d.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=s,n.exports=u},62705:function(n,f,t){var e=t(55639),r=e.Symbol;n.exports=r},11149:function(n,f,t){var e=t(55639),r=e.Uint8Array;n.exports=r},70577:function(n,f,t){var e=t(10852),r=t(55639),o=e(r,"WeakMap");n.exports=o},34963:function(n){function f(t,e){for(var r=-1,o=t==null?0:t.length,a=0,i=[];++r<o;){var s=t[r];e(s,r,t)&&(i[a++]=s)}return i}n.exports=f},14636:function(n,f,t){var e=t(22545),r=t(35694),o=t(1469),a=t(44144),i=t(65776),s=t(36719),u=Object.prototype,c=u.hasOwnProperty;function d(v,g){var h=o(v),p=!h&&r(v),l=!h&&!p&&a(v),y=!h&&!p&&!l&&s(v),T=h||p||l||y,b=T?e(v.length,String):[],S=b.length;for(var A in v)(g||c.call(v,A))&&!(T&&(A=="length"||l&&(A=="offset"||A=="parent")||y&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||i(A,S)))&&b.push(A);return b}n.exports=d},29932:function(n){function f(t,e){for(var r=-1,o=t==null?0:t.length,a=Array(o);++r<o;)a[r]=e(t[r],r,t);return a}n.exports=f},62488:function(n){function f(t,e){for(var r=-1,o=e.length,a=t.length;++r<o;)t[a+r]=e[r];return t}n.exports=f},82908:function(n){function f(t,e){for(var r=-1,o=t==null?0:t.length;++r<o;)if(e(t[r],r,t))return!0;return!1}n.exports=f},34865:function(n,f,t){var e=t(89465),r=t(77813),o=Object.prototype,a=o.hasOwnProperty;function i(s,u,c){var d=s[u];(!(a.call(s,u)&&r(d,c))||c===void 0&&!(u in s))&&e(s,u,c)}n.exports=i},18470:function(n,f,t){var e=t(77813);function r(o,a){for(var i=o.length;i--;)if(e(o[i][0],a))return i;return-1}n.exports=r},89465:function(n,f,t){var e=t(38777);function r(o,a,i){a=="__proto__"&&e?e(o,a,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[a]=i}n.exports=r},89881:function(n,f,t){var e=t(47816),r=t(99291),o=r(e);n.exports=o},21078:function(n,f,t){var e=t(62488),r=t(37285);function o(a,i,s,u,c){var d=-1,v=a.length;for(s||(s=r),c||(c=[]);++d<v;){var g=a[d];i>0&&s(g)?i>1?o(g,i-1,s,u,c):e(c,g):u||(c[c.length]=g)}return c}n.exports=o},28483:function(n,f,t){var e=t(25063),r=e();n.exports=r},47816:function(n,f,t){var e=t(28483),r=t(3674);function o(a,i){return a&&e(a,i,r)}n.exports=o},97786:function(n,f,t){var e=t(71811),r=t(40327);function o(a,i){i=e(i,a);for(var s=0,u=i.length;a!=null&&s<u;)a=a[r(i[s++])];return s&&s==u?a:void 0}n.exports=o},68866:function(n,f,t){var e=t(62488),r=t(1469);function o(a,i,s){var u=i(a);return r(a)?u:e(u,s(a))}n.exports=o},44239:function(n,f,t){var e=t(62705),r=t(89607),o=t(2333),a="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function u(c){return c==null?c===void 0?i:a:s&&s in Object(c)?r(c):o(c)}n.exports=u},13:function(n){function f(t,e){return t!=null&&e in Object(t)}n.exports=f},9454:function(n,f,t){var e=t(44239),r=t(37005),o="[object Arguments]";function a(i){return r(i)&&e(i)==o}n.exports=a},90939:function(n,f,t){var e=t(2492),r=t(37005);function o(a,i,s,u,c){return a===i?!0:a==null||i==null||!r(a)&&!r(i)?a!==a&&i!==i:e(a,i,s,u,o,c)}n.exports=o},2492:function(n,f,t){var e=t(46384),r=t(67114),o=t(18351),a=t(16096),i=t(64160),s=t(1469),u=t(44144),c=t(36719),d=1,v="[object Arguments]",g="[object Array]",h="[object Object]",p=Object.prototype,l=p.hasOwnProperty;function y(T,b,S,A,x,m){var E=s(T),O=s(b),P=E?g:i(T),I=O?g:i(b);P=P==v?h:P,I=I==v?h:I;var R=P==h,L=I==h,C=P==I;if(C&&u(T)){if(!u(b))return!1;E=!0,R=!1}if(C&&!R)return m||(m=new e),E||c(T)?r(T,b,S,A,x,m):o(T,b,P,S,A,x,m);if(!(S&d)){var w=R&&l.call(T,"__wrapped__"),M=L&&l.call(b,"__wrapped__");if(w||M){var D=w?T.value():T,N=M?b.value():b;return m||(m=new e),x(D,N,S,A,m)}}return C?(m||(m=new e),a(T,b,S,A,x,m)):!1}n.exports=y},2958:function(n,f,t){var e=t(46384),r=t(90939),o=1,a=2;function i(s,u,c,d){var v=c.length,g=v,h=!d;if(s==null)return!g;for(s=Object(s);v--;){var p=c[v];if(h&&p[2]?p[1]!==s[p[0]]:!(p[0]in s))return!1}for(;++v<g;){p=c[v];var l=p[0],y=s[l],T=p[1];if(h&&p[2]){if(y===void 0&&!(l in s))return!1}else{var b=new e;if(d)var S=d(y,T,l,s,u,b);if(!(S===void 0?r(T,y,o|a,d,b):S))return!1}}return!0}n.exports=i},28458:function(n,f,t){var e=t(23560),r=t(15346),o=t(13218),a=t(80346),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,d=u.toString,v=c.hasOwnProperty,g=RegExp("^"+d.call(v).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(p){if(!o(p)||r(p))return!1;var l=e(p)?g:s;return l.test(a(p))}n.exports=h},38749:function(n,f,t){var e=t(44239),r=t(41780),o=t(37005),a="[object Arguments]",i="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",d="[object Function]",v="[object Map]",g="[object Number]",h="[object Object]",p="[object RegExp]",l="[object Set]",y="[object String]",T="[object WeakMap]",b="[object ArrayBuffer]",S="[object DataView]",A="[object Float32Array]",x="[object Float64Array]",m="[object Int8Array]",E="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",I="[object Uint8ClampedArray]",R="[object Uint16Array]",L="[object Uint32Array]",C={};C[A]=C[x]=C[m]=C[E]=C[O]=C[P]=C[I]=C[R]=C[L]=!0,C[a]=C[i]=C[b]=C[s]=C[S]=C[u]=C[c]=C[d]=C[v]=C[g]=C[h]=C[p]=C[l]=C[y]=C[T]=!1;function w(M){return o(M)&&r(M.length)&&!!C[e(M)]}n.exports=w},67206:function(n,f,t){var e=t(91573),r=t(16432),o=t(6557),a=t(1469),i=t(39601);function s(u){return typeof u=="function"?u:u==null?o:typeof u=="object"?a(u)?r(u[0],u[1]):e(u):i(u)}n.exports=s},280:function(n,f,t){var e=t(25726),r=t(86916),o=Object.prototype,a=o.hasOwnProperty;function i(s){if(!e(s))return r(s);var u=[];for(var c in Object(s))a.call(s,c)&&c!="constructor"&&u.push(c);return u}n.exports=i},10313:function(n,f,t){var e=t(13218),r=t(25726),o=t(33498),a=Object.prototype,i=a.hasOwnProperty;function s(u){if(!e(u))return o(u);var c=r(u),d=[];for(var v in u)v=="constructor"&&(c||!i.call(u,v))||d.push(v);return d}n.exports=s},69199:function(n,f,t){var e=t(89881),r=t(98612);function o(a,i){var s=-1,u=r(a)?Array(a.length):[];return e(a,function(c,d,v){u[++s]=i(c,d,v)}),u}n.exports=o},91573:function(n,f,t){var e=t(2958),r=t(1499),o=t(42634);function a(i){var s=r(i);return s.length==1&&s[0][2]?o(s[0][0],s[0][1]):function(u){return u===i||e(u,i,s)}}n.exports=a},16432:function(n,f,t){var e=t(90939),r=t(27361),o=t(79095),a=t(15403),i=t(89162),s=t(42634),u=t(40327),c=1,d=2;function v(g,h){return a(g)&&i(h)?s(u(g),h):function(p){var l=r(p,g);return l===void 0&&l===h?o(p,g):e(h,l,c|d)}}n.exports=v},63012:function(n,f,t){var e=t(97786),r=t(10611),o=t(71811);function a(i,s,u){for(var c=-1,d=s.length,v={};++c<d;){var g=s[c],h=e(i,g);u(h,g)&&r(v,o(g,i),h)}return v}n.exports=a},40371:function(n){function f(t){return function(e){return e==null?void 0:e[t]}}n.exports=f},79152:function(n,f,t){var e=t(97786);function r(o){return function(a){return e(a,o)}}n.exports=r},10611:function(n,f,t){var e=t(34865),r=t(71811),o=t(65776),a=t(13218),i=t(40327);function s(u,c,d,v){if(!a(u))return u;c=r(c,u);for(var g=-1,h=c.length,p=h-1,l=u;l!=null&&++g<h;){var y=i(c[g]),T=d;if(y==="__proto__"||y==="constructor"||y==="prototype")return u;if(g!=p){var b=l[y];T=v?v(b,y,l):void 0,T===void 0&&(T=a(b)?b:o(c[g+1])?[]:{})}e(l,y,T),l=l[y]}return u}n.exports=s},22545:function(n){function f(t,e){for(var r=-1,o=Array(t);++r<t;)o[r]=e(r);return o}n.exports=f},80531:function(n,f,t){var e=t(62705),r=t(29932),o=t(1469),a=t(33448),i=1/0,s=e?e.prototype:void 0,u=s?s.toString:void 0;function c(d){if(typeof d=="string")return d;if(o(d))return r(d,c)+"";if(a(d))return u?u.call(d):"";var v=d+"";return v=="0"&&1/d==-i?"-0":v}n.exports=c},7518:function(n){function f(t){return function(e){return t(e)}}n.exports=f},74757:function(n){function f(t,e){return t.has(e)}n.exports=f},71811:function(n,f,t){var e=t(1469),r=t(15403),o=t(55514),a=t(79833);function i(s,u){return e(s)?s:r(s,u)?[s]:o(a(s))}n.exports=i},14429:function(n,f,t){var e=t(55639),r=e["__core-js_shared__"];n.exports=r},99291:function(n,f,t){var e=t(98612);function r(o,a){return function(i,s){if(i==null)return i;if(!e(i))return o(i,s);for(var u=i.length,c=a?u:-1,d=Object(i);(a?c--:++c<u)&&s(d[c],c,d)!==!1;);return i}}n.exports=r},25063:function(n){function f(t){return function(e,r,o){for(var a=-1,i=Object(e),s=o(e),u=s.length;u--;){var c=s[t?u:++a];if(r(i[c],c,i)===!1)break}return e}}n.exports=f},38777:function(n,f,t){var e=t(10852),r=function(){try{var o=e(Object,"defineProperty");return o({},"",{}),o}catch{}}();n.exports=r},67114:function(n,f,t){var e=t(88668),r=t(82908),o=t(74757),a=1,i=2;function s(u,c,d,v,g,h){var p=d&a,l=u.length,y=c.length;if(l!=y&&!(p&&y>l))return!1;var T=h.get(u),b=h.get(c);if(T&&b)return T==c&&b==u;var S=-1,A=!0,x=d&i?new e:void 0;for(h.set(u,c),h.set(c,u);++S<l;){var m=u[S],E=c[S];if(v)var O=p?v(E,m,S,c,u,h):v(m,E,S,u,c,h);if(O!==void 0){if(O)continue;A=!1;break}if(x){if(!r(c,function(P,I){if(!o(x,I)&&(m===P||g(m,P,d,v,h)))return x.push(I)})){A=!1;break}}else if(!(m===E||g(m,E,d,v,h))){A=!1;break}}return h.delete(u),h.delete(c),A}n.exports=s},18351:function(n,f,t){var e=t(62705),r=t(11149),o=t(77813),a=t(67114),i=t(68776),s=t(21814),u=1,c=2,d="[object Boolean]",v="[object Date]",g="[object Error]",h="[object Map]",p="[object Number]",l="[object RegExp]",y="[object Set]",T="[object String]",b="[object Symbol]",S="[object ArrayBuffer]",A="[object DataView]",x=e?e.prototype:void 0,m=x?x.valueOf:void 0;function E(O,P,I,R,L,C,w){switch(I){case A:if(O.byteLength!=P.byteLength||O.byteOffset!=P.byteOffset)return!1;O=O.buffer,P=P.buffer;case S:return!(O.byteLength!=P.byteLength||!C(new r(O),new r(P)));case d:case v:case p:return o(+O,+P);case g:return O.name==P.name&&O.message==P.message;case l:case T:return O==P+"";case h:var M=i;case y:var D=R&u;if(M||(M=s),O.size!=P.size&&!D)return!1;var N=w.get(O);if(N)return N==P;R|=c,w.set(O,P);var H=a(M(O),M(P),R,L,C,w);return w.delete(O),H;case b:if(m)return m.call(O)==m.call(P)}return!1}n.exports=E},16096:function(n,f,t){var e=t(58234),r=1,o=Object.prototype,a=o.hasOwnProperty;function i(s,u,c,d,v,g){var h=c&r,p=e(s),l=p.length,y=e(u),T=y.length;if(l!=T&&!h)return!1;for(var b=l;b--;){var S=p[b];if(!(h?S in u:a.call(u,S)))return!1}var A=g.get(s),x=g.get(u);if(A&&x)return A==u&&x==s;var m=!0;g.set(s,u),g.set(u,s);for(var E=h;++b<l;){S=p[b];var O=s[S],P=u[S];if(d)var I=h?d(P,O,S,u,s,g):d(O,P,S,s,u,g);if(!(I===void 0?O===P||v(O,P,c,d,g):I)){m=!1;break}E||(E=S=="constructor")}if(m&&!E){var R=s.constructor,L=u.constructor;R!=L&&"constructor"in s&&"constructor"in u&&!(typeof R=="function"&&R instanceof R&&typeof L=="function"&&L instanceof L)&&(m=!1)}return g.delete(s),g.delete(u),m}n.exports=i},31957:function(n,f,t){var e=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;n.exports=e},58234:function(n,f,t){var e=t(68866),r=t(99551),o=t(3674);function a(i){return e(i,o,r)}n.exports=a},46904:function(n,f,t){var e=t(68866),r=t(51442),o=t(81704);function a(i){return e(i,o,r)}n.exports=a},45050:function(n,f,t){var e=t(37019);function r(o,a){var i=o.__data__;return e(a)?i[typeof a=="string"?"string":"hash"]:i.map}n.exports=r},1499:function(n,f,t){var e=t(89162),r=t(3674);function o(a){for(var i=r(a),s=i.length;s--;){var u=i[s],c=a[u];i[s]=[u,c,e(c)]}return i}n.exports=o},10852:function(n,f,t){var e=t(28458),r=t(47801);function o(a,i){var s=r(a,i);return e(s)?s:void 0}n.exports=o},85924:function(n,f,t){var e=t(5569),r=e(Object.getPrototypeOf,Object);n.exports=r},89607:function(n,f,t){var e=t(62705),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,i=e?e.toStringTag:void 0;function s(u){var c=o.call(u,i),d=u[i];try{u[i]=void 0;var v=!0}catch{}var g=a.call(u);return v&&(c?u[i]=d:delete u[i]),g}n.exports=s},99551:function(n,f,t){var e=t(34963),r=t(70479),o=Object.prototype,a=o.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(u){return u==null?[]:(u=Object(u),e(i(u),function(c){return a.call(u,c)}))}:r;n.exports=s},51442:function(n,f,t){var e=t(62488),r=t(85924),o=t(99551),a=t(70479),i=Object.getOwnPropertySymbols,s=i?function(u){for(var c=[];u;)e(c,o(u)),u=r(u);return c}:a;n.exports=s},64160:function(n,f,t){var e=t(18552),r=t(57071),o=t(53818),a=t(58525),i=t(70577),s=t(44239),u=t(80346),c="[object Map]",d="[object Object]",v="[object Promise]",g="[object Set]",h="[object WeakMap]",p="[object DataView]",l=u(e),y=u(r),T=u(o),b=u(a),S=u(i),A=s;(e&&A(new e(new ArrayBuffer(1)))!=p||r&&A(new r)!=c||o&&A(o.resolve())!=v||a&&A(new a)!=g||i&&A(new i)!=h)&&(A=function(x){var m=s(x),E=m==d?x.constructor:void 0,O=E?u(E):"";if(O)switch(O){case l:return p;case y:return c;case T:return v;case b:return g;case S:return h}return m}),n.exports=A},47801:function(n){function f(t,e){return t==null?void 0:t[e]}n.exports=f},222:function(n,f,t){var e=t(71811),r=t(35694),o=t(1469),a=t(65776),i=t(41780),s=t(40327);function u(c,d,v){d=e(d,c);for(var g=-1,h=d.length,p=!1;++g<h;){var l=s(d[g]);if(!(p=c!=null&&v(c,l)))break;c=c[l]}return p||++g!=h?p:(h=c==null?0:c.length,!!h&&i(h)&&a(l,h)&&(o(c)||r(c)))}n.exports=u},51789:function(n,f,t){var e=t(94536);function r(){this.__data__=e?e(null):{},this.size=0}n.exports=r},80401:function(n){function f(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}n.exports=f},57667:function(n,f,t){var e=t(94536),r="__lodash_hash_undefined__",o=Object.prototype,a=o.hasOwnProperty;function i(s){var u=this.__data__;if(e){var c=u[s];return c===r?void 0:c}return a.call(u,s)?u[s]:void 0}n.exports=i},21327:function(n,f,t){var e=t(94536),r=Object.prototype,o=r.hasOwnProperty;function a(i){var s=this.__data__;return e?s[i]!==void 0:o.call(s,i)}n.exports=a},81866:function(n,f,t){var e=t(94536),r="__lodash_hash_undefined__";function o(a,i){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=e&&i===void 0?r:i,this}n.exports=o},37285:function(n,f,t){var e=t(62705),r=t(35694),o=t(1469),a=e?e.isConcatSpreadable:void 0;function i(s){return o(s)||r(s)||!!(a&&s&&s[a])}n.exports=i},65776:function(n){var f=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function e(r,o){var a=typeof r;return o=o==null?f:o,!!o&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}n.exports=e},15403:function(n,f,t){var e=t(1469),r=t(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function i(s,u){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||r(s)?!0:a.test(s)||!o.test(s)||u!=null&&s in Object(u)}n.exports=i},37019:function(n){function f(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}n.exports=f},15346:function(n,f,t){var e=t(14429),r=function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function o(a){return!!r&&r in a}n.exports=o},25726:function(n){var f=Object.prototype;function t(e){var r=e&&e.constructor,o=typeof r=="function"&&r.prototype||f;return e===o}n.exports=t},89162:function(n,f,t){var e=t(13218);function r(o){return o===o&&!e(o)}n.exports=r},27040:function(n){function f(){this.__data__=[],this.size=0}n.exports=f},14125:function(n,f,t){var e=t(18470),r=Array.prototype,o=r.splice;function a(i){var s=this.__data__,u=e(s,i);if(u<0)return!1;var c=s.length-1;return u==c?s.pop():o.call(s,u,1),--this.size,!0}n.exports=a},82117:function(n,f,t){var e=t(18470);function r(o){var a=this.__data__,i=e(a,o);return i<0?void 0:a[i][1]}n.exports=r},67518:function(n,f,t){var e=t(18470);function r(o){return e(this.__data__,o)>-1}n.exports=r},54705:function(n,f,t){var e=t(18470);function r(o,a){var i=this.__data__,s=e(i,o);return s<0?(++this.size,i.push([o,a])):i[s][1]=a,this}n.exports=r},24785:function(n,f,t){var e=t(1989),r=t(38407),o=t(57071);function a(){this.size=0,this.__data__={hash:new e,map:new(o||r),string:new e}}n.exports=a},11285:function(n,f,t){var e=t(45050);function r(o){var a=e(this,o).delete(o);return this.size-=a?1:0,a}n.exports=r},96e3:function(n,f,t){var e=t(45050);function r(o){return e(this,o).get(o)}n.exports=r},49916:function(n,f,t){var e=t(45050);function r(o){return e(this,o).has(o)}n.exports=r},95265:function(n,f,t){var e=t(45050);function r(o,a){var i=e(this,o),s=i.size;return i.set(o,a),this.size+=i.size==s?0:1,this}n.exports=r},68776:function(n){function f(t){var e=-1,r=Array(t.size);return t.forEach(function(o,a){r[++e]=[a,o]}),r}n.exports=f},42634:function(n){function f(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}n.exports=f},24523:function(n,f,t){var e=t(88306),r=500;function o(a){var i=e(a,function(u){return s.size===r&&s.clear(),u}),s=i.cache;return i}n.exports=o},94536:function(n,f,t){var e=t(10852),r=e(Object,"create");n.exports=r},86916:function(n,f,t){var e=t(5569),r=e(Object.keys,Object);n.exports=r},33498:function(n){function f(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}n.exports=f},31167:function(n,f,t){n=t.nmd(n);var e=t(31957),r=f&&!f.nodeType&&f,o=r&&!0&&n&&!n.nodeType&&n,a=o&&o.exports===r,i=a&&e.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();n.exports=s},2333:function(n){var f=Object.prototype,t=f.toString;function e(r){return t.call(r)}n.exports=e},5569:function(n){function f(t,e){return function(r){return t(e(r))}}n.exports=f},55639:function(n,f,t){var e=t(31957),r=typeof self=="object"&&self&&self.Object===Object&&self,o=e||r||Function("return this")();n.exports=o},90619:function(n){var f="__lodash_hash_undefined__";function t(e){return this.__data__.set(e,f),this}n.exports=t},72385:function(n){function f(t){return this.__data__.has(t)}n.exports=f},21814:function(n){function f(t){var e=-1,r=Array(t.size);return t.forEach(function(o){r[++e]=o}),r}n.exports=f},37465:function(n,f,t){var e=t(38407);function r(){this.__data__=new e,this.size=0}n.exports=r},63779:function(n){function f(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}n.exports=f},67599:function(n){function f(t){return this.__data__.get(t)}n.exports=f},44758:function(n){function f(t){return this.__data__.has(t)}n.exports=f},34309:function(n,f,t){var e=t(38407),r=t(57071),o=t(83369),a=200;function i(s,u){var c=this.__data__;if(c instanceof e){var d=c.__data__;if(!r||d.length<a-1)return d.push([s,u]),this.size=++c.size,this;c=this.__data__=new o(d)}return c.set(s,u),this.size=c.size,this}n.exports=i},55514:function(n,f,t){var e=t(24523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(r,function(u,c,d,v){s.push(d?v.replace(o,"$1"):c||u)}),s});n.exports=a},40327:function(n,f,t){var e=t(33448),r=1/0;function o(a){if(typeof a=="string"||e(a))return a;var i=a+"";return i=="0"&&1/a==-r?"-0":i}n.exports=o},80346:function(n){var f=Function.prototype,t=f.toString;function e(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}n.exports=e},77813:function(n){function f(t,e){return t===e||t!==t&&e!==e}n.exports=f},85564:function(n,f,t){var e=t(21078);function r(o){var a=o==null?0:o.length;return a?e(o,1):[]}n.exports=r},27361:function(n,f,t){var e=t(97786);function r(o,a,i){var s=o==null?void 0:e(o,a);return s===void 0?i:s}n.exports=r},79095:function(n,f,t){var e=t(13),r=t(222);function o(a,i){return a!=null&&r(a,i,e)}n.exports=o},6557:function(n){function f(t){return t}n.exports=f},35694:function(n,f,t){var e=t(9454),r=t(37005),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(u){return r(u)&&a.call(u,"callee")&&!i.call(u,"callee")};n.exports=s},1469:function(n){var f=Array.isArray;n.exports=f},98612:function(n,f,t){var e=t(23560),r=t(41780);function o(a){return a!=null&&r(a.length)&&!e(a)}n.exports=o},44144:function(n,f,t){n=t.nmd(n);var e=t(55639),r=t(95062),o=f&&!f.nodeType&&f,a=o&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===o,s=i?e.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||r;n.exports=c},23560:function(n,f,t){var e=t(44239),r=t(13218),o="[object AsyncFunction]",a="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function u(c){if(!r(c))return!1;var d=e(c);return d==a||d==i||d==o||d==s}n.exports=u},41780:function(n){var f=9007199254740991;function t(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=f}n.exports=t},13218:function(n){function f(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}n.exports=f},37005:function(n){function f(t){return t!=null&&typeof t=="object"}n.exports=f},33448:function(n,f,t){var e=t(44239),r=t(37005),o="[object Symbol]";function a(i){return typeof i=="symbol"||r(i)&&e(i)==o}n.exports=a},36719:function(n,f,t){var e=t(38749),r=t(7518),o=t(31167),a=o&&o.isTypedArray,i=a?r(a):e;n.exports=i},3674:function(n,f,t){var e=t(14636),r=t(280),o=t(98612);function a(i){return o(i)?e(i):r(i)}n.exports=a},81704:function(n,f,t){var e=t(14636),r=t(10313),o=t(98612);function a(i){return o(i)?e(i,!0):r(i)}n.exports=a},35161:function(n,f,t){var e=t(29932),r=t(67206),o=t(69199),a=t(1469);function i(s,u){var c=a(s)?e:o;return c(s,r(u,3))}n.exports=i},88306:function(n,f,t){var e=t(83369),r="Expected a function";function o(a,i){if(typeof a!="function"||i!=null&&typeof i!="function")throw new TypeError(r);var s=function(){var u=arguments,c=i?i.apply(this,u):u[0],d=s.cache;if(d.has(c))return d.get(c);var v=a.apply(this,u);return s.cache=d.set(c,v)||d,v};return s.cache=new(o.Cache||e),s}o.Cache=e,n.exports=o},39601:function(n,f,t){var e=t(40371),r=t(79152),o=t(15403),a=t(40327);function i(s){return o(s)?e(a(s)):r(s)}n.exports=i},70479:function(n){function f(){return[]}n.exports=f},95062:function(n){function f(){return!1}n.exports=f},79833:function(n,f,t){var e=t(80531);function r(o){return o==null?"":e(o)}n.exports=r},8501:function(n,f,t){var e=t(11989),r=t(55676),o=t(47529),a=t(50584),i=t(8575),s=f;s.request=function(u,c){typeof u=="string"?u=i.parse(u):u=o(u);var d=t.g.location.protocol.search(/^https?:$/)===-1?"http:":"",v=u.protocol||d,g=u.hostname||u.host,h=u.port,p=u.path||"/";g&&g.indexOf(":")!==-1&&(g="["+g+"]"),u.url=(g?v+"//"+g:"")+(h?":"+h:"")+p,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var l=new e(u);return c&&l.on("response",c),l},s.get=function(c,d){var v=s.request(c,d);return v.end(),v},s.ClientRequest=e,s.IncomingMessage=r.IncomingMessage,s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.globalAgent=new s.Agent,s.STATUS_CODES=a,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:function(n,f,t){f.fetch=a(t.g.fetch)&&a(t.g.ReadableStream),f.writableStream=a(t.g.WritableStream),f.abortController=a(t.g.AbortController);var e;function r(){if(e!==void 0)return e;if(t.g.XMLHttpRequest){e=new t.g.XMLHttpRequest;try{e.open("GET",t.g.XDomainRequest?"/":"https://example.com")}catch{e=null}}else e=null;return e}function o(i){var s=r();if(!s)return!1;try{return s.responseType=i,s.responseType===i}catch{}return!1}f.arraybuffer=f.fetch||o("arraybuffer"),f.msstream=!f.fetch&&o("ms-stream"),f.mozchunkedarraybuffer=!f.fetch&&o("moz-chunked-arraybuffer"),f.overrideMimeType=f.fetch||(r()?a(r().overrideMimeType):!1);function a(i){return typeof i=="function"}e=null},11989:function(n,f,t){var e=t(48764).Buffer,r=t(34155),o=t(8725),a=t(35717),i=t(55676),s=t(88473),u=i.IncomingMessage,c=i.readyStates;function d(p,l){return o.fetch&&l?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&p?"arraybuffer":"text"}var v=n.exports=function(p){var l=this;s.Writable.call(l),l._opts=p,l._body=[],l._headers={},p.auth&&l.setHeader("Authorization","Basic "+e.from(p.auth).toString("base64")),Object.keys(p.headers).forEach(function(b){l.setHeader(b,p.headers[b])});var y,T=!0;if(p.mode==="disable-fetch"||"requestTimeout"in p&&!o.abortController)T=!1,y=!0;else if(p.mode==="prefer-streaming")y=!1;else if(p.mode==="allow-wrong-content-type")y=!o.overrideMimeType;else if(!p.mode||p.mode==="default"||p.mode==="prefer-fast")y=!0;else throw new Error("Invalid value for opts.mode");l._mode=d(y,T),l._fetchTimer=null,l._socketTimeout=null,l._socketTimer=null,l.on("finish",function(){l._onFinish()})};a(v,s.Writable),v.prototype.setHeader=function(p,l){var y=this,T=p.toLowerCase();h.indexOf(T)===-1&&(y._headers[T]={name:p,value:l})},v.prototype.getHeader=function(p){var l=this._headers[p.toLowerCase()];return l?l.value:null},v.prototype.removeHeader=function(p){var l=this;delete l._headers[p.toLowerCase()]},v.prototype._onFinish=function(){var p=this;if(!p._destroyed){var l=p._opts;"timeout"in l&&l.timeout!==0&&p.setTimeout(l.timeout);var y=p._headers,T=null;l.method!=="GET"&&l.method!=="HEAD"&&(T=new Blob(p._body,{type:(y["content-type"]||{}).value||""}));var b=[];if(Object.keys(y).forEach(function(m){var E=y[m].name,O=y[m].value;Array.isArray(O)?O.forEach(function(P){b.push([E,P])}):b.push([E,O])}),p._mode==="fetch"){var S=null;if(o.abortController){var A=new AbortController;S=A.signal,p._fetchAbortController=A,"requestTimeout"in l&&l.requestTimeout!==0&&(p._fetchTimer=t.g.setTimeout(function(){p.emit("requestTimeout"),p._fetchAbortController&&p._fetchAbortController.abort()},l.requestTimeout))}t.g.fetch(p._opts.url,{method:p._opts.method,headers:b,body:T||void 0,mode:"cors",credentials:l.withCredentials?"include":"same-origin",signal:S}).then(function(m){p._fetchResponse=m,p._resetTimers(!1),p._connect()},function(m){p._resetTimers(!0),p._destroyed||p.emit("error",m)})}else{var x=p._xhr=new t.g.XMLHttpRequest;try{x.open(p._opts.method,p._opts.url,!0)}catch(m){r.nextTick(function(){p.emit("error",m)});return}"responseType"in x&&(x.responseType=p._mode),"withCredentials"in x&&(x.withCredentials=!!l.withCredentials),p._mode==="text"&&"overrideMimeType"in x&&x.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in l&&(x.timeout=l.requestTimeout,x.ontimeout=function(){p.emit("requestTimeout")}),b.forEach(function(m){x.setRequestHeader(m[0],m[1])}),p._response=null,x.onreadystatechange=function(){switch(x.readyState){case c.LOADING:case c.DONE:p._onXHRProgress();break}},p._mode==="moz-chunked-arraybuffer"&&(x.onprogress=function(){p._onXHRProgress()}),x.onerror=function(){p._destroyed||(p._resetTimers(!0),p.emit("error",new Error("XHR error")))};try{x.send(T)}catch(m){r.nextTick(function(){p.emit("error",m)});return}}}};function g(p){try{var l=p.status;return l!==null&&l!==0}catch{return!1}}v.prototype._onXHRProgress=function(){var p=this;p._resetTimers(!1),!(!g(p._xhr)||p._destroyed)&&(p._response||p._connect(),p._response._onXHRProgress(p._resetTimers.bind(p)))},v.prototype._connect=function(){var p=this;p._destroyed||(p._response=new u(p._xhr,p._fetchResponse,p._mode,p._resetTimers.bind(p)),p._response.on("error",function(l){p.emit("error",l)}),p.emit("response",p._response))},v.prototype._write=function(p,l,y){var T=this;T._body.push(p),y()},v.prototype._resetTimers=function(p){var l=this;t.g.clearTimeout(l._socketTimer),l._socketTimer=null,p?(t.g.clearTimeout(l._fetchTimer),l._fetchTimer=null):l._socketTimeout&&(l._socketTimer=t.g.setTimeout(function(){l.emit("timeout")},l._socketTimeout))},v.prototype.abort=v.prototype.destroy=function(p){var l=this;l._destroyed=!0,l._resetTimers(!0),l._response&&(l._response._destroyed=!0),l._xhr?l._xhr.abort():l._fetchAbortController&&l._fetchAbortController.abort(),p&&l.emit("error",p)},v.prototype.end=function(p,l,y){var T=this;typeof p=="function"&&(y=p,p=void 0),s.Writable.prototype.end.call(T,p,l,y)},v.prototype.setTimeout=function(p,l){var y=this;l&&y.once("timeout",l),y._socketTimeout=p,y._resetTimers(!1)},v.prototype.flushHeaders=function(){},v.prototype.setNoDelay=function(){},v.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},55676:function(n,f,t){var e=t(34155),r=t(48764).Buffer,o=t(8725),a=t(35717),i=t(88473),s=f.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=f.IncomingMessage=function(c,d,v,g){var h=this;if(i.Readable.call(h),h._mode=v,h.headers={},h.rawHeaders=[],h.trailers={},h.rawTrailers=[],h.on("end",function(){e.nextTick(function(){h.emit("close")})}),v==="fetch"){let A=function(){l.read().then(function(x){if(!h._destroyed){if(g(x.done),x.done){h.push(null);return}h.push(r.from(x.value)),A()}}).catch(function(x){g(!0),h._destroyed||h.emit("error",x)})};var S=A;if(h._fetchResponse=d,h.url=d.url,h.statusCode=d.status,h.statusMessage=d.statusText,d.headers.forEach(function(x,m){h.headers[m.toLowerCase()]=x,h.rawHeaders.push(m,x)}),o.writableStream){var p=new WritableStream({write:function(x){return g(!1),new Promise(function(m,E){h._destroyed?E():h.push(r.from(x))?m():h._resumeFetch=m})},close:function(){g(!0),h._destroyed||h.push(null)},abort:function(x){g(!0),h._destroyed||h.emit("error",x)}});try{d.body.pipeTo(p).catch(function(x){g(!0),h._destroyed||h.emit("error",x)});return}catch{}}var l=d.body.getReader();A()}else{h._xhr=c,h._pos=0,h.url=c.responseURL,h.statusCode=c.status,h.statusMessage=c.statusText;var y=c.getAllResponseHeaders().split(/\r?\n/);if(y.forEach(function(A){var x=A.match(/^([^:]+):\s*(.*)/);if(x){var m=x[1].toLowerCase();m==="set-cookie"?(h.headers[m]===void 0&&(h.headers[m]=[]),h.headers[m].push(x[2])):h.headers[m]!==void 0?h.headers[m]+=", "+x[2]:h.headers[m]=x[2],h.rawHeaders.push(x[1],x[2])}}),h._charset="x-user-defined",!o.overrideMimeType){var T=h.rawHeaders["mime-type"];if(T){var b=T.match(/;\s*charset=([^;])(;|$)/);b&&(h._charset=b[1].toLowerCase())}h._charset||(h._charset="utf-8")}}};a(u,i.Readable),u.prototype._read=function(){var c=this,d=c._resumeFetch;d&&(c._resumeFetch=null,d())},u.prototype._onXHRProgress=function(c){var d=this,v=d._xhr,g=null;switch(d._mode){case"text":if(g=v.responseText,g.length>d._pos){var h=g.substr(d._pos);if(d._charset==="x-user-defined"){for(var p=r.alloc(h.length),l=0;l<h.length;l++)p[l]=h.charCodeAt(l)&255;d.push(p)}else d.push(h,d._charset);d._pos=g.length}break;case"arraybuffer":if(v.readyState!==s.DONE||!v.response)break;g=v.response,d.push(r.from(new Uint8Array(g)));break;case"moz-chunked-arraybuffer":if(g=v.response,v.readyState!==s.LOADING||!g)break;d.push(r.from(new Uint8Array(g)));break;case"ms-stream":if(g=v.response,v.readyState!==s.LOADING)break;var y=new t.g.MSStreamReader;y.onprogress=function(){y.result.byteLength>d._pos&&(d.push(r.from(new Uint8Array(y.result.slice(d._pos)))),d._pos=y.result.byteLength)},y.onload=function(){c(!0),d.push(null)},y.readAsArrayBuffer(g);break}d._xhr.readyState===s.DONE&&d._mode!=="ms-stream"&&(c(!0),d.push(null))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[935],{18595:function(R,s,O){var i;i={value:!0};var r=O(47630),E=O(79911);const P=r.asCodec(t=>E.base16.parse(r.asString(t)),t=>E.base16.stringify(t).toLowerCase()),I=r.asCodec(t=>E.base32.parse(r.asString(t),{loose:!0}),t=>E.base32.stringify(t,{pad:!1})),c=r.asCodec(t=>E.base64.parse(r.asString(t)),t=>E.base64.stringify(t)),j=r.asObject({voucherId:r.asString,activates:r.asDate,created:r.asDate,ip:r.asString,ipDescription:r.asString,deviceDescription:r.asOptional(r.asString)}),T=r.asObject({min_length:r.asNumber,category:r.asValue("address","must","numeric","recovery2","string"),question:r.asString}),l=r.asObject({encryptionType:r.asNumber,data_base64:r.asString,iv_hex:r.asString}),m=r.asObject({salt_hex:P,n:r.asNumber,r:r.asNumber,p:r.asNumber}),B=r.asObject({loginRequest:r.asOptional(r.asObject({appId:r.asString}).withRest),publicKey:c,timeout:r.asOptional(r.asNumber)}).withRest,M=r.asObject({publicKey:c,box:l}),d=r.asArray(c);r.asObject({data:r.asUnknown,deviceDescription:r.asOptional(r.asString),otp:r.asOptional(r.asString),voucherId:r.asOptional(r.asString),voucherAuth:r.asOptional(c),loginId:r.asOptional(c),loginAuth:r.asOptional(c),userId:r.asOptional(c),passwordAuth:r.asOptional(c),pin2Id:r.asOptional(c),pin2Auth:r.asOptional(c),recovery2Id:r.asOptional(c),recovery2Auth:r.asOptional(d),loginIds:r.asOptional(r.asArray(c)),otpResetAuth:r.asOptional(r.asString),did:r.asOptional(r.asString),l1:r.asOptional(c),lp1:r.asOptional(c),lpin1:r.asOptional(c),lra1:r.asOptional(c),recoveryAuth:r.asOptional(c)}),r.asObject({results:r.asOptional(r.asUnknown),status_code:r.asNumber,message:r.asString}),r.asObject({otpTimeout:r.asOptional(r.asNumber,7*24*60*60),otpKey:I}),r.asObject({passwordAuth:c,passwordAuthBox:l,passwordAuthSnrp:m,passwordBox:l,passwordKeySnrp:m}),r.asObject({pin2Id:c}),r.asObject({pin2Id:r.asOptional(c),pin2Auth:r.asOptional(c),pin2Box:r.asOptional(l),pin2KeyBox:r.asOptional(l),pin2TextBox:l}),r.asObject({recovery2Id:c}),r.asObject({recovery2Id:c,recovery2Auth:d,recovery2Box:l,recovery2KeyBox:l,question2Box:l}),r.asObject({loginAuthBox:l,loginAuth:c}),r.asObject({userId:c,userTextBox:l}),r.asObject({approvedVouchers:r.asOptional(r.asArray(r.asString)),rejectedVouchers:r.asOptional(r.asArray(r.asString))}),r.asObject({keyBoxes:r.asArray(l),newSyncKeys:r.asOptional(r.asArray(r.asString),()=>[])}),r.asObject({appId:r.asString,loginId:c,parentBox:r.asOptional(l)}).withRest,r.asObject({request:B,replies:r.asArray(M)});const a=r.asObject({appId:r.asString,created:r.asDate,loginId:c,children:r.asOptional(r.asArray(t=>a(t))),parentBox:r.asOptional(l),otpKey:r.asOptional(I),otpResetDate:r.asOptional(r.asDate),otpTimeout:r.asOptional(r.asNumber),passwordAuthBox:r.asOptional(l),passwordAuthSnrp:r.asOptional(m),passwordBox:r.asOptional(l),passwordKeySnrp:r.asOptional(m),pin2Box:r.asOptional(l),pin2KeyBox:r.asOptional(l),pin2TextBox:r.asOptional(l),question2Box:r.asOptional(l),recovery2Box:r.asOptional(l),recovery2KeyBox:r.asOptional(l),loginAuthBox:r.asOptional(l),userId:r.asOptional(c),userTextBox:r.asOptional(l),pendingVouchers:r.asOptional(r.asArray(j),()=>[]),keyBoxes:r.asOptional(r.asArray(l)),mnemonicBox:r.asOptional(l),rootKeyBox:r.asOptional(l),syncKeyBox:r.asOptional(l)});r.asArray(r.asObject({loginId:c,otpResetPending:r.asOptional(r.asBoolean,!1),pendingVouchers:r.asOptional(r.asArray(j),()=>[]),recovery2Corrupt:r.asOptional(r.asBoolean,!1)}));const u=r.asObject({login_id:r.asOptional(c),otp_reset_auth:r.asOptional(r.asString),otp_timeout_date:r.asOptional(r.asDate),reason:r.asOptional(r.asValue("ip","otp"),"otp"),voucher_activates:r.asOptional(r.asDate),voucher_auth:r.asOptional(c),voucher_id:r.asOptional(r.asString)});r.asObject({otpResetDate:r.asDate});const C=r.asObject({wait_seconds:r.asOptional(r.asNumber)});r.asArray(T),r.asObject({question2Box:l}),r.asObject({passwordAuthSnrp:r.asOptional(m),questionBox:r.asOptional(l),questionKeySnrp:r.asOptional(m),recoveryAuthSnrp:r.asOptional(m)});function g(t){const{currencyInfo:e,allTokens:o}=t;let n=t.tokenId;n==null&&t.currencyCode!=null&&t.currencyCode!==e.currencyCode&&(n=Object.keys(o).find(f=>o[f].currencyCode===t.currencyCode));const{currencyCode:p}=n==null?e:o[n];return{currencyCode:p,tokenId:n}}function v(t="Please send a larger amount"){if(!(this instanceof v))throw new TypeError("Class constructor DustSpendError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:v,configurable:!0,writable:!0}),e}return o(t),e.name="DustSpendError",e}function _(t={}){if(!(this instanceof _))throw new TypeError("Class constructor InsufficientFundsError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:_,configurable:!0,writable:!0}),e}if(typeof t=="string")t.length>5?o(t):(o(`Insufficient ${t}`),e.currencyCode=t);else{const{currencyCode:n,networkFee:p}=t;o(`Insufficient ${n!=null?n:"funds"}`),e.currencyCode=n,e.networkFee=p}return e.name="InsufficientFundsError",e}function b(t="Cannot reach the network"){if(!(this instanceof b))throw new TypeError("Class constructor NetworkError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:b,configurable:!0,writable:!0}),e}return o(t),e.name="NetworkError",e}function y(t="Unable to create zero-amount transaction."){if(!(this instanceof y))throw new TypeError("Class constructor NoAmountSpecifiedError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:y,configurable:!0,writable:!0}),e}return o(t),e.name="NoAmountSpecifiedError",e}function S(t="The application is too old. Please upgrade."){if(!(this instanceof S))throw new TypeError("Class constructor ObsoleteApiError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:S,configurable:!0,writable:!0}),e}return o(t),e.name="ObsoleteApiError",e}function h(t,e="Invalid OTP token"){if(!(this instanceof h))throw new TypeError("Class constructor OtpError cannot be invoked without 'new'");var o;function n(f){return o=new Error(f),Object.defineProperty(o,"constructor",{value:h,configurable:!0,writable:!0}),o}n(e),o.name="OtpError",o.reason="otp";const p=r.asMaybe(u)(t);if(p!=null)return p.login_id!=null&&(o.loginId=E.base64.stringify(p.login_id)),o.resetToken=p.otp_reset_auth,o.reason=p.reason,o.resetDate=p.otp_timeout_date,o.voucherActivates=p.voucher_activates,p.voucher_auth!=null&&(o.voucherAuth=E.base64.stringify(p.voucher_auth)),o.voucherId=p.voucher_id,o}function A(t,e="Invalid password"){if(!(this instanceof A))throw new TypeError("Class constructor PasswordError cannot be invoked without 'new'");var o;function n(f){return o=new Error(f),Object.defineProperty(o,"constructor",{value:A,configurable:!0,writable:!0}),o}n(e),o.name="PasswordError";const p=r.asMaybe(C)(t);if(p!=null)return o.wait=p.wait_seconds,o}function D(t="Not enough confirmed funds"){if(!(this instanceof D))throw new TypeError("Class constructor PendingFundsError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:D,configurable:!0,writable:!0}),e}return o(t),e.name="PendingFundsError",e}function N(t="Wallets can not be the same currency"){if(!(this instanceof N))throw new TypeError("Class constructor SameCurrencyError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:N,configurable:!0,writable:!0}),e}return o(t),e.name="SameCurrencyError",e}function $(t="Spending to self"){if(!(this instanceof $))throw new TypeError("Class constructor SpendToSelfError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:$,configurable:!0,writable:!0}),e}return o(t),e.name="SpendToSelfError",e}function L(t,e,o="from"){if(!(this instanceof L))throw new TypeError("Class constructor SwapAboveLimitError cannot be invoked without 'new'");var n;function p(f){return n=new Error(f),Object.defineProperty(n,"constructor",{value:L,configurable:!0,writable:!0}),n}return p("Amount is too high"),n.name="SwapAboveLimitError",n.pluginId=t.pluginId,n.nativeMax=e,n.direction=o,n}function F(t,e,o="from"){if(!(this instanceof F))throw new TypeError("Class constructor SwapBelowLimitError cannot be invoked without 'new'");var n;function p(f){return n=new Error(f),Object.defineProperty(n,"constructor",{value:F,configurable:!0,writable:!0}),n}return p("Amount is too low"),n.name="SwapBelowLimitError",n.pluginId=t.pluginId,n.nativeMin=e,n.direction=o,n}function U(t,e,o){if(!(this instanceof U))throw new TypeError("Class constructor SwapCurrencyError cannot be invoked without 'new'");var n;function p(f){return n=new Error(f),Object.defineProperty(n,"constructor",{value:U,configurable:!0,writable:!0}),n}if(typeof e=="string")o=o!=null?o:"unknown",p(`${t.displayName} does not support ${e} to ${o}`),n.name="SwapCurrencyError",n.pluginId=t.pluginId,n.fromCurrency=e,n.toCurrency=o;else{const f=g({allTokens:e.fromWallet.currencyConfig.allTokens,currencyInfo:e.fromWallet.currencyInfo,currencyCode:e.fromCurrencyCode,tokenId:e.fromTokenId}),k=g({allTokens:e.toWallet.currencyConfig.allTokens,currencyInfo:e.toWallet.currencyInfo,currencyCode:e.toCurrencyCode,tokenId:e.toTokenId}),tr=f.tokenId==null?f.currencyCode:`${f.currencyCode} (${f.tokenId})`,ar=k.tokenId==null?k.currencyCode:`${k.currencyCode} (${k.tokenId})`;p(`${t.displayName} does not support ${tr} to ${ar}`),n.name="SwapCurrencyError",n.pluginId=t.pluginId,n.fromCurrency=f.currencyCode,n.fromTokenId=f.tokenId,n.toCurrency=k.currencyCode,n.toTokenId=k.tokenId}return n}function x(t,e){if(!(this instanceof x))throw new TypeError("Class constructor SwapPermissionError cannot be invoked without 'new'");var o;function n(p){return o=new Error(p),Object.defineProperty(o,"constructor",{value:x,configurable:!0,writable:!0}),o}return e!=null?n(e):n("You are not allowed to make this trade"),o.name="SwapPermissionError",o.pluginId=t.pluginId,o.reason=e,o}function K(t="Invalid username"){if(!(this instanceof K))throw new TypeError("Class constructor UsernameError cannot be invoked without 'new'");var e;function o(n){return e=new Error(n),Object.defineProperty(e,"constructor",{value:K,configurable:!0,writable:!0}),e}return o(t),e.name="UsernameError",e}function w(t){return function(o){if(o instanceof Error&&o.name===t)return o}}const V=w("DustSpendError"),W=w("InsufficientFundsError"),Y=w("NetworkError"),z=w("NoAmountSpecifiedError"),H=w("ObsoleteApiError"),Q=w("OtpError"),q=w("PasswordError"),X=w("PendingFundsError"),G=w("SameCurrencyError"),J=w("SpendToSelfError"),Z=w("SwapAboveLimitError"),rr=w("SwapBelowLimitError"),er=w("SwapCurrencyError"),nr=w("SwapPermissionError"),or=w("UsernameError");s.Yy=v,s.C_=_,s.F7=b,s.$D=y,s.D1=S,s.XH=h,s.Yr=A,s.Vq=D,s.AQ=N,s.l0=$,s.I9=L,s.q0=F,s.Iz=U,s.d2=x,s.cI=K,s.y$=V,s.X7=W,s.g4=Y,s.xz=z,s.fT=H,s.zQ=Q,s.sl=q,s.mc=X,s.q=G,s.SS=J,s.Yl=Z,s.Gq=rr,s.UW=er,s.J_=nr,s.L=or},79911:function(R,s){Object.defineProperty(s,"__esModule",{value:!0});function O(d,a,u){var C;if(u===void 0&&(u={}),!a.codes){a.codes={};for(var g=0;g<a.chars.length;++g)a.codes[a.chars[g]]=g}if(!u.loose&&d.length*a.bits&7)throw new SyntaxError("Invalid padding");for(var v=d.length;d[v-1]==="=";)if(--v,!u.loose&&!((d.length-v)*a.bits&7))throw new SyntaxError("Invalid padding");for(var _=new((C=u.out)!=null?C:Uint8Array)(v*a.bits/8|0),b=0,y=0,S=0,h=0;h<v;++h){var A=a.codes[d[h]];if(A===void 0)throw new SyntaxError("Invalid character "+d[h]);y=y<<a.bits|A,b+=a.bits,b>=8&&(b-=8,_[S++]=255&y>>b)}if(b>=a.bits||255&y<<8-b)throw new SyntaxError("Unexpected end of data");return _}function i(d,a,u){u===void 0&&(u={});for(var C=u,g=C.pad,v=g===void 0?!0:g,_=(1<<a.bits)-1,b="",y=0,S=0,h=0;h<d.length;++h)for(S=S<<8|255&d[h],y+=8;y>a.bits;)y-=a.bits,b+=a.chars[_&S>>y];if(y&&(b+=a.chars[_&S<<a.bits-y]),v)for(;b.length*a.bits&7;)b+="=";return b}var r={chars:"0123456789ABCDEF",bits:4},E={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bits:5},P={chars:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bits:5},I={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bits:6},c={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bits:6},j={parse:function(a,u){return O(a.toUpperCase(),r,u)},stringify:function(a,u){return i(a,r,u)}},T={parse:function(a,u){return u===void 0&&(u={}),O(u.loose?a.toUpperCase().replace(/0/g,"O").replace(/1/g,"L").replace(/8/g,"B"):a,E,u)},stringify:function(a,u){return i(a,E,u)}},l={parse:function(a,u){return O(a,P,u)},stringify:function(a,u){return i(a,P,u)}},m={parse:function(a,u){return O(a,I,u)},stringify:function(a,u){return i(a,I,u)}},B={parse:function(a,u){return O(a,c,u)},stringify:function(a,u){return i(a,c,u)}},M={parse:O,stringify:i};s.base16=j,s.base32=T,s.base32hex=l,s.base64=m,s.base64url=B,s.codec=M},94935:function(R,s,O){O.d(s,{$D:function(){return I},C_:function(){return E},l0:function(){return B}});var i=O(18595);const r=i.Yy,E=i.C_,P=i.F7,I=i.$D,c=i.D1,j=i.XH,T=i.Yr,l=i.Vq,m=i.AQ,B=i.l0,M=i.I9,d=i.q0,a=i.Iz,u=i.d2,C=i.cI,g=i.y$,v=i.X7,_=i.g4,b=i.xz,y=i.fT,S=i.zQ,h=i.sl,A=i.mc,D=i.q,N=i.SS,$=i.Yl,L=i.Gq,F=i.UW,U=i.J_,x=i.L}}]);
@@ -1,4 +0,0 @@
1
- (self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[944],{75443:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});function v(g){return function(f){var a=g();return a.update(f),r.from(a.digest())}}e.createHashFunction=v},82192:function(K,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(75443),v=y(2973);e.keccak224=r.createHashFunction(function(){return v("keccak224")}),e.keccak256=r.createHashFunction(function(){return v("keccak256")}),e.keccak384=r.createHashFunction(function(){return v("keccak384")}),e.keccak512=r.createHashFunction(function(){return v("keccak512")})},2973:function(K,e,y){K.exports=y(71224)(y(66514))},71224:function(K,e,y){const r=y(73867),v=y(48425);K.exports=function(g){const f=r(g),a=v(g);return function(t,l){switch(typeof t=="string"?t.toLowerCase():t){case"keccak224":return new f(1152,448,null,224,l);case"keccak256":return new f(1088,512,null,256,l);case"keccak384":return new f(832,768,null,384,l);case"keccak512":return new f(576,1024,null,512,l);case"sha3-224":return new f(1152,448,6,224,l);case"sha3-256":return new f(1088,512,6,256,l);case"sha3-384":return new f(832,768,6,384,l);case"sha3-512":return new f(576,1024,6,512,l);case"shake128":return new a(1344,256,31,l);case"shake256":return new a(1088,512,31,l);default:throw new Error("Invald algorithm: "+t)}}}},73867:function(K,e,y){var r=y(48764).Buffer;const{Transform:v}=y(88473);K.exports=g=>class cr extends v{constructor(a,t,l,i,u){super(u),this._rate=a,this._capacity=t,this._delimitedSuffix=l,this._hashBitLength=i,this._options=u,this._state=new g,this._state.initialize(a,t),this._finalized=!1}_transform(a,t,l){let i=null;try{this.update(a,t)}catch(u){i=u}l(i)}_flush(a){let t=null;try{this.push(this.digest())}catch(l){t=l}a(t)}update(a,t){if(!r.isBuffer(a)&&typeof a!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return r.isBuffer(a)||(a=r.from(a,t)),this._state.absorb(a),this}digest(a){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return a!==void 0&&(t=t.toString(a)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const a=new cr(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(a._state),a._finalized=this._finalized,a}}},48425:function(K,e,y){var r=y(48764).Buffer;const{Transform:v}=y(88473);K.exports=g=>class lr extends v{constructor(a,t,l,i){super(i),this._rate=a,this._capacity=t,this._delimitedSuffix=l,this._options=i,this._state=new g,this._state.initialize(a,t),this._finalized=!1}_transform(a,t,l){let i=null;try{this.update(a,t)}catch(u){i=u}l(i)}_flush(){}_read(a){this.push(this.squeeze(a))}update(a,t){if(!r.isBuffer(a)&&typeof a!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return r.isBuffer(a)||(a=r.from(a,t)),this._state.absorb(a),this}squeeze(a,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let l=this._state.squeeze(a);return t!==void 0&&(l=l.toString(t)),l}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const a=new lr(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(a._state),a._finalized=this._finalized,a}}},29175:function(K,e){const y=[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];e.p1600=function(r){for(let v=0;v<24;++v){const g=r[0]^r[10]^r[20]^r[30]^r[40],f=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],t=r[3]^r[13]^r[23]^r[33]^r[43],l=r[4]^r[14]^r[24]^r[34]^r[44],i=r[5]^r[15]^r[25]^r[35]^r[45],u=r[6]^r[16]^r[26]^r[36]^r[46],n=r[7]^r[17]^r[27]^r[37]^r[47],o=r[8]^r[18]^r[28]^r[38]^r[48],c=r[9]^r[19]^r[29]^r[39]^r[49];let d=o^(a<<1|t>>>31),x=c^(t<<1|a>>>31);const b=r[0]^d,s=r[1]^x,E=r[10]^d,h=r[11]^x,w=r[20]^d,m=r[21]^x,A=r[30]^d,S=r[31]^x,P=r[40]^d,L=r[41]^x;d=g^(l<<1|i>>>31),x=f^(i<<1|l>>>31);const k=r[2]^d,R=r[3]^x,O=r[12]^d,C=r[13]^x,B=r[22]^d,U=r[23]^x,I=r[32]^d,p=r[33]^x,T=r[42]^d,N=r[43]^x;d=a^(u<<1|n>>>31),x=t^(n<<1|u>>>31);const z=r[4]^d,_=r[5]^x,V=r[14]^d,H=r[15]^x,ze=r[24]^d,_e=r[25]^x,Ve=r[34]^d,He=r[35]^x,Me=r[44]^d,je=r[45]^x;d=l^(o<<1|c>>>31),x=i^(c<<1|o>>>31);const De=r[6]^d,Ze=r[7]^x,We=r[16]^d,Fe=r[17]^x,Ye=r[26]^d,Je=r[27]^x,$e=r[36]^d,Ge=r[37]^x,Xe=r[46]^d,Qe=r[47]^x;d=u^(g<<1|f>>>31),x=n^(f<<1|g>>>31);const qe=r[8]^d,er=r[9]^x,rr=r[18]^d,nr=r[19]^x,tr=r[28]^d,ir=r[29]^x,fr=r[38]^d,ar=r[39]^x,ur=r[48]^d,or=r[49]^x,M=b,j=s,D=h<<4|E>>>28,Z=E<<4|h>>>28,W=w<<3|m>>>29,F=m<<3|w>>>29,Y=S<<9|A>>>23,J=A<<9|S>>>23,$=P<<18|L>>>14,G=L<<18|P>>>14,X=k<<1|R>>>31,Q=R<<1|k>>>31,q=C<<12|O>>>20,ee=O<<12|C>>>20,re=B<<10|U>>>22,ne=U<<10|B>>>22,te=p<<13|I>>>19,ie=I<<13|p>>>19,fe=T<<2|N>>>30,ae=N<<2|T>>>30,ue=_<<30|z>>>2,oe=z<<30|_>>>2,ce=V<<6|H>>>26,le=H<<6|V>>>26,se=_e<<11|ze>>>21,he=ze<<11|_e>>>21,de=Ve<<15|He>>>17,xe=He<<15|Ve>>>17,ve=je<<29|Me>>>3,ye=Me<<29|je>>>3,ge=De<<28|Ze>>>4,we=Ze<<28|De>>>4,me=Fe<<23|We>>>9,be=We<<23|Fe>>>9,Ee=Ye<<25|Je>>>7,Ae=Je<<25|Ye>>>7,Se=$e<<21|Ge>>>11,Ke=Ge<<21|$e>>>11,Pe=Qe<<24|Xe>>>8,ke=Xe<<24|Qe>>>8,Be=qe<<27|er>>>5,Ce=er<<27|qe>>>5,Le=rr<<20|nr>>>12,pe=nr<<20|rr>>>12,Ue=ir<<7|tr>>>25,Re=tr<<7|ir>>>25,Te=fr<<8|ar>>>24,Ie=ar<<8|fr>>>24,Ne=ur<<14|or>>>18,Oe=or<<14|ur>>>18;r[0]=M^~q&se,r[1]=j^~ee&he,r[10]=ge^~Le&W,r[11]=we^~pe&F,r[20]=X^~ce&Ee,r[21]=Q^~le&Ae,r[30]=Be^~D&re,r[31]=Ce^~Z&ne,r[40]=ue^~me&Ue,r[41]=oe^~be&Re,r[2]=q^~se&Se,r[3]=ee^~he&Ke,r[12]=Le^~W&te,r[13]=pe^~F&ie,r[22]=ce^~Ee&Te,r[23]=le^~Ae&Ie,r[32]=D^~re&de,r[33]=Z^~ne&xe,r[42]=me^~Ue&Y,r[43]=be^~Re&J,r[4]=se^~Se&Ne,r[5]=he^~Ke&Oe,r[14]=W^~te&ve,r[15]=F^~ie&ye,r[24]=Ee^~Te&$,r[25]=Ae^~Ie&G,r[34]=re^~de&Pe,r[35]=ne^~xe&ke,r[44]=Ue^~Y&fe,r[45]=Re^~J&ae,r[6]=Se^~Ne&M,r[7]=Ke^~Oe&j,r[16]=te^~ve&ge,r[17]=ie^~ye&we,r[26]=Te^~$&X,r[27]=Ie^~G&Q,r[36]=de^~Pe&Be,r[37]=xe^~ke&Ce,r[46]=Y^~fe&ue,r[47]=J^~ae&oe,r[8]=Ne^~M&q,r[9]=Oe^~j&ee,r[18]=ve^~ge&Le,r[19]=ye^~we&pe,r[28]=$^~X&ce,r[29]=G^~Q&le,r[38]=Pe^~Be&D,r[39]=ke^~Ce&Z,r[48]=fe^~ue&me,r[49]=ae^~oe&be,r[0]^=y[v*2],r[1]^=y[v*2+1]}}},66514:function(K,e,y){var r=y(48764).Buffer;const v=y(29175);function g(){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}g.prototype.initialize=function(f,a){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=f/8,this.count=0,this.squeezing=!1},g.prototype.absorb=function(f){for(let a=0;a<f.length;++a)this.state[~~(this.count/4)]^=f[a]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(v.p1600(this.state),this.count=0)},g.prototype.absorbLastFewBits=function(f){this.state[~~(this.count/4)]^=f<<8*(this.count%4),(f&128)!==0&&this.count===this.blockSize-1&&v.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),v.p1600(this.state),this.count=0,this.squeezing=!0},g.prototype.squeeze=function(f){this.squeezing||this.absorbLastFewBits(1);const a=r.alloc(f);for(let t=0;t<f;++t)a[t]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(v.p1600(this.state),this.count=0);return a},g.prototype.copy=function(f){for(let a=0;a<50;++a)f.state[a]=this.state[a];f.blockSize=this.blockSize,f.count=this.count,f.squeezing=this.squeezing},K.exports=g},53242:function(K,e,y){K.exports=y(39203)(y(25166))},25166:function(K,e,y){const r=y(86266).ec,v=new r("secp256k1"),g=v.curve,f=g.n.constructor;function a(u,n){let o=new f(n);if(o.cmp(g.p)>=0)return null;o=o.toRed(g.red);let c=o.redSqr().redIMul(o).redIAdd(g.b).redSqrt();return u===3!==c.isOdd()&&(c=c.redNeg()),v.keyPair({pub:{x:o,y:c}})}function t(u,n,o){let c=new f(n),d=new f(o);if(c.cmp(g.p)>=0||d.cmp(g.p)>=0||(c=c.toRed(g.red),d=d.toRed(g.red),(u===6||u===7)&&d.isOdd()!==(u===7)))return null;const x=c.redSqr().redIMul(c);return d.redSqr().redISub(x.redIAdd(g.b)).isZero()?v.keyPair({pub:{x:c,y:d}}):null}function l(u){const n=u[0];switch(n){case 2:case 3:return u.length!==33?null:a(n,u.subarray(1,33));case 4:case 6:case 7:return u.length!==65?null:t(n,u.subarray(1,33),u.subarray(33,65));default:return null}}function i(u,n){const o=n.encode(null,u.length===33);for(let c=0;c<u.length;++c)u[c]=o[c]}K.exports={contextRandomize(){return 0},privateKeyVerify(u){const n=new f(u);return n.cmp(g.n)<0&&!n.isZero()?0:1},privateKeyNegate(u){const n=new f(u),o=g.n.sub(n).umod(g.n).toArrayLike(Uint8Array,"be",32);return u.set(o),0},privateKeyTweakAdd(u,n){const o=new f(n);if(o.cmp(g.n)>=0||(o.iadd(new f(u)),o.cmp(g.n)>=0&&o.isub(g.n),o.isZero()))return 1;const c=o.toArrayLike(Uint8Array,"be",32);return u.set(c),0},privateKeyTweakMul(u,n){let o=new f(n);if(o.cmp(g.n)>=0||o.isZero())return 1;o.imul(new f(u)),o.cmp(g.n)>=0&&(o=o.umod(g.n));const c=o.toArrayLike(Uint8Array,"be",32);return u.set(c),0},publicKeyVerify(u){return l(u)===null?1:0},publicKeyCreate(u,n){const o=new f(n);if(o.cmp(g.n)>=0||o.isZero())return 1;const c=v.keyFromPrivate(n).getPublic();return i(u,c),0},publicKeyConvert(u,n){const o=l(n);if(o===null)return 1;const c=o.getPublic();return i(u,c),0},publicKeyNegate(u,n){const o=l(n);if(o===null)return 1;const c=o.getPublic();return c.y=c.y.redNeg(),i(u,c),0},publicKeyCombine(u,n){const o=new Array(n.length);for(let d=0;d<n.length;++d)if(o[d]=l(n[d]),o[d]===null)return 1;let c=o[0].getPublic();for(let d=1;d<o.length;++d)c=c.add(o[d].pub);return c.isInfinity()?2:(i(u,c),0)},publicKeyTweakAdd(u,n,o){const c=l(n);if(c===null)return 1;if(o=new f(o),o.cmp(g.n)>=0)return 2;const d=c.getPublic().add(g.g.mul(o));return d.isInfinity()?2:(i(u,d),0)},publicKeyTweakMul(u,n,o){const c=l(n);if(c===null)return 1;if(o=new f(o),o.cmp(g.n)>=0||o.isZero())return 2;const d=c.getPublic().mul(o);return i(u,d),0},signatureNormalize(u){const n=new f(u.subarray(0,32)),o=new f(u.subarray(32,64));return n.cmp(g.n)>=0||o.cmp(g.n)>=0?1:(o.cmp(v.nh)===1&&u.set(g.n.sub(o).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(u,n){const o=n.subarray(0,32),c=n.subarray(32,64);if(new f(o).cmp(g.n)>=0||new f(c).cmp(g.n)>=0)return 1;const{output:d}=u;let x=d.subarray(4,4+33);x[0]=0,x.set(o,1);let b=33,s=0;for(;b>1&&x[s]===0&&!(x[s+1]&128);--b,++s);if(x=x.subarray(s),x[0]&128||b>1&&x[0]===0&&!(x[1]&128))return 1;let E=d.subarray(6+33,6+33+33);E[0]=0,E.set(c,1);let h=33,w=0;for(;h>1&&E[w]===0&&!(E[w+1]&128);--h,++w);return E=E.subarray(w),E[0]&128||h>1&&E[0]===0&&!(E[1]&128)?1:(u.outputlen=6+b+h,d[0]=48,d[1]=u.outputlen-2,d[2]=2,d[3]=x.length,d.set(x,4),d[4+b]=2,d[5+b]=E.length,d.set(E,6+b),0)},signatureImport(u,n){if(n.length<8||n.length>72||n[0]!==48||n[1]!==n.length-2||n[2]!==2)return 1;const o=n[3];if(o===0||5+o>=n.length||n[4+o]!==2)return 1;const c=n[5+o];if(c===0||6+o+c!==n.length||n[4]&128||o>1&&n[4]===0&&!(n[5]&128)||n[o+6]&128||c>1&&n[o+6]===0&&!(n[o+7]&128))return 1;let d=n.subarray(4,4+o);if(d.length===33&&d[0]===0&&(d=d.subarray(1)),d.length>32)return 1;let x=n.subarray(6+o);if(x.length===33&&x[0]===0&&(x=x.slice(1)),x.length>32)throw new Error("S length is too long");let b=new f(d);b.cmp(g.n)>=0&&(b=new f(0));let s=new f(n.subarray(6+o));return s.cmp(g.n)>=0&&(s=new f(0)),u.set(b.toArrayLike(Uint8Array,"be",32),0),u.set(s.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(u,n,o,c,d){if(d){const s=d;d=E=>{const h=s(n,o,null,c,E);if(!(h instanceof Uint8Array&&h.length===32))throw new Error("This is the way");return new f(h)}}const x=new f(o);if(x.cmp(g.n)>=0||x.isZero())return 1;let b;try{b=v.sign(n,o,{canonical:!0,k:d,pers:c})}catch{return 1}return u.signature.set(b.r.toArrayLike(Uint8Array,"be",32),0),u.signature.set(b.s.toArrayLike(Uint8Array,"be",32),32),u.recid=b.recoveryParam,0},ecdsaVerify(u,n,o){const c={r:u.subarray(0,32),s:u.subarray(32,64)},d=new f(c.r),x=new f(c.s);if(d.cmp(g.n)>=0||x.cmp(g.n)>=0)return 1;if(x.cmp(v.nh)===1||d.isZero()||x.isZero())return 3;const b=l(o);if(b===null)return 2;const s=b.getPublic();return v.verify(n,c,s)?0:3},ecdsaRecover(u,n,o,c){const d={r:n.slice(0,32),s:n.slice(32,64)},x=new f(d.r),b=new f(d.s);if(x.cmp(g.n)>=0||b.cmp(g.n)>=0)return 1;if(x.isZero()||b.isZero())return 2;let s;try{s=v.recoverPubKey(c,d,o)}catch{return 2}return i(u,s),0},ecdh(u,n,o,c,d,x,b){const s=l(n);if(s===null)return 1;const E=new f(o);if(E.cmp(g.n)>=0||E.isZero())return 2;const h=s.getPublic().mul(E);if(d===void 0){const w=h.encode(null,!0),m=v.hash().update(w).digest();for(let A=0;A<32;++A)u[A]=m[A]}else{x||(x=new Uint8Array(32));const w=h.getX().toArray("be",32);for(let P=0;P<32;++P)x[P]=w[P];b||(b=new Uint8Array(32));const m=h.getY().toArray("be",32);for(let P=0;P<32;++P)b[P]=m[P];const A=d(x,b,c);if(!(A instanceof Uint8Array&&A.length===u.length))return 2;u.set(A)}return 0}}},39203:function(K){const e={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function y(a,t){if(!a)throw new Error(t)}function r(a,t,l){if(y(t instanceof Uint8Array,`Expected ${a} to be an Uint8Array`),l!==void 0)if(Array.isArray(l)){const i=l.join(", "),u=`Expected ${a} to be an Uint8Array with length [${i}]`;y(l.includes(t.length),u)}else{const i=`Expected ${a} to be an Uint8Array with length ${l}`;y(t.length===l,i)}}function v(a){y(f(a)==="Boolean","Expected compressed to be a Boolean")}function g(a=l=>new Uint8Array(l),t){return typeof a=="function"&&(a=a(t)),r("output",a,t),a}function f(a){return Object.prototype.toString.call(a).slice(8,-1)}K.exports=a=>({contextRandomize(t){switch(y(t===null||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),t!==null&&r("seed",t,32),a.contextRandomize(t)){case 1:throw new Error(e.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(t){return r("private key",t,32),a.privateKeyVerify(t)===0},privateKeyNegate(t){switch(r("private key",t,32),a.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(e.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,l){switch(r("private key",t,32),r("tweak",l,32),a.privateKeyTweakAdd(t,l)){case 0:return t;case 1:throw new Error(e.TWEAK_ADD)}},privateKeyTweakMul(t,l){switch(r("private key",t,32),r("tweak",l,32),a.privateKeyTweakMul(t,l)){case 0:return t;case 1:throw new Error(e.TWEAK_MUL)}},publicKeyVerify(t){return r("public key",t,[33,65]),a.publicKeyVerify(t)===0},publicKeyCreate(t,l=!0,i){switch(r("private key",t,32),v(l),i=g(i,l?33:65),a.publicKeyCreate(i,t)){case 0:return i;case 1:throw new Error(e.SECKEY_INVALID);case 2:throw new Error(e.PUBKEY_SERIALIZE)}},publicKeyConvert(t,l=!0,i){switch(r("public key",t,[33,65]),v(l),i=g(i,l?33:65),a.publicKeyConvert(i,t)){case 0:return i;case 1:throw new Error(e.PUBKEY_PARSE);case 2:throw new Error(e.PUBKEY_SERIALIZE)}},publicKeyNegate(t,l=!0,i){switch(r("public key",t,[33,65]),v(l),i=g(i,l?33:65),a.publicKeyNegate(i,t)){case 0:return i;case 1:throw new Error(e.PUBKEY_PARSE);case 2:throw new Error(e.IMPOSSIBLE_CASE);case 3:throw new Error(e.PUBKEY_SERIALIZE)}},publicKeyCombine(t,l=!0,i){y(Array.isArray(t),"Expected public keys to be an Array"),y(t.length>0,"Expected public keys array will have more than zero items");for(const u of t)r("public key",u,[33,65]);switch(v(l),i=g(i,l?33:65),a.publicKeyCombine(i,t)){case 0:return i;case 1:throw new Error(e.PUBKEY_PARSE);case 2:throw new Error(e.PUBKEY_COMBINE);case 3:throw new Error(e.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,l,i=!0,u){switch(r("public key",t,[33,65]),r("tweak",l,32),v(i),u=g(u,i?33:65),a.publicKeyTweakAdd(u,t,l)){case 0:return u;case 1:throw new Error(e.PUBKEY_PARSE);case 2:throw new Error(e.TWEAK_ADD)}},publicKeyTweakMul(t,l,i=!0,u){switch(r("public key",t,[33,65]),r("tweak",l,32),v(i),u=g(u,i?33:65),a.publicKeyTweakMul(u,t,l)){case 0:return u;case 1:throw new Error(e.PUBKEY_PARSE);case 2:throw new Error(e.TWEAK_MUL)}},signatureNormalize(t){switch(r("signature",t,64),a.signatureNormalize(t)){case 0:return t;case 1:throw new Error(e.SIG_PARSE)}},signatureExport(t,l){r("signature",t,64),l=g(l,72);const i={output:l,outputlen:72};switch(a.signatureExport(i,t)){case 0:return l.slice(0,i.outputlen);case 1:throw new Error(e.SIG_PARSE);case 2:throw new Error(e.IMPOSSIBLE_CASE)}},signatureImport(t,l){switch(r("signature",t),l=g(l,64),a.signatureImport(l,t)){case 0:return l;case 1:throw new Error(e.SIG_PARSE);case 2:throw new Error(e.IMPOSSIBLE_CASE)}},ecdsaSign(t,l,i={},u){r("message",t,32),r("private key",l,32),y(f(i)==="Object","Expected options to be an Object"),i.data!==void 0&&r("options.data",i.data),i.noncefn!==void 0&&y(f(i.noncefn)==="Function","Expected options.noncefn to be a Function"),u=g(u,64);const n={signature:u,recid:null};switch(a.ecdsaSign(n,t,l,i.data,i.noncefn)){case 0:return n;case 1:throw new Error(e.SIGN);case 2:throw new Error(e.IMPOSSIBLE_CASE)}},ecdsaVerify(t,l,i){switch(r("signature",t,64),r("message",l,32),r("public key",i,[33,65]),a.ecdsaVerify(t,l,i)){case 0:return!0;case 3:return!1;case 1:throw new Error(e.SIG_PARSE);case 2:throw new Error(e.PUBKEY_PARSE)}},ecdsaRecover(t,l,i,u=!0,n){switch(r("signature",t,64),y(f(l)==="Number"&&l>=0&&l<=3,"Expected recovery id to be a Number within interval [0, 3]"),r("message",i,32),v(u),n=g(n,u?33:65),a.ecdsaRecover(n,t,l,i)){case 0:return n;case 1:throw new Error(e.SIG_PARSE);case 2:throw new Error(e.RECOVER);case 3:throw new Error(e.IMPOSSIBLE_CASE)}},ecdh(t,l,i={},u){switch(r("public key",t,[33,65]),r("private key",l,32),y(f(i)==="Object","Expected options to be an Object"),i.data!==void 0&&r("options.data",i.data),i.hashfn!==void 0?(y(f(i.hashfn)==="Function","Expected options.hashfn to be a Function"),i.xbuf!==void 0&&r("options.xbuf",i.xbuf,32),i.ybuf!==void 0&&r("options.ybuf",i.ybuf,32),r("output",u)):u=g(u,32),a.ecdh(u,t,l,i.data,i.hashfn,i.xbuf,i.ybuf)){case 0:return u;case 1:throw new Error(e.PUBKEY_PARSE);case 2:throw new Error(e.ECDH)}}})},50949:function(K,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(26167);e.HDKey=r},80682:function(K,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(12949).ripemd160,v=y(75443);e.ripemd160=v.createHashFunction(function(){return new r})},74237:function(K,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(89344),v=y(75443);e.sha256=v.createHashFunction(function(){return new r})},22326:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var v=y(80682),g=y(74237);e.createHmac=y(58355),e.randomBytes=y(61798);var f=function(){function a(t){this.hashFunction=t,this.buffers=[]}return a.prototype.update=function(t){if(!r.isBuffer(t))throw new Error("hdkey-crypto shim is outdated");return this.buffers.push(t),this},a.prototype.digest=function(t){if(t)throw new Error("hdkey-crypto shim is outdated");return this.hashFunction(r.concat(this.buffers))},a}();e.createHash=function(a){if(a==="ripemd160")return new f(v.ripemd160);if(a==="sha256")return new f(g.sha256);throw new Error("hdkey-crypto shim is outdated")}},44863:function(K,e,y){"use strict";function r(v){for(var g in v)e.hasOwnProperty(g)||(e[g]=v[g])}Object.defineProperty(e,"__esModule",{value:!0}),r(y(86454))},26167:function(K,e,y){"use strict";function r(s){return s&&typeof s=="object"&&"default"in s?s.default:s}var v=r(y(69282)),g=r(y(89509)),f=r(y(58334)),a=y(22326),t=y(44863),l=g.Buffer,i=l.from("Bitcoin seed","utf8"),u=2147483648,n=78,o={private:76066276,public:76067358};function c(s){this.versions=s||o,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}Object.defineProperty(c.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(c.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(c.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(c.prototype,"privateKey",{get:function(){return this._privateKey},set:function(s){v.equal(s.length,32,"Private key must be 32 bytes."),v(t.privateKeyVerify(s)===!0,"Invalid private key"),this._privateKey=s,this._publicKey=t.publicKeyCreate(s,!0),this._identifier=x(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(c.prototype,"publicKey",{get:function(){return this._publicKey},set:function(s){v(s.length===33||s.length===65,"Public key must be 33 or 65 bytes."),v(t.publicKeyVerify(s)===!0,"Invalid public key"),this._publicKey=t.publicKeyConvert(s,!0),this._identifier=x(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(c.prototype,"privateExtendedKey",{get:function(){return this._privateKey?f.encode(d(this,this.versions.private,l.concat([l.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(c.prototype,"publicExtendedKey",{get:function(){return f.encode(d(this,this.versions.public,this.publicKey))}}),c.prototype.derive=function(s){if(s==="m"||s==="M"||s==="m'"||s==="M'")return this;var E=s.split("/"),h=this;return E.forEach(function(w,m){if(m===0){v(/^[mM]{1}/.test(w),'Path must start with "m" or "M"');return}var A=w.length>1&&w[w.length-1]==="'",S=parseInt(w,10);v(S<u,"Invalid index"),A&&(S+=u),h=h.deriveChild(S)}),h},c.prototype.deriveChild=function(s){var E=s>=u,h=l.allocUnsafe(4);h.writeUInt32BE(s,0);var w;if(E){v(this.privateKey,"Could not derive hardened child key");var m=this.privateKey,A=l.alloc(1,0);m=l.concat([A,m]),w=l.concat([m,h])}else w=l.concat([this.publicKey,h]);var S=a.createHmac("sha512",this.chainCode).update(w).digest(),P=S.slice(0,32),L=S.slice(32),k=new c(this.versions);if(this.privateKey)try{k.privateKey=t.privateKeyTweakAdd(this.privateKey,P)}catch{return this.deriveChild(s+1)}else try{k.publicKey=t.publicKeyTweakAdd(this.publicKey,P,!0)}catch{return this.deriveChild(s+1)}return k.chainCode=L,k.depth=this.depth+1,k.parentFingerprint=this.fingerprint,k.index=s,k},c.prototype.sign=function(s){return t.sign(s,this.privateKey).signature},c.prototype.verify=function(s,E){return t.verify(s,E,this.publicKey)},c.prototype.wipePrivateData=function(){return this._privateKey&&a.randomBytes(this._privateKey.length).copy(this._privateKey),this._privateKey=null,this},c.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},c.fromMasterSeed=function(s,E){var h=a.createHmac("sha512",i).update(s).digest(),w=h.slice(0,32),m=h.slice(32),A=new c(E);return A.chainCode=m,A.privateKey=w,A},c.fromExtendedKey=function(s,E){E=E||o;var h=new c(E),w=f.decode(s),m=w.readUInt32BE(0);v(m===E.private||m===E.public,"Version mismatch: does not match private or public"),h.depth=w.readUInt8(4),h.parentFingerprint=w.readUInt32BE(5),h.index=w.readUInt32BE(9),h.chainCode=w.slice(13,45);var A=w.slice(45);return A.readUInt8(0)===0?(v(m===E.private,"Version mismatch: version does not match private"),h.privateKey=A.slice(1)):(v(m===E.public,"Version mismatch: version does not match public"),h.publicKey=A),h},c.fromJSON=function(s){return c.fromExtendedKey(s.xpriv)};function d(s,E,h){var w=l.allocUnsafe(n);w.writeUInt32BE(E,0),w.writeUInt8(s.depth,4);var m=s.depth?s.parentFingerprint:0;return w.writeUInt32BE(m,5),w.writeUInt32BE(s.index,9),s.chainCode.copy(w,13),h.copy(w,45),w}function x(s){var E=a.createHash("sha256").update(s).digest();return a.createHash("ripemd160").update(E).digest()}c.HARDENED_OFFSET=u;var b=c;K.exports=b},90472:function(K,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=y(61798);function v(f){return new Promise(function(a,t){r(f,function(l,i){if(l){t(l);return}a(i)})})}e.getRandomBytes=v;function g(f){return r(f)}e.getRandomBytesSync=g},95053:function(K,e,y){"use strict";var r=this&&this.__awaiter||function(u,n,o,c){function d(x){return x instanceof o?x:new o(function(b){b(x)})}return new(o||(o=Promise))(function(x,b){function s(w){try{h(c.next(w))}catch(m){b(m)}}function E(w){try{h(c.throw(w))}catch(m){b(m)}}function h(w){w.done?x(w.value):d(w.value).then(s,E)}h((c=c.apply(u,n||[])).next())})},v=this&&this.__generator||function(u,n){var o={label:0,sent:function(){if(x[0]&1)throw x[1];return x[1]},trys:[],ops:[]},c,d,x,b;return b={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function s(h){return function(w){return E([h,w])}}function E(h){if(c)throw new TypeError("Generator is already executing.");for(;o;)try{if(c=1,d&&(x=h[0]&2?d.return:h[0]?d.throw||((x=d.return)&&x.call(d),0):d.next)&&!(x=x.call(d,h[1])).done)return x;switch(d=0,x&&(h=[h[0]&2,x.value]),h[0]){case 0:case 1:x=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,d=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(x=o.trys,!(x=x.length>0&&x[x.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!x||h[1]>x[0]&&h[1]<x[3])){o.label=h[1];break}if(h[0]===6&&o.label<x[1]){o.label=x[1],x=h;break}if(x&&o.label<x[2]){o.label=x[2],o.ops.push(h);break}x[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(u,o)}catch(w){h=[6,w],d=0}finally{c=x=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}};function g(u){for(var n in u)e.hasOwnProperty(n)||(e[n]=u[n])}Object.defineProperty(e,"__esModule",{value:!0});var f=y(53242),a=y(90472),t=32;function l(){return r(this,void 0,void 0,function(){var u;return v(this,function(n){switch(n.label){case 0:return[4,a.getRandomBytes(t)];case 1:return u=n.sent(),f.privateKeyVerify(u)?[2,u]:[3,0];case 2:return[2]}})})}e.createPrivateKey=l;function i(){for(;;){var u=a.getRandomBytesSync(t);if(f.privateKeyVerify(u))return u}}e.createPrivateKeySync=i,g(y(53242))},86454:function(K,e,y){"use strict";var r=y(48764).Buffer,v=this&&this.__importStar||function(c){if(c&&c.__esModule)return c;var d={};if(c!=null)for(var x in c)Object.hasOwnProperty.call(c,x)&&(d[x]=c[x]);return d.default=c,d};Object.defineProperty(e,"__esModule",{value:!0});var g=v(y(53242));function f(c){return g.privateKeyVerify(c)}e.privateKeyVerify=f;function a(c,d){return d===void 0&&(d=!0),r.from(g.publicKeyCreate(c,d))}e.publicKeyCreate=a;function t(c){return g.publicKeyVerify(c)}e.publicKeyVerify=t;function l(c,d){return d===void 0&&(d=!0),r.from(g.publicKeyConvert(c,d))}e.publicKeyConvert=l;function i(c,d){return r.from(g.privateKeyTweakAdd(r.from(c),d))}e.privateKeyTweakAdd=i;function u(c,d,x){return x===void 0&&(x=!0),r.from(g.publicKeyTweakAdd(r.from(c),d,x))}e.publicKeyTweakAdd=u;function n(c,d){var x=g.ecdsaSign(c,d);return{signature:r.from(x.signature),recovery:x.recid}}e.sign=n;function o(c,d,x){return g.ecdsaVerify(d,c,x)}e.verify=o},68142:function(K,e,y){K.exports=y(75437)},75437:function(K,e,y){var r=y(48764).Buffer;const v=y(86589),g=y(13550);var f=function(){};function a(h){return h.startsWith("int[")?"int256"+h.slice(3):h==="int"?"int256":h.startsWith("uint[")?"uint256"+h.slice(4):h==="uint"?"uint256":h.startsWith("fixed[")?"fixed128x128"+h.slice(5):h==="fixed"?"fixed128x128":h.startsWith("ufixed[")?"ufixed128x128"+h.slice(6):h==="ufixed"?"ufixed128x128":h}f.eventID=function(h,w){var m=h+"("+w.map(a).join(",")+")";return v.keccak256(r.from(m))},f.methodID=function(h,w){return f.eventID(h,w).slice(0,4)};function t(h){return parseInt(/^\D+(\d+)$/.exec(h)[1],10)}function l(h){var w=/^\D+(\d+)x(\d+)$/.exec(h);return[parseInt(w[1],10),parseInt(w[2],10)]}function i(h){var w=h.match(/(.*)\[(.*?)\]$/);return w?w[2]===""?"dynamic":parseInt(w[2],10):null}function u(h){var w=typeof h;if(w==="string")return v.isHexPrefixed(h)?new g(v.stripHexPrefix(h),16):new g(h,10);if(w==="number")return new g(h);if(h.toArray)return h;throw new Error("Argument is not a number")}function n(h){var w=/^(\w+)\((.*)\)$/.exec(h);if(w.length!==3)throw new Error("Invalid method signature");var m=/^(.+)\):\((.+)$/.exec(w[2]);if(m!==null&&m.length===3)return{method:w[1],args:m[1].split(","),retargs:m[2].split(",")};var A=w[2].split(",");return A.length===1&&A[0]===""&&(A=[]),{method:w[1],args:A}}function o(h,w){var m,A,S,P;if(h==="address")return o("uint160",u(w));if(h==="bool")return o("uint8",w?1:0);if(h==="string")return o("bytes",r.from(w,"utf8"));if(b(h)){if(typeof w.length>"u")throw new Error("Not an array?");if(m=i(h),m!=="dynamic"&&m!==0&&w.length>m)throw new Error("Elements exceed array size: "+m);S=[],h=h.slice(0,h.lastIndexOf("[")),typeof w=="string"&&(w=JSON.parse(w));for(P in w)S.push(o(h,w[P]));if(m==="dynamic"){var L=o("uint256",w.length);S.unshift(L)}return r.concat(S)}else{if(h==="bytes")return w=r.from(w),S=r.concat([o("uint256",w.length),w]),w.length%32!==0&&(S=r.concat([S,v.zeros(32-w.length%32)])),S;if(h.startsWith("bytes")){if(m=t(h),m<1||m>32)throw new Error("Invalid bytes<N> width: "+m);return v.setLengthRight(w,32)}else if(h.startsWith("uint")){if(m=t(h),m%8||m<8||m>256)throw new Error("Invalid uint<N> width: "+m);if(A=u(w),A.bitLength()>m)throw new Error("Supplied uint exceeds width: "+m+" vs "+A.bitLength());if(A<0)throw new Error("Supplied uint is negative");return A.toArrayLike(r,"be",32)}else if(h.startsWith("int")){if(m=t(h),m%8||m<8||m>256)throw new Error("Invalid int<N> width: "+m);if(A=u(w),A.bitLength()>m)throw new Error("Supplied int exceeds width: "+m+" vs "+A.bitLength());return A.toTwos(256).toArrayLike(r,"be",32)}else if(h.startsWith("ufixed")){if(m=l(h),A=u(w),A<0)throw new Error("Supplied ufixed is negative");return o("uint256",A.mul(new g(2).pow(new g(m[1]))))}else if(h.startsWith("fixed"))return m=l(h),o("int256",u(w).mul(new g(2).pow(new g(m[1]))))}throw new Error("Unsupported or invalid type: "+h)}function c(h,w,m){typeof h=="string"&&(h=d(h));var A,S,P,L;if(h.name==="address")return c(h.rawType,w,m).toArrayLike(r,"be",20).toString("hex");if(h.name==="bool")return c(h.rawType,w,m).toString()===new g(1).toString();if(h.name==="string"){var k=c(h.rawType,w,m);return r.from(k,"utf8").toString()}else if(h.isArray){for(P=[],A=h.size,h.size==="dynamic"&&(m=c("uint256",w,m).toNumber(),A=c("uint256",w,m).toNumber(),m=m+32),L=0;L<A;L++){var R=c(h.subArray,w,m);P.push(R),m+=h.subArray.memoryUsage}return P}else{if(h.name==="bytes")return m=c("uint256",w,m).toNumber(),A=c("uint256",w,m).toNumber(),w.slice(m+32,m+32+A);if(h.name.startsWith("bytes"))return w.slice(m,m+h.size);if(h.name.startsWith("uint")){if(S=new g(w.slice(m,m+32),16,"be"),S.bitLength()>h.size)throw new Error("Decoded int exceeds width: "+h.size+" vs "+S.bitLength());return S}else if(h.name.startsWith("int")){if(S=new g(w.slice(m,m+32),16,"be").fromTwos(256),S.bitLength()>h.size)throw new Error("Decoded uint exceeds width: "+h.size+" vs "+S.bitLength());return S}else if(h.name.startsWith("ufixed")){if(A=new g(2).pow(new g(h.size[1])),S=c("uint256",w,m),!S.mod(A).isZero())throw new Error("Decimals not supported yet");return S.div(A)}else if(h.name.startsWith("fixed")){if(A=new g(2).pow(new g(h.size[1])),S=c("int256",w,m),!S.mod(A).isZero())throw new Error("Decimals not supported yet");return S.div(A)}}throw new Error("Unsupported or invalid type: "+h.name)}function d(h){var w,m;if(b(h)){w=i(h);var A=h.slice(0,h.lastIndexOf("["));return A=d(A),m={isArray:!0,name:h,size:w,memoryUsage:w==="dynamic"?32:A.memoryUsage*w,subArray:A},m}else{var S;switch(h){case"address":S="uint160";break;case"bool":S="uint8";break;case"string":S="bytes";break}if(m={rawType:S,name:h,memoryUsage:32},h.startsWith("bytes")&&h!=="bytes"||h.startsWith("uint")||h.startsWith("int")?m.size=t(h):(h.startsWith("ufixed")||h.startsWith("fixed"))&&(m.size=l(h)),h.startsWith("bytes")&&h!=="bytes"&&(m.size<1||m.size>32))throw new Error("Invalid bytes<N> width: "+m.size);if((h.startsWith("uint")||h.startsWith("int"))&&(m.size%8||m.size<8||m.size>256))throw new Error("Invalid int/uint<N> width: "+m.size);return m}}function x(h){return h==="string"||h==="bytes"||i(h)==="dynamic"}function b(h){return h.lastIndexOf("]")===h.length-1}f.rawEncode=function(h,w){var m=[],A=[],S=0;h.forEach(function(O){if(b(O)){var C=i(O);C!=="dynamic"?S+=32*C:S+=32}else S+=32});for(var P=0;P<h.length;P++){var L=a(h[P]),k=w[P],R=o(L,k);x(L)?(m.push(o("uint256",S)),A.push(R),S+=R.length):m.push(R)}return r.concat(m.concat(A))},f.rawDecode=function(h,w){var m=[];w=r.from(w);for(var A=0,S=0;S<h.length;S++){var P=a(h[S]),L=d(P,w,A),k=c(L,w,A);A+=L.memoryUsage,m.push(k)}return m},f.simpleEncode=function(h){var w=Array.prototype.slice.call(arguments).slice(1),m=n(h);if(w.length!==m.args.length)throw new Error("Argument count mismatch");return r.concat([f.methodID(m.method,m.args),f.rawEncode(m.args,w)])},f.simpleDecode=function(h,w){var m=n(h);if(!m.retargs)throw new Error("No return values in method");return f.rawDecode(m.retargs,w)};function s(h,w){return h.startsWith("address")||h.startsWith("bytes")?"0x"+w.toString("hex"):w.toString()}f.stringify=function(h,w){var m=[];for(var A in h){var S=h[A],P=w[A];/^[^\[]+\[.*\]$/.test(S)?P=P.map(function(L){return s(S,L)}).join(", "):P=s(S,P),m.push(P)}return m},f.solidityHexValue=function(h,w,m){var A,S;if(b(h)){var P=h.replace(/\[.*?\]/,"");if(!b(P)){var L=i(h);if(L!=="dynamic"&&L!==0&&w.length>L)throw new Error("Elements exceed array size: "+L)}var k=w.map(function(C){return f.solidityHexValue(P,C,256)});return r.concat(k)}else{if(h==="bytes")return w;if(h==="string")return r.from(w,"utf8");if(h==="bool"){m=m||8;var R=Array(m/4).join("0");return r.from(w?R+"1":R+"0","hex")}else if(h==="address"){var O=20;return m&&(O=m/8),v.setLengthLeft(w,O)}else if(h.startsWith("bytes")){if(A=t(h),A<1||A>32)throw new Error("Invalid bytes<N> width: "+A);return v.setLengthRight(w,A)}else if(h.startsWith("uint")){if(A=t(h),A%8||A<8||A>256)throw new Error("Invalid uint<N> width: "+A);if(S=u(w),S.bitLength()>A)throw new Error("Supplied uint exceeds width: "+A+" vs "+S.bitLength());return m=m||A,S.toArrayLike(r,"be",m/8)}else if(h.startsWith("int")){if(A=t(h),A%8||A<8||A>256)throw new Error("Invalid int<N> width: "+A);if(S=u(w),S.bitLength()>A)throw new Error("Supplied int exceeds width: "+A+" vs "+S.bitLength());return m=m||A,S.toTwos(A).toArrayLike(r,"be",m/8)}else throw new Error("Unsupported or invalid type: "+h)}},f.solidityPack=function(h,w){if(h.length!==w.length)throw new Error("Number of types are not matching the values");for(var m=[],A=0;A<h.length;A++){var S=a(h[A]),P=w[A];m.push(f.solidityHexValue(S,P,null))}return r.concat(m)},f.soliditySHA3=function(h,w){return v.keccak256(f.solidityPack(h,w))},f.soliditySHA256=function(h,w){return v.sha256(f.solidityPack(h,w))},f.solidityRIPEMD160=function(h,w){return v.ripemd160(f.solidityPack(h,w),!0)};function E(h){return h>="0"&&h<="9"}f.fromSerpent=function(h){for(var w=[],m=0;m<h.length;m++){var A=h[m];if(A==="s")w.push("bytes");else if(A==="b"){for(var S="bytes",P=m+1;P<h.length&&E(h[P]);)S+=h[P]-"0",P++;m=P-1,w.push(S)}else if(A==="i")w.push("int256");else if(A==="a")w.push("int256[]");else throw new Error("Unsupported or invalid type: "+A)}return w},f.toSerpent=function(h){for(var w=[],m=0;m<h.length;m++){var A=h[m];if(A==="bytes")w.push("s");else if(A.startsWith("bytes"))w.push("b"+t(A));else if(A==="int256")w.push("i");else if(A==="int256[]")w.push("a");else throw new Error("Unsupported or invalid type: "+A)}return w.join("")},K.exports=f},30248:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.importPublic=e.privateToPublic=e.privateToAddress=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.isPrecompiled=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isZeroAddress=e.isValidAddress=e.zeroAddress=void 0;var v=y(69282),g=y(80884),f=y(83230),a=y(13550),t=y(77124),l=y(91550);e.zeroAddress=function(){var i=20,u=t.zeros(i);return t.bufferToHex(u)},e.isValidAddress=function(i){return/^0x[0-9a-fA-F]{40}$/.test(i)},e.isZeroAddress=function(i){var u=e.zeroAddress();return u===t.addHexPrefix(i)},e.toChecksumAddress=function(i,u){i=g.stripHexPrefix(i).toLowerCase();for(var n=u!==void 0?u.toString()+"0x":"",o=l.keccak(n+i).toString("hex"),c="0x",d=0;d<i.length;d++)parseInt(o[d],16)>=8?c+=i[d].toUpperCase():c+=i[d];return c},e.isValidChecksumAddress=function(i,u){return e.isValidAddress(i)&&e.toChecksumAddress(i,u)===i},e.generateAddress=function(i,u){i=t.toBuffer(i);var n=new a(u);return n.isZero()?l.rlphash([i,null]).slice(-20):l.rlphash([i,r.from(n.toArray())]).slice(-20)},e.generateAddress2=function(i,u,n){var o=t.toBuffer(i),c=t.toBuffer(u),d=t.toBuffer(n);v(o.length===20),v(c.length===32);var x=l.keccak256(r.concat([r.from("ff","hex"),o,c,l.keccak256(d)]));return x.slice(-20)},e.isPrecompiled=function(i){var u=t.unpad(i);return u.length===1&&u[0]>=1&&u[0]<=8},e.isValidPrivate=function(i){return f.privateKeyVerify(i)},e.isValidPublic=function(i,u){return u===void 0&&(u=!1),i.length===64?f.publicKeyVerify(r.concat([r.from([4]),i])):u?f.publicKeyVerify(i):!1},e.pubToAddress=function(i,u){return u===void 0&&(u=!1),i=t.toBuffer(i),u&&i.length!==64&&(i=f.publicKeyConvert(i,!1).slice(1)),v(i.length===64),l.keccak(i).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToAddress=function(i){return e.publicToAddress(e.privateToPublic(i))},e.privateToPublic=function(i){return i=t.toBuffer(i),f.publicKeyCreate(i,!1).slice(1)},e.importPublic=function(i){return i=t.toBuffer(i),i.length!==64&&(i=f.publicKeyConvert(i,!1).slice(1)),i}},77124:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.baToJSON=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.stripZeros=e.unpad=e.setLengthRight=e.setLength=e.setLengthLeft=e.zeros=void 0;var v=y(80884),g=y(13550);e.zeros=function(f){return r.allocUnsafe(f).fill(0)},e.setLengthLeft=function(f,a,t){t===void 0&&(t=!1);var l=e.zeros(a);return f=e.toBuffer(f),t?f.length<a?(f.copy(l),l):f.slice(0,a):f.length<a?(f.copy(l,a-f.length),l):f.slice(-a)},e.setLength=e.setLengthLeft,e.setLengthRight=function(f,a){return e.setLength(f,a,!0)},e.unpad=function(f){f=v.stripHexPrefix(f);for(var a=f[0];f.length>0&&a.toString()==="0";)f=f.slice(1),a=f[0];return f},e.stripZeros=e.unpad,e.toBuffer=function(f){if(!r.isBuffer(f))if(Array.isArray(f))f=r.from(f);else if(typeof f=="string")if(v.isHexString(f))f=r.from(v.padToEven(v.stripHexPrefix(f)),"hex");else throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+f);else if(typeof f=="number")f=v.intToBuffer(f);else if(f==null)f=r.allocUnsafe(0);else if(g.isBN(f))f=f.toArrayLike(r);else if(f.toArray)f=r.from(f.toArray());else throw new Error("invalid type");return f},e.bufferToInt=function(f){return new g(e.toBuffer(f)).toNumber()},e.bufferToHex=function(f){return f=e.toBuffer(f),"0x"+f.toString("hex")},e.fromSigned=function(f){return new g(f).fromTwos(256)},e.toUnsigned=function(f){return r.from(f.toTwos(256).toArray())},e.addHexPrefix=function(f){return typeof f!="string"||v.isHexPrefixed(f)?f:"0x"+f},e.baToJSON=function(f){if(r.isBuffer(f))return"0x"+f.toString("hex");if(f instanceof Array){for(var a=[],t=0;t<f.length;t++)a.push(e.baToJSON(f[t]));return a}}},46649:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=void 0;var v=y(13550);e.MAX_INTEGER=new v("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new v("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=r.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=r.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=r.from(e.KECCAK256_RLP_S,"hex")},91550:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160=e.sha256=e.keccak256=e.keccak=void 0;var v=y(82192),g=v.keccak224,f=v.keccak384,a=v.keccak256,t=v.keccak512,l=y(23482),i=y(80884),u=y(51675),n=y(77124);e.keccak=function(o,c){switch(c===void 0&&(c=256),typeof o=="string"&&!i.isHexString(o)?o=r.from(o,"utf8"):o=n.toBuffer(o),c||(c=256),c){case 224:return g(o);case 256:return a(o);case 384:return f(o);case 512:return t(o);default:throw new Error("Invald algorithm: keccak"+c)}},e.keccak256=function(o){return e.keccak(o)},e.sha256=function(o){return o=n.toBuffer(o),l("sha256").update(o).digest()},e.ripemd160=function(o,c){o=n.toBuffer(o);var d=l("rmd160").update(o).digest();return c===!0?n.setLength(d,32):d},e.rlphash=function(o){return e.keccak(u.encode(o))}},86589:function(K,e,y){"use strict";var r=this&&this.__createBinding||(Object.create?function(l,i,u,n){n===void 0&&(n=u),Object.defineProperty(l,n,{enumerable:!0,get:function(){return i[u]}})}:function(l,i,u,n){n===void 0&&(n=u),l[n]=i[u]}),v=this&&this.__exportStar||function(l,i){for(var u in l)u!=="default"&&!i.hasOwnProperty(u)&&r(i,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=e.rlp=e.BN=void 0;var g=y(83230);e.secp256k1=g;var f=y(80884),a=y(13550);e.BN=a;var t=y(51675);e.rlp=t,Object.assign(e,f),v(y(46649),e),v(y(30248),e),v(y(91550),e),v(y(86232),e),v(y(77124),e),v(y(81113),e)},81113:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var v=y(69282),g=y(80884),f=y(51675),a=y(77124);e.defineProperties=function(t,l,i){if(t.raw=[],t._fields=[],t.toJSON=function(n){if(n===void 0&&(n=!1),n){var o={};return t._fields.forEach(function(c){o[c]="0x"+t[c].toString("hex")}),o}return a.baToJSON(t.raw)},t.serialize=function(){return f.encode(t.raw)},l.forEach(function(n,o){t._fields.push(n.name);function c(){return t.raw[o]}function d(x){x=a.toBuffer(x),x.toString("hex")==="00"&&!n.allowZero&&(x=r.allocUnsafe(0)),n.allowLess&&n.length?(x=a.stripZeros(x),v(n.length>=x.length,"The field "+n.name+" must not have more "+n.length+" bytes")):!(n.allowZero&&x.length===0)&&n.length&&v(n.length===x.length,"The field "+n.name+" must have byte length of "+n.length),t.raw[o]=x}Object.defineProperty(t,n.name,{enumerable:!0,configurable:!0,get:c,set:d}),n.default&&(t[n.name]=n.default),n.alias&&Object.defineProperty(t,n.alias,{enumerable:!1,configurable:!0,set:d,get:c})}),i)if(typeof i=="string"&&(i=r.from(g.stripHexPrefix(i),"hex")),r.isBuffer(i)&&(i=f.decode(i)),Array.isArray(i)){if(i.length>t._fields.length)throw new Error("wrong number of fields in data");i.forEach(function(n,o){t[t._fields[o]]=a.toBuffer(n)})}else if(typeof i=="object"){var u=Object.keys(i);l.forEach(function(n){u.indexOf(n.name)!==-1&&(t[n.name]=i[n.name]),u.indexOf(n.alias)!==-1&&(t[n.alias]=i[n.alias])})}else throw new Error("invalid data")}},83230:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.ecdhUnsafe=e.ecdh=e.recover=e.verify=e.sign=e.signatureImportLax=e.signatureImport=e.signatureExport=e.signatureNormalize=e.publicKeyCombine=e.publicKeyTweakMul=e.publicKeyTweakAdd=e.publicKeyVerify=e.publicKeyConvert=e.publicKeyCreate=e.privateKeyTweakMul=e.privateKeyTweakAdd=e.privateKeyModInverse=e.privateKeyNegate=e.privateKeyImport=e.privateKeyExport=e.privateKeyVerify=void 0;var v=y(95053),g=y(78427),f=y(33646);e.privateKeyVerify=function(a){return a.length!==32?!1:v.privateKeyVerify(Uint8Array.from(a))},e.privateKeyExport=function(a,t){if(a.length!==32)throw new RangeError("private key length is invalid");var l=g.privateKeyExport(a,t);return f.privateKeyExport(a,l,t)},e.privateKeyImport=function(a){if(a=f.privateKeyImport(a),a!==null&&a.length===32&&e.privateKeyVerify(a))return a;throw new Error("couldn't import from DER format")},e.privateKeyNegate=function(a){return r.from(v.privateKeyNegate(Uint8Array.from(a)))},e.privateKeyModInverse=function(a){if(a.length!==32)throw new Error("private key length is invalid");return r.from(g.privateKeyModInverse(Uint8Array.from(a)))},e.privateKeyTweakAdd=function(a,t){return r.from(v.privateKeyTweakAdd(Uint8Array.from(a),t))},e.privateKeyTweakMul=function(a,t){return r.from(v.privateKeyTweakMul(Uint8Array.from(a),Uint8Array.from(t)))},e.publicKeyCreate=function(a,t){return r.from(v.publicKeyCreate(Uint8Array.from(a),t))},e.publicKeyConvert=function(a,t){return r.from(v.publicKeyConvert(Uint8Array.from(a),t))},e.publicKeyVerify=function(a){return a.length!==33&&a.length!==65?!1:v.publicKeyVerify(Uint8Array.from(a))},e.publicKeyTweakAdd=function(a,t,l){return r.from(v.publicKeyTweakAdd(Uint8Array.from(a),Uint8Array.from(t),l))},e.publicKeyTweakMul=function(a,t,l){return r.from(v.publicKeyTweakMul(Uint8Array.from(a),Uint8Array.from(t),l))},e.publicKeyCombine=function(a,t){var l=[];return a.forEach(function(i){l.push(Uint8Array.from(i))}),r.from(v.publicKeyCombine(l,t))},e.signatureNormalize=function(a){return r.from(v.signatureNormalize(Uint8Array.from(a)))},e.signatureExport=function(a){return r.from(v.signatureExport(Uint8Array.from(a)))},e.signatureImport=function(a){return r.from(v.signatureImport(Uint8Array.from(a)))},e.signatureImportLax=function(a){if(a.length===0)throw new RangeError("signature length is invalid");var t=f.signatureImportLax(a);if(t===null)throw new Error("couldn't parse DER signature");return g.signatureImport(t)},e.sign=function(a,t,l){if(l===null)throw new TypeError("options should be an Object");var i=void 0;if(l){if(i={},l.data===null)throw new TypeError("options.data should be a Buffer");if(l.data){if(l.data.length!=32)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(l.data)}if(l.noncefn===null)throw new TypeError("options.noncefn should be a Function");l.noncefn&&(i.noncefn=function(n,o,c,d,x){var b=c!=null?r.from(c):null,s=d!=null?r.from(d):null,E=r.from("");return l.noncefn&&(E=l.noncefn(r.from(n),r.from(o),b,s,x)),new Uint8Array(E)})}var u=v.ecdsaSign(Uint8Array.from(a),Uint8Array.from(t),i);return{signature:r.from(u.signature),recovery:u.recid}},e.verify=function(a,t,l){return v.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(a),l)},e.recover=function(a,t,l,i){return r.from(v.ecdsaRecover(Uint8Array.from(t),l,Uint8Array.from(a),i))},e.ecdh=function(a,t){return r.from(v.ecdh(Uint8Array.from(a),Uint8Array.from(t),{}))},e.ecdhUnsafe=function(a,t,l){if(a.length!==33&&a.length!==65)throw new RangeError("public key length is invalid");if(t.length!==32)throw new RangeError("private key length is invalid");return r.from(g.ecdhUnsafe(Uint8Array.from(a),Uint8Array.from(t),l))}},33646:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var v=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),g=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e.privateKeyExport=function(f,a,t){t===void 0&&(t=!0);var l=r.from(t?v:g);return f.copy(l,t?8:9),a.copy(l,t?181:214),l},e.privateKeyImport=function(f){var a=f.length,t=0;if(a<t+1||f[t]!==48||(t+=1,a<t+1||!(f[t]&128)))return null;var l=f[t]&127;if(t+=1,l<1||l>2||a<t+l)return null;var i=f[t+l-1]|(l>1?f[t+l-2]<<8:0);return t+=l,a<t+i||a<t+3||f[t]!==2||f[t+1]!==1||f[t+2]!==1||(t+=3,a<t+2||f[t]!==4||f[t+1]>32||a<t+2+f[t+1])?null:f.slice(t+2,t+2+f[t+1])},e.signatureImportLax=function(f){var a=r.alloc(32,0),t=r.alloc(32,0),l=f.length,i=0;if(f[i++]!==48)return null;var u=f[i++];if(u&128&&(i+=u-128,i>l)||f[i++]!==2)return null;var n=f[i++];if(n&128){if(u=n-128,i+u>l)return null;for(;u>0&&f[i]===0;i+=1,u-=1);for(n=0;u>0;i+=1,u-=1)n=(n<<8)+f[i]}if(n>l-i)return null;var o=i;if(i+=n,f[i++]!==2)return null;var c=f[i++];if(c&128){if(u=c-128,i+u>l)return null;for(;u>0&&f[i]===0;i+=1,u-=1);for(c=0;u>0;i+=1,u-=1)c=(c<<8)+f[i]}if(c>l-i)return null;var d=i;for(i+=c;n>0&&f[o]===0;n-=1,o+=1);if(n>32)return null;var x=f.slice(o,o+n);for(x.copy(a,32-x.length);c>0&&f[d]===0;c-=1,d+=1);if(c>32)return null;var b=f.slice(d,d+c);return b.copy(t,32-b.length),{r:a,s:t}}},78427:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var v=y(13550),g=y(86266).ec,f=new g("secp256k1"),a=f.curve;e.privateKeyExport=function(l,i){i===void 0&&(i=!0);var u=new v(l);if(u.ucmp(a.n)>=0)throw new Error("couldn't export to DER format");var n=f.g.mul(u);return t(n.getX(),n.getY(),i)},e.privateKeyModInverse=function(l){var i=new v(l);if(i.ucmp(a.n)>=0||i.isZero())throw new Error("private key range is invalid");return i.invm(a.n).toArrayLike(r,"be",32)},e.signatureImport=function(l){var i=new v(l.r);i.ucmp(a.n)>=0&&(i=new v(0));var u=new v(l.s);return u.ucmp(a.n)>=0&&(u=new v(0)),r.concat([i.toArrayLike(r,"be",32),u.toArrayLike(r,"be",32)])},e.ecdhUnsafe=function(l,i,u){u===void 0&&(u=!0);var n=f.keyFromPublic(l),o=new v(i);if(o.ucmp(a.n)>=0||o.isZero())throw new Error("scalar was invalid (zero or overflow)");var c=n.pub.mul(o);return t(c.getX(),c.getY(),u)};var t=function(l,i,u){var n;return u?(n=r.alloc(33),n[0]=i.isOdd()?3:2,l.toArrayLike(r,"be",32).copy(n,1)):(n=r.alloc(65),n[0]=4,l.toArrayLike(r,"be",32).copy(n,1),i.toArrayLike(r,"be",32).copy(n,33)),n}},86232:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var v=y(83230),g=y(13550),f=y(77124),a=y(91550);e.ecsign=function(i,u,n){var o=v.sign(i,u),c=o.recovery,d={r:o.signature.slice(0,32),s:o.signature.slice(32,64),v:n?c+(n*2+35):c+27};return d},e.ecrecover=function(i,u,n,o,c){var d=r.concat([f.setLength(n,32),f.setLength(o,32)],64),x=t(u,c);if(!l(x))throw new Error("Invalid signature v value");var b=v.recover(i,d,x);return v.publicKeyConvert(b,!1).slice(1)},e.toRpcSig=function(i,u,n,o){var c=t(i,o);if(!l(c))throw new Error("Invalid signature v value");return f.bufferToHex(r.concat([f.setLengthLeft(u,32),f.setLengthLeft(n,32),f.toBuffer(i)]))},e.fromRpcSig=function(i){var u=f.toBuffer(i);if(u.length!==65)throw new Error("Invalid signature length");var n=u[64];return n<27&&(n+=27),{v:n,r:u.slice(0,32),s:u.slice(32,64)}},e.isValidSignature=function(i,u,n,o,c){o===void 0&&(o=!0);var d=new g("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),x=new g("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(u.length!==32||n.length!==32||!l(t(i,c)))return!1;var b=new g(u),s=new g(n);return!(b.isZero()||b.gt(x)||s.isZero()||s.gt(x)||o&&s.cmp(d)===1)},e.hashPersonalMessage=function(i){var u=r.from(`Ethereum Signed Message:
2
- `+i.length.toString(),"utf-8");return a.keccak(r.concat([u,i]))};function t(i,u){return u?i-(2*u+35):i-27}function l(i){return i===0||i===1}},21964:function(K,e,y){"use strict";var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},v=y(95811),g=y(17221),f=y(69282),a=y(51675),t=y(13550),l=y(23482),i=y(89509).Buffer;Object.assign(e,y(80884)),e.MAX_INTEGER=new t("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new t("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.SHA3_NULL_S=e.KECCAK256_NULL_S,e.KECCAK256_NULL=i.from(e.KECCAK256_NULL_S,"hex"),e.SHA3_NULL=e.KECCAK256_NULL,e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.SHA3_RLP_ARRAY_S=e.KECCAK256_RLP_ARRAY_S,e.KECCAK256_RLP_ARRAY=i.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.SHA3_RLP_ARRAY=e.KECCAK256_RLP_ARRAY,e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.SHA3_RLP_S=e.KECCAK256_RLP_S,e.KECCAK256_RLP=i.from(e.KECCAK256_RLP_S,"hex"),e.SHA3_RLP=e.KECCAK256_RLP,e.BN=t,e.rlp=a,e.secp256k1=g,e.zeros=function(n){return i.allocUnsafe(n).fill(0)},e.zeroAddress=function(){var n=20,o=e.zeros(n);return e.bufferToHex(o)},e.setLengthLeft=e.setLength=function(n,o,c){var d=e.zeros(o);return n=e.toBuffer(n),c?n.length<o?(n.copy(d),d):n.slice(0,o):n.length<o?(n.copy(d,o-n.length),d):n.slice(-o)},e.setLengthRight=function(n,o){return e.setLength(n,o,!0)},e.unpad=e.stripZeros=function(n){n=e.stripHexPrefix(n);for(var o=n[0];n.length>0&&o.toString()==="0";)n=n.slice(1),o=n[0];return n},e.toBuffer=function(n){if(!i.isBuffer(n))if(Array.isArray(n))n=i.from(n);else if(typeof n=="string")e.isHexString(n)?n=i.from(e.padToEven(e.stripHexPrefix(n)),"hex"):n=i.from(n);else if(typeof n=="number")n=e.intToBuffer(n);else if(n==null)n=i.allocUnsafe(0);else if(t.isBN(n))n=n.toArrayLike(i);else if(n.toArray)n=i.from(n.toArray());else throw new Error("invalid type");return n},e.bufferToInt=function(n){return new t(e.toBuffer(n)).toNumber()},e.bufferToHex=function(n){return n=e.toBuffer(n),"0x"+n.toString("hex")},e.fromSigned=function(n){return new t(n).fromTwos(256)},e.toUnsigned=function(n){return i.from(n.toTwos(256).toArray())},e.keccak=function(n,o){return n=e.toBuffer(n),o||(o=256),v("keccak"+o).update(n).digest()},e.keccak256=function(n){return e.keccak(n)},e.sha3=e.keccak,e.sha256=function(n){return n=e.toBuffer(n),l("sha256").update(n).digest()},e.ripemd160=function(n,o){n=e.toBuffer(n);var c=l("rmd160").update(n).digest();return o===!0?e.setLength(c,32):c},e.rlphash=function(n){return e.keccak(a.encode(n))},e.isValidPrivate=function(n){return g.privateKeyVerify(n)},e.isValidPublic=function(n,o){return n.length===64?g.publicKeyVerify(i.concat([i.from([4]),n])):o?g.publicKeyVerify(n):!1},e.pubToAddress=e.publicToAddress=function(n,o){return n=e.toBuffer(n),o&&n.length!==64&&(n=g.publicKeyConvert(n,!1).slice(1)),f(n.length===64),e.keccak(n).slice(-20)};var u=e.privateToPublic=function(n){return n=e.toBuffer(n),g.publicKeyCreate(n,!1).slice(1)};e.importPublic=function(n){return n=e.toBuffer(n),n.length!==64&&(n=g.publicKeyConvert(n,!1).slice(1)),n},e.ecsign=function(n,o){var c=g.sign(n,o),d={};return d.r=c.signature.slice(0,32),d.s=c.signature.slice(32,64),d.v=c.recovery+27,d},e.hashPersonalMessage=function(n){var o=e.toBuffer(`Ethereum Signed Message:
3
- `+n.length.toString());return e.keccak(i.concat([o,n]))},e.ecrecover=function(n,o,c,d){var x=i.concat([e.setLength(c,32),e.setLength(d,32)],64),b=o-27;if(b!==0&&b!==1)throw new Error("Invalid signature v value");var s=g.recover(n,x,b);return g.publicKeyConvert(s,!1).slice(1)},e.toRpcSig=function(n,o,c){if(n!==27&&n!==28)throw new Error("Invalid recovery id");return e.bufferToHex(i.concat([e.setLengthLeft(o,32),e.setLengthLeft(c,32),e.toBuffer(n-27)]))},e.fromRpcSig=function(n){if(n=e.toBuffer(n),n.length!==65)throw new Error("Invalid signature length");var o=n[64];return o<27&&(o+=27),{v:o,r:n.slice(0,32),s:n.slice(32,64)}},e.privateToAddress=function(n){return e.publicToAddress(u(n))},e.isValidAddress=function(n){return/^0x[0-9a-fA-F]{40}$/.test(n)},e.isZeroAddress=function(n){var o=e.zeroAddress();return o===e.addHexPrefix(n)},e.toChecksumAddress=function(n){n=e.stripHexPrefix(n).toLowerCase();for(var o=e.keccak(n).toString("hex"),c="0x",d=0;d<n.length;d++)parseInt(o[d],16)>=8?c+=n[d].toUpperCase():c+=n[d];return c},e.isValidChecksumAddress=function(n){return e.isValidAddress(n)&&e.toChecksumAddress(n)===n},e.generateAddress=function(n,o){return n=e.toBuffer(n),o=new t(o),o.isZero()?o=null:o=i.from(o.toArray()),e.rlphash([n,o]).slice(-20)},e.isPrecompiled=function(n){var o=e.unpad(n);return o.length===1&&o[0]>=1&&o[0]<=8},e.addHexPrefix=function(n){return typeof n!="string"||e.isHexPrefixed(n)?n:"0x"+n},e.isValidSignature=function(n,o,c,d){var x=new t("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),b=new t("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return!(o.length!==32||c.length!==32||n!==27&&n!==28||(o=new t(o),c=new t(c),o.isZero()||o.gt(b)||c.isZero()||c.gt(b))||d===!1&&new t(c).cmp(x)===1)},e.baToJSON=function(n){if(i.isBuffer(n))return"0x"+n.toString("hex");if(n instanceof Array){for(var o=[],c=0;c<n.length;c++)o.push(e.baToJSON(n[c]));return o}},e.defineProperties=function(n,o,c){if(n.raw=[],n._fields=[],n.toJSON=function(x){if(x){var b={};return n._fields.forEach(function(s){b[s]="0x"+n[s].toString("hex")}),b}return e.baToJSON(this.raw)},n.serialize=function(){return a.encode(n.raw)},o.forEach(function(x,b){n._fields.push(x.name);function s(){return n.raw[b]}function E(h){h=e.toBuffer(h),h.toString("hex")==="00"&&!x.allowZero&&(h=i.allocUnsafe(0)),x.allowLess&&x.length?(h=e.stripZeros(h),f(x.length>=h.length,"The field "+x.name+" must not have more "+x.length+" bytes")):!(x.allowZero&&h.length===0)&&x.length&&f(x.length===h.length,"The field "+x.name+" must have byte length of "+x.length),n.raw[b]=h}Object.defineProperty(n,x.name,{enumerable:!0,configurable:!0,get:s,set:E}),x.default&&(n[x.name]=x.default),x.alias&&Object.defineProperty(n,x.alias,{enumerable:!1,configurable:!0,set:E,get:s})}),c)if(typeof c=="string"&&(c=i.from(e.stripHexPrefix(c),"hex")),i.isBuffer(c)&&(c=a.decode(c)),Array.isArray(c)){if(c.length>n._fields.length)throw new Error("wrong number of fields in data");c.forEach(function(x,b){n[n._fields[b]]=e.toBuffer(x)})}else if((typeof c>"u"?"undefined":r(c))==="object"){var d=Object.keys(c);o.forEach(function(x){d.indexOf(x.name)!==-1&&(n[x.name]=c[x.name]),d.indexOf(x.alias)!==-1&&(n[x.alias]=c[x.alias])})}else throw new Error("invalid data")}},48367:function(K,e,y){"use strict";var r=y(50949),v=r.HDKey,g=y(37217);function f(){}function a(t){var l=new f;return l._hdkey=t,l}f.fromMasterSeed=function(t){return a(v.fromMasterSeed(t))},f.fromExtendedKey=function(t){return a(v.fromExtendedKey(t))},f.prototype.privateExtendedKey=function(){if(!this._hdkey.privateExtendedKey)throw new Error("This is a public key only wallet");return this._hdkey.privateExtendedKey},f.prototype.publicExtendedKey=function(){return this._hdkey.publicExtendedKey},f.prototype.derivePath=function(t){return a(this._hdkey.derive(t))},f.prototype.deriveChild=function(t){return a(this._hdkey.deriveChild(t))},f.prototype.getWallet=function(){return this._hdkey._privateKey?g.fromPrivateKey(this._hdkey._privateKey):g.fromPublicKey(this._hdkey._publicKey,!0)},K.exports=f},37217:function(K,e,y){"use strict";var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},v=y(89509).Buffer,g=y(79692),f=y(55835),a=y(61798),t=y(9084),l=y(71171),i=y(58334);function u(c,d){if(!c)throw new Error(d||"Assertion failed")}function n(c,d){return v.concat([c.update(d),c.final()])}var o=function(d,x){if(d&&x)throw new Error("Cannot supply both a private and a public key to the constructor");if(d&&!g.isValidPrivate(d))throw new Error("Private key does not satisfy the curve requirements (ie. it is invalid)");if(x&&!g.isValidPublic(x))throw new Error("Invalid public key");this._privKey=d,this._pubKey=x};Object.defineProperty(o.prototype,"privKey",{get:function(){return u(this._privKey,"This is a public key only wallet"),this._privKey}}),Object.defineProperty(o.prototype,"pubKey",{get:function(){return this._pubKey||(this._pubKey=g.privateToPublic(this.privKey)),this._pubKey}}),o.generate=function(c){if(c)for(var d=new g.BN("088f924eeceeda7fe92e1f5b0fffffffffffffff",16);;){var x=a(32);if(new g.BN(g.privateToAddress(x)).lte(d))return new o(x)}else return new o(a(32))},o.generateVanityAddress=function(c){for((typeof c>"u"?"undefined":r(c))!=="object"&&(c=new RegExp(c));;){var d=a(32),x=g.privateToAddress(d);if(c.test(x.toString("hex")))return new o(d)}},o.prototype.getPrivateKey=function(){return this.privKey},o.prototype.getPrivateKeyString=function(){return g.bufferToHex(this.getPrivateKey())},o.prototype.getPublicKey=function(){return this.pubKey},o.prototype.getPublicKeyString=function(){return g.bufferToHex(this.getPublicKey())},o.prototype.getAddress=function(){return g.publicToAddress(this.pubKey)},o.prototype.getAddressString=function(){return g.bufferToHex(this.getAddress())},o.prototype.getChecksumAddressString=function(){return g.toChecksumAddress(this.getAddressString())},o.prototype.toV3=function(c,d){u(this._privKey,"This is a public key only wallet"),d=d||{};var x=d.salt||a(32),b=d.iv||a(16),s,E=d.kdf||"scrypt",h={dklen:d.dklen||32,salt:x.toString("hex")};if(E==="pbkdf2")h.c=d.c||262144,h.prf="hmac-sha256",s=f.pbkdf2Sync(v.from(c),x,h.c,h.dklen,"sha256");else if(E==="scrypt")h.n=d.n||262144,h.r=d.r||8,h.p=d.p||1,s=t(v.from(c),x,h.n,h.r,h.p,h.dklen);else throw new Error("Unsupported kdf");var w=f.createCipheriv(d.cipher||"aes-128-ctr",s.slice(0,16),b);if(!w)throw new Error("Unsupported cipher");var m=n(w,this.privKey),A=g.keccak256(v.concat([s.slice(16,32),v.from(m,"hex")]));return{version:3,id:l({random:d.uuid||a(16)}),address:this.getAddress().toString("hex"),crypto:{ciphertext:m.toString("hex"),cipherparams:{iv:b.toString("hex")},cipher:d.cipher||"aes-128-ctr",kdf:E,kdfparams:h,mac:A.toString("hex")}}},o.prototype.getV3Filename=function(c){var d=c?new Date(c):new Date;return["UTC--",d.toJSON().replace(/:/g,"-"),"--",this.getAddress().toString("hex")].join("")},o.prototype.toV3String=function(c,d){return JSON.stringify(this.toV3(c,d))},o.fromPublicKey=function(c,d){return d&&(c=g.importPublic(c)),new o(null,c)},o.fromExtendedPublicKey=function(c){return u(c.slice(0,4)==="xpub","Not an extended public key"),c=i.decode(c).slice(45),o.fromPublicKey(c,!0)},o.fromPrivateKey=function(c){return new o(c)},o.fromExtendedPrivateKey=function(c){u(c.slice(0,4)==="xprv","Not an extended private key");var d=i.decode(c);return u(d[45]===0,"Invalid extended private key"),o.fromPrivateKey(d.slice(46))},o.fromV1=function(c,d){u(typeof d=="string");var x=(typeof c>"u"?"undefined":r(c))==="object"?c:JSON.parse(c);if(x.Version!=="1")throw new Error("Not a V1 wallet");if(x.Crypto.KeyHeader.Kdf!=="scrypt")throw new Error("Unsupported key derivation scheme");var b=x.Crypto.KeyHeader.KdfParams,s=t(v.from(d),v.from(x.Crypto.Salt,"hex"),b.N,b.R,b.P,b.DkLen),E=v.from(x.Crypto.CipherText,"hex"),h=g.keccak256(v.concat([s.slice(16,32),E]));if(h.toString("hex")!==x.Crypto.MAC)throw new Error("Key derivation failed - possibly wrong passphrase");var w=f.createDecipheriv("aes-128-cbc",g.keccak256(s.slice(0,16)).slice(0,16),v.from(x.Crypto.IV,"hex")),m=n(w,E);return new o(m)},o.fromV3=function(c,d,x){u(typeof d=="string");var b=(typeof c>"u"?"undefined":r(c))==="object"?c:JSON.parse(x?c.toLowerCase():c);if(b.version!==3)throw new Error("Not a V3 wallet");var s,E;if(b.crypto.kdf==="scrypt")E=b.crypto.kdfparams,s=t(v.from(d),v.from(E.salt,"hex"),E.n,E.r,E.p,E.dklen);else if(b.crypto.kdf==="pbkdf2"){if(E=b.crypto.kdfparams,E.prf!=="hmac-sha256")throw new Error("Unsupported parameters to PBKDF2");s=f.pbkdf2Sync(v.from(d),v.from(E.salt,"hex"),E.c,E.dklen,"sha256")}else throw new Error("Unsupported key derivation scheme");var h=v.from(b.crypto.ciphertext,"hex"),w=g.keccak256(v.concat([s.slice(16,32),h]));if(w.toString("hex")!==b.crypto.mac)throw new Error("Key derivation failed - possibly wrong passphrase");var m=f.createDecipheriv(b.crypto.cipher,s.slice(0,16),v.from(b.crypto.cipherparams.iv,"hex")),A=n(m,h);return new o(A)},o.fromEthSale=function(c,d){u(typeof d=="string");var x=(typeof c>"u"?"undefined":r(c))==="object"?c:JSON.parse(c),b=v.from(x.encseed,"hex"),s=f.pbkdf2Sync(d,d,2e3,32,"sha256").slice(0,16),E=f.createDecipheriv("aes-128-cbc",s,b.slice(0,16)),h=n(E,b.slice(16)),w=new o(g.keccak256(h));if(w.getAddress().toString("hex")!==x.ethaddr)throw new Error("Decoded key mismatch - possibly wrong passphrase");return w},K.exports=o},69637:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.importPublic=e.privateToPublic=e.privateToAddress=e.publicToAddress=e.pubToAddress=e.isValidPublic=e.isValidPrivate=e.isPrecompiled=e.generateAddress2=e.generateAddress=e.isValidChecksumAddress=e.toChecksumAddress=e.isZeroAddress=e.isValidAddress=e.zeroAddress=void 0;var v=y(69282),g=y(80884),f=y(50208),a=y(13550),t=y(74820),l=y(20106);e.zeroAddress=function(){var i=20,u=t.zeros(i);return t.bufferToHex(u)},e.isValidAddress=function(i){return/^0x[0-9a-fA-F]{40}$/.test(i)},e.isZeroAddress=function(i){var u=e.zeroAddress();return u===t.addHexPrefix(i)},e.toChecksumAddress=function(i,u){i=g.stripHexPrefix(i).toLowerCase();for(var n=u!==void 0?u.toString()+"0x":"",o=l.keccak(n+i).toString("hex"),c="0x",d=0;d<i.length;d++)parseInt(o[d],16)>=8?c+=i[d].toUpperCase():c+=i[d];return c},e.isValidChecksumAddress=function(i,u){return e.isValidAddress(i)&&e.toChecksumAddress(i,u)===i},e.generateAddress=function(i,u){i=t.toBuffer(i);var n=new a(u);return n.isZero()?l.rlphash([i,null]).slice(-20):l.rlphash([i,r.from(n.toArray())]).slice(-20)},e.generateAddress2=function(i,u,n){var o=t.toBuffer(i),c=t.toBuffer(u),d=t.toBuffer(n);v(o.length===20),v(c.length===32);var x=l.keccak256(r.concat([r.from("ff","hex"),o,c,l.keccak256(d)]));return x.slice(-20)},e.isPrecompiled=function(i){var u=t.unpad(i);return u.length===1&&u[0]>=1&&u[0]<=8},e.isValidPrivate=function(i){return f.privateKeyVerify(i)},e.isValidPublic=function(i,u){return u===void 0&&(u=!1),i.length===64?f.publicKeyVerify(r.concat([r.from([4]),i])):u?f.publicKeyVerify(i):!1},e.pubToAddress=function(i,u){return u===void 0&&(u=!1),i=t.toBuffer(i),u&&i.length!==64&&(i=f.publicKeyConvert(i,!1).slice(1)),v(i.length===64),l.keccak(i).slice(-20)},e.publicToAddress=e.pubToAddress,e.privateToAddress=function(i){return e.publicToAddress(e.privateToPublic(i))},e.privateToPublic=function(i){return i=t.toBuffer(i),f.publicKeyCreate(i,!1).slice(1)},e.importPublic=function(i){return i=t.toBuffer(i),i.length!==64&&(i=f.publicKeyConvert(i,!1).slice(1)),i}},74820:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.baToJSON=e.addHexPrefix=e.toUnsigned=e.fromSigned=e.bufferToHex=e.bufferToInt=e.toBuffer=e.stripZeros=e.unpad=e.setLengthRight=e.setLength=e.setLengthLeft=e.zeros=void 0;var v=y(80884),g=y(13550);e.zeros=function(f){return r.allocUnsafe(f).fill(0)},e.setLengthLeft=function(f,a,t){t===void 0&&(t=!1);var l=e.zeros(a);return f=e.toBuffer(f),t?f.length<a?(f.copy(l),l):f.slice(0,a):f.length<a?(f.copy(l,a-f.length),l):f.slice(-a)},e.setLength=e.setLengthLeft,e.setLengthRight=function(f,a){return e.setLength(f,a,!0)},e.unpad=function(f){f=v.stripHexPrefix(f);for(var a=f[0];f.length>0&&a.toString()==="0";)f=f.slice(1),a=f[0];return f},e.stripZeros=e.unpad,e.toBuffer=function(f){if(!r.isBuffer(f))if(Array.isArray(f))f=r.from(f);else if(typeof f=="string")if(v.isHexString(f))f=r.from(v.padToEven(v.stripHexPrefix(f)),"hex");else throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+f);else if(typeof f=="number")f=v.intToBuffer(f);else if(f==null)f=r.allocUnsafe(0);else if(g.isBN(f))f=f.toArrayLike(r);else if(f.toArray)f=r.from(f.toArray());else throw new Error("invalid type");return f},e.bufferToInt=function(f){return new g(e.toBuffer(f)).toNumber()},e.bufferToHex=function(f){return f=e.toBuffer(f),"0x"+f.toString("hex")},e.fromSigned=function(f){return new g(f).fromTwos(256)},e.toUnsigned=function(f){return r.from(f.toTwos(256).toArray())},e.addHexPrefix=function(f){return typeof f!="string"||v.isHexPrefixed(f)?f:"0x"+f},e.baToJSON=function(f){if(r.isBuffer(f))return"0x"+f.toString("hex");if(f instanceof Array){for(var a=[],t=0;t<f.length;t++)a.push(e.baToJSON(f[t]));return a}}},98026:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.KECCAK256_RLP=e.KECCAK256_RLP_S=e.KECCAK256_RLP_ARRAY=e.KECCAK256_RLP_ARRAY_S=e.KECCAK256_NULL=e.KECCAK256_NULL_S=e.TWO_POW256=e.MAX_INTEGER=void 0;var v=y(13550);e.MAX_INTEGER=new v("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),e.TWO_POW256=new v("10000000000000000000000000000000000000000000000000000000000000000",16),e.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",e.KECCAK256_NULL=r.from(e.KECCAK256_NULL_S,"hex"),e.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",e.KECCAK256_RLP_ARRAY=r.from(e.KECCAK256_RLP_ARRAY_S,"hex"),e.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",e.KECCAK256_RLP=r.from(e.KECCAK256_RLP_S,"hex")},20106:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.rlphash=e.ripemd160=e.sha256=e.keccak256=e.keccak=void 0;var v=y(82192),g=v.keccak224,f=v.keccak384,a=v.keccak256,t=v.keccak512,l=y(23482),i=y(80884),u=y(51675),n=y(74820);e.keccak=function(o,c){switch(c===void 0&&(c=256),typeof o=="string"&&!i.isHexString(o)?o=r.from(o,"utf8"):o=n.toBuffer(o),c||(c=256),c){case 224:return g(o);case 256:return a(o);case 384:return f(o);case 512:return t(o);default:throw new Error("Invald algorithm: keccak"+c)}},e.keccak256=function(o){return e.keccak(o)},e.sha256=function(o){return o=n.toBuffer(o),l("sha256").update(o).digest()},e.ripemd160=function(o,c){o=n.toBuffer(o);var d=l("rmd160").update(o).digest();return c===!0?n.setLength(d,32):d},e.rlphash=function(o){return e.keccak(u.encode(o))}},79692:function(K,e,y){"use strict";var r=this&&this.__createBinding||(Object.create?function(l,i,u,n){n===void 0&&(n=u),Object.defineProperty(l,n,{enumerable:!0,get:function(){return i[u]}})}:function(l,i,u,n){n===void 0&&(n=u),l[n]=i[u]}),v=this&&this.__exportStar||function(l,i){for(var u in l)u!=="default"&&!i.hasOwnProperty(u)&&r(i,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.secp256k1=e.rlp=e.BN=void 0;var g=y(50208);e.secp256k1=g;var f=y(80884),a=y(13550);e.BN=a;var t=y(51675);e.rlp=t,Object.assign(e,f),v(y(98026),e),v(y(69637),e),v(y(20106),e),v(y(35922),e),v(y(74820),e),v(y(60032),e)},60032:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperties=void 0;var v=y(69282),g=y(80884),f=y(51675),a=y(74820);e.defineProperties=function(t,l,i){if(t.raw=[],t._fields=[],t.toJSON=function(n){if(n===void 0&&(n=!1),n){var o={};return t._fields.forEach(function(c){o[c]="0x"+t[c].toString("hex")}),o}return a.baToJSON(t.raw)},t.serialize=function(){return f.encode(t.raw)},l.forEach(function(n,o){t._fields.push(n.name);function c(){return t.raw[o]}function d(x){x=a.toBuffer(x),x.toString("hex")==="00"&&!n.allowZero&&(x=r.allocUnsafe(0)),n.allowLess&&n.length?(x=a.stripZeros(x),v(n.length>=x.length,"The field "+n.name+" must not have more "+n.length+" bytes")):!(n.allowZero&&x.length===0)&&n.length&&v(n.length===x.length,"The field "+n.name+" must have byte length of "+n.length),t.raw[o]=x}Object.defineProperty(t,n.name,{enumerable:!0,configurable:!0,get:c,set:d}),n.default&&(t[n.name]=n.default),n.alias&&Object.defineProperty(t,n.alias,{enumerable:!1,configurable:!0,set:d,get:c})}),i)if(typeof i=="string"&&(i=r.from(g.stripHexPrefix(i),"hex")),r.isBuffer(i)&&(i=f.decode(i)),Array.isArray(i)){if(i.length>t._fields.length)throw new Error("wrong number of fields in data");i.forEach(function(n,o){t[t._fields[o]]=a.toBuffer(n)})}else if(typeof i=="object"){var u=Object.keys(i);l.forEach(function(n){u.indexOf(n.name)!==-1&&(t[n.name]=i[n.name]),u.indexOf(n.alias)!==-1&&(t[n.alias]=i[n.alias])})}else throw new Error("invalid data")}},50208:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.ecdhUnsafe=e.ecdh=e.recover=e.verify=e.sign=e.signatureImportLax=e.signatureImport=e.signatureExport=e.signatureNormalize=e.publicKeyCombine=e.publicKeyTweakMul=e.publicKeyTweakAdd=e.publicKeyVerify=e.publicKeyConvert=e.publicKeyCreate=e.privateKeyTweakMul=e.privateKeyTweakAdd=e.privateKeyModInverse=e.privateKeyNegate=e.privateKeyImport=e.privateKeyExport=e.privateKeyVerify=void 0;var v=y(95053),g=y(86158),f=y(35894);e.privateKeyVerify=function(a){return a.length!==32?!1:v.privateKeyVerify(Uint8Array.from(a))},e.privateKeyExport=function(a,t){if(a.length!==32)throw new RangeError("private key length is invalid");var l=g.privateKeyExport(a,t);return f.privateKeyExport(a,l,t)},e.privateKeyImport=function(a){if(a=f.privateKeyImport(a),a!==null&&a.length===32&&e.privateKeyVerify(a))return a;throw new Error("couldn't import from DER format")},e.privateKeyNegate=function(a){return r.from(v.privateKeyNegate(Uint8Array.from(a)))},e.privateKeyModInverse=function(a){if(a.length!==32)throw new Error("private key length is invalid");return r.from(g.privateKeyModInverse(Uint8Array.from(a)))},e.privateKeyTweakAdd=function(a,t){return r.from(v.privateKeyTweakAdd(Uint8Array.from(a),t))},e.privateKeyTweakMul=function(a,t){return r.from(v.privateKeyTweakMul(Uint8Array.from(a),Uint8Array.from(t)))},e.publicKeyCreate=function(a,t){return r.from(v.publicKeyCreate(Uint8Array.from(a),t))},e.publicKeyConvert=function(a,t){return r.from(v.publicKeyConvert(Uint8Array.from(a),t))},e.publicKeyVerify=function(a){return a.length!==33&&a.length!==65?!1:v.publicKeyVerify(Uint8Array.from(a))},e.publicKeyTweakAdd=function(a,t,l){return r.from(v.publicKeyTweakAdd(Uint8Array.from(a),Uint8Array.from(t),l))},e.publicKeyTweakMul=function(a,t,l){return r.from(v.publicKeyTweakMul(Uint8Array.from(a),Uint8Array.from(t),l))},e.publicKeyCombine=function(a,t){var l=[];return a.forEach(function(i){l.push(Uint8Array.from(i))}),r.from(v.publicKeyCombine(l,t))},e.signatureNormalize=function(a){return r.from(v.signatureNormalize(Uint8Array.from(a)))},e.signatureExport=function(a){return r.from(v.signatureExport(Uint8Array.from(a)))},e.signatureImport=function(a){return r.from(v.signatureImport(Uint8Array.from(a)))},e.signatureImportLax=function(a){if(a.length===0)throw new RangeError("signature length is invalid");var t=f.signatureImportLax(a);if(t===null)throw new Error("couldn't parse DER signature");return g.signatureImport(t)},e.sign=function(a,t,l){if(l===null)throw new TypeError("options should be an Object");var i=void 0;if(l){if(i={},l.data===null)throw new TypeError("options.data should be a Buffer");if(l.data){if(l.data.length!=32)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(l.data)}if(l.noncefn===null)throw new TypeError("options.noncefn should be a Function");l.noncefn&&(i.noncefn=function(n,o,c,d,x){var b=c!=null?r.from(c):null,s=d!=null?r.from(d):null,E=r.from("");return l.noncefn&&(E=l.noncefn(r.from(n),r.from(o),b,s,x)),new Uint8Array(E)})}var u=v.ecdsaSign(Uint8Array.from(a),Uint8Array.from(t),i);return{signature:r.from(u.signature),recovery:u.recid}},e.verify=function(a,t,l){return v.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(a),l)},e.recover=function(a,t,l,i){return r.from(v.ecdsaRecover(Uint8Array.from(t),l,Uint8Array.from(a),i))},e.ecdh=function(a,t){return r.from(v.ecdh(Uint8Array.from(a),Uint8Array.from(t),{}))},e.ecdhUnsafe=function(a,t,l){if(a.length!==33&&a.length!==65)throw new RangeError("public key length is invalid");if(t.length!==32)throw new RangeError("private key length is invalid");return r.from(g.ecdhUnsafe(Uint8Array.from(a),Uint8Array.from(t),l))}},35894:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var v=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),g=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);e.privateKeyExport=function(f,a,t){t===void 0&&(t=!0);var l=r.from(t?v:g);return f.copy(l,t?8:9),a.copy(l,t?181:214),l},e.privateKeyImport=function(f){var a=f.length,t=0;if(a<t+1||f[t]!==48||(t+=1,a<t+1||!(f[t]&128)))return null;var l=f[t]&127;if(t+=1,l<1||l>2||a<t+l)return null;var i=f[t+l-1]|(l>1?f[t+l-2]<<8:0);return t+=l,a<t+i||a<t+3||f[t]!==2||f[t+1]!==1||f[t+2]!==1||(t+=3,a<t+2||f[t]!==4||f[t+1]>32||a<t+2+f[t+1])?null:f.slice(t+2,t+2+f[t+1])},e.signatureImportLax=function(f){var a=r.alloc(32,0),t=r.alloc(32,0),l=f.length,i=0;if(f[i++]!==48)return null;var u=f[i++];if(u&128&&(i+=u-128,i>l)||f[i++]!==2)return null;var n=f[i++];if(n&128){if(u=n-128,i+u>l)return null;for(;u>0&&f[i]===0;i+=1,u-=1);for(n=0;u>0;i+=1,u-=1)n=(n<<8)+f[i]}if(n>l-i)return null;var o=i;if(i+=n,f[i++]!==2)return null;var c=f[i++];if(c&128){if(u=c-128,i+u>l)return null;for(;u>0&&f[i]===0;i+=1,u-=1);for(c=0;u>0;i+=1,u-=1)c=(c<<8)+f[i]}if(c>l-i)return null;var d=i;for(i+=c;n>0&&f[o]===0;n-=1,o+=1);if(n>32)return null;var x=f.slice(o,o+n);for(x.copy(a,32-x.length);c>0&&f[d]===0;c-=1,d+=1);if(c>32)return null;var b=f.slice(d,d+c);return b.copy(t,32-b.length),{r:a,s:t}}},86158:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0});var v=y(13550),g=y(86266).ec,f=new g("secp256k1"),a=f.curve;e.privateKeyExport=function(l,i){i===void 0&&(i=!0);var u=new v(l);if(u.ucmp(a.n)>=0)throw new Error("couldn't export to DER format");var n=f.g.mul(u);return t(n.getX(),n.getY(),i)},e.privateKeyModInverse=function(l){var i=new v(l);if(i.ucmp(a.n)>=0||i.isZero())throw new Error("private key range is invalid");return i.invm(a.n).toArrayLike(r,"be",32)},e.signatureImport=function(l){var i=new v(l.r);i.ucmp(a.n)>=0&&(i=new v(0));var u=new v(l.s);return u.ucmp(a.n)>=0&&(u=new v(0)),r.concat([i.toArrayLike(r,"be",32),u.toArrayLike(r,"be",32)])},e.ecdhUnsafe=function(l,i,u){u===void 0&&(u=!0);var n=f.keyFromPublic(l),o=new v(i);if(o.ucmp(a.n)>=0||o.isZero())throw new Error("scalar was invalid (zero or overflow)");var c=n.pub.mul(o);return t(c.getX(),c.getY(),u)};var t=function(l,i,u){var n;return u?(n=r.alloc(33),n[0]=i.isOdd()?3:2,l.toArrayLike(r,"be",32).copy(n,1)):(n=r.alloc(65),n[0]=4,l.toArrayLike(r,"be",32).copy(n,1),i.toArrayLike(r,"be",32).copy(n,33)),n}},35922:function(K,e,y){"use strict";var r=y(48764).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.hashPersonalMessage=e.isValidSignature=e.fromRpcSig=e.toRpcSig=e.ecrecover=e.ecsign=void 0;var v=y(50208),g=y(13550),f=y(74820),a=y(20106);e.ecsign=function(i,u,n){var o=v.sign(i,u),c=o.recovery,d={r:o.signature.slice(0,32),s:o.signature.slice(32,64),v:n?c+(n*2+35):c+27};return d},e.ecrecover=function(i,u,n,o,c){var d=r.concat([f.setLength(n,32),f.setLength(o,32)],64),x=t(u,c);if(!l(x))throw new Error("Invalid signature v value");var b=v.recover(i,d,x);return v.publicKeyConvert(b,!1).slice(1)},e.toRpcSig=function(i,u,n,o){var c=t(i,o);if(!l(c))throw new Error("Invalid signature v value");return f.bufferToHex(r.concat([f.setLengthLeft(u,32),f.setLengthLeft(n,32),f.toBuffer(i)]))},e.fromRpcSig=function(i){var u=f.toBuffer(i);if(u.length!==65)throw new Error("Invalid signature length");var n=u[64];return n<27&&(n+=27),{v:n,r:u.slice(0,32),s:u.slice(32,64)}},e.isValidSignature=function(i,u,n,o,c){o===void 0&&(o=!0);var d=new g("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),x=new g("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(u.length!==32||n.length!==32||!l(t(i,c)))return!1;var b=new g(u),s=new g(n);return!(b.isZero()||b.gt(x)||s.isZero()||s.gt(x)||o&&s.cmp(d)===1)},e.hashPersonalMessage=function(i){var u=r.from(`Ethereum Signed Message:
4
- `+i.length.toString(),"utf-8");return a.keccak(r.concat([u,i]))};function t(i,u){return u?i-(2*u+35):i-27}function l(i){return i===0||i===1}},80884:function(K,e,y){"use strict";var r=y(48764).Buffer,v=y(23944),g=y(49604);function f(b){var s=b;if(typeof s!="string")throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof s+", while padToEven.");return s.length%2&&(s="0"+s),s}function a(b){var s=b.toString(16);return"0x"+s}function t(b){var s=a(b);return new r(f(s.slice(2)),"hex")}function l(b){if(typeof b!="string")throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof b+"'.");return r.byteLength(b,"utf8")}function i(b,s,E){if(Array.isArray(b)!==!0)throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof b+"'");if(Array.isArray(s)!==!0)throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof s+"'");return s[Boolean(E)&&"some"||"every"](function(h){return b.indexOf(h)>=0})}function u(b){var s=new r(f(g(b).replace(/^0+|0+$/g,"")),"hex");return s.toString("utf8")}function n(b){var s="",E=0,h=b.length;for(b.substring(0,2)==="0x"&&(E=2);E<h;E+=2){var w=parseInt(b.substr(E,2),16);s+=String.fromCharCode(w)}return s}function o(b){var s=new r(b,"utf8");return"0x"+f(s.toString("hex")).replace(/^0+|0+$/g,"")}function c(b){for(var s="",E=0;E<b.length;E++){var h=b.charCodeAt(E),w=h.toString(16);s+=w.length<2?"0"+w:w}return"0x"+s}function d(b,s,E){if(!Array.isArray(b))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof b+"'");if(typeof s!="string")throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof s+"'.");for(var h=[],w=0;w<b.length;w++){var m=b[w][s];if(E&&!m)m="";else if(typeof m!="string")throw new Error("invalid abi");h.push(m)}return h}function x(b,s){return!(typeof b!="string"||!b.match(/^0x[0-9A-Fa-f]*$/)||s&&b.length!==2+2*s)}K.exports={arrayContainsArray:i,intToBuffer:t,getBinarySize:l,isHexPrefixed:v,stripHexPrefix:g,padToEven:f,intToHex:a,fromAscii:c,fromUtf8:o,toAscii:n,toUtf8:u,getKeys:d,isHexString:x}},23944:function(K){K.exports=function(y){if(typeof y!="string")throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof y+", while checking isHexPrefixed.");return y.slice(0,2)==="0x"}},95811:function(K,e,y){"use strict";K.exports=y(26066)(y(79653))},26066:function(K,e,y){"use strict";var r=y(37016),v=y(5675);K.exports=function(g){var f=r(g),a=v(g);return function(t,l){var i=typeof t=="string"?t.toLowerCase():t;switch(i){case"keccak224":return new f(1152,448,null,224,l);case"keccak256":return new f(1088,512,null,256,l);case"keccak384":return new f(832,768,null,384,l);case"keccak512":return new f(576,1024,null,512,l);case"sha3-224":return new f(1152,448,6,224,l);case"sha3-256":return new f(1088,512,6,256,l);case"sha3-384":return new f(832,768,6,384,l);case"sha3-512":return new f(576,1024,6,512,l);case"shake128":return new a(1344,256,31,l);case"shake256":return new a(1088,512,31,l);default:throw new Error("Invald algorithm: "+t)}}}},37016:function(K,e,y){"use strict";var r=y(89509).Buffer,v=y(42830).Transform,g=y(35717);K.exports=function(f){function a(t,l,i,u,n){v.call(this,n),this._rate=t,this._capacity=l,this._delimitedSuffix=i,this._hashBitLength=u,this._options=n,this._state=new f,this._state.initialize(t,l),this._finalized=!1}return g(a,v),a.prototype._transform=function(t,l,i){var u=null;try{this.update(t,l)}catch(n){u=n}i(u)},a.prototype._flush=function(t){var l=null;try{this.push(this.digest())}catch(i){l=i}t(l)},a.prototype.update=function(t,l){if(!r.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return r.isBuffer(t)||(t=r.from(t,l)),this._state.absorb(t),this},a.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var l=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(l=l.toString(t)),this._resetState(),l},a.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},a.prototype._clone=function(){var t=new a(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t},a}},5675:function(K,e,y){"use strict";var r=y(89509).Buffer,v=y(42830).Transform,g=y(35717);K.exports=function(f){function a(t,l,i,u){v.call(this,u),this._rate=t,this._capacity=l,this._delimitedSuffix=i,this._options=u,this._state=new f,this._state.initialize(t,l),this._finalized=!1}return g(a,v),a.prototype._transform=function(t,l,i){var u=null;try{this.update(t,l)}catch(n){u=n}i(u)},a.prototype._flush=function(){},a.prototype._read=function(t){this.push(this.squeeze(t))},a.prototype.update=function(t,l){if(!r.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return r.isBuffer(t)||(t=r.from(t,l)),this._state.absorb(t),this},a.prototype.squeeze=function(t,l){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var i=this._state.squeeze(t);return l!==void 0&&(i=i.toString(l)),i},a.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},a.prototype._clone=function(){var t=new a(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t},a}},34040:function(K,e){"use strict";var y=[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];e.p1600=function(r){for(var v=0;v<24;++v){var g=r[0]^r[10]^r[20]^r[30]^r[40],f=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],t=r[3]^r[13]^r[23]^r[33]^r[43],l=r[4]^r[14]^r[24]^r[34]^r[44],i=r[5]^r[15]^r[25]^r[35]^r[45],u=r[6]^r[16]^r[26]^r[36]^r[46],n=r[7]^r[17]^r[27]^r[37]^r[47],o=r[8]^r[18]^r[28]^r[38]^r[48],c=r[9]^r[19]^r[29]^r[39]^r[49],d=o^(a<<1|t>>>31),x=c^(t<<1|a>>>31),b=r[0]^d,s=r[1]^x,E=r[10]^d,h=r[11]^x,w=r[20]^d,m=r[21]^x,A=r[30]^d,S=r[31]^x,P=r[40]^d,L=r[41]^x;d=g^(l<<1|i>>>31),x=f^(i<<1|l>>>31);var k=r[2]^d,R=r[3]^x,O=r[12]^d,C=r[13]^x,B=r[22]^d,U=r[23]^x,I=r[32]^d,p=r[33]^x,T=r[42]^d,N=r[43]^x;d=a^(u<<1|n>>>31),x=t^(n<<1|u>>>31);var z=r[4]^d,_=r[5]^x,V=r[14]^d,H=r[15]^x,ze=r[24]^d,_e=r[25]^x,Ve=r[34]^d,He=r[35]^x,Me=r[44]^d,je=r[45]^x;d=l^(o<<1|c>>>31),x=i^(c<<1|o>>>31);var De=r[6]^d,Ze=r[7]^x,We=r[16]^d,Fe=r[17]^x,Ye=r[26]^d,Je=r[27]^x,$e=r[36]^d,Ge=r[37]^x,Xe=r[46]^d,Qe=r[47]^x;d=u^(g<<1|f>>>31),x=n^(f<<1|g>>>31);var qe=r[8]^d,er=r[9]^x,rr=r[18]^d,nr=r[19]^x,tr=r[28]^d,ir=r[29]^x,fr=r[38]^d,ar=r[39]^x,ur=r[48]^d,or=r[49]^x,M=b,j=s,D=h<<4|E>>>28,Z=E<<4|h>>>28,W=w<<3|m>>>29,F=m<<3|w>>>29,Y=S<<9|A>>>23,J=A<<9|S>>>23,$=P<<18|L>>>14,G=L<<18|P>>>14,X=k<<1|R>>>31,Q=R<<1|k>>>31,q=C<<12|O>>>20,ee=O<<12|C>>>20,re=B<<10|U>>>22,ne=U<<10|B>>>22,te=p<<13|I>>>19,ie=I<<13|p>>>19,fe=T<<2|N>>>30,ae=N<<2|T>>>30,ue=_<<30|z>>>2,oe=z<<30|_>>>2,ce=V<<6|H>>>26,le=H<<6|V>>>26,se=_e<<11|ze>>>21,he=ze<<11|_e>>>21,de=Ve<<15|He>>>17,xe=He<<15|Ve>>>17,ve=je<<29|Me>>>3,ye=Me<<29|je>>>3,ge=De<<28|Ze>>>4,we=Ze<<28|De>>>4,me=Fe<<23|We>>>9,be=We<<23|Fe>>>9,Ee=Ye<<25|Je>>>7,Ae=Je<<25|Ye>>>7,Se=$e<<21|Ge>>>11,Ke=Ge<<21|$e>>>11,Pe=Qe<<24|Xe>>>8,ke=Xe<<24|Qe>>>8,Be=qe<<27|er>>>5,Ce=er<<27|qe>>>5,Le=rr<<20|nr>>>12,pe=nr<<20|rr>>>12,Ue=ir<<7|tr>>>25,Re=tr<<7|ir>>>25,Te=fr<<8|ar>>>24,Ie=ar<<8|fr>>>24,Ne=ur<<14|or>>>18,Oe=or<<14|ur>>>18;r[0]=M^~q&se,r[1]=j^~ee&he,r[10]=ge^~Le&W,r[11]=we^~pe&F,r[20]=X^~ce&Ee,r[21]=Q^~le&Ae,r[30]=Be^~D&re,r[31]=Ce^~Z&ne,r[40]=ue^~me&Ue,r[41]=oe^~be&Re,r[2]=q^~se&Se,r[3]=ee^~he&Ke,r[12]=Le^~W&te,r[13]=pe^~F&ie,r[22]=ce^~Ee&Te,r[23]=le^~Ae&Ie,r[32]=D^~re&de,r[33]=Z^~ne&xe,r[42]=me^~Ue&Y,r[43]=be^~Re&J,r[4]=se^~Se&Ne,r[5]=he^~Ke&Oe,r[14]=W^~te&ve,r[15]=F^~ie&ye,r[24]=Ee^~Te&$,r[25]=Ae^~Ie&G,r[34]=re^~de&Pe,r[35]=ne^~xe&ke,r[44]=Ue^~Y&fe,r[45]=Re^~J&ae,r[6]=Se^~Ne&M,r[7]=Ke^~Oe&j,r[16]=te^~ve&ge,r[17]=ie^~ye&we,r[26]=Te^~$&X,r[27]=Ie^~G&Q,r[36]=de^~Pe&Be,r[37]=xe^~ke&Ce,r[46]=Y^~fe&ue,r[47]=J^~ae&oe,r[8]=Ne^~M&q,r[9]=Oe^~j&ee,r[18]=ve^~ge&Le,r[19]=ye^~we&pe,r[28]=$^~X&ce,r[29]=G^~Q&le,r[38]=Pe^~Be&D,r[39]=ke^~Ce&Z,r[48]=fe^~ue&me,r[49]=ae^~oe&be,r[0]^=y[v*2],r[1]^=y[v*2+1]}}},79653:function(K,e,y){"use strict";var r=y(89509).Buffer,v=y(34040);function g(){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}g.prototype.initialize=function(f,a){for(var t=0;t<50;++t)this.state[t]=0;this.blockSize=f/8,this.count=0,this.squeezing=!1},g.prototype.absorb=function(f){for(var a=0;a<f.length;++a)this.state[~~(this.count/4)]^=f[a]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(v.p1600(this.state),this.count=0)},g.prototype.absorbLastFewBits=function(f){this.state[~~(this.count/4)]^=f<<8*(this.count%4),(f&128)!==0&&this.count===this.blockSize-1&&v.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),v.p1600(this.state),this.count=0,this.squeezing=!0},g.prototype.squeeze=function(f){this.squeezing||this.absorbLastFewBits(1);for(var a=r.alloc(f),t=0;t<f;++t)a[t]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(v.p1600(this.state),this.count=0);return a},g.prototype.copy=function(f){for(var a=0;a<50;++a)f.state[a]=this.state[a];f.blockSize=this.blockSize,f.count=this.count,f.squeezing=this.squeezing},K.exports=g},51675:function(K,e,y){"use strict";var r=y(48764).Buffer,v=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.getLength=e.decode=e.encode=void 0;var g=v(y(13550));function f(s){if(Array.isArray(s)){for(var E=[],h=0;h<s.length;h++)E.push(f(s[h]));var w=r.concat(E);return r.concat([t(w.length,192),w])}else{var m=b(s);return m.length===1&&m[0]<128?m:r.concat([t(m.length,128),m])}}e.encode=f;function a(s,E){if(s[0]==="0"&&s[1]==="0")throw new Error("invalid RLP: extra zeros");return parseInt(s,E)}function t(s,E){if(s<56)return r.from([s+E]);var h=c(s),w=h.length/2,m=c(E+55+w);return r.from(m+h,"hex")}function l(s,E){if(E===void 0&&(E=!1),!s||s.length===0)return r.from([]);var h=b(s),w=u(h);if(E)return w;if(w.remainder.length!==0)throw new Error("invalid remainder");return w.data}e.decode=l;function i(s){if(!s||s.length===0)return r.from([]);var E=b(s),h=E[0];if(h<=127)return E.length;if(h<=183)return h-127;if(h<=191)return h-182;if(h<=247)return h-191;var w=h-246,m=a(E.slice(1,w).toString("hex"),16);return w+m}e.getLength=i;function u(s){var E,h,w,m,A,S=[],P=s[0];if(P<=127)return{data:s.slice(0,1),remainder:s.slice(1)};if(P<=183){if(E=P-127,P===128?w=r.from([]):w=s.slice(1,E),E===2&&w[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:w,remainder:s.slice(E)}}else if(P<=191){if(h=P-182,s.length-1<h)throw new Error("invalid RLP: not enough bytes for string length");if(E=a(s.slice(1,h).toString("hex"),16),E<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if(w=s.slice(h,E+h),w.length<E)throw new Error("invalid RLP: not enough bytes for string");return{data:w,remainder:s.slice(E+h)}}else if(P<=247){for(E=P-191,m=s.slice(1,E);m.length;)A=u(m),S.push(A.data),m=A.remainder;return{data:S,remainder:s.slice(E)}}else{h=P-246,E=a(s.slice(1,h).toString("hex"),16);var L=h+E;if(L>s.length)throw new Error("invalid rlp: total length is larger than the data");if(m=s.slice(h,L),m.length===0)throw new Error("invalid rlp, List has a invalid length");for(;m.length;)A=u(m),S.push(A.data),m=A.remainder;return{data:S,remainder:s.slice(L)}}}function n(s){return s.slice(0,2)==="0x"}function o(s){return typeof s!="string"?s:n(s)?s.slice(2):s}function c(s){if(s<0)throw new Error("Invalid integer as argument, must be unsigned!");var E=s.toString(16);return E.length%2?"0"+E:E}function d(s){return s.length%2?"0"+s:s}function x(s){var E=c(s);return r.from(E,"hex")}function b(s){if(!r.isBuffer(s)){if(typeof s=="string")return n(s)?r.from(d(o(s)),"hex"):r.from(s);if(typeof s=="number"||typeof s=="bigint")return s?x(s):r.from([]);if(s==null)return r.from([]);if(s instanceof Uint8Array)return r.from(s);if(g.default.isBN(s))return r.from(s.toArray());throw new Error("invalid type")}return s}},9084:function(K,e,y){var r=y(48764).Buffer,v=y(25632).pbkdf2Sync,g=2147483647;function f(t,l,i,u,n,o,c){if(i===0||(i&i-1)!==0)throw Error("N must be > 0 and a power of 2");if(i>g/128/u)throw Error("Parameter N is too large");if(u>g/128/n)throw Error("Parameter r is too large");var d=new r(256*u),x=new r(128*u*i),b=new Int32Array(16),s=new Int32Array(16),E=new r(64),h=v(t,l,1,n*128*u,"sha256"),w;if(c){var m=n*i*2,A=0;w=function(){++A,A%1e3===0&&c({current:A,total:m,percent:A/m*100})}}for(var S=0;S<n;S++)P(h,S*128*u,u,i,x,d);return v(t,h,1,o,"sha256");function P(C,B,U,I,p,T){var N=0,z=128*U,_;for(C.copy(T,N,B,B+z),_=0;_<I;_++)T.copy(p,_*z,N,N+z),L(T,N,z,U),w&&w();for(_=0;_<I;_++){var V=N+(2*U-1)*64,H=T.readUInt32LE(V)&I-1;O(p,H*z,T,N,z),L(T,N,z,U),w&&w()}T.copy(C,B,N,N+z)}function L(C,B,U,I){var p;for(a(C,B+(2*I-1)*64,E,0,64),p=0;p<2*I;p++)O(C,p*64,E,0,64),R(E),a(E,0,C,U+p*64,64);for(p=0;p<I;p++)a(C,U+p*2*64,C,B+p*64,64);for(p=0;p<I;p++)a(C,U+(p*2+1)*64,C,B+(p+I)*64,64)}function k(C,B){return C<<B|C>>>32-B}function R(C){var B;for(B=0;B<16;B++)b[B]=(C[B*4+0]&255)<<0,b[B]|=(C[B*4+1]&255)<<8,b[B]|=(C[B*4+2]&255)<<16,b[B]|=(C[B*4+3]&255)<<24;for(a(b,0,s,0,16),B=8;B>0;B-=2)s[4]^=k(s[0]+s[12],7),s[8]^=k(s[4]+s[0],9),s[12]^=k(s[8]+s[4],13),s[0]^=k(s[12]+s[8],18),s[9]^=k(s[5]+s[1],7),s[13]^=k(s[9]+s[5],9),s[1]^=k(s[13]+s[9],13),s[5]^=k(s[1]+s[13],18),s[14]^=k(s[10]+s[6],7),s[2]^=k(s[14]+s[10],9),s[6]^=k(s[2]+s[14],13),s[10]^=k(s[6]+s[2],18),s[3]^=k(s[15]+s[11],7),s[7]^=k(s[3]+s[15],9),s[11]^=k(s[7]+s[3],13),s[15]^=k(s[11]+s[7],18),s[1]^=k(s[0]+s[3],7),s[2]^=k(s[1]+s[0],9),s[3]^=k(s[2]+s[1],13),s[0]^=k(s[3]+s[2],18),s[6]^=k(s[5]+s[4],7),s[7]^=k(s[6]+s[5],9),s[4]^=k(s[7]+s[6],13),s[5]^=k(s[4]+s[7],18),s[11]^=k(s[10]+s[9],7),s[8]^=k(s[11]+s[10],9),s[9]^=k(s[8]+s[11],13),s[10]^=k(s[9]+s[8],18),s[12]^=k(s[15]+s[14],7),s[13]^=k(s[12]+s[15],9),s[14]^=k(s[13]+s[12],13),s[15]^=k(s[14]+s[13],18);for(B=0;B<16;++B)b[B]=s[B]+b[B];for(B=0;B<16;B++){var U=B*4;C[U+0]=b[B]>>0&255,C[U+1]=b[B]>>8&255,C[U+2]=b[B]>>16&255,C[U+3]=b[B]>>24&255}}function O(C,B,U,I,p){for(var T=0;T<p;T++)U[I+T]^=C[B+T]}}function a(t,l,i,u,n){if(r.isBuffer(t)&&r.isBuffer(i))t.copy(i,u,l,l+n);else for(;n--;)i[u++]=t[l++]}K.exports=f},49604:function(K,e,y){var r=y(23944);K.exports=function(g){return typeof g!="string"?g:r(g)?g.slice(2):g}}}]);