@ranger-testing/ranger-cli 3.0.1-alpha.bb18058-34 → 3.0.1-alpha.d8f00ab-37

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 (85) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -0
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +3 -1
@@ -1 +1 @@
1
- (function(_0x5dd7c7,_0x235ddb){const _0x2058e3=_0x1add,_0xfdc4f9=_0x5dd7c7();while(!![]){try{const _0x57c654=parseInt(_0x2058e3(0x147))/0x1*(parseInt(_0x2058e3(0x14f))/0x2)+-parseInt(_0x2058e3(0xf8))/0x3*(parseInt(_0x2058e3(0xdd))/0x4)+parseInt(_0x2058e3(0x100))/0x5+-parseInt(_0x2058e3(0x131))/0x6*(-parseInt(_0x2058e3(0x125))/0x7)+parseInt(_0x2058e3(0x138))/0x8*(-parseInt(_0x2058e3(0x113))/0x9)+-parseInt(_0x2058e3(0xeb))/0xa*(parseInt(_0x2058e3(0x12b))/0xb)+parseInt(_0x2058e3(0xee))/0xc;if(_0x57c654===_0x235ddb)break;else _0xfdc4f9['push'](_0xfdc4f9['shift']());}catch(_0x2ad9a2){_0xfdc4f9['push'](_0xfdc4f9['shift']());}}}(_0x4e1d,0x5785e));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x3663c5 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function _0x4e1d(){const _0x47b3cf=['Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','input','ziWFm','62VxyaFu','\x0a\x20\x20(domains:\x20','NuRiT','user_declined','message','cwd','use_suggestion','origin','YgfNr','exit','Invalid\x20--setup-header\x20format:\x20\x22','no_auth_config',')\x0a\x20\x20Save\x20\x27','SlPDM','NODE_TLS_REJECT_UNAUTHORIZED','\x0a🌐\x20Profile\x20Setup\x0a','.\x20Configured\x20envs:\x20','isElectron','WhIAA','some','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','.tmp-','1727512KyWzhh','Invalid\x20URL','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','KhaWx','DeurV','\x0a\x20\x20Could\x20not\x20reach\x20','setupHeader','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','nlxcy','Use\x20','join','confirm','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','profile.add.autoRouted','10fpAPfl','indexOf','error','8245956bzUZMF','XwXlO','ocYmC','ktKWe','log','local','continue','length','\x0a✓\x20Profile\x20\x27','jbGqv','3VWZOLB','CSyqZ','algKc','manual','prompt','dmRyL','keys','GhoWv','2117945vcCxIf','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','CuRKJ','\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','force','setupHeaders','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','MpqJt','fetch\x20failed','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','http://','Continue\x20anyway','yKCoH','environments','trim','VdkDj','\x20(continuing\x20with\x20--force)','yes','test','101043NxMxRF','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','\x20\x20Did\x20you\x20mean\x20','✓\x20Cloud\x20profile\x20\x27','pNblT','QnPqb','baseUrl','\x0a\x20\x20A\x20profile\x20named\x20\x22','cdpEndpoint','RYEiB','trackPhaseEnd','XoKeb','RtAPm','domains','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','\x20--skip-auth\x0a','profile.add.autoRouteSkipped','uDvLJ','7HTtRGe','slice','Enter\x20a\x20different\x20URL','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','5669719BkanOD','\x20--url\x20','retry','oWtQu','✓\x20Profile\x20\x27','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','3454296cyWKyg','AXInr','\x20\x20https://docs.ranger.net/main/concepts/profiles','env','pKQOg','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','376UDdrYq','BRTmi','\x27\x20created.\x0a','status','\x22:\x20','DZgsV','http://localhost:3000','gHRQM','frETj','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','WJxAz','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','AfPAd','rxZxN','4742pdGjnl','vokFF','HEAD','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','url'];_0x4e1d=function(){return _0x47b3cf;};return _0x4e1d();}function warnCloudProfileSharedInOrg(){if(!process['stdout']['isTTY'])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}function _0x1add(_0x4c18bc,_0x4fdd79){_0x4c18bc=_0x4c18bc-0xd6;const _0x4e1d1b=_0x4e1d();let _0x1add5f=_0x4e1d1b[_0x4c18bc];return _0x1add5f;}async function checkUrlReachability(_0x5652f5){const _0x11c0af=_0x1add,_0x4e0aea={'SlPDM':function(_0x31cd9b,_0x49c842,_0x153fe0){return _0x31cd9b(_0x49c842,_0x153fe0);},'nlxcy':_0x11c0af(0x149),'algKc':function(_0x476f1f,_0x57278e){return _0x476f1f<_0x57278e;},'PXcCu':_0x11c0af(0x108)};try{const _0x2c207b=new AbortController(),_0xce6d42=_0x4e0aea[_0x11c0af(0x15c)](setTimeout,()=>_0x2c207b['abort'](),0x1388),_0x2eda22={'method':_0x4e0aea[_0x11c0af(0xe5)],'signal':_0x2c207b['signal'],'redirect':_0x11c0af(0xfb)};/^https:\/\/localhost(:\d+)?/i[_0x11c0af(0x112)](_0x5652f5)&&(process['env'][_0x11c0af(0x15d)]='0');const _0x111ee8=await fetch(_0x5652f5,_0x2eda22);delete process['env'][_0x11c0af(0x15d)],clearTimeout(_0xce6d42);if(_0x4e0aea[_0x11c0af(0xfa)](_0x111ee8['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x111ee8[_0x11c0af(0x13b)]};}catch(_0x2a34ef){delete process[_0x11c0af(0x134)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x289c71=_0x2a34ef,_0xf70646=_0x289c71['message']||String(_0x2a34ef),_0x2e251a=_0xf70646['includes'](_0x11c0af(0xde))||_0x289c71['name']==='TypeError'||_0xf70646['includes'](_0x4e0aea['PXcCu']);return{'ok':![],'error':_0xf70646,'isProtocolError':_0x2e251a};}}async function sweepOrphanLocalProfile(_0x233ad8,_0x42d5d4,_0x4b7d6f){const _0x356ad1=_0x1add,_0x377c0e={'Mdyqk':function(_0x2531bf,_0x150df1,_0x13fdf4){return _0x2531bf(_0x150df1,_0x13fdf4);},'MpqJt':function(_0x18b79d,_0x1fd78b,_0x321085){return _0x18b79d(_0x1fd78b,_0x321085);}},_0x3c9bd8=_0x377c0e['Mdyqk'](join,_0x42d5d4,_0x356ad1(0xf3)),_0x44d18a=join(_0x3c9bd8,_0x233ad8);existsSync(_0x44d18a)&&(_0x4b7d6f&&await isPathGitTracked(_0x44d18a)?console[_0x356ad1(0xf2)]('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0x44d18a+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await rm(_0x44d18a,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x44d18a)));if(existsSync(_0x3c9bd8)){let _0x2e3cb5=[];try{_0x2e3cb5=await readdir(_0x3c9bd8);}catch{return;}const _0x26f307=_0x356ad1(0xdc)+_0x233ad8+'-';for(const _0x2d6383 of _0x2e3cb5){if(!_0x2d6383['startsWith'](_0x26f307))continue;const _0x49a4db=join(_0x3c9bd8,_0x2d6383);await _0x377c0e[_0x356ad1(0x107)](rm,_0x49a4db,{'recursive':!![],'force':!![]}),console['log'](_0x356ad1(0x143)+_0x49a4db);}}}async function sweepOrphansBestEffort(_0x48b17d){const _0x45a9c1=_0x1add,_0x1bd88d={'pKQOg':function(_0xd402d9){return _0xd402d9();},'dmRyL':function(_0x3eedcb,_0x1442ba){return _0x3eedcb!==_0x1442ba;},'iMGTW':function(_0x690149){return _0x690149();},'vfGoP':function(_0x236050,_0x27df1a){return _0x236050 instanceof _0x27df1a;}};try{await sweepOrphanLocalProfile(_0x48b17d,getRangerHomeDir(),![]);const _0xcbae50=_0x1bd88d[_0x45a9c1(0x135)](getRangerDir);_0x1bd88d[_0x45a9c1(0xfd)](_0xcbae50,_0x1bd88d['iMGTW'](getRangerHomeDir))&&await sweepOrphanLocalProfile(_0x48b17d,_0xcbae50,!![]);}catch(_0x3ae0ce){console[_0x45a9c1(0xf2)](_0x45a9c1(0x12a)+(_0x1bd88d['vfGoP'](_0x3ae0ce,Error)?_0x3ae0ce[_0x45a9c1(0x153)]:String(_0x3ae0ce))+').');}}async function markActive(_0x4f9fd8){const _0xb305dc=_0x1add,_0x323b79={'mqwhr':function(_0x46a11d,_0xb8b62c){return _0x46a11d(_0xb8b62c);},'Hzoqv':_0xb305dc(0x130)};try{await _0x323b79['mqwhr'](writeActiveProfileName,_0x4f9fd8),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x4f9fd8);}catch{console['log'](_0x323b79['Hzoqv']);}}async function tryAutoRouteCloudProfile(_0x44d1fa,_0x35dc53,_0x3d9b6c,_0x274c86,_0x217ca0){const _0x5e6c12=_0x1add,_0x753fd1={'ovsWP':function(_0x3ea09d,_0x3e6c3c){return _0x3ea09d===_0x3e6c3c;},'tFtdS':function(_0x247189,_0x57a05e){return _0x247189 instanceof _0x57a05e;},'pNblT':_0x5e6c12(0x123),'KhaWx':_0x5e6c12(0x15a),'rOMHz':function(_0x51e902,_0x20fd2c){return _0x51e902+_0x20fd2c;},'RtAPm':function(_0x17615c,_0x143857){return _0x17615c+_0x143857;},'eCVMt':_0x5e6c12(0x103),'ktKWe':_0x5e6c12(0xe4),'vokFF':'no_match','dMMrD':_0x5e6c12(0x152),'ChFKl':_0x5e6c12(0xdb),'GhoWv':function(_0x37676e,_0x449fd3,_0x26dd71,_0x2191a4){return _0x37676e(_0x449fd3,_0x26dd71,_0x2191a4);},'WJxAz':function(_0x2cc43e,_0x3d0c75){return _0x2cc43e instanceof _0x3d0c75;}};let _0x45d2a3;try{_0x45d2a3=await fetchAuthConfig();}catch(_0x493f45){return _0x217ca0?.[_0x5e6c12(0x11d)]('profile.add.autoRouteSkipped',{'reason':_0x5e6c12(0x15a),'profileName':_0x44d1fa}),console[_0x5e6c12(0xed)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x753fd1['tFtdS'](_0x493f45,Error)?_0x493f45[_0x5e6c12(0x153)]:String(_0x493f45))),![];}if(!_0x45d2a3||!_0x45d2a3['environments']||Object['keys'](_0x45d2a3[_0x5e6c12(0x10d)])['length']===0x0){if(_0x274c86)return await captureEnvLessProfile(_0x44d1fa,_0x35dc53,_0x3d9b6c,_0x217ca0);return _0x217ca0?.['trackPhaseEnd'](_0x753fd1[_0x5e6c12(0x117)],{'reason':_0x753fd1[_0x5e6c12(0xe0)],'profileName':_0x44d1fa}),console[_0x5e6c12(0xed)](_0x753fd1['rOMHz'](_0x753fd1[_0x5e6c12(0x11f)](_0x753fd1['eCVMt']+'\x0a'+_0x753fd1[_0x5e6c12(0xf1)]+(_0x5e6c12(0x121)+_0x44d1fa+_0x5e6c12(0x12c)+_0x35dc53+_0x5e6c12(0x122)),'\x0a'),'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a')+'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login'),![];}const _0x2bef31=matchAuthEnvironment(_0x35dc53,_0x45d2a3);if(!_0x2bef31)return _0x217ca0?.[_0x5e6c12(0x11d)]('profile.add.autoRouteSkipped',{'reason':_0x753fd1[_0x5e6c12(0x148)],'profileName':_0x44d1fa}),console['error'](_0x5e6c12(0x136)+_0x35dc53+_0x5e6c12(0xd7)+Object['keys'](_0x45d2a3['environments'])['join'](',\x20')+'.'),![];const _0x2dabd1=_0x45d2a3[_0x5e6c12(0x10d)][_0x2bef31],_0x1727e9=_0x2dabd1?.[_0x5e6c12(0x120)]??[];if(_0x274c86&&!_0x3d9b6c[_0x5e6c12(0x111)]){const {saveToCloud:_0x4e030d}=await _0x3663c5['prompt']([{'type':_0x5e6c12(0xe8),'name':'saveToCloud','message':'Found\x20auth\x20environment\x20\x27'+_0x2bef31+'\x27\x20matching\x20'+_0x35dc53+_0x5e6c12(0x150)+_0x1727e9[_0x5e6c12(0xe7)](',\x20')+_0x5e6c12(0x15b)+_0x44d1fa+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x4e030d)return _0x217ca0?.[_0x5e6c12(0x11d)](_0x753fd1['pNblT'],{'reason':_0x753fd1['dMMrD'],'profileName':_0x44d1fa}),console['error'](_0x753fd1['ChFKl']),![];}const _0x3cb2a1=_0x1727e9[_0x5e6c12(0xda)](_0xb266fb=>{const _0x31b020=_0x5e6c12;try{return _0x753fd1['ovsWP'](new URL(_0xb266fb)[_0x31b020(0x156)],new URL(_0x35dc53)['origin']);}catch{return![];}}),_0x824245={};!_0x3cb2a1&&(_0x824245['baseUrl']=_0x35dc53);try{await _0x753fd1[_0x5e6c12(0xff)](createCloudProfile,_0x44d1fa,_0x2bef31,{'settings':_0x824245}),warnCloudProfileSharedInOrg();}catch(_0x2b7f68){if(_0x753fd1[_0x5e6c12(0x142)](_0x2b7f68,ApiError)&&_0x2b7f68[_0x5e6c12(0x13b)]===0x199){console[_0x5e6c12(0xed)](_0x5e6c12(0x11a)+_0x44d1fa+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x44d1fa));throw _0x2b7f68;}throw _0x2b7f68;}return console['log'](_0x5e6c12(0x12f)+_0x44d1fa+_0x5e6c12(0x13a)+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x44d1fa)),await sweepOrphansBestEffort(_0x44d1fa),_0x217ca0?.[_0x5e6c12(0x11d)](_0x5e6c12(0xea),{'envKey':_0x2bef31,'profileName':_0x44d1fa}),!![];}async function createUnconfiguredCloudProfile(_0x30588d,_0x24e1ba){const _0x278da0=_0x1add,_0x224e1b={'ziWFm':function(_0x2aa462){return _0x2aa462();},'CnVLo':function(_0x3e09fc,_0x1dfc72){return _0x3e09fc instanceof _0x1dfc72;},'QnPqb':function(_0x53fa94,_0x478c46){return _0x53fa94===_0x478c46;},'CLhnK':function(_0x10661f,_0x2ea5db){return _0x10661f+_0x2ea5db;}};try{await createCloudProfile(_0x30588d,undefined,{'settings':_0x24e1ba}),_0x224e1b[_0x278da0(0x14e)](warnCloudProfileSharedInOrg);}catch(_0x410139){_0x224e1b['CnVLo'](_0x410139,ApiError)&&_0x224e1b[_0x278da0(0x118)](_0x410139['status'],0x199)&&console['error'](_0x224e1b['CLhnK'](_0x278da0(0x11a)+_0x30588d+_0x278da0(0x141),'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x30588d));throw _0x410139;}}async function captureEnvLessProfile(_0x52f0c2,_0x35777e,_0x2cb417,_0x260ea5){const _0x957e46=_0x1add,_0x286f2d={'XoKeb':_0x957e46(0xe8),'ZlLHo':_0x957e46(0x14c),'oWtQu':'user_declined','CSyqZ':function(_0x3b26d8,_0xaf9da2){return _0x3b26d8+_0xaf9da2;},'rxZxN':function(_0x44bf42,_0x1b6067){return _0x44bf42===_0x1b6067;},'DQRGP':function(_0x52b1b8,_0x3fbbfb){return _0x52b1b8>_0x3fbbfb;},'icTlb':function(_0x1e1166,_0x1a3e62){return _0x1e1166 instanceof _0x1a3e62;},'AXInr':function(_0x2b0e14,_0x21029e){return _0x2b0e14+_0x21029e;},'GAcQa':function(_0x1ca9d9,_0x1bb38a,_0xa98557){return _0x1ca9d9(_0x1bb38a,_0xa98557);},'AvCuz':function(_0x1633fd,_0x5a309c){return _0x1633fd(_0x5a309c);},'WhIAA':_0x957e46(0xea)};if(!_0x2cb417[_0x957e46(0x111)]){const {capture:_0x2483a4}=await _0x3663c5[_0x957e46(0xfc)]([{'type':_0x286f2d[_0x957e46(0x11e)],'name':'capture','message':_0x286f2d['ZlLHo'],'default':!![]}]);if(!_0x2483a4)return _0x260ea5?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x286f2d[_0x957e46(0x12e)],'profileName':_0x52f0c2}),console['error'](_0x286f2d[_0x957e46(0xf9)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a',_0x957e46(0x14a))),![];}const _0x51f33d={};if(_0x2cb417['setupHeader'])for(const _0x310f3d of _0x2cb417[_0x957e46(0xe3)]){const _0xf791b9=_0x310f3d[_0x957e46(0xec)](':');if(_0x286f2d[_0x957e46(0x146)](_0xf791b9,-0x1))continue;_0x51f33d[_0x310f3d['slice'](0x0,_0xf791b9)['trim']()]=_0x310f3d['slice'](_0xf791b9+0x1)[_0x957e46(0x10e)]();}const _0x2d47cb={'baseUrl':_0x35777e};_0x286f2d['DQRGP'](Object['keys'](_0x51f33d)['length'],0x0)&&(_0x2d47cb['setupHeaders']=_0x51f33d);let _0x44a875;try{_0x44a875=await createCloudProfile(_0x52f0c2,undefined,{'settings':_0x2d47cb}),warnCloudProfileSharedInOrg();}catch(_0x3911ff){_0x286f2d['icTlb'](_0x3911ff,ApiError)&&_0x286f2d['rxZxN'](_0x3911ff[_0x957e46(0x13b)],0x199)&&console[_0x957e46(0xed)](_0x286f2d[_0x957e46(0x132)](_0x957e46(0x11a)+_0x52f0c2+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x52f0c2));throw _0x3911ff;}return await _0x286f2d['GAcQa'](manualBrowserLogin,_0x44a875,{'key':'','domains':[_0x35777e],'setupHeaders':Object[_0x957e46(0xfe)](_0x51f33d)['length']>0x0?_0x51f33d:undefined}),console[_0x957e46(0xf2)](_0x286f2d[_0x957e46(0xf9)](_0x957e46(0xf6)+_0x52f0c2+_0x957e46(0x144),_0x957e46(0xe9)+_0x52f0c2)),await _0x286f2d['AvCuz'](sweepOrphansBestEffort,_0x52f0c2),_0x260ea5?.[_0x957e46(0x11d)](_0x286f2d[_0x957e46(0xd9)],{'envKey':null,'profileName':_0x52f0c2}),!![];}export async function addEnv(_0x48f9d3,_0x478c20={},_0x441f39){const _0x287e4f=_0x1add,_0x12eca1={'JLYZI':function(_0x536ee6,_0x3a41e1){return _0x536ee6+_0x3a41e1;},'VdkDj':function(_0x3020a4,_0x31c2a7){return _0x3020a4+_0x31c2a7;},'fsvIh':function(_0x90476d,_0x33c6ed){return _0x90476d+_0x33c6ed;},'BRTmi':_0x287e4f(0x101),'NuRiT':_0x287e4f(0x129),'YgfNr':_0x287e4f(0x133),'IJZqd':function(_0x192764,_0x5ade35){return _0x192764+_0x5ade35;},'eKaKa':function(_0x1b1db6,_0x219768){return _0x1b1db6===_0x219768;},'uDvLJ':function(_0x368a90){return _0x368a90();},'yKCoH':'Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','LDYap':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','frETj':_0x287e4f(0xd8),'CuRKJ':function(_0x4c0532,_0x2bf42d){return _0x4c0532 instanceof _0x2bf42d;},'XwXlO':function(_0x417c70,_0x4651ea){return _0x417c70(_0x4651ea);},'AfPAd':function(_0x7111a7,_0x2f0af5,_0x5d54b6){return _0x7111a7(_0x2f0af5,_0x5d54b6);},'gaAzx':function(_0x4719ea,_0x55a657){return _0x4719ea(_0x55a657);},'gHRQM':function(_0x87755f,_0x362264){return _0x87755f(_0x362264);},'NxfZJ':_0x287e4f(0x137),'NwQOS':_0x287e4f(0x14d),'GLFhz':function(_0x5a0750,_0x13919a){return _0x5a0750||_0x13919a;},'DZgsV':_0x287e4f(0x13e),'jbGqv':'list','DeurV':'action','CvqhM':'What\x20would\x20you\x20like\x20to\x20do?','ocYmC':_0x287e4f(0x12d),'RYEiB':_0x287e4f(0x10b),'pJMQm':_0x287e4f(0x155),'VFNWS':_0x287e4f(0xf4),'cMiiW':function(_0x550f3c,_0x33b9c9,_0x59c306,_0x29db7f,_0x5a4e2c,_0x190779){return _0x550f3c(_0x33b9c9,_0x59c306,_0x29db7f,_0x5a4e2c,_0x190779);}};_0x478c20['ci']&&(console['error'](_0x12eca1['JLYZI'](_0x12eca1[_0x287e4f(0x10f)](_0x12eca1['VdkDj'](_0x12eca1['fsvIh'](_0x12eca1[_0x287e4f(0x139)],'for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a'),'\x0a')+_0x287e4f(0xdf)+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'\x0a',_0x12eca1[_0x287e4f(0x151)]),_0x12eca1[_0x287e4f(0x157)])),process[_0x287e4f(0x158)](0x1));const _0x51c825={};if(_0x478c20[_0x287e4f(0xe3)])for(const _0x291da0 of _0x478c20[_0x287e4f(0xe3)]){const _0x1a9fa1=_0x291da0[_0x287e4f(0xec)](':');if(_0x1a9fa1===-0x1)throw new Error(_0x287e4f(0x159)+_0x291da0+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x14fa95=_0x291da0[_0x287e4f(0x126)](0x0,_0x1a9fa1)[_0x287e4f(0x10e)](),_0x374a53=_0x291da0['slice'](_0x12eca1['IJZqd'](_0x1a9fa1,0x1))['trim']();_0x51c825[_0x14fa95]=_0x374a53;}if(_0x478c20['cdpEndpoint']!==undefined&&_0x12eca1['eKaKa'](_0x478c20['cdpEndpoint']['trim'](),''))throw new Error(_0x287e4f(0x109));if(_0x478c20[_0x287e4f(0x11b)]&&_0x478c20[_0x287e4f(0x14b)])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');const _0x432d43=Boolean(_0x478c20[_0x287e4f(0x11b)]),_0x37dbea=_0x12eca1[_0x287e4f(0x124)](isInteractive);if(!_0x37dbea&&!_0x478c20[_0x287e4f(0x14b)]&&!_0x432d43&&!_0x478c20['skipAuth'])throw new Error(_0x12eca1[_0x287e4f(0x10c)]);if(_0x432d43){const _0x151734=_0x478c20['cdpEndpoint'];console[_0x287e4f(0xf2)](_0x12eca1['LDYap']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x151734);const _0x3e77bb={'cdpEndpoint':_0x151734,'isElectron':!![]};Object['keys'](_0x51c825)[_0x287e4f(0xf5)]>0x0&&(_0x3e77bb[_0x287e4f(0x105)]=_0x51c825);await createUnconfiguredCloudProfile(_0x48f9d3,_0x3e77bb);try{setProfileOverride(process['cwd'](),_0x48f9d3,'cdpEndpoint',_0x151734),setProfileOverride(process[_0x287e4f(0x154)](),_0x48f9d3,_0x12eca1[_0x287e4f(0x140)],!![]);}catch(_0x51e729){console[_0x287e4f(0xed)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x12eca1[_0x287e4f(0x102)](_0x51e729,Error)?_0x51e729['message']:String(_0x51e729)));}console[_0x287e4f(0xf2)](_0x287e4f(0x116)+_0x48f9d3+'\x27\x20created\x20(CDP).'),await _0x12eca1['XwXlO'](sweepOrphansBestEffort,_0x48f9d3),await _0x12eca1[_0x287e4f(0xef)](markActive,_0x48f9d3);return;}if(_0x478c20['skipAuth']){const _0x305f4a={};_0x478c20['url']&&(_0x305f4a['baseUrl']=_0x478c20[_0x287e4f(0x14b)]);Object[_0x287e4f(0xfe)](_0x51c825)['length']>0x0&&(_0x305f4a['setupHeaders']=_0x51c825);await _0x12eca1[_0x287e4f(0x145)](createUnconfiguredCloudProfile,_0x48f9d3,_0x305f4a),console[_0x287e4f(0xf2)](_0x287e4f(0x12f)+_0x48f9d3+'\x27\x20created\x20(no\x20session).\x0a'+(_0x287e4f(0x114)+_0x48f9d3+'`\x20again\x20without\x20--skip-auth.')),await sweepOrphansBestEffort(_0x48f9d3),await _0x12eca1['gaAzx'](markActive,_0x48f9d3);return;}if(_0x478c20['url']){const _0x54964a=_0x478c20['url'],_0x298db6=await _0x12eca1[_0x287e4f(0x13f)](checkUrlReachability,_0x54964a);if(!_0x298db6['ok']&&!_0x478c20['force'])throw new Error('Could\x20not\x20reach\x20'+_0x54964a+':\x20'+_0x298db6[_0x287e4f(0xed)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x298db6['ok']&&_0x478c20[_0x287e4f(0x104)]&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0x54964a+':\x20'+_0x298db6[_0x287e4f(0xed)]+_0x287e4f(0x110));}else{console['log'](_0x287e4f(0xd6)),console['log'](_0x287e4f(0x106)),console[_0x287e4f(0xf2)](_0x12eca1['NxfZJ']);let _0x565174='',_0x494245=![];while(!![]){const _0x2e0119=await _0x3663c5[_0x287e4f(0xfc)]([{'type':_0x12eca1['NwQOS'],'name':_0x287e4f(0x119),'message':_0x494245?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0x12eca1['GLFhz'](_0x565174,_0x12eca1[_0x287e4f(0x13d)])}]);_0x565174=_0x2e0119[_0x287e4f(0x119)];const _0x5d3be3=await checkUrlReachability(_0x565174);if(_0x5d3be3['ok'])break;const _0x571e4e=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x565174),_0x110dff=_0x5d3be3['isProtocolError']&&!_0x571e4e,_0x4f999b=_0x110dff?_0x287e4f(0x10a)+_0x565174:null;_0x494245=!![],console['log'](_0x287e4f(0xe2)+_0x565174+':\x20'+_0x5d3be3[_0x287e4f(0xed)]);_0x4f999b&&console['log'](_0x287e4f(0x115)+_0x4f999b+'?');const {action:_0x25a010}=await _0x3663c5[_0x287e4f(0xfc)]([{'type':_0x12eca1[_0x287e4f(0xf7)],'name':_0x12eca1[_0x287e4f(0xe1)],'message':_0x12eca1['CvqhM'],'choices':[..._0x4f999b?[{'name':_0x287e4f(0xe6)+_0x4f999b,'value':_0x287e4f(0x155)}]:[],{'name':_0x287e4f(0x127),'value':_0x12eca1[_0x287e4f(0xf0)]},{'name':_0x12eca1[_0x287e4f(0x11c)],'value':_0x287e4f(0xf4)}]}]);if(_0x12eca1['eKaKa'](_0x25a010,_0x12eca1['pJMQm'])&&_0x4f999b){_0x565174=_0x4f999b;const _0x2a36ed=await checkUrlReachability(_0x565174);if(_0x2a36ed['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x565174+':\x20'+_0x2a36ed['error']);}else{if(_0x25a010===_0x12eca1['VFNWS'])break;}}_0x478c20={..._0x478c20,'url':_0x565174};}let _0x5befbe=![];try{_0x5befbe=await _0x12eca1['cMiiW'](tryAutoRouteCloudProfile,_0x48f9d3,_0x478c20[_0x287e4f(0x14b)],_0x478c20,_0x37dbea,_0x441f39);}catch(_0x17fd6b){console['error'](_0x287e4f(0x128)+_0x48f9d3+_0x287e4f(0x13c)+(_0x17fd6b instanceof Error?_0x17fd6b['message']:String(_0x17fd6b))),process['exit'](0x1);}!_0x5befbe&&process[_0x287e4f(0x158)](0x1),await markActive(_0x48f9d3);}
1
+ (function(_0x5e368b,_0x5451d1){const _0x2a6028=_0x44f4,_0x9c0b21=_0x5e368b();while(!![]){try{const _0x309f77=-parseInt(_0x2a6028(0x20f))/0x1*(-parseInt(_0x2a6028(0x1e1))/0x2)+parseInt(_0x2a6028(0x211))/0x3*(parseInt(_0x2a6028(0x20d))/0x4)+parseInt(_0x2a6028(0x209))/0x5*(-parseInt(_0x2a6028(0x1e5))/0x6)+parseInt(_0x2a6028(0x1f6))/0x7*(parseInt(_0x2a6028(0x1f8))/0x8)+parseInt(_0x2a6028(0x1ff))/0x9+-parseInt(_0x2a6028(0x258))/0xa*(parseInt(_0x2a6028(0x222))/0xb)+parseInt(_0x2a6028(0x250))/0xc*(-parseInt(_0x2a6028(0x23f))/0xd);if(_0x309f77===_0x5451d1)break;else _0x9c0b21['push'](_0x9c0b21['shift']());}catch(_0x16ce82){_0x9c0b21['push'](_0x9c0b21['shift']());}}}(_0x523d,0x21f39));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x523d(){const _0x16239e=['\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','OhevE','test','\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','profile.add.autoRouted','use_suggestion','505647FmZRQB','message','MszWE','keys','eTBHR','\x27\x20created\x20(no\x20session).\x0a','indexOf','LJSmP','origin','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','61850iQQKPR','✓\x20Profile\x20\x27','user_declined','input','4mYsDCL','pQxXZ','147185WyCfZj','cfuKh','313737WmlOBf','retry','What\x20would\x20you\x20like\x20to\x20do?','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','oXQzB','setupHeaders','env','\x20--url\x20','HIFNj','length','mzRrd','log','.\x20Configured\x20envs:\x20','.tmp-','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','manual','\x20(continuing\x20with\x20--force)','369842EHssGr','prompt','url','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','TypeError','\x20\x20Set\x20active\x20profile:\x20','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','✓\x20Cloud\x20profile\x20\x27','\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','bHxKL','lnrsf','Found\x20auth\x20environment\x20\x27','jIJSB','\x20\x20Did\x20you\x20mean\x20','puDPS','\x0a\x20\x20(domains:\x20','⚠\x20Could\x20not\x20reach\x20','\x22:\x20','\x20\x20https://docs.ranger.net/main/concepts/profiles','cwd','UVipJ','IJDbM','tBbyi','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','\x0a\x20\x20A\x20profile\x20named\x20\x22','lahXw','vXtMN','setupHeader','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','3247413mOfdyS','SLSqz','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','cCpkg','exit','VCUhH','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20','\x20--skip-auth\x0a','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','isTTY','BTOQF','force','no_auth_config','NODE_TLS_REJECT_UNAUTHORIZED','\x0a✓\x20Profile\x20\x27','12mXWshv','lkvPB','continue',')\x0a\x20\x20Save\x20\x27','jjhiw','status','confirm','opmWJ','50fJaFIm','error','action','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','\x27\x20to\x20the\x20cloud?','Use\x20','cdpEndpoint','enLJe','vcbka','ygrjB','saveToCloud','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','PMtuw','environments','ZfwJg','trim','signal','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','\x27\x20created.\x0a','The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','RsIkd','ezoXW','2EfwsCM','\x0a\x20\x20Could\x20not\x20reach\x20','\x27\x20created\x20(CDP).','dKFyD','6nUvuJh','htvAR','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','slice','baseUrl','trackPhaseEnd','stdout','isElectron','CKDqw','WROUh','\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22','bwYoQ','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','FqVPs','abort','MzPkr','list','609931xjBmiD','JHVmA','24ErBSer'];_0x523d=function(){return _0x16239e;};return _0x523d();}import _0x53136d from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';function _0x44f4(_0x441a13,_0x3a1abf){_0x441a13=_0x441a13-0x1e0;const _0x523d20=_0x523d();let _0x44f4fa=_0x523d20[_0x441a13];return _0x44f4fa;}import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';const CLOUD_PROFILE_SHARING_WARNING='This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization';function warnCloudProfileSharedInOrg(){const _0x48dc41=_0x44f4;if(!process[_0x48dc41(0x1eb)][_0x48dc41(0x24a)])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x5ad993){const _0x4a849a=_0x44f4,_0x16641a={'IBeVE':function(_0x2385f6,_0x14ee40,_0x14a644){return _0x2385f6(_0x14ee40,_0x14a644);},'QTlHY':'HEAD','HIFNj':function(_0x2a019b,_0x474624,_0x1264ff){return _0x2a019b(_0x474624,_0x1264ff);},'CFVFE':'Invalid\x20URL','CujJB':function(_0xbe6811,_0xfe6f4d){return _0xbe6811===_0xfe6f4d;},'cNalD':'fetch\x20failed'};try{const _0x3b10c1=new AbortController(),_0xc006b4=_0x16641a['IBeVE'](setTimeout,()=>_0x3b10c1[_0x4a849a(0x1f3)](),0x1388),_0x179255={'method':_0x16641a['QTlHY'],'signal':_0x3b10c1[_0x4a849a(0x269)],'redirect':_0x4a849a(0x220)};/^https:\/\/localhost(:\d+)?/i[_0x4a849a(0x1fb)](_0x5ad993)&&(process[_0x4a849a(0x217)]['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x124468=await _0x16641a[_0x4a849a(0x219)](fetch,_0x5ad993,_0x179255);delete process[_0x4a849a(0x217)][_0x4a849a(0x24e)],clearTimeout(_0xc006b4);if(_0x124468[_0x4a849a(0x255)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x124468[_0x4a849a(0x255)]};}catch(_0x2ad898){delete process['env'][_0x4a849a(0x24e)];const _0x213c29=_0x2ad898,_0x3f4188=_0x213c29['message']||String(_0x2ad898),_0x2cbf98=_0x3f4188['includes'](_0x16641a['CFVFE'])||_0x16641a['CujJB'](_0x213c29['name'],_0x4a849a(0x226))||_0x3f4188['includes'](_0x16641a['cNalD']);return{'ok':![],'error':_0x3f4188,'isProtocolError':_0x2cbf98};}}async function sweepOrphanLocalProfile(_0x3ca26d,_0x15cf79,_0x4655f3){const _0x48be2b=_0x44f4,_0x2253c4={'bwYoQ':function(_0xe710c4,_0x3be338,_0x3d7a7a){return _0xe710c4(_0x3be338,_0x3d7a7a);},'BTOQF':function(_0x1ce207,_0x7a4270){return _0x1ce207(_0x7a4270);}},_0x67e4dd=join(_0x15cf79,'local'),_0x5d6653=join(_0x67e4dd,_0x3ca26d);existsSync(_0x5d6653)&&(_0x4655f3&&await isPathGitTracked(_0x5d6653)?console[_0x48be2b(0x21c)](_0x48be2b(0x249)+_0x5d6653+_0x48be2b(0x1e7)):(await _0x2253c4[_0x48be2b(0x1f0)](rm,_0x5d6653,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5d6653)));if(_0x2253c4[_0x48be2b(0x24b)](existsSync,_0x67e4dd)){let _0x51520c=[];try{_0x51520c=await readdir(_0x67e4dd);}catch{return;}const _0x2e425e=_0x48be2b(0x21e)+_0x3ca26d+'-';for(const _0x89fe8a of _0x51520c){if(!_0x89fe8a['startsWith'](_0x2e425e))continue;const _0x4879cf=_0x2253c4['bwYoQ'](join,_0x67e4dd,_0x89fe8a);await rm(_0x4879cf,{'recursive':!![],'force':!![]}),console['log'](_0x48be2b(0x26a)+_0x4879cf);}}}async function sweepOrphansBestEffort(_0x3ce542){const _0x452b6f=_0x44f4,_0x289278={'MszWE':function(_0x289cd7){return _0x289cd7();},'oXQzB':function(_0x4f0019){return _0x4f0019();},'MzPkr':function(_0x3ead96,_0x23cea5,_0x4f0fd0,_0x5ce675){return _0x3ead96(_0x23cea5,_0x4f0fd0,_0x5ce675);},'DXLxL':function(_0xe5be9d,_0x548307){return _0xe5be9d(_0x548307);}};try{await sweepOrphanLocalProfile(_0x3ce542,_0x289278[_0x452b6f(0x201)](getRangerHomeDir),![]);const _0xdc090b=_0x289278[_0x452b6f(0x215)](getRangerDir);_0xdc090b!==getRangerHomeDir()&&await _0x289278[_0x452b6f(0x1f4)](sweepOrphanLocalProfile,_0x3ce542,_0xdc090b,!![]);}catch(_0x5c71ac){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x5c71ac instanceof Error?_0x5c71ac[_0x452b6f(0x200)]:_0x289278['DXLxL'](String,_0x5c71ac))+').');}}async function markActive(_0x4b9bdf){const _0x4fbbfa=_0x44f4;try{await writeActiveProfileName(_0x4b9bdf),console[_0x4fbbfa(0x21c)](_0x4fbbfa(0x227)+_0x4b9bdf);}catch{console['log']('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}}async function tryAutoRouteCloudProfile(_0xf6b1c,_0x806b5b,_0x2d0810,_0x19b77b,_0x3f83c2){const _0xdd3483=_0x44f4,_0x2aaf78={'bHxKL':function(_0x42e328){return _0x42e328();},'IJDbM':'profile.add.autoRouteSkipped','eMCWU':_0xdd3483(0x24d),'tYSsR':function(_0x402adb,_0x29620f){return _0x402adb instanceof _0x29620f;},'FqVPs':function(_0x920cfb,_0x2b69b3){return _0x920cfb(_0x2b69b3);},'cCpkg':function(_0x721dfa,_0x585ce6){return _0x721dfa===_0x585ce6;},'dKFyD':function(_0x1d7976,_0x1da84f){return _0x1d7976+_0x1da84f;},'lnrsf':_0xdd3483(0x1fc),'tBbyi':_0xdd3483(0x242),'lCYlL':'\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','cAFSQ':function(_0x38486c,_0x382e6d,_0x5c79db){return _0x38486c(_0x382e6d,_0x5c79db);},'OhevE':'no_match','pQxXZ':_0xdd3483(0x256),'RdygC':_0xdd3483(0x263),'WOqDK':_0xdd3483(0x20b)};let _0x76a624;try{_0x76a624=await _0x2aaf78[_0xdd3483(0x22b)](fetchAuthConfig);}catch(_0x1468c3){return _0x3f83c2?.['trackPhaseEnd'](_0x2aaf78[_0xdd3483(0x237)],{'reason':_0x2aaf78['eMCWU'],'profileName':_0xf6b1c}),console['error']('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x2aaf78['tYSsR'](_0x1468c3,Error)?_0x1468c3['message']:_0x2aaf78[_0xdd3483(0x1f2)](String,_0x1468c3))),![];}if(!_0x76a624||!_0x76a624['environments']||_0x2aaf78['cCpkg'](Object['keys'](_0x76a624['environments'])[_0xdd3483(0x21a)],0x0)){if(_0x19b77b)return await captureEnvLessProfile(_0xf6b1c,_0x806b5b,_0x2d0810,_0x3f83c2);return _0x3f83c2?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0xf6b1c}),console[_0xdd3483(0x259)](_0x2aaf78['dKFyD'](_0x2aaf78[_0xdd3483(0x1e4)](_0x2aaf78[_0xdd3483(0x22c)],'\x0a')+_0xdd3483(0x22a)+(_0xdd3483(0x246)+_0xf6b1c+_0xdd3483(0x218)+_0x806b5b+_0xdd3483(0x247)),'\x0a')+_0x2aaf78[_0xdd3483(0x238)]+_0x2aaf78['lCYlL']),![];}const _0x473faf=_0x2aaf78['cAFSQ'](matchAuthEnvironment,_0x806b5b,_0x76a624);if(!_0x473faf)return _0x3f83c2?.['trackPhaseEnd'](_0x2aaf78['IJDbM'],{'reason':_0x2aaf78[_0xdd3483(0x1fa)],'profileName':_0xf6b1c}),console[_0xdd3483(0x259)](_0xdd3483(0x239)+_0x806b5b+_0xdd3483(0x21d)+Object[_0xdd3483(0x202)](_0x76a624['environments'])['join'](',\x20')+'.'),![];const _0x3f6f5b=_0x76a624[_0xdd3483(0x266)][_0x473faf],_0x1a52fe=_0x3f6f5b?.['domains']??[];if(_0x19b77b&&!_0x2d0810['yes']){const {saveToCloud:_0x239d4e}=await _0x53136d[_0xdd3483(0x223)]([{'type':_0x2aaf78[_0xdd3483(0x20e)],'name':_0x2aaf78['RdygC'],'message':_0xdd3483(0x22d)+_0x473faf+'\x27\x20matching\x20'+_0x806b5b+_0xdd3483(0x231)+_0x1a52fe['join'](',\x20')+_0xdd3483(0x253)+_0xf6b1c+_0xdd3483(0x25d),'default':!![]}]);if(!_0x239d4e)return _0x3f83c2?.[_0xdd3483(0x1ea)](_0x2aaf78['IJDbM'],{'reason':_0x2aaf78['WOqDK'],'profileName':_0xf6b1c}),console[_0xdd3483(0x259)](_0xdd3483(0x25c)),![];}const _0x47c404=_0x1a52fe['some'](_0x36d90a=>{const _0x421876=_0xdd3483;try{return new URL(_0x36d90a)['origin']===new URL(_0x806b5b)[_0x421876(0x207)];}catch{return![];}}),_0x2541c6={};!_0x47c404&&(_0x2541c6[_0xdd3483(0x1e9)]=_0x806b5b);try{await createCloudProfile(_0xf6b1c,_0x473faf,{'settings':_0x2541c6}),_0x2aaf78[_0xdd3483(0x22b)](warnCloudProfileSharedInOrg);}catch(_0x35b947){if(_0x35b947 instanceof ApiError&&_0x2aaf78[_0xdd3483(0x243)](_0x35b947[_0xdd3483(0x255)],0x199)){console['error'](_0x2aaf78[_0xdd3483(0x1e4)](_0xdd3483(0x23a)+_0xf6b1c+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a',_0xdd3483(0x21f)+_0xf6b1c));throw _0x35b947;}throw _0x35b947;}return console[_0xdd3483(0x21c)](_0xdd3483(0x20a)+_0xf6b1c+_0xdd3483(0x26b)+(_0xdd3483(0x214)+_0xf6b1c)),await _0x2aaf78['FqVPs'](sweepOrphansBestEffort,_0xf6b1c),_0x3f83c2?.['trackPhaseEnd'](_0xdd3483(0x1fd),{'envKey':_0x473faf,'profileName':_0xf6b1c}),!![];}async function createUnconfiguredCloudProfile(_0x592aeb,_0x5f4006){const _0x2e7d71=_0x44f4,_0x2a8920={'PtCcJ':function(_0x332010,_0x3003ed,_0x3282ac,_0x289f5a){return _0x332010(_0x3003ed,_0x3282ac,_0x289f5a);},'lahXw':function(_0x15a34d,_0x168e3b){return _0x15a34d instanceof _0x168e3b;}};try{await _0x2a8920['PtCcJ'](createCloudProfile,_0x592aeb,undefined,{'settings':_0x5f4006}),warnCloudProfileSharedInOrg();}catch(_0x153e52){_0x2a8920[_0x2e7d71(0x23b)](_0x153e52,ApiError)&&_0x153e52[_0x2e7d71(0x255)]===0x199&&console['error'](_0x2e7d71(0x23a)+_0x592aeb+_0x2e7d71(0x1f9)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x592aeb));throw _0x153e52;}}async function captureEnvLessProfile(_0x563dc6,_0x9fe257,_0x54948f,_0x1dcc9e){const _0x5b54b9=_0x44f4,_0x4f7365={'tgggc':function(_0x32fa39,_0x1e26c8){return _0x32fa39+_0x1e26c8;},'ezoXW':function(_0x8da09c,_0x261f8e,_0x124c22,_0x216c3d){return _0x8da09c(_0x261f8e,_0x124c22,_0x216c3d);},'puDPS':function(_0x689a7d,_0x5872dd){return _0x689a7d instanceof _0x5872dd;},'ygrjB':function(_0x24b5ca,_0xdc792){return _0x24b5ca+_0xdc792;},'jjhiw':function(_0x1ffa9c,_0x1dadbe){return _0x1ffa9c>_0x1dadbe;}};if(!_0x54948f['yes']){const {capture:_0x4775ce}=await _0x53136d['prompt']([{'type':_0x5b54b9(0x256),'name':'capture','message':_0x5b54b9(0x208),'default':!![]}]);if(!_0x4775ce)return _0x1dcc9e?.[_0x5b54b9(0x1ea)]('profile.add.autoRouteSkipped',{'reason':'user_declined','profileName':_0x563dc6}),console['error'](_0x4f7365['tgggc']('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.')),![];}const _0x1f3ded={};if(_0x54948f[_0x5b54b9(0x23d)])for(const _0x65d4f5 of _0x54948f['setupHeader']){const _0x4bb153=_0x65d4f5[_0x5b54b9(0x205)](':');if(_0x4bb153===-0x1)continue;_0x1f3ded[_0x65d4f5[_0x5b54b9(0x1e8)](0x0,_0x4bb153)[_0x5b54b9(0x268)]()]=_0x65d4f5[_0x5b54b9(0x1e8)](_0x4f7365['tgggc'](_0x4bb153,0x1))[_0x5b54b9(0x268)]();}const _0x119963={'baseUrl':_0x9fe257};Object[_0x5b54b9(0x202)](_0x1f3ded)[_0x5b54b9(0x21a)]>0x0&&(_0x119963['setupHeaders']=_0x1f3ded);let _0x586e40;try{_0x586e40=await _0x4f7365[_0x5b54b9(0x1e0)](createCloudProfile,_0x563dc6,undefined,{'settings':_0x119963}),warnCloudProfileSharedInOrg();}catch(_0x16f4d7){_0x4f7365[_0x5b54b9(0x230)](_0x16f4d7,ApiError)&&_0x16f4d7[_0x5b54b9(0x255)]===0x199&&console[_0x5b54b9(0x259)](_0x4f7365['ygrjB'](_0x5b54b9(0x23a)+_0x563dc6+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x563dc6));throw _0x16f4d7;}return await manualBrowserLogin(_0x586e40,{'key':'','domains':[_0x9fe257],'setupHeaders':_0x4f7365[_0x5b54b9(0x254)](Object[_0x5b54b9(0x202)](_0x1f3ded)[_0x5b54b9(0x21a)],0x0)?_0x1f3ded:undefined}),console['log'](_0x4f7365[_0x5b54b9(0x262)](_0x5b54b9(0x24f)+_0x563dc6+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a',_0x5b54b9(0x214)+_0x563dc6)),await sweepOrphansBestEffort(_0x563dc6),_0x1dcc9e?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':null,'profileName':_0x563dc6}),!![];}export async function addEnv(_0x571288,_0x49a6ba={},_0xd2a9d4){const _0x2e0b8a=_0x44f4,_0x46de32={'MYUKK':function(_0x11ca6d,_0x10b10b){return _0x11ca6d+_0x10b10b;},'MZOxD':function(_0x538d0,_0x1500cc){return _0x538d0+_0x1500cc;},'zwukQ':function(_0x142f70,_0x591209){return _0x142f70+_0x591209;},'LJSmP':function(_0x1d53b7,_0x174524){return _0x1d53b7+_0x174524;},'eqsiv':_0x2e0b8a(0x26c),'opmWJ':'for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','jIJSB':_0x2e0b8a(0x1f1),'vcbka':_0x2e0b8a(0x241),'CmYSf':_0x2e0b8a(0x234),'vXtMN':function(_0x652215,_0x578f8e){return _0x652215===_0x578f8e;},'xKQcY':function(_0x14c823,_0x4c467f){return _0x14c823!==_0x4c467f;},'enLJe':_0x2e0b8a(0x25b),'lkvPB':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','KWDgD':_0x2e0b8a(0x248),'XbjSP':function(_0x55b181,_0x4f3554){return _0x55b181>_0x4f3554;},'WROUh':function(_0x1719ab,_0x3fc10c,_0xe6be76,_0x1c8135,_0x414da0){return _0x1719ab(_0x3fc10c,_0xe6be76,_0x1c8135,_0x414da0);},'CKDqw':function(_0x2149ac,_0x9dd86,_0x5e4ea8,_0x1f636d,_0x2a6912){return _0x2149ac(_0x9dd86,_0x5e4ea8,_0x1f636d,_0x2a6912);},'VCUhH':_0x2e0b8a(0x1ec),'PMtuw':function(_0x365616,_0x464982){return _0x365616(_0x464982);},'JHVmA':function(_0x13b195,_0x15d316){return _0x13b195+_0x15d316;},'cfuKh':function(_0x4a7bef,_0x2bf870){return _0x4a7bef(_0x2bf870);},'eTBHR':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','RsIkd':_0x2e0b8a(0x20c),'UVipJ':_0x2e0b8a(0x1e9),'mzRrd':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','UcPou':function(_0x292b9,_0x15cccc){return _0x292b9||_0x15cccc;},'SLSqz':function(_0x43d167,_0x167df2){return _0x43d167(_0x167df2);},'BWhXw':_0x2e0b8a(0x1fe),'vmyRu':_0x2e0b8a(0x212),'htvAR':function(_0x292993,_0x4907ef){return _0x292993===_0x4907ef;},'dUDqX':function(_0x3c4051,_0x19febe){return _0x3c4051===_0x19febe;},'uQrvB':'continue','ZfwJg':function(_0x533cb4,_0x75722c){return _0x533cb4(_0x75722c);}};_0x49a6ba['ci']&&(console['error'](_0x46de32['MYUKK'](_0x46de32['MZOxD'](_0x46de32['zwukQ'](_0x46de32[_0x2e0b8a(0x206)](_0x46de32['eqsiv']+_0x46de32[_0x2e0b8a(0x257)],'\x0a')+_0x46de32[_0x2e0b8a(0x22e)]+_0x2e0b8a(0x228),'\x0a'),_0x46de32[_0x2e0b8a(0x261)]),_0x46de32['CmYSf'])),process['exit'](0x1));const _0x1cc29b={};if(_0x49a6ba['setupHeader'])for(const _0x433848 of _0x49a6ba[_0x2e0b8a(0x23d)]){const _0x31075d=_0x433848[_0x2e0b8a(0x205)](':');if(_0x46de32[_0x2e0b8a(0x23c)](_0x31075d,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x433848+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x18d399=_0x433848[_0x2e0b8a(0x1e8)](0x0,_0x31075d)['trim'](),_0x37494f=_0x433848[_0x2e0b8a(0x1e8)](_0x31075d+0x1)[_0x2e0b8a(0x268)]();_0x1cc29b[_0x18d399]=_0x37494f;}if(_0x46de32['xKQcY'](_0x49a6ba['cdpEndpoint'],undefined)&&_0x49a6ba['cdpEndpoint'][_0x2e0b8a(0x268)]()==='')throw new Error(_0x46de32[_0x2e0b8a(0x260)]);if(_0x49a6ba['cdpEndpoint']&&_0x49a6ba['url'])throw new Error(_0x46de32[_0x2e0b8a(0x251)]);const _0x453ea6=Boolean(_0x49a6ba['cdpEndpoint']),_0x3ee269=isInteractive();if(!_0x3ee269&&!_0x49a6ba[_0x2e0b8a(0x224)]&&!_0x453ea6&&!_0x49a6ba['skipAuth'])throw new Error(_0x46de32['KWDgD']);if(_0x453ea6){const _0x5d1007=_0x49a6ba[_0x2e0b8a(0x25f)];console[_0x2e0b8a(0x21c)](_0x2e0b8a(0x264)),console[_0x2e0b8a(0x21c)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x5d1007);const _0x198a3b={'cdpEndpoint':_0x5d1007,'isElectron':!![]};_0x46de32['XbjSP'](Object[_0x2e0b8a(0x202)](_0x1cc29b)[_0x2e0b8a(0x21a)],0x0)&&(_0x198a3b['setupHeaders']=_0x1cc29b);await createUnconfiguredCloudProfile(_0x571288,_0x198a3b);try{_0x46de32[_0x2e0b8a(0x1ee)](setProfileOverride,process['cwd'](),_0x571288,'cdpEndpoint',_0x5d1007),_0x46de32[_0x2e0b8a(0x1ed)](setProfileOverride,process[_0x2e0b8a(0x235)](),_0x571288,_0x46de32[_0x2e0b8a(0x245)],!![]);}catch(_0x23fe8d){console[_0x2e0b8a(0x259)](_0x2e0b8a(0x225)+(_0x23fe8d instanceof Error?_0x23fe8d['message']:_0x46de32[_0x2e0b8a(0x265)](String,_0x23fe8d)));}console[_0x2e0b8a(0x21c)](_0x2e0b8a(0x229)+_0x571288+_0x2e0b8a(0x1e3)),await sweepOrphansBestEffort(_0x571288),await markActive(_0x571288);return;}if(_0x49a6ba['skipAuth']){const _0x511e12={};_0x49a6ba['url']&&(_0x511e12[_0x2e0b8a(0x1e9)]=_0x49a6ba['url']);_0x46de32['XbjSP'](Object[_0x2e0b8a(0x202)](_0x1cc29b)['length'],0x0)&&(_0x511e12[_0x2e0b8a(0x216)]=_0x1cc29b);await createUnconfiguredCloudProfile(_0x571288,_0x511e12),console['log'](_0x46de32[_0x2e0b8a(0x1f7)](_0x2e0b8a(0x20a)+_0x571288+_0x2e0b8a(0x204),_0x2e0b8a(0x23e)+_0x571288+'`\x20again\x20without\x20--skip-auth.')),await sweepOrphansBestEffort(_0x571288),await _0x46de32['cfuKh'](markActive,_0x571288);return;}if(_0x49a6ba['url']){const _0x208e89=_0x49a6ba['url'],_0x5881fb=await _0x46de32[_0x2e0b8a(0x210)](checkUrlReachability,_0x208e89);if(!_0x5881fb['ok']&&!_0x49a6ba[_0x2e0b8a(0x24c)])throw new Error('Could\x20not\x20reach\x20'+_0x208e89+':\x20'+_0x5881fb[_0x2e0b8a(0x259)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x5881fb['ok']&&_0x49a6ba['force']&&console['log'](_0x2e0b8a(0x232)+_0x208e89+':\x20'+_0x5881fb[_0x2e0b8a(0x259)]+_0x2e0b8a(0x221));}else{console[_0x2e0b8a(0x21c)]('\x0a🌐\x20Profile\x20Setup\x0a'),console[_0x2e0b8a(0x21c)](_0x46de32[_0x2e0b8a(0x203)]),console[_0x2e0b8a(0x21c)]('\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a');let _0x3084f0='',_0x30043a=![];while(!![]){const _0x588d52=await _0x53136d[_0x2e0b8a(0x223)]([{'type':_0x46de32[_0x2e0b8a(0x26d)],'name':_0x46de32[_0x2e0b8a(0x236)],'message':_0x30043a?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':_0x46de32[_0x2e0b8a(0x21b)],'default':_0x46de32['UcPou'](_0x3084f0,'http://localhost:3000')}]);_0x3084f0=_0x588d52[_0x2e0b8a(0x1e9)];const _0xecabb7=await _0x46de32[_0x2e0b8a(0x240)](checkUrlReachability,_0x3084f0);if(_0xecabb7['ok'])break;const _0x47aa19=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x3084f0),_0x2bc912=_0xecabb7['isProtocolError']&&!_0x47aa19,_0x1985aa=_0x2bc912?'http://'+_0x3084f0:null;_0x30043a=!![],console[_0x2e0b8a(0x21c)](_0x2e0b8a(0x1e2)+_0x3084f0+':\x20'+_0xecabb7[_0x2e0b8a(0x259)]);_0x1985aa&&console[_0x2e0b8a(0x21c)](_0x2e0b8a(0x22f)+_0x1985aa+'?');const {action:_0x5ba694}=await _0x53136d['prompt']([{'type':_0x2e0b8a(0x1f5),'name':_0x2e0b8a(0x25a),'message':_0x2e0b8a(0x213),'choices':[..._0x1985aa?[{'name':_0x2e0b8a(0x25e)+_0x1985aa,'value':_0x46de32['BWhXw']}]:[],{'name':'Enter\x20a\x20different\x20URL','value':_0x46de32['vmyRu']},{'name':'Continue\x20anyway','value':_0x2e0b8a(0x252)}]}]);if(_0x46de32[_0x2e0b8a(0x1e6)](_0x5ba694,_0x46de32['BWhXw'])&&_0x1985aa){_0x3084f0=_0x1985aa;const _0xd5fc4a=await checkUrlReachability(_0x3084f0);if(_0xd5fc4a['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x3084f0+':\x20'+_0xd5fc4a[_0x2e0b8a(0x259)]);}else{if(_0x46de32['dUDqX'](_0x5ba694,_0x46de32['uQrvB']))break;}}_0x49a6ba={..._0x49a6ba,'url':_0x3084f0};}let _0x151921=![];try{_0x151921=await tryAutoRouteCloudProfile(_0x571288,_0x49a6ba['url'],_0x49a6ba,_0x3ee269,_0xd2a9d4);}catch(_0x5b5efa){console['error'](_0x2e0b8a(0x1ef)+_0x571288+_0x2e0b8a(0x233)+(_0x5b5efa instanceof Error?_0x5b5efa['message']:String(_0x5b5efa))),process[_0x2e0b8a(0x244)](0x1);}!_0x151921&&process[_0x2e0b8a(0x244)](0x1),await _0x46de32[_0x2e0b8a(0x267)](markActive,_0x571288);}
@@ -1 +1 @@
1
- (function(_0x23795c,_0x3cbeb3){var _0x52ae33=_0x2cf2,_0x5c6c48=_0x23795c();while(!![]){try{var _0x3afbe3=-parseInt(_0x52ae33(0x8b))/0x1*(parseInt(_0x52ae33(0x8a))/0x2)+-parseInt(_0x52ae33(0x84))/0x3+parseInt(_0x52ae33(0x91))/0x4*(-parseInt(_0x52ae33(0x85))/0x5)+parseInt(_0x52ae33(0x80))/0x6*(parseInt(_0x52ae33(0x86))/0x7)+-parseInt(_0x52ae33(0x90))/0x8+parseInt(_0x52ae33(0x87))/0x9*(parseInt(_0x52ae33(0x8f))/0xa)+-parseInt(_0x52ae33(0x8d))/0xb*(-parseInt(_0x52ae33(0x8e))/0xc);if(_0x3afbe3===_0x3cbeb3)break;else _0x5c6c48['push'](_0x5c6c48['shift']());}catch(_0x584597){_0x5c6c48['push'](_0x5c6c48['shift']());}}}(_0x3a82,0xc2651));export async function authEncrypt(_0x4ac325){var _0x49fd5e=_0x2cf2,_0x25e53d={'PMaMD':function(_0x4fc0d9,_0x4534c5){return _0x4fc0d9+_0x4534c5;},'ylJRV':_0x49fd5e(0x88),'eWmHD':_0x49fd5e(0x82)};console['error'](_0x25e53d[_0x49fd5e(0x81)](_0x25e53d['PMaMD']('ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a'+_0x49fd5e(0x8c)+'\x0a',_0x49fd5e(0x83))+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'\x0a'+_0x25e53d['ylJRV'],_0x25e53d[_0x49fd5e(0x92)])),process[_0x49fd5e(0x89)](0x1);}function _0x2cf2(_0x58bf7c,_0x41d4f4){_0x58bf7c=_0x58bf7c-0x80;var _0x3a826b=_0x3a82();var _0x2cf21b=_0x3a826b[_0x58bf7c];return _0x2cf21b;}function _0x3a82(){var _0x1ee158=['\x20\x20https://docs.ranger.net/main/concepts/profiles','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','1765725VZZFXV','5uQeOxN','21OeqZbD','401553CQafvU','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','exit','2pVZzrC','1495609NJHpdk','session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','132lhKoij','3131532GXXUnL','90pZgMcr','4826736qMpqmk','2312428MDgVRa','eWmHD','1057578wTAIuN','PMaMD'];_0x3a82=function(){return _0x1ee158;};return _0x3a82();}
1
+ function _0x509a(_0x4ea1cb,_0x585b62){_0x4ea1cb=_0x4ea1cb-0x182;var _0x342b09=_0x342b();var _0x509a4e=_0x342b09[_0x4ea1cb];return _0x509a4e;}(function(_0x5d6426,_0x1e23ca){var _0x5608ba=_0x509a,_0x1ac725=_0x5d6426();while(!![]){try{var _0x126ab8=parseInt(_0x5608ba(0x184))/0x1+parseInt(_0x5608ba(0x192))/0x2*(-parseInt(_0x5608ba(0x185))/0x3)+parseInt(_0x5608ba(0x18b))/0x4+parseInt(_0x5608ba(0x189))/0x5*(-parseInt(_0x5608ba(0x18d))/0x6)+parseInt(_0x5608ba(0x187))/0x7*(-parseInt(_0x5608ba(0x191))/0x8)+parseInt(_0x5608ba(0x18a))/0x9+-parseInt(_0x5608ba(0x186))/0xa*(-parseInt(_0x5608ba(0x183))/0xb);if(_0x126ab8===_0x1e23ca)break;else _0x1ac725['push'](_0x1ac725['shift']());}catch(_0x16f905){_0x1ac725['push'](_0x1ac725['shift']());}}}(_0x342b,0xbaeef));function _0x342b(){var _0x188711=['9345519BfvgEv','2243056gLlxsG','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','6NapixU','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','DSeZU','SrWCU','8YmUMYh','14tyyUBn','error','165zSPBNn','1271210iEpeAK','50253eJYRcv','15490gHkdSr','6167546DpJCwX','\x20\x20https://docs.ranger.net/main/concepts/profiles','5647930IrLtxY'];_0x342b=function(){return _0x188711;};return _0x342b();}export async function authEncrypt(_0x190b6e){var _0x56fb27=_0x509a,_0x5cae2a={'SrWCU':function(_0x146e5b,_0x59f256){return _0x146e5b+_0x59f256;},'DSeZU':function(_0x1be868,_0x4be391){return _0x1be868+_0x4be391;},'dLiHk':'ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','aLrkZ':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','cmhuR':_0x56fb27(0x18e),'lVaZd':_0x56fb27(0x18c)};console[_0x56fb27(0x182)](_0x5cae2a[_0x56fb27(0x190)](_0x5cae2a['SrWCU'](_0x5cae2a[_0x56fb27(0x18f)](_0x5cae2a['dLiHk']+_0x5cae2a['aLrkZ']+'\x0a'+_0x5cae2a['cmhuR']+_0x5cae2a['lVaZd'],'\x0a'),'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a'),_0x56fb27(0x188))),process['exit'](0x1);}
@@ -1 +1 @@
1
- function _0x3137(_0x1bc46a,_0x4f0409){_0x1bc46a=_0x1bc46a-0x15f;const _0x323c9d=_0x323c();let _0x3137ea=_0x323c9d[_0x1bc46a];return _0x3137ea;}const _0x31edde=_0x3137;(function(_0x2f1cdc,_0x200645){const _0x32d8e7=_0x3137,_0x3fc53c=_0x2f1cdc();while(!![]){try{const _0x2af653=parseInt(_0x32d8e7(0x194))/0x1+-parseInt(_0x32d8e7(0x192))/0x2*(-parseInt(_0x32d8e7(0x169))/0x3)+-parseInt(_0x32d8e7(0x164))/0x4*(parseInt(_0x32d8e7(0x198))/0x5)+parseInt(_0x32d8e7(0x175))/0x6*(parseInt(_0x32d8e7(0x168))/0x7)+parseInt(_0x32d8e7(0x16b))/0x8*(-parseInt(_0x32d8e7(0x16c))/0x9)+-parseInt(_0x32d8e7(0x16a))/0xa*(parseInt(_0x32d8e7(0x197))/0xb)+parseInt(_0x32d8e7(0x19a))/0xc*(parseInt(_0x32d8e7(0x162))/0xd);if(_0x2af653===_0x200645)break;else _0x3fc53c['push'](_0x3fc53c['shift']());}catch(_0x1db2d8){_0x3fc53c['push'](_0x3fc53c['shift']());}}}(_0x323c,0xb583c));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x31edde(0x16f),'feature-tracker',_0x31edde(0x17a),'e2e-test-recommender'],opencodePluginName=_0x31edde(0x179);function parseJsonc(_0xb74690){const _0x1f288d=_0x31edde,_0x5aed1a=_0xb74690['replace'](/\/\*[\s\S]*?\*\//g,''),_0x4275e4=_0x5aed1a['replace'](/^\s*\/\/.*$/gm,''),_0x5bb850=_0x4275e4[_0x1f288d(0x163)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x5bb850);}async function removeOpencodePluginConfig(_0x36e79d){const _0x3b81bb=_0x31edde,_0x311a51={'rrOON':function(_0x421212,_0x30e19a){return _0x421212!==_0x30e19a;},'nUgft':_0x3b81bb(0x186),'MusiB':_0x3b81bb(0x17b),'HpUTO':function(_0x372a6d,_0x392315){return _0x372a6d===_0x392315;},'lnaKa':function(_0x413be4,_0x59f173){return _0x413be4+_0x59f173;}};if(!existsSync(_0x36e79d))return![];let _0x39bd8c;try{const _0x51a77c=await readFile(_0x36e79d,_0x311a51['MusiB']);_0x39bd8c=parseJsonc(_0x51a77c);}catch{return![];}const _0xc652b=Array[_0x3b81bb(0x18f)](_0x39bd8c['plugin'])?_0x39bd8c['plugin']:[];if(_0xc652b['length']===0x0)return![];const _0x4f3dfb=_0xc652b[_0x3b81bb(0x189)](_0x183265=>{const _0xbd3c5b=_0x3b81bb;if(_0x311a51[_0xbd3c5b(0x183)](typeof _0x183265,_0x311a51['nUgft']))return!![];return _0x183265!==opencodePluginName;});if(_0x311a51['HpUTO'](_0x4f3dfb[_0x3b81bb(0x18b)],_0xc652b[_0x3b81bb(0x18b)]))return![];return _0x4f3dfb[_0x3b81bb(0x18b)]===0x0?delete _0x39bd8c[_0x3b81bb(0x185)]:_0x39bd8c[_0x3b81bb(0x185)]=_0x4f3dfb,await writeFile(_0x36e79d,_0x311a51['lnaKa'](JSON[_0x3b81bb(0x18d)](_0x39bd8c,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x123e6f){const _0x4fbee0=_0x31edde,_0xc105d7={'rUsXE':function(_0x2476bb,_0x1401f9){return _0x2476bb(_0x1401f9);},'NoWKL':function(_0x39ccfc,_0x313916){return _0x39ccfc===_0x313916;},'VyvhM':_0x4fbee0(0x18e),'nVUWe':function(_0x71736a){return _0x71736a();},'CiVkO':function(_0x53bb05,_0x5e88ae){return _0x53bb05===_0x5e88ae;},'HGrPb':_0x4fbee0(0x173),'NTDlh':_0x4fbee0(0x187)};return new Promise(_0x588b5a=>{const _0x235e55=_0x4fbee0,_0xbce679=[_0x235e55(0x185),'uninstall',_0x235e55(0x180)];_0x123e6f&&_0xbce679[_0x235e55(0x165)]('--scope',_0x123e6f);const _0x4892ff=spawn('claude',_0xbce679,{'stdio':[_0xc105d7['VyvhM'],_0xc105d7['VyvhM'],_0xc105d7['VyvhM']],'cwd':_0x123e6f?_0xc105d7['nVUWe'](getProjectRoot):undefined,'shell':_0xc105d7[_0x235e55(0x196)](process['platform'],_0xc105d7[_0x235e55(0x16e)])});_0x4892ff['on'](_0xc105d7[_0x235e55(0x177)],_0x3cbd33=>{const _0x2a8484=_0x235e55;_0xc105d7[_0x2a8484(0x17e)](_0x588b5a,_0xc105d7[_0x2a8484(0x190)](_0x3cbd33,0x0));}),_0x4892ff['on']('error',()=>{_0x588b5a(![]);});});}function _0x323c(){const _0x5ea634=['stringify','ignore','isArray','NoWKL','✓\x20Removed\x20stored\x20credentials','2RpdKhn','mNzlU','804769xFyNmI','trailhead','CiVkO','5816129tlsLVX','25IuEvEJ','✓\x20Removed\x20user\x20skill:\x20','24srTHaH','claude','FpiEV','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','user','3611894aGNjMS','replace','231004bvLDxm','push','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','log','2807gcGgqE','1077213gnKvuh','10UfwWXn','1308520sjdXBw','54aKGyBK','platform','HGrPb','ranger','cpvJV','marketplace','xCXgR','win32','QMMiV','12312fQbMzU','DvLSy','NTDlh','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','@ranger-testing/opencode-plugin','bug-bash','utf-8','kHjnM','opencode.json','rUsXE','UKlnW','ranger@trailhead','YuYet','xwdvO','rrOON','project','plugin','string','close','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','filter','hCpHQ','length','Nothing\x20to\x20clean\x20up.\x0a'];_0x323c=function(){return _0x5ea634;};return _0x323c();}async function removeMarketplace(){const _0x2a2167=_0x31edde,_0xb47f03={'hCpHQ':function(_0x183e1f,_0x3065a1){return _0x183e1f(_0x3065a1);},'eQVYO':function(_0x5c7163,_0x377bd1,_0xda03b4,_0x5d8f75){return _0x5c7163(_0x377bd1,_0xda03b4,_0x5d8f75);},'jggEF':_0x2a2167(0x171),'tXcba':_0x2a2167(0x18e),'BPVdx':_0x2a2167(0x173),'gKOQe':_0x2a2167(0x187)};return new Promise(_0x10f8c0=>{const _0x176b37=_0x2a2167,_0x26e2f3=_0xb47f03['eQVYO'](spawn,_0x176b37(0x19b),['plugin',_0xb47f03['jggEF'],'remove',_0x176b37(0x195)],{'stdio':[_0x176b37(0x18e),_0x176b37(0x18e),_0xb47f03['tXcba']],'shell':process[_0x176b37(0x16d)]===_0xb47f03['BPVdx']});_0x26e2f3['on'](_0xb47f03['gKOQe'],_0x30477b=>{_0x10f8c0(_0x30477b===0x0);}),_0x26e2f3['on']('error',()=>{const _0xb84dc8=_0x176b37;_0xb47f03[_0xb84dc8(0x18a)](_0x10f8c0,![]);});});}export async function clean(){const _0x165ff7=_0x31edde,_0x190281={'QMMiV':_0x165ff7(0x166),'yDRoc':function(_0x52ce61){return _0x52ce61();},'mNzlU':function(_0x551e5b,_0x3b1bd8){return _0x551e5b(_0x3b1bd8);},'kHjnM':function(_0x3e7096,_0x39a877,_0x3dcee9){return _0x3e7096(_0x39a877,_0x3dcee9);},'xwdvO':function(_0x1ee607,_0x3e2934){return _0x1ee607(_0x3e2934);},'DvLSy':function(_0x499bca,_0x5e32a8,_0xb17f4c){return _0x499bca(_0x5e32a8,_0xb17f4c);},'UKlnW':'project','sIjrd':function(_0x52df19,_0x14b16b){return _0x52df19(_0x14b16b);},'FpiEV':function(_0x49e77f,_0x146ba3){return _0x49e77f(_0x146ba3);},'YuYet':_0x165ff7(0x161),'gZJVk':function(_0xbd58c9,_0x103848,_0x2daab3){return _0xbd58c9(_0x103848,_0x2daab3);},'QBHFQ':function(_0x3cd201,_0x7a448d,_0x5fe71a){return _0x3cd201(_0x7a448d,_0x5fe71a);},'xCXgR':function(_0x128692,_0x20569e,_0x471eee){return _0x128692(_0x20569e,_0x471eee);},'cDETy':function(_0x318528,_0x4d347b){return _0x318528(_0x4d347b);},'LGAmi':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','cpvJV':_0x165ff7(0x178)};console['log'](_0x190281[_0x165ff7(0x174)]);let _0x90b263=![];try{await _0x190281['yDRoc'](deleteAllCredentials),console[_0x165ff7(0x167)](_0x165ff7(0x191)),_0x90b263=!![];}catch{}const _0x58cfcb=getCacheFile();_0x190281[_0x165ff7(0x193)](existsSync,_0x58cfcb)&&(await _0x190281['mNzlU'](rm,_0x58cfcb),_0x90b263=!![]);const _0x3f013b=getRangerDir();_0x190281['mNzlU'](existsSync,_0x3f013b)&&(await rm(_0x3f013b,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x90b263=!![]);const _0x357679=getProjectSkillsDir();for(const _0x39695c of skillsToRemove){const _0x5699c2=_0x190281[_0x165ff7(0x17c)](join,_0x357679,_0x39695c);_0x190281[_0x165ff7(0x182)](existsSync,_0x5699c2)&&(await rm(_0x5699c2,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x39695c),_0x90b263=!![]);}const _0x4b382b=_0x190281['yDRoc'](getUserSkillsDir);for(const _0x377060 of skillsToRemove){const _0x5dfc12=join(_0x4b382b,_0x377060);existsSync(_0x5dfc12)&&(await _0x190281[_0x165ff7(0x176)](rm,_0x5dfc12,{'recursive':!![]}),console[_0x165ff7(0x167)](_0x165ff7(0x199)+_0x377060),_0x90b263=!![]);}const _0x23fa77=_0x190281[_0x165ff7(0x193)](getOpencodeSkillsDir,_0x190281['UKlnW']);for(const _0x1e2fe4 of skillsToRemove){const _0x5a9983=join(_0x23fa77,_0x1e2fe4);_0x190281['sIjrd'](existsSync,_0x5a9983)&&(await rm(_0x5a9983,{'recursive':!![]}),console[_0x165ff7(0x167)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x1e2fe4),_0x90b263=!![]);}const _0x2323df=_0x190281[_0x165ff7(0x15f)](getOpencodeSkillsDir,_0x190281['YuYet']);for(const _0x557aab of skillsToRemove){const _0x218657=_0x190281['gZJVk'](join,_0x2323df,_0x557aab);existsSync(_0x218657)&&(await _0x190281['QBHFQ'](rm,_0x218657,{'recursive':!![]}),console['log'](_0x165ff7(0x160)+_0x557aab),_0x90b263=!![]);}const _0x317403=_0x190281[_0x165ff7(0x172)](join,_0x190281['cDETy'](getOpencodeConfigDir,_0x165ff7(0x184)),_0x165ff7(0x17d));await _0x190281['sIjrd'](removeOpencodePluginConfig,_0x317403)&&(console[_0x165ff7(0x167)](_0x190281['LGAmi']),_0x90b263=!![]);const _0x1d4e41=join(getOpencodeConfigDir(_0x190281[_0x165ff7(0x181)]),'opencode.json');await _0x190281[_0x165ff7(0x193)](removeOpencodePluginConfig,_0x1d4e41)&&(console[_0x165ff7(0x167)](_0x190281[_0x165ff7(0x170)]),_0x90b263=!![]);const _0x38e0ce=await uninstallClaudePlugin();_0x38e0ce&&(console[_0x165ff7(0x167)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x90b263=!![]);const _0x209699=await uninstallClaudePlugin(_0x190281[_0x165ff7(0x17f)]);_0x209699&&(console[_0x165ff7(0x167)](_0x165ff7(0x188)),_0x90b263=!![]);const _0x50f7e9=await removeMarketplace();_0x50f7e9&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x90b263=!![]),_0x90b263?console[_0x165ff7(0x167)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x165ff7(0x167)](_0x165ff7(0x18c));}
1
+ const _0x5dcc16=_0x32aa;(function(_0xb9eb23,_0x6052b3){const _0x5193a1=_0x32aa,_0x2c74fd=_0xb9eb23();while(!![]){try{const _0x3b920c=-parseInt(_0x5193a1(0x12b))/0x1+-parseInt(_0x5193a1(0x14a))/0x2*(-parseInt(_0x5193a1(0x149))/0x3)+-parseInt(_0x5193a1(0x124))/0x4*(parseInt(_0x5193a1(0x144))/0x5)+parseInt(_0x5193a1(0x11e))/0x6+parseInt(_0x5193a1(0x142))/0x7*(-parseInt(_0x5193a1(0x129))/0x8)+-parseInt(_0x5193a1(0x122))/0x9+-parseInt(_0x5193a1(0x12d))/0xa*(-parseInt(_0x5193a1(0x123))/0xb);if(_0x3b920c===_0x6052b3)break;else _0x2c74fd['push'](_0x2c74fd['shift']());}catch(_0x46eac0){_0x2c74fd['push'](_0x2c74fd['shift']());}}}(_0x8c44,0x59c80));import{rm,readFile,writeFile}from'fs/promises';function _0x8c44(){const _0x455bf5=['replace','40qhuTjf','eNyPj','151242JxstZx','wsHtv','12230ocATBx','utf-8','YFCKx','jEClk','HrtwW','dUXiE','mnlEb','yhwsw','TwIhY','--scope','marketplace','platform','close','✓\x20Removed\x20trailhead\x20marketplace','log','feature-tracker','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','AqFvr','ZYBsz','length','error','568211Emmzuu','ghwzF','70mMKpTo','user','ignore','plugin','QsXBz','727827uhisyG','4mIXzDn','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','✓\x20Removed\x20stored\x20credentials','MyToA','IWdsj','YkYrM','filter','bBpKI','project','stringify','win32','jHNTZ','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','AoXec','NnFMz','2206716bKWguR','Nothing\x20to\x20clean\x20up.\x0a','claude','Jsoph','5865345gwhxUa','7678OJvfev','37172zqxIBX','✓\x20Removed\x20user\x20skill:\x20','wJFcI','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'];_0x8c44=function(){return _0x455bf5;};return _0x8c44();}import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x5dcc16(0x13c),'bug-bash','e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function _0x32aa(_0x3eb85f,_0x270d17){_0x3eb85f=_0x3eb85f-0x11e;const _0x8c44b0=_0x8c44();let _0x32aaa9=_0x8c44b0[_0x3eb85f];return _0x32aaa9;}function parseJsonc(_0x2bd797){const _0x5f5234=_0x5dcc16,_0x631cb=_0x2bd797['replace'](/\/\*[\s\S]*?\*\//g,''),_0x198f88=_0x631cb[_0x5f5234(0x128)](/^\s*\/\/.*$/gm,''),_0x56d6e6=_0x198f88[_0x5f5234(0x128)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x56d6e6);}async function removeOpencodePluginConfig(_0x3e7cf8){const _0x2a519f=_0x5dcc16,_0x525a13={'LfcKp':'string','XqPwq':function(_0x597323,_0x326be5){return _0x597323!==_0x326be5;},'yhwsw':_0x2a519f(0x12e),'pBoNc':function(_0x8760d,_0x4ebb45){return _0x8760d===_0x4ebb45;},'TwIhY':function(_0x402e62,_0x11f826,_0x22107e){return _0x402e62(_0x11f826,_0x22107e);}};if(!existsSync(_0x3e7cf8))return![];let _0x1eb214;try{const _0x3c1230=await readFile(_0x3e7cf8,_0x525a13[_0x2a519f(0x134)]);_0x1eb214=parseJsonc(_0x3c1230);}catch{return![];}const _0x35d8d5=Array['isArray'](_0x1eb214['plugin'])?_0x1eb214['plugin']:[];if(_0x35d8d5[_0x2a519f(0x140)]===0x0)return![];const _0x478f04=_0x35d8d5[_0x2a519f(0x150)](_0x109439=>{if(typeof _0x109439!==_0x525a13['LfcKp'])return!![];return _0x525a13['XqPwq'](_0x109439,opencodePluginName);});if(_0x478f04[_0x2a519f(0x140)]===_0x35d8d5['length'])return![];return _0x525a13['pBoNc'](_0x478f04['length'],0x0)?delete _0x1eb214[_0x2a519f(0x147)]:_0x1eb214[_0x2a519f(0x147)]=_0x478f04,await _0x525a13[_0x2a519f(0x135)](writeFile,_0x3e7cf8,JSON[_0x2a519f(0x153)](_0x1eb214,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x39f299){const _0x4c1ac4=_0x5dcc16,_0x444160={'wtEQX':function(_0x50f27f,_0x1fe6bf){return _0x50f27f(_0x1fe6bf);},'qDnft':'ranger@trailhead','HrtwW':_0x4c1ac4(0x136),'MyToA':_0x4c1ac4(0x120),'mnlEb':'win32','IWdsj':_0x4c1ac4(0x139)};return new Promise(_0x553940=>{const _0x355b7e=_0x4c1ac4,_0x5b7e01=[_0x355b7e(0x147),'uninstall',_0x444160['qDnft']];_0x39f299&&_0x5b7e01['push'](_0x444160[_0x355b7e(0x131)],_0x39f299);const _0x103d74=spawn(_0x444160[_0x355b7e(0x14d)],_0x5b7e01,{'stdio':['ignore',_0x355b7e(0x146),_0x355b7e(0x146)],'cwd':_0x39f299?getProjectRoot():undefined,'shell':process[_0x355b7e(0x138)]===_0x444160[_0x355b7e(0x133)]});_0x103d74['on'](_0x444160[_0x355b7e(0x14e)],_0x174266=>{_0x444160['wtEQX'](_0x553940,_0x174266===0x0);}),_0x103d74['on'](_0x355b7e(0x141),()=>{_0x444160['wtEQX'](_0x553940,![]);});});}async function removeMarketplace(){const _0x47f258=_0x5dcc16,_0x220ecc={'dUXiE':function(_0x591feb,_0x32d387,_0x1f3f3c,_0x2b6789){return _0x591feb(_0x32d387,_0x1f3f3c,_0x2b6789);},'ZYBsz':'claude','wJFcI':_0x47f258(0x137),'ghwzF':'trailhead','LoIEL':'ignore','FYjIf':_0x47f258(0x154),'wsHtv':_0x47f258(0x141)};return new Promise(_0x30d1e5=>{const _0x4cd5d4=_0x47f258,_0x4c3304={'PYHkn':function(_0x4dc63f,_0x5493ee){return _0x4dc63f(_0x5493ee);}},_0xed8a0d=_0x220ecc[_0x4cd5d4(0x132)](spawn,_0x220ecc[_0x4cd5d4(0x13f)],[_0x4cd5d4(0x147),_0x220ecc[_0x4cd5d4(0x126)],'remove',_0x220ecc[_0x4cd5d4(0x143)]],{'stdio':[_0x220ecc['LoIEL'],'ignore',_0x4cd5d4(0x146)],'shell':process['platform']===_0x220ecc['FYjIf']});_0xed8a0d['on'](_0x4cd5d4(0x139),_0x13cf1d=>{_0x4c3304['PYHkn'](_0x30d1e5,_0x13cf1d===0x0);}),_0xed8a0d['on'](_0x220ecc[_0x4cd5d4(0x12c)],()=>{_0x4c3304['PYHkn'](_0x30d1e5,![]);});});}export async function clean(){const _0x23149f=_0x5dcc16,_0x914fcb={'AqFvr':function(_0xee169c){return _0xee169c();},'jHNTZ':function(_0x1f8ade,_0x28fcde){return _0x1f8ade(_0x28fcde);},'AoXec':'✓\x20Removed\x20.ranger/\x20directory','QsXBz':function(_0xd6ef11){return _0xd6ef11();},'ikrdx':function(_0x4413ce,_0x26b31d,_0x3d42ad){return _0x4413ce(_0x26b31d,_0x3d42ad);},'bBpKI':function(_0x2c3022,_0x5a1ea9,_0x1d9148){return _0x2c3022(_0x5a1ea9,_0x1d9148);},'YFCKx':function(_0x24bc0f,_0x203a89,_0x2ec847){return _0x24bc0f(_0x203a89,_0x2ec847);},'Jsoph':'project','NnFMz':function(_0x5d35dc,_0x12d6ac){return _0x5d35dc(_0x12d6ac);},'wvjyj':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','jEClk':_0x23149f(0x156),'YkYrM':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','ZXSRV':_0x23149f(0x14b),'lRNjx':_0x23149f(0x13a),'eNyPj':'\x0a✅\x20Cleanup\x20complete!\x0a'};console['log'](_0x23149f(0x13d));let _0x551999=![];try{await _0x914fcb[_0x23149f(0x13e)](deleteAllCredentials),console[_0x23149f(0x13b)](_0x23149f(0x14c)),_0x551999=!![];}catch{}const _0x41f35d=_0x914fcb[_0x23149f(0x13e)](getCacheFile);existsSync(_0x41f35d)&&(await _0x914fcb['jHNTZ'](rm,_0x41f35d),_0x551999=!![]);const _0x3b7dd3=_0x914fcb['AqFvr'](getRangerDir);_0x914fcb['jHNTZ'](existsSync,_0x3b7dd3)&&(await rm(_0x3b7dd3,{'recursive':!![]}),console['log'](_0x914fcb[_0x23149f(0x157)]),_0x551999=!![]);const _0x339c0a=_0x914fcb[_0x23149f(0x148)](getProjectSkillsDir);for(const _0xb080dd of skillsToRemove){const _0x1f2afe=_0x914fcb['ikrdx'](join,_0x339c0a,_0xb080dd);existsSync(_0x1f2afe)&&(await rm(_0x1f2afe,{'recursive':!![]}),console[_0x23149f(0x13b)]('✓\x20Removed\x20project\x20skill:\x20'+_0xb080dd),_0x551999=!![]);}const _0x23c3b5=_0x914fcb[_0x23149f(0x13e)](getUserSkillsDir);for(const _0x3f9bae of skillsToRemove){const _0x7dbe22=_0x914fcb[_0x23149f(0x151)](join,_0x23c3b5,_0x3f9bae);existsSync(_0x7dbe22)&&(await _0x914fcb[_0x23149f(0x12f)](rm,_0x7dbe22,{'recursive':!![]}),console[_0x23149f(0x13b)](_0x23149f(0x125)+_0x3f9bae),_0x551999=!![]);}const _0x206f01=_0x914fcb[_0x23149f(0x155)](getOpencodeSkillsDir,_0x914fcb[_0x23149f(0x121)]);for(const _0x8ae34e of skillsToRemove){const _0x323565=join(_0x206f01,_0x8ae34e);_0x914fcb[_0x23149f(0x155)](existsSync,_0x323565)&&(await rm(_0x323565,{'recursive':!![]}),console[_0x23149f(0x13b)](_0x23149f(0x127)+_0x8ae34e),_0x551999=!![]);}const _0x5eac11=getOpencodeSkillsDir(_0x23149f(0x145));for(const _0x544400 of skillsToRemove){const _0x11137e=_0x914fcb[_0x23149f(0x12f)](join,_0x5eac11,_0x544400);_0x914fcb[_0x23149f(0x155)](existsSync,_0x11137e)&&(await rm(_0x11137e,{'recursive':!![]}),console[_0x23149f(0x13b)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x544400),_0x551999=!![]);}const _0x45aa6e=_0x914fcb[_0x23149f(0x12f)](join,_0x914fcb[_0x23149f(0x158)](getOpencodeConfigDir,_0x914fcb['Jsoph']),'opencode.json');await _0x914fcb['NnFMz'](removeOpencodePluginConfig,_0x45aa6e)&&(console['log'](_0x914fcb['wvjyj']),_0x551999=!![]);const _0x1bea66=join(getOpencodeConfigDir('user'),'opencode.json');await removeOpencodePluginConfig(_0x1bea66)&&(console[_0x23149f(0x13b)](_0x914fcb[_0x23149f(0x130)]),_0x551999=!![]);const _0x530487=await _0x914fcb['AqFvr'](uninstallClaudePlugin);_0x530487&&(console[_0x23149f(0x13b)](_0x914fcb[_0x23149f(0x14f)]),_0x551999=!![]);const _0x5424b5=await _0x914fcb['NnFMz'](uninstallClaudePlugin,_0x23149f(0x152));_0x5424b5&&(console['log'](_0x914fcb['ZXSRV']),_0x551999=!![]);const _0x19b3be=await removeMarketplace();_0x19b3be&&(console['log'](_0x914fcb['lRNjx']),_0x551999=!![]),_0x551999?console['log'](_0x914fcb[_0x23149f(0x12a)]):console['log'](_0x23149f(0x11f));}
@@ -1 +1 @@
1
- (function(_0xb969e4,_0x1b3fad){const _0x35b887=_0x29f0,_0x3fb292=_0xb969e4();while(!![]){try{const _0x496839=-parseInt(_0x35b887(0x13a))/0x1*(parseInt(_0x35b887(0x12c))/0x2)+parseInt(_0x35b887(0x147))/0x3*(parseInt(_0x35b887(0x138))/0x4)+-parseInt(_0x35b887(0x118))/0x5*(-parseInt(_0x35b887(0x130))/0x6)+-parseInt(_0x35b887(0x136))/0x7+parseInt(_0x35b887(0x142))/0x8+parseInt(_0x35b887(0x132))/0x9*(parseInt(_0x35b887(0x11d))/0xa)+parseInt(_0x35b887(0x128))/0xb;if(_0x496839===_0x1b3fad)break;else _0x3fb292['push'](_0x3fb292['shift']());}catch(_0x44d9b2){_0x3fb292['push'](_0x3fb292['shift']());}}}(_0x5319,0x2ed0c));import{existsSync}from'fs';function _0x29f0(_0x3f2836,_0x5059a7){_0x3f2836=_0x3f2836-0x116;const _0x5319ca=_0x5319();let _0x29f03e=_0x5319ca[_0x3f2836];return _0x29f03e;}import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseLocalValue(_0xa6a511,_0x46367f){const _0x11a0a5=_0x29f0,_0x443a66={'JvPHU':function(_0x312a31,_0x51fb4d){return _0x312a31===_0x51fb4d;},'TMFir':function(_0xa7f475,_0x2688ec){return _0xa7f475===_0x2688ec;}};if(BOOLEAN_KEYS[_0x11a0a5(0x13b)](_0xa6a511)){if(_0x443a66['JvPHU'](_0x46367f,'true'))return!![];if(_0x443a66[_0x11a0a5(0x14d)](_0x46367f,_0x11a0a5(0x14b)))return![];throw new Error(_0x11a0a5(0x149)+_0xa6a511+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x46367f;}function parseOverrideValue(_0x4c241f){const _0x2a674c=_0x29f0,_0x15747a={'IwRVt':function(_0x41220d,_0x2e8e67){return _0x41220d===_0x2e8e67;},'ZgNMU':_0x2a674c(0x133),'HBixm':function(_0x19bddc,_0x23b665){return _0x19bddc(_0x23b665);}};if(_0x15747a['IwRVt'](_0x4c241f,'true'))return!![];if(_0x15747a[_0x2a674c(0x145)](_0x4c241f,_0x2a674c(0x14b)))return![];if(_0x4c241f===_0x15747a[_0x2a674c(0x139)])return null;if(_0x4c241f===_0x2a674c(0x13d))return undefined;if(/^-?\d+$/[_0x2a674c(0x134)](_0x4c241f)){const _0xd39a53=_0x15747a['HBixm'](Number,_0x4c241f);if(Number['isSafeInteger'](_0xd39a53))return _0xd39a53;}if(/^-?\d+\.\d+$/['test'](_0x4c241f)){const _0x46c212=Number(_0x4c241f);if(!Number[_0x2a674c(0x146)](_0x46c212))return _0x46c212;}const _0x421a86=_0x4c241f['trim']();if(_0x421a86[_0x2a674c(0x124)]('{')&&_0x421a86[_0x2a674c(0x11f)]('}')||_0x421a86[_0x2a674c(0x124)]('[')&&_0x421a86[_0x2a674c(0x11f)](']'))try{return JSON['parse'](_0x421a86);}catch{}return _0x4c241f;}async function resolveProfileTarget(_0x27ad82){const _0x48ebc7=_0x29f0,_0x136c27={'MrHQC':function(_0x58d2f9,_0x375f0f){return _0x58d2f9(_0x375f0f);},'KuwTE':_0x48ebc7(0x135),'gbrui':_0x48ebc7(0x11e)},_0x2a0f58=_0x136c27['MrHQC'](existsSync,getEnvDir(_0x27ad82));let _0x3eae5a=![];try{const _0x5df513=await _0x136c27['MrHQC'](fetchCloudProfile,_0x27ad82);_0x3eae5a=_0x136c27[_0x48ebc7(0x12d)](Boolean,_0x5df513);}catch{}if(_0x3eae5a)return{'kind':_0x136c27['KuwTE'],'alsoExistsElsewhere':_0x2a0f58};if(_0x2a0f58)return{'kind':_0x136c27['gbrui'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x27ad82+_0x48ebc7(0x12b)+_0x27ad82);}function printDualExistsHint(_0x5540d4){const _0x52612c=_0x29f0;console[_0x52612c(0x137)](_0x52612c(0x12f)+_0x5540d4+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){const _0x494cec=_0x29f0;return process[_0x494cec(0x131)]();}async function loadEffectiveCloudSettings(_0x2809fd){const _0x38e9be=_0x29f0,_0x161dab={'lwOzA':function(_0x4dda21,_0x335b69){return _0x4dda21(_0x335b69);},'awwDM':function(_0xec064f,_0x51b1a3,_0x3a8bb7){return _0xec064f(_0x51b1a3,_0x3a8bb7);},'KCSNH':function(_0x2b004d,_0x17f13f,_0x5896be){return _0x2b004d(_0x17f13f,_0x5896be);}},_0x43dcd3=await _0x161dab['lwOzA'](fetchCloudProfile,_0x2809fd),_0x16b9d6=_0x161dab[_0x38e9be(0x148)](readProfileOverrides,getProjectPath(),_0x2809fd);return _0x161dab[_0x38e9be(0x141)](mergeCloudProfileSettings,_0x43dcd3?.[_0x38e9be(0x123)]??{},_0x16b9d6??undefined);}export async function configSet(_0x2047e5,_0x1a4a15,_0x5cbbf8){const _0x5b5ce9=_0x29f0,_0x10d0c4={'eFyZe':'cloud','DkCow':function(_0x30e77f,_0x5143db,_0x2c49f6,_0x1baec1,_0xeadbf6){return _0x30e77f(_0x5143db,_0x2c49f6,_0x1baec1,_0xeadbf6);},'hsGvt':function(_0x5ce4bc){return _0x5ce4bc();}},_0x8a3e2a=await resolveProfileTarget(_0x2047e5);if(_0x8a3e2a['kind']===_0x10d0c4['eFyZe']){if(_0x8a3e2a[_0x5b5ce9(0x127)])printDualExistsHint(_0x2047e5);const _0x2fe33c=parseOverrideValue(_0x5cbbf8);_0x10d0c4[_0x5b5ce9(0x11b)](setProfileOverride,_0x10d0c4['hsGvt'](getProjectPath),_0x2047e5,_0x1a4a15,_0x2fe33c),console[_0x5b5ce9(0x137)](_0x5b5ce9(0x122)+_0x1a4a15+_0x5b5ce9(0x143)+JSON[_0x5b5ce9(0x144)](_0x2fe33c)+_0x5b5ce9(0x116)+_0x2047e5+'\x22');return;}const _0x531a83=parseLocalValue(_0x1a4a15,_0x5cbbf8);_0x10d0c4[_0x5b5ce9(0x11b)](setProfileOverride,getProjectPath(),_0x2047e5,_0x1a4a15,_0x531a83),console['log']('Set\x20'+_0x1a4a15+'\x20=\x20'+_0x531a83+_0x5b5ce9(0x116)+_0x2047e5+'\x22');}export async function configGet(_0x468de3,_0x5ca046){const _0x144267=_0x29f0,_0x53f78a={'uLUCm':function(_0x2b5c7c,_0x49d1db){return _0x2b5c7c(_0x49d1db);},'QhUMW':function(_0x258acf,_0x2d1802){return _0x258acf===_0x2d1802;},'WeMup':function(_0x3f1d1f,_0x36c4f9,_0x56ec6b){return _0x3f1d1f(_0x36c4f9,_0x56ec6b);},'keOab':'object','ulrvY':function(_0x1181a3,_0x4639d8){return _0x1181a3===_0x4639d8;}},_0x459c83=await _0x53f78a[_0x144267(0x12e)](resolveProfileTarget,_0x468de3);if(_0x53f78a['QhUMW'](_0x459c83[_0x144267(0x129)],'cloud')){const _0x53114d=await loadEffectiveCloudSettings(_0x468de3),_0x3fb685=_0x53f78a['WeMup'](getNestedValue,_0x53114d,_0x5ca046);if(_0x53f78a['QhUMW'](_0x3fb685,undefined))console[_0x144267(0x137)]('(not\x20set)');else typeof _0x3fb685===_0x53f78a['keOab']?console[_0x144267(0x137)](JSON['stringify'](_0x3fb685,null,0x2)):console['log'](_0x3fb685);return;}const _0x30d1da=await loadSettings(_0x468de3),_0x21727b=getNestedValue(_0x30d1da,_0x5ca046);if(_0x53f78a[_0x144267(0x14e)](_0x21727b,undefined))console['log']('(not\x20set)');else _0x53f78a['ulrvY'](typeof _0x21727b,_0x53f78a[_0x144267(0x13f)])?console[_0x144267(0x137)](JSON[_0x144267(0x144)](_0x21727b,null,0x2)):console['log'](_0x21727b);}export async function configList(_0x48ffde){const _0x592652=_0x29f0,_0x972ffb={'fgUyA':function(_0x20d764,_0x5a86e6){return _0x20d764===_0x5a86e6;},'nNEDn':function(_0x39572d,_0x22d17c){return _0x39572d(_0x22d17c);},'dGFtp':function(_0x3d3f13,_0x498456){return _0x3d3f13(_0x498456);}},_0x43e2bc=await resolveProfileTarget(_0x48ffde);if(_0x972ffb[_0x592652(0x14c)](_0x43e2bc[_0x592652(0x129)],_0x592652(0x135))){const _0x53b87f=await _0x972ffb['nNEDn'](loadEffectiveCloudSettings,_0x48ffde);if(!_0x53b87f||Object[_0x592652(0x117)](_0x53b87f)['length']===0x0){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x48ffde+'\x22');return;}console[_0x592652(0x137)](JSON['stringify'](_0x53b87f,null,0x2));return;}const _0x4a3d0c=_0x972ffb['dGFtp'](getSettingsPath,_0x48ffde);if(!_0x972ffb[_0x592652(0x11a)](existsSync,_0x4a3d0c)){console[_0x592652(0x137)](_0x592652(0x120)+_0x48ffde+'\x22');return;}const _0x3a3893=await loadSettings(_0x48ffde),_0x2a623b=formatSettings(_0x3a3893);!_0x2a623b?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x48ffde+'\x22'):console[_0x592652(0x137)](_0x2a623b);}export async function configUnset(_0x271626,_0x189f3e){const _0x8d783a=_0x29f0,_0x568242={'lrZzS':function(_0x126503,_0xc3da5d){return _0x126503(_0xc3da5d);},'CuRUm':function(_0xd17c6d,_0x40709c,_0x344c99,_0xe02be9){return _0xd17c6d(_0x40709c,_0x344c99,_0xe02be9);},'xhoSv':function(_0x500822){return _0x500822();},'pkqJa':function(_0x4ce7d0,_0x5d0769,_0x6042e1){return _0x4ce7d0(_0x5d0769,_0x6042e1);}},_0x2e098c=await resolveProfileTarget(_0x271626);if(_0x2e098c[_0x8d783a(0x129)]===_0x8d783a(0x135)){if(_0x2e098c[_0x8d783a(0x127)])_0x568242[_0x8d783a(0x119)](printDualExistsHint,_0x271626);const _0x502c41=_0x568242['CuRUm'](unsetProfileOverride,_0x568242[_0x8d783a(0x14a)](getProjectPath),_0x271626,_0x189f3e);_0x502c41?console['log'](_0x8d783a(0x126)+_0x189f3e+_0x8d783a(0x116)+_0x271626+'\x22'):console['log']('Key\x20\x22'+_0x189f3e+'\x22\x20not\x20found');return;}const _0x193403=unsetProfileOverride(_0x568242['xhoSv'](getProjectPath),_0x271626,_0x189f3e);if(_0x193403){console['log']('Removed\x20'+_0x189f3e);return;}const _0x326fd2=await _0x568242['lrZzS'](loadSettings,_0x271626),_0x111cfc=_0x568242['pkqJa'](deleteNestedValue,_0x326fd2,_0x189f3e);_0x111cfc?console['log']('Key\x20\x22'+_0x189f3e+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x271626+_0x8d783a(0x13e)):console['log'](_0x8d783a(0x11c)+_0x189f3e+_0x8d783a(0x140));}export async function configReset(_0x54277d){const _0x206342=_0x29f0,_0x5c3a49={'bxgnO':function(_0x434fe1,_0x43782e){return _0x434fe1(_0x43782e);},'WVxSq':'cloud','jsOKd':function(_0x192add,_0x2de81a,_0x339e07){return _0x192add(_0x2de81a,_0x339e07);}},_0x21f6d4=await _0x5c3a49['bxgnO'](resolveProfileTarget,_0x54277d);if(_0x21f6d4[_0x206342(0x129)]===_0x5c3a49[_0x206342(0x125)]){_0x5c3a49[_0x206342(0x121)](resetProfileOverrides,getProjectPath(),_0x54277d),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x54277d+'\x22');return;}console[_0x206342(0x137)]('\x22'+_0x54277d+_0x206342(0x13c)+_0x54277d+_0x206342(0x12a));}function _0x5319(){const _0x4e707d=['DkCow','Key\x20\x22','119530BSJZnR','local','endsWith','No\x20configuration\x20set\x20for\x20\x22','jsOKd','Set\x20','settings','startsWith','WVxSq','Removed\x20','alsoExistsElsewhere','554950bBJqSO','kind','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','4GJEotZ','MrHQC','uLUCm','\x20\x20Note:\x20\x22','5358GSFlPy','cwd','189pRaaUq','null','test','cloud','2419277EBDYtz','log','1316hhPbWK','ZgNMU','116860vGrdqN','includes','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','undefined','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','keOab','\x22\x20not\x20found','KCSNH','1212224qFxeMo','\x20=\x20','stringify','IwRVt','isNaN','2127lMQdEe','awwDM','Invalid\x20value\x20for\x20','xhoSv','false','fgUyA','TMFir','QhUMW','\x20for\x20\x22','keys','475ntxstZ','lrZzS','dGFtp'];_0x5319=function(){return _0x4e707d;};return _0x5319();}
1
+ const _0x1f8028=_0x27c1;(function(_0x26eef4,_0x24d3cf){const _0x351284=_0x27c1,_0x469b56=_0x26eef4();while(!![]){try{const _0x30644e=-parseInt(_0x351284(0x110))/0x1+parseInt(_0x351284(0x112))/0x2*(parseInt(_0x351284(0x120))/0x3)+-parseInt(_0x351284(0x10b))/0x4*(parseInt(_0x351284(0x126))/0x5)+parseInt(_0x351284(0x106))/0x6+parseInt(_0x351284(0x111))/0x7*(-parseInt(_0x351284(0x115))/0x8)+-parseInt(_0x351284(0x11a))/0x9+parseInt(_0x351284(0x11b))/0xa;if(_0x30644e===_0x24d3cf)break;else _0x469b56['push'](_0x469b56['shift']());}catch(_0x452999){_0x469b56['push'](_0x469b56['shift']());}}}(_0xc4c2,0x289d9));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless',_0x1f8028(0x102),'forceLogin'];function parseLocalValue(_0x47a26b,_0x1797c0){const _0x1f6b31=_0x1f8028,_0x1c59ad={'QBIrs':_0x1f6b31(0xfb)};if(BOOLEAN_KEYS['includes'](_0x47a26b)){if(_0x1797c0==='true')return!![];if(_0x1797c0===_0x1c59ad['QBIrs'])return![];throw new Error(_0x1f6b31(0x119)+_0x47a26b+_0x1f6b31(0x12a));}return _0x1797c0;}function _0x27c1(_0x5105ff,_0x1a5539){_0x5105ff=_0x5105ff-0xf6;const _0xc4c284=_0xc4c2();let _0x27c1fb=_0xc4c284[_0x5105ff];return _0x27c1fb;}function _0xc4c2(){const _0x2950f6=['NIhsI','test','allowInsecureLocalhost','Profile\x20\x22','MaQfM','fhOaD','251460cFKqiO','kind','\x22\x20not\x20found','\x20for\x20\x22','cloud','1096692yMNHSz','true','isNaN','parse','local','11715cMnEKP','63RuWmSr','177494xQuRav','hvAZv','cYlvL','51328jIKPBx','log','trim','Removed\x20','Invalid\x20value\x20for\x20','419697ItZJrQ','2484750SEgoEo','No\x20configuration\x20set\x20for\x20\x22','object','hPZdq','BXGSo','9VzTDHm','cmvej','cwd','wTUHd','iWMBA','length','5scTYPX','qxCLV','awHss','gnVqo',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','MSiEP','endsWith','\x20=\x20','hbvhn','KZsqD','false','bNFIS','undefined','Key\x20\x22','(not\x20set)'];_0xc4c2=function(){return _0x2950f6;};return _0xc4c2();}function parseOverrideValue(_0x22190e){const _0xb4c9a1=_0x1f8028,_0x331cfc={'qjvBX':_0xb4c9a1(0x10c),'uCybJ':function(_0x501ed6,_0x379a7a){return _0x501ed6===_0x379a7a;},'BaxqD':'null','MNraZ':function(_0x568162,_0x578d22){return _0x568162(_0x578d22);}};if(_0x22190e===_0x331cfc['qjvBX'])return!![];if(_0x331cfc['uCybJ'](_0x22190e,'false'))return![];if(_0x22190e===_0x331cfc['BaxqD'])return null;if(_0x331cfc['uCybJ'](_0x22190e,_0xb4c9a1(0xfd)))return undefined;if(/^-?\d+$/['test'](_0x22190e)){const _0x4a46c4=_0x331cfc['MNraZ'](Number,_0x22190e);if(Number['isSafeInteger'](_0x4a46c4))return _0x4a46c4;}if(/^-?\d+\.\d+$/[_0xb4c9a1(0x101)](_0x22190e)){const _0x3e8355=Number(_0x22190e);if(!Number[_0xb4c9a1(0x10d)](_0x3e8355))return _0x3e8355;}const _0xea7480=_0x22190e[_0xb4c9a1(0x117)]();if(_0xea7480['startsWith']('{')&&_0xea7480[_0xb4c9a1(0xf7)]('}')||_0xea7480['startsWith']('[')&&_0xea7480[_0xb4c9a1(0xf7)](']'))try{return JSON[_0xb4c9a1(0x10e)](_0xea7480);}catch{}return _0x22190e;}async function resolveProfileTarget(_0x4dcc5e){const _0x4589a9=_0x1f8028,_0x2f7737={'qxCLV':function(_0x50826b,_0x2e32cd){return _0x50826b(_0x2e32cd);},'cYlvL':function(_0xe59228,_0x550577){return _0xe59228(_0x550577);},'BXGSo':_0x4589a9(0x10a)},_0x5b517b=existsSync(_0x2f7737[_0x4589a9(0x127)](getEnvDir,_0x4dcc5e));let _0x47b798=![];try{const _0x5dad00=await fetchCloudProfile(_0x4dcc5e);_0x47b798=_0x2f7737[_0x4589a9(0x114)](Boolean,_0x5dad00);}catch{}if(_0x47b798)return{'kind':_0x2f7737[_0x4589a9(0x11f)],'alsoExistsElsewhere':_0x5b517b};if(_0x5b517b)return{'kind':_0x4589a9(0x10f),'alsoExistsElsewhere':![]};throw new Error(_0x4589a9(0x103)+_0x4dcc5e+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x4dcc5e);}function printDualExistsHint(_0x4c3ade){console['log']('\x20\x20Note:\x20\x22'+_0x4c3ade+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){const _0x6ed8e7=_0x1f8028;return process[_0x6ed8e7(0x122)]();}async function loadEffectiveCloudSettings(_0x5c0827){const _0x379f32=_0x1f8028,_0x8ad572={'hbvhn':function(_0x28d65d,_0x2bccd3,_0x4155be){return _0x28d65d(_0x2bccd3,_0x4155be);},'jqBIr':function(_0x2d503a){return _0x2d503a();},'hPZdq':function(_0x56b6d0,_0x398d4f){return _0x56b6d0??_0x398d4f;}},_0x13c726=await fetchCloudProfile(_0x5c0827),_0x4b6945=_0x8ad572[_0x379f32(0xf9)](readProfileOverrides,_0x8ad572['jqBIr'](getProjectPath),_0x5c0827);return mergeCloudProfileSettings(_0x13c726?.['settings']??{},_0x8ad572[_0x379f32(0x11e)](_0x4b6945,undefined));}export async function configSet(_0x415947,_0x39440a,_0x47b091){const _0x4527d9=_0x1f8028,_0xa00864={'yNPil':function(_0x34334b,_0x577196){return _0x34334b===_0x577196;},'sKfIT':'cloud','AdznK':function(_0x2211bc,_0x15763b){return _0x2211bc(_0x15763b);},'HLGzp':function(_0x3f0bbb,_0x492ce5,_0x44ea08,_0x460925,_0x344405){return _0x3f0bbb(_0x492ce5,_0x44ea08,_0x460925,_0x344405);},'wTUHd':function(_0x3aca2f,_0x944253,_0x28826d){return _0x3aca2f(_0x944253,_0x28826d);}},_0x445ddb=await resolveProfileTarget(_0x415947);if(_0xa00864['yNPil'](_0x445ddb[_0x4527d9(0x107)],_0xa00864['sKfIT'])){if(_0x445ddb['alsoExistsElsewhere'])_0xa00864['AdznK'](printDualExistsHint,_0x415947);const _0x3b1a24=parseOverrideValue(_0x47b091);_0xa00864['HLGzp'](setProfileOverride,getProjectPath(),_0x415947,_0x39440a,_0x3b1a24),console[_0x4527d9(0x116)]('Set\x20'+_0x39440a+'\x20=\x20'+JSON['stringify'](_0x3b1a24)+_0x4527d9(0x109)+_0x415947+'\x22');return;}const _0x470f10=_0xa00864[_0x4527d9(0x123)](parseLocalValue,_0x39440a,_0x47b091);setProfileOverride(getProjectPath(),_0x415947,_0x39440a,_0x470f10),console[_0x4527d9(0x116)]('Set\x20'+_0x39440a+_0x4527d9(0xf8)+_0x470f10+'\x20for\x20\x22'+_0x415947+'\x22');}export async function configGet(_0xe10212,_0xdc6faf){const _0x404389=_0x1f8028,_0x12c9d0={'gnVqo':function(_0x2c5b22,_0x4c4fe7){return _0x2c5b22===_0x4c4fe7;},'bPyNY':'cloud','MaQfM':function(_0x4e4565,_0x22e71e){return _0x4e4565(_0x22e71e);},'iWMBA':function(_0x38f459,_0x2d6355,_0x2355b2){return _0x38f459(_0x2d6355,_0x2355b2);},'zxoKI':_0x404389(0x11d)},_0x29cf8e=await resolveProfileTarget(_0xe10212);if(_0x12c9d0[_0x404389(0x129)](_0x29cf8e['kind'],_0x12c9d0['bPyNY'])){const _0x36aae7=await _0x12c9d0[_0x404389(0x104)](loadEffectiveCloudSettings,_0xe10212),_0x34cad0=_0x12c9d0[_0x404389(0x124)](getNestedValue,_0x36aae7,_0xdc6faf);if(_0x34cad0===undefined)console[_0x404389(0x116)](_0x404389(0xff));else typeof _0x34cad0===_0x12c9d0['zxoKI']?console['log'](JSON['stringify'](_0x34cad0,null,0x2)):console['log'](_0x34cad0);return;}const _0x1380ca=await _0x12c9d0[_0x404389(0x104)](loadSettings,_0xe10212),_0xda1514=getNestedValue(_0x1380ca,_0xdc6faf);if(_0xda1514===undefined)console['log'](_0x404389(0xff));else typeof _0xda1514==='object'?console[_0x404389(0x116)](JSON['stringify'](_0xda1514,null,0x2)):console['log'](_0xda1514);}export async function configList(_0x407a5a){const _0xedd03f=_0x1f8028,_0x4e1dc5={'cmvej':function(_0x2d8aec,_0x18cba6){return _0x2d8aec(_0x18cba6);},'NIhsI':function(_0x5234c2,_0x423a95){return _0x5234c2===_0x423a95;},'awHss':_0xedd03f(0x10a),'bNFIS':function(_0x1d0cc0,_0x2aba7e){return _0x1d0cc0(_0x2aba7e);},'MCWcG':function(_0x55e006,_0x5b4a79){return _0x55e006(_0x5b4a79);}},_0x41636e=await _0x4e1dc5[_0xedd03f(0x121)](resolveProfileTarget,_0x407a5a);if(_0x4e1dc5['NIhsI'](_0x41636e[_0xedd03f(0x107)],_0x4e1dc5[_0xedd03f(0x128)])){const _0x2e0cbd=await loadEffectiveCloudSettings(_0x407a5a);if(!_0x2e0cbd||_0x4e1dc5[_0xedd03f(0x100)](Object['keys'](_0x2e0cbd)[_0xedd03f(0x125)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x407a5a+'\x22');return;}console['log'](JSON['stringify'](_0x2e0cbd,null,0x2));return;}const _0xfa8818=_0x4e1dc5[_0xedd03f(0xfc)](getSettingsPath,_0x407a5a);if(!existsSync(_0xfa8818)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x407a5a+'\x22');return;}const _0xe18fd1=await _0x4e1dc5['MCWcG'](loadSettings,_0x407a5a),_0x71d654=formatSettings(_0xe18fd1);!_0x71d654?console[_0xedd03f(0x116)](_0xedd03f(0x11c)+_0x407a5a+'\x22'):console[_0xedd03f(0x116)](_0x71d654);}export async function configUnset(_0x320bb5,_0x4ee57e){const _0x21cdf8=_0x1f8028,_0x19a037={'kBOIv':function(_0x7598b,_0xf0d06e){return _0x7598b(_0xf0d06e);},'GpGXc':function(_0x5d3199,_0x5aab38){return _0x5d3199===_0x5aab38;},'MSiEP':'cloud','uSvnd':function(_0x1fde75,_0x164874,_0x376d77,_0x320f26){return _0x1fde75(_0x164874,_0x376d77,_0x320f26);},'HFZrc':function(_0x2dd6d2){return _0x2dd6d2();},'ssmJe':function(_0x30f340,_0x340bea){return _0x30f340(_0x340bea);},'DwxEU':function(_0x5f3ca0,_0x5261c2,_0x3dbc4c){return _0x5f3ca0(_0x5261c2,_0x3dbc4c);}},_0x315cf7=await _0x19a037['kBOIv'](resolveProfileTarget,_0x320bb5);if(_0x19a037['GpGXc'](_0x315cf7['kind'],_0x19a037[_0x21cdf8(0xf6)])){if(_0x315cf7['alsoExistsElsewhere'])printDualExistsHint(_0x320bb5);const _0x45700b=_0x19a037['uSvnd'](unsetProfileOverride,_0x19a037['HFZrc'](getProjectPath),_0x320bb5,_0x4ee57e);_0x45700b?console['log'](_0x21cdf8(0x118)+_0x4ee57e+_0x21cdf8(0x109)+_0x320bb5+'\x22'):console[_0x21cdf8(0x116)]('Key\x20\x22'+_0x4ee57e+_0x21cdf8(0x108));return;}const _0x3470b3=unsetProfileOverride(getProjectPath(),_0x320bb5,_0x4ee57e);if(_0x3470b3){console[_0x21cdf8(0x116)](_0x21cdf8(0x118)+_0x4ee57e);return;}const _0x1be93b=await _0x19a037['ssmJe'](loadSettings,_0x320bb5),_0x2aea31=_0x19a037['DwxEU'](deleteNestedValue,_0x1be93b,_0x4ee57e);_0x2aea31?console['log']('Key\x20\x22'+_0x4ee57e+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x320bb5+'\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'):console['log'](_0x21cdf8(0xfe)+_0x4ee57e+'\x22\x20not\x20found');}export async function configReset(_0xb9e0bb){const _0x193017=_0x1f8028,_0x3dfccf={'hvAZv':function(_0x348987,_0x38a068){return _0x348987(_0x38a068);},'KZsqD':function(_0x5adcca,_0x554e28){return _0x5adcca===_0x554e28;},'fhOaD':function(_0xdcb70e,_0x5ef245,_0x507843){return _0xdcb70e(_0x5ef245,_0x507843);},'MVPVS':function(_0x48c7c4){return _0x48c7c4();}},_0x45d421=await _0x3dfccf[_0x193017(0x113)](resolveProfileTarget,_0xb9e0bb);if(_0x3dfccf[_0x193017(0xfa)](_0x45d421[_0x193017(0x107)],_0x193017(0x10a))){_0x3dfccf[_0x193017(0x105)](resetProfileOverrides,_0x3dfccf['MVPVS'](getProjectPath),_0xb9e0bb),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0xb9e0bb+'\x22');return;}console['log']('\x22'+_0xb9e0bb+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0xb9e0bb+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- (function(_0xae8faf,_0xff3abe){const _0x52cd37=_0x49ff,_0x2490a2=_0xae8faf();while(!![]){try{const _0x3e13c6=-parseInt(_0x52cd37(0x13b))/0x1*(-parseInt(_0x52cd37(0x13d))/0x2)+-parseInt(_0x52cd37(0x13f))/0x3+parseInt(_0x52cd37(0x146))/0x4+-parseInt(_0x52cd37(0x147))/0x5+parseInt(_0x52cd37(0x143))/0x6+-parseInt(_0x52cd37(0x142))/0x7+parseInt(_0x52cd37(0x145))/0x8*(-parseInt(_0x52cd37(0x144))/0x9);if(_0x3e13c6===_0xff3abe)break;else _0x2490a2['push'](_0x2490a2['shift']());}catch(_0x31328a){_0x2490a2['push'](_0x2490a2['shift']());}}}(_0x548a,0x4034e));import _0x3d8e7a from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';function _0x49ff(_0x4c1bef,_0x5a4736){_0x4c1bef=_0x4c1bef-0x138;const _0x548ae9=_0x548a();let _0x49ff19=_0x548ae9[_0x4c1bef];return _0x49ff19;}function _0x548a(){const _0x10151c=['88ZgBZHT','1781256ouBebY','1435890dtknMF','\x22\x20to\x20confirm\x20deletion:','log','Cloud\x20profile\x20\x22','cwd','GAJBL','3HbLRbS','input','304406kDAWLn','yes','819831WQtdLH','Type\x20\x22','\x22\x20for\x20everyone\x20in\x20your\x20organization.','162806DtLNzT','1371414NGuWAk','232191jfFsAy'];_0x548a=function(){return _0x10151c;};return _0x548a();}export async function deleteProfile(_0x3c360a,_0x3dc330={}){const _0x3cf545=_0x49ff,_0x30b370={'DWQoX':'Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.','DavDZ':function(_0x3c10e0,_0x9a827a){return _0x3c10e0(_0x9a827a);},'GAJBL':function(_0x211203,_0x39fe28,_0x9771eb){return _0x211203(_0x39fe28,_0x9771eb);}},_0x2c94ad=await fetchCloudProfile(_0x3c360a);if(!_0x2c94ad)throw new Error(_0x3cf545(0x138)+_0x3c360a+'\x22\x20not\x20found.');if(!_0x3dc330[_0x3cf545(0x13e)]&&!isInteractive())throw new Error(_0x30b370['DWQoX']);console[_0x3cf545(0x149)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x3c360a+_0x3cf545(0x141));if(!_0x3dc330[_0x3cf545(0x13e)]){const {confirmation:_0x1f5d6c}=await _0x3d8e7a['prompt']([{'type':_0x3cf545(0x13c),'name':'confirmation','message':_0x3cf545(0x140)+_0x3c360a+_0x3cf545(0x148)}]);if(_0x1f5d6c!==_0x3c360a)throw new Error('Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.');}await _0x30b370['DavDZ'](deleteCloudProfile,_0x3c360a),_0x30b370['GAJBL'](resetProfileOverrides,process[_0x3cf545(0x139)](),_0x3c360a),_0x30b370[_0x3cf545(0x13a)](clearLastProfile,process[_0x3cf545(0x139)](),_0x3c360a),console[_0x3cf545(0x149)]('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x3c360a+'\x22.');}
1
+ function _0x6e15(){const _0x3b6ae9=['prompt','Type\x20\x22','729CqZjac','841YUXIoZ','4887376XSmiMh','358GNHIee','30dYawvX','fGRtR','19426210KXPSmf','Uxehq','3301361YADGAA','7232YDkxpq','\x22\x20not\x20found.','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','log','input','1907199lnwzWp','115095nIIiTu'];_0x6e15=function(){return _0x3b6ae9;};return _0x6e15();}(function(_0x2f835c,_0x67d132){const _0x4024cb=_0x1064,_0x3f7341=_0x2f835c();while(!![]){try{const _0x311243=-parseInt(_0x4024cb(0xa0))/0x1*(parseInt(_0x4024cb(0xa2))/0x2)+parseInt(_0x4024cb(0x9f))/0x3*(-parseInt(_0x4024cb(0x96))/0x4)+-parseInt(_0x4024cb(0x9c))/0x5*(parseInt(_0x4024cb(0xa3))/0x6)+-parseInt(_0x4024cb(0x95))/0x7+-parseInt(_0x4024cb(0xa1))/0x8+parseInt(_0x4024cb(0x9b))/0x9+parseInt(_0x4024cb(0xa5))/0xa;if(_0x311243===_0x67d132)break;else _0x3f7341['push'](_0x3f7341['shift']());}catch(_0x268d76){_0x3f7341['push'](_0x3f7341['shift']());}}}(_0x6e15,0x599a1));import _0x2ad6d1 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';function _0x1064(_0x4ae4a1,_0x4e3cc8){_0x4ae4a1=_0x4ae4a1-0x95;const _0x6e153=_0x6e15();let _0x10642e=_0x6e153[_0x4ae4a1];return _0x10642e;}export async function deleteProfile(_0x2162b8,_0x1dbc7a={}){const _0x3b963d=_0x1064,_0x12e313={'GBkkr':function(_0x4942ad,_0x53d492){return _0x4942ad(_0x53d492);},'Uxehq':function(_0x36ad83,_0x272aed){return _0x36ad83!==_0x272aed;},'Khkbv':_0x3b963d(0x98),'fGRtR':function(_0x2bd470,_0x394d57,_0x145fbe){return _0x2bd470(_0x394d57,_0x145fbe);}},_0x48cf4c=await _0x12e313['GBkkr'](fetchCloudProfile,_0x2162b8);if(!_0x48cf4c)throw new Error('Cloud\x20profile\x20\x22'+_0x2162b8+_0x3b963d(0x97));if(!_0x1dbc7a['yes']&&!isInteractive())throw new Error('Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.');console[_0x3b963d(0x99)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x2162b8+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x1dbc7a['yes']){const {confirmation:_0x526a24}=await _0x2ad6d1[_0x3b963d(0x9d)]([{'type':_0x3b963d(0x9a),'name':'confirmation','message':_0x3b963d(0x9e)+_0x2162b8+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x12e313[_0x3b963d(0xa6)](_0x526a24,_0x2162b8))throw new Error(_0x12e313['Khkbv']);}await _0x12e313['GBkkr'](deleteCloudProfile,_0x2162b8),_0x12e313[_0x3b963d(0xa4)](resetProfileOverrides,process['cwd'](),_0x2162b8),clearLastProfile(process['cwd'](),_0x2162b8),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x2162b8+'\x22.');}
@@ -1 +1 @@
1
- const _0x49e249=_0x1a08;(function(_0x1c3555,_0x5e6ed1){const _0x38f584=_0x1a08,_0x314fe8=_0x1c3555();while(!![]){try{const _0x206ff2=parseInt(_0x38f584(0x1cd))/0x1+parseInt(_0x38f584(0x1e8))/0x2*(parseInt(_0x38f584(0x1cf))/0x3)+parseInt(_0x38f584(0x1e2))/0x4*(-parseInt(_0x38f584(0x1d5))/0x5)+-parseInt(_0x38f584(0x1d0))/0x6+parseInt(_0x38f584(0x1e1))/0x7+-parseInt(_0x38f584(0x1db))/0x8*(-parseInt(_0x38f584(0x1ed))/0x9)+parseInt(_0x38f584(0x1ea))/0xa*(-parseInt(_0x38f584(0x1f2))/0xb);if(_0x206ff2===_0x5e6ed1)break;else _0x314fe8['push'](_0x314fe8['shift']());}catch(_0x510041){_0x314fe8['push'](_0x314fe8['shift']());}}}(_0xad07,0xc74b6));import{readdir,stat}from'fs/promises';import{join}from'path';function _0xad07(){const _0x7df645=['has','1034usNZZm','\x0aLocal\x20Profiles\x20(legacy):','kMCcV','reports','rbJIb','VEGRy','environmentKey','565130JZZdZf','eLivn','3ZifTPQ','7409574LwTGXD','baseUrl','KyQGP','startsWith','sessionUpdatedAt','3290SkZfNR','seRBK','length','sort','includes','xgrfy','8pNYbWn','isDirectory','log','legacy','push','error','10171392IflWNF','4504buKNUb','aYMKQ','\x20\x20\x20\x20\x20\x20URL:\x20','settings.json','local','\x20[cloud]','971186kQaGWa','sessions','137570sjrVSF','\x0a*\x20=\x20active\x20profile','cached\x20(updated\x20','14233734STEImp','bug-bashes','REoHS','name'];_0xad07=function(){return _0x7df645;};return _0xad07();}function _0x1a08(_0x500314,_0x138299){_0x500314=_0x500314-0x1ca;const _0xad0797=_0xad07();let _0x1a0882=_0xad0797[_0x500314];return _0x1a0882;}import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x49e249(0x1e9),_0x49e249(0x1ee),_0x49e249(0x1f5),'local','ci'];export async function getEnvNames(){const _0x9fa998=_0x49e249,_0x48b059={'xgrfy':function(_0x59fbe2){return _0x59fbe2();},'seRBK':function(_0x3585ad,_0xc68948){return _0x3585ad(_0xc68948);},'kwojS':function(_0x45612d){return _0x45612d();},'KyQGP':function(_0x50af1c,_0x196051){return _0x50af1c(_0x196051);},'REoHS':function(_0x52442a,_0x456dbb){return _0x52442a(_0x456dbb);},'VEGRy':function(_0x35e0b6,_0x11a342,_0x1238dc){return _0x35e0b6(_0x11a342,_0x1238dc);},'eLivn':'.txt'},_0x4b46a9=_0x48b059[_0x9fa998(0x1da)](getRangerDir);if(!_0x48b059[_0x9fa998(0x1d6)](existsSync,_0x4b46a9))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x4fae7a=await _0x48b059['kwojS'](readActiveProfileName),_0x2eda1c=[],_0x4820e5={},_0x5837f0=join(_0x4b46a9,_0x9fa998(0x1e6));if(_0x48b059[_0x9fa998(0x1d2)](existsSync,_0x5837f0)){const _0x2e58db=await _0x48b059['seRBK'](readdir,_0x5837f0);for(const _0x12ae7b of _0x2e58db){const _0x35e0d7=join(_0x5837f0,_0x12ae7b),_0x3e0cbf=await _0x48b059[_0x9fa998(0x1ef)](stat,_0x35e0d7);_0x3e0cbf['isDirectory']()&&(_0x2eda1c[_0x9fa998(0x1df)](_0x12ae7b),_0x4820e5[_0x12ae7b]=_0x9fa998(0x1e6));}}const _0x2e2c31=join(_0x4b46a9,'ci');if(_0x48b059[_0x9fa998(0x1d6)](existsSync,_0x2e2c31)){const _0x1bed06=await readdir(_0x2e2c31);for(const _0x1f0daa of _0x1bed06){const _0x3f9e6f=_0x48b059['VEGRy'](join,_0x2e2c31,_0x1f0daa),_0x107ba0=await _0x48b059['KyQGP'](stat,_0x3f9e6f);_0x107ba0[_0x9fa998(0x1dc)]()&&(_0x2eda1c['push'](_0x1f0daa),_0x4820e5[_0x1f0daa]='ci');}}const _0xacb009=await readdir(_0x4b46a9);for(const _0xd0fd98 of _0xacb009){if(NON_ENV_DIRS[_0x9fa998(0x1d9)](_0xd0fd98))continue;if(_0xd0fd98[_0x9fa998(0x1d3)]('.'))continue;if(_0xd0fd98['endsWith'](_0x48b059[_0x9fa998(0x1ce)]))continue;const _0x5eccc0=_0x48b059['VEGRy'](join,_0x4b46a9,_0xd0fd98),_0x24bd92=await _0x48b059['seRBK'](stat,_0x5eccc0);_0x24bd92[_0x9fa998(0x1dc)]()&&existsSync(_0x48b059[_0x9fa998(0x1cb)](join,_0x5eccc0,_0x9fa998(0x1e5)))&&(!_0x2eda1c[_0x9fa998(0x1d9)](_0xd0fd98)&&(_0x2eda1c['push'](_0xd0fd98),_0x4820e5[_0xd0fd98]=_0x9fa998(0x1de)));}return{'envNames':_0x2eda1c,'activeEnv':_0x4fae7a,'envTypes':_0x4820e5};}export async function envList(){const _0x4e91a3=_0x49e249,_0x32f74e={'sHIgA':function(_0x10ef0){return _0x10ef0();},'YFHBn':function(_0xf5157a,_0x21738b){return _0xf5157a instanceof _0x21738b;},'rbJIb':function(_0x214da8,_0x4af89){return _0x214da8===_0x4af89;},'kMCcV':'\x0aNo\x20profiles\x20found.','oJdYv':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','aYMKQ':_0x4e91a3(0x1f3),'yYFUJ':function(_0x2d1acd,_0x2b5d13){return _0x2d1acd(_0x2b5d13);},'BycIK':'\x0aCloud\x20Profiles:'},{envNames:_0x3eea5f,activeEnv:_0x1a27e1,envTypes:_0x33627a}=await _0x32f74e['sHIgA'](getEnvNames);let _0x822273=[];const _0x44a544=await _0x32f74e['sHIgA'](getToken);if(_0x44a544)try{_0x822273=await listCloudProfiles();}catch(_0x42fb4f){console[_0x4e91a3(0x1e0)]('\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20'+(_0x32f74e['YFHBn'](_0x42fb4f,Error)?_0x42fb4f['message']:String(_0x42fb4f)));}if(_0x32f74e[_0x4e91a3(0x1ca)](_0x3eea5f['length'],0x0)&&_0x822273[_0x4e91a3(0x1d7)]===0x0){console[_0x4e91a3(0x1dd)](_0x32f74e[_0x4e91a3(0x1f4)]),console['log'](_0x32f74e['oJdYv']);return;}const _0x5c0b04=new Set(_0x822273['map'](_0x5a6853=>_0x5a6853['name']));if(_0x3eea5f[_0x4e91a3(0x1d7)]>0x0){console[_0x4e91a3(0x1dd)](_0x32f74e[_0x4e91a3(0x1e3)]);for(const _0x512c2b of _0x3eea5f[_0x4e91a3(0x1d8)]()){const _0x46608a=_0x32f74e['rbJIb'](_0x512c2b,_0x1a27e1)&&!_0x5c0b04[_0x4e91a3(0x1f1)](_0x512c2b),_0x3197f8=_0x33627a[_0x512c2b]||_0x4e91a3(0x1e6),_0x258a2b=await _0x32f74e['yYFUJ'](loadSettings,_0x512c2b),_0x1dd320=_0x3197f8==='legacy'?'':'\x20['+_0x3197f8+']';console['log']('\x20\x20'+(_0x46608a?'*\x20':'\x20\x20')+_0x512c2b+_0x1dd320),_0x258a2b['baseUrl']&&console[_0x4e91a3(0x1dd)](_0x4e91a3(0x1e4)+_0x258a2b[_0x4e91a3(0x1d1)]),_0x258a2b['environmentDetails']&&console[_0x4e91a3(0x1dd)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x258a2b['environmentDetails']);}}if(_0x822273[_0x4e91a3(0x1d7)]>0x0){console[_0x4e91a3(0x1dd)](_0x32f74e['BycIK']);for(const _0x48b5c0 of _0x822273['sort']((_0x476d08,_0x6187a4)=>_0x476d08['name']['localeCompare'](_0x6187a4[_0x4e91a3(0x1f0)]))){const _0x452ff7=_0x48b5c0[_0x4e91a3(0x1f0)]===_0x1a27e1,_0x5e675a=_0x48b5c0[_0x4e91a3(0x1cc)]?'\x20('+_0x48b5c0[_0x4e91a3(0x1cc)]+')':'',_0x1cc67c=_0x48b5c0[_0x4e91a3(0x1d4)]?_0x4e91a3(0x1ec)+_0x48b5c0[_0x4e91a3(0x1d4)]+')':'no\x20session';console['log']('\x20\x20'+(_0x452ff7?'*\x20':'\x20\x20')+_0x48b5c0[_0x4e91a3(0x1f0)]+_0x4e91a3(0x1e7)+_0x5e675a),console[_0x4e91a3(0x1dd)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x1cc67c);}}_0x1a27e1&&console[_0x4e91a3(0x1dd)](_0x4e91a3(0x1eb));}
1
+ const _0x11c1b5=_0x5dde;(function(_0xf177fb,_0x549ad5){const _0x325d8d=_0x5dde,_0x52ad98=_0xf177fb();while(!![]){try{const _0x4e34d3=-parseInt(_0x325d8d(0xc7))/0x1*(parseInt(_0x325d8d(0xb9))/0x2)+-parseInt(_0x325d8d(0xcd))/0x3+-parseInt(_0x325d8d(0xaf))/0x4+parseInt(_0x325d8d(0xa6))/0x5*(-parseInt(_0x325d8d(0xad))/0x6)+parseInt(_0x325d8d(0xa7))/0x7+-parseInt(_0x325d8d(0xac))/0x8*(parseInt(_0x325d8d(0xaa))/0x9)+parseInt(_0x325d8d(0xb0))/0xa*(parseInt(_0x325d8d(0xae))/0xb);if(_0x4e34d3===_0x549ad5)break;else _0x52ad98['push'](_0x52ad98['shift']());}catch(_0x147263){_0x52ad98['push'](_0x52ad98['shift']());}}}(_0xbdb8,0x3ad57));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0xbdb8(){const _0x1419d9=['legacy','settings.json','sbCRC','850722ecIuyD','\x0aCloud\x20Profiles:','isDirectory','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','\x0aLocal\x20Profiles\x20(legacy):','VAmTr','191420ayBLJt','2194542xuRJHY','KbPOL','bug-bashes','9Rbivzz','push','1933480orEqUZ','12fRMJen','361031GaFuDU','1766568PTzcfa','410weknbk','KMXrP','message','XqZHz','sessions','name','\x20\x20\x20\x20\x20\x20Details:\x20','dICRj','cached\x20(updated\x20','90gyiTrp','\x20[cloud]','sessionUpdatedAt','length','sort','MpEtm','error','druRI','local','environmentDetails','startsWith','endsWith','log','environmentKey','8327PJQumj','\x0aNo\x20profiles\x20found.','\x20\x20\x20\x20\x20\x20Session:\x20'];_0xbdb8=function(){return _0x1419d9;};return _0xbdb8();}import{getRangerDir}from'./utils/rangerRoot.js';function _0x5dde(_0x3ec015,_0xe239c1){_0x3ec015=_0x3ec015-0xa3;const _0xbdb80f=_0xbdb8();let _0x5dde3d=_0xbdb80f[_0x3ec015];return _0x5dde3d;}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x11c1b5(0xb4),_0x11c1b5(0xa9),'reports',_0x11c1b5(0xc1),'ci'];export async function getEnvNames(){const _0x435041=_0x11c1b5,_0x26a7d7={'HjVTX':function(_0x107daa){return _0x107daa();},'oyyij':function(_0x21823d,_0x2bbb3f){return _0x21823d(_0x2bbb3f);},'UVMxj':function(_0x3162e0,_0x264ff3,_0x3f8195){return _0x3162e0(_0x264ff3,_0x3f8195);},'uuhFc':'local','VAmTr':function(_0x459efa,_0x50cd5b){return _0x459efa(_0x50cd5b);},'KMXrP':function(_0x3c9eaf,_0x2ce6d6,_0x52b8fe){return _0x3c9eaf(_0x2ce6d6,_0x52b8fe);},'SmWHf':function(_0x4f6a14,_0x200eda){return _0x4f6a14(_0x200eda);},'KbPOL':function(_0x5278bf,_0x3d7df2){return _0x5278bf(_0x3d7df2);},'MpEtm':function(_0x4d8349,_0x783d0){return _0x4d8349(_0x783d0);}},_0x151722=_0x26a7d7['HjVTX'](getRangerDir);if(!_0x26a7d7['oyyij'](existsSync,_0x151722))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x23cdb9=await readActiveProfileName(),_0x3ec437=[],_0x29dcdf={},_0x1375cf=_0x26a7d7['UVMxj'](join,_0x151722,_0x26a7d7['uuhFc']);if(existsSync(_0x1375cf)){const _0x17e3bd=await readdir(_0x1375cf);for(const _0x2b41c7 of _0x17e3bd){const _0x5a2f5b=join(_0x1375cf,_0x2b41c7),_0x4af58c=await _0x26a7d7['VAmTr'](stat,_0x5a2f5b);_0x4af58c[_0x435041(0xcf)]()&&(_0x3ec437['push'](_0x2b41c7),_0x29dcdf[_0x2b41c7]=_0x435041(0xc1));}}const _0x25c2f6=_0x26a7d7[_0x435041(0xb1)](join,_0x151722,'ci');if(_0x26a7d7['VAmTr'](existsSync,_0x25c2f6)){const _0x1bba05=await _0x26a7d7['SmWHf'](readdir,_0x25c2f6);for(const _0x424b0e of _0x1bba05){const _0x5b42b0=join(_0x25c2f6,_0x424b0e),_0x426228=await stat(_0x5b42b0);_0x426228['isDirectory']()&&(_0x3ec437[_0x435041(0xab)](_0x424b0e),_0x29dcdf[_0x424b0e]='ci');}}const _0x5d1a25=await _0x26a7d7[_0x435041(0xa8)](readdir,_0x151722);for(const _0x3e3313 of _0x5d1a25){if(NON_ENV_DIRS['includes'](_0x3e3313))continue;if(_0x3e3313[_0x435041(0xc3)]('.'))continue;if(_0x3e3313[_0x435041(0xc4)]('.txt'))continue;const _0x1ea77c=_0x26a7d7['UVMxj'](join,_0x151722,_0x3e3313),_0xd9d17b=await _0x26a7d7[_0x435041(0xa5)](stat,_0x1ea77c);_0xd9d17b[_0x435041(0xcf)]()&&_0x26a7d7[_0x435041(0xbe)](existsSync,join(_0x1ea77c,_0x435041(0xcb)))&&(!_0x3ec437['includes'](_0x3e3313)&&(_0x3ec437[_0x435041(0xab)](_0x3e3313),_0x29dcdf[_0x3e3313]='legacy'));}return{'envNames':_0x3ec437,'activeEnv':_0x23cdb9,'envTypes':_0x29dcdf};}export async function envList(){const _0x147560=_0x11c1b5,_0x5456c7={'sbCRC':function(_0x5eb24b,_0x2c2c1b){return _0x5eb24b instanceof _0x2c2c1b;},'druRI':function(_0x1f6bd9,_0x4ab0d8){return _0x1f6bd9(_0x4ab0d8);},'XqZHz':function(_0x49ee19,_0x17d419){return _0x49ee19>_0x17d419;},'lqFBN':function(_0x136550,_0x2f6780){return _0x136550(_0x2f6780);},'dICRj':_0x147560(0xca),'ExVPi':'no\x20session'},{envNames:_0x1b94a7,activeEnv:_0x5f540a,envTypes:_0x1c17cb}=await getEnvNames();let _0xec1f9f=[];const _0x5b292a=await getToken();if(_0x5b292a)try{_0xec1f9f=await listCloudProfiles();}catch(_0x4829bd){console[_0x147560(0xbf)](_0x147560(0xa3)+(_0x5456c7[_0x147560(0xcc)](_0x4829bd,Error)?_0x4829bd[_0x147560(0xb2)]:_0x5456c7[_0x147560(0xc0)](String,_0x4829bd)));}if(_0x1b94a7['length']===0x0&&_0xec1f9f[_0x147560(0xbc)]===0x0){console[_0x147560(0xc5)](_0x147560(0xc8)),console[_0x147560(0xc5)]('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}const _0x4a92e5=new Set(_0xec1f9f['map'](_0x398aae=>_0x398aae['name']));if(_0x5456c7[_0x147560(0xb3)](_0x1b94a7[_0x147560(0xbc)],0x0)){console['log'](_0x147560(0xa4));for(const _0x3c1658 of _0x1b94a7[_0x147560(0xbd)]()){const _0x28c4af=_0x3c1658===_0x5f540a&&!_0x4a92e5['has'](_0x3c1658),_0x341681=_0x1c17cb[_0x3c1658]||'local',_0x4c9a33=await _0x5456c7['lqFBN'](loadSettings,_0x3c1658),_0x1fc05e=_0x341681===_0x5456c7[_0x147560(0xb7)]?'':'\x20['+_0x341681+']';console['log']('\x20\x20'+(_0x28c4af?'*\x20':'\x20\x20')+_0x3c1658+_0x1fc05e),_0x4c9a33['baseUrl']&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x4c9a33['baseUrl']),_0x4c9a33[_0x147560(0xc2)]&&console[_0x147560(0xc5)](_0x147560(0xb6)+_0x4c9a33[_0x147560(0xc2)]);}}if(_0x5456c7[_0x147560(0xb3)](_0xec1f9f[_0x147560(0xbc)],0x0)){console[_0x147560(0xc5)](_0x147560(0xce));for(const _0x4a692a of _0xec1f9f[_0x147560(0xbd)]((_0x1e1bae,_0x458c0c)=>_0x1e1bae[_0x147560(0xb5)]['localeCompare'](_0x458c0c['name']))){const _0x573464=_0x4a692a[_0x147560(0xb5)]===_0x5f540a,_0x5b4b0b=_0x4a692a[_0x147560(0xc6)]?'\x20('+_0x4a692a['environmentKey']+')':'',_0x3fde0e=_0x4a692a[_0x147560(0xbb)]?_0x147560(0xb8)+_0x4a692a[_0x147560(0xbb)]+')':_0x5456c7['ExVPi'];console['log']('\x20\x20'+(_0x573464?'*\x20':'\x20\x20')+_0x4a692a[_0x147560(0xb5)]+_0x147560(0xba)+_0x5b4b0b),console[_0x147560(0xc5)](_0x147560(0xc9)+_0x3fde0e);}}_0x5f540a&&console['log']('\x0a*\x20=\x20active\x20profile');}