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

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 +1 -1
@@ -1 +1 @@
1
- (function(_0x19127a,_0x447ac1){const _0x47b6b8=_0x5095,_0x2fbb78=_0x19127a();while(!![]){try{const _0x84e11e=-parseInt(_0x47b6b8(0xaf))/0x1*(-parseInt(_0x47b6b8(0xce))/0x2)+-parseInt(_0x47b6b8(0xb4))/0x3*(-parseInt(_0x47b6b8(0x94))/0x4)+parseInt(_0x47b6b8(0xc2))/0x5+-parseInt(_0x47b6b8(0xa2))/0x6*(parseInt(_0x47b6b8(0xa1))/0x7)+-parseInt(_0x47b6b8(0x96))/0x8*(parseInt(_0x47b6b8(0xb9))/0x9)+parseInt(_0x47b6b8(0xb1))/0xa*(-parseInt(_0x47b6b8(0x98))/0xb)+parseInt(_0x47b6b8(0xbf))/0xc;if(_0x84e11e===_0x447ac1)break;else _0x2fbb78['push'](_0x2fbb78['shift']());}catch(_0x3f26eb){_0x2fbb78['push'](_0x2fbb78['shift']());}}}(_0x43bd,0x80269));function _0x43bd(){const _0x42e3b8=['trim','24pkNsWf','kill','32KbAOGU','MJzFb','3102GqQsVn','hex','string','eEOUr','SIGTERM','pipe','zdvDF','-s=','rBEUo','1112293tiFIZF','36aqhTyj','qcOlW','SIGKILL','sha256','configPath','npx','length','kVoyO','slice','bash_command','null','\x0astderr:\x20','WMMeM','176293EqHJnP','qAOPD','9190Lgqcys','NawHh','digest','9822RTENam','CJgoD','match','test','rg-','1495278zHHNst','timeoutMs','--config','exited\x20with\x20code=','jbBXG','\x27\x5c\x27\x27','14124708aLXExf','sessionId','args','4263680OtMfuM','commandArgs','MTBYT','replace','zZCrJ','NlIfG','join','...','UlXQi','gBlCf','data','env','4EvPemg','map','LoUPR','values','find'];_0x43bd=function(){return _0x42e3b8;};return _0x43bd();}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x8f06bf){const _0x152158=_0x5095,_0x57afe9=createHash(_0x152158(0xa5))['update'](_0x8f06bf)[_0x152158(0xb3)](_0x152158(0x99))[_0x152158(0xaa)](0x0,0xc);return _0x152158(0xb8)+_0x57afe9;}function shellQuote(_0x4640ed){const _0x4327c2=_0x5095;return'\x27'+_0x4640ed[_0x4327c2(0xc5)](/'/g,_0x4327c2(0xbe))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x1f2366){const _0x589a18=_0x5095;return SAFE_SHELL_TOKEN[_0x589a18(0xb7)](_0x1f2366)?_0x1f2366:shellQuote(_0x1f2366);}export function buildPlaywrightCliInvocation(_0x5c99c0,_0x27af01,_0x435552){const _0x2e881f=_0x5095,_0x3bf158={'NlIfG':function(_0x1cb7f5,_0x2eeff7){return _0x1cb7f5(_0x2eeff7);},'kVoyO':'unknown','LoUPR':_0x2e881f(0xa7)},_0x11f7f4=_0x3bf158[_0x2e881f(0xc7)](toPlaywrightCliSessionKey,_0x5c99c0),[_0x2c2b6b=_0x3bf158[_0x2e881f(0xa9)]]=_0x435552,_0x15d63d=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x11f7f4,_0x2e881f(0xbb),_0x27af01,..._0x435552];return{'command':_0x3bf158[_0x2e881f(0xd0)],'args':_0x15d63d,'shellCommand':[_0x3bf158['LoUPR'],PLAYWRIGHT_CLI_BINARY,_0x2e881f(0x9f)+_0x3bf158[_0x2e881f(0xc7)](quoteShellArg,_0x11f7f4),_0x2e881f(0xbb),quoteShellArg(_0x27af01),..._0x435552[_0x2e881f(0xcf)](quoteShellArg)][_0x2e881f(0xc8)]('\x20'),'subcommand':_0x2c2b6b};}function _0x5095(_0x3a2700,_0x4dc7aa){_0x3a2700=_0x3a2700-0x92;const _0x43bd72=_0x43bd();let _0x50956b=_0x43bd72[_0x3a2700];return _0x50956b;}export function buildPlaywrightCliCommandPrefix(_0x3d6a2c,_0x40f31b){const _0x3737d0=_0x5095,_0x34ecad={'jbBXG':function(_0x4e1c88,_0x1a7deb){return _0x4e1c88(_0x1a7deb);},'XanRd':'npx','uGyqW':function(_0x50aa03,_0x4e7f61){return _0x50aa03(_0x4e7f61);},'BeKhl':'--config'},_0x43b408=_0x34ecad[_0x3737d0(0xbd)](toPlaywrightCliSessionKey,_0x3d6a2c);return[_0x34ecad['XanRd'],PLAYWRIGHT_CLI_BINARY,_0x3737d0(0x9f)+_0x34ecad['uGyqW'](quoteShellArg,_0x43b408),_0x34ecad['BeKhl'],quoteShellArg(_0x40f31b)]['join']('\x20');}function truncateOutput(_0x5233d4,_0x241da6=0x7d0){const _0xa0bad1=_0x5095,_0x2b357e={'BskQf':function(_0x453bdd,_0x16e2c0){return _0x453bdd>_0x16e2c0;},'Jljok':_0xa0bad1(0xc9)};return _0x2b357e['BskQf'](_0x5233d4['length'],_0x241da6)?_0x5233d4['slice'](0x0,_0x241da6)+_0x2b357e['Jljok']:_0x5233d4;}export async function runPlaywrightCliCommand(_0x486704){const _0x1ad527=_0x5095,_0x5c2b5f={'NawHh':function(_0x4315d7,_0x5ee83b){return _0x4315d7(_0x5ee83b);},'HZpAD':function(_0x4a599a,_0x38e1bf){return _0x4a599a(_0x38e1bf);},'qAOPD':function(_0x4b1e24,_0x4539e5,_0x174eb0){return _0x4b1e24(_0x4539e5,_0x174eb0);},'FjiJY':function(_0x16366f,_0x4275d9){return _0x16366f===_0x4275d9;},'SoIiH':function(_0x34c5cb,_0x3def81){return _0x34c5cb??_0x3def81;},'XixEk':_0x1ad527(0xac),'eEOUr':_0x1ad527(0x9d),'xcheL':function(_0x1d7446,_0x2a84a9){return _0x1d7446>_0x2a84a9;},'qcOlW':function(_0xc4d1e2,_0x13b941,_0x582a86){return _0xc4d1e2(_0x13b941,_0x582a86);},'MJzFb':'error','pPZdD':function(_0x47285b,_0x453fde,_0x89eebb,_0x4e7989){return _0x47285b(_0x453fde,_0x89eebb,_0x4e7989);}},_0x518933=_0x5c2b5f['pPZdD'](buildPlaywrightCliInvocation,_0x486704[_0x1ad527(0xc0)],_0x486704[_0x1ad527(0xa6)],_0x486704[_0x1ad527(0xc3)]);return new Promise((_0x303eec,_0x29b0c5)=>{const _0x17ecea=_0x1ad527,_0x4ebfda={'RaETS':_0x17ecea(0x9c),'MTBYT':function(_0x10ea3b,_0x4efb18,_0x2786d2){const _0x265c0c=_0x17ecea;return _0x5c2b5f[_0x265c0c(0xb0)](_0x10ea3b,_0x4efb18,_0x2786d2);},'jRWXW':function(_0x1124ef,_0xdd1361){return _0x5c2b5f['FjiJY'](_0x1124ef,_0xdd1361);},'gBlCf':function(_0x363953,_0x10181d){return _0x5c2b5f['SoIiH'](_0x363953,_0x10181d);},'zdvDF':_0x5c2b5f['XixEk'],'rBEUo':function(_0x244ccc,_0x2f5abf){return _0x244ccc??_0x2f5abf;},'UlXQi':function(_0x5028b7,_0x3d222a){return _0x5028b7(_0x3d222a);},'WIJyS':function(_0x51b64c,_0x2243d1){return _0x5c2b5f['NawHh'](_0x51b64c,_0x2243d1);},'CJgoD':function(_0x5497e3,_0xe4f21e){return _0x5497e3(_0xe4f21e);}},_0x3d5af8=spawn(_0x518933['command'],_0x518933[_0x17ecea(0xc1)],{'cwd':_0x486704['cwd'],'env':_0x486704[_0x17ecea(0xcd)],'stdio':['ignore','pipe',_0x5c2b5f[_0x17ecea(0x9b)]]});let _0x55f508='',_0x14ab44='',_0x257a43=![];const _0x14ad05=_0x486704[_0x17ecea(0xba)]&&_0x5c2b5f['xcheL'](_0x486704[_0x17ecea(0xba)],0x0)?_0x5c2b5f[_0x17ecea(0xa3)](setTimeout,()=>{const _0x1d0a02=_0x17ecea;_0x257a43=!![],_0x3d5af8['kill'](_0x4ebfda['RaETS']),_0x4ebfda[_0x1d0a02(0xc4)](setTimeout,()=>{const _0x19ff70=_0x1d0a02;try{_0x3d5af8[_0x19ff70(0x95)](_0x19ff70(0xa4));}catch{}},0x3e8);},_0x486704[_0x17ecea(0xba)]):null;_0x3d5af8['stdout']?.['on'](_0x17ecea(0xcc),_0x2ab476=>{_0x55f508+=_0x2ab476['toString']();}),_0x3d5af8['stderr']?.['on'](_0x17ecea(0xcc),_0x2d2ae4=>{_0x14ab44+=_0x2d2ae4['toString']();}),_0x3d5af8['on'](_0x5c2b5f[_0x17ecea(0x97)],_0x46b14b=>{const _0x583b00=_0x17ecea;if(_0x14ad05)_0x5c2b5f[_0x583b00(0xb2)](clearTimeout,_0x14ad05);_0x5c2b5f['HZpAD'](_0x29b0c5,_0x46b14b);}),_0x3d5af8['on']('close',(_0x36750d,_0x57678d)=>{const _0x3df8df=_0x17ecea;if(_0x14ad05)clearTimeout(_0x14ad05);if(_0x4ebfda['jRWXW'](_0x36750d,0x0)){_0x303eec({'stdout':_0x55f508,'stderr':_0x14ab44,'invocation':_0x518933});return;}const _0x36d34f=_0x257a43?'timed\x20out\x20after\x20'+_0x486704['timeoutMs']+'ms':_0x3df8df(0xbc)+_0x4ebfda[_0x3df8df(0xcb)](_0x36750d,_0x4ebfda[_0x3df8df(0x9e)])+'\x20signal='+_0x4ebfda[_0x3df8df(0xa0)](_0x57678d,_0x4ebfda['zdvDF']);_0x4ebfda[_0x3df8df(0xca)](_0x29b0c5,new Error('playwright-cli\x20'+_0x518933['subcommand']+'\x20'+_0x36d34f+'\x0astdout:\x20'+_0x4ebfda['WIJyS'](truncateOutput,_0x55f508)+_0x3df8df(0xad)+_0x4ebfda[_0x3df8df(0xb5)](truncateOutput,_0x14ab44)));});});}export function extractBashCommand(_0x5313b4){const _0x1398d1=_0x5095,_0x52bbfc={'zZCrJ':'script','WMMeM':_0x1398d1(0x9a),'LBhZU':function(_0xe325c4,_0x527cbf){return _0xe325c4??_0x527cbf;}},_0x325f0f=['command','cmd',_0x52bbfc[_0x1398d1(0xc6)],_0x1398d1(0xab)];for(const _0x165bd3 of _0x325f0f){const _0x91bcb8=_0x5313b4[_0x165bd3];if(typeof _0x91bcb8===_0x52bbfc[_0x1398d1(0xae)]&&_0x91bcb8[_0x1398d1(0x93)]())return _0x91bcb8;}const _0x51aad5=Object[_0x1398d1(0xd1)](_0x5313b4)[_0x1398d1(0x92)](_0x17fa01=>typeof _0x17fa01===_0x1398d1(0x9a)&&_0x17fa01[_0x1398d1(0x93)]()[_0x1398d1(0xa8)]>0x0);return _0x52bbfc['LBhZU'](_0x51aad5,null);}export function parsePlaywrightCliCommand(_0x2cc804){const _0xf3b90e=_0x5095,_0x338399=_0x2cc804[_0xf3b90e(0xb6)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x338399?.[0x1]??null;}
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 +1 @@
1
- (function(_0x2f5ac0,_0x49de02){const _0x1e9998=_0x5c2a,_0x1a7eb6=_0x2f5ac0();while(!![]){try{const _0x10a602=parseInt(_0x1e9998(0x182))/0x1*(-parseInt(_0x1e9998(0x17f))/0x2)+parseInt(_0x1e9998(0x183))/0x3*(-parseInt(_0x1e9998(0x17c))/0x4)+-parseInt(_0x1e9998(0x17d))/0x5+parseInt(_0x1e9998(0x180))/0x6+-parseInt(_0x1e9998(0x181))/0x7+parseInt(_0x1e9998(0x17e))/0x8*(parseInt(_0x1e9998(0x17a))/0x9)+parseInt(_0x1e9998(0x17b))/0xa;if(_0x10a602===_0x49de02)break;else _0x1a7eb6['push'](_0x1a7eb6['shift']());}catch(_0x4c0767){_0x1a7eb6['push'](_0x1a7eb6['shift']());}}}(_0x313d,0x3ffc6));function _0x313d(){const _0x3a6120=['9wnBLEp','9919230KjTgFX','83860puxEjW','554115UzNDio','2953656bFAibX','6vVBhlG','2499648OSRWRI','3267292diznUP','165936cuEAxC','63CXYaFq'];_0x313d=function(){return _0x3a6120;};return _0x313d();}function _0x5c2a(_0x59d2c4,_0x59dff7){_0x59d2c4=_0x59d2c4-0x17a;const _0x313d25=_0x313d();let _0x5c2a25=_0x313d25[_0x59d2c4];return _0x5c2a25;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x36b34c){const _0x118c41=_0x36b34c?_0x36b34c(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'+_0x118c41+'.';}
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 +1 @@
1
- function _0xd164(_0x25617f,_0x367aa1){_0x25617f=_0x25617f-0x10d;const _0x4c28f7=_0x4c28();let _0xd16401=_0x4c28f7[_0x25617f];return _0xd16401;}(function(_0x276de4,_0x91545d){const _0x51e7db=_0xd164,_0x43d625=_0x276de4();while(!![]){try{const _0x3234c4=parseInt(_0x51e7db(0x10e))/0x1+-parseInt(_0x51e7db(0x11e))/0x2+-parseInt(_0x51e7db(0x11a))/0x3*(parseInt(_0x51e7db(0x121))/0x4)+parseInt(_0x51e7db(0x113))/0x5+parseInt(_0x51e7db(0x120))/0x6*(-parseInt(_0x51e7db(0x10f))/0x7)+-parseInt(_0x51e7db(0x119))/0x8+-parseInt(_0x51e7db(0x11f))/0x9*(-parseInt(_0x51e7db(0x11d))/0xa);if(_0x3234c4===_0x91545d)break;else _0x43d625['push'](_0x43d625['shift']());}catch(_0x3ad14a){_0x43d625['push'](_0x43d625['shift']());}}}(_0x4c28,0xcc079));function _0x4c28(){const _0x4cad8b=['EMnxf','<div\x20class=\x22ranger-banner__message\x22>','9656944pqzMrw','33uhpJMJ','KosOr','addInitScript','20otLZcT','344404Morckh','8510364LjsZzf','510FmeDPT','95012njphbf','SwGAI','258110ZuPfvg','7952zzQsce','TtCmE','</div>','stringify','2117830lFIjur','\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','mBfPw',';\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'];_0x4c28=function(){return _0x4cad8b;};return _0x4c28();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x225ee1=_0xd164,_0x10aea8={'mBfPw':function(_0x50060e,_0x2773a9){return _0x50060e+_0x2773a9;},'fbalv':function(_0xc9cf54,_0x8bcad7){return _0xc9cf54+_0x8bcad7;},'TtCmE':function(_0x3371cc,_0x140166){return _0x3371cc+_0x140166;},'KosOr':'<div\x20class=\x22ranger-banner__content\x22>','SwGAI':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','Whppw':_0x225ee1(0x118),'EMnxf':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>'},_0x4a1e4b=_0x10aea8[_0x225ee1(0x115)](_0x10aea8['mBfPw'](_0x10aea8['fbalv'](_0x10aea8[_0x225ee1(0x110)](_0x10aea8[_0x225ee1(0x11b)]+_0x10aea8[_0x225ee1(0x10d)]+_0x10aea8['Whppw'],'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x10aea8[_0x225ee1(0x117)],_0x225ee1(0x111)),'</div>'),'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'),_0x282343=_0x225ee1(0x114);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x225ee1(0x112)](_0x4a1e4b)+_0x225ee1(0x116)+JSON['stringify'](_0x282343)+';\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;}export async function addProfileSetupBanner(_0x5e50ae){const _0x8c80=_0xd164;await _0x5e50ae[_0x8c80(0x11c)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
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 +1 @@
1
- (function(_0x5c5be1,_0x396d37){const _0x25dc88=_0x5717,_0x5e7f27=_0x5c5be1();while(!![]){try{const _0x4418a1=-parseInt(_0x25dc88(0x151))/0x1+parseInt(_0x25dc88(0x15b))/0x2*(-parseInt(_0x25dc88(0x138))/0x3)+parseInt(_0x25dc88(0x14c))/0x4+parseInt(_0x25dc88(0x156))/0x5+parseInt(_0x25dc88(0x141))/0x6*(-parseInt(_0x25dc88(0x15f))/0x7)+-parseInt(_0x25dc88(0x15d))/0x8*(parseInt(_0x25dc88(0x15c))/0x9)+parseInt(_0x25dc88(0x146))/0xa;if(_0x4418a1===_0x396d37)break;else _0x5e7f27['push'](_0x5e7f27['shift']());}catch(_0x3ee416){_0x5e7f27['push'](_0x5e7f27['shift']());}}}(_0x19d0,0x3620a));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0x19d0(){const _0x2ae736=['8RDUpQo','zphTy','7mvCzUo','VWKdZ','.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','kNvvh','setupHeaders','lWYGk','object','gEOxW','3IMrevk','entries','keys','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','length','rxUfI','message',').\x20Ignoring\x20local\x20profile\x20overrides.','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','1375116vmtmxj','warn','settings','PwSqz','FtJfN','13091680HgUbRj','QvjWG','UxTWP','projects','split','isArray','117340BBbpFd','version','lmjgq','profiles','XFQcm','238517kWBhPV','[ranger]\x20Warning:\x20','utf-8','sWEDn','yrILs','162915SlszKw','zoViQ','dhsDW','lastProfile','DWVBv','701920hmdEzZ','2976453TZqOOj'];_0x19d0=function(){return _0x2ae736;};return _0x19d0();}export function getProjectsConfigPath(){return join(getRangerHomeDir(),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x175e17=_0x5717,_0x15c432={'vhLCa':function(_0x53d680){return _0x53d680();},'gEOxW':function(_0x307fbf,_0x4e6353){return _0x307fbf(_0x4e6353);},'dhsDW':function(_0x4405ba,_0x19a04b){return _0x4405ba instanceof _0x19a04b;},'FtJfN':function(_0x32af60,_0x58f6bc){return _0x32af60(_0x58f6bc);},'DWVBv':_0x175e17(0x136),'loVsU':function(_0x5615b0,_0x1c9817){return _0x5615b0!==_0x1c9817;},'kTgVK':function(_0x206599,_0x467538){return _0x206599===_0x467538;}},_0xbc63af=_0x15c432['vhLCa'](getProjectsConfigPath);if(!_0x15c432[_0x175e17(0x137)](existsSync,_0xbc63af))return emptyConfig();let _0x4ed688;try{_0x4ed688=readFileSync(_0xbc63af,'utf-8');}catch(_0x50cd51){const _0x92db6=_0x15c432[_0x175e17(0x158)](_0x50cd51,Error)?_0x50cd51['message']:_0x15c432['gEOxW'](String,_0x50cd51);return console[_0x175e17(0x142)](_0x175e17(0x140)+_0xbc63af+':\x20'+_0x92db6+_0x175e17(0x161)),emptyConfig();}let _0x1cc6ed;try{_0x1cc6ed=JSON['parse'](_0x4ed688);}catch(_0x463f9e){const _0x5ab67b=_0x15c432['dhsDW'](_0x463f9e,Error)?_0x463f9e[_0x175e17(0x13e)]:_0x15c432[_0x175e17(0x145)](String,_0x463f9e);return console[_0x175e17(0x142)](_0x175e17(0x152)+_0xbc63af+'\x20is\x20not\x20valid\x20JSON\x20('+_0x5ab67b+_0x175e17(0x13f)),_0x15c432['vhLCa'](emptyConfig);}if(!_0x1cc6ed||typeof _0x1cc6ed!==_0x15c432[_0x175e17(0x15a)]||Array['isArray'](_0x1cc6ed)||_0x15c432['loVsU'](_0x1cc6ed[_0x175e17(0x14d)],CURRENT_VERSION)||_0x15c432['loVsU'](typeof _0x1cc6ed[_0x175e17(0x149)],'object')||_0x15c432['kTgVK'](_0x1cc6ed[_0x175e17(0x149)],null)||Array[_0x175e17(0x14b)](_0x1cc6ed['projects']))return console[_0x175e17(0x142)]('[ranger]\x20Warning:\x20'+_0xbc63af+_0x175e17(0x13b)),_0x15c432['vhLCa'](emptyConfig);return _0x1cc6ed;}export function writeProjectsConfig(_0x354ae2){const _0x245316=_0x5717,_0x3b1c0c={'pqkeA':function(_0x5bae19){return _0x5bae19();},'sWEDn':function(_0x3aa136,_0x20b664){return _0x3aa136(_0x20b664);},'yrILs':function(_0x42d38a,_0x1fae4c,_0x567201){return _0x42d38a(_0x1fae4c,_0x567201);},'UxTWP':function(_0xf01e4f,_0x296156,_0x55eb65,_0x4eadd0){return _0xf01e4f(_0x296156,_0x55eb65,_0x4eadd0);},'zphTy':_0x245316(0x153),'yvPwl':function(_0x513d3f,_0x360636){return _0x513d3f(_0x360636);}},_0x362407=_0x3b1c0c['pqkeA'](getProjectsConfigPath),_0x467cf9=_0x3b1c0c['sWEDn'](dirname,_0x362407);!_0x3b1c0c[_0x245316(0x154)](existsSync,_0x467cf9)&&_0x3b1c0c[_0x245316(0x155)](mkdirSync,_0x467cf9,{'recursive':!![]});const _0x17daeb=_0x362407+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x208962=JSON['stringify'](_0x354ae2,null,0x2)+'\x0a';try{_0x3b1c0c[_0x245316(0x148)](writeFileSync,_0x17daeb,_0x208962,{'encoding':_0x3b1c0c[_0x245316(0x15e)],'mode':0x180}),renameSync(_0x17daeb,_0x362407);}catch(_0x57598f){try{_0x3b1c0c['yvPwl'](existsSync,_0x17daeb)&&unlinkSync(_0x17daeb);}catch{}throw _0x57598f;}}export function readProfileOverrides(_0x920ef4,_0x35a38e){const _0x2eac01=_0x5717,_0x354f1c=readProjectsConfig(),_0x2690df=_0x354f1c[_0x2eac01(0x149)][_0x920ef4];if(!_0x2690df||!_0x2690df[_0x2eac01(0x14f)])return null;const _0x2b1d20=_0x2690df['profiles'][_0x35a38e];if(!_0x2b1d20||!_0x2b1d20['settings'])return null;return _0x2b1d20['settings']??null;}export function setProfileOverride(_0x1b7b6c,_0x366a4c,_0x5e5633,_0xdc493a){const _0x1a401f=_0x5717,_0x366911={'QPnff':'keyPath\x20is\x20required','XFQcm':function(_0x426c76,_0x4c560b){return _0x426c76(_0x4c560b);}};if(!_0x5e5633)throw new Error(_0x366911['QPnff']);const _0x524cb3=readProjectsConfig(),_0x49a06f=_0x524cb3['projects'][_0x1b7b6c]??={},_0xb2ee4c=_0x49a06f['profiles']??={},_0x596b5c=_0xb2ee4c[_0x366a4c]??={},_0x38dd0e=_0x596b5c[_0x1a401f(0x143)]??={};setByKeyPath(_0x38dd0e,_0x5e5633,_0xdc493a),_0x366911[_0x1a401f(0x150)](writeProjectsConfig,_0x524cb3);}export function unsetProfileOverride(_0x178264,_0x28700a,_0x119aa2){const _0x2c61d4=_0x5717,_0x3da217={'rxUfI':function(_0xc868ad){return _0xc868ad();},'HumFL':function(_0x3f52f8,_0x5774f6,_0x136f56){return _0x3f52f8(_0x5774f6,_0x136f56);},'vfNOO':function(_0x23c4d1,_0x218236){return _0x23c4d1(_0x218236);}};if(!_0x119aa2)throw new Error(_0x2c61d4(0x162));const _0x57f0fa=_0x3da217[_0x2c61d4(0x13d)](readProjectsConfig),_0x58679e=_0x57f0fa[_0x2c61d4(0x149)][_0x178264];if(!_0x58679e?.['profiles'])return![];const _0x565daf=_0x58679e['profiles'][_0x28700a];if(!_0x565daf?.[_0x2c61d4(0x143)])return![];const _0x53d9f2=_0x3da217['HumFL'](deleteByKeyPath,_0x565daf['settings'],_0x119aa2);if(!_0x53d9f2)return![];return _0x3da217['vfNOO'](writeProjectsConfig,_0x57f0fa),!![];}export function resetProfileOverrides(_0x395f6b,_0xa8e106){const _0x38f55b=_0x5717,_0x2226ac={'PNPoV':function(_0x32de26,_0x610020){return _0x32de26 in _0x610020;},'kNvvh':function(_0x2a5986,_0x32a946){return _0x2a5986===_0x32a946;},'QvjWG':function(_0x36125a,_0x2e6ea1){return _0x36125a(_0x2e6ea1);}},_0x1d4bde=readProjectsConfig(),_0x197495=_0x1d4bde[_0x38f55b(0x149)][_0x395f6b];if(!_0x197495?.['profiles'])return;if(!_0x2226ac['PNPoV'](_0xa8e106,_0x197495[_0x38f55b(0x14f)]))return;delete _0x197495[_0x38f55b(0x14f)][_0xa8e106],_0x2226ac[_0x38f55b(0x163)](Object[_0x38f55b(0x13a)](_0x197495[_0x38f55b(0x14f)])[_0x38f55b(0x13c)],0x0)&&(!_0x197495[_0x38f55b(0x159)]?delete _0x1d4bde[_0x38f55b(0x149)][_0x395f6b]:_0x197495[_0x38f55b(0x14f)]={}),_0x2226ac[_0x38f55b(0x147)](writeProjectsConfig,_0x1d4bde);}export function readLastProfile(_0x30af4c){const _0x437dea=_0x5717,_0x5ef441={'VWKdZ':function(_0x4c490c){return _0x4c490c();}},_0x1da170=_0x5ef441[_0x437dea(0x160)](readProjectsConfig),_0x3e0972=_0x1da170['projects'][_0x30af4c];return _0x3e0972?.['lastProfile']??null;}export function writeLastProfile(_0x1eb32a,_0x12ee4a){const _0x423319=_0x5717,_0x15ec2c={'hAgJW':function(_0x42d263){return _0x42d263();}},_0x824f16=_0x15ec2c['hAgJW'](readProjectsConfig),_0x1d9fd9=_0x824f16[_0x423319(0x149)][_0x1eb32a]??={};_0x1d9fd9[_0x423319(0x159)]=_0x12ee4a,writeProjectsConfig(_0x824f16);}export function clearLastProfile(_0x2cd0df,_0x105dc5){const _0x59d2cd=_0x5717,_0x5adefb={'lWYGk':function(_0x211084){return _0x211084();},'JqHlz':function(_0x15767b,_0x56d05b){return _0x15767b===_0x56d05b;}},_0x4d43fa=_0x5adefb[_0x59d2cd(0x135)](readProjectsConfig),_0x46e24e=_0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df];if(!_0x46e24e||_0x46e24e['lastProfile']!==_0x105dc5)return![];return delete _0x46e24e['lastProfile'],(!_0x46e24e[_0x59d2cd(0x14f)]||_0x5adefb['JqHlz'](Object['keys'](_0x46e24e['profiles'])[_0x59d2cd(0x13c)],0x0))&&delete _0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df],writeProjectsConfig(_0x4d43fa),!![];}export function mergeCloudProfileSettings(_0x5ac5cf,_0x14b78e){const _0x42230f=_0x5717,_0x4d9f5c={'zoViQ':function(_0x538f71,_0x331e91){return _0x538f71===_0x331e91;},'PwSqz':_0x42230f(0x164),'fncqm':function(_0x30d29,_0xb77333){return _0x30d29(_0xb77333);},'lmjgq':function(_0x36e319,_0x3055b4){return _0x36e319!==_0x3055b4;}},_0x3a1505={..._0x5ac5cf??{}};if(!_0x14b78e)return _0x3a1505;for(const [_0x28bd6b,_0x5bd592]of Object['entries'](_0x14b78e)){if(_0x5bd592===undefined)continue;if(_0x4d9f5c[_0x42230f(0x157)](_0x5bd592,null)){delete _0x3a1505[_0x28bd6b];continue;}if(_0x4d9f5c['zoViQ'](_0x28bd6b,'headers')||_0x28bd6b===_0x4d9f5c[_0x42230f(0x144)]){const _0x241ece=asRecord(_0x3a1505[_0x28bd6b])??{},_0x3e0970=_0x4d9f5c['fncqm'](asRecord,_0x5bd592);if(!_0x3e0970){_0x3a1505[_0x28bd6b]=_0x5bd592;continue;}const _0x5bafa1={..._0x241ece};for(const [_0x1ef530,_0x4a4880]of Object[_0x42230f(0x139)](_0x3e0970)){if(_0x4a4880===null)delete _0x5bafa1[_0x1ef530];else _0x4d9f5c[_0x42230f(0x14e)](_0x4a4880,undefined)&&(_0x5bafa1[_0x1ef530]=_0x4a4880);}_0x3a1505[_0x28bd6b]=_0x5bafa1;continue;}_0x3a1505[_0x28bd6b]=_0x5bd592;}return _0x3a1505;}function _0x5717(_0x5cde0f,_0x176655){_0x5cde0f=_0x5cde0f-0x135;const _0x19d00f=_0x19d0();let _0x571762=_0x19d00f[_0x5cde0f];return _0x571762;}function asRecord(_0x371321){return _0x371321&&typeof _0x371321==='object'&&!Array['isArray'](_0x371321)?_0x371321:undefined;}function setByKeyPath(_0x471758,_0x50625a,_0x56c853){const _0xe5cfab=_0x5717,_0x62d7c6={'TJlHA':function(_0x124362,_0x3b0532){return _0x124362<_0x3b0532;},'DZGbf':'object'},_0x552e23=_0x50625a[_0xe5cfab(0x14a)]('.');let _0x1ce8c9=_0x471758;for(let _0xb2f74e=0x0;_0x62d7c6['TJlHA'](_0xb2f74e,_0x552e23['length']-0x1);_0xb2f74e++){const _0x17ed9d=_0x552e23[_0xb2f74e],_0x504c28=_0x1ce8c9[_0x17ed9d];(!_0x504c28||typeof _0x504c28!==_0x62d7c6['DZGbf']||Array[_0xe5cfab(0x14b)](_0x504c28))&&(_0x1ce8c9[_0x17ed9d]={}),_0x1ce8c9=_0x1ce8c9[_0x17ed9d];}_0x1ce8c9[_0x552e23[_0x552e23[_0xe5cfab(0x13c)]-0x1]]=_0x56c853;}function deleteByKeyPath(_0x36369c,_0x1113aa){const _0x3c662e=_0x5717,_0x13f50e={'PIiOi':function(_0x535c43,_0x32b77f){return _0x535c43<_0x32b77f;},'xZwAG':function(_0x50189f,_0x2a03b5){return _0x50189f-_0x2a03b5;}},_0x1ab0c0=_0x1113aa['split']('.');let _0x2777b6=_0x36369c;for(let _0x2dac89=0x0;_0x13f50e['PIiOi'](_0x2dac89,_0x1ab0c0['length']-0x1);_0x2dac89++){const _0x257da1=_0x1ab0c0[_0x2dac89],_0x52d081=_0x2777b6[_0x257da1];if(!_0x52d081||typeof _0x52d081!=='object'||Array[_0x3c662e(0x14b)](_0x52d081))return![];_0x2777b6=_0x52d081;}const _0x359f8c=_0x1ab0c0[_0x13f50e['xZwAG'](_0x1ab0c0['length'],0x1)];if(!(_0x359f8c in _0x2777b6))return![];return delete _0x2777b6[_0x359f8c],!![];}
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 +1 @@
1
- function _0xda2a(_0x3f3719,_0x138892){_0x3f3719=_0x3f3719-0xd1;const _0x1dd57e=_0x1dd5();let _0xda2afa=_0x1dd57e[_0x3f3719];return _0xda2afa;}(function(_0x174381,_0x5586a7){const _0x2ba340=_0xda2a,_0xc45f42=_0x174381();while(!![]){try{const _0xfb2ee4=parseInt(_0x2ba340(0xdc))/0x1+-parseInt(_0x2ba340(0xdd))/0x2+-parseInt(_0x2ba340(0xd8))/0x3+-parseInt(_0x2ba340(0xd9))/0x4+parseInt(_0x2ba340(0xd1))/0x5*(-parseInt(_0x2ba340(0xd5))/0x6)+-parseInt(_0x2ba340(0xdb))/0x7*(parseInt(_0x2ba340(0xde))/0x8)+parseInt(_0x2ba340(0xe0))/0x9*(parseInt(_0x2ba340(0xd2))/0xa);if(_0xfb2ee4===_0x5586a7)break;else _0xc45f42['push'](_0xc45f42['shift']());}catch(_0x3d05b6){_0xc45f42['push'](_0xc45f42['shift']());}}}(_0x1dd5,0xe91f4));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x1dd5(){const _0x38f0ce=['warn','7gzJsdm','619079BcLIbp','1420178TiPrEf','64360UhJooP','vkpar','9ARwpEW','444915MKjBth','49036810pbZphf','feyfy','utf-8','90xrufQO','model','XnTxw','3055821ldXHAj','5985624sYBGiF'];_0x1dd5=function(){return _0x38f0ce;};return _0x1dd5();}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x185504=_0xda2a,_0x2b67e4={'XnTxw':function(_0x2624ea){return _0x2624ea();},'feyfy':'config.json'};return join(_0x2b67e4[_0x185504(0xd7)](getRangerDir),_0x2b67e4[_0x185504(0xd3)]);}export async function loadRangerConfig(){const _0xab643f=_0xda2a,_0x4881a1={'beURN':function(_0x13f23d){return _0x13f23d();},'qOVKq':function(_0x5dca9d,_0x159dc2){return _0x5dca9d(_0x159dc2);},'rgiTc':function(_0x513d03,_0x3de4b9){return _0x513d03!==_0x3de4b9;},'vkpar':function(_0x5aedb0,_0xec1401){return _0x5aedb0===_0xec1401;}},_0x41b3e4=_0x4881a1['beURN'](getRangerConfigPath);if(!_0x4881a1['qOVKq'](existsSync,_0x41b3e4))return{};try{const _0x1a150e=await readFile(_0x41b3e4,_0xab643f(0xd4)),_0x3605d7=JSON['parse'](_0x1a150e);if(!_0x3605d7||_0x4881a1['rgiTc'](typeof _0x3605d7,'object')||Array['isArray'](_0x3605d7))return{};const _0x324b2d={},_0x311288=_0x3605d7[_0xab643f(0xd6)];return _0x4881a1[_0xab643f(0xdf)](typeof _0x311288,'string')&&(_0x324b2d['model']=_0x311288),_0x324b2d;}catch(_0x1a3556){const _0x715af5=_0x1a3556 instanceof Error?_0x1a3556['message']:_0x4881a1['qOVKq'](String,_0x1a3556);return console[_0xab643f(0xda)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x41b3e4+':\x20'+_0x715af5),{};}}
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 +1 @@
1
- function _0x2b5c(){const _0x119189=['87741ckuohc','.git','7FoVUtV','.ranger','4lGXMwI','9023528iSDhuL','12768492cSANpR','LWTbo','5712324PxhoeZ','root','KjYVr','22ZGCNFU','cwd','11sFnOyp','72183vwTjsM','UDJDs','1400LXspJr','8702798EYXExN','3435603zplpuu','AdsGe','5biWNOC','ynNLp','sWYON'];_0x2b5c=function(){return _0x119189;};return _0x2b5c();}(function(_0x498cbf,_0x50c95b){const _0x29d7a0=_0x140b,_0x2d21d4=_0x498cbf();while(!![]){try{const _0x16b8e3=parseInt(_0x29d7a0(0xf3))/0x1*(parseInt(_0x29d7a0(0xf0))/0x2)+-parseInt(_0x29d7a0(0xf7))/0x3*(parseInt(_0x29d7a0(0xe9))/0x4)+parseInt(_0x29d7a0(0xf9))/0x5*(parseInt(_0x29d7a0(0xed))/0x6)+-parseInt(_0x29d7a0(0xfe))/0x7*(-parseInt(_0x29d7a0(0xea))/0x8)+-parseInt(_0x29d7a0(0xfc))/0x9*(parseInt(_0x29d7a0(0xf5))/0xa)+-parseInt(_0x29d7a0(0xf2))/0xb*(-parseInt(_0x29d7a0(0xeb))/0xc)+-parseInt(_0x29d7a0(0xf6))/0xd;if(_0x16b8e3===_0x50c95b)break;else _0x2d21d4['push'](_0x2d21d4['shift']());}catch(_0x51233f){_0x2d21d4['push'](_0x2d21d4['shift']());}}}(_0x2b5c,0xb930e));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x140b(_0x4b8277,_0x56261b){_0x4b8277=_0x4b8277-0xe8;const _0x2b5ce2=_0x2b5c();let _0x140b89=_0x2b5ce2[_0x4b8277];return _0x140b89;}import{homedir}from'os';export function getRangerRoot(){const _0xe78449=_0x140b,_0x44bbb1={'uHkuZ':function(_0x17ed98,_0x2be659){return _0x17ed98(_0x2be659);},'ynNLp':_0xe78449(0xe8),'AdsGe':function(_0x2046a6,_0x5688d1){return _0x2046a6(_0x5688d1);},'qyrSz':function(_0x1406af,_0x106c65,_0x49b5bc){return _0x1406af(_0x106c65,_0x49b5bc);}};let _0x4a5842=process[_0xe78449(0xf1)]();const _0x29520d=parse(_0x4a5842)[_0xe78449(0xee)];while(_0x4a5842!==_0x29520d){if(_0x44bbb1['uHkuZ'](existsSync,join(_0x4a5842,_0x44bbb1[_0xe78449(0xfa)])))return _0x4a5842;_0x4a5842=_0x44bbb1['uHkuZ'](dirname,_0x4a5842);}if(_0x44bbb1[_0xe78449(0xf8)](existsSync,_0x44bbb1['qyrSz'](join,_0x29520d,'.ranger')))return _0x29520d;const _0x44efbd=findGitRoot();if(_0x44efbd)return _0x44efbd;return process['cwd']();}export function getRangerDir(){const _0x4d9797=_0x140b,_0x20d14f={'CdPSq':function(_0x1ac099){return _0x1ac099();},'LWTbo':'.ranger'};return join(_0x20d14f['CdPSq'](getRangerRoot),_0x20d14f[_0x4d9797(0xec)]);}export function findGitRoot(){const _0x34de53=_0x140b,_0x408362={'wVMie':function(_0x44057b,_0x34fc5c){return _0x44057b!==_0x34fc5c;},'UDJDs':function(_0x11c4ab,_0x21a64c,_0x5ae5db){return _0x11c4ab(_0x21a64c,_0x5ae5db);},'gNLyH':function(_0x27b977,_0x4d78dc){return _0x27b977(_0x4d78dc);},'KjYVr':function(_0x2097ac,_0x2be1bb,_0x112397){return _0x2097ac(_0x2be1bb,_0x112397);},'sWYON':'.git'};let _0x124ca=process['cwd']();const _0x5efc4c=parse(_0x124ca)['root'];while(_0x408362['wVMie'](_0x124ca,_0x5efc4c)){if(existsSync(_0x408362[_0x34de53(0xf4)](join,_0x124ca,_0x34de53(0xfd))))return _0x124ca;_0x124ca=dirname(_0x124ca);}if(_0x408362['gNLyH'](existsSync,_0x408362[_0x34de53(0xef)](join,_0x5efc4c,_0x408362[_0x34de53(0xfb)])))return _0x5efc4c;return null;}export function getRangerHomeDir(){const _0x267f78=_0x140b,_0x486349={'sSIpE':function(_0x3ac404,_0x32b5e8,_0x296d9d){return _0x3ac404(_0x32b5e8,_0x296d9d);},'SxdBK':function(_0x2c7cd9){return _0x2c7cd9();},'CQzgp':_0x267f78(0xe8)};return _0x486349['sSIpE'](join,_0x486349['SxdBK'](homedir),_0x486349['CQzgp']);}
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 +1 @@
1
- (function(_0x3cabb6,_0x11d586){const _0x142e63=_0x2491,_0x4a2e95=_0x3cabb6();while(!![]){try{const _0x3ad94e=parseInt(_0x142e63(0xc4))/0x1+-parseInt(_0x142e63(0xde))/0x2*(-parseInt(_0x142e63(0xd8))/0x3)+parseInt(_0x142e63(0xef))/0x4*(-parseInt(_0x142e63(0xc0))/0x5)+-parseInt(_0x142e63(0xda))/0x6*(parseInt(_0x142e63(0xeb))/0x7)+-parseInt(_0x142e63(0xc2))/0x8+parseInt(_0x142e63(0xd0))/0x9+parseInt(_0x142e63(0xcc))/0xa;if(_0x3ad94e===_0x11d586)break;else _0x4a2e95['push'](_0x4a2e95['shift']());}catch(_0x3c656c){_0x4a2e95['push'](_0x4a2e95['shift']());}}}(_0x1d05,0x7a96a));import{existsSync}from'fs';import _0x29e424 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';function _0x2491(_0x1ae238,_0x433ccf){_0x1ae238=_0x1ae238-0xbe;const _0x1d057e=_0x1d05();let _0x2491a1=_0x1d057e[_0x1ae238];return _0x2491a1;}import{readActiveProfileName}from'./activeProfile.js';function _0x1d05(){const _0x3736e3=['54501CWLgTP','Local\x20profile','762vOsKUu','OVaJS','fQAme','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','46beReed','kuCDE','SAweO','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','Profile\x20\x22','XTLBM','pKDtn','bQTOB','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','SOuCD','envBaseUrl','status','nTNdr','10612jruWJM','length','env','RANGER_SESSION_STATE_PATH','1717872UbcyaP','`ranger\x20profile\x20add`\x20to\x20create\x20one.','cloud','10BbBkWX','list','3640256iXnSNP','IScrK','624PVHIyO','shynf','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','url','startPath','local','string','log','11427400GhLRze','cdpEndpoint','profile','authPath','4026753qbbIxo','wccgS','settings','baseUrl','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','name','domains'];_0x1d05=function(){return _0x3736e3;};return _0x1d05();}export async function resolveProfileContext(_0x806909){const _0x7fdcea=_0x2491,_0x3992c3={'shynf':function(_0x5b71e1){return _0x5b71e1();},'wccgS':function(_0xd31ed5,_0x56ba7e){return _0xd31ed5+_0x56ba7e;},'pKDtn':function(_0x43a220,_0x7ec8a2){return _0x43a220+_0x7ec8a2;},'kuCDE':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','TaqmE':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','isgYK':function(_0x5bf5e0,_0x5ae8ec){return _0x5bf5e0(_0x5ae8ec);},'bQTOB':function(_0x471e41,_0x41a11f){return _0x471e41(_0x41a11f);},'QOoqq':function(_0xebca67,_0x53320f){return _0xebca67 instanceof _0x53320f;},'ugztb':function(_0x32dfbf,_0x22ba1d){return _0x32dfbf===_0x22ba1d;},'nTNdr':function(_0x549637,_0x50aa59){return _0x549637&&_0x50aa59;},'oaQLE':_0x7fdcea(0xdd),'SOuCD':'source','ijfUu':'Cloud\x20profile\x20(recommended)','ajCZc':_0x7fdcea(0xbf),'XTLBM':function(_0x1216b7,_0x5796a9){return _0x1216b7(_0x5796a9);},'ZdUdM':function(_0x2d74d9,_0xcb5127,_0x5ed0b7){return _0x2d74d9(_0xcb5127,_0x5ed0b7);},'OVaJS':function(_0x1c30e4,_0x35a02d){return _0x1c30e4(_0x35a02d);},'IScrK':function(_0x15fc18,_0x2e446a){return _0x15fc18(_0x2e446a);}},_0x60a193=_0x806909[_0x7fdcea(0xce)];let _0x3c77af=_0x806909['profile']??await readActiveProfileName(),_0x5694cd=null;if(!_0x3c77af&&process[_0x7fdcea(0xed)]['RANGER_TEST_USERNAME']){const _0x420953=await _0x3992c3[_0x7fdcea(0xc5)](resolveAdHocProfile);_0x420953&&(_0x3c77af=_0x420953['name'],_0x5694cd=_0x420953['profile']);}if(!_0x3c77af)try{const _0x3f0333=await listCloudProfiles();if(_0x3f0333[_0x7fdcea(0xec)]===0x1){const _0xdb3af8=_0x3f0333[0x0];_0x3c77af=_0xdb3af8['name'],console[_0x7fdcea(0xcb)](_0x7fdcea(0xd5)+_0xdb3af8[_0x7fdcea(0xd6)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x3c77af)throw new Error(_0x3992c3[_0x7fdcea(0xd1)](_0x3992c3[_0x7fdcea(0xe4)](_0x3992c3['pKDtn']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x3992c3[_0x7fdcea(0xdf)])+_0x7fdcea(0xe1),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),_0x3992c3['TaqmE']));const _0x37ab15=_0x3992c3['isgYK'](getEnvDir,_0x3c77af),_0x2bee08=_0x3992c3['bQTOB'](existsSync,_0x37ab15);let _0x124437=_0x5694cd,_0x1559a5=![];if(!_0x124437)try{_0x124437=await fetchCloudProfile(_0x3c77af);if(!_0x124437)_0x1559a5=!![];}catch(_0x1520c6){_0x3992c3['QOoqq'](_0x1520c6,ApiError)&&_0x3992c3['ugztb'](_0x1520c6[_0x7fdcea(0xe9)],0x194)&&(_0x1559a5=!![]);}if(_0x3992c3[_0x7fdcea(0xea)](_0x60a193,_0x1559a5)&&!_0x2bee08&&!_0x124437)throw new Error('Profile\x20\x22'+_0x60a193+_0x7fdcea(0xe6)+_0x3992c3['oaQLE']+_0x7fdcea(0xbe));if(_0x124437&&_0x2bee08){let _0x5d571e=!![];if(isInteractive()){const {source:_0x1aecd4}=await _0x29e424['prompt']([{'type':_0x7fdcea(0xc1),'name':_0x3992c3[_0x7fdcea(0xe7)],'message':_0x7fdcea(0xe2)+_0x3c77af+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x3992c3['ijfUu'],'value':'cloud'},{'name':_0x7fdcea(0xd9),'value':_0x7fdcea(0xc9)}],'default':'cloud'}]);_0x5d571e=_0x3992c3['ugztb'](_0x1aecd4,_0x3992c3['ajCZc']);}if(!_0x5d571e)_0x124437=null;}const _0x37318d=readProfileOverrides(process['cwd'](),_0x3c77af);let _0x33431e=null,_0x1ff3a1,_0xfcdd91,_0x3b5458,_0x6fd28,_0x2ec204=null,_0x13d6f6;const _0x5ab405=_0x3992c3[_0x7fdcea(0xe3)](expandOverrides,_0x37318d);if(_0x124437){_0x33431e=_0x124437;const _0x5d854a=_0x124437[_0x7fdcea(0xd2)]??{},_0x75c96b=_0x3992c3['ZdUdM'](mergeCloudProfileSettings,_0x5d854a,_0x37318d??undefined),_0x1e1e6f={..._0x124437,'settings':_0x75c96b},_0x1c957f=process['env'][_0x7fdcea(0xee)];if(_0x1c957f){if(!existsSync(_0x1c957f))throw new Error('RANGER_SESSION_STATE_PATH='+_0x1c957f+'\x20does\x20not\x20exist.');_0x1ff3a1=_0x1c957f,_0xfcdd91=resolveEnvVars(_0x75c96b),_0x3b5458=_0x3992c3['isgYK'](Boolean,_0xfcdd91['cdpEndpoint']),_0x2ec204={'baseUrl':expandString(_0x5d854a[_0x7fdcea(0xd3)]),'startPath':_0x3992c3['OVaJS'](expandString,_0x5d854a[_0x7fdcea(0xc8)])};}else{const _0x1a414d=await resolveCloudProfileSession(_0x1e1e6f);_0x1ff3a1=_0x1a414d[_0x7fdcea(0xcf)],_0xfcdd91=_0x3992c3[_0x7fdcea(0xe3)](resolveEnvVars,_0x75c96b),_0x3b5458=_0x3992c3[_0x7fdcea(0xe5)](Boolean,_0xfcdd91['cdpEndpoint']),_0x2ec204={'baseUrl':_0x3992c3[_0x7fdcea(0xdb)](expandString,_0x5d854a[_0x7fdcea(0xd3)]),'startPath':_0x3992c3[_0x7fdcea(0xc3)](expandString,_0x5d854a['startPath'])},_0x13d6f6=_0x1a414d['resolvedEnv']?.[_0x7fdcea(0xd7)]?.[0x0];}}else{if(!_0x2bee08)throw new Error('Profile\x20\x22'+_0x3c77af+_0x7fdcea(0xd4)+_0x3c77af);const _0x5be47d=await loadSettings(_0x3c77af);_0xfcdd91=resolveEnvVars(_0x5be47d),_0x3b5458=Boolean(_0xfcdd91[_0x7fdcea(0xcd)]),_0x6fd28=_0xfcdd91[_0x7fdcea(0xd3)];}const _0x2fc745=readUrlEnvVars(),_0x3f2d3d=resolveProfileUrl({'flagBaseUrl':_0x806909[_0x7fdcea(0xd3)],'flagStartPath':_0x806909[_0x7fdcea(0xc8)],'envBaseUrl':_0x2fc745[_0x7fdcea(0xe8)],'envStartPath':_0x2fc745['envStartPath'],'localSettingsBaseUrl':_0x6fd28,'projectOverrides':_0x5ab405,'cloudSettings':_0x2ec204,'authEnvironmentDomain':_0x13d6f6}),_0x40ee67=_0x3f2d3d[_0x7fdcea(0xc7)]??_0x3f2d3d['baseUrl'];if(_0x3992c3['nTNdr'](!_0x40ee67,!_0x3b5458))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x3c77af+_0x7fdcea(0xc6)+_0x3c77af+'\x20baseUrl\x20<url>');return{'activeProfile':_0x3c77af,'resolvedCloudProfile':_0x33431e,'cloudAuthPath':_0x1ff3a1,'resolvedSettings':_0xfcdd91,'isCdpMode':_0x3b5458,'url':_0x40ee67,'startPath':_0x3f2d3d['startPath']};}function expandString(_0x35250c){const _0x26f66a=_0x2491,_0x52670e={'uTsKa':function(_0x4ea984,_0x4559f6){return _0x4ea984!==_0x4559f6;},'zsuTI':_0x26f66a(0xca)};if(_0x52670e['uTsKa'](typeof _0x35250c,_0x52670e['zsuTI']))return _0x35250c;return resolveEnvVars(_0x35250c);}function expandOverrides(_0x53faf9){const _0x485479=_0x2491,_0x277fac={'VAlqX':function(_0x2b88be,_0x59db23){return _0x2b88be(_0x59db23);},'Rwhps':function(_0x461dc1,_0xd06a0e){return _0x461dc1===_0xd06a0e;},'fQAme':'string','SAweO':function(_0x121ffb,_0x2a45dc){return _0x121ffb(_0x2a45dc);}};if(!_0x53faf9)return _0x53faf9;const _0x35f461={..._0x53faf9};return typeof _0x35f461[_0x485479(0xd3)]===_0x485479(0xca)&&(_0x35f461['baseUrl']=_0x277fac['VAlqX'](resolveEnvVars,_0x35f461['baseUrl'])),_0x277fac['Rwhps'](typeof _0x35f461[_0x485479(0xc8)],_0x277fac[_0x485479(0xdc)])&&(_0x35f461[_0x485479(0xc8)]=_0x277fac[_0x485479(0xe0)](resolveEnvVars,_0x35f461['startPath'])),_0x35f461;}
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 +1 @@
1
- const _0x108b80=_0x1fc1;(function(_0x46448b,_0x165538){const _0x2b89c9=_0x1fc1,_0x43711e=_0x46448b();while(!![]){try{const _0x3cd974=-parseInt(_0x2b89c9(0x1a9))/0x1*(-parseInt(_0x2b89c9(0x1b1))/0x2)+-parseInt(_0x2b89c9(0x1ae))/0x3+-parseInt(_0x2b89c9(0x19e))/0x4*(-parseInt(_0x2b89c9(0x19a))/0x5)+parseInt(_0x2b89c9(0x1ac))/0x6+-parseInt(_0x2b89c9(0x1aa))/0x7*(parseInt(_0x2b89c9(0x1b4))/0x8)+-parseInt(_0x2b89c9(0x1af))/0x9*(-parseInt(_0x2b89c9(0x19c))/0xa)+-parseInt(_0x2b89c9(0x19d))/0xb;if(_0x3cd974===_0x165538)break;else _0x43711e['push'](_0x43711e['shift']());}catch(_0x1c516e){_0x43711e['push'](_0x43711e['shift']());}}}(_0xd715,0xf0945));function firstDefined(..._0x197929){const _0x4233f9={'UzhyV':function(_0x12ad22,_0x5462f7){return _0x12ad22!==_0x5462f7;}};for(const _0x4d9d83 of _0x197929){if(_0x4d9d83!==undefined&&_0x4d9d83!==null&&_0x4233f9['UzhyV'](_0x4d9d83,''))return _0x4d9d83;}return undefined;}function _0xd715(){const _0x376d0f=['SFXjT','djrzM','startPath','DTUcW','test','slice','10nxvyGP','3049193CbkkkZ','DstZx','9982986QOVtsq','flagBaseUrl','361386yLqAJM','3465otEZLx','RANGER_START_PATH','171788wxvCTE','authEnvironmentDomain','envStartPath','8mgDhMK','env','TghJS','projectOverrides','1055mMEdaC','AdHqj','47050ukVOaF','45623083uuImFX','25684LNvCjL','flagStartPath','baseUrl','endsWith','cloudSettings'];_0xd715=function(){return _0x376d0f;};return _0xd715();}function normalizeAuthEnvironmentDomain(_0x424e47){const _0x55a707=_0x1fc1;if(!_0x424e47)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x55a707(0x1a7)](_0x424e47))return _0x424e47;return'https://'+_0x424e47;}function _0x1fc1(_0x549833,_0x42b150){_0x549833=_0x549833-0x198;const _0xd71583=_0xd715();let _0x1fc18a=_0xd71583[_0x549833];return _0x1fc18a;}export function resolveBaseUrl(_0x3914f6){const _0x477bc0=_0x1fc1,_0x13ece1={'GuMpy':function(_0x5bed8d,_0x7b2a6){return _0x5bed8d in _0x7b2a6;},'SFXjT':function(_0xcfe05c,_0x265308){return _0xcfe05c===_0x265308;}},_0x4a3bd0=_0x3914f6[_0x477bc0(0x199)],_0x30e7c8=!!_0x4a3bd0&&_0x13ece1['GuMpy'](_0x477bc0(0x1a0),_0x4a3bd0),_0x24ee1a=_0x4a3bd0?.[_0x477bc0(0x1a0)],_0x3c12dd=!(_0x30e7c8&&_0x13ece1[_0x477bc0(0x1a3)](_0x24ee1a,null));return firstDefined(_0x3914f6[_0x477bc0(0x1ad)],_0x3914f6['envBaseUrl'],_0x3914f6['localSettingsBaseUrl'],_0x13ece1[_0x477bc0(0x1a3)](typeof _0x24ee1a,'string')?_0x24ee1a:undefined,_0x3c12dd?_0x3914f6['cloudSettings']?.['baseUrl']:undefined,_0x3c12dd?normalizeAuthEnvironmentDomain(_0x3914f6[_0x477bc0(0x1b2)]):undefined);}export function resolveStartPath(_0x55833f){const _0x34adfa=_0x1fc1,_0x37bc47={'djrzM':function(_0x483b9e,_0x48053c){return _0x483b9e in _0x48053c;},'AdHqj':function(_0xd27719,_0x271197){return _0xd27719===_0x271197;},'TghJS':function(_0x2d5c67,_0x689133,_0x2a7c83,_0x3a5398,_0x55d034){return _0x2d5c67(_0x689133,_0x2a7c83,_0x3a5398,_0x55d034);},'DTUcW':'string'},_0x4e0f6e=_0x55833f[_0x34adfa(0x199)],_0x609b0c=!!_0x4e0f6e&&_0x37bc47[_0x34adfa(0x1a4)](_0x34adfa(0x1a5),_0x4e0f6e),_0x3eab8c=_0x4e0f6e?.['startPath'],_0x578cfa=!(_0x609b0c&&_0x37bc47[_0x34adfa(0x19b)](_0x3eab8c,null));return _0x37bc47[_0x34adfa(0x198)](firstDefined,_0x55833f[_0x34adfa(0x19f)],_0x55833f[_0x34adfa(0x1b3)],typeof _0x3eab8c===_0x37bc47[_0x34adfa(0x1a6)]?_0x3eab8c:undefined,_0x578cfa?_0x55833f[_0x34adfa(0x1a2)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x504f74,_0x5d2269){const _0x5b628f=_0x1fc1,_0x567091={'Waabk':function(_0x10c211,_0x57b9a3){return _0x10c211+_0x57b9a3;},'DstZx':function(_0x3115fb,_0x334dd6){return _0x3115fb+_0x334dd6;}};if(!_0x504f74)return undefined;if(!_0x5d2269)return _0x504f74;const _0x41dddd=_0x504f74[_0x5b628f(0x1a1)]('/')?_0x504f74[_0x5b628f(0x1a8)](0x0,-0x1):_0x504f74,_0x573b75=_0x5d2269['startsWith']('/')?_0x5d2269:_0x567091['Waabk']('/',_0x5d2269);return _0x567091[_0x5b628f(0x1ab)](_0x41dddd,_0x573b75);}export function resolveProfileUrl(_0x2eafba){const _0x1cb1f4=resolveBaseUrl(_0x2eafba),_0x2e1a93=resolveStartPath(_0x2eafba);return{'baseUrl':_0x1cb1f4,'startPath':_0x2e1a93,'url':joinBaseAndPath(_0x1cb1f4,_0x2e1a93)};}export function readUrlEnvVars(_0x57a834=process[_0x108b80(0x1b5)]){const _0x4c5825=_0x108b80;return{'envBaseUrl':_0x57a834['RANGER_BASE_URL'],'envStartPath':_0x57a834[_0x4c5825(0x1b0)]};}
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 +1 @@
1
- function _0x1dcf(){const _0x3b5bad=['2077272NMSRqp','7qkWyxI','982990QNYPmy','baseDelayMs','1159078IBNwdI','DKbsp','ms...','QnghS','12NiMfHj','MUnqY','1378664CpeaiA','1928152NhaxcP','33953ZwkEJB','\x20failed\x20(attempt\x20','993378dpopwm'];_0x1dcf=function(){return _0x3b5bad;};return _0x1dcf();}(function(_0xf049e7,_0x879a4d){const _0x4b74c6=_0x5a42,_0x51c30f=_0xf049e7();while(!![]){try{const _0x2ba496=parseInt(_0x4b74c6(0xc7))/0x1+-parseInt(_0x4b74c6(0xce))/0x2+parseInt(_0x4b74c6(0xc9))/0x3+-parseInt(_0x4b74c6(0xc5))/0x4+parseInt(_0x4b74c6(0xcc))/0x5*(parseInt(_0x4b74c6(0xd2))/0x6)+-parseInt(_0x4b74c6(0xcb))/0x7*(-parseInt(_0x4b74c6(0xc6))/0x8)+parseInt(_0x4b74c6(0xca))/0x9;if(_0x2ba496===_0x879a4d)break;else _0x51c30f['push'](_0x51c30f['shift']());}catch(_0x136db3){_0x51c30f['push'](_0x51c30f['shift']());}}}(_0x1dcf,0x4aae9));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x5a42(_0x5bdcec,_0x5f0dc7){_0x5bdcec=_0x5bdcec-0xc5;const _0x1dcf28=_0x1dcf();let _0x5a42be=_0x1dcf28[_0x5bdcec];return _0x5a42be;}export async function withRetry(_0x39215c,_0x7213a9){const _0xe2c04c=_0x5a42,_0x22490e={'QnghS':function(_0x123913,_0x339aba){return _0x123913(_0x339aba);},'DKbsp':function(_0x108804,_0x2a5c6a){return _0x108804<_0x2a5c6a;},'MUnqY':function(_0x26b841,_0x20f98c){return _0x26b841+_0x20f98c;}},_0xb73311=_0x7213a9?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x1e93bd=_0x7213a9?.[_0xe2c04c(0xcd)]??DEFAULT_BASE_DELAY_MS;let _0x1cca23;for(let _0x411f51=0x0;_0x411f51<=_0xb73311;_0x411f51++){try{return await _0x39215c();}catch(_0x44ae84){_0x1cca23=_0x44ae84 instanceof Error?_0x44ae84:new Error(_0x22490e[_0xe2c04c(0xd1)](String,_0x44ae84));if(_0x22490e[_0xe2c04c(0xcf)](_0x411f51,_0xb73311)){const _0x2663d4=_0x1e93bd*Math['pow'](0x2,_0x411f51);_0x7213a9?.['label']&&console['error'](_0x7213a9['label']+_0xe2c04c(0xc8)+(_0x411f51+0x1)+'/'+_0x22490e[_0xe2c04c(0xd3)](_0xb73311,0x1)+'),\x20retrying\x20in\x20'+_0x2663d4+_0xe2c04c(0xd0)),await new Promise(_0x3090e1=>setTimeout(_0x3090e1,_0x2663d4));}}}throw _0x1cca23;}
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 +1 @@
1
- const _0x4b0824=_0x5351;(function(_0x564d09,_0x3d1e3c){const _0x1880f4=_0x5351,_0x3b3112=_0x564d09();while(!![]){try{const _0xa23e49=parseInt(_0x1880f4(0x181))/0x1*(-parseInt(_0x1880f4(0x175))/0x2)+parseInt(_0x1880f4(0x163))/0x3*(parseInt(_0x1880f4(0x151))/0x4)+-parseInt(_0x1880f4(0x16f))/0x5+-parseInt(_0x1880f4(0x161))/0x6*(-parseInt(_0x1880f4(0x15a))/0x7)+parseInt(_0x1880f4(0x16b))/0x8+-parseInt(_0x1880f4(0x157))/0x9+parseInt(_0x1880f4(0x16d))/0xa;if(_0xa23e49===_0x3d1e3c)break;else _0x3b3112['push'](_0x3b3112['shift']());}catch(_0x6b8f99){_0x3b3112['push'](_0x3b3112['shift']());}}}(_0x28ed,0xc0692));import*as _0x40578d from'fs';import*as _0x494f09 from'path';function _0x28ed(){const _0x57e6f6=['3741488DlOOkW','NOVcz','19487280RSWAkk','XNJUK','2933855rUABgy','YhTRW','Anomr','olnZI','fymwe','dknHf','10xHZigD','dzLIe','sessions','main','VtHee','stringify','now','mkdirSync','prompted','parse','tBWAs','master','154263toXYxE','featureId','VwqRs','.ranger_cache.json','212tzoVkX','registeredAt','FrNgL','adMED','branches','trim','5636223nKRfhC','currentBranch','OBJhl','14315PjjJgG','ObrZu','writeFileSync','Ogtpa','ftIsu','iAjjX','lastEnabledSessionClearedAt','396IjsVlH','git\x20rev-parse\x20--abbrev-ref\x20HEAD','12513KBWgDL','pipe','dirname','tdwBR','UnsUY','bHeAI','LBqMU','enabled'];_0x28ed=function(){return _0x57e6f6;};return _0x28ed();}import*as _0x180567 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x494f09['join'](_0x180567['homedir'](),'.claude',_0x4b0824(0x184));function _0x5351(_0x40bb56,_0x1b485){_0x40bb56=_0x40bb56-0x151;const _0x28ed4c=_0x28ed();let _0x535151=_0x28ed4c[_0x40bb56];return _0x535151;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x15cfee=_0x4b0824;try{if(_0x40578d['existsSync'](CACHE_FILE)){const _0x4690f4=JSON[_0x15cfee(0x17e)](_0x40578d['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x4690f4['sessions']||{},'branches':_0x4690f4[_0x15cfee(0x155)]||{},'lastEnabledSessionClearedAt':_0x4690f4[_0x15cfee(0x160)]};}}catch{}return createEmptyCache();}function saveCache(_0x14208c){const _0xca028b=_0x4b0824;try{const _0x3e2bfa=_0x494f09[_0xca028b(0x165)](CACHE_FILE);!_0x40578d['existsSync'](_0x3e2bfa)&&_0x40578d[_0xca028b(0x17c)](_0x3e2bfa,{'recursive':!![]}),_0x40578d[_0xca028b(0x15c)](CACHE_FILE,JSON[_0xca028b(0x17a)](_0x14208c,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58be8d=_0x4b0824,_0x4bb43e={'dknHf':function(_0x5dbd22,_0x5f2b42,_0x20de43){return _0x5dbd22(_0x5f2b42,_0x20de43);},'FrNgL':_0x58be8d(0x164),'DErIA':function(_0x5b7ebd,_0x1582b8){return _0x5b7ebd===_0x1582b8;}};try{const _0x1ca2c2=_0x4bb43e[_0x58be8d(0x174)](execSync,_0x58be8d(0x162),{'encoding':'utf-8','stdio':[_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e['FrNgL']]})[_0x58be8d(0x156)]();if(!_0x1ca2c2||_0x4bb43e['DErIA'](_0x1ca2c2,'HEAD'))return null;return _0x1ca2c2;}catch{return null;}}export function enableBranch(_0x2a950a){const _0x25a4fa=_0x4b0824,_0x3aba52=loadCache();_0x3aba52[_0x25a4fa(0x155)][_0x2a950a]=!![],saveCache(_0x3aba52);}export function disableBranch(_0x48d85d){const _0x3ae8c7={'WJIMe':function(_0x5a3e25){return _0x5a3e25();},'PmCmQ':function(_0x3ceaaf,_0x3ddbe4){return _0x3ceaaf(_0x3ddbe4);}},_0x2fa2c6=_0x3ae8c7['WJIMe'](loadCache);delete _0x2fa2c6['branches'][_0x48d85d],_0x3ae8c7['PmCmQ'](saveCache,_0x2fa2c6);}export function isBranchEnabled(_0x3eee5f){const _0x2d6cb1=_0x4b0824,_0x14970f={'sSeQz':function(_0x3bc522){return _0x3bc522();},'OBJhl':function(_0x41d746,_0x42d155){return _0x41d746===_0x42d155;}},_0x511933=_0x14970f['sSeQz'](loadCache);return _0x14970f[_0x2d6cb1(0x159)](_0x511933[_0x2d6cb1(0x155)][_0x3eee5f],!![]);}function getOrCreateSession(_0x140fb0,_0x41197d){const _0x339471=_0x4b0824;return!_0x140fb0['sessions'][_0x41197d]&&(_0x140fb0[_0x339471(0x177)][_0x41197d]={}),_0x140fb0['sessions'][_0x41197d];}export function enableSession(_0x4d83e2){const _0x5d1283=_0x4b0824,_0xa63c56={'NOVcz':function(_0xee481e,_0x15b637,_0x4264ed){return _0xee481e(_0x15b637,_0x4264ed);},'BqdsA':function(_0x5973c3,_0x45b99a){return _0x5973c3!==_0x45b99a;}},_0x4a1ddb=loadCache(),_0x11c3a7=_0xa63c56[_0x5d1283(0x16c)](getOrCreateSession,_0x4a1ddb,_0x4d83e2);_0x11c3a7[_0x5d1283(0x16a)]=!![];const _0x526b6d=getCurrentBranch();_0x526b6d&&_0x526b6d!==_0x5d1283(0x178)&&_0xa63c56['BqdsA'](_0x526b6d,_0x5d1283(0x180))&&(_0x4a1ddb[_0x5d1283(0x155)][_0x526b6d]=!![],_0x11c3a7['currentBranch']=_0x526b6d),saveCache(_0x4a1ddb);}export function isSessionEnabled(_0x368dff){const _0x3a0122=_0x4b0824,_0x439d19={'olnZI':function(_0x27d082){return _0x27d082();},'Yhpcd':function(_0x1c9d2a,_0x5c3f05){return _0x1c9d2a===_0x5c3f05;},'VtHee':function(_0x233fd6,_0x2067c1){return _0x233fd6===_0x2067c1;}},_0x35e86b=_0x439d19[_0x3a0122(0x172)](loadCache),_0x51738a=getCurrentBranch();if(!_0x51738a||_0x439d19['Yhpcd'](_0x51738a,_0x3a0122(0x178))||_0x439d19[_0x3a0122(0x179)](_0x51738a,'master'))return _0x35e86b['sessions'][_0x368dff]?.[_0x3a0122(0x16a)]===!![];const _0x81d06=_0x439d19[_0x3a0122(0x179)](_0x35e86b[_0x3a0122(0x155)][_0x51738a],!![]),_0x11ad53=_0x439d19['VtHee'](_0x35e86b[_0x3a0122(0x177)][_0x368dff]?.['enabled'],!![]);return _0x81d06||_0x11ad53;}export function disableSession(_0x130a85){const _0x181940=_0x4b0824,_0x57c9fd={'Ogtpa':function(_0x26e413){return _0x26e413();},'VODgz':function(_0x4f387e,_0x234bfd,_0x5b031d){return _0x4f387e(_0x234bfd,_0x5b031d);},'uiwiJ':function(_0x3083fe,_0x5c036b){return _0x3083fe(_0x5c036b);}},_0x18a9fd=_0x57c9fd[_0x181940(0x15d)](loadCache),_0x58203e=_0x57c9fd['VODgz'](getOrCreateSession,_0x18a9fd,_0x130a85);_0x58203e['enabled']=![],_0x57c9fd['uiwiJ'](saveCache,_0x18a9fd);}export function updateBranchTracking(_0x5e913f){const _0x350c82=_0x4b0824,_0x3d9fab={'UnsUY':function(_0x3e5295,_0x194b8a){return _0x3e5295===_0x194b8a;},'ObrZu':'main','yrPFO':function(_0x3f4f5d,_0x36e76d){return _0x3f4f5d===_0x36e76d;},'Hwvpe':'master'},_0x1119ca=loadCache(),_0x4401d2=_0x1119ca[_0x350c82(0x177)][_0x5e913f];if(!_0x4401d2?.[_0x350c82(0x16a)])return;const _0xe16086=getCurrentBranch();if(!_0xe16086||_0x3d9fab[_0x350c82(0x167)](_0xe16086,_0x3d9fab[_0x350c82(0x15b)])||_0x3d9fab['yrPFO'](_0xe16086,_0x3d9fab['Hwvpe']))return;_0x4401d2['currentBranch']!==_0xe16086&&(_0x1119ca[_0x350c82(0x155)][_0xe16086]=!![],_0x4401d2[_0x350c82(0x158)]=_0xe16086,saveCache(_0x1119ca));}export function initBranchTracking(_0x347b79){const _0x427c2d=_0x4b0824,_0x1e8c26={'VwqRs':function(_0x3c76a6){return _0x3c76a6();},'LBqMU':function(_0x2ff810,_0x36fab2){return _0x2ff810===_0x36fab2;}},_0x3845d5=_0x1e8c26[_0x427c2d(0x183)](loadCache),_0x4b2df9=getCurrentBranch();if(!_0x4b2df9||_0x1e8c26['LBqMU'](_0x4b2df9,_0x427c2d(0x178))||_0x1e8c26[_0x427c2d(0x169)](_0x4b2df9,_0x427c2d(0x180)))return;if(_0x1e8c26[_0x427c2d(0x169)](_0x3845d5['branches'][_0x4b2df9],!![])){const _0x57a948=getOrCreateSession(_0x3845d5,_0x347b79);_0x57a948[_0x427c2d(0x16a)]=!![],_0x57a948[_0x427c2d(0x158)]=_0x4b2df9,saveCache(_0x3845d5);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5c9a37){const _0x8f6477=_0x4b0824,_0x146b3f={'AOqGx':function(_0x55dc88,_0x4e410e){return _0x55dc88(_0x4e410e);}},_0x439a33=loadCache(),_0x4a3a8f=_0x439a33[_0x8f6477(0x177)][_0x5c9a37];_0x4a3a8f?.[_0x8f6477(0x16a)]&&(_0x439a33[_0x8f6477(0x160)]=Date[_0x8f6477(0x17b)](),_0x146b3f['AOqGx'](saveCache,_0x439a33));}export function shouldAutoEnableAfterClear(_0x3b0910){const _0x45a4f5={'PZPMA':function(_0x334956,_0x548a2c){return _0x334956<=_0x548a2c;}};if(_0x3b0910!=='clear')return![];const _0x40f036=loadCache(),_0x3504e6=_0x40f036['lastEnabledSessionClearedAt'];if(!_0x3504e6)return![];const _0x281eb7=Date['now']()-_0x3504e6;return _0x45a4f5['PZPMA'](_0x281eb7,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x25de1a){const _0x432263=_0x4b0824,_0xa45808={'adMED':function(_0x1ac7dc){return _0x1ac7dc();},'ftIsu':function(_0x435214,_0x43a2ed){return _0x435214!==_0x43a2ed;},'bHeAI':'main','BEoZP':_0x432263(0x180)},_0x401cbd=_0xa45808[_0x432263(0x154)](loadCache),_0x1bcd76=getOrCreateSession(_0x401cbd,_0x25de1a);_0x1bcd76[_0x432263(0x16a)]=!![];const _0x17a358=getCurrentBranch();_0x17a358&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808[_0x432263(0x168)])&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808['BEoZP'])&&(_0x1bcd76['currentBranch']=_0x17a358),delete _0x401cbd[_0x432263(0x160)],saveCache(_0x401cbd);}export function registerSession(_0x45dcee,_0x4bed82){const _0x3d1e94=_0x4b0824,_0x33b2e3={'dJoTs':function(_0x352f04){return _0x352f04();},'Anomr':function(_0x42c682,_0x14c5aa,_0x3c97fd){return _0x42c682(_0x14c5aa,_0x3c97fd);},'nExbe':function(_0x1cc024,_0x3ecfa4){return _0x1cc024(_0x3ecfa4);}},_0x333342=_0x33b2e3['dJoTs'](loadCache),_0x54bf28=_0x33b2e3[_0x3d1e94(0x171)](getOrCreateSession,_0x333342,_0x45dcee);_0x54bf28[_0x3d1e94(0x182)]=_0x4bed82,_0x54bf28[_0x3d1e94(0x152)]=new Date()['toISOString'](),_0x33b2e3['nExbe'](saveCache,_0x333342);}export function getSessionEntry(_0xfdd965){const _0xdf1a67=_0x4b0824,_0x1e5d86={'WQlGk':function(_0xe40eb0){return _0xe40eb0();}},_0x55a73c=_0x1e5d86['WQlGk'](loadCache),_0x159a2a=_0x55a73c['sessions'][_0xfdd965];if(_0x159a2a?.[_0xdf1a67(0x182)]&&_0x159a2a?.['registeredAt'])return{'featureId':_0x159a2a[_0xdf1a67(0x182)],'registeredAt':_0x159a2a[_0xdf1a67(0x152)]};return null;}export function unregisterSession(_0x1bd836){const _0x2b1b47=_0x4b0824,_0x56e02d={'wAAmb':function(_0x257936,_0x53075c){return _0x257936(_0x53075c);}},_0x464c0c=loadCache(),_0x2cf493=_0x464c0c[_0x2b1b47(0x177)][_0x1bd836];_0x2cf493&&(delete _0x2cf493['featureId'],delete _0x2cf493['registeredAt'],_0x56e02d['wAAmb'](saveCache,_0x464c0c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xe4501){const _0xcbbad4=_0x4b0824,_0x1ec688={'BByGE':function(_0x4c394c,_0x3e4f04,_0x53201f){return _0x4c394c(_0x3e4f04,_0x53201f);},'tBWAs':function(_0x408648,_0x43c93e){return _0x408648-_0x43c93e;}},_0x195f49=loadCache(),_0x5ec455=_0x1ec688['BByGE'](getOrCreateSession,_0x195f49,_0xe4501),_0x56a638=_0x5ec455['lastPlanReminderAt']||0x0,_0x5ea169=Date[_0xcbbad4(0x17b)]();if(_0x1ec688[_0xcbbad4(0x17f)](_0x5ea169,_0x56a638)>=PLAN_REMINDER_INTERVAL_MS)return _0x5ec455['lastPlanReminderAt']=_0x5ea169,saveCache(_0x195f49),!![];return![];}export function shouldShowStopReminder(_0x39180f){const _0x444533=_0x4b0824,_0x4f4188={'XNJUK':function(_0x39fc85){return _0x39fc85();},'iAjjX':function(_0x4bbe66,_0x58f027){return _0x4bbe66(_0x58f027);}},_0x3a9964=_0x4f4188[_0x444533(0x16e)](loadCache),_0x4ca200=getOrCreateSession(_0x3a9964,_0x39180f),_0x50b748=_0x4ca200['lastStopReminderAt']||0x0,_0x4d51c6=Date['now']();if(_0x4d51c6-_0x50b748>=STOP_REMINDER_INTERVAL_MS)return _0x4ca200['lastStopReminderAt']=_0x4d51c6,_0x4f4188[_0x444533(0x15f)](saveCache,_0x3a9964),!![];return![];}export function hasSessionBeenPrompted(_0x1550c9){const _0xfed590=_0x4b0824,_0x5d8630={'fymwe':function(_0x3a05b6){return _0x3a05b6();},'YhTRW':function(_0xba9b0f,_0x193b25){return _0xba9b0f===_0x193b25;}},_0x56eab8=_0x5d8630[_0xfed590(0x173)](loadCache);return _0x5d8630[_0xfed590(0x170)](_0x56eab8[_0xfed590(0x177)][_0x1550c9]?.['prompted'],!![]);}export function markSessionPrompted(_0x280f3c){const _0x16a4da=_0x4b0824,_0x1bc308={'tdwBR':function(_0x5e5395){return _0x5e5395();},'dzLIe':function(_0x540e30,_0x1d1f79){return _0x540e30(_0x1d1f79);}},_0xef9717=_0x1bc308[_0x16a4da(0x166)](loadCache),_0x1892f3=getOrCreateSession(_0xef9717,_0x280f3c);_0x1892f3[_0x16a4da(0x17d)]=!![],_0x1bc308[_0x16a4da(0x176)](saveCache,_0xef9717);}export function getCacheFile(){return CACHE_FILE;}
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;}