@ranger-testing/ranger-cli 3.0.0 → 3.0.1-alpha.55b593b-29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/playwrightCli.js +1 -1
  60. package/build/commands/utils/profileMessages.js +1 -1
  61. package/build/commands/utils/profileSetupBanner.js +1 -1
  62. package/build/commands/utils/projectsConfig.js +1 -1
  63. package/build/commands/utils/rangerConfig.js +1 -1
  64. package/build/commands/utils/rangerRoot.js +1 -1
  65. package/build/commands/utils/resolveProfileContext.js +1 -1
  66. package/build/commands/utils/resolveProfileUrl.js +1 -1
  67. package/build/commands/utils/retry.js +1 -1
  68. package/build/commands/utils/sessionCache.js +1 -1
  69. package/build/commands/utils/settings.js +1 -1
  70. package/build/commands/utils/skillContent.js +1 -1
  71. package/build/commands/utils/skills.js +1 -1
  72. package/build/commands/utils/stitchWebmFiles.js +1 -1
  73. package/build/commands/utils/telemetry.js +1 -1
  74. package/build/commands/utils/tokenRefresh.js +1 -1
  75. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  76. package/build/commands/utils/userApi.js +1 -1
  77. package/build/commands/utils/version.js +1 -1
  78. package/build/commands/verifyFeature.js +1 -1
  79. package/build/commands/verifyFeatureCli.js +1 -1
  80. package/build/commands/verifyFeatureNovaCli.js +1 -1
  81. package/package.json +2 -2
