supercolony 0.1.5 → 0.1.7

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.
@@ -1 +1 @@
1
- const _0x159d74=_0x37b5;import{createHash as _0x1cc679,randomBytes as _0x1ac927,randomUUID as _0xa1fb4d}from'node:crypto';import{readFile as _0x2b685a}from'node:fs/promises';import{setTimeout as _0x535622}from'node:timers/promises';import{x402Client as _0x1cbd29}from'@x402/core/client';import{encodePaymentSignatureHeader as _0x3429a8}from'@x402/core/http';import{ExactEvmScheme as _0x21bb47}from'@x402/evm/exact/client';import{formatUnits as _0x35e0db,sha256 as _0x5a4a0d,stringToBytes as _0x387a4e}from'viem';import{confirmAction as _0x1717a4,getPublicRpcClient as _0x1f93f7,getSigner as _0x43d4f3,request as _0x141421}from'../shared.mjs';import{assertOrderNotCancelled as _0x339375,findOrder as _0xb25b43,loadOrder as _0x347102,orderActions as _0x188fc7,saveOrder as _0x32b846}from'./orders.mjs';import{assertQuotePayment as _0x2e1fc7,orderPayment as _0x4ccfa2}from'./payments.mjs';import{networkName as _0x12ccb4,selectedPaymentNetwork as _0x741e48}from'./payment-networks.mjs';import{signOnchainPayment as _0x3a46fa,submitOnchainPayment as _0x1947ba}from'./onchain-payment.mjs';import{coinSymbol as _0x205f91,paymentCoin as _0x17a353}from'./payment-coins.mjs';import{fundingSummary as _0x20f601}from'./funding-state.mjs';import{fundOrder as _0x3dc9d5}from'./funding.mjs';import{walletInfo as _0x13d967}from'./local-wallet.mjs';import{selectSupport as _0x3ce937,supportView as _0x3e189c}from'./support.mjs';import{authorizationUnpaid as _0x43d1bc}from'./payment-recovery.mjs';import{retainExpiredNonce as _0xed989b}from'./transaction-recovery.mjs';import{transactionReceipt as _0xc67fcf}from'./transactions.mjs';import{withSubmissionAttribution as _0xee41f4}from'./submission-attribution.mjs';function S(_0x2c918d){const _0x3e6098=_0x37b5;return _0x2c918d===null?_0x3e6098(0x269):Array[_0x3e6098(0x242)](_0x2c918d)?'['+_0x2c918d['map'](S)[_0x3e6098(0x275)](',')+']':typeof _0x2c918d==_0x3e6098(0x239)?'{'+Object[_0x3e6098(0x229)](_0x2c918d)['sort']()['map'](_0x5e630c=>JSON[_0x3e6098(0x249)](_0x5e630c)+':'+S(_0x2c918d[_0x5e630c]))[_0x3e6098(0x275)](',')+'}':JSON['stringify'](_0x2c918d);}function ce(_0x59fe24){const _0x54f8cf=_0x37b5;return _0x1cc679(_0x54f8cf(0x25e))[_0x54f8cf(0x274)](S(_0x59fe24))[_0x54f8cf(0x25d)](_0x54f8cf(0x298));}async function de(_0x3f8d03){const _0x510630=_0x37b5;let _0x3dc0a2;try{_0x3dc0a2=JSON['parse'](await _0x2b685a(_0x3f8d03,_0x510630(0x1ef)));}catch(_0x1f320a){throw _0x1f320a instanceof SyntaxError?new Error('invalid\x20JSON\x20in\x20'+_0x3f8d03+':\x20'+_0x1f320a[_0x510630(0x210)]):_0x1f320a;}if(!_0x3dc0a2||typeof _0x3dc0a2!=_0x510630(0x239)||Array[_0x510630(0x242)](_0x3dc0a2))throw new Error(_0x3f8d03+'\x20must\x20contain\x20a\x20JSON\x20object');return _0x3dc0a2;}async function me(_0x2a340c,_0x22bfd8,_0x243e9e=_0x159d74(0x27d),_0x53055a){const _0x166ad8=_0x159d74,_0x715430=await _0x141421(_0x2a340c,'/requests/check',{'method':_0x166ad8(0x1f9),'query':!0x0,'body':{'action':_0x243e9e,'input':_0x22bfd8},'signal':_0x53055a});if(!Array[_0x166ad8(0x242)](_0x715430[_0x166ad8(0x291)]?.['blockers']))throw new Error(_0x166ad8(0x1c3));return _0x715430['data'];}async function T(_0x140a99,_0x35fe9f,_0x47b2e5,_0x86a93c,_0x2c54af=_0x159d74(0x27d),_0x5da656){const _0x26a94b=_0x159d74,_0x2c2f31=await _0x141421(_0x140a99,_0x26a94b(0x261),{'method':'POST','token':_0x35fe9f,'body':{'requestKey':_0x47b2e5,'action':_0x2c54af,'input':_0x86a93c},'signal':_0x5da656}),_0x1db2c9=_0x2c2f31[_0x26a94b(0x291)]?.[_0x26a94b(0x29a)];if(!_0x1db2c9?.['id']||!_0x1db2c9[_0x26a94b(0x1e3)]?.[_0x26a94b(0x203)])throw new Error(_0x26a94b(0x1b4));return{..._0x1db2c9,'onchain':_0x2c2f31[_0x26a94b(0x291)]['onchain']};}async function pe(_0x4a8b0e,_0x27d519,_0x2f9864){const _0x326d7e=_0x159d74;if(_0x2f9864?.[_0x326d7e(0x26d)])return _0x2f9864['owner'];const _0x1ef2eb=_0x27d519?.[_0x326d7e(0x294)];if(!_0x1ef2eb)throw new Error('job.continue\x20input\x20is\x20missing\x20parentJobId');const _0x432574=(await _0x141421(_0x4a8b0e,_0x326d7e(0x1e6)+encodeURIComponent(_0x1ef2eb)))[_0x326d7e(0x291)]?.[_0x326d7e(0x26a)];if(!_0x432574)throw new Error('cannot\x20verify\x20the\x20project\x20owner\x20for\x20'+_0x1ef2eb+':\x20the\x20parent\x20job\x20has\x20no\x20paidBy');return _0x432574;}function ye(_0x46a596,_0x5f5588){const _0x4001ef=_0x159d74,_0x36f7b1=new Error(_0x4001ef(0x243)+_0x46a596+'\x20is\x20not\x20the\x20project\x20owner\x20'+_0x5f5588+';\x20no\x20payment\x20was\x20signed\x20in\x20this\x20attempt');return _0x36f7b1['code']='owner_mismatch',_0x36f7b1;}async function P({api:_0x44dfb3,input:_0xdbb184,check:_0x33def0,account:_0x141741,owner:_0x232e67}){const _0x7356c7=_0x159d74,_0x317832=_0x232e67??await pe(_0x44dfb3,_0xdbb184,_0x33def0);if(!_0x141741?.['address'])throw new Error('missing\x20signer\x20address');if(!v(_0x317832,_0x141741['address']))throw ye(_0x141741[_0x7356c7(0x280)],_0x317832);return _0x317832;}async function le(_0x27a4b0,_0x1b336f,_0x53c3fe,_0x57ccd6){const _0x53353a=_0x159d74,_0x3165ae=await _0x141421(_0x27a4b0,_0x53353a(0x20f)+_0x53c3fe+_0x53353a(0x28b),{'method':_0x53353a(0x1f9),'token':_0x1b336f,'allowStatuses':[0x192],'signal':_0x57ccd6});if(_0x3165ae[_0x53353a(0x230)]!==0x192)throw new Error(_0x53353a(0x29b)+_0x3165ae[_0x53353a(0x230)]);const _0x37a705=_0x3165ae[_0x53353a(0x291)];if(!Array[_0x53353a(0x242)](_0x37a705?.['accepts'])||_0x37a705[_0x53353a(0x272)][_0x53353a(0x1d0)]===0x0)throw new Error(_0x53353a(0x28d));if(!_0x37a705[_0x53353a(0x211)]||!_0x37a705[_0x53353a(0x25c)])throw new Error(_0x53353a(0x267));return _0x37a705;}function _0x9868(){const _0x178619=['quote\x20response\x20is\x20missing\x20order\x20or\x20quote','Price:\x20','deadline','\x20atomic\x20units)','min','signed','\x20(at\x20most\x20','function','The\x20previous\x20payment\x20is\x20still\x20being\x20reconciled.\x20Your\x20task\x20is\x20saved.\x20Continue\x20this\x20task\x20again\x20after\x20chain\x20confirmation;\x20no\x20new\x20payment\x20was\x20signed.','transaction','unsupported\x20action:\x20','robinhood','expired','payTo','Sign\x20and\x20pay\x20this\x20order?\x0a','check\x20response\x20is\x20missing\x20blockers','rawTransaction','\x20--refresh','fromConfig','permit2','order\x20','lastStatus','expiresAt','max','Maximum\x20debit:\x20','\x20belongs\x20to\x20','transaction_pending','invalid\x20quote\x20network:\x20','length','order_changed','Total\x20ETH\x20at\x20most:\x20','\x20task\x20continue\x20','confirmedHash','\x20was\x20created\x20for\x20a\x20different\x20input','serverRequestKey','toLowerCase','admission','transactionHash','\x20order\x20show\x20','floor','Prepared\x20input\x20(this\x20is\x20what\x20will\x20be\x20paid\x20for):','),\x20converted\x20to\x20IMD','\x20task\x20create\x20--file\x20<saved-input.json>\x20--request-key\x20','ethereum','now','network','slice','quote','job.continue','payment_review_expired','/jobs/','challenge','payment\x20requirement\x20is\x20missing\x20maxTimeoutSeconds','<missing>','signTypedData','funding','\x20IMD\x20+\x20network\x20fees\x0aSupport\x20recipient:\x20','\x20IMD\x20·\x20Help\x20us\x20make\x20Colony\x20better.\x0aTotal:\x20','\x20has\x20not\x20been\x20quoted;\x20there\x20is\x20no\x20server\x20order\x20to\x20refresh','utf8','maxTimeoutSeconds','change_payment','retryCommand','Network:\x20','Task:\x20','action','refusalProblems','payment\x20challenge\x20belongs\x20to\x20a\x20different\x20order','orderId','POST','Amount:\x20','payment\x20challenge\x20action\x20','amount','input','\x20at\x20','resource','quoteHash','Payment:\x20≈\x20','jobId','payment','challenged','invalid\x20','payload','headers','payment_failed','converted','decimals','<parent-job-id>',';\x20rerun\x20with\x20--api\x20','lastError','paymentStatus','/requests/','message','resourceUrl','assign','timeoutMs','toISOString','Payment:\x20conversion\x20already\x20confirmed\x20(','display','\x20--home\x20',';\x20last\x20status:\x20','job\x20input\x20must\x20be\x20a\x20JSON\x20object','\x20does\x20not\x20match\x20','orderStatus','signal','signing','\x0aOptional\x20support:\x20',';\x20continue\x20this\x20task\x20with:\x20colony\x20--api\x20','request\x20key\x20','.\x20Saved\x20transactions\x20will\x20be\x20checked\x20before\x20refreshing\x20prices.','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','asset','code','some','quoteSignature','\x20from\x20the\x20same\x20ETH\x20balance','paymentHistory','keys','payment\x20deadline\x20','\x20\x20-\x20','\x0aSupport\x20is\x20sent\x20before\x20task\x20payment\x20and\x20is\x20not\x20refunded\x20if\x20admission\x20fails.','plan','Signing\x20task\x20payment\x20authorization...','\x20IMD','status','refused','checking_payment','colony\x20--api\x20','deliverables','error','Pay\x20with:\x20','\x20on\x20','\x20at\x20most)','object','kind','blockers','string','\x20(api\x20','saved\x20quote\x20action\x20','paymentChain','Action:\x20','paymentHeader','isArray','wallet\x20','networkFeeCap','submittedAt','created','owner_mismatch','quoted','stringify','\x20was\x20created\x20for\x20action\x20','order\x20status\x20response\x20is\x20missing\x20status','payWith','\x20order\x20submit\x20','admitted','IMD','toString','onchainQuotes','quote\x20has\x20expired;\x20no\x20payment\x20was\x20signed','onchainPayment','includes','onSaved','state','QuoteApproval','objective','\x0aorder\x20status\x20refresh\x20failed:\x20','coin','onchain','requesterScopeHash','digest','sha256',',\x20not\x20','payer','/requests/quote','recoveryStatus','support','resultUrl','submissionInput','gas','payment\x20challenge\x20is\x20missing\x20resourceUrl\x20or\x20requesterScopeHash','requestToken','null','paidBy','blocked','quote_expired','owner','isInteger','createPaymentPayload','statusUrl','replace','accepts','pendingTransaction','update','join','payment_reconciling','paymentHash','Submitting\x20task\x20payment\x20to\x20IMD...','payment\x20challenge\x20does\x20not\x20use\x20Permit2','reason','expectedWallet','Checking\x20your\x20task\x20and\x20requesting\x20a\x20current\x20price...','job.open','This\x20order\x20already\x20uses\x20a\x20different\x20payment\x20network.\x20Resume\x20it\x20on\x20its\x20original\x20network.','onProgress','address','test','throwIfAborted','problems','IdentityMD\x20Paid\x20Action','onCheck','\x20is\x20not\x20before\x20quote\x20expiry\x20','\x20--request-key\x20','Quote\x20expires:\x20','uint256','confirm','/submit','quote\x20approval','payment\x20challenge\x20is\x20missing\x20accepts','ETH','api','quoteHistory','data','Payment\x20covers\x20task\x20admission;\x20a\x20completed\x20result\x20is\x20not\x20guaranteed.','paymentReview','parentJobId','\x20ETH','requestKey','maximumDebit','hex','Asset:\x20','order','expected\x20HTTP\x20402\x20payment\x20challenge,\x20got\x20HTTP\x20','submitted','parse','Included\x20network\x20fee\x20cap:\x20','\x20task\x20publish\x20--file\x20','bytes32','Checking\x20the\x20previous\x20payment\x20and\x20refreshing\x20prices...','extra','Requested\x20objective:\x20','intervalMs','inputHash','permit2Authorization'];_0x9868=function(){return _0x178619;};return _0x9868();}function v(_0x194b2c,_0x1c6878){const _0x9bb8d3=_0x159d74;return String(_0x194b2c)[_0x9bb8d3(0x1d7)]()===String(_0x1c6878)['toLowerCase']();}function C(_0x31d023,_0x3c3b95){const _0x33550c=_0x159d74,_0x13c04b=_0x31d023['accepts'][0x0],_0x1af04a=_0x3c3b95[_0x33550c(0x1e3)][_0x33550c(0x203)];if(_0x3c3b95[_0x33550c(0x1e3)]?.[_0x33550c(0x1f5)]!==_0x3c3b95[_0x33550c(0x1f5)])throw new Error(_0x33550c(0x23e)+(_0x3c3b95[_0x33550c(0x1e3)]?.[_0x33550c(0x1f5)]??_0x33550c(0x1e9))+_0x33550c(0x21a)+_0x3c3b95['action']);if(_0x31d023['quote']?.[_0x33550c(0x1f5)]!==_0x3c3b95[_0x33550c(0x1f5)])throw new Error(_0x33550c(0x1fb)+(_0x31d023['quote']?.[_0x33550c(0x1f5)]??_0x33550c(0x1e9))+_0x33550c(0x21a)+_0x3c3b95[_0x33550c(0x1f5)]);if(_0x31d023['quote']?.['id']!==_0x3c3b95[_0x33550c(0x1f8)])throw new Error(_0x33550c(0x1f7));if(_0x31d023[_0x33550c(0x1e3)]?.[_0x33550c(0x200)]!==_0x3c3b95['quote'][_0x33550c(0x200)])throw new Error('payment\x20challenge\x20quoteHash\x20does\x20not\x20match\x20the\x20saved\x20quote');if(_0x31d023[_0x33550c(0x1e3)]?.[_0x33550c(0x1ca)]!==_0x3c3b95[_0x33550c(0x1e3)]['expiresAt'])throw new Error('payment\x20challenge\x20expiry\x20does\x20not\x20match\x20the\x20saved\x20quote');for(const [_0x32686b,_0x1bd451]of[['payment\x20challenge',_0x13c04b],[_0x33550c(0x28c),_0x31d023[_0x33550c(0x1e3)]['payment']]])for(const _0x18b6b8 of[_0x33550c(0x1e1),_0x33550c(0x223),'amount',_0x33550c(0x1c1)])if(!(_0x18b6b8===_0x33550c(0x223)||_0x18b6b8==='payTo'?v(_0x1bd451?.[_0x18b6b8],_0x1af04a[_0x18b6b8]):String(_0x1bd451?.[_0x18b6b8])===String(_0x1af04a[_0x18b6b8])))throw new Error(_0x32686b+'\x20'+_0x18b6b8+'\x20does\x20not\x20match\x20the\x20saved\x20quote');if(_0x13c04b[_0x33550c(0x2a2)]?.['assetTransferMethod']!==_0x33550c(0x1c7))throw new Error(_0x33550c(0x279));if(!_0x31d023[_0x33550c(0x1fd)]||typeof _0x31d023[_0x33550c(0x1fd)]!=_0x33550c(0x239)||Array['isArray'](_0x31d023[_0x33550c(0x1fd)]))throw new Error('payment\x20challenge\x20is\x20missing\x20the\x20prepared\x20input');if(Number(_0x31d023[_0x33550c(0x1e3)][_0x33550c(0x1ca)])*0x3e8<=Date[_0x33550c(0x1e0)]()){const _0x21eb0a=new Error(_0x33550c(0x252));throw _0x21eb0a[_0x33550c(0x224)]='quote_expired',_0x21eb0a;}}async function he(_0x3c08f7,_0x579816){const _0x184874=_0x159d74,_0x4640a4=_0x579816['accepts'][0x0],_0x54d9ab=Number(_0x579816[_0x184874(0x1e3)][_0x184874(0x1ca)]),_0x445b5d=_0x54d9ab-Math[_0x184874(0x1db)](Date[_0x184874(0x1e0)]()/0x3e8);if(!Number[_0x184874(0x26e)](_0x445b5d)||_0x445b5d<=0x1){const _0x2aa549=new Error('quote\x20expires\x20too\x20soon\x20to\x20sign\x20a\x20payment;\x20no\x20payment\x20was\x20signed');throw _0x2aa549[_0x184874(0x224)]=_0x184874(0x26c),_0x2aa549;}if(!Number[_0x184874(0x26e)](Number(_0x4640a4[_0x184874(0x1f0)])))throw new Error(_0x184874(0x1e8));const _0x249fd9=Math[_0x184874(0x1cb)](0x1,Math[_0x184874(0x1b8)](Number(_0x4640a4[_0x184874(0x1f0)]),_0x445b5d-0x1)),_0x508600={..._0x4640a4,'maxTimeoutSeconds':_0x249fd9},_0x47ac60=await _0x1cbd29[_0x184874(0x1c6)]({'schemes':[{'network':_0x508600['network'],'client':new _0x21bb47(_0x3c08f7)}],'spendControls':{'allowedAssets':[{'network':_0x508600[_0x184874(0x1e1)],'asset':_0x508600[_0x184874(0x223)],'maxAmountPerPayment':_0x508600['amount']}]}})[_0x184874(0x26f)]({'x402Version':0x2,'resource':_0x579816[_0x184874(0x1ff)],'accepts':[_0x508600]}),{extensions:_0x56f066,..._0x5a9f72}=_0x47ac60,_0x1ab398=JSON[_0x184874(0x29d)](JSON[_0x184874(0x249)]({..._0x5a9f72,'accepted':_0x4640a4})),_0x37577d=_0x1ab398[_0x184874(0x206)]?.[_0x184874(0x2a6)]?.[_0x184874(0x1b6)];if(_0x37577d===void 0x0||BigInt(_0x37577d)>=BigInt(_0x54d9ab))throw new Error(_0x184874(0x22a)+_0x37577d+_0x184874(0x286)+_0x54d9ab);return{'payment':_0x1ab398,'paymentHeader':_0x3429a8(_0x1ab398),'paymentHash':_0x5a4a0d(_0x387a4e(S(_0x1ab398)))};}function E(_0x2ddede,_0x225204){const _0x1ad4cf=_0x159d74,_0x16b52f=String(_0x2ddede??'')[_0x1ad4cf(0x271)](/^0x/,'');if(!/^[0-9a-f]{64}$/i[_0x1ad4cf(0x281)](_0x16b52f))throw new Error(_0x1ad4cf(0x205)+_0x225204+':\x20'+_0x2ddede);return'0x'+_0x16b52f;}function fe(_0x4d07fe,_0x2c021f){const _0x1418b7=_0x159d74,_0x49d26c=_0x4d07fe['quote'],_0x17b592=Number(String(_0x49d26c['payment'][_0x1418b7(0x1e1)])[_0x1418b7(0x1e2)](0x7));if(!Number[_0x1418b7(0x26e)](_0x17b592)||_0x17b592<=0x0)throw new Error(_0x1418b7(0x1cf)+_0x49d26c[_0x1418b7(0x203)][_0x1418b7(0x1e1)]);return{'domain':{'name':_0x1418b7(0x284),'version':'1','chainId':_0x17b592},'types':{'QuoteApproval':[{'name':_0x1418b7(0x1ff),'type':_0x1418b7(0x23c)},{'name':_0x1418b7(0x25c),'type':'bytes32'},{'name':'quoteId','type':'string'},{'name':_0x1418b7(0x200),'type':_0x1418b7(0x2a0)},{'name':_0x1418b7(0x277),'type':_0x1418b7(0x2a0)},{'name':_0x1418b7(0x1f5),'type':'string'},{'name':_0x1418b7(0x223),'type':'address'},{'name':_0x1418b7(0x1fc),'type':_0x1418b7(0x289)},{'name':'payTo','type':_0x1418b7(0x280)},{'name':_0x1418b7(0x1ca),'type':'uint256'}]},'primaryType':_0x1418b7(0x257),'message':{'resource':_0x4d07fe[_0x1418b7(0x211)],'requesterScopeHash':E(_0x4d07fe[_0x1418b7(0x25c)],_0x1418b7(0x25c)),'quoteId':_0x49d26c['id'],'quoteHash':E(_0x49d26c[_0x1418b7(0x200)],_0x1418b7(0x200)),'paymentHash':E(_0x2c021f,_0x1418b7(0x277)),'action':_0x49d26c[_0x1418b7(0x1f5)],'asset':_0x49d26c[_0x1418b7(0x203)][_0x1418b7(0x223)],'amount':BigInt(_0x49d26c['payment'][_0x1418b7(0x1fc)]),'payTo':_0x49d26c[_0x1418b7(0x203)][_0x1418b7(0x1c1)],'expiresAt':BigInt(_0x49d26c[_0x1418b7(0x1ca)])}};}async function we(_0x36490c,_0x47accd,_0x3f5e9d){const _0x22f653=_0x159d74,_0x5609d7=fe(_0x47accd,_0x3f5e9d);return _0x36490c[_0x22f653(0x1ea)](_0x5609d7);}function _0x37b5(_0x6f19c1,_0x986837){_0x6f19c1=_0x6f19c1-0x1b4;const _0x37b526=_0x9868();let _0x130e64=_0x37b526[_0x6f19c1];return _0x130e64;}function ge(_0x2f43a4){const _0x33c667=_0x159d74,_0x5efcd1=_0x4ccfa2(_0x2f43a4),_0x3bbd8f=_0x35e0db(BigInt(_0x5efcd1[_0x33c667(0x1fc)]),_0x5efcd1[_0x33c667(0x20a)]),_0x55f3a0=_0x2f43a4[_0x33c667(0x1eb)]?_0x20f601(_0x2f43a4[_0x33c667(0x1eb)]):null,_0x4c02a1=_0x2f43a4['paymentReview']?[(_0x2f43a4[_0x33c667(0x24c)]===_0x33c667(0x28e)?_0x33c667(0x29e):'Additional\x20network\x20fee\x20cap:\x20')+_0x2f43a4[_0x33c667(0x293)][_0x33c667(0x244)]+_0x33c667(0x295)]:[];if(!_0x2f43a4[_0x33c667(0x1e7)]?.[_0x33c667(0x1fd)]||typeof _0x2f43a4[_0x33c667(0x1e7)][_0x33c667(0x1fd)]!='object')throw new Error('payment\x20challenge\x20is\x20missing\x20the\x20prepared\x20input');if(_0x2f43a4['plan']){const _0x15aeb8=_0x2f43a4[_0x33c667(0x24c)]??_0x33c667(0x24f);return[_0x33c667(0x1f4)+_0x2f43a4[_0x33c667(0x1fd)][_0x33c667(0x258)],..._0x2f43a4[_0x33c667(0x22d)][_0x33c667(0x234)]['map'](_0x26fa13=>_0x33c667(0x22b)+_0x26fa13),_0x33c667(0x1b5)+_0x3bbd8f+_0x33c667(0x22f),_0x33c667(0x236)+_0x15aeb8+_0x33c667(0x237)+_0x12ccb4(_0x2f43a4[_0x33c667(0x23f)]),..._0x55f3a0?[_0x15aeb8===_0x33c667(0x24f)?'Payment:\x20'+_0x55f3a0[_0x33c667(0x216)][_0x33c667(0x203)]:_0x55f3a0[_0x33c667(0x209)]?_0x33c667(0x215)+_0x55f3a0[_0x33c667(0x216)][_0x33c667(0x203)]+_0x33c667(0x238):_0x33c667(0x201)+(_0x55f3a0['display']['estimate']??_0x55f3a0[_0x33c667(0x216)][_0x33c667(0x203)])+_0x33c667(0x1ba)+_0x55f3a0['display'][_0x33c667(0x203)]+_0x33c667(0x1dd),'Gas\x20(network\x20fee,\x20paid\x20in\x20ETH):\x20at\x20most\x20'+_0x55f3a0['display'][_0x33c667(0x266)]+(_0x15aeb8===_0x33c667(0x28e)?_0x33c667(0x227):''),..._0x15aeb8==='ETH'?[_0x33c667(0x1d2)+_0x55f3a0[_0x33c667(0x216)][_0x33c667(0x297)]]:[],..._0x55f3a0['coin']!==_0x33c667(0x24f)?['Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.']:[]]:_0x4c02a1,_0x33c667(0x292)]['join']('\x0a');}return['Order:\x20'+_0x2f43a4[_0x33c667(0x1f8)],_0x33c667(0x240)+(_0x2f43a4[_0x33c667(0x1f5)]??_0x33c667(0x27d)),_0x33c667(0x1f3)+_0x5efcd1['network'],_0x33c667(0x1fa)+_0x3bbd8f+'\x20('+_0x5efcd1[_0x33c667(0x1fc)]+_0x33c667(0x1b7),_0x33c667(0x299)+_0x5efcd1[_0x33c667(0x223)],'Pay\x20to:\x20'+_0x5efcd1[_0x33c667(0x1c1)],_0x33c667(0x288)+new Date(Number(_0x2f43a4[_0x33c667(0x1e3)]['expiresAt'])*0x3e8)[_0x33c667(0x214)](),..._0x55f3a0?[_0x33c667(0x1cc)+_0x55f3a0[_0x33c667(0x297)],..._0x55f3a0[_0x33c667(0x25a)]!==_0x33c667(0x24f)?[_0x33c667(0x222)]:[]]:[],..._0x4c02a1,_0x33c667(0x2a3)+String(_0x2f43a4['input']['objective']??''),_0x33c667(0x1dc),JSON['stringify'](_0x2f43a4[_0x33c667(0x1e7)][_0x33c667(0x1fd)],null,0x2)]['join']('\x0a');}async function qe(_0x3af36f,_0x75e218){const _0x257567=_0x159d74;if(_0x75e218[_0x257567(0x28a)])return _0x75e218[_0x257567(0x28a)](_0x3af36f);const _0x58a38b=_0x3e189c(_0x3af36f),_0x57cb84=_0x58a38b?_0x257567(0x21e)+_0x58a38b[_0x257567(0x1fc)]+_0x257567(0x1ed)+_0x58a38b['total']+_0x257567(0x1ec)+_0x58a38b['recipient']+_0x257567(0x22c):'';await _0x1717a4(_0x257567(0x1c2)+ge(_0x3af36f)+_0x57cb84,_0x75e218);}function be(_0x2d8d13,_0x412e5b){const _0x57cbd5=_0x159d74;if(typeof _0x412e5b[_0x57cbd5(0x1f2)]==_0x57cbd5(0x1bb))return _0x412e5b[_0x57cbd5(0x1f2)](_0x2d8d13);if(_0x412e5b[_0x57cbd5(0x1f2)])return _0x412e5b[_0x57cbd5(0x1f2)];const {file:_0x41e8cd,home:_0x1f6a1d,api:_0x43b3b3}=_0x412e5b,_0x1d8f45=_0x57cbd5(0x233)+_0x43b3b3+_0x57cbd5(0x217)+_0x1f6a1d,_0x2040b0=_0x2d8d13[_0x57cbd5(0x296)];if(_0x2d8d13['action']===_0x57cbd5(0x1e4)){const _0x477f13=_0x2d8d13[_0x57cbd5(0x1fd)]?.[_0x57cbd5(0x294)]??_0x57cbd5(0x20b);return _0x41e8cd?_0x1d8f45+'\x20task\x20continue\x20'+_0x477f13+'\x20--file\x20'+_0x41e8cd+_0x57cbd5(0x287)+_0x2040b0:_0x1d8f45+_0x57cbd5(0x1d3)+_0x477f13+_0x57cbd5(0x287)+_0x2040b0;}return _0x41e8cd?_0x1d8f45+_0x57cbd5(0x29f)+_0x41e8cd+_0x57cbd5(0x287)+_0x2040b0:_0x1d8f45+_0x57cbd5(0x1de)+_0x2040b0;}function $e(_0x52607d,_0x391faf,_0x2e0cf5){const _0x5054b4=_0x159d74,{home:_0x25c641,api:_0x255151}=_0x2e0cf5,_0x448e1b='saved\x20request\x20key\x20'+_0x391faf[_0x5054b4(0x296)]+_0x5054b4(0x1fe)+_0x25c641+_0x5054b4(0x23d)+_0x255151+')',_0x4621b9=!!(_0x391faf[_0x5054b4(0x241)]||_0x391faf['quoteSignature']||_0x391faf['onchainPayment']),_0x25a035=!!_0x391faf['funding']?.['steps'][_0x5054b4(0x225)](_0xe162e0=>_0xe162e0[_0x5054b4(0x1c4)]),_0x5e8033=_0x4621b9||_0x25a035;let _0x371bd9;return(_0x52607d['code']===_0x5054b4(0x26c)||_0x52607d[_0x5054b4(0x230)]===0x19a)&&_0x25a035&&!_0x4621b9?_0x371bd9=_0x448e1b+_0x5054b4(0x21f)+_0x255151+_0x5054b4(0x217)+_0x25c641+_0x5054b4(0x24d)+_0x391faf['requestKey']+_0x5054b4(0x221):(_0x52607d[_0x5054b4(0x224)]===_0x5054b4(0x26c)||_0x52607d[_0x5054b4(0x230)]===0x19a)&&!_0x5e8033?_0x371bd9=_0x448e1b+';\x20no\x20payment\x20was\x20signed.\x20Continue\x20this\x20task\x20with\x20a\x20fresh\x20quote:\x20colony\x20--api\x20'+_0x255151+_0x5054b4(0x217)+_0x25c641+_0x5054b4(0x24d)+_0x391faf['requestKey']:(_0x52607d['code']===_0x5054b4(0x26c)||_0x52607d[_0x5054b4(0x230)]===0x19a)&&_0x5e8033?_0x371bd9=_0x448e1b+';\x20a\x20payment\x20is\x20already\x20signed\x20for\x20order\x20'+_0x391faf[_0x5054b4(0x1f8)]+'.\x20Do\x20not\x20start\x20a\x20new\x20order.\x20Check\x20it\x20with:\x20colony\x20--api\x20'+_0x255151+_0x5054b4(0x217)+_0x25c641+_0x5054b4(0x1da)+_0x391faf[_0x5054b4(0x1f8)]+_0x5054b4(0x1c5):_0x5e8033&&_0x391faf[_0x5054b4(0x1f8)]?_0x371bd9=_0x448e1b+';\x20resume\x20with:\x20colony\x20--api\x20'+_0x255151+'\x20--home\x20'+_0x25c641+_0x5054b4(0x24d)+_0x391faf[_0x5054b4(0x1f8)]:_0x371bd9=_0x448e1b+';\x20retry\x20the\x20same\x20order\x20with:\x20'+be(_0x391faf,_0x2e0cf5),Object['assign'](new Error(_0x52607d[_0x5054b4(0x210)]+'\x0a'+_0x371bd9,{'cause':_0x52607d}),{'code':_0x52607d['code']??(_0x52607d['status']===0x19a&&!_0x4621b9?'quote_expired':void 0x0),'status':_0x52607d[_0x5054b4(0x230)],'data':_0x52607d[_0x5054b4(0x291)],'headers':_0x52607d[_0x5054b4(0x207)],'funding':_0x52607d[_0x5054b4(0x1eb)],'transaction':_0x52607d[_0x5054b4(0x1bd)]});}function k(_0x5e6fcb,_0x2200fc){const _0x29d172=_0x159d74;_0x5e6fcb[_0x29d172(0x1c9)]=_0x2200fc[_0x29d172(0x230)],_0x5e6fcb[_0x29d172(0x1d8)]=_0x2200fc[_0x29d172(0x1d8)]??null;const _0xfd8feb=_0x2200fc[_0x29d172(0x1d8)]?.['result'];_0xfd8feb&&(_0x5e6fcb['jobId']=_0xfd8feb[_0x29d172(0x202)]??null,_0x5e6fcb[_0x29d172(0x270)]=_0xfd8feb[_0x29d172(0x270)]??null,_0x5e6fcb[_0x29d172(0x264)]=_0xfd8feb[_0x29d172(0x264)]??null),_0x2200fc[_0x29d172(0x203)]&&(_0x5e6fcb[_0x29d172(0x20e)]=_0x2200fc[_0x29d172(0x203)][_0x29d172(0x230)],_0x5e6fcb['transactionHash']=_0x2200fc[_0x29d172(0x203)][_0x29d172(0x1d9)]??_0x5e6fcb[_0x29d172(0x253)]?.[_0x29d172(0x1d4)]??_0x5e6fcb[_0x29d172(0x253)]?.['hash']??null),_0x2200fc[_0x29d172(0x230)]===_0x29d172(0x24e)?(delete _0x5e6fcb[_0x29d172(0x273)],delete _0x5e6fcb['recoveryStatus'],_0x5e6fcb['lastError']=null,_0xfd8feb?.[_0x29d172(0x23a)]===_0x29d172(0x231)?(_0x5e6fcb['status']='refused',_0x5e6fcb[_0x29d172(0x1f6)]=_0xfd8feb[_0x29d172(0x283)]??[]):(_0x5e6fcb[_0x29d172(0x230)]=_0x29d172(0x24e),_0x5e6fcb[_0x29d172(0x1f6)]=null)):_0x2200fc[_0x29d172(0x230)]===_0x29d172(0x208)?_0x5e6fcb[_0x29d172(0x230)]=_0x29d172(0x208):_0x2200fc[_0x29d172(0x230)]===_0x29d172(0x1c0)&&(_0x5e6fcb[_0x29d172(0x230)]=_0x29d172(0x1c0));}async function H(_0x147214,_0x4c135f,_0x53990e){const _0x5738b2=_0x159d74,_0x36b0eb=await _0x141421(_0x147214,'/requests/'+_0x53990e,{'token':_0x4c135f});if(!_0x36b0eb['data']?.[_0x5738b2(0x230)])throw new Error(_0x5738b2(0x24b));return _0x36b0eb[_0x5738b2(0x291)];}async function Ge(_0x3dc2a9){const _0x36056c=_0x159d74,{home:_0x32e35e,id:_0x9f8505}=_0x3dc2a9,_0x2da584=await _0xb25b43(_0x32e35e,_0x9f8505);if(!_0x2da584[_0x36056c(0x1f8)])throw new Error(_0x36056c(0x1c8)+_0x2da584['requestKey']+_0x36056c(0x1ee));const _0x49d01f=await H(_0x2da584[_0x36056c(0x28f)],_0x2da584[_0x36056c(0x268)],_0x2da584['orderId']);return k(_0x2da584,_0x49d01f),_0x2da584['lastError']=null,await _0x32b846(_0x32e35e,_0x2da584),_0x2da584;}async function Se(_0x1ba1bb,_0x3533e2,_0x50dc60,_0x2f1c42={}){const _0x3d1a53=_0x159d74,_0x5c69be=_0x2f1c42[_0x3d1a53(0x213)]??0x2bf20,_0x40ff9e=_0x2f1c42[_0x3d1a53(0x2a4)]??0x7d0,_0x33a3cc=Date['now']()+_0x5c69be;for(;;){const _0x24dea7=(await _0x141421(_0x1ba1bb,_0x3d1a53(0x20f)+_0x50dc60,{'token':_0x3533e2,'signal':_0x2f1c42['signal']}))[_0x3d1a53(0x291)];if(!_0x24dea7?.['status'])throw new Error(_0x3d1a53(0x24b));if(_0x24dea7[_0x3d1a53(0x230)]===_0x3d1a53(0x24e)||_0x24dea7['status']==='payment_failed'||_0x24dea7[_0x3d1a53(0x230)]==='expired')return _0x24dea7;if(Date[_0x3d1a53(0x1e0)]()>=_0x33a3cc)throw new Error('timed\x20out\x20waiting\x20for\x20order\x20'+_0x50dc60+_0x3d1a53(0x218)+_0x24dea7[_0x3d1a53(0x230)]);await _0x535622(_0x40ff9e,void 0x0,{'signal':_0x2f1c42[_0x3d1a53(0x21c)]});}}async function ke(_0x195c85,_0x88f778,_0x192edd,_0x4bd9d8,_0x1cf42f){const _0x66fc66=_0x159d74;_0x192edd[_0x66fc66(0x245)]=new Date()[_0x66fc66(0x214)](),_0x192edd[_0x66fc66(0x230)]=_0x66fc66(0x29c),await _0x32b846(_0x4bd9d8,_0x192edd);const _0x259d9b=await _0x141421(_0x195c85,'/requests/'+_0x192edd[_0x66fc66(0x1f8)]+_0x66fc66(0x28b),{'method':'POST','token':_0x88f778,'headers':{'PAYMENT-SIGNATURE':_0x192edd[_0x66fc66(0x241)]},'body':{'quoteSignature':_0x192edd[_0x66fc66(0x226)]},'allowStatuses':[0x192],'signal':_0x1cf42f});if(_0x259d9b[_0x66fc66(0x230)]===0x192){const _0x2b16bb=_0x259d9b[_0x66fc66(0x291)]?.[_0x66fc66(0x27a)]??_0x259d9b[_0x66fc66(0x291)]?.[_0x66fc66(0x235)]??'payment\x20rejected',_0x59d493=new Error('payment\x20rejected:\x20'+_0x2b16bb);throw _0x59d493[_0x66fc66(0x230)]=0x192,_0x59d493[_0x66fc66(0x291)]=_0x259d9b['data'],_0x59d493;}return _0x259d9b[_0x66fc66(0x291)];}async function xe(_0x327ca0,_0x2d258c,_0x5108ac,_0x10786c){const _0x5d3d7e=_0x159d74;if(_0x327ca0[_0x5d3d7e(0x230)]!==0x19a&&_0x327ca0[_0x5d3d7e(0x224)]!==_0x5d3d7e(0x26c)||!_0x5108ac[_0x5d3d7e(0x241)]||!_0x5108ac['quoteSignature']||!_0x5108ac[_0x5d3d7e(0x1f8)])return null;try{const _0x259953=await H(_0x2d258c,_0x5108ac[_0x5d3d7e(0x268)],_0x5108ac[_0x5d3d7e(0x1f8)]);if(k(_0x5108ac,_0x259953),_0x5108ac[_0x5d3d7e(0x20d)]=null,await _0x32b846(_0x10786c,_0x5108ac),_0x5108ac[_0x5d3d7e(0x230)]===_0x5d3d7e(0x24e)||_0x5108ac[_0x5d3d7e(0x230)]===_0x5d3d7e(0x231)||_0x5108ac[_0x5d3d7e(0x230)]==='payment_failed'||_0x5108ac[_0x5d3d7e(0x230)]===_0x5d3d7e(0x1c0))return!0x0;}catch(_0x14c3c8){_0x327ca0[_0x5d3d7e(0x210)]+=_0x5d3d7e(0x259)+_0x14c3c8[_0x5d3d7e(0x210)];}return null;}async function Ie(_0xabad5b){const _0x44e918=_0x159d74;let _0xab4215=_0xabad5b[_0x44e918(0x296)];const _0x139e64=async _0xaf2ca2=>{const _0x17341c=_0x44e918;_0xab4215=_0xaf2ca2[_0x17341c(0x296)],await _0xabad5b[_0x17341c(0x255)]?.(_0xaf2ca2);};for(let _0x5d901e=0x0;;_0x5d901e++){try{const _0x5465fb=await Ee({..._0xabad5b,'requestKey':_0xab4215,'onSaved':_0x139e64});if(![_0x44e918(0x1c0),_0x44e918(0x208)][_0x44e918(0x254)](_0x5465fb[_0x44e918(0x230)])||_0x5d901e>=0x2)return _0x5465fb;}catch(_0x260335){if(_0x5d901e>=0x2||![_0x44e918(0x26c),_0x44e918(0x1e5)][_0x44e918(0x254)](_0x260335[_0x44e918(0x224)]))throw _0x260335;}_0xabad5b[_0x44e918(0x27f)]?.({'phase':_0x44e918(0x232),'message':_0x44e918(0x2a1)});}}async function Ee(_0xbb8d1e){const _0x2a5bf9=_0x159d74;_0xbb8d1e={..._0xbb8d1e,'expectedWallet':_0xbb8d1e[_0x2a5bf9(0x27b)]??_0x13d967(_0xbb8d1e)[_0x2a5bf9(0x280)]};const {api:_0x4f4c53,home:_0x48b951,file:_0x91fae4,requestKey:_0x4224c7}=_0xbb8d1e,_0x188ac4=_0x4224c7?await _0x347102(_0x48b951,_0x4224c7):null,_0x141020=_0x205f91(_0xbb8d1e[_0x2a5bf9(0x24c)]??_0x188ac4?.[_0x2a5bf9(0x24c)]),_0x112ca7=_0xbb8d1e[_0x2a5bf9(0x23f)]??_0x188ac4?.[_0x2a5bf9(0x23f)]??_0x741e48(_0xbb8d1e)['key'];_0x17a353(_0x112ca7,_0x141020);const _0x6ec779=_0xbb8d1e[_0x2a5bf9(0x1f5)]??_0x2a5bf9(0x27d);if(_0x6ec779!==_0x2a5bf9(0x27d)&&_0x6ec779!==_0x2a5bf9(0x1e4))throw new Error(_0x2a5bf9(0x1be)+_0x6ec779);const _0x3ffdc1=_0xbb8d1e[_0x2a5bf9(0x1fd)]??await de(_0x91fae4);if(!_0x3ffdc1||typeof _0x3ffdc1!=_0x2a5bf9(0x239)||Array[_0x2a5bf9(0x242)](_0x3ffdc1))throw new Error(_0x2a5bf9(0x219));const _0xcd9792=ce(_0x3ffdc1);let _0x3578db=_0x188ac4;if(_0x3578db){if(_0x339375(_0x3578db),_0x3578db[_0x2a5bf9(0x28f)]!==_0x4f4c53)throw new Error('order\x20'+_0x3578db[_0x2a5bf9(0x296)]+'\x20belongs\x20to\x20'+_0x3578db[_0x2a5bf9(0x28f)]+_0x2a5bf9(0x20c)+_0x3578db[_0x2a5bf9(0x28f)]);if(_0x3578db[_0x2a5bf9(0x1f5)]!==_0x6ec779)throw new Error(_0x2a5bf9(0x220)+_0x3578db[_0x2a5bf9(0x296)]+_0x2a5bf9(0x24a)+_0x3578db[_0x2a5bf9(0x1f5)]+_0x2a5bf9(0x25f)+_0x6ec779);if(_0x3578db[_0x2a5bf9(0x2a5)]!==_0xcd9792)throw new Error('request\x20key\x20'+_0x3578db[_0x2a5bf9(0x296)]+_0x2a5bf9(0x1d5));const _0x2fc9ed=_0x112ca7!==(_0x3578db[_0x2a5bf9(0x23f)]??_0x2a5bf9(0x1df));if(_0x2fc9ed||_0x141020!==(_0x3578db['payWith']??'IMD')){if(!_0x188fc7(_0x3578db)['canCancel'])throw new Error(_0x2fc9ed?_0x2a5bf9(0x27e):'Resume\x20this\x20order\x20with\x20its\x20original\x20payment\x20coin.');_0x3578db[_0x2a5bf9(0x23f)]=_0x112ca7,_0x3578db[_0x2a5bf9(0x24c)]=_0x141020;for(const _0x4785ff of['funding',_0x2a5bf9(0x293),_0x2a5bf9(0x263)])delete _0x3578db[_0x4785ff];await _0x32b846(_0x48b951,_0x3578db);}}else _0x3578db={'version':0x1,'requestKey':_0x4224c7??_0xa1fb4d(),'requestToken':_0x1ac927(0x20)[_0x2a5bf9(0x250)](_0x2a5bf9(0x298)),'api':_0x4f4c53,'action':_0x6ec779,'input':_0x3ffdc1,'inputHash':_0xcd9792,'submissionInput':_0xee41f4(_0x3ffdc1),..._0xbb8d1e[_0x2a5bf9(0x22d)]?{'plan':_0xbb8d1e[_0x2a5bf9(0x22d)]}:{},'createdAt':new Date()[_0x2a5bf9(0x214)](),'updatedAt':new Date()[_0x2a5bf9(0x214)](),'status':'created','paymentChain':_0x112ca7,'payWith':_0x141020},await _0x32b846(_0x48b951,_0x3578db);if(await _0xbb8d1e[_0x2a5bf9(0x255)]?.(_0x3578db),_0x3578db[_0x2a5bf9(0x230)]===_0x2a5bf9(0x24e))return{'state':_0x3578db,'status':'admitted'};if(_0x3578db['status']==='refused')return{'state':_0x3578db,'status':_0x3578db['status']};try{let _0x1414f4=_0x3578db[_0x2a5bf9(0x253)]||_0x3578db[_0x2a5bf9(0x241)]||_0x3578db[_0x2a5bf9(0x226)];if(_0x1414f4&&(Number(_0x3578db[_0x2a5bf9(0x1e3)][_0x2a5bf9(0x1ca)])*0x3e8<=Date[_0x2a5bf9(0x1e0)]()||['expired','payment_failed']['includes'](_0x3578db[_0x2a5bf9(0x230)]))){if(_0xbb8d1e[_0x2a5bf9(0x27f)]?.({'phase':_0x2a5bf9(0x232),'message':'Checking\x20the\x20original\x20payment\x20before\x20continuing...'}),k(_0x3578db,await H(_0x4f4c53,_0x3578db['requestToken'],_0x3578db[_0x2a5bf9(0x1f8)])),await _0x32b846(_0x48b951,_0x3578db),_0x3578db[_0x2a5bf9(0x230)]===_0x2a5bf9(0x24e)||_0x3578db[_0x2a5bf9(0x230)]===_0x2a5bf9(0x231))return{'state':_0x3578db,'status':_0x3578db[_0x2a5bf9(0x230)]};if(await _0x43d1bc(_0x3578db,_0xbb8d1e)){if(_0x3578db[_0x2a5bf9(0x253)]){const _0x31e057=await _0x1f93f7(_0xbb8d1e,_0x3578db[_0x2a5bf9(0x253)]['chainId']);await _0xc67fcf(_0x31e057,_0x3578db[_0x2a5bf9(0x253)])||_0xed989b(_0x3578db,_0x3578db[_0x2a5bf9(0x253)]);}_0x3578db[_0x2a5bf9(0x228)]=[..._0x3578db[_0x2a5bf9(0x228)]??[],{'orderId':_0x3578db[_0x2a5bf9(0x1f8)],'quote':_0x3578db[_0x2a5bf9(0x1e3)],'onchainQuotes':_0x3578db['onchainQuotes'],'payment':_0x3578db[_0x2a5bf9(0x203)],'paymentHeader':_0x3578db[_0x2a5bf9(0x241)],'quoteSignature':_0x3578db[_0x2a5bf9(0x226)],'onchainPayment':_0x3578db['onchainPayment'],'transactionHash':_0x3578db[_0x2a5bf9(0x1d9)],'submittedAt':_0x3578db[_0x2a5bf9(0x245)],'unpaid':!0x0}];for(const _0x395db5 of[_0x2a5bf9(0x203),_0x2a5bf9(0x241),'paymentHash',_0x2a5bf9(0x226),'onchainPayment',_0x2a5bf9(0x1d9),'submittedAt',_0x2a5bf9(0x20e)])delete _0x3578db[_0x395db5];_0x1414f4=!0x1,delete _0x3578db[_0x2a5bf9(0x273)],await _0x32b846(_0x48b951,_0x3578db);}else throw Object[_0x2a5bf9(0x212)](new Error(_0x2a5bf9(0x1bc)),{'code':_0x2a5bf9(0x276)});}if(!_0x1414f4&&_0x3578db['orderId']&&([_0x2a5bf9(0x1c0),'payment_failed'][_0x2a5bf9(0x254)](_0x3578db[_0x2a5bf9(0x230)])||Number(_0x3578db[_0x2a5bf9(0x1e3)][_0x2a5bf9(0x1ca)])*0x3e8<=Date[_0x2a5bf9(0x1e0)]()+0x7530)){_0x3578db[_0x2a5bf9(0x290)]=[..._0x3578db[_0x2a5bf9(0x290)]??[],{'orderId':_0x3578db[_0x2a5bf9(0x1f8)],'requestKey':_0x3578db[_0x2a5bf9(0x1d6)]??_0x3578db[_0x2a5bf9(0x296)],'quote':_0x3578db[_0x2a5bf9(0x1e3)],'onchainQuotes':_0x3578db[_0x2a5bf9(0x251)],'status':_0x3578db[_0x2a5bf9(0x230)]}],_0x3578db[_0x2a5bf9(0x1d6)]=_0xa1fb4d();for(const _0x45cccc of[_0x2a5bf9(0x1f8),_0x2a5bf9(0x21b),_0x2a5bf9(0x1e3),_0x2a5bf9(0x251),_0x2a5bf9(0x1e7),_0x2a5bf9(0x1c9),_0x2a5bf9(0x20e),_0x2a5bf9(0x293)])delete _0x3578db[_0x45cccc];_0x3578db[_0x2a5bf9(0x230)]=_0x2a5bf9(0x246),_0x3578db[_0x2a5bf9(0x20d)]=null,await _0x32b846(_0x48b951,_0x3578db);}if(!_0x3578db[_0x2a5bf9(0x1f8)]){_0xbb8d1e[_0x2a5bf9(0x27f)]?.({'phase':_0x2a5bf9(0x1e3),'message':_0x2a5bf9(0x27c)});const _0xc46838=_0x3578db[_0x2a5bf9(0x265)]??_0x3578db[_0x2a5bf9(0x1fd)],_0x2512d4=await me(_0x4f4c53,_0xc46838,_0x6ec779,_0xbb8d1e[_0x2a5bf9(0x21c)]);if(_0x3578db['check']=_0x2512d4,_0xbb8d1e['onCheck']&&await _0xbb8d1e[_0x2a5bf9(0x285)](_0x2512d4),_0x2512d4[_0x2a5bf9(0x23b)][_0x2a5bf9(0x1d0)]>0x0)return _0x3578db[_0x2a5bf9(0x230)]=_0x2a5bf9(0x26b),_0x3578db[_0x2a5bf9(0x20d)]=null,await _0x32b846(_0x48b951,_0x3578db),{'state':_0x3578db,'status':_0x2a5bf9(0x26b),'check':_0x2512d4};if(_0x6ec779==='job.continue'){const _0x47a66a=await _0x43d4f3(_0xbb8d1e);_0x3578db[_0x2a5bf9(0x26d)]=await P({'api':_0x4f4c53,'input':_0x3ffdc1,'check':_0x2512d4,'account':_0x47a66a,'owner':_0x3578db[_0x2a5bf9(0x26d)]});}let _0x169887;try{_0x169887=await T(_0x4f4c53,_0x3578db['requestToken'],_0x3578db[_0x2a5bf9(0x1d6)]??_0x3578db[_0x2a5bf9(0x296)],_0xc46838,_0x6ec779,_0xbb8d1e[_0x2a5bf9(0x21c)]);}catch(_0x103811){if(_0x103811['status']!==0x19a)throw _0x103811;_0x3578db[_0x2a5bf9(0x1d6)]=_0xa1fb4d(),await _0x32b846(_0x48b951,_0x3578db),_0x169887=await T(_0x4f4c53,_0x3578db[_0x2a5bf9(0x268)],_0x3578db[_0x2a5bf9(0x1d6)],_0xc46838,_0x6ec779,_0xbb8d1e[_0x2a5bf9(0x21c)]);}_0x3578db['orderId']=_0x169887['id'],_0x3578db[_0x2a5bf9(0x21b)]=_0x169887[_0x2a5bf9(0x230)],_0x3578db[_0x2a5bf9(0x1e3)]=_0x169887['quote'],_0x3578db[_0x2a5bf9(0x251)]=_0x169887[_0x2a5bf9(0x25b)],_0x3578db[_0x2a5bf9(0x230)]=_0x2a5bf9(0x248),_0x3578db[_0x2a5bf9(0x20d)]=null,await _0x32b846(_0x48b951,_0x3578db);}if(_0x2e1fc7(_0x4ccfa2(_0x3578db)),!_0x3578db[_0x2a5bf9(0x253)]&&(!_0x3578db[_0x2a5bf9(0x241)]||!_0x3578db[_0x2a5bf9(0x226)])){if(_0x3578db[_0x2a5bf9(0x1e7)])C(_0x3578db['challenge'],_0x3578db);else{const _0x28ad6d=await le(_0x4f4c53,_0x3578db[_0x2a5bf9(0x268)],_0x3578db['orderId'],_0xbb8d1e[_0x2a5bf9(0x21c)]);C(_0x28ad6d,_0x3578db),_0x3578db[_0x2a5bf9(0x1e7)]=_0x28ad6d,_0x3578db[_0x2a5bf9(0x230)]=_0x2a5bf9(0x204),await _0x32b846(_0x48b951,_0x3578db);}let _0x16cbc0;if(_0x6ec779===_0x2a5bf9(0x1e4)&&(_0x16cbc0=await _0x43d4f3(_0xbb8d1e),_0x3578db[_0x2a5bf9(0x26d)]=await P({'api':_0x4f4c53,'input':_0x3ffdc1,'check':_0x3578db['check'],'account':_0x16cbc0,'owner':_0x3578db['owner']}),await _0x32b846(_0x48b951,_0x3578db)),await _0x3ce937(_0x3578db,_0xbb8d1e),_0xbb8d1e['signal']?.[_0x2a5bf9(0x282)](),_0x339375(await _0xb25b43(_0x48b951,_0x3578db[_0x2a5bf9(0x296)])),await _0x32b846(_0x48b951,_0x3578db),await _0x3dc9d5(_0x3578db,_0xbb8d1e,_0x629c1a=>qe(_0x629c1a,_0xbb8d1e)),_0x3578db[_0x2a5bf9(0x23f)]===_0x2a5bf9(0x1bf))await _0x3a46fa(_0x3578db,_0xbb8d1e);else{_0xbb8d1e[_0x2a5bf9(0x27f)]?.({'phase':_0x2a5bf9(0x21d),'message':_0x2a5bf9(0x22e)}),_0xbb8d1e['signal']?.[_0x2a5bf9(0x282)](),_0x339375(await _0xb25b43(_0x48b951,_0x3578db[_0x2a5bf9(0x296)])),_0x16cbc0=await _0x43d4f3(_0xbb8d1e),_0xbb8d1e['signal']?.['throwIfAborted'](),_0x339375(await _0xb25b43(_0x48b951,_0x3578db['requestKey'])),_0x3578db[_0x2a5bf9(0x260)]=_0x16cbc0['address'],await _0x32b846(_0x48b951,_0x3578db);const _0x16f1fb=await he(_0x16cbc0,_0x3578db[_0x2a5bf9(0x1e7)]),_0x1de306=await we(_0x16cbc0,_0x3578db['challenge'],_0x16f1fb[_0x2a5bf9(0x277)]);_0x3578db[_0x2a5bf9(0x203)]=_0x16f1fb[_0x2a5bf9(0x203)],_0x3578db[_0x2a5bf9(0x241)]=_0x16f1fb[_0x2a5bf9(0x241)],_0x3578db['paymentHash']=_0x16f1fb[_0x2a5bf9(0x277)],_0x3578db['quoteSignature']=_0x1de306,_0x3578db[_0x2a5bf9(0x230)]=_0x2a5bf9(0x1b9),_0x3578db[_0x2a5bf9(0x20d)]=null,await _0x32b846(_0x48b951,_0x3578db);}}_0x3578db[_0x2a5bf9(0x253)]?await _0x1947ba(_0x3578db,_0xbb8d1e):(_0xbb8d1e[_0x2a5bf9(0x27f)]?.({'phase':'broadcasting','message':_0x2a5bf9(0x278)}),await ke(_0x4f4c53,_0x3578db[_0x2a5bf9(0x268)],_0x3578db,_0x48b951,_0xbb8d1e[_0x2a5bf9(0x21c)])),_0xbb8d1e[_0x2a5bf9(0x27f)]?.({'phase':'admission','message':'Payment\x20submitted.\x20Waiting\x20for\x20IMD\x20to\x20accept\x20the\x20task...'});const _0x2a21ce=await Se(_0x4f4c53,_0x3578db[_0x2a5bf9(0x268)],_0x3578db[_0x2a5bf9(0x1f8)],_0xbb8d1e);return k(_0x3578db,_0x2a21ce),delete _0x3578db[_0x2a5bf9(0x262)],await _0x32b846(_0x48b951,_0x3578db),{'state':_0x3578db,'status':_0x3578db[_0x2a5bf9(0x230)]};}catch(_0x9865db){if(['order_cancelled',_0x2a5bf9(0x1d1),_0x2a5bf9(0x1f1)]['includes'](_0x9865db[_0x2a5bf9(0x224)]))throw _0x9865db;if(_0x339375(await _0xb25b43(_0x48b951,_0x3578db[_0x2a5bf9(0x296)])),await xe(_0x9865db,_0x4f4c53,_0x3578db,_0x48b951))return{'state':_0x3578db,'status':_0x3578db['status']};throw _0x3578db['lastError']=_0x9865db[_0x2a5bf9(0x210)],[_0x2a5bf9(0x1ce),_0x2a5bf9(0x276)][_0x2a5bf9(0x254)](_0x9865db[_0x2a5bf9(0x224)])&&(_0x3578db[_0x2a5bf9(0x262)]=_0x9865db[_0x2a5bf9(0x224)]),_0x9865db[_0x2a5bf9(0x1bd)]&&(_0x3578db['pendingTransaction']=_0x9865db[_0x2a5bf9(0x1bd)]),_0x9865db['status']===0x192&&(_0x3578db[_0x2a5bf9(0x230)]=_0x2a5bf9(0x1b9)),await _0x32b846(_0x48b951,_0x3578db),_0x9865db[_0x2a5bf9(0x224)]===_0x2a5bf9(0x247)?_0x9865db:$e(_0x9865db,_0x3578db,{'file':_0x91fae4,'home':_0x48b951,'api':_0x4f4c53,'retryCommand':_0xbb8d1e[_0x2a5bf9(0x1f2)]});}}async function Le(_0x1813fe){const _0x3014ab=_0x159d74,{home:_0x523ea4,id:_0x2b2ac7}=_0x1813fe,_0xc6da8a=await _0xb25b43(_0x523ea4,_0x2b2ac7);if(_0x339375(_0xc6da8a),_0xc6da8a[_0x3014ab(0x230)]===_0x3014ab(0x24e)||_0xc6da8a[_0x3014ab(0x230)]==='refused')return _0xc6da8a;if(_0xc6da8a[_0x3014ab(0x28f)]!==_0x1813fe[_0x3014ab(0x28f)])throw new Error(_0x3014ab(0x1c8)+_0xc6da8a[_0x3014ab(0x296)]+_0x3014ab(0x1cd)+_0xc6da8a[_0x3014ab(0x28f)]+_0x3014ab(0x20c)+_0xc6da8a['api']);return(await Ie({..._0x1813fe,'requestKey':_0xc6da8a['requestKey'],'input':_0xc6da8a[_0x3014ab(0x1fd)],'action':_0xc6da8a[_0x3014ab(0x1f5)],'paymentChain':_0xc6da8a[_0x3014ab(0x23f)]??'ethereum','payWith':_0xc6da8a[_0x3014ab(0x24c)]}))[_0x3014ab(0x256)];}export{k as applyOrderStatus,P as assertContinueOwner,he as buildPayment,S as canonicalJson,me as checkJob,H as fetchOrderStatus,ce as hashJson,ge as paymentSummary,Se as pollOrder,Ie as publishJob,fe as quoteApprovalTypedData,T as quoteJob,de as readJobFile,Ge as refreshOrder,we as signQuoteApproval,Le as submitOrder};
1
+ function _0x2e93(_0x27a3ac,_0x5c9049){_0x27a3ac=_0x27a3ac-0x14a;const _0x2e9383=_0x5c90();let _0x1d7c03=_0x2e9383[_0x27a3ac];return _0x1d7c03;}const _0x36fb7c=_0x2e93;import{createHash as _0x58ae59,randomBytes as _0x38940a,randomUUID as _0x4bc948}from'node:crypto';import{readFile as _0x5448e9}from'node:fs/promises';import{setTimeout as _0x57e693}from'node:timers/promises';import{x402Client as _0x42a9df}from'@x402/core/client';import{encodePaymentSignatureHeader as _0xf68287}from'@x402/core/http';import{ExactEvmScheme as _0x2d4b5f}from'@x402/evm/exact/client';import{formatUnits as _0x149f77,sha256 as _0x21f67d,stringToBytes as _0x4b7885}from'viem';import{confirmAction as _0x1ed7da,getPublicRpcClient as _0x1bca65,getSigner as _0x378bb3,request as _0x471d3d}from'../shared.mjs';import{assertOrderNotCancelled as _0x5ee9e9,findOrder as _0x3c808d,loadOrder as _0x4892b4,orderActions as _0x433aec,saveOrder as _0x455842}from'./orders.mjs';import{assertQuotePayment as _0x56002e,orderPayment as _0x15384f}from'./payments.mjs';import{networkName as _0x1f6747,selectedPaymentNetwork as _0x299ff1}from'./payment-networks.mjs';import{signOnchainPayment as _0x2d4acb,submitOnchainPayment as _0x569a55}from'./onchain-payment.mjs';import{coinSymbol as _0x2a51eb,paymentCoin as _0x4d1749}from'./payment-coins.mjs';import{fundingSummary as _0x373770}from'./funding-state.mjs';import{fundOrder as _0x2a2380}from'./funding.mjs';import{walletInfo as _0x2ebe21}from'./local-wallet.mjs';import{selectSupport as _0x39d96d,supportView as _0x4107a0}from'./support.mjs';import{authorizationUnpaid as _0x562e75}from'./payment-recovery.mjs';import{retainExpiredNonce as _0x3b797b}from'./transaction-recovery.mjs';import{transactionReceipt as _0x56b47e}from'./transactions.mjs';import{withSubmissionAttribution as _0x4785d2}from'./submission-attribution.mjs';function S(_0x5ba54f){const _0x20b7e8=_0x2e93;return _0x5ba54f===null?_0x20b7e8(0x161):Array[_0x20b7e8(0x238)](_0x5ba54f)?'['+_0x5ba54f[_0x20b7e8(0x18c)](S)[_0x20b7e8(0x1ad)](',')+']':typeof _0x5ba54f==_0x20b7e8(0x177)?'{'+Object['keys'](_0x5ba54f)[_0x20b7e8(0x172)]()[_0x20b7e8(0x18c)](_0x472ca3=>JSON[_0x20b7e8(0x16a)](_0x472ca3)+':'+S(_0x5ba54f[_0x472ca3]))['join'](',')+'}':JSON[_0x20b7e8(0x16a)](_0x5ba54f);}function ce(_0x3965af){const _0x23c1c0=_0x2e93;return _0x58ae59(_0x23c1c0(0x1b8))[_0x23c1c0(0x22c)](S(_0x3965af))['digest']('hex');}async function de(_0x31f45d){const _0x5b6408=_0x2e93;let _0x4817a6;try{_0x4817a6=JSON[_0x5b6408(0x215)](await _0x5448e9(_0x31f45d,_0x5b6408(0x171)));}catch(_0x1de5d9){throw _0x1de5d9 instanceof SyntaxError?new Error('invalid\x20JSON\x20in\x20'+_0x31f45d+':\x20'+_0x1de5d9[_0x5b6408(0x235)]):_0x1de5d9;}if(!_0x4817a6||typeof _0x4817a6!='object'||Array[_0x5b6408(0x238)](_0x4817a6))throw new Error(_0x31f45d+_0x5b6408(0x220));return _0x4817a6;}async function me(_0x27be4c,_0xee708b,_0x120e18=_0x36fb7c(0x153),_0x589712){const _0x46f080=_0x36fb7c,_0x958dd6=await _0x471d3d(_0x27be4c,_0x46f080(0x17a),{'method':_0x46f080(0x214),'query':!0x0,'body':{'action':_0x120e18,'input':_0xee708b},'signal':_0x589712});if(!Array[_0x46f080(0x238)](_0x958dd6[_0x46f080(0x1cc)]?.[_0x46f080(0x194)]))throw new Error(_0x46f080(0x1b2));return _0x958dd6[_0x46f080(0x1cc)];}async function T(_0x5b6b94,_0x2974d3,_0x5d2cb6,_0x4e2310,_0x1a0464='job.open',_0x50f528){const _0x44a342=_0x36fb7c,_0x706343=await _0x471d3d(_0x5b6b94,_0x44a342(0x162),{'method':_0x44a342(0x214),'token':_0x2974d3,'body':{'requestKey':_0x5d2cb6,'action':_0x1a0464,'input':_0x4e2310},'signal':_0x50f528}),_0x1b9049=_0x706343[_0x44a342(0x1cc)]?.[_0x44a342(0x183)];if(!_0x1b9049?.['id']||!_0x1b9049['quote']?.[_0x44a342(0x199)])throw new Error(_0x44a342(0x219));return{..._0x1b9049,'onchain':_0x706343[_0x44a342(0x1cc)][_0x44a342(0x224)]};}async function pe(_0x15ad16,_0x4916dc,_0x23a376){const _0x54ada4=_0x36fb7c;if(_0x23a376?.[_0x54ada4(0x16c)])return _0x23a376[_0x54ada4(0x16c)];const _0x5e134b=_0x4916dc?.['parentJobId'];if(!_0x5e134b)throw new Error('job.continue\x20input\x20is\x20missing\x20parentJobId');const _0x3fa42c=(await _0x471d3d(_0x15ad16,_0x54ada4(0x182)+encodeURIComponent(_0x5e134b)))[_0x54ada4(0x1cc)]?.[_0x54ada4(0x1a5)];if(!_0x3fa42c)throw new Error('cannot\x20verify\x20the\x20project\x20owner\x20for\x20'+_0x5e134b+':\x20the\x20parent\x20job\x20has\x20no\x20paidBy');return _0x3fa42c;}function ye(_0x5c9407,_0x2478b7){const _0x1a8c51=_0x36fb7c,_0x325f8d=new Error(_0x1a8c51(0x1e6)+_0x5c9407+'\x20is\x20not\x20the\x20project\x20owner\x20'+_0x2478b7+_0x1a8c51(0x216));return _0x325f8d[_0x1a8c51(0x1de)]=_0x1a8c51(0x205),_0x325f8d;}async function v({api:_0x3003a9,input:_0xbe284f,check:_0x33a46d,account:_0x1b1c52,owner:_0x161d4b}){const _0x47290a=_0x36fb7c,_0x46accf=_0x161d4b??await pe(_0x3003a9,_0xbe284f,_0x33a46d);if(!_0x1b1c52?.[_0x47290a(0x1d7)])throw new Error(_0x47290a(0x173));if(!C(_0x46accf,_0x1b1c52['address']))throw ye(_0x1b1c52['address'],_0x46accf);return _0x46accf;}async function le(_0x4d21d4,_0x5246b6,_0x536b85,_0x42ebfb){const _0x578533=_0x36fb7c,_0x5013c3=await _0x471d3d(_0x4d21d4,_0x578533(0x1bf)+_0x536b85+_0x578533(0x1a3),{'method':_0x578533(0x214),'token':_0x5246b6,'allowStatuses':[0x192],'signal':_0x42ebfb});if(_0x5013c3[_0x578533(0x1d8)]!==0x192)throw new Error(_0x578533(0x213)+_0x5013c3['status']);const _0x51a8f4=_0x5013c3[_0x578533(0x1cc)];if(!Array[_0x578533(0x238)](_0x51a8f4?.[_0x578533(0x1f2)])||_0x51a8f4[_0x578533(0x1f2)][_0x578533(0x187)]===0x0)throw new Error(_0x578533(0x1b3));if(!_0x51a8f4[_0x578533(0x1e7)]||!_0x51a8f4[_0x578533(0x176)])throw new Error(_0x578533(0x1bb));return _0x51a8f4;}function C(_0x5e8226,_0x10ed0f){const _0x55f408=_0x36fb7c;return String(_0x5e8226)['toLowerCase']()===String(_0x10ed0f)[_0x55f408(0x1f4)]();}function j(_0x3b6008,_0x3da823){const _0x597552=_0x36fb7c,_0x28eedb=_0x3b6008[_0x597552(0x1f2)][0x0],_0x550300=_0x3da823['quote'][_0x597552(0x199)];if(_0x3da823[_0x597552(0x1c6)]?.['action']!==_0x3da823[_0x597552(0x211)])throw new Error(_0x597552(0x1fe)+(_0x3da823[_0x597552(0x1c6)]?.[_0x597552(0x211)]??'<missing>')+_0x597552(0x154)+_0x3da823[_0x597552(0x211)]);if(_0x3b6008[_0x597552(0x1c6)]?.[_0x597552(0x211)]!==_0x3da823[_0x597552(0x211)])throw new Error(_0x597552(0x166)+(_0x3b6008[_0x597552(0x1c6)]?.[_0x597552(0x211)]??'<missing>')+_0x597552(0x154)+_0x3da823[_0x597552(0x211)]);if(_0x3b6008[_0x597552(0x1c6)]?.['id']!==_0x3da823[_0x597552(0x23b)])throw new Error(_0x597552(0x16d));if(_0x3b6008[_0x597552(0x1c6)]?.['quoteHash']!==_0x3da823[_0x597552(0x1c6)][_0x597552(0x1da)])throw new Error('payment\x20challenge\x20quoteHash\x20does\x20not\x20match\x20the\x20saved\x20quote');if(_0x3b6008[_0x597552(0x1c6)]?.[_0x597552(0x14d)]!==_0x3da823[_0x597552(0x1c6)][_0x597552(0x14d)])throw new Error(_0x597552(0x168));for(const [_0x40ae32,_0x113697]of[[_0x597552(0x212),_0x28eedb],[_0x597552(0x185),_0x3b6008[_0x597552(0x1c6)][_0x597552(0x199)]]])for(const _0x287d87 of[_0x597552(0x1f8),_0x597552(0x1ec),_0x597552(0x1be),_0x597552(0x22d)])if(!(_0x287d87==='asset'||_0x287d87===_0x597552(0x22d)?C(_0x113697?.[_0x287d87],_0x550300[_0x287d87]):String(_0x113697?.[_0x287d87])===String(_0x550300[_0x287d87])))throw new Error(_0x40ae32+'\x20'+_0x287d87+_0x597552(0x1e2));if(_0x28eedb[_0x597552(0x232)]?.[_0x597552(0x203)]!==_0x597552(0x1ef))throw new Error(_0x597552(0x201));if(!_0x3b6008[_0x597552(0x16f)]||typeof _0x3b6008[_0x597552(0x16f)]!=_0x597552(0x177)||Array[_0x597552(0x238)](_0x3b6008[_0x597552(0x16f)]))throw new Error(_0x597552(0x192));if(Number(_0x3b6008['quote']['expiresAt'])*0x3e8<=Date[_0x597552(0x15d)]()){const _0x2ea512=new Error(_0x597552(0x1a1));throw _0x2ea512[_0x597552(0x1de)]='quote_expired',_0x2ea512;}}async function he(_0x4ec3de,_0x17ebbc){const _0x3498ed=_0x36fb7c,_0x3fe860=_0x17ebbc[_0x3498ed(0x1f2)][0x0],_0xa67073=Number(_0x17ebbc[_0x3498ed(0x1c6)][_0x3498ed(0x14d)]),_0x49de28=_0xa67073-Math[_0x3498ed(0x1a7)](Date[_0x3498ed(0x15d)]()/0x3e8);if(!Number[_0x3498ed(0x14e)](_0x49de28)||_0x49de28<=0x1){const _0xd3215f=new Error(_0x3498ed(0x1ae));throw _0xd3215f[_0x3498ed(0x1de)]=_0x3498ed(0x1bd),_0xd3215f;}if(!Number[_0x3498ed(0x14e)](Number(_0x3fe860[_0x3498ed(0x1a2)])))throw new Error(_0x3498ed(0x179));const _0x401027=Math[_0x3498ed(0x1f0)](0x1,Math[_0x3498ed(0x236)](Number(_0x3fe860[_0x3498ed(0x1a2)]),_0x49de28-0x1)),_0x297343={..._0x3fe860,'maxTimeoutSeconds':_0x401027},_0x3f2c4a=await _0x42a9df['fromConfig']({'schemes':[{'network':_0x297343[_0x3498ed(0x1f8)],'client':new _0x2d4b5f(_0x4ec3de)}],'spendControls':{'allowedAssets':[{'network':_0x297343[_0x3498ed(0x1f8)],'asset':_0x297343[_0x3498ed(0x1ec)],'maxAmountPerPayment':_0x297343['amount']}]}})[_0x3498ed(0x20c)]({'x402Version':0x2,'resource':_0x17ebbc['resource'],'accepts':[_0x297343]}),{extensions:_0x4bb5a7,..._0x29816d}=_0x3f2c4a,_0x1c554c=JSON[_0x3498ed(0x215)](JSON[_0x3498ed(0x16a)]({..._0x29816d,'accepted':_0x3fe860})),_0x116d66=_0x1c554c[_0x3498ed(0x21d)]?.['permit2Authorization']?.['deadline'];if(_0x116d66===void 0x0||BigInt(_0x116d66)>=BigInt(_0xa67073))throw new Error('payment\x20deadline\x20'+_0x116d66+_0x3498ed(0x180)+_0xa67073);return{'payment':_0x1c554c,'paymentHeader':_0xf68287(_0x1c554c),'paymentHash':_0x21f67d(_0x4b7885(S(_0x1c554c)))};}function E(_0x47af0,_0x1b70a1){const _0x1cc076=_0x36fb7c,_0x1f7aa3=String(_0x47af0??'')[_0x1cc076(0x1f6)](/^0x/,'');if(!/^[0-9a-f]{64}$/i['test'](_0x1f7aa3))throw new Error('invalid\x20'+_0x1b70a1+':\x20'+_0x47af0);return'0x'+_0x1f7aa3;}function fe(_0x50cec7,_0x3d57d0){const _0xf172b0=_0x36fb7c,_0x24b63e=_0x50cec7[_0xf172b0(0x1c6)],_0x22ed39=Number(String(_0x24b63e[_0xf172b0(0x199)][_0xf172b0(0x1f8)])['slice'](0x7));if(!Number[_0xf172b0(0x14e)](_0x22ed39)||_0x22ed39<=0x0)throw new Error(_0xf172b0(0x188)+_0x24b63e[_0xf172b0(0x199)]['network']);return{'domain':{'name':'IdentityMD\x20Paid\x20Action','version':'1','chainId':_0x22ed39},'types':{'QuoteApproval':[{'name':_0xf172b0(0x20f),'type':_0xf172b0(0x1f5)},{'name':_0xf172b0(0x176),'type':_0xf172b0(0x234)},{'name':'quoteId','type':_0xf172b0(0x1f5)},{'name':_0xf172b0(0x1da),'type':'bytes32'},{'name':_0xf172b0(0x209),'type':'bytes32'},{'name':_0xf172b0(0x211),'type':_0xf172b0(0x1f5)},{'name':_0xf172b0(0x1ec),'type':_0xf172b0(0x1d7)},{'name':_0xf172b0(0x1be),'type':_0xf172b0(0x197)},{'name':'payTo','type':_0xf172b0(0x1d7)},{'name':_0xf172b0(0x14d),'type':_0xf172b0(0x197)}]},'primaryType':_0xf172b0(0x222),'message':{'resource':_0x50cec7[_0xf172b0(0x1e7)],'requesterScopeHash':E(_0x50cec7[_0xf172b0(0x176)],_0xf172b0(0x176)),'quoteId':_0x24b63e['id'],'quoteHash':E(_0x24b63e[_0xf172b0(0x1da)],_0xf172b0(0x1da)),'paymentHash':E(_0x3d57d0,_0xf172b0(0x209)),'action':_0x24b63e[_0xf172b0(0x211)],'asset':_0x24b63e[_0xf172b0(0x199)][_0xf172b0(0x1ec)],'amount':BigInt(_0x24b63e[_0xf172b0(0x199)][_0xf172b0(0x1be)]),'payTo':_0x24b63e['payment'][_0xf172b0(0x22d)],'expiresAt':BigInt(_0x24b63e['expiresAt'])}};}async function we(_0x388ac6,_0x3921b3,_0x229e15){const _0x2e2e3b=_0x36fb7c,_0x26f8ab=fe(_0x3921b3,_0x229e15);return _0x388ac6[_0x2e2e3b(0x221)](_0x26f8ab);}function ge(_0x2a927c){const _0x1ea63a=_0x36fb7c,_0x36d878=_0x15384f(_0x2a927c),_0x13c8a6=_0x149f77(BigInt(_0x36d878[_0x1ea63a(0x1be)]),_0x36d878[_0x1ea63a(0x15b)]),_0x4263d6=_0x2a927c['funding']?_0x373770(_0x2a927c[_0x1ea63a(0x191)]):null,_0xfc12af=_0x2a927c[_0x1ea63a(0x1d9)]?[(_0x2a927c['payWith']==='ETH'?_0x1ea63a(0x1ee):_0x1ea63a(0x1e5))+_0x2a927c[_0x1ea63a(0x1d9)][_0x1ea63a(0x15f)]+_0x1ea63a(0x167)]:[];if(!_0x2a927c['challenge']?.['input']||typeof _0x2a927c[_0x1ea63a(0x21b)][_0x1ea63a(0x16f)]!='object')throw new Error('payment\x20challenge\x20is\x20missing\x20the\x20prepared\x20input');if(_0x2a927c[_0x1ea63a(0x233)]){const _0x31eac5=_0x2a927c[_0x1ea63a(0x1ea)]??_0x1ea63a(0x22b);return[_0x1ea63a(0x175)+_0x2a927c[_0x1ea63a(0x16f)][_0x1ea63a(0x155)],..._0x2a927c[_0x1ea63a(0x233)]['deliverables'][_0x1ea63a(0x18c)](_0x5729d0=>_0x1ea63a(0x18b)+_0x5729d0),'Price:\x20'+_0x13c8a6+_0x1ea63a(0x1b9),'Pay\x20with:\x20'+_0x31eac5+_0x1ea63a(0x16e)+_0x1f6747(_0x2a927c['paymentChain']),..._0x4263d6?[_0x31eac5===_0x1ea63a(0x22b)?_0x1ea63a(0x231)+_0x4263d6['display'][_0x1ea63a(0x199)]:_0x4263d6[_0x1ea63a(0x17e)]?'Payment:\x20conversion\x20already\x20confirmed\x20('+_0x4263d6[_0x1ea63a(0x14b)][_0x1ea63a(0x199)]+_0x1ea63a(0x20d):_0x1ea63a(0x193)+(_0x4263d6[_0x1ea63a(0x14b)][_0x1ea63a(0x208)]??_0x4263d6[_0x1ea63a(0x14b)][_0x1ea63a(0x199)])+_0x1ea63a(0x1dd)+_0x4263d6[_0x1ea63a(0x14b)][_0x1ea63a(0x199)]+_0x1ea63a(0x223),'Gas\x20(network\x20fee,\x20paid\x20in\x20ETH):\x20at\x20most\x20'+_0x4263d6[_0x1ea63a(0x14b)][_0x1ea63a(0x1c8)]+(_0x31eac5==='ETH'?_0x1ea63a(0x16b):''),..._0x31eac5===_0x1ea63a(0x239)?[_0x1ea63a(0x19e)+_0x4263d6[_0x1ea63a(0x14b)][_0x1ea63a(0x1ba)]]:[],..._0x4263d6[_0x1ea63a(0x1d1)]!==_0x1ea63a(0x22b)?['Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.']:[]]:_0xfc12af,_0x1ea63a(0x1e4)]['join']('\x0a');}return['Order:\x20'+_0x2a927c[_0x1ea63a(0x23b)],_0x1ea63a(0x18a)+(_0x2a927c[_0x1ea63a(0x211)]??'job.open'),_0x1ea63a(0x181)+_0x36d878[_0x1ea63a(0x1f8)],_0x1ea63a(0x23a)+_0x13c8a6+'\x20('+_0x36d878['amount']+_0x1ea63a(0x1ca),'Asset:\x20'+_0x36d878['asset'],_0x1ea63a(0x1fa)+_0x36d878[_0x1ea63a(0x22d)],_0x1ea63a(0x21c)+new Date(Number(_0x2a927c[_0x1ea63a(0x1c6)][_0x1ea63a(0x14d)])*0x3e8)[_0x1ea63a(0x202)](),..._0x4263d6?[_0x1ea63a(0x1a6)+_0x4263d6[_0x1ea63a(0x1ba)],..._0x4263d6[_0x1ea63a(0x1d1)]!==_0x1ea63a(0x22b)?['Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.']:[]]:[],..._0xfc12af,'Requested\x20objective:\x20'+String(_0x2a927c[_0x1ea63a(0x16f)][_0x1ea63a(0x155)]??''),_0x1ea63a(0x1ce),JSON['stringify'](_0x2a927c['challenge'][_0x1ea63a(0x16f)],null,0x2)][_0x1ea63a(0x1ad)]('\x0a');}async function qe(_0x44585b,_0x42d2da){const _0x413939=_0x36fb7c;if(_0x42d2da[_0x413939(0x229)])return _0x42d2da[_0x413939(0x229)](_0x44585b);const _0x5451d8=_0x4107a0(_0x44585b),_0x2a47f7=_0x5451d8?'\x0aOptional\x20support:\x20'+_0x5451d8['amount']+'\x20IMD\x20·\x20Help\x20us\x20make\x20Colony\x20better.\x0aTotal:\x20'+_0x5451d8[_0x413939(0x22e)]+'\x20IMD\x20+\x20network\x20fees\x0aSupport\x20recipient:\x20'+_0x5451d8[_0x413939(0x163)]+_0x413939(0x156):'';await _0x1ed7da(_0x413939(0x23c)+ge(_0x44585b)+_0x2a47f7,_0x42d2da);}function be(_0x275001,_0x12eaca){const _0x2bb277=_0x36fb7c;if(typeof _0x12eaca[_0x2bb277(0x217)]==_0x2bb277(0x227))return _0x12eaca[_0x2bb277(0x217)](_0x275001);if(_0x12eaca[_0x2bb277(0x217)])return _0x12eaca[_0x2bb277(0x217)];const {file:_0x5114c7,home:_0x3aeea0,api:_0x321ab1}=_0x12eaca,_0x2fb8c2='colony\x20--api\x20'+_0x321ab1+_0x2bb277(0x20e)+_0x3aeea0,_0x19f240=_0x275001['requestKey'];if(_0x275001[_0x2bb277(0x211)]==='job.continue'){const _0x294873=_0x275001[_0x2bb277(0x16f)]?.[_0x2bb277(0x1c7)]??_0x2bb277(0x157);return _0x5114c7?_0x2fb8c2+_0x2bb277(0x1b7)+_0x294873+_0x2bb277(0x1f7)+_0x5114c7+'\x20--request-key\x20'+_0x19f240:_0x2fb8c2+'\x20task\x20continue\x20'+_0x294873+_0x2bb277(0x1aa)+_0x19f240;}return _0x5114c7?_0x2fb8c2+_0x2bb277(0x22f)+_0x5114c7+_0x2bb277(0x1aa)+_0x19f240:_0x2fb8c2+_0x2bb277(0x1d6)+_0x19f240;}function $e(_0x16eb6c,_0x36cae4,_0x3dc724){const _0xada154=_0x36fb7c,{home:_0x5e72a9,api:_0x4533da}=_0x3dc724,_0x4e529e=_0xada154(0x1f1)+_0x36cae4[_0xada154(0x159)]+_0xada154(0x1fb)+_0x5e72a9+_0xada154(0x1eb)+_0x4533da+')',_0x5d06f0=!!(_0x36cae4[_0xada154(0x19c)]||_0x36cae4['quoteSignature']||_0x36cae4[_0xada154(0x186)]),_0x4b2a7c=!!_0x36cae4[_0xada154(0x191)]?.[_0xada154(0x1a4)][_0xada154(0x19f)](_0x26dc9b=>_0x26dc9b[_0xada154(0x228)]),_0x5cfbbe=_0x5d06f0||_0x4b2a7c;let _0x388fe5;return(_0x16eb6c['code']==='quote_expired'||_0x16eb6c[_0xada154(0x1d8)]===0x19a)&&_0x4b2a7c&&!_0x5d06f0?_0x388fe5=_0x4e529e+_0xada154(0x152)+_0x4533da+_0xada154(0x20e)+_0x5e72a9+'\x20order\x20submit\x20'+_0x36cae4[_0xada154(0x159)]+_0xada154(0x150):(_0x16eb6c['code']===_0xada154(0x1bd)||_0x16eb6c[_0xada154(0x1d8)]===0x19a)&&!_0x5cfbbe?_0x388fe5=_0x4e529e+';\x20no\x20payment\x20was\x20signed.\x20Continue\x20this\x20task\x20with\x20a\x20fresh\x20quote:\x20colony\x20--api\x20'+_0x4533da+'\x20--home\x20'+_0x5e72a9+_0xada154(0x1af)+_0x36cae4['requestKey']:(_0x16eb6c['code']===_0xada154(0x1bd)||_0x16eb6c[_0xada154(0x1d8)]===0x19a)&&_0x5cfbbe?_0x388fe5=_0x4e529e+_0xada154(0x1ff)+_0x36cae4['orderId']+'.\x20Do\x20not\x20start\x20a\x20new\x20order.\x20Check\x20it\x20with:\x20colony\x20--api\x20'+_0x4533da+'\x20--home\x20'+_0x5e72a9+_0xada154(0x18d)+_0x36cae4[_0xada154(0x23b)]+_0xada154(0x165):_0x5cfbbe&&_0x36cae4[_0xada154(0x23b)]?_0x388fe5=_0x4e529e+_0xada154(0x1db)+_0x4533da+_0xada154(0x20e)+_0x5e72a9+'\x20order\x20submit\x20'+_0x36cae4[_0xada154(0x23b)]:_0x388fe5=_0x4e529e+';\x20retry\x20the\x20same\x20order\x20with:\x20'+be(_0x36cae4,_0x3dc724),Object[_0xada154(0x174)](new Error(_0x16eb6c[_0xada154(0x235)]+'\x0a'+_0x388fe5,{'cause':_0x16eb6c}),{'code':_0x16eb6c[_0xada154(0x1de)]??(_0x16eb6c['status']===0x19a&&!_0x5d06f0?_0xada154(0x1bd):void 0x0),'status':_0x16eb6c[_0xada154(0x1d8)],'data':_0x16eb6c[_0xada154(0x1cc)],'headers':_0x16eb6c['headers'],'funding':_0x16eb6c['funding'],'transaction':_0x16eb6c[_0xada154(0x1dc)]});}function k(_0x5e3e5d,_0x512cd3){const _0x83dda7=_0x36fb7c;_0x5e3e5d[_0x83dda7(0x218)]=_0x512cd3[_0x83dda7(0x1d8)],_0x5e3e5d[_0x83dda7(0x17c)]=_0x512cd3[_0x83dda7(0x17c)]??null;const _0xb30398=_0x512cd3[_0x83dda7(0x17c)]?.[_0x83dda7(0x190)];_0xb30398&&(_0x5e3e5d[_0x83dda7(0x1a8)]=_0xb30398[_0x83dda7(0x1a8)]??null,_0x5e3e5d[_0x83dda7(0x1e0)]=_0xb30398[_0x83dda7(0x1e0)]??null,_0x5e3e5d[_0x83dda7(0x1b4)]=_0xb30398[_0x83dda7(0x1b4)]??null),_0x512cd3[_0x83dda7(0x199)]&&(_0x5e3e5d[_0x83dda7(0x1cd)]=_0x512cd3[_0x83dda7(0x199)][_0x83dda7(0x1d8)],_0x5e3e5d[_0x83dda7(0x1cf)]=_0x512cd3[_0x83dda7(0x199)]['transactionHash']??_0x5e3e5d['onchainPayment']?.[_0x83dda7(0x1fc)]??_0x5e3e5d['onchainPayment']?.['hash']??null),_0x512cd3['status']===_0x83dda7(0x1c3)?(delete _0x5e3e5d['pendingTransaction'],delete _0x5e3e5d['recoveryStatus'],_0x5e3e5d[_0x83dda7(0x170)]=null,_0xb30398?.[_0x83dda7(0x21a)]===_0x83dda7(0x1c5)?(_0x5e3e5d[_0x83dda7(0x1d8)]=_0x83dda7(0x1c5),_0x5e3e5d[_0x83dda7(0x158)]=_0xb30398['problems']??[]):(_0x5e3e5d[_0x83dda7(0x1d8)]=_0x83dda7(0x1c3),_0x5e3e5d[_0x83dda7(0x158)]=null)):_0x512cd3[_0x83dda7(0x1d8)]===_0x83dda7(0x1ac)?_0x5e3e5d[_0x83dda7(0x1d8)]='payment_failed':_0x512cd3[_0x83dda7(0x1d8)]===_0x83dda7(0x17b)&&(_0x5e3e5d[_0x83dda7(0x1d8)]=_0x83dda7(0x17b));}async function H(_0x4992e3,_0xee2c2a,_0x429065){const _0x1aaf08=_0x36fb7c,_0x12ca7c=await _0x471d3d(_0x4992e3,_0x1aaf08(0x1bf)+_0x429065,{'token':_0xee2c2a});if(!_0x12ca7c[_0x1aaf08(0x1cc)]?.[_0x1aaf08(0x1d8)])throw new Error(_0x1aaf08(0x195));return _0x12ca7c[_0x1aaf08(0x1cc)];}async function Ge(_0x5ada98){const _0x8257a0=_0x36fb7c,{home:_0x21d22e,id:_0x1d0c99}=_0x5ada98,_0x13806b=await _0x3c808d(_0x21d22e,_0x1d0c99);if(!_0x13806b[_0x8257a0(0x23b)])throw new Error('order\x20'+_0x13806b[_0x8257a0(0x159)]+'\x20has\x20not\x20been\x20quoted;\x20there\x20is\x20no\x20server\x20order\x20to\x20refresh');const _0x318baf=await H(_0x13806b[_0x8257a0(0x14f)],_0x13806b['requestToken'],_0x13806b[_0x8257a0(0x23b)]);return k(_0x13806b,_0x318baf),_0x13806b[_0x8257a0(0x170)]=null,await _0x455842(_0x21d22e,_0x13806b),_0x13806b;}async function Se(_0x1d5124,_0x12852f,_0x6287a2,_0x5c42ba={}){const _0x20ae94=_0x36fb7c,_0x1a11b7=_0x5c42ba[_0x20ae94(0x1c2)]??0x2bf20,_0x2ef7b3=_0x5c42ba['intervalMs']??0x7d0,_0x47fb2f=Date[_0x20ae94(0x15d)]()+_0x1a11b7;for(;;){const _0x42c88c=(await _0x471d3d(_0x1d5124,_0x20ae94(0x1bf)+_0x6287a2,{'token':_0x12852f,'signal':_0x5c42ba[_0x20ae94(0x1c9)]}))[_0x20ae94(0x1cc)];if(!_0x42c88c?.['status'])throw new Error('order\x20status\x20response\x20is\x20missing\x20status');if(_0x42c88c['status']==='admitted'||_0x42c88c['status']===_0x20ae94(0x1ac)||_0x42c88c[_0x20ae94(0x1d8)]==='expired')return _0x42c88c;if(Date['now']()>=_0x47fb2f)throw new Error(_0x20ae94(0x17d)+_0x6287a2+_0x20ae94(0x1b1)+_0x42c88c[_0x20ae94(0x1d8)]);await _0x57e693(_0x2ef7b3,void 0x0,{'signal':_0x5c42ba[_0x20ae94(0x1c9)]});}}async function ke(_0x5dadb2,_0x374e3e,_0x59042c,_0x20b080,_0x5e7e08){const _0x5cefad=_0x36fb7c;_0x59042c['submittedAt']=new Date()['toISOString'](),_0x59042c[_0x5cefad(0x1d8)]=_0x5cefad(0x1cb),await _0x455842(_0x20b080,_0x59042c);const _0x2436ea=await _0x471d3d(_0x5dadb2,_0x5cefad(0x1bf)+_0x59042c[_0x5cefad(0x23b)]+_0x5cefad(0x1a3),{'method':_0x5cefad(0x214),'token':_0x374e3e,'headers':{'PAYMENT-SIGNATURE':_0x59042c[_0x5cefad(0x19c)]},'body':{'quoteSignature':_0x59042c[_0x5cefad(0x22a)]},'allowStatuses':[0x192],'signal':_0x5e7e08});if(_0x2436ea[_0x5cefad(0x1d8)]===0x192){const _0x4179d6=_0x2436ea[_0x5cefad(0x1cc)]?.[_0x5cefad(0x20a)]??_0x2436ea[_0x5cefad(0x1cc)]?.[_0x5cefad(0x1b0)]??'payment\x20rejected',_0x571890=new Error('payment\x20rejected:\x20'+_0x4179d6);throw _0x571890[_0x5cefad(0x1d8)]=0x192,_0x571890[_0x5cefad(0x1cc)]=_0x2436ea[_0x5cefad(0x1cc)],_0x571890;}return _0x2436ea[_0x5cefad(0x1cc)];}async function xe(_0x231579,_0x7e48d1,_0xe55aa8,_0xe3978f){const _0xdf5a6e=_0x36fb7c;if(_0x231579[_0xdf5a6e(0x1d8)]!==0x19a&&_0x231579['code']!==_0xdf5a6e(0x1bd)||!_0xe55aa8['paymentHeader']||!_0xe55aa8[_0xdf5a6e(0x22a)]||!_0xe55aa8['orderId'])return null;try{const _0x1fa6ab=await H(_0x7e48d1,_0xe55aa8['requestToken'],_0xe55aa8[_0xdf5a6e(0x23b)]);if(k(_0xe55aa8,_0x1fa6ab),_0xe55aa8['lastError']=null,await _0x455842(_0xe3978f,_0xe55aa8),_0xe55aa8[_0xdf5a6e(0x1d8)]==='admitted'||_0xe55aa8['status']===_0xdf5a6e(0x1c5)||_0xe55aa8[_0xdf5a6e(0x1d8)]==='payment_failed'||_0xe55aa8[_0xdf5a6e(0x1d8)]==='expired')return!0x0;}catch(_0x17be17){_0x231579[_0xdf5a6e(0x235)]+=_0xdf5a6e(0x19d)+_0x17be17[_0xdf5a6e(0x235)];}return null;}async function Ie(_0x509505){const _0x1fefa6=_0x36fb7c;let _0x14587c=_0x509505[_0x1fefa6(0x159)];const _0x45b751=async _0x2f2f5b=>{const _0x1d3657=_0x1fefa6;_0x14587c=_0x2f2f5b['requestKey'],await _0x509505[_0x1d3657(0x17f)]?.(_0x2f2f5b);};for(let _0x486abb=0x0;;_0x486abb++){try{const _0x379d39=await Ee({..._0x509505,'requestKey':_0x14587c,'onSaved':_0x45b751});if(![_0x1fefa6(0x17b),_0x1fefa6(0x1ac)]['includes'](_0x379d39[_0x1fefa6(0x1d8)])||_0x486abb>=0x2)return _0x379d39;}catch(_0x346f07){if(_0x486abb>=0x2||![_0x1fefa6(0x1bd),_0x1fefa6(0x14c)][_0x1fefa6(0x1d0)](_0x346f07[_0x1fefa6(0x1de)]))throw _0x346f07;}_0x509505['onProgress']?.({'phase':'checking_payment','message':_0x1fefa6(0x19a)});}}async function Ee(_0x282e92){const _0x132118=_0x36fb7c;_0x282e92={..._0x282e92,'expectedWallet':_0x282e92[_0x132118(0x1b5)]??_0x2ebe21(_0x282e92)[_0x132118(0x1d7)]};const {api:_0x45caae,home:_0x2c9d15,file:_0xc5bda0,requestKey:_0x4098bf}=_0x282e92,_0x5a62c=_0x4098bf?await _0x4892b4(_0x2c9d15,_0x4098bf):null,_0x442a8d=_0x2a51eb(_0x282e92[_0x132118(0x1ea)]??_0x5a62c?.[_0x132118(0x1ea)]),_0x3f625e=_0x282e92[_0x132118(0x1ab)]??_0x5a62c?.[_0x132118(0x1ab)]??_0x299ff1(_0x282e92)[_0x132118(0x178)];_0x4d1749(_0x3f625e,_0x442a8d);const _0x4d0464=_0x282e92['action']??_0x132118(0x153);if(_0x4d0464!==_0x132118(0x153)&&_0x4d0464!==_0x132118(0x1d3))throw new Error(_0x132118(0x1c1)+_0x4d0464);const _0x1a2eb6=_0x282e92[_0x132118(0x16f)]??await de(_0xc5bda0);if(!_0x1a2eb6||typeof _0x1a2eb6!=_0x132118(0x177)||Array[_0x132118(0x238)](_0x1a2eb6))throw new Error(_0x132118(0x1df));const _0x51c6e9=ce(_0x1a2eb6);let _0x757891=_0x5a62c;if(_0x757891){if(_0x5ee9e9(_0x757891),_0x757891[_0x132118(0x14f)]!==_0x45caae)throw new Error(_0x132118(0x225)+_0x757891[_0x132118(0x159)]+_0x132118(0x1c0)+_0x757891[_0x132118(0x14f)]+';\x20rerun\x20with\x20--api\x20'+_0x757891[_0x132118(0x14f)]);if(_0x757891[_0x132118(0x211)]!==_0x4d0464)throw new Error('request\x20key\x20'+_0x757891['requestKey']+_0x132118(0x169)+_0x757891[_0x132118(0x211)]+',\x20not\x20'+_0x4d0464);if(_0x757891[_0x132118(0x1a0)]!==_0x51c6e9)throw new Error(_0x132118(0x18e)+_0x757891[_0x132118(0x159)]+_0x132118(0x23d));const _0xf694c0=_0x3f625e!==(_0x757891[_0x132118(0x1ab)]??_0x132118(0x160));if(_0xf694c0||_0x442a8d!==(_0x757891[_0x132118(0x1ea)]??'IMD')){if(!_0x433aec(_0x757891)[_0x132118(0x1b6)])throw new Error(_0xf694c0?_0x132118(0x206):_0x132118(0x1f9));_0x757891[_0x132118(0x1ab)]=_0x3f625e,_0x757891[_0x132118(0x1ea)]=_0x442a8d;for(const _0x361a1e of[_0x132118(0x191),_0x132118(0x1d9),'support'])delete _0x757891[_0x361a1e];await _0x455842(_0x2c9d15,_0x757891);}}else _0x757891={'version':0x1,'requestKey':_0x4098bf??_0x4bc948(),'requestToken':_0x38940a(0x20)[_0x132118(0x15a)]('hex'),'api':_0x45caae,'action':_0x4d0464,'input':_0x1a2eb6,'inputHash':_0x51c6e9,'submissionInput':_0x4785d2(_0x1a2eb6),..._0x282e92['plan']?{'plan':_0x282e92[_0x132118(0x233)]}:{},'createdAt':new Date()[_0x132118(0x202)](),'updatedAt':new Date()[_0x132118(0x202)](),'status':'created','paymentChain':_0x3f625e,'payWith':_0x442a8d},await _0x455842(_0x2c9d15,_0x757891);if(await _0x282e92[_0x132118(0x17f)]?.(_0x757891),_0x757891[_0x132118(0x1d8)]===_0x132118(0x1c3))return{'state':_0x757891,'status':_0x132118(0x1c3)};if(_0x757891[_0x132118(0x1d8)]==='refused')return{'state':_0x757891,'status':_0x757891[_0x132118(0x1d8)]};try{let _0x504f05=_0x757891['onchainPayment']||_0x757891['paymentHeader']||_0x757891[_0x132118(0x22a)];if(_0x504f05&&(Number(_0x757891[_0x132118(0x1c6)][_0x132118(0x14d)])*0x3e8<=Date[_0x132118(0x15d)]()||['expired',_0x132118(0x1ac)][_0x132118(0x1d0)](_0x757891[_0x132118(0x1d8)]))){if(_0x282e92[_0x132118(0x237)]?.({'phase':_0x132118(0x15e),'message':_0x132118(0x21e)}),k(_0x757891,await H(_0x45caae,_0x757891['requestToken'],_0x757891[_0x132118(0x23b)])),await _0x455842(_0x2c9d15,_0x757891),_0x757891[_0x132118(0x1d8)]==='admitted'||_0x757891[_0x132118(0x1d8)]===_0x132118(0x1c5))return{'state':_0x757891,'status':_0x757891[_0x132118(0x1d8)]};if(await _0x562e75(_0x757891,_0x282e92)){if(_0x757891[_0x132118(0x186)]){const _0x3c8731=await _0x1bca65(_0x282e92,_0x757891[_0x132118(0x186)][_0x132118(0x1fd)]);await _0x56b47e(_0x3c8731,_0x757891[_0x132118(0x186)])||_0x3b797b(_0x757891,_0x757891[_0x132118(0x186)]);}_0x757891['paymentHistory']=[..._0x757891[_0x132118(0x15c)]??[],{'orderId':_0x757891[_0x132118(0x23b)],'quote':_0x757891[_0x132118(0x1c6)],'onchainQuotes':_0x757891['onchainQuotes'],'payment':_0x757891[_0x132118(0x199)],'paymentHeader':_0x757891[_0x132118(0x19c)],'quoteSignature':_0x757891[_0x132118(0x22a)],'onchainPayment':_0x757891[_0x132118(0x186)],'transactionHash':_0x757891[_0x132118(0x1cf)],'submittedAt':_0x757891['submittedAt'],'unpaid':!0x0}];for(const _0x903ef1 of[_0x132118(0x199),'paymentHeader',_0x132118(0x209),'quoteSignature',_0x132118(0x186),_0x132118(0x1cf),_0x132118(0x1f3),'paymentStatus'])delete _0x757891[_0x903ef1];_0x504f05=!0x1,delete _0x757891[_0x132118(0x1bc)],await _0x455842(_0x2c9d15,_0x757891);}else throw Object[_0x132118(0x174)](new Error(_0x132118(0x1e8)),{'code':_0x132118(0x184)});}if(!_0x504f05&&_0x757891[_0x132118(0x23b)]&&([_0x132118(0x17b),_0x132118(0x1ac)][_0x132118(0x1d0)](_0x757891[_0x132118(0x1d8)])||Number(_0x757891['quote'][_0x132118(0x14d)])*0x3e8<=Date[_0x132118(0x15d)]()+0x7530)){_0x757891[_0x132118(0x189)]=[..._0x757891[_0x132118(0x189)]??[],{'orderId':_0x757891['orderId'],'requestKey':_0x757891[_0x132118(0x200)]??_0x757891['requestKey'],'quote':_0x757891[_0x132118(0x1c6)],'onchainQuotes':_0x757891['onchainQuotes'],'status':_0x757891[_0x132118(0x1d8)]}],_0x757891[_0x132118(0x200)]=_0x4bc948();for(const _0x38f855 of['orderId','orderStatus',_0x132118(0x1c6),_0x132118(0x1d2),_0x132118(0x21b),'lastStatus','paymentStatus',_0x132118(0x1d9)])delete _0x757891[_0x38f855];_0x757891[_0x132118(0x1d8)]='created',_0x757891[_0x132118(0x170)]=null,await _0x455842(_0x2c9d15,_0x757891);}if(!_0x757891[_0x132118(0x23b)]){_0x282e92[_0x132118(0x237)]?.({'phase':_0x132118(0x1c6),'message':_0x132118(0x151)});const _0x1c8d0a=_0x757891[_0x132118(0x226)]??_0x757891[_0x132118(0x16f)],_0x529fd1=await me(_0x45caae,_0x1c8d0a,_0x4d0464,_0x282e92[_0x132118(0x1c9)]);if(_0x757891[_0x132118(0x1a9)]=_0x529fd1,_0x282e92['onCheck']&&await _0x282e92[_0x132118(0x19b)](_0x529fd1),_0x529fd1['blockers'][_0x132118(0x187)]>0x0)return _0x757891[_0x132118(0x1d8)]=_0x132118(0x21f),_0x757891['lastError']=null,await _0x455842(_0x2c9d15,_0x757891),{'state':_0x757891,'status':_0x132118(0x21f),'check':_0x529fd1};if(_0x4d0464===_0x132118(0x1d3)){const _0x2ac2f9=await _0x378bb3(_0x282e92);_0x757891[_0x132118(0x16c)]=await v({'api':_0x45caae,'input':_0x1a2eb6,'check':_0x529fd1,'account':_0x2ac2f9,'owner':_0x757891[_0x132118(0x16c)]});}let _0x5539d0;try{_0x5539d0=await T(_0x45caae,_0x757891[_0x132118(0x204)],_0x757891[_0x132118(0x200)]??_0x757891[_0x132118(0x159)],_0x1c8d0a,_0x4d0464,_0x282e92[_0x132118(0x1c9)]);}catch(_0x458adc){if(_0x458adc[_0x132118(0x1d8)]!==0x19a)throw _0x458adc;_0x757891[_0x132118(0x200)]=_0x4bc948(),await _0x455842(_0x2c9d15,_0x757891),_0x5539d0=await T(_0x45caae,_0x757891['requestToken'],_0x757891[_0x132118(0x200)],_0x1c8d0a,_0x4d0464,_0x282e92['signal']);}_0x757891[_0x132118(0x23b)]=_0x5539d0['id'],_0x757891[_0x132118(0x196)]=_0x5539d0[_0x132118(0x1d8)],_0x757891[_0x132118(0x1c6)]=_0x5539d0[_0x132118(0x1c6)],_0x757891[_0x132118(0x1d2)]=_0x5539d0[_0x132118(0x224)],_0x757891[_0x132118(0x1d8)]=_0x132118(0x207),_0x757891[_0x132118(0x170)]=null,await _0x455842(_0x2c9d15,_0x757891);}if(_0x56002e(_0x15384f(_0x757891)),!_0x757891[_0x132118(0x186)]&&(!_0x757891[_0x132118(0x19c)]||!_0x757891['quoteSignature'])){if(_0x757891['challenge'])j(_0x757891['challenge'],_0x757891);else{const _0x55264f=await le(_0x45caae,_0x757891[_0x132118(0x204)],_0x757891['orderId'],_0x282e92[_0x132118(0x1c9)]);j(_0x55264f,_0x757891),_0x757891[_0x132118(0x21b)]=_0x55264f,_0x757891[_0x132118(0x1d8)]=_0x132118(0x198),await _0x455842(_0x2c9d15,_0x757891);}let _0x4c4092;if(_0x4d0464===_0x132118(0x1d3)&&(_0x4c4092=await _0x378bb3(_0x282e92),_0x757891[_0x132118(0x16c)]=await v({'api':_0x45caae,'input':_0x1a2eb6,'check':_0x757891['check'],'account':_0x4c4092,'owner':_0x757891['owner']}),await _0x455842(_0x2c9d15,_0x757891)),await _0x39d96d(_0x757891,_0x282e92),_0x282e92[_0x132118(0x1c9)]?.['throwIfAborted'](),_0x5ee9e9(await _0x3c808d(_0x2c9d15,_0x757891['requestKey'])),await _0x455842(_0x2c9d15,_0x757891),await _0x2a2380(_0x757891,_0x282e92,_0x332a01=>qe(_0x332a01,_0x282e92)),_0x757891[_0x132118(0x1ab)]==='robinhood')await _0x2d4acb(_0x757891,_0x282e92);else{_0x282e92[_0x132118(0x237)]?.({'phase':'signing','message':'Signing\x20task\x20payment\x20authorization...'}),_0x282e92[_0x132118(0x1c9)]?.[_0x132118(0x1ed)](),_0x5ee9e9(await _0x3c808d(_0x2c9d15,_0x757891[_0x132118(0x159)])),_0x4c4092=await _0x378bb3(_0x282e92),_0x282e92[_0x132118(0x1c9)]?.[_0x132118(0x1ed)](),_0x5ee9e9(await _0x3c808d(_0x2c9d15,_0x757891[_0x132118(0x159)])),_0x757891[_0x132118(0x14a)]=_0x4c4092[_0x132118(0x1d7)],await _0x455842(_0x2c9d15,_0x757891);const _0x354736=await he(_0x4c4092,_0x757891[_0x132118(0x21b)]),_0x4ac1e3=await we(_0x4c4092,_0x757891[_0x132118(0x21b)],_0x354736[_0x132118(0x209)]);_0x757891[_0x132118(0x199)]=_0x354736[_0x132118(0x199)],_0x757891[_0x132118(0x19c)]=_0x354736[_0x132118(0x19c)],_0x757891[_0x132118(0x209)]=_0x354736[_0x132118(0x209)],_0x757891[_0x132118(0x22a)]=_0x4ac1e3,_0x757891['status']=_0x132118(0x1e9),_0x757891[_0x132118(0x170)]=null,await _0x455842(_0x2c9d15,_0x757891);}}_0x757891[_0x132118(0x186)]?await _0x569a55(_0x757891,_0x282e92):(_0x282e92[_0x132118(0x237)]?.({'phase':'broadcasting','message':_0x132118(0x1c4)}),await ke(_0x45caae,_0x757891[_0x132118(0x204)],_0x757891,_0x2c9d15,_0x282e92[_0x132118(0x1c9)])),_0x282e92[_0x132118(0x237)]?.({'phase':_0x132118(0x17c),'message':_0x132118(0x18f)});const _0x2b211f=await Se(_0x45caae,_0x757891[_0x132118(0x204)],_0x757891[_0x132118(0x23b)],_0x282e92);return k(_0x757891,_0x2b211f),delete _0x757891[_0x132118(0x1d4)],await _0x455842(_0x2c9d15,_0x757891),{'state':_0x757891,'status':_0x757891[_0x132118(0x1d8)]};}catch(_0x24d5c1){if([_0x132118(0x1d5),'order_changed',_0x132118(0x210)][_0x132118(0x1d0)](_0x24d5c1[_0x132118(0x1de)]))throw _0x24d5c1;if(_0x5ee9e9(await _0x3c808d(_0x2c9d15,_0x757891['requestKey'])),await xe(_0x24d5c1,_0x45caae,_0x757891,_0x2c9d15))return{'state':_0x757891,'status':_0x757891[_0x132118(0x1d8)]};throw _0x757891[_0x132118(0x170)]=_0x24d5c1[_0x132118(0x235)],[_0x132118(0x20b),'payment_reconciling']['includes'](_0x24d5c1[_0x132118(0x1de)])&&(_0x757891[_0x132118(0x1d4)]=_0x24d5c1[_0x132118(0x1de)]),_0x24d5c1[_0x132118(0x1dc)]&&(_0x757891[_0x132118(0x1bc)]=_0x24d5c1['transaction']),_0x24d5c1['status']===0x192&&(_0x757891[_0x132118(0x1d8)]=_0x132118(0x1e9)),await _0x455842(_0x2c9d15,_0x757891),_0x24d5c1[_0x132118(0x1de)]===_0x132118(0x164)&&_0x24d5c1[_0x132118(0x191)]&&(_0x24d5c1['funding'][_0x132118(0x1e3)]=_0x433aec(_0x757891)['canCancel']),_0x24d5c1['code']===_0x132118(0x205)?_0x24d5c1:$e(_0x24d5c1,_0x757891,{'file':_0xc5bda0,'home':_0x2c9d15,'api':_0x45caae,'retryCommand':_0x282e92[_0x132118(0x217)]});}}async function Le(_0xf9657f){const _0x44fb03=_0x36fb7c,{home:_0x25be33,id:_0x3c2888}=_0xf9657f,_0x174bd2=await _0x3c808d(_0x25be33,_0x3c2888);if(_0x5ee9e9(_0x174bd2),_0x174bd2[_0x44fb03(0x1d8)]===_0x44fb03(0x1c3)||_0x174bd2[_0x44fb03(0x1d8)]===_0x44fb03(0x1c5))return _0x174bd2;if(_0x174bd2['api']!==_0xf9657f['api'])throw new Error(_0x44fb03(0x225)+_0x174bd2[_0x44fb03(0x159)]+_0x44fb03(0x1c0)+_0x174bd2[_0x44fb03(0x14f)]+_0x44fb03(0x230)+_0x174bd2[_0x44fb03(0x14f)]);return(await Ie({..._0xf9657f,'requestKey':_0x174bd2[_0x44fb03(0x159)],'input':_0x174bd2[_0x44fb03(0x16f)],'action':_0x174bd2[_0x44fb03(0x211)],'paymentChain':_0x174bd2[_0x44fb03(0x1ab)]??'ethereum','payWith':_0x174bd2[_0x44fb03(0x1ea)]}))[_0x44fb03(0x1e1)];}export{k as applyOrderStatus,v as assertContinueOwner,he as buildPayment,S as canonicalJson,me as checkJob,H as fetchOrderStatus,ce as hashJson,ge as paymentSummary,Se as pollOrder,Ie as publishJob,fe as quoteApprovalTypedData,T as quoteJob,de as readJobFile,Ge as refreshOrder,we as signQuoteApproval,Le as submitOrder};function _0x5c90(){const _0x194357=['payer','display','payment_review_expired','expiresAt','isInteger','api','.\x20Saved\x20transactions\x20will\x20be\x20checked\x20before\x20refreshing\x20prices.','Checking\x20your\x20task\x20and\x20requesting\x20a\x20current\x20price...',';\x20continue\x20this\x20task\x20with:\x20colony\x20--api\x20','job.open','\x20does\x20not\x20match\x20','objective','\x0aSupport\x20is\x20sent\x20before\x20task\x20payment\x20and\x20is\x20not\x20refunded\x20if\x20admission\x20fails.','<parent-job-id>','refusalProblems','requestKey','toString','decimals','paymentHistory','now','checking_payment','networkFeeCap','ethereum','null','/requests/quote','recipient','funding_required','\x20--refresh','payment\x20challenge\x20action\x20','\x20ETH','payment\x20challenge\x20expiry\x20does\x20not\x20match\x20the\x20saved\x20quote','\x20was\x20created\x20for\x20action\x20','stringify','\x20from\x20the\x20same\x20ETH\x20balance','owner','payment\x20challenge\x20belongs\x20to\x20a\x20different\x20order','\x20on\x20','input','lastError','utf8','sort','missing\x20signer\x20address','assign','Task:\x20','requesterScopeHash','object','key','payment\x20requirement\x20is\x20missing\x20maxTimeoutSeconds','/requests/check','expired','admission','timed\x20out\x20waiting\x20for\x20order\x20','converted','onSaved','\x20is\x20not\x20before\x20quote\x20expiry\x20','Network:\x20','/jobs/','order','payment_reconciling','quote\x20approval','onchainPayment','length','invalid\x20quote\x20network:\x20','quoteHistory','Action:\x20','\x20\x20-\x20','map','\x20order\x20show\x20','request\x20key\x20','Payment\x20submitted.\x20Waiting\x20for\x20IMD\x20to\x20accept\x20the\x20task...','result','funding','payment\x20challenge\x20is\x20missing\x20the\x20prepared\x20input','Payment:\x20≈\x20','blockers','order\x20status\x20response\x20is\x20missing\x20status','orderStatus','uint256','challenged','payment','Checking\x20the\x20previous\x20payment\x20and\x20refreshing\x20prices...','onCheck','paymentHeader','\x0aorder\x20status\x20refresh\x20failed:\x20','Total\x20ETH\x20at\x20most:\x20','some','inputHash','quote\x20has\x20expired;\x20no\x20payment\x20was\x20signed','maxTimeoutSeconds','/submit','steps','paidBy','Maximum\x20debit:\x20','floor','jobId','check','\x20--request-key\x20','paymentChain','payment_failed','join','quote\x20expires\x20too\x20soon\x20to\x20sign\x20a\x20payment;\x20no\x20payment\x20was\x20signed','\x20order\x20submit\x20','error',';\x20last\x20status:\x20','check\x20response\x20is\x20missing\x20blockers','payment\x20challenge\x20is\x20missing\x20accepts','resultUrl','expectedWallet','canCancel','\x20task\x20continue\x20','sha256','\x20IMD','maximumDebit','payment\x20challenge\x20is\x20missing\x20resourceUrl\x20or\x20requesterScopeHash','pendingTransaction','quote_expired','amount','/requests/','\x20belongs\x20to\x20','unsupported\x20action:\x20','timeoutMs','admitted','Submitting\x20task\x20payment\x20to\x20IMD...','refused','quote','parentJobId','gas','signal','\x20atomic\x20units)','submitted','data','paymentStatus','Prepared\x20input\x20(this\x20is\x20what\x20will\x20be\x20paid\x20for):','transactionHash','includes','coin','onchainQuotes','job.continue','recoveryStatus','order_cancelled','\x20task\x20create\x20--file\x20<saved-input.json>\x20--request-key\x20','address','status','paymentReview','quoteHash',';\x20resume\x20with:\x20colony\x20--api\x20','transaction','\x20(at\x20most\x20','code','job\x20input\x20must\x20be\x20a\x20JSON\x20object','statusUrl','state','\x20does\x20not\x20match\x20the\x20saved\x20quote','canChangePayment','Payment\x20covers\x20task\x20admission;\x20a\x20completed\x20result\x20is\x20not\x20guaranteed.','Additional\x20network\x20fee\x20cap:\x20','wallet\x20','resourceUrl','The\x20previous\x20payment\x20is\x20still\x20being\x20reconciled.\x20Your\x20task\x20is\x20saved.\x20Continue\x20this\x20task\x20again\x20after\x20chain\x20confirmation;\x20no\x20new\x20payment\x20was\x20signed.','signed','payWith','\x20(api\x20','asset','throwIfAborted','Included\x20network\x20fee\x20cap:\x20','permit2','max','saved\x20request\x20key\x20','accepts','submittedAt','toLowerCase','string','replace','\x20--file\x20','network','Resume\x20this\x20order\x20with\x20its\x20original\x20payment\x20coin.','Pay\x20to:\x20','\x20at\x20','confirmedHash','chainId','saved\x20quote\x20action\x20',';\x20a\x20payment\x20is\x20already\x20signed\x20for\x20order\x20','serverRequestKey','payment\x20challenge\x20does\x20not\x20use\x20Permit2','toISOString','assetTransferMethod','requestToken','owner_mismatch','This\x20order\x20already\x20uses\x20a\x20different\x20payment\x20network.\x20Resume\x20it\x20on\x20its\x20original\x20network.','quoted','estimate','paymentHash','reason','transaction_pending','createPaymentPayload','\x20at\x20most)','\x20--home\x20','resource','change_payment','action','payment\x20challenge','expected\x20HTTP\x20402\x20payment\x20challenge,\x20got\x20HTTP\x20','POST','parse',';\x20no\x20payment\x20was\x20signed\x20in\x20this\x20attempt','retryCommand','lastStatus','quote\x20response\x20is\x20missing\x20order\x20or\x20quote','kind','challenge','Quote\x20expires:\x20','payload','Checking\x20the\x20original\x20payment\x20before\x20continuing...','blocked','\x20must\x20contain\x20a\x20JSON\x20object','signTypedData','QuoteApproval','),\x20converted\x20to\x20IMD','onchain','order\x20','submissionInput','function','rawTransaction','confirm','quoteSignature','IMD','update','payTo','total','\x20task\x20publish\x20--file\x20',';\x20rerun\x20with\x20--api\x20','Payment:\x20','extra','plan','bytes32','message','min','onProgress','isArray','ETH','Amount:\x20','orderId','Sign\x20and\x20pay\x20this\x20order?\x0a','\x20was\x20created\x20for\x20a\x20different\x20input'];_0x5c90=function(){return _0x194357;};return _0x5c90();}
@@ -1 +1 @@
1
- const o='(Submitted\x20via\x20Supercolony)';function i(_0x4ae194){const _0x31aba3=_0x1012;if(typeof _0x4ae194[_0x31aba3(0x11f)]!=_0x31aba3(0x11e)||!_0x4ae194[_0x31aba3(0x11f)]['trim']())return _0x4ae194;const _0x28e3b1=_0x4ae194[_0x31aba3(0x11f)]['trimEnd']();return _0x28e3b1===o||_0x28e3b1['endsWith']('\x0a'+o)?_0x4ae194:{..._0x4ae194,'objective':_0x28e3b1+'\x0a\x0a'+o};}export{o as SUBMISSION_ATTRIBUTION,i as withSubmissionAttribution};function _0x1012(_0x32ecb8,_0x10c230){_0x32ecb8=_0x32ecb8-0x11e;const _0x101298=_0x10c2();let _0xf15e39=_0x101298[_0x32ecb8];return _0xf15e39;}function _0x10c2(){const _0x902b6a=['string','objective'];_0x10c2=function(){return _0x902b6a;};return _0x10c2();}
1
+ const o='via\x20supercolony';function i(_0x4b885c){const _0x7511e9=_0xc0e2;if(typeof _0x4b885c[_0x7511e9(0x1da)]!=_0x7511e9(0x1d8)||!_0x4b885c['objective'][_0x7511e9(0x1d7)]())return _0x4b885c;const _0x3084ac=_0x4b885c[_0x7511e9(0x1da)]['trimEnd']();return _0x3084ac===o||_0x3084ac[_0x7511e9(0x1d9)]('\x0a'+o)?_0x4b885c:{..._0x4b885c,'objective':_0x3084ac+'\x0a'+o};}function _0x50ed(){const _0x596a37=['trim','string','endsWith','objective'];_0x50ed=function(){return _0x596a37;};return _0x50ed();}function _0xc0e2(_0x2e44bf,_0x50ed93){_0x2e44bf=_0x2e44bf-0x1d7;const _0xc0e202=_0x50ed();let _0x3be8e9=_0xc0e202[_0x2e44bf];return _0x3be8e9;}export{o as SUBMISSION_ATTRIBUTION,i as withSubmissionAttribution};
package/dist/tui/app.mjs CHANGED
@@ -1 +1 @@
1
- const _0x4a8be8=_0x11f7;import{createElement as _0x377643,useEffect as _0xd6bd5d,useState as _0x1fec36,useSyncExternalStore as _0x15b696}from'react';import{Box as _0x1d0bf1,Text as _0x31a267,useApp as _0x1c6ab1,useInput as _0x23dbf4,useWindowSize as _0x3c7eca}from'ink';import _0x3087f2 from'ink-text-input';import _0x180bb6 from'string-width';import{visibleItems as _0x1f852a,VIEWS as _0x118e55}from'./controller.mjs';import{clean as _0x33d708,detailText as _0x8f542f,lines as _0x46af78,short as _0x4b445d,statusLabel as _0x12f1e6,taskActions as _0x48aa65}from'./presentation.mjs';import{modelProgressLines as _0x16f8ff}from'../planner/progress.mjs';const le={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},ce={'tasks':_0x4a8be8(0x13f),'explore':_0x4a8be8(0x156),'workers':'Workers','wallet':'Wallets'},Q=[_0x4a8be8(0x1a9),'Tip:\x20Colony\x20handles\x20task\x20settings.',_0x4a8be8(0x11c),'Tip:\x20Review\x20the\x20price\x20before\x20paying.',_0x4a8be8(0x153)],de=_0x43d932=>_0x43d932===_0x4a8be8(0x135)?'gray':_0x43d932===_0x4a8be8(0x118)?_0x4a8be8(0x137):[_0x4a8be8(0x114),_0x4a8be8(0x149),_0x4a8be8(0x1d3),_0x4a8be8(0x115),_0x4a8be8(0x151)][_0x4a8be8(0x1b4)](_0x43d932)?_0x4a8be8(0x188):_0x4a8be8(0x170),s=(_0x4f4932,_0x3f74e0={})=>_0x377643(_0x31a267,_0x3f74e0,_0x33d708(_0x4f4932));function B({label:_0x110908}){const _0x437566=_0x4a8be8,[_0x47fd64,_0x238a10]=_0x1fec36(0x0);return _0xd6bd5d(()=>{const _0x567860=setInterval(()=>_0x238a10(_0x277bd9=>(_0x277bd9+0x1)%0x4),0x96);return()=>clearInterval(_0x567860);},[]),s(['|','/','-','\x5c'][_0x47fd64]+'\x20'+_0x110908,{'color':'cyan','wrap':_0x437566(0x119)});}function A({title:_0x43b66b,width:_0x259e76,height:_0xbf3b59,ascii:_0x42bbcf,active:_0x1d39c6,children:_0x4f35be}){const _0x35aee9=_0x4a8be8;return _0x377643(_0x1d0bf1,{'width':_0x259e76,'height':_0xbf3b59,'flexDirection':'column','borderStyle':_0x42bbcf?le:'single','borderColor':_0x1d39c6?_0x35aee9(0x170):_0x35aee9(0x122),'paddingX':0x1,'flexShrink':0x0,'overflow':'hidden'},s(_0x43b66b,{'color':_0x1d39c6?_0x35aee9(0x170):void 0x0,'dimColor':!_0x1d39c6}),_0x4f35be);}function L(_0x3702b9,_0x571980){const _0x481588=_0x4a8be8,_0x1cd976=[];for(const _0x59c142 of _0x3702b9){const _0x3a3ad9=_0x1cd976[_0x481588(0x1bb)]-0x1;_0x3a3ad9>=0x0&&_0x180bb6(_0x1cd976[_0x3a3ad9]+'\x20\x20'+_0x59c142)<=_0x571980?_0x1cd976[_0x3a3ad9]+='\x20\x20'+_0x59c142:_0x1cd976[_0x481588(0x1e2)](_0x59c142);}return _0x1cd976;}function U({rows:_0x15a2c0,width:_0x5842ca,ascii:_0x16a73b}){const _0x2d7d6a=_0x4a8be8;return _0x15a2c0[_0x2d7d6a(0x1bb)]?_0x377643(_0x1d0bf1,{'flexDirection':_0x2d7d6a(0x20b),'flexShrink':0x0},s((_0x16a73b?'-':'\u2500')[_0x2d7d6a(0x19f)](_0x5842ca),{'dimColor':!0x0}),..._0x15a2c0[_0x2d7d6a(0x162)]((_0x113524,_0x1c713a)=>s(_0x113524,{'key':_0x1c713a,'color':_0x2d7d6a(0x170),'bold':!0x0}))):null;}function ue({event:_0x382b4a,width:_0x6f5331,height:_0x38a472,ascii:_0x253a7d}){const _0x2417e1=_0x4a8be8,_0x2a7111=_0x16f8ff(_0x382b4a,{'width':_0x6f5331-0x4,'compact':!0x0})[_0x2417e1(0x141)](0x2);return _0x377643(A,{'title':_0x2417e1(0x16a),'width':_0x6f5331,'height':_0x38a472,'ascii':_0x253a7d,'active':!0x0},_0x377643(_0x1d0bf1,{'flexDirection':_0x2417e1(0x20b)},..._0x2a7111[_0x2417e1(0x162)]((_0x4d88ea,_0x46cf7e)=>_0x4d88ea[_0x2417e1(0x11f)](_0x2417e1(0x1f7))?_0x377643(B,{'key':_0x46cf7e,'label':_0x4d88ea['slice'](0x4)}):s(_0x4d88ea||'\x20',{'key':_0x46cf7e,'color':_0x4d88ea[_0x2417e1(0x11f)]('[+]')?_0x2417e1(0x137):_0x2417e1(0x170)}))),_0x377643(_0x1d0bf1,{'flexGrow':0x1}));}function G({content:_0x105314,width:_0x15b4a9,height:_0x11412c,offset:_0x4eb352}){const _0x2dc7e1=_0x4a8be8,_0x2c58c2=_0x46af78(_0x105314,_0x15b4a9),_0x344578=Math['min'](_0x4eb352,Math['max'](0x0,_0x2c58c2[_0x2dc7e1(0x1bb)]-_0x11412c));return _0x377643(_0x1d0bf1,{'flexDirection':_0x2dc7e1(0x20b),'height':_0x11412c,'overflow':'hidden'},..._0x2c58c2[_0x2dc7e1(0x141)](_0x344578,_0x344578+_0x11412c)['map']((_0x22c4de,_0x2acaab)=>s(_0x22c4de||'\x20',{'key':_0x2acaab})));}function z({state:_0x4e8320,height:_0x4205ac,width:_0x184234,ascii:_0x1e2bb3}){const _0x50b645=_0x4a8be8,_0x537e06=_0x1f852a(_0x4e8320),_0x190f32=_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f6),_0x489c90=_0x4e8320[_0x50b645(0x180)]==='tasks'?[_0x50b645(0x15f),_0x50b645(0x1fb),_0x50b645(0x21a),_0x50b645(0x1a0)]:_0x190f32?[_0x50b645(0x15f),'[/]\x20Search','[r]\x20Refresh']:_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?['[a]\x20Add\x20target',_0x50b645(0x1fb),_0x50b645(0x1a0)]:[];_0x4e8320['view']!==_0x50b645(0x17a)&&(_0x4e8320[_0x50b645(0x20c)]||_0x4e8320[_0x50b645(0x1cd)])&&_0x489c90[_0x50b645(0x1e2)](_0x50b645(0x1cb));const _0x4553d0=L(_0x489c90,_0x184234),_0x1896d7=_0x190f32?_0x4e8320[_0x50b645(0x129)]:_0x537e06[_0x50b645(0x1bb)],_0x2c56c9=_0x190f32?_0x1896d7===null?_0x537e06[_0x50b645(0x1bb)]+_0x50b645(0x1d1):_0x1896d7['toLocaleString']('en-US')+(_0x1896d7===0x1?'\x20task':_0x50b645(0x12d)):_0x537e06[_0x50b645(0x1bb)]+(_0x4e8320[_0x50b645(0x180)]==='wallet'?_0x50b645(0x14e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x1f8)?_0x50b645(0x12c):_0x50b645(0x11d)+_0x4e8320[_0x50b645(0x1a3)]),_0x376fee=_0x1896d7===null?_0x50b645(0x1ff)+(_0x4e8320[_0x50b645(0x142)]+0x1):_0x4e8320[_0x50b645(0x142)]+0x1+'/'+_0x1896d7[_0x50b645(0x1d2)](_0x50b645(0x172)),_0x5654ca=_0x190f32&&_0x4e8320[_0x50b645(0x142)]===_0x537e06[_0x50b645(0x1bb)]-0x1;let _0x1f9d5d=_0x50b645(0x1b7);_0x5654ca&&(_0x4e8320[_0x50b645(0x178)]?_0x1f9d5d=_0x50b645(0x1ac):_0x4e8320[_0x50b645(0x20c)]&&_0x4e8320[_0x50b645(0x191)]?_0x1f9d5d='l\x20retry\x20history':_0x1f9d5d=_0x4e8320[_0x50b645(0x191)]?_0x50b645(0x20e):_0x50b645(0x10f));const _0x23f097=_0x537e06[_0x50b645(0x1bb)]?L([_0x376fee,_0x1f9d5d,_0x50b645(0x18f)],_0x184234):[],_0x3348e2=_0x4553d0[_0x50b645(0x1bb)]?_0x4553d0[_0x50b645(0x1bb)]+0x1:0x0,_0x4ebbd8=Math[_0x50b645(0x203)](0x1,Math['floor']((_0x4205ac-0x4-_0x23f097[_0x50b645(0x1bb)]-_0x3348e2)/0x3)),_0x1534d8=Math[_0x50b645(0x203)](0x0,Math[_0x50b645(0x1ba)](_0x4e8320['selected']-Math['floor'](_0x4ebbd8/0x2),_0x537e06[_0x50b645(0x1bb)]-_0x4ebbd8));return _0x377643(_0x1d0bf1,{'flexDirection':_0x50b645(0x20b),'flexGrow':0x1},s(_0x2c56c9,{'dimColor':!0x0}),..._0x537e06[_0x50b645(0x141)](_0x1534d8,_0x1534d8+_0x4ebbd8)[_0x50b645(0x162)]((_0x192202,_0x445cca)=>_0x377643(_0x1d0bf1,{'key':_0x192202['id'],'flexDirection':_0x50b645(0x20b)},s((_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca?'>\x20':'\x20\x20')+_0x4b445d((_0x192202[_0x50b645(0x110)]===_0x50b645(0x143)?_0x50b645(0x171):'')+_0x192202['title'],_0x184234-0x2),{'inverse':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca,'bold':_0x4e8320[_0x50b645(0x142)]===_0x1534d8+_0x445cca}),s('\x20\x20'+_0x4b445d(_0x192202[_0x50b645(0x12a)]??_0x12f1e6(_0x192202[_0x50b645(0x1a2)])??(_0x192202[_0x50b645(0x10d)]?_0x50b645(0x175):_0x50b645(0x189)),_0x184234-0x2),{'color':de(_0x192202['state'])}),s((_0x1e2bb3?'-':'\u2500')[_0x50b645(0x19f)](_0x184234),{'dimColor':!0x0}))),_0x537e06['length']===0x0?s(_0x4e8320[_0x50b645(0x178)]?'Loading...':_0x4e8320['error']?_0x50b645(0x18e):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x17a)?_0x50b645(0x19c):_0x4e8320[_0x50b645(0x180)]===_0x50b645(0x169)?_0x50b645(0x18c):'No\x20matching\x20items.',{'dimColor':!0x0}):null,_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x23f097[_0x50b645(0x162)]((_0x6921b3,_0x5437ec)=>s(_0x6921b3,{'key':_0x5437ec,'dimColor':!0x0})),_0x377643(U,{'rows':_0x4553d0,'width':_0x184234,'ascii':_0x1e2bb3}));}function fe({state:_0x22de42,width:_0x1926f0,height:_0x1e95d3,ascii:_0x3fa1ec,narrow:_0x2ad8df}){const _0x109ee1=_0x4a8be8,_0x25f11a=_0x2ad8df?_0x1926f0:Math[_0x109ee1(0x196)](_0x1926f0*0.43),_0x1c6d05=_0x2ad8df?_0x1926f0:_0x1926f0-_0x25f11a-0x1,_0x5ce12b=0x5,_0x5bea3a=_0x1e95d3-_0x5ce12b,_0x4ffe37=_0x22de42[_0x109ee1(0x1d8)]?.['configured']?[_0x109ee1(0x1c1),'[r]\x20Refresh']:[_0x109ee1(0x1a0)];(_0x22de42['error']||_0x22de42[_0x109ee1(0x1cd)])&&_0x4ffe37['push']('[e]\x20Error\x20details');const _0x1a060d=L(_0x4ffe37,_0x1c6d05-0x4),_0x20418a=L(['Esc/Tab\x20list','PgUp/PgDn\x20scroll'],_0x1c6d05-0x4),_0x59bda8=_0x377643(A,{'title':_0x109ee1(0x1d6),'width':_0x25f11a,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'ascii':_0x3fa1ec,'active':_0x22de42[_0x109ee1(0x19b)]==='list'},_0x377643(z,{'state':_0x22de42,'height':_0x2ad8df?_0x5bea3a:_0x1e95d3,'width':_0x25f11a-0x4,'ascii':_0x3fa1ec})),_0x2fa0bf=_0x377643(A,{'title':_0x109ee1(0x200),'width':_0x1c6d05,'height':_0x5bea3a,'ascii':_0x3fa1ec,'active':_0x22de42['focus']===_0x109ee1(0x1d8)},_0x377643(G,{'content':_0x8f542f(_0x22de42),'width':_0x1c6d05-0x4,'height':_0x5bea3a-0x4-_0x20418a[_0x109ee1(0x1bb)]-_0x1a060d[_0x109ee1(0x1bb)],'offset':_0x22de42[_0x109ee1(0x206)]}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x20418a[_0x109ee1(0x162)]((_0x25e203,_0x5de8be)=>s(_0x25e203,{'key':_0x5de8be,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1a060d,'width':_0x1c6d05-0x4,'ascii':_0x3fa1ec})),_0x151148=_0x377643(A,{'title':_0x109ee1(0x124),'width':_0x1c6d05,'height':_0x5ce12b,'ascii':_0x3fa1ec,'active':!0x1},s(_0x109ee1(0x147)),s(_0x109ee1(0x1ee)));return _0x2ad8df?_0x377643(_0x1d0bf1,{'flexDirection':_0x109ee1(0x20b),'width':_0x1926f0,'height':_0x1e95d3},_0x22de42[_0x109ee1(0x19b)]==='list'?_0x59bda8:_0x2fa0bf,_0x151148):_0x377643(_0x1d0bf1,{'width':_0x1926f0,'height':_0x1e95d3,'gap':0x1},_0x59bda8,_0x377643(_0x1d0bf1,{'width':_0x1c6d05,'flexDirection':'column'},_0x2fa0bf,_0x151148));}function me({controller:_0x454bbe,state:_0x150a93,width:_0x2d8ab0,height:_0x1c78e1,ascii:_0x2cd3b4}){const _0x216968=_0x4a8be8,_0x363c2f=_0x150a93['form'],_0x128999=_0x363c2f['fields'][_0x363c2f[_0x216968(0x208)]],_0x34c871=_0x363c2f[_0x216968(0x15c)][_0x216968(0x141)](0x0,_0x363c2f[_0x216968(0x208)])[_0x216968(0x162)](_0x113416=>_0x113416[_0x216968(0x132)]+':\x20'+(_0x113416[_0x216968(0x1ea)]?_0x216968(0x17c):_0x363c2f[_0x216968(0x120)][_0x113416['name']]));return _0x377643(A,{'title':_0x363c2f[_0x216968(0x19e)],'width':_0x2d8ab0,'height':_0x1c78e1,'ascii':_0x2cd3b4,'active':!0x0},_0x377643(_0x1d0bf1,{'marginTop':0x1,'flexDirection':_0x216968(0x20b)},..._0x34c871[_0x216968(0x162)]((_0x1e7d21,_0x2a243d)=>s(_0x4b445d(_0x1e7d21,_0x2d8ab0-0x6),{'key':_0x2a243d,'dimColor':!0x0})),s(_0x128999['label'],{'bold':!0x0}),_0x377643(_0x1d0bf1,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x216968(0x203)](0x2,_0x1c78e1-0x9),'overflow':_0x216968(0x1f1)},s('>\x20',{'color':_0x216968(0x170)}),_0x377643(_0x3087f2,{'key':_0x128999[_0x216968(0x207)],'value':_0x363c2f['values'][_0x128999['name']],'placeholder':_0x128999[_0x216968(0x1e7)]??'','mask':_0x128999[_0x216968(0x1ea)]?'*':void 0x0,'onChange':_0x166c6a=>_0x454bbe[_0x216968(0x1b9)](_0x166c6a),'onSubmit':()=>_0x363c2f[_0x216968(0x208)]===_0x363c2f['fields'][_0x216968(0x1bb)]-0x1?void _0x454bbe[_0x216968(0x138)]():_0x454bbe[_0x216968(0x1e3)]()})),s(_0x363c2f[_0x216968(0x20c)]??'',{'color':_0x216968(0x11e)}),_0x363c2f['hint']?s(_0x363c2f[_0x216968(0x1af)],{'dimColor':!0x0}):null),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x216968(0x11a)+(_0x363c2f[_0x216968(0x208)]===_0x363c2f[_0x216968(0x15c)]['length']-0x1?_0x363c2f[_0x216968(0x19d)]:_0x216968(0x17e))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':_0x216968(0x170),'wrap':_0x216968(0x119)}));}function he({state:_0x48675f,width:_0x54935c,height:_0x1163b8,ascii:_0x1a161c}){const _0x4e8f89=_0x4a8be8,_0x2ab3b5=_0x48675f['confirm'],_0x40689b=_0x2ab3b5[_0x4e8f89(0x1e1)],_0x3d041d=_0x40689b?.[_0x4e8f89(0x186)],_0x2f8db1=_0x3d041d?.['coin']??_0x40689b?.[_0x4e8f89(0x146)]??_0x4e8f89(0x1bf),_0x1cfbf0=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?'Total\x20'+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x129)]+'\x20IMD\x20(fee\x20'+_0x40689b[_0x4e8f89(0x16c)]+'\x20+\x20support\x20'+_0x40689b['support'][_0x4e8f89(0x16c)]+')':_0x4e8f89(0x185)+_0x40689b[_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8):null,_0x17fa4a=_0x40689b?_0x4e8f89(0x14d)+_0x2f8db1+_0x4e8f89(0x14c)+_0x40689b['chainName']:null,_0x578792=_0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?_0x4e8f89(0x14a)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e1)]??_0x3d041d['amount'])+(_0x3d041d[_0x4e8f89(0x165)]?_0x4e8f89(0x130):''):null,_0xff185=_0x3d041d?.[_0x4e8f89(0x187)]?.[_0x4e8f89(0x179)]??(_0x40689b?.['networkFeeCap']?_0x40689b[_0x4e8f89(0x1ae)]+_0x4e8f89(0x1e0):null),_0xea0650=_0xff185?_0x4e8f89(0x20d)+_0xff185:null,_0x5d7c9e=_0x40689b?_0x40689b[_0x4e8f89(0x1ca)]?_0x4e8f89(0x1aa):_0x4e8f89(0x1cc):null;let _0x1d03db=_0x40689b?_0x4e8f89(0x1d5)+(_0x40689b['support']?.[_0x4e8f89(0x129)]??_0x40689b[_0x4e8f89(0x16c)])+_0x4e8f89(0x14f):'';_0x40689b?.[_0x4e8f89(0x186)]&&_0x40689b['funding'][_0x4e8f89(0x13c)]!==_0x4e8f89(0x1bf)&&(_0x1d03db=_0x40689b['funding'][_0x4e8f89(0x165)]?_0x4e8f89(0x1c5):_0x4e8f89(0x1fa));const _0x31c5c1=0x2+_0x46af78(_0x2ab3b5[_0x4e8f89(0x19e)]??'Review\x20saved\x20payment',_0x54935c-0x4)['length']+[_0x1cfbf0,_0x17fa4a,_0x578792,_0xea0650,_0x5d7c9e]['filter'](Boolean)[_0x4e8f89(0x13e)]((_0xff2eb2,_0x4e3cae)=>_0xff2eb2+_0x46af78(_0x4e3cae,_0x54935c-0x4)[_0x4e8f89(0x1bb)],0x0)+(_0x54935c<0x46?_0x2ab3b5[_0x4e8f89(0x157)]?0x3:0x2:0x1)+0x1,_0x5ca4af=_0x40689b?[_0x4e8f89(0x13a),_0x40689b['objective'],'',..._0x40689b[_0x4e8f89(0x190)]['map'](_0x15ef38=>'-\x20'+_0x15ef38),'',..._0x40689b[_0x4e8f89(0x1ca)]?[_0x4e8f89(0x164),_0x4e8f89(0x131)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x16c)]+_0x4e8f89(0x1b8),_0x4e8f89(0x1fc)+_0x40689b[_0x4e8f89(0x1ca)][_0x4e8f89(0x1a5)],_0x4e8f89(0x199),'']:[],..._0x3d041d&&_0x2f8db1!==_0x4e8f89(0x1bf)?[_0x3d041d[_0x4e8f89(0x165)]?'Conversion\x20to\x20IMD\x20already\x20confirmed.':_0x4e8f89(0x205)+_0x2f8db1+_0x4e8f89(0x117)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x183)]??_0x3d041d[_0x4e8f89(0x14b)]??_0x3d041d[_0x4e8f89(0x16c)])+_0x4e8f89(0x111)+(_0x3d041d[_0x4e8f89(0x187)]?.['payment']??_0x3d041d[_0x4e8f89(0x16c)])+'.',..._0x2f8db1===_0x4e8f89(0x192)?[_0x4e8f89(0x11b)+(_0x3d041d[_0x4e8f89(0x187)]?.[_0x4e8f89(0x1e9)]??_0x3d041d[_0x4e8f89(0x1e9)])+_0x4e8f89(0x1a4)]:[],_0x4e8f89(0x173)+_0x3d041d[_0x4e8f89(0x15d)],_0x4e8f89(0x1c9),'']:[],_0x4e8f89(0x127),..._0x2ab3b5['extraAction']?[_0x4e8f89(0x177)+_0x2ab3b5[_0x4e8f89(0x157)][_0x4e8f89(0x132)]+_0x4e8f89(0x167)]:[],_0x4e8f89(0x1bd),..._0x2ab3b5[_0x4e8f89(0x166)]?['',_0x4e8f89(0x184),_0x4e8f89(0x161)+_0x40689b[_0x4e8f89(0x1f2)],_0x4e8f89(0x150)+_0x40689b['network'],_0x4e8f89(0x13b)+_0x40689b['asset'],_0x4e8f89(0x136)+_0x40689b[_0x4e8f89(0x148)],_0x4e8f89(0x1a1)+_0x40689b[_0x4e8f89(0x217)],'',_0x4e8f89(0x1c7),JSON[_0x4e8f89(0x1fd)](_0x40689b[_0x4e8f89(0x1c8)],null,0x2)]:[]][_0x4e8f89(0x195)]('\x0a'):_0x2ab3b5[_0x4e8f89(0x1b6)][_0x4e8f89(0x195)]('\x0a');return _0x377643(A,{'title':_0x2ab3b5[_0x4e8f89(0x19e)]??_0x4e8f89(0x213),'width':_0x54935c,'height':_0x1163b8,'ascii':_0x1a161c,'active':!0x0},_0x1cfbf0?s(_0x1cfbf0,{'color':'cyan','bold':!0x0}):null,_0x17fa4a?s(_0x17fa4a,{'color':_0x4e8f89(0x170),'bold':!0x0}):null,_0x578792?s(_0x578792,{'color':_0x4e8f89(0x170)}):null,_0xea0650?s(_0xea0650,{'color':_0x4e8f89(0x188)}):null,_0x377643(G,{'content':_0x5ca4af,'width':_0x54935c-0x4,'height':Math[_0x4e8f89(0x203)](0x0,_0x1163b8-_0x31c5c1),'offset':_0x48675f['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),_0x5d7c9e?s(_0x5d7c9e,{'color':'yellow'}):null,_0x377643(_0x1d0bf1,{'flexDirection':_0x54935c<0x46?_0x4e8f89(0x20b):_0x4e8f89(0x1b2),'gap':_0x54935c<0x46?0x0:0x3},s('[\x20'+(_0x2ab3b5[_0x4e8f89(0x16f)]??(_0x40689b?_0x4e8f89(0x181):_0x4e8f89(0x1ab)))+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x0}),_0x2ab3b5['extraAction']?s('[\x20'+_0x2ab3b5['extraAction'][_0x4e8f89(0x132)]+'\x20]',{'inverse':_0x2ab3b5[_0x4e8f89(0x12e)]===0x1,'color':'cyan'}):null,s('[\x20'+(_0x40689b?_0x1d03db:_0x2ab3b5[_0x4e8f89(0x145)]??'Confirm')+'\x20]',{'inverse':_0x2ab3b5['accepted'],'color':_0x4e8f89(0x170)})),s(_0x4e8f89(0x1bc)+(_0x40689b?_0x4e8f89(0x1dd):''),{'dimColor':!0x0,'wrap':'truncate-end'}));}function pe({state:_0x28b9fc,width:_0x18d67b,height:_0x4a4f36,ascii:_0x485b43}){const _0x29ad8c=_0x4a8be8,_0x15c3a8=_0x28b9fc[_0x29ad8c(0x193)],_0xfb11d4=Math['max'](0x1,_0x4a4f36-0x5),_0x299d0d=Math[_0x29ad8c(0x203)](0x0,Math[_0x29ad8c(0x1ba)](_0x15c3a8[_0x29ad8c(0x142)]-Math['floor'](_0xfb11d4/0x2),_0x15c3a8[_0x29ad8c(0x1b3)]['length']-_0xfb11d4));return _0x377643(A,{'title':_0x15c3a8['title'],'width':_0x18d67b,'height':_0x4a4f36,'ascii':_0x485b43,'active':!0x0},..._0x15c3a8[_0x29ad8c(0x1b3)][_0x29ad8c(0x141)](_0x299d0d,_0x299d0d+_0xfb11d4)['map']((_0x5f8f59,_0x5f199b)=>s((_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]?'>\x20':'\x20\x20')+_0x5f8f59[_0x29ad8c(0x132)],{'key':_0x5f199b,'inverse':_0x299d0d+_0x5f199b===_0x15c3a8[_0x29ad8c(0x142)]})),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s(_0x29ad8c(0x16b),{'dimColor':!0x0}));}const we='WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x0ar\x20Refresh\x20balances\x20(all\x20networks)\x0a\x0aPAYING\x0aColony\x20checks\x20every\x20network\x20and\x20picks\x20a\x20coin\x20you\x20can\x20already\x20pay\x20with.\x0aUse\x20Change\x20payment\x20in\x20the\x20review\x20to\x20pick\x20another\x20coin\x20or\x20network.\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.';function Ae({controller:_0x355e21,ascii:_0x213e54=!0x1,dimensions:_0x579fdb,terminal:_0x4bd5fb,feedback:_0x3cc182}){const _0x3208b7=_0x4a8be8,_0x1e0640=_0x15b696(_0x355e21[_0x3208b7(0x1f9)],_0x355e21[_0x3208b7(0x1d7)]),[_0x1605e6,_0x5dbe86]=_0x1fec36(0x0);_0xd6bd5d(()=>{const _0x11ce51=_0x3208b7,_0x486ece=setInterval(()=>_0x5dbe86(_0x1671ed=>(_0x1671ed+0x1)%Q[_0x11ce51(0x1bb)]),0x4e20);return()=>clearInterval(_0x486ece);},[]);const _0x4a1faa=_0x1e0640['error']??_0x1e0640[_0x3208b7(0x1cd)],_0x15ccb4=_0x3c7eca(),_0x134507=_0x579fdb??_0x15ccb4,_0x413e04=_0x134507[_0x3208b7(0x176)],_0x3e862f=Math[_0x3208b7(0x203)](0x8,_0x134507[_0x3208b7(0x134)]-0x1),_0x5340eb=_0x413e04<0x64,{exit:_0x27b90a}=_0x1c6ab1();if(_0xd6bd5d(()=>(_0x355e21[_0x3208b7(0x1e8)]=_0x4bd5fb,_0x355e21['refresh']()['then'](()=>{const _0x4a7687=_0x3208b7;_0x3cc182&&_0x355e21[_0x4a7687(0x1e5)](_0x3cc182);}),()=>_0x355e21[_0x3208b7(0x123)]()),[_0x355e21,_0x4bd5fb,_0x3cc182]),_0xd6bd5d(()=>{const _0x190409=setInterval(()=>{const _0x5e865e=_0x11f7;_0x355e21[_0x5e865e(0x215)]();},0x1388);return()=>clearInterval(_0x190409);},[_0x355e21]),_0x23dbf4((_0x2e2ddf,_0x160c0a)=>{const _0x45f222=_0x3208b7;if(_0x160c0a[_0x45f222(0x1d9)]&&_0x2e2ddf==='c'){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(_0x1e0640[_0x45f222(0x209)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x1e5)]({'privateKeyView':null});return;}if(_0x413e04<0x28||_0x134507['rows']<0x14){_0x1e0640['receive']?_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)]():_0x2e2ddf==='q'&&(_0x355e21[_0x45f222(0x123)](),_0x27b90a());return;}if(_0x1e0640['confirm']){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21['respond'](!0x1):_0x160c0a[_0x45f222(0x1f5)]||_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1c0)]?_0x355e21[_0x45f222(0x1d4)](_0x160c0a[_0x45f222(0x219)]||_0x160c0a[_0x45f222(0x1f5)]&&_0x160c0a[_0x45f222(0x159)]?-0x1:0x1):_0x160c0a[_0x45f222(0x1ed)]?_0x355e21[_0x45f222(0x1dc)]():_0x2e2ddf==='i'?_0x355e21[_0x45f222(0x1e5)]({'confirm':{..._0x1e0640['confirm'],'expanded':!_0x1e0640[_0x45f222(0x15b)]['expanded']},'scroll':0x0}):(_0x160c0a[_0x45f222(0x1f4)]||_0x160c0a[_0x45f222(0x1ad)])&&_0x355e21[_0x45f222(0x1e5)]({'scroll':Math[_0x45f222(0x203)](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:-0x5))});return;}if(_0x1e0640[_0x45f222(0x160)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x204)]():_0x160c0a[_0x45f222(0x1f5)]&&_0x355e21[_0x45f222(0x1e3)](_0x160c0a[_0x45f222(0x159)]);return;}if(_0x1e0640[_0x45f222(0x1ef)]){_0x160c0a[_0x45f222(0x1cf)]&&_0x355e21[_0x45f222(0x18d)](),_0x2e2ddf==='s'&&_0x355e21['saveReceiveQr']();return;}if(_0x1e0640[_0x45f222(0x193)]){_0x160c0a[_0x45f222(0x1cf)]?_0x355e21[_0x45f222(0x1f3)]():_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]?_0x355e21[_0x45f222(0x1e5)]({'menu':{..._0x1e0640[_0x45f222(0x193)],'selected':Math[_0x45f222(0x203)](0x0,Math[_0x45f222(0x1ba)](_0x1e0640[_0x45f222(0x193)][_0x45f222(0x1b3)][_0x45f222(0x1bb)]-0x1,_0x1e0640[_0x45f222(0x193)][_0x45f222(0x142)]+(_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1)))}}):_0x160c0a[_0x45f222(0x1ed)]&&_0x355e21['chooseMenu']();return;}if(_0x2e2ddf==='q'&&!_0x1e0640['busy']){_0x355e21[_0x45f222(0x123)](),_0x27b90a();return;}if(!_0x1e0640[_0x45f222(0x178)]){if(_0x2e2ddf==='e'&&_0x4a1faa){_0x355e21['showError']();return;}if(_0x45f222(0x1be)[_0x45f222(0x1b4)](_0x2e2ddf)&&_0x2e2ddf[_0x45f222(0x1bb)]===0x1){_0x355e21[_0x45f222(0x1eb)](_0x118e55[Number(_0x2e2ddf)-0x1]);return;}if(_0x2e2ddf==='?'){_0x355e21[_0x45f222(0x1e5)]({'help':!_0x1e0640[_0x45f222(0x10e)],'scroll':0x0});return;}if(_0x160c0a[_0x45f222(0x1cf)]){_0x355e21[_0x45f222(0x1e5)]({'focus':'list','help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x2e2ddf==='n'){_0x1e0640['view']==='wallet'?_0x355e21[_0x45f222(0x139)](!0x1):_0x355e21[_0x45f222(0x121)]();return;}if(_0x2e2ddf==='r'){_0x355e21['refresh']();return;}if(_0x160c0a['pageDown']||_0x160c0a[_0x45f222(0x1ad)]||_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x1d8)&&(_0x160c0a['downArrow']||_0x160c0a[_0x45f222(0x17b)])){_0x355e21['update']({'scroll':Math['max'](0x0,_0x1e0640[_0x45f222(0x206)]+(_0x160c0a[_0x45f222(0x1f4)]?0x5:_0x160c0a[_0x45f222(0x1ad)]?-0x5:_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1))});return;}if(_0x1e0640[_0x45f222(0x180)]==='wallet'){(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)])&&_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1),(_0x160c0a['return']||_0x160c0a['tab'])&&_0x355e21['update']({'focus':_0x1e0640[_0x45f222(0x19b)]===_0x45f222(0x174)?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0}),_0x2e2ddf==='u'&&_0x355e21[_0x45f222(0x112)](),_0x2e2ddf==='m'&&_0x355e21[_0x45f222(0x198)](),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x17d)](),_0x2e2ddf==='i'&&_0x355e21['walletImport'](),_0x2e2ddf==='d'&&_0x355e21['walletReceive'](),_0x2e2ddf==='b'&&_0x355e21[_0x45f222(0x16d)]();return;}if(_0x160c0a[_0x45f222(0x18a)]||_0x160c0a[_0x45f222(0x17b)]){_0x355e21[_0x45f222(0x1a6)](_0x160c0a[_0x45f222(0x18a)]?0x1:-0x1);return;}if(_0x160c0a[_0x45f222(0x1ed)]||_0x160c0a[_0x45f222(0x1f5)]){_0x355e21[_0x45f222(0x1e5)]({'focus':_0x1e0640[_0x45f222(0x19b)]==='list'?_0x45f222(0x1d8):_0x45f222(0x174),'scroll':0x0});return;}if(_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x1f8)){_0x2e2ddf==='/'&&_0x355e21['search'](),_0x2e2ddf==='a'&&_0x355e21[_0x45f222(0x19a)](),_0x2e2ddf==='m'&&_0x355e21['workerMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x155)](['logs']),_0x2e2ddf==='g'&&_0x355e21[_0x45f222(0x155)]([_0x45f222(0x140)]);return;}_0x2e2ddf==='/'&&_0x355e21[_0x45f222(0x214)](),_0x2e2ddf==='f'&&_0x1e0640[_0x45f222(0x180)]===_0x45f222(0x169)&&_0x355e21[_0x45f222(0x144)](),(_0x2e2ddf==='['||_0x2e2ddf===']')&&_0x355e21[_0x45f222(0x16e)](_0x2e2ddf==='['?-0x1:0x1),_0x2e2ddf==='d'&&_0x355e21[_0x45f222(0x128)](),_0x2e2ddf==='s'&&_0x355e21[_0x45f222(0x113)](),_0x2e2ddf==='c'&&_0x355e21[_0x45f222(0x15a)](),_0x2e2ddf==='o'&&_0x355e21[_0x45f222(0x1c3)](),_0x2e2ddf==='x'&&_0x355e21[_0x45f222(0x20a)](),_0x2e2ddf==='m'&&_0x355e21['taskMenu'](),_0x2e2ddf==='l'&&_0x355e21[_0x45f222(0x197)]();}}),_0x413e04<0x28||_0x134507[_0x3208b7(0x134)]<0x14)return _0x377643(_0x1d0bf1,{'width':_0x413e04,'flexDirection':_0x3208b7(0x20b)},s(_0x3208b7(0x13d),{'color':_0x3208b7(0x170)}),s(_0x3208b7(0x1fe)),s(_0x1e0640[_0x3208b7(0x1ef)]||_0x1e0640['privateKeyView']?'Esc\x20back':_0x3208b7(0x202)));if(_0x1e0640[_0x3208b7(0x209)])return _0x377643(A,{'title':_0x3208b7(0x211),'width':_0x413e04,'height':_0x3e862f,'ascii':_0x213e54,'active':!0x0},s(_0x3208b7(0x163)+_0x1e0640[_0x3208b7(0x209)][_0x3208b7(0x12f)]),s('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':'yellow'}),_0x377643(_0x1d0bf1,{'marginTop':0x1},s(_0x1e0640['privateKeyView'][_0x3208b7(0x126)])),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),s('Esc\x20hide\x20and\x20return',{'color':_0x3208b7(0x170)}));if(_0x1e0640['receive']&&!_0x1e0640['form']){const _0x3a6b96=_0x1e0640[_0x3208b7(0x1ef)],_0x66f8c1=_0x3a6b96['qr']['split']('\x0a'),_0x206a6d=!_0x3a6b96['networks']||_0x3a6b96['networks']['length']===0x1,_0x5e03bd=[..._0x206a6d?[_0x3208b7(0x194)+_0x3a6b96[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')]:_0x3a6b96[_0x3208b7(0x1db)]['map'](_0x1dd4f1=>_0x1dd4f1['chainName']+':\x20'+_0x1dd4f1[_0x3208b7(0x1c4)][_0x3208b7(0x195)](',\x20')),..._0x3a6b96[_0x3208b7(0x1f0)]??[]],_0x4035b2=_0x206a6d?_0x3208b7(0x1b5)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x158)+_0x3a6b96[_0x3208b7(0x21b)]+_0x3208b7(0x1ce):_0x3208b7(0x212),_0x4af1d6=[_0x3a6b96[_0x3208b7(0x12f)],..._0x5e03bd,_0x4035b2][_0x3208b7(0x13e)]((_0x73232d,_0x17bf75)=>_0x73232d+_0x46af78(_0x17bf75,_0x413e04)[_0x3208b7(0x1bb)],0x0),_0x37880a=_0x66f8c1[_0x3208b7(0x1bb)]+_0x4af1d6+0x2,_0x545364=_0x413e04>=_0x66f8c1[0x0][_0x3208b7(0x1bb)]&&_0x3e862f>=_0x37880a;return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':_0x3208b7(0x20b)},s(_0x206a6d?_0x3208b7(0x1b0)+_0x3a6b96['chainName']:_0x3208b7(0x152),{'bold':!0x0,'color':'cyan'}),s(_0x3a6b96[_0x3208b7(0x12f)]),..._0x5e03bd[_0x3208b7(0x162)]((_0x3f511a,_0x574977)=>s(_0x3f511a,{'key':_0x574977})),_0x545364?s(_0x3a6b96['qr'],{'color':_0x3208b7(0x1df),'backgroundColor':_0x3208b7(0x168)}):s(_0x3208b7(0x1e6)+Math[_0x3208b7(0x203)](0x28,_0x66f8c1[0x0][_0x3208b7(0x1bb)])+_0x3208b7(0x1da)+(_0x37880a+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),s(_0x4035b2,{'color':_0x3208b7(0x188)}),s(_0x4b445d(_0x1e0640[_0x3208b7(0x20c)]??_0x1e0640[_0x3208b7(0x154)]??_0x3208b7(0x182),_0x413e04),{'color':_0x1e0640['error']?_0x3208b7(0x11e):_0x3208b7(0x170)}));}const _0x1443c0=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x17f)],_0x29d85b=Math[_0x3208b7(0x203)](0x6,_0x3e862f-(_0x1443c0?0x3:0x6)),_0x2c8303=_0x1f852a(_0x1e0640)[_0x1e0640[_0x3208b7(0x142)]];let _0x4ca51d;if(_0x1e0640['form'])_0x4ca51d=_0x377643(me,{'controller':_0x355e21,'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640[_0x3208b7(0x15b)])_0x4ca51d=_0x377643(he,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['modelProgress'])_0x4ca51d=_0x377643(ue,{'event':_0x1e0640[_0x3208b7(0x17f)],'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['menu'])_0x4ca51d=_0x377643(pe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54});else{if(_0x1e0640['help'])_0x4ca51d=_0x377643(A,{'title':_0x3208b7(0x20f),'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'active':!0x0},_0x377643(G,{'content':we,'width':_0x413e04-0x4,'height':_0x29d85b-0x4,'offset':_0x1e0640[_0x3208b7(0x206)]}),s(_0x3208b7(0x218),{'dimColor':!0x0}));else{if(_0x1e0640['view']===_0x3208b7(0x17a))_0x4ca51d=_0x377643(fe,{'state':_0x1e0640,'width':_0x413e04,'height':_0x29d85b,'ascii':_0x213e54,'narrow':_0x5340eb});else{const _0x2da724=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174),_0x2336ad=!_0x5340eb||_0x1e0640[_0x3208b7(0x19b)]==='detail',_0x16cc73=_0x5340eb?_0x413e04:Math['floor'](_0x413e04*0.43),_0x3b3139=_0x2da724&&!_0x5340eb?_0x413e04-_0x16cc73-0x1:_0x413e04,_0x980287=_0x8f542f({..._0x1e0640,'selectedId':_0x2c8303?.['id']}),_0x50776e=_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x169)||_0x1e0640[_0x3208b7(0x180)]===_0x3208b7(0x1f6),_0x13cacb=_0x50776e?_0x48aa65(_0x2c8303,_0x1e0640[_0x3208b7(0x180)]):_0x2c8303?_0x2c8303[_0x3208b7(0x110)]==='network-worker'?['Read\x20only']:[_0x3208b7(0x1c1),_0x3208b7(0x1a8),_0x3208b7(0x1ec)]:[];_0x4a1faa&&_0x13cacb[_0x3208b7(0x1e2)](_0x3208b7(0x1cb));const _0x1b99ec=L(_0x13cacb,_0x3b3139-0x4),_0x39acd5=_0x1b99ec['length']?_0x1b99ec[_0x3208b7(0x1bb)]+0x1:0x0,_0x24f5c4=L([_0x3208b7(0x1d0),'PgUp/PgDn\x20scroll',..._0x50776e?['[\x20]\x20tabs']:[]],_0x3b3139-0x4);_0x4ca51d=_0x377643(_0x1d0bf1,{'height':_0x29d85b,'width':_0x413e04,'gap':0x1},_0x2da724?_0x377643(A,{'title':(_0x1e0640[_0x3208b7(0x180)]==='workers'?_0x3208b7(0x1c2):_0x1e0640[_0x3208b7(0x1a3)])+(_0x1e0640[_0x3208b7(0x1a7)]?_0x3208b7(0x201)+_0x4b445d(_0x1e0640['query'],0x16):''),'width':_0x16cc73,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x174)},_0x377643(z,{'state':_0x1e0640,'height':_0x29d85b,'width':_0x16cc73-0x4,'ascii':_0x213e54})):null,_0x2336ad?_0x377643(A,{'title':_0x4b445d(_0x2c8303?.['id']??_0x3208b7(0x116),_0x3b3139-0x7),'width':_0x3b3139,'height':_0x29d85b,'ascii':_0x213e54,'active':_0x1e0640[_0x3208b7(0x19b)]===_0x3208b7(0x1d8)},_0x50776e?s([_0x3208b7(0x15e),_0x3208b7(0x12b),_0x3208b7(0x1c6)][_0x3208b7(0x162)](_0x20b2c2=>_0x20b2c2===_0x1e0640[_0x3208b7(0x1f5)]?'['+_0x20b2c2+']':_0x20b2c2)['join']('\x20\x20'),{'color':_0x3208b7(0x170),'wrap':'truncate-end'}):null,_0x377643(G,{'content':_0x980287,'width':_0x3b3139-0x4,'height':_0x29d85b-0x3-Number(_0x50776e)-_0x39acd5-_0x24f5c4[_0x3208b7(0x1bb)],'offset':_0x1e0640['scroll']}),_0x377643(_0x1d0bf1,{'flexGrow':0x1}),..._0x24f5c4[_0x3208b7(0x162)]((_0x2c7104,_0x1e97da)=>s(_0x2c7104,{'key':_0x1e97da,'dimColor':!0x0})),_0x377643(U,{'rows':_0x1b99ec,'width':_0x3b3139-0x4,'ascii':_0x213e54})):null);}}}}}}const _0x29cf65=_0x1e0640[_0x3208b7(0x160)]||_0x1e0640[_0x3208b7(0x15b)]||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?_0x3208b7(0x1de):_0x3208b7(0x1b1),_0x4246ba=_0x413e04<0x4b?_0x118e55['map']((_0x475edf,_0x4d3d9e)=>'['+(_0x4d3d9e+0x1)+']'+[_0x3208b7(0x133),_0x3208b7(0x210),_0x3208b7(0x125),'Wallets'][_0x4d3d9e])[_0x3208b7(0x195)]('\x20'):_0x118e55[_0x3208b7(0x162)]((_0x482528,_0x39edb2)=>(_0x482528===_0x1e0640[_0x3208b7(0x180)]?'>\x20':'\x20\x20')+'['+(_0x39edb2+0x1)+']\x20'+ce[_0x482528])['join']('\x20\x20');return _0x377643(_0x1d0bf1,{'width':_0x413e04,'height':_0x3e862f,'flexDirection':'column'},_0x377643(_0x1d0bf1,{'justifyContent':'space-between','height':_0x1443c0?0x1:0x2},s(_0x3208b7(0x216),{'color':_0x3208b7(0x170),'bold':!0x0}),_0x413e04>=0x4b?s(_0x1e0640[_0x3208b7(0x12f)]?_0x4b445d(_0x1e0640['address'],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x1443c0?null:s(_0x4246ba,{'color':_0x3208b7(0x170),'wrap':_0x3208b7(0x119)}),_0x1443c0?null:_0x1e0640[_0x3208b7(0x178)]||_0x1e0640[_0x3208b7(0x1e4)]?_0x377643(B,{'label':_0x1e0640[_0x3208b7(0x178)]??_0x3208b7(0x18b)}):s(_0x1e0640['note'],{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}),_0x4ca51d,s(_0x4b445d(_0x4a1faa??_0x1e0640[_0x3208b7(0x154)]??(_0x1443c0||_0x1e0640[_0x3208b7(0x193)]||_0x1e0640[_0x3208b7(0x178)]?'':Q[_0x1605e6]),_0x413e04),{'color':_0x4a1faa?_0x3208b7(0x11e):_0x1e0640[_0x3208b7(0x154)]?_0x3208b7(0x137):void 0x0,'dimColor':!_0x4a1faa&&!_0x1e0640[_0x3208b7(0x154)]}),s(_0x29cf65,{'dimColor':!0x0,'wrap':_0x3208b7(0x119)}));}function _0x11f7(_0x30f202,_0x203dda){_0x30f202=_0x30f202-0x10d;const _0x11f7e6=_0x203d();let _0x4a6eb3=_0x11f7e6[_0x30f202];return _0x4a6eb3;}export{Ae as DashboardApp};function _0x203d(){const _0x39ce0d=['installed','help','End\x20of\x20history','kind',',\x20at\x20most\x20','useSelectedWallet','download','challenged','payment_failed','DETAILS','\x20to\x20IMD\x20for\x20you:\x20≈\x20','completed','truncate-end','Enter\x20','Total\x20ETH\x20at\x20most:\x20','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','\x20items\x20·\x20','red','startsWith','values','create','gray','close','WALLET\x20MANAGEMENT','Work','privateKey','Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.','files','total','subtitle','Activity','\x20entries\x20·\x20Mine\x20+\x20Network','\x20tasks','selection','address','\x20(converted)','Optional\x20support:\x20','label','Mine','rows','cancelled','Pay\x20to:\x20','green','submitForm','walletSetup','REQUEST','Asset:\x20','coin','COLONY','reduce','My\x20tasks','doctor','slice','selected','managed-worker','cycleFilter','acceptLabel','payWith','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','payTo','blocked','Payment:\x20at\x20most\x20','estimatedAmount','\x20on\x20','Pay\x20with\x20','\x20wallets','\x20IMD\x20&\x20publish','Network:\x20','expired','Receive\x20funds','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','notice','workerCommand','Explore','extraAction','\x20only.\x20Choose\x20','shift','continueTask','confirm','fields','minimumImd','Overview','[n]\x20New\x20task','form','Quote\x20expires:\x20','map','Wallet:\x20','Help\x20us\x20make\x20Colony\x20better.','converted','expanded','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','white','tasks','Preparing\x20local\x20LLM','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','amount','walletBackup','changeTab','cancelLabel','cyan','Mine\x20·\x20','en-US','IMD\x20for\x20this\x20task:\x20','list','Deployed\x20·\x20status\x20on\x20selection','columns','Choose\x20','busy','gas','wallet','upArrow','********','walletManagement','next','modelProgress','view','Cancel\x20/\x20edit','s\x20save\x20QR\x20·\x20Esc\x20back','estimate','PAYMENT\x20DETAILS','Fee\x20','funding','display','yellow','Not\x20deployed','downArrow','Refreshing\x20tasks...','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','closeReceive','Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.','Enter/Tab\x20details','deliverables','cursor','ETH','menu','Accepted:\x20','join','floor','more','walletMenu','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','addTarget','focus','No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.','submit','title','repeat','[r]\x20Refresh','Order:\x20','state','filter','\x20(payment\x20+\x20gas)','recipient','move','query','[l]\x20Logs','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','Cancel','Loading\x20history...','pageUp','networkFeeCap','hint','Receive\x20on\x20','[?]\x20Help\x20\x20[q]\x20Quit','row','items','includes','Send\x20on\x20','lines','up/down','\x20IMD','setField','min','length','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.','1234','IMD','rightArrow','[m]\x20Actions','WORKERS','resumeOrder','coins','Continue\x20&\x20publish','Files','SERVER\x20PREPARED\x20INPUT','prepared','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','support','[e]\x20Error\x20details','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','refreshError','\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.','escape','Esc/Tab\x20list','\x20results\x20loaded','toLocaleString','refused','moveConfirmation','Pay\x20','WALLETS','getSnapshot','detail','ctrl','\x20columns\x20and\x20','networks','submitConfirmation','\x20·\x20i\x20details','[Ctrl+C]\x20Exit','black','\x20ETH','payment','push','nextField','refreshing','update','Resize\x20to\x20at\x20least\x20','placeholder','terminal','maximumDebit','secret','navigate','[g]\x20Diagnostics','return','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','receive','targets','hidden','expiresAt','dismissMenu','pageDown','tab','explore','[>]','workers','subscribe','Convert\x20&\x20publish','[/]\x20Search','Support\x20recipient:\x20','stringify','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','Item\x20','WALLET\x20DETAILS\x20·\x20selected\x20wallet','\x20/\x20','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','max','dismissForm','Colony\x20converts\x20','scroll','name','field','privateKeyView','cancelRequest','column','error','Gas\x20(network\x20fee):\x20at\x20most\x20','down\x20loads\x20more','Keyboard\x20shortcuts','Browse','Private\x20key','Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.','Review\x20saved\x20payment','search','autoRefresh','COLONY\x20\x20get\x20things\x20done.','orderId','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','leftArrow','[f]\x20Filter','chainName'];_0x203d=function(){return _0x39ce0d;};return _0x203d();}
1
+ const _0x1394b3=_0x242c;import{createElement as _0x58d9dd,useEffect as _0x3db06e,useState as _0x2f2dac,useSyncExternalStore as _0x64a80b}from'react';import{Box as _0x19aeea,Text as _0x39b46f,useApp as _0x33449e,useInput as _0x503b1c,useWindowSize as _0x1977a6}from'ink';import _0x117be9 from'ink-text-input';import _0x1cb0c9 from'string-width';import{visibleItems as _0x56bbe3,VIEWS as _0x4d1b58}from'./controller.mjs';import{clean as _0x253cd7,detailText as _0x228f58,lines as _0xa87f81,short as _0x3e3169,statusLabel as _0x21ee5a,taskActions as _0x52a8bb}from'./presentation.mjs';import{modelProgressLines as _0x19a439}from'../planner/progress.mjs';const ce={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},de={'tasks':'My\x20tasks','explore':_0x1394b3(0x1c7),'workers':_0x1394b3(0x24f),'wallet':_0x1394b3(0x20c)},B=[_0x1394b3(0x227),'Tip:\x20Colony\x20handles\x20task\x20settings.',_0x1394b3(0x248),_0x1394b3(0x28d),_0x1394b3(0x1de)],ue=_0x497b5a=>_0x497b5a===_0x1394b3(0x29e)?_0x1394b3(0x2a8):_0x497b5a==='completed'?_0x1394b3(0x1f9):[_0x1394b3(0x1af),'blocked',_0x1394b3(0x218),'payment_failed',_0x1394b3(0x237)]['includes'](_0x497b5a)?_0x1394b3(0x1d2):'cyan',s=(_0x43a08e,_0x4d42b5={})=>_0x58d9dd(_0x39b46f,_0x4d42b5,_0x253cd7(_0x43a08e));function z({label:_0x3490b4}){const _0x158e6f=_0x1394b3,[_0x54e1a5,_0x4def7d]=_0x2f2dac(0x0);return _0x3db06e(()=>{const _0x4d7f30=setInterval(()=>_0x4def7d(_0xfc010e=>(_0xfc010e+0x1)%0x4),0x96);return()=>clearInterval(_0x4d7f30);},[]),s(['|','/','-','\x5c'][_0x54e1a5]+'\x20'+_0x3490b4,{'color':_0x158e6f(0x1ba),'wrap':_0x158e6f(0x2ac)});}function C({title:_0x4ed05d,width:_0xd63f7a,height:_0x13f599,ascii:_0x162e98,active:_0x4cce7a,children:_0x4198a9}){const _0xcc6f6c=_0x1394b3;return _0x58d9dd(_0x19aeea,{'width':_0xd63f7a,'height':_0x13f599,'flexDirection':'column','borderStyle':_0x162e98?ce:_0xcc6f6c(0x1c8),'borderColor':_0x4cce7a?_0xcc6f6c(0x1ba):_0xcc6f6c(0x2a8),'paddingX':0x1,'flexShrink':0x0,'overflow':_0xcc6f6c(0x2a7)},s(_0x4ed05d,{'color':_0x4cce7a?_0xcc6f6c(0x1ba):void 0x0,'dimColor':!_0x4cce7a}),_0x4198a9);}function L(_0x450ab4,_0x29b2ab){const _0x360960=_0x1394b3,_0x1306c1=[];for(const _0x59445a of _0x450ab4){const _0x8768d7=_0x1306c1[_0x360960(0x27b)]-0x1;_0x8768d7>=0x0&&_0x1cb0c9(_0x1306c1[_0x8768d7]+'\x20\x20'+_0x59445a)<=_0x29b2ab?_0x1306c1[_0x8768d7]+='\x20\x20'+_0x59445a:_0x1306c1[_0x360960(0x1bd)](_0x59445a);}return _0x1306c1;}function K({rows:_0x462263,width:_0x492062,ascii:_0x436e6d}){const _0x36c553=_0x1394b3;return _0x462263['length']?_0x58d9dd(_0x19aeea,{'flexDirection':_0x36c553(0x1e2),'flexShrink':0x0},s((_0x436e6d?'-':'\u2500')['repeat'](_0x492062),{'dimColor':!0x0}),..._0x462263[_0x36c553(0x1e3)]((_0x506a4d,_0x3b51a9)=>s(_0x506a4d,{'key':_0x3b51a9,'color':_0x36c553(0x1ba),'bold':!0x0}))):null;}function fe({event:_0x470701,width:_0x56b9c0,height:_0x5c8be8,ascii:_0x1a3d93}){const _0x39d9c0=_0x1394b3,_0x411a95=_0x19a439(_0x470701,{'width':_0x56b9c0-0x4,'compact':!0x0})[_0x39d9c0(0x253)](0x2);return _0x58d9dd(C,{'title':_0x39d9c0(0x276),'width':_0x56b9c0,'height':_0x5c8be8,'ascii':_0x1a3d93,'active':!0x0},_0x58d9dd(_0x19aeea,{'flexDirection':_0x39d9c0(0x1e2)},..._0x411a95[_0x39d9c0(0x1e3)]((_0x49a1ca,_0x3d8b10)=>_0x49a1ca[_0x39d9c0(0x1d7)](_0x39d9c0(0x216))?_0x58d9dd(z,{'key':_0x3d8b10,'label':_0x49a1ca[_0x39d9c0(0x253)](0x4)}):s(_0x49a1ca||'\x20',{'key':_0x3d8b10,'color':_0x49a1ca[_0x39d9c0(0x1d7)]('[+]')?_0x39d9c0(0x1f9):'cyan'}))),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}));}function _0x242c(_0xce7c0c,_0x56092c){_0xce7c0c=_0xce7c0c-0x1af;const _0x242c61=_0x5609();let _0x65f614=_0x242c61[_0xce7c0c];return _0x65f614;}function O({content:_0x4efb17,width:_0x4ef911,height:_0x874045,offset:_0x37280c}){const _0x4dee98=_0x1394b3,_0x4ba11b=_0xa87f81(_0x4efb17,_0x4ef911),_0x384c79=Math[_0x4dee98(0x223)](_0x37280c,Math[_0x4dee98(0x1dd)](0x0,_0x4ba11b['length']-_0x874045));return _0x58d9dd(_0x19aeea,{'flexDirection':_0x4dee98(0x1e2),'height':_0x874045,'overflow':_0x4dee98(0x2a7)},..._0x4ba11b[_0x4dee98(0x253)](_0x384c79,_0x384c79+_0x874045)['map']((_0x211a41,_0x4be9bb)=>s(_0x211a41||'\x20',{'key':_0x4be9bb})));}function Y({state:_0x1d2ac0,height:_0x3cf7e8,width:_0x5e07e1,ascii:_0x39f1e}){const _0x4fb8fc=_0x1394b3,_0x2e3cf3=_0x56bbe3(_0x1d2ac0),_0x56041f=_0x1d2ac0[_0x4fb8fc(0x288)]==='explore',_0x20a2e2=_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x1ed)?[_0x4fb8fc(0x25b),_0x4fb8fc(0x26d),'[f]\x20Filter',_0x4fb8fc(0x294)]:_0x56041f?[_0x4fb8fc(0x25b),_0x4fb8fc(0x26d),_0x4fb8fc(0x294)]:_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x264)?[_0x4fb8fc(0x221),_0x4fb8fc(0x26d),'[r]\x20Refresh']:[];_0x1d2ac0[_0x4fb8fc(0x288)]!==_0x4fb8fc(0x1bc)&&(_0x1d2ac0['error']||_0x1d2ac0[_0x4fb8fc(0x27a)])&&_0x20a2e2[_0x4fb8fc(0x1bd)](_0x4fb8fc(0x285));const _0x5510a4=L(_0x20a2e2,_0x5e07e1),_0x7eed27=_0x56041f?_0x1d2ac0[_0x4fb8fc(0x29c)]:_0x2e3cf3[_0x4fb8fc(0x27b)],_0x23f712=_0x56041f?_0x7eed27===null?_0x2e3cf3[_0x4fb8fc(0x27b)]+_0x4fb8fc(0x262):_0x7eed27[_0x4fb8fc(0x287)](_0x4fb8fc(0x252))+(_0x7eed27===0x1?_0x4fb8fc(0x297):_0x4fb8fc(0x246)):_0x2e3cf3[_0x4fb8fc(0x27b)]+(_0x1d2ac0['view']===_0x4fb8fc(0x1bc)?_0x4fb8fc(0x1e5):_0x1d2ac0[_0x4fb8fc(0x288)]===_0x4fb8fc(0x264)?_0x4fb8fc(0x26b):_0x4fb8fc(0x222)+_0x1d2ac0[_0x4fb8fc(0x24d)]),_0x2f3edb=_0x7eed27===null?_0x4fb8fc(0x1cd)+(_0x1d2ac0['selected']+0x1):_0x1d2ac0['selected']+0x1+'/'+_0x7eed27['toLocaleString'](_0x4fb8fc(0x252)),_0x4d5faf=_0x56041f&&_0x1d2ac0[_0x4fb8fc(0x260)]===_0x2e3cf3[_0x4fb8fc(0x27b)]-0x1;let _0x47d58e='up/down';_0x4d5faf&&(_0x1d2ac0['busy']?_0x47d58e=_0x4fb8fc(0x219):_0x1d2ac0['error']&&_0x1d2ac0[_0x4fb8fc(0x265)]?_0x47d58e='l\x20retry\x20history':_0x47d58e=_0x1d2ac0[_0x4fb8fc(0x265)]?_0x4fb8fc(0x225):'End\x20of\x20history');const _0x3cbea8=_0x2e3cf3[_0x4fb8fc(0x27b)]?L([_0x2f3edb,_0x47d58e,_0x4fb8fc(0x1c9)],_0x5e07e1):[],_0x3e4303=_0x5510a4[_0x4fb8fc(0x27b)]?_0x5510a4[_0x4fb8fc(0x27b)]+0x1:0x0,_0x4372ff=Math[_0x4fb8fc(0x1dd)](0x1,Math[_0x4fb8fc(0x295)]((_0x3cf7e8-0x4-_0x3cbea8['length']-_0x3e4303)/0x3)),_0xdede0c=Math[_0x4fb8fc(0x1dd)](0x0,Math[_0x4fb8fc(0x223)](_0x1d2ac0['selected']-Math['floor'](_0x4372ff/0x2),_0x2e3cf3[_0x4fb8fc(0x27b)]-_0x4372ff));return _0x58d9dd(_0x19aeea,{'flexDirection':_0x4fb8fc(0x1e2),'flexGrow':0x1},s(_0x23f712,{'dimColor':!0x0}),..._0x2e3cf3[_0x4fb8fc(0x253)](_0xdede0c,_0xdede0c+_0x4372ff)['map']((_0x54f0bc,_0x3987a0)=>_0x58d9dd(_0x19aeea,{'key':_0x54f0bc['id'],'flexDirection':_0x4fb8fc(0x1e2)},s((_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0?'>\x20':'\x20\x20')+_0x3e3169((_0x54f0bc[_0x4fb8fc(0x1e7)]==='managed-worker'?'Mine\x20\xB7\x20':'')+_0x54f0bc[_0x4fb8fc(0x1db)],_0x5e07e1-0x2),{'inverse':_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0,'bold':_0x1d2ac0[_0x4fb8fc(0x260)]===_0xdede0c+_0x3987a0}),s('\x20\x20'+_0x3e3169(_0x54f0bc['subtitle']??_0x21ee5a(_0x54f0bc['state'])??(_0x54f0bc[_0x4fb8fc(0x257)]?_0x4fb8fc(0x202):'Not\x20deployed'),_0x5e07e1-0x2),{'color':ue(_0x54f0bc['state'])}),s((_0x39f1e?'-':'\u2500')[_0x4fb8fc(0x1b5)](_0x5e07e1),{'dimColor':!0x0}))),_0x2e3cf3[_0x4fb8fc(0x27b)]===0x0?s(_0x1d2ac0[_0x4fb8fc(0x278)]?_0x4fb8fc(0x2a0):_0x1d2ac0[_0x4fb8fc(0x207)]?'Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.':_0x1d2ac0[_0x4fb8fc(0x288)]==='wallet'?'No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.':_0x1d2ac0['view']==='tasks'?_0x4fb8fc(0x24a):_0x4fb8fc(0x2ab),{'dimColor':!0x0}):null,_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x3cbea8[_0x4fb8fc(0x1e3)]((_0x1ae2fb,_0x29188b)=>s(_0x1ae2fb,{'key':_0x29188b,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x5510a4,'width':_0x5e07e1,'ascii':_0x39f1e}));}function me({state:_0xa3cd49,width:_0x55a21d,height:_0x882328,ascii:_0x9c7810,narrow:_0x5a01f2}){const _0x4f89db=_0x1394b3,_0x223500=_0x5a01f2?_0x55a21d:Math[_0x4f89db(0x295)](_0x55a21d*0.43),_0x2f1e08=_0x5a01f2?_0x55a21d:_0x55a21d-_0x223500-0x1,_0x5b99b7=0x5,_0x2c1b1c=_0x882328-_0x5b99b7,_0x49a213=_0xa3cd49[_0x4f89db(0x23e)]?.[_0x4f89db(0x2aa)]?[_0x4f89db(0x1d6),_0x4f89db(0x294)]:[_0x4f89db(0x294)];(_0xa3cd49[_0x4f89db(0x207)]||_0xa3cd49[_0x4f89db(0x27a)])&&_0x49a213[_0x4f89db(0x1bd)](_0x4f89db(0x285));const _0x26011e=L(_0x49a213,_0x2f1e08-0x4),_0x2a1978=L([_0x4f89db(0x1f1),_0x4f89db(0x22a)],_0x2f1e08-0x4),_0x24d8ba=_0x58d9dd(C,{'title':_0x4f89db(0x24c),'width':_0x223500,'height':_0x5a01f2?_0x2c1b1c:_0x882328,'ascii':_0x9c7810,'active':_0xa3cd49[_0x4f89db(0x29d)]==='list'},_0x58d9dd(Y,{'state':_0xa3cd49,'height':_0x5a01f2?_0x2c1b1c:_0x882328,'width':_0x223500-0x4,'ascii':_0x9c7810})),_0x557a59=_0x58d9dd(C,{'title':_0x4f89db(0x261),'width':_0x2f1e08,'height':_0x2c1b1c,'ascii':_0x9c7810,'active':_0xa3cd49[_0x4f89db(0x29d)]===_0x4f89db(0x23e)},_0x58d9dd(O,{'content':_0x228f58(_0xa3cd49),'width':_0x2f1e08-0x4,'height':_0x2c1b1c-0x4-_0x2a1978['length']-_0x26011e[_0x4f89db(0x27b)],'offset':_0xa3cd49['scroll']}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x2a1978[_0x4f89db(0x1e3)]((_0x3ee167,_0x28fdc7)=>s(_0x3ee167,{'key':_0x28fdc7,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x26011e,'width':_0x2f1e08-0x4,'ascii':_0x9c7810})),_0x43ff14=_0x58d9dd(C,{'title':_0x4f89db(0x1fb),'width':_0x2f1e08,'height':_0x5b99b7,'ascii':_0x9c7810,'active':!0x1},s(_0x4f89db(0x1c2)),s(_0x4f89db(0x1f2)));return _0x5a01f2?_0x58d9dd(_0x19aeea,{'flexDirection':_0x4f89db(0x1e2),'width':_0x55a21d,'height':_0x882328},_0xa3cd49[_0x4f89db(0x29d)]==='list'?_0x24d8ba:_0x557a59,_0x43ff14):_0x58d9dd(_0x19aeea,{'width':_0x55a21d,'height':_0x882328,'gap':0x1},_0x24d8ba,_0x58d9dd(_0x19aeea,{'width':_0x2f1e08,'flexDirection':_0x4f89db(0x1e2)},_0x557a59,_0x43ff14));}function he({controller:_0x353435,state:_0x414e3e,width:_0x2aaf86,height:_0x4c7f4f,ascii:_0x4f79ed}){const _0x4a0439=_0x1394b3,_0x2b3e58=_0x414e3e[_0x4a0439(0x2a3)],_0x3dc02b=_0x2b3e58['fields'][_0x2b3e58[_0x4a0439(0x242)]],_0x3951df=_0x2b3e58[_0x4a0439(0x1cc)]['slice'](0x0,_0x2b3e58[_0x4a0439(0x242)])[_0x4a0439(0x1e3)](_0x1f85b2=>_0x1f85b2[_0x4a0439(0x20e)]+':\x20'+(_0x1f85b2[_0x4a0439(0x1e1)]?'********':_0x2b3e58[_0x4a0439(0x235)][_0x1f85b2[_0x4a0439(0x2a5)]]));return _0x58d9dd(C,{'title':_0x2b3e58['title'],'width':_0x2aaf86,'height':_0x4c7f4f,'ascii':_0x4f79ed,'active':!0x0},_0x58d9dd(_0x19aeea,{'marginTop':0x1,'flexDirection':_0x4a0439(0x1e2)},..._0x3951df[_0x4a0439(0x1e3)]((_0x3d2fcd,_0x4f047c)=>s(_0x3e3169(_0x3d2fcd,_0x2aaf86-0x6),{'key':_0x4f047c,'dimColor':!0x0})),s(_0x3dc02b['label'],{'bold':!0x0}),_0x58d9dd(_0x19aeea,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math[_0x4a0439(0x1dd)](0x2,_0x4c7f4f-0x9),'overflow':_0x4a0439(0x2a7)},s('>\x20',{'color':'cyan'}),_0x58d9dd(_0x117be9,{'key':_0x3dc02b[_0x4a0439(0x2a5)],'value':_0x2b3e58['values'][_0x3dc02b[_0x4a0439(0x2a5)]],'placeholder':_0x3dc02b[_0x4a0439(0x245)]??'','mask':_0x3dc02b[_0x4a0439(0x1e1)]?'*':void 0x0,'onChange':_0xc9a16c=>_0x353435[_0x4a0439(0x1dc)](_0xc9a16c),'onSubmit':()=>_0x2b3e58['field']===_0x2b3e58[_0x4a0439(0x1cc)][_0x4a0439(0x27b)]-0x1?void _0x353435[_0x4a0439(0x299)]():_0x353435[_0x4a0439(0x2af)]()})),s(_0x2b3e58[_0x4a0439(0x207)]??'',{'color':'red'}),_0x2b3e58[_0x4a0439(0x250)]?s(_0x2b3e58['hint'],{'dimColor':!0x0}):null),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x4a0439(0x273)+(_0x2b3e58[_0x4a0439(0x242)]===_0x2b3e58[_0x4a0439(0x1cc)][_0x4a0439(0x27b)]-0x1?_0x2b3e58[_0x4a0439(0x28b)]:_0x4a0439(0x244))+'\x20\xB7\x20Tab\x20switch\x20field\x20\xB7\x20Esc\x20cancel',{'color':'cyan','wrap':_0x4a0439(0x2ac)}));}function pe({state:_0x35f396,width:_0x5a2c93,height:_0x401687,ascii:_0x301675}){const _0x166aaf=_0x1394b3,_0x22ae9d=_0x35f396[_0x166aaf(0x270)],_0x2af54f=_0x22ae9d[_0x166aaf(0x229)],_0x4925ea=_0x2af54f?.['funding'],_0xea672d=_0x4925ea?.['coin']??_0x2af54f?.['payWith']??_0x166aaf(0x289),_0x3fc8ad=_0x2af54f?_0x2af54f[_0x166aaf(0x1ea)]?_0x166aaf(0x2ae)+_0x2af54f[_0x166aaf(0x1ea)]['total']+_0x166aaf(0x290)+_0x2af54f[_0x166aaf(0x277)]+_0x166aaf(0x22b)+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x277)]+')':_0x166aaf(0x1ca)+_0x2af54f[_0x166aaf(0x277)]+'\x20IMD':null,_0x5293c0=_0x2af54f?_0x166aaf(0x1b9)+_0xea672d+_0x166aaf(0x1b7)+_0x2af54f['chainName']:null,_0x4437fe=_0x4925ea&&_0xea672d!==_0x166aaf(0x289)?_0x166aaf(0x21c)+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x229)]??_0x4925ea['amount'])+(_0x4925ea['converted']?_0x166aaf(0x205):''):null,_0x540e54=_0x4925ea?.['display']?.[_0x166aaf(0x217)]??(_0x2af54f?.[_0x166aaf(0x249)]?_0x2af54f[_0x166aaf(0x249)]+'\x20ETH':null),_0x23bd8d=_0x540e54?_0x166aaf(0x22e)+_0x540e54:null,_0x508a0d=_0x2af54f?_0x2af54f[_0x166aaf(0x1ea)]?_0x166aaf(0x20f):'Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.':null;let _0x2bf1c9=_0x2af54f?_0x166aaf(0x1b0)+(_0x2af54f[_0x166aaf(0x1ea)]?.[_0x166aaf(0x29c)]??_0x2af54f['amount'])+_0x166aaf(0x1d0):'';_0x2af54f?.[_0x166aaf(0x1d9)]&&_0x2af54f[_0x166aaf(0x1d9)][_0x166aaf(0x1f4)]!=='IMD'&&(_0x2bf1c9=_0x2af54f['funding'][_0x166aaf(0x1b3)]?_0x166aaf(0x1d8):_0x166aaf(0x25d));const _0x4e00e0=0x2+_0xa87f81(_0x22ae9d['title']??_0x166aaf(0x2a4),_0x5a2c93-0x4)[_0x166aaf(0x27b)]+[_0x3fc8ad,_0x5293c0,_0x4437fe,_0x23bd8d,_0x508a0d][_0x166aaf(0x24d)](Boolean)[_0x166aaf(0x292)]((_0x2efb0d,_0x2b20fd)=>_0x2efb0d+_0xa87f81(_0x2b20fd,_0x5a2c93-0x4)[_0x166aaf(0x27b)],0x0)+(_0x5a2c93<0x46?_0x22ae9d[_0x166aaf(0x236)]?0x3:0x2:0x1)+0x1,_0x2f94d9=_0x2af54f?['REQUEST',_0x2af54f[_0x166aaf(0x1d3)],'',..._0x2af54f[_0x166aaf(0x20a)][_0x166aaf(0x1e3)](_0x30b637=>'-\x20'+_0x30b637),'',..._0x2af54f['support']?[_0x166aaf(0x231),_0x166aaf(0x25a)+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x277)]+_0x166aaf(0x2a2),'Support\x20recipient:\x20'+_0x2af54f[_0x166aaf(0x1ea)][_0x166aaf(0x211)],_0x166aaf(0x1e0),'']:[],..._0x4925ea&&_0xea672d!==_0x166aaf(0x289)?[_0x4925ea[_0x166aaf(0x1b3)]?_0x166aaf(0x20b):_0x166aaf(0x1ec)+_0xea672d+'\x20to\x20IMD\x20for\x20you:\x20\u2248\x20'+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x1f6)]??_0x4925ea[_0x166aaf(0x214)]??_0x4925ea['amount'])+_0x166aaf(0x25f)+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x229)]??_0x4925ea[_0x166aaf(0x277)])+'.',..._0xea672d==='ETH'?['Total\x20ETH\x20at\x20most:\x20'+(_0x4925ea[_0x166aaf(0x226)]?.[_0x166aaf(0x2a1)]??_0x4925ea['maximumDebit'])+'\x20(payment\x20+\x20gas)']:[],_0x166aaf(0x271)+_0x4925ea['minimumImd'],_0x166aaf(0x1d4),'']:[],_0x166aaf(0x266),..._0x22ae9d[_0x166aaf(0x236)]?[_0x166aaf(0x259)+_0x22ae9d['extraAction']['label']+_0x166aaf(0x20d)]:[],_0x166aaf(0x238),..._0x22ae9d[_0x166aaf(0x251)]?['',_0x166aaf(0x1e9),_0x166aaf(0x1e6)+_0x2af54f[_0x166aaf(0x213)],'Network:\x20'+_0x2af54f[_0x166aaf(0x281)],_0x166aaf(0x25c)+_0x2af54f[_0x166aaf(0x1fc)],'Pay\x20to:\x20'+_0x2af54f[_0x166aaf(0x1b1)],_0x166aaf(0x22f)+_0x2af54f['orderId'],'',_0x166aaf(0x27e),JSON[_0x166aaf(0x1e4)](_0x2af54f[_0x166aaf(0x23a)],null,0x2)]:[]]['join']('\x0a'):_0x22ae9d[_0x166aaf(0x1fd)][_0x166aaf(0x201)]('\x0a');return _0x58d9dd(C,{'title':_0x22ae9d[_0x166aaf(0x1db)]??_0x166aaf(0x2a4),'width':_0x5a2c93,'height':_0x401687,'ascii':_0x301675,'active':!0x0},_0x3fc8ad?s(_0x3fc8ad,{'color':'cyan','bold':!0x0}):null,_0x5293c0?s(_0x5293c0,{'color':_0x166aaf(0x1ba),'bold':!0x0}):null,_0x4437fe?s(_0x4437fe,{'color':_0x166aaf(0x1ba)}):null,_0x23bd8d?s(_0x23bd8d,{'color':_0x166aaf(0x1d2)}):null,_0x58d9dd(O,{'content':_0x2f94d9,'width':_0x5a2c93-0x4,'height':Math[_0x166aaf(0x1dd)](0x0,_0x401687-_0x4e00e0),'offset':_0x35f396[_0x166aaf(0x268)]}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),_0x508a0d?s(_0x508a0d,{'color':'yellow'}):null,_0x58d9dd(_0x19aeea,{'flexDirection':_0x5a2c93<0x46?_0x166aaf(0x1e2):_0x166aaf(0x286),'gap':_0x5a2c93<0x46?0x0:0x3},s('[\x20'+(_0x22ae9d[_0x166aaf(0x2a9)]??(_0x2af54f?_0x166aaf(0x28e):_0x166aaf(0x291)))+'\x20]',{'inverse':_0x22ae9d['selection']===0x0}),_0x22ae9d[_0x166aaf(0x236)]?s('[\x20'+_0x22ae9d['extraAction']['label']+'\x20]',{'inverse':_0x22ae9d[_0x166aaf(0x1c5)]===0x1,'color':'cyan'}):null,s('[\x20'+(_0x2af54f?_0x2bf1c9:_0x22ae9d[_0x166aaf(0x27f)]??_0x166aaf(0x280))+'\x20]',{'inverse':_0x22ae9d[_0x166aaf(0x2b0)],'color':_0x166aaf(0x1ba)})),s(_0x166aaf(0x26f)+(_0x2af54f?_0x166aaf(0x24b):''),{'dimColor':!0x0,'wrap':_0x166aaf(0x2ac)}));}function _0x5609(){const _0x32155c=['challenged','Pay\x20','payTo','more','converted','modelProgress','repeat','return','\x20on\x20','tab','Pay\x20with\x20','cyan','downArrow','wallet','push','COLONY\x20\x20get\x20things\x20done.','workerMenu','[l]\x20Logs','white','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','move','download','selection','refreshing','Explore','single','Enter/Tab\x20details','Fee\x20','pageUp','fields','Item\x20','upArrow','Browse','\x20IMD\x20&\x20publish','offerFirstWallet','yellow','objective','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','WORKERS','[m]\x20Actions','startsWith','Continue\x20&\x20publish','funding','receive','title','setField','max','Tip:\x20Resume\x20unpaid\x20tasks\x20in\x20My\x20tasks.','help','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','secret','column','map','stringify','\x20wallets','Quote\x20expires:\x20','kind','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','PAYMENT\x20DETAILS','support','changeTab','Colony\x20converts\x20','tasks','cycleFilter','Wallet:\x20','close','Esc/Tab\x20list','[g]\x20Manage\x20wallets\x20\x20[d]\x20Receive\x20funds','leftArrow','coin','update','estimate','COLONY','chooseMenu','green','DETAILS','WALLET\x20MANAGEMENT','asset','lines','red','split','list','join','Deployed\x20·\x20status\x20on\x20selection','[g]\x20Diagnostics','search','\x20(converted)','test','error','black','note','deliverables','Conversion\x20to\x20IMD\x20already\x20confirmed.','Wallets','\x20to\x20pay\x20with\x20another\x20coin\x20or\x20network.','label','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','escape','recipient','privateKeyView','expiresAt','estimatedAmount','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','[>]','gas','refused','Loading\x20history...','Receive\x20funds','Resize\x20to\x20at\x20least\x20','Payment:\x20at\x20most\x20','shift','autoRefresh','workerCommand','[\x20]\x20tabs','[a]\x20Add\x20target','\x20items\x20·\x20','min','Private\x20key','down\x20loads\x20more','display','Tip:\x20Describe\x20a\x20task\x20in\x20plain\x20English.','PgUp/PgDn\x20scroll\x20·\x20Esc\x20back','payment','PgUp/PgDn\x20scroll','\x20+\x20support\x20','walletSetup','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','Gas\x20(network\x20fee):\x20at\x20most\x20','Order:\x20','pageDown','Help\x20us\x20make\x20Colony\x20better.','s\x20save\x20QR\x20·\x20Esc\x20back','includes','network-worker','values','extraAction','expired','Prices\x20and\x20fees\x20are\x20checked\x20again\x20when\x20you\x20continue.','1234','prepared','Esc\x20hide\x20and\x20return','Activity','chainName','detail','ctrl','navigate','privateKey','field','respond','next','placeholder','\x20tasks','then','Tip:\x20Your\x20local\x20LLM\x20has\x20no\x20API\x20fees.','networkFeeCap','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','\x20·\x20i\x20details','WALLETS','filter','[Ctrl+C]\x20Exit','Workers','hint','expanded','en-US','slice','useSelectedWallet','logs','menu','installed','walletReceive','Choose\x20','Optional\x20support:\x20','[n]\x20New\x20task','Asset:\x20','Convert\x20&\x20publish','columns',',\x20at\x20most\x20','selected','WALLET\x20DETAILS\x20·\x20selected\x20wallet','\x20results\x20loaded','notice','workers','cursor','Gas\x20is\x20the\x20blockchain\x20network\x20fee.\x20It\x20is\x20always\x20paid\x20in\x20ETH\x20and\x20is\x20usually\x20below\x20the\x20cap\x20shown.','Work','scroll','terminal','query','\x20entries\x20·\x20Mine\x20+\x20Network','files','[/]\x20Search','addTarget','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','confirm','IMD\x20for\x20this\x20task:\x20','networks','Enter\x20','resumeOrder','moveConfirmation','Preparing\x20local\x20LLM','amount','busy','submitConfirmation','refreshError','length','walletMenu','\x20in\x20the\x20sending\x20wallet\x20or\x20exchange.','SERVER\x20PREPARED\x20INPUT','acceptLabel','Confirm','network','refresh','items','rows','[e]\x20Error\x20details','row','toLocaleString','view','IMD','subscribe','submit','walletImport','Tip:\x20Review\x20the\x20price\x20before\x20paying.','Cancel\x20/\x20edit','Refreshing\x20tasks...','\x20IMD\x20(fee\x20','Cancel','reduce','space-between','[r]\x20Refresh','floor','[?]\x20Help\x20\x20[q]\x20Quit','\x20task','address','submitForm','taskMenu','Keyboard\x20shortcuts','total','focus','cancelled','intro','Loading...','maximumDebit','\x20IMD','form','Review\x20saved\x20payment','name','WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x0ar\x20Refresh\x20balances\x20(all\x20networks)\x0a\x0aPAYING\x0aColony\x20checks\x20every\x20network\x20and\x20picks\x20a\x20coin\x20you\x20can\x20already\x20pay\x20with.\x0aUse\x20Change\x20payment\x20in\x20the\x20review\x20to\x20pick\x20another\x20coin\x20or\x20network.\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.','hidden','gray','cancelLabel','configured','No\x20matching\x20items.','truncate-end','coins','Total\x20','nextField','accepted'];_0x5609=function(){return _0x32155c;};return _0x5609();}function we({state:_0x510b6b,width:_0x18cdc8,height:_0x53ff39,ascii:_0x4c452f}){const _0x4620f8=_0x1394b3,_0x638f41=_0x510b6b[_0x4620f8(0x256)],_0x427e81=_0x638f41[_0x4620f8(0x1fd)]??[],_0x13e776=_0x427e81['reduce']((_0x32b73d,_0x31a3c0)=>_0x32b73d+Math[_0x4620f8(0x1dd)](0x1,_0xa87f81(_0x31a3c0,_0x18cdc8-0x4)[_0x4620f8(0x27b)]),0x0),_0x13ff0a=Math[_0x4620f8(0x1dd)](0x1,_0x53ff39-0x5-_0x13e776),_0x5ed2e3=Math['max'](0x0,Math[_0x4620f8(0x223)](_0x638f41[_0x4620f8(0x260)]-Math[_0x4620f8(0x295)](_0x13ff0a/0x2),_0x638f41[_0x4620f8(0x283)][_0x4620f8(0x27b)]-_0x13ff0a));return _0x58d9dd(C,{'title':_0x638f41[_0x4620f8(0x1db)],'width':_0x18cdc8,'height':_0x53ff39,'ascii':_0x4c452f,'active':!0x0},..._0x427e81['map']((_0x1cb7c9,_0x160223)=>s(_0x1cb7c9||'\x20',{'key':_0x4620f8(0x29f)+_0x160223})),..._0x638f41[_0x4620f8(0x283)][_0x4620f8(0x253)](_0x5ed2e3,_0x5ed2e3+_0x13ff0a)[_0x4620f8(0x1e3)]((_0x3c3684,_0x1b1f26)=>s((_0x5ed2e3+_0x1b1f26===_0x638f41[_0x4620f8(0x260)]?'>\x20':'\x20\x20')+_0x3c3684[_0x4620f8(0x20e)],{'key':_0x1b1f26,'inverse':_0x5ed2e3+_0x1b1f26===_0x638f41[_0x4620f8(0x260)]})),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x638f41['hint']??_0x4620f8(0x22d),{'dimColor':!0x0}));}const ge=_0x1394b3(0x2a6);function Ae({controller:_0x58bd3c,ascii:_0x1c9d63=!0x1,dimensions:_0x296f46,terminal:_0x5642ea,feedback:_0xd74da,welcome:_0x151602=!0x1}){const _0x1dac5d=_0x1394b3,_0x67bd3b=_0x64a80b(_0x58bd3c[_0x1dac5d(0x28a)],_0x58bd3c['getSnapshot']),[_0x1b1640,_0x1d4fa7]=_0x2f2dac(0x0);_0x3db06e(()=>{const _0x51d80f=_0x1dac5d,_0x465184=setInterval(()=>_0x1d4fa7(_0xeeaf72=>(_0xeeaf72+0x1)%B[_0x51d80f(0x27b)]),0x4e20);return()=>clearInterval(_0x465184);},[]);const _0x5ee4fa=_0x67bd3b[_0x1dac5d(0x207)]??_0x67bd3b['refreshError'],_0x4432c3=_0x1977a6(),_0x3a0aff=_0x296f46??_0x4432c3,_0x492b58=_0x3a0aff[_0x1dac5d(0x25e)],_0x26b0d8=Math['max'](0x8,_0x3a0aff[_0x1dac5d(0x284)]-0x1),_0x19793a=_0x492b58<0x64,{exit:_0x1d8d39}=_0x33449e();if(_0x3db06e(()=>(_0x58bd3c[_0x1dac5d(0x269)]=_0x5642ea,_0x58bd3c[_0x1dac5d(0x282)]()[_0x1dac5d(0x247)](()=>{const _0x3b50c4=_0x1dac5d;if(_0xd74da)_0x58bd3c[_0x3b50c4(0x1f5)](_0xd74da);else{if(_0x151602)return _0x58bd3c[_0x3b50c4(0x1d1)]();}}),()=>_0x58bd3c[_0x1dac5d(0x1f0)]()),[_0x58bd3c,_0x5642ea,_0xd74da,_0x151602]),_0x3db06e(()=>{const _0x52b026=setInterval(()=>{const _0x49af03=_0x242c;_0x58bd3c[_0x49af03(0x21e)]();},0x1388);return()=>clearInterval(_0x52b026);},[_0x58bd3c]),_0x503b1c((_0x1f6d7b,_0x5865a2)=>{const _0x321c2f=_0x1dac5d;if(_0x5865a2[_0x321c2f(0x23f)]&&_0x1f6d7b==='c'){_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39();return;}if(_0x67bd3b[_0x321c2f(0x212)]){_0x5865a2['escape']&&_0x58bd3c[_0x321c2f(0x1f5)]({'privateKeyView':null});return;}if(_0x492b58<0x28||_0x3a0aff[_0x321c2f(0x284)]<0x14){_0x67bd3b[_0x321c2f(0x1da)]?_0x5865a2[_0x321c2f(0x210)]&&_0x58bd3c['closeReceive']():_0x1f6d7b==='q'&&(_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39());return;}if(_0x67bd3b[_0x321c2f(0x270)]){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c[_0x321c2f(0x243)](!0x1):_0x5865a2[_0x321c2f(0x1b8)]||_0x5865a2[_0x321c2f(0x1f3)]||_0x5865a2['rightArrow']?_0x58bd3c[_0x321c2f(0x275)](_0x5865a2[_0x321c2f(0x1f3)]||_0x5865a2['tab']&&_0x5865a2[_0x321c2f(0x21d)]?-0x1:0x1):_0x5865a2['return']?_0x58bd3c[_0x321c2f(0x279)]():_0x1f6d7b==='i'?_0x58bd3c[_0x321c2f(0x1f5)]({'confirm':{..._0x67bd3b[_0x321c2f(0x270)],'expanded':!_0x67bd3b[_0x321c2f(0x270)][_0x321c2f(0x251)]},'scroll':0x0}):(_0x5865a2['pageDown']||_0x5865a2[_0x321c2f(0x1cb)])&&_0x58bd3c[_0x321c2f(0x1f5)]({'scroll':Math[_0x321c2f(0x1dd)](0x0,_0x67bd3b[_0x321c2f(0x268)]+(_0x5865a2[_0x321c2f(0x230)]?0x5:-0x5))});return;}if(_0x67bd3b[_0x321c2f(0x2a3)]){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c['dismissForm']():_0x5865a2['tab']&&_0x58bd3c[_0x321c2f(0x2af)](_0x5865a2[_0x321c2f(0x21d)]);return;}if(_0x67bd3b[_0x321c2f(0x1da)]){_0x5865a2[_0x321c2f(0x210)]&&_0x58bd3c['closeReceive'](),_0x1f6d7b==='s'&&_0x58bd3c['saveReceiveQr']();return;}if(_0x67bd3b['menu']){_0x5865a2[_0x321c2f(0x210)]?_0x58bd3c['dismissMenu']():_0x5865a2['downArrow']||_0x5865a2[_0x321c2f(0x1ce)]?_0x58bd3c['update']({'menu':{..._0x67bd3b[_0x321c2f(0x256)],'selected':Math[_0x321c2f(0x1dd)](0x0,Math['min'](_0x67bd3b[_0x321c2f(0x256)]['items'][_0x321c2f(0x27b)]-0x1,_0x67bd3b[_0x321c2f(0x256)][_0x321c2f(0x260)]+(_0x5865a2[_0x321c2f(0x1bb)]?0x1:-0x1)))}}):_0x5865a2[_0x321c2f(0x1b6)]?_0x58bd3c[_0x321c2f(0x1f8)]():_0x67bd3b[_0x321c2f(0x256)]['numbered']&&/^[1-9]$/[_0x321c2f(0x206)](_0x1f6d7b)&&Number(_0x1f6d7b)<=_0x67bd3b['menu'][_0x321c2f(0x283)][_0x321c2f(0x27b)]&&(_0x58bd3c[_0x321c2f(0x1f5)]({'menu':{..._0x67bd3b[_0x321c2f(0x256)],'selected':Number(_0x1f6d7b)-0x1}}),_0x58bd3c[_0x321c2f(0x1f8)]());return;}if(_0x1f6d7b==='q'&&!_0x67bd3b['busy']){_0x58bd3c[_0x321c2f(0x1f0)](),_0x1d8d39();return;}if(!_0x67bd3b[_0x321c2f(0x278)]){if(_0x1f6d7b==='e'&&_0x5ee4fa){_0x58bd3c['showError']();return;}if(_0x321c2f(0x239)[_0x321c2f(0x233)](_0x1f6d7b)&&_0x1f6d7b['length']===0x1){_0x58bd3c[_0x321c2f(0x240)](_0x4d1b58[Number(_0x1f6d7b)-0x1]);return;}if(_0x1f6d7b==='?'){_0x58bd3c['update']({'help':!_0x67bd3b[_0x321c2f(0x1df)],'scroll':0x0});return;}if(_0x5865a2['escape']){_0x58bd3c[_0x321c2f(0x1f5)]({'focus':_0x321c2f(0x200),'help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x1f6d7b==='n'){_0x67bd3b['view']===_0x321c2f(0x1bc)?_0x58bd3c[_0x321c2f(0x22c)](!0x1):_0x58bd3c['create']();return;}if(_0x1f6d7b==='r'){_0x58bd3c[_0x321c2f(0x282)]();return;}if(_0x5865a2[_0x321c2f(0x230)]||_0x5865a2[_0x321c2f(0x1cb)]||_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x23e)&&(_0x5865a2['downArrow']||_0x5865a2[_0x321c2f(0x1ce)])){_0x58bd3c['update']({'scroll':Math[_0x321c2f(0x1dd)](0x0,_0x67bd3b[_0x321c2f(0x268)]+(_0x5865a2[_0x321c2f(0x230)]?0x5:_0x5865a2['pageUp']?-0x5:_0x5865a2['downArrow']?0x1:-0x1))});return;}if(_0x67bd3b[_0x321c2f(0x288)]==='wallet'){(_0x5865a2[_0x321c2f(0x1bb)]||_0x5865a2[_0x321c2f(0x1ce)])&&_0x58bd3c[_0x321c2f(0x1c3)](_0x5865a2['downArrow']?0x1:-0x1),(_0x5865a2[_0x321c2f(0x1b6)]||_0x5865a2[_0x321c2f(0x1b8)])&&_0x58bd3c['update']({'focus':_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x200)?_0x321c2f(0x23e):'list','scroll':0x0}),_0x1f6d7b==='u'&&_0x58bd3c[_0x321c2f(0x254)](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x27c)](),_0x1f6d7b==='g'&&_0x58bd3c['walletManagement'](),_0x1f6d7b==='i'&&_0x58bd3c[_0x321c2f(0x28c)](),_0x1f6d7b==='d'&&_0x58bd3c[_0x321c2f(0x258)](),_0x1f6d7b==='b'&&_0x58bd3c['walletBackup']();return;}if(_0x5865a2[_0x321c2f(0x1bb)]||_0x5865a2[_0x321c2f(0x1ce)]){_0x58bd3c[_0x321c2f(0x1c3)](_0x5865a2[_0x321c2f(0x1bb)]?0x1:-0x1);return;}if(_0x5865a2[_0x321c2f(0x1b6)]||_0x5865a2[_0x321c2f(0x1b8)]){_0x58bd3c[_0x321c2f(0x1f5)]({'focus':_0x67bd3b[_0x321c2f(0x29d)]===_0x321c2f(0x200)?'detail':'list','scroll':0x0});return;}if(_0x67bd3b[_0x321c2f(0x288)]===_0x321c2f(0x264)){_0x1f6d7b==='/'&&_0x58bd3c[_0x321c2f(0x204)](),_0x1f6d7b==='a'&&_0x58bd3c[_0x321c2f(0x26e)](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x1bf)](),_0x1f6d7b==='l'&&_0x58bd3c[_0x321c2f(0x21f)]([_0x321c2f(0x255)]),_0x1f6d7b==='g'&&_0x58bd3c[_0x321c2f(0x21f)](['doctor']);return;}_0x1f6d7b==='/'&&_0x58bd3c['search'](),_0x1f6d7b==='f'&&_0x67bd3b[_0x321c2f(0x288)]===_0x321c2f(0x1ed)&&_0x58bd3c[_0x321c2f(0x1ee)](),(_0x1f6d7b==='['||_0x1f6d7b===']')&&_0x58bd3c[_0x321c2f(0x1eb)](_0x1f6d7b==='['?-0x1:0x1),_0x1f6d7b==='d'&&_0x58bd3c[_0x321c2f(0x26c)](),_0x1f6d7b==='s'&&_0x58bd3c[_0x321c2f(0x1c4)](),_0x1f6d7b==='c'&&_0x58bd3c['continueTask'](),_0x1f6d7b==='o'&&_0x58bd3c[_0x321c2f(0x274)](),_0x1f6d7b==='x'&&_0x58bd3c['cancelRequest'](),_0x1f6d7b==='m'&&_0x58bd3c[_0x321c2f(0x29a)](),_0x1f6d7b==='l'&&_0x58bd3c[_0x321c2f(0x1b2)]();}}),_0x492b58<0x28||_0x3a0aff[_0x1dac5d(0x284)]<0x14)return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'flexDirection':'column'},s(_0x1dac5d(0x1f7),{'color':_0x1dac5d(0x1ba)}),s(_0x1dac5d(0x215)),s(_0x67bd3b[_0x1dac5d(0x1da)]||_0x67bd3b[_0x1dac5d(0x212)]?'Esc\x20back':_0x1dac5d(0x1e8)));if(_0x67bd3b[_0x1dac5d(0x212)])return _0x58d9dd(C,{'title':_0x1dac5d(0x224),'width':_0x492b58,'height':_0x26b0d8,'ascii':_0x1c9d63,'active':!0x0},s(_0x1dac5d(0x1ef)+_0x67bd3b[_0x1dac5d(0x212)][_0x1dac5d(0x298)]),s('Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet\u2019s\x20funds.',{'color':_0x1dac5d(0x1d2)}),_0x58d9dd(_0x19aeea,{'marginTop':0x1},s(_0x67bd3b['privateKeyView'][_0x1dac5d(0x241)])),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),s(_0x1dac5d(0x23b),{'color':'cyan'}));if(_0x67bd3b[_0x1dac5d(0x1da)]&&!_0x67bd3b[_0x1dac5d(0x2a3)]){const _0xd74bc5=_0x67bd3b[_0x1dac5d(0x1da)],_0x53a493=_0xd74bc5['qr'][_0x1dac5d(0x1ff)]('\x0a'),_0x4605fa=!_0xd74bc5[_0x1dac5d(0x272)]||_0xd74bc5[_0x1dac5d(0x272)]['length']===0x1,_0x1dd7d7=[..._0x4605fa?['Accepted:\x20'+_0xd74bc5['coins']['join'](',\x20')]:_0xd74bc5[_0x1dac5d(0x272)]['map'](_0x1482fc=>_0x1482fc[_0x1dac5d(0x23d)]+':\x20'+_0x1482fc[_0x1dac5d(0x2ad)]['join'](',\x20')),..._0xd74bc5['targets']??[]],_0x31edb0=_0x4605fa?'Send\x20on\x20'+_0xd74bc5['chainName']+'\x20only.\x20Choose\x20'+_0xd74bc5[_0x1dac5d(0x23d)]+_0x1dac5d(0x27d):'Same\x20address\x20on\x20both\x20networks.\x20Choose\x20the\x20network\x20you\x20will\x20pay\x20on;\x20funds\x20stay\x20there.\x20Include\x20ETH\x20for\x20gas.',_0xc4f218=[_0xd74bc5[_0x1dac5d(0x298)],..._0x1dd7d7,_0x31edb0][_0x1dac5d(0x292)]((_0x35505b,_0x4429b3)=>_0x35505b+_0xa87f81(_0x4429b3,_0x492b58)[_0x1dac5d(0x27b)],0x0),_0x3980f1=_0x53a493[_0x1dac5d(0x27b)]+_0xc4f218+0x2,_0x32e485=_0x492b58>=_0x53a493[0x0][_0x1dac5d(0x27b)]&&_0x26b0d8>=_0x3980f1;return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'height':_0x26b0d8,'flexDirection':_0x1dac5d(0x1e2)},s(_0x4605fa?'Receive\x20on\x20'+_0xd74bc5[_0x1dac5d(0x23d)]:_0x1dac5d(0x21a),{'bold':!0x0,'color':'cyan'}),s(_0xd74bc5[_0x1dac5d(0x298)]),..._0x1dd7d7[_0x1dac5d(0x1e3)]((_0x22f8f5,_0x236721)=>s(_0x22f8f5,{'key':_0x236721})),_0x32e485?s(_0xd74bc5['qr'],{'color':_0x1dac5d(0x208),'backgroundColor':_0x1dac5d(0x1c1)}):s(_0x1dac5d(0x21b)+Math[_0x1dac5d(0x1dd)](0x28,_0x53a493[0x0][_0x1dac5d(0x27b)])+'\x20columns\x20and\x20'+(_0x3980f1+0x1)+'\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.'),s(_0x31edb0,{'color':_0x1dac5d(0x1d2)}),s(_0x3e3169(_0x67bd3b[_0x1dac5d(0x207)]??_0x67bd3b[_0x1dac5d(0x263)]??_0x1dac5d(0x232),_0x492b58),{'color':_0x67bd3b[_0x1dac5d(0x207)]?_0x1dac5d(0x1fe):'cyan'}));}const _0x1a714c=_0x67bd3b['form']||_0x67bd3b[_0x1dac5d(0x270)]||_0x67bd3b[_0x1dac5d(0x1b4)],_0xfc16dc=Math[_0x1dac5d(0x1dd)](0x6,_0x26b0d8-(_0x1a714c?0x3:0x6)),_0x3dbcc3=_0x56bbe3(_0x67bd3b)[_0x67bd3b[_0x1dac5d(0x260)]];let _0xb8d65f;if(_0x67bd3b[_0x1dac5d(0x2a3)])_0xb8d65f=_0x58d9dd(he,{'controller':_0x58bd3c,'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b['confirm'])_0xb8d65f=_0x58d9dd(pe,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x1b4)])_0xb8d65f=_0x58d9dd(fe,{'event':_0x67bd3b[_0x1dac5d(0x1b4)],'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x256)])_0xb8d65f=_0x58d9dd(we,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63});else{if(_0x67bd3b[_0x1dac5d(0x1df)])_0xb8d65f=_0x58d9dd(C,{'title':_0x1dac5d(0x29b),'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':!0x0},_0x58d9dd(O,{'content':ge,'width':_0x492b58-0x4,'height':_0xfc16dc-0x4,'offset':_0x67bd3b['scroll']}),s(_0x1dac5d(0x228),{'dimColor':!0x0}));else{if(_0x67bd3b['view']==='wallet')_0xb8d65f=_0x58d9dd(me,{'state':_0x67bd3b,'width':_0x492b58,'height':_0xfc16dc,'ascii':_0x1c9d63,'narrow':_0x19793a});else{const _0x2083bf=!_0x19793a||_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x200),_0x1493e0=!_0x19793a||_0x67bd3b['focus']===_0x1dac5d(0x23e),_0x4905b7=_0x19793a?_0x492b58:Math[_0x1dac5d(0x295)](_0x492b58*0.43),_0x52427d=_0x2083bf&&!_0x19793a?_0x492b58-_0x4905b7-0x1:_0x492b58,_0x4a8af0=_0x228f58({..._0x67bd3b,'selectedId':_0x3dbcc3?.['id']}),_0x1a4282=_0x67bd3b['view']===_0x1dac5d(0x1ed)||_0x67bd3b[_0x1dac5d(0x288)]==='explore',_0xd75ed7=_0x1a4282?_0x52a8bb(_0x3dbcc3,_0x67bd3b[_0x1dac5d(0x288)]):_0x3dbcc3?_0x3dbcc3[_0x1dac5d(0x1e7)]===_0x1dac5d(0x234)?['Read\x20only']:[_0x1dac5d(0x1d6),_0x1dac5d(0x1c0),_0x1dac5d(0x203)]:[];_0x5ee4fa&&_0xd75ed7[_0x1dac5d(0x1bd)](_0x1dac5d(0x285));const _0x4fdb51=L(_0xd75ed7,_0x52427d-0x4),_0x20b76e=_0x4fdb51[_0x1dac5d(0x27b)]?_0x4fdb51[_0x1dac5d(0x27b)]+0x1:0x0,_0x295ea4=L([_0x1dac5d(0x1f1),_0x1dac5d(0x22a),..._0x1a4282?[_0x1dac5d(0x220)]:[]],_0x52427d-0x4);_0xb8d65f=_0x58d9dd(_0x19aeea,{'height':_0xfc16dc,'width':_0x492b58,'gap':0x1},_0x2083bf?_0x58d9dd(C,{'title':(_0x67bd3b[_0x1dac5d(0x288)]==='workers'?_0x1dac5d(0x1d5):_0x67bd3b[_0x1dac5d(0x24d)])+(_0x67bd3b[_0x1dac5d(0x26a)]?'\x20/\x20'+_0x3e3169(_0x67bd3b[_0x1dac5d(0x26a)],0x16):''),'width':_0x4905b7,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x200)},_0x58d9dd(Y,{'state':_0x67bd3b,'height':_0xfc16dc,'width':_0x4905b7-0x4,'ascii':_0x1c9d63})):null,_0x1493e0?_0x58d9dd(C,{'title':_0x3e3169(_0x3dbcc3?.['id']??_0x1dac5d(0x1fa),_0x52427d-0x7),'width':_0x52427d,'height':_0xfc16dc,'ascii':_0x1c9d63,'active':_0x67bd3b[_0x1dac5d(0x29d)]===_0x1dac5d(0x23e)},_0x1a4282?s(['Overview',_0x1dac5d(0x23c),'Files'][_0x1dac5d(0x1e3)](_0x374da1=>_0x374da1===_0x67bd3b[_0x1dac5d(0x1b8)]?'['+_0x374da1+']':_0x374da1)[_0x1dac5d(0x201)]('\x20\x20'),{'color':_0x1dac5d(0x1ba),'wrap':'truncate-end'}):null,_0x58d9dd(O,{'content':_0x4a8af0,'width':_0x52427d-0x4,'height':_0xfc16dc-0x3-Number(_0x1a4282)-_0x20b76e-_0x295ea4['length'],'offset':_0x67bd3b['scroll']}),_0x58d9dd(_0x19aeea,{'flexGrow':0x1}),..._0x295ea4['map']((_0x316921,_0x3c0a2e)=>s(_0x316921,{'key':_0x3c0a2e,'dimColor':!0x0})),_0x58d9dd(K,{'rows':_0x4fdb51,'width':_0x52427d-0x4,'ascii':_0x1c9d63})):null);}}}}}}const _0x25955e=_0x67bd3b[_0x1dac5d(0x2a3)]||_0x67bd3b[_0x1dac5d(0x270)]||_0x67bd3b[_0x1dac5d(0x256)]||_0x67bd3b[_0x1dac5d(0x278)]?_0x1dac5d(0x24e):_0x1dac5d(0x296),_0x59c1a0=_0x492b58<0x4b?_0x4d1b58[_0x1dac5d(0x1e3)]((_0x258fb2,_0x117979)=>'['+(_0x117979+0x1)+']'+['Mine',_0x1dac5d(0x1cf),_0x1dac5d(0x267),'Wallets'][_0x117979])[_0x1dac5d(0x201)]('\x20'):_0x4d1b58['map']((_0x329452,_0x28cb7d)=>(_0x329452===_0x67bd3b[_0x1dac5d(0x288)]?'>\x20':'\x20\x20')+'['+(_0x28cb7d+0x1)+']\x20'+de[_0x329452])[_0x1dac5d(0x201)]('\x20\x20');return _0x58d9dd(_0x19aeea,{'width':_0x492b58,'height':_0x26b0d8,'flexDirection':_0x1dac5d(0x1e2)},_0x58d9dd(_0x19aeea,{'justifyContent':_0x1dac5d(0x293),'height':_0x1a714c?0x1:0x2},s(_0x1dac5d(0x1be),{'color':_0x1dac5d(0x1ba),'bold':!0x0}),_0x492b58>=0x4b?s(_0x67bd3b[_0x1dac5d(0x298)]?_0x3e3169(_0x67bd3b['address'],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x1a714c?null:s(_0x59c1a0,{'color':_0x1dac5d(0x1ba),'wrap':_0x1dac5d(0x2ac)}),_0x1a714c?null:_0x67bd3b[_0x1dac5d(0x278)]||_0x67bd3b[_0x1dac5d(0x1c6)]?_0x58d9dd(z,{'label':_0x67bd3b[_0x1dac5d(0x278)]??_0x1dac5d(0x28f)}):s(_0x67bd3b[_0x1dac5d(0x209)],{'dimColor':!0x0,'wrap':_0x1dac5d(0x2ac)}),_0xb8d65f,s(_0x3e3169(_0x5ee4fa??_0x67bd3b[_0x1dac5d(0x263)]??(_0x1a714c||_0x67bd3b[_0x1dac5d(0x256)]||_0x67bd3b[_0x1dac5d(0x278)]?'':B[_0x1b1640]),_0x492b58),{'color':_0x5ee4fa?_0x1dac5d(0x1fe):_0x67bd3b[_0x1dac5d(0x263)]?_0x1dac5d(0x1f9):void 0x0,'dimColor':!_0x5ee4fa&&!_0x67bd3b[_0x1dac5d(0x263)]}),s(_0x25955e,{'dimColor':!0x0,'wrap':_0x1dac5d(0x2ac)}));}export{Ae as DashboardApp};