@ranger-testing/ranger-cli 3.1.6-alpha.cbf7608-55 → 3.1.7-alpha.34400c2-56
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/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/tunnelClient.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +6 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3b36f0=_0x2275;(function(_0x126270,_0x31e921){const _0x70155b=_0x2275,_0x5e6f95=_0x126270();while(!![]){try{const _0x312268=parseInt(_0x70155b(0xa7))/0x1+parseInt(_0x70155b(0xb5))/0x2*(parseInt(_0x70155b(0xb2))/0x3)+parseInt(_0x70155b(0xfb))/0x4*(parseInt(_0x70155b(0xe0))/0x5)+parseInt(_0x70155b(0x105))/0x6*(parseInt(_0x70155b(0xa8))/0x7)+parseInt(_0x70155b(0x80))/0x8*(-parseInt(_0x70155b(0x107))/0x9)+-parseInt(_0x70155b(0x85))/0xa+parseInt(_0x70155b(0xac))/0xb*(parseInt(_0x70155b(0x7f))/0xc);if(_0x312268===_0x31e921)break;else _0x5e6f95['push'](_0x5e6f95['shift']());}catch(_0x4768d9){_0x5e6f95['push'](_0x5e6f95['shift']());}}}(_0x2307,0x38ade));import{spawn}from'child_process';import{createHash}from'crypto';import{access,chmod,mkdir,readFile,readdir,stat,writeFile}from'fs/promises';import{createServer}from'net';import{delimiter,dirname,isAbsolute,join}from'path';function _0x2307(){const _0x6ff3d6=['217rbyRmN','rYSTE','--session-id','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','6358qCoJbp','domain','httpOnly','browserProfilePath','command','HBDms','34716HHcNuh','GINKM','cNKGi','26zployy','length','UZDfw','port','CYAUQ','http://127.0.0.1:','PATH','stdout','find','ignore','kCQDt','TJada','once','sha256','baseUrl','AgoXM','/usr/local/bin','nova-act-cli\x20','webSocketDebuggerUrl','session','expires','xoMST','hRJzk','mVtwD','logsDirectory','domcontentloaded','trim','GkNsB','storageStatePath','\x0astderr:\x20','UsSPL','close','newPage','get','YbLqY','yCRPX','AKKzY','\x20browser\x20\x22$@\x22\x20','byteLength','kGOyu','cbvPU','isFile','--headless','5lHveia','nRYFD','iKAuj','--launch-arg=','YNCiA','dqoxC','pQjMo','ftgSx','qABFG','timeoutMs','filter','XRznz','NiMAu','sessionId','jaamr','DaCwo','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','PnKDI','Default','VCiim','\x20Fix:\x20','message','YyvQE','--no-first-run','iwjHj','vySCc','zqqLE','1170924JArFSK','hYAiW','exited\x20with\x20code=','WKiVE','isDirectory','--browser-profile-path','XEXpC','digest','mtimeMs','now','23772ysySmM','XJMNv','684891Xgilko','gqlhX','error','rg-','ocaFz','act\x20browser\x20doctor\x20--json\x20timed\x20out','setItem','SIGKILL','utf-8','logDir','browser','KIJUq','commandArgs','XdxDK','env','null','userDataDir','BuUSM','AWS_PROFILE','doctor','nova-act-browser','status','lfdkg','IcPeI','kuiPP','join','origins','KXZGg','eSDTX','uLZmL','--window-size=1280,720','XNNNQ','name','yAcfS','bAhmW','pnIjj','map','log_dir','kill','string','stderr','cEzlK','floor','push','exitCode','size','execute','data','4632dGFVuF','16gKTsrn','pipe','parse','\x0astdout:\x20','Xidig','4213010NeTNBc','export','localStorage','GuxoB','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','tool','cookies','hex','toString','smoTl','match','launchArgs','Foyhi','Local\x20State','\x20signal=','Rslfn','AFulT','stderr:\x20','goto','#!/usr/bin/env\x20bash\x0aset\x20-euo\x20pipefail\x0aif\x20[[\x20\x22${1:-}\x22\x20==\x20\x22session\x22\x20&&\x20(\x20\x22${2:-}\x22\x20==\x20\x22export\x22\x20||\x20\x22${2:-}\x22\x20==\x20\x22close\x22\x20)\x20]];\x20then\x0a\x20\x20exec\x20','ZVIox','slice','SIGTERM','value','browserCommandPath','ahiLc','zhBjm','...','sort','pRpyT','Preferences','origin','act','executablePath','16560XXYXhg'];_0x2307=function(){return _0x6ff3d6;};return _0x2307();}import{homedir}from'os';import{chromium}from'playwright';import{quoteShellArg}from'./playwrightCli.js';export const NOVA_ACT_CLI_BINARY=_0x3b36f0(0xa5);export const NOVA_ACT_CLI_UV_PACKAGE='nova-act[cli]';const NOVA_ACT_CLI_PREVIEW_LIMIT=0xf0,NOVA_ACT_BOOTSTRAP_TIMEOUT_MS=0x2bf20,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS=0x3a98,NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS=0x7*0x18*0x3c*0x3c;export function toNovaActCliSessionId(_0x446461){const _0x2f5126=_0x3b36f0,_0x334f4f={'HBDms':_0x2f5126(0xc2)},_0x3009a5=createHash(_0x334f4f[_0x2f5126(0xb1)])['update'](_0x446461)[_0x2f5126(0x102)](_0x2f5126(0x8c))[_0x2f5126(0x9a)](0x0,0xc);return _0x2f5126(0x10a)+_0x3009a5;}export async function inspectNovaStorageStateFile(_0x1fd5eb){const _0x39417a=_0x3b36f0,_0x26ffa1={'AgoXM':'sha256','Rslfn':_0x39417a(0x8c),'PSexL':function(_0x91c872,_0x1a782f){return _0x91c872/_0x1a782f;},'Twlhx':function(_0xe4a774,_0x520afb){return _0xe4a774(_0x520afb);}};try{const [_0x3d60b4,_0x143ac8]=await Promise['all']([stat(_0x1fd5eb),readFile(_0x1fd5eb,_0x39417a(0x10f))]),_0x3de52e={'path':_0x1fd5eb,'exists':!![],'byteLength':Buffer[_0x39417a(0xdb)](_0x143ac8),'sha256':createHash(_0x26ffa1[_0x39417a(0xc4)])['update'](_0x143ac8)[_0x39417a(0x102)](_0x26ffa1[_0x39417a(0x94)])};try{const _0xbdf838=JSON['parse'](_0x143ac8),_0x49d1b7=_0xbdf838['cookies']??[],_0x23d600=Math[_0x39417a(0x131)](_0x26ffa1['PSexL'](Date[_0x39417a(0x104)](),0x3e8)),_0x97a094=new Map();for(const _0xbeb865 of _0x49d1b7){const _0x16fb7e=_0x97a094[_0x39417a(0xd6)](_0xbeb865[_0x39417a(0xad)])??[];_0x16fb7e[_0x39417a(0x7a)](_0xbeb865['name']),_0x97a094['set'](_0xbeb865[_0x39417a(0xad)],_0x16fb7e);}return{..._0x3de52e,'byteLength':_0x3d60b4[_0x39417a(0x7c)],'cookieCount':_0x49d1b7[_0x39417a(0xb6)],'cookieDomains':[..._0x97a094['entries']()][_0x39417a(0xa1)](([_0x11a047],[_0x692f02])=>_0x11a047['localeCompare'](_0x692f02))['map'](([_0x7c2578,_0x60a117])=>({'domain':_0x7c2578,'count':_0x60a117['length'],'names':_0x60a117['sort']()[_0x39417a(0x9a)](0x0,0x19)})),'httpOnlyCookieCount':_0x49d1b7[_0x39417a(0xea)](_0x11edbf=>_0x11edbf[_0x39417a(0xae)])[_0x39417a(0xb6)],'secureCookieCount':_0x49d1b7['filter'](_0x27b8ba=>_0x27b8ba['secure'])[_0x39417a(0xb6)],'sessionCookieCount':_0x49d1b7[_0x39417a(0xea)](_0x4456f3=>_0x4456f3['expires']===-0x1)[_0x39417a(0xb6)],'expiredCookieCount':_0x49d1b7[_0x39417a(0xea)](_0x233b0b=>typeof _0x233b0b['expires']==='number'&&_0x233b0b[_0x39417a(0xc9)]>0x0&&_0x233b0b[_0x39417a(0xc9)]<_0x23d600)[_0x39417a(0xb6)],'originCount':_0xbdf838[_0x39417a(0x121)]?.[_0x39417a(0xb6)]??0x0,'origins':(_0xbdf838[_0x39417a(0x121)]??[])['map'](_0x487110=>({'origin':_0x487110[_0x39417a(0xa4)],'localStorageCount':_0x487110[_0x39417a(0x87)]?.['length']??0x0,'localStorageKeys':_0x487110[_0x39417a(0x87)]?.['map'](_0x511a07=>_0x511a07[_0x39417a(0x127)])[_0x39417a(0xa1)]()['slice'](0x0,0x19)??[]}))};}catch(_0x49a89c){return{..._0x3de52e,'byteLength':_0x3d60b4[_0x39417a(0x7c)],'parseError':_0x49a89c instanceof Error?_0x49a89c['message']:String(_0x49a89c)};}}catch(_0x5f3b13){return{'path':_0x1fd5eb,'exists':![],'readError':_0x5f3b13 instanceof Error?_0x5f3b13['message']:_0x26ffa1['Twlhx'](String,_0x5f3b13)};}}export async function inspectNovaProfileFiles(_0x36dc16){const _0x5f0a89=_0x3b36f0,_0x270b4d={'BuUSM':_0x5f0a89(0xa3),'pQjMo':function(_0x23fb0a,_0x5bbbec,_0xbb9b05,_0x48ca23){return _0x23fb0a(_0x5bbbec,_0xbb9b05,_0x48ca23);},'vlDDQ':'Local\x20Storage','iKAuj':'leveldb','YNCiA':function(_0x295955,_0x536dd2){return _0x295955(_0x536dd2);},'bAhmW':function(_0x1b1d88,_0x44ec71){return _0x1b1d88(_0x44ec71);},'xoMST':function(_0x2e8411,_0x500305){return _0x2e8411(_0x500305);},'DUkPY':function(_0x73b9a3,_0x534f1a){return _0x73b9a3(_0x534f1a);},'JNhJY':function(_0x5af9e7,_0x270810){return _0x5af9e7(_0x270810);}},_0x326cca=join(_0x36dc16[_0x5f0a89(0x117)],'Local\x20State'),_0x5f32ca=join(_0x36dc16[_0x5f0a89(0xaf)],_0x270b4d[_0x5f0a89(0x118)]),_0x3dd766=join(_0x36dc16[_0x5f0a89(0xaf)],'Cookies'),_0x2d114a=_0x270b4d[_0x5f0a89(0xe6)](join,_0x36dc16['browserProfilePath'],'Network','Cookies'),_0xf906a3=join(_0x36dc16['browserProfilePath'],_0x270b4d['vlDDQ']),_0x58af5a=join(_0xf906a3,_0x270b4d[_0x5f0a89(0xe2)]),[_0xfa8320,_0x2eb69e,_0x26b13d,_0x2863fb,_0x206733,_0x2de2e7,_0x4ac778,_0x1e7cd1,_0x3b3043,_0x3c624d,_0x314c7b]=await Promise['all']([_0x270b4d[_0x5f0a89(0xe4)](inspectPath,_0x36dc16['userDataDir']),_0x270b4d[_0x5f0a89(0x129)](inspectPath,_0x36dc16[_0x5f0a89(0xaf)]),inspectPath(_0x326cca),inspectPath(_0x5f32ca),_0x270b4d[_0x5f0a89(0xca)](inspectPath,_0x3dd766),_0x270b4d['DUkPY'](inspectPath,_0x2d114a),_0x270b4d['JNhJY'](inspectPath,_0xf906a3),_0x270b4d[_0x5f0a89(0x129)](inspectPath,_0x58af5a),_0x270b4d['JNhJY'](listDir,_0x36dc16['userDataDir']),listDir(_0x36dc16['browserProfilePath']),listDir(_0x58af5a)]);return{'userDataDir':_0x36dc16[_0x5f0a89(0x117)],'browserProfilePath':_0x36dc16['browserProfilePath'],'rootEntries':_0x3b3043,'defaultEntries':_0x3c624d,'localStorageEntries':_0x314c7b,'paths':{'userDataDir':_0xfa8320,'browserProfilePath':_0x2eb69e,'localState':_0x26b13d,'preferences':_0x2863fb,'cookies':_0x206733,'networkCookies':_0x2de2e7,'localStorage':_0x4ac778,'levelDb':_0x1e7cd1}};}async function inspectPath(_0x29d59a){const _0x3bcf4f=_0x3b36f0,_0x6350c9={'ftgSx':function(_0x17e677,_0x3e89f0){return _0x17e677(_0x3e89f0);}};try{const _0x2522f5=await _0x6350c9[_0x3bcf4f(0xe7)](stat,_0x29d59a);return{'path':_0x29d59a,'exists':!![],'isDirectory':_0x2522f5[_0x3bcf4f(0xff)](),'byteLength':_0x2522f5[_0x3bcf4f(0xde)]()?_0x2522f5['size']:undefined,'mtimeMs':_0x2522f5[_0x3bcf4f(0x103)]};}catch(_0x14bd3c){return{'path':_0x29d59a,'exists':![],'error':_0x14bd3c instanceof Error?_0x14bd3c[_0x3bcf4f(0xf5)]:_0x6350c9[_0x3bcf4f(0xe7)](String,_0x14bd3c)};}}async function listDir(_0x4c4615){const _0x4e23d8=_0x3b36f0,_0x232d84={'XJMNv':function(_0x33b40a,_0x176a40){return _0x33b40a(_0x176a40);}};try{return(await _0x232d84[_0x4e23d8(0x106)](readdir,_0x4c4615))[_0x4e23d8(0xa1)]()[_0x4e23d8(0x9a)](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x556bc3,_0xa5d86f=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x5db1e5=_0x3b36f0,_0x517beb={'ulDRG':function(_0x1c1fff,_0x17637a){return _0x1c1fff>_0x17637a;},'GkNsB':_0x5db1e5(0xa0)};return _0x517beb['ulDRG'](_0x556bc3[_0x5db1e5(0xb6)],_0xa5d86f)?_0x556bc3['slice'](0x0,_0xa5d86f)+_0x517beb[_0x5db1e5(0xd0)]:_0x556bc3;}function truncateOutput(_0x283d51,_0x43c54c=0x7d0){const _0x5afc76={'FVmtU':function(_0x4cb90d,_0x444222){return _0x4cb90d>_0x444222;}};return _0x5afc76['FVmtU'](_0x283d51['length'],_0x43c54c)?_0x283d51['slice'](0x0,_0x43c54c)+'...':_0x283d51;}function getNovaActCliBinDirs(_0x470e0b){const _0x588097=_0x3b36f0,_0x267ee9={'faJpX':function(_0xd187cb){return _0xd187cb();},'mVtwD':'/opt/homebrew/bin','cEzlK':_0x588097(0xc5)};return[_0x470e0b['UV_TOOL_BIN_DIR'],_0x267ee9['faJpX'](homedir)+'/.local/bin',_0x267ee9[_0x588097(0xcc)],_0x267ee9[_0x588097(0x130)]][_0x588097(0xea)](_0x500214=>Boolean(_0x500214));}function buildPathWithNovaActCliBins(_0x395384){const _0x17d017=_0x3b36f0,_0x44a768={'WKiVE':function(_0x224b48,_0x116a6b){return _0x224b48(_0x116a6b);}},_0x487939=new Set(),_0x1d8172=[..._0x44a768[_0x17d017(0xfe)](getNovaActCliBinDirs,_0x395384),...(_0x395384[_0x17d017(0xbb)]??'')['split'](delimiter)][_0x17d017(0xea)](_0xdf3f39=>{if(!_0xdf3f39||_0x487939['has'](_0xdf3f39))return![];return _0x487939['add'](_0xdf3f39),!![];});return _0x1d8172['join'](delimiter);}export function applyNovaActCliPath(_0x8297c4){_0x8297c4['PATH']=buildPathWithNovaActCliBins(_0x8297c4);}function withNovaActCliPath(_0x601584){const _0x191674={'uJsjz':function(_0x809fcf,_0x40f7a0){return _0x809fcf(_0x40f7a0);}};return{..._0x601584,'PATH':_0x191674['uJsjz'](buildPathWithNovaActCliBins,_0x601584)};}function runBootstrapCommand(_0x3b1415){const _0x573ece=_0x3b36f0,_0x1f3419={'CYAUQ':function(_0x5d725c,_0x396f0c){return _0x5d725c(_0x396f0c);},'yikrE':function(_0x17c1a6,_0x381c64){return _0x17c1a6(_0x381c64);},'iWFim':_0x573ece(0x116),'WQhZT':function(_0x2c5e55,_0x552c17){return _0x2c5e55(_0x552c17);},'AFulT':function(_0x20c398,_0x1801aa,_0x43b615,_0x46f9f4){return _0x20c398(_0x1801aa,_0x43b615,_0x46f9f4);},'WxkIk':_0x573ece(0x7e),'LbDKo':'error','eoOWf':_0x573ece(0xd4)},{command:_0x3b6ab3,args:_0x21b20f,env:_0x1d8456,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x3b1415;return new Promise((_0x156ebf,_0x2cbb24)=>{const _0x55fb27=_0x573ece,_0x37c0d={'cXOIt':function(_0x17888a,_0x4c16d8){return _0x1f3419['CYAUQ'](_0x17888a,_0x4c16d8);},'DjaGk':function(_0x5a4425,_0x41e57b){return _0x5a4425??_0x41e57b;},'BuPwd':_0x1f3419['iWFim'],'uLXBk':function(_0x8fc6bf,_0x35b57a){return _0x1f3419['WQhZT'](_0x8fc6bf,_0x35b57a);},'vCVct':function(_0x55efea,_0x302c80){return _0x55efea(_0x302c80);}},_0x404b57=_0x1f3419[_0x55fb27(0x95)](spawn,_0x3b6ab3,_0x21b20f,{'env':_0x1d8456,'stdio':[_0x55fb27(0xbe),'pipe','pipe']});let _0x1408c8='',_0xcf64ce='',_0xa89373=![];const _0x4df4e7=setTimeout(()=>{const _0x44eb9b=_0x55fb27;_0xa89373=!![],_0x404b57[_0x44eb9b(0x12d)]('SIGTERM'),setTimeout(()=>{const _0x154e40=_0x44eb9b;try{_0x404b57[_0x154e40(0x12d)](_0x154e40(0x10e));}catch{}},0x3e8);},timeoutMs);_0x404b57[_0x55fb27(0xbc)]?.['on'](_0x1f3419['WxkIk'],_0x2cd570=>{const _0x312d82=_0x55fb27;_0x1408c8+=_0x2cd570[_0x312d82(0x8d)]();}),_0x404b57[_0x55fb27(0x12f)]?.['on'](_0x55fb27(0x7e),_0x2ba650=>{_0xcf64ce+=_0x2ba650['toString']();}),_0x404b57['on'](_0x1f3419['LbDKo'],_0x174579=>{const _0x374d41=_0x55fb27;_0x1f3419[_0x374d41(0xb9)](clearTimeout,_0x4df4e7),_0x1f3419['yikrE'](_0x2cbb24,_0x174579);}),_0x404b57['on'](_0x1f3419['eoOWf'],(_0x11ba36,_0x5c7ec9)=>{const _0x321477=_0x55fb27;clearTimeout(_0x4df4e7);if(_0x11ba36===0x0){_0x37c0d['cXOIt'](_0x156ebf,{'stdout':_0x1408c8,'stderr':_0xcf64ce});return;}const _0x50d904=_0xa89373?'timed\x20out\x20after\x20'+timeoutMs+'ms':'exited\x20with\x20code='+_0x37c0d['DjaGk'](_0x11ba36,'null')+'\x20signal='+_0x37c0d['DjaGk'](_0x5c7ec9,_0x37c0d['BuPwd']);_0x37c0d['uLXBk'](_0x2cbb24,new Error(_0x3b6ab3+'\x20'+_0x21b20f[_0x321477(0x120)]('\x20')+'\x20'+_0x50d904+'\x0astdout:\x20'+truncateOutput(_0x1408c8)+_0x321477(0xd2)+_0x37c0d['vCVct'](truncateOutput,_0xcf64ce)));});});}function runCommandAllowFailure(_0x5719a7){const _0x4c786b=_0x3b36f0,_0x184c26={'uLZmL':'SIGKILL','Foyhi':_0x4c786b(0x9b),'cNKGi':function(_0xb88485,_0x2dc897){return _0xb88485(_0x2dc897);},'cbvPU':function(_0x59445b,_0x255e5d){return _0x59445b(_0x255e5d);},'VCiim':function(_0x7da5fb,_0x1164e1,_0x5c369a,_0x40e83b){return _0x7da5fb(_0x1164e1,_0x5c369a,_0x40e83b);},'Mkqgq':'ignore','Paeps':function(_0x23f008,_0x4d19d4,_0x580172){return _0x23f008(_0x4d19d4,_0x580172);},'qABFG':'data','UZDfw':'error','iwjHj':'close'},{command:_0x2a1b8c,args:_0x427ef3,env:_0x5d00d1,timeoutMs:_0x58a80b}=_0x5719a7;return new Promise((_0x54679d,_0x18cda5)=>{const _0x53b4bc=_0x4c786b,_0x374040=_0x184c26[_0x53b4bc(0xf3)](spawn,_0x2a1b8c,_0x427ef3,{'env':_0x5d00d1,'stdio':[_0x184c26['Mkqgq'],_0x53b4bc(0x81),_0x53b4bc(0x81)]});let _0x44dbb3='',_0x369505='',_0x1087a9=![];const _0x321e5f=_0x184c26['Paeps'](setTimeout,()=>{const _0x4a154d=_0x53b4bc,_0xfbfb4={'ErVFw':_0x184c26[_0x4a154d(0x124)]};_0x1087a9=!![],_0x374040[_0x4a154d(0x12d)](_0x184c26[_0x4a154d(0x91)]),setTimeout(()=>{try{_0x374040['kill'](_0xfbfb4['ErVFw']);}catch{}},0x3e8);},_0x58a80b);_0x374040['stdout']?.['on'](_0x184c26[_0x53b4bc(0xe8)],_0x54736f=>{const _0x1294fc=_0x53b4bc;_0x44dbb3+=_0x54736f[_0x1294fc(0x8d)]();}),_0x374040['stderr']?.['on'](_0x184c26[_0x53b4bc(0xe8)],_0x3b0995=>{_0x369505+=_0x3b0995['toString']();}),_0x374040['on'](_0x184c26[_0x53b4bc(0xb7)],_0x3de6e0=>{const _0x185197=_0x53b4bc;_0x184c26[_0x185197(0xb4)](clearTimeout,_0x321e5f),_0x18cda5(_0x3de6e0);}),_0x374040['on'](_0x184c26[_0x53b4bc(0xf8)],(_0x2e35dc,_0x6b4262)=>{const _0x54a488=_0x53b4bc;clearTimeout(_0x321e5f),_0x184c26[_0x54a488(0xdd)](_0x54679d,{'code':_0x2e35dc,'signal':_0x6b4262,'stdout':_0x44dbb3,'stderr':_0x369505,'timedOut':_0x1087a9});});});}async function resolveActPath(_0x4725f7){const _0x9e754c=isAbsolute(NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x4725f7['PATH']??'')['split'](delimiter)['filter'](Boolean)['map'](_0x347422=>join(_0x347422,NOVA_ACT_CLI_BINARY));for(const _0x120342 of _0x9e754c){try{return await access(_0x120342),_0x120342;}catch{}}return null;}async function checkNovaActCli(_0x207fcf){const _0x3b0f8f=_0x3b36f0,_0x544a5d={'ZVIox':_0x3b0f8f(0x111),'iJueT':'--help'};try{return await runBootstrapCommand({'command':NOVA_ACT_CLI_BINARY,'args':[_0x544a5d[_0x3b0f8f(0x99)],_0x544a5d['iJueT']],'env':_0x207fcf,'timeoutMs':0x7530}),await resolveActPath(_0x207fcf)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x59c184={}){const _0x5d9b67=_0x3b36f0,_0x1908ab={'XdxDK':function(_0x2dcb0d,_0x5dbf6a){return _0x2dcb0d(_0x5dbf6a);},'VSGJg':'--version','NiMAu':function(_0x2d0fac,_0x2acf0){return _0x2d0fac instanceof _0x2acf0;},'Yqowv':function(_0x38e5d0,_0x1613b1){return _0x38e5d0(_0x1613b1);},'fiwTQ':_0x5d9b67(0x8a),'nRYFD':'install','pBeZQ':function(_0x27f4af,_0x18381a){return _0x27f4af(_0x18381a);}},_0x2b2df6=withNovaActCliPath(_0x59c184[_0x5d9b67(0x115)]??process[_0x5d9b67(0x115)]),_0x1c03d4=await checkNovaActCli(_0x2b2df6);if(_0x1c03d4)return{'installed':![],'actPath':_0x1c03d4,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x1908ab['XdxDK'](runBootstrapCommand,{'command':'uv','args':[_0x1908ab['VSGJg']],'env':_0x2b2df6,'timeoutMs':0x7530});}catch(_0x24e16b){throw new Error(_0x5d9b67(0x89)+NOVA_ACT_CLI_BINARY+'`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22'+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x1908ab[_0x5d9b67(0xec)](_0x24e16b,Error)?_0x24e16b[_0x5d9b67(0xf5)]:_0x1908ab['XdxDK'](String,_0x24e16b)));}const _0x2976b2=await _0x1908ab['Yqowv'](runBootstrapCommand,{'command':'uv','args':[_0x1908ab['fiwTQ'],_0x1908ab[_0x5d9b67(0xe1)],NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2b2df6,'timeoutMs':_0x59c184[_0x5d9b67(0xe9)]??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x5927eb=await checkNovaActCli(_0x2b2df6);if(!_0x5927eb)throw new Error('Installed\x20'+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+'\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20'+_0x1908ab[_0x5d9b67(0x114)](getNovaActCliBinDirs,_0x2b2df6)['join'](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x1908ab['pBeZQ'](truncateOutput,_0x2976b2[_0x5d9b67(0xbc)])+_0x5d9b67(0xd2)+_0x1908ab[_0x5d9b67(0x114)](truncateOutput,_0x2976b2[_0x5d9b67(0x12f)]));return{'installed':!![],'actPath':_0x5927eb,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x2976b2[_0x5d9b67(0xbc)],'stderr':_0x2976b2[_0x5d9b67(0x12f)]};}function parseNovaActDoctorOutput(_0x459d04){try{return JSON['parse'](_0x459d04);}catch{return null;}}function buildNovaActCliPreflightError(_0x4cbbf3){const _0x365db7=_0x3b36f0,_0x239ac1={'gvxva':function(_0x5c29ac,_0x235faa){return _0x5c29ac>_0x235faa;},'NZqRU':function(_0x5d972a,_0x265d7d){return _0x5d972a??_0x265d7d;},'zHlgp':'null','PnKDI':function(_0x3ebdef,_0x2d4336){return _0x3ebdef(_0x2d4336);},'QvkoZ':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0x4746b5,stdout:_0x18c055,stderr:_0x5d32fc,env:_0x4c5616,code:_0x2d3ace,signal:_0x194303,timedOut:_0x589461}=_0x4cbbf3,_0x390715=_0x4746b5['filter'](_0x453f8e=>_0x453f8e[_0x365db7(0x11c)]==='fail'),_0x4c7d54=_0x239ac1['gvxva'](_0x390715['length'],0x0)?_0x390715['map'](_0x186834=>{const _0x4d75f2=_0x365db7,_0x4641e7=_0x186834['fix']?_0x4d75f2(0xf4)+_0x186834['fix']:'';return'-\x20'+_0x186834[_0x4d75f2(0x127)]+':\x20'+_0x186834['message']+'.'+_0x4641e7;})['join']('\x0a'):[_0x589461?_0x365db7(0x10c):_0x365db7(0xab)+_0x239ac1['NZqRU'](_0x2d3ace,_0x239ac1['zHlgp'])+_0x365db7(0x93)+(_0x194303??_0x365db7(0x116)),_0x18c055?'stdout:\x20'+truncateOutput(_0x18c055):'',_0x5d32fc?_0x365db7(0x96)+_0x239ac1[_0x365db7(0xf1)](truncateOutput,_0x5d32fc):'']['filter'](Boolean)[_0x365db7(0x120)]('\x0a'),_0x2d4c90=_0x4c5616[_0x365db7(0x119)]?.[_0x365db7(0xcf)](),_0x2386ab=_0x2d4c90?'For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20'+_0x2d4c90:'For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>';return new Error(['Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.',_0x4c7d54,_0x239ac1['QvkoZ'],_0x2386ab][_0x365db7(0x120)]('\x0a'));}export async function preflightNovaActCli(_0x47aa61={}){const _0x33410f=_0x3b36f0,_0x365a97={'RcjCI':function(_0x55c44f,_0xca53a){return _0x55c44f(_0xca53a);},'dqoxC':function(_0x34899a,_0x3feaa3){return _0x34899a(_0x3feaa3);},'aPGKY':_0x33410f(0x111),'zqqLE':function(_0x34a7ed,_0x3df921){return _0x34a7ed(_0x3df921);}},_0x11626=_0x365a97['RcjCI'](withNovaActCliPath,_0x47aa61[_0x33410f(0x115)]??process[_0x33410f(0x115)]),_0x5a1810=await _0x365a97[_0x33410f(0xe5)](runCommandAllowFailure,{'command':NOVA_ACT_CLI_BINARY,'args':[_0x365a97['aPGKY'],_0x33410f(0x11a),'--json'],'env':_0x11626,'timeoutMs':_0x47aa61[_0x33410f(0xe9)]??0x7530}),_0x1c30f0=parseNovaActDoctorOutput(_0x5a1810['stdout']),_0x238813=_0x1c30f0?.['data']?.['checks']??[],_0x47d4c4=_0x238813['some'](_0x27b5d2=>_0x27b5d2['status']==='fail');if(_0x5a1810['code']!==0x0||_0x5a1810['timedOut']||_0x47d4c4)throw _0x365a97[_0x33410f(0xfa)](buildNovaActCliPreflightError,{'checks':_0x238813,'stdout':_0x5a1810['stdout'],'stderr':_0x5a1810[_0x33410f(0x12f)],'env':_0x11626,'code':_0x5a1810['code'],'signal':_0x5a1810['signal'],'timedOut':_0x5a1810['timedOut']});return{'checks':_0x238813,'logDir':_0x1c30f0?.[_0x33410f(0x12c)]??_0x1c30f0?.[_0x33410f(0x110)]};}function getNovaActCliSubcommand(_0x1e7100){const _0x11c69c=_0x3b36f0,[_0x4a503a='unknown',_0x5e0e26]=_0x1e7100;return _0x4a503a===_0x11c69c(0xc8)&&_0x5e0e26?_0x4a503a+'\x20'+_0x5e0e26:_0x4a503a;}function supportsBrowserSessionOptions(_0x51bf89){const _0x3ca49e=_0x3b36f0,_0x9624e5={'wHjVg':function(_0x1c9de2,_0x2c339e){return _0x1c9de2===_0x2c339e;},'mmlTh':_0x3ca49e(0x86),'ocaFz':'close'};return!(_0x9624e5['wHjVg'](_0x51bf89[0x0],_0x3ca49e(0xc8))&&(_0x9624e5['wHjVg'](_0x51bf89[0x1],_0x9624e5['mmlTh'])||_0x51bf89[0x1]===_0x9624e5[_0x3ca49e(0x10b)]));}function buildSharedArgs(_0x2783ca,_0x15b97f){const _0x4ad37c=_0x3b36f0,_0xb9a72f={'vqMgH':function(_0x4c85c6,_0x38a43a){return _0x4c85c6(_0x38a43a);},'Qridr':'--quiet'},_0x1a923c=[_0x4ad37c(0xaa),_0x2783ca[_0x4ad37c(0xed)],'--json'];if(_0xb9a72f['vqMgH'](supportsBrowserSessionOptions,_0x15b97f)){_0x1a923c['push'](_0xb9a72f['Qridr']),_0x1a923c['push'](_0x2783ca['headless']?_0x4ad37c(0xdf):'--headed');_0x2783ca[_0x4ad37c(0xaf)]&&_0x1a923c[_0x4ad37c(0x7a)](_0x4ad37c(0x100),_0x2783ca['browserProfilePath']);_0x2783ca['executablePath']&&_0x1a923c[_0x4ad37c(0x7a)]('--executable-path',_0x2783ca['executablePath']);_0x2783ca['cdpEndpoint']&&_0x1a923c['push']('--cdp',_0x2783ca['cdpEndpoint']);for(const _0x2fbbc3 of _0x2783ca[_0x4ad37c(0x90)]??[]){_0x1a923c[_0x4ad37c(0x7a)](_0x4ad37c(0xe3)+_0x2fbbc3);}}return _0x1a923c;}export function buildNovaActCliInvocation(_0x387eaa,_0x44660e){const _0x3a7c19=_0x3b36f0,_0x24cc80={'XEXpC':function(_0x13bb31,_0x3e9b32,_0x54566a){return _0x13bb31(_0x3e9b32,_0x54566a);},'YbLqY':'browser'},_0x3d055e=_0x24cc80[_0x3a7c19(0x101)](buildSharedArgs,_0x387eaa,_0x44660e),_0x38dac2=[_0x24cc80['YbLqY'],..._0x44660e,..._0x3d055e];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x38dac2,'shellCommand':[NOVA_ACT_CLI_BINARY,_0x24cc80[_0x3a7c19(0xd7)],..._0x44660e[_0x3a7c19(0x12b)](quoteShellArg),..._0x3d055e['map'](quoteShellArg)]['join']('\x20'),'subcommand':getNovaActCliSubcommand(_0x44660e)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x40e288){const _0x4783d0=_0x3b36f0,_0x425b89={'yCRPX':function(_0x3dd7f0,_0x1d3a06,_0x552918){return _0x3dd7f0(_0x1d3a06,_0x552918);},'XRznz':_0x4783d0(0x11b)};return _0x425b89[_0x4783d0(0xd8)](join,dirname(_0x40e288[_0x4783d0(0x117)]),_0x425b89[_0x4783d0(0xeb)]);}export async function writeNovaActCliBrowserWrapper(_0x823b30){const _0x1db186=_0x3b36f0,_0x341d5b={'fJehj':function(_0x346d64,_0x3c82d8,_0x186f7c){return _0x346d64(_0x3c82d8,_0x186f7c);},'MjgAD':function(_0x2e08a2,_0x4e9a07){return _0x2e08a2(_0x4e9a07);}},_0x48d150=_0x823b30[_0x1db186(0x9d)]??buildNovaActCliBrowserWrapperPath(_0x823b30),_0x5b089d=buildSharedArgs(_0x823b30,['execute'])[_0x1db186(0x12b)](quoteShellArg)[_0x1db186(0x120)]('\x20'),_0x5aa785=buildSharedArgs(_0x823b30,['session','export'])[_0x1db186(0x12b)](quoteShellArg)['join']('\x20');return await _0x341d5b['fJehj'](mkdir,dirname(_0x48d150),{'recursive':!![]}),await mkdir(_0x823b30[_0x1db186(0x117)],{'recursive':!![]}),await writeFile(_0x48d150,_0x1db186(0x98)+_0x341d5b['MjgAD'](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x1db186(0xda)+_0x5aa785+'\x0afi\x0a\x0aexec\x20'+quoteShellArg(NOVA_ACT_CLI_BINARY)+_0x1db186(0xda)+_0x5b089d+'\x0a','utf-8'),await _0x341d5b['fJehj'](chmod,_0x48d150,0x1ed),_0x48d150;}function _0x2275(_0x4824e2,_0x31b3a3){_0x4824e2=_0x4824e2-0x7a;const _0x2307ce=_0x2307();let _0x227519=_0x2307ce[_0x4824e2];return _0x227519;}export function buildNovaActCliSharedOptionsSuffix(_0x5dfc97,_0x2e1b0f=[_0x3b36f0(0x7d)]){const _0xc4a6fd=_0x3b36f0,_0x55dc59={'fMHRm':function(_0x34ea94,_0x4b8769,_0x19d0ea){return _0x34ea94(_0x4b8769,_0x19d0ea);}};return _0x55dc59['fMHRm'](buildSharedArgs,_0x5dfc97,_0x2e1b0f)['map'](quoteShellArg)[_0xc4a6fd(0x120)]('\x20');}export async function runNovaActCliCommand(_0x310831){const _0x22da58=_0x3b36f0,_0x46ff91={'SiWOq':'SIGKILL','NSxTI':function(_0xcb704f,_0x2c0ba8){return _0xcb704f(_0x2c0ba8);},'GzBzO':_0x22da58(0x81),'HhtCF':function(_0x288822,_0x162346){return _0x288822>_0x162346;},'vySCc':function(_0x5c0389,_0x2da89f,_0x374ae9){return _0x5c0389(_0x2da89f,_0x374ae9);},'KHpCT':'data'};await mkdir(_0x310831['userDataDir'],{'recursive':!![]});const _0x23ca01=_0x46ff91[_0x22da58(0xf9)](buildNovaActCliInvocation,_0x310831,_0x310831[_0x22da58(0x113)]);return new Promise((_0x22c34c,_0x4fdd1d)=>{const _0x48a81b=_0x22da58,_0x2e1be9={'EQObK':_0x46ff91['SiWOq'],'zVujG':function(_0x2991,_0x15891c){return _0x2991(_0x15891c);},'NZXfX':function(_0x4916e4,_0x3a8bc6){return _0x4916e4??_0x3a8bc6;},'jaamr':'null','FtEQr':function(_0x54f25e,_0x2cf954){return _0x46ff91['NSxTI'](_0x54f25e,_0x2cf954);}},_0x3a44a7=spawn(_0x23ca01[_0x48a81b(0xb0)],_0x23ca01['args'],{'cwd':_0x310831['cwd'],'env':_0x310831['env'],'stdio':['ignore','pipe',_0x46ff91['GzBzO']]});let _0x462d8c='',_0x2eb6bd='',_0x3e958a=![];const _0x388450=_0x310831[_0x48a81b(0xe9)]&&_0x46ff91['HhtCF'](_0x310831['timeoutMs'],0x0)?_0x46ff91[_0x48a81b(0xf9)](setTimeout,()=>{const _0x23415e=_0x48a81b;_0x3e958a=!![],_0x3a44a7['kill'](_0x23415e(0x9b)),setTimeout(()=>{const _0x5de397=_0x23415e;try{_0x3a44a7[_0x5de397(0x12d)](_0x2e1be9['EQObK']);}catch{}},0x3e8);},_0x310831['timeoutMs']):null;_0x3a44a7['stdout']?.['on'](_0x46ff91['KHpCT'],_0xa7f203=>{_0x462d8c+=_0xa7f203['toString']();}),_0x3a44a7[_0x48a81b(0x12f)]?.['on'](_0x46ff91['KHpCT'],_0x15518c=>{_0x2eb6bd+=_0x15518c['toString']();}),_0x3a44a7['on'](_0x48a81b(0x109),_0x4c8692=>{if(_0x388450)clearTimeout(_0x388450);_0x4fdd1d(_0x4c8692);}),_0x3a44a7['on'](_0x48a81b(0xd4),(_0x2d2459,_0x31ca25)=>{const _0x59fbf7=_0x48a81b;if(_0x388450)clearTimeout(_0x388450);if(_0x2d2459===0x0){_0x2e1be9['zVujG'](_0x22c34c,{'stdout':_0x462d8c,'stderr':_0x2eb6bd,'invocation':_0x23ca01});return;}const _0x3b14b6=_0x3e958a?'timed\x20out\x20after\x20'+_0x310831['timeoutMs']+'ms':_0x59fbf7(0xfd)+_0x2e1be9['NZXfX'](_0x2d2459,_0x2e1be9[_0x59fbf7(0xee)])+_0x59fbf7(0x93)+(_0x31ca25??_0x2e1be9['jaamr']);_0x4fdd1d(new Error(_0x59fbf7(0xc6)+_0x23ca01['subcommand']+'\x20'+_0x3b14b6+_0x59fbf7(0x83)+truncateOutput(_0x462d8c)+_0x59fbf7(0xd2)+_0x2e1be9['FtEQr'](truncateOutput,_0x2eb6bd)));});});}export function parseNovaActCliCommand(_0x523e0e){const _0x27b567=_0x523e0e['match'](/(?:^|\s)(?:(?:"[^"]*\/act"|'[^']*\/act'|\S*\/act|act)\s+browser|(?:"[^"]*\/nova-act-browser"|'[^']*\/nova-act-browser'|\S*\/nova-act-browser|nova-act-browser))\s+(session\s+[a-z-]+|[a-z][a-z-]*)\b/);return _0x27b567?.[0x1]??null;}export function extractNovaActLogDir(_0x283542){const _0x4ac6fa=_0x3b36f0;try{const _0xf7abe2=JSON[_0x4ac6fa(0x82)](_0x283542),_0x1023f6=[_0xf7abe2['logs_directory'],_0xf7abe2[_0x4ac6fa(0xcd)],_0xf7abe2['logs_dir'],_0xf7abe2[_0x4ac6fa(0x110)],_0xf7abe2[_0x4ac6fa(0x12c)]],_0x5775fd=_0x1023f6[_0x4ac6fa(0xbd)](_0x5abd6f=>typeof _0x5abd6f===_0x4ac6fa(0x12e)&&_0x5abd6f[_0x4ac6fa(0xcf)]()['length']>0x0);if(_0x5775fd)return _0x5775fd;}catch{}const _0x3319cf=_0x283542[_0x4ac6fa(0x8f)](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x3319cf?.[0x1]??null;}export async function loadNovaActSessionExport(_0x10726a){try{return JSON['parse'](await readFile(_0x10726a,'utf-8'));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x52b0cd){const _0x2f0829=_0x3b36f0,_0x54f48a={'ZzTOh':function(_0xc12879,_0x222a47){return _0xc12879!==_0x222a47;},'yAcfS':function(_0x321385,_0x2c8cd6){return _0x321385+_0x2c8cd6;},'hYAiW':function(_0x20b91b,_0x5562c8,_0x283479){return _0x20b91b(_0x5562c8,_0x283479);},'lfdkg':function(_0xcb0d3c,_0x43067b){return _0xcb0d3c(_0x43067b);},'gqlhX':_0x2f0829(0xf2),'UePGw':function(_0xbf3428,_0x288957,_0x1b02aa){return _0xbf3428(_0x288957,_0x1b02aa);},'Xidig':'Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','AKKzY':function(_0x1926c8,_0x3b4764){return _0x1926c8>_0x3b4764;},'ahiLc':_0x2f0829(0xce)},_0x1e7ccd=JSON[_0x2f0829(0x82)](await _0x54f48a['hYAiW'](readFile,_0x52b0cd[_0x2f0829(0xd1)],_0x2f0829(0x10f))),_0x59e3fa=await _0x54f48a[_0x2f0829(0x11d)](inspectNovaStorageStateFile,_0x52b0cd['storageStatePath']);await _0x54f48a[_0x2f0829(0xfc)](mkdir,_0x52b0cd[_0x2f0829(0x117)],{'recursive':!![]});const _0x4a50f5=_0x54f48a['hYAiW'](join,_0x52b0cd[_0x2f0829(0x117)],_0x54f48a[_0x2f0829(0x108)]),_0x3773b8=await inspectNovaProfileFiles({'userDataDir':_0x52b0cd['userDataDir'],'browserProfilePath':_0x4a50f5}),{browser:_0x22b9a0,process:_0x163c35}=await launchNovaHydrationBrowser({'userDataDir':_0x52b0cd['userDataDir'],'browserProfilePath':_0x4a50f5,'executablePath':_0x52b0cd[_0x2f0829(0xa6)],'headless':_0x52b0cd['headless'],'launchArgs':_0x52b0cd['launchArgs']}),_0x482b41=_0x22b9a0['contexts']()[0x0];if(!_0x482b41){await _0x54f48a['UePGw'](closeNovaHydrationBrowser,_0x22b9a0,_0x163c35);throw new Error(_0x54f48a[_0x2f0829(0x84)]);}let _0x3ea1d2=0x0,_0x5cf81d=0x0;try{const _0x2c3ec8=_0x1e7ccd[_0x2f0829(0x8b)]??[];if(_0x54f48a[_0x2f0829(0xd9)](_0x2c3ec8['length'],0x0)){const _0x2b3b54=_0x2c3ec8[_0x2f0829(0x12b)](_0x1df9bc=>{const _0x1a9af3=_0x2f0829;if(_0x54f48a['ZzTOh'](_0x1df9bc[_0x1a9af3(0xc9)],-0x1))return _0x1df9bc;return _0x5cf81d+=0x1,{..._0x1df9bc,'expires':_0x54f48a[_0x1a9af3(0x128)](Math['floor'](Date['now']()/0x3e8),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x482b41['addCookies'](_0x2b3b54);}for(const _0x29d012 of _0x1e7ccd['origins']??[]){if(!_0x29d012['localStorage']?.['length'])continue;const _0x1aa2c2=await _0x482b41['newPage']();await _0x1aa2c2[_0x2f0829(0x97)](_0x29d012[_0x2f0829(0xa4)],{'waitUntil':_0x54f48a[_0x2f0829(0x9e)],'timeout':0x7530}),await _0x1aa2c2['evaluate'](_0x117327=>{const _0x124e92=_0x2f0829;for(const _0x25516e of _0x117327){window[_0x124e92(0x87)][_0x124e92(0x10d)](_0x25516e['name'],_0x25516e[_0x124e92(0x9c)]);}},_0x29d012[_0x2f0829(0x87)]),_0x3ea1d2+=_0x29d012[_0x2f0829(0x87)][_0x2f0829(0xb6)],await _0x1aa2c2[_0x2f0829(0xd4)]();}if(_0x52b0cd[_0x2f0829(0xc3)]){const _0x43db40=await _0x482b41[_0x2f0829(0xd5)]();await _0x43db40[_0x2f0829(0x97)](_0x52b0cd['baseUrl'],{'waitUntil':_0x54f48a['ahiLc'],'timeout':0x7530}),await _0x43db40['close']();}await ensureChromeProfileShape(_0x52b0cd['userDataDir'],_0x4a50f5);}finally{await closeNovaHydrationBrowser(_0x22b9a0,_0x163c35);}const _0x231219=await inspectNovaProfileFiles({'userDataDir':_0x52b0cd[_0x2f0829(0x117)],'browserProfilePath':_0x4a50f5});return{'browserProfilePath':_0x4a50f5,'cookieCount':_0x1e7ccd['cookies']?.['length']??0x0,'promotedSessionCookieCount':_0x5cf81d,'originCount':_0x1e7ccd[_0x2f0829(0x121)]?.[_0x2f0829(0xb6)]??0x0,'localStorageEntryCount':_0x3ea1d2,'storageStateDiagnostics':_0x59e3fa,'profileBefore':_0x3773b8,'profileAfter':_0x231219};}async function launchNovaHydrationBrowser(_0x360751){const _0x236a2e=_0x3b36f0,_0x5688cd={'yQhBL':function(_0x32c5a9){return _0x32c5a9();},'SadUg':_0x236a2e(0x125),'mxAdL':'--headless=new','sowuT':'ignore','yPEjV':'pipe','TJada':function(_0x5090b7,_0x31bc7c,_0x5a4c5f){return _0x5090b7(_0x31bc7c,_0x5a4c5f);},'IcPeI':function(_0x1a943b,_0x403e9e){return _0x1a943b(_0x403e9e);}};await ensureChromeProfileShape(_0x360751[_0x236a2e(0x117)],_0x360751[_0x236a2e(0xaf)]);const _0x22c5ca=_0x360751['executablePath']??chromium['executablePath'](),_0x145fe6=await _0x5688cd['yQhBL'](getAvailablePort),_0x46840e=['--remote-debugging-port='+_0x145fe6,'--user-data-dir='+_0x360751[_0x236a2e(0x117)],'--profile-directory=Default',_0x5688cd['SadUg'],_0x236a2e(0xf7),'--remote-allow-origins=http://localhost'];_0x360751['headless']&&_0x46840e['push'](_0x5688cd['mxAdL']);_0x46840e[_0x236a2e(0x7a)](..._0x360751[_0x236a2e(0x90)]??[]);const _0x3b7fff=spawn(_0x22c5ca,_0x46840e,{'stdio':[_0x5688cd['sowuT'],_0x5688cd['yPEjV'],_0x5688cd['yPEjV']]});try{const _0x537bae=await _0x5688cd[_0x236a2e(0xc0)](waitForCdpEndpoint,_0x3b7fff,_0x145fe6),_0x57fb8b=await chromium['connectOverCDP'](_0x537bae);return{'browser':_0x57fb8b,'process':_0x3b7fff};}catch(_0x2a6dd4){await _0x5688cd[_0x236a2e(0x11e)](terminateNovaHydrationBrowser,_0x3b7fff);throw _0x2a6dd4;}}async function closeNovaHydrationBrowser(_0x1ebf0b,_0x16789b){const _0x4ee9a2=_0x3b36f0,_0x888be6={'YyvQE':function(_0xd253ba,_0x462cf9){return _0xd253ba(_0x462cf9);}};try{await _0x1ebf0b[_0x4ee9a2(0xd4)]();}catch{await _0x888be6[_0x4ee9a2(0xf6)](terminateNovaHydrationBrowser,_0x16789b);return;}const _0x3a6497=await waitForProcessExit(_0x16789b,0x1388);!_0x3a6497&&await _0x888be6[_0x4ee9a2(0xf6)](terminateNovaHydrationBrowser,_0x16789b);}async function terminateNovaHydrationBrowser(_0x4e426d){const _0x4b8b4e=_0x3b36f0,_0x2820ae={'kGOyu':function(_0x21a5a5,_0x309516,_0xd04a5f){return _0x21a5a5(_0x309516,_0xd04a5f);},'Ueuqj':function(_0x264151,_0x3ae1d3){return _0x264151===_0x3ae1d3;},'kuiPP':_0x4b8b4e(0x10e)};if(_0x4e426d[_0x4b8b4e(0x7b)]!==null)return;try{_0x4e426d[_0x4b8b4e(0x12d)]('SIGTERM');}catch{}await _0x2820ae['kGOyu'](waitForProcessExit,_0x4e426d,0x7d0);if(_0x2820ae['Ueuqj'](_0x4e426d['exitCode'],null)){try{_0x4e426d[_0x4b8b4e(0x12d)](_0x2820ae[_0x4b8b4e(0x11f)]);}catch{}await _0x2820ae[_0x4b8b4e(0xdc)](waitForProcessExit,_0x4e426d,0x7d0);}}async function waitForCdpEndpoint(_0xbc1916,_0x54b305){const _0x28767e=_0x3b36f0,_0x3fea28={'HmOJC':function(_0x2ddf9b,_0x2722c3){return _0x2ddf9b<_0x2722c3;},'hRJzk':function(_0x266916,_0x7d1d51){return _0x266916-_0x7d1d51;},'zhBjm':function(_0x412319,_0x465b90){return _0x412319(_0x465b90);},'pnIjj':function(_0x5d4692,_0x216c59){return _0x5d4692===_0x216c59;},'PICrG':function(_0x310089,_0x4e902b){return _0x310089 instanceof _0x4e902b;}},_0x37fc78=Date['now']();let _0x466c21;while(_0x3fea28['HmOJC'](_0x3fea28[_0x28767e(0xcb)](Date[_0x28767e(0x104)](),_0x37fc78),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0xbc1916[_0x28767e(0x7b)]!==null)throw new Error('Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20'+_0xbc1916['exitCode']);try{const _0x3d30e8=await _0x3fea28[_0x28767e(0x9f)](fetch,_0x28767e(0xba)+_0x54b305+'/json/version');if(_0x3d30e8['ok']){const _0xb228e4=await _0x3d30e8['json']();if(_0x3fea28[_0x28767e(0x12a)](typeof _0xb228e4[_0x28767e(0xc7)],'string'))return _0xb228e4['webSocketDebuggerUrl'];}}catch(_0x3a6627){_0x466c21=_0x3a6627;}await _0x3fea28[_0x28767e(0x9f)](delay,0x64);}const _0x3318c0=_0x3fea28['PICrG'](_0x466c21,Error)?':\x20'+_0x466c21['message']:'';throw new Error(_0x28767e(0xf0)+_0x3318c0);}async function getAvailablePort(){const _0x5e7858={'qVcRH':'object','smoTl':function(_0x490b8f){return _0x490b8f();},'XNNNQ':'127.0.0.1'};return new Promise((_0x212f65,_0x3788f0)=>{const _0x59cb89=_0x2275,_0x116412={'GINKM':function(_0x4a2ee7,_0x39b6e1){return _0x4a2ee7(_0x39b6e1);},'UsSPL':_0x5e7858['qVcRH'],'fmksg':'Failed\x20to\x20allocate\x20hydration\x20browser\x20port'},_0xcbeedf=_0x5e7858[_0x59cb89(0x8e)](createServer);_0xcbeedf[_0x59cb89(0xc1)](_0x59cb89(0x109),_0x3788f0),_0xcbeedf['listen'](0x0,_0x5e7858[_0x59cb89(0x126)],()=>{const _0x34b3b5=_0xcbeedf['address']();_0xcbeedf['close'](_0x41b442=>{const _0x2fb6a1=_0x2275;if(_0x41b442){_0x116412['GINKM'](_0x3788f0,_0x41b442);return;}if(typeof _0x34b3b5===_0x116412[_0x2fb6a1(0xd3)]&&_0x34b3b5?.[_0x2fb6a1(0xb8)]){_0x116412[_0x2fb6a1(0xb3)](_0x212f65,_0x34b3b5['port']);return;}_0x116412[_0x2fb6a1(0xb3)](_0x3788f0,new Error(_0x116412['fmksg']));});});});}async function waitForProcessExit(_0x401f81,_0x5ea1f7){const _0x1e6071=_0x3b36f0,_0x164b76={'GDjFV':function(_0x315f80){return _0x315f80();},'DaCwo':function(_0x3882ec){return _0x3882ec();},'eSDTX':function(_0x168fb8,_0x4482f4){return _0x168fb8(_0x4482f4);},'KXZGg':function(_0x148a69,_0x4b04f9){return _0x148a69(_0x4b04f9);},'sBjel':function(_0x429651,_0x3c480a,_0x1447bf){return _0x429651(_0x3c480a,_0x1447bf);},'pRpyT':'exit','QARHN':function(_0x1dad2f,_0x273b7b){return _0x1dad2f!==_0x273b7b;}};if(_0x164b76['QARHN'](_0x401f81[_0x1e6071(0x7b)],null))return!![];return new Promise(_0x2848ce=>{const _0xaa9a13=_0x1e6071,_0x9d7424=_0x164b76['sBjel'](setTimeout,()=>{_0x164b76['GDjFV'](_0x1df894),_0x2848ce(![]);},_0x5ea1f7),_0x20422b=()=>{const _0xf6dc8c=_0x2275;_0x164b76[_0xf6dc8c(0xef)](_0x1df894),_0x164b76[_0xf6dc8c(0x123)](_0x2848ce,!![]);},_0x1df894=()=>{const _0xd7c23c=_0x2275;_0x164b76[_0xd7c23c(0x122)](clearTimeout,_0x9d7424),_0x401f81['off']('exit',_0x20422b);};_0x401f81[_0xaa9a13(0xc1)](_0x164b76[_0xaa9a13(0xa2)],_0x20422b);});}async function delay(_0x4b5db7){await new Promise(_0x1ece4a=>setTimeout(_0x1ece4a,_0x4b5db7));}async function ensureChromeProfileShape(_0x200512,_0x296ed2){const _0x10cd9e=_0x3b36f0,_0x20e4f1={'fNWyb':function(_0x38af1e,_0x1acd20,_0x54004f){return _0x38af1e(_0x1acd20,_0x54004f);},'rYSTE':function(_0x16f599,_0x8beb4){return _0x16f599(_0x8beb4);},'kCQDt':_0x10cd9e(0x92)};await _0x20e4f1['fNWyb'](mkdir,_0x296ed2,{'recursive':!![]}),await _0x20e4f1['rYSTE'](ensureJsonFile,join(_0x200512,_0x20e4f1[_0x10cd9e(0xbf)])),await _0x20e4f1[_0x10cd9e(0xa9)](ensureJsonFile,join(_0x296ed2,'Preferences'));}async function ensureJsonFile(_0x3a7adb){const _0x5d3ec6=_0x3b36f0,_0x351811={'KIJUq':function(_0x199975,_0x242c24,_0x418629,_0xdcca43){return _0x199975(_0x242c24,_0x418629,_0xdcca43);}};try{await access(_0x3a7adb);}catch{await _0x351811[_0x5d3ec6(0x112)](writeFile,_0x3a7adb,'{}',_0x5d3ec6(0x10f));}}export function previewNovaActCliCommand(_0x40267f){const _0x9fcd5f=_0x3b36f0,_0x37afbb={'GuxoB':function(_0x14607e,_0x56b79f){return _0x14607e(_0x56b79f);}};return _0x37afbb[_0x9fcd5f(0x88)](truncatePreview,_0x40267f);}
|
|
1
|
+
const _0x343f53=_0x3b20;(function(_0x122086,_0x52220c){const _0x1a2305=_0x3b20,_0x1eb484=_0x122086();while(!![]){try{const _0x280e4f=-parseInt(_0x1a2305(0x136))/0x1+parseInt(_0x1a2305(0x9a))/0x2*(parseInt(_0x1a2305(0xb9))/0x3)+parseInt(_0x1a2305(0x10d))/0x4*(-parseInt(_0x1a2305(0xde))/0x5)+parseInt(_0x1a2305(0x103))/0x6+-parseInt(_0x1a2305(0x11b))/0x7*(-parseInt(_0x1a2305(0x127))/0x8)+parseInt(_0x1a2305(0xa4))/0x9+parseInt(_0x1a2305(0x164))/0xa*(-parseInt(_0x1a2305(0xa6))/0xb);if(_0x280e4f===_0x52220c)break;else _0x1eb484['push'](_0x1eb484['shift']());}catch(_0x1d12ee){_0x1eb484['push'](_0x1eb484['shift']());}}}(_0x2f40,0x90655));import{spawn}from'child_process';import{createHash}from'crypto';import{access,chmod,mkdir,readFile,readdir,stat,writeFile}from'fs/promises';import{createServer}from'net';import{delimiter,dirname,isAbsolute,join}from'path';import{homedir}from'os';import{chromium}from'playwright';import{quoteShellArg}from'./playwrightCli.js';export const NOVA_ACT_CLI_BINARY=_0x343f53(0xfb);export const NOVA_ACT_CLI_UV_PACKAGE='nova-act[cli]';const NOVA_ACT_CLI_PREVIEW_LIMIT=0xf0,NOVA_ACT_BOOTSTRAP_TIMEOUT_MS=0x2bf20,NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS=0x3a98,NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS=0x7*0x18*0x3c*0x3c;export function toNovaActCliSessionId(_0x12efde){const _0x3c2ece=_0x343f53,_0x283fbb={'XEaoU':function(_0x6200ed,_0x51ee7e){return _0x6200ed(_0x51ee7e);},'qxlVt':_0x3c2ece(0x9b)},_0x29d409=_0x283fbb['XEaoU'](createHash,_0x283fbb['qxlVt'])[_0x3c2ece(0xe7)](_0x12efde)['digest'](_0x3c2ece(0x145))['slice'](0x0,0xc);return _0x3c2ece(0xc4)+_0x29d409;}export async function inspectNovaStorageStateFile(_0x414943){const _0x5a6970=_0x343f53,_0x2678a0={'QmjqV':function(_0x145436,_0x9ff2bc,_0x45f87d){return _0x145436(_0x9ff2bc,_0x45f87d);},'nFyID':function(_0x143468,_0x59cb6f){return _0x143468(_0x59cb6f);},'KBBCq':function(_0x53f51f,_0x1ed969){return _0x53f51f instanceof _0x1ed969;},'WgDyG':function(_0x132fc7,_0x48b4f7){return _0x132fc7(_0x48b4f7);}};try{const [_0x39b47e,_0x1e5e64]=await Promise[_0x5a6970(0x10f)]([stat(_0x414943),_0x2678a0[_0x5a6970(0x105)](readFile,_0x414943,'utf-8')]),_0x547cc2={'path':_0x414943,'exists':!![],'byteLength':Buffer[_0x5a6970(0x102)](_0x1e5e64),'sha256':_0x2678a0['nFyID'](createHash,_0x5a6970(0x9b))['update'](_0x1e5e64)[_0x5a6970(0x12b)](_0x5a6970(0x145))};try{const _0x518b5d=JSON['parse'](_0x1e5e64),_0x2d7796=_0x518b5d[_0x5a6970(0x13a)]??[],_0x5336a7=Math[_0x5a6970(0x118)](Date['now']()/0x3e8),_0x5d6d49=new Map();for(const _0x41111b of _0x2d7796){const _0x33b410=_0x5d6d49['get'](_0x41111b[_0x5a6970(0x9e)])??[];_0x33b410['push'](_0x41111b['name']),_0x5d6d49['set'](_0x41111b[_0x5a6970(0x9e)],_0x33b410);}return{..._0x547cc2,'byteLength':_0x39b47e[_0x5a6970(0xf5)],'cookieCount':_0x2d7796['length'],'cookieDomains':[..._0x5d6d49[_0x5a6970(0xfa)]()]['sort'](([_0x16700b],[_0x2647e4])=>_0x16700b[_0x5a6970(0xf7)](_0x2647e4))['map'](([_0x1d24cf,_0x29a7fd])=>({'domain':_0x1d24cf,'count':_0x29a7fd[_0x5a6970(0xa1)],'names':_0x29a7fd[_0x5a6970(0xd2)]()[_0x5a6970(0xb1)](0x0,0x19)})),'httpOnlyCookieCount':_0x2d7796['filter'](_0xdb1ec4=>_0xdb1ec4['httpOnly'])[_0x5a6970(0xa1)],'secureCookieCount':_0x2d7796[_0x5a6970(0x154)](_0x28c7ee=>_0x28c7ee[_0x5a6970(0x15b)])[_0x5a6970(0xa1)],'sessionCookieCount':_0x2d7796[_0x5a6970(0x154)](_0x11cd87=>_0x11cd87[_0x5a6970(0x119)]===-0x1)['length'],'expiredCookieCount':_0x2d7796['filter'](_0x3278e0=>typeof _0x3278e0['expires']==='number'&&_0x3278e0['expires']>0x0&&_0x3278e0[_0x5a6970(0x119)]<_0x5336a7)['length'],'originCount':_0x518b5d[_0x5a6970(0x152)]?.['length']??0x0,'origins':(_0x518b5d[_0x5a6970(0x152)]??[])[_0x5a6970(0xfe)](_0x2e5b29=>({'origin':_0x2e5b29['origin'],'localStorageCount':_0x2e5b29[_0x5a6970(0xa5)]?.['length']??0x0,'localStorageKeys':_0x2e5b29['localStorage']?.['map'](_0x4bb56d=>_0x4bb56d['name'])['sort']()[_0x5a6970(0xb1)](0x0,0x19)??[]}))};}catch(_0x5d12cb){return{..._0x547cc2,'byteLength':_0x39b47e[_0x5a6970(0xf5)],'parseError':_0x5d12cb instanceof Error?_0x5d12cb[_0x5a6970(0xc7)]:_0x2678a0[_0x5a6970(0x10b)](String,_0x5d12cb)};}}catch(_0x3bbd18){return{'path':_0x414943,'exists':![],'readError':_0x2678a0[_0x5a6970(0x99)](_0x3bbd18,Error)?_0x3bbd18['message']:_0x2678a0[_0x5a6970(0xa9)](String,_0x3bbd18)};}}export async function inspectNovaProfileFiles(_0x370aa1){const _0x2d9a03=_0x343f53,_0x40a640={'dCLZV':function(_0x149df5,_0x5b5899,_0x41fa21){return _0x149df5(_0x5b5899,_0x41fa21);},'iYajb':'Preferences','Xxxlp':function(_0x43be60,_0x1f3e5e,_0x5038ea){return _0x43be60(_0x1f3e5e,_0x5038ea);},'tGDno':_0x2d9a03(0x100),'FEqbH':function(_0x28b9c3,_0x250100,_0x543c43,_0x1d4a23){return _0x28b9c3(_0x250100,_0x543c43,_0x1d4a23);},'fNrju':_0x2d9a03(0x139),'gsXKi':'Local\x20Storage','Iicpa':function(_0x170efb,_0x51d43d){return _0x170efb(_0x51d43d);},'cwsNq':function(_0x510622,_0x5da634){return _0x510622(_0x5da634);},'eQjEl':function(_0x56db12,_0x305a30){return _0x56db12(_0x305a30);}},_0x2d87e7=_0x40a640['dCLZV'](join,_0x370aa1['userDataDir'],_0x2d9a03(0xd4)),_0x5ad599=join(_0x370aa1['browserProfilePath'],_0x40a640[_0x2d9a03(0xf2)]),_0x29c9ee=_0x40a640['Xxxlp'](join,_0x370aa1[_0x2d9a03(0x14c)],_0x40a640[_0x2d9a03(0xc3)]),_0x2f4362=_0x40a640[_0x2d9a03(0x124)](join,_0x370aa1['browserProfilePath'],_0x40a640[_0x2d9a03(0x148)],'Cookies'),_0x133817=join(_0x370aa1[_0x2d9a03(0x14c)],_0x40a640['gsXKi']),_0x4099b8=_0x40a640['dCLZV'](join,_0x133817,'leveldb'),[_0x145878,_0xedeb12,_0x3d09c9,_0x102b38,_0xfdd839,_0xf9771d,_0x22dd3f,_0x2a859b,_0x109b58,_0x38ac5c,_0x456e15]=await Promise[_0x2d9a03(0x10f)]([_0x40a640[_0x2d9a03(0x160)](inspectPath,_0x370aa1[_0x2d9a03(0x132)]),_0x40a640['Iicpa'](inspectPath,_0x370aa1['browserProfilePath']),inspectPath(_0x2d87e7),_0x40a640[_0x2d9a03(0x140)](inspectPath,_0x5ad599),inspectPath(_0x29c9ee),inspectPath(_0x2f4362),_0x40a640['cwsNq'](inspectPath,_0x133817),_0x40a640['eQjEl'](inspectPath,_0x4099b8),_0x40a640['Iicpa'](listDir,_0x370aa1['userDataDir']),listDir(_0x370aa1[_0x2d9a03(0x14c)]),listDir(_0x4099b8)]);return{'userDataDir':_0x370aa1[_0x2d9a03(0x132)],'browserProfilePath':_0x370aa1[_0x2d9a03(0x14c)],'rootEntries':_0x109b58,'defaultEntries':_0x38ac5c,'localStorageEntries':_0x456e15,'paths':{'userDataDir':_0x145878,'browserProfilePath':_0xedeb12,'localState':_0x3d09c9,'preferences':_0x102b38,'cookies':_0xfdd839,'networkCookies':_0xf9771d,'localStorage':_0x22dd3f,'levelDb':_0x2a859b}};}async function inspectPath(_0x1d0a34){const _0x28fa19=_0x343f53,_0x5797c7={'HyVSs':function(_0xac3df9,_0xc55114){return _0xac3df9(_0xc55114);}};try{const _0x45a881=await _0x5797c7[_0x28fa19(0x104)](stat,_0x1d0a34);return{'path':_0x1d0a34,'exists':!![],'isDirectory':_0x45a881['isDirectory'](),'byteLength':_0x45a881['isFile']()?_0x45a881['size']:undefined,'mtimeMs':_0x45a881[_0x28fa19(0x112)]};}catch(_0x1bf3e0){return{'path':_0x1d0a34,'exists':![],'error':_0x1bf3e0 instanceof Error?_0x1bf3e0[_0x28fa19(0xc7)]:String(_0x1bf3e0)};}}async function listDir(_0x23e367){const _0x575dcb=_0x343f53;try{return(await readdir(_0x23e367))['sort']()[_0x575dcb(0xb1)](0x0,0x32);}catch{return undefined;}}function truncatePreview(_0x304bc6,_0x3fc931=NOVA_ACT_CLI_PREVIEW_LIMIT){const _0x30588d=_0x343f53,_0x3dd35f={'KITVW':function(_0x39a6fc,_0x31bbfd){return _0x39a6fc+_0x31bbfd;}};return _0x304bc6['length']>_0x3fc931?_0x3dd35f[_0x30588d(0xe6)](_0x304bc6['slice'](0x0,_0x3fc931),_0x30588d(0x14f)):_0x304bc6;}function truncateOutput(_0x1e0712,_0x11b704=0x7d0){const _0x19c0c8=_0x343f53,_0x2f4a91={'OuVue':function(_0x5a9943,_0x4a4e1d){return _0x5a9943+_0x4a4e1d;}};return _0x1e0712['length']>_0x11b704?_0x2f4a91[_0x19c0c8(0xc8)](_0x1e0712[_0x19c0c8(0xb1)](0x0,_0x11b704),'...'):_0x1e0712;}function _0x2f40(){const _0xfb5a24=['stdout','WvVJo','browserProfilePath','For\x20AWS\x20SSO,\x20set\x20AWS_PROFILE\x20and\x20run:\x20aws\x20sso\x20login\x20--profile\x20<profile>','join','...','newPage','nnyXu','origins','MrlwI','filter','AWS_PROFILE','Timed\x20out\x20waiting\x20for\x20hydration\x20browser\x20CDP','--browser-profile-path','Installed\x20','svxJP','qBPaO','secure','SIGTERM','cwd','domcontentloaded','CWoZb','Iicpa','fix','zHbKD','address','2396910UIWWLm','vaTXI','KBBCq','92212lLZFdv','sha256','vbZuD','nova-act-browser','domain','add','stderr:\x20','length','object','trim','2483154gEScIQ','localStorage','33zYTglc','PATH','find','WgDyG','--no-first-run','executablePath','--headless=new','#!/usr/bin/env\x20bash\x0aset\x20-euo\x20pipefail\x0aif\x20[[\x20\x22${1:-}\x22\x20==\x20\x22session\x22\x20&&\x20(\x20\x22${2:-}\x22\x20==\x20\x22export\x22\x20||\x20\x22${2:-}\x22\x20==\x20\x22close\x22\x20)\x20]];\x20then\x0a\x20\x20exec\x20','commandArgs','oRLsw','off','slice','joMhC','rJUmJ','export','nova-act-cli\x20transport\x20requires\x20the\x20Nova\x20Act\x20CLI.\x20Ranger\x20could\x20not\x20find\x20`','--user-data-dir=','string','kqhOA','57rwcbxe','wWjBN','FkYNM','iXiRW','code','toString','LObJq','127.0.0.1','\x0astderr:\x20','timed\x20out\x20after\x20','tGDno','rg-','jIRLn','wblGA','message','OuVue','yEVda','listen','tLxXp','some','has','DdlbJ','Default','tFCAS','RZvAw','sort','hgtdV','Local\x20State','log_dir','Ctuvo','error','iXYuX','WcKSa','pkwNs','LHyoL','logDir','storageStatePath','5xUErnD','\x20signal=','IJGtB','timedOut','Nova\x20profile\x20hydration\x20browser\x20did\x20not\x20expose\x20a\x20context','timeoutMs','yqcSg','\x0astdout:\x20','KITVW','update','UV_TOOL_BIN_DIR','--session-id','utf-8','fail','evaluate','TxHtD','sessionId','SIGKILL','data','execute','iYajb','close','qFJTV','size','doctor','localeCompare','RVDNu','value','entries','act','null','signal','map','status','Cookies','--profile-directory=Default','byteLength','4724574rnxSNt','HyVSs','QmjqV','riOwC','name','WesHT','env','NjVEZ','nFyID','session','3559888wDcEeL','cIHHB','all','once','WmybG','mtimeMs','baseUrl','For\x20AWS\x20SSO,\x20run:\x20aws\x20sso\x20login\x20--profile\x20','\x0afi\x0a\x0aexec\x20','logs_dir','connectOverCDP','floor','expires','command','2821553KHFGty','push','MfHhT','EvEXu','parse','eKZGe','kill','setItem','/usr/local/bin','FEqbH','act\x20browser\x20doctor\x20--json\x20timed\x20out','launchArgs','8igOrSD','exited\x20with\x20code=','match','`,\x20and\x20`uv`\x20is\x20not\x20available\x20to\x20install\x20it.\x0aInstall\x20uv,\x20or\x20run:\x20uv\x20tool\x20install\x20\x22','digest','fsXYT','exitCode','bnRND','headless','--headless','\x20browser\x20\x22$@\x22\x20','userDataDir','dRVIk','stdout:\x20','/json/version','141938PbhJQJ','KjwNq','MjEpo','Network','cookies','DQNKc','act\x20browser\x20doctor\x20--json\x20exited\x20with\x20code=','logsDirectory','kbjoA','stderr','cwsNq','ignore','--cdp','ygDxP','browser','hex','ZXewJ','/.local/bin','fNrju','pipe'];_0x2f40=function(){return _0xfb5a24;};return _0x2f40();}function getNovaActCliBinDirs(_0x1c3edf){const _0x3fb571=_0x343f53,_0x5b8691={'fsXYT':function(_0x19240f){return _0x19240f();},'WmkBY':'/opt/homebrew/bin','cYNCS':_0x3fb571(0x123)};return[_0x1c3edf[_0x3fb571(0xe8)],_0x5b8691[_0x3fb571(0x12c)](homedir)+_0x3fb571(0x147),_0x5b8691['WmkBY'],_0x5b8691['cYNCS']]['filter'](_0x83116c=>Boolean(_0x83116c));}function buildPathWithNovaActCliBins(_0x301206){const _0x1ce30f=_0x343f53,_0x201052=new Set(),_0x5af167=[...getNovaActCliBinDirs(_0x301206),...(_0x301206[_0x1ce30f(0xa7)]??'')['split'](delimiter)][_0x1ce30f(0x154)](_0x757198=>{const _0x525397=_0x1ce30f;if(!_0x757198||_0x201052[_0x525397(0xcd)](_0x757198))return![];return _0x201052[_0x525397(0x9f)](_0x757198),!![];});return _0x5af167[_0x1ce30f(0x14e)](delimiter);}export function applyNovaActCliPath(_0x268812){const _0x5529ed=_0x343f53,_0xdf8c88={'iXYuX':function(_0x54baa2,_0x7fa990){return _0x54baa2(_0x7fa990);}};_0x268812[_0x5529ed(0xa7)]=_0xdf8c88[_0x5529ed(0xd8)](buildPathWithNovaActCliBins,_0x268812);}function withNovaActCliPath(_0x188845){const _0x12c549={'PoJgc':function(_0x24ad73,_0x58a067){return _0x24ad73(_0x58a067);}};return{..._0x188845,'PATH':_0x12c549['PoJgc'](buildPathWithNovaActCliBins,_0x188845)};}function runBootstrapCommand(_0x1ebd14){const _0x62582=_0x343f53,_0x153f33={'wWjBN':function(_0x3f149d,_0x420f38,_0x27edc0){return _0x3f149d(_0x420f38,_0x27edc0);},'vaTXI':function(_0x57bf6c,_0x585e39){return _0x57bf6c(_0x585e39);},'HkgGO':function(_0x593818,_0x4e8149){return _0x593818??_0x4e8149;},'NjVEZ':_0x62582(0xfc),'ZXewJ':function(_0x201778,_0x44aa9c,_0x293608,_0x973004){return _0x201778(_0x44aa9c,_0x293608,_0x973004);},'iAwsb':'data','PZhbH':_0x62582(0xd7),'tHKaX':'close'},{command:_0x27f652,args:_0x163d68,env:_0x566c18,timeoutMs:timeoutMs=NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}=_0x1ebd14;return new Promise((_0x370ea6,_0xb108b7)=>{const _0x4cfa17=_0x62582,_0xfb2c8f={'IJGtB':function(_0x29cbc4,_0x3987ac){const _0x51eaeb=_0x3b20;return _0x153f33[_0x51eaeb(0x165)](_0x29cbc4,_0x3987ac);}},_0x594ab3=_0x153f33[_0x4cfa17(0x146)](spawn,_0x27f652,_0x163d68,{'env':_0x566c18,'stdio':[_0x4cfa17(0x141),_0x4cfa17(0x149),_0x4cfa17(0x149)]});let _0x159f62='',_0x31cd9e='',_0x1a50a4=![];const _0x544a6d=setTimeout(()=>{const _0x3264e0=_0x4cfa17,_0x4c54d6={'qFJTV':_0x3264e0(0xef)};_0x1a50a4=!![],_0x594ab3[_0x3264e0(0x121)](_0x3264e0(0x15c)),_0x153f33[_0x3264e0(0xba)](setTimeout,()=>{const _0x4c38d6=_0x3264e0;try{_0x594ab3[_0x4c38d6(0x121)](_0x4c54d6[_0x4c38d6(0xf4)]);}catch{}},0x3e8);},timeoutMs);_0x594ab3[_0x4cfa17(0x14a)]?.['on'](_0x153f33['iAwsb'],_0x1972cf=>{const _0x3328bd=_0x4cfa17;_0x159f62+=_0x1972cf[_0x3328bd(0xbe)]();}),_0x594ab3[_0x4cfa17(0x13f)]?.['on']('data',_0x45a871=>{const _0x5c06e0=_0x4cfa17;_0x31cd9e+=_0x45a871[_0x5c06e0(0xbe)]();}),_0x594ab3['on'](_0x153f33['PZhbH'],_0x21dbdc=>{const _0x136aaa=_0x4cfa17;_0xfb2c8f['IJGtB'](clearTimeout,_0x544a6d),_0xfb2c8f[_0x136aaa(0xe0)](_0xb108b7,_0x21dbdc);}),_0x594ab3['on'](_0x153f33['tHKaX'],(_0x1c50e0,_0x532b37)=>{const _0x2724b1=_0x4cfa17;_0x153f33['vaTXI'](clearTimeout,_0x544a6d);if(_0x1c50e0===0x0){_0x153f33[_0x2724b1(0x165)](_0x370ea6,{'stdout':_0x159f62,'stderr':_0x31cd9e});return;}const _0x20f30e=_0x1a50a4?_0x2724b1(0xc2)+timeoutMs+'ms':_0x2724b1(0x128)+_0x153f33['HkgGO'](_0x1c50e0,_0x153f33['NjVEZ'])+'\x20signal='+_0x153f33['HkgGO'](_0x532b37,_0x153f33[_0x2724b1(0x10a)]);_0xb108b7(new Error(_0x27f652+'\x20'+_0x163d68['join']('\x20')+'\x20'+_0x20f30e+'\x0astdout:\x20'+truncateOutput(_0x159f62)+_0x2724b1(0xc1)+_0x153f33['vaTXI'](truncateOutput,_0x31cd9e)));});});}function runCommandAllowFailure(_0x58e417){const _0x366bee=_0x343f53,_0x4664c8={'pkwNs':function(_0x1fbeaa,_0x2d4634,_0x58d674){return _0x1fbeaa(_0x2d4634,_0x58d674);},'ccWqN':function(_0x7b9bc4,_0x21f366){return _0x7b9bc4(_0x21f366);},'tLxXp':_0x366bee(0x149),'gZvBe':_0x366bee(0xf0),'zhFKj':_0x366bee(0xf3)},{command:_0x2e4b7e,args:_0x101d19,env:_0x1f79a9,timeoutMs:_0x1807c}=_0x58e417;return new Promise((_0x40d53d,_0x581547)=>{const _0x18ea95=_0x366bee,_0x2960af={'cIHHB':_0x18ea95(0xef)},_0x26b191=spawn(_0x2e4b7e,_0x101d19,{'env':_0x1f79a9,'stdio':[_0x18ea95(0x141),_0x4664c8[_0x18ea95(0xcb)],_0x18ea95(0x149)]});let _0x13babe='',_0x407bdc='',_0x2ff97f=![];const _0x559e46=setTimeout(()=>{const _0xc163d6=_0x18ea95;_0x2ff97f=!![],_0x26b191['kill'](_0xc163d6(0x15c)),_0x4664c8[_0xc163d6(0xda)](setTimeout,()=>{const _0x122d99=_0xc163d6;try{_0x26b191[_0x122d99(0x121)](_0x2960af[_0x122d99(0x10e)]);}catch{}},0x3e8);},_0x1807c);_0x26b191['stdout']?.['on'](_0x4664c8['gZvBe'],_0x96bcac=>{const _0x5ce1dc=_0x18ea95;_0x13babe+=_0x96bcac[_0x5ce1dc(0xbe)]();}),_0x26b191[_0x18ea95(0x13f)]?.['on'](_0x18ea95(0xf0),_0x324917=>{const _0x588b5d=_0x18ea95;_0x407bdc+=_0x324917[_0x588b5d(0xbe)]();}),_0x26b191['on'](_0x18ea95(0xd7),_0x2fb85e=>{clearTimeout(_0x559e46),_0x581547(_0x2fb85e);}),_0x26b191['on'](_0x4664c8['zhFKj'],(_0x4b8c73,_0x6b40ce)=>{clearTimeout(_0x559e46),_0x4664c8['ccWqN'](_0x40d53d,{'code':_0x4b8c73,'signal':_0x6b40ce,'stdout':_0x13babe,'stderr':_0x407bdc,'timedOut':_0x2ff97f});});});}async function resolveActPath(_0x6444aa){const _0x31c256={'pcnAs':function(_0x15b334,_0x1ad4c8){return _0x15b334(_0x1ad4c8);},'CIfAo':function(_0x190645,_0x364f4f){return _0x190645(_0x364f4f);}},_0x6e147e=_0x31c256['pcnAs'](isAbsolute,NOVA_ACT_CLI_BINARY)?[NOVA_ACT_CLI_BINARY]:(_0x6444aa['PATH']??'')['split'](delimiter)['filter'](Boolean)['map'](_0x16c612=>join(_0x16c612,NOVA_ACT_CLI_BINARY));for(const _0x3ed129 of _0x6e147e){try{return await _0x31c256['CIfAo'](access,_0x3ed129),_0x3ed129;}catch{}}return null;}async function checkNovaActCli(_0xb5e61d){const _0x136e66={'XBteH':function(_0x3d17b2,_0x659eb5){return _0x3d17b2(_0x659eb5);}};try{return await _0x136e66['XBteH'](runBootstrapCommand,{'command':NOVA_ACT_CLI_BINARY,'args':['browser','--help'],'env':_0xb5e61d,'timeoutMs':0x7530}),await resolveActPath(_0xb5e61d)??NOVA_ACT_CLI_BINARY;}catch{return null;}}export async function ensureNovaActCliInstalled(_0x2bb7a9={}){const _0x4e661a=_0x343f53,_0x2886dc={'bnRND':function(_0x106076,_0x57193e){return _0x106076(_0x57193e);},'yqcSg':'--version','aBOYd':function(_0x592c03,_0x5c1fd1){return _0x592c03 instanceof _0x5c1fd1;},'RZvAw':function(_0x351439,_0x3f498a){return _0x351439(_0x3f498a);},'TaZwN':'tool','nvmxt':'install','TuzkK':function(_0x575d9d,_0x5e3ff1){return _0x575d9d(_0x5e3ff1);}},_0x2a6bfd=withNovaActCliPath(_0x2bb7a9['env']??process[_0x4e661a(0x109)]),_0x6a3557=await checkNovaActCli(_0x2a6bfd);if(_0x6a3557)return{'installed':![],'actPath':_0x6a3557,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':'','stderr':''};try{await _0x2886dc[_0x4e661a(0x12e)](runBootstrapCommand,{'command':'uv','args':[_0x2886dc[_0x4e661a(0xe4)]],'env':_0x2a6bfd,'timeoutMs':0x7530});}catch(_0x5da8ab){throw new Error(_0x4e661a(0xb5)+NOVA_ACT_CLI_BINARY+_0x4e661a(0x12a)+NOVA_ACT_CLI_UV_PACKAGE+'\x22\x0a'+(_0x2886dc['aBOYd'](_0x5da8ab,Error)?_0x5da8ab['message']:_0x2886dc['bnRND'](String,_0x5da8ab)));}const _0x353114=await _0x2886dc[_0x4e661a(0xd1)](runBootstrapCommand,{'command':'uv','args':[_0x2886dc['TaZwN'],_0x2886dc['nvmxt'],NOVA_ACT_CLI_UV_PACKAGE],'env':_0x2a6bfd,'timeoutMs':_0x2bb7a9[_0x4e661a(0xe3)]??NOVA_ACT_BOOTSTRAP_TIMEOUT_MS}),_0x49e189=await _0x2886dc['bnRND'](checkNovaActCli,_0x2a6bfd);if(!_0x49e189)throw new Error(_0x4e661a(0x158)+NOVA_ACT_CLI_UV_PACKAGE+',\x20but\x20`'+NOVA_ACT_CLI_BINARY+'\x20browser\x20--help`\x20is\x20still\x20unavailable.\x20Ensure\x20'+_0x2886dc['TuzkK'](getNovaActCliBinDirs,_0x2a6bfd)['join'](',\x20')+'\x20is\x20on\x20PATH.\x0astdout:\x20'+_0x2886dc['TuzkK'](truncateOutput,_0x353114[_0x4e661a(0x14a)])+'\x0astderr:\x20'+truncateOutput(_0x353114[_0x4e661a(0x13f)]));return{'installed':!![],'actPath':_0x49e189,'uvPackage':NOVA_ACT_CLI_UV_PACKAGE,'stdout':_0x353114['stdout'],'stderr':_0x353114[_0x4e661a(0x13f)]};}function parseNovaActDoctorOutput(_0x55e9bc){const _0x195e75=_0x343f53;try{return JSON[_0x195e75(0x11f)](_0x55e9bc);}catch{return null;}}function _0x3b20(_0x1d3e0e,_0x56c0c5){_0x1d3e0e=_0x1d3e0e-0x99;const _0x2f40ec=_0x2f40();let _0x3b2052=_0x2f40ec[_0x1d3e0e];return _0x3b2052;}function buildNovaActCliPreflightError(_0x153faf){const _0x5045df=_0x343f53,_0xbcfcc7={'dRVIk':function(_0x1cc5dd,_0x845ecf){return _0x1cc5dd>_0x845ecf;},'ygDxP':function(_0x53b04e,_0x2740ef){return _0x53b04e(_0x2740ef);},'LuZCL':'Configure\x20Nova\x20Act\x20with\x20NOVA_ACT_API_KEY,\x20run\x20act\x20browser\x20setup\x20--api-key\x20<key>,\x20or\x20configure\x20AWS\x20credentials.'},{checks:_0xbc23b5,stdout:_0x53e6c0,stderr:_0x5eff3b,env:_0x556eed,code:_0x206451,signal:_0x184423,timedOut:_0x33af9b}=_0x153faf,_0x13b3a6=_0xbc23b5[_0x5045df(0x154)](_0x1d2db8=>_0x1d2db8['status']===_0x5045df(0xeb)),_0x190117=_0xbcfcc7[_0x5045df(0x133)](_0x13b3a6[_0x5045df(0xa1)],0x0)?_0x13b3a6[_0x5045df(0xfe)](_0xb60a97=>{const _0x2d404e=_0x5045df,_0x564f03=_0xb60a97[_0x2d404e(0x161)]?'\x20Fix:\x20'+_0xb60a97[_0x2d404e(0x161)]:'';return'-\x20'+_0xb60a97[_0x2d404e(0x107)]+':\x20'+_0xb60a97[_0x2d404e(0xc7)]+'.'+_0x564f03;})['join']('\x0a'):[_0x33af9b?_0x5045df(0x125):_0x5045df(0x13c)+(_0x206451??'null')+'\x20signal='+(_0x184423??_0x5045df(0xfc)),_0x53e6c0?_0x5045df(0x134)+truncateOutput(_0x53e6c0):'',_0x5eff3b?_0x5045df(0xa0)+_0xbcfcc7[_0x5045df(0x143)](truncateOutput,_0x5eff3b):'']['filter'](Boolean)['join']('\x0a'),_0x1e001a=_0x556eed[_0x5045df(0x155)]?.[_0x5045df(0xa3)](),_0x2bc243=_0x1e001a?_0x5045df(0x114)+_0x1e001a:_0x5045df(0x14d);return new Error(['Nova\x20Act\x20CLI\x20preflight\x20failed,\x20so\x20Ranger\x20did\x20not\x20start\x20a\x20browser\x20session.',_0x190117,_0xbcfcc7['LuZCL'],_0x2bc243][_0x5045df(0x14e)]('\x0a'));}export async function preflightNovaActCli(_0x403c8a={}){const _0x5704c8=_0x343f53,_0x4c2b86={'YwEro':function(_0x1d8aaa,_0x4dd315){return _0x1d8aaa(_0x4dd315);},'LObJq':_0x5704c8(0x144),'OaUVd':_0x5704c8(0xf6),'TxHtD':'--json'},_0x48ade4=_0x4c2b86['YwEro'](withNovaActCliPath,_0x403c8a[_0x5704c8(0x109)]??process[_0x5704c8(0x109)]),_0x34602b=await runCommandAllowFailure({'command':NOVA_ACT_CLI_BINARY,'args':[_0x4c2b86[_0x5704c8(0xbf)],_0x4c2b86['OaUVd'],_0x4c2b86[_0x5704c8(0xed)]],'env':_0x48ade4,'timeoutMs':_0x403c8a['timeoutMs']??0x7530}),_0x281d48=parseNovaActDoctorOutput(_0x34602b['stdout']),_0x275752=_0x281d48?.['data']?.['checks']??[],_0x4221dd=_0x275752[_0x5704c8(0xcc)](_0x1ce249=>_0x1ce249[_0x5704c8(0xff)]==='fail');if(_0x34602b[_0x5704c8(0xbd)]!==0x0||_0x34602b['timedOut']||_0x4221dd)throw buildNovaActCliPreflightError({'checks':_0x275752,'stdout':_0x34602b[_0x5704c8(0x14a)],'stderr':_0x34602b['stderr'],'env':_0x48ade4,'code':_0x34602b['code'],'signal':_0x34602b[_0x5704c8(0xfd)],'timedOut':_0x34602b[_0x5704c8(0xe1)]});return{'checks':_0x275752,'logDir':_0x281d48?.[_0x5704c8(0xd5)]??_0x281d48?.[_0x5704c8(0xdc)]};}function getNovaActCliSubcommand(_0x20f0cb){const _0x4a5e4c=_0x343f53,_0x1bec4a={'lnZvV':function(_0x2a9e14,_0x703b0){return _0x2a9e14===_0x703b0;},'MjEpo':_0x4a5e4c(0x10c)},[_0x6bef67='unknown',_0x2466ea]=_0x20f0cb;return _0x1bec4a['lnZvV'](_0x6bef67,_0x1bec4a[_0x4a5e4c(0x138)])&&_0x2466ea?_0x6bef67+'\x20'+_0x2466ea:_0x6bef67;}function supportsBrowserSessionOptions(_0x30a13b){const _0x27cebe=_0x343f53,_0x11bfd5={'jIRLn':function(_0x11d164,_0x532dc8){return _0x11d164===_0x532dc8;}};return!(_0x30a13b[0x0]===_0x27cebe(0x10c)&&(_0x30a13b[0x1]==='export'||_0x11bfd5[_0x27cebe(0xc5)](_0x30a13b[0x1],'close')));}function buildSharedArgs(_0x31dbab,_0x571598){const _0x475298=_0x343f53,_0x516d2e={'EvEXu':function(_0x41bcf6,_0xf9000f){return _0x41bcf6(_0xf9000f);},'EHUDg':'--quiet','Tmaeq':'--headed','LHyoL':'--executable-path'},_0x2e760e=[_0x475298(0xe9),_0x31dbab[_0x475298(0xee)],'--json'];if(_0x516d2e[_0x475298(0x11e)](supportsBrowserSessionOptions,_0x571598)){_0x2e760e[_0x475298(0x11c)](_0x516d2e['EHUDg']),_0x2e760e[_0x475298(0x11c)](_0x31dbab[_0x475298(0x12f)]?_0x475298(0x130):_0x516d2e['Tmaeq']);_0x31dbab[_0x475298(0x14c)]&&_0x2e760e['push'](_0x475298(0x157),_0x31dbab[_0x475298(0x14c)]);_0x31dbab['executablePath']&&_0x2e760e[_0x475298(0x11c)](_0x516d2e[_0x475298(0xdb)],_0x31dbab[_0x475298(0xab)]);_0x31dbab['cdpEndpoint']&&_0x2e760e[_0x475298(0x11c)](_0x475298(0x142),_0x31dbab['cdpEndpoint']);for(const _0x407b71 of _0x31dbab[_0x475298(0x126)]??[]){_0x2e760e['push']('--launch-arg='+_0x407b71);}}return _0x2e760e;}export function buildNovaActCliInvocation(_0x27a8f0,_0x1b206f){const _0x323234=_0x343f53,_0x463c22={'rJUmJ':'browser','XlHGK':function(_0x26d0e8,_0x1ba2dd){return _0x26d0e8(_0x1ba2dd);}},_0x222689=buildSharedArgs(_0x27a8f0,_0x1b206f),_0x4db90b=[_0x463c22[_0x323234(0xb3)],..._0x1b206f,..._0x222689];return{'command':NOVA_ACT_CLI_BINARY,'args':_0x4db90b,'shellCommand':[NOVA_ACT_CLI_BINARY,'browser',..._0x1b206f[_0x323234(0xfe)](quoteShellArg),..._0x222689[_0x323234(0xfe)](quoteShellArg)][_0x323234(0x14e)]('\x20'),'subcommand':_0x463c22['XlHGK'](getNovaActCliSubcommand,_0x1b206f)};}export function buildNovaActCliCommandPrefix(){return NOVA_ACT_CLI_BINARY+'\x20browser';}export function buildNovaActCliBrowserWrapperPath(_0x55a0d0){const _0xea1953=_0x343f53,_0x41138e={'AhMpZ':function(_0x240f8e,_0x3b94e3){return _0x240f8e(_0x3b94e3);},'FkYNM':_0xea1953(0x9d)};return join(_0x41138e['AhMpZ'](dirname,_0x55a0d0[_0xea1953(0x132)]),_0x41138e[_0xea1953(0xbb)]);}export async function writeNovaActCliBrowserWrapper(_0x4776f5){const _0x10c379=_0x343f53,_0x4a8adb={'dWOag':function(_0x325f53,_0x52371d){return _0x325f53(_0x52371d);},'tdFNE':function(_0x44a595,_0x1344dd){return _0x44a595(_0x1344dd);},'iylBf':'utf-8','WmybG':function(_0x10940e,_0x1ddcc5,_0x10792d){return _0x10940e(_0x1ddcc5,_0x10792d);}},_0x199e9e=_0x4776f5['browserCommandPath']??buildNovaActCliBrowserWrapperPath(_0x4776f5),_0x15798b=buildSharedArgs(_0x4776f5,['execute'])['map'](quoteShellArg)[_0x10c379(0x14e)]('\x20'),_0x3e5dd9=buildSharedArgs(_0x4776f5,[_0x10c379(0x10c),_0x10c379(0xb4)])['map'](quoteShellArg)[_0x10c379(0x14e)]('\x20');return await mkdir(_0x4a8adb['dWOag'](dirname,_0x199e9e),{'recursive':!![]}),await mkdir(_0x4776f5[_0x10c379(0x132)],{'recursive':!![]}),await writeFile(_0x199e9e,_0x10c379(0xad)+_0x4a8adb['tdFNE'](quoteShellArg,NOVA_ACT_CLI_BINARY)+'\x20browser\x20\x22$@\x22\x20'+_0x3e5dd9+_0x10c379(0x115)+_0x4a8adb['tdFNE'](quoteShellArg,NOVA_ACT_CLI_BINARY)+_0x10c379(0x131)+_0x15798b+'\x0a',_0x4a8adb['iylBf']),await _0x4a8adb[_0x10c379(0x111)](chmod,_0x199e9e,0x1ed),_0x199e9e;}export function buildNovaActCliSharedOptionsSuffix(_0x2bb370,_0x3c2ffc=[_0x343f53(0xf1)]){const _0x53483e=_0x343f53;return buildSharedArgs(_0x2bb370,_0x3c2ffc)[_0x53483e(0xfe)](quoteShellArg)[_0x53483e(0x14e)]('\x20');}export async function runNovaActCliCommand(_0x1155ce){const _0x3424f0=_0x343f53,_0x602e32={'tFCAS':_0x3424f0(0x15c),'ACCvu':function(_0x11aaaf,_0x3fa9a6){return _0x11aaaf(_0x3fa9a6);},'CWoZb':function(_0x56ad3e,_0xd75704){return _0x56ad3e??_0xd75704;},'fbVWJ':'null','WesHT':function(_0xddfa1e,_0x4eedeb,_0x3c07ef,_0x48c4b0){return _0xddfa1e(_0x4eedeb,_0x3c07ef,_0x48c4b0);},'CQTYS':_0x3424f0(0x141),'vbZuD':'pipe','qBPaO':function(_0x2f0323,_0x2b2d00,_0x5b8edf){return _0x2f0323(_0x2b2d00,_0x5b8edf);},'vEjoQ':'data','yEVda':_0x3424f0(0xf3),'eKZGe':function(_0x98f672,_0x2fa3a8,_0x5005d1){return _0x98f672(_0x2fa3a8,_0x5005d1);}};await mkdir(_0x1155ce['userDataDir'],{'recursive':!![]});const _0x332d58=_0x602e32[_0x3424f0(0x120)](buildNovaActCliInvocation,_0x1155ce,_0x1155ce[_0x3424f0(0xae)]);return new Promise((_0x5c3f18,_0x5f03ea)=>{const _0x3316f3=_0x3424f0,_0x13360b={'DdlbJ':_0x602e32[_0x3316f3(0xd0)],'Ctuvo':function(_0x38e50b,_0x56a330){return _0x602e32['ACCvu'](_0x38e50b,_0x56a330);},'SyhXS':function(_0x10fee3,_0x553c63){const _0x4b5579=_0x3316f3;return _0x602e32[_0x4b5579(0x15f)](_0x10fee3,_0x553c63);},'KiHGn':_0x602e32['fbVWJ']},_0x7f8dbf=_0x602e32[_0x3316f3(0x108)](spawn,_0x332d58[_0x3316f3(0x11a)],_0x332d58['args'],{'cwd':_0x1155ce[_0x3316f3(0x15d)],'env':_0x1155ce['env'],'stdio':[_0x602e32['CQTYS'],_0x602e32['vbZuD'],_0x602e32[_0x3316f3(0x9c)]]});let _0x1602b2='',_0x395971='',_0xd198a2=![];const _0x2d93ce=_0x1155ce[_0x3316f3(0xe3)]&&_0x1155ce['timeoutMs']>0x0?_0x602e32[_0x3316f3(0x15a)](setTimeout,()=>{const _0x575590=_0x3316f3;_0xd198a2=!![],_0x7f8dbf[_0x575590(0x121)](_0x13360b[_0x575590(0xce)]),setTimeout(()=>{const _0x4f25d3=_0x575590;try{_0x7f8dbf[_0x4f25d3(0x121)](_0x4f25d3(0xef));}catch{}},0x3e8);},_0x1155ce[_0x3316f3(0xe3)]):null;_0x7f8dbf[_0x3316f3(0x14a)]?.['on'](_0x602e32['vEjoQ'],_0x4c84c1=>{const _0x552113=_0x3316f3;_0x1602b2+=_0x4c84c1[_0x552113(0xbe)]();}),_0x7f8dbf[_0x3316f3(0x13f)]?.['on']('data',_0x5654b3=>{_0x395971+=_0x5654b3['toString']();}),_0x7f8dbf['on'](_0x3316f3(0xd7),_0xe89ebf=>{if(_0x2d93ce)_0x13360b['Ctuvo'](clearTimeout,_0x2d93ce);_0x5f03ea(_0xe89ebf);}),_0x7f8dbf['on'](_0x602e32[_0x3316f3(0xc9)],(_0x1593ce,_0x4c9447)=>{const _0x4c61a6=_0x3316f3;if(_0x2d93ce)_0x13360b[_0x4c61a6(0xd6)](clearTimeout,_0x2d93ce);if(_0x1593ce===0x0){_0x5c3f18({'stdout':_0x1602b2,'stderr':_0x395971,'invocation':_0x332d58});return;}const _0x4f844f=_0xd198a2?'timed\x20out\x20after\x20'+_0x1155ce[_0x4c61a6(0xe3)]+'ms':_0x4c61a6(0x128)+_0x13360b['SyhXS'](_0x1593ce,_0x4c61a6(0xfc))+_0x4c61a6(0xdf)+_0x13360b['SyhXS'](_0x4c9447,_0x13360b['KiHGn']);_0x13360b['Ctuvo'](_0x5f03ea,new Error('nova-act-cli\x20'+_0x332d58['subcommand']+'\x20'+_0x4f844f+_0x4c61a6(0xe5)+truncateOutput(_0x1602b2)+'\x0astderr:\x20'+truncateOutput(_0x395971)));});});}export function parseNovaActCliCommand(_0x1c469e){const _0x4667a2=_0x343f53,_0x35a1f0=_0x1c469e[_0x4667a2(0x129)](/(?:^|\s)(?:(?:"[^"]*\/act"|'[^']*\/act'|\S*\/act|act)\s+browser|(?:"[^"]*\/nova-act-browser"|'[^']*\/nova-act-browser'|\S*\/nova-act-browser|nova-act-browser))\s+(session\s+[a-z-]+|[a-z][a-z-]*)\b/);return _0x35a1f0?.[0x1]??null;}export function extractNovaActLogDir(_0x1a57b7){const _0x25ad91=_0x343f53;try{const _0x45e7b2=JSON[_0x25ad91(0x11f)](_0x1a57b7),_0x2d6e74=[_0x45e7b2['logs_directory'],_0x45e7b2[_0x25ad91(0x13d)],_0x45e7b2[_0x25ad91(0x116)],_0x45e7b2['logDir'],_0x45e7b2[_0x25ad91(0xd5)]],_0x1c1379=_0x2d6e74[_0x25ad91(0xa8)](_0x4dda92=>typeof _0x4dda92==='string'&&_0x4dda92[_0x25ad91(0xa3)]()['length']>0x0);if(_0x1c1379)return _0x1c1379;}catch{}const _0x5cc989=_0x1a57b7['match'](/(?:logs_directory|logsDirectory|log_dir|logDir|logs dir|logs directory)[:=]\s*["']?([^\s"',}]+)/i);return _0x5cc989?.[0x1]??null;}export async function loadNovaActSessionExport(_0x569b18){const _0x27fc9b=_0x343f53;try{return JSON['parse'](await readFile(_0x569b18,_0x27fc9b(0xea)));}catch{return null;}}export async function hydrateNovaProfileFromStorageState(_0x117207){const _0x5b592f=_0x343f53,_0x3f448f={'zHbKD':function(_0x343621,_0x547a6e){return _0x343621!==_0x547a6e;},'svxJP':function(_0x4c403a,_0x538846){return _0x4c403a+_0x538846;},'joMhC':function(_0x1dbbf1,_0x106b51){return _0x1dbbf1/_0x106b51;},'WcKSa':function(_0x584f9b,_0x32b537,_0x5d7a79){return _0x584f9b(_0x32b537,_0x5d7a79);},'MrlwI':function(_0x22a3e9,_0x484346){return _0x22a3e9(_0x484346);},'iXiRW':function(_0x3d10c0,_0x5d36d8){return _0x3d10c0(_0x5d36d8);},'riOwC':_0x5b592f(0xe2),'MfHhT':function(_0x3e127d,_0x3f04e,_0x472a53){return _0x3e127d(_0x3f04e,_0x472a53);}},_0x405818=JSON[_0x5b592f(0x11f)](await _0x3f448f[_0x5b592f(0xd9)](readFile,_0x117207['storageStatePath'],'utf-8')),_0x5ed7d5=await _0x3f448f[_0x5b592f(0x153)](inspectNovaStorageStateFile,_0x117207[_0x5b592f(0xdd)]);await _0x3f448f['WcKSa'](mkdir,_0x117207[_0x5b592f(0x132)],{'recursive':!![]});const _0x2a3681=join(_0x117207['userDataDir'],_0x5b592f(0xcf)),_0x3c9aaa=await inspectNovaProfileFiles({'userDataDir':_0x117207[_0x5b592f(0x132)],'browserProfilePath':_0x2a3681}),{browser:_0x16f6b9,process:_0x127892}=await _0x3f448f[_0x5b592f(0xbc)](launchNovaHydrationBrowser,{'userDataDir':_0x117207[_0x5b592f(0x132)],'browserProfilePath':_0x2a3681,'executablePath':_0x117207['executablePath'],'headless':_0x117207['headless'],'launchArgs':_0x117207['launchArgs']}),_0x33ff48=_0x16f6b9['contexts']()[0x0];if(!_0x33ff48){await closeNovaHydrationBrowser(_0x16f6b9,_0x127892);throw new Error(_0x3f448f[_0x5b592f(0x106)]);}let _0x9d577d=0x0,_0x26a3e4=0x0;try{const _0x35f9bb=_0x405818[_0x5b592f(0x13a)]??[];if(_0x35f9bb['length']>0x0){const _0x46fbcb=_0x35f9bb['map'](_0x4a4f7e=>{const _0x1106d1=_0x5b592f;if(_0x3f448f[_0x1106d1(0x162)](_0x4a4f7e[_0x1106d1(0x119)],-0x1))return _0x4a4f7e;return _0x26a3e4+=0x1,{..._0x4a4f7e,'expires':_0x3f448f[_0x1106d1(0x159)](Math[_0x1106d1(0x118)](_0x3f448f[_0x1106d1(0xb2)](Date['now'](),0x3e8)),NOVA_PROMOTED_SESSION_COOKIE_TTL_SECONDS)};});await _0x33ff48['addCookies'](_0x46fbcb);}for(const _0x4e3021 of _0x405818[_0x5b592f(0x152)]??[]){if(!_0x4e3021[_0x5b592f(0xa5)]?.['length'])continue;const _0x8870af=await _0x33ff48[_0x5b592f(0x150)]();await _0x8870af['goto'](_0x4e3021['origin'],{'waitUntil':'domcontentloaded','timeout':0x7530}),await _0x8870af[_0x5b592f(0xec)](_0xab8691=>{const _0x2c23bf=_0x5b592f;for(const _0x32f787 of _0xab8691){window[_0x2c23bf(0xa5)][_0x2c23bf(0x122)](_0x32f787[_0x2c23bf(0x107)],_0x32f787[_0x2c23bf(0xf9)]);}},_0x4e3021['localStorage']),_0x9d577d+=_0x4e3021['localStorage']['length'],await _0x8870af[_0x5b592f(0xf3)]();}if(_0x117207[_0x5b592f(0x113)]){const _0x336d59=await _0x33ff48[_0x5b592f(0x150)]();await _0x336d59['goto'](_0x117207[_0x5b592f(0x113)],{'waitUntil':_0x5b592f(0x15e),'timeout':0x7530}),await _0x336d59[_0x5b592f(0xf3)]();}await _0x3f448f[_0x5b592f(0x11d)](ensureChromeProfileShape,_0x117207[_0x5b592f(0x132)],_0x2a3681);}finally{await closeNovaHydrationBrowser(_0x16f6b9,_0x127892);}const _0x59518a=await _0x3f448f['iXiRW'](inspectNovaProfileFiles,{'userDataDir':_0x117207[_0x5b592f(0x132)],'browserProfilePath':_0x2a3681});return{'browserProfilePath':_0x2a3681,'cookieCount':_0x405818[_0x5b592f(0x13a)]?.['length']??0x0,'promotedSessionCookieCount':_0x26a3e4,'originCount':_0x405818['origins']?.['length']??0x0,'localStorageEntryCount':_0x9d577d,'storageStateDiagnostics':_0x5ed7d5,'profileBefore':_0x3c9aaa,'profileAfter':_0x59518a};}async function launchNovaHydrationBrowser(_0x210e58){const _0x4e1752=_0x343f53,_0x5684f8={'KjwNq':function(_0x389545){return _0x389545();},'QOhdB':'--window-size=1280,720','vzaBJ':_0x4e1752(0xac),'kqhOA':'pipe','WvVJo':function(_0x38c7aa,_0x3e1ca3){return _0x38c7aa(_0x3e1ca3);}};await ensureChromeProfileShape(_0x210e58[_0x4e1752(0x132)],_0x210e58[_0x4e1752(0x14c)]);const _0x323914=_0x210e58[_0x4e1752(0xab)]??chromium[_0x4e1752(0xab)](),_0x3c3950=await _0x5684f8[_0x4e1752(0x137)](getAvailablePort),_0x189f1d=['--remote-debugging-port='+_0x3c3950,_0x4e1752(0xb6)+_0x210e58[_0x4e1752(0x132)],_0x4e1752(0x101),_0x5684f8['QOhdB'],_0x4e1752(0xaa),'--remote-allow-origins=http://localhost'];_0x210e58['headless']&&_0x189f1d['push'](_0x5684f8['vzaBJ']);_0x189f1d[_0x4e1752(0x11c)](..._0x210e58['launchArgs']??[]);const _0x41e33a=spawn(_0x323914,_0x189f1d,{'stdio':[_0x4e1752(0x141),_0x4e1752(0x149),_0x5684f8[_0x4e1752(0xb8)]]});try{const _0x5415a0=await waitForCdpEndpoint(_0x41e33a,_0x3c3950),_0x934d86=await chromium[_0x4e1752(0x117)](_0x5415a0);return{'browser':_0x934d86,'process':_0x41e33a};}catch(_0x5301da){await _0x5684f8[_0x4e1752(0x14b)](terminateNovaHydrationBrowser,_0x41e33a);throw _0x5301da;}}async function closeNovaHydrationBrowser(_0x546b27,_0x1997fc){const _0xe6bd62=_0x343f53;try{await _0x546b27[_0xe6bd62(0xf3)]();}catch{await terminateNovaHydrationBrowser(_0x1997fc);return;}const _0x442deb=await waitForProcessExit(_0x1997fc,0x1388);!_0x442deb&&await terminateNovaHydrationBrowser(_0x1997fc);}async function terminateNovaHydrationBrowser(_0x4db21b){const _0xacc75c=_0x343f53,_0x5755d6={'kbjoA':_0xacc75c(0x15c)};if(_0x4db21b['exitCode']!==null)return;try{_0x4db21b[_0xacc75c(0x121)](_0x5755d6[_0xacc75c(0x13e)]);}catch{}await waitForProcessExit(_0x4db21b,0x7d0);if(_0x4db21b[_0xacc75c(0x12d)]===null){try{_0x4db21b['kill'](_0xacc75c(0xef));}catch{}await waitForProcessExit(_0x4db21b,0x7d0);}}async function waitForCdpEndpoint(_0x4d19fb,_0x46b789){const _0x5decac=_0x343f53,_0x2b9202={'ovLNc':function(_0x2ac83e,_0x2a96eb){return _0x2ac83e<_0x2a96eb;},'DQNKc':function(_0x2ed224,_0x5e44df){return _0x2ed224-_0x5e44df;},'QiRDG':function(_0x5bc7e4,_0x18ef80){return _0x5bc7e4(_0x18ef80);},'tYnyt':function(_0x36e1da,_0x417aa0){return _0x36e1da===_0x417aa0;},'gHcFA':function(_0x48dde1,_0x5444cc){return _0x48dde1 instanceof _0x5444cc;}},_0x456a17=Date['now']();let _0x16bcc8;while(_0x2b9202['ovLNc'](_0x2b9202[_0x5decac(0x13b)](Date['now'](),_0x456a17),NOVA_PROFILE_HYDRATION_CDP_TIMEOUT_MS)){if(_0x4d19fb['exitCode']!==null)throw new Error('Hydration\x20browser\x20exited\x20before\x20CDP\x20became\x20available\x20with\x20code\x20'+_0x4d19fb[_0x5decac(0x12d)]);try{const _0x1b3153=await _0x2b9202['QiRDG'](fetch,'http://127.0.0.1:'+_0x46b789+_0x5decac(0x135));if(_0x1b3153['ok']){const _0xba4ff3=await _0x1b3153['json']();if(_0x2b9202['tYnyt'](typeof _0xba4ff3['webSocketDebuggerUrl'],_0x5decac(0xb7)))return _0xba4ff3['webSocketDebuggerUrl'];}}catch(_0x35c2f1){_0x16bcc8=_0x35c2f1;}await delay(0x64);}const _0x3bb7ac=_0x2b9202['gHcFA'](_0x16bcc8,Error)?':\x20'+_0x16bcc8['message']:'';throw new Error(_0x5decac(0x156)+_0x3bb7ac);}async function getAvailablePort(){const _0x302b3e=_0x343f53,_0x3194b1={'wblGA':function(_0x13d3f0,_0x59b253){return _0x13d3f0(_0x59b253);},'RZdYe':function(_0x878097){return _0x878097();},'vAMct':_0x302b3e(0xc0)};return new Promise((_0x3fb4e0,_0x4ffcd0)=>{const _0x387d7b=_0x302b3e,_0xf344e=_0x3194b1['RZdYe'](createServer);_0xf344e['once'](_0x387d7b(0xd7),_0x4ffcd0),_0xf344e[_0x387d7b(0xca)](0x0,_0x3194b1['vAMct'],()=>{const _0x4b01a7=_0x387d7b,_0x1a46d4={'hgtdV':function(_0x26dae7,_0x14d35b){return _0x26dae7===_0x14d35b;},'sKBVU':function(_0x3819e0,_0x5bd31f){const _0x385f84=_0x3b20;return _0x3194b1[_0x385f84(0xc6)](_0x3819e0,_0x5bd31f);},'ZoEjV':'Failed\x20to\x20allocate\x20hydration\x20browser\x20port'},_0x54eaad=_0xf344e[_0x4b01a7(0x163)]();_0xf344e[_0x4b01a7(0xf3)](_0x368aa5=>{const _0x3ad4f2=_0x4b01a7;if(_0x368aa5){_0x4ffcd0(_0x368aa5);return;}if(_0x1a46d4[_0x3ad4f2(0xd3)](typeof _0x54eaad,_0x3ad4f2(0xa2))&&_0x54eaad?.['port']){_0x3fb4e0(_0x54eaad['port']);return;}_0x1a46d4['sKBVU'](_0x4ffcd0,new Error(_0x1a46d4['ZoEjV']));});});});}async function waitForProcessExit(_0x2f1b34,_0x129224){const _0x392d53=_0x343f53,_0x10d4d2={'oRLsw':function(_0x7eb4eb,_0x5348a0){return _0x7eb4eb(_0x5348a0);},'uTkUK':function(_0x57de9a,_0x54fee4,_0xb275f0){return _0x57de9a(_0x54fee4,_0xb275f0);}};if(_0x2f1b34[_0x392d53(0x12d)]!==null)return!![];return new Promise(_0x301f7d=>{const _0x2afe99=_0x392d53,_0x53de14={'Nnmub':function(_0x2fb728,_0x5e8187){const _0x2d83f6=_0x3b20;return _0x10d4d2[_0x2d83f6(0xaf)](_0x2fb728,_0x5e8187);}},_0x5d6829=_0x10d4d2['uTkUK'](setTimeout,()=>{_0x131b85(),_0x10d4d2['oRLsw'](_0x301f7d,![]);},_0x129224),_0x36acc1=()=>{_0x131b85(),_0x301f7d(!![]);},_0x131b85=()=>{const _0x65b8e7=_0x3b20;_0x53de14['Nnmub'](clearTimeout,_0x5d6829),_0x2f1b34[_0x65b8e7(0xb0)]('exit',_0x36acc1);};_0x2f1b34[_0x2afe99(0x110)]('exit',_0x36acc1);});}async function delay(_0x78dbc){await new Promise(_0x5ed31b=>setTimeout(_0x5ed31b,_0x78dbc));}async function ensureChromeProfileShape(_0x2dd074,_0x2a35a3){const _0x5f4ce7=_0x343f53,_0x55e6fb={'FwCDS':function(_0x32170d,_0x4caada,_0x480b2d){return _0x32170d(_0x4caada,_0x480b2d);},'noRkK':_0x5f4ce7(0xd4),'RVDNu':function(_0x3a9715,_0x1fcbe0){return _0x3a9715(_0x1fcbe0);},'nnyXu':'Preferences'};await _0x55e6fb['FwCDS'](mkdir,_0x2a35a3,{'recursive':!![]}),await ensureJsonFile(join(_0x2dd074,_0x55e6fb['noRkK'])),await _0x55e6fb[_0x5f4ce7(0xf8)](ensureJsonFile,join(_0x2a35a3,_0x55e6fb[_0x5f4ce7(0x151)]));}async function ensureJsonFile(_0x999cdb){try{await access(_0x999cdb);}catch{await writeFile(_0x999cdb,'{}','utf-8');}}export function previewNovaActCliCommand(_0x1866bb){return truncatePreview(_0x1866bb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32be9b,_0x3ad1c4){var _0x4aa535=_0x1bd2,_0x20d8b0=_0x32be9b();while(!![]){try{var _0x44b98f=parseInt(_0x4aa535(0x185))/0x1+-parseInt(_0x4aa535(0x18a))/0x2*(parseInt(_0x4aa535(0x192))/0x3)+parseInt(_0x4aa535(0x184))/0x4+-parseInt(_0x4aa535(0x188))/0x5*(-parseInt(_0x4aa535(0x193))/0x6)+parseInt(_0x4aa535(0x187))/0x7*(parseInt(_0x4aa535(0x196))/0x8)+parseInt(_0x4aa535(0x18f))/0x9*(-parseInt(_0x4aa535(0x18c))/0xa)+-parseInt(_0x4aa535(0x190))/0xb;if(_0x44b98f===_0x3ad1c4)break;else _0x20d8b0['push'](_0x20d8b0['shift']());}catch(_0x41d79d){_0x20d8b0['push'](_0x20d8b0['shift']());}}}(_0x48a7,0x309df));function _0x48a7(){var _0x3081c0=['1485990JQLGnh','skills','bSAua','9hrIApn','1918829jKaNzZ','opencode','51ICadqp','6VNDnrs','XDG_CONFIG_HOME','.opencode','16bYQsrc','OPENCODE_CONFIG_DIR','1124120GurqkE','382189UBkyVr','Lbgdd','620767Ccmpfc','118075OxhhFM','env','40238YXXwNG','pTlqb'];_0x48a7=function(){return _0x3081c0;};return _0x48a7();}import{homedir}from'os';import{join}from'path';function _0x1bd2(_0x5f1599,_0x6149e7){_0x5f1599=_0x5f1599-0x183;var _0x48a77e=_0x48a7();var _0x1bd2fd=_0x48a77e[_0x5f1599];return _0x1bd2fd;}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x40ea93){var _0x181297=_0x1bd2,_0x40db01={'bSAua':'user','Yfgjh':function(_0x21699a,_0x419602,_0x3b6a2d){return _0x21699a(_0x419602,_0x3b6a2d);},'ALkSR':function(_0x214af8,_0x27f556,_0x56ce1f){return _0x214af8(_0x27f556,_0x56ce1f);}};if(process[_0x181297(0x189)]['OPENCODE_CONFIG_DIR'])return process[_0x181297(0x189)][_0x181297(0x183)];if(_0x40ea93===_0x40db01[_0x181297(0x18e)]){if(process[_0x181297(0x189)]['XDG_CONFIG_HOME'])return _0x40db01['Yfgjh'](join,process[_0x181297(0x189)][_0x181297(0x194)],_0x181297(0x191));return join(homedir(),'.config',_0x181297(0x191));}return _0x40db01['ALkSR'](join,getProjectRoot(),_0x181297(0x195));}export function getOpencodeSkillsDir(_0xc2c9ab){var _0x15aa98=_0x1bd2,_0x411f80={'Lbgdd':function(_0x1dc867,_0x4d0791){return _0x1dc867(_0x4d0791);},'pTlqb':_0x15aa98(0x18d)};return join(_0x411f80[_0x15aa98(0x186)](getOpencodeConfigDir,_0xc2c9ab),_0x411f80[_0x15aa98(0x18b)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c666d,_0x335ff4){const _0x1e19be=_0x1326,_0x3f8745=_0x5c666d();while(!![]){try{const _0x14ae71=parseInt(_0x1e19be(0x11b))/0x1*(parseInt(_0x1e19be(0x116))/0x2)+parseInt(_0x1e19be(0x11a))/0x3+parseInt(_0x1e19be(0x124))/0x4*(-parseInt(_0x1e19be(0x118))/0x5)+-parseInt(_0x1e19be(0x11e))/0x6+-parseInt(_0x1e19be(0x11d))/0x7+-parseInt(_0x1e19be(0x129))/0x8*(parseInt(_0x1e19be(0x127))/0x9)+parseInt(_0x1e19be(0x117))/0xa*(parseInt(_0x1e19be(0x12a))/0xb);if(_0x14ae71===_0x335ff4)break;else _0x3f8745['push'](_0x3f8745['shift']());}catch(_0x334a5a){_0x3f8745['push'](_0x3f8745['shift']());}}}(_0x1c74,0xc14c1));import{getApiBaseUrl}from'./environment.js';function _0x1c74(){const _0x5e5cd1=['Bearer\x20','searchParams','975222rmJVsl','20CjvwRA','10QPbkAT','Organization\x20environment\x20variable\x20','1022916VvSNNd','1UYAKXm','ENQrd','5632984hSKwLS','9264018BqVIeF','/organization/environment-variables','biqaJ','text','krKzh','variableName','2324948iNfWnB','json','map','9avmZCm','status','2661064dgkKWL','20938412ZfPnnG','set','from','number'];_0x1c74=function(){return _0x5e5cd1;};return _0x1c74();}function _0x1326(_0x442525,_0xf907c5){_0x442525=_0x442525-0x114;const _0x1c74f7=_0x1c74();let _0x132630=_0x1c74f7[_0x442525];return _0x132630;}import{getToken}from'./keychain.js';async function getOrganizationEnvironmentVariable(_0x26e257){const _0x51c46e=_0x1326,_0x29766c={'WztYF':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','wVLTD':_0x51c46e(0x123),'krKzh':function(_0x29011d,_0x2c3db1){return _0x29011d===_0x2c3db1;},'biqaJ':function(_0x255777,_0x5a3375){return _0x255777===_0x5a3375;},'qyYtz':'string','ENQrd':_0x51c46e(0x12d)},_0x25f4f1=await getToken();if(!_0x25f4f1)throw new Error(_0x29766c['WztYF']);const _0x1fb369=new URL(getApiBaseUrl()+_0x51c46e(0x11f));_0x1fb369[_0x51c46e(0x115)][_0x51c46e(0x12b)](_0x29766c['wVLTD'],_0x26e257);const _0x245828=await fetch(_0x1fb369,{'method':'GET','headers':{'Authorization':_0x51c46e(0x114)+_0x25f4f1}});if(_0x29766c[_0x51c46e(0x122)](_0x245828['status'],0x194))return null;if(!_0x245828['ok']){const _0x26072e=await _0x245828[_0x51c46e(0x121)]();throw new Error('Failed\x20to\x20fetch\x20organization\x20environment\x20variable\x20'+_0x26e257+':\x20'+_0x245828[_0x51c46e(0x128)]+'\x20'+_0x26072e);}const _0x332215=await _0x245828[_0x51c46e(0x125)](),_0x54856c=_0x332215[_0x26e257];if(_0x29766c[_0x51c46e(0x120)](_0x54856c,undefined)||_0x54856c===null)return null;if(typeof _0x54856c===_0x29766c['qyYtz']||typeof _0x54856c===_0x29766c[_0x51c46e(0x11c)])return String(_0x54856c);throw new Error(_0x51c46e(0x119)+_0x26e257+'\x20must\x20be\x20a\x20string\x20or\x20number');}export async function getOrganizationEnvironmentVariables(_0x1c47ea){const _0x8f1cb8=_0x1326,_0x28f958=Array[_0x8f1cb8(0x12c)](new Set(_0x1c47ea)),_0xbd571=await Promise['all'](_0x28f958[_0x8f1cb8(0x126)](async _0x1d51ed=>{const _0x36f37c=await getOrganizationEnvironmentVariable(_0x1d51ed);return _0x36f37c===null?null:[_0x1d51ed,_0x36f37c];}));return Object['fromEntries'](_0xbd571['filter'](_0x1dd1bc=>Boolean(_0x1dd1bc)));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b2139,_0x3c3a9d){const _0x26da6e=_0x5cf3,_0x3334c8=_0x1b2139();while(!![]){try{const _0x390695=-parseInt(_0x26da6e(0x1e0))/0x1+parseInt(_0x26da6e(0x202))/0x2*(-parseInt(_0x26da6e(0x1f6))/0x3)+-parseInt(_0x26da6e(0x1de))/0x4*(-parseInt(_0x26da6e(0x1e3))/0x5)+parseInt(_0x26da6e(0x206))/0x6+-parseInt(_0x26da6e(0x1fe))/0x7*(-parseInt(_0x26da6e(0x1e7))/0x8)+-parseInt(_0x26da6e(0x1df))/0x9+-parseInt(_0x26da6e(0x1dc))/0xa*(-parseInt(_0x26da6e(0x208))/0xb);if(_0x390695===_0x3c3a9d)break;else _0x3334c8['push'](_0x3334c8['shift']());}catch(_0x5dc8e0){_0x3334c8['push'](_0x3334c8['shift']());}}}(_0x1927,0x6e1e4));import{spawn}from'child_process';import{createHash}from'crypto';function _0x5cf3(_0xc6fd8d,_0x4073c3){_0xc6fd8d=_0xc6fd8d-0x1d5;const _0x192759=_0x1927();let _0x5cf38b=_0x192759[_0xc6fd8d];return _0x5cf38b;}export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x3542e7){const _0x4bb204=_0x5cf3,_0x410568={'KythD':function(_0x4c14ad,_0x2a16a7){return _0x4c14ad(_0x2a16a7);},'TOQVe':'sha256','BhQAU':'hex'},_0x38dbc9=_0x410568['KythD'](createHash,_0x410568['TOQVe'])['update'](_0x3542e7)[_0x4bb204(0x1f5)](_0x410568[_0x4bb204(0x1dd)])['slice'](0x0,0xc);return _0x4bb204(0x1f2)+_0x38dbc9;}function shellQuote(_0x21ce47){const _0x55f8fb=_0x5cf3;return'\x27'+_0x21ce47['replace'](/'/g,_0x55f8fb(0x1fd))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x3e37ea){const _0x531777=_0x5cf3,_0x1cea8c={'eTGpF':function(_0x265f94,_0x587c58){return _0x265f94(_0x587c58);}};return SAFE_SHELL_TOKEN['test'](_0x3e37ea)?_0x3e37ea:_0x1cea8c[_0x531777(0x200)](shellQuote,_0x3e37ea);}export function buildPlaywrightCliInvocation(_0x746d30,_0x396019,_0x101550){const _0x4162dd=_0x5cf3,_0x4e6c72={'frAQq':_0x4162dd(0x1e8),'bcQAw':_0x4162dd(0x1f0)},_0x5cda7c=toPlaywrightCliSessionKey(_0x746d30),[_0x1f71ad=_0x4162dd(0x1fa)]=_0x101550,_0x26b817=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x5cda7c,_0x4e6c72['frAQq'],_0x396019,..._0x101550];return{'command':_0x4162dd(0x1f0),'args':_0x26b817,'shellCommand':[_0x4e6c72[_0x4162dd(0x1f8)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x5cda7c),_0x4e6c72['frAQq'],quoteShellArg(_0x396019),..._0x101550[_0x4162dd(0x1e2)](quoteShellArg)]['join']('\x20'),'subcommand':_0x1f71ad};}export function buildPlaywrightCliCommandPrefix(_0x5a4173,_0x2c574e){const _0x564024=_0x5cf3,_0x133e9f={'wvqZr':function(_0x56cbfa,_0x4c5acf){return _0x56cbfa(_0x4c5acf);},'UhjuA':_0x564024(0x1f0),'vGmPG':function(_0x402098,_0x1a82a1){return _0x402098(_0x1a82a1);},'uqmLN':function(_0xbcdccc,_0x350bff){return _0xbcdccc(_0x350bff);}},_0x53c6a3=_0x133e9f[_0x564024(0x1eb)](toPlaywrightCliSessionKey,_0x5a4173);return[_0x133e9f[_0x564024(0x1e1)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x133e9f[_0x564024(0x1d9)](quoteShellArg,_0x53c6a3),'--config',_0x133e9f['uqmLN'](quoteShellArg,_0x2c574e)][_0x564024(0x20b)]('\x20');}function truncateOutput(_0x527a96,_0xec919d=0x7d0){const _0x46fad6=_0x5cf3,_0x4754fa={'tsmBp':function(_0x12b75a,_0x4442ac){return _0x12b75a+_0x4442ac;}};return _0x527a96[_0x46fad6(0x1fc)]>_0xec919d?_0x4754fa[_0x46fad6(0x1ff)](_0x527a96[_0x46fad6(0x209)](0x0,_0xec919d),'...'):_0x527a96;}function _0x1927(){const _0x214ac2=['\x0astdout:\x20','length','\x27\x5c\x27\x27','7vhwnUs','tsmBp','eTGpF','SIGKILL','653804WwpVDb','data','string','hqeHx','498876cuurrc','commandArgs','22lfAUXN','slice','args','join','bash_command','stdout','timeoutMs','playwright-cli\x20','vGmPG','odEeX','gHZpo','4164070mVVxgn','BhQAU','4plPxoQ','4969674aEKwrK','28223VLHRaX','UhjuA','map','1292305YEwFcH','error','KFxjA','pipe','1471472Tfclhw','--config','nKrOw','find','wvqZr','LLKbs','oygMS','kill','SNDFA','npx','toString','rg-','BmOnf','command','digest','3cKWzkB','configPath','bcQAw','script','unknown'];_0x1927=function(){return _0x214ac2;};return _0x1927();}export async function runPlaywrightCliCommand(_0x7e0057){const _0xb4d028=_0x5cf3,_0x19b0ff={'mDMnF':function(_0x4466bb,_0x121ff3){return _0x4466bb===_0x121ff3;},'oygMS':function(_0x1b8339,_0x49a3f3){return _0x1b8339(_0x49a3f3);},'nKrOw':'null','SNDFA':function(_0x5268f0,_0x44abbb){return _0x5268f0??_0x44abbb;},'wLXZu':'ignore','OWybA':'pipe','LLKbs':'data','BmOnf':'close','odEeX':function(_0x3594d1,_0x1e3f53,_0x575097,_0x39b44b){return _0x3594d1(_0x1e3f53,_0x575097,_0x39b44b);}},_0x51665d=_0x19b0ff[_0xb4d028(0x1da)](buildPlaywrightCliInvocation,_0x7e0057['sessionId'],_0x7e0057[_0xb4d028(0x1f7)],_0x7e0057[_0xb4d028(0x207)]);return new Promise((_0x3201b2,_0x4412c1)=>{const _0x470c78=_0xb4d028,_0x4aa1f7={'gHZpo':_0x470c78(0x201),'hqeHx':function(_0x4b1650,_0xb215d5){return _0x4b1650(_0xb215d5);}},_0x6e94de=spawn(_0x51665d[_0x470c78(0x1f4)],_0x51665d[_0x470c78(0x20a)],{'cwd':_0x7e0057['cwd'],'env':_0x7e0057['env'],'stdio':[_0x19b0ff['wLXZu'],_0x19b0ff['OWybA'],_0x470c78(0x1e6)]});let _0x3072da='',_0x3e1cb3='',_0x2ba240=![];const _0x85d3fa=_0x7e0057['timeoutMs']&&_0x7e0057[_0x470c78(0x1d7)]>0x0?setTimeout(()=>{const _0x27c02f=_0x470c78,_0x49ee8c={'KFxjA':_0x4aa1f7[_0x27c02f(0x1db)]};_0x2ba240=!![],_0x6e94de['kill']('SIGTERM'),setTimeout(()=>{const _0x4d4b65=_0x27c02f;try{_0x6e94de[_0x4d4b65(0x1ee)](_0x49ee8c[_0x4d4b65(0x1e5)]);}catch{}},0x3e8);},_0x7e0057['timeoutMs']):null;_0x6e94de[_0x470c78(0x1d6)]?.['on'](_0x19b0ff[_0x470c78(0x1ec)],_0x2eb45e=>{const _0x504895=_0x470c78;_0x3072da+=_0x2eb45e[_0x504895(0x1f1)]();}),_0x6e94de['stderr']?.['on'](_0x470c78(0x203),_0x3de167=>{_0x3e1cb3+=_0x3de167['toString']();}),_0x6e94de['on'](_0x470c78(0x1e4),_0x217059=>{const _0x91b983=_0x470c78;if(_0x85d3fa)_0x4aa1f7[_0x91b983(0x205)](clearTimeout,_0x85d3fa);_0x4aa1f7['hqeHx'](_0x4412c1,_0x217059);}),_0x6e94de['on'](_0x19b0ff[_0x470c78(0x1f3)],(_0x231c9b,_0x2424fd)=>{const _0x18ea3f=_0x470c78;if(_0x85d3fa)clearTimeout(_0x85d3fa);if(_0x19b0ff['mDMnF'](_0x231c9b,0x0)){_0x19b0ff[_0x18ea3f(0x1ed)](_0x3201b2,{'stdout':_0x3072da,'stderr':_0x3e1cb3,'invocation':_0x51665d});return;}const _0x1cc7cc=_0x2ba240?'timed\x20out\x20after\x20'+_0x7e0057['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x231c9b??_0x19b0ff[_0x18ea3f(0x1e9)])+'\x20signal='+_0x19b0ff[_0x18ea3f(0x1ef)](_0x2424fd,_0x19b0ff[_0x18ea3f(0x1e9)]);_0x4412c1(new Error(_0x18ea3f(0x1d8)+_0x51665d['subcommand']+'\x20'+_0x1cc7cc+_0x18ea3f(0x1fb)+truncateOutput(_0x3072da)+'\x0astderr:\x20'+truncateOutput(_0x3e1cb3)));});});}export function extractBashCommand(_0x2d49a7){const _0x6eda39=_0x5cf3,_0x1fd2ec={'bWkUg':function(_0x5c6599,_0x2666df){return _0x5c6599===_0x2666df;}},_0x4eef72=[_0x6eda39(0x1f4),'cmd',_0x6eda39(0x1f9),_0x6eda39(0x1d5)];for(const _0x463086 of _0x4eef72){const _0x46d017=_0x2d49a7[_0x463086];if(_0x1fd2ec['bWkUg'](typeof _0x46d017,_0x6eda39(0x204))&&_0x46d017['trim']())return _0x46d017;}const _0x10ae47=Object['values'](_0x2d49a7)[_0x6eda39(0x1ea)](_0x5e11c7=>typeof _0x5e11c7===_0x6eda39(0x204)&&_0x5e11c7['trim']()['length']>0x0);return _0x10ae47??null;}export function parsePlaywrightCliCommand(_0x1cdbbb){const _0x13f4fa=_0x1cdbbb['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x13f4fa?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xe34d4f,_0x472f7e){const _0x55194d=_0x3e86,_0x2ce061=_0xe34d4f();while(!![]){try{const _0x2c83b6=-parseInt(_0x55194d(0x1d1))/0x1+parseInt(_0x55194d(0x1d5))/0x2*(-parseInt(_0x55194d(0x1d4))/0x3)+parseInt(_0x55194d(0x1d2))/0x4+-parseInt(_0x55194d(0x1d0))/0x5*(-parseInt(_0x55194d(0x1d3))/0x6)+-parseInt(_0x55194d(0x1cf))/0x7*(parseInt(_0x55194d(0x1ce))/0x8)+-parseInt(_0x55194d(0x1d6))/0x9+parseInt(_0x55194d(0x1d7))/0xa;if(_0x2c83b6===_0x472f7e)break;else _0x2ce061['push'](_0x2ce061['shift']());}catch(_0x20e64f){_0x2ce061['push'](_0x2ce061['shift']());}}}(_0xff43,0xb0f29));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x3e86(_0x163979,_0x12fa68){_0x163979=_0x163979-0x1ce;const _0xff431b=_0xff43();let _0x3e86f5=_0xff431b[_0x163979];return _0x3e86f5;}function _0xff43(){const _0xe895c=['232521FmqZPx','32dTkFXP','6759657BAnqsk','28439120UWDMUL','212216HmMhPw','364tRyiFM','3852245bVFDQW','236292lovyAG','2869188XZmvQZ','6HFSmOJ'];_0xff43=function(){return _0xe895c;};return _0xff43();}export function formatProfileRequiredMessage(_0x526187){const _0x312776={'vZnLS':function(_0x21a805,_0xdcc586){return _0x21a805(_0xdcc586);}},_0x50ac83=_0x526187?_0x312776['vZnLS'](_0x526187,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x50ac83+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x575126,_0x21b77a){const _0x2929a0=_0x4245,_0x3a5e6d=_0x575126();while(!![]){try{const _0x36e5e4=parseInt(_0x2929a0(0xb9))/0x1+parseInt(_0x2929a0(0xb7))/0x2*(-parseInt(_0x2929a0(0xbc))/0x3)+parseInt(_0x2929a0(0xb2))/0x4+-parseInt(_0x2929a0(0xb4))/0x5+-parseInt(_0x2929a0(0xb0))/0x6+-parseInt(_0x2929a0(0xb3))/0x7+parseInt(_0x2929a0(0xb6))/0x8*(parseInt(_0x2929a0(0xaf))/0x9);if(_0x36e5e4===_0x21b77a)break;else _0x3a5e6d['push'](_0x3a5e6d['shift']());}catch(_0x8546a9){_0x3a5e6d['push'](_0x3a5e6d['shift']());}}}(_0x4187,0x454f7));function _0x4245(_0x474f4a,_0x1f8890){_0x474f4a=_0x474f4a-0xad;const _0x418754=_0x4187();let _0x4245de=_0x418754[_0x474f4a];return _0x4245de;}function _0x4187(){const _0x156578=['zpqrc','18dCWWBK','914280cEMhWJ','GZNXG','1822192kEOLdq','1396367PBpMKs','1632100hXQYoL','addInitScript','2584624icukVq','950000nvvRPR','</div>','335472VCOvwR','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','naxYC','3yEuCpt','<div\x20class=\x22ranger-banner__message\x22>',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','<div\x20class=\x22ranger-banner__content\x22>'];_0x4187=function(){return _0x156578;};return _0x4187();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x15080f=_0x4245,_0x58a94f={'GZNXG':function(_0x3ca606,_0x1b93b1){return _0x3ca606+_0x1b93b1;},'naxYC':function(_0x3e45be,_0x5b4df8){return _0x3e45be+_0x5b4df8;},'drvWh':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','ICHPf':_0x15080f(0xba),'zpqrc':_0x15080f(0xb8)},_0x347029=_0x58a94f[_0x15080f(0xb1)](_0x58a94f['GZNXG'](_0x58a94f[_0x15080f(0xbb)](_0x58a94f['naxYC'](_0x15080f(0xad)+_0x58a94f['drvWh'],_0x15080f(0xbd)),_0x58a94f['ICHPf']),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x58a94f[_0x15080f(0xae)],'</div>')+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x4f4fe7='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x347029)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x4f4fe7)+_0x15080f(0xbe);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5bca8b){const _0x34d9e9=_0x4245;await _0x5bca8b[_0x34d9e9(0xb5)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5ebdfd,_0x3e4be0){const _0x3eed33=_0x134e,_0x436e71=_0x5ebdfd();while(!![]){try{const _0x1b5c93=-parseInt(_0x3eed33(0xb5))/0x1*(-parseInt(_0x3eed33(0xb4))/0x2)+parseInt(_0x3eed33(0xbe))/0x3+parseInt(_0x3eed33(0xa2))/0x4+-parseInt(_0x3eed33(0xa3))/0x5+-parseInt(_0x3eed33(0xaf))/0x6+parseInt(_0x3eed33(0x97))/0x7+parseInt(_0x3eed33(0x96))/0x8*(parseInt(_0x3eed33(0xb3))/0x9);if(_0x1b5c93===_0x3e4be0)break;else _0x436e71['push'](_0x436e71['shift']());}catch(_0x38e0bd){_0x436e71['push'](_0x436e71['shift']());}}}(_0x4b08,0xafbd2));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';function _0x134e(_0x576b24,_0x14e8ec){_0x576b24=_0x576b24-0x96;const _0x4b0855=_0x4b08();let _0x134ed1=_0x4b0855[_0x576b24];return _0x134ed1;}import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x319b99=_0x134e,_0x561690={'ChlFr':'projects.json'};return join(getRangerHomeDir(),_0x561690[_0x319b99(0xa1)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x5ae352=_0x134e,_0x52a75f={'ilTsc':function(_0x5827ec,_0x5f5dc2){return _0x5827ec instanceof _0x5f5dc2;},'hyuDb':function(_0x5f4b1c,_0x1b649b){return _0x5f4b1c(_0x1b649b);},'gNMrG':function(_0xfffb55){return _0xfffb55();},'xpsbf':function(_0x5df5d4,_0x1b3d46){return _0x5df5d4!==_0x1b3d46;}},_0xa6aad2=getProjectsConfigPath();if(!existsSync(_0xa6aad2))return emptyConfig();let _0x240bc9;try{_0x240bc9=readFileSync(_0xa6aad2,'utf-8');}catch(_0x52c3d1){const _0x35ef60=_0x52c3d1 instanceof Error?_0x52c3d1[_0x5ae352(0x9d)]:String(_0x52c3d1);return console[_0x5ae352(0xa9)](_0x5ae352(0xb8)+_0xa6aad2+':\x20'+_0x35ef60+_0x5ae352(0x98)),emptyConfig();}let _0x417a41;try{_0x417a41=JSON[_0x5ae352(0xac)](_0x240bc9);}catch(_0x25eaf0){const _0x5e31a0=_0x52a75f['ilTsc'](_0x25eaf0,Error)?_0x25eaf0[_0x5ae352(0x9d)]:_0x52a75f['hyuDb'](String,_0x25eaf0);return console[_0x5ae352(0xa9)]('[ranger]\x20Warning:\x20'+_0xa6aad2+'\x20is\x20not\x20valid\x20JSON\x20('+_0x5e31a0+_0x5ae352(0xaa)),_0x52a75f[_0x5ae352(0xb2)](emptyConfig);}if(!_0x417a41||typeof _0x417a41!==_0x5ae352(0xbc)||Array[_0x5ae352(0xb6)](_0x417a41)||_0x52a75f['xpsbf'](_0x417a41['version'],CURRENT_VERSION)||_0x52a75f[_0x5ae352(0xc0)](typeof _0x417a41[_0x5ae352(0x9b)],'object')||_0x417a41[_0x5ae352(0x9b)]===null||Array['isArray'](_0x417a41['projects']))return console['warn'](_0x5ae352(0xa6)+_0xa6aad2+_0x5ae352(0x9e)),emptyConfig();return _0x417a41;}export function writeProjectsConfig(_0x4f805a){const _0x3b37fd=_0x134e,_0x20e95a={'EvByu':function(_0x44df12,_0x51ed2b){return _0x44df12(_0x51ed2b);},'Dnity':function(_0x246bec,_0x3adfd6,_0x40f221){return _0x246bec(_0x3adfd6,_0x40f221);},'uUOwK':'utf-8','OVbzI':function(_0xe65bc3,_0x219e9f,_0x142527){return _0xe65bc3(_0x219e9f,_0x142527);},'HMvgV':function(_0x3ed964,_0x4cbe68){return _0x3ed964(_0x4cbe68);}},_0x302244=getProjectsConfigPath(),_0x24e149=_0x20e95a[_0x3b37fd(0xbd)](dirname,_0x302244);!_0x20e95a[_0x3b37fd(0xbd)](existsSync,_0x24e149)&&_0x20e95a[_0x3b37fd(0xb9)](mkdirSync,_0x24e149,{'recursive':!![]});const _0x4ee7cc=_0x302244+'.'+process[_0x3b37fd(0x9f)]+'.'+Date[_0x3b37fd(0xa8)]()+'.tmp',_0x282271=JSON['stringify'](_0x4f805a,null,0x2)+'\x0a';try{writeFileSync(_0x4ee7cc,_0x282271,{'encoding':_0x20e95a['uUOwK'],'mode':0x180}),_0x20e95a[_0x3b37fd(0xba)](renameSync,_0x4ee7cc,_0x302244);}catch(_0x2e2a5b){try{existsSync(_0x4ee7cc)&&_0x20e95a['HMvgV'](unlinkSync,_0x4ee7cc);}catch{}throw _0x2e2a5b;}}export function readProfileOverrides(_0x44949e,_0x69680){const _0xc3c5ce=_0x134e,_0x1df9cc=readProjectsConfig(),_0x29cd39=_0x1df9cc['projects'][_0x44949e];if(!_0x29cd39||!_0x29cd39['profiles'])return null;const _0x220974=_0x29cd39['profiles'][_0x69680];if(!_0x220974||!_0x220974['settings'])return null;return _0x220974[_0xc3c5ce(0xb7)]??null;}export function setProfileOverride(_0xe9414d,_0x44c1a0,_0x531379,_0x12138a){const _0x24d822=_0x134e,_0x3ee8b1={'wLYIP':'keyPath\x20is\x20required'};if(!_0x531379)throw new Error(_0x3ee8b1[_0x24d822(0x9c)]);const _0xc8bd03=readProjectsConfig(),_0x321dff=_0xc8bd03[_0x24d822(0x9b)][_0xe9414d]??={},_0x2997b1=_0x321dff[_0x24d822(0x9a)]??={},_0x1029ed=_0x2997b1[_0x44c1a0]??={},_0x44ae73=_0x1029ed[_0x24d822(0xb7)]??={};setByKeyPath(_0x44ae73,_0x531379,_0x12138a),writeProjectsConfig(_0xc8bd03);}export function unsetProfileOverride(_0x58604f,_0x30dad4,_0xea07c1){const _0x379cd2=_0x134e,_0x2ae2d7={'KbnAQ':'keyPath\x20is\x20required','vMzAE':function(_0x5e1d3e){return _0x5e1d3e();}};if(!_0xea07c1)throw new Error(_0x2ae2d7['KbnAQ']);const _0x2b4c89=_0x2ae2d7['vMzAE'](readProjectsConfig),_0x5696de=_0x2b4c89['projects'][_0x58604f];if(!_0x5696de?.[_0x379cd2(0x9a)])return![];const _0x5a88dd=_0x5696de['profiles'][_0x30dad4];if(!_0x5a88dd?.['settings'])return![];const _0x21bcb2=deleteByKeyPath(_0x5a88dd['settings'],_0xea07c1);if(!_0x21bcb2)return![];return writeProjectsConfig(_0x2b4c89),!![];}export function resetProfileOverrides(_0x36f848,_0x55d6b6){const _0x3d2756=_0x134e,_0x252c3f={'QQqoI':function(_0xde6062){return _0xde6062();},'jSaIF':function(_0x205199,_0xdba79a){return _0x205199===_0xdba79a;},'ltDvl':function(_0x23d4ed,_0x281dd5){return _0x23d4ed(_0x281dd5);}},_0x461521=_0x252c3f[_0x3d2756(0xbf)](readProjectsConfig),_0x1644d4=_0x461521['projects'][_0x36f848];if(!_0x1644d4?.['profiles'])return;if(!(_0x55d6b6 in _0x1644d4['profiles']))return;delete _0x1644d4[_0x3d2756(0x9a)][_0x55d6b6],_0x252c3f[_0x3d2756(0xa5)](Object['keys'](_0x1644d4[_0x3d2756(0x9a)])['length'],0x0)&&(!_0x1644d4['lastProfile']?delete _0x461521['projects'][_0x36f848]:_0x1644d4['profiles']={}),_0x252c3f['ltDvl'](writeProjectsConfig,_0x461521);}export function readLastProfile(_0x2a087d){const _0x5f2431=_0x134e,_0x41148f=readProjectsConfig(),_0x100c82=_0x41148f['projects'][_0x2a087d];return _0x100c82?.[_0x5f2431(0x99)]??null;}export function writeLastProfile(_0x1ce679,_0x509b89){const _0x29fbba=_0x134e,_0x18ab62={'gUgbi':function(_0x475dd6,_0x215c95){return _0x475dd6(_0x215c95);}},_0x41c068=readProjectsConfig(),_0x1a04b8=_0x41c068['projects'][_0x1ce679]??={};_0x1a04b8[_0x29fbba(0x99)]=_0x509b89,_0x18ab62[_0x29fbba(0xa7)](writeProjectsConfig,_0x41c068);}export function clearLastProfile(_0xdff735,_0x441845){const _0x55e9f0=_0x134e,_0x51e839={'mwJyd':function(_0x415c3e){return _0x415c3e();},'exFlm':function(_0x233d54,_0x115e72){return _0x233d54!==_0x115e72;}},_0x491d59=_0x51e839['mwJyd'](readProjectsConfig),_0x4f7ee1=_0x491d59[_0x55e9f0(0x9b)][_0xdff735];if(!_0x4f7ee1||_0x51e839[_0x55e9f0(0xad)](_0x4f7ee1[_0x55e9f0(0x99)],_0x441845))return![];return delete _0x4f7ee1['lastProfile'],(!_0x4f7ee1[_0x55e9f0(0x9a)]||Object['keys'](_0x4f7ee1[_0x55e9f0(0x9a)])['length']===0x0)&&delete _0x491d59[_0x55e9f0(0x9b)][_0xdff735],writeProjectsConfig(_0x491d59),!![];}export function mergeCloudProfileSettings(_0x57da6d,_0x5a9832){const _0x34701d=_0x134e,_0x2de8dc={'yRrgw':function(_0x1bd502,_0x1661b9){return _0x1bd502===_0x1661b9;},'gKhas':'setupHeaders','nscRC':function(_0x199c9a,_0x2b9d2c){return _0x199c9a!==_0x2b9d2c;}},_0x2a538e={..._0x57da6d??{}};if(!_0x5a9832)return _0x2a538e;for(const [_0x3caa5c,_0x2f6b22]of Object['entries'](_0x5a9832)){if(_0x2f6b22===undefined)continue;if(_0x2f6b22===null){delete _0x2a538e[_0x3caa5c];continue;}if(_0x2de8dc[_0x34701d(0xab)](_0x3caa5c,_0x34701d(0xae))||_0x3caa5c===_0x2de8dc['gKhas']){const _0x1f1589=asRecord(_0x2a538e[_0x3caa5c])??{},_0x305551=asRecord(_0x2f6b22);if(!_0x305551){_0x2a538e[_0x3caa5c]=_0x2f6b22;continue;}const _0x3e095e={..._0x1f1589};for(const [_0xbc502e,_0x159fde]of Object[_0x34701d(0xa4)](_0x305551)){if(_0x159fde===null)delete _0x3e095e[_0xbc502e];else _0x2de8dc['nscRC'](_0x159fde,undefined)&&(_0x3e095e[_0xbc502e]=_0x159fde);}_0x2a538e[_0x3caa5c]=_0x3e095e;continue;}_0x2a538e[_0x3caa5c]=_0x2f6b22;}return _0x2a538e;}function asRecord(_0x442545){const _0x25720b=_0x134e;return _0x442545&&typeof _0x442545==='object'&&!Array[_0x25720b(0xb6)](_0x442545)?_0x442545:undefined;}function setByKeyPath(_0x1e47d5,_0x29d08a,_0x4df241){const _0x4fbf2c=_0x134e,_0x3b8c74={'OVsVE':function(_0x149fe3,_0x204ae0){return _0x149fe3<_0x204ae0;},'XPCok':function(_0x15c5c6,_0x546b6c){return _0x15c5c6!==_0x546b6c;}},_0x29d4af=_0x29d08a[_0x4fbf2c(0xb1)]('.');let _0x5ca50f=_0x1e47d5;for(let _0x2698c3=0x0;_0x3b8c74['OVsVE'](_0x2698c3,_0x29d4af['length']-0x1);_0x2698c3++){const _0x2262fa=_0x29d4af[_0x2698c3],_0x1d7a86=_0x5ca50f[_0x2262fa];(!_0x1d7a86||_0x3b8c74[_0x4fbf2c(0xa0)](typeof _0x1d7a86,_0x4fbf2c(0xbc))||Array[_0x4fbf2c(0xb6)](_0x1d7a86))&&(_0x5ca50f[_0x2262fa]={}),_0x5ca50f=_0x5ca50f[_0x2262fa];}_0x5ca50f[_0x29d4af[_0x29d4af['length']-0x1]]=_0x4df241;}function _0x4b08(){const _0x2c228f=['2302136CFwnuX','6502540rFrCHq','entries','jSaIF','[ranger]\x20Warning:\x20','gUgbi','now','warn',').\x20Ignoring\x20local\x20profile\x20overrides.','yRrgw','parse','exFlm','headers','7370130SfgPjc','wIxTb','split','gNMrG','3298527cRubjL','141866YViLnn','17NhgCEx','isArray','settings','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','Dnity','OVbzI','lIMWE','object','EvByu','1588347Qnyzyz','QQqoI','xpsbf','8kgUeoQ','3999394luhEdK','.\x20Ignoring\x20local\x20profile\x20overrides.','lastProfile','profiles','projects','wLYIP','message','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','pid','XPCok','ChlFr'];_0x4b08=function(){return _0x2c228f;};return _0x4b08();}function deleteByKeyPath(_0x47bf8f,_0x5816c8){const _0x456792=_0x134e,_0x4322c9={'wIxTb':function(_0x51b792,_0x5529c6){return _0x51b792<_0x5529c6;},'lIMWE':function(_0x1eb649,_0x56b49b){return _0x1eb649-_0x56b49b;}},_0x4779de=_0x5816c8['split']('.');let _0x2b913a=_0x47bf8f;for(let _0x1c4900=0x0;_0x4322c9[_0x456792(0xb0)](_0x1c4900,_0x4779de['length']-0x1);_0x1c4900++){const _0x543b0e=_0x4779de[_0x1c4900],_0x179ddf=_0x2b913a[_0x543b0e];if(!_0x179ddf||typeof _0x179ddf!=='object'||Array[_0x456792(0xb6)](_0x179ddf))return![];_0x2b913a=_0x179ddf;}const _0x47c269=_0x4779de[_0x4322c9[_0x456792(0xbb)](_0x4779de['length'],0x1)];if(!(_0x47c269 in _0x2b913a))return![];return delete _0x2b913a[_0x47c269],!![];}
|
|
1
|
+
(function(_0x509ee8,_0x4079ab){const _0xbbe560=_0x1679,_0x52bb18=_0x509ee8();while(!![]){try{const _0x8a9ff2=-parseInt(_0xbbe560(0x166))/0x1+parseInt(_0xbbe560(0x159))/0x2*(parseInt(_0xbbe560(0x16b))/0x3)+-parseInt(_0xbbe560(0x153))/0x4+parseInt(_0xbbe560(0x156))/0x5*(parseInt(_0xbbe560(0x14b))/0x6)+parseInt(_0xbbe560(0x157))/0x7+parseInt(_0xbbe560(0x16f))/0x8+-parseInt(_0xbbe560(0x148))/0x9;if(_0x8a9ff2===_0x4079ab)break;else _0x52bb18['push'](_0x52bb18['shift']());}catch(_0x249744){_0x52bb18['push'](_0x52bb18['shift']());}}}(_0x3af8,0x1c5ff));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x2150ba=_0x1679,_0x2f88b0={'dmmeg':function(_0x3f081c){return _0x3f081c();}};return join(_0x2f88b0[_0x2150ba(0x160)](getRangerHomeDir),_0x2150ba(0x162));}function _0x3af8(){const _0x500a81=['8KCMVbf','[ranger]\x20Warning:\x20','Hpovg','projects','HynOk','hKXIw','GGpyr','dmmeg','split','projects.json','JmZRD','WChoc','jAKrC','78589letXVy','nApHj','Nwbnc','version','warn','154749LIyudw','ESXxj','.\x20Ignoring\x20local\x20profile\x20overrides.',').\x20Ignoring\x20local\x20profile\x20overrides.','788432NtvnMx','AqBKl','AgCgK','entries','object','pbKQe','isArray','bJTPn','utf-8','3979674hebvIg','keyPath\x20is\x20required','setupHeaders','1194rdgqQk','fjHPU','message','KFHuT','lastProfile','NJoSn','profiles','iniQR','120628dXGQXB','length','headers','4105fCMBRM','1392230OcpPgR','settings'];_0x3af8=function(){return _0x500a81;};return _0x3af8();}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x393d51=_0x1679,_0x1fb8ac={'hKXIw':function(_0x24c07a,_0x14fd66){return _0x24c07a(_0x14fd66);},'VEzFJ':'utf-8','bVSit':function(_0x15e5d6,_0x378b65){return _0x15e5d6 instanceof _0x378b65;},'FhNKJ':function(_0x472222){return _0x472222();},'iniQR':function(_0x2ec737,_0x15e167){return _0x2ec737 instanceof _0x15e167;},'nApHj':function(_0x42efb3,_0x12d5e4){return _0x42efb3(_0x12d5e4);},'Hpovg':function(_0x1921c9){return _0x1921c9();},'bJTPn':_0x393d51(0x173)},_0x48a42d=getProjectsConfigPath();if(!_0x1fb8ac[_0x393d51(0x15e)](existsSync,_0x48a42d))return emptyConfig();let _0x2370db;try{_0x2370db=readFileSync(_0x48a42d,_0x1fb8ac['VEzFJ']);}catch(_0x524640){const _0x99e56=_0x1fb8ac['bVSit'](_0x524640,Error)?_0x524640['message']:_0x1fb8ac['hKXIw'](String,_0x524640);return console[_0x393d51(0x16a)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x48a42d+':\x20'+_0x99e56+_0x393d51(0x16d)),_0x1fb8ac['FhNKJ'](emptyConfig);}let _0x16f549;try{_0x16f549=JSON['parse'](_0x2370db);}catch(_0x1cfdd2){const _0x12fcf3=_0x1fb8ac[_0x393d51(0x152)](_0x1cfdd2,Error)?_0x1cfdd2[_0x393d51(0x14d)]:_0x1fb8ac[_0x393d51(0x167)](String,_0x1cfdd2);return console[_0x393d51(0x16a)]('[ranger]\x20Warning:\x20'+_0x48a42d+'\x20is\x20not\x20valid\x20JSON\x20('+_0x12fcf3+_0x393d51(0x16e)),_0x1fb8ac[_0x393d51(0x15b)](emptyConfig);}if(!_0x16f549||typeof _0x16f549!==_0x393d51(0x173)||Array['isArray'](_0x16f549)||_0x16f549[_0x393d51(0x169)]!==CURRENT_VERSION||typeof _0x16f549[_0x393d51(0x15c)]!==_0x1fb8ac[_0x393d51(0x176)]||_0x16f549['projects']===null||Array[_0x393d51(0x175)](_0x16f549['projects']))return console[_0x393d51(0x16a)](_0x393d51(0x15a)+_0x48a42d+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();return _0x16f549;}export function writeProjectsConfig(_0x16d396){const _0x10db26=_0x1679,_0x5bddfa={'HynOk':function(_0x5ba7bd,_0x492952){return _0x5ba7bd(_0x492952);},'JmZRD':function(_0x343784,_0x58948b,_0x54843d,_0xe1537b){return _0x343784(_0x58948b,_0x54843d,_0xe1537b);},'Tcfkd':_0x10db26(0x177),'rJIaL':function(_0x4d69b7,_0x4e0efb,_0xebce6){return _0x4d69b7(_0x4e0efb,_0xebce6);}},_0x285bb5=getProjectsConfigPath(),_0x427fdd=_0x5bddfa[_0x10db26(0x15d)](dirname,_0x285bb5);!_0x5bddfa[_0x10db26(0x15d)](existsSync,_0x427fdd)&&mkdirSync(_0x427fdd,{'recursive':!![]});const _0x3eec6e=_0x285bb5+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x3edc5e=JSON['stringify'](_0x16d396,null,0x2)+'\x0a';try{_0x5bddfa[_0x10db26(0x163)](writeFileSync,_0x3eec6e,_0x3edc5e,{'encoding':_0x5bddfa['Tcfkd'],'mode':0x180}),_0x5bddfa['rJIaL'](renameSync,_0x3eec6e,_0x285bb5);}catch(_0x412e18){try{existsSync(_0x3eec6e)&&_0x5bddfa['HynOk'](unlinkSync,_0x3eec6e);}catch{}throw _0x412e18;}}export function readProfileOverrides(_0x52f7c0,_0xfd9dff){const _0x7162c4=_0x1679,_0x4e4540={'NJoSn':function(_0x3c7407){return _0x3c7407();}},_0x35a63c=_0x4e4540[_0x7162c4(0x150)](readProjectsConfig),_0x147a66=_0x35a63c['projects'][_0x52f7c0];if(!_0x147a66||!_0x147a66[_0x7162c4(0x151)])return null;const _0x523541=_0x147a66[_0x7162c4(0x151)][_0xfd9dff];if(!_0x523541||!_0x523541[_0x7162c4(0x158)])return null;return _0x523541['settings']??null;}export function setProfileOverride(_0x5789c5,_0x1b0a52,_0x2057bd,_0x176a55){const _0x11960c=_0x1679;if(!_0x2057bd)throw new Error(_0x11960c(0x149));const _0x3bed7b=readProjectsConfig(),_0xf4025b=_0x3bed7b[_0x11960c(0x15c)][_0x5789c5]??={},_0x2ca447=_0xf4025b['profiles']??={},_0x30fb50=_0x2ca447[_0x1b0a52]??={},_0x5bbaed=_0x30fb50['settings']??={};setByKeyPath(_0x5bbaed,_0x2057bd,_0x176a55),writeProjectsConfig(_0x3bed7b);}function _0x1679(_0x74140d,_0x2171f8){_0x74140d=_0x74140d-0x148;const _0x3af89f=_0x3af8();let _0x167957=_0x3af89f[_0x74140d];return _0x167957;}export function unsetProfileOverride(_0x300ff2,_0x46bb62,_0x378b32){const _0x232df1=_0x1679,_0x58e8bc={'SXdBq':function(_0x35353b,_0x20be34,_0x1fbdfb){return _0x35353b(_0x20be34,_0x1fbdfb);},'GDsQe':function(_0x30bc73,_0x113f11){return _0x30bc73(_0x113f11);}};if(!_0x378b32)throw new Error('keyPath\x20is\x20required');const _0x3b94b0=readProjectsConfig(),_0x36f554=_0x3b94b0[_0x232df1(0x15c)][_0x300ff2];if(!_0x36f554?.[_0x232df1(0x151)])return![];const _0x72e4c2=_0x36f554['profiles'][_0x46bb62];if(!_0x72e4c2?.[_0x232df1(0x158)])return![];const _0x48474a=_0x58e8bc['SXdBq'](deleteByKeyPath,_0x72e4c2[_0x232df1(0x158)],_0x378b32);if(!_0x48474a)return![];return _0x58e8bc['GDsQe'](writeProjectsConfig,_0x3b94b0),!![];}export function resetProfileOverrides(_0x4bec84,_0x3aec85){const _0x2d1cb6=_0x1679,_0x3c615e={'USWmH':function(_0x5ea4fc,_0x2a6d0e){return _0x5ea4fc(_0x2a6d0e);}},_0x457be6=readProjectsConfig(),_0x1db633=_0x457be6[_0x2d1cb6(0x15c)][_0x4bec84];if(!_0x1db633?.[_0x2d1cb6(0x151)])return;if(!(_0x3aec85 in _0x1db633[_0x2d1cb6(0x151)]))return;delete _0x1db633['profiles'][_0x3aec85],Object['keys'](_0x1db633[_0x2d1cb6(0x151)])[_0x2d1cb6(0x154)]===0x0&&(!_0x1db633[_0x2d1cb6(0x14f)]?delete _0x457be6[_0x2d1cb6(0x15c)][_0x4bec84]:_0x1db633[_0x2d1cb6(0x151)]={}),_0x3c615e['USWmH'](writeProjectsConfig,_0x457be6);}export function readLastProfile(_0x1ec951){const _0x3136d2=_0x1679,_0x3c6bb7=readProjectsConfig(),_0x2aff7d=_0x3c6bb7[_0x3136d2(0x15c)][_0x1ec951];return _0x2aff7d?.[_0x3136d2(0x14f)]??null;}export function writeLastProfile(_0x406efb,_0x2526f7){const _0x1a7742=_0x1679,_0x22c546={'KFHuT':function(_0x29ffa9){return _0x29ffa9();}},_0x749771=_0x22c546[_0x1a7742(0x14e)](readProjectsConfig),_0x2bb56c=_0x749771['projects'][_0x406efb]??={};_0x2bb56c['lastProfile']=_0x2526f7,writeProjectsConfig(_0x749771);}export function clearLastProfile(_0x57c21c,_0x3e99e6){const _0x376526=_0x1679,_0x1f24c1={'fjHPU':function(_0x4bc920){return _0x4bc920();},'pbKQe':function(_0x4a1880,_0x45f9c2){return _0x4a1880===_0x45f9c2;},'GGpyr':function(_0x2ee619,_0x2b9537){return _0x2ee619(_0x2b9537);}},_0x4fba07=_0x1f24c1[_0x376526(0x14c)](readProjectsConfig),_0x3b2fcc=_0x4fba07['projects'][_0x57c21c];if(!_0x3b2fcc||_0x3b2fcc[_0x376526(0x14f)]!==_0x3e99e6)return![];return delete _0x3b2fcc['lastProfile'],(!_0x3b2fcc['profiles']||_0x1f24c1[_0x376526(0x174)](Object['keys'](_0x3b2fcc[_0x376526(0x151)])[_0x376526(0x154)],0x0))&&delete _0x4fba07['projects'][_0x57c21c],_0x1f24c1[_0x376526(0x15f)](writeProjectsConfig,_0x4fba07),!![];}export function mergeCloudProfileSettings(_0x32a6aa,_0x281580){const _0x47b68f=_0x1679,_0x3594f9={'jAKrC':function(_0xcb41a9,_0x4cc38a){return _0xcb41a9??_0x4cc38a;},'WChoc':function(_0x11fdb8,_0x58062c){return _0x11fdb8===_0x58062c;},'gYHxw':function(_0x2cfb11,_0xb046dd){return _0x2cfb11===_0xb046dd;},'AqBKl':function(_0xede132,_0x3cf076){return _0xede132(_0x3cf076);},'VXamS':function(_0x12fa3c,_0x1594ec){return _0x12fa3c(_0x1594ec);},'Nwbnc':function(_0xed2403,_0x522981){return _0xed2403===_0x522981;},'ESXxj':function(_0x420aac,_0x9e2292){return _0x420aac!==_0x9e2292;}},_0x3a2290={..._0x3594f9[_0x47b68f(0x165)](_0x32a6aa,{})};if(!_0x281580)return _0x3a2290;for(const [_0x2e8aca,_0x14f995]of Object[_0x47b68f(0x172)](_0x281580)){if(_0x14f995===undefined)continue;if(_0x3594f9[_0x47b68f(0x164)](_0x14f995,null)){delete _0x3a2290[_0x2e8aca];continue;}if(_0x2e8aca===_0x47b68f(0x155)||_0x3594f9['gYHxw'](_0x2e8aca,_0x47b68f(0x14a))){const _0x53bd6a=_0x3594f9[_0x47b68f(0x170)](asRecord,_0x3a2290[_0x2e8aca])??{},_0x2188e6=_0x3594f9['VXamS'](asRecord,_0x14f995);if(!_0x2188e6){_0x3a2290[_0x2e8aca]=_0x14f995;continue;}const _0x53ac87={..._0x53bd6a};for(const [_0x34dbe2,_0xcac13e]of Object['entries'](_0x2188e6)){if(_0x3594f9[_0x47b68f(0x168)](_0xcac13e,null))delete _0x53ac87[_0x34dbe2];else _0x3594f9[_0x47b68f(0x16c)](_0xcac13e,undefined)&&(_0x53ac87[_0x34dbe2]=_0xcac13e);}_0x3a2290[_0x2e8aca]=_0x53ac87;continue;}_0x3a2290[_0x2e8aca]=_0x14f995;}return _0x3a2290;}function asRecord(_0x13fd56){const _0x5ab6c7=_0x1679,_0x39ad62={'ypmHJ':'object'};return _0x13fd56&&typeof _0x13fd56===_0x39ad62['ypmHJ']&&!Array[_0x5ab6c7(0x175)](_0x13fd56)?_0x13fd56:undefined;}function setByKeyPath(_0x2b8b34,_0x4a0f28,_0xa36072){const _0x4b2410=_0x1679,_0x12a17f={'AgCgK':function(_0x4ec515,_0x509354){return _0x4ec515<_0x509354;},'ymLSQ':function(_0x366f4c,_0x18f44c){return _0x366f4c-_0x18f44c;}},_0x22022e=_0x4a0f28['split']('.');let _0x1522e7=_0x2b8b34;for(let _0x8eedb=0x0;_0x12a17f[_0x4b2410(0x171)](_0x8eedb,_0x22022e[_0x4b2410(0x154)]-0x1);_0x8eedb++){const _0x522d71=_0x22022e[_0x8eedb],_0x5364cb=_0x1522e7[_0x522d71];(!_0x5364cb||typeof _0x5364cb!==_0x4b2410(0x173)||Array['isArray'](_0x5364cb))&&(_0x1522e7[_0x522d71]={}),_0x1522e7=_0x1522e7[_0x522d71];}_0x1522e7[_0x22022e[_0x12a17f['ymLSQ'](_0x22022e[_0x4b2410(0x154)],0x1)]]=_0xa36072;}function deleteByKeyPath(_0x426b44,_0x58c79f){const _0x3831b8=_0x1679,_0x468952={'LliWE':function(_0x1f5b4b,_0x45c4e1){return _0x1f5b4b!==_0x45c4e1;}},_0x4e6748=_0x58c79f[_0x3831b8(0x161)]('.');let _0x3291bd=_0x426b44;for(let _0x1825ef=0x0;_0x1825ef<_0x4e6748['length']-0x1;_0x1825ef++){const _0x5d2b41=_0x4e6748[_0x1825ef],_0x34c045=_0x3291bd[_0x5d2b41];if(!_0x34c045||_0x468952['LliWE'](typeof _0x34c045,'object')||Array['isArray'](_0x34c045))return![];_0x3291bd=_0x34c045;}const _0x36def2=_0x4e6748[_0x4e6748['length']-0x1];if(!(_0x36def2 in _0x3291bd))return![];return delete _0x3291bd[_0x36def2],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xdc7992,_0x42b393){const _0x3f4910=_0x1276,_0x398ec9=_0xdc7992();while(!![]){try{const _0x510188=-parseInt(_0x3f4910(0x176))/0x1+-parseInt(_0x3f4910(0x182))/0x2*(parseInt(_0x3f4910(0x17f))/0x3)+-parseInt(_0x3f4910(0x17e))/0x4*(-parseInt(_0x3f4910(0x174))/0x5)+parseInt(_0x3f4910(0x17a))/0x6*(parseInt(_0x3f4910(0x172))/0x7)+parseInt(_0x3f4910(0x177))/0x8*(parseInt(_0x3f4910(0x17c))/0x9)+parseInt(_0x3f4910(0x175))/0xa+parseInt(_0x3f4910(0x17b))/0xb*(-parseInt(_0x3f4910(0x181))/0xc);if(_0x510188===_0x42b393)break;else _0x398ec9['push'](_0x398ec9['shift']());}catch(_0x2e8710){_0x398ec9['push'](_0x398ec9['shift']());}}}(_0x1679,0xb4132));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x1276(_0x478c31,_0x12ac14){_0x478c31=_0x478c31-0x172;const _0x167931=_0x1679();let _0x1276ba=_0x167931[_0x478c31];return _0x1276ba;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x5b3f32={'eWpZj':function(_0x5e72d7){return _0x5e72d7();},'HDKzm':'config.json'};return join(_0x5b3f32['eWpZj'](getRangerDir),_0x5b3f32['HDKzm']);}export async function loadRangerConfig(){const _0x2f0e5c=_0x1276,_0x200383={'trWzc':function(_0x2afda0,_0x3942fb){return _0x2afda0(_0x3942fb);},'jVHSm':'utf-8','cdPsK':'object','GkTSg':function(_0x1e1233,_0x1a15c0){return _0x1e1233===_0x1a15c0;},'FguVK':'string','xYliK':function(_0x3d333f,_0x1d4711){return _0x3d333f(_0x1d4711);}},_0x32c964=getRangerConfigPath();if(!_0x200383['trWzc'](existsSync,_0x32c964))return{};try{const _0x58d45=await readFile(_0x32c964,_0x200383[_0x2f0e5c(0x179)]),_0x315709=JSON['parse'](_0x58d45);if(!_0x315709||typeof _0x315709!==_0x200383['cdPsK']||Array['isArray'](_0x315709))return{};const _0x3a9be0={},_0x19a6e1=_0x315709[_0x2f0e5c(0x173)];return _0x200383[_0x2f0e5c(0x178)](typeof _0x19a6e1,_0x200383[_0x2f0e5c(0x183)])&&(_0x3a9be0['model']=_0x19a6e1),_0x3a9be0;}catch(_0x275561){const _0x44996e=_0x275561 instanceof Error?_0x275561['message']:_0x200383[_0x2f0e5c(0x180)](String,_0x275561);return console['warn'](_0x2f0e5c(0x17d)+_0x32c964+':\x20'+_0x44996e),{};}}function _0x1679(){const _0x5b4640=['13154480vfivvG','421064YFQyro','232264apBpyH','GkTSg','jVHSm','1275774PJOegG','2211UzDbSR','117fHdQRX','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','20wdPryv','1059LTyKcD','xYliK','121092nHFfDr','386NAppYd','FguVK','14ykWKwV','model','1136935HUMrTM'];_0x1679=function(){return _0x5b4640;};return _0x1679();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f7fc4,_0x4e45d4){const _0x119491=_0x2961,_0x166b23=_0x5f7fc4();while(!![]){try{const _0x17454f=parseInt(_0x119491(0xe5))/0x1*(parseInt(_0x119491(0xdd))/0x2)+parseInt(_0x119491(0xe3))/0x3+parseInt(_0x119491(0xe8))/0x4+parseInt(_0x119491(0xeb))/0x5+parseInt(_0x119491(0xe2))/0x6*(-parseInt(_0x119491(0xe6))/0x7)+-parseInt(_0x119491(0xe7))/0x8*(-parseInt(_0x119491(0xec))/0x9)+-parseInt(_0x119491(0xdc))/0xa;if(_0x17454f===_0x4e45d4)break;else _0x166b23['push'](_0x166b23['shift']());}catch(_0x5ae3e6){_0x166b23['push'](_0x166b23['shift']());}}}(_0x567d,0xac536));import{dirname,join,parse}from'path';function _0x2961(_0x32798a,_0x3dd5a9){_0x32798a=_0x32798a-0xdc;const _0x567d80=_0x567d();let _0x2961ab=_0x567d80[_0x32798a];return _0x2961ab;}import{existsSync}from'fs';import{homedir}from'os';function _0x567d(){const _0x1c6be3=['4fJHZyS','.ranger','cwd','root','vfogL','18GAdmxD','57000ZMiRwU','PnHuU','454306fWwOdM','1344203WZwhzM','7624CxUuVg','2617800SSPDXb','wWKJR','.git','4935230EKjnls','18QnVBAw','12890810gkxqKr'];_0x567d=function(){return _0x1c6be3;};return _0x567d();}export function getRangerRoot(){const _0x2ce642=_0x2961,_0x1d27bf={'tHVsx':function(_0x5bdc4e,_0x3efe23,_0x2b6629){return _0x5bdc4e(_0x3efe23,_0x2b6629);},'kQMbl':function(_0x3ac07e,_0x51165d){return _0x3ac07e(_0x51165d);},'vfogL':'.ranger','Ecfor':function(_0x3c7a2f){return _0x3c7a2f();}};let _0x46b1a4=process[_0x2ce642(0xdf)]();const _0x32d562=parse(_0x46b1a4)['root'];while(_0x46b1a4!==_0x32d562){if(existsSync(_0x1d27bf['tHVsx'](join,_0x46b1a4,_0x2ce642(0xde))))return _0x46b1a4;_0x46b1a4=_0x1d27bf['kQMbl'](dirname,_0x46b1a4);}if(existsSync(join(_0x32d562,_0x1d27bf[_0x2ce642(0xe1)])))return _0x32d562;const _0x44a6de=_0x1d27bf['Ecfor'](findGitRoot);if(_0x44a6de)return _0x44a6de;return process[_0x2ce642(0xdf)]();}export function getRangerDir(){const _0x21cadd={'FpRRv':function(_0x1a13db,_0x3d53aa,_0x2bc9db){return _0x1a13db(_0x3d53aa,_0x2bc9db);},'fwZqO':'.ranger'};return _0x21cadd['FpRRv'](join,getRangerRoot(),_0x21cadd['fwZqO']);}export function findGitRoot(){const _0x411596=_0x2961,_0x54711c={'FRwtf':function(_0x80bcc2,_0xd4f609){return _0x80bcc2(_0xd4f609);},'PnHuU':function(_0x6f5d8e,_0x237079,_0x5805a4){return _0x6f5d8e(_0x237079,_0x5805a4);},'wWKJR':_0x411596(0xea)};let _0x27fe41=process[_0x411596(0xdf)]();const _0x3f27d1=_0x54711c['FRwtf'](parse,_0x27fe41)[_0x411596(0xe0)];while(_0x27fe41!==_0x3f27d1){if(existsSync(join(_0x27fe41,'.git')))return _0x27fe41;_0x27fe41=_0x54711c['FRwtf'](dirname,_0x27fe41);}if(existsSync(_0x54711c[_0x411596(0xe4)](join,_0x3f27d1,_0x54711c[_0x411596(0xe9)])))return _0x3f27d1;return null;}export function getRangerHomeDir(){return join(homedir(),'.ranger');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x596cf0,_0x207c68){const _0x1327c1=_0x37da,_0x30e0ba=_0x596cf0();while(!![]){try{const _0x419586=parseInt(_0x1327c1(0x138))/0x1*(parseInt(_0x1327c1(0x11b))/0x2)+parseInt(_0x1327c1(0x109))/0x3*(-parseInt(_0x1327c1(0x113))/0x4)+-parseInt(_0x1327c1(0x134))/0x5*(-parseInt(_0x1327c1(0x12f))/0x6)+parseInt(_0x1327c1(0x12d))/0x7*(-parseInt(_0x1327c1(0x10c))/0x8)+parseInt(_0x1327c1(0x135))/0x9+parseInt(_0x1327c1(0x122))/0xa*(parseInt(_0x1327c1(0x11f))/0xb)+parseInt(_0x1327c1(0x11d))/0xc*(parseInt(_0x1327c1(0x12b))/0xd);if(_0x419586===_0x207c68)break;else _0x30e0ba['push'](_0x30e0ba['shift']());}catch(_0x2813e5){_0x30e0ba['push'](_0x30e0ba['shift']());}}}(_0x3beb,0x5b983));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY='rangerwright';function readPackageJson(_0xa4e862){const _0x5996ff=_0x37da,_0x2cf63c={'bGKHR':'utf-8'},_0x1fc1f4=readFileSync(_0xa4e862,_0x2cf63c[_0x5996ff(0x129)]),_0x16cd86=JSON['parse'](_0x1fc1f4);if(!_0x16cd86||typeof _0x16cd86!=='object')return{};return _0x16cd86;}export function resolveRangerwrightCliBinary(){const _0x514def=_0x37da,_0x365530={'aLrLO':function(_0x2ba52c,_0x2e038f){return _0x2ba52c(_0x2e038f);},'hHPVk':'string','idjyH':function(_0xa351ec,_0x5b0fc0,_0x3feb2a){return _0xa351ec(_0x5b0fc0,_0x3feb2a);}},_0x332477=createRequire(process['argv'][0x1]||join(process[_0x514def(0x12e)](),_0x514def(0x137))),_0x155ac4=_0x332477['resolve'](RANGERWRIGHT_CLI_PACKAGE+_0x514def(0x124)),_0x33b2a7=dirname(_0x155ac4),_0x4bf620=_0x365530['aLrLO'](readPackageJson,_0x155ac4),_0x2bc3de=typeof _0x4bf620[_0x514def(0x139)]===_0x365530['hHPVk']?_0x4bf620[_0x514def(0x139)]:_0x4bf620[_0x514def(0x139)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x2bc3de)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x514def(0x123)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return _0x365530[_0x514def(0x10f)](join,_0x33b2a7,_0x2bc3de);}function _0x37da(_0x1065d4,_0x48eaaa){_0x1065d4=_0x1065d4-0x103;const _0x3beb23=_0x3beb();let _0x37da8b=_0x3beb23[_0x1065d4];return _0x37da8b;}export function buildRangerwrightCliEnv(_0x4f55ad){const _0x5c4f93=_0x37da;return{'RANGERWRIGHT_SESSION':_0x4f55ad[_0x5c4f93(0x136)],'RANGERWRIGHT_CONFIG':_0x4f55ad[_0x5c4f93(0x125)],'RANGERWRIGHT_ARTIFACT_DIR':_0x4f55ad['artifactDir'],..._0x4f55ad['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0x4f55ad[_0x5c4f93(0x104)]}:{}};}export function applyRangerwrightCliEnv(_0x2061c3,_0x28df61){Object['assign'](_0x2061c3,buildRangerwrightCliEnv(_0x28df61));}export function buildRangerwrightCliCommandPrefix(_0x3bf3fe=resolveRangerwrightCliBinary()){const _0x572e79=_0x37da;return quoteShellArg(_0x3bf3fe)+_0x572e79(0x116);}function _0x3beb(){const _0x160c41=['306713yfbvBx','QmkhE','LAxYZ','100cKbuIi','\x20does\x20not\x20expose\x20a\x20','/package.json','configPath','GSqXV','vQpQl','null','bGKHR','toString','1507025EfFiqL','FjBrA','7cXkVPl','cwd','1678188mVtqFX','rangerwright-cli\x20','stdout','ignore','DBcPh','5xNewAt','383157lCIjXf','sessionId','package.json','425GKVjyo','bin','DmrnI','socketPath','exited\x20with\x20code=','length','ypwxI','SIGKILL','3yWOHnf','unknown','XwZaL','4443864yVFUxP','args','--json','idjyH','stderr','env','kill','2204788ozDKAK','dMhvg','timeoutMs','\x20--json','subcommand','GEVkl','tofpO','GxTGh','326ESHjPr','\x20signal=','84uXIHhM','error'];_0x3beb=function(){return _0x160c41;};return _0x3beb();}function getRangerwrightSubcommand(_0x29ed21){const _0x520668=_0x37da,_0x3e3a29={'DmrnI':_0x520668(0x10a)};return _0x29ed21[0x0]??_0x3e3a29[_0x520668(0x103)];}export function buildRangerwrightCliInvocation(_0x113038,_0x248657){const _0x8c3fe3=_0x37da,_0x1325a6={'DBcPh':function(_0x1ea29c,_0x70238b){return _0x1ea29c(_0x70238b);}},_0x44b744=_0x113038['binaryPath']??resolveRangerwrightCliBinary(),_0x5772ca=['--json',..._0x248657];return{'command':_0x44b744,'args':_0x5772ca,'shellCommand':[_0x1325a6[_0x8c3fe3(0x133)](quoteShellArg,_0x44b744),_0x8c3fe3(0x10e),..._0x248657['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x1325a6[_0x8c3fe3(0x133)](getRangerwrightSubcommand,_0x248657)};}function truncateOutput(_0x556f02,_0x1a115f=0x7d0){const _0xc53bd6=_0x37da,_0x933e35={'EzncO':function(_0x24ca95,_0x156647){return _0x24ca95+_0x156647;},'XwZaL':'...'};return _0x556f02[_0xc53bd6(0x106)]>_0x1a115f?_0x933e35['EzncO'](_0x556f02['slice'](0x0,_0x1a115f),_0x933e35[_0xc53bd6(0x10b)]):_0x556f02;}export async function runRangerwrightCliCommand(_0x1bc6f6){const _0x24cbf9=_0x37da,_0x1c2613={'ypwxI':'null','GSqXV':function(_0x596d37,_0x5932e4){return _0x596d37(_0x5932e4);},'FjBrA':function(_0x14124a,_0x267804,_0x1fdccc,_0x347a93){return _0x14124a(_0x267804,_0x1fdccc,_0x347a93);},'hcBuh':_0x24cbf9(0x132),'QmkhE':function(_0x3477f7,_0x491878){return _0x3477f7>_0x491878;},'GxTGh':function(_0xf9c5ba,_0x239dc8,_0x56782e){return _0xf9c5ba(_0x239dc8,_0x56782e);},'LAxYZ':'data','oIoWh':_0x24cbf9(0x11e),'tofpO':'close'},_0xea8eb7=buildRangerwrightCliInvocation(_0x1bc6f6,_0x1bc6f6['commandArgs']),_0x2e45c0={..._0x1bc6f6['env']??process[_0x24cbf9(0x111)],..._0x1c2613[_0x24cbf9(0x126)](buildRangerwrightCliEnv,_0x1bc6f6)};return new Promise((_0x45fb16,_0x17f621)=>{const _0x12763e=_0x24cbf9,_0x14fbe1={'dMhvg':'SIGTERM','vQpQl':function(_0x2214ce,_0x49a0b7){return _0x2214ce(_0x49a0b7);},'LNxzC':function(_0x8cd29e,_0x2aa463){return _0x8cd29e(_0x2aa463);},'hAkad':function(_0x2ce5ac,_0x3d620a){return _0x2ce5ac??_0x3d620a;},'GEVkl':_0x1c2613[_0x12763e(0x107)],'dgsNP':function(_0x9e9acd,_0x398ef5){return _0x1c2613['GSqXV'](_0x9e9acd,_0x398ef5);}},_0x507eeb=_0x1c2613[_0x12763e(0x12c)](spawn,_0xea8eb7['command'],_0xea8eb7[_0x12763e(0x10d)],{'cwd':_0x1bc6f6[_0x12763e(0x12e)],'env':_0x2e45c0,'stdio':[_0x1c2613['hcBuh'],'pipe','pipe']});let _0x22b4d9='',_0x4755c3='',_0x3759ad=![];const _0x329374=_0x1bc6f6['timeoutMs']&&_0x1c2613[_0x12763e(0x120)](_0x1bc6f6['timeoutMs'],0x0)?_0x1c2613[_0x12763e(0x11a)](setTimeout,()=>{const _0x24f949=_0x12763e;_0x3759ad=!![],_0x507eeb[_0x24f949(0x112)](_0x14fbe1[_0x24f949(0x114)]),setTimeout(()=>{const _0x4d1337=_0x24f949;try{_0x507eeb[_0x4d1337(0x112)](_0x4d1337(0x108));}catch{}},0x3e8);},_0x1bc6f6[_0x12763e(0x115)]):null;_0x507eeb[_0x12763e(0x131)]?.['on'](_0x1c2613[_0x12763e(0x121)],_0x73bb87=>{const _0x56e1ed=_0x12763e;_0x22b4d9+=_0x73bb87[_0x56e1ed(0x12a)]();}),_0x507eeb[_0x12763e(0x110)]?.['on']('data',_0x2c3189=>{const _0x1c8729=_0x12763e;_0x4755c3+=_0x2c3189[_0x1c8729(0x12a)]();}),_0x507eeb['on'](_0x1c2613['oIoWh'],_0x59a6e9=>{if(_0x329374)_0x14fbe1['vQpQl'](clearTimeout,_0x329374);_0x17f621(_0x59a6e9);}),_0x507eeb['on'](_0x1c2613[_0x12763e(0x119)],(_0x23f8ef,_0x397a38)=>{const _0x979d24=_0x12763e;if(_0x329374)_0x14fbe1[_0x979d24(0x127)](clearTimeout,_0x329374);if(_0x23f8ef===0x0){_0x14fbe1['LNxzC'](_0x45fb16,{'stdout':_0x22b4d9,'stderr':_0x4755c3,'invocation':_0xea8eb7});return;}const _0x5b9950=_0x3759ad?'timed\x20out\x20after\x20'+_0x1bc6f6[_0x979d24(0x115)]+'ms':_0x979d24(0x105)+_0x14fbe1['hAkad'](_0x23f8ef,_0x14fbe1[_0x979d24(0x118)])+_0x979d24(0x11c)+(_0x397a38??_0x979d24(0x128));_0x14fbe1['dgsNP'](_0x17f621,new Error(_0x979d24(0x130)+_0xea8eb7[_0x979d24(0x117)]+'\x20'+_0x5b9950+'\x0astdout:\x20'+_0x14fbe1['dgsNP'](truncateOutput,_0x22b4d9)+'\x0astderr:\x20'+truncateOutput(_0x4755c3)));});});}export function parseRangerwrightCliCommand(_0x3afbd4){const _0x3581e5=_0x3afbd4['match'](/(?:^|\s)(?:"[^"]*rangerwright(?:\/build\/cli\.js)?"|'[^']*rangerwright(?:\/build\/cli\.js)?'|\S*rangerwright(?:\/build\/cli\.js)?)(?:\s+--json)?\s+([a-z-]+)/);return _0x3581e5?.[0x1]??null;}
|