@@ -1 +1 @@
1
- (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 _0x172526=_0x59ef;function _0x2595(){const _0x5f299b=['--config','6428478NUFmYY','configPath','118582RxwLpJ','gfgrM','FWFCh','command','rg-','ukZZV','pipe','472007sosUbP','maIVM','toString','20291496rGSvOv','-s=','hex','bash_command','36081YVULqS','stderr','zeOIO','env','KPAcR','length','292DQiWNO','Hlmwa','SAile','args','@playwright/cli','timed\x20out\x20after\x20','\x27\x5c\x27\x27','6034325ldqABN','\x20signal=','string','SIGTERM','close','3026996IeAJlb','kill','SIGKILL','heGpC','update','gfAuQ','gjUbQ','slice','sJxvr','JSqEd','ZvAxQ','map','QvwYA','sRWkQ','timeoutMs','stdout','npx'];_0x2595=function(){return _0x5f299b;};return _0x2595();}function _0x59ef(_0x259022,_0x383eb2){_0x259022=_0x259022-0xe8;const _0x2595a2=_0x2595();let _0x59ef19=_0x2595a2[_0x259022];return _0x59ef19;}(function(_0x5308c2,_0x3ecfce){const _0x535bfb=_0x59ef,_0x51458e=_0x5308c2();while(!![]){try{const _0x57b2e2=-parseInt(_0x535bfb(0xe8))/0x1+parseInt(_0x535bfb(0x115))/0x2+-parseInt(_0x535bfb(0xef))/0x3*(parseInt(_0x535bfb(0xf5))/0x4)+-parseInt(_0x535bfb(0xfc))/0x5+parseInt(_0x535bfb(0x113))/0x6+-parseInt(_0x535bfb(0x101))/0x7+parseInt(_0x535bfb(0xeb))/0x8;if(_0x57b2e2===_0x3ecfce)break;else _0x51458e['push'](_0x51458e['shift']());}catch(_0x10bcb6){_0x51458e['push'](_0x51458e['shift']());}}}(_0x2595,0xa57ee));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x172526(0xf9);function toPlaywrightCliSessionKey(_0x4d02e8){const _0x2c037c=_0x172526,_0x50f1b1={'OEcjI':function(_0x2905d6,_0x3abf3a){return _0x2905d6(_0x3abf3a);},'JSqEd':'sha256','gfAuQ':_0x2c037c(0xed)},_0x1a28af=_0x50f1b1['OEcjI'](createHash,_0x50f1b1[_0x2c037c(0x10a)])[_0x2c037c(0x105)](_0x4d02e8)['digest'](_0x50f1b1[_0x2c037c(0x106)])[_0x2c037c(0x108)](0x0,0xc);return _0x2c037c(0x119)+_0x1a28af;}function shellQuote(_0x44a855){const _0x8559e1=_0x172526;return'\x27'+_0x44a855['replace'](/'/g,_0x8559e1(0xfb))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x5df082){return SAFE_SHELL_TOKEN['test'](_0x5df082)?_0x5df082:shellQuote(_0x5df082);}export function buildPlaywrightCliInvocation(_0x13e268,_0x527e2a,_0x14f4f5){const _0x3a4755=_0x172526,_0x21a4e1={'QvwYA':function(_0x26e634,_0x54cf4d){return _0x26e634(_0x54cf4d);},'sJxvr':'unknown','ukZZV':function(_0x2bdb63,_0x2cd12f){return _0x2bdb63(_0x2cd12f);},'Hlmwa':'--config','FWFCh':function(_0x574fd6,_0x4058d9){return _0x574fd6(_0x4058d9);}},_0x4b8d01=_0x21a4e1[_0x3a4755(0x10d)](toPlaywrightCliSessionKey,_0x13e268),[_0x330dcd=_0x21a4e1[_0x3a4755(0x109)]]=_0x14f4f5,_0x5a9d12=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4b8d01,_0x3a4755(0x112),_0x527e2a,..._0x14f4f5];return{'command':'npx','args':_0x5a9d12,'shellCommand':[_0x3a4755(0x111),PLAYWRIGHT_CLI_BINARY,'-s='+_0x21a4e1[_0x3a4755(0x11a)](quoteShellArg,_0x4b8d01),_0x21a4e1[_0x3a4755(0xf6)],_0x21a4e1[_0x3a4755(0x117)](quoteShellArg,_0x527e2a),..._0x14f4f5[_0x3a4755(0x10c)](quoteShellArg)]['join']('\x20'),'subcommand':_0x330dcd};}export function buildPlaywrightCliCommandPrefix(_0x5ce410,_0xd5f8e9){const _0x4df72a=_0x172526,_0x1e441d={'JksGE':_0x4df72a(0x112),'eVpwM':function(_0x3c09a0,_0x43b463){return _0x3c09a0(_0x43b463);}},_0x346834=toPlaywrightCliSessionKey(_0x5ce410);return[_0x4df72a(0x111),PLAYWRIGHT_CLI_BINARY,_0x4df72a(0xec)+quoteShellArg(_0x346834),_0x1e441d['JksGE'],_0x1e441d['eVpwM'](quoteShellArg,_0xd5f8e9)]['join']('\x20');}function truncateOutput(_0x5a9217,_0x4de1cf=0x7d0){const _0xa29eba=_0x172526,_0x12451a={'SAVFc':function(_0x5414fe,_0x2eca81){return _0x5414fe+_0x2eca81;},'maIVM':'...'};return _0x5a9217['length']>_0x4de1cf?_0x12451a['SAVFc'](_0x5a9217['slice'](0x0,_0x4de1cf),_0x12451a[_0xa29eba(0xe9)]):_0x5a9217;}export async function runPlaywrightCliCommand(_0x41c678){const _0x3264d9=_0x172526,_0x1ab61b={'VxiJk':_0x3264d9(0xff),'mepAJ':function(_0x97f449,_0x17316e,_0x179871){return _0x97f449(_0x17316e,_0x179871);},'gjUbQ':function(_0x587101,_0x47095e){return _0x587101(_0x47095e);},'KPAcR':function(_0x4d57a8,_0x160feb){return _0x4d57a8(_0x160feb);},'PbYGb':function(_0x404237,_0x45369f){return _0x404237===_0x45369f;},'IYWTV':function(_0x40acd0,_0x50c120){return _0x40acd0??_0x50c120;},'heGpC':'null','vKCgS':function(_0x590bff,_0x5cf211){return _0x590bff??_0x5cf211;},'sRWkQ':function(_0x4f7cff,_0x366a80){return _0x4f7cff(_0x366a80);},'zeOIO':'data'},_0x1d2a89=buildPlaywrightCliInvocation(_0x41c678['sessionId'],_0x41c678[_0x3264d9(0x114)],_0x41c678['commandArgs']);return new Promise((_0x3ef59d,_0x499580)=>{const _0x53e1bb=_0x3264d9,_0x204b81=spawn(_0x1d2a89['command'],_0x1d2a89[_0x53e1bb(0xf8)],{'cwd':_0x41c678['cwd'],'env':_0x41c678[_0x53e1bb(0xf2)],'stdio':['ignore','pipe',_0x53e1bb(0x11b)]});let _0x19e642='',_0x125904='',_0x4ad93a=![];const _0x19a589=_0x41c678[_0x53e1bb(0x10f)]&&_0x41c678['timeoutMs']>0x0?setTimeout(()=>{const _0xb8507c=_0x53e1bb;_0x4ad93a=!![],_0x204b81[_0xb8507c(0x102)](_0x1ab61b['VxiJk']),_0x1ab61b['mepAJ'](setTimeout,()=>{const _0x1249fc=_0xb8507c;try{_0x204b81[_0x1249fc(0x102)](_0x1249fc(0x103));}catch{}},0x3e8);},_0x41c678['timeoutMs']):null;_0x204b81[_0x53e1bb(0x110)]?.['on']('data',_0x2808fb=>{const _0x160e4f=_0x53e1bb;_0x19e642+=_0x2808fb[_0x160e4f(0xea)]();}),_0x204b81[_0x53e1bb(0xf0)]?.['on'](_0x1ab61b[_0x53e1bb(0xf1)],_0x119fd8=>{_0x125904+=_0x119fd8['toString']();}),_0x204b81['on']('error',_0x467f57=>{const _0x54dabf=_0x53e1bb;if(_0x19a589)_0x1ab61b[_0x54dabf(0x107)](clearTimeout,_0x19a589);_0x1ab61b[_0x54dabf(0xf3)](_0x499580,_0x467f57);}),_0x204b81['on'](_0x53e1bb(0x100),(_0x43953b,_0xe4b2c2)=>{const _0x1ba374=_0x53e1bb;if(_0x19a589)clearTimeout(_0x19a589);if(_0x1ab61b['PbYGb'](_0x43953b,0x0)){_0x3ef59d({'stdout':_0x19e642,'stderr':_0x125904,'invocation':_0x1d2a89});return;}const _0x5398b1=_0x4ad93a?_0x1ba374(0xfa)+_0x41c678[_0x1ba374(0x10f)]+'ms':'exited\x20with\x20code='+_0x1ab61b['IYWTV'](_0x43953b,_0x1ab61b[_0x1ba374(0x104)])+_0x1ba374(0xfd)+_0x1ab61b['vKCgS'](_0xe4b2c2,_0x1ab61b['heGpC']);_0x1ab61b['KPAcR'](_0x499580,new Error('playwright-cli\x20'+_0x1d2a89['subcommand']+'\x20'+_0x5398b1+'\x0astdout:\x20'+_0x1ab61b[_0x1ba374(0x10e)](truncateOutput,_0x19e642)+'\x0astderr:\x20'+truncateOutput(_0x125904)));});});}export function extractBashCommand(_0x4b4cb6){const _0x419159=_0x172526,_0x53ed3b={'JmOzD':_0x419159(0x118),'ZvAxQ':'cmd','gfgrM':'script','SAile':_0x419159(0xee),'BwMmK':_0x419159(0xfe),'yKWxE':function(_0x40ad73,_0x4ad176){return _0x40ad73??_0x4ad176;}},_0x2367f0=[_0x53ed3b['JmOzD'],_0x53ed3b[_0x419159(0x10b)],_0x53ed3b[_0x419159(0x116)],_0x53ed3b[_0x419159(0xf7)]];for(const _0x4ff208 of _0x2367f0){const _0x104b4f=_0x4b4cb6[_0x4ff208];if(typeof _0x104b4f===_0x53ed3b['BwMmK']&&_0x104b4f['trim']())return _0x104b4f;}const _0x12d656=Object['values'](_0x4b4cb6)['find'](_0x45fbaa=>typeof _0x45fbaa===_0x419159(0xfe)&&_0x45fbaa['trim']()[_0x419159(0xf4)]>0x0);return _0x53ed3b['yKWxE'](_0x12d656,null);}export function parsePlaywrightCliCommand(_0x490ed1){const _0x5523db=_0x490ed1['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x5523db?.[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
+ function _0x1be8(_0x467a35,_0x32ff4c){_0x467a35=_0x467a35-0xb7;const _0x7164ae=_0x7164();let _0x1be887=_0x7164ae[_0x467a35];return _0x1be887;}function _0x7164(){const _0x4932ca=['13677432KTpKJv','570RooxTd','323632fWQuXv','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','rIIVd','4145994Ajwbux','4055359JFbvGv','132999EnRdjy','247113qjrAcd','484mBoaEL'];_0x7164=function(){return _0x4932ca;};return _0x7164();}(function(_0x177654,_0x30eb37){const _0x34cc1a=_0x1be8,_0x1b4a79=_0x177654();while(!![]){try{const _0x266643=-parseInt(_0x34cc1a(0xbf))/0x1+parseInt(_0x34cc1a(0xba))/0x2+-parseInt(_0x34cc1a(0xc0))/0x3+-parseInt(_0x34cc1a(0xb7))/0x4*(parseInt(_0x34cc1a(0xb9))/0x5)+-parseInt(_0x34cc1a(0xbd))/0x6+-parseInt(_0x34cc1a(0xbe))/0x7+parseInt(_0x34cc1a(0xb8))/0x8;if(_0x266643===_0x30eb37)break;else _0x1b4a79['push'](_0x1b4a79['shift']());}catch(_0x3bc06f){_0x1b4a79['push'](_0x1b4a79['shift']());}}}(_0x7164,0x5ad1b));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x365228){const _0x5dee98=_0x1be8,_0x16baa9={'rIIVd':function(_0x3a5639,_0x397e4a){return _0x3a5639(_0x397e4a);}},_0x6edfe5=_0x365228?_0x16baa9[_0x5dee98(0xbc)](_0x365228,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x5dee98(0xbb)+_0x6edfe5+'.';}
@@ -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 _0x4a8c(_0x5276e7,_0x30ee96){_0x5276e7=_0x5276e7-0x19b;const _0x4b26be=_0x4b26();let _0x4a8c2a=_0x4b26be[_0x5276e7];return _0x4a8c2a;}function _0x4b26(){const _0x24c713=['tYcyL','7949352XGdhKC','<div\x20class=\x22ranger-banner__content\x22>','\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','484671GDQcNo','</div>','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','3658627zmFkHw','fbyhw','19391706WThzcY','addInitScript','YGwgU','6AHwxpJ','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','4471432YmjioY','3whZTqX',';\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','1199925eqmtfU','1331914BPPyTA','stringify','JTZsA','<div\x20class=\x22ranger-banner__message\x22>'];_0x4b26=function(){return _0x24c713;};return _0x4b26();}(function(_0x1dbdcd,_0xb03f6e){const _0x5b0304=_0x4a8c,_0x35feb6=_0x1dbdcd();while(!![]){try{const _0x25960c=-parseInt(_0x5b0304(0x1a6))/0x1+-parseInt(_0x5b0304(0x19e))/0x2*(parseInt(_0x5b0304(0x19b))/0x3)+-parseInt(_0x5b0304(0x1b0))/0x4+parseInt(_0x5b0304(0x19d))/0x5+parseInt(_0x5b0304(0x1ae))/0x6*(-parseInt(_0x5b0304(0x1a9))/0x7)+parseInt(_0x5b0304(0x1a3))/0x8+parseInt(_0x5b0304(0x1ab))/0x9;if(_0x25960c===_0xb03f6e)break;else _0x35feb6['push'](_0x35feb6['shift']());}catch(_0x5a29ac){_0x35feb6['push'](_0x35feb6['shift']());}}}(_0x4b26,0x91c95));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x34ac53=_0x4a8c,_0x36b5fe={'tYcyL':function(_0x24750b,_0x2dc614){return _0x24750b+_0x2dc614;},'JTZsA':function(_0x4233a3,_0x245085){return _0x4233a3+_0x245085;},'YGwgU':function(_0x239440,_0x5c4399){return _0x239440+_0x5c4399;},'UuoOL':_0x34ac53(0x1a4),'JxYkO':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','YuTBZ':_0x34ac53(0x1a1),'GTHmq':_0x34ac53(0x1a7),'fbyhw':_0x34ac53(0x1a8)},_0x326da0=_0x36b5fe[_0x34ac53(0x1a2)](_0x36b5fe[_0x34ac53(0x1a2)](_0x36b5fe[_0x34ac53(0x1a0)](_0x36b5fe[_0x34ac53(0x1ad)](_0x36b5fe['UuoOL'],_0x36b5fe['JxYkO']),_0x36b5fe['YuTBZ']),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x34ac53(0x1af),_0x36b5fe['GTHmq'])+_0x34ac53(0x1a7)+_0x36b5fe[_0x34ac53(0x1aa)],_0x4a2b56=_0x34ac53(0x1a5);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[_0x34ac53(0x19f)](_0x326da0)+_0x34ac53(0x19c)+JSON['stringify'](_0x4a2b56)+';\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(_0x55caac){const _0x2ea706=_0x4a8c;await _0x55caac[_0x2ea706(0x1ac)]({'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 _0x9522(_0x18589b,_0x295f89){_0x18589b=_0x18589b-0xe7;const _0x3c3db2=_0x3c3d();let _0x9522a0=_0x3c3db2[_0x18589b];return _0x9522a0;}(function(_0x3e294d,_0x5b6d61){const _0x561bb6=_0x9522,_0x1b3a28=_0x3e294d();while(!![]){try{const _0x1effa7=-parseInt(_0x561bb6(0x104))/0x1+parseInt(_0x561bb6(0x102))/0x2*(parseInt(_0x561bb6(0x101))/0x3)+parseInt(_0x561bb6(0xec))/0x4+-parseInt(_0x561bb6(0xfd))/0x5+parseInt(_0x561bb6(0xeb))/0x6+-parseInt(_0x561bb6(0xed))/0x7*(parseInt(_0x561bb6(0xe9))/0x8)+parseInt(_0x561bb6(0x10b))/0x9*(-parseInt(_0x561bb6(0xef))/0xa);if(_0x1effa7===_0x5b6d61)break;else _0x1b3a28['push'](_0x1b3a28['shift']());}catch(_0xfa7c0a){_0x1b3a28['push'](_0x1b3a28['shift']());}}}(_0x3c3d,0x3e858));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x2a50f8=_0x9522,_0x553cb5={'xeSJW':function(_0xb12088,_0x490277,_0x34ee64){return _0xb12088(_0x490277,_0x34ee64);},'DAbzY':_0x2a50f8(0xf7)};return _0x553cb5['xeSJW'](join,getRangerHomeDir(),_0x553cb5[_0x2a50f8(0xea)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4bf238=_0x9522,_0x20875c={'YIiNs':function(_0x2f3a6e){return _0x2f3a6e();},'GMLDT':'utf-8','KdGGo':function(_0x26b98c,_0x20c921){return _0x26b98c!==_0x20c921;},'cvTHI':function(_0x1df589,_0x204b70){return _0x1df589===_0x204b70;},'JjxWN':function(_0x1c3e21){return _0x1c3e21();}},_0x4c4bf9=getProjectsConfigPath();if(!existsSync(_0x4c4bf9))return _0x20875c['YIiNs'](emptyConfig);let _0x256db8;try{_0x256db8=readFileSync(_0x4c4bf9,_0x20875c['GMLDT']);}catch(_0x540ada){const _0x2563c7=_0x540ada instanceof Error?_0x540ada['message']:String(_0x540ada);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x4c4bf9+':\x20'+_0x2563c7+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x37c6a1;try{_0x37c6a1=JSON['parse'](_0x256db8);}catch(_0x25e01b){const _0x39d785=_0x25e01b instanceof Error?_0x25e01b[_0x4bf238(0xe7)]:String(_0x25e01b);return console['warn'](_0x4bf238(0xf5)+_0x4c4bf9+_0x4bf238(0xf8)+_0x39d785+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x37c6a1||_0x20875c['KdGGo'](typeof _0x37c6a1,'object')||Array['isArray'](_0x37c6a1)||_0x37c6a1[_0x4bf238(0xf3)]!==CURRENT_VERSION||_0x20875c['KdGGo'](typeof _0x37c6a1[_0x4bf238(0x10c)],'object')||_0x20875c['cvTHI'](_0x37c6a1['projects'],null)||Array['isArray'](_0x37c6a1[_0x4bf238(0x10c)]))return console[_0x4bf238(0xfa)](_0x4bf238(0xf5)+_0x4c4bf9+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x20875c['JjxWN'](emptyConfig);return _0x37c6a1;}export function writeProjectsConfig(_0xa45fa2){const _0x18bf84=_0x9522,_0x3e4815={'TrPWr':function(_0x4a2db3){return _0x4a2db3();},'ASbzk':function(_0x172a93,_0x17f80f){return _0x172a93(_0x17f80f);},'omLwQ':function(_0x5a6984,_0x31126e){return _0x5a6984+_0x31126e;},'HSeTN':function(_0x272880,_0x1239ba,_0x472302){return _0x272880(_0x1239ba,_0x472302);}},_0x4c50e2=_0x3e4815['TrPWr'](getProjectsConfigPath),_0x5cafe7=dirname(_0x4c50e2);!_0x3e4815['ASbzk'](existsSync,_0x5cafe7)&&mkdirSync(_0x5cafe7,{'recursive':!![]});const _0x3f419a=_0x4c50e2+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x32362e=_0x3e4815[_0x18bf84(0x109)](JSON['stringify'](_0xa45fa2,null,0x2),'\x0a');try{writeFileSync(_0x3f419a,_0x32362e,{'encoding':_0x18bf84(0xe8),'mode':0x180}),_0x3e4815[_0x18bf84(0xf6)](renameSync,_0x3f419a,_0x4c50e2);}catch(_0x294d03){try{existsSync(_0x3f419a)&&unlinkSync(_0x3f419a);}catch{}throw _0x294d03;}}export function readProfileOverrides(_0x18d518,_0x5e24a1){const _0xf10b55=_0x9522,_0x2a2ca3=readProjectsConfig(),_0x182eff=_0x2a2ca3['projects'][_0x18d518];if(!_0x182eff||!_0x182eff[_0xf10b55(0xfe)])return null;const _0x105969=_0x182eff['profiles'][_0x5e24a1];if(!_0x105969||!_0x105969['settings'])return null;return _0x105969['settings']??null;}function _0x3c3d(){const _0x52ea05=['DAbzY','2301816VoPnlU','1328180KlFmWJ','21yQTAOW','length','14530gpmOIq','NhHhr','split','dvbik','version','MieQH','[ranger]\x20Warning:\x20','HSeTN','projects.json','\x20is\x20not\x20valid\x20JSON\x20(','ZHNIu','warn','settings','keys','117040YCtyqG','profiles','gqjyw','isArray','3rwVcpG','130142BAhcPR','hUqmn','282777eOfRFB','SqXvz','lkTJR','lastProfile','headers','omLwQ','xzXoK','765tzxfLs','projects','message','utf-8','253264OHNIFm'];_0x3c3d=function(){return _0x52ea05;};return _0x3c3d();}export function setProfileOverride(_0xe3e8d3,_0x3d1e9e,_0x5163c3,_0x182c4e){const _0x3e5aee=_0x9522,_0x1571da={'JIDJi':function(_0x4dc83b){return _0x4dc83b();}};if(!_0x5163c3)throw new Error('keyPath\x20is\x20required');const _0x4dddd4=_0x1571da['JIDJi'](readProjectsConfig),_0x52242b=_0x4dddd4[_0x3e5aee(0x10c)][_0xe3e8d3]??={},_0x28b2bb=_0x52242b['profiles']??={},_0x40e034=_0x28b2bb[_0x3d1e9e]??={},_0x45b73e=_0x40e034['settings']??={};setByKeyPath(_0x45b73e,_0x5163c3,_0x182c4e),writeProjectsConfig(_0x4dddd4);}export function unsetProfileOverride(_0x494431,_0x3a5853,_0x2b3a7b){const _0xd633d1=_0x9522,_0xc15997={'aaqkK':'keyPath\x20is\x20required','xzXoK':function(_0x9c8354,_0x20e384,_0x464152){return _0x9c8354(_0x20e384,_0x464152);}};if(!_0x2b3a7b)throw new Error(_0xc15997['aaqkK']);const _0x33e393=readProjectsConfig(),_0xe7638=_0x33e393['projects'][_0x494431];if(!_0xe7638?.[_0xd633d1(0xfe)])return![];const _0x5d97ff=_0xe7638[_0xd633d1(0xfe)][_0x3a5853];if(!_0x5d97ff?.[_0xd633d1(0xfb)])return![];const _0x3b99a0=_0xc15997[_0xd633d1(0x10a)](deleteByKeyPath,_0x5d97ff['settings'],_0x2b3a7b);if(!_0x3b99a0)return![];return writeProjectsConfig(_0x33e393),!![];}export function resetProfileOverrides(_0x3b3d19,_0x5e0df9){const _0x396587=_0x9522,_0x48ee78={'lZwTA':function(_0xee35f3){return _0xee35f3();},'SqXvz':function(_0x48edb1,_0x2eec7d){return _0x48edb1 in _0x2eec7d;},'HJqCg':function(_0x299983,_0x59a198){return _0x299983===_0x59a198;}},_0x43b8ed=_0x48ee78['lZwTA'](readProjectsConfig),_0x1d5971=_0x43b8ed['projects'][_0x3b3d19];if(!_0x1d5971?.[_0x396587(0xfe)])return;if(!_0x48ee78[_0x396587(0x105)](_0x5e0df9,_0x1d5971[_0x396587(0xfe)]))return;delete _0x1d5971['profiles'][_0x5e0df9],_0x48ee78['HJqCg'](Object['keys'](_0x1d5971[_0x396587(0xfe)])['length'],0x0)&&(!_0x1d5971['lastProfile']?delete _0x43b8ed['projects'][_0x3b3d19]:_0x1d5971['profiles']={}),writeProjectsConfig(_0x43b8ed);}export function readLastProfile(_0x1633f1){const _0x3ed691=_0x9522,_0x3e866f={'fZnaY':function(_0x42a21f){return _0x42a21f();}},_0x3412c0=_0x3e866f['fZnaY'](readProjectsConfig),_0x11259e=_0x3412c0[_0x3ed691(0x10c)][_0x1633f1];return _0x11259e?.['lastProfile']??null;}export function writeLastProfile(_0x3eff8f,_0x4da9c6){const _0x561319=_0x9522,_0x5c8ff4={'NhHhr':function(_0x2f5125,_0x3e3a68){return _0x2f5125(_0x3e3a68);}},_0x795ff=readProjectsConfig(),_0x1081fd=_0x795ff['projects'][_0x3eff8f]??={};_0x1081fd[_0x561319(0x107)]=_0x4da9c6,_0x5c8ff4[_0x561319(0xf0)](writeProjectsConfig,_0x795ff);}export function clearLastProfile(_0xc6c21c,_0x4a60ce){const _0x465a04=_0x9522,_0x27db48={'MieQH':function(_0x1aad61,_0x92466b){return _0x1aad61===_0x92466b;}},_0x51a63a=readProjectsConfig(),_0xe718dc=_0x51a63a[_0x465a04(0x10c)][_0xc6c21c];if(!_0xe718dc||_0xe718dc['lastProfile']!==_0x4a60ce)return![];return delete _0xe718dc[_0x465a04(0x107)],(!_0xe718dc['profiles']||_0x27db48[_0x465a04(0xf4)](Object[_0x465a04(0xfc)](_0xe718dc['profiles'])['length'],0x0))&&delete _0x51a63a[_0x465a04(0x10c)][_0xc6c21c],writeProjectsConfig(_0x51a63a),!![];}export function mergeCloudProfileSettings(_0x113b9d,_0x599a6c){const _0x2b97f5=_0x9522,_0x545cb5={'GPlLq':function(_0x6c3178,_0x45bbb6){return _0x6c3178??_0x45bbb6;},'EeJDH':function(_0x4b7c17,_0x29a3ba){return _0x4b7c17===_0x29a3ba;},'ttzbh':function(_0x4c5ed3,_0x179c11){return _0x4c5ed3===_0x179c11;},'vgIjW':'setupHeaders','hUqmn':function(_0xd94e40,_0x387ce2){return _0xd94e40(_0x387ce2);},'Qhoyl':function(_0xa3a7dc,_0x2db145){return _0xa3a7dc===_0x2db145;},'dekQz':function(_0x5373be,_0x1a4bd0){return _0x5373be!==_0x1a4bd0;}},_0x6f638e={..._0x545cb5['GPlLq'](_0x113b9d,{})};if(!_0x599a6c)return _0x6f638e;for(const [_0x1e1ba4,_0xf77379]of Object['entries'](_0x599a6c)){if(_0x545cb5['EeJDH'](_0xf77379,undefined))continue;if(_0x545cb5['ttzbh'](_0xf77379,null)){delete _0x6f638e[_0x1e1ba4];continue;}if(_0x1e1ba4===_0x2b97f5(0x108)||_0x1e1ba4===_0x545cb5['vgIjW']){const _0xf100d3=_0x545cb5[_0x2b97f5(0x103)](asRecord,_0x6f638e[_0x1e1ba4])??{},_0x39c21f=asRecord(_0xf77379);if(!_0x39c21f){_0x6f638e[_0x1e1ba4]=_0xf77379;continue;}const _0x3a833b={..._0xf100d3};for(const [_0x52b979,_0x497cb3]of Object['entries'](_0x39c21f)){if(_0x545cb5['Qhoyl'](_0x497cb3,null))delete _0x3a833b[_0x52b979];else _0x545cb5['dekQz'](_0x497cb3,undefined)&&(_0x3a833b[_0x52b979]=_0x497cb3);}_0x6f638e[_0x1e1ba4]=_0x3a833b;continue;}_0x6f638e[_0x1e1ba4]=_0xf77379;}return _0x6f638e;}function asRecord(_0x34230a){const _0x397950=_0x9522,_0x2c7978={'ZHNIu':function(_0x51a24f,_0x2fbb56){return _0x51a24f===_0x2fbb56;}};return _0x34230a&&_0x2c7978[_0x397950(0xf9)](typeof _0x34230a,'object')&&!Array['isArray'](_0x34230a)?_0x34230a:undefined;}function setByKeyPath(_0xf82199,_0x5a84a8,_0x530df4){const _0x4eacf6=_0x9522,_0x1722df={'oBnEY':function(_0x3cd742,_0x2ea096){return _0x3cd742<_0x2ea096;},'lkTJR':function(_0x56a883,_0x472dcd){return _0x56a883-_0x472dcd;},'YpOYD':'object','dvbik':function(_0x2e9044,_0x45da9b){return _0x2e9044-_0x45da9b;}},_0x44fdf0=_0x5a84a8['split']('.');let _0x1a8e97=_0xf82199;for(let _0x167f1f=0x0;_0x1722df['oBnEY'](_0x167f1f,_0x1722df[_0x4eacf6(0x106)](_0x44fdf0['length'],0x1));_0x167f1f++){const _0x4922c5=_0x44fdf0[_0x167f1f],_0x56cede=_0x1a8e97[_0x4922c5];(!_0x56cede||typeof _0x56cede!==_0x1722df['YpOYD']||Array['isArray'](_0x56cede))&&(_0x1a8e97[_0x4922c5]={}),_0x1a8e97=_0x1a8e97[_0x4922c5];}_0x1a8e97[_0x44fdf0[_0x1722df[_0x4eacf6(0xf2)](_0x44fdf0['length'],0x1)]]=_0x530df4;}function deleteByKeyPath(_0x22b11e,_0x385cb1){const _0x75d70d=_0x9522,_0x155aaf={'naBCE':function(_0x2fa5b8,_0x541d38){return _0x2fa5b8<_0x541d38;},'gqjyw':function(_0x5aa56e,_0x3218d2){return _0x5aa56e-_0x3218d2;}},_0x739a89=_0x385cb1[_0x75d70d(0xf1)]('.');let _0x34acb8=_0x22b11e;for(let _0xceb513=0x0;_0x155aaf['naBCE'](_0xceb513,_0x739a89['length']-0x1);_0xceb513++){const _0x535206=_0x739a89[_0xceb513],_0x124f5f=_0x34acb8[_0x535206];if(!_0x124f5f||typeof _0x124f5f!=='object'||Array[_0x75d70d(0x100)](_0x124f5f))return![];_0x34acb8=_0x124f5f;}const _0x437d68=_0x739a89[_0x155aaf[_0x75d70d(0xff)](_0x739a89[_0x75d70d(0xee)],0x1)];if(!(_0x437d68 in _0x34acb8))return![];return delete _0x34acb8[_0x437d68],!![];}
@@ -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(_0x3930db,_0x4d67e3){const _0x4314d0=_0x56a9,_0x36ef40=_0x3930db();while(!![]){try{const _0x20060a=parseInt(_0x4314d0(0xe7))/0x1*(parseInt(_0x4314d0(0xea))/0x2)+parseInt(_0x4314d0(0xe6))/0x3+parseInt(_0x4314d0(0xde))/0x4+-parseInt(_0x4314d0(0xe2))/0x5+-parseInt(_0x4314d0(0xeb))/0x6*(-parseInt(_0x4314d0(0xe4))/0x7)+parseInt(_0x4314d0(0xed))/0x8+-parseInt(_0x4314d0(0xef))/0x9;if(_0x20060a===_0x4d67e3)break;else _0x36ef40['push'](_0x36ef40['shift']());}catch(_0x473c99){_0x36ef40['push'](_0x36ef40['shift']());}}}(_0x487d,0x951da));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x487d(){const _0x246e7e=['HHKRT','2513552qIJbwP','arVFE','16450740DpoKUU','parse','2359720HGtbbH','isArray','model','string','2027285pbNcwc','Skytb','7NHLYbn','message','2850117QnWISU','80591ZflaPo','object','tTUbk','2fYlsoQ','5456046XnZaEZ'];_0x487d=function(){return _0x246e7e;};return _0x487d();}import{getRangerDir}from'./rangerRoot.js';function _0x56a9(_0x17f590,_0x4d46b0){_0x17f590=_0x17f590-0xde;const _0x487d1b=_0x487d();let _0x56a9ce=_0x487d1b[_0x17f590];return _0x56a9ce;}export function getRangerConfigPath(){const _0x5abd92=_0x56a9,_0xed5a7c={'arVFE':function(_0x59e744,_0x1c6e76,_0x27a758){return _0x59e744(_0x1c6e76,_0x27a758);}};return _0xed5a7c[_0x5abd92(0xee)](join,getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x37a9c7=_0x56a9,_0x2fbddd={'Skytb':function(_0x315798){return _0x315798();},'TKxLs':function(_0x55d189,_0x467592){return _0x55d189(_0x467592);},'uXCJn':function(_0x680d9c,_0x185208,_0x136078){return _0x680d9c(_0x185208,_0x136078);},'tTUbk':_0x37a9c7(0xe8),'HHKRT':function(_0x572693,_0x2b9012){return _0x572693 instanceof _0x2b9012;},'wzeKW':function(_0x1c2e5a,_0x4bbf2f){return _0x1c2e5a(_0x4bbf2f);}},_0x5eb5b5=_0x2fbddd[_0x37a9c7(0xe3)](getRangerConfigPath);if(!_0x2fbddd['TKxLs'](existsSync,_0x5eb5b5))return{};try{const _0x1ece7b=await _0x2fbddd['uXCJn'](readFile,_0x5eb5b5,'utf-8'),_0x119577=JSON[_0x37a9c7(0xf0)](_0x1ece7b);if(!_0x119577||typeof _0x119577!==_0x2fbddd[_0x37a9c7(0xe9)]||Array[_0x37a9c7(0xdf)](_0x119577))return{};const _0x559b33={},_0x390745=_0x119577[_0x37a9c7(0xe0)];return typeof _0x390745===_0x37a9c7(0xe1)&&(_0x559b33['model']=_0x390745),_0x559b33;}catch(_0xeafe16){const _0x372ad2=_0x2fbddd[_0x37a9c7(0xec)](_0xeafe16,Error)?_0xeafe16[_0x37a9c7(0xe5)]:_0x2fbddd['wzeKW'](String,_0xeafe16);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x5eb5b5+':\x20'+_0x372ad2),{};}}
@@ -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 _0x1740(_0x376093,_0xdb9270){_0x376093=_0x376093-0x101;const _0x3b1470=_0x3b14();let _0x1740ba=_0x3b1470[_0x376093];return _0x1740ba;}function _0x3b14(){const _0x2ef2aa=['854319BlAEoj','3469529nAJqBP','10741620GCheZq','tazog','QvGYI','932RxoEIG','9438BpFAil','15435824JLyElG','kYKXh','root','5902780hXtddp','.git','WYGOv','eJTjS','rKxOD','3831570tMJWSk','cwd','fvmMP','Ghxjs','.ranger'];_0x3b14=function(){return _0x2ef2aa;};return _0x3b14();}(function(_0xef8112,_0x100674){const _0x5f5736=_0x1740,_0x2c441e=_0xef8112();while(!![]){try{const _0x5c1fa2=parseInt(_0x5f5736(0x10b))/0x1+-parseInt(_0x5f5736(0x110))/0x2*(-parseInt(_0x5f5736(0x111))/0x3)+-parseInt(_0x5f5736(0x101))/0x4+parseInt(_0x5f5736(0x106))/0x5+parseInt(_0x5f5736(0x10d))/0x6+-parseInt(_0x5f5736(0x10c))/0x7+-parseInt(_0x5f5736(0x112))/0x8;if(_0x5c1fa2===_0x100674)break;else _0x2c441e['push'](_0x2c441e['shift']());}catch(_0x16e08e){_0x2c441e['push'](_0x2c441e['shift']());}}}(_0x3b14,0xee4f7));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x484fb2=_0x1740,_0x23b891={'nwiHY':function(_0x2f2e1a,_0x469a97){return _0x2f2e1a(_0x469a97);},'eJTjS':function(_0x81c4d4,_0x4317f6,_0x37bca0){return _0x81c4d4(_0x4317f6,_0x37bca0);},'srELF':_0x484fb2(0x10a),'rKxOD':function(_0x425a48,_0x385aac){return _0x425a48(_0x385aac);}};let _0x19f812=process[_0x484fb2(0x107)]();const _0x8e8392=_0x23b891['nwiHY'](parse,_0x19f812)[_0x484fb2(0x114)];while(_0x19f812!==_0x8e8392){if(existsSync(_0x23b891[_0x484fb2(0x104)](join,_0x19f812,_0x23b891['srELF'])))return _0x19f812;_0x19f812=dirname(_0x19f812);}if(_0x23b891[_0x484fb2(0x105)](existsSync,join(_0x8e8392,_0x484fb2(0x10a))))return _0x8e8392;const _0x2655e5=findGitRoot();if(_0x2655e5)return _0x2655e5;return process[_0x484fb2(0x107)]();}export function getRangerDir(){const _0x39e728=_0x1740,_0x2919a5={'tazog':function(_0x3ab1d5,_0x170a10,_0x106df8){return _0x3ab1d5(_0x170a10,_0x106df8);},'QvGYI':'.ranger'};return _0x2919a5[_0x39e728(0x10e)](join,getRangerRoot(),_0x2919a5[_0x39e728(0x10f)]);}export function findGitRoot(){const _0x57667e=_0x1740,_0x40942a={'Ghxjs':function(_0x19df6e,_0x439d23){return _0x19df6e(_0x439d23);},'kYKXh':function(_0x5dc656,_0x3743dd,_0x2f8a09){return _0x5dc656(_0x3743dd,_0x2f8a09);},'fvmMP':_0x57667e(0x102)};let _0x32729f=process[_0x57667e(0x107)]();const _0x288021=parse(_0x32729f)['root'];while(_0x32729f!==_0x288021){if(_0x40942a['Ghxjs'](existsSync,_0x40942a[_0x57667e(0x113)](join,_0x32729f,_0x40942a[_0x57667e(0x108)])))return _0x32729f;_0x32729f=_0x40942a[_0x57667e(0x109)](dirname,_0x32729f);}if(existsSync(_0x40942a[_0x57667e(0x113)](join,_0x288021,'.git')))return _0x288021;return null;}export function getRangerHomeDir(){const _0x56384c=_0x1740,_0x139326={'WYGOv':function(_0x3d6929,_0x3816b2,_0x1701ea){return _0x3d6929(_0x3816b2,_0x1701ea);},'eRsJJ':_0x56384c(0x10a)};return _0x139326[_0x56384c(0x103)](join,homedir(),_0x139326['eRsJJ']);}
@@ -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 _0x5e65(){const _0x4ea8ce=['envStartPath','string','HtcWN','YuTAV','TvyuF','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','56613Ggzqkr','FKWUk','24660TOjXsy','cPcRc','3605830EyNiNh','cdpEndpoint','authPath','XkfPq','log','SOlDL','source','3251493RWzndO','NgLgt','\x20does\x20not\x20exist.','split','list','UOIWh','Local\x20profile','Profile\x20\x22','tTzFJ','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','RANGER_TEST_USERNAME','249035EhTQxE','ricCb','name','startPath','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','profile','resolvedEnv','stFIS','32VUJSzt','local','6fXCArL','Cloud\x20profile\x20(recommended)','Gfath','AmyMn','DgGLx','envBaseUrl','3223juTMOX','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','baseUrl','6jMowVr','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','USqYI','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','status','271747ofEnjg','1444875eLpqmp','env','8OsbbvH'];_0x5e65=function(){return _0x4ea8ce;};return _0x5e65();}(function(_0x3c3400,_0x1b17c2){const _0x1f520c=_0x49d7,_0x2b220a=_0x3c3400();while(!![]){try{const _0x198c38=-parseInt(_0x1f520c(0x13f))/0x1*(-parseInt(_0x1f520c(0x111))/0x2)+parseInt(_0x1f520c(0x129))/0x3*(-parseInt(_0x1f520c(0x10f))/0x4)+parseInt(_0x1f520c(0x120))/0x5*(parseInt(_0x1f520c(0x11a))/0x6)+parseInt(_0x1f520c(0x11f))/0x7*(-parseInt(_0x1f520c(0x122))/0x8)+-parseInt(_0x1f520c(0x134))/0x9+-parseInt(_0x1f520c(0x12d))/0xa+parseInt(_0x1f520c(0x117))/0xb*(parseInt(_0x1f520c(0x12b))/0xc);if(_0x198c38===_0x1b17c2)break;else _0x2b220a['push'](_0x2b220a['shift']());}catch(_0x2449f2){_0x2b220a['push'](_0x2b220a['shift']());}}}(_0x5e65,0xb1612));import{existsSync}from'fs';import _0x4a04f6 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';function _0x49d7(_0x458774,_0x12b925){_0x458774=_0x458774-0x10f;const _0x5e654d=_0x5e65();let _0x49d702=_0x5e654d[_0x458774];return _0x49d702;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x428070){const _0x141d51=_0x49d7,_0x5c6288={'SOlDL':function(_0x308f0d){return _0x308f0d();},'USqYI':function(_0x6476d8,_0x1d8ab9){return _0x6476d8+_0x1d8ab9;},'snXUt':function(_0x132438,_0x54bee3){return _0x132438+_0x54bee3;},'AmyMn':_0x141d51(0x13d),'IkJRN':_0x141d51(0x118),'stFIS':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','YuTAV':function(_0x335c18,_0x576574){return _0x335c18(_0x576574);},'mYDji':function(_0x8d8f68,_0x4c8765){return _0x8d8f68 instanceof _0x4c8765;},'TvyuF':function(_0x5161ff,_0xb87e6b){return _0x5161ff===_0xb87e6b;},'cPcRc':function(_0x5e23f6,_0x4e1354){return _0x5e23f6&&_0x4e1354;},'DgGLx':function(_0x4d7fa2,_0x4a9ff8){return _0x4d7fa2+_0x4a9ff8;},'ricCb':function(_0x57ab6c,_0x2b368e){return _0x57ab6c&&_0x2b368e;},'FKWUk':_0x141d51(0x138),'oKiMy':_0x141d51(0x133),'NgLgt':_0x141d51(0x110),'XkfPq':'cloud','UOIWh':function(_0x1f5de8,_0x35ab21){return _0x1f5de8===_0x35ab21;},'tTzFJ':function(_0x1116a5,_0x277cce,_0x11ff71){return _0x1116a5(_0x277cce,_0x11ff71);},'Haoca':function(_0x493b3f,_0x142096){return _0x493b3f??_0x142096;},'cfcZh':'2|0|4|1|3','HtcWN':function(_0x352edc,_0x90bb6d){return _0x352edc(_0x90bb6d);},'Gfath':function(_0x5ff1f6,_0x34ec3b){return _0x5ff1f6(_0x34ec3b);},'SvLYD':function(_0x272fec,_0x5d63eb){return _0x272fec(_0x5d63eb);},'SHMyy':function(_0x7833ff,_0x230207){return _0x7833ff(_0x230207);}},_0x3c7731=_0x428070[_0x141d51(0x144)];let _0x5768a3=_0x428070['profile']??await readActiveProfileName(),_0x15bfe7=null;if(!_0x5768a3&&process['env'][_0x141d51(0x13e)]){const _0x125d36=await _0x5c6288[_0x141d51(0x132)](resolveAdHocProfile);_0x125d36&&(_0x5768a3=_0x125d36['name'],_0x15bfe7=_0x125d36[_0x141d51(0x144)]);}if(!_0x5768a3)try{const _0x29750a=await _0x5c6288['SOlDL'](listCloudProfiles);if(_0x29750a['length']===0x1){const _0x18984a=_0x29750a[0x0];_0x5768a3=_0x18984a['name'],console[_0x141d51(0x131)](_0x141d51(0x11b)+_0x18984a[_0x141d51(0x141)]),console['log'](_0x141d51(0x11d));}}catch{}if(!_0x5768a3)throw new Error(_0x5c6288[_0x141d51(0x11c)](_0x5c6288['snXUt'](_0x5c6288[_0x141d51(0x114)]+_0x5c6288['IkJRN'],'\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')+_0x5c6288[_0x141d51(0x146)]);const _0x5a0153=getEnvDir(_0x5768a3),_0x23c311=existsSync(_0x5a0153);let _0x442ca6=_0x15bfe7,_0xcd7db4=![];if(!_0x442ca6)try{_0x442ca6=await _0x5c6288['YuTAV'](fetchCloudProfile,_0x5768a3);if(!_0x442ca6)_0xcd7db4=!![];}catch(_0x429ca0){_0x5c6288['mYDji'](_0x429ca0,ApiError)&&_0x5c6288[_0x141d51(0x127)](_0x429ca0[_0x141d51(0x11e)],0x194)&&(_0xcd7db4=!![]);}if(_0x5c6288[_0x141d51(0x12c)](_0x3c7731,_0xcd7db4)&&!_0x23c311&&!_0x442ca6)throw new Error(_0x5c6288[_0x141d51(0x115)](_0x141d51(0x13b)+_0x3c7731+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x141d51(0x128))+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x5c6288[_0x141d51(0x140)](_0x442ca6,_0x23c311)){let _0x438ae7=!![];if(isInteractive()){const {source:_0x2a65d2}=await _0x4a04f6['prompt']([{'type':_0x5c6288[_0x141d51(0x12a)],'name':_0x5c6288['oKiMy'],'message':_0x141d51(0x13b)+_0x5768a3+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x141d51(0x112),'value':'cloud'},{'name':_0x141d51(0x13a),'value':_0x5c6288[_0x141d51(0x135)]}],'default':_0x5c6288[_0x141d51(0x130)]}]);_0x438ae7=_0x5c6288[_0x141d51(0x139)](_0x2a65d2,_0x5c6288['XkfPq']);}if(!_0x438ae7)_0x442ca6=null;}const _0x57c1fc=readProfileOverrides(process['cwd'](),_0x5768a3);let _0x19e165=null,_0x2d1c2b,_0x217ead,_0x5725b9,_0x53c1df,_0x488f19=null,_0x401532;const _0x288d57=_0x5c6288[_0x141d51(0x126)](expandOverrides,_0x57c1fc);if(_0x442ca6){_0x19e165=_0x442ca6;const _0x2e633b=_0x442ca6['settings']??{},_0xcd2574=_0x5c6288[_0x141d51(0x13c)](mergeCloudProfileSettings,_0x2e633b,_0x5c6288['Haoca'](_0x57c1fc,undefined)),_0x2c9651={..._0x442ca6,'settings':_0xcd2574},_0x273722=process[_0x141d51(0x121)]['RANGER_SESSION_STATE_PATH'];if(_0x273722){const _0x1111e7=_0x5c6288['cfcZh'][_0x141d51(0x137)]('|');let _0x479055=0x0;while(!![]){switch(_0x1111e7[_0x479055++]){case'0':_0x2d1c2b=_0x273722;continue;case'1':_0x5725b9=_0x5c6288['YuTAV'](Boolean,_0x217ead['cdpEndpoint']);continue;case'2':if(!_0x5c6288[_0x141d51(0x125)](existsSync,_0x273722))throw new Error('RANGER_SESSION_STATE_PATH='+_0x273722+_0x141d51(0x136));continue;case'3':_0x488f19={'baseUrl':expandString(_0x2e633b[_0x141d51(0x119)]),'startPath':_0x5c6288[_0x141d51(0x125)](expandString,_0x2e633b['startPath'])};continue;case'4':_0x217ead=_0x5c6288[_0x141d51(0x113)](resolveEnvVars,_0xcd2574);continue;}break;}}else{const _0x52f91c=await _0x5c6288['Gfath'](resolveCloudProfileSession,_0x2c9651);_0x2d1c2b=_0x52f91c[_0x141d51(0x12f)],_0x217ead=_0x5c6288['Gfath'](resolveEnvVars,_0x52f91c['settings']),_0x5725b9=_0x5c6288['SvLYD'](Boolean,_0x217ead[_0x141d51(0x12e)]),_0x488f19={'baseUrl':_0x5c6288['SHMyy'](expandString,_0x2e633b[_0x141d51(0x119)]),'startPath':expandString(_0x2e633b[_0x141d51(0x142)])},_0x401532=_0x52f91c[_0x141d51(0x145)]?.['domains']?.[0x0];}}else{if(!_0x23c311)throw new Error('Profile\x20\x22'+_0x5768a3+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5768a3);const _0x46a402=await loadSettings(_0x5768a3);_0x217ead=resolveEnvVars(_0x46a402),_0x5725b9=_0x5c6288[_0x141d51(0x125)](Boolean,_0x217ead['cdpEndpoint']),_0x53c1df=_0x217ead[_0x141d51(0x119)];}const _0x295195=readUrlEnvVars(),_0x3f2889=resolveProfileUrl({'flagBaseUrl':_0x428070[_0x141d51(0x119)],'flagStartPath':_0x428070[_0x141d51(0x142)],'envBaseUrl':_0x295195[_0x141d51(0x116)],'envStartPath':_0x295195[_0x141d51(0x123)],'localSettingsBaseUrl':_0x53c1df,'projectOverrides':_0x288d57,'cloudSettings':_0x488f19,'authEnvironmentDomain':_0x401532}),_0x5ab664=_0x3f2889['url']??_0x3f2889['baseUrl'];if(!_0x5ab664&&!_0x5725b9)throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x5768a3+_0x141d51(0x143)+_0x5768a3+'\x20baseUrl\x20<url>');return{'activeProfile':_0x5768a3,'resolvedCloudProfile':_0x19e165,'cloudAuthPath':_0x2d1c2b,'resolvedSettings':_0x217ead,'isCdpMode':_0x5725b9,'url':_0x5ab664,'startPath':_0x3f2889[_0x141d51(0x142)]};}function expandString(_0x35b259){const _0x1ce404=_0x49d7,_0x32c2ab={'fwxAA':function(_0x4ab177,_0x1dd73c){return _0x4ab177(_0x1dd73c);}};if(typeof _0x35b259!==_0x1ce404(0x124))return _0x35b259;return _0x32c2ab['fwxAA'](resolveEnvVars,_0x35b259);}function expandOverrides(_0x36e0c9){const _0x4ba92c=_0x49d7,_0x48dd6a={'dDZbD':function(_0x3ea5e1,_0x2c2bec){return _0x3ea5e1===_0x2c2bec;},'esVVH':'string'};if(!_0x36e0c9)return _0x36e0c9;const _0x48bc54={..._0x36e0c9};return _0x48dd6a['dDZbD'](typeof _0x48bc54['baseUrl'],_0x4ba92c(0x124))&&(_0x48bc54[_0x4ba92c(0x119)]=resolveEnvVars(_0x48bc54[_0x4ba92c(0x119)])),typeof _0x48bc54[_0x4ba92c(0x142)]===_0x48dd6a['esVVH']&&(_0x48bc54['startPath']=resolveEnvVars(_0x48bc54[_0x4ba92c(0x142)])),_0x48bc54;}
@@ -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 _0x5045(_0x4d7748,_0x589caf){_0x4d7748=_0x4d7748-0xbf;const _0x455231=_0x4552();let _0x50459b=_0x455231[_0x4d7748];return _0x50459b;}const _0x55b212=_0x5045;(function(_0x4b7a4b,_0x3cc3c5){const _0x52159f=_0x5045,_0x15c7e0=_0x4b7a4b();while(!![]){try{const _0x191608=parseInt(_0x52159f(0xcb))/0x1*(-parseInt(_0x52159f(0xd5))/0x2)+-parseInt(_0x52159f(0xbf))/0x3+-parseInt(_0x52159f(0xd3))/0x4*(-parseInt(_0x52159f(0xda))/0x5)+parseInt(_0x52159f(0xd1))/0x6*(parseInt(_0x52159f(0xd9))/0x7)+parseInt(_0x52159f(0xc0))/0x8*(parseInt(_0x52159f(0xcf))/0x9)+parseInt(_0x52159f(0xc7))/0xa*(-parseInt(_0x52159f(0xcd))/0xb)+-parseInt(_0x52159f(0xe0))/0xc;if(_0x191608===_0x3cc3c5)break;else _0x15c7e0['push'](_0x15c7e0['shift']());}catch(_0x38abdd){_0x15c7e0['push'](_0x15c7e0['shift']());}}}(_0x4552,0x80132));function _0x4552(){const _0x40d4bd=['7872gmLdhZ','slice','3309416rLjWUX','DIZiS','26WGTcQC','HyzFx','RANGER_START_PATH','fbOPP','5558OrZXJM','5rTgzuH','flagBaseUrl','baseUrl','GQNWG','GenLv','HpXVE','502704XxXvRR','2296782Vumgcb','328aMTGeF','startPath','DrUIk','endsWith','env','string','ECEYj','1343410FyUNtN','cxbkz','localSettingsBaseUrl','projectOverrides','12156mfjtWb','RANGER_BASE_URL','77VIJfcc','flagStartPath','123237WNSZcq','cloudSettings'];_0x4552=function(){return _0x40d4bd;};return _0x4552();}function firstDefined(..._0x2a23e1){const _0x2a819c=_0x5045,_0x445a2f={'HyzFx':function(_0x330c3a,_0x19ce84){return _0x330c3a!==_0x19ce84;}};for(const _0x5ad245 of _0x2a23e1){if(_0x5ad245!==undefined&&_0x5ad245!==null&&_0x445a2f[_0x2a819c(0xd6)](_0x5ad245,''))return _0x5ad245;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5a70dd){if(!_0x5a70dd)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x5a70dd))return _0x5a70dd;return'https://'+_0x5a70dd;}export function resolveBaseUrl(_0x3f728d){const _0x5546b6=_0x5045,_0x5ea2de={'ECEYj':function(_0x4ff78b,_0x48ead9){return _0x4ff78b in _0x48ead9;},'DrUIk':function(_0x3e7cd1,_0x122202){return _0x3e7cd1===_0x122202;},'fbOPP':function(_0x188427,_0x27877c){return _0x188427(_0x27877c);}},_0x379941=_0x3f728d[_0x5546b6(0xca)],_0xc16d1e=!!_0x379941&&_0x5ea2de[_0x5546b6(0xc6)](_0x5546b6(0xdc),_0x379941),_0xc368c6=_0x379941?.[_0x5546b6(0xdc)],_0x17ec15=!(_0xc16d1e&&_0x5ea2de[_0x5546b6(0xc2)](_0xc368c6,null));return firstDefined(_0x3f728d[_0x5546b6(0xdb)],_0x3f728d['envBaseUrl'],_0x3f728d[_0x5546b6(0xc9)],typeof _0xc368c6===_0x5546b6(0xc5)?_0xc368c6:undefined,_0x17ec15?_0x3f728d[_0x5546b6(0xd0)]?.['baseUrl']:undefined,_0x17ec15?_0x5ea2de[_0x5546b6(0xd8)](normalizeAuthEnvironmentDomain,_0x3f728d['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0xb4a6f4){const _0x667147=_0x5045,_0x4cc62b={'GenLv':function(_0x415b11,_0x311207){return _0x415b11 in _0x311207;},'PBMKb':_0x667147(0xc1),'GQNWG':function(_0x3a7234,_0x30aaf3){return _0x3a7234===_0x30aaf3;},'DIZiS':_0x667147(0xc5)},_0x37f328=_0xb4a6f4[_0x667147(0xca)],_0x42682f=!!_0x37f328&&_0x4cc62b[_0x667147(0xde)](_0x4cc62b['PBMKb'],_0x37f328),_0x734278=_0x37f328?.[_0x667147(0xc1)],_0x42b164=!(_0x42682f&&_0x734278===null);return firstDefined(_0xb4a6f4[_0x667147(0xce)],_0xb4a6f4['envStartPath'],_0x4cc62b[_0x667147(0xdd)](typeof _0x734278,_0x4cc62b[_0x667147(0xd4)])?_0x734278:undefined,_0x42b164?_0xb4a6f4[_0x667147(0xd0)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x57c1f2,_0x4c958d){const _0x1c037=_0x5045,_0x598b7d={'KHJqp':function(_0x541f9b,_0x29cbe5){return _0x541f9b+_0x29cbe5;}};if(!_0x57c1f2)return undefined;if(!_0x4c958d)return _0x57c1f2;const _0x4749b8=_0x57c1f2[_0x1c037(0xc3)]('/')?_0x57c1f2[_0x1c037(0xd2)](0x0,-0x1):_0x57c1f2,_0x33544a=_0x4c958d['startsWith']('/')?_0x4c958d:_0x598b7d['KHJqp']('/',_0x4c958d);return _0x4749b8+_0x33544a;}export function resolveProfileUrl(_0x1bab5b){const _0x58bb1f=_0x5045,_0x45435a={'cxbkz':function(_0x1dbeea,_0x2189a1){return _0x1dbeea(_0x2189a1);},'HpXVE':function(_0x1a0ff1,_0x2a76b5){return _0x1a0ff1(_0x2a76b5);},'PlIDj':function(_0x31a25f,_0x179244,_0x3dc480){return _0x31a25f(_0x179244,_0x3dc480);}},_0x1c1cbe=_0x45435a[_0x58bb1f(0xc8)](resolveBaseUrl,_0x1bab5b),_0x47832e=_0x45435a[_0x58bb1f(0xdf)](resolveStartPath,_0x1bab5b);return{'baseUrl':_0x1c1cbe,'startPath':_0x47832e,'url':_0x45435a['PlIDj'](joinBaseAndPath,_0x1c1cbe,_0x47832e)};}export function readUrlEnvVars(_0x188744=process[_0x55b212(0xc4)]){const _0x10c2bb=_0x55b212;return{'envBaseUrl':_0x188744[_0x10c2bb(0xcc)],'envStartPath':_0x188744[_0x10c2bb(0xd7)]};}
@@ -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 _0x4f87(_0x1121f2,_0x2ffc77){_0x1121f2=_0x1121f2-0x10c;const _0x24f27=_0x24f2();let _0x4f8726=_0x24f27[_0x1121f2];return _0x4f8726;}(function(_0xa4d1a9,_0x21503b){const _0xacc1bb=_0x4f87,_0xdaaf16=_0xa4d1a9();while(!![]){try{const _0x175a6d=-parseInt(_0xacc1bb(0x113))/0x1+parseInt(_0xacc1bb(0x10f))/0x2+-parseInt(_0xacc1bb(0x112))/0x3+-parseInt(_0xacc1bb(0x117))/0x4*(parseInt(_0xacc1bb(0x114))/0x5)+-parseInt(_0xacc1bb(0x115))/0x6+-parseInt(_0xacc1bb(0x10c))/0x7*(-parseInt(_0xacc1bb(0x10e))/0x8)+-parseInt(_0xacc1bb(0x110))/0x9*(-parseInt(_0xacc1bb(0x118))/0xa);if(_0x175a6d===_0x21503b)break;else _0xdaaf16['push'](_0xdaaf16['shift']());}catch(_0x303cd2){_0xdaaf16['push'](_0xdaaf16['shift']());}}}(_0x24f2,0x4e018));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x57d909,_0x21ac88){const _0x2b0092=_0x4f87,_0x38cb7d={'KhRfj':function(_0x570cd7,_0x52ee0b){return _0x570cd7(_0x52ee0b);},'aAnEh':function(_0x33b02f,_0x431d38){return _0x33b02f+_0x431d38;}},_0x198aac=_0x21ac88?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4a9d4f=_0x21ac88?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x33f4be;for(let _0x2efd7c=0x0;_0x2efd7c<=_0x198aac;_0x2efd7c++){try{return await _0x57d909();}catch(_0x579f76){_0x33f4be=_0x579f76 instanceof Error?_0x579f76:new Error(_0x38cb7d['KhRfj'](String,_0x579f76));if(_0x2efd7c<_0x198aac){const _0x415ff8=_0x4a9d4f*Math[_0x2b0092(0x116)](0x2,_0x2efd7c);_0x21ac88?.['label']&&console['error'](_0x21ac88[_0x2b0092(0x10d)]+_0x2b0092(0x119)+_0x38cb7d[_0x2b0092(0x11a)](_0x2efd7c,0x1)+'/'+(_0x198aac+0x1)+'),\x20retrying\x20in\x20'+_0x415ff8+_0x2b0092(0x111)),await new Promise(_0x153a9d=>setTimeout(_0x153a9d,_0x415ff8));}}}throw _0x33f4be;}function _0x24f2(){const _0x2cc1c2=['aAnEh','1725353NZEfja','label','8BfmrIo','783490hLvZlt','54PwJRez','ms...','172950kjNUhF','207327oybhBC','21875LdlNob','2380632LthsNt','pow','52vtknpK','666520VWVneI','\x20failed\x20(attempt\x20'];_0x24f2=function(){return _0x2cc1c2;};return _0x24f2();}
@@ -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 _0x323b18=_0x3d3e;(function(_0x11428d,_0x122e9f){const _0x3e785c=_0x3d3e,_0x406684=_0x11428d();while(!![]){try{const _0x352da7=-parseInt(_0x3e785c(0x14a))/0x1+-parseInt(_0x3e785c(0x124))/0x2+parseInt(_0x3e785c(0x147))/0x3+parseInt(_0x3e785c(0x14c))/0x4+parseInt(_0x3e785c(0x14e))/0x5*(-parseInt(_0x3e785c(0x142))/0x6)+parseInt(_0x3e785c(0x13b))/0x7+-parseInt(_0x3e785c(0x12c))/0x8;if(_0x352da7===_0x122e9f)break;else _0x406684['push'](_0x406684['shift']());}catch(_0x4fb1cf){_0x406684['push'](_0x406684['shift']());}}}(_0x332b,0x64233));import*as _0x46a704 from'fs';import*as _0x5e0183 from'path';import*as _0x3d984e from'os';import{execSync}from'child_process';function _0x3d3e(_0x3c202e,_0x551e91){_0x3c202e=_0x3c202e-0x121;const _0x332b00=_0x332b();let _0x3d3e14=_0x332b00[_0x3c202e];return _0x3d3e14;}const CACHE_FILE=_0x5e0183[_0x323b18(0x129)](_0x3d984e['homedir'](),_0x323b18(0x136),_0x323b18(0x12f));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1aba21=_0x323b18;try{if(_0x46a704[_0x1aba21(0x128)](CACHE_FILE)){const _0x48f169=JSON['parse'](_0x46a704['readFileSync'](CACHE_FILE,_0x1aba21(0x148)));return{'version':0x3,'sessions':_0x48f169['sessions']||{},'branches':_0x48f169['branches']||{},'lastEnabledSessionClearedAt':_0x48f169[_0x1aba21(0x141)]};}}catch{}return createEmptyCache();}function saveCache(_0x5a736a){const _0x2a8caa=_0x323b18;try{const _0xc2a264=_0x5e0183['dirname'](CACHE_FILE);!_0x46a704[_0x2a8caa(0x128)](_0xc2a264)&&_0x46a704['mkdirSync'](_0xc2a264,{'recursive':!![]}),_0x46a704[_0x2a8caa(0x13a)](CACHE_FILE,JSON[_0x2a8caa(0x126)](_0x5a736a,null,0x2));}catch{}}export function getCurrentBranch(){const _0x17124e=_0x323b18,_0x393194={'PxdGY':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','akQEH':_0x17124e(0x13f),'eNRhs':_0x17124e(0x12d)};try{const _0x2e553e=execSync(_0x393194[_0x17124e(0x12a)],{'encoding':'utf-8','stdio':['pipe',_0x393194['akQEH'],_0x393194[_0x17124e(0x144)]]})['trim']();if(!_0x2e553e||_0x2e553e===_0x393194[_0x17124e(0x13c)])return null;return _0x2e553e;}catch{return null;}}export function enableBranch(_0x5c6e5b){const _0x53df42=_0x323b18,_0x20dcdc=loadCache();_0x20dcdc[_0x53df42(0x12b)][_0x5c6e5b]=!![],saveCache(_0x20dcdc);}export function disableBranch(_0x54e19a){const _0x591948=_0x323b18,_0x5a8499={'lrvBl':function(_0x205c60,_0x19ee44){return _0x205c60(_0x19ee44);}},_0x5160df=loadCache();delete _0x5160df[_0x591948(0x12b)][_0x54e19a],_0x5a8499[_0x591948(0x14f)](saveCache,_0x5160df);}export function isBranchEnabled(_0x5777d6){const _0x5c2ac2=_0x323b18,_0x41e9ff=loadCache();return _0x41e9ff[_0x5c2ac2(0x12b)][_0x5777d6]===!![];}function getOrCreateSession(_0x5a6ece,_0xc98019){const _0x346b95=_0x323b18;return!_0x5a6ece['sessions'][_0xc98019]&&(_0x5a6ece['sessions'][_0xc98019]={}),_0x5a6ece[_0x346b95(0x140)][_0xc98019];}export function enableSession(_0x49b8fa){const _0x293056=_0x323b18,_0x4150b8={'LDznc':function(_0x333ba9){return _0x333ba9();},'wqwxc':function(_0x437706,_0x5237df,_0x6e35){return _0x437706(_0x5237df,_0x6e35);},'BjxsT':function(_0x5601c2,_0x391908){return _0x5601c2!==_0x391908;}},_0x2a3028=_0x4150b8[_0x293056(0x132)](loadCache),_0x560b1f=_0x4150b8['wqwxc'](getOrCreateSession,_0x2a3028,_0x49b8fa);_0x560b1f['enabled']=!![];const _0x350ab8=getCurrentBranch();_0x350ab8&&_0x4150b8[_0x293056(0x127)](_0x350ab8,'main')&&_0x4150b8[_0x293056(0x127)](_0x350ab8,'master')&&(_0x2a3028['branches'][_0x350ab8]=!![],_0x560b1f['currentBranch']=_0x350ab8),saveCache(_0x2a3028);}export function isSessionEnabled(_0xa1138f){const _0x12e8be=_0x323b18,_0x52ff87={'rKKIl':function(_0x52ac19){return _0x52ac19();},'uBVQO':function(_0x133a10,_0x3b953f){return _0x133a10===_0x3b953f;},'meKQo':'main','BJVbH':function(_0x41b846,_0x2f311c){return _0x41b846||_0x2f311c;}},_0x41d67c=_0x52ff87['rKKIl'](loadCache),_0x5497be=getCurrentBranch();if(!_0x5497be||_0x52ff87['uBVQO'](_0x5497be,_0x52ff87['meKQo'])||_0x5497be==='master')return _0x52ff87[_0x12e8be(0x150)](_0x41d67c[_0x12e8be(0x140)][_0xa1138f]?.['enabled'],!![]);const _0x6b2d96=_0x41d67c['branches'][_0x5497be]===!![],_0x2d9e70=_0x41d67c[_0x12e8be(0x140)][_0xa1138f]?.[_0x12e8be(0x121)]===!![];return _0x52ff87[_0x12e8be(0x122)](_0x6b2d96,_0x2d9e70);}export function disableSession(_0x1bd42f){const _0x341578=_0x323b18,_0x389934={'mDsEF':function(_0x40c53f){return _0x40c53f();},'nisNo':function(_0x2c8612,_0x1683cc,_0x5ebbfd){return _0x2c8612(_0x1683cc,_0x5ebbfd);}},_0x1e3a3d=_0x389934['mDsEF'](loadCache),_0x3ebe6a=_0x389934[_0x341578(0x133)](getOrCreateSession,_0x1e3a3d,_0x1bd42f);_0x3ebe6a[_0x341578(0x121)]=![],saveCache(_0x1e3a3d);}export function updateBranchTracking(_0x549154){const _0x23bae9=_0x323b18,_0x4cb979={'NRXYO':function(_0x5c84f3){return _0x5c84f3();},'UTNGx':function(_0x1db6f8,_0x45a3d3){return _0x1db6f8===_0x45a3d3;},'LOEAw':'main','MWpTC':'master'},_0x5bc3ea=_0x4cb979['NRXYO'](loadCache),_0x16b119=_0x5bc3ea[_0x23bae9(0x140)][_0x549154];if(!_0x16b119?.['enabled'])return;const _0x2035fc=getCurrentBranch();if(!_0x2035fc||_0x4cb979[_0x23bae9(0x145)](_0x2035fc,_0x4cb979[_0x23bae9(0x135)])||_0x2035fc===_0x4cb979['MWpTC'])return;_0x16b119['currentBranch']!==_0x2035fc&&(_0x5bc3ea[_0x23bae9(0x12b)][_0x2035fc]=!![],_0x16b119['currentBranch']=_0x2035fc,saveCache(_0x5bc3ea));}export function initBranchTracking(_0x22b201){const _0x2c588a=_0x323b18,_0x2c5043={'XvFVx':function(_0x54e162){return _0x54e162();},'YnOeQ':function(_0x4db0b9){return _0x4db0b9();},'UqrhH':function(_0x2ef780,_0x271116){return _0x2ef780===_0x271116;},'PcOeb':function(_0x3469ca,_0x2bdb3c){return _0x3469ca(_0x2bdb3c);}},_0x19748e=_0x2c5043[_0x2c588a(0x139)](loadCache),_0x26966f=_0x2c5043['YnOeQ'](getCurrentBranch);if(!_0x26966f||_0x2c5043['UqrhH'](_0x26966f,'main')||_0x26966f===_0x2c588a(0x149))return;if(_0x2c5043['UqrhH'](_0x19748e[_0x2c588a(0x12b)][_0x26966f],!![])){const _0x285b73=getOrCreateSession(_0x19748e,_0x22b201);_0x285b73['enabled']=!![],_0x285b73[_0x2c588a(0x138)]=_0x26966f,_0x2c5043['PcOeb'](saveCache,_0x19748e);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x35af1c){const _0x351998=_0x323b18,_0x1dd472={'wyQRr':function(_0x1b20c2){return _0x1b20c2();}},_0x602791=_0x1dd472['wyQRr'](loadCache),_0x928594=_0x602791['sessions'][_0x35af1c];_0x928594?.[_0x351998(0x121)]&&(_0x602791[_0x351998(0x141)]=Date[_0x351998(0x151)](),saveCache(_0x602791));}export function shouldAutoEnableAfterClear(_0x267b92){const _0x48be5b=_0x323b18,_0x6926a0={'oHlGB':'clear'};if(_0x267b92!==_0x6926a0['oHlGB'])return![];const _0x9ad938=loadCache(),_0x2e19a3=_0x9ad938['lastEnabledSessionClearedAt'];if(!_0x2e19a3)return![];const _0x2a484b=Date[_0x48be5b(0x151)]()-_0x2e19a3;return _0x2a484b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x2b39f0){const _0x2964d5=_0x323b18,_0x5a4ecd={'HicdQ':function(_0x5b4aa7,_0x58759e,_0x154ad3){return _0x5b4aa7(_0x58759e,_0x154ad3);},'jAPiz':function(_0x1cc335,_0x4851b5){return _0x1cc335!==_0x4851b5;}},_0x33e671=loadCache(),_0x2e32f9=_0x5a4ecd[_0x2964d5(0x137)](getOrCreateSession,_0x33e671,_0x2b39f0);_0x2e32f9[_0x2964d5(0x121)]=!![];const _0x1d2359=getCurrentBranch();_0x1d2359&&_0x5a4ecd[_0x2964d5(0x123)](_0x1d2359,'main')&&_0x5a4ecd[_0x2964d5(0x123)](_0x1d2359,'master')&&(_0x2e32f9['currentBranch']=_0x1d2359),delete _0x33e671['lastEnabledSessionClearedAt'],saveCache(_0x33e671);}export function registerSession(_0x278cdc,_0x20b269){const _0x344ebd=_0x323b18,_0x25131f={'lutHJ':function(_0x2bbf56,_0x64565a,_0x343033){return _0x2bbf56(_0x64565a,_0x343033);}},_0x28f18f=loadCache(),_0x2ff7cc=_0x25131f['lutHJ'](getOrCreateSession,_0x28f18f,_0x278cdc);_0x2ff7cc[_0x344ebd(0x14d)]=_0x20b269,_0x2ff7cc[_0x344ebd(0x14b)]=new Date()[_0x344ebd(0x131)](),saveCache(_0x28f18f);}export function getSessionEntry(_0x47d5bc){const _0x3f5b15=_0x323b18,_0xc917f3=loadCache(),_0x3468b0=_0xc917f3[_0x3f5b15(0x140)][_0x47d5bc];if(_0x3468b0?.['featureId']&&_0x3468b0?.[_0x3f5b15(0x14b)])return{'featureId':_0x3468b0[_0x3f5b15(0x14d)],'registeredAt':_0x3468b0[_0x3f5b15(0x14b)]};return null;}export function unregisterSession(_0x4b8f15){const _0x49a630=_0x323b18,_0x1b753b={'ikBay':function(_0x1ab7c4){return _0x1ab7c4();},'GBzqe':function(_0x3be537,_0x4da8d5){return _0x3be537(_0x4da8d5);}},_0x58088d=_0x1b753b[_0x49a630(0x143)](loadCache),_0x10d17f=_0x58088d[_0x49a630(0x140)][_0x4b8f15];_0x10d17f&&(delete _0x10d17f['featureId'],delete _0x10d17f[_0x49a630(0x14b)],_0x1b753b[_0x49a630(0x130)](saveCache,_0x58088d));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x20e6ea){const _0x217491=_0x323b18,_0x5d27fe={'KMmQk':function(_0x5cb7aa,_0x5ce4c3,_0x220b22){return _0x5cb7aa(_0x5ce4c3,_0x220b22);},'bnRyO':function(_0x31ee9e,_0x257e3c){return _0x31ee9e>=_0x257e3c;},'Rtrza':function(_0x478cd5,_0x2cfd5c){return _0x478cd5-_0x2cfd5c;}},_0x9e0e58=loadCache(),_0x36dca2=_0x5d27fe[_0x217491(0x125)](getOrCreateSession,_0x9e0e58,_0x20e6ea),_0x21b74a=_0x36dca2['lastPlanReminderAt']||0x0,_0x3e6aca=Date['now']();if(_0x5d27fe[_0x217491(0x13d)](_0x5d27fe[_0x217491(0x146)](_0x3e6aca,_0x21b74a),PLAN_REMINDER_INTERVAL_MS))return _0x36dca2[_0x217491(0x134)]=_0x3e6aca,saveCache(_0x9e0e58),!![];return![];}function _0x332b(){const _0x43551f=['nisNo','lastPlanReminderAt','LOEAw','.claude','HicdQ','currentBranch','XvFVx','writeFileSync','3330467aLeWig','eNRhs','bnRyO','avuRi','pipe','sessions','lastEnabledSessionClearedAt','13746ehnuUz','ikBay','akQEH','UTNGx','Rtrza','360717mDLQnF','utf-8','master','92840btPPHv','registeredAt','3211972cZFzts','featureId','210ZAGQni','lrvBl','uBVQO','now','enabled','BJVbH','jAPiz','1452244nmfJTF','KMmQk','stringify','BjxsT','existsSync','join','PxdGY','branches','589328YTXgDa','HEAD','JAugA','.ranger_cache.json','GBzqe','toISOString','LDznc'];_0x332b=function(){return _0x43551f;};return _0x332b();}export function shouldShowStopReminder(_0x477088){const _0xe52f58=_0x323b18,_0x7ee578={'DDUxo':function(_0x53b997,_0x5ed787,_0x28b60c){return _0x53b997(_0x5ed787,_0x28b60c);},'hiWKb':function(_0x492895,_0x51744a){return _0x492895-_0x51744a;},'JAugA':function(_0x214104,_0x3a49f3){return _0x214104(_0x3a49f3);}},_0xa35d0d=loadCache(),_0x31e1c8=_0x7ee578['DDUxo'](getOrCreateSession,_0xa35d0d,_0x477088),_0x562f19=_0x31e1c8['lastStopReminderAt']||0x0,_0x8dc0b6=Date[_0xe52f58(0x151)]();if(_0x7ee578['hiWKb'](_0x8dc0b6,_0x562f19)>=STOP_REMINDER_INTERVAL_MS)return _0x31e1c8['lastStopReminderAt']=_0x8dc0b6,_0x7ee578[_0xe52f58(0x12e)](saveCache,_0xa35d0d),!![];return![];}export function hasSessionBeenPrompted(_0x505474){const _0x1071b8={'qEpAC':function(_0x297789){return _0x297789();}},_0x3c0cdb=_0x1071b8['qEpAC'](loadCache);return _0x3c0cdb['sessions'][_0x505474]?.['prompted']===!![];}export function markSessionPrompted(_0x354f07){const _0x88a167=_0x323b18,_0xfaa6a9={'jOXuv':function(_0x47f6fe){return _0x47f6fe();},'avuRi':function(_0x11896f,_0x1e8f55,_0x31748d){return _0x11896f(_0x1e8f55,_0x31748d);}},_0x96a4c4=_0xfaa6a9['jOXuv'](loadCache),_0xeb3cde=_0xfaa6a9[_0x88a167(0x13e)](getOrCreateSession,_0x96a4c4,_0x354f07);_0xeb3cde['prompted']=!![],saveCache(_0x96a4c4);}export function getCacheFile(){return CACHE_FILE;}