@ranger-testing/ranger-cli 3.0.0 → 3.0.1-alpha.476607f-31

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 (83) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/playwrightCli.js +1 -1
  60. package/build/commands/utils/profileMessages.js +1 -1
  61. package/build/commands/utils/profileSetupBanner.js +1 -1
  62. package/build/commands/utils/projectsConfig.js +1 -1
  63. package/build/commands/utils/rangerConfig.js +1 -1
  64. package/build/commands/utils/rangerRoot.js +1 -1
  65. package/build/commands/utils/rangerwrightCli.js +1 -0
  66. package/build/commands/utils/resolveProfileContext.js +1 -1
  67. package/build/commands/utils/resolveProfileUrl.js +1 -1
  68. package/build/commands/utils/retry.js +1 -1
  69. package/build/commands/utils/sessionCache.js +1 -1
  70. package/build/commands/utils/settings.js +1 -1
  71. package/build/commands/utils/skillContent.js +1 -1
  72. package/build/commands/utils/skills.js +1 -1
  73. package/build/commands/utils/stitchWebmFiles.js +1 -1
  74. package/build/commands/utils/telemetry.js +1 -1
  75. package/build/commands/utils/tokenRefresh.js +1 -1
  76. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  77. package/build/commands/utils/userApi.js +1 -1
  78. package/build/commands/utils/version.js +1 -1
  79. package/build/commands/verifyFeature.js +1 -1
  80. package/build/commands/verifyFeatureCli.js +1 -1
  81. package/build/commands/verifyFeatureNovaCli.js +1 -1
  82. package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
  83. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x2f5ac0,_0x49de02){const _0x1e9998=_0x5c2a,_0x1a7eb6=_0x2f5ac0();while(!![]){try{const _0x10a602=parseInt(_0x1e9998(0x182))/0x1*(-parseInt(_0x1e9998(0x17f))/0x2)+parseInt(_0x1e9998(0x183))/0x3*(-parseInt(_0x1e9998(0x17c))/0x4)+-parseInt(_0x1e9998(0x17d))/0x5+parseInt(_0x1e9998(0x180))/0x6+-parseInt(_0x1e9998(0x181))/0x7+parseInt(_0x1e9998(0x17e))/0x8*(parseInt(_0x1e9998(0x17a))/0x9)+parseInt(_0x1e9998(0x17b))/0xa;if(_0x10a602===_0x49de02)break;else _0x1a7eb6['push'](_0x1a7eb6['shift']());}catch(_0x4c0767){_0x1a7eb6['push'](_0x1a7eb6['shift']());}}}(_0x313d,0x3ffc6));function _0x313d(){const _0x3a6120=['9wnBLEp','9919230KjTgFX','83860puxEjW','554115UzNDio','2953656bFAibX','6vVBhlG','2499648OSRWRI','3267292diznUP','165936cuEAxC','63CXYaFq'];_0x313d=function(){return _0x3a6120;};return _0x313d();}function _0x5c2a(_0x59d2c4,_0x59dff7){_0x59d2c4=_0x59d2c4-0x17a;const _0x313d25=_0x313d();let _0x5c2a25=_0x313d25[_0x59d2c4];return _0x5c2a25;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x36b34c){const _0x118c41=_0x36b34c?_0x36b34c(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x118c41+'.';}
1
+ const _0x202864=_0x5ac6;function _0x5ac6(_0x358de4,_0x547054){_0x358de4=_0x358de4-0x114;const _0x1408a3=_0x1408();let _0x5ac6a1=_0x1408a3[_0x358de4];return _0x5ac6a1;}function _0x1408(){const _0x4d7d10=['94458GtWbjP','25250760uaelFL','9tmyJln','741348rTXcqY','ranger\x20profile\x20add\x20local','6643000QIDjok','275649mZdHoy','3685478cuWYZp','1491100GaAPsd'];_0x1408=function(){return _0x4d7d10;};return _0x1408();}(function(_0x316ba4,_0x2df09a){const _0x4bc30d=_0x5ac6,_0x40cbee=_0x316ba4();while(!![]){try{const _0x8fdc26=-parseInt(_0x4bc30d(0x115))/0x1+-parseInt(_0x4bc30d(0x116))/0x2+-parseInt(_0x4bc30d(0x11a))/0x3*(-parseInt(_0x4bc30d(0x117))/0x4)+-parseInt(_0x4bc30d(0x114))/0x5+parseInt(_0x4bc30d(0x11b))/0x6+parseInt(_0x4bc30d(0x118))/0x7+parseInt(_0x4bc30d(0x119))/0x8;if(_0x8fdc26===_0x2df09a)break;else _0x40cbee['push'](_0x40cbee['shift']());}catch(_0x49768e){_0x40cbee['push'](_0x40cbee['shift']());}}}(_0x1408,0xeb87e));const DEFAULT_PROFILE_COMMAND=_0x202864(0x11c);export function formatProfileRequiredMessage(_0x4b92a9){const _0x2f7d02=_0x4b92a9?_0x4b92a9(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x2f7d02+'.';}
@@ -1 +1 @@
1
- function _0xd164(_0x25617f,_0x367aa1){_0x25617f=_0x25617f-0x10d;const _0x4c28f7=_0x4c28();let _0xd16401=_0x4c28f7[_0x25617f];return _0xd16401;}(function(_0x276de4,_0x91545d){const _0x51e7db=_0xd164,_0x43d625=_0x276de4();while(!![]){try{const _0x3234c4=parseInt(_0x51e7db(0x10e))/0x1+-parseInt(_0x51e7db(0x11e))/0x2+-parseInt(_0x51e7db(0x11a))/0x3*(parseInt(_0x51e7db(0x121))/0x4)+parseInt(_0x51e7db(0x113))/0x5+parseInt(_0x51e7db(0x120))/0x6*(-parseInt(_0x51e7db(0x10f))/0x7)+-parseInt(_0x51e7db(0x119))/0x8+-parseInt(_0x51e7db(0x11f))/0x9*(-parseInt(_0x51e7db(0x11d))/0xa);if(_0x3234c4===_0x91545d)break;else _0x43d625['push'](_0x43d625['shift']());}catch(_0x3ad14a){_0x43d625['push'](_0x43d625['shift']());}}}(_0x4c28,0xcc079));function _0x4c28(){const _0x4cad8b=['EMnxf','<div\x20class=\x22ranger-banner__message\x22>','9656944pqzMrw','33uhpJMJ','KosOr','addInitScript','20otLZcT','344404Morckh','8510364LjsZzf','510FmeDPT','95012njphbf','SwGAI','258110ZuPfvg','7952zzQsce','TtCmE','</div>','stringify','2117830lFIjur','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','mBfPw',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'];_0x4c28=function(){return _0x4cad8b;};return _0x4c28();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x225ee1=_0xd164,_0x10aea8={'mBfPw':function(_0x50060e,_0x2773a9){return _0x50060e+_0x2773a9;},'fbalv':function(_0xc9cf54,_0x8bcad7){return _0xc9cf54+_0x8bcad7;},'TtCmE':function(_0x3371cc,_0x140166){return _0x3371cc+_0x140166;},'KosOr':'<div\x20class=\x22ranger-banner__content\x22>','SwGAI':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','Whppw':_0x225ee1(0x118),'EMnxf':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>'},_0x4a1e4b=_0x10aea8[_0x225ee1(0x115)](_0x10aea8['mBfPw'](_0x10aea8['fbalv'](_0x10aea8[_0x225ee1(0x110)](_0x10aea8[_0x225ee1(0x11b)]+_0x10aea8[_0x225ee1(0x10d)]+_0x10aea8['Whppw'],'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x10aea8[_0x225ee1(0x117)],_0x225ee1(0x111)),'</div>'),'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'),_0x282343=_0x225ee1(0x114);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x225ee1(0x112)](_0x4a1e4b)+_0x225ee1(0x116)+JSON['stringify'](_0x282343)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5e50ae){const _0x8c80=_0xd164;await _0x5e50ae[_0x8c80(0x11c)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x2651(){const _0x383b62=['</div>','BytMn','5qUtNFN','428797yXqEZQ','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','4HQlFeA','fSCDL','NsFzt','251800AnOAad','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','6036jkfrBj','254236EeLRVP','<div\x20class=\x22ranger-banner__content\x22>','addInitScript','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','534276ZiYqdC','2871saKnkb','<div\x20class=\x22ranger-banner__message\x22>',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20','mhXQh','14xQzeyE','4551248ZbtZed','72BSnRRc','stringify','LRQMW','3963186TsANCc','qQuLT'];_0x2651=function(){return _0x383b62;};return _0x2651();}(function(_0x54ae4c,_0x1b3cbf){const _0x3b0f53=_0x396b,_0x2ca844=_0x54ae4c();while(!![]){try{const _0x178ec3=parseInt(_0x3b0f53(0xff))/0x1*(parseInt(_0x3b0f53(0x101))/0x2)+parseInt(_0x3b0f53(0x10b))/0x3+-parseInt(_0x3b0f53(0x107))/0x4*(-parseInt(_0x3b0f53(0xfe))/0x5)+parseInt(_0x3b0f53(0xfa))/0x6+parseInt(_0x3b0f53(0x110))/0x7*(-parseInt(_0x3b0f53(0xf6))/0x8)+-parseInt(_0x3b0f53(0xf7))/0x9*(-parseInt(_0x3b0f53(0x104))/0xa)+parseInt(_0x3b0f53(0x10c))/0xb*(-parseInt(_0x3b0f53(0x106))/0xc);if(_0x178ec3===_0x1b3cbf)break;else _0x2ca844['push'](_0x2ca844['shift']());}catch(_0x52d4bc){_0x2ca844['push'](_0x2ca844['shift']());}}}(_0x2651,0xa8f99));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x5a7544=_0x396b,_0x18dd66={'mhXQh':function(_0x3dec24,_0x31a2e4){return _0x3dec24+_0x31a2e4;},'OUwyX':function(_0x50cb28,_0x2c5141){return _0x50cb28+_0x2c5141;},'NsFzt':function(_0x17f468,_0x27bf97){return _0x17f468+_0x27bf97;},'BytMn':_0x5a7544(0x108),'LRQMW':_0x5a7544(0x100),'qQuLT':_0x5a7544(0x10d),'ZLeKt':_0x5a7544(0x10a),'fSCDL':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x34ad94=_0x18dd66[_0x5a7544(0x10f)](_0x18dd66['OUwyX'](_0x18dd66[_0x5a7544(0x103)](_0x18dd66['NsFzt'](_0x18dd66[_0x5a7544(0xfd)]+_0x18dd66[_0x5a7544(0xf9)],_0x18dd66[_0x5a7544(0xfb)])+_0x5a7544(0x105),_0x18dd66['ZLeKt'])+_0x5a7544(0xfc),_0x5a7544(0xfc)),_0x18dd66[_0x5a7544(0x102)]),_0x1f35a6='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x5a7544(0xf8)](_0x34ad94)+_0x5a7544(0x10e)+JSON[_0x5a7544(0xf8)](_0x1f35a6)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x396b(_0x5217d4,_0x1875e0){_0x5217d4=_0x5217d4-0xf6;const _0x265137=_0x2651();let _0x396b98=_0x265137[_0x5217d4];return _0x396b98;}export async function addProfileSetupBanner(_0x1ac471){const _0x451f7b=_0x396b;await _0x1ac471[_0x451f7b(0x109)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x5c5be1,_0x396d37){const _0x25dc88=_0x5717,_0x5e7f27=_0x5c5be1();while(!![]){try{const _0x4418a1=-parseInt(_0x25dc88(0x151))/0x1+parseInt(_0x25dc88(0x15b))/0x2*(-parseInt(_0x25dc88(0x138))/0x3)+parseInt(_0x25dc88(0x14c))/0x4+parseInt(_0x25dc88(0x156))/0x5+parseInt(_0x25dc88(0x141))/0x6*(-parseInt(_0x25dc88(0x15f))/0x7)+-parseInt(_0x25dc88(0x15d))/0x8*(parseInt(_0x25dc88(0x15c))/0x9)+parseInt(_0x25dc88(0x146))/0xa;if(_0x4418a1===_0x396d37)break;else _0x5e7f27['push'](_0x5e7f27['shift']());}catch(_0x3ee416){_0x5e7f27['push'](_0x5e7f27['shift']());}}}(_0x19d0,0x3620a));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0x19d0(){const _0x2ae736=['8RDUpQo','zphTy','7mvCzUo','VWKdZ','.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','kNvvh','setupHeaders','lWYGk','object','gEOxW','3IMrevk','entries','keys','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','length','rxUfI','message',').\x20Ignoring\x20local\x20profile\x20overrides.','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','1375116vmtmxj','warn','settings','PwSqz','FtJfN','13091680HgUbRj','QvjWG','UxTWP','projects','split','isArray','117340BBbpFd','version','lmjgq','profiles','XFQcm','238517kWBhPV','[ranger]\x20Warning:\x20','utf-8','sWEDn','yrILs','162915SlszKw','zoViQ','dhsDW','lastProfile','DWVBv','701920hmdEzZ','2976453TZqOOj'];_0x19d0=function(){return _0x2ae736;};return _0x19d0();}export function getProjectsConfigPath(){return join(getRangerHomeDir(),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x175e17=_0x5717,_0x15c432={'vhLCa':function(_0x53d680){return _0x53d680();},'gEOxW':function(_0x307fbf,_0x4e6353){return _0x307fbf(_0x4e6353);},'dhsDW':function(_0x4405ba,_0x19a04b){return _0x4405ba instanceof _0x19a04b;},'FtJfN':function(_0x32af60,_0x58f6bc){return _0x32af60(_0x58f6bc);},'DWVBv':_0x175e17(0x136),'loVsU':function(_0x5615b0,_0x1c9817){return _0x5615b0!==_0x1c9817;},'kTgVK':function(_0x206599,_0x467538){return _0x206599===_0x467538;}},_0xbc63af=_0x15c432['vhLCa'](getProjectsConfigPath);if(!_0x15c432[_0x175e17(0x137)](existsSync,_0xbc63af))return emptyConfig();let _0x4ed688;try{_0x4ed688=readFileSync(_0xbc63af,'utf-8');}catch(_0x50cd51){const _0x92db6=_0x15c432[_0x175e17(0x158)](_0x50cd51,Error)?_0x50cd51['message']:_0x15c432['gEOxW'](String,_0x50cd51);return console[_0x175e17(0x142)](_0x175e17(0x140)+_0xbc63af+':\x20'+_0x92db6+_0x175e17(0x161)),emptyConfig();}let _0x1cc6ed;try{_0x1cc6ed=JSON['parse'](_0x4ed688);}catch(_0x463f9e){const _0x5ab67b=_0x15c432['dhsDW'](_0x463f9e,Error)?_0x463f9e[_0x175e17(0x13e)]:_0x15c432[_0x175e17(0x145)](String,_0x463f9e);return console[_0x175e17(0x142)](_0x175e17(0x152)+_0xbc63af+'\x20is\x20not\x20valid\x20JSON\x20('+_0x5ab67b+_0x175e17(0x13f)),_0x15c432['vhLCa'](emptyConfig);}if(!_0x1cc6ed||typeof _0x1cc6ed!==_0x15c432[_0x175e17(0x15a)]||Array['isArray'](_0x1cc6ed)||_0x15c432['loVsU'](_0x1cc6ed[_0x175e17(0x14d)],CURRENT_VERSION)||_0x15c432['loVsU'](typeof _0x1cc6ed[_0x175e17(0x149)],'object')||_0x15c432['kTgVK'](_0x1cc6ed[_0x175e17(0x149)],null)||Array[_0x175e17(0x14b)](_0x1cc6ed['projects']))return console[_0x175e17(0x142)]('[ranger]\x20Warning:\x20'+_0xbc63af+_0x175e17(0x13b)),_0x15c432['vhLCa'](emptyConfig);return _0x1cc6ed;}export function writeProjectsConfig(_0x354ae2){const _0x245316=_0x5717,_0x3b1c0c={'pqkeA':function(_0x5bae19){return _0x5bae19();},'sWEDn':function(_0x3aa136,_0x20b664){return _0x3aa136(_0x20b664);},'yrILs':function(_0x42d38a,_0x1fae4c,_0x567201){return _0x42d38a(_0x1fae4c,_0x567201);},'UxTWP':function(_0xf01e4f,_0x296156,_0x55eb65,_0x4eadd0){return _0xf01e4f(_0x296156,_0x55eb65,_0x4eadd0);},'zphTy':_0x245316(0x153),'yvPwl':function(_0x513d3f,_0x360636){return _0x513d3f(_0x360636);}},_0x362407=_0x3b1c0c['pqkeA'](getProjectsConfigPath),_0x467cf9=_0x3b1c0c['sWEDn'](dirname,_0x362407);!_0x3b1c0c[_0x245316(0x154)](existsSync,_0x467cf9)&&_0x3b1c0c[_0x245316(0x155)](mkdirSync,_0x467cf9,{'recursive':!![]});const _0x17daeb=_0x362407+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x208962=JSON['stringify'](_0x354ae2,null,0x2)+'\x0a';try{_0x3b1c0c[_0x245316(0x148)](writeFileSync,_0x17daeb,_0x208962,{'encoding':_0x3b1c0c[_0x245316(0x15e)],'mode':0x180}),renameSync(_0x17daeb,_0x362407);}catch(_0x57598f){try{_0x3b1c0c['yvPwl'](existsSync,_0x17daeb)&&unlinkSync(_0x17daeb);}catch{}throw _0x57598f;}}export function readProfileOverrides(_0x920ef4,_0x35a38e){const _0x2eac01=_0x5717,_0x354f1c=readProjectsConfig(),_0x2690df=_0x354f1c[_0x2eac01(0x149)][_0x920ef4];if(!_0x2690df||!_0x2690df[_0x2eac01(0x14f)])return null;const _0x2b1d20=_0x2690df['profiles'][_0x35a38e];if(!_0x2b1d20||!_0x2b1d20['settings'])return null;return _0x2b1d20['settings']??null;}export function setProfileOverride(_0x1b7b6c,_0x366a4c,_0x5e5633,_0xdc493a){const _0x1a401f=_0x5717,_0x366911={'QPnff':'keyPath\x20is\x20required','XFQcm':function(_0x426c76,_0x4c560b){return _0x426c76(_0x4c560b);}};if(!_0x5e5633)throw new Error(_0x366911['QPnff']);const _0x524cb3=readProjectsConfig(),_0x49a06f=_0x524cb3['projects'][_0x1b7b6c]??={},_0xb2ee4c=_0x49a06f['profiles']??={},_0x596b5c=_0xb2ee4c[_0x366a4c]??={},_0x38dd0e=_0x596b5c[_0x1a401f(0x143)]??={};setByKeyPath(_0x38dd0e,_0x5e5633,_0xdc493a),_0x366911[_0x1a401f(0x150)](writeProjectsConfig,_0x524cb3);}export function unsetProfileOverride(_0x178264,_0x28700a,_0x119aa2){const _0x2c61d4=_0x5717,_0x3da217={'rxUfI':function(_0xc868ad){return _0xc868ad();},'HumFL':function(_0x3f52f8,_0x5774f6,_0x136f56){return _0x3f52f8(_0x5774f6,_0x136f56);},'vfNOO':function(_0x23c4d1,_0x218236){return _0x23c4d1(_0x218236);}};if(!_0x119aa2)throw new Error(_0x2c61d4(0x162));const _0x57f0fa=_0x3da217[_0x2c61d4(0x13d)](readProjectsConfig),_0x58679e=_0x57f0fa[_0x2c61d4(0x149)][_0x178264];if(!_0x58679e?.['profiles'])return![];const _0x565daf=_0x58679e['profiles'][_0x28700a];if(!_0x565daf?.[_0x2c61d4(0x143)])return![];const _0x53d9f2=_0x3da217['HumFL'](deleteByKeyPath,_0x565daf['settings'],_0x119aa2);if(!_0x53d9f2)return![];return _0x3da217['vfNOO'](writeProjectsConfig,_0x57f0fa),!![];}export function resetProfileOverrides(_0x395f6b,_0xa8e106){const _0x38f55b=_0x5717,_0x2226ac={'PNPoV':function(_0x32de26,_0x610020){return _0x32de26 in _0x610020;},'kNvvh':function(_0x2a5986,_0x32a946){return _0x2a5986===_0x32a946;},'QvjWG':function(_0x36125a,_0x2e6ea1){return _0x36125a(_0x2e6ea1);}},_0x1d4bde=readProjectsConfig(),_0x197495=_0x1d4bde[_0x38f55b(0x149)][_0x395f6b];if(!_0x197495?.['profiles'])return;if(!_0x2226ac['PNPoV'](_0xa8e106,_0x197495[_0x38f55b(0x14f)]))return;delete _0x197495[_0x38f55b(0x14f)][_0xa8e106],_0x2226ac[_0x38f55b(0x163)](Object[_0x38f55b(0x13a)](_0x197495[_0x38f55b(0x14f)])[_0x38f55b(0x13c)],0x0)&&(!_0x197495[_0x38f55b(0x159)]?delete _0x1d4bde[_0x38f55b(0x149)][_0x395f6b]:_0x197495[_0x38f55b(0x14f)]={}),_0x2226ac[_0x38f55b(0x147)](writeProjectsConfig,_0x1d4bde);}export function readLastProfile(_0x30af4c){const _0x437dea=_0x5717,_0x5ef441={'VWKdZ':function(_0x4c490c){return _0x4c490c();}},_0x1da170=_0x5ef441[_0x437dea(0x160)](readProjectsConfig),_0x3e0972=_0x1da170['projects'][_0x30af4c];return _0x3e0972?.['lastProfile']??null;}export function writeLastProfile(_0x1eb32a,_0x12ee4a){const _0x423319=_0x5717,_0x15ec2c={'hAgJW':function(_0x42d263){return _0x42d263();}},_0x824f16=_0x15ec2c['hAgJW'](readProjectsConfig),_0x1d9fd9=_0x824f16[_0x423319(0x149)][_0x1eb32a]??={};_0x1d9fd9[_0x423319(0x159)]=_0x12ee4a,writeProjectsConfig(_0x824f16);}export function clearLastProfile(_0x2cd0df,_0x105dc5){const _0x59d2cd=_0x5717,_0x5adefb={'lWYGk':function(_0x211084){return _0x211084();},'JqHlz':function(_0x15767b,_0x56d05b){return _0x15767b===_0x56d05b;}},_0x4d43fa=_0x5adefb[_0x59d2cd(0x135)](readProjectsConfig),_0x46e24e=_0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df];if(!_0x46e24e||_0x46e24e['lastProfile']!==_0x105dc5)return![];return delete _0x46e24e['lastProfile'],(!_0x46e24e[_0x59d2cd(0x14f)]||_0x5adefb['JqHlz'](Object['keys'](_0x46e24e['profiles'])[_0x59d2cd(0x13c)],0x0))&&delete _0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df],writeProjectsConfig(_0x4d43fa),!![];}export function mergeCloudProfileSettings(_0x5ac5cf,_0x14b78e){const _0x42230f=_0x5717,_0x4d9f5c={'zoViQ':function(_0x538f71,_0x331e91){return _0x538f71===_0x331e91;},'PwSqz':_0x42230f(0x164),'fncqm':function(_0x30d29,_0xb77333){return _0x30d29(_0xb77333);},'lmjgq':function(_0x36e319,_0x3055b4){return _0x36e319!==_0x3055b4;}},_0x3a1505={..._0x5ac5cf??{}};if(!_0x14b78e)return _0x3a1505;for(const [_0x28bd6b,_0x5bd592]of Object['entries'](_0x14b78e)){if(_0x5bd592===undefined)continue;if(_0x4d9f5c[_0x42230f(0x157)](_0x5bd592,null)){delete _0x3a1505[_0x28bd6b];continue;}if(_0x4d9f5c['zoViQ'](_0x28bd6b,'headers')||_0x28bd6b===_0x4d9f5c[_0x42230f(0x144)]){const _0x241ece=asRecord(_0x3a1505[_0x28bd6b])??{},_0x3e0970=_0x4d9f5c['fncqm'](asRecord,_0x5bd592);if(!_0x3e0970){_0x3a1505[_0x28bd6b]=_0x5bd592;continue;}const _0x5bafa1={..._0x241ece};for(const [_0x1ef530,_0x4a4880]of Object[_0x42230f(0x139)](_0x3e0970)){if(_0x4a4880===null)delete _0x5bafa1[_0x1ef530];else _0x4d9f5c[_0x42230f(0x14e)](_0x4a4880,undefined)&&(_0x5bafa1[_0x1ef530]=_0x4a4880);}_0x3a1505[_0x28bd6b]=_0x5bafa1;continue;}_0x3a1505[_0x28bd6b]=_0x5bd592;}return _0x3a1505;}function _0x5717(_0x5cde0f,_0x176655){_0x5cde0f=_0x5cde0f-0x135;const _0x19d00f=_0x19d0();let _0x571762=_0x19d00f[_0x5cde0f];return _0x571762;}function asRecord(_0x371321){return _0x371321&&typeof _0x371321==='object'&&!Array['isArray'](_0x371321)?_0x371321:undefined;}function setByKeyPath(_0x471758,_0x50625a,_0x56c853){const _0xe5cfab=_0x5717,_0x62d7c6={'TJlHA':function(_0x124362,_0x3b0532){return _0x124362<_0x3b0532;},'DZGbf':'object'},_0x552e23=_0x50625a[_0xe5cfab(0x14a)]('.');let _0x1ce8c9=_0x471758;for(let _0xb2f74e=0x0;_0x62d7c6['TJlHA'](_0xb2f74e,_0x552e23['length']-0x1);_0xb2f74e++){const _0x17ed9d=_0x552e23[_0xb2f74e],_0x504c28=_0x1ce8c9[_0x17ed9d];(!_0x504c28||typeof _0x504c28!==_0x62d7c6['DZGbf']||Array[_0xe5cfab(0x14b)](_0x504c28))&&(_0x1ce8c9[_0x17ed9d]={}),_0x1ce8c9=_0x1ce8c9[_0x17ed9d];}_0x1ce8c9[_0x552e23[_0x552e23[_0xe5cfab(0x13c)]-0x1]]=_0x56c853;}function deleteByKeyPath(_0x36369c,_0x1113aa){const _0x3c662e=_0x5717,_0x13f50e={'PIiOi':function(_0x535c43,_0x32b77f){return _0x535c43<_0x32b77f;},'xZwAG':function(_0x50189f,_0x2a03b5){return _0x50189f-_0x2a03b5;}},_0x1ab0c0=_0x1113aa['split']('.');let _0x2777b6=_0x36369c;for(let _0x2dac89=0x0;_0x13f50e['PIiOi'](_0x2dac89,_0x1ab0c0['length']-0x1);_0x2dac89++){const _0x257da1=_0x1ab0c0[_0x2dac89],_0x52d081=_0x2777b6[_0x257da1];if(!_0x52d081||typeof _0x52d081!=='object'||Array[_0x3c662e(0x14b)](_0x52d081))return![];_0x2777b6=_0x52d081;}const _0x359f8c=_0x1ab0c0[_0x13f50e['xZwAG'](_0x1ab0c0['length'],0x1)];if(!(_0x359f8c in _0x2777b6))return![];return delete _0x2777b6[_0x359f8c],!![];}
1
+ (function(_0xfdd265,_0x105565){const _0x27e262=_0x396d,_0x5134b2=_0xfdd265();while(!![]){try{const _0x1fca26=parseInt(_0x27e262(0x134))/0x1+-parseInt(_0x27e262(0x12b))/0x2*(-parseInt(_0x27e262(0x12d))/0x3)+parseInt(_0x27e262(0x10e))/0x4+-parseInt(_0x27e262(0x11e))/0x5*(parseInt(_0x27e262(0x11b))/0x6)+-parseInt(_0x27e262(0x133))/0x7*(-parseInt(_0x27e262(0x131))/0x8)+-parseInt(_0x27e262(0x120))/0x9*(parseInt(_0x27e262(0x11f))/0xa)+-parseInt(_0x27e262(0x12f))/0xb;if(_0x1fca26===_0x105565)break;else _0x5134b2['push'](_0x5134b2['shift']());}catch(_0x19bb70){_0x5134b2['push'](_0x5134b2['shift']());}}}(_0xf25b,0x527a6));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x38fcec=_0x396d,_0x474ae7={'YCgaf':function(_0x43054e,_0x4b2cd4,_0xb44dca){return _0x43054e(_0x4b2cd4,_0xb44dca);},'vRqDO':'projects.json'};return _0x474ae7[_0x38fcec(0x137)](join,getRangerHomeDir(),_0x474ae7['vRqDO']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xf01001=_0x396d,_0x42e7ea={'LzGMQ':function(_0x46b19f){return _0x46b19f();},'GQzNJ':function(_0x49427d,_0x3c97e9,_0x2e806b){return _0x49427d(_0x3c97e9,_0x2e806b);},'TYpLp':function(_0x4bad52,_0x323173){return _0x4bad52(_0x323173);},'rvdhB':function(_0x24b6d0,_0x2f0884){return _0x24b6d0 instanceof _0x2f0884;},'vyIYB':function(_0x38da18,_0x59c39a){return _0x38da18!==_0x59c39a;},'EsjEp':_0xf01001(0x117)},_0x135a87=_0x42e7ea[_0xf01001(0x119)](getProjectsConfigPath);if(!existsSync(_0x135a87))return emptyConfig();let _0x54883c;try{_0x54883c=_0x42e7ea['GQzNJ'](readFileSync,_0x135a87,'utf-8');}catch(_0x464a39){const _0x222968=_0x464a39 instanceof Error?_0x464a39[_0xf01001(0x10d)]:_0x42e7ea[_0xf01001(0x123)](String,_0x464a39);return console['warn'](_0xf01001(0x135)+_0x135a87+':\x20'+_0x222968+_0xf01001(0x10b)),emptyConfig();}let _0x43b5ec;try{_0x43b5ec=JSON['parse'](_0x54883c);}catch(_0x29e7b4){const _0x28ed19=_0x42e7ea['rvdhB'](_0x29e7b4,Error)?_0x29e7b4['message']:_0x42e7ea[_0xf01001(0x123)](String,_0x29e7b4);return console['warn']('[ranger]\x20Warning:\x20'+_0x135a87+_0xf01001(0x113)+_0x28ed19+_0xf01001(0x12c)),emptyConfig();}if(!_0x43b5ec||_0x42e7ea['vyIYB'](typeof _0x43b5ec,_0x42e7ea['EsjEp'])||Array['isArray'](_0x43b5ec)||_0x43b5ec[_0xf01001(0x11d)]!==CURRENT_VERSION||typeof _0x43b5ec[_0xf01001(0x111)]!=='object'||_0x43b5ec[_0xf01001(0x111)]===null||Array['isArray'](_0x43b5ec[_0xf01001(0x111)]))return console['warn'](_0xf01001(0x122)+_0x135a87+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x42e7ea['LzGMQ'](emptyConfig);return _0x43b5ec;}export function writeProjectsConfig(_0x338506){const _0x11243f=_0x396d,_0x37b8d6={'dgFfF':function(_0xf733db,_0x4b51ed){return _0xf733db(_0x4b51ed);},'UjtWZ':function(_0x474b7f,_0xe18e73){return _0x474b7f(_0xe18e73);},'MXyIe':function(_0x26c630,_0x469f0c,_0x56f77d,_0x35caed){return _0x26c630(_0x469f0c,_0x56f77d,_0x35caed);},'LFaHN':'utf-8','xYzVw':function(_0x1b657a,_0x5878b3){return _0x1b657a(_0x5878b3);}},_0x4014fa=getProjectsConfigPath(),_0x34235e=_0x37b8d6[_0x11243f(0x114)](dirname,_0x4014fa);!_0x37b8d6[_0x11243f(0x127)](existsSync,_0x34235e)&&mkdirSync(_0x34235e,{'recursive':!![]});const _0x1db9a3=_0x4014fa+'.'+process['pid']+'.'+Date[_0x11243f(0x121)]()+_0x11243f(0x10f),_0xc8207=JSON['stringify'](_0x338506,null,0x2)+'\x0a';try{_0x37b8d6[_0x11243f(0x124)](writeFileSync,_0x1db9a3,_0xc8207,{'encoding':_0x37b8d6[_0x11243f(0x12a)],'mode':0x180}),renameSync(_0x1db9a3,_0x4014fa);}catch(_0x54927a){try{_0x37b8d6[_0x11243f(0x110)](existsSync,_0x1db9a3)&&_0x37b8d6[_0x11243f(0x127)](unlinkSync,_0x1db9a3);}catch{}throw _0x54927a;}}function _0x396d(_0x85c606,_0x5d4b96){_0x85c606=_0x85c606-0x109;const _0xf25b41=_0xf25b();let _0x396df9=_0xf25b41[_0x85c606];return _0x396df9;}function _0xf25b(){const _0x5ede73=['TYpLp','MXyIe','keys','keyPath\x20is\x20required','UjtWZ','entries','anElW','LFaHN','62714tkSMDz',').\x20Ignoring\x20local\x20profile\x20overrides.','21ECMFMn','DtdNY','10427219jdZQex','split','5349080BGjkbi','rAGAt','7tbaaJD','666017CiGyvn','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','length','YCgaf','fWhls','profiles','.\x20Ignoring\x20local\x20profile\x20overrides.','setupHeaders','message','1328740EtpAEg','.tmp','xYzVw','projects','lastProfile','\x20is\x20not\x20valid\x20JSON\x20(','dgFfF','euUum','rOTjj','object','ZhQal','LzGMQ','isArray','294882jvgWrG','settings','version','40XGhqaX','10nRWhaI','1866609saypyz','now','[ranger]\x20Warning:\x20'];_0xf25b=function(){return _0x5ede73;};return _0xf25b();}export function readProfileOverrides(_0x69d018,_0x492720){const _0x3bb5e0=_0x396d,_0x55f2a0=readProjectsConfig(),_0x5a9d20=_0x55f2a0[_0x3bb5e0(0x111)][_0x69d018];if(!_0x5a9d20||!_0x5a9d20['profiles'])return null;const _0x5307be=_0x5a9d20[_0x3bb5e0(0x10a)][_0x492720];if(!_0x5307be||!_0x5307be[_0x3bb5e0(0x11c)])return null;return _0x5307be['settings']??null;}export function setProfileOverride(_0x26d46e,_0x561f5a,_0xd07e43,_0x1771a9){const _0x1c51a7=_0x396d;if(!_0xd07e43)throw new Error(_0x1c51a7(0x126));const _0x269095=readProjectsConfig(),_0x3573c5=_0x269095['projects'][_0x26d46e]??={},_0x235fab=_0x3573c5['profiles']??={},_0x1c8651=_0x235fab[_0x561f5a]??={},_0x1fa2d5=_0x1c8651['settings']??={};setByKeyPath(_0x1fa2d5,_0xd07e43,_0x1771a9),writeProjectsConfig(_0x269095);}export function unsetProfileOverride(_0xaa526,_0x177572,_0xc13b54){const _0x567412=_0x396d,_0x5506fb={'anElW':function(_0x4c89b7){return _0x4c89b7();},'rOTjj':function(_0x57fc16,_0x44725c,_0x5120dd){return _0x57fc16(_0x44725c,_0x5120dd);}};if(!_0xc13b54)throw new Error(_0x567412(0x126));const _0x409f42=_0x5506fb[_0x567412(0x129)](readProjectsConfig),_0x32280d=_0x409f42['projects'][_0xaa526];if(!_0x32280d?.[_0x567412(0x10a)])return![];const _0x1c9db1=_0x32280d['profiles'][_0x177572];if(!_0x1c9db1?.[_0x567412(0x11c)])return![];const _0x3f8952=_0x5506fb[_0x567412(0x116)](deleteByKeyPath,_0x1c9db1['settings'],_0xc13b54);if(!_0x3f8952)return![];return writeProjectsConfig(_0x409f42),!![];}export function resetProfileOverrides(_0x38b0e6,_0x253dce){const _0x188912=_0x396d,_0x2a4f25={'UHxWC':function(_0x3c3c0d){return _0x3c3c0d();},'FVlgd':function(_0x27fb40,_0x424a08){return _0x27fb40 in _0x424a08;},'ZhQal':function(_0x4d2765,_0x44b9e4){return _0x4d2765===_0x44b9e4;}},_0x1dd9d8=_0x2a4f25['UHxWC'](readProjectsConfig),_0x15efa7=_0x1dd9d8[_0x188912(0x111)][_0x38b0e6];if(!_0x15efa7?.['profiles'])return;if(!_0x2a4f25['FVlgd'](_0x253dce,_0x15efa7[_0x188912(0x10a)]))return;delete _0x15efa7[_0x188912(0x10a)][_0x253dce],_0x2a4f25[_0x188912(0x118)](Object['keys'](_0x15efa7['profiles'])['length'],0x0)&&(!_0x15efa7['lastProfile']?delete _0x1dd9d8['projects'][_0x38b0e6]:_0x15efa7['profiles']={}),writeProjectsConfig(_0x1dd9d8);}export function readLastProfile(_0xf6ebe0){const _0x5a238f=_0x396d,_0x47050b=readProjectsConfig(),_0x3c9e5e=_0x47050b['projects'][_0xf6ebe0];return _0x3c9e5e?.[_0x5a238f(0x112)]??null;}export function writeLastProfile(_0x12b980,_0x2d3af1){const _0x30cdd4=_0x396d,_0x4fb9b3={'YFMNE':function(_0x2b00c0,_0x1c0297){return _0x2b00c0(_0x1c0297);}},_0x3f87bf=readProjectsConfig(),_0x5036c9=_0x3f87bf[_0x30cdd4(0x111)][_0x12b980]??={};_0x5036c9['lastProfile']=_0x2d3af1,_0x4fb9b3['YFMNE'](writeProjectsConfig,_0x3f87bf);}export function clearLastProfile(_0x32b09e,_0x59a710){const _0x5cf359=_0x396d,_0x3f3f32={'kOOdN':function(_0x2883b5,_0x33c7a7){return _0x2883b5(_0x33c7a7);}},_0x55147c=readProjectsConfig(),_0x380ac3=_0x55147c['projects'][_0x32b09e];if(!_0x380ac3||_0x380ac3['lastProfile']!==_0x59a710)return![];return delete _0x380ac3[_0x5cf359(0x112)],(!_0x380ac3[_0x5cf359(0x10a)]||Object[_0x5cf359(0x125)](_0x380ac3[_0x5cf359(0x10a)])[_0x5cf359(0x136)]===0x0)&&delete _0x55147c[_0x5cf359(0x111)][_0x32b09e],_0x3f3f32['kOOdN'](writeProjectsConfig,_0x55147c),!![];}export function mergeCloudProfileSettings(_0x486a27,_0x229373){const _0x2bfd38=_0x396d,_0x514d03={'EnIQh':function(_0x54ffbb,_0x4ca677){return _0x54ffbb??_0x4ca677;},'Womzh':function(_0x183b1e,_0x38ba41){return _0x183b1e===_0x38ba41;},'XUIbe':function(_0x5390b5,_0x1c82b8){return _0x5390b5===_0x1c82b8;},'DtdNY':_0x2bfd38(0x10c),'Hwcgl':function(_0x4d698f,_0x10bbf3){return _0x4d698f===_0x10bbf3;},'sgKKW':function(_0x13ca8c,_0x2252ab){return _0x13ca8c!==_0x2252ab;}},_0x45683f={..._0x514d03['EnIQh'](_0x486a27,{})};if(!_0x229373)return _0x45683f;for(const [_0xae7d39,_0x3ab044]of Object[_0x2bfd38(0x128)](_0x229373)){if(_0x514d03['Womzh'](_0x3ab044,undefined))continue;if(_0x514d03['XUIbe'](_0x3ab044,null)){delete _0x45683f[_0xae7d39];continue;}if(_0xae7d39==='headers'||_0x514d03['Womzh'](_0xae7d39,_0x514d03[_0x2bfd38(0x12e)])){const _0x4d4c96=asRecord(_0x45683f[_0xae7d39])??{},_0x178a59=asRecord(_0x3ab044);if(!_0x178a59){_0x45683f[_0xae7d39]=_0x3ab044;continue;}const _0x1ead1d={..._0x4d4c96};for(const [_0x32f9d7,_0x2f9d72]of Object[_0x2bfd38(0x128)](_0x178a59)){if(_0x514d03['Hwcgl'](_0x2f9d72,null))delete _0x1ead1d[_0x32f9d7];else _0x514d03['sgKKW'](_0x2f9d72,undefined)&&(_0x1ead1d[_0x32f9d7]=_0x2f9d72);}_0x45683f[_0xae7d39]=_0x1ead1d;continue;}_0x45683f[_0xae7d39]=_0x3ab044;}return _0x45683f;}function asRecord(_0x3561b1){const _0x272684=_0x396d,_0x3ca3c4={'fWhls':function(_0x4c02e9,_0x9a866f){return _0x4c02e9===_0x9a866f;}};return _0x3561b1&&_0x3ca3c4[_0x272684(0x109)](typeof _0x3561b1,_0x272684(0x117))&&!Array[_0x272684(0x11a)](_0x3561b1)?_0x3561b1:undefined;}function setByKeyPath(_0x511e16,_0x55b54f,_0x1180ef){const _0x31be09=_0x396d,_0x492503={'rAGAt':function(_0x51fad6,_0x559d72){return _0x51fad6-_0x559d72;}},_0x44fd83=_0x55b54f[_0x31be09(0x130)]('.');let _0x185cd9=_0x511e16;for(let _0x131134=0x0;_0x131134<_0x44fd83[_0x31be09(0x136)]-0x1;_0x131134++){const _0x504454=_0x44fd83[_0x131134],_0x143bb8=_0x185cd9[_0x504454];(!_0x143bb8||typeof _0x143bb8!=='object'||Array[_0x31be09(0x11a)](_0x143bb8))&&(_0x185cd9[_0x504454]={}),_0x185cd9=_0x185cd9[_0x504454];}_0x185cd9[_0x44fd83[_0x492503[_0x31be09(0x132)](_0x44fd83['length'],0x1)]]=_0x1180ef;}function deleteByKeyPath(_0x54677a,_0x340c3a){const _0xe584ec=_0x396d,_0x3cc6a3={'YhuBL':function(_0x27234c,_0x33ead2){return _0x27234c<_0x33ead2;},'euUum':function(_0x58c57a,_0x32bf06){return _0x58c57a!==_0x32bf06;}},_0x1280a7=_0x340c3a[_0xe584ec(0x130)]('.');let _0x10ec35=_0x54677a;for(let _0x5b022f=0x0;_0x3cc6a3['YhuBL'](_0x5b022f,_0x1280a7['length']-0x1);_0x5b022f++){const _0x386950=_0x1280a7[_0x5b022f],_0x1acfa9=_0x10ec35[_0x386950];if(!_0x1acfa9||_0x3cc6a3[_0xe584ec(0x115)](typeof _0x1acfa9,_0xe584ec(0x117))||Array[_0xe584ec(0x11a)](_0x1acfa9))return![];_0x10ec35=_0x1acfa9;}const _0x24f279=_0x1280a7[_0x1280a7[_0xe584ec(0x136)]-0x1];if(!(_0x24f279 in _0x10ec35))return![];return delete _0x10ec35[_0x24f279],!![];}
@@ -1 +1 @@
1
- function _0xda2a(_0x3f3719,_0x138892){_0x3f3719=_0x3f3719-0xd1;const _0x1dd57e=_0x1dd5();let _0xda2afa=_0x1dd57e[_0x3f3719];return _0xda2afa;}(function(_0x174381,_0x5586a7){const _0x2ba340=_0xda2a,_0xc45f42=_0x174381();while(!![]){try{const _0xfb2ee4=parseInt(_0x2ba340(0xdc))/0x1+-parseInt(_0x2ba340(0xdd))/0x2+-parseInt(_0x2ba340(0xd8))/0x3+-parseInt(_0x2ba340(0xd9))/0x4+parseInt(_0x2ba340(0xd1))/0x5*(-parseInt(_0x2ba340(0xd5))/0x6)+-parseInt(_0x2ba340(0xdb))/0x7*(parseInt(_0x2ba340(0xde))/0x8)+parseInt(_0x2ba340(0xe0))/0x9*(parseInt(_0x2ba340(0xd2))/0xa);if(_0xfb2ee4===_0x5586a7)break;else _0xc45f42['push'](_0xc45f42['shift']());}catch(_0x3d05b6){_0xc45f42['push'](_0xc45f42['shift']());}}}(_0x1dd5,0xe91f4));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x1dd5(){const _0x38f0ce=['warn','7gzJsdm','619079BcLIbp','1420178TiPrEf','64360UhJooP','vkpar','9ARwpEW','444915MKjBth','49036810pbZphf','feyfy','utf-8','90xrufQO','model','XnTxw','3055821ldXHAj','5985624sYBGiF'];_0x1dd5=function(){return _0x38f0ce;};return _0x1dd5();}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x185504=_0xda2a,_0x2b67e4={'XnTxw':function(_0x2624ea){return _0x2624ea();},'feyfy':'config.json'};return join(_0x2b67e4[_0x185504(0xd7)](getRangerDir),_0x2b67e4[_0x185504(0xd3)]);}export async function loadRangerConfig(){const _0xab643f=_0xda2a,_0x4881a1={'beURN':function(_0x13f23d){return _0x13f23d();},'qOVKq':function(_0x5dca9d,_0x159dc2){return _0x5dca9d(_0x159dc2);},'rgiTc':function(_0x513d03,_0x3de4b9){return _0x513d03!==_0x3de4b9;},'vkpar':function(_0x5aedb0,_0xec1401){return _0x5aedb0===_0xec1401;}},_0x41b3e4=_0x4881a1['beURN'](getRangerConfigPath);if(!_0x4881a1['qOVKq'](existsSync,_0x41b3e4))return{};try{const _0x1a150e=await readFile(_0x41b3e4,_0xab643f(0xd4)),_0x3605d7=JSON['parse'](_0x1a150e);if(!_0x3605d7||_0x4881a1['rgiTc'](typeof _0x3605d7,'object')||Array['isArray'](_0x3605d7))return{};const _0x324b2d={},_0x311288=_0x3605d7[_0xab643f(0xd6)];return _0x4881a1[_0xab643f(0xdf)](typeof _0x311288,'string')&&(_0x324b2d['model']=_0x311288),_0x324b2d;}catch(_0x1a3556){const _0x715af5=_0x1a3556 instanceof Error?_0x1a3556['message']:_0x4881a1['qOVKq'](String,_0x1a3556);return console[_0xab643f(0xda)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x41b3e4+':\x20'+_0x715af5),{};}}
1
+ (function(_0x214173,_0x2b8d28){const _0x10390c=_0x306e,_0x349355=_0x214173();while(!![]){try{const _0x5462fb=parseInt(_0x10390c(0x125))/0x1+parseInt(_0x10390c(0x11c))/0x2+parseInt(_0x10390c(0x120))/0x3*(parseInt(_0x10390c(0x118))/0x4)+-parseInt(_0x10390c(0x119))/0x5*(-parseInt(_0x10390c(0x11a))/0x6)+parseInt(_0x10390c(0x117))/0x7+parseInt(_0x10390c(0x11d))/0x8*(parseInt(_0x10390c(0x114))/0x9)+-parseInt(_0x10390c(0x112))/0xa;if(_0x5462fb===_0x2b8d28)break;else _0x349355['push'](_0x349355['shift']());}catch(_0x42b6a5){_0x349355['push'](_0x349355['shift']());}}}(_0x2303,0xe94e2));import{readFile}from'fs/promises';function _0x306e(_0xab502,_0x2d2963){_0xab502=_0xab502-0x112;const _0x23033c=_0x2303();let _0x306ee4=_0x23033c[_0xab502];return _0x306ee4;}import{existsSync}from'fs';function _0x2303(){const _0x207809=['1308nRuEEo','5ypDDmf','6853134SwldrW','utf-8','3277292VkOFxJ','111992bdGWcR','model','isArray','381eAcJTK','warn','object','config.json','iNagM','952852WbYpCG','JEbSE','44073870xdEKUo','kCLAv','891jAtgGP','string','xcEaZ','1413216MDyRHd'];_0x2303=function(){return _0x207809;};return _0x2303();}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x71711b=_0x306e,_0x406d1b={'xcEaZ':function(_0x348595,_0x408d33,_0x18d751){return _0x348595(_0x408d33,_0x18d751);}};return _0x406d1b[_0x71711b(0x116)](join,getRangerDir(),_0x71711b(0x123));}export async function loadRangerConfig(){const _0x4ed301=_0x306e,_0x5d1d0a={'HKNuS':function(_0x296696,_0x1f7286,_0x233dde){return _0x296696(_0x1f7286,_0x233dde);},'kCLAv':_0x4ed301(0x11b),'JEbSE':_0x4ed301(0x122),'iNagM':_0x4ed301(0x115),'KZQAE':function(_0x4b1e78,_0x4795f5){return _0x4b1e78(_0x4795f5);}},_0x35adc0=getRangerConfigPath();if(!existsSync(_0x35adc0))return{};try{const _0x2dcd7a=await _0x5d1d0a['HKNuS'](readFile,_0x35adc0,_0x5d1d0a[_0x4ed301(0x113)]),_0x18d44f=JSON['parse'](_0x2dcd7a);if(!_0x18d44f||typeof _0x18d44f!==_0x5d1d0a[_0x4ed301(0x126)]||Array[_0x4ed301(0x11f)](_0x18d44f))return{};const _0x495967={},_0x2c5a74=_0x18d44f[_0x4ed301(0x11e)];return typeof _0x2c5a74===_0x5d1d0a[_0x4ed301(0x124)]&&(_0x495967[_0x4ed301(0x11e)]=_0x2c5a74),_0x495967;}catch(_0x3e294b){const _0x4583c2=_0x3e294b instanceof Error?_0x3e294b['message']:_0x5d1d0a['KZQAE'](String,_0x3e294b);return console[_0x4ed301(0x121)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x35adc0+':\x20'+_0x4583c2),{};}}
@@ -1 +1 @@
1
- function _0x2b5c(){const _0x119189=['87741ckuohc','.git','7FoVUtV','.ranger','4lGXMwI','9023528iSDhuL','12768492cSANpR','LWTbo','5712324PxhoeZ','root','KjYVr','22ZGCNFU','cwd','11sFnOyp','72183vwTjsM','UDJDs','1400LXspJr','8702798EYXExN','3435603zplpuu','AdsGe','5biWNOC','ynNLp','sWYON'];_0x2b5c=function(){return _0x119189;};return _0x2b5c();}(function(_0x498cbf,_0x50c95b){const _0x29d7a0=_0x140b,_0x2d21d4=_0x498cbf();while(!![]){try{const _0x16b8e3=parseInt(_0x29d7a0(0xf3))/0x1*(parseInt(_0x29d7a0(0xf0))/0x2)+-parseInt(_0x29d7a0(0xf7))/0x3*(parseInt(_0x29d7a0(0xe9))/0x4)+parseInt(_0x29d7a0(0xf9))/0x5*(parseInt(_0x29d7a0(0xed))/0x6)+-parseInt(_0x29d7a0(0xfe))/0x7*(-parseInt(_0x29d7a0(0xea))/0x8)+-parseInt(_0x29d7a0(0xfc))/0x9*(parseInt(_0x29d7a0(0xf5))/0xa)+-parseInt(_0x29d7a0(0xf2))/0xb*(-parseInt(_0x29d7a0(0xeb))/0xc)+-parseInt(_0x29d7a0(0xf6))/0xd;if(_0x16b8e3===_0x50c95b)break;else _0x2d21d4['push'](_0x2d21d4['shift']());}catch(_0x51233f){_0x2d21d4['push'](_0x2d21d4['shift']());}}}(_0x2b5c,0xb930e));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x140b(_0x4b8277,_0x56261b){_0x4b8277=_0x4b8277-0xe8;const _0x2b5ce2=_0x2b5c();let _0x140b89=_0x2b5ce2[_0x4b8277];return _0x140b89;}import{homedir}from'os';export function getRangerRoot(){const _0xe78449=_0x140b,_0x44bbb1={'uHkuZ':function(_0x17ed98,_0x2be659){return _0x17ed98(_0x2be659);},'ynNLp':_0xe78449(0xe8),'AdsGe':function(_0x2046a6,_0x5688d1){return _0x2046a6(_0x5688d1);},'qyrSz':function(_0x1406af,_0x106c65,_0x49b5bc){return _0x1406af(_0x106c65,_0x49b5bc);}};let _0x4a5842=process[_0xe78449(0xf1)]();const _0x29520d=parse(_0x4a5842)[_0xe78449(0xee)];while(_0x4a5842!==_0x29520d){if(_0x44bbb1['uHkuZ'](existsSync,join(_0x4a5842,_0x44bbb1[_0xe78449(0xfa)])))return _0x4a5842;_0x4a5842=_0x44bbb1['uHkuZ'](dirname,_0x4a5842);}if(_0x44bbb1[_0xe78449(0xf8)](existsSync,_0x44bbb1['qyrSz'](join,_0x29520d,'.ranger')))return _0x29520d;const _0x44efbd=findGitRoot();if(_0x44efbd)return _0x44efbd;return process['cwd']();}export function getRangerDir(){const _0x4d9797=_0x140b,_0x20d14f={'CdPSq':function(_0x1ac099){return _0x1ac099();},'LWTbo':'.ranger'};return join(_0x20d14f['CdPSq'](getRangerRoot),_0x20d14f[_0x4d9797(0xec)]);}export function findGitRoot(){const _0x34de53=_0x140b,_0x408362={'wVMie':function(_0x44057b,_0x34fc5c){return _0x44057b!==_0x34fc5c;},'UDJDs':function(_0x11c4ab,_0x21a64c,_0x5ae5db){return _0x11c4ab(_0x21a64c,_0x5ae5db);},'gNLyH':function(_0x27b977,_0x4d78dc){return _0x27b977(_0x4d78dc);},'KjYVr':function(_0x2097ac,_0x2be1bb,_0x112397){return _0x2097ac(_0x2be1bb,_0x112397);},'sWYON':'.git'};let _0x124ca=process['cwd']();const _0x5efc4c=parse(_0x124ca)['root'];while(_0x408362['wVMie'](_0x124ca,_0x5efc4c)){if(existsSync(_0x408362[_0x34de53(0xf4)](join,_0x124ca,_0x34de53(0xfd))))return _0x124ca;_0x124ca=dirname(_0x124ca);}if(_0x408362['gNLyH'](existsSync,_0x408362[_0x34de53(0xef)](join,_0x5efc4c,_0x408362[_0x34de53(0xfb)])))return _0x5efc4c;return null;}export function getRangerHomeDir(){const _0x267f78=_0x140b,_0x486349={'sSIpE':function(_0x3ac404,_0x32b5e8,_0x296d9d){return _0x3ac404(_0x32b5e8,_0x296d9d);},'SxdBK':function(_0x2c7cd9){return _0x2c7cd9();},'CQzgp':_0x267f78(0xe8)};return _0x486349['sSIpE'](join,_0x486349['SxdBK'](homedir),_0x486349['CQzgp']);}
1
+ (function(_0x2d1395,_0x567f4d){const _0x3e6a4a=_0x3b28,_0x20fd92=_0x2d1395();while(!![]){try{const _0x3c3a0e=-parseInt(_0x3e6a4a(0x167))/0x1+parseInt(_0x3e6a4a(0x161))/0x2*(parseInt(_0x3e6a4a(0x157))/0x3)+-parseInt(_0x3e6a4a(0x158))/0x4+parseInt(_0x3e6a4a(0x15a))/0x5+-parseInt(_0x3e6a4a(0x168))/0x6*(-parseInt(_0x3e6a4a(0x162))/0x7)+-parseInt(_0x3e6a4a(0x159))/0x8+parseInt(_0x3e6a4a(0x165))/0x9;if(_0x3c3a0e===_0x567f4d)break;else _0x20fd92['push'](_0x20fd92['shift']());}catch(_0x65f31a){_0x20fd92['push'](_0x20fd92['shift']());}}}(_0xa504,0x6a876));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0xfe87ad=_0x3b28,_0x17f39f={'FKePx':function(_0x55d09d,_0x2ad3a7){return _0x55d09d!==_0x2ad3a7;},'cXCFm':function(_0x31f843,_0x2d7001){return _0x31f843(_0x2d7001);},'ePoRj':function(_0x4342d6,_0xdfea5c,_0x787bdc){return _0x4342d6(_0xdfea5c,_0x787bdc);},'NkRUt':'.ranger','CVLDR':function(_0x3e2829){return _0x3e2829();}};let _0x4162a0=process['cwd']();const _0x41e2da=parse(_0x4162a0)[_0xfe87ad(0x15e)];while(_0x17f39f['FKePx'](_0x4162a0,_0x41e2da)){if(_0x17f39f[_0xfe87ad(0x15b)](existsSync,_0x17f39f[_0xfe87ad(0x164)](join,_0x4162a0,_0x17f39f['NkRUt'])))return _0x4162a0;_0x4162a0=dirname(_0x4162a0);}if(existsSync(join(_0x41e2da,'.ranger')))return _0x41e2da;const _0x1213a1=_0x17f39f[_0xfe87ad(0x163)](findGitRoot);if(_0x1213a1)return _0x1213a1;return process['cwd']();}export function getRangerDir(){const _0x667b3=_0x3b28,_0x21b478={'jkjUL':_0x667b3(0x160)};return join(getRangerRoot(),_0x21b478[_0x667b3(0x156)]);}function _0xa504(){const _0xd93476=['.ranger','4450XDbwSG','35uynYTK','CVLDR','ePoRj','1595682FYxwyZ','DrhaO','153722UfkWGN','209106dhyijS','gpanH','jkjUL','717bLMkhP','1409360TzypBt','4769392EGGKsN','3276250gkCHtL','cXCFm','cwd','qvGgb','root','.git'];_0xa504=function(){return _0xd93476;};return _0xa504();}function _0x3b28(_0x37b653,_0x12538c){_0x37b653=_0x37b653-0x156;const _0xa5046a=_0xa504();let _0x3b286b=_0xa5046a[_0x37b653];return _0x3b286b;}export function findGitRoot(){const _0x5625df=_0x3b28,_0xfd8e78={'gpanH':function(_0x46fb96,_0x1336d0){return _0x46fb96!==_0x1336d0;},'MmLCr':function(_0x178dcc,_0x433552){return _0x178dcc(_0x433552);},'FqCYp':function(_0x1eecdf,_0x1cd74b){return _0x1eecdf(_0x1cd74b);},'uXsHF':function(_0x19f506,_0x1bf6ee,_0x532ff1){return _0x19f506(_0x1bf6ee,_0x532ff1);},'DrhaO':'.git'};let _0x3cab1a=process[_0x5625df(0x15c)]();const _0x361dbd=parse(_0x3cab1a)[_0x5625df(0x15e)];while(_0xfd8e78[_0x5625df(0x169)](_0x3cab1a,_0x361dbd)){if(_0xfd8e78['MmLCr'](existsSync,join(_0x3cab1a,_0x5625df(0x15f))))return _0x3cab1a;_0x3cab1a=_0xfd8e78['FqCYp'](dirname,_0x3cab1a);}if(existsSync(_0xfd8e78['uXsHF'](join,_0x361dbd,_0xfd8e78[_0x5625df(0x166)])))return _0x361dbd;return null;}export function getRangerHomeDir(){const _0x497ddd=_0x3b28,_0x121a00={'qvGgb':function(_0x33aa62){return _0x33aa62();},'DBgav':'.ranger'};return join(_0x121a00[_0x497ddd(0x15d)](homedir),_0x121a00['DBgav']);}
@@ -0,0 +1 @@
1
+ (function(_0x2ddf58,_0x16cd78){const _0x43dc47=_0x5ede,_0x1fa933=_0x2ddf58();while(!![]){try{const _0x141db0=parseInt(_0x43dc47(0x190))/0x1+parseInt(_0x43dc47(0x194))/0x2*(-parseInt(_0x43dc47(0x1ad))/0x3)+parseInt(_0x43dc47(0x199))/0x4+-parseInt(_0x43dc47(0x18d))/0x5*(-parseInt(_0x43dc47(0x18a))/0x6)+parseInt(_0x43dc47(0x191))/0x7*(parseInt(_0x43dc47(0x184))/0x8)+parseInt(_0x43dc47(0x196))/0x9+-parseInt(_0x43dc47(0x1b2))/0xa;if(_0x141db0===_0x16cd78)break;else _0x1fa933['push'](_0x1fa933['shift']());}catch(_0x21f536){_0x1fa933['push'](_0x1fa933['shift']());}}}(_0x2742,0xd86f5));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';function _0x2742(){const _0x59ddcc=['\x20binary','ojifK','toString','/package.json','HaNkl','socketPath','timeoutMs','SIGTERM','bin','RMUzr','timed\x20out\x20after\x20','env','549jnspgj','--json','rangerwright-cli\x20','object','ECZlw','16393690WbGEdk','252248mGZTSa','\x20does\x20not\x20expose\x20a\x20','assign','binaryPath','hIFWG','SIGKILL','1344diqDtd','command','aaDFu','17465dNOLLA','uhPzN','\x0astderr:\x20','806460eySnyq','49YaScwj','RRoOh','xvTAA','17410VDFvBx','zsNxV','10878867UqmyQu','jvhXD','kLjze','4402116qxtCpw','DrdmD','inhpF','join','data','pipe','tAofA','resolve'];_0x2742=function(){return _0x59ddcc;};return _0x2742();}import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY='rangerwright';function readPackageJson(_0xe97cfc){const _0xe9596a=_0x5ede,_0x526ec6={'QOxhv':'utf-8','RqdEe':function(_0x5d9949,_0x20f314){return _0x5d9949!==_0x20f314;},'EhrCe':_0xe9596a(0x1b0)},_0x1549be=readFileSync(_0xe97cfc,_0x526ec6['QOxhv']),_0x3c6d95=JSON['parse'](_0x1549be);if(!_0x3c6d95||_0x526ec6['RqdEe'](typeof _0x3c6d95,_0x526ec6['EhrCe']))return{};return _0x3c6d95;}function _0x5ede(_0x4161bd,_0x26bdce){_0x4161bd=_0x4161bd-0x184;const _0x2742f4=_0x2742();let _0x5edea3=_0x2742f4[_0x4161bd];return _0x5edea3;}export function resolveRangerwrightCliBinary(){const _0x5a625d=_0x5ede,_0x1c2b03={'RMUzr':function(_0x2eb16c,_0x37d783){return _0x2eb16c(_0x37d783);},'IVSSH':function(_0x4abd18,_0x2d7461,_0x3b284a){return _0x4abd18(_0x2d7461,_0x3b284a);},'mpnHI':function(_0x1981a7,_0x16d5ef){return _0x1981a7(_0x16d5ef);},'DrdmD':'string','RRoOh':function(_0x5eae30,_0x3bfa19,_0x1705af){return _0x5eae30(_0x3bfa19,_0x1705af);}},_0x5d1e1f=_0x1c2b03[_0x5a625d(0x1aa)](createRequire,process['argv'][0x1]||_0x1c2b03['IVSSH'](join,process['cwd'](),'package.json')),_0x4b3a8e=_0x5d1e1f[_0x5a625d(0x1a0)](RANGERWRIGHT_CLI_PACKAGE+_0x5a625d(0x1a4)),_0x5d1c7d=_0x1c2b03['RMUzr'](dirname,_0x4b3a8e),_0x4a7f15=_0x1c2b03['mpnHI'](readPackageJson,_0x4b3a8e),_0x98ba9b=typeof _0x4a7f15[_0x5a625d(0x1a9)]===_0x1c2b03[_0x5a625d(0x19a)]?_0x4a7f15['bin']:_0x4a7f15[_0x5a625d(0x1a9)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x98ba9b)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x5a625d(0x185)+RANGERWRIGHT_CLI_BINARY+_0x5a625d(0x1a1));return _0x1c2b03[_0x5a625d(0x192)](join,_0x5d1c7d,_0x98ba9b);}export function buildRangerwrightCliEnv(_0x3c770f){const _0xfc1918=_0x5ede;return{'RANGERWRIGHT_SESSION':_0x3c770f['sessionId'],'RANGERWRIGHT_CONFIG':_0x3c770f['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0x3c770f['artifactDir'],..._0x3c770f[_0xfc1918(0x1a6)]?{'RANGERWRIGHT_SOCKET_PATH':_0x3c770f[_0xfc1918(0x1a6)]}:{}};}export function applyRangerwrightCliEnv(_0x2b9217,_0x20a426){const _0x241f40=_0x5ede,_0x1eec6f={'uhPzN':function(_0x535e0c,_0x1f515c){return _0x535e0c(_0x1f515c);}};Object[_0x241f40(0x186)](_0x2b9217,_0x1eec6f[_0x241f40(0x18e)](buildRangerwrightCliEnv,_0x20a426));}export function buildRangerwrightCliCommandPrefix(_0x5ba227=resolveRangerwrightCliBinary()){const _0x138116={'ZcDWm':function(_0x74bfd8,_0x270a62){return _0x74bfd8(_0x270a62);}};return _0x138116['ZcDWm'](quoteShellArg,_0x5ba227)+'\x20--json';}function getRangerwrightSubcommand(_0x15a07b){const _0x4903ec=_0x5ede,_0x49488e={'hIFWG':'unknown'};return _0x15a07b[0x0]??_0x49488e[_0x4903ec(0x188)];}export function buildRangerwrightCliInvocation(_0x21323c,_0x2362a5){const _0x58b3b7=_0x5ede,_0x4f8d13={'xvTAA':function(_0x5a8aa4){return _0x5a8aa4();},'aaDFu':_0x58b3b7(0x1ae)},_0x2e15a8=_0x21323c[_0x58b3b7(0x187)]??_0x4f8d13[_0x58b3b7(0x193)](resolveRangerwrightCliBinary),_0x4de6ac=[_0x4f8d13[_0x58b3b7(0x18c)],..._0x2362a5];return{'command':_0x2e15a8,'args':_0x4de6ac,'shellCommand':[quoteShellArg(_0x2e15a8),_0x4f8d13[_0x58b3b7(0x18c)],..._0x2362a5['map'](quoteShellArg)][_0x58b3b7(0x19c)]('\x20'),'subcommand':getRangerwrightSubcommand(_0x2362a5)};}function truncateOutput(_0x532125,_0x226886=0x7d0){return _0x532125['length']>_0x226886?_0x532125['slice'](0x0,_0x226886)+'...':_0x532125;}export async function runRangerwrightCliCommand(_0x5859fb){const _0x51e535=_0x5ede,_0x5f333f={'slRAU':_0x51e535(0x189),'tAofA':_0x51e535(0x1a8),'ojifK':function(_0x338855,_0x150d30){return _0x338855??_0x150d30;},'eFwfs':'ignore','nMpeF':function(_0x418899,_0x25ef1e){return _0x418899>_0x25ef1e;},'inhpF':function(_0x555a60,_0x3e4e72,_0x4c1e13){return _0x555a60(_0x3e4e72,_0x4c1e13);},'QNAgS':_0x51e535(0x19d),'iutoX':'error','jvhXD':'close'},_0x5a4e9b=buildRangerwrightCliInvocation(_0x5859fb,_0x5859fb['commandArgs']),_0x44a6c3={..._0x5859fb[_0x51e535(0x1ac)]??process['env'],...buildRangerwrightCliEnv(_0x5859fb)};return new Promise((_0x582e37,_0x360eb9)=>{const _0x26f276=_0x51e535,_0x3124f3={'ECZlw':_0x5f333f['slRAU'],'HaNkl':_0x5f333f[_0x26f276(0x19f)],'MjYHc':function(_0x1ae301,_0x26d7f1){return _0x1ae301(_0x26d7f1);},'zsNxV':function(_0x54813b,_0x48eea8){const _0x2d4570=_0x26f276;return _0x5f333f[_0x2d4570(0x1a2)](_0x54813b,_0x48eea8);},'kLjze':function(_0x1d3d91,_0x56847d){return _0x1d3d91(_0x56847d);}},_0x4a1948=spawn(_0x5a4e9b[_0x26f276(0x18b)],_0x5a4e9b['args'],{'cwd':_0x5859fb['cwd'],'env':_0x44a6c3,'stdio':[_0x5f333f['eFwfs'],_0x26f276(0x19e),'pipe']});let _0x38ca8a='',_0x398af2='',_0xccaa51=![];const _0x407dbe=_0x5859fb['timeoutMs']&&_0x5f333f['nMpeF'](_0x5859fb['timeoutMs'],0x0)?_0x5f333f[_0x26f276(0x19b)](setTimeout,()=>{const _0x366825=_0x26f276,_0x46ac7b={'AgHCV':_0x3124f3[_0x366825(0x1b1)]};_0xccaa51=!![],_0x4a1948['kill'](_0x3124f3[_0x366825(0x1a5)]),setTimeout(()=>{try{_0x4a1948['kill'](_0x46ac7b['AgHCV']);}catch{}},0x3e8);},_0x5859fb['timeoutMs']):null;_0x4a1948['stdout']?.['on'](_0x5f333f['QNAgS'],_0x243b22=>{_0x38ca8a+=_0x243b22['toString']();}),_0x4a1948['stderr']?.['on'](_0x5f333f['QNAgS'],_0x505bd4=>{const _0x5bbacb=_0x26f276;_0x398af2+=_0x505bd4[_0x5bbacb(0x1a3)]();}),_0x4a1948['on'](_0x5f333f['iutoX'],_0xbc8d55=>{if(_0x407dbe)clearTimeout(_0x407dbe);_0x360eb9(_0xbc8d55);}),_0x4a1948['on'](_0x5f333f[_0x26f276(0x197)],(_0x309307,_0x5142f4)=>{const _0x1bf00d=_0x26f276;if(_0x407dbe)clearTimeout(_0x407dbe);if(_0x309307===0x0){_0x3124f3['MjYHc'](_0x582e37,{'stdout':_0x38ca8a,'stderr':_0x398af2,'invocation':_0x5a4e9b});return;}const _0x319f28=_0xccaa51?_0x1bf00d(0x1ab)+_0x5859fb[_0x1bf00d(0x1a7)]+'ms':'exited\x20with\x20code='+_0x3124f3[_0x1bf00d(0x195)](_0x309307,'null')+'\x20signal='+_0x3124f3['zsNxV'](_0x5142f4,'null');_0x3124f3[_0x1bf00d(0x198)](_0x360eb9,new Error(_0x1bf00d(0x1af)+_0x5a4e9b['subcommand']+'\x20'+_0x319f28+'\x0astdout:\x20'+truncateOutput(_0x38ca8a)+_0x1bf00d(0x18f)+_0x3124f3['MjYHc'](truncateOutput,_0x398af2)));});});}export function parseRangerwrightCliCommand(_0x511d5c){const _0x270416=_0x511d5c['match'](/(?:^|\s)(?:"[^"]*rangerwright"|'[^']*rangerwright'|\S*rangerwright)(?:\s+--json)?\s+([a-z-]+)/);return _0x270416?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x3cabb6,_0x11d586){const _0x142e63=_0x2491,_0x4a2e95=_0x3cabb6();while(!![]){try{const _0x3ad94e=parseInt(_0x142e63(0xc4))/0x1+-parseInt(_0x142e63(0xde))/0x2*(-parseInt(_0x142e63(0xd8))/0x3)+parseInt(_0x142e63(0xef))/0x4*(-parseInt(_0x142e63(0xc0))/0x5)+-parseInt(_0x142e63(0xda))/0x6*(parseInt(_0x142e63(0xeb))/0x7)+-parseInt(_0x142e63(0xc2))/0x8+parseInt(_0x142e63(0xd0))/0x9+parseInt(_0x142e63(0xcc))/0xa;if(_0x3ad94e===_0x11d586)break;else _0x4a2e95['push'](_0x4a2e95['shift']());}catch(_0x3c656c){_0x4a2e95['push'](_0x4a2e95['shift']());}}}(_0x1d05,0x7a96a));import{existsSync}from'fs';import _0x29e424 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x2491(_0x1ae238,_0x433ccf){_0x1ae238=_0x1ae238-0xbe;const _0x1d057e=_0x1d05();let _0x2491a1=_0x1d057e[_0x1ae238];return _0x2491a1;}import{readActiveProfileName}from'./activeProfile.js';function _0x1d05(){const _0x3736e3=['54501CWLgTP','Local\x20profile','762vOsKUu','OVaJS','fQAme','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','46beReed','kuCDE','SAweO','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','Profile\x20\x22','XTLBM','pKDtn','bQTOB','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','SOuCD','envBaseUrl','status','nTNdr','10612jruWJM','length','env','RANGER_SESSION_STATE_PATH','1717872UbcyaP','`ranger\x20profile\x20add`\x20to\x20create\x20one.','cloud','10BbBkWX','list','3640256iXnSNP','IScrK','624PVHIyO','shynf','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','url','startPath','local','string','log','11427400GhLRze','cdpEndpoint','profile','authPath','4026753qbbIxo','wccgS','settings','baseUrl','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','name','domains'];_0x1d05=function(){return _0x3736e3;};return _0x1d05();}export async function resolveProfileContext(_0x806909){const _0x7fdcea=_0x2491,_0x3992c3={'shynf':function(_0x5b71e1){return _0x5b71e1();},'wccgS':function(_0xd31ed5,_0x56ba7e){return _0xd31ed5+_0x56ba7e;},'pKDtn':function(_0x43a220,_0x7ec8a2){return _0x43a220+_0x7ec8a2;},'kuCDE':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','TaqmE':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','isgYK':function(_0x5bf5e0,_0x5ae8ec){return _0x5bf5e0(_0x5ae8ec);},'bQTOB':function(_0x471e41,_0x41a11f){return _0x471e41(_0x41a11f);},'QOoqq':function(_0xebca67,_0x53320f){return _0xebca67 instanceof _0x53320f;},'ugztb':function(_0x32dfbf,_0x22ba1d){return _0x32dfbf===_0x22ba1d;},'nTNdr':function(_0x549637,_0x50aa59){return _0x549637&&_0x50aa59;},'oaQLE':_0x7fdcea(0xdd),'SOuCD':'source','ijfUu':'Cloud\x20profile\x20(recommended)','ajCZc':_0x7fdcea(0xbf),'XTLBM':function(_0x1216b7,_0x5796a9){return _0x1216b7(_0x5796a9);},'ZdUdM':function(_0x2d74d9,_0xcb5127,_0x5ed0b7){return _0x2d74d9(_0xcb5127,_0x5ed0b7);},'OVaJS':function(_0x1c30e4,_0x35a02d){return _0x1c30e4(_0x35a02d);},'IScrK':function(_0x15fc18,_0x2e446a){return _0x15fc18(_0x2e446a);}},_0x60a193=_0x806909[_0x7fdcea(0xce)];let _0x3c77af=_0x806909['profile']??await readActiveProfileName(),_0x5694cd=null;if(!_0x3c77af&&process[_0x7fdcea(0xed)]['RANGER_TEST_USERNAME']){const _0x420953=await _0x3992c3[_0x7fdcea(0xc5)](resolveAdHocProfile);_0x420953&&(_0x3c77af=_0x420953['name'],_0x5694cd=_0x420953['profile']);}if(!_0x3c77af)try{const _0x3f0333=await listCloudProfiles();if(_0x3f0333[_0x7fdcea(0xec)]===0x1){const _0xdb3af8=_0x3f0333[0x0];_0x3c77af=_0xdb3af8['name'],console[_0x7fdcea(0xcb)](_0x7fdcea(0xd5)+_0xdb3af8[_0x7fdcea(0xd6)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x3c77af)throw new Error(_0x3992c3[_0x7fdcea(0xd1)](_0x3992c3[_0x7fdcea(0xe4)](_0x3992c3['pKDtn']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x3992c3[_0x7fdcea(0xdf)])+_0x7fdcea(0xe1),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),_0x3992c3['TaqmE']));const _0x37ab15=_0x3992c3['isgYK'](getEnvDir,_0x3c77af),_0x2bee08=_0x3992c3['bQTOB'](existsSync,_0x37ab15);let _0x124437=_0x5694cd,_0x1559a5=![];if(!_0x124437)try{_0x124437=await fetchCloudProfile(_0x3c77af);if(!_0x124437)_0x1559a5=!![];}catch(_0x1520c6){_0x3992c3['QOoqq'](_0x1520c6,ApiError)&&_0x3992c3['ugztb'](_0x1520c6[_0x7fdcea(0xe9)],0x194)&&(_0x1559a5=!![]);}if(_0x3992c3[_0x7fdcea(0xea)](_0x60a193,_0x1559a5)&&!_0x2bee08&&!_0x124437)throw new Error('Profile\x20\x22'+_0x60a193+_0x7fdcea(0xe6)+_0x3992c3['oaQLE']+_0x7fdcea(0xbe));if(_0x124437&&_0x2bee08){let _0x5d571e=!![];if(isInteractive()){const {source:_0x1aecd4}=await _0x29e424['prompt']([{'type':_0x7fdcea(0xc1),'name':_0x3992c3[_0x7fdcea(0xe7)],'message':_0x7fdcea(0xe2)+_0x3c77af+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x3992c3['ijfUu'],'value':'cloud'},{'name':_0x7fdcea(0xd9),'value':_0x7fdcea(0xc9)}],'default':'cloud'}]);_0x5d571e=_0x3992c3['ugztb'](_0x1aecd4,_0x3992c3['ajCZc']);}if(!_0x5d571e)_0x124437=null;}const _0x37318d=readProfileOverrides(process['cwd'](),_0x3c77af);let _0x33431e=null,_0x1ff3a1,_0xfcdd91,_0x3b5458,_0x6fd28,_0x2ec204=null,_0x13d6f6;const _0x5ab405=_0x3992c3[_0x7fdcea(0xe3)](expandOverrides,_0x37318d);if(_0x124437){_0x33431e=_0x124437;const _0x5d854a=_0x124437[_0x7fdcea(0xd2)]??{},_0x75c96b=_0x3992c3['ZdUdM'](mergeCloudProfileSettings,_0x5d854a,_0x37318d??undefined),_0x1e1e6f={..._0x124437,'settings':_0x75c96b},_0x1c957f=process['env'][_0x7fdcea(0xee)];if(_0x1c957f){if(!existsSync(_0x1c957f))throw new Error('RANGER_SESSION_STATE_PATH='+_0x1c957f+'\x20does\x20not\x20exist.');_0x1ff3a1=_0x1c957f,_0xfcdd91=resolveEnvVars(_0x75c96b),_0x3b5458=_0x3992c3['isgYK'](Boolean,_0xfcdd91['cdpEndpoint']),_0x2ec204={'baseUrl':expandString(_0x5d854a[_0x7fdcea(0xd3)]),'startPath':_0x3992c3['OVaJS'](expandString,_0x5d854a[_0x7fdcea(0xc8)])};}else{const _0x1a414d=await resolveCloudProfileSession(_0x1e1e6f);_0x1ff3a1=_0x1a414d[_0x7fdcea(0xcf)],_0xfcdd91=_0x3992c3[_0x7fdcea(0xe3)](resolveEnvVars,_0x75c96b),_0x3b5458=_0x3992c3[_0x7fdcea(0xe5)](Boolean,_0xfcdd91['cdpEndpoint']),_0x2ec204={'baseUrl':_0x3992c3[_0x7fdcea(0xdb)](expandString,_0x5d854a[_0x7fdcea(0xd3)]),'startPath':_0x3992c3[_0x7fdcea(0xc3)](expandString,_0x5d854a['startPath'])},_0x13d6f6=_0x1a414d['resolvedEnv']?.[_0x7fdcea(0xd7)]?.[0x0];}}else{if(!_0x2bee08)throw new Error('Profile\x20\x22'+_0x3c77af+_0x7fdcea(0xd4)+_0x3c77af);const _0x5be47d=await loadSettings(_0x3c77af);_0xfcdd91=resolveEnvVars(_0x5be47d),_0x3b5458=Boolean(_0xfcdd91[_0x7fdcea(0xcd)]),_0x6fd28=_0xfcdd91[_0x7fdcea(0xd3)];}const _0x2fc745=readUrlEnvVars(),_0x3f2d3d=resolveProfileUrl({'flagBaseUrl':_0x806909[_0x7fdcea(0xd3)],'flagStartPath':_0x806909[_0x7fdcea(0xc8)],'envBaseUrl':_0x2fc745[_0x7fdcea(0xe8)],'envStartPath':_0x2fc745['envStartPath'],'localSettingsBaseUrl':_0x6fd28,'projectOverrides':_0x5ab405,'cloudSettings':_0x2ec204,'authEnvironmentDomain':_0x13d6f6}),_0x40ee67=_0x3f2d3d[_0x7fdcea(0xc7)]??_0x3f2d3d['baseUrl'];if(_0x3992c3['nTNdr'](!_0x40ee67,!_0x3b5458))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x3c77af+_0x7fdcea(0xc6)+_0x3c77af+'\x20baseUrl\x20<url>');return{'activeProfile':_0x3c77af,'resolvedCloudProfile':_0x33431e,'cloudAuthPath':_0x1ff3a1,'resolvedSettings':_0xfcdd91,'isCdpMode':_0x3b5458,'url':_0x40ee67,'startPath':_0x3f2d3d['startPath']};}function expandString(_0x35250c){const _0x26f66a=_0x2491,_0x52670e={'uTsKa':function(_0x4ea984,_0x4559f6){return _0x4ea984!==_0x4559f6;},'zsuTI':_0x26f66a(0xca)};if(_0x52670e['uTsKa'](typeof _0x35250c,_0x52670e['zsuTI']))return _0x35250c;return resolveEnvVars(_0x35250c);}function expandOverrides(_0x53faf9){const _0x485479=_0x2491,_0x277fac={'VAlqX':function(_0x2b88be,_0x59db23){return _0x2b88be(_0x59db23);},'Rwhps':function(_0x461dc1,_0xd06a0e){return _0x461dc1===_0xd06a0e;},'fQAme':'string','SAweO':function(_0x121ffb,_0x2a45dc){return _0x121ffb(_0x2a45dc);}};if(!_0x53faf9)return _0x53faf9;const _0x35f461={..._0x53faf9};return typeof _0x35f461[_0x485479(0xd3)]===_0x485479(0xca)&&(_0x35f461['baseUrl']=_0x277fac['VAlqX'](resolveEnvVars,_0x35f461['baseUrl'])),_0x277fac['Rwhps'](typeof _0x35f461[_0x485479(0xc8)],_0x277fac[_0x485479(0xdc)])&&(_0x35f461[_0x485479(0xc8)]=_0x277fac[_0x485479(0xe0)](resolveEnvVars,_0x35f461['startPath'])),_0x35f461;}
1
+ (function(_0x34bf50,_0x29ee42){const _0x42f873=_0x34b9,_0x8bc574=_0x34bf50();while(!![]){try{const _0x4ea79a=-parseInt(_0x42f873(0x172))/0x1*(-parseInt(_0x42f873(0x179))/0x2)+-parseInt(_0x42f873(0x15c))/0x3*(parseInt(_0x42f873(0x15d))/0x4)+parseInt(_0x42f873(0x17a))/0x5*(-parseInt(_0x42f873(0x156))/0x6)+-parseInt(_0x42f873(0x164))/0x7+parseInt(_0x42f873(0x16a))/0x8+-parseInt(_0x42f873(0x152))/0x9+parseInt(_0x42f873(0x159))/0xa;if(_0x4ea79a===_0x29ee42)break;else _0x8bc574['push'](_0x8bc574['shift']());}catch(_0x3ad023){_0x8bc574['push'](_0x8bc574['shift']());}}}(_0x5d45,0x7d3fd));import{existsSync}from'fs';import _0x391e06 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';function _0x34b9(_0x53337b,_0x15e91c){_0x53337b=_0x53337b-0x14e;const _0x5d45ee=_0x5d45();let _0x34b97e=_0x5d45ee[_0x53337b];return _0x34b97e;}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';function _0x5d45(){const _0x5e27cd=['\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','xXBLS','name','profile','WGgCr','7669272wYbKRL','OoYYt','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','cwkrz','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','cdpEndpoint','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','log','2prWHKH','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','`ranger\x20profile\x20add`\x20to\x20create\x20one.','string','startPath','envStartPath','length','241642MptXqu','281570rpqdTG','cloud','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','Local\x20profile','vQHFu','split','env','SXUCA','2027142rTQOoB','ERnRM','url','rzzJh','60wRWiXK','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','baseUrl','12188720xOrPPw','domains','Dqtuj','3OuRbdl','3182108nsgFon','ynvAb','Profile\x20\x22','list','JGGTY','lzOwY','hrMMn','2255729ljpueZ'];_0x5d45=function(){return _0x5e27cd;};return _0x5d45();}import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x389ac1){const _0x340566=_0x34b9,_0x21618b={'WGgCr':function(_0x4335c5){return _0x4335c5();},'QCGVz':function(_0x2022d2){return _0x2022d2();},'rzzJh':function(_0x39a1f6,_0xe4d875){return _0x39a1f6+_0xe4d875;},'FqgVw':_0x340566(0x173),'IfrZY':_0x340566(0x16e),'isqVD':function(_0x165ecc,_0x286a0b){return _0x165ecc(_0x286a0b);},'dmCKD':function(_0x233047,_0x472d56){return _0x233047===_0x472d56;},'hrMMn':function(_0x2dab65,_0x3e9af3){return _0x2dab65+_0x3e9af3;},'tGHVE':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','ynvAb':function(_0x497995,_0x230570){return _0x497995&&_0x230570;},'XeqCu':function(_0x27e964){return _0x27e964();},'SXUCA':'Cloud\x20profile\x20(recommended)','wGLvQ':_0x340566(0x17d),'HKrjw':'cloud','OoYYt':function(_0x50d177,_0x476c05){return _0x50d177===_0x476c05;},'ERnRM':function(_0x4205ef,_0x27fba5){return _0x4205ef??_0x27fba5;},'JGGTY':function(_0x2a696c,_0x9e9571){return _0x2a696c(_0x9e9571);},'lzOwY':function(_0x2f5a63,_0x19c581){return _0x2f5a63(_0x19c581);},'cwkrz':function(_0x58a592,_0x5e8224){return _0x58a592(_0x5e8224);},'vQHFu':function(_0x2466d0,_0x492a88){return _0x2466d0(_0x492a88);}},_0x392154=_0x389ac1['profile'];let _0x4acd12=_0x389ac1[_0x340566(0x168)]??await _0x21618b[_0x340566(0x169)](readActiveProfileName),_0x36f5f2=null;if(!_0x4acd12&&process[_0x340566(0x150)]['RANGER_TEST_USERNAME']){const _0x4717da=await resolveAdHocProfile();_0x4717da&&(_0x4acd12=_0x4717da['name'],_0x36f5f2=_0x4717da[_0x340566(0x168)]);}if(!_0x4acd12)try{const _0x34f788=await _0x21618b['QCGVz'](listCloudProfiles);if(_0x34f788[_0x340566(0x178)]===0x1){const _0x5ce5c9=_0x34f788[0x0];_0x4acd12=_0x5ce5c9[_0x340566(0x167)],console['log'](_0x340566(0x17c)+_0x5ce5c9[_0x340566(0x167)]),console[_0x340566(0x171)](_0x340566(0x170));}}catch{}if(!_0x4acd12)throw new Error(_0x21618b[_0x340566(0x155)](_0x21618b[_0x340566(0x155)](_0x21618b['FqgVw']+_0x21618b['IfrZY']+'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a',_0x340566(0x157)),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x889f2a=getEnvDir(_0x4acd12),_0x322202=_0x21618b['isqVD'](existsSync,_0x889f2a);let _0x128d3e=_0x36f5f2,_0x5d8549=![];if(!_0x128d3e)try{_0x128d3e=await fetchCloudProfile(_0x4acd12);if(!_0x128d3e)_0x5d8549=!![];}catch(_0x5beb61){_0x5beb61 instanceof ApiError&&_0x21618b['dmCKD'](_0x5beb61['status'],0x194)&&(_0x5d8549=!![]);}if(_0x392154&&_0x5d8549&&!_0x322202&&!_0x128d3e)throw new Error(_0x21618b['rzzJh'](_0x21618b[_0x340566(0x163)]('Profile\x20\x22'+_0x392154+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x21618b['tGHVE']),_0x340566(0x174)));if(_0x21618b[_0x340566(0x15e)](_0x128d3e,_0x322202)){let _0x38261c=!![];if(_0x21618b['XeqCu'](isInteractive)){const {source:_0x45eab6}=await _0x391e06['prompt']([{'type':_0x340566(0x160),'name':'source','message':_0x340566(0x15f)+_0x4acd12+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x21618b[_0x340566(0x151)],'value':_0x340566(0x17b)},{'name':_0x21618b['wGLvQ'],'value':'local'}],'default':_0x21618b['HKrjw']}]);_0x38261c=_0x21618b[_0x340566(0x16b)](_0x45eab6,'cloud');}if(!_0x38261c)_0x128d3e=null;}const _0x1d8169=readProfileOverrides(process['cwd'](),_0x4acd12);let _0x53a2bb=null,_0x5accba,_0x5b3919,_0x188007,_0x4a7cc1,_0x482fee=null,_0x5a8305;const _0xd0acaa=expandOverrides(_0x1d8169);if(_0x128d3e){_0x53a2bb=_0x128d3e;const _0x4d5770=_0x128d3e['settings']??{},_0x5d691b=mergeCloudProfileSettings(_0x4d5770,_0x21618b[_0x340566(0x153)](_0x1d8169,undefined)),_0x4db3a6={..._0x128d3e,'settings':_0x5d691b},_0x1592b8=process[_0x340566(0x150)]['RANGER_SESSION_STATE_PATH'];if(_0x1592b8){const _0x525acf='0|2|3|1|4'[_0x340566(0x14f)]('|');let _0x15b355=0x0;while(!![]){switch(_0x525acf[_0x15b355++]){case'0':if(!_0x21618b['isqVD'](existsSync,_0x1592b8))throw new Error('RANGER_SESSION_STATE_PATH='+_0x1592b8+'\x20does\x20not\x20exist.');continue;case'1':_0x188007=_0x21618b['isqVD'](Boolean,_0x5b3919[_0x340566(0x16f)]);continue;case'2':_0x5accba=_0x1592b8;continue;case'3':_0x5b3919=resolveEnvVars(_0x5d691b);continue;case'4':_0x482fee={'baseUrl':_0x21618b['isqVD'](expandString,_0x4d5770[_0x340566(0x158)]),'startPath':expandString(_0x4d5770[_0x340566(0x176)])};continue;}break;}}else{const _0x5ba63f=await _0x21618b[_0x340566(0x161)](resolveCloudProfileSession,_0x4db3a6);_0x5accba=_0x5ba63f['authPath'],_0x5b3919=_0x21618b[_0x340566(0x162)](resolveEnvVars,_0x5ba63f['settings']),_0x188007=Boolean(_0x5b3919['cdpEndpoint']),_0x482fee={'baseUrl':_0x21618b[_0x340566(0x16d)](expandString,_0x4d5770[_0x340566(0x158)]),'startPath':_0x21618b[_0x340566(0x161)](expandString,_0x4d5770['startPath'])},_0x5a8305=_0x5ba63f['resolvedEnv']?.[_0x340566(0x15a)]?.[0x0];}}else{if(!_0x322202)throw new Error('Profile\x20\x22'+_0x4acd12+_0x340566(0x165)+_0x4acd12);const _0x11af56=await _0x21618b['isqVD'](loadSettings,_0x4acd12);_0x5b3919=_0x21618b['cwkrz'](resolveEnvVars,_0x11af56),_0x188007=_0x21618b['isqVD'](Boolean,_0x5b3919[_0x340566(0x16f)]),_0x4a7cc1=_0x5b3919['baseUrl'];}const _0x314cbf=readUrlEnvVars(),_0x321889=_0x21618b[_0x340566(0x14e)](resolveProfileUrl,{'flagBaseUrl':_0x389ac1[_0x340566(0x158)],'flagStartPath':_0x389ac1['startPath'],'envBaseUrl':_0x314cbf['envBaseUrl'],'envStartPath':_0x314cbf[_0x340566(0x177)],'localSettingsBaseUrl':_0x4a7cc1,'projectOverrides':_0xd0acaa,'cloudSettings':_0x482fee,'authEnvironmentDomain':_0x5a8305}),_0x210fff=_0x321889[_0x340566(0x154)]??_0x321889[_0x340566(0x158)];if(_0x21618b['ynvAb'](!_0x210fff,!_0x188007))throw new Error(_0x340566(0x16c)+_0x4acd12+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x4acd12+'\x20baseUrl\x20<url>');return{'activeProfile':_0x4acd12,'resolvedCloudProfile':_0x53a2bb,'cloudAuthPath':_0x5accba,'resolvedSettings':_0x5b3919,'isCdpMode':_0x188007,'url':_0x210fff,'startPath':_0x321889['startPath']};}function expandString(_0x2daf27){const _0x6365db=_0x34b9,_0x387212={'TBpmY':function(_0x5ec85c,_0x56445a){return _0x5ec85c(_0x56445a);}};if(typeof _0x2daf27!==_0x6365db(0x175))return _0x2daf27;return _0x387212['TBpmY'](resolveEnvVars,_0x2daf27);}function expandOverrides(_0x2a11e0){const _0x3ca76c=_0x34b9,_0x5b1696={'xXBLS':function(_0xbc8914,_0x15b91d){return _0xbc8914===_0x15b91d;},'Dqtuj':'string'};if(!_0x2a11e0)return _0x2a11e0;const _0x4bb880={..._0x2a11e0};return _0x5b1696[_0x3ca76c(0x166)](typeof _0x4bb880['baseUrl'],_0x5b1696[_0x3ca76c(0x15b)])&&(_0x4bb880[_0x3ca76c(0x158)]=resolveEnvVars(_0x4bb880[_0x3ca76c(0x158)])),_0x5b1696[_0x3ca76c(0x166)](typeof _0x4bb880[_0x3ca76c(0x176)],_0x5b1696[_0x3ca76c(0x15b)])&&(_0x4bb880['startPath']=resolveEnvVars(_0x4bb880['startPath'])),_0x4bb880;}
@@ -1 +1 @@
1
- const _0x108b80=_0x1fc1;(function(_0x46448b,_0x165538){const _0x2b89c9=_0x1fc1,_0x43711e=_0x46448b();while(!![]){try{const _0x3cd974=-parseInt(_0x2b89c9(0x1a9))/0x1*(-parseInt(_0x2b89c9(0x1b1))/0x2)+-parseInt(_0x2b89c9(0x1ae))/0x3+-parseInt(_0x2b89c9(0x19e))/0x4*(-parseInt(_0x2b89c9(0x19a))/0x5)+parseInt(_0x2b89c9(0x1ac))/0x6+-parseInt(_0x2b89c9(0x1aa))/0x7*(parseInt(_0x2b89c9(0x1b4))/0x8)+-parseInt(_0x2b89c9(0x1af))/0x9*(-parseInt(_0x2b89c9(0x19c))/0xa)+-parseInt(_0x2b89c9(0x19d))/0xb;if(_0x3cd974===_0x165538)break;else _0x43711e['push'](_0x43711e['shift']());}catch(_0x1c516e){_0x43711e['push'](_0x43711e['shift']());}}}(_0xd715,0xf0945));function firstDefined(..._0x197929){const _0x4233f9={'UzhyV':function(_0x12ad22,_0x5462f7){return _0x12ad22!==_0x5462f7;}};for(const _0x4d9d83 of _0x197929){if(_0x4d9d83!==undefined&&_0x4d9d83!==null&&_0x4233f9['UzhyV'](_0x4d9d83,''))return _0x4d9d83;}return undefined;}function _0xd715(){const _0x376d0f=['SFXjT','djrzM','startPath','DTUcW','test','slice','10nxvyGP','3049193CbkkkZ','DstZx','9982986QOVtsq','flagBaseUrl','361386yLqAJM','3465otEZLx','RANGER_START_PATH','171788wxvCTE','authEnvironmentDomain','envStartPath','8mgDhMK','env','TghJS','projectOverrides','1055mMEdaC','AdHqj','47050ukVOaF','45623083uuImFX','25684LNvCjL','flagStartPath','baseUrl','endsWith','cloudSettings'];_0xd715=function(){return _0x376d0f;};return _0xd715();}function normalizeAuthEnvironmentDomain(_0x424e47){const _0x55a707=_0x1fc1;if(!_0x424e47)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x55a707(0x1a7)](_0x424e47))return _0x424e47;return'https://'+_0x424e47;}function _0x1fc1(_0x549833,_0x42b150){_0x549833=_0x549833-0x198;const _0xd71583=_0xd715();let _0x1fc18a=_0xd71583[_0x549833];return _0x1fc18a;}export function resolveBaseUrl(_0x3914f6){const _0x477bc0=_0x1fc1,_0x13ece1={'GuMpy':function(_0x5bed8d,_0x7b2a6){return _0x5bed8d in _0x7b2a6;},'SFXjT':function(_0xcfe05c,_0x265308){return _0xcfe05c===_0x265308;}},_0x4a3bd0=_0x3914f6[_0x477bc0(0x199)],_0x30e7c8=!!_0x4a3bd0&&_0x13ece1['GuMpy'](_0x477bc0(0x1a0),_0x4a3bd0),_0x24ee1a=_0x4a3bd0?.[_0x477bc0(0x1a0)],_0x3c12dd=!(_0x30e7c8&&_0x13ece1[_0x477bc0(0x1a3)](_0x24ee1a,null));return firstDefined(_0x3914f6[_0x477bc0(0x1ad)],_0x3914f6['envBaseUrl'],_0x3914f6['localSettingsBaseUrl'],_0x13ece1[_0x477bc0(0x1a3)](typeof _0x24ee1a,'string')?_0x24ee1a:undefined,_0x3c12dd?_0x3914f6['cloudSettings']?.['baseUrl']:undefined,_0x3c12dd?normalizeAuthEnvironmentDomain(_0x3914f6[_0x477bc0(0x1b2)]):undefined);}export function resolveStartPath(_0x55833f){const _0x34adfa=_0x1fc1,_0x37bc47={'djrzM':function(_0x483b9e,_0x48053c){return _0x483b9e in _0x48053c;},'AdHqj':function(_0xd27719,_0x271197){return _0xd27719===_0x271197;},'TghJS':function(_0x2d5c67,_0x689133,_0x2a7c83,_0x3a5398,_0x55d034){return _0x2d5c67(_0x689133,_0x2a7c83,_0x3a5398,_0x55d034);},'DTUcW':'string'},_0x4e0f6e=_0x55833f[_0x34adfa(0x199)],_0x609b0c=!!_0x4e0f6e&&_0x37bc47[_0x34adfa(0x1a4)](_0x34adfa(0x1a5),_0x4e0f6e),_0x3eab8c=_0x4e0f6e?.['startPath'],_0x578cfa=!(_0x609b0c&&_0x37bc47[_0x34adfa(0x19b)](_0x3eab8c,null));return _0x37bc47[_0x34adfa(0x198)](firstDefined,_0x55833f[_0x34adfa(0x19f)],_0x55833f[_0x34adfa(0x1b3)],typeof _0x3eab8c===_0x37bc47[_0x34adfa(0x1a6)]?_0x3eab8c:undefined,_0x578cfa?_0x55833f[_0x34adfa(0x1a2)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x504f74,_0x5d2269){const _0x5b628f=_0x1fc1,_0x567091={'Waabk':function(_0x10c211,_0x57b9a3){return _0x10c211+_0x57b9a3;},'DstZx':function(_0x3115fb,_0x334dd6){return _0x3115fb+_0x334dd6;}};if(!_0x504f74)return undefined;if(!_0x5d2269)return _0x504f74;const _0x41dddd=_0x504f74[_0x5b628f(0x1a1)]('/')?_0x504f74[_0x5b628f(0x1a8)](0x0,-0x1):_0x504f74,_0x573b75=_0x5d2269['startsWith']('/')?_0x5d2269:_0x567091['Waabk']('/',_0x5d2269);return _0x567091[_0x5b628f(0x1ab)](_0x41dddd,_0x573b75);}export function resolveProfileUrl(_0x2eafba){const _0x1cb1f4=resolveBaseUrl(_0x2eafba),_0x2e1a93=resolveStartPath(_0x2eafba);return{'baseUrl':_0x1cb1f4,'startPath':_0x2e1a93,'url':joinBaseAndPath(_0x1cb1f4,_0x2e1a93)};}export function readUrlEnvVars(_0x57a834=process[_0x108b80(0x1b5)]){const _0x4c5825=_0x108b80;return{'envBaseUrl':_0x57a834['RANGER_BASE_URL'],'envStartPath':_0x57a834[_0x4c5825(0x1b0)]};}
1
+ const _0x24a618=_0x2d41;(function(_0x3385d2,_0x126ecd){const _0x1991bb=_0x2d41,_0x1ad8b3=_0x3385d2();while(!![]){try{const _0xb56658=-parseInt(_0x1991bb(0xea))/0x1*(parseInt(_0x1991bb(0xe8))/0x2)+-parseInt(_0x1991bb(0xf9))/0x3*(-parseInt(_0x1991bb(0xe9))/0x4)+-parseInt(_0x1991bb(0xf0))/0x5*(-parseInt(_0x1991bb(0x103))/0x6)+-parseInt(_0x1991bb(0xf2))/0x7+parseInt(_0x1991bb(0xf5))/0x8*(-parseInt(_0x1991bb(0xfa))/0x9)+-parseInt(_0x1991bb(0xf6))/0xa+parseInt(_0x1991bb(0xfe))/0xb;if(_0xb56658===_0x126ecd)break;else _0x1ad8b3['push'](_0x1ad8b3['shift']());}catch(_0x113af0){_0x1ad8b3['push'](_0x1ad8b3['shift']());}}}(_0x278d,0xc5f57));function firstDefined(..._0x484418){for(const _0x1abe13 of _0x484418){if(_0x1abe13!==undefined&&_0x1abe13!==null&&_0x1abe13!=='')return _0x1abe13;}return undefined;}function normalizeAuthEnvironmentDomain(_0x41923f){const _0x5101e2=_0x2d41;if(!_0x41923f)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x5101e2(0xf3)](_0x41923f))return _0x41923f;return'https://'+_0x41923f;}export function resolveBaseUrl(_0xb30d66){const _0x2bb4c6=_0x2d41,_0x15ed93={'IzNIq':function(_0x5011ca,_0x22c7d9){return _0x5011ca in _0x22c7d9;},'rnjRX':function(_0x5455d9,_0x14ef7f){return _0x5455d9===_0x14ef7f;},'VOoXA':function(_0x461708,_0x1ef718,_0x4a6c36,_0x12ef11,_0x2f12e2,_0x3226a2,_0x18d543){return _0x461708(_0x1ef718,_0x4a6c36,_0x12ef11,_0x2f12e2,_0x3226a2,_0x18d543);},'jSSds':function(_0x364740,_0x59b9ea){return _0x364740===_0x59b9ea;},'UHxDO':'string','PirTp':function(_0x5dba6b,_0x1169e7){return _0x5dba6b(_0x1169e7);}},_0x1cfe46=_0xb30d66['projectOverrides'],_0x5589e0=!!_0x1cfe46&&_0x15ed93[_0x2bb4c6(0xfd)]('baseUrl',_0x1cfe46),_0x143e55=_0x1cfe46?.[_0x2bb4c6(0x104)],_0x1d12ed=!(_0x5589e0&&_0x15ed93['rnjRX'](_0x143e55,null));return _0x15ed93['VOoXA'](firstDefined,_0xb30d66['flagBaseUrl'],_0xb30d66[_0x2bb4c6(0xeb)],_0xb30d66['localSettingsBaseUrl'],_0x15ed93[_0x2bb4c6(0x100)](typeof _0x143e55,_0x15ed93[_0x2bb4c6(0x101)])?_0x143e55:undefined,_0x1d12ed?_0xb30d66['cloudSettings']?.['baseUrl']:undefined,_0x1d12ed?_0x15ed93[_0x2bb4c6(0xf1)](normalizeAuthEnvironmentDomain,_0xb30d66[_0x2bb4c6(0xf4)]):undefined);}export function resolveStartPath(_0x2e8a20){const _0xa38141=_0x2d41,_0xc2200c={'iWwJW':_0xa38141(0xe7),'ROSig':function(_0x513b8e,_0x44e427){return _0x513b8e===_0x44e427;},'wNiyn':function(_0x51babf,_0x47c9c7){return _0x51babf===_0x47c9c7;}},_0xbbcda6=_0x2e8a20[_0xa38141(0xef)],_0x4f5d94=!!_0xbbcda6&&_0xc2200c['iWwJW']in _0xbbcda6,_0x117593=_0xbbcda6?.['startPath'],_0xce9b14=!(_0x4f5d94&&_0xc2200c[_0xa38141(0xec)](_0x117593,null));return firstDefined(_0x2e8a20[_0xa38141(0xe6)],_0x2e8a20[_0xa38141(0xfc)],_0xc2200c['wNiyn'](typeof _0x117593,_0xa38141(0xff))?_0x117593:undefined,_0xce9b14?_0x2e8a20['cloudSettings']?.[_0xa38141(0xe7)]:undefined);}export function joinBaseAndPath(_0x110f5f,_0x17fc51){const _0x280dc6=_0x2d41;if(!_0x110f5f)return undefined;if(!_0x17fc51)return _0x110f5f;const _0x585bbe=_0x110f5f[_0x280dc6(0xf7)]('/')?_0x110f5f['slice'](0x0,-0x1):_0x110f5f,_0x3af7d8=_0x17fc51['startsWith']('/')?_0x17fc51:'/'+_0x17fc51;return _0x585bbe+_0x3af7d8;}function _0x2d41(_0x571cde,_0x37d5d2){_0x571cde=_0x571cde-0xe6;const _0x278db3=_0x278d();let _0x2d41c4=_0x278db3[_0x571cde];return _0x2d41c4;}export function resolveProfileUrl(_0x2f3cea){const _0x41ab8f=_0x2d41,_0xad357={'roOSE':function(_0x68cace,_0x4c67ec){return _0x68cace(_0x4c67ec);},'VldZO':function(_0x1b1757,_0x3844fd){return _0x1b1757(_0x3844fd);}},_0x3e7aa9=_0xad357[_0x41ab8f(0xfb)](resolveBaseUrl,_0x2f3cea),_0x18d0ff=_0xad357[_0x41ab8f(0xf8)](resolveStartPath,_0x2f3cea);return{'baseUrl':_0x3e7aa9,'startPath':_0x18d0ff,'url':joinBaseAndPath(_0x3e7aa9,_0x18d0ff)};}export function readUrlEnvVars(_0x5f67c6=process[_0x24a618(0xed)]){const _0x43479a=_0x24a618;return{'envBaseUrl':_0x5f67c6[_0x43479a(0x102)],'envStartPath':_0x5f67c6[_0x43479a(0xee)]};}function _0x278d(){const _0x408f28=['roOSE','envStartPath','IzNIq','41445833QoNLDr','string','jSSds','UHxDO','RANGER_BASE_URL','6uVDskj','baseUrl','flagStartPath','startPath','16gvHcBn','833876GYRvYt','129915JXLJfJ','envBaseUrl','ROSig','env','RANGER_START_PATH','projectOverrides','1749050qvVgRq','PirTp','10892434lpbLLt','test','authEnvironmentDomain','8jsMCvT','13548270wRKKUv','endsWith','VldZO','18ySCYoB','5466411fBqZAe'];_0x278d=function(){return _0x408f28;};return _0x278d();}
@@ -1 +1 @@
1
- function _0x1dcf(){const _0x3b5bad=['2077272NMSRqp','7qkWyxI','982990QNYPmy','baseDelayMs','1159078IBNwdI','DKbsp','ms...','QnghS','12NiMfHj','MUnqY','1378664CpeaiA','1928152NhaxcP','33953ZwkEJB','\x20failed\x20(attempt\x20','993378dpopwm'];_0x1dcf=function(){return _0x3b5bad;};return _0x1dcf();}(function(_0xf049e7,_0x879a4d){const _0x4b74c6=_0x5a42,_0x51c30f=_0xf049e7();while(!![]){try{const _0x2ba496=parseInt(_0x4b74c6(0xc7))/0x1+-parseInt(_0x4b74c6(0xce))/0x2+parseInt(_0x4b74c6(0xc9))/0x3+-parseInt(_0x4b74c6(0xc5))/0x4+parseInt(_0x4b74c6(0xcc))/0x5*(parseInt(_0x4b74c6(0xd2))/0x6)+-parseInt(_0x4b74c6(0xcb))/0x7*(-parseInt(_0x4b74c6(0xc6))/0x8)+parseInt(_0x4b74c6(0xca))/0x9;if(_0x2ba496===_0x879a4d)break;else _0x51c30f['push'](_0x51c30f['shift']());}catch(_0x136db3){_0x51c30f['push'](_0x51c30f['shift']());}}}(_0x1dcf,0x4aae9));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x5a42(_0x5bdcec,_0x5f0dc7){_0x5bdcec=_0x5bdcec-0xc5;const _0x1dcf28=_0x1dcf();let _0x5a42be=_0x1dcf28[_0x5bdcec];return _0x5a42be;}export async function withRetry(_0x39215c,_0x7213a9){const _0xe2c04c=_0x5a42,_0x22490e={'QnghS':function(_0x123913,_0x339aba){return _0x123913(_0x339aba);},'DKbsp':function(_0x108804,_0x2a5c6a){return _0x108804<_0x2a5c6a;},'MUnqY':function(_0x26b841,_0x20f98c){return _0x26b841+_0x20f98c;}},_0xb73311=_0x7213a9?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x1e93bd=_0x7213a9?.[_0xe2c04c(0xcd)]??DEFAULT_BASE_DELAY_MS;let _0x1cca23;for(let _0x411f51=0x0;_0x411f51<=_0xb73311;_0x411f51++){try{return await _0x39215c();}catch(_0x44ae84){_0x1cca23=_0x44ae84 instanceof Error?_0x44ae84:new Error(_0x22490e[_0xe2c04c(0xd1)](String,_0x44ae84));if(_0x22490e[_0xe2c04c(0xcf)](_0x411f51,_0xb73311)){const _0x2663d4=_0x1e93bd*Math['pow'](0x2,_0x411f51);_0x7213a9?.['label']&&console['error'](_0x7213a9['label']+_0xe2c04c(0xc8)+(_0x411f51+0x1)+'/'+_0x22490e[_0xe2c04c(0xd3)](_0xb73311,0x1)+'),\x20retrying\x20in\x20'+_0x2663d4+_0xe2c04c(0xd0)),await new Promise(_0x3090e1=>setTimeout(_0x3090e1,_0x2663d4));}}}throw _0x1cca23;}
1
+ (function(_0x307e9b,_0x4ce626){const _0x2aee83=_0x3508,_0xadc4cd=_0x307e9b();while(!![]){try{const _0x56d3b3=parseInt(_0x2aee83(0x16e))/0x1+parseInt(_0x2aee83(0x175))/0x2*(-parseInt(_0x2aee83(0x16b))/0x3)+parseInt(_0x2aee83(0x169))/0x4*(parseInt(_0x2aee83(0x16a))/0x5)+-parseInt(_0x2aee83(0x168))/0x6*(-parseInt(_0x2aee83(0x166))/0x7)+parseInt(_0x2aee83(0x171))/0x8*(-parseInt(_0x2aee83(0x172))/0x9)+parseInt(_0x2aee83(0x167))/0xa*(parseInt(_0x2aee83(0x174))/0xb)+-parseInt(_0x2aee83(0x16c))/0xc*(parseInt(_0x2aee83(0x16f))/0xd);if(_0x56d3b3===_0x4ce626)break;else _0xadc4cd['push'](_0xadc4cd['shift']());}catch(_0x4822e5){_0xadc4cd['push'](_0xadc4cd['shift']());}}}(_0x2087,0x4ce9d));function _0x3508(_0x5d914b,_0x4b223b){_0x5d914b=_0x5d914b-0x166;const _0x2087e2=_0x2087();let _0x350819=_0x2087e2[_0x5d914b];return _0x350819;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x165d4a,_0x4c1a75){const _0x597caa=_0x3508,_0x45dd5f={'jSLZv':function(_0x49b762,_0x2873e4){return _0x49b762 instanceof _0x2873e4;},'faEdn':function(_0x5a8f3e,_0x33eebe){return _0x5a8f3e*_0x33eebe;},'evYcl':function(_0x50158e,_0x222cf8){return _0x50158e+_0x222cf8;}},_0x2a9fe3=_0x4c1a75?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x55c1d1=_0x4c1a75?.[_0x597caa(0x16d)]??DEFAULT_BASE_DELAY_MS;let _0x419eff;for(let _0x551985=0x0;_0x551985<=_0x2a9fe3;_0x551985++){try{return await _0x165d4a();}catch(_0x2fe8b9){_0x419eff=_0x45dd5f['jSLZv'](_0x2fe8b9,Error)?_0x2fe8b9:new Error(String(_0x2fe8b9));if(_0x551985<_0x2a9fe3){const _0x113b01=_0x45dd5f[_0x597caa(0x173)](_0x55c1d1,Math['pow'](0x2,_0x551985));_0x4c1a75?.['label']&&console[_0x597caa(0x177)](_0x4c1a75[_0x597caa(0x176)]+'\x20failed\x20(attempt\x20'+(_0x551985+0x1)+'/'+_0x45dd5f['evYcl'](_0x2a9fe3,0x1)+_0x597caa(0x170)+_0x113b01+'ms...'),await new Promise(_0x43eabb=>setTimeout(_0x43eabb,_0x113b01));}}}throw _0x419eff;}function _0x2087(){const _0x41cd71=['baseDelayMs','611225pccwTt','78572KcxINW','),\x20retrying\x20in\x20','8DtzqWz','3515013mDDfeb','faEdn','11UCAZCt','16LQkGVH','label','error','268247yqEUmh','4602940ccYIsD','12GrLUMd','58612GieTBr','5zNEgAm','42267erOWOB','684jqgzFL'];_0x2087=function(){return _0x41cd71;};return _0x2087();}
@@ -1 +1 @@
1
- const _0x4b0824=_0x5351;(function(_0x564d09,_0x3d1e3c){const _0x1880f4=_0x5351,_0x3b3112=_0x564d09();while(!![]){try{const _0xa23e49=parseInt(_0x1880f4(0x181))/0x1*(-parseInt(_0x1880f4(0x175))/0x2)+parseInt(_0x1880f4(0x163))/0x3*(parseInt(_0x1880f4(0x151))/0x4)+-parseInt(_0x1880f4(0x16f))/0x5+-parseInt(_0x1880f4(0x161))/0x6*(-parseInt(_0x1880f4(0x15a))/0x7)+parseInt(_0x1880f4(0x16b))/0x8+-parseInt(_0x1880f4(0x157))/0x9+parseInt(_0x1880f4(0x16d))/0xa;if(_0xa23e49===_0x3d1e3c)break;else _0x3b3112['push'](_0x3b3112['shift']());}catch(_0x6b8f99){_0x3b3112['push'](_0x3b3112['shift']());}}}(_0x28ed,0xc0692));import*as _0x40578d from'fs';import*as _0x494f09 from'path';function _0x28ed(){const _0x57e6f6=['3741488DlOOkW','NOVcz','19487280RSWAkk','XNJUK','2933855rUABgy','YhTRW','Anomr','olnZI','fymwe','dknHf','10xHZigD','dzLIe','sessions','main','VtHee','stringify','now','mkdirSync','prompted','parse','tBWAs','master','154263toXYxE','featureId','VwqRs','.ranger_cache.json','212tzoVkX','registeredAt','FrNgL','adMED','branches','trim','5636223nKRfhC','currentBranch','OBJhl','14315PjjJgG','ObrZu','writeFileSync','Ogtpa','ftIsu','iAjjX','lastEnabledSessionClearedAt','396IjsVlH','git\x20rev-parse\x20--abbrev-ref\x20HEAD','12513KBWgDL','pipe','dirname','tdwBR','UnsUY','bHeAI','LBqMU','enabled'];_0x28ed=function(){return _0x57e6f6;};return _0x28ed();}import*as _0x180567 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x494f09['join'](_0x180567['homedir'](),'.claude',_0x4b0824(0x184));function _0x5351(_0x40bb56,_0x1b485){_0x40bb56=_0x40bb56-0x151;const _0x28ed4c=_0x28ed();let _0x535151=_0x28ed4c[_0x40bb56];return _0x535151;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x15cfee=_0x4b0824;try{if(_0x40578d['existsSync'](CACHE_FILE)){const _0x4690f4=JSON[_0x15cfee(0x17e)](_0x40578d['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x4690f4['sessions']||{},'branches':_0x4690f4[_0x15cfee(0x155)]||{},'lastEnabledSessionClearedAt':_0x4690f4[_0x15cfee(0x160)]};}}catch{}return createEmptyCache();}function saveCache(_0x14208c){const _0xca028b=_0x4b0824;try{const _0x3e2bfa=_0x494f09[_0xca028b(0x165)](CACHE_FILE);!_0x40578d['existsSync'](_0x3e2bfa)&&_0x40578d[_0xca028b(0x17c)](_0x3e2bfa,{'recursive':!![]}),_0x40578d[_0xca028b(0x15c)](CACHE_FILE,JSON[_0xca028b(0x17a)](_0x14208c,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58be8d=_0x4b0824,_0x4bb43e={'dknHf':function(_0x5dbd22,_0x5f2b42,_0x20de43){return _0x5dbd22(_0x5f2b42,_0x20de43);},'FrNgL':_0x58be8d(0x164),'DErIA':function(_0x5b7ebd,_0x1582b8){return _0x5b7ebd===_0x1582b8;}};try{const _0x1ca2c2=_0x4bb43e[_0x58be8d(0x174)](execSync,_0x58be8d(0x162),{'encoding':'utf-8','stdio':[_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e['FrNgL']]})[_0x58be8d(0x156)]();if(!_0x1ca2c2||_0x4bb43e['DErIA'](_0x1ca2c2,'HEAD'))return null;return _0x1ca2c2;}catch{return null;}}export function enableBranch(_0x2a950a){const _0x25a4fa=_0x4b0824,_0x3aba52=loadCache();_0x3aba52[_0x25a4fa(0x155)][_0x2a950a]=!![],saveCache(_0x3aba52);}export function disableBranch(_0x48d85d){const _0x3ae8c7={'WJIMe':function(_0x5a3e25){return _0x5a3e25();},'PmCmQ':function(_0x3ceaaf,_0x3ddbe4){return _0x3ceaaf(_0x3ddbe4);}},_0x2fa2c6=_0x3ae8c7['WJIMe'](loadCache);delete _0x2fa2c6['branches'][_0x48d85d],_0x3ae8c7['PmCmQ'](saveCache,_0x2fa2c6);}export function isBranchEnabled(_0x3eee5f){const _0x2d6cb1=_0x4b0824,_0x14970f={'sSeQz':function(_0x3bc522){return _0x3bc522();},'OBJhl':function(_0x41d746,_0x42d155){return _0x41d746===_0x42d155;}},_0x511933=_0x14970f['sSeQz'](loadCache);return _0x14970f[_0x2d6cb1(0x159)](_0x511933[_0x2d6cb1(0x155)][_0x3eee5f],!![]);}function getOrCreateSession(_0x140fb0,_0x41197d){const _0x339471=_0x4b0824;return!_0x140fb0['sessions'][_0x41197d]&&(_0x140fb0[_0x339471(0x177)][_0x41197d]={}),_0x140fb0['sessions'][_0x41197d];}export function enableSession(_0x4d83e2){const _0x5d1283=_0x4b0824,_0xa63c56={'NOVcz':function(_0xee481e,_0x15b637,_0x4264ed){return _0xee481e(_0x15b637,_0x4264ed);},'BqdsA':function(_0x5973c3,_0x45b99a){return _0x5973c3!==_0x45b99a;}},_0x4a1ddb=loadCache(),_0x11c3a7=_0xa63c56[_0x5d1283(0x16c)](getOrCreateSession,_0x4a1ddb,_0x4d83e2);_0x11c3a7[_0x5d1283(0x16a)]=!![];const _0x526b6d=getCurrentBranch();_0x526b6d&&_0x526b6d!==_0x5d1283(0x178)&&_0xa63c56['BqdsA'](_0x526b6d,_0x5d1283(0x180))&&(_0x4a1ddb[_0x5d1283(0x155)][_0x526b6d]=!![],_0x11c3a7['currentBranch']=_0x526b6d),saveCache(_0x4a1ddb);}export function isSessionEnabled(_0x368dff){const _0x3a0122=_0x4b0824,_0x439d19={'olnZI':function(_0x27d082){return _0x27d082();},'Yhpcd':function(_0x1c9d2a,_0x5c3f05){return _0x1c9d2a===_0x5c3f05;},'VtHee':function(_0x233fd6,_0x2067c1){return _0x233fd6===_0x2067c1;}},_0x35e86b=_0x439d19[_0x3a0122(0x172)](loadCache),_0x51738a=getCurrentBranch();if(!_0x51738a||_0x439d19['Yhpcd'](_0x51738a,_0x3a0122(0x178))||_0x439d19[_0x3a0122(0x179)](_0x51738a,'master'))return _0x35e86b['sessions'][_0x368dff]?.[_0x3a0122(0x16a)]===!![];const _0x81d06=_0x439d19[_0x3a0122(0x179)](_0x35e86b[_0x3a0122(0x155)][_0x51738a],!![]),_0x11ad53=_0x439d19['VtHee'](_0x35e86b[_0x3a0122(0x177)][_0x368dff]?.['enabled'],!![]);return _0x81d06||_0x11ad53;}export function disableSession(_0x130a85){const _0x181940=_0x4b0824,_0x57c9fd={'Ogtpa':function(_0x26e413){return _0x26e413();},'VODgz':function(_0x4f387e,_0x234bfd,_0x5b031d){return _0x4f387e(_0x234bfd,_0x5b031d);},'uiwiJ':function(_0x3083fe,_0x5c036b){return _0x3083fe(_0x5c036b);}},_0x18a9fd=_0x57c9fd[_0x181940(0x15d)](loadCache),_0x58203e=_0x57c9fd['VODgz'](getOrCreateSession,_0x18a9fd,_0x130a85);_0x58203e['enabled']=![],_0x57c9fd['uiwiJ'](saveCache,_0x18a9fd);}export function updateBranchTracking(_0x5e913f){const _0x350c82=_0x4b0824,_0x3d9fab={'UnsUY':function(_0x3e5295,_0x194b8a){return _0x3e5295===_0x194b8a;},'ObrZu':'main','yrPFO':function(_0x3f4f5d,_0x36e76d){return _0x3f4f5d===_0x36e76d;},'Hwvpe':'master'},_0x1119ca=loadCache(),_0x4401d2=_0x1119ca[_0x350c82(0x177)][_0x5e913f];if(!_0x4401d2?.[_0x350c82(0x16a)])return;const _0xe16086=getCurrentBranch();if(!_0xe16086||_0x3d9fab[_0x350c82(0x167)](_0xe16086,_0x3d9fab[_0x350c82(0x15b)])||_0x3d9fab['yrPFO'](_0xe16086,_0x3d9fab['Hwvpe']))return;_0x4401d2['currentBranch']!==_0xe16086&&(_0x1119ca[_0x350c82(0x155)][_0xe16086]=!![],_0x4401d2[_0x350c82(0x158)]=_0xe16086,saveCache(_0x1119ca));}export function initBranchTracking(_0x347b79){const _0x427c2d=_0x4b0824,_0x1e8c26={'VwqRs':function(_0x3c76a6){return _0x3c76a6();},'LBqMU':function(_0x2ff810,_0x36fab2){return _0x2ff810===_0x36fab2;}},_0x3845d5=_0x1e8c26[_0x427c2d(0x183)](loadCache),_0x4b2df9=getCurrentBranch();if(!_0x4b2df9||_0x1e8c26['LBqMU'](_0x4b2df9,_0x427c2d(0x178))||_0x1e8c26[_0x427c2d(0x169)](_0x4b2df9,_0x427c2d(0x180)))return;if(_0x1e8c26[_0x427c2d(0x169)](_0x3845d5['branches'][_0x4b2df9],!![])){const _0x57a948=getOrCreateSession(_0x3845d5,_0x347b79);_0x57a948[_0x427c2d(0x16a)]=!![],_0x57a948[_0x427c2d(0x158)]=_0x4b2df9,saveCache(_0x3845d5);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5c9a37){const _0x8f6477=_0x4b0824,_0x146b3f={'AOqGx':function(_0x55dc88,_0x4e410e){return _0x55dc88(_0x4e410e);}},_0x439a33=loadCache(),_0x4a3a8f=_0x439a33[_0x8f6477(0x177)][_0x5c9a37];_0x4a3a8f?.[_0x8f6477(0x16a)]&&(_0x439a33[_0x8f6477(0x160)]=Date[_0x8f6477(0x17b)](),_0x146b3f['AOqGx'](saveCache,_0x439a33));}export function shouldAutoEnableAfterClear(_0x3b0910){const _0x45a4f5={'PZPMA':function(_0x334956,_0x548a2c){return _0x334956<=_0x548a2c;}};if(_0x3b0910!=='clear')return![];const _0x40f036=loadCache(),_0x3504e6=_0x40f036['lastEnabledSessionClearedAt'];if(!_0x3504e6)return![];const _0x281eb7=Date['now']()-_0x3504e6;return _0x45a4f5['PZPMA'](_0x281eb7,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x25de1a){const _0x432263=_0x4b0824,_0xa45808={'adMED':function(_0x1ac7dc){return _0x1ac7dc();},'ftIsu':function(_0x435214,_0x43a2ed){return _0x435214!==_0x43a2ed;},'bHeAI':'main','BEoZP':_0x432263(0x180)},_0x401cbd=_0xa45808[_0x432263(0x154)](loadCache),_0x1bcd76=getOrCreateSession(_0x401cbd,_0x25de1a);_0x1bcd76[_0x432263(0x16a)]=!![];const _0x17a358=getCurrentBranch();_0x17a358&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808[_0x432263(0x168)])&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808['BEoZP'])&&(_0x1bcd76['currentBranch']=_0x17a358),delete _0x401cbd[_0x432263(0x160)],saveCache(_0x401cbd);}export function registerSession(_0x45dcee,_0x4bed82){const _0x3d1e94=_0x4b0824,_0x33b2e3={'dJoTs':function(_0x352f04){return _0x352f04();},'Anomr':function(_0x42c682,_0x14c5aa,_0x3c97fd){return _0x42c682(_0x14c5aa,_0x3c97fd);},'nExbe':function(_0x1cc024,_0x3ecfa4){return _0x1cc024(_0x3ecfa4);}},_0x333342=_0x33b2e3['dJoTs'](loadCache),_0x54bf28=_0x33b2e3[_0x3d1e94(0x171)](getOrCreateSession,_0x333342,_0x45dcee);_0x54bf28[_0x3d1e94(0x182)]=_0x4bed82,_0x54bf28[_0x3d1e94(0x152)]=new Date()['toISOString'](),_0x33b2e3['nExbe'](saveCache,_0x333342);}export function getSessionEntry(_0xfdd965){const _0xdf1a67=_0x4b0824,_0x1e5d86={'WQlGk':function(_0xe40eb0){return _0xe40eb0();}},_0x55a73c=_0x1e5d86['WQlGk'](loadCache),_0x159a2a=_0x55a73c['sessions'][_0xfdd965];if(_0x159a2a?.[_0xdf1a67(0x182)]&&_0x159a2a?.['registeredAt'])return{'featureId':_0x159a2a[_0xdf1a67(0x182)],'registeredAt':_0x159a2a[_0xdf1a67(0x152)]};return null;}export function unregisterSession(_0x1bd836){const _0x2b1b47=_0x4b0824,_0x56e02d={'wAAmb':function(_0x257936,_0x53075c){return _0x257936(_0x53075c);}},_0x464c0c=loadCache(),_0x2cf493=_0x464c0c[_0x2b1b47(0x177)][_0x1bd836];_0x2cf493&&(delete _0x2cf493['featureId'],delete _0x2cf493['registeredAt'],_0x56e02d['wAAmb'](saveCache,_0x464c0c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xe4501){const _0xcbbad4=_0x4b0824,_0x1ec688={'BByGE':function(_0x4c394c,_0x3e4f04,_0x53201f){return _0x4c394c(_0x3e4f04,_0x53201f);},'tBWAs':function(_0x408648,_0x43c93e){return _0x408648-_0x43c93e;}},_0x195f49=loadCache(),_0x5ec455=_0x1ec688['BByGE'](getOrCreateSession,_0x195f49,_0xe4501),_0x56a638=_0x5ec455['lastPlanReminderAt']||0x0,_0x5ea169=Date[_0xcbbad4(0x17b)]();if(_0x1ec688[_0xcbbad4(0x17f)](_0x5ea169,_0x56a638)>=PLAN_REMINDER_INTERVAL_MS)return _0x5ec455['lastPlanReminderAt']=_0x5ea169,saveCache(_0x195f49),!![];return![];}export function shouldShowStopReminder(_0x39180f){const _0x444533=_0x4b0824,_0x4f4188={'XNJUK':function(_0x39fc85){return _0x39fc85();},'iAjjX':function(_0x4bbe66,_0x58f027){return _0x4bbe66(_0x58f027);}},_0x3a9964=_0x4f4188[_0x444533(0x16e)](loadCache),_0x4ca200=getOrCreateSession(_0x3a9964,_0x39180f),_0x50b748=_0x4ca200['lastStopReminderAt']||0x0,_0x4d51c6=Date['now']();if(_0x4d51c6-_0x50b748>=STOP_REMINDER_INTERVAL_MS)return _0x4ca200['lastStopReminderAt']=_0x4d51c6,_0x4f4188[_0x444533(0x15f)](saveCache,_0x3a9964),!![];return![];}export function hasSessionBeenPrompted(_0x1550c9){const _0xfed590=_0x4b0824,_0x5d8630={'fymwe':function(_0x3a05b6){return _0x3a05b6();},'YhTRW':function(_0xba9b0f,_0x193b25){return _0xba9b0f===_0x193b25;}},_0x56eab8=_0x5d8630[_0xfed590(0x173)](loadCache);return _0x5d8630[_0xfed590(0x170)](_0x56eab8[_0xfed590(0x177)][_0x1550c9]?.['prompted'],!![]);}export function markSessionPrompted(_0x280f3c){const _0x16a4da=_0x4b0824,_0x1bc308={'tdwBR':function(_0x5e5395){return _0x5e5395();},'dzLIe':function(_0x540e30,_0x1d1f79){return _0x540e30(_0x1d1f79);}},_0xef9717=_0x1bc308[_0x16a4da(0x166)](loadCache),_0x1892f3=getOrCreateSession(_0xef9717,_0x280f3c);_0x1892f3[_0x16a4da(0x17d)]=!![],_0x1bc308[_0x16a4da(0x176)](saveCache,_0xef9717);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x6ad071=_0x5176;(function(_0x5bf85f,_0x455a01){const _0x40e451=_0x5176,_0x54f887=_0x5bf85f();while(!![]){try{const _0x331be4=parseInt(_0x40e451(0x115))/0x1+-parseInt(_0x40e451(0x131))/0x2*(parseInt(_0x40e451(0x11e))/0x3)+parseInt(_0x40e451(0x122))/0x4*(-parseInt(_0x40e451(0x120))/0x5)+parseInt(_0x40e451(0x12c))/0x6*(-parseInt(_0x40e451(0x136))/0x7)+-parseInt(_0x40e451(0x11d))/0x8+-parseInt(_0x40e451(0x11b))/0x9+parseInt(_0x40e451(0x10e))/0xa;if(_0x331be4===_0x455a01)break;else _0x54f887['push'](_0x54f887['shift']());}catch(_0x5bc7e5){_0x54f887['push'](_0x54f887['shift']());}}}(_0x24fa,0x77714));import*as _0x101aab from'fs';import*as _0x240a5e from'path';import*as _0x4d4fd1 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x240a5e['join'](_0x4d4fd1[_0x6ad071(0x138)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x2fc974=_0x6ad071,_0x38692b={'zJFRR':function(_0x3226b9){return _0x3226b9();}};try{if(_0x101aab[_0x2fc974(0x13a)](CACHE_FILE)){const _0x13d11e=JSON[_0x2fc974(0x11f)](_0x101aab['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x13d11e[_0x2fc974(0x130)]||{},'branches':_0x13d11e[_0x2fc974(0x12e)]||{},'lastEnabledSessionClearedAt':_0x13d11e[_0x2fc974(0x10f)]};}}catch{}return _0x38692b['zJFRR'](createEmptyCache);}function saveCache(_0x24675e){const _0x486568=_0x6ad071;try{const _0x411cfc=_0x240a5e[_0x486568(0x139)](CACHE_FILE);!_0x101aab['existsSync'](_0x411cfc)&&_0x101aab[_0x486568(0x133)](_0x411cfc,{'recursive':!![]}),_0x101aab['writeFileSync'](CACHE_FILE,JSON[_0x486568(0x109)](_0x24675e,null,0x2));}catch{}}export function getCurrentBranch(){const _0x598364=_0x6ad071,_0x4ef43a={'hDqkR':_0x598364(0x125),'xShMU':_0x598364(0x118)};try{const _0x251da3=execSync(_0x598364(0x110),{'encoding':'utf-8','stdio':[_0x4ef43a['hDqkR'],_0x4ef43a[_0x598364(0x117)],'pipe']})['trim']();if(!_0x251da3||_0x251da3===_0x4ef43a['xShMU'])return null;return _0x251da3;}catch{return null;}}export function enableBranch(_0x11fbcc){const _0x4d8a0a=_0x6ad071,_0x2b8ba5={'oUmvM':function(_0xf9689b,_0x507faf){return _0xf9689b(_0x507faf);}},_0x3f5ace=loadCache();_0x3f5ace[_0x4d8a0a(0x12e)][_0x11fbcc]=!![],_0x2b8ba5[_0x4d8a0a(0x11a)](saveCache,_0x3f5ace);}export function disableBranch(_0x7bbad7){const _0x426e67=_0x6ad071,_0x5b9559={'FMZtt':function(_0x3114bb){return _0x3114bb();}},_0x97a807=_0x5b9559[_0x426e67(0x132)](loadCache);delete _0x97a807[_0x426e67(0x12e)][_0x7bbad7],saveCache(_0x97a807);}export function isBranchEnabled(_0x16d70f){const _0x548202=_0x6ad071,_0xef34ab=loadCache();return _0xef34ab[_0x548202(0x12e)][_0x16d70f]===!![];}function getOrCreateSession(_0x258f37,_0x50e5f5){const _0x2e9fb2=_0x6ad071;return!_0x258f37['sessions'][_0x50e5f5]&&(_0x258f37['sessions'][_0x50e5f5]={}),_0x258f37[_0x2e9fb2(0x130)][_0x50e5f5];}export function enableSession(_0x5d50b7){const _0x454c4a=_0x6ad071,_0x5032cc={'QdZPn':function(_0x35a466){return _0x35a466();},'hKTZl':function(_0x4cd6f5,_0x27d8c5){return _0x4cd6f5!==_0x27d8c5;},'IvPdL':function(_0x12d135,_0x343fba){return _0x12d135(_0x343fba);}},_0x202895=loadCache(),_0x57e32a=getOrCreateSession(_0x202895,_0x5d50b7);_0x57e32a[_0x454c4a(0x10c)]=!![];const _0x2d8a1b=_0x5032cc[_0x454c4a(0x121)](getCurrentBranch);_0x2d8a1b&&_0x2d8a1b!==_0x454c4a(0x123)&&_0x5032cc[_0x454c4a(0x12b)](_0x2d8a1b,'master')&&(_0x202895[_0x454c4a(0x12e)][_0x2d8a1b]=!![],_0x57e32a[_0x454c4a(0x135)]=_0x2d8a1b),_0x5032cc[_0x454c4a(0x116)](saveCache,_0x202895);}export function isSessionEnabled(_0x230bed){const _0x55bd7c=_0x6ad071,_0x4c941a={'Tbnga':function(_0x5b339b){return _0x5b339b();},'CFyiA':'master','ggfFI':function(_0x164e07,_0x1d308a){return _0x164e07===_0x1d308a;},'wjtTz':function(_0x16b659,_0x26eef3){return _0x16b659===_0x26eef3;}},_0x3b9cfa=_0x4c941a['Tbnga'](loadCache),_0x168d82=getCurrentBranch();if(!_0x168d82||_0x168d82===_0x55bd7c(0x123)||_0x168d82===_0x4c941a[_0x55bd7c(0x10a)])return _0x4c941a[_0x55bd7c(0x12d)](_0x3b9cfa['sessions'][_0x230bed]?.['enabled'],!![]);const _0x5a7d98=_0x3b9cfa[_0x55bd7c(0x12e)][_0x168d82]===!![],_0x53bbd1=_0x4c941a[_0x55bd7c(0x108)](_0x3b9cfa[_0x55bd7c(0x130)][_0x230bed]?.[_0x55bd7c(0x10c)],!![]);return _0x5a7d98||_0x53bbd1;}export function disableSession(_0x9477f0){const _0x3bebf4=_0x6ad071,_0x17d649={'AHYNw':function(_0x49799a,_0x2a442a){return _0x49799a(_0x2a442a);}},_0x2bfd3e=loadCache(),_0x401305=getOrCreateSession(_0x2bfd3e,_0x9477f0);_0x401305[_0x3bebf4(0x10c)]=![],_0x17d649[_0x3bebf4(0x13b)](saveCache,_0x2bfd3e);}export function updateBranchTracking(_0x3830f2){const _0x410d86=_0x6ad071,_0x519e06={'vQQLC':function(_0x5e9f5c){return _0x5e9f5c();},'VamkU':function(_0x39b9a7,_0x153627){return _0x39b9a7===_0x153627;},'KiATw':function(_0x4614a1,_0x581586){return _0x4614a1(_0x581586);}},_0x1c1ba2=_0x519e06['vQQLC'](loadCache),_0x407ae8=_0x1c1ba2[_0x410d86(0x130)][_0x3830f2];if(!_0x407ae8?.[_0x410d86(0x10c)])return;const _0xd7b138=getCurrentBranch();if(!_0xd7b138||_0x519e06['VamkU'](_0xd7b138,'main')||_0x519e06[_0x410d86(0x11c)](_0xd7b138,'master'))return;_0x407ae8['currentBranch']!==_0xd7b138&&(_0x1c1ba2['branches'][_0xd7b138]=!![],_0x407ae8['currentBranch']=_0xd7b138,_0x519e06['KiATw'](saveCache,_0x1c1ba2));}export function initBranchTracking(_0x2b46eb){const _0x593d47=_0x6ad071,_0x1a9940={'VomDl':function(_0x477f5a){return _0x477f5a();},'wuuhs':_0x593d47(0x123),'jQotH':_0x593d47(0x124),'iOmCG':function(_0x3ae803,_0x5ae0fc){return _0x3ae803===_0x5ae0fc;}},_0x340061=loadCache(),_0x57e4ac=_0x1a9940[_0x593d47(0x129)](getCurrentBranch);if(!_0x57e4ac||_0x57e4ac===_0x1a9940['wuuhs']||_0x57e4ac===_0x1a9940[_0x593d47(0x112)])return;if(_0x1a9940['iOmCG'](_0x340061[_0x593d47(0x12e)][_0x57e4ac],!![])){const _0x31a989=getOrCreateSession(_0x340061,_0x2b46eb);_0x31a989[_0x593d47(0x10c)]=!![],_0x31a989['currentBranch']=_0x57e4ac,saveCache(_0x340061);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x280f23){const _0x2db08d=_0x6ad071,_0x3cadea={'DFBhs':function(_0x5314f3){return _0x5314f3();}},_0x2d1196=_0x3cadea['DFBhs'](loadCache),_0x2edd7f=_0x2d1196[_0x2db08d(0x130)][_0x280f23];_0x2edd7f?.[_0x2db08d(0x10c)]&&(_0x2d1196[_0x2db08d(0x10f)]=Date['now'](),saveCache(_0x2d1196));}export function shouldAutoEnableAfterClear(_0x14f9a0){const _0x179e57=_0x6ad071,_0x23dd26={'IEoNx':function(_0x5a4f01){return _0x5a4f01();}};if(_0x14f9a0!==_0x179e57(0x126))return![];const _0x30f5f1=_0x23dd26[_0x179e57(0x113)](loadCache),_0x54b6cf=_0x30f5f1[_0x179e57(0x10f)];if(!_0x54b6cf)return![];const _0x18032f=Date[_0x179e57(0x114)]()-_0x54b6cf;return _0x18032f<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x5604ee){const _0x30ca0b=_0x6ad071,_0x103743={'DUHwI':function(_0x184368,_0x52f532,_0x1e4726){return _0x184368(_0x52f532,_0x1e4726);},'juGNg':function(_0x67fe10){return _0x67fe10();},'BvFDt':function(_0x4212c5,_0x301c31){return _0x4212c5!==_0x301c31;},'rMevE':_0x30ca0b(0x123),'CYPuw':function(_0x1ef205,_0xbfc029){return _0x1ef205(_0xbfc029);}},_0x174dd6=loadCache(),_0x69a8a2=_0x103743[_0x30ca0b(0x128)](getOrCreateSession,_0x174dd6,_0x5604ee);_0x69a8a2[_0x30ca0b(0x10c)]=!![];const _0x4d93ba=_0x103743['juGNg'](getCurrentBranch);_0x4d93ba&&_0x103743['BvFDt'](_0x4d93ba,_0x103743['rMevE'])&&_0x103743['BvFDt'](_0x4d93ba,'master')&&(_0x69a8a2[_0x30ca0b(0x135)]=_0x4d93ba),delete _0x174dd6['lastEnabledSessionClearedAt'],_0x103743[_0x30ca0b(0x10d)](saveCache,_0x174dd6);}export function registerSession(_0x134877,_0x517f03){const _0xf72576=_0x6ad071,_0x213e0d={'WyUzx':function(_0x3a585f,_0xfb16b2,_0x5a7ae5){return _0x3a585f(_0xfb16b2,_0x5a7ae5);}},_0x127514=loadCache(),_0x366f06=_0x213e0d[_0xf72576(0x12f)](getOrCreateSession,_0x127514,_0x134877);_0x366f06[_0xf72576(0x119)]=_0x517f03,_0x366f06[_0xf72576(0x111)]=new Date()['toISOString'](),saveCache(_0x127514);}function _0x24fa(){const _0x29ee49=['CYPuw','27771680tCYuiU','lastEnabledSessionClearedAt','git\x20rev-parse\x20--abbrev-ref\x20HEAD','registeredAt','jQotH','IEoNx','now','164337AbFKHS','IvPdL','hDqkR','HEAD','featureId','oUmvM','7616034UseCZh','VamkU','4810704TnZdKr','6hDGQlN','parse','377035IiSSUp','QdZPn','16mXCpLo','main','master','pipe','clear','HyMkR','DUHwI','VomDl','lastPlanReminderAt','hKTZl','6LZZiTv','ggfFI','branches','WyUzx','sessions','593918phCiYP','FMZtt','mkdirSync','gEvYk','currentBranch','764113OpLfyN','kiyCF','homedir','dirname','existsSync','AHYNw','XMdUG','wjtTz','stringify','CFyiA','mjuTY','enabled'];_0x24fa=function(){return _0x29ee49;};return _0x24fa();}export function getSessionEntry(_0x29db4a){const _0x167ea4=_0x6ad071,_0x1897fc=loadCache(),_0x5e6cbf=_0x1897fc['sessions'][_0x29db4a];if(_0x5e6cbf?.[_0x167ea4(0x119)]&&_0x5e6cbf?.[_0x167ea4(0x111)])return{'featureId':_0x5e6cbf['featureId'],'registeredAt':_0x5e6cbf['registeredAt']};return null;}export function unregisterSession(_0x23893a){const _0xa4eb1f=_0x6ad071,_0x1c6d91={'hBscv':function(_0x1f617b,_0x2249a9){return _0x1f617b(_0x2249a9);}},_0x582902=loadCache(),_0x54e871=_0x582902['sessions'][_0x23893a];_0x54e871&&(delete _0x54e871[_0xa4eb1f(0x119)],delete _0x54e871['registeredAt'],_0x1c6d91['hBscv'](saveCache,_0x582902));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3e3997){const _0x3d0255=_0x6ad071,_0x48405b={'bvpVz':function(_0x3ab503){return _0x3ab503();},'bjctj':function(_0xe1883e,_0x434bfc,_0x595068){return _0xe1883e(_0x434bfc,_0x595068);},'gEvYk':function(_0x4c257d,_0x4efdb9){return _0x4c257d-_0x4efdb9;},'ACngg':function(_0x4967d9,_0x567c5f){return _0x4967d9(_0x567c5f);}},_0x25d4d9=_0x48405b['bvpVz'](loadCache),_0x359348=_0x48405b['bjctj'](getOrCreateSession,_0x25d4d9,_0x3e3997),_0x3e0681=_0x359348[_0x3d0255(0x12a)]||0x0,_0x59e43e=Date[_0x3d0255(0x114)]();if(_0x48405b[_0x3d0255(0x134)](_0x59e43e,_0x3e0681)>=PLAN_REMINDER_INTERVAL_MS)return _0x359348[_0x3d0255(0x12a)]=_0x59e43e,_0x48405b['ACngg'](saveCache,_0x25d4d9),!![];return![];}function _0x5176(_0x53b892,_0x4ee5fe){_0x53b892=_0x53b892-0x107;const _0x24fadf=_0x24fa();let _0x51765b=_0x24fadf[_0x53b892];return _0x51765b;}export function shouldShowStopReminder(_0xf4a3cd){const _0x1841f9=_0x6ad071,_0x4574b9={'XMdUG':function(_0x192577){return _0x192577();},'HyMkR':function(_0x294b9b,_0x5415a8,_0x5f235a){return _0x294b9b(_0x5415a8,_0x5f235a);},'ajSzd':function(_0x44d510,_0xa77c22){return _0x44d510>=_0xa77c22;},'kiyCF':function(_0x352132,_0x58ddf3){return _0x352132(_0x58ddf3);}},_0x5c8d44=_0x4574b9[_0x1841f9(0x107)](loadCache),_0x50eb30=_0x4574b9[_0x1841f9(0x127)](getOrCreateSession,_0x5c8d44,_0xf4a3cd),_0x19c0ea=_0x50eb30['lastStopReminderAt']||0x0,_0x42f481=Date[_0x1841f9(0x114)]();if(_0x4574b9['ajSzd'](_0x42f481-_0x19c0ea,STOP_REMINDER_INTERVAL_MS))return _0x50eb30['lastStopReminderAt']=_0x42f481,_0x4574b9[_0x1841f9(0x137)](saveCache,_0x5c8d44),!![];return![];}export function hasSessionBeenPrompted(_0x49c6f7){const _0x37f8d6=_0x6ad071,_0x478df7={'mjuTY':function(_0x257885,_0xd7d7a9){return _0x257885===_0xd7d7a9;}},_0x1a7c2c=loadCache();return _0x478df7[_0x37f8d6(0x10b)](_0x1a7c2c[_0x37f8d6(0x130)][_0x49c6f7]?.['prompted'],!![]);}export function markSessionPrompted(_0x49e891){const _0x2af372={'lSEao':function(_0x4b96){return _0x4b96();}},_0x882447=_0x2af372['lSEao'](loadCache),_0x3a6d0b=getOrCreateSession(_0x882447,_0x49e891);_0x3a6d0b['prompted']=!![],saveCache(_0x882447);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x4a448e=_0x425d;(function(_0x3aa9e5,_0x7ef18b){const _0x4d2951=_0x425d,_0x43b2d1=_0x3aa9e5();while(!![]){try{const _0x37ea03=-parseInt(_0x4d2951(0xf4))/0x1+parseInt(_0x4d2951(0x9b))/0x2+-parseInt(_0x4d2951(0x98))/0x3+parseInt(_0x4d2951(0xb4))/0x4+-parseInt(_0x4d2951(0xee))/0x5+parseInt(_0x4d2951(0xa4))/0x6*(parseInt(_0x4d2951(0xba))/0x7)+parseInt(_0x4d2951(0xb6))/0x8;if(_0x37ea03===_0x7ef18b)break;else _0x43b2d1['push'](_0x43b2d1['shift']());}catch(_0x4cfa89){_0x43b2d1['push'](_0x43b2d1['shift']());}}}(_0x20bc,0xb265f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x425d(_0x2607de,_0x446a10){_0x2607de=_0x2607de-0x98;const _0x20bcb4=_0x20bc();let _0x425da4=_0x20bcb4[_0x2607de];return _0x425da4;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3e06fe,_0x3db585){const _0xfb2cd1=_0x425d,_0x218263={'Kdzca':function(_0x85ee59,_0x5d2d30,_0x381349,_0x3c4eb8){return _0x85ee59(_0x5d2d30,_0x381349,_0x3c4eb8);},'UYHos':function(_0x5112aa,_0x3fdf40,_0x1d325a,_0x4c1b11){return _0x5112aa(_0x3fdf40,_0x1d325a,_0x4c1b11);},'CHgzV':function(_0x2d23dc,_0x2be927,_0x2ebb37){return _0x2d23dc(_0x2be927,_0x2ebb37);},'LdXFN':function(_0x53b7f2,_0x212f11){return _0x53b7f2(_0x212f11);},'iwLBu':function(_0x399970,_0x123f5a){return _0x399970!==_0x123f5a;}},_0xa4e8f6=_0x218263[_0xfb2cd1(0xd8)](join,_0x3db585,'ci',_0x3e06fe),_0x4ee3d2=_0x218263['UYHos'](join,_0x3db585,'local',_0x3e06fe),_0x41cba5=_0x218263['CHgzV'](join,_0x3db585,_0x3e06fe),_0x3f50c4=join(_0x3db585,'local'),_0x44e29c=join(_0x3db585,'ci');if(existsSync(_0xa4e8f6))return _0xa4e8f6;if(existsSync(_0x4ee3d2))return _0x4ee3d2;if(_0x218263['LdXFN'](existsSync,_0x41cba5)&&(_0x218263['iwLBu'](_0x41cba5,_0x3f50c4)&&_0x218263['iwLBu'](_0x41cba5,_0x44e29c)?!![]:hasLegacyProfileFiles(_0x41cba5)))return _0x41cba5;return null;}export function getEnvDir(_0x47b35b,_0x13541a={}){const _0x46e01b=_0x425d,_0xa93ce2={'ytODf':function(_0x5667a9){return _0x5667a9();},'mnSHH':function(_0x16187e,_0x4cd437,_0x229337){return _0x16187e(_0x4cd437,_0x229337);},'mGwpp':function(_0x4389f7,_0x42c578){return _0x4389f7(_0x42c578);},'tkQal':function(_0x2ade46,_0x36f0ba){return _0x2ade46!==_0x36f0ba;},'qnwZg':function(_0x471065,_0x14b925,_0xb811ce,_0x5522f0){return _0x471065(_0x14b925,_0xb811ce,_0x5522f0);},'WldZC':'local','tZQDv':function(_0x3b12f3,_0x466fa2,_0x4cbe26){return _0x3b12f3(_0x466fa2,_0x4cbe26);}},_0x3df115=_0xa93ce2[_0x46e01b(0xbb)](getRangerDir),_0x1c687e=_0xa93ce2['mnSHH'](findEnvInRoot,_0x47b35b,_0x3df115);if(_0x1c687e){if(_0x13541a[_0x46e01b(0x9f)]&&_0xa93ce2['mGwpp'](isLegacyEnvPath,_0x1c687e))throw legacyWriteError(_0x47b35b,_0x1c687e);return _0x1c687e;}const _0x2c58f5=getRangerHomeDir();if(_0xa93ce2['tkQal'](_0x2c58f5,_0x3df115)){const _0x48b9d2=findEnvInRoot(_0x47b35b,_0x2c58f5);if(_0x48b9d2){if(_0x13541a['forWrite']&&isLegacyEnvPath(_0x48b9d2))throw legacyWriteError(_0x47b35b,_0x48b9d2);return _0x48b9d2;}}const _0x2a20a5=_0xa93ce2[_0x46e01b(0xaa)](join,_0x2c58f5,_0xa93ce2['WldZC'],_0x47b35b);if(_0x13541a[_0x46e01b(0x9f)])throw _0xa93ce2[_0x46e01b(0xcc)](legacyWriteError,_0x47b35b,_0x2a20a5);return _0x2a20a5;}function isLegacyEnvPath(_0x5c23d8){const _0x5adc18=_0x425d,_0x436349={'eJOwS':function(_0x5c02ba){return _0x5c02ba();},'tDTgz':function(_0x2ca857,_0x353c30){return _0x2ca857+_0x353c30;},'yvXte':function(_0x134d65,_0x191be7){return _0x134d65===_0x191be7;}},_0x752e79=_0x436349['eJOwS'](getRangerDir),_0x586e4b=getRangerHomeDir();for(const _0x4bc9ca of new Set([_0x752e79,_0x586e4b])){const _0x4344e6=_0x4bc9ca[_0x5adc18(0xf1)]('/')?_0x4bc9ca:_0x436349[_0x5adc18(0xb2)](_0x4bc9ca,'/');if(_0x436349[_0x5adc18(0xd3)](_0x5c23d8,_0x4bc9ca)||_0x5c23d8['startsWith'](_0x4344e6))return!![];}return![];}function legacyWriteError(_0x59a864,_0x29ceae){const _0x4d39ec=_0x425d,_0x3f9b5a={'PVcLB':function(_0x25e5d3,_0x3247bf){return _0x25e5d3+_0x3247bf;}};return new Error(_0x3f9b5a[_0x4d39ec(0xb9)](_0x4d39ec(0xd1)+_0x59a864+_0x4d39ec(0xe6)+_0x29ceae+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x4d39ec(0xab),_0x4d39ec(0xc2)));}export function findExistingEnv(_0xbf63f8,_0x37c494){const _0x2fe412=_0x425d,_0x3dc653={'LvbtL':function(_0x50ab4c){return _0x50ab4c();},'lESLW':'local','FSwDA':'legacy','EjJvW':function(_0x120bc5,_0x55de13,_0xe05b53){return _0x120bc5(_0x55de13,_0xe05b53);},'btYRg':function(_0x25e316,_0x34f93e,_0x14fc4e,_0x42bfdf){return _0x25e316(_0x34f93e,_0x14fc4e,_0x42bfdf);},'Pyasy':function(_0x372e74,_0x2f55f8){return _0x372e74===_0x2f55f8;}},_0x304de0=_0x37c494?.[_0x2fe412(0xa6)],_0x2a2c46=_0x304de0?[_0x304de0]:[getRangerDir(),_0x3dc653[_0x2fe412(0x103)](getRangerHomeDir)][_0x2fe412(0xb3)]((_0x4de851,_0x5b7d55,_0x55518e)=>_0x55518e[_0x2fe412(0xe8)](_0x4de851)===_0x5b7d55),_0x3fa66b=_0x37c494?.[_0x2fe412(0x105)]??['ci',_0x3dc653[_0x2fe412(0xe5)],_0x3dc653[_0x2fe412(0xcd)]];for(const _0x264de4 of _0x2a2c46){const _0x1ef121=_0x3dc653[_0x2fe412(0xc1)](join,_0x264de4,_0x2fe412(0xec)),_0x10e3c9=join(_0x264de4,'ci'),_0xec021b=[{'location':'ci','path':join(_0x264de4,'ci',_0xbf63f8)},{'location':_0x2fe412(0xec),'path':_0x3dc653[_0x2fe412(0xdb)](join,_0x264de4,_0x3dc653[_0x2fe412(0xe5)],_0xbf63f8)},{'location':_0x3dc653[_0x2fe412(0xcd)],'path':join(_0x264de4,_0xbf63f8)}];for(const _0x5a3c17 of _0xec021b){if(_0x3fa66b[_0x2fe412(0xfc)](_0x5a3c17[_0x2fe412(0xfb)])&&existsSync(_0x5a3c17['path'])){if(_0x5a3c17[_0x2fe412(0xfb)]===_0x3dc653['FSwDA']&&(_0x3dc653[_0x2fe412(0x104)](_0x5a3c17[_0x2fe412(0xb7)],_0x1ef121)||_0x5a3c17[_0x2fe412(0xb7)]===_0x10e3c9)&&!hasLegacyProfileFiles(_0x5a3c17['path']))continue;return{'path':_0x5a3c17['path'],'location':_0x5a3c17['location']};}}}return null;}function hasLegacyProfileFiles(_0x1738c0){const _0x3e163a=_0x425d,_0x7e8986={'azlMz':function(_0x548935,_0x4dde41,_0xc0bfae){return _0x548935(_0x4dde41,_0xc0bfae);},'qIXQn':'settings.json','HsdRL':'auth.json','VXsVk':function(_0x4ce9b2,_0x325ed9){return _0x4ce9b2(_0x325ed9);},'zMUgB':_0x3e163a(0xe3)};return existsSync(_0x7e8986[_0x3e163a(0x10e)](join,_0x1738c0,_0x7e8986[_0x3e163a(0xd4)]))||existsSync(_0x7e8986[_0x3e163a(0x10e)](join,_0x1738c0,_0x7e8986['HsdRL']))||_0x7e8986['VXsVk'](existsSync,_0x7e8986['azlMz'](join,_0x1738c0,_0x7e8986['zMUgB']));}export function isEnvCi(_0x3c6464){const _0x3739e6=_0x425d,_0xb0d6ec={'PvOPq':function(_0x308f8d,_0x150ccf){return _0x308f8d(_0x150ccf);},'QwSCI':function(_0x4fa12c,_0x14f1a2,_0x325143,_0x16cdb6){return _0x4fa12c(_0x14f1a2,_0x325143,_0x16cdb6);},'rBlsT':function(_0x11205c){return _0x11205c();},'gcrJR':function(_0x12bf51){return _0x12bf51();},'OwuOH':function(_0x453933,_0x39a4a0){return _0x453933!==_0x39a4a0;},'kByqU':function(_0x574a8d){return _0x574a8d();}};if(_0xb0d6ec['PvOPq'](existsSync,_0xb0d6ec['QwSCI'](join,_0xb0d6ec[_0x3739e6(0xe1)](getRangerDir),'ci',_0x3c6464)))return!![];const _0xe7d22b=_0xb0d6ec['gcrJR'](getRangerHomeDir);if(_0xb0d6ec[_0x3739e6(0x101)](_0xe7d22b,_0xb0d6ec['kByqU'](getRangerDir))&&_0xb0d6ec['PvOPq'](existsSync,join(_0xe7d22b,'ci',_0x3c6464)))return!![];return![];}export async function cleanupTempFiles(_0x4a3bcd){const _0x169311=_0x425d,_0x2c590e=[_0x4a3bcd['tempAuthPath'],_0x4a3bcd[_0x169311(0xc0)]]['filter'](Boolean);await Promise[_0x169311(0xd5)](_0x2c590e[_0x169311(0xfa)](_0x464152=>unlink(_0x464152)['catch'](_0x59e3d5=>{const _0x4b6e5c=_0x169311;_0x59e3d5[_0x4b6e5c(0xc5)]!=='ENOENT'&&console[_0x4b6e5c(0xa7)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x464152+':',_0x59e3d5['message']);})));}export function getSettingsPath(_0x17dcf0){const _0xd7a200=_0x425d,_0x3d8d62={'eUHmB':_0xd7a200(0xe0)};return join(getEnvDir(_0x17dcf0),_0x3d8d62[_0xd7a200(0xb5)]);}export async function loadSettings(_0x48d2dc){const _0x494ff8=_0x425d,_0x5485a8={'EvBZN':function(_0x619908,_0x2728b1){return _0x619908(_0x2728b1);},'EXhrW':function(_0x288453,_0x4d8eb1,_0x3ebf18){return _0x288453(_0x4d8eb1,_0x3ebf18);}},_0x106140=_0x5485a8['EvBZN'](getSettingsPath,_0x48d2dc);if(!existsSync(_0x106140))return{};try{const _0x3a9b18=await _0x5485a8['EXhrW'](readFile,_0x106140,'utf-8');return JSON[_0x494ff8(0xfe)](_0x3a9b18);}catch{return{};}}export async function saveSettings(_0x3c2d61,_0xca9bd1){const _0x5dcaf3=_0x425d,_0x1fc0c9={'IBEeF':function(_0x1d2c62,_0x190cb0){return _0x1d2c62(_0x190cb0);},'oxJUq':function(_0x368ac8,_0x46f236,_0xfe97f5){return _0x368ac8(_0x46f236,_0xfe97f5);}},_0x2fcc4a=getSettingsPath(_0x3c2d61),_0x3a663a=dirname(_0x2fcc4a);!_0x1fc0c9[_0x5dcaf3(0xcb)](existsSync,_0x3a663a)&&await _0x1fc0c9['oxJUq'](mkdir,_0x3a663a,{'recursive':!![]}),await _0x1fc0c9['oxJUq'](writeFile,_0x2fcc4a,JSON['stringify'](_0xca9bd1,null,0x2));}export function resolveEnvVars(_0x36630d){const _0x25ac62=_0x425d,_0x41002b={'ZoLBv':function(_0x2d0470,_0xebcd97){return _0x2d0470===_0xebcd97;},'CtgBf':function(_0x32caba,_0x31e76f){return _0x32caba===_0x31e76f;}};if(typeof _0x36630d===_0x25ac62(0x9a))return _0x36630d[_0x25ac62(0xe2)](/\$\{(\w+)\}/g,(_0x52ec50,_0x4416bf)=>{const _0x5ded63=_0x25ac62,_0x580414=process[_0x5ded63(0xff)][_0x4416bf];if(_0x41002b['ZoLBv'](_0x580414,undefined))throw new Error('Environment\x20variable\x20'+_0x4416bf+_0x5ded63(0x106));return _0x580414;});if(Array[_0x25ac62(0xa0)](_0x36630d))return _0x36630d['map'](resolveEnvVars);if(_0x36630d&&_0x41002b['CtgBf'](typeof _0x36630d,'object'))return Object[_0x25ac62(0xad)](Object['entries'](_0x36630d)['map'](([_0xd7d57c,_0x3c19ca])=>[_0xd7d57c,resolveEnvVars(_0x3c19ca)]));return _0x36630d;}function _0x20bc(){const _0x3a36df=['--no-sandbox','storageStatePath','length','cdpEndpoint','azlMz','dbfeA','2864538HUGFZf','playwright-cli','string','785866brsObP','keys','stagehand','--unsafely-treat-insecure-origin-as-secure=http://localhost','forWrite','isArray','Zxlvo','stringify','vision','377682ngJtZR','join','rangerDir','warn','userAgent','pdf','qnwZg','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','args','fromEntries','EbKhG','--disable-setuid-sandbox','headless','setupHeaders','tDTgz','filter','3992956XhCgTm','eUHmB','2543904XUzVsN','path','catch','PVcLB','91zKCZkO','ytODf','nova-user-data','OWRCi','push','boolean','configPath','EjJvW','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','tabs','Trhxq','code','FgLmP','ranger-auth-','storageState','dqCNx','object','IBEeF','tZQDv','FSwDA','--disable-features=WebBluetooth','LZhNN','PrKlC','Refusing\x20to\x20write\x20profile\x20\x22','file','yvXte','qIXQn','all','fnojX','wnaln','Kdzca','Jyprf','vfdHn','btYRg','.json','safeMode','browser','executablePath','settings.json','rBlsT','replace','auth.json.enc','Default','lESLW','\x22\x20to\x20legacy\x20path\x20','xlAju','indexOf','tnHre','nwXNp','contextOptions','local','chromium','603335odnnhk','SfPjz','ranger-config','endsWith','extraHTTPHeaders','sessions','721239itRXUm','--disable-web-security','now','entries','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','adnif','map','location','includes','allowInsecureLocalhost','parse','env','FoLZs','OwuOH','RBMNU','LvbtL','Pyasy','locations','\x20is\x20not\x20set','headers','core','AsErM'];_0x20bc=function(){return _0x3a36df;};return _0x20bc();}const isRecord=_0x4ef9dd=>typeof _0x4ef9dd===_0x4a448e(0xca)&&_0x4ef9dd!==null&&!Array['isArray'](_0x4ef9dd),asRecord=_0x285af2=>isRecord(_0x285af2)?_0x285af2:undefined,mergeHeaders=(_0x7b87a6,_0x4556d2)=>{const _0x2e38ef=_0x4a448e,_0x1d61dc={'Trhxq':function(_0x121799,_0x170aa2){return _0x121799??_0x170aa2;}},_0x171a58={..._0x1d61dc[_0x2e38ef(0xc4)](_0x7b87a6,{}),..._0x4556d2??{}};return Object[_0x2e38ef(0x9c)](_0x171a58)[_0x2e38ef(0x10c)]?_0x171a58:undefined;},SAFE_MODE_ARGS=[_0x4a448e(0xce)],ALLOW_LOCALHOST_ARGS=[_0x4a448e(0xf5),'--allow-running-insecure-content',_0x4a448e(0x9e),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x55c4f5,_0x3717b8={}){const _0x5d8d61=_0x4a448e,_0x35b35c={'adnif':function(_0x1b98de,_0x4fc9fc){return _0x1b98de===_0x4fc9fc;},'BBCMa':_0x5d8d61(0x9a),'FgLmP':function(_0x5ab5b3,_0x30c9c7,_0x19a698){return _0x5ab5b3(_0x30c9c7,_0x19a698);},'BsTha':function(_0x47fc05,_0x31f754){return _0x47fc05(_0x31f754);}},_0x1c0f39=asRecord(_0x55c4f5[_0x5d8d61(0xde)]),_0x2e96a6={...asRecord(_0x1c0f39?.['launchOptions'])??{}};typeof _0x3717b8['headless']===_0x5d8d61(0xbf)&&(_0x2e96a6['headless']=_0x3717b8['headless']);if(_0x55c4f5[_0x5d8d61(0xdd)]){const _0xbdfada=_0x2e96a6['args']??[],_0x55eddd=SAFE_MODE_ARGS['filter'](_0x574c7c=>!_0xbdfada[_0x5d8d61(0xfc)](_0x574c7c));_0x2e96a6['args']=[..._0xbdfada,..._0x55eddd];}if(_0x55c4f5['allowInsecureLocalhost']){const _0x4e710e=_0x2e96a6['args']??[],_0x444cab=ALLOW_LOCALHOST_ARGS[_0x5d8d61(0xb3)](_0xda351=>!_0x4e710e['includes'](_0xda351));_0x2e96a6['args']=[..._0x4e710e,..._0x444cab];}const _0x43d443={...asRecord(_0x1c0f39?.[_0x5d8d61(0xeb)])??{}};_0x43d443['ignoreHTTPSErrors']=!![];_0x35b35c[_0x5d8d61(0xf9)](typeof _0x55c4f5['userAgent'],_0x35b35c['BBCMa'])&&(_0x43d443[_0x5d8d61(0xa8)]=_0x55c4f5[_0x5d8d61(0xa8)]);const _0x5bc1b2=_0x35b35c[_0x5d8d61(0xc6)](mergeHeaders,_0x35b35c['BsTha'](asRecord,_0x43d443[_0x5d8d61(0xf2)]),asRecord(_0x55c4f5[_0x5d8d61(0x107)]));return _0x5bc1b2?_0x43d443['extraHTTPHeaders']=_0x5bc1b2:delete _0x43d443[_0x5d8d61(0xf2)],_0x3717b8['storageStatePath']&&(_0x43d443[_0x5d8d61(0xc8)]=_0x3717b8[_0x5d8d61(0x10b)]),{'launchOptions':_0x2e96a6,'contextOptions':_0x43d443};}export async function resolveProfileStorageState(_0x5f1f34){const _0x2cdb47=_0x4a448e,_0x5ce5a2={'wnaln':function(_0x5cca71,_0x26f4ab){return _0x5cca71(_0x26f4ab);}};return resolveLocalAuthPath(_0x5ce5a2[_0x2cdb47(0xd7)](getEnvDir,_0x5f1f34));}async function resolveLocalAuthPath(_0x451508){const _0x422c4=_0x4a448e,_0x200c3a={'Jyprf':function(_0x17318f,_0x112c29,_0x7b66e3){return _0x17318f(_0x112c29,_0x7b66e3);},'LZhNN':function(_0x3b1308,_0x360ea8){return _0x3b1308(_0x360ea8);},'SfPjz':function(_0x13912d,_0x3939d0,_0x3a96ac){return _0x13912d(_0x3939d0,_0x3a96ac);},'KwHcD':function(_0x2ea782,_0x1960e2){return _0x2ea782(_0x1960e2);}},_0x15aff0=_0x200c3a[_0x422c4(0xd9)](join,_0x451508,_0x422c4(0xe3)),_0x98f081=join(_0x451508,'auth.json');if(_0x200c3a[_0x422c4(0xcf)](existsSync,_0x15aff0))try{const _0xc842cc=await getToken();if(!_0xc842cc)throw new Error(_0x422c4(0xf8));const _0x1c824d=await _0x200c3a[_0x422c4(0xcf)](readFile,_0x15aff0),_0x6c1f4d=decrypt(_0x1c824d,_0xc842cc),_0xe6e09=_0x200c3a['Jyprf'](join,tmpdir(),_0x422c4(0xc7)+Date[_0x422c4(0xf6)]()+'.json');return await _0x200c3a[_0x422c4(0xef)](writeFile,_0xe6e09,_0x6c1f4d),{'storageStatePath':_0xe6e09,'tempAuthPath':_0xe6e09};}catch(_0x59198e){const _0x11e713=_0x59198e instanceof Error?_0x59198e['message']:String(_0x59198e);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x11e713);}if(_0x200c3a['KwHcD'](existsSync,_0x98f081))return{'storageStatePath':_0x98f081};return{};}export async function buildPlaywrightConfig(_0x247992,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x164beb){const _0x26eb04={'wWgOW':'stagehand','oIstU':function(_0x3cf927,_0x5ca1c7){return _0x3cf927(_0x5ca1c7);}};if(_0x164beb)return buildPlaywrightConfigCore(_0x247992,_0x164beb,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x26eb04['wWgOW']);const {storageStatePath:_0x2056b8,tempAuthPath:_0xc2d4fa}=await resolveLocalAuthPath(getEnvDir(_0x3ca451));try{const _0x2d30d7=await buildPlaywrightConfigCore(_0x247992,_0x2056b8,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x26eb04['wWgOW']);return{..._0x2d30d7,'tempAuthPath':_0xc2d4fa};}catch(_0x295457){_0xc2d4fa&&await _0x26eb04['oIstU'](unlink,_0xc2d4fa)['catch'](()=>{});throw _0x295457;}}export async function buildPlaywrightConfigCore(_0x2a6db5,_0x58efcc,_0x32ffd8,_0x2356d1,_0x6964b0,_0x448800=_0x4a448e(0x9d)){const _0x316da5=_0x4a448e,_0x32a697={'FoLZs':function(_0x41dbbd,_0x1b0788){return _0x41dbbd===_0x1b0788;},'PrKlC':'--no-sandbox','rqwyn':'--disable-setuid-sandbox','tnHre':'chromium','sdfvg':'clipboard-write','woMIW':function(_0xf8e470,_0x423012,_0x3a7639,_0x484fee){return _0xf8e470(_0x423012,_0x3a7639,_0x484fee);},'dbfeA':_0x316da5(0xf3),'TCCUs':function(_0xa765bd,_0x5e0ca4){return _0xa765bd(_0x5e0ca4);},'msuBv':_0x316da5(0xd2),'VbjHb':'install','fnojX':_0x316da5(0xa9),'lISaH':function(_0x25e6f1,_0x593416){return _0x25e6f1===_0x593416;},'xlAju':_0x316da5(0xf0),'AsErM':function(_0x3151f7,_0x50071b){return _0x3151f7===_0x50071b;},'xGiui':_0x316da5(0x99),'Zxlvo':'-cli','KysEl':function(_0x24a610,_0x1788c9,_0xec30d4){return _0x24a610(_0x1788c9,_0xec30d4);}},_0x3c5f00=_0x2356d1||randomUUID(),_0x30110c=_0x32a697['woMIW'](join,getRangerDir(),_0x32a697[_0x316da5(0x10f)],_0x3c5f00),_0x462a36=_0x32a697['TCCUs'](Boolean,_0x2a6db5[_0x316da5(0x10d)]),_0x303664=_0x462a36?{'browserName':_0x316da5(0xed),'cdpEndpoint':_0x2a6db5['cdpEndpoint']}:((()=>{const _0x4bfa5f=_0x316da5,{launchOptions:_0x216949,contextOptions:_0x528aa7}=buildBrowserOptionsFromSettings(_0x2a6db5,{'headless':_0x6964b0?![]:_0x2a6db5['headless']??!![],'storageStatePath':_0x58efcc});if(_0x32a697['FoLZs'](process['getuid']?.(),0x0)){const _0x169375=[_0x32a697[_0x4bfa5f(0xd0)],_0x32a697['rqwyn']],_0xd61ffc=_0x216949['args']??[],_0x2bfe78=_0x169375[_0x4bfa5f(0xb3)](_0x216ace=>!_0xd61ffc[_0x4bfa5f(0xfc)](_0x216ace));_0x216949[_0x4bfa5f(0xac)]=[..._0xd61ffc,..._0x2bfe78];}return{'isolated':!![],'browserName':_0x32a697[_0x4bfa5f(0xe9)],'launchOptions':_0x216949,'contextOptions':{..._0x528aa7,'permissions':['clipboard-read',_0x32a697['sdfvg']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xe16bd6=_0x448800==='playwright-cli'?{'browser':_0x303664,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x30110c,'outputMode':_0x32a697['msuBv'],'codegen':'none'}:{'name':_0x32ffd8,'browser':_0x303664,'capabilities':[_0x316da5(0x108),_0x316da5(0xc3),_0x32a697['VbjHb'],_0x32a697[_0x316da5(0xd6)],_0x316da5(0xa3)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x30110c};if(!_0x462a36){const _0x4623d8=_0xe16bd6['browser'],_0x7fee32=_0x4623d8['contextOptions'];if(_0x32a697[_0x316da5(0x100)](_0x7fee32[_0x316da5(0xa8)],undefined))delete _0x7fee32[_0x316da5(0xa8)];if(_0x32a697['lISaH'](_0x7fee32['storageState'],undefined))delete _0x7fee32['storageState'];}const _0xb630ed=join(tmpdir(),_0x32a697[_0x316da5(0xe7)]);!existsSync(_0xb630ed)&&await mkdir(_0xb630ed,{'recursive':!![]});const _0x5f3bdf=_0x32a697[_0x316da5(0x109)](_0x448800,_0x32a697['xGiui'])?_0x32a697[_0x316da5(0xa1)]:'',_0x554ba1=join(_0xb630ed,_0x32ffd8+'-'+Date['now']()+_0x5f3bdf+_0x316da5(0xdc));return await _0x32a697['KysEl'](writeFile,_0x554ba1,JSON[_0x316da5(0xa2)](_0xe16bd6,null,0x2)),{'configPath':_0x554ba1,'storageStatePath':_0x58efcc};}export async function buildPlaywrightCliConfig(_0x274725,_0x55f9df,_0x35f0ef,_0x44c726,_0xfe3350){const _0x59be53=_0x4a448e,_0x56ceaf={'bQlTr':function(_0x2f8a77,_0x3817b0,_0x2c72ea,_0x34f2c6,_0x521d44,_0xfa73aa,_0x48e092){return _0x2f8a77(_0x3817b0,_0x2c72ea,_0x34f2c6,_0x521d44,_0xfa73aa,_0x48e092);}};if(_0xfe3350)return _0x56ceaf['bQlTr'](buildPlaywrightConfigCore,_0x274725,_0xfe3350,_0x55f9df,_0x35f0ef,_0x44c726,'playwright-cli');const {storageStatePath:_0x18748d,tempAuthPath:_0xb98525}=await resolveLocalAuthPath(getEnvDir(_0x55f9df));try{const _0x3d2a29=await buildPlaywrightConfigCore(_0x274725,_0x18748d,_0x55f9df,_0x35f0ef,_0x44c726,_0x59be53(0x99));return{..._0x3d2a29,'tempAuthPath':_0xb98525};}catch(_0x5a285c){_0xb98525&&await unlink(_0xb98525)[_0x59be53(0xb8)](()=>{});throw _0x5a285c;}}export async function buildNovaActCliConfig(_0x18fdc3,_0x54c6c7,_0x3a4f42,_0x1eb391,_0x38b6d0){const _0x1ce20f=_0x4a448e,_0x25ecb7={'pgCFM':function(_0x5e78bd){return _0x5e78bd();},'wGHkC':_0x1ce20f(0xf3),'OWRCi':function(_0x128ac4,_0x25b469,_0x112149){return _0x128ac4(_0x25b469,_0x112149);},'dqCNx':function(_0x3b3ee4,_0x28f30c){return _0x3b3ee4===_0x28f30c;},'EbKhG':'string','ZDfET':function(_0x5f34c3,_0x444477){return _0x5f34c3(_0x444477);}},{storageStatePath:_0xb0f040,tempAuthPath:_0x1fd48d}=_0x38b6d0?{'storageStatePath':_0x38b6d0,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x54c6c7)),_0x5e35b7=_0x3a4f42||_0x25ecb7['pgCFM'](randomUUID),_0x505d9e=join(getRangerDir(),_0x25ecb7['wGHkC'],_0x5e35b7),_0x59904c=join(_0x505d9e,_0x1ce20f(0xbc)),_0x457a76=_0xb0f040?_0x25ecb7['OWRCi'](join,_0x59904c,_0x1ce20f(0xe4)):undefined,{launchOptions:_0x3afb06,contextOptions:_0xd044f3}=_0x25ecb7[_0x1ce20f(0xbd)](buildBrowserOptionsFromSettings,_0x18fdc3,{'headless':_0x1eb391?![]:_0x18fdc3['headless']??!![],'storageStatePath':_0xb0f040});if(_0x25ecb7[_0x1ce20f(0xc9)](process['getuid']?.(),0x0)){const _0x4aa8e3=[_0x1ce20f(0x10a),_0x1ce20f(0xaf)],_0x5d99a9=_0x3afb06['args']??[],_0x34aa5b=_0x4aa8e3['filter'](_0x2cbfe8=>!_0x5d99a9['includes'](_0x2cbfe8));_0x3afb06[_0x1ce20f(0xac)]=[..._0x5d99a9,..._0x34aa5b];}const _0x23615e=typeof _0x3afb06[_0x1ce20f(0xdf)]===_0x25ecb7[_0x1ce20f(0xae)]?_0x3afb06['executablePath']:_0xb0f040?chromium[_0x1ce20f(0xdf)]():undefined;return{'storageStatePath':_0xb0f040,'tempAuthPath':_0x1fd48d,'baseUrl':_0x18fdc3['baseUrl'],'headless':_0x25ecb7['ZDfET'](Boolean,_0x3afb06[_0x1ce20f(0xb0)]),'userDataDir':_0x59904c,'browserProfilePath':_0x457a76,'executablePath':_0x23615e,'launchArgs':Array[_0x1ce20f(0xa0)](_0x3afb06['args'])?_0x3afb06[_0x1ce20f(0xac)][_0x1ce20f(0xb3)](_0x1096aa=>typeof _0x1096aa===_0x1ce20f(0x9a)):[],'userAgent':typeof _0xd044f3[_0x1ce20f(0xa8)]===_0x25ecb7['EbKhG']?_0xd044f3['userAgent']:undefined,'extraHTTPHeaders':_0xd044f3[_0x1ce20f(0xf2)],'allowInsecureLocalhost':Boolean(_0x18fdc3[_0x1ce20f(0xfd)]),'safeMode':Boolean(_0x18fdc3[_0x1ce20f(0xdd)]),'cdpEndpoint':_0x18fdc3['cdpEndpoint'],'isCdpMode':Boolean(_0x18fdc3[_0x1ce20f(0x10d)])};}export function getNestedValue(_0x424e80,_0x599f3a){const _0x5bc0f1=_0x4a448e,_0x128bf8={'FZDls':function(_0x4f0894,_0x48f32a){return _0x4f0894===_0x48f32a;},'nwXNp':function(_0xf7f889,_0x4698c4){return _0xf7f889!==_0x4698c4;}},_0x218c13=parseKeyPath(_0x599f3a);let _0x8ea8c5=_0x424e80;for(const _0x1a12de of _0x218c13){if(_0x8ea8c5===null||_0x128bf8['FZDls'](_0x8ea8c5,undefined)||_0x128bf8[_0x5bc0f1(0xea)](typeof _0x8ea8c5,'object'))return undefined;_0x8ea8c5=_0x8ea8c5[_0x1a12de];}return _0x8ea8c5;}export function setNestedValue(_0x100830,_0x1c6911,_0xeb0fe9){const _0x4c702f=_0x4a448e,_0x4e9057={'eIxRc':function(_0x4d85d6,_0x17a6f7){return _0x4d85d6(_0x17a6f7);},'AsGmr':function(_0x147bcb,_0x1a553b){return _0x147bcb in _0x1a553b;},'uNDGl':function(_0x201a14,_0x1734d1){return _0x201a14!==_0x1734d1;}},_0x465852=_0x4e9057['eIxRc'](parseKeyPath,_0x1c6911);let _0xbf19d7=_0x100830;for(let _0xed35f4=0x0;_0xed35f4<_0x465852['length']-0x1;_0xed35f4++){const _0x3fdaef=_0x465852[_0xed35f4];(!_0x4e9057['AsGmr'](_0x3fdaef,_0xbf19d7)||_0x4e9057['uNDGl'](typeof _0xbf19d7[_0x3fdaef],_0x4c702f(0xca)))&&(_0xbf19d7[_0x3fdaef]={}),_0xbf19d7=_0xbf19d7[_0x3fdaef];}_0xbf19d7[_0x465852[_0x465852[_0x4c702f(0x10c)]-0x1]]=_0xeb0fe9;}export function deleteNestedValue(_0x58ce9c,_0x149302){const _0x50100b=_0x4a448e,_0xb3feec={'NSooS':function(_0x13878d,_0x5587b8){return _0x13878d(_0x5587b8);},'vfdHn':function(_0x5092df,_0x3b84ab){return _0x5092df===_0x3b84ab;},'exgZw':function(_0x2b7abb,_0x25b17a){return _0x2b7abb!==_0x25b17a;},'ZkCuB':'object','Kxiyb':function(_0x3717fd,_0x19a64f){return _0x3717fd in _0x19a64f;}},_0x59c21e=_0xb3feec['NSooS'](parseKeyPath,_0x149302);let _0x5a309a=_0x58ce9c;for(let _0x4f8ec7=0x0;_0x4f8ec7<_0x59c21e[_0x50100b(0x10c)]-0x1;_0x4f8ec7++){if(_0xb3feec[_0x50100b(0xda)](_0x5a309a,null)||_0x5a309a===undefined||_0xb3feec['exgZw'](typeof _0x5a309a,_0xb3feec['ZkCuB']))return![];_0x5a309a=_0x5a309a[_0x59c21e[_0x4f8ec7]];}if(_0xb3feec[_0x50100b(0xda)](_0x5a309a,null)||_0x5a309a===undefined||typeof _0x5a309a!=='object')return![];const _0x2706a7=_0x59c21e[_0x59c21e[_0x50100b(0x10c)]-0x1];if(_0xb3feec['Kxiyb'](_0x2706a7,_0x5a309a))return delete _0x5a309a[_0x2706a7],!![];return![];}function parseKeyPath(_0x43a615){const _0x57ac9c=_0x4a448e,_0x1fd566={'PoNLA':'header','RBMNU':'setupHeader'},_0x958155=_0x43a615['split']('.');return _0x958155[0x0]===_0x1fd566['PoNLA']&&(_0x958155[0x0]=_0x57ac9c(0x107)),_0x958155[0x0]===_0x1fd566[_0x57ac9c(0x102)]&&(_0x958155[0x0]=_0x57ac9c(0xb1)),_0x958155;}export function formatSettings(_0x33853d,_0x699b03=0x0){const _0x2c1f79=_0x4a448e,_0x30cda7=[],_0x3d548f='\x20\x20'['repeat'](_0x699b03);for(const [_0x3db910,_0x420074]of Object[_0x2c1f79(0xf7)](_0x33853d)){if(_0x420074===undefined)continue;if(typeof _0x420074===_0x2c1f79(0xca)&&_0x420074!==null){_0x30cda7[_0x2c1f79(0xbe)](''+_0x3d548f+_0x3db910+':');for(const [_0x34661d,_0x67fd19]of Object[_0x2c1f79(0xf7)](_0x420074)){_0x30cda7['push'](_0x3d548f+'\x20\x20'+_0x34661d+':\x20'+_0x67fd19);}}else _0x30cda7[_0x2c1f79(0xbe)](''+_0x3d548f+_0x3db910+':\x20'+_0x420074);}return _0x30cda7[_0x2c1f79(0xa5)]('\x0a');}
1
+ const _0x4102e4=_0xc554;(function(_0x367d67,_0x528275){const _0x3f6813=_0xc554,_0x23b0fe=_0x367d67();while(!![]){try{const _0x137b9a=parseInt(_0x3f6813(0xf9))/0x1+-parseInt(_0x3f6813(0x106))/0x2+parseInt(_0x3f6813(0x101))/0x3+-parseInt(_0x3f6813(0x138))/0x4*(parseInt(_0x3f6813(0x13d))/0x5)+parseInt(_0x3f6813(0x11a))/0x6*(parseInt(_0x3f6813(0x153))/0x7)+parseInt(_0x3f6813(0x11b))/0x8+-parseInt(_0x3f6813(0x170))/0x9*(parseInt(_0x3f6813(0x148))/0xa);if(_0x137b9a===_0x528275)break;else _0x23b0fe['push'](_0x23b0fe['shift']());}catch(_0x16c21d){_0x23b0fe['push'](_0x23b0fe['shift']());}}}(_0x5035,0x774f1));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x5035(){const _0x7fff48=['\x20\x20ranger\x20profile\x20add\x20<name>\x0a','Aywcz','sessions','nova-user-data','tabs','BoDtb','42zDurVO','4546176hqUnzd','SwOYE','clipboard-write','ENOENT','tNSlG','legacy','indexOf','ktfKl','push','IKUUS','userAgent','lcJrd','cKLiJ','YggeW','GSUjp','bYIRt','\x22\x20to\x20legacy\x20path\x20','DUgwO','QrTWn','-cli','pdf','coPjK','all','Kezye','VPqlq','startsWith','LlDFt','Etbay','VqTEs','32pKIaym','tPiBS','repeat','settings.json','contextOptions','519535PxCSyw','headers','length','tempAuthPath','core','ranger-config','hcEuF','stringify','local','storageState','auth.json.enc','10tIfczA','boolean','object','launchOptions','zKwRd','utxda','ylKzA','catch','DoZhc','dNURN','pMtDw','642838PIwtTD','getuid','isArray','replace','filter','eoIiO','entries','utf-8','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','zOgVt','baQhx','executablePath','now','cdpEndpoint','djyiq','iZOkG','extraHTTPHeaders','file','stagehand','KGMGa','args','Default','\x20is\x20not\x20set','bEOEP','Environment\x20variable\x20','storageStatePath','ZrPjV','kCCUX','ifalP','5665608PEzmlL','browser','clipboard-read','chromium','location','MwrMY','paaYj','udTMJ','QzzLz','map','auth.json','ssjVz','942807sAQRNu','--allow-insecure-localhost','headless','BNkdr','THuOO','forWrite','usFiM','safeMode','397461ZCTrlG','allowInsecureLocalhost','--disable-setuid-sandbox','qGqby','NVImF','673894kwibJu','path','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','EvVog','message','string','install','playwright-cli','NlOUX','allow','NvKOk','includes','baseUrl','iZATR'];_0x5035=function(){return _0x7fff48;};return _0x5035();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3eb8a9,_0x2189c6){const _0x59cc59=_0xc554,_0x2f11f6={'FZhQm':function(_0x4b2a2e,_0x4843de,_0x2df6c5,_0x1fa26c){return _0x4b2a2e(_0x4843de,_0x2df6c5,_0x1fa26c);},'usFiM':function(_0x244efa,_0x4198a,_0x59b7c6,_0x3cf940){return _0x244efa(_0x4198a,_0x59b7c6,_0x3cf940);},'QzzLz':function(_0x341526,_0x203f8b,_0x184c8a){return _0x341526(_0x203f8b,_0x184c8a);},'Kezye':function(_0x58e19e,_0x40bb31){return _0x58e19e(_0x40bb31);},'rsqte':function(_0xd4d423,_0x2ebf63){return _0xd4d423!==_0x2ebf63;}},_0x205600=_0x2f11f6['FZhQm'](join,_0x2189c6,'ci',_0x3eb8a9),_0x470a56=_0x2f11f6[_0x59cc59(0xff)](join,_0x2189c6,'local',_0x3eb8a9),_0x37c1f5=join(_0x2189c6,_0x3eb8a9),_0x50f6fa=_0x2f11f6[_0x59cc59(0x178)](join,_0x2189c6,'local'),_0xb60ebb=join(_0x2189c6,'ci');if(existsSync(_0x205600))return _0x205600;if(_0x2f11f6[_0x59cc59(0x132)](existsSync,_0x470a56))return _0x470a56;if(existsSync(_0x37c1f5)&&(_0x2f11f6['rsqte'](_0x37c1f5,_0x50f6fa)&&_0x37c1f5!==_0xb60ebb?!![]:_0x2f11f6[_0x59cc59(0x132)](hasLegacyProfileFiles,_0x37c1f5)))return _0x37c1f5;return null;}export function getEnvDir(_0x139fad,_0xba7e01={}){const _0x10570a=_0xc554,_0x57482c={'AwkcG':function(_0x3fbb18){return _0x3fbb18();},'DUgwO':function(_0x31a172,_0xbd427f){return _0x31a172(_0xbd427f);},'fUcNN':function(_0x41122b,_0x1e2d19){return _0x41122b!==_0x1e2d19;},'RtjHa':function(_0x10a71e,_0x3868ee,_0x112f3b){return _0x10a71e(_0x3868ee,_0x112f3b);},'iEwMS':function(_0x450518,_0x5ba2f1,_0x35a16a,_0x5a6b36){return _0x450518(_0x5ba2f1,_0x35a16a,_0x5a6b36);}},_0x4a7093=_0x57482c['AwkcG'](getRangerDir),_0x1c1ae8=findEnvInRoot(_0x139fad,_0x4a7093);if(_0x1c1ae8){if(_0xba7e01[_0x10570a(0xfe)]&&_0x57482c[_0x10570a(0x12c)](isLegacyEnvPath,_0x1c1ae8))throw legacyWriteError(_0x139fad,_0x1c1ae8);return _0x1c1ae8;}const _0x176478=getRangerHomeDir();if(_0x57482c['fUcNN'](_0x176478,_0x4a7093)){const _0x4225dc=findEnvInRoot(_0x139fad,_0x176478);if(_0x4225dc){if(_0xba7e01['forWrite']&&isLegacyEnvPath(_0x4225dc))throw _0x57482c['RtjHa'](legacyWriteError,_0x139fad,_0x4225dc);return _0x4225dc;}}const _0x3fdf81=_0x57482c['iEwMS'](join,_0x176478,'local',_0x139fad);if(_0xba7e01[_0x10570a(0xfe)])throw legacyWriteError(_0x139fad,_0x3fdf81);return _0x3fdf81;}function isLegacyEnvPath(_0x111798){const _0x317853=_0xc554,_0x57e43d={'RSYwU':function(_0x35657f,_0x55810e){return _0x35657f+_0x55810e;}},_0x15d3b9=getRangerDir(),_0x88f0e4=getRangerHomeDir();for(const _0x59a0bf of new Set([_0x15d3b9,_0x88f0e4])){const _0x26d1cd=_0x59a0bf['endsWith']('/')?_0x59a0bf:_0x57e43d['RSYwU'](_0x59a0bf,'/');if(_0x111798===_0x59a0bf||_0x111798[_0x317853(0x134)](_0x26d1cd))return!![];}return![];}function _0xc554(_0x8f448f,_0x19be2b){_0x8f448f=_0x8f448f-0xf8;const _0x503598=_0x5035();let _0xc5548d=_0x503598[_0x8f448f];return _0xc5548d;}function legacyWriteError(_0x16df9a,_0x185721){const _0x1adef3=_0xc554,_0x43f249={'YLTpo':function(_0x5c6ea2,_0xd19d96){return _0x5c6ea2+_0xd19d96;}};return new Error(_0x43f249['YLTpo'](_0x43f249['YLTpo']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x16df9a+_0x1adef3(0x12b)+_0x185721+'.\x0a'+_0x1adef3(0x108),_0x1adef3(0x114)),_0x1adef3(0x15b)));}export function findExistingEnv(_0x35f2ca,_0x2b60d9){const _0x32214b=_0xc554,_0x2edd3c={'zKwRd':function(_0x52e68c){return _0x52e68c();},'lcJrd':function(_0x4f4f1a){return _0x4f4f1a();},'djyiq':function(_0x578a56,_0x1e9363,_0x14ab96){return _0x578a56(_0x1e9363,_0x14ab96);},'ssjVz':'local','knuzD':function(_0x125f24,_0x490588,_0x36f97c,_0x1fbe2f){return _0x125f24(_0x490588,_0x36f97c,_0x1fbe2f);},'Demyb':function(_0x49da79,_0x30bc39){return _0x49da79(_0x30bc39);},'ZBcGN':function(_0x693854,_0x3a2537){return _0x693854===_0x3a2537;},'IFvyc':_0x32214b(0x120),'NVImF':function(_0x5cd393,_0x2530ba){return _0x5cd393===_0x2530ba;}},_0x4fc142=_0x2b60d9?.['rangerDir'],_0x421e9a=_0x4fc142?[_0x4fc142]:[_0x2edd3c[_0x32214b(0x14c)](getRangerDir),_0x2edd3c[_0x32214b(0x126)](getRangerHomeDir)][_0x32214b(0x157)]((_0x2ba656,_0x42f5d5,_0x151ceb)=>_0x151ceb[_0x32214b(0x121)](_0x2ba656)===_0x42f5d5),_0x4ca66b=_0x2b60d9?.['locations']??['ci','local',_0x32214b(0x120)];for(const _0x3516a3 of _0x421e9a){const _0xb0c28e=_0x2edd3c[_0x32214b(0x161)](join,_0x3516a3,_0x32214b(0x145)),_0x1e1156=join(_0x3516a3,'ci'),_0x38f7d0=[{'location':'ci','path':join(_0x3516a3,'ci',_0x35f2ca)},{'location':_0x2edd3c[_0x32214b(0xf8)],'path':_0x2edd3c['knuzD'](join,_0x3516a3,_0x2edd3c['ssjVz'],_0x35f2ca)},{'location':'legacy','path':_0x2edd3c['djyiq'](join,_0x3516a3,_0x35f2ca)}];for(const _0x28c24e of _0x38f7d0){if(_0x4ca66b[_0x32214b(0x111)](_0x28c24e['location'])&&_0x2edd3c['Demyb'](existsSync,_0x28c24e[_0x32214b(0x107)])){if(_0x2edd3c['ZBcGN'](_0x28c24e['location'],_0x2edd3c['IFvyc'])&&(_0x28c24e[_0x32214b(0x107)]===_0xb0c28e||_0x2edd3c[_0x32214b(0x105)](_0x28c24e[_0x32214b(0x107)],_0x1e1156))&&!_0x2edd3c['Demyb'](hasLegacyProfileFiles,_0x28c24e['path']))continue;return{'path':_0x28c24e['path'],'location':_0x28c24e[_0x32214b(0x174)]};}}}return null;}function hasLegacyProfileFiles(_0x38f09b){const _0x18cae8=_0xc554,_0x5e5912={'eoIiO':function(_0x536a64,_0x32ffdc,_0x26ecce){return _0x536a64(_0x32ffdc,_0x26ecce);},'DoZhc':_0x18cae8(0x13b),'hcEuF':function(_0x2417ee,_0x51c10a){return _0x2417ee(_0x51c10a);},'agyaX':'auth.json','XdzuV':'auth.json.enc'};return existsSync(_0x5e5912['eoIiO'](join,_0x38f09b,_0x5e5912[_0x18cae8(0x150)]))||_0x5e5912[_0x18cae8(0x143)](existsSync,_0x5e5912[_0x18cae8(0x158)](join,_0x38f09b,_0x5e5912['agyaX']))||existsSync(join(_0x38f09b,_0x5e5912['XdzuV']));}export function isEnvCi(_0x2e219d){const _0x1596d9=_0xc554,_0x510228={'sarDA':function(_0x400555,_0x5ace4d){return _0x400555(_0x5ace4d);},'VzljP':function(_0x4ab59e){return _0x4ab59e();},'qGqby':function(_0x15952f,_0x5c9756,_0x26017f,_0x37a205){return _0x15952f(_0x5c9756,_0x26017f,_0x37a205);}};if(_0x510228['sarDA'](existsSync,join(getRangerDir(),'ci',_0x2e219d)))return!![];const _0x26178b=getRangerHomeDir();if(_0x26178b!==_0x510228['VzljP'](getRangerDir)&&existsSync(_0x510228[_0x1596d9(0x104)](join,_0x26178b,'ci',_0x2e219d)))return!![];return![];}export async function cleanupTempFiles(_0x3760cc){const _0x2dc4d2=_0xc554,_0x4956ec=[_0x3760cc[_0x2dc4d2(0x140)],_0x3760cc['configPath']]['filter'](Boolean);await Promise[_0x2dc4d2(0x131)](_0x4956ec[_0x2dc4d2(0x179)](_0x30bbdf=>unlink(_0x30bbdf)[_0x2dc4d2(0x14f)](_0x504906=>{const _0x396646=_0x2dc4d2;_0x504906['code']!==_0x396646(0x11e)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x30bbdf+':',_0x504906['message']);})));}export function getSettingsPath(_0x5527dc){const _0x564b51={'XfvkG':function(_0x4020b1,_0x610b12,_0x358cfb){return _0x4020b1(_0x610b12,_0x358cfb);}};return _0x564b51['XfvkG'](join,getEnvDir(_0x5527dc),'settings.json');}export async function loadSettings(_0x48ad3f){const _0x3f5826=_0xc554,_0x2cfb75={'baQhx':function(_0x44e9cd,_0x24cebe){return _0x44e9cd(_0x24cebe);},'LlDFt':function(_0x36abf7,_0x5ed35a,_0x3dc609){return _0x36abf7(_0x5ed35a,_0x3dc609);},'VqTEs':_0x3f5826(0x15a)},_0x23ce22=getSettingsPath(_0x48ad3f);if(!_0x2cfb75[_0x3f5826(0x15d)](existsSync,_0x23ce22))return{};try{const _0x2f0c50=await _0x2cfb75[_0x3f5826(0x135)](readFile,_0x23ce22,_0x2cfb75[_0x3f5826(0x137)]);return JSON['parse'](_0x2f0c50);}catch{return{};}}export async function saveSettings(_0x1d3cef,_0x3f0bdc){const _0x446939=_0xc554,_0x283fd7={'ijYuW':function(_0x10eda5,_0x5cd81d){return _0x10eda5(_0x5cd81d);},'ifalP':function(_0x5b2506,_0xfed578){return _0x5b2506(_0xfed578);}},_0x45ab69=getSettingsPath(_0x1d3cef),_0x6fd21a=_0x283fd7['ijYuW'](dirname,_0x45ab69);!_0x283fd7[_0x446939(0x16f)](existsSync,_0x6fd21a)&&await mkdir(_0x6fd21a,{'recursive':!![]}),await writeFile(_0x45ab69,JSON['stringify'](_0x3f0bdc,null,0x2));}export function resolveEnvVars(_0x13db13){const _0x466b16=_0xc554,_0x1ee315={'cEXzi':function(_0x47f89f,_0x3841e){return _0x47f89f===_0x3841e;}};if(typeof _0x13db13==='string')return _0x13db13[_0x466b16(0x156)](/\$\{(\w+)\}/g,(_0xb6489a,_0x4eed9b)=>{const _0x5886fc=_0x466b16,_0x2a180e=process['env'][_0x4eed9b];if(_0x1ee315['cEXzi'](_0x2a180e,undefined))throw new Error(_0x5886fc(0x16b)+_0x4eed9b+_0x5886fc(0x169));return _0x2a180e;});if(Array[_0x466b16(0x155)](_0x13db13))return _0x13db13[_0x466b16(0x179)](resolveEnvVars);if(_0x13db13&&typeof _0x13db13==='object')return Object['fromEntries'](Object[_0x466b16(0x159)](_0x13db13)['map'](([_0x243940,_0xe5977f])=>[_0x243940,resolveEnvVars(_0xe5977f)]));return _0x13db13;}const isRecord=_0x1d7874=>typeof _0x1d7874==='object'&&_0x1d7874!==null&&!Array['isArray'](_0x1d7874),asRecord=_0x492f10=>isRecord(_0x492f10)?_0x492f10:undefined,mergeHeaders=(_0x5c73f4,_0x2e7d83)=>{const _0x4f55ed=_0xc554,_0x2bd692={..._0x5c73f4??{},..._0x2e7d83??{}};return Object['keys'](_0x2bd692)[_0x4f55ed(0x13f)]?_0x2bd692:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x4102e4(0xfa)];export function buildBrowserOptionsFromSettings(_0x251418,_0x10c4a7={}){const _0x2ddf6f=_0x4102e4,_0x1bd08e={'BoDtb':function(_0x266e3f,_0x38adad){return _0x266e3f===_0x38adad;},'QoODg':function(_0x3f2fc5,_0xb1f2e2){return _0x3f2fc5(_0xb1f2e2);},'THuOO':function(_0x472a2f,_0x334e5f){return _0x472a2f(_0x334e5f);}},_0x124a69=asRecord(_0x251418[_0x2ddf6f(0x171)]),_0xbbe0df={...asRecord(_0x124a69?.[_0x2ddf6f(0x14b)])??{}};_0x1bd08e['BoDtb'](typeof _0x10c4a7[_0x2ddf6f(0xfb)],_0x2ddf6f(0x149))&&(_0xbbe0df[_0x2ddf6f(0xfb)]=_0x10c4a7[_0x2ddf6f(0xfb)]);if(_0x251418[_0x2ddf6f(0x100)]){const _0x14d73=_0xbbe0df['args']??[],_0x14834f=SAFE_MODE_ARGS['filter'](_0x4b9a02=>!_0x14d73['includes'](_0x4b9a02));_0xbbe0df[_0x2ddf6f(0x167)]=[..._0x14d73,..._0x14834f];}if(_0x251418['allowInsecureLocalhost']){const _0x2e1e32=_0xbbe0df['args']??[],_0x230584=ALLOW_LOCALHOST_ARGS[_0x2ddf6f(0x157)](_0x303ff9=>!_0x2e1e32[_0x2ddf6f(0x111)](_0x303ff9));_0xbbe0df[_0x2ddf6f(0x167)]=[..._0x2e1e32,..._0x230584];}const _0x270391={..._0x1bd08e['QoODg'](asRecord,_0x124a69?.['contextOptions'])??{}};_0x270391['ignoreHTTPSErrors']=!![];_0x1bd08e[_0x2ddf6f(0x119)](typeof _0x251418['userAgent'],_0x2ddf6f(0x10b))&&(_0x270391['userAgent']=_0x251418['userAgent']);const _0x485343=mergeHeaders(_0x1bd08e['QoODg'](asRecord,_0x270391['extraHTTPHeaders']),_0x1bd08e[_0x2ddf6f(0xfd)](asRecord,_0x251418[_0x2ddf6f(0x13e)]));return _0x485343?_0x270391['extraHTTPHeaders']=_0x485343:delete _0x270391[_0x2ddf6f(0x163)],_0x10c4a7[_0x2ddf6f(0x16c)]&&(_0x270391[_0x2ddf6f(0x146)]=_0x10c4a7['storageStatePath']),{'launchOptions':_0xbbe0df,'contextOptions':_0x270391};}export async function resolveProfileStorageState(_0x40068b){const _0x2cf475=_0x4102e4,_0x26a81f={'dNURN':function(_0x1f6215,_0x158e3c){return _0x1f6215(_0x158e3c);}};return _0x26a81f[_0x2cf475(0x151)](resolveLocalAuthPath,_0x26a81f[_0x2cf475(0x151)](getEnvDir,_0x40068b));}async function resolveLocalAuthPath(_0x20ef5e){const _0x2fdf70=_0x4102e4,_0x1a6124={'MwrMY':_0x2fdf70(0x147),'zOgVt':_0x2fdf70(0x17a),'NvKOk':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','ColCp':function(_0x44729c){return _0x44729c();},'QrTWn':function(_0x29b8bd,_0x4cf19e,_0xb08d4e){return _0x29b8bd(_0x4cf19e,_0xb08d4e);},'ZrPjV':function(_0x20061f,_0x3e30db){return _0x20061f(_0x3e30db);}},_0x94b135=join(_0x20ef5e,_0x1a6124[_0x2fdf70(0x175)]),_0x42702b=join(_0x20ef5e,_0x1a6124[_0x2fdf70(0x15c)]);if(existsSync(_0x94b135))try{const _0x18f0dc=await getToken();if(!_0x18f0dc)throw new Error(_0x1a6124[_0x2fdf70(0x110)]);const _0x3054c6=await readFile(_0x94b135),_0x20b34e=decrypt(_0x3054c6,_0x18f0dc),_0x276b2f=join(_0x1a6124['ColCp'](tmpdir),'ranger-auth-'+Date[_0x2fdf70(0x15f)]()+'.json');return await _0x1a6124[_0x2fdf70(0x12d)](writeFile,_0x276b2f,_0x20b34e),{'storageStatePath':_0x276b2f,'tempAuthPath':_0x276b2f};}catch(_0x12dbba){const _0x1a71e5=_0x12dbba instanceof Error?_0x12dbba[_0x2fdf70(0x10a)]:_0x1a6124[_0x2fdf70(0x16d)](String,_0x12dbba);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1a71e5);}if(existsSync(_0x42702b))return{'storageStatePath':_0x42702b};return{};}export async function buildPlaywrightConfig(_0x17d108,_0x424a67,_0x5504fd,_0x1f3c74,_0x30daa8){const _0xc629e5=_0x4102e4,_0x1f7365={'QiUeK':function(_0x42bca0,_0x3f1fd7){return _0x42bca0(_0x3f1fd7);},'Etbay':function(_0x7f6c9,_0xb14092){return _0x7f6c9(_0xb14092);}};if(_0x30daa8)return buildPlaywrightConfigCore(_0x17d108,_0x30daa8,_0x424a67,_0x5504fd,_0x1f3c74,'stagehand');const {storageStatePath:_0x196fce,tempAuthPath:_0x18ec78}=await _0x1f7365['QiUeK'](resolveLocalAuthPath,_0x1f7365[_0xc629e5(0x136)](getEnvDir,_0x424a67));try{const _0x3fc4a7=await buildPlaywrightConfigCore(_0x17d108,_0x196fce,_0x424a67,_0x5504fd,_0x1f3c74,_0xc629e5(0x165));return{..._0x3fc4a7,'tempAuthPath':_0x18ec78};}catch(_0x57b074){_0x18ec78&&await unlink(_0x18ec78)['catch'](()=>{});throw _0x57b074;}}export async function buildPlaywrightConfigCore(_0x119220,_0x5b7c00,_0x2b83a1,_0x50baf0,_0x4fbe5c,_0x17cfcf='stagehand'){const _0x5dd807=_0x4102e4,_0x2ed497={'DwdJk':function(_0x53a439,_0x4fe79e,_0x28bbb8){return _0x53a439(_0x4fe79e,_0x28bbb8);},'YggeW':_0x5dd807(0x103),'cKLiJ':function(_0x1c0e1c){return _0x1c0e1c();},'mJtVn':function(_0x5d4ca6,_0x4bcfb9,_0x488768,_0x5aedfc){return _0x5d4ca6(_0x4bcfb9,_0x488768,_0x5aedfc);},'utxda':'chromium','IKUUS':_0x5dd807(0x164),'NaDRu':'vision','GSUjp':function(_0xaac0d5,_0x4186de){return _0xaac0d5===_0x4186de;},'tjckg':function(_0x525fe2,_0x43620e,_0x62d967){return _0x525fe2(_0x43620e,_0x62d967);},'ktfKl':function(_0x34b705){return _0x34b705();},'bYIRt':_0x5dd807(0x142),'EvVog':function(_0x102267,_0x2718a3,_0x160ed4){return _0x102267(_0x2718a3,_0x160ed4);}},_0x405498=_0x50baf0||_0x2ed497[_0x5dd807(0x127)](randomUUID),_0xa2bd1b=_0x2ed497['mJtVn'](join,_0x2ed497['cKLiJ'](getRangerDir),_0x5dd807(0x116),_0x405498),_0x278cfd=Boolean(_0x119220['cdpEndpoint']),_0x437300=_0x278cfd?{'browserName':_0x2ed497[_0x5dd807(0x14d)],'cdpEndpoint':_0x119220['cdpEndpoint']}:((()=>{const _0x352584=_0x5dd807,{launchOptions:_0x232130,contextOptions:_0x1be501}=_0x2ed497['DwdJk'](buildBrowserOptionsFromSettings,_0x119220,{'headless':_0x4fbe5c?![]:_0x119220[_0x352584(0xfb)]??!![],'storageStatePath':_0x5b7c00});if(process['getuid']?.()===0x0){const _0xa61310=['--no-sandbox',_0x2ed497[_0x352584(0x128)]],_0x3f4866=_0x232130['args']??[],_0x5cb3d0=_0xa61310[_0x352584(0x157)](_0x362f3d=>!_0x3f4866['includes'](_0x362f3d));_0x232130[_0x352584(0x167)]=[..._0x3f4866,..._0x5cb3d0];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x232130,'contextOptions':{..._0x1be501,'permissions':[_0x352584(0x172),_0x352584(0x11d)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x566344=_0x17cfcf==='playwright-cli'?{'browser':_0x437300,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xa2bd1b,'outputMode':_0x2ed497[_0x5dd807(0x124)],'codegen':'none'}:{'name':_0x2b83a1,'browser':_0x437300,'capabilities':[_0x5dd807(0x141),_0x5dd807(0x118),_0x5dd807(0x10c),_0x5dd807(0x12f),_0x2ed497['NaDRu']],'imageResponses':_0x5dd807(0x10f),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xa2bd1b};if(!_0x278cfd){const _0xe175b6=_0x566344[_0x5dd807(0x171)],_0x140081=_0xe175b6[_0x5dd807(0x13c)];if(_0x2ed497['GSUjp'](_0x140081['userAgent'],undefined))delete _0x140081['userAgent'];if(_0x2ed497[_0x5dd807(0x129)](_0x140081[_0x5dd807(0x146)],undefined))delete _0x140081[_0x5dd807(0x146)];}const _0x55667e=_0x2ed497['tjckg'](join,_0x2ed497[_0x5dd807(0x122)](tmpdir),_0x2ed497[_0x5dd807(0x12a)]);!existsSync(_0x55667e)&&await _0x2ed497['tjckg'](mkdir,_0x55667e,{'recursive':!![]});const _0xcce0ab=_0x2ed497['GSUjp'](_0x17cfcf,'playwright-cli')?_0x5dd807(0x12e):'',_0x5e5e6c=join(_0x55667e,_0x2b83a1+'-'+Date['now']()+_0xcce0ab+'.json');return await _0x2ed497[_0x5dd807(0x109)](writeFile,_0x5e5e6c,JSON[_0x5dd807(0x144)](_0x566344,null,0x2)),{'configPath':_0x5e5e6c,'storageStatePath':_0x5b7c00};}export async function buildPlaywrightCliConfig(_0x3d8c1d,_0x50eba3,_0xb6a2a0,_0x2f356b,_0x4901bc){const _0x42b78f=_0x4102e4,_0xa19990={'bEOEP':_0x42b78f(0x10d)};if(_0x4901bc)return buildPlaywrightConfigCore(_0x3d8c1d,_0x4901bc,_0x50eba3,_0xb6a2a0,_0x2f356b,_0xa19990[_0x42b78f(0x16a)]);const {storageStatePath:_0x4e72ad,tempAuthPath:_0x579b10}=await resolveLocalAuthPath(getEnvDir(_0x50eba3));try{const _0x5a47ff=await buildPlaywrightConfigCore(_0x3d8c1d,_0x4e72ad,_0x50eba3,_0xb6a2a0,_0x2f356b,_0x42b78f(0x10d));return{..._0x5a47ff,'tempAuthPath':_0x579b10};}catch(_0x31f2fa){_0x579b10&&await unlink(_0x579b10)[_0x42b78f(0x14f)](()=>{});throw _0x31f2fa;}}export async function buildRangerwrightCliConfig(_0xc5ee51,_0x45a8d7,_0x13662e,_0x6bec5c,_0x1aaca9){const _0x46d740=_0x4102e4,_0x41792a={'BUEOM':function(_0x29887c,_0x29ec3d,_0x502b3d){return _0x29887c(_0x29ec3d,_0x502b3d);},'NNjcR':function(_0x33032b,_0x50402b){return _0x33032b===_0x50402b;},'BNkdr':'--no-sandbox','cSFps':function(_0x4bb33a,_0x4642f5,_0x259750,_0xd8c6a6){return _0x4bb33a(_0x4642f5,_0x259750,_0xd8c6a6);},'KGMGa':_0x46d740(0x116),'iZATR':function(_0x306428,_0x1c6ef3){return _0x306428===_0x1c6ef3;},'SFDbq':function(_0x25c9bf,_0xb0feb7){return _0x25c9bf(_0xb0feb7);},'kCCUX':function(_0x5ef527,_0x305c8b,_0x398989){return _0x5ef527(_0x305c8b,_0x398989);}},{storageStatePath:_0x4f0a8e,tempAuthPath:_0x12ac95}=_0x1aaca9?{'storageStatePath':_0x1aaca9,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x45a8d7)),_0x5734d6=_0x13662e||randomUUID(),_0x570fab=_0x41792a['cSFps'](join,getRangerDir(),_0x41792a[_0x46d740(0x166)],_0x5734d6),_0x9403b5=Boolean(_0xc5ee51['cdpEndpoint']),_0x855a5a=_0x9403b5?{'browserName':'chromium','cdpEndpoint':_0xc5ee51[_0x46d740(0x160)]}:((()=>{const _0x2ab37c=_0x46d740,{launchOptions:_0x272d3b,contextOptions:_0x4c69e4}=_0x41792a['BUEOM'](buildBrowserOptionsFromSettings,_0xc5ee51,{'headless':_0x6bec5c?![]:_0xc5ee51[_0x2ab37c(0xfb)]??!![],'storageStatePath':_0x4f0a8e});if(_0x41792a['NNjcR'](process['getuid']?.(),0x0)){const _0x5cb19f=[_0x41792a[_0x2ab37c(0xfc)],'--disable-setuid-sandbox'],_0x13c2bb=_0x272d3b[_0x2ab37c(0x167)]??[],_0x1a48a6=_0x5cb19f[_0x2ab37c(0x157)](_0x407a82=>!_0x13c2bb[_0x2ab37c(0x111)](_0x407a82));_0x272d3b[_0x2ab37c(0x167)]=[..._0x13c2bb,..._0x1a48a6];}return{'browserName':_0x2ab37c(0x173),'launchOptions':_0x272d3b,'contextOptions':{..._0x4c69e4,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x9403b5){const _0x49affa=_0x855a5a['contextOptions'];if(_0x49affa){if(_0x41792a['iZATR'](_0x49affa[_0x46d740(0x125)],undefined))delete _0x49affa[_0x46d740(0x125)];if(_0x41792a[_0x46d740(0x113)](_0x49affa[_0x46d740(0x146)],undefined))delete _0x49affa[_0x46d740(0x146)];}}const _0x116cdc={'browser':_0x855a5a,'outputDir':_0x570fab,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x42eaae;try{const _0x304697=_0x41792a['BUEOM'](join,tmpdir(),'ranger-config');!_0x41792a['SFDbq'](existsSync,_0x304697)&&await _0x41792a[_0x46d740(0x16e)](mkdir,_0x304697,{'recursive':!![]}),_0x42eaae=_0x41792a['BUEOM'](join,_0x304697,_0x45a8d7+'-'+Date[_0x46d740(0x15f)]()+'-rangerwright.json'),await writeFile(_0x42eaae,JSON[_0x46d740(0x144)](_0x116cdc,null,0x2));}catch(_0x3cd57c){_0x12ac95&&await unlink(_0x12ac95)[_0x46d740(0x14f)](()=>{});throw _0x3cd57c;}return{'configPath':_0x42eaae,'storageStatePath':_0x4f0a8e,'tempAuthPath':_0x12ac95,'outputDir':_0x570fab};}export async function buildNovaActCliConfig(_0x30775b,_0x16e177,_0x5c48b4,_0x1ee503,_0x16e1ae){const _0x19f8b7=_0x4102e4,_0x40745b={'VPqlq':function(_0x2e570e,_0x4d7794){return _0x2e570e(_0x4d7794);},'coPjK':function(_0x5142ac,_0x4de915,_0x1123f7){return _0x5142ac(_0x4de915,_0x1123f7);},'ZBqTW':function(_0x4d999c,_0x3de609){return _0x4d999c===_0x3de609;},'crHKz':'--no-sandbox','iZOkG':'--disable-setuid-sandbox','udTMJ':function(_0x1b44bf,_0x119b4a){return _0x1b44bf(_0x119b4a);}},{storageStatePath:_0x2440ec,tempAuthPath:_0x3ee114}=_0x16e1ae?{'storageStatePath':_0x16e1ae,'tempAuthPath':undefined}:await _0x40745b[_0x19f8b7(0x133)](resolveLocalAuthPath,getEnvDir(_0x16e177)),_0x2f4e05=_0x5c48b4||randomUUID(),_0x154f84=join(getRangerDir(),'sessions',_0x2f4e05),_0x4dc487=_0x40745b[_0x19f8b7(0x130)](join,_0x154f84,_0x19f8b7(0x117)),_0x70fb02=_0x2440ec?_0x40745b['coPjK'](join,_0x4dc487,_0x19f8b7(0x168)):undefined,{launchOptions:_0x41ddea,contextOptions:_0x4f73d8}=_0x40745b[_0x19f8b7(0x130)](buildBrowserOptionsFromSettings,_0x30775b,{'headless':_0x1ee503?![]:_0x30775b['headless']??!![],'storageStatePath':_0x2440ec});if(_0x40745b['ZBqTW'](process[_0x19f8b7(0x154)]?.(),0x0)){const _0x5ea9bc=[_0x40745b['crHKz'],_0x40745b[_0x19f8b7(0x162)]],_0x42c2ed=_0x41ddea[_0x19f8b7(0x167)]??[],_0x53471f=_0x5ea9bc[_0x19f8b7(0x157)](_0x46e3ba=>!_0x42c2ed['includes'](_0x46e3ba));_0x41ddea['args']=[..._0x42c2ed,..._0x53471f];}const _0x488d4a=typeof _0x41ddea['executablePath']===_0x19f8b7(0x10b)?_0x41ddea[_0x19f8b7(0x15e)]:_0x2440ec?chromium[_0x19f8b7(0x15e)]():undefined;return{'storageStatePath':_0x2440ec,'tempAuthPath':_0x3ee114,'baseUrl':_0x30775b[_0x19f8b7(0x112)],'headless':_0x40745b['VPqlq'](Boolean,_0x41ddea[_0x19f8b7(0xfb)]),'userDataDir':_0x4dc487,'browserProfilePath':_0x70fb02,'executablePath':_0x488d4a,'launchArgs':Array[_0x19f8b7(0x155)](_0x41ddea['args'])?_0x41ddea[_0x19f8b7(0x167)][_0x19f8b7(0x157)](_0x48b315=>typeof _0x48b315===_0x19f8b7(0x10b)):[],'userAgent':typeof _0x4f73d8['userAgent']===_0x19f8b7(0x10b)?_0x4f73d8[_0x19f8b7(0x125)]:undefined,'extraHTTPHeaders':_0x4f73d8['extraHTTPHeaders'],'allowInsecureLocalhost':_0x40745b[_0x19f8b7(0x177)](Boolean,_0x30775b[_0x19f8b7(0x102)]),'safeMode':Boolean(_0x30775b['safeMode']),'cdpEndpoint':_0x30775b['cdpEndpoint'],'isCdpMode':Boolean(_0x30775b[_0x19f8b7(0x160)])};}export function getNestedValue(_0x28764a,_0x2c0037){const _0x4216ef=_0x4102e4,_0x167095={'Aywcz':function(_0x29fc64,_0x4bee64){return _0x29fc64(_0x4bee64);},'SiooE':function(_0x2d9b9d,_0x4a7d9a){return _0x2d9b9d!==_0x4a7d9a;}},_0x35564f=_0x167095[_0x4216ef(0x115)](parseKeyPath,_0x2c0037);let _0x4a2a05=_0x28764a;for(const _0x184557 of _0x35564f){if(_0x4a2a05===null||_0x4a2a05===undefined||_0x167095['SiooE'](typeof _0x4a2a05,'object'))return undefined;_0x4a2a05=_0x4a2a05[_0x184557];}return _0x4a2a05;}export function setNestedValue(_0x4cbe33,_0xbc4450,_0x500df9){const _0x21a6d9=_0x4102e4,_0x18ae61={'NlOUX':function(_0x5782d4,_0xb6e71e){return _0x5782d4<_0xb6e71e;},'tPiBS':function(_0x10c367,_0x55e431){return _0x10c367-_0x55e431;},'jCjfI':function(_0x13e254,_0x275506){return _0x13e254 in _0x275506;},'rvSiR':_0x21a6d9(0x14a)},_0x5a344b=parseKeyPath(_0xbc4450);let _0x418355=_0x4cbe33;for(let _0x27d7f1=0x0;_0x18ae61[_0x21a6d9(0x10e)](_0x27d7f1,_0x18ae61[_0x21a6d9(0x139)](_0x5a344b[_0x21a6d9(0x13f)],0x1));_0x27d7f1++){const _0x5233fc=_0x5a344b[_0x27d7f1];(!_0x18ae61['jCjfI'](_0x5233fc,_0x418355)||typeof _0x418355[_0x5233fc]!==_0x18ae61['rvSiR'])&&(_0x418355[_0x5233fc]={}),_0x418355=_0x418355[_0x5233fc];}_0x418355[_0x5a344b[_0x5a344b[_0x21a6d9(0x13f)]-0x1]]=_0x500df9;}export function deleteNestedValue(_0xcbabc2,_0x3aeac3){const _0x3814f7=_0x4102e4,_0x427d09={'tNSlG':function(_0x320910,_0x2b5379){return _0x320910(_0x2b5379);},'YqJUy':function(_0x281bf2,_0x2a2257){return _0x281bf2<_0x2a2257;},'ylKzA':function(_0x5a20ad,_0x21c677){return _0x5a20ad===_0x21c677;},'paaYj':function(_0x477b36,_0x562382){return _0x477b36!==_0x562382;},'SwOYE':'object'},_0x119f1d=_0x427d09[_0x3814f7(0x11f)](parseKeyPath,_0x3aeac3);let _0x1558d8=_0xcbabc2;for(let _0x485bd4=0x0;_0x427d09['YqJUy'](_0x485bd4,_0x119f1d[_0x3814f7(0x13f)]-0x1);_0x485bd4++){if(_0x1558d8===null||_0x1558d8===undefined||typeof _0x1558d8!=='object')return![];_0x1558d8=_0x1558d8[_0x119f1d[_0x485bd4]];}if(_0x427d09[_0x3814f7(0x14e)](_0x1558d8,null)||_0x427d09['ylKzA'](_0x1558d8,undefined)||_0x427d09[_0x3814f7(0x176)](typeof _0x1558d8,_0x427d09[_0x3814f7(0x11c)]))return![];const _0xc50200=_0x119f1d[_0x119f1d[_0x3814f7(0x13f)]-0x1];if(_0xc50200 in _0x1558d8)return delete _0x1558d8[_0xc50200],!![];return![];}function parseKeyPath(_0x1d8105){const _0x501eb5=_0x4102e4,_0x3ce251={'hmNru':function(_0x2e0f0a,_0x534ef3){return _0x2e0f0a===_0x534ef3;},'DlzBb':'header'},_0x1d2f37=_0x1d8105['split']('.');return _0x3ce251['hmNru'](_0x1d2f37[0x0],_0x3ce251['DlzBb'])&&(_0x1d2f37[0x0]=_0x501eb5(0x13e)),_0x1d2f37[0x0]==='setupHeader'&&(_0x1d2f37[0x0]='setupHeaders'),_0x1d2f37;}export function formatSettings(_0x2eec29,_0x2a48c6=0x0){const _0x1e8c64=_0x4102e4,_0x194043={'pMtDw':function(_0x4ff200,_0xc639fc){return _0x4ff200===_0xc639fc;},'hhtMh':_0x1e8c64(0x14a)},_0x127790=[],_0x139493='\x20\x20'[_0x1e8c64(0x13a)](_0x2a48c6);for(const [_0x17b73f,_0x2d3b29]of Object['entries'](_0x2eec29)){if(_0x194043['pMtDw'](_0x2d3b29,undefined))continue;if(_0x194043[_0x1e8c64(0x152)](typeof _0x2d3b29,_0x194043['hhtMh'])&&_0x2d3b29!==null){_0x127790[_0x1e8c64(0x123)](''+_0x139493+_0x17b73f+':');for(const [_0x5ce203,_0x232ba6]of Object['entries'](_0x2d3b29)){_0x127790[_0x1e8c64(0x123)](_0x139493+'\x20\x20'+_0x5ce203+':\x20'+_0x232ba6);}}else _0x127790[_0x1e8c64(0x123)](''+_0x139493+_0x17b73f+':\x20'+_0x2d3b29);}return _0x127790['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x4b8424,_0x38d848){const _0x30f146=_0x5689,_0x4bf494=_0x4b8424();while(!![]){try{const _0x16a8c4=parseInt(_0x30f146(0x1b8))/0x1+parseInt(_0x30f146(0x1ba))/0x2+-parseInt(_0x30f146(0x1c3))/0x3+-parseInt(_0x30f146(0x1bb))/0x4+-parseInt(_0x30f146(0x1c4))/0x5*(parseInt(_0x30f146(0x1bd))/0x6)+-parseInt(_0x30f146(0x1bf))/0x7*(parseInt(_0x30f146(0x1c2))/0x8)+parseInt(_0x30f146(0x1c0))/0x9*(parseInt(_0x30f146(0x1be))/0xa);if(_0x16a8c4===_0x38d848)break;else _0x4bf494['push'](_0x4bf494['shift']());}catch(_0x47018e){_0x4bf494['push'](_0x4bf494['shift']());}}}(_0x5ce0,0x3ac65));import{readFileSync}from'fs';function _0x5ce0(){const _0x32a245=['22992LsYaiw','90iOSLoR','42ZpdLGm','1007739VQGvsR','skills','463648cXPCAH','1429341TuetcE','215LtaaZH','164149kzIkMc','pzofj','145434iiHhCt','59620QbdYVS','EDYGs'];_0x5ce0=function(){return _0x32a245;};return _0x5ce0();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x2298b9){const _0x4694a7=_0x5689,_0x39115f={'nOntk':function(_0x504436,_0x513195,_0x4b53c5){return _0x504436(_0x513195,_0x4b53c5);},'pzofj':'utf-8'},_0x1c220d=join(__dirname,'..','..',_0x4694a7(0x1c1)),_0x5b38e2=join(_0x1c220d,_0x2298b9);try{return _0x39115f['nOntk'](readFileSync,_0x5b38e2,_0x39115f[_0x4694a7(0x1b9)]);}catch{return'';}}function _0x5689(_0x273ecc,_0x159870){_0x273ecc=_0x273ecc-0x1b8;const _0x5ce01e=_0x5ce0();let _0x5689bc=_0x5ce01e[_0x273ecc];return _0x5689bc;}export function getRangerSkillContent(){const _0x1079cc=_0x5689,_0x1d458c={'EDYGs':function(_0x8137d2,_0xde25dc){return _0x8137d2(_0xde25dc);}};return _0x1d458c[_0x1079cc(0x1bc)](readSkillContent,'ranger/SKILL.md');}
1
+ function _0x20e0(){const _0x5a48ac=['WpbUb','844560ZjEDtj','utf-8','568RWpkUD','ranger/SKILL.md','43320940uxngDn','13524075yYwTTD','118027ddnhcR','1zfcFmu','skills','2205uxQwhZ','4524eCkspQ','3020278LQlGuE','1092176lyTkkx'];_0x20e0=function(){return _0x5a48ac;};return _0x20e0();}(function(_0x532b84,_0x2a6a10){const _0x12475f=_0x1ea1,_0x356221=_0x532b84();while(!![]){try{const _0x45f947=parseInt(_0x12475f(0x1e2))/0x1*(parseInt(_0x12475f(0x1d8))/0x2)+parseInt(_0x12475f(0x1db))/0x3+parseInt(_0x12475f(0x1d9))/0x4+-parseInt(_0x12475f(0x1e4))/0x5*(-parseInt(_0x12475f(0x1e5))/0x6)+-parseInt(_0x12475f(0x1e1))/0x7*(-parseInt(_0x12475f(0x1dd))/0x8)+parseInt(_0x12475f(0x1e0))/0x9+-parseInt(_0x12475f(0x1df))/0xa;if(_0x45f947===_0x2a6a10)break;else _0x356221['push'](_0x356221['shift']());}catch(_0x586edb){_0x356221['push'](_0x356221['shift']());}}}(_0x20e0,0xbac01));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x1ea1(_0x183e8a,_0x3ebf5a){_0x183e8a=_0x183e8a-0x1d8;const _0x20e05c=_0x20e0();let _0x1ea126=_0x20e05c[_0x183e8a];return _0x1ea126;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5718ba){const _0x33cee7=_0x1ea1,_0x51b85f={'gOfap':function(_0x507ea2,_0x385033,_0xa56998,_0x8350a2,_0x4012d7){return _0x507ea2(_0x385033,_0xa56998,_0x8350a2,_0x4012d7);},'WpbUb':_0x33cee7(0x1e3),'RYwtx':_0x33cee7(0x1dc)},_0x1cd98a=_0x51b85f['gOfap'](join,__dirname,'..','..',_0x51b85f[_0x33cee7(0x1da)]),_0x399e66=join(_0x1cd98a,_0x5718ba);try{return readFileSync(_0x399e66,_0x51b85f['RYwtx']);}catch{return'';}}export function getRangerSkillContent(){const _0x3f8845=_0x1ea1;return readSkillContent(_0x3f8845(0x1de));}