@ranger-testing/ranger-cli 2.5.4-alpha.f6504c0-8 → 2.5.4-alpha.feb9faf-20
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.
- package/README.md +36 -14
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -0
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +24 -8
- package/build/skills/ranger/create.md +16 -3
- package/build/skills/ranger/verify.md +35 -10
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x31874d=_0x1491;function _0xb3b0(){const _0x4425da=['190fgYXVn','string','SIGTERM','hex','env','436357WFPbKD','timeoutMs','cmd','2xACsgZ','elOHD','\x27\x5c\x27\x27','PgKHO','join','toString','bZvEg','slice','8xMogzw','bash_command','979WxJFJQ','configPath','RXwnl','\x0astdout:\x20','args','WGwec','@playwright/cli','ZhIay','SIGKILL','14862861EoatPr','--config','11179IfdgxZ','4554ankjlF','\x20signal=','sessionId','bAydo','commandArgs','stderr','nDjTU','script','...','KvACL','trim','3529240pYZaZN','KfOMn','kill','256524GQNofh','JSxGv','OdtLR','pipe','2608626iuHjco','KJgOr','qPPFj','values','npx','137996aKneYX','uKIwO','map','null','vVdMs','OwsJF'];_0xb3b0=function(){return _0x4425da;};return _0xb3b0();}(function(_0x5cbffc,_0x3f08ca){const _0x28bf5d=_0x1491,_0x33596e=_0x5cbffc();while(!![]){try{const _0x3a1f6c=parseInt(_0x28bf5d(0x1af))/0x1+parseInt(_0x28bf5d(0x1b2))/0x2*(-parseInt(_0x28bf5d(0x19f))/0x3)+-parseInt(_0x28bf5d(0x1a4))/0x4*(parseInt(_0x28bf5d(0x1aa))/0x5)+parseInt(_0x28bf5d(0x18d))/0x6*(-parseInt(_0x28bf5d(0x18c))/0x7)+parseInt(_0x28bf5d(0x1ba))/0x8*(parseInt(_0x28bf5d(0x18a))/0x9)+parseInt(_0x28bf5d(0x198))/0xa+parseInt(_0x28bf5d(0x1bc))/0xb*(parseInt(_0x28bf5d(0x19b))/0xc);if(_0x3a1f6c===_0x3f08ca)break;else _0x33596e['push'](_0x33596e['shift']());}catch(_0x27852){_0x33596e['push'](_0x33596e['shift']());}}}(_0xb3b0,0xe816c));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x31874d(0x187);function toPlaywrightCliSessionKey(_0x22667c){const _0x583f74=_0x31874d,_0x29fd26={'flVQd':function(_0xd03ab7,_0xba020){return _0xd03ab7(_0xba020);},'qPPFj':'sha256'},_0x813540=_0x29fd26['flVQd'](createHash,_0x29fd26[_0x583f74(0x1a1)])['update'](_0x22667c)['digest'](_0x583f74(0x1ad))[_0x583f74(0x1b9)](0x0,0xc);return'rg-'+_0x813540;}function shellQuote(_0x30755e){const _0x3bd5e7=_0x31874d;return'\x27'+_0x30755e['replace'](/'/g,_0x3bd5e7(0x1b4))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0xe22a86){const _0x126d77={'RcuPk':function(_0xd7f1f1,_0x5a2f53){return _0xd7f1f1(_0x5a2f53);}};return SAFE_SHELL_TOKEN['test'](_0xe22a86)?_0xe22a86:_0x126d77['RcuPk'](shellQuote,_0xe22a86);}export function buildPlaywrightCliInvocation(_0x45f10e,_0x1750e0,_0x365a12){const _0x556d05=_0x31874d,_0x3eef15={'KvACL':_0x556d05(0x1a3),'EovCA':'--config'},_0x48d79d=toPlaywrightCliSessionKey(_0x45f10e),[_0x5cb8da='unknown']=_0x365a12,_0x58780c=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x48d79d,'--config',_0x1750e0,..._0x365a12];return{'command':_0x556d05(0x1a3),'args':_0x58780c,'shellCommand':[_0x3eef15[_0x556d05(0x196)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x48d79d),_0x3eef15['EovCA'],quoteShellArg(_0x1750e0),..._0x365a12[_0x556d05(0x1a6)](quoteShellArg)]['join']('\x20'),'subcommand':_0x5cb8da};}export function buildPlaywrightCliCommandPrefix(_0x4ccb79,_0x497a13){const _0x794e2=_0x31874d,_0x3f07e7={'sASLh':function(_0x367c56,_0x4090b0){return _0x367c56(_0x4090b0);},'uKIwO':function(_0x507eac,_0x5c8917){return _0x507eac(_0x5c8917);}},_0x3fff00=_0x3f07e7['sASLh'](toPlaywrightCliSessionKey,_0x4ccb79);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x3fff00),_0x794e2(0x18b),_0x3f07e7[_0x794e2(0x1a5)](quoteShellArg,_0x497a13)][_0x794e2(0x1b6)]('\x20');}function truncateOutput(_0x2ce554,_0x4c11bc=0x7d0){const _0x56ca2a=_0x31874d,_0x344e89={'HSwGY':function(_0xad7dc8,_0x3dda16){return _0xad7dc8>_0x3dda16;},'yxFMA':function(_0x5ad66d,_0x32cf87){return _0x5ad66d+_0x32cf87;}};return _0x344e89['HSwGY'](_0x2ce554['length'],_0x4c11bc)?_0x344e89['yxFMA'](_0x2ce554[_0x56ca2a(0x1b9)](0x0,_0x4c11bc),_0x56ca2a(0x195)):_0x2ce554;}export async function runPlaywrightCliCommand(_0x505006){const _0x316e3b=_0x31874d,_0x2c0508={'vVdMs':function(_0x4389f2,_0x169531){return _0x4389f2(_0x169531);},'bZvEg':function(_0x34a356,_0x264c8a,_0x26f6d0){return _0x34a356(_0x264c8a,_0x26f6d0);},'dDszW':function(_0x17d5e3,_0x24d4c6){return _0x17d5e3===_0x24d4c6;},'KJgOr':function(_0x3a1a16,_0x1ce614,_0x39d616,_0x26e5d4){return _0x3a1a16(_0x1ce614,_0x39d616,_0x26e5d4);},'IIdRK':'ignore','RXwnl':_0x316e3b(0x19e),'JSxGv':function(_0x27ce96,_0x15377d){return _0x27ce96>_0x15377d;},'GtGXR':function(_0x2966f0,_0x45b8e4,_0x1f5832){return _0x2966f0(_0x45b8e4,_0x1f5832);},'bAydo':'data'},_0x37555f=buildPlaywrightCliInvocation(_0x505006[_0x316e3b(0x18f)],_0x505006[_0x316e3b(0x1bd)],_0x505006[_0x316e3b(0x191)]);return new Promise((_0x1edf88,_0x2d372f)=>{const _0x31b250=_0x316e3b,_0x2264de={'nDjTU':function(_0x180ad0,_0x51c091,_0xef8a63){const _0x49bd14=_0x1491;return _0x2c0508[_0x49bd14(0x1b8)](_0x180ad0,_0x51c091,_0xef8a63);},'WGwec':function(_0x3fd382,_0x1d5627){return _0x2c0508['dDszW'](_0x3fd382,_0x1d5627);},'OdtLR':function(_0x4f57a6,_0x47ec9c){return _0x4f57a6??_0x47ec9c;},'ZhIay':function(_0x2a7e4a,_0x2e8740){return _0x2a7e4a(_0x2e8740);},'KfOMn':function(_0x105a00,_0x52cc02){const _0x329d92=_0x1491;return _0x2c0508[_0x329d92(0x1a8)](_0x105a00,_0x52cc02);}},_0xcdc9f6=_0x2c0508[_0x31b250(0x1a0)](spawn,_0x37555f['command'],_0x37555f[_0x31b250(0x1c0)],{'cwd':_0x505006['cwd'],'env':_0x505006[_0x31b250(0x1ae)],'stdio':[_0x2c0508['IIdRK'],_0x2c0508[_0x31b250(0x1be)],_0x2c0508['RXwnl']]});let _0x33638e='',_0x5a0c38='',_0x27f04c=![];const _0x4da5bd=_0x505006['timeoutMs']&&_0x2c0508[_0x31b250(0x19c)](_0x505006[_0x31b250(0x1b0)],0x0)?_0x2c0508['GtGXR'](setTimeout,()=>{const _0x12ca8c=_0x31b250;_0x27f04c=!![],_0xcdc9f6[_0x12ca8c(0x19a)](_0x12ca8c(0x1ac)),_0x2264de[_0x12ca8c(0x193)](setTimeout,()=>{const _0x507f93=_0x12ca8c;try{_0xcdc9f6['kill'](_0x507f93(0x189));}catch{}},0x3e8);},_0x505006['timeoutMs']):null;_0xcdc9f6['stdout']?.['on'](_0x2c0508['bAydo'],_0x48bb85=>{_0x33638e+=_0x48bb85['toString']();}),_0xcdc9f6[_0x31b250(0x192)]?.['on'](_0x2c0508[_0x31b250(0x190)],_0x29f716=>{const _0x3e6645=_0x31b250;_0x5a0c38+=_0x29f716[_0x3e6645(0x1b7)]();}),_0xcdc9f6['on']('error',_0x5dbf3d=>{const _0x508d4f=_0x31b250;if(_0x4da5bd)clearTimeout(_0x4da5bd);_0x2c0508[_0x508d4f(0x1a8)](_0x2d372f,_0x5dbf3d);}),_0xcdc9f6['on']('close',(_0x1da9f1,_0x581429)=>{const _0x3fc85a=_0x31b250;if(_0x4da5bd)clearTimeout(_0x4da5bd);if(_0x2264de[_0x3fc85a(0x186)](_0x1da9f1,0x0)){_0x1edf88({'stdout':_0x33638e,'stderr':_0x5a0c38,'invocation':_0x37555f});return;}const _0x23281a=_0x27f04c?'timed\x20out\x20after\x20'+_0x505006[_0x3fc85a(0x1b0)]+'ms':'exited\x20with\x20code='+_0x2264de[_0x3fc85a(0x19d)](_0x1da9f1,'null')+_0x3fc85a(0x18e)+(_0x581429??_0x3fc85a(0x1a7));_0x2264de[_0x3fc85a(0x188)](_0x2d372f,new Error('playwright-cli\x20'+_0x37555f['subcommand']+'\x20'+_0x23281a+_0x3fc85a(0x1bf)+_0x2264de[_0x3fc85a(0x199)](truncateOutput,_0x33638e)+'\x0astderr:\x20'+_0x2264de['KfOMn'](truncateOutput,_0x5a0c38)));});});}function _0x1491(_0x441ff2,_0x2451ba){_0x441ff2=_0x441ff2-0x186;const _0xb3b0ce=_0xb3b0();let _0x14910a=_0xb3b0ce[_0x441ff2];return _0x14910a;}export function extractBashCommand(_0x1e480b){const _0xac5f3f=_0x31874d,_0x85a1f3={'ovQHX':_0xac5f3f(0x1b1),'PgKHO':_0xac5f3f(0x194),'hGRyk':_0xac5f3f(0x1bb),'OwsJF':function(_0x4022bd,_0x3ae771){return _0x4022bd===_0x3ae771;},'elOHD':function(_0x1d3eca,_0x2a8ddc){return _0x1d3eca??_0x2a8ddc;}},_0x480b41=['command',_0x85a1f3['ovQHX'],_0x85a1f3[_0xac5f3f(0x1b5)],_0x85a1f3['hGRyk']];for(const _0x106566 of _0x480b41){const _0x2f6479=_0x1e480b[_0x106566];if(_0x85a1f3[_0xac5f3f(0x1a9)](typeof _0x2f6479,_0xac5f3f(0x1ab))&&_0x2f6479['trim']())return _0x2f6479;}const _0x41710f=Object[_0xac5f3f(0x1a2)](_0x1e480b)['find'](_0x2e32e0=>typeof _0x2e32e0===_0xac5f3f(0x1ab)&&_0x2e32e0[_0xac5f3f(0x197)]()['length']>0x0);return _0x85a1f3[_0xac5f3f(0x1b3)](_0x41710f,null);}export function parsePlaywrightCliCommand(_0x30e6bd){const _0x89ceb4=_0x30e6bd['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x89ceb4?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x482541,_0x16525b){const _0x37cdf3=_0x51ef,_0x17b101=_0x482541();while(!![]){try{const _0x47c1c2=parseInt(_0x37cdf3(0x170))/0x1*(parseInt(_0x37cdf3(0x168))/0x2)+parseInt(_0x37cdf3(0x169))/0x3+-parseInt(_0x37cdf3(0x16f))/0x4*(parseInt(_0x37cdf3(0x16e))/0x5)+-parseInt(_0x37cdf3(0x16b))/0x6*(parseInt(_0x37cdf3(0x16c))/0x7)+parseInt(_0x37cdf3(0x172))/0x8*(-parseInt(_0x37cdf3(0x173))/0x9)+parseInt(_0x37cdf3(0x16a))/0xa+parseInt(_0x37cdf3(0x16d))/0xb*(parseInt(_0x37cdf3(0x171))/0xc);if(_0x47c1c2===_0x16525b)break;else _0x17b101['push'](_0x17b101['shift']());}catch(_0x4c5d9d){_0x17b101['push'](_0x17b101['shift']());}}}(_0x1e59,0x5f3a7));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x51ef(_0x50c99f,_0x15a94f){_0x50c99f=_0x50c99f-0x168;const _0x1e5919=_0x1e59();let _0x51efaf=_0x1e5919[_0x50c99f];return _0x51efaf;}function _0x1e59(){const _0x39ebfa=['352816mqDjMF','1784274smJBxH','5568200AKsQgI','3606BhyfHp','7490XAwoRQ','11689249YxVQOk','295qknuyN','52388ezIaWQ','1GxavKd','12AnAmri','3032iAzJSA','13887FPyJPn'];_0x1e59=function(){return _0x39ebfa;};return _0x1e59();}export function formatProfileRequiredMessage(_0x16fc8){const _0x429f10={'hXbXe':function(_0x281b75,_0x4787ae){return _0x281b75(_0x4787ae);}},_0x1e0217=_0x16fc8?_0x429f10['hXbXe'](_0x16fc8,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'+_0x1e0217+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b7f3e,_0x598326){const _0x2380d0=_0x4b0a,_0x3ac344=_0x5b7f3e();while(!![]){try{const _0xad9c3=-parseInt(_0x2380d0(0x1e6))/0x1*(parseInt(_0x2380d0(0x1ea))/0x2)+-parseInt(_0x2380d0(0x1e4))/0x3*(parseInt(_0x2380d0(0x1e0))/0x4)+-parseInt(_0x2380d0(0x1e8))/0x5+parseInt(_0x2380d0(0x1e7))/0x6*(-parseInt(_0x2380d0(0x1e1))/0x7)+-parseInt(_0x2380d0(0x1e9))/0x8+-parseInt(_0x2380d0(0x1e3))/0x9+parseInt(_0x2380d0(0x1dd))/0xa;if(_0xad9c3===_0x598326)break;else _0x3ac344['push'](_0x3ac344['shift']());}catch(_0x426fd6){_0x3ac344['push'](_0x3ac344['shift']());}}}(_0x1dc5,0x9ad7b));function _0x4b0a(_0x4325aa,_0xf2254e){_0x4325aa=_0x4325aa-0x1db;const _0x1dc537=_0x1dc5();let _0x4b0a22=_0x1dc537[_0x4325aa];return _0x4b0a22;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x281044=_0x4b0a,_0x1169c3={'KfyMU':'<div\x20class=\x22ranger-banner__content\x22>','wjYEw':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','jFdUT':'</div>'},_0x22b56b=_0x1169c3[_0x281044(0x1e5)]+_0x281044(0x1e2)+'<div\x20class=\x22ranger-banner__message\x22>'+_0x1169c3['wjYEw']+'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>'+_0x1169c3[_0x281044(0x1de)]+_0x1169c3['jFdUT']+_0x281044(0x1db),_0x4bfcb3=_0x281044(0x1df);return _0x281044(0x1ec)+JSON['stringify'](_0x22b56b)+_0x281044(0x1dc)+JSON[_0x281044(0x1eb)](_0x4bfcb3)+';\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 _0x1dc5(){const _0xb0e0a=['<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',';\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','43599440aXSWEN','jFdUT','\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','4qBvkRS','25963bwXvPo','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','857340xYfGHI','1777452UGgaeE','KfyMU','98303gdsUaq','894nUVtNe','4271425ykdsoJ','5184072rCYlvT','20tdjTlm','stringify','\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'];_0x1dc5=function(){return _0xb0e0a;};return _0x1dc5();}export async function addProfileSetupBanner(_0x18e658){await _0x18e658['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x59f014,_0x23dc76){const _0x262c73=_0x4824,_0x414ecd=_0x59f014();while(!![]){try{const _0xd9929b=parseInt(_0x262c73(0x155))/0x1*(-parseInt(_0x262c73(0x144))/0x2)+-parseInt(_0x262c73(0x16c))/0x3+-parseInt(_0x262c73(0x160))/0x4*(parseInt(_0x262c73(0x164))/0x5)+parseInt(_0x262c73(0x152))/0x6+parseInt(_0x262c73(0x14f))/0x7+parseInt(_0x262c73(0x15b))/0x8*(-parseInt(_0x262c73(0x13b))/0x9)+parseInt(_0x262c73(0x150))/0xa*(parseInt(_0x262c73(0x165))/0xb);if(_0xd9929b===_0x23dc76)break;else _0x414ecd['push'](_0x414ecd['shift']());}catch(_0x5e5776){_0x414ecd['push'](_0x414ecd['shift']());}}}(_0x5cba,0x839f8));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 _0x8dca30=_0x4824,_0x137c8c={'ZtoVP':function(_0x5c97fc){return _0x5c97fc();},'kPczg':_0x8dca30(0x14c)};return join(_0x137c8c[_0x8dca30(0x161)](getRangerHomeDir),_0x137c8c['kPczg']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xa6c983=_0x4824,_0x2b1b14={'DHAhj':function(_0x5de00b){return _0x5de00b();},'LxUqe':function(_0x2d1809,_0x4a4b9f){return _0x2d1809(_0x4a4b9f);},'ffBdY':function(_0x5247dc,_0x393449,_0x29a067){return _0x5247dc(_0x393449,_0x29a067);},'pygQC':_0xa6c983(0x142),'NbtRj':function(_0x356544,_0x28e4d8){return _0x356544 instanceof _0x28e4d8;},'EaewK':function(_0x1e6891,_0x3d61e5){return _0x1e6891 instanceof _0x3d61e5;},'aArmI':function(_0x10f0ce,_0x28573c){return _0x10f0ce!==_0x28573c;},'jmLLX':_0xa6c983(0x166),'sfvff':function(_0xd1eb8f,_0x30d2e3){return _0xd1eb8f!==_0x30d2e3;},'FRqjR':function(_0x3db2ae,_0x3366bf){return _0x3db2ae===_0x3366bf;}},_0x8b95=_0x2b1b14[_0xa6c983(0x13e)](getProjectsConfigPath);if(!_0x2b1b14[_0xa6c983(0x167)](existsSync,_0x8b95))return emptyConfig();let _0x530e9f;try{_0x530e9f=_0x2b1b14[_0xa6c983(0x16d)](readFileSync,_0x8b95,_0x2b1b14['pygQC']);}catch(_0x27c69e){const _0x3a2cac=_0x2b1b14[_0xa6c983(0x15f)](_0x27c69e,Error)?_0x27c69e['message']:String(_0x27c69e);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x8b95+':\x20'+_0x3a2cac+_0xa6c983(0x162)),emptyConfig();}let _0x36652c;try{_0x36652c=JSON['parse'](_0x530e9f);}catch(_0x1a9957){const _0x24ae82=_0x2b1b14[_0xa6c983(0x14b)](_0x1a9957,Error)?_0x1a9957['message']:String(_0x1a9957);return console[_0xa6c983(0x151)](_0xa6c983(0x15c)+_0x8b95+'\x20is\x20not\x20valid\x20JSON\x20('+_0x24ae82+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x36652c||_0x2b1b14['aArmI'](typeof _0x36652c,_0x2b1b14[_0xa6c983(0x145)])||Array[_0xa6c983(0x15e)](_0x36652c)||_0x2b1b14[_0xa6c983(0x143)](_0x36652c[_0xa6c983(0x15d)],CURRENT_VERSION)||typeof _0x36652c[_0xa6c983(0x14a)]!==_0xa6c983(0x166)||_0x2b1b14[_0xa6c983(0x149)](_0x36652c['projects'],null)||Array['isArray'](_0x36652c['projects']))return console[_0xa6c983(0x151)]('[ranger]\x20Warning:\x20'+_0x8b95+_0xa6c983(0x159)),emptyConfig();return _0x36652c;}function _0x4824(_0x48189e,_0x31e361){_0x48189e=_0x48189e-0x13a;const _0x5cba22=_0x5cba();let _0x48246d=_0x5cba22[_0x48189e];return _0x48246d;}export function writeProjectsConfig(_0x43fb2b){const _0x4b54ef=_0x4824,_0x48098d={'LmMIL':function(_0x280e08){return _0x280e08();},'WrFDL':function(_0x2b87d2,_0x59455b){return _0x2b87d2(_0x59455b);},'uBtoU':function(_0x1e1e54,_0x39cf83){return _0x1e1e54(_0x39cf83);},'EhHJA':function(_0x3274d7,_0x562350){return _0x3274d7+_0x562350;}},_0x4ccfc6=_0x48098d[_0x4b54ef(0x153)](getProjectsConfigPath),_0x31fcf7=_0x48098d[_0x4b54ef(0x16b)](dirname,_0x4ccfc6);!_0x48098d[_0x4b54ef(0x147)](existsSync,_0x31fcf7)&&mkdirSync(_0x31fcf7,{'recursive':!![]});const _0x50fc05=_0x4ccfc6+'.'+process[_0x4b54ef(0x13a)]+'.'+Date['now']()+_0x4b54ef(0x14d),_0xa1c66f=_0x48098d['EhHJA'](JSON[_0x4b54ef(0x140)](_0x43fb2b,null,0x2),'\x0a');try{writeFileSync(_0x50fc05,_0xa1c66f,{'encoding':'utf-8','mode':0x180}),renameSync(_0x50fc05,_0x4ccfc6);}catch(_0x405231){try{existsSync(_0x50fc05)&&unlinkSync(_0x50fc05);}catch{}throw _0x405231;}}export function readProfileOverrides(_0x501286,_0x2649ee){const _0xa2fab8=_0x4824,_0x49b8f9=readProjectsConfig(),_0x5c5c6f=_0x49b8f9[_0xa2fab8(0x14a)][_0x501286];if(!_0x5c5c6f||!_0x5c5c6f['profiles'])return null;const _0x24e792=_0x5c5c6f['profiles'][_0x2649ee];if(!_0x24e792||!_0x24e792['settings'])return null;return _0x24e792[_0xa2fab8(0x168)]??null;}export function setProfileOverride(_0x561f43,_0x2e9597,_0x4cbf82,_0x4e95f1){const _0x3af74d=_0x4824,_0x1190f3={'QZjwG':_0x3af74d(0x16a),'pRqrX':function(_0x2dc331){return _0x2dc331();},'NXViQ':function(_0x10e805,_0x1bbcd1,_0x480445,_0x11ab70){return _0x10e805(_0x1bbcd1,_0x480445,_0x11ab70);},'voNdy':function(_0x1180bc,_0x35cc21){return _0x1180bc(_0x35cc21);}};if(!_0x4cbf82)throw new Error(_0x1190f3['QZjwG']);const _0x2d190d=_0x1190f3['pRqrX'](readProjectsConfig),_0x26fa8b=_0x2d190d['projects'][_0x561f43]??={},_0x1cce81=_0x26fa8b[_0x3af74d(0x157)]??={},_0x280aa8=_0x1cce81[_0x2e9597]??={},_0x27a6cb=_0x280aa8[_0x3af74d(0x168)]??={};_0x1190f3[_0x3af74d(0x15a)](setByKeyPath,_0x27a6cb,_0x4cbf82,_0x4e95f1),_0x1190f3[_0x3af74d(0x148)](writeProjectsConfig,_0x2d190d);}function _0x5cba(){const _0x56a771=['5708325JZQcdm','10pFbiLR','warn','3515202ZShkqS','LmMIL','wBMqo','71033zheSRn','GUHQp','profiles','setupHeaders','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','NXViQ','16nnROhk','[ranger]\x20Warning:\x20','version','isArray','NbtRj','116kSXaue','ZtoVP','.\x20Ignoring\x20local\x20profile\x20overrides.','entries','129355DOwDKc','14164447KPmujr','object','LxUqe','settings','NAnML','keyPath\x20is\x20required','WrFDL','1826331JGjYMw','ffBdY','pid','3239199qOimGA','TMgIx','OuemS','DHAhj','OMhii','stringify','split','utf-8','sfvff','2yGNfdg','jmLLX','zFVKD','uBtoU','voNdy','FRqjR','projects','EaewK','projects.json','.tmp','length'];_0x5cba=function(){return _0x56a771;};return _0x5cba();}export function unsetProfileOverride(_0x54554e,_0x5d81d2,_0x3b02e5){const _0x4cd311=_0x4824,_0x5eb36d={'OMhii':_0x4cd311(0x16a),'wBMqo':function(_0x46277f,_0x3a4c66,_0x54fea9){return _0x46277f(_0x3a4c66,_0x54fea9);}};if(!_0x3b02e5)throw new Error(_0x5eb36d[_0x4cd311(0x13f)]);const _0x14cb3c=readProjectsConfig(),_0x431e28=_0x14cb3c[_0x4cd311(0x14a)][_0x54554e];if(!_0x431e28?.['profiles'])return![];const _0x25f493=_0x431e28[_0x4cd311(0x157)][_0x5d81d2];if(!_0x25f493?.[_0x4cd311(0x168)])return![];const _0x738f23=_0x5eb36d[_0x4cd311(0x154)](deleteByKeyPath,_0x25f493[_0x4cd311(0x168)],_0x3b02e5);if(!_0x738f23)return![];return writeProjectsConfig(_0x14cb3c),!![];}export function resetProfileOverrides(_0x209794,_0x57cdf0){const _0xce7339=_0x4824,_0x566ffa=readProjectsConfig(),_0x3d4f54=_0x566ffa['projects'][_0x209794];if(!_0x3d4f54?.[_0xce7339(0x157)])return;if(!(_0x57cdf0 in _0x3d4f54[_0xce7339(0x157)]))return;delete _0x3d4f54[_0xce7339(0x157)][_0x57cdf0],Object['keys'](_0x3d4f54['profiles'])['length']===0x0&&delete _0x3d4f54[_0xce7339(0x157)],!_0x3d4f54['profiles']&&delete _0x566ffa['projects'][_0x209794],writeProjectsConfig(_0x566ffa);}export function mergeCloudProfileSettings(_0x15c225,_0x19280e){const _0x362096=_0x4824,_0x301c41={'OuemS':function(_0x51fba9,_0x235e64){return _0x51fba9===_0x235e64;},'NAnML':function(_0xf9ae98,_0x378b12){return _0xf9ae98!==_0x378b12;}},_0x257ad4={..._0x15c225??{}};if(!_0x19280e)return _0x257ad4;for(const [_0x1e5b75,_0x2ce5ff]of Object['entries'](_0x19280e)){if(_0x2ce5ff===undefined)continue;if(_0x301c41['OuemS'](_0x2ce5ff,null)){delete _0x257ad4[_0x1e5b75];continue;}if(_0x1e5b75==='headers'||_0x1e5b75===_0x362096(0x158)){const _0x12af94=asRecord(_0x257ad4[_0x1e5b75])??{},_0x59e7fe=asRecord(_0x2ce5ff);if(!_0x59e7fe){_0x257ad4[_0x1e5b75]=_0x2ce5ff;continue;}const _0x11bea7={..._0x12af94};for(const [_0x3704b8,_0x5bb2cd]of Object[_0x362096(0x163)](_0x59e7fe)){if(_0x301c41[_0x362096(0x13d)](_0x5bb2cd,null))delete _0x11bea7[_0x3704b8];else _0x301c41[_0x362096(0x169)](_0x5bb2cd,undefined)&&(_0x11bea7[_0x3704b8]=_0x5bb2cd);}_0x257ad4[_0x1e5b75]=_0x11bea7;continue;}_0x257ad4[_0x1e5b75]=_0x2ce5ff;}return _0x257ad4;}function asRecord(_0x848d05){const _0x1c2a8d=_0x4824,_0x49bc6e={'KtWZr':function(_0x3441f9,_0x5e93b0){return _0x3441f9===_0x5e93b0;},'RoDKH':_0x1c2a8d(0x166)};return _0x848d05&&_0x49bc6e['KtWZr'](typeof _0x848d05,_0x49bc6e['RoDKH'])&&!Array['isArray'](_0x848d05)?_0x848d05:undefined;}function setByKeyPath(_0x96e226,_0xd329bc,_0x594a72){const _0x2119ae=_0x4824,_0x468362={'zFVKD':'object'},_0x4ddc33=_0xd329bc['split']('.');let _0x27198b=_0x96e226;for(let _0xe659f8=0x0;_0xe659f8<_0x4ddc33['length']-0x1;_0xe659f8++){const _0x2e8144=_0x4ddc33[_0xe659f8],_0x36ccba=_0x27198b[_0x2e8144];(!_0x36ccba||typeof _0x36ccba!==_0x468362[_0x2119ae(0x146)]||Array[_0x2119ae(0x15e)](_0x36ccba))&&(_0x27198b[_0x2e8144]={}),_0x27198b=_0x27198b[_0x2e8144];}_0x27198b[_0x4ddc33[_0x4ddc33[_0x2119ae(0x14e)]-0x1]]=_0x594a72;}function deleteByKeyPath(_0x20a94b,_0x2c5bb8){const _0x26e550=_0x4824,_0x4a1b42={'GUHQp':function(_0x154e69,_0x228a6a){return _0x154e69<_0x228a6a;},'HHxtj':function(_0x48695f,_0x2d49b3){return _0x48695f-_0x2d49b3;},'TMgIx':function(_0x490bae,_0x2550a1){return _0x490bae in _0x2550a1;}},_0x3fd4ab=_0x2c5bb8[_0x26e550(0x141)]('.');let _0x44838f=_0x20a94b;for(let _0xffe460=0x0;_0x4a1b42[_0x26e550(0x156)](_0xffe460,_0x3fd4ab[_0x26e550(0x14e)]-0x1);_0xffe460++){const _0x21a058=_0x3fd4ab[_0xffe460],_0x3e1a73=_0x44838f[_0x21a058];if(!_0x3e1a73||typeof _0x3e1a73!==_0x26e550(0x166)||Array['isArray'](_0x3e1a73))return![];_0x44838f=_0x3e1a73;}const _0x5f4798=_0x3fd4ab[_0x4a1b42['HHxtj'](_0x3fd4ab[_0x26e550(0x14e)],0x1)];if(!_0x4a1b42[_0x26e550(0x13c)](_0x5f4798,_0x44838f))return![];return delete _0x44838f[_0x5f4798],!![];}
|
|
1
|
+
(function(_0x11ea68,_0x2149d9){const _0x1c23f1=_0x55b1,_0x57311d=_0x11ea68();while(!![]){try{const _0x37ff=-parseInt(_0x1c23f1(0xcb))/0x1+-parseInt(_0x1c23f1(0xbf))/0x2+-parseInt(_0x1c23f1(0xb8))/0x3+-parseInt(_0x1c23f1(0xba))/0x4+parseInt(_0x1c23f1(0xd4))/0x5+-parseInt(_0x1c23f1(0xd2))/0x6*(parseInt(_0x1c23f1(0xc3))/0x7)+-parseInt(_0x1c23f1(0xc5))/0x8*(-parseInt(_0x1c23f1(0xd3))/0x9);if(_0x37ff===_0x2149d9)break;else _0x57311d['push'](_0x57311d['shift']());}catch(_0x281c1d){_0x57311d['push'](_0x57311d['shift']());}}}(_0x3086,0x49cb1));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';function _0x3086(){const _0x139471=['4566eeNYUz','25344kZneqI','629530EWTxZz','pfIsj','projects','GmMmu','eyGrv','isArray','frlhZ','warn','setupHeaders',').\x20Ignoring\x20local\x20profile\x20overrides.','734127UpiDke','VZrQN','2298604FnXCKf','cAPCw','length','[ranger]\x20Warning:\x20','hHVZg','1128954qRZRIq','.tmp','object','YnSlQ','4361cAjcnP','UadTL','6144pBWjKL','KfMky','message','profiles','Vklku','lastProfile','128397cTpYXn','zVVtI','NiKna','QQFlZ','headers','split','settings'];_0x3086=function(){return _0x139471;};return _0x3086();}import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x543e65=_0x55b1,_0xd371a9={'rUqpT':function(_0x880e0e,_0x5df93e,_0x5dacee){return _0x880e0e(_0x5df93e,_0x5dacee);},'pfIsj':function(_0x1ff715){return _0x1ff715();}};return _0xd371a9['rUqpT'](join,_0xd371a9[_0x543e65(0xd5)](getRangerHomeDir),'projects.json');}function _0x55b1(_0x216556,_0xf1d8e3){_0x216556=_0x216556-0xb7;const _0x30861b=_0x3086();let _0x55b1ef=_0x30861b[_0x216556];return _0x55b1ef;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xe4b3f9=_0x55b1,_0x2fd0fc={'UIBhk':function(_0x1aecb7){return _0x1aecb7();},'TuWwD':function(_0xdf1e90,_0x189772){return _0xdf1e90(_0x189772);},'RtZak':function(_0x421031,_0x1cb553){return _0x421031 instanceof _0x1cb553;},'zVVtI':function(_0x1613a5,_0x17037f){return _0x1613a5(_0x17037f);},'YnSlQ':function(_0x132da2){return _0x132da2();},'FFTeh':'object','cAPCw':function(_0x3dcc2e){return _0x3dcc2e();}},_0x3ded00=_0x2fd0fc['UIBhk'](getProjectsConfigPath);if(!_0x2fd0fc['TuWwD'](existsSync,_0x3ded00))return _0x2fd0fc['UIBhk'](emptyConfig);let _0x5c8ff3;try{_0x5c8ff3=readFileSync(_0x3ded00,'utf-8');}catch(_0x44ce9b){const _0x3604c3=_0x44ce9b instanceof Error?_0x44ce9b[_0xe4b3f9(0xc7)]:String(_0x44ce9b);return console[_0xe4b3f9(0xdb)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x3ded00+':\x20'+_0x3604c3+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x29486a;try{_0x29486a=JSON['parse'](_0x5c8ff3);}catch(_0x5a0959){const _0xe7172b=_0x2fd0fc['RtZak'](_0x5a0959,Error)?_0x5a0959[_0xe4b3f9(0xc7)]:_0x2fd0fc[_0xe4b3f9(0xcc)](String,_0x5a0959);return console[_0xe4b3f9(0xdb)](_0xe4b3f9(0xbd)+_0x3ded00+'\x20is\x20not\x20valid\x20JSON\x20('+_0xe7172b+_0xe4b3f9(0xb7)),_0x2fd0fc[_0xe4b3f9(0xc2)](emptyConfig);}if(!_0x29486a||typeof _0x29486a!==_0x2fd0fc['FFTeh']||Array['isArray'](_0x29486a)||_0x29486a['version']!==CURRENT_VERSION||typeof _0x29486a['projects']!==_0x2fd0fc['FFTeh']||_0x29486a[_0xe4b3f9(0xd6)]===null||Array['isArray'](_0x29486a['projects']))return console[_0xe4b3f9(0xdb)](_0xe4b3f9(0xbd)+_0x3ded00+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x2fd0fc[_0xe4b3f9(0xbb)](emptyConfig);return _0x29486a;}export function writeProjectsConfig(_0x14353b){const _0x454a31=_0x55b1,_0x569a88={'Vklku':function(_0x2eca1f){return _0x2eca1f();},'ybjJd':function(_0x4cdc30,_0x28ebd4){return _0x4cdc30(_0x28ebd4);},'KYGmZ':'utf-8','eyGrv':function(_0x106f47,_0x4fb6c1){return _0x106f47(_0x4fb6c1);}},_0x14665c=_0x569a88[_0x454a31(0xc9)](getProjectsConfigPath),_0x434373=dirname(_0x14665c);!_0x569a88['ybjJd'](existsSync,_0x434373)&&mkdirSync(_0x434373,{'recursive':!![]});const _0x18c424=_0x14665c+'.'+process['pid']+'.'+Date['now']()+_0x454a31(0xc0),_0x40f53e=JSON['stringify'](_0x14353b,null,0x2)+'\x0a';try{writeFileSync(_0x18c424,_0x40f53e,{'encoding':_0x569a88['KYGmZ'],'mode':0x180}),renameSync(_0x18c424,_0x14665c);}catch(_0x8dec5c){try{_0x569a88[_0x454a31(0xd8)](existsSync,_0x18c424)&&_0x569a88[_0x454a31(0xd8)](unlinkSync,_0x18c424);}catch{}throw _0x8dec5c;}}export function readProfileOverrides(_0x3b8252,_0x592bee){const _0x1e5c35=_0x55b1,_0x5d99df={'NiKna':function(_0x2f5e5a){return _0x2f5e5a();}},_0xdff72=_0x5d99df[_0x1e5c35(0xcd)](readProjectsConfig),_0x220ddf=_0xdff72[_0x1e5c35(0xd6)][_0x3b8252];if(!_0x220ddf||!_0x220ddf[_0x1e5c35(0xc8)])return null;const _0x3f6474=_0x220ddf[_0x1e5c35(0xc8)][_0x592bee];if(!_0x3f6474||!_0x3f6474['settings'])return null;return _0x3f6474[_0x1e5c35(0xd1)]??null;}export function setProfileOverride(_0x3f1821,_0x51e813,_0xcb0632,_0xa843bf){const _0x17c611={'TBzns':'keyPath\x20is\x20required','OjSrl':function(_0x561a13,_0x2fb05b){return _0x561a13(_0x2fb05b);}};if(!_0xcb0632)throw new Error(_0x17c611['TBzns']);const _0x31abc0=readProjectsConfig(),_0x291f21=_0x31abc0['projects'][_0x3f1821]??={},_0x4da2f2=_0x291f21['profiles']??={},_0x4a19f9=_0x4da2f2[_0x51e813]??={},_0x2c3bb4=_0x4a19f9['settings']??={};setByKeyPath(_0x2c3bb4,_0xcb0632,_0xa843bf),_0x17c611['OjSrl'](writeProjectsConfig,_0x31abc0);}export function unsetProfileOverride(_0x39db3e,_0x305c03,_0x280cad){const _0x2c2c13=_0x55b1,_0x2e2007={'lcKKO':function(_0x5533bc){return _0x5533bc();}};if(!_0x280cad)throw new Error('keyPath\x20is\x20required');const _0x39e782=_0x2e2007['lcKKO'](readProjectsConfig),_0x3a3c2e=_0x39e782['projects'][_0x39db3e];if(!_0x3a3c2e?.[_0x2c2c13(0xc8)])return![];const _0x342ac6=_0x3a3c2e[_0x2c2c13(0xc8)][_0x305c03];if(!_0x342ac6?.[_0x2c2c13(0xd1)])return![];const _0x13d794=deleteByKeyPath(_0x342ac6[_0x2c2c13(0xd1)],_0x280cad);if(!_0x13d794)return![];return writeProjectsConfig(_0x39e782),!![];}export function resetProfileOverrides(_0x83a3b,_0x526c5f){const _0x3fa931=_0x55b1,_0x2d7d68={'BQjYY':function(_0x45ca36){return _0x45ca36();},'UadTL':function(_0x25277c,_0xefebe0){return _0x25277c in _0xefebe0;},'hHVZg':function(_0x55afd9,_0x26c5c3){return _0x55afd9(_0x26c5c3);}},_0x3984c1=_0x2d7d68['BQjYY'](readProjectsConfig),_0x485b30=_0x3984c1[_0x3fa931(0xd6)][_0x83a3b];if(!_0x485b30?.['profiles'])return;if(!_0x2d7d68[_0x3fa931(0xc4)](_0x526c5f,_0x485b30['profiles']))return;delete _0x485b30[_0x3fa931(0xc8)][_0x526c5f],Object['keys'](_0x485b30['profiles'])['length']===0x0&&(!_0x485b30['lastProfile']?delete _0x3984c1['projects'][_0x83a3b]:_0x485b30[_0x3fa931(0xc8)]={}),_0x2d7d68[_0x3fa931(0xbe)](writeProjectsConfig,_0x3984c1);}export function readLastProfile(_0x2e0fcb){const _0x5e56b4=_0x55b1,_0xd3cae5={'QQFlZ':function(_0x421f18){return _0x421f18();}},_0x55bd7e=_0xd3cae5[_0x5e56b4(0xce)](readProjectsConfig),_0x8facb2=_0x55bd7e[_0x5e56b4(0xd6)][_0x2e0fcb];return _0x8facb2?.[_0x5e56b4(0xca)]??null;}export function writeLastProfile(_0x583af1,_0x5259f5){const _0x5cf83d=_0x55b1,_0x1ed865=readProjectsConfig(),_0x16ec2f=_0x1ed865[_0x5cf83d(0xd6)][_0x583af1]??={};_0x16ec2f['lastProfile']=_0x5259f5,writeProjectsConfig(_0x1ed865);}export function mergeCloudProfileSettings(_0x1f2e8e,_0xeca5e3){const _0x3a6ad4=_0x55b1,_0x26e263={'EEnbw':function(_0x4b27e4,_0x33f0ba){return _0x4b27e4??_0x33f0ba;},'GmMmu':function(_0x332427,_0x29f64e){return _0x332427===_0x29f64e;},'tGzVU':function(_0x52873a,_0x1f8ace){return _0x52873a(_0x1f8ace);},'tjoGq':function(_0x37d278,_0x4178c8){return _0x37d278(_0x4178c8);},'OrDEX':function(_0x29fd8a,_0x57e19f){return _0x29fd8a!==_0x57e19f;}},_0x5c7251={..._0x26e263['EEnbw'](_0x1f2e8e,{})};if(!_0xeca5e3)return _0x5c7251;for(const [_0x2c57c0,_0x245bab]of Object['entries'](_0xeca5e3)){if(_0x245bab===undefined)continue;if(_0x26e263[_0x3a6ad4(0xd7)](_0x245bab,null)){delete _0x5c7251[_0x2c57c0];continue;}if(_0x26e263['GmMmu'](_0x2c57c0,_0x3a6ad4(0xcf))||_0x26e263['GmMmu'](_0x2c57c0,_0x3a6ad4(0xdc))){const _0xd23e57=_0x26e263['tGzVU'](asRecord,_0x5c7251[_0x2c57c0])??{},_0x17884f=_0x26e263['tjoGq'](asRecord,_0x245bab);if(!_0x17884f){_0x5c7251[_0x2c57c0]=_0x245bab;continue;}const _0x5cd8ba={..._0xd23e57};for(const [_0x49d550,_0x1460cd]of Object['entries'](_0x17884f)){if(_0x1460cd===null)delete _0x5cd8ba[_0x49d550];else _0x26e263['OrDEX'](_0x1460cd,undefined)&&(_0x5cd8ba[_0x49d550]=_0x1460cd);}_0x5c7251[_0x2c57c0]=_0x5cd8ba;continue;}_0x5c7251[_0x2c57c0]=_0x245bab;}return _0x5c7251;}function asRecord(_0x1db3f4){const _0x376a22=_0x55b1,_0x43c722={'KfMky':_0x376a22(0xc1)};return _0x1db3f4&&typeof _0x1db3f4===_0x43c722[_0x376a22(0xc6)]&&!Array[_0x376a22(0xd9)](_0x1db3f4)?_0x1db3f4:undefined;}function setByKeyPath(_0x22eb02,_0x2d4824,_0x10cdf5){const _0xbd4fb=_0x55b1,_0x8a28c7={'BMPbO':function(_0x1f0018,_0x1bb797){return _0x1f0018<_0x1bb797;},'frlhZ':function(_0xc1fe85,_0x598a8a){return _0xc1fe85-_0x598a8a;},'hSkOc':function(_0x405bc8,_0x51ef95){return _0x405bc8!==_0x51ef95;}},_0x54668a=_0x2d4824[_0xbd4fb(0xd0)]('.');let _0x41fe06=_0x22eb02;for(let _0x46e595=0x0;_0x8a28c7['BMPbO'](_0x46e595,_0x8a28c7[_0xbd4fb(0xda)](_0x54668a['length'],0x1));_0x46e595++){const _0x466e74=_0x54668a[_0x46e595],_0x1b4f2c=_0x41fe06[_0x466e74];(!_0x1b4f2c||_0x8a28c7['hSkOc'](typeof _0x1b4f2c,_0xbd4fb(0xc1))||Array['isArray'](_0x1b4f2c))&&(_0x41fe06[_0x466e74]={}),_0x41fe06=_0x41fe06[_0x466e74];}_0x41fe06[_0x54668a[_0x8a28c7[_0xbd4fb(0xda)](_0x54668a['length'],0x1)]]=_0x10cdf5;}function deleteByKeyPath(_0x26fa4c,_0x3ca55c){const _0x29e3f1=_0x55b1,_0x2c5c29={'BLZGA':function(_0x546255,_0x11c32b){return _0x546255<_0x11c32b;},'VZrQN':function(_0x52a726,_0x4d9fc6){return _0x52a726-_0x4d9fc6;}},_0x3b351c=_0x3ca55c[_0x29e3f1(0xd0)]('.');let _0x547040=_0x26fa4c;for(let _0x573e63=0x0;_0x2c5c29['BLZGA'](_0x573e63,_0x2c5c29['VZrQN'](_0x3b351c[_0x29e3f1(0xbc)],0x1));_0x573e63++){const _0xa00204=_0x3b351c[_0x573e63],_0x5c8df5=_0x547040[_0xa00204];if(!_0x5c8df5||typeof _0x5c8df5!==_0x29e3f1(0xc1)||Array[_0x29e3f1(0xd9)](_0x5c8df5))return![];_0x547040=_0x5c8df5;}const _0x1b680a=_0x3b351c[_0x2c5c29[_0x29e3f1(0xb9)](_0x3b351c[_0x29e3f1(0xbc)],0x1)];if(!(_0x1b680a in _0x547040))return![];return delete _0x547040[_0x1b680a],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1689a2,_0x184bc0){const _0x9ac9a1=_0x2464,_0x229753=_0x1689a2();while(!![]){try{const _0x5f03b9=-parseInt(_0x9ac9a1(0x1ec))/0x1*(-parseInt(_0x9ac9a1(0x1e6))/0x2)+parseInt(_0x9ac9a1(0x1df))/0x3*(parseInt(_0x9ac9a1(0x1e8))/0x4)+parseInt(_0x9ac9a1(0x1e4))/0x5*(parseInt(_0x9ac9a1(0x1e9))/0x6)+-parseInt(_0x9ac9a1(0x1e5))/0x7*(-parseInt(_0x9ac9a1(0x1ea))/0x8)+parseInt(_0x9ac9a1(0x1e3))/0x9+-parseInt(_0x9ac9a1(0x1e0))/0xa+-parseInt(_0x9ac9a1(0x1e2))/0xb;if(_0x5f03b9===_0x184bc0)break;else _0x229753['push'](_0x229753['shift']());}catch(_0x406732){_0x229753['push'](_0x229753['shift']());}}}(_0xec64,0x24284));import{readFile}from'fs/promises';function _0x2464(_0xc3a396,_0x4e39d4){_0xc3a396=_0xc3a396-0x1db;const _0xec6475=_0xec64();let _0x246473=_0xec6475[_0xc3a396];return _0x246473;}function _0xec64(){const _0x467eb5=['1164642NPZfYK','8DOtzKE','message','1ogGBgz','string','warn','PJyMH','model','6vHPvSH','1845640kevAAe','parse','6915359XHZxag','220302iTPJIz','5jeAHsf','1930761UBTkHP','533322FdOAtR','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','400528LuWkRD'];_0xec64=function(){return _0x467eb5;};return _0xec64();}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x451fa8=_0x2464,_0xd84374={'PJyMH':function(_0x1c81b2){return _0x1c81b2();}};return join(_0xd84374[_0x451fa8(0x1dd)](getRangerDir),'config.json');}export async function loadRangerConfig(){const _0x47fda4=_0x2464,_0x441dde={'kmTkg':function(_0x1e5ac1){return _0x1e5ac1();},'ctTER':function(_0x3daeca,_0x22a862){return _0x3daeca(_0x22a862);},'BHygx':function(_0xade4a2,_0x5067ad,_0x4d4f2b){return _0xade4a2(_0x5067ad,_0x4d4f2b);},'cMugT':'object'},_0x4f8f2f=_0x441dde['kmTkg'](getRangerConfigPath);if(!_0x441dde['ctTER'](existsSync,_0x4f8f2f))return{};try{const _0x33940e=await _0x441dde['BHygx'](readFile,_0x4f8f2f,'utf-8'),_0x3b8c85=JSON[_0x47fda4(0x1e1)](_0x33940e);if(!_0x3b8c85||typeof _0x3b8c85!==_0x441dde['cMugT']||Array['isArray'](_0x3b8c85))return{};const _0x1a78f3={},_0x3e481f=_0x3b8c85['model'];return typeof _0x3e481f===_0x47fda4(0x1db)&&(_0x1a78f3[_0x47fda4(0x1de)]=_0x3e481f),_0x1a78f3;}catch(_0x50e403){const _0x39d867=_0x50e403 instanceof Error?_0x50e403[_0x47fda4(0x1eb)]:String(_0x50e403);return console[_0x47fda4(0x1dc)](_0x47fda4(0x1e7)+_0x4f8f2f+':\x20'+_0x39d867),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1c15(_0x3623c8,_0x3d1dc7){_0x3623c8=_0x3623c8-0x1ee;const _0x5ce618=_0x5ce6();let _0x1c15ec=_0x5ce618[_0x3623c8];return _0x1c15ec;}(function(_0xf298f2,_0x113bf0){const _0x584e9d=_0x1c15,_0xeaf4f8=_0xf298f2();while(!![]){try{const _0x2ba65f=parseInt(_0x584e9d(0x1fd))/0x1*(-parseInt(_0x584e9d(0x1fc))/0x2)+-parseInt(_0x584e9d(0x1ee))/0x3*(parseInt(_0x584e9d(0x1f9))/0x4)+-parseInt(_0x584e9d(0x1fb))/0x5*(parseInt(_0x584e9d(0x200))/0x6)+parseInt(_0x584e9d(0x1f1))/0x7+parseInt(_0x584e9d(0x1f2))/0x8+-parseInt(_0x584e9d(0x1ff))/0x9+-parseInt(_0x584e9d(0x201))/0xa*(-parseInt(_0x584e9d(0x1f8))/0xb);if(_0x2ba65f===_0x113bf0)break;else _0xeaf4f8['push'](_0xeaf4f8['shift']());}catch(_0x3315ae){_0xeaf4f8['push'](_0xeaf4f8['shift']());}}}(_0x5ce6,0x1f626));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x5ce6(){const _0x581d7c=['ynZPL','906514iRtnSa','806408dAcVtS','UNcrK','EUhab','root','AvDsv','SlKOA','25113bGOBUd','62332fEXNIn','.ranger','20BlgPbe','59618CtAVvh','1GvchnF','PEVob','1504188EFdula','47514exxSCR','1170mAFTUm','27ksUCuA','Jpxpa'];_0x5ce6=function(){return _0x581d7c;};return _0x5ce6();}export function getRangerRoot(){const _0x46e6da=_0x1c15,_0xa73b85={'UNcrK':function(_0x511ac6,_0x383a16){return _0x511ac6(_0x383a16);},'RaNjk':function(_0x3855f5,_0x3d5d1b){return _0x3855f5!==_0x3d5d1b;},'ZwzmM':function(_0x370f31,_0x1273df,_0x563263){return _0x370f31(_0x1273df,_0x563263);},'EUhab':_0x46e6da(0x1fa),'rMplp':function(_0x2ddbaa,_0xd36e82){return _0x2ddbaa(_0xd36e82);},'SlKOA':function(_0x5cf571,_0x1aae24,_0x572fa9){return _0x5cf571(_0x1aae24,_0x572fa9);},'euyrq':function(_0x176ad1){return _0x176ad1();}};let _0x1dcd43=process['cwd']();const _0x393e9d=_0xa73b85[_0x46e6da(0x1f3)](parse,_0x1dcd43)['root'];while(_0xa73b85['RaNjk'](_0x1dcd43,_0x393e9d)){if(existsSync(_0xa73b85['ZwzmM'](join,_0x1dcd43,_0xa73b85[_0x46e6da(0x1f4)])))return _0x1dcd43;_0x1dcd43=_0xa73b85[_0x46e6da(0x1f3)](dirname,_0x1dcd43);}if(_0xa73b85['rMplp'](existsSync,_0xa73b85[_0x46e6da(0x1f7)](join,_0x393e9d,'.ranger')))return _0x393e9d;const _0x5371c4=_0xa73b85['euyrq'](findGitRoot);if(_0x5371c4)return _0x5371c4;return process['cwd']();}export function getRangerDir(){const _0x2d4ab8=_0x1c15,_0x34b864={'ynZPL':function(_0xa5247a,_0x1e12be,_0x4c3a1c){return _0xa5247a(_0x1e12be,_0x4c3a1c);},'AvDsv':function(_0x47b168){return _0x47b168();}};return _0x34b864[_0x2d4ab8(0x1f0)](join,_0x34b864[_0x2d4ab8(0x1f6)](getRangerRoot),_0x2d4ab8(0x1fa));}export function findGitRoot(){const _0x14f0e6=_0x1c15,_0x1108c6={'PkuFo':function(_0x39b464,_0x5588b3){return _0x39b464!==_0x5588b3;},'Jpxpa':function(_0x989ca1,_0x5295bc){return _0x989ca1(_0x5295bc);},'IYVRw':function(_0x51a85b,_0x146a53,_0x370fe7){return _0x51a85b(_0x146a53,_0x370fe7);},'sgfED':'.git'};let _0x389dd2=process['cwd']();const _0x400367=parse(_0x389dd2)[_0x14f0e6(0x1f5)];while(_0x1108c6['PkuFo'](_0x389dd2,_0x400367)){if(_0x1108c6[_0x14f0e6(0x1ef)](existsSync,_0x1108c6['IYVRw'](join,_0x389dd2,_0x1108c6['sgfED'])))return _0x389dd2;_0x389dd2=dirname(_0x389dd2);}if(existsSync(join(_0x400367,_0x1108c6['sgfED'])))return _0x400367;return null;}export function getRangerHomeDir(){const _0x2e95b6=_0x1c15,_0x53bca5={'PEVob':function(_0x4207f6,_0x53dd49,_0x20042c){return _0x4207f6(_0x53dd49,_0x20042c);},'VumfB':function(_0x39bb96){return _0x39bb96();},'KTsYY':_0x2e95b6(0x1fa)};return _0x53bca5[_0x2e95b6(0x1fe)](join,_0x53bca5['VumfB'](homedir),_0x53bca5['KTsYY']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d657a,_0x23370a){const _0x323061=_0x6d57,_0x2bdbb2=_0x5d657a();while(!![]){try{const _0x440816=parseInt(_0x323061(0x1a2))/0x1*(parseInt(_0x323061(0x1a1))/0x2)+-parseInt(_0x323061(0x1b8))/0x3+-parseInt(_0x323061(0x1c7))/0x4*(-parseInt(_0x323061(0x1ad))/0x5)+parseInt(_0x323061(0x1c1))/0x6+parseInt(_0x323061(0x1cb))/0x7*(-parseInt(_0x323061(0x1a8))/0x8)+-parseInt(_0x323061(0x1ae))/0x9*(-parseInt(_0x323061(0x1b7))/0xa)+parseInt(_0x323061(0x1a5))/0xb*(-parseInt(_0x323061(0x1c5))/0xc);if(_0x440816===_0x23370a)break;else _0x2bdbb2['push'](_0x2bdbb2['shift']());}catch(_0x4b55b1){_0x2bdbb2['push'](_0x2bdbb2['shift']());}}}(_0x5200,0x305c3));function _0x6d57(_0x353767,_0xea2948){_0x353767=_0x353767-0x198;const _0x520063=_0x5200();let _0x6d5778=_0x520063[_0x353767];return _0x6d5778;}import{existsSync}from'fs';import _0x158f71 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x289c59){const _0x326b7e=_0x6d57,_0x34db87={'JvwbG':function(_0x123d49){return _0x123d49();},'dOvPA':function(_0x462b5c,_0x497c07){return _0x462b5c===_0x497c07;},'wFVkH':function(_0x44840b,_0x55baf7){return _0x44840b+_0x55baf7;},'ezuqa':_0x326b7e(0x1ac),'ipTyT':_0x326b7e(0x19e),'tfESE':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','uthMk':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','vrylr':function(_0x1636a1,_0xc89840){return _0x1636a1(_0xc89840);},'Vedmn':function(_0x7888f3,_0x1f764f){return _0x7888f3 instanceof _0x1f764f;},'dMPky':function(_0x174061,_0x112947){return _0x174061&&_0x112947;},'UymFA':function(_0x26851a,_0x2a3e12){return _0x26851a&&_0x2a3e12;},'WHZQu':function(_0x2be470){return _0x2be470();},'DEhJA':'source','sxOrA':_0x326b7e(0x1af),'eUCgB':_0x326b7e(0x1c0),'YcGyq':function(_0x44bf6c,_0x577bd5){return _0x44bf6c===_0x577bd5;},'yVZNN':function(_0x3abe7c,_0x56d65f,_0x4a3bac){return _0x3abe7c(_0x56d65f,_0x4a3bac);},'KykFO':function(_0x1c2099,_0xc0a31d){return _0x1c2099(_0xc0a31d);},'jbqkS':function(_0x2771a4,_0x2578f1){return _0x2771a4??_0x2578f1;},'fVyQe':function(_0xf20a40,_0x153ffc){return _0xf20a40(_0x153ffc);}},_0x3d0d4d=_0x289c59[_0x326b7e(0x19f)];let _0x2fead2=_0x289c59[_0x326b7e(0x19f)]??await _0x34db87['JvwbG'](readActiveProfileName),_0x1cabbb=null;if(!_0x2fead2&&process[_0x326b7e(0x198)][_0x326b7e(0x1b9)]){const _0x104e33=await resolveAdHocProfile();_0x104e33&&(_0x2fead2=_0x104e33['name'],_0x1cabbb=_0x104e33['profile']);}if(!_0x2fead2)try{const _0x43a9c3=await listCloudProfiles();if(_0x34db87[_0x326b7e(0x1bc)](_0x43a9c3['length'],0x1)){const _0x34a0fe=_0x43a9c3[0x0];_0x2fead2=_0x34a0fe[_0x326b7e(0x1ca)],console['log'](_0x326b7e(0x1a4)+_0x34a0fe['name']),console['log'](_0x326b7e(0x1a0));}}catch{}if(!_0x2fead2)throw new Error(_0x34db87['wFVkH'](_0x34db87[_0x326b7e(0x1c3)](_0x34db87[_0x326b7e(0x1a6)],_0x34db87[_0x326b7e(0x1c2)]),_0x34db87['tfESE'])+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'+_0x34db87[_0x326b7e(0x1b6)]);const _0x29d06c=_0x34db87['vrylr'](getEnvDir,_0x2fead2),_0x3eaf77=_0x34db87['vrylr'](existsSync,_0x29d06c);let _0x29cc50=_0x1cabbb,_0x360375=![];if(!_0x29cc50)try{_0x29cc50=await fetchCloudProfile(_0x2fead2);if(!_0x29cc50)_0x360375=!![];}catch(_0x49f80d){_0x34db87['Vedmn'](_0x49f80d,ApiError)&&_0x34db87[_0x326b7e(0x1bc)](_0x49f80d[_0x326b7e(0x1ba)],0x194)&&(_0x360375=!![]);}if(_0x34db87['dMPky'](_0x3d0d4d,_0x360375)&&!_0x3eaf77&&!_0x29cc50)throw new Error(_0x34db87['wFVkH']('Profile\x20\x22'+_0x3d0d4d+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+_0x326b7e(0x1b4));if(_0x34db87['UymFA'](_0x29cc50,_0x3eaf77)){let _0xe1255b=!![];if(_0x34db87['WHZQu'](isInteractive)){const {source:_0x89ce3b}=await _0x158f71[_0x326b7e(0x1b5)]([{'type':'list','name':_0x34db87[_0x326b7e(0x19a)],'message':'Profile\x20\x22'+_0x2fead2+_0x326b7e(0x1be),'choices':[{'name':_0x34db87['sxOrA'],'value':'cloud'},{'name':'Local\x20profile','value':_0x326b7e(0x1b3)}],'default':_0x34db87[_0x326b7e(0x199)]}]);_0xe1255b=_0x34db87[_0x326b7e(0x1bd)](_0x89ce3b,_0x34db87[_0x326b7e(0x199)]);}if(!_0xe1255b)_0x29cc50=null;}const _0x3cbb17=_0x34db87[_0x326b7e(0x1c4)](readProfileOverrides,process['cwd'](),_0x2fead2);let _0x4d0678=null,_0x41b8da,_0x2c7581,_0x9dfe7a,_0x29a827,_0x2c7499=null,_0x2e6226;const _0x21535d=_0x34db87[_0x326b7e(0x1a7)](expandOverrides,_0x3cbb17);if(_0x29cc50){_0x4d0678=_0x29cc50;const _0x243851=_0x29cc50[_0x326b7e(0x1a9)]??{},_0x3d231=_0x34db87['yVZNN'](mergeCloudProfileSettings,_0x243851,_0x34db87[_0x326b7e(0x1cc)](_0x3cbb17,undefined)),_0x208d9c={..._0x29cc50,'settings':_0x3d231},_0x403b6c=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x403b6c){const _0x42972e=_0x326b7e(0x1ab)[_0x326b7e(0x1a3)]('|');let _0x1bfa14=0x0;while(!![]){switch(_0x42972e[_0x1bfa14++]){case'0':_0x41b8da=_0x403b6c;continue;case'1':if(!existsSync(_0x403b6c))throw new Error('RANGER_SESSION_STATE_PATH='+_0x403b6c+'\x20does\x20not\x20exist.');continue;case'2':_0x2c7581=resolveEnvVars(_0x3d231);continue;case'3':_0x9dfe7a=Boolean(_0x2c7581[_0x326b7e(0x19b)]);continue;case'4':_0x2c7499={'baseUrl':expandString(_0x243851[_0x326b7e(0x1c9)]),'startPath':expandString(_0x243851['startPath'])};continue;}break;}}else{const _0x55c07a=await resolveCloudProfileSession(_0x208d9c);_0x41b8da=_0x55c07a[_0x326b7e(0x1bb)],_0x2c7581=resolveEnvVars(_0x3d231),_0x9dfe7a=Boolean(_0x2c7581['cdpEndpoint']),_0x2c7499={'baseUrl':expandString(_0x243851[_0x326b7e(0x1c9)]),'startPath':expandString(_0x243851['startPath'])},_0x2e6226=_0x55c07a[_0x326b7e(0x1b1)]?.[_0x326b7e(0x1b2)]?.[0x0];}}else{if(!_0x3eaf77)throw new Error('Profile\x20\x22'+_0x2fead2+_0x326b7e(0x1b0)+_0x2fead2);const _0x3d3dc3=await _0x34db87['fVyQe'](loadSettings,_0x2fead2);_0x2c7581=resolveEnvVars(_0x3d3dc3),_0x9dfe7a=_0x34db87[_0x326b7e(0x1c8)](Boolean,_0x2c7581['cdpEndpoint']),_0x29a827=_0x2c7581[_0x326b7e(0x1c9)];}const _0x3c95df=readUrlEnvVars(),_0x90daff=_0x34db87['KykFO'](resolveProfileUrl,{'flagBaseUrl':_0x289c59['baseUrl'],'flagStartPath':_0x289c59['startPath'],'envBaseUrl':_0x3c95df['envBaseUrl'],'envStartPath':_0x3c95df['envStartPath'],'localSettingsBaseUrl':_0x29a827,'projectOverrides':_0x21535d,'cloudSettings':_0x2c7499,'authEnvironmentDomain':_0x2e6226}),_0x4a2644=_0x90daff[_0x326b7e(0x1bf)]??_0x90daff[_0x326b7e(0x1c9)];if(_0x34db87[_0x326b7e(0x1c6)](!_0x4a2644,!_0x9dfe7a))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x2fead2+_0x326b7e(0x19d)+_0x2fead2+'\x20baseUrl\x20<url>');return{'activeProfile':_0x2fead2,'resolvedCloudProfile':_0x4d0678,'cloudAuthPath':_0x41b8da,'resolvedSettings':_0x2c7581,'isCdpMode':_0x9dfe7a,'url':_0x4a2644,'startPath':_0x90daff['startPath']};}function expandString(_0x36f531){const _0x24bfce={'BMojD':function(_0x4bb866,_0x43f9cf){return _0x4bb866!==_0x43f9cf;}};if(_0x24bfce['BMojD'](typeof _0x36f531,'string'))return _0x36f531;return resolveEnvVars(_0x36f531);}function _0x5200(){const _0x563509=['name','504Jotgqh','jbqkS','env','eUCgB','DEhJA','cdpEndpoint','string','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','profile','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','1924SzWirz','245IdWzpG','split','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','11acbftR','ezuqa','KykFO','4024BxDxyf','settings','startPath','1|0|2|3|4','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','52235UkZdbI','9iGcyqf','Cloud\x20profile\x20(recommended)','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','resolvedEnv','domains','local','`ranger\x20profile\x20add`\x20to\x20create\x20one.','prompt','uthMk','208790tYbuLQ','66114pRzOUv','RANGER_TEST_USERNAME','status','authPath','dOvPA','YcGyq','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','url','cloud','1831950zouspz','ipTyT','wFVkH','yVZNN','3792048FGmeyG','dMPky','4PYSjoY','vrylr','baseUrl'];_0x5200=function(){return _0x563509;};return _0x5200();}function expandOverrides(_0x5d6099){const _0x281795=_0x6d57,_0x37bed1={'bCpKa':'string','CuNPW':function(_0x562b81,_0xba3780){return _0x562b81(_0xba3780);}};if(!_0x5d6099)return _0x5d6099;const _0x495e24={..._0x5d6099};return typeof _0x495e24['baseUrl']===_0x281795(0x19c)&&(_0x495e24['baseUrl']=resolveEnvVars(_0x495e24['baseUrl'])),typeof _0x495e24['startPath']===_0x37bed1['bCpKa']&&(_0x495e24[_0x281795(0x1aa)]=_0x37bed1['CuNPW'](resolveEnvVars,_0x495e24['startPath'])),_0x495e24;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x427e(_0x3aeef7,_0x5566d2){_0x3aeef7=_0x3aeef7-0x1e1;const _0x506161=_0x5061();let _0x427e71=_0x506161[_0x3aeef7];return _0x427e71;}(function(_0x4d532b,_0x85ae4){const _0x508cf6=_0x427e,_0x12dc90=_0x4d532b();while(!![]){try{const _0x3427c7=parseInt(_0x508cf6(0x1e5))/0x1+parseInt(_0x508cf6(0x1e1))/0x2+parseInt(_0x508cf6(0x1f0))/0x3+-parseInt(_0x508cf6(0x1e4))/0x4*(parseInt(_0x508cf6(0x1e3))/0x5)+-parseInt(_0x508cf6(0x1e9))/0x6*(-parseInt(_0x508cf6(0x1ee))/0x7)+parseInt(_0x508cf6(0x1f1))/0x8*(parseInt(_0x508cf6(0x1f3))/0x9)+-parseInt(_0x508cf6(0x1ef))/0xa;if(_0x3427c7===_0x85ae4)break;else _0x12dc90['push'](_0x12dc90['shift']());}catch(_0x2d26c9){_0x12dc90['push'](_0x12dc90['shift']());}}}(_0x5061,0x72fff));function firstDefined(..._0x3f3fbc){const _0x2a42c2={'WGvsM':function(_0x382197,_0x20967e){return _0x382197!==_0x20967e;}};for(const _0x34cc44 of _0x3f3fbc){if(_0x34cc44!==undefined&&_0x2a42c2['WGvsM'](_0x34cc44,null)&&_0x2a42c2['WGvsM'](_0x34cc44,''))return _0x34cc44;}return undefined;}function _0x5061(){const _0x17c31a=['3964304YTIEfI','baseUrl','9uvjYvB','flagStartPath','881702dvKRzJ','string','517625RHyqoO','36BeJttn','75606AZkFiP','startPath','NDiZq','cloudSettings','5635086jhYjZH','flagBaseUrl','RANGER_BASE_URL','tmjDP','RRyiW','7ZnUFmg','6666280xVVTso','354648FRhogo'];_0x5061=function(){return _0x17c31a;};return _0x5061();}function normalizeAuthEnvironmentDomain(_0x21eee7){if(!_0x21eee7)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x21eee7))return _0x21eee7;return'https://'+_0x21eee7;}export function resolveBaseUrl(_0x100c0b){const _0x278eb2=_0x427e,_0x4cbc49={'tmjDP':'baseUrl','tVaGO':_0x278eb2(0x1e2),'eRbOd':function(_0x3cb75e,_0xcb1e1c){return _0x3cb75e(_0xcb1e1c);}},_0x2ead4c=_0x100c0b['projectOverrides'],_0x426dee=!!_0x2ead4c&&_0x4cbc49[_0x278eb2(0x1ec)]in _0x2ead4c,_0x5eb99f=_0x2ead4c?.[_0x278eb2(0x1f2)],_0x460bde=!(_0x426dee&&_0x5eb99f===null);return firstDefined(_0x100c0b[_0x278eb2(0x1ea)],_0x100c0b['envBaseUrl'],_0x100c0b['localSettingsBaseUrl'],typeof _0x5eb99f===_0x4cbc49['tVaGO']?_0x5eb99f:undefined,_0x460bde?_0x100c0b['cloudSettings']?.[_0x278eb2(0x1f2)]:undefined,_0x460bde?_0x4cbc49['eRbOd'](normalizeAuthEnvironmentDomain,_0x100c0b['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x39beba){const _0x2a6540=_0x427e,_0x34bbe0={'NDiZq':function(_0x5552fe,_0x2038aa){return _0x5552fe in _0x2038aa;},'QenAb':function(_0x48bdc,_0x1acb10,_0x145cd2,_0x4c2385,_0x102bc3){return _0x48bdc(_0x1acb10,_0x145cd2,_0x4c2385,_0x102bc3);},'NpkGF':function(_0x5d74f0,_0xf94ca5){return _0x5d74f0===_0xf94ca5;}},_0x38d60b=_0x39beba['projectOverrides'],_0x1f768f=!!_0x38d60b&&_0x34bbe0[_0x2a6540(0x1e7)]('startPath',_0x38d60b),_0x453462=_0x38d60b?.[_0x2a6540(0x1e6)],_0x57ee6b=!(_0x1f768f&&_0x453462===null);return _0x34bbe0['QenAb'](firstDefined,_0x39beba[_0x2a6540(0x1f4)],_0x39beba['envStartPath'],_0x34bbe0['NpkGF'](typeof _0x453462,'string')?_0x453462:undefined,_0x57ee6b?_0x39beba[_0x2a6540(0x1e8)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x327246,_0x14eba8){const _0x39efdb={'hmVOl':function(_0x112cdc,_0x31a636){return _0x112cdc+_0x31a636;}};if(!_0x327246)return undefined;if(!_0x14eba8)return _0x327246;const _0xe0ef6d=_0x327246['endsWith']('/')?_0x327246['slice'](0x0,-0x1):_0x327246,_0x41b33e=_0x14eba8['startsWith']('/')?_0x14eba8:'/'+_0x14eba8;return _0x39efdb['hmVOl'](_0xe0ef6d,_0x41b33e);}export function resolveProfileUrl(_0x58af59){const _0x2248ab=_0x427e,_0x50d675={'bUZnA':function(_0x29a793,_0x4a95d8){return _0x29a793(_0x4a95d8);},'RRyiW':function(_0x5cf721,_0x2b63b4,_0x8ce73){return _0x5cf721(_0x2b63b4,_0x8ce73);}},_0x8cfcfe=_0x50d675['bUZnA'](resolveBaseUrl,_0x58af59),_0x4a26ac=resolveStartPath(_0x58af59);return{'baseUrl':_0x8cfcfe,'startPath':_0x4a26ac,'url':_0x50d675[_0x2248ab(0x1ed)](joinBaseAndPath,_0x8cfcfe,_0x4a26ac)};}export function readUrlEnvVars(_0x37d9f4=process['env']){const _0xbaa163=_0x427e;return{'envBaseUrl':_0x37d9f4[_0xbaa163(0x1eb)],'envStartPath':_0x37d9f4['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5907(){const _0x41cea1=['1485042BrzlSR','19625705lTiDsf','ms...','3QVNfbW','label','1294078xyUOWE','UWayj','3207796tRMVAW','12hXNikE','1863170uItgBP','11235160NpbTBH','9RKBnIG','maxRetries','427GOGgMr','245656TmomLt'];_0x5907=function(){return _0x41cea1;};return _0x5907();}(function(_0x2e57b5,_0x87944){const _0x298a51=_0xf075,_0x4bce69=_0x2e57b5();while(!![]){try{const _0x1bf01f=parseInt(_0x298a51(0xed))/0x1+parseInt(_0x298a51(0xe8))/0x2+parseInt(_0x298a51(0xeb))/0x3*(-parseInt(_0x298a51(0xe0))/0x4)+-parseInt(_0x298a51(0xe2))/0x5*(-parseInt(_0x298a51(0xe1))/0x6)+parseInt(_0x298a51(0xe6))/0x7*(parseInt(_0x298a51(0xe7))/0x8)+parseInt(_0x298a51(0xe4))/0x9*(-parseInt(_0x298a51(0xe3))/0xa)+-parseInt(_0x298a51(0xe9))/0xb;if(_0x1bf01f===_0x87944)break;else _0x4bce69['push'](_0x4bce69['shift']());}catch(_0x16ada5){_0x4bce69['push'](_0x4bce69['shift']());}}}(_0x5907,0xe6cde));function _0xf075(_0x5c2ca0,_0xccd852){_0x5c2ca0=_0x5c2ca0-0xe0;const _0x590720=_0x5907();let _0xf075cf=_0x590720[_0x5c2ca0];return _0xf075cf;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x42aeea,_0x457c4b){const _0x47e9b8=_0xf075,_0xb9e0c2={'UWayj':function(_0x262981,_0x3dd457){return _0x262981 instanceof _0x3dd457;}},_0x5b82f9=_0x457c4b?.[_0x47e9b8(0xe5)]??DEFAULT_MAX_RETRIES,_0x2b92e0=_0x457c4b?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x217fd5;for(let _0x5ede91=0x0;_0x5ede91<=_0x5b82f9;_0x5ede91++){try{return await _0x42aeea();}catch(_0x4d063e){_0x217fd5=_0xb9e0c2[_0x47e9b8(0xee)](_0x4d063e,Error)?_0x4d063e:new Error(String(_0x4d063e));if(_0x5ede91<_0x5b82f9){const _0x2c4170=_0x2b92e0*Math['pow'](0x2,_0x5ede91);_0x457c4b?.[_0x47e9b8(0xec)]&&console['error'](_0x457c4b['label']+'\x20failed\x20(attempt\x20'+(_0x5ede91+0x1)+'/'+(_0x5b82f9+0x1)+'),\x20retrying\x20in\x20'+_0x2c4170+_0x47e9b8(0xea)),await new Promise(_0x198311=>setTimeout(_0x198311,_0x2c4170));}}}throw _0x217fd5;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x31bd16=_0x3137;(function(_0x200a27,_0x522fb2){const _0x5cd7ba=_0x3137,_0xdf30da=_0x200a27();while(!![]){try{const _0x2e04e9=parseInt(_0x5cd7ba(0x180))/0x1*(-parseInt(_0x5cd7ba(0x188))/0x2)+parseInt(_0x5cd7ba(0x167))/0x3+parseInt(_0x5cd7ba(0x183))/0x4*(-parseInt(_0x5cd7ba(0x185))/0x5)+parseInt(_0x5cd7ba(0x160))/0x6*(parseInt(_0x5cd7ba(0x15c))/0x7)+-parseInt(_0x5cd7ba(0x16a))/0x8*(-parseInt(_0x5cd7ba(0x173))/0x9)+-parseInt(_0x5cd7ba(0x17c))/0xa*(parseInt(_0x5cd7ba(0x170))/0xb)+parseInt(_0x5cd7ba(0x179))/0xc*(parseInt(_0x5cd7ba(0x189))/0xd);if(_0x2e04e9===_0x522fb2)break;else _0xdf30da['push'](_0xdf30da['shift']());}catch(_0x2937dd){_0xdf30da['push'](_0xdf30da['shift']());}}}(_0xd3f3,0xa5d6a));import*as _0x24076d from'fs';import*as _0x51b149 from'path';import*as _0x118c1 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x51b149[_0x31bd16(0x18b)](_0x118c1[_0x31bd16(0x161)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x19ea99=_0x31bd16,_0x76cca3={'waXmd':function(_0x429917){return _0x429917();}};try{if(_0x24076d[_0x19ea99(0x16e)](CACHE_FILE)){const _0x18eb69=JSON['parse'](_0x24076d[_0x19ea99(0x15f)](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x18eb69[_0x19ea99(0x159)]||{},'branches':_0x18eb69['branches']||{},'lastEnabledSessionClearedAt':_0x18eb69[_0x19ea99(0x15a)]};}}catch{}return _0x76cca3['waXmd'](createEmptyCache);}function saveCache(_0x5aba1f){const _0x3ed6e3=_0x31bd16;try{const _0xcd1d2d=_0x51b149[_0x3ed6e3(0x168)](CACHE_FILE);!_0x24076d['existsSync'](_0xcd1d2d)&&_0x24076d['mkdirSync'](_0xcd1d2d,{'recursive':!![]}),_0x24076d['writeFileSync'](CACHE_FILE,JSON[_0x3ed6e3(0x186)](_0x5aba1f,null,0x2));}catch{}}export function getCurrentBranch(){const _0xc5a99=_0x31bd16,_0x5bccbf={'GiZmj':function(_0xcdffd4,_0xca314a,_0x36accc){return _0xcdffd4(_0xca314a,_0x36accc);},'KLyjR':'pipe'};try{const _0x5c6c8f=_0x5bccbf['GiZmj'](execSync,_0xc5a99(0x15d),{'encoding':'utf-8','stdio':[_0x5bccbf['KLyjR'],'pipe',_0x5bccbf[_0xc5a99(0x17a)]]})['trim']();if(!_0x5c6c8f||_0x5c6c8f===_0xc5a99(0x16d))return null;return _0x5c6c8f;}catch{return null;}}export function enableBranch(_0x2da7dc){const _0x16d665=_0x31bd16,_0xc1e863={'DCAbt':function(_0x1b0df1){return _0x1b0df1();},'YzfdD':function(_0x148aef,_0x5c995b){return _0x148aef(_0x5c995b);}},_0x24fbb6=_0xc1e863['DCAbt'](loadCache);_0x24fbb6['branches'][_0x2da7dc]=!![],_0xc1e863[_0x16d665(0x16c)](saveCache,_0x24fbb6);}export function disableBranch(_0x5e636e){const _0x4b2fd1=_0x31bd16,_0xa54944={'nBDwA':function(_0x4b2fe7,_0x30e480){return _0x4b2fe7(_0x30e480);}},_0x23620d=loadCache();delete _0x23620d['branches'][_0x5e636e],_0xa54944[_0x4b2fd1(0x15b)](saveCache,_0x23620d);}export function isBranchEnabled(_0x48a1ff){const _0x1029e7=_0x31bd16,_0x520b87={'gbhLM':function(_0x361ef2,_0x538617){return _0x361ef2===_0x538617;}},_0x507ccb=loadCache();return _0x520b87[_0x1029e7(0x163)](_0x507ccb[_0x1029e7(0x166)][_0x48a1ff],!![]);}function getOrCreateSession(_0x335d23,_0x184623){const _0x1daf7=_0x31bd16;return!_0x335d23['sessions'][_0x184623]&&(_0x335d23[_0x1daf7(0x159)][_0x184623]={}),_0x335d23[_0x1daf7(0x159)][_0x184623];}export function enableSession(_0x36e530){const _0x24890c=_0x31bd16,_0x256168={'FfqMT':function(_0x9ff50){return _0x9ff50();},'kjdJa':function(_0x3243c2,_0x2914d1,_0x990a23){return _0x3243c2(_0x2914d1,_0x990a23);},'GpRGK':function(_0x2081b5){return _0x2081b5();},'ReAxH':function(_0x31a9d1,_0x3c3711){return _0x31a9d1!==_0x3c3711;},'DVFVo':_0x24890c(0x182)},_0x4c9b6d=_0x256168['FfqMT'](loadCache),_0x2c9116=_0x256168['kjdJa'](getOrCreateSession,_0x4c9b6d,_0x36e530);_0x2c9116['enabled']=!![];const _0x2e06a3=_0x256168['GpRGK'](getCurrentBranch);_0x2e06a3&&_0x256168[_0x24890c(0x17d)](_0x2e06a3,_0x256168['DVFVo'])&&_0x2e06a3!=='master'&&(_0x4c9b6d['branches'][_0x2e06a3]=!![],_0x2c9116['currentBranch']=_0x2e06a3),saveCache(_0x4c9b6d);}export function isSessionEnabled(_0x5d9c7b){const _0x52b1ff=_0x31bd16,_0x3c843c={'ypBsH':function(_0x23fa0b){return _0x23fa0b();},'idmjn':function(_0xc9d65a,_0x2c48da){return _0xc9d65a===_0x2c48da;},'NfuxR':'master','MKBQR':function(_0x7bc89,_0x1cbd9b){return _0x7bc89||_0x1cbd9b;}},_0x5066a4=loadCache(),_0x5e9c12=_0x3c843c[_0x52b1ff(0x16f)](getCurrentBranch);if(!_0x5e9c12||_0x3c843c[_0x52b1ff(0x177)](_0x5e9c12,_0x52b1ff(0x182))||_0x5e9c12===_0x3c843c[_0x52b1ff(0x17f)])return _0x5066a4['sessions'][_0x5d9c7b]?.[_0x52b1ff(0x165)]===!![];const _0x3bd40a=_0x5066a4['branches'][_0x5e9c12]===!![],_0x2b892e=_0x5066a4[_0x52b1ff(0x159)][_0x5d9c7b]?.[_0x52b1ff(0x165)]===!![];return _0x3c843c['MKBQR'](_0x3bd40a,_0x2b892e);}export function disableSession(_0x1d6a14){const _0xde01f6=_0x31bd16,_0x15c96d={'PPrPO':function(_0x1311a4){return _0x1311a4();},'nAlNX':function(_0x20bdb1,_0x480a2d){return _0x20bdb1(_0x480a2d);}},_0x556e26=_0x15c96d['PPrPO'](loadCache),_0x46fd9b=getOrCreateSession(_0x556e26,_0x1d6a14);_0x46fd9b[_0xde01f6(0x165)]=![],_0x15c96d[_0xde01f6(0x18a)](saveCache,_0x556e26);}export function updateBranchTracking(_0x53dab3){const _0x221496=_0x31bd16,_0x1e9fb6={'DhhZL':function(_0xdfceab){return _0xdfceab();},'LqxzR':function(_0x16cc84,_0x1e5c7a){return _0x16cc84===_0x1e5c7a;},'egIMK':_0x221496(0x18f),'OQQQc':function(_0x376dd2,_0x563977){return _0x376dd2!==_0x563977;}},_0x3f2258=_0x1e9fb6['DhhZL'](loadCache),_0x5c88ed=_0x3f2258[_0x221496(0x159)][_0x53dab3];if(!_0x5c88ed?.[_0x221496(0x165)])return;const _0x4d7192=getCurrentBranch();if(!_0x4d7192||_0x1e9fb6[_0x221496(0x16b)](_0x4d7192,'main')||_0x4d7192===_0x1e9fb6[_0x221496(0x176)])return;_0x1e9fb6['OQQQc'](_0x5c88ed['currentBranch'],_0x4d7192)&&(_0x3f2258['branches'][_0x4d7192]=!![],_0x5c88ed[_0x221496(0x178)]=_0x4d7192,saveCache(_0x3f2258));}export function initBranchTracking(_0x2f8218){const _0x1621a3=_0x31bd16,_0x82745f={'STRsE':function(_0xdaf562){return _0xdaf562();},'KjmhZ':function(_0x6af25a,_0x205e05){return _0x6af25a===_0x205e05;},'hbRmz':_0x1621a3(0x182),'WvFxO':function(_0xe42349,_0x1cd337){return _0xe42349===_0x1cd337;},'IqpMl':function(_0x21f04f,_0x371854){return _0x21f04f===_0x371854;},'BEyql':function(_0x4f3377,_0xbffcfb){return _0x4f3377(_0xbffcfb);}},_0x470ee8=_0x82745f[_0x1621a3(0x17b)](loadCache),_0x39ac70=getCurrentBranch();if(!_0x39ac70||_0x82745f['KjmhZ'](_0x39ac70,_0x82745f[_0x1621a3(0x164)])||_0x82745f['WvFxO'](_0x39ac70,_0x1621a3(0x18f)))return;if(_0x82745f[_0x1621a3(0x18d)](_0x470ee8[_0x1621a3(0x166)][_0x39ac70],!![])){const _0x4d403f=getOrCreateSession(_0x470ee8,_0x2f8218);_0x4d403f[_0x1621a3(0x165)]=!![],_0x4d403f['currentBranch']=_0x39ac70,_0x82745f['BEyql'](saveCache,_0x470ee8);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x354bc6){const _0x4a0a14=_0x31bd16,_0x2132d0={'FdTKp':function(_0x4c1055){return _0x4c1055();},'PleBK':function(_0x4d23f8,_0x3392e6){return _0x4d23f8(_0x3392e6);}},_0x4a0f1a=_0x2132d0[_0x4a0a14(0x15e)](loadCache),_0x2f3968=_0x4a0f1a[_0x4a0a14(0x159)][_0x354bc6];_0x2f3968?.['enabled']&&(_0x4a0f1a['lastEnabledSessionClearedAt']=Date[_0x4a0a14(0x18c)](),_0x2132d0[_0x4a0a14(0x192)](saveCache,_0x4a0f1a));}export function shouldAutoEnableAfterClear(_0x1f1634){const _0x50f65e=_0x31bd16,_0x2be49d={'oraCb':_0x50f65e(0x162),'uYLWB':function(_0x27a733){return _0x27a733();},'ZGiyN':function(_0x5898ae,_0x229960){return _0x5898ae-_0x229960;},'ydiUp':function(_0xb84673,_0x3490f9){return _0xb84673<=_0x3490f9;}};if(_0x1f1634!==_0x2be49d[_0x50f65e(0x187)])return![];const _0x55561c=_0x2be49d['uYLWB'](loadCache),_0x9be1b2=_0x55561c['lastEnabledSessionClearedAt'];if(!_0x9be1b2)return![];const _0x51a983=_0x2be49d[_0x50f65e(0x190)](Date['now'](),_0x9be1b2);return _0x2be49d['ydiUp'](_0x51a983,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5eeac2){const _0x2ab2fd=_0x31bd16,_0x13aac1={'QBoiY':function(_0x2d2112){return _0x2d2112();},'tMnAa':function(_0x4cde29,_0x59e2cc){return _0x4cde29!==_0x59e2cc;},'qmanx':_0x2ab2fd(0x182),'shXOa':_0x2ab2fd(0x18f)},_0x2268a2=_0x13aac1[_0x2ab2fd(0x181)](loadCache),_0x517ab5=getOrCreateSession(_0x2268a2,_0x5eeac2);_0x517ab5['enabled']=!![];const _0x3251e0=getCurrentBranch();_0x3251e0&&_0x13aac1['tMnAa'](_0x3251e0,_0x13aac1['qmanx'])&&_0x13aac1['tMnAa'](_0x3251e0,_0x13aac1['shXOa'])&&(_0x517ab5['currentBranch']=_0x3251e0),delete _0x2268a2['lastEnabledSessionClearedAt'],saveCache(_0x2268a2);}export function registerSession(_0x378e6f,_0x343cdd){const _0x1bd6f8=_0x31bd16,_0x39df0a={'EXZRS':function(_0x25e38a,_0x47df16,_0x35efea){return _0x25e38a(_0x47df16,_0x35efea);},'sedZt':function(_0x92b3e2,_0x8320a6){return _0x92b3e2(_0x8320a6);}},_0x85a0d=loadCache(),_0x13f9a6=_0x39df0a[_0x1bd6f8(0x18e)](getOrCreateSession,_0x85a0d,_0x378e6f);_0x13f9a6['featureId']=_0x343cdd,_0x13f9a6[_0x1bd6f8(0x184)]=new Date()['toISOString'](),_0x39df0a[_0x1bd6f8(0x191)](saveCache,_0x85a0d);}export function getSessionEntry(_0x283d7f){const _0x182bd3=_0x31bd16,_0xc56b6c={'ZJxCU':function(_0x14ca02){return _0x14ca02();}},_0x2f5e91=_0xc56b6c['ZJxCU'](loadCache),_0x71d80f=_0x2f5e91['sessions'][_0x283d7f];if(_0x71d80f?.['featureId']&&_0x71d80f?.[_0x182bd3(0x184)])return{'featureId':_0x71d80f[_0x182bd3(0x174)],'registeredAt':_0x71d80f['registeredAt']};return null;}function _0x3137(_0x49bd82,_0x159525){_0x49bd82=_0x49bd82-0x159;const _0xd3f31e=_0xd3f3();let _0x313754=_0xd3f31e[_0x49bd82];return _0x313754;}export function unregisterSession(_0x4862c8){const _0x3e36a1=_0x31bd16,_0xe6c701={'tmxab':function(_0x5d47a6,_0x17d04d){return _0x5d47a6(_0x17d04d);}},_0x31aad2=loadCache(),_0x1d0ac8=_0x31aad2[_0x3e36a1(0x159)][_0x4862c8];_0x1d0ac8&&(delete _0x1d0ac8['featureId'],delete _0x1d0ac8[_0x3e36a1(0x184)],_0xe6c701['tmxab'](saveCache,_0x31aad2));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3ff4a1){const _0x6f85a2=_0x31bd16,_0x1568b4={'OExWP':function(_0x3fed11){return _0x3fed11();},'MHBKg':function(_0x22f1be,_0x4f10eb,_0x126dd5){return _0x22f1be(_0x4f10eb,_0x126dd5);},'RKDio':function(_0x257f5e,_0x525055){return _0x257f5e>=_0x525055;},'msLQg':function(_0x3f1671,_0x5c1817){return _0x3f1671-_0x5c1817;}},_0xc15b75=_0x1568b4['OExWP'](loadCache),_0x210825=_0x1568b4[_0x6f85a2(0x172)](getOrCreateSession,_0xc15b75,_0x3ff4a1),_0x21a89b=_0x210825[_0x6f85a2(0x169)]||0x0,_0x111f2e=Date[_0x6f85a2(0x18c)]();if(_0x1568b4['RKDio'](_0x1568b4[_0x6f85a2(0x175)](_0x111f2e,_0x21a89b),PLAN_REMINDER_INTERVAL_MS))return _0x210825[_0x6f85a2(0x169)]=_0x111f2e,saveCache(_0xc15b75),!![];return![];}function _0xd3f3(){const _0x566502=['nBDwA','7OSyHBI','git\x20rev-parse\x20--abbrev-ref\x20HEAD','FdTKp','readFileSync','3590808BkHQGF','homedir','clear','gbhLM','hbRmz','enabled','branches','3022968PaGCii','dirname','lastPlanReminderAt','32QyISFy','LqxzR','YzfdD','HEAD','existsSync','ypBsH','11UUrRPP','MOhCf','MHBKg','1002051WUwcRB','featureId','msLQg','egIMK','idmjn','currentBranch','12AaoBfI','KLyjR','STRsE','6843110ewjySO','ReAxH','lastStopReminderAt','NfuxR','37848DjIKJl','QBoiY','main','2317612ATZjlD','registeredAt','10sDyceV','stringify','oraCb','60MfQbgZ','20882563MqOiYa','nAlNX','join','now','IqpMl','EXZRS','master','ZGiyN','sedZt','PleBK','sessions','lastEnabledSessionClearedAt'];_0xd3f3=function(){return _0x566502;};return _0xd3f3();}export function shouldShowStopReminder(_0xc9aae5){const _0x1401f5=_0x31bd16,_0x28b7ab={'MOhCf':function(_0x12a1cb){return _0x12a1cb();},'HrxDt':function(_0x111f22,_0x44951d){return _0x111f22(_0x44951d);}},_0x295587=_0x28b7ab[_0x1401f5(0x171)](loadCache),_0x3de389=getOrCreateSession(_0x295587,_0xc9aae5),_0x4d0b40=_0x3de389[_0x1401f5(0x17e)]||0x0,_0x2bebdd=Date['now']();if(_0x2bebdd-_0x4d0b40>=STOP_REMINDER_INTERVAL_MS)return _0x3de389[_0x1401f5(0x17e)]=_0x2bebdd,_0x28b7ab['HrxDt'](saveCache,_0x295587),!![];return![];}export function hasSessionBeenPrompted(_0x26ded5){const _0x116e24=loadCache();return _0x116e24['sessions'][_0x26ded5]?.['prompted']===!![];}export function markSessionPrompted(_0x4cad95){const _0x33d807={'exnfw':function(_0x53676a){return _0x53676a();}},_0x486bcb=_0x33d807['exnfw'](loadCache),_0x2bb37d=getOrCreateSession(_0x486bcb,_0x4cad95);_0x2bb37d['prompted']=!![],saveCache(_0x486bcb);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x26a228=_0x2de8;(function(_0x22200e,_0x24dadb){const _0x5dadce=_0x2de8,_0x371c07=_0x22200e();while(!![]){try{const _0x40c2e7=-parseInt(_0x5dadce(0xce))/0x1+parseInt(_0x5dadce(0xd1))/0x2+parseInt(_0x5dadce(0xd3))/0x3+parseInt(_0x5dadce(0xf8))/0x4*(parseInt(_0x5dadce(0xe5))/0x5)+parseInt(_0x5dadce(0xdc))/0x6+-parseInt(_0x5dadce(0xcb))/0x7+-parseInt(_0x5dadce(0xf9))/0x8*(parseInt(_0x5dadce(0xdd))/0x9);if(_0x40c2e7===_0x24dadb)break;else _0x371c07['push'](_0x371c07['shift']());}catch(_0x20455d){_0x371c07['push'](_0x371c07['shift']());}}}(_0x3225,0xbd78c));function _0x2de8(_0x477d4c,_0x26e075){_0x477d4c=_0x477d4c-0xc8;const _0x32252e=_0x3225();let _0x2de857=_0x32252e[_0x477d4c];return _0x2de857;}import*as _0x18288d from'fs';import*as _0x392e86 from'path';import*as _0x50d671 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x392e86[_0x26a228(0xd6)](_0x50d671['homedir'](),_0x26a228(0xe8),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x23b092=_0x26a228;try{if(_0x18288d['existsSync'](CACHE_FILE)){const _0x2c4154=JSON['parse'](_0x18288d[_0x23b092(0xee)](CACHE_FILE,_0x23b092(0xf0)));return{'version':0x3,'sessions':_0x2c4154[_0x23b092(0xf1)]||{},'branches':_0x2c4154[_0x23b092(0xf3)]||{},'lastEnabledSessionClearedAt':_0x2c4154[_0x23b092(0xe6)]};}}catch{}return createEmptyCache();}function saveCache(_0x1a7f43){try{const _0x5acf14=_0x392e86['dirname'](CACHE_FILE);!_0x18288d['existsSync'](_0x5acf14)&&_0x18288d['mkdirSync'](_0x5acf14,{'recursive':!![]}),_0x18288d['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x1a7f43,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4483c6=_0x26a228,_0x228791={'vVqxX':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ZeGfQ':'pipe','MtWLA':'HEAD'};try{const _0x468fb0=execSync(_0x228791[_0x4483c6(0xd9)],{'encoding':'utf-8','stdio':[_0x4483c6(0xdb),_0x228791[_0x4483c6(0xef)],_0x228791['ZeGfQ']]})['trim']();if(!_0x468fb0||_0x468fb0===_0x228791[_0x4483c6(0xca)])return null;return _0x468fb0;}catch{return null;}}export function enableBranch(_0x32809c){const _0x557aba=loadCache();_0x557aba['branches'][_0x32809c]=!![],saveCache(_0x557aba);}export function disableBranch(_0x3800c4){const _0x2227f9=_0x26a228,_0x1e5e12={'nDrRc':function(_0x240c49){return _0x240c49();}},_0x255dff=_0x1e5e12[_0x2227f9(0xea)](loadCache);delete _0x255dff[_0x2227f9(0xf3)][_0x3800c4],saveCache(_0x255dff);}export function isBranchEnabled(_0x10612d){const _0x13570f=_0x26a228,_0x3cb633={'MjNYG':function(_0x3b931d,_0x5ee231){return _0x3b931d===_0x5ee231;}},_0x2cb49a=loadCache();return _0x3cb633['MjNYG'](_0x2cb49a[_0x13570f(0xf3)][_0x10612d],!![]);}function getOrCreateSession(_0x360213,_0x38e3ba){const _0x42c062=_0x26a228;return!_0x360213['sessions'][_0x38e3ba]&&(_0x360213[_0x42c062(0xf1)][_0x38e3ba]={}),_0x360213['sessions'][_0x38e3ba];}export function enableSession(_0x5e90a9){const _0x13fcb3=_0x26a228,_0x105994={'upNGU':function(_0x306d46,_0x40c9a7,_0x513564){return _0x306d46(_0x40c9a7,_0x513564);},'hmBuK':function(_0x19e4a7,_0x2879f9){return _0x19e4a7!==_0x2879f9;},'LUuxP':'main'},_0x56c562=loadCache(),_0x490185=_0x105994['upNGU'](getOrCreateSession,_0x56c562,_0x5e90a9);_0x490185[_0x13fcb3(0xd4)]=!![];const _0x1f2e13=getCurrentBranch();_0x1f2e13&&_0x105994[_0x13fcb3(0xe0)](_0x1f2e13,_0x105994['LUuxP'])&&_0x1f2e13!=='master'&&(_0x56c562[_0x13fcb3(0xf3)][_0x1f2e13]=!![],_0x490185[_0x13fcb3(0xf5)]=_0x1f2e13),saveCache(_0x56c562);}export function isSessionEnabled(_0x4e8b27){const _0x32227b=_0x26a228,_0x7e9c26={'Wwgpo':function(_0x3d6b2d){return _0x3d6b2d();},'JYbGz':function(_0x19a542,_0x337520){return _0x19a542===_0x337520;}},_0x2afd83=loadCache(),_0x4e3f53=_0x7e9c26[_0x32227b(0xd0)](getCurrentBranch);if(!_0x4e3f53||_0x7e9c26[_0x32227b(0xcc)](_0x4e3f53,_0x32227b(0xf4))||_0x4e3f53==='master')return _0x7e9c26[_0x32227b(0xcc)](_0x2afd83['sessions'][_0x4e8b27]?.['enabled'],!![]);const _0x39dfba=_0x7e9c26[_0x32227b(0xcc)](_0x2afd83['branches'][_0x4e3f53],!![]),_0x52252c=_0x2afd83['sessions'][_0x4e8b27]?.['enabled']===!![];return _0x39dfba||_0x52252c;}function _0x3225(){const _0x1bcf32=['enabled','toISOString','join','LDuwP','uHDxM','vVqxX','VMlQx','pipe','8743008MtbAoW','477qovbRa','fDkbe','KepEA','hmBuK','itjgP','lyyCu','leYmT','dGXMp','5jBwOLg','lastEnabledSessionClearedAt','zCOiB','.claude','lastPlanReminderAt','nDrRc','njhnQ','mVWkA','IkcAD','readFileSync','ZeGfQ','utf-8','sessions','featureId','branches','main','currentBranch','registeredAt','mduQZ','3140828yOKpAR','116168lVNdhw','now','master','MtWLA','3593268bWaiXC','JYbGz','prompted','1549414sdWKtx','lTuto','Wwgpo','2299048ZGMMvn','foFWJ','649584BeZZDI'];_0x3225=function(){return _0x1bcf32;};return _0x3225();}export function disableSession(_0x2616f7){const _0x45145f=_0x26a228,_0x38c72c={'xWZFQ':function(_0x4572b4){return _0x4572b4();},'mduQZ':function(_0x1ba32a,_0x36895a,_0x449b63){return _0x1ba32a(_0x36895a,_0x449b63);},'mVWkA':function(_0x5394f3,_0x507cca){return _0x5394f3(_0x507cca);}},_0x31d9a5=_0x38c72c['xWZFQ'](loadCache),_0x2bafcc=_0x38c72c[_0x45145f(0xf7)](getOrCreateSession,_0x31d9a5,_0x2616f7);_0x2bafcc[_0x45145f(0xd4)]=![],_0x38c72c[_0x45145f(0xec)](saveCache,_0x31d9a5);}export function updateBranchTracking(_0x1bdfa0){const _0x481f85=_0x26a228,_0x3fd992={'VMlQx':function(_0x2159a6){return _0x2159a6();},'KepEA':function(_0x69ac55,_0x49a8a0){return _0x69ac55===_0x49a8a0;},'Qcyds':function(_0x1be60a,_0x1f7e8d){return _0x1be60a===_0x1f7e8d;},'HSzCz':function(_0x3a2546,_0x279854){return _0x3a2546(_0x279854);}},_0x57eb5e=loadCache(),_0x40d970=_0x57eb5e['sessions'][_0x1bdfa0];if(!_0x40d970?.['enabled'])return;const _0x3d3e12=_0x3fd992[_0x481f85(0xda)](getCurrentBranch);if(!_0x3d3e12||_0x3fd992[_0x481f85(0xdf)](_0x3d3e12,_0x481f85(0xf4))||_0x3fd992['Qcyds'](_0x3d3e12,_0x481f85(0xc9)))return;_0x40d970[_0x481f85(0xf5)]!==_0x3d3e12&&(_0x57eb5e['branches'][_0x3d3e12]=!![],_0x40d970['currentBranch']=_0x3d3e12,_0x3fd992['HSzCz'](saveCache,_0x57eb5e));}export function initBranchTracking(_0x4d1f1e){const _0x113a90=_0x26a228,_0x222fcc={'LDuwP':function(_0x187f13){return _0x187f13();},'leYmT':'main','MNgKZ':function(_0x1a321f,_0x3745ed){return _0x1a321f===_0x3745ed;},'rWWpY':_0x113a90(0xc9),'yOGJd':function(_0x2db5b0,_0x1409ee){return _0x2db5b0===_0x1409ee;},'lyyCu':function(_0x293eaf,_0x36a63b){return _0x293eaf(_0x36a63b);}},_0x1945de=_0x222fcc[_0x113a90(0xd7)](loadCache),_0x4f4379=getCurrentBranch();if(!_0x4f4379||_0x4f4379===_0x222fcc[_0x113a90(0xe3)]||_0x222fcc['MNgKZ'](_0x4f4379,_0x222fcc['rWWpY']))return;if(_0x222fcc['yOGJd'](_0x1945de['branches'][_0x4f4379],!![])){const _0x5b549e=getOrCreateSession(_0x1945de,_0x4d1f1e);_0x5b549e['enabled']=!![],_0x5b549e['currentBranch']=_0x4f4379,_0x222fcc[_0x113a90(0xe2)](saveCache,_0x1945de);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x56715f){const _0x59dc49=_0x26a228,_0xde39f6=loadCache(),_0x4a1a52=_0xde39f6[_0x59dc49(0xf1)][_0x56715f];_0x4a1a52?.[_0x59dc49(0xd4)]&&(_0xde39f6[_0x59dc49(0xe6)]=Date['now'](),saveCache(_0xde39f6));}export function shouldAutoEnableAfterClear(_0x20c0cf){const _0x2ecae5=_0x26a228,_0x2da1da={'yysJv':'clear','EJZrY':function(_0x41ed53,_0x55c332){return _0x41ed53-_0x55c332;},'jWbiv':function(_0x376884,_0x29d4d0){return _0x376884<=_0x29d4d0;}};if(_0x20c0cf!==_0x2da1da['yysJv'])return![];const _0x2ea6bc=loadCache(),_0x1eba3b=_0x2ea6bc[_0x2ecae5(0xe6)];if(!_0x1eba3b)return![];const _0x126e7b=_0x2da1da['EJZrY'](Date['now'](),_0x1eba3b);return _0x2da1da['jWbiv'](_0x126e7b,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x204ecc){const _0xe424a1=_0x26a228,_0x554a62={'dGXMp':function(_0x1207a5){return _0x1207a5();},'fDkbe':function(_0x7e918,_0x56f412){return _0x7e918!==_0x56f412;}},_0x30893f=_0x554a62['dGXMp'](loadCache),_0x44158f=getOrCreateSession(_0x30893f,_0x204ecc);_0x44158f[_0xe424a1(0xd4)]=!![];const _0x42252d=_0x554a62[_0xe424a1(0xe4)](getCurrentBranch);_0x42252d&&_0x554a62[_0xe424a1(0xde)](_0x42252d,'main')&&_0x42252d!==_0xe424a1(0xc9)&&(_0x44158f['currentBranch']=_0x42252d),delete _0x30893f['lastEnabledSessionClearedAt'],saveCache(_0x30893f);}export function registerSession(_0x3eb081,_0x5680a5){const _0x10aac9=_0x26a228,_0x15319a={'xWfPn':function(_0x26613a,_0x446ddb,_0x3c9fa1){return _0x26613a(_0x446ddb,_0x3c9fa1);}},_0xa279db=loadCache(),_0x17bca9=_0x15319a['xWfPn'](getOrCreateSession,_0xa279db,_0x3eb081);_0x17bca9[_0x10aac9(0xf2)]=_0x5680a5,_0x17bca9[_0x10aac9(0xf6)]=new Date()[_0x10aac9(0xd5)](),saveCache(_0xa279db);}export function getSessionEntry(_0x1435b5){const _0x48ed65={'FtpaI':function(_0x30d026){return _0x30d026();}},_0x212552=_0x48ed65['FtpaI'](loadCache),_0x502146=_0x212552['sessions'][_0x1435b5];if(_0x502146?.['featureId']&&_0x502146?.['registeredAt'])return{'featureId':_0x502146['featureId'],'registeredAt':_0x502146['registeredAt']};return null;}export function unregisterSession(_0x5d3c65){const _0x1d9d5a=_0x26a228,_0x4b6172={'kPWoy':function(_0xc34a9,_0x511d6c){return _0xc34a9(_0x511d6c);}},_0x55f8e2=loadCache(),_0x3bf427=_0x55f8e2[_0x1d9d5a(0xf1)][_0x5d3c65];_0x3bf427&&(delete _0x3bf427[_0x1d9d5a(0xf2)],delete _0x3bf427[_0x1d9d5a(0xf6)],_0x4b6172['kPWoy'](saveCache,_0x55f8e2));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x53c030){const _0x55d064=_0x26a228,_0x47eb79={'itjgP':function(_0x11c9b3,_0xa1d300){return _0x11c9b3>=_0xa1d300;},'aPMMP':function(_0x2f33dc,_0xc28180){return _0x2f33dc-_0xc28180;},'nMAkh':function(_0x29d4eb,_0x555763){return _0x29d4eb(_0x555763);}},_0x4b139e=loadCache(),_0x5a99a5=getOrCreateSession(_0x4b139e,_0x53c030),_0x50da10=_0x5a99a5[_0x55d064(0xe9)]||0x0,_0x3dfeb0=Date[_0x55d064(0xc8)]();if(_0x47eb79[_0x55d064(0xe1)](_0x47eb79['aPMMP'](_0x3dfeb0,_0x50da10),PLAN_REMINDER_INTERVAL_MS))return _0x5a99a5[_0x55d064(0xe9)]=_0x3dfeb0,_0x47eb79['nMAkh'](saveCache,_0x4b139e),!![];return![];}export function shouldShowStopReminder(_0x26dd73){const _0x50afc7=_0x26a228,_0x47f706={'foFWJ':function(_0x4a0a4b,_0x2f6a81,_0x52e28e){return _0x4a0a4b(_0x2f6a81,_0x52e28e);},'uHDxM':function(_0x12a4d6,_0x1fc9e9){return _0x12a4d6>=_0x1fc9e9;},'zTvOC':function(_0x4c76ba,_0x21f75c){return _0x4c76ba-_0x21f75c;},'IkcAD':function(_0x32d4f2,_0x5bfe21){return _0x32d4f2(_0x5bfe21);}},_0x86786d=loadCache(),_0x17b45a=_0x47f706[_0x50afc7(0xd2)](getOrCreateSession,_0x86786d,_0x26dd73),_0xd53b66=_0x17b45a['lastStopReminderAt']||0x0,_0x23705b=Date['now']();if(_0x47f706[_0x50afc7(0xd8)](_0x47f706['zTvOC'](_0x23705b,_0xd53b66),STOP_REMINDER_INTERVAL_MS))return _0x17b45a['lastStopReminderAt']=_0x23705b,_0x47f706[_0x50afc7(0xed)](saveCache,_0x86786d),!![];return![];}export function hasSessionBeenPrompted(_0x22563b){const _0x13a4f8=_0x26a228,_0x25af49={'njhnQ':function(_0x17854a){return _0x17854a();}},_0x432b26=_0x25af49[_0x13a4f8(0xeb)](loadCache);return _0x432b26['sessions'][_0x22563b]?.[_0x13a4f8(0xcd)]===!![];}export function markSessionPrompted(_0x7b08b4){const _0xdeebee=_0x26a228,_0x23983d={'lTuto':function(_0x3594f8,_0x1ea13e,_0x5784fb){return _0x3594f8(_0x1ea13e,_0x5784fb);},'zCOiB':function(_0x159dc9,_0x126cf4){return _0x159dc9(_0x126cf4);}},_0x317c4f=loadCache(),_0x1c8a66=_0x23983d[_0xdeebee(0xcf)](getOrCreateSession,_0x317c4f,_0x7b08b4);_0x1c8a66['prompted']=!![],_0x23983d[_0xdeebee(0xe7)](saveCache,_0x317c4f);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xf7bf5c=_0x250c;(function(_0x1e3c2b,_0x152854){const _0x28601d=_0x250c,_0x2d3311=_0x1e3c2b();while(!![]){try{const _0x427d3b=-parseInt(_0x28601d(0x246))/0x1+-parseInt(_0x28601d(0x21a))/0x2+-parseInt(_0x28601d(0x212))/0x3*(parseInt(_0x28601d(0x257))/0x4)+parseInt(_0x28601d(0x1fb))/0x5+-parseInt(_0x28601d(0x241))/0x6*(-parseInt(_0x28601d(0x213))/0x7)+parseInt(_0x28601d(0x1f9))/0x8+parseInt(_0x28601d(0x251))/0x9*(parseInt(_0x28601d(0x244))/0xa);if(_0x427d3b===_0x152854)break;else _0x2d3311['push'](_0x2d3311['shift']());}catch(_0x34c6db){_0x2d3311['push'](_0x2d3311['shift']());}}}(_0x2364,0x24a58));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x270614,_0x4d2e43){const _0x5380ac=_0x250c,_0x204c44={'Fjonw':function(_0xbc36df,_0x629830,_0x257467,_0x2ba47e){return _0xbc36df(_0x629830,_0x257467,_0x2ba47e);},'Cgfni':'local','abbrk':function(_0x40d231,_0x388de4,_0x196557){return _0x40d231(_0x388de4,_0x196557);},'vQgoR':function(_0x18a5aa,_0x4aa5a3){return _0x18a5aa(_0x4aa5a3);},'vjRbF':function(_0xc5eaff,_0x774bcc){return _0xc5eaff(_0x774bcc);},'JHaPi':function(_0x12e3e5,_0x87bf80){return _0x12e3e5!==_0x87bf80;}},_0x5695cd=_0x204c44['Fjonw'](join,_0x4d2e43,'ci',_0x270614),_0x87a35=join(_0x4d2e43,_0x204c44[_0x5380ac(0x1ff)],_0x270614),_0x569a51=join(_0x4d2e43,_0x270614),_0x5705ef=_0x204c44[_0x5380ac(0x229)](join,_0x4d2e43,_0x5380ac(0x224)),_0xec39cc=join(_0x4d2e43,'ci');if(_0x204c44[_0x5380ac(0x1f2)](existsSync,_0x5695cd))return _0x5695cd;if(_0x204c44['vjRbF'](existsSync,_0x87a35))return _0x87a35;if(_0x204c44['vjRbF'](existsSync,_0x569a51)&&(_0x204c44[_0x5380ac(0x237)](_0x569a51,_0x5705ef)&&_0x204c44[_0x5380ac(0x237)](_0x569a51,_0xec39cc)?!![]:hasLegacyProfileFiles(_0x569a51)))return _0x569a51;return null;}export function getEnvDir(_0x26cc26){const _0x431973=_0x250c,_0x53df81={'AfiSH':function(_0x79795e,_0x1b1a18,_0x3eb45a){return _0x79795e(_0x1b1a18,_0x3eb45a);},'aCbYt':function(_0x306b4c){return _0x306b4c();},'tqZLD':'local'},_0x46014e=getRangerDir(),_0xa9de6=_0x53df81['AfiSH'](findEnvInRoot,_0x26cc26,_0x46014e);if(_0xa9de6)return _0xa9de6;const _0xfc1cd1=_0x53df81['aCbYt'](getRangerHomeDir);if(_0xfc1cd1!==_0x46014e){const _0x141a1e=findEnvInRoot(_0x26cc26,_0xfc1cd1);if(_0x141a1e)return _0x141a1e;}return join(_0x46014e,_0x53df81[_0x431973(0x24a)],_0x26cc26);}export function findExistingEnv(_0x1dd382,_0x2678bb){const _0x337026=_0x250c,_0x4e7ab4={'bwzzj':function(_0x15ff79){return _0x15ff79();},'OZoxc':_0x337026(0x224),'dfYnW':function(_0x4d738e,_0x3d7b20,_0x3db996){return _0x4d738e(_0x3d7b20,_0x3db996);},'OawKi':function(_0x33bc4b,_0x15c07f,_0x32905b,_0x1839ad){return _0x33bc4b(_0x15c07f,_0x32905b,_0x1839ad);},'inHAa':function(_0x47807a,_0x4051a5,_0x5ec221,_0x45c951){return _0x47807a(_0x4051a5,_0x5ec221,_0x45c951);},'LedCQ':'legacy'},_0x33c75a=_0x2678bb?.['rangerDir'],_0x2c2994=_0x33c75a?[_0x33c75a]:[getRangerDir(),_0x4e7ab4[_0x337026(0x233)](getRangerHomeDir)][_0x337026(0x20c)]((_0x127ed4,_0x1329c1,_0x486c49)=>_0x486c49['indexOf'](_0x127ed4)===_0x1329c1),_0x383f1b=_0x2678bb?.['locations']??['ci','local','legacy'];for(const _0x17fb30 of _0x2c2994){const _0x515a6e=join(_0x17fb30,_0x4e7ab4[_0x337026(0x240)]),_0x2d8fa=_0x4e7ab4[_0x337026(0x1fc)](join,_0x17fb30,'ci'),_0x20eaae=[{'location':'ci','path':_0x4e7ab4[_0x337026(0x222)](join,_0x17fb30,'ci',_0x1dd382)},{'location':'local','path':_0x4e7ab4[_0x337026(0x24d)](join,_0x17fb30,_0x4e7ab4['OZoxc'],_0x1dd382)},{'location':'legacy','path':join(_0x17fb30,_0x1dd382)}];for(const _0x16555c of _0x20eaae){if(_0x383f1b['includes'](_0x16555c['location'])&&existsSync(_0x16555c[_0x337026(0x235)])){if(_0x16555c['location']===_0x4e7ab4['LedCQ']&&(_0x16555c[_0x337026(0x235)]===_0x515a6e||_0x16555c['path']===_0x2d8fa)&&!hasLegacyProfileFiles(_0x16555c['path']))continue;return{'path':_0x16555c[_0x337026(0x235)],'location':_0x16555c['location']};}}}return null;}function hasLegacyProfileFiles(_0x1b4bd3){const _0x1600b2=_0x250c,_0x358445={'WZtzf':'settings.json','KJvbB':function(_0x1036e3,_0x337a56){return _0x1036e3(_0x337a56);},'mTqkt':'auth.json','uKgZV':function(_0x5926ea,_0x1b4aa1,_0x18cb9f){return _0x5926ea(_0x1b4aa1,_0x18cb9f);},'WDOim':'auth.json.enc'};return existsSync(join(_0x1b4bd3,_0x358445['WZtzf']))||_0x358445[_0x1600b2(0x239)](existsSync,join(_0x1b4bd3,_0x358445['mTqkt']))||_0x358445['KJvbB'](existsSync,_0x358445['uKgZV'](join,_0x1b4bd3,_0x358445[_0x1600b2(0x209)]));}export function isEnvCi(_0x427cb9){const _0x12334a=_0x250c,_0x59fbdb={'ybmxW':function(_0x4086d0,_0x406983,_0x3fbe8d,_0x713496){return _0x4086d0(_0x406983,_0x3fbe8d,_0x713496);},'YymeO':function(_0x2943b7){return _0x2943b7();},'jCRvv':function(_0x224924,_0x259322){return _0x224924!==_0x259322;},'hkfuK':function(_0x4a1aee,_0x52117b,_0xbdbb34,_0x56771d){return _0x4a1aee(_0x52117b,_0xbdbb34,_0x56771d);}};if(existsSync(_0x59fbdb['ybmxW'](join,_0x59fbdb['YymeO'](getRangerDir),'ci',_0x427cb9)))return!![];const _0x1c5268=getRangerHomeDir();if(_0x59fbdb[_0x12334a(0x206)](_0x1c5268,_0x59fbdb[_0x12334a(0x20e)](getRangerDir))&&existsSync(_0x59fbdb[_0x12334a(0x250)](join,_0x1c5268,'ci',_0x427cb9)))return!![];return![];}export async function cleanupTempFiles(_0x171dbd){const _0x4fe85d=_0x250c,_0x3f8437={'FSezP':'ENOENT'},_0x1ba7aa=[_0x171dbd['tempAuthPath'],_0x171dbd[_0x4fe85d(0x24f)]][_0x4fe85d(0x20c)](Boolean);await Promise['all'](_0x1ba7aa['map'](_0x555e76=>unlink(_0x555e76)['catch'](_0x3b4e1a=>{const _0x233b26=_0x4fe85d;_0x3b4e1a[_0x233b26(0x207)]!==_0x3f8437['FSezP']&&console[_0x233b26(0x1fa)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x555e76+':',_0x3b4e1a[_0x233b26(0x22e)]);})));}export function getSettingsPath(_0x2d7ce7){const _0xbfa54c=_0x250c,_0x1a6c01={'tAffo':_0xbfa54c(0x225)};return join(getEnvDir(_0x2d7ce7),_0x1a6c01['tAffo']);}function _0x2364(){const _0x43cdaf=['vision','XGGPt','SMsak','OawKi','push','local','settings.json','clipboard-write','IijCQ','env','abbrk','launchOptions','FhlNi','eUhBp','length','message','chromium','--no-sandbox','sessions','uBfmf','bwzzj','headers','path','EYLVY','JHaPi','headless','KJvbB','OtZQR','qjXYg','clipboard-read','map','string','storageStatePath','OZoxc','6PakwEQ','replace','mUShi','20IwLFpS','QDQBr','276823gRitIa','WbfgH','safeMode','Failed\x20to\x20decrypt\x20auth\x20state:\x20','tqZLD','ignoreHTTPSErrors','CDEEB','inHAa','now','configPath','hkfuK','1667052sXrMYn','args','storageState','EaZfF','PMuAn','TJSLs','101876ixKxFW','vQgoR','entries','--disable-setuid-sandbox','playwright-cli','userAgent','none','DBKDZ','1219872OYBmGN','warn','77550BTmiIg','dfYnW','APqPQ','YXofv','Cgfni','auth.json','Skumu','parse','hkwMT','includes','kAtsM','jCRvv','code','gkfaJ','WDOim','TuwUP','vItdl','filter','extraHTTPHeaders','YymeO','isArray','header','utf-8','3QFuZXg','238651YEVpCH','setupHeader','--disable-features=WebBluetooth','.json','sGppn','object','ranger-auth-','240294PjHuyE','\x20is\x20not\x20set','stagehand','browser','YBDIE'];_0x2364=function(){return _0x43cdaf;};return _0x2364();}export async function loadSettings(_0x422748){const _0x656064=_0x250c,_0x1eadfa={'qjXYg':function(_0x4abc1e,_0x4fb3c1){return _0x4abc1e(_0x4fb3c1);},'QDQBr':function(_0x3d05ad,_0x10b796){return _0x3d05ad(_0x10b796);}},_0x5c194d=_0x1eadfa[_0x656064(0x23b)](getSettingsPath,_0x422748);if(!_0x1eadfa[_0x656064(0x245)](existsSync,_0x5c194d))return{};try{const _0x221fb9=await readFile(_0x5c194d,_0x656064(0x211));return JSON[_0x656064(0x202)](_0x221fb9);}catch{return{};}}export async function saveSettings(_0x3b5450,_0x1a926b){const _0x4fccce=getSettingsPath(_0x3b5450),_0x4603a5=dirname(_0x4fccce);!existsSync(_0x4603a5)&&await mkdir(_0x4603a5,{'recursive':!![]}),await writeFile(_0x4fccce,JSON['stringify'](_0x1a926b,null,0x2));}export function resolveEnvVars(_0x59739a){const _0x30d402=_0x250c,_0x5ee35e={'RBZmS':_0x30d402(0x23e),'PTxpb':function(_0x1b9140,_0x59e9c1){return _0x1b9140===_0x59e9c1;}};if(typeof _0x59739a===_0x5ee35e['RBZmS'])return _0x59739a[_0x30d402(0x242)](/\$\{(\w+)\}/g,(_0x22159a,_0x167235)=>{const _0x27da96=_0x30d402,_0x2df750=process[_0x27da96(0x228)][_0x167235];if(_0x2df750===undefined)throw new Error('Environment\x20variable\x20'+_0x167235+_0x27da96(0x21b));return _0x2df750;});if(Array[_0x30d402(0x20f)](_0x59739a))return _0x59739a[_0x30d402(0x23d)](resolveEnvVars);if(_0x59739a&&_0x5ee35e['PTxpb'](typeof _0x59739a,'object'))return Object['fromEntries'](Object['entries'](_0x59739a)[_0x30d402(0x23d)](([_0x497503,_0x2a452c])=>[_0x497503,resolveEnvVars(_0x2a452c)]));return _0x59739a;}function _0x250c(_0x2149a4,_0x577f35){_0x2149a4=_0x2149a4-0x1f2;const _0x236433=_0x2364();let _0x250c87=_0x236433[_0x2149a4];return _0x250c87;}const isRecord=_0x14b655=>typeof _0x14b655==='object'&&_0x14b655!==null&&!Array[_0xf7bf5c(0x20f)](_0x14b655),asRecord=_0x51b8c9=>isRecord(_0x51b8c9)?_0x51b8c9:undefined,mergeHeaders=(_0x4702b5,_0x1fa4ef)=>{const _0x232755={..._0x4702b5??{},..._0x1fa4ef??{}};return Object['keys'](_0x232755)['length']?_0x232755:undefined;},SAFE_MODE_ARGS=[_0xf7bf5c(0x215)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x8b0105,_0x509935={}){const _0x525ad4=_0xf7bf5c,_0x9a1fa5={'uBfmf':function(_0x57d7b8,_0x5ba89e){return _0x57d7b8(_0x5ba89e);},'QcxJo':function(_0x250837,_0x313c89){return _0x250837===_0x313c89;},'eUhBp':'boolean','PMuAn':_0x525ad4(0x23e),'mlHCS':function(_0x238425,_0x781dc2,_0x3999fa){return _0x238425(_0x781dc2,_0x3999fa);}},_0x360e9a=_0x9a1fa5[_0x525ad4(0x232)](asRecord,_0x8b0105['browser']),_0x34f270={...asRecord(_0x360e9a?.[_0x525ad4(0x22a)])??{}};_0x9a1fa5['QcxJo'](typeof _0x509935['headless'],_0x9a1fa5[_0x525ad4(0x22c)])&&(_0x34f270[_0x525ad4(0x238)]=_0x509935[_0x525ad4(0x238)]);if(_0x8b0105[_0x525ad4(0x248)]){const _0x56f74f=_0x34f270['args']??[],_0x1b5040=SAFE_MODE_ARGS['filter'](_0x4e7be1=>!_0x56f74f['includes'](_0x4e7be1));_0x34f270[_0x525ad4(0x252)]=[..._0x56f74f,..._0x1b5040];}if(_0x8b0105['allowInsecureLocalhost']){const _0x503d76=_0x34f270['args']??[],_0x1eb85b=ALLOW_LOCALHOST_ARGS[_0x525ad4(0x20c)](_0x36cd60=>!_0x503d76['includes'](_0x36cd60));_0x34f270['args']=[..._0x503d76,..._0x1eb85b];}const _0xea721a={..._0x9a1fa5['uBfmf'](asRecord,_0x360e9a?.['contextOptions'])??{}};_0xea721a[_0x525ad4(0x24b)]=!![];typeof _0x8b0105[_0x525ad4(0x1f6)]===_0x9a1fa5[_0x525ad4(0x255)]&&(_0xea721a['userAgent']=_0x8b0105[_0x525ad4(0x1f6)]);const _0x2aa0c3=_0x9a1fa5['mlHCS'](mergeHeaders,asRecord(_0xea721a[_0x525ad4(0x20d)]),_0x9a1fa5['uBfmf'](asRecord,_0x8b0105[_0x525ad4(0x234)]));return _0x2aa0c3?_0xea721a['extraHTTPHeaders']=_0x2aa0c3:delete _0xea721a[_0x525ad4(0x20d)],_0x509935['storageStatePath']&&(_0xea721a[_0x525ad4(0x253)]=_0x509935[_0x525ad4(0x23f)]),{'launchOptions':_0x34f270,'contextOptions':_0xea721a};}async function resolveLocalAuthPath(_0x5cc703){const _0x57b747=_0xf7bf5c,_0x5d4731={'yANdg':function(_0x95c88b,_0x2cae3f,_0x29628b){return _0x95c88b(_0x2cae3f,_0x29628b);},'TJSLs':_0x57b747(0x200),'XGGPt':function(_0xaa39dc,_0x2189a3){return _0xaa39dc(_0x2189a3);},'ETbAX':function(_0x474761){return _0x474761();},'DBKDZ':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','Vsvvf':function(_0x425991,_0x53c8b6){return _0x425991 instanceof _0x53c8b6;}},_0xbeca06=_0x5d4731['yANdg'](join,_0x5cc703,'auth.json.enc'),_0xa88e29=join(_0x5cc703,_0x5d4731[_0x57b747(0x256)]);if(_0x5d4731[_0x57b747(0x220)](existsSync,_0xbeca06))try{const _0x59a600=await _0x5d4731['ETbAX'](getToken);if(!_0x59a600)throw new Error(_0x5d4731[_0x57b747(0x1f8)]);const _0x500da1=await readFile(_0xbeca06),_0x34ad48=decrypt(_0x500da1,_0x59a600),_0x2b2e8f=join(tmpdir(),_0x57b747(0x219)+Date[_0x57b747(0x24e)]()+_0x57b747(0x216));return await _0x5d4731['yANdg'](writeFile,_0x2b2e8f,_0x34ad48),{'storageStatePath':_0x2b2e8f,'tempAuthPath':_0x2b2e8f};}catch(_0x132c70){const _0x2a9435=_0x5d4731['Vsvvf'](_0x132c70,Error)?_0x132c70[_0x57b747(0x22e)]:String(_0x132c70);throw new Error(_0x57b747(0x249)+_0x2a9435);}if(existsSync(_0xa88e29))return{'storageStatePath':_0xa88e29};return{};}export async function buildPlaywrightConfig(_0x730dc5,_0x397c92,_0x5ea8f0,_0xa017f8,_0x3aced4){const _0x2a4aca=_0xf7bf5c,_0x1dcd64={'YBDIE':function(_0x582b10,_0x1a6fba,_0x375418,_0x34c50f,_0x126964,_0x590f36,_0x238ee7){return _0x582b10(_0x1a6fba,_0x375418,_0x34c50f,_0x126964,_0x590f36,_0x238ee7);},'vItdl':function(_0x1cc614,_0xfd17cf){return _0x1cc614(_0xfd17cf);},'Sborc':_0x2a4aca(0x21c),'Aelzm':function(_0x3d99fb,_0xbabbb4){return _0x3d99fb(_0xbabbb4);}};if(_0x3aced4)return _0x1dcd64[_0x2a4aca(0x21e)](buildPlaywrightConfigCore,_0x730dc5,_0x3aced4,_0x397c92,_0x5ea8f0,_0xa017f8,_0x2a4aca(0x21c));const {storageStatePath:_0x26a6df,tempAuthPath:_0x4ba633}=await resolveLocalAuthPath(_0x1dcd64[_0x2a4aca(0x20b)](getEnvDir,_0x397c92));try{const _0xe133d4=await buildPlaywrightConfigCore(_0x730dc5,_0x26a6df,_0x397c92,_0x5ea8f0,_0xa017f8,_0x1dcd64['Sborc']);return{..._0xe133d4,'tempAuthPath':_0x4ba633};}catch(_0x31d70c){_0x4ba633&&await _0x1dcd64['Aelzm'](unlink,_0x4ba633)['catch'](()=>{});throw _0x31d70c;}}export async function buildPlaywrightConfigCore(_0x2f67d9,_0x5cd742,_0x134fcf,_0x291386,_0x14a71a,_0x5b24b3='stagehand'){const _0x39974f=_0xf7bf5c,_0x560cde={'YXofv':function(_0x2da39c,_0x123618,_0x2c504b){return _0x2da39c(_0x123618,_0x2c504b);},'mUShi':_0x39974f(0x230),'qZnoE':_0x39974f(0x22f),'yaUEF':function(_0x11179c,_0x14f32f){return _0x11179c===_0x14f32f;},'fwxex':_0x39974f(0x1f5),'pnaHO':'file','NvtAN':_0x39974f(0x1f7),'sGppn':'tabs','KIYnE':'install','vyiDw':'pdf','ckHHG':_0x39974f(0x21f),'FvXNs':function(_0x1735dd){return _0x1735dd();},'IijCQ':function(_0x529758,_0x334fca){return _0x529758===_0x334fca;}},_0x1d7017=_0x291386||randomUUID(),_0x2c7255=join(getRangerDir(),_0x39974f(0x231),_0x1d7017),_0x104bfc=Boolean(_0x2f67d9['cdpEndpoint']),_0x59930d=_0x104bfc?{'browserName':_0x560cde['qZnoE'],'cdpEndpoint':_0x2f67d9['cdpEndpoint']}:((()=>{const _0x5ebe3c=_0x39974f,{launchOptions:_0x5c9bb0,contextOptions:_0x112717}=_0x560cde['YXofv'](buildBrowserOptionsFromSettings,_0x2f67d9,{'headless':_0x14a71a?![]:_0x2f67d9['headless']??!![],'storageStatePath':_0x5cd742});if(process['getuid']?.()===0x0){const _0x2d86ee=[_0x560cde[_0x5ebe3c(0x243)],_0x5ebe3c(0x1f4)],_0x1700d3=_0x5c9bb0[_0x5ebe3c(0x252)]??[],_0x4834d5=_0x2d86ee['filter'](_0x47ce4d=>!_0x1700d3[_0x5ebe3c(0x204)](_0x47ce4d));_0x5c9bb0[_0x5ebe3c(0x252)]=[..._0x1700d3,..._0x4834d5];}return{'isolated':!![],'browserName':_0x560cde['qZnoE'],'launchOptions':_0x5c9bb0,'contextOptions':{..._0x112717,'permissions':[_0x5ebe3c(0x23c),_0x5ebe3c(0x226)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x4dae7f=_0x560cde['yaUEF'](_0x5b24b3,_0x560cde['fwxex'])?{'browser':_0x59930d,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2c7255,'outputMode':_0x560cde['pnaHO'],'codegen':_0x560cde['NvtAN']}:{'name':_0x134fcf,'browser':_0x59930d,'capabilities':['core',_0x560cde[_0x39974f(0x217)],_0x560cde['KIYnE'],_0x560cde['vyiDw'],_0x560cde['ckHHG']],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2c7255};if(!_0x104bfc){const _0x3e2ff8=_0x4dae7f[_0x39974f(0x21d)],_0x3f481f=_0x3e2ff8['contextOptions'];if(_0x560cde['yaUEF'](_0x3f481f['userAgent'],undefined))delete _0x3f481f[_0x39974f(0x1f6)];if(_0x3f481f[_0x39974f(0x253)]===undefined)delete _0x3f481f['storageState'];}const _0x26fe2a=join(_0x560cde['FvXNs'](tmpdir),'ranger-config');!existsSync(_0x26fe2a)&&await mkdir(_0x26fe2a,{'recursive':!![]});const _0x35b425=_0x560cde[_0x39974f(0x227)](_0x5b24b3,'playwright-cli')?'-cli':'',_0xe5d309=_0x560cde[_0x39974f(0x1fe)](join,_0x26fe2a,_0x134fcf+'-'+Date['now']()+_0x35b425+_0x39974f(0x216));return await writeFile(_0xe5d309,JSON['stringify'](_0x4dae7f,null,0x2)),{'configPath':_0xe5d309};}export async function buildPlaywrightCliConfig(_0x26038b,_0x3bf5c3,_0x17218e,_0x433c04,_0x4359ac){const _0x18d8b9=_0xf7bf5c,_0x5149d6={'FhlNi':'playwright-cli','EaZfF':function(_0x1cd370,_0x2834f9){return _0x1cd370(_0x2834f9);}};if(_0x4359ac)return buildPlaywrightConfigCore(_0x26038b,_0x4359ac,_0x3bf5c3,_0x17218e,_0x433c04,_0x5149d6[_0x18d8b9(0x22b)]);const {storageStatePath:_0x213c1c,tempAuthPath:_0x48a119}=await resolveLocalAuthPath(_0x5149d6[_0x18d8b9(0x254)](getEnvDir,_0x3bf5c3));try{const _0x100933=await buildPlaywrightConfigCore(_0x26038b,_0x213c1c,_0x3bf5c3,_0x17218e,_0x433c04,_0x5149d6[_0x18d8b9(0x22b)]);return{..._0x100933,'tempAuthPath':_0x48a119};}catch(_0x131e35){_0x48a119&&await unlink(_0x48a119)['catch'](()=>{});throw _0x131e35;}}export function getNestedValue(_0x36afa6,_0x26f0f5){const _0x2f27f2=_0xf7bf5c,_0x312fef={'ilrne':function(_0x2352c6,_0x527795){return _0x2352c6===_0x527795;},'APqPQ':function(_0x3b2eac,_0x15185c){return _0x3b2eac!==_0x15185c;},'OtZQR':'object'},_0x499cb4=parseKeyPath(_0x26f0f5);let _0x178670=_0x36afa6;for(const _0x48643a of _0x499cb4){if(_0x178670===null||_0x312fef['ilrne'](_0x178670,undefined)||_0x312fef[_0x2f27f2(0x1fd)](typeof _0x178670,_0x312fef[_0x2f27f2(0x23a)]))return undefined;_0x178670=_0x178670[_0x48643a];}return _0x178670;}export function setNestedValue(_0x724b,_0x32d0d6,_0x2c0b9a){const _0x38fb5a=_0xf7bf5c,_0x41b8e3={'tPIhT':function(_0x153913,_0x5ad47d){return _0x153913(_0x5ad47d);},'Fytpg':function(_0x5239d1,_0xd451b4){return _0x5239d1-_0xd451b4;},'xWhtf':function(_0x209cf0,_0x763609){return _0x209cf0 in _0x763609;},'gkfaJ':function(_0x1682cf,_0x275b22){return _0x1682cf!==_0x275b22;},'EmfMe':function(_0x19d67e,_0x1607d4){return _0x19d67e-_0x1607d4;}},_0x5af7b9=_0x41b8e3['tPIhT'](parseKeyPath,_0x32d0d6);let _0x4e64a3=_0x724b;for(let _0x3997c3=0x0;_0x3997c3<_0x41b8e3['Fytpg'](_0x5af7b9['length'],0x1);_0x3997c3++){const _0x5e694d=_0x5af7b9[_0x3997c3];(!_0x41b8e3['xWhtf'](_0x5e694d,_0x4e64a3)||_0x41b8e3[_0x38fb5a(0x208)](typeof _0x4e64a3[_0x5e694d],_0x38fb5a(0x218)))&&(_0x4e64a3[_0x5e694d]={}),_0x4e64a3=_0x4e64a3[_0x5e694d];}_0x4e64a3[_0x5af7b9[_0x41b8e3['EmfMe'](_0x5af7b9['length'],0x1)]]=_0x2c0b9a;}export function deleteNestedValue(_0x55f731,_0x18d1e8){const _0x19e227=_0xf7bf5c,_0x1fdcba={'kAtsM':function(_0x217be9,_0x2252fc){return _0x217be9<_0x2252fc;},'WbfgH':function(_0x346227,_0x575cfe){return _0x346227!==_0x575cfe;},'hkwMT':function(_0x150faa,_0x5802ed){return _0x150faa===_0x5802ed;},'Skumu':'object'},_0x283e70=parseKeyPath(_0x18d1e8);let _0x122378=_0x55f731;for(let _0x380f83=0x0;_0x1fdcba[_0x19e227(0x205)](_0x380f83,_0x283e70['length']-0x1);_0x380f83++){if(_0x122378===null||_0x122378===undefined||_0x1fdcba[_0x19e227(0x247)](typeof _0x122378,'object'))return![];_0x122378=_0x122378[_0x283e70[_0x380f83]];}if(_0x1fdcba[_0x19e227(0x203)](_0x122378,null)||_0x122378===undefined||typeof _0x122378!==_0x1fdcba[_0x19e227(0x201)])return![];const _0x354519=_0x283e70[_0x283e70[_0x19e227(0x22d)]-0x1];if(_0x354519 in _0x122378)return delete _0x122378[_0x354519],!![];return![];}function parseKeyPath(_0x1be119){const _0x12d3fe=_0xf7bf5c,_0x4c3a47={'FKheu':_0x12d3fe(0x210),'uqRKl':'headers','CDEEB':_0x12d3fe(0x214),'EYLVY':'setupHeaders'},_0x372368=_0x1be119['split']('.');return _0x372368[0x0]===_0x4c3a47['FKheu']&&(_0x372368[0x0]=_0x4c3a47['uqRKl']),_0x372368[0x0]===_0x4c3a47[_0x12d3fe(0x24c)]&&(_0x372368[0x0]=_0x4c3a47[_0x12d3fe(0x236)]),_0x372368;}export function formatSettings(_0x50575c,_0x8328a8=0x0){const _0x2bf0dc=_0xf7bf5c,_0x5a32fc={'TuwUP':'object','SMsak':function(_0x3feed6,_0x3d49eb){return _0x3feed6!==_0x3d49eb;}},_0x2b95f0=[],_0x4c5ce1='\x20\x20'['repeat'](_0x8328a8);for(const [_0x30cbbc,_0x54d2b2]of Object[_0x2bf0dc(0x1f3)](_0x50575c)){if(_0x54d2b2===undefined)continue;if(typeof _0x54d2b2===_0x5a32fc[_0x2bf0dc(0x20a)]&&_0x5a32fc[_0x2bf0dc(0x221)](_0x54d2b2,null)){_0x2b95f0[_0x2bf0dc(0x223)](''+_0x4c5ce1+_0x30cbbc+':');for(const [_0x3fb047,_0x3136cf]of Object[_0x2bf0dc(0x1f3)](_0x54d2b2)){_0x2b95f0['push'](_0x4c5ce1+'\x20\x20'+_0x3fb047+':\x20'+_0x3136cf);}}else _0x2b95f0['push'](''+_0x4c5ce1+_0x30cbbc+':\x20'+_0x54d2b2);}return _0x2b95f0['join']('\x0a');}
|
|
1
|
+
const _0x5b1811=_0x5b85;(function(_0x4c5598,_0x438a7d){const _0x48ad2f=_0x5b85,_0x3e2fa7=_0x4c5598();while(!![]){try{const _0x4102d6=parseInt(_0x48ad2f(0xe9))/0x1+-parseInt(_0x48ad2f(0xce))/0x2+parseInt(_0x48ad2f(0xc2))/0x3+-parseInt(_0x48ad2f(0xdf))/0x4+-parseInt(_0x48ad2f(0xf0))/0x5*(-parseInt(_0x48ad2f(0xea))/0x6)+parseInt(_0x48ad2f(0xc4))/0x7*(parseInt(_0x48ad2f(0xb4))/0x8)+-parseInt(_0x48ad2f(0xc7))/0x9;if(_0x4102d6===_0x438a7d)break;else _0x3e2fa7['push'](_0x3e2fa7['shift']());}catch(_0x1a6e91){_0x3e2fa7['push'](_0x3e2fa7['shift']());}}}(_0x5b1f,0x2ce9f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';function _0x5b85(_0x9dc27c,_0x5dd8d5){_0x9dc27c=_0x9dc27c-0x9d;const _0x5b1fc2=_0x5b1f();let _0x5b8539=_0x5b1fc2[_0x9dc27c];return _0x5b8539;}import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0xfaeeb8,_0x353064){const _0x280b3d=_0x5b85,_0x7a8f8b={'cQcvD':function(_0x1429d1,_0x1c5845,_0x16c8d7,_0x466dc8){return _0x1429d1(_0x1c5845,_0x16c8d7,_0x466dc8);},'MNdHq':function(_0x3de07d,_0x3720c0,_0x41807e,_0x28fedf){return _0x3de07d(_0x3720c0,_0x41807e,_0x28fedf);},'Tthhc':_0x280b3d(0xcd),'COdEn':function(_0x1c4300,_0x54740a){return _0x1c4300(_0x54740a);}},_0x15d43f=_0x7a8f8b['cQcvD'](join,_0x353064,'ci',_0xfaeeb8),_0x6b83dc=_0x7a8f8b[_0x280b3d(0xa7)](join,_0x353064,_0x7a8f8b['Tthhc'],_0xfaeeb8),_0x3a4e14=join(_0x353064,_0xfaeeb8),_0x4824a5=join(_0x353064,_0x7a8f8b['Tthhc']),_0x544ca4=join(_0x353064,'ci');if(existsSync(_0x15d43f))return _0x15d43f;if(_0x7a8f8b['COdEn'](existsSync,_0x6b83dc))return _0x6b83dc;if(_0x7a8f8b['COdEn'](existsSync,_0x3a4e14)&&(_0x3a4e14!==_0x4824a5&&_0x3a4e14!==_0x544ca4?!![]:hasLegacyProfileFiles(_0x3a4e14)))return _0x3a4e14;return null;}export function getEnvDir(_0x565de6,_0x2a9c39={}){const _0x2ada3f=_0x5b85,_0xf5b7b8={'MCrFl':function(_0x1c35dd,_0x573edc,_0x3c6db0){return _0x1c35dd(_0x573edc,_0x3c6db0);},'ywHvJ':function(_0x13712c,_0x466f1b){return _0x13712c(_0x466f1b);},'qEpgr':function(_0x5cd453){return _0x5cd453();},'mwDbz':_0x2ada3f(0xcd)},_0x1da0fa=getRangerDir(),_0x240d76=_0xf5b7b8['MCrFl'](findEnvInRoot,_0x565de6,_0x1da0fa);if(_0x240d76){if(_0x2a9c39['forWrite']&&_0xf5b7b8['ywHvJ'](isLegacyEnvPath,_0x240d76))throw _0xf5b7b8['MCrFl'](legacyWriteError,_0x565de6,_0x240d76);return _0x240d76;}const _0x1d8dce=_0xf5b7b8['qEpgr'](getRangerHomeDir);if(_0x1d8dce!==_0x1da0fa){const _0x79d670=_0xf5b7b8['MCrFl'](findEnvInRoot,_0x565de6,_0x1d8dce);if(_0x79d670){if(_0x2a9c39[_0x2ada3f(0xfd)]&&_0xf5b7b8['ywHvJ'](isLegacyEnvPath,_0x79d670))throw legacyWriteError(_0x565de6,_0x79d670);return _0x79d670;}}const _0x500b07=join(_0x1d8dce,_0xf5b7b8[_0x2ada3f(0xf7)],_0x565de6);if(_0x2a9c39[_0x2ada3f(0xfd)])throw legacyWriteError(_0x565de6,_0x500b07);return _0x500b07;}function isLegacyEnvPath(_0x47bdfc){const _0x3ccbbf=_0x5b85,_0x12877f={'XBpGl':function(_0x41eddd,_0xf75a17){return _0x41eddd===_0xf75a17;}},_0x1b4a70=getRangerDir(),_0x1e1859=getRangerHomeDir();for(const _0x50b0cc of new Set([_0x1b4a70,_0x1e1859])){const _0x54dfbe=_0x50b0cc[_0x3ccbbf(0xc5)]('/')?_0x50b0cc:_0x50b0cc+'/';if(_0x12877f[_0x3ccbbf(0xf4)](_0x47bdfc,_0x50b0cc)||_0x47bdfc['startsWith'](_0x54dfbe))return!![];}return![];}function legacyWriteError(_0x39064a,_0x3a407d){const _0x360561=_0x5b85,_0x2902e5={'JjfZJ':function(_0x53016d,_0x1a0816){return _0x53016d+_0x1a0816;}};return new Error(_0x2902e5[_0x360561(0xf2)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x39064a+_0x360561(0x105)+_0x3a407d+'.\x0a'+_0x360561(0xae),_0x360561(0x9f))+_0x360561(0xb0));}export function findExistingEnv(_0x5d2b6a,_0x2b05b5){const _0x48d003=_0x5b85,_0x170526={'rZLwF':function(_0x3e2024){return _0x3e2024();},'NBrFM':_0x48d003(0xe7),'gmLZC':function(_0x58b1e0,_0xdf032e,_0x3f90ab){return _0x58b1e0(_0xdf032e,_0x3f90ab);},'nHWLh':function(_0x3dd79f,_0x2b06a1,_0x3cbded,_0x288018){return _0x3dd79f(_0x2b06a1,_0x3cbded,_0x288018);},'doUkG':_0x48d003(0xcd),'yFMzu':function(_0x5ad7e1,_0x8b20b4,_0x101116){return _0x5ad7e1(_0x8b20b4,_0x101116);},'bQeBw':function(_0x22276f,_0x419bad){return _0x22276f(_0x419bad);},'vHina':function(_0x40c848,_0x23a2ae){return _0x40c848===_0x23a2ae;},'oNXCA':function(_0x2d8c8f,_0x2e876f){return _0x2d8c8f===_0x2e876f;},'fqchB':function(_0x4da9c1,_0x2ad847){return _0x4da9c1(_0x2ad847);}},_0x5ac1dc=_0x2b05b5?.[_0x48d003(0xd9)],_0x4e1247=_0x5ac1dc?[_0x5ac1dc]:[_0x170526[_0x48d003(0x102)](getRangerDir),_0x170526[_0x48d003(0x102)](getRangerHomeDir)][_0x48d003(0xd7)]((_0x507729,_0x36703f,_0x19305c)=>_0x19305c['indexOf'](_0x507729)===_0x36703f),_0x43d5c9=_0x2b05b5?.['locations']??['ci',_0x48d003(0xcd),_0x170526[_0x48d003(0xca)]];for(const _0x1052ae of _0x4e1247){const _0x43f9a0=join(_0x1052ae,'local'),_0x49ad98=_0x170526[_0x48d003(0xfe)](join,_0x1052ae,'ci'),_0x51cf6a=[{'location':'ci','path':_0x170526[_0x48d003(0xcf)](join,_0x1052ae,'ci',_0x5d2b6a)},{'location':_0x170526['doUkG'],'path':_0x170526[_0x48d003(0xcf)](join,_0x1052ae,_0x48d003(0xcd),_0x5d2b6a)},{'location':_0x48d003(0xe7),'path':_0x170526['yFMzu'](join,_0x1052ae,_0x5d2b6a)}];for(const _0x38d7a7 of _0x51cf6a){if(_0x43d5c9[_0x48d003(0xb9)](_0x38d7a7['location'])&&_0x170526[_0x48d003(0xd5)](existsSync,_0x38d7a7[_0x48d003(0x104)])){if(_0x170526[_0x48d003(0xa2)](_0x38d7a7['location'],_0x170526['NBrFM'])&&(_0x38d7a7[_0x48d003(0x104)]===_0x43f9a0||_0x170526['oNXCA'](_0x38d7a7[_0x48d003(0x104)],_0x49ad98))&&!_0x170526[_0x48d003(0xde)](hasLegacyProfileFiles,_0x38d7a7['path']))continue;return{'path':_0x38d7a7['path'],'location':_0x38d7a7[_0x48d003(0xbe)]};}}}return null;}function hasLegacyProfileFiles(_0x5e13e2){const _0x4e0300=_0x5b85,_0x2d6db0={'UjWHS':function(_0x138146,_0x14cbb2){return _0x138146(_0x14cbb2);},'weGBc':function(_0x35cf3e,_0x12066e,_0x37f748){return _0x35cf3e(_0x12066e,_0x37f748);},'fOWIU':'auth.json','TJIjX':'auth.json.enc'};return _0x2d6db0[_0x4e0300(0xd2)](existsSync,_0x2d6db0['weGBc'](join,_0x5e13e2,_0x4e0300(0xee)))||existsSync(join(_0x5e13e2,_0x2d6db0['fOWIU']))||_0x2d6db0[_0x4e0300(0xd2)](existsSync,join(_0x5e13e2,_0x2d6db0['TJIjX']));}export function isEnvCi(_0x573a5f){const _0x4ddace=_0x5b85,_0x323f20={'wtxCo':function(_0x28ed70){return _0x28ed70();},'nVBFx':function(_0x217ae7,_0x50f7d4){return _0x217ae7!==_0x50f7d4;},'MRiyn':function(_0x8a13da,_0x2bb3e0,_0x3e1d19,_0x35e756){return _0x8a13da(_0x2bb3e0,_0x3e1d19,_0x35e756);}};if(existsSync(join(_0x323f20[_0x4ddace(0xd4)](getRangerDir),'ci',_0x573a5f)))return!![];const _0xb2cca4=getRangerHomeDir();if(_0x323f20['nVBFx'](_0xb2cca4,getRangerDir())&&existsSync(_0x323f20[_0x4ddace(0xf3)](join,_0xb2cca4,'ci',_0x573a5f)))return!![];return![];}export async function cleanupTempFiles(_0x3e7644){const _0x3e84f7=_0x5b85,_0x5bb1c6={'qrfsl':_0x3e84f7(0xff)},_0x11b4ba=[_0x3e7644['tempAuthPath'],_0x3e7644['configPath']][_0x3e84f7(0xd7)](Boolean);await Promise[_0x3e84f7(0xcc)](_0x11b4ba['map'](_0x3d8aff=>unlink(_0x3d8aff)['catch'](_0x1bbdbd=>{const _0x5d7cbe=_0x3e84f7;_0x1bbdbd['code']!==_0x5bb1c6['qrfsl']&&console['warn'](_0x5d7cbe(0xb2)+_0x3d8aff+':',_0x1bbdbd['message']);})));}export function getSettingsPath(_0x3127b3){const _0xa60108=_0x5b85,_0x2bd008={'XOZRY':function(_0x301531,_0x2c7666,_0x2deb4d){return _0x301531(_0x2c7666,_0x2deb4d);}};return _0x2bd008['XOZRY'](join,getEnvDir(_0x3127b3),_0xa60108(0xee));}export async function loadSettings(_0x462bc0){const _0x35469e=_0x5b85,_0x4c8f01={'eBsvH':function(_0x1aba08,_0x2f94db){return _0x1aba08(_0x2f94db);},'HadjV':function(_0xa50166,_0x37c507,_0x336cb3){return _0xa50166(_0x37c507,_0x336cb3);}},_0x20dfcb=_0x4c8f01[_0x35469e(0xd3)](getSettingsPath,_0x462bc0);if(!existsSync(_0x20dfcb))return{};try{const _0x1aeef3=await _0x4c8f01[_0x35469e(0xa9)](readFile,_0x20dfcb,'utf-8');return JSON[_0x35469e(0xe2)](_0x1aeef3);}catch{return{};}}export async function saveSettings(_0x3190ff,_0x112e26){const _0x4e52a8=_0x5b85,_0x279304={'TazEk':function(_0x181168,_0x5e5a27){return _0x181168(_0x5e5a27);},'sHFmC':function(_0x176ee8,_0xd3c94e){return _0x176ee8(_0xd3c94e);},'PzgYE':function(_0x1f9ee3,_0x3b5775,_0x51270f){return _0x1f9ee3(_0x3b5775,_0x51270f);}},_0x135a64=_0x279304[_0x4e52a8(0xe0)](getSettingsPath,_0x3190ff),_0x4d712d=_0x279304['sHFmC'](dirname,_0x135a64);!_0x279304[_0x4e52a8(0xe0)](existsSync,_0x4d712d)&&await mkdir(_0x4d712d,{'recursive':!![]}),await _0x279304[_0x4e52a8(0xd8)](writeFile,_0x135a64,JSON[_0x4e52a8(0xc0)](_0x112e26,null,0x2));}export function resolveEnvVars(_0x1652df){const _0x53824d=_0x5b85,_0x283042={'NxJYV':function(_0x418264,_0x2a3ca5){return _0x418264===_0x2a3ca5;}};if(typeof _0x1652df===_0x53824d(0xec))return _0x1652df[_0x53824d(0xda)](/\$\{(\w+)\}/g,(_0x1fddeb,_0xb13f2e)=>{const _0x342c6e=_0x53824d,_0x43b41a=process['env'][_0xb13f2e];if(_0x43b41a===undefined)throw new Error(_0x342c6e(0xb8)+_0xb13f2e+_0x342c6e(0xa5));return _0x43b41a;});if(Array['isArray'](_0x1652df))return _0x1652df[_0x53824d(0x100)](resolveEnvVars);if(_0x1652df&&_0x283042['NxJYV'](typeof _0x1652df,_0x53824d(0xe1)))return Object[_0x53824d(0xe4)](Object['entries'](_0x1652df)['map'](([_0x2249f9,_0x3a9398])=>[_0x2249f9,resolveEnvVars(_0x3a9398)]));return _0x1652df;}const isRecord=_0x40c0ac=>typeof _0x40c0ac===_0x5b1811(0xe1)&&_0x40c0ac!==null&&!Array[_0x5b1811(0xdd)](_0x40c0ac),asRecord=_0x2fe945=>isRecord(_0x2fe945)?_0x2fe945:undefined,mergeHeaders=(_0x61e654,_0x5e4b65)=>{const _0x2f07f5=_0x5b1811,_0x153403={'yGrIv':function(_0xf81df3,_0x5b69e8){return _0xf81df3??_0x5b69e8;}},_0x5631cd={..._0x153403['yGrIv'](_0x61e654,{}),..._0x153403[_0x2f07f5(0xa8)](_0x5e4b65,{})};return Object['keys'](_0x5631cd)['length']?_0x5631cd:undefined;},SAFE_MODE_ARGS=[_0x5b1811(0x9d)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x5b1811(0xd0)];export function buildBrowserOptionsFromSettings(_0x50c783,_0x4c0016={}){const _0x1f787d=_0x5b1811,_0x2ceb4d={'fNgor':function(_0x3973ea,_0x199d95){return _0x3973ea===_0x199d95;},'QakIb':function(_0x5e49f9,_0x19dd6b){return _0x5e49f9(_0x19dd6b);},'VzPsr':_0x1f787d(0xec),'vyMJd':function(_0x4ee846,_0x59ccc6,_0x3f0cbe){return _0x4ee846(_0x59ccc6,_0x3f0cbe);}},_0xabee43=asRecord(_0x50c783['browser']),_0x39b23c={...asRecord(_0xabee43?.['launchOptions'])??{}};_0x2ceb4d[_0x1f787d(0xc6)](typeof _0x4c0016[_0x1f787d(0xef)],_0x1f787d(0xb3))&&(_0x39b23c[_0x1f787d(0xef)]=_0x4c0016['headless']);if(_0x50c783[_0x1f787d(0xd1)]){const _0x4ae669=_0x39b23c[_0x1f787d(0xc8)]??[],_0x591c9d=SAFE_MODE_ARGS[_0x1f787d(0xd7)](_0x560ce0=>!_0x4ae669['includes'](_0x560ce0));_0x39b23c['args']=[..._0x4ae669,..._0x591c9d];}if(_0x50c783[_0x1f787d(0xfa)]){const _0x3a5eca=_0x39b23c['args']??[],_0x4fdcf7=ALLOW_LOCALHOST_ARGS['filter'](_0x306fa0=>!_0x3a5eca[_0x1f787d(0xb9)](_0x306fa0));_0x39b23c['args']=[..._0x3a5eca,..._0x4fdcf7];}const _0xf98ae8={..._0x2ceb4d['QakIb'](asRecord,_0xabee43?.[_0x1f787d(0xa1)])??{}};_0xf98ae8['ignoreHTTPSErrors']=!![];typeof _0x50c783['userAgent']===_0x2ceb4d['VzPsr']&&(_0xf98ae8[_0x1f787d(0x103)]=_0x50c783[_0x1f787d(0x103)]);const _0x1fff6b=_0x2ceb4d['vyMJd'](mergeHeaders,asRecord(_0xf98ae8[_0x1f787d(0xfc)]),asRecord(_0x50c783[_0x1f787d(0xa3)]));return _0x1fff6b?_0xf98ae8[_0x1f787d(0xfc)]=_0x1fff6b:delete _0xf98ae8['extraHTTPHeaders'],_0x4c0016[_0x1f787d(0xaf)]&&(_0xf98ae8['storageState']=_0x4c0016['storageStatePath']),{'launchOptions':_0x39b23c,'contextOptions':_0xf98ae8};}async function resolveLocalAuthPath(_0xd26ab){const _0x3f45c5=_0x5b1811,_0x3b35ef={'mdBfy':_0x3f45c5(0xac),'ncrzP':'auth.json','coblY':function(_0x446c94,_0x2cbcca){return _0x446c94(_0x2cbcca);},'xQPzk':function(_0xdc0c37,_0x27d5d3){return _0xdc0c37(_0x27d5d3);},'PFFWI':function(_0x2491f3,_0x1af6c0){return _0x2491f3(_0x1af6c0);}},_0x20ee11=join(_0xd26ab,_0x3b35ef['mdBfy']),_0x3a0e48=join(_0xd26ab,_0x3b35ef['ncrzP']);if(_0x3b35ef[_0x3f45c5(0xb6)](existsSync,_0x20ee11))try{const _0x685709=await getToken();if(!_0x685709)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x36ae1a=await _0x3b35ef[_0x3f45c5(0xed)](readFile,_0x20ee11),_0x122ae5=decrypt(_0x36ae1a,_0x685709),_0x3473eb=join(tmpdir(),_0x3f45c5(0xc1)+Date[_0x3f45c5(0xbf)]()+'.json');return await writeFile(_0x3473eb,_0x122ae5),{'storageStatePath':_0x3473eb,'tempAuthPath':_0x3473eb};}catch(_0x435daa){const _0x116b55=_0x435daa instanceof Error?_0x435daa['message']:String(_0x435daa);throw new Error(_0x3f45c5(0x9e)+_0x116b55);}if(_0x3b35ef[_0x3f45c5(0xb1)](existsSync,_0x3a0e48))return{'storageStatePath':_0x3a0e48};return{};}export async function buildPlaywrightConfig(_0x2f20e5,_0x2208a6,_0xf37d6f,_0x451f8a,_0x486fee){const _0x44b095=_0x5b1811,_0x3f393b={'BOvoV':function(_0xcec985,_0x30f471,_0x544838,_0x44cd95,_0x1bec39,_0x3f8c4,_0x1dfd0d){return _0xcec985(_0x30f471,_0x544838,_0x44cd95,_0x1bec39,_0x3f8c4,_0x1dfd0d);},'FAXvb':function(_0x2b1f80,_0x290312){return _0x2b1f80(_0x290312);}};if(_0x486fee)return _0x3f393b[_0x44b095(0xf9)](buildPlaywrightConfigCore,_0x2f20e5,_0x486fee,_0x2208a6,_0xf37d6f,_0x451f8a,'stagehand');const {storageStatePath:_0x18e263,tempAuthPath:_0x4b7a64}=await _0x3f393b['FAXvb'](resolveLocalAuthPath,getEnvDir(_0x2208a6));try{const _0x150df8=await buildPlaywrightConfigCore(_0x2f20e5,_0x18e263,_0x2208a6,_0xf37d6f,_0x451f8a,_0x44b095(0xf5));return{..._0x150df8,'tempAuthPath':_0x4b7a64};}catch(_0x5d8e25){_0x4b7a64&&await _0x3f393b[_0x44b095(0xeb)](unlink,_0x4b7a64)['catch'](()=>{});throw _0x5d8e25;}}export async function buildPlaywrightConfigCore(_0x5a86c6,_0x1314bc,_0x383e77,_0x5ba1c8,_0x4d2204,_0x1e82ae='stagehand'){const _0x150a39=_0x5b1811,_0x2568fc={'UUDuM':'--disable-setuid-sandbox','Ffwov':function(_0x132f47){return _0x132f47();},'swMFH':function(_0x46024b,_0x917061){return _0x46024b(_0x917061);},'Bejxm':_0x150a39(0xad),'cyMBi':_0x150a39(0xbb),'OXxHp':_0x150a39(0xfb),'lfMGI':'pdf','BtjHh':'vision','yXwrM':function(_0x1ae106,_0x4aa112,_0xc4864e){return _0x1ae106(_0x4aa112,_0xc4864e);},'QLdEa':function(_0x1e3e42,_0xb50496){return _0x1e3e42===_0xb50496;},'rNVNh':'playwright-cli','zOuvv':'-cli'},_0x4d3341=_0x5ba1c8||_0x2568fc[_0x150a39(0xbc)](randomUUID),_0x8751ff=join(_0x2568fc[_0x150a39(0xbc)](getRangerDir),'sessions',_0x4d3341),_0x264648=_0x2568fc[_0x150a39(0xaa)](Boolean,_0x5a86c6[_0x150a39(0xbd)]),_0x25c21a=_0x264648?{'browserName':_0x2568fc[_0x150a39(0xba)],'cdpEndpoint':_0x5a86c6[_0x150a39(0xbd)]}:((()=>{const _0x1b0698=_0x150a39,{launchOptions:_0x4b3465,contextOptions:_0x5b1e03}=buildBrowserOptionsFromSettings(_0x5a86c6,{'headless':_0x4d2204?![]:_0x5a86c6['headless']??!![],'storageStatePath':_0x1314bc});if(process['getuid']?.()===0x0){const _0x155e28=['--no-sandbox',_0x2568fc['UUDuM']],_0x465f3b=_0x4b3465['args']??[],_0x5dcc50=_0x155e28[_0x1b0698(0xd7)](_0x2b4d66=>!_0x465f3b[_0x1b0698(0xb9)](_0x2b4d66));_0x4b3465[_0x1b0698(0xc8)]=[..._0x465f3b,..._0x5dcc50];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x4b3465,'contextOptions':{..._0x5b1e03,'permissions':['clipboard-read',_0x1b0698(0xf1)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x12fdbb=_0x1e82ae==='playwright-cli'?{'browser':_0x25c21a,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x8751ff,'outputMode':_0x2568fc[_0x150a39(0xd6)],'codegen':_0x150a39(0xb5)}:{'name':_0x383e77,'browser':_0x25c21a,'capabilities':['core',_0x2568fc['OXxHp'],_0x150a39(0xa0),_0x2568fc[_0x150a39(0xc9)],_0x2568fc[_0x150a39(0xb7)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x8751ff};if(!_0x264648){const _0x52151d=_0x12fdbb[_0x150a39(0xe5)],_0x3e785a=_0x52151d[_0x150a39(0xa1)];if(_0x3e785a['userAgent']===undefined)delete _0x3e785a[_0x150a39(0x103)];if(_0x3e785a['storageState']===undefined)delete _0x3e785a['storageState'];}const _0x53a5c9=join(tmpdir(),'ranger-config');!_0x2568fc[_0x150a39(0xaa)](existsSync,_0x53a5c9)&&await _0x2568fc['yXwrM'](mkdir,_0x53a5c9,{'recursive':!![]});const _0x1a6d5b=_0x2568fc['QLdEa'](_0x1e82ae,_0x2568fc['rNVNh'])?_0x2568fc['zOuvv']:'',_0x4c8ec8=join(_0x53a5c9,_0x383e77+'-'+Date['now']()+_0x1a6d5b+_0x150a39(0xe8));return await writeFile(_0x4c8ec8,JSON['stringify'](_0x12fdbb,null,0x2)),{'configPath':_0x4c8ec8};}export async function buildPlaywrightCliConfig(_0x130460,_0x375735,_0x39f763,_0x526318,_0x2868c4){const _0x235e22={'XZuYK':function(_0x3f756d,_0x1a95e7){return _0x3f756d(_0x1a95e7);},'gliAD':function(_0x2cf545,_0x2ffabb,_0xf19aa,_0x510363,_0x4df87d,_0x1329f6,_0x4b345e){return _0x2cf545(_0x2ffabb,_0xf19aa,_0x510363,_0x4df87d,_0x1329f6,_0x4b345e);},'skUvA':function(_0x43f072,_0x51d22c){return _0x43f072(_0x51d22c);}};if(_0x2868c4)return buildPlaywrightConfigCore(_0x130460,_0x2868c4,_0x375735,_0x39f763,_0x526318,'playwright-cli');const {storageStatePath:_0x4f5fc4,tempAuthPath:_0x40cdef}=await _0x235e22['XZuYK'](resolveLocalAuthPath,getEnvDir(_0x375735));try{const _0x11366f=await _0x235e22['gliAD'](buildPlaywrightConfigCore,_0x130460,_0x4f5fc4,_0x375735,_0x39f763,_0x526318,'playwright-cli');return{..._0x11366f,'tempAuthPath':_0x40cdef};}catch(_0x4a098f){_0x40cdef&&await _0x235e22['skUvA'](unlink,_0x40cdef)['catch'](()=>{});throw _0x4a098f;}}export function getNestedValue(_0x3099d6,_0x1ac030){const _0x2221be=_0x5b1811,_0x30cd36={'KPjeE':function(_0x4bfdb8,_0x105f84){return _0x4bfdb8(_0x105f84);},'kzaKt':function(_0x147197,_0x5946b5){return _0x147197===_0x5946b5;},'zrydz':function(_0x273d86,_0x1573c0){return _0x273d86!==_0x1573c0;}},_0x1e6f3c=_0x30cd36['KPjeE'](parseKeyPath,_0x1ac030);let _0xe74650=_0x3099d6;for(const _0x3ea99a of _0x1e6f3c){if(_0xe74650===null||_0x30cd36['kzaKt'](_0xe74650,undefined)||_0x30cd36[_0x2221be(0xe6)](typeof _0xe74650,_0x2221be(0xe1)))return undefined;_0xe74650=_0xe74650[_0x3ea99a];}return _0xe74650;}function _0x5b1f(){const _0x22370b=['gmLZC','ENOENT','map','join','rZLwF','userAgent','path','\x22\x20to\x20legacy\x20path\x20','--disable-features=WebBluetooth','Failed\x20to\x20decrypt\x20auth\x20state:\x20','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','install','contextOptions','vHina','headers','length','\x20is\x20not\x20set','yaTdC','MNdHq','yGrIv','HadjV','swMFH','setupHeader','auth.json.enc','chromium','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','storageStatePath','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','PFFWI','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','boolean','592ZhJfBU','none','coblY','BtjHh','Environment\x20variable\x20','includes','Bejxm','file','Ffwov','cdpEndpoint','location','now','stringify','ranger-auth-','649920fOfmIE','repeat','32375nSPSxh','endsWith','fNgor','373068eWufEP','args','lfMGI','NBrFM','entries','all','local','467298EZrQzO','nHWLh','--allow-insecure-localhost','safeMode','UjWHS','eBsvH','wtxCo','bQeBw','cyMBi','filter','PzgYE','rangerDir','replace','aqTiU','ZAqJG','isArray','fqchB','1467784RKhFlQ','TazEk','object','parse','yuwrC','fromEntries','browser','zrydz','legacy','.json','141242CZPGIV','678qGiEOS','FAXvb','string','xQPzk','settings.json','headless','5570HuExZz','clipboard-write','JjfZJ','MRiyn','XBpGl','stagehand','tXDhe','mwDbz','push','BOvoV','allowInsecureLocalhost','tabs','extraHTTPHeaders','forWrite'];_0x5b1f=function(){return _0x22370b;};return _0x5b1f();}export function setNestedValue(_0x1bda3f,_0xf271a1,_0x421b77){const _0x357e71=_0x5b1811,_0x40223a={'qkJTd':_0x357e71(0xe1),'eURtT':function(_0x599826,_0x3a3caa){return _0x599826-_0x3a3caa;}},_0x10c6e1=parseKeyPath(_0xf271a1);let _0x5b4fce=_0x1bda3f;for(let _0x50ce53=0x0;_0x50ce53<_0x10c6e1[_0x357e71(0xa4)]-0x1;_0x50ce53++){const _0x3ebe6c=_0x10c6e1[_0x50ce53];(!(_0x3ebe6c in _0x5b4fce)||typeof _0x5b4fce[_0x3ebe6c]!==_0x40223a['qkJTd'])&&(_0x5b4fce[_0x3ebe6c]={}),_0x5b4fce=_0x5b4fce[_0x3ebe6c];}_0x5b4fce[_0x10c6e1[_0x40223a['eURtT'](_0x10c6e1[_0x357e71(0xa4)],0x1)]]=_0x421b77;}export function deleteNestedValue(_0x72d5aa,_0xf34f84){const _0x55ca33=_0x5b1811,_0x2f171e={'vOXsb':function(_0x262ed5,_0x1f2b20){return _0x262ed5<_0x1f2b20;},'aqTiU':function(_0x1f44eb,_0x3d365b){return _0x1f44eb!==_0x3d365b;},'OKwIP':function(_0x289cd4,_0x1aec46){return _0x289cd4!==_0x1aec46;},'tXDhe':function(_0xcc480e,_0x37572f){return _0xcc480e in _0x37572f;}},_0x566979=parseKeyPath(_0xf34f84);let _0x30c04d=_0x72d5aa;for(let _0x3693b3=0x0;_0x2f171e['vOXsb'](_0x3693b3,_0x566979[_0x55ca33(0xa4)]-0x1);_0x3693b3++){if(_0x30c04d===null||_0x30c04d===undefined||_0x2f171e[_0x55ca33(0xdb)](typeof _0x30c04d,'object'))return![];_0x30c04d=_0x30c04d[_0x566979[_0x3693b3]];}if(_0x30c04d===null||_0x30c04d===undefined||_0x2f171e['OKwIP'](typeof _0x30c04d,'object'))return![];const _0x28389d=_0x566979[_0x566979[_0x55ca33(0xa4)]-0x1];if(_0x2f171e[_0x55ca33(0xf6)](_0x28389d,_0x30c04d))return delete _0x30c04d[_0x28389d],!![];return![];}function parseKeyPath(_0x9c4421){const _0x1efb33=_0x5b1811,_0x20aeb9={'yaTdC':function(_0x2cf9f1,_0x3fb9bb){return _0x2cf9f1===_0x3fb9bb;},'ZAqJG':_0x1efb33(0xa3),'yuwrC':'setupHeaders'},_0x366b9f=_0x9c4421['split']('.');return _0x20aeb9[_0x1efb33(0xa6)](_0x366b9f[0x0],'header')&&(_0x366b9f[0x0]=_0x20aeb9[_0x1efb33(0xdc)]),_0x366b9f[0x0]===_0x1efb33(0xab)&&(_0x366b9f[0x0]=_0x20aeb9[_0x1efb33(0xe3)]),_0x366b9f;}export function formatSettings(_0x255732,_0x57d276=0x0){const _0x39fc2b=_0x5b1811,_0x14962a={'SnGMz':function(_0x415a18,_0x551723){return _0x415a18===_0x551723;}},_0x1f865e=[],_0x3d1e03='\x20\x20'[_0x39fc2b(0xc3)](_0x57d276);for(const [_0x19c4df,_0xae3af8]of Object[_0x39fc2b(0xcb)](_0x255732)){if(_0x14962a['SnGMz'](_0xae3af8,undefined))continue;if(typeof _0xae3af8==='object'&&_0xae3af8!==null){_0x1f865e[_0x39fc2b(0xf8)](''+_0x3d1e03+_0x19c4df+':');for(const [_0x58adba,_0x1ec6a1]of Object['entries'](_0xae3af8)){_0x1f865e['push'](_0x3d1e03+'\x20\x20'+_0x58adba+':\x20'+_0x1ec6a1);}}else _0x1f865e[_0x39fc2b(0xf8)](''+_0x3d1e03+_0x19c4df+':\x20'+_0xae3af8);}return _0x1f865e[_0x39fc2b(0x101)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d6d12,_0x49a686){const _0x425a51=_0x4601,_0x3d49ae=_0x3d6d12();while(!![]){try{const _0x2029ae=parseInt(_0x425a51(0xe4))/0x1*(parseInt(_0x425a51(0xe6))/0x2)+-parseInt(_0x425a51(0xea))/0x3*(-parseInt(_0x425a51(0xef))/0x4)+parseInt(_0x425a51(0xeb))/0x5*(-parseInt(_0x425a51(0xed))/0x6)+-parseInt(_0x425a51(0xe5))/0x7+parseInt(_0x425a51(0xec))/0x8+parseInt(_0x425a51(0xe7))/0x9+parseInt(_0x425a51(0xe9))/0xa*(-parseInt(_0x425a51(0xf1))/0xb);if(_0x2029ae===_0x49a686)break;else _0x3d49ae['push'](_0x3d49ae['shift']());}catch(_0x598c92){_0x3d49ae['push'](_0x3d49ae['shift']());}}}(_0x4924,0xc2d10));function _0x4924(){const _0x190604=['10nxUdfh','2322593IKlOON','153580AJmHDX','5040594aofAlY','PMGJy','370WOoDOt','9gMnvGC','3626065AAXmFa','7860472THYwip','12pUyEXU','cLHlh','1166108SMChzV','skills','179839MNRztq'];_0x4924=function(){return _0x190604;};return _0x4924();}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4601(_0x1ce2a2,_0x31f465){_0x1ce2a2=_0x1ce2a2-0xe4;const _0x4924bb=_0x4924();let _0x46012a=_0x4924bb[_0x1ce2a2];return _0x46012a;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x433fac){const _0x583ef6=_0x4601,_0x2ba128={'zcnjp':function(_0x21e03c,_0x4811eb,_0x2fdebf){return _0x21e03c(_0x4811eb,_0x2fdebf);},'PMGJy':'utf-8'},_0x209c4b=join(__dirname,'..','..',_0x583ef6(0xf0)),_0x47cc31=join(_0x209c4b,_0x433fac);try{return _0x2ba128['zcnjp'](readFileSync,_0x47cc31,_0x2ba128[_0x583ef6(0xe8)]);}catch{return'';}}export function getRangerSkillContent(){const _0x3261a0=_0x4601,_0x4e83d3={'vqdcI':function(_0x200c0f,_0x562771){return _0x200c0f(_0x562771);},'cLHlh':'ranger/SKILL.md'};return _0x4e83d3['vqdcI'](readSkillContent,_0x4e83d3[_0x3261a0(0xee)]);}
|