@ranger-testing/ranger-cli 3.0.1-alpha.d9f4572-27 → 3.0.1-alpha.ffffb5b-28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/playwrightCli.js +1 -1
  60. package/build/commands/utils/profileMessages.js +1 -1
  61. package/build/commands/utils/profileSetupBanner.js +1 -1
  62. package/build/commands/utils/projectsConfig.js +1 -1
  63. package/build/commands/utils/rangerConfig.js +1 -1
  64. package/build/commands/utils/rangerRoot.js +1 -1
  65. package/build/commands/utils/resolveProfileContext.js +1 -1
  66. package/build/commands/utils/resolveProfileUrl.js +1 -1
  67. package/build/commands/utils/retry.js +1 -1
  68. package/build/commands/utils/sessionCache.js +1 -1
  69. package/build/commands/utils/settings.js +1 -1
  70. package/build/commands/utils/skillContent.js +1 -1
  71. package/build/commands/utils/skills.js +1 -1
  72. package/build/commands/utils/stitchWebmFiles.js +1 -1
  73. package/build/commands/utils/telemetry.js +1 -1
  74. package/build/commands/utils/tokenRefresh.js +1 -1
  75. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  76. package/build/commands/utils/userApi.js +1 -1
  77. package/build/commands/utils/version.js +1 -1
  78. package/build/commands/verifyFeature.js +1 -1
  79. package/build/commands/verifyFeatureCli.js +1 -1
  80. package/build/commands/verifyFeatureNovaCli.js +1 -1
  81. package/package.json +2 -2
