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 _0x54dc1e=_0x2901;import{friendlyAmount as _0x57f2ab}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x2f1c7d,paymentView as _0x4fdf79}from'./services.mjs';import{lockWallet as _0x55845d}from'../lib/local-wallet.mjs';function _0x2f37(){const _0x5d8ecb=['createdAt','Concurrent\x20tasks\x20(1–4)','questions','mine','local','Delete\x20draft','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','push','Auto-refresh\x20failed:\x20','Download\x20task\x20files','extraTargets','serviceInstall','Restore\x20encrypted\x20wallet','Delete\x20wallet\x20·\x201\x20of\x202','What\x20would\x20you\x20like\x20to\x20change?','Add\x20a\x20worker\x20target','draft','askResolve','parent','draftId','register','targets','lastExploreRefresh','ask','transaction','fundingReceive','path','admitted','reason','paymentChain','codex','payment_failed','ETH','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','showMenu','result','View\x20private\x20key','colony-receive.svg','getSnapshot','receive','Register\x20on\x20chain','stage','SSH\x20identity\x20file\x20(optional)','Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.','Understanding\x20your\x20request...','Choose\x20an\x20output\x20directory.','Cancelled','From\x20encrypted\x20backup','Save\x20QR','refresh','message','tools','publishDraft','\x0aOrder:\x20','walletRestore','cancelled','job.open','admitting','command','Remove\x20RPC','more','note','transaction_pending','deleteDraft','.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.','Files','exploreUpdates','Delete\x20draft?','since','colony\x20worker\x20','Confirm\x20password','signed','saveReceiveQr','\x20·\x20current','throwIfAborted','Active','repeat','hash','Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.','max','test','Tools\x20&\x20credentials','whoami','formCancel','Request\x20changes','accepted','selectWallet','Run\x20diagnostics','Skill\x20ID','passwordReject','Worker\x20tools','editDraft','pickPayment','name','Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now','Restoring\x20wallet...','Forget\x20credential','menuCancel','host','forget','Add\x20RPC','error','Search\x20workers','boot','wallet','Delete\x20wallet','executing','lines','Skills','fromEntries','services','Linux\x20start\x20at\x20boot\x20(yes/no)','confirmResolve','Review\x20&\x20pay','Identity','You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.','Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a','create','help','Saved\x20wallet','updatedAt','claude','running','Change\x20payment','showPaymentProgress','add','set','join','navigate','files','receiveWallet','backupWallet','Choose\x20claude\x20or\x20codex.','closeReceive','explorerUrl','Loading\x20','restoreSelectedId','canDelete','cancelAutoRefresh','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.','walletPrivateKey','managed-worker','coin','string','move','Worker\x20RPC\x20endpoints','toUpperCase','Delete\x20wallet\x20·\x202\x20of\x202','scroll','clear','Order\x20status:\x20','autoPayment','.\x20Keep\x20your\x20password\x20separately.','Payment\x20needs\x20review.','worker','Open\x20Wallets','Add\x20target','includes','Checking\x20balances\x20and\x20refreshing\x20prices...','concat','Checking\x20balances\x20on\x20all\x20networks...','addTarget','--concurrency','Remove\x20this\x20wallet\x20from\x20Colony?','Continue','length','refreshRequest','install','detailVersion','Concurrency\x20must\x20be\x201–4.','Loading\x20files...','canCancel','Receive\x20funds\x20/\x20QR\x20code','list','deliverables','useSelectedWallet','operation','Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.','queued','QR\x20saved:\x20','Explorer:\x20','field','workerMenu','chain','file','Save\x20recharge\x20QR\x20code','detail','closed','password','job.continue','indexOf','Cancelling\x20request...','walletReceive','checkTaskWallet','Install\x20background\x20service','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','start','Completed','title','--boot','Draft\x20saved','change_payment','submitForm','Create\x20wallet','dismissForm','Remove\x20RPC\x20endpoint','Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...','change','Review\x20task','Pair\x20with\x20wallet','chooseMenu','Unlink\x20worker','findIndex','min','state','remove','Private\x20key\x20(hidden)','\x20is\x20required.','cancel','payment_reconciling','identity','blockers','Deleting\x20draft...','active','createWallet','key','runtime','source','listeners','code','items','challenged','deleteWallet','Download\x20files','detailTimer','Loading\x20network\x20workers...','concurrency','now','flatMap','Request\x20changes\x20(new\x20paid\x20task)','revealPrivateKey','plan','toLowerCase','deleteRequest','orderId','Saved\x20','configured','has','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','taskMenu','Credential\x20name','ethereum','showOutcome','Check\x20balance\x20&\x20continue','canResume','submitConfirmation','Remove\x20skill','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','All','Preparing\x20receive\x20address...','quoted','options','Saving\x20encrypted\x20backup...','Add\x20RPC\x20endpoint\x20(hidden\x20input)','walletBackup','rpc','signal','IMD','map','addFunds','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','saveDraft','menu','slice','loadDetail','chainName','form','Cancel\x20this\x20request?','changeTab','assign','paymentOptions','dialog','address','Task\x20actions','moveConfirmation','Add\x20funds','input','Transaction:\x20','wallet_required','Search','\x20+\x20gas\x20≈\x20','A\x20little\x20more\x20information','Create\x20a\x20task','walletImport','Chain\x20ID','Keep\x20wallet','walletMenu','choice','fields','respond','loadDraft','deploy','stop','view','doctor','explore','abort','jobId','One\x20local\x20password\x20·\x20u\x20use\x20selected\x20wallet','Restore\x20wallet','Update\x20network\x20fee','kind','publish','pair','skills','reviewPayment','objective','payment','terminal','Search\x20tasks','funding_required','RPC\x20endpoints','selected','walletSetup','Backup\x20password','refreshError','pendingTransaction','total','tasks','Cancel\x20request','Review\x20saved\x20payment','workerCommand','wallets','query','Overview','\x20network\x20workers\x20·\x20availability,\x20free\x20slots,\x20ID\x20·\x20r\x20refresh','cancelRequest','Deleting\x20local\x20wallet...','The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.','Not\x20paid.\x20','service','unlink','port','funding','refreshWalletSelection','Download','Backup\x20file\x20path','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','chooseSupport','On-chain\x20funds\x20stay\x20at\x20this\x20address.','status','View\x20result\x20files','networkWorkers','confirmReplacement','\x20·\x20','detailRequest','\x20on\x20','Switching\x20wallet...','pending','Use\x20at\x20least\x208\x20characters.','refusalProblems','Tool\x20ID','Continue\x20draft','New\x20SVG\x20file\x20path','--runtime','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','...','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','Attention','extraAction','autoRefresh','Passwords\x20do\x20not\x20match.','restoreWallet','Preparing\x20local\x20LLM...','setField','filter','Preparing\x20the\x20payment\x20review...','confirm','Import\x20wallet','Add\x20funds\x20to\x20continue','SSH\x20port','payWith','restart','currentAddress','Set\x20tool\x20credential\x20(hidden\x20input)','cursor','Add\x20tool','network-worker','gas','Deleting\x20local\x20record...','showForm','Remove\x20tool','Runtime\x20(claude\x20or\x20codex)','fundingDialog','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','dismissMenu','walletDelete','logs','walletManagement','privateKeyView','detailLoading','Save\x20encrypted\x20backup\x20to\x20(new\x20file)','some','Task\x20published:\x20','requestKey','Save\x20under\x20this\x20directory','delete','deleteTaskDraft','workers','Review\x20task\x20&\x20payment','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','busy','refreshExplore','Confirm\x20wallet\x20password','trim','out','created','resumeOrder','setupWallet','withFundingRetry','update','formSubmit','funded','label','run','download','localeCompare','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','Worker\x20·\x20'];_0x2f37=function(){return _0x5d8ecb;};return _0x2f37();}import{fundingInstructions as _0x9fa9bc,fundingNetworks as _0x23da29,networkChoiceLabel as _0x1691b3,networkTargets as _0x1c5b2e}from'../lib/funding-error.mjs';import{DEFAULT_SUPPORT_CHOICE as _0x1d9d31}from'../lib/support.mjs';import{randomUUID as _0x33845d}from'node:crypto';function _0x2901(_0x50e93e,_0x2f37d0){_0x50e93e=_0x50e93e-0x1c1;const _0x290192=_0x2f37();let _0x586c9b=_0x290192[_0x50e93e];return _0x586c9b;}const K=[_0x54dc1e(0x30b),_0x54dc1e(0x2f4),'workers',_0x54dc1e(0x229)],p=[_0x54dc1e(0x2c5),'Active',_0x54dc1e(0x288),_0x54dc1e(0x333),_0x54dc1e(0x1ef)],h=['Overview','Activity',_0x54dc1e(0x202)],b=new Set(['draft',_0x54dc1e(0x363),_0x54dc1e(0x2c7),_0x54dc1e(0x2aa),_0x54dc1e(0x31a),_0x54dc1e(0x208),'submitted',_0x54dc1e(0x275),_0x54dc1e(0x23b),_0x54dc1e(0x22b),_0x54dc1e(0x329),_0x54dc1e(0x1fa)]),S=new Set(['expired',_0x54dc1e(0x1e0),_0x54dc1e(0x1ff),'payment_reconciling']),q=new Set(['transaction_pending',_0x54dc1e(0x29e)]),x=0x7530;function u(_0x47db62){const _0x4d9c94=_0x54dc1e;return _0x47db62[_0x4d9c94(0x2a9)]['filter'](_0xcc2975=>![_0x4d9c94(0x30b),'workers']['includes'](_0x47db62[_0x4d9c94(0x2f2)])||[_0xcc2975[_0x4d9c94(0x289)],_0xcc2975['id'],_0xcc2975['searchText']??''][_0x4d9c94(0x355)](_0x55af7c=>_0x55af7c[_0x4d9c94(0x2b5)]()[_0x4d9c94(0x260)](_0x47db62['query'][_0x4d9c94(0x2b5)]()))?_0x47db62['filter']===_0x4d9c94(0x2c5)||_0x47db62[_0x4d9c94(0x2f2)]!==_0x4d9c94(0x30b)?!0x0:_0x47db62[_0x4d9c94(0x33a)]==='Completed'?_0xcc2975[_0x4d9c94(0x299)]==='completed':_0x47db62[_0x4d9c94(0x33a)]===_0x4d9c94(0x1ef)?_0xcc2975[_0x4d9c94(0x299)]===_0x4d9c94(0x1f8):_0x47db62[_0x4d9c94(0x33a)]===_0x4d9c94(0x20c)?b['has'](_0xcc2975[_0x4d9c94(0x299)]):!['completed','cancelled'][_0x4d9c94(0x260)](_0xcc2975[_0x4d9c94(0x299)])&&!b[_0x4d9c94(0x2ba)](_0xcc2975['state']):!0x1);}function f(){const _0x4f14bf=_0x54dc1e;return Object[_0x4f14bf(0x2da)](new Error(_0x4f14bf(0x1ec)),{'code':_0x4f14bf(0x1f8)});}function P(){const _0x591441=_0x54dc1e;return Object[_0x591441(0x2da)](new Error(_0x591441(0x2c4)),{'code':_0x591441(0x28c)});}function A(_0x32ed84,_0x336564){const _0x5cfda9=_0x54dc1e,{option:_0x1aa32d}=_0x32ed84,_0x415682=(_0x32ed84[_0x5cfda9(0x340)]==='IMD'?'':'\u2248\x20')+_0x57f2ab(_0x1aa32d[_0x5cfda9(0x300)],_0x32ed84['payWith'],{'up':!0x0}),_0x548527=_0x336564&&_0x336564[_0x5cfda9(0x1de)]===_0x32ed84[_0x5cfda9(0x1de)]&&_0x336564[_0x5cfda9(0x340)]===_0x32ed84[_0x5cfda9(0x340)];return _0x32ed84[_0x5cfda9(0x340)]+_0x5cfda9(0x327)+_0x32ed84['chainName']+_0x5cfda9(0x325)+_0x415682+_0x5cfda9(0x2e5)+_0x57f2ab(_0x1aa32d[_0x5cfda9(0x347)],_0x5cfda9(0x1e1),{'up':!0x0})+(_0x548527?_0x5cfda9(0x20a):'');}function T(_0x284354){const _0x56c3f2=_0x54dc1e;if(!_0x284354)return[];const _0x15e863=[];return _0x284354[_0x56c3f2(0x20e)]&&_0x15e863['push'](_0x56c3f2(0x2e2)+_0x284354[_0x56c3f2(0x20e)]+(_0x284354[_0x56c3f2(0x2fa)]?'\x20('+_0x284354['kind']+')':'')),_0x284354[_0x56c3f2(0x1dd)]&&_0x15e863[_0x56c3f2(0x1c8)]('Reason:\x20'+_0x284354[_0x56c3f2(0x1dd)]),_0x284354[_0x56c3f2(0x247)]&&_0x15e863[_0x56c3f2(0x1c8)](_0x56c3f2(0x277)+_0x284354[_0x56c3f2(0x247)]),_0x15e863;}function W(_0x5817a2){const _0x18993a=_0x54dc1e,_0x51b8b7=[_0x5817a2[_0x18993a(0x1f3)]||'The\x20payment\x20result\x20is\x20not\x20final\x20yet.'];return _0x51b8b7['push'](...T(_0x5817a2[_0x18993a(0x1d9)])),_0x51b8b7[_0x18993a(0x1c8)]('Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.'),_0x51b8b7[_0x18993a(0x240)]('\x0a');}class V{constructor(_0x2dba96){const _0x259990=_0x54dc1e;this[_0x259990(0x22f)]=_0x2dba96,this[_0x259990(0x2a7)]=new Set(),this['state']={'view':_0x259990(0x30b),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0x259990(0x311),'filter':_0x259990(0x2c5),'query':'','note':'','focus':_0x259990(0x270),'scroll':0x0,'busy':null,'error':null,'notice':null,'form':null,'menu':null,'confirm':null,'modelProgress':null,'help':!0x1,'detailLoading':!0x1,'address':null,'cursor':null,'total':null,'since':null,'refreshing':!0x1,'refreshError':null,'receive':null,'privateKeyView':null},this[_0x259990(0x26b)]=0x0,this[_0x259990(0x1cb)]=[],this['closed']=!0x1,this[_0x259990(0x1d7)]=0x0;}['subscribe']=_0x37331e=>(this[_0x54dc1e(0x2a7)][_0x54dc1e(0x23e)](_0x37331e),()=>this[_0x54dc1e(0x2a7)][_0x54dc1e(0x359)](_0x37331e));[_0x54dc1e(0x1e7)]=()=>this['state'];['update'](_0x1ca58a){const _0x1c1aa2=_0x54dc1e;if(!this[_0x1c1aa2(0x27e)]){this[_0x1c1aa2(0x299)]={...this[_0x1c1aa2(0x299)],..._0x1ca58a};for(const _0x5e32e1 of this[_0x1c1aa2(0x2a7)])_0x5e32e1();}}[_0x54dc1e(0x305)](){const _0x3c97ca=_0x54dc1e;return u(this[_0x3c97ca(0x299)])[this['state'][_0x3c97ca(0x305)]];}['showError'](){const _0x52c274=_0x54dc1e;++this[_0x52c274(0x26b)],this[_0x52c274(0x367)]({'detail':{'output':this[_0x52c274(0x299)][_0x52c274(0x226)]??this['state'][_0x52c274(0x308)]},'detailLoading':!0x1,'focus':_0x52c274(0x27d),'scroll':0x0,'tab':'Overview'});}[_0x54dc1e(0x24b)](){const _0x2867c5=_0x54dc1e;this[_0x2867c5(0x269)]?.['abort'](),this[_0x2867c5(0x269)]=null,this[_0x2867c5(0x367)]({'refreshing':!0x1});}async['run'](_0x45f460,_0x472b8e){const _0x1c2da9=_0x54dc1e;if(!this[_0x1c2da9(0x299)][_0x1c2da9(0x35e)]){this['cancelAutoRefresh'](),this[_0x1c2da9(0x273)]=new AbortController(),this[_0x1c2da9(0x367)]({'busy':_0x45f460,'error':null,'refreshError':null,'notice':null});try{return await _0x472b8e(this['operation'][_0x1c2da9(0x2cd)]);}catch(_0x3cba14){_0x3cba14[_0x1c2da9(0x2a8)]===_0x1c2da9(0x1f8)?(this['update']({'notice':_0x3cba14[_0x1c2da9(0x1f3)]}),this[_0x1c2da9(0x21c)]()):q['has'](_0x3cba14['code'])?this[_0x1c2da9(0x367)]({'error':W(_0x3cba14)}):this[_0x1c2da9(0x367)]({'error':_0x3cba14[_0x1c2da9(0x1f3)]});}finally{this['update']({'busy':null,'modelProgress':null});}}}async[_0x54dc1e(0x241)](_0x3e4f3e){const _0x17e103=_0x54dc1e;this['state'][_0x17e103(0x35e)]||(clearTimeout(this[_0x17e103(0x2ad)]),this[_0x17e103(0x326)]?.[_0x17e103(0x2f5)](),++this[_0x17e103(0x26b)],this[_0x17e103(0x367)]({'view':_0x3e4f3e,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':_0x17e103(0x2c5),'tab':'Overview','scroll':0x0,'focus':_0x17e103(0x270),'form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x17e103(0x1f2)]());}async['refresh'](){const _0x1e0495=_0x54dc1e,_0x215848=this[_0x1e0495(0x305)]()?.['id']??this[_0x1e0495(0x249)];this['restoreSelectedId']=void 0x0,await this[_0x1e0495(0x36b)](_0x1e0495(0x248)+this[_0x1e0495(0x299)][_0x1e0495(0x2f2)]+_0x1e0495(0x331),async _0x1149df=>{const _0x2a1081=_0x1e0495;let _0x25a12b;if(this[_0x2a1081(0x299)]['view']===_0x2a1081(0x30b))_0x25a12b=await this[_0x2a1081(0x22f)][_0x2a1081(0x1c4)](_0x1149df);else{if(this[_0x2a1081(0x299)][_0x2a1081(0x2f2)]===_0x2a1081(0x2f4))_0x25a12b=await this[_0x2a1081(0x22f)][_0x2a1081(0x2f4)](this[_0x2a1081(0x299)][_0x2a1081(0x310)],void 0x0,_0x1149df);else{if(this[_0x2a1081(0x299)][_0x2a1081(0x2f2)]===_0x2a1081(0x35b)){const _0x550886=this[_0x2a1081(0x22f)][_0x2a1081(0x1d6)](),_0x4e8f99=new Set(_0x550886[_0x2a1081(0x2cf)](_0x4dbdf8=>_0x4dbdf8['id'])),_0x4fc199=_0x550886[_0x2a1081(0x262)](this[_0x2a1081(0x1cb)]['filter'](_0x30da58=>!_0x4e8f99[_0x2a1081(0x2ba)](_0x30da58['id'])))['map'](_0x4971b5=>({..._0x4971b5,'kind':_0x2a1081(0x250)}));this[_0x2a1081(0x367)]({'items':_0x4fc199,'selected':0x0,'note':_0x2a1081(0x2ae)});let _0xbb9cf4;try{_0xbb9cf4=await this[_0x2a1081(0x22f)][_0x2a1081(0x323)](_0x1149df);}catch(_0x4d94c8){throw this[_0x2a1081(0x367)]({'note':_0x4fc199[_0x2a1081(0x268)]+'\x20managed\x20targets\x20\xB7\x20Network\x20unavailable\x20\xB7\x20r\x20retry'}),_0x4d94c8;}_0x25a12b={'items':_0x4fc199[_0x2a1081(0x262)](_0xbb9cf4),'note':_0x4fc199['length']+'\x20managed\x20targets\x20\xB7\x20'+_0xbb9cf4[_0x2a1081(0x268)]+_0x2a1081(0x312)};}else{const _0xf203ca=await this['services']['wallet'](_0x1149df,_0x215848,{'balances':!0x1}),_0x3af89f=this[_0x2a1081(0x22f)][_0x2a1081(0x30f)]();!_0x3af89f['length']&&_0xf203ca['configured']&&_0x3af89f[_0x2a1081(0x1c8)]({'address':_0xf203ca[_0x2a1081(0x2dd)],'active':!0x0,'locked':_0xf203ca['locked']}),_0x25a12b={'items':_0x3af89f['map'](_0x1278ff=>({..._0x1278ff,'id':_0x1278ff[_0x2a1081(0x2dd)],'title':_0x1278ff[_0x2a1081(0x2dd)][_0x2a1081(0x2d4)](0x0,0xa)+_0x2a1081(0x331)+_0x1278ff['address'][_0x2a1081(0x2d4)](-0x8),'subtitle':_0x1278ff[_0x2a1081(0x2a2)]?'Current':_0x2a1081(0x238)})),'note':_0x2a1081(0x2f7),'address':_0xf203ca[_0x2a1081(0x342)]??_0xf203ca[_0x2a1081(0x2dd)]??null},this[_0x2a1081(0x367)]({'detail':_0xf203ca,'scroll':0x0});}}}const _0x2f70b8=_0x215848??(this['state'][_0x2a1081(0x2f2)]===_0x2a1081(0x229)?_0x25a12b['address']:void 0x0),_0x4d40f1=Math[_0x2a1081(0x210)](0x0,u({...this['state'],'items':_0x25a12b['items']})[_0x2a1081(0x297)](_0x41f93c=>_0x41f93c['id']===_0x2f70b8));this['update']({'items':_0x25a12b[_0x2a1081(0x2a9)],'note':_0x25a12b[_0x2a1081(0x1fe)],'cursor':_0x25a12b[_0x2a1081(0x344)],'total':_0x25a12b[_0x2a1081(0x30a)]??(_0x25a12b[_0x2a1081(0x344)]?null:_0x25a12b[_0x2a1081(0x2a9)][_0x2a1081(0x268)]),'since':_0x25a12b['since']??null,'selected':_0x4d40f1,'address':Object['hasOwn'](_0x25a12b,_0x2a1081(0x2dd))?_0x25a12b[_0x2a1081(0x2dd)]:this[_0x2a1081(0x299)][_0x2a1081(0x2dd)]}),this[_0x2a1081(0x299)]['view']===_0x2a1081(0x2f4)&&(this[_0x2a1081(0x1d7)]=Date[_0x2a1081(0x2b0)]());}),this[_0x1e0495(0x27e)]||await this[_0x1e0495(0x2d5)](this[_0x1e0495(0x299)]['view']===_0x1e0495(0x229));}async[_0x54dc1e(0x335)](){const _0x365c9e=_0x54dc1e,_0x237d7c=this['state'];this[_0x365c9e(0x27e)]||_0x237d7c[_0x365c9e(0x35e)]||_0x237d7c['refreshing']||_0x237d7c[_0x365c9e(0x353)]||_0x237d7c[_0x365c9e(0x2d7)]||_0x237d7c[_0x365c9e(0x33c)]||_0x237d7c[_0x365c9e(0x2d3)]||_0x237d7c[_0x365c9e(0x237)]||_0x237d7c[_0x365c9e(0x352)]||(_0x237d7c['view']==='explore'&&_0x237d7c[_0x365c9e(0x205)]!==null&&Date[_0x365c9e(0x2b0)]()-this['lastExploreRefresh']>=x?await this[_0x365c9e(0x35f)]():_0x237d7c[_0x365c9e(0x2f2)]===_0x365c9e(0x30b)&&!_0x237d7c[_0x365c9e(0x226)]&&['running',_0x365c9e(0x22b),_0x365c9e(0x275),_0x365c9e(0x329)][_0x365c9e(0x260)](this['selected']()?.[_0x365c9e(0x299)])&&await this['loadDetail'](!0x0));}async[_0x54dc1e(0x35f)](){const _0x4b152f=_0x54dc1e,_0x3b805b=new AbortController();this['refreshRequest']=_0x3b805b,this['lastExploreRefresh']=Date[_0x4b152f(0x2b0)](),this[_0x4b152f(0x367)]({'refreshing':!0x0});try{const _0xf2448f=await this[_0x4b152f(0x22f)][_0x4b152f(0x203)](this[_0x4b152f(0x299)][_0x4b152f(0x310)],this[_0x4b152f(0x299)]['since'],_0x3b805b[_0x4b152f(0x2cd)]);if(this['refreshRequest']!==_0x3b805b||this['closed'])return;const _0x32f91d=this[_0x4b152f(0x305)]()?.['id'],_0x5631c0=this['state'][_0x4b152f(0x2a9)]['at'](-0x1)?.['createdAt'],_0x1d1dc5=new Map(this['state'][_0x4b152f(0x2a9)]['map'](_0x48633=>[_0x48633['id'],_0x48633]));for(const _0x11b590 of _0xf2448f[_0x4b152f(0x2a9)]){const _0x39a45c=_0x1d1dc5['get'](_0x11b590['id']);_0x39a45c&&_0x11b590['updatedAt']<_0x39a45c[_0x4b152f(0x239)]||(_0x1d1dc5[_0x4b152f(0x2ba)](_0x11b590['id'])||!_0x5631c0||_0x11b590[_0x4b152f(0x1c1)]>=_0x5631c0)&&_0x1d1dc5[_0x4b152f(0x23f)](_0x11b590['id'],_0x11b590);}const _0x1727de=[..._0x1d1dc5['values']()]['sort']((_0x1d5724,_0x4c532c)=>_0x4c532c['createdAt'][_0x4b152f(0x36d)](_0x1d5724['createdAt'])),_0x347772=Math[_0x4b152f(0x210)](0x0,_0x1727de[_0x4b152f(0x297)](_0x415634=>_0x415634['id']===_0x32f91d));this['update']({'items':_0x1727de,'selected':_0x347772,'since':_0xf2448f[_0x4b152f(0x205)],'total':_0xf2448f[_0x4b152f(0x30a)]??(this[_0x4b152f(0x299)][_0x4b152f(0x344)]?null:_0x1727de[_0x4b152f(0x268)]),'refreshError':null}),await this[_0x4b152f(0x2d5)](!0x0);}catch(_0x5a6fc7){this[_0x4b152f(0x269)]===_0x3b805b&&!this[_0x4b152f(0x27e)]&&this[_0x4b152f(0x367)]({'refreshError':_0x4b152f(0x1c9)+_0x5a6fc7[_0x4b152f(0x1f3)]});}finally{this[_0x4b152f(0x269)]===_0x3b805b&&(this['refreshRequest']=null,this['update']({'refreshing':!0x1}));}}async[_0x54dc1e(0x1fd)](){const _0x41db0e=_0x54dc1e;this[_0x41db0e(0x299)][_0x41db0e(0x2f2)]!==_0x41db0e(0x2f4)||!this['state'][_0x41db0e(0x344)]||await this[_0x41db0e(0x36b)]('Loading\x20older\x20tasks...',async _0x3db5c6=>{const _0x17bffc=_0x41db0e,_0x282ed1=await this[_0x17bffc(0x22f)][_0x17bffc(0x2f4)](this[_0x17bffc(0x299)][_0x17bffc(0x310)],this[_0x17bffc(0x299)][_0x17bffc(0x344)],_0x3db5c6),_0x2e3830=new Set(this['state']['items']['map'](_0x4cc1d8=>_0x4cc1d8['id'])),_0x2d22f0=this[_0x17bffc(0x299)][_0x17bffc(0x2a9)][_0x17bffc(0x262)](_0x282ed1[_0x17bffc(0x2a9)][_0x17bffc(0x33a)](_0x5c13b6=>!_0x2e3830['has'](_0x5c13b6['id'])));this['update']({'items':_0x2d22f0,'cursor':_0x282ed1[_0x17bffc(0x344)],'total':this[_0x17bffc(0x299)][_0x17bffc(0x30a)]??(_0x282ed1[_0x17bffc(0x344)]?null:_0x2d22f0[_0x17bffc(0x268)])});});}async[_0x54dc1e(0x2d5)](_0x374c27=!0x1){const _0x3189ab=_0x54dc1e;clearTimeout(this[_0x3189ab(0x2ad)]),this[_0x3189ab(0x2ad)]=null;const _0x16cfaa=this[_0x3189ab(0x305)]();if(this[_0x3189ab(0x299)][_0x3189ab(0x2f2)]===_0x3189ab(0x229)&&!_0x16cfaa)return;const _0x153e55=++this[_0x3189ab(0x26b)];if(this[_0x3189ab(0x326)]?.[_0x3189ab(0x2f5)](),this[_0x3189ab(0x326)]=new AbortController(),this[_0x3189ab(0x367)]({'detail':_0x374c27?this[_0x3189ab(0x299)]['detail']:null,'result':_0x374c27?this[_0x3189ab(0x299)]['result']:null,'detailLoading':!!_0x16cfaa,'scroll':_0x374c27?this[_0x3189ab(0x299)]['scroll']:0x0}),!!_0x16cfaa)try{const _0xb4f117=this[_0x3189ab(0x299)]['view']===_0x3189ab(0x229)?await this[_0x3189ab(0x22f)][_0x3189ab(0x229)](this['detailRequest'][_0x3189ab(0x2cd)],_0x16cfaa[_0x3189ab(0x2dd)]):this[_0x3189ab(0x299)][_0x3189ab(0x2f2)]==='workers'?_0x16cfaa[_0x3189ab(0x2fa)]===_0x3189ab(0x346)?_0x16cfaa:_0x16cfaa['installed']?await this[_0x3189ab(0x22f)]['command']([_0x3189ab(0x25d),_0x3189ab(0x321)],_0x16cfaa,this[_0x3189ab(0x326)][_0x3189ab(0x2cd)]):{'notInstalled':!0x0}:await this[_0x3189ab(0x22f)][_0x3189ab(0x27d)](_0x16cfaa,this['detailRequest']['signal']);if(_0x153e55===this[_0x3189ab(0x26b)]){const _0x1abc1a=_0xb4f117[_0x3189ab(0x299)]??(_0x16cfaa[_0x3189ab(0x2f6)]?void 0x0:_0xb4f117[_0x3189ab(0x321)]),_0x2784e6=this[_0x3189ab(0x299)][_0x3189ab(0x2a9)][_0x3189ab(0x2cf)](_0x1b1cdb=>_0x1b1cdb['id']===_0x16cfaa['id']&&_0x1abc1a?{..._0x1b1cdb,'state':_0x1abc1a,..._0xb4f117[_0x3189ab(0x239)]?{'updatedAt':_0xb4f117[_0x3189ab(0x239)]}:{},...'canCancel'in _0xb4f117?{'canCancel':_0xb4f117[_0x3189ab(0x26e)],'canDelete':_0xb4f117[_0x3189ab(0x24a)],'canResume':_0xb4f117[_0x3189ab(0x2c1)]}:{}}:_0x1b1cdb),_0x5b18f8=u({...this['state'],'items':_0x2784e6})['findIndex'](_0xb3d73f=>_0xb3d73f['id']===_0x16cfaa['id']);this[_0x3189ab(0x367)]({'detail':_0x5b18f8<0x0?null:_0xb4f117,'detailLoading':!0x1,'items':_0x2784e6,'selected':Math[_0x3189ab(0x210)](0x0,_0x5b18f8)}),_0x5b18f8<0x0&&this[_0x3189ab(0x2d5)]();}}catch(_0x176cdd){_0x153e55===this[_0x3189ab(0x26b)]&&this['update']({'detailLoading':!0x1,'error':_0x176cdd['message']});}}[_0x54dc1e(0x253)](_0x533912){const _0x5bc5ce=_0x54dc1e,_0x119de6=u(this[_0x5bc5ce(0x299)])[_0x5bc5ce(0x268)],_0x49c976=Math[_0x5bc5ce(0x210)](0x0,Math[_0x5bc5ce(0x298)](_0x119de6-0x1,this[_0x5bc5ce(0x299)][_0x5bc5ce(0x305)]+_0x533912));_0x49c976!==this[_0x5bc5ce(0x299)][_0x5bc5ce(0x305)]&&(clearTimeout(this[_0x5bc5ce(0x2ad)]),++this['detailVersion'],this[_0x5bc5ce(0x326)]?.['abort'](),this[_0x5bc5ce(0x367)]({'selected':_0x49c976,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this['state'][_0x5bc5ce(0x2f2)]===_0x5bc5ce(0x35b)?this[_0x5bc5ce(0x2d5)]():this[_0x5bc5ce(0x2ad)]=setTimeout(()=>{const _0x20db69=_0x5bc5ce;this[_0x20db69(0x2d5)]();},0x78)),_0x533912>0x0&&_0x49c976===_0x119de6-0x1&&this['more']();}['cycleFilter'](){const _0x1ef1ed=_0x54dc1e;this[_0x1ef1ed(0x367)]({'filter':p[(p[_0x1ef1ed(0x281)](this['state']['filter'])+0x1)%p['length']],'selected':0x0}),this[_0x1ef1ed(0x2d5)]();}async[_0x54dc1e(0x2d9)](_0x52afbb){const _0x38f96d=_0x54dc1e,_0x5de2f2=h[(h[_0x38f96d(0x281)](this['state']['tab'])+_0x52afbb+h[_0x38f96d(0x268)])%h[_0x38f96d(0x268)]];this['update']({'tab':_0x5de2f2,'scroll':0x0}),_0x5de2f2===_0x38f96d(0x202)&&await this['files']();}async['files'](){const _0x277871=_0x54dc1e,_0x20bce2=this[_0x277871(0x305)]();_0x20bce2?.[_0x277871(0x2f6)]&&(this['detailTimer']&&this['loadDetail'](!0x0),this[_0x277871(0x367)]({'tab':'Files','focus':_0x277871(0x27d),'scroll':0x0}),await this[_0x277871(0x36b)](_0x277871(0x26d),async _0x4056a4=>{const _0x9a44d9=_0x277871;this[_0x9a44d9(0x367)]({'result':await this[_0x9a44d9(0x22f)][_0x9a44d9(0x1e4)](_0x20bce2[_0x9a44d9(0x2f6)],_0x4056a4)});}));}['showForm'](_0x47fe3e,_0x18c614,_0x3751ed,{onCancel:_0x4adba7,submit:_0x3c9726='Continue'}={}){const _0x496e89=_0x54dc1e;this['cancelAutoRefresh'](),this['formSubmit']=_0x3751ed,this['formCancel']=_0x4adba7,this[_0x496e89(0x367)]({'form':{'title':_0x47fe3e,'fields':_0x18c614,'values':Object[_0x496e89(0x22e)](_0x18c614['map'](_0x2f3cfc=>[_0x2f3cfc[_0x496e89(0x21e)],_0x2f3cfc['value']??''])),'field':0x0,'submit':_0x3c9726,'error':null},'menu':null});}[_0x54dc1e(0x339)](_0x1cd6a9){const _0xb3586f=_0x54dc1e,_0x22f651=this['state']['form'],_0x3bca11=_0x22f651[_0xb3586f(0x2ed)][_0x22f651[_0xb3586f(0x278)]][_0xb3586f(0x21e)];this['update']({'form':{..._0x22f651,'values':{..._0x22f651['values'],[_0x3bca11]:_0x1cd6a9},'error':null}});}['nextField'](_0x1a72b6=!0x1){const _0x420af2=_0x54dc1e,_0x412e6a=this[_0x420af2(0x299)][_0x420af2(0x2d7)];this[_0x420af2(0x367)]({'form':{..._0x412e6a,'field':(_0x412e6a[_0x420af2(0x278)]+(_0x1a72b6?-0x1:0x1)+_0x412e6a['fields'][_0x420af2(0x268)])%_0x412e6a[_0x420af2(0x2ed)][_0x420af2(0x268)]}});}async[_0x54dc1e(0x28d)](){const _0x581afe=_0x54dc1e,{values:_0x7efc3}=this['state']['form'];try{await this[_0x581afe(0x368)](_0x7efc3);}catch(_0x3d266e){this[_0x581afe(0x367)]({'form':{...this[_0x581afe(0x299)]['form'],'error':_0x3d266e[_0x581afe(0x1f3)]}});}}[_0x54dc1e(0x28f)](){const _0x3dbd38=_0x54dc1e,_0x526d39=this[_0x3dbd38(0x214)];this[_0x3dbd38(0x367)]({'form':null}),_0x526d39&&_0x526d39();}['search'](){const _0x58b990=_0x54dc1e,_0x478d58=this[_0x58b990(0x299)][_0x58b990(0x2f2)]==='workers';this['showForm'](_0x478d58?_0x58b990(0x227):_0x58b990(0x302),[{'name':'query','label':_0x478d58?'Worker\x20ID,\x20runtime\x20or\x20skill':'Keyword\x20or\x20task\x20ID','value':this[_0x58b990(0x299)][_0x58b990(0x310)]}],async({query:_0x4ba779})=>{const _0x3917db=_0x58b990;this['update']({'query':_0x4ba779,'selected':0x0,'form':null}),this[_0x3917db(0x299)][_0x3917db(0x2f2)]==='explore'?await this[_0x3917db(0x1f2)]():await this['loadDetail']();},{'submit':_0x58b990(0x2e4)});}[_0x54dc1e(0x236)](_0x2222f0=null){const _0x1df867=_0x54dc1e;this[_0x1df867(0x1d1)]={'id':_0x33845d(),'objective':'','parent':_0x2222f0},this[_0x1df867(0x21c)]();}['continueTask'](){const _0x3b077c=_0x54dc1e,_0x3e43f8=this[_0x3b077c(0x305)]();this[_0x3b077c(0x299)][_0x3b077c(0x2f2)]!==_0x3b077c(0x30b)||!_0x3e43f8?.['jobId']||this['create'](_0x3e43f8[_0x3b077c(0x2f6)]);}['editDraft'](){const _0x2facdd=_0x54dc1e;this[_0x2facdd(0x1d1)]&&(this[_0x2facdd(0x349)](this[_0x2facdd(0x1d1)][_0x2facdd(0x1d3)]?_0x2facdd(0x215):_0x2facdd(0x2e7),[{'name':_0x2facdd(0x2ff),'label':this[_0x2facdd(0x1d1)][_0x2facdd(0x1d3)]?_0x2facdd(0x1cf):'What\x20would\x20you\x20like\x20to\x20get\x20done?','value':this[_0x2facdd(0x1d1)][_0x2facdd(0x2ff)],'placeholder':_0x2facdd(0x31e)}],async({objective:_0xd1f9cd})=>{const _0x493fb2=_0x2facdd;if(!_0xd1f9cd[_0x493fb2(0x361)]())throw new Error('Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.');const _0x5685ff=_0xd1f9cd['trim']()!==this[_0x493fb2(0x1d1)][_0x493fb2(0x2ff)];this['draft']={...this[_0x493fb2(0x1d1)],'objective':_0xd1f9cd['trim'](),..._0x5685ff&&this[_0x493fb2(0x1d1)][_0x493fb2(0x357)]?{'id':_0x33845d(),'createdAt':void 0x0}:{},..._0x5685ff?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x493fb2(0x367)]({'form':null}),await this[_0x493fb2(0x1f5)]();},{'submit':_0x2facdd(0x293)}),this[_0x2facdd(0x367)]({'form':{...this['state'][_0x2facdd(0x2d7)],'hint':_0x2facdd(0x274)}}));}[_0x54dc1e(0x1d8)](_0x49e492){return new Promise(_0x15bc59=>{const _0x471966=_0x2901;this[_0x471966(0x1d2)]=_0x15bc59,this[_0x471966(0x349)](_0x471966(0x2e6),_0x49e492[_0x471966(0x2cf)]((_0x1e69f8,_0x36c032)=>({'name':String(_0x36c032),'label':_0x1e69f8})),_0x308d20=>{const _0x59f1d6=_0x471966;this['update']({'form':null}),this[_0x59f1d6(0x1d2)]=null,_0x15bc59(Object['values'](_0x308d20));},{'onCancel':()=>{const _0x52d2cb=_0x471966;this[_0x52d2cb(0x1d2)]=null,_0x15bc59([]);}});});}[_0x54dc1e(0x33c)](_0x250405){return new Promise(_0x16c616=>{const _0x2fbfe2=_0x2901;this[_0x2fbfe2(0x231)]=_0x16c616;const _0x4ce054=_0x250405[_0x2fbfe2(0x22c)]??(_0x250405[_0x2fbfe2(0x1f3)]!==void 0x0?[String(_0x250405['message'])]:[]);this['update']({'confirm':{..._0x250405,'lines':_0x4ce054,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}[_0x54dc1e(0x2df)](_0x5c2594){const _0x108995=_0x54dc1e,_0x556b2a=this['state'][_0x108995(0x33c)],_0x19d297=_0x556b2a[_0x108995(0x334)]?0x3:0x2,_0x1403df=(_0x556b2a['selection']+_0x5c2594+_0x19d297)%_0x19d297;this['update']({'confirm':{..._0x556b2a,'selection':_0x1403df,'accepted':_0x1403df===_0x19d297-0x1}});}[_0x54dc1e(0x2c2)](){const _0x1310ca=_0x54dc1e,_0x4a6adb=this[_0x1310ca(0x299)][_0x1310ca(0x33c)];_0x4a6adb['extraAction']&&_0x4a6adb['selection']===0x1?_0x4a6adb[_0x1310ca(0x334)][_0x1310ca(0x36b)]():this[_0x1310ca(0x2ee)](_0x4a6adb[_0x1310ca(0x216)]);}async[_0x54dc1e(0x324)](_0x227ef6){const _0x31032d=_0x54dc1e;if(!await this[_0x31032d(0x33c)]({'title':_0x31032d(0x2f9),'message':_0x227ef6?.[_0x31032d(0x1f3)]??''}))throw f();}[_0x54dc1e(0x2ee)](_0x1a59e4){const _0x4b24a6=_0x54dc1e,_0x1af92f=this[_0x4b24a6(0x231)];this[_0x4b24a6(0x231)]=null,this[_0x4b24a6(0x367)]({'confirm':null}),_0x1af92f(_0x1a59e4);}[_0x54dc1e(0x2fe)](_0x2654af={}){return async _0x30ceb0=>{const _0x3a287e=_0x2901,_0x4db637=await this['confirm']({'title':_0x3a287e(0x35c),'payment':_0x4fdf79(_0x30ceb0),'extraAction':{'label':_0x3a287e(0x23c),'run':()=>this[_0x3a287e(0x2ee)]('change')},..._0x2654af});if(_0x4db637===_0x3a287e(0x292))throw P();if(!_0x4db637)throw f();};}async[_0x54dc1e(0x25a)]({action:_0x500e73,signal:_0x3c9789,prefer:_0x4131ae}){const _0x2ca232=_0x54dc1e,_0x478cb9=await this['withFundingRetry'](()=>this[_0x2ca232(0x22f)][_0x2ca232(0x284)]({'action':_0x500e73,'signal':_0x3c9789,'prefer':_0x4131ae}));return{'choice':_0x478cb9,'payment':{'paymentChain':_0x478cb9[_0x2ca232(0x1de)],'payWith':_0x478cb9[_0x2ca232(0x340)]}};}async['pickPayment']({action:_0x31aaff,signal:_0x31f93d,current:_0x84438}){const _0x271663=_0x54dc1e;this[_0x271663(0x367)]({'busy':_0x271663(0x263)});const {networks:_0x22194a}=await this[_0x271663(0x22f)][_0x271663(0x2db)]({'action':_0x31aaff,'signal':_0x31f93d}),_0x53d427=_0x22194a[_0x271663(0x2b1)](_0x40cd0f=>(_0x40cd0f[_0x271663(0x2c8)]??[])['filter'](_0xd7935f=>_0xd7935f[_0x271663(0x369)])[_0x271663(0x2cf)](_0x12414e=>({'paymentChain':_0x40cd0f[_0x271663(0x2a4)],'payWith':_0x12414e[_0x271663(0x251)],'chainName':_0x40cd0f[_0x271663(0x2d6)],'option':_0x12414e})));return new Promise(_0xf26014=>{const _0x22da15=_0x271663,_0x5f2603=_0x53d427[_0x22da15(0x2cf)](_0x34de5f=>({'label':A(_0x34de5f,_0x84438),'run':()=>_0xf26014({'paymentChain':_0x34de5f[_0x22da15(0x1de)],'payWith':_0x34de5f[_0x22da15(0x340)]})}));_0x5f2603[_0x22da15(0x268)]||_0x5f2603['push']({'label':_0x22da15(0x330),'run':()=>_0xf26014(_0x84438)}),this[_0x22da15(0x1e3)](_0x53d427[_0x22da15(0x268)]>0x1?_0x22da15(0x1e2):_0x22da15(0x21f),_0x5f2603,{'onCancel':()=>_0xf26014(_0x84438)});});}async['publishDraft'](){const _0x1c8c90=_0x54dc1e,_0x14953d=await this[_0x1c8c90(0x36b)](_0x1c8c90(0x263),async _0xccd41e=>{const _0x976d39=_0x1c8c90,_0xfed86=this[_0x976d39(0x1d1)];_0xfed86[_0x976d39(0x357)]||Object[_0x976d39(0x2da)](_0xfed86,await this['services'][_0x976d39(0x2d2)](_0xfed86));const _0x2fe8d6=_0xfed86[_0x976d39(0x1d3)]?_0x976d39(0x280):_0x976d39(0x1f9);let _0x48b1bf;try{if(!_0xfed86['requestKey']){const _0x3c65ae=await this[_0x976d39(0x25a)]({'action':_0x2fe8d6,'signal':_0xccd41e,'prefer':_0xfed86['payment']});_0x48b1bf=_0x3c65ae[_0x976d39(0x2ec)],_0xfed86[_0x976d39(0x300)]=_0x3c65ae['payment'];}}catch(_0xaecbea){if(_0xaecbea[_0x976d39(0x2a8)]!==_0x976d39(0x2e3))throw _0xaecbea;return{'status':_0x976d39(0x1d1),'setupWallet':await this['confirm']({'title':_0x976d39(0x28b),'lines':[_0x976d39(0x35d),_0x976d39(0x24e)],'acceptLabel':_0x976d39(0x25e),'cancelLabel':'Back\x20to\x20My\x20tasks'}),'draftId':_0xfed86['id']};}this[_0x976d39(0x367)]({'busy':'Understanding\x20your\x20request...'});const _0x3ca868=_0xfed86['parent']?await this['services'][_0x976d39(0x27d)]({'jobId':_0xfed86[_0x976d39(0x1d3)]},_0xccd41e):null,_0x3e7beb=_0xfed86[_0x976d39(0x2b4)]??await this[_0x976d39(0x22f)]['plan']({'objective':_0xfed86['objective'],'parent':_0x3ca868,'signal':_0xccd41e,'ask':_0x1cdb54=>this[_0x976d39(0x1d8)](_0x1cdb54),'onProgress':_0x5424cc=>{const _0x4fad8f=_0x976d39;this[_0x4fad8f(0x367)](_0x5424cc[_0x4fad8f(0x1ea)]==='loaded'?{'busy':_0x4fad8f(0x1ed),'modelProgress':null}:{'busy':_0x4fad8f(0x338),'modelProgress':_0x5424cc});}});if(_0xccd41e[_0x976d39(0x20b)](),!_0x3e7beb[_0x976d39(0x2e1)])throw new Error(_0x3e7beb[_0x976d39(0x1c3)][_0x976d39(0x240)]('\x0a')||'This\x20request\x20is\x20not\x20supported.');for(_0xfed86[_0x976d39(0x2b4)]=_0x3e7beb,_0xfed86[_0x976d39(0x357)]||Object[_0x976d39(0x2da)](_0xfed86,await this['services'][_0x976d39(0x2d2)](_0xfed86)),this[_0x976d39(0x367)]({'busy':_0x976d39(0x291)});;)try{const _0x2ed460=await this['withFundingRetry'](()=>this[_0x976d39(0x22f)][_0x976d39(0x2fb)]({'input':_0x3e7beb['input'],'action':_0x2fe8d6,'paymentChain':_0xfed86[_0x976d39(0x300)]?.[_0x976d39(0x1de)],'payWith':_0xfed86['payment']?.[_0x976d39(0x340)],'expectedWallet':_0x48b1bf?.['address'],'requestKey':_0xfed86[_0x976d39(0x357)]??_0xfed86['id'],'onSaved':async _0x52ac58=>{const _0x5b7334=_0x976d39;_0xfed86[_0x5b7334(0x357)]=_0x52ac58[_0x5b7334(0x357)],await this[_0x5b7334(0x22f)][_0x5b7334(0x200)](_0xfed86['id']);},'plan':{'summary':_0x3e7beb['summary'],'deliverables':_0x3e7beb[_0x976d39(0x271)]},'signal':_0xccd41e,'chooseSupport':_0x38cf5a=>this[_0x976d39(0x31f)](_0x38cf5a),'onProgress':_0x3cdb01=>this[_0x976d39(0x23d)](_0x3cdb01),'confirmReplacement':_0x335a05=>this[_0x976d39(0x324)](_0x335a05),'confirm':this[_0x976d39(0x2fe)]()}));return this[_0x976d39(0x2bf)](_0x2ed460),_0x2ed460;}catch(_0xf411ce){if(_0xf411ce[_0x976d39(0x2a8)]!==_0x976d39(0x28c))throw _0xf411ce;_0xfed86[_0x976d39(0x300)]=await this[_0x976d39(0x21d)]({'action':_0x2fe8d6,'signal':_0xccd41e,'current':_0xfed86[_0x976d39(0x300)]}),this['update']({'busy':_0x976d39(0x33b)});}});if(!this[_0x1c8c90(0x27e)]&&_0x14953d?.[_0x1c8c90(0x321)]==='draft')await this[_0x1c8c90(0x241)](_0x14953d[_0x1c8c90(0x365)]?_0x1c8c90(0x229):_0x1c8c90(0x30b)),this[_0x1c8c90(0x367)]({'notice':_0x1c8c90(0x34d)}),_0x14953d[_0x1c8c90(0x365)]&&this[_0x1c8c90(0x351)]();else{if(!this['closed']&&_0x14953d?.[_0x1c8c90(0x321)]===_0x1c8c90(0x1dc)&&_0x14953d['state'][_0x1c8c90(0x2f6)]){await this[_0x1c8c90(0x241)](_0x1c8c90(0x30b));const _0xa4a5b1=this['state']['items'][_0x1c8c90(0x297)](_0x197d3e=>_0x197d3e[_0x1c8c90(0x2f6)]===_0x14953d[_0x1c8c90(0x299)][_0x1c8c90(0x2f6)]);_0xa4a5b1>=0x0&&(this[_0x1c8c90(0x367)]({'selected':_0xa4a5b1}),await this[_0x1c8c90(0x2d5)]()),this[_0x1c8c90(0x367)]({'notice':_0x1c8c90(0x356)+_0x14953d[_0x1c8c90(0x299)][_0x1c8c90(0x2f6)]});}}}[_0x54dc1e(0x23d)](_0x32187a){const _0x3f8d20=_0x54dc1e,_0x276545=typeof _0x32187a?.[_0x3f8d20(0x1f3)]==_0x3f8d20(0x252)?_0x32187a[_0x3f8d20(0x1f3)][_0x3f8d20(0x361)]():'';_0x276545&&this[_0x3f8d20(0x367)]({'busy':_0x276545});}async[_0x54dc1e(0x366)](_0x53eac6){const _0x5384af=_0x54dc1e;for(;;)try{return await _0x53eac6();}catch(_0x52c61c){if(_0x52c61c[_0x5384af(0x2a8)]!==_0x5384af(0x303))throw _0x52c61c;if(!await this['confirm']({'title':_0x5384af(0x33e),'lines':_0x9fa9bc(_0x52c61c[_0x5384af(0x31a)]),'acceptLabel':_0x5384af(0x2c0),'cancelLabel':'Back','extraAction':{'label':_0x5384af(0x2e0),'run':()=>this[_0x5384af(0x2d0)](_0x52c61c[_0x5384af(0x31a)])}}))throw f();this[_0x5384af(0x367)]({'busy':_0x5384af(0x261)});}}[_0x54dc1e(0x2bf)]({state:_0x22e113,status:_0x2accca,check:_0x4c6899}){const _0x1e1f5f=_0x54dc1e;if(_0x2accca==='admitted'&&_0x22e113[_0x1e1f5f(0x2f6)])this[_0x1e1f5f(0x1d1)]=null,this[_0x1e1f5f(0x367)]({'notice':_0x1e1f5f(0x356)+_0x22e113[_0x1e1f5f(0x2f6)]+_0x1e1f5f(0x36e)});else{if(_0x2accca==='blocked')this[_0x1e1f5f(0x367)]({'error':_0x1e1f5f(0x316)+_0x4c6899[_0x1e1f5f(0x2a0)][_0x1e1f5f(0x2cf)](_0x22e8dd=>_0x22e8dd['detail']??_0x22e8dd['code'])['join']('\x0a')});else{if(_0x2accca==='refused')this['update']({'error':_0x1e1f5f(0x235)+(_0x22e113[_0x1e1f5f(0x32b)]??[])[_0x1e1f5f(0x2cf)](_0x4b63e9=>_0x4b63e9['detail']??_0x4b63e9[_0x1e1f5f(0x2a8)])['join']('\x0a')+_0x1e1f5f(0x1f6)+_0x22e113[_0x1e1f5f(0x2b7)]});else{if(S[_0x1e1f5f(0x2ba)](_0x2accca)){const _0x947cc=[_0x1e1f5f(0x25c),_0x1e1f5f(0x35d),_0x1e1f5f(0x24d)],_0x3dd039=_0x22e113?.[_0x1e1f5f(0x309)]??_0x22e113?.['transaction'];_0x3dd039?.[_0x1e1f5f(0x20e)]&&_0x947cc[_0x1e1f5f(0x1c8)]('Transaction:\x20'+_0x3dd039[_0x1e1f5f(0x20e)]),_0x3dd039?.[_0x1e1f5f(0x247)]&&_0x947cc[_0x1e1f5f(0x1c8)](_0x1e1f5f(0x277)+_0x3dd039['explorerUrl']),this[_0x1e1f5f(0x367)]({'error':_0x947cc[_0x1e1f5f(0x240)]('\x0a')});}else this[_0x1e1f5f(0x367)]({'error':_0x1e1f5f(0x259)+_0x2accca+_0x1e1f5f(0x201)});}}}}async[_0x54dc1e(0x364)](){const _0x2af62b=_0x54dc1e,_0x40cd23=this['selected']();if(this[_0x2af62b(0x299)][_0x2af62b(0x2f2)]==='tasks'&&_0x40cd23?.[_0x2af62b(0x1d4)]){const _0x22876d=await this[_0x2af62b(0x36b)]('Opening\x20draft...',()=>this[_0x2af62b(0x22f)][_0x2af62b(0x2ef)](_0x40cd23['draftId']));_0x22876d&&(this[_0x2af62b(0x1d1)]=_0x22876d,this[_0x2af62b(0x21c)]());return;}this[_0x2af62b(0x299)]['view']!==_0x2af62b(0x30b)||!_0x40cd23?.[_0x2af62b(0x357)]||_0x40cd23[_0x2af62b(0x2f6)]||!_0x40cd23['canResume']||(this[_0x2af62b(0x1d1)]=null,await this[_0x2af62b(0x36b)]('Checking\x20the\x20saved\x20order...',async _0x1e9870=>{const _0x5d131e=_0x2af62b;let _0x3f6d94,_0x337f5a,_0x2a8125;if(_0x40cd23[_0x5d131e(0x26e)]){const _0x49a152=await this['services'][_0x5d131e(0x27d)](_0x40cd23,_0x1e9870);_0x2a8125=_0x49a152['action']??'job.open',this[_0x5d131e(0x367)]({'busy':_0x5d131e(0x263)}),_0x3f6d94=(await this['autoPayment']({'action':_0x2a8125,'signal':_0x1e9870,'prefer':{'paymentChain':_0x49a152[_0x5d131e(0x1de)]??_0x5d131e(0x2be),'payWith':_0x49a152[_0x5d131e(0x340)]??_0x5d131e(0x2ce)}}))[_0x5d131e(0x300)],_0x337f5a=this[_0x5d131e(0x2fe)]({'title':_0x5d131e(0x30d)});}for(;;)try{this[_0x5d131e(0x2bf)](await this[_0x5d131e(0x366)](()=>this[_0x5d131e(0x22f)]['resume'](_0x40cd23,_0x61fc84=>this['confirm'](_0x61fc84),_0x1e9870,_0x24fc2b=>this[_0x5d131e(0x31f)](_0x24fc2b),_0x50248c=>this[_0x5d131e(0x23d)](_0x50248c),_0x40d271=>this[_0x5d131e(0x324)](_0x40d271),{'payment':_0x3f6d94,'review':_0x337f5a})));return;}catch(_0x3a8323){if(_0x3a8323[_0x5d131e(0x2a8)]!=='change_payment')throw _0x3a8323;_0x3f6d94=await this[_0x5d131e(0x21d)]({'action':_0x2a8125,'signal':_0x1e9870,'current':_0x3f6d94}),this['update']({'busy':'Preparing\x20the\x20payment\x20review...'});}}));}[_0x54dc1e(0x2bc)](){const _0x33c3b6=_0x54dc1e,_0x594cde=this['selected']();if(this[_0x33c3b6(0x299)][_0x33c3b6(0x2f2)]!==_0x33c3b6(0x30b)||!_0x594cde)return;const _0x329a33=[{'label':'View\x20details','run':()=>this[_0x33c3b6(0x367)]({'focus':_0x33c3b6(0x27d),'tab':'Overview','scroll':0x0})}];_0x594cde[_0x33c3b6(0x1d4)]?_0x329a33[_0x33c3b6(0x1c8)]({'label':_0x33c3b6(0x32d),'run':()=>this[_0x33c3b6(0x364)]()},{'label':_0x33c3b6(0x1c6),'run':()=>this['deleteTaskDraft']()}):_0x594cde[_0x33c3b6(0x2f6)]?(_0x329a33[_0x33c3b6(0x1c8)]({'label':_0x33c3b6(0x322),'run':()=>this[_0x33c3b6(0x242)]()},{'label':_0x33c3b6(0x2ac),'run':()=>this['download']()}),_0x594cde[_0x33c3b6(0x299)]==='completed'&&_0x329a33[_0x33c3b6(0x1c8)]({'label':_0x33c3b6(0x2b2),'run':()=>this['continueTask']()})):_0x594cde[_0x33c3b6(0x357)]&&(_0x594cde[_0x33c3b6(0x2c1)]&&_0x329a33[_0x33c3b6(0x1c8)]({'label':_0x594cde['canCancel']?_0x33c3b6(0x232):'Inspect\x20/\x20resume\x20saved\x20order','run':()=>this[_0x33c3b6(0x364)]()}),_0x594cde[_0x33c3b6(0x26e)]&&_0x329a33['push']({'label':'Cancel\x20request','run':()=>this[_0x33c3b6(0x313)]()}),_0x594cde[_0x33c3b6(0x24a)]&&_0x329a33[_0x33c3b6(0x1c8)]({'label':'Delete\x20local\x20record','run':()=>this['deleteRequest']()})),this[_0x33c3b6(0x1e3)](_0x33c3b6(0x2de),_0x329a33);}async[_0x54dc1e(0x35a)](){const _0xc7f544=_0x54dc1e,_0x13f38f=this[_0xc7f544(0x305)]();if(!_0x13f38f?.[_0xc7f544(0x1d4)]||!await this['confirm']({'title':_0xc7f544(0x204),'lines':[_0x13f38f[_0xc7f544(0x289)]],'acceptLabel':_0xc7f544(0x1c6),'cancelLabel':'Keep\x20draft'}))return;await this[_0xc7f544(0x36b)](_0xc7f544(0x2a1),()=>this[_0xc7f544(0x22f)]['deleteDraft'](_0x13f38f['draftId']))&&(this[_0xc7f544(0x1d1)]?.['id']===_0x13f38f[_0xc7f544(0x1d4)]&&(this[_0xc7f544(0x1d1)]=null),await this[_0xc7f544(0x1f2)]());}async[_0x54dc1e(0x313)](){const _0x38a684=_0x54dc1e,_0x10b527=this[_0x38a684(0x305)]();if(this[_0x38a684(0x299)][_0x38a684(0x2f2)]!=='tasks'||!_0x10b527?.[_0x38a684(0x26e)])return;let _0x164205=!0x1;await this[_0x38a684(0x36b)](_0x38a684(0x282),async()=>{const _0x3acb9c=_0x38a684;await this['confirm']({'title':_0x3acb9c(0x2d8),'lines':[_0x10b527[_0x3acb9c(0x289)],'',_0x3acb9c(0x2d1),_0x3acb9c(0x332),_0x3acb9c(0x234)],'acceptLabel':_0x3acb9c(0x30c),'cancelLabel':'Keep\x20request'})&&(await this[_0x3acb9c(0x22f)][_0x3acb9c(0x29d)](_0x10b527),_0x164205=!0x0);}),_0x164205&&!this[_0x38a684(0x27e)]&&(await this[_0x38a684(0x1f2)](),this[_0x38a684(0x367)]({'notice':_0x38a684(0x2bb)}));}async[_0x54dc1e(0x2b6)](){const _0x253bdd=_0x54dc1e,_0x21151f=this[_0x253bdd(0x305)]();if(this[_0x253bdd(0x299)][_0x253bdd(0x2f2)]!==_0x253bdd(0x30b)||!_0x21151f?.['canDelete'])return;let _0x12e9df=!0x1;await this[_0x253bdd(0x36b)](_0x253bdd(0x348),async()=>{const _0xe1882=_0x253bdd;await this[_0xe1882(0x22f)][_0xe1882(0x359)](_0x21151f),_0x12e9df=!0x0;}),_0x12e9df&&!this[_0x253bdd(0x27e)]&&(await this[_0x253bdd(0x1f2)](),this[_0x253bdd(0x367)]({'notice':'Local\x20record\x20deleted.'}));}[_0x54dc1e(0x36c)](){const _0xe35f68=_0x54dc1e,_0x6ad555=this[_0xe35f68(0x305)]();_0x6ad555?.['jobId']&&this['showForm'](_0xe35f68(0x1ca),[{'name':_0xe35f68(0x362),'label':_0xe35f68(0x358),'value':'./output/'+_0x6ad555['jobId']}],async({out:_0x4bb99e})=>{const _0x50e2dc=_0xe35f68;if(!_0x4bb99e[_0x50e2dc(0x361)]())throw new Error(_0x50e2dc(0x1ee));this[_0x50e2dc(0x367)]({'form':null}),await this[_0x50e2dc(0x36b)]('Downloading\x20verified\x20files...',async _0x1361f2=>{const _0x138ae4=_0x50e2dc,_0x2bb136=await this[_0x138ae4(0x22f)][_0x138ae4(0x36c)]({'id':_0x6ad555['jobId'],'out':_0x4bb99e,'signal':_0x1361f2,'onProgress':_0x4af2eb=>this[_0x138ae4(0x367)]({'busy':_0x138ae4(0x2b8)+_0x4af2eb[_0x138ae4(0x1db)]})});this[_0x138ae4(0x367)]({'notice':_0x138ae4(0x2b8)+_0x2bb136['files'][_0x138ae4(0x268)]+'\x20verified\x20files\x20to\x20'+_0x4bb99e});});},{'submit':_0xe35f68(0x31c)});}[_0x54dc1e(0x264)](){const _0x5bfa47=_0x54dc1e;this[_0x5bfa47(0x349)](_0x5bfa47(0x1d0),[{'name':_0x5bfa47(0x223),'label':_0x5bfa47(0x1c7)},{'name':_0x5bfa47(0x319),'label':_0x5bfa47(0x33f),'value':'22'},{'name':_0x5bfa47(0x29f),'label':_0x5bfa47(0x1eb)}],async _0x1fc17c=>{const _0x144598=_0x5bfa47,_0xe53855=_0x2f1c7d(_0x1fc17c);this['extraTargets'][_0x144598(0x355)](_0x3de57a=>_0x3de57a['id']===_0xe53855['id'])||this[_0x144598(0x1cb)][_0x144598(0x1c8)](_0xe53855),this['update']({'form':null}),await this[_0x144598(0x1f2)](),this['update']({'selected':this[_0x144598(0x299)][_0x144598(0x2a9)][_0x144598(0x297)](_0x506b63=>_0x506b63['id']===_0xe53855['id'])}),await this[_0x144598(0x2d5)]();},{'submit':_0x5bfa47(0x25f)});}[_0x54dc1e(0x1e3)](_0x187899,_0x4d25ac,{onCancel:_0x5c113c,selected:_0x887266=0x0}={}){const _0xeadbb4=_0x54dc1e;this['cancelAutoRefresh'](),this['menuCancel']=_0x5c113c??null,this[_0xeadbb4(0x367)]({'menu':{'title':_0x187899,'items':_0x4d25ac,'selected':_0x887266},'form':null});}[_0x54dc1e(0x31f)](_0x15c1f1){return new Promise((_0x90d3d5,_0x23a899)=>{const _0x1e6069=_0x2901;this[_0x1e6069(0x1e3)]('Choose\x20payment\x20\xB7\x20support\x20is\x20optional',_0x15c1f1[_0x1e6069(0x2cf)]((_0x870201,_0x42485a)=>({'label':_0x870201[_0x1e6069(0x36a)],'run':()=>_0x90d3d5(_0x42485a)})),{'onCancel':()=>_0x23a899(f()),'selected':_0x1d9d31});});}[_0x54dc1e(0x34e)](){const _0xa1a4a=_0x54dc1e,_0x34f8ff=this[_0xa1a4a(0x222)];this['menuCancel']=null,this[_0xa1a4a(0x367)]({'menu':null}),_0x34f8ff?.();}[_0x54dc1e(0x295)](){const _0x192e44=_0x54dc1e,_0x3f936a=this[_0x192e44(0x299)][_0x192e44(0x2d3)][_0x192e44(0x2a9)][this['state'][_0x192e44(0x2d3)]['selected']];this[_0x192e44(0x222)]=null,this['update']({'menu':null}),_0x3f936a['run']();}[_0x54dc1e(0x279)](){const _0x491731=_0x54dc1e,_0x2ed517=this['selected']();if(!_0x2ed517||_0x2ed517[_0x491731(0x2fa)]===_0x491731(0x346))return;const _0x402082=(_0x41a63c,_0x554e53=!0x1)=>()=>this[_0x491731(0x30e)](_0x41a63c,_0x554e53),_0x164e8b=(_0x23ec51,_0x4d5654,_0x394190,_0x266057,_0x2f9d98=!0x1)=>()=>this[_0x491731(0x349)](_0x23ec51,[{'name':_0x394190,'label':_0x266057}],_0x11b410=>{const _0x78ad31=_0x491731;if(!_0x11b410[_0x394190][_0x78ad31(0x361)]())throw new Error(_0x266057+_0x78ad31(0x29c));return this[_0x78ad31(0x367)]({'form':null}),this[_0x78ad31(0x30e)](_0x4d5654[_0x78ad31(0x262)](_0x11b410[_0x394190][_0x78ad31(0x361)]()),_0x2f9d98);});this[_0x491731(0x1e3)](_0x491731(0x36f)+_0x2ed517['title'],[{'label':'Status','run':_0x402082([_0x491731(0x321)])},{'label':'View\x20logs','run':_0x402082([_0x491731(0x350)])},{'label':_0x491731(0x218),'run':_0x402082([_0x491731(0x2f3)])},{'label':_0x491731(0x233),'run':_0x402082([_0x491731(0x213)])},{'label':'Deploy\x20official\x20worker','run':_0x402082([_0x491731(0x2f0)],!0x0)},{'label':_0x491731(0x294),'run':_0x402082([_0x491731(0x2fc)],!0x0)},{'label':_0x491731(0x1e9),'run':_0x402082([_0x491731(0x1d5)],!0x0)},{'label':_0x491731(0x285),'run':()=>this[_0x491731(0x1cc)]()},...[_0x491731(0x287),_0x491731(0x2f1),_0x491731(0x341),_0x491731(0x367)][_0x491731(0x2cf)](_0x1ab9fe=>({'label':_0x1ab9fe[0x0][_0x491731(0x255)]()+_0x1ab9fe[_0x491731(0x2d4)](0x1),'run':_0x402082([_0x1ab9fe],!0x0)})),{'label':_0x491731(0x22d),'run':()=>this[_0x491731(0x1e3)]('Worker\x20skills',[{'label':'List\x20skills','run':_0x402082([_0x491731(0x2fd),_0x491731(0x270)])},{'label':'Add\x20skill','run':_0x164e8b('Add\x20skill',['skills',_0x491731(0x23e)],'id',_0x491731(0x219))},{'label':_0x491731(0x2c3),'run':_0x164e8b(_0x491731(0x2c3),[_0x491731(0x2fd),_0x491731(0x29a)],'id',_0x491731(0x219))}])},{'label':_0x491731(0x212),'run':()=>this[_0x491731(0x1e3)](_0x491731(0x21b),[{'label':'List\x20tools','run':_0x402082([_0x491731(0x1f4),'list'])},{'label':_0x491731(0x345),'run':_0x402082([_0x491731(0x1f4),_0x491731(0x23e)],!0x0)},{'label':_0x491731(0x343),'run':_0x164e8b('Tool\x20credential',[_0x491731(0x1f4),_0x491731(0x2a4)],_0x491731(0x21e),_0x491731(0x2bd),!0x0)},{'label':_0x491731(0x221),'run':_0x164e8b(_0x491731(0x221),[_0x491731(0x1f4),_0x491731(0x224)],'name',_0x491731(0x2bd),!0x0)},{'label':'Remove\x20tool','run':_0x164e8b(_0x491731(0x34a),['tools',_0x491731(0x29a)],'id',_0x491731(0x32c))}])},{'label':_0x491731(0x304),'run':()=>this[_0x491731(0x1e3)](_0x491731(0x254),[{'label':'List\x20RPC\x20endpoints','run':_0x402082([_0x491731(0x2cc),_0x491731(0x270)])},{'label':_0x491731(0x2ca),'run':_0x164e8b(_0x491731(0x225),[_0x491731(0x2cc),_0x491731(0x23e)],'chain',_0x491731(0x2e9),!0x0)},{'label':_0x491731(0x290),'run':_0x164e8b(_0x491731(0x1fc),['rpc','remove'],_0x491731(0x27a),_0x491731(0x2e9))}])},{'label':_0x491731(0x296),'run':_0x402082([_0x491731(0x318)],!0x0)}]);}[_0x54dc1e(0x1cc)](){const _0x2d7506=_0x54dc1e;this[_0x2d7506(0x349)](_0x2d7506(0x285),[{'name':_0x2d7506(0x2a5),'label':_0x2d7506(0x34b),'value':_0x2d7506(0x23a)},{'name':_0x2d7506(0x2af),'label':_0x2d7506(0x1c2),'value':'1'},{'name':_0x2d7506(0x228),'label':_0x2d7506(0x230),'value':'no'}],async({runtime:_0x48993f,concurrency:_0x3a330d,boot:_0x2d0864})=>{const _0x2f9d69=_0x2d7506;if(![_0x2f9d69(0x23a),_0x2f9d69(0x1df)][_0x2f9d69(0x260)](_0x48993f))throw new Error(_0x2f9d69(0x245));if(!/^[1-4]$/[_0x2f9d69(0x211)](_0x3a330d))throw new Error(_0x2f9d69(0x26c));if(!['yes','no'][_0x2f9d69(0x260)](_0x2d0864))throw new Error('Enter\x20yes\x20or\x20no.');const _0x31850d=[_0x2f9d69(0x317),_0x2f9d69(0x26a),_0x2f9d69(0x32f),_0x48993f,_0x2f9d69(0x265),_0x3a330d];_0x2d0864==='yes'&&_0x31850d[_0x2f9d69(0x1c8)](_0x2f9d69(0x28a)),this['update']({'form':null}),await this['workerCommand'](_0x31850d,!0x0);});}async[_0x54dc1e(0x30e)](_0x32381d,_0xe43c74=!0x1){const _0x3e9c2f=_0x54dc1e,_0x3fe15f=this[_0x3e9c2f(0x305)]();!_0x3fe15f||_0x3fe15f[_0x3e9c2f(0x2fa)]===_0x3e9c2f(0x346)||await this['run']('Worker:\x20'+_0x32381d['join']('\x20')+'...',async _0x59e549=>{const _0x170d9e=_0x3e9c2f;if(_0xe43c74){if(!await this[_0x170d9e(0x33c)]({'title':'Run\x20on\x20'+_0x3fe15f[_0x170d9e(0x289)]+'?','lines':[_0x170d9e(0x206)+_0x32381d['join']('\x20'),'The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.']}))return;await this[_0x170d9e(0x301)]([_0x170d9e(0x25d),..._0x32381d],_0x3fe15f),this['update']({'notice':_0x170d9e(0x286)});}else{const _0x2b1d93=await this[_0x170d9e(0x22f)][_0x170d9e(0x1fb)](['worker',..._0x32381d],_0x3fe15f,_0x59e549);this[_0x170d9e(0x367)]({'detail':{'output':_0x2b1d93},'focus':_0x170d9e(0x27d),'scroll':0x0});}});}['requestPassword'](_0x318522){return new Promise((_0xd05cf0,_0x5625b6)=>{const _0x27d724=_0x2901;this[_0x27d724(0x21a)]=_0x5625b6,this[_0x27d724(0x349)](_0x27d724(0x360),[{'name':_0x27d724(0x27f),'label':_0x318522,'secret':!0x0}],({password:_0x12166c})=>{const _0x3ce82f=_0x27d724;this[_0x3ce82f(0x367)]({'form':null}),this['passwordReject']=null,_0xd05cf0(_0x12166c);},{'submit':_0x27d724(0x267),'onCancel':()=>{const _0x1787f5=_0x27d724;this[_0x1787f5(0x21a)]=null,_0x5625b6(new Error(_0x1787f5(0x24c)));}});});}[_0x54dc1e(0x2eb)](){const _0x189f06=_0x54dc1e,_0x2946af=this[_0x189f06(0x299)][_0x189f06(0x27d)]?.[_0x189f06(0x2a6)]==='local';this[_0x189f06(0x299)][_0x189f06(0x27d)]?.['configured']&&this['showMenu']('Selected\x20wallet\x20actions',[...!this['walletIsCurrent']()&&this[_0x189f06(0x305)]()?[{'label':'Use\x20this\x20wallet','run':()=>this[_0x189f06(0x272)]()}]:[],..._0x2946af?[{'label':'View\x20private\x20key','run':()=>this[_0x189f06(0x24f)]()},{'label':'Back\x20up\x20encrypted\x20wallet','run':()=>this[_0x189f06(0x2cb)]()},{'label':_0x189f06(0x22a),'run':()=>this[_0x189f06(0x34f)]()}]:[],...this['state'][_0x189f06(0x27d)]?.[_0x189f06(0x2b9)]?[{'label':_0x189f06(0x26f),'run':()=>this['walletReceive']()}]:[]]);}[_0x54dc1e(0x351)](){const _0x11f59d=_0x54dc1e;this[_0x11f59d(0x1e3)]('Wallet\x20management\x20\xB7\x20all\x20wallets',[{'label':'Create\x20a\x20new\x20local\x20wallet','run':()=>this[_0x11f59d(0x306)](!0x1)},{'label':'Import\x20wallet','run':()=>this[_0x11f59d(0x2e8)]()}]);}[_0x54dc1e(0x2e8)](){const _0x4aa227=_0x54dc1e;this[_0x4aa227(0x1e3)](_0x4aa227(0x33d),[{'label':'From\x20private\x20key','run':()=>this[_0x4aa227(0x306)](!0x0)},{'label':_0x4aa227(0x1f0),'run':()=>this[_0x4aa227(0x1f7)]()}]);}['walletIsCurrent'](){const _0x348182=_0x54dc1e;return!this['selected']()||this['selected']()[_0x348182(0x2dd)]===this[_0x348182(0x299)][_0x348182(0x2dd)];}async[_0x54dc1e(0x34f)](){const _0x4e7ca4=_0x54dc1e,_0xf34cea=this[_0x4e7ca4(0x305)]()?.[_0x4e7ca4(0x2dd)]??this[_0x4e7ca4(0x299)]['detail']?.['address'];if(this[_0x4e7ca4(0x299)][_0x4e7ca4(0x27d)]?.[_0x4e7ca4(0x2a6)]!==_0x4e7ca4(0x1c5)||!_0xf34cea||!await this[_0x4e7ca4(0x33c)]({'title':_0x4e7ca4(0x1ce),'lines':[_0xf34cea,_0x4e7ca4(0x266),_0x4e7ca4(0x320)],'acceptLabel':'Continue','cancelLabel':_0x4e7ca4(0x2ea)})||!await this['confirm']({'title':_0x4e7ca4(0x256),'lines':[_0xf34cea,_0x4e7ca4(0x315),'Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.'],'acceptLabel':_0x4e7ca4(0x22a),'cancelLabel':_0x4e7ca4(0x2ea)}))return;const _0x8fc177=await this[_0x4e7ca4(0x36b)](_0x4e7ca4(0x314),()=>this[_0x4e7ca4(0x22f)][_0x4e7ca4(0x2ab)](_0xf34cea));_0x8fc177&&(await this[_0x4e7ca4(0x31b)](_0x8fc177['currentAddress']),this['update']({'notice':'Wallet\x20deleted:\x20'+_0xf34cea}));}[_0x54dc1e(0x24f)](){const _0x4932c4=_0x54dc1e,_0x2c9f8e=this['selected']()?.['address']??this['state']['detail']?.[_0x4932c4(0x2dd)];this[_0x4932c4(0x299)]['detail']?.[_0x4932c4(0x2a6)]!==_0x4932c4(0x1c5)||!_0x2c9f8e||this[_0x4932c4(0x349)]('View\x20private\x20key\x20\xB7\x20confirm\x20password',[{'name':_0x4932c4(0x27f),'label':'Local\x20wallet\x20password','secret':!0x0}],async({password:_0x52c353})=>{const _0x19bb5f=_0x4932c4;this[_0x19bb5f(0x367)]({'form':null});const _0x5b8dbf=await this[_0x19bb5f(0x36b)]('Checking\x20wallet\x20password...',_0x2282d1=>this[_0x19bb5f(0x22f)][_0x19bb5f(0x2b3)](_0x2c9f8e,_0x52c353,_0x2282d1));_0x5b8dbf&&this['update']({'privateKeyView':_0x5b8dbf});},{'submit':_0x4932c4(0x1e5)});}async[_0x54dc1e(0x31b)](_0x8e5f80){const _0x390033=_0x54dc1e;this[_0x390033(0x367)]({'selected':-0x1}),this[_0x390033(0x249)]=_0x8e5f80,await this[_0x390033(0x1f2)]();}async[_0x54dc1e(0x272)](){const _0x10807a=_0x54dc1e,_0x119e48=this[_0x10807a(0x305)]();if(!_0x119e48||this['walletIsCurrent']())return;const _0x7fb938=await this[_0x10807a(0x36b)](_0x10807a(0x328),()=>this[_0x10807a(0x22f)][_0x10807a(0x217)](_0x119e48[_0x10807a(0x2dd)]));_0x7fb938&&(await this[_0x10807a(0x1f2)](),this[_0x10807a(0x367)]({'notice':'Current\x20wallet:\x20'+_0x7fb938[_0x10807a(0x2dd)]}));}[_0x54dc1e(0x306)](_0x5bd572){const _0x1a59cc=_0x54dc1e,_0x6aaf36=this[_0x1a59cc(0x22f)][_0x1a59cc(0x30f)]()[_0x1a59cc(0x268)]>0x0||this[_0x1a59cc(0x299)][_0x1a59cc(0x27d)]?.[_0x1a59cc(0x2a6)]===_0x1a59cc(0x1c5),_0x509a17=async({key:_0x379c27,password:_0x434de3,repeat:_0x7f760b})=>{const _0x387e11=_0x1a59cc;if(!_0x6aaf36){if(_0x434de3!==_0x7f760b)throw new Error(_0x387e11(0x336));if(_0x434de3[_0x387e11(0x268)]<0x8)throw new Error(_0x387e11(0x32a));}this[_0x387e11(0x367)]({'form':null});const _0x2aadc0=await this['run']('Encrypting\x20wallet\x20locally...',_0x13edcc=>this[_0x387e11(0x22f)][_0x387e11(0x2a3)](_0x434de3,_0x379c27,_0x13edcc));_0x2aadc0&&(await this['refreshWalletSelection'](_0x2aadc0['address']),this[_0x387e11(0x367)]({'notice':_0x387e11(0x20f)}));};if(_0x6aaf36&&!_0x5bd572)return _0x509a17({});this['showForm'](_0x5bd572?'Import\x20private\x20key\x20\xB7\x20encrypted\x20locally':'Set\x20local\x20wallet\x20password',[..._0x5bd572?[{'name':_0x1a59cc(0x2a4),'label':_0x1a59cc(0x29b),'secret':!0x0}]:[],..._0x6aaf36?[]:[{'name':_0x1a59cc(0x27f),'label':'Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','secret':!0x0},{'name':_0x1a59cc(0x20d),'label':_0x1a59cc(0x207),'secret':!0x0}]],_0x509a17,{'submit':_0x5bd572?_0x1a59cc(0x33d):_0x1a59cc(0x28e)});}[_0x54dc1e(0x1f7)](){const _0x365673=_0x54dc1e;this[_0x365673(0x349)](_0x365673(0x1cd),[{'name':_0x365673(0x27b),'label':_0x365673(0x31d)},{'name':_0x365673(0x27f),'label':_0x365673(0x307),'secret':!0x0}],async({file:_0x3def5b,password:_0x3c1d76})=>{const _0x212a58=_0x365673;this[_0x212a58(0x367)]({'form':null});const _0x3f9290=await this['run'](_0x212a58(0x220),_0x530d6c=>this[_0x212a58(0x22f)][_0x212a58(0x337)](_0x3def5b,_0x3c1d76,_0x530d6c));_0x3f9290&&await this['refreshWalletSelection'](_0x3f9290[_0x212a58(0x2dd)]);},{'submit':_0x365673(0x2f8)});}['walletBackup'](){const _0x260504=_0x54dc1e,_0x34ac52=this[_0x260504(0x305)]()?.['address']??this[_0x260504(0x299)][_0x260504(0x27d)]?.[_0x260504(0x2dd)];_0x34ac52&&this['showForm']('Back\x20up\x20encrypted\x20wallet',[{'name':'out','label':_0x260504(0x354)}],async({out:_0x1aab7a})=>{const _0x8dd7d=_0x260504;this[_0x8dd7d(0x367)]({'form':null});const _0x365eaf=await this[_0x8dd7d(0x36b)](_0x8dd7d(0x2c9),()=>this[_0x8dd7d(0x22f)][_0x8dd7d(0x244)](_0x1aab7a,_0x34ac52));_0x365eaf&&this[_0x8dd7d(0x367)]({'notice':'Backup\x20saved:\x20'+_0x365eaf[_0x8dd7d(0x1db)]+_0x8dd7d(0x25b)});},{'submit':'Save\x20backup'});}async[_0x54dc1e(0x283)](){const _0x4c26f8=_0x54dc1e,_0x73e00e=this[_0x4c26f8(0x305)]()?.[_0x4c26f8(0x2dd)]??this[_0x4c26f8(0x299)][_0x4c26f8(0x27d)]?.['address'];_0x73e00e&&await this[_0x4c26f8(0x36b)](_0x4c26f8(0x2c6),async()=>{const _0xba7899=_0x4c26f8;this[_0xba7899(0x367)]({'receive':await this['services'][_0xba7899(0x243)](_0x73e00e)});});}[_0x54dc1e(0x2d0)](_0x4bb70c){const _0x366c35=_0x54dc1e,_0x461d61=_0x23da29(_0x4bb70c)[_0x366c35(0x33a)](_0x130f90=>!_0x130f90[_0x366c35(0x226)]);if(_0x461d61[_0x366c35(0x268)]<=0x1)return this[_0x366c35(0x1da)](_0x4bb70c,_0x461d61[0x0]??_0x23da29(_0x4bb70c)[0x0]);const _0x272976={'dialog':this[_0x366c35(0x299)]['confirm'],'scroll':this[_0x366c35(0x299)][_0x366c35(0x257)]};this[_0x366c35(0x367)]({'confirm':null}),this[_0x366c35(0x1e3)]('Add\x20funds\x20\xB7\x20which\x20network\x20will\x20you\x20send\x20on?',_0x461d61[_0x366c35(0x2cf)](_0x40b24f=>({'label':_0x1691b3(_0x40b24f),'run':()=>this[_0x366c35(0x1da)](_0x4bb70c,_0x40b24f,_0x272976)})),{'onCancel':()=>this[_0x366c35(0x367)]({'confirm':_0x272976['dialog'],'scroll':_0x272976[_0x366c35(0x257)]})});}async[_0x54dc1e(0x1da)](_0x2707f7,_0x4e8540,_0xce2f0d){const _0x2ccc5b=_0x54dc1e,_0x14532c=_0xce2f0d?.[_0x2ccc5b(0x2dc)]??this[_0x2ccc5b(0x299)][_0x2ccc5b(0x33c)],_0x45ce80=_0xce2f0d?.[_0x2ccc5b(0x257)]??this['state'][_0x2ccc5b(0x257)];try{const _0xce48cb=await this[_0x2ccc5b(0x22f)][_0x2ccc5b(0x243)](_0x2707f7['address'],_0x4e8540[_0x2ccc5b(0x2a4)]);this[_0x2ccc5b(0x34c)]={'dialog':_0x14532c,'scroll':_0x45ce80},this['update']({'confirm':null,'receive':{..._0xce48cb,'targets':_0x1c5b2e(_0x4e8540)},'scroll':0x0,'error':null,'notice':null});}catch(_0x3559c3){this[_0x2ccc5b(0x367)]({'error':_0x3559c3[_0x2ccc5b(0x1f3)],..._0xce2f0d?{'confirm':_0x14532c,'scroll':_0x45ce80}:{}});}}[_0x54dc1e(0x246)](){const _0x602b7f=_0x54dc1e,_0x49c479=this[_0x602b7f(0x34c)];this[_0x602b7f(0x34c)]=null,this[_0x602b7f(0x367)]({'receive':null,..._0x49c479?{'confirm':_0x49c479['dialog'],'scroll':_0x49c479[_0x602b7f(0x257)]}:{}});}[_0x54dc1e(0x209)](){const _0x569e96=_0x54dc1e,_0x2bfa7d=this[_0x569e96(0x299)][_0x569e96(0x1e8)][_0x569e96(0x2dd)];this[_0x569e96(0x349)](_0x569e96(0x27c),[{'name':_0x569e96(0x362),'label':_0x569e96(0x32e),'placeholder':_0x569e96(0x1e6)}],async({out:_0x2f1970})=>{const _0x7964e9=_0x569e96,_0x204834=await this[_0x7964e9(0x22f)]['saveQr'](_0x2bfa7d,_0x2f1970);this['update']({'form':null,'notice':_0x7964e9(0x276)+_0x204834['path']});},{'submit':_0x569e96(0x1f1)});}['close'](){const _0x52fce2=_0x54dc1e;clearTimeout(this[_0x52fce2(0x2ad)]),this[_0x52fce2(0x222)]?.(),this['menuCancel']=null,this[_0x52fce2(0x21a)]?.(new Error('Wallet\x20unlock\x20cancelled.')),this[_0x52fce2(0x21a)]=null,_0x55845d(),this[_0x52fce2(0x367)]({'form':null,'privateKeyView':null}),this[_0x52fce2(0x27e)]=!0x0,this[_0x52fce2(0x273)]?.['abort'](),this[_0x52fce2(0x269)]?.[_0x52fce2(0x2f5)](),this[_0x52fce2(0x326)]?.[_0x52fce2(0x2f5)](),this['confirmResolve']?.(!0x1),this[_0x52fce2(0x34c)]=null,this[_0x52fce2(0x1d2)]?.([]),++this[_0x52fce2(0x26b)],this[_0x52fce2(0x2a7)][_0x52fce2(0x258)]();}}export{V as DashboardController,p as FILTERS,h as TABS,K as VIEWS,u as visibleItems};
1
+ const _0x35df2a=_0x35aa;import{friendlyAmount as _0x42628b}from'../lib/payment-coins.mjs';import{createWorkerTarget as _0x45f686,paymentView as _0x512502}from'./services.mjs';function _0x35aa(_0x112002,_0x1169fd){_0x112002=_0x112002-0x1be;const _0x35aa05=_0x1169();let _0x98fc04=_0x35aa05[_0x112002];return _0x98fc04;}import{lockWallet as _0x3e28dd}from'../lib/local-wallet.mjs';import{fundingInstructions as _0x58ce5d,fundingNetworks as _0x12a616,networkChoiceLabel as _0x285a35,networkTargets as _0x17597a}from'../lib/funding-error.mjs';import{DEFAULT_SUPPORT_CHOICE as _0x47130e}from'../lib/support.mjs';import{randomUUID as _0x142cc6}from'node:crypto';const V=[_0x35df2a(0x1dd),_0x35df2a(0x1c7),_0x35df2a(0x210),_0x35df2a(0x2b0)],m=[_0x35df2a(0x249),_0x35df2a(0x303),_0x35df2a(0x225),_0x35df2a(0x1dc),'Cancelled'],u=[_0x35df2a(0x26e),'Activity',_0x35df2a(0x318)],v=new Set([_0x35df2a(0x2a2),_0x35df2a(0x2c1),_0x35df2a(0x1ef),'challenged',_0x35df2a(0x269),_0x35df2a(0x324),_0x35df2a(0x264),_0x35df2a(0x380),_0x35df2a(0x21d),_0x35df2a(0x23c),'pending',_0x35df2a(0x2a6)]),S=new Set(['expired','payment_failed',_0x35df2a(0x2ba),'payment_reconciling']),P=new Set([_0x35df2a(0x2ba),'payment_reconciling']),x=0x7530;function f(_0x5aa1d9){const _0x459cde=_0x35df2a;return _0x5aa1d9[_0x459cde(0x373)]['filter'](_0x4b1d5f=>![_0x459cde(0x1dd),_0x459cde(0x210)]['includes'](_0x5aa1d9[_0x459cde(0x34f)])||[_0x4b1d5f[_0x459cde(0x27a)],_0x4b1d5f['id'],_0x4b1d5f[_0x459cde(0x359)]??''][_0x459cde(0x212)](_0x5ea46a=>_0x5ea46a[_0x459cde(0x254)]()[_0x459cde(0x253)](_0x5aa1d9['query'][_0x459cde(0x254)]()))?_0x5aa1d9[_0x459cde(0x282)]===_0x459cde(0x249)||_0x5aa1d9['view']!==_0x459cde(0x1dd)?!0x0:_0x5aa1d9[_0x459cde(0x282)]==='Completed'?_0x4b1d5f[_0x459cde(0x24c)]==='completed':_0x5aa1d9[_0x459cde(0x282)]===_0x459cde(0x1de)?_0x4b1d5f[_0x459cde(0x24c)]===_0x459cde(0x1c8):_0x5aa1d9['filter']===_0x459cde(0x303)?v[_0x459cde(0x25f)](_0x4b1d5f[_0x459cde(0x24c)]):![_0x459cde(0x2c8),_0x459cde(0x1c8)][_0x459cde(0x253)](_0x4b1d5f[_0x459cde(0x24c)])&&!v[_0x459cde(0x25f)](_0x4b1d5f[_0x459cde(0x24c)]):!0x1);}function p(){const _0xb82897=_0x35df2a;return Object['assign'](new Error(_0xb82897(0x23e)),{'code':'cancelled'});}function _0x1169(){const _0x116952=['canChangePayment','files','Run\x20diagnostics','selected','Preparing\x20local\x20LLM...','tools','receive','\x20is\x20required.','remove','explore','cancelled','unlink','Draft\x20saved','Understanding\x20your\x20request...','1.\x20Create\x20a\x20new\x20wallet\x20(empty,\x20add\x20funds\x20later)','exploreUpdates','Preparing\x20the\x20payment\x20review...','join','addTarget','No\x20wallet\x20found\x20on\x20this\x20computer.','Local\x20wallet\x20password\x20(at\x20least\x208\x20characters)','configured','Task\x20published:\x20','Delete\x20wallet\x20·\x201\x20of\x202','Wallet\x20ready:\x20','Loading\x20files...','deleteDraft','Add\x20a\x20worker\x20target','formCancel','refreshExplore','Attention','tasks','Cancelled','Create\x20a\x20new\x20local\x20wallet','start','deleteTaskDraft','cycleFilter','From\x20encrypted\x20backup','Add\x20tool','workerMenu','chooseMenu','out','Search\x20tasks','dialog','showError','Pair\x20with\x20wallet','slice','Current\x20wallet:\x20','gas','quoted','What\x20would\x20you\x20like\x20to\x20change?','set','Welcome\x20to\x20Colony','1\x20/\x202\x20or\x20Up/down\x20·\x20Enter\x20choose\x20·\x20Esc\x20not\x20now','services','confirmReplacement','walletManagement','delete','\x0aOrder:\x20','colony\x20worker\x20','host','length','fields','You\x20can\x20create\x20a\x20new\x20task\x20whenever\x20you\x20want.','Transaction:\x20','message','canCancel','Checking\x20balances\x20on\x20all\x20networks...','Saving\x20encrypted\x20backup...','refresh','Backup\x20file\x20path','chainName','rpc','max','cursor','Request\x20changes\x20(new\x20paid\x20task)','logs','networkWorkers','Not\x20paid.\x20','Tool\x20ID','SSH\x20user@host\x20(empty\x20=\x20this\x20computer)','explorerUrl','workers','deliverables','some','.\x20Press\x20r\x20to\x20refresh\x20My\x20tasks.','detailTimer','restart','Colony\x20picks\x20how\x20to\x20pay\x20from\x20your\x20balances.\x20You\x20review\x20the\x20price\x20first.','askResolve','sort','blocked','stage','Delete\x20draft?','more','running','ask','Choose\x20how\x20to\x20pay\x20·\x20gas\x20is\x20always\x20paid\x20in\x20ETH','total','Choose\x20another\x20way\x20to\x20pay.\x20No\x20payment\x20was\x20signed.','requestKey','choice','Add\x20target','Completed','Private\x20key\x20(hidden)','Install\x20background\x20service','findIndex','assign','fundingDialog','Worker:\x20','Explorer:\x20','Switching\x20wallet...','indexOf','saveQr','Skills','Keep\x20draft','pickPayment','The\x20wallet\x20key\x20is\x20encrypted\x20with\x20your\x20password\x20and\x20stays\x20on\x20this\x20computer.','add','refused','No\x20payment\x20has\x20been\x20signed\x20or\x20submitted.','Payment\x20needs\x20review.','menuCancel','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.','detail','job.open','executing','Wallet\x20ready.\x20Press\x20b\x20to\x20back\x20up\x20before\x20depositing\x20funds.','Payment\x20cancelled.\x20No\x20new\x20payment\x20was\x20signed.','scroll','coin','Checking\x20the\x20saved\x20order...','detailVersion','confirmResolve','runtime','confirm','name','walletBackup','change_payment','All','saveReceiveQr','Inspect\x20/\x20resume\x20saved\x20order','state','cancel','canDelete','Keep\x20request','Checking\x20balances\x20and\x20refreshing\x20prices...','Request\x20cancelled.\x20No\x20payment\x20was\x20signed\x20or\x20submitted.','Downloading\x20verified\x20files...','includes','toLowerCase','dismissForm','funding_required','Remove\x20this\x20wallet\x20from\x20Colony?','repeat','walletMenu','submitForm','Describe\x20what\x20you\x20would\x20like\x20to\x20get\x20done.','accepted','refreshWalletSelection','create','has','signal','closed','Open\x20Wallets','refreshRequest','submitted','install','refreshError','forget','Opening\x20draft...','funding','Delete\x20draft','setField','kind','deleteWallet','Overview','View\x20details','publishDraft','Review\x20saved\x20payment','move','\x20managed\x20targets\x20·\x20','min','abort','walletDelete','pending','Tools\x20&\x20credentials','reviewPayment','title','Add\x20funds\x20to\x20continue','Cancelling\x20request...','navigate','showPaymentProgress','revealPrivateKey','key','targets','filter','busy','Loading\x20','plan','Keyword\x20or\x20task\x20ID','identity','Only\x20this\x20option\x20has\x20enough\x20funds\x20right\x20now','Save\x20recharge\x20QR\x20code','withFundingRetry','showForm','run','List\x20tools','QR\x20saved:\x20','Keep\x20a\x20private\x20key\x20or\x20encrypted\x20backup\x20to\x20access\x20this\x20wallet\x20again.','close','map','network-worker','walletImport','update','job.continue','createWallet','Delete\x20local\x20record','Remove\x20RPC\x20endpoint','input','RPC\x20endpoints','You\x20need\x20a\x20wallet\x20to\x20pay\x20for\x20tasks.\x20Browsing\x20works\x20without\x20one.','managed-worker','Back\x20·\x20no\x20coin\x20has\x20enough\x20funds\x20right\x20now','Continue\x20draft','Worker\x20RPC\x20endpoints','Reason:\x20','Auto-refresh\x20failed:\x20','draft','query','claude','Import\x20wallet','admitting','action','Download','showOutcome','continueTask','...','receiveWallet','.\x20Press\x20b\x20to\x20back\x20up,\x20then\x20d\x20to\x20add\x20funds.','Task\x20actions','code','wallet','command','Worker\x20·\x20','blockers','pendingTransaction','useSelectedWallet','Back\x20up\x20encrypted\x20wallet','Linux\x20start\x20at\x20boot\x20(yes/no)','Loading\x20network\x20workers...','file','transaction_pending','Saved\x20','password','passwordReject','trim','Forget\x20credential','2.\x20Not\x20now\x20(browse\x20without\x20a\x20wallet)','created','Command\x20finished.\x20Press\x20r\x20to\x20refresh\x20worker\x20status.','concat','Status','error','paymentOptions','Enter\x20yes\x20or\x20no.','completed','port','reason','Worker\x20skills','whoami','Restore\x20wallet','subscribe','Wallet\x20management\x20·\x20all\x20wallets','Deleting\x20local\x20wallet...','walletPrivateKey','source','payWith','field','boot','\x20managed\x20targets\x20·\x20Network\x20unavailable\x20·\x20r\x20retry','flatMap','\x20on\x20','codex','value','test','requestPassword','Add\x20RPC','restoreSelectedId','pair','Continue','From\x20private\x20key','admitted','Back','list','locked','Add\x20skill','Draft\x20saved.\x20Continue\x20it\x20from\x20My\x20tasks\x20after\x20setting\x20up\x20a\x20wallet.','Cancel\x20request','stop','funded','listeners','register','wallets','\x20+\x20gas\x20≈\x20','selectWallet','result','draftId','terminal','service','menu','Worker\x20tools','jobId','walletRestore','deploy','Back\x20to\x20My\x20tasks','address','detailRequest','cancelAutoRefresh','form','taskMenu','search','chain','Add\x20funds','respond','Active','Remove\x20tool','Save\x20backup','cancelRequest','offerFirstWallet','payment','View\x20private\x20key','path','addFunds','walletReceive','status','--boot','Choose\x20an\x20output\x20directory.','loaded','autoRefresh','canResume','yes','publish','Skill\x20ID','No\x20wallet\x20created.\x20Create\x20one\x20anytime\x20in\x20Wallets\x20(press\x204,\x20then\x20n).','Confirm\x20password','Files','help','loadDetail','extraTargets','hash','Set\x20local\x20wallet\x20password','walletSetup','extraAction','string','Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20retrying.','Request\x20changes','serviceInstall','signed','toUpperCase','change','.\x20Inspect\x20it\x20in\x20My\x20tasks\x20before\x20trying\x20another\x20payment.','--runtime','values','fundingReceive','note','showMenu','paymentChain','updatedAt','worker','Restoring\x20wallet...','This\x20request\x20will\x20no\x20longer\x20be\x20payable\x20from\x20Colony.','colony-receive.svg','Confirm\x20wallet\x20password','View\x20result\x20files','options','Download\x20files','Review\x20task','resume','transaction','questions','The\x20local\x20encrypted\x20private\x20key\x20will\x20be\x20deleted.','closeReceive','now','editDraft','operation','hasOwn','nextField','Remove\x20skill','Remove\x20RPC','restoreWallet','Backup\x20password','lastExploreRefresh','resumeOrder','push','mine','ETH','Cancel\x20this\x20request?','label','selection','lines','view','Restore\x20encrypted\x20wallet','Keep\x20wallet','get','formSubmit','Import\x20private\x20key\x20·\x20encrypted\x20locally','Check\x20balance\x20&\x20continue','Loading\x20older\x20tasks...','Use\x20at\x20least\x208\x20characters.','parent','searchText','chooseSupport','Saved\x20wallet','changeTab','Add\x20funds\x20·\x20which\x20network\x20will\x20you\x20send\x20on?','Delete\x20wallet\x20·\x202\x20of\x202','Identity','doctor','throwIfAborted','Review\x20task\x20&\x20payment','autoPayment','workerCommand','createdAt','deleteRequest','Search','walletIsCurrent','View\x20logs','SSH\x20identity\x20file\x20(optional)','objective','clear','Your\x20request\x20is\x20saved\x20in\x20My\x20tasks.\x20Continue\x20payment\x20there\x20to\x20check\x20the\x20original\x20payment\x20before\x20sending\x20another\x20payment.','Credential\x20name','Wallet\x20unlock\x20cancelled.\x20No\x20payment\x20was\x20signed.','getSnapshot','Unlink\x20worker','The\x20payment\x20result\x20is\x20not\x20final\x20yet.','items','backupWallet','Delete\x20wallet','Current','download','ethereum','\x20·\x20','detailLoading','saveDraft','Build\x20a\x20website\x20for\x20my\x20coffee\x20shop','Backup\x20saved:\x20','currentAddress','local','queued'];_0x1169=function(){return _0x116952;};return _0x1169();}function W(){const _0x5b7d97=_0x35df2a;return Object[_0x5b7d97(0x229)](new Error(_0x5b7d97(0x221)),{'code':_0x5b7d97(0x248)});}function T(_0x32a88e,_0x55bd58){const _0x5e6b98=_0x35df2a,{option:_0x3a019e}=_0x32a88e,_0x2f1d54=(_0x32a88e[_0x5e6b98(0x2d3)]==='IMD'?'':'\u2248\x20')+_0x42628b(_0x3a019e['payment'],_0x32a88e[_0x5e6b98(0x2d3)],{'up':!0x0}),_0x27cbaf=_0x55bd58&&_0x55bd58[_0x5e6b98(0x32d)]===_0x32a88e['paymentChain']&&_0x55bd58[_0x5e6b98(0x2d3)]===_0x32a88e['payWith'];return _0x32a88e[_0x5e6b98(0x2d3)]+_0x5e6b98(0x2d8)+_0x32a88e[_0x5e6b98(0x205)]+_0x5e6b98(0x379)+_0x2f1d54+_0x5e6b98(0x2ee)+_0x42628b(_0x3a019e[_0x5e6b98(0x1ee)],_0x5e6b98(0x34a),{'up':!0x0})+(_0x27cbaf?'\x20\xB7\x20current':'');}function A(_0x55ed9e){const _0x42ac54=_0x35df2a;if(!_0x55ed9e)return[];const _0xd44b=[];return _0x55ed9e['hash']&&_0xd44b[_0x42ac54(0x348)]('Transaction:\x20'+_0x55ed9e['hash']+(_0x55ed9e[_0x42ac54(0x26c)]?'\x20('+_0x55ed9e[_0x42ac54(0x26c)]+')':'')),_0x55ed9e[_0x42ac54(0x2ca)]&&_0xd44b[_0x42ac54(0x348)](_0x42ac54(0x2a0)+_0x55ed9e[_0x42ac54(0x2ca)]),_0x55ed9e[_0x42ac54(0x20f)]&&_0xd44b[_0x42ac54(0x348)](_0x42ac54(0x22c)+_0x55ed9e[_0x42ac54(0x20f)]),_0xd44b;}function E(_0x514591){const _0x36ffed=_0x35df2a,_0x232a1f=[_0x514591[_0x36ffed(0x1ff)]||_0x36ffed(0x372)];return _0x232a1f[_0x36ffed(0x348)](...A(_0x514591[_0x36ffed(0x339)])),_0x232a1f[_0x36ffed(0x348)](_0x36ffed(0x36d)),_0x232a1f[_0x36ffed(0x1cf)]('\x0a');}class _{constructor(_0x5ad583){const _0x471c8c=_0x35df2a;this[_0x471c8c(0x1f4)]=_0x5ad583,this[_0x471c8c(0x2eb)]=new Set(),this['state']={'view':_0x471c8c(0x1dd),'items':[],'selected':0x0,'detail':null,'result':null,'tab':_0x471c8c(0x26e),'filter':_0x471c8c(0x249),'query':'','note':'','focus':_0x471c8c(0x2e4),'scroll':0x0,'busy':null,'error':null,'notice':null,'form':null,'menu':null,'confirm':null,'modelProgress':null,'help':!0x1,'detailLoading':!0x1,'address':null,'cursor':null,'total':null,'since':null,'refreshing':!0x1,'refreshError':null,'receive':null,'privateKeyView':null},this[_0x471c8c(0x242)]=0x0,this[_0x471c8c(0x31b)]=[],this[_0x471c8c(0x261)]=!0x1,this['lastExploreRefresh']=0x0;}[_0x35df2a(0x2ce)]=_0x391932=>(this[_0x35df2a(0x2eb)][_0x35df2a(0x234)](_0x391932),()=>this[_0x35df2a(0x2eb)]['delete'](_0x391932));[_0x35df2a(0x370)]=()=>this[_0x35df2a(0x24c)];[_0x35df2a(0x294)](_0xe425f){const _0x31fe50=_0x35df2a;if(!this[_0x31fe50(0x261)]){this[_0x31fe50(0x24c)]={...this[_0x31fe50(0x24c)],..._0xe425f};for(const _0x304bfe of this[_0x31fe50(0x2eb)])_0x304bfe();}}[_0x35df2a(0x1c1)](){const _0x7c845d=_0x35df2a;return f(this[_0x7c845d(0x24c)])[this[_0x7c845d(0x24c)][_0x7c845d(0x1c1)]];}[_0x35df2a(0x1ea)](){const _0x1f85e=_0x35df2a;++this[_0x1f85e(0x242)],this['update']({'detail':{'output':this['state'][_0x1f85e(0x2c5)]??this[_0x1f85e(0x24c)][_0x1f85e(0x266)]},'detailLoading':!0x1,'focus':_0x1f85e(0x23a),'scroll':0x0,'tab':'Overview'});}[_0x35df2a(0x2fc)](){const _0x19d5ce=_0x35df2a;this[_0x19d5ce(0x263)]?.[_0x19d5ce(0x275)](),this[_0x19d5ce(0x263)]=null,this[_0x19d5ce(0x294)]({'refreshing':!0x1});}async[_0x35df2a(0x28c)](_0x2aeb20,_0x3f90aa){const _0x40641c=_0x35df2a;if(!this[_0x40641c(0x24c)][_0x40641c(0x283)]){this['cancelAutoRefresh'](),this[_0x40641c(0x33f)]=new AbortController(),this[_0x40641c(0x294)]({'busy':_0x2aeb20,'error':null,'refreshError':null,'notice':null});try{return await _0x3f90aa(this[_0x40641c(0x33f)][_0x40641c(0x260)]);}catch(_0x28abcc){_0x28abcc[_0x40641c(0x2af)]===_0x40641c(0x1c8)?(this[_0x40641c(0x294)]({'notice':_0x28abcc[_0x40641c(0x1ff)]}),this[_0x40641c(0x33e)]()):P[_0x40641c(0x25f)](_0x28abcc[_0x40641c(0x2af)])?this[_0x40641c(0x294)]({'error':E(_0x28abcc)}):this[_0x40641c(0x294)]({'error':_0x28abcc[_0x40641c(0x1ff)]});}finally{this[_0x40641c(0x294)]({'busy':null,'modelProgress':null});}}}async['navigate'](_0x377290){const _0x509829=_0x35df2a;this[_0x509829(0x24c)][_0x509829(0x283)]||(clearTimeout(this[_0x509829(0x214)]),this[_0x509829(0x2fb)]?.['abort'](),++this[_0x509829(0x242)],this[_0x509829(0x294)]({'view':_0x377290,'items':[],'detail':null,'result':null,'selected':0x0,'query':'','filter':'All','tab':_0x509829(0x26e),'scroll':0x0,'focus':_0x509829(0x2e4),'form':null,'menu':null,'cursor':null,'total':null,'since':null}),await this[_0x509829(0x203)]());}async[_0x35df2a(0x203)]({notice:_0x39a047}={}){const _0x568e2d=_0x35df2a,_0x18f471=this[_0x568e2d(0x1c1)]()?.['id']??this[_0x568e2d(0x2de)];this[_0x568e2d(0x2de)]=void 0x0,await this[_0x568e2d(0x28c)](_0x568e2d(0x284)+this[_0x568e2d(0x24c)][_0x568e2d(0x34f)]+_0x568e2d(0x2ab),async _0x984c97=>{const _0x288897=_0x568e2d;let _0x391253;if(this['state'][_0x288897(0x34f)]===_0x288897(0x1dd))_0x391253=await this['services'][_0x288897(0x349)](_0x984c97);else{if(this[_0x288897(0x24c)][_0x288897(0x34f)]===_0x288897(0x1c7))_0x391253=await this[_0x288897(0x1f4)][_0x288897(0x1c7)](this[_0x288897(0x24c)][_0x288897(0x2a3)],void 0x0,_0x984c97);else{if(this[_0x288897(0x24c)][_0x288897(0x34f)]===_0x288897(0x210)){const _0x13048a=this['services'][_0x288897(0x281)](),_0x1adc9e=new Set(_0x13048a[_0x288897(0x291)](_0x411909=>_0x411909['id'])),_0x25a978=_0x13048a[_0x288897(0x2c3)](this[_0x288897(0x31b)]['filter'](_0x52ab04=>!_0x1adc9e['has'](_0x52ab04['id'])))[_0x288897(0x291)](_0x26e4a9=>({..._0x26e4a9,'kind':_0x288897(0x29c)}));this['update']({'items':_0x25a978,'selected':0x0,'note':_0x288897(0x2b8)});let _0x164086;try{_0x164086=await this[_0x288897(0x1f4)][_0x288897(0x20b)](_0x984c97);}catch(_0x397ece){throw this[_0x288897(0x294)]({'note':_0x25a978[_0x288897(0x1fb)]+_0x288897(0x2d6)}),_0x397ece;}_0x391253={'items':_0x25a978[_0x288897(0x2c3)](_0x164086),'note':_0x25a978[_0x288897(0x1fb)]+_0x288897(0x273)+_0x164086[_0x288897(0x1fb)]+'\x20network\x20workers\x20\xB7\x20availability,\x20free\x20slots,\x20ID\x20\xB7\x20r\x20refresh'};}else{const _0x53c6b1=await this['services']['wallet'](_0x984c97,_0x18f471,{'balances':!0x1}),_0x15fe1c=this[_0x288897(0x1f4)]['wallets']();!_0x15fe1c[_0x288897(0x1fb)]&&_0x53c6b1[_0x288897(0x1d3)]&&_0x15fe1c[_0x288897(0x348)]({'address':_0x53c6b1['address'],'active':!0x0,'locked':_0x53c6b1[_0x288897(0x2e5)]}),_0x391253={'items':_0x15fe1c[_0x288897(0x291)](_0xde629c=>({..._0xde629c,'id':_0xde629c['address'],'title':_0xde629c[_0x288897(0x2fa)]['slice'](0x0,0xa)+_0x288897(0x2ab)+_0xde629c[_0x288897(0x2fa)][_0x288897(0x1ec)](-0x8),'subtitle':_0xde629c['active']?_0x288897(0x376):_0x288897(0x35b)})),'note':'One\x20local\x20password\x20\xB7\x20u\x20use\x20selected\x20wallet','address':_0x53c6b1[_0x288897(0x37e)]??_0x53c6b1[_0x288897(0x2fa)]??null},this[_0x288897(0x294)]({'detail':_0x53c6b1,'scroll':0x0});}}}const _0x3d3c9d=_0x18f471??(this['state'][_0x288897(0x34f)]===_0x288897(0x2b0)?_0x391253['address']:void 0x0),_0x4232bb=Math[_0x288897(0x207)](0x0,f({...this[_0x288897(0x24c)],'items':_0x391253['items']})['findIndex'](_0x288c55=>_0x288c55['id']===_0x3d3c9d));this[_0x288897(0x294)]({'items':_0x391253[_0x288897(0x373)],'note':_0x391253[_0x288897(0x32b)],'cursor':_0x391253['cursor'],'total':_0x391253['total']??(_0x391253[_0x288897(0x208)]?null:_0x391253['items'][_0x288897(0x1fb)]),'since':_0x391253['since']??null,'selected':_0x4232bb,'address':Object[_0x288897(0x340)](_0x391253,_0x288897(0x2fa))?_0x391253['address']:this['state'][_0x288897(0x2fa)]}),this[_0x288897(0x24c)]['view']===_0x288897(0x1c7)&&(this[_0x288897(0x346)]=Date[_0x288897(0x33d)]());}),_0x39a047&&this[_0x568e2d(0x294)]({'notice':_0x39a047}),this[_0x568e2d(0x261)]||await this[_0x568e2d(0x31a)](this[_0x568e2d(0x24c)]['view']===_0x568e2d(0x2b0));}async[_0x35df2a(0x311)](){const _0x3061ad=_0x35df2a,_0x36dc4e=this['state'];this['closed']||_0x36dc4e['busy']||_0x36dc4e['refreshing']||_0x36dc4e[_0x3061ad(0x37a)]||_0x36dc4e[_0x3061ad(0x2fd)]||_0x36dc4e[_0x3061ad(0x245)]||_0x36dc4e[_0x3061ad(0x2f4)]||_0x36dc4e[_0x3061ad(0x319)]||_0x36dc4e['privateKeyView']||(_0x36dc4e[_0x3061ad(0x34f)]==='explore'&&_0x36dc4e['since']!==null&&Date['now']()-this[_0x3061ad(0x346)]>=x?await this[_0x3061ad(0x1db)]():_0x36dc4e['view']===_0x3061ad(0x1dd)&&!_0x36dc4e[_0x3061ad(0x2c5)]&&[_0x3061ad(0x21d),'executing',_0x3061ad(0x380),_0x3061ad(0x277)][_0x3061ad(0x253)](this[_0x3061ad(0x1c1)]()?.[_0x3061ad(0x24c)])&&await this['loadDetail'](!0x0));}async[_0x35df2a(0x1db)](){const _0x476a0e=_0x35df2a,_0x17dc9d=new AbortController();this[_0x476a0e(0x263)]=_0x17dc9d,this['lastExploreRefresh']=Date['now'](),this[_0x476a0e(0x294)]({'refreshing':!0x0});try{const _0x48b120=await this['services'][_0x476a0e(0x1cd)](this[_0x476a0e(0x24c)][_0x476a0e(0x2a3)],this[_0x476a0e(0x24c)]['since'],_0x17dc9d[_0x476a0e(0x260)]);if(this[_0x476a0e(0x263)]!==_0x17dc9d||this[_0x476a0e(0x261)])return;const _0x33f10b=this[_0x476a0e(0x1c1)]()?.['id'],_0x4d734e=this[_0x476a0e(0x24c)][_0x476a0e(0x373)]['at'](-0x1)?.['createdAt'],_0x1391a2=new Map(this[_0x476a0e(0x24c)]['items'][_0x476a0e(0x291)](_0x4ca31c=>[_0x4ca31c['id'],_0x4ca31c]));for(const _0x2b6ec6 of _0x48b120[_0x476a0e(0x373)]){const _0xb1a806=_0x1391a2[_0x476a0e(0x352)](_0x2b6ec6['id']);_0xb1a806&&_0x2b6ec6[_0x476a0e(0x32e)]<_0xb1a806[_0x476a0e(0x32e)]||(_0x1391a2['has'](_0x2b6ec6['id'])||!_0x4d734e||_0x2b6ec6[_0x476a0e(0x365)]>=_0x4d734e)&&_0x1391a2[_0x476a0e(0x1f1)](_0x2b6ec6['id'],_0x2b6ec6);}const _0x8c4c76=[..._0x1391a2['values']()][_0x476a0e(0x218)]((_0x36abae,_0x5ea0ae)=>_0x5ea0ae[_0x476a0e(0x365)]['localeCompare'](_0x36abae[_0x476a0e(0x365)])),_0x3cde12=Math['max'](0x0,_0x8c4c76[_0x476a0e(0x228)](_0x4c98ac=>_0x4c98ac['id']===_0x33f10b));this[_0x476a0e(0x294)]({'items':_0x8c4c76,'selected':_0x3cde12,'since':_0x48b120['since'],'total':_0x48b120[_0x476a0e(0x220)]??(this[_0x476a0e(0x24c)][_0x476a0e(0x208)]?null:_0x8c4c76[_0x476a0e(0x1fb)]),'refreshError':null}),await this[_0x476a0e(0x31a)](!0x0);}catch(_0x59a89e){this[_0x476a0e(0x263)]===_0x17dc9d&&!this[_0x476a0e(0x261)]&&this['update']({'refreshError':_0x476a0e(0x2a1)+_0x59a89e['message']});}finally{this[_0x476a0e(0x263)]===_0x17dc9d&&(this[_0x476a0e(0x263)]=null,this[_0x476a0e(0x294)]({'refreshing':!0x1}));}}async['more'](){const _0x4a13b1=_0x35df2a;this[_0x4a13b1(0x24c)][_0x4a13b1(0x34f)]!==_0x4a13b1(0x1c7)||!this['state'][_0x4a13b1(0x208)]||await this[_0x4a13b1(0x28c)](_0x4a13b1(0x356),async _0x26dd4c=>{const _0x54c0ef=_0x4a13b1,_0x1cd2c5=await this[_0x54c0ef(0x1f4)][_0x54c0ef(0x1c7)](this[_0x54c0ef(0x24c)][_0x54c0ef(0x2a3)],this[_0x54c0ef(0x24c)][_0x54c0ef(0x208)],_0x26dd4c),_0x48c49b=new Set(this[_0x54c0ef(0x24c)]['items'][_0x54c0ef(0x291)](_0x39cb43=>_0x39cb43['id'])),_0x2955af=this[_0x54c0ef(0x24c)][_0x54c0ef(0x373)][_0x54c0ef(0x2c3)](_0x1cd2c5[_0x54c0ef(0x373)][_0x54c0ef(0x282)](_0x1b7b38=>!_0x48c49b[_0x54c0ef(0x25f)](_0x1b7b38['id'])));this[_0x54c0ef(0x294)]({'items':_0x2955af,'cursor':_0x1cd2c5[_0x54c0ef(0x208)],'total':this[_0x54c0ef(0x24c)][_0x54c0ef(0x220)]??(_0x1cd2c5[_0x54c0ef(0x208)]?null:_0x2955af['length'])});});}async[_0x35df2a(0x31a)](_0x55c61a=!0x1){const _0x32526d=_0x35df2a;clearTimeout(this[_0x32526d(0x214)]),this[_0x32526d(0x214)]=null;const _0x41341d=this[_0x32526d(0x1c1)]();if(this[_0x32526d(0x24c)][_0x32526d(0x34f)]===_0x32526d(0x2b0)&&!_0x41341d)return;const _0x5a1d4e=++this[_0x32526d(0x242)];if(this[_0x32526d(0x2fb)]?.[_0x32526d(0x275)](),this[_0x32526d(0x2fb)]=new AbortController(),this[_0x32526d(0x294)]({'detail':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x23a)]:null,'result':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x2f0)]:null,'detailLoading':!!_0x41341d,'scroll':_0x55c61a?this[_0x32526d(0x24c)][_0x32526d(0x23f)]:0x0}),!!_0x41341d)try{const _0x4eb46d=this['state'][_0x32526d(0x34f)]===_0x32526d(0x2b0)?await this['services']['wallet'](this[_0x32526d(0x2fb)]['signal'],_0x41341d[_0x32526d(0x2fa)]):this[_0x32526d(0x24c)][_0x32526d(0x34f)]===_0x32526d(0x210)?_0x41341d['kind']===_0x32526d(0x292)?_0x41341d:_0x41341d['installed']?await this[_0x32526d(0x1f4)][_0x32526d(0x2b1)]([_0x32526d(0x32f),_0x32526d(0x30d)],_0x41341d,this[_0x32526d(0x2fb)][_0x32526d(0x260)]):{'notInstalled':!0x0}:await this[_0x32526d(0x1f4)][_0x32526d(0x23a)](_0x41341d,this[_0x32526d(0x2fb)][_0x32526d(0x260)]);if(_0x5a1d4e===this['detailVersion']){const _0x373249=_0x4eb46d[_0x32526d(0x24c)]??(_0x41341d['jobId']?void 0x0:_0x4eb46d['status']),_0x29a5fe=this[_0x32526d(0x24c)][_0x32526d(0x373)][_0x32526d(0x291)](_0x27d8f5=>_0x27d8f5['id']===_0x41341d['id']&&_0x373249?{..._0x27d8f5,'state':_0x373249,..._0x4eb46d[_0x32526d(0x32e)]?{'updatedAt':_0x4eb46d['updatedAt']}:{},..._0x32526d(0x200)in _0x4eb46d?{'canCancel':_0x4eb46d[_0x32526d(0x200)],'canDelete':_0x4eb46d[_0x32526d(0x24e)],'canResume':_0x4eb46d[_0x32526d(0x312)]}:{}}:_0x27d8f5),_0x80740=f({...this['state'],'items':_0x29a5fe})['findIndex'](_0x38ff8e=>_0x38ff8e['id']===_0x41341d['id']);this[_0x32526d(0x294)]({'detail':_0x80740<0x0?null:_0x4eb46d,'detailLoading':!0x1,'items':_0x29a5fe,'selected':Math[_0x32526d(0x207)](0x0,_0x80740)}),_0x80740<0x0&&this['loadDetail']();}}catch(_0x19691c){_0x5a1d4e===this[_0x32526d(0x242)]&&this[_0x32526d(0x294)]({'detailLoading':!0x1,'error':_0x19691c['message']});}}[_0x35df2a(0x272)](_0x4193de){const _0x416a50=_0x35df2a,_0x39b1c2=f(this[_0x416a50(0x24c)])['length'],_0x3bc74d=Math[_0x416a50(0x207)](0x0,Math[_0x416a50(0x274)](_0x39b1c2-0x1,this[_0x416a50(0x24c)][_0x416a50(0x1c1)]+_0x4193de));_0x3bc74d!==this[_0x416a50(0x24c)][_0x416a50(0x1c1)]&&(clearTimeout(this[_0x416a50(0x214)]),++this[_0x416a50(0x242)],this[_0x416a50(0x2fb)]?.[_0x416a50(0x275)](),this[_0x416a50(0x294)]({'selected':_0x3bc74d,'error':null,'notice':null,'detail':null,'result':null,'detailLoading':!0x0,'scroll':0x0}),this[_0x416a50(0x24c)][_0x416a50(0x34f)]==='workers'?this['loadDetail']():this[_0x416a50(0x214)]=setTimeout(()=>{const _0x46a9f6=_0x416a50;this[_0x46a9f6(0x31a)]();},0x78)),_0x4193de>0x0&&_0x3bc74d===_0x39b1c2-0x1&&this[_0x416a50(0x21c)]();}[_0x35df2a(0x1e2)](){const _0x53b7a9=_0x35df2a;this[_0x53b7a9(0x294)]({'filter':m[(m[_0x53b7a9(0x22e)](this[_0x53b7a9(0x24c)][_0x53b7a9(0x282)])+0x1)%m['length']],'selected':0x0}),this[_0x53b7a9(0x31a)]();}async[_0x35df2a(0x35c)](_0x3f9f50){const _0x3efcbc=_0x35df2a,_0x54dd6d=u[(u[_0x3efcbc(0x22e)](this[_0x3efcbc(0x24c)]['tab'])+_0x3f9f50+u[_0x3efcbc(0x1fb)])%u[_0x3efcbc(0x1fb)]];this[_0x3efcbc(0x294)]({'tab':_0x54dd6d,'scroll':0x0}),_0x54dd6d===_0x3efcbc(0x318)&&await this[_0x3efcbc(0x1bf)]();}async[_0x35df2a(0x1bf)](){const _0x1dd1fd=_0x35df2a,_0x48b8f5=this[_0x1dd1fd(0x1c1)]();_0x48b8f5?.['jobId']&&(this[_0x1dd1fd(0x214)]&&this[_0x1dd1fd(0x31a)](!0x0),this[_0x1dd1fd(0x294)]({'tab':_0x1dd1fd(0x318),'focus':_0x1dd1fd(0x23a),'scroll':0x0}),await this[_0x1dd1fd(0x28c)](_0x1dd1fd(0x1d7),async _0x2fc973=>{const _0x1e0161=_0x1dd1fd;this[_0x1e0161(0x294)]({'result':await this[_0x1e0161(0x1f4)][_0x1e0161(0x2f0)](_0x48b8f5[_0x1e0161(0x2f6)],_0x2fc973)});}));}['showForm'](_0x2b1efb,_0x445bdf,_0x3cf9f8,{onCancel:_0xd13cf6,submit:_0x27ffc4=_0x35df2a(0x2e0)}={}){const _0xb43c5c=_0x35df2a;this[_0xb43c5c(0x2fc)](),this[_0xb43c5c(0x353)]=_0x3cf9f8,this[_0xb43c5c(0x1da)]=_0xd13cf6,this['update']({'form':{'title':_0x2b1efb,'fields':_0x445bdf,'values':Object['fromEntries'](_0x445bdf['map'](_0x431f9d=>[_0x431f9d['name'],_0x431f9d[_0xb43c5c(0x2da)]??''])),'field':0x0,'submit':_0x27ffc4,'error':null},'menu':null});}[_0x35df2a(0x26b)](_0x1ee384){const _0x25b8b2=_0x35df2a,_0x436ca4=this[_0x25b8b2(0x24c)]['form'],_0x3755b8=_0x436ca4[_0x25b8b2(0x1fc)][_0x436ca4[_0x25b8b2(0x2d4)]][_0x25b8b2(0x246)];this[_0x25b8b2(0x294)]({'form':{..._0x436ca4,'values':{..._0x436ca4[_0x25b8b2(0x329)],[_0x3755b8]:_0x1ee384},'error':null}});}[_0x35df2a(0x341)](_0x2703b1=!0x1){const _0x5caa48=_0x35df2a,_0x508866=this[_0x5caa48(0x24c)][_0x5caa48(0x2fd)];this[_0x5caa48(0x294)]({'form':{..._0x508866,'field':(_0x508866['field']+(_0x2703b1?-0x1:0x1)+_0x508866[_0x5caa48(0x1fc)][_0x5caa48(0x1fb)])%_0x508866[_0x5caa48(0x1fc)][_0x5caa48(0x1fb)]}});}async[_0x35df2a(0x25a)](){const _0x2d00f0=_0x35df2a,{values:_0xd7f802}=this[_0x2d00f0(0x24c)][_0x2d00f0(0x2fd)];try{await this[_0x2d00f0(0x353)](_0xd7f802);}catch(_0x1ab736){this[_0x2d00f0(0x294)]({'form':{...this[_0x2d00f0(0x24c)][_0x2d00f0(0x2fd)],'error':_0x1ab736[_0x2d00f0(0x1ff)]}});}}[_0x35df2a(0x255)](){const _0x32876c=_0x35df2a,_0x4a5fea=this[_0x32876c(0x1da)];this[_0x32876c(0x294)]({'form':null}),_0x4a5fea&&_0x4a5fea();}[_0x35df2a(0x2ff)](){const _0xf35a3f=_0x35df2a,_0x3f70d9=this[_0xf35a3f(0x24c)][_0xf35a3f(0x34f)]===_0xf35a3f(0x210);this[_0xf35a3f(0x28b)](_0x3f70d9?'Search\x20workers':_0xf35a3f(0x1e8),[{'name':_0xf35a3f(0x2a3),'label':_0x3f70d9?'Worker\x20ID,\x20runtime\x20or\x20skill':_0xf35a3f(0x286),'value':this['state']['query']}],async({query:_0x1fdf1a})=>{const _0x2b87d1=_0xf35a3f;this[_0x2b87d1(0x294)]({'query':_0x1fdf1a,'selected':0x0,'form':null}),this['state'][_0x2b87d1(0x34f)]==='explore'?await this[_0x2b87d1(0x203)]():await this[_0x2b87d1(0x31a)]();},{'submit':_0xf35a3f(0x367)});}['create'](_0x166aef=null){const _0x406c3e=_0x35df2a;this['draft']={'id':_0x142cc6(),'objective':'','parent':_0x166aef},this[_0x406c3e(0x33e)]();}[_0x35df2a(0x2aa)](){const _0x12d343=_0x35df2a,_0x5cdea9=this[_0x12d343(0x1c1)]();this[_0x12d343(0x24c)]['view']!==_0x12d343(0x1dd)||!_0x5cdea9?.[_0x12d343(0x2f6)]||this[_0x12d343(0x25e)](_0x5cdea9[_0x12d343(0x2f6)]);}[_0x35df2a(0x33e)](){const _0x52d7d6=_0x35df2a;this[_0x52d7d6(0x2a2)]&&(this['showForm'](this[_0x52d7d6(0x2a2)][_0x52d7d6(0x358)]?_0x52d7d6(0x322):'Create\x20a\x20task',[{'name':'objective','label':this[_0x52d7d6(0x2a2)][_0x52d7d6(0x358)]?_0x52d7d6(0x1f0):'What\x20would\x20you\x20like\x20to\x20get\x20done?','value':this[_0x52d7d6(0x2a2)]['objective'],'placeholder':_0x52d7d6(0x37c)}],async({objective:_0x1710e8})=>{const _0x1df2b8=_0x52d7d6;if(!_0x1710e8[_0x1df2b8(0x2be)]())throw new Error(_0x1df2b8(0x25b));const _0x14b81b=_0x1710e8[_0x1df2b8(0x2be)]()!==this[_0x1df2b8(0x2a2)][_0x1df2b8(0x36b)];this[_0x1df2b8(0x2a2)]={...this[_0x1df2b8(0x2a2)],'objective':_0x1710e8[_0x1df2b8(0x2be)](),..._0x14b81b&&this[_0x1df2b8(0x2a2)][_0x1df2b8(0x222)]?{'id':_0x142cc6(),'createdAt':void 0x0}:{},..._0x14b81b?{'requestKey':void 0x0,'plan':void 0x0}:{}},this[_0x1df2b8(0x294)]({'form':null}),await this[_0x1df2b8(0x270)]();},{'submit':_0x52d7d6(0x337)}),this[_0x52d7d6(0x294)]({'form':{...this[_0x52d7d6(0x24c)]['form'],'hint':_0x52d7d6(0x216)}}));}['ask'](_0x15c919){return new Promise(_0x544300=>{const _0x34d334=_0x35aa;this[_0x34d334(0x217)]=_0x544300,this[_0x34d334(0x28b)]('A\x20little\x20more\x20information',_0x15c919[_0x34d334(0x291)]((_0x1fefa6,_0x5f38ae)=>({'name':String(_0x5f38ae),'label':_0x1fefa6})),_0x389c70=>{const _0x11fe4f=_0x34d334;this[_0x11fe4f(0x294)]({'form':null}),this[_0x11fe4f(0x217)]=null,_0x544300(Object[_0x11fe4f(0x329)](_0x389c70));},{'onCancel':()=>{const _0x128709=_0x34d334;this[_0x128709(0x217)]=null,_0x544300([]);}});});}[_0x35df2a(0x245)](_0x588072){return new Promise(_0x33ba2f=>{const _0x5cfd4b=_0x35aa;this[_0x5cfd4b(0x243)]=_0x33ba2f;const _0x4a7da3=_0x588072[_0x5cfd4b(0x34e)]??(_0x588072[_0x5cfd4b(0x1ff)]!==void 0x0?[String(_0x588072[_0x5cfd4b(0x1ff)])]:[]);this[_0x5cfd4b(0x294)]({'confirm':{..._0x588072,'lines':_0x4a7da3,'selection':0x0,'accepted':!0x1,'expanded':!0x1},'scroll':0x0});});}['moveConfirmation'](_0x373bef){const _0x401ea4=_0x35df2a,_0x44a576=this['state'][_0x401ea4(0x245)],_0x1cd3f3=_0x44a576[_0x401ea4(0x31f)]?0x3:0x2,_0x31bcd2=(_0x44a576[_0x401ea4(0x34d)]+_0x373bef+_0x1cd3f3)%_0x1cd3f3;this[_0x401ea4(0x294)]({'confirm':{..._0x44a576,'selection':_0x31bcd2,'accepted':_0x31bcd2===_0x1cd3f3-0x1}});}['submitConfirmation'](){const _0x32c720=_0x35df2a,_0x412d31=this[_0x32c720(0x24c)][_0x32c720(0x245)];_0x412d31[_0x32c720(0x31f)]&&_0x412d31[_0x32c720(0x34d)]===0x1?_0x412d31[_0x32c720(0x31f)][_0x32c720(0x28c)]():this[_0x32c720(0x302)](_0x412d31[_0x32c720(0x25c)]);}async[_0x35df2a(0x1f5)](_0x2bb8da){const _0x26b003=_0x35df2a;if(!await this[_0x26b003(0x245)]({'title':'Update\x20network\x20fee','message':_0x2bb8da?.[_0x26b003(0x1ff)]??''}))throw p();}[_0x35df2a(0x302)](_0x109160){const _0x52bec5=_0x35df2a,_0x245b36=this[_0x52bec5(0x243)];this[_0x52bec5(0x243)]=null,this['update']({'confirm':null}),_0x245b36(_0x109160);}[_0x35df2a(0x279)](_0x43b8b2={}){return async _0x18e255=>{const _0x4d8094=_0x35aa,_0x29da22=await this[_0x4d8094(0x245)]({'title':_0x4d8094(0x362),'payment':_0x512502(_0x18e255),'extraAction':{'label':'Change\x20payment','run':()=>this['respond'](_0x4d8094(0x326))},..._0x43b8b2});if(_0x29da22===_0x4d8094(0x326))throw W();if(!_0x29da22)throw p();};}async[_0x35df2a(0x363)]({action:_0x3f825d,signal:_0x44be6c,prefer:_0x381d2f}){const _0x3f5fb=_0x35df2a,_0x594531=await this[_0x3f5fb(0x28a)](()=>this[_0x3f5fb(0x1f4)]['checkTaskWallet']({'action':_0x3f825d,'signal':_0x44be6c,'prefer':_0x381d2f}));return{'choice':_0x594531,'payment':{'paymentChain':_0x594531['paymentChain'],'payWith':_0x594531[_0x3f5fb(0x2d3)]}};}async['pickPayment']({action:_0x29b8c6,signal:_0x37c14d,current:_0x140b25}){const _0x18422d=_0x35df2a;this['update']({'busy':'Checking\x20balances\x20on\x20all\x20networks...'});const {networks:_0x3a3c77}=await this[_0x18422d(0x1f4)][_0x18422d(0x2c6)]({'action':_0x29b8c6,'signal':_0x37c14d}),_0x51a712=_0x3a3c77[_0x18422d(0x2d7)](_0x2de376=>(_0x2de376[_0x18422d(0x335)]??[])[_0x18422d(0x282)](_0x579137=>_0x579137[_0x18422d(0x2ea)])[_0x18422d(0x291)](_0x97b91d=>({'paymentChain':_0x2de376[_0x18422d(0x280)],'payWith':_0x97b91d[_0x18422d(0x240)],'chainName':_0x2de376[_0x18422d(0x205)],'option':_0x97b91d})));return new Promise(_0x2998b0=>{const _0x21b4ab=_0x18422d,_0x30ef13=_0x51a712['map'](_0x34f9ce=>({'label':T(_0x34f9ce,_0x140b25),'run':()=>_0x2998b0({'paymentChain':_0x34f9ce['paymentChain'],'payWith':_0x34f9ce[_0x21b4ab(0x2d3)]})}));_0x30ef13[_0x21b4ab(0x1fb)]||_0x30ef13[_0x21b4ab(0x348)]({'label':_0x21b4ab(0x29d),'run':()=>_0x2998b0(_0x140b25)}),this[_0x21b4ab(0x32c)](_0x51a712[_0x21b4ab(0x1fb)]>0x1?_0x21b4ab(0x21f):_0x21b4ab(0x288),_0x30ef13,{'onCancel':()=>_0x2998b0(_0x140b25)});});}async['publishDraft'](){const _0x1af6dc=_0x35df2a,_0x63b8c=await this[_0x1af6dc(0x28c)]('Checking\x20balances\x20on\x20all\x20networks...',async _0x1cfca5=>{const _0x76e6c6=_0x1af6dc,_0x1e8c44=this[_0x76e6c6(0x2a2)];_0x1e8c44[_0x76e6c6(0x222)]||Object[_0x76e6c6(0x229)](_0x1e8c44,await this['services'][_0x76e6c6(0x37b)](_0x1e8c44));const _0xa3774b=_0x1e8c44['parent']?_0x76e6c6(0x295):'job.open';let _0xe3ed58;try{if(!_0x1e8c44[_0x76e6c6(0x222)]){const _0xd733a4=await this[_0x76e6c6(0x363)]({'action':_0xa3774b,'signal':_0x1cfca5,'prefer':_0x1e8c44['payment']});_0xe3ed58=_0xd733a4[_0x76e6c6(0x223)],_0x1e8c44['payment']=_0xd733a4['payment'];}}catch(_0x1959af){if(_0x1959af[_0x76e6c6(0x2af)]!=='wallet_required')throw _0x1959af;return{'status':_0x76e6c6(0x2a2),'setupWallet':await this['confirm']({'title':_0x76e6c6(0x1ca),'lines':[_0x76e6c6(0x239),'Create\x20or\x20import\x20a\x20wallet\x20to\x20continue.'],'acceptLabel':_0x76e6c6(0x262),'cancelLabel':_0x76e6c6(0x2f9)}),'draftId':_0x1e8c44['id']};}this[_0x76e6c6(0x294)]({'busy':_0x76e6c6(0x1cb)});const _0x148871=_0x1e8c44['parent']?await this['services'][_0x76e6c6(0x23a)]({'jobId':_0x1e8c44['parent']},_0x1cfca5):null,_0x3d4e66=_0x1e8c44[_0x76e6c6(0x285)]??await this[_0x76e6c6(0x1f4)][_0x76e6c6(0x285)]({'objective':_0x1e8c44[_0x76e6c6(0x36b)],'parent':_0x148871,'signal':_0x1cfca5,'ask':_0x222d72=>this[_0x76e6c6(0x21e)](_0x222d72),'onProgress':_0x423b5d=>{const _0x2292c6=_0x76e6c6;this[_0x2292c6(0x294)](_0x423b5d[_0x2292c6(0x21a)]===_0x2292c6(0x310)?{'busy':_0x2292c6(0x1cb),'modelProgress':null}:{'busy':_0x2292c6(0x1c2),'modelProgress':_0x423b5d});}});if(_0x1cfca5[_0x76e6c6(0x361)](),!_0x3d4e66[_0x76e6c6(0x299)])throw new Error(_0x3d4e66[_0x76e6c6(0x33a)]['join']('\x0a')||'This\x20request\x20is\x20not\x20supported.');_0x1e8c44[_0x76e6c6(0x285)]=_0x3d4e66,_0x1e8c44[_0x76e6c6(0x222)]||Object[_0x76e6c6(0x229)](_0x1e8c44,await this['services'][_0x76e6c6(0x37b)](_0x1e8c44)),this[_0x76e6c6(0x294)]({'busy':'Checking\x20the\x20task\x20and\x20requesting\x20an\x20IMD\x20quote...'});let _0x20a990=!0x1;const _0x49d81b=async _0x4d6cac=>{const _0x53670d=_0x76e6c6;if(_0x20a990){const _0x183546=await this[_0x53670d(0x363)]({'action':_0xa3774b,'signal':_0x1cfca5,'prefer':_0x1e8c44[_0x53670d(0x308)]});_0xe3ed58=_0x183546[_0x53670d(0x223)],_0x1e8c44[_0x53670d(0x308)]=_0x183546[_0x53670d(0x308)],_0x4d6cac={..._0x4d6cac,'paymentChain':_0x1e8c44[_0x53670d(0x308)][_0x53670d(0x32d)],'payWith':_0x1e8c44['payment']['payWith'],'expectedWallet':_0xe3ed58[_0x53670d(0x2fa)]},_0x20a990=!0x1;}try{return await this[_0x53670d(0x1f4)][_0x53670d(0x314)](_0x4d6cac);}catch(_0x22b759){throw _0x22b759[_0x53670d(0x2af)]===_0x53670d(0x256)&&_0x22b759['funding']?.[_0x53670d(0x1be)]&&(_0x20a990=!0x0),_0x22b759;}};for(;;)try{const _0x5cc1d1=await this[_0x76e6c6(0x28a)](()=>_0x49d81b({'input':_0x3d4e66['input'],'action':_0xa3774b,'paymentChain':_0x1e8c44[_0x76e6c6(0x308)]?.[_0x76e6c6(0x32d)],'payWith':_0x1e8c44[_0x76e6c6(0x308)]?.['payWith'],'expectedWallet':_0xe3ed58?.[_0x76e6c6(0x2fa)],'requestKey':_0x1e8c44[_0x76e6c6(0x222)]??_0x1e8c44['id'],'onSaved':async _0x4b611c=>{const _0x4f05ed=_0x76e6c6;_0x1e8c44[_0x4f05ed(0x222)]=_0x4b611c[_0x4f05ed(0x222)],await this[_0x4f05ed(0x1f4)][_0x4f05ed(0x1d8)](_0x1e8c44['id']);},'plan':{'summary':_0x3d4e66['summary'],'deliverables':_0x3d4e66[_0x76e6c6(0x211)]},'signal':_0x1cfca5,'chooseSupport':_0x5ed051=>this[_0x76e6c6(0x35a)](_0x5ed051),'onProgress':_0x771f95=>this[_0x76e6c6(0x27e)](_0x771f95),'confirmReplacement':_0x3408e2=>this[_0x76e6c6(0x1f5)](_0x3408e2),'confirm':this['reviewPayment']()}));return this['showOutcome'](_0x5cc1d1),_0x5cc1d1;}catch(_0x56bbdb){if(_0x56bbdb[_0x76e6c6(0x2af)]!==_0x76e6c6(0x248))throw _0x56bbdb;_0x1e8c44[_0x76e6c6(0x308)]=await this['pickPayment']({'action':_0xa3774b,'signal':_0x1cfca5,'current':_0x1e8c44[_0x76e6c6(0x308)]}),this[_0x76e6c6(0x294)]({'busy':_0x76e6c6(0x1ce)});}});if(!this['closed']&&_0x63b8c?.[_0x1af6dc(0x30d)]===_0x1af6dc(0x2a2))await this[_0x1af6dc(0x27d)](_0x63b8c['setupWallet']?_0x1af6dc(0x2b0):_0x1af6dc(0x1dd)),this[_0x1af6dc(0x294)]({'notice':_0x1af6dc(0x2e7)}),_0x63b8c['setupWallet']&&this[_0x1af6dc(0x1f6)]();else{if(!this[_0x1af6dc(0x261)]&&_0x63b8c?.['status']===_0x1af6dc(0x2e2)&&_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]){await this['navigate'](_0x1af6dc(0x1dd));const _0x20dc61=this[_0x1af6dc(0x24c)][_0x1af6dc(0x373)][_0x1af6dc(0x228)](_0x57a979=>_0x57a979[_0x1af6dc(0x2f6)]===_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]);_0x20dc61>=0x0&&(this[_0x1af6dc(0x294)]({'selected':_0x20dc61}),await this['loadDetail']()),this[_0x1af6dc(0x294)]({'notice':_0x1af6dc(0x1d4)+_0x63b8c[_0x1af6dc(0x24c)][_0x1af6dc(0x2f6)]});}}}['showPaymentProgress'](_0x2d1e15){const _0xa6c17b=_0x35df2a,_0x36a137=typeof _0x2d1e15?.[_0xa6c17b(0x1ff)]==_0xa6c17b(0x320)?_0x2d1e15[_0xa6c17b(0x1ff)][_0xa6c17b(0x2be)]():'';_0x36a137&&this['update']({'busy':_0x36a137});}async[_0x35df2a(0x28a)](_0x645493){const _0x3602f4=_0x35df2a;for(;;)try{return await _0x645493();}catch(_0x464d56){if(_0x464d56[_0x3602f4(0x2af)]!==_0x3602f4(0x256))throw _0x464d56;if(!await this[_0x3602f4(0x245)]({'title':_0x3602f4(0x27b),'lines':_0x58ce5d(_0x464d56[_0x3602f4(0x269)]),'acceptLabel':_0x3602f4(0x355),'cancelLabel':_0x3602f4(0x2e3),'extraAction':{'label':_0x3602f4(0x301),'run':()=>this[_0x3602f4(0x30b)](_0x464d56[_0x3602f4(0x269)])}}))throw p();this[_0x3602f4(0x294)]({'busy':_0x3602f4(0x250)});}}['showOutcome']({state:_0x574961,status:_0x49311f,check:_0x53e3b4}){const _0x36b4b3=_0x35df2a;if(_0x49311f===_0x36b4b3(0x2e2)&&_0x574961[_0x36b4b3(0x2f6)])this[_0x36b4b3(0x2a2)]=null,this['update']({'notice':'Task\x20published:\x20'+_0x574961[_0x36b4b3(0x2f6)]+_0x36b4b3(0x213)});else{if(_0x49311f===_0x36b4b3(0x219))this[_0x36b4b3(0x294)]({'error':_0x36b4b3(0x20c)+_0x53e3b4[_0x36b4b3(0x2b3)][_0x36b4b3(0x291)](_0x273741=>_0x273741[_0x36b4b3(0x23a)]??_0x273741['code'])[_0x36b4b3(0x1cf)]('\x0a')});else{if(_0x49311f===_0x36b4b3(0x235))this['update']({'error':'Paid,\x20but\x20the\x20task\x20was\x20refused.\x0a'+(_0x574961['refusalProblems']??[])['map'](_0x33a2a7=>_0x33a2a7['detail']??_0x33a2a7[_0x36b4b3(0x2af)])[_0x36b4b3(0x1cf)]('\x0a')+_0x36b4b3(0x1f8)+_0x574961['orderId']});else{if(S[_0x36b4b3(0x25f)](_0x49311f)){const _0x30aa1b=[_0x36b4b3(0x237),_0x36b4b3(0x239),_0x36b4b3(0x321)],_0x5d3946=_0x574961?.[_0x36b4b3(0x2b4)]??_0x574961?.[_0x36b4b3(0x339)];_0x5d3946?.['hash']&&_0x30aa1b[_0x36b4b3(0x348)](_0x36b4b3(0x1fe)+_0x5d3946[_0x36b4b3(0x31c)]),_0x5d3946?.['explorerUrl']&&_0x30aa1b[_0x36b4b3(0x348)](_0x36b4b3(0x22c)+_0x5d3946[_0x36b4b3(0x20f)]),this['update']({'error':_0x30aa1b['join']('\x0a')});}else this['update']({'error':'Order\x20status:\x20'+_0x49311f+_0x36b4b3(0x327)});}}}}async[_0x35df2a(0x347)](){const _0x25469d=_0x35df2a,_0x3a1f70=this[_0x25469d(0x1c1)]();if(this[_0x25469d(0x24c)]['view']===_0x25469d(0x1dd)&&_0x3a1f70?.[_0x25469d(0x2f1)]){const _0x41b0d3=await this[_0x25469d(0x28c)](_0x25469d(0x268),()=>this[_0x25469d(0x1f4)]['loadDraft'](_0x3a1f70['draftId']));_0x41b0d3&&(this[_0x25469d(0x2a2)]=_0x41b0d3,this[_0x25469d(0x33e)]());return;}this[_0x25469d(0x24c)][_0x25469d(0x34f)]!==_0x25469d(0x1dd)||!_0x3a1f70?.[_0x25469d(0x222)]||_0x3a1f70[_0x25469d(0x2f6)]||!_0x3a1f70[_0x25469d(0x312)]||(this['draft']=null,await this[_0x25469d(0x28c)](_0x25469d(0x241),async _0x43dea0=>{const _0xa5863b=_0x25469d;let _0x5f425f,_0x241115,_0x13e46e;if(_0x3a1f70['canCancel']){const _0x5148d5=await this['services'][_0xa5863b(0x23a)](_0x3a1f70,_0x43dea0);_0x13e46e=_0x5148d5[_0xa5863b(0x2a7)]??_0xa5863b(0x23b),this[_0xa5863b(0x294)]({'busy':_0xa5863b(0x201)}),_0x5f425f=(await this[_0xa5863b(0x363)]({'action':_0x13e46e,'signal':_0x43dea0,'prefer':{'paymentChain':_0x5148d5[_0xa5863b(0x32d)]??_0xa5863b(0x378),'payWith':_0x5148d5[_0xa5863b(0x2d3)]??'IMD'}}))[_0xa5863b(0x308)],_0x241115=this[_0xa5863b(0x279)]({'title':_0xa5863b(0x271)});}let _0x20048c=!0x1;const _0x15bc87=async()=>{const _0x4604a7=_0xa5863b;_0x20048c&&(_0x5f425f=(await this['autoPayment']({'action':_0x13e46e,'signal':_0x43dea0,'prefer':_0x5f425f}))[_0x4604a7(0x308)],_0x20048c=!0x1);try{return await this['services'][_0x4604a7(0x338)](_0x3a1f70,_0x3a9b86=>this[_0x4604a7(0x245)](_0x3a9b86),_0x43dea0,_0x3950dd=>this[_0x4604a7(0x35a)](_0x3950dd),_0x23a67f=>this['showPaymentProgress'](_0x23a67f),_0x577791=>this[_0x4604a7(0x1f5)](_0x577791),{'payment':_0x5f425f,'review':_0x241115});}catch(_0x394bbc){throw _0x3a1f70[_0x4604a7(0x200)]&&_0x394bbc['code']===_0x4604a7(0x256)&&_0x394bbc[_0x4604a7(0x269)]?.[_0x4604a7(0x1be)]&&(_0x20048c=!0x0),_0x394bbc;}};for(;;)try{this[_0xa5863b(0x2a9)](await this[_0xa5863b(0x28a)](_0x15bc87));return;}catch(_0x594e2d){if(_0x594e2d[_0xa5863b(0x2af)]!==_0xa5863b(0x248))throw _0x594e2d;_0x5f425f=await this[_0xa5863b(0x232)]({'action':_0x13e46e,'signal':_0x43dea0,'current':_0x5f425f}),this[_0xa5863b(0x294)]({'busy':'Preparing\x20the\x20payment\x20review...'});}}));}[_0x35df2a(0x2fe)](){const _0x529cb9=_0x35df2a,_0x13043f=this[_0x529cb9(0x1c1)]();if(this['state'][_0x529cb9(0x34f)]!==_0x529cb9(0x1dd)||!_0x13043f)return;const _0x3c97df=[{'label':_0x529cb9(0x26f),'run':()=>this[_0x529cb9(0x294)]({'focus':_0x529cb9(0x23a),'tab':_0x529cb9(0x26e),'scroll':0x0})}];_0x13043f[_0x529cb9(0x2f1)]?_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x29e),'run':()=>this[_0x529cb9(0x347)]()},{'label':_0x529cb9(0x26a),'run':()=>this[_0x529cb9(0x1e1)]()}):_0x13043f['jobId']?(_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x334),'run':()=>this[_0x529cb9(0x1bf)]()},{'label':_0x529cb9(0x336),'run':()=>this['download']()}),_0x13043f[_0x529cb9(0x24c)]===_0x529cb9(0x2c8)&&_0x3c97df['push']({'label':_0x529cb9(0x209),'run':()=>this['continueTask']()})):_0x13043f[_0x529cb9(0x222)]&&(_0x13043f[_0x529cb9(0x312)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x13043f[_0x529cb9(0x200)]?'Review\x20&\x20pay':_0x529cb9(0x24b),'run':()=>this[_0x529cb9(0x347)]()}),_0x13043f[_0x529cb9(0x200)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x2e8),'run':()=>this[_0x529cb9(0x306)]()}),_0x13043f[_0x529cb9(0x24e)]&&_0x3c97df[_0x529cb9(0x348)]({'label':_0x529cb9(0x297),'run':()=>this[_0x529cb9(0x366)]()})),this['showMenu'](_0x529cb9(0x2ae),_0x3c97df);}async[_0x35df2a(0x1e1)](){const _0xeead58=_0x35df2a,_0xa45497=this[_0xeead58(0x1c1)]();if(!_0xa45497?.[_0xeead58(0x2f1)]||!await this[_0xeead58(0x245)]({'title':_0xeead58(0x21b),'lines':[_0xa45497['title']],'acceptLabel':_0xeead58(0x26a),'cancelLabel':_0xeead58(0x231)}))return;await this[_0xeead58(0x28c)]('Deleting\x20draft...',()=>this[_0xeead58(0x1f4)][_0xeead58(0x1d8)](_0xa45497[_0xeead58(0x2f1)]))&&(this[_0xeead58(0x2a2)]?.['id']===_0xa45497['draftId']&&(this[_0xeead58(0x2a2)]=null),await this[_0xeead58(0x203)]());}async[_0x35df2a(0x306)](){const _0x2cdb2f=_0x35df2a,_0x59fec1=this[_0x2cdb2f(0x1c1)]();if(this['state'][_0x2cdb2f(0x34f)]!==_0x2cdb2f(0x1dd)||!_0x59fec1?.['canCancel'])return;let _0x2fa460=!0x1;await this[_0x2cdb2f(0x28c)](_0x2cdb2f(0x27c),async()=>{const _0x4f0a10=_0x2cdb2f;await this[_0x4f0a10(0x245)]({'title':_0x4f0a10(0x34b),'lines':[_0x59fec1[_0x4f0a10(0x27a)],'',_0x4f0a10(0x236),_0x4f0a10(0x331),_0x4f0a10(0x1fd)],'acceptLabel':_0x4f0a10(0x2e8),'cancelLabel':_0x4f0a10(0x24f)})&&(await this['services'][_0x4f0a10(0x24d)](_0x59fec1),_0x2fa460=!0x0);}),_0x2fa460&&!this[_0x2cdb2f(0x261)]&&(await this[_0x2cdb2f(0x203)](),this[_0x2cdb2f(0x294)]({'notice':_0x2cdb2f(0x251)}));}async[_0x35df2a(0x366)](){const _0x70f81b=_0x35df2a,_0x55c2e4=this[_0x70f81b(0x1c1)]();if(this[_0x70f81b(0x24c)][_0x70f81b(0x34f)]!==_0x70f81b(0x1dd)||!_0x55c2e4?.['canDelete'])return;let _0x530023=!0x1;await this[_0x70f81b(0x28c)]('Deleting\x20local\x20record...',async()=>{const _0x45b35a=_0x70f81b;await this['services'][_0x45b35a(0x1f7)](_0x55c2e4),_0x530023=!0x0;}),_0x530023&&!this[_0x70f81b(0x261)]&&(await this['refresh'](),this[_0x70f81b(0x294)]({'notice':'Local\x20record\x20deleted.'}));}[_0x35df2a(0x377)](){const _0x467eb6=_0x35df2a,_0x336344=this[_0x467eb6(0x1c1)]();_0x336344?.[_0x467eb6(0x2f6)]&&this[_0x467eb6(0x28b)]('Download\x20task\x20files',[{'name':_0x467eb6(0x1e7),'label':'Save\x20under\x20this\x20directory','value':'./output/'+_0x336344[_0x467eb6(0x2f6)]}],async({out:_0x3dabe1})=>{const _0x40bfbd=_0x467eb6;if(!_0x3dabe1[_0x40bfbd(0x2be)]())throw new Error(_0x40bfbd(0x30f));this[_0x40bfbd(0x294)]({'form':null}),await this['run'](_0x40bfbd(0x252),async _0x46c797=>{const _0x3f7e34=_0x40bfbd,_0x9e0ee9=await this[_0x3f7e34(0x1f4)][_0x3f7e34(0x377)]({'id':_0x336344['jobId'],'out':_0x3dabe1,'signal':_0x46c797,'onProgress':_0x510cf7=>this['update']({'busy':'Saved\x20'+_0x510cf7[_0x3f7e34(0x30a)]})});this[_0x3f7e34(0x294)]({'notice':_0x3f7e34(0x2bb)+_0x9e0ee9[_0x3f7e34(0x1bf)][_0x3f7e34(0x1fb)]+'\x20verified\x20files\x20to\x20'+_0x3dabe1});});},{'submit':_0x467eb6(0x2a8)});}[_0x35df2a(0x1d0)](){const _0x856874=_0x35df2a;this[_0x856874(0x28b)](_0x856874(0x1d9),[{'name':_0x856874(0x1fa),'label':_0x856874(0x20e)},{'name':_0x856874(0x2c9),'label':'SSH\x20port','value':'22'},{'name':_0x856874(0x287),'label':_0x856874(0x36a)}],async _0x2f0503=>{const _0x13bc56=_0x856874,_0x2bab24=_0x45f686(_0x2f0503);this[_0x13bc56(0x31b)][_0x13bc56(0x212)](_0x1b8074=>_0x1b8074['id']===_0x2bab24['id'])||this[_0x13bc56(0x31b)]['push'](_0x2bab24),this[_0x13bc56(0x294)]({'form':null}),await this[_0x13bc56(0x203)](),this[_0x13bc56(0x294)]({'selected':this[_0x13bc56(0x24c)][_0x13bc56(0x373)][_0x13bc56(0x228)](_0x2f5ea0=>_0x2f5ea0['id']===_0x2bab24['id'])}),await this[_0x13bc56(0x31a)]();},{'submit':_0x856874(0x224)});}[_0x35df2a(0x32c)](_0x561550,_0x3d5edf,{onCancel:_0x26af84,selected:_0x48b05b=0x0,lines:_0x2daf3a,hint:_0x2eb2bb,numbered:_0x568dac=!0x1}={}){const _0x535f21=_0x35df2a;this['cancelAutoRefresh'](),this[_0x535f21(0x238)]=_0x26af84??null,this[_0x535f21(0x294)]({'menu':{'title':_0x561550,'items':_0x3d5edf,'selected':_0x48b05b,'lines':_0x2daf3a,'hint':_0x2eb2bb,'numbered':_0x568dac},'form':null});}[_0x35df2a(0x35a)](_0x558728){return new Promise((_0x1b7855,_0x45738e)=>{const _0xbdf4bd=_0x35aa;this[_0xbdf4bd(0x32c)]('Choose\x20payment\x20\xB7\x20support\x20is\x20optional',_0x558728['map']((_0x598e46,_0x132505)=>({'label':_0x598e46[_0xbdf4bd(0x34c)],'run':()=>_0x1b7855(_0x132505)})),{'onCancel':()=>_0x45738e(p()),'selected':_0x47130e});});}['dismissMenu'](){const _0x4c845c=_0x35df2a,_0x1fb46d=this['menuCancel'];this[_0x4c845c(0x238)]=null,this[_0x4c845c(0x294)]({'menu':null}),_0x1fb46d?.();}[_0x35df2a(0x1e6)](){const _0x2d72de=_0x35df2a,_0x5af5c3=this[_0x2d72de(0x24c)][_0x2d72de(0x2f4)][_0x2d72de(0x373)][this[_0x2d72de(0x24c)]['menu']['selected']];this[_0x2d72de(0x238)]=null,this['update']({'menu':null}),_0x5af5c3[_0x2d72de(0x28c)]();}[_0x35df2a(0x1e5)](){const _0x37b2b9=_0x35df2a,_0x78caaa=this[_0x37b2b9(0x1c1)]();if(!_0x78caaa||_0x78caaa[_0x37b2b9(0x26c)]===_0x37b2b9(0x292))return;const _0x1a2b49=(_0x1e67cd,_0xb7421a=!0x1)=>()=>this[_0x37b2b9(0x364)](_0x1e67cd,_0xb7421a),_0x2cd7a2=(_0x38e6a0,_0x3dfdf4,_0x5eafab,_0x1f0753,_0x13a3db=!0x1)=>()=>this['showForm'](_0x38e6a0,[{'name':_0x5eafab,'label':_0x1f0753}],_0x28b999=>{const _0x4802e2=_0x37b2b9;if(!_0x28b999[_0x5eafab][_0x4802e2(0x2be)]())throw new Error(_0x1f0753+_0x4802e2(0x1c5));return this[_0x4802e2(0x294)]({'form':null}),this[_0x4802e2(0x364)](_0x3dfdf4['concat'](_0x28b999[_0x5eafab]['trim']()),_0x13a3db);});this[_0x37b2b9(0x32c)](_0x37b2b9(0x2b2)+_0x78caaa[_0x37b2b9(0x27a)],[{'label':_0x37b2b9(0x2c4),'run':_0x1a2b49([_0x37b2b9(0x30d)])},{'label':_0x37b2b9(0x369),'run':_0x1a2b49([_0x37b2b9(0x20a)])},{'label':_0x37b2b9(0x1c0),'run':_0x1a2b49([_0x37b2b9(0x360)])},{'label':_0x37b2b9(0x35f),'run':_0x1a2b49([_0x37b2b9(0x2cc)])},{'label':'Deploy\x20official\x20worker','run':_0x1a2b49([_0x37b2b9(0x2f8)],!0x0)},{'label':_0x37b2b9(0x1eb),'run':_0x1a2b49([_0x37b2b9(0x2df)],!0x0)},{'label':'Register\x20on\x20chain','run':_0x1a2b49([_0x37b2b9(0x2ec)],!0x0)},{'label':_0x37b2b9(0x227),'run':()=>this[_0x37b2b9(0x323)]()},...[_0x37b2b9(0x1e0),_0x37b2b9(0x2e9),_0x37b2b9(0x215),_0x37b2b9(0x294)][_0x37b2b9(0x291)](_0x2352dd=>({'label':_0x2352dd[0x0][_0x37b2b9(0x325)]()+_0x2352dd[_0x37b2b9(0x1ec)](0x1),'run':_0x1a2b49([_0x2352dd],!0x0)})),{'label':_0x37b2b9(0x230),'run':()=>this['showMenu'](_0x37b2b9(0x2cb),[{'label':'List\x20skills','run':_0x1a2b49(['skills',_0x37b2b9(0x2e4)])},{'label':_0x37b2b9(0x2e6),'run':_0x2cd7a2(_0x37b2b9(0x2e6),['skills',_0x37b2b9(0x234)],'id',_0x37b2b9(0x315))},{'label':_0x37b2b9(0x342),'run':_0x2cd7a2(_0x37b2b9(0x342),['skills','remove'],'id','Skill\x20ID')}])},{'label':_0x37b2b9(0x278),'run':()=>this[_0x37b2b9(0x32c)](_0x37b2b9(0x2f5),[{'label':_0x37b2b9(0x28d),'run':_0x1a2b49([_0x37b2b9(0x1c3),_0x37b2b9(0x2e4)])},{'label':_0x37b2b9(0x1e4),'run':_0x1a2b49(['tools','add'],!0x0)},{'label':'Set\x20tool\x20credential\x20(hidden\x20input)','run':_0x2cd7a2('Tool\x20credential',[_0x37b2b9(0x1c3),'key'],_0x37b2b9(0x246),'Credential\x20name',!0x0)},{'label':_0x37b2b9(0x2bf),'run':_0x2cd7a2(_0x37b2b9(0x2bf),[_0x37b2b9(0x1c3),_0x37b2b9(0x267)],'name',_0x37b2b9(0x36e),!0x0)},{'label':_0x37b2b9(0x304),'run':_0x2cd7a2(_0x37b2b9(0x304),[_0x37b2b9(0x1c3),_0x37b2b9(0x1c6)],'id',_0x37b2b9(0x20d))}])},{'label':_0x37b2b9(0x29a),'run':()=>this[_0x37b2b9(0x32c)](_0x37b2b9(0x29f),[{'label':'List\x20RPC\x20endpoints','run':_0x1a2b49([_0x37b2b9(0x206),'list'])},{'label':'Add\x20RPC\x20endpoint\x20(hidden\x20input)','run':_0x2cd7a2(_0x37b2b9(0x2dd),[_0x37b2b9(0x206),'add'],_0x37b2b9(0x300),'Chain\x20ID',!0x0)},{'label':_0x37b2b9(0x298),'run':_0x2cd7a2(_0x37b2b9(0x343),['rpc',_0x37b2b9(0x1c6)],_0x37b2b9(0x300),'Chain\x20ID')}])},{'label':_0x37b2b9(0x371),'run':_0x1a2b49([_0x37b2b9(0x1c9)],!0x0)}]);}['serviceInstall'](){const _0x240a60=_0x35df2a;this[_0x240a60(0x28b)](_0x240a60(0x227),[{'name':_0x240a60(0x244),'label':'Runtime\x20(claude\x20or\x20codex)','value':_0x240a60(0x2a4)},{'name':'concurrency','label':'Concurrent\x20tasks\x20(1\u20134)','value':'1'},{'name':_0x240a60(0x2d5),'label':_0x240a60(0x2b7),'value':'no'}],async({runtime:_0x3c5b0d,concurrency:_0x44bd4b,boot:_0x5af142})=>{const _0x5963d4=_0x240a60;if(![_0x5963d4(0x2a4),_0x5963d4(0x2d9)][_0x5963d4(0x253)](_0x3c5b0d))throw new Error('Choose\x20claude\x20or\x20codex.');if(!/^[1-4]$/[_0x5963d4(0x2db)](_0x44bd4b))throw new Error('Concurrency\x20must\x20be\x201\u20134.');if(![_0x5963d4(0x313),'no'][_0x5963d4(0x253)](_0x5af142))throw new Error(_0x5963d4(0x2c7));const _0x40dba0=[_0x5963d4(0x2f3),_0x5963d4(0x265),_0x5963d4(0x328),_0x3c5b0d,'--concurrency',_0x44bd4b];_0x5af142===_0x5963d4(0x313)&&_0x40dba0[_0x5963d4(0x348)](_0x5963d4(0x30e)),this[_0x5963d4(0x294)]({'form':null}),await this[_0x5963d4(0x364)](_0x40dba0,!0x0);});}async[_0x35df2a(0x364)](_0x4863a0,_0x472e46=!0x1){const _0x280fd0=_0x35df2a,_0x21caa0=this[_0x280fd0(0x1c1)]();!_0x21caa0||_0x21caa0[_0x280fd0(0x26c)]===_0x280fd0(0x292)||await this[_0x280fd0(0x28c)](_0x280fd0(0x22b)+_0x4863a0[_0x280fd0(0x1cf)]('\x20')+_0x280fd0(0x2ab),async _0x783b9c=>{const _0x134a3a=_0x280fd0;if(_0x472e46){if(!await this['confirm']({'title':'Run\x20on\x20'+_0x21caa0['title']+'?','lines':[_0x134a3a(0x1f9)+_0x4863a0[_0x134a3a(0x1cf)]('\x20'),'The\x20command\x20will\x20open\x20in\x20your\x20terminal,\x20then\x20return\x20here.']}))return;await this[_0x134a3a(0x2f2)]([_0x134a3a(0x32f),..._0x4863a0],_0x21caa0),this['update']({'notice':_0x134a3a(0x2c2)});}else{const _0x3b9975=await this['services']['command']([_0x134a3a(0x32f),..._0x4863a0],_0x21caa0,_0x783b9c);this[_0x134a3a(0x294)]({'detail':{'output':_0x3b9975},'focus':'detail','scroll':0x0});}});}[_0x35df2a(0x2dc)](_0x4180f9){return new Promise((_0x56c2f1,_0x5e48cf)=>{const _0x1c8c59=_0x35aa;this[_0x1c8c59(0x2bd)]=_0x5e48cf,this[_0x1c8c59(0x28b)](_0x1c8c59(0x333),[{'name':_0x1c8c59(0x2bc),'label':_0x4180f9,'secret':!0x0}],({password:_0xdac28e})=>{const _0x13f699=_0x1c8c59;this[_0x13f699(0x294)]({'form':null}),this[_0x13f699(0x2bd)]=null,_0x56c2f1(_0xdac28e);},{'submit':_0x1c8c59(0x2e0),'onCancel':()=>{const _0x2de2bc=_0x1c8c59;this[_0x2de2bc(0x2bd)]=null,_0x5e48cf(new Error(_0x2de2bc(0x36f)));}});});}[_0x35df2a(0x259)](){const _0x14e681=_0x35df2a,_0xac6ea9=this[_0x14e681(0x24c)]['detail']?.[_0x14e681(0x2d2)]===_0x14e681(0x37f);this[_0x14e681(0x24c)]['detail']?.[_0x14e681(0x1d3)]&&this[_0x14e681(0x32c)]('Selected\x20wallet\x20actions',[...!this[_0x14e681(0x368)]()&&this[_0x14e681(0x1c1)]()?[{'label':'Use\x20this\x20wallet','run':()=>this[_0x14e681(0x2b5)]()}]:[],..._0xac6ea9?[{'label':'View\x20private\x20key','run':()=>this[_0x14e681(0x2d1)]()},{'label':_0x14e681(0x2b6),'run':()=>this['walletBackup']()},{'label':_0x14e681(0x375),'run':()=>this['walletDelete']()}]:[],...this[_0x14e681(0x24c)][_0x14e681(0x23a)]?.[_0x14e681(0x1d3)]?[{'label':'Receive\x20funds\x20/\x20QR\x20code','run':()=>this[_0x14e681(0x30c)]()}]:[]]);}async[_0x35df2a(0x307)](){const _0x57c2f7=_0x35df2a;if(this[_0x57c2f7(0x261)]||this[_0x57c2f7(0x24c)][_0x57c2f7(0x283)]||this['state'][_0x57c2f7(0x2fd)]||this['state']['menu']||this[_0x57c2f7(0x24c)][_0x57c2f7(0x245)]||this[_0x57c2f7(0x1f4)][_0x57c2f7(0x2ed)]()['length'])return;let _0x58d12a;try{_0x58d12a=await this[_0x57c2f7(0x1f4)][_0x57c2f7(0x2b0)](void 0x0,void 0x0,{'balances':!0x1});}catch{return;}if(_0x58d12a[_0x57c2f7(0x1d3)]||this['closed']||this[_0x57c2f7(0x24c)]['busy']||this[_0x57c2f7(0x24c)][_0x57c2f7(0x2fd)]||this['state'][_0x57c2f7(0x2f4)]||this['state'][_0x57c2f7(0x245)])return;const _0x308d5d=()=>this['update']({'notice':_0x57c2f7(0x316)});this[_0x57c2f7(0x32c)](_0x57c2f7(0x1f2),[{'label':_0x57c2f7(0x1cc),'run':()=>this[_0x57c2f7(0x31e)](!0x1,{'firstRun':!0x0})},{'label':_0x57c2f7(0x2c0),'run':_0x308d5d}],{'onCancel':_0x308d5d,'numbered':!0x0,'lines':[_0x57c2f7(0x1d1),_0x57c2f7(0x29b),_0x57c2f7(0x233),''],'hint':_0x57c2f7(0x1f3)});}[_0x35df2a(0x1f6)](){const _0x5aeaad=_0x35df2a;this[_0x5aeaad(0x32c)](_0x5aeaad(0x2cf),[{'label':_0x5aeaad(0x1df),'run':()=>this['walletSetup'](!0x1)},{'label':_0x5aeaad(0x2a5),'run':()=>this[_0x5aeaad(0x293)]()}]);}[_0x35df2a(0x293)](){const _0x1d4178=_0x35df2a;this[_0x1d4178(0x32c)]('Import\x20wallet',[{'label':_0x1d4178(0x2e1),'run':()=>this['walletSetup'](!0x0)},{'label':_0x1d4178(0x1e3),'run':()=>this[_0x1d4178(0x2f7)]()}]);}[_0x35df2a(0x368)](){const _0x51bfb6=_0x35df2a;return!this[_0x51bfb6(0x1c1)]()||this[_0x51bfb6(0x1c1)]()[_0x51bfb6(0x2fa)]===this['state']['address'];}async[_0x35df2a(0x276)](){const _0x4b4cd0=_0x35df2a,_0x3cd531=this['selected']()?.['address']??this[_0x4b4cd0(0x24c)]['detail']?.[_0x4b4cd0(0x2fa)];if(this[_0x4b4cd0(0x24c)][_0x4b4cd0(0x23a)]?.['source']!=='local'||!_0x3cd531||!await this[_0x4b4cd0(0x245)]({'title':_0x4b4cd0(0x1d5),'lines':[_0x3cd531,_0x4b4cd0(0x257),'On-chain\x20funds\x20stay\x20at\x20this\x20address.'],'acceptLabel':'Continue','cancelLabel':_0x4b4cd0(0x351)})||!await this[_0x4b4cd0(0x245)]({'title':_0x4b4cd0(0x35e),'lines':[_0x3cd531,_0x4b4cd0(0x33b),_0x4b4cd0(0x28f)],'acceptLabel':_0x4b4cd0(0x375),'cancelLabel':_0x4b4cd0(0x351)}))return;const _0x338154=await this[_0x4b4cd0(0x28c)](_0x4b4cd0(0x2d0),()=>this[_0x4b4cd0(0x1f4)][_0x4b4cd0(0x26d)](_0x3cd531));_0x338154&&(await this[_0x4b4cd0(0x25d)](_0x338154[_0x4b4cd0(0x37e)]),this['update']({'notice':'Wallet\x20deleted:\x20'+_0x3cd531}));}[_0x35df2a(0x2d1)](){const _0x2b2d60=_0x35df2a,_0x4875c8=this[_0x2b2d60(0x1c1)]()?.[_0x2b2d60(0x2fa)]??this[_0x2b2d60(0x24c)][_0x2b2d60(0x23a)]?.[_0x2b2d60(0x2fa)];this['state'][_0x2b2d60(0x23a)]?.['source']!==_0x2b2d60(0x37f)||!_0x4875c8||this[_0x2b2d60(0x28b)]('View\x20private\x20key\x20\xB7\x20confirm\x20password',[{'name':'password','label':'Local\x20wallet\x20password','secret':!0x0}],async({password:_0x12f255})=>{const _0x5ad71f=_0x2b2d60;this['update']({'form':null});const _0x347a11=await this[_0x5ad71f(0x28c)]('Checking\x20wallet\x20password...',_0x467538=>this['services'][_0x5ad71f(0x27f)](_0x4875c8,_0x12f255,_0x467538));_0x347a11&&this['update']({'privateKeyView':_0x347a11});},{'submit':_0x2b2d60(0x309)});}async['refreshWalletSelection'](_0x33ad98,_0xe3a855){const _0x283a2c=_0x35df2a;this[_0x283a2c(0x294)]({'selected':-0x1}),this[_0x283a2c(0x2de)]=_0x33ad98,await this[_0x283a2c(0x203)]({'notice':_0xe3a855});}async[_0x35df2a(0x2b5)](){const _0x52ac3a=_0x35df2a,_0x378f57=this['selected']();if(!_0x378f57||this[_0x52ac3a(0x368)]())return;const _0xbd8883=await this[_0x52ac3a(0x28c)](_0x52ac3a(0x22d),()=>this[_0x52ac3a(0x1f4)][_0x52ac3a(0x2ef)](_0x378f57[_0x52ac3a(0x2fa)]));_0xbd8883&&(await this[_0x52ac3a(0x203)](),this[_0x52ac3a(0x294)]({'notice':_0x52ac3a(0x1ed)+_0xbd8883[_0x52ac3a(0x2fa)]}));}[_0x35df2a(0x31e)](_0x1c4e4c,{firstRun:_0x21b396=!0x1}={}){const _0x102755=_0x35df2a,_0x222dc6=this[_0x102755(0x1f4)]['wallets']()[_0x102755(0x1fb)]>0x0||this[_0x102755(0x24c)]['detail']?.['source']===_0x102755(0x37f),_0x47347c=async({key:_0xf0bba5,password:_0x4d8636,repeat:_0x27ed1b})=>{const _0x1c4475=_0x102755;if(!_0x222dc6){if(_0x4d8636!==_0x27ed1b)throw new Error('Passwords\x20do\x20not\x20match.');if(_0x4d8636['length']<0x8)throw new Error(_0x1c4475(0x357));}this['update']({'form':null});const _0x1fc6f0=await this['run']('Encrypting\x20wallet\x20locally...',_0x20eead=>this[_0x1c4475(0x1f4)][_0x1c4475(0x296)](_0x4d8636,_0xf0bba5,_0x20eead));_0x1fc6f0&&(_0x21b396&&this[_0x1c4475(0x24c)][_0x1c4475(0x34f)]!=='wallet'&&(clearTimeout(this[_0x1c4475(0x214)]),this[_0x1c4475(0x2fb)]?.[_0x1c4475(0x275)](),++this[_0x1c4475(0x242)],this[_0x1c4475(0x294)]({'view':'wallet','items':[],'detail':null,'result':null,'query':'','filter':_0x1c4475(0x249),'tab':_0x1c4475(0x26e),'focus':_0x1c4475(0x2e4),'menu':null,'cursor':null,'total':null,'since':null})),await this[_0x1c4475(0x25d)](_0x1fc6f0['address'],_0x21b396?_0x1c4475(0x1d6)+_0x1fc6f0[_0x1c4475(0x2fa)]+_0x1c4475(0x2ad):_0x1c4475(0x23d)));};if(_0x222dc6&&!_0x1c4e4c)return _0x47347c({});this[_0x102755(0x28b)](_0x1c4e4c?_0x102755(0x354):_0x102755(0x31d),[..._0x1c4e4c?[{'name':_0x102755(0x280),'label':_0x102755(0x226),'secret':!0x0}]:[],..._0x222dc6?[]:[{'name':_0x102755(0x2bc),'label':_0x102755(0x1d2),'secret':!0x0},{'name':_0x102755(0x258),'label':_0x102755(0x317),'secret':!0x0}]],_0x47347c,{'submit':_0x1c4e4c?_0x102755(0x2a5):'Create\x20wallet',..._0x21b396?{'onCancel':()=>this['update']({'notice':'No\x20wallet\x20created.\x20Create\x20one\x20anytime\x20in\x20Wallets\x20(press\x204,\x20then\x20n).'})}:{}});}['walletRestore'](){const _0x3b972e=_0x35df2a;this[_0x3b972e(0x28b)](_0x3b972e(0x350),[{'name':_0x3b972e(0x2b9),'label':_0x3b972e(0x204)},{'name':_0x3b972e(0x2bc),'label':_0x3b972e(0x345),'secret':!0x0}],async({file:_0x296873,password:_0x497393})=>{const _0x165e92=_0x3b972e;this[_0x165e92(0x294)]({'form':null});const _0x3895ef=await this[_0x165e92(0x28c)](_0x165e92(0x330),_0x4c36c1=>this['services'][_0x165e92(0x344)](_0x296873,_0x497393,_0x4c36c1));_0x3895ef&&await this[_0x165e92(0x25d)](_0x3895ef[_0x165e92(0x2fa)]);},{'submit':_0x3b972e(0x2cd)});}[_0x35df2a(0x247)](){const _0x37586f=_0x35df2a,_0xf2fad3=this[_0x37586f(0x1c1)]()?.[_0x37586f(0x2fa)]??this['state'][_0x37586f(0x23a)]?.[_0x37586f(0x2fa)];_0xf2fad3&&this['showForm'](_0x37586f(0x2b6),[{'name':'out','label':'Save\x20encrypted\x20backup\x20to\x20(new\x20file)'}],async({out:_0x3327c2})=>{const _0x1914d9=_0x37586f;this['update']({'form':null});const _0x11b214=await this[_0x1914d9(0x28c)](_0x1914d9(0x202),()=>this[_0x1914d9(0x1f4)][_0x1914d9(0x374)](_0x3327c2,_0xf2fad3));_0x11b214&&this[_0x1914d9(0x294)]({'notice':_0x1914d9(0x37d)+_0x11b214[_0x1914d9(0x30a)]+'.\x20Keep\x20your\x20password\x20separately.'});},{'submit':_0x37586f(0x305)});}async[_0x35df2a(0x30c)](){const _0x50ec94=_0x35df2a,_0x273d43=this[_0x50ec94(0x1c1)]()?.[_0x50ec94(0x2fa)]??this['state']['detail']?.[_0x50ec94(0x2fa)];_0x273d43&&await this[_0x50ec94(0x28c)]('Preparing\x20receive\x20address...',async()=>{const _0x49021e=_0x50ec94;this['update']({'receive':await this['services'][_0x49021e(0x2ac)](_0x273d43)});});}[_0x35df2a(0x30b)](_0x146fd1){const _0x56f758=_0x35df2a,_0x56413f=_0x12a616(_0x146fd1)['filter'](_0x211f87=>!_0x211f87[_0x56f758(0x2c5)]);if(_0x56413f['length']<=0x1)return this[_0x56f758(0x32a)](_0x146fd1,_0x56413f[0x0]??_0x12a616(_0x146fd1)[0x0]);const _0x2fdf53={'dialog':this[_0x56f758(0x24c)]['confirm'],'scroll':this[_0x56f758(0x24c)][_0x56f758(0x23f)]};this[_0x56f758(0x294)]({'confirm':null}),this[_0x56f758(0x32c)](_0x56f758(0x35d),_0x56413f['map'](_0x12e6f2=>({'label':_0x285a35(_0x12e6f2),'run':()=>this[_0x56f758(0x32a)](_0x146fd1,_0x12e6f2,_0x2fdf53)})),{'onCancel':()=>this[_0x56f758(0x294)]({'confirm':_0x2fdf53[_0x56f758(0x1e9)],'scroll':_0x2fdf53[_0x56f758(0x23f)]})});}async['fundingReceive'](_0x3bc0b2,_0x443b72,_0x56008f){const _0x5a754a=_0x35df2a,_0x21f7ee=_0x56008f?.[_0x5a754a(0x1e9)]??this[_0x5a754a(0x24c)][_0x5a754a(0x245)],_0x534718=_0x56008f?.[_0x5a754a(0x23f)]??this['state'][_0x5a754a(0x23f)];try{const _0x2284e0=await this['services'][_0x5a754a(0x2ac)](_0x3bc0b2['address'],_0x443b72[_0x5a754a(0x280)]);this['fundingDialog']={'dialog':_0x21f7ee,'scroll':_0x534718},this['update']({'confirm':null,'receive':{..._0x2284e0,'targets':_0x17597a(_0x443b72)},'scroll':0x0,'error':null,'notice':null});}catch(_0x18184d){this[_0x5a754a(0x294)]({'error':_0x18184d[_0x5a754a(0x1ff)],..._0x56008f?{'confirm':_0x21f7ee,'scroll':_0x534718}:{}});}}[_0x35df2a(0x33c)](){const _0x29fed4=_0x35df2a,_0x25bbdf=this[_0x29fed4(0x22a)];this[_0x29fed4(0x22a)]=null,this[_0x29fed4(0x294)]({'receive':null,..._0x25bbdf?{'confirm':_0x25bbdf[_0x29fed4(0x1e9)],'scroll':_0x25bbdf['scroll']}:{}});}[_0x35df2a(0x24a)](){const _0x5d4685=_0x35df2a,_0x1cf8b1=this[_0x5d4685(0x24c)][_0x5d4685(0x1c4)][_0x5d4685(0x2fa)];this['showForm'](_0x5d4685(0x289),[{'name':_0x5d4685(0x1e7),'label':'New\x20SVG\x20file\x20path','placeholder':_0x5d4685(0x332)}],async({out:_0x12d911})=>{const _0x313fba=_0x5d4685,_0x236133=await this[_0x313fba(0x1f4)][_0x313fba(0x22f)](_0x1cf8b1,_0x12d911);this[_0x313fba(0x294)]({'form':null,'notice':_0x313fba(0x28e)+_0x236133['path']});},{'submit':'Save\x20QR'});}[_0x35df2a(0x290)](){const _0x45cda1=_0x35df2a;clearTimeout(this['detailTimer']),this[_0x45cda1(0x238)]?.(),this[_0x45cda1(0x238)]=null,this[_0x45cda1(0x2bd)]?.(new Error('Wallet\x20unlock\x20cancelled.')),this['passwordReject']=null,_0x3e28dd(),this['update']({'form':null,'privateKeyView':null}),this[_0x45cda1(0x261)]=!0x0,this['operation']?.[_0x45cda1(0x275)](),this[_0x45cda1(0x263)]?.['abort'](),this[_0x45cda1(0x2fb)]?.[_0x45cda1(0x275)](),this[_0x45cda1(0x243)]?.(!0x1),this['fundingDialog']=null,this['askResolve']?.([]),++this[_0x45cda1(0x242)],this[_0x45cda1(0x2eb)][_0x45cda1(0x36c)]();}}export{_ as DashboardController,m as FILTERS,u as TABS,V as VIEWS,f as visibleItems};
@@ -1 +1 @@
1
- function _0x164e(){const _0x24f188=['send','paymentChain','Command\x20finished.\x20Press\x20r\x20to\x20refresh.','services','isTTY','Dashboard\x20exited\x20with\x20','The\x20dashboard\x20needs\x20an\x20interactive\x20terminal.\x20Use\x20colony\x20--help\x20or\x20a\x20task\x20command\x20with\x20--json.','args','error','notice','exit','message','inherit','restore','code\x20','json','ipc','stdout'];_0x164e=function(){return _0x24f188;};return _0x164e();}function _0x77b3(_0x3634d4,_0x164eb5){_0x3634d4=_0x3634d4-0x69;const _0x77b331=_0x164e();let _0x14129a=_0x77b331[_0x3634d4];return _0x14129a;}import{fork as _0x349c21}from'node:child_process';import{createServices as _0x5c97b2}from'./services.mjs';function d(_0x2115f8,_0x8f0a06){return new Promise((_0x28bbdd,_0x3356da)=>{const _0x2a65cc=_0x77b3,_0x1ced81=_0x349c21(new URL('./session.mjs',import.meta.url),[],{'stdio':['inherit','inherit',_0x2a65cc(0x75),_0x2a65cc(0x79)],'windowsHide':!0x0});let _0x5a8744;_0x1ced81['on'](_0x2a65cc(0x74),_0x1a3649=>{_0x5a8744=_0x1a3649['handoff'];}),_0x1ced81['on'](_0x2a65cc(0x71),_0x3356da),_0x1ced81['on'](_0x2a65cc(0x73),(_0x1a6681,_0x2aa107)=>{const _0x240c29=_0x2a65cc;_0x1a6681!==0x0?_0x3356da(new Error(_0x240c29(0x6e)+(_0x2aa107??_0x240c29(0x77)+_0x1a6681)+'.')):_0x28bbdd(_0x5a8744);}),_0x1ced81[_0x2a65cc(0x69)]({'options':_0x2115f8,'restore':_0x8f0a06});});}async function w(_0xf4d111,_0x121bf7={}){const _0x703f1f=_0x77b3;if(!process['stdin'][_0x703f1f(0x6d)]||!process[_0x703f1f(0x7a)][_0x703f1f(0x6d)]||_0xf4d111[_0x703f1f(0x78)])throw new Error(_0x703f1f(0x6f));const _0x46c0be=_0x121bf7[_0x703f1f(0x6c)]??_0x5c97b2(_0xf4d111,_0x121bf7);let _0x4fce3c;for(;;){const _0x17cd56=await d(_0xf4d111,_0x4fce3c);if(!_0x17cd56)return;_0xf4d111['paymentChain']=_0x17cd56[_0x703f1f(0x6a)],_0x4fce3c=_0x17cd56[_0x703f1f(0x76)];try{await _0x46c0be['interactive'](_0x17cd56[_0x703f1f(0x70)],_0x17cd56['target']),_0x4fce3c[_0x703f1f(0x72)]=_0x703f1f(0x6b);}catch(_0x90d702){_0x4fce3c[_0x703f1f(0x71)]=_0x90d702[_0x703f1f(0x74)];}}}export{w as startDashboard};
1
+ import{fork as _0x5b4037}from'node:child_process';import{createServices as _0x318290}from'./services.mjs';function _0x4d8d(){const _0x5419e8=['handoff','target','ipc','json','inherit','code\x20','The\x20dashboard\x20needs\x20an\x20interactive\x20terminal.\x20Use\x20colony\x20--help\x20or\x20a\x20task\x20command\x20with\x20--json.','services','./session.mjs','Dashboard\x20exited\x20with\x20','notice','stdout','send','isTTY','message','args','error','restore','Command\x20finished.\x20Press\x20r\x20to\x20refresh.'];_0x4d8d=function(){return _0x5419e8;};return _0x4d8d();}function d(_0x2d738f,_0x13bfb0){return new Promise((_0x2b4f22,_0x35d0ed)=>{const _0x26cd15=_0x5b48,_0x29c011=_0x5b4037(new URL(_0x26cd15(0xa6),import.meta.url),[],{'stdio':['inherit','inherit',_0x26cd15(0xa2),_0x26cd15(0xa0)],'windowsHide':!0x0});let _0x262128;_0x29c011['on'](_0x26cd15(0xac),_0x27137b=>{const _0x9788c4=_0x26cd15;_0x262128=_0x27137b[_0x9788c4(0x9e)];}),_0x29c011['on']('error',_0x35d0ed),_0x29c011['on']('exit',(_0x1e1f3e,_0xcad463)=>{const _0x113953=_0x26cd15;_0x1e1f3e!==0x0?_0x35d0ed(new Error(_0x113953(0xa7)+(_0xcad463??_0x113953(0xa3)+_0x1e1f3e)+'.')):_0x2b4f22(_0x262128);}),_0x29c011[_0x26cd15(0xaa)]({'options':_0x2d738f,'restore':_0x13bfb0});});}function _0x5b48(_0x555abf,_0x4d8dba){_0x555abf=_0x555abf-0x9e;const _0x5b48dd=_0x4d8d();let _0x18b791=_0x5b48dd[_0x555abf];return _0x18b791;}async function w(_0x379a70,_0x517033={}){const _0x13357c=_0x5b48;if(!process['stdin'][_0x13357c(0xab)]||!process[_0x13357c(0xa9)]['isTTY']||_0x379a70[_0x13357c(0xa1)])throw new Error(_0x13357c(0xa4));const _0x6dc9ce=_0x517033[_0x13357c(0xa5)]??_0x318290(_0x379a70,_0x517033);let _0x4f5dd6;for(;;){const _0x297861=await d(_0x379a70,_0x4f5dd6);if(!_0x297861)return;_0x4f5dd6=_0x297861[_0x13357c(0xaf)];try{await _0x6dc9ce['interactive'](_0x297861[_0x13357c(0xad)],_0x297861[_0x13357c(0x9f)]),_0x4f5dd6[_0x13357c(0xa8)]=_0x13357c(0xb0);}catch(_0x1d95b1){_0x4f5dd6[_0x13357c(0xae)]=_0x1d95b1[_0x13357c(0xac)];}}}export{w as startDashboard};
@@ -1 +1 @@
1
- const _0x29166=_0x1875;function _0x1c93(){const _0x4d7c83=['getSnapshot','requestPassword','update','ascii','waitUntilExit','once','disabled','restoreSelectedId','options','selected','send','disconnect','extraTargets','message'];_0x1c93=function(){return _0x4d7c83;};return _0x1c93();}import{createElement as _0x4a4977,useCallback as _0x150440}from'react';import{render as _0x4da171,useApp as _0x434e44}from'ink';import{DashboardApp as _0x1ece7a}from'./app.mjs';function _0x1875(_0x28857f,_0x1c932c){_0x28857f=_0x28857f-0xd7;const _0x187598=_0x1c93();let _0x587f76=_0x187598[_0x28857f];return _0x587f76;}import{DashboardController as _0xd6a2a9}from'./controller.mjs';import{createServices as _0x1a17cb}from'./services.mjs';process[_0x29166(0xdc)](_0x29166(0xe4),async({options:_0x259b82,restore:_0x1809a2})=>{const _0x25c751=_0x29166,_0x2f0b1f=new _0xd6a2a9(_0x1a17cb(_0x259b82));_0x259b82[_0x25c751(0xd8)]=_0x2f9b87=>_0x2f0b1f[_0x25c751(0xd8)](_0x2f9b87);let _0x3dce3e;if(_0x1809a2){const {selectedId:_0x52e9d7,extraTargets:_0x5e1b78,notice:_0x16b860,error:_0x6dfc24,..._0xf9a870}=_0x1809a2;_0x3dce3e={'notice':_0x16b860??null,'error':_0x6dfc24??null},_0x2f0b1f[_0x25c751(0xd9)](_0xf9a870),_0x2f0b1f[_0x25c751(0xde)]=_0x52e9d7,_0x2f0b1f[_0x25c751(0xe3)]=_0x5e1b78;}let _0x326a82;function _0x9a6e60(){const _0x264287=_0x25c751,{exit:_0x29a8fb}=_0x434e44(),_0x57cf47=_0x150440(async(_0x50732e,_0x137158)=>{const _0x2e864c=_0x1875,{view:_0x414089,filter:_0x16045c,query:_0x430b5b,tab:_0x1138d3,focus:_0x4fb19e}=_0x2f0b1f[_0x2e864c(0xd7)]();_0x326a82={'args':_0x50732e,'target':_0x137158,'paymentChain':_0x2f0b1f['services'][_0x2e864c(0xdf)]['paymentChain'],'restore':{'view':_0x414089,'filter':_0x16045c,'query':_0x430b5b,'tab':_0x1138d3,'focus':_0x4fb19e,'selectedId':_0x2f0b1f[_0x2e864c(0xe0)]()?.['id'],'extraTargets':_0x2f0b1f[_0x2e864c(0xe3)]}},_0x2f0b1f['close'](),_0x29a8fb();},[_0x29a8fb]);return _0x4a4977(_0x1ece7a,{'controller':_0x2f0b1f,'ascii':_0x259b82[_0x264287(0xda)],'terminal':_0x57cf47,'feedback':_0x3dce3e});}const _0x1ff72a=_0x4da171(_0x4a4977(_0x9a6e60),{'interactive':!0x0,'alternateScreen':!0x0,'exitOnCtrlC':!0x1,'kittyKeyboard':{'mode':_0x25c751(0xdd)},'maxFps':0x14});try{await _0x1ff72a[_0x25c751(0xdb)](),process[_0x25c751(0xe1)]({'handoff':_0x326a82});}finally{_0x2f0b1f['close'](),process[_0x25c751(0xe2)]();}});
1
+ function _0x5e54(){const _0x255d58=['extraTargets','requestPassword','close','update','ascii','restoreSelectedId','waitUntilExit','disabled','once','disconnect','send','message','getSnapshot'];_0x5e54=function(){return _0x255d58;};return _0x5e54();}const _0x24bf0c=_0x3cc1;import{createElement as _0x2aef74,useCallback as _0x769ed0}from'react';import{render as _0x1b6f71,useApp as _0x2b22c3}from'ink';import{DashboardApp as _0x48cc0a}from'./app.mjs';import{DashboardController as _0x116f69}from'./controller.mjs';function _0x3cc1(_0xa242e6,_0x5e5460){_0xa242e6=_0xa242e6-0x1ee;const _0x3cc1cb=_0x5e54();let _0x13d9ab=_0x3cc1cb[_0xa242e6];return _0x13d9ab;}import{createServices as _0x4ee10e}from'./services.mjs';process[_0x24bf0c(0x1f6)](_0x24bf0c(0x1f9),async({options:_0x14b2ac,restore:_0x5f411b})=>{const _0x13b664=_0x24bf0c,_0x3bfaa6=new _0x116f69(_0x4ee10e(_0x14b2ac));_0x14b2ac['requestPassword']=_0x1b32a1=>_0x3bfaa6[_0x13b664(0x1ef)](_0x1b32a1);let _0x3e7073;if(_0x5f411b){const {selectedId:_0x2e6a6b,extraTargets:_0x6a3668,notice:_0x3612c6,error:_0x128f11,..._0x2ce3f5}=_0x5f411b;_0x3e7073={'notice':_0x3612c6??null,'error':_0x128f11??null},_0x3bfaa6[_0x13b664(0x1f1)](_0x2ce3f5),_0x3bfaa6[_0x13b664(0x1f3)]=_0x2e6a6b,_0x3bfaa6[_0x13b664(0x1ee)]=_0x6a3668;}let _0x5a2c40;function _0x4bfcc3(){const _0x57ce6d=_0x13b664,{exit:_0x1168c5}=_0x2b22c3(),_0x1dcf52=_0x769ed0(async(_0x3a2f4f,_0x527474)=>{const _0x59e678=_0x3cc1,{view:_0x1a8573,filter:_0x4a8471,query:_0xd04397,tab:_0x20a91f,focus:_0x56995f}=_0x3bfaa6[_0x59e678(0x1fa)]();_0x5a2c40={'args':_0x3a2f4f,'target':_0x527474,'restore':{'view':_0x1a8573,'filter':_0x4a8471,'query':_0xd04397,'tab':_0x20a91f,'focus':_0x56995f,'selectedId':_0x3bfaa6['selected']()?.['id'],'extraTargets':_0x3bfaa6[_0x59e678(0x1ee)]}},_0x3bfaa6[_0x59e678(0x1f0)](),_0x1168c5();},[_0x1168c5]);return _0x2aef74(_0x48cc0a,{'controller':_0x3bfaa6,'ascii':_0x14b2ac[_0x57ce6d(0x1f2)],'terminal':_0x1dcf52,'feedback':_0x3e7073,'welcome':!_0x5f411b});}const _0x604c5f=_0x1b6f71(_0x2aef74(_0x4bfcc3),{'interactive':!0x0,'alternateScreen':!0x0,'exitOnCtrlC':!0x1,'kittyKeyboard':{'mode':_0x13b664(0x1f5)},'maxFps':0x14});try{await _0x604c5f[_0x13b664(0x1f4)](),process[_0x13b664(0x1f8)]({'handoff':_0x5a2c40});}finally{_0x3bfaa6[_0x13b664(0x1f0)](),process[_0x13b664(0x1f7)]();}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supercolony",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "CLI for publishing and browsing IMD tasks and operating IMD workers",
5
5
  "type": "module",
6
6
  "bin": {