@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.816b7e2-24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -14
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -0
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -0
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +36 -6
- package/build/skills/ranger/create.md +19 -0
- package/build/skills/ranger/verify.md +46 -7
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x401102,_0x18a7fa){const _0x8cc458=_0x22df,_0x2bff8d=_0x401102();while(!![]){try{const _0x193585=parseInt(_0x8cc458(0x198))/0x1*(-parseInt(_0x8cc458(0x177))/0x2)+-parseInt(_0x8cc458(0x184))/0x3*(parseInt(_0x8cc458(0x182))/0x4)+parseInt(_0x8cc458(0x18a))/0x5+parseInt(_0x8cc458(0x19a))/0x6*(parseInt(_0x8cc458(0x1a4))/0x7)+-parseInt(_0x8cc458(0x190))/0x8*(parseInt(_0x8cc458(0x17b))/0x9)+-parseInt(_0x8cc458(0x176))/0xa*(parseInt(_0x8cc458(0x181))/0xb)+parseInt(_0x8cc458(0x183))/0xc;if(_0x193585===_0x18a7fa)break;else _0x2bff8d['push'](_0x2bff8d['shift']());}catch(_0x4964a6){_0x2bff8d['push'](_0x2bff8d['shift']());}}}(_0x1314,0x5346f));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function _0x1314(){const _0x4f008b=['461238EehIMn','HyGWH','join','NDTHY','ignore','SIGKILL','753665JYQiZU','Vltjl','\x0astdout:\x20','UtmGJ','\x27\x5c\x27\x27','string','118024bLDFea','cwd','bAYUa','exited\x20with\x20code=','rg-','playwright-cli\x20','slice','hex','4FpvTxp','configPath','11310xYuNeg','sha256','commandArgs','pipe','-s=','ovsDC','timeoutMs','data','cFyoX','unknown','770aflzzX','script','TCFNx','...','sxxxT','Veuyt','cmd','env','qOtCy','SIGTERM','530SsQfAn','106692KbhmIx','YLaNe','close','kill','252hQshGz','nsByN','xZLak','command','null','npx','52613rNwAox','4KiwKHx','12200796rcOClY'];_0x1314=function(){return _0x4f008b;};return _0x1314();}function toPlaywrightCliSessionKey(_0x3b77a0){const _0x13839c=_0x22df,_0x47d991={'dQhfG':function(_0x29115c,_0x5aae8f){return _0x29115c(_0x5aae8f);},'ZrIYI':_0x13839c(0x197)},_0x329e90=_0x47d991['dQhfG'](createHash,_0x13839c(0x19b))['update'](_0x3b77a0)['digest'](_0x47d991['ZrIYI'])[_0x13839c(0x196)](0x0,0xc);return _0x13839c(0x194)+_0x329e90;}function shellQuote(_0x44bf8e){const _0x3afc9e=_0x22df;return'\x27'+_0x44bf8e['replace'](/'/g,_0x3afc9e(0x18e))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x38e2f2){const _0x285193={'rfMKn':function(_0x170741,_0xd80d75){return _0x170741(_0xd80d75);}};return SAFE_SHELL_TOKEN['test'](_0x38e2f2)?_0x38e2f2:_0x285193['rfMKn'](shellQuote,_0x38e2f2);}export function buildPlaywrightCliInvocation(_0x11ee38,_0x1a78f0,_0x47276c){const _0x5dac71=_0x22df,_0x1a5f07={'BaECi':_0x5dac71(0x1a3),'OVRaF':'npx'},_0x1f0afb=toPlaywrightCliSessionKey(_0x11ee38),[_0x51c78d=_0x1a5f07['BaECi']]=_0x47276c,_0x13a006=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x1f0afb,'--config',_0x1a78f0,..._0x47276c];return{'command':_0x5dac71(0x180),'args':_0x13a006,'shellCommand':[_0x1a5f07['OVRaF'],PLAYWRIGHT_CLI_BINARY,_0x5dac71(0x19e)+quoteShellArg(_0x1f0afb),'--config',quoteShellArg(_0x1a78f0),..._0x47276c['map'](quoteShellArg)][_0x5dac71(0x186)]('\x20'),'subcommand':_0x51c78d};}export function buildPlaywrightCliCommandPrefix(_0x3cc244,_0x27fe68){const _0x143cc1=_0x22df,_0x1a44ff={'jgMrk':function(_0x491d09,_0x390062){return _0x491d09(_0x390062);},'xZLak':'npx','YLaNe':function(_0x4100b1,_0x50e1db){return _0x4100b1(_0x50e1db);},'NDTHY':function(_0x293ab7,_0xddfa47){return _0x293ab7(_0xddfa47);}},_0x2f0649=_0x1a44ff['jgMrk'](toPlaywrightCliSessionKey,_0x3cc244);return[_0x1a44ff[_0x143cc1(0x17d)],PLAYWRIGHT_CLI_BINARY,_0x143cc1(0x19e)+_0x1a44ff[_0x143cc1(0x178)](quoteShellArg,_0x2f0649),'--config',_0x1a44ff[_0x143cc1(0x187)](quoteShellArg,_0x27fe68)]['join']('\x20');}function truncateOutput(_0x2156ed,_0x6aa45d=0x7d0){const _0x1f7c8b=_0x22df,_0x1f64ea={'dujmA':function(_0x344e5a,_0x30c4b1){return _0x344e5a>_0x30c4b1;},'ovsDC':_0x1f7c8b(0x1a7)};return _0x1f64ea['dujmA'](_0x2156ed['length'],_0x6aa45d)?_0x2156ed['slice'](0x0,_0x6aa45d)+_0x1f64ea[_0x1f7c8b(0x19f)]:_0x2156ed;}function _0x22df(_0x5389e1,_0x4d2175){_0x5389e1=_0x5389e1-0x176;const _0x13148f=_0x1314();let _0x22df5a=_0x13148f[_0x5389e1];return _0x22df5a;}export async function runPlaywrightCliCommand(_0x2d616a){const _0x4777bd=_0x22df,_0x1d7434={'dITzI':function(_0x24da2f,_0x3104bc,_0x43f029){return _0x24da2f(_0x3104bc,_0x43f029);},'UyOnp':function(_0x297dc4,_0x1cfece){return _0x297dc4(_0x1cfece);},'UOTSY':function(_0x20ae52,_0x4b7fbb){return _0x20ae52??_0x4b7fbb;},'UtmGJ':function(_0x51151e,_0x456631,_0xc56920,_0x1ba051){return _0x51151e(_0x456631,_0xc56920,_0x1ba051);},'Idpdq':_0x4777bd(0x188)},_0x298d82=buildPlaywrightCliInvocation(_0x2d616a['sessionId'],_0x2d616a[_0x4777bd(0x199)],_0x2d616a[_0x4777bd(0x19c)]);return new Promise((_0x9905bb,_0xffc5df)=>{const _0x384320=_0x4777bd,_0x2a7801={'sxxxT':_0x384320(0x189),'cFyoX':function(_0x3af497,_0x27100d,_0x50dbf7){return _0x1d7434['dITzI'](_0x3af497,_0x27100d,_0x50dbf7);},'Vltjl':function(_0x3483ed,_0x330dab){return _0x1d7434['UyOnp'](_0x3483ed,_0x330dab);},'RGXRN':function(_0x112362,_0x46019f){return _0x1d7434['UOTSY'](_0x112362,_0x46019f);},'Veuyt':_0x384320(0x17f),'bAYUa':function(_0x4bd6c9,_0x3887ab){return _0x4bd6c9(_0x3887ab);}},_0x3f6873=_0x1d7434[_0x384320(0x18d)](spawn,_0x298d82[_0x384320(0x17e)],_0x298d82['args'],{'cwd':_0x2d616a[_0x384320(0x191)],'env':_0x2d616a[_0x384320(0x1ab)],'stdio':[_0x1d7434['Idpdq'],_0x384320(0x19d),'pipe']});let _0x297566='',_0x56b076='',_0x371f21=![];const _0x12ab3b=_0x2d616a[_0x384320(0x1a0)]&&_0x2d616a['timeoutMs']>0x0?setTimeout(()=>{const _0x310792=_0x384320,_0x3a8b50={'qOtCy':_0x2a7801[_0x310792(0x1a8)]};_0x371f21=!![],_0x3f6873[_0x310792(0x17a)](_0x310792(0x1ad)),_0x2a7801[_0x310792(0x1a2)](setTimeout,()=>{const _0x4a46f0=_0x310792;try{_0x3f6873['kill'](_0x3a8b50[_0x4a46f0(0x1ac)]);}catch{}},0x3e8);},_0x2d616a[_0x384320(0x1a0)]):null;_0x3f6873['stdout']?.['on']('data',_0x1ebe71=>{_0x297566+=_0x1ebe71['toString']();}),_0x3f6873['stderr']?.['on'](_0x384320(0x1a1),_0x4dcbe6=>{_0x56b076+=_0x4dcbe6['toString']();}),_0x3f6873['on']('error',_0x2ab787=>{if(_0x12ab3b)clearTimeout(_0x12ab3b);_0x2a7801['Vltjl'](_0xffc5df,_0x2ab787);}),_0x3f6873['on'](_0x384320(0x179),(_0x1b40cf,_0x305426)=>{const _0xf22d0f=_0x384320;if(_0x12ab3b)_0x2a7801[_0xf22d0f(0x18b)](clearTimeout,_0x12ab3b);if(_0x1b40cf===0x0){_0x9905bb({'stdout':_0x297566,'stderr':_0x56b076,'invocation':_0x298d82});return;}const _0x56dc5f=_0x371f21?'timed\x20out\x20after\x20'+_0x2d616a[_0xf22d0f(0x1a0)]+'ms':_0xf22d0f(0x193)+_0x2a7801['RGXRN'](_0x1b40cf,_0xf22d0f(0x17f))+'\x20signal='+(_0x305426??_0x2a7801[_0xf22d0f(0x1a9)]);_0xffc5df(new Error(_0xf22d0f(0x195)+_0x298d82['subcommand']+'\x20'+_0x56dc5f+_0xf22d0f(0x18c)+_0x2a7801[_0xf22d0f(0x192)](truncateOutput,_0x297566)+'\x0astderr:\x20'+truncateOutput(_0x56b076)));});});}export function extractBashCommand(_0x31e666){const _0x4eec0c=_0x22df,_0x2ac481={'nsByN':_0x4eec0c(0x17e),'TCFNx':_0x4eec0c(0x1aa),'Uqvdp':'bash_command','HyGWH':function(_0x57707b,_0x57c946){return _0x57707b===_0x57c946;}},_0x35114e=[_0x2ac481[_0x4eec0c(0x17c)],_0x2ac481[_0x4eec0c(0x1a6)],_0x4eec0c(0x1a5),_0x2ac481['Uqvdp']];for(const _0x32e810 of _0x35114e){const _0x2b89bf=_0x31e666[_0x32e810];if(_0x2ac481[_0x4eec0c(0x185)](typeof _0x2b89bf,'string')&&_0x2b89bf['trim']())return _0x2b89bf;}const _0x37bfcf=Object['values'](_0x31e666)['find'](_0x3dbe30=>typeof _0x3dbe30===_0x4eec0c(0x18f)&&_0x3dbe30['trim']()['length']>0x0);return _0x37bfcf??null;}export function parsePlaywrightCliCommand(_0x56b362){const _0x471fe8=_0x56b362['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x471fe8?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x201e(_0x1d771c,_0x2cdeb8){_0x1d771c=_0x1d771c-0x13e;const _0x26a9c3=_0x26a9();let _0x201e9a=_0x26a9c3[_0x1d771c];return _0x201e9a;}(function(_0x15eb3e,_0x39d2da){const _0x244f4c=_0x201e,_0x3f56cd=_0x15eb3e();while(!![]){try{const _0x58a32d=parseInt(_0x244f4c(0x148))/0x1+parseInt(_0x244f4c(0x149))/0x2*(parseInt(_0x244f4c(0x13f))/0x3)+parseInt(_0x244f4c(0x143))/0x4+parseInt(_0x244f4c(0x144))/0x5*(parseInt(_0x244f4c(0x142))/0x6)+-parseInt(_0x244f4c(0x140))/0x7*(-parseInt(_0x244f4c(0x13e))/0x8)+-parseInt(_0x244f4c(0x146))/0x9*(parseInt(_0x244f4c(0x141))/0xa)+-parseInt(_0x244f4c(0x147))/0xb*(parseInt(_0x244f4c(0x145))/0xc);if(_0x58a32d===_0x39d2da)break;else _0x3f56cd['push'](_0x3f56cd['shift']());}catch(_0x5cc89a){_0x3f56cd['push'](_0x3f56cd['shift']());}}}(_0x26a9,0x98b8c));function _0x26a9(){const _0x5b60d1=['10IvqPOS','1146DPBkGD','1814436PveKTc','27955OwEhRj','12GofmiU','4171131TECuJY','31691979QofaPp','1157480PpepBQ','2asOEWO','8PwzSCP','3490035xPsNbN','894467jKZUjU'];_0x26a9=function(){return _0x5b60d1;};return _0x26a9();}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x127614){const _0x334f81=_0x127614?_0x127614(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x334f81+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a413c,_0x32fb71){const _0x21419d=_0x5eb3,_0x19a28d=_0x1a413c();while(!![]){try{const _0x5ab31e=-parseInt(_0x21419d(0xb0))/0x1+parseInt(_0x21419d(0xae))/0x2+-parseInt(_0x21419d(0xb2))/0x3*(-parseInt(_0x21419d(0xab))/0x4)+parseInt(_0x21419d(0xad))/0x5*(parseInt(_0x21419d(0xa2))/0x6)+parseInt(_0x21419d(0xaf))/0x7*(-parseInt(_0x21419d(0xa7))/0x8)+parseInt(_0x21419d(0xb3))/0x9+-parseInt(_0x21419d(0xaa))/0xa;if(_0x5ab31e===_0x32fb71)break;else _0x19a28d['push'](_0x19a28d['shift']());}catch(_0x2d9535){_0x19a28d['push'](_0x19a28d['shift']());}}}(_0x4f0c,0xad550));function _0x4f0c(){const _0x584967=['<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','brEaz','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','<div\x20class=\x22ranger-banner__message\x22>','8Uxsmkg','wOOzN','qFMeH','19090740LunpAO','151988cIlGaO','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','2632795MsLjyU','2648342CBDSFB','7962374gJLKgX','712094gzGjxL','AwDGE','105tRiRYu','11591937MHDmZK','6DByVWj'];_0x4f0c=function(){return _0x584967;};return _0x4f0c();}function _0x5eb3(_0x1a4aa0,_0x5e84d1){_0x1a4aa0=_0x1a4aa0-0xa2;const _0x4f0cd7=_0x4f0c();let _0x5eb316=_0x4f0cd7[_0x1a4aa0];return _0x5eb316;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x3d947c=_0x5eb3,_0x493f25={'UZmNw':function(_0x5c63fc,_0x569183){return _0x5c63fc+_0x569183;},'AwDGE':function(_0x31fe3b,_0x6d0f5c){return _0x31fe3b+_0x6d0f5c;},'vMLfK':'<div\x20class=\x22ranger-banner__content\x22>','wOOzN':_0x3d947c(0xac),'brEaz':_0x3d947c(0xa5),'qFMeH':_0x3d947c(0xa3)},_0x4b01a4=_0x493f25['UZmNw'](_0x493f25['AwDGE'](_0x493f25[_0x3d947c(0xb1)](_0x493f25['vMLfK']+'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>'+_0x3d947c(0xa6)+_0x493f25[_0x3d947c(0xa8)],_0x493f25[_0x3d947c(0xa4)]),'</div>')+'</div>',_0x493f25[_0x3d947c(0xa9)]),_0x11f28a='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x4b01a4)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x11f28a)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x1a9bc8){await _0x1a9bc8['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3f6f43,_0x17441f){const _0x271f65=_0x35e4,_0x3c15f5=_0x3f6f43();while(!![]){try{const _0xba4813=-parseInt(_0x271f65(0xaf))/0x1+parseInt(_0x271f65(0x95))/0x2*(parseInt(_0x271f65(0x9e))/0x3)+-parseInt(_0x271f65(0xa9))/0x4+parseInt(_0x271f65(0x9f))/0x5+parseInt(_0x271f65(0xad))/0x6+-parseInt(_0x271f65(0x9b))/0x7*(-parseInt(_0x271f65(0x9a))/0x8)+parseInt(_0x271f65(0x88))/0x9;if(_0xba4813===_0x17441f)break;else _0x3c15f5['push'](_0x3c15f5['shift']());}catch(_0x1943ff){_0x3c15f5['push'](_0x3c15f5['shift']());}}}(_0x1b3d,0xaf1df));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 _0x34ffbc=_0x35e4,_0x177a8d={'FCUmR':_0x34ffbc(0x8d)};return join(getRangerHomeDir(),_0x177a8d['FCUmR']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4ea49f=_0x35e4,_0x24bce2={'XxrcB':function(_0x32e505){return _0x32e505();},'IPvrc':function(_0x5c676b,_0x4fc7ff){return _0x5c676b(_0x4fc7ff);},'TEGTR':function(_0x53d2b3){return _0x53d2b3();},'puaQO':function(_0x3274db,_0x162c3a,_0x10ff16){return _0x3274db(_0x162c3a,_0x10ff16);},'IFPQZ':'utf-8','bgXSu':function(_0x3c6ec4){return _0x3c6ec4();},'pyiIW':function(_0xb04696,_0x4a8cd5){return _0xb04696 instanceof _0x4a8cd5;},'qyNCh':function(_0x3617e2,_0x242575){return _0x3617e2!==_0x242575;},'KmJNh':function(_0x57142b,_0x3c8324){return _0x57142b===_0x3c8324;},'uKRso':function(_0x157c72){return _0x157c72();}},_0x364635=_0x24bce2['XxrcB'](getProjectsConfigPath);if(!_0x24bce2['IPvrc'](existsSync,_0x364635))return _0x24bce2['TEGTR'](emptyConfig);let _0x223792;try{_0x223792=_0x24bce2['puaQO'](readFileSync,_0x364635,_0x24bce2['IFPQZ']);}catch(_0x15848f){const _0x3d7223=_0x15848f instanceof Error?_0x15848f['message']:String(_0x15848f);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x364635+':\x20'+_0x3d7223+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x24bce2[_0x4ea49f(0x97)](emptyConfig);}let _0x345999;try{_0x345999=JSON[_0x4ea49f(0x8a)](_0x223792);}catch(_0x162760){const _0x37f500=_0x24bce2['pyiIW'](_0x162760,Error)?_0x162760[_0x4ea49f(0x99)]:String(_0x162760);return console['warn']('[ranger]\x20Warning:\x20'+_0x364635+'\x20is\x20not\x20valid\x20JSON\x20('+_0x37f500+_0x4ea49f(0xa3)),emptyConfig();}if(!_0x345999||typeof _0x345999!==_0x4ea49f(0x87)||Array[_0x4ea49f(0xab)](_0x345999)||_0x24bce2['qyNCh'](_0x345999[_0x4ea49f(0x8e)],CURRENT_VERSION)||_0x24bce2['qyNCh'](typeof _0x345999['projects'],'object')||_0x24bce2[_0x4ea49f(0x98)](_0x345999[_0x4ea49f(0xa6)],null)||Array[_0x4ea49f(0xab)](_0x345999[_0x4ea49f(0xa6)]))return console[_0x4ea49f(0x93)]('[ranger]\x20Warning:\x20'+_0x364635+_0x4ea49f(0x8f)),_0x24bce2['uKRso'](emptyConfig);return _0x345999;}export function writeProjectsConfig(_0x4c1886){const _0x20f95c=_0x35e4,_0x180c5f={'YxiUW':function(_0x1ca678,_0x253d25){return _0x1ca678(_0x253d25);},'fpqbl':function(_0x4b0333,_0x31617d,_0x586fa5){return _0x4b0333(_0x31617d,_0x586fa5);},'rlmvH':_0x20f95c(0xa0),'DiCSk':function(_0x27f9a9,_0x1072a1,_0x40c96c){return _0x27f9a9(_0x1072a1,_0x40c96c);},'VLNSV':function(_0x30593e,_0x3dfa52){return _0x30593e(_0x3dfa52);}},_0x427f29=getProjectsConfigPath(),_0xeb285d=_0x180c5f['YxiUW'](dirname,_0x427f29);!existsSync(_0xeb285d)&&_0x180c5f[_0x20f95c(0x86)](mkdirSync,_0xeb285d,{'recursive':!![]});const _0x1f6b20=_0x427f29+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x15417c=JSON[_0x20f95c(0x9d)](_0x4c1886,null,0x2)+'\x0a';try{writeFileSync(_0x1f6b20,_0x15417c,{'encoding':_0x180c5f['rlmvH'],'mode':0x180}),_0x180c5f['DiCSk'](renameSync,_0x1f6b20,_0x427f29);}catch(_0x33eff6){try{existsSync(_0x1f6b20)&&_0x180c5f['VLNSV'](unlinkSync,_0x1f6b20);}catch{}throw _0x33eff6;}}export function readProfileOverrides(_0x320482,_0x45ee0b){const _0x222cdd=_0x35e4,_0x2f01dd=readProjectsConfig(),_0x57d2d2=_0x2f01dd['projects'][_0x320482];if(!_0x57d2d2||!_0x57d2d2['profiles'])return null;const _0x694dbb=_0x57d2d2['profiles'][_0x45ee0b];if(!_0x694dbb||!_0x694dbb[_0x222cdd(0x94)])return null;return _0x694dbb['settings']??null;}export function setProfileOverride(_0x24e5dc,_0x6a6aec,_0x21a7fa,_0xdadf23){const _0x321e4d=_0x35e4,_0x5edc65={'ysxHx':function(_0x473359){return _0x473359();},'jPxRa':function(_0x5ae67e,_0x110492,_0x46cefc,_0x4e3f3e){return _0x5ae67e(_0x110492,_0x46cefc,_0x4e3f3e);}};if(!_0x21a7fa)throw new Error('keyPath\x20is\x20required');const _0x5f5571=_0x5edc65[_0x321e4d(0xa5)](readProjectsConfig),_0x2b7732=_0x5f5571[_0x321e4d(0xa6)][_0x24e5dc]??={},_0xd1b47d=_0x2b7732[_0x321e4d(0xa8)]??={},_0x2b7921=_0xd1b47d[_0x6a6aec]??={},_0x282101=_0x2b7921['settings']??={};_0x5edc65['jPxRa'](setByKeyPath,_0x282101,_0x21a7fa,_0xdadf23),writeProjectsConfig(_0x5f5571);}export function unsetProfileOverride(_0x54224d,_0x362883,_0x4a2964){const _0x13a33f=_0x35e4,_0x33da2c={'SDPBE':_0x13a33f(0x90),'gNwzS':function(_0x5bb2e0){return _0x5bb2e0();},'PTBeA':function(_0x1f5202,_0x5a3b14,_0xbd59f9){return _0x1f5202(_0x5a3b14,_0xbd59f9);}};if(!_0x4a2964)throw new Error(_0x33da2c[_0x13a33f(0x8c)]);const _0x4b9322=_0x33da2c[_0x13a33f(0x8b)](readProjectsConfig),_0x2df73a=_0x4b9322['projects'][_0x54224d];if(!_0x2df73a?.['profiles'])return![];const _0x201d58=_0x2df73a['profiles'][_0x362883];if(!_0x201d58?.['settings'])return![];const _0x50e5e9=_0x33da2c[_0x13a33f(0xac)](deleteByKeyPath,_0x201d58[_0x13a33f(0x94)],_0x4a2964);if(!_0x50e5e9)return![];return writeProjectsConfig(_0x4b9322),!![];}export function resetProfileOverrides(_0x4c90a9,_0x7d6889){const _0x43a6dd=_0x35e4,_0x261a5b={'VEqeb':function(_0x18b768,_0x1913d6){return _0x18b768 in _0x1913d6;},'EQsRD':function(_0x54a602,_0xd0e2e0){return _0x54a602(_0xd0e2e0);}},_0x3acb3b=readProjectsConfig(),_0x431ee0=_0x3acb3b['projects'][_0x4c90a9];if(!_0x431ee0?.['profiles'])return;if(!_0x261a5b[_0x43a6dd(0xa4)](_0x7d6889,_0x431ee0[_0x43a6dd(0xa8)]))return;delete _0x431ee0[_0x43a6dd(0xa8)][_0x7d6889],Object[_0x43a6dd(0xae)](_0x431ee0['profiles'])[_0x43a6dd(0xaa)]===0x0&&delete _0x431ee0[_0x43a6dd(0xa8)],!_0x431ee0[_0x43a6dd(0xa8)]&&delete _0x3acb3b['projects'][_0x4c90a9],_0x261a5b['EQsRD'](writeProjectsConfig,_0x3acb3b);}export function mergeCloudProfileSettings(_0x59f7ff,_0x216d9a){const _0x23d5e4=_0x35e4,_0x47dc0b={'oiFbN':function(_0x58d9dc,_0x1760b0){return _0x58d9dc??_0x1760b0;},'vCIMA':function(_0x4a803b,_0x39ef66){return _0x4a803b===_0x39ef66;},'DkXlD':function(_0xebfbe3,_0x50e35c){return _0xebfbe3===_0x50e35c;},'OfnCp':function(_0x569743,_0x123be0){return _0x569743(_0x123be0);},'UISRR':function(_0x58ce28,_0xb7be64){return _0x58ce28(_0xb7be64);},'JBmdq':function(_0x43e8e7,_0x4b1339){return _0x43e8e7===_0x4b1339;}},_0x130feb={..._0x47dc0b['oiFbN'](_0x59f7ff,{})};if(!_0x216d9a)return _0x130feb;for(const [_0x982195,_0x538682]of Object[_0x23d5e4(0x89)](_0x216d9a)){if(_0x47dc0b[_0x23d5e4(0x91)](_0x538682,undefined))continue;if(_0x538682===null){delete _0x130feb[_0x982195];continue;}if(_0x47dc0b[_0x23d5e4(0x9c)](_0x982195,_0x23d5e4(0x92))||_0x982195==='setupHeaders'){const _0x5508b8=_0x47dc0b[_0x23d5e4(0xa7)](asRecord,_0x130feb[_0x982195])??{},_0x4d3659=_0x47dc0b[_0x23d5e4(0xa2)](asRecord,_0x538682);if(!_0x4d3659){_0x130feb[_0x982195]=_0x538682;continue;}const _0x1e78bd={..._0x5508b8};for(const [_0x437117,_0x970f95]of Object[_0x23d5e4(0x89)](_0x4d3659)){if(_0x47dc0b[_0x23d5e4(0xa1)](_0x970f95,null))delete _0x1e78bd[_0x437117];else _0x970f95!==undefined&&(_0x1e78bd[_0x437117]=_0x970f95);}_0x130feb[_0x982195]=_0x1e78bd;continue;}_0x130feb[_0x982195]=_0x538682;}return _0x130feb;}function _0x35e4(_0x4d6f8e,_0x2f05c9){_0x4d6f8e=_0x4d6f8e-0x84;const _0x1b3d70=_0x1b3d();let _0x35e42e=_0x1b3d70[_0x4d6f8e];return _0x35e42e;}function asRecord(_0x4ff0fe){const _0x47af76=_0x35e4,_0x1515b5={'sxIxr':function(_0x290e7d,_0x33bb5a){return _0x290e7d===_0x33bb5a;},'zARrj':_0x47af76(0x87)};return _0x4ff0fe&&_0x1515b5['sxIxr'](typeof _0x4ff0fe,_0x1515b5[_0x47af76(0x84)])&&!Array['isArray'](_0x4ff0fe)?_0x4ff0fe:undefined;}function setByKeyPath(_0x102b2d,_0x35bfb0,_0x18be89){const _0x9bf025=_0x35e4,_0x45f596={'GWIwr':function(_0x5c7fed,_0xd280a9){return _0x5c7fed!==_0xd280a9;}},_0x54d826=_0x35bfb0[_0x9bf025(0x85)]('.');let _0xcd7aa2=_0x102b2d;for(let _0x194f1c=0x0;_0x194f1c<_0x54d826['length']-0x1;_0x194f1c++){const _0xef22a1=_0x54d826[_0x194f1c],_0x5d2ee1=_0xcd7aa2[_0xef22a1];(!_0x5d2ee1||_0x45f596['GWIwr'](typeof _0x5d2ee1,'object')||Array['isArray'](_0x5d2ee1))&&(_0xcd7aa2[_0xef22a1]={}),_0xcd7aa2=_0xcd7aa2[_0xef22a1];}_0xcd7aa2[_0x54d826[_0x54d826[_0x9bf025(0xaa)]-0x1]]=_0x18be89;}function _0x1b3d(){const _0x453e78=['zARrj','split','fpqbl','object','5090004UCwOxS','entries','parse','gNwzS','SDPBE','projects.json','version','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','vCIMA','headers','warn','settings','51110wLydQE','uZwVn','bgXSu','KmJNh','message','56hPXQpJ','576247NqzJwx','DkXlD','stringify','111AGoJlX','197435XoqXGR','utf-8','JBmdq','UISRR',').\x20Ignoring\x20local\x20profile\x20overrides.','VEqeb','ysxHx','projects','OfnCp','profiles','5092040nqIWkj','length','isArray','PTBeA','7153698APlfZv','keys','1328819QmSFqX'];_0x1b3d=function(){return _0x453e78;};return _0x1b3d();}function deleteByKeyPath(_0x5ba8e5,_0x5c2ff7){const _0x41ea2d=_0x35e4,_0x48381f={'uZwVn':function(_0x43c6ec,_0x49c814){return _0x43c6ec-_0x49c814;}},_0x147fe4=_0x5c2ff7['split']('.');let _0x34eda2=_0x5ba8e5;for(let _0x5310ce=0x0;_0x5310ce<_0x147fe4['length']-0x1;_0x5310ce++){const _0x52f8bf=_0x147fe4[_0x5310ce],_0x48116c=_0x34eda2[_0x52f8bf];if(!_0x48116c||typeof _0x48116c!=='object'||Array['isArray'](_0x48116c))return![];_0x34eda2=_0x48116c;}const _0x47d968=_0x147fe4[_0x48381f[_0x41ea2d(0x96)](_0x147fe4[_0x41ea2d(0xaa)],0x1)];if(!(_0x47d968 in _0x34eda2))return![];return delete _0x34eda2[_0x47d968],!![];}
|
|
1
|
+
(function(_0x48cb28,_0x2d9214){const _0xad42d0=_0x5cca,_0x295ce8=_0x48cb28();while(!![]){try{const _0x40bdf9=parseInt(_0xad42d0(0xdd))/0x1+-parseInt(_0xad42d0(0xee))/0x2+parseInt(_0xad42d0(0xdc))/0x3*(parseInt(_0xad42d0(0xf2))/0x4)+parseInt(_0xad42d0(0xe6))/0x5*(parseInt(_0xad42d0(0xdf))/0x6)+parseInt(_0xad42d0(0xd8))/0x7*(-parseInt(_0xad42d0(0xe9))/0x8)+-parseInt(_0xad42d0(0xd6))/0x9*(-parseInt(_0xad42d0(0xe0))/0xa)+parseInt(_0xad42d0(0xe2))/0xb;if(_0x40bdf9===_0x2d9214)break;else _0x295ce8['push'](_0x295ce8['shift']());}catch(_0x3af911){_0x295ce8['push'](_0x295ce8['shift']());}}}(_0x23a5,0x22c01));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';function _0x23a5(){const _0x17e412=['aREps','1563991Clyhmw','projects','aROao',').\x20Ignoring\x20local\x20profile\x20overrides.','95nZufuS','AXgxp','object','217424zEobMw','WgeBF','keys','profiles','lDEqf','247924CMUOaq','aGuRm','warn','entries','8PUAzsf','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','settings','.tmp','WPRPI','ngiBS','Apqri','DLOIk','\x20is\x20not\x20valid\x20JSON\x20(','projects.json','OusmO','wVCDd','nQYGa','ZwDdx','message','ezxzu','RhnLs','lastProfile','gVIae','headers','length','[ranger]\x20Warning:\x20','LgChm','pid','81WWkzSw','ghozr','49nqBblX','Subqu','isArray','now','166494yzdxAd','22066eJhgUy','FLUZh','7542hcExxZ','174910byijkX'];_0x23a5=function(){return _0x17e412;};return _0x23a5();}import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x123c9f=_0x5cca;return join(getRangerHomeDir(),_0x123c9f(0xfb));}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x350a62=_0x5cca,_0x4e9ed8={'ezxzu':function(_0x3f1413){return _0x3f1413();},'efvQb':function(_0x7cdce9,_0x11d439){return _0x7cdce9(_0x11d439);},'ZwDdx':function(_0x2722bd){return _0x2722bd();},'FdXWh':'utf-8','nQYGa':function(_0x299cb1,_0x4ecfa5){return _0x299cb1 instanceof _0x4ecfa5;},'WgeBF':function(_0x73a7c1,_0x3a93a4){return _0x73a7c1!==_0x3a93a4;},'ghozr':'object','wKNZT':function(_0x40e40b,_0x3520fd){return _0x40e40b===_0x3520fd;}},_0x398719=_0x4e9ed8[_0x350a62(0xcd)](getProjectsConfigPath);if(!_0x4e9ed8['efvQb'](existsSync,_0x398719))return _0x4e9ed8[_0x350a62(0xcb)](emptyConfig);let _0x12c053;try{_0x12c053=readFileSync(_0x398719,_0x4e9ed8['FdXWh']);}catch(_0x15582d){const _0x358489=_0x15582d instanceof Error?_0x15582d[_0x350a62(0xcc)]:String(_0x15582d);return console[_0x350a62(0xf0)](_0x350a62(0xf3)+_0x398719+':\x20'+_0x358489+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x134ddd;try{_0x134ddd=JSON['parse'](_0x12c053);}catch(_0x549f92){const _0x5bfa14=_0x4e9ed8[_0x350a62(0xca)](_0x549f92,Error)?_0x549f92[_0x350a62(0xcc)]:String(_0x549f92);return console['warn']('[ranger]\x20Warning:\x20'+_0x398719+_0x350a62(0xfa)+_0x5bfa14+_0x350a62(0xe5)),_0x4e9ed8[_0x350a62(0xcd)](emptyConfig);}if(!_0x134ddd||_0x4e9ed8[_0x350a62(0xea)](typeof _0x134ddd,_0x4e9ed8[_0x350a62(0xd7)])||Array[_0x350a62(0xda)](_0x134ddd)||_0x134ddd['version']!==CURRENT_VERSION||typeof _0x134ddd[_0x350a62(0xe3)]!=='object'||_0x4e9ed8['wKNZT'](_0x134ddd[_0x350a62(0xe3)],null)||Array['isArray'](_0x134ddd['projects']))return console['warn'](_0x350a62(0xd3)+_0x398719+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();return _0x134ddd;}export function writeProjectsConfig(_0x18f48b){const _0x238077=_0x5cca,_0xc544ed={'AXgxp':function(_0x1b3f1d,_0x250c64){return _0x1b3f1d(_0x250c64);},'qsMuj':function(_0x4429ec,_0xa8b738){return _0x4429ec(_0xa8b738);},'aROao':function(_0x566ed5,_0x1546ed){return _0x566ed5+_0x1546ed;},'nEwlL':function(_0x1cb327,_0x7ee4a3,_0x3df311,_0x1f4932){return _0x1cb327(_0x7ee4a3,_0x3df311,_0x1f4932);},'ngiBS':'utf-8'},_0x621dcd=getProjectsConfigPath(),_0x40fbe1=_0xc544ed[_0x238077(0xe7)](dirname,_0x621dcd);!_0xc544ed['qsMuj'](existsSync,_0x40fbe1)&&mkdirSync(_0x40fbe1,{'recursive':!![]});const _0xcde4e0=_0x621dcd+'.'+process[_0x238077(0xd5)]+'.'+Date[_0x238077(0xdb)]()+_0x238077(0xf5),_0x534868=_0xc544ed[_0x238077(0xe4)](JSON['stringify'](_0x18f48b,null,0x2),'\x0a');try{_0xc544ed['nEwlL'](writeFileSync,_0xcde4e0,_0x534868,{'encoding':_0xc544ed[_0x238077(0xf7)],'mode':0x180}),renameSync(_0xcde4e0,_0x621dcd);}catch(_0x39b725){try{existsSync(_0xcde4e0)&&unlinkSync(_0xcde4e0);}catch{}throw _0x39b725;}}export function readProfileOverrides(_0x16abd2,_0x344f3f){const _0x4a8bfe=_0x5cca,_0x583d8e={'DLOIk':function(_0x1e7bb4){return _0x1e7bb4();}},_0x1cc3c6=_0x583d8e[_0x4a8bfe(0xf9)](readProjectsConfig),_0x531b56=_0x1cc3c6[_0x4a8bfe(0xe3)][_0x16abd2];if(!_0x531b56||!_0x531b56['profiles'])return null;const _0x15a426=_0x531b56[_0x4a8bfe(0xec)][_0x344f3f];if(!_0x15a426||!_0x15a426['settings'])return null;return _0x15a426['settings']??null;}export function setProfileOverride(_0x110e5f,_0xfdd563,_0x102b16,_0x56fdb8){const _0x51c7d7=_0x5cca,_0xe5b13a={'RhnLs':'keyPath\x20is\x20required'};if(!_0x102b16)throw new Error(_0xe5b13a[_0x51c7d7(0xce)]);const _0x44fc6f=readProjectsConfig(),_0x5e2017=_0x44fc6f['projects'][_0x110e5f]??={},_0x103d63=_0x5e2017[_0x51c7d7(0xec)]??={},_0x17e9d9=_0x103d63[_0xfdd563]??={},_0x35b467=_0x17e9d9['settings']??={};setByKeyPath(_0x35b467,_0x102b16,_0x56fdb8),writeProjectsConfig(_0x44fc6f);}export function unsetProfileOverride(_0x2636f2,_0x368421,_0x450f43){const _0x3e2e6a=_0x5cca,_0xa2b3db={'lDEqf':'keyPath\x20is\x20required','aGuRm':function(_0x4b5a5d,_0x252edb){return _0x4b5a5d(_0x252edb);}};if(!_0x450f43)throw new Error(_0xa2b3db[_0x3e2e6a(0xed)]);const _0x53aaca=readProjectsConfig(),_0x4358e6=_0x53aaca[_0x3e2e6a(0xe3)][_0x2636f2];if(!_0x4358e6?.[_0x3e2e6a(0xec)])return![];const _0x507f32=_0x4358e6['profiles'][_0x368421];if(!_0x507f32?.[_0x3e2e6a(0xf4)])return![];const _0xcb2796=deleteByKeyPath(_0x507f32['settings'],_0x450f43);if(!_0xcb2796)return![];return _0xa2b3db[_0x3e2e6a(0xef)](writeProjectsConfig,_0x53aaca),!![];}function _0x5cca(_0x376b5e,_0x1ea79c){_0x376b5e=_0x376b5e-0xca;const _0x23a51d=_0x23a5();let _0x5cca19=_0x23a51d[_0x376b5e];return _0x5cca19;}export function resetProfileOverrides(_0x3fb088,_0x1e7f70){const _0x4d14ea=_0x5cca,_0x38ce77={'WdoKK':function(_0x5ceafa,_0x5a4c2b){return _0x5ceafa in _0x5a4c2b;}},_0x365edc=readProjectsConfig(),_0x2123fd=_0x365edc['projects'][_0x3fb088];if(!_0x2123fd?.['profiles'])return;if(!_0x38ce77['WdoKK'](_0x1e7f70,_0x2123fd['profiles']))return;delete _0x2123fd[_0x4d14ea(0xec)][_0x1e7f70],Object[_0x4d14ea(0xeb)](_0x2123fd['profiles'])['length']===0x0&&(!_0x2123fd['lastProfile']?delete _0x365edc[_0x4d14ea(0xe3)][_0x3fb088]:_0x2123fd['profiles']={}),writeProjectsConfig(_0x365edc);}export function readLastProfile(_0x3cab08){const _0x65bd9b=_0x5cca,_0x52bf04={'FLUZh':function(_0x1849b7){return _0x1849b7();}},_0x3d37c8=_0x52bf04[_0x65bd9b(0xde)](readProjectsConfig),_0x22ba9a=_0x3d37c8[_0x65bd9b(0xe3)][_0x3cab08];return _0x22ba9a?.['lastProfile']??null;}export function writeLastProfile(_0x37ae61,_0x16379f){const _0xd0e681={'dXHVf':function(_0x31fa4c,_0x21e7b6){return _0x31fa4c(_0x21e7b6);}},_0x2038b4=readProjectsConfig(),_0x571108=_0x2038b4['projects'][_0x37ae61]??={};_0x571108['lastProfile']=_0x16379f,_0xd0e681['dXHVf'](writeProjectsConfig,_0x2038b4);}export function clearLastProfile(_0x37ab2e,_0x1feb36){const _0x2b561b=_0x5cca,_0x2529b5={'tlcNV':function(_0x261181){return _0x261181();},'WPRPI':function(_0x592448,_0x2f8308){return _0x592448(_0x2f8308);}},_0x5552c6=_0x2529b5['tlcNV'](readProjectsConfig),_0x3b0f2e=_0x5552c6[_0x2b561b(0xe3)][_0x37ab2e];if(!_0x3b0f2e||_0x3b0f2e[_0x2b561b(0xcf)]!==_0x1feb36)return![];return delete _0x3b0f2e[_0x2b561b(0xcf)],(!_0x3b0f2e['profiles']||Object['keys'](_0x3b0f2e['profiles'])['length']===0x0)&&delete _0x5552c6[_0x2b561b(0xe3)][_0x37ab2e],_0x2529b5[_0x2b561b(0xf6)](writeProjectsConfig,_0x5552c6),!![];}export function mergeCloudProfileSettings(_0x357337,_0x5266cd){const _0x5acd9c=_0x5cca,_0x531711={'tMtyJ':function(_0x297b04,_0x167c78){return _0x297b04===_0x167c78;},'LgChm':_0x5acd9c(0xd1),'jrrxv':'setupHeaders','foHMX':function(_0x582aa3,_0x108cb4){return _0x582aa3(_0x108cb4);},'OusmO':function(_0x316f21,_0x294955){return _0x316f21!==_0x294955;}},_0x251ada={..._0x357337??{}};if(!_0x5266cd)return _0x251ada;for(const [_0x126567,_0xc018e0]of Object['entries'](_0x5266cd)){if(_0xc018e0===undefined)continue;if(_0xc018e0===null){delete _0x251ada[_0x126567];continue;}if(_0x531711['tMtyJ'](_0x126567,_0x531711[_0x5acd9c(0xd4)])||_0x126567===_0x531711['jrrxv']){const _0x3648e5=_0x531711['foHMX'](asRecord,_0x251ada[_0x126567])??{},_0x11fdd3=asRecord(_0xc018e0);if(!_0x11fdd3){_0x251ada[_0x126567]=_0xc018e0;continue;}const _0x5a2c27={..._0x3648e5};for(const [_0x17468f,_0xb2f41c]of Object[_0x5acd9c(0xf1)](_0x11fdd3)){if(_0x531711['tMtyJ'](_0xb2f41c,null))delete _0x5a2c27[_0x17468f];else _0x531711[_0x5acd9c(0xfc)](_0xb2f41c,undefined)&&(_0x5a2c27[_0x17468f]=_0xb2f41c);}_0x251ada[_0x126567]=_0x5a2c27;continue;}_0x251ada[_0x126567]=_0xc018e0;}return _0x251ada;}function asRecord(_0x507eb8){const _0x58b6be=_0x5cca,_0x1c2366={'wVCDd':function(_0x3067d4,_0x29c274){return _0x3067d4===_0x29c274;},'gVIae':'object'};return _0x507eb8&&_0x1c2366[_0x58b6be(0xfd)](typeof _0x507eb8,_0x1c2366[_0x58b6be(0xd0)])&&!Array[_0x58b6be(0xda)](_0x507eb8)?_0x507eb8:undefined;}function setByKeyPath(_0x103f5c,_0xa7f796,_0x45a03a){const _0x1fe277=_0x5cca,_0x44e5ba={'Apqri':function(_0x17c2a2,_0x3a4a04){return _0x17c2a2<_0x3a4a04;},'Xylch':function(_0x47d41c,_0x146a82){return _0x47d41c-_0x146a82;},'Subqu':function(_0x118732,_0x24d7fb){return _0x118732!==_0x24d7fb;},'aREps':function(_0xad2132,_0x56b62){return _0xad2132-_0x56b62;}},_0x247320=_0xa7f796['split']('.');let _0x2c06d8=_0x103f5c;for(let _0x4e8aca=0x0;_0x44e5ba[_0x1fe277(0xf8)](_0x4e8aca,_0x44e5ba['Xylch'](_0x247320['length'],0x1));_0x4e8aca++){const _0x2cc390=_0x247320[_0x4e8aca],_0x2b172e=_0x2c06d8[_0x2cc390];(!_0x2b172e||_0x44e5ba[_0x1fe277(0xd9)](typeof _0x2b172e,_0x1fe277(0xe8))||Array['isArray'](_0x2b172e))&&(_0x2c06d8[_0x2cc390]={}),_0x2c06d8=_0x2c06d8[_0x2cc390];}_0x2c06d8[_0x247320[_0x44e5ba[_0x1fe277(0xe1)](_0x247320['length'],0x1)]]=_0x45a03a;}function deleteByKeyPath(_0x35abc2,_0x1297fb){const _0x1eb773=_0x5cca,_0x556cf1={'rVjoJ':function(_0x550abc,_0x239cd6){return _0x550abc!==_0x239cd6;},'QKQmx':function(_0x5da8ce,_0x910a41){return _0x5da8ce-_0x910a41;},'dfiSI':function(_0x58d9d5,_0x905958){return _0x58d9d5 in _0x905958;}},_0x3c0677=_0x1297fb['split']('.');let _0x3b2e9b=_0x35abc2;for(let _0x3b00c4=0x0;_0x3b00c4<_0x3c0677['length']-0x1;_0x3b00c4++){const _0x2aaaa1=_0x3c0677[_0x3b00c4],_0x3061b7=_0x3b2e9b[_0x2aaaa1];if(!_0x3061b7||_0x556cf1['rVjoJ'](typeof _0x3061b7,_0x1eb773(0xe8))||Array[_0x1eb773(0xda)](_0x3061b7))return![];_0x3b2e9b=_0x3061b7;}const _0x580cb2=_0x3c0677[_0x556cf1['QKQmx'](_0x3c0677[_0x1eb773(0xd2)],0x1)];if(!_0x556cf1['dfiSI'](_0x580cb2,_0x3b2e9b))return![];return delete _0x3b2e9b[_0x580cb2],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d8151,_0x747113){const _0x5631d1=_0x35b5,_0xd47681=_0x4d8151();while(!![]){try{const _0x352082=parseInt(_0x5631d1(0x190))/0x1+parseInt(_0x5631d1(0x18f))/0x2+-parseInt(_0x5631d1(0x184))/0x3*(parseInt(_0x5631d1(0x181))/0x4)+-parseInt(_0x5631d1(0x17b))/0x5*(parseInt(_0x5631d1(0x18c))/0x6)+parseInt(_0x5631d1(0x17c))/0x7*(-parseInt(_0x5631d1(0x180))/0x8)+parseInt(_0x5631d1(0x188))/0x9+parseInt(_0x5631d1(0x18a))/0xa*(parseInt(_0x5631d1(0x17e))/0xb);if(_0x352082===_0x747113)break;else _0xd47681['push'](_0xd47681['shift']());}catch(_0xc13cc2){_0xd47681['push'](_0xd47681['shift']());}}}(_0x317d,0xeddfd));function _0x317d(){const _0xd6edaf=['1003499jcZVnl','uWvHK','1659031IUXJcm','model','16YgJGix','395804xbNuVS','config.json','warn','33lyXvuY','object','utf-8','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','1222533TkDNSB','mhGNM','120vQqbKp','WrQnr','148794iLEzty','giRsj','Txfkj','3676304QqBGBN','28808pJxLgr','295oeoJeI'];_0x317d=function(){return _0xd6edaf;};return _0x317d();}import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x35b5(_0x1a561c,_0xa1b50a){_0x1a561c=_0x1a561c-0x17b;const _0x317dac=_0x317d();let _0x35b5ce=_0x317dac[_0x1a561c];return _0x35b5ce;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x461d9c=_0x35b5,_0x3d6465={'Txfkj':function(_0x42716c,_0x44c0fc,_0x312a5b){return _0x42716c(_0x44c0fc,_0x312a5b);},'mhGNM':_0x461d9c(0x182)};return _0x3d6465[_0x461d9c(0x18e)](join,getRangerDir(),_0x3d6465[_0x461d9c(0x189)]);}export async function loadRangerConfig(){const _0x23019b=_0x35b5,_0x9f8c9e={'WrQnr':function(_0x1f4cc2){return _0x1f4cc2();},'EgOyu':function(_0x31f493,_0x3f43ce){return _0x31f493(_0x3f43ce);},'uWvHK':_0x23019b(0x185),'rzNul':function(_0x3b5cfd,_0x3b5005){return _0x3b5cfd===_0x3b5005;},'giRsj':function(_0x3ef254,_0x1a46e4){return _0x3ef254 instanceof _0x1a46e4;}},_0x113eb2=_0x9f8c9e[_0x23019b(0x18b)](getRangerConfigPath);if(!_0x9f8c9e['EgOyu'](existsSync,_0x113eb2))return{};try{const _0x102433=await readFile(_0x113eb2,_0x23019b(0x186)),_0x485ee8=JSON['parse'](_0x102433);if(!_0x485ee8||typeof _0x485ee8!==_0x9f8c9e[_0x23019b(0x17d)]||Array['isArray'](_0x485ee8))return{};const _0x1cff1e={},_0xf9b4ef=_0x485ee8['model'];return _0x9f8c9e['rzNul'](typeof _0xf9b4ef,'string')&&(_0x1cff1e[_0x23019b(0x17f)]=_0xf9b4ef),_0x1cff1e;}catch(_0x57cb9d){const _0x2b9fbc=_0x9f8c9e[_0x23019b(0x18d)](_0x57cb9d,Error)?_0x57cb9d['message']:String(_0x57cb9d);return console[_0x23019b(0x183)](_0x23019b(0x187)+_0x113eb2+':\x20'+_0x2b9fbc),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c3f11,_0x166cd0){const _0x1742b0=_0x4773,_0x54fafa=_0x1c3f11();while(!![]){try{const _0x1ea3f7=parseInt(_0x1742b0(0x180))/0x1*(-parseInt(_0x1742b0(0x189))/0x2)+-parseInt(_0x1742b0(0x188))/0x3*(parseInt(_0x1742b0(0x182))/0x4)+parseInt(_0x1742b0(0x187))/0x5+parseInt(_0x1742b0(0x181))/0x6+-parseInt(_0x1742b0(0x178))/0x7+-parseInt(_0x1742b0(0x17c))/0x8+parseInt(_0x1742b0(0x18a))/0x9*(parseInt(_0x1742b0(0x17d))/0xa);if(_0x1ea3f7===_0x166cd0)break;else _0x54fafa['push'](_0x54fafa['shift']());}catch(_0x1a49be){_0x54fafa['push'](_0x54fafa['shift']());}}}(_0x112f,0x8b6ad));import{dirname,join,parse}from'path';function _0x4773(_0x3c7e8e,_0x1f2dd0){_0x3c7e8e=_0x3c7e8e-0x178;const _0x112f2c=_0x112f();let _0x4773b2=_0x112f2c[_0x3c7e8e];return _0x4773b2;}function _0x112f(){const _0xd35219=['5022930FEuMFU','2020DzRJdY','ZigxY','vUzNC','.ranger','.git','4843100OOGtxh','3591Nyqpmv','35190JlelVa','162dmjnQW','kphAh','3386355ClIPoI','JoSxe','VJwJX','SswwM','3112392GmZXTr','711490UeHDBE','cwd','root','59TpIvKe'];_0x112f=function(){return _0xd35219;};return _0x112f();}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0xdce4b5=_0x4773,_0x53fa3b={'ZigxY':function(_0x4739ed,_0x1cab8e){return _0x4739ed(_0x1cab8e);},'mciyZ':function(_0x1de9ba,_0x3236b2,_0x3d0ee4){return _0x1de9ba(_0x3236b2,_0x3d0ee4);},'JoSxe':_0xdce4b5(0x185)};let _0x23a7d9=process[_0xdce4b5(0x17e)]();const _0xbcf6ef=_0x53fa3b[_0xdce4b5(0x183)](parse,_0x23a7d9)[_0xdce4b5(0x17f)];while(_0x23a7d9!==_0xbcf6ef){if(existsSync(_0x53fa3b['mciyZ'](join,_0x23a7d9,'.ranger')))return _0x23a7d9;_0x23a7d9=dirname(_0x23a7d9);}if(existsSync(join(_0xbcf6ef,_0x53fa3b[_0xdce4b5(0x179)])))return _0xbcf6ef;const _0x22128f=findGitRoot();if(_0x22128f)return _0x22128f;return process['cwd']();}export function getRangerDir(){const _0x4aac83=_0x4773,_0x4e530c={'SswwM':'.ranger'};return join(getRangerRoot(),_0x4e530c[_0x4aac83(0x17b)]);}export function findGitRoot(){const _0x3faef3=_0x4773,_0x4019d5={'vUzNC':function(_0x5becca,_0x17ebbc){return _0x5becca(_0x17ebbc);},'WtRSr':function(_0x4b4a06,_0x32aedc){return _0x4b4a06(_0x32aedc);},'FJxWV':function(_0x52eeca,_0x3476a1,_0x248626){return _0x52eeca(_0x3476a1,_0x248626);}};let _0x34c493=process['cwd']();const _0x3b3c26=_0x4019d5[_0x3faef3(0x184)](parse,_0x34c493)[_0x3faef3(0x17f)];while(_0x34c493!==_0x3b3c26){if(_0x4019d5['vUzNC'](existsSync,join(_0x34c493,_0x3faef3(0x186))))return _0x34c493;_0x34c493=_0x4019d5['WtRSr'](dirname,_0x34c493);}if(_0x4019d5['vUzNC'](existsSync,_0x4019d5['FJxWV'](join,_0x3b3c26,_0x3faef3(0x186))))return _0x3b3c26;return null;}export function getRangerHomeDir(){const _0x4b70f4=_0x4773,_0x58eb46={'kphAh':function(_0xc83793,_0x29f406,_0x4ae2a3){return _0xc83793(_0x29f406,_0x4ae2a3);},'VJwJX':function(_0x21ba54){return _0x21ba54();},'vORfx':'.ranger'};return _0x58eb46[_0x4b70f4(0x18b)](join,_0x58eb46[_0x4b70f4(0x17a)](homedir),_0x58eb46['vORfx']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38df14,_0x1b1ef4){const _0x3ee091=_0x4d47,_0x3d8071=_0x38df14();while(!![]){try{const _0x4d1337=-parseInt(_0x3ee091(0x11e))/0x1*(parseInt(_0x3ee091(0x119))/0x2)+-parseInt(_0x3ee091(0x137))/0x3*(-parseInt(_0x3ee091(0x118))/0x4)+parseInt(_0x3ee091(0x131))/0x5+parseInt(_0x3ee091(0x121))/0x6+-parseInt(_0x3ee091(0x13f))/0x7*(parseInt(_0x3ee091(0x132))/0x8)+parseInt(_0x3ee091(0x113))/0x9*(-parseInt(_0x3ee091(0x130))/0xa)+-parseInt(_0x3ee091(0x138))/0xb*(-parseInt(_0x3ee091(0x116))/0xc);if(_0x4d1337===_0x1b1ef4)break;else _0x3d8071['push'](_0x3d8071['shift']());}catch(_0x4dc26f){_0x3d8071['push'](_0x3d8071['shift']());}}}(_0x3e8c,0x85878));import{existsSync}from'fs';import _0x237e6c from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x4d47(_0x49a1dd,_0x4a044a){_0x49a1dd=_0x49a1dd-0x113;const _0x3e8c8d=_0x3e8c();let _0x4d47df=_0x3e8c8d[_0x49a1dd];return _0x4d47df;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x559db6){const _0x585f2c=_0x4d47,_0x1d3d0a={'LPJbn':function(_0x5a48c6){return _0x5a48c6();},'juRxz':function(_0x52e96f){return _0x52e96f();},'gRCqa':_0x585f2c(0x139),'qAggE':_0x585f2c(0x124),'WHRNR':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','MsPle':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','FCrJh':function(_0x26a1be,_0x1d9451){return _0x26a1be(_0x1d9451);},'LNGHV':function(_0x14b62d,_0x233b79){return _0x14b62d+_0x233b79;},'XQbWD':'`ranger\x20profile\x20add`\x20to\x20create\x20one.','ZwFwV':'list','nJcXL':function(_0x23ce3e,_0x12f2d9,_0x350dff){return _0x23ce3e(_0x12f2d9,_0x350dff);},'TjGIw':function(_0x4aea52,_0x3f5357){return _0x4aea52(_0x3f5357);},'unfFS':function(_0x8523fd,_0x3de6a7){return _0x8523fd(_0x3de6a7);},'TBpwj':function(_0x3328de,_0x20d8f8){return _0x3328de(_0x20d8f8);},'dkLFe':function(_0x24e2b4,_0x21a388){return _0x24e2b4(_0x21a388);}},_0x4ca6e3=_0x559db6[_0x585f2c(0x12a)];let _0x55d239=_0x559db6['profile']??await readActiveProfileName(),_0x1d8a1e=null;if(!_0x55d239&&process['env'][_0x585f2c(0x12f)]){const _0x5a3ef0=await _0x1d3d0a[_0x585f2c(0x11d)](resolveAdHocProfile);_0x5a3ef0&&(_0x55d239=_0x5a3ef0[_0x585f2c(0x117)],_0x1d8a1e=_0x5a3ef0['profile']);}if(!_0x55d239)try{const _0x242d5e=await _0x1d3d0a['juRxz'](listCloudProfiles);if(_0x242d5e[_0x585f2c(0x140)]===0x1){const _0x345865=_0x242d5e[0x0];_0x55d239=_0x345865[_0x585f2c(0x117)],console['log'](_0x585f2c(0x141)+_0x345865['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x55d239)throw new Error(_0x1d3d0a['gRCqa']+_0x1d3d0a[_0x585f2c(0x13c)]+_0x1d3d0a['WHRNR']+_0x1d3d0a['MsPle']+'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.');const _0x1f41b8=_0x1d3d0a[_0x585f2c(0x135)](getEnvDir,_0x55d239),_0x210dba=_0x1d3d0a[_0x585f2c(0x135)](existsSync,_0x1f41b8);let _0x1e4f7a=_0x1d8a1e,_0x1a7366=![];if(!_0x1e4f7a)try{_0x1e4f7a=await _0x1d3d0a['FCrJh'](fetchCloudProfile,_0x55d239);if(!_0x1e4f7a)_0x1a7366=!![];}catch(_0x566a0a){_0x566a0a instanceof ApiError&&_0x566a0a['status']===0x194&&(_0x1a7366=!![]);}if(_0x4ca6e3&&_0x1a7366&&!_0x210dba&&!_0x1e4f7a)throw new Error(_0x1d3d0a['LNGHV']('Profile\x20\x22'+_0x4ca6e3+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x585f2c(0x120))+_0x1d3d0a['XQbWD']);if(_0x1e4f7a&&_0x210dba){let _0xbd9135=!![];if(_0x1d3d0a['LPJbn'](isInteractive)){const {source:_0x4ed47a}=await _0x237e6c[_0x585f2c(0x136)]([{'type':_0x1d3d0a['ZwFwV'],'name':_0x585f2c(0x129),'message':_0x585f2c(0x127)+_0x55d239+_0x585f2c(0x122),'choices':[{'name':'Cloud\x20profile\x20(recommended)','value':'cloud'},{'name':'Local\x20profile','value':'local'}],'default':_0x585f2c(0x12c)}]);_0xbd9135=_0x4ed47a===_0x585f2c(0x12c);}if(!_0xbd9135)_0x1e4f7a=null;}const _0x37d1a5=readProfileOverrides(process['cwd'](),_0x55d239);let _0x1e05b5=null,_0x19213e,_0x2623c2,_0x521c7e,_0x4b0d44,_0x3b7eb6=null,_0x1e159b;const _0xafc21f=_0x1d3d0a[_0x585f2c(0x135)](expandOverrides,_0x37d1a5);if(_0x1e4f7a){_0x1e05b5=_0x1e4f7a;const _0x182acc=_0x1e4f7a['settings']??{},_0x3fd05a=_0x1d3d0a[_0x585f2c(0x11a)](mergeCloudProfileSettings,_0x182acc,_0x37d1a5??undefined),_0x4cdf75={..._0x1e4f7a,'settings':_0x3fd05a},_0x449fb3=process['env'][_0x585f2c(0x126)];if(_0x449fb3){if(!existsSync(_0x449fb3))throw new Error(_0x585f2c(0x128)+_0x449fb3+'\x20does\x20not\x20exist.');_0x19213e=_0x449fb3,_0x2623c2=resolveEnvVars(_0x3fd05a),_0x521c7e=_0x1d3d0a[_0x585f2c(0x135)](Boolean,_0x2623c2[_0x585f2c(0x123)]),_0x3b7eb6={'baseUrl':_0x1d3d0a[_0x585f2c(0x135)](expandString,_0x182acc['baseUrl']),'startPath':expandString(_0x182acc[_0x585f2c(0x12d)])};}else{const _0x191322=await resolveCloudProfileSession(_0x4cdf75);_0x19213e=_0x191322[_0x585f2c(0x133)],_0x2623c2=_0x1d3d0a['FCrJh'](resolveEnvVars,_0x3fd05a),_0x521c7e=_0x1d3d0a['TjGIw'](Boolean,_0x2623c2['cdpEndpoint']),_0x3b7eb6={'baseUrl':expandString(_0x182acc['baseUrl']),'startPath':expandString(_0x182acc['startPath'])},_0x1e159b=_0x191322[_0x585f2c(0x125)]?.['domains']?.[0x0];}}else{if(!_0x210dba)throw new Error('Profile\x20\x22'+_0x55d239+_0x585f2c(0x115)+_0x55d239);const _0x149d28=await loadSettings(_0x55d239);_0x2623c2=_0x1d3d0a[_0x585f2c(0x12b)](resolveEnvVars,_0x149d28),_0x521c7e=_0x1d3d0a['TBpwj'](Boolean,_0x2623c2[_0x585f2c(0x123)]),_0x4b0d44=_0x2623c2['baseUrl'];}const _0x8a4972=readUrlEnvVars(),_0x175f4c=_0x1d3d0a['dkLFe'](resolveProfileUrl,{'flagBaseUrl':_0x559db6[_0x585f2c(0x13b)],'flagStartPath':_0x559db6['startPath'],'envBaseUrl':_0x8a4972[_0x585f2c(0x11b)],'envStartPath':_0x8a4972['envStartPath'],'localSettingsBaseUrl':_0x4b0d44,'projectOverrides':_0xafc21f,'cloudSettings':_0x3b7eb6,'authEnvironmentDomain':_0x1e159b}),_0x1255cf=_0x175f4c[_0x585f2c(0x13a)]??_0x175f4c[_0x585f2c(0x13b)];if(!_0x1255cf&&!_0x521c7e)throw new Error(_0x585f2c(0x134)+_0x55d239+_0x585f2c(0x13d)+_0x55d239+_0x585f2c(0x13e));return{'activeProfile':_0x55d239,'resolvedCloudProfile':_0x1e05b5,'cloudAuthPath':_0x19213e,'resolvedSettings':_0x2623c2,'isCdpMode':_0x521c7e,'url':_0x1255cf,'startPath':_0x175f4c[_0x585f2c(0x12d)]};}function expandString(_0x35228c){const _0x45fad6=_0x4d47,_0x236302={'YHJUf':_0x45fad6(0x11c)};if(typeof _0x35228c!==_0x236302[_0x45fad6(0x114)])return _0x35228c;return resolveEnvVars(_0x35228c);}function _0x3e8c(){const _0xe3d109=['RANGER_SESSION_STATE_PATH=','source','profile','unfFS','cloud','startPath','pYNAr','RANGER_TEST_USERNAME','34660lEvVbs','4072185ToGImN','344FMniCX','authPath','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','FCrJh','prompt','176139mflOdT','11tGJZSz','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','url','baseUrl','qAggE','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20baseUrl\x20<url>','68047AEuthA','length','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','1089FzlLew','YHJUf','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','5236812pUxpAI','name','8GPmbzL','140802TRqipB','nJcXL','envBaseUrl','string','LPJbn','12BzuHjp','kNrQc','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','5165238LvfIAo','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','cdpEndpoint','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','resolvedEnv','RANGER_SESSION_STATE_PATH','Profile\x20\x22'];_0x3e8c=function(){return _0xe3d109;};return _0x3e8c();}function expandOverrides(_0x1e1707){const _0x48c975=_0x4d47,_0x883f47={'kNrQc':function(_0x432ed2,_0x50dc9d){return _0x432ed2(_0x50dc9d);},'pYNAr':function(_0x57cda8,_0x47427e){return _0x57cda8===_0x47427e;}};if(!_0x1e1707)return _0x1e1707;const _0x4368a1={..._0x1e1707};return typeof _0x4368a1['baseUrl']===_0x48c975(0x11c)&&(_0x4368a1[_0x48c975(0x13b)]=_0x883f47[_0x48c975(0x11f)](resolveEnvVars,_0x4368a1[_0x48c975(0x13b)])),_0x883f47[_0x48c975(0x12e)](typeof _0x4368a1[_0x48c975(0x12d)],_0x48c975(0x11c))&&(_0x4368a1['startPath']=resolveEnvVars(_0x4368a1[_0x48c975(0x12d)])),_0x4368a1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xec35f8=_0xbc56;(function(_0x1f3864,_0x21c7a1){const _0x286fc8=_0xbc56,_0x5a7114=_0x1f3864();while(!![]){try{const _0x1b65c5=parseInt(_0x286fc8(0x149))/0x1+-parseInt(_0x286fc8(0x13a))/0x2+-parseInt(_0x286fc8(0x145))/0x3+parseInt(_0x286fc8(0x140))/0x4+parseInt(_0x286fc8(0x13c))/0x5+-parseInt(_0x286fc8(0x14a))/0x6+parseInt(_0x286fc8(0x14e))/0x7;if(_0x1b65c5===_0x21c7a1)break;else _0x5a7114['push'](_0x5a7114['shift']());}catch(_0x1d9173){_0x5a7114['push'](_0x5a7114['shift']());}}}(_0x199c,0x2ccb2));function firstDefined(..._0x363aeb){const _0x21cc4a={'kfvPJ':function(_0x61c09,_0x27d273){return _0x61c09!==_0x27d273;}};for(const _0x136a09 of _0x363aeb){if(_0x21cc4a['kfvPJ'](_0x136a09,undefined)&&_0x136a09!==null&&_0x136a09!=='')return _0x136a09;}return undefined;}function normalizeAuthEnvironmentDomain(_0x17cbce){const _0x2e2830=_0xbc56;if(!_0x17cbce)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x2e2830(0x14f)](_0x17cbce))return _0x17cbce;return _0x2e2830(0x139)+_0x17cbce;}export function resolveBaseUrl(_0x100619){const _0x41b0cb=_0xbc56,_0x4d40c6={'EbWmb':function(_0xe8568b,_0x4935fb){return _0xe8568b in _0x4935fb;},'gUnov':function(_0x2e70d5,_0x465126){return _0x2e70d5(_0x465126);}},_0x4641ca=_0x100619[_0x41b0cb(0x144)],_0x413316=!!_0x4641ca&&_0x4d40c6[_0x41b0cb(0x13b)](_0x41b0cb(0x147),_0x4641ca),_0x8de324=_0x4641ca?.[_0x41b0cb(0x147)],_0x3e6ebc=!(_0x413316&&_0x8de324===null);return firstDefined(_0x100619[_0x41b0cb(0x14d)],_0x100619['envBaseUrl'],_0x100619[_0x41b0cb(0x151)],typeof _0x8de324===_0x41b0cb(0x14c)?_0x8de324:undefined,_0x3e6ebc?_0x100619[_0x41b0cb(0x13e)]?.['baseUrl']:undefined,_0x3e6ebc?_0x4d40c6['gUnov'](normalizeAuthEnvironmentDomain,_0x100619[_0x41b0cb(0x146)]):undefined);}export function resolveStartPath(_0x21f6a5){const _0x4eaf2e=_0xbc56,_0x11c5ce={'pgorM':function(_0x20aae3,_0x33b4d0){return _0x20aae3 in _0x33b4d0;},'Mkclj':'startPath','TbALo':function(_0xa4dc03,_0x264fd7){return _0xa4dc03===_0x264fd7;},'JmZPf':function(_0x490eef,_0x140a66,_0x36ba12,_0x5f4741,_0x6ff31f){return _0x490eef(_0x140a66,_0x36ba12,_0x5f4741,_0x6ff31f);}},_0x3fd8a3=_0x21f6a5['projectOverrides'],_0x20a0ca=!!_0x3fd8a3&&_0x11c5ce['pgorM'](_0x11c5ce['Mkclj'],_0x3fd8a3),_0x2de67e=_0x3fd8a3?.['startPath'],_0xa69255=!(_0x20a0ca&&_0x11c5ce['TbALo'](_0x2de67e,null));return _0x11c5ce[_0x4eaf2e(0x13d)](firstDefined,_0x21f6a5[_0x4eaf2e(0x148)],_0x21f6a5[_0x4eaf2e(0x141)],_0x11c5ce['TbALo'](typeof _0x2de67e,_0x4eaf2e(0x14c))?_0x2de67e:undefined,_0xa69255?_0x21f6a5['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x3b3750,_0x24f3e9){const _0x5969e8=_0xbc56,_0x5cc83a={'bbchE':function(_0x59bf97,_0x327743){return _0x59bf97+_0x327743;},'SqJrQ':function(_0x433f34,_0x232df6){return _0x433f34+_0x232df6;}};if(!_0x3b3750)return undefined;if(!_0x24f3e9)return _0x3b3750;const _0x801ab9=_0x3b3750['endsWith']('/')?_0x3b3750['slice'](0x0,-0x1):_0x3b3750,_0x28b7c7=_0x24f3e9[_0x5969e8(0x13f)]('/')?_0x24f3e9:_0x5cc83a['bbchE']('/',_0x24f3e9);return _0x5cc83a[_0x5969e8(0x142)](_0x801ab9,_0x28b7c7);}export function resolveProfileUrl(_0x46475e){const _0x630ee4=_0xbc56,_0x4d4da3={'pKzDC':function(_0x4c3982,_0x4a2795){return _0x4c3982(_0x4a2795);}},_0x5d5bb0=_0x4d4da3[_0x630ee4(0x14b)](resolveBaseUrl,_0x46475e),_0x15828d=_0x4d4da3['pKzDC'](resolveStartPath,_0x46475e);return{'baseUrl':_0x5d5bb0,'startPath':_0x15828d,'url':joinBaseAndPath(_0x5d5bb0,_0x15828d)};}function _0xbc56(_0xb9aded,_0x1c1fc6){_0xb9aded=_0xb9aded-0x138;const _0x199c49=_0x199c();let _0xbc5646=_0x199c49[_0xb9aded];return _0xbc5646;}export function readUrlEnvVars(_0x9944ba=process[_0xec35f8(0x150)]){const _0x3e27b6=_0xec35f8;return{'envBaseUrl':_0x9944ba[_0x3e27b6(0x143)],'envStartPath':_0x9944ba[_0x3e27b6(0x138)]};}function _0x199c(){const _0x2226e2=['startsWith','779384BeiSUI','envStartPath','SqJrQ','RANGER_BASE_URL','projectOverrides','818388apqvCI','authEnvironmentDomain','baseUrl','flagStartPath','88629fQQGmZ','1723116feGQOJ','pKzDC','string','flagBaseUrl','2683877TobpPe','test','env','localSettingsBaseUrl','RANGER_START_PATH','https://','211658MgSTKp','EbWmb','911995icBVSk','JmZPf','cloudSettings'];_0x199c=function(){return _0x2226e2;};return _0x199c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c36cb,_0x344944){const _0x273bc2=_0x5460,_0x337e05=_0x2c36cb();while(!![]){try{const _0x432911=-parseInt(_0x273bc2(0x1b1))/0x1*(-parseInt(_0x273bc2(0x1b5))/0x2)+parseInt(_0x273bc2(0x1a3))/0x3*(-parseInt(_0x273bc2(0x1b3))/0x4)+parseInt(_0x273bc2(0x1a5))/0x5*(parseInt(_0x273bc2(0x1a2))/0x6)+-parseInt(_0x273bc2(0x1a4))/0x7*(parseInt(_0x273bc2(0x1aa))/0x8)+parseInt(_0x273bc2(0x1ac))/0x9*(-parseInt(_0x273bc2(0x1a7))/0xa)+parseInt(_0x273bc2(0x1b2))/0xb*(parseInt(_0x273bc2(0x1a9))/0xc)+parseInt(_0x273bc2(0x1a6))/0xd;if(_0x432911===_0x344944)break;else _0x337e05['push'](_0x337e05['shift']());}catch(_0x7f8515){_0x337e05['push'](_0x337e05['shift']());}}}(_0x2eaa,0x67629));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x5460(_0x50d8f6,_0x89bdea){_0x50d8f6=_0x50d8f6-0x1a1;const _0x2eaa61=_0x2eaa();let _0x54604f=_0x2eaa61[_0x50d8f6];return _0x54604f;}function _0x2eaa(){const _0x5a4e0d=['label','baseDelayMs','error','\x20failed\x20(attempt\x20','1iTLpqO','99506yYbCZl','4xjsEPl','),\x20retrying\x20in\x20','291556tMETbL','gNBTx','6KkThnv','2317494ELJvzV','1036OEEbdX','2010410twARiP','23761049XhBgpP','380qCXkvF','TIPrX','24VZJSjG','37616pNxJnK','maxRetries','118863miESFU'];_0x2eaa=function(){return _0x5a4e0d;};return _0x2eaa();}export async function withRetry(_0x3bf83f,_0x555b02){const _0x5e9c1d=_0x5460,_0x3fa621={'HOgJk':function(_0x4052b8,_0x1518d5){return _0x4052b8<=_0x1518d5;},'gNBTx':function(_0x5de992){return _0x5de992();},'rOYaL':function(_0x198215,_0xc8a46f){return _0x198215*_0xc8a46f;},'TIPrX':function(_0xe399e1,_0x2340d2){return _0xe399e1+_0x2340d2;}},_0x46e998=_0x555b02?.[_0x5e9c1d(0x1ab)]??DEFAULT_MAX_RETRIES,_0x28f4b8=_0x555b02?.[_0x5e9c1d(0x1ae)]??DEFAULT_BASE_DELAY_MS;let _0x490515;for(let _0x44658d=0x0;_0x3fa621['HOgJk'](_0x44658d,_0x46e998);_0x44658d++){try{return await _0x3fa621[_0x5e9c1d(0x1a1)](_0x3bf83f);}catch(_0x9e2db8){_0x490515=_0x9e2db8 instanceof Error?_0x9e2db8:new Error(String(_0x9e2db8));if(_0x44658d<_0x46e998){const _0x50ec26=_0x3fa621['rOYaL'](_0x28f4b8,Math['pow'](0x2,_0x44658d));_0x555b02?.[_0x5e9c1d(0x1ad)]&&console[_0x5e9c1d(0x1af)](_0x555b02[_0x5e9c1d(0x1ad)]+_0x5e9c1d(0x1b0)+_0x3fa621[_0x5e9c1d(0x1a8)](_0x44658d,0x1)+'/'+_0x3fa621['TIPrX'](_0x46e998,0x1)+_0x5e9c1d(0x1b4)+_0x50ec26+'ms...'),await new Promise(_0x5c5e1f=>setTimeout(_0x5c5e1f,_0x50ec26));}}}throw _0x490515;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x287d(_0x45ee2b,_0x53ee85){_0x45ee2b=_0x45ee2b-0x1b0;const _0x650605=_0x6506();let _0x287d0e=_0x650605[_0x45ee2b];return _0x287d0e;}const _0x37e8c9=_0x287d;(function(_0x8171d9,_0x4e4feb){const _0xdf3f8c=_0x287d,_0x5a1abb=_0x8171d9();while(!![]){try{const _0x194a8e=-parseInt(_0xdf3f8c(0x1e5))/0x1*(parseInt(_0xdf3f8c(0x1b3))/0x2)+-parseInt(_0xdf3f8c(0x1d4))/0x3*(-parseInt(_0xdf3f8c(0x1d8))/0x4)+parseInt(_0xdf3f8c(0x1b7))/0x5+-parseInt(_0xdf3f8c(0x1c5))/0x6*(parseInt(_0xdf3f8c(0x1b1))/0x7)+-parseInt(_0xdf3f8c(0x1b4))/0x8+parseInt(_0xdf3f8c(0x1d2))/0x9*(parseInt(_0xdf3f8c(0x1bf))/0xa)+parseInt(_0xdf3f8c(0x1d6))/0xb*(parseInt(_0xdf3f8c(0x1de))/0xc);if(_0x194a8e===_0x4e4feb)break;else _0x5a1abb['push'](_0x5a1abb['shift']());}catch(_0x3a408a){_0x5a1abb['push'](_0x5a1abb['shift']());}}}(_0x6506,0xbef99));import*as _0x3bfa03 from'fs';import*as _0x278e91 from'path';import*as _0xd3bd0 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x278e91[_0x37e8c9(0x1b6)](_0xd3bd0[_0x37e8c9(0x1ce)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x309bae=_0x37e8c9;try{if(_0x3bfa03['existsSync'](CACHE_FILE)){const _0x4d54c6=JSON['parse'](_0x3bfa03['readFileSync'](CACHE_FILE,_0x309bae(0x1df)));return{'version':0x3,'sessions':_0x4d54c6['sessions']||{},'branches':_0x4d54c6['branches']||{},'lastEnabledSessionClearedAt':_0x4d54c6['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xeaa051){const _0x42a1f8=_0x37e8c9;try{const _0x4683c7=_0x278e91['dirname'](CACHE_FILE);!_0x3bfa03[_0x42a1f8(0x1b9)](_0x4683c7)&&_0x3bfa03[_0x42a1f8(0x1c4)](_0x4683c7,{'recursive':!![]}),_0x3bfa03[_0x42a1f8(0x1e2)](CACHE_FILE,JSON['stringify'](_0xeaa051,null,0x2));}catch{}}export function getCurrentBranch(){const _0x28369b=_0x37e8c9,_0x4d2a10={'yiWFS':'pipe'};try{const _0x3d097e=execSync(_0x28369b(0x1e1),{'encoding':'utf-8','stdio':[_0x4d2a10['yiWFS'],'pipe',_0x4d2a10['yiWFS']]})[_0x28369b(0x1d7)]();if(!_0x3d097e||_0x3d097e==='HEAD')return null;return _0x3d097e;}catch{return null;}}export function enableBranch(_0x5007e3){const _0xdc345=_0x37e8c9,_0xca6df4={'OrPyv':function(_0x139ba8){return _0x139ba8();}},_0x275c13=_0xca6df4[_0xdc345(0x1c0)](loadCache);_0x275c13[_0xdc345(0x1cb)][_0x5007e3]=!![],saveCache(_0x275c13);}export function disableBranch(_0x1795e2){const _0x365961=_0x37e8c9,_0x4ddad7={'trxpJ':function(_0x5cca01){return _0x5cca01();}},_0x363000=_0x4ddad7[_0x365961(0x1c9)](loadCache);delete _0x363000[_0x365961(0x1cb)][_0x1795e2],saveCache(_0x363000);}export function isBranchEnabled(_0x405eb0){const _0x44695b=loadCache();return _0x44695b['branches'][_0x405eb0]===!![];}function getOrCreateSession(_0x56fad6,_0x34c4b8){const _0x140498=_0x37e8c9;return!_0x56fad6[_0x140498(0x1d1)][_0x34c4b8]&&(_0x56fad6[_0x140498(0x1d1)][_0x34c4b8]={}),_0x56fad6[_0x140498(0x1d1)][_0x34c4b8];}export function enableSession(_0x3f24cd){const _0x4439f7=_0x37e8c9,_0x35d330={'FkMfk':function(_0xcbc34a,_0x5d9945,_0x15965e){return _0xcbc34a(_0x5d9945,_0x15965e);},'YIMYC':function(_0x505fca){return _0x505fca();},'nomFR':function(_0x14e236,_0x3b7f52){return _0x14e236!==_0x3b7f52;},'cmexz':function(_0x3a6507,_0x40a1f3){return _0x3a6507(_0x40a1f3);}},_0x1ba703=loadCache(),_0x5957aa=_0x35d330[_0x4439f7(0x1b5)](getOrCreateSession,_0x1ba703,_0x3f24cd);_0x5957aa['enabled']=!![];const _0x127e71=_0x35d330[_0x4439f7(0x1e7)](getCurrentBranch);_0x127e71&&_0x35d330[_0x4439f7(0x1b2)](_0x127e71,_0x4439f7(0x1e6))&&_0x35d330['nomFR'](_0x127e71,'master')&&(_0x1ba703['branches'][_0x127e71]=!![],_0x5957aa['currentBranch']=_0x127e71),_0x35d330[_0x4439f7(0x1bb)](saveCache,_0x1ba703);}export function isSessionEnabled(_0x429bfa){const _0x471d70=_0x37e8c9,_0x151e4b={'dsqdm':function(_0x2ece3d){return _0x2ece3d();},'IcJYo':_0x471d70(0x1e6),'fCvmG':_0x471d70(0x1d0),'Tsjiu':function(_0x1f0f06,_0x4f56de){return _0x1f0f06===_0x4f56de;},'dCXrE':function(_0x5122c8,_0x236f47){return _0x5122c8===_0x236f47;},'KxvQU':function(_0x2f67e2,_0x25bf22){return _0x2f67e2||_0x25bf22;}},_0x404271=loadCache(),_0x22787a=_0x151e4b['dsqdm'](getCurrentBranch);if(!_0x22787a||_0x22787a===_0x151e4b[_0x471d70(0x1cf)]||_0x22787a===_0x151e4b['fCvmG'])return _0x151e4b[_0x471d70(0x1ca)](_0x404271['sessions'][_0x429bfa]?.['enabled'],!![]);const _0x3d2cc7=_0x404271['branches'][_0x22787a]===!![],_0x2ce234=_0x151e4b[_0x471d70(0x1c6)](_0x404271[_0x471d70(0x1d1)][_0x429bfa]?.[_0x471d70(0x1d3)],!![]);return _0x151e4b['KxvQU'](_0x3d2cc7,_0x2ce234);}export function disableSession(_0x11c765){const _0x4b7460=_0x37e8c9,_0x17cb28={'YvGyT':function(_0x30f55b){return _0x30f55b();},'rfznR':function(_0x36b59d,_0x144a34,_0x5846b6){return _0x36b59d(_0x144a34,_0x5846b6);}},_0x2b6af4=_0x17cb28[_0x4b7460(0x1bc)](loadCache),_0x2ad558=_0x17cb28[_0x4b7460(0x1b0)](getOrCreateSession,_0x2b6af4,_0x11c765);_0x2ad558[_0x4b7460(0x1d3)]=![],saveCache(_0x2b6af4);}export function updateBranchTracking(_0x5108cc){const _0x3e32e2=_0x37e8c9,_0x13aa31={'FLYnH':function(_0x4f7035){return _0x4f7035();},'xRqgY':function(_0xa8f7a6,_0x23a297){return _0xa8f7a6===_0x23a297;},'HOhlh':_0x3e32e2(0x1e6),'TQHQs':'master','nnNOS':function(_0x94c4cf,_0x751798){return _0x94c4cf(_0x751798);}},_0x3f835c=loadCache(),_0xe0b28a=_0x3f835c['sessions'][_0x5108cc];if(!_0xe0b28a?.[_0x3e32e2(0x1d3)])return;const _0x10b0e6=_0x13aa31[_0x3e32e2(0x1c8)](getCurrentBranch);if(!_0x10b0e6||_0x13aa31[_0x3e32e2(0x1c2)](_0x10b0e6,_0x13aa31[_0x3e32e2(0x1c3)])||_0x13aa31['xRqgY'](_0x10b0e6,_0x13aa31['TQHQs']))return;_0xe0b28a[_0x3e32e2(0x1d5)]!==_0x10b0e6&&(_0x3f835c[_0x3e32e2(0x1cb)][_0x10b0e6]=!![],_0xe0b28a['currentBranch']=_0x10b0e6,_0x13aa31['nnNOS'](saveCache,_0x3f835c));}export function initBranchTracking(_0x324be2){const _0x24e4aa=_0x37e8c9,_0x3b0d9a={'wzFBS':function(_0x912aa7){return _0x912aa7();},'cJLUs':function(_0x50aec0){return _0x50aec0();},'Ggama':_0x24e4aa(0x1e6),'gfWkw':function(_0x37c7a1,_0x11d0b0){return _0x37c7a1===_0x11d0b0;},'LrZxd':'master','sSxKz':function(_0x51b2c3,_0x4e5042){return _0x51b2c3===_0x4e5042;},'DYgYQ':function(_0x18fbcf,_0x33a088,_0x3457e8){return _0x18fbcf(_0x33a088,_0x3457e8);}},_0x56474f=_0x3b0d9a['wzFBS'](loadCache),_0x3c855e=_0x3b0d9a['cJLUs'](getCurrentBranch);if(!_0x3c855e||_0x3c855e===_0x3b0d9a['Ggama']||_0x3b0d9a[_0x24e4aa(0x1e4)](_0x3c855e,_0x3b0d9a[_0x24e4aa(0x1cc)]))return;if(_0x3b0d9a[_0x24e4aa(0x1da)](_0x56474f[_0x24e4aa(0x1cb)][_0x3c855e],!![])){const _0x2ae826=_0x3b0d9a[_0x24e4aa(0x1e0)](getOrCreateSession,_0x56474f,_0x324be2);_0x2ae826['enabled']=!![],_0x2ae826[_0x24e4aa(0x1d5)]=_0x3c855e,saveCache(_0x56474f);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x105f5e){const _0x35a3f1=_0x37e8c9,_0x8ca46a={'MMPAG':function(_0x2c5fee){return _0x2c5fee();},'tLKjX':function(_0x2548c5,_0x268972){return _0x2548c5(_0x268972);}},_0xef26d0=_0x8ca46a['MMPAG'](loadCache),_0x300855=_0xef26d0['sessions'][_0x105f5e];_0x300855?.[_0x35a3f1(0x1d3)]&&(_0xef26d0[_0x35a3f1(0x1bd)]=Date[_0x35a3f1(0x1e3)](),_0x8ca46a[_0x35a3f1(0x1ba)](saveCache,_0xef26d0));}export function shouldAutoEnableAfterClear(_0x380323){const _0x39baca=_0x37e8c9;if(_0x380323!==_0x39baca(0x1b8))return![];const _0x228de9=loadCache(),_0x3bf6ff=_0x228de9[_0x39baca(0x1bd)];if(!_0x3bf6ff)return![];const _0x1ddc7d=Date[_0x39baca(0x1e3)]()-_0x3bf6ff;return _0x1ddc7d<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x168f16){const _0x9e2a82=_0x37e8c9,_0x47faa3={'Beibr':function(_0x15c778){return _0x15c778();},'GVaNx':function(_0x303525,_0x3b71d8,_0x1410e7){return _0x303525(_0x3b71d8,_0x1410e7);},'jQvDm':function(_0x574ed1){return _0x574ed1();}},_0x8c9582=_0x47faa3['Beibr'](loadCache),_0x1c67d7=_0x47faa3['GVaNx'](getOrCreateSession,_0x8c9582,_0x168f16);_0x1c67d7[_0x9e2a82(0x1d3)]=!![];const _0x22a9ab=_0x47faa3[_0x9e2a82(0x1be)](getCurrentBranch);_0x22a9ab&&_0x22a9ab!=='main'&&_0x22a9ab!=='master'&&(_0x1c67d7[_0x9e2a82(0x1d5)]=_0x22a9ab),delete _0x8c9582['lastEnabledSessionClearedAt'],saveCache(_0x8c9582);}export function registerSession(_0x4c9748,_0x1809e4){const _0x2858b5=_0x37e8c9,_0x33408f={'syajP':function(_0x38afff,_0x353681,_0x37531f){return _0x38afff(_0x353681,_0x37531f);},'igKrD':function(_0xc25315,_0x1a0ddd){return _0xc25315(_0x1a0ddd);}},_0x57e59f=loadCache(),_0x5cc6e7=_0x33408f['syajP'](getOrCreateSession,_0x57e59f,_0x4c9748);_0x5cc6e7['featureId']=_0x1809e4,_0x5cc6e7[_0x2858b5(0x1c7)]=new Date()['toISOString'](),_0x33408f[_0x2858b5(0x1e8)](saveCache,_0x57e59f);}export function getSessionEntry(_0x4ffc5e){const _0x159de2=_0x37e8c9,_0x37f2ca=loadCache(),_0x385bfc=_0x37f2ca['sessions'][_0x4ffc5e];if(_0x385bfc?.['featureId']&&_0x385bfc?.['registeredAt'])return{'featureId':_0x385bfc[_0x159de2(0x1db)],'registeredAt':_0x385bfc['registeredAt']};return null;}export function unregisterSession(_0x34874d){const _0x2a0a2e=_0x37e8c9,_0x2cacaa={'UtUhr':function(_0x471f5d){return _0x471f5d();}},_0x3120b6=_0x2cacaa[_0x2a0a2e(0x1c1)](loadCache),_0x30d09a=_0x3120b6['sessions'][_0x34874d];_0x30d09a&&(delete _0x30d09a[_0x2a0a2e(0x1db)],delete _0x30d09a[_0x2a0a2e(0x1c7)],saveCache(_0x3120b6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xceecc0){const _0x3be613=_0x37e8c9,_0x373e04={'INdxt':function(_0x3217b7){return _0x3217b7();},'mkdfj':function(_0x1e049e,_0xa5c939,_0x365af0){return _0x1e049e(_0xa5c939,_0x365af0);},'HOTSk':function(_0x2630b5,_0x2e6abe){return _0x2630b5-_0x2e6abe;},'AZYCr':function(_0x3abb42,_0x5cace7){return _0x3abb42(_0x5cace7);}},_0x41a8f6=_0x373e04['INdxt'](loadCache),_0x17b0cf=_0x373e04['mkdfj'](getOrCreateSession,_0x41a8f6,_0xceecc0),_0x283d8a=_0x17b0cf['lastPlanReminderAt']||0x0,_0x3ba5c0=Date[_0x3be613(0x1e3)]();if(_0x373e04['HOTSk'](_0x3ba5c0,_0x283d8a)>=PLAN_REMINDER_INTERVAL_MS)return _0x17b0cf['lastPlanReminderAt']=_0x3ba5c0,_0x373e04['AZYCr'](saveCache,_0x41a8f6),!![];return![];}function _0x6506(){const _0x121559=['4zLTVFK','prompted','sSxKz','featureId','HesaH','Hldky','7104912FPAtjW','utf-8','DYgYQ','git\x20rev-parse\x20--abbrev-ref\x20HEAD','writeFileSync','now','gfWkw','497279smptWe','main','YIMYC','igKrD','rfznR','854RMEZkv','nomFR','4ElIdsx','6650216zIEJuk','FkMfk','join','5064855uNmfGv','clear','existsSync','tLKjX','cmexz','YvGyT','lastEnabledSessionClearedAt','jQvDm','20eeUzFJ','OrPyv','UtUhr','xRqgY','HOhlh','mkdirSync','43914AeJnvP','dCXrE','registeredAt','FLYnH','trxpJ','Tsjiu','branches','LrZxd','hNiIR','homedir','IcJYo','master','sessions','4635729YBzNXc','enabled','821103vQuqgC','currentBranch','22UGfVWD','trim'];_0x6506=function(){return _0x121559;};return _0x6506();}export function shouldShowStopReminder(_0x18da0e){const _0x71768=_0x37e8c9,_0x1aa4d2={'Hldky':function(_0x12c216,_0x31c0d9){return _0x12c216>=_0x31c0d9;},'lGZNm':function(_0x6a6017,_0x4f59ff){return _0x6a6017-_0x4f59ff;},'uSAMu':function(_0x1e5ed6,_0x5c5771){return _0x1e5ed6(_0x5c5771);}},_0x3f29fd=loadCache(),_0x31a891=getOrCreateSession(_0x3f29fd,_0x18da0e),_0x4a92ec=_0x31a891['lastStopReminderAt']||0x0,_0x3cb781=Date[_0x71768(0x1e3)]();if(_0x1aa4d2[_0x71768(0x1dd)](_0x1aa4d2['lGZNm'](_0x3cb781,_0x4a92ec),STOP_REMINDER_INTERVAL_MS))return _0x31a891['lastStopReminderAt']=_0x3cb781,_0x1aa4d2['uSAMu'](saveCache,_0x3f29fd),!![];return![];}export function hasSessionBeenPrompted(_0xd5cd41){const _0x176c3e={'aFaUW':function(_0xa815ce,_0x54e7a4){return _0xa815ce===_0x54e7a4;}},_0x36d8ed=loadCache();return _0x176c3e['aFaUW'](_0x36d8ed['sessions'][_0xd5cd41]?.['prompted'],!![]);}export function markSessionPrompted(_0x3c65ae){const _0x5da083=_0x37e8c9,_0x5c3f53={'HesaH':function(_0x130e25){return _0x130e25();},'ltyGP':function(_0xb09950,_0x38b49a,_0x2f7eb8){return _0xb09950(_0x38b49a,_0x2f7eb8);},'hNiIR':function(_0x48ad1e,_0x38f0e8){return _0x48ad1e(_0x38f0e8);}},_0x5a4958=_0x5c3f53[_0x5da083(0x1dc)](loadCache),_0x4775db=_0x5c3f53['ltyGP'](getOrCreateSession,_0x5a4958,_0x3c65ae);_0x4775db[_0x5da083(0x1d9)]=!![],_0x5c3f53[_0x5da083(0x1cd)](saveCache,_0x5a4958);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x29b831=_0x4f92;(function(_0x495ee3,_0x27d952){const _0x10686f=_0x4f92,_0x213c67=_0x495ee3();while(!![]){try{const _0x52e4cb=-parseInt(_0x10686f(0x13c))/0x1+-parseInt(_0x10686f(0x12e))/0x2*(-parseInt(_0x10686f(0x12d))/0x3)+parseInt(_0x10686f(0x121))/0x4+parseInt(_0x10686f(0x12c))/0x5+-parseInt(_0x10686f(0x11e))/0x6*(parseInt(_0x10686f(0x112))/0x7)+-parseInt(_0x10686f(0x132))/0x8+parseInt(_0x10686f(0x141))/0x9;if(_0x52e4cb===_0x27d952)break;else _0x213c67['push'](_0x213c67['shift']());}catch(_0x5ca998){_0x213c67['push'](_0x213c67['shift']());}}}(_0x3543,0x1c766));import*as _0x1609c6 from'fs';import*as _0x3f4788 from'path';import*as _0x4387b9 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x3f4788[_0x29b831(0x115)](_0x4387b9['homedir'](),_0x29b831(0x128),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x13c6e1=_0x29b831,_0x5d83ca={'QaynS':function(_0xe930cf){return _0xe930cf();}};try{if(_0x1609c6[_0x13c6e1(0x139)](CACHE_FILE)){const _0x47cbf3=JSON[_0x13c6e1(0x131)](_0x1609c6[_0x13c6e1(0x11a)](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x47cbf3[_0x13c6e1(0x110)]||{},'branches':_0x47cbf3['branches']||{},'lastEnabledSessionClearedAt':_0x47cbf3[_0x13c6e1(0x13d)]};}}catch{}return _0x5d83ca['QaynS'](createEmptyCache);}function saveCache(_0x1b6c96){const _0xf579ea=_0x29b831;try{const _0x280d1=_0x3f4788['dirname'](CACHE_FILE);!_0x1609c6['existsSync'](_0x280d1)&&_0x1609c6['mkdirSync'](_0x280d1,{'recursive':!![]}),_0x1609c6[_0xf579ea(0x134)](CACHE_FILE,JSON['stringify'](_0x1b6c96,null,0x2));}catch{}}export function getCurrentBranch(){const _0x45202f=_0x29b831,_0x20300c={'NQTKu':function(_0x20ba03,_0x26d83a,_0x1fe537){return _0x20ba03(_0x26d83a,_0x1fe537);},'nCQgE':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','dyJqj':_0x45202f(0x12f),'SooXM':_0x45202f(0x136),'lJhWs':_0x45202f(0x13b)};try{const _0x384d32=_0x20300c['NQTKu'](execSync,_0x20300c['nCQgE'],{'encoding':_0x20300c['dyJqj'],'stdio':[_0x20300c['SooXM'],_0x20300c[_0x45202f(0x13e)],_0x20300c['SooXM']]})[_0x45202f(0x10f)]();if(!_0x384d32||_0x384d32===_0x20300c[_0x45202f(0x143)])return null;return _0x384d32;}catch{return null;}}export function enableBranch(_0x32a09a){const _0x1b2736={'yypqj':function(_0xf7c0c8){return _0xf7c0c8();},'rsQYh':function(_0x14fd58,_0x20e818){return _0x14fd58(_0x20e818);}},_0x5ed4fb=_0x1b2736['yypqj'](loadCache);_0x5ed4fb['branches'][_0x32a09a]=!![],_0x1b2736['rsQYh'](saveCache,_0x5ed4fb);}export function disableBranch(_0x255632){const _0x13f1fa=_0x29b831,_0x31c7fb={'yQnjW':function(_0x3c9448,_0x3c3542){return _0x3c9448(_0x3c3542);}},_0x1e494c=loadCache();delete _0x1e494c[_0x13f1fa(0x13a)][_0x255632],_0x31c7fb[_0x13f1fa(0x119)](saveCache,_0x1e494c);}export function isBranchEnabled(_0x3b70b8){const _0x50c24f=_0x29b831,_0x3c496e=loadCache();return _0x3c496e[_0x50c24f(0x13a)][_0x3b70b8]===!![];}function _0x4f92(_0x795c4,_0x5f439a){_0x795c4=_0x795c4-0x10f;const _0x35435f=_0x3543();let _0x4f927e=_0x35435f[_0x795c4];return _0x4f927e;}function getOrCreateSession(_0x4d86fa,_0x14e74e){const _0x2177c0=_0x29b831;return!_0x4d86fa['sessions'][_0x14e74e]&&(_0x4d86fa['sessions'][_0x14e74e]={}),_0x4d86fa[_0x2177c0(0x110)][_0x14e74e];}export function enableSession(_0xd8c223){const _0x5a7fd6=_0x29b831,_0x243854={'KgdjL':function(_0x6baafa){return _0x6baafa();},'YFQoF':_0x5a7fd6(0x12a),'Dmamg':_0x5a7fd6(0x11d),'RFvmr':function(_0x64846d,_0x527822){return _0x64846d(_0x527822);}},_0x33dfbb=loadCache(),_0x54e2cd=getOrCreateSession(_0x33dfbb,_0xd8c223);_0x54e2cd[_0x5a7fd6(0x130)]=!![];const _0x1db891=_0x243854['KgdjL'](getCurrentBranch);_0x1db891&&_0x1db891!==_0x243854[_0x5a7fd6(0x111)]&&_0x1db891!==_0x243854['Dmamg']&&(_0x33dfbb[_0x5a7fd6(0x13a)][_0x1db891]=!![],_0x54e2cd['currentBranch']=_0x1db891),_0x243854['RFvmr'](saveCache,_0x33dfbb);}export function isSessionEnabled(_0x2685c7){const _0x49856e=_0x29b831,_0x55a9f4={'BGcGp':function(_0x1f14fa){return _0x1f14fa();},'zDoVE':function(_0x21a798,_0x406cfe){return _0x21a798===_0x406cfe;},'EZbuc':_0x49856e(0x11d)},_0x24bfdf=loadCache(),_0x566c72=_0x55a9f4['BGcGp'](getCurrentBranch);if(!_0x566c72||_0x55a9f4[_0x49856e(0x118)](_0x566c72,'main')||_0x566c72===_0x55a9f4[_0x49856e(0x133)])return _0x24bfdf['sessions'][_0x2685c7]?.['enabled']===!![];const _0x1d1196=_0x24bfdf['branches'][_0x566c72]===!![],_0x2cede3=_0x55a9f4['zDoVE'](_0x24bfdf[_0x49856e(0x110)][_0x2685c7]?.['enabled'],!![]);return _0x1d1196||_0x2cede3;}export function disableSession(_0x1e080d){const _0x52e82f=_0x29b831,_0xfdece1={'qpBBk':function(_0x1f7a6d){return _0x1f7a6d();},'MiFni':function(_0x2e7d88,_0x1b7312){return _0x2e7d88(_0x1b7312);}},_0x2a1b6f=_0xfdece1[_0x52e82f(0x137)](loadCache),_0x5e3904=getOrCreateSession(_0x2a1b6f,_0x1e080d);_0x5e3904[_0x52e82f(0x130)]=![],_0xfdece1['MiFni'](saveCache,_0x2a1b6f);}export function updateBranchTracking(_0x520ce5){const _0x45ee7b=_0x29b831,_0x491eef={'Ojgfm':function(_0x35812a){return _0x35812a();},'xzsGt':function(_0x204ec9,_0x26c53f){return _0x204ec9===_0x26c53f;},'QMwix':function(_0x119eda,_0x47c749){return _0x119eda!==_0x47c749;}},_0x5cfd5b=_0x491eef[_0x45ee7b(0x126)](loadCache),_0xe6a67e=_0x5cfd5b[_0x45ee7b(0x110)][_0x520ce5];if(!_0xe6a67e?.['enabled'])return;const _0x278014=_0x491eef['Ojgfm'](getCurrentBranch);if(!_0x278014||_0x491eef[_0x45ee7b(0x142)](_0x278014,'main')||_0x491eef[_0x45ee7b(0x142)](_0x278014,_0x45ee7b(0x11d)))return;_0x491eef[_0x45ee7b(0x125)](_0xe6a67e['currentBranch'],_0x278014)&&(_0x5cfd5b['branches'][_0x278014]=!![],_0xe6a67e[_0x45ee7b(0x114)]=_0x278014,saveCache(_0x5cfd5b));}export function initBranchTracking(_0xd6ca17){const _0x4b264b=_0x29b831,_0x3e1165={'TfHlb':function(_0x2af43c){return _0x2af43c();},'JAVPx':function(_0x7f7442,_0x4fb4cf){return _0x7f7442===_0x4fb4cf;},'hdLyW':_0x4b264b(0x11d)},_0x32b622=loadCache(),_0x7cff9b=_0x3e1165['TfHlb'](getCurrentBranch);if(!_0x7cff9b||_0x3e1165['JAVPx'](_0x7cff9b,'main')||_0x7cff9b===_0x3e1165[_0x4b264b(0x11c)])return;if(_0x32b622['branches'][_0x7cff9b]===!![]){const _0x25443e=getOrCreateSession(_0x32b622,_0xd6ca17);_0x25443e['enabled']=!![],_0x25443e[_0x4b264b(0x114)]=_0x7cff9b,saveCache(_0x32b622);}}function _0x3543(){const _0x552fcf=['yQnjW','readFileSync','now','hdLyW','master','468QbztCM','sigqQ','Zxkrg','24220YNdGgK','VMkcG','ZeyAD','uahsi','QMwix','Ojgfm','KTLHH','.claude','ouhFN','main','clear','430115RLPCon','7044eblUwe','140LnNwMd','utf-8','enabled','parse','94472DMpTkK','EZbuc','writeFileSync','registeredAt','pipe','qpBBk','prompted','existsSync','branches','HEAD','210300sibVHv','lastEnabledSessionClearedAt','SooXM','lastStopReminderAt','HZSZQ','2101455gGYREP','xzsGt','lJhWs','trim','sessions','YFQoF','13573gpwBsM','featureId','currentBranch','join','AficO','tCbgJ','zDoVE'];_0x3543=function(){return _0x552fcf;};return _0x3543();}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x363e56){const _0x26a407=_0x29b831,_0x4fa602={'KTLHH':function(_0xc63985,_0x5aba73){return _0xc63985(_0x5aba73);}},_0xb8950f=loadCache(),_0x3f8acf=_0xb8950f[_0x26a407(0x110)][_0x363e56];_0x3f8acf?.['enabled']&&(_0xb8950f['lastEnabledSessionClearedAt']=Date[_0x26a407(0x11b)](),_0x4fa602[_0x26a407(0x127)](saveCache,_0xb8950f));}export function shouldAutoEnableAfterClear(_0x5c8ead){const _0x510741=_0x29b831,_0x2ab4fa={'hgAgc':_0x510741(0x12b),'tCbgJ':function(_0x5b7118){return _0x5b7118();},'HZSZQ':function(_0x16348f,_0x4a5758){return _0x16348f-_0x4a5758;},'ZeyAD':function(_0x28e6ff,_0x52699a){return _0x28e6ff<=_0x52699a;}};if(_0x5c8ead!==_0x2ab4fa['hgAgc'])return![];const _0x5f395a=_0x2ab4fa[_0x510741(0x117)](loadCache),_0xff8e2d=_0x5f395a[_0x510741(0x13d)];if(!_0xff8e2d)return![];const _0x4d43a5=_0x2ab4fa[_0x510741(0x140)](Date[_0x510741(0x11b)](),_0xff8e2d);return _0x2ab4fa[_0x510741(0x123)](_0x4d43a5,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x59a8fa){const _0x2b7565=_0x29b831,_0x339a63={'aZTOk':function(_0x32ed59){return _0x32ed59();},'sigqQ':function(_0x5cd070,_0x51c0f5,_0x1aeacc){return _0x5cd070(_0x51c0f5,_0x1aeacc);},'jCuot':function(_0x59eab9,_0x10defc){return _0x59eab9!==_0x10defc;},'XeVYD':'master','Zxkrg':function(_0x174ad0,_0xb98eaa){return _0x174ad0(_0xb98eaa);}},_0x528d9b=_0x339a63['aZTOk'](loadCache),_0x11649c=_0x339a63[_0x2b7565(0x11f)](getOrCreateSession,_0x528d9b,_0x59a8fa);_0x11649c[_0x2b7565(0x130)]=!![];const _0x2ffec1=getCurrentBranch();_0x2ffec1&&_0x339a63['jCuot'](_0x2ffec1,'main')&&_0x2ffec1!==_0x339a63['XeVYD']&&(_0x11649c['currentBranch']=_0x2ffec1),delete _0x528d9b[_0x2b7565(0x13d)],_0x339a63[_0x2b7565(0x120)](saveCache,_0x528d9b);}export function registerSession(_0x220504,_0x56f01c){const _0x532221=_0x29b831,_0x19d07b={'uahsi':function(_0x566d41){return _0x566d41();}},_0x1f6e85=_0x19d07b[_0x532221(0x124)](loadCache),_0xf9e85c=getOrCreateSession(_0x1f6e85,_0x220504);_0xf9e85c['featureId']=_0x56f01c,_0xf9e85c['registeredAt']=new Date()['toISOString'](),saveCache(_0x1f6e85);}export function getSessionEntry(_0x134b60){const _0x3b666b=_0x29b831,_0xe558f8={'wnFgw':function(_0x4788f5){return _0x4788f5();}},_0x466e84=_0xe558f8['wnFgw'](loadCache),_0x38747b=_0x466e84[_0x3b666b(0x110)][_0x134b60];if(_0x38747b?.[_0x3b666b(0x113)]&&_0x38747b?.[_0x3b666b(0x135)])return{'featureId':_0x38747b[_0x3b666b(0x113)],'registeredAt':_0x38747b[_0x3b666b(0x135)]};return null;}export function unregisterSession(_0x3481e4){const _0x3f5554=_0x29b831,_0x4bb3a4={'GKHzx':function(_0x281156){return _0x281156();},'xZIeW':function(_0x1de88b,_0x4e8b09){return _0x1de88b(_0x4e8b09);}},_0x2ebabe=_0x4bb3a4['GKHzx'](loadCache),_0x2abf4d=_0x2ebabe['sessions'][_0x3481e4];_0x2abf4d&&(delete _0x2abf4d['featureId'],delete _0x2abf4d[_0x3f5554(0x135)],_0x4bb3a4['xZIeW'](saveCache,_0x2ebabe));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5ecac9){const _0x57fd55=_0x29b831,_0x3eff3d={'VMkcG':function(_0x5e146e,_0x8477c){return _0x5e146e>=_0x8477c;},'vaglP':function(_0x56426a,_0xb1f3fe){return _0x56426a-_0xb1f3fe;}},_0x2c0352=loadCache(),_0x7be700=getOrCreateSession(_0x2c0352,_0x5ecac9),_0x2aa386=_0x7be700['lastPlanReminderAt']||0x0,_0x501c8c=Date[_0x57fd55(0x11b)]();if(_0x3eff3d[_0x57fd55(0x122)](_0x3eff3d['vaglP'](_0x501c8c,_0x2aa386),PLAN_REMINDER_INTERVAL_MS))return _0x7be700['lastPlanReminderAt']=_0x501c8c,saveCache(_0x2c0352),!![];return![];}export function shouldShowStopReminder(_0x480528){const _0x3e1688=_0x29b831,_0x27e369={'lqBPN':function(_0x4c5ded){return _0x4c5ded();},'egHLw':function(_0x45f510,_0x1bfc90,_0xc6a4c1){return _0x45f510(_0x1bfc90,_0xc6a4c1);},'AficO':function(_0x39b4c3,_0x1eb16a){return _0x39b4c3>=_0x1eb16a;}},_0x404091=_0x27e369['lqBPN'](loadCache),_0x4aafa8=_0x27e369['egHLw'](getOrCreateSession,_0x404091,_0x480528),_0x407cfe=_0x4aafa8[_0x3e1688(0x13f)]||0x0,_0x3b3451=Date['now']();if(_0x27e369[_0x3e1688(0x116)](_0x3b3451-_0x407cfe,STOP_REMINDER_INTERVAL_MS))return _0x4aafa8[_0x3e1688(0x13f)]=_0x3b3451,saveCache(_0x404091),!![];return![];}export function hasSessionBeenPrompted(_0x69dc68){const _0x4cf963=_0x29b831,_0x19dd89={'KXIox':function(_0xbea8c0){return _0xbea8c0();}},_0x4f8df2=_0x19dd89['KXIox'](loadCache);return _0x4f8df2[_0x4cf963(0x110)][_0x69dc68]?.[_0x4cf963(0x138)]===!![];}export function markSessionPrompted(_0x3aaf6c){const _0x484081=_0x29b831,_0xa0d4c2={'UAHng':function(_0x26a065){return _0x26a065();},'ouhFN':function(_0x487f14,_0xc4ec21){return _0x487f14(_0xc4ec21);}},_0x4d9d13=_0xa0d4c2['UAHng'](loadCache),_0x43acd0=getOrCreateSession(_0x4d9d13,_0x3aaf6c);_0x43acd0['prompted']=!![],_0xa0d4c2[_0x484081(0x129)](saveCache,_0x4d9d13);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x47899b=_0x1df3;(function(_0x556474,_0x21461b){const _0x33ab21=_0x1df3,_0x196282=_0x556474();while(!![]){try{const _0x231e40=parseInt(_0x33ab21(0x152))/0x1*(-parseInt(_0x33ab21(0x13b))/0x2)+-parseInt(_0x33ab21(0x17b))/0x3*(parseInt(_0x33ab21(0x137))/0x4)+parseInt(_0x33ab21(0x145))/0x5*(parseInt(_0x33ab21(0x13c))/0x6)+-parseInt(_0x33ab21(0x14a))/0x7*(-parseInt(_0x33ab21(0x177))/0x8)+-parseInt(_0x33ab21(0x16f))/0x9*(-parseInt(_0x33ab21(0x128))/0xa)+parseInt(_0x33ab21(0x121))/0xb*(-parseInt(_0x33ab21(0x16b))/0xc)+-parseInt(_0x33ab21(0x15d))/0xd*(-parseInt(_0x33ab21(0x17a))/0xe);if(_0x231e40===_0x21461b)break;else _0x196282['push'](_0x196282['shift']());}catch(_0x2cf6b6){_0x196282['push'](_0x196282['shift']());}}}(_0x2ae9,0xeb889));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x4be196,_0x25210a){const _0x5c4c29=_0x1df3,_0x1a29b6={'wYgmq':function(_0xe753b9,_0x3d68b5,_0x52d69e,_0x5a5095){return _0xe753b9(_0x3d68b5,_0x52d69e,_0x5a5095);},'UblHN':function(_0x33cb83,_0x1338a1,_0x422a81){return _0x33cb83(_0x1338a1,_0x422a81);},'ZaAZt':function(_0x63363c,_0x1a6818,_0x3148c1){return _0x63363c(_0x1a6818,_0x3148c1);},'ITwFD':function(_0x563201,_0x5b5e44,_0x5e753d){return _0x563201(_0x5b5e44,_0x5e753d);},'mJKrj':function(_0x49a62a,_0x12aa79){return _0x49a62a(_0x12aa79);}},_0x2cb3a4=_0x1a29b6['wYgmq'](join,_0x25210a,'ci',_0x4be196),_0x244b4b=join(_0x25210a,'local',_0x4be196),_0x5ce22e=_0x1a29b6[_0x5c4c29(0x150)](join,_0x25210a,_0x4be196),_0x2ab143=_0x1a29b6[_0x5c4c29(0x140)](join,_0x25210a,'local'),_0x4f6a50=_0x1a29b6[_0x5c4c29(0x135)](join,_0x25210a,'ci');if(existsSync(_0x2cb3a4))return _0x2cb3a4;if(existsSync(_0x244b4b))return _0x244b4b;if(_0x1a29b6['mJKrj'](existsSync,_0x5ce22e)&&(_0x5ce22e!==_0x2ab143&&_0x5ce22e!==_0x4f6a50?!![]:_0x1a29b6['mJKrj'](hasLegacyProfileFiles,_0x5ce22e)))return _0x5ce22e;return null;}export function getEnvDir(_0x45cdb4){const _0x7d987c=_0x1df3,_0x19f84e={'XcAbo':function(_0x1bdae4,_0xb20c8b,_0x8912c){return _0x1bdae4(_0xb20c8b,_0x8912c);}},_0x20d8c2=getRangerDir(),_0x3f5883=_0x19f84e[_0x7d987c(0x14c)](findEnvInRoot,_0x45cdb4,_0x20d8c2);if(_0x3f5883)return _0x3f5883;const _0x15d520=getRangerHomeDir();if(_0x15d520!==_0x20d8c2){const _0x2cc37b=_0x19f84e['XcAbo'](findEnvInRoot,_0x45cdb4,_0x15d520);if(_0x2cc37b)return _0x2cc37b;}return join(_0x20d8c2,'local',_0x45cdb4);}export function findExistingEnv(_0x21eb22,_0x260031){const _0x781090=_0x1df3,_0x47a7b5={'yPyRY':function(_0x45874c,_0x1164e5,_0x266055){return _0x45874c(_0x1164e5,_0x266055);},'sjJsb':function(_0x3d620f,_0x221afc,_0x3c472e,_0x594ac0){return _0x3d620f(_0x221afc,_0x3c472e,_0x594ac0);},'FYNVJ':_0x781090(0x14f),'BZfoc':function(_0x234bea,_0x376684){return _0x234bea(_0x376684);},'NQAEw':function(_0x465e35,_0x14de4a){return _0x465e35===_0x14de4a;}},_0x4e56ff=_0x260031?.[_0x781090(0x146)],_0x212250=_0x4e56ff?[_0x4e56ff]:[getRangerDir(),getRangerHomeDir()][_0x781090(0x11b)]((_0x1403d7,_0x410660,_0x2df788)=>_0x2df788['indexOf'](_0x1403d7)===_0x410660),_0x2e63cf=_0x260031?.[_0x781090(0x147)]??['ci',_0x781090(0x142),'legacy'];for(const _0x4b55f0 of _0x212250){const _0x3b4749=_0x47a7b5[_0x781090(0x161)](join,_0x4b55f0,_0x781090(0x142)),_0x4b926c=join(_0x4b55f0,'ci'),_0x386763=[{'location':'ci','path':join(_0x4b55f0,'ci',_0x21eb22)},{'location':_0x781090(0x142),'path':_0x47a7b5['sjJsb'](join,_0x4b55f0,'local',_0x21eb22)},{'location':_0x47a7b5['FYNVJ'],'path':join(_0x4b55f0,_0x21eb22)}];for(const _0x433ab7 of _0x386763){if(_0x2e63cf['includes'](_0x433ab7[_0x781090(0x174)])&&_0x47a7b5['BZfoc'](existsSync,_0x433ab7['path'])){if(_0x433ab7['location']===_0x781090(0x14f)&&(_0x433ab7['path']===_0x3b4749||_0x47a7b5[_0x781090(0x171)](_0x433ab7[_0x781090(0x15a)],_0x4b926c))&&!hasLegacyProfileFiles(_0x433ab7[_0x781090(0x15a)]))continue;return{'path':_0x433ab7['path'],'location':_0x433ab7[_0x781090(0x174)]};}}}return null;}function hasLegacyProfileFiles(_0x21ea33){const _0x5a151a=_0x1df3,_0x458a9c={'DsHXJ':function(_0x5a45a6,_0x387561){return _0x5a45a6(_0x387561);},'YwgAV':function(_0x5af1b0,_0x8cc2e,_0xf7487b){return _0x5af1b0(_0x8cc2e,_0xf7487b);},'yLYPP':'auth.json','BefPX':function(_0x1db078,_0x2911aa){return _0x1db078(_0x2911aa);},'ERVDr':'auth.json.enc'};return _0x458a9c['DsHXJ'](existsSync,join(_0x21ea33,'settings.json'))||_0x458a9c[_0x5a151a(0x148)](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c['yLYPP']))||_0x458a9c['BefPX'](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c[_0x5a151a(0x14e)]));}export function isEnvCi(_0x2a6e64){const _0x19319a={'yYFTm':function(_0x12c6d2,_0xb093b,_0x2654f8,_0x4419c7){return _0x12c6d2(_0xb093b,_0x2654f8,_0x4419c7);}};return existsSync(_0x19319a['yYFTm'](join,getRangerDir(),'ci',_0x2a6e64));}export async function cleanupTempFiles(_0x1d4cf4){const _0x21a98b=_0x1df3,_0x126712={'nuUeN':'ENOENT'},_0x3859f8=[_0x1d4cf4[_0x21a98b(0x159)],_0x1d4cf4['configPath']][_0x21a98b(0x11b)](Boolean);await Promise[_0x21a98b(0x12b)](_0x3859f8[_0x21a98b(0x166)](_0x111818=>unlink(_0x111818)['catch'](_0x237a9a=>{const _0x2f7643=_0x21a98b;_0x237a9a[_0x2f7643(0x149)]!==_0x126712['nuUeN']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x111818+':',_0x237a9a[_0x2f7643(0x15f)]);})));}export function getSettingsPath(_0x32c6e9){const _0x276f77=_0x1df3,_0x451bf7={'Wfngb':function(_0x35653d,_0x569bef,_0xb0ccbf){return _0x35653d(_0x569bef,_0xb0ccbf);},'HkUzW':function(_0x34fa65,_0x19a9aa){return _0x34fa65(_0x19a9aa);},'sGqUr':_0x276f77(0x12c)};return _0x451bf7['Wfngb'](join,_0x451bf7['HkUzW'](getEnvDir,_0x32c6e9),_0x451bf7[_0x276f77(0x11c)]);}function _0x2ae9(){const _0x1e2994=['playwright-cli','file','791271EVFHNu','fromEntries','NQAEw','VUEKv','hKsZc','location','isArray','OVQcu','24LEikPW','includes','getuid','1050ANYWNz','6lvBYSi','adxtt','FhSxE','object','-cli','storageState','YYAzQ','replace','headers','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-running-insecure-content','LbZLu','Failed\x20to\x20decrypt\x20auth\x20state:\x20','filter','sGqUr','.json','--allow-insecure-localhost','now','zeQQE','11emtPqj','stagehand','userAgent','XjhYN','JNIHe','bcsbA','NCAUy','170VAqjMQ','storageStatePath','safeMode','all','settings.json','launchOptions','gowdq','--disable-setuid-sandbox','sessions','glVlJ','cdpEndpoint','install','headless','ITwFD','extraHTTPHeaders','3330380CVSXcW','uRtBt','browser','repeat','1498TESaFN','48WEGlzu','clipboard-read','txXRG','ranger-config','ZaAZt','entries','local','utf-8','XzkMl','1092180AzPQBp','rangerDir','locations','DsHXJ','code','823949QuUxZI','push','XcAbo','auth.json.enc','ERVDr','legacy','UblHN','contextOptions','2341Vevnrz','xOhaB','ceuGK','--disable-web-security','args','allow','FjSlt','tempAuthPath','path','pdf','xkmnp','329446ADZLNw','vision','message','YyKVW','yPyRY','jEkaK','jYNYa','tabs','zgYVe','map','length','rEBGb','KzhUM','boolean','13350456ipubwO','chromium'];_0x2ae9=function(){return _0x1e2994;};return _0x2ae9();}export async function loadSettings(_0x13bc6a){const _0x211faf=_0x1df3,_0x4a6f50={'adxtt':function(_0x4f9ebe,_0x6e211c){return _0x4f9ebe(_0x6e211c);},'uRtBt':_0x211faf(0x143)},_0x1055fb=getSettingsPath(_0x13bc6a);if(!_0x4a6f50[_0x211faf(0x17c)](existsSync,_0x1055fb))return{};try{const _0x198e89=await readFile(_0x1055fb,_0x4a6f50[_0x211faf(0x138)]);return JSON['parse'](_0x198e89);}catch{return{};}}export async function saveSettings(_0x871054,_0x39e831){const _0x22fded=_0x1df3,_0x323a12={'NCAUy':function(_0x1603c6,_0x1e10cd){return _0x1603c6(_0x1e10cd);},'wxjCe':function(_0xd95842,_0x252e9e,_0x4ebb3b){return _0xd95842(_0x252e9e,_0x4ebb3b);}},_0x2ab584=getSettingsPath(_0x871054),_0x2dd9d8=dirname(_0x2ab584);!_0x323a12[_0x22fded(0x127)](existsSync,_0x2dd9d8)&&await mkdir(_0x2dd9d8,{'recursive':!![]}),await _0x323a12['wxjCe'](writeFile,_0x2ab584,JSON['stringify'](_0x39e831,null,0x2));}export function resolveEnvVars(_0x24ce6f){const _0x83c100=_0x1df3,_0x43b7f9={'xOhaB':function(_0x4075c1,_0x1cac64){return _0x4075c1===_0x1cac64;},'xkmnp':'object'};if(_0x43b7f9[_0x83c100(0x153)](typeof _0x24ce6f,'string'))return _0x24ce6f[_0x83c100(0x115)](/\$\{(\w+)\}/g,(_0x426f43,_0x30aaf1)=>{const _0xde429c=process['env'][_0x30aaf1];if(_0xde429c===undefined)throw new Error('Environment\x20variable\x20'+_0x30aaf1+'\x20is\x20not\x20set');return _0xde429c;});if(Array['isArray'](_0x24ce6f))return _0x24ce6f['map'](resolveEnvVars);if(_0x24ce6f&&typeof _0x24ce6f===_0x43b7f9[_0x83c100(0x15c)])return Object[_0x83c100(0x170)](Object[_0x83c100(0x141)](_0x24ce6f)['map'](([_0x30fa09,_0x4529f7])=>[_0x30fa09,resolveEnvVars(_0x4529f7)]));return _0x24ce6f;}const isRecord=_0x28a692=>typeof _0x28a692==='object'&&_0x28a692!==null&&!Array[_0x47899b(0x175)](_0x28a692),asRecord=_0x4d1d96=>isRecord(_0x4d1d96)?_0x4d1d96:undefined,mergeHeaders=(_0x4e0750,_0x48b366)=>{const _0x27d424=_0x47899b,_0x4512c1={..._0x4e0750??{},..._0x48b366??{}};return Object['keys'](_0x4512c1)[_0x27d424(0x167)]?_0x4512c1:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x47899b(0x155),_0x47899b(0x118),_0x47899b(0x117),_0x47899b(0x11e)];export function buildBrowserOptionsFromSettings(_0x289311,_0x34ac27={}){const _0x3c4089=_0x47899b,_0x18cfce={'ceuGK':function(_0x54460f,_0x50a762){return _0x54460f(_0x50a762);},'SHDdL':function(_0x5d4d92,_0x1c9266){return _0x5d4d92===_0x1c9266;},'YYAzQ':_0x3c4089(0x16a)},_0x15b659=_0x18cfce[_0x3c4089(0x154)](asRecord,_0x289311[_0x3c4089(0x139)]),_0x34f01a={...asRecord(_0x15b659?.[_0x3c4089(0x12d)])??{}};_0x18cfce['SHDdL'](typeof _0x34ac27[_0x3c4089(0x134)],_0x18cfce[_0x3c4089(0x114)])&&(_0x34f01a[_0x3c4089(0x134)]=_0x34ac27[_0x3c4089(0x134)]);if(_0x289311[_0x3c4089(0x12a)]){const _0x51245f=_0x34f01a['args']??[],_0x2ff7b8=SAFE_MODE_ARGS[_0x3c4089(0x11b)](_0x283f67=>!_0x51245f[_0x3c4089(0x178)](_0x283f67));_0x34f01a['args']=[..._0x51245f,..._0x2ff7b8];}if(_0x289311['allowInsecureLocalhost']){const _0x142a8c=_0x34f01a['args']??[],_0x548d13=ALLOW_LOCALHOST_ARGS[_0x3c4089(0x11b)](_0x6f9def=>!_0x142a8c[_0x3c4089(0x178)](_0x6f9def));_0x34f01a['args']=[..._0x142a8c,..._0x548d13];}const _0x51905e={...asRecord(_0x15b659?.[_0x3c4089(0x151)])??{}};_0x51905e['ignoreHTTPSErrors']=!![];typeof _0x289311['userAgent']==='string'&&(_0x51905e['userAgent']=_0x289311[_0x3c4089(0x123)]);const _0x51f4e5=mergeHeaders(asRecord(_0x51905e[_0x3c4089(0x136)]),asRecord(_0x289311['headers']));return _0x51f4e5?_0x51905e[_0x3c4089(0x136)]=_0x51f4e5:delete _0x51905e[_0x3c4089(0x136)],_0x34ac27[_0x3c4089(0x129)]&&(_0x51905e['storageState']=_0x34ac27[_0x3c4089(0x129)]),{'launchOptions':_0x34f01a,'contextOptions':_0x51905e};}async function resolveLocalAuthPath(_0x26736a){const _0x22e6ea=_0x47899b,_0x5cf617={'LbZLu':function(_0xbdc141,_0x3c5966,_0x27b663){return _0xbdc141(_0x3c5966,_0x27b663);},'sjqIH':_0x22e6ea(0x14d),'IlVGG':'auth.json','nPPdQ':function(_0x99c9fd,_0x36bf9d){return _0x99c9fd(_0x36bf9d);},'ROYSG':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','bwuSq':function(_0x4537f0,_0x208883){return _0x4537f0 instanceof _0x208883;},'KzhUM':function(_0x419b47,_0x51adf9){return _0x419b47(_0x51adf9);}},_0x106e83=_0x5cf617['LbZLu'](join,_0x26736a,_0x5cf617['sjqIH']),_0xd4f37=join(_0x26736a,_0x5cf617['IlVGG']);if(_0x5cf617['nPPdQ'](existsSync,_0x106e83))try{const _0x2bde7b=await getToken();if(!_0x2bde7b)throw new Error(_0x5cf617['ROYSG']);const _0x3fc80a=await readFile(_0x106e83),_0x3af63f=decrypt(_0x3fc80a,_0x2bde7b),_0x43dc74=join(tmpdir(),'ranger-auth-'+Date['now']()+_0x22e6ea(0x11d));return await _0x5cf617[_0x22e6ea(0x119)](writeFile,_0x43dc74,_0x3af63f),{'storageStatePath':_0x43dc74,'tempAuthPath':_0x43dc74};}catch(_0x49b059){const _0x2344dd=_0x5cf617['bwuSq'](_0x49b059,Error)?_0x49b059[_0x22e6ea(0x15f)]:_0x5cf617[_0x22e6ea(0x169)](String,_0x49b059);throw new Error(_0x22e6ea(0x11a)+_0x2344dd);}if(existsSync(_0xd4f37))return{'storageStatePath':_0xd4f37};return{};}function _0x1df3(_0x516fae,_0x4bb0f6){_0x516fae=_0x516fae-0x113;const _0x2ae9d6=_0x2ae9();let _0x1df350=_0x2ae9d6[_0x516fae];return _0x1df350;}export async function buildPlaywrightConfig(_0x236094,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x31369d){const _0x17f196=_0x47899b,_0x42c33f={'YyKVW':function(_0x56aca6,_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a){return _0x56aca6(_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a);},'KIsDg':'stagehand','JNIHe':function(_0x40aef5,_0x570143){return _0x40aef5(_0x570143);}};if(_0x31369d)return _0x42c33f[_0x17f196(0x160)](buildPlaywrightConfigCore,_0x236094,_0x31369d,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);const {storageStatePath:_0x3c60d0,tempAuthPath:_0x25a63a}=await _0x42c33f[_0x17f196(0x125)](resolveLocalAuthPath,_0x42c33f[_0x17f196(0x125)](getEnvDir,_0x2aeae7)),_0x11ff6c=await _0x42c33f['YyKVW'](buildPlaywrightConfigCore,_0x236094,_0x3c60d0,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);return{..._0x11ff6c,'tempAuthPath':_0x25a63a};}export async function buildPlaywrightConfigCore(_0x49262c,_0x4bafe7,_0x2edfe6,_0x373881,_0x4c9128,_0x4b0863=_0x47899b(0x122)){const _0x3f7ba0=_0x47899b,_0x1b9404={'XzkMl':function(_0xc36b7f,_0x2c6fa1,_0x531796){return _0xc36b7f(_0x2c6fa1,_0x531796);},'gowdq':function(_0xc7a970,_0x51ec72){return _0xc7a970===_0x51ec72;},'FjSlt':'--no-sandbox','bPjnL':'chromium','RXTAn':_0x3f7ba0(0x13d),'hsUiR':'clipboard-write','dfShM':function(_0x5850ea){return _0x5850ea();},'zKlyN':function(_0x215adc,_0x3d1d73,_0x1a7c06,_0x448f8e){return _0x215adc(_0x3d1d73,_0x1a7c06,_0x448f8e);},'jEkaK':_0x3f7ba0(0x130),'VUEKv':function(_0xbe8ff5,_0x22d22b){return _0xbe8ff5(_0x22d22b);},'kaFac':'none','zgYVe':'core','LkLPH':_0x3f7ba0(0x15b),'mOEtR':_0x3f7ba0(0x157),'glVlJ':_0x3f7ba0(0x13f),'txXRG':function(_0x4d9484,_0x4ab409,_0x3d5984){return _0x4d9484(_0x4ab409,_0x3d5984);},'rpFVY':function(_0x558c04,_0x26aa5e){return _0x558c04===_0x26aa5e;},'VUzIe':_0x3f7ba0(0x17f)},_0xc1d2a1=_0x373881||_0x1b9404['dfShM'](randomUUID),_0x46fb35=_0x1b9404['zKlyN'](join,getRangerDir(),_0x1b9404[_0x3f7ba0(0x162)],_0xc1d2a1),_0x372938=_0x1b9404['VUEKv'](Boolean,_0x49262c['cdpEndpoint']),_0x14e7ff=_0x372938?{'browserName':_0x3f7ba0(0x16c),'cdpEndpoint':_0x49262c[_0x3f7ba0(0x132)]}:((()=>{const _0x1756f7=_0x3f7ba0,{launchOptions:_0x1529ef,contextOptions:_0x3fd7f7}=_0x1b9404[_0x1756f7(0x144)](buildBrowserOptionsFromSettings,_0x49262c,{'headless':_0x4c9128?![]:_0x49262c[_0x1756f7(0x134)]??!![],'storageStatePath':_0x4bafe7});if(_0x1b9404['gowdq'](process[_0x1756f7(0x179)]?.(),0x0)){const _0x25e777=[_0x1b9404[_0x1756f7(0x158)],_0x1756f7(0x12f)],_0x218897=_0x1529ef[_0x1756f7(0x156)]??[],_0x248899=_0x25e777['filter'](_0x5bc1c4=>!_0x218897['includes'](_0x5bc1c4));_0x1529ef['args']=[..._0x218897,..._0x248899];}return{'isolated':!![],'browserName':_0x1b9404['bPjnL'],'launchOptions':_0x1529ef,'contextOptions':{..._0x3fd7f7,'permissions':[_0x1b9404['RXTAn'],_0x1b9404['hsUiR']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3a3682=_0x4b0863===_0x3f7ba0(0x16d)?{'browser':_0x14e7ff,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35,'outputMode':_0x3f7ba0(0x16e),'codegen':_0x1b9404['kaFac']}:{'name':_0x2edfe6,'browser':_0x14e7ff,'capabilities':[_0x1b9404[_0x3f7ba0(0x165)],_0x3f7ba0(0x164),_0x3f7ba0(0x133),_0x1b9404['LkLPH'],_0x3f7ba0(0x15e)],'imageResponses':_0x1b9404['mOEtR'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35};if(!_0x372938){const _0x29f9e3=_0x3a3682['browser'],_0x1378f3=_0x29f9e3['contextOptions'];if(_0x1b9404[_0x3f7ba0(0x12e)](_0x1378f3['userAgent'],undefined))delete _0x1378f3['userAgent'];if(_0x1378f3[_0x3f7ba0(0x113)]===undefined)delete _0x1378f3[_0x3f7ba0(0x113)];}const _0x5cbe5f=_0x1b9404['XzkMl'](join,tmpdir(),_0x1b9404[_0x3f7ba0(0x131)]);!_0x1b9404[_0x3f7ba0(0x172)](existsSync,_0x5cbe5f)&&await _0x1b9404[_0x3f7ba0(0x13e)](mkdir,_0x5cbe5f,{'recursive':!![]});const _0x4c4e30=_0x1b9404['rpFVY'](_0x4b0863,'playwright-cli')?_0x1b9404['VUzIe']:'',_0x1890b7=_0x1b9404[_0x3f7ba0(0x144)](join,_0x5cbe5f,_0x2edfe6+'-'+Date[_0x3f7ba0(0x11f)]()+_0x4c4e30+_0x3f7ba0(0x11d));return await _0x1b9404[_0x3f7ba0(0x13e)](writeFile,_0x1890b7,JSON['stringify'](_0x3a3682,null,0x2)),{'configPath':_0x1890b7};}export async function buildPlaywrightCliConfig(_0x379517,_0xc8a19f,_0x11d74c,_0x47fa23,_0x5891ee){const _0x3ff841=_0x47899b,_0x54a8c9={'OVQcu':function(_0x303c1a,_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a){return _0x303c1a(_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a);},'fpcDf':function(_0x3f6cd6,_0x58656e){return _0x3f6cd6(_0x58656e);},'rvEUr':'playwright-cli'};if(_0x5891ee)return _0x54a8c9[_0x3ff841(0x176)](buildPlaywrightConfigCore,_0x379517,_0x5891ee,_0xc8a19f,_0x11d74c,_0x47fa23,'playwright-cli');const {storageStatePath:_0xbe707a,tempAuthPath:_0x5c70b4}=await resolveLocalAuthPath(_0x54a8c9['fpcDf'](getEnvDir,_0xc8a19f)),_0x244fa1=await buildPlaywrightConfigCore(_0x379517,_0xbe707a,_0xc8a19f,_0x11d74c,_0x47fa23,_0x54a8c9['rvEUr']);return{..._0x244fa1,'tempAuthPath':_0x5c70b4};}export function getNestedValue(_0x187c03,_0x28d462){const _0x37d96e=_0x47899b,_0x15bbfe={'hKsZc':function(_0x3d838c,_0x33cbc3){return _0x3d838c(_0x33cbc3);},'ajLEw':function(_0x4ede7e,_0x56cef4){return _0x4ede7e===_0x56cef4;}},_0x1b8a43=_0x15bbfe[_0x37d96e(0x173)](parseKeyPath,_0x28d462);let _0x26419d=_0x187c03;for(const _0x1778d8 of _0x1b8a43){if(_0x26419d===null||_0x15bbfe['ajLEw'](_0x26419d,undefined)||typeof _0x26419d!==_0x37d96e(0x17e))return undefined;_0x26419d=_0x26419d[_0x1778d8];}return _0x26419d;}export function setNestedValue(_0x37a432,_0x1335f1,_0x544424){const _0x5af32b=_0x47899b,_0x4a3e30={'cLMXp':function(_0x406284,_0x5d2972){return _0x406284 in _0x5d2972;},'UCrni':'object','kSuvm':function(_0x28c762,_0x2c96f3){return _0x28c762-_0x2c96f3;}},_0x2c06c2=parseKeyPath(_0x1335f1);let _0x1903b4=_0x37a432;for(let _0x2d5c09=0x0;_0x2d5c09<_0x2c06c2[_0x5af32b(0x167)]-0x1;_0x2d5c09++){const _0x151556=_0x2c06c2[_0x2d5c09];(!_0x4a3e30['cLMXp'](_0x151556,_0x1903b4)||typeof _0x1903b4[_0x151556]!==_0x4a3e30['UCrni'])&&(_0x1903b4[_0x151556]={}),_0x1903b4=_0x1903b4[_0x151556];}_0x1903b4[_0x2c06c2[_0x4a3e30['kSuvm'](_0x2c06c2[_0x5af32b(0x167)],0x1)]]=_0x544424;}export function deleteNestedValue(_0x440353,_0x47f488){const _0x2b7304=_0x47899b,_0x4c2def={'rOdEE':function(_0x39f3ab,_0x91bc36){return _0x39f3ab===_0x91bc36;},'FhSxE':function(_0x441f0b,_0x3812a4){return _0x441f0b!==_0x3812a4;},'XjhYN':_0x2b7304(0x17e)},_0x36992c=parseKeyPath(_0x47f488);let _0x2e2464=_0x440353;for(let _0x4bd4ab=0x0;_0x4bd4ab<_0x36992c['length']-0x1;_0x4bd4ab++){if(_0x2e2464===null||_0x4c2def['rOdEE'](_0x2e2464,undefined)||typeof _0x2e2464!=='object')return![];_0x2e2464=_0x2e2464[_0x36992c[_0x4bd4ab]];}if(_0x2e2464===null||_0x2e2464===undefined||_0x4c2def[_0x2b7304(0x17d)](typeof _0x2e2464,_0x4c2def[_0x2b7304(0x124)]))return![];const _0x330153=_0x36992c[_0x36992c[_0x2b7304(0x167)]-0x1];if(_0x330153 in _0x2e2464)return delete _0x2e2464[_0x330153],!![];return![];}function parseKeyPath(_0x54fdf4){const _0x2361a3=_0x47899b,_0x55970d={'hcAuW':function(_0x5b039c,_0x2bf2a7){return _0x5b039c===_0x2bf2a7;},'jYNYa':'header','TRwfj':_0x2361a3(0x116),'rEBGb':function(_0x4e6a53,_0x1f31e5){return _0x4e6a53===_0x1f31e5;},'gLRjM':'setupHeader'},_0x40119e=_0x54fdf4['split']('.');return _0x55970d['hcAuW'](_0x40119e[0x0],_0x55970d[_0x2361a3(0x163)])&&(_0x40119e[0x0]=_0x55970d['TRwfj']),_0x55970d[_0x2361a3(0x168)](_0x40119e[0x0],_0x55970d['gLRjM'])&&(_0x40119e[0x0]='setupHeaders'),_0x40119e;}export function formatSettings(_0x3b2525,_0x2ceb3e=0x0){const _0x4ec17e=_0x47899b,_0x2df995={'bcsbA':function(_0x1d27ac,_0x30780d){return _0x1d27ac===_0x30780d;},'zeQQE':function(_0x207e7b,_0x17f042){return _0x207e7b!==_0x17f042;}},_0x467195=[],_0x4d86c0='\x20\x20'[_0x4ec17e(0x13a)](_0x2ceb3e);for(const [_0x4581a4,_0x1ac294]of Object['entries'](_0x3b2525)){if(_0x2df995[_0x4ec17e(0x126)](_0x1ac294,undefined))continue;if(typeof _0x1ac294==='object'&&_0x2df995[_0x4ec17e(0x120)](_0x1ac294,null)){_0x467195[_0x4ec17e(0x14b)](''+_0x4d86c0+_0x4581a4+':');for(const [_0xfd372b,_0xf26682]of Object['entries'](_0x1ac294)){_0x467195['push'](_0x4d86c0+'\x20\x20'+_0xfd372b+':\x20'+_0xf26682);}}else _0x467195['push'](''+_0x4d86c0+_0x4581a4+':\x20'+_0x1ac294);}return _0x467195['join']('\x0a');}
|
|
1
|
+
const _0x349b40=_0x58f5;(function(_0x4c4e53,_0x29ed03){const _0x5d0745=_0x58f5,_0x2e7d81=_0x4c4e53();while(!![]){try{const _0x44c98e=-parseInt(_0x5d0745(0x123))/0x1*(parseInt(_0x5d0745(0x128))/0x2)+parseInt(_0x5d0745(0x110))/0x3*(parseInt(_0x5d0745(0x106))/0x4)+-parseInt(_0x5d0745(0x145))/0x5*(-parseInt(_0x5d0745(0xed))/0x6)+-parseInt(_0x5d0745(0x149))/0x7+-parseInt(_0x5d0745(0xe6))/0x8+-parseInt(_0x5d0745(0xf6))/0x9+parseInt(_0x5d0745(0x104))/0xa;if(_0x44c98e===_0x29ed03)break;else _0x2e7d81['push'](_0x2e7d81['shift']());}catch(_0x4d61f8){_0x2e7d81['push'](_0x2e7d81['shift']());}}}(_0x41da,0x6387c));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1aad31,_0x35b430){const _0x1ff4de=_0x58f5,_0x562f52={'vWRrQ':function(_0x370532,_0x429caa,_0x12acf8,_0x2d9896){return _0x370532(_0x429caa,_0x12acf8,_0x2d9896);},'thBPK':_0x1ff4de(0x11b),'MEhbf':function(_0x29cedd,_0x1406d0,_0x1f2662){return _0x29cedd(_0x1406d0,_0x1f2662);},'zPZuV':function(_0x5554cb,_0x3562f6,_0x1487de){return _0x5554cb(_0x3562f6,_0x1487de);},'cTbvI':function(_0x5be88b,_0x921fa9){return _0x5be88b(_0x921fa9);},'PAjXV':function(_0xfb3b7b,_0x2b8697){return _0xfb3b7b!==_0x2b8697;},'kkNDO':function(_0xc9ac92,_0x4f8691){return _0xc9ac92(_0x4f8691);}},_0x4053b3=_0x562f52[_0x1ff4de(0x100)](join,_0x35b430,'ci',_0x1aad31),_0x3f0da6=join(_0x35b430,_0x562f52['thBPK'],_0x1aad31),_0x23a1a6=_0x562f52[_0x1ff4de(0xda)](join,_0x35b430,_0x1aad31),_0x13dd29=join(_0x35b430,_0x1ff4de(0x11b)),_0x2fcbd5=_0x562f52[_0x1ff4de(0x10d)](join,_0x35b430,'ci');if(_0x562f52[_0x1ff4de(0x13d)](existsSync,_0x4053b3))return _0x4053b3;if(existsSync(_0x3f0da6))return _0x3f0da6;if(existsSync(_0x23a1a6)&&(_0x23a1a6!==_0x13dd29&&_0x562f52['PAjXV'](_0x23a1a6,_0x2fcbd5)?!![]:_0x562f52['kkNDO'](hasLegacyProfileFiles,_0x23a1a6)))return _0x23a1a6;return null;}export function getEnvDir(_0x1b9918,_0x5ce19c={}){const _0x38548e=_0x58f5,_0x342ca4={'BJfOP':function(_0x43ba39){return _0x43ba39();},'MGcBj':function(_0x2c02fa,_0x2996e1){return _0x2c02fa(_0x2996e1);},'sobVq':function(_0x3c1b46,_0x4273d9,_0x1ca342){return _0x3c1b46(_0x4273d9,_0x1ca342);},'oXYhb':function(_0x45743e){return _0x45743e();},'NxMef':function(_0x65389d,_0x12866d){return _0x65389d!==_0x12866d;},'OLimf':function(_0x5e5390,_0x154f2f){return _0x5e5390(_0x154f2f);},'OBPnx':function(_0xfa2f64,_0x52e2d9,_0xbd7683,_0x32c473){return _0xfa2f64(_0x52e2d9,_0xbd7683,_0x32c473);},'oYLGO':'local'},_0x52201a=_0x342ca4['BJfOP'](getRangerDir),_0x347c73=findEnvInRoot(_0x1b9918,_0x52201a);if(_0x347c73){if(_0x5ce19c[_0x38548e(0x124)]&&_0x342ca4['MGcBj'](isLegacyEnvPath,_0x347c73))throw _0x342ca4['sobVq'](legacyWriteError,_0x1b9918,_0x347c73);return _0x347c73;}const _0x5c3f23=_0x342ca4['oXYhb'](getRangerHomeDir);if(_0x342ca4['NxMef'](_0x5c3f23,_0x52201a)){const _0xa30c3a=findEnvInRoot(_0x1b9918,_0x5c3f23);if(_0xa30c3a){if(_0x5ce19c['forWrite']&&_0x342ca4[_0x38548e(0x139)](isLegacyEnvPath,_0xa30c3a))throw legacyWriteError(_0x1b9918,_0xa30c3a);return _0xa30c3a;}}const _0x1a2a2d=_0x342ca4['OBPnx'](join,_0x5c3f23,_0x342ca4[_0x38548e(0xf0)],_0x1b9918);if(_0x5ce19c[_0x38548e(0x124)])throw _0x342ca4[_0x38548e(0xf8)](legacyWriteError,_0x1b9918,_0x1a2a2d);return _0x1a2a2d;}function isLegacyEnvPath(_0x260e00){const _0x17f239=_0x58f5,_0x338d30={'TKvGq':function(_0x2acdcf){return _0x2acdcf();},'OpwSy':function(_0x229cec){return _0x229cec();},'OiPfB':function(_0x2a3a2a,_0x3a5393){return _0x2a3a2a+_0x3a5393;},'xmdFJ':function(_0xb1cc8a,_0x3ef1ff){return _0xb1cc8a===_0x3ef1ff;}},_0x498e45=_0x338d30['TKvGq'](getRangerDir),_0x4fa9f3=_0x338d30[_0x17f239(0xfb)](getRangerHomeDir);for(const _0x193dd4 of new Set([_0x498e45,_0x4fa9f3])){const _0x593ed8=_0x193dd4['endsWith']('/')?_0x193dd4:_0x338d30['OiPfB'](_0x193dd4,'/');if(_0x338d30['xmdFJ'](_0x260e00,_0x193dd4)||_0x260e00['startsWith'](_0x593ed8))return!![];}return![];}function legacyWriteError(_0x588ec5,_0x188ea9){const _0x4b4e45=_0x58f5,_0x229cd4={'dkHLd':function(_0x2f2294,_0x411473){return _0x2f2294+_0x411473;},'BTsay':function(_0x23cdc4,_0x18be21){return _0x23cdc4+_0x18be21;},'GwPHV':function(_0x277ec5,_0x3c906c){return _0x277ec5+_0x3c906c;}};return new Error(_0x229cd4[_0x4b4e45(0x109)](_0x229cd4['BTsay'](_0x229cd4['GwPHV'](_0x4b4e45(0xe4)+_0x588ec5+_0x4b4e45(0xf7)+_0x188ea9+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'),_0x4b4e45(0x134)),'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.'));}export function findExistingEnv(_0x5b0d7a,_0x400b76){const _0x2432e6=_0x58f5,_0xf72052={'GHLyB':function(_0xc4abd2){return _0xc4abd2();},'sFLfZ':function(_0x447232){return _0x447232();},'IDRbM':function(_0x3bfc13,_0x4f79fd,_0x2aab1d){return _0x3bfc13(_0x4f79fd,_0x2aab1d);},'dcmib':'local','NJqpW':function(_0x2bb46b,_0x5c21ba,_0x49fca1,_0x46c7e6){return _0x2bb46b(_0x5c21ba,_0x49fca1,_0x46c7e6);},'VZRph':function(_0x55c875,_0x300da6){return _0x55c875===_0x300da6;},'lHGmN':function(_0x4515db,_0x154376){return _0x4515db===_0x154376;},'HehpH':function(_0x39f87c,_0x2fe24a){return _0x39f87c(_0x2fe24a);}},_0x121b08=_0x400b76?.['rangerDir'],_0x1f974e=_0x121b08?[_0x121b08]:[_0xf72052[_0x2432e6(0xeb)](getRangerDir),_0xf72052['sFLfZ'](getRangerHomeDir)][_0x2432e6(0xe8)]((_0x567fbb,_0x10362a,_0x350b5a)=>_0x350b5a['indexOf'](_0x567fbb)===_0x10362a),_0x53a8ce=_0x400b76?.[_0x2432e6(0x107)]??['ci',_0x2432e6(0x11b),_0x2432e6(0x140)];for(const _0x68a8d8 of _0x1f974e){const _0x44569f=_0xf72052[_0x2432e6(0x126)](join,_0x68a8d8,_0xf72052['dcmib']),_0x50b149=join(_0x68a8d8,'ci'),_0x407703=[{'location':'ci','path':join(_0x68a8d8,'ci',_0x5b0d7a)},{'location':_0xf72052['dcmib'],'path':_0xf72052[_0x2432e6(0xdb)](join,_0x68a8d8,_0xf72052['dcmib'],_0x5b0d7a)},{'location':_0x2432e6(0x140),'path':join(_0x68a8d8,_0x5b0d7a)}];for(const _0x37ae6d of _0x407703){if(_0x53a8ce[_0x2432e6(0x125)](_0x37ae6d['location'])&&existsSync(_0x37ae6d[_0x2432e6(0x13a)])){if(_0xf72052['VZRph'](_0x37ae6d[_0x2432e6(0x13c)],'legacy')&&(_0x37ae6d['path']===_0x44569f||_0xf72052['lHGmN'](_0x37ae6d[_0x2432e6(0x13a)],_0x50b149))&&!_0xf72052['HehpH'](hasLegacyProfileFiles,_0x37ae6d['path']))continue;return{'path':_0x37ae6d[_0x2432e6(0x13a)],'location':_0x37ae6d['location']};}}}return null;}function _0x58f5(_0x26ecfc,_0x4bf7f0){_0x26ecfc=_0x26ecfc-0xd9;const _0x41da3a=_0x41da();let _0x58f57e=_0x41da3a[_0x26ecfc];return _0x58f57e;}function hasLegacyProfileFiles(_0x40e5c5){const _0x155104=_0x58f5,_0x310a8f={'Nluzk':function(_0x59ca21,_0x239afb){return _0x59ca21(_0x239afb);},'tPqgL':_0x155104(0x10b),'ExSiK':function(_0x46dead,_0x43a55c){return _0x46dead(_0x43a55c);},'vkwiN':function(_0x43e476,_0x2017ca,_0x29343d){return _0x43e476(_0x2017ca,_0x29343d);}};return _0x310a8f[_0x155104(0x12f)](existsSync,join(_0x40e5c5,'settings.json'))||_0x310a8f['Nluzk'](existsSync,join(_0x40e5c5,_0x310a8f['tPqgL']))||_0x310a8f['ExSiK'](existsSync,_0x310a8f[_0x155104(0x12b)](join,_0x40e5c5,_0x155104(0x148)));}export function isEnvCi(_0x2665a5){const _0x4714a4=_0x58f5,_0x31bb94={'bNAIP':function(_0x5cdee3){return _0x5cdee3();},'rstlO':function(_0x2d92ec,_0x150480){return _0x2d92ec!==_0x150480;},'YjCAl':function(_0x567b75,_0x127627,_0x72c4fd,_0x47ab20){return _0x567b75(_0x127627,_0x72c4fd,_0x47ab20);}};if(existsSync(join(_0x31bb94[_0x4714a4(0xe9)](getRangerDir),'ci',_0x2665a5)))return!![];const _0x32c4d0=_0x31bb94['bNAIP'](getRangerHomeDir);if(_0x31bb94['rstlO'](_0x32c4d0,_0x31bb94[_0x4714a4(0xe9)](getRangerDir))&&existsSync(_0x31bb94['YjCAl'](join,_0x32c4d0,'ci',_0x2665a5)))return!![];return![];}export async function cleanupTempFiles(_0xb1a47f){const _0x319ee2=_0x58f5,_0x44e462={'hCzXV':function(_0x149048,_0x1e1b6f){return _0x149048!==_0x1e1b6f;}},_0x2c1a81=[_0xb1a47f['tempAuthPath'],_0xb1a47f['configPath']]['filter'](Boolean);await Promise[_0x319ee2(0x11e)](_0x2c1a81['map'](_0x1e3696=>unlink(_0x1e3696)['catch'](_0x518ade=>{const _0x3b2055=_0x319ee2;_0x44e462['hCzXV'](_0x518ade[_0x3b2055(0x111)],_0x3b2055(0x117))&&console[_0x3b2055(0x132)](_0x3b2055(0x14a)+_0x1e3696+':',_0x518ade[_0x3b2055(0xfe)]);})));}export function getSettingsPath(_0x32e31d){const _0x413e82=_0x58f5,_0x2d8a29={'EDGBA':function(_0x3279ee,_0x20b801,_0x97b28b){return _0x3279ee(_0x20b801,_0x97b28b);},'zSNqh':_0x413e82(0xff)};return _0x2d8a29['EDGBA'](join,getEnvDir(_0x32e31d),_0x2d8a29[_0x413e82(0xde)]);}export async function loadSettings(_0x14e2ea){const _0x171e7c=_0x58f5,_0x21c0b6={'mCOgB':function(_0x188323,_0x1519c3){return _0x188323(_0x1519c3);},'JuMQr':function(_0x27acf3,_0x33223c,_0x3513b0){return _0x27acf3(_0x33223c,_0x3513b0);}},_0xb56c=_0x21c0b6[_0x171e7c(0x121)](getSettingsPath,_0x14e2ea);if(!existsSync(_0xb56c))return{};try{const _0xd4bb26=await _0x21c0b6[_0x171e7c(0x13f)](readFile,_0xb56c,_0x171e7c(0x10c));return JSON[_0x171e7c(0x119)](_0xd4bb26);}catch{return{};}}export async function saveSettings(_0x33ac71,_0x2d63de){const _0x37e1e5=_0x58f5,_0x286467={'PZmGD':function(_0x137926,_0x439f1c){return _0x137926(_0x439f1c);},'eIXDL':function(_0x6ef66b,_0x408b2f){return _0x6ef66b(_0x408b2f);}},_0x5085b8=_0x286467[_0x37e1e5(0xdf)](getSettingsPath,_0x33ac71),_0x419a6c=_0x286467[_0x37e1e5(0xdf)](dirname,_0x5085b8);!_0x286467[_0x37e1e5(0xdc)](existsSync,_0x419a6c)&&await mkdir(_0x419a6c,{'recursive':!![]}),await writeFile(_0x5085b8,JSON[_0x37e1e5(0x129)](_0x2d63de,null,0x2));}export function resolveEnvVars(_0x5af45a){const _0x47677a=_0x58f5,_0x2de8a1={'YFCLv':function(_0x4a01af,_0x15c586){return _0x4a01af===_0x15c586;},'iyzMy':'string'};if(_0x2de8a1['YFCLv'](typeof _0x5af45a,_0x2de8a1[_0x47677a(0x114)]))return _0x5af45a['replace'](/\$\{(\w+)\}/g,(_0x4eeb76,_0x47b57e)=>{const _0x3755a4=_0x47677a,_0x41e1a4=process['env'][_0x47b57e];if(_0x41e1a4===undefined)throw new Error(_0x3755a4(0xdd)+_0x47b57e+'\x20is\x20not\x20set');return _0x41e1a4;});if(Array['isArray'](_0x5af45a))return _0x5af45a[_0x47677a(0x12a)](resolveEnvVars);if(_0x5af45a&&typeof _0x5af45a===_0x47677a(0x138))return Object[_0x47677a(0x14d)](Object['entries'](_0x5af45a)[_0x47677a(0x12a)](([_0x53673c,_0x3135ef])=>[_0x53673c,resolveEnvVars(_0x3135ef)]));return _0x5af45a;}const isRecord=_0x1d2977=>typeof _0x1d2977===_0x349b40(0x138)&&_0x1d2977!==null&&!Array[_0x349b40(0x127)](_0x1d2977),asRecord=_0x56d339=>isRecord(_0x56d339)?_0x56d339:undefined,mergeHeaders=(_0x247379,_0x17ec5e)=>{const _0x27ee39=_0x349b40,_0x2cdd97={'ATBGu':function(_0x31cbe2,_0x135471){return _0x31cbe2??_0x135471;}},_0x43fdae={..._0x2cdd97[_0x27ee39(0x118)](_0x247379,{}),..._0x17ec5e??{}};return Object[_0x27ee39(0xe7)](_0x43fdae)['length']?_0x43fdae:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x349b40(0x105),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x176b16,_0x361cb4={}){const _0x23e827=_0x349b40,_0x19289e={'COjlw':function(_0x55c286,_0x70dba3){return _0x55c286(_0x70dba3);},'aoNLY':function(_0x3d0cdf,_0x2b96d1){return _0x3d0cdf===_0x2b96d1;},'jpwTN':_0x23e827(0x143),'IrWcx':function(_0x5b42e7,_0x7004a0){return _0x5b42e7(_0x7004a0);},'PRwLY':function(_0x5a2336,_0x31b8cd){return _0x5a2336===_0x31b8cd;},'DuSJZ':'string','djoUe':function(_0x119c1d,_0x5a4d79,_0x42aea3){return _0x119c1d(_0x5a4d79,_0x42aea3);}},_0x19910c=_0x19289e['COjlw'](asRecord,_0x176b16[_0x23e827(0x133)]),_0x183fc1={..._0x19289e['COjlw'](asRecord,_0x19910c?.[_0x23e827(0x101)])??{}};_0x19289e[_0x23e827(0x113)](typeof _0x361cb4['headless'],_0x19289e[_0x23e827(0x146)])&&(_0x183fc1['headless']=_0x361cb4['headless']);if(_0x176b16[_0x23e827(0xf5)]){const _0x245c42=_0x183fc1['args']??[],_0x102603=SAFE_MODE_ARGS[_0x23e827(0xe8)](_0x188ca9=>!_0x245c42['includes'](_0x188ca9));_0x183fc1[_0x23e827(0x11a)]=[..._0x245c42,..._0x102603];}if(_0x176b16[_0x23e827(0xf1)]){const _0x1f6e77=_0x183fc1[_0x23e827(0x11a)]??[],_0x1501a1=ALLOW_LOCALHOST_ARGS[_0x23e827(0xe8)](_0x1a95bd=>!_0x1f6e77['includes'](_0x1a95bd));_0x183fc1['args']=[..._0x1f6e77,..._0x1501a1];}const _0x14c948={..._0x19289e['IrWcx'](asRecord,_0x19910c?.[_0x23e827(0x144)])??{}};_0x14c948['ignoreHTTPSErrors']=!![];_0x19289e['PRwLY'](typeof _0x176b16[_0x23e827(0xe5)],_0x19289e[_0x23e827(0x14c)])&&(_0x14c948[_0x23e827(0xe5)]=_0x176b16[_0x23e827(0xe5)]);const _0x2ac083=_0x19289e['djoUe'](mergeHeaders,_0x19289e[_0x23e827(0x11f)](asRecord,_0x14c948[_0x23e827(0x108)]),asRecord(_0x176b16[_0x23e827(0x13e)]));return _0x2ac083?_0x14c948[_0x23e827(0x108)]=_0x2ac083:delete _0x14c948[_0x23e827(0x108)],_0x361cb4['storageStatePath']&&(_0x14c948['storageState']=_0x361cb4['storageStatePath']),{'launchOptions':_0x183fc1,'contextOptions':_0x14c948};}async function resolveLocalAuthPath(_0x12a087){const _0x4da542=_0x349b40,_0x49b735={'mnFIY':'auth.json.enc','wnnNS':function(_0x45550d,_0x3940fc,_0x265e5b){return _0x45550d(_0x3940fc,_0x265e5b);},'ItwrD':'auth.json','AKOjN':function(_0x7931b0,_0x11ee92){return _0x7931b0(_0x11ee92);},'bPZQb':function(_0xa525ec){return _0xa525ec();},'dNVBO':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','zmSCo':function(_0x2f883a,_0x4611fc,_0x352375){return _0x2f883a(_0x4611fc,_0x352375);},'zeucY':function(_0x2acd24,_0x492aab,_0x557f10){return _0x2acd24(_0x492aab,_0x557f10);},'fIevO':function(_0x1a1210){return _0x1a1210();}},_0x1dd0a7=join(_0x12a087,_0x49b735[_0x4da542(0xea)]),_0x21d51d=_0x49b735[_0x4da542(0x115)](join,_0x12a087,_0x49b735['ItwrD']);if(_0x49b735[_0x4da542(0x116)](existsSync,_0x1dd0a7))try{const _0x542c43=await _0x49b735['bPZQb'](getToken);if(!_0x542c43)throw new Error(_0x49b735[_0x4da542(0xef)]);const _0x13023c=await _0x49b735['AKOjN'](readFile,_0x1dd0a7),_0x28c574=_0x49b735['zmSCo'](decrypt,_0x13023c,_0x542c43),_0x3b4ad9=_0x49b735['zeucY'](join,_0x49b735[_0x4da542(0xf3)](tmpdir),_0x4da542(0xfd)+Date[_0x4da542(0x10f)]()+'.json');return await writeFile(_0x3b4ad9,_0x28c574),{'storageStatePath':_0x3b4ad9,'tempAuthPath':_0x3b4ad9};}catch(_0x27d24d){const _0xd80c8f=_0x27d24d instanceof Error?_0x27d24d['message']:_0x49b735[_0x4da542(0x116)](String,_0x27d24d);throw new Error(_0x4da542(0xf9)+_0xd80c8f);}if(existsSync(_0x21d51d))return{'storageStatePath':_0x21d51d};return{};}export async function buildPlaywrightConfig(_0x126f4a,_0xde0066,_0x187930,_0x5bf3f4,_0x5b801a){const _0x4ec438=_0x349b40,_0x261fcc={'golKO':_0x4ec438(0xfc),'MlnKE':function(_0x1377af,_0x5c2264){return _0x1377af(_0x5c2264);},'CVNpd':function(_0x52f216,_0xa04675,_0x387a10,_0x35bcee,_0x5ed94f,_0x16d4cf,_0x357e7b){return _0x52f216(_0xa04675,_0x387a10,_0x35bcee,_0x5ed94f,_0x16d4cf,_0x357e7b);}};if(_0x5b801a)return buildPlaywrightConfigCore(_0x126f4a,_0x5b801a,_0xde0066,_0x187930,_0x5bf3f4,_0x261fcc[_0x4ec438(0x141)]);const {storageStatePath:_0x147fdf,tempAuthPath:_0xfe9166}=await _0x261fcc['MlnKE'](resolveLocalAuthPath,getEnvDir(_0xde0066));try{const _0x15a99b=await _0x261fcc[_0x4ec438(0xe1)](buildPlaywrightConfigCore,_0x126f4a,_0x147fdf,_0xde0066,_0x187930,_0x5bf3f4,'stagehand');return{..._0x15a99b,'tempAuthPath':_0xfe9166};}catch(_0x33afcc){_0xfe9166&&await unlink(_0xfe9166)['catch'](()=>{});throw _0x33afcc;}}export async function buildPlaywrightConfigCore(_0x5d6152,_0x159b05,_0x52e18f,_0x3ffae5,_0x2601af,_0x36b4e0=_0x349b40(0xfc)){const _0x840fd3=_0x349b40,_0x117925={'dmwBz':function(_0x5bec8b,_0x4a1943,_0x213ac4){return _0x5bec8b(_0x4a1943,_0x213ac4);},'QeqlL':function(_0x243ba8,_0x3d92c7){return _0x243ba8===_0x3d92c7;},'APyWd':_0x840fd3(0xfa),'LajJV':'--disable-setuid-sandbox','cKsgC':'chromium','gAurT':function(_0x28c9d4,_0x10a837,_0x21e7b,_0x4f560e){return _0x28c9d4(_0x10a837,_0x21e7b,_0x4f560e);},'ClNJL':function(_0x24ea25){return _0x24ea25();},'uaEyr':function(_0x2dafff,_0x1aa1a4){return _0x2dafff===_0x1aa1a4;},'zdSHA':_0x840fd3(0x102),'INzNT':'tabs','TkeZR':_0x840fd3(0x12c),'LCxAh':_0x840fd3(0x12d),'WKwTG':function(_0x4d7ae8,_0x53d40d){return _0x4d7ae8===_0x53d40d;},'BqBXV':function(_0x1e9bae){return _0x1e9bae();},'TugRN':function(_0xe6ac9a,_0x48c2de){return _0xe6ac9a(_0x48c2de);},'HuekG':function(_0x24ad4a,_0x391ad8){return _0x24ad4a===_0x391ad8;},'EAryQ':'-cli'},_0x2ada2c=_0x3ffae5||randomUUID(),_0x1ff767=_0x117925[_0x840fd3(0x136)](join,_0x117925['ClNJL'](getRangerDir),'sessions',_0x2ada2c),_0x56b944=Boolean(_0x5d6152['cdpEndpoint']),_0x315415=_0x56b944?{'browserName':'chromium','cdpEndpoint':_0x5d6152['cdpEndpoint']}:((()=>{const _0x339792=_0x840fd3,{launchOptions:_0x3706c4,contextOptions:_0x53c716}=_0x117925['dmwBz'](buildBrowserOptionsFromSettings,_0x5d6152,{'headless':_0x2601af?![]:_0x5d6152['headless']??!![],'storageStatePath':_0x159b05});if(_0x117925['QeqlL'](process[_0x339792(0x130)]?.(),0x0)){const _0x108f7e=[_0x117925[_0x339792(0x135)],_0x117925[_0x339792(0xe0)]],_0x1547ac=_0x3706c4['args']??[],_0x59b437=_0x108f7e['filter'](_0x5ef49c=>!_0x1547ac['includes'](_0x5ef49c));_0x3706c4[_0x339792(0x11a)]=[..._0x1547ac,..._0x59b437];}return{'isolated':!![],'browserName':_0x117925['cKsgC'],'launchOptions':_0x3706c4,'contextOptions':{..._0x53c716,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x37169d=_0x117925['uaEyr'](_0x36b4e0,_0x117925['zdSHA'])?{'browser':_0x315415,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1ff767,'outputMode':'file','codegen':'none'}:{'name':_0x52e18f,'browser':_0x315415,'capabilities':['core',_0x117925[_0x840fd3(0xd9)],_0x117925[_0x840fd3(0xec)],_0x840fd3(0x11c),_0x117925['LCxAh']],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1ff767};if(!_0x56b944){const _0x55ef49=_0x37169d[_0x840fd3(0x133)],_0x78c7d1=_0x55ef49['contextOptions'];if(_0x117925['WKwTG'](_0x78c7d1['userAgent'],undefined))delete _0x78c7d1[_0x840fd3(0xe5)];if(_0x78c7d1['storageState']===undefined)delete _0x78c7d1['storageState'];}const _0x141961=join(_0x117925[_0x840fd3(0x120)](tmpdir),_0x840fd3(0x147));!_0x117925['TugRN'](existsSync,_0x141961)&&await mkdir(_0x141961,{'recursive':!![]});const _0x4e526f=_0x117925['HuekG'](_0x36b4e0,_0x117925[_0x840fd3(0x13b)])?_0x117925['EAryQ']:'',_0xede2d3=join(_0x141961,_0x52e18f+'-'+Date['now']()+_0x4e526f+_0x840fd3(0x10a));return await writeFile(_0xede2d3,JSON['stringify'](_0x37169d,null,0x2)),{'configPath':_0xede2d3};}export async function buildPlaywrightCliConfig(_0x47871f,_0x3494f4,_0xa3f952,_0x18d9cd,_0xd2070f){const _0x417bfa=_0x349b40,_0x1531df={'bJtUX':function(_0x5cbf26,_0x17d9ea,_0x36ead5,_0x474eae,_0x4d359c,_0x2ae1bb,_0x5160f3){return _0x5cbf26(_0x17d9ea,_0x36ead5,_0x474eae,_0x4d359c,_0x2ae1bb,_0x5160f3);},'VzKEk':'playwright-cli','nmZtA':function(_0x52690b,_0x341dc1){return _0x52690b(_0x341dc1);}};if(_0xd2070f)return _0x1531df['bJtUX'](buildPlaywrightConfigCore,_0x47871f,_0xd2070f,_0x3494f4,_0xa3f952,_0x18d9cd,_0x1531df[_0x417bfa(0x131)]);const {storageStatePath:_0x366e49,tempAuthPath:_0x24c0c5}=await _0x1531df['nmZtA'](resolveLocalAuthPath,_0x1531df[_0x417bfa(0xee)](getEnvDir,_0x3494f4));try{const _0x2eb108=await _0x1531df[_0x417bfa(0x137)](buildPlaywrightConfigCore,_0x47871f,_0x366e49,_0x3494f4,_0xa3f952,_0x18d9cd,_0x1531df[_0x417bfa(0x131)]);return{..._0x2eb108,'tempAuthPath':_0x24c0c5};}catch(_0x2c4b27){_0x24c0c5&&await unlink(_0x24c0c5)['catch'](()=>{});throw _0x2c4b27;}}export function getNestedValue(_0x3dd222,_0x207cdc){const _0x4173eb=_0x349b40,_0x3261c4={'UfgGU':_0x4173eb(0x138)},_0x377235=parseKeyPath(_0x207cdc);let _0x33b837=_0x3dd222;for(const _0x4e24c9 of _0x377235){if(_0x33b837===null||_0x33b837===undefined||typeof _0x33b837!==_0x3261c4[_0x4173eb(0xe3)])return undefined;_0x33b837=_0x33b837[_0x4e24c9];}return _0x33b837;}function _0x41da(){const _0x7a0b34=['Nluzk','getuid','VzKEk','warn','browser','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','APyWd','gAurT','bJtUX','object','OLimf','path','zdSHA','location','cTbvI','headers','JuMQr','legacy','golKO','setupHeaders','boolean','contextOptions','139330wygJXz','jpwTN','ranger-config','auth.json.enc','5045418dEPNSm','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','join','DuSJZ','fromEntries','INzNT','MEhbf','NJqpW','eIXDL','Environment\x20variable\x20','zSNqh','PZmGD','LajJV','CVNpd','push','UfgGU','Refusing\x20to\x20write\x20profile\x20\x22','userAgent','399040yCKxWl','keys','filter','bNAIP','mnFIY','GHLyB','TkeZR','18wWXKWU','nmZtA','dNVBO','oYLGO','allowInsecureLocalhost','setupHeader','fIevO','entries','safeMode','1463913twlieW','\x22\x20to\x20legacy\x20path\x20','sobVq','Failed\x20to\x20decrypt\x20auth\x20state:\x20','--no-sandbox','OpwSy','stagehand','ranger-auth-','message','settings.json','vWRrQ','launchOptions','playwright-cli','xIReD','15095390bgKzeD','--disable-web-security','196skiuzE','locations','extraHTTPHeaders','dkHLd','.json','auth.json','utf-8','zPZuV','split','now','15381HAXYUh','code','hKRKM','aoNLY','iyzMy','wnnNS','AKOjN','ENOENT','ATBGu','parse','args','local','pdf','gEpcc','all','COjlw','BqBXV','mCOgB','xuKFj','1peotMG','forWrite','includes','IDRbM','isArray','1006746YBpZUv','stringify','map','vkwiN','install','vision','length'];_0x41da=function(){return _0x7a0b34;};return _0x41da();}export function setNestedValue(_0x45f049,_0x4aff72,_0x5b63b1){const _0x433694=_0x349b40,_0x2c0d40={'xHzYq':function(_0x1ecbec,_0x526812){return _0x1ecbec-_0x526812;}},_0x182aa0=parseKeyPath(_0x4aff72);let _0x2139c2=_0x45f049;for(let _0x1ae11e=0x0;_0x1ae11e<_0x2c0d40['xHzYq'](_0x182aa0['length'],0x1);_0x1ae11e++){const _0x449ca3=_0x182aa0[_0x1ae11e];(!(_0x449ca3 in _0x2139c2)||typeof _0x2139c2[_0x449ca3]!==_0x433694(0x138))&&(_0x2139c2[_0x449ca3]={}),_0x2139c2=_0x2139c2[_0x449ca3];}_0x2139c2[_0x182aa0[_0x182aa0['length']-0x1]]=_0x5b63b1;}export function deleteNestedValue(_0x478501,_0x2b4bc5){const _0x1705d1=_0x349b40,_0x3c1fb8={'nnkaA':function(_0x1d0c65,_0x335c71){return _0x1d0c65<_0x335c71;},'KnmaN':function(_0x136eaf,_0x6d4af0){return _0x136eaf-_0x6d4af0;},'xIReD':function(_0x5aa5ac,_0x143de0){return _0x5aa5ac!==_0x143de0;},'hKRKM':function(_0x18e2b0,_0x1a3f04){return _0x18e2b0===_0x1a3f04;},'xuKFj':function(_0x58d9bb,_0xf2d089){return _0x58d9bb-_0xf2d089;},'psNJd':function(_0x57484f,_0x2b1915){return _0x57484f in _0x2b1915;}},_0x234222=parseKeyPath(_0x2b4bc5);let _0x1dd7fc=_0x478501;for(let _0x3936c7=0x0;_0x3c1fb8['nnkaA'](_0x3936c7,_0x3c1fb8['KnmaN'](_0x234222[_0x1705d1(0x12e)],0x1));_0x3936c7++){if(_0x1dd7fc===null||_0x1dd7fc===undefined||_0x3c1fb8[_0x1705d1(0x103)](typeof _0x1dd7fc,_0x1705d1(0x138)))return![];_0x1dd7fc=_0x1dd7fc[_0x234222[_0x3936c7]];}if(_0x3c1fb8[_0x1705d1(0x112)](_0x1dd7fc,null)||_0x3c1fb8['hKRKM'](_0x1dd7fc,undefined)||typeof _0x1dd7fc!==_0x1705d1(0x138))return![];const _0xa82a6e=_0x234222[_0x3c1fb8[_0x1705d1(0x122)](_0x234222['length'],0x1)];if(_0x3c1fb8['psNJd'](_0xa82a6e,_0x1dd7fc))return delete _0x1dd7fc[_0xa82a6e],!![];return![];}function parseKeyPath(_0x1ad66d){const _0x2069cf=_0x349b40,_0x5672a9={'kLnFO':'header','gEpcc':_0x2069cf(0x142)},_0x4eacba=_0x1ad66d[_0x2069cf(0x10e)]('.');return _0x4eacba[0x0]===_0x5672a9['kLnFO']&&(_0x4eacba[0x0]=_0x2069cf(0x13e)),_0x4eacba[0x0]===_0x2069cf(0xf2)&&(_0x4eacba[0x0]=_0x5672a9[_0x2069cf(0x11d)]),_0x4eacba;}export function formatSettings(_0x54ff14,_0x1a2c16=0x0){const _0x4ef7b5=_0x349b40,_0x5d463b=[],_0x2973d9='\x20\x20'['repeat'](_0x1a2c16);for(const [_0x4d86fa,_0x56d399]of Object[_0x4ef7b5(0xf4)](_0x54ff14)){if(_0x56d399===undefined)continue;if(typeof _0x56d399===_0x4ef7b5(0x138)&&_0x56d399!==null){_0x5d463b['push'](''+_0x2973d9+_0x4d86fa+':');for(const [_0x17a866,_0xa44f95]of Object['entries'](_0x56d399)){_0x5d463b['push'](_0x2973d9+'\x20\x20'+_0x17a866+':\x20'+_0xa44f95);}}else _0x5d463b[_0x4ef7b5(0xe2)](''+_0x2973d9+_0x4d86fa+':\x20'+_0x56d399);}return _0x5d463b[_0x4ef7b5(0x14b)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x434920,_0x235e51){const _0x3c10e3=_0x4551,_0x5432c=_0x434920();while(!![]){try{const _0x2b6775=parseInt(_0x3c10e3(0x14f))/0x1+parseInt(_0x3c10e3(0x14d))/0x2+-parseInt(_0x3c10e3(0x158))/0x3+-parseInt(_0x3c10e3(0x155))/0x4+-parseInt(_0x3c10e3(0x151))/0x5*(parseInt(_0x3c10e3(0x153))/0x6)+parseInt(_0x3c10e3(0x150))/0x7+parseInt(_0x3c10e3(0x14e))/0x8*(parseInt(_0x3c10e3(0x154))/0x9);if(_0x2b6775===_0x235e51)break;else _0x5432c['push'](_0x5432c['shift']());}catch(_0xb5dd1a){_0x5432c['push'](_0x5432c['shift']());}}}(_0xc391,0x575dc));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0xc391(){const _0x346f1a=['689784diiipx','1706565SevmHm','14435oxopuN','utf-8','750mWNprj','3276bBbRTX','248200IxTxZY','cnVOA','sZjou','2004666vjdmMe','731632XkCXme','3288LlSIJt'];_0xc391=function(){return _0x346f1a;};return _0xc391();}export function readSkillContent(_0x431d28){const _0x8807d2=_0x4551,_0x938bed={'mnDyL':function(_0x558e5d,_0x57358f,_0x2fbb4a,_0x4931a8,_0x2b93ef){return _0x558e5d(_0x57358f,_0x2fbb4a,_0x4931a8,_0x2b93ef);},'cnVOA':function(_0x27f956,_0x3ea7da,_0xae626c){return _0x27f956(_0x3ea7da,_0xae626c);}},_0x1d0d1b=_0x938bed['mnDyL'](join,__dirname,'..','..','skills'),_0x2ec442=_0x938bed[_0x8807d2(0x156)](join,_0x1d0d1b,_0x431d28);try{return _0x938bed[_0x8807d2(0x156)](readFileSync,_0x2ec442,_0x8807d2(0x152));}catch{return'';}}function _0x4551(_0x145abf,_0x49e5fc){_0x145abf=_0x145abf-0x14d;const _0xc39103=_0xc391();let _0x4551aa=_0xc39103[_0x145abf];return _0x4551aa;}export function getRangerSkillContent(){const _0x35ad2f=_0x4551,_0x2ca57d={'sZjou':function(_0x27941e,_0x41902e){return _0x27941e(_0x41902e);}};return _0x2ca57d[_0x35ad2f(0x157)](readSkillContent,'ranger/SKILL.md');}
|