@@ -1 +1 @@
1
- const _0xa73dda=_0x5006;(function(_0x1b58d9,_0x5b612d){const _0xc972c4=_0x5006,_0x22dbe7=_0x1b58d9();while(!![]){try{const _0x3c8ced=-parseInt(_0xc972c4(0x194))/0x1+parseInt(_0xc972c4(0x1ae))/0x2+parseInt(_0xc972c4(0x196))/0x3*(-parseInt(_0xc972c4(0x180))/0x4)+parseInt(_0xc972c4(0x192))/0x5*(parseInt(_0xc972c4(0x198))/0x6)+parseInt(_0xc972c4(0x1ac))/0x7*(-parseInt(_0xc972c4(0x1a8))/0x8)+parseInt(_0xc972c4(0x1ab))/0x9*(-parseInt(_0xc972c4(0x18d))/0xa)+parseInt(_0xc972c4(0x17a))/0xb;if(_0x3c8ced===_0x5b612d)break;else _0x22dbe7['push'](_0x22dbe7['shift']());}catch(_0x1163e4){_0x22dbe7['push'](_0x22dbe7['shift']());}}}(_0x6fac,0x4d636));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0xa73dda(0x1aa);function toPlaywrightCliSessionKey(_0x116ee1){const _0x203b85=_0xa73dda,_0x4ffdb9={'XGvIb':_0x203b85(0x199)},_0x58872e=createHash(_0x4ffdb9['XGvIb'])[_0x203b85(0x18c)](_0x116ee1)['digest'](_0x203b85(0x1af))[_0x203b85(0x186)](0x0,0xc);return'rg-'+_0x58872e;}function shellQuote(_0x17f73d){const _0x371d2e=_0xa73dda;return'\x27'+_0x17f73d['replace'](/'/g,_0x371d2e(0x17f))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x10d1fb){const _0x16fcb8=_0xa73dda,_0x42a010={'wxChx':function(_0x2eb83d,_0x35ccee){return _0x2eb83d(_0x35ccee);}};return SAFE_SHELL_TOKEN[_0x16fcb8(0x17e)](_0x10d1fb)?_0x10d1fb:_0x42a010['wxChx'](shellQuote,_0x10d1fb);}function _0x6fac(){const _0x44ae4a=['...','env','-s=','timed\x20out\x20after\x20','playwright-cli\x20','null','wvmGT','close','cmd','pipe','EYkRN','656fnTthV','string','@playwright/cli','146493DMsNTd','42112nJaDuB','EXsxp','1146640uLqGpQ','hex','--config','\x0astdout:\x20','Jyfqn','join','length','8356678ofDZYX','unknown','stderr','GhNbK','test','\x27\x5c\x27\x27','4TnkVOZ','zCXvw','configPath','exited\x20with\x20code=','find','stdout','slice','match','SIGTERM','timeoutMs','values','script','update','170WLlAEu','tRKDk','zBiaa','oDZGe','toString','105Elvgvr','kill','632105pShxAn','DrXMp','41376jovuSe','npx','114252QDymMw','sha256','bash_command','args','pgXeg'];_0x6fac=function(){return _0x44ae4a;};return _0x6fac();}function _0x5006(_0x2c3908,_0x462ddd){_0x2c3908=_0x2c3908-0x17a;const _0x6fac48=_0x6fac();let _0x5006ad=_0x6fac48[_0x2c3908];return _0x5006ad;}export function buildPlaywrightCliInvocation(_0x15eb40,_0x5c6fab,_0x153c0f){const _0x55aab9=_0xa73dda,_0x4ebeca={'EbwwX':_0x55aab9(0x17b),'qkBzr':_0x55aab9(0x197),'EXsxp':function(_0x4939ec,_0x1f1dec){return _0x4939ec(_0x1f1dec);},'DrXMp':_0x55aab9(0x1b0)},_0x318a2c=toPlaywrightCliSessionKey(_0x15eb40),[_0x21ad8b=_0x4ebeca['EbwwX']]=_0x153c0f,_0x34d7bb=[PLAYWRIGHT_CLI_BINARY,_0x55aab9(0x19f)+_0x318a2c,'--config',_0x5c6fab,..._0x153c0f];return{'command':'npx','args':_0x34d7bb,'shellCommand':[_0x4ebeca['qkBzr'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x4ebeca[_0x55aab9(0x1ad)](quoteShellArg,_0x318a2c),_0x4ebeca[_0x55aab9(0x195)],quoteShellArg(_0x5c6fab),..._0x153c0f['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x21ad8b};}export function buildPlaywrightCliCommandPrefix(_0x55620d,_0x2278f){const _0x567fef=_0xa73dda,_0x514013={'fDXDf':function(_0x104c58,_0x202aa5){return _0x104c58(_0x202aa5);},'GhNbK':_0x567fef(0x1b0)},_0x711950=_0x514013['fDXDf'](toPlaywrightCliSessionKey,_0x55620d);return[_0x567fef(0x197),PLAYWRIGHT_CLI_BINARY,_0x567fef(0x19f)+_0x514013['fDXDf'](quoteShellArg,_0x711950),_0x514013[_0x567fef(0x17d)],quoteShellArg(_0x2278f)][_0x567fef(0x1b3)]('\x20');}function truncateOutput(_0x58a294,_0x16c029=0x7d0){const _0x1ee737=_0xa73dda,_0xc7427d={'zCXvw':function(_0xaf4f6a,_0x37c351){return _0xaf4f6a+_0x37c351;}};return _0x58a294[_0x1ee737(0x1b4)]>_0x16c029?_0xc7427d[_0x1ee737(0x181)](_0x58a294[_0x1ee737(0x186)](0x0,_0x16c029),_0x1ee737(0x19d)):_0x58a294;}export async function runPlaywrightCliCommand(_0x20e722){const _0x3049ac=_0xa73dda,_0x28954c={'gsIFh':function(_0x22ba43,_0x2316c3){return _0x22ba43(_0x2316c3);},'oDZGe':_0x3049ac(0x1a2),'ksVQT':function(_0x42b966,_0xd18f9,_0x13ad67,_0x96484f){return _0x42b966(_0xd18f9,_0x13ad67,_0x96484f);},'pgXeg':'ignore','EYkRN':_0x3049ac(0x1a6)},_0x2cc845=buildPlaywrightCliInvocation(_0x20e722['sessionId'],_0x20e722[_0x3049ac(0x182)],_0x20e722['commandArgs']);return new Promise((_0x1137d9,_0x5d49bb)=>{const _0x50f45a=_0x3049ac,_0x165259={'wvmGT':function(_0x37c59d,_0x4b7f9b){return _0x37c59d===_0x4b7f9b;},'tRKDk':function(_0x325506,_0x45c6d2){return _0x28954c['gsIFh'](_0x325506,_0x45c6d2);},'notlk':function(_0x4a6a0d,_0x19a4f2){return _0x4a6a0d??_0x19a4f2;},'zBiaa':_0x28954c[_0x50f45a(0x190)],'qFymY':function(_0x28e265,_0x559320){return _0x28e265(_0x559320);}},_0x3122ba=_0x28954c['ksVQT'](spawn,_0x2cc845['command'],_0x2cc845[_0x50f45a(0x19b)],{'cwd':_0x20e722['cwd'],'env':_0x20e722[_0x50f45a(0x19e)],'stdio':[_0x28954c[_0x50f45a(0x19c)],_0x28954c[_0x50f45a(0x1a7)],_0x50f45a(0x1a6)]});let _0x583844='',_0x13c678='',_0x504d66=![];const _0x44831e=_0x20e722[_0x50f45a(0x189)]&&_0x20e722[_0x50f45a(0x189)]>0x0?setTimeout(()=>{const _0x428498=_0x50f45a;_0x504d66=!![],_0x3122ba[_0x428498(0x193)](_0x428498(0x188)),setTimeout(()=>{const _0x37c9f7=_0x428498;try{_0x3122ba[_0x37c9f7(0x193)]('SIGKILL');}catch{}},0x3e8);},_0x20e722['timeoutMs']):null;_0x3122ba[_0x50f45a(0x185)]?.['on']('data',_0x8112cd=>{const _0x1640ad=_0x50f45a;_0x583844+=_0x8112cd[_0x1640ad(0x191)]();}),_0x3122ba[_0x50f45a(0x17c)]?.['on']('data',_0x3f2fe1=>{const _0x2b31e6=_0x50f45a;_0x13c678+=_0x3f2fe1[_0x2b31e6(0x191)]();}),_0x3122ba['on']('error',_0x43bc01=>{if(_0x44831e)_0x28954c['gsIFh'](clearTimeout,_0x44831e);_0x5d49bb(_0x43bc01);}),_0x3122ba['on'](_0x50f45a(0x1a4),(_0x1ba33d,_0x1c82de)=>{const _0x5671e4=_0x50f45a;if(_0x44831e)clearTimeout(_0x44831e);if(_0x165259[_0x5671e4(0x1a3)](_0x1ba33d,0x0)){_0x165259['tRKDk'](_0x1137d9,{'stdout':_0x583844,'stderr':_0x13c678,'invocation':_0x2cc845});return;}const _0x100230=_0x504d66?_0x5671e4(0x1a0)+_0x20e722[_0x5671e4(0x189)]+'ms':_0x5671e4(0x183)+(_0x1ba33d??_0x5671e4(0x1a2))+'\x20signal='+_0x165259['notlk'](_0x1c82de,_0x165259[_0x5671e4(0x18f)]);_0x5d49bb(new Error(_0x5671e4(0x1a1)+_0x2cc845['subcommand']+'\x20'+_0x100230+_0x5671e4(0x1b1)+_0x165259['qFymY'](truncateOutput,_0x583844)+'\x0astderr:\x20'+_0x165259[_0x5671e4(0x18e)](truncateOutput,_0x13c678)));});});}export function extractBashCommand(_0xb40eff){const _0xb90023=_0xa73dda,_0x510ff0={'ArhFN':_0xb90023(0x1a5),'Jyfqn':function(_0x1c847d,_0x5c9f6b){return _0x1c847d===_0x5c9f6b;},'qGfcl':'string'},_0x2e4b5c=['command',_0x510ff0['ArhFN'],_0xb90023(0x18b),_0xb90023(0x19a)];for(const _0x29ffad of _0x2e4b5c){const _0xa59fe3=_0xb40eff[_0x29ffad];if(_0x510ff0[_0xb90023(0x1b2)](typeof _0xa59fe3,_0x510ff0['qGfcl'])&&_0xa59fe3['trim']())return _0xa59fe3;}const _0xbc272f=Object[_0xb90023(0x18a)](_0xb40eff)[_0xb90023(0x184)](_0x4698a7=>typeof _0x4698a7===_0xb90023(0x1a9)&&_0x4698a7['trim']()[_0xb90023(0x1b4)]>0x0);return _0xbc272f??null;}export function parsePlaywrightCliCommand(_0x483a86){const _0x1d1f0f=_0xa73dda,_0x4a0463=_0x483a86[_0x1d1f0f(0x187)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4a0463?.[0x1]??null;}
1
+ (function(_0x1ba091,_0x1cae31){const _0x37f54c=_0x3338,_0x34a5e5=_0x1ba091();while(!![]){try{const _0x42b203=parseInt(_0x37f54c(0xbd))/0x1*(parseInt(_0x37f54c(0xdf))/0x2)+-parseInt(_0x37f54c(0xb2))/0x3*(parseInt(_0x37f54c(0xe2))/0x4)+parseInt(_0x37f54c(0xb4))/0x5*(parseInt(_0x37f54c(0xb8))/0x6)+parseInt(_0x37f54c(0xb7))/0x7*(parseInt(_0x37f54c(0xe0))/0x8)+parseInt(_0x37f54c(0xd9))/0x9+parseInt(_0x37f54c(0xdb))/0xa*(parseInt(_0x37f54c(0xe3))/0xb)+parseInt(_0x37f54c(0xbf))/0xc*(-parseInt(_0x37f54c(0xb5))/0xd);if(_0x42b203===_0x1cae31)break;else _0x34a5e5['push'](_0x34a5e5['shift']());}catch(_0x20f31d){_0x34a5e5['push'](_0x34a5e5['shift']());}}}(_0x4c20,0xd531b));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function _0x3338(_0x5a2c12,_0x38dd84){_0x5a2c12=_0x5a2c12-0xae;const _0x4c2021=_0x4c20();let _0x33385d=_0x4c2021[_0x5a2c12];return _0x33385d;}function toPlaywrightCliSessionKey(_0x5a6983){const _0x2ecfb3=_0x3338,_0x3c0a91={'wbPDL':function(_0x32250c,_0x3b20ab){return _0x32250c(_0x3b20ab);},'mvIcl':_0x2ecfb3(0xd0),'QqJDX':_0x2ecfb3(0xce)},_0x20cb02=_0x3c0a91['wbPDL'](createHash,_0x3c0a91[_0x2ecfb3(0xd7)])['update'](_0x5a6983)[_0x2ecfb3(0xb9)](_0x3c0a91['QqJDX'])[_0x2ecfb3(0xc8)](0x0,0xc);return'rg-'+_0x20cb02;}function shellQuote(_0x56165d){const _0x21c36c=_0x3338;return'\x27'+_0x56165d['replace'](/'/g,_0x21c36c(0xb3))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x3d8300){const _0x10fa14=_0x3338;return SAFE_SHELL_TOKEN[_0x10fa14(0xc9)](_0x3d8300)?_0x3d8300:shellQuote(_0x3d8300);}function _0x4c20(){const _0x5ebaac=['mvIcl','SIGKILL','3958821NRQsyV','\x20signal=','3136690RwHeQC','MyrET','args','Jceam','2UmQwWP','900696zaGeKx','toString','161948vmuHRe','44vcwywQ','null','command','commandArgs','cIMpx','tUWne','sessionId','-s=','\x0astdout:\x20','values','90tWnOUm','\x27\x5c\x27\x27','5yozipe','65uamQkQ','length','84wnYtMM','3310332bZdxDO','digest','LGjAk','AwYAb','data','20867dtQglB','cmd','3672780IOkCpW','soZqC','ignore','close','yDPwB','kill','script','gKCxh','timeoutMs','slice','test','find','subcommand','VODtd','cwd','hex','\x0astderr:\x20','sha256','--config','Bcrph','znzth','string','pipe','wExSb'];_0x4c20=function(){return _0x5ebaac;};return _0x4c20();}export function buildPlaywrightCliInvocation(_0x5b24fb,_0x3bd86e,_0x28b991){const _0x40eae2=_0x3338,_0x40b83a={'tYPsb':'npx','wExSb':function(_0x3467f3,_0x49f8fb){return _0x3467f3(_0x49f8fb);},'gKCxh':_0x40eae2(0xd1)},_0x34102c=toPlaywrightCliSessionKey(_0x5b24fb),[_0x178f44='unknown']=_0x28b991,_0x2bd4d3=[PLAYWRIGHT_CLI_BINARY,_0x40eae2(0xaf)+_0x34102c,'--config',_0x3bd86e,..._0x28b991];return{'command':_0x40b83a['tYPsb'],'args':_0x2bd4d3,'shellCommand':[_0x40b83a['tYPsb'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x40b83a[_0x40eae2(0xd6)](quoteShellArg,_0x34102c),_0x40b83a[_0x40eae2(0xc6)],quoteShellArg(_0x3bd86e),..._0x28b991['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x178f44};}export function buildPlaywrightCliCommandPrefix(_0x36350,_0xffd1c3){const _0x4f7f98={'lGbov':function(_0xfce785,_0x385ab1){return _0xfce785(_0x385ab1);},'LdNzG':'--config'},_0x3755b5=_0x4f7f98['lGbov'](toPlaywrightCliSessionKey,_0x36350);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x3755b5),_0x4f7f98['LdNzG'],quoteShellArg(_0xffd1c3)]['join']('\x20');}function truncateOutput(_0x172d80,_0x4b9b09=0x7d0){const _0x32da3e=_0x3338,_0x29405a={'gLBYl':function(_0x5e2e7a,_0x1108d6){return _0x5e2e7a>_0x1108d6;},'gtjZd':function(_0x57747f,_0x35b41c){return _0x57747f+_0x35b41c;},'MyrET':'...'};return _0x29405a['gLBYl'](_0x172d80[_0x32da3e(0xb6)],_0x4b9b09)?_0x29405a['gtjZd'](_0x172d80['slice'](0x0,_0x4b9b09),_0x29405a[_0x32da3e(0xdc)]):_0x172d80;}export async function runPlaywrightCliCommand(_0x2fe03d){const _0x21cc7d=_0x3338,_0x3c87fe={'mInrz':function(_0x228f66,_0x2fc513){return _0x228f66(_0x2fc513);},'QVdXX':function(_0x1cbf10,_0x2e46a8){return _0x1cbf10(_0x2e46a8);},'PgcoW':function(_0x341ca6,_0xadb81c){return _0x341ca6??_0xadb81c;},'cIMpx':function(_0x43e1d1,_0x2e9efb,_0x4e23fc,_0x258af5){return _0x43e1d1(_0x2e9efb,_0x4e23fc,_0x258af5);},'yDPwB':_0x21cc7d(0xd5),'tUWne':function(_0x2d4f6a,_0x1cfd2c){return _0x2d4f6a>_0x1cfd2c;},'LGjAk':function(_0x3e1d78,_0xd8a5cc,_0x24948e){return _0x3e1d78(_0xd8a5cc,_0x24948e);},'soZqC':_0x21cc7d(0xc2),'IcWFj':function(_0x2f1df7,_0x59c4c6,_0x43a9aa,_0x20ee01){return _0x2f1df7(_0x59c4c6,_0x43a9aa,_0x20ee01);}},_0x1a628a=_0x3c87fe['IcWFj'](buildPlaywrightCliInvocation,_0x2fe03d[_0x21cc7d(0xae)],_0x2fe03d['configPath'],_0x2fe03d[_0x21cc7d(0xe6)]);return new Promise((_0x1a44d2,_0x4797c8)=>{const _0x328635=_0x21cc7d,_0x1359a3={'SLPMD':'SIGTERM','Jceam':function(_0x35fe34,_0x33b72a){return _0x3c87fe['mInrz'](_0x35fe34,_0x33b72a);},'msxUI':function(_0x317b10,_0xb25d8c){return _0x3c87fe['QVdXX'](_0x317b10,_0xb25d8c);},'VODtd':function(_0x161d97,_0x519526){return _0x161d97??_0x519526;},'hIpcI':function(_0x1c6cbd,_0x3e6606){return _0x3c87fe['PgcoW'](_0x1c6cbd,_0x3e6606);},'tjBDa':'null'},_0x2bfd3a=_0x3c87fe[_0x328635(0xe7)](spawn,_0x1a628a['command'],_0x1a628a[_0x328635(0xdd)],{'cwd':_0x2fe03d[_0x328635(0xcd)],'env':_0x2fe03d['env'],'stdio':[_0x328635(0xc1),_0x3c87fe[_0x328635(0xc3)],_0x3c87fe['yDPwB']]});let _0x54d91b='',_0x10dc3a='',_0x4d6e3f=![];const _0x9b13bd=_0x2fe03d['timeoutMs']&&_0x3c87fe[_0x328635(0xe8)](_0x2fe03d[_0x328635(0xc7)],0x0)?_0x3c87fe[_0x328635(0xba)](setTimeout,()=>{_0x4d6e3f=!![],_0x2bfd3a['kill'](_0x1359a3['SLPMD']),setTimeout(()=>{const _0x4adbd8=_0x3338;try{_0x2bfd3a[_0x4adbd8(0xc4)](_0x4adbd8(0xd8));}catch{}},0x3e8);},_0x2fe03d['timeoutMs']):null;_0x2bfd3a['stdout']?.['on'](_0x328635(0xbc),_0x124efa=>{const _0x3297af=_0x328635;_0x54d91b+=_0x124efa[_0x3297af(0xe1)]();}),_0x2bfd3a['stderr']?.['on']('data',_0x5a0e1a=>{const _0x1cdeb7=_0x328635;_0x10dc3a+=_0x5a0e1a[_0x1cdeb7(0xe1)]();}),_0x2bfd3a['on']('error',_0x1b069d=>{if(_0x9b13bd)clearTimeout(_0x9b13bd);_0x4797c8(_0x1b069d);}),_0x2bfd3a['on'](_0x3c87fe[_0x328635(0xc0)],(_0x33e04f,_0x2015a5)=>{const _0x5810ff=_0x328635;if(_0x9b13bd)_0x1359a3[_0x5810ff(0xde)](clearTimeout,_0x9b13bd);if(_0x33e04f===0x0){_0x1359a3['msxUI'](_0x1a44d2,{'stdout':_0x54d91b,'stderr':_0x10dc3a,'invocation':_0x1a628a});return;}const _0x4cff81=_0x4d6e3f?'timed\x20out\x20after\x20'+_0x2fe03d['timeoutMs']+'ms':'exited\x20with\x20code='+_0x1359a3[_0x5810ff(0xcc)](_0x33e04f,_0x5810ff(0xe4))+_0x5810ff(0xda)+_0x1359a3['hIpcI'](_0x2015a5,_0x1359a3['tjBDa']);_0x1359a3['msxUI'](_0x4797c8,new Error('playwright-cli\x20'+_0x1a628a[_0x5810ff(0xcb)]+'\x20'+_0x4cff81+_0x5810ff(0xb0)+_0x1359a3[_0x5810ff(0xde)](truncateOutput,_0x54d91b)+_0x5810ff(0xcf)+truncateOutput(_0x10dc3a)));});});}export function extractBashCommand(_0x4acb4e){const _0x4b4f15=_0x3338,_0x21ef14={'qUOXo':_0x4b4f15(0xe5),'znzth':_0x4b4f15(0xc5),'Bcrph':function(_0x249ed0,_0x266a01){return _0x249ed0===_0x266a01;},'AwYAb':'string'},_0xb4ff92=[_0x21ef14['qUOXo'],_0x4b4f15(0xbe),_0x21ef14[_0x4b4f15(0xd3)],'bash_command'];for(const _0x11a1dc of _0xb4ff92){const _0x89f10e=_0x4acb4e[_0x11a1dc];if(_0x21ef14[_0x4b4f15(0xd2)](typeof _0x89f10e,_0x21ef14[_0x4b4f15(0xbb)])&&_0x89f10e['trim']())return _0x89f10e;}const _0xec5479=Object[_0x4b4f15(0xb1)](_0x4acb4e)[_0x4b4f15(0xca)](_0x1354a7=>typeof _0x1354a7===_0x4b4f15(0xd4)&&_0x1354a7['trim']()['length']>0x0);return _0xec5479??null;}export function parsePlaywrightCliCommand(_0x56ff2f){const _0x443312=_0x56ff2f['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x443312?.[0x1]??null;}
@@ -1 +1 @@
1
- const _0x127504=_0x59e4;function _0x59e4(_0x49a4a6,_0x317bee){_0x49a4a6=_0x49a4a6-0xf0;const _0x4c768f=_0x4c76();let _0x59e4f4=_0x4c768f[_0x49a4a6];return _0x59e4f4;}function _0x4c76(){const _0x4bfd50=['4iFTRxn','12645281vRZIOt','1668990jqfSGP','4912200obqGJA','2869626tgONQn','53718feSamQ','ranger\x20profile\x20add\x20local','7efoXaY','31KZUoRW','2325275qTyhip','9FnaMpZ','3013671gfZyLq','12nrhgrZ'];_0x4c76=function(){return _0x4bfd50;};return _0x4c76();}(function(_0x529c0d,_0x549033){const _0x1835b5=_0x59e4,_0xabed2f=_0x529c0d();while(!![]){try{const _0x424184=-parseInt(_0x1835b5(0xf1))/0x1*(parseInt(_0x1835b5(0xfb))/0x2)+-parseInt(_0x1835b5(0xf4))/0x3*(-parseInt(_0x1835b5(0xf6))/0x4)+parseInt(_0x1835b5(0xf2))/0x5+-parseInt(_0x1835b5(0xfa))/0x6*(parseInt(_0x1835b5(0xf0))/0x7)+-parseInt(_0x1835b5(0xf9))/0x8+-parseInt(_0x1835b5(0xf3))/0x9*(parseInt(_0x1835b5(0xf8))/0xa)+parseInt(_0x1835b5(0xf7))/0xb*(parseInt(_0x1835b5(0xf5))/0xc);if(_0x424184===_0x549033)break;else _0xabed2f['push'](_0xabed2f['shift']());}catch(_0x3baa56){_0xabed2f['push'](_0xabed2f['shift']());}}}(_0x4c76,0x80bff));const DEFAULT_PROFILE_COMMAND=_0x127504(0xfc);export function formatProfileRequiredMessage(_0x331808){const _0x217871=_0x331808?_0x331808(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'+_0x217871+'.';}
1
+ (function(_0x5d285f,_0x318a42){const _0x516ebf=_0x115a,_0x163d55=_0x5d285f();while(!![]){try{const _0x1fcce3=-parseInt(_0x516ebf(0x6d))/0x1*(parseInt(_0x516ebf(0x72))/0x2)+parseInt(_0x516ebf(0x71))/0x3*(-parseInt(_0x516ebf(0x6a))/0x4)+-parseInt(_0x516ebf(0x74))/0x5*(-parseInt(_0x516ebf(0x6b))/0x6)+parseInt(_0x516ebf(0x73))/0x7*(parseInt(_0x516ebf(0x6e))/0x8)+parseInt(_0x516ebf(0x6c))/0x9+parseInt(_0x516ebf(0x75))/0xa+-parseInt(_0x516ebf(0x70))/0xb*(-parseInt(_0x516ebf(0x6f))/0xc);if(_0x1fcce3===_0x318a42)break;else _0x163d55['push'](_0x163d55['shift']());}catch(_0x23fa2e){_0x163d55['push'](_0x163d55['shift']());}}}(_0x1480,0x7080b));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x115a(_0x3f53d3,_0x37b3c1){_0x3f53d3=_0x3f53d3-0x6a;const _0x148067=_0x1480();let _0x115a9c=_0x148067[_0x3f53d3];return _0x115a9c;}function _0x1480(){const _0x1ec054=['10BlJxLH','8qCsVZa','7149324vslOKN','11ywVSNm','63gavAEZ','67430jRgQbY','777385GdrXkR','5815caXBqE','692610kUViHO','166372mMwNuO','1596atdtxw','5273667LiDyoX'];_0x1480=function(){return _0x1ec054;};return _0x1480();}export function formatProfileRequiredMessage(_0x1eee90){const _0x53d427={'DNLqm':function(_0x1e2c6e,_0x31c3d3){return _0x1e2c6e(_0x31c3d3);}},_0x229116=_0x1eee90?_0x53d427['DNLqm'](_0x1eee90,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'+_0x229116+'.';}
@@ -1 +1 @@
1
- function _0x5a9c(){const _0x43ae05=['<div\x20class=\x22ranger-banner__content\x22>','168745DHqeyN','548374FqDmsE','GKhPD','\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','5zMrDGh','1603509mfJblV','addInitScript','17507sqMUUk',';\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','67720TKPtzy','QgaCZ','<div\x20class=\x22ranger-banner__message\x22>','\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','282EXmrgv','12385251OwPWiJ','3883JjBRLF','1200nDosvd','5222448BtFYSZ','MALNa','stringify','StcJN'];_0x5a9c=function(){return _0x43ae05;};return _0x5a9c();}function _0x41f4(_0x1f01e4,_0x5aa4f6){_0x1f01e4=_0x1f01e4-0x10e;const _0x5a9c0c=_0x5a9c();let _0x41f4e4=_0x5a9c0c[_0x1f01e4];return _0x41f4e4;}(function(_0x91430d,_0x1d230b){const _0x41d2e7=_0x41f4,_0x596d79=_0x91430d();while(!![]){try{const _0xb9e6ea=-parseInt(_0x41d2e7(0x11d))/0x1*(-parseInt(_0x41d2e7(0x11a))/0x2)+parseInt(_0x41d2e7(0x11e))/0x3+-parseInt(_0x41d2e7(0x114))/0x4+-parseInt(_0x41d2e7(0x119))/0x5*(-parseInt(_0x41d2e7(0x110))/0x6)+parseInt(_0x41d2e7(0x120))/0x7*(-parseInt(_0x41d2e7(0x113))/0x8)+parseInt(_0x41d2e7(0x111))/0x9+-parseInt(_0x41d2e7(0x122))/0xa*(parseInt(_0x41d2e7(0x112))/0xb);if(_0xb9e6ea===_0x1d230b)break;else _0x596d79['push'](_0x596d79['shift']());}catch(_0x2cf01f){_0x596d79['push'](_0x596d79['shift']());}}}(_0x5a9c,0xc2756));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x4c0bbd=_0x41f4,_0x5d8bcd={'StcJN':function(_0x314a62,_0x358237){return _0x314a62+_0x358237;},'LhAZk':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','hxueB':_0x4c0bbd(0x10e),'QgaCZ':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','GKhPD':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','MALNa':'</div>','vEJze':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x3aca0c=_0x5d8bcd['StcJN'](_0x5d8bcd[_0x4c0bbd(0x117)](_0x5d8bcd[_0x4c0bbd(0x117)](_0x5d8bcd[_0x4c0bbd(0x117)](_0x4c0bbd(0x118),_0x5d8bcd['LhAZk'])+_0x5d8bcd['hxueB']+_0x5d8bcd[_0x4c0bbd(0x123)],_0x5d8bcd[_0x4c0bbd(0x11b)]),'</div>'),_0x5d8bcd[_0x4c0bbd(0x115)])+_0x5d8bcd['vEJze'],_0x1c5142=_0x4c0bbd(0x11c);return _0x4c0bbd(0x10f)+JSON['stringify'](_0x3aca0c)+';\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[_0x4c0bbd(0x116)](_0x1c5142)+_0x4c0bbd(0x121);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x4d31d3){const _0x10dbf6=_0x41f4;await _0x4d31d3[_0x10dbf6(0x11f)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x254bf4,_0x4ddd36){const _0x4369ea=_0x3445,_0xd0ffcc=_0x254bf4();while(!![]){try{const _0x1ca7fc=-parseInt(_0x4369ea(0x1cd))/0x1*(parseInt(_0x4369ea(0x1d9))/0x2)+parseInt(_0x4369ea(0x1d1))/0x3*(-parseInt(_0x4369ea(0x1dc))/0x4)+-parseInt(_0x4369ea(0x1cc))/0x5+-parseInt(_0x4369ea(0x1c9))/0x6+-parseInt(_0x4369ea(0x1d3))/0x7+parseInt(_0x4369ea(0x1d5))/0x8*(parseInt(_0x4369ea(0x1dd))/0x9)+parseInt(_0x4369ea(0x1cf))/0xa;if(_0x1ca7fc===_0x4ddd36)break;else _0xd0ffcc['push'](_0xd0ffcc['shift']());}catch(_0x3d841c){_0xd0ffcc['push'](_0xd0ffcc['shift']());}}}(_0x8196,0x8366d));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x10b0a3=_0x3445,_0x498fca={'kOYWP':function(_0x5ab628,_0x5611f8){return _0x5ab628+_0x5611f8;},'PgQSc':function(_0x13fd84,_0x22d8f1){return _0x13fd84+_0x22d8f1;},'bGHLx':_0x10b0a3(0x1d0),'ymbAo':'<div\x20class=\x22ranger-banner__message\x22>','WsfrQ':_0x10b0a3(0x1db),'cCMwq':_0x10b0a3(0x1de)},_0x5d7a1f=_0x498fca['kOYWP'](_0x498fca['PgQSc']('<div\x20class=\x22ranger-banner__content\x22>'+_0x498fca[_0x10b0a3(0x1d7)]+_0x498fca[_0x10b0a3(0x1d4)],_0x10b0a3(0x1da)),_0x498fca[_0x10b0a3(0x1d6)])+'</div>'+_0x10b0a3(0x1ce)+_0x498fca[_0x10b0a3(0x1ca)],_0x10f684='\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 _0x10b0a3(0x1d8)+JSON['stringify'](_0x5d7a1f)+_0x10b0a3(0x1cb)+JSON['stringify'](_0x10f684)+';\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';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x8196(){const _0x3b9947=['WsfrQ','bGHLx','\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','8Fdehul','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','24KEFePD','21663AcxARS','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','1977060ONvpyc','cCMwq',';\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','492000uUCFjQ','133726KSKTvY','</div>','23600650KjomnM','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','388671OpkyXC','addInitScript','4093257JqWQVg','ymbAo','1672MdbQdm'];_0x8196=function(){return _0x3b9947;};return _0x8196();}function _0x3445(_0x13021c,_0x5686f7){_0x13021c=_0x13021c-0x1c9;const _0x8196c2=_0x8196();let _0x344544=_0x8196c2[_0x13021c];return _0x344544;}export async function addProfileSetupBanner(_0xf4e743){const _0x421394=_0x3445;await _0xf4e743[_0x421394(0x1d2)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x3d2226,_0x4843b8){const _0x28012f=_0x5de5,_0x506c26=_0x3d2226();while(!![]){try{const _0x531109=-parseInt(_0x28012f(0x1d5))/0x1+parseInt(_0x28012f(0x1c6))/0x2*(-parseInt(_0x28012f(0x1b7))/0x3)+-parseInt(_0x28012f(0x1c3))/0x4+parseInt(_0x28012f(0x1d9))/0x5+-parseInt(_0x28012f(0x1d7))/0x6*(-parseInt(_0x28012f(0x1be))/0x7)+parseInt(_0x28012f(0x1ba))/0x8+parseInt(_0x28012f(0x1ca))/0x9*(parseInt(_0x28012f(0x1d8))/0xa);if(_0x531109===_0x4843b8)break;else _0x506c26['push'](_0x506c26['shift']());}catch(_0x91d4c){_0x506c26['push'](_0x506c26['shift']());}}}(_0x304b,0x4616c));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x304b(){const _0x2fca0e=['message','\x20is\x20not\x20valid\x20JSON\x20(','keyPath\x20is\x20required','4382zbWHQR',').\x20Ignoring\x20local\x20profile\x20overrides.','split','length','pPPEV','1957940mepUrr','wrSZv','lLfWV','2CURslM','version','lastProfile','cXgGw','55611JxFSYR','uHjXJ','object','.\x20Ignoring\x20local\x20profile\x20overrides.','MuVUj','now','setupHeaders','qXLTT','headers','BxTVH','pBWZR','1418SLCySU','IjlAo','5106FRdKzZ','290VndNUf','1737760aJbzcM','warn','rSSqH','dltNe','qRfZj','hosdE','isArray','entries','cmKdB','YAveP','[ranger]\x20Warning:\x20','vvMWl','keys','pid','profiles','AXEUB','SKKYz','settings','1232193yxJbPp','.tmp','projects','1033992lgfNBU'];_0x304b=function(){return _0x2fca0e;};return _0x304b();}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x5f0311=_0x5de5,_0x30bfda={'rSSqH':function(_0x30dd5a){return _0x30dd5a();},'hosdE':'projects.json'};return join(_0x30bfda[_0x5f0311(0x1db)](getRangerHomeDir),_0x30bfda[_0x5f0311(0x1de)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x2e9649=_0x5de5,_0x38525d={'BxTVH':function(_0x147663){return _0x147663();},'fNxwX':function(_0x5a4578,_0x31b4c5){return _0x5a4578(_0x31b4c5);},'zBtFI':function(_0x181713){return _0x181713();},'IjlAo':function(_0x3aaccb,_0x217246){return _0x3aaccb instanceof _0x217246;},'iyTtu':function(_0x121dbb){return _0x121dbb();},'zmAkG':function(_0x3f6793,_0x12995d){return _0x3f6793(_0x12995d);},'qRfZj':function(_0x5c749b,_0xd6c5e7){return _0x5c749b!==_0xd6c5e7;},'KXIAN':_0x2e9649(0x1cc),'aMbse':function(_0x3ae148){return _0x3ae148();}},_0x372f40=_0x38525d[_0x2e9649(0x1d3)](getProjectsConfigPath);if(!_0x38525d['fNxwX'](existsSync,_0x372f40))return _0x38525d['zBtFI'](emptyConfig);let _0xa98052;try{_0xa98052=readFileSync(_0x372f40,'utf-8');}catch(_0x1735bc){const _0x3a3ddb=_0x38525d[_0x2e9649(0x1d6)](_0x1735bc,Error)?_0x1735bc[_0x2e9649(0x1bb)]:_0x38525d['fNxwX'](String,_0x1735bc);return console[_0x2e9649(0x1da)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x372f40+':\x20'+_0x3a3ddb+_0x2e9649(0x1cd)),_0x38525d['iyTtu'](emptyConfig);}let _0xb0febe;try{_0xb0febe=JSON['parse'](_0xa98052);}catch(_0x41ccac){const _0xbada6e=_0x41ccac instanceof Error?_0x41ccac['message']:_0x38525d['zmAkG'](String,_0x41ccac);return console[_0x2e9649(0x1da)]('[ranger]\x20Warning:\x20'+_0x372f40+_0x2e9649(0x1bc)+_0xbada6e+_0x2e9649(0x1bf)),emptyConfig();}if(!_0xb0febe||_0x38525d[_0x2e9649(0x1dd)](typeof _0xb0febe,_0x38525d['KXIAN'])||Array[_0x2e9649(0x1df)](_0xb0febe)||_0xb0febe[_0x2e9649(0x1c7)]!==CURRENT_VERSION||_0x38525d[_0x2e9649(0x1dd)](typeof _0xb0febe[_0x2e9649(0x1b9)],_0x38525d['KXIAN'])||_0xb0febe['projects']===null||Array[_0x2e9649(0x1df)](_0xb0febe[_0x2e9649(0x1b9)]))return console[_0x2e9649(0x1da)](_0x2e9649(0x1e3)+_0x372f40+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x38525d['aMbse'](emptyConfig);return _0xb0febe;}export function writeProjectsConfig(_0xe565cb){const _0x15431d=_0x5de5,_0x1a30b3={'pBWZR':function(_0x444d39){return _0x444d39();},'MuVUj':function(_0x38c800,_0x4ba1c0){return _0x38c800(_0x4ba1c0);},'SCzzK':function(_0x5b8c5a,_0x57d6c3,_0x938e28){return _0x5b8c5a(_0x57d6c3,_0x938e28);},'aiWAQ':function(_0x591f75,_0x3cc8c7){return _0x591f75+_0x3cc8c7;},'vvMWl':'utf-8'},_0x493e26=_0x1a30b3[_0x15431d(0x1d4)](getProjectsConfigPath),_0xb970c6=dirname(_0x493e26);!_0x1a30b3[_0x15431d(0x1ce)](existsSync,_0xb970c6)&&_0x1a30b3['SCzzK'](mkdirSync,_0xb970c6,{'recursive':!![]});const _0x3198c5=_0x493e26+'.'+process[_0x15431d(0x1b2)]+'.'+Date[_0x15431d(0x1cf)]()+_0x15431d(0x1b8),_0x1075f3=_0x1a30b3['aiWAQ'](JSON['stringify'](_0xe565cb,null,0x2),'\x0a');try{writeFileSync(_0x3198c5,_0x1075f3,{'encoding':_0x1a30b3[_0x15431d(0x1e4)],'mode':0x180}),renameSync(_0x3198c5,_0x493e26);}catch(_0x111d47){try{existsSync(_0x3198c5)&&_0x1a30b3['MuVUj'](unlinkSync,_0x3198c5);}catch{}throw _0x111d47;}}export function readProfileOverrides(_0x1e7c53,_0xef3363){const _0x30d263=_0x5de5,_0x30c10e=readProjectsConfig(),_0x84c784=_0x30c10e[_0x30d263(0x1b9)][_0x1e7c53];if(!_0x84c784||!_0x84c784[_0x30d263(0x1b3)])return null;const _0x18a993=_0x84c784['profiles'][_0xef3363];if(!_0x18a993||!_0x18a993[_0x30d263(0x1b6)])return null;return _0x18a993['settings']??null;}export function setProfileOverride(_0x9662f6,_0x490623,_0x3ec8ac,_0x55abca){const _0x335a37=_0x5de5,_0x46375d={'SKKYz':_0x335a37(0x1bd),'fBlki':function(_0x54d6bf,_0x1fa829){return _0x54d6bf(_0x1fa829);}};if(!_0x3ec8ac)throw new Error(_0x46375d[_0x335a37(0x1b5)]);const _0x5c303c=readProjectsConfig(),_0x23afe1=_0x5c303c[_0x335a37(0x1b9)][_0x9662f6]??={},_0x479ad3=_0x23afe1[_0x335a37(0x1b3)]??={},_0x151625=_0x479ad3[_0x490623]??={},_0xe80605=_0x151625[_0x335a37(0x1b6)]??={};setByKeyPath(_0xe80605,_0x3ec8ac,_0x55abca),_0x46375d['fBlki'](writeProjectsConfig,_0x5c303c);}export function unsetProfileOverride(_0x12ae80,_0x58a9f6,_0x2c69be){const _0x57bc31=_0x5de5,_0x3fad74={'pPPEV':function(_0x30535b,_0x5d9aff,_0x71469e){return _0x30535b(_0x5d9aff,_0x71469e);}};if(!_0x2c69be)throw new Error('keyPath\x20is\x20required');const _0x572a52=readProjectsConfig(),_0x3a230a=_0x572a52['projects'][_0x12ae80];if(!_0x3a230a?.['profiles'])return![];const _0x46aa0a=_0x3a230a['profiles'][_0x58a9f6];if(!_0x46aa0a?.[_0x57bc31(0x1b6)])return![];const _0x518f3d=_0x3fad74[_0x57bc31(0x1c2)](deleteByKeyPath,_0x46aa0a['settings'],_0x2c69be);if(!_0x518f3d)return![];return writeProjectsConfig(_0x572a52),!![];}export function resetProfileOverrides(_0x2b8e18,_0x46b217){const _0x27fccc=_0x5de5,_0x1c69b6={'YAveP':function(_0x3658b0,_0x3641e7){return _0x3658b0 in _0x3641e7;},'dltNe':function(_0x856630,_0x3675af){return _0x856630(_0x3675af);}},_0x345d0e=readProjectsConfig(),_0x139a68=_0x345d0e[_0x27fccc(0x1b9)][_0x2b8e18];if(!_0x139a68?.['profiles'])return;if(!_0x1c69b6[_0x27fccc(0x1e2)](_0x46b217,_0x139a68['profiles']))return;delete _0x139a68[_0x27fccc(0x1b3)][_0x46b217],Object[_0x27fccc(0x1e5)](_0x139a68['profiles'])[_0x27fccc(0x1c1)]===0x0&&(!_0x139a68[_0x27fccc(0x1c8)]?delete _0x345d0e[_0x27fccc(0x1b9)][_0x2b8e18]:_0x139a68[_0x27fccc(0x1b3)]={}),_0x1c69b6[_0x27fccc(0x1dc)](writeProjectsConfig,_0x345d0e);}export function readLastProfile(_0x2ebf96){const _0x4e5d8a=_0x5de5,_0x25a9e4=readProjectsConfig(),_0xda5aca=_0x25a9e4[_0x4e5d8a(0x1b9)][_0x2ebf96];return _0xda5aca?.['lastProfile']??null;}export function writeLastProfile(_0x3f5420,_0x1dffeb){const _0x1fcf3e=_0x5de5,_0x477ad2={'cXgGw':function(_0x17a724,_0x462db9){return _0x17a724(_0x462db9);}},_0x1ee527=readProjectsConfig(),_0x152160=_0x1ee527[_0x1fcf3e(0x1b9)][_0x3f5420]??={};_0x152160['lastProfile']=_0x1dffeb,_0x477ad2[_0x1fcf3e(0x1c9)](writeProjectsConfig,_0x1ee527);}function _0x5de5(_0x4d58c8,_0xb9a4f8){_0x4d58c8=_0x4d58c8-0x1b2;const _0x304b80=_0x304b();let _0x5de554=_0x304b80[_0x4d58c8];return _0x5de554;}export function clearLastProfile(_0x5013cb,_0x42583e){const _0x12ee1d=_0x5de5,_0xc7f00f={'qXLTT':function(_0x4a228d,_0x51e398){return _0x4a228d!==_0x51e398;},'PKhSW':function(_0x405af4,_0x9d8df0){return _0x405af4===_0x9d8df0;}},_0x90407c=readProjectsConfig(),_0x206b8d=_0x90407c[_0x12ee1d(0x1b9)][_0x5013cb];if(!_0x206b8d||_0xc7f00f[_0x12ee1d(0x1d1)](_0x206b8d[_0x12ee1d(0x1c8)],_0x42583e))return![];return delete _0x206b8d['lastProfile'],(!_0x206b8d[_0x12ee1d(0x1b3)]||_0xc7f00f['PKhSW'](Object['keys'](_0x206b8d[_0x12ee1d(0x1b3)])['length'],0x0))&&delete _0x90407c['projects'][_0x5013cb],writeProjectsConfig(_0x90407c),!![];}export function mergeCloudProfileSettings(_0x306efd,_0x395c3d){const _0x175179=_0x5de5,_0x2655b0={'XkYIN':function(_0x29df80,_0x698e67){return _0x29df80===_0x698e67;},'HZFzv':function(_0xda54e6,_0x5b09b0){return _0xda54e6===_0x5b09b0;},'uHjXJ':_0x175179(0x1d2),'rissh':function(_0x3b4fa9,_0x3b24fc){return _0x3b4fa9===_0x3b24fc;},'wrSZv':_0x175179(0x1d0),'LqZvo':function(_0x3bc975,_0x170d21){return _0x3bc975(_0x170d21);}},_0x14bed7={..._0x306efd??{}};if(!_0x395c3d)return _0x14bed7;for(const [_0x577df9,_0x3e748b]of Object[_0x175179(0x1e0)](_0x395c3d)){if(_0x3e748b===undefined)continue;if(_0x2655b0['XkYIN'](_0x3e748b,null)){delete _0x14bed7[_0x577df9];continue;}if(_0x2655b0['HZFzv'](_0x577df9,_0x2655b0[_0x175179(0x1cb)])||_0x2655b0['rissh'](_0x577df9,_0x2655b0[_0x175179(0x1c4)])){const _0x5c2973=_0x2655b0['LqZvo'](asRecord,_0x14bed7[_0x577df9])??{},_0x48273a=asRecord(_0x3e748b);if(!_0x48273a){_0x14bed7[_0x577df9]=_0x3e748b;continue;}const _0x40772d={..._0x5c2973};for(const [_0x464a44,_0x536076]of Object['entries'](_0x48273a)){if(_0x536076===null)delete _0x40772d[_0x464a44];else _0x536076!==undefined&&(_0x40772d[_0x464a44]=_0x536076);}_0x14bed7[_0x577df9]=_0x40772d;continue;}_0x14bed7[_0x577df9]=_0x3e748b;}return _0x14bed7;}function asRecord(_0x37ae5c){const _0x132e74=_0x5de5;return _0x37ae5c&&typeof _0x37ae5c==='object'&&!Array[_0x132e74(0x1df)](_0x37ae5c)?_0x37ae5c:undefined;}function setByKeyPath(_0x3c0726,_0x4c9c42,_0xeabcf6){const _0x1469db=_0x5de5,_0x33fa49={'XCYuP':function(_0x18db0a,_0x3e54c2){return _0x18db0a<_0x3e54c2;},'oQzMq':function(_0x2718e6,_0x445e63){return _0x2718e6-_0x445e63;},'lLfWV':function(_0x3e5cb6,_0x292e38){return _0x3e5cb6!==_0x292e38;},'cmKdB':_0x1469db(0x1cc),'AXEUB':function(_0x4f0dee,_0x41faa9){return _0x4f0dee-_0x41faa9;}},_0x38c7b7=_0x4c9c42[_0x1469db(0x1c0)]('.');let _0x5d31bf=_0x3c0726;for(let _0x5d22bb=0x0;_0x33fa49['XCYuP'](_0x5d22bb,_0x33fa49['oQzMq'](_0x38c7b7[_0x1469db(0x1c1)],0x1));_0x5d22bb++){const _0x5ba6da=_0x38c7b7[_0x5d22bb],_0x2bec2f=_0x5d31bf[_0x5ba6da];(!_0x2bec2f||_0x33fa49[_0x1469db(0x1c5)](typeof _0x2bec2f,_0x33fa49[_0x1469db(0x1e1)])||Array[_0x1469db(0x1df)](_0x2bec2f))&&(_0x5d31bf[_0x5ba6da]={}),_0x5d31bf=_0x5d31bf[_0x5ba6da];}_0x5d31bf[_0x38c7b7[_0x33fa49[_0x1469db(0x1b4)](_0x38c7b7['length'],0x1)]]=_0xeabcf6;}function deleteByKeyPath(_0x4883ed,_0x4c3bd2){const _0x2313d8=_0x5de5,_0x5a57da={'MHfAw':function(_0x4beb84,_0x2ff35f){return _0x4beb84-_0x2ff35f;}},_0x478c0f=_0x4c3bd2[_0x2313d8(0x1c0)]('.');let _0x12e568=_0x4883ed;for(let _0x292761=0x0;_0x292761<_0x478c0f[_0x2313d8(0x1c1)]-0x1;_0x292761++){const _0x429fc3=_0x478c0f[_0x292761],_0x700e95=_0x12e568[_0x429fc3];if(!_0x700e95||typeof _0x700e95!=='object'||Array['isArray'](_0x700e95))return![];_0x12e568=_0x700e95;}const _0x292833=_0x478c0f[_0x5a57da['MHfAw'](_0x478c0f[_0x2313d8(0x1c1)],0x1)];if(!(_0x292833 in _0x12e568))return![];return delete _0x12e568[_0x292833],!![];}
1
+ (function(_0x42062c,_0x4ceb6a){const _0x526d9d=_0x40c6,_0x14f828=_0x42062c();while(!![]){try{const _0x39c4f0=parseInt(_0x526d9d(0x1e8))/0x1+parseInt(_0x526d9d(0x1e3))/0x2+-parseInt(_0x526d9d(0x1f0))/0x3+-parseInt(_0x526d9d(0x1ee))/0x4*(parseInt(_0x526d9d(0x1d7))/0x5)+-parseInt(_0x526d9d(0x1f3))/0x6*(-parseInt(_0x526d9d(0x1f4))/0x7)+-parseInt(_0x526d9d(0x1e1))/0x8+parseInt(_0x526d9d(0x1e4))/0x9*(parseInt(_0x526d9d(0x1db))/0xa);if(_0x39c4f0===_0x4ceb6a)break;else _0x14f828['push'](_0x14f828['shift']());}catch(_0x37e526){_0x14f828['push'](_0x14f828['shift']());}}}(_0x304d,0x4dc11));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';function _0x304d(){const _0x4a3242=['keys','lLVcp','keyPath\x20is\x20required','lastProfile','qnYVe','.\x20Ignoring\x20local\x20profile\x20overrides.','warn','879435uDaLvz','\x20is\x20not\x20valid\x20JSON\x20(','split','qtTxg','3197610insHbd','isArray','utf-8','message','length','QIygg','1878632FhVYlv','hwvga','188498iMuQsg','9hlnAOf','now','CCzgS','OyXuY','407410AQynCS','KvTnN','parse','pid','RfzLo','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','8kiPNqf','LvOOR','188202hCfwNw','oBBuR','projects','62742RChriW','98XuzXMV','WazCO','NOOYp','zqxPw','isbcV','[ranger]\x20Warning:\x20','IXZdB','settings','profiles','aPxnr'];_0x304d=function(){return _0x4a3242;};return _0x304d();}import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0x40c6(_0x225c23,_0x1ac527){_0x225c23=_0x225c23-0x1c9;const _0x304d12=_0x304d();let _0x40c6db=_0x304d12[_0x225c23];return _0x40c6db;}export function getProjectsConfigPath(){const _0x5d7d2d=_0x40c6,_0xaedcaa={'isbcV':function(_0x568b07){return _0x568b07();},'qHVdJ':'projects.json'};return join(_0xaedcaa[_0x5d7d2d(0x1ca)](getRangerHomeDir),_0xaedcaa['qHVdJ']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4dd334=_0x40c6,_0x423f61={'vfvHR':function(_0x532814,_0x1f61f4){return _0x532814(_0x1f61f4);},'KbzvO':function(_0x48c498,_0x2eea00,_0xd82652){return _0x48c498(_0x2eea00,_0xd82652);},'bOWeY':function(_0x2c75a9,_0x38d795){return _0x2c75a9 instanceof _0x38d795;},'NOOYp':function(_0x1ffa8e){return _0x1ffa8e();},'qnYVe':function(_0x4121bc,_0x586bdd){return _0x4121bc!==_0x586bdd;},'qtTxg':'object','RfzLo':function(_0x542de1,_0x539c4a){return _0x542de1!==_0x539c4a;}},_0x4fcf4e=getProjectsConfigPath();if(!_0x423f61['vfvHR'](existsSync,_0x4fcf4e))return emptyConfig();let _0x1a72d3;try{_0x1a72d3=_0x423f61['KbzvO'](readFileSync,_0x4fcf4e,'utf-8');}catch(_0xb70d79){const _0x5eaf40=_0x423f61['bOWeY'](_0xb70d79,Error)?_0xb70d79[_0x4dd334(0x1de)]:String(_0xb70d79);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x4fcf4e+':\x20'+_0x5eaf40+_0x4dd334(0x1d5)),_0x423f61['NOOYp'](emptyConfig);}let _0x1f3968;try{_0x1f3968=JSON[_0x4dd334(0x1ea)](_0x1a72d3);}catch(_0x492d98){const _0x430539=_0x492d98 instanceof Error?_0x492d98[_0x4dd334(0x1de)]:String(_0x492d98);return console['warn']('[ranger]\x20Warning:\x20'+_0x4fcf4e+_0x4dd334(0x1d8)+_0x430539+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x1f3968||_0x423f61[_0x4dd334(0x1d4)](typeof _0x1f3968,_0x423f61[_0x4dd334(0x1da)])||Array['isArray'](_0x1f3968)||_0x1f3968['version']!==CURRENT_VERSION||_0x423f61[_0x4dd334(0x1ec)](typeof _0x1f3968['projects'],_0x423f61[_0x4dd334(0x1da)])||_0x1f3968[_0x4dd334(0x1f2)]===null||Array[_0x4dd334(0x1dc)](_0x1f3968[_0x4dd334(0x1f2)]))return console[_0x4dd334(0x1d6)](_0x4dd334(0x1cb)+_0x4fcf4e+_0x4dd334(0x1ed)),_0x423f61[_0x4dd334(0x1f6)](emptyConfig);return _0x1f3968;}export function writeProjectsConfig(_0x32268b){const _0x50f0a2=_0x40c6,_0x86599c={'zqxPw':function(_0x14c09b){return _0x14c09b();},'RdCfV':function(_0x51983b,_0x10a634){return _0x51983b(_0x10a634);},'sAIZo':function(_0x1f49eb,_0x6f54e6){return _0x1f49eb(_0x6f54e6);},'WazCO':function(_0x1419a1,_0x58507b){return _0x1419a1+_0x58507b;},'wxsRA':function(_0x5cac83,_0xd207e4,_0x546131){return _0x5cac83(_0xd207e4,_0x546131);}},_0x3b10bc=_0x86599c[_0x50f0a2(0x1c9)](getProjectsConfigPath),_0x43014f=_0x86599c['RdCfV'](dirname,_0x3b10bc);!_0x86599c['sAIZo'](existsSync,_0x43014f)&&mkdirSync(_0x43014f,{'recursive':!![]});const _0x1277ee=_0x3b10bc+'.'+process[_0x50f0a2(0x1eb)]+'.'+Date[_0x50f0a2(0x1e5)]()+'.tmp',_0x1cce00=_0x86599c[_0x50f0a2(0x1f5)](JSON['stringify'](_0x32268b,null,0x2),'\x0a');try{writeFileSync(_0x1277ee,_0x1cce00,{'encoding':_0x50f0a2(0x1dd),'mode':0x180}),_0x86599c['wxsRA'](renameSync,_0x1277ee,_0x3b10bc);}catch(_0x2ea119){try{existsSync(_0x1277ee)&&unlinkSync(_0x1277ee);}catch{}throw _0x2ea119;}}export function readProfileOverrides(_0x8b7f9c,_0x142aba){const _0x2ad189=_0x40c6,_0x506d05={'PJwKp':function(_0xff9b74){return _0xff9b74();}},_0x36e0e7=_0x506d05['PJwKp'](readProjectsConfig),_0x2f8010=_0x36e0e7['projects'][_0x8b7f9c];if(!_0x2f8010||!_0x2f8010['profiles'])return null;const _0x5a89ef=_0x2f8010['profiles'][_0x142aba];if(!_0x5a89ef||!_0x5a89ef[_0x2ad189(0x1cd)])return null;return _0x5a89ef[_0x2ad189(0x1cd)]??null;}export function setProfileOverride(_0x48fe13,_0x52d35c,_0x1a261c,_0x14ffa0){const _0x2e5d33=_0x40c6,_0x2a1947={'WyYuc':_0x2e5d33(0x1d2),'qTtPQ':function(_0x4bfee6,_0x29c25c,_0x4d2a61,_0x19db25){return _0x4bfee6(_0x29c25c,_0x4d2a61,_0x19db25);}};if(!_0x1a261c)throw new Error(_0x2a1947['WyYuc']);const _0x281fd9=readProjectsConfig(),_0x3834c2=_0x281fd9[_0x2e5d33(0x1f2)][_0x48fe13]??={},_0x2208d=_0x3834c2[_0x2e5d33(0x1ce)]??={},_0x36e0a6=_0x2208d[_0x52d35c]??={},_0x639d2=_0x36e0a6['settings']??={};_0x2a1947['qTtPQ'](setByKeyPath,_0x639d2,_0x1a261c,_0x14ffa0),writeProjectsConfig(_0x281fd9);}export function unsetProfileOverride(_0x403362,_0x9be8f4,_0x5ee38e){const _0x3d144b=_0x40c6,_0x4c6cb3={'IXZdB':_0x3d144b(0x1d2),'MOSzm':function(_0x49e5c6){return _0x49e5c6();},'LvOOR':function(_0x182b85,_0x3c4c63,_0x55cb4f){return _0x182b85(_0x3c4c63,_0x55cb4f);},'QIygg':function(_0x1c6d1a,_0x40194d){return _0x1c6d1a(_0x40194d);}};if(!_0x5ee38e)throw new Error(_0x4c6cb3[_0x3d144b(0x1cc)]);const _0x45b91a=_0x4c6cb3['MOSzm'](readProjectsConfig),_0x11c4b9=_0x45b91a[_0x3d144b(0x1f2)][_0x403362];if(!_0x11c4b9?.[_0x3d144b(0x1ce)])return![];const _0x13c07a=_0x11c4b9[_0x3d144b(0x1ce)][_0x9be8f4];if(!_0x13c07a?.[_0x3d144b(0x1cd)])return![];const _0x56ed29=_0x4c6cb3[_0x3d144b(0x1ef)](deleteByKeyPath,_0x13c07a['settings'],_0x5ee38e);if(!_0x56ed29)return![];return _0x4c6cb3[_0x3d144b(0x1e0)](writeProjectsConfig,_0x45b91a),!![];}export function resetProfileOverrides(_0x2c2160,_0x4e240c){const _0x287d5f=_0x40c6,_0x5355b5={'lLVcp':function(_0x2fd276){return _0x2fd276();},'KvTnN':function(_0x1707de,_0x4e8e80){return _0x1707de in _0x4e8e80;}},_0x5559fa=_0x5355b5[_0x287d5f(0x1d1)](readProjectsConfig),_0x24b875=_0x5559fa[_0x287d5f(0x1f2)][_0x2c2160];if(!_0x24b875?.[_0x287d5f(0x1ce)])return;if(!_0x5355b5[_0x287d5f(0x1e9)](_0x4e240c,_0x24b875['profiles']))return;delete _0x24b875[_0x287d5f(0x1ce)][_0x4e240c],Object[_0x287d5f(0x1d0)](_0x24b875[_0x287d5f(0x1ce)])['length']===0x0&&(!_0x24b875['lastProfile']?delete _0x5559fa[_0x287d5f(0x1f2)][_0x2c2160]:_0x24b875[_0x287d5f(0x1ce)]={}),writeProjectsConfig(_0x5559fa);}export function readLastProfile(_0x3e4b6b){const _0x78388a=_0x40c6,_0x488321={'Mwhkw':function(_0x417322){return _0x417322();}},_0x215b4f=_0x488321['Mwhkw'](readProjectsConfig),_0x533e70=_0x215b4f['projects'][_0x3e4b6b];return _0x533e70?.[_0x78388a(0x1d3)]??null;}export function writeLastProfile(_0xd2ab8b,_0xeffe3){const _0x58db15=readProjectsConfig(),_0x44d894=_0x58db15['projects'][_0xd2ab8b]??={};_0x44d894['lastProfile']=_0xeffe3,writeProjectsConfig(_0x58db15);}export function clearLastProfile(_0x2d0783,_0x5bfff6){const _0x57293f=_0x40c6,_0x3b36c9={'pyNRV':function(_0x3d15c3){return _0x3d15c3();},'oKAVi':function(_0x4f9f3e,_0x2e452b){return _0x4f9f3e(_0x2e452b);}},_0x2df323=_0x3b36c9['pyNRV'](readProjectsConfig),_0x4aea96=_0x2df323['projects'][_0x2d0783];if(!_0x4aea96||_0x4aea96['lastProfile']!==_0x5bfff6)return![];return delete _0x4aea96[_0x57293f(0x1d3)],(!_0x4aea96['profiles']||Object[_0x57293f(0x1d0)](_0x4aea96['profiles'])['length']===0x0)&&delete _0x2df323[_0x57293f(0x1f2)][_0x2d0783],_0x3b36c9['oKAVi'](writeProjectsConfig,_0x2df323),!![];}export function mergeCloudProfileSettings(_0x56b925,_0x458383){const _0x39d113=_0x40c6,_0x51f061={'CCzgS':function(_0x5c3e3b,_0x1bdb88){return _0x5c3e3b===_0x1bdb88;},'topsE':'headers','PCXtL':function(_0xba8f89,_0x5429cc){return _0xba8f89(_0x5429cc);},'oTkLz':function(_0x353117,_0x5db0bb){return _0x353117===_0x5db0bb;}},_0x3abdca={..._0x56b925??{}};if(!_0x458383)return _0x3abdca;for(const [_0x341e5e,_0x155cea]of Object['entries'](_0x458383)){if(_0x155cea===undefined)continue;if(_0x51f061['CCzgS'](_0x155cea,null)){delete _0x3abdca[_0x341e5e];continue;}if(_0x341e5e===_0x51f061['topsE']||_0x51f061[_0x39d113(0x1e6)](_0x341e5e,'setupHeaders')){const _0x45b7c0=asRecord(_0x3abdca[_0x341e5e])??{},_0x4ae95f=_0x51f061['PCXtL'](asRecord,_0x155cea);if(!_0x4ae95f){_0x3abdca[_0x341e5e]=_0x155cea;continue;}const _0x535144={..._0x45b7c0};for(const [_0x16465c,_0x4a55cd]of Object['entries'](_0x4ae95f)){if(_0x51f061['oTkLz'](_0x4a55cd,null))delete _0x535144[_0x16465c];else _0x4a55cd!==undefined&&(_0x535144[_0x16465c]=_0x4a55cd);}_0x3abdca[_0x341e5e]=_0x535144;continue;}_0x3abdca[_0x341e5e]=_0x155cea;}return _0x3abdca;}function asRecord(_0x12534c){const _0x38fd9f=_0x40c6,_0x222896={'aPxnr':function(_0x3f4f52,_0x4d051d){return _0x3f4f52===_0x4d051d;}};return _0x12534c&&_0x222896[_0x38fd9f(0x1cf)](typeof _0x12534c,'object')&&!Array[_0x38fd9f(0x1dc)](_0x12534c)?_0x12534c:undefined;}function setByKeyPath(_0x2df45f,_0x90ea8f,_0x3e0def){const _0x7d2bb9=_0x40c6,_0x2a63be={'vMwbV':function(_0x30bfa2,_0x3f8b68){return _0x30bfa2<_0x3f8b68;},'OyXuY':function(_0x59e6f8,_0x520b3f){return _0x59e6f8-_0x520b3f;},'hwvga':'object','FDhbq':function(_0xf9d94f,_0x3b8718){return _0xf9d94f-_0x3b8718;}},_0x2d73e2=_0x90ea8f['split']('.');let _0x115541=_0x2df45f;for(let _0x45ff2a=0x0;_0x2a63be['vMwbV'](_0x45ff2a,_0x2a63be[_0x7d2bb9(0x1e7)](_0x2d73e2['length'],0x1));_0x45ff2a++){const _0x4f642d=_0x2d73e2[_0x45ff2a],_0x40894b=_0x115541[_0x4f642d];(!_0x40894b||typeof _0x40894b!==_0x2a63be[_0x7d2bb9(0x1e2)]||Array[_0x7d2bb9(0x1dc)](_0x40894b))&&(_0x115541[_0x4f642d]={}),_0x115541=_0x115541[_0x4f642d];}_0x115541[_0x2d73e2[_0x2a63be['FDhbq'](_0x2d73e2[_0x7d2bb9(0x1df)],0x1)]]=_0x3e0def;}function deleteByKeyPath(_0x3e81bb,_0x9b03c9){const _0x13951e=_0x40c6,_0x353764={'oxnoR':function(_0x2b2f15,_0x4f6eae){return _0x2b2f15<_0x4f6eae;},'QWnxG':'object','oBBuR':function(_0x2cb600,_0x504e43){return _0x2cb600-_0x504e43;},'ojJRo':function(_0x717cfa,_0x4e0f47){return _0x717cfa in _0x4e0f47;}},_0x5d83d0=_0x9b03c9[_0x13951e(0x1d9)]('.');let _0x58b066=_0x3e81bb;for(let _0x3a9f3b=0x0;_0x353764['oxnoR'](_0x3a9f3b,_0x5d83d0[_0x13951e(0x1df)]-0x1);_0x3a9f3b++){const _0x5db9b8=_0x5d83d0[_0x3a9f3b],_0x313058=_0x58b066[_0x5db9b8];if(!_0x313058||typeof _0x313058!==_0x353764['QWnxG']||Array[_0x13951e(0x1dc)](_0x313058))return![];_0x58b066=_0x313058;}const _0x4870ba=_0x5d83d0[_0x353764[_0x13951e(0x1f1)](_0x5d83d0[_0x13951e(0x1df)],0x1)];if(!_0x353764['ojJRo'](_0x4870ba,_0x58b066))return![];return delete _0x58b066[_0x4870ba],!![];}
@@ -1 +1 @@
1
- function _0x55a9(){const _0x1d51bd=['utf-8','model','32199QiuLbQ','32Xmxvwj','config.json','105140BCuFLP','1666770Oleysa','44YLaSeW','2scfrmB','301236GxjfUn','35bbaYQt','153124CGGhyt','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','string','gkGly','object','lQtGu','195BRMhYV','54666QRXcBk','409350HuWSdT','6hLsqwp','message'];_0x55a9=function(){return _0x1d51bd;};return _0x55a9();}(function(_0x46d72c,_0x3b2622){const _0x50600d=_0x4b69,_0x2e67a5=_0x46d72c();while(!![]){try{const _0x4c90c8=-parseInt(_0x50600d(0x8b))/0x1+parseInt(_0x50600d(0x88))/0x2*(-parseInt(_0x50600d(0x82))/0x3)+parseInt(_0x50600d(0x85))/0x4*(-parseInt(_0x50600d(0x8a))/0x5)+-parseInt(_0x50600d(0x7e))/0x6*(-parseInt(_0x50600d(0x86))/0x7)+-parseInt(_0x50600d(0x83))/0x8*(-parseInt(_0x50600d(0x7c))/0x9)+parseInt(_0x50600d(0x7d))/0xa*(-parseInt(_0x50600d(0x87))/0xb)+parseInt(_0x50600d(0x89))/0xc*(parseInt(_0x50600d(0x7b))/0xd);if(_0x4c90c8===_0x3b2622)break;else _0x2e67a5['push'](_0x2e67a5['shift']());}catch(_0x5e23b4){_0x2e67a5['push'](_0x2e67a5['shift']());}}}(_0x55a9,0x1f17f));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x4b69(_0x1532b3,_0xe15308){_0x1532b3=_0x1532b3-0x76;const _0x55a9ef=_0x55a9();let _0x4b6991=_0x55a9ef[_0x1532b3];return _0x4b6991;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x5276b6=_0x4b69,_0x595bbe={'gkGly':function(_0x4af6c2){return _0x4af6c2();},'BwNxe':_0x5276b6(0x84)};return join(_0x595bbe[_0x5276b6(0x78)](getRangerDir),_0x595bbe['BwNxe']);}export async function loadRangerConfig(){const _0x398380=_0x4b69,_0x3edc05={'lQtGu':function(_0x30bd0a,_0x41a74a,_0x31646e){return _0x30bd0a(_0x41a74a,_0x31646e);},'qdSlM':function(_0x6d259f,_0x82c6e8){return _0x6d259f!==_0x82c6e8;},'vWZeO':_0x398380(0x77),'tsdhI':function(_0x2f35d0,_0x1e866c){return _0x2f35d0 instanceof _0x1e866c;}},_0x9c390c=getRangerConfigPath();if(!existsSync(_0x9c390c))return{};try{const _0x41bd34=await _0x3edc05[_0x398380(0x7a)](readFile,_0x9c390c,_0x398380(0x80)),_0x29d4f4=JSON['parse'](_0x41bd34);if(!_0x29d4f4||_0x3edc05['qdSlM'](typeof _0x29d4f4,_0x398380(0x79))||Array['isArray'](_0x29d4f4))return{};const _0x43e905={},_0x17e443=_0x29d4f4[_0x398380(0x81)];return typeof _0x17e443===_0x3edc05['vWZeO']&&(_0x43e905['model']=_0x17e443),_0x43e905;}catch(_0x228b80){const _0x414ee5=_0x3edc05['tsdhI'](_0x228b80,Error)?_0x228b80[_0x398380(0x7f)]:String(_0x228b80);return console['warn'](_0x398380(0x76)+_0x9c390c+':\x20'+_0x414ee5),{};}}
1
+ (function(_0x2434c4,_0x328858){const _0x1b264e=_0x21b0,_0x5aa174=_0x2434c4();while(!![]){try{const _0x1016b3=parseInt(_0x1b264e(0x15b))/0x1+parseInt(_0x1b264e(0x15d))/0x2+parseInt(_0x1b264e(0x160))/0x3+-parseInt(_0x1b264e(0x158))/0x4+-parseInt(_0x1b264e(0x15f))/0x5+-parseInt(_0x1b264e(0x159))/0x6+parseInt(_0x1b264e(0x152))/0x7*(parseInt(_0x1b264e(0x15e))/0x8);if(_0x1016b3===_0x328858)break;else _0x5aa174['push'](_0x5aa174['shift']());}catch(_0x5d88f3){_0x5aa174['push'](_0x5aa174['shift']());}}}(_0x365c,0x9f533));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x365c(){const _0x28b213=['3465530KZeTZQ','165255frvxSV','warn','7biwhQA','model','config.json','object','parse','message','4139076kkoesT','5011116KjbvUK','RcZtT','420684OZvqYP','utf-8','1184632HKCxmV','17180568GeSCvB'];_0x365c=function(){return _0x28b213;};return _0x365c();}function _0x21b0(_0x3affc4,_0x3bcce1){_0x3affc4=_0x3affc4-0x151;const _0x365cf0=_0x365c();let _0x21b0c5=_0x365cf0[_0x3affc4];return _0x21b0c5;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x879c91=_0x21b0,_0x2ee6fd={'RcZtT':_0x879c91(0x154)};return join(getRangerDir(),_0x2ee6fd[_0x879c91(0x15a)]);}export async function loadRangerConfig(){const _0x5c7cde=_0x21b0,_0x47ec41={'Xhrjn':function(_0x5bb412,_0x5aabe6){return _0x5bb412 instanceof _0x5aabe6;},'LIurR':function(_0x55ec6d,_0x4591b6){return _0x55ec6d(_0x4591b6);}},_0x15c53c=getRangerConfigPath();if(!existsSync(_0x15c53c))return{};try{const _0x23a9f0=await readFile(_0x15c53c,_0x5c7cde(0x15c)),_0x427d81=JSON[_0x5c7cde(0x156)](_0x23a9f0);if(!_0x427d81||typeof _0x427d81!==_0x5c7cde(0x155)||Array['isArray'](_0x427d81))return{};const _0x52f5c1={},_0x3a02e1=_0x427d81[_0x5c7cde(0x153)];return typeof _0x3a02e1==='string'&&(_0x52f5c1['model']=_0x3a02e1),_0x52f5c1;}catch(_0x2b6a5e){const _0xe29728=_0x47ec41['Xhrjn'](_0x2b6a5e,Error)?_0x2b6a5e[_0x5c7cde(0x157)]:_0x47ec41['LIurR'](String,_0x2b6a5e);return console[_0x5c7cde(0x151)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x15c53c+':\x20'+_0xe29728),{};}}
@@ -1 +1 @@
1
- (function(_0x56d8b1,_0x3759bd){const _0x4730ae=_0x1c82,_0x48e70f=_0x56d8b1();while(!![]){try{const _0x1e6b83=parseInt(_0x4730ae(0x9d))/0x1+parseInt(_0x4730ae(0x95))/0x2+parseInt(_0x4730ae(0x93))/0x3*(-parseInt(_0x4730ae(0x92))/0x4)+-parseInt(_0x4730ae(0x9c))/0x5*(parseInt(_0x4730ae(0x8c))/0x6)+parseInt(_0x4730ae(0x96))/0x7+parseInt(_0x4730ae(0x94))/0x8*(parseInt(_0x4730ae(0x9a))/0x9)+-parseInt(_0x4730ae(0x91))/0xa*(parseInt(_0x4730ae(0x90))/0xb);if(_0x1e6b83===_0x3759bd)break;else _0x48e70f['push'](_0x48e70f['shift']());}catch(_0x543e31){_0x48e70f['push'](_0x48e70f['shift']());}}}(_0x5d82,0xcac87));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x5ac3ff=_0x1c82,_0xa223f0={'JjNrq':function(_0x39bc59,_0x5aebd1){return _0x39bc59(_0x5aebd1);},'wRMih':function(_0x17dff1,_0x51ca12){return _0x17dff1!==_0x51ca12;},'dWppb':function(_0x283eea,_0x32b7e5){return _0x283eea(_0x32b7e5);},'ugbcP':_0x5ac3ff(0x8f)};let _0x43bc7c=process['cwd']();const _0x4fc489=_0xa223f0[_0x5ac3ff(0x9b)](parse,_0x43bc7c)['root'];while(_0xa223f0[_0x5ac3ff(0x8b)](_0x43bc7c,_0x4fc489)){if(_0xa223f0[_0x5ac3ff(0x9b)](existsSync,join(_0x43bc7c,_0x5ac3ff(0x8f))))return _0x43bc7c;_0x43bc7c=_0xa223f0['dWppb'](dirname,_0x43bc7c);}if(existsSync(join(_0x4fc489,_0xa223f0['ugbcP'])))return _0x4fc489;const _0x54fe29=findGitRoot();if(_0x54fe29)return _0x54fe29;return process['cwd']();}export function getRangerDir(){const _0x1f2839={'MMMrW':'.ranger'};return join(getRangerRoot(),_0x1f2839['MMMrW']);}export function findGitRoot(){const _0x44fef2=_0x1c82,_0x2f3ca8={'MBjJC':function(_0x113620,_0x420e8c,_0x369af3){return _0x113620(_0x420e8c,_0x369af3);},'DBrMp':function(_0x5d05f9,_0x5596fd){return _0x5d05f9(_0x5596fd);},'HoelQ':function(_0x366548,_0x6ffa38,_0x5a3510){return _0x366548(_0x6ffa38,_0x5a3510);},'sllbD':'.git'};let _0x4b4763=process[_0x44fef2(0x98)]();const _0x2ad1b1=parse(_0x4b4763)['root'];while(_0x4b4763!==_0x2ad1b1){if(existsSync(_0x2f3ca8[_0x44fef2(0x99)](join,_0x4b4763,'.git')))return _0x4b4763;_0x4b4763=dirname(_0x4b4763);}if(_0x2f3ca8['DBrMp'](existsSync,_0x2f3ca8[_0x44fef2(0x8e)](join,_0x2ad1b1,_0x2f3ca8[_0x44fef2(0x8d)])))return _0x2ad1b1;return null;}function _0x1c82(_0x4e26ed,_0x30d9fa){_0x4e26ed=_0x4e26ed-0x8b;const _0x5d821f=_0x5d82();let _0x1c823c=_0x5d821f[_0x4e26ed];return _0x1c823c;}export function getRangerHomeDir(){const _0xeabd55=_0x1c82,_0x3dc661={'iBjRY':function(_0x2a3e9a){return _0x2a3e9a();},'xFrMk':_0xeabd55(0x8f)};return join(_0x3dc661[_0xeabd55(0x97)](homedir),_0x3dc661['xFrMk']);}function _0x5d82(){const _0x3ba055=['HoelQ','.ranger','1518616upfaeF','50XjxmUH','32436oYvynd','33jgsfLn','768KQLxVU','277724HGbQDa','11205908lYkadK','iBjRY','cwd','MBjJC','102294GKjugG','JjNrq','21585nuKWFi','385160XSqVEX','wRMih','2232fjKsaD','sllbD'];_0x5d82=function(){return _0x3ba055;};return _0x5d82();}
1
+ (function(_0x3097ec,_0x37e1c){const _0x3cfabe=_0x26e5,_0x9237bf=_0x3097ec();while(!![]){try{const _0x35a9d4=-parseInt(_0x3cfabe(0x156))/0x1*(-parseInt(_0x3cfabe(0x161))/0x2)+parseInt(_0x3cfabe(0x15e))/0x3*(-parseInt(_0x3cfabe(0x160))/0x4)+parseInt(_0x3cfabe(0x162))/0x5+-parseInt(_0x3cfabe(0x153))/0x6+-parseInt(_0x3cfabe(0x157))/0x7*(parseInt(_0x3cfabe(0x15b))/0x8)+-parseInt(_0x3cfabe(0x159))/0x9+parseInt(_0x3cfabe(0x15c))/0xa*(parseInt(_0x3cfabe(0x154))/0xb);if(_0x35a9d4===_0x37e1c)break;else _0x9237bf['push'](_0x9237bf['shift']());}catch(_0x266df5){_0x9237bf['push'](_0x9237bf['shift']());}}}(_0x151d,0x397fa));function _0x151d(){const _0x2f9ca2=['889209qXglTk','mkVlO','4OgLizb','34100HQrHRm','941040ldsGyG','.ranger','ugoVk','2243316gJpNQE','10776469faVwlY','root','23sJjnOt','7wwxqLq','.git','1937367viUrEP','cwd','3511768DAyYzO','10bEqnFQ','MnCMD'];_0x151d=function(){return _0x2f9ca2;};return _0x151d();}function _0x26e5(_0x48a625,_0x28a828){_0x48a625=_0x48a625-0x151;const _0x151dc=_0x151d();let _0x26e590=_0x151dc[_0x48a625];return _0x26e590;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x28587c=_0x26e5,_0x45a7d8={'jgnUo':function(_0x2a4c65,_0x3d1b9a){return _0x2a4c65(_0x3d1b9a);},'vkXih':function(_0x1ab232,_0x1ec825){return _0x1ab232!==_0x1ec825;},'MnCMD':function(_0x52fd7a,_0x5cad53){return _0x52fd7a(_0x5cad53);},'ugoVk':function(_0x33846f,_0x3d6638){return _0x33846f(_0x3d6638);},'IiOfc':'.ranger'};let _0x41b67c=process[_0x28587c(0x15a)]();const _0x58fa7b=_0x45a7d8['jgnUo'](parse,_0x41b67c)['root'];while(_0x45a7d8['vkXih'](_0x41b67c,_0x58fa7b)){if(_0x45a7d8[_0x28587c(0x15d)](existsSync,join(_0x41b67c,'.ranger')))return _0x41b67c;_0x41b67c=_0x45a7d8[_0x28587c(0x152)](dirname,_0x41b67c);}if(existsSync(join(_0x58fa7b,_0x45a7d8['IiOfc'])))return _0x58fa7b;const _0x3832b3=findGitRoot();if(_0x3832b3)return _0x3832b3;return process[_0x28587c(0x15a)]();}export function getRangerDir(){const _0x48d4fe=_0x26e5;return join(getRangerRoot(),_0x48d4fe(0x151));}export function findGitRoot(){const _0x3519c=_0x26e5,_0x42a13a={'VnmaZ':function(_0x159b2c,_0x49f7cd,_0x2fe7c2){return _0x159b2c(_0x49f7cd,_0x2fe7c2);},'mkVlO':_0x3519c(0x158)};let _0x5830c4=process[_0x3519c(0x15a)]();const _0x2566f8=parse(_0x5830c4)[_0x3519c(0x155)];while(_0x5830c4!==_0x2566f8){if(existsSync(join(_0x5830c4,_0x3519c(0x158))))return _0x5830c4;_0x5830c4=dirname(_0x5830c4);}if(existsSync(_0x42a13a['VnmaZ'](join,_0x2566f8,_0x42a13a[_0x3519c(0x15f)])))return _0x2566f8;return null;}export function getRangerHomeDir(){const _0x3efef5={'fmpcL':function(_0x5253b3,_0x324135,_0x11ba32){return _0x5253b3(_0x324135,_0x11ba32);},'Snmyj':function(_0x5514f9){return _0x5514f9();},'oeXpB':'.ranger'};return _0x3efef5['fmpcL'](join,_0x3efef5['Snmyj'](homedir),_0x3efef5['oeXpB']);}
@@ -1 +1 @@
1
- (function(_0x36c1eb,_0x6d266d){const _0xe80c82=_0x426d,_0x1fa529=_0x36c1eb();while(!![]){try{const _0x1a8b90=parseInt(_0xe80c82(0x1c3))/0x1+parseInt(_0xe80c82(0x1bc))/0x2*(-parseInt(_0xe80c82(0x1cb))/0x3)+-parseInt(_0xe80c82(0x1bd))/0x4+parseInt(_0xe80c82(0x1c4))/0x5+parseInt(_0xe80c82(0x1cc))/0x6*(parseInt(_0xe80c82(0x1b9))/0x7)+parseInt(_0xe80c82(0x1de))/0x8+-parseInt(_0xe80c82(0x1d3))/0x9;if(_0x1a8b90===_0x6d266d)break;else _0x1fa529['push'](_0x1fa529['shift']());}catch(_0x25d301){_0x1fa529['push'](_0x1fa529['shift']());}}}(_0x2d1d,0x8191a));function _0x2d1d(){const _0x58d5da=['startPath','env','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','cloud','6137168cknxvW','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','cTvoR','pNrBi','split','cdpEndpoint','70aAItly','vWySv','tcTJL','166TPvduf','1367952OyqHKy','log','QgRRL','name','ZkDdz','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','181900PUNjKC','2869880WJklPE','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','VuJjY','Profile\x20\x22','RANGER_SESSION_STATE_PATH=','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','ijWOv','2334OpuWfo','104814ekPpza','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','JZnPN','cwd','list','envStartPath','baseUrl','6843924VLFRye','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','rJCYz','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','zFbvf','profile','ZlveW'];_0x2d1d=function(){return _0x58d5da;};return _0x2d1d();}function _0x426d(_0x28bd03,_0x6ab547){_0x28bd03=_0x28bd03-0x1b9;const _0x2d1d17=_0x2d1d();let _0x426ddd=_0x2d1d17[_0x28bd03];return _0x426ddd;}import{existsSync}from'fs';import _0x1a6d79 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x5443ca){const _0x397478=_0x426d,_0xe02442={'zFbvf':function(_0x2f790c){return _0x2f790c();},'YFysr':function(_0x4c6370,_0x38aed3){return _0x4c6370+_0x38aed3;},'fskJA':function(_0x4db3f,_0x2c9cb8){return _0x4db3f+_0x2c9cb8;},'QgRRL':function(_0xe81ce2,_0x28f757){return _0xe81ce2+_0x28f757;},'PXgjm':_0x397478(0x1c9),'ZkDdz':function(_0x349c28,_0x2952b4){return _0x349c28(_0x2952b4);},'CfGcN':function(_0x15eab6,_0x2d15d0){return _0x15eab6 instanceof _0x2d15d0;},'Sqdwb':function(_0xf7d471,_0x2c95cc){return _0xf7d471&&_0x2c95cc;},'pADPw':function(_0x3a67aa,_0x324f95){return _0x3a67aa+_0x324f95;},'PWrMm':_0x397478(0x1d0),'pNrBi':'Cloud\x20profile\x20(recommended)','rJCYz':'Local\x20profile','qrsRJ':'local','DHGcF':function(_0x3f67e4,_0x22168e){return _0x3f67e4===_0x22168e;},'JZnPN':_0x397478(0x1dd),'kJIoK':function(_0x3c0339,_0x322882,_0xd0124d){return _0x3c0339(_0x322882,_0xd0124d);},'BnqYj':function(_0xa584c3,_0x414314,_0xe5b0da){return _0xa584c3(_0x414314,_0xe5b0da);},'cTvoR':function(_0xe8e423,_0x595712){return _0xe8e423??_0x595712;},'tcTJL':'2|0|1|3|4','OvJjA':function(_0x51f799,_0xdbf4ce){return _0x51f799(_0xdbf4ce);},'tkcAU':function(_0x46ddae,_0x1a1217){return _0x46ddae(_0x1a1217);},'vWySv':function(_0x3d3657,_0x3fac1){return _0x3d3657(_0x3fac1);},'ZlveW':function(_0x6550dd,_0x12cad6){return _0x6550dd(_0x12cad6);}},_0x23719a=_0x5443ca['profile'];let _0x1140c1=_0x5443ca[_0x397478(0x1d8)]??await readActiveProfileName(),_0x5476fb=null;if(!_0x1140c1&&process['env']['RANGER_TEST_USERNAME']){const _0x8f57dc=await resolveAdHocProfile();_0x8f57dc&&(_0x1140c1=_0x8f57dc[_0x397478(0x1c0)],_0x5476fb=_0x8f57dc[_0x397478(0x1d8)]);}if(!_0x1140c1)try{const _0x152c7c=await _0xe02442[_0x397478(0x1d7)](listCloudProfiles);if(_0x152c7c['length']===0x1){const _0x5ed41c=_0x152c7c[0x0];_0x1140c1=_0x5ed41c['name'],console[_0x397478(0x1be)](_0x397478(0x1cd)+_0x5ed41c[_0x397478(0x1c0)]),console[_0x397478(0x1be)](_0x397478(0x1c2));}}catch{}if(!_0x1140c1)throw new Error(_0xe02442['YFysr'](_0xe02442['fskJA'](_0xe02442[_0x397478(0x1bf)](_0xe02442[_0x397478(0x1bf)](_0xe02442['PXgjm'],_0x397478(0x1d4)),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x6bd6f2=getEnvDir(_0x1140c1),_0x2fedfd=existsSync(_0x6bd6f2);let _0x527239=_0x5476fb,_0x27d13e=![];if(!_0x527239)try{_0x527239=await _0xe02442[_0x397478(0x1c1)](fetchCloudProfile,_0x1140c1);if(!_0x527239)_0x27d13e=!![];}catch(_0x4bf46a){_0xe02442['CfGcN'](_0x4bf46a,ApiError)&&_0x4bf46a['status']===0x194&&(_0x27d13e=!![]);}if(_0xe02442['Sqdwb'](_0x23719a,_0x27d13e)&&!_0x2fedfd&&!_0x527239)throw new Error(_0xe02442['pADPw']('Profile\x20\x22'+_0x23719a+_0x397478(0x1c5),'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x527239&&_0x2fedfd){let _0x21191a=!![];if(isInteractive()){const {source:_0x33fd85}=await _0x1a6d79['prompt']([{'type':_0xe02442['PWrMm'],'name':'source','message':_0x397478(0x1c7)+_0x1140c1+_0x397478(0x1df),'choices':[{'name':_0xe02442[_0x397478(0x1e1)],'value':_0x397478(0x1dd)},{'name':_0xe02442[_0x397478(0x1d5)],'value':_0xe02442['qrsRJ']}],'default':_0x397478(0x1dd)}]);_0x21191a=_0xe02442['DHGcF'](_0x33fd85,_0xe02442[_0x397478(0x1ce)]);}if(!_0x21191a)_0x527239=null;}const _0x4ec06a=_0xe02442['kJIoK'](readProfileOverrides,process[_0x397478(0x1cf)](),_0x1140c1);let _0x5904d6=null,_0x216f8b,_0x267aac,_0x22d6a1,_0x1ac522,_0x21b4f4=null,_0x429ac9;const _0x4f82a7=_0xe02442[_0x397478(0x1c1)](expandOverrides,_0x4ec06a);if(_0x527239){_0x5904d6=_0x527239;const _0x5cffd4=_0x527239['settings']??{},_0x41cf9f=_0xe02442['BnqYj'](mergeCloudProfileSettings,_0x5cffd4,_0xe02442[_0x397478(0x1e0)](_0x4ec06a,undefined)),_0x232816={..._0x527239,'settings':_0x41cf9f},_0x499d9d=process[_0x397478(0x1db)]['RANGER_SESSION_STATE_PATH'];if(_0x499d9d){const _0x34d980=_0xe02442[_0x397478(0x1bb)][_0x397478(0x1e2)]('|');let _0x3c048d=0x0;while(!![]){switch(_0x34d980[_0x3c048d++]){case'0':_0x216f8b=_0x499d9d;continue;case'1':_0x267aac=_0xe02442['OvJjA'](resolveEnvVars,_0x41cf9f);continue;case'2':if(!_0xe02442['tkcAU'](existsSync,_0x499d9d))throw new Error(_0x397478(0x1c8)+_0x499d9d+'\x20does\x20not\x20exist.');continue;case'3':_0x22d6a1=Boolean(_0x267aac[_0x397478(0x1e3)]);continue;case'4':_0x21b4f4={'baseUrl':expandString(_0x5cffd4[_0x397478(0x1d2)]),'startPath':expandString(_0x5cffd4[_0x397478(0x1da)])};continue;}break;}}else{const _0xb2c0d1=await resolveCloudProfileSession(_0x232816);_0x216f8b=_0xb2c0d1['authPath'],_0x267aac=_0xe02442['vWySv'](resolveEnvVars,_0x41cf9f),_0x22d6a1=_0xe02442[_0x397478(0x1ba)](Boolean,_0x267aac['cdpEndpoint']),_0x21b4f4={'baseUrl':_0xe02442[_0x397478(0x1d9)](expandString,_0x5cffd4['baseUrl']),'startPath':expandString(_0x5cffd4['startPath'])},_0x429ac9=_0xb2c0d1['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x2fedfd)throw new Error('Profile\x20\x22'+_0x1140c1+_0x397478(0x1dc)+_0x1140c1);const _0x40510e=await loadSettings(_0x1140c1);_0x267aac=resolveEnvVars(_0x40510e),_0x22d6a1=Boolean(_0x267aac['cdpEndpoint']),_0x1ac522=_0x267aac['baseUrl'];}const _0x3894b1=readUrlEnvVars(),_0x31e804=_0xe02442['ZlveW'](resolveProfileUrl,{'flagBaseUrl':_0x5443ca[_0x397478(0x1d2)],'flagStartPath':_0x5443ca['startPath'],'envBaseUrl':_0x3894b1['envBaseUrl'],'envStartPath':_0x3894b1[_0x397478(0x1d1)],'localSettingsBaseUrl':_0x1ac522,'projectOverrides':_0x4f82a7,'cloudSettings':_0x21b4f4,'authEnvironmentDomain':_0x429ac9}),_0x40dc28=_0x31e804['url']??_0x31e804['baseUrl'];if(_0xe02442['Sqdwb'](!_0x40dc28,!_0x22d6a1))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x1140c1+_0x397478(0x1d6)+_0x1140c1+'\x20baseUrl\x20<url>');return{'activeProfile':_0x1140c1,'resolvedCloudProfile':_0x5904d6,'cloudAuthPath':_0x216f8b,'resolvedSettings':_0x267aac,'isCdpMode':_0x22d6a1,'url':_0x40dc28,'startPath':_0x31e804[_0x397478(0x1da)]};}function expandString(_0x2ec8fd){if(typeof _0x2ec8fd!=='string')return _0x2ec8fd;return resolveEnvVars(_0x2ec8fd);}function expandOverrides(_0xefa845){const _0x207474=_0x426d,_0x5f55fb={'ijWOv':function(_0x19495f,_0x29e66d){return _0x19495f(_0x29e66d);},'VuJjY':function(_0x3df227,_0x5dc4c3){return _0x3df227(_0x5dc4c3);}};if(!_0xefa845)return _0xefa845;const _0x23ceba={..._0xefa845};return typeof _0x23ceba[_0x207474(0x1d2)]==='string'&&(_0x23ceba['baseUrl']=_0x5f55fb[_0x207474(0x1ca)](resolveEnvVars,_0x23ceba['baseUrl'])),typeof _0x23ceba[_0x207474(0x1da)]==='string'&&(_0x23ceba['startPath']=_0x5f55fb[_0x207474(0x1c6)](resolveEnvVars,_0x23ceba['startPath'])),_0x23ceba;}
1
+ (function(_0x2afb1e,_0x15b409){const _0x275244=_0x9034,_0xf84fd9=_0x2afb1e();while(!![]){try{const _0x429d8a=parseInt(_0x275244(0xe3))/0x1*(parseInt(_0x275244(0xe5))/0x2)+-parseInt(_0x275244(0xd2))/0x3+parseInt(_0x275244(0xd3))/0x4*(-parseInt(_0x275244(0xea))/0x5)+parseInt(_0x275244(0xdb))/0x6+parseInt(_0x275244(0xcb))/0x7+parseInt(_0x275244(0xbd))/0x8*(-parseInt(_0x275244(0xd1))/0x9)+parseInt(_0x275244(0xdc))/0xa;if(_0x429d8a===_0x15b409)break;else _0xf84fd9['push'](_0xf84fd9['shift']());}catch(_0x592911){_0xf84fd9['push'](_0xf84fd9['shift']());}}}(_0xbf86,0xdf376));function _0x9034(_0x1a4c93,_0x48ed76){_0x1a4c93=_0x1a4c93-0xbd;const _0xbf8604=_0xbf86();let _0x903401=_0xbf8604[_0x1a4c93];return _0x903401;}import{existsSync}from'fs';import _0x5def2a from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';function _0xbf86(){const _0x3d32f4=['fRZwE','profile','status','url','settings','HAoGX','dnoag','jDPXB','env','8802955cYKQcL','fOzlo','RANGER_SESSION_STATE_PATH','resolvedEnv','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','cloud','216oyeDOw','3093750FWJNEZ','4rvVvig','NeGgj','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','name','xOkuz','cwd','ixyNr','length','572364pekcaq','18031520ErRxcu','Cloud\x20profile\x20(recommended)','baseUrl','MVnLM','Profile\x20\x22','NLkxa','string','5603qcMKWe','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','84yKZERs','RLBEZ','startPath','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','RANGER_SESSION_STATE_PATH=','3326585LHbGfv','260192ouzKrj','authPath','cdpEndpoint','tErJq','qwNQs'];_0xbf86=function(){return _0x3d32f4;};return _0xbf86();}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0xbe4a87){const _0x353470=_0x9034,_0x25bc94={'dnoag':function(_0x5eff0b){return _0x5eff0b();},'vGfpk':function(_0x1292b6,_0x3c65a7){return _0x1292b6===_0x3c65a7;},'qwNQs':function(_0x2663fb,_0x13f04e){return _0x2663fb+_0x13f04e;},'fCjTq':function(_0x4460fc,_0x4fcc3f){return _0x4460fc+_0x4fcc3f;},'RLBEZ':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','Zwqon':_0x353470(0xd5),'cqIBR':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','bjqsK':function(_0x5c5448,_0x4b7b43){return _0x5c5448(_0x4b7b43);},'CfIWM':function(_0x3f5374,_0x2bf2fb){return _0x3f5374(_0x2bf2fb);},'NLkxa':function(_0x3559b0,_0x860c7f){return _0x3559b0&&_0x860c7f;},'TPIms':function(_0x4aa77d,_0x195f85){return _0x4aa77d+_0x195f85;},'jDPXB':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','xOkuz':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','tErJq':function(_0x14d173,_0xab1d88){return _0x14d173&&_0xab1d88;},'vYZnQ':function(_0x3baa57){return _0x3baa57();},'NbmMV':'source','fRZwE':'Local\x20profile','MVnLM':'local','HBNEc':_0x353470(0xd0),'XcKkz':function(_0x1d8d89,_0x540932,_0x39d457){return _0x1d8d89(_0x540932,_0x39d457);},'NeGgj':function(_0x2b68ac,_0x390594){return _0x2b68ac(_0x390594);},'gaTxZ':function(_0x57dd4e,_0x12aeaa){return _0x57dd4e??_0x12aeaa;},'ixyNr':function(_0x44957d,_0x4d5c40){return _0x44957d(_0x4d5c40);},'KXSMv':function(_0x4b5d75,_0xbdb91c){return _0x4b5d75(_0xbdb91c);},'ifQXy':function(_0x344acb,_0x474b4a){return _0x344acb(_0x474b4a);},'MGWSH':function(_0x5856ed,_0x571a08){return _0x5856ed(_0x571a08);},'HQhZm':function(_0x207d3a){return _0x207d3a();}},_0x302cdd=_0xbe4a87[_0x353470(0xc3)];let _0x23fcb3=_0xbe4a87['profile']??await readActiveProfileName(),_0x349940=null;if(!_0x23fcb3&&process[_0x353470(0xca)]['RANGER_TEST_USERNAME']){const _0x2d247a=await _0x25bc94[_0x353470(0xc8)](resolveAdHocProfile);_0x2d247a&&(_0x23fcb3=_0x2d247a['name'],_0x349940=_0x2d247a[_0x353470(0xc3)]);}if(!_0x23fcb3)try{const _0x2ed894=await listCloudProfiles();if(_0x25bc94['vGfpk'](_0x2ed894[_0x353470(0xda)],0x1)){const _0x4513a4=_0x2ed894[0x0];_0x23fcb3=_0x4513a4[_0x353470(0xd6)],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x4513a4[_0x353470(0xd6)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x23fcb3)throw new Error(_0x25bc94[_0x353470(0xc1)](_0x25bc94['fCjTq']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a'+_0x25bc94[_0x353470(0xe6)],_0x25bc94['Zwqon'])+_0x25bc94['cqIBR'],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x58b3d1=_0x25bc94['bjqsK'](getEnvDir,_0x23fcb3),_0x561fbc=_0x25bc94['CfIWM'](existsSync,_0x58b3d1);let _0x4c9b3e=_0x349940,_0x183999=![];if(!_0x4c9b3e)try{_0x4c9b3e=await fetchCloudProfile(_0x23fcb3);if(!_0x4c9b3e)_0x183999=!![];}catch(_0x459072){_0x459072 instanceof ApiError&&_0x459072[_0x353470(0xc4)]===0x194&&(_0x183999=!![]);}if(_0x25bc94[_0x353470(0xe1)](_0x302cdd,_0x183999)&&!_0x561fbc&&!_0x4c9b3e)throw new Error(_0x25bc94['TPIms'](_0x353470(0xe0)+_0x302cdd+_0x353470(0xcf),_0x25bc94[_0x353470(0xc9)])+_0x25bc94[_0x353470(0xd7)]);if(_0x25bc94[_0x353470(0xc0)](_0x4c9b3e,_0x561fbc)){let _0x1da339=!![];if(_0x25bc94['vYZnQ'](isInteractive)){const {source:_0x359883}=await _0x5def2a['prompt']([{'type':'list','name':_0x25bc94['NbmMV'],'message':_0x353470(0xe0)+_0x23fcb3+_0x353470(0xe4),'choices':[{'name':_0x353470(0xdd),'value':_0x353470(0xd0)},{'name':_0x25bc94[_0x353470(0xc2)],'value':_0x25bc94[_0x353470(0xdf)]}],'default':_0x353470(0xd0)}]);_0x1da339=_0x359883===_0x25bc94['HBNEc'];}if(!_0x1da339)_0x4c9b3e=null;}const _0x51fe3a=_0x25bc94['XcKkz'](readProfileOverrides,process[_0x353470(0xd8)](),_0x23fcb3);let _0x479b07=null,_0x42f63e,_0x2e685e,_0x1624a5,_0x282cbe,_0x1ce3cd=null,_0x4be063;const _0x5142f2=_0x25bc94[_0x353470(0xd4)](expandOverrides,_0x51fe3a);if(_0x4c9b3e){_0x479b07=_0x4c9b3e;const _0x45d8c6=_0x4c9b3e[_0x353470(0xc6)]??{},_0x35e9fd=_0x25bc94['XcKkz'](mergeCloudProfileSettings,_0x45d8c6,_0x25bc94['gaTxZ'](_0x51fe3a,undefined)),_0x43ee08={..._0x4c9b3e,'settings':_0x35e9fd},_0x15bf00=process['env'][_0x353470(0xcd)];if(_0x15bf00){if(!existsSync(_0x15bf00))throw new Error(_0x353470(0xe9)+_0x15bf00+'\x20does\x20not\x20exist.');_0x42f63e=_0x15bf00,_0x2e685e=_0x25bc94[_0x353470(0xd9)](resolveEnvVars,_0x35e9fd),_0x1624a5=Boolean(_0x2e685e[_0x353470(0xbf)]),_0x1ce3cd={'baseUrl':_0x25bc94['KXSMv'](expandString,_0x45d8c6['baseUrl']),'startPath':expandString(_0x45d8c6[_0x353470(0xe7)])};}else{const _0x1841dc=await _0x25bc94['ifQXy'](resolveCloudProfileSession,_0x43ee08);_0x42f63e=_0x1841dc[_0x353470(0xbe)],_0x2e685e=resolveEnvVars(_0x35e9fd),_0x1624a5=_0x25bc94['ifQXy'](Boolean,_0x2e685e[_0x353470(0xbf)]),_0x1ce3cd={'baseUrl':expandString(_0x45d8c6['baseUrl']),'startPath':_0x25bc94['MGWSH'](expandString,_0x45d8c6[_0x353470(0xe7)])},_0x4be063=_0x1841dc[_0x353470(0xce)]?.['domains']?.[0x0];}}else{if(!_0x561fbc)throw new Error('Profile\x20\x22'+_0x23fcb3+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x23fcb3);const _0x571d83=await loadSettings(_0x23fcb3);_0x2e685e=resolveEnvVars(_0x571d83),_0x1624a5=Boolean(_0x2e685e[_0x353470(0xbf)]),_0x282cbe=_0x2e685e['baseUrl'];}const _0x1b0b6f=_0x25bc94['HQhZm'](readUrlEnvVars),_0x35c446=_0x25bc94[_0x353470(0xd4)](resolveProfileUrl,{'flagBaseUrl':_0xbe4a87['baseUrl'],'flagStartPath':_0xbe4a87['startPath'],'envBaseUrl':_0x1b0b6f['envBaseUrl'],'envStartPath':_0x1b0b6f['envStartPath'],'localSettingsBaseUrl':_0x282cbe,'projectOverrides':_0x5142f2,'cloudSettings':_0x1ce3cd,'authEnvironmentDomain':_0x4be063}),_0x4e8445=_0x35c446[_0x353470(0xc5)]??_0x35c446[_0x353470(0xde)];if(_0x25bc94[_0x353470(0xe1)](!_0x4e8445,!_0x1624a5))throw new Error(_0x353470(0xe8)+_0x23fcb3+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x23fcb3+'\x20baseUrl\x20<url>');return{'activeProfile':_0x23fcb3,'resolvedCloudProfile':_0x479b07,'cloudAuthPath':_0x42f63e,'resolvedSettings':_0x2e685e,'isCdpMode':_0x1624a5,'url':_0x4e8445,'startPath':_0x35c446['startPath']};}function expandString(_0x18a029){const _0x5ee1fb=_0x9034,_0x3ff82a={'WDiRq':function(_0x5b13f6,_0x359758){return _0x5b13f6!==_0x359758;}};if(_0x3ff82a['WDiRq'](typeof _0x18a029,_0x5ee1fb(0xe2)))return _0x18a029;return resolveEnvVars(_0x18a029);}function expandOverrides(_0x6f548c){const _0x4be69=_0x9034,_0x5e8d24={'fOzlo':function(_0x2bb6be,_0x3bde74){return _0x2bb6be===_0x3bde74;},'qrVYJ':_0x4be69(0xe2),'HAoGX':function(_0x29aff6,_0x2eb27c){return _0x29aff6(_0x2eb27c);},'ldZwp':function(_0x46f9cd,_0xf497ec){return _0x46f9cd(_0xf497ec);}};if(!_0x6f548c)return _0x6f548c;const _0x383116={..._0x6f548c};return _0x5e8d24[_0x4be69(0xcc)](typeof _0x383116['baseUrl'],_0x5e8d24['qrVYJ'])&&(_0x383116[_0x4be69(0xde)]=_0x5e8d24[_0x4be69(0xc7)](resolveEnvVars,_0x383116['baseUrl'])),typeof _0x383116['startPath']===_0x4be69(0xe2)&&(_0x383116[_0x4be69(0xe7)]=_0x5e8d24['ldZwp'](resolveEnvVars,_0x383116['startPath'])),_0x383116;}
@@ -1 +1 @@
1
- (function(_0x1dffbf,_0xad7d73){const _0x359a17=_0x52da,_0x35ce78=_0x1dffbf();while(!![]){try{const _0xdde87d=parseInt(_0x359a17(0x1a4))/0x1+-parseInt(_0x359a17(0x1b1))/0x2*(parseInt(_0x359a17(0x1b3))/0x3)+parseInt(_0x359a17(0x1a0))/0x4+parseInt(_0x359a17(0x1a7))/0x5*(parseInt(_0x359a17(0x1a1))/0x6)+-parseInt(_0x359a17(0x19d))/0x7*(-parseInt(_0x359a17(0x1a6))/0x8)+-parseInt(_0x359a17(0x19c))/0x9*(-parseInt(_0x359a17(0x19e))/0xa)+-parseInt(_0x359a17(0x1a5))/0xb;if(_0xdde87d===_0xad7d73)break;else _0x35ce78['push'](_0x35ce78['shift']());}catch(_0x53e561){_0x35ce78['push'](_0x35ce78['shift']());}}}(_0x1223,0x220fc));function firstDefined(..._0x5ac415){const _0x1a4547=_0x52da,_0x4611ed={'WujBB':function(_0x518947,_0x17af6c){return _0x518947!==_0x17af6c;}};for(const _0x13d1a8 of _0x5ac415){if(_0x13d1a8!==undefined&&_0x4611ed[_0x1a4547(0x1aa)](_0x13d1a8,null)&&_0x4611ed['WujBB'](_0x13d1a8,''))return _0x13d1a8;}return undefined;}function normalizeAuthEnvironmentDomain(_0x12466d){const _0x2f20ca=_0x52da;if(!_0x12466d)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x2f20ca(0x1ac)](_0x12466d))return _0x12466d;return'https://'+_0x12466d;}export function resolveBaseUrl(_0x113c69){const _0x5dd526=_0x52da,_0x1775d2={'gzUmB':function(_0x57853e,_0x44bc9f){return _0x57853e in _0x44bc9f;},'dZyvX':'baseUrl','tbcUL':_0x5dd526(0x1a8),'jqjcI':function(_0x1d193c,_0x47d258){return _0x1d193c(_0x47d258);}},_0x5d2ccc=_0x113c69['projectOverrides'],_0x184ceb=!!_0x5d2ccc&&_0x1775d2['gzUmB'](_0x1775d2[_0x5dd526(0x1ad)],_0x5d2ccc),_0x1240fa=_0x5d2ccc?.[_0x5dd526(0x1a9)],_0x372c50=!(_0x184ceb&&_0x1240fa===null);return firstDefined(_0x113c69[_0x5dd526(0x1b2)],_0x113c69[_0x5dd526(0x1a2)],_0x113c69['localSettingsBaseUrl'],typeof _0x1240fa===_0x1775d2['tbcUL']?_0x1240fa:undefined,_0x372c50?_0x113c69['cloudSettings']?.['baseUrl']:undefined,_0x372c50?_0x1775d2[_0x5dd526(0x1a3)](normalizeAuthEnvironmentDomain,_0x113c69['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0xd70762){const _0x48ee4f=_0x52da,_0x30aab8={'Nsdmd':function(_0x32a483,_0x5e1417){return _0x32a483===_0x5e1417;},'shZlO':_0x48ee4f(0x1a8)},_0x274444=_0xd70762['projectOverrides'],_0x22652d=!!_0x274444&&'startPath'in _0x274444,_0x34a783=_0x274444?.['startPath'],_0x53d43a=!(_0x22652d&&_0x30aab8[_0x48ee4f(0x1ae)](_0x34a783,null));return firstDefined(_0xd70762[_0x48ee4f(0x19f)],_0xd70762['envStartPath'],typeof _0x34a783===_0x30aab8['shZlO']?_0x34a783:undefined,_0x53d43a?_0xd70762['cloudSettings']?.['startPath']:undefined);}function _0x1223(){const _0x3753f5=['491358XnjaTd','9pEslnk','126oQrvrt','2222490zLwmDA','flagStartPath','94896fDCaWO','2316nXoxiw','envBaseUrl','jqjcI','128346tYpEGj','1614921XxWEJH','576brWtqF','965qgqagE','string','baseUrl','WujBB','endsWith','test','dZyvX','Nsdmd','slice','startsWith','2lETIBD','flagBaseUrl'];_0x1223=function(){return _0x3753f5;};return _0x1223();}export function joinBaseAndPath(_0x20af8d,_0x3a0641){const _0x387b4e=_0x52da,_0x4cc89d={'KcAig':function(_0xce070c,_0x4e4eca){return _0xce070c+_0x4e4eca;},'gOhSc':function(_0x483c75,_0x224bea){return _0x483c75+_0x224bea;}};if(!_0x20af8d)return undefined;if(!_0x3a0641)return _0x20af8d;const _0x91e435=_0x20af8d[_0x387b4e(0x1ab)]('/')?_0x20af8d[_0x387b4e(0x1af)](0x0,-0x1):_0x20af8d,_0x35287c=_0x3a0641[_0x387b4e(0x1b0)]('/')?_0x3a0641:_0x4cc89d['KcAig']('/',_0x3a0641);return _0x4cc89d['gOhSc'](_0x91e435,_0x35287c);}export function resolveProfileUrl(_0x15bd5f){const _0x108488={'QZnXv':function(_0x9f8d4c,_0x1dd23a,_0x25631e){return _0x9f8d4c(_0x1dd23a,_0x25631e);}},_0x272ef3=resolveBaseUrl(_0x15bd5f),_0x871a67=resolveStartPath(_0x15bd5f);return{'baseUrl':_0x272ef3,'startPath':_0x871a67,'url':_0x108488['QZnXv'](joinBaseAndPath,_0x272ef3,_0x871a67)};}function _0x52da(_0x113708,_0x3b6366){_0x113708=_0x113708-0x19c;const _0x122304=_0x1223();let _0x52da00=_0x122304[_0x113708];return _0x52da00;}export function readUrlEnvVars(_0x2afc87=process['env']){return{'envBaseUrl':_0x2afc87['RANGER_BASE_URL'],'envStartPath':_0x2afc87['RANGER_START_PATH']};}
1
+ (function(_0x11644a,_0x27bedd){const _0x235f91=_0x12d5,_0x49465f=_0x11644a();while(!![]){try{const _0x49d4e5=-parseInt(_0x235f91(0x1a7))/0x1*(parseInt(_0x235f91(0x1a5))/0x2)+parseInt(_0x235f91(0x1a9))/0x3+parseInt(_0x235f91(0x1a6))/0x4+parseInt(_0x235f91(0x1aa))/0x5+-parseInt(_0x235f91(0x1a2))/0x6+parseInt(_0x235f91(0x1a0))/0x7+-parseInt(_0x235f91(0x1ac))/0x8*(-parseInt(_0x235f91(0x1a8))/0x9);if(_0x49d4e5===_0x27bedd)break;else _0x49465f['push'](_0x49465f['shift']());}catch(_0x3e62a0){_0x49465f['push'](_0x49465f['shift']());}}}(_0x2c65,0xb780c));function firstDefined(..._0x30b125){const _0x575347={'hOjCD':function(_0x391dc1,_0x5d3fae){return _0x391dc1!==_0x5d3fae;}};for(const _0x348049 of _0x30b125){if(_0x348049!==undefined&&_0x348049!==null&&_0x575347['hOjCD'](_0x348049,''))return _0x348049;}return undefined;}function normalizeAuthEnvironmentDomain(_0x12ddac){const _0xf22251=_0x12d5;if(!_0x12ddac)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0xf22251(0x1ae)](_0x12ddac))return _0x12ddac;return _0xf22251(0x1a3)+_0x12ddac;}export function resolveBaseUrl(_0x590560){const _0x263d84=_0x12d5,_0x3da900={'iWvfo':function(_0x33320a,_0x52b937){return _0x33320a in _0x52b937;},'aExKV':function(_0x4892c6,_0x45a866){return _0x4892c6===_0x45a866;},'jyilP':function(_0x444acc,_0x1147cc,_0x19926e,_0x554006,_0x3fbdf3,_0x416cba,_0x2f4de5){return _0x444acc(_0x1147cc,_0x19926e,_0x554006,_0x3fbdf3,_0x416cba,_0x2f4de5);},'zUYaB':function(_0x17a5b4,_0x4323b4){return _0x17a5b4===_0x4323b4;},'XQFjB':'string'},_0x321e8=_0x590560['projectOverrides'],_0x169065=!!_0x321e8&&_0x3da900[_0x263d84(0x19d)]('baseUrl',_0x321e8),_0x5658ff=_0x321e8?.['baseUrl'],_0x50df3b=!(_0x169065&&_0x3da900['aExKV'](_0x5658ff,null));return _0x3da900[_0x263d84(0x19c)](firstDefined,_0x590560[_0x263d84(0x1a4)],_0x590560['envBaseUrl'],_0x590560[_0x263d84(0x1a1)],_0x3da900['zUYaB'](typeof _0x5658ff,_0x3da900[_0x263d84(0x1af)])?_0x5658ff:undefined,_0x50df3b?_0x590560[_0x263d84(0x19e)]?.[_0x263d84(0x199)]:undefined,_0x50df3b?normalizeAuthEnvironmentDomain(_0x590560['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x13b01d){const _0x24591f=_0x12d5,_0x304c1f={'CGHGh':'startPath'},_0x5d11dc=_0x13b01d['projectOverrides'],_0x5d2cae=!!_0x5d11dc&&_0x304c1f[_0x24591f(0x1ab)]in _0x5d11dc,_0x26bad3=_0x5d11dc?.[_0x24591f(0x19f)],_0x5e9889=!(_0x5d2cae&&_0x26bad3===null);return firstDefined(_0x13b01d['flagStartPath'],_0x13b01d['envStartPath'],typeof _0x26bad3==='string'?_0x26bad3:undefined,_0x5e9889?_0x13b01d[_0x24591f(0x19e)]?.['startPath']:undefined);}function _0x12d5(_0x18a406,_0x89ad66){_0x18a406=_0x18a406-0x199;const _0x2c65b5=_0x2c65();let _0x12d5f1=_0x2c65b5[_0x18a406];return _0x12d5f1;}export function joinBaseAndPath(_0x50da77,_0x1c4e35){const _0x2fdf69=_0x12d5,_0x6b136c={'cetMO':function(_0x3ed7a3,_0x527ccf){return _0x3ed7a3+_0x527ccf;}};if(!_0x50da77)return undefined;if(!_0x1c4e35)return _0x50da77;const _0x2cf0ff=_0x50da77[_0x2fdf69(0x1ad)]('/')?_0x50da77[_0x2fdf69(0x19b)](0x0,-0x1):_0x50da77,_0x2ebde2=_0x1c4e35['startsWith']('/')?_0x1c4e35:_0x6b136c['cetMO']('/',_0x1c4e35);return _0x2cf0ff+_0x2ebde2;}function _0x2c65(){const _0x2ce40b=['7787574VMEula','https://','flagBaseUrl','4426DHRhNY','2608696ePkLGc','673ZyAyiF','614826NgUqWh','1736535GbKzrb','3421295lirjpk','CGHGh','48pTrNzS','endsWith','test','XQFjB','baseUrl','RANGER_START_PATH','slice','jyilP','iWvfo','cloudSettings','startPath','8496208fRihsa','localSettingsBaseUrl'];_0x2c65=function(){return _0x2ce40b;};return _0x2c65();}export function resolveProfileUrl(_0x5a18b1){const _0x368895={'jEUnR':function(_0x2e8ad5,_0x62a372){return _0x2e8ad5(_0x62a372);}},_0x1ad949=_0x368895['jEUnR'](resolveBaseUrl,_0x5a18b1),_0x3d3252=_0x368895['jEUnR'](resolveStartPath,_0x5a18b1);return{'baseUrl':_0x1ad949,'startPath':_0x3d3252,'url':joinBaseAndPath(_0x1ad949,_0x3d3252)};}export function readUrlEnvVars(_0x594b60=process['env']){const _0x41ded2=_0x12d5;return{'envBaseUrl':_0x594b60['RANGER_BASE_URL'],'envStartPath':_0x594b60[_0x41ded2(0x19a)]};}
@@ -1 +1 @@
1
- function _0x1e1e(){const _0x351930=['710190hxkHaw','341582ljQFzs','828952delpLD','153873tkCjsl','label','baseDelayMs','689855WqAonN','ugMME','ms...','13192VTLnZP','9rCizrK','maxRetries','2408JKTMri','647004ihZIJj'];_0x1e1e=function(){return _0x351930;};return _0x1e1e();}function _0x2fea(_0xf387e2,_0x3494a6){_0xf387e2=_0xf387e2-0x7d;const _0x1e1ea7=_0x1e1e();let _0x2fea45=_0x1e1ea7[_0xf387e2];return _0x2fea45;}(function(_0x4326b7,_0x19cbbc){const _0x293174=_0x2fea,_0x416038=_0x4326b7();while(!![]){try{const _0x2fdef2=parseInt(_0x293174(0x81))/0x1+-parseInt(_0x293174(0x82))/0x2+-parseInt(_0x293174(0x7d))/0x3*(parseInt(_0x293174(0x83))/0x4)+-parseInt(_0x293174(0x87))/0x5+parseInt(_0x293174(0x80))/0x6+-parseInt(_0x293174(0x7f))/0x7*(-parseInt(_0x293174(0x8a))/0x8)+parseInt(_0x293174(0x84))/0x9;if(_0x2fdef2===_0x19cbbc)break;else _0x416038['push'](_0x416038['shift']());}catch(_0x256481){_0x416038['push'](_0x416038['shift']());}}}(_0x1e1e,0x7335d));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1764f6,_0x4ae3ef){const _0x587555=_0x2fea,_0x2083e4={'ugMME':function(_0x476596,_0x1a26c2){return _0x476596<=_0x1a26c2;},'DBtsy':function(_0x499e1f){return _0x499e1f();},'cYxYo':function(_0x54f962,_0x322af1){return _0x54f962 instanceof _0x322af1;},'CzICk':function(_0x1d8f99,_0x307d09){return _0x1d8f99+_0x307d09;}},_0x1cfd4c=_0x4ae3ef?.[_0x587555(0x7e)]??DEFAULT_MAX_RETRIES,_0x34e71d=_0x4ae3ef?.[_0x587555(0x86)]??DEFAULT_BASE_DELAY_MS;let _0x26b60c;for(let _0x284594=0x0;_0x2083e4[_0x587555(0x88)](_0x284594,_0x1cfd4c);_0x284594++){try{return await _0x2083e4['DBtsy'](_0x1764f6);}catch(_0x2b2ff3){_0x26b60c=_0x2083e4['cYxYo'](_0x2b2ff3,Error)?_0x2b2ff3:new Error(String(_0x2b2ff3));if(_0x284594<_0x1cfd4c){const _0x5202ea=_0x34e71d*Math['pow'](0x2,_0x284594);_0x4ae3ef?.['label']&&console['error'](_0x4ae3ef[_0x587555(0x85)]+'\x20failed\x20(attempt\x20'+(_0x284594+0x1)+'/'+_0x2083e4['CzICk'](_0x1cfd4c,0x1)+'),\x20retrying\x20in\x20'+_0x5202ea+_0x587555(0x89)),await new Promise(_0x1f28bf=>setTimeout(_0x1f28bf,_0x5202ea));}}}throw _0x26b60c;}
1
+ (function(_0x2912a6,_0x581045){const _0x308bfa=_0x57d5,_0x1b7d30=_0x2912a6();while(!![]){try{const _0x380763=-parseInt(_0x308bfa(0x9e))/0x1+-parseInt(_0x308bfa(0x9a))/0x2*(parseInt(_0x308bfa(0x96))/0x3)+parseInt(_0x308bfa(0x97))/0x4*(parseInt(_0x308bfa(0xa7))/0x5)+-parseInt(_0x308bfa(0xa1))/0x6*(-parseInt(_0x308bfa(0xa3))/0x7)+-parseInt(_0x308bfa(0x9d))/0x8+parseInt(_0x308bfa(0x9f))/0x9*(-parseInt(_0x308bfa(0xa5))/0xa)+parseInt(_0x308bfa(0x99))/0xb*(parseInt(_0x308bfa(0x9b))/0xc);if(_0x380763===_0x581045)break;else _0x1b7d30['push'](_0x1b7d30['shift']());}catch(_0x5d1859){_0x1b7d30['push'](_0x1b7d30['shift']());}}}(_0x63d2,0xabe2e));function _0x63d2(){const _0x42c776=['30GcFCng','\x20failed\x20(attempt\x20','46915bjOFqe','baseDelayMs','15uZYDcg','484Izkbga','),\x20retrying\x20in\x20','14624313LfRCVE','304732DCFZRN','12jBvkQy','ms...','10153048edFmce','304849FDUJBx','2380122VnpwjD','maxRetries','12OmNVyw','label','4789414nJGrnL','error'];_0x63d2=function(){return _0x42c776;};return _0x63d2();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x57d5(_0x5a48fd,_0x2aed51){_0x5a48fd=_0x5a48fd-0x96;const _0x63d2d6=_0x63d2();let _0x57d526=_0x63d2d6[_0x5a48fd];return _0x57d526;}export async function withRetry(_0x5b8968,_0x54ad79){const _0x41fa26=_0x57d5,_0x50e551=_0x54ad79?.[_0x41fa26(0xa0)]??DEFAULT_MAX_RETRIES,_0x2785f8=_0x54ad79?.[_0x41fa26(0xa8)]??DEFAULT_BASE_DELAY_MS;let _0x1b5234;for(let _0x3466e2=0x0;_0x3466e2<=_0x50e551;_0x3466e2++){try{return await _0x5b8968();}catch(_0x1a6710){_0x1b5234=_0x1a6710 instanceof Error?_0x1a6710:new Error(String(_0x1a6710));if(_0x3466e2<_0x50e551){const _0x54adb7=_0x2785f8*Math['pow'](0x2,_0x3466e2);_0x54ad79?.[_0x41fa26(0xa2)]&&console[_0x41fa26(0xa4)](_0x54ad79['label']+_0x41fa26(0xa6)+(_0x3466e2+0x1)+'/'+(_0x50e551+0x1)+_0x41fa26(0x98)+_0x54adb7+_0x41fa26(0x9c)),await new Promise(_0xe2ca85=>setTimeout(_0xe2ca85,_0x54adb7));}}}throw _0x1b5234;}
@@ -1 +1 @@
1
- const _0x50281e=_0x32b1;(function(_0x1728ad,_0xa0ee1a){const _0x232b0a=_0x32b1,_0x2967aa=_0x1728ad();while(!![]){try{const _0x11ef93=-parseInt(_0x232b0a(0x204))/0x1*(parseInt(_0x232b0a(0x1de))/0x2)+parseInt(_0x232b0a(0x1ef))/0x3+-parseInt(_0x232b0a(0x1f8))/0x4+-parseInt(_0x232b0a(0x1e1))/0x5+-parseInt(_0x232b0a(0x206))/0x6+parseInt(_0x232b0a(0x208))/0x7+parseInt(_0x232b0a(0x20a))/0x8*(parseInt(_0x232b0a(0x1fb))/0x9);if(_0x11ef93===_0xa0ee1a)break;else _0x2967aa['push'](_0x2967aa['shift']());}catch(_0x240f34){_0x2967aa['push'](_0x2967aa['shift']());}}}(_0x2af3,0x22c88));import*as _0x44a823 from'fs';import*as _0x4a9e6c from'path';import*as _0x17d479 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4a9e6c[_0x50281e(0x207)](_0x17d479[_0x50281e(0x1f4)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x54719a=_0x50281e,_0x44f27a={'JyIWh':_0x54719a(0x20b),'wgujO':function(_0x147d62){return _0x147d62();}};try{if(_0x44a823['existsSync'](CACHE_FILE)){const _0x417f05=JSON[_0x54719a(0x1ec)](_0x44a823['readFileSync'](CACHE_FILE,_0x44f27a[_0x54719a(0x1e3)]));return{'version':0x3,'sessions':_0x417f05['sessions']||{},'branches':_0x417f05['branches']||{},'lastEnabledSessionClearedAt':_0x417f05[_0x54719a(0x1df)]};}}catch{}return _0x44f27a[_0x54719a(0x1f5)](createEmptyCache);}function saveCache(_0x256e27){const _0x3fbf5d=_0x50281e;try{const _0x585557=_0x4a9e6c['dirname'](CACHE_FILE);!_0x44a823[_0x3fbf5d(0x205)](_0x585557)&&_0x44a823[_0x3fbf5d(0x203)](_0x585557,{'recursive':!![]}),_0x44a823[_0x3fbf5d(0x1fc)](CACHE_FILE,JSON['stringify'](_0x256e27,null,0x2));}catch{}}export function getCurrentBranch(){const _0x591771=_0x50281e,_0x4b3a81={'lhjfg':function(_0x1e657b,_0x51575e,_0x3d9268){return _0x1e657b(_0x51575e,_0x3d9268);},'DVgkB':_0x591771(0x1ea),'hBhxN':_0x591771(0x20b),'rJKgQ':_0x591771(0x1fa),'DdFOe':function(_0x2e5520,_0x4ebe96){return _0x2e5520===_0x4ebe96;},'dBqih':_0x591771(0x1e7)};try{const _0x3feba0=_0x4b3a81[_0x591771(0x1e4)](execSync,_0x4b3a81[_0x591771(0x1f9)],{'encoding':_0x4b3a81['hBhxN'],'stdio':[_0x591771(0x1fa),_0x4b3a81['rJKgQ'],_0x591771(0x1fa)]})[_0x591771(0x20c)]();if(!_0x3feba0||_0x4b3a81[_0x591771(0x1f6)](_0x3feba0,_0x4b3a81['dBqih']))return null;return _0x3feba0;}catch{return null;}}export function enableBranch(_0x540f7d){const _0x29d235=_0x50281e,_0xf8fa24={'oqDCR':function(_0x454dc1){return _0x454dc1();}},_0x48bb4b=_0xf8fa24[_0x29d235(0x1ed)](loadCache);_0x48bb4b[_0x29d235(0x1fe)][_0x540f7d]=!![],saveCache(_0x48bb4b);}export function disableBranch(_0x2c413a){const _0x388e9a=_0x50281e,_0x5052f0={'eqtzN':function(_0x2844e3){return _0x2844e3();}},_0x3b4f04=_0x5052f0[_0x388e9a(0x1e0)](loadCache);delete _0x3b4f04[_0x388e9a(0x1fe)][_0x2c413a],saveCache(_0x3b4f04);}export function isBranchEnabled(_0x12d98a){const _0x3d8d72=loadCache();return _0x3d8d72['branches'][_0x12d98a]===!![];}function getOrCreateSession(_0x4dde77,_0x264921){const _0x1fc4ba=_0x50281e;return!_0x4dde77['sessions'][_0x264921]&&(_0x4dde77[_0x1fc4ba(0x209)][_0x264921]={}),_0x4dde77[_0x1fc4ba(0x209)][_0x264921];}export function enableSession(_0x236be5){const _0x57c59c=_0x50281e,_0x1e712b={'pFISw':function(_0x3c4cd5){return _0x3c4cd5();},'kXCzM':function(_0x2c54b1,_0x43c67c,_0x41c17f){return _0x2c54b1(_0x43c67c,_0x41c17f);},'OGBvb':function(_0x150c3d,_0x10db45){return _0x150c3d!==_0x10db45;},'BTJzZ':_0x57c59c(0x1fd),'EVCWg':function(_0x106f42,_0x5b13d2){return _0x106f42(_0x5b13d2);}},_0x15742a=_0x1e712b['pFISw'](loadCache),_0x102b32=_0x1e712b['kXCzM'](getOrCreateSession,_0x15742a,_0x236be5);_0x102b32[_0x57c59c(0x201)]=!![];const _0x32d3ef=getCurrentBranch();_0x32d3ef&&_0x1e712b['OGBvb'](_0x32d3ef,_0x1e712b['BTJzZ'])&&_0x32d3ef!==_0x57c59c(0x202)&&(_0x15742a[_0x57c59c(0x1fe)][_0x32d3ef]=!![],_0x102b32['currentBranch']=_0x32d3ef),_0x1e712b['EVCWg'](saveCache,_0x15742a);}export function isSessionEnabled(_0x346da4){const _0x51fdec=_0x50281e,_0x279b52={'UGhJr':function(_0x51376a){return _0x51376a();},'lGVZF':function(_0x46a303,_0x16e230){return _0x46a303===_0x16e230;},'jGtsT':_0x51fdec(0x1fd),'oWyhh':_0x51fdec(0x202),'QPGhn':function(_0x4988d7,_0x909fd5){return _0x4988d7===_0x909fd5;}},_0x1fc639=loadCache(),_0x2543de=_0x279b52[_0x51fdec(0x1dd)](getCurrentBranch);if(!_0x2543de||_0x279b52[_0x51fdec(0x1e9)](_0x2543de,_0x279b52['jGtsT'])||_0x279b52['lGVZF'](_0x2543de,_0x279b52['oWyhh']))return _0x279b52['QPGhn'](_0x1fc639[_0x51fdec(0x209)][_0x346da4]?.['enabled'],!![]);const _0xd6421d=_0x1fc639[_0x51fdec(0x1fe)][_0x2543de]===!![],_0x400d9a=_0x1fc639[_0x51fdec(0x209)][_0x346da4]?.[_0x51fdec(0x201)]===!![];return _0xd6421d||_0x400d9a;}export function disableSession(_0x3a0a58){const _0xbdb7a9=_0x50281e,_0x23c5e7={'ZgVmH':function(_0x4fb99a,_0x35a0a0,_0x4a797e){return _0x4fb99a(_0x35a0a0,_0x4a797e);}},_0x23ff5e=loadCache(),_0x2bafaa=_0x23c5e7[_0xbdb7a9(0x200)](getOrCreateSession,_0x23ff5e,_0x3a0a58);_0x2bafaa[_0xbdb7a9(0x201)]=![],saveCache(_0x23ff5e);}export function updateBranchTracking(_0x3c68f1){const _0x44215e=_0x50281e,_0x2ae1ef={'WoCsr':function(_0x5a14c9){return _0x5a14c9();},'oUnXu':function(_0x4ff471){return _0x4ff471();},'MdhVT':function(_0x1bacf5,_0x147a1c){return _0x1bacf5===_0x147a1c;},'TsNAI':function(_0x4c2572,_0x426ebd){return _0x4c2572!==_0x426ebd;}},_0x149f58=_0x2ae1ef['WoCsr'](loadCache),_0x53df75=_0x149f58[_0x44215e(0x209)][_0x3c68f1];if(!_0x53df75?.[_0x44215e(0x201)])return;const _0xd67cb6=_0x2ae1ef[_0x44215e(0x1f0)](getCurrentBranch);if(!_0xd67cb6||_0xd67cb6==='main'||_0x2ae1ef['MdhVT'](_0xd67cb6,_0x44215e(0x202)))return;_0x2ae1ef['TsNAI'](_0x53df75['currentBranch'],_0xd67cb6)&&(_0x149f58[_0x44215e(0x1fe)][_0xd67cb6]=!![],_0x53df75[_0x44215e(0x1e2)]=_0xd67cb6,saveCache(_0x149f58));}export function initBranchTracking(_0x45bc6d){const _0x21f4a4=_0x50281e,_0xfb4d40={'dRYwJ':function(_0x371d29){return _0x371d29();},'oRStT':function(_0x5a2213,_0x2fa698){return _0x5a2213===_0x2fa698;},'NWiqI':function(_0x438199,_0x30da13,_0x5db293){return _0x438199(_0x30da13,_0x5db293);},'WLJVQ':function(_0x1778a5,_0x2bd1d7){return _0x1778a5(_0x2bd1d7);}},_0x5b0f41=_0xfb4d40['dRYwJ'](loadCache),_0x571b4b=getCurrentBranch();if(!_0x571b4b||_0xfb4d40[_0x21f4a4(0x1f1)](_0x571b4b,'main')||_0x571b4b===_0x21f4a4(0x202))return;if(_0x5b0f41['branches'][_0x571b4b]===!![]){const _0x29ebb9=_0xfb4d40['NWiqI'](getOrCreateSession,_0x5b0f41,_0x45bc6d);_0x29ebb9[_0x21f4a4(0x201)]=!![],_0x29ebb9['currentBranch']=_0x571b4b,_0xfb4d40[_0x21f4a4(0x1f7)](saveCache,_0x5b0f41);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x472945){const _0x48aa9f=_0x50281e,_0x587eba={'zdcxc':function(_0xa1da3f,_0xe9a58b){return _0xa1da3f(_0xe9a58b);}},_0x4d6de1=loadCache(),_0x303358=_0x4d6de1[_0x48aa9f(0x209)][_0x472945];_0x303358?.[_0x48aa9f(0x201)]&&(_0x4d6de1['lastEnabledSessionClearedAt']=Date[_0x48aa9f(0x1f3)](),_0x587eba['zdcxc'](saveCache,_0x4d6de1));}export function shouldAutoEnableAfterClear(_0x54d211){const _0x49880e=_0x50281e,_0x48cff6={'tdoJU':function(_0x58ff11,_0x3a88cc){return _0x58ff11!==_0x3a88cc;}};if(_0x48cff6['tdoJU'](_0x54d211,'clear'))return![];const _0x6355dd=loadCache(),_0x10037a=_0x6355dd['lastEnabledSessionClearedAt'];if(!_0x10037a)return![];const _0x16869f=Date[_0x49880e(0x1f3)]()-_0x10037a;return _0x16869f<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x57cf4a){const _0x638bc=_0x50281e,_0x55c53f={'Itlph':function(_0x18cd4d){return _0x18cd4d();},'dOgmx':function(_0x3bd5d1,_0x4c6d12){return _0x3bd5d1!==_0x4c6d12;},'XKjbt':function(_0x5ae948,_0x2919a5){return _0x5ae948(_0x2919a5);}},_0x473b3a=_0x55c53f['Itlph'](loadCache),_0x775f1e=getOrCreateSession(_0x473b3a,_0x57cf4a);_0x775f1e['enabled']=!![];const _0x19bbb1=getCurrentBranch();_0x19bbb1&&_0x19bbb1!==_0x638bc(0x1fd)&&_0x55c53f[_0x638bc(0x1f2)](_0x19bbb1,_0x638bc(0x202))&&(_0x775f1e['currentBranch']=_0x19bbb1),delete _0x473b3a[_0x638bc(0x1df)],_0x55c53f['XKjbt'](saveCache,_0x473b3a);}function _0x2af3(){const _0x4cb36f=['utf-8','trim','UGhJr','43118lyczrK','lastEnabledSessionClearedAt','eqtzN','1167425YzvNWV','currentBranch','JyIWh','lhjfg','featureId','DLEAZ','HEAD','DRJkf','lGVZF','git\x20rev-parse\x20--abbrev-ref\x20HEAD','lastStopReminderAt','parse','oqDCR','registeredAt','409830eVlsab','oUnXu','oRStT','dOgmx','now','homedir','wgujO','DdFOe','WLJVQ','259392CQdwFd','DVgkB','pipe','9cTYXgk','writeFileSync','main','branches','toISOString','ZgVmH','enabled','master','mkdirSync','13pWOTYJ','existsSync','1607076PhhMnh','join','1251873sYqQzh','sessions','5387752BDuxHQ'];_0x2af3=function(){return _0x4cb36f;};return _0x2af3();}export function registerSession(_0x34fb2f,_0x523e61){const _0x4c8162=_0x50281e,_0x45bedb={'eocpX':function(_0x50ffd1){return _0x50ffd1();}},_0x2cd20e=_0x45bedb['eocpX'](loadCache),_0x48246a=getOrCreateSession(_0x2cd20e,_0x34fb2f);_0x48246a[_0x4c8162(0x1e5)]=_0x523e61,_0x48246a[_0x4c8162(0x1ee)]=new Date()[_0x4c8162(0x1ff)](),saveCache(_0x2cd20e);}export function getSessionEntry(_0x22f694){const _0x1148e8=_0x50281e,_0x39c340={'DLEAZ':function(_0x5d2375){return _0x5d2375();}},_0x32d703=_0x39c340[_0x1148e8(0x1e6)](loadCache),_0x547e61=_0x32d703['sessions'][_0x22f694];if(_0x547e61?.[_0x1148e8(0x1e5)]&&_0x547e61?.['registeredAt'])return{'featureId':_0x547e61[_0x1148e8(0x1e5)],'registeredAt':_0x547e61['registeredAt']};return null;}export function unregisterSession(_0x2eab18){const _0x26eba6=_0x50281e,_0x27526b={'XHvtQ':function(_0x7e9acf){return _0x7e9acf();},'DRJkf':function(_0x5f48af,_0xf1e76c){return _0x5f48af(_0xf1e76c);}},_0x5b95f6=_0x27526b['XHvtQ'](loadCache),_0x2f9161=_0x5b95f6['sessions'][_0x2eab18];_0x2f9161&&(delete _0x2f9161['featureId'],delete _0x2f9161[_0x26eba6(0x1ee)],_0x27526b[_0x26eba6(0x1e8)](saveCache,_0x5b95f6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xe117f0){const _0x2db93b=_0x50281e,_0x5f3a11={'ulrlu':function(_0x10c0fd,_0x3e6fd4,_0x52bd3b){return _0x10c0fd(_0x3e6fd4,_0x52bd3b);},'ZuzNT':function(_0x247a11,_0x2eddba){return _0x247a11>=_0x2eddba;},'IGEVG':function(_0x250235,_0x203d6b){return _0x250235(_0x203d6b);}},_0xa6c421=loadCache(),_0xafab76=_0x5f3a11['ulrlu'](getOrCreateSession,_0xa6c421,_0xe117f0),_0xb1e98e=_0xafab76['lastPlanReminderAt']||0x0,_0x13add0=Date[_0x2db93b(0x1f3)]();if(_0x5f3a11['ZuzNT'](_0x13add0-_0xb1e98e,PLAN_REMINDER_INTERVAL_MS))return _0xafab76['lastPlanReminderAt']=_0x13add0,_0x5f3a11['IGEVG'](saveCache,_0xa6c421),!![];return![];}export function shouldShowStopReminder(_0x3d02c){const _0x2f0cfb=_0x50281e,_0x27d893={'YJdrO':function(_0xbff451,_0x5986e4){return _0xbff451>=_0x5986e4;}},_0x49811c=loadCache(),_0x1fc2af=getOrCreateSession(_0x49811c,_0x3d02c),_0x35258b=_0x1fc2af[_0x2f0cfb(0x1eb)]||0x0,_0x2d20c2=Date['now']();if(_0x27d893['YJdrO'](_0x2d20c2-_0x35258b,STOP_REMINDER_INTERVAL_MS))return _0x1fc2af[_0x2f0cfb(0x1eb)]=_0x2d20c2,saveCache(_0x49811c),!![];return![];}export function hasSessionBeenPrompted(_0x48f3f6){const _0x53d418=_0x50281e,_0x175c85={'VNEKb':function(_0x5428ff){return _0x5428ff();},'hbLdx':function(_0x40061f,_0x59799e){return _0x40061f===_0x59799e;}},_0xc8e635=_0x175c85['VNEKb'](loadCache);return _0x175c85['hbLdx'](_0xc8e635[_0x53d418(0x209)][_0x48f3f6]?.['prompted'],!![]);}export function markSessionPrompted(_0x591d6c){const _0x4a5420=loadCache(),_0x4b94f3=getOrCreateSession(_0x4a5420,_0x591d6c);_0x4b94f3['prompted']=!![],saveCache(_0x4a5420);}function _0x32b1(_0x2a7f3a,_0x5918c3){_0x2a7f3a=_0x2a7f3a-0x1dd;const _0x2af300=_0x2af3();let _0x32b1a3=_0x2af300[_0x2a7f3a];return _0x32b1a3;}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x1b9bcb=_0x1e68;(function(_0x1c1759,_0x39d192){const _0x3e5e81=_0x1e68,_0x134d82=_0x1c1759();while(!![]){try{const _0x43a9dc=-parseInt(_0x3e5e81(0xdc))/0x1+parseInt(_0x3e5e81(0xeb))/0x2+-parseInt(_0x3e5e81(0x100))/0x3*(-parseInt(_0x3e5e81(0xdf))/0x4)+-parseInt(_0x3e5e81(0x105))/0x5+parseInt(_0x3e5e81(0xff))/0x6+parseInt(_0x3e5e81(0xf7))/0x7*(parseInt(_0x3e5e81(0x112))/0x8)+-parseInt(_0x3e5e81(0x10f))/0x9;if(_0x43a9dc===_0x39d192)break;else _0x134d82['push'](_0x134d82['shift']());}catch(_0x49b086){_0x134d82['push'](_0x134d82['shift']());}}}(_0x32ae,0xbe536));import*as _0x4c38f2 from'fs';import*as _0x459192 from'path';import*as _0x987a6a from'os';import{execSync}from'child_process';const CACHE_FILE=_0x459192['join'](_0x987a6a['homedir'](),_0x1b9bcb(0x106),_0x1b9bcb(0xfe));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4cb85b=_0x1b9bcb,_0x52e263={'lTdWu':'utf-8'};try{if(_0x4c38f2[_0x4cb85b(0xf1)](CACHE_FILE)){const _0xa3b180=JSON[_0x4cb85b(0xe0)](_0x4c38f2[_0x4cb85b(0xfd)](CACHE_FILE,_0x52e263['lTdWu']));return{'version':0x3,'sessions':_0xa3b180[_0x4cb85b(0x102)]||{},'branches':_0xa3b180['branches']||{},'lastEnabledSessionClearedAt':_0xa3b180[_0x4cb85b(0x10c)]};}}catch{}return createEmptyCache();}function saveCache(_0x249950){const _0x2d8324=_0x1b9bcb;try{const _0x5c8b65=_0x459192['dirname'](CACHE_FILE);!_0x4c38f2['existsSync'](_0x5c8b65)&&_0x4c38f2[_0x2d8324(0xe8)](_0x5c8b65,{'recursive':!![]}),_0x4c38f2[_0x2d8324(0xdb)](CACHE_FILE,JSON['stringify'](_0x249950,null,0x2));}catch{}}function _0x1e68(_0x420687,_0x4345e0){_0x420687=_0x420687-0xda;const _0x32ae20=_0x32ae();let _0x1e687c=_0x32ae20[_0x420687];return _0x1e687c;}export function getCurrentBranch(){const _0x3d83f=_0x1b9bcb,_0x430a3c={'MgqbZ':_0x3d83f(0xe2),'BZPJY':_0x3d83f(0xf9),'OqOcc':_0x3d83f(0xe7)};try{const _0x57bc33=execSync(_0x430a3c[_0x3d83f(0x10d)],{'encoding':_0x430a3c['BZPJY'],'stdio':[_0x430a3c[_0x3d83f(0xf3)],_0x430a3c['OqOcc'],_0x430a3c['OqOcc']]})[_0x3d83f(0xef)]();if(!_0x57bc33||_0x57bc33===_0x3d83f(0xf2))return null;return _0x57bc33;}catch{return null;}}export function enableBranch(_0x8591e0){const _0x37e758={'igQvb':function(_0x28a46b){return _0x28a46b();}},_0x2a2a71=_0x37e758['igQvb'](loadCache);_0x2a2a71['branches'][_0x8591e0]=!![],saveCache(_0x2a2a71);}export function disableBranch(_0x52d89f){const _0x29398b=_0x1b9bcb,_0x272308={'RkKsw':function(_0xdf2cf){return _0xdf2cf();}},_0x621cc5=_0x272308[_0x29398b(0xee)](loadCache);delete _0x621cc5[_0x29398b(0xe3)][_0x52d89f],saveCache(_0x621cc5);}export function isBranchEnabled(_0x5ca668){const _0x1c36d7=_0x1b9bcb,_0x2b8288=loadCache();return _0x2b8288[_0x1c36d7(0xe3)][_0x5ca668]===!![];}function getOrCreateSession(_0x44f6f9,_0x39a08d){const _0x344073=_0x1b9bcb;return!_0x44f6f9[_0x344073(0x102)][_0x39a08d]&&(_0x44f6f9[_0x344073(0x102)][_0x39a08d]={}),_0x44f6f9[_0x344073(0x102)][_0x39a08d];}export function enableSession(_0x7905bd){const _0x333280=_0x1b9bcb,_0x324ec9={'fasdT':function(_0x57369d,_0x4f9ea4,_0x1237f2){return _0x57369d(_0x4f9ea4,_0x1237f2);},'SsxZb':function(_0xc4ac21,_0x4c88c2){return _0xc4ac21!==_0x4c88c2;},'TYfTp':'main'},_0x455f58=loadCache(),_0x3372cf=_0x324ec9[_0x333280(0xe1)](getOrCreateSession,_0x455f58,_0x7905bd);_0x3372cf['enabled']=!![];const _0x144cad=getCurrentBranch();_0x144cad&&_0x324ec9[_0x333280(0x108)](_0x144cad,_0x324ec9['TYfTp'])&&_0x144cad!=='master'&&(_0x455f58[_0x333280(0xe3)][_0x144cad]=!![],_0x3372cf[_0x333280(0xe5)]=_0x144cad),saveCache(_0x455f58);}export function isSessionEnabled(_0x332d71){const _0x8e6d00=_0x1b9bcb,_0x13ba2e={'pgUal':function(_0x598663){return _0x598663();},'ZVejp':function(_0x305fa4,_0x2ea8f0){return _0x305fa4===_0x2ea8f0;},'ffqrB':_0x8e6d00(0x109),'OkFOL':function(_0x44d030,_0x42d644){return _0x44d030===_0x42d644;},'whcyM':_0x8e6d00(0x107),'XbEMi':function(_0x46d212,_0x2645ff){return _0x46d212===_0x2645ff;},'YFXzH':function(_0x290ed1,_0x2f86f){return _0x290ed1||_0x2f86f;}},_0xb4b65b=loadCache(),_0x503dee=_0x13ba2e[_0x8e6d00(0x10a)](getCurrentBranch);if(!_0x503dee||_0x13ba2e['ZVejp'](_0x503dee,_0x13ba2e[_0x8e6d00(0xed)])||_0x13ba2e['OkFOL'](_0x503dee,_0x13ba2e[_0x8e6d00(0xda)]))return _0xb4b65b['sessions'][_0x332d71]?.['enabled']===!![];const _0x574645=_0x13ba2e[_0x8e6d00(0xe9)](_0xb4b65b['branches'][_0x503dee],!![]),_0x233e0c=_0x13ba2e[_0x8e6d00(0x10b)](_0xb4b65b[_0x8e6d00(0x102)][_0x332d71]?.['enabled'],!![]);return _0x13ba2e[_0x8e6d00(0xf8)](_0x574645,_0x233e0c);}export function disableSession(_0x29305d){const _0xec2d9b=_0x1b9bcb,_0x3aa594={'KxLND':function(_0x503425,_0x4d5123,_0x2b3b1f){return _0x503425(_0x4d5123,_0x2b3b1f);}},_0x46dc51=loadCache(),_0x398412=_0x3aa594['KxLND'](getOrCreateSession,_0x46dc51,_0x29305d);_0x398412[_0xec2d9b(0xea)]=![],saveCache(_0x46dc51);}export function updateBranchTracking(_0x6d0efe){const _0x1055f4=_0x1b9bcb,_0x197a89={'eoqXF':function(_0x24fb52){return _0x24fb52();},'bZijs':function(_0x43bb6f,_0x264f80){return _0x43bb6f===_0x264f80;},'HUpaf':function(_0x21e23a,_0x20c0df){return _0x21e23a(_0x20c0df);}},_0xf8ec23=loadCache(),_0x575844=_0xf8ec23[_0x1055f4(0x102)][_0x6d0efe];if(!_0x575844?.['enabled'])return;const _0x102d1b=_0x197a89[_0x1055f4(0x104)](getCurrentBranch);if(!_0x102d1b||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x109))||_0x197a89[_0x1055f4(0xf4)](_0x102d1b,_0x1055f4(0x107)))return;_0x575844['currentBranch']!==_0x102d1b&&(_0xf8ec23['branches'][_0x102d1b]=!![],_0x575844['currentBranch']=_0x102d1b,_0x197a89['HUpaf'](saveCache,_0xf8ec23));}export function initBranchTracking(_0x92e2d9){const _0x4c1b69=_0x1b9bcb,_0x3bdfba={'TlSjZ':'main','ndefz':'master','scXkQ':function(_0x50e288,_0x1749c4){return _0x50e288===_0x1749c4;},'shiot':function(_0x51588f,_0x44a7be,_0x4e8ee0){return _0x51588f(_0x44a7be,_0x4e8ee0);}},_0x1a1ef0=loadCache(),_0x50d8b4=getCurrentBranch();if(!_0x50d8b4||_0x50d8b4===_0x3bdfba[_0x4c1b69(0xec)]||_0x50d8b4===_0x3bdfba['ndefz'])return;if(_0x3bdfba[_0x4c1b69(0xfc)](_0x1a1ef0['branches'][_0x50d8b4],!![])){const _0x2f796e=_0x3bdfba['shiot'](getOrCreateSession,_0x1a1ef0,_0x92e2d9);_0x2f796e[_0x4c1b69(0xea)]=!![],_0x2f796e[_0x4c1b69(0xe5)]=_0x50d8b4,saveCache(_0x1a1ef0);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5e9e55){const _0x189a95=_0x1b9bcb,_0x178f33={'WAKDl':function(_0x2ff3e8,_0xc415c8){return _0x2ff3e8(_0xc415c8);}},_0x396e73=loadCache(),_0x4f6ec2=_0x396e73['sessions'][_0x5e9e55];_0x4f6ec2?.[_0x189a95(0xea)]&&(_0x396e73['lastEnabledSessionClearedAt']=Date[_0x189a95(0x113)](),_0x178f33['WAKDl'](saveCache,_0x396e73));}export function shouldAutoEnableAfterClear(_0x1c7305){const _0x5d3466=_0x1b9bcb,_0x126215={'CYiuT':function(_0x428375,_0x469575){return _0x428375!==_0x469575;},'WduLT':function(_0x19e3ce,_0xc2b42e){return _0x19e3ce-_0xc2b42e;}};if(_0x126215['CYiuT'](_0x1c7305,_0x5d3466(0xdd)))return![];const _0x5ae091=loadCache(),_0x4e4a53=_0x5ae091[_0x5d3466(0x10c)];if(!_0x4e4a53)return![];const _0x5ec3f9=_0x126215[_0x5d3466(0x111)](Date[_0x5d3466(0x113)](),_0x4e4a53);return _0x5ec3f9<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x25b373){const _0xc408c5=_0x1b9bcb,_0x46e51d={'etoVX':function(_0xa7fa34){return _0xa7fa34();},'MkRkO':function(_0x385335,_0x3d714c,_0x520d19){return _0x385335(_0x3d714c,_0x520d19);},'mywId':function(_0x33226d){return _0x33226d();},'osBym':function(_0x415a2b,_0x5cae8e){return _0x415a2b!==_0x5cae8e;},'PGZPL':_0xc408c5(0x107),'UvWLg':function(_0x41df39,_0x55e262){return _0x41df39(_0x55e262);}},_0x53c336=_0x46e51d['etoVX'](loadCache),_0x48a01e=_0x46e51d[_0xc408c5(0xfb)](getOrCreateSession,_0x53c336,_0x25b373);_0x48a01e['enabled']=!![];const _0x3c3a1a=_0x46e51d[_0xc408c5(0xde)](getCurrentBranch);_0x3c3a1a&&_0x3c3a1a!=='main'&&_0x46e51d['osBym'](_0x3c3a1a,_0x46e51d['PGZPL'])&&(_0x48a01e['currentBranch']=_0x3c3a1a),delete _0x53c336[_0xc408c5(0x10c)],_0x46e51d['UvWLg'](saveCache,_0x53c336);}export function registerSession(_0x2fe835,_0x46868b){const _0x64d3c={'cvWeg':function(_0x52640b){return _0x52640b();},'ImoXB':function(_0xbd8faf,_0x175419,_0x3dc5c7){return _0xbd8faf(_0x175419,_0x3dc5c7);}},_0x2a2daf=_0x64d3c['cvWeg'](loadCache),_0xce72b8=_0x64d3c['ImoXB'](getOrCreateSession,_0x2a2daf,_0x2fe835);_0xce72b8['featureId']=_0x46868b,_0xce72b8['registeredAt']=new Date()['toISOString'](),saveCache(_0x2a2daf);}export function getSessionEntry(_0x2e5e58){const _0xdba1ca=_0x1b9bcb,_0x14e8e3={'TmAjv':function(_0x48c3bf){return _0x48c3bf();}},_0x1e7c02=_0x14e8e3[_0xdba1ca(0xe4)](loadCache),_0x202ace=_0x1e7c02[_0xdba1ca(0x102)][_0x2e5e58];if(_0x202ace?.[_0xdba1ca(0xf0)]&&_0x202ace?.[_0xdba1ca(0xfa)])return{'featureId':_0x202ace['featureId'],'registeredAt':_0x202ace[_0xdba1ca(0xfa)]};return null;}export function unregisterSession(_0x15ef0a){const _0x714706=_0x1b9bcb,_0x352b69={'HoMTK':function(_0x7f2c1,_0x2c7d43){return _0x7f2c1(_0x2c7d43);}},_0x518fbd=loadCache(),_0x64f3e9=_0x518fbd[_0x714706(0x102)][_0x15ef0a];_0x64f3e9&&(delete _0x64f3e9[_0x714706(0xf0)],delete _0x64f3e9[_0x714706(0xfa)],_0x352b69[_0x714706(0x110)](saveCache,_0x518fbd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1d285d){const _0x543033=_0x1b9bcb,_0x4cbd9a={'lgXsc':function(_0x40d606){return _0x40d606();},'cIKox':function(_0x107e8a,_0x96b24e,_0x2a1133){return _0x107e8a(_0x96b24e,_0x2a1133);},'hujQp':function(_0xae66f2,_0x233702){return _0xae66f2-_0x233702;},'VanfJ':function(_0x4ca77b,_0x3b4556){return _0x4ca77b(_0x3b4556);}},_0x2e4375=_0x4cbd9a['lgXsc'](loadCache),_0x2559fc=_0x4cbd9a['cIKox'](getOrCreateSession,_0x2e4375,_0x1d285d),_0x206f2c=_0x2559fc[_0x543033(0x101)]||0x0,_0x4c76eb=Date['now']();if(_0x4cbd9a[_0x543033(0x103)](_0x4c76eb,_0x206f2c)>=PLAN_REMINDER_INTERVAL_MS)return _0x2559fc[_0x543033(0x101)]=_0x4c76eb,_0x4cbd9a[_0x543033(0xe6)](saveCache,_0x2e4375),!![];return![];}export function shouldShowStopReminder(_0x317998){const _0x43d073=_0x1b9bcb,_0x4c8686={'MFlSN':function(_0x58ae89){return _0x58ae89();},'RqRkz':function(_0x2977bd,_0x558fb3){return _0x2977bd-_0x558fb3;}},_0x26c1f5=_0x4c8686[_0x43d073(0xf5)](loadCache),_0x37a6e0=getOrCreateSession(_0x26c1f5,_0x317998),_0x1baa93=_0x37a6e0[_0x43d073(0x10e)]||0x0,_0x16581e=Date['now']();if(_0x4c8686['RqRkz'](_0x16581e,_0x1baa93)>=STOP_REMINDER_INTERVAL_MS)return _0x37a6e0[_0x43d073(0x10e)]=_0x16581e,saveCache(_0x26c1f5),!![];return![];}export function hasSessionBeenPrompted(_0x2da21d){const _0x37fb12=_0x1b9bcb,_0x530e79={'fvbqJ':function(_0x4a57a0,_0x507136){return _0x4a57a0===_0x507136;}},_0x1b9bec=loadCache();return _0x530e79['fvbqJ'](_0x1b9bec['sessions'][_0x2da21d]?.[_0x37fb12(0xf6)],!![]);}function _0x32ae(){const _0x2f526e=['1809372uGqXXY','3YOHMiz','lastPlanReminderAt','sessions','hujQp','eoqXF','1693735TGZBcE','.claude','master','SsxZb','main','pgUal','XbEMi','lastEnabledSessionClearedAt','MgqbZ','lastStopReminderAt','17973729tpuKqJ','HoMTK','WduLT','4184MYTaHn','now','whcyM','writeFileSync','87217ODHiGQ','clear','mywId','3915380uzEVhn','parse','fasdT','git\x20rev-parse\x20--abbrev-ref\x20HEAD','branches','TmAjv','currentBranch','VanfJ','pipe','mkdirSync','OkFOL','enabled','972108UtSuFz','TlSjZ','ffqrB','RkKsw','trim','featureId','existsSync','HEAD','OqOcc','bZijs','MFlSN','prompted','19222mUcHUs','YFXzH','utf-8','registeredAt','MkRkO','scXkQ','readFileSync','.ranger_cache.json'];_0x32ae=function(){return _0x2f526e;};return _0x32ae();}export function markSessionPrompted(_0x36b8d1){const _0x500e7d=_0x1b9bcb,_0x403ec3=loadCache(),_0x1f4986=getOrCreateSession(_0x403ec3,_0x36b8d1);_0x1f4986[_0x500e7d(0xf6)]=!![],saveCache(_0x403ec3);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x1a733a=_0x2969;(function(_0x525da8,_0x310345){const _0x249d2b=_0x2969,_0x2db999=_0x525da8();while(!![]){try{const _0x3c40c7=parseInt(_0x249d2b(0x18d))/0x1+-parseInt(_0x249d2b(0x1ca))/0x2*(parseInt(_0x249d2b(0x1ae))/0x3)+-parseInt(_0x249d2b(0x180))/0x4*(-parseInt(_0x249d2b(0x1a2))/0x5)+parseInt(_0x249d2b(0x1cb))/0x6*(parseInt(_0x249d2b(0x1e4))/0x7)+parseInt(_0x249d2b(0x1ce))/0x8+parseInt(_0x249d2b(0x1dd))/0x9*(-parseInt(_0x249d2b(0x179))/0xa)+-parseInt(_0x249d2b(0x1a3))/0xb;if(_0x3c40c7===_0x310345)break;else _0x2db999['push'](_0x2db999['shift']());}catch(_0xab094f){_0x2db999['push'](_0x2db999['shift']());}}}(_0x322d,0xa5057));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';function _0x322d(){const _0x1b162a=['iUulg','lvoPx','vIpCt','stagehand','xyLLi','launchOptions','3CuCnWW','kZXuI','ignoreHTTPSErrors','LLjdx','eSWox','ebUxp','sqeNu','join','configPath','indexOf','SSAAD','endsWith','forWrite','ByiKT','userAgent','env','uRews','xTLlJ','chromium','.json','XQClX','now','ranger-auth-','wTZKP','args','allow','ywAuY','ZeKsJ','885680DXljVI','66VFsTTK','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','cdpEndpoint','5437800bpIwIg','includes','install','contextOptions','warn','safeMode','clipboard-read','storageState','length','map','wAUQL','iWItJ','entries','Wtaxw','object','349686AvWqJf','catch','message','playwright-cli','EvNKZ','sessions','gyuXt','663929mffxlG','HWyTC','path','tyQKQ','browser','local','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','auth.json.enc','location','allowInsecureLocalhost','isArray','KfvOE','MtirL','all','280mehdlb','file','skpBX','PsLws','-cli','JAVlc','core','32QBQzLP','startsWith','getuid','vision','rangerDir','settings.json','--allow-running-insecure-content','--disable-setuid-sandbox','string','vxYkl','header','qdwIY','--allow-insecure-localhost','620605uObCbY','aBqpw','legacy','wcIpk','kgugp','--no-sandbox','OGtIg','zDiRY','kYeiO','fromEntries','pdf','ZZxxT','YmDzN','xgzFv','SaBRg','boolean','Environment\x20variable\x20','setupHeaders','SkGLz','filter','auth.json','8105GsIkSS','1649296XJlRSP','SYIza','headless','SZOPe','\x22\x20to\x20legacy\x20path\x20'];_0x322d=function(){return _0x1b162a;};return _0x322d();}import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x51dd6e,_0x473df5){const _0x103bb2=_0x2969,_0x7eed20={'FCvgY':function(_0x2878c2,_0x3d296b,_0x15a976,_0x41b2d4){return _0x2878c2(_0x3d296b,_0x15a976,_0x41b2d4);},'XQClX':'local','GEdyw':function(_0xfdc163,_0x310cfe){return _0xfdc163(_0x310cfe);},'ntFhJ':function(_0x49f357,_0x227380){return _0x49f357!==_0x227380;},'SkGLz':function(_0x4dfe08,_0x4fe127){return _0x4dfe08(_0x4fe127);}},_0x5dc42c=_0x7eed20['FCvgY'](join,_0x473df5,'ci',_0x51dd6e),_0x3dc509=join(_0x473df5,_0x7eed20[_0x103bb2(0x1c2)],_0x51dd6e),_0x24f1cd=join(_0x473df5,_0x51dd6e),_0x117cec=join(_0x473df5,_0x103bb2(0x170)),_0x4a9473=join(_0x473df5,'ci');if(_0x7eed20['GEdyw'](existsSync,_0x5dc42c))return _0x5dc42c;if(existsSync(_0x3dc509))return _0x3dc509;if(existsSync(_0x24f1cd)&&(_0x7eed20['ntFhJ'](_0x24f1cd,_0x117cec)&&_0x7eed20['ntFhJ'](_0x24f1cd,_0x4a9473)?!![]:_0x7eed20[_0x103bb2(0x19f)](hasLegacyProfileFiles,_0x24f1cd)))return _0x24f1cd;return null;}export function getEnvDir(_0x5e64c6,_0x53380d={}){const _0x58e44b=_0x2969,_0x2d19a9={'HWyTC':function(_0x582ba6,_0x597834,_0x13f038){return _0x582ba6(_0x597834,_0x13f038);},'eJzXU':function(_0x1d3c29,_0x12211b){return _0x1d3c29!==_0x12211b;},'QrvFy':function(_0x48b837,_0x5aef10){return _0x48b837(_0x5aef10);},'ASdJX':function(_0x2bff00,_0x533e98,_0x2370e2,_0x2e438c){return _0x2bff00(_0x533e98,_0x2370e2,_0x2e438c);},'UdVDP':'local'},_0x52f7ff=getRangerDir(),_0x5a5c3e=findEnvInRoot(_0x5e64c6,_0x52f7ff);if(_0x5a5c3e){if(_0x53380d['forWrite']&&isLegacyEnvPath(_0x5a5c3e))throw _0x2d19a9[_0x58e44b(0x1e5)](legacyWriteError,_0x5e64c6,_0x5a5c3e);return _0x5a5c3e;}const _0x2bdc0a=getRangerHomeDir();if(_0x2d19a9['eJzXU'](_0x2bdc0a,_0x52f7ff)){const _0x2c6e18=findEnvInRoot(_0x5e64c6,_0x2bdc0a);if(_0x2c6e18){if(_0x53380d[_0x58e44b(0x1ba)]&&_0x2d19a9['QrvFy'](isLegacyEnvPath,_0x2c6e18))throw _0x2d19a9['HWyTC'](legacyWriteError,_0x5e64c6,_0x2c6e18);return _0x2c6e18;}}const _0x6f1d1f=_0x2d19a9['ASdJX'](join,_0x2bdc0a,_0x2d19a9['UdVDP'],_0x5e64c6);if(_0x53380d[_0x58e44b(0x1ba)])throw legacyWriteError(_0x5e64c6,_0x6f1d1f);return _0x6f1d1f;}function isLegacyEnvPath(_0x166a71){const _0x555dba=_0x2969,_0x4f3a17={'uKjow':function(_0x163a02,_0x2934c6){return _0x163a02===_0x2934c6;}},_0x1a5e21=getRangerDir(),_0x2d14eb=getRangerHomeDir();for(const _0x51669f of new Set([_0x1a5e21,_0x2d14eb])){const _0x50a843=_0x51669f[_0x555dba(0x1b9)]('/')?_0x51669f:_0x51669f+'/';if(_0x4f3a17['uKjow'](_0x166a71,_0x51669f)||_0x166a71[_0x555dba(0x181)](_0x50a843))return!![];}return![];}function legacyWriteError(_0x24e51d,_0x4dcc7e){const _0x124ce4=_0x2969,_0x5aef8e={'skpBX':function(_0x31fc21,_0x4d026c){return _0x31fc21+_0x4d026c;}};return new Error(_0x5aef8e[_0x124ce4(0x17b)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x24e51d+_0x124ce4(0x1a7)+_0x4dcc7e+'.\x0a'+_0x124ce4(0x1cc),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+_0x124ce4(0x171));}export function findExistingEnv(_0x179fe5,_0x210b82){const _0x1481f4=_0x2969,_0x3c7ad3={'wTZKP':_0x1481f4(0x18f),'VtXAF':function(_0x40765d,_0x3f7859,_0x1b5d6f){return _0x40765d(_0x3f7859,_0x1b5d6f);},'UmRNS':_0x1481f4(0x170),'aBqpw':function(_0x40124c,_0xdb323d){return _0x40124c(_0xdb323d);},'OGtIg':function(_0x286eaa,_0x39c99c){return _0x286eaa(_0x39c99c);}},_0xa7a4a4=_0x210b82?.[_0x1481f4(0x184)],_0x493c05=_0xa7a4a4?[_0xa7a4a4]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x34b29e,_0x1cc5c3,_0x3871f2)=>_0x3871f2[_0x1481f4(0x1b7)](_0x34b29e)===_0x1cc5c3),_0x465064=_0x210b82?.['locations']??['ci',_0x1481f4(0x170),_0x3c7ad3['wTZKP']];for(const _0xf5e537 of _0x493c05){const _0x134536=join(_0xf5e537,'local'),_0x296713=_0x3c7ad3['VtXAF'](join,_0xf5e537,'ci'),_0x215c35=[{'location':'ci','path':join(_0xf5e537,'ci',_0x179fe5)},{'location':_0x3c7ad3['UmRNS'],'path':join(_0xf5e537,_0x1481f4(0x170),_0x179fe5)},{'location':_0x3c7ad3[_0x1481f4(0x1c5)],'path':join(_0xf5e537,_0x179fe5)}];for(const _0x596bec of _0x215c35){if(_0x465064[_0x1481f4(0x1cf)](_0x596bec[_0x1481f4(0x173)])&&_0x3c7ad3[_0x1481f4(0x18e)](existsSync,_0x596bec['path'])){if(_0x596bec[_0x1481f4(0x173)]==='legacy'&&(_0x596bec[_0x1481f4(0x1e6)]===_0x134536||_0x596bec[_0x1481f4(0x1e6)]===_0x296713)&&!_0x3c7ad3[_0x1481f4(0x193)](hasLegacyProfileFiles,_0x596bec['path']))continue;return{'path':_0x596bec['path'],'location':_0x596bec[_0x1481f4(0x173)]};}}}return null;}function hasLegacyProfileFiles(_0x58b5b1){const _0x317e03=_0x2969,_0xe2c20f={'aUKmM':function(_0x307358,_0x21fc8a){return _0x307358(_0x21fc8a);},'kZXuI':'auth.json'};return _0xe2c20f['aUKmM'](existsSync,join(_0x58b5b1,_0x317e03(0x185)))||_0xe2c20f['aUKmM'](existsSync,join(_0x58b5b1,_0xe2c20f[_0x317e03(0x1af)]))||existsSync(join(_0x58b5b1,_0x317e03(0x172)));}export function isEnvCi(_0x2cbe45){const _0xa2595f=_0x2969,_0x356002={'SYIza':function(_0x1d2356,_0x45daa8){return _0x1d2356(_0x45daa8);},'ywAuY':function(_0x52a12b,_0x1f1ec6,_0x471d44,_0x4d4406){return _0x52a12b(_0x1f1ec6,_0x471d44,_0x4d4406);},'Wtaxw':function(_0x1c9c11){return _0x1c9c11();}};if(_0x356002[_0xa2595f(0x1a4)](existsSync,_0x356002[_0xa2595f(0x1c8)](join,getRangerDir(),'ci',_0x2cbe45)))return!![];const _0x4f1a35=_0x356002[_0xa2595f(0x1db)](getRangerHomeDir);if(_0x4f1a35!==_0x356002['Wtaxw'](getRangerDir)&&existsSync(join(_0x4f1a35,'ci',_0x2cbe45)))return!![];return![];}export async function cleanupTempFiles(_0x12fd20){const _0x3c9175=_0x2969,_0x3ae7e4={'IiECG':function(_0xb33658,_0x551a31){return _0xb33658!==_0x551a31;},'uRews':'ENOENT'},_0x320aec=[_0x12fd20['tempAuthPath'],_0x12fd20[_0x3c9175(0x1b6)]]['filter'](Boolean);await Promise[_0x3c9175(0x178)](_0x320aec[_0x3c9175(0x1d7)](_0x1c1dce=>unlink(_0x1c1dce)['catch'](_0x2580c7=>{const _0x362652=_0x3c9175;_0x3ae7e4['IiECG'](_0x2580c7['code'],_0x3ae7e4[_0x362652(0x1be)])&&console[_0x362652(0x1d2)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1c1dce+':',_0x2580c7['message']);})));}export function getSettingsPath(_0x39c92e){const _0x32b080={'pefUk':function(_0x5df16b,_0xf30f4){return _0x5df16b(_0xf30f4);},'YiVpL':'settings.json'};return join(_0x32b080['pefUk'](getEnvDir,_0x39c92e),_0x32b080['YiVpL']);}export async function loadSettings(_0x109bf8){const _0x2c8182=_0x2969,_0x3c4b97={'xTLlJ':function(_0x36f15f,_0x23bfa4){return _0x36f15f(_0x23bfa4);},'ebUxp':function(_0x33d223,_0x11f37a){return _0x33d223(_0x11f37a);},'jizrA':function(_0xc3ced7,_0x10942f,_0x28b5d5){return _0xc3ced7(_0x10942f,_0x28b5d5);},'TcwYe':'utf-8'},_0x411e0d=_0x3c4b97[_0x2c8182(0x1bf)](getSettingsPath,_0x109bf8);if(!_0x3c4b97[_0x2c8182(0x1b3)](existsSync,_0x411e0d))return{};try{const _0x5544ea=await _0x3c4b97['jizrA'](readFile,_0x411e0d,_0x3c4b97['TcwYe']);return JSON['parse'](_0x5544ea);}catch{return{};}}export async function saveSettings(_0x1c8a19,_0x3fc776){const _0x1bce6b=_0x2969,_0xa07d25={'GVbPx':function(_0x4e8f36,_0x252513){return _0x4e8f36(_0x252513);},'eSWox':function(_0x51bce8,_0x1b38dd){return _0x51bce8(_0x1b38dd);},'puUOc':function(_0x2e5ca1,_0x5e9138,_0xbd222f){return _0x2e5ca1(_0x5e9138,_0xbd222f);}},_0x29fd33=getSettingsPath(_0x1c8a19),_0xfbced9=_0xa07d25['GVbPx'](dirname,_0x29fd33);!_0xa07d25[_0x1bce6b(0x1b2)](existsSync,_0xfbced9)&&await _0xa07d25['puUOc'](mkdir,_0xfbced9,{'recursive':!![]}),await writeFile(_0x29fd33,JSON['stringify'](_0x3fc776,null,0x2));}export function resolveEnvVars(_0x39ad7a){const _0x3e6f5d=_0x2969,_0x6f7088={'nrYDj':function(_0x47e51a,_0x65e3aa){return _0x47e51a===_0x65e3aa;},'kgugp':function(_0x14980c,_0x383c6f){return _0x14980c===_0x383c6f;}};if(_0x6f7088['nrYDj'](typeof _0x39ad7a,_0x3e6f5d(0x188)))return _0x39ad7a['replace'](/\$\{(\w+)\}/g,(_0x2aac59,_0xee7f74)=>{const _0x2f3bd9=_0x3e6f5d,_0x3c2468=process[_0x2f3bd9(0x1bd)][_0xee7f74];if(_0x3c2468===undefined)throw new Error(_0x2f3bd9(0x19d)+_0xee7f74+'\x20is\x20not\x20set');return _0x3c2468;});if(Array['isArray'](_0x39ad7a))return _0x39ad7a[_0x3e6f5d(0x1d7)](resolveEnvVars);if(_0x39ad7a&&_0x6f7088[_0x3e6f5d(0x191)](typeof _0x39ad7a,_0x3e6f5d(0x1dc)))return Object[_0x3e6f5d(0x196)](Object[_0x3e6f5d(0x1da)](_0x39ad7a)['map'](([_0x108187,_0xa13f04])=>[_0x108187,resolveEnvVars(_0xa13f04)]));return _0x39ad7a;}const isRecord=_0x4d835e=>typeof _0x4d835e==='object'&&_0x4d835e!==null&&!Array['isArray'](_0x4d835e),asRecord=_0xf486bd=>isRecord(_0xf486bd)?_0xf486bd:undefined,mergeHeaders=(_0x2cfa68,_0x3be29f)=>{const _0x2ca1f3=_0x2969,_0xf10c5b={'mdEYh':function(_0xac4a86,_0x47d55d){return _0xac4a86??_0x47d55d;}},_0x50e544={..._0x2cfa68??{},..._0xf10c5b['mdEYh'](_0x3be29f,{})};return Object['keys'](_0x50e544)[_0x2ca1f3(0x1d6)]?_0x50e544:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x1a733a(0x186),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x1a733a(0x18c)];function _0x2969(_0x5edbb4,_0x31437b){_0x5edbb4=_0x5edbb4-0x16e;const _0x322d41=_0x322d();let _0x296966=_0x322d41[_0x5edbb4];return _0x296966;}export function buildBrowserOptionsFromSettings(_0x1b836f,_0x3c0ac9={}){const _0x16b426=_0x1a733a,_0x55133d={'iUulg':function(_0x946307,_0x1c77e9){return _0x946307(_0x1c77e9);},'ceJHu':function(_0x186bbb,_0x14df01){return _0x186bbb===_0x14df01;},'lFAVp':_0x16b426(0x19c),'SaBRg':function(_0x28531c,_0x303053){return _0x28531c===_0x303053;},'ZZxxT':_0x16b426(0x188),'bDbPE':function(_0x56e10a,_0x39a494,_0x4f3333){return _0x56e10a(_0x39a494,_0x4f3333);},'OLGOQ':function(_0x3b4edf,_0x3ab7c5){return _0x3b4edf(_0x3ab7c5);}},_0x448700=asRecord(_0x1b836f[_0x16b426(0x16f)]),_0x451b8c={..._0x55133d[_0x16b426(0x1a8)](asRecord,_0x448700?.[_0x16b426(0x1ad)])??{}};_0x55133d['ceJHu'](typeof _0x3c0ac9['headless'],_0x55133d['lFAVp'])&&(_0x451b8c['headless']=_0x3c0ac9[_0x16b426(0x1a5)]);if(_0x1b836f[_0x16b426(0x1d3)]){const _0xdfad69=_0x451b8c['args']??[],_0x124da6=SAFE_MODE_ARGS['filter'](_0x191673=>!_0xdfad69[_0x16b426(0x1cf)](_0x191673));_0x451b8c[_0x16b426(0x1c6)]=[..._0xdfad69,..._0x124da6];}if(_0x1b836f[_0x16b426(0x174)]){const _0x56b832=_0x451b8c[_0x16b426(0x1c6)]??[],_0x187233=ALLOW_LOCALHOST_ARGS[_0x16b426(0x1a0)](_0x11d626=>!_0x56b832['includes'](_0x11d626));_0x451b8c['args']=[..._0x56b832,..._0x187233];}const _0x644db1={...asRecord(_0x448700?.[_0x16b426(0x1d1)])??{}};_0x644db1[_0x16b426(0x1b0)]=!![];_0x55133d[_0x16b426(0x19b)](typeof _0x1b836f[_0x16b426(0x1bc)],_0x55133d[_0x16b426(0x198)])&&(_0x644db1[_0x16b426(0x1bc)]=_0x1b836f[_0x16b426(0x1bc)]);const _0x21bce2=_0x55133d['bDbPE'](mergeHeaders,_0x55133d['OLGOQ'](asRecord,_0x644db1['extraHTTPHeaders']),asRecord(_0x1b836f['headers']));return _0x21bce2?_0x644db1['extraHTTPHeaders']=_0x21bce2:delete _0x644db1['extraHTTPHeaders'],_0x3c0ac9['storageStatePath']&&(_0x644db1['storageState']=_0x3c0ac9['storageStatePath']),{'launchOptions':_0x451b8c,'contextOptions':_0x644db1};}export async function resolveProfileStorageState(_0x440c9d){const _0x4cc2c5=_0x1a733a,_0x2ad800={'lvoPx':function(_0xc359e6,_0x2f23ef){return _0xc359e6(_0x2f23ef);}};return resolveLocalAuthPath(_0x2ad800[_0x4cc2c5(0x1a9)](getEnvDir,_0x440c9d));}async function resolveLocalAuthPath(_0x4f7d1a){const _0x4702b8=_0x1a733a,_0x103472={'QSkff':function(_0x202e5a,_0xfbb67d,_0x4c1370){return _0x202e5a(_0xfbb67d,_0x4c1370);},'sqeNu':function(_0x52e0fd,_0x22cc3b){return _0x52e0fd(_0x22cc3b);},'xIsvs':function(_0x4b758b){return _0x4b758b();},'wGSAt':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','FdFyg':function(_0x3f984a,_0x298750,_0x283b1e){return _0x3f984a(_0x298750,_0x283b1e);},'nJxBe':function(_0x1dc94d){return _0x1dc94d();},'GCYUI':function(_0x27f329,_0x1dd34f){return _0x27f329 instanceof _0x1dd34f;}},_0x103dbf=_0x103472['QSkff'](join,_0x4f7d1a,_0x4702b8(0x172)),_0x529cad=join(_0x4f7d1a,_0x4702b8(0x1a1));if(_0x103472[_0x4702b8(0x1b4)](existsSync,_0x103dbf))try{const _0x1d4f98=await _0x103472['xIsvs'](getToken);if(!_0x1d4f98)throw new Error(_0x103472['wGSAt']);const _0x55b49c=await _0x103472[_0x4702b8(0x1b4)](readFile,_0x103dbf),_0x55b0cd=decrypt(_0x55b49c,_0x1d4f98),_0x3c3d35=_0x103472['FdFyg'](join,_0x103472['nJxBe'](tmpdir),_0x4702b8(0x1c4)+Date[_0x4702b8(0x1c3)]()+'.json');return await writeFile(_0x3c3d35,_0x55b0cd),{'storageStatePath':_0x3c3d35,'tempAuthPath':_0x3c3d35};}catch(_0x3e575f){const _0x57a07e=_0x103472['GCYUI'](_0x3e575f,Error)?_0x3e575f[_0x4702b8(0x1df)]:String(_0x3e575f);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x57a07e);}if(existsSync(_0x529cad))return{'storageStatePath':_0x529cad};return{};}export async function buildPlaywrightConfig(_0x3d529c,_0x23e8e9,_0x1e347a,_0x39cda7,_0x4fde62){const _0x10570b=_0x1a733a,_0x10e1d4={'oVzUs':function(_0x2e6dab,_0x5f5a0f,_0x42f6b4,_0x50f2c5,_0x7d1f7a,_0x4d1a64,_0x1bccc4){return _0x2e6dab(_0x5f5a0f,_0x42f6b4,_0x50f2c5,_0x7d1f7a,_0x4d1a64,_0x1bccc4);},'kYPlh':'stagehand','ZLKvs':function(_0x54fbf2,_0x105d7d){return _0x54fbf2(_0x105d7d);},'wcIpk':function(_0x2d0b60,_0x24dd35,_0x455d49,_0x21cc3b,_0x1651b6,_0x2c47ee,_0x278969){return _0x2d0b60(_0x24dd35,_0x455d49,_0x21cc3b,_0x1651b6,_0x2c47ee,_0x278969);}};if(_0x4fde62)return _0x10e1d4['oVzUs'](buildPlaywrightConfigCore,_0x3d529c,_0x4fde62,_0x23e8e9,_0x1e347a,_0x39cda7,_0x10e1d4['kYPlh']);const {storageStatePath:_0x3edfb5,tempAuthPath:_0x2adaa7}=await resolveLocalAuthPath(_0x10e1d4['ZLKvs'](getEnvDir,_0x23e8e9));try{const _0x3f2ef2=await _0x10e1d4[_0x10570b(0x190)](buildPlaywrightConfigCore,_0x3d529c,_0x3edfb5,_0x23e8e9,_0x1e347a,_0x39cda7,_0x10570b(0x1ab));return{..._0x3f2ef2,'tempAuthPath':_0x2adaa7};}catch(_0xf9c68a){_0x2adaa7&&await _0x10e1d4['ZLKvs'](unlink,_0x2adaa7)[_0x10570b(0x1de)](()=>{});throw _0xf9c68a;}}export async function buildPlaywrightConfigCore(_0x49b228,_0x586202,_0x46534c,_0x3a2422,_0xa32d19,_0x4c1d2e=_0x1a733a(0x1ab)){const _0xddb941=_0x1a733a,_0xee2bd1={'wAUQL':function(_0x11cdbe,_0x4f2ce0,_0x13e4db){return _0x11cdbe(_0x4f2ce0,_0x13e4db);},'SBzbl':_0xddb941(0x1d4),'DbHgF':'clipboard-write','IHkcI':function(_0x2ab095){return _0x2ab095();},'iWItJ':function(_0x5cc2e4){return _0x5cc2e4();},'krAxP':_0xddb941(0x17a),'LLjdx':'tabs','aoQtt':_0xddb941(0x197),'JAVlc':function(_0x158aca,_0x223d79){return _0x158aca===_0x223d79;},'kYeiO':'ranger-config','ZeKsJ':function(_0x3b6f82,_0x549b0e){return _0x3b6f82(_0x549b0e);},'vxYkl':function(_0x31d00d,_0xfe31c7){return _0x31d00d===_0xfe31c7;},'WVJzb':_0xddb941(0x1e0),'xgzFv':_0xddb941(0x17d)},_0x30f42b=_0x3a2422||_0xee2bd1['IHkcI'](randomUUID),_0x4ce23e=join(_0xee2bd1[_0xddb941(0x1d9)](getRangerDir),_0xddb941(0x1e2),_0x30f42b),_0x2ca922=Boolean(_0x49b228[_0xddb941(0x1cd)]),_0x4a92b0=_0x2ca922?{'browserName':_0xddb941(0x1c0),'cdpEndpoint':_0x49b228[_0xddb941(0x1cd)]}:((()=>{const _0x28eee7=_0xddb941,{launchOptions:_0x1636f6,contextOptions:_0x16e490}=_0xee2bd1['wAUQL'](buildBrowserOptionsFromSettings,_0x49b228,{'headless':_0xa32d19?![]:_0x49b228['headless']??!![],'storageStatePath':_0x586202});if(process[_0x28eee7(0x182)]?.()===0x0){const _0x2d67e1=['--no-sandbox',_0x28eee7(0x187)],_0x4d7491=_0x1636f6['args']??[],_0x20e8af=_0x2d67e1['filter'](_0x2ea584=>!_0x4d7491[_0x28eee7(0x1cf)](_0x2ea584));_0x1636f6[_0x28eee7(0x1c6)]=[..._0x4d7491,..._0x20e8af];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1636f6,'contextOptions':{..._0x16e490,'permissions':[_0xee2bd1['SBzbl'],_0xee2bd1['DbHgF']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3ebd19=_0x4c1d2e==='playwright-cli'?{'browser':_0x4a92b0,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4ce23e,'outputMode':_0xee2bd1['krAxP'],'codegen':'none'}:{'name':_0x46534c,'browser':_0x4a92b0,'capabilities':[_0xddb941(0x17f),_0xee2bd1[_0xddb941(0x1b1)],_0xddb941(0x1d0),_0xee2bd1['aoQtt'],_0xddb941(0x183)],'imageResponses':_0xddb941(0x1c7),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4ce23e};if(!_0x2ca922){const _0x201cc4=_0x3ebd19['browser'],_0x154b60=_0x201cc4[_0xddb941(0x1d1)];if(_0x154b60['userAgent']===undefined)delete _0x154b60['userAgent'];if(_0xee2bd1[_0xddb941(0x17e)](_0x154b60[_0xddb941(0x1d5)],undefined))delete _0x154b60[_0xddb941(0x1d5)];}const _0x58634c=_0xee2bd1['wAUQL'](join,tmpdir(),_0xee2bd1[_0xddb941(0x195)]);!_0xee2bd1[_0xddb941(0x1c9)](existsSync,_0x58634c)&&await _0xee2bd1[_0xddb941(0x1d8)](mkdir,_0x58634c,{'recursive':!![]});const _0x4eef4f=_0xee2bd1[_0xddb941(0x189)](_0x4c1d2e,_0xee2bd1['WVJzb'])?_0xee2bd1[_0xddb941(0x19a)]:'',_0x287584=join(_0x58634c,_0x46534c+'-'+Date[_0xddb941(0x1c3)]()+_0x4eef4f+_0xddb941(0x1c1));return await _0xee2bd1['wAUQL'](writeFile,_0x287584,JSON['stringify'](_0x3ebd19,null,0x2)),{'configPath':_0x287584,'storageStatePath':_0x586202};}export async function buildPlaywrightCliConfig(_0x18f505,_0x1dbc9b,_0x373e49,_0x45a489,_0x2c3e14){const _0x2053b0=_0x1a733a,_0x29cdb4={'lkUFd':function(_0x196acb,_0x3e78e2,_0x2bbce4,_0x132a79,_0x4f593d,_0x3e890c,_0x2a4958){return _0x196acb(_0x3e78e2,_0x2bbce4,_0x132a79,_0x4f593d,_0x3e890c,_0x2a4958);},'JWaCb':'playwright-cli','tyQKQ':function(_0x3c78bf,_0x4d04bb){return _0x3c78bf(_0x4d04bb);}};if(_0x2c3e14)return _0x29cdb4['lkUFd'](buildPlaywrightConfigCore,_0x18f505,_0x2c3e14,_0x1dbc9b,_0x373e49,_0x45a489,_0x29cdb4['JWaCb']);const {storageStatePath:_0x1ec311,tempAuthPath:_0x27b2f6}=await resolveLocalAuthPath(getEnvDir(_0x1dbc9b));try{const _0x363e63=await _0x29cdb4['lkUFd'](buildPlaywrightConfigCore,_0x18f505,_0x1ec311,_0x1dbc9b,_0x373e49,_0x45a489,_0x29cdb4['JWaCb']);return{..._0x363e63,'tempAuthPath':_0x27b2f6};}catch(_0xb6b2f4){_0x27b2f6&&await _0x29cdb4[_0x2053b0(0x16e)](unlink,_0x27b2f6)[_0x2053b0(0x1de)](()=>{});throw _0xb6b2f4;}}export async function buildNovaActCliConfig(_0x135a6d,_0x5040bc,_0x378e10,_0x4635fa,_0x155da0){const _0x50a903=_0x1a733a,_0x5789d5={'KfvOE':function(_0x970c00,_0x1884a1){return _0x970c00(_0x1884a1);},'PsLws':function(_0x56facd){return _0x56facd();},'SZOPe':function(_0x323419,_0x29e8c6,_0x4a0411){return _0x323419(_0x29e8c6,_0x4a0411);},'EvNKZ':'Default','gyuXt':function(_0x4209cf,_0x7598d6){return _0x4209cf===_0x7598d6;}},{storageStatePath:_0x31db6c,tempAuthPath:_0x3b4118}=_0x155da0?{'storageStatePath':_0x155da0,'tempAuthPath':undefined}:await _0x5789d5[_0x50a903(0x176)](resolveLocalAuthPath,getEnvDir(_0x5040bc)),_0x17eaae=_0x378e10||_0x5789d5[_0x50a903(0x17c)](randomUUID),_0xc2efab=join(getRangerDir(),'sessions',_0x17eaae),_0x231ba6=_0x5789d5[_0x50a903(0x1a6)](join,_0xc2efab,'nova-user-data'),_0x22316c=_0x31db6c?join(_0x231ba6,_0x5789d5[_0x50a903(0x1e1)]):undefined,{launchOptions:_0x16cf2b,contextOptions:_0x271683}=buildBrowserOptionsFromSettings(_0x135a6d,{'headless':_0x4635fa?![]:_0x135a6d['headless']??!![],'storageStatePath':_0x31db6c});if(process['getuid']?.()===0x0){const _0x484f42=[_0x50a903(0x192),'--disable-setuid-sandbox'],_0x1b3ecd=_0x16cf2b[_0x50a903(0x1c6)]??[],_0x9f57e2=_0x484f42['filter'](_0x372468=>!_0x1b3ecd['includes'](_0x372468));_0x16cf2b[_0x50a903(0x1c6)]=[..._0x1b3ecd,..._0x9f57e2];}const _0x5ca132=typeof _0x16cf2b['executablePath']===_0x50a903(0x188)?_0x16cf2b['executablePath']:_0x31db6c?chromium['executablePath']():undefined;return{'storageStatePath':_0x31db6c,'tempAuthPath':_0x3b4118,'baseUrl':_0x135a6d['baseUrl'],'headless':Boolean(_0x16cf2b[_0x50a903(0x1a5)]),'userDataDir':_0x231ba6,'browserProfilePath':_0x22316c,'executablePath':_0x5ca132,'launchArgs':Array[_0x50a903(0x175)](_0x16cf2b['args'])?_0x16cf2b[_0x50a903(0x1c6)][_0x50a903(0x1a0)](_0xd4da01=>typeof _0xd4da01===_0x50a903(0x188)):[],'userAgent':_0x5789d5[_0x50a903(0x1e3)](typeof _0x271683['userAgent'],_0x50a903(0x188))?_0x271683[_0x50a903(0x1bc)]:undefined,'extraHTTPHeaders':_0x271683['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x135a6d[_0x50a903(0x174)]),'safeMode':Boolean(_0x135a6d[_0x50a903(0x1d3)]),'cdpEndpoint':_0x135a6d['cdpEndpoint'],'isCdpMode':_0x5789d5[_0x50a903(0x176)](Boolean,_0x135a6d['cdpEndpoint'])};}export function getNestedValue(_0x32262a,_0x3aa379){const _0x58ad7a=_0x1a733a,_0x4072f6={'zDiRY':function(_0x8abe51,_0x4b938c){return _0x8abe51(_0x4b938c);},'SSAAD':function(_0x3404fc,_0x4ad923){return _0x3404fc===_0x4ad923;},'iFwzW':function(_0x5d4730,_0x35dcb1){return _0x5d4730===_0x35dcb1;},'xyLLi':function(_0x5d7f03,_0x5ec01d){return _0x5d7f03!==_0x5ec01d;},'vIpCt':_0x58ad7a(0x1dc)},_0x102781=_0x4072f6[_0x58ad7a(0x194)](parseKeyPath,_0x3aa379);let _0x285d05=_0x32262a;for(const _0xb5c7d1 of _0x102781){if(_0x4072f6[_0x58ad7a(0x1b8)](_0x285d05,null)||_0x4072f6['iFwzW'](_0x285d05,undefined)||_0x4072f6[_0x58ad7a(0x1ac)](typeof _0x285d05,_0x4072f6[_0x58ad7a(0x1aa)]))return undefined;_0x285d05=_0x285d05[_0xb5c7d1];}return _0x285d05;}export function setNestedValue(_0x2dc097,_0x31332a,_0x4b4124){const _0xbee1dc=_0x1a733a,_0x4b6704={'zAVtC':function(_0x3f0b7c,_0xdd6920){return _0x3f0b7c(_0xdd6920);},'YmDzN':function(_0x33cab9,_0x150f28){return _0x33cab9!==_0x150f28;},'jQjGg':_0xbee1dc(0x1dc)},_0x3a5e8c=_0x4b6704['zAVtC'](parseKeyPath,_0x31332a);let _0x4efeae=_0x2dc097;for(let _0xf97eef=0x0;_0xf97eef<_0x3a5e8c['length']-0x1;_0xf97eef++){const _0x251444=_0x3a5e8c[_0xf97eef];(!(_0x251444 in _0x4efeae)||_0x4b6704[_0xbee1dc(0x199)](typeof _0x4efeae[_0x251444],_0x4b6704['jQjGg']))&&(_0x4efeae[_0x251444]={}),_0x4efeae=_0x4efeae[_0x251444];}_0x4efeae[_0x3a5e8c[_0x3a5e8c['length']-0x1]]=_0x4b4124;}export function deleteNestedValue(_0x12cdf1,_0x517337){const _0x58b101=_0x1a733a,_0x2ef30e={'MtirL':function(_0x26afee,_0x4994d1){return _0x26afee<_0x4994d1;},'AttAO':function(_0x30a307,_0x3bdf1d){return _0x30a307-_0x3bdf1d;},'ByiKT':function(_0x3ba77e,_0x2a6268){return _0x3ba77e!==_0x2a6268;}},_0x27b16e=parseKeyPath(_0x517337);let _0x3d72d4=_0x12cdf1;for(let _0x1128ad=0x0;_0x2ef30e[_0x58b101(0x177)](_0x1128ad,_0x2ef30e['AttAO'](_0x27b16e[_0x58b101(0x1d6)],0x1));_0x1128ad++){if(_0x3d72d4===null||_0x3d72d4===undefined||_0x2ef30e[_0x58b101(0x1bb)](typeof _0x3d72d4,'object'))return![];_0x3d72d4=_0x3d72d4[_0x27b16e[_0x1128ad]];}if(_0x3d72d4===null||_0x3d72d4===undefined||typeof _0x3d72d4!=='object')return![];const _0x2aa5cb=_0x27b16e[_0x27b16e[_0x58b101(0x1d6)]-0x1];if(_0x2aa5cb in _0x3d72d4)return delete _0x3d72d4[_0x2aa5cb],!![];return![];}function parseKeyPath(_0x34a5ac){const _0x4b2ebc=_0x1a733a,_0x245c42={'qdwIY':_0x4b2ebc(0x18a),'IPEBW':'setupHeader'},_0x2c29ed=_0x34a5ac['split']('.');return _0x2c29ed[0x0]===_0x245c42[_0x4b2ebc(0x18b)]&&(_0x2c29ed[0x0]='headers'),_0x2c29ed[0x0]===_0x245c42['IPEBW']&&(_0x2c29ed[0x0]=_0x4b2ebc(0x19e)),_0x2c29ed;}export function formatSettings(_0x467dc5,_0x4b23cf=0x0){const _0x3e2f8b=_0x1a733a,_0x1d3b7e={'RxGJd':function(_0x2be095,_0x328a28){return _0x2be095===_0x328a28;},'jwGwU':function(_0xb3d0e8,_0x4b275a){return _0xb3d0e8!==_0x4b275a;}},_0x1d4d8c=[],_0x777e18='\x20\x20'['repeat'](_0x4b23cf);for(const [_0x1b0a99,_0x270cd7]of Object['entries'](_0x467dc5)){if(_0x1d3b7e['RxGJd'](_0x270cd7,undefined))continue;if(typeof _0x270cd7==='object'&&_0x1d3b7e['jwGwU'](_0x270cd7,null)){_0x1d4d8c['push'](''+_0x777e18+_0x1b0a99+':');for(const [_0x466953,_0x2659ea]of Object[_0x3e2f8b(0x1da)](_0x270cd7)){_0x1d4d8c['push'](_0x777e18+'\x20\x20'+_0x466953+':\x20'+_0x2659ea);}}else _0x1d4d8c['push'](''+_0x777e18+_0x1b0a99+':\x20'+_0x270cd7);}return _0x1d4d8c[_0x3e2f8b(0x1b5)]('\x0a');}
1
+ const _0xb0189d=_0x6883;(function(_0x316c2b,_0x2fc3af){const _0x4ee61d=_0x6883,_0x32a651=_0x316c2b();while(!![]){try{const _0x2ccb1c=parseInt(_0x4ee61d(0x145))/0x1+parseInt(_0x4ee61d(0x17d))/0x2*(-parseInt(_0x4ee61d(0x162))/0x3)+parseInt(_0x4ee61d(0x182))/0x4+-parseInt(_0x4ee61d(0x15c))/0x5*(parseInt(_0x4ee61d(0x188))/0x6)+parseInt(_0x4ee61d(0x168))/0x7*(-parseInt(_0x4ee61d(0x158))/0x8)+parseInt(_0x4ee61d(0x199))/0x9*(parseInt(_0x4ee61d(0x170))/0xa)+-parseInt(_0x4ee61d(0x1a8))/0xb;if(_0x2ccb1c===_0x2fc3af)break;else _0x32a651['push'](_0x32a651['shift']());}catch(_0x25ff12){_0x32a651['push'](_0x32a651['shift']());}}}(_0x6544,0xa90d5));function _0x6883(_0x36a39f,_0x101bc5){_0x36a39f=_0x36a39f-0x131;const _0x654453=_0x6544();let _0x688346=_0x654453[_0x36a39f];return _0x688346;}import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';function _0x6544(){const _0x5af247=['RWyLs','\x20is\x20not\x20set','441GEONiT','aUkXc','parse','dQpwW','Failed\x20to\x20decrypt\x20auth\x20state:\x20','XdumZ','--disable-web-security','local','25070hdBSnJ','.json','contextOptions','keys','RjngN','sessions','userAgent','now','umjIs','locations','headless','tempAuthPath','ptRCE','169196PAIubT','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','playwright-cli','yQzFY','-cli','5533088evEUuL','qodoZ','oOttv','location','message','LClQn','37938WsagUW','--disable-features=WebBluetooth','headers','DiUzC','vision','pdf','AwWcL','Nlmex','filter','clipboard-write','length','includes','myEiq','auth.json','storageState','GdeIL','DEAZn','3087ZLiRRQ','nova-user-data','BaJsw','kdayf','code','clipboard-read','legacy','XSbWH','VCHeX','--disable-setuid-sandbox','startsWith','ranger-auth-','auth.json.enc','getuid','isArray','9944088WvWtjs','HBzEQ','fjNWq','repeat','warn','executablePath','znUah','cdpEndpoint','EyaYX','WkUvJ','stringify','string','rscmO','extraHTTPHeaders','tmgMy','ITqBW','entries','sYxgJ','aYktP','path','otkip','storageStatePath','chromium','377098rpRByy','MMMyh','lntss','Default','eaYMD','GqSFy','launchOptions','forWrite','ShmdG','boolean','settings.json','object','pYVKf','keHjx','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','all','browser','CXVCE','Refusing\x20to\x20write\x20profile\x20\x22','1736gVkcgd','czVaC','--allow-insecure-localhost','KhVxz','665EGeYAB','nqUaK','map','hsDKL','allow','XdbvZ','6aRuYzN','args','--allow-running-insecure-content','WmDHM'];_0x6544=function(){return _0x5af247;};return _0x6544();}import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1d5db9,_0x13e8ea){const _0x29e82b=_0x6883,_0x27b5f3={'szrwG':function(_0x31a7e4,_0x1c2287,_0x5c2e26,_0x3d4a44){return _0x31a7e4(_0x1c2287,_0x5c2e26,_0x3d4a44);},'fHJnM':function(_0x2a86d4,_0x142e9c,_0x54f699,_0x39dee5){return _0x2a86d4(_0x142e9c,_0x54f699,_0x39dee5);},'oOttv':function(_0x5c68e1,_0x18fcc5,_0xf980a1){return _0x5c68e1(_0x18fcc5,_0xf980a1);},'UDpSb':function(_0xb740b,_0x4e3928){return _0xb740b!==_0x4e3928;}},_0xec0fe2=_0x27b5f3['szrwG'](join,_0x13e8ea,'ci',_0x1d5db9),_0x45908e=_0x27b5f3['fHJnM'](join,_0x13e8ea,'local',_0x1d5db9),_0x4febbc=_0x27b5f3[_0x29e82b(0x184)](join,_0x13e8ea,_0x1d5db9),_0x5afc6d=_0x27b5f3['oOttv'](join,_0x13e8ea,'local'),_0x36302e=join(_0x13e8ea,'ci');if(existsSync(_0xec0fe2))return _0xec0fe2;if(existsSync(_0x45908e))return _0x45908e;if(existsSync(_0x4febbc)&&(_0x27b5f3['UDpSb'](_0x4febbc,_0x5afc6d)&&_0x4febbc!==_0x36302e?!![]:hasLegacyProfileFiles(_0x4febbc)))return _0x4febbc;return null;}export function getEnvDir(_0x3eaaf3,_0x322eaf={}){const _0x3ccf21=_0x6883,_0x8cdc79={'EyaYX':function(_0x539e28){return _0x539e28();},'FuCVi':function(_0x15c86d,_0x1b9a8c){return _0x15c86d(_0x1b9a8c);},'tLzQQ':function(_0x3d4120,_0x32a5a0){return _0x3d4120!==_0x32a5a0;},'HBzEQ':function(_0x17f763,_0x36b6f6,_0x369bde){return _0x17f763(_0x36b6f6,_0x369bde);}},_0x5f0e33=_0x8cdc79[_0x3ccf21(0x136)](getRangerDir),_0xcfbb92=findEnvInRoot(_0x3eaaf3,_0x5f0e33);if(_0xcfbb92){if(_0x322eaf[_0x3ccf21(0x14c)]&&_0x8cdc79['FuCVi'](isLegacyEnvPath,_0xcfbb92))throw legacyWriteError(_0x3eaaf3,_0xcfbb92);return _0xcfbb92;}const _0x29eb4a=getRangerHomeDir();if(_0x8cdc79['tLzQQ'](_0x29eb4a,_0x5f0e33)){const _0xda832d=_0x8cdc79[_0x3ccf21(0x1a9)](findEnvInRoot,_0x3eaaf3,_0x29eb4a);if(_0xda832d){if(_0x322eaf['forWrite']&&isLegacyEnvPath(_0xda832d))throw legacyWriteError(_0x3eaaf3,_0xda832d);return _0xda832d;}}const _0xfe186f=join(_0x29eb4a,_0x3ccf21(0x16f),_0x3eaaf3);if(_0x322eaf['forWrite'])throw _0x8cdc79[_0x3ccf21(0x1a9)](legacyWriteError,_0x3eaaf3,_0xfe186f);return _0xfe186f;}function isLegacyEnvPath(_0x31362d){const _0x1796df=_0x6883,_0x3ba431={'tYuFn':function(_0x56fe65){return _0x56fe65();},'otkip':function(_0x156a45,_0x28421a){return _0x156a45+_0x28421a;}},_0xa01d8d=_0x3ba431['tYuFn'](getRangerDir),_0x42e266=getRangerHomeDir();for(const _0x402b7b of new Set([_0xa01d8d,_0x42e266])){const _0x573eec=_0x402b7b['endsWith']('/')?_0x402b7b:_0x3ba431[_0x1796df(0x142)](_0x402b7b,'/');if(_0x31362d===_0x402b7b||_0x31362d[_0x1796df(0x1a3)](_0x573eec))return!![];}return![];}function legacyWriteError(_0x6ed9df,_0x382784){const _0x5c4a84=_0x6883,_0x2f868e={'dQpwW':function(_0x58eada,_0x15c93c){return _0x58eada+_0x15c93c;},'sYxgJ':function(_0x2e2af0,_0x51aab0){return _0x2e2af0+_0x51aab0;}};return new Error(_0x2f868e[_0x5c4a84(0x16b)](_0x2f868e[_0x5c4a84(0x13f)](_0x5c4a84(0x157)+_0x6ed9df+'\x22\x20to\x20legacy\x20path\x20'+_0x382784+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+_0x5c4a84(0x17e),_0x5c4a84(0x153)));}export function findExistingEnv(_0x5be178,_0x19c36c){const _0x17d2ff=_0x6883,_0x379871={'KhVxz':function(_0x5a4cf5){return _0x5a4cf5();},'fjNWq':function(_0x58e574,_0xf878c6,_0x163c69){return _0x58e574(_0xf878c6,_0x163c69);},'ShmdG':_0x17d2ff(0x16f),'VCHeX':function(_0xd481e2,_0x283f25,_0x33b7ce){return _0xd481e2(_0x283f25,_0x33b7ce);},'ARQVQ':function(_0x2b4c5c,_0x283127){return _0x2b4c5c===_0x283127;}},_0x2a2cec=_0x19c36c?.['rangerDir'],_0x3ec73c=_0x2a2cec?[_0x2a2cec]:[_0x379871[_0x17d2ff(0x15b)](getRangerDir),getRangerHomeDir()]['filter']((_0x101e74,_0x3bd1a8,_0xe35366)=>_0xe35366['indexOf'](_0x101e74)===_0x3bd1a8),_0x21088f=_0x19c36c?.[_0x17d2ff(0x179)]??['ci',_0x17d2ff(0x16f),'legacy'];for(const _0x39063a of _0x3ec73c){const _0x39d542=_0x379871[_0x17d2ff(0x1aa)](join,_0x39063a,_0x379871[_0x17d2ff(0x14d)]),_0x27d2cb=_0x379871['VCHeX'](join,_0x39063a,'ci'),_0x269c14=[{'location':'ci','path':join(_0x39063a,'ci',_0x5be178)},{'location':'local','path':join(_0x39063a,'local',_0x5be178)},{'location':_0x17d2ff(0x19f),'path':_0x379871[_0x17d2ff(0x1a1)](join,_0x39063a,_0x5be178)}];for(const _0x3d3744 of _0x269c14){if(_0x21088f['includes'](_0x3d3744[_0x17d2ff(0x185)])&&existsSync(_0x3d3744['path'])){if(_0x379871['ARQVQ'](_0x3d3744[_0x17d2ff(0x185)],_0x17d2ff(0x19f))&&(_0x3d3744[_0x17d2ff(0x141)]===_0x39d542||_0x3d3744[_0x17d2ff(0x141)]===_0x27d2cb)&&!hasLegacyProfileFiles(_0x3d3744[_0x17d2ff(0x141)]))continue;return{'path':_0x3d3744[_0x17d2ff(0x141)],'location':_0x3d3744['location']};}}}return null;}function hasLegacyProfileFiles(_0x2facf9){const _0x27b243=_0x6883,_0x21869f={'czVaC':function(_0xa91bba,_0x260963,_0x2a17f2){return _0xa91bba(_0x260963,_0x2a17f2);},'yJtuz':'settings.json','umjIs':function(_0x39e592,_0x22637d){return _0x39e592(_0x22637d);}};return existsSync(_0x21869f[_0x27b243(0x159)](join,_0x2facf9,_0x21869f['yJtuz']))||_0x21869f[_0x27b243(0x178)](existsSync,_0x21869f['czVaC'](join,_0x2facf9,_0x27b243(0x195)))||existsSync(join(_0x2facf9,_0x27b243(0x1a5)));}export function isEnvCi(_0x3cf74a){const _0x467344=_0x6883,_0x30e85b={'WkUvJ':function(_0x367572,_0x26a33f){return _0x367572(_0x26a33f);},'MMMyh':function(_0x29143e,_0x56570e,_0x2784a6,_0x49a5ab){return _0x29143e(_0x56570e,_0x2784a6,_0x49a5ab);},'GqSFy':function(_0x27bcd1){return _0x27bcd1();}};if(_0x30e85b[_0x467344(0x137)](existsSync,_0x30e85b[_0x467344(0x146)](join,getRangerDir(),'ci',_0x3cf74a)))return!![];const _0x21b1ce=_0x30e85b[_0x467344(0x14a)](getRangerHomeDir);if(_0x21b1ce!==getRangerDir()&&existsSync(join(_0x21b1ce,'ci',_0x3cf74a)))return!![];return![];}export async function cleanupTempFiles(_0x5aa612){const _0x5eb5d5=_0x6883,_0xe0f2d7={'yWELh':function(_0x2569b6,_0x4cebef){return _0x2569b6!==_0x4cebef;},'tmgMy':'ENOENT'},_0x110a5c=[_0x5aa612[_0x5eb5d5(0x17b)],_0x5aa612['configPath']]['filter'](Boolean);await Promise[_0x5eb5d5(0x154)](_0x110a5c['map'](_0x401b2e=>unlink(_0x401b2e)['catch'](_0x37cb61=>{const _0x3434da=_0x5eb5d5;_0xe0f2d7['yWELh'](_0x37cb61[_0x3434da(0x19d)],_0xe0f2d7[_0x3434da(0x13c)])&&console[_0x3434da(0x132)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x401b2e+':',_0x37cb61['message']);})));}export function getSettingsPath(_0x3225c5){const _0x5274f1=_0x6883,_0x41a969={'DEAZn':function(_0x43c886,_0x18200c,_0x552b24){return _0x43c886(_0x18200c,_0x552b24);}};return _0x41a969[_0x5274f1(0x198)](join,getEnvDir(_0x3225c5),_0x5274f1(0x14f));}export async function loadSettings(_0x2adb6b){const _0x4e9586=_0x6883,_0x238cbb=getSettingsPath(_0x2adb6b);if(!existsSync(_0x238cbb))return{};try{const _0x1e0f38=await readFile(_0x238cbb,'utf-8');return JSON[_0x4e9586(0x16a)](_0x1e0f38);}catch{return{};}}export async function saveSettings(_0x1029d7,_0x4d5b1a){const _0x585829=_0x6883,_0x1f6cb5={'FIBMv':function(_0x2aa16f,_0x2ba284){return _0x2aa16f(_0x2ba284);},'znUah':function(_0x57012a,_0x36bfbe,_0x52be5a){return _0x57012a(_0x36bfbe,_0x52be5a);},'lntss':function(_0x2e784c,_0x1d1684,_0x78fb1f){return _0x2e784c(_0x1d1684,_0x78fb1f);}},_0x256149=getSettingsPath(_0x1029d7),_0x3b7a4c=dirname(_0x256149);!_0x1f6cb5['FIBMv'](existsSync,_0x3b7a4c)&&await _0x1f6cb5[_0x585829(0x134)](mkdir,_0x3b7a4c,{'recursive':!![]}),await _0x1f6cb5[_0x585829(0x147)](writeFile,_0x256149,JSON[_0x585829(0x138)](_0x4d5b1a,null,0x2));}export function resolveEnvVars(_0xc26996){const _0x2fe10f=_0x6883,_0x11d4b8={'BaJsw':_0x2fe10f(0x139),'GdeIL':function(_0x3f5313,_0x3ee4df){return _0x3f5313===_0x3ee4df;},'CXVCE':'object'};if(typeof _0xc26996===_0x11d4b8[_0x2fe10f(0x19b)])return _0xc26996['replace'](/\$\{(\w+)\}/g,(_0x12e68a,_0x83b334)=>{const _0x4aa572=_0x2fe10f,_0xd14d54=process['env'][_0x83b334];if(_0xd14d54===undefined)throw new Error('Environment\x20variable\x20'+_0x83b334+_0x4aa572(0x167));return _0xd14d54;});if(Array[_0x2fe10f(0x1a7)](_0xc26996))return _0xc26996[_0x2fe10f(0x15e)](resolveEnvVars);if(_0xc26996&&_0x11d4b8[_0x2fe10f(0x197)](typeof _0xc26996,_0x11d4b8[_0x2fe10f(0x156)]))return Object['fromEntries'](Object['entries'](_0xc26996)['map'](([_0x3f6b92,_0x1c92a3])=>[_0x3f6b92,resolveEnvVars(_0x1c92a3)]));return _0xc26996;}const isRecord=_0x4437dd=>typeof _0x4437dd===_0xb0189d(0x150)&&_0x4437dd!==null&&!Array[_0xb0189d(0x1a7)](_0x4437dd),asRecord=_0x2cddd9=>isRecord(_0x2cddd9)?_0x2cddd9:undefined,mergeHeaders=(_0x3863ed,_0x56c92c)=>{const _0x255406=_0xb0189d,_0x31b3f5={'qodoZ':function(_0x118ae1,_0x298c2c){return _0x118ae1??_0x298c2c;}},_0x3fcaaa={..._0x31b3f5[_0x255406(0x183)](_0x3863ed,{}),..._0x56c92c??{}};return Object[_0x255406(0x173)](_0x3fcaaa)[_0x255406(0x192)]?_0x3fcaaa:undefined;},SAFE_MODE_ARGS=[_0xb0189d(0x189)],ALLOW_LOCALHOST_ARGS=[_0xb0189d(0x16e),_0xb0189d(0x164),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0xb0189d(0x15a)];export function buildBrowserOptionsFromSettings(_0x1123bb,_0x5aaf94={}){const _0x146e2b=_0xb0189d,_0x86df63={'JCCYI':function(_0x3dba21,_0x2a5f96){return _0x3dba21===_0x2a5f96;},'XZjqU':_0x146e2b(0x14e),'nqUaK':function(_0x569a3e,_0x2bd172){return _0x569a3e(_0x2bd172);},'HXcjx':function(_0x47db37,_0x378381,_0xc561ff){return _0x47db37(_0x378381,_0xc561ff);}},_0x10d5f5=asRecord(_0x1123bb[_0x146e2b(0x155)]),_0x551646={...asRecord(_0x10d5f5?.[_0x146e2b(0x14b)])??{}};_0x86df63['JCCYI'](typeof _0x5aaf94[_0x146e2b(0x17a)],_0x86df63['XZjqU'])&&(_0x551646[_0x146e2b(0x17a)]=_0x5aaf94[_0x146e2b(0x17a)]);if(_0x1123bb['safeMode']){const _0x1ac8cf=_0x551646['args']??[],_0x232571=SAFE_MODE_ARGS[_0x146e2b(0x190)](_0x204066=>!_0x1ac8cf[_0x146e2b(0x193)](_0x204066));_0x551646[_0x146e2b(0x163)]=[..._0x1ac8cf,..._0x232571];}if(_0x1123bb['allowInsecureLocalhost']){const _0x4ceb48=_0x551646[_0x146e2b(0x163)]??[],_0x19d87d=ALLOW_LOCALHOST_ARGS[_0x146e2b(0x190)](_0x1dfc33=>!_0x4ceb48[_0x146e2b(0x193)](_0x1dfc33));_0x551646['args']=[..._0x4ceb48,..._0x19d87d];}const _0x5a8a3f={..._0x86df63[_0x146e2b(0x15d)](asRecord,_0x10d5f5?.['contextOptions'])??{}};_0x5a8a3f['ignoreHTTPSErrors']=!![];typeof _0x1123bb['userAgent']===_0x146e2b(0x139)&&(_0x5a8a3f['userAgent']=_0x1123bb['userAgent']);const _0x3c01f4=_0x86df63['HXcjx'](mergeHeaders,_0x86df63[_0x146e2b(0x15d)](asRecord,_0x5a8a3f['extraHTTPHeaders']),_0x86df63[_0x146e2b(0x15d)](asRecord,_0x1123bb['headers']));return _0x3c01f4?_0x5a8a3f[_0x146e2b(0x13b)]=_0x3c01f4:delete _0x5a8a3f[_0x146e2b(0x13b)],_0x5aaf94['storageStatePath']&&(_0x5a8a3f[_0x146e2b(0x196)]=_0x5aaf94[_0x146e2b(0x143)]),{'launchOptions':_0x551646,'contextOptions':_0x5a8a3f};}export async function resolveProfileStorageState(_0x1e3573){const _0x1bba2a={'odJAn':function(_0x1fdb28,_0xa6108d){return _0x1fdb28(_0xa6108d);}};return _0x1bba2a['odJAn'](resolveLocalAuthPath,getEnvDir(_0x1e3573));}async function resolveLocalAuthPath(_0x40b759){const _0x53c4de=_0xb0189d,_0x261305={'Qxdyn':'auth.json.enc','XdbvZ':function(_0x1b1c16,_0x4792c3,_0x47c03d){return _0x1b1c16(_0x4792c3,_0x47c03d);},'hsDKL':_0x53c4de(0x195),'ITqBW':function(_0x481ee0,_0x461099){return _0x481ee0(_0x461099);},'LClQn':function(_0x1acc15){return _0x1acc15();},'rscmO':function(_0x3060c7,_0x29deda){return _0x3060c7(_0x29deda);},'FoOrF':function(_0x8b1a56,_0x35181){return _0x8b1a56 instanceof _0x35181;}},_0x5c2b62=join(_0x40b759,_0x261305['Qxdyn']),_0x3ebea3=_0x261305[_0x53c4de(0x161)](join,_0x40b759,_0x261305[_0x53c4de(0x15f)]);if(_0x261305[_0x53c4de(0x13d)](existsSync,_0x5c2b62))try{const _0x87a5b3=await _0x261305[_0x53c4de(0x187)](getToken);if(!_0x87a5b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1a5b79=await _0x261305[_0x53c4de(0x13a)](readFile,_0x5c2b62),_0x39a4aa=decrypt(_0x1a5b79,_0x87a5b3),_0x534d96=_0x261305['XdbvZ'](join,tmpdir(),_0x53c4de(0x1a4)+Date['now']()+'.json');return await writeFile(_0x534d96,_0x39a4aa),{'storageStatePath':_0x534d96,'tempAuthPath':_0x534d96};}catch(_0x341372){const _0x49da5a=_0x261305['FoOrF'](_0x341372,Error)?_0x341372[_0x53c4de(0x186)]:String(_0x341372);throw new Error(_0x53c4de(0x16c)+_0x49da5a);}if(existsSync(_0x3ebea3))return{'storageStatePath':_0x3ebea3};return{};}export async function buildPlaywrightConfig(_0x291c0f,_0x1390a9,_0x2ea6fc,_0x51a02f,_0x3e8595){const _0x519288=_0xb0189d,_0x43d5ab={'Nlmex':function(_0x483cf9,_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381){return _0x483cf9(_0x1e29f9,_0x1f6350,_0x7d6fd2,_0x11c42a,_0x209fa2,_0x597381);},'DiUzC':function(_0x46c3e9,_0x4ccaf1){return _0x46c3e9(_0x4ccaf1);}};if(_0x3e8595)return buildPlaywrightConfigCore(_0x291c0f,_0x3e8595,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');const {storageStatePath:_0x58fdc4,tempAuthPath:_0x387833}=await resolveLocalAuthPath(getEnvDir(_0x1390a9));try{const _0x5b09dc=await _0x43d5ab[_0x519288(0x18f)](buildPlaywrightConfigCore,_0x291c0f,_0x58fdc4,_0x1390a9,_0x2ea6fc,_0x51a02f,'stagehand');return{..._0x5b09dc,'tempAuthPath':_0x387833};}catch(_0x21fa3f){_0x387833&&await _0x43d5ab[_0x519288(0x18b)](unlink,_0x387833)['catch'](()=>{});throw _0x21fa3f;}}export async function buildPlaywrightConfigCore(_0x29bcde,_0x5b8e19,_0x524e13,_0x1ce596,_0x1d9d25,_0x4acc28='stagehand'){const _0x4e90d8=_0xb0189d,_0x585575={'keHjx':function(_0x1794d2,_0x48b055,_0x40b97d){return _0x1794d2(_0x48b055,_0x40b97d);},'HsFGk':function(_0x132737,_0x289a12){return _0x132737===_0x289a12;},'LtTnv':'--no-sandbox','ThsIj':_0x4e90d8(0x1a2),'uZPQf':_0x4e90d8(0x144),'MBuTJ':function(_0x2e6e45){return _0x2e6e45();},'RWyLs':function(_0x51f9d6,_0x3e437f,_0x56939b,_0x2b5890){return _0x51f9d6(_0x3e437f,_0x56939b,_0x2b5890);},'XdumZ':'file','qdrKH':'core','HRGXJ':_0x4e90d8(0x18c),'kdayf':function(_0x32cd46,_0x9a941b){return _0x32cd46===_0x9a941b;},'LVGpt':function(_0x29bb57,_0x42ab0c){return _0x29bb57===_0x42ab0c;},'yCyfM':'ranger-config','aYktP':function(_0x1c03d7,_0x1dcf88){return _0x1c03d7(_0x1dcf88);},'OzsfH':'playwright-cli','RjngN':function(_0x4babc7,_0x2a297b,_0x2eaebe){return _0x4babc7(_0x2a297b,_0x2eaebe);}},_0x3207ae=_0x1ce596||_0x585575['MBuTJ'](randomUUID),_0x5ace3c=_0x585575[_0x4e90d8(0x166)](join,_0x585575['MBuTJ'](getRangerDir),_0x4e90d8(0x175),_0x3207ae),_0x9f640c=Boolean(_0x29bcde[_0x4e90d8(0x135)]),_0x2d1b9f=_0x9f640c?{'browserName':_0x585575['uZPQf'],'cdpEndpoint':_0x29bcde[_0x4e90d8(0x135)]}:((()=>{const _0x87cd1e=_0x4e90d8,{launchOptions:_0x515e1c,contextOptions:_0x182adf}=_0x585575[_0x87cd1e(0x152)](buildBrowserOptionsFromSettings,_0x29bcde,{'headless':_0x1d9d25?![]:_0x29bcde['headless']??!![],'storageStatePath':_0x5b8e19});if(_0x585575['HsFGk'](process['getuid']?.(),0x0)){const _0x311b29=[_0x585575['LtTnv'],_0x585575['ThsIj']],_0x58cc64=_0x515e1c[_0x87cd1e(0x163)]??[],_0xf3b4c6=_0x311b29['filter'](_0x44c339=>!_0x58cc64['includes'](_0x44c339));_0x515e1c[_0x87cd1e(0x163)]=[..._0x58cc64,..._0xf3b4c6];}return{'isolated':!![],'browserName':_0x585575['uZPQf'],'launchOptions':_0x515e1c,'contextOptions':{..._0x182adf,'permissions':[_0x87cd1e(0x19e),_0x87cd1e(0x191)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x4daa58=_0x4acc28==='playwright-cli'?{'browser':_0x2d1b9f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c,'outputMode':_0x585575[_0x4e90d8(0x16d)],'codegen':'none'}:{'name':_0x524e13,'browser':_0x2d1b9f,'capabilities':[_0x585575['qdrKH'],'tabs','install',_0x4e90d8(0x18d),_0x585575['HRGXJ']],'imageResponses':_0x4e90d8(0x160),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5ace3c};if(!_0x9f640c){const _0x42ab17=_0x4daa58['browser'],_0x1f36bc=_0x42ab17[_0x4e90d8(0x172)];if(_0x585575[_0x4e90d8(0x19c)](_0x1f36bc[_0x4e90d8(0x176)],undefined))delete _0x1f36bc[_0x4e90d8(0x176)];if(_0x585575['LVGpt'](_0x1f36bc[_0x4e90d8(0x196)],undefined))delete _0x1f36bc[_0x4e90d8(0x196)];}const _0xd8452e=join(tmpdir(),_0x585575['yCyfM']);!_0x585575[_0x4e90d8(0x140)](existsSync,_0xd8452e)&&await mkdir(_0xd8452e,{'recursive':!![]});const _0x2ccbd1=_0x585575[_0x4e90d8(0x19c)](_0x4acc28,_0x585575['OzsfH'])?_0x4e90d8(0x181):'',_0x1fd686=join(_0xd8452e,_0x524e13+'-'+Date[_0x4e90d8(0x177)]()+_0x2ccbd1+_0x4e90d8(0x171));return await _0x585575[_0x4e90d8(0x174)](writeFile,_0x1fd686,JSON[_0x4e90d8(0x138)](_0x4daa58,null,0x2)),{'configPath':_0x1fd686,'storageStatePath':_0x5b8e19};}export async function buildPlaywrightCliConfig(_0x56827b,_0x91b530,_0x2b2018,_0x181c51,_0x42589d){const _0x51e994=_0xb0189d,_0x381e68={'pYVKf':function(_0x35ebd5,_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8){return _0x35ebd5(_0x16b38f,_0x4b0281,_0x3cdead,_0x377a3f,_0x5344b9,_0x5324e8);},'NQbQG':_0x51e994(0x17f),'yBVkk':function(_0x53e016,_0x229c1f){return _0x53e016(_0x229c1f);}};if(_0x42589d)return _0x381e68[_0x51e994(0x151)](buildPlaywrightConfigCore,_0x56827b,_0x42589d,_0x91b530,_0x2b2018,_0x181c51,_0x381e68['NQbQG']);const {storageStatePath:_0x448de0,tempAuthPath:_0x3b9280}=await resolveLocalAuthPath(getEnvDir(_0x91b530));try{const _0x1d2836=await buildPlaywrightConfigCore(_0x56827b,_0x448de0,_0x91b530,_0x2b2018,_0x181c51,_0x51e994(0x17f));return{..._0x1d2836,'tempAuthPath':_0x3b9280};}catch(_0x42a741){_0x3b9280&&await _0x381e68['yBVkk'](unlink,_0x3b9280)['catch'](()=>{});throw _0x42a741;}}export async function buildNovaActCliConfig(_0x42607e,_0x142bc0,_0x3f1578,_0x2736df,_0x2538d9){const _0x24b471=_0xb0189d,_0x4de547={'ptRCE':function(_0x172889,_0x668ad4){return _0x172889(_0x668ad4);},'SJvmS':_0x24b471(0x148),'PKpRR':function(_0x54bbb6,_0x445118,_0x5bce96){return _0x54bbb6(_0x445118,_0x5bce96);},'yCRgN':function(_0x1093e3,_0x477a29){return _0x1093e3===_0x477a29;},'eaYMD':_0x24b471(0x1a2),'myEiq':'string','AwWcL':function(_0x49fd2c,_0x153dbb){return _0x49fd2c(_0x153dbb);}},{storageStatePath:_0x3a611d,tempAuthPath:_0x53719c}=_0x2538d9?{'storageStatePath':_0x2538d9,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x4de547['ptRCE'](getEnvDir,_0x142bc0)),_0x1bc2cd=_0x3f1578||randomUUID(),_0x4c25cd=join(getRangerDir(),'sessions',_0x1bc2cd),_0x3f1739=join(_0x4c25cd,_0x24b471(0x19a)),_0x4a6f41=_0x3a611d?join(_0x3f1739,_0x4de547['SJvmS']):undefined,{launchOptions:_0x3171d0,contextOptions:_0x2b8a10}=_0x4de547['PKpRR'](buildBrowserOptionsFromSettings,_0x42607e,{'headless':_0x2736df?![]:_0x42607e[_0x24b471(0x17a)]??!![],'storageStatePath':_0x3a611d});if(_0x4de547['yCRgN'](process[_0x24b471(0x1a6)]?.(),0x0)){const _0x3fe19a=['--no-sandbox',_0x4de547[_0x24b471(0x149)]],_0x58cc67=_0x3171d0['args']??[],_0x35885c=_0x3fe19a['filter'](_0xb46551=>!_0x58cc67[_0x24b471(0x193)](_0xb46551));_0x3171d0['args']=[..._0x58cc67,..._0x35885c];}const _0x51c81b=typeof _0x3171d0[_0x24b471(0x133)]===_0x4de547[_0x24b471(0x194)]?_0x3171d0[_0x24b471(0x133)]:_0x3a611d?chromium[_0x24b471(0x133)]():undefined;return{'storageStatePath':_0x3a611d,'tempAuthPath':_0x53719c,'baseUrl':_0x42607e['baseUrl'],'headless':Boolean(_0x3171d0[_0x24b471(0x17a)]),'userDataDir':_0x3f1739,'browserProfilePath':_0x4a6f41,'executablePath':_0x51c81b,'launchArgs':Array[_0x24b471(0x1a7)](_0x3171d0[_0x24b471(0x163)])?_0x3171d0['args'][_0x24b471(0x190)](_0x481e5f=>typeof _0x481e5f===_0x24b471(0x139)):[],'userAgent':typeof _0x2b8a10['userAgent']===_0x4de547[_0x24b471(0x194)]?_0x2b8a10[_0x24b471(0x176)]:undefined,'extraHTTPHeaders':_0x2b8a10['extraHTTPHeaders'],'allowInsecureLocalhost':_0x4de547[_0x24b471(0x17c)](Boolean,_0x42607e['allowInsecureLocalhost']),'safeMode':Boolean(_0x42607e['safeMode']),'cdpEndpoint':_0x42607e['cdpEndpoint'],'isCdpMode':_0x4de547[_0x24b471(0x18e)](Boolean,_0x42607e[_0x24b471(0x135)])};}export function getNestedValue(_0x36b321,_0x4e801b){const _0x499867={'bSCqO':function(_0x224730,_0x5e8566){return _0x224730===_0x5e8566;},'Whudn':'object'},_0x13e703=parseKeyPath(_0x4e801b);let _0x2aa496=_0x36b321;for(const _0x3f3374 of _0x13e703){if(_0x2aa496===null||_0x499867['bSCqO'](_0x2aa496,undefined)||typeof _0x2aa496!==_0x499867['Whudn'])return undefined;_0x2aa496=_0x2aa496[_0x3f3374];}return _0x2aa496;}export function setNestedValue(_0x561d7a,_0x1e4afc,_0x2b492b){const _0x2f0bd5=_0xb0189d,_0x7680cc={'WmDHM':function(_0x312d9b,_0x2bb114){return _0x312d9b(_0x2bb114);},'aKZoQ':function(_0x5443e6,_0x1fcc63){return _0x5443e6 in _0x1fcc63;},'pAHnu':'object'},_0x4aa443=_0x7680cc[_0x2f0bd5(0x165)](parseKeyPath,_0x1e4afc);let _0x303fef=_0x561d7a;for(let _0x284092=0x0;_0x284092<_0x4aa443['length']-0x1;_0x284092++){const _0x4839c2=_0x4aa443[_0x284092];(!_0x7680cc['aKZoQ'](_0x4839c2,_0x303fef)||typeof _0x303fef[_0x4839c2]!==_0x7680cc['pAHnu'])&&(_0x303fef[_0x4839c2]={}),_0x303fef=_0x303fef[_0x4839c2];}_0x303fef[_0x4aa443[_0x4aa443['length']-0x1]]=_0x2b492b;}export function deleteNestedValue(_0x183f9c,_0x271d88){const _0x48c53=_0xb0189d,_0x18c864={'XSbWH':function(_0x1151e7,_0x4b573f){return _0x1151e7(_0x4b573f);},'aUkXc':function(_0x125eb0,_0x3770d9){return _0x125eb0===_0x3770d9;},'GHOxq':_0x48c53(0x150),'cTEVJ':function(_0x556831,_0x5cc0b9){return _0x556831===_0x5cc0b9;},'bxJIb':function(_0x1bebe6,_0x1afcfa){return _0x1bebe6-_0x1afcfa;},'XOXxm':function(_0x630fb8,_0xa2db34){return _0x630fb8 in _0xa2db34;}},_0x23dc77=_0x18c864[_0x48c53(0x1a0)](parseKeyPath,_0x271d88);let _0x425fd4=_0x183f9c;for(let _0x13f573=0x0;_0x13f573<_0x23dc77[_0x48c53(0x192)]-0x1;_0x13f573++){if(_0x18c864[_0x48c53(0x169)](_0x425fd4,null)||_0x425fd4===undefined||typeof _0x425fd4!==_0x18c864['GHOxq'])return![];_0x425fd4=_0x425fd4[_0x23dc77[_0x13f573]];}if(_0x18c864['aUkXc'](_0x425fd4,null)||_0x18c864['cTEVJ'](_0x425fd4,undefined)||typeof _0x425fd4!==_0x48c53(0x150))return![];const _0x5764a1=_0x23dc77[_0x18c864['bxJIb'](_0x23dc77[_0x48c53(0x192)],0x1)];if(_0x18c864['XOXxm'](_0x5764a1,_0x425fd4))return delete _0x425fd4[_0x5764a1],!![];return![];}function parseKeyPath(_0x7a76d3){const _0x22e6ff=_0xb0189d,_0x2318df={'yQzFY':'setupHeader'},_0xa4ef56=_0x7a76d3['split']('.');return _0xa4ef56[0x0]==='header'&&(_0xa4ef56[0x0]=_0x22e6ff(0x18a)),_0xa4ef56[0x0]===_0x2318df[_0x22e6ff(0x180)]&&(_0xa4ef56[0x0]='setupHeaders'),_0xa4ef56;}export function formatSettings(_0x20ee86,_0x5696d7=0x0){const _0x3c840f=_0xb0189d,_0x314273=[],_0x3de6ef='\x20\x20'[_0x3c840f(0x131)](_0x5696d7);for(const [_0x33f5f3,_0x441346]of Object[_0x3c840f(0x13e)](_0x20ee86)){if(_0x441346===undefined)continue;if(typeof _0x441346===_0x3c840f(0x150)&&_0x441346!==null){_0x314273['push'](''+_0x3de6ef+_0x33f5f3+':');for(const [_0x2a896f,_0x4b2a11]of Object[_0x3c840f(0x13e)](_0x441346)){_0x314273['push'](_0x3de6ef+'\x20\x20'+_0x2a896f+':\x20'+_0x4b2a11);}}else _0x314273['push'](''+_0x3de6ef+_0x33f5f3+':\x20'+_0x441346);}return _0x314273['join']('\x0a');}