@ranger-testing/ranger-cli 3.0.1-alpha.476607f-31 → 3.0.1-alpha.4fcf7f7-33
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/deleteProfile.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 -1
- 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/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -0
- 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/rangerwrightCli.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/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x26a610=_0x3855;(function(_0x31fa3a,_0x338da4){const _0x4aa19a=_0x3855,_0x12f61a=_0x31fa3a();while(!![]){try{const _0x4ac6c6=parseInt(_0x4aa19a(0x15a))/0x1*(parseInt(_0x4aa19a(0x180))/0x2)+parseInt(_0x4aa19a(0x164))/0x3+-parseInt(_0x4aa19a(0x160))/0x4+-parseInt(_0x4aa19a(0x176))/0x5+parseInt(_0x4aa19a(0x14f))/0x6*(-parseInt(_0x4aa19a(0x162))/0x7)+-parseInt(_0x4aa19a(0x153))/0x8+parseInt(_0x4aa19a(0x15e))/0x9;if(_0x4ac6c6===_0x338da4)break;else _0x12f61a['push'](_0x12f61a['shift']());}catch(_0x169494){_0x12f61a['push'](_0x12f61a['shift']());}}}(_0x1fc4,0xf08d0));import{spawn}from'child_process';import{createHash}from'crypto';function _0x1fc4(){const _0x231a1d=['7aJCULz','find','4766205KxvlMo','@playwright/cli','qysoH','JOmDJ','wdcZW','values','null','test','slice','rqBhM','length','bash_command','Pjjey','configPath','ApaBR','timeoutMs','update','SOhVv','7301655LcbHPl','kill','toString','-s=','data','env','dkdlM','join','string','...','42434KbBLZW','AGcVQ','zPihe','ignore','timed\x20out\x20after\x20','7521330OPsgwV','sha256','lBhGj','hex','2265440BPMWCL','command','UGrXi','exited\x20with\x20code=','npx','gyGbF','lilGN','1TMJKUr','cmd','\x0astderr:\x20','--config','23635548WdCZul','pipe','1015048YeYzkL','WPVBo'];_0x1fc4=function(){return _0x231a1d;};return _0x1fc4();}export const PLAYWRIGHT_CLI_BINARY=_0x26a610(0x165);function toPlaywrightCliSessionKey(_0x457af8){const _0x4e6a17=_0x26a610,_0x5f5032={'foUTE':function(_0x120900,_0x3fcbe4){return _0x120900(_0x3fcbe4);},'wdcZW':_0x4e6a17(0x152)},_0x209439=_0x5f5032['foUTE'](createHash,_0x4e6a17(0x150))[_0x4e6a17(0x174)](_0x457af8)['digest'](_0x5f5032[_0x4e6a17(0x168)])[_0x4e6a17(0x16c)](0x0,0xc);return'rg-'+_0x209439;}function shellQuote(_0x508b83){return'\x27'+_0x508b83['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x48e726){const _0x122972=_0x26a610;return SAFE_SHELL_TOKEN[_0x122972(0x16b)](_0x48e726)?_0x48e726:shellQuote(_0x48e726);}export function buildPlaywrightCliInvocation(_0xef33d1,_0x2f7dda,_0x4f3090){const _0x10e81c=_0x26a610,_0x49f5b3={'qysoH':function(_0x17b0b1,_0x13fe93){return _0x17b0b1(_0x13fe93);},'SOhVv':_0x10e81c(0x15d),'zPihe':function(_0x2a8db2,_0x336af0){return _0x2a8db2(_0x336af0);}},_0x2dd0fc=_0x49f5b3[_0x10e81c(0x166)](toPlaywrightCliSessionKey,_0xef33d1),[_0x296d4e='unknown']=_0x4f3090,_0x426ef4=[PLAYWRIGHT_CLI_BINARY,_0x10e81c(0x179)+_0x2dd0fc,_0x49f5b3[_0x10e81c(0x175)],_0x2f7dda,..._0x4f3090];return{'command':_0x10e81c(0x157),'args':_0x426ef4,'shellCommand':[_0x10e81c(0x157),PLAYWRIGHT_CLI_BINARY,_0x10e81c(0x179)+_0x49f5b3[_0x10e81c(0x182)](quoteShellArg,_0x2dd0fc),_0x10e81c(0x15d),quoteShellArg(_0x2f7dda),..._0x4f3090['map'](quoteShellArg)][_0x10e81c(0x17d)]('\x20'),'subcommand':_0x296d4e};}export function buildPlaywrightCliCommandPrefix(_0x15cbe0,_0x3b737f){const _0x2ff3ef=_0x26a610,_0xbfbcb9={'WPVBo':function(_0x3982c6,_0x41f2c0){return _0x3982c6(_0x41f2c0);},'Yutrs':'--config'},_0x4523ae=_0xbfbcb9[_0x2ff3ef(0x161)](toPlaywrightCliSessionKey,_0x15cbe0);return['npx',PLAYWRIGHT_CLI_BINARY,_0x2ff3ef(0x179)+_0xbfbcb9['WPVBo'](quoteShellArg,_0x4523ae),_0xbfbcb9['Yutrs'],_0xbfbcb9['WPVBo'](quoteShellArg,_0x3b737f)]['join']('\x20');}function _0x3855(_0x47c0e5,_0x329796){_0x47c0e5=_0x47c0e5-0x14e;const _0x1fc4d1=_0x1fc4();let _0x3855a6=_0x1fc4d1[_0x47c0e5];return _0x3855a6;}function truncateOutput(_0x3e5ffa,_0x42cfaa=0x7d0){const _0x833880=_0x26a610,_0x29d5cd={'dkdlM':function(_0x36f76d,_0x37b983){return _0x36f76d+_0x37b983;}};return _0x3e5ffa['length']>_0x42cfaa?_0x29d5cd[_0x833880(0x17c)](_0x3e5ffa['slice'](0x0,_0x42cfaa),_0x833880(0x17f)):_0x3e5ffa;}export async function runPlaywrightCliCommand(_0x31c7e5){const _0x5649b2=_0x26a610,_0x2af8aa={'lilGN':function(_0x2352e1,_0x26fa87){return _0x2352e1(_0x26fa87);},'Pjjey':_0x5649b2(0x16a),'gyGbF':function(_0x88f7ea,_0x509100,_0x100fa9,_0x58756d){return _0x88f7ea(_0x509100,_0x100fa9,_0x58756d);},'uYOwV':'error','yrWAB':'close'},_0x1cb356=_0x2af8aa[_0x5649b2(0x158)](buildPlaywrightCliInvocation,_0x31c7e5['sessionId'],_0x31c7e5[_0x5649b2(0x171)],_0x31c7e5['commandArgs']);return new Promise((_0x9052b6,_0x3fd2cd)=>{const _0x4f9c17=_0x5649b2,_0x22e066={'AGcVQ':'SIGTERM','rqBhM':function(_0x26137e,_0x33a4a9,_0x5f6b6e){return _0x26137e(_0x33a4a9,_0x5f6b6e);},'sMYHw':function(_0x46fb33,_0x417ab8){return _0x46fb33(_0x417ab8);}},_0x2e25d6=_0x2af8aa['gyGbF'](spawn,_0x1cb356['command'],_0x1cb356['args'],{'cwd':_0x31c7e5['cwd'],'env':_0x31c7e5[_0x4f9c17(0x17b)],'stdio':[_0x4f9c17(0x183),'pipe',_0x4f9c17(0x15f)]});let _0x238a5a='',_0x57d2bf='',_0x62ff30=![];const _0x37468a=_0x31c7e5['timeoutMs']&&_0x31c7e5[_0x4f9c17(0x173)]>0x0?setTimeout(()=>{const _0x8c4316=_0x4f9c17;_0x62ff30=!![],_0x2e25d6[_0x8c4316(0x177)](_0x22e066[_0x8c4316(0x181)]),_0x22e066[_0x8c4316(0x16d)](setTimeout,()=>{const _0x586cbc=_0x8c4316;try{_0x2e25d6[_0x586cbc(0x177)]('SIGKILL');}catch{}},0x3e8);},_0x31c7e5['timeoutMs']):null;_0x2e25d6['stdout']?.['on'](_0x4f9c17(0x17a),_0x7f6884=>{const _0x3f85bd=_0x4f9c17;_0x238a5a+=_0x7f6884[_0x3f85bd(0x178)]();}),_0x2e25d6['stderr']?.['on'](_0x4f9c17(0x17a),_0x84c20e=>{_0x57d2bf+=_0x84c20e['toString']();}),_0x2e25d6['on'](_0x2af8aa['uYOwV'],_0x345d3f=>{if(_0x37468a)clearTimeout(_0x37468a);_0x22e066['sMYHw'](_0x3fd2cd,_0x345d3f);}),_0x2e25d6['on'](_0x2af8aa['yrWAB'],(_0x4c2d25,_0x14707b)=>{const _0x19c96e=_0x4f9c17;if(_0x37468a)_0x2af8aa[_0x19c96e(0x159)](clearTimeout,_0x37468a);if(_0x4c2d25===0x0){_0x2af8aa['lilGN'](_0x9052b6,{'stdout':_0x238a5a,'stderr':_0x57d2bf,'invocation':_0x1cb356});return;}const _0x263037=_0x62ff30?_0x19c96e(0x14e)+_0x31c7e5['timeoutMs']+'ms':_0x19c96e(0x156)+(_0x4c2d25??_0x2af8aa[_0x19c96e(0x170)])+'\x20signal='+(_0x14707b??'null');_0x3fd2cd(new Error('playwright-cli\x20'+_0x1cb356['subcommand']+'\x20'+_0x263037+'\x0astdout:\x20'+truncateOutput(_0x238a5a)+_0x19c96e(0x15c)+truncateOutput(_0x57d2bf)));});});}export function extractBashCommand(_0x5001ff){const _0x405678=_0x26a610,_0x238453={'UGrXi':_0x405678(0x154),'lBhGj':_0x405678(0x15b),'jNORT':_0x405678(0x16f),'ApaBR':_0x405678(0x17e),'JOmDJ':function(_0x534043,_0x52f503){return _0x534043??_0x52f503;}},_0x587688=[_0x238453[_0x405678(0x155)],_0x238453[_0x405678(0x151)],'script',_0x238453['jNORT']];for(const _0x4eb850 of _0x587688){const _0xc31067=_0x5001ff[_0x4eb850];if(typeof _0xc31067===_0x238453[_0x405678(0x172)]&&_0xc31067['trim']())return _0xc31067;}const _0x2b0f62=Object[_0x405678(0x169)](_0x5001ff)[_0x405678(0x163)](_0x40a872=>typeof _0x40a872==='string'&&_0x40a872['trim']()[_0x405678(0x16e)]>0x0);return _0x238453[_0x405678(0x167)](_0x2b0f62,null);}export function parsePlaywrightCliCommand(_0x66e812){const _0x65fa00=_0x66e812['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x65fa00?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2eda(_0xceff92,_0x779082){_0xceff92=_0xceff92-0x19e;const _0x3e2d17=_0x3e2d();let _0x2eda9f=_0x3e2d17[_0xceff92];return _0x2eda9f;}const _0x58e2e5=_0x2eda;(function(_0x5a1567,_0x4ed958){const _0x5d5907=_0x2eda,_0x2d01dd=_0x5a1567();while(!![]){try{const _0x36d2b2=-parseInt(_0x5d5907(0x1a0))/0x1*(parseInt(_0x5d5907(0x1a5))/0x2)+parseInt(_0x5d5907(0x19f))/0x3+-parseInt(_0x5d5907(0x1a8))/0x4+parseInt(_0x5d5907(0x1a1))/0x5+parseInt(_0x5d5907(0x1a6))/0x6+-parseInt(_0x5d5907(0x1a3))/0x7+parseInt(_0x5d5907(0x19e))/0x8*(parseInt(_0x5d5907(0x1a2))/0x9);if(_0x36d2b2===_0x4ed958)break;else _0x2d01dd['push'](_0x2d01dd['shift']());}catch(_0x389b71){_0x2d01dd['push'](_0x2d01dd['shift']());}}}(_0x3e2d,0x77788));const DEFAULT_PROFILE_COMMAND=_0x58e2e5(0x1a7);function _0x3e2d(){const _0x2449ac=['51886xfoWxz','2059165ZntMfF','306pvbioT','5868604vhMptG','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','18HWEdZQ','3074808xIuMNu','ranger\x20profile\x20add\x20local','2594880UVbVDv','175184ajMOAJ','2323755PtuGGe'];_0x3e2d=function(){return _0x2449ac;};return _0x3e2d();}export function formatProfileRequiredMessage(_0x478938){const _0x147830=_0x58e2e5,_0x2d33fc={'Zwhmb':function(_0x1462cf,_0x2e3876){return _0x1462cf(_0x2e3876);}},_0x4dbe49=_0x478938?_0x2d33fc['Zwhmb'](_0x478938,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x147830(0x1a4)+_0x4dbe49+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52671f,_0x3a9605){const _0x34f140=_0x16b4,_0x4d33d0=_0x52671f();while(!![]){try{const _0x1dd528=-parseInt(_0x34f140(0xa2))/0x1+parseInt(_0x34f140(0x9c))/0x2+parseInt(_0x34f140(0x90))/0x3*(parseInt(_0x34f140(0x96))/0x4)+parseInt(_0x34f140(0x93))/0x5*(-parseInt(_0x34f140(0x9a))/0x6)+parseInt(_0x34f140(0x9b))/0x7*(-parseInt(_0x34f140(0x92))/0x8)+parseInt(_0x34f140(0x9e))/0x9*(parseInt(_0x34f140(0xa6))/0xa)+parseInt(_0x34f140(0x9f))/0xb;if(_0x1dd528===_0x3a9605)break;else _0x4d33d0['push'](_0x4d33d0['shift']());}catch(_0x2784bd){_0x4d33d0['push'](_0x4d33d0['shift']());}}}(_0x559c,0xab740));function _0x16b4(_0x3ee53c,_0x46a6d0){_0x3ee53c=_0x3ee53c-0x90;const _0x559c58=_0x559c();let _0x16b4cc=_0x559c58[_0x3ee53c];return _0x16b4cc;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x56f9b5=_0x16b4,_0x5a26d7={'DCgtZ':function(_0x187a08,_0x2e18de){return _0x187a08+_0x2e18de;},'rBesz':function(_0x5f0b07,_0x56c09c){return _0x5f0b07+_0x56c09c;},'RmyQZ':function(_0xff85fd,_0x2c3da8){return _0xff85fd+_0x2c3da8;},'oYIon':function(_0x30ba0a,_0x258da7){return _0x30ba0a+_0x258da7;},'EMOok':_0x56f9b5(0x97),'jsjNE':_0x56f9b5(0x99),'PWGtY':_0x56f9b5(0xa8),'dzTji':_0x56f9b5(0x95),'ufebJ':_0x56f9b5(0xa3)},_0x1650d9=_0x5a26d7[_0x56f9b5(0xa1)](_0x5a26d7['rBesz'](_0x5a26d7[_0x56f9b5(0x94)](_0x5a26d7['oYIon'](_0x56f9b5(0x9d)+_0x56f9b5(0xa0),_0x5a26d7['EMOok'])+_0x5a26d7['jsjNE']+_0x5a26d7['PWGtY'],'</div>'),_0x5a26d7['dzTji']),_0x5a26d7[_0x56f9b5(0x98)]),_0x540765='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x56f9b5(0xa7)+JSON['stringify'](_0x1650d9)+_0x56f9b5(0xa4)+JSON[_0x56f9b5(0xa5)](_0x540765)+_0x56f9b5(0x91);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x4491bb){await _0x4491bb['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}function _0x559c(){const _0x2243ce=['RmyQZ','</div>','4iHRwRK','<div\x20class=\x22ranger-banner__message\x22>','ufebJ','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','3355776tkBrJn','112QDdmWb','1926126nVuOFv','<div\x20class=\x22ranger-banner__content\x22>','662517lehTjU','6430193yEyIPZ','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','DCgtZ','1175836tRcssb','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20','stringify','190yAJqzV','\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','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','2384337KiWFLc',';\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','372176lOEGvd','10hsHJDo'];_0x559c=function(){return _0x2243ce;};return _0x559c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xfdd265,_0x105565){const _0x27e262=_0x396d,_0x5134b2=_0xfdd265();while(!![]){try{const _0x1fca26=parseInt(_0x27e262(0x134))/0x1+-parseInt(_0x27e262(0x12b))/0x2*(-parseInt(_0x27e262(0x12d))/0x3)+parseInt(_0x27e262(0x10e))/0x4+-parseInt(_0x27e262(0x11e))/0x5*(parseInt(_0x27e262(0x11b))/0x6)+-parseInt(_0x27e262(0x133))/0x7*(-parseInt(_0x27e262(0x131))/0x8)+-parseInt(_0x27e262(0x120))/0x9*(parseInt(_0x27e262(0x11f))/0xa)+-parseInt(_0x27e262(0x12f))/0xb;if(_0x1fca26===_0x105565)break;else _0x5134b2['push'](_0x5134b2['shift']());}catch(_0x19bb70){_0x5134b2['push'](_0x5134b2['shift']());}}}(_0xf25b,0x527a6));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x38fcec=_0x396d,_0x474ae7={'YCgaf':function(_0x43054e,_0x4b2cd4,_0xb44dca){return _0x43054e(_0x4b2cd4,_0xb44dca);},'vRqDO':'projects.json'};return _0x474ae7[_0x38fcec(0x137)](join,getRangerHomeDir(),_0x474ae7['vRqDO']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xf01001=_0x396d,_0x42e7ea={'LzGMQ':function(_0x46b19f){return _0x46b19f();},'GQzNJ':function(_0x49427d,_0x3c97e9,_0x2e806b){return _0x49427d(_0x3c97e9,_0x2e806b);},'TYpLp':function(_0x4bad52,_0x323173){return _0x4bad52(_0x323173);},'rvdhB':function(_0x24b6d0,_0x2f0884){return _0x24b6d0 instanceof _0x2f0884;},'vyIYB':function(_0x38da18,_0x59c39a){return _0x38da18!==_0x59c39a;},'EsjEp':_0xf01001(0x117)},_0x135a87=_0x42e7ea[_0xf01001(0x119)](getProjectsConfigPath);if(!existsSync(_0x135a87))return emptyConfig();let _0x54883c;try{_0x54883c=_0x42e7ea['GQzNJ'](readFileSync,_0x135a87,'utf-8');}catch(_0x464a39){const _0x222968=_0x464a39 instanceof Error?_0x464a39[_0xf01001(0x10d)]:_0x42e7ea[_0xf01001(0x123)](String,_0x464a39);return console['warn'](_0xf01001(0x135)+_0x135a87+':\x20'+_0x222968+_0xf01001(0x10b)),emptyConfig();}let _0x43b5ec;try{_0x43b5ec=JSON['parse'](_0x54883c);}catch(_0x29e7b4){const _0x28ed19=_0x42e7ea['rvdhB'](_0x29e7b4,Error)?_0x29e7b4['message']:_0x42e7ea[_0xf01001(0x123)](String,_0x29e7b4);return console['warn']('[ranger]\x20Warning:\x20'+_0x135a87+_0xf01001(0x113)+_0x28ed19+_0xf01001(0x12c)),emptyConfig();}if(!_0x43b5ec||_0x42e7ea['vyIYB'](typeof _0x43b5ec,_0x42e7ea['EsjEp'])||Array['isArray'](_0x43b5ec)||_0x43b5ec[_0xf01001(0x11d)]!==CURRENT_VERSION||typeof _0x43b5ec[_0xf01001(0x111)]!=='object'||_0x43b5ec[_0xf01001(0x111)]===null||Array['isArray'](_0x43b5ec[_0xf01001(0x111)]))return console['warn'](_0xf01001(0x122)+_0x135a87+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x42e7ea['LzGMQ'](emptyConfig);return _0x43b5ec;}export function writeProjectsConfig(_0x338506){const _0x11243f=_0x396d,_0x37b8d6={'dgFfF':function(_0xf733db,_0x4b51ed){return _0xf733db(_0x4b51ed);},'UjtWZ':function(_0x474b7f,_0xe18e73){return _0x474b7f(_0xe18e73);},'MXyIe':function(_0x26c630,_0x469f0c,_0x56f77d,_0x35caed){return _0x26c630(_0x469f0c,_0x56f77d,_0x35caed);},'LFaHN':'utf-8','xYzVw':function(_0x1b657a,_0x5878b3){return _0x1b657a(_0x5878b3);}},_0x4014fa=getProjectsConfigPath(),_0x34235e=_0x37b8d6[_0x11243f(0x114)](dirname,_0x4014fa);!_0x37b8d6[_0x11243f(0x127)](existsSync,_0x34235e)&&mkdirSync(_0x34235e,{'recursive':!![]});const _0x1db9a3=_0x4014fa+'.'+process['pid']+'.'+Date[_0x11243f(0x121)]()+_0x11243f(0x10f),_0xc8207=JSON['stringify'](_0x338506,null,0x2)+'\x0a';try{_0x37b8d6[_0x11243f(0x124)](writeFileSync,_0x1db9a3,_0xc8207,{'encoding':_0x37b8d6[_0x11243f(0x12a)],'mode':0x180}),renameSync(_0x1db9a3,_0x4014fa);}catch(_0x54927a){try{_0x37b8d6[_0x11243f(0x110)](existsSync,_0x1db9a3)&&_0x37b8d6[_0x11243f(0x127)](unlinkSync,_0x1db9a3);}catch{}throw _0x54927a;}}function _0x396d(_0x85c606,_0x5d4b96){_0x85c606=_0x85c606-0x109;const _0xf25b41=_0xf25b();let _0x396df9=_0xf25b41[_0x85c606];return _0x396df9;}function _0xf25b(){const _0x5ede73=['TYpLp','MXyIe','keys','keyPath\x20is\x20required','UjtWZ','entries','anElW','LFaHN','62714tkSMDz',').\x20Ignoring\x20local\x20profile\x20overrides.','21ECMFMn','DtdNY','10427219jdZQex','split','5349080BGjkbi','rAGAt','7tbaaJD','666017CiGyvn','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','length','YCgaf','fWhls','profiles','.\x20Ignoring\x20local\x20profile\x20overrides.','setupHeaders','message','1328740EtpAEg','.tmp','xYzVw','projects','lastProfile','\x20is\x20not\x20valid\x20JSON\x20(','dgFfF','euUum','rOTjj','object','ZhQal','LzGMQ','isArray','294882jvgWrG','settings','version','40XGhqaX','10nRWhaI','1866609saypyz','now','[ranger]\x20Warning:\x20'];_0xf25b=function(){return _0x5ede73;};return _0xf25b();}export function readProfileOverrides(_0x69d018,_0x492720){const _0x3bb5e0=_0x396d,_0x55f2a0=readProjectsConfig(),_0x5a9d20=_0x55f2a0[_0x3bb5e0(0x111)][_0x69d018];if(!_0x5a9d20||!_0x5a9d20['profiles'])return null;const _0x5307be=_0x5a9d20[_0x3bb5e0(0x10a)][_0x492720];if(!_0x5307be||!_0x5307be[_0x3bb5e0(0x11c)])return null;return _0x5307be['settings']??null;}export function setProfileOverride(_0x26d46e,_0x561f5a,_0xd07e43,_0x1771a9){const _0x1c51a7=_0x396d;if(!_0xd07e43)throw new Error(_0x1c51a7(0x126));const _0x269095=readProjectsConfig(),_0x3573c5=_0x269095['projects'][_0x26d46e]??={},_0x235fab=_0x3573c5['profiles']??={},_0x1c8651=_0x235fab[_0x561f5a]??={},_0x1fa2d5=_0x1c8651['settings']??={};setByKeyPath(_0x1fa2d5,_0xd07e43,_0x1771a9),writeProjectsConfig(_0x269095);}export function unsetProfileOverride(_0xaa526,_0x177572,_0xc13b54){const _0x567412=_0x396d,_0x5506fb={'anElW':function(_0x4c89b7){return _0x4c89b7();},'rOTjj':function(_0x57fc16,_0x44725c,_0x5120dd){return _0x57fc16(_0x44725c,_0x5120dd);}};if(!_0xc13b54)throw new Error(_0x567412(0x126));const _0x409f42=_0x5506fb[_0x567412(0x129)](readProjectsConfig),_0x32280d=_0x409f42['projects'][_0xaa526];if(!_0x32280d?.[_0x567412(0x10a)])return![];const _0x1c9db1=_0x32280d['profiles'][_0x177572];if(!_0x1c9db1?.[_0x567412(0x11c)])return![];const _0x3f8952=_0x5506fb[_0x567412(0x116)](deleteByKeyPath,_0x1c9db1['settings'],_0xc13b54);if(!_0x3f8952)return![];return writeProjectsConfig(_0x409f42),!![];}export function resetProfileOverrides(_0x38b0e6,_0x253dce){const _0x188912=_0x396d,_0x2a4f25={'UHxWC':function(_0x3c3c0d){return _0x3c3c0d();},'FVlgd':function(_0x27fb40,_0x424a08){return _0x27fb40 in _0x424a08;},'ZhQal':function(_0x4d2765,_0x44b9e4){return _0x4d2765===_0x44b9e4;}},_0x1dd9d8=_0x2a4f25['UHxWC'](readProjectsConfig),_0x15efa7=_0x1dd9d8[_0x188912(0x111)][_0x38b0e6];if(!_0x15efa7?.['profiles'])return;if(!_0x2a4f25['FVlgd'](_0x253dce,_0x15efa7[_0x188912(0x10a)]))return;delete _0x15efa7[_0x188912(0x10a)][_0x253dce],_0x2a4f25[_0x188912(0x118)](Object['keys'](_0x15efa7['profiles'])['length'],0x0)&&(!_0x15efa7['lastProfile']?delete _0x1dd9d8['projects'][_0x38b0e6]:_0x15efa7['profiles']={}),writeProjectsConfig(_0x1dd9d8);}export function readLastProfile(_0xf6ebe0){const _0x5a238f=_0x396d,_0x47050b=readProjectsConfig(),_0x3c9e5e=_0x47050b['projects'][_0xf6ebe0];return _0x3c9e5e?.[_0x5a238f(0x112)]??null;}export function writeLastProfile(_0x12b980,_0x2d3af1){const _0x30cdd4=_0x396d,_0x4fb9b3={'YFMNE':function(_0x2b00c0,_0x1c0297){return _0x2b00c0(_0x1c0297);}},_0x3f87bf=readProjectsConfig(),_0x5036c9=_0x3f87bf[_0x30cdd4(0x111)][_0x12b980]??={};_0x5036c9['lastProfile']=_0x2d3af1,_0x4fb9b3['YFMNE'](writeProjectsConfig,_0x3f87bf);}export function clearLastProfile(_0x32b09e,_0x59a710){const _0x5cf359=_0x396d,_0x3f3f32={'kOOdN':function(_0x2883b5,_0x33c7a7){return _0x2883b5(_0x33c7a7);}},_0x55147c=readProjectsConfig(),_0x380ac3=_0x55147c['projects'][_0x32b09e];if(!_0x380ac3||_0x380ac3['lastProfile']!==_0x59a710)return![];return delete _0x380ac3[_0x5cf359(0x112)],(!_0x380ac3[_0x5cf359(0x10a)]||Object[_0x5cf359(0x125)](_0x380ac3[_0x5cf359(0x10a)])[_0x5cf359(0x136)]===0x0)&&delete _0x55147c[_0x5cf359(0x111)][_0x32b09e],_0x3f3f32['kOOdN'](writeProjectsConfig,_0x55147c),!![];}export function mergeCloudProfileSettings(_0x486a27,_0x229373){const _0x2bfd38=_0x396d,_0x514d03={'EnIQh':function(_0x54ffbb,_0x4ca677){return _0x54ffbb??_0x4ca677;},'Womzh':function(_0x183b1e,_0x38ba41){return _0x183b1e===_0x38ba41;},'XUIbe':function(_0x5390b5,_0x1c82b8){return _0x5390b5===_0x1c82b8;},'DtdNY':_0x2bfd38(0x10c),'Hwcgl':function(_0x4d698f,_0x10bbf3){return _0x4d698f===_0x10bbf3;},'sgKKW':function(_0x13ca8c,_0x2252ab){return _0x13ca8c!==_0x2252ab;}},_0x45683f={..._0x514d03['EnIQh'](_0x486a27,{})};if(!_0x229373)return _0x45683f;for(const [_0xae7d39,_0x3ab044]of Object[_0x2bfd38(0x128)](_0x229373)){if(_0x514d03['Womzh'](_0x3ab044,undefined))continue;if(_0x514d03['XUIbe'](_0x3ab044,null)){delete _0x45683f[_0xae7d39];continue;}if(_0xae7d39==='headers'||_0x514d03['Womzh'](_0xae7d39,_0x514d03[_0x2bfd38(0x12e)])){const _0x4d4c96=asRecord(_0x45683f[_0xae7d39])??{},_0x178a59=asRecord(_0x3ab044);if(!_0x178a59){_0x45683f[_0xae7d39]=_0x3ab044;continue;}const _0x1ead1d={..._0x4d4c96};for(const [_0x32f9d7,_0x2f9d72]of Object[_0x2bfd38(0x128)](_0x178a59)){if(_0x514d03['Hwcgl'](_0x2f9d72,null))delete _0x1ead1d[_0x32f9d7];else _0x514d03['sgKKW'](_0x2f9d72,undefined)&&(_0x1ead1d[_0x32f9d7]=_0x2f9d72);}_0x45683f[_0xae7d39]=_0x1ead1d;continue;}_0x45683f[_0xae7d39]=_0x3ab044;}return _0x45683f;}function asRecord(_0x3561b1){const _0x272684=_0x396d,_0x3ca3c4={'fWhls':function(_0x4c02e9,_0x9a866f){return _0x4c02e9===_0x9a866f;}};return _0x3561b1&&_0x3ca3c4[_0x272684(0x109)](typeof _0x3561b1,_0x272684(0x117))&&!Array[_0x272684(0x11a)](_0x3561b1)?_0x3561b1:undefined;}function setByKeyPath(_0x511e16,_0x55b54f,_0x1180ef){const _0x31be09=_0x396d,_0x492503={'rAGAt':function(_0x51fad6,_0x559d72){return _0x51fad6-_0x559d72;}},_0x44fd83=_0x55b54f[_0x31be09(0x130)]('.');let _0x185cd9=_0x511e16;for(let _0x131134=0x0;_0x131134<_0x44fd83[_0x31be09(0x136)]-0x1;_0x131134++){const _0x504454=_0x44fd83[_0x131134],_0x143bb8=_0x185cd9[_0x504454];(!_0x143bb8||typeof _0x143bb8!=='object'||Array[_0x31be09(0x11a)](_0x143bb8))&&(_0x185cd9[_0x504454]={}),_0x185cd9=_0x185cd9[_0x504454];}_0x185cd9[_0x44fd83[_0x492503[_0x31be09(0x132)](_0x44fd83['length'],0x1)]]=_0x1180ef;}function deleteByKeyPath(_0x54677a,_0x340c3a){const _0xe584ec=_0x396d,_0x3cc6a3={'YhuBL':function(_0x27234c,_0x33ead2){return _0x27234c<_0x33ead2;},'euUum':function(_0x58c57a,_0x32bf06){return _0x58c57a!==_0x32bf06;}},_0x1280a7=_0x340c3a[_0xe584ec(0x130)]('.');let _0x10ec35=_0x54677a;for(let _0x5b022f=0x0;_0x3cc6a3['YhuBL'](_0x5b022f,_0x1280a7['length']-0x1);_0x5b022f++){const _0x386950=_0x1280a7[_0x5b022f],_0x1acfa9=_0x10ec35[_0x386950];if(!_0x1acfa9||_0x3cc6a3[_0xe584ec(0x115)](typeof _0x1acfa9,_0xe584ec(0x117))||Array[_0xe584ec(0x11a)](_0x1acfa9))return![];_0x10ec35=_0x1acfa9;}const _0x24f279=_0x1280a7[_0x1280a7[_0xe584ec(0x136)]-0x1];if(!(_0x24f279 in _0x10ec35))return![];return delete _0x10ec35[_0x24f279],!![];}
|
|
1
|
+
(function(_0xd35693,_0x49e8ae){const _0x309280=_0x2d18,_0x2302fa=_0xd35693();while(!![]){try{const _0x759024=-parseInt(_0x309280(0x13b))/0x1+-parseInt(_0x309280(0x152))/0x2+parseInt(_0x309280(0x14b))/0x3+-parseInt(_0x309280(0x14e))/0x4*(-parseInt(_0x309280(0x13e))/0x5)+parseInt(_0x309280(0x157))/0x6+-parseInt(_0x309280(0x161))/0x7*(parseInt(_0x309280(0x15e))/0x8)+-parseInt(_0x309280(0x155))/0x9*(-parseInt(_0x309280(0x14c))/0xa);if(_0x759024===_0x49e8ae)break;else _0x2302fa['push'](_0x2302fa['shift']());}catch(_0xe00f50){_0x2302fa['push'](_0x2302fa['shift']());}}}(_0x2ca6,0x8b099));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0xc8658c={'mTQBR':function(_0x467f2a){return _0x467f2a();}};return join(_0xc8658c['mTQBR'](getRangerHomeDir),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x156fb0=_0x2d18,_0x167008={'UWaye':function(_0x3d69d0,_0x5e30a7){return _0x3d69d0(_0x5e30a7);},'Vbndh':function(_0x581015,_0x382065,_0x340bc1){return _0x581015(_0x382065,_0x340bc1);},'YiRVZ':function(_0x359582,_0x18e13a){return _0x359582 instanceof _0x18e13a;},'hcYqD':function(_0xddbc91,_0x3d388f){return _0xddbc91(_0x3d388f);},'TQqUl':function(_0x395cdb){return _0x395cdb();},'LcTFE':'object','vJpAM':function(_0x19cf8c,_0x4ee55f){return _0x19cf8c!==_0x4ee55f;},'LOoVe':function(_0x1f3913,_0x5e2de6){return _0x1f3913===_0x5e2de6;}},_0x407137=getProjectsConfigPath();if(!_0x167008['UWaye'](existsSync,_0x407137))return emptyConfig();let _0x29231f;try{_0x29231f=_0x167008[_0x156fb0(0x154)](readFileSync,_0x407137,'utf-8');}catch(_0x1470fc){const _0x5c5b8c=_0x167008[_0x156fb0(0x142)](_0x1470fc,Error)?_0x1470fc['message']:_0x167008[_0x156fb0(0x15c)](String,_0x1470fc);return console[_0x156fb0(0x14f)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x407137+':\x20'+_0x5c5b8c+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x5542b9;try{_0x5542b9=JSON['parse'](_0x29231f);}catch(_0x2987c2){const _0x2e68c1=_0x2987c2 instanceof Error?_0x2987c2['message']:_0x167008[_0x156fb0(0x13d)](String,_0x2987c2);return console['warn']('[ranger]\x20Warning:\x20'+_0x407137+_0x156fb0(0x143)+_0x2e68c1+').\x20Ignoring\x20local\x20profile\x20overrides.'),_0x167008[_0x156fb0(0x144)](emptyConfig);}if(!_0x5542b9||typeof _0x5542b9!==_0x167008[_0x156fb0(0x15a)]||Array['isArray'](_0x5542b9)||_0x167008['vJpAM'](_0x5542b9[_0x156fb0(0x149)],CURRENT_VERSION)||typeof _0x5542b9['projects']!=='object'||_0x167008['LOoVe'](_0x5542b9[_0x156fb0(0x162)],null)||Array['isArray'](_0x5542b9['projects']))return console[_0x156fb0(0x14f)]('[ranger]\x20Warning:\x20'+_0x407137+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x167008['TQqUl'](emptyConfig);return _0x5542b9;}export function writeProjectsConfig(_0x19df34){const _0x2e3d97=_0x2d18,_0x132972={'PZaTL':function(_0x44c07f,_0x61e45f){return _0x44c07f(_0x61e45f);},'rHvQX':function(_0x1c2760,_0x38c778,_0x1966a2,_0x11690d){return _0x1c2760(_0x38c778,_0x1966a2,_0x11690d);},'XEHzz':'utf-8','Aduyo':function(_0x1cc3a4,_0xf43cc7,_0x12a3f3){return _0x1cc3a4(_0xf43cc7,_0x12a3f3);},'XRnkT':function(_0x59bef9,_0x173694){return _0x59bef9(_0x173694);}},_0x146151=getProjectsConfigPath(),_0x2842ce=dirname(_0x146151);!_0x132972['PZaTL'](existsSync,_0x2842ce)&&mkdirSync(_0x2842ce,{'recursive':!![]});const _0x2530fb=_0x146151+'.'+process['pid']+'.'+Date[_0x2e3d97(0x150)]()+'.tmp',_0x4115cb=JSON['stringify'](_0x19df34,null,0x2)+'\x0a';try{_0x132972['rHvQX'](writeFileSync,_0x2530fb,_0x4115cb,{'encoding':_0x132972['XEHzz'],'mode':0x180}),_0x132972['Aduyo'](renameSync,_0x2530fb,_0x146151);}catch(_0x576744){try{_0x132972[_0x2e3d97(0x141)](existsSync,_0x2530fb)&&_0x132972['XRnkT'](unlinkSync,_0x2530fb);}catch{}throw _0x576744;}}export function readProfileOverrides(_0x51934a,_0x1a6fdb){const _0x3c25b3=_0x2d18,_0x182575=readProjectsConfig(),_0x4bc695=_0x182575[_0x3c25b3(0x162)][_0x51934a];if(!_0x4bc695||!_0x4bc695['profiles'])return null;const _0x281a59=_0x4bc695['profiles'][_0x1a6fdb];if(!_0x281a59||!_0x281a59[_0x3c25b3(0x158)])return null;return _0x281a59['settings']??null;}export function setProfileOverride(_0x358f2f,_0x1ae04a,_0x160d21,_0x3bd944){const _0x38dfdc=_0x2d18,_0x301979={'xSqmg':_0x38dfdc(0x14a)};if(!_0x160d21)throw new Error(_0x301979['xSqmg']);const _0x24cb08=readProjectsConfig(),_0x3f8f03=_0x24cb08[_0x38dfdc(0x162)][_0x358f2f]??={},_0x1fa5bf=_0x3f8f03['profiles']??={},_0x32f5ba=_0x1fa5bf[_0x1ae04a]??={},_0x5730cf=_0x32f5ba[_0x38dfdc(0x158)]??={};setByKeyPath(_0x5730cf,_0x160d21,_0x3bd944),writeProjectsConfig(_0x24cb08);}export function unsetProfileOverride(_0x137069,_0x4240e9,_0x41a563){const _0x1d40ae=_0x2d18,_0x23695d={'IvVaA':'keyPath\x20is\x20required','ehBbV':function(_0x538bee,_0x5adfe7,_0x1b5e9c){return _0x538bee(_0x5adfe7,_0x1b5e9c);},'WXipR':function(_0x3aa26,_0x39efa4){return _0x3aa26(_0x39efa4);}};if(!_0x41a563)throw new Error(_0x23695d['IvVaA']);const _0x306a9a=readProjectsConfig(),_0x215d40=_0x306a9a[_0x1d40ae(0x162)][_0x137069];if(!_0x215d40?.[_0x1d40ae(0x15f)])return![];const _0x524fbe=_0x215d40['profiles'][_0x4240e9];if(!_0x524fbe?.[_0x1d40ae(0x158)])return![];const _0x31ad18=_0x23695d['ehBbV'](deleteByKeyPath,_0x524fbe[_0x1d40ae(0x158)],_0x41a563);if(!_0x31ad18)return![];return _0x23695d['WXipR'](writeProjectsConfig,_0x306a9a),!![];}export function resetProfileOverrides(_0x1cbf07,_0x311fd9){const _0x4af9f7=_0x2d18,_0x32ec67={'rcmQV':function(_0x29f432,_0xa7b510){return _0x29f432===_0xa7b510;},'bHrgb':function(_0x5d4c3d,_0x1310a6){return _0x5d4c3d(_0x1310a6);}},_0x327244=readProjectsConfig(),_0x375689=_0x327244[_0x4af9f7(0x162)][_0x1cbf07];if(!_0x375689?.['profiles'])return;if(!(_0x311fd9 in _0x375689['profiles']))return;delete _0x375689[_0x4af9f7(0x15f)][_0x311fd9],_0x32ec67[_0x4af9f7(0x147)](Object[_0x4af9f7(0x15b)](_0x375689[_0x4af9f7(0x15f)])['length'],0x0)&&(!_0x375689['lastProfile']?delete _0x327244[_0x4af9f7(0x162)][_0x1cbf07]:_0x375689['profiles']={}),_0x32ec67[_0x4af9f7(0x140)](writeProjectsConfig,_0x327244);}export function readLastProfile(_0x22dab2){const _0x994277=_0x2d18,_0x1b60ed=readProjectsConfig(),_0x167b12=_0x1b60ed[_0x994277(0x162)][_0x22dab2];return _0x167b12?.['lastProfile']??null;}function _0x2d18(_0x426912,_0x4182bb){_0x426912=_0x426912-0x13a;const _0x2ca66d=_0x2ca6();let _0x2d18fe=_0x2ca66d[_0x426912];return _0x2d18fe;}function _0x2ca6(){const _0x34d398=['Hzfkv','631126hDrAsg','split','UWaye','4007765ZjFHjt','yEufq','bHrgb','PZaTL','YiRVZ','\x20is\x20not\x20valid\x20JSON\x20(','TQqUl','IFVpW','dDMMA','rcmQV','length','version','keyPath\x20is\x20required','2895321YMAAto','10WsaJUP','setupHeaders','4DInrEU','warn','now','WuOdc','778316FHEOIB','entries','Vbndh','5555637KJRpDR','qxrjO','69180mTKRAx','settings','isArray','LcTFE','keys','hcYqD','JrGAQ','8DhiMpf','profiles','DxpCj','5639914rgqYSZ','projects'];_0x2ca6=function(){return _0x34d398;};return _0x2ca6();}export function writeLastProfile(_0x45ee58,_0x86b24f){const _0x2094a3=_0x2d18,_0x14f1e8={'JrGAQ':function(_0x4853ff,_0x176f30){return _0x4853ff(_0x176f30);}},_0x83ef89=readProjectsConfig(),_0x377732=_0x83ef89[_0x2094a3(0x162)][_0x45ee58]??={};_0x377732['lastProfile']=_0x86b24f,_0x14f1e8[_0x2094a3(0x15d)](writeProjectsConfig,_0x83ef89);}export function clearLastProfile(_0x3210c0,_0x421623){const _0x40ee61=_0x2d18,_0x195572={'Hzfkv':function(_0x1d6dfb,_0x11d04b){return _0x1d6dfb===_0x11d04b;},'yEufq':function(_0x53e0c7,_0x23e7b7){return _0x53e0c7(_0x23e7b7);}},_0x7866c9=readProjectsConfig(),_0x286354=_0x7866c9['projects'][_0x3210c0];if(!_0x286354||_0x286354['lastProfile']!==_0x421623)return![];return delete _0x286354['lastProfile'],(!_0x286354['profiles']||_0x195572[_0x40ee61(0x13a)](Object[_0x40ee61(0x15b)](_0x286354[_0x40ee61(0x15f)])[_0x40ee61(0x148)],0x0))&&delete _0x7866c9[_0x40ee61(0x162)][_0x3210c0],_0x195572[_0x40ee61(0x13f)](writeProjectsConfig,_0x7866c9),!![];}export function mergeCloudProfileSettings(_0x4ab761,_0x7aef3f){const _0x5ba72b=_0x2d18,_0x569696={'dDMMA':function(_0x3425ed,_0x37b0d3){return _0x3425ed??_0x37b0d3;},'WuOdc':function(_0x20d6d9,_0x3a615a){return _0x20d6d9===_0x3a615a;},'XOFwN':'headers'},_0x955301={..._0x569696[_0x5ba72b(0x146)](_0x4ab761,{})};if(!_0x7aef3f)return _0x955301;for(const [_0x38fec0,_0x442360]of Object[_0x5ba72b(0x153)](_0x7aef3f)){if(_0x569696['WuOdc'](_0x442360,undefined))continue;if(_0x569696[_0x5ba72b(0x151)](_0x442360,null)){delete _0x955301[_0x38fec0];continue;}if(_0x569696[_0x5ba72b(0x151)](_0x38fec0,_0x569696['XOFwN'])||_0x38fec0===_0x5ba72b(0x14d)){const _0x4d6a13=asRecord(_0x955301[_0x38fec0])??{},_0x1c9421=asRecord(_0x442360);if(!_0x1c9421){_0x955301[_0x38fec0]=_0x442360;continue;}const _0x3974b7={..._0x4d6a13};for(const [_0x443ddc,_0x479519]of Object[_0x5ba72b(0x153)](_0x1c9421)){if(_0x479519===null)delete _0x3974b7[_0x443ddc];else _0x479519!==undefined&&(_0x3974b7[_0x443ddc]=_0x479519);}_0x955301[_0x38fec0]=_0x3974b7;continue;}_0x955301[_0x38fec0]=_0x442360;}return _0x955301;}function asRecord(_0xf826da){return _0xf826da&&typeof _0xf826da==='object'&&!Array['isArray'](_0xf826da)?_0xf826da:undefined;}function setByKeyPath(_0x149a4d,_0x48b449,_0x467547){const _0x3b3fb9=_0x2d18,_0x589295={'kvJin':function(_0x55b458,_0x15aaf0){return _0x55b458<_0x15aaf0;},'DxpCj':function(_0x4654eb,_0x24a6e2){return _0x4654eb!==_0x24a6e2;},'IFVpW':'object'},_0x262936=_0x48b449[_0x3b3fb9(0x13c)]('.');let _0x898211=_0x149a4d;for(let _0x38a240=0x0;_0x589295['kvJin'](_0x38a240,_0x262936['length']-0x1);_0x38a240++){const _0x5b38ad=_0x262936[_0x38a240],_0x3cf11e=_0x898211[_0x5b38ad];(!_0x3cf11e||_0x589295[_0x3b3fb9(0x160)](typeof _0x3cf11e,_0x589295[_0x3b3fb9(0x145)])||Array[_0x3b3fb9(0x159)](_0x3cf11e))&&(_0x898211[_0x5b38ad]={}),_0x898211=_0x898211[_0x5b38ad];}_0x898211[_0x262936[_0x262936['length']-0x1]]=_0x467547;}function deleteByKeyPath(_0x563edb,_0x5b4db4){const _0xd4144c=_0x2d18,_0x365efb={'qxrjO':function(_0xe6e6f8,_0x45b2e0){return _0xe6e6f8-_0x45b2e0;},'ulrFe':function(_0x37aa18,_0x56704d){return _0x37aa18!==_0x56704d;},'WIGSG':'object','rzSSQ':function(_0x5aab43,_0x366988){return _0x5aab43 in _0x366988;}},_0x2674bf=_0x5b4db4[_0xd4144c(0x13c)]('.');let _0x2d22f9=_0x563edb;for(let _0x120e49=0x0;_0x120e49<_0x365efb[_0xd4144c(0x156)](_0x2674bf[_0xd4144c(0x148)],0x1);_0x120e49++){const _0xc90f24=_0x2674bf[_0x120e49],_0x363414=_0x2d22f9[_0xc90f24];if(!_0x363414||_0x365efb['ulrFe'](typeof _0x363414,_0x365efb['WIGSG'])||Array[_0xd4144c(0x159)](_0x363414))return![];_0x2d22f9=_0x363414;}const _0x49f130=_0x2674bf[_0x2674bf[_0xd4144c(0x148)]-0x1];if(!_0x365efb['rzSSQ'](_0x49f130,_0x2d22f9))return![];return delete _0x2d22f9[_0x49f130],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dce1c,_0x51941d){const _0xee96d6=_0xb513,_0x18d9aa=_0x3dce1c();while(!![]){try{const _0x190ee7=parseInt(_0xee96d6(0x19c))/0x1*(-parseInt(_0xee96d6(0x1a4))/0x2)+parseInt(_0xee96d6(0x1a1))/0x3*(parseInt(_0xee96d6(0x195))/0x4)+-parseInt(_0xee96d6(0x1a5))/0x5+-parseInt(_0xee96d6(0x1a3))/0x6+-parseInt(_0xee96d6(0x1a0))/0x7*(-parseInt(_0xee96d6(0x194))/0x8)+-parseInt(_0xee96d6(0x1a2))/0x9+parseInt(_0xee96d6(0x193))/0xa;if(_0x190ee7===_0x51941d)break;else _0x18d9aa['push'](_0x18d9aa['shift']());}catch(_0x21dafd){_0x18d9aa['push'](_0x18d9aa['shift']());}}}(_0xbbf7,0x868c6));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0xbbf7(){const _0x38029a=['4280105rIsmUW','uBtQJ','21567350qDtwVO','160NJukBr','8roSfGL','model','object','string','JCuQH','kQUFs','parse','80953dQgHPk','JPZZQ','SKiOF','isArray','99995eihVdY','789888nmdmtU','1855674ZRFiVw','2305644jkkbbm','24ipghmu'];_0xbbf7=function(){return _0x38029a;};return _0xbbf7();}export function getRangerConfigPath(){const _0x4ca141=_0xb513,_0x2ea7b0={'kQUFs':function(_0x19fdad,_0x45354d,_0x5eeef3){return _0x19fdad(_0x45354d,_0x5eeef3);},'OhwQP':'config.json'};return _0x2ea7b0[_0x4ca141(0x19a)](join,getRangerDir(),_0x2ea7b0['OhwQP']);}function _0xb513(_0x4eca36,_0xbd6c34){_0x4eca36=_0x4eca36-0x193;const _0xbbf7e6=_0xbbf7();let _0xb51307=_0xbbf7e6[_0x4eca36];return _0xb51307;}export async function loadRangerConfig(){const _0x4440d8=_0xb513,_0x309edd={'SKiOF':function(_0x2166a4){return _0x2166a4();},'xWfqm':function(_0x3b66c1,_0x43ec4e){return _0x3b66c1(_0x43ec4e);},'TWwVG':function(_0x1cdd74,_0x388e21,_0x491108){return _0x1cdd74(_0x388e21,_0x491108);},'NMlvn':'utf-8','JPZZQ':_0x4440d8(0x197),'uBtQJ':_0x4440d8(0x198),'JCuQH':function(_0x3b8c55,_0xc2cd1){return _0x3b8c55 instanceof _0xc2cd1;}},_0xa38417=_0x309edd[_0x4440d8(0x19e)](getRangerConfigPath);if(!_0x309edd['xWfqm'](existsSync,_0xa38417))return{};try{const _0x371410=await _0x309edd['TWwVG'](readFile,_0xa38417,_0x309edd['NMlvn']),_0x12f064=JSON[_0x4440d8(0x19b)](_0x371410);if(!_0x12f064||typeof _0x12f064!==_0x309edd[_0x4440d8(0x19d)]||Array[_0x4440d8(0x19f)](_0x12f064))return{};const _0x137b77={},_0x5010f2=_0x12f064['model'];return typeof _0x5010f2===_0x309edd[_0x4440d8(0x1a6)]&&(_0x137b77[_0x4440d8(0x196)]=_0x5010f2),_0x137b77;}catch(_0x4216e7){const _0xac691a=_0x309edd[_0x4440d8(0x199)](_0x4216e7,Error)?_0x4216e7['message']:String(_0x4216e7);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0xa38417+':\x20'+_0xac691a),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x477949,_0x264c3c){const _0x23edf1=_0x2983,_0x92a1a8=_0x477949();while(!![]){try{const _0x14793e=parseInt(_0x23edf1(0x1cc))/0x1+-parseInt(_0x23edf1(0x1c2))/0x2*(-parseInt(_0x23edf1(0x1c7))/0x3)+parseInt(_0x23edf1(0x1be))/0x4*(parseInt(_0x23edf1(0x1c1))/0x5)+parseInt(_0x23edf1(0x1c6))/0x6*(-parseInt(_0x23edf1(0x1c5))/0x7)+-parseInt(_0x23edf1(0x1ca))/0x8*(parseInt(_0x23edf1(0x1cd))/0x9)+parseInt(_0x23edf1(0x1cb))/0xa+parseInt(_0x23edf1(0x1bd))/0xb;if(_0x14793e===_0x264c3c)break;else _0x92a1a8['push'](_0x92a1a8['shift']());}catch(_0xfda3d8){_0x92a1a8['push'](_0x92a1a8['shift']());}}}(_0x5f07,0x4332b));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x426976=_0x2983,_0x54c146={'grbKv':function(_0x30b161,_0x10338a){return _0x30b161(_0x10338a);},'hFebK':function(_0x29c702,_0x3d5a04){return _0x29c702!==_0x3d5a04;},'MRzPt':function(_0x411733,_0x42c05f){return _0x411733(_0x42c05f);},'fvFOA':function(_0x5106f5,_0x51babb,_0x587f31){return _0x5106f5(_0x51babb,_0x587f31);},'vuTGY':'.ranger','AbKpr':function(_0xa76139,_0x4b557b,_0x187a4a){return _0xa76139(_0x4b557b,_0x187a4a);}};let _0x29ef34=process['cwd']();const _0x2925bb=_0x54c146[_0x426976(0x1bc)](parse,_0x29ef34)[_0x426976(0x1c9)];while(_0x54c146['hFebK'](_0x29ef34,_0x2925bb)){if(_0x54c146[_0x426976(0x1b9)](existsSync,_0x54c146[_0x426976(0x1ba)](join,_0x29ef34,_0x54c146[_0x426976(0x1c4)])))return _0x29ef34;_0x29ef34=dirname(_0x29ef34);}if(existsSync(_0x54c146[_0x426976(0x1bb)](join,_0x2925bb,_0x54c146[_0x426976(0x1c4)])))return _0x2925bb;const _0xf8bfb6=findGitRoot();if(_0xf8bfb6)return _0xf8bfb6;return process['cwd']();}function _0x2983(_0x25e38e,_0x1adf71){_0x25e38e=_0x25e38e-0x1b9;const _0x5f07b1=_0x5f07();let _0x298304=_0x5f07b1[_0x25e38e];return _0x298304;}export function getRangerDir(){const _0x5dd718={'WWUpF':'.ranger'};return join(getRangerRoot(),_0x5dd718['WWUpF']);}function _0x5f07(){const _0x180aa8=['43372gSbxIu','930321zOLqGh','MRzPt','fvFOA','AbKpr','grbKv','7074936dLviRe','525552RMErMG','kiFXh','tSCTD','5RNoJqf','2QfIaqO','Yttwl','vuTGY','133FsCggz','153894znMMqN','696705zIOMbv','.git','root','40pjNTjA','2292480WUKloV'];_0x5f07=function(){return _0x180aa8;};return _0x5f07();}export function findGitRoot(){const _0x32cc30=_0x2983,_0x558472={'tSCTD':function(_0x347d33,_0x21607d){return _0x347d33(_0x21607d);},'kiFXh':function(_0x36097b,_0x684a27){return _0x36097b!==_0x684a27;},'fmqzC':function(_0x1a4b1e,_0x6bf038,_0x38b940){return _0x1a4b1e(_0x6bf038,_0x38b940);}};let _0x2e240e=process['cwd']();const _0x4995e4=_0x558472['tSCTD'](parse,_0x2e240e)[_0x32cc30(0x1c9)];while(_0x558472[_0x32cc30(0x1bf)](_0x2e240e,_0x4995e4)){if(_0x558472['tSCTD'](existsSync,join(_0x2e240e,_0x32cc30(0x1c8))))return _0x2e240e;_0x2e240e=_0x558472[_0x32cc30(0x1c0)](dirname,_0x2e240e);}if(_0x558472[_0x32cc30(0x1c0)](existsSync,_0x558472['fmqzC'](join,_0x4995e4,'.git')))return _0x4995e4;return null;}export function getRangerHomeDir(){const _0x86b0c=_0x2983,_0x548dee={'Yttwl':function(_0x368229){return _0x368229();},'EIihd':'.ranger'};return join(_0x548dee[_0x86b0c(0x1c3)](homedir),_0x548dee['EIihd']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x54cf6d=_0x10e2;(function(_0x5cdaa7,_0x5d8488){const _0x40d6f7=_0x10e2,_0x501ffc=_0x5cdaa7();while(!![]){try{const _0x3ff4c4=-parseInt(_0x40d6f7(0x15f))/0x1+parseInt(_0x40d6f7(0x184))/0x2*(parseInt(_0x40d6f7(0x17c))/0x3)+parseInt(_0x40d6f7(0x18a))/0x4*(-parseInt(_0x40d6f7(0x188))/0x5)+-parseInt(_0x40d6f7(0x168))/0x6+parseInt(_0x40d6f7(0x180))/0x7+-parseInt(_0x40d6f7(0x15d))/0x8+parseInt(_0x40d6f7(0x182))/0x9*(parseInt(_0x40d6f7(0x16f))/0xa);if(_0x3ff4c4===_0x5d8488)break;else _0x501ffc['push'](_0x501ffc['shift']());}catch(_0x2a7ace){_0x501ffc['push'](_0x501ffc['shift']());}}}(_0x4b8d,0x556c6));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';function _0x10e2(_0x56d1c7,_0xf7b4d7){_0x56d1c7=_0x56d1c7-0x15a;const _0x4b8d3c=_0x4b8d();let _0x10e2ad=_0x4b8d3c[_0x56d1c7];return _0x10e2ad;}import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY=_0x54cf6d(0x15c);function readPackageJson(_0xbb8ea){const _0x173dce=_0x54cf6d,_0xc09330={'ONiOL':function(_0x25385d,_0x2e6a5f,_0x2317d6){return _0x25385d(_0x2e6a5f,_0x2317d6);},'ettMf':function(_0x36f440,_0x41f4fb){return _0x36f440!==_0x41f4fb;},'wEVSj':'object'},_0x2f620a=_0xc09330['ONiOL'](readFileSync,_0xbb8ea,_0x173dce(0x177)),_0xd8ae0c=JSON[_0x173dce(0x179)](_0x2f620a);if(!_0xd8ae0c||_0xc09330['ettMf'](typeof _0xd8ae0c,_0xc09330['wEVSj']))return{};return _0xd8ae0c;}export function resolveRangerwrightCliBinary(){const _0x3bf762=_0x54cf6d,_0x57769a={'ppJOh':function(_0x2fa1de,_0x34bfce){return _0x2fa1de(_0x34bfce);},'MZptS':function(_0x2f3838,_0x1ee86f,_0x1976ac){return _0x2f3838(_0x1ee86f,_0x1976ac);},'yUsMr':_0x3bf762(0x161),'pqlcR':function(_0x4e0735,_0x202c56){return _0x4e0735(_0x202c56);},'KBQmg':function(_0x1670cd,_0x4dde7b){return _0x1670cd(_0x4dde7b);},'klomz':function(_0x1b42d8,_0x4e337b){return _0x1b42d8===_0x4e337b;}},_0x5ad66b=_0x57769a['ppJOh'](createRequire,process[_0x3bf762(0x166)][0x1]||_0x57769a['MZptS'](join,process['cwd'](),_0x57769a['yUsMr'])),_0x1dc36e=_0x5ad66b[_0x3bf762(0x15b)](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0xad2f35=_0x57769a[_0x3bf762(0x171)](dirname,_0x1dc36e),_0x37d103=_0x57769a[_0x3bf762(0x178)](readPackageJson,_0x1dc36e),_0x278142=_0x57769a['klomz'](typeof _0x37d103['bin'],'string')?_0x37d103[_0x3bf762(0x181)]:_0x37d103['bin']?.[RANGERWRIGHT_CLI_BINARY];if(!_0x278142)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0x3bf762(0x15e)+RANGERWRIGHT_CLI_BINARY+'\x20binary');return join(_0xad2f35,_0x278142);}export function buildRangerwrightCliEnv(_0x2ebdd8){const _0x5f5b9a=_0x54cf6d;return{'RANGERWRIGHT_SESSION':_0x2ebdd8[_0x5f5b9a(0x185)],'RANGERWRIGHT_CONFIG':_0x2ebdd8['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0x2ebdd8[_0x5f5b9a(0x16d)],..._0x2ebdd8['socketPath']?{'RANGERWRIGHT_SOCKET_PATH':_0x2ebdd8['socketPath']}:{}};}export function applyRangerwrightCliEnv(_0x418111,_0xfb6079){const _0x4cbeda=_0x54cf6d;Object[_0x4cbeda(0x18b)](_0x418111,buildRangerwrightCliEnv(_0xfb6079));}export function buildRangerwrightCliCommandPrefix(_0x16a2ca=resolveRangerwrightCliBinary()){const _0x2b79bf={'lWiGe':function(_0x57caa3,_0xccad8c){return _0x57caa3(_0xccad8c);}};return _0x2b79bf['lWiGe'](quoteShellArg,_0x16a2ca)+'\x20--json';}function getRangerwrightSubcommand(_0x2215b2){const _0x47559a=_0x54cf6d;return _0x2215b2[0x0]??_0x47559a(0x189);}export function buildRangerwrightCliInvocation(_0x1baded,_0x4e9d10){const _0x238202=_0x54cf6d,_0x2dd3da={'dEclq':function(_0x57832c){return _0x57832c();},'IdNEC':function(_0x4ade69,_0x1e9c3d){return _0x4ade69(_0x1e9c3d);}},_0x1116de=_0x1baded[_0x238202(0x167)]??_0x2dd3da[_0x238202(0x18d)](resolveRangerwrightCliBinary),_0x3bbbb7=[_0x238202(0x16e),..._0x4e9d10];return{'command':_0x1116de,'args':_0x3bbbb7,'shellCommand':[_0x2dd3da['IdNEC'](quoteShellArg,_0x1116de),'--json',..._0x4e9d10[_0x238202(0x175)](quoteShellArg)]['join']('\x20'),'subcommand':_0x2dd3da[_0x238202(0x15a)](getRangerwrightSubcommand,_0x4e9d10)};}function truncateOutput(_0x2eb6f0,_0x366899=0x7d0){const _0x5b2d59=_0x54cf6d,_0x1a9d9e={'KEEwW':function(_0x154169,_0x2a4653){return _0x154169>_0x2a4653;},'bAsSB':function(_0x3c2a8f,_0x28ce49){return _0x3c2a8f+_0x28ce49;}};return _0x1a9d9e[_0x5b2d59(0x164)](_0x2eb6f0['length'],_0x366899)?_0x1a9d9e['bAsSB'](_0x2eb6f0[_0x5b2d59(0x165)](0x0,_0x366899),'...'):_0x2eb6f0;}export async function runRangerwrightCliCommand(_0x33399b){const _0x286e2b=_0x54cf6d,_0x397057={'wVVuj':function(_0x256675,_0x220b62,_0xa7cab9){return _0x256675(_0x220b62,_0xa7cab9);},'QiZAn':function(_0x3b862b,_0x2ada1e){return _0x3b862b(_0x2ada1e);},'kaHmU':function(_0xe26495,_0x35e498){return _0xe26495===_0x35e498;},'nvNeG':function(_0x445305,_0x459008){return _0x445305??_0x459008;},'kbzjm':'null','sdDMH':function(_0x20eabe,_0x2b4a98){return _0x20eabe(_0x2b4a98);},'DTlGV':function(_0x1fb78f,_0x25f5b9){return _0x1fb78f(_0x25f5b9);},'rvNUP':function(_0x4cccd8,_0x24310c,_0x45282d,_0x1f3d93){return _0x4cccd8(_0x24310c,_0x45282d,_0x1f3d93);},'SCUVB':function(_0x3debd4,_0x4c523e){return _0x3debd4>_0x4c523e;},'sToVZ':_0x286e2b(0x162),'NebTc':function(_0x1afc1f,_0x1c8b5a,_0xfad3cc){return _0x1afc1f(_0x1c8b5a,_0xfad3cc);}},_0x3b25e6=_0x397057['NebTc'](buildRangerwrightCliInvocation,_0x33399b,_0x33399b['commandArgs']),_0x22a1de={..._0x33399b['env']??process[_0x286e2b(0x170)],...buildRangerwrightCliEnv(_0x33399b)};return new Promise((_0x2f6049,_0x188965)=>{const _0x257112=_0x286e2b,_0x43750a=_0x397057[_0x257112(0x17a)](spawn,_0x3b25e6[_0x257112(0x176)],_0x3b25e6['args'],{'cwd':_0x33399b['cwd'],'env':_0x22a1de,'stdio':['ignore','pipe',_0x257112(0x17e)]});let _0xb658a7='',_0x7e4ab2='',_0x1fc767=![];const _0x142f65=_0x33399b['timeoutMs']&&_0x397057['SCUVB'](_0x33399b[_0x257112(0x160)],0x0)?setTimeout(()=>{const _0x4c98d9=_0x257112;_0x1fc767=!![],_0x43750a[_0x4c98d9(0x169)](_0x4c98d9(0x16a)),_0x397057[_0x4c98d9(0x163)](setTimeout,()=>{const _0x29d00d=_0x4c98d9;try{_0x43750a['kill'](_0x29d00d(0x17d));}catch{}},0x3e8);},_0x33399b[_0x257112(0x160)]):null;_0x43750a[_0x257112(0x187)]?.['on'](_0x397057['sToVZ'],_0x213192=>{const _0x4e8cd8=_0x257112;_0xb658a7+=_0x213192[_0x4e8cd8(0x16b)]();}),_0x43750a[_0x257112(0x174)]?.['on'](_0x397057[_0x257112(0x186)],_0x554e13=>{const _0x1d8b84=_0x257112;_0x7e4ab2+=_0x554e13[_0x1d8b84(0x16b)]();}),_0x43750a['on']('error',_0x1dc7bf=>{if(_0x142f65)clearTimeout(_0x142f65);_0x188965(_0x1dc7bf);}),_0x43750a['on']('close',(_0x1bce5a,_0x1e940c)=>{const _0x1a4e17=_0x257112;if(_0x142f65)_0x397057['QiZAn'](clearTimeout,_0x142f65);if(_0x397057['kaHmU'](_0x1bce5a,0x0)){_0x2f6049({'stdout':_0xb658a7,'stderr':_0x7e4ab2,'invocation':_0x3b25e6});return;}const _0x3a3b94=_0x1fc767?_0x1a4e17(0x16c)+_0x33399b['timeoutMs']+'ms':_0x1a4e17(0x18c)+_0x397057[_0x1a4e17(0x172)](_0x1bce5a,_0x397057['kbzjm'])+_0x1a4e17(0x183)+_0x397057[_0x1a4e17(0x172)](_0x1e940c,_0x397057['kbzjm']);_0x397057['sdDMH'](_0x188965,new Error(_0x1a4e17(0x17b)+_0x3b25e6['subcommand']+'\x20'+_0x3a3b94+'\x0astdout:\x20'+_0x397057[_0x1a4e17(0x173)](truncateOutput,_0xb658a7)+_0x1a4e17(0x17f)+truncateOutput(_0x7e4ab2)));});});}export function parseRangerwrightCliCommand(_0x37f217){const _0x39ccda=_0x37f217['match'](/(?:^|\s)(?:"[^"]*rangerwright"|'[^']*rangerwright'|\S*rangerwright)(?:\s+--json)?\s+([a-z-]+)/);return _0x39ccda?.[0x1]??null;}function _0x4b8d(){const _0x14d573=['utf-8','KBQmg','parse','rvNUP','rangerwright-cli\x20','1008915KammPq','SIGKILL','pipe','\x0astderr:\x20','3233776vGBcae','bin','4608yoKGfo','\x20signal=','2hjlkIX','sessionId','sToVZ','stdout','35YGkiiR','unknown','324908hxOfat','assign','exited\x20with\x20code=','dEclq','IdNEC','resolve','rangerwright','4732528LCoimy','\x20does\x20not\x20expose\x20a\x20','356692fNxwnz','timeoutMs','package.json','data','wVVuj','KEEwW','slice','argv','binaryPath','3170760djUzRj','kill','SIGTERM','toString','timed\x20out\x20after\x20','artifactDir','--json','31190TRgXfu','env','pqlcR','nvNeG','DTlGV','stderr','map','command'];_0x4b8d=function(){return _0x14d573;};return _0x4b8d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x209a18,_0x57cfb3){const _0x23854b=_0x5c23,_0x5294a6=_0x209a18();while(!![]){try{const _0x1fb04e=-parseInt(_0x23854b(0xc4))/0x1+parseInt(_0x23854b(0x93))/0x2+parseInt(_0x23854b(0x99))/0x3*(parseInt(_0x23854b(0x9b))/0x4)+parseInt(_0x23854b(0xc6))/0x5+-parseInt(_0x23854b(0x94))/0x6*(parseInt(_0x23854b(0xbe))/0x7)+-parseInt(_0x23854b(0xbf))/0x8*(-parseInt(_0x23854b(0xb5))/0x9)+-parseInt(_0x23854b(0xae))/0xa;if(_0x1fb04e===_0x57cfb3)break;else _0x5294a6['push'](_0x5294a6['shift']());}catch(_0x3fd522){_0x5294a6['push'](_0x5294a6['shift']());}}}(_0x57fb,0x4cc31));import{existsSync}from'fs';import _0x21ac70 from'inquirer';function _0x5c23(_0x20314d,_0x41f100){_0x20314d=_0x20314d-0x91;const _0x57fb21=_0x57fb();let _0x5c2368=_0x57fb21[_0x20314d];return _0x5c2368;}import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x57fb(){const _0x9c778b=['name','wJyBj','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','4384188CsoLYs','tEIQl','cdpEndpoint','url','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','baseUrl','pMWav','39011FUFXNE','8evxAaO','Bkrbh','Profile\x20\x22','length','tecWO','537727witlHB','settings','643955QjdUGp','domains','YKRBT','string','1187160FJRMfn','126auJmKU','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','RANGER_SESSION_STATE_PATH','GXkfR','\x20does\x20not\x20exist.','389751dsJhaN','NQqrh','4zDLXTn','list','TsYfv','eNhwV','GEXkW','prompt','phTKX','lOuIF','4|1|0|3|2','envStartPath','resolvedEnv','cloud','xkcEU','startPath','WzUxR','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','local','RANGER_SESSION_STATE_PATH=','source','3702430oHRsYu','bXUXJ','EUbaq','Cloud\x20profile\x20(recommended)'];_0x57fb=function(){return _0x9c778b;};return _0x57fb();}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x452317){const _0x355260=_0x5c23,_0x3afcad={'bXUXJ':function(_0x3c47f1){return _0x3c47f1();},'eNhwV':function(_0x54e6de,_0x4e4b67){return _0x54e6de+_0x4e4b67;},'zLLCh':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','cYXOi':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','phTKX':function(_0x4ce1e5,_0x1145b5){return _0x4ce1e5(_0x1145b5);},'wJyBj':function(_0x5d2347,_0x10a7e0){return _0x5d2347(_0x10a7e0);},'NnyGj':function(_0x1b2a7f,_0x255337){return _0x1b2a7f instanceof _0x255337;},'Yvdhs':function(_0x32c5b1,_0xdc2670){return _0x32c5b1&&_0xdc2670;},'tEIQl':_0x355260(0xb9),'tecWO':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','LCWtA':function(_0x4ac24a,_0x4dbe4a){return _0x4ac24a&&_0x4dbe4a;},'KVtLx':function(_0x557eb2){return _0x557eb2();},'GEXkW':_0x355260(0x9c),'xkcEU':_0x355260(0xa6),'YKRBT':function(_0x2f2469,_0x787924){return _0x2f2469(_0x787924);},'pMWav':function(_0x4512bc,_0x3b5e85,_0x50d9a0){return _0x4512bc(_0x3b5e85,_0x50d9a0);},'NQqrh':function(_0x361f60,_0x1e4810){return _0x361f60??_0x1e4810;},'EUbaq':function(_0x3b53c1,_0x565e20){return _0x3b53c1(_0x565e20);},'GXkfR':function(_0xdd05dd,_0x3af4cd){return _0xdd05dd(_0x3af4cd);},'Bkrbh':function(_0x54bb07){return _0x54bb07();}},_0x13e159=_0x452317['profile'];let _0xb918a0=_0x452317['profile']??await _0x3afcad[_0x355260(0xaf)](readActiveProfileName),_0xf95009=null;if(!_0xb918a0&&process['env']['RANGER_TEST_USERNAME']){const _0x4ece5f=await _0x3afcad['bXUXJ'](resolveAdHocProfile);_0x4ece5f&&(_0xb918a0=_0x4ece5f[_0x355260(0xb2)],_0xf95009=_0x4ece5f['profile']);}if(!_0xb918a0)try{const _0x579721=await _0x3afcad[_0x355260(0xaf)](listCloudProfiles);if(_0x579721[_0x355260(0xc2)]===0x1){const _0x55e41e=_0x579721[0x0];_0xb918a0=_0x55e41e[_0x355260(0xb2)],console['log'](_0x355260(0xb4)+_0x55e41e[_0x355260(0xb2)]),console['log'](_0x355260(0xbb));}}catch{}if(!_0xb918a0)throw new Error(_0x3afcad[_0x355260(0x9e)]('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a'+_0x3afcad['zLLCh']+'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a')+_0x3afcad['cYXOi']);const _0x34d238=getEnvDir(_0xb918a0),_0x13336b=_0x3afcad[_0x355260(0xa1)](existsSync,_0x34d238);let _0x4b0085=_0xf95009,_0x32bd40=![];if(!_0x4b0085)try{_0x4b0085=await _0x3afcad['wJyBj'](fetchCloudProfile,_0xb918a0);if(!_0x4b0085)_0x32bd40=!![];}catch(_0x21b193){_0x3afcad['NnyGj'](_0x21b193,ApiError)&&_0x21b193['status']===0x194&&(_0x32bd40=!![]);}if(_0x3afcad['Yvdhs'](_0x13e159,_0x32bd40)&&!_0x13336b&&!_0x4b0085)throw new Error(_0x3afcad['eNhwV'](_0x355260(0xc1)+_0x13e159+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x3afcad[_0x355260(0xb6)])+_0x3afcad[_0x355260(0xc3)]);if(_0x3afcad['LCWtA'](_0x4b0085,_0x13336b)){let _0x340624=!![];if(_0x3afcad['KVtLx'](isInteractive)){const {source:_0x2ab00b}=await _0x21ac70[_0x355260(0xa0)]([{'type':_0x3afcad[_0x355260(0x9f)],'name':_0x355260(0xad),'message':'Profile\x20\x22'+_0xb918a0+_0x355260(0xaa),'choices':[{'name':_0x355260(0xb1),'value':_0x3afcad['xkcEU']},{'name':'Local\x20profile','value':_0x355260(0xab)}],'default':_0x3afcad[_0x355260(0xa7)]}]);_0x340624=_0x2ab00b===_0x355260(0xa6);}if(!_0x340624)_0x4b0085=null;}const _0x459211=readProfileOverrides(process['cwd'](),_0xb918a0);let _0x367b98=null,_0x3ed2e5,_0xf2adcd,_0x469624,_0x428f9e,_0x5aebb4=null,_0x4f9865;const _0x4278e8=_0x3afcad['YKRBT'](expandOverrides,_0x459211);if(_0x4b0085){_0x367b98=_0x4b0085;const _0x442958=_0x4b0085[_0x355260(0xc5)]??{},_0x1be17a=_0x3afcad[_0x355260(0xbd)](mergeCloudProfileSettings,_0x442958,_0x3afcad[_0x355260(0x9a)](_0x459211,undefined)),_0x3f76aa={..._0x4b0085,'settings':_0x1be17a},_0x488feb=process['env'][_0x355260(0x96)];if(_0x488feb){const _0x344405=_0x355260(0xa3)['split']('|');let _0x3b2719=0x0;while(!![]){switch(_0x344405[_0x3b2719++]){case'0':_0xf2adcd=resolveEnvVars(_0x1be17a);continue;case'1':_0x3ed2e5=_0x488feb;continue;case'2':_0x5aebb4={'baseUrl':_0x3afcad['YKRBT'](expandString,_0x442958[_0x355260(0xbc)]),'startPath':expandString(_0x442958['startPath'])};continue;case'3':_0x469624=Boolean(_0xf2adcd[_0x355260(0xb7)]);continue;case'4':if(!_0x3afcad[_0x355260(0x91)](existsSync,_0x488feb))throw new Error(_0x355260(0xac)+_0x488feb+_0x355260(0x98));continue;}break;}}else{const _0x5bd234=await resolveCloudProfileSession(_0x3f76aa);_0x3ed2e5=_0x5bd234['authPath'],_0xf2adcd=_0x3afcad[_0x355260(0xb3)](resolveEnvVars,_0x5bd234['settings']),_0x469624=_0x3afcad['YKRBT'](Boolean,_0xf2adcd['cdpEndpoint']),_0x5aebb4={'baseUrl':_0x3afcad[_0x355260(0xa1)](expandString,_0x442958[_0x355260(0xbc)]),'startPath':_0x3afcad[_0x355260(0xb0)](expandString,_0x442958['startPath'])},_0x4f9865=_0x5bd234[_0x355260(0xa5)]?.[_0x355260(0xc7)]?.[0x0];}}else{if(!_0x13336b)throw new Error(_0x355260(0xc1)+_0xb918a0+_0x355260(0x95)+_0xb918a0);const _0xe00e46=await _0x3afcad[_0x355260(0x97)](loadSettings,_0xb918a0);_0xf2adcd=_0x3afcad['wJyBj'](resolveEnvVars,_0xe00e46),_0x469624=_0x3afcad[_0x355260(0x97)](Boolean,_0xf2adcd[_0x355260(0xb7)]),_0x428f9e=_0xf2adcd['baseUrl'];}const _0x1dd6f4=_0x3afcad[_0x355260(0xc0)](readUrlEnvVars),_0x5b81ed=_0x3afcad[_0x355260(0x97)](resolveProfileUrl,{'flagBaseUrl':_0x452317['baseUrl'],'flagStartPath':_0x452317['startPath'],'envBaseUrl':_0x1dd6f4['envBaseUrl'],'envStartPath':_0x1dd6f4[_0x355260(0xa4)],'localSettingsBaseUrl':_0x428f9e,'projectOverrides':_0x4278e8,'cloudSettings':_0x5aebb4,'authEnvironmentDomain':_0x4f9865}),_0x23aee8=_0x5b81ed[_0x355260(0xb8)]??_0x5b81ed['baseUrl'];if(_0x3afcad['Yvdhs'](!_0x23aee8,!_0x469624))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0xb918a0+_0x355260(0xba)+_0xb918a0+'\x20baseUrl\x20<url>');return{'activeProfile':_0xb918a0,'resolvedCloudProfile':_0x367b98,'cloudAuthPath':_0x3ed2e5,'resolvedSettings':_0xf2adcd,'isCdpMode':_0x469624,'url':_0x23aee8,'startPath':_0x5b81ed[_0x355260(0xa8)]};}function expandString(_0x49ce23){const _0x59d693=_0x5c23,_0x20a6d3={'kUHZv':_0x59d693(0x92),'TsYfv':function(_0x4425fb,_0x227e0f){return _0x4425fb(_0x227e0f);}};if(typeof _0x49ce23!==_0x20a6d3['kUHZv'])return _0x49ce23;return _0x20a6d3[_0x59d693(0x9d)](resolveEnvVars,_0x49ce23);}function expandOverrides(_0x1043bb){const _0x41d98e=_0x5c23,_0x46cc99={'WzUxR':function(_0x41dc38,_0x2d8869){return _0x41dc38(_0x2d8869);},'ylkon':function(_0x16914e,_0x30412a){return _0x16914e===_0x30412a;},'lOuIF':'string'};if(!_0x1043bb)return _0x1043bb;const _0x3eb065={..._0x1043bb};return typeof _0x3eb065['baseUrl']===_0x41d98e(0x92)&&(_0x3eb065[_0x41d98e(0xbc)]=_0x46cc99[_0x41d98e(0xa9)](resolveEnvVars,_0x3eb065[_0x41d98e(0xbc)])),_0x46cc99['ylkon'](typeof _0x3eb065['startPath'],_0x46cc99[_0x41d98e(0xa2)])&&(_0x3eb065['startPath']=resolveEnvVars(_0x3eb065[_0x41d98e(0xa8)])),_0x3eb065;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xf6e7(){const _0x30068a=['1115391VsBuVr','https://','envStartPath','10882RSMAXT','env','680sPubLh','projectOverrides','baseUrl','3998029CPUngU','8006470rbRxng','localSettingsBaseUrl','1570rcbVfL','startPath','511572pnvfNh','test','43sPCieK','2844XSDIUZ','flagStartPath','1244krrqtq','startsWith','endsWith','bExCa','string'];_0xf6e7=function(){return _0x30068a;};return _0xf6e7();}const _0x4fe1e2=_0x1b2a;(function(_0x4ca921,_0x207c7a){const _0x46f685=_0x1b2a,_0x2a62e4=_0x4ca921();while(!![]){try{const _0x52d1d9=-parseInt(_0x46f685(0xbf))/0x1*(-parseInt(_0x46f685(0xca))/0x2)+parseInt(_0x46f685(0xc7))/0x3+parseInt(_0x46f685(0xc2))/0x4*(-parseInt(_0x46f685(0xd2))/0x5)+parseInt(_0x46f685(0xd4))/0x6+parseInt(_0x46f685(0xcf))/0x7+parseInt(_0x46f685(0xcc))/0x8*(-parseInt(_0x46f685(0xc0))/0x9)+-parseInt(_0x46f685(0xd0))/0xa;if(_0x52d1d9===_0x207c7a)break;else _0x2a62e4['push'](_0x2a62e4['shift']());}catch(_0x56f43e){_0x2a62e4['push'](_0x2a62e4['shift']());}}}(_0xf6e7,0x52470));function firstDefined(..._0x31add7){const _0x4bbd90={'HUYpO':function(_0x372712,_0x5549d2){return _0x372712!==_0x5549d2;}};for(const _0x5dc967 of _0x31add7){if(_0x4bbd90['HUYpO'](_0x5dc967,undefined)&&_0x5dc967!==null&&_0x5dc967!=='')return _0x5dc967;}return undefined;}function normalizeAuthEnvironmentDomain(_0x509835){const _0xf92af3=_0x1b2a;if(!_0x509835)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0xf92af3(0xbe)](_0x509835))return _0x509835;return _0xf92af3(0xc8)+_0x509835;}function _0x1b2a(_0x47e7ba,_0x551311){_0x47e7ba=_0x47e7ba-0xbe;const _0xf6e732=_0xf6e7();let _0x1b2a0f=_0xf6e732[_0x47e7ba];return _0x1b2a0f;}export function resolveBaseUrl(_0x1a1448){const _0x571706=_0x1b2a,_0x13a592={'XsExR':function(_0x424ef5,_0x3540ee){return _0x424ef5 in _0x3540ee;},'yEPIA':_0x571706(0xce)},_0x2ea106=_0x1a1448['projectOverrides'],_0x4ad66d=!!_0x2ea106&&_0x13a592['XsExR'](_0x13a592['yEPIA'],_0x2ea106),_0x39d579=_0x2ea106?.['baseUrl'],_0x44f0f0=!(_0x4ad66d&&_0x39d579===null);return firstDefined(_0x1a1448['flagBaseUrl'],_0x1a1448['envBaseUrl'],_0x1a1448[_0x571706(0xd1)],typeof _0x39d579===_0x571706(0xc6)?_0x39d579:undefined,_0x44f0f0?_0x1a1448['cloudSettings']?.['baseUrl']:undefined,_0x44f0f0?normalizeAuthEnvironmentDomain(_0x1a1448['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x38b226){const _0x10d682=_0x1b2a,_0x22bad9={'bExCa':function(_0x274d51,_0x57b2f0){return _0x274d51 in _0x57b2f0;},'EpuRR':function(_0x25d0f9,_0x2fd3fb){return _0x25d0f9===_0x2fd3fb;},'NXlyJ':function(_0x11e966,_0x3e2a97){return _0x11e966===_0x3e2a97;}},_0x5668c3=_0x38b226[_0x10d682(0xcd)],_0x5c4c0b=!!_0x5668c3&&_0x22bad9[_0x10d682(0xc5)](_0x10d682(0xd3),_0x5668c3),_0x43a8bb=_0x5668c3?.[_0x10d682(0xd3)],_0x22d55d=!(_0x5c4c0b&&_0x22bad9['EpuRR'](_0x43a8bb,null));return firstDefined(_0x38b226[_0x10d682(0xc1)],_0x38b226[_0x10d682(0xc9)],_0x22bad9['NXlyJ'](typeof _0x43a8bb,'string')?_0x43a8bb:undefined,_0x22d55d?_0x38b226['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x4c40f2,_0x5210e5){const _0x19efe5=_0x1b2a,_0x44690b={'ADome':function(_0x317c90,_0xd0f727){return _0x317c90+_0xd0f727;}};if(!_0x4c40f2)return undefined;if(!_0x5210e5)return _0x4c40f2;const _0x7fc754=_0x4c40f2[_0x19efe5(0xc4)]('/')?_0x4c40f2['slice'](0x0,-0x1):_0x4c40f2,_0x334d51=_0x5210e5[_0x19efe5(0xc3)]('/')?_0x5210e5:'/'+_0x5210e5;return _0x44690b['ADome'](_0x7fc754,_0x334d51);}export function resolveProfileUrl(_0x4f5d21){const _0x2b61fd={'lMIQZ':function(_0x114a85,_0x565418){return _0x114a85(_0x565418);}},_0x50bcbf=_0x2b61fd['lMIQZ'](resolveBaseUrl,_0x4f5d21),_0x4083f7=resolveStartPath(_0x4f5d21);return{'baseUrl':_0x50bcbf,'startPath':_0x4083f7,'url':joinBaseAndPath(_0x50bcbf,_0x4083f7)};}export function readUrlEnvVars(_0x56bdec=process[_0x4fe1e2(0xcb)]){return{'envBaseUrl':_0x56bdec['RANGER_BASE_URL'],'envStartPath':_0x56bdec['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x57a0(){const _0x5b8537=['nzpAW','ms...','27GjEXZC','14ESdshZ','230116slHsGr','22635GvbFkF','40sTgPGQ','pow','384738LHyJmJ','baseDelayMs','39mBWJce','CrIFe','2002gwMbWF','maxRetries','5791667ENZUlY','612rYhPbS','38210IwmMlh','468481NtEQZa','1040728MdTlOq'];_0x57a0=function(){return _0x5b8537;};return _0x57a0();}(function(_0x53435e,_0x24d9a2){const _0x423839=_0x5e93,_0x23fec1=_0x53435e();while(!![]){try{const _0x57b08e=-parseInt(_0x423839(0x1e8))/0x1*(-parseInt(_0x423839(0x1e6))/0x2)+-parseInt(_0x423839(0x1da))/0x3*(parseInt(_0x423839(0x1e7))/0x4)+-parseInt(_0x423839(0x1d6))/0x5*(-parseInt(_0x423839(0x1d8))/0x6)+-parseInt(_0x423839(0x1de))/0x7+parseInt(_0x423839(0x1e2))/0x8*(parseInt(_0x423839(0x1e5))/0x9)+parseInt(_0x423839(0x1e0))/0xa*(-parseInt(_0x423839(0x1dc))/0xb)+parseInt(_0x423839(0x1df))/0xc*(parseInt(_0x423839(0x1e1))/0xd);if(_0x57b08e===_0x24d9a2)break;else _0x23fec1['push'](_0x23fec1['shift']());}catch(_0x471b1d){_0x23fec1['push'](_0x23fec1['shift']());}}}(_0x57a0,0x998ad));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x5e93(_0x27ee08,_0x411ed8){_0x27ee08=_0x27ee08-0x1d6;const _0x57a044=_0x57a0();let _0x5e9370=_0x57a044[_0x27ee08];return _0x5e9370;}export async function withRetry(_0x504255,_0xc877c4){const _0x20442d=_0x5e93,_0x452128={'kGlKR':function(_0x305f11){return _0x305f11();},'CrIFe':function(_0x5edb4a,_0x51905c){return _0x5edb4a(_0x51905c);},'nzpAW':function(_0x501ad2,_0x56eee2){return _0x501ad2*_0x56eee2;}},_0xc15dfa=_0xc877c4?.[_0x20442d(0x1dd)]??DEFAULT_MAX_RETRIES,_0x1d8717=_0xc877c4?.[_0x20442d(0x1d9)]??DEFAULT_BASE_DELAY_MS;let _0x8dad4e;for(let _0x43d3ef=0x0;_0x43d3ef<=_0xc15dfa;_0x43d3ef++){try{return await _0x452128['kGlKR'](_0x504255);}catch(_0x6db0ef){_0x8dad4e=_0x6db0ef instanceof Error?_0x6db0ef:new Error(_0x452128[_0x20442d(0x1db)](String,_0x6db0ef));if(_0x43d3ef<_0xc15dfa){const _0x366a64=_0x452128[_0x20442d(0x1e3)](_0x1d8717,Math[_0x20442d(0x1d7)](0x2,_0x43d3ef));_0xc877c4?.['label']&&console['error'](_0xc877c4['label']+'\x20failed\x20(attempt\x20'+(_0x43d3ef+0x1)+'/'+(_0xc15dfa+0x1)+'),\x20retrying\x20in\x20'+_0x366a64+_0x20442d(0x1e4)),await new Promise(_0x4e1dc3=>setTimeout(_0x4e1dc3,_0x366a64));}}}throw _0x8dad4e;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x6ad071=_0x5176;(function(_0x5bf85f,_0x455a01){const _0x40e451=_0x5176,_0x54f887=_0x5bf85f();while(!![]){try{const _0x331be4=parseInt(_0x40e451(0x115))/0x1+-parseInt(_0x40e451(0x131))/0x2*(parseInt(_0x40e451(0x11e))/0x3)+parseInt(_0x40e451(0x122))/0x4*(-parseInt(_0x40e451(0x120))/0x5)+parseInt(_0x40e451(0x12c))/0x6*(-parseInt(_0x40e451(0x136))/0x7)+-parseInt(_0x40e451(0x11d))/0x8+-parseInt(_0x40e451(0x11b))/0x9+parseInt(_0x40e451(0x10e))/0xa;if(_0x331be4===_0x455a01)break;else _0x54f887['push'](_0x54f887['shift']());}catch(_0x5bc7e5){_0x54f887['push'](_0x54f887['shift']());}}}(_0x24fa,0x77714));import*as _0x101aab from'fs';import*as _0x240a5e from'path';import*as _0x4d4fd1 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x240a5e['join'](_0x4d4fd1[_0x6ad071(0x138)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x2fc974=_0x6ad071,_0x38692b={'zJFRR':function(_0x3226b9){return _0x3226b9();}};try{if(_0x101aab[_0x2fc974(0x13a)](CACHE_FILE)){const _0x13d11e=JSON[_0x2fc974(0x11f)](_0x101aab['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x13d11e[_0x2fc974(0x130)]||{},'branches':_0x13d11e[_0x2fc974(0x12e)]||{},'lastEnabledSessionClearedAt':_0x13d11e[_0x2fc974(0x10f)]};}}catch{}return _0x38692b['zJFRR'](createEmptyCache);}function saveCache(_0x24675e){const _0x486568=_0x6ad071;try{const _0x411cfc=_0x240a5e[_0x486568(0x139)](CACHE_FILE);!_0x101aab['existsSync'](_0x411cfc)&&_0x101aab[_0x486568(0x133)](_0x411cfc,{'recursive':!![]}),_0x101aab['writeFileSync'](CACHE_FILE,JSON[_0x486568(0x109)](_0x24675e,null,0x2));}catch{}}export function getCurrentBranch(){const _0x598364=_0x6ad071,_0x4ef43a={'hDqkR':_0x598364(0x125),'xShMU':_0x598364(0x118)};try{const _0x251da3=execSync(_0x598364(0x110),{'encoding':'utf-8','stdio':[_0x4ef43a['hDqkR'],_0x4ef43a[_0x598364(0x117)],'pipe']})['trim']();if(!_0x251da3||_0x251da3===_0x4ef43a['xShMU'])return null;return _0x251da3;}catch{return null;}}export function enableBranch(_0x11fbcc){const _0x4d8a0a=_0x6ad071,_0x2b8ba5={'oUmvM':function(_0xf9689b,_0x507faf){return _0xf9689b(_0x507faf);}},_0x3f5ace=loadCache();_0x3f5ace[_0x4d8a0a(0x12e)][_0x11fbcc]=!![],_0x2b8ba5[_0x4d8a0a(0x11a)](saveCache,_0x3f5ace);}export function disableBranch(_0x7bbad7){const _0x426e67=_0x6ad071,_0x5b9559={'FMZtt':function(_0x3114bb){return _0x3114bb();}},_0x97a807=_0x5b9559[_0x426e67(0x132)](loadCache);delete _0x97a807[_0x426e67(0x12e)][_0x7bbad7],saveCache(_0x97a807);}export function isBranchEnabled(_0x16d70f){const _0x548202=_0x6ad071,_0xef34ab=loadCache();return _0xef34ab[_0x548202(0x12e)][_0x16d70f]===!![];}function getOrCreateSession(_0x258f37,_0x50e5f5){const _0x2e9fb2=_0x6ad071;return!_0x258f37['sessions'][_0x50e5f5]&&(_0x258f37['sessions'][_0x50e5f5]={}),_0x258f37[_0x2e9fb2(0x130)][_0x50e5f5];}export function enableSession(_0x5d50b7){const _0x454c4a=_0x6ad071,_0x5032cc={'QdZPn':function(_0x35a466){return _0x35a466();},'hKTZl':function(_0x4cd6f5,_0x27d8c5){return _0x4cd6f5!==_0x27d8c5;},'IvPdL':function(_0x12d135,_0x343fba){return _0x12d135(_0x343fba);}},_0x202895=loadCache(),_0x57e32a=getOrCreateSession(_0x202895,_0x5d50b7);_0x57e32a[_0x454c4a(0x10c)]=!![];const _0x2d8a1b=_0x5032cc[_0x454c4a(0x121)](getCurrentBranch);_0x2d8a1b&&_0x2d8a1b!==_0x454c4a(0x123)&&_0x5032cc[_0x454c4a(0x12b)](_0x2d8a1b,'master')&&(_0x202895[_0x454c4a(0x12e)][_0x2d8a1b]=!![],_0x57e32a[_0x454c4a(0x135)]=_0x2d8a1b),_0x5032cc[_0x454c4a(0x116)](saveCache,_0x202895);}export function isSessionEnabled(_0x230bed){const _0x55bd7c=_0x6ad071,_0x4c941a={'Tbnga':function(_0x5b339b){return _0x5b339b();},'CFyiA':'master','ggfFI':function(_0x164e07,_0x1d308a){return _0x164e07===_0x1d308a;},'wjtTz':function(_0x16b659,_0x26eef3){return _0x16b659===_0x26eef3;}},_0x3b9cfa=_0x4c941a['Tbnga'](loadCache),_0x168d82=getCurrentBranch();if(!_0x168d82||_0x168d82===_0x55bd7c(0x123)||_0x168d82===_0x4c941a[_0x55bd7c(0x10a)])return _0x4c941a[_0x55bd7c(0x12d)](_0x3b9cfa['sessions'][_0x230bed]?.['enabled'],!![]);const _0x5a7d98=_0x3b9cfa[_0x55bd7c(0x12e)][_0x168d82]===!![],_0x53bbd1=_0x4c941a[_0x55bd7c(0x108)](_0x3b9cfa[_0x55bd7c(0x130)][_0x230bed]?.[_0x55bd7c(0x10c)],!![]);return _0x5a7d98||_0x53bbd1;}export function disableSession(_0x9477f0){const _0x3bebf4=_0x6ad071,_0x17d649={'AHYNw':function(_0x49799a,_0x2a442a){return _0x49799a(_0x2a442a);}},_0x2bfd3e=loadCache(),_0x401305=getOrCreateSession(_0x2bfd3e,_0x9477f0);_0x401305[_0x3bebf4(0x10c)]=![],_0x17d649[_0x3bebf4(0x13b)](saveCache,_0x2bfd3e);}export function updateBranchTracking(_0x3830f2){const _0x410d86=_0x6ad071,_0x519e06={'vQQLC':function(_0x5e9f5c){return _0x5e9f5c();},'VamkU':function(_0x39b9a7,_0x153627){return _0x39b9a7===_0x153627;},'KiATw':function(_0x4614a1,_0x581586){return _0x4614a1(_0x581586);}},_0x1c1ba2=_0x519e06['vQQLC'](loadCache),_0x407ae8=_0x1c1ba2[_0x410d86(0x130)][_0x3830f2];if(!_0x407ae8?.[_0x410d86(0x10c)])return;const _0xd7b138=getCurrentBranch();if(!_0xd7b138||_0x519e06['VamkU'](_0xd7b138,'main')||_0x519e06[_0x410d86(0x11c)](_0xd7b138,'master'))return;_0x407ae8['currentBranch']!==_0xd7b138&&(_0x1c1ba2['branches'][_0xd7b138]=!![],_0x407ae8['currentBranch']=_0xd7b138,_0x519e06['KiATw'](saveCache,_0x1c1ba2));}export function initBranchTracking(_0x2b46eb){const _0x593d47=_0x6ad071,_0x1a9940={'VomDl':function(_0x477f5a){return _0x477f5a();},'wuuhs':_0x593d47(0x123),'jQotH':_0x593d47(0x124),'iOmCG':function(_0x3ae803,_0x5ae0fc){return _0x3ae803===_0x5ae0fc;}},_0x340061=loadCache(),_0x57e4ac=_0x1a9940[_0x593d47(0x129)](getCurrentBranch);if(!_0x57e4ac||_0x57e4ac===_0x1a9940['wuuhs']||_0x57e4ac===_0x1a9940[_0x593d47(0x112)])return;if(_0x1a9940['iOmCG'](_0x340061[_0x593d47(0x12e)][_0x57e4ac],!![])){const _0x31a989=getOrCreateSession(_0x340061,_0x2b46eb);_0x31a989[_0x593d47(0x10c)]=!![],_0x31a989['currentBranch']=_0x57e4ac,saveCache(_0x340061);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x280f23){const _0x2db08d=_0x6ad071,_0x3cadea={'DFBhs':function(_0x5314f3){return _0x5314f3();}},_0x2d1196=_0x3cadea['DFBhs'](loadCache),_0x2edd7f=_0x2d1196[_0x2db08d(0x130)][_0x280f23];_0x2edd7f?.[_0x2db08d(0x10c)]&&(_0x2d1196[_0x2db08d(0x10f)]=Date['now'](),saveCache(_0x2d1196));}export function shouldAutoEnableAfterClear(_0x14f9a0){const _0x179e57=_0x6ad071,_0x23dd26={'IEoNx':function(_0x5a4f01){return _0x5a4f01();}};if(_0x14f9a0!==_0x179e57(0x126))return![];const _0x30f5f1=_0x23dd26[_0x179e57(0x113)](loadCache),_0x54b6cf=_0x30f5f1[_0x179e57(0x10f)];if(!_0x54b6cf)return![];const _0x18032f=Date[_0x179e57(0x114)]()-_0x54b6cf;return _0x18032f<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x5604ee){const _0x30ca0b=_0x6ad071,_0x103743={'DUHwI':function(_0x184368,_0x52f532,_0x1e4726){return _0x184368(_0x52f532,_0x1e4726);},'juGNg':function(_0x67fe10){return _0x67fe10();},'BvFDt':function(_0x4212c5,_0x301c31){return _0x4212c5!==_0x301c31;},'rMevE':_0x30ca0b(0x123),'CYPuw':function(_0x1ef205,_0xbfc029){return _0x1ef205(_0xbfc029);}},_0x174dd6=loadCache(),_0x69a8a2=_0x103743[_0x30ca0b(0x128)](getOrCreateSession,_0x174dd6,_0x5604ee);_0x69a8a2[_0x30ca0b(0x10c)]=!![];const _0x4d93ba=_0x103743['juGNg'](getCurrentBranch);_0x4d93ba&&_0x103743['BvFDt'](_0x4d93ba,_0x103743['rMevE'])&&_0x103743['BvFDt'](_0x4d93ba,'master')&&(_0x69a8a2[_0x30ca0b(0x135)]=_0x4d93ba),delete _0x174dd6['lastEnabledSessionClearedAt'],_0x103743[_0x30ca0b(0x10d)](saveCache,_0x174dd6);}export function registerSession(_0x134877,_0x517f03){const _0xf72576=_0x6ad071,_0x213e0d={'WyUzx':function(_0x3a585f,_0xfb16b2,_0x5a7ae5){return _0x3a585f(_0xfb16b2,_0x5a7ae5);}},_0x127514=loadCache(),_0x366f06=_0x213e0d[_0xf72576(0x12f)](getOrCreateSession,_0x127514,_0x134877);_0x366f06[_0xf72576(0x119)]=_0x517f03,_0x366f06[_0xf72576(0x111)]=new Date()['toISOString'](),saveCache(_0x127514);}function _0x24fa(){const _0x29ee49=['CYPuw','27771680tCYuiU','lastEnabledSessionClearedAt','git\x20rev-parse\x20--abbrev-ref\x20HEAD','registeredAt','jQotH','IEoNx','now','164337AbFKHS','IvPdL','hDqkR','HEAD','featureId','oUmvM','7616034UseCZh','VamkU','4810704TnZdKr','6hDGQlN','parse','377035IiSSUp','QdZPn','16mXCpLo','main','master','pipe','clear','HyMkR','DUHwI','VomDl','lastPlanReminderAt','hKTZl','6LZZiTv','ggfFI','branches','WyUzx','sessions','593918phCiYP','FMZtt','mkdirSync','gEvYk','currentBranch','764113OpLfyN','kiyCF','homedir','dirname','existsSync','AHYNw','XMdUG','wjtTz','stringify','CFyiA','mjuTY','enabled'];_0x24fa=function(){return _0x29ee49;};return _0x24fa();}export function getSessionEntry(_0x29db4a){const _0x167ea4=_0x6ad071,_0x1897fc=loadCache(),_0x5e6cbf=_0x1897fc['sessions'][_0x29db4a];if(_0x5e6cbf?.[_0x167ea4(0x119)]&&_0x5e6cbf?.[_0x167ea4(0x111)])return{'featureId':_0x5e6cbf['featureId'],'registeredAt':_0x5e6cbf['registeredAt']};return null;}export function unregisterSession(_0x23893a){const _0xa4eb1f=_0x6ad071,_0x1c6d91={'hBscv':function(_0x1f617b,_0x2249a9){return _0x1f617b(_0x2249a9);}},_0x582902=loadCache(),_0x54e871=_0x582902['sessions'][_0x23893a];_0x54e871&&(delete _0x54e871[_0xa4eb1f(0x119)],delete _0x54e871['registeredAt'],_0x1c6d91['hBscv'](saveCache,_0x582902));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x3e3997){const _0x3d0255=_0x6ad071,_0x48405b={'bvpVz':function(_0x3ab503){return _0x3ab503();},'bjctj':function(_0xe1883e,_0x434bfc,_0x595068){return _0xe1883e(_0x434bfc,_0x595068);},'gEvYk':function(_0x4c257d,_0x4efdb9){return _0x4c257d-_0x4efdb9;},'ACngg':function(_0x4967d9,_0x567c5f){return _0x4967d9(_0x567c5f);}},_0x25d4d9=_0x48405b['bvpVz'](loadCache),_0x359348=_0x48405b['bjctj'](getOrCreateSession,_0x25d4d9,_0x3e3997),_0x3e0681=_0x359348[_0x3d0255(0x12a)]||0x0,_0x59e43e=Date[_0x3d0255(0x114)]();if(_0x48405b[_0x3d0255(0x134)](_0x59e43e,_0x3e0681)>=PLAN_REMINDER_INTERVAL_MS)return _0x359348[_0x3d0255(0x12a)]=_0x59e43e,_0x48405b['ACngg'](saveCache,_0x25d4d9),!![];return![];}function _0x5176(_0x53b892,_0x4ee5fe){_0x53b892=_0x53b892-0x107;const _0x24fadf=_0x24fa();let _0x51765b=_0x24fadf[_0x53b892];return _0x51765b;}export function shouldShowStopReminder(_0xf4a3cd){const _0x1841f9=_0x6ad071,_0x4574b9={'XMdUG':function(_0x192577){return _0x192577();},'HyMkR':function(_0x294b9b,_0x5415a8,_0x5f235a){return _0x294b9b(_0x5415a8,_0x5f235a);},'ajSzd':function(_0x44d510,_0xa77c22){return _0x44d510>=_0xa77c22;},'kiyCF':function(_0x352132,_0x58ddf3){return _0x352132(_0x58ddf3);}},_0x5c8d44=_0x4574b9[_0x1841f9(0x107)](loadCache),_0x50eb30=_0x4574b9[_0x1841f9(0x127)](getOrCreateSession,_0x5c8d44,_0xf4a3cd),_0x19c0ea=_0x50eb30['lastStopReminderAt']||0x0,_0x42f481=Date[_0x1841f9(0x114)]();if(_0x4574b9['ajSzd'](_0x42f481-_0x19c0ea,STOP_REMINDER_INTERVAL_MS))return _0x50eb30['lastStopReminderAt']=_0x42f481,_0x4574b9[_0x1841f9(0x137)](saveCache,_0x5c8d44),!![];return![];}export function hasSessionBeenPrompted(_0x49c6f7){const _0x37f8d6=_0x6ad071,_0x478df7={'mjuTY':function(_0x257885,_0xd7d7a9){return _0x257885===_0xd7d7a9;}},_0x1a7c2c=loadCache();return _0x478df7[_0x37f8d6(0x10b)](_0x1a7c2c[_0x37f8d6(0x130)][_0x49c6f7]?.['prompted'],!![]);}export function markSessionPrompted(_0x49e891){const _0x2af372={'lSEao':function(_0x4b96){return _0x4b96();}},_0x882447=_0x2af372['lSEao'](loadCache),_0x3a6d0b=getOrCreateSession(_0x882447,_0x49e891);_0x3a6d0b['prompted']=!![],saveCache(_0x882447);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
function _0x4124(){const _0x291db7=['427wTaAuk','KWtyk','XpjVy','bOBMG','.claude','trim','vtxiU','zPnzM','sessions','toISOString','currentBranch','4588749yVdUJi','75558OgWFZa','utf-8','stringify','2719300UVQsST','EADJU','HEAD','8cTWjVx','join','EEFTr','Cxpiy','ekzcG','aKaNN','lastPlanReminderAt','featureId','readFileSync','branches','1767215QkaFfI','mmoHM','1478183ttIYDh','eLbmm','homedir','8040112ReqqOV','exApv','prompted','NOBXw','main','registeredAt','lastEnabledSessionClearedAt','mkdirSync','SdJOw','TgTuU','enabled','lastStopReminderAt','EZnCl','existsSync','BaMMQ','22522779pkUier','lkbuz'];_0x4124=function(){return _0x291db7;};return _0x4124();}const _0x133d72=_0x411d;(function(_0x463475,_0x11d2ce){const _0x5b33ad=_0x411d,_0x57d03d=_0x463475();while(!![]){try{const _0x5ab7b6=parseInt(_0x5b33ad(0x93))/0x1+parseInt(_0x5b33ad(0x84))/0x2+parseInt(_0x5b33ad(0x80))/0x3+-parseInt(_0x5b33ad(0x87))/0x4*(-parseInt(_0x5b33ad(0x91))/0x5)+-parseInt(_0x5b33ad(0x81))/0x6*(parseInt(_0x5b33ad(0xa7))/0x7)+-parseInt(_0x5b33ad(0x96))/0x8+-parseInt(_0x5b33ad(0xa5))/0x9;if(_0x5ab7b6===_0x11d2ce)break;else _0x57d03d['push'](_0x57d03d['shift']());}catch(_0x58e712){_0x57d03d['push'](_0x57d03d['shift']());}}}(_0x4124,0xc2f78));import*as _0x2a8442 from'fs';function _0x411d(_0x533991,_0x30bbf1){_0x533991=_0x533991-0x79;const _0x41242d=_0x4124();let _0x411da9=_0x41242d[_0x533991];return _0x411da9;}import*as _0x337e9c from'path';import*as _0x512bb6 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x337e9c[_0x133d72(0x88)](_0x512bb6[_0x133d72(0x95)](),_0x133d72(0x79),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3078b8=_0x133d72,_0xc39a98={'vtxiU':function(_0x3d3977){return _0x3d3977();}};try{if(_0x2a8442['existsSync'](CACHE_FILE)){const _0x5d587f=JSON['parse'](_0x2a8442[_0x3078b8(0x8f)](CACHE_FILE,_0x3078b8(0x82)));return{'version':0x3,'sessions':_0x5d587f['sessions']||{},'branches':_0x5d587f['branches']||{},'lastEnabledSessionClearedAt':_0x5d587f[_0x3078b8(0x9c)]};}}catch{}return _0xc39a98[_0x3078b8(0x7b)](createEmptyCache);}function saveCache(_0x4081fa){const _0x36aa51=_0x133d72;try{const _0x3ca9b4=_0x337e9c['dirname'](CACHE_FILE);!_0x2a8442[_0x36aa51(0xa3)](_0x3ca9b4)&&_0x2a8442[_0x36aa51(0x9d)](_0x3ca9b4,{'recursive':!![]}),_0x2a8442['writeFileSync'](CACHE_FILE,JSON[_0x36aa51(0x83)](_0x4081fa,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4ec35d=_0x133d72,_0x4eaebb={'lkbuz':'pipe'};try{const _0x5e11e1=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':'utf-8','stdio':['pipe',_0x4eaebb[_0x4ec35d(0xa6)],_0x4eaebb[_0x4ec35d(0xa6)]]})[_0x4ec35d(0x7a)]();if(!_0x5e11e1||_0x5e11e1===_0x4ec35d(0x86))return null;return _0x5e11e1;}catch{return null;}}export function enableBranch(_0x4b9ba5){const _0x47cf7c=_0x133d72,_0x464117=loadCache();_0x464117[_0x47cf7c(0x90)][_0x4b9ba5]=!![],saveCache(_0x464117);}export function disableBranch(_0x3aa365){const _0x27564e=_0x133d72,_0x52bfab={'ekzcG':function(_0x443c07,_0x41b8f2){return _0x443c07(_0x41b8f2);}},_0x307648=loadCache();delete _0x307648['branches'][_0x3aa365],_0x52bfab[_0x27564e(0x8b)](saveCache,_0x307648);}export function isBranchEnabled(_0x5844ad){const _0x4d497e=_0x133d72,_0x5c49fd=loadCache();return _0x5c49fd[_0x4d497e(0x90)][_0x5844ad]===!![];}function getOrCreateSession(_0x7323f7,_0x200dab){const _0x573940=_0x133d72;return!_0x7323f7[_0x573940(0x7d)][_0x200dab]&&(_0x7323f7[_0x573940(0x7d)][_0x200dab]={}),_0x7323f7[_0x573940(0x7d)][_0x200dab];}export function enableSession(_0x1989ab){const _0x6349af=_0x133d72,_0x2efe62=loadCache(),_0x1a332f=getOrCreateSession(_0x2efe62,_0x1989ab);_0x1a332f[_0x6349af(0xa0)]=!![];const _0x87ad04=getCurrentBranch();_0x87ad04&&_0x87ad04!==_0x6349af(0x9a)&&_0x87ad04!=='master'&&(_0x2efe62[_0x6349af(0x90)][_0x87ad04]=!![],_0x1a332f[_0x6349af(0x7f)]=_0x87ad04),saveCache(_0x2efe62);}export function isSessionEnabled(_0x42faf2){const _0x39b5b4=_0x133d72,_0x2c7d2b={'mmoHM':function(_0x13b0b7,_0x127ce6){return _0x13b0b7===_0x127ce6;},'aKaNN':_0x39b5b4(0x9a),'EgJXn':'master','SdJOw':function(_0x1a59f8,_0x4039c6){return _0x1a59f8||_0x4039c6;}},_0x37898f=loadCache(),_0x2aabdc=getCurrentBranch();if(!_0x2aabdc||_0x2c7d2b[_0x39b5b4(0x92)](_0x2aabdc,_0x2c7d2b[_0x39b5b4(0x8c)])||_0x2c7d2b[_0x39b5b4(0x92)](_0x2aabdc,_0x2c7d2b['EgJXn']))return _0x37898f['sessions'][_0x42faf2]?.['enabled']===!![];const _0x4fd4db=_0x2c7d2b[_0x39b5b4(0x92)](_0x37898f['branches'][_0x2aabdc],!![]),_0x3375aa=_0x2c7d2b[_0x39b5b4(0x92)](_0x37898f['sessions'][_0x42faf2]?.['enabled'],!![]);return _0x2c7d2b[_0x39b5b4(0x9e)](_0x4fd4db,_0x3375aa);}export function disableSession(_0x48aec6){const _0x2f3f8b=_0x133d72,_0x41a201={'zPnzM':function(_0x4bd944,_0x48d351){return _0x4bd944(_0x48d351);}},_0x8ea4c2=loadCache(),_0x5a3280=getOrCreateSession(_0x8ea4c2,_0x48aec6);_0x5a3280[_0x2f3f8b(0xa0)]=![],_0x41a201[_0x2f3f8b(0x7c)](saveCache,_0x8ea4c2);}export function updateBranchTracking(_0x23e055){const _0x40b3c0=_0x133d72,_0x4bac87={'eiPBG':function(_0x4d6f5a){return _0x4d6f5a();},'pnOge':function(_0xe805dd,_0x1eaec4){return _0xe805dd(_0x1eaec4);}},_0x4aaf0b=_0x4bac87['eiPBG'](loadCache),_0x2ac5d3=_0x4aaf0b[_0x40b3c0(0x7d)][_0x23e055];if(!_0x2ac5d3?.['enabled'])return;const _0x3732ee=getCurrentBranch();if(!_0x3732ee||_0x3732ee===_0x40b3c0(0x9a)||_0x3732ee==='master')return;_0x2ac5d3['currentBranch']!==_0x3732ee&&(_0x4aaf0b[_0x40b3c0(0x90)][_0x3732ee]=!![],_0x2ac5d3['currentBranch']=_0x3732ee,_0x4bac87['pnOge'](saveCache,_0x4aaf0b));}export function initBranchTracking(_0x113447){const _0x253ae0=_0x133d72,_0x2e7fb6={'ldTnk':function(_0x310d61){return _0x310d61();},'GhCOF':_0x253ae0(0x9a),'BaMMQ':'master','tArly':function(_0x26098b,_0x1c293b){return _0x26098b===_0x1c293b;},'eLbmm':function(_0x4e8d44,_0x3c828b){return _0x4e8d44(_0x3c828b);}},_0x3dbe17=loadCache(),_0x2414ba=_0x2e7fb6['ldTnk'](getCurrentBranch);if(!_0x2414ba||_0x2414ba===_0x2e7fb6['GhCOF']||_0x2414ba===_0x2e7fb6[_0x253ae0(0xa4)])return;if(_0x2e7fb6['tArly'](_0x3dbe17[_0x253ae0(0x90)][_0x2414ba],!![])){const _0x211353=getOrCreateSession(_0x3dbe17,_0x113447);_0x211353[_0x253ae0(0xa0)]=!![],_0x211353['currentBranch']=_0x2414ba,_0x2e7fb6[_0x253ae0(0x94)](saveCache,_0x3dbe17);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x425f81){const _0x52fee8=_0x133d72,_0x87fc15={'TgTuU':function(_0x2aeda3){return _0x2aeda3();},'EZnCl':function(_0x3a340e,_0x4d0747){return _0x3a340e(_0x4d0747);}},_0x28ca16=_0x87fc15[_0x52fee8(0x9f)](loadCache),_0x3b4289=_0x28ca16['sessions'][_0x425f81];_0x3b4289?.['enabled']&&(_0x28ca16[_0x52fee8(0x9c)]=Date['now'](),_0x87fc15[_0x52fee8(0xa2)](saveCache,_0x28ca16));}export function shouldAutoEnableAfterClear(_0x2b24f0){const _0x347dbf=_0x133d72,_0x2ad99d={'NOBXw':'clear','apKsO':function(_0x2b587f,_0x5a2b0d){return _0x2b587f-_0x5a2b0d;}};if(_0x2b24f0!==_0x2ad99d[_0x347dbf(0x99)])return![];const _0x321314=loadCache(),_0x138265=_0x321314['lastEnabledSessionClearedAt'];if(!_0x138265)return![];const _0x25ee86=_0x2ad99d['apKsO'](Date['now'](),_0x138265);return _0x25ee86<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x43eb6a){const _0x5069e2=_0x133d72,_0x479ba5={'EADJU':function(_0x4eef7c,_0x3c90c1,_0x577b58){return _0x4eef7c(_0x3c90c1,_0x577b58);},'Cxpiy':function(_0x197921,_0x38be15){return _0x197921!==_0x38be15;},'EEFTr':function(_0x4ba738,_0x3e6dff){return _0x4ba738!==_0x3e6dff;}},_0x50399a=loadCache(),_0x33323a=_0x479ba5[_0x5069e2(0x85)](getOrCreateSession,_0x50399a,_0x43eb6a);_0x33323a[_0x5069e2(0xa0)]=!![];const _0xae67ea=getCurrentBranch();_0xae67ea&&_0x479ba5[_0x5069e2(0x8a)](_0xae67ea,'main')&&_0x479ba5[_0x5069e2(0x89)](_0xae67ea,'master')&&(_0x33323a[_0x5069e2(0x7f)]=_0xae67ea),delete _0x50399a[_0x5069e2(0x9c)],saveCache(_0x50399a);}export function registerSession(_0x4cd163,_0x12b604){const _0x221176=_0x133d72,_0x52e3e7=loadCache(),_0x46212f=getOrCreateSession(_0x52e3e7,_0x4cd163);_0x46212f[_0x221176(0x8e)]=_0x12b604,_0x46212f['registeredAt']=new Date()[_0x221176(0x7e)](),saveCache(_0x52e3e7);}export function getSessionEntry(_0x300be1){const _0x11faae=_0x133d72,_0x2b8cb2={'vvFZx':function(_0xe66e95){return _0xe66e95();}},_0x3732d8=_0x2b8cb2['vvFZx'](loadCache),_0x5c6ac2=_0x3732d8[_0x11faae(0x7d)][_0x300be1];if(_0x5c6ac2?.[_0x11faae(0x8e)]&&_0x5c6ac2?.['registeredAt'])return{'featureId':_0x5c6ac2[_0x11faae(0x8e)],'registeredAt':_0x5c6ac2[_0x11faae(0x9b)]};return null;}export function unregisterSession(_0x1ae517){const _0x1f6ec8=_0x133d72,_0x40e28c=loadCache(),_0x16f6ff=_0x40e28c[_0x1f6ec8(0x7d)][_0x1ae517];_0x16f6ff&&(delete _0x16f6ff[_0x1f6ec8(0x8e)],delete _0x16f6ff['registeredAt'],saveCache(_0x40e28c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1f51f0){const _0x4a22de=_0x133d72,_0xeec1cb={'XpjVy':function(_0x40c9eb){return _0x40c9eb();},'bOBMG':function(_0x36730e,_0x89dc87){return _0x36730e(_0x89dc87);}},_0x36c345=_0xeec1cb[_0x4a22de(0xa9)](loadCache),_0x4e6d72=getOrCreateSession(_0x36c345,_0x1f51f0),_0x491a29=_0x4e6d72[_0x4a22de(0x8d)]||0x0,_0x458f9a=Date['now']();if(_0x458f9a-_0x491a29>=PLAN_REMINDER_INTERVAL_MS)return _0x4e6d72[_0x4a22de(0x8d)]=_0x458f9a,_0xeec1cb[_0x4a22de(0xaa)](saveCache,_0x36c345),!![];return![];}export function shouldShowStopReminder(_0x2730be){const _0x328fb7=_0x133d72,_0x5d8bfb={'lprlw':function(_0x12987a){return _0x12987a();}},_0x5dc21a=_0x5d8bfb['lprlw'](loadCache),_0x4c9210=getOrCreateSession(_0x5dc21a,_0x2730be),_0x128fe7=_0x4c9210['lastStopReminderAt']||0x0,_0x1fd457=Date['now']();if(_0x1fd457-_0x128fe7>=STOP_REMINDER_INTERVAL_MS)return _0x4c9210[_0x328fb7(0xa1)]=_0x1fd457,saveCache(_0x5dc21a),!![];return![];}export function hasSessionBeenPrompted(_0x5703f1){const _0x19ee73=_0x133d72,_0x4e8246={'yeZhV':function(_0x444204){return _0x444204();},'exApv':function(_0x5e6ee5,_0xe833f4){return _0x5e6ee5===_0xe833f4;}},_0x5aaa71=_0x4e8246['yeZhV'](loadCache);return _0x4e8246[_0x19ee73(0x97)](_0x5aaa71['sessions'][_0x5703f1]?.[_0x19ee73(0x98)],!![]);}export function markSessionPrompted(_0x431464){const _0x58737c=_0x133d72,_0x5350bb={'KWtyk':function(_0x59b79e){return _0x59b79e();},'EBiUY':function(_0x5260a9,_0x2707ad,_0x1ed1d8){return _0x5260a9(_0x2707ad,_0x1ed1d8);}},_0x55e606=_0x5350bb[_0x58737c(0xa8)](loadCache),_0x2072c8=_0x5350bb['EBiUY'](getOrCreateSession,_0x55e606,_0x431464);_0x2072c8[_0x58737c(0x98)]=!![],saveCache(_0x55e606);}export function getCacheFile(){return CACHE_FILE;}
|