@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.a70fc60-4

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 (78) 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/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -1
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -1
  63. package/build/commands/utils/resolveProfileUrl.js +1 -1
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +1 -1
  78. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3f6f43,_0x17441f){const _0x271f65=_0x35e4,_0x3c15f5=_0x3f6f43();while(!![]){try{const _0xba4813=-parseInt(_0x271f65(0xaf))/0x1+parseInt(_0x271f65(0x95))/0x2*(parseInt(_0x271f65(0x9e))/0x3)+-parseInt(_0x271f65(0xa9))/0x4+parseInt(_0x271f65(0x9f))/0x5+parseInt(_0x271f65(0xad))/0x6+-parseInt(_0x271f65(0x9b))/0x7*(-parseInt(_0x271f65(0x9a))/0x8)+parseInt(_0x271f65(0x88))/0x9;if(_0xba4813===_0x17441f)break;else _0x3c15f5['push'](_0x3c15f5['shift']());}catch(_0x1943ff){_0x3c15f5['push'](_0x3c15f5['shift']());}}}(_0x1b3d,0xaf1df));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 _0x34ffbc=_0x35e4,_0x177a8d={'FCUmR':_0x34ffbc(0x8d)};return join(getRangerHomeDir(),_0x177a8d['FCUmR']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4ea49f=_0x35e4,_0x24bce2={'XxrcB':function(_0x32e505){return _0x32e505();},'IPvrc':function(_0x5c676b,_0x4fc7ff){return _0x5c676b(_0x4fc7ff);},'TEGTR':function(_0x53d2b3){return _0x53d2b3();},'puaQO':function(_0x3274db,_0x162c3a,_0x10ff16){return _0x3274db(_0x162c3a,_0x10ff16);},'IFPQZ':'utf-8','bgXSu':function(_0x3c6ec4){return _0x3c6ec4();},'pyiIW':function(_0xb04696,_0x4a8cd5){return _0xb04696 instanceof _0x4a8cd5;},'qyNCh':function(_0x3617e2,_0x242575){return _0x3617e2!==_0x242575;},'KmJNh':function(_0x57142b,_0x3c8324){return _0x57142b===_0x3c8324;},'uKRso':function(_0x157c72){return _0x157c72();}},_0x364635=_0x24bce2['XxrcB'](getProjectsConfigPath);if(!_0x24bce2['IPvrc'](existsSync,_0x364635))return _0x24bce2['TEGTR'](emptyConfig);let _0x223792;try{_0x223792=_0x24bce2['puaQO'](readFileSync,_0x364635,_0x24bce2['IFPQZ']);}catch(_0x15848f){const _0x3d7223=_0x15848f instanceof Error?_0x15848f['message']:String(_0x15848f);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x364635+':\x20'+_0x3d7223+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x24bce2[_0x4ea49f(0x97)](emptyConfig);}let _0x345999;try{_0x345999=JSON[_0x4ea49f(0x8a)](_0x223792);}catch(_0x162760){const _0x37f500=_0x24bce2['pyiIW'](_0x162760,Error)?_0x162760[_0x4ea49f(0x99)]:String(_0x162760);return console['warn']('[ranger]\x20Warning:\x20'+_0x364635+'\x20is\x20not\x20valid\x20JSON\x20('+_0x37f500+_0x4ea49f(0xa3)),emptyConfig();}if(!_0x345999||typeof _0x345999!==_0x4ea49f(0x87)||Array[_0x4ea49f(0xab)](_0x345999)||_0x24bce2['qyNCh'](_0x345999[_0x4ea49f(0x8e)],CURRENT_VERSION)||_0x24bce2['qyNCh'](typeof _0x345999['projects'],'object')||_0x24bce2[_0x4ea49f(0x98)](_0x345999[_0x4ea49f(0xa6)],null)||Array[_0x4ea49f(0xab)](_0x345999[_0x4ea49f(0xa6)]))return console[_0x4ea49f(0x93)]('[ranger]\x20Warning:\x20'+_0x364635+_0x4ea49f(0x8f)),_0x24bce2['uKRso'](emptyConfig);return _0x345999;}export function writeProjectsConfig(_0x4c1886){const _0x20f95c=_0x35e4,_0x180c5f={'YxiUW':function(_0x1ca678,_0x253d25){return _0x1ca678(_0x253d25);},'fpqbl':function(_0x4b0333,_0x31617d,_0x586fa5){return _0x4b0333(_0x31617d,_0x586fa5);},'rlmvH':_0x20f95c(0xa0),'DiCSk':function(_0x27f9a9,_0x1072a1,_0x40c96c){return _0x27f9a9(_0x1072a1,_0x40c96c);},'VLNSV':function(_0x30593e,_0x3dfa52){return _0x30593e(_0x3dfa52);}},_0x427f29=getProjectsConfigPath(),_0xeb285d=_0x180c5f['YxiUW'](dirname,_0x427f29);!existsSync(_0xeb285d)&&_0x180c5f[_0x20f95c(0x86)](mkdirSync,_0xeb285d,{'recursive':!![]});const _0x1f6b20=_0x427f29+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x15417c=JSON[_0x20f95c(0x9d)](_0x4c1886,null,0x2)+'\x0a';try{writeFileSync(_0x1f6b20,_0x15417c,{'encoding':_0x180c5f['rlmvH'],'mode':0x180}),_0x180c5f['DiCSk'](renameSync,_0x1f6b20,_0x427f29);}catch(_0x33eff6){try{existsSync(_0x1f6b20)&&_0x180c5f['VLNSV'](unlinkSync,_0x1f6b20);}catch{}throw _0x33eff6;}}export function readProfileOverrides(_0x320482,_0x45ee0b){const _0x222cdd=_0x35e4,_0x2f01dd=readProjectsConfig(),_0x57d2d2=_0x2f01dd['projects'][_0x320482];if(!_0x57d2d2||!_0x57d2d2['profiles'])return null;const _0x694dbb=_0x57d2d2['profiles'][_0x45ee0b];if(!_0x694dbb||!_0x694dbb[_0x222cdd(0x94)])return null;return _0x694dbb['settings']??null;}export function setProfileOverride(_0x24e5dc,_0x6a6aec,_0x21a7fa,_0xdadf23){const _0x321e4d=_0x35e4,_0x5edc65={'ysxHx':function(_0x473359){return _0x473359();},'jPxRa':function(_0x5ae67e,_0x110492,_0x46cefc,_0x4e3f3e){return _0x5ae67e(_0x110492,_0x46cefc,_0x4e3f3e);}};if(!_0x21a7fa)throw new Error('keyPath\x20is\x20required');const _0x5f5571=_0x5edc65[_0x321e4d(0xa5)](readProjectsConfig),_0x2b7732=_0x5f5571[_0x321e4d(0xa6)][_0x24e5dc]??={},_0xd1b47d=_0x2b7732[_0x321e4d(0xa8)]??={},_0x2b7921=_0xd1b47d[_0x6a6aec]??={},_0x282101=_0x2b7921['settings']??={};_0x5edc65['jPxRa'](setByKeyPath,_0x282101,_0x21a7fa,_0xdadf23),writeProjectsConfig(_0x5f5571);}export function unsetProfileOverride(_0x54224d,_0x362883,_0x4a2964){const _0x13a33f=_0x35e4,_0x33da2c={'SDPBE':_0x13a33f(0x90),'gNwzS':function(_0x5bb2e0){return _0x5bb2e0();},'PTBeA':function(_0x1f5202,_0x5a3b14,_0xbd59f9){return _0x1f5202(_0x5a3b14,_0xbd59f9);}};if(!_0x4a2964)throw new Error(_0x33da2c[_0x13a33f(0x8c)]);const _0x4b9322=_0x33da2c[_0x13a33f(0x8b)](readProjectsConfig),_0x2df73a=_0x4b9322['projects'][_0x54224d];if(!_0x2df73a?.['profiles'])return![];const _0x201d58=_0x2df73a['profiles'][_0x362883];if(!_0x201d58?.['settings'])return![];const _0x50e5e9=_0x33da2c[_0x13a33f(0xac)](deleteByKeyPath,_0x201d58[_0x13a33f(0x94)],_0x4a2964);if(!_0x50e5e9)return![];return writeProjectsConfig(_0x4b9322),!![];}export function resetProfileOverrides(_0x4c90a9,_0x7d6889){const _0x43a6dd=_0x35e4,_0x261a5b={'VEqeb':function(_0x18b768,_0x1913d6){return _0x18b768 in _0x1913d6;},'EQsRD':function(_0x54a602,_0xd0e2e0){return _0x54a602(_0xd0e2e0);}},_0x3acb3b=readProjectsConfig(),_0x431ee0=_0x3acb3b['projects'][_0x4c90a9];if(!_0x431ee0?.['profiles'])return;if(!_0x261a5b[_0x43a6dd(0xa4)](_0x7d6889,_0x431ee0[_0x43a6dd(0xa8)]))return;delete _0x431ee0[_0x43a6dd(0xa8)][_0x7d6889],Object[_0x43a6dd(0xae)](_0x431ee0['profiles'])[_0x43a6dd(0xaa)]===0x0&&delete _0x431ee0[_0x43a6dd(0xa8)],!_0x431ee0[_0x43a6dd(0xa8)]&&delete _0x3acb3b['projects'][_0x4c90a9],_0x261a5b['EQsRD'](writeProjectsConfig,_0x3acb3b);}export function mergeCloudProfileSettings(_0x59f7ff,_0x216d9a){const _0x23d5e4=_0x35e4,_0x47dc0b={'oiFbN':function(_0x58d9dc,_0x1760b0){return _0x58d9dc??_0x1760b0;},'vCIMA':function(_0x4a803b,_0x39ef66){return _0x4a803b===_0x39ef66;},'DkXlD':function(_0xebfbe3,_0x50e35c){return _0xebfbe3===_0x50e35c;},'OfnCp':function(_0x569743,_0x123be0){return _0x569743(_0x123be0);},'UISRR':function(_0x58ce28,_0xb7be64){return _0x58ce28(_0xb7be64);},'JBmdq':function(_0x43e8e7,_0x4b1339){return _0x43e8e7===_0x4b1339;}},_0x130feb={..._0x47dc0b['oiFbN'](_0x59f7ff,{})};if(!_0x216d9a)return _0x130feb;for(const [_0x982195,_0x538682]of Object[_0x23d5e4(0x89)](_0x216d9a)){if(_0x47dc0b[_0x23d5e4(0x91)](_0x538682,undefined))continue;if(_0x538682===null){delete _0x130feb[_0x982195];continue;}if(_0x47dc0b[_0x23d5e4(0x9c)](_0x982195,_0x23d5e4(0x92))||_0x982195==='setupHeaders'){const _0x5508b8=_0x47dc0b[_0x23d5e4(0xa7)](asRecord,_0x130feb[_0x982195])??{},_0x4d3659=_0x47dc0b[_0x23d5e4(0xa2)](asRecord,_0x538682);if(!_0x4d3659){_0x130feb[_0x982195]=_0x538682;continue;}const _0x1e78bd={..._0x5508b8};for(const [_0x437117,_0x970f95]of Object[_0x23d5e4(0x89)](_0x4d3659)){if(_0x47dc0b[_0x23d5e4(0xa1)](_0x970f95,null))delete _0x1e78bd[_0x437117];else _0x970f95!==undefined&&(_0x1e78bd[_0x437117]=_0x970f95);}_0x130feb[_0x982195]=_0x1e78bd;continue;}_0x130feb[_0x982195]=_0x538682;}return _0x130feb;}function _0x35e4(_0x4d6f8e,_0x2f05c9){_0x4d6f8e=_0x4d6f8e-0x84;const _0x1b3d70=_0x1b3d();let _0x35e42e=_0x1b3d70[_0x4d6f8e];return _0x35e42e;}function asRecord(_0x4ff0fe){const _0x47af76=_0x35e4,_0x1515b5={'sxIxr':function(_0x290e7d,_0x33bb5a){return _0x290e7d===_0x33bb5a;},'zARrj':_0x47af76(0x87)};return _0x4ff0fe&&_0x1515b5['sxIxr'](typeof _0x4ff0fe,_0x1515b5[_0x47af76(0x84)])&&!Array['isArray'](_0x4ff0fe)?_0x4ff0fe:undefined;}function setByKeyPath(_0x102b2d,_0x35bfb0,_0x18be89){const _0x9bf025=_0x35e4,_0x45f596={'GWIwr':function(_0x5c7fed,_0xd280a9){return _0x5c7fed!==_0xd280a9;}},_0x54d826=_0x35bfb0[_0x9bf025(0x85)]('.');let _0xcd7aa2=_0x102b2d;for(let _0x194f1c=0x0;_0x194f1c<_0x54d826['length']-0x1;_0x194f1c++){const _0xef22a1=_0x54d826[_0x194f1c],_0x5d2ee1=_0xcd7aa2[_0xef22a1];(!_0x5d2ee1||_0x45f596['GWIwr'](typeof _0x5d2ee1,'object')||Array['isArray'](_0x5d2ee1))&&(_0xcd7aa2[_0xef22a1]={}),_0xcd7aa2=_0xcd7aa2[_0xef22a1];}_0xcd7aa2[_0x54d826[_0x54d826[_0x9bf025(0xaa)]-0x1]]=_0x18be89;}function _0x1b3d(){const _0x453e78=['zARrj','split','fpqbl','object','5090004UCwOxS','entries','parse','gNwzS','SDPBE','projects.json','version','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','vCIMA','headers','warn','settings','51110wLydQE','uZwVn','bgXSu','KmJNh','message','56hPXQpJ','576247NqzJwx','DkXlD','stringify','111AGoJlX','197435XoqXGR','utf-8','JBmdq','UISRR',').\x20Ignoring\x20local\x20profile\x20overrides.','VEqeb','ysxHx','projects','OfnCp','profiles','5092040nqIWkj','length','isArray','PTBeA','7153698APlfZv','keys','1328819QmSFqX'];_0x1b3d=function(){return _0x453e78;};return _0x1b3d();}function deleteByKeyPath(_0x5ba8e5,_0x5c2ff7){const _0x41ea2d=_0x35e4,_0x48381f={'uZwVn':function(_0x43c6ec,_0x49c814){return _0x43c6ec-_0x49c814;}},_0x147fe4=_0x5c2ff7['split']('.');let _0x34eda2=_0x5ba8e5;for(let _0x5310ce=0x0;_0x5310ce<_0x147fe4['length']-0x1;_0x5310ce++){const _0x52f8bf=_0x147fe4[_0x5310ce],_0x48116c=_0x34eda2[_0x52f8bf];if(!_0x48116c||typeof _0x48116c!=='object'||Array['isArray'](_0x48116c))return![];_0x34eda2=_0x48116c;}const _0x47d968=_0x147fe4[_0x48381f[_0x41ea2d(0x96)](_0x147fe4[_0x41ea2d(0xaa)],0x1)];if(!(_0x47d968 in _0x34eda2))return![];return delete _0x34eda2[_0x47d968],!![];}
1
+ (function(_0x3f44e8,_0x2f5559){const _0x2cb41a=_0x4ecf,_0x205471=_0x3f44e8();while(!![]){try{const _0x92843f=parseInt(_0x2cb41a(0x1cc))/0x1*(parseInt(_0x2cb41a(0x1bd))/0x2)+parseInt(_0x2cb41a(0x1d3))/0x3+-parseInt(_0x2cb41a(0x1cd))/0x4+parseInt(_0x2cb41a(0x1da))/0x5*(parseInt(_0x2cb41a(0x1c2))/0x6)+-parseInt(_0x2cb41a(0x1c8))/0x7+parseInt(_0x2cb41a(0x1d5))/0x8*(-parseInt(_0x2cb41a(0x1c7))/0x9)+-parseInt(_0x2cb41a(0x1b9))/0xa*(-parseInt(_0x2cb41a(0x1d9))/0xb);if(_0x92843f===_0x2f5559)break;else _0x205471['push'](_0x205471['shift']());}catch(_0x1dd5ab){_0x205471['push'](_0x205471['shift']());}}}(_0x5ea6,0x2c8c1));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 _0xef26ac=_0x4ecf,_0x3ffa50={'IZQrj':function(_0xb1366,_0x50273f,_0xa6905e){return _0xb1366(_0x50273f,_0xa6905e);},'vQvGm':function(_0xd3db6b){return _0xd3db6b();}};return _0x3ffa50['IZQrj'](join,_0x3ffa50[_0xef26ac(0x1cb)](getRangerHomeDir),_0xef26ac(0x1bf));}function _0x4ecf(_0x19803f,_0x3d1a19){_0x19803f=_0x19803f-0x1b6;const _0x5ea617=_0x5ea6();let _0x4ecfc3=_0x5ea617[_0x19803f];return _0x4ecfc3;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x3d15d0=_0x4ecf,_0x479db5={'AHHWI':function(_0x34d0fc){return _0x34d0fc();},'CaDPe':function(_0x553c85,_0x313aab){return _0x553c85(_0x313aab);},'syidD':function(_0x8c7d0,_0xc1bc4d){return _0x8c7d0 instanceof _0xc1bc4d;},'LtsOe':function(_0x357a6f,_0x242685){return _0x357a6f instanceof _0x242685;},'Ewvtv':function(_0x2e8019){return _0x2e8019();},'InvKv':_0x3d15d0(0x1c5),'SsHMh':function(_0x367668,_0x4cc65){return _0x367668!==_0x4cc65;}},_0x2ecbed=_0x479db5['AHHWI'](getProjectsConfigPath);if(!_0x479db5[_0x3d15d0(0x1e1)](existsSync,_0x2ecbed))return emptyConfig();let _0x10358b;try{_0x10358b=readFileSync(_0x2ecbed,'utf-8');}catch(_0x4b61ac){const _0xba0100=_0x479db5['syidD'](_0x4b61ac,Error)?_0x4b61ac[_0x3d15d0(0x1b7)]:_0x479db5['CaDPe'](String,_0x4b61ac);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x2ecbed+':\x20'+_0xba0100+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x268fa7;try{_0x268fa7=JSON[_0x3d15d0(0x1d0)](_0x10358b);}catch(_0x350d16){const _0x27fc3d=_0x479db5[_0x3d15d0(0x1d4)](_0x350d16,Error)?_0x350d16[_0x3d15d0(0x1b7)]:_0x479db5['CaDPe'](String,_0x350d16);return console[_0x3d15d0(0x1c3)](_0x3d15d0(0x1dc)+_0x2ecbed+_0x3d15d0(0x1be)+_0x27fc3d+_0x3d15d0(0x1d8)),_0x479db5['Ewvtv'](emptyConfig);}if(!_0x268fa7||typeof _0x268fa7!==_0x479db5['InvKv']||Array[_0x3d15d0(0x1de)](_0x268fa7)||_0x479db5['SsHMh'](_0x268fa7[_0x3d15d0(0x1ca)],CURRENT_VERSION)||typeof _0x268fa7[_0x3d15d0(0x1ce)]!==_0x479db5['InvKv']||_0x268fa7['projects']===null||Array['isArray'](_0x268fa7['projects']))return console['warn'](_0x3d15d0(0x1dc)+_0x2ecbed+_0x3d15d0(0x1d6)),emptyConfig();return _0x268fa7;}function _0x5ea6(){const _0x19420c=['207837UzOOMt','997157DhgCUi','length','version','vQvGm','59725otfGEP','1397252erSXJq','projects','IGIfD','parse','pid','headers','298971hbrJHU','LtsOe','96BeESbb','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','pLRUR',').\x20Ignoring\x20local\x20profile\x20overrides.','22uklkYp','449210KxggIs','jbroM','[ranger]\x20Warning:\x20','profiles','isArray','zJFFb','dnLIa','CaDPe','entries','message','rnVVQ','2762770eeJwai','settings','now','YGVUs','4ckaWGE','\x20is\x20not\x20valid\x20JSON\x20(','projects.json','keyPath\x20is\x20required','.tmp','12gzAAfP','warn','keys','object','ilQqj'];_0x5ea6=function(){return _0x19420c;};return _0x5ea6();}export function writeProjectsConfig(_0x3dd359){const _0x337733=_0x4ecf,_0x22dc2b={'CHlXy':function(_0x440e2f){return _0x440e2f();},'rnVVQ':function(_0x431bd3,_0x52c751){return _0x431bd3(_0x52c751);},'IGIfD':function(_0x15dcf3,_0x544055,_0x1e96f0,_0x5d9154){return _0x15dcf3(_0x544055,_0x1e96f0,_0x5d9154);},'pLRUR':function(_0x141008,_0x36f8e1,_0x32d153){return _0x141008(_0x36f8e1,_0x32d153);}},_0x17937d=_0x22dc2b['CHlXy'](getProjectsConfigPath),_0x240946=_0x22dc2b[_0x337733(0x1b8)](dirname,_0x17937d);!_0x22dc2b['rnVVQ'](existsSync,_0x240946)&&mkdirSync(_0x240946,{'recursive':!![]});const _0x176b8a=_0x17937d+'.'+process[_0x337733(0x1d1)]+'.'+Date[_0x337733(0x1bb)]()+_0x337733(0x1c1),_0x3ed575=JSON['stringify'](_0x3dd359,null,0x2)+'\x0a';try{_0x22dc2b[_0x337733(0x1cf)](writeFileSync,_0x176b8a,_0x3ed575,{'encoding':'utf-8','mode':0x180}),_0x22dc2b[_0x337733(0x1d7)](renameSync,_0x176b8a,_0x17937d);}catch(_0x34896b){try{_0x22dc2b[_0x337733(0x1b8)](existsSync,_0x176b8a)&&_0x22dc2b[_0x337733(0x1b8)](unlinkSync,_0x176b8a);}catch{}throw _0x34896b;}}export function readProfileOverrides(_0x119a6d,_0x35d341){const _0x4341d2=_0x4ecf,_0x3b093f={'KIQcK':function(_0xfad4ca){return _0xfad4ca();}},_0x155ca5=_0x3b093f['KIQcK'](readProjectsConfig),_0x57f87a=_0x155ca5['projects'][_0x119a6d];if(!_0x57f87a||!_0x57f87a[_0x4341d2(0x1dd)])return null;const _0x11e0cc=_0x57f87a['profiles'][_0x35d341];if(!_0x11e0cc||!_0x11e0cc[_0x4341d2(0x1ba)])return null;return _0x11e0cc['settings']??null;}export function setProfileOverride(_0x5f32ba,_0x129888,_0x5b5d26,_0x5219f5){const _0x4a777b=_0x4ecf,_0x516974={'UHIqq':function(_0x8dd5ea,_0x395ad9,_0x506983,_0x38cd15){return _0x8dd5ea(_0x395ad9,_0x506983,_0x38cd15);}};if(!_0x5b5d26)throw new Error(_0x4a777b(0x1c0));const _0x18d5ea=readProjectsConfig(),_0x1f1152=_0x18d5ea['projects'][_0x5f32ba]??={},_0x4db561=_0x1f1152[_0x4a777b(0x1dd)]??={},_0x6a5916=_0x4db561[_0x129888]??={},_0x40d28f=_0x6a5916[_0x4a777b(0x1ba)]??={};_0x516974['UHIqq'](setByKeyPath,_0x40d28f,_0x5b5d26,_0x5219f5),writeProjectsConfig(_0x18d5ea);}export function unsetProfileOverride(_0x1f01ec,_0x8b4730,_0x3546a8){const _0x93ce24=_0x4ecf,_0x41e4d3={'ilQqj':'keyPath\x20is\x20required','idgqS':function(_0x52c70e){return _0x52c70e();},'ryONW':function(_0x32beff,_0x527d77,_0xfe7611){return _0x32beff(_0x527d77,_0xfe7611);}};if(!_0x3546a8)throw new Error(_0x41e4d3[_0x93ce24(0x1c6)]);const _0x5ace40=_0x41e4d3['idgqS'](readProjectsConfig),_0x203303=_0x5ace40[_0x93ce24(0x1ce)][_0x1f01ec];if(!_0x203303?.[_0x93ce24(0x1dd)])return![];const _0x59d691=_0x203303['profiles'][_0x8b4730];if(!_0x59d691?.[_0x93ce24(0x1ba)])return![];const _0x1622bd=_0x41e4d3['ryONW'](deleteByKeyPath,_0x59d691['settings'],_0x3546a8);if(!_0x1622bd)return![];return writeProjectsConfig(_0x5ace40),!![];}export function resetProfileOverrides(_0x23536b,_0x1bb388){const _0xaff19b=_0x4ecf,_0x4611fe={'dnLIa':function(_0x2f978e,_0x49c74a){return _0x2f978e===_0x49c74a;}},_0x461414=readProjectsConfig(),_0xb6da2f=_0x461414[_0xaff19b(0x1ce)][_0x23536b];if(!_0xb6da2f?.[_0xaff19b(0x1dd)])return;if(!(_0x1bb388 in _0xb6da2f['profiles']))return;delete _0xb6da2f['profiles'][_0x1bb388],_0x4611fe[_0xaff19b(0x1e0)](Object[_0xaff19b(0x1c4)](_0xb6da2f['profiles'])[_0xaff19b(0x1c9)],0x0)&&delete _0xb6da2f['profiles'],!_0xb6da2f['profiles']&&delete _0x461414[_0xaff19b(0x1ce)][_0x23536b],writeProjectsConfig(_0x461414);}export function mergeCloudProfileSettings(_0x1e40fc,_0x400ad3){const _0x48c022=_0x4ecf,_0x4f5c9a={'YGVUs':function(_0x13bbee,_0x45572b){return _0x13bbee??_0x45572b;},'zJFFb':function(_0x38b00d,_0x4cc9c0){return _0x38b00d===_0x4cc9c0;},'rWSRs':function(_0x43b294,_0x4d9b26){return _0x43b294===_0x4d9b26;},'sQXPB':_0x48c022(0x1d2),'jbroM':'setupHeaders'},_0x3a1c6c={..._0x4f5c9a[_0x48c022(0x1bc)](_0x1e40fc,{})};if(!_0x400ad3)return _0x3a1c6c;for(const [_0x522fd,_0x3bd24f]of Object[_0x48c022(0x1b6)](_0x400ad3)){if(_0x4f5c9a[_0x48c022(0x1df)](_0x3bd24f,undefined))continue;if(_0x3bd24f===null){delete _0x3a1c6c[_0x522fd];continue;}if(_0x4f5c9a['rWSRs'](_0x522fd,_0x4f5c9a['sQXPB'])||_0x4f5c9a['zJFFb'](_0x522fd,_0x4f5c9a[_0x48c022(0x1db)])){const _0x101062=asRecord(_0x3a1c6c[_0x522fd])??{},_0x585259=asRecord(_0x3bd24f);if(!_0x585259){_0x3a1c6c[_0x522fd]=_0x3bd24f;continue;}const _0x13c385={..._0x101062};for(const [_0x44518a,_0x4a93e0]of Object[_0x48c022(0x1b6)](_0x585259)){if(_0x4a93e0===null)delete _0x13c385[_0x44518a];else _0x4a93e0!==undefined&&(_0x13c385[_0x44518a]=_0x4a93e0);}_0x3a1c6c[_0x522fd]=_0x13c385;continue;}_0x3a1c6c[_0x522fd]=_0x3bd24f;}return _0x3a1c6c;}function asRecord(_0x34a87e){const _0x47a57b=_0x4ecf,_0x3b111a={'OcsVx':'object'};return _0x34a87e&&typeof _0x34a87e===_0x3b111a['OcsVx']&&!Array[_0x47a57b(0x1de)](_0x34a87e)?_0x34a87e:undefined;}function setByKeyPath(_0x3f3275,_0x57c713,_0x1993c4){const _0x54bb6f=_0x4ecf,_0x7f1304={'nWnyV':function(_0x4a9079,_0x288f90){return _0x4a9079-_0x288f90;},'jwfCu':function(_0x43f108,_0x54fc9e){return _0x43f108-_0x54fc9e;}},_0x13f82c=_0x57c713['split']('.');let _0x18c3fd=_0x3f3275;for(let _0x36f221=0x0;_0x36f221<_0x7f1304['nWnyV'](_0x13f82c[_0x54bb6f(0x1c9)],0x1);_0x36f221++){const _0x5e36e5=_0x13f82c[_0x36f221],_0x388de7=_0x18c3fd[_0x5e36e5];(!_0x388de7||typeof _0x388de7!==_0x54bb6f(0x1c5)||Array[_0x54bb6f(0x1de)](_0x388de7))&&(_0x18c3fd[_0x5e36e5]={}),_0x18c3fd=_0x18c3fd[_0x5e36e5];}_0x18c3fd[_0x13f82c[_0x7f1304['jwfCu'](_0x13f82c['length'],0x1)]]=_0x1993c4;}function deleteByKeyPath(_0x545e94,_0x516e40){const _0x70d9f6=_0x4ecf,_0x5023fc={'qhLfT':function(_0x1cbb64,_0x3aa314){return _0x1cbb64-_0x3aa314;},'IRWja':function(_0x5dff2a,_0x3a8534){return _0x5dff2a!==_0x3a8534;},'gqTiP':_0x70d9f6(0x1c5)},_0x88a1c7=_0x516e40['split']('.');let _0x232d48=_0x545e94;for(let _0x4a426e=0x0;_0x4a426e<_0x5023fc['qhLfT'](_0x88a1c7['length'],0x1);_0x4a426e++){const _0x4d205e=_0x88a1c7[_0x4a426e],_0x4cf01b=_0x232d48[_0x4d205e];if(!_0x4cf01b||_0x5023fc['IRWja'](typeof _0x4cf01b,_0x5023fc['gqTiP'])||Array[_0x70d9f6(0x1de)](_0x4cf01b))return![];_0x232d48=_0x4cf01b;}const _0x194a28=_0x88a1c7[_0x5023fc['qhLfT'](_0x88a1c7['length'],0x1)];if(!(_0x194a28 in _0x232d48))return![];return delete _0x232d48[_0x194a28],!![];}
@@ -1 +1 @@
1
- (function(_0x2a95bf,_0x44bf73){const _0x5a2d3b=_0xfd9c,_0x11fe64=_0x2a95bf();while(!![]){try{const _0x43ad6a=-parseInt(_0x5a2d3b(0x1ef))/0x1*(-parseInt(_0x5a2d3b(0x1e9))/0x2)+-parseInt(_0x5a2d3b(0x1f5))/0x3*(-parseInt(_0x5a2d3b(0x1f4))/0x4)+parseInt(_0x5a2d3b(0x1fc))/0x5+parseInt(_0x5a2d3b(0x1f8))/0x6*(-parseInt(_0x5a2d3b(0x1f6))/0x7)+-parseInt(_0x5a2d3b(0x1f1))/0x8*(parseInt(_0x5a2d3b(0x1f7))/0x9)+-parseInt(_0x5a2d3b(0x1e7))/0xa+parseInt(_0x5a2d3b(0x1ea))/0xb*(parseInt(_0x5a2d3b(0x1ee))/0xc);if(_0x43ad6a===_0x44bf73)break;else _0x11fe64['push'](_0x11fe64['shift']());}catch(_0x5a933e){_0x11fe64['push'](_0x11fe64['shift']());}}}(_0xc5e7,0xd8366));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0xfd9c(_0x2fc716,_0x49a1dc){_0x2fc716=_0x2fc716-0x1e6;const _0xc5e755=_0xc5e7();let _0xfd9c6c=_0xc5e755[_0x2fc716];return _0xfd9c6c;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x3242a2=_0xfd9c,_0x2339f2={'MKaJI':function(_0x3986cf,_0x27ed27,_0x4d5e51){return _0x3986cf(_0x27ed27,_0x4d5e51);}};return _0x2339f2[_0x3242a2(0x1f0)](join,getRangerDir(),_0x3242a2(0x1fa));}function _0xc5e7(){const _0x4c81ac=['dBJFj','63085DNxtyA','qDIsL','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','12498990FmjxCG','yGfrq','1506wvziAf','1043482egwvgF','warn','string','object','420ASVRbz','909oFmHMk','MKaJI','7033848LyNqLM','utf-8','message','4LWpdRy','4264881UzStnO','28tRYwQW','18LLoawA','2317386AhbBDM','model','config.json'];_0xc5e7=function(){return _0x4c81ac;};return _0xc5e7();}export async function loadRangerConfig(){const _0x3aa2c6=_0xfd9c,_0x4a710f={'aReCP':function(_0x3bca74,_0x1086ce){return _0x3bca74(_0x1086ce);},'RXHJW':function(_0x1fa376,_0x3ef9af,_0x142ee7){return _0x1fa376(_0x3ef9af,_0x142ee7);},'yGfrq':_0x3aa2c6(0x1f2),'dBJFj':function(_0x4a0f6c,_0x282399){return _0x4a0f6c!==_0x282399;},'qDIsL':_0x3aa2c6(0x1ed),'Dfbai':_0x3aa2c6(0x1ec)},_0x6af713=getRangerConfigPath();if(!_0x4a710f['aReCP'](existsSync,_0x6af713))return{};try{const _0x4ed833=await _0x4a710f['RXHJW'](readFile,_0x6af713,_0x4a710f[_0x3aa2c6(0x1e8)]),_0x154855=JSON['parse'](_0x4ed833);if(!_0x154855||_0x4a710f[_0x3aa2c6(0x1fb)](typeof _0x154855,_0x4a710f[_0x3aa2c6(0x1fd)])||Array['isArray'](_0x154855))return{};const _0x10233d={},_0x35571d=_0x154855[_0x3aa2c6(0x1f9)];return typeof _0x35571d===_0x4a710f['Dfbai']&&(_0x10233d[_0x3aa2c6(0x1f9)]=_0x35571d),_0x10233d;}catch(_0x4a336d){const _0x5dfc19=_0x4a336d instanceof Error?_0x4a336d[_0x3aa2c6(0x1f3)]:String(_0x4a336d);return console[_0x3aa2c6(0x1eb)](_0x3aa2c6(0x1e6)+_0x6af713+':\x20'+_0x5dfc19),{};}}
1
+ (function(_0x4770bc,_0x185fea){const _0x2b2143=_0x218c,_0x1d4786=_0x4770bc();while(!![]){try{const _0x3f466a=-parseInt(_0x2b2143(0x6e))/0x1+parseInt(_0x2b2143(0x6d))/0x2+parseInt(_0x2b2143(0x79))/0x3*(-parseInt(_0x2b2143(0x77))/0x4)+-parseInt(_0x2b2143(0x71))/0x5+-parseInt(_0x2b2143(0x76))/0x6+-parseInt(_0x2b2143(0x6c))/0x7*(parseInt(_0x2b2143(0x75))/0x8)+-parseInt(_0x2b2143(0x73))/0x9*(-parseInt(_0x2b2143(0x69))/0xa);if(_0x3f466a===_0x185fea)break;else _0x1d4786['push'](_0x1d4786['shift']());}catch(_0x26d93c){_0x1d4786['push'](_0x1d4786['shift']());}}}(_0x4ef6,0x432da));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x4ef6(){const _0x36e713=['object','utf-8','GYtir','44920fYtkAW','bdXNh','warn','3441571yahcSg','375404fNQyIv','407993KvZGVr','config.json','isArray','2454465oahydM','model','3366hNLeqP','string','8phMKoQ','168630CpKgqm','57968QYkDou','fKhCK','36uyOfJs','OsBmV','parse'];_0x4ef6=function(){return _0x36e713;};return _0x4ef6();}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x55f730=_0x218c,_0xc613a3={'jSngg':function(_0x1f3a90,_0x23a7cd,_0x56eb5f){return _0x1f3a90(_0x23a7cd,_0x56eb5f);},'OsBmV':function(_0x4fc41e){return _0x4fc41e();},'XRHsI':_0x55f730(0x6f)};return _0xc613a3['jSngg'](join,_0xc613a3[_0x55f730(0x64)](getRangerDir),_0xc613a3['XRHsI']);}function _0x218c(_0x11cd02,_0x563fd7){_0x11cd02=_0x11cd02-0x64;const _0x4ef634=_0x4ef6();let _0x218c2e=_0x4ef634[_0x11cd02];return _0x218c2e;}export async function loadRangerConfig(){const _0xa58a51=_0x218c,_0xcdb55d={'bdXNh':function(_0x548c42){return _0x548c42();},'GYtir':function(_0x532ce8,_0x231c24){return _0x532ce8(_0x231c24);},'jvnwk':function(_0x3b9e7a,_0x344129,_0x3338b3){return _0x3b9e7a(_0x344129,_0x3338b3);},'aMHLE':function(_0x18ad3a,_0x4a0827){return _0x18ad3a!==_0x4a0827;},'fKhCK':function(_0x226900,_0x58aa06){return _0x226900===_0x58aa06;},'UaTOS':_0xa58a51(0x74),'FKqLD':function(_0x4a66af,_0x5c4a46){return _0x4a66af instanceof _0x5c4a46;}},_0x2f1829=_0xcdb55d[_0xa58a51(0x6a)](getRangerConfigPath);if(!_0xcdb55d[_0xa58a51(0x68)](existsSync,_0x2f1829))return{};try{const _0x3ce25c=await _0xcdb55d['jvnwk'](readFile,_0x2f1829,_0xa58a51(0x67)),_0x1e78d7=JSON[_0xa58a51(0x65)](_0x3ce25c);if(!_0x1e78d7||_0xcdb55d['aMHLE'](typeof _0x1e78d7,_0xa58a51(0x66))||Array[_0xa58a51(0x70)](_0x1e78d7))return{};const _0x479102={},_0x2bf3ec=_0x1e78d7[_0xa58a51(0x72)];return _0xcdb55d[_0xa58a51(0x78)](typeof _0x2bf3ec,_0xcdb55d['UaTOS'])&&(_0x479102['model']=_0x2bf3ec),_0x479102;}catch(_0x1ac3cd){const _0x1c9ffa=_0xcdb55d['FKqLD'](_0x1ac3cd,Error)?_0x1ac3cd['message']:String(_0x1ac3cd);return console[_0xa58a51(0x6b)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x2f1829+':\x20'+_0x1c9ffa),{};}}
@@ -1 +1 @@
1
- (function(_0x275020,_0xe583c3){const _0x5d2849=_0x3451,_0x3ac483=_0x275020();while(!![]){try{const _0x44e142=parseInt(_0x5d2849(0x1b5))/0x1*(-parseInt(_0x5d2849(0x1ad))/0x2)+parseInt(_0x5d2849(0x1b7))/0x3+parseInt(_0x5d2849(0x1af))/0x4+parseInt(_0x5d2849(0x1b3))/0x5*(parseInt(_0x5d2849(0x1ab))/0x6)+parseInt(_0x5d2849(0x1b1))/0x7+parseInt(_0x5d2849(0x1aa))/0x8+-parseInt(_0x5d2849(0x1ae))/0x9;if(_0x44e142===_0xe583c3)break;else _0x3ac483['push'](_0x3ac483['shift']());}catch(_0x1c7e25){_0x3ac483['push'](_0x3ac483['shift']());}}}(_0x1579,0x26bd8));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x17aef8=_0x3451,_0x35129e={'XaQjd':function(_0x36569a,_0x53c814,_0x4a53df){return _0x36569a(_0x53c814,_0x4a53df);}};let _0x3a456e=process['cwd']();const _0x26a9e4=parse(_0x3a456e)[_0x17aef8(0x1b0)];while(_0x3a456e!==_0x26a9e4){if(existsSync(_0x35129e['XaQjd'](join,_0x3a456e,'.ranger')))return _0x3a456e;_0x3a456e=dirname(_0x3a456e);}if(existsSync(join(_0x26a9e4,'.ranger')))return _0x26a9e4;const _0x573cfd=findGitRoot();if(_0x573cfd)return _0x573cfd;return process['cwd']();}export function getRangerDir(){const _0x24c0c6=_0x3451,_0xc75ab3={'YNslj':_0x24c0c6(0x1ac)};return join(getRangerRoot(),_0xc75ab3[_0x24c0c6(0x1b4)]);}function _0x1579(){const _0x2b48cb=['157585HYdlCn','YNslj','85QUOZpZ','nCOgU','51993QdNahQ','512984dHbeHh','30IAnlBO','.ranger','2234rAlWlO','3333870SjJlXJ','514216oBvbXL','root','1795234DQGTjV','.git'];_0x1579=function(){return _0x2b48cb;};return _0x1579();}function _0x3451(_0x8f36a3,_0x3a0df4){_0x8f36a3=_0x8f36a3-0x1aa;const _0x1579a8=_0x1579();let _0x3451ae=_0x1579a8[_0x8f36a3];return _0x3451ae;}export function findGitRoot(){const _0x5d5876=_0x3451,_0x307025={'nCOgU':function(_0x3b9770,_0x30fd2f,_0x55947a){return _0x3b9770(_0x30fd2f,_0x55947a);},'oMdjS':function(_0x3b85dc,_0x4a8cfc){return _0x3b85dc(_0x4a8cfc);},'iihPz':_0x5d5876(0x1b2)};let _0x22d4e2=process['cwd']();const _0x37bede=parse(_0x22d4e2)['root'];while(_0x22d4e2!==_0x37bede){if(existsSync(_0x307025[_0x5d5876(0x1b6)](join,_0x22d4e2,_0x5d5876(0x1b2))))return _0x22d4e2;_0x22d4e2=_0x307025['oMdjS'](dirname,_0x22d4e2);}if(existsSync(join(_0x37bede,_0x307025['iihPz'])))return _0x37bede;return null;}export function getRangerHomeDir(){return join(homedir(),'.ranger');}
1
+ (function(_0x1bd024,_0x248538){const _0x158e0d=_0x383d,_0x5da6eb=_0x1bd024();while(!![]){try{const _0x537595=-parseInt(_0x158e0d(0x12d))/0x1+parseInt(_0x158e0d(0x134))/0x2+parseInt(_0x158e0d(0x132))/0x3*(parseInt(_0x158e0d(0x137))/0x4)+parseInt(_0x158e0d(0x12e))/0x5+parseInt(_0x158e0d(0x128))/0x6*(parseInt(_0x158e0d(0x12f))/0x7)+parseInt(_0x158e0d(0x129))/0x8*(parseInt(_0x158e0d(0x13a))/0x9)+-parseInt(_0x158e0d(0x12a))/0xa;if(_0x537595===_0x248538)break;else _0x5da6eb['push'](_0x5da6eb['shift']());}catch(_0x315926){_0x5da6eb['push'](_0x5da6eb['shift']());}}}(_0x1cfa,0xc57d7));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x383d(_0x5961bb,_0x76ae30){_0x5961bb=_0x5961bb-0x126;const _0x1cfa8e=_0x1cfa();let _0x383de3=_0x1cfa8e[_0x5961bb];return _0x383de3;}export function getRangerRoot(){const _0xbf3e3a=_0x383d,_0x112959={'SXquV':function(_0xc37604,_0x387c28){return _0xc37604(_0x387c28);},'ASzSd':function(_0x5707b0,_0x3ef691,_0x3dccb4){return _0x5707b0(_0x3ef691,_0x3dccb4);},'ygSeg':'.ranger','ZzxLN':function(_0xc37d26,_0x2de3be){return _0xc37d26(_0x2de3be);}};let _0x462a6f=process['cwd']();const _0x4f8e93=_0x112959[_0xbf3e3a(0x135)](parse,_0x462a6f)['root'];while(_0x462a6f!==_0x4f8e93){if(existsSync(_0x112959[_0xbf3e3a(0x139)](join,_0x462a6f,_0x112959[_0xbf3e3a(0x127)])))return _0x462a6f;_0x462a6f=dirname(_0x462a6f);}if(_0x112959['ZzxLN'](existsSync,_0x112959[_0xbf3e3a(0x139)](join,_0x4f8e93,_0x112959['ygSeg'])))return _0x4f8e93;const _0x17d8a8=findGitRoot();if(_0x17d8a8)return _0x17d8a8;return process[_0xbf3e3a(0x130)]();}export function getRangerDir(){const _0x10a10c=_0x383d,_0x5b8a17={'jLPvT':function(_0x12f033,_0x5bb23e,_0x5641ce){return _0x12f033(_0x5bb23e,_0x5641ce);},'jSLXS':_0x10a10c(0x13b)};return _0x5b8a17[_0x10a10c(0x131)](join,getRangerRoot(),_0x5b8a17[_0x10a10c(0x13c)]);}export function findGitRoot(){const _0x51f933=_0x383d,_0x214039={'MrkKx':function(_0x5f14b9,_0x242ce4){return _0x5f14b9(_0x242ce4);},'HjnVP':function(_0x825cf9,_0x55bb3b,_0x3ed357){return _0x825cf9(_0x55bb3b,_0x3ed357);},'oEUsi':_0x51f933(0x12b),'MfftY':function(_0x753f06,_0x149e73){return _0x753f06(_0x149e73);},'eefKk':function(_0x3a5a04,_0x76cfd9,_0x46ad27){return _0x3a5a04(_0x76cfd9,_0x46ad27);}};let _0xb1ee47=process[_0x51f933(0x130)]();const _0x5e01dd=parse(_0xb1ee47)['root'];while(_0xb1ee47!==_0x5e01dd){if(_0x214039['MrkKx'](existsSync,_0x214039[_0x51f933(0x136)](join,_0xb1ee47,_0x214039['oEUsi'])))return _0xb1ee47;_0xb1ee47=_0x214039['MrkKx'](dirname,_0xb1ee47);}if(_0x214039['MfftY'](existsSync,_0x214039[_0x51f933(0x138)](join,_0x5e01dd,_0x214039[_0x51f933(0x12c)])))return _0x5e01dd;return null;}export function getRangerHomeDir(){const _0x4855f4=_0x383d,_0x31c0b5={'GyeJv':function(_0x4d7b9e,_0x3a233a,_0x4bb813){return _0x4d7b9e(_0x3a233a,_0x4bb813);},'McTdZ':_0x4855f4(0x13b)};return _0x31c0b5[_0x4855f4(0x133)](join,homedir(),_0x31c0b5[_0x4855f4(0x126)]);}function _0x1cfa(){const _0x1962c6=['4865uUbZfc','cwd','jLPvT','369stfRRU','GyeJv','1080730pjnMjW','SXquV','HjnVP','5972Kypgun','eefKk','ASzSd','333rXQtev','.ranger','jSLXS','McTdZ','ygSeg','11670QfKVTW','64336dbZIsZ','20313590hFEpOp','.git','oEUsi','942768GaRank','7048565vEwUrI'];_0x1cfa=function(){return _0x1962c6;};return _0x1cfa();}
@@ -1 +1 @@
1
- (function(_0x18bfde,_0x4aa9de){const _0x4d7bb9=_0x3d5e,_0x1a57fd=_0x18bfde();while(!![]){try{const _0x3c4727=-parseInt(_0x4d7bb9(0xd9))/0x1+-parseInt(_0x4d7bb9(0xd1))/0x2+parseInt(_0x4d7bb9(0xe6))/0x3*(parseInt(_0x4d7bb9(0xc3))/0x4)+-parseInt(_0x4d7bb9(0xd5))/0x5*(-parseInt(_0x4d7bb9(0xcb))/0x6)+-parseInt(_0x4d7bb9(0xcc))/0x7*(parseInt(_0x4d7bb9(0xe2))/0x8)+-parseInt(_0x4d7bb9(0xda))/0x9+parseInt(_0x4d7bb9(0xd4))/0xa;if(_0x3c4727===_0x4aa9de)break;else _0x1a57fd['push'](_0x1a57fd['shift']());}catch(_0x4dc7eb){_0x1a57fd['push'](_0x1a57fd['shift']());}}}(_0x3211,0xefbc8));import{existsSync}from'fs';import _0x41b2bb from'inquirer';import{fetchCloudProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';function _0x3d5e(_0xf5494,_0x3497ae){_0xf5494=_0xf5494-0xc2;const _0x3211a5=_0x3211();let _0x3d5e6d=_0x3211a5[_0xf5494];return _0x3d5e6d;}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';function _0x3211(){const _0x133425=['232ojsSJV','KeFDO','\x20baseUrl\x20<url>','startPath','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','authPath','pHVsx','baseUrl','1878UGaCgt','311955QjqxvL','source','string','rHbCQ','Cloud\x20profile\x20(recommended)','1647870EYyglV','hNFrD','url','9173380sZTRIY','29105QhngEG','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','cdpEndpoint','432095UBPgHi','7961328FGOklJ','TRmBa','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','vWaWe','prompt','settings','rCnQX','resolvedEnv','152olKCQj','Profile\x20\x22','cloud','euFut','63621GUeSsa','profile','Local\x20profile','hhgmi'];_0x3211=function(){return _0x133425;};return _0x3211();}import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x1023a3){const _0x1f7877=_0x3d5e,_0x54f3f8={'rCnQX':function(_0x4fc3ae,_0x5e5e6d){return _0x4fc3ae(_0x5e5e6d);},'xoRyk':_0x1f7877(0xcd),'MPtQT':_0x1f7877(0xd0),'RsrWj':_0x1f7877(0xe8),'euFut':'local','vWaWe':function(_0x3c5e08,_0x52009b){return _0x3c5e08===_0x52009b;},'KeFDO':_0x1f7877(0xe4),'cTDXt':function(_0x56d10,_0x3bfdd0,_0x4dbfd6){return _0x56d10(_0x3bfdd0,_0x4dbfd6);},'itCvo':function(_0x1fc4f2,_0xf58c5,_0x5cd1c8){return _0x1fc4f2(_0xf58c5,_0x5cd1c8);},'TRmBa':function(_0x62a0b2,_0x22b647){return _0x62a0b2??_0x22b647;},'mYhtp':function(_0xa87fe,_0x596573){return _0xa87fe(_0x596573);},'IgUwE':function(_0x3c6204,_0x3a00c1){return _0x3c6204(_0x3a00c1);},'hNFrD':function(_0x509bb1){return _0x509bb1();}},_0x2153d7=_0x1023a3[_0x1f7877(0xe7)]??await readActiveProfileName();if(!_0x2153d7)throw new Error('No\x20active\x20profile.\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>');const _0x19cf7f=getEnvDir(_0x2153d7),_0x31c198=_0x54f3f8[_0x1f7877(0xe0)](existsSync,_0x19cf7f);let _0x3280c6=null;try{_0x3280c6=await fetchCloudProfile(_0x2153d7);}catch{}if(_0x3280c6&&_0x31c198){let _0x34f6bc=!![];if(isInteractive()){const {source:_0x101560}=await _0x41b2bb[_0x1f7877(0xde)]([{'type':'list','name':_0x54f3f8['xoRyk'],'message':'Profile\x20\x22'+_0x2153d7+_0x1f7877(0xc7),'choices':[{'name':_0x54f3f8['MPtQT'],'value':'cloud'},{'name':_0x54f3f8['RsrWj'],'value':_0x54f3f8[_0x1f7877(0xe5)]}],'default':_0x1f7877(0xe4)}]);_0x34f6bc=_0x54f3f8[_0x1f7877(0xdd)](_0x101560,_0x54f3f8[_0x1f7877(0xc4)]);}if(!_0x34f6bc)_0x3280c6=null;}const _0x113400=_0x54f3f8['cTDXt'](readProfileOverrides,process['cwd'](),_0x2153d7);let _0x51ca71=null,_0x38abf9,_0x23959a,_0xf7b1b8,_0x30104d,_0x1bc826=null,_0x21654c;const _0x3e1dcf=expandOverrides(_0x113400);if(_0x3280c6){_0x51ca71=_0x3280c6;const _0x23a1c7=_0x3280c6[_0x1f7877(0xdf)]??{},_0x465312=_0x54f3f8['itCvo'](mergeCloudProfileSettings,_0x23a1c7,_0x54f3f8[_0x1f7877(0xdb)](_0x113400,undefined)),_0x2fd1ea={..._0x3280c6,'settings':_0x465312},_0x435fb8=await _0x54f3f8['rCnQX'](resolveCloudProfileSession,_0x2fd1ea);_0x38abf9=_0x435fb8[_0x1f7877(0xc8)],_0x23959a=resolveEnvVars(_0x465312),_0xf7b1b8=_0x54f3f8['rCnQX'](Boolean,_0x23959a['cdpEndpoint']),_0x1bc826={'baseUrl':_0x54f3f8['mYhtp'](expandString,_0x23a1c7[_0x1f7877(0xca)]),'startPath':expandString(_0x23a1c7[_0x1f7877(0xc6)])},_0x21654c=_0x435fb8[_0x1f7877(0xe1)]?.['domains']?.[0x0];}else{if(!_0x31c198)throw new Error(_0x1f7877(0xe3)+_0x2153d7+_0x1f7877(0xd7)+_0x2153d7);const _0x3638dd=await loadSettings(_0x2153d7);_0x23959a=resolveEnvVars(_0x3638dd),_0xf7b1b8=_0x54f3f8['IgUwE'](Boolean,_0x23959a[_0x1f7877(0xd8)]),_0x30104d=_0x23959a[_0x1f7877(0xca)];}const _0x5e0718=_0x54f3f8[_0x1f7877(0xd2)](readUrlEnvVars),_0x44f400=resolveProfileUrl({'flagBaseUrl':_0x1023a3[_0x1f7877(0xca)],'flagStartPath':_0x1023a3['startPath'],'envBaseUrl':_0x5e0718['envBaseUrl'],'envStartPath':_0x5e0718['envStartPath'],'localSettingsBaseUrl':_0x30104d,'projectOverrides':_0x3e1dcf,'cloudSettings':_0x1bc826,'authEnvironmentDomain':_0x21654c}),_0x96b2bb=_0x44f400[_0x1f7877(0xd3)]??_0x44f400[_0x1f7877(0xca)];if(!_0x96b2bb&&!_0xf7b1b8)throw new Error(_0x1f7877(0xdc)+_0x2153d7+_0x1f7877(0xd6)+_0x2153d7+_0x1f7877(0xc5));return{'activeProfile':_0x2153d7,'resolvedCloudProfile':_0x51ca71,'cloudAuthPath':_0x38abf9,'resolvedSettings':_0x23959a,'isCdpMode':_0xf7b1b8,'url':_0x96b2bb,'startPath':_0x44f400['startPath']};}function expandString(_0x55673c){const _0x7b7f6c=_0x3d5e;if(typeof _0x55673c!==_0x7b7f6c(0xce))return _0x55673c;return resolveEnvVars(_0x55673c);}function expandOverrides(_0x18849c){const _0x16cb12=_0x3d5e,_0x56c0e3={'hhgmi':function(_0x2ead45,_0x3b4575){return _0x2ead45===_0x3b4575;},'WJqhd':'string','rHbCQ':function(_0x59c935,_0x5a5ffa){return _0x59c935(_0x5a5ffa);},'pHVsx':function(_0x361b92,_0x10fcd2){return _0x361b92===_0x10fcd2;}};if(!_0x18849c)return _0x18849c;const _0x211b12={..._0x18849c};return _0x56c0e3[_0x16cb12(0xc2)](typeof _0x211b12[_0x16cb12(0xca)],_0x56c0e3['WJqhd'])&&(_0x211b12['baseUrl']=_0x56c0e3[_0x16cb12(0xcf)](resolveEnvVars,_0x211b12[_0x16cb12(0xca)])),_0x56c0e3[_0x16cb12(0xc9)](typeof _0x211b12['startPath'],_0x16cb12(0xce))&&(_0x211b12['startPath']=_0x56c0e3[_0x16cb12(0xcf)](resolveEnvVars,_0x211b12[_0x16cb12(0xc6)])),_0x211b12;}
1
+ function _0x5aab(){const _0x194cdc=['qrnfg','Local\x20profile','cdpEndpoint','lIDOV','cloud','42zIkPKw','JvJjL','4850395HTpDpD','23916WhMfKS','startPath','IgYSf','3150EYDVWt','domains','EZtXZ','3SzIuRc','dSamW','local','QtVzn','Vlprz','BOAWq','1004580DRAUvV','70EuIzfW','36541MkuVBa','envBaseUrl','resolvedEnv','FmvDy','8966648YLfKPb','Profile\x20\x22','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','PXDle','baseUrl','okOaz','cZBSC','7147348rKFtFW','string','29467405IWqnea','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'];_0x5aab=function(){return _0x194cdc;};return _0x5aab();}function _0xa301(_0x496add,_0x1984eb){_0x496add=_0x496add-0x184;const _0x5aab24=_0x5aab();let _0xa301cc=_0x5aab24[_0x496add];return _0xa301cc;}(function(_0x350e1b,_0x11b70e){const _0x17c3de=_0xa301,_0x5033d8=_0x350e1b();while(!![]){try{const _0x2eac28=-parseInt(_0x17c3de(0x191))/0x1*(-parseInt(_0x17c3de(0x1a5))/0x2)+-parseInt(_0x17c3de(0x189))/0x3*(parseInt(_0x17c3de(0x19c))/0x4)+parseInt(_0x17c3de(0x1a7))/0x5+-parseInt(_0x17c3de(0x1a8))/0x6*(-parseInt(_0x17c3de(0x186))/0x7)+parseInt(_0x17c3de(0x195))/0x8+parseInt(_0x17c3de(0x18f))/0x9*(parseInt(_0x17c3de(0x190))/0xa)+-parseInt(_0x17c3de(0x19e))/0xb;if(_0x2eac28===_0x11b70e)break;else _0x5033d8['push'](_0x5033d8['shift']());}catch(_0x23b2fb){_0x5033d8['push'](_0x5033d8['shift']());}}}(_0x5aab,0xec3c3));import{existsSync}from'fs';import _0x117e1d from'inquirer';import{fetchCloudProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x1a4aa4){const _0x27a4b2=_0xa301,_0x52aed={'PXDle':function(_0x2ec732){return _0x2ec732();},'FmvDy':'No\x20active\x20profile.\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>','Vlprz':function(_0x4bb747,_0x58f902){return _0x4bb747(_0x58f902);},'okOaz':function(_0x242d94,_0x3060e5){return _0x242d94&&_0x3060e5;},'JvJjL':function(_0x35b1ab){return _0x35b1ab();},'AHifL':'Cloud\x20profile\x20(recommended)','icdIN':_0x27a4b2(0x1a1),'EZtXZ':'cloud','MQntR':function(_0x37e1d4,_0x32d348,_0x6b739f){return _0x37e1d4(_0x32d348,_0x6b739f);},'BOAWq':function(_0x550713,_0x5d90a9){return _0x550713??_0x5d90a9;},'dSamW':function(_0x514e78,_0x343f99){return _0x514e78(_0x343f99);},'IgYSf':function(_0x1516da,_0x5a7eee){return _0x1516da(_0x5a7eee);}},_0x4464b9=_0x1a4aa4['profile']??await _0x52aed['PXDle'](readActiveProfileName);if(!_0x4464b9)throw new Error(_0x52aed[_0x27a4b2(0x194)]);const _0x38ae76=_0x52aed[_0x27a4b2(0x18d)](getEnvDir,_0x4464b9),_0x198ce3=_0x52aed['Vlprz'](existsSync,_0x38ae76);let _0x8d2b94=null;try{_0x8d2b94=await fetchCloudProfile(_0x4464b9);}catch{}if(_0x52aed[_0x27a4b2(0x19a)](_0x8d2b94,_0x198ce3)){let _0x5a3b82=!![];if(_0x52aed[_0x27a4b2(0x1a6)](isInteractive)){const {source:_0x13f346}=await _0x117e1d['prompt']([{'type':'list','name':'source','message':_0x27a4b2(0x196)+_0x4464b9+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x52aed['AHifL'],'value':_0x27a4b2(0x1a4)},{'name':_0x52aed['icdIN'],'value':_0x27a4b2(0x18b)}],'default':_0x52aed[_0x27a4b2(0x188)]}]);_0x5a3b82=_0x13f346===_0x52aed[_0x27a4b2(0x188)];}if(!_0x5a3b82)_0x8d2b94=null;}const _0x109f30=readProfileOverrides(process['cwd'](),_0x4464b9);let _0x5d996a=null,_0x3cb2bc,_0x582659,_0x153790,_0x1586e0,_0x126ace=null,_0x31b392;const _0x37e33a=expandOverrides(_0x109f30);if(_0x8d2b94){_0x5d996a=_0x8d2b94;const _0x78357a=_0x8d2b94['settings']??{},_0x428292=_0x52aed['MQntR'](mergeCloudProfileSettings,_0x78357a,_0x52aed[_0x27a4b2(0x18e)](_0x109f30,undefined)),_0x25bbd7={..._0x8d2b94,'settings':_0x428292},_0x5d5b0b=await _0x52aed[_0x27a4b2(0x18a)](resolveCloudProfileSession,_0x25bbd7);_0x3cb2bc=_0x5d5b0b['authPath'],_0x582659=resolveEnvVars(_0x428292),_0x153790=Boolean(_0x582659[_0x27a4b2(0x1a2)]),_0x126ace={'baseUrl':expandString(_0x78357a['baseUrl']),'startPath':expandString(_0x78357a['startPath'])},_0x31b392=_0x5d5b0b[_0x27a4b2(0x193)]?.[_0x27a4b2(0x187)]?.[0x0];}else{if(!_0x198ce3)throw new Error('Profile\x20\x22'+_0x4464b9+_0x27a4b2(0x197)+_0x4464b9);const _0x1fe512=await _0x52aed[_0x27a4b2(0x185)](loadSettings,_0x4464b9);_0x582659=_0x52aed['IgYSf'](resolveEnvVars,_0x1fe512),_0x153790=_0x52aed[_0x27a4b2(0x18d)](Boolean,_0x582659[_0x27a4b2(0x1a2)]),_0x1586e0=_0x582659['baseUrl'];}const _0x47c6bb=_0x52aed[_0x27a4b2(0x198)](readUrlEnvVars),_0xe319e=resolveProfileUrl({'flagBaseUrl':_0x1a4aa4[_0x27a4b2(0x199)],'flagStartPath':_0x1a4aa4['startPath'],'envBaseUrl':_0x47c6bb[_0x27a4b2(0x192)],'envStartPath':_0x47c6bb['envStartPath'],'localSettingsBaseUrl':_0x1586e0,'projectOverrides':_0x37e33a,'cloudSettings':_0x126ace,'authEnvironmentDomain':_0x31b392}),_0x233c68=_0xe319e['url']??_0xe319e[_0x27a4b2(0x199)];if(!_0x233c68&&!_0x153790)throw new Error(_0x27a4b2(0x19f)+_0x4464b9+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x4464b9+'\x20baseUrl\x20<url>');return{'activeProfile':_0x4464b9,'resolvedCloudProfile':_0x5d996a,'cloudAuthPath':_0x3cb2bc,'resolvedSettings':_0x582659,'isCdpMode':_0x153790,'url':_0x233c68,'startPath':_0xe319e[_0x27a4b2(0x184)]};}function expandString(_0x1890dd){const _0x6d4032=_0xa301,_0x3abf63={'qrnfg':function(_0x2bf938,_0x21cc5e){return _0x2bf938!==_0x21cc5e;},'lIDOV':_0x6d4032(0x19d)};if(_0x3abf63[_0x6d4032(0x1a0)](typeof _0x1890dd,_0x3abf63[_0x6d4032(0x1a3)]))return _0x1890dd;return resolveEnvVars(_0x1890dd);}function expandOverrides(_0x41b419){const _0x1af932=_0xa301,_0x5a7e4a={'cZBSC':function(_0x1f6ce9,_0x323cd4){return _0x1f6ce9===_0x323cd4;},'QtVzn':function(_0x38b52c,_0x530bac){return _0x38b52c(_0x530bac);},'PhXjZ':_0x1af932(0x19d)};if(!_0x41b419)return _0x41b419;const _0x4952fb={..._0x41b419};return _0x5a7e4a[_0x1af932(0x19b)](typeof _0x4952fb['baseUrl'],'string')&&(_0x4952fb[_0x1af932(0x199)]=_0x5a7e4a[_0x1af932(0x18c)](resolveEnvVars,_0x4952fb['baseUrl'])),typeof _0x4952fb[_0x1af932(0x184)]===_0x5a7e4a['PhXjZ']&&(_0x4952fb['startPath']=resolveEnvVars(_0x4952fb['startPath'])),_0x4952fb;}
@@ -1 +1 @@
1
- const _0x490ede=_0x413c;(function(_0x1ed872,_0x311dfe){const _0x51fff3=_0x413c,_0x4988b1=_0x1ed872();while(!![]){try{const _0x48a729=parseInt(_0x51fff3(0x1e9))/0x1*(-parseInt(_0x51fff3(0x1e3))/0x2)+parseInt(_0x51fff3(0x1ec))/0x3+-parseInt(_0x51fff3(0x1d8))/0x4+-parseInt(_0x51fff3(0x1df))/0x5+-parseInt(_0x51fff3(0x1ea))/0x6+-parseInt(_0x51fff3(0x1e6))/0x7+parseInt(_0x51fff3(0x1ef))/0x8*(parseInt(_0x51fff3(0x1dd))/0x9);if(_0x48a729===_0x311dfe)break;else _0x4988b1['push'](_0x4988b1['shift']());}catch(_0x1afb1c){_0x4988b1['push'](_0x4988b1['shift']());}}}(_0x4922,0x3540b));function firstDefined(..._0x107209){const _0xd7f3f={'ORyqm':function(_0xec8898,_0x33785a){return _0xec8898!==_0x33785a;}};for(const _0xb6a8d6 of _0x107209){if(_0xb6a8d6!==undefined&&_0xb6a8d6!==null&&_0xd7f3f['ORyqm'](_0xb6a8d6,''))return _0xb6a8d6;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5903b1){const _0x56a3e9=_0x413c;if(!_0x5903b1)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x56a3e9(0x1db)](_0x5903b1))return _0x5903b1;return _0x56a3e9(0x1e7)+_0x5903b1;}export function resolveBaseUrl(_0x1846db){const _0xa158bc=_0x413c,_0x316018={'dQPNK':function(_0x1da12f,_0x8116a2){return _0x1da12f===_0x8116a2;},'MsRJS':function(_0x319080,_0x592392){return _0x319080(_0x592392);}},_0x5e15c8=_0x1846db['projectOverrides']?.[_0xa158bc(0x1eb)];return firstDefined(_0x1846db['flagBaseUrl'],_0x1846db['envBaseUrl'],_0x1846db[_0xa158bc(0x1e0)],_0x316018['dQPNK'](typeof _0x5e15c8,'string')?_0x5e15c8:undefined,_0x1846db[_0xa158bc(0x1ed)]?.['baseUrl'],_0x316018['MsRJS'](normalizeAuthEnvironmentDomain,_0x1846db['authEnvironmentDomain']));}export function resolveStartPath(_0x5b7c67){const _0x4c9b90=_0x413c,_0x304ff1={'zHsJc':function(_0x348349,_0x3e8ab2,_0x5457b6,_0x4f12fc,_0x3fb8af){return _0x348349(_0x3e8ab2,_0x5457b6,_0x4f12fc,_0x3fb8af);},'sHseT':function(_0x1cea9b,_0x16d058){return _0x1cea9b===_0x16d058;},'LmeiE':'string'},_0x2957b4=_0x5b7c67['projectOverrides']?.[_0x4c9b90(0x1d7)];return _0x304ff1['zHsJc'](firstDefined,_0x5b7c67[_0x4c9b90(0x1e5)],_0x5b7c67[_0x4c9b90(0x1e1)],_0x304ff1[_0x4c9b90(0x1e4)](typeof _0x2957b4,_0x304ff1[_0x4c9b90(0x1de)])?_0x2957b4:undefined,_0x5b7c67[_0x4c9b90(0x1ed)]?.[_0x4c9b90(0x1d7)]);}export function joinBaseAndPath(_0x24607b,_0x23a351){const _0x1f8c6a=_0x413c,_0x39d824={'jerqm':function(_0x33c028,_0x122677){return _0x33c028+_0x122677;}};if(!_0x24607b)return undefined;if(!_0x23a351)return _0x24607b;const _0x3ae062=_0x24607b['endsWith']('/')?_0x24607b[_0x1f8c6a(0x1dc)](0x0,-0x1):_0x24607b,_0x59b4aa=_0x23a351[_0x1f8c6a(0x1e2)]('/')?_0x23a351:'/'+_0x23a351;return _0x39d824[_0x1f8c6a(0x1e8)](_0x3ae062,_0x59b4aa);}export function resolveProfileUrl(_0x47a777){const _0xa83bc9=_0x413c,_0x4b5e8f={'GRTZu':function(_0x16d36b,_0x413c8b){return _0x16d36b(_0x413c8b);}},_0x3d682f=_0x4b5e8f[_0xa83bc9(0x1da)](resolveBaseUrl,_0x47a777),_0x4a9ef1=_0x4b5e8f['GRTZu'](resolveStartPath,_0x47a777);return{'baseUrl':_0x3d682f,'startPath':_0x4a9ef1,'url':joinBaseAndPath(_0x3d682f,_0x4a9ef1)};}function _0x4922(){const _0x433d92=['https://','jerqm','319639UeiHbf','1957680NMYZOO','baseUrl','931983zqjGMK','cloudSettings','env','6912216qnxfYY','startPath','421724ATYiWU','RANGER_START_PATH','GRTZu','test','slice','9fdpYfo','LmeiE','1007310gDrVzr','localSettingsBaseUrl','envStartPath','startsWith','2gOAFnn','sHseT','flagStartPath','26271wduseV'];_0x4922=function(){return _0x433d92;};return _0x4922();}function _0x413c(_0x8ac80a,_0x5dc827){_0x8ac80a=_0x8ac80a-0x1d7;const _0x49227c=_0x4922();let _0x413c5f=_0x49227c[_0x8ac80a];return _0x413c5f;}export function readUrlEnvVars(_0x886ef9=process[_0x490ede(0x1ee)]){const _0xf11c48=_0x490ede;return{'envBaseUrl':_0x886ef9['RANGER_BASE_URL'],'envStartPath':_0x886ef9[_0xf11c48(0x1d9)]};}
1
+ (function(_0x56f158,_0x189f31){const _0x25980b=_0x45b7,_0x1b3967=_0x56f158();while(!![]){try{const _0x10d60b=-parseInt(_0x25980b(0x90))/0x1*(parseInt(_0x25980b(0xa1))/0x2)+-parseInt(_0x25980b(0x92))/0x3+-parseInt(_0x25980b(0x9f))/0x4+parseInt(_0x25980b(0x93))/0x5*(parseInt(_0x25980b(0x9c))/0x6)+parseInt(_0x25980b(0xa0))/0x7*(-parseInt(_0x25980b(0x9e))/0x8)+-parseInt(_0x25980b(0x8b))/0x9*(-parseInt(_0x25980b(0x8e))/0xa)+parseInt(_0x25980b(0x95))/0xb*(parseInt(_0x25980b(0x8a))/0xc);if(_0x10d60b===_0x189f31)break;else _0x1b3967['push'](_0x1b3967['shift']());}catch(_0x3699d1){_0x1b3967['push'](_0x1b3967['shift']());}}}(_0x2444,0xf420c));function firstDefined(..._0x1d2131){const _0x333c0f=_0x45b7,_0x5d1445={'hYxOg':function(_0x29f9a5,_0x2ff9f2){return _0x29f9a5!==_0x2ff9f2;}};for(const _0x57e1fe of _0x1d2131){if(_0x57e1fe!==undefined&&_0x57e1fe!==null&&_0x5d1445[_0x333c0f(0x9d)](_0x57e1fe,''))return _0x57e1fe;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5e1f25){if(!_0x5e1f25)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x5e1f25))return _0x5e1f25;return'https://'+_0x5e1f25;}function _0x2444(){const _0x4dc027=['string','5438847EsnJQp','1127755hgcnUN','slice','11RhNnNY','xGlqA','KxyoD','envBaseUrl','localSettingsBaseUrl','startPath','cloudSettings','18VOawmN','hYxOg','1437496PcfnAq','6054632VFGBfb','35Eeiptu','172374ZOQThx','projectOverrides','59869416cpTPDt','27hqzpoJ','UtKPi','startsWith','1978210zgCyGr','RANGER_START_PATH','12tOSQZi'];_0x2444=function(){return _0x4dc027;};return _0x2444();}export function resolveBaseUrl(_0x507ec6){const _0x4b4ddd=_0x45b7,_0x459a2e={'wuYBr':function(_0x30a7fa,_0x55e85a,_0x4d8657,_0x5c0c6c,_0x86d6dd,_0x2dd15a,_0x366925){return _0x30a7fa(_0x55e85a,_0x4d8657,_0x5c0c6c,_0x86d6dd,_0x2dd15a,_0x366925);},'UtKPi':'string'},_0x2d91d4=_0x507ec6['projectOverrides']?.['baseUrl'];return _0x459a2e['wuYBr'](firstDefined,_0x507ec6['flagBaseUrl'],_0x507ec6[_0x4b4ddd(0x98)],_0x507ec6[_0x4b4ddd(0x99)],typeof _0x2d91d4===_0x459a2e[_0x4b4ddd(0x8c)]?_0x2d91d4:undefined,_0x507ec6[_0x4b4ddd(0x9b)]?.['baseUrl'],normalizeAuthEnvironmentDomain(_0x507ec6['authEnvironmentDomain']));}export function resolveStartPath(_0x5f2928){const _0x3a56e7=_0x45b7,_0x223737=_0x5f2928[_0x3a56e7(0x89)]?.[_0x3a56e7(0x9a)];return firstDefined(_0x5f2928['flagStartPath'],_0x5f2928['envStartPath'],typeof _0x223737===_0x3a56e7(0x91)?_0x223737:undefined,_0x5f2928[_0x3a56e7(0x9b)]?.[_0x3a56e7(0x9a)]);}export function joinBaseAndPath(_0x19e89f,_0x3809c7){const _0x16234f=_0x45b7,_0x1a0dc9={'xGlqA':function(_0x1d8a6d,_0x74e690){return _0x1d8a6d+_0x74e690;},'KxyoD':function(_0x1c98e4,_0x1080d4){return _0x1c98e4+_0x1080d4;}};if(!_0x19e89f)return undefined;if(!_0x3809c7)return _0x19e89f;const _0x27b749=_0x19e89f['endsWith']('/')?_0x19e89f[_0x16234f(0x94)](0x0,-0x1):_0x19e89f,_0x16b6a0=_0x3809c7[_0x16234f(0x8d)]('/')?_0x3809c7:_0x1a0dc9[_0x16234f(0x96)]('/',_0x3809c7);return _0x1a0dc9[_0x16234f(0x97)](_0x27b749,_0x16b6a0);}function _0x45b7(_0x3d7c1d,_0xdcfd55){_0x3d7c1d=_0x3d7c1d-0x89;const _0x2444c6=_0x2444();let _0x45b71b=_0x2444c6[_0x3d7c1d];return _0x45b71b;}export function resolveProfileUrl(_0x227467){const _0x593d1a=resolveBaseUrl(_0x227467),_0xa90daa=resolveStartPath(_0x227467);return{'baseUrl':_0x593d1a,'startPath':_0xa90daa,'url':joinBaseAndPath(_0x593d1a,_0xa90daa)};}export function readUrlEnvVars(_0xdfc388=process['env']){const _0x24550f=_0x45b7;return{'envBaseUrl':_0xdfc388['RANGER_BASE_URL'],'envStartPath':_0xdfc388[_0x24550f(0x8f)]};}
@@ -1 +1 @@
1
- (function(_0x2df079,_0x2318ac){const _0x209d5e=_0x273a,_0x40d6ae=_0x2df079();while(!![]){try{const _0x43be8f=parseInt(_0x209d5e(0x9a))/0x1+-parseInt(_0x209d5e(0xa1))/0x2+-parseInt(_0x209d5e(0x9c))/0x3+parseInt(_0x209d5e(0x9b))/0x4+-parseInt(_0x209d5e(0xa0))/0x5+parseInt(_0x209d5e(0x99))/0x6*(parseInt(_0x209d5e(0xa2))/0x7)+-parseInt(_0x209d5e(0x9e))/0x8*(parseInt(_0x209d5e(0x97))/0x9);if(_0x43be8f===_0x2318ac)break;else _0x40d6ae['push'](_0x40d6ae['shift']());}catch(_0xdd3296){_0x40d6ae['push'](_0x40d6ae['shift']());}}}(_0x4156,0x380af));function _0x273a(_0x43c1c5,_0x37c714){_0x43c1c5=_0x43c1c5-0x97;const _0x4156d4=_0x4156();let _0x273a3f=_0x4156d4[_0x43c1c5];return _0x273a3f;}function _0x4156(){const _0x102ef9=['\x20failed\x20(attempt\x20','1063256tKsYgW','RdXPB','1275615eQqrtJ','88792XJsBDG','66129tCWrgj','sCaEG','9bRoyoI','label','162OwzAWq','357690jflmcl','619416jwOeFD','316908tnkPoj'];_0x4156=function(){return _0x102ef9;};return _0x4156();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1e7167,_0x31e716){const _0x50fdaf=_0x273a,_0xe2889d={'xOaOV':function(_0x15350d){return _0x15350d();},'qrMOa':function(_0x1eab01,_0x3c7811){return _0x1eab01(_0x3c7811);},'RdXPB':function(_0x1c6ed4,_0x577334){return _0x1c6ed4<_0x577334;},'sCaEG':function(_0x18d0f0,_0x4d0eeb){return _0x18d0f0+_0x4d0eeb;}},_0x2267f5=_0x31e716?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x38369c=_0x31e716?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x5acf79;for(let _0xde334a=0x0;_0xde334a<=_0x2267f5;_0xde334a++){try{return await _0xe2889d['xOaOV'](_0x1e7167);}catch(_0x615e8b){_0x5acf79=_0x615e8b instanceof Error?_0x615e8b:new Error(_0xe2889d['qrMOa'](String,_0x615e8b));if(_0xe2889d[_0x50fdaf(0x9f)](_0xde334a,_0x2267f5)){const _0x2f5536=_0x38369c*Math['pow'](0x2,_0xde334a);_0x31e716?.[_0x50fdaf(0x98)]&&console['error'](_0x31e716[_0x50fdaf(0x98)]+_0x50fdaf(0x9d)+_0xe2889d[_0x50fdaf(0xa3)](_0xde334a,0x1)+'/'+(_0x2267f5+0x1)+'),\x20retrying\x20in\x20'+_0x2f5536+'ms...'),await new Promise(_0x169744=>setTimeout(_0x169744,_0x2f5536));}}}throw _0x5acf79;}
1
+ (function(_0x21fe29,_0x10e599){const _0x24bd4c=_0x1f18,_0x3157bf=_0x21fe29();while(!![]){try{const _0x45c535=parseInt(_0x24bd4c(0x1b8))/0x1*(parseInt(_0x24bd4c(0x1ba))/0x2)+parseInt(_0x24bd4c(0x1bd))/0x3+parseInt(_0x24bd4c(0x1b6))/0x4+-parseInt(_0x24bd4c(0x1b7))/0x5+parseInt(_0x24bd4c(0x1b3))/0x6*(parseInt(_0x24bd4c(0x1b4))/0x7)+-parseInt(_0x24bd4c(0x1b1))/0x8*(-parseInt(_0x24bd4c(0x1af))/0x9)+-parseInt(_0x24bd4c(0x1ad))/0xa*(parseInt(_0x24bd4c(0x1bb))/0xb);if(_0x45c535===_0x10e599)break;else _0x3157bf['push'](_0x3157bf['shift']());}catch(_0x338ebb){_0x3157bf['push'](_0x3157bf['shift']());}}}(_0x431f,0x75d86));function _0x431f(){const _0x1fad23=['5577366mjmuWL','7hdjybt','TcHjh','2073428MaBpHF','2756795zySuZR','3KOEeQH','label','59914KnvqtM','8190809wmboHq','OBTNA','396006bgkDpE','baseDelayMs','20LgBqZQ','ms...','6750sJpalY','maxRetries','9104mrXWvH','\x20failed\x20(attempt\x20'];_0x431f=function(){return _0x1fad23;};return _0x431f();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1f18(_0x50b05e,_0x28c6b0){_0x50b05e=_0x50b05e-0x1ad;const _0x431f91=_0x431f();let _0x1f18e5=_0x431f91[_0x50b05e];return _0x1f18e5;}export async function withRetry(_0x453206,_0x878ce8){const _0x1d8f34=_0x1f18,_0x58939a={'OBTNA':function(_0x2209af,_0x52c141){return _0x2209af<=_0x52c141;},'TcHjh':function(_0x1497c4,_0xa47254){return _0x1497c4 instanceof _0xa47254;},'urPPE':function(_0x201cc7,_0x1aebe6){return _0x201cc7<_0x1aebe6;},'xZdCq':function(_0x38177a,_0x3e2e38){return _0x38177a+_0x3e2e38;}},_0x484a0b=_0x878ce8?.[_0x1d8f34(0x1b0)]??DEFAULT_MAX_RETRIES,_0x4c3e9d=_0x878ce8?.[_0x1d8f34(0x1be)]??DEFAULT_BASE_DELAY_MS;let _0x5d6d69;for(let _0x3024f6=0x0;_0x58939a[_0x1d8f34(0x1bc)](_0x3024f6,_0x484a0b);_0x3024f6++){try{return await _0x453206();}catch(_0x115ad1){_0x5d6d69=_0x58939a[_0x1d8f34(0x1b5)](_0x115ad1,Error)?_0x115ad1:new Error(String(_0x115ad1));if(_0x58939a['urPPE'](_0x3024f6,_0x484a0b)){const _0x1a3b4a=_0x4c3e9d*Math['pow'](0x2,_0x3024f6);_0x878ce8?.['label']&&console['error'](_0x878ce8[_0x1d8f34(0x1b9)]+_0x1d8f34(0x1b2)+_0x58939a['xZdCq'](_0x3024f6,0x1)+'/'+(_0x484a0b+0x1)+'),\x20retrying\x20in\x20'+_0x1a3b4a+_0x1d8f34(0x1ae)),await new Promise(_0x50e60c=>setTimeout(_0x50e60c,_0x1a3b4a));}}}throw _0x5d6d69;}
@@ -1 +1 @@
1
- function _0x287d(_0x45ee2b,_0x53ee85){_0x45ee2b=_0x45ee2b-0x1b0;const _0x650605=_0x6506();let _0x287d0e=_0x650605[_0x45ee2b];return _0x287d0e;}const _0x37e8c9=_0x287d;(function(_0x8171d9,_0x4e4feb){const _0xdf3f8c=_0x287d,_0x5a1abb=_0x8171d9();while(!![]){try{const _0x194a8e=-parseInt(_0xdf3f8c(0x1e5))/0x1*(parseInt(_0xdf3f8c(0x1b3))/0x2)+-parseInt(_0xdf3f8c(0x1d4))/0x3*(-parseInt(_0xdf3f8c(0x1d8))/0x4)+parseInt(_0xdf3f8c(0x1b7))/0x5+-parseInt(_0xdf3f8c(0x1c5))/0x6*(parseInt(_0xdf3f8c(0x1b1))/0x7)+-parseInt(_0xdf3f8c(0x1b4))/0x8+parseInt(_0xdf3f8c(0x1d2))/0x9*(parseInt(_0xdf3f8c(0x1bf))/0xa)+parseInt(_0xdf3f8c(0x1d6))/0xb*(parseInt(_0xdf3f8c(0x1de))/0xc);if(_0x194a8e===_0x4e4feb)break;else _0x5a1abb['push'](_0x5a1abb['shift']());}catch(_0x3a408a){_0x5a1abb['push'](_0x5a1abb['shift']());}}}(_0x6506,0xbef99));import*as _0x3bfa03 from'fs';import*as _0x278e91 from'path';import*as _0xd3bd0 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x278e91[_0x37e8c9(0x1b6)](_0xd3bd0[_0x37e8c9(0x1ce)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x309bae=_0x37e8c9;try{if(_0x3bfa03['existsSync'](CACHE_FILE)){const _0x4d54c6=JSON['parse'](_0x3bfa03['readFileSync'](CACHE_FILE,_0x309bae(0x1df)));return{'version':0x3,'sessions':_0x4d54c6['sessions']||{},'branches':_0x4d54c6['branches']||{},'lastEnabledSessionClearedAt':_0x4d54c6['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xeaa051){const _0x42a1f8=_0x37e8c9;try{const _0x4683c7=_0x278e91['dirname'](CACHE_FILE);!_0x3bfa03[_0x42a1f8(0x1b9)](_0x4683c7)&&_0x3bfa03[_0x42a1f8(0x1c4)](_0x4683c7,{'recursive':!![]}),_0x3bfa03[_0x42a1f8(0x1e2)](CACHE_FILE,JSON['stringify'](_0xeaa051,null,0x2));}catch{}}export function getCurrentBranch(){const _0x28369b=_0x37e8c9,_0x4d2a10={'yiWFS':'pipe'};try{const _0x3d097e=execSync(_0x28369b(0x1e1),{'encoding':'utf-8','stdio':[_0x4d2a10['yiWFS'],'pipe',_0x4d2a10['yiWFS']]})[_0x28369b(0x1d7)]();if(!_0x3d097e||_0x3d097e==='HEAD')return null;return _0x3d097e;}catch{return null;}}export function enableBranch(_0x5007e3){const _0xdc345=_0x37e8c9,_0xca6df4={'OrPyv':function(_0x139ba8){return _0x139ba8();}},_0x275c13=_0xca6df4[_0xdc345(0x1c0)](loadCache);_0x275c13[_0xdc345(0x1cb)][_0x5007e3]=!![],saveCache(_0x275c13);}export function disableBranch(_0x1795e2){const _0x365961=_0x37e8c9,_0x4ddad7={'trxpJ':function(_0x5cca01){return _0x5cca01();}},_0x363000=_0x4ddad7[_0x365961(0x1c9)](loadCache);delete _0x363000[_0x365961(0x1cb)][_0x1795e2],saveCache(_0x363000);}export function isBranchEnabled(_0x405eb0){const _0x44695b=loadCache();return _0x44695b['branches'][_0x405eb0]===!![];}function getOrCreateSession(_0x56fad6,_0x34c4b8){const _0x140498=_0x37e8c9;return!_0x56fad6[_0x140498(0x1d1)][_0x34c4b8]&&(_0x56fad6[_0x140498(0x1d1)][_0x34c4b8]={}),_0x56fad6[_0x140498(0x1d1)][_0x34c4b8];}export function enableSession(_0x3f24cd){const _0x4439f7=_0x37e8c9,_0x35d330={'FkMfk':function(_0xcbc34a,_0x5d9945,_0x15965e){return _0xcbc34a(_0x5d9945,_0x15965e);},'YIMYC':function(_0x505fca){return _0x505fca();},'nomFR':function(_0x14e236,_0x3b7f52){return _0x14e236!==_0x3b7f52;},'cmexz':function(_0x3a6507,_0x40a1f3){return _0x3a6507(_0x40a1f3);}},_0x1ba703=loadCache(),_0x5957aa=_0x35d330[_0x4439f7(0x1b5)](getOrCreateSession,_0x1ba703,_0x3f24cd);_0x5957aa['enabled']=!![];const _0x127e71=_0x35d330[_0x4439f7(0x1e7)](getCurrentBranch);_0x127e71&&_0x35d330[_0x4439f7(0x1b2)](_0x127e71,_0x4439f7(0x1e6))&&_0x35d330['nomFR'](_0x127e71,'master')&&(_0x1ba703['branches'][_0x127e71]=!![],_0x5957aa['currentBranch']=_0x127e71),_0x35d330[_0x4439f7(0x1bb)](saveCache,_0x1ba703);}export function isSessionEnabled(_0x429bfa){const _0x471d70=_0x37e8c9,_0x151e4b={'dsqdm':function(_0x2ece3d){return _0x2ece3d();},'IcJYo':_0x471d70(0x1e6),'fCvmG':_0x471d70(0x1d0),'Tsjiu':function(_0x1f0f06,_0x4f56de){return _0x1f0f06===_0x4f56de;},'dCXrE':function(_0x5122c8,_0x236f47){return _0x5122c8===_0x236f47;},'KxvQU':function(_0x2f67e2,_0x25bf22){return _0x2f67e2||_0x25bf22;}},_0x404271=loadCache(),_0x22787a=_0x151e4b['dsqdm'](getCurrentBranch);if(!_0x22787a||_0x22787a===_0x151e4b[_0x471d70(0x1cf)]||_0x22787a===_0x151e4b['fCvmG'])return _0x151e4b[_0x471d70(0x1ca)](_0x404271['sessions'][_0x429bfa]?.['enabled'],!![]);const _0x3d2cc7=_0x404271['branches'][_0x22787a]===!![],_0x2ce234=_0x151e4b[_0x471d70(0x1c6)](_0x404271[_0x471d70(0x1d1)][_0x429bfa]?.[_0x471d70(0x1d3)],!![]);return _0x151e4b['KxvQU'](_0x3d2cc7,_0x2ce234);}export function disableSession(_0x11c765){const _0x4b7460=_0x37e8c9,_0x17cb28={'YvGyT':function(_0x30f55b){return _0x30f55b();},'rfznR':function(_0x36b59d,_0x144a34,_0x5846b6){return _0x36b59d(_0x144a34,_0x5846b6);}},_0x2b6af4=_0x17cb28[_0x4b7460(0x1bc)](loadCache),_0x2ad558=_0x17cb28[_0x4b7460(0x1b0)](getOrCreateSession,_0x2b6af4,_0x11c765);_0x2ad558[_0x4b7460(0x1d3)]=![],saveCache(_0x2b6af4);}export function updateBranchTracking(_0x5108cc){const _0x3e32e2=_0x37e8c9,_0x13aa31={'FLYnH':function(_0x4f7035){return _0x4f7035();},'xRqgY':function(_0xa8f7a6,_0x23a297){return _0xa8f7a6===_0x23a297;},'HOhlh':_0x3e32e2(0x1e6),'TQHQs':'master','nnNOS':function(_0x94c4cf,_0x751798){return _0x94c4cf(_0x751798);}},_0x3f835c=loadCache(),_0xe0b28a=_0x3f835c['sessions'][_0x5108cc];if(!_0xe0b28a?.[_0x3e32e2(0x1d3)])return;const _0x10b0e6=_0x13aa31[_0x3e32e2(0x1c8)](getCurrentBranch);if(!_0x10b0e6||_0x13aa31[_0x3e32e2(0x1c2)](_0x10b0e6,_0x13aa31[_0x3e32e2(0x1c3)])||_0x13aa31['xRqgY'](_0x10b0e6,_0x13aa31['TQHQs']))return;_0xe0b28a[_0x3e32e2(0x1d5)]!==_0x10b0e6&&(_0x3f835c[_0x3e32e2(0x1cb)][_0x10b0e6]=!![],_0xe0b28a['currentBranch']=_0x10b0e6,_0x13aa31['nnNOS'](saveCache,_0x3f835c));}export function initBranchTracking(_0x324be2){const _0x24e4aa=_0x37e8c9,_0x3b0d9a={'wzFBS':function(_0x912aa7){return _0x912aa7();},'cJLUs':function(_0x50aec0){return _0x50aec0();},'Ggama':_0x24e4aa(0x1e6),'gfWkw':function(_0x37c7a1,_0x11d0b0){return _0x37c7a1===_0x11d0b0;},'LrZxd':'master','sSxKz':function(_0x51b2c3,_0x4e5042){return _0x51b2c3===_0x4e5042;},'DYgYQ':function(_0x18fbcf,_0x33a088,_0x3457e8){return _0x18fbcf(_0x33a088,_0x3457e8);}},_0x56474f=_0x3b0d9a['wzFBS'](loadCache),_0x3c855e=_0x3b0d9a['cJLUs'](getCurrentBranch);if(!_0x3c855e||_0x3c855e===_0x3b0d9a['Ggama']||_0x3b0d9a[_0x24e4aa(0x1e4)](_0x3c855e,_0x3b0d9a[_0x24e4aa(0x1cc)]))return;if(_0x3b0d9a[_0x24e4aa(0x1da)](_0x56474f[_0x24e4aa(0x1cb)][_0x3c855e],!![])){const _0x2ae826=_0x3b0d9a[_0x24e4aa(0x1e0)](getOrCreateSession,_0x56474f,_0x324be2);_0x2ae826['enabled']=!![],_0x2ae826[_0x24e4aa(0x1d5)]=_0x3c855e,saveCache(_0x56474f);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x105f5e){const _0x35a3f1=_0x37e8c9,_0x8ca46a={'MMPAG':function(_0x2c5fee){return _0x2c5fee();},'tLKjX':function(_0x2548c5,_0x268972){return _0x2548c5(_0x268972);}},_0xef26d0=_0x8ca46a['MMPAG'](loadCache),_0x300855=_0xef26d0['sessions'][_0x105f5e];_0x300855?.[_0x35a3f1(0x1d3)]&&(_0xef26d0[_0x35a3f1(0x1bd)]=Date[_0x35a3f1(0x1e3)](),_0x8ca46a[_0x35a3f1(0x1ba)](saveCache,_0xef26d0));}export function shouldAutoEnableAfterClear(_0x380323){const _0x39baca=_0x37e8c9;if(_0x380323!==_0x39baca(0x1b8))return![];const _0x228de9=loadCache(),_0x3bf6ff=_0x228de9[_0x39baca(0x1bd)];if(!_0x3bf6ff)return![];const _0x1ddc7d=Date[_0x39baca(0x1e3)]()-_0x3bf6ff;return _0x1ddc7d<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x168f16){const _0x9e2a82=_0x37e8c9,_0x47faa3={'Beibr':function(_0x15c778){return _0x15c778();},'GVaNx':function(_0x303525,_0x3b71d8,_0x1410e7){return _0x303525(_0x3b71d8,_0x1410e7);},'jQvDm':function(_0x574ed1){return _0x574ed1();}},_0x8c9582=_0x47faa3['Beibr'](loadCache),_0x1c67d7=_0x47faa3['GVaNx'](getOrCreateSession,_0x8c9582,_0x168f16);_0x1c67d7[_0x9e2a82(0x1d3)]=!![];const _0x22a9ab=_0x47faa3[_0x9e2a82(0x1be)](getCurrentBranch);_0x22a9ab&&_0x22a9ab!=='main'&&_0x22a9ab!=='master'&&(_0x1c67d7[_0x9e2a82(0x1d5)]=_0x22a9ab),delete _0x8c9582['lastEnabledSessionClearedAt'],saveCache(_0x8c9582);}export function registerSession(_0x4c9748,_0x1809e4){const _0x2858b5=_0x37e8c9,_0x33408f={'syajP':function(_0x38afff,_0x353681,_0x37531f){return _0x38afff(_0x353681,_0x37531f);},'igKrD':function(_0xc25315,_0x1a0ddd){return _0xc25315(_0x1a0ddd);}},_0x57e59f=loadCache(),_0x5cc6e7=_0x33408f['syajP'](getOrCreateSession,_0x57e59f,_0x4c9748);_0x5cc6e7['featureId']=_0x1809e4,_0x5cc6e7[_0x2858b5(0x1c7)]=new Date()['toISOString'](),_0x33408f[_0x2858b5(0x1e8)](saveCache,_0x57e59f);}export function getSessionEntry(_0x4ffc5e){const _0x159de2=_0x37e8c9,_0x37f2ca=loadCache(),_0x385bfc=_0x37f2ca['sessions'][_0x4ffc5e];if(_0x385bfc?.['featureId']&&_0x385bfc?.['registeredAt'])return{'featureId':_0x385bfc[_0x159de2(0x1db)],'registeredAt':_0x385bfc['registeredAt']};return null;}export function unregisterSession(_0x34874d){const _0x2a0a2e=_0x37e8c9,_0x2cacaa={'UtUhr':function(_0x471f5d){return _0x471f5d();}},_0x3120b6=_0x2cacaa[_0x2a0a2e(0x1c1)](loadCache),_0x30d09a=_0x3120b6['sessions'][_0x34874d];_0x30d09a&&(delete _0x30d09a[_0x2a0a2e(0x1db)],delete _0x30d09a[_0x2a0a2e(0x1c7)],saveCache(_0x3120b6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xceecc0){const _0x3be613=_0x37e8c9,_0x373e04={'INdxt':function(_0x3217b7){return _0x3217b7();},'mkdfj':function(_0x1e049e,_0xa5c939,_0x365af0){return _0x1e049e(_0xa5c939,_0x365af0);},'HOTSk':function(_0x2630b5,_0x2e6abe){return _0x2630b5-_0x2e6abe;},'AZYCr':function(_0x3abb42,_0x5cace7){return _0x3abb42(_0x5cace7);}},_0x41a8f6=_0x373e04['INdxt'](loadCache),_0x17b0cf=_0x373e04['mkdfj'](getOrCreateSession,_0x41a8f6,_0xceecc0),_0x283d8a=_0x17b0cf['lastPlanReminderAt']||0x0,_0x3ba5c0=Date[_0x3be613(0x1e3)]();if(_0x373e04['HOTSk'](_0x3ba5c0,_0x283d8a)>=PLAN_REMINDER_INTERVAL_MS)return _0x17b0cf['lastPlanReminderAt']=_0x3ba5c0,_0x373e04['AZYCr'](saveCache,_0x41a8f6),!![];return![];}function _0x6506(){const _0x121559=['4zLTVFK','prompted','sSxKz','featureId','HesaH','Hldky','7104912FPAtjW','utf-8','DYgYQ','git\x20rev-parse\x20--abbrev-ref\x20HEAD','writeFileSync','now','gfWkw','497279smptWe','main','YIMYC','igKrD','rfznR','854RMEZkv','nomFR','4ElIdsx','6650216zIEJuk','FkMfk','join','5064855uNmfGv','clear','existsSync','tLKjX','cmexz','YvGyT','lastEnabledSessionClearedAt','jQvDm','20eeUzFJ','OrPyv','UtUhr','xRqgY','HOhlh','mkdirSync','43914AeJnvP','dCXrE','registeredAt','FLYnH','trxpJ','Tsjiu','branches','LrZxd','hNiIR','homedir','IcJYo','master','sessions','4635729YBzNXc','enabled','821103vQuqgC','currentBranch','22UGfVWD','trim'];_0x6506=function(){return _0x121559;};return _0x6506();}export function shouldShowStopReminder(_0x18da0e){const _0x71768=_0x37e8c9,_0x1aa4d2={'Hldky':function(_0x12c216,_0x31c0d9){return _0x12c216>=_0x31c0d9;},'lGZNm':function(_0x6a6017,_0x4f59ff){return _0x6a6017-_0x4f59ff;},'uSAMu':function(_0x1e5ed6,_0x5c5771){return _0x1e5ed6(_0x5c5771);}},_0x3f29fd=loadCache(),_0x31a891=getOrCreateSession(_0x3f29fd,_0x18da0e),_0x4a92ec=_0x31a891['lastStopReminderAt']||0x0,_0x3cb781=Date[_0x71768(0x1e3)]();if(_0x1aa4d2[_0x71768(0x1dd)](_0x1aa4d2['lGZNm'](_0x3cb781,_0x4a92ec),STOP_REMINDER_INTERVAL_MS))return _0x31a891['lastStopReminderAt']=_0x3cb781,_0x1aa4d2['uSAMu'](saveCache,_0x3f29fd),!![];return![];}export function hasSessionBeenPrompted(_0xd5cd41){const _0x176c3e={'aFaUW':function(_0xa815ce,_0x54e7a4){return _0xa815ce===_0x54e7a4;}},_0x36d8ed=loadCache();return _0x176c3e['aFaUW'](_0x36d8ed['sessions'][_0xd5cd41]?.['prompted'],!![]);}export function markSessionPrompted(_0x3c65ae){const _0x5da083=_0x37e8c9,_0x5c3f53={'HesaH':function(_0x130e25){return _0x130e25();},'ltyGP':function(_0xb09950,_0x38b49a,_0x2f7eb8){return _0xb09950(_0x38b49a,_0x2f7eb8);},'hNiIR':function(_0x48ad1e,_0x38f0e8){return _0x48ad1e(_0x38f0e8);}},_0x5a4958=_0x5c3f53[_0x5da083(0x1dc)](loadCache),_0x4775db=_0x5c3f53['ltyGP'](getOrCreateSession,_0x5a4958,_0x3c65ae);_0x4775db[_0x5da083(0x1d9)]=!![],_0x5c3f53[_0x5da083(0x1cd)](saveCache,_0x5a4958);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0xe64401=_0x6942;(function(_0x293251,_0x2aee33){const _0x37a1e8=_0x6942,_0x8e8f80=_0x293251();while(!![]){try{const _0x4deb69=parseInt(_0x37a1e8(0xc9))/0x1+parseInt(_0x37a1e8(0xc4))/0x2+parseInt(_0x37a1e8(0x9b))/0x3+-parseInt(_0x37a1e8(0xa1))/0x4*(-parseInt(_0x37a1e8(0xaa))/0x5)+parseInt(_0x37a1e8(0xa9))/0x6*(parseInt(_0x37a1e8(0xbd))/0x7)+parseInt(_0x37a1e8(0xb3))/0x8+-parseInt(_0x37a1e8(0x9a))/0x9;if(_0x4deb69===_0x2aee33)break;else _0x8e8f80['push'](_0x8e8f80['shift']());}catch(_0x4363ca){_0x8e8f80['push'](_0x8e8f80['shift']());}}}(_0x47a8,0x34f87));import*as _0x5d2aa5 from'fs';import*as _0x384bb5 from'path';import*as _0x22a86d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x384bb5[_0xe64401(0xaf)](_0x22a86d['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4244d5=_0xe64401,_0x472e64={'bMLgG':function(_0x425b68){return _0x425b68();}};try{if(_0x5d2aa5['existsSync'](CACHE_FILE)){const _0x5e7f5d=JSON[_0x4244d5(0xbf)](_0x5d2aa5['readFileSync'](CACHE_FILE,_0x4244d5(0xb9)));return{'version':0x3,'sessions':_0x5e7f5d[_0x4244d5(0x98)]||{},'branches':_0x5e7f5d['branches']||{},'lastEnabledSessionClearedAt':_0x5e7f5d['lastEnabledSessionClearedAt']};}}catch{}return _0x472e64['bMLgG'](createEmptyCache);}function saveCache(_0x276e41){const _0x19bac6=_0xe64401;try{const _0x27392a=_0x384bb5[_0x19bac6(0xc8)](CACHE_FILE);!_0x5d2aa5[_0x19bac6(0x9c)](_0x27392a)&&_0x5d2aa5['mkdirSync'](_0x27392a,{'recursive':!![]}),_0x5d2aa5[_0x19bac6(0xc5)](CACHE_FILE,JSON[_0x19bac6(0xa6)](_0x276e41,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3eb0b3=_0xe64401,_0x3216cc={'fjTsD':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','eEWuV':_0x3eb0b3(0xb9),'PhVBR':'pipe'};try{const _0x1f85f4=execSync(_0x3216cc[_0x3eb0b3(0xb5)],{'encoding':_0x3216cc['eEWuV'],'stdio':[_0x3216cc[_0x3eb0b3(0xb7)],_0x3216cc[_0x3eb0b3(0xb7)],_0x3eb0b3(0xb6)]})[_0x3eb0b3(0xac)]();if(!_0x1f85f4||_0x1f85f4==='HEAD')return null;return _0x1f85f4;}catch{return null;}}export function enableBranch(_0x5aece7){const _0xf04021=loadCache();_0xf04021['branches'][_0x5aece7]=!![],saveCache(_0xf04021);}export function disableBranch(_0x24f9ba){const _0xdae885=_0xe64401,_0x27b259=loadCache();delete _0x27b259[_0xdae885(0xa3)][_0x24f9ba],saveCache(_0x27b259);}export function isBranchEnabled(_0xbc2ae){const _0x293af8=_0xe64401,_0x114e68={'LbaOo':function(_0x2996b3){return _0x2996b3();}},_0x4634a1=_0x114e68['LbaOo'](loadCache);return _0x4634a1[_0x293af8(0xa3)][_0xbc2ae]===!![];}function getOrCreateSession(_0x565b96,_0x407060){return!_0x565b96['sessions'][_0x407060]&&(_0x565b96['sessions'][_0x407060]={}),_0x565b96['sessions'][_0x407060];}export function enableSession(_0x5444b7){const _0x4e911e=_0xe64401,_0x56ff5e={'mpMak':function(_0xed335f){return _0xed335f();},'KpJwd':function(_0x14ef29,_0x296745){return _0x14ef29!==_0x296745;},'ifhvM':'main','oqEGy':function(_0x459390,_0x5486e7){return _0x459390(_0x5486e7);}},_0x204b57=_0x56ff5e['mpMak'](loadCache),_0x31c430=getOrCreateSession(_0x204b57,_0x5444b7);_0x31c430['enabled']=!![];const _0x35d13f=getCurrentBranch();_0x35d13f&&_0x56ff5e[_0x4e911e(0xc6)](_0x35d13f,_0x56ff5e[_0x4e911e(0xc0)])&&_0x35d13f!==_0x4e911e(0xb8)&&(_0x204b57[_0x4e911e(0xa3)][_0x35d13f]=!![],_0x31c430['currentBranch']=_0x35d13f),_0x56ff5e['oqEGy'](saveCache,_0x204b57);}export function isSessionEnabled(_0x56a67f){const _0xb3fd5b=_0xe64401,_0x2536d6={'gaiCX':function(_0x18ac99){return _0x18ac99();},'RXEgp':function(_0x22a780,_0x56c414){return _0x22a780===_0x56c414;},'ymajo':function(_0x4da143,_0x2db52a){return _0x4da143===_0x2db52a;},'JnCCa':function(_0x1afa41,_0x35b15e){return _0x1afa41===_0x35b15e;},'RfEFr':function(_0x340741,_0x5be512){return _0x340741||_0x5be512;}},_0x53b10e=loadCache(),_0x2ea36f=_0x2536d6[_0xb3fd5b(0xb0)](getCurrentBranch);if(!_0x2ea36f||_0x2536d6['RXEgp'](_0x2ea36f,'main')||_0x2536d6[_0xb3fd5b(0xca)](_0x2ea36f,'master'))return _0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)]===!![];const _0x582ddb=_0x2536d6['RXEgp'](_0x53b10e[_0xb3fd5b(0xa3)][_0x2ea36f],!![]),_0x427fe6=_0x2536d6[_0xb3fd5b(0x9e)](_0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)],!![]);return _0x2536d6[_0xb3fd5b(0xc3)](_0x582ddb,_0x427fe6);}export function disableSession(_0x17c3ce){const _0x30aad2=_0xe64401,_0x1cb6e2={'SCuRg':function(_0x2be6a3){return _0x2be6a3();},'ZVXtp':function(_0x5cc558,_0x2ac0f1,_0x2699db){return _0x5cc558(_0x2ac0f1,_0x2699db);},'jkYkT':function(_0x4f75be,_0x53bcc1){return _0x4f75be(_0x53bcc1);}},_0x45b361=_0x1cb6e2[_0x30aad2(0xa7)](loadCache),_0x51339b=_0x1cb6e2[_0x30aad2(0xa4)](getOrCreateSession,_0x45b361,_0x17c3ce);_0x51339b['enabled']=![],_0x1cb6e2[_0x30aad2(0xba)](saveCache,_0x45b361);}export function updateBranchTracking(_0x55db73){const _0x10aafd=_0xe64401,_0x405ac7={'AqQnM':function(_0x2863ec){return _0x2863ec();},'MPPXc':function(_0x4bd2c5,_0x31839e){return _0x4bd2c5===_0x31839e;},'wqtfU':_0x10aafd(0xbb),'GAGPr':'master','iHKNy':function(_0x5a715c,_0x94d6ed){return _0x5a715c!==_0x94d6ed;},'xkHcv':function(_0x41c3b1,_0x2392db){return _0x41c3b1(_0x2392db);}},_0x4b9f27=loadCache(),_0x5de611=_0x4b9f27[_0x10aafd(0x98)][_0x55db73];if(!_0x5de611?.['enabled'])return;const _0x53aa9b=_0x405ac7['AqQnM'](getCurrentBranch);if(!_0x53aa9b||_0x405ac7['MPPXc'](_0x53aa9b,_0x405ac7[_0x10aafd(0xa5)])||_0x53aa9b===_0x405ac7[_0x10aafd(0xbc)])return;_0x405ac7['iHKNy'](_0x5de611[_0x10aafd(0x9f)],_0x53aa9b)&&(_0x4b9f27['branches'][_0x53aa9b]=!![],_0x5de611[_0x10aafd(0x9f)]=_0x53aa9b,_0x405ac7[_0x10aafd(0x9d)](saveCache,_0x4b9f27));}export function initBranchTracking(_0x2e3bd5){const _0x1a6dd7=_0xe64401,_0x41c25e={'EsrPY':function(_0x446c2a){return _0x446c2a();},'jNlTj':function(_0x5675f5,_0x4e138d){return _0x5675f5===_0x4e138d;},'SmBGm':_0x1a6dd7(0xb8),'TeiJx':function(_0x171eb6,_0x42b53c,_0x1d48dd){return _0x171eb6(_0x42b53c,_0x1d48dd);}},_0x12e2cb=_0x41c25e['EsrPY'](loadCache),_0x46b045=getCurrentBranch();if(!_0x46b045||_0x41c25e['jNlTj'](_0x46b045,_0x1a6dd7(0xbb))||_0x46b045===_0x41c25e['SmBGm'])return;if(_0x12e2cb['branches'][_0x46b045]===!![]){const _0x38ba76=_0x41c25e['TeiJx'](getOrCreateSession,_0x12e2cb,_0x2e3bd5);_0x38ba76[_0x1a6dd7(0x95)]=!![],_0x38ba76[_0x1a6dd7(0x9f)]=_0x46b045,saveCache(_0x12e2cb);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x6942(_0x55ad94,_0x49e518){_0x55ad94=_0x55ad94-0x94;const _0x47a8d9=_0x47a8();let _0x6942f2=_0x47a8d9[_0x55ad94];return _0x6942f2;}export function recordEnabledSessionCleared(_0x105cac){const _0x2de0b3=loadCache(),_0x2adafd=_0x2de0b3['sessions'][_0x105cac];_0x2adafd?.['enabled']&&(_0x2de0b3['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x2de0b3));}export function shouldAutoEnableAfterClear(_0x12e723){const _0x97237=_0xe64401,_0x44a20d={'dDlKi':_0x97237(0xae),'CErfo':function(_0x4f8907,_0x1c55fe){return _0x4f8907-_0x1c55fe;},'ZKXwX':function(_0x38dfd1,_0x143564){return _0x38dfd1<=_0x143564;}};if(_0x12e723!==_0x44a20d[_0x97237(0x99)])return![];const _0x4b63d6=loadCache(),_0x424629=_0x4b63d6[_0x97237(0xad)];if(!_0x424629)return![];const _0x49f91f=_0x44a20d[_0x97237(0xb1)](Date['now'](),_0x424629);return _0x44a20d['ZKXwX'](_0x49f91f,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x2b972f){const _0x262732=_0xe64401,_0x352ab3={'NolXU':function(_0x42263d){return _0x42263d();},'Nxogm':function(_0x305c00,_0x2adae7,_0x929db){return _0x305c00(_0x2adae7,_0x929db);},'KnbYL':function(_0x5774f4,_0x4e603e){return _0x5774f4!==_0x4e603e;},'BsvvF':_0x262732(0xbb),'mxNqx':function(_0x23f48f,_0x3b01a1){return _0x23f48f(_0x3b01a1);}},_0x4a37d7=_0x352ab3[_0x262732(0xc7)](loadCache),_0x50c0af=_0x352ab3['Nxogm'](getOrCreateSession,_0x4a37d7,_0x2b972f);_0x50c0af[_0x262732(0x95)]=!![];const _0x20330b=getCurrentBranch();_0x20330b&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x352ab3['BsvvF'])&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x262732(0xb8))&&(_0x50c0af['currentBranch']=_0x20330b),delete _0x4a37d7['lastEnabledSessionClearedAt'],_0x352ab3['mxNqx'](saveCache,_0x4a37d7);}export function registerSession(_0x36023c,_0x15b163){const _0x3a4680=_0xe64401,_0x1f10cd=loadCache(),_0x49fb13=getOrCreateSession(_0x1f10cd,_0x36023c);_0x49fb13[_0x3a4680(0xb4)]=_0x15b163,_0x49fb13['registeredAt']=new Date()['toISOString'](),saveCache(_0x1f10cd);}export function getSessionEntry(_0x198c06){const _0x3a6cc9=_0xe64401,_0x144293=loadCache(),_0x3bf88b=_0x144293['sessions'][_0x198c06];if(_0x3bf88b?.[_0x3a6cc9(0xb4)]&&_0x3bf88b?.['registeredAt'])return{'featureId':_0x3bf88b[_0x3a6cc9(0xb4)],'registeredAt':_0x3bf88b['registeredAt']};return null;}export function unregisterSession(_0x3ee27b){const _0x9c374a=_0xe64401,_0x2a5d94={'VtLrC':function(_0x268840){return _0x268840();}},_0x506060=_0x2a5d94['VtLrC'](loadCache),_0x57648d=_0x506060['sessions'][_0x3ee27b];_0x57648d&&(delete _0x57648d['featureId'],delete _0x57648d[_0x9c374a(0x97)],saveCache(_0x506060));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2de1ee){const _0x39568b=_0xe64401,_0x104552={'dDbmL':function(_0x31f864,_0x574bb8,_0x456192){return _0x31f864(_0x574bb8,_0x456192);},'iiMUL':function(_0x4577c4,_0x15f7a4){return _0x4577c4>=_0x15f7a4;},'QeBOB':function(_0x22b7d1,_0x4caa25){return _0x22b7d1-_0x4caa25;}},_0x485fab=loadCache(),_0xd848d1=_0x104552['dDbmL'](getOrCreateSession,_0x485fab,_0x2de1ee),_0x30da86=_0xd848d1['lastPlanReminderAt']||0x0,_0x4b1bdd=Date[_0x39568b(0xa8)]();if(_0x104552[_0x39568b(0xbe)](_0x104552[_0x39568b(0xa2)](_0x4b1bdd,_0x30da86),PLAN_REMINDER_INTERVAL_MS))return _0xd848d1['lastPlanReminderAt']=_0x4b1bdd,saveCache(_0x485fab),!![];return![];}export function shouldShowStopReminder(_0x112ddd){const _0x4fc693=_0xe64401,_0x2912ea={'HCknw':function(_0x473cdb){return _0x473cdb();},'rfDLA':function(_0x34db2e,_0xfab8ca,_0x48718b){return _0x34db2e(_0xfab8ca,_0x48718b);},'JCCuV':function(_0x1f86b9,_0x50ca34){return _0x1f86b9>=_0x50ca34;},'JKvCf':function(_0x21dbca,_0x222941){return _0x21dbca-_0x222941;}},_0x87de2e=_0x2912ea[_0x4fc693(0x96)](loadCache),_0x246fec=_0x2912ea[_0x4fc693(0xb2)](getOrCreateSession,_0x87de2e,_0x112ddd),_0x521f9c=_0x246fec[_0x4fc693(0xc2)]||0x0,_0x91389e=Date[_0x4fc693(0xa8)]();if(_0x2912ea[_0x4fc693(0xab)](_0x2912ea['JKvCf'](_0x91389e,_0x521f9c),STOP_REMINDER_INTERVAL_MS))return _0x246fec[_0x4fc693(0xc2)]=_0x91389e,saveCache(_0x87de2e),!![];return![];}function _0x47a8(){const _0x30ab18=['SCuRg','now','105654yUVMcf','1270ONtsnI','JCCuV','trim','lastEnabledSessionClearedAt','clear','join','gaiCX','CErfo','rfDLA','1965792nZOrNV','featureId','fjTsD','pipe','PhVBR','master','utf-8','jkYkT','main','GAGPr','28tsTXPy','iiMUL','parse','ifhvM','cOJBT','lastStopReminderAt','RfEFr','482584LajpKf','writeFileSync','KpJwd','NolXU','dirname','73278JarbnR','ymajo','KnbYL','enabled','HCknw','registeredAt','sessions','dDlKi','8122482JJUDKu','1224651eRllNB','existsSync','xkHcv','JnCCa','currentBranch','prompted','1268OvFtNY','QeBOB','branches','ZVXtp','wqtfU','stringify'];_0x47a8=function(){return _0x30ab18;};return _0x47a8();}export function hasSessionBeenPrompted(_0x592e24){const _0x4b30a7=_0xe64401,_0x593273={'UXpQh':function(_0x52d144,_0x594bfa){return _0x52d144===_0x594bfa;}},_0x5e3ffc=loadCache();return _0x593273['UXpQh'](_0x5e3ffc[_0x4b30a7(0x98)][_0x592e24]?.['prompted'],!![]);}export function markSessionPrompted(_0x3b5625){const _0x5c6312=_0xe64401,_0x4ff664={'cOJBT':function(_0x4d4a47){return _0x4d4a47();},'vuDXM':function(_0x175b1e,_0x504d67,_0x1cccd5){return _0x175b1e(_0x504d67,_0x1cccd5);}},_0x224ba9=_0x4ff664[_0x5c6312(0xc1)](loadCache),_0x304c4d=_0x4ff664['vuDXM'](getOrCreateSession,_0x224ba9,_0x3b5625);_0x304c4d[_0x5c6312(0xa0)]=!![],saveCache(_0x224ba9);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x47899b=_0x1df3;(function(_0x556474,_0x21461b){const _0x33ab21=_0x1df3,_0x196282=_0x556474();while(!![]){try{const _0x231e40=parseInt(_0x33ab21(0x152))/0x1*(-parseInt(_0x33ab21(0x13b))/0x2)+-parseInt(_0x33ab21(0x17b))/0x3*(parseInt(_0x33ab21(0x137))/0x4)+parseInt(_0x33ab21(0x145))/0x5*(parseInt(_0x33ab21(0x13c))/0x6)+-parseInt(_0x33ab21(0x14a))/0x7*(-parseInt(_0x33ab21(0x177))/0x8)+-parseInt(_0x33ab21(0x16f))/0x9*(-parseInt(_0x33ab21(0x128))/0xa)+parseInt(_0x33ab21(0x121))/0xb*(-parseInt(_0x33ab21(0x16b))/0xc)+-parseInt(_0x33ab21(0x15d))/0xd*(-parseInt(_0x33ab21(0x17a))/0xe);if(_0x231e40===_0x21461b)break;else _0x196282['push'](_0x196282['shift']());}catch(_0x2cf6b6){_0x196282['push'](_0x196282['shift']());}}}(_0x2ae9,0xeb889));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x4be196,_0x25210a){const _0x5c4c29=_0x1df3,_0x1a29b6={'wYgmq':function(_0xe753b9,_0x3d68b5,_0x52d69e,_0x5a5095){return _0xe753b9(_0x3d68b5,_0x52d69e,_0x5a5095);},'UblHN':function(_0x33cb83,_0x1338a1,_0x422a81){return _0x33cb83(_0x1338a1,_0x422a81);},'ZaAZt':function(_0x63363c,_0x1a6818,_0x3148c1){return _0x63363c(_0x1a6818,_0x3148c1);},'ITwFD':function(_0x563201,_0x5b5e44,_0x5e753d){return _0x563201(_0x5b5e44,_0x5e753d);},'mJKrj':function(_0x49a62a,_0x12aa79){return _0x49a62a(_0x12aa79);}},_0x2cb3a4=_0x1a29b6['wYgmq'](join,_0x25210a,'ci',_0x4be196),_0x244b4b=join(_0x25210a,'local',_0x4be196),_0x5ce22e=_0x1a29b6[_0x5c4c29(0x150)](join,_0x25210a,_0x4be196),_0x2ab143=_0x1a29b6[_0x5c4c29(0x140)](join,_0x25210a,'local'),_0x4f6a50=_0x1a29b6[_0x5c4c29(0x135)](join,_0x25210a,'ci');if(existsSync(_0x2cb3a4))return _0x2cb3a4;if(existsSync(_0x244b4b))return _0x244b4b;if(_0x1a29b6['mJKrj'](existsSync,_0x5ce22e)&&(_0x5ce22e!==_0x2ab143&&_0x5ce22e!==_0x4f6a50?!![]:_0x1a29b6['mJKrj'](hasLegacyProfileFiles,_0x5ce22e)))return _0x5ce22e;return null;}export function getEnvDir(_0x45cdb4){const _0x7d987c=_0x1df3,_0x19f84e={'XcAbo':function(_0x1bdae4,_0xb20c8b,_0x8912c){return _0x1bdae4(_0xb20c8b,_0x8912c);}},_0x20d8c2=getRangerDir(),_0x3f5883=_0x19f84e[_0x7d987c(0x14c)](findEnvInRoot,_0x45cdb4,_0x20d8c2);if(_0x3f5883)return _0x3f5883;const _0x15d520=getRangerHomeDir();if(_0x15d520!==_0x20d8c2){const _0x2cc37b=_0x19f84e['XcAbo'](findEnvInRoot,_0x45cdb4,_0x15d520);if(_0x2cc37b)return _0x2cc37b;}return join(_0x20d8c2,'local',_0x45cdb4);}export function findExistingEnv(_0x21eb22,_0x260031){const _0x781090=_0x1df3,_0x47a7b5={'yPyRY':function(_0x45874c,_0x1164e5,_0x266055){return _0x45874c(_0x1164e5,_0x266055);},'sjJsb':function(_0x3d620f,_0x221afc,_0x3c472e,_0x594ac0){return _0x3d620f(_0x221afc,_0x3c472e,_0x594ac0);},'FYNVJ':_0x781090(0x14f),'BZfoc':function(_0x234bea,_0x376684){return _0x234bea(_0x376684);},'NQAEw':function(_0x465e35,_0x14de4a){return _0x465e35===_0x14de4a;}},_0x4e56ff=_0x260031?.[_0x781090(0x146)],_0x212250=_0x4e56ff?[_0x4e56ff]:[getRangerDir(),getRangerHomeDir()][_0x781090(0x11b)]((_0x1403d7,_0x410660,_0x2df788)=>_0x2df788['indexOf'](_0x1403d7)===_0x410660),_0x2e63cf=_0x260031?.[_0x781090(0x147)]??['ci',_0x781090(0x142),'legacy'];for(const _0x4b55f0 of _0x212250){const _0x3b4749=_0x47a7b5[_0x781090(0x161)](join,_0x4b55f0,_0x781090(0x142)),_0x4b926c=join(_0x4b55f0,'ci'),_0x386763=[{'location':'ci','path':join(_0x4b55f0,'ci',_0x21eb22)},{'location':_0x781090(0x142),'path':_0x47a7b5['sjJsb'](join,_0x4b55f0,'local',_0x21eb22)},{'location':_0x47a7b5['FYNVJ'],'path':join(_0x4b55f0,_0x21eb22)}];for(const _0x433ab7 of _0x386763){if(_0x2e63cf['includes'](_0x433ab7[_0x781090(0x174)])&&_0x47a7b5['BZfoc'](existsSync,_0x433ab7['path'])){if(_0x433ab7['location']===_0x781090(0x14f)&&(_0x433ab7['path']===_0x3b4749||_0x47a7b5[_0x781090(0x171)](_0x433ab7[_0x781090(0x15a)],_0x4b926c))&&!hasLegacyProfileFiles(_0x433ab7[_0x781090(0x15a)]))continue;return{'path':_0x433ab7['path'],'location':_0x433ab7[_0x781090(0x174)]};}}}return null;}function hasLegacyProfileFiles(_0x21ea33){const _0x5a151a=_0x1df3,_0x458a9c={'DsHXJ':function(_0x5a45a6,_0x387561){return _0x5a45a6(_0x387561);},'YwgAV':function(_0x5af1b0,_0x8cc2e,_0xf7487b){return _0x5af1b0(_0x8cc2e,_0xf7487b);},'yLYPP':'auth.json','BefPX':function(_0x1db078,_0x2911aa){return _0x1db078(_0x2911aa);},'ERVDr':'auth.json.enc'};return _0x458a9c['DsHXJ'](existsSync,join(_0x21ea33,'settings.json'))||_0x458a9c[_0x5a151a(0x148)](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c['yLYPP']))||_0x458a9c['BefPX'](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c[_0x5a151a(0x14e)]));}export function isEnvCi(_0x2a6e64){const _0x19319a={'yYFTm':function(_0x12c6d2,_0xb093b,_0x2654f8,_0x4419c7){return _0x12c6d2(_0xb093b,_0x2654f8,_0x4419c7);}};return existsSync(_0x19319a['yYFTm'](join,getRangerDir(),'ci',_0x2a6e64));}export async function cleanupTempFiles(_0x1d4cf4){const _0x21a98b=_0x1df3,_0x126712={'nuUeN':'ENOENT'},_0x3859f8=[_0x1d4cf4[_0x21a98b(0x159)],_0x1d4cf4['configPath']][_0x21a98b(0x11b)](Boolean);await Promise[_0x21a98b(0x12b)](_0x3859f8[_0x21a98b(0x166)](_0x111818=>unlink(_0x111818)['catch'](_0x237a9a=>{const _0x2f7643=_0x21a98b;_0x237a9a[_0x2f7643(0x149)]!==_0x126712['nuUeN']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x111818+':',_0x237a9a[_0x2f7643(0x15f)]);})));}export function getSettingsPath(_0x32c6e9){const _0x276f77=_0x1df3,_0x451bf7={'Wfngb':function(_0x35653d,_0x569bef,_0xb0ccbf){return _0x35653d(_0x569bef,_0xb0ccbf);},'HkUzW':function(_0x34fa65,_0x19a9aa){return _0x34fa65(_0x19a9aa);},'sGqUr':_0x276f77(0x12c)};return _0x451bf7['Wfngb'](join,_0x451bf7['HkUzW'](getEnvDir,_0x32c6e9),_0x451bf7[_0x276f77(0x11c)]);}function _0x2ae9(){const _0x1e2994=['playwright-cli','file','791271EVFHNu','fromEntries','NQAEw','VUEKv','hKsZc','location','isArray','OVQcu','24LEikPW','includes','getuid','1050ANYWNz','6lvBYSi','adxtt','FhSxE','object','-cli','storageState','YYAzQ','replace','headers','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-running-insecure-content','LbZLu','Failed\x20to\x20decrypt\x20auth\x20state:\x20','filter','sGqUr','.json','--allow-insecure-localhost','now','zeQQE','11emtPqj','stagehand','userAgent','XjhYN','JNIHe','bcsbA','NCAUy','170VAqjMQ','storageStatePath','safeMode','all','settings.json','launchOptions','gowdq','--disable-setuid-sandbox','sessions','glVlJ','cdpEndpoint','install','headless','ITwFD','extraHTTPHeaders','3330380CVSXcW','uRtBt','browser','repeat','1498TESaFN','48WEGlzu','clipboard-read','txXRG','ranger-config','ZaAZt','entries','local','utf-8','XzkMl','1092180AzPQBp','rangerDir','locations','DsHXJ','code','823949QuUxZI','push','XcAbo','auth.json.enc','ERVDr','legacy','UblHN','contextOptions','2341Vevnrz','xOhaB','ceuGK','--disable-web-security','args','allow','FjSlt','tempAuthPath','path','pdf','xkmnp','329446ADZLNw','vision','message','YyKVW','yPyRY','jEkaK','jYNYa','tabs','zgYVe','map','length','rEBGb','KzhUM','boolean','13350456ipubwO','chromium'];_0x2ae9=function(){return _0x1e2994;};return _0x2ae9();}export async function loadSettings(_0x13bc6a){const _0x211faf=_0x1df3,_0x4a6f50={'adxtt':function(_0x4f9ebe,_0x6e211c){return _0x4f9ebe(_0x6e211c);},'uRtBt':_0x211faf(0x143)},_0x1055fb=getSettingsPath(_0x13bc6a);if(!_0x4a6f50[_0x211faf(0x17c)](existsSync,_0x1055fb))return{};try{const _0x198e89=await readFile(_0x1055fb,_0x4a6f50[_0x211faf(0x138)]);return JSON['parse'](_0x198e89);}catch{return{};}}export async function saveSettings(_0x871054,_0x39e831){const _0x22fded=_0x1df3,_0x323a12={'NCAUy':function(_0x1603c6,_0x1e10cd){return _0x1603c6(_0x1e10cd);},'wxjCe':function(_0xd95842,_0x252e9e,_0x4ebb3b){return _0xd95842(_0x252e9e,_0x4ebb3b);}},_0x2ab584=getSettingsPath(_0x871054),_0x2dd9d8=dirname(_0x2ab584);!_0x323a12[_0x22fded(0x127)](existsSync,_0x2dd9d8)&&await mkdir(_0x2dd9d8,{'recursive':!![]}),await _0x323a12['wxjCe'](writeFile,_0x2ab584,JSON['stringify'](_0x39e831,null,0x2));}export function resolveEnvVars(_0x24ce6f){const _0x83c100=_0x1df3,_0x43b7f9={'xOhaB':function(_0x4075c1,_0x1cac64){return _0x4075c1===_0x1cac64;},'xkmnp':'object'};if(_0x43b7f9[_0x83c100(0x153)](typeof _0x24ce6f,'string'))return _0x24ce6f[_0x83c100(0x115)](/\$\{(\w+)\}/g,(_0x426f43,_0x30aaf1)=>{const _0xde429c=process['env'][_0x30aaf1];if(_0xde429c===undefined)throw new Error('Environment\x20variable\x20'+_0x30aaf1+'\x20is\x20not\x20set');return _0xde429c;});if(Array['isArray'](_0x24ce6f))return _0x24ce6f['map'](resolveEnvVars);if(_0x24ce6f&&typeof _0x24ce6f===_0x43b7f9[_0x83c100(0x15c)])return Object[_0x83c100(0x170)](Object[_0x83c100(0x141)](_0x24ce6f)['map'](([_0x30fa09,_0x4529f7])=>[_0x30fa09,resolveEnvVars(_0x4529f7)]));return _0x24ce6f;}const isRecord=_0x28a692=>typeof _0x28a692==='object'&&_0x28a692!==null&&!Array[_0x47899b(0x175)](_0x28a692),asRecord=_0x4d1d96=>isRecord(_0x4d1d96)?_0x4d1d96:undefined,mergeHeaders=(_0x4e0750,_0x48b366)=>{const _0x27d424=_0x47899b,_0x4512c1={..._0x4e0750??{},..._0x48b366??{}};return Object['keys'](_0x4512c1)[_0x27d424(0x167)]?_0x4512c1:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x47899b(0x155),_0x47899b(0x118),_0x47899b(0x117),_0x47899b(0x11e)];export function buildBrowserOptionsFromSettings(_0x289311,_0x34ac27={}){const _0x3c4089=_0x47899b,_0x18cfce={'ceuGK':function(_0x54460f,_0x50a762){return _0x54460f(_0x50a762);},'SHDdL':function(_0x5d4d92,_0x1c9266){return _0x5d4d92===_0x1c9266;},'YYAzQ':_0x3c4089(0x16a)},_0x15b659=_0x18cfce[_0x3c4089(0x154)](asRecord,_0x289311[_0x3c4089(0x139)]),_0x34f01a={...asRecord(_0x15b659?.[_0x3c4089(0x12d)])??{}};_0x18cfce['SHDdL'](typeof _0x34ac27[_0x3c4089(0x134)],_0x18cfce[_0x3c4089(0x114)])&&(_0x34f01a[_0x3c4089(0x134)]=_0x34ac27[_0x3c4089(0x134)]);if(_0x289311[_0x3c4089(0x12a)]){const _0x51245f=_0x34f01a['args']??[],_0x2ff7b8=SAFE_MODE_ARGS[_0x3c4089(0x11b)](_0x283f67=>!_0x51245f[_0x3c4089(0x178)](_0x283f67));_0x34f01a['args']=[..._0x51245f,..._0x2ff7b8];}if(_0x289311['allowInsecureLocalhost']){const _0x142a8c=_0x34f01a['args']??[],_0x548d13=ALLOW_LOCALHOST_ARGS[_0x3c4089(0x11b)](_0x6f9def=>!_0x142a8c[_0x3c4089(0x178)](_0x6f9def));_0x34f01a['args']=[..._0x142a8c,..._0x548d13];}const _0x51905e={...asRecord(_0x15b659?.[_0x3c4089(0x151)])??{}};_0x51905e['ignoreHTTPSErrors']=!![];typeof _0x289311['userAgent']==='string'&&(_0x51905e['userAgent']=_0x289311[_0x3c4089(0x123)]);const _0x51f4e5=mergeHeaders(asRecord(_0x51905e[_0x3c4089(0x136)]),asRecord(_0x289311['headers']));return _0x51f4e5?_0x51905e[_0x3c4089(0x136)]=_0x51f4e5:delete _0x51905e[_0x3c4089(0x136)],_0x34ac27[_0x3c4089(0x129)]&&(_0x51905e['storageState']=_0x34ac27[_0x3c4089(0x129)]),{'launchOptions':_0x34f01a,'contextOptions':_0x51905e};}async function resolveLocalAuthPath(_0x26736a){const _0x22e6ea=_0x47899b,_0x5cf617={'LbZLu':function(_0xbdc141,_0x3c5966,_0x27b663){return _0xbdc141(_0x3c5966,_0x27b663);},'sjqIH':_0x22e6ea(0x14d),'IlVGG':'auth.json','nPPdQ':function(_0x99c9fd,_0x36bf9d){return _0x99c9fd(_0x36bf9d);},'ROYSG':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','bwuSq':function(_0x4537f0,_0x208883){return _0x4537f0 instanceof _0x208883;},'KzhUM':function(_0x419b47,_0x51adf9){return _0x419b47(_0x51adf9);}},_0x106e83=_0x5cf617['LbZLu'](join,_0x26736a,_0x5cf617['sjqIH']),_0xd4f37=join(_0x26736a,_0x5cf617['IlVGG']);if(_0x5cf617['nPPdQ'](existsSync,_0x106e83))try{const _0x2bde7b=await getToken();if(!_0x2bde7b)throw new Error(_0x5cf617['ROYSG']);const _0x3fc80a=await readFile(_0x106e83),_0x3af63f=decrypt(_0x3fc80a,_0x2bde7b),_0x43dc74=join(tmpdir(),'ranger-auth-'+Date['now']()+_0x22e6ea(0x11d));return await _0x5cf617[_0x22e6ea(0x119)](writeFile,_0x43dc74,_0x3af63f),{'storageStatePath':_0x43dc74,'tempAuthPath':_0x43dc74};}catch(_0x49b059){const _0x2344dd=_0x5cf617['bwuSq'](_0x49b059,Error)?_0x49b059[_0x22e6ea(0x15f)]:_0x5cf617[_0x22e6ea(0x169)](String,_0x49b059);throw new Error(_0x22e6ea(0x11a)+_0x2344dd);}if(existsSync(_0xd4f37))return{'storageStatePath':_0xd4f37};return{};}function _0x1df3(_0x516fae,_0x4bb0f6){_0x516fae=_0x516fae-0x113;const _0x2ae9d6=_0x2ae9();let _0x1df350=_0x2ae9d6[_0x516fae];return _0x1df350;}export async function buildPlaywrightConfig(_0x236094,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x31369d){const _0x17f196=_0x47899b,_0x42c33f={'YyKVW':function(_0x56aca6,_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a){return _0x56aca6(_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a);},'KIsDg':'stagehand','JNIHe':function(_0x40aef5,_0x570143){return _0x40aef5(_0x570143);}};if(_0x31369d)return _0x42c33f[_0x17f196(0x160)](buildPlaywrightConfigCore,_0x236094,_0x31369d,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);const {storageStatePath:_0x3c60d0,tempAuthPath:_0x25a63a}=await _0x42c33f[_0x17f196(0x125)](resolveLocalAuthPath,_0x42c33f[_0x17f196(0x125)](getEnvDir,_0x2aeae7)),_0x11ff6c=await _0x42c33f['YyKVW'](buildPlaywrightConfigCore,_0x236094,_0x3c60d0,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);return{..._0x11ff6c,'tempAuthPath':_0x25a63a};}export async function buildPlaywrightConfigCore(_0x49262c,_0x4bafe7,_0x2edfe6,_0x373881,_0x4c9128,_0x4b0863=_0x47899b(0x122)){const _0x3f7ba0=_0x47899b,_0x1b9404={'XzkMl':function(_0xc36b7f,_0x2c6fa1,_0x531796){return _0xc36b7f(_0x2c6fa1,_0x531796);},'gowdq':function(_0xc7a970,_0x51ec72){return _0xc7a970===_0x51ec72;},'FjSlt':'--no-sandbox','bPjnL':'chromium','RXTAn':_0x3f7ba0(0x13d),'hsUiR':'clipboard-write','dfShM':function(_0x5850ea){return _0x5850ea();},'zKlyN':function(_0x215adc,_0x3d1d73,_0x1a7c06,_0x448f8e){return _0x215adc(_0x3d1d73,_0x1a7c06,_0x448f8e);},'jEkaK':_0x3f7ba0(0x130),'VUEKv':function(_0xbe8ff5,_0x22d22b){return _0xbe8ff5(_0x22d22b);},'kaFac':'none','zgYVe':'core','LkLPH':_0x3f7ba0(0x15b),'mOEtR':_0x3f7ba0(0x157),'glVlJ':_0x3f7ba0(0x13f),'txXRG':function(_0x4d9484,_0x4ab409,_0x3d5984){return _0x4d9484(_0x4ab409,_0x3d5984);},'rpFVY':function(_0x558c04,_0x26aa5e){return _0x558c04===_0x26aa5e;},'VUzIe':_0x3f7ba0(0x17f)},_0xc1d2a1=_0x373881||_0x1b9404['dfShM'](randomUUID),_0x46fb35=_0x1b9404['zKlyN'](join,getRangerDir(),_0x1b9404[_0x3f7ba0(0x162)],_0xc1d2a1),_0x372938=_0x1b9404['VUEKv'](Boolean,_0x49262c['cdpEndpoint']),_0x14e7ff=_0x372938?{'browserName':_0x3f7ba0(0x16c),'cdpEndpoint':_0x49262c[_0x3f7ba0(0x132)]}:((()=>{const _0x1756f7=_0x3f7ba0,{launchOptions:_0x1529ef,contextOptions:_0x3fd7f7}=_0x1b9404[_0x1756f7(0x144)](buildBrowserOptionsFromSettings,_0x49262c,{'headless':_0x4c9128?![]:_0x49262c[_0x1756f7(0x134)]??!![],'storageStatePath':_0x4bafe7});if(_0x1b9404['gowdq'](process[_0x1756f7(0x179)]?.(),0x0)){const _0x25e777=[_0x1b9404[_0x1756f7(0x158)],_0x1756f7(0x12f)],_0x218897=_0x1529ef[_0x1756f7(0x156)]??[],_0x248899=_0x25e777['filter'](_0x5bc1c4=>!_0x218897['includes'](_0x5bc1c4));_0x1529ef['args']=[..._0x218897,..._0x248899];}return{'isolated':!![],'browserName':_0x1b9404['bPjnL'],'launchOptions':_0x1529ef,'contextOptions':{..._0x3fd7f7,'permissions':[_0x1b9404['RXTAn'],_0x1b9404['hsUiR']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3a3682=_0x4b0863===_0x3f7ba0(0x16d)?{'browser':_0x14e7ff,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35,'outputMode':_0x3f7ba0(0x16e),'codegen':_0x1b9404['kaFac']}:{'name':_0x2edfe6,'browser':_0x14e7ff,'capabilities':[_0x1b9404[_0x3f7ba0(0x165)],_0x3f7ba0(0x164),_0x3f7ba0(0x133),_0x1b9404['LkLPH'],_0x3f7ba0(0x15e)],'imageResponses':_0x1b9404['mOEtR'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35};if(!_0x372938){const _0x29f9e3=_0x3a3682['browser'],_0x1378f3=_0x29f9e3['contextOptions'];if(_0x1b9404[_0x3f7ba0(0x12e)](_0x1378f3['userAgent'],undefined))delete _0x1378f3['userAgent'];if(_0x1378f3[_0x3f7ba0(0x113)]===undefined)delete _0x1378f3[_0x3f7ba0(0x113)];}const _0x5cbe5f=_0x1b9404['XzkMl'](join,tmpdir(),_0x1b9404[_0x3f7ba0(0x131)]);!_0x1b9404[_0x3f7ba0(0x172)](existsSync,_0x5cbe5f)&&await _0x1b9404[_0x3f7ba0(0x13e)](mkdir,_0x5cbe5f,{'recursive':!![]});const _0x4c4e30=_0x1b9404['rpFVY'](_0x4b0863,'playwright-cli')?_0x1b9404['VUzIe']:'',_0x1890b7=_0x1b9404[_0x3f7ba0(0x144)](join,_0x5cbe5f,_0x2edfe6+'-'+Date[_0x3f7ba0(0x11f)]()+_0x4c4e30+_0x3f7ba0(0x11d));return await _0x1b9404[_0x3f7ba0(0x13e)](writeFile,_0x1890b7,JSON['stringify'](_0x3a3682,null,0x2)),{'configPath':_0x1890b7};}export async function buildPlaywrightCliConfig(_0x379517,_0xc8a19f,_0x11d74c,_0x47fa23,_0x5891ee){const _0x3ff841=_0x47899b,_0x54a8c9={'OVQcu':function(_0x303c1a,_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a){return _0x303c1a(_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a);},'fpcDf':function(_0x3f6cd6,_0x58656e){return _0x3f6cd6(_0x58656e);},'rvEUr':'playwright-cli'};if(_0x5891ee)return _0x54a8c9[_0x3ff841(0x176)](buildPlaywrightConfigCore,_0x379517,_0x5891ee,_0xc8a19f,_0x11d74c,_0x47fa23,'playwright-cli');const {storageStatePath:_0xbe707a,tempAuthPath:_0x5c70b4}=await resolveLocalAuthPath(_0x54a8c9['fpcDf'](getEnvDir,_0xc8a19f)),_0x244fa1=await buildPlaywrightConfigCore(_0x379517,_0xbe707a,_0xc8a19f,_0x11d74c,_0x47fa23,_0x54a8c9['rvEUr']);return{..._0x244fa1,'tempAuthPath':_0x5c70b4};}export function getNestedValue(_0x187c03,_0x28d462){const _0x37d96e=_0x47899b,_0x15bbfe={'hKsZc':function(_0x3d838c,_0x33cbc3){return _0x3d838c(_0x33cbc3);},'ajLEw':function(_0x4ede7e,_0x56cef4){return _0x4ede7e===_0x56cef4;}},_0x1b8a43=_0x15bbfe[_0x37d96e(0x173)](parseKeyPath,_0x28d462);let _0x26419d=_0x187c03;for(const _0x1778d8 of _0x1b8a43){if(_0x26419d===null||_0x15bbfe['ajLEw'](_0x26419d,undefined)||typeof _0x26419d!==_0x37d96e(0x17e))return undefined;_0x26419d=_0x26419d[_0x1778d8];}return _0x26419d;}export function setNestedValue(_0x37a432,_0x1335f1,_0x544424){const _0x5af32b=_0x47899b,_0x4a3e30={'cLMXp':function(_0x406284,_0x5d2972){return _0x406284 in _0x5d2972;},'UCrni':'object','kSuvm':function(_0x28c762,_0x2c96f3){return _0x28c762-_0x2c96f3;}},_0x2c06c2=parseKeyPath(_0x1335f1);let _0x1903b4=_0x37a432;for(let _0x2d5c09=0x0;_0x2d5c09<_0x2c06c2[_0x5af32b(0x167)]-0x1;_0x2d5c09++){const _0x151556=_0x2c06c2[_0x2d5c09];(!_0x4a3e30['cLMXp'](_0x151556,_0x1903b4)||typeof _0x1903b4[_0x151556]!==_0x4a3e30['UCrni'])&&(_0x1903b4[_0x151556]={}),_0x1903b4=_0x1903b4[_0x151556];}_0x1903b4[_0x2c06c2[_0x4a3e30['kSuvm'](_0x2c06c2[_0x5af32b(0x167)],0x1)]]=_0x544424;}export function deleteNestedValue(_0x440353,_0x47f488){const _0x2b7304=_0x47899b,_0x4c2def={'rOdEE':function(_0x39f3ab,_0x91bc36){return _0x39f3ab===_0x91bc36;},'FhSxE':function(_0x441f0b,_0x3812a4){return _0x441f0b!==_0x3812a4;},'XjhYN':_0x2b7304(0x17e)},_0x36992c=parseKeyPath(_0x47f488);let _0x2e2464=_0x440353;for(let _0x4bd4ab=0x0;_0x4bd4ab<_0x36992c['length']-0x1;_0x4bd4ab++){if(_0x2e2464===null||_0x4c2def['rOdEE'](_0x2e2464,undefined)||typeof _0x2e2464!=='object')return![];_0x2e2464=_0x2e2464[_0x36992c[_0x4bd4ab]];}if(_0x2e2464===null||_0x2e2464===undefined||_0x4c2def[_0x2b7304(0x17d)](typeof _0x2e2464,_0x4c2def[_0x2b7304(0x124)]))return![];const _0x330153=_0x36992c[_0x36992c[_0x2b7304(0x167)]-0x1];if(_0x330153 in _0x2e2464)return delete _0x2e2464[_0x330153],!![];return![];}function parseKeyPath(_0x54fdf4){const _0x2361a3=_0x47899b,_0x55970d={'hcAuW':function(_0x5b039c,_0x2bf2a7){return _0x5b039c===_0x2bf2a7;},'jYNYa':'header','TRwfj':_0x2361a3(0x116),'rEBGb':function(_0x4e6a53,_0x1f31e5){return _0x4e6a53===_0x1f31e5;},'gLRjM':'setupHeader'},_0x40119e=_0x54fdf4['split']('.');return _0x55970d['hcAuW'](_0x40119e[0x0],_0x55970d[_0x2361a3(0x163)])&&(_0x40119e[0x0]=_0x55970d['TRwfj']),_0x55970d[_0x2361a3(0x168)](_0x40119e[0x0],_0x55970d['gLRjM'])&&(_0x40119e[0x0]='setupHeaders'),_0x40119e;}export function formatSettings(_0x3b2525,_0x2ceb3e=0x0){const _0x4ec17e=_0x47899b,_0x2df995={'bcsbA':function(_0x1d27ac,_0x30780d){return _0x1d27ac===_0x30780d;},'zeQQE':function(_0x207e7b,_0x17f042){return _0x207e7b!==_0x17f042;}},_0x467195=[],_0x4d86c0='\x20\x20'[_0x4ec17e(0x13a)](_0x2ceb3e);for(const [_0x4581a4,_0x1ac294]of Object['entries'](_0x3b2525)){if(_0x2df995[_0x4ec17e(0x126)](_0x1ac294,undefined))continue;if(typeof _0x1ac294==='object'&&_0x2df995[_0x4ec17e(0x120)](_0x1ac294,null)){_0x467195[_0x4ec17e(0x14b)](''+_0x4d86c0+_0x4581a4+':');for(const [_0xfd372b,_0xf26682]of Object['entries'](_0x1ac294)){_0x467195['push'](_0x4d86c0+'\x20\x20'+_0xfd372b+':\x20'+_0xf26682);}}else _0x467195['push'](''+_0x4d86c0+_0x4581a4+':\x20'+_0x1ac294);}return _0x467195['join']('\x0a');}
1
+ const _0x1f68ed=_0x9bd2;(function(_0x5d8121,_0x162887){const _0x5040cc=_0x9bd2,_0x3b420c=_0x5d8121();while(!![]){try{const _0x25e747=parseInt(_0x5040cc(0x10e))/0x1*(-parseInt(_0x5040cc(0x122))/0x2)+parseInt(_0x5040cc(0xc6))/0x3*(-parseInt(_0x5040cc(0xd7))/0x4)+-parseInt(_0x5040cc(0xe6))/0x5+parseInt(_0x5040cc(0xd5))/0x6+parseInt(_0x5040cc(0xd4))/0x7*(-parseInt(_0x5040cc(0xeb))/0x8)+parseInt(_0x5040cc(0xf3))/0x9*(parseInt(_0x5040cc(0x111))/0xa)+parseInt(_0x5040cc(0x10b))/0xb;if(_0x25e747===_0x162887)break;else _0x3b420c['push'](_0x3b420c['shift']());}catch(_0x7d8a69){_0x3b420c['push'](_0x3b420c['shift']());}}}(_0x127e,0x6c9e9));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x18af57,_0xb1ce30){const _0x5009e8=_0x9bd2,_0x3e25b5={'XmkEf':function(_0xaf411,_0x164af1,_0x211bfb,_0x1cd366){return _0xaf411(_0x164af1,_0x211bfb,_0x1cd366);},'NGPXb':function(_0xf5ce0e,_0x32940d,_0x35d0fe){return _0xf5ce0e(_0x32940d,_0x35d0fe);},'vCUyZ':'local','AERDo':function(_0xe4efd,_0x38f3ba,_0x35afcd){return _0xe4efd(_0x38f3ba,_0x35afcd);},'FoJKP':function(_0x2841fa,_0x267d4b){return _0x2841fa(_0x267d4b);},'TocNR':function(_0x1b268c,_0x2c7a02){return _0x1b268c(_0x2c7a02);},'RDLoo':function(_0x3c4498,_0x304270){return _0x3c4498!==_0x304270;},'zBnOQ':function(_0x4ccc9b,_0x20ee1f){return _0x4ccc9b!==_0x20ee1f;}},_0x489a0f=_0x3e25b5['XmkEf'](join,_0xb1ce30,'ci',_0x18af57),_0x33a665=_0x3e25b5[_0x5009e8(0xcc)](join,_0xb1ce30,'local',_0x18af57),_0x5b0b63=_0x3e25b5['NGPXb'](join,_0xb1ce30,_0x18af57),_0x558204=join(_0xb1ce30,_0x3e25b5['vCUyZ']),_0x5a7244=_0x3e25b5['AERDo'](join,_0xb1ce30,'ci');if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x489a0f))return _0x489a0f;if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x33a665))return _0x33a665;if(_0x3e25b5[_0x5009e8(0xe8)](existsSync,_0x5b0b63)&&(_0x3e25b5['RDLoo'](_0x5b0b63,_0x558204)&&_0x3e25b5[_0x5009e8(0xfd)](_0x5b0b63,_0x5a7244)?!![]:hasLegacyProfileFiles(_0x5b0b63)))return _0x5b0b63;return null;}export function getEnvDir(_0x568806){const _0x3a8328=_0x9bd2,_0x3b8668={'hUhBu':function(_0x36b531){return _0x36b531();}},_0x51e631=_0x3b8668[_0x3a8328(0xca)](getRangerDir),_0x28ced9=findEnvInRoot(_0x568806,_0x51e631);if(_0x28ced9)return _0x28ced9;const _0x4fc75d=_0x3b8668[_0x3a8328(0xca)](getRangerHomeDir);if(_0x4fc75d!==_0x51e631){const _0xbcc776=findEnvInRoot(_0x568806,_0x4fc75d);if(_0xbcc776)return _0xbcc776;}return join(_0x51e631,'local',_0x568806);}function _0x127e(){const _0x590b2d=['location','allowInsecureLocalhost','--disable-features=WebBluetooth','UVdcV','chromium','20858893alRnbL','zoQiG','join','3jCUFiK','install','JypxI','10dnCknN','--allow-insecure-localhost','DtmyV','ranger-auth-','vSJXs','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','isArray','fromEntries','PhhLO','jmsIF','parse','vwJVq','clipboard-write','HFhsj','iATMC','local','hvycM','575518EiwKIb','NUETt','fZSKC','includes','IKZJC','launchOptions','FoJKP','DSVZe','headless','qbuHv','setupHeaders','entries','header','xYBxc','235551WAHDRo','boolean','HzBPB','keys','hUhBu','rangerDir','XmkEf','BAXTO','UkBgv','browser','vision','ZEvZu','stringify','length','161wlCjiw','3711912fyXuGl','zhbiQ','16DZqKPS','qZAkJ','tabs','storageStatePath','now','extraHTTPHeaders','Gjikh','getuid','contextOptions','--disable-web-security','args','.json','settings.json','push','legacy','2054335ZLLzBX','repeat','TocNR','Qwsqm','storageState','273704yopeUG','replace','playwright-cli','core','cOpkB','lUCIZ','--no-sandbox','sessions','2745909hFxxjT','QHoej','dHhgP','\x20is\x20not\x20set','all','userAgent','auth.json','TLCzD','map','filter','zBnOQ','object','tempAuthPath','aIicT','MMmWb','PReWV','path','string','juEsP'];_0x127e=function(){return _0x590b2d;};return _0x127e();}export function findExistingEnv(_0x4402ae,_0x58be99){const _0x253d94=_0x9bd2,_0xd2531c={'aIicT':function(_0x127ae6){return _0x127ae6();},'WXQYu':_0x253d94(0x120),'uSEyx':function(_0x1d638a,_0x5b9ba0,_0x29f197){return _0x1d638a(_0x5b9ba0,_0x29f197);},'vSJXs':function(_0x300ac2,_0x518184,_0x5066c8,_0x42ee34){return _0x300ac2(_0x518184,_0x5066c8,_0x42ee34);},'Qwsqm':function(_0x4f057a,_0x55c341){return _0x4f057a(_0x55c341);},'fZSKC':function(_0x316db5,_0x119201){return _0x316db5===_0x119201;},'DSVZe':'legacy'},_0xa23e87=_0x58be99?.[_0x253d94(0xcb)],_0xb31c63=_0xa23e87?[_0xa23e87]:[getRangerDir(),_0xd2531c[_0x253d94(0x100)](getRangerHomeDir)][_0x253d94(0xfc)]((_0x57400f,_0x504062,_0x1dabf5)=>_0x1dabf5['indexOf'](_0x57400f)===_0x504062),_0x9e1969=_0x58be99?.['locations']??['ci',_0xd2531c['WXQYu'],'legacy'];for(const _0x204bfb of _0xb31c63){const _0x50e6e8=join(_0x204bfb,'local'),_0x2ed21b=_0xd2531c['uSEyx'](join,_0x204bfb,'ci'),_0x30a29e=[{'location':'ci','path':_0xd2531c[_0x253d94(0x115)](join,_0x204bfb,'ci',_0x4402ae)},{'location':_0x253d94(0x120),'path':join(_0x204bfb,_0xd2531c['WXQYu'],_0x4402ae)},{'location':_0x253d94(0xe5),'path':join(_0x204bfb,_0x4402ae)}];for(const _0x1dfc7a of _0x30a29e){if(_0x9e1969['includes'](_0x1dfc7a[_0x253d94(0x106)])&&_0xd2531c[_0x253d94(0xe9)](existsSync,_0x1dfc7a[_0x253d94(0x103)])){if(_0xd2531c['fZSKC'](_0x1dfc7a['location'],_0xd2531c[_0x253d94(0xbf)])&&(_0x1dfc7a[_0x253d94(0x103)]===_0x50e6e8||_0xd2531c[_0x253d94(0x124)](_0x1dfc7a[_0x253d94(0x103)],_0x2ed21b))&&!hasLegacyProfileFiles(_0x1dfc7a['path']))continue;return{'path':_0x1dfc7a['path'],'location':_0x1dfc7a['location']};}}}return null;}function hasLegacyProfileFiles(_0x114b04){const _0x6af39a=_0x9bd2,_0x2a5a07={'IKZJC':function(_0x2cfcfb,_0x2dba09,_0x28163e){return _0x2cfcfb(_0x2dba09,_0x28163e);},'fOuVR':'auth.json'};return existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x6af39a(0xe3)))||existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x2a5a07['fOuVR']))||existsSync(_0x2a5a07['IKZJC'](join,_0x114b04,'auth.json.enc'));}export function isEnvCi(_0x18e9d3){const _0x4dbbb5=_0x9bd2,_0x240217={'cQcGQ':function(_0x527769,_0x296680){return _0x527769(_0x296680);},'sVggk':function(_0x29b212,_0x18b615,_0x225e65,_0x307d95){return _0x29b212(_0x18b615,_0x225e65,_0x307d95);},'PhhLO':function(_0x495661){return _0x495661();}};return _0x240217['cQcGQ'](existsSync,_0x240217['sVggk'](join,_0x240217[_0x4dbbb5(0x119)](getRangerDir),'ci',_0x18e9d3));}export async function cleanupTempFiles(_0x44a6ee){const _0x3dae77=_0x9bd2,_0x326f85={'DlHaB':function(_0x3b4b82,_0x243b9b){return _0x3b4b82!==_0x243b9b;},'gtcaY':'ENOENT'},_0x69574e=[_0x44a6ee[_0x3dae77(0xff)],_0x44a6ee['configPath']]['filter'](Boolean);await Promise[_0x3dae77(0xf7)](_0x69574e['map'](_0x3dd628=>unlink(_0x3dd628)['catch'](_0x25bf30=>{_0x326f85['DlHaB'](_0x25bf30['code'],_0x326f85['gtcaY'])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3dd628+':',_0x25bf30['message']);})));}export function getSettingsPath(_0x383279){const _0x551720=_0x9bd2,_0x74b8e8={'damDm':function(_0x1613e6,_0x20b461,_0x577826){return _0x1613e6(_0x20b461,_0x577826);},'eLXqX':function(_0x2585bf,_0x54bdca){return _0x2585bf(_0x54bdca);},'igKYe':_0x551720(0xe3)};return _0x74b8e8['damDm'](join,_0x74b8e8['eLXqX'](getEnvDir,_0x383279),_0x74b8e8['igKYe']);}export async function loadSettings(_0x12ab60){const _0x223e9a=_0x9bd2,_0x4b8355={'jmsIF':function(_0x42ae,_0x14b83b){return _0x42ae(_0x14b83b);},'DtmyV':function(_0x1cdb61,_0x484b73,_0x575f92){return _0x1cdb61(_0x484b73,_0x575f92);}},_0x1fccba=getSettingsPath(_0x12ab60);if(!_0x4b8355[_0x223e9a(0x11a)](existsSync,_0x1fccba))return{};try{const _0x178295=await _0x4b8355[_0x223e9a(0x113)](readFile,_0x1fccba,'utf-8');return JSON[_0x223e9a(0x11b)](_0x178295);}catch{return{};}}export async function saveSettings(_0x40ea40,_0x381ef8){const _0x56f9a9=_0x9bd2,_0x42e6cb={'hvycM':function(_0x3eb2f4,_0x1862a7){return _0x3eb2f4(_0x1862a7);},'dHhgP':function(_0x433412,_0x2a1f26){return _0x433412(_0x2a1f26);},'iEHnG':function(_0x45739a,_0x5de50e,_0x38e458){return _0x45739a(_0x5de50e,_0x38e458);}},_0x57ee94=_0x42e6cb[_0x56f9a9(0x121)](getSettingsPath,_0x40ea40),_0x20c87a=_0x42e6cb['hvycM'](dirname,_0x57ee94);!_0x42e6cb[_0x56f9a9(0xf5)](existsSync,_0x20c87a)&&await _0x42e6cb['iEHnG'](mkdir,_0x20c87a,{'recursive':!![]}),await writeFile(_0x57ee94,JSON[_0x56f9a9(0xd2)](_0x381ef8,null,0x2));}export function resolveEnvVars(_0x4e9958){const _0x43052e=_0x9bd2,_0x2b93e1={'vKSgj':function(_0x10c4eb,_0x32a5c6){return _0x10c4eb===_0x32a5c6;},'hMfMX':_0x43052e(0x104),'zhbiQ':'object'};if(typeof _0x4e9958===_0x2b93e1['hMfMX'])return _0x4e9958[_0x43052e(0xec)](/\$\{(\w+)\}/g,(_0x126ecd,_0x2c6165)=>{const _0x349632=_0x43052e,_0x195c85=process['env'][_0x2c6165];if(_0x2b93e1['vKSgj'](_0x195c85,undefined))throw new Error('Environment\x20variable\x20'+_0x2c6165+_0x349632(0xf6));return _0x195c85;});if(Array[_0x43052e(0x117)](_0x4e9958))return _0x4e9958['map'](resolveEnvVars);if(_0x4e9958&&typeof _0x4e9958===_0x2b93e1[_0x43052e(0xd6)])return Object[_0x43052e(0x118)](Object[_0x43052e(0xc3)](_0x4e9958)[_0x43052e(0xfb)](([_0x1b6712,_0x12bbfd])=>[_0x1b6712,resolveEnvVars(_0x12bbfd)]));return _0x4e9958;}const isRecord=_0x523c32=>typeof _0x523c32==='object'&&_0x523c32!==null&&!Array[_0x1f68ed(0x117)](_0x523c32),asRecord=_0x31d35d=>isRecord(_0x31d35d)?_0x31d35d:undefined,mergeHeaders=(_0x308afd,_0x42b0b8)=>{const _0x403aaa=_0x1f68ed,_0x2045ad={'Gjikh':function(_0x484ba4,_0x53e6b5){return _0x484ba4??_0x53e6b5;}},_0x168c7b={..._0x2045ad['Gjikh'](_0x308afd,{}),..._0x2045ad[_0x403aaa(0xdd)](_0x42b0b8,{})};return Object[_0x403aaa(0xc9)](_0x168c7b)['length']?_0x168c7b:undefined;},SAFE_MODE_ARGS=[_0x1f68ed(0x108)],ALLOW_LOCALHOST_ARGS=[_0x1f68ed(0xe0),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x1f68ed(0x112)];export function buildBrowserOptionsFromSettings(_0x3d28b,_0x9bda3d={}){const _0x2353b2=_0x1f68ed,_0x18f61a={'xYBxc':function(_0x452fe3,_0x2ead80){return _0x452fe3(_0x2ead80);},'FlOYm':function(_0x3946c0,_0x1792e4){return _0x3946c0===_0x1792e4;},'UkBgv':_0x2353b2(0xc7),'lGOLN':'string','MMmWb':function(_0x59b0df,_0x7ff0db,_0x539835){return _0x59b0df(_0x7ff0db,_0x539835);}},_0x1941e3=asRecord(_0x3d28b[_0x2353b2(0xcf)]),_0x3b4b08={..._0x18f61a[_0x2353b2(0xc5)](asRecord,_0x1941e3?.[_0x2353b2(0x127)])??{}};_0x18f61a['FlOYm'](typeof _0x9bda3d['headless'],_0x18f61a[_0x2353b2(0xce)])&&(_0x3b4b08['headless']=_0x9bda3d['headless']);if(_0x3d28b['safeMode']){const _0xb8f2e9=_0x3b4b08['args']??[],_0x4dfaa0=SAFE_MODE_ARGS[_0x2353b2(0xfc)](_0x2f60da=>!_0xb8f2e9[_0x2353b2(0x125)](_0x2f60da));_0x3b4b08[_0x2353b2(0xe1)]=[..._0xb8f2e9,..._0x4dfaa0];}if(_0x3d28b[_0x2353b2(0x107)]){const _0x5cf5ee=_0x3b4b08['args']??[],_0x2250ba=ALLOW_LOCALHOST_ARGS[_0x2353b2(0xfc)](_0x2cfb7d=>!_0x5cf5ee[_0x2353b2(0x125)](_0x2cfb7d));_0x3b4b08['args']=[..._0x5cf5ee,..._0x2250ba];}const _0x3f9ac3={...asRecord(_0x1941e3?.['contextOptions'])??{}};_0x3f9ac3['ignoreHTTPSErrors']=!![];typeof _0x3d28b[_0x2353b2(0xf8)]===_0x18f61a['lGOLN']&&(_0x3f9ac3['userAgent']=_0x3d28b[_0x2353b2(0xf8)]);const _0x13e94d=_0x18f61a[_0x2353b2(0x101)](mergeHeaders,asRecord(_0x3f9ac3['extraHTTPHeaders']),_0x18f61a['xYBxc'](asRecord,_0x3d28b['headers']));return _0x13e94d?_0x3f9ac3[_0x2353b2(0xdc)]=_0x13e94d:delete _0x3f9ac3[_0x2353b2(0xdc)],_0x9bda3d['storageStatePath']&&(_0x3f9ac3[_0x2353b2(0xea)]=_0x9bda3d[_0x2353b2(0xda)]),{'launchOptions':_0x3b4b08,'contextOptions':_0x3f9ac3};}async function resolveLocalAuthPath(_0x40639f){const _0x164fe2=_0x1f68ed,_0x1efc02={'QHVoi':function(_0x2d6772,_0x12b00c,_0x4bfac3){return _0x2d6772(_0x12b00c,_0x4bfac3);},'zmqjF':'auth.json.enc','JypxI':_0x164fe2(0xf9),'fwEvD':function(_0x2be459,_0x21b21a){return _0x2be459(_0x21b21a);},'ljozB':function(_0x385839,_0x2ac9c9){return _0x385839(_0x2ac9c9);},'kokeC':function(_0x2dd1e9,_0x3cf7e1){return _0x2dd1e9(_0x3cf7e1);},'juEsP':function(_0x3b55b7,_0x6d603c){return _0x3b55b7(_0x6d603c);}},_0x465803=_0x1efc02['QHVoi'](join,_0x40639f,_0x1efc02['zmqjF']),_0x2e530c=join(_0x40639f,_0x1efc02[_0x164fe2(0x110)]);if(_0x1efc02['fwEvD'](existsSync,_0x465803))try{const _0xb81025=await getToken();if(!_0xb81025)throw new Error(_0x164fe2(0x116));const _0x140de5=await _0x1efc02['ljozB'](readFile,_0x465803),_0x2166f6=decrypt(_0x140de5,_0xb81025),_0xbe9929=_0x1efc02['QHVoi'](join,tmpdir(),_0x164fe2(0x114)+Date[_0x164fe2(0xdb)]()+_0x164fe2(0xe2));return await writeFile(_0xbe9929,_0x2166f6),{'storageStatePath':_0xbe9929,'tempAuthPath':_0xbe9929};}catch(_0x502334){const _0x132399=_0x502334 instanceof Error?_0x502334['message']:_0x1efc02['kokeC'](String,_0x502334);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x132399);}if(_0x1efc02[_0x164fe2(0x105)](existsSync,_0x2e530c))return{'storageStatePath':_0x2e530c};return{};}export async function buildPlaywrightConfig(_0x3f230a,_0x3ebc85,_0x2e914f,_0x1dabb3,_0x1d160d){const _0x29628e=_0x1f68ed,_0x251c59={'NUETt':function(_0x289e6e,_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70){return _0x289e6e(_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70);},'PReWV':function(_0x4acf6e,_0x41927a){return _0x4acf6e(_0x41927a);}};if(_0x1d160d)return _0x251c59[_0x29628e(0x123)](buildPlaywrightConfigCore,_0x3f230a,_0x1d160d,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');const {storageStatePath:_0x239840,tempAuthPath:_0x46c480}=await _0x251c59[_0x29628e(0x102)](resolveLocalAuthPath,getEnvDir(_0x3ebc85)),_0x634a8a=await buildPlaywrightConfigCore(_0x3f230a,_0x239840,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');return{..._0x634a8a,'tempAuthPath':_0x46c480};}export async function buildPlaywrightConfigCore(_0xbf97d8,_0x5e107b,_0x477222,_0x375a98,_0x3066f9,_0x35d107='stagehand'){const _0x17edff=_0x1f68ed,_0x460dea={'lUCIZ':function(_0x150ddc,_0x2a5ffd){return _0x150ddc===_0x2a5ffd;},'NJaGL':'--disable-setuid-sandbox','UVdcV':_0x17edff(0x11d),'HFhsj':function(_0x4a4b73){return _0x4a4b73();},'BVJpY':function(_0x2e247c){return _0x2e247c();},'iATMC':_0x17edff(0xed),'zoQiG':'file','IyRIG':_0x17edff(0xd9),'vwJVq':_0x17edff(0xd0),'XFbOA':function(_0x37a992,_0x151365,_0x692be9){return _0x37a992(_0x151365,_0x692be9);},'mKHvM':'ranger-config','BAXTO':function(_0x53cd3f,_0x37effe,_0x4d1d23){return _0x53cd3f(_0x37effe,_0x4d1d23);},'qbuHv':'-cli'},_0xa06b34=_0x375a98||_0x460dea[_0x17edff(0x11e)](randomUUID),_0x5d68c5=join(_0x460dea['BVJpY'](getRangerDir),_0x17edff(0xf2),_0xa06b34),_0x4e2534=Boolean(_0xbf97d8['cdpEndpoint']),_0x4e82ea=_0x4e2534?{'browserName':_0x17edff(0x10a),'cdpEndpoint':_0xbf97d8['cdpEndpoint']}:((()=>{const _0x5666be=_0x17edff,{launchOptions:_0x50188c,contextOptions:_0x346569}=buildBrowserOptionsFromSettings(_0xbf97d8,{'headless':_0x3066f9?![]:_0xbf97d8[_0x5666be(0xc0)]??!![],'storageStatePath':_0x5e107b});if(_0x460dea[_0x5666be(0xf0)](process[_0x5666be(0xde)]?.(),0x0)){const _0x4a3f71=[_0x5666be(0xf1),_0x460dea['NJaGL']],_0x446bb8=_0x50188c[_0x5666be(0xe1)]??[],_0x23963f=_0x4a3f71[_0x5666be(0xfc)](_0x5d1e85=>!_0x446bb8[_0x5666be(0x125)](_0x5d1e85));_0x50188c[_0x5666be(0xe1)]=[..._0x446bb8,..._0x23963f];}return{'isolated':!![],'browserName':_0x5666be(0x10a),'launchOptions':_0x50188c,'contextOptions':{..._0x346569,'permissions':['clipboard-read',_0x460dea[_0x5666be(0x109)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1ab22a=_0x35d107===_0x460dea['iATMC']?{'browser':_0x4e82ea,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5,'outputMode':_0x460dea[_0x17edff(0x10c)],'codegen':'none'}:{'name':_0x477222,'browser':_0x4e82ea,'capabilities':[_0x17edff(0xee),_0x460dea['IyRIG'],_0x17edff(0x10f),'pdf',_0x460dea[_0x17edff(0x11c)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5};if(!_0x4e2534){const _0x335911=_0x1ab22a[_0x17edff(0xcf)],_0x54a52a=_0x335911[_0x17edff(0xdf)];if(_0x54a52a[_0x17edff(0xf8)]===undefined)delete _0x54a52a[_0x17edff(0xf8)];if(_0x54a52a[_0x17edff(0xea)]===undefined)delete _0x54a52a[_0x17edff(0xea)];}const _0x4a53a6=_0x460dea['XFbOA'](join,tmpdir(),_0x460dea['mKHvM']);!existsSync(_0x4a53a6)&&await _0x460dea[_0x17edff(0xcd)](mkdir,_0x4a53a6,{'recursive':!![]});const _0xa71db7=_0x35d107===_0x460dea[_0x17edff(0x11f)]?_0x460dea[_0x17edff(0xc1)]:'',_0xab2eaf=join(_0x4a53a6,_0x477222+'-'+Date['now']()+_0xa71db7+'.json');return await writeFile(_0xab2eaf,JSON['stringify'](_0x1ab22a,null,0x2)),{'configPath':_0xab2eaf};}export async function buildPlaywrightCliConfig(_0x2779ed,_0x7aca59,_0xa3b797,_0x18c039,_0x20b317){const _0x9e6bc3=_0x1f68ed,_0x2109c1={'QHoej':'playwright-cli','TLCzD':function(_0x20da6f,_0x5dbff5){return _0x20da6f(_0x5dbff5);}};if(_0x20b317)return buildPlaywrightConfigCore(_0x2779ed,_0x20b317,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1['QHoej']);const {storageStatePath:_0x333e06,tempAuthPath:_0x2384c0}=await resolveLocalAuthPath(_0x2109c1[_0x9e6bc3(0xfa)](getEnvDir,_0x7aca59)),_0xfb4291=await buildPlaywrightConfigCore(_0x2779ed,_0x333e06,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1[_0x9e6bc3(0xf4)]);return{..._0xfb4291,'tempAuthPath':_0x2384c0};}export function getNestedValue(_0x3ee6ec,_0x49bddf){const _0x5e5e67=_0x1f68ed,_0x29588d={'HzBPB':_0x5e5e67(0xfe)},_0x5528f7=parseKeyPath(_0x49bddf);let _0x1b3acd=_0x3ee6ec;for(const _0x483f75 of _0x5528f7){if(_0x1b3acd===null||_0x1b3acd===undefined||typeof _0x1b3acd!==_0x29588d[_0x5e5e67(0xc8)])return undefined;_0x1b3acd=_0x1b3acd[_0x483f75];}return _0x1b3acd;}export function setNestedValue(_0x1d2697,_0x49c557,_0x1e3794){const _0x4da44b=_0x1f68ed,_0x5213d1={'cOpkB':function(_0x473f40,_0x1d68b8){return _0x473f40<_0x1d68b8;},'BCciH':function(_0x211e7d,_0x5d708b){return _0x211e7d-_0x5d708b;},'ZEvZu':function(_0x56ce1c,_0x316dab){return _0x56ce1c-_0x316dab;}},_0x1eaf4a=parseKeyPath(_0x49c557);let _0x4dac57=_0x1d2697;for(let _0x49fbcc=0x0;_0x5213d1[_0x4da44b(0xef)](_0x49fbcc,_0x5213d1['BCciH'](_0x1eaf4a[_0x4da44b(0xd3)],0x1));_0x49fbcc++){const _0x2893df=_0x1eaf4a[_0x49fbcc];(!(_0x2893df in _0x4dac57)||typeof _0x4dac57[_0x2893df]!==_0x4da44b(0xfe))&&(_0x4dac57[_0x2893df]={}),_0x4dac57=_0x4dac57[_0x2893df];}_0x4dac57[_0x1eaf4a[_0x5213d1[_0x4da44b(0xd1)](_0x1eaf4a['length'],0x1)]]=_0x1e3794;}function _0x9bd2(_0x671a29,_0x2cb4d2){_0x671a29=_0x671a29-0xbf;const _0x127ee4=_0x127e();let _0x9bd21d=_0x127ee4[_0x671a29];return _0x9bd21d;}export function deleteNestedValue(_0x48bc22,_0x5592ce){const _0x33dfe0=_0x1f68ed,_0x2a9e92={'hSCkJ':function(_0x5548dd,_0x289e15){return _0x5548dd-_0x289e15;},'qZAkJ':function(_0x3292a4,_0x16053a){return _0x3292a4 in _0x16053a;}},_0x35a41f=parseKeyPath(_0x5592ce);let _0x2902b6=_0x48bc22;for(let _0x1da8c3=0x0;_0x1da8c3<_0x2a9e92['hSCkJ'](_0x35a41f['length'],0x1);_0x1da8c3++){if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!==_0x33dfe0(0xfe))return![];_0x2902b6=_0x2902b6[_0x35a41f[_0x1da8c3]];}if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!=='object')return![];const _0x37e1c9=_0x35a41f[_0x35a41f['length']-0x1];if(_0x2a9e92[_0x33dfe0(0xd8)](_0x37e1c9,_0x2902b6))return delete _0x2902b6[_0x37e1c9],!![];return![];}function parseKeyPath(_0x56c7e0){const _0x5b079c=_0x1f68ed,_0x531e90={'dyjzD':function(_0x46e63a,_0x4f5e0b){return _0x46e63a===_0x4f5e0b;},'Dnede':_0x5b079c(0xc4),'HEpgy':'headers'},_0x1d5fd2=_0x56c7e0['split']('.');return _0x531e90['dyjzD'](_0x1d5fd2[0x0],_0x531e90['Dnede'])&&(_0x1d5fd2[0x0]=_0x531e90['HEpgy']),_0x1d5fd2[0x0]==='setupHeader'&&(_0x1d5fd2[0x0]=_0x5b079c(0xc2)),_0x1d5fd2;}export function formatSettings(_0x4e14a0,_0x3ec3d7=0x0){const _0x538a3f=_0x1f68ed,_0x30569f={'fkmjf':function(_0x639610,_0x4eccc3){return _0x639610!==_0x4eccc3;}},_0x524004=[],_0x529c78='\x20\x20'[_0x538a3f(0xe7)](_0x3ec3d7);for(const [_0x387496,_0x14c9d1]of Object['entries'](_0x4e14a0)){if(_0x14c9d1===undefined)continue;if(typeof _0x14c9d1===_0x538a3f(0xfe)&&_0x30569f['fkmjf'](_0x14c9d1,null)){_0x524004['push'](''+_0x529c78+_0x387496+':');for(const [_0x42930c,_0x29d857]of Object['entries'](_0x14c9d1)){_0x524004['push'](_0x529c78+'\x20\x20'+_0x42930c+':\x20'+_0x29d857);}}else _0x524004[_0x538a3f(0xe4)](''+_0x529c78+_0x387496+':\x20'+_0x14c9d1);}return _0x524004[_0x538a3f(0x10d)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x9624f9,_0x478a6f){const _0x2e6bb8=_0x2e94,_0x24664b=_0x9624f9();while(!![]){try{const _0x5b3cf2=parseInt(_0x2e6bb8(0x180))/0x1*(parseInt(_0x2e6bb8(0x189))/0x2)+-parseInt(_0x2e6bb8(0x18b))/0x3*(-parseInt(_0x2e6bb8(0x181))/0x4)+parseInt(_0x2e6bb8(0x185))/0x5+-parseInt(_0x2e6bb8(0x182))/0x6+parseInt(_0x2e6bb8(0x183))/0x7+-parseInt(_0x2e6bb8(0x184))/0x8+parseInt(_0x2e6bb8(0x188))/0x9;if(_0x5b3cf2===_0x478a6f)break;else _0x24664b['push'](_0x24664b['shift']());}catch(_0x263c41){_0x24664b['push'](_0x24664b['shift']());}}}(_0x1b57,0xab578));function _0x2e94(_0x5bdf97,_0x19b908){_0x5bdf97=_0x5bdf97-0x180;const _0x1b572b=_0x1b57();let _0x2e94ec=_0x1b572b[_0x5bdf97];return _0x2e94ec;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x1b57(){const _0x5603e1=['KwsmW','2173887XHXouT','2362WbxfJK','utf-8','6ITyXLd','211oyewPV','579404kSAHnG','1912854LocuXz','948234PLIZsC','5034992cRyebO','3670505sbkxVJ','skills'];_0x1b57=function(){return _0x5603e1;};return _0x1b57();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3428fa){const _0x2b515e=_0x2e94,_0x526708={'fxIoo':function(_0x11f852,_0x32d1e5,_0x5e39fb){return _0x11f852(_0x32d1e5,_0x5e39fb);}},_0x2af36f=join(__dirname,'..','..',_0x2b515e(0x186)),_0x1cca28=_0x526708['fxIoo'](join,_0x2af36f,_0x3428fa);try{return readFileSync(_0x1cca28,_0x2b515e(0x18a));}catch{return'';}}export function getRangerSkillContent(){const _0x4176c6=_0x2e94,_0x802716={'KwsmW':function(_0x5362ac,_0x3541d6){return _0x5362ac(_0x3541d6);}};return _0x802716[_0x4176c6(0x187)](readSkillContent,'ranger/SKILL.md');}
1
+ (function(_0x1adfef,_0x123b36){const _0xbe357=_0x3aaa,_0x5e0149=_0x1adfef();while(!![]){try{const _0x5235a6=-parseInt(_0xbe357(0x18b))/0x1+parseInt(_0xbe357(0x18e))/0x2+-parseInt(_0xbe357(0x187))/0x3*(-parseInt(_0xbe357(0x193))/0x4)+parseInt(_0xbe357(0x191))/0x5+parseInt(_0xbe357(0x18f))/0x6+-parseInt(_0xbe357(0x188))/0x7+-parseInt(_0xbe357(0x186))/0x8*(parseInt(_0xbe357(0x189))/0x9);if(_0x5235a6===_0x123b36)break;else _0x5e0149['push'](_0x5e0149['shift']());}catch(_0x2bcfbc){_0x5e0149['push'](_0x5e0149['shift']());}}}(_0x2eb9,0xcb6db));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x2eb9(){const _0xf8df22=['dqBTA','ranger/SKILL.md','1357102ZKItzd','2731062oQlHNk','utf-8','5942680TXkdJB','gYkpk','70880ALKPSY','696yHFPoy','153shbbfY','10148789eTLZpU','56862ljaBGt','HxSoG','393248albJVO'];_0x2eb9=function(){return _0xf8df22;};return _0x2eb9();}export function readSkillContent(_0x5e669a){const _0x3c5052=_0x3aaa,_0x2b8969={'drMCH':'skills','gYkpk':function(_0x24a3bd,_0x53df37,_0x490164){return _0x24a3bd(_0x53df37,_0x490164);},'oQZOP':function(_0x22eefe,_0x9de34,_0x360f40){return _0x22eefe(_0x9de34,_0x360f40);},'TMNth':_0x3c5052(0x190)},_0x221e8e=join(__dirname,'..','..',_0x2b8969['drMCH']),_0x2dfd50=_0x2b8969[_0x3c5052(0x192)](join,_0x221e8e,_0x5e669a);try{return _0x2b8969['oQZOP'](readFileSync,_0x2dfd50,_0x2b8969['TMNth']);}catch{return'';}}function _0x3aaa(_0x6a8772,_0x1ccdd5){_0x6a8772=_0x6a8772-0x186;const _0x2eb910=_0x2eb9();let _0x3aaac5=_0x2eb910[_0x6a8772];return _0x3aaac5;}export function getRangerSkillContent(){const _0x393913=_0x3aaa,_0x3dc1b5={'dqBTA':function(_0x4f0b51,_0x450b85){return _0x4f0b51(_0x450b85);},'HxSoG':_0x393913(0x18d)};return _0x3dc1b5[_0x393913(0x18c)](readSkillContent,_0x3dc1b5[_0x393913(0x18a)]);}
@@ -1 +1 @@
1
- const _0x409077=_0x5550;(function(_0x482902,_0x3bb117){const _0x3107fb=_0x5550,_0xc25dad=_0x482902();while(!![]){try{const _0x4e92a2=parseInt(_0x3107fb(0x1c1))/0x1+parseInt(_0x3107fb(0x1bf))/0x2*(parseInt(_0x3107fb(0x1b2))/0x3)+-parseInt(_0x3107fb(0x1b0))/0x4+-parseInt(_0x3107fb(0x1c0))/0x5+-parseInt(_0x3107fb(0x1ab))/0x6*(parseInt(_0x3107fb(0x1ce))/0x7)+-parseInt(_0x3107fb(0x1c6))/0x8+parseInt(_0x3107fb(0x1cc))/0x9;if(_0x4e92a2===_0x3bb117)break;else _0xc25dad['push'](_0xc25dad['shift']());}catch(_0x57d9f1){_0xc25dad['push'](_0xc25dad['shift']());}}}(_0x4cc3,0xd934f));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];function _0x4cc3(){const _0x4d633d=['MWPUA','CqWbn','11372625CzOnfP','warn','7fsxxdR','utf-8','match','256314GZvXxz','VNYjV','claude','trim','VtDUA','686352ZMbSeD','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','9FaKQae','\x20\x20Files:\x20','JxUfg','endsWith','Invalid\x20skill\x20frontmatter','\x20\x20Removed\x20deprecated\x20skill:\x20','isDirectory','NboVg','VLeGM','PQGQb','bug-bash','push','skills','416114LlgNOA','6359615KpLqFs','889713MPnwFX','.md','OHvpe','IpqCD','log','3212800SexSvX','feature-tracker','Pzfvo','hgODd'];_0x4cc3=function(){return _0x4d633d;};return _0x4cc3();}function _0x5550(_0x2745d0,_0xbcf230){_0x2745d0=_0x2745d0-0x1aa;const _0x4cc328=_0x4cc3();let _0x555045=_0x4cc328[_0x2745d0];return _0x555045;}export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x409077(0x1bc),_0x409077(0x1c7)];export async function installSkill(_0x12f640,_0x1c31bf={}){const _0x2bcf2f=_0x409077,_0x281ce9={'PQGQb':'project','aaWRd':function(_0x508325){return _0x508325();},'VLeGM':function(_0x169c86,_0x1c794d,_0x522a20){return _0x169c86(_0x1c794d,_0x522a20);},'JxUfg':function(_0x3e0556,_0x44775a){return _0x3e0556(_0x44775a);},'IpqCD':'SKILL.md','jCpFf':function(_0x2fe258,_0x1fb068){return _0x2fe258&&_0x1fb068;},'gtcrT':function(_0x1c7dde,_0x3f931d){return _0x1c7dde===_0x3f931d;},'NboVg':function(_0x2c965d,_0x1f0fab){return _0x2c965d(_0x1f0fab);},'VNYjV':function(_0x139537,_0x4f0d17,_0x1a608c){return _0x139537(_0x4f0d17,_0x1a608c);},'VtDUA':function(_0x263dc3,_0xf73c4f,_0x57f876){return _0x263dc3(_0xf73c4f,_0x57f876);},'UYwmv':'utf-8','Pzfvo':function(_0x229918,_0x425a08){return _0x229918>_0x425a08;},'hgODd':function(_0x412984,_0x16aa81,_0x29757b,_0x13d54d){return _0x412984(_0x16aa81,_0x29757b,_0x13d54d);}},{level:level=_0x281ce9[_0x2bcf2f(0x1bb)],cliVersion:_0x27c567,platform:platform=_0x2bcf2f(0x1ad)}=_0x1c31bf,_0x532a7a=_0x281ce9['aaWRd'](getSourceSkillsDir),_0x171ae4=_0x281ce9['VLeGM'](join,_0x532a7a,_0x12f640),_0x2faf33=join(_0x532a7a,_0x12f640+_0x2bcf2f(0x1c2)),_0x257476=_0x281ce9[_0x2bcf2f(0x1b4)](existsSync,_0x171ae4)&&statSync(_0x171ae4)[_0x2bcf2f(0x1b8)]()&&existsSync(join(_0x171ae4,_0x281ce9['IpqCD'])),_0x1611e7=existsSync(_0x2faf33);if(_0x281ce9['jCpFf'](!_0x257476,!_0x1611e7))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x12f640),![];const _0x552300=_0x281ce9['gtcrT'](platform,'opencode')?getOpencodeSkillsDir(level):_0x281ce9[_0x2bcf2f(0x1b4)](getSkillsDir,level),_0x3cb500=_0x281ce9[_0x2bcf2f(0x1ba)](join,_0x552300,_0x12f640);await mkdir(_0x3cb500,{'recursive':!![]});let _0x5c5cca,_0x239772=[];if(_0x257476){const _0x527e46=await _0x281ce9[_0x2bcf2f(0x1b9)](readdir,_0x171ae4),_0x53ea4d=_0x527e46['filter'](_0x438af3=>_0x438af3[_0x2bcf2f(0x1b5)](_0x2bcf2f(0x1c2)));for(const _0x41abf2 of _0x53ea4d){const _0x2a8ce1=join(_0x171ae4,_0x41abf2),_0x28545d=join(_0x3cb500,_0x41abf2);await _0x281ce9[_0x2bcf2f(0x1ac)](copyFile,_0x2a8ce1,_0x28545d),_0x239772[_0x2bcf2f(0x1bd)](_0x41abf2);}_0x5c5cca=await _0x281ce9[_0x2bcf2f(0x1af)](readFile,join(_0x171ae4,_0x281ce9['IpqCD']),_0x2bcf2f(0x1cf));}else{_0x5c5cca=await readFile(_0x2faf33,'utf-8');const _0x3447cb=join(_0x3cb500,_0x281ce9['IpqCD']);await writeFile(_0x3447cb,_0x5c5cca,_0x281ce9['UYwmv']),_0x239772[_0x2bcf2f(0x1bd)](_0x281ce9[_0x2bcf2f(0x1c4)]);}const {name:_0x4b90fa}=_0x281ce9['NboVg'](parseFrontmatter,_0x5c5cca);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x4b90fa),console['log']('\x20\x20Location:\x20'+_0x3cb500),_0x281ce9[_0x2bcf2f(0x1c8)](_0x239772['length'],0x1)&&console[_0x2bcf2f(0x1c5)](_0x2bcf2f(0x1b3)+_0x239772['join'](',\x20')),_0x281ce9[_0x2bcf2f(0x1c9)](logLocalAgentInstallation,_0x12f640,{'skillDisplayName':_0x4b90fa,'installLevel':level},_0x27c567)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1cded7=_0x409077,_0x2b3c33={'CqWbn':_0x1cded7(0x1be),'HvyqK':function(_0x3588e7,_0x1c4af3,_0x3f062e,_0x4de614,_0x18e0d4,_0x1def3b){return _0x3588e7(_0x1c4af3,_0x3f062e,_0x4de614,_0x18e0d4,_0x1def3b);},'MWPUA':function(_0x8d4350,_0x1c58b8){return _0x8d4350(_0x1c58b8);}},_0xcd52e1=[join(__dirname,'..','..',_0x2b3c33[_0x1cded7(0x1cb)]),_0x2b3c33['HvyqK'](join,__dirname,'..','..','..','skills')];for(const _0x23b3e9 of _0xcd52e1){if(_0x2b3c33[_0x1cded7(0x1ca)](existsSync,_0x23b3e9))return _0x23b3e9;}return _0xcd52e1[0x0];}function parseFrontmatter(_0x239fe6){const _0x3111b1=_0x409077,_0x49b195={'ouqPJ':_0x3111b1(0x1b6)},_0x3c23aa=_0x239fe6[_0x3111b1(0x1aa)](/^---\n([\s\S]+?)\n---/);if(!_0x3c23aa)throw new Error(_0x49b195['ouqPJ']);const _0x14a7ac=_0x3c23aa[0x1],_0x48c3c6=_0x14a7ac['match'](/name:\s*(.+)/),_0x57c5e0=_0x14a7ac['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x48c3c6?.[0x1][_0x3111b1(0x1ae)]()||'','description':_0x57c5e0?.[0x1]['trim']()||''};}export async function removeSkill(_0x4b1ebf,_0x53c470){const _0x2dd8c1=_0x409077,_0x4aec7b={'OHvpe':function(_0x2e8476,_0x3f797d){return _0x2e8476(_0x3f797d);},'vHIZk':function(_0x40282f,_0x4c2eef,_0x1f505b){return _0x40282f(_0x4c2eef,_0x1f505b);}},_0xdbe0a9=_0x4aec7b[_0x2dd8c1(0x1c3)](getSkillsDir,_0x53c470),_0x1a932d=_0x4aec7b['vHIZk'](join,_0xdbe0a9,_0x4b1ebf);if(!_0x4aec7b[_0x2dd8c1(0x1c3)](existsSync,_0x1a932d))return![];try{return await rm(_0x1a932d,{'recursive':!![]}),console['log'](_0x2dd8c1(0x1b7)+_0x4b1ebf),!![];}catch{return console[_0x2dd8c1(0x1cd)](_0x2dd8c1(0x1b1)+_0x4b1ebf),![];}}
1
+ const _0x592f1d=_0x1c90;(function(_0x551883,_0x8e59ff){const _0x5d8959=_0x1c90,_0x1f7324=_0x551883();while(!![]){try{const _0x2ec678=-parseInt(_0x5d8959(0x11a))/0x1*(parseInt(_0x5d8959(0x131))/0x2)+parseInt(_0x5d8959(0x12d))/0x3*(parseInt(_0x5d8959(0x114))/0x4)+parseInt(_0x5d8959(0x11b))/0x5*(-parseInt(_0x5d8959(0x119))/0x6)+parseInt(_0x5d8959(0x116))/0x7+-parseInt(_0x5d8959(0x11c))/0x8+-parseInt(_0x5d8959(0x134))/0x9+-parseInt(_0x5d8959(0x111))/0xa*(-parseInt(_0x5d8959(0x11d))/0xb);if(_0x2ec678===_0x8e59ff)break;else _0x1f7324['push'](_0x1f7324['shift']());}catch(_0x171492){_0x1f7324['push'](_0x1f7324['shift']());}}}(_0x2624,0xdb081));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0x2624(){const _0x409c52=['\x20\x20Installed\x20skill:\x20','trim','nrfiP','feature-tracker','6tgMKRl','warn','log','\x20\x20Location:\x20','2ILbtWv','claude','IyPlo','1251630bOTrCP','10lIueNA','oPQHN','skills','1768028CYwmOf','\x20\x20Skill\x20not\x20found:\x20','7646982kDmLCA','join','SdNuq','729996qdmeGQ','1423222wUbjjJ','20WMckbD','3456864fONVzw','15419547bxCJnC','length','\x20\x20Files:\x20','push','tPZGA','Jbsvz','akQSw','FTljp','dEKKp','OKmtz','SKILL.md','\x20\x20Removed\x20deprecated\x20skill:\x20'];_0x2624=function(){return _0x409c52;};return _0x2624();}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x1c90(_0x3ccdf0,_0xf0ef99){_0x3ccdf0=_0x3ccdf0-0x111;const _0x262441=_0x2624();let _0x1c9056=_0x262441[_0x3ccdf0];return _0x1c9056;}export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x592f1d(0x12c)];export async function installSkill(_0xf1c54,_0x20d86a={}){const _0xc0db6e=_0x592f1d,_0x2e3472={'Nsbep':function(_0x4d1be5){return _0x4d1be5();},'tPZGA':function(_0x96e75c,_0x2ae551,_0x24f9b4){return _0x96e75c(_0x2ae551,_0x24f9b4);},'HQtWD':function(_0x2b3e02,_0x49566b){return _0x2b3e02(_0x49566b);},'GHoOy':function(_0x4fd161,_0xf17158,_0xcac82f){return _0x4fd161(_0xf17158,_0xcac82f);},'SdNuq':'SKILL.md','FTljp':function(_0x159fcf,_0x33417e){return _0x159fcf&&_0x33417e;},'OKmtz':function(_0x177b8a,_0x422cb2){return _0x177b8a===_0x422cb2;},'SWbDP':function(_0x4d5da1,_0x3d9dbd){return _0x4d5da1(_0x3d9dbd);},'IyPlo':function(_0x495f88,_0x2764df){return _0x495f88(_0x2764df);},'Poszb':function(_0x3cb115,_0x58e8e9,_0x3b28c5){return _0x3cb115(_0x58e8e9,_0x3b28c5);},'oPQHN':'utf-8','maWCU':function(_0x7cc018,_0x216366){return _0x7cc018(_0x216366);},'dEKKp':function(_0x1127b8,_0x166b4d,_0x104ed3,_0x12f73a){return _0x1127b8(_0x166b4d,_0x104ed3,_0x12f73a);}},{level:level='project',cliVersion:_0x2c2681,platform:platform=_0xc0db6e(0x132)}=_0x20d86a,_0xce5120=_0x2e3472['Nsbep'](getSourceSkillsDir),_0x17f738=_0x2e3472['tPZGA'](join,_0xce5120,_0xf1c54),_0x4846dd=_0x2e3472[_0xc0db6e(0x121)](join,_0xce5120,_0xf1c54+'.md'),_0x5f4f13=existsSync(_0x17f738)&&_0x2e3472['HQtWD'](statSync,_0x17f738)['isDirectory']()&&existsSync(_0x2e3472['GHoOy'](join,_0x17f738,_0x2e3472[_0xc0db6e(0x118)])),_0x33c01f=existsSync(_0x4846dd);if(_0x2e3472[_0xc0db6e(0x124)](!_0x5f4f13,!_0x33c01f))return console['warn'](_0xc0db6e(0x115)+_0xf1c54),![];const _0x45f9d7=_0x2e3472[_0xc0db6e(0x126)](platform,'opencode')?_0x2e3472['SWbDP'](getOpencodeSkillsDir,level):_0x2e3472[_0xc0db6e(0x133)](getSkillsDir,level),_0x35cdc8=_0x2e3472['tPZGA'](join,_0x45f9d7,_0xf1c54);await mkdir(_0x35cdc8,{'recursive':!![]});let _0x482b81,_0x510e51=[];if(_0x5f4f13){const _0x1097ad=await readdir(_0x17f738),_0x43f4b5=_0x1097ad['filter'](_0x439aeb=>_0x439aeb['endsWith']('.md'));for(const _0x3470a1 of _0x43f4b5){const _0x589b64=join(_0x17f738,_0x3470a1),_0xddf7af=_0x2e3472[_0xc0db6e(0x121)](join,_0x35cdc8,_0x3470a1);await _0x2e3472['Poszb'](copyFile,_0x589b64,_0xddf7af),_0x510e51[_0xc0db6e(0x120)](_0x3470a1);}_0x482b81=await _0x2e3472['Poszb'](readFile,_0x2e3472['tPZGA'](join,_0x17f738,_0x2e3472['SdNuq']),_0x2e3472[_0xc0db6e(0x112)]);}else{_0x482b81=await readFile(_0x4846dd,_0x2e3472['oPQHN']);const _0x7539ad=join(_0x35cdc8,_0xc0db6e(0x127));await writeFile(_0x7539ad,_0x482b81,'utf-8'),_0x510e51['push']('SKILL.md');}const {name:_0x1ebe55}=_0x2e3472['maWCU'](parseFrontmatter,_0x482b81);return console['log'](_0xc0db6e(0x129)+_0x1ebe55),console[_0xc0db6e(0x12f)](_0xc0db6e(0x130)+_0x35cdc8),_0x510e51[_0xc0db6e(0x11e)]>0x1&&console['log'](_0xc0db6e(0x11f)+_0x510e51[_0xc0db6e(0x117)](',\x20')),_0x2e3472[_0xc0db6e(0x125)](logLocalAgentInstallation,_0xf1c54,{'skillDisplayName':_0x1ebe55,'installLevel':level},_0x2c2681)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x149534=_0x592f1d,_0x2338c3={'WqXFe':function(_0x5b940a,_0x49c1bc,_0x1f3ae7,_0x164897,_0x1eb540){return _0x5b940a(_0x49c1bc,_0x1f3ae7,_0x164897,_0x1eb540);},'akQSw':_0x149534(0x113)},_0x5e67c1=[_0x2338c3['WqXFe'](join,__dirname,'..','..',_0x149534(0x113)),join(__dirname,'..','..','..',_0x2338c3[_0x149534(0x123)])];for(const _0x1c2293 of _0x5e67c1){if(existsSync(_0x1c2293))return _0x1c2293;}return _0x5e67c1[0x0];}function parseFrontmatter(_0x450f20){const _0x2621f2=_0x592f1d,_0x321555={'nrfiP':'Invalid\x20skill\x20frontmatter'},_0x266d6d=_0x450f20['match'](/^---\n([\s\S]+?)\n---/);if(!_0x266d6d)throw new Error(_0x321555[_0x2621f2(0x12b)]);const _0x5a2a60=_0x266d6d[0x1],_0x4259ba=_0x5a2a60['match'](/name:\s*(.+)/),_0x3d23d7=_0x5a2a60['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x4259ba?.[0x1][_0x2621f2(0x12a)]()||'','description':_0x3d23d7?.[0x1]['trim']()||''};}export async function removeSkill(_0x5a407e,_0x213d5a){const _0x267931=_0x592f1d,_0x10f597={'Jbsvz':function(_0x148948,_0x1a6c14){return _0x148948(_0x1a6c14);}},_0x5371fe=getSkillsDir(_0x213d5a),_0x375759=join(_0x5371fe,_0x5a407e);if(!_0x10f597[_0x267931(0x122)](existsSync,_0x375759))return![];try{return await rm(_0x375759,{'recursive':!![]}),console['log'](_0x267931(0x128)+_0x5a407e),!![];}catch{return console[_0x267931(0x12e)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5a407e),![];}}