@ranger-testing/ranger-cli 2.5.4-alpha.a98f848-6 → 2.5.4-alpha.b28d3b1-14
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/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 +13 -7
- package/build/skills/ranger/create.md +16 -3
- package/build/skills/ranger/verify.md +25 -18
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2113(){const _0x189835=['706314UrBLpb','\x20signal=','\x0astderr:\x20','18010egqWlb','find','string','commandArgs','bash_command','data','1008724GuOCMh','RDKya','99AbnXRH','trim','fjbnq','configPath','cmd','length','...','282WRdLbE','loXbo','error','null','replace','\x27\x5c\x27\x27','XfhWs','script','join','1UpqJDF','IPIjz','314584Gvekjy','unknown','3426395TvSbcl','stdout','jNyRx','slice','playwright-cli\x20','lrWuu','YFaAf','sha256','kill','682pamIcz','ZhreT','96960wGtvkf','-s=','469208YlZXjH','pipe','timeoutMs','viNKp','toString','close','@playwright/cli','digest','aehkn','env','npx','gEhrJ','\x0astdout:\x20','update'];_0x2113=function(){return _0x189835;};return _0x2113();}const _0x192049=_0x23ee;(function(_0xfd8e3d,_0x1aad8b){const _0x3d756d=_0x23ee,_0x5e3677=_0xfd8e3d();while(!![]){try{const _0x5f1b15=-parseInt(_0x3d756d(0x1f4))/0x1*(parseInt(_0x3d756d(0x205))/0x2)+-parseInt(_0x3d756d(0x1d9))/0x3+parseInt(_0x3d756d(0x1e2))/0x4+-parseInt(_0x3d756d(0x1dc))/0x5*(parseInt(_0x3d756d(0x1eb))/0x6)+parseInt(_0x3d756d(0x1f8))/0x7+parseInt(_0x3d756d(0x1f6))/0x8*(-parseInt(_0x3d756d(0x1e4))/0x9)+-parseInt(_0x3d756d(0x203))/0xa*(-parseInt(_0x3d756d(0x201))/0xb);if(_0x5f1b15===_0x1aad8b)break;else _0x5e3677['push'](_0x5e3677['shift']());}catch(_0x1d6b3e){_0x5e3677['push'](_0x5e3677['shift']());}}}(_0x2113,0x42251));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x192049(0x1d1);function toPlaywrightCliSessionKey(_0xeb2be4){const _0x5d9241=_0x192049,_0x34eb90={'XfhWs':function(_0xf2fa27,_0x4814eb){return _0xf2fa27(_0x4814eb);},'loXbo':_0x5d9241(0x1ff)},_0x4c81b5=_0x34eb90[_0x5d9241(0x1f1)](createHash,_0x34eb90[_0x5d9241(0x1ec)])[_0x5d9241(0x1d8)](_0xeb2be4)[_0x5d9241(0x1d2)]('hex')[_0x5d9241(0x1fb)](0x0,0xc);return'rg-'+_0x4c81b5;}function _0x23ee(_0x2b955b,_0x411557){_0x2b955b=_0x2b955b-0x1cd;const _0x2113c1=_0x2113();let _0x23ee88=_0x2113c1[_0x2b955b];return _0x23ee88;}function shellQuote(_0x1190c3){const _0xf99c22=_0x192049;return'\x27'+_0x1190c3[_0xf99c22(0x1ef)](/'/g,_0xf99c22(0x1f0))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2b3d65){return SAFE_SHELL_TOKEN['test'](_0x2b3d65)?_0x2b3d65:shellQuote(_0x2b3d65);}export function buildPlaywrightCliInvocation(_0x5f5a06,_0xe501f,_0x71b80){const _0x1472a6=_0x192049,_0x432e76={'jNyRx':'--config','IPIjz':_0x1472a6(0x1d5),'viNKp':function(_0x5f1c5f,_0x308432){return _0x5f1c5f(_0x308432);}},_0x228911=toPlaywrightCliSessionKey(_0x5f5a06),[_0x4e5a94=_0x1472a6(0x1f7)]=_0x71b80,_0x5d71af=[PLAYWRIGHT_CLI_BINARY,_0x1472a6(0x204)+_0x228911,_0x432e76[_0x1472a6(0x1fa)],_0xe501f,..._0x71b80];return{'command':_0x432e76[_0x1472a6(0x1f5)],'args':_0x5d71af,'shellCommand':[_0x1472a6(0x1d5),PLAYWRIGHT_CLI_BINARY,_0x1472a6(0x204)+quoteShellArg(_0x228911),_0x432e76[_0x1472a6(0x1fa)],_0x432e76[_0x1472a6(0x1ce)](quoteShellArg,_0xe501f),..._0x71b80['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x4e5a94};}export function buildPlaywrightCliCommandPrefix(_0x1c2ea6,_0x2b4da0){const _0x54db1d=_0x192049,_0x27f1f6={'RDKya':function(_0x1ed1eb,_0x5dbe0d){return _0x1ed1eb(_0x5dbe0d);}},_0x5a1250=_0x27f1f6[_0x54db1d(0x1e3)](toPlaywrightCliSessionKey,_0x1c2ea6);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x5a1250),'--config',quoteShellArg(_0x2b4da0)][_0x54db1d(0x1f3)]('\x20');}function truncateOutput(_0x5997b3,_0x535b5d=0x7d0){const _0x6b5032=_0x192049,_0x28f622={'YFaAf':function(_0x559ae2,_0x4ba13b){return _0x559ae2+_0x4ba13b;},'lrWuu':_0x6b5032(0x1ea)};return _0x5997b3[_0x6b5032(0x1e9)]>_0x535b5d?_0x28f622[_0x6b5032(0x1fe)](_0x5997b3[_0x6b5032(0x1fb)](0x0,_0x535b5d),_0x28f622[_0x6b5032(0x1fd)]):_0x5997b3;}export async function runPlaywrightCliCommand(_0x11dc6f){const _0x2db641=_0x192049,_0x596d2b={'yGhDH':function(_0x1ec7f8,_0x49eb1e,_0x49e310){return _0x1ec7f8(_0x49eb1e,_0x49e310);},'gEhrJ':function(_0x3705b3,_0x3aae83){return _0x3705b3(_0x3aae83);},'aehkn':_0x2db641(0x1ee),'TXyum':function(_0x58c5b7,_0x190519,_0x30eb03,_0x4d90ef){return _0x58c5b7(_0x190519,_0x30eb03,_0x4d90ef);},'eXRos':'ignore','ZsVjF':function(_0x3e2142,_0x55d44f,_0x4b1ee5,_0xe5fc39){return _0x3e2142(_0x55d44f,_0x4b1ee5,_0xe5fc39);}},_0x22eaa6=_0x596d2b['ZsVjF'](buildPlaywrightCliInvocation,_0x11dc6f['sessionId'],_0x11dc6f[_0x2db641(0x1e7)],_0x11dc6f[_0x2db641(0x1df)]);return new Promise((_0x30c4fd,_0x287ae6)=>{const _0x3e18bd=_0x2db641,_0xfbb600={'PEWPK':function(_0x1400d8,_0x2a1a22){return _0x1400d8(_0x2a1a22);},'ZhreT':_0x596d2b[_0x3e18bd(0x1d3)],'fjbnq':function(_0x1f4651,_0x248178){return _0x1f4651(_0x248178);}},_0x1346ae=_0x596d2b['TXyum'](spawn,_0x22eaa6['command'],_0x22eaa6['args'],{'cwd':_0x11dc6f['cwd'],'env':_0x11dc6f[_0x3e18bd(0x1d4)],'stdio':[_0x596d2b['eXRos'],'pipe',_0x3e18bd(0x206)]});let _0x382ccc='',_0x517650='',_0x15f6fc=![];const _0x26c3e5=_0x11dc6f['timeoutMs']&&_0x11dc6f['timeoutMs']>0x0?setTimeout(()=>{_0x15f6fc=!![],_0x1346ae['kill']('SIGTERM'),_0x596d2b['yGhDH'](setTimeout,()=>{const _0x2bd4eb=_0x23ee;try{_0x1346ae[_0x2bd4eb(0x200)]('SIGKILL');}catch{}},0x3e8);},_0x11dc6f['timeoutMs']):null;_0x1346ae[_0x3e18bd(0x1f9)]?.['on'](_0x3e18bd(0x1e1),_0x1d6924=>{_0x382ccc+=_0x1d6924['toString']();}),_0x1346ae['stderr']?.['on']('data',_0x13e334=>{const _0x5e1f09=_0x3e18bd;_0x517650+=_0x13e334[_0x5e1f09(0x1cf)]();}),_0x1346ae['on'](_0x3e18bd(0x1ed),_0x5e9217=>{const _0x3e8d67=_0x3e18bd;if(_0x26c3e5)clearTimeout(_0x26c3e5);_0x596d2b[_0x3e8d67(0x1d6)](_0x287ae6,_0x5e9217);}),_0x1346ae['on'](_0x3e18bd(0x1d0),(_0x4c0622,_0x2ff8d3)=>{const _0x47c1bd=_0x3e18bd;if(_0x26c3e5)clearTimeout(_0x26c3e5);if(_0x4c0622===0x0){_0xfbb600['PEWPK'](_0x30c4fd,{'stdout':_0x382ccc,'stderr':_0x517650,'invocation':_0x22eaa6});return;}const _0xb137bc=_0x15f6fc?'timed\x20out\x20after\x20'+_0x11dc6f[_0x47c1bd(0x1cd)]+'ms':'exited\x20with\x20code='+(_0x4c0622??_0xfbb600[_0x47c1bd(0x202)])+_0x47c1bd(0x1da)+(_0x2ff8d3??_0x47c1bd(0x1ee));_0xfbb600['PEWPK'](_0x287ae6,new Error(_0x47c1bd(0x1fc)+_0x22eaa6['subcommand']+'\x20'+_0xb137bc+_0x47c1bd(0x1d7)+truncateOutput(_0x382ccc)+_0x47c1bd(0x1db)+_0xfbb600[_0x47c1bd(0x1e6)](truncateOutput,_0x517650)));});});}export function extractBashCommand(_0x25ff99){const _0x106daa=_0x192049,_0x569a85={'GGKyi':_0x106daa(0x1e8),'PRKMF':function(_0x12c95b,_0x4154ce){return _0x12c95b===_0x4154ce;},'VlmtT':_0x106daa(0x1de)},_0x155101=['command',_0x569a85['GGKyi'],_0x106daa(0x1f2),_0x106daa(0x1e0)];for(const _0x27b2d3 of _0x155101){const _0x5bbac3=_0x25ff99[_0x27b2d3];if(_0x569a85['PRKMF'](typeof _0x5bbac3,_0x569a85['VlmtT'])&&_0x5bbac3['trim']())return _0x5bbac3;}const _0x317e52=Object['values'](_0x25ff99)[_0x106daa(0x1dd)](_0x7584d8=>typeof _0x7584d8==='string'&&_0x7584d8[_0x106daa(0x1e5)]()[_0x106daa(0x1e9)]>0x0);return _0x317e52??null;}export function parsePlaywrightCliCommand(_0x5463b3){const _0x110703=_0x5463b3['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x110703?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x26282f=_0x48cb;(function(_0x1bc381,_0x33698c){const _0x24fca9=_0x48cb,_0x4b89a6=_0x1bc381();while(!![]){try{const _0x9ed10f=parseInt(_0x24fca9(0xfc))/0x1*(parseInt(_0x24fca9(0xfd))/0x2)+-parseInt(_0x24fca9(0x103))/0x3+-parseInt(_0x24fca9(0xfb))/0x4+-parseInt(_0x24fca9(0xf9))/0x5*(parseInt(_0x24fca9(0xff))/0x6)+-parseInt(_0x24fca9(0x102))/0x7+parseInt(_0x24fca9(0xfe))/0x8*(parseInt(_0x24fca9(0x104))/0x9)+parseInt(_0x24fca9(0xfa))/0xa;if(_0x9ed10f===_0x33698c)break;else _0x4b89a6['push'](_0x4b89a6['shift']());}catch(_0x13a0a8){_0x4b89a6['push'](_0x4b89a6['shift']());}}}(_0x50b0,0x3e50e));const DEFAULT_PROFILE_COMMAND=_0x26282f(0x101);export function formatProfileRequiredMessage(_0x2e68f2){const _0x37ef62=_0x26282f,_0x5b4f94=_0x2e68f2?_0x2e68f2(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x37ef62(0x100)+_0x5b4f94+'.';}function _0x48cb(_0x62b0cb,_0x350151){_0x62b0cb=_0x62b0cb-0xf9;const _0x50b096=_0x50b0();let _0x48cb07=_0x50b096[_0x62b0cb];return _0x48cb07;}function _0x50b0(){const _0x7fee23=['826212aeKRwV','99jbHixQ','29945eOwOig','10854900vOqopf','1030056pcdhfu','24rBcFCE','23202ZftWsP','188440pGMDCU','462lCBtLG','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','ranger\x20profile\x20add\x20local','2615914OEbWHQ'];_0x50b0=function(){return _0x7fee23;};return _0x50b0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c6c26,_0x1d55e0){const _0x3ac4fb=_0x25bb,_0x51df7c=_0x3c6c26();while(!![]){try{const _0x567db2=-parseInt(_0x3ac4fb(0x11c))/0x1*(parseInt(_0x3ac4fb(0x11f))/0x2)+parseInt(_0x3ac4fb(0x111))/0x3+-parseInt(_0x3ac4fb(0x10f))/0x4*(-parseInt(_0x3ac4fb(0x123))/0x5)+parseInt(_0x3ac4fb(0x116))/0x6*(parseInt(_0x3ac4fb(0x118))/0x7)+-parseInt(_0x3ac4fb(0x119))/0x8*(parseInt(_0x3ac4fb(0x114))/0x9)+parseInt(_0x3ac4fb(0x11d))/0xa+-parseInt(_0x3ac4fb(0x122))/0xb*(parseInt(_0x3ac4fb(0x11e))/0xc);if(_0x567db2===_0x1d55e0)break;else _0x51df7c['push'](_0x51df7c['shift']());}catch(_0x42d453){_0x51df7c['push'](_0x51df7c['shift']());}}}(_0x2c0e,0xe6c1f));function _0x2c0e(){const _0xdeb8d6=['</div>','243MlqyHH','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','25266eIIjXY','qYlYd','2681xCoNuZ','12552WySppY','\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','gtrHp','11BOowLG','6243390kwzLjM','360tkXcmf','128162movPlU','LFBuz','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','1175669KkLfyZ','25fMJast','802236hGZIzV','stringify','4976580DouIQl','RgFiN'];_0x2c0e=function(){return _0xdeb8d6;};return _0x2c0e();}function _0x25bb(_0x48d0ff,_0x51445c){_0x48d0ff=_0x48d0ff-0x10f;const _0x2c0e2c=_0x2c0e();let _0x25bb85=_0x2c0e2c[_0x48d0ff];return _0x25bb85;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x33274a=_0x25bb,_0x2da03c={'gtrHp':function(_0x4c20b5,_0x2c7db2){return _0x4c20b5+_0x2c7db2;},'RgFiN':function(_0x361d6d,_0x3d5ad0){return _0x361d6d+_0x3d5ad0;},'qYlYd':function(_0x1b6772,_0x228366){return _0x1b6772+_0x228366;},'LFBuz':'<div\x20class=\x22ranger-banner__content\x22>','epeBk':'<div\x20class=\x22ranger-banner__message\x22>','ndapj':_0x33274a(0x115),'anQvP':_0x33274a(0x113)},_0x3ebc6c=_0x2da03c['gtrHp'](_0x2da03c[_0x33274a(0x11b)](_0x2da03c['gtrHp'](_0x2da03c[_0x33274a(0x112)](_0x2da03c[_0x33274a(0x117)](_0x2da03c[_0x33274a(0x120)]+'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>'+_0x2da03c['epeBk'],'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>'),_0x2da03c['ndapj']),_0x33274a(0x113)),_0x2da03c['anQvP']),_0x33274a(0x121)),_0x1cf4c5=_0x33274a(0x11a);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x33274a(0x110)](_0x3ebc6c)+';\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'+JSON[_0x33274a(0x110)](_0x1cf4c5)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x2e3678){await _0x2e3678['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x499300,_0x1b6d7b){const _0x4fd38a=_0x4c12,_0xf20834=_0x499300();while(!![]){try{const _0x4f171f=parseInt(_0x4fd38a(0xd7))/0x1+-parseInt(_0x4fd38a(0xc0))/0x2*(-parseInt(_0x4fd38a(0xce))/0x3)+parseInt(_0x4fd38a(0xe6))/0x4*(-parseInt(_0x4fd38a(0xe1))/0x5)+-parseInt(_0x4fd38a(0xda))/0x6*(parseInt(_0x4fd38a(0xe2))/0x7)+parseInt(_0x4fd38a(0xc7))/0x8*(-parseInt(_0x4fd38a(0xbd))/0x9)+parseInt(_0x4fd38a(0xd8))/0xa*(-parseInt(_0x4fd38a(0xc6))/0xb)+parseInt(_0x4fd38a(0xbe))/0xc;if(_0x4f171f===_0x1b6d7b)break;else _0xf20834['push'](_0xf20834['shift']());}catch(_0x4b21e5){_0xf20834['push'](_0xf20834['shift']());}}}(_0x56ce,0x411eb));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x56ce(){const _0x2b923a=['59955FPEtCA','isArray','UFkFy','xgNmM','8TrZxOb','2236491MtgOqy','11359716xfGixm','split','2bukSzh','setupHeaders','keyPath\x20is\x20required','wcKbW','projects','OKyiM','5249915ZpWBcK','8OEPVmG','message','kgvkK','wicpN','soIci','settings','warn','945501bMLxFB','now','nWyof','utf-8','fgZix','xNxiN','ZBtiX','oxgye','parse','436970xKxaqG','10tYPXqo','stringify','330oKYMlW','pid','headers','profiles','version','FyPUn','LvTFk','588025ojhLeP'];_0x56ce=function(){return _0x2b923a;};return _0x56ce();}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x392939=_0x4c12,_0x13e324={'wicpN':function(_0x141191,_0x58759a,_0x1f1d5a){return _0x141191(_0x58759a,_0x1f1d5a);},'Dhjfn':function(_0x2c3ff8){return _0x2c3ff8();}};return _0x13e324[_0x392939(0xca)](join,_0x13e324['Dhjfn'](getRangerHomeDir),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4bb279=_0x4c12,_0x1e6129={'BJUXk':function(_0x334a27,_0x4d13d3,_0x39425f){return _0x334a27(_0x4d13d3,_0x39425f);},'LvTFk':_0x4bb279(0xd1),'Loqnk':function(_0x4c58d0,_0x320a1b){return _0x4c58d0 instanceof _0x320a1b;},'soIci':function(_0x6370c9,_0x322d6a){return _0x6370c9(_0x322d6a);},'oxgye':function(_0x3aea46){return _0x3aea46();},'WhaLE':function(_0x3374a2,_0x417a76){return _0x3374a2!==_0x417a76;},'Tcnix':'object','OKyiM':function(_0x397006,_0x24bcd){return _0x397006===_0x24bcd;},'nWyof':function(_0x194d6f){return _0x194d6f();}},_0x187d75=getProjectsConfigPath();if(!existsSync(_0x187d75))return emptyConfig();let _0x12a6dc;try{_0x12a6dc=_0x1e6129['BJUXk'](readFileSync,_0x187d75,_0x1e6129[_0x4bb279(0xe0)]);}catch(_0x112059){const _0x4d4ad2=_0x1e6129['Loqnk'](_0x112059,Error)?_0x112059[_0x4bb279(0xc8)]:_0x1e6129[_0x4bb279(0xcb)](String,_0x112059);return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x187d75+':\x20'+_0x4d4ad2+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x1e6129[_0x4bb279(0xd5)](emptyConfig);}let _0x43236f;try{_0x43236f=JSON[_0x4bb279(0xd6)](_0x12a6dc);}catch(_0x5d5a98){const _0x13eb4e=_0x5d5a98 instanceof Error?_0x5d5a98['message']:String(_0x5d5a98);return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20'+_0x187d75+'\x20is\x20not\x20valid\x20JSON\x20('+_0x13eb4e+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x43236f||_0x1e6129['WhaLE'](typeof _0x43236f,'object')||Array['isArray'](_0x43236f)||_0x43236f[_0x4bb279(0xde)]!==CURRENT_VERSION||typeof _0x43236f['projects']!==_0x1e6129['Tcnix']||_0x1e6129[_0x4bb279(0xc5)](_0x43236f['projects'],null)||Array['isArray'](_0x43236f['projects']))return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20'+_0x187d75+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x1e6129[_0x4bb279(0xd0)](emptyConfig);return _0x43236f;}export function writeProjectsConfig(_0x3640ea){const _0x57e3ea=_0x4c12,_0x8ea1a8={'UFkFy':function(_0x36aebb,_0x1d86e0){return _0x36aebb(_0x1d86e0);},'mceeK':_0x57e3ea(0xd1)},_0x1defed=getProjectsConfigPath(),_0x37f022=_0x8ea1a8['UFkFy'](dirname,_0x1defed);!existsSync(_0x37f022)&&mkdirSync(_0x37f022,{'recursive':!![]});const _0x57f961=_0x1defed+'.'+process[_0x57e3ea(0xdb)]+'.'+Date[_0x57e3ea(0xcf)]()+'.tmp',_0xd8676d=JSON[_0x57e3ea(0xd9)](_0x3640ea,null,0x2)+'\x0a';try{writeFileSync(_0x57f961,_0xd8676d,{'encoding':_0x8ea1a8['mceeK'],'mode':0x180}),renameSync(_0x57f961,_0x1defed);}catch(_0x5def3c){try{existsSync(_0x57f961)&&_0x8ea1a8[_0x57e3ea(0xe4)](unlinkSync,_0x57f961);}catch{}throw _0x5def3c;}}function _0x4c12(_0x1d0fed,_0x193a9b){_0x1d0fed=_0x1d0fed-0xbd;const _0x56ceb8=_0x56ce();let _0x4c1299=_0x56ceb8[_0x1d0fed];return _0x4c1299;}export function readProfileOverrides(_0xe8c2b9,_0x48b672){const _0x64183c=_0x4c12,_0x454f6b=readProjectsConfig(),_0x31278d=_0x454f6b[_0x64183c(0xc4)][_0xe8c2b9];if(!_0x31278d||!_0x31278d['profiles'])return null;const _0x2d23e6=_0x31278d[_0x64183c(0xdd)][_0x48b672];if(!_0x2d23e6||!_0x2d23e6[_0x64183c(0xcc)])return null;return _0x2d23e6['settings']??null;}export function setProfileOverride(_0x4f6adf,_0x466edb,_0x4e010c,_0x387346){const _0x6e932d=_0x4c12,_0x3f2fcf={'mvShs':function(_0x44aa02){return _0x44aa02();},'ZtWIz':function(_0x10df81,_0x7bb1f8){return _0x10df81(_0x7bb1f8);}};if(!_0x4e010c)throw new Error(_0x6e932d(0xc2));const _0x5dc599=_0x3f2fcf['mvShs'](readProjectsConfig),_0x1e5454=_0x5dc599['projects'][_0x4f6adf]??={},_0x57f4e0=_0x1e5454['profiles']??={},_0x20935f=_0x57f4e0[_0x466edb]??={},_0x2f6c55=_0x20935f['settings']??={};setByKeyPath(_0x2f6c55,_0x4e010c,_0x387346),_0x3f2fcf['ZtWIz'](writeProjectsConfig,_0x5dc599);}export function unsetProfileOverride(_0x4354af,_0x1e285d,_0x451dff){const _0x54e704=_0x4c12,_0x3036={'bfoDS':_0x54e704(0xc2),'FyPUn':function(_0x427fda){return _0x427fda();},'vTqTf':function(_0x2c6f80,_0x2a4fd3,_0x46cfc4){return _0x2c6f80(_0x2a4fd3,_0x46cfc4);},'xgNmM':function(_0x3df404,_0x16fccd){return _0x3df404(_0x16fccd);}};if(!_0x451dff)throw new Error(_0x3036['bfoDS']);const _0x4fac99=_0x3036[_0x54e704(0xdf)](readProjectsConfig),_0x2552b3=_0x4fac99[_0x54e704(0xc4)][_0x4354af];if(!_0x2552b3?.[_0x54e704(0xdd)])return![];const _0x4302de=_0x2552b3[_0x54e704(0xdd)][_0x1e285d];if(!_0x4302de?.['settings'])return![];const _0x1e00fa=_0x3036['vTqTf'](deleteByKeyPath,_0x4302de['settings'],_0x451dff);if(!_0x1e00fa)return![];return _0x3036[_0x54e704(0xe5)](writeProjectsConfig,_0x4fac99),!![];}export function resetProfileOverrides(_0x280538,_0x1161c0){const _0x394bf1=_0x4c12,_0x240bed={'kgvkK':function(_0x24c06b){return _0x24c06b();},'DWHsm':function(_0x360630,_0x1baab2){return _0x360630 in _0x1baab2;},'ZBtiX':function(_0x375a8d,_0x4058e3){return _0x375a8d===_0x4058e3;},'iPYnV':function(_0x68a3d7,_0x34e484){return _0x68a3d7(_0x34e484);}},_0x4bac61=_0x240bed[_0x394bf1(0xc9)](readProjectsConfig),_0x513e0c=_0x4bac61['projects'][_0x280538];if(!_0x513e0c?.[_0x394bf1(0xdd)])return;if(!_0x240bed['DWHsm'](_0x1161c0,_0x513e0c[_0x394bf1(0xdd)]))return;delete _0x513e0c[_0x394bf1(0xdd)][_0x1161c0],_0x240bed[_0x394bf1(0xd4)](Object['keys'](_0x513e0c[_0x394bf1(0xdd)])['length'],0x0)&&delete _0x513e0c[_0x394bf1(0xdd)],!_0x513e0c['profiles']&&delete _0x4bac61['projects'][_0x280538],_0x240bed['iPYnV'](writeProjectsConfig,_0x4bac61);}export function mergeCloudProfileSettings(_0x19b7d9,_0x421071){const _0x29ca44=_0x4c12,_0x170846={'QaPyt':function(_0x267e50,_0x8a2a56){return _0x267e50===_0x8a2a56;},'xNxiN':function(_0x448bdc,_0x515a2a){return _0x448bdc(_0x515a2a);}},_0x9d76eb={..._0x19b7d9??{}};if(!_0x421071)return _0x9d76eb;for(const [_0x93ad10,_0x496eca]of Object['entries'](_0x421071)){if(_0x496eca===undefined)continue;if(_0x496eca===null){delete _0x9d76eb[_0x93ad10];continue;}if(_0x170846['QaPyt'](_0x93ad10,_0x29ca44(0xdc))||_0x93ad10===_0x29ca44(0xc1)){const _0xd078f=asRecord(_0x9d76eb[_0x93ad10])??{},_0x14ca97=_0x170846[_0x29ca44(0xd3)](asRecord,_0x496eca);if(!_0x14ca97){_0x9d76eb[_0x93ad10]=_0x496eca;continue;}const _0x4cd47b={..._0xd078f};for(const [_0x40a211,_0xa6a1d1]of Object['entries'](_0x14ca97)){if(_0x170846['QaPyt'](_0xa6a1d1,null))delete _0x4cd47b[_0x40a211];else _0xa6a1d1!==undefined&&(_0x4cd47b[_0x40a211]=_0xa6a1d1);}_0x9d76eb[_0x93ad10]=_0x4cd47b;continue;}_0x9d76eb[_0x93ad10]=_0x496eca;}return _0x9d76eb;}function asRecord(_0x204025){return _0x204025&&typeof _0x204025==='object'&&!Array['isArray'](_0x204025)?_0x204025:undefined;}function setByKeyPath(_0x192b5a,_0xfa9133,_0x33be1b){const _0x44d11c=_0x4c12,_0x2699cb={'PBAEZ':function(_0x8c2924,_0x4cc6ae){return _0x8c2924<_0x4cc6ae;},'oKiDW':function(_0x2f76c3,_0x2f4a9c){return _0x2f76c3-_0x2f4a9c;},'wcKbW':function(_0x4b97e7,_0x37e6de){return _0x4b97e7!==_0x37e6de;}},_0x355b2a=_0xfa9133[_0x44d11c(0xbf)]('.');let _0x8bfac2=_0x192b5a;for(let _0x38d63e=0x0;_0x2699cb['PBAEZ'](_0x38d63e,_0x2699cb['oKiDW'](_0x355b2a['length'],0x1));_0x38d63e++){const _0x172067=_0x355b2a[_0x38d63e],_0x1cd2d9=_0x8bfac2[_0x172067];(!_0x1cd2d9||_0x2699cb[_0x44d11c(0xc3)](typeof _0x1cd2d9,'object')||Array[_0x44d11c(0xe3)](_0x1cd2d9))&&(_0x8bfac2[_0x172067]={}),_0x8bfac2=_0x8bfac2[_0x172067];}_0x8bfac2[_0x355b2a[_0x355b2a['length']-0x1]]=_0x33be1b;}function deleteByKeyPath(_0x305fe9,_0x193f04){const _0x3232ec=_0x4c12,_0x545775={'fgZix':function(_0x4f8665,_0x4b6a16){return _0x4f8665-_0x4b6a16;},'NMMQV':function(_0x26617a,_0x7ccd74){return _0x26617a!==_0x7ccd74;}},_0x20603b=_0x193f04['split']('.');let _0x342d95=_0x305fe9;for(let _0x1b42ca=0x0;_0x1b42ca<_0x545775[_0x3232ec(0xd2)](_0x20603b['length'],0x1);_0x1b42ca++){const _0x7cd2bd=_0x20603b[_0x1b42ca],_0x1ce803=_0x342d95[_0x7cd2bd];if(!_0x1ce803||_0x545775['NMMQV'](typeof _0x1ce803,'object')||Array[_0x3232ec(0xe3)](_0x1ce803))return![];_0x342d95=_0x1ce803;}const _0xaa12c3=_0x20603b[_0x20603b['length']-0x1];if(!(_0xaa12c3 in _0x342d95))return![];return delete _0x342d95[_0xaa12c3],!![];}
|
|
1
|
+
(function(_0x5546b3,_0x3a64e6){const _0x2c06da=_0x1be9,_0x59979f=_0x5546b3();while(!![]){try{const _0x4bd441=-parseInt(_0x2c06da(0x1fe))/0x1+-parseInt(_0x2c06da(0x1f5))/0x2+-parseInt(_0x2c06da(0x1fd))/0x3*(parseInt(_0x2c06da(0x219))/0x4)+-parseInt(_0x2c06da(0x20c))/0x5+parseInt(_0x2c06da(0x20b))/0x6*(parseInt(_0x2c06da(0x1f2))/0x7)+-parseInt(_0x2c06da(0x1f4))/0x8+parseInt(_0x2c06da(0x213))/0x9;if(_0x4bd441===_0x3a64e6)break;else _0x59979f['push'](_0x59979f['shift']());}catch(_0x5e6bcb){_0x59979f['push'](_0x59979f['shift']());}}}(_0x4e5d,0xe8261));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';function _0x1be9(_0x49fa93,_0x5e541a){_0x49fa93=_0x49fa93-0x1f1;const _0x4e5d77=_0x4e5d();let _0x1be987=_0x4e5d77[_0x49fa93];return _0x1be987;}import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x5bc59d=_0x1be9,_0x123d3b={'nqtPq':function(_0x749c12,_0x2dfab5,_0x5ba8c1){return _0x749c12(_0x2dfab5,_0x5ba8c1);},'qmySD':_0x5bc59d(0x206)};return _0x123d3b[_0x5bc59d(0x211)](join,getRangerHomeDir(),_0x123d3b[_0x5bc59d(0x212)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x6f94d7=_0x1be9,_0x44a80e={'cQsDN':function(_0x15c2a7){return _0x15c2a7();},'sIWqD':function(_0x223c04,_0x5c4223){return _0x223c04(_0x5c4223);},'pLGwd':function(_0x4c4584,_0x15d1f0,_0x19eabd){return _0x4c4584(_0x15d1f0,_0x19eabd);},'UCYka':function(_0x44e23d,_0x3c21fb){return _0x44e23d(_0x3c21fb);},'KwyXa':function(_0x9ceabf,_0x2dd120){return _0x9ceabf!==_0x2dd120;},'mvVTD':'object'},_0x5035b3=_0x44a80e[_0x6f94d7(0x217)](getProjectsConfigPath);if(!_0x44a80e[_0x6f94d7(0x1f1)](existsSync,_0x5035b3))return _0x44a80e['cQsDN'](emptyConfig);let _0x1c512d;try{_0x1c512d=_0x44a80e['pLGwd'](readFileSync,_0x5035b3,_0x6f94d7(0x210));}catch(_0x2fe126){const _0x24372f=_0x2fe126 instanceof Error?_0x2fe126['message']:_0x44a80e[_0x6f94d7(0x200)](String,_0x2fe126);return console[_0x6f94d7(0x1f3)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x5035b3+':\x20'+_0x24372f+_0x6f94d7(0x214)),_0x44a80e['cQsDN'](emptyConfig);}let _0x110493;try{_0x110493=JSON[_0x6f94d7(0x20d)](_0x1c512d);}catch(_0x16c0bd){const _0x38f927=_0x16c0bd instanceof Error?_0x16c0bd[_0x6f94d7(0x204)]:String(_0x16c0bd);return console[_0x6f94d7(0x1f3)]('[ranger]\x20Warning:\x20'+_0x5035b3+'\x20is\x20not\x20valid\x20JSON\x20('+_0x38f927+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x110493||_0x44a80e['KwyXa'](typeof _0x110493,_0x6f94d7(0x20f))||Array['isArray'](_0x110493)||_0x44a80e[_0x6f94d7(0x202)](_0x110493['version'],CURRENT_VERSION)||_0x44a80e['KwyXa'](typeof _0x110493[_0x6f94d7(0x208)],_0x44a80e['mvVTD'])||_0x110493['projects']===null||Array['isArray'](_0x110493[_0x6f94d7(0x208)]))return console['warn']('[ranger]\x20Warning:\x20'+_0x5035b3+_0x6f94d7(0x1ff)),_0x44a80e[_0x6f94d7(0x217)](emptyConfig);return _0x110493;}function _0x4e5d(){const _0x2be34b=['EMQcv','yxWZF','yliIk','keyPath\x20is\x20required','JEJWn','isArray','profiles','70248NgDTDk','185542rofxQL','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','UCYka','settings','KwyXa','jvANj','message','OkrLG','projects.json','length','projects','ICbHn','pid','534EUTSpq','2669180RnrSox','parse','entries','object','utf-8','nqtPq','qmySD','32350392ZhvATQ','.\x20Ignoring\x20local\x20profile\x20overrides.','neWrq','lXiZo','cQsDN','PRPbL','200DafmWf','sIWqD','69699ULeZsp','warn','9491528UPsoSU','906322KjySjk'];_0x4e5d=function(){return _0x2be34b;};return _0x4e5d();}export function writeProjectsConfig(_0x52cf7f){const _0x56b763=_0x1be9,_0xfde92a={'tzsor':function(_0x380b85,_0x488f30){return _0x380b85(_0x488f30);},'FwQaM':function(_0x4d9294,_0x50a743,_0x235b67,_0x1b5e5d){return _0x4d9294(_0x50a743,_0x235b67,_0x1b5e5d);},'cqQob':function(_0x5a0990,_0x34e8a9,_0x17acf9){return _0x5a0990(_0x34e8a9,_0x17acf9);}},_0x5ba1a1=getProjectsConfigPath(),_0x599c7f=dirname(_0x5ba1a1);!_0xfde92a['tzsor'](existsSync,_0x599c7f)&&mkdirSync(_0x599c7f,{'recursive':!![]});const _0xdab209=_0x5ba1a1+'.'+process[_0x56b763(0x20a)]+'.'+Date['now']()+'.tmp',_0x4f41f8=JSON['stringify'](_0x52cf7f,null,0x2)+'\x0a';try{_0xfde92a['FwQaM'](writeFileSync,_0xdab209,_0x4f41f8,{'encoding':'utf-8','mode':0x180}),_0xfde92a['cqQob'](renameSync,_0xdab209,_0x5ba1a1);}catch(_0x155800){try{existsSync(_0xdab209)&&unlinkSync(_0xdab209);}catch{}throw _0x155800;}}export function readProfileOverrides(_0xf01c0a,_0x10c3b7){const _0x41a0e7=_0x1be9,_0x3ae06f={'HOHWS':function(_0x3293fa){return _0x3293fa();}},_0x4dab4d=_0x3ae06f['HOHWS'](readProjectsConfig),_0x5112a7=_0x4dab4d['projects'][_0xf01c0a];if(!_0x5112a7||!_0x5112a7[_0x41a0e7(0x1fc)])return null;const _0x5406d2=_0x5112a7['profiles'][_0x10c3b7];if(!_0x5406d2||!_0x5406d2[_0x41a0e7(0x201)])return null;return _0x5406d2['settings']??null;}export function setProfileOverride(_0x15c228,_0x18736c,_0xa2d1ae,_0x3d4f23){const _0x190b39=_0x1be9,_0x213a29={'EMQcv':_0x190b39(0x1f9),'HUapI':function(_0x2b6a4d){return _0x2b6a4d();},'XYQWn':function(_0x1ca25c,_0x23132a,_0x3ce929,_0x2559cf){return _0x1ca25c(_0x23132a,_0x3ce929,_0x2559cf);},'xSSVA':function(_0x155181,_0xf29cb){return _0x155181(_0xf29cb);}};if(!_0xa2d1ae)throw new Error(_0x213a29[_0x190b39(0x1f6)]);const _0x5f53f6=_0x213a29['HUapI'](readProjectsConfig),_0x27ead2=_0x5f53f6['projects'][_0x15c228]??={},_0x33d53a=_0x27ead2['profiles']??={},_0x1cb8b1=_0x33d53a[_0x18736c]??={},_0x13c06a=_0x1cb8b1['settings']??={};_0x213a29['XYQWn'](setByKeyPath,_0x13c06a,_0xa2d1ae,_0x3d4f23),_0x213a29['xSSVA'](writeProjectsConfig,_0x5f53f6);}export function unsetProfileOverride(_0x5a636c,_0x3943f5,_0x38210b){const _0x39822b=_0x1be9,_0x3902d4={'IaiNX':function(_0x4a9042,_0x54970c,_0x1adb6b){return _0x4a9042(_0x54970c,_0x1adb6b);},'dCZsk':function(_0x35150f,_0x379531){return _0x35150f(_0x379531);}};if(!_0x38210b)throw new Error(_0x39822b(0x1f9));const _0xc8cbad=readProjectsConfig(),_0x16d66a=_0xc8cbad['projects'][_0x5a636c];if(!_0x16d66a?.['profiles'])return![];const _0x5a25d1=_0x16d66a['profiles'][_0x3943f5];if(!_0x5a25d1?.[_0x39822b(0x201)])return![];const _0x1cd85b=_0x3902d4['IaiNX'](deleteByKeyPath,_0x5a25d1['settings'],_0x38210b);if(!_0x1cd85b)return![];return _0x3902d4['dCZsk'](writeProjectsConfig,_0xc8cbad),!![];}export function resetProfileOverrides(_0x11376e,_0x2342bf){const _0x6c64f3=_0x1be9,_0x1faf83={'jvANj':function(_0x4ca013,_0x61f0f9){return _0x4ca013 in _0x61f0f9;},'neWrq':function(_0x256ae5,_0x459c87){return _0x256ae5===_0x459c87;},'ACFlj':function(_0x53dec9,_0x5cadd3){return _0x53dec9(_0x5cadd3);}},_0x917217=readProjectsConfig(),_0x44d913=_0x917217['projects'][_0x11376e];if(!_0x44d913?.['profiles'])return;if(!_0x1faf83[_0x6c64f3(0x203)](_0x2342bf,_0x44d913[_0x6c64f3(0x1fc)]))return;delete _0x44d913['profiles'][_0x2342bf],_0x1faf83[_0x6c64f3(0x215)](Object['keys'](_0x44d913[_0x6c64f3(0x1fc)])['length'],0x0)&&(!_0x44d913['lastProfile']?delete _0x917217[_0x6c64f3(0x208)][_0x11376e]:_0x44d913['profiles']={}),_0x1faf83['ACFlj'](writeProjectsConfig,_0x917217);}export function readLastProfile(_0x2d9e1b){const _0x3dda0a={'Ztlyt':function(_0x339f8d){return _0x339f8d();}},_0x2d4564=_0x3dda0a['Ztlyt'](readProjectsConfig),_0x130147=_0x2d4564['projects'][_0x2d9e1b];return _0x130147?.['lastProfile']??null;}export function writeLastProfile(_0x36cc37,_0x3dd6ed){const _0x5c3d6c=_0x1be9,_0x492fc0={'JEJWn':function(_0x34e7ee){return _0x34e7ee();},'yxWZF':function(_0x54c3e2,_0x16f17b){return _0x54c3e2(_0x16f17b);}},_0x585533=_0x492fc0[_0x5c3d6c(0x1fa)](readProjectsConfig),_0x35c033=_0x585533['projects'][_0x36cc37]??={};_0x35c033['lastProfile']=_0x3dd6ed,_0x492fc0[_0x5c3d6c(0x1f7)](writeProjectsConfig,_0x585533);}export function mergeCloudProfileSettings(_0x1e81f3,_0x42562b){const _0x34b7c8=_0x1be9,_0x1242d5={'ICbHn':function(_0x15cb59,_0x15f13c){return _0x15cb59===_0x15f13c;},'wQWNX':'setupHeaders'},_0x1169c6={..._0x1e81f3??{}};if(!_0x42562b)return _0x1169c6;for(const [_0x220b55,_0x33347d]of Object['entries'](_0x42562b)){if(_0x33347d===undefined)continue;if(_0x33347d===null){delete _0x1169c6[_0x220b55];continue;}if(_0x220b55==='headers'||_0x1242d5[_0x34b7c8(0x209)](_0x220b55,_0x1242d5['wQWNX'])){const _0x28b9f5=asRecord(_0x1169c6[_0x220b55])??{},_0x43c099=asRecord(_0x33347d);if(!_0x43c099){_0x1169c6[_0x220b55]=_0x33347d;continue;}const _0x3f543d={..._0x28b9f5};for(const [_0x214c5d,_0x1c902a]of Object[_0x34b7c8(0x20e)](_0x43c099)){if(_0x1242d5[_0x34b7c8(0x209)](_0x1c902a,null))delete _0x3f543d[_0x214c5d];else _0x1c902a!==undefined&&(_0x3f543d[_0x214c5d]=_0x1c902a);}_0x1169c6[_0x220b55]=_0x3f543d;continue;}_0x1169c6[_0x220b55]=_0x33347d;}return _0x1169c6;}function asRecord(_0x3e20ce){const _0x97e7b9=_0x1be9,_0x1a979b={'lXiZo':function(_0x318628,_0x55abd1){return _0x318628===_0x55abd1;},'PRPbL':_0x97e7b9(0x20f)};return _0x3e20ce&&_0x1a979b[_0x97e7b9(0x216)](typeof _0x3e20ce,_0x1a979b[_0x97e7b9(0x218)])&&!Array['isArray'](_0x3e20ce)?_0x3e20ce:undefined;}function setByKeyPath(_0xde4c17,_0x1289a4,_0x111077){const _0x3917fd=_0x1be9,_0x353e97={'gmUVq':function(_0x10d3dc,_0x312e88){return _0x10d3dc!==_0x312e88;}},_0x5ea74e=_0x1289a4['split']('.');let _0x4a90b1=_0xde4c17;for(let _0x4f89cf=0x0;_0x4f89cf<_0x5ea74e[_0x3917fd(0x207)]-0x1;_0x4f89cf++){const _0x24db0b=_0x5ea74e[_0x4f89cf],_0x2b9c0c=_0x4a90b1[_0x24db0b];(!_0x2b9c0c||_0x353e97['gmUVq'](typeof _0x2b9c0c,'object')||Array['isArray'](_0x2b9c0c))&&(_0x4a90b1[_0x24db0b]={}),_0x4a90b1=_0x4a90b1[_0x24db0b];}_0x4a90b1[_0x5ea74e[_0x5ea74e['length']-0x1]]=_0x111077;}function deleteByKeyPath(_0x3b0d6d,_0x3b912d){const _0x34be23=_0x1be9,_0x421d59={'OkrLG':function(_0x37d14b,_0x3177e0){return _0x37d14b-_0x3177e0;},'KKAms':_0x34be23(0x20f),'yliIk':function(_0x56c95e,_0x5f0042){return _0x56c95e-_0x5f0042;}},_0x4b4d2a=_0x3b912d['split']('.');let _0x4256f8=_0x3b0d6d;for(let _0x59dc57=0x0;_0x59dc57<_0x421d59[_0x34be23(0x205)](_0x4b4d2a['length'],0x1);_0x59dc57++){const _0x3842bd=_0x4b4d2a[_0x59dc57],_0x21c653=_0x4256f8[_0x3842bd];if(!_0x21c653||typeof _0x21c653!==_0x421d59['KKAms']||Array[_0x34be23(0x1fb)](_0x21c653))return![];_0x4256f8=_0x21c653;}const _0x1c7068=_0x4b4d2a[_0x421d59[_0x34be23(0x1f8)](_0x4b4d2a[_0x34be23(0x207)],0x1)];if(!(_0x1c7068 in _0x4256f8))return![];return delete _0x4256f8[_0x1c7068],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2bd767,_0xc589c5){const _0x5ddd4d=_0x2f4a,_0x652de8=_0x2bd767();while(!![]){try{const _0x3dfbf6=-parseInt(_0x5ddd4d(0x182))/0x1*(-parseInt(_0x5ddd4d(0x189))/0x2)+parseInt(_0x5ddd4d(0x17f))/0x3*(parseInt(_0x5ddd4d(0x185))/0x4)+-parseInt(_0x5ddd4d(0x181))/0x5*(parseInt(_0x5ddd4d(0x186))/0x6)+parseInt(_0x5ddd4d(0x17c))/0x7*(parseInt(_0x5ddd4d(0x18b))/0x8)+parseInt(_0x5ddd4d(0x17b))/0x9+parseInt(_0x5ddd4d(0x17e))/0xa+-parseInt(_0x5ddd4d(0x180))/0xb*(parseInt(_0x5ddd4d(0x188))/0xc);if(_0x3dfbf6===_0xc589c5)break;else _0x652de8['push'](_0x652de8['shift']());}catch(_0x14e147){_0x652de8['push'](_0x652de8['shift']());}}}(_0x5aa1,0xa26f6));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x5aa1(){const _0x4e8c7f=['string','9108290jPPGPM','65880WsNCjr','671ptZMhq','415ZEnEgy','39dTosmI','config.json','parse','12kzdmXY','56622rRJGNR','model','140988OjYInq','56706exMiPV','phGSy','652264xJaOVI','11565gyapkY','7cCzIZI'];_0x5aa1=function(){return _0x4e8c7f;};return _0x5aa1();}import{join}from'path';function _0x2f4a(_0x103d4f,_0x268335){_0x103d4f=_0x103d4f-0x17b;const _0x5aa1c4=_0x5aa1();let _0x2f4af8=_0x5aa1c4[_0x103d4f];return _0x2f4af8;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x50c196=_0x2f4a;return join(getRangerDir(),_0x50c196(0x183));}export async function loadRangerConfig(){const _0x1f746d=_0x2f4a,_0x548c58={'phGSy':function(_0x231335){return _0x231335();},'moMzl':'utf-8','YtceY':function(_0x214084,_0x15b8f7){return _0x214084===_0x15b8f7;}},_0x4cc5ae=_0x548c58[_0x1f746d(0x18a)](getRangerConfigPath);if(!existsSync(_0x4cc5ae))return{};try{const _0x4790b7=await readFile(_0x4cc5ae,_0x548c58['moMzl']),_0x40060d=JSON[_0x1f746d(0x184)](_0x4790b7);if(!_0x40060d||typeof _0x40060d!=='object'||Array['isArray'](_0x40060d))return{};const _0x2023d8={},_0x2627a1=_0x40060d[_0x1f746d(0x187)];return _0x548c58['YtceY'](typeof _0x2627a1,_0x1f746d(0x17d))&&(_0x2023d8[_0x1f746d(0x187)]=_0x2627a1),_0x2023d8;}catch(_0x25553b){const _0x395eb5=_0x25553b instanceof Error?_0x25553b['message']:String(_0x25553b);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x4cc5ae+':\x20'+_0x395eb5),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x285e(){const _0x34743d=['5223360qlPPVp','vvZWS','1218996idZsyY','4835205wdYhKv','30EMWDir','4AcnXTu','rEgPk','4016583SlmmrB','vViWF','162211jtqZwx','8594957KczDZp','2215vgylqG','uluuT','.ranger','13986nOYmYn','root','HuRmu'];_0x285e=function(){return _0x34743d;};return _0x285e();}(function(_0x391736,_0x448082){const _0x2d6942=_0x2e36,_0xe3825f=_0x391736();while(!![]){try{const _0x329144=-parseInt(_0x2d6942(0x1dc))/0x1*(-parseInt(_0x2d6942(0x1d8))/0x2)+parseInt(_0x2d6942(0x1da))/0x3+parseInt(_0x2d6942(0x1e6))/0x4+-parseInt(_0x2d6942(0x1de))/0x5*(-parseInt(_0x2d6942(0x1e1))/0x6)+-parseInt(_0x2d6942(0x1dd))/0x7+parseInt(_0x2d6942(0x1e4))/0x8+parseInt(_0x2d6942(0x1e7))/0x9*(-parseInt(_0x2d6942(0x1e8))/0xa);if(_0x329144===_0x448082)break;else _0xe3825f['push'](_0xe3825f['shift']());}catch(_0x141f48){_0xe3825f['push'](_0xe3825f['shift']());}}}(_0x285e,0xc6baf));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x2e36(_0x3fdf1e,_0x58f6e9){_0x3fdf1e=_0x3fdf1e-0x1d8;const _0x285e06=_0x285e();let _0x2e3683=_0x285e06[_0x3fdf1e];return _0x2e3683;}export function getRangerRoot(){const _0x30fa3e=_0x2e36,_0x41f44={'DufMl':function(_0x2f6abd,_0x5a1080){return _0x2f6abd!==_0x5a1080;},'BfeHO':'.ranger','vViWF':function(_0x232e03,_0x598109){return _0x232e03(_0x598109);},'iWQNr':function(_0x817e29,_0x3229c0,_0x48b9fb){return _0x817e29(_0x3229c0,_0x48b9fb);},'vzzJo':function(_0x5a412d){return _0x5a412d();}};let _0x275065=process['cwd']();const _0x5c3b16=parse(_0x275065)[_0x30fa3e(0x1e2)];while(_0x41f44['DufMl'](_0x275065,_0x5c3b16)){if(existsSync(join(_0x275065,_0x41f44['BfeHO'])))return _0x275065;_0x275065=_0x41f44[_0x30fa3e(0x1db)](dirname,_0x275065);}if(existsSync(_0x41f44['iWQNr'](join,_0x5c3b16,_0x30fa3e(0x1e0))))return _0x5c3b16;const _0x17dc58=_0x41f44['vzzJo'](findGitRoot);if(_0x17dc58)return _0x17dc58;return process['cwd']();}export function getRangerDir(){const _0x49d10f={'ZUPEB':'.ranger'};return join(getRangerRoot(),_0x49d10f['ZUPEB']);}export function findGitRoot(){const _0x1738ce=_0x2e36,_0x5968d6={'TofPq':function(_0x2cfec7,_0x5736b7){return _0x2cfec7!==_0x5736b7;},'uluuT':function(_0x1df75a,_0x2cb1b9){return _0x1df75a(_0x2cb1b9);},'HuRmu':function(_0x419625,_0x2598a4,_0x2cf480){return _0x419625(_0x2598a4,_0x2cf480);},'vvZWS':function(_0xeb8912,_0x2ca3fd){return _0xeb8912(_0x2ca3fd);},'CkRya':function(_0x172078,_0x1dd21d,_0xa71e38){return _0x172078(_0x1dd21d,_0xa71e38);},'rEgPk':'.git'};let _0x5ea3e6=process['cwd']();const _0x45b464=parse(_0x5ea3e6)['root'];while(_0x5968d6['TofPq'](_0x5ea3e6,_0x45b464)){if(_0x5968d6[_0x1738ce(0x1df)](existsSync,_0x5968d6[_0x1738ce(0x1e3)](join,_0x5ea3e6,'.git')))return _0x5ea3e6;_0x5ea3e6=_0x5968d6[_0x1738ce(0x1e5)](dirname,_0x5ea3e6);}if(_0x5968d6[_0x1738ce(0x1e5)](existsSync,_0x5968d6['CkRya'](join,_0x45b464,_0x5968d6[_0x1738ce(0x1d9)])))return _0x45b464;return null;}export function getRangerHomeDir(){const _0x37c2ab={'qVCwG':'.ranger'};return join(homedir(),_0x37c2ab['qVCwG']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3499(_0x229315,_0x26a4d9){_0x229315=_0x229315-0x12e;const _0x1a7320=_0x1a73();let _0x3499c5=_0x1a7320[_0x229315];return _0x3499c5;}(function(_0x33ef06,_0x284ac6){const _0x141594=_0x3499,_0x35b095=_0x33ef06();while(!![]){try{const _0x1d5892=parseInt(_0x141594(0x13a))/0x1*(-parseInt(_0x141594(0x154))/0x2)+-parseInt(_0x141594(0x136))/0x3*(parseInt(_0x141594(0x162))/0x4)+parseInt(_0x141594(0x152))/0x5*(parseInt(_0x141594(0x138))/0x6)+-parseInt(_0x141594(0x153))/0x7+-parseInt(_0x141594(0x137))/0x8+parseInt(_0x141594(0x13e))/0x9*(parseInt(_0x141594(0x135))/0xa)+parseInt(_0x141594(0x143))/0xb;if(_0x1d5892===_0x284ac6)break;else _0x35b095['push'](_0x35b095['shift']());}catch(_0x5b207a){_0x35b095['push'](_0x35b095['shift']());}}}(_0x1a73,0x60cfb));import{existsSync}from'fs';import _0x121a27 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x1a73(){const _0x125341=['Local\x20profile','cdpEndpoint','1|2|3|4|0','profile','RANGER_SESSION_STATE_PATH','69192gkYwEo','resolvedEnv','tTKyw','url','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','cwd','rwVLi','kTJSe','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','40GdTBGC','129cGQUIL','1159688fXaOUf','2043486aoQdDI','name','355898vLQMNb','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','startPath','wrnFM','596088cmXQCs','\x20baseUrl\x20<url>','cloud','domains','prompt','18101677rLKfqs','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','env','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','local','string','envStartPath','SrseR','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','Profile\x20\x22','\x20does\x20not\x20exist.','RANGER_SESSION_STATE_PATH=','list','AmuLu','dmwZj','5GdmfRV','1778042uYZlQW','4zdAbqE','KKdHO','log','YXwJF','GSXVa','dVMEq','baseUrl','RANGER_TEST_USERNAME','source'];_0x1a73=function(){return _0x125341;};return _0x1a73();}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(_0x3538b7){const _0x377f4e=_0x3499,_0x2082f8={'YXwJF':function(_0x31f456,_0x11a463){return _0x31f456===_0x11a463;},'Rirtz':function(_0xc25da4,_0x5db8c5){return _0xc25da4+_0x5db8c5;},'AmuLu':function(_0xd20ccc,_0x1a193f){return _0xd20ccc+_0x1a193f;},'GxNTq':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','GSXVa':function(_0x161f1d,_0x1162de){return _0x161f1d(_0x1162de);},'bzuQx':function(_0x274397,_0x43df35){return _0x274397 instanceof _0x43df35;},'yFiSP':function(_0x5408ae,_0x7c0956){return _0x5408ae&&_0x7c0956;},'KKdHO':function(_0x2e3eff){return _0x2e3eff();},'kTJSe':_0x377f4e(0x14f),'joXJM':_0x377f4e(0x15c),'YqJCM':'Cloud\x20profile\x20(recommended)','SrseR':'cloud','dIRmA':function(_0x425935,_0x1be253){return _0x425935??_0x1be253;},'uvmCc':_0x377f4e(0x15f),'tTKyw':function(_0x209d14,_0x4d8310){return _0x209d14(_0x4d8310);},'ERvLT':function(_0x54da40,_0x387c9b){return _0x54da40(_0x387c9b);},'KmEcC':function(_0x4d8416){return _0x4d8416();}},_0x473a24=_0x3538b7['profile'];let _0x40b866=_0x3538b7[_0x377f4e(0x160)]??await readActiveProfileName(),_0x40112d=null;if(!_0x40b866&&process[_0x377f4e(0x145)][_0x377f4e(0x15b)]){const _0x33b082=await resolveAdHocProfile();_0x33b082&&(_0x40b866=_0x33b082[_0x377f4e(0x139)],_0x40112d=_0x33b082[_0x377f4e(0x160)]);}if(!_0x40b866)try{const _0x2fe5de=await listCloudProfiles();if(_0x2082f8[_0x377f4e(0x157)](_0x2fe5de['length'],0x1)){const _0x5543e0=_0x2fe5de[0x0];_0x40b866=_0x5543e0['name'],console[_0x377f4e(0x156)](_0x377f4e(0x134)+_0x5543e0['name']),console['log'](_0x377f4e(0x144));}}catch{}if(!_0x40b866)throw new Error(_0x2082f8['Rirtz'](_0x2082f8[_0x377f4e(0x150)](_0x377f4e(0x146),'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a')+_0x377f4e(0x13b)+_0x2082f8['GxNTq'],'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x521f8e=_0x2082f8['GSXVa'](getEnvDir,_0x40b866),_0x5afded=existsSync(_0x521f8e);let _0x13e7f6=_0x40112d,_0x248b3e=![];if(!_0x13e7f6)try{_0x13e7f6=await fetchCloudProfile(_0x40b866);if(!_0x13e7f6)_0x248b3e=!![];}catch(_0x5853d4){_0x2082f8['bzuQx'](_0x5853d4,ApiError)&&_0x5853d4['status']===0x194&&(_0x248b3e=!![]);}if(_0x2082f8['yFiSP'](_0x473a24,_0x248b3e)&&!_0x5afded&&!_0x13e7f6)throw new Error(_0x377f4e(0x14c)+_0x473a24+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x13e7f6&&_0x5afded){let _0x3ff4a6=!![];if(_0x2082f8[_0x377f4e(0x155)](isInteractive)){const {source:_0x537b13}=await _0x121a27[_0x377f4e(0x142)]([{'type':_0x2082f8[_0x377f4e(0x132)],'name':_0x2082f8['joXJM'],'message':_0x377f4e(0x14c)+_0x40b866+_0x377f4e(0x133),'choices':[{'name':_0x2082f8['YqJCM'],'value':_0x377f4e(0x140)},{'name':_0x377f4e(0x15d),'value':_0x377f4e(0x147)}],'default':_0x2082f8[_0x377f4e(0x14a)]}]);_0x3ff4a6=_0x537b13===_0x2082f8['SrseR'];}if(!_0x3ff4a6)_0x13e7f6=null;}const _0x17d975=readProfileOverrides(process[_0x377f4e(0x130)](),_0x40b866);let _0x47b979=null,_0x18ba15,_0x551d77,_0x5c0465,_0x53d704,_0x10a01a=null,_0x18d47c;const _0x5a28b4=expandOverrides(_0x17d975);if(_0x13e7f6){_0x47b979=_0x13e7f6;const _0x4910ee=_0x13e7f6['settings']??{},_0x382052=mergeCloudProfileSettings(_0x4910ee,_0x2082f8['dIRmA'](_0x17d975,undefined)),_0x5a1d3c={..._0x13e7f6,'settings':_0x382052},_0x3b833d=process['env'][_0x377f4e(0x161)];if(_0x3b833d){const _0x296448=_0x2082f8['uvmCc']['split']('|');let _0x179d6e=0x0;while(!![]){switch(_0x296448[_0x179d6e++]){case'0':_0x10a01a={'baseUrl':_0x2082f8[_0x377f4e(0x158)](expandString,_0x4910ee[_0x377f4e(0x15a)]),'startPath':expandString(_0x4910ee[_0x377f4e(0x13c)])};continue;case'1':if(!existsSync(_0x3b833d))throw new Error(_0x377f4e(0x14e)+_0x3b833d+_0x377f4e(0x14d));continue;case'2':_0x18ba15=_0x3b833d;continue;case'3':_0x551d77=_0x2082f8['tTKyw'](resolveEnvVars,_0x382052);continue;case'4':_0x5c0465=_0x2082f8[_0x377f4e(0x164)](Boolean,_0x551d77[_0x377f4e(0x15e)]);continue;}break;}}else{const _0x3fa24=await resolveCloudProfileSession(_0x5a1d3c);_0x18ba15=_0x3fa24['authPath'],_0x551d77=resolveEnvVars(_0x382052),_0x5c0465=Boolean(_0x551d77[_0x377f4e(0x15e)]),_0x10a01a={'baseUrl':expandString(_0x4910ee[_0x377f4e(0x15a)]),'startPath':_0x2082f8['GSXVa'](expandString,_0x4910ee['startPath'])},_0x18d47c=_0x3fa24[_0x377f4e(0x163)]?.[_0x377f4e(0x141)]?.[0x0];}}else{if(!_0x5afded)throw new Error('Profile\x20\x22'+_0x40b866+_0x377f4e(0x12f)+_0x40b866);const _0x1ab3d2=await loadSettings(_0x40b866);_0x551d77=_0x2082f8['ERvLT'](resolveEnvVars,_0x1ab3d2),_0x5c0465=Boolean(_0x551d77[_0x377f4e(0x15e)]),_0x53d704=_0x551d77[_0x377f4e(0x15a)];}const _0xd9b054=_0x2082f8['KmEcC'](readUrlEnvVars),_0x3a6efd=resolveProfileUrl({'flagBaseUrl':_0x3538b7['baseUrl'],'flagStartPath':_0x3538b7[_0x377f4e(0x13c)],'envBaseUrl':_0xd9b054['envBaseUrl'],'envStartPath':_0xd9b054[_0x377f4e(0x149)],'localSettingsBaseUrl':_0x53d704,'projectOverrides':_0x5a28b4,'cloudSettings':_0x10a01a,'authEnvironmentDomain':_0x18d47c}),_0x4bb2af=_0x3a6efd[_0x377f4e(0x12e)]??_0x3a6efd['baseUrl'];if(!_0x4bb2af&&!_0x5c0465)throw new Error(_0x377f4e(0x14b)+_0x40b866+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x40b866+_0x377f4e(0x13f));return{'activeProfile':_0x40b866,'resolvedCloudProfile':_0x47b979,'cloudAuthPath':_0x18ba15,'resolvedSettings':_0x551d77,'isCdpMode':_0x5c0465,'url':_0x4bb2af,'startPath':_0x3a6efd[_0x377f4e(0x13c)]};}function expandString(_0x24211f){const _0xc8e616=_0x3499,_0x553595={'MhUkl':function(_0x516cac,_0x10550f){return _0x516cac!==_0x10550f;},'dmwZj':_0xc8e616(0x148),'dVMEq':function(_0xd1c433,_0x2bc213){return _0xd1c433(_0x2bc213);}};if(_0x553595['MhUkl'](typeof _0x24211f,_0x553595[_0xc8e616(0x151)]))return _0x24211f;return _0x553595[_0xc8e616(0x159)](resolveEnvVars,_0x24211f);}function expandOverrides(_0x2ccfbe){const _0x317e7a=_0x3499,_0x420d8b={'piPiA':function(_0x5477c8,_0x126e90){return _0x5477c8===_0x126e90;},'rwVLi':_0x317e7a(0x148),'wrnFM':function(_0x6822d5,_0xaf9a27){return _0x6822d5(_0xaf9a27);}};if(!_0x2ccfbe)return _0x2ccfbe;const _0x33b9dd={..._0x2ccfbe};return _0x420d8b['piPiA'](typeof _0x33b9dd['baseUrl'],_0x420d8b[_0x317e7a(0x131)])&&(_0x33b9dd['baseUrl']=_0x420d8b['wrnFM'](resolveEnvVars,_0x33b9dd['baseUrl'])),typeof _0x33b9dd['startPath']===_0x420d8b[_0x317e7a(0x131)]&&(_0x33b9dd['startPath']=_0x420d8b[_0x317e7a(0x13d)](resolveEnvVars,_0x33b9dd[_0x317e7a(0x13c)])),_0x33b9dd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x26e71a,_0x1ad1ad){const _0x5554ab=_0x5d64,_0x19afa5=_0x26e71a();while(!![]){try{const _0x35479d=parseInt(_0x5554ab(0x154))/0x1+parseInt(_0x5554ab(0x149))/0x2+-parseInt(_0x5554ab(0x147))/0x3*(-parseInt(_0x5554ab(0x150))/0x4)+parseInt(_0x5554ab(0x157))/0x5*(-parseInt(_0x5554ab(0x13e))/0x6)+parseInt(_0x5554ab(0x14a))/0x7+parseInt(_0x5554ab(0x15a))/0x8*(-parseInt(_0x5554ab(0x14e))/0x9)+-parseInt(_0x5554ab(0x155))/0xa;if(_0x35479d===_0x1ad1ad)break;else _0x19afa5['push'](_0x19afa5['shift']());}catch(_0x4d8b91){_0x19afa5['push'](_0x19afa5['shift']());}}}(_0x4ce3,0xac856));function firstDefined(..._0x445a2b){const _0xe75f1b={'ncPBU':function(_0x5231f3,_0x157a9a){return _0x5231f3!==_0x157a9a;}};for(const _0x29e64a of _0x445a2b){if(_0x29e64a!==undefined&&_0xe75f1b['ncPBU'](_0x29e64a,null)&&_0x29e64a!=='')return _0x29e64a;}return undefined;}function normalizeAuthEnvironmentDomain(_0x5ea0ec){const _0x2ce03d=_0x5d64;if(!_0x5ea0ec)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x2ce03d(0x146)](_0x5ea0ec))return _0x5ea0ec;return'https://'+_0x5ea0ec;}function _0x4ce3(){const _0x5f3e2e=['4tmXVOU','baseUrl','envBaseUrl','flagStartPath','1206588QrViCi','32747690pivaYl','localSettingsBaseUrl','5HVaiLY','RANGER_BASE_URL','string','24tMncxs','CWMjQ','304122HPlQxw','ltiwv','cloudSettings','startsWith','envStartPath','authEnvironmentDomain','qtOwn','rMwcZ','test','2785377nFNkUc','endsWith','2164910GEeZQJ','6040993lmWfLT','RANGER_START_PATH','projectOverrides','KPoat','145197hWGNJy','TnauP'];_0x4ce3=function(){return _0x5f3e2e;};return _0x4ce3();}export function resolveBaseUrl(_0x35b889){const _0x13b659=_0x5d64,_0x309890={'qtOwn':_0x13b659(0x151),'adrZr':function(_0x5536fb,_0x1a3625){return _0x5536fb===_0x1a3625;},'SOmqf':function(_0x5bf9b8,_0x152e27,_0x566750,_0x2e88da,_0x5f14ed,_0x1726bb,_0x458e57){return _0x5bf9b8(_0x152e27,_0x566750,_0x2e88da,_0x5f14ed,_0x1726bb,_0x458e57);},'ltiwv':function(_0x32b151,_0xc1ead8){return _0x32b151===_0xc1ead8;},'TnauP':'string','KPoat':function(_0x34dda1,_0x450e04){return _0x34dda1(_0x450e04);}},_0x5a04f1=_0x35b889[_0x13b659(0x14c)],_0x52779a=!!_0x5a04f1&&_0x309890[_0x13b659(0x144)]in _0x5a04f1,_0x46e45d=_0x5a04f1?.['baseUrl'],_0x2eb340=!(_0x52779a&&_0x309890['adrZr'](_0x46e45d,null));return _0x309890['SOmqf'](firstDefined,_0x35b889['flagBaseUrl'],_0x35b889[_0x13b659(0x152)],_0x35b889[_0x13b659(0x156)],_0x309890[_0x13b659(0x13f)](typeof _0x46e45d,_0x309890[_0x13b659(0x14f)])?_0x46e45d:undefined,_0x2eb340?_0x35b889[_0x13b659(0x140)]?.['baseUrl']:undefined,_0x2eb340?_0x309890[_0x13b659(0x14d)](normalizeAuthEnvironmentDomain,_0x35b889[_0x13b659(0x143)]):undefined);}export function resolveStartPath(_0x29aa62){const _0x45c925=_0x5d64,_0x379b59={'CWMjQ':'startPath','rMwcZ':function(_0x4fff88,_0x51b792){return _0x4fff88===_0x51b792;}},_0x2e65ae=_0x29aa62[_0x45c925(0x14c)],_0x50f0ac=!!_0x2e65ae&&_0x379b59[_0x45c925(0x15b)]in _0x2e65ae,_0x47aac9=_0x2e65ae?.['startPath'],_0x1bd99d=!(_0x50f0ac&&_0x379b59[_0x45c925(0x145)](_0x47aac9,null));return firstDefined(_0x29aa62[_0x45c925(0x153)],_0x29aa62[_0x45c925(0x142)],typeof _0x47aac9===_0x45c925(0x159)?_0x47aac9:undefined,_0x1bd99d?_0x29aa62['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x28e6e4,_0x147f4e){const _0x5fa1e3=_0x5d64,_0x2ee4fd={'rMEBd':function(_0x3b1e41,_0x5c88e0){return _0x3b1e41+_0x5c88e0;}};if(!_0x28e6e4)return undefined;if(!_0x147f4e)return _0x28e6e4;const _0x30ed0e=_0x28e6e4[_0x5fa1e3(0x148)]('/')?_0x28e6e4['slice'](0x0,-0x1):_0x28e6e4,_0x293833=_0x147f4e[_0x5fa1e3(0x141)]('/')?_0x147f4e:'/'+_0x147f4e;return _0x2ee4fd['rMEBd'](_0x30ed0e,_0x293833);}function _0x5d64(_0x5c8c68,_0x52ea73){_0x5c8c68=_0x5c8c68-0x13e;const _0x4ce3bb=_0x4ce3();let _0x5d6403=_0x4ce3bb[_0x5c8c68];return _0x5d6403;}export function resolveProfileUrl(_0x422dc9){const _0x304146={'EGIOm':function(_0x15f2c2,_0x4b75a0){return _0x15f2c2(_0x4b75a0);}},_0x52e4d7=_0x304146['EGIOm'](resolveBaseUrl,_0x422dc9),_0x35a800=resolveStartPath(_0x422dc9);return{'baseUrl':_0x52e4d7,'startPath':_0x35a800,'url':joinBaseAndPath(_0x52e4d7,_0x35a800)};}export function readUrlEnvVars(_0x1f6a7d=process['env']){const _0x465f5c=_0x5d64;return{'envBaseUrl':_0x1f6a7d[_0x465f5c(0x158)],'envStartPath':_0x1f6a7d[_0x465f5c(0x14b)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2fe6b0,_0x489f5e){const _0xf7905d=_0x516b,_0x3a0a04=_0x2fe6b0();while(!![]){try{const _0x39a52d=-parseInt(_0xf7905d(0x1d9))/0x1*(parseInt(_0xf7905d(0x1d8))/0x2)+-parseInt(_0xf7905d(0x1d5))/0x3+-parseInt(_0xf7905d(0x1d6))/0x4+parseInt(_0xf7905d(0x1dd))/0x5*(parseInt(_0xf7905d(0x1d3))/0x6)+parseInt(_0xf7905d(0x1d2))/0x7+parseInt(_0xf7905d(0x1dc))/0x8+parseInt(_0xf7905d(0x1d4))/0x9;if(_0x39a52d===_0x489f5e)break;else _0x3a0a04['push'](_0x3a0a04['shift']());}catch(_0x2a6038){_0x3a0a04['push'](_0x3a0a04['shift']());}}}(_0x21d9,0xc3bfd));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x38d164,_0x167214){const _0x4ff9d8=_0x516b,_0x444717={'VxOqc':function(_0x230b29,_0x5b049e){return _0x230b29<=_0x5b049e;},'dPwsh':function(_0x16d629){return _0x16d629();},'UIPKf':function(_0x52fa4a,_0x432ad1){return _0x52fa4a instanceof _0x432ad1;},'giUQK':function(_0x1edc2f,_0x25b5fe){return _0x1edc2f<_0x25b5fe;}},_0x33992b=_0x167214?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x24cdec=_0x167214?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x129c15;for(let _0x104237=0x0;_0x444717['VxOqc'](_0x104237,_0x33992b);_0x104237++){try{return await _0x444717[_0x4ff9d8(0x1d7)](_0x38d164);}catch(_0x520fa4){_0x129c15=_0x444717['UIPKf'](_0x520fa4,Error)?_0x520fa4:new Error(String(_0x520fa4));if(_0x444717['giUQK'](_0x104237,_0x33992b)){const _0x63442=_0x24cdec*Math[_0x4ff9d8(0x1da)](0x2,_0x104237);_0x167214?.['label']&&console['error'](_0x167214['label']+'\x20failed\x20(attempt\x20'+(_0x104237+0x1)+'/'+(_0x33992b+0x1)+'),\x20retrying\x20in\x20'+_0x63442+_0x4ff9d8(0x1db)),await new Promise(_0x243969=>setTimeout(_0x243969,_0x63442));}}}throw _0x129c15;}function _0x516b(_0x22a56e,_0x13e0a5){_0x22a56e=_0x22a56e-0x1d2;const _0x21d9e3=_0x21d9();let _0x516b06=_0x21d9e3[_0x22a56e];return _0x516b06;}function _0x21d9(){const _0x368595=['1950201jngYJO','5607864MkgkZu','dPwsh','45116YTlZrz','52QYNejf','pow','ms...','740296GlsWZg','59115KfFjJP','5104050YKvRon','72DOGEqJ','27569475lQgWrM'];_0x21d9=function(){return _0x368595;};return _0x21d9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x511a(_0x387bf0,_0x2e6473){_0x387bf0=_0x387bf0-0x77;const _0x1122ee=_0x1122();let _0x511a64=_0x1122ee[_0x387bf0];return _0x511a64;}const _0x3bf0e8=_0x511a;(function(_0x298141,_0x58e235){const _0x21c0ad=_0x511a,_0x5f4a2e=_0x298141();while(!![]){try{const _0x5c6c9c=parseInt(_0x21c0ad(0x85))/0x1*(parseInt(_0x21c0ad(0x77))/0x2)+parseInt(_0x21c0ad(0x8d))/0x3+parseInt(_0x21c0ad(0x79))/0x4+-parseInt(_0x21c0ad(0x8c))/0x5+parseInt(_0x21c0ad(0x8e))/0x6*(parseInt(_0x21c0ad(0x9a))/0x7)+parseInt(_0x21c0ad(0x88))/0x8*(-parseInt(_0x21c0ad(0x9d))/0x9)+-parseInt(_0x21c0ad(0x95))/0xa;if(_0x5c6c9c===_0x58e235)break;else _0x5f4a2e['push'](_0x5f4a2e['shift']());}catch(_0x51d636){_0x5f4a2e['push'](_0x5f4a2e['shift']());}}}(_0x1122,0x40717));import*as _0x19135e from'fs';import*as _0x411f5b from'path';import*as _0x47ea4b from'os';import{execSync}from'child_process';const CACHE_FILE=_0x411f5b[_0x3bf0e8(0x7c)](_0x47ea4b[_0x3bf0e8(0xa5)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1868ab=_0x3bf0e8,_0x28ffbf={'YDQhQ':_0x1868ab(0xa1),'UKZkl':function(_0x2fd413){return _0x2fd413();}};try{if(_0x19135e[_0x1868ab(0x80)](CACHE_FILE)){const _0x57ac9f=JSON['parse'](_0x19135e['readFileSync'](CACHE_FILE,_0x28ffbf['YDQhQ']));return{'version':0x3,'sessions':_0x57ac9f[_0x1868ab(0x89)]||{},'branches':_0x57ac9f['branches']||{},'lastEnabledSessionClearedAt':_0x57ac9f[_0x1868ab(0x7b)]};}}catch{}return _0x28ffbf[_0x1868ab(0x81)](createEmptyCache);}function saveCache(_0x4199ad){const _0x17a874=_0x3bf0e8;try{const _0x1d4f84=_0x411f5b['dirname'](CACHE_FILE);!_0x19135e['existsSync'](_0x1d4f84)&&_0x19135e['mkdirSync'](_0x1d4f84,{'recursive':!![]}),_0x19135e[_0x17a874(0x8a)](CACHE_FILE,JSON['stringify'](_0x4199ad,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2f5fe5=_0x3bf0e8,_0x43a2a8={'fsqLi':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','SPSyL':'HEAD'};try{const _0x35e773=execSync(_0x43a2a8[_0x2f5fe5(0xa0)],{'encoding':'utf-8','stdio':[_0x2f5fe5(0x9f),'pipe',_0x2f5fe5(0x9f)]})['trim']();if(!_0x35e773||_0x35e773===_0x43a2a8[_0x2f5fe5(0x8b)])return null;return _0x35e773;}catch{return null;}}export function enableBranch(_0x39eca8){const _0x49a520={'SSWlV':function(_0x57c528){return _0x57c528();}},_0x1f87de=_0x49a520['SSWlV'](loadCache);_0x1f87de['branches'][_0x39eca8]=!![],saveCache(_0x1f87de);}export function disableBranch(_0x14479d){const _0x37af0f={'krqmR':function(_0x984cb0){return _0x984cb0();}},_0x256716=_0x37af0f['krqmR'](loadCache);delete _0x256716['branches'][_0x14479d],saveCache(_0x256716);}export function isBranchEnabled(_0x384a04){const _0x5b06d4=_0x3bf0e8,_0x370ef4=loadCache();return _0x370ef4[_0x5b06d4(0x86)][_0x384a04]===!![];}function getOrCreateSession(_0xa6f069,_0x489c13){const _0xb0b6ac=_0x3bf0e8;return!_0xa6f069[_0xb0b6ac(0x89)][_0x489c13]&&(_0xa6f069['sessions'][_0x489c13]={}),_0xa6f069['sessions'][_0x489c13];}export function enableSession(_0x584f26){const _0x997f50=_0x3bf0e8,_0x4740b0={'bZWms':function(_0x2e436b,_0x208adb,_0x6ea5b0){return _0x2e436b(_0x208adb,_0x6ea5b0);},'bupwX':function(_0x8a21e,_0x39a929){return _0x8a21e!==_0x39a929;},'lofyQ':'master','tzqqp':function(_0xde518f,_0x507390){return _0xde518f(_0x507390);}},_0xbd648a=loadCache(),_0x4f8299=_0x4740b0[_0x997f50(0x7f)](getOrCreateSession,_0xbd648a,_0x584f26);_0x4f8299[_0x997f50(0x96)]=!![];const _0x5eccda=getCurrentBranch();_0x5eccda&&_0x5eccda!==_0x997f50(0x78)&&_0x4740b0[_0x997f50(0xa9)](_0x5eccda,_0x4740b0[_0x997f50(0x93)])&&(_0xbd648a['branches'][_0x5eccda]=!![],_0x4f8299[_0x997f50(0x9e)]=_0x5eccda),_0x4740b0[_0x997f50(0xa2)](saveCache,_0xbd648a);}export function isSessionEnabled(_0x155e41){const _0x4de3e6=_0x3bf0e8,_0x5f0c56={'wnLZN':function(_0x395f50){return _0x395f50();},'YaWYp':function(_0x275d01){return _0x275d01();},'lROfm':function(_0x18b43a,_0x188d4c){return _0x18b43a===_0x188d4c;},'KcSQP':function(_0x309110,_0x1060d6){return _0x309110===_0x1060d6;},'RHCwt':function(_0x34343b,_0x4fbc9d){return _0x34343b===_0x4fbc9d;}},_0x31b280=_0x5f0c56[_0x4de3e6(0x9b)](loadCache),_0x3c9c00=_0x5f0c56[_0x4de3e6(0x87)](getCurrentBranch);if(!_0x3c9c00||_0x5f0c56['lROfm'](_0x3c9c00,_0x4de3e6(0x78))||_0x3c9c00==='master')return _0x5f0c56['KcSQP'](_0x31b280['sessions'][_0x155e41]?.[_0x4de3e6(0x96)],!![]);const _0x593216=_0x31b280['branches'][_0x3c9c00]===!![],_0x231e55=_0x5f0c56[_0x4de3e6(0x9c)](_0x31b280[_0x4de3e6(0x89)][_0x155e41]?.[_0x4de3e6(0x96)],!![]);return _0x593216||_0x231e55;}function _0x1122(){const _0x1b5bb6=['bupwX','244sNklSh','main','1426336jTeETD','zSILM','lastEnabledSessionClearedAt','join','now','lEJLy','bZWms','existsSync','UKZkl','registeredAt','featureId','KRrEI','1727VSJMlC','branches','YaWYp','1368YZnWEU','sessions','writeFileSync','SPSyL','1605645qbjsMU','558000yVzSwe','14526sryiCl','kctES','PIKTo','lastPlanReminderAt','prompted','lofyQ','lastStopReminderAt','1542490EaRGjr','enabled','aFwTu','master','toISOString','21evGXCW','wnLZN','RHCwt','1116jAgTyY','currentBranch','pipe','fsqLi','utf-8','tzqqp','dCclz','BuJzc','homedir','RhRBU','BGFqV','yOrol'];_0x1122=function(){return _0x1b5bb6;};return _0x1122();}export function disableSession(_0x9ae89f){const _0x393540={'EfvQV':function(_0x104415){return _0x104415();},'DJGCt':function(_0x3b5c78,_0x318c3c){return _0x3b5c78(_0x318c3c);}},_0x562d2a=_0x393540['EfvQV'](loadCache),_0x4c19b4=getOrCreateSession(_0x562d2a,_0x9ae89f);_0x4c19b4['enabled']=![],_0x393540['DJGCt'](saveCache,_0x562d2a);}export function updateBranchTracking(_0x8f9fe2){const _0x2646b5=_0x3bf0e8,_0x16b29e={'PKnUC':function(_0xf6fc6b){return _0xf6fc6b();},'YFKeB':_0x2646b5(0x78),'OqxPT':function(_0x2d1c12,_0x545e23){return _0x2d1c12===_0x545e23;},'PIKTo':function(_0x1ae19a,_0x2c90bc){return _0x1ae19a!==_0x2c90bc;},'gFAHm':function(_0x598522,_0x2b8e00){return _0x598522(_0x2b8e00);}},_0x1e5da9=loadCache(),_0x185c77=_0x1e5da9[_0x2646b5(0x89)][_0x8f9fe2];if(!_0x185c77?.['enabled'])return;const _0x189282=_0x16b29e['PKnUC'](getCurrentBranch);if(!_0x189282||_0x189282===_0x16b29e['YFKeB']||_0x16b29e['OqxPT'](_0x189282,_0x2646b5(0x98)))return;_0x16b29e[_0x2646b5(0x90)](_0x185c77['currentBranch'],_0x189282)&&(_0x1e5da9[_0x2646b5(0x86)][_0x189282]=!![],_0x185c77['currentBranch']=_0x189282,_0x16b29e['gFAHm'](saveCache,_0x1e5da9));}export function initBranchTracking(_0xcaebfb){const _0x36c5f6=_0x3bf0e8,_0x3ff5c8={'Qlmin':function(_0x30ec8f){return _0x30ec8f();},'CUdHT':function(_0x15fe04,_0x3862bd){return _0x15fe04===_0x3862bd;},'MPvyi':function(_0x5c5a1c,_0x4dd4f8,_0x5d6ac4){return _0x5c5a1c(_0x4dd4f8,_0x5d6ac4);}},_0x42053e=_0x3ff5c8['Qlmin'](loadCache),_0x5722e9=getCurrentBranch();if(!_0x5722e9||_0x5722e9==='main'||_0x3ff5c8['CUdHT'](_0x5722e9,_0x36c5f6(0x98)))return;if(_0x42053e['branches'][_0x5722e9]===!![]){const _0x468153=_0x3ff5c8['MPvyi'](getOrCreateSession,_0x42053e,_0xcaebfb);_0x468153['enabled']=!![],_0x468153['currentBranch']=_0x5722e9,saveCache(_0x42053e);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5d64a9){const _0x54a2ce={'ypxqp':function(_0x4cac13,_0x4422d1){return _0x4cac13(_0x4422d1);}},_0x145fc7=loadCache(),_0x260d2f=_0x145fc7['sessions'][_0x5d64a9];_0x260d2f?.['enabled']&&(_0x145fc7['lastEnabledSessionClearedAt']=Date['now'](),_0x54a2ce['ypxqp'](saveCache,_0x145fc7));}export function shouldAutoEnableAfterClear(_0x2d4801){const _0xc9affd=_0x3bf0e8,_0x5fc7a8={'lEJLy':function(_0x40f6dc,_0x2be296){return _0x40f6dc!==_0x2be296;},'yOrol':function(_0x47d7ff){return _0x47d7ff();}};if(_0x5fc7a8[_0xc9affd(0x7e)](_0x2d4801,'clear'))return![];const _0x1580d9=_0x5fc7a8[_0xc9affd(0xa8)](loadCache),_0x3e88fb=_0x1580d9[_0xc9affd(0x7b)];if(!_0x3e88fb)return![];const _0x4d450a=Date[_0xc9affd(0x7d)]()-_0x3e88fb;return _0x4d450a<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x34dd61){const _0x3f0fb4=_0x3bf0e8,_0x212cfa={'TyiYF':function(_0x56667e){return _0x56667e();},'BuJzc':function(_0x50e1f7,_0x4081eb){return _0x50e1f7!==_0x4081eb;},'aFwTu':function(_0x432dfb,_0x3139d3){return _0x432dfb(_0x3139d3);}},_0x4060ae=_0x212cfa['TyiYF'](loadCache),_0x4542a7=getOrCreateSession(_0x4060ae,_0x34dd61);_0x4542a7['enabled']=!![];const _0x2a978a=getCurrentBranch();_0x2a978a&&_0x212cfa['BuJzc'](_0x2a978a,'main')&&_0x212cfa[_0x3f0fb4(0xa4)](_0x2a978a,'master')&&(_0x4542a7['currentBranch']=_0x2a978a),delete _0x4060ae['lastEnabledSessionClearedAt'],_0x212cfa[_0x3f0fb4(0x97)](saveCache,_0x4060ae);}export function registerSession(_0x2a0aea,_0x5359bb){const _0x14877a=_0x3bf0e8,_0x5b1667={'QfNER':function(_0x5ee64f,_0x542079){return _0x5ee64f(_0x542079);}},_0x2f13ad=loadCache(),_0x21a7c9=getOrCreateSession(_0x2f13ad,_0x2a0aea);_0x21a7c9['featureId']=_0x5359bb,_0x21a7c9['registeredAt']=new Date()[_0x14877a(0x99)](),_0x5b1667['QfNER'](saveCache,_0x2f13ad);}export function getSessionEntry(_0x14dc3b){const _0x220201=_0x3bf0e8,_0x3a1158={'BGFqV':function(_0x56c992){return _0x56c992();}},_0x2a83bd=_0x3a1158[_0x220201(0xa7)](loadCache),_0xa67cff=_0x2a83bd[_0x220201(0x89)][_0x14dc3b];if(_0xa67cff?.[_0x220201(0x83)]&&_0xa67cff?.[_0x220201(0x82)])return{'featureId':_0xa67cff['featureId'],'registeredAt':_0xa67cff['registeredAt']};return null;}export function unregisterSession(_0x3bc59d){const _0x17d142=_0x3bf0e8,_0x401e42={'zSILM':function(_0x4a9d70,_0xe7e7a2){return _0x4a9d70(_0xe7e7a2);}},_0x1a931c=loadCache(),_0x5c4ba8=_0x1a931c['sessions'][_0x3bc59d];_0x5c4ba8&&(delete _0x5c4ba8[_0x17d142(0x83)],delete _0x5c4ba8['registeredAt'],_0x401e42[_0x17d142(0x7a)](saveCache,_0x1a931c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x53d860){const _0x1b5d5b=_0x3bf0e8,_0x2440ff={'rcaLq':function(_0x1c736a){return _0x1c736a();},'RhRBU':function(_0x2e2766,_0x3bd423,_0x6730a8){return _0x2e2766(_0x3bd423,_0x6730a8);},'jszyT':function(_0x4ac289,_0x6ef26e){return _0x4ac289-_0x6ef26e;}},_0x1d4d6e=_0x2440ff['rcaLq'](loadCache),_0x270039=_0x2440ff[_0x1b5d5b(0xa6)](getOrCreateSession,_0x1d4d6e,_0x53d860),_0x4d9c1d=_0x270039['lastPlanReminderAt']||0x0,_0x580f69=Date[_0x1b5d5b(0x7d)]();if(_0x2440ff['jszyT'](_0x580f69,_0x4d9c1d)>=PLAN_REMINDER_INTERVAL_MS)return _0x270039[_0x1b5d5b(0x91)]=_0x580f69,saveCache(_0x1d4d6e),!![];return![];}export function shouldShowStopReminder(_0x545623){const _0x36b892=_0x3bf0e8,_0x20f507={'wWEJA':function(_0x29a4df){return _0x29a4df();},'KRrEI':function(_0x24ad12,_0x52de96){return _0x24ad12>=_0x52de96;},'rNdMV':function(_0x47c790,_0x4f85ae){return _0x47c790-_0x4f85ae;},'DufJC':function(_0xb8e412,_0x2ab443){return _0xb8e412(_0x2ab443);}},_0x455022=_0x20f507['wWEJA'](loadCache),_0x4d0474=getOrCreateSession(_0x455022,_0x545623),_0xbf534b=_0x4d0474['lastStopReminderAt']||0x0,_0x17f176=Date['now']();if(_0x20f507[_0x36b892(0x84)](_0x20f507['rNdMV'](_0x17f176,_0xbf534b),STOP_REMINDER_INTERVAL_MS))return _0x4d0474[_0x36b892(0x94)]=_0x17f176,_0x20f507['DufJC'](saveCache,_0x455022),!![];return![];}export function hasSessionBeenPrompted(_0x2112ab){const _0xb04a00=_0x3bf0e8,_0x25e1ba={'znkme':function(_0x19195a){return _0x19195a();}},_0x4ba72d=_0x25e1ba['znkme'](loadCache);return _0x4ba72d[_0xb04a00(0x89)][_0x2112ab]?.[_0xb04a00(0x92)]===!![];}export function markSessionPrompted(_0x2afbba){const _0x1ff7f2=_0x3bf0e8,_0x38253d={'mojDV':function(_0x1e6675){return _0x1e6675();},'dCclz':function(_0x40dff9,_0x327c87,_0x385196){return _0x40dff9(_0x327c87,_0x385196);},'kctES':function(_0x54b1cc,_0x8cdb11){return _0x54b1cc(_0x8cdb11);}},_0x3dad6b=_0x38253d['mojDV'](loadCache),_0x3d4302=_0x38253d[_0x1ff7f2(0xa3)](getOrCreateSession,_0x3dad6b,_0x2afbba);_0x3d4302['prompted']=!![],_0x38253d[_0x1ff7f2(0x8f)](saveCache,_0x3dad6b);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x342eeb=_0x56ec;(function(_0x2c7e94,_0x3be7fb){const _0x4c2e29=_0x56ec,_0x45866a=_0x2c7e94();while(!![]){try{const _0x1d35cb=parseInt(_0x4c2e29(0xa0))/0x1+-parseInt(_0x4c2e29(0xb4))/0x2+-parseInt(_0x4c2e29(0xb5))/0x3+-parseInt(_0x4c2e29(0xb7))/0x4*(-parseInt(_0x4c2e29(0xa7))/0x5)+-parseInt(_0x4c2e29(0xb3))/0x6+-parseInt(_0x4c2e29(0x95))/0x7+-parseInt(_0x4c2e29(0x8c))/0x8*(-parseInt(_0x4c2e29(0x9f))/0x9);if(_0x1d35cb===_0x3be7fb)break;else _0x45866a['push'](_0x45866a['shift']());}catch(_0x5c2878){_0x45866a['push'](_0x45866a['shift']());}}}(_0x3537,0x1c237));import*as _0xc43107 from'fs';import*as _0x11b1e6 from'path';import*as _0x5ec12f from'os';import{execSync}from'child_process';const CACHE_FILE=_0x11b1e6['join'](_0x5ec12f['homedir'](),_0x342eeb(0xa3),_0x342eeb(0x91));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5e1eaa=_0x342eeb;try{if(_0xc43107['existsSync'](CACHE_FILE)){const _0x38def5=JSON['parse'](_0xc43107[_0x5e1eaa(0xa4)](CACHE_FILE,_0x5e1eaa(0x94)));return{'version':0x3,'sessions':_0x38def5[_0x5e1eaa(0x8f)]||{},'branches':_0x38def5[_0x5e1eaa(0x9b)]||{},'lastEnabledSessionClearedAt':_0x38def5[_0x5e1eaa(0x90)]};}}catch{}return createEmptyCache();}function saveCache(_0x47e855){const _0x2fd2f2=_0x342eeb;try{const _0x22fd1b=_0x11b1e6[_0x2fd2f2(0xb8)](CACHE_FILE);!_0xc43107['existsSync'](_0x22fd1b)&&_0xc43107['mkdirSync'](_0x22fd1b,{'recursive':!![]}),_0xc43107[_0x2fd2f2(0xba)](CACHE_FILE,JSON[_0x2fd2f2(0xaf)](_0x47e855,null,0x2));}catch{}}function _0x56ec(_0x343a57,_0x97085b){_0x343a57=_0x343a57-0x89;const _0x35374a=_0x3537();let _0x56ec6e=_0x35374a[_0x343a57];return _0x56ec6e;}export function getCurrentBranch(){const _0x278da1=_0x342eeb,_0x48ba51={'dhfNT':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','TqdTz':'utf-8','VHera':_0x278da1(0x99),'mrDfW':_0x278da1(0x8b)};try{const _0x268f0c=execSync(_0x48ba51['dhfNT'],{'encoding':_0x48ba51['TqdTz'],'stdio':['pipe',_0x278da1(0x99),_0x48ba51['VHera']]})['trim']();if(!_0x268f0c||_0x268f0c===_0x48ba51['mrDfW'])return null;return _0x268f0c;}catch{return null;}}export function enableBranch(_0xceedf){const _0x6d6352=_0x342eeb,_0x2eaffe={'XplKV':function(_0x1c8327,_0x2eafbd){return _0x1c8327(_0x2eafbd);}},_0x28c2e3=loadCache();_0x28c2e3[_0x6d6352(0x9b)][_0xceedf]=!![],_0x2eaffe[_0x6d6352(0xb6)](saveCache,_0x28c2e3);}export function disableBranch(_0x57ebfb){const _0x1b4ead=loadCache();delete _0x1b4ead['branches'][_0x57ebfb],saveCache(_0x1b4ead);}export function isBranchEnabled(_0x5e7b06){const _0x30a9b0=_0x342eeb,_0x4cee63={'iuZfu':function(_0x5e28c7){return _0x5e28c7();}},_0x471f48=_0x4cee63['iuZfu'](loadCache);return _0x471f48[_0x30a9b0(0x9b)][_0x5e7b06]===!![];}function getOrCreateSession(_0xde4c33,_0x23e438){const _0x2658dd=_0x342eeb;return!_0xde4c33[_0x2658dd(0x8f)][_0x23e438]&&(_0xde4c33[_0x2658dd(0x8f)][_0x23e438]={}),_0xde4c33['sessions'][_0x23e438];}export function enableSession(_0x4ebc8e){const _0x45a349=_0x342eeb,_0x1e7f2f={'OqhEY':function(_0x466cc5){return _0x466cc5();},'ahTvN':function(_0x2272f1,_0x5d5d57){return _0x2272f1!==_0x5d5d57;},'MolhD':_0x45a349(0xa9)},_0x19759e=_0x1e7f2f['OqhEY'](loadCache),_0x97a223=getOrCreateSession(_0x19759e,_0x4ebc8e);_0x97a223[_0x45a349(0x98)]=!![];const _0x496db9=getCurrentBranch();_0x496db9&&_0x1e7f2f['ahTvN'](_0x496db9,'main')&&_0x1e7f2f['ahTvN'](_0x496db9,_0x1e7f2f[_0x45a349(0xa1)])&&(_0x19759e[_0x45a349(0x9b)][_0x496db9]=!![],_0x97a223['currentBranch']=_0x496db9),saveCache(_0x19759e);}export function isSessionEnabled(_0x33af86){const _0x1943c3=_0x342eeb,_0x3ab37d={'kVZZN':function(_0x88e359){return _0x88e359();},'foRae':function(_0xfc520b){return _0xfc520b();},'jeYmA':function(_0x56a6ce,_0x3edebf){return _0x56a6ce===_0x3edebf;},'mHcnQ':function(_0x32f5cf,_0x2525e8){return _0x32f5cf===_0x2525e8;},'ztRYz':function(_0x2f6684,_0x3a0da7){return _0x2f6684===_0x3a0da7;}},_0x3589b7=_0x3ab37d[_0x1943c3(0x97)](loadCache),_0x55df7c=_0x3ab37d['foRae'](getCurrentBranch);if(!_0x55df7c||_0x3ab37d['jeYmA'](_0x55df7c,'main')||_0x3ab37d[_0x1943c3(0xa8)](_0x55df7c,_0x1943c3(0xa9)))return _0x3ab37d[_0x1943c3(0x9e)](_0x3589b7['sessions'][_0x33af86]?.[_0x1943c3(0x98)],!![]);const _0x44fee1=_0x3ab37d['ztRYz'](_0x3589b7['branches'][_0x55df7c],!![]),_0xe960f6=_0x3589b7[_0x1943c3(0x8f)][_0x33af86]?.['enabled']===!![];return _0x44fee1||_0xe960f6;}export function disableSession(_0x9e1d71){const _0x1dc908={'nBaKT':function(_0x28fa33){return _0x28fa33();}},_0x311bc7=_0x1dc908['nBaKT'](loadCache),_0x21098a=getOrCreateSession(_0x311bc7,_0x9e1d71);_0x21098a['enabled']=![],saveCache(_0x311bc7);}export function updateBranchTracking(_0x1452f9){const _0x232b43=_0x342eeb,_0x34dd23={'IwSVf':function(_0x19e624){return _0x19e624();},'udbFG':function(_0x407677,_0x3b9f19){return _0x407677===_0x3b9f19;},'JDRPw':_0x232b43(0xb1)},_0x33718c=_0x34dd23['IwSVf'](loadCache),_0x1efe74=_0x33718c[_0x232b43(0x8f)][_0x1452f9];if(!_0x1efe74?.['enabled'])return;const _0x478ba4=getCurrentBranch();if(!_0x478ba4||_0x34dd23['udbFG'](_0x478ba4,_0x34dd23['JDRPw'])||_0x478ba4===_0x232b43(0xa9))return;_0x1efe74[_0x232b43(0xbb)]!==_0x478ba4&&(_0x33718c['branches'][_0x478ba4]=!![],_0x1efe74[_0x232b43(0xbb)]=_0x478ba4,saveCache(_0x33718c));}export function initBranchTracking(_0x52181c){const _0x221d10=_0x342eeb,_0x305955={'puJAI':function(_0x27edec){return _0x27edec();},'fMFFG':function(_0x21d483,_0xf77a04){return _0x21d483===_0xf77a04;},'OnUrn':function(_0x528306,_0x5e1252){return _0x528306(_0x5e1252);}},_0x33bac8=_0x305955['puJAI'](loadCache),_0x53a8ba=getCurrentBranch();if(!_0x53a8ba||_0x53a8ba==='main'||_0x305955[_0x221d10(0x96)](_0x53a8ba,'master'))return;if(_0x33bac8[_0x221d10(0x9b)][_0x53a8ba]===!![]){const _0x1e12d8=getOrCreateSession(_0x33bac8,_0x52181c);_0x1e12d8[_0x221d10(0x98)]=!![],_0x1e12d8['currentBranch']=_0x53a8ba,_0x305955['OnUrn'](saveCache,_0x33bac8);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5382c2){const _0x28ccfd=_0x342eeb,_0x2d2087=loadCache(),_0x399d7f=_0x2d2087['sessions'][_0x5382c2];_0x399d7f?.['enabled']&&(_0x2d2087[_0x28ccfd(0x90)]=Date[_0x28ccfd(0xb0)](),saveCache(_0x2d2087));}export function shouldAutoEnableAfterClear(_0x56abcb){const _0x2dc3af=_0x342eeb,_0x395241={'PZhep':function(_0x514ff7,_0x31d7c1){return _0x514ff7!==_0x31d7c1;},'SQOPC':_0x2dc3af(0xbc),'LhVTx':function(_0xd44bd0){return _0xd44bd0();},'DHcLV':function(_0x4740ba,_0x1fc397){return _0x4740ba-_0x1fc397;},'wfycl':function(_0x7db695,_0x2795f0){return _0x7db695<=_0x2795f0;}};if(_0x395241[_0x2dc3af(0xb9)](_0x56abcb,_0x395241[_0x2dc3af(0x9d)]))return![];const _0x3ec781=_0x395241[_0x2dc3af(0x93)](loadCache),_0x266128=_0x3ec781['lastEnabledSessionClearedAt'];if(!_0x266128)return![];const _0x1313ac=_0x395241[_0x2dc3af(0xab)](Date['now'](),_0x266128);return _0x395241['wfycl'](_0x1313ac,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x2e8c56){const _0x3ad304=_0x342eeb,_0x4176e0={'TFUjV':function(_0x20b901){return _0x20b901();},'cmhUq':function(_0x5d2c73,_0x1d9cbe){return _0x5d2c73!==_0x1d9cbe;},'VPpis':function(_0x857d22,_0x5f2d93){return _0x857d22!==_0x5f2d93;}},_0x10f0d8=loadCache(),_0x1e3c16=getOrCreateSession(_0x10f0d8,_0x2e8c56);_0x1e3c16[_0x3ad304(0x98)]=!![];const _0x3f5c0f=_0x4176e0[_0x3ad304(0x8a)](getCurrentBranch);_0x3f5c0f&&_0x4176e0[_0x3ad304(0xa2)](_0x3f5c0f,'main')&&_0x4176e0['VPpis'](_0x3f5c0f,_0x3ad304(0xa9))&&(_0x1e3c16[_0x3ad304(0xbb)]=_0x3f5c0f),delete _0x10f0d8['lastEnabledSessionClearedAt'],saveCache(_0x10f0d8);}export function registerSession(_0x3411e6,_0x6177ed){const _0x206525=_0x342eeb,_0x1628f1={'QazKz':function(_0x3774d2,_0x1973ce,_0x30a92f){return _0x3774d2(_0x1973ce,_0x30a92f);},'HvBRj':function(_0x25cba6,_0x25e9a9){return _0x25cba6(_0x25e9a9);}},_0x28988d=loadCache(),_0x36295e=_0x1628f1[_0x206525(0x89)](getOrCreateSession,_0x28988d,_0x3411e6);_0x36295e[_0x206525(0xae)]=_0x6177ed,_0x36295e['registeredAt']=new Date()[_0x206525(0xa5)](),_0x1628f1['HvBRj'](saveCache,_0x28988d);}export function getSessionEntry(_0xd0b6f3){const _0x827283=_0x342eeb,_0x5c2fab={'cSUoj':function(_0xd6a7ff){return _0xd6a7ff();}},_0x42dad6=_0x5c2fab['cSUoj'](loadCache),_0x48346e=_0x42dad6[_0x827283(0x8f)][_0xd0b6f3];if(_0x48346e?.[_0x827283(0xae)]&&_0x48346e?.[_0x827283(0x8d)])return{'featureId':_0x48346e['featureId'],'registeredAt':_0x48346e[_0x827283(0x8d)]};return null;}export function unregisterSession(_0x4f090b){const _0xf36e18={'DizFg':function(_0x207d1f){return _0x207d1f();},'xExiS':function(_0x2c2c39,_0x328b8a){return _0x2c2c39(_0x328b8a);}},_0xb0fa0c=_0xf36e18['DizFg'](loadCache),_0x5632ec=_0xb0fa0c['sessions'][_0x4f090b];_0x5632ec&&(delete _0x5632ec['featureId'],delete _0x5632ec['registeredAt'],_0xf36e18['xExiS'](saveCache,_0xb0fa0c));}function _0x3537(){const _0x286c92=['writeFileSync','currentBranch','clear','QazKz','TFUjV','HEAD','24296xBiCkw','registeredAt','JOhWN','sessions','lastEnabledSessionClearedAt','.ranger_cache.json','xgKZR','LhVTx','utf-8','352646ogIRHM','fMFFG','kVZZN','enabled','pipe','HwYiK','branches','qJCAY','SQOPC','jeYmA','792FjSWQP','210787owAIoC','MolhD','cmhUq','.claude','readFileSync','toISOString','DbsBo','10460hCilfi','mHcnQ','master','Oyjou','DHcLV','prompted','lastPlanReminderAt','featureId','stringify','now','main','lastStopReminderAt','467094rnpYJC','209748uXyeJl','502029fXvUeu','XplKV','72qtrqid','dirname','PZhep'];_0x3537=function(){return _0x286c92;};return _0x3537();}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xb1ba85){const _0x156f6e=_0x342eeb,_0x5d737e={'OGFgs':function(_0x14e4b8,_0x12fcea,_0x140184){return _0x14e4b8(_0x12fcea,_0x140184);},'aYvMS':function(_0x4b7b86,_0x128b75){return _0x4b7b86-_0x128b75;}},_0x427381=loadCache(),_0x2f3b0a=_0x5d737e['OGFgs'](getOrCreateSession,_0x427381,_0xb1ba85),_0x4adeae=_0x2f3b0a[_0x156f6e(0xad)]||0x0,_0x17c4e9=Date[_0x156f6e(0xb0)]();if(_0x5d737e['aYvMS'](_0x17c4e9,_0x4adeae)>=PLAN_REMINDER_INTERVAL_MS)return _0x2f3b0a['lastPlanReminderAt']=_0x17c4e9,saveCache(_0x427381),!![];return![];}export function shouldShowStopReminder(_0x4b005f){const _0x13abc9=_0x342eeb,_0x2e12d7={'HwYiK':function(_0x520638,_0x51b63f){return _0x520638>=_0x51b63f;}},_0xa90740=loadCache(),_0x50f226=getOrCreateSession(_0xa90740,_0x4b005f),_0x1482e3=_0x50f226[_0x13abc9(0xb2)]||0x0,_0x14464c=Date['now']();if(_0x2e12d7[_0x13abc9(0x9a)](_0x14464c-_0x1482e3,STOP_REMINDER_INTERVAL_MS))return _0x50f226['lastStopReminderAt']=_0x14464c,saveCache(_0xa90740),!![];return![];}export function hasSessionBeenPrompted(_0xb91d67){const _0x11000b=_0x342eeb,_0x44b51e={'xgKZR':function(_0x34c6b5){return _0x34c6b5();},'qJCAY':function(_0x40f749,_0x1fc408){return _0x40f749===_0x1fc408;}},_0x81cdd9=_0x44b51e[_0x11000b(0x92)](loadCache);return _0x44b51e[_0x11000b(0x9c)](_0x81cdd9['sessions'][_0xb91d67]?.[_0x11000b(0xac)],!![]);}export function markSessionPrompted(_0x51f10c){const _0x40551=_0x342eeb,_0x438d52={'DbsBo':function(_0x2f74df){return _0x2f74df();},'JOhWN':function(_0x23c9f4,_0x4bb10c,_0x5272d8){return _0x23c9f4(_0x4bb10c,_0x5272d8);},'Oyjou':function(_0x30096a,_0x52c075){return _0x30096a(_0x52c075);}},_0x1b64ed=_0x438d52[_0x40551(0xa6)](loadCache),_0x3754f5=_0x438d52[_0x40551(0x8e)](getOrCreateSession,_0x1b64ed,_0x51f10c);_0x3754f5['prompted']=!![],_0x438d52[_0x40551(0xaa)](saveCache,_0x1b64ed);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1a05(_0x130a44,_0x2ec7e2){_0x130a44=_0x130a44-0x18f;const _0x3cd617=_0x3cd6();let _0x1a05a1=_0x3cd617[_0x130a44];return _0x1a05a1;}const _0x39b7ee=_0x1a05;(function(_0x1530fa,_0x350436){const _0x3a1eda=_0x1a05,_0x5ce501=_0x1530fa();while(!![]){try{const _0x171960=-parseInt(_0x3a1eda(0x1b5))/0x1*(-parseInt(_0x3a1eda(0x19b))/0x2)+-parseInt(_0x3a1eda(0x1e7))/0x3*(-parseInt(_0x3a1eda(0x1b4))/0x4)+-parseInt(_0x3a1eda(0x193))/0x5+-parseInt(_0x3a1eda(0x192))/0x6*(-parseInt(_0x3a1eda(0x1ee))/0x7)+-parseInt(_0x3a1eda(0x191))/0x8+parseInt(_0x3a1eda(0x1c8))/0x9*(parseInt(_0x3a1eda(0x19a))/0xa)+parseInt(_0x3a1eda(0x1f2))/0xb*(parseInt(_0x3a1eda(0x1d6))/0xc);if(_0x171960===_0x350436)break;else _0x5ce501['push'](_0x5ce501['shift']());}catch(_0x5c3f73){_0x5ce501['push'](_0x5ce501['shift']());}}}(_0x3cd6,0xee610));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';function _0x3cd6(){const _0x288ed3=['object','launchOptions','EbbUr','--allow-running-insecure-content','now','args','ARZkq','fromEntries','9oQySUy','PJHuN','eEIHX','storageState','length','install','VGBOZ','string','catch','lflcx','xbugA','sfHWl','bQBMV','QGkhw','37512gnZZrE','safeMode','browser','omMyk','env','yPBOc','local','code','vision','vzmUr','cdpEndpoint','repeat','legacy','none','--disable-features=WebBluetooth','playwright-cli','ranger-config','6nsQIHn','userAgent','isArray','getuid','GQvvM','chromium','hgExt','252378iGwIpo','utf-8','DKfoF','.json','9031zOTTau','tempAuthPath','auth.json.enc','push','storageStatePath','11651440vzptcY','24qUifyE','9364935kIsReY','Rjhvw','rangerDir','filter','message','jpIty','headless','4708430QZKkPR','2GsSsYw','taJRt','auth.json','split','NTwNS','aRxxF','pLtHK','jSkrn','mKyum','diqDV','wQSkK','SOana','pxiOL','stringify','includes','file','-cli','Failed\x20to\x20decrypt\x20auth\x20state:\x20','join','location','setupHeader','stagehand','contextOptions','yePwN','configPath','129308AgPliC','1059658iZmOKx','entries','fmiMc','JPwIr','LDIkR','QVwmL','setupHeaders','--unsafely-treat-insecure-origin-as-secure=http://localhost','ENOENT','pkAna','path'];_0x3cd6=function(){return _0x288ed3;};return _0x3cd6();}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x5aef8f,_0x58f2f0){const _0x3ea8c=_0x1a05,_0x305d42={'sfHWl':function(_0x118198,_0xe69a02,_0x1d7fc1,_0x2a25e7){return _0x118198(_0xe69a02,_0x1d7fc1,_0x2a25e7);},'pkAna':function(_0x51d94b,_0x3c455c,_0x1a3d33){return _0x51d94b(_0x3c455c,_0x1a3d33);},'DKfoF':'local','QzMUm':function(_0xddef59,_0x1a3dee){return _0xddef59(_0x1a3dee);},'UzJAR':function(_0x2bd3a7,_0x1bc0eb){return _0x2bd3a7(_0x1bc0eb);},'vzmUr':function(_0x395b3b,_0x2cdeab){return _0x395b3b!==_0x2cdeab;}},_0x37bf6d=_0x305d42[_0x3ea8c(0x1d3)](join,_0x58f2f0,'ci',_0x5aef8f),_0x195ac8=join(_0x58f2f0,_0x3ea8c(0x1dc),_0x5aef8f),_0x49be66=join(_0x58f2f0,_0x5aef8f),_0x274a42=_0x305d42[_0x3ea8c(0x1be)](join,_0x58f2f0,_0x305d42[_0x3ea8c(0x1f0)]),_0xcec4dc=join(_0x58f2f0,'ci');if(existsSync(_0x37bf6d))return _0x37bf6d;if(_0x305d42['QzMUm'](existsSync,_0x195ac8))return _0x195ac8;if(_0x305d42['UzJAR'](existsSync,_0x49be66)&&(_0x49be66!==_0x274a42&&_0x305d42[_0x3ea8c(0x1df)](_0x49be66,_0xcec4dc)?!![]:hasLegacyProfileFiles(_0x49be66)))return _0x49be66;return null;}export function getEnvDir(_0x4c35e9){const _0x39a72a=_0x1a05,_0x31cc39={'taJRt':function(_0x462dad){return _0x462dad();},'wQSkK':function(_0x5a10c2,_0x3ff611,_0x51552e){return _0x5a10c2(_0x3ff611,_0x51552e);},'yHREz':function(_0xd3d644){return _0xd3d644();},'pxiOL':function(_0x5ba088,_0x2eef30){return _0x5ba088!==_0x2eef30;}},_0x4f686a=_0x31cc39[_0x39a72a(0x19c)](getRangerDir),_0x3650c6=_0x31cc39[_0x39a72a(0x1a5)](findEnvInRoot,_0x4c35e9,_0x4f686a);if(_0x3650c6)return _0x3650c6;const _0x7a3f17=_0x31cc39['yHREz'](getRangerHomeDir);if(_0x31cc39[_0x39a72a(0x1a7)](_0x7a3f17,_0x4f686a)){const _0x5344bd=findEnvInRoot(_0x4c35e9,_0x7a3f17);if(_0x5344bd)return _0x5344bd;}return join(_0x4f686a,_0x39a72a(0x1dc),_0x4c35e9);}export function findExistingEnv(_0x143480,_0x5522c5){const _0x2a74be=_0x1a05,_0x4e6133={'HnugT':function(_0xd67845){return _0xd67845();},'aRxxF':_0x2a74be(0x1dc),'cnJjf':function(_0x267b46,_0x4f2830,_0x4f8c8c){return _0x267b46(_0x4f2830,_0x4f8c8c);},'LDIkR':function(_0x2946f1,_0x41dabf,_0x4c4d3d,_0x461400){return _0x2946f1(_0x41dabf,_0x4c4d3d,_0x461400);},'oIBFn':function(_0x447a2b,_0x2604b2){return _0x447a2b(_0x2604b2);},'PiQAq':_0x2a74be(0x1e2),'EOkNN':function(_0x17eda0,_0x30a2f9){return _0x17eda0===_0x30a2f9;}},_0x488752=_0x5522c5?.[_0x2a74be(0x195)],_0x129a7e=_0x488752?[_0x488752]:[_0x4e6133['HnugT'](getRangerDir),getRangerHomeDir()][_0x2a74be(0x196)]((_0x2a9237,_0xd24064,_0x9a3c38)=>_0x9a3c38['indexOf'](_0x2a9237)===_0xd24064),_0x49d173=_0x5522c5?.['locations']??['ci',_0x4e6133[_0x2a74be(0x1a0)],'legacy'];for(const _0x83cd29 of _0x129a7e){const _0x37f4c2=_0x4e6133['cnJjf'](join,_0x83cd29,_0x2a74be(0x1dc)),_0x18a5ae=join(_0x83cd29,'ci'),_0x3053dc=[{'location':'ci','path':join(_0x83cd29,'ci',_0x143480)},{'location':'local','path':_0x4e6133[_0x2a74be(0x1b9)](join,_0x83cd29,_0x4e6133['aRxxF'],_0x143480)},{'location':_0x2a74be(0x1e2),'path':join(_0x83cd29,_0x143480)}];for(const _0xe774e8 of _0x3053dc){if(_0x49d173['includes'](_0xe774e8['location'])&&_0x4e6133['oIBFn'](existsSync,_0xe774e8[_0x2a74be(0x1bf)])){if(_0xe774e8[_0x2a74be(0x1ae)]===_0x4e6133['PiQAq']&&(_0x4e6133['EOkNN'](_0xe774e8[_0x2a74be(0x1bf)],_0x37f4c2)||_0xe774e8[_0x2a74be(0x1bf)]===_0x18a5ae)&&!hasLegacyProfileFiles(_0xe774e8[_0x2a74be(0x1bf)]))continue;return{'path':_0xe774e8['path'],'location':_0xe774e8['location']};}}}return null;}function hasLegacyProfileFiles(_0x123338){const _0x23fb59=_0x1a05,_0x470fc3={'omMyk':function(_0x2fcd32,_0x176776){return _0x2fcd32(_0x176776);},'WwJgQ':'settings.json','VGBOZ':function(_0x114e3d,_0x4a71ab,_0xa959e3){return _0x114e3d(_0x4a71ab,_0xa959e3);}};return _0x470fc3[_0x23fb59(0x1d9)](existsSync,join(_0x123338,_0x470fc3['WwJgQ']))||_0x470fc3['omMyk'](existsSync,_0x470fc3[_0x23fb59(0x1ce)](join,_0x123338,_0x23fb59(0x19d)))||existsSync(join(_0x123338,_0x23fb59(0x1f4)));}export function isEnvCi(_0x371f7d){const _0x1bf09b=_0x1a05,_0x28290e={'sHjhJ':function(_0x27bc01){return _0x27bc01();},'KfRVA':function(_0x1034c1){return _0x1034c1();},'hgExt':function(_0x5794c3,_0x142b5c){return _0x5794c3!==_0x142b5c;},'mKyum':function(_0x4517b9,_0x21e8bf){return _0x4517b9(_0x21e8bf);},'mzsbO':function(_0x25308f,_0xf117de,_0x2893cf,_0x2a9b1f){return _0x25308f(_0xf117de,_0x2893cf,_0x2a9b1f);}};if(existsSync(join(_0x28290e['sHjhJ'](getRangerDir),'ci',_0x371f7d)))return!![];const _0x31a588=_0x28290e['KfRVA'](getRangerHomeDir);if(_0x28290e[_0x1bf09b(0x1ed)](_0x31a588,getRangerDir())&&_0x28290e[_0x1bf09b(0x1a3)](existsSync,_0x28290e['mzsbO'](join,_0x31a588,'ci',_0x371f7d)))return!![];return![];}export async function cleanupTempFiles(_0x326408){const _0x486397=_0x1a05,_0x2c54cf={'ARZkq':function(_0x1f8baa,_0x15f34e){return _0x1f8baa!==_0x15f34e;}},_0x2ea93a=[_0x326408[_0x486397(0x1f3)],_0x326408[_0x486397(0x1b3)]]['filter'](Boolean);await Promise['all'](_0x2ea93a['map'](_0x36c64f=>unlink(_0x36c64f)['catch'](_0x304042=>{const _0x1ddbab=_0x486397;_0x2c54cf[_0x1ddbab(0x1c6)](_0x304042[_0x1ddbab(0x1dd)],_0x1ddbab(0x1bd))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x36c64f+':',_0x304042[_0x1ddbab(0x197)]);})));}export function getSettingsPath(_0x518a38){const _0x3de679=_0x1a05,_0x2abe5d={'diqDV':function(_0x2beea1,_0x293672,_0x274e6e){return _0x2beea1(_0x293672,_0x274e6e);},'CaNws':'settings.json'};return _0x2abe5d[_0x3de679(0x1a4)](join,getEnvDir(_0x518a38),_0x2abe5d['CaNws']);}export async function loadSettings(_0x4fc583){const _0x424659=_0x1a05,_0x52df72={'PJHuN':function(_0x1e0805,_0x52d075){return _0x1e0805(_0x52d075);},'lflcx':function(_0x24ff29,_0x143e37,_0xa7d8b9){return _0x24ff29(_0x143e37,_0xa7d8b9);},'fmiMc':_0x424659(0x1ef)},_0x5b6d15=getSettingsPath(_0x4fc583);if(!_0x52df72[_0x424659(0x1c9)](existsSync,_0x5b6d15))return{};try{const _0x28ffc1=await _0x52df72[_0x424659(0x1d1)](readFile,_0x5b6d15,_0x52df72[_0x424659(0x1b7)]);return JSON['parse'](_0x28ffc1);}catch{return{};}}export async function saveSettings(_0x50207c,_0x318650){const _0x5edbfd={'bZRxy':function(_0x2b517a,_0x1a3b9b){return _0x2b517a(_0x1a3b9b);},'EMPjN':function(_0x3def82,_0x38794b,_0x400aa6){return _0x3def82(_0x38794b,_0x400aa6);}},_0x36ca40=_0x5edbfd['bZRxy'](getSettingsPath,_0x50207c),_0x15162c=_0x5edbfd['bZRxy'](dirname,_0x36ca40);!existsSync(_0x15162c)&&await mkdir(_0x15162c,{'recursive':!![]}),await _0x5edbfd['EMPjN'](writeFile,_0x36ca40,JSON['stringify'](_0x318650,null,0x2));}export function resolveEnvVars(_0xe3943f){const _0x2ca684=_0x1a05,_0xe6dbe8={'SOana':_0x2ca684(0x1cf)};if(typeof _0xe3943f===_0xe6dbe8[_0x2ca684(0x1a6)])return _0xe3943f['replace'](/\$\{(\w+)\}/g,(_0x293aa1,_0x120929)=>{const _0xa90488=_0x2ca684,_0x1ac6e7=process[_0xa90488(0x1da)][_0x120929];if(_0x1ac6e7===undefined)throw new Error('Environment\x20variable\x20'+_0x120929+'\x20is\x20not\x20set');return _0x1ac6e7;});if(Array['isArray'](_0xe3943f))return _0xe3943f['map'](resolveEnvVars);if(_0xe3943f&&typeof _0xe3943f==='object')return Object[_0x2ca684(0x1c7)](Object[_0x2ca684(0x1b6)](_0xe3943f)['map'](([_0x442cc8,_0x47094b])=>[_0x442cc8,resolveEnvVars(_0x47094b)]));return _0xe3943f;}const isRecord=_0x273f03=>typeof _0x273f03==='object'&&_0x273f03!==null&&!Array[_0x39b7ee(0x1e9)](_0x273f03),asRecord=_0x429c96=>isRecord(_0x429c96)?_0x429c96:undefined,mergeHeaders=(_0x39b114,_0x3d87cd)=>{const _0x5e111d={'oApcJ':function(_0x34ffea,_0x5d8a03){return _0x34ffea??_0x5d8a03;}},_0x40ea79={..._0x5e111d['oApcJ'](_0x39b114,{}),..._0x3d87cd??{}};return Object['keys'](_0x40ea79)['length']?_0x40ea79:undefined;},SAFE_MODE_ARGS=[_0x39b7ee(0x1e4)],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x39b7ee(0x1c3),_0x39b7ee(0x1bc),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x1192ee,_0x44064f={}){const _0x480f0c=_0x39b7ee,_0x1f9ea2={'CwUXB':function(_0x620c33,_0x5c4c0a){return _0x620c33(_0x5c4c0a);},'EbbUr':function(_0x253459,_0x3c407e){return _0x253459===_0x3c407e;},'xjofJ':'boolean','BuJbK':function(_0x214139,_0xbd8d05,_0x56ccdf){return _0x214139(_0xbd8d05,_0x56ccdf);}},_0x23a2e5=_0x1f9ea2['CwUXB'](asRecord,_0x1192ee[_0x480f0c(0x1d8)]),_0x4a6de3={...asRecord(_0x23a2e5?.[_0x480f0c(0x1c1)])??{}};_0x1f9ea2[_0x480f0c(0x1c2)](typeof _0x44064f[_0x480f0c(0x199)],_0x1f9ea2['xjofJ'])&&(_0x4a6de3[_0x480f0c(0x199)]=_0x44064f[_0x480f0c(0x199)]);if(_0x1192ee[_0x480f0c(0x1d7)]){const _0x517d1e=_0x4a6de3['args']??[],_0x4fdc08=SAFE_MODE_ARGS['filter'](_0x543055=>!_0x517d1e['includes'](_0x543055));_0x4a6de3['args']=[..._0x517d1e,..._0x4fdc08];}if(_0x1192ee['allowInsecureLocalhost']){const _0x48cfc9=_0x4a6de3['args']??[],_0x44d9a0=ALLOW_LOCALHOST_ARGS[_0x480f0c(0x196)](_0x206035=>!_0x48cfc9[_0x480f0c(0x1a9)](_0x206035));_0x4a6de3[_0x480f0c(0x1c5)]=[..._0x48cfc9,..._0x44d9a0];}const _0x405fc9={...asRecord(_0x23a2e5?.['contextOptions'])??{}};_0x405fc9['ignoreHTTPSErrors']=!![];_0x1f9ea2[_0x480f0c(0x1c2)](typeof _0x1192ee['userAgent'],_0x480f0c(0x1cf))&&(_0x405fc9['userAgent']=_0x1192ee[_0x480f0c(0x1e8)]);const _0x2da887=_0x1f9ea2['BuJbK'](mergeHeaders,asRecord(_0x405fc9['extraHTTPHeaders']),asRecord(_0x1192ee['headers']));return _0x2da887?_0x405fc9['extraHTTPHeaders']=_0x2da887:delete _0x405fc9['extraHTTPHeaders'],_0x44064f[_0x480f0c(0x190)]&&(_0x405fc9[_0x480f0c(0x1cb)]=_0x44064f['storageStatePath']),{'launchOptions':_0x4a6de3,'contextOptions':_0x405fc9};}async function resolveLocalAuthPath(_0x1b9e4c){const _0x3f61a6=_0x39b7ee,_0x408902={'GQvvM':function(_0x360ff1,_0x5a2cc0,_0x1f2a2f){return _0x360ff1(_0x5a2cc0,_0x1f2a2f);},'LDeMV':function(_0xfca42a,_0x5c164f,_0x5d670b){return _0xfca42a(_0x5c164f,_0x5d670b);},'Qbird':_0x3f61a6(0x19d),'eEIHX':function(_0x420d67,_0x288e50){return _0x420d67(_0x288e50);},'jpIty':function(_0x341733,_0x26c191,_0x38ae86){return _0x341733(_0x26c191,_0x38ae86);},'Rjhvw':function(_0x3cb191,_0x25d899){return _0x3cb191(_0x25d899);}},_0x5c7e85=_0x408902[_0x3f61a6(0x1eb)](join,_0x1b9e4c,_0x3f61a6(0x1f4)),_0x39a9ee=_0x408902['LDeMV'](join,_0x1b9e4c,_0x408902['Qbird']);if(_0x408902[_0x3f61a6(0x1ca)](existsSync,_0x5c7e85))try{const _0x35dc51=await getToken();if(!_0x35dc51)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2467b9=await _0x408902['eEIHX'](readFile,_0x5c7e85),_0x383439=_0x408902[_0x3f61a6(0x198)](decrypt,_0x2467b9,_0x35dc51),_0x12a7c0=_0x408902['LDeMV'](join,tmpdir(),'ranger-auth-'+Date[_0x3f61a6(0x1c4)]()+_0x3f61a6(0x1f1));return await writeFile(_0x12a7c0,_0x383439),{'storageStatePath':_0x12a7c0,'tempAuthPath':_0x12a7c0};}catch(_0x15b923){const _0x2d469f=_0x15b923 instanceof Error?_0x15b923[_0x3f61a6(0x197)]:_0x408902[_0x3f61a6(0x194)](String,_0x15b923);throw new Error(_0x3f61a6(0x1ac)+_0x2d469f);}if(existsSync(_0x39a9ee))return{'storageStatePath':_0x39a9ee};return{};}export async function buildPlaywrightConfig(_0x49ee7f,_0x4a4d15,_0x24a9cd,_0x52351f,_0x141e0d){const _0x5ed78f=_0x39b7ee,_0x26bab6={'Jkvzx':function(_0x8cf906,_0xca0a5){return _0x8cf906(_0xca0a5);},'cIHQR':function(_0x516fc2,_0x21987e,_0x3a1c5a,_0x468ab5,_0xa7d57b,_0x4c3e97,_0x462f2b){return _0x516fc2(_0x21987e,_0x3a1c5a,_0x468ab5,_0xa7d57b,_0x4c3e97,_0x462f2b);},'tsgpV':'stagehand'};if(_0x141e0d)return buildPlaywrightConfigCore(_0x49ee7f,_0x141e0d,_0x4a4d15,_0x24a9cd,_0x52351f,_0x5ed78f(0x1b0));const {storageStatePath:_0x53c8c8,tempAuthPath:_0x59d178}=await resolveLocalAuthPath(_0x26bab6['Jkvzx'](getEnvDir,_0x4a4d15));try{const _0x5547a5=await _0x26bab6['cIHQR'](buildPlaywrightConfigCore,_0x49ee7f,_0x53c8c8,_0x4a4d15,_0x24a9cd,_0x52351f,_0x26bab6['tsgpV']);return{..._0x5547a5,'tempAuthPath':_0x59d178};}catch(_0xec0891){_0x59d178&&await unlink(_0x59d178)[_0x5ed78f(0x1d0)](()=>{});throw _0xec0891;}}export async function buildPlaywrightConfigCore(_0x11e57e,_0x273558,_0x27f6c1,_0x46a56e,_0x57927e,_0x399f6a=_0x39b7ee(0x1b0)){const _0x48bb85=_0x39b7ee,_0x4ba3a9={'yePwN':function(_0x19dd48,_0x66281e,_0x357e52){return _0x19dd48(_0x66281e,_0x357e52);},'PraPl':'clipboard-write','mstiT':function(_0x149504){return _0x149504();},'RYkZj':function(_0xd4be07){return _0xd4be07();},'dYMMr':function(_0x174eea,_0x7d9cb){return _0x174eea(_0x7d9cb);},'CQJfE':_0x48bb85(0x1e5),'pLtHK':_0x48bb85(0x1aa),'CNqdh':'core','QVwmL':'tabs','jSkrn':_0x48bb85(0x1cd),'YstGW':'pdf','QGkhw':function(_0x319d61,_0x11e6fa){return _0x319d61===_0x11e6fa;},'tyNLR':function(_0x5c1ade,_0x172c83,_0x5af28d){return _0x5c1ade(_0x172c83,_0x5af28d);},'tadgf':function(_0x58ac00,_0x27fb4f){return _0x58ac00===_0x27fb4f;},'yPBOc':_0x48bb85(0x1ab),'isiFA':function(_0x2f5633,_0x3db20e,_0x534508){return _0x2f5633(_0x3db20e,_0x534508);},'GAutM':function(_0x16a271,_0x1848c1,_0x5ec978){return _0x16a271(_0x1848c1,_0x5ec978);}},_0x2344e6=_0x46a56e||_0x4ba3a9['mstiT'](randomUUID),_0x3890c4=join(_0x4ba3a9['RYkZj'](getRangerDir),'sessions',_0x2344e6),_0x4d9658=_0x4ba3a9['dYMMr'](Boolean,_0x11e57e['cdpEndpoint']),_0x331f1b=_0x4d9658?{'browserName':'chromium','cdpEndpoint':_0x11e57e[_0x48bb85(0x1e0)]}:((()=>{const _0x52739f=_0x48bb85,{launchOptions:_0x5e04cd,contextOptions:_0x4f10d9}=_0x4ba3a9[_0x52739f(0x1b2)](buildBrowserOptionsFromSettings,_0x11e57e,{'headless':_0x57927e?![]:_0x11e57e[_0x52739f(0x199)]??!![],'storageStatePath':_0x273558});if(process[_0x52739f(0x1ea)]?.()===0x0){const _0x3d9061=['--no-sandbox','--disable-setuid-sandbox'],_0x5aea53=_0x5e04cd['args']??[],_0x5c3296=_0x3d9061['filter'](_0x4119f1=>!_0x5aea53['includes'](_0x4119f1));_0x5e04cd[_0x52739f(0x1c5)]=[..._0x5aea53,..._0x5c3296];}return{'isolated':!![],'browserName':_0x52739f(0x1ec),'launchOptions':_0x5e04cd,'contextOptions':{..._0x4f10d9,'permissions':['clipboard-read',_0x4ba3a9['PraPl']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3cac7c=_0x399f6a===_0x4ba3a9['CQJfE']?{'browser':_0x331f1b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3890c4,'outputMode':_0x4ba3a9[_0x48bb85(0x1a1)],'codegen':_0x48bb85(0x1e3)}:{'name':_0x27f6c1,'browser':_0x331f1b,'capabilities':[_0x4ba3a9['CNqdh'],_0x4ba3a9[_0x48bb85(0x1ba)],_0x4ba3a9[_0x48bb85(0x1a2)],_0x4ba3a9['YstGW'],_0x48bb85(0x1de)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3890c4};if(!_0x4d9658){const _0x2a8bd3=_0x3cac7c['browser'],_0x52b39d=_0x2a8bd3[_0x48bb85(0x1b1)];if(_0x52b39d[_0x48bb85(0x1e8)]===undefined)delete _0x52b39d[_0x48bb85(0x1e8)];if(_0x4ba3a9[_0x48bb85(0x1d5)](_0x52b39d[_0x48bb85(0x1cb)],undefined))delete _0x52b39d['storageState'];}const _0x3ccc09=_0x4ba3a9['tyNLR'](join,tmpdir(),_0x48bb85(0x1e6));!existsSync(_0x3ccc09)&&await mkdir(_0x3ccc09,{'recursive':!![]});const _0x1d2db8=_0x4ba3a9['tadgf'](_0x399f6a,_0x48bb85(0x1e5))?_0x4ba3a9[_0x48bb85(0x1db)]:'',_0x387c8f=_0x4ba3a9['isiFA'](join,_0x3ccc09,_0x27f6c1+'-'+Date['now']()+_0x1d2db8+'.json');return await _0x4ba3a9['GAutM'](writeFile,_0x387c8f,JSON[_0x48bb85(0x1a8)](_0x3cac7c,null,0x2)),{'configPath':_0x387c8f};}export async function buildPlaywrightCliConfig(_0x328074,_0x2fcc10,_0x18caf8,_0x4207ca,_0x47dcfa){const _0x491669=_0x39b7ee,_0x58d4a9={'NTwNS':_0x491669(0x1e5),'jeIiv':function(_0x2aaa3c,_0x4dce98){return _0x2aaa3c(_0x4dce98);},'axqkP':function(_0x36a681,_0x48dbb8,_0x33d730,_0x57e281,_0x10bad4,_0x4926cb,_0x5e67ed){return _0x36a681(_0x48dbb8,_0x33d730,_0x57e281,_0x10bad4,_0x4926cb,_0x5e67ed);}};if(_0x47dcfa)return buildPlaywrightConfigCore(_0x328074,_0x47dcfa,_0x2fcc10,_0x18caf8,_0x4207ca,_0x58d4a9[_0x491669(0x19f)]);const {storageStatePath:_0x3abef4,tempAuthPath:_0x1e7595}=await _0x58d4a9['jeIiv'](resolveLocalAuthPath,getEnvDir(_0x2fcc10));try{const _0x35d5e3=await _0x58d4a9['axqkP'](buildPlaywrightConfigCore,_0x328074,_0x3abef4,_0x2fcc10,_0x18caf8,_0x4207ca,_0x58d4a9['NTwNS']);return{..._0x35d5e3,'tempAuthPath':_0x1e7595};}catch(_0x50b350){_0x1e7595&&await unlink(_0x1e7595)['catch'](()=>{});throw _0x50b350;}}export function getNestedValue(_0x177620,_0x5c2917){const _0x29775e=_0x39b7ee,_0xb66301={'XEAff':function(_0x2c46d8,_0xd5e021){return _0x2c46d8===_0xd5e021;},'PDgYj':_0x29775e(0x1c0)},_0x836e08=parseKeyPath(_0x5c2917);let _0x1d5949=_0x177620;for(const _0x2a702c of _0x836e08){if(_0xb66301['XEAff'](_0x1d5949,null)||_0x1d5949===undefined||typeof _0x1d5949!==_0xb66301['PDgYj'])return undefined;_0x1d5949=_0x1d5949[_0x2a702c];}return _0x1d5949;}export function setNestedValue(_0x2e4faa,_0x4d0537,_0x16025a){const _0x1bcbca=_0x39b7ee,_0x4ada84={'JPwIr':function(_0x535308,_0x3e8e79){return _0x535308-_0x3e8e79;},'qClTi':function(_0x2163b0,_0x21b3c8){return _0x2163b0 in _0x21b3c8;}},_0x15b669=parseKeyPath(_0x4d0537);let _0xeb6ffd=_0x2e4faa;for(let _0xf35c96=0x0;_0xf35c96<_0x4ada84[_0x1bcbca(0x1b8)](_0x15b669['length'],0x1);_0xf35c96++){const _0x48ced0=_0x15b669[_0xf35c96];(!_0x4ada84['qClTi'](_0x48ced0,_0xeb6ffd)||typeof _0xeb6ffd[_0x48ced0]!==_0x1bcbca(0x1c0))&&(_0xeb6ffd[_0x48ced0]={}),_0xeb6ffd=_0xeb6ffd[_0x48ced0];}_0xeb6ffd[_0x15b669[_0x15b669['length']-0x1]]=_0x16025a;}export function deleteNestedValue(_0x3402ab,_0x197416){const _0x4a406a=_0x39b7ee,_0x7a5956={'WwFEw':function(_0x40573e,_0x50a802){return _0x40573e(_0x50a802);},'oLxYh':function(_0x491cc5,_0x4b500a){return _0x491cc5<_0x4b500a;},'MYGxS':function(_0x798c68,_0xf66a5b){return _0x798c68-_0xf66a5b;},'xbugA':function(_0x228b49,_0x4c640c){return _0x228b49===_0x4c640c;},'HQCbe':_0x4a406a(0x1c0),'PsEzi':function(_0xabf4cc,_0x162a8a){return _0xabf4cc!==_0x162a8a;},'Spbge':function(_0x177e70,_0x12c3d9){return _0x177e70-_0x12c3d9;}},_0x1e7a29=_0x7a5956['WwFEw'](parseKeyPath,_0x197416);let _0x9bf7fc=_0x3402ab;for(let _0x1fc850=0x0;_0x7a5956['oLxYh'](_0x1fc850,_0x7a5956['MYGxS'](_0x1e7a29[_0x4a406a(0x1cc)],0x1));_0x1fc850++){if(_0x7a5956[_0x4a406a(0x1d2)](_0x9bf7fc,null)||_0x7a5956['xbugA'](_0x9bf7fc,undefined)||typeof _0x9bf7fc!==_0x7a5956['HQCbe'])return![];_0x9bf7fc=_0x9bf7fc[_0x1e7a29[_0x1fc850]];}if(_0x7a5956[_0x4a406a(0x1d2)](_0x9bf7fc,null)||_0x9bf7fc===undefined||_0x7a5956['PsEzi'](typeof _0x9bf7fc,_0x7a5956['HQCbe']))return![];const _0x3694d4=_0x1e7a29[_0x7a5956['Spbge'](_0x1e7a29['length'],0x1)];if(_0x3694d4 in _0x9bf7fc)return delete _0x9bf7fc[_0x3694d4],!![];return![];}function parseKeyPath(_0x206b80){const _0x39709d=_0x39b7ee,_0x50bde8={'xJkHc':function(_0xad891f,_0x6eca7c){return _0xad891f===_0x6eca7c;},'JfDCL':'headers','Cazdf':_0x39709d(0x1af)},_0x2912bf=_0x206b80[_0x39709d(0x19e)]('.');return _0x50bde8['xJkHc'](_0x2912bf[0x0],'header')&&(_0x2912bf[0x0]=_0x50bde8['JfDCL']),_0x2912bf[0x0]===_0x50bde8['Cazdf']&&(_0x2912bf[0x0]=_0x39709d(0x1bb)),_0x2912bf;}export function formatSettings(_0x3b2973,_0x5bb5d5=0x0){const _0x1d8d1b=_0x39b7ee,_0x4c825b={'bQBMV':function(_0x208bc4,_0xbb883d){return _0x208bc4===_0xbb883d;}},_0x54b976=[],_0x19fa1c='\x20\x20'[_0x1d8d1b(0x1e1)](_0x5bb5d5);for(const [_0x3f6205,_0x1d141e]of Object[_0x1d8d1b(0x1b6)](_0x3b2973)){if(_0x4c825b[_0x1d8d1b(0x1d4)](_0x1d141e,undefined))continue;if(_0x4c825b['bQBMV'](typeof _0x1d141e,_0x1d8d1b(0x1c0))&&_0x1d141e!==null){_0x54b976[_0x1d8d1b(0x18f)](''+_0x19fa1c+_0x3f6205+':');for(const [_0x2233ba,_0x320a64]of Object[_0x1d8d1b(0x1b6)](_0x1d141e)){_0x54b976[_0x1d8d1b(0x18f)](_0x19fa1c+'\x20\x20'+_0x2233ba+':\x20'+_0x320a64);}}else _0x54b976[_0x1d8d1b(0x18f)](''+_0x19fa1c+_0x3f6205+':\x20'+_0x1d141e);}return _0x54b976[_0x1d8d1b(0x1ad)]('\x0a');}
|
|
1
|
+
const _0x8d9b7d=_0x363e;(function(_0xd572ab,_0xfbb992){const _0x2f8673=_0x363e,_0x556c9b=_0xd572ab();while(!![]){try{const _0xccba57=parseInt(_0x2f8673(0xed))/0x1+-parseInt(_0x2f8673(0x126))/0x2*(-parseInt(_0x2f8673(0x115))/0x3)+-parseInt(_0x2f8673(0xbf))/0x4*(-parseInt(_0x2f8673(0xf1))/0x5)+-parseInt(_0x2f8673(0xfb))/0x6+parseInt(_0x2f8673(0xe1))/0x7*(-parseInt(_0x2f8673(0x124))/0x8)+parseInt(_0x2f8673(0xdb))/0x9*(parseInt(_0x2f8673(0xcc))/0xa)+-parseInt(_0x2f8673(0xe4))/0xb;if(_0xccba57===_0xfbb992)break;else _0x556c9b['push'](_0x556c9b['shift']());}catch(_0xc2a2bf){_0x556c9b['push'](_0x556c9b['shift']());}}}(_0x3737,0x913e9));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 _0x363e(_0x3cff1c,_0x3cc393){_0x3cff1c=_0x3cff1c-0xb3;const _0x37378b=_0x3737();let _0x363e68=_0x37378b[_0x3cff1c];return _0x363e68;}function findEnvInRoot(_0x39cc61,_0xb10f54){const _0x582c6f=_0x363e,_0x7dcb7c={'pJaCY':'local','PtUoC':function(_0xf4848b,_0x18cea3,_0x4083dd){return _0xf4848b(_0x18cea3,_0x4083dd);},'ZZiOn':function(_0x57456e,_0x1373b0){return _0x57456e(_0x1373b0);},'RNZyc':function(_0x460a03,_0x3dcb15){return _0x460a03!==_0x3dcb15;}},_0x4156f9=join(_0xb10f54,'ci',_0x39cc61),_0x2a3892=join(_0xb10f54,_0x7dcb7c['pJaCY'],_0x39cc61),_0x5aa7ba=join(_0xb10f54,_0x39cc61),_0x50fdb4=_0x7dcb7c[_0x582c6f(0x116)](join,_0xb10f54,_0x7dcb7c['pJaCY']),_0x5c3f34=join(_0xb10f54,'ci');if(existsSync(_0x4156f9))return _0x4156f9;if(_0x7dcb7c[_0x582c6f(0xc4)](existsSync,_0x2a3892))return _0x2a3892;if(existsSync(_0x5aa7ba)&&(_0x7dcb7c[_0x582c6f(0x118)](_0x5aa7ba,_0x50fdb4)&&_0x5aa7ba!==_0x5c3f34?!![]:hasLegacyProfileFiles(_0x5aa7ba)))return _0x5aa7ba;return null;}export function getEnvDir(_0x14f327,_0x3749f9={}){const _0x60d1df=_0x363e,_0xfa90b2={'HMiqh':function(_0x2da130,_0x3f37d2,_0x49cc98){return _0x2da130(_0x3f37d2,_0x49cc98);},'CxtsP':function(_0x546cdb,_0x5e6210){return _0x546cdb(_0x5e6210);},'hmhEU':function(_0x2f3f7a){return _0x2f3f7a();},'GMphH':function(_0x30f244,_0x3fccff,_0x4d84f9,_0x56e978){return _0x30f244(_0x3fccff,_0x4d84f9,_0x56e978);},'clHNI':_0x60d1df(0xe8)},_0x3d6b6d=getRangerDir(),_0xb8ba89=_0xfa90b2['HMiqh'](findEnvInRoot,_0x14f327,_0x3d6b6d);if(_0xb8ba89){if(_0x3749f9['forWrite']&&_0xfa90b2['CxtsP'](isLegacyEnvPath,_0xb8ba89))throw legacyWriteError(_0x14f327,_0xb8ba89);return _0xb8ba89;}const _0x524033=_0xfa90b2['hmhEU'](getRangerHomeDir);if(_0x524033!==_0x3d6b6d){const _0xf1dde=findEnvInRoot(_0x14f327,_0x524033);if(_0xf1dde){if(_0x3749f9[_0x60d1df(0xd2)]&&isLegacyEnvPath(_0xf1dde))throw legacyWriteError(_0x14f327,_0xf1dde);return _0xf1dde;}}const _0x2f2833=_0xfa90b2[_0x60d1df(0xbe)](join,_0x524033,_0xfa90b2[_0x60d1df(0xf2)],_0x14f327);if(_0x3749f9['forWrite'])throw _0xfa90b2['HMiqh'](legacyWriteError,_0x14f327,_0x2f2833);return _0x2f2833;}function isLegacyEnvPath(_0x5d44a1){const _0x590547=_0x363e,_0x4bbf1c={'fwfWF':function(_0x4346d6){return _0x4346d6();},'zQBsb':function(_0x4eacbe,_0x396358){return _0x4eacbe+_0x396358;}},_0x258ce9=_0x4bbf1c[_0x590547(0x121)](getRangerDir),_0xf39678=getRangerHomeDir();for(const _0x195234 of new Set([_0x258ce9,_0xf39678])){const _0xffa29e=_0x195234['endsWith']('/')?_0x195234:_0x4bbf1c['zQBsb'](_0x195234,'/');if(_0x5d44a1===_0x195234||_0x5d44a1[_0x590547(0xbb)](_0xffa29e))return!![];}return![];}function legacyWriteError(_0x590c05,_0xaacdf7){const _0xc36bcb=_0x363e,_0x29f1d4={'uiYWA':function(_0x4ca898,_0x4626c4){return _0x4ca898+_0x4626c4;}};return new Error(_0x29f1d4[_0xc36bcb(0x114)](_0xc36bcb(0xc1)+_0x590c05+_0xc36bcb(0xd6)+_0xaacdf7+'.\x0a'+_0xc36bcb(0xc3),'See\x20docs/feature/cloud-profiles-old-vs-new-structure.md\x20for\x20the\x20supported\x20flow.'));}export function findExistingEnv(_0x148e16,_0x4eda4d){const _0x54b12e=_0x363e,_0x2dab0c={'DQeud':function(_0x21872e){return _0x21872e();},'WnccX':_0x54b12e(0xe8),'Oodph':function(_0x1b9202,_0x57e19a,_0x469881){return _0x1b9202(_0x57e19a,_0x469881);},'CxKzZ':function(_0x575138,_0x441480){return _0x575138===_0x441480;}},_0x4b1414=_0x4eda4d?.['rangerDir'],_0x3e85fb=_0x4b1414?[_0x4b1414]:[_0x2dab0c[_0x54b12e(0xe2)](getRangerDir),getRangerHomeDir()]['filter']((_0x526381,_0x206b61,_0x48c077)=>_0x48c077[_0x54b12e(0x100)](_0x526381)===_0x206b61),_0x1532ba=_0x4eda4d?.[_0x54b12e(0xc9)]??['ci',_0x2dab0c['WnccX'],'legacy'];for(const _0x5eb52b of _0x3e85fb){const _0x554e5f=_0x2dab0c['Oodph'](join,_0x5eb52b,_0x2dab0c['WnccX']),_0x5bca24=join(_0x5eb52b,'ci'),_0x51d829=[{'location':'ci','path':join(_0x5eb52b,'ci',_0x148e16)},{'location':_0x2dab0c[_0x54b12e(0x108)],'path':join(_0x5eb52b,'local',_0x148e16)},{'location':_0x54b12e(0xdf),'path':join(_0x5eb52b,_0x148e16)}];for(const _0x8efd2 of _0x51d829){if(_0x1532ba['includes'](_0x8efd2['location'])&&existsSync(_0x8efd2[_0x54b12e(0x120)])){if(_0x8efd2[_0x54b12e(0x113)]===_0x54b12e(0xdf)&&(_0x8efd2[_0x54b12e(0x120)]===_0x554e5f||_0x2dab0c['CxKzZ'](_0x8efd2['path'],_0x5bca24))&&!hasLegacyProfileFiles(_0x8efd2['path']))continue;return{'path':_0x8efd2[_0x54b12e(0x120)],'location':_0x8efd2['location']};}}}return null;}function hasLegacyProfileFiles(_0x91f57b){const _0xb93762=_0x363e,_0x370bf9={'nJcMx':function(_0x5aa611,_0x32a365){return _0x5aa611(_0x32a365);},'iaJmL':function(_0xffa9b5,_0x319ad4,_0x14f60f){return _0xffa9b5(_0x319ad4,_0x14f60f);}};return _0x370bf9[_0xb93762(0xb4)](existsSync,join(_0x91f57b,'settings.json'))||_0x370bf9[_0xb93762(0xb4)](existsSync,_0x370bf9[_0xb93762(0xb6)](join,_0x91f57b,_0xb93762(0xc2)))||_0x370bf9[_0xb93762(0xb4)](existsSync,_0x370bf9[_0xb93762(0xb6)](join,_0x91f57b,'auth.json.enc'));}export function isEnvCi(_0x97d064){const _0x1fcfa5=_0x363e,_0x11d2ee={'sVeIq':function(_0x385fbd,_0x4549db){return _0x385fbd(_0x4549db);},'ZRygF':function(_0x584682,_0x1f31b2,_0x1491b0,_0x49e4a5){return _0x584682(_0x1f31b2,_0x1491b0,_0x49e4a5);},'LCYMO':function(_0x2a4b11){return _0x2a4b11();},'KeOUQ':function(_0x344c69){return _0x344c69();}};if(_0x11d2ee['sVeIq'](existsSync,_0x11d2ee['ZRygF'](join,_0x11d2ee['LCYMO'](getRangerDir),'ci',_0x97d064)))return!![];const _0x6cbcc0=_0x11d2ee['KeOUQ'](getRangerHomeDir);if(_0x6cbcc0!==getRangerDir()&&_0x11d2ee['sVeIq'](existsSync,_0x11d2ee[_0x1fcfa5(0xe7)](join,_0x6cbcc0,'ci',_0x97d064)))return!![];return![];}export async function cleanupTempFiles(_0x3b598c){const _0x35a598=_0x363e,_0x572729={'WGMKT':function(_0x4abd28,_0x330385){return _0x4abd28!==_0x330385;},'KwpSn':'ENOENT'},_0x470bb9=[_0x3b598c['tempAuthPath'],_0x3b598c['configPath']]['filter'](Boolean);await Promise['all'](_0x470bb9[_0x35a598(0x11c)](_0x50d2d3=>unlink(_0x50d2d3)[_0x35a598(0xc5)](_0x10c3b5=>{const _0x3ddeb4=_0x35a598;_0x572729[_0x3ddeb4(0xb5)](_0x10c3b5['code'],_0x572729[_0x3ddeb4(0xca)])&&console[_0x3ddeb4(0xf5)](_0x3ddeb4(0xbd)+_0x50d2d3+':',_0x10c3b5['message']);})));}export function getSettingsPath(_0x369e96){const _0x2b6dda=_0x363e,_0x1a61d2={'ycAgz':function(_0x5d7aa9,_0x267cf5,_0x323c98){return _0x5d7aa9(_0x267cf5,_0x323c98);},'JNFTU':function(_0x3acb95,_0x4ffb3b){return _0x3acb95(_0x4ffb3b);}};return _0x1a61d2[_0x2b6dda(0xce)](join,_0x1a61d2['JNFTU'](getEnvDir,_0x369e96),'settings.json');}export async function loadSettings(_0x97c371){const _0x12ede6=_0x363e,_0x107ca8={'KVODP':function(_0x1ec0e7,_0x5ab2e2){return _0x1ec0e7(_0x5ab2e2);},'nKXrj':function(_0x21106b,_0x45bec1,_0x2b34d5){return _0x21106b(_0x45bec1,_0x2b34d5);},'BMclg':_0x12ede6(0x110)},_0x2c611b=_0x107ca8['KVODP'](getSettingsPath,_0x97c371);if(!_0x107ca8['KVODP'](existsSync,_0x2c611b))return{};try{const _0x27ee3f=await _0x107ca8[_0x12ede6(0xc6)](readFile,_0x2c611b,_0x107ca8['BMclg']);return JSON[_0x12ede6(0x10c)](_0x27ee3f);}catch{return{};}}export async function saveSettings(_0x2c2eaf,_0x1c5ebc){const _0x2deaf3=_0x363e,_0x480882={'LKcrt':function(_0x1da48b,_0xbd23fa){return _0x1da48b(_0xbd23fa);},'bLVXV':function(_0x3e370b,_0x3ebba7,_0x2a2a2f){return _0x3e370b(_0x3ebba7,_0x2a2a2f);}},_0x5b0905=getSettingsPath(_0x2c2eaf),_0x336d7d=dirname(_0x5b0905);!_0x480882[_0x2deaf3(0xdc)](existsSync,_0x336d7d)&&await _0x480882[_0x2deaf3(0xc7)](mkdir,_0x336d7d,{'recursive':!![]}),await writeFile(_0x5b0905,JSON['stringify'](_0x1c5ebc,null,0x2));}function _0x3737(){const _0x3f2db=['\x20is\x20not\x20set','map','lquBW','cdpEndpoint','ZMikO','path','fwfWF','GTpnD','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','8AwHHOx','LqaLW','1534PdDdFq','setupHeader','nJcMx','WGMKT','iaJmL','allow','length','PSeaH','string','startsWith','TFsAs','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','GMphH','251560ACHwdj','tHWyd','Refusing\x20to\x20write\x20profile\x20\x22','auth.json','Cloud\x20profiles\x20own\x20canonical\x20session\x20state\x20now;\x20the\x20legacy\x20tree\x20is\x20read-only.\x0a','ZZiOn','catch','nKXrj','bLVXV','hrlZe','locations','KwpSn','env','2585770xwOGcr','join','ycAgz','Jscts','clipboard-write','--disable-web-security','forWrite','args','object','eygeY','\x22\x20to\x20legacy\x20path\x20','uiHHv','OYhPJ','ofSQk','.json','9VjFoqX','LKcrt','--allow-insecure-localhost','XrcKL','legacy','push','5781713bXJFje','DQeud','headless','2867062rLRswb','replace','boolean','ZRygF','local','safeMode','now','cOqII','-cli','327305Tlmvup','browser','KcUbY','biBOL','5XXxlLU','clHNI','core','setupHeaders','warn','EXZUc','install','--disable-features=WebBluetooth','hIRDp','pdf','462594kYdghq','stringify','MipyH','--disable-setuid-sandbox','extraHTTPHeaders','indexOf','playwright-cli','fqOQw','file','filter','entries','WRjNj','Qymik','WnccX','--allow-running-insecure-content','isArray','launchOptions','parse','FXJLR','split','ignoreHTTPSErrors','utf-8','contextOptions','includes','location','uiYWA','4341JtemBG','PtUoC','dHBKq','RNZyc','LiXnk','message'];_0x3737=function(){return _0x3f2db;};return _0x3737();}export function resolveEnvVars(_0x469884){const _0x65dd0=_0x363e,_0x47c16e={'MipyH':function(_0x3cfaa0,_0x4acaae){return _0x3cfaa0===_0x4acaae;}};if(typeof _0x469884===_0x65dd0(0xba))return _0x469884[_0x65dd0(0xe5)](/\$\{(\w+)\}/g,(_0x354372,_0x35dedd)=>{const _0x1543c4=_0x65dd0,_0x47e3eb=process[_0x1543c4(0xcb)][_0x35dedd];if(_0x47c16e[_0x1543c4(0xfd)](_0x47e3eb,undefined))throw new Error('Environment\x20variable\x20'+_0x35dedd+_0x1543c4(0x11b));return _0x47e3eb;});if(Array[_0x65dd0(0x10a)](_0x469884))return _0x469884['map'](resolveEnvVars);if(_0x469884&&_0x47c16e[_0x65dd0(0xfd)](typeof _0x469884,_0x65dd0(0xd4)))return Object['fromEntries'](Object['entries'](_0x469884)['map'](([_0xed7864,_0x5e5efe])=>[_0xed7864,resolveEnvVars(_0x5e5efe)]));return _0x469884;}const isRecord=_0x34d66c=>typeof _0x34d66c==='object'&&_0x34d66c!==null&&!Array[_0x8d9b7d(0x10a)](_0x34d66c),asRecord=_0x9e7e10=>isRecord(_0x9e7e10)?_0x9e7e10:undefined,mergeHeaders=(_0x2a0335,_0x44b1f7)=>{const _0x54a00b={..._0x2a0335??{},..._0x44b1f7??{}};return Object['keys'](_0x54a00b)['length']?_0x54a00b:undefined;},SAFE_MODE_ARGS=[_0x8d9b7d(0xf8)],ALLOW_LOCALHOST_ARGS=[_0x8d9b7d(0xd1),_0x8d9b7d(0x109),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x8d9b7d(0xdd)];export function buildBrowserOptionsFromSettings(_0xa03d10,_0x52e354={}){const _0x12d707=_0x8d9b7d,_0x23af1d={'eygeY':function(_0x59e5bd,_0x29bb42){return _0x59e5bd(_0x29bb42);},'TFsAs':function(_0xb06679,_0x4978b9){return _0xb06679(_0x4978b9);}},_0x32cdbc=asRecord(_0xa03d10['browser']),_0x1eb470={..._0x23af1d[_0x12d707(0xd5)](asRecord,_0x32cdbc?.[_0x12d707(0x10b)])??{}};typeof _0x52e354['headless']===_0x12d707(0xe6)&&(_0x1eb470['headless']=_0x52e354[_0x12d707(0xe3)]);if(_0xa03d10[_0x12d707(0xe9)]){const _0x7f97d4=_0x1eb470['args']??[],_0xea2393=SAFE_MODE_ARGS[_0x12d707(0x104)](_0x3c6de6=>!_0x7f97d4['includes'](_0x3c6de6));_0x1eb470[_0x12d707(0xd3)]=[..._0x7f97d4,..._0xea2393];}if(_0xa03d10['allowInsecureLocalhost']){const _0x573d68=_0x1eb470['args']??[],_0x1dd1ab=ALLOW_LOCALHOST_ARGS[_0x12d707(0x104)](_0x4b9685=>!_0x573d68[_0x12d707(0x112)](_0x4b9685));_0x1eb470[_0x12d707(0xd3)]=[..._0x573d68,..._0x1dd1ab];}const _0x216429={..._0x23af1d[_0x12d707(0xd5)](asRecord,_0x32cdbc?.[_0x12d707(0x111)])??{}};_0x216429[_0x12d707(0x10f)]=!![];typeof _0xa03d10['userAgent']==='string'&&(_0x216429['userAgent']=_0xa03d10['userAgent']);const _0x408d66=mergeHeaders(asRecord(_0x216429[_0x12d707(0xff)]),_0x23af1d[_0x12d707(0xbc)](asRecord,_0xa03d10['headers']));return _0x408d66?_0x216429['extraHTTPHeaders']=_0x408d66:delete _0x216429[_0x12d707(0xff)],_0x52e354['storageStatePath']&&(_0x216429['storageState']=_0x52e354['storageStatePath']),{'launchOptions':_0x1eb470,'contextOptions':_0x216429};}async function resolveLocalAuthPath(_0x143800){const _0x5e325d=_0x8d9b7d,_0x20cc88={'WogHk':'auth.json.enc','EXZUc':function(_0x429f99,_0x438f3e,_0x35023e){return _0x429f99(_0x438f3e,_0x35023e);},'fqOQw':function(_0x51e9aa,_0xb7db4a){return _0x51e9aa(_0xb7db4a);},'XrcKL':function(_0x5a920f,_0x332689){return _0x5a920f(_0x332689);},'LGXri':function(_0x1dc0b6){return _0x1dc0b6();},'uFBkW':function(_0xb87011,_0xb39d34){return _0xb87011(_0xb39d34);}},_0x230364=join(_0x143800,_0x20cc88['WogHk']),_0x47c61c=_0x20cc88['EXZUc'](join,_0x143800,'auth.json');if(_0x20cc88[_0x5e325d(0x102)](existsSync,_0x230364))try{const _0x20679f=await getToken();if(!_0x20679f)throw new Error(_0x5e325d(0x123));const _0x504069=await _0x20cc88[_0x5e325d(0xde)](readFile,_0x230364),_0xaee15c=decrypt(_0x504069,_0x20679f),_0x2b3109=join(_0x20cc88['LGXri'](tmpdir),'ranger-auth-'+Date[_0x5e325d(0xea)]()+_0x5e325d(0xda));return await _0x20cc88[_0x5e325d(0xf6)](writeFile,_0x2b3109,_0xaee15c),{'storageStatePath':_0x2b3109,'tempAuthPath':_0x2b3109};}catch(_0x358f35){const _0x76ff0c=_0x358f35 instanceof Error?_0x358f35[_0x5e325d(0x11a)]:String(_0x358f35);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x76ff0c);}if(_0x20cc88['uFBkW'](existsSync,_0x47c61c))return{'storageStatePath':_0x47c61c};return{};}export async function buildPlaywrightConfig(_0x4edb79,_0x2943c5,_0x415771,_0x5b6df0,_0x5460f7){const _0x2dc272=_0x8d9b7d,_0x258956={'Jscts':'stagehand','TrPNs':function(_0x57964a,_0xbb5c56){return _0x57964a(_0xbb5c56);},'Qymik':function(_0x35ae3e,_0x196ab8){return _0x35ae3e(_0x196ab8);}};if(_0x5460f7)return buildPlaywrightConfigCore(_0x4edb79,_0x5460f7,_0x2943c5,_0x415771,_0x5b6df0,_0x258956[_0x2dc272(0xcf)]);const {storageStatePath:_0xb9035,tempAuthPath:_0x32f9be}=await _0x258956['TrPNs'](resolveLocalAuthPath,getEnvDir(_0x2943c5));try{const _0x471371=await buildPlaywrightConfigCore(_0x4edb79,_0xb9035,_0x2943c5,_0x415771,_0x5b6df0,'stagehand');return{..._0x471371,'tempAuthPath':_0x32f9be};}catch(_0x4a4a15){_0x32f9be&&await _0x258956[_0x2dc272(0x107)](unlink,_0x32f9be)[_0x2dc272(0xc5)](()=>{});throw _0x4a4a15;}}export async function buildPlaywrightConfigCore(_0x276979,_0x3c0044,_0x59072d,_0x54da1b,_0x352adb,_0x4396cf='stagehand'){const _0x2fbe38=_0x8d9b7d,_0x1bcdc1={'LiXnk':function(_0x2ebd71,_0x19b5b9,_0x4d11f5){return _0x2ebd71(_0x19b5b9,_0x4d11f5);},'tHWyd':_0x2fbe38(0xfe),'hIRDp':'chromium','IxwTm':'clipboard-read','ZMikO':function(_0x3b168d){return _0x3b168d();},'uiHHv':function(_0x23e1a2,_0x4bbb2f,_0x22763e,_0x560e52){return _0x23e1a2(_0x4bbb2f,_0x22763e,_0x560e52);},'ofSQk':'sessions','KcUbY':function(_0x502d94,_0x9226d3){return _0x502d94(_0x9226d3);},'cOqII':function(_0x4aae9e,_0x5eee9d){return _0x4aae9e===_0x5eee9d;},'AgVoa':'none','vFTeZ':'vision','VbERz':_0x2fbe38(0xb7),'GTpnD':'ranger-config','dHBKq':function(_0x1e0449,_0x427990,_0x4a061b){return _0x1e0449(_0x427990,_0x4a061b);},'zWGZN':'playwright-cli','OmMYQ':_0x2fbe38(0xec),'biBOL':function(_0x1822ab,_0x383206,_0x48f595){return _0x1822ab(_0x383206,_0x48f595);}},_0x277041=_0x54da1b||_0x1bcdc1[_0x2fbe38(0x11f)](randomUUID),_0x5e64ff=_0x1bcdc1[_0x2fbe38(0xd7)](join,getRangerDir(),_0x1bcdc1[_0x2fbe38(0xd9)],_0x277041),_0x2c1114=_0x1bcdc1[_0x2fbe38(0xef)](Boolean,_0x276979[_0x2fbe38(0x11e)]),_0x5e07b4=_0x2c1114?{'browserName':_0x1bcdc1['hIRDp'],'cdpEndpoint':_0x276979[_0x2fbe38(0x11e)]}:((()=>{const _0x41f359=_0x2fbe38,{launchOptions:_0x2c55db,contextOptions:_0x175959}=_0x1bcdc1[_0x41f359(0x119)](buildBrowserOptionsFromSettings,_0x276979,{'headless':_0x352adb?![]:_0x276979[_0x41f359(0xe3)]??!![],'storageStatePath':_0x3c0044});if(process['getuid']?.()===0x0){const _0x4bb6b9=['--no-sandbox',_0x1bcdc1[_0x41f359(0xc0)]],_0x4419ce=_0x2c55db['args']??[],_0x31b9d1=_0x4bb6b9[_0x41f359(0x104)](_0x1a943f=>!_0x4419ce[_0x41f359(0x112)](_0x1a943f));_0x2c55db[_0x41f359(0xd3)]=[..._0x4419ce,..._0x31b9d1];}return{'isolated':!![],'browserName':_0x1bcdc1[_0x41f359(0xf9)],'launchOptions':_0x2c55db,'contextOptions':{..._0x175959,'permissions':[_0x1bcdc1['IxwTm'],_0x41f359(0xd0)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x55df17=_0x1bcdc1['cOqII'](_0x4396cf,_0x2fbe38(0x101))?{'browser':_0x5e07b4,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5e64ff,'outputMode':_0x2fbe38(0x103),'codegen':_0x1bcdc1['AgVoa']}:{'name':_0x59072d,'browser':_0x5e07b4,'capabilities':[_0x2fbe38(0xf3),'tabs',_0x2fbe38(0xf7),_0x2fbe38(0xfa),_0x1bcdc1['vFTeZ']],'imageResponses':_0x1bcdc1['VbERz'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5e64ff};if(!_0x2c1114){const _0x5daa54=_0x55df17[_0x2fbe38(0xee)],_0xeafd7e=_0x5daa54['contextOptions'];if(_0xeafd7e['userAgent']===undefined)delete _0xeafd7e['userAgent'];if(_0x1bcdc1[_0x2fbe38(0xeb)](_0xeafd7e['storageState'],undefined))delete _0xeafd7e['storageState'];}const _0xd292aa=join(tmpdir(),_0x1bcdc1[_0x2fbe38(0x122)]);!existsSync(_0xd292aa)&&await _0x1bcdc1[_0x2fbe38(0x117)](mkdir,_0xd292aa,{'recursive':!![]});const _0x2ad6b4=_0x4396cf===_0x1bcdc1['zWGZN']?_0x1bcdc1['OmMYQ']:'',_0x1806d8=_0x1bcdc1[_0x2fbe38(0xf0)](join,_0xd292aa,_0x59072d+'-'+Date[_0x2fbe38(0xea)]()+_0x2ad6b4+'.json');return await writeFile(_0x1806d8,JSON[_0x2fbe38(0xfc)](_0x55df17,null,0x2)),{'configPath':_0x1806d8};}export async function buildPlaywrightCliConfig(_0x582a80,_0x48dbc0,_0x4bbaba,_0x1a1e7b,_0x11fa6c){const _0x4ad8b9={'nYalX':function(_0xc58166,_0x343799,_0x354d9b,_0x42b1df,_0x23cc77,_0x1fa65f,_0x18a983){return _0xc58166(_0x343799,_0x354d9b,_0x42b1df,_0x23cc77,_0x1fa65f,_0x18a983);},'GiUuD':function(_0x3a2230,_0x4bfbf9){return _0x3a2230(_0x4bfbf9);},'IsfVB':'playwright-cli'};if(_0x11fa6c)return _0x4ad8b9['nYalX'](buildPlaywrightConfigCore,_0x582a80,_0x11fa6c,_0x48dbc0,_0x4bbaba,_0x1a1e7b,'playwright-cli');const {storageStatePath:_0x5daff9,tempAuthPath:_0x1ee594}=await _0x4ad8b9['GiUuD'](resolveLocalAuthPath,getEnvDir(_0x48dbc0));try{const _0x507df8=await buildPlaywrightConfigCore(_0x582a80,_0x5daff9,_0x48dbc0,_0x4bbaba,_0x1a1e7b,_0x4ad8b9['IsfVB']);return{..._0x507df8,'tempAuthPath':_0x1ee594};}catch(_0x4de6ae){_0x1ee594&&await unlink(_0x1ee594)['catch'](()=>{});throw _0x4de6ae;}}export function getNestedValue(_0xbb196a,_0x4c6f6a){const _0x34b772=_0x8d9b7d,_0x3d36b3={'hrlZe':function(_0x22d25a,_0x28ca45){return _0x22d25a(_0x28ca45);},'LqaLW':function(_0x43d8c8,_0x57bc23){return _0x43d8c8===_0x57bc23;},'xIshW':function(_0x3f5ed2,_0x532093){return _0x3f5ed2===_0x532093;},'WRjNj':'object'},_0x1bff22=_0x3d36b3[_0x34b772(0xc8)](parseKeyPath,_0x4c6f6a);let _0x44d5db=_0xbb196a;for(const _0x20ec76 of _0x1bff22){if(_0x3d36b3[_0x34b772(0x125)](_0x44d5db,null)||_0x3d36b3['xIshW'](_0x44d5db,undefined)||typeof _0x44d5db!==_0x3d36b3[_0x34b772(0x106)])return undefined;_0x44d5db=_0x44d5db[_0x20ec76];}return _0x44d5db;}export function setNestedValue(_0x569186,_0x2f35c7,_0x197391){const _0x3c1029=_0x8d9b7d,_0x55f232={'lquBW':function(_0x2dc844,_0x1f5272){return _0x2dc844-_0x1f5272;},'nVSOj':function(_0x4e4035,_0x3cd0bc){return _0x4e4035 in _0x3cd0bc;}},_0x3b824b=parseKeyPath(_0x2f35c7);let _0xa13e38=_0x569186;for(let _0x3e174a=0x0;_0x3e174a<_0x55f232['lquBW'](_0x3b824b['length'],0x1);_0x3e174a++){const _0x64ed9a=_0x3b824b[_0x3e174a];(!_0x55f232['nVSOj'](_0x64ed9a,_0xa13e38)||typeof _0xa13e38[_0x64ed9a]!=='object')&&(_0xa13e38[_0x64ed9a]={}),_0xa13e38=_0xa13e38[_0x64ed9a];}_0xa13e38[_0x3b824b[_0x55f232[_0x3c1029(0x11d)](_0x3b824b['length'],0x1)]]=_0x197391;}export function deleteNestedValue(_0x13977c,_0x79499){const _0x7c2856=_0x8d9b7d,_0x3ddc51={'FXJLR':function(_0x52775d,_0x45b9c0){return _0x52775d<_0x45b9c0;},'rttiv':function(_0x492a2d,_0x19767c){return _0x492a2d===_0x19767c;},'mBbkC':function(_0x330b0d,_0x939cb8){return _0x330b0d!==_0x939cb8;},'ukfYK':_0x7c2856(0xd4),'mEvjV':function(_0x25e919,_0x7ee44c){return _0x25e919 in _0x7ee44c;}},_0x21b5b1=parseKeyPath(_0x79499);let _0x4bafde=_0x13977c;for(let _0x5de0db=0x0;_0x3ddc51[_0x7c2856(0x10d)](_0x5de0db,_0x21b5b1[_0x7c2856(0xb8)]-0x1);_0x5de0db++){if(_0x3ddc51['rttiv'](_0x4bafde,null)||_0x3ddc51['rttiv'](_0x4bafde,undefined)||_0x3ddc51['mBbkC'](typeof _0x4bafde,_0x3ddc51['ukfYK']))return![];_0x4bafde=_0x4bafde[_0x21b5b1[_0x5de0db]];}if(_0x4bafde===null||_0x4bafde===undefined||_0x3ddc51['mBbkC'](typeof _0x4bafde,_0x3ddc51['ukfYK']))return![];const _0x8f6289=_0x21b5b1[_0x21b5b1['length']-0x1];if(_0x3ddc51['mEvjV'](_0x8f6289,_0x4bafde))return delete _0x4bafde[_0x8f6289],!![];return![];}function parseKeyPath(_0x5efefa){const _0x383070=_0x8d9b7d,_0x3f620e={'PSeaH':'headers','AFCLA':function(_0x3f0f88,_0x590800){return _0x3f0f88===_0x590800;},'OYhPJ':_0x383070(0xb3)},_0x33e0fa=_0x5efefa[_0x383070(0x10e)]('.');return _0x33e0fa[0x0]==='header'&&(_0x33e0fa[0x0]=_0x3f620e[_0x383070(0xb9)]),_0x3f620e['AFCLA'](_0x33e0fa[0x0],_0x3f620e[_0x383070(0xd8)])&&(_0x33e0fa[0x0]=_0x383070(0xf4)),_0x33e0fa;}export function formatSettings(_0x1b2358,_0x243044=0x0){const _0x952ed6=_0x8d9b7d,_0x361dc1={'tySwg':function(_0x2cb594,_0x408b43){return _0x2cb594===_0x408b43;},'dFIPL':function(_0x106dc6,_0x39fd4c){return _0x106dc6!==_0x39fd4c;}},_0x105977=[],_0x17db71='\x20\x20'['repeat'](_0x243044);for(const [_0x25da9d,_0x208c3d]of Object[_0x952ed6(0x105)](_0x1b2358)){if(_0x208c3d===undefined)continue;if(_0x361dc1['tySwg'](typeof _0x208c3d,'object')&&_0x361dc1['dFIPL'](_0x208c3d,null)){_0x105977['push'](''+_0x17db71+_0x25da9d+':');for(const [_0x25c85a,_0x590f54]of Object['entries'](_0x208c3d)){_0x105977['push'](_0x17db71+'\x20\x20'+_0x25c85a+':\x20'+_0x590f54);}}else _0x105977[_0x952ed6(0xe0)](''+_0x17db71+_0x25da9d+':\x20'+_0x208c3d);}return _0x105977[_0x952ed6(0xcd)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x329edf,_0x428dad){const _0x2857d2=_0x5c6c,_0x55926a=_0x329edf();while(!![]){try{const _0x1ec0b4=-parseInt(_0x2857d2(0x7f))/0x1+parseInt(_0x2857d2(0x77))/0x2*(parseInt(_0x2857d2(0x7d))/0x3)+parseInt(_0x2857d2(0x7a))/0x4+parseInt(_0x2857d2(0x7c))/0x5+-parseInt(_0x2857d2(0x79))/0x6+-parseInt(_0x2857d2(0x7e))/0x7*(parseInt(_0x2857d2(0x78))/0x8)+parseInt(_0x2857d2(0x81))/0x9;if(_0x1ec0b4===_0x428dad)break;else _0x55926a['push'](_0x55926a['shift']());}catch(_0x492141){_0x55926a['push'](_0x55926a['shift']());}}}(_0x88b4,0x755c7));import{readFileSync}from'fs';function _0x88b4(){const _0x235061=['655796lSlKoR','utf-8','3743082HtxtHM','skills','zrJcq','26546UKTACV','296664PiXbbi','702000YUphQx','1081780WiPBFN','SSXlm','4715295wLVcpD','24KmdluE','91kHgchk'];_0x88b4=function(){return _0x235061;};return _0x88b4();}import{dirname,join}from'path';function _0x5c6c(_0x19035c,_0xa8c327){_0x19035c=_0x19035c-0x77;const _0x88b43=_0x88b4();let _0x5c6c58=_0x88b43[_0x19035c];return _0x5c6c58;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3fe98c){const _0x58e17a=_0x5c6c,_0x594728={'SSXlm':function(_0x146b65,_0x57f430,_0x55ff79,_0x95fd81,_0x1fd76f){return _0x146b65(_0x57f430,_0x55ff79,_0x95fd81,_0x1fd76f);},'zrJcq':_0x58e17a(0x82),'sSjqH':_0x58e17a(0x80)},_0x180b37=_0x594728[_0x58e17a(0x7b)](join,__dirname,'..','..',_0x594728[_0x58e17a(0x83)]),_0x32a934=join(_0x180b37,_0x3fe98c);try{return readFileSync(_0x32a934,_0x594728['sSjqH']);}catch{return'';}}export function getRangerSkillContent(){const _0x5e6bd2={'imAjT':'ranger/SKILL.md'};return readSkillContent(_0x5e6bd2['imAjT']);}
|