supercolony 0.1.0 → 0.1.1
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.
- package/dist/tui/app.mjs +1 -1
- package/package.json +1 -1
package/dist/tui/app.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x79ac55=_0x3191;import{createElement as _0x10ccd4,useEffect as _0x200ef3,useState as _0x4f1e77,useSyncExternalStore as _0x4ffcbe}from'react';import{Box as _0x1eaa3d,Text as _0x5185df,useApp as _0x2ba73b,useInput as _0x5ad587,useWindowSize as _0x34813c}from'ink';import _0x3e954b from'ink-text-input';function _0x3191(_0x3c74a1,_0x500618){_0x3c74a1=_0x3c74a1-0xbf;const _0x319124=_0x5006();let _0x495cc2=_0x319124[_0x3c74a1];return _0x495cc2;}function _0x5006(){const _0x3cf3c7=['form','then','cursor','tasks','\x20·\x20i\x20details','\x20results\x20loaded','list','\x20items\x20·\x20','network-worker','\x20·\x20','items','up/down\x20select','payment_failed','saveReceiveQr','coins','view','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','red','walletImport','ctrl','expanded','continueTask','workerMenu','refused','field','return','\x20/\x20','pageUp','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','escape','note','\x20in\x20the\x20sending\x20wallet.','fields','Keyboard\x20shortcuts','wallet','No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.','more','up/down\x20select\x20·\x20/\x20search\x20·\x20r\x20refresh\x20·\x20q\x20quit','Wallet\x20not\x20configured','search','confirm','WALLET\x20DETAILS\x20·\x20selected\x20wallet','shift','menu','converted','Press\x20e\x20for\x20the\x20full\x20error\x20·\x20PgUp/PgDn\x20scroll\x20details','submit','\x20(includes\x20gas)','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','paymentCoins','REQUEST','WALLETS','\x20tasks','\x20wallets','Optional\x20support:\x20','Deployed\x20·\x20status\x20on\x20selection','\x20·\x20Tab\x20switch\x20field\x20·\x20Esc\x20cancel','white','navigate','payment','Extra\x20gas\x20cap:\x20','busy','cancelLabel','completed','walletReceive','startsWith','close','Tab\x20list/details\x20·\x20[\x20]\x20tabs\x20·\x20PgUp/PgDn\x20scroll','receive','q\x20quit\x20·\x20commands\x20remain\x20available\x20with\x20--help','chooseMenu','explore','tab','\x20IMD\x20&\x20publish','max','secret','repeat','WORKERS','respond','files','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','a\x20add\x20·\x20m\x20actions\x20·\x20l\x20logs\x20·\x20/\x20search\x20·\x20r\x20refresh\x20·\x20q\x20quit','Wallets','[>]','expiresAt','downArrow','next','showError','[g]\x20Manage\x20wallets','\x20entries\x20·\x20Mine\x20+\x20Network','blocked','Review\x20saved\x20payment','networkFeeCap','SERVER\x20PREPARED\x20INPUT','detail','privateKey','challenged','filter','Activity','Max\x20debit:\x20','funding','focus','min','Asset:\x20','map','Esc\x20hide\x20and\x20return','green','accepted','Cancel\x20/\x20edit','Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.','deliverables','Mine\x20·\x20','minimumImd','changeTab','walletMenu','down\x20loads\x20more','Pay\x20with:\x20','split','network','hidden','addTarget','coin','workers','resumeOrder','Review\x20the\x20official\x20fee\x20before\x20paying.','name','Mine','COLONY','title','nextField','en-US','l\x20retry\x20history','dismissForm','Total\x20','join','download','cancelled','Estimated\x20payment:\x20','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','length','up/down\x20select\x20·\x20Enter\x20details\x20·\x20n\x20new\x20·\x20/\x20search\x20·\x20f\x20filter\x20·\x20?\x20help\x20·\x20q\x20quit','\x20+\x20support\x20','Help\x20us\x20make\x20Colony\x20better.','Loading...','slice','Support\x20recipient:\x20','useSelectedWallet','state','column','pageDown','installed','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','privateKeyView','floor','Order:\x20','total','Choose\x20','truncate-end','Cancel','ETH','query','label','Work','leftArrow','reduce','Workers','gray','create','black','s\x20save\x20QR\x20·\x20Esc\x20back','Network:\x20','COLONY\x20\x20get\x20things\x20done.','move','Explore','update','n\x20new\x20·\x20/\x20search\x20·\x20r\x20refresh\x20·\x20?\x20help\x20·\x20q\x20quit','scroll','acceptLabel','rows','Browse','walletBackup','upArrow','\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.','payTo','Quote\x20expires:\x20\x20\x20\x20\x20','Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet’s\x20funds.','Continue\x20&\x20publish','No\x20matching\x20items.','refreshError','taskMenu','DETAILS','Convert\x20at\x20most:\x20','estimatedAmount','Resize\x20to\x20at\x20least\x20','payWith','selected','Enter\x20','refresh','Not\x20deployed','error','amount','terminal','objective','cycleFilter','values','maximumDebit','Maximum\x20debit:\x20','includes','cyan','kind','IMD','autoRefresh','notice','logs','Esc\x20back','rightArrow','[+]','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','chainName','\x20IMD','Ctrl+C\x20exit','modelProgress','Confirm','Receive\x20on\x20','WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x20·\x20p\x20Network\x0ar\x20Refresh\x20balances\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.','Saved\x20on\x20this\x20computer\x20for\x20future\x20tasks.','address','refreshing','Wallet:\x20','Coins:\x20','cancelRequest','yellow','Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.','doctor','support','workerCommand','stringify'];_0x5006=function(){return _0x3cf3c7;};return _0x5006();}import{visibleItems as _0xd7c1e2,VIEWS as _0x450b12}from'./controller.mjs';import{clean as _0x5e64b2,detailText as _0x41c33b,lines as _0x4dc8d0,short as _0x373c00,statusLabel as _0x35936b,taskActionHint as _0x2027dc}from'./presentation.mjs';import{modelProgressLines as _0x39995a}from'../planner/progress.mjs';const X={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},Z={'tasks':'My\x20tasks','explore':_0x79ac55(0x16c),'workers':_0x79ac55(0x164),'wallet':_0x79ac55(0x111)},$=_0x2be3bb=>_0x2be3bb===_0x79ac55(0x147)?_0x79ac55(0x165):_0x2be3bb===_0x79ac55(0xfe)?_0x79ac55(0x129):[_0x79ac55(0x11f),_0x79ac55(0x119),_0x79ac55(0xd6),_0x79ac55(0xcb),'expired'][_0x79ac55(0x18e)](_0x2be3bb)?_0x79ac55(0x1a6):_0x79ac55(0x18f),n=(_0x5c6529,_0x29c575={})=>_0x10ccd4(_0x5185df,_0x29c575,_0x5e64b2(_0x5c6529));function W({label:_0x8c37a5}){const _0x265b6c=_0x79ac55,[_0x32800d,_0x5a30ec]=_0x4f1e77(0x0);return _0x200ef3(()=>{const _0x932f29=setInterval(()=>_0x5a30ec(_0xd7cda8=>(_0xd7cda8+0x1)%0x4),0x96);return()=>clearInterval(_0x932f29);},[]),n(['|','/','-','\x5c'][_0x32800d]+'\x20'+_0x8c37a5,{'color':_0x265b6c(0x18f),'wrap':_0x265b6c(0x15c)});}function x({title:_0x23b54a,width:_0x34cb46,height:_0x1d3e33,ascii:_0x425cf0,active:_0x4dd90b,children:_0x2ad773}){const _0x146b77=_0x79ac55;return _0x10ccd4(_0x1eaa3d,{'width':_0x34cb46,'height':_0x1d3e33,'flexDirection':_0x146b77(0x153),'borderStyle':_0x425cf0?X:'single','borderColor':_0x4dd90b?_0x146b77(0x18f):'gray','paddingX':0x1,'flexShrink':0x0,'overflow':_0x146b77(0x136)},n(_0x23b54a,{'color':_0x4dd90b?_0x146b77(0x18f):void 0x0,'dimColor':!_0x4dd90b}),_0x2ad773);}function ee({event:_0x3a65c0,width:_0x1b3acd,height:_0x3b9154,ascii:_0x16926d}){const _0x12b764=_0x79ac55,_0x17761a=_0x39995a(_0x3a65c0,{'width':_0x1b3acd-0x4})[_0x12b764(0x14f)](0x2);return _0x10ccd4(x,{'title':'Preparing\x20local\x20LLM','width':_0x1b3acd,'height':_0x3b9154,'ascii':_0x16926d,'active':!0x0},_0x10ccd4(_0x1eaa3d,{'flexDirection':'column','marginTop':0x1},..._0x17761a[_0x12b764(0x127)]((_0x4caab6,_0x40e8d3)=>_0x4caab6[_0x12b764(0x100)](_0x12b764(0x112))?_0x10ccd4(W,{'key':_0x40e8d3,'label':_0x4caab6['slice'](0x4)}):n(_0x4caab6||'\x20',{'key':_0x40e8d3,'color':_0x4caab6[_0x12b764(0x100)](_0x12b764(0x197))?_0x12b764(0x129):'cyan'}))),_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),n(_0x12b764(0x1a0),{'dimColor':!0x0,'wrap':_0x12b764(0x15c)}));}function D({content:_0x1e19a2,width:_0x7d931a,height:_0x45ff07,offset:_0x10c70f}){const _0x35b8fa=_0x79ac55,_0x24cb2c=_0x4dc8d0(_0x1e19a2,_0x7d931a),_0xc5500b=Math[_0x35b8fa(0x125)](_0x10c70f,Math['max'](0x0,_0x24cb2c[_0x35b8fa(0x14a)]-_0x45ff07));return _0x10ccd4(_0x1eaa3d,{'flexDirection':'column','height':_0x45ff07,'overflow':_0x35b8fa(0x136)},..._0x24cb2c[_0x35b8fa(0x14f)](_0xc5500b,_0xc5500b+_0x45ff07)[_0x35b8fa(0x127)]((_0x76f16,_0x3f57dd)=>n(_0x76f16||'\x20',{'key':_0x3f57dd})));}function N({state:_0x30b370,height:_0x5036a5,width:_0x569b46,ascii:_0x56ddfb}){const _0x215098=_0x79ac55,_0x469d91=_0xd7c1e2(_0x30b370),_0xda563b=_0x30b370['view']==='explore',_0x417dba=_0xda563b?_0x30b370['total']:_0x469d91[_0x215098(0x14a)],_0x48760c=_0xda563b?_0x417dba===null?_0x469d91['length']+_0x215098(0xc4):_0x417dba['toLocaleString'](_0x215098(0x141))+(_0x417dba===0x1?'\x20task':_0x215098(0xf3)):_0x469d91['length']+(_0x30b370[_0x215098(0xce)]==='wallet'?_0x215098(0xf4):_0x30b370[_0x215098(0xce)]===_0x215098(0x139)?_0x215098(0x118):_0x215098(0xc6)+_0x30b370['filter']),_0x10e5d5=_0x417dba===null?'Item\x20'+(_0x30b370[_0x215098(0x182)]+0x1):_0x30b370[_0x215098(0x182)]+0x1+'/'+_0x417dba['toLocaleString'](_0x215098(0x141)),_0x2f5a31=_0xda563b&&_0x30b370[_0x215098(0x182)]===_0x469d91[_0x215098(0x14a)]-0x1;let _0x322184=_0x215098(0xca);_0x2f5a31&&(_0x30b370[_0x215098(0xfc)]?_0x322184='Loading\x20history...':_0x30b370[_0x215098(0x186)]&&_0x30b370[_0x215098(0xc1)]?_0x322184=_0x215098(0x142):_0x322184=_0x30b370[_0x215098(0xc1)]?_0x215098(0x132):'End\x20of\x20history');const _0x487134=Math[_0x215098(0x109)](0x1,Math['floor']((_0x5036a5-0x5)/0x3)),_0x17ae8e=Math[_0x215098(0x109)](0x0,Math[_0x215098(0x125)](_0x30b370[_0x215098(0x182)]-Math[_0x215098(0x158)](_0x487134/0x2),_0x469d91[_0x215098(0x14a)]-_0x487134));return _0x10ccd4(_0x1eaa3d,{'flexDirection':_0x215098(0x153),'flexGrow':0x1},n(_0x48760c,{'dimColor':!0x0}),..._0x469d91['slice'](_0x17ae8e,_0x17ae8e+_0x487134)[_0x215098(0x127)]((_0x5ae6b9,_0x20af5e)=>_0x10ccd4(_0x1eaa3d,{'key':_0x5ae6b9['id'],'flexDirection':_0x215098(0x153)},n((_0x30b370['selected']===_0x17ae8e+_0x20af5e?'>\x20':'\x20\x20')+_0x373c00((_0x5ae6b9[_0x215098(0x190)]==='managed-worker'?_0x215098(0x12e):'')+_0x5ae6b9[_0x215098(0x13f)],_0x569b46-0x2),{'inverse':_0x30b370[_0x215098(0x182)]===_0x17ae8e+_0x20af5e,'bold':_0x30b370[_0x215098(0x182)]===_0x17ae8e+_0x20af5e}),n('\x20\x20'+_0x373c00(_0x5ae6b9['subtitle']??_0x35936b(_0x5ae6b9[_0x215098(0x152)])??(_0x5ae6b9[_0x215098(0x155)]?_0x215098(0xf6):_0x215098(0x185)),_0x569b46-0x2),{'color':$(_0x5ae6b9[_0x215098(0x152)])}),n((_0x56ddfb?'-':'\u2500')[_0x215098(0x10b)](_0x569b46),{'dimColor':!0x0}))),_0x469d91[_0x215098(0x14a)]===0x0?n(_0x30b370[_0x215098(0xfc)]?_0x215098(0x14e):_0x30b370['error']?_0x215098(0x12c):_0x30b370[_0x215098(0xce)]==='wallet'?_0x215098(0xe2):_0x30b370[_0x215098(0xce)]===_0x215098(0xc2)?_0x215098(0xcf):_0x215098(0x17a),{'dimColor':!0x0}):null,_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),n(_0x469d91[_0x215098(0x14a)]?_0x373c00(_0x10e5d5+_0x215098(0xc8)+_0x322184,_0x569b46):'',{'dimColor':!0x0}));}function te({state:_0x1fca04,width:_0x4f2e8a,height:_0x52d21d,ascii:_0x45068d,narrow:_0x68ad4e}){const _0x5bf0b4=_0x79ac55,_0x1dbc9c=_0x68ad4e?_0x4f2e8a:Math['floor'](_0x4f2e8a*0.43),_0x4ba975=_0x68ad4e?_0x4f2e8a:_0x4f2e8a-_0x1dbc9c-0x1,_0x315c82=0x6,_0x1fe8fa=_0x52d21d-_0x315c82,_0x58d97f=_0x10ccd4(x,{'title':_0x5bf0b4(0xf2),'width':_0x1dbc9c,'height':_0x68ad4e?_0x1fe8fa:_0x52d21d,'ascii':_0x45068d,'active':_0x1fca04[_0x5bf0b4(0x124)]===_0x5bf0b4(0xc5)},_0x10ccd4(N,{'state':_0x1fca04,'height':_0x68ad4e?_0x1fe8fa:_0x52d21d,'width':_0x1dbc9c-0x4,'ascii':_0x45068d})),_0x5a24b3=_0x10ccd4(x,{'title':_0x5bf0b4(0xe8),'width':_0x4ba975,'height':_0x1fe8fa,'ascii':_0x45068d,'active':_0x1fca04[_0x5bf0b4(0x124)]===_0x5bf0b4(0x11d)},_0x10ccd4(D,{'content':_0x41c33b(_0x1fca04),'width':_0x4ba975-0x4,'height':_0x1fe8fa-0x4,'offset':_0x1fca04['scroll']}),_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),n('m\x20wallet\x20actions',{'color':_0x5bf0b4(0x18f),'wrap':_0x5bf0b4(0x15c)})),_0x26596f=_0x10ccd4(x,{'title':'WALLET\x20MANAGEMENT','width':_0x4ba975,'height':_0x315c82,'ascii':_0x45068d,'active':!0x1},n('[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet'),n(_0x5bf0b4(0x117)),n('[p]\x20Network:\x20'+(_0x1fca04['detail']?.['chainName']??_0x5bf0b4(0x14e)),{'color':_0x5bf0b4(0x18f)}));return _0x68ad4e?_0x10ccd4(_0x1eaa3d,{'flexDirection':_0x5bf0b4(0x153),'width':_0x4f2e8a,'height':_0x52d21d},_0x1fca04[_0x5bf0b4(0x124)]==='list'?_0x58d97f:_0x5a24b3,_0x26596f):_0x10ccd4(_0x1eaa3d,{'width':_0x4f2e8a,'height':_0x52d21d,'gap':0x1},_0x58d97f,_0x10ccd4(_0x1eaa3d,{'width':_0x4ba975,'flexDirection':_0x5bf0b4(0x153)},_0x5a24b3,_0x26596f));}function ne({controller:_0x42bb15,state:_0x36bea9,width:_0xe51f80,height:_0x87d8a0,ascii:_0x3c2aae}){const _0xfe7928=_0x79ac55,_0x59519a=_0x36bea9[_0xfe7928(0xbf)],_0x139308=_0x59519a[_0xfe7928(0xdf)][_0x59519a[_0xfe7928(0xd7)]],_0x216ae8=_0x59519a[_0xfe7928(0xdf)][_0xfe7928(0x14f)](0x0,_0x59519a[_0xfe7928(0xd7)])[_0xfe7928(0x127)](_0x3c34ff=>_0x3c34ff[_0xfe7928(0x160)]+':\x20'+(_0x3c34ff[_0xfe7928(0x10a)]?'********':_0x59519a['values'][_0x3c34ff[_0xfe7928(0x13c)]]));return _0x10ccd4(x,{'title':_0x59519a[_0xfe7928(0x13f)],'width':_0xe51f80,'height':_0x87d8a0,'ascii':_0x3c2aae,'active':!0x0},_0x10ccd4(_0x1eaa3d,{'marginTop':0x1,'flexDirection':_0xfe7928(0x153)},_0x59519a[_0xfe7928(0xf0)]?n(_0xfe7928(0x133)+_0x59519a[_0xfe7928(0xf0)][_0xfe7928(0x127)](_0x578ae0=>_0x578ae0===_0x59519a[_0xfe7928(0x181)]?'['+_0x578ae0+']':_0x578ae0)[_0xfe7928(0x145)]('\x20')+'\x20\xB7\x20up/down\x20change',{'color':'cyan'}):null,..._0x216ae8[_0xfe7928(0x127)]((_0x1476b2,_0x53e91f)=>n(_0x373c00(_0x1476b2,_0xe51f80-0x6),{'key':_0x53e91f,'dimColor':!0x0})),n(_0x139308[_0xfe7928(0x160)],{'bold':!0x0}),_0x10ccd4(_0x1eaa3d,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math['max'](0x2,_0x87d8a0-0x9),'overflow':_0xfe7928(0x136)},n('>\x20',{'color':_0xfe7928(0x18f)}),_0x10ccd4(_0x3e954b,{'key':_0x139308[_0xfe7928(0x13c)],'value':_0x59519a[_0xfe7928(0x18b)][_0x139308['name']],'placeholder':_0x139308['placeholder']??'','mask':_0x139308[_0xfe7928(0x10a)]?'*':void 0x0,'onChange':_0x541155=>_0x42bb15['setField'](_0x541155),'onSubmit':()=>_0x59519a[_0xfe7928(0xd7)]===_0x59519a[_0xfe7928(0xdf)][_0xfe7928(0x14a)]-0x1?void _0x42bb15['submitForm']():_0x42bb15[_0xfe7928(0x140)]()})),n(_0x59519a[_0xfe7928(0x186)]??'',{'color':_0xfe7928(0xd0)}),_0x59519a['paymentCoins']?n(_0xfe7928(0x13b),{'dimColor':!0x0}):null),_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),n(_0xfe7928(0x183)+(_0x59519a[_0xfe7928(0xd7)]===_0x59519a[_0xfe7928(0xdf)][_0xfe7928(0x14a)]-0x1?_0x59519a[_0xfe7928(0xed)]:_0xfe7928(0x115))+_0xfe7928(0xf7),{'color':'cyan','wrap':_0xfe7928(0x15c)}));}function oe({state:_0x5bd1d5,width:_0x44c2ee,height:_0x2d5bd3,ascii:_0x2684f9}){const _0x2b91d7=_0x79ac55,_0x3f4e6d=_0x5bd1d5[_0x2b91d7(0xe7)],_0x342695=_0x3f4e6d[_0x2b91d7(0xfa)],_0x3102ec=_0x342695?_0x342695[_0x2b91d7(0x1a9)]?_0x2b91d7(0x144)+_0x342695[_0x2b91d7(0x1a9)][_0x2b91d7(0x15a)]+'\x20IMD\x20(fee\x20'+_0x342695[_0x2b91d7(0x187)]+_0x2b91d7(0x14c)+_0x342695['support'][_0x2b91d7(0x187)]+')':'Fee\x20'+_0x342695['amount']+_0x2b91d7(0x19a):null,_0x1db41b=_0x342695?.[_0x2b91d7(0x123)]?_0x2b91d7(0x122)+_0x342695['funding'][_0x2b91d7(0x18c)]:null,_0x2eae59=_0x342695?'Network:\x20'+_0x342695['chainName']:null,_0x5ea964=_0x342695?.[_0x2b91d7(0x11b)]?(_0x342695['funding']?.[_0x2b91d7(0x138)]===_0x2b91d7(0x15e)?'Included\x20gas\x20cap:\x20':_0x2b91d7(0xfb))+_0x342695['networkFeeCap']+'\x20ETH':null,_0x4a227f=_0x342695?_0x342695[_0x2b91d7(0x1a9)]?_0x2b91d7(0x156):_0x2b91d7(0xdb):null;let _0x26c288=_0x342695?'Pay\x20'+(_0x342695['support']?.[_0x2b91d7(0x15a)]??_0x342695['amount'])+_0x2b91d7(0x108):'';_0x342695?.[_0x2b91d7(0x123)]&&_0x342695[_0x2b91d7(0x123)][_0x2b91d7(0x138)]!=='IMD'&&(_0x26c288=_0x342695[_0x2b91d7(0x123)][_0x2b91d7(0xeb)]?_0x2b91d7(0x179):'Convert\x20&\x20publish');const _0x16df42=0x2+_0x4dc8d0(_0x3f4e6d[_0x2b91d7(0x13f)]??'Review\x20saved\x20payment',_0x44c2ee-0x4)[_0x2b91d7(0x14a)]+[_0x3102ec,_0x1db41b,_0x2eae59,_0x5ea964,_0x4a227f][_0x2b91d7(0x120)](Boolean)[_0x2b91d7(0x163)]((_0x179215,_0x5889df)=>_0x179215+_0x4dc8d0(_0x5889df,_0x44c2ee-0x4)[_0x2b91d7(0x14a)],0x0)+(_0x44c2ee<0x46?0x2:0x1)+0x1,_0x414228=_0x342695?[_0x2b91d7(0xf1),_0x342695[_0x2b91d7(0x189)],'',..._0x342695[_0x2b91d7(0x12d)]['map'](_0x5d109a=>'-\x20'+_0x5d109a),'',..._0x342695[_0x2b91d7(0x1a9)]?[_0x2b91d7(0x14d),_0x2b91d7(0xf5)+_0x342695[_0x2b91d7(0x1a9)][_0x2b91d7(0x187)]+_0x2b91d7(0x19a),_0x2b91d7(0x150)+_0x342695[_0x2b91d7(0x1a9)]['recipient'],_0x2b91d7(0xef),'']:[],..._0x342695['funding']&&_0x342695[_0x2b91d7(0x123)][_0x2b91d7(0x138)]!==_0x2b91d7(0x191)?[(_0x342695[_0x2b91d7(0x123)][_0x2b91d7(0xeb)]?'Conversion\x20already\x20confirmed;\x20reviewed\x20limit:\x20':_0x2b91d7(0x17e))+_0x342695['funding'][_0x2b91d7(0x187)],..._0x342695[_0x2b91d7(0x123)][_0x2b91d7(0x17f)]&&!_0x342695[_0x2b91d7(0x123)][_0x2b91d7(0xeb)]?[_0x2b91d7(0x148)+_0x342695[_0x2b91d7(0x123)]['estimatedAmount']]:[],_0x2b91d7(0x18d)+_0x342695[_0x2b91d7(0x123)]['maximumDebit']+(_0x342695[_0x2b91d7(0x123)][_0x2b91d7(0x138)]===_0x2b91d7(0x15e)?_0x2b91d7(0xee):'\x20+\x20ETH\x20gas'),'IMD\x20for\x20this\x20task:\x20'+_0x342695[_0x2b91d7(0x123)][_0x2b91d7(0x12f)],_0x2b91d7(0x149),'']:[],_0x2b91d7(0x177)+_0x342695[_0x2b91d7(0x113)],..._0x3f4e6d[_0x2b91d7(0xd3)]?['','PAYMENT\x20DETAILS',_0x2b91d7(0x169)+_0x342695[_0x2b91d7(0x135)],_0x2b91d7(0x126)+_0x342695['asset'],'Pay\x20to:\x20'+_0x342695[_0x2b91d7(0x176)],_0x2b91d7(0x159)+_0x342695['orderId'],'',_0x2b91d7(0x11c),JSON[_0x2b91d7(0x1ab)](_0x342695['prepared'],null,0x2)]:[]][_0x2b91d7(0x145)]('\x0a'):_0x3f4e6d['lines'][_0x2b91d7(0x145)]('\x0a');return _0x10ccd4(x,{'title':_0x3f4e6d[_0x2b91d7(0x13f)]??_0x2b91d7(0x11a),'width':_0x44c2ee,'height':_0x2d5bd3,'ascii':_0x2684f9,'active':!0x0},_0x3102ec?n(_0x3102ec,{'color':_0x2b91d7(0x18f),'bold':!0x0}):null,_0x1db41b?n(_0x1db41b,{'color':_0x2b91d7(0x18f),'bold':!0x0}):null,_0x2eae59?n(_0x2eae59,{'color':_0x2b91d7(0x18f)}):null,_0x5ea964?n(_0x5ea964,{'color':_0x2b91d7(0x1a6)}):null,_0x10ccd4(D,{'content':_0x414228,'width':_0x44c2ee-0x4,'height':Math[_0x2b91d7(0x109)](0x0,_0x2d5bd3-_0x16df42),'offset':_0x5bd1d5[_0x2b91d7(0x16f)]}),_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),_0x4a227f?n(_0x4a227f,{'color':_0x2b91d7(0x1a6)}):null,_0x10ccd4(_0x1eaa3d,{'flexDirection':_0x44c2ee<0x46?_0x2b91d7(0x153):'row','gap':_0x44c2ee<0x46?0x0:0x3},n('[\x20'+(_0x3f4e6d[_0x2b91d7(0xfd)]??(_0x342695?_0x2b91d7(0x12b):_0x2b91d7(0x15d)))+'\x20]',{'inverse':!_0x3f4e6d[_0x2b91d7(0x12a)]}),n('[\x20'+(_0x342695?_0x26c288:_0x3f4e6d[_0x2b91d7(0x170)]??_0x2b91d7(0x19d))+'\x20]',{'inverse':_0x3f4e6d[_0x2b91d7(0x12a)],'color':_0x2b91d7(0x18f)})),n(_0x2b91d7(0x198)+(_0x342695?_0x2b91d7(0xc3):''),{'dimColor':!0x0,'wrap':_0x2b91d7(0x15c)}));}function re({state:_0x7975a8,width:_0x84e743,height:_0xf27bc8,ascii:_0xb7a4df}){const _0x30d3c0=_0x79ac55,_0x877f7a=_0x7975a8[_0x30d3c0(0xea)],_0x52297a=Math[_0x30d3c0(0x109)](0x1,_0xf27bc8-0x5),_0x32ce97=Math[_0x30d3c0(0x109)](0x0,Math[_0x30d3c0(0x125)](_0x877f7a[_0x30d3c0(0x182)]-Math[_0x30d3c0(0x158)](_0x52297a/0x2),_0x877f7a[_0x30d3c0(0xc9)][_0x30d3c0(0x14a)]-_0x52297a));return _0x10ccd4(x,{'title':_0x877f7a[_0x30d3c0(0x13f)],'width':_0x84e743,'height':_0xf27bc8,'ascii':_0xb7a4df,'active':!0x0},..._0x877f7a['items'][_0x30d3c0(0x14f)](_0x32ce97,_0x32ce97+_0x52297a)[_0x30d3c0(0x127)]((_0x55a82d,_0x48bd2b)=>n((_0x32ce97+_0x48bd2b===_0x877f7a['selected']?'>\x20':'\x20\x20')+_0x55a82d[_0x30d3c0(0x160)],{'key':_0x48bd2b,'inverse':_0x32ce97+_0x48bd2b===_0x877f7a[_0x30d3c0(0x182)]})),_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),n(_0x30d3c0(0x10f),{'dimColor':!0x0}));}const ie=_0x79ac55(0x19f);function fe({controller:_0x45f101,ascii:_0x513e3e=!0x1,dimensions:_0x3d5095,terminal:_0x106ba7,feedback:_0x1a61b1}){const _0x28b682=_0x79ac55,_0x466153=_0x4ffcbe(_0x45f101['subscribe'],_0x45f101['getSnapshot']),_0x2eb7c5=_0x466153[_0x28b682(0x186)]??_0x466153[_0x28b682(0x17b)],_0x40c07f=_0x34813c(),_0x137795=_0x3d5095??_0x40c07f,_0xa8a8ae=_0x137795['columns'],_0x20b6ed=Math[_0x28b682(0x109)](0x8,_0x137795['rows']-0x1),_0x37b953=_0xa8a8ae<0x64,{exit:_0x14a18c}=_0x2ba73b();if(_0x200ef3(()=>(_0x45f101[_0x28b682(0x188)]=_0x106ba7,_0x45f101[_0x28b682(0x184)]()[_0x28b682(0xc0)](()=>{_0x1a61b1&&_0x45f101['update'](_0x1a61b1);}),()=>_0x45f101[_0x28b682(0x101)]()),[_0x45f101,_0x106ba7,_0x1a61b1]),_0x200ef3(()=>{const _0x175284=setInterval(()=>{const _0x4031a2=_0x3191;_0x45f101[_0x4031a2(0x192)]();},0x1388);return()=>clearInterval(_0x175284);},[_0x45f101]),_0x5ad587((_0x1c18ff,_0x3efa96)=>{const _0x336477=_0x28b682;if(_0x3efa96[_0x336477(0xd2)]&&_0x1c18ff==='c'){_0x45f101[_0x336477(0x101)](),_0x14a18c();return;}if(_0x466153[_0x336477(0x157)]){_0x3efa96['escape']&&_0x45f101[_0x336477(0x16d)]({'privateKeyView':null});return;}if(_0xa8a8ae<0x28||_0x137795[_0x336477(0x171)]<0x14){_0x466153[_0x336477(0x103)]?_0x3efa96[_0x336477(0xdc)]&&_0x45f101['update']({'receive':null}):_0x1c18ff==='q'&&(_0x45f101[_0x336477(0x101)](),_0x14a18c());return;}if(_0x466153[_0x336477(0xe7)]){_0x3efa96[_0x336477(0xdc)]?_0x45f101[_0x336477(0x10d)](!0x1):_0x3efa96[_0x336477(0x107)]||_0x3efa96[_0x336477(0x162)]||_0x3efa96[_0x336477(0x196)]?_0x45f101[_0x336477(0x16d)]({'confirm':{..._0x466153[_0x336477(0xe7)],'accepted':!_0x466153[_0x336477(0xe7)][_0x336477(0x12a)]}}):_0x3efa96[_0x336477(0xd8)]?_0x45f101[_0x336477(0x10d)](_0x466153[_0x336477(0xe7)][_0x336477(0x12a)]):_0x1c18ff==='i'?_0x45f101['update']({'confirm':{..._0x466153[_0x336477(0xe7)],'expanded':!_0x466153[_0x336477(0xe7)]['expanded']},'scroll':0x0}):(_0x3efa96[_0x336477(0x154)]||_0x3efa96['pageUp'])&&_0x45f101[_0x336477(0x16d)]({'scroll':Math[_0x336477(0x109)](0x0,_0x466153[_0x336477(0x16f)]+(_0x3efa96['pageDown']?0x5:-0x5))});return;}if(_0x466153[_0x336477(0xbf)]){_0x3efa96['escape']?_0x45f101[_0x336477(0x143)]():(_0x3efa96[_0x336477(0x174)]||_0x3efa96['downArrow'])&&_0x466153['form'][_0x336477(0xf0)]?_0x45f101['cyclePaymentCoin'](_0x3efa96['upArrow']):_0x3efa96[_0x336477(0x107)]&&_0x45f101[_0x336477(0x140)](_0x3efa96[_0x336477(0xe9)]);return;}if(_0x466153[_0x336477(0x103)]){_0x3efa96['escape']&&_0x45f101['update']({'receive':null}),_0x1c18ff==='s'&&_0x45f101[_0x336477(0xcc)]();return;}if(_0x466153['menu']){_0x3efa96[_0x336477(0xdc)]?_0x45f101['dismissMenu']():_0x3efa96[_0x336477(0x114)]||_0x3efa96['upArrow']?_0x45f101[_0x336477(0x16d)]({'menu':{..._0x466153['menu'],'selected':Math[_0x336477(0x109)](0x0,Math[_0x336477(0x125)](_0x466153[_0x336477(0xea)][_0x336477(0xc9)][_0x336477(0x14a)]-0x1,_0x466153['menu'][_0x336477(0x182)]+(_0x3efa96[_0x336477(0x114)]?0x1:-0x1)))}}):_0x3efa96[_0x336477(0xd8)]&&_0x45f101[_0x336477(0x105)]();return;}if(_0x1c18ff==='q'&&!_0x466153[_0x336477(0xfc)]){_0x45f101[_0x336477(0x101)](),_0x14a18c();return;}if(!_0x466153[_0x336477(0xfc)]){if(_0x1c18ff==='e'&&_0x2eb7c5){_0x45f101[_0x336477(0x116)]();return;}if('1234'[_0x336477(0x18e)](_0x1c18ff)&&_0x1c18ff['length']===0x1){_0x45f101[_0x336477(0xf9)](_0x450b12[Number(_0x1c18ff)-0x1]);return;}if(_0x1c18ff==='?'){_0x45f101['update']({'help':!_0x466153['help'],'scroll':0x0});return;}if(_0x3efa96['escape']){_0x45f101[_0x336477(0x16d)]({'focus':_0x336477(0xc5),'help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x1c18ff==='n'){_0x466153[_0x336477(0xce)]===_0x336477(0xe1)?_0x45f101['walletSetup'](!0x1):_0x45f101[_0x336477(0x166)]();return;}if(_0x1c18ff==='r'){_0x45f101[_0x336477(0x184)]();return;}if(_0x3efa96[_0x336477(0x154)]||_0x3efa96[_0x336477(0xda)]||_0x466153['focus']===_0x336477(0x11d)&&(_0x3efa96[_0x336477(0x114)]||_0x3efa96[_0x336477(0x174)])){_0x45f101[_0x336477(0x16d)]({'scroll':Math[_0x336477(0x109)](0x0,_0x466153[_0x336477(0x16f)]+(_0x3efa96[_0x336477(0x154)]?0x5:_0x3efa96[_0x336477(0xda)]?-0x5:_0x3efa96[_0x336477(0x114)]?0x1:-0x1))});return;}if(_0x466153['view']===_0x336477(0xe1)){(_0x3efa96['downArrow']||_0x3efa96[_0x336477(0x174)])&&_0x45f101[_0x336477(0x16b)](_0x3efa96[_0x336477(0x114)]?0x1:-0x1),(_0x3efa96['return']||_0x3efa96[_0x336477(0x107)])&&_0x45f101[_0x336477(0x16d)]({'focus':_0x466153['focus']==='list'?_0x336477(0x11d):_0x336477(0xc5),'scroll':0x0}),_0x1c18ff==='u'&&_0x45f101[_0x336477(0x151)](),_0x1c18ff==='m'&&_0x45f101[_0x336477(0x131)](),_0x1c18ff==='g'&&_0x45f101['walletManagement'](),_0x1c18ff==='i'&&_0x45f101[_0x336477(0xd1)](),_0x1c18ff==='d'&&_0x45f101[_0x336477(0xff)](),_0x1c18ff==='b'&&_0x45f101[_0x336477(0x173)](),_0x1c18ff==='p'&&_0x45f101['walletNetworkMenu']();return;}if(_0x3efa96[_0x336477(0x114)]||_0x3efa96[_0x336477(0x174)]){_0x45f101['move'](_0x3efa96[_0x336477(0x114)]?0x1:-0x1);return;}if(_0x3efa96['return']||_0x3efa96[_0x336477(0x107)]){_0x45f101['update']({'focus':_0x466153[_0x336477(0x124)]===_0x336477(0xc5)?_0x336477(0x11d):'list','scroll':0x0});return;}if(_0x466153[_0x336477(0xce)]===_0x336477(0x139)){_0x1c18ff==='/'&&_0x45f101['search'](),_0x1c18ff==='a'&&_0x45f101[_0x336477(0x137)](),_0x1c18ff==='m'&&_0x45f101[_0x336477(0xd5)](),_0x1c18ff==='l'&&_0x45f101[_0x336477(0x1aa)]([_0x336477(0x194)]),_0x1c18ff==='g'&&_0x45f101['workerCommand']([_0x336477(0x1a8)]);return;}_0x1c18ff==='/'&&_0x45f101[_0x336477(0xe6)](),_0x1c18ff==='f'&&_0x466153[_0x336477(0xce)]==='tasks'&&_0x45f101[_0x336477(0x18a)](),(_0x1c18ff==='['||_0x1c18ff===']')&&_0x45f101[_0x336477(0x130)](_0x1c18ff==='['?-0x1:0x1),_0x1c18ff==='d'&&_0x45f101[_0x336477(0x10e)](),_0x1c18ff==='s'&&_0x45f101[_0x336477(0x146)](),_0x1c18ff==='c'&&_0x45f101[_0x336477(0xd4)](),_0x1c18ff==='o'&&_0x45f101[_0x336477(0x13a)](),_0x1c18ff==='x'&&_0x45f101[_0x336477(0x1a5)](),_0x1c18ff==='m'&&_0x45f101[_0x336477(0x17c)](),_0x1c18ff==='l'&&_0x45f101[_0x336477(0xe3)]();}}),_0xa8a8ae<0x28||_0x137795[_0x28b682(0x171)]<0x14)return _0x10ccd4(_0x1eaa3d,{'width':_0xa8a8ae,'flexDirection':_0x28b682(0x153)},n(_0x28b682(0x13e),{'color':_0x28b682(0x18f)}),n(_0x28b682(0x1a7)),n(_0x466153['receive']||_0x466153[_0x28b682(0x157)]?_0x28b682(0x195):_0x28b682(0x104)));if(_0x466153['privateKeyView'])return _0x10ccd4(x,{'title':'Private\x20key','width':_0xa8a8ae,'height':_0x20b6ed,'ascii':_0x513e3e,'active':!0x0},n(_0x28b682(0x1a3)+_0x466153[_0x28b682(0x157)]['address']),n(_0x28b682(0x178),{'color':_0x28b682(0x1a6)}),_0x10ccd4(_0x1eaa3d,{'marginTop':0x1},n(_0x466153['privateKeyView'][_0x28b682(0x11e)])),_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),n(_0x28b682(0x128),{'color':'cyan'}));if(_0x466153[_0x28b682(0x103)]&&!_0x466153[_0x28b682(0xbf)]){const _0x2eed0b=_0x466153[_0x28b682(0x103)],_0x44cbc4=_0x2eed0b['qr'][_0x28b682(0x134)]('\x0a'),_0x5476db=_0x44cbc4['length']+_0x4dc8d0(_0x2eed0b[_0x28b682(0x1a1)],_0xa8a8ae)[_0x28b682(0x14a)]+_0x4dc8d0(_0x28b682(0x15b)+_0x2eed0b[_0x28b682(0x199)]+_0x28b682(0xde),_0xa8a8ae)[_0x28b682(0x14a)]+0x3,_0x3cc61a=_0xa8a8ae>=_0x44cbc4[0x0]['length']&&_0x20b6ed>=_0x5476db;return _0x10ccd4(_0x1eaa3d,{'width':_0xa8a8ae,'height':_0x20b6ed,'flexDirection':'column'},n(_0x28b682(0x19e)+_0x2eed0b['chainName'],{'bold':!0x0,'color':_0x28b682(0x18f)}),n(_0x2eed0b[_0x28b682(0x1a1)]),n(_0x28b682(0x1a4)+_0x2eed0b[_0x28b682(0xcd)][_0x28b682(0x145)](',\x20')),_0x3cc61a?n(_0x2eed0b['qr'],{'color':_0x28b682(0x167),'backgroundColor':_0x28b682(0xf8)}):n(_0x28b682(0x180)+Math['max'](0x28,_0x44cbc4[0x0][_0x28b682(0x14a)])+'\x20columns\x20and\x20'+(_0x5476db+0x1)+_0x28b682(0x175)),n(_0x28b682(0x15b)+_0x2eed0b[_0x28b682(0x199)]+'\x20in\x20the\x20sending\x20wallet.',{'color':_0x28b682(0x1a6)}),n(_0x373c00(_0x466153[_0x28b682(0x186)]??_0x466153['notice']??_0x28b682(0x168),_0xa8a8ae),{'color':_0x466153[_0x28b682(0x186)]?'red':_0x28b682(0x18f)}));}const _0x377456=_0x466153[_0x28b682(0xbf)]||_0x466153[_0x28b682(0xe7)]||_0x466153['modelProgress'],_0x502a9f=Math[_0x28b682(0x109)](0x6,_0x20b6ed-(_0x377456?0x4:0x7)),_0x4a2443=_0xd7c1e2(_0x466153)[_0x466153['selected']];let _0x1561b2;if(_0x466153[_0x28b682(0xbf)])_0x1561b2=_0x10ccd4(ne,{'controller':_0x45f101,'state':_0x466153,'width':_0xa8a8ae,'height':_0x502a9f,'ascii':_0x513e3e});else{if(_0x466153[_0x28b682(0xe7)])_0x1561b2=_0x10ccd4(oe,{'state':_0x466153,'width':_0xa8a8ae,'height':_0x502a9f,'ascii':_0x513e3e});else{if(_0x466153[_0x28b682(0x19c)])_0x1561b2=_0x10ccd4(ee,{'event':_0x466153[_0x28b682(0x19c)],'width':_0xa8a8ae,'height':_0x502a9f,'ascii':_0x513e3e});else{if(_0x466153['menu'])_0x1561b2=_0x10ccd4(re,{'state':_0x466153,'width':_0xa8a8ae,'height':_0x502a9f,'ascii':_0x513e3e});else{if(_0x466153['help'])_0x1561b2=_0x10ccd4(x,{'title':_0x28b682(0xe0),'width':_0xa8a8ae,'height':_0x502a9f,'ascii':_0x513e3e,'active':!0x0},_0x10ccd4(D,{'content':ie,'width':_0xa8a8ae-0x4,'height':_0x502a9f-0x4,'offset':_0x466153[_0x28b682(0x16f)]}));else{if(_0x466153['view']==='wallet')_0x1561b2=_0x10ccd4(te,{'state':_0x466153,'width':_0xa8a8ae,'height':_0x502a9f,'ascii':_0x513e3e,'narrow':_0x37b953});else{const _0x4d90c3=!_0x37b953||_0x466153['focus']===_0x28b682(0xc5),_0x273aec=!_0x37b953||_0x466153[_0x28b682(0x124)]===_0x28b682(0x11d),_0xb7319a=_0x37b953?_0xa8a8ae:Math[_0x28b682(0x158)](_0xa8a8ae*0.43),_0x1c30a4=_0x4d90c3&&!_0x37b953?_0xa8a8ae-_0xb7319a-0x1:_0xa8a8ae,_0x5517ea=_0x41c33b({..._0x466153,'selectedId':_0x4a2443?.['id']});_0x1561b2=_0x10ccd4(_0x1eaa3d,{'height':_0x502a9f,'width':_0xa8a8ae,'gap':0x1},_0x4d90c3?_0x10ccd4(x,{'title':_0x466153[_0x28b682(0xce)]===_0x28b682(0x139)?_0x28b682(0x10c):_0x466153[_0x28b682(0x120)]+(_0x466153['query']?_0x28b682(0xd9)+_0x373c00(_0x466153[_0x28b682(0x15f)],0x16):''),'width':_0xb7319a,'height':_0x502a9f,'ascii':_0x513e3e,'active':_0x466153[_0x28b682(0x124)]===_0x28b682(0xc5)},_0x10ccd4(N,{'state':_0x466153,'height':_0x502a9f,'width':_0xb7319a-0x4,'ascii':_0x513e3e})):null,_0x273aec?_0x10ccd4(x,{'title':_0x373c00(_0x4a2443?.['id']??_0x28b682(0x17d),_0x1c30a4-0x7),'width':_0x1c30a4,'height':_0x502a9f,'ascii':_0x513e3e,'active':_0x466153[_0x28b682(0x124)]===_0x28b682(0x11d)},_0x466153['view']===_0x28b682(0xc2)||_0x466153[_0x28b682(0xce)]===_0x28b682(0x106)?n(['Overview',_0x28b682(0x121),'Files'][_0x28b682(0x127)](_0x55cfcb=>_0x55cfcb===_0x466153[_0x28b682(0x107)]?'['+_0x55cfcb+']':_0x55cfcb)['join']('\x20\x20'),{'color':'cyan','wrap':_0x28b682(0x15c)}):null,_0x10ccd4(D,{'content':_0x5517ea,'width':_0x1c30a4-0x4,'height':_0x502a9f-0x5,'offset':_0x466153[_0x28b682(0x16f)]}),_0x10ccd4(_0x1eaa3d,{'flexGrow':0x1}),n(_0x466153[_0x28b682(0xce)]===_0x28b682(0x139)?_0x4a2443?.[_0x28b682(0x190)]===_0x28b682(0xc7)?'Read\x20only\x20\xB7\x20/\x20search\x20\xB7\x20r\x20refresh':'m\x20actions\x20\xB7\x20l\x20logs\x20\xB7\x20g\x20diagnostics':_0x2027dc(_0x4a2443,_0x466153[_0x28b682(0xce)]),{'color':'cyan','wrap':_0x28b682(0x15c)})):null);}}}}}}const _0x181713=_0x4a2443?.[_0x28b682(0x190)]===_0x28b682(0xc7)?_0x28b682(0xe4):_0x28b682(0x110),_0x27216d=_0x466153[_0x28b682(0xbf)]||_0x466153['confirm']||_0x466153['menu']||_0x466153[_0x28b682(0x19c)]?_0x28b682(0x19b):_0x466153[_0x28b682(0xce)]===_0x28b682(0xe1)?'up/down\x20select\x20\xB7\x20m\x20wallet\x20actions\x20\xB7\x20g\x20management\x20\xB7\x20q\x20quit':_0x466153['view']===_0x28b682(0x139)?_0x181713:_0xa8a8ae<0x4b?_0x28b682(0x16e):_0x28b682(0x14b),_0x6cb4d0=_0xa8a8ae<0x4b?_0x450b12[_0x28b682(0x127)]((_0x5c6fea,_0x1759df)=>'['+(_0x1759df+0x1)+']'+[_0x28b682(0x13d),_0x28b682(0x172),_0x28b682(0x161),_0x28b682(0x111)][_0x1759df])[_0x28b682(0x145)]('\x20'):_0x450b12[_0x28b682(0x127)]((_0x500356,_0x85704)=>(_0x500356===_0x466153[_0x28b682(0xce)]?'>\x20':'\x20\x20')+'['+(_0x85704+0x1)+']\x20'+Z[_0x500356])[_0x28b682(0x145)]('\x20\x20');return _0x10ccd4(_0x1eaa3d,{'width':_0xa8a8ae,'height':_0x20b6ed,'flexDirection':_0x28b682(0x153)},_0x10ccd4(_0x1eaa3d,{'justifyContent':'space-between','height':_0x377456?0x1:0x2},n(_0x28b682(0x16a),{'color':_0x28b682(0x18f),'bold':!0x0}),_0xa8a8ae>=0x4b?n(_0x466153['address']?_0x373c00(_0x466153['address'],0x14):_0x28b682(0xe5),{'dimColor':!0x0}):null),_0x377456?null:n(_0x6cb4d0,{'color':_0x28b682(0x18f),'wrap':_0x28b682(0x15c)}),_0x377456?null:_0x466153['busy']||_0x466153[_0x28b682(0x1a2)]?_0x10ccd4(W,{'label':_0x466153['busy']??'Refreshing\x20tasks...'}):n(_0x466153[_0x28b682(0xdd)],{'dimColor':!0x0,'wrap':_0x28b682(0x15c)}),_0x1561b2,n(_0x373c00(_0x2eb7c5??_0x466153[_0x28b682(0x193)]??'',_0xa8a8ae),{'color':_0x2eb7c5?_0x28b682(0xd0):_0x28b682(0x129)}),n(_0x27216d,{'dimColor':!0x0,'wrap':_0x28b682(0x15c)}),_0x377456?null:n(_0x2eb7c5?_0x28b682(0xec):_0x28b682(0x102),{'dimColor':!0x0,'wrap':_0x28b682(0x15c)}));}export{fe as DashboardApp};
|
|
1
|
+
const _0x2472a2=_0x4842;import{createElement as _0x34d91a,useEffect as _0x286b76,useState as _0x3d8e10,useSyncExternalStore as _0x191c6b}from'react';import{Box as _0x4b98db,Text as _0x1c2714,useApp as _0x5385b0,useInput as _0x175122,useWindowSize as _0x1fbba3}from'ink';import _0x101f75 from'ink-text-input';function _0x4842(_0x3e077c,_0x41c36c){_0x3e077c=_0x3e077c-0x98;const _0x4842dc=_0x41c3();let _0x33f2c4=_0x4842dc[_0x3e077c];return _0x33f2c4;}import{visibleItems as _0x468bf4,VIEWS as _0x69ff83}from'./controller.mjs';import{clean as _0x4f5f70,detailText as _0x5343fe,lines as _0x52144f,short as _0x547287,statusLabel as _0x452613,taskActionHint as _0x4d924c}from'./presentation.mjs';import{modelProgressLines as _0x587044}from'../planner/progress.mjs';const X={'topLeft':'+','top':'-','topRight':'+','right':'|','bottomRight':'+','bottom':'-','bottomLeft':'+','left':'|'},Z={'tasks':'My\x20tasks','explore':'Explore','workers':_0x2472a2(0x10e),'wallet':'Wallets'},$=_0x5df298=>_0x5df298===_0x2472a2(0x12b)?_0x2472a2(0xa5):_0x5df298===_0x2472a2(0xd2)?_0x2472a2(0x12c):['challenged',_0x2472a2(0x140),_0x2472a2(0x168),_0x2472a2(0xc2),_0x2472a2(0xd5)][_0x2472a2(0x18b)](_0x5df298)?'yellow':'cyan',n=(_0x4c4086,_0x4fc460={})=>_0x34d91a(_0x1c2714,_0x4fc460,_0x4f5f70(_0x4c4086));function W({label:_0x624f07}){const _0x427543=_0x2472a2,[_0x3f54f0,_0x2576ce]=_0x3d8e10(0x0);return _0x286b76(()=>{const _0x418c4f=setInterval(()=>_0x2576ce(_0x46b98d=>(_0x46b98d+0x1)%0x4),0x96);return()=>clearInterval(_0x418c4f);},[]),n(['|','/','-','\x5c'][_0x3f54f0]+'\x20'+_0x624f07,{'color':_0x427543(0x135),'wrap':_0x427543(0x150)});}function b({title:_0x78eeab,width:_0x3bba7f,height:_0x11d876,ascii:_0x4e55b3,active:_0x52db9e,children:_0x1a4d73}){const _0x93de6e=_0x2472a2;return _0x34d91a(_0x4b98db,{'width':_0x3bba7f,'height':_0x11d876,'flexDirection':_0x93de6e(0x9a),'borderStyle':_0x4e55b3?X:_0x93de6e(0xb4),'borderColor':_0x52db9e?_0x93de6e(0x135):_0x93de6e(0xa5),'paddingX':0x1,'flexShrink':0x0,'overflow':_0x93de6e(0x16d)},n(_0x78eeab,{'color':_0x52db9e?_0x93de6e(0x135):void 0x0,'dimColor':!_0x52db9e}),_0x1a4d73);}function ee({event:_0x549b6f,width:_0x2ea463,height:_0x1997db,ascii:_0x5d8e75}){const _0x4444d2=_0x2472a2,_0x5d3649=_0x587044(_0x549b6f,{'width':_0x2ea463-0x4})[_0x4444d2(0x9c)](0x2);return _0x34d91a(b,{'title':_0x4444d2(0xc4),'width':_0x2ea463,'height':_0x1997db,'ascii':_0x5d8e75,'active':!0x0},_0x34d91a(_0x4b98db,{'flexDirection':_0x4444d2(0x9a),'marginTop':0x1},..._0x5d3649['map']((_0x50262a,_0x2b5738)=>_0x50262a[_0x4444d2(0x10f)](_0x4444d2(0x136))?_0x34d91a(W,{'key':_0x2b5738,'label':_0x50262a[_0x4444d2(0x9c)](0x4)}):n(_0x50262a||'\x20',{'key':_0x2b5738,'color':_0x50262a[_0x4444d2(0x10f)]('[+]')?_0x4444d2(0x12c):_0x4444d2(0x135)}))),_0x34d91a(_0x4b98db,{'flexGrow':0x1}),n(_0x4444d2(0x12f),{'dimColor':!0x0,'wrap':_0x4444d2(0x150)}));}function L({content:_0x2db953,width:_0x8762c7,height:_0x14c0fd,offset:_0x4da53}){const _0x2b1a29=_0x2472a2,_0x2fd20a=_0x52144f(_0x2db953,_0x8762c7),_0x41ee37=Math[_0x2b1a29(0x137)](_0x4da53,Math[_0x2b1a29(0xa2)](0x0,_0x2fd20a[_0x2b1a29(0xb0)]-_0x14c0fd));return _0x34d91a(_0x4b98db,{'flexDirection':_0x2b1a29(0x9a),'height':_0x14c0fd,'overflow':_0x2b1a29(0x16d)},..._0x2fd20a[_0x2b1a29(0x9c)](_0x41ee37,_0x41ee37+_0x14c0fd)[_0x2b1a29(0x17e)]((_0x50aa6d,_0x52cdeb)=>n(_0x50aa6d||'\x20',{'key':_0x52cdeb})));}function _0x41c3(){const _0x4f274c=['name','busy','column','downArrow','slice','m\x20wallet\x20actions','Keyboard\x20shortcuts','accepted','lines','changeTab','max','pageUp','Press\x20e\x20for\x20the\x20full\x20error\x20·\x20PgUp/PgDn\x20scroll\x20details','gray','black','installed','Private\x20key','workerMenu','1234','escape','No\x20wallets\x20yet.\x20Press\x20n\x20to\x20create\x20or\x20i\x20to\x20import.','confirm','en-US','files','length','rows','search','addTarget','single','setField','workerCommand','join','scroll','kind','Conversion\x20already\x20confirmed;\x20reviewed\x20limit:\x20','COLONY','Order:\x20','terminal','refreshing','Wallet:\x20','doctor','\x20tasks','payment_failed','coin','Preparing\x20local\x20LLM','repeat','floor','Pay\x20with:\x20','Quote\x20expires:\x20\x20\x20\x20\x20','[n]\x20New\x20wallet\x20\x20[i]\x20Import\x20wallet','download','next','s\x20save\x20QR\x20·\x20Esc\x20back','Item\x20','\x20IMD\x20&\x20publish','chainName','up/down\x20select','tab','completed','Tab\x20list/details\x20·\x20[\x20]\x20tabs\x20·\x20PgUp/PgDn\x20scroll','Not\x20deployed','expired','ETH','Admission\x20payment\x20only.\x20Completion\x20is\x20not\x20guaranteed.','address','yellow','title','converted','create','payTo','payWith','Support\x20recipient:\x20','Resize\x20to\x20at\x20least\x20','support','\x20entries\x20·\x20Mine\x20+\x20Network','respond','rightArrow','Files','Support\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','split','[p]\x20Network:\x20','Maximum\x20debit:\x20','toLocaleString','coins','minimumImd','up/down\x20select\x20·\x20/\x20search\x20·\x20r\x20refresh\x20·\x20q\x20quit','Tab\x20choose\x20·\x20Enter\x20confirm\x20·\x20Esc\x20cancel\x20·\x20PgDn\x20scroll','\x20·\x20i\x20details','network','white','\x20rows,\x20or\x20press\x20s\x20to\x20save\x20the\x20QR.','wallet','Convert\x20&\x20publish','down\x20loads\x20more','error','up/down\x20select\x20·\x20m\x20wallet\x20actions\x20·\x20g\x20management\x20·\x20q\x20quit','Max\x20debit:\x20','columns','chooseMenu','\x20·\x20','filter','form','menu','COLONY\x20\x20get\x20things\x20done.','taskMenu','Enter\x20','pageDown','values','No\x20tasks\x20yet.\x20Press\x20n\x20to\x20create\x20one.','field','\x20wallets','paymentCoins','update','\x20(includes\x20gas)','Receive\x20on\x20','focus','subscribe','red','Workers','startsWith','networkFeeCap','Loading...','Choose\x20','showError','label','Review\x20the\x20official\x20fee\x20before\x20paying.','saveReceiveQr','acceptLabel','maximumDebit','tasks','cancelRequest','cancelLabel','walletSetup','then','Review\x20saved\x20payment','cursor','walletImport','ctrl','dismissMenu','Confirm','Refreshing\x20tasks...','Pay\x20to:\x20','\x20IMD','detail','Support\x20is\x20sent\x20first;\x20no\x20refund\x20if\x20admission\x20fails.\x20Task\x20completion\x20is\x20not\x20guaranteed.','total','stringify','cancelled','green','explore','objective','Saved\x20on\x20this\x20computer\x20for\x20future\x20tasks.','close','Loading\x20history...','Pay\x20','Activity','amount','cyan','[>]','min','view','items','dismissForm','more','WALLETS','\x20items\x20·\x20','fields','Read\x20only\x20·\x20/\x20search\x20·\x20r\x20refresh','blocked','upArrow','funding','Ctrl+C\x20exit','network-worker','\x20·\x20Tab\x20switch\x20field\x20·\x20Esc\x20cancel','Network:\x20','Up/down\x20select\x20·\x20Enter\x20open\x20·\x20Esc\x20back','\x20in\x20the\x20sending\x20wallet.','Coins:\x20','\x20·\x20up/down\x20change','row','Mine','IMD','WORKSPACES\x0a1\x20My\x20tasks\x20·\x202\x20Explore\x20·\x203\x20Workers\x20·\x204\x20Wallet\x0a\x0aTASKS\x0an\x20New\x20task\x20·\x20/\x20Search\x20·\x20f\x20Filter\x20·\x20r\x20Refresh\x0aup/down\x20Select\x20·\x20Enter\x20Details\x20·\x20Esc\x20Back\x0aTab\x20List/details\x20·\x20[\x20/\x20]\x20Detail\x20tab\x0aPgUp/PgDn\x20Scroll\x20details\x20·\x20l\x20More\x20public\x20tasks\x0ad\x20Result\x20files\x20·\x20s\x20Save\x20files\x20·\x20c\x20Request\x20changes\x0ao\x20Review/pay\x20or\x20resume\x20a\x20saved\x20order\x0ax\x20Cancel\x20an\x20unsigned\x20request\x20·\x20m\x20Task\x20actions\x0aCancelled\x20requests:\x20m\x20>\x20Delete\x20local\x20record\x0aSigned\x20payments\x20and\x20published\x20tasks\x20cannot\x20be\x20cancelled\x20through\x20the\x20public\x20API.\x0a\x0aWORKERS\x0aa\x20Add\x20target\x20·\x20m\x20Actions\x20·\x20l\x20Logs\x20·\x20g\x20Diagnostics\x0a\x0aWALLET\x0an\x20Create\x20wallet\x20·\x20i\x20Import\x20wallet\x0ad\x20Receive\x20/\x20QR\x20·\x20b\x20Encrypted\x20backup\x0am\x20Selected\x20wallet\x20actions\x20·\x20g\x20Management\x20·\x20p\x20Network\x0ar\x20Refresh\x20balances\x0a\x0aq\x20Quit\x20·\x20Ctrl+C\x20Cancel\x20and\x20exit\x0aTerminal\x20is\x20restored\x20when\x20you\x20exit.','SERVER\x20PREPARED\x20INPUT','truncate-end','Anyone\x20with\x20this\x20key\x20can\x20spend\x20this\x20wallet’s\x20funds.','useSelectedWallet','prepared','Browse','list','estimatedAmount','workers','n\x20new\x20·\x20/\x20search\x20·\x20r\x20refresh\x20·\x20?\x20help\x20·\x20q\x20quit','WALLET\x20MANAGEMENT','notice','resumeOrder','Deployed\x20·\x20status\x20on\x20selection','End\x20of\x20history','asset','subtitle','Conversion\x20and\x20task\x20payment\x20are\x20separate\x20transactions.','cycleFilter','Asset:\x20','managed-worker','\x20ETH','Could\x20not\x20load\x20items.\x20Press\x20r\x20to\x20retry.','privateKeyView','Wallets','refused','Optional\x20support:\x20','getSnapshot','secret','modelProgress','hidden','walletBackup','Included\x20gas\x20cap:\x20','return','\x20columns\x20and\x20','WORKERS','Overview','m\x20actions\x20·\x20l\x20logs\x20·\x20g\x20diagnostics','help','recipient','********','Esc\x20hide\x20and\x20return','refresh','Continue\x20&\x20publish','placeholder','refreshError','walletReceive','map','walletNetworkMenu','a\x20add\x20·\x20m\x20actions\x20·\x20l\x20logs\x20·\x20/\x20search\x20·\x20r\x20refresh\x20·\x20q\x20quit','Convert\x20at\x20most:\x20','receive','privateKey','\x20IMD\x20(fee\x20','autoRefresh','\x20task','\x20/\x20','expanded','query','Work','includes','REQUEST','PAYMENT\x20DETAILS','selected'];_0x41c3=function(){return _0x4f274c;};return _0x41c3();}function N({state:_0x2d46d7,height:_0x19af64,width:_0x2bca99,ascii:_0x2b35fc}){const _0x38158d=_0x2472a2,_0x22e9b1=_0x468bf4(_0x2d46d7),_0x2e5a42=_0x2d46d7['view']===_0x38158d(0x12d),_0x28fcd2=_0x2d46d7['view']===_0x38158d(0x119)||_0x2e5a42,_0x1ccd92=_0x2e5a42?_0x2d46d7[_0x38158d(0x129)]:_0x22e9b1[_0x38158d(0xb0)],_0x3d5856=_0x2e5a42?_0x1ccd92===null?_0x22e9b1[_0x38158d(0xb0)]+'\x20results\x20loaded':_0x1ccd92['toLocaleString'](_0x38158d(0xae))+(_0x1ccd92===0x1?_0x38158d(0x186):_0x38158d(0xc1)):_0x22e9b1[_0x38158d(0xb0)]+(_0x2d46d7['view']===_0x38158d(0xf3)?_0x38158d(0x106):_0x2d46d7['view']===_0x38158d(0x157)?_0x38158d(0xe2):_0x38158d(0x13d)+_0x2d46d7['filter']),_0x1fcb0b=_0x1ccd92===null?_0x38158d(0xcd)+(_0x2d46d7[_0x38158d(0x18e)]+0x1):_0x2d46d7[_0x38158d(0x18e)]+0x1+'/'+_0x1ccd92[_0x38158d(0xea)](_0x38158d(0xae)),_0x1526cd=_0x2e5a42&&_0x2d46d7['selected']===_0x22e9b1['length']-0x1;let _0x92abee=_0x38158d(0xd0);_0x1526cd&&(_0x2d46d7[_0x38158d(0x99)]?_0x92abee=_0x38158d(0x131):_0x2d46d7[_0x38158d(0xf6)]&&_0x2d46d7[_0x38158d(0x11f)]?_0x92abee='l\x20retry\x20history':_0x92abee=_0x2d46d7[_0x38158d(0x11f)]?_0x38158d(0xf5):_0x38158d(0x15d));const _0x555dbe=Math['max'](0x1,Math[_0x38158d(0xc6)]((_0x19af64-(_0x28fcd2?0x7:0x5))/0x3)),_0x14a6d3=Math[_0x38158d(0xa2)](0x0,Math[_0x38158d(0x137)](_0x2d46d7[_0x38158d(0x18e)]-Math['floor'](_0x555dbe/0x2),_0x22e9b1['length']-_0x555dbe));return _0x34d91a(_0x4b98db,{'flexDirection':_0x38158d(0x9a),'flexGrow':0x1},n(_0x3d5856,{'dimColor':!0x0}),..._0x22e9b1['slice'](_0x14a6d3,_0x14a6d3+_0x555dbe)[_0x38158d(0x17e)]((_0x4d2ebc,_0x52c3f1)=>_0x34d91a(_0x4b98db,{'key':_0x4d2ebc['id'],'flexDirection':_0x38158d(0x9a)},n((_0x2d46d7[_0x38158d(0x18e)]===_0x14a6d3+_0x52c3f1?'>\x20':'\x20\x20')+_0x547287((_0x4d2ebc['kind']===_0x38158d(0x163)?'Mine\x20\xB7\x20':'')+_0x4d2ebc[_0x38158d(0xda)],_0x2bca99-0x2),{'inverse':_0x2d46d7[_0x38158d(0x18e)]===_0x14a6d3+_0x52c3f1,'bold':_0x2d46d7['selected']===_0x14a6d3+_0x52c3f1}),n('\x20\x20'+_0x547287(_0x4d2ebc[_0x38158d(0x15f)]??_0x452613(_0x4d2ebc['state'])??(_0x4d2ebc[_0x38158d(0xa7)]?_0x38158d(0x15c):_0x38158d(0xd4)),_0x2bca99-0x2),{'color':$(_0x4d2ebc['state'])}),n((_0x2b35fc?'-':'\u2500')[_0x38158d(0xc5)](_0x2bca99),{'dimColor':!0x0}))),_0x22e9b1['length']===0x0?n(_0x2d46d7[_0x38158d(0x99)]?_0x38158d(0x111):_0x2d46d7[_0x38158d(0xf6)]?_0x38158d(0x165):_0x2d46d7[_0x38158d(0x138)]===_0x38158d(0xf3)?_0x38158d(0xac):_0x2d46d7['view']==='tasks'?_0x38158d(0x104):'No\x20matching\x20items.',{'dimColor':!0x0}):null,_0x34d91a(_0x4b98db,{'flexGrow':0x1}),n(_0x22e9b1[_0x38158d(0xb0)]?_0x547287(_0x1fcb0b+_0x38158d(0xfb)+_0x92abee,_0x2bca99):'',{'dimColor':!0x0}),_0x28fcd2?n((_0x2b35fc?'-':'\u2500')[_0x38158d(0xc5)](_0x2bca99),{'dimColor':!0x0}):null,_0x28fcd2?n('[n]\x20New\x20task',{'color':_0x38158d(0x135),'bold':!0x0}):null);}function te({state:_0x29c1dd,width:_0x37e1b7,height:_0x4e66f8,ascii:_0x10abeb,narrow:_0xc14dc3}){const _0x188daf=_0x2472a2,_0x1c954f=_0xc14dc3?_0x37e1b7:Math[_0x188daf(0xc6)](_0x37e1b7*0.43),_0x1fddc7=_0xc14dc3?_0x37e1b7:_0x37e1b7-_0x1c954f-0x1,_0x10bd48=0x6,_0x3c1be4=_0x4e66f8-_0x10bd48,_0x72688a=_0x34d91a(b,{'title':_0x188daf(0x13c),'width':_0x1c954f,'height':_0xc14dc3?_0x3c1be4:_0x4e66f8,'ascii':_0x10abeb,'active':_0x29c1dd[_0x188daf(0x10b)]==='list'},_0x34d91a(N,{'state':_0x29c1dd,'height':_0xc14dc3?_0x3c1be4:_0x4e66f8,'width':_0x1c954f-0x4,'ascii':_0x10abeb})),_0x4c5282=_0x34d91a(b,{'title':'WALLET\x20DETAILS\x20\xB7\x20selected\x20wallet','width':_0x1fddc7,'height':_0x3c1be4,'ascii':_0x10abeb,'active':_0x29c1dd[_0x188daf(0x10b)]===_0x188daf(0x127)},_0x34d91a(L,{'content':_0x5343fe(_0x29c1dd),'width':_0x1fddc7-0x4,'height':_0x3c1be4-0x4,'offset':_0x29c1dd[_0x188daf(0xb8)]}),_0x34d91a(_0x4b98db,{'flexGrow':0x1}),n(_0x188daf(0x9d),{'color':_0x188daf(0x135),'wrap':_0x188daf(0x150)})),_0x59d846=_0x34d91a(b,{'title':_0x188daf(0x159),'width':_0x1fddc7,'height':_0x10bd48,'ascii':_0x10abeb,'active':!0x1},n(_0x188daf(0xc9)),n('[g]\x20Manage\x20wallets'),n(_0x188daf(0xe8)+(_0x29c1dd['detail']?.[_0x188daf(0xcf)]??_0x188daf(0x111)),{'color':_0x188daf(0x135)}));return _0xc14dc3?_0x34d91a(_0x4b98db,{'flexDirection':'column','width':_0x37e1b7,'height':_0x4e66f8},_0x29c1dd[_0x188daf(0x10b)]==='list'?_0x72688a:_0x4c5282,_0x59d846):_0x34d91a(_0x4b98db,{'width':_0x37e1b7,'height':_0x4e66f8,'gap':0x1},_0x72688a,_0x34d91a(_0x4b98db,{'width':_0x1fddc7,'flexDirection':_0x188daf(0x9a)},_0x4c5282,_0x59d846));}function ne({controller:_0x24f3f7,state:_0x2062fa,width:_0x3b10dd,height:_0x47a507,ascii:_0x4dc986}){const _0x2b1f0b=_0x2472a2,_0xce6245=_0x2062fa[_0x2b1f0b(0xfd)],_0x120e28=_0xce6245[_0x2b1f0b(0x13e)][_0xce6245['field']],_0x30cad5=_0xce6245[_0x2b1f0b(0x13e)][_0x2b1f0b(0x9c)](0x0,_0xce6245[_0x2b1f0b(0x105)])[_0x2b1f0b(0x17e)](_0x3c7348=>_0x3c7348[_0x2b1f0b(0x114)]+':\x20'+(_0x3c7348['secret']?_0x2b1f0b(0x177):_0xce6245[_0x2b1f0b(0x103)][_0x3c7348['name']]));return _0x34d91a(b,{'title':_0xce6245['title'],'width':_0x3b10dd,'height':_0x47a507,'ascii':_0x4dc986,'active':!0x0},_0x34d91a(_0x4b98db,{'marginTop':0x1,'flexDirection':'column'},_0xce6245[_0x2b1f0b(0x107)]?n(_0x2b1f0b(0xc7)+_0xce6245[_0x2b1f0b(0x107)][_0x2b1f0b(0x17e)](_0x599564=>_0x599564===_0xce6245[_0x2b1f0b(0xde)]?'['+_0x599564+']':_0x599564)[_0x2b1f0b(0xb7)]('\x20')+_0x2b1f0b(0x14a),{'color':_0x2b1f0b(0x135)}):null,..._0x30cad5[_0x2b1f0b(0x17e)]((_0x1b9d82,_0x8e42fb)=>n(_0x547287(_0x1b9d82,_0x3b10dd-0x6),{'key':_0x8e42fb,'dimColor':!0x0})),n(_0x120e28['label'],{'bold':!0x0}),_0x34d91a(_0x4b98db,{'marginTop':0x1,'minHeight':0x2,'maxHeight':Math['max'](0x2,_0x47a507-0x9),'overflow':_0x2b1f0b(0x16d)},n('>\x20',{'color':_0x2b1f0b(0x135)}),_0x34d91a(_0x101f75,{'key':_0x120e28[_0x2b1f0b(0x98)],'value':_0xce6245[_0x2b1f0b(0x103)][_0x120e28[_0x2b1f0b(0x98)]],'placeholder':_0x120e28[_0x2b1f0b(0x17b)]??'','mask':_0x120e28[_0x2b1f0b(0x16b)]?'*':void 0x0,'onChange':_0x4d9505=>_0x24f3f7[_0x2b1f0b(0xb5)](_0x4d9505),'onSubmit':()=>_0xce6245['field']===_0xce6245['fields'][_0x2b1f0b(0xb0)]-0x1?void _0x24f3f7['submitForm']():_0x24f3f7['nextField']()})),n(_0xce6245[_0x2b1f0b(0xf6)]??'',{'color':_0x2b1f0b(0x10d)}),_0xce6245['paymentCoins']?n(_0x2b1f0b(0x115),{'dimColor':!0x0}):null),_0x34d91a(_0x4b98db,{'flexGrow':0x1}),n(_0x2b1f0b(0x101)+(_0xce6245['field']===_0xce6245[_0x2b1f0b(0x13e)][_0x2b1f0b(0xb0)]-0x1?_0xce6245['submit']:_0x2b1f0b(0xcb))+_0x2b1f0b(0x145),{'color':'cyan','wrap':_0x2b1f0b(0x150)}));}function oe({state:_0x21fa6d,width:_0x28a7f0,height:_0x7a3d4,ascii:_0x3b3e50}){const _0x2f23ca=_0x2472a2,_0x28e641=_0x21fa6d[_0x2f23ca(0xad)],_0x45ef64=_0x28e641['payment'],_0x28c8cc=_0x45ef64?_0x45ef64[_0x2f23ca(0xe1)]?'Total\x20'+_0x45ef64[_0x2f23ca(0xe1)][_0x2f23ca(0x129)]+_0x2f23ca(0x184)+_0x45ef64[_0x2f23ca(0x134)]+'\x20+\x20support\x20'+_0x45ef64[_0x2f23ca(0xe1)][_0x2f23ca(0x134)]+')':'Fee\x20'+_0x45ef64[_0x2f23ca(0x134)]+_0x2f23ca(0x126):null,_0x16a5ee=_0x45ef64?.['funding']?_0x2f23ca(0xf8)+_0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0x118)]:null,_0x33b7cd=_0x45ef64?_0x2f23ca(0x146)+_0x45ef64['chainName']:null,_0x4df832=_0x45ef64?.[_0x2f23ca(0x110)]?(_0x45ef64[_0x2f23ca(0x142)]?.['coin']==='ETH'?_0x2f23ca(0x16f):'Extra\x20gas\x20cap:\x20')+_0x45ef64['networkFeeCap']+_0x2f23ca(0x164):null,_0x3be0a8=_0x45ef64?_0x45ef64['support']?_0x2f23ca(0x128):_0x2f23ca(0xd7):null;let _0x64e69b=_0x45ef64?_0x2f23ca(0x132)+(_0x45ef64[_0x2f23ca(0xe1)]?.[_0x2f23ca(0x129)]??_0x45ef64[_0x2f23ca(0x134)])+_0x2f23ca(0xce):'';_0x45ef64?.[_0x2f23ca(0x142)]&&_0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0xc3)]!==_0x2f23ca(0x14d)&&(_0x64e69b=_0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0xdb)]?_0x2f23ca(0x17a):_0x2f23ca(0xf4));const _0x3e00a6=0x2+_0x52144f(_0x28e641[_0x2f23ca(0xda)]??_0x2f23ca(0x11e),_0x28a7f0-0x4)[_0x2f23ca(0xb0)]+[_0x28c8cc,_0x16a5ee,_0x33b7cd,_0x4df832,_0x3be0a8][_0x2f23ca(0xfc)](Boolean)['reduce']((_0x1a457a,_0x3cc32d)=>_0x1a457a+_0x52144f(_0x3cc32d,_0x28a7f0-0x4)['length'],0x0)+(_0x28a7f0<0x46?0x2:0x1)+0x1,_0x2efcf9=_0x45ef64?[_0x2f23ca(0x18c),_0x45ef64[_0x2f23ca(0x12e)],'',..._0x45ef64['deliverables'][_0x2f23ca(0x17e)](_0x4dc302=>'-\x20'+_0x4dc302),'',..._0x45ef64['support']?['Help\x20us\x20make\x20Colony\x20better.',_0x2f23ca(0x169)+_0x45ef64['support'][_0x2f23ca(0x134)]+_0x2f23ca(0x126),_0x2f23ca(0xdf)+_0x45ef64[_0x2f23ca(0xe1)][_0x2f23ca(0x176)],_0x2f23ca(0xe6),'']:[],..._0x45ef64[_0x2f23ca(0x142)]&&_0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0xc3)]!==_0x2f23ca(0x14d)?[(_0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0xdb)]?_0x2f23ca(0xba):_0x2f23ca(0x181))+_0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0x134)],..._0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0x156)]&&!_0x45ef64['funding'][_0x2f23ca(0xdb)]?['Estimated\x20payment:\x20'+_0x45ef64[_0x2f23ca(0x142)]['estimatedAmount']]:[],_0x2f23ca(0xe9)+_0x45ef64[_0x2f23ca(0x142)]['maximumDebit']+(_0x45ef64['funding'][_0x2f23ca(0xc3)]===_0x2f23ca(0xd6)?_0x2f23ca(0x109):'\x20+\x20ETH\x20gas'),'IMD\x20for\x20this\x20task:\x20'+_0x45ef64[_0x2f23ca(0x142)][_0x2f23ca(0xec)],_0x2f23ca(0x160),'']:[],_0x2f23ca(0xc8)+_0x45ef64['expiresAt'],..._0x28e641[_0x2f23ca(0x188)]?['',_0x2f23ca(0x18d),_0x2f23ca(0x146)+_0x45ef64[_0x2f23ca(0xf0)],_0x2f23ca(0x162)+_0x45ef64[_0x2f23ca(0x15e)],_0x2f23ca(0x125)+_0x45ef64[_0x2f23ca(0xdd)],_0x2f23ca(0xbc)+_0x45ef64['orderId'],'',_0x2f23ca(0x14f),JSON[_0x2f23ca(0x12a)](_0x45ef64[_0x2f23ca(0x153)],null,0x2)]:[]][_0x2f23ca(0xb7)]('\x0a'):_0x28e641[_0x2f23ca(0xa0)][_0x2f23ca(0xb7)]('\x0a');return _0x34d91a(b,{'title':_0x28e641[_0x2f23ca(0xda)]??_0x2f23ca(0x11e),'width':_0x28a7f0,'height':_0x7a3d4,'ascii':_0x3b3e50,'active':!0x0},_0x28c8cc?n(_0x28c8cc,{'color':_0x2f23ca(0x135),'bold':!0x0}):null,_0x16a5ee?n(_0x16a5ee,{'color':_0x2f23ca(0x135),'bold':!0x0}):null,_0x33b7cd?n(_0x33b7cd,{'color':_0x2f23ca(0x135)}):null,_0x4df832?n(_0x4df832,{'color':_0x2f23ca(0xd9)}):null,_0x34d91a(L,{'content':_0x2efcf9,'width':_0x28a7f0-0x4,'height':Math['max'](0x0,_0x7a3d4-_0x3e00a6),'offset':_0x21fa6d[_0x2f23ca(0xb8)]}),_0x34d91a(_0x4b98db,{'flexGrow':0x1}),_0x3be0a8?n(_0x3be0a8,{'color':_0x2f23ca(0xd9)}):null,_0x34d91a(_0x4b98db,{'flexDirection':_0x28a7f0<0x46?_0x2f23ca(0x9a):_0x2f23ca(0x14b),'gap':_0x28a7f0<0x46?0x0:0x3},n('[\x20'+(_0x28e641[_0x2f23ca(0x11b)]??(_0x45ef64?'Cancel\x20/\x20edit':'Cancel'))+'\x20]',{'inverse':!_0x28e641[_0x2f23ca(0x9f)]}),n('[\x20'+(_0x45ef64?_0x64e69b:_0x28e641[_0x2f23ca(0x117)]??_0x2f23ca(0x123))+'\x20]',{'inverse':_0x28e641[_0x2f23ca(0x9f)],'color':'cyan'})),n(_0x2f23ca(0xee)+(_0x45ef64?_0x2f23ca(0xef):''),{'dimColor':!0x0,'wrap':'truncate-end'}));}function re({state:_0x50f9cb,width:_0xe036e9,height:_0x1d8653,ascii:_0x35a639}){const _0x5876ed=_0x2472a2,_0x351b8c=_0x50f9cb[_0x5876ed(0xfe)],_0x3ea23a=Math[_0x5876ed(0xa2)](0x1,_0x1d8653-0x5),_0x2924ea=Math['max'](0x0,Math['min'](_0x351b8c[_0x5876ed(0x18e)]-Math[_0x5876ed(0xc6)](_0x3ea23a/0x2),_0x351b8c[_0x5876ed(0x139)][_0x5876ed(0xb0)]-_0x3ea23a));return _0x34d91a(b,{'title':_0x351b8c[_0x5876ed(0xda)],'width':_0xe036e9,'height':_0x1d8653,'ascii':_0x35a639,'active':!0x0},..._0x351b8c[_0x5876ed(0x139)][_0x5876ed(0x9c)](_0x2924ea,_0x2924ea+_0x3ea23a)[_0x5876ed(0x17e)]((_0x2ad33c,_0x56f90c)=>n((_0x2924ea+_0x56f90c===_0x351b8c[_0x5876ed(0x18e)]?'>\x20':'\x20\x20')+_0x2ad33c['label'],{'key':_0x56f90c,'inverse':_0x2924ea+_0x56f90c===_0x351b8c['selected']})),_0x34d91a(_0x4b98db,{'flexGrow':0x1}),n(_0x5876ed(0x147),{'dimColor':!0x0}));}const ie=_0x2472a2(0x14e);function fe({controller:_0x33d20f,ascii:_0x1f4240=!0x1,dimensions:_0x3b032a,terminal:_0x353948,feedback:_0x1fd731}){const _0x4e7a35=_0x2472a2,_0x4bb5e2=_0x191c6b(_0x33d20f[_0x4e7a35(0x10c)],_0x33d20f[_0x4e7a35(0x16a)]),_0x5a3a5d=_0x4bb5e2[_0x4e7a35(0xf6)]??_0x4bb5e2[_0x4e7a35(0x17c)],_0x1eaee6=_0x1fbba3(),_0xd887f9=_0x3b032a??_0x1eaee6,_0x3c6efc=_0xd887f9[_0x4e7a35(0xf9)],_0x1dbd3d=Math['max'](0x8,_0xd887f9[_0x4e7a35(0xb1)]-0x1),_0x314bf7=_0x3c6efc<0x64,{exit:_0x1d4a5b}=_0x5385b0();if(_0x286b76(()=>(_0x33d20f[_0x4e7a35(0xbd)]=_0x353948,_0x33d20f['refresh']()[_0x4e7a35(0x11d)](()=>{const _0x3dc8fc=_0x4e7a35;_0x1fd731&&_0x33d20f[_0x3dc8fc(0x108)](_0x1fd731);}),()=>_0x33d20f[_0x4e7a35(0x130)]()),[_0x33d20f,_0x353948,_0x1fd731]),_0x286b76(()=>{const _0x2241e6=setInterval(()=>{const _0x2b032e=_0x4842;_0x33d20f[_0x2b032e(0x185)]();},0x1388);return()=>clearInterval(_0x2241e6);},[_0x33d20f]),_0x175122((_0x13a00a,_0x16b116)=>{const _0x973520=_0x4e7a35;if(_0x16b116[_0x973520(0x121)]&&_0x13a00a==='c'){_0x33d20f[_0x973520(0x130)](),_0x1d4a5b();return;}if(_0x4bb5e2[_0x973520(0x166)]){_0x16b116[_0x973520(0xab)]&&_0x33d20f[_0x973520(0x108)]({'privateKeyView':null});return;}if(_0x3c6efc<0x28||_0xd887f9[_0x973520(0xb1)]<0x14){_0x4bb5e2['receive']?_0x16b116[_0x973520(0xab)]&&_0x33d20f['update']({'receive':null}):_0x13a00a==='q'&&(_0x33d20f[_0x973520(0x130)](),_0x1d4a5b());return;}if(_0x4bb5e2[_0x973520(0xad)]){_0x16b116[_0x973520(0xab)]?_0x33d20f[_0x973520(0xe3)](!0x1):_0x16b116[_0x973520(0xd1)]||_0x16b116['leftArrow']||_0x16b116[_0x973520(0xe4)]?_0x33d20f[_0x973520(0x108)]({'confirm':{..._0x4bb5e2[_0x973520(0xad)],'accepted':!_0x4bb5e2[_0x973520(0xad)][_0x973520(0x9f)]}}):_0x16b116['return']?_0x33d20f[_0x973520(0xe3)](_0x4bb5e2[_0x973520(0xad)][_0x973520(0x9f)]):_0x13a00a==='i'?_0x33d20f[_0x973520(0x108)]({'confirm':{..._0x4bb5e2[_0x973520(0xad)],'expanded':!_0x4bb5e2[_0x973520(0xad)][_0x973520(0x188)]},'scroll':0x0}):(_0x16b116[_0x973520(0x102)]||_0x16b116[_0x973520(0xa3)])&&_0x33d20f['update']({'scroll':Math['max'](0x0,_0x4bb5e2[_0x973520(0xb8)]+(_0x16b116[_0x973520(0x102)]?0x5:-0x5))});return;}if(_0x4bb5e2[_0x973520(0xfd)]){_0x16b116[_0x973520(0xab)]?_0x33d20f[_0x973520(0x13a)]():(_0x16b116[_0x973520(0x141)]||_0x16b116['downArrow'])&&_0x4bb5e2[_0x973520(0xfd)][_0x973520(0x107)]?_0x33d20f['cyclePaymentCoin'](_0x16b116[_0x973520(0x141)]):_0x16b116[_0x973520(0xd1)]&&_0x33d20f['nextField'](_0x16b116['shift']);return;}if(_0x4bb5e2['receive']){_0x16b116['escape']&&_0x33d20f[_0x973520(0x108)]({'receive':null}),_0x13a00a==='s'&&_0x33d20f[_0x973520(0x116)]();return;}if(_0x4bb5e2['menu']){_0x16b116[_0x973520(0xab)]?_0x33d20f[_0x973520(0x122)]():_0x16b116['downArrow']||_0x16b116[_0x973520(0x141)]?_0x33d20f[_0x973520(0x108)]({'menu':{..._0x4bb5e2[_0x973520(0xfe)],'selected':Math[_0x973520(0xa2)](0x0,Math['min'](_0x4bb5e2[_0x973520(0xfe)][_0x973520(0x139)][_0x973520(0xb0)]-0x1,_0x4bb5e2[_0x973520(0xfe)][_0x973520(0x18e)]+(_0x16b116['downArrow']?0x1:-0x1)))}}):_0x16b116[_0x973520(0x170)]&&_0x33d20f[_0x973520(0xfa)]();return;}if(_0x13a00a==='q'&&!_0x4bb5e2[_0x973520(0x99)]){_0x33d20f[_0x973520(0x130)](),_0x1d4a5b();return;}if(!_0x4bb5e2['busy']){if(_0x13a00a==='e'&&_0x5a3a5d){_0x33d20f[_0x973520(0x113)]();return;}if(_0x973520(0xaa)['includes'](_0x13a00a)&&_0x13a00a[_0x973520(0xb0)]===0x1){_0x33d20f['navigate'](_0x69ff83[Number(_0x13a00a)-0x1]);return;}if(_0x13a00a==='?'){_0x33d20f[_0x973520(0x108)]({'help':!_0x4bb5e2[_0x973520(0x175)],'scroll':0x0});return;}if(_0x16b116[_0x973520(0xab)]){_0x33d20f[_0x973520(0x108)]({'focus':_0x973520(0x155),'help':!0x1,'scroll':0x0,'error':null,'refreshError':null,'notice':null});return;}if(_0x13a00a==='n'){_0x4bb5e2[_0x973520(0x138)]===_0x973520(0xf3)?_0x33d20f[_0x973520(0x11c)](!0x1):_0x33d20f[_0x973520(0xdc)]();return;}if(_0x13a00a==='r'){_0x33d20f[_0x973520(0x179)]();return;}if(_0x16b116['pageDown']||_0x16b116[_0x973520(0xa3)]||_0x4bb5e2[_0x973520(0x10b)]===_0x973520(0x127)&&(_0x16b116[_0x973520(0x9b)]||_0x16b116[_0x973520(0x141)])){_0x33d20f[_0x973520(0x108)]({'scroll':Math[_0x973520(0xa2)](0x0,_0x4bb5e2[_0x973520(0xb8)]+(_0x16b116[_0x973520(0x102)]?0x5:_0x16b116[_0x973520(0xa3)]?-0x5:_0x16b116[_0x973520(0x9b)]?0x1:-0x1))});return;}if(_0x4bb5e2['view']===_0x973520(0xf3)){(_0x16b116[_0x973520(0x9b)]||_0x16b116[_0x973520(0x141)])&&_0x33d20f['move'](_0x16b116[_0x973520(0x9b)]?0x1:-0x1),(_0x16b116[_0x973520(0x170)]||_0x16b116[_0x973520(0xd1)])&&_0x33d20f['update']({'focus':_0x4bb5e2[_0x973520(0x10b)]===_0x973520(0x155)?_0x973520(0x127):'list','scroll':0x0}),_0x13a00a==='u'&&_0x33d20f[_0x973520(0x152)](),_0x13a00a==='m'&&_0x33d20f['walletMenu'](),_0x13a00a==='g'&&_0x33d20f['walletManagement'](),_0x13a00a==='i'&&_0x33d20f[_0x973520(0x120)](),_0x13a00a==='d'&&_0x33d20f[_0x973520(0x17d)](),_0x13a00a==='b'&&_0x33d20f[_0x973520(0x16e)](),_0x13a00a==='p'&&_0x33d20f[_0x973520(0x17f)]();return;}if(_0x16b116['downArrow']||_0x16b116['upArrow']){_0x33d20f['move'](_0x16b116[_0x973520(0x9b)]?0x1:-0x1);return;}if(_0x16b116['return']||_0x16b116[_0x973520(0xd1)]){_0x33d20f[_0x973520(0x108)]({'focus':_0x4bb5e2['focus']===_0x973520(0x155)?'detail':_0x973520(0x155),'scroll':0x0});return;}if(_0x4bb5e2['view']==='workers'){_0x13a00a==='/'&&_0x33d20f[_0x973520(0xb2)](),_0x13a00a==='a'&&_0x33d20f[_0x973520(0xb3)](),_0x13a00a==='m'&&_0x33d20f[_0x973520(0xa9)](),_0x13a00a==='l'&&_0x33d20f[_0x973520(0xb6)](['logs']),_0x13a00a==='g'&&_0x33d20f[_0x973520(0xb6)]([_0x973520(0xc0)]);return;}_0x13a00a==='/'&&_0x33d20f[_0x973520(0xb2)](),_0x13a00a==='f'&&_0x4bb5e2[_0x973520(0x138)]===_0x973520(0x119)&&_0x33d20f[_0x973520(0x161)](),(_0x13a00a==='['||_0x13a00a===']')&&_0x33d20f[_0x973520(0xa1)](_0x13a00a==='['?-0x1:0x1),_0x13a00a==='d'&&_0x33d20f[_0x973520(0xaf)](),_0x13a00a==='s'&&_0x33d20f[_0x973520(0xca)](),_0x13a00a==='c'&&_0x33d20f['continueTask'](),_0x13a00a==='o'&&_0x33d20f[_0x973520(0x15b)](),_0x13a00a==='x'&&_0x33d20f[_0x973520(0x11a)](),_0x13a00a==='m'&&_0x33d20f[_0x973520(0x100)](),_0x13a00a==='l'&&_0x33d20f[_0x973520(0x13b)]();}}),_0x3c6efc<0x28||_0xd887f9['rows']<0x14)return _0x34d91a(_0x4b98db,{'width':_0x3c6efc,'flexDirection':_0x4e7a35(0x9a)},n(_0x4e7a35(0xbb),{'color':'cyan'}),n('Resize\x20to\x20at\x20least\x2040\x20columns\x20and\x2020\x20rows.'),n(_0x4bb5e2[_0x4e7a35(0x182)]||_0x4bb5e2[_0x4e7a35(0x166)]?'Esc\x20back':'q\x20quit\x20\xB7\x20commands\x20remain\x20available\x20with\x20--help'));if(_0x4bb5e2[_0x4e7a35(0x166)])return _0x34d91a(b,{'title':_0x4e7a35(0xa8),'width':_0x3c6efc,'height':_0x1dbd3d,'ascii':_0x1f4240,'active':!0x0},n(_0x4e7a35(0xbf)+_0x4bb5e2[_0x4e7a35(0x166)]['address']),n(_0x4e7a35(0x151),{'color':_0x4e7a35(0xd9)}),_0x34d91a(_0x4b98db,{'marginTop':0x1},n(_0x4bb5e2[_0x4e7a35(0x166)][_0x4e7a35(0x183)])),_0x34d91a(_0x4b98db,{'flexGrow':0x1}),n(_0x4e7a35(0x178),{'color':_0x4e7a35(0x135)}));if(_0x4bb5e2['receive']&&!_0x4bb5e2[_0x4e7a35(0xfd)]){const _0x154ab3=_0x4bb5e2['receive'],_0x22bdf8=_0x154ab3['qr'][_0x4e7a35(0xe7)]('\x0a'),_0x2b00fb=_0x22bdf8[_0x4e7a35(0xb0)]+_0x52144f(_0x154ab3[_0x4e7a35(0xd8)],_0x3c6efc)[_0x4e7a35(0xb0)]+_0x52144f('Choose\x20'+_0x154ab3[_0x4e7a35(0xcf)]+_0x4e7a35(0x148),_0x3c6efc)[_0x4e7a35(0xb0)]+0x3,_0x168529=_0x3c6efc>=_0x22bdf8[0x0][_0x4e7a35(0xb0)]&&_0x1dbd3d>=_0x2b00fb;return _0x34d91a(_0x4b98db,{'width':_0x3c6efc,'height':_0x1dbd3d,'flexDirection':_0x4e7a35(0x9a)},n(_0x4e7a35(0x10a)+_0x154ab3[_0x4e7a35(0xcf)],{'bold':!0x0,'color':_0x4e7a35(0x135)}),n(_0x154ab3[_0x4e7a35(0xd8)]),n(_0x4e7a35(0x149)+_0x154ab3[_0x4e7a35(0xeb)][_0x4e7a35(0xb7)](',\x20')),_0x168529?n(_0x154ab3['qr'],{'color':_0x4e7a35(0xa6),'backgroundColor':_0x4e7a35(0xf1)}):n(_0x4e7a35(0xe0)+Math[_0x4e7a35(0xa2)](0x28,_0x22bdf8[0x0]['length'])+_0x4e7a35(0x171)+(_0x2b00fb+0x1)+_0x4e7a35(0xf2)),n(_0x4e7a35(0x112)+_0x154ab3['chainName']+'\x20in\x20the\x20sending\x20wallet.',{'color':_0x4e7a35(0xd9)}),n(_0x547287(_0x4bb5e2[_0x4e7a35(0xf6)]??_0x4bb5e2[_0x4e7a35(0x15a)]??_0x4e7a35(0xcc),_0x3c6efc),{'color':_0x4bb5e2[_0x4e7a35(0xf6)]?'red':_0x4e7a35(0x135)}));}const _0x57f826=_0x4bb5e2[_0x4e7a35(0xfd)]||_0x4bb5e2['confirm']||_0x4bb5e2[_0x4e7a35(0x16c)],_0x1badce=Math['max'](0x6,_0x1dbd3d-(_0x57f826?0x4:0x7)),_0x11c42c=_0x468bf4(_0x4bb5e2)[_0x4bb5e2[_0x4e7a35(0x18e)]];let _0xae2685;if(_0x4bb5e2[_0x4e7a35(0xfd)])_0xae2685=_0x34d91a(ne,{'controller':_0x33d20f,'state':_0x4bb5e2,'width':_0x3c6efc,'height':_0x1badce,'ascii':_0x1f4240});else{if(_0x4bb5e2['confirm'])_0xae2685=_0x34d91a(oe,{'state':_0x4bb5e2,'width':_0x3c6efc,'height':_0x1badce,'ascii':_0x1f4240});else{if(_0x4bb5e2[_0x4e7a35(0x16c)])_0xae2685=_0x34d91a(ee,{'event':_0x4bb5e2[_0x4e7a35(0x16c)],'width':_0x3c6efc,'height':_0x1badce,'ascii':_0x1f4240});else{if(_0x4bb5e2[_0x4e7a35(0xfe)])_0xae2685=_0x34d91a(re,{'state':_0x4bb5e2,'width':_0x3c6efc,'height':_0x1badce,'ascii':_0x1f4240});else{if(_0x4bb5e2['help'])_0xae2685=_0x34d91a(b,{'title':_0x4e7a35(0x9e),'width':_0x3c6efc,'height':_0x1badce,'ascii':_0x1f4240,'active':!0x0},_0x34d91a(L,{'content':ie,'width':_0x3c6efc-0x4,'height':_0x1badce-0x4,'offset':_0x4bb5e2[_0x4e7a35(0xb8)]}));else{if(_0x4bb5e2[_0x4e7a35(0x138)]===_0x4e7a35(0xf3))_0xae2685=_0x34d91a(te,{'state':_0x4bb5e2,'width':_0x3c6efc,'height':_0x1badce,'ascii':_0x1f4240,'narrow':_0x314bf7});else{const _0x5cbc61=!_0x314bf7||_0x4bb5e2[_0x4e7a35(0x10b)]==='list',_0x4bed74=!_0x314bf7||_0x4bb5e2['focus']===_0x4e7a35(0x127),_0x2aa1f1=_0x314bf7?_0x3c6efc:Math['floor'](_0x3c6efc*0.43),_0x2425f3=_0x5cbc61&&!_0x314bf7?_0x3c6efc-_0x2aa1f1-0x1:_0x3c6efc,_0x1b3211=_0x5343fe({..._0x4bb5e2,'selectedId':_0x11c42c?.['id']});_0xae2685=_0x34d91a(_0x4b98db,{'height':_0x1badce,'width':_0x3c6efc,'gap':0x1},_0x5cbc61?_0x34d91a(b,{'title':_0x4bb5e2['view']===_0x4e7a35(0x157)?_0x4e7a35(0x172):_0x4bb5e2[_0x4e7a35(0xfc)]+(_0x4bb5e2['query']?_0x4e7a35(0x187)+_0x547287(_0x4bb5e2[_0x4e7a35(0x189)],0x16):''),'width':_0x2aa1f1,'height':_0x1badce,'ascii':_0x1f4240,'active':_0x4bb5e2[_0x4e7a35(0x10b)]===_0x4e7a35(0x155)},_0x34d91a(N,{'state':_0x4bb5e2,'height':_0x1badce,'width':_0x2aa1f1-0x4,'ascii':_0x1f4240})):null,_0x4bed74?_0x34d91a(b,{'title':_0x547287(_0x11c42c?.['id']??'DETAILS',_0x2425f3-0x7),'width':_0x2425f3,'height':_0x1badce,'ascii':_0x1f4240,'active':_0x4bb5e2[_0x4e7a35(0x10b)]==='detail'},_0x4bb5e2[_0x4e7a35(0x138)]==='tasks'||_0x4bb5e2['view']===_0x4e7a35(0x12d)?n([_0x4e7a35(0x173),_0x4e7a35(0x133),_0x4e7a35(0xe5)][_0x4e7a35(0x17e)](_0xc7ddcc=>_0xc7ddcc===_0x4bb5e2[_0x4e7a35(0xd1)]?'['+_0xc7ddcc+']':_0xc7ddcc)[_0x4e7a35(0xb7)]('\x20\x20'),{'color':_0x4e7a35(0x135),'wrap':'truncate-end'}):null,_0x34d91a(L,{'content':_0x1b3211,'width':_0x2425f3-0x4,'height':_0x1badce-0x5,'offset':_0x4bb5e2[_0x4e7a35(0xb8)]}),_0x34d91a(_0x4b98db,{'flexGrow':0x1}),n(_0x4bb5e2['view']==='workers'?_0x11c42c?.[_0x4e7a35(0xb9)]===_0x4e7a35(0x144)?_0x4e7a35(0x13f):_0x4e7a35(0x174):_0x4d924c(_0x11c42c,_0x4bb5e2[_0x4e7a35(0x138)]),{'color':_0x4e7a35(0x135),'wrap':'truncate-end'})):null);}}}}}}const _0x2903f1=_0x11c42c?.[_0x4e7a35(0xb9)]==='network-worker'?_0x4e7a35(0xed):_0x4e7a35(0x180),_0x27dd11=_0x4bb5e2['form']||_0x4bb5e2[_0x4e7a35(0xad)]||_0x4bb5e2[_0x4e7a35(0xfe)]||_0x4bb5e2[_0x4e7a35(0x16c)]?_0x4e7a35(0x143):_0x4bb5e2[_0x4e7a35(0x138)]===_0x4e7a35(0xf3)?_0x4e7a35(0xf7):_0x4bb5e2[_0x4e7a35(0x138)]===_0x4e7a35(0x157)?_0x2903f1:_0x3c6efc<0x4b?_0x4e7a35(0x158):'up/down\x20select\x20\xB7\x20Enter\x20details\x20\xB7\x20n\x20new\x20\xB7\x20/\x20search\x20\xB7\x20f\x20filter\x20\xB7\x20?\x20help\x20\xB7\x20q\x20quit',_0x12eb78=_0x3c6efc<0x4b?_0x69ff83['map']((_0x2feeb6,_0x5ed2dc)=>'['+(_0x5ed2dc+0x1)+']'+[_0x4e7a35(0x14c),_0x4e7a35(0x154),_0x4e7a35(0x18a),_0x4e7a35(0x167)][_0x5ed2dc])[_0x4e7a35(0xb7)]('\x20'):_0x69ff83[_0x4e7a35(0x17e)]((_0x473d9b,_0x450d7f)=>(_0x473d9b===_0x4bb5e2[_0x4e7a35(0x138)]?'>\x20':'\x20\x20')+'['+(_0x450d7f+0x1)+']\x20'+Z[_0x473d9b])['join']('\x20\x20');return _0x34d91a(_0x4b98db,{'width':_0x3c6efc,'height':_0x1dbd3d,'flexDirection':_0x4e7a35(0x9a)},_0x34d91a(_0x4b98db,{'justifyContent':'space-between','height':_0x57f826?0x1:0x2},n(_0x4e7a35(0xff),{'color':_0x4e7a35(0x135),'bold':!0x0}),_0x3c6efc>=0x4b?n(_0x4bb5e2[_0x4e7a35(0xd8)]?_0x547287(_0x4bb5e2[_0x4e7a35(0xd8)],0x14):'Wallet\x20not\x20configured',{'dimColor':!0x0}):null),_0x57f826?null:n(_0x12eb78,{'color':_0x4e7a35(0x135),'wrap':_0x4e7a35(0x150)}),_0x57f826?null:_0x4bb5e2[_0x4e7a35(0x99)]||_0x4bb5e2[_0x4e7a35(0xbe)]?_0x34d91a(W,{'label':_0x4bb5e2[_0x4e7a35(0x99)]??_0x4e7a35(0x124)}):n(_0x4bb5e2['note'],{'dimColor':!0x0,'wrap':_0x4e7a35(0x150)}),_0xae2685,n(_0x547287(_0x5a3a5d??_0x4bb5e2[_0x4e7a35(0x15a)]??'',_0x3c6efc),{'color':_0x5a3a5d?_0x4e7a35(0x10d):_0x4e7a35(0x12c)}),n(_0x27dd11,{'dimColor':!0x0,'wrap':_0x4e7a35(0x150)}),_0x57f826?null:n(_0x5a3a5d?_0x4e7a35(0xa4):_0x4e7a35(0xd3),{'dimColor':!0x0,'wrap':'truncate-end'}));}export{fe as DashboardApp};
|