@ranger-testing/ranger-cli 2.5.4-alpha.5f9facb-17 → 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/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 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/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 +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
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(_0x35fe52,_0x4d2a87){const _0x29c92c=_0x5de0,_0x521115=_0x35fe52();while(!![]){try{const _0x41b067=parseInt(_0x29c92c(0x155))/0x1+parseInt(_0x29c92c(0x160))/0x2*(-parseInt(_0x29c92c(0x14f))/0x3)+-parseInt(_0x29c92c(0x146))/0x4+parseInt(_0x29c92c(0x152))/0x5*(parseInt(_0x29c92c(0x15b))/0x6)+parseInt(_0x29c92c(0x16b))/0x7*(-parseInt(_0x29c92c(0x162))/0x8)+parseInt(_0x29c92c(0x14d))/0x9+parseInt(_0x29c92c(0x15e))/0xa;if(_0x41b067===_0x4d2a87)break;else _0x521115['push'](_0x521115['shift']());}catch(_0x5ebf96){_0x521115['push'](_0x521115['shift']());}}}(_0x275a,0xd9a6f));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x5de0(_0x5c56e1,_0x21588e){_0x5c56e1=_0x5c56e1-0x146;const _0x275a53=_0x275a();let _0x5de0c3=_0x275a53[_0x5c56e1];return _0x5de0c3;}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x2e713a={'FJIkH':function(_0x399831,_0x291822,_0x36534e){return _0x399831(_0x291822,_0x36534e);},'rqyyv':function(_0x3448a5){return _0x3448a5();},'ttiXr':'projects.json'};return _0x2e713a['FJIkH'](join,_0x2e713a['rqyyv'](getRangerHomeDir),_0x2e713a['ttiXr']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x427a60=_0x5de0,_0x2f4c4d={'WEwLL':function(_0x1b5cf7,_0x41f356){return _0x1b5cf7(_0x41f356);},'UJZzU':function(_0x15e5dd){return _0x15e5dd();},'Rftdb':function(_0x19971b,_0x5e934d){return _0x19971b instanceof _0x5e934d;},'uOeQD':function(_0x30bf41,_0x338e12){return _0x30bf41(_0x338e12);},'jWadR':function(_0x214ce0,_0x2be3de){return _0x214ce0!==_0x2be3de;},'LkTkX':'object','fHwQM':function(_0x3a7fb1,_0xb81214){return _0x3a7fb1!==_0xb81214;},'mYOAI':function(_0x3c3baf,_0x4fd912){return _0x3c3baf===_0x4fd912;},'TQXZF':function(_0xc426a0){return _0xc426a0();}},_0x2064e4=getProjectsConfigPath();if(!existsSync(_0x2064e4))return emptyConfig();let _0x7ab7f7;try{_0x7ab7f7=readFileSync(_0x2064e4,_0x427a60(0x175));}catch(_0x1b8c82){const _0x3c63bb=_0x1b8c82 instanceof Error?_0x1b8c82['message']:_0x2f4c4d['WEwLL'](String,_0x1b8c82);return console[_0x427a60(0x15f)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x2064e4+':\x20'+_0x3c63bb+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x2f4c4d['UJZzU'](emptyConfig);}let _0x46a7e4;try{_0x46a7e4=JSON[_0x427a60(0x15a)](_0x7ab7f7);}catch(_0x40cd89){const _0x19f18b=_0x2f4c4d[_0x427a60(0x157)](_0x40cd89,Error)?_0x40cd89[_0x427a60(0x167)]:_0x2f4c4d[_0x427a60(0x148)](String,_0x40cd89);return console[_0x427a60(0x15f)]('[ranger]\x20Warning:\x20'+_0x2064e4+'\x20is\x20not\x20valid\x20JSON\x20('+_0x19f18b+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x46a7e4||_0x2f4c4d['jWadR'](typeof _0x46a7e4,_0x2f4c4d['LkTkX'])||Array[_0x427a60(0x164)](_0x46a7e4)||_0x46a7e4['version']!==CURRENT_VERSION||_0x2f4c4d[_0x427a60(0x147)](typeof _0x46a7e4['projects'],_0x2f4c4d[_0x427a60(0x165)])||_0x2f4c4d['mYOAI'](_0x46a7e4[_0x427a60(0x176)],null)||Array['isArray'](_0x46a7e4[_0x427a60(0x176)]))return console[_0x427a60(0x15f)](_0x427a60(0x16f)+_0x2064e4+_0x427a60(0x151)),_0x2f4c4d[_0x427a60(0x14c)](emptyConfig);return _0x46a7e4;}export function writeProjectsConfig(_0x1c4f94){const _0x458d36=_0x5de0,_0x9975f8={'sGNYR':function(_0x1750c4){return _0x1750c4();},'CUPVp':function(_0x3727ac,_0x16eeba,_0x9c1147){return _0x3727ac(_0x16eeba,_0x9c1147);},'wiwwT':function(_0x531855,_0x2f5d1d,_0x4c72a1,_0x2efc2e){return _0x531855(_0x2f5d1d,_0x4c72a1,_0x2efc2e);},'XMXfh':function(_0x6d877,_0x33d8a6,_0x113c7b){return _0x6d877(_0x33d8a6,_0x113c7b);},'juZOd':function(_0x4e988f,_0x90d610){return _0x4e988f(_0x90d610);},'nTDNi':function(_0x1e8a28,_0x16cc6a){return _0x1e8a28(_0x16cc6a);}},_0x1f3e13=_0x9975f8['sGNYR'](getProjectsConfigPath),_0xa241f9=dirname(_0x1f3e13);!existsSync(_0xa241f9)&&_0x9975f8[_0x458d36(0x16a)](mkdirSync,_0xa241f9,{'recursive':!![]});const _0x5781f8=_0x1f3e13+'.'+process['pid']+'.'+Date['now']()+_0x458d36(0x154),_0x4d2e19=JSON[_0x458d36(0x16c)](_0x1c4f94,null,0x2)+'\x0a';try{_0x9975f8[_0x458d36(0x172)](writeFileSync,_0x5781f8,_0x4d2e19,{'encoding':'utf-8','mode':0x180}),_0x9975f8['XMXfh'](renameSync,_0x5781f8,_0x1f3e13);}catch(_0x1bbaae){try{_0x9975f8['juZOd'](existsSync,_0x5781f8)&&_0x9975f8[_0x458d36(0x163)](unlinkSync,_0x5781f8);}catch{}throw _0x1bbaae;}}export function readProfileOverrides(_0x4bca12,_0x39c2c0){const _0x4b0bed=_0x5de0,_0xd1f6d4={'uvcYJ':function(_0x327745){return _0x327745();}},_0x16835e=_0xd1f6d4[_0x4b0bed(0x14e)](readProjectsConfig),_0x33e0c2=_0x16835e['projects'][_0x4bca12];if(!_0x33e0c2||!_0x33e0c2['profiles'])return null;const _0x3811f9=_0x33e0c2['profiles'][_0x39c2c0];if(!_0x3811f9||!_0x3811f9[_0x4b0bed(0x150)])return null;return _0x3811f9['settings']??null;}export function setProfileOverride(_0x36f453,_0x27595b,_0x2ebb8b,_0x191030){const _0x32c7fd=_0x5de0,_0x154b03={'CHwfj':'keyPath\x20is\x20required','eBWnc':function(_0x1bce18){return _0x1bce18();},'xfJHv':function(_0x202a29,_0x59fde9,_0x5ebff7,_0x25683){return _0x202a29(_0x59fde9,_0x5ebff7,_0x25683);}};if(!_0x2ebb8b)throw new Error(_0x154b03[_0x32c7fd(0x159)]);const _0x2dfbc0=_0x154b03['eBWnc'](readProjectsConfig),_0xee2625=_0x2dfbc0[_0x32c7fd(0x176)][_0x36f453]??={},_0x2198e3=_0xee2625['profiles']??={},_0x2f9194=_0x2198e3[_0x27595b]??={},_0x39e72b=_0x2f9194['settings']??={};_0x154b03[_0x32c7fd(0x14a)](setByKeyPath,_0x39e72b,_0x2ebb8b,_0x191030),writeProjectsConfig(_0x2dfbc0);}export function unsetProfileOverride(_0x11913a,_0x2f822b,_0x26ab51){const _0x3a5400=_0x5de0,_0xf0d8db={'OGhsE':'keyPath\x20is\x20required','AaQvr':function(_0x8fa22f){return _0x8fa22f();},'WLLaX':function(_0x2167f0,_0x367b2c){return _0x2167f0(_0x367b2c);}};if(!_0x26ab51)throw new Error(_0xf0d8db['OGhsE']);const _0x5f14ab=_0xf0d8db[_0x3a5400(0x153)](readProjectsConfig),_0x43f1b1=_0x5f14ab[_0x3a5400(0x176)][_0x11913a];if(!_0x43f1b1?.[_0x3a5400(0x174)])return![];const _0x3373a4=_0x43f1b1[_0x3a5400(0x174)][_0x2f822b];if(!_0x3373a4?.[_0x3a5400(0x150)])return![];const _0x3d2ad4=deleteByKeyPath(_0x3373a4['settings'],_0x26ab51);if(!_0x3d2ad4)return![];return _0xf0d8db['WLLaX'](writeProjectsConfig,_0x5f14ab),!![];}export function resetProfileOverrides(_0x8db4cc,_0x1b4885){const _0x55fbcf=_0x5de0,_0x2ba15a={'GxEtd':function(_0x2d867e,_0x3f3ca9){return _0x2d867e===_0x3f3ca9;}},_0x3ad1b1=readProjectsConfig(),_0x1638ad=_0x3ad1b1[_0x55fbcf(0x176)][_0x8db4cc];if(!_0x1638ad?.[_0x55fbcf(0x174)])return;if(!(_0x1b4885 in _0x1638ad['profiles']))return;delete _0x1638ad['profiles'][_0x1b4885],_0x2ba15a[_0x55fbcf(0x169)](Object['keys'](_0x1638ad['profiles'])['length'],0x0)&&(!_0x1638ad[_0x55fbcf(0x161)]?delete _0x3ad1b1[_0x55fbcf(0x176)][_0x8db4cc]:_0x1638ad['profiles']={}),writeProjectsConfig(_0x3ad1b1);}export function readLastProfile(_0x478cc0){const _0x161e46=_0x5de0,_0xfc140e=readProjectsConfig(),_0x1627b0=_0xfc140e[_0x161e46(0x176)][_0x478cc0];return _0x1627b0?.['lastProfile']??null;}export function writeLastProfile(_0x22b65a,_0x472e93){const _0x2ec31d=_0x5de0,_0x1b9872={'zYtfl':function(_0x506371){return _0x506371();},'tmCLq':function(_0x3e0939,_0x3eb6bd){return _0x3e0939(_0x3eb6bd);}},_0x4f0162=_0x1b9872[_0x2ec31d(0x15c)](readProjectsConfig),_0x1b8e59=_0x4f0162['projects'][_0x22b65a]??={};_0x1b8e59[_0x2ec31d(0x161)]=_0x472e93,_0x1b9872['tmCLq'](writeProjectsConfig,_0x4f0162);}function _0x275a(){const _0x87a93d=['profiles','utf-8','projects','object','2736748CVHmOg','fHwQM','uOeQD','setupHeaders','xfJHv','Mvjha','TQXZF','8279172OLsJkY','uvcYJ','2634069EulmWE','settings','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','4713145iOIZVN','AaQvr','.tmp','684939ADLVsz','rCvPB','Rftdb','HcZwl','CHwfj','parse','6PvTyuq','zYtfl','wurqp','13961340mwpuwQ','warn','4KxKhFv','lastProfile','20144RceSkH','nTDNi','isArray','LkTkX','length','message','split','GxEtd','CUPVp','1701pDtQzK','stringify','SrFOh','ApjjR','[ranger]\x20Warning:\x20','anCyJ','clvwH','wiwwT','niKCe'];_0x275a=function(){return _0x87a93d;};return _0x275a();}export function mergeCloudProfileSettings(_0x296e4e,_0x3a3b9d){const _0x27e5df=_0x5de0,_0x4355da={'HcZwl':function(_0x23e6d2,_0x1e2a65){return _0x23e6d2??_0x1e2a65;},'rCvPB':function(_0x3afae2,_0x1e4fa2){return _0x3afae2===_0x1e4fa2;},'TGoqZ':function(_0x1caf98,_0x7aa277){return _0x1caf98===_0x7aa277;},'Mvjha':'headers','wurqp':function(_0x5219dc,_0x1e2a50){return _0x5219dc===_0x1e2a50;},'ApjjR':_0x27e5df(0x149),'clvwH':function(_0x2231b8,_0x46fb18){return _0x2231b8(_0x46fb18);}},_0x1ce90e={..._0x4355da[_0x27e5df(0x158)](_0x296e4e,{})};if(!_0x3a3b9d)return _0x1ce90e;for(const [_0x3c5416,_0x10dc60]of Object['entries'](_0x3a3b9d)){if(_0x4355da[_0x27e5df(0x156)](_0x10dc60,undefined))continue;if(_0x4355da['TGoqZ'](_0x10dc60,null)){delete _0x1ce90e[_0x3c5416];continue;}if(_0x3c5416===_0x4355da[_0x27e5df(0x14b)]||_0x4355da[_0x27e5df(0x15d)](_0x3c5416,_0x4355da[_0x27e5df(0x16e)])){const _0x4dc56d=_0x4355da[_0x27e5df(0x171)](asRecord,_0x1ce90e[_0x3c5416])??{},_0x10d6ce=asRecord(_0x10dc60);if(!_0x10d6ce){_0x1ce90e[_0x3c5416]=_0x10dc60;continue;}const _0x4b4380={..._0x4dc56d};for(const [_0x1b254a,_0x20486b]of Object['entries'](_0x10d6ce)){if(_0x20486b===null)delete _0x4b4380[_0x1b254a];else _0x20486b!==undefined&&(_0x4b4380[_0x1b254a]=_0x20486b);}_0x1ce90e[_0x3c5416]=_0x4b4380;continue;}_0x1ce90e[_0x3c5416]=_0x10dc60;}return _0x1ce90e;}function asRecord(_0x34aca2){const _0x464276=_0x5de0,_0x3d4134={'FKZfV':function(_0x39844e,_0xe7a087){return _0x39844e===_0xe7a087;},'niKCe':'object'};return _0x34aca2&&_0x3d4134['FKZfV'](typeof _0x34aca2,_0x3d4134[_0x464276(0x173)])&&!Array['isArray'](_0x34aca2)?_0x34aca2:undefined;}function setByKeyPath(_0x55e0de,_0x4cb517,_0x4ea26e){const _0x230ad0=_0x5de0,_0x10a78b={'gwzMP':function(_0x477727,_0x1f8dad){return _0x477727-_0x1f8dad;}},_0x1dae5b=_0x4cb517[_0x230ad0(0x168)]('.');let _0x5912a=_0x55e0de;for(let _0x46b857=0x0;_0x46b857<_0x1dae5b[_0x230ad0(0x166)]-0x1;_0x46b857++){const _0x121d4e=_0x1dae5b[_0x46b857],_0x12d0e5=_0x5912a[_0x121d4e];(!_0x12d0e5||typeof _0x12d0e5!=='object'||Array[_0x230ad0(0x164)](_0x12d0e5))&&(_0x5912a[_0x121d4e]={}),_0x5912a=_0x5912a[_0x121d4e];}_0x5912a[_0x1dae5b[_0x10a78b['gwzMP'](_0x1dae5b[_0x230ad0(0x166)],0x1)]]=_0x4ea26e;}function deleteByKeyPath(_0x9e3931,_0x18344a){const _0x31c700=_0x5de0,_0x2fec1a={'SrFOh':function(_0xf489cc,_0x32260c){return _0xf489cc<_0x32260c;},'zHwZY':function(_0x2e05f6,_0x15e652){return _0x2e05f6!==_0x15e652;},'anCyJ':function(_0x5328b9,_0x18db6b){return _0x5328b9-_0x18db6b;}},_0x3c0592=_0x18344a['split']('.');let _0xd5ed10=_0x9e3931;for(let _0x264719=0x0;_0x2fec1a[_0x31c700(0x16d)](_0x264719,_0x3c0592[_0x31c700(0x166)]-0x1);_0x264719++){const _0x780d23=_0x3c0592[_0x264719],_0x24ee4a=_0xd5ed10[_0x780d23];if(!_0x24ee4a||_0x2fec1a['zHwZY'](typeof _0x24ee4a,_0x31c700(0x177))||Array['isArray'](_0x24ee4a))return![];_0xd5ed10=_0x24ee4a;}const _0x18fd45=_0x3c0592[_0x2fec1a[_0x31c700(0x170)](_0x3c0592['length'],0x1)];if(!(_0x18fd45 in _0xd5ed10))return![];return delete _0xd5ed10[_0x18fd45],!![];}
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
const _0x42bec1=_0x2e15;(function(_0x5af90a,_0x41d0c4){const _0x2c8bbe=_0x2e15,_0x486fe9=_0x5af90a();while(!![]){try{const _0x4ee82e=parseInt(_0x2c8bbe(0x1bc))/0x1*(parseInt(_0x2c8bbe(0x1c8))/0x2)+parseInt(_0x2c8bbe(0x1c2))/0x3*(parseInt(_0x2c8bbe(0x1c1))/0x4)+-parseInt(_0x2c8bbe(0x1d2))/0x5*(parseInt(_0x2c8bbe(0x1b1))/0x6)+parseInt(_0x2c8bbe(0x1c6))/0x7*(parseInt(_0x2c8bbe(0x1b4))/0x8)+parseInt(_0x2c8bbe(0x1c3))/0x9*(parseInt(_0x2c8bbe(0x1ca))/0xa)+-parseInt(_0x2c8bbe(0x1ad))/0xb*(-parseInt(_0x2c8bbe(0x1bf))/0xc)+parseInt(_0x2c8bbe(0x1b2))/0xd*(-parseInt(_0x2c8bbe(0x1af))/0xe);if(_0x4ee82e===_0x41d0c4)break;else _0x486fe9['push'](_0x486fe9['shift']());}catch(_0x2fc15b){_0x486fe9['push'](_0x486fe9['shift']());}}}(_0x545c,0xe5f87));import*as _0x3fab2f from'fs';import*as _0x74ac98 from'path';import*as _0x573481 from'os';import{execSync}from'child_process';function _0x2e15(_0x3cc439,_0x467ce6){_0x3cc439=_0x3cc439-0x1ac;const _0x545c66=_0x545c();let _0x2e154f=_0x545c66[_0x3cc439];return _0x2e154f;}const CACHE_FILE=_0x74ac98['join'](_0x573481[_0x42bec1(0x1df)](),_0x42bec1(0x1b5),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x545c(){const _0x2c96ab=['writeFileSync','NSsNf','mALtx','main','clear','homedir','utf-8','aMxwI','16476823Ymvfmz','pxwMV','5369266sokdtN','prompted','24ZnBDIJ','78XXgoOX','readFileSync','4101744GjGQwo','.claude','enabled','HEAD','branches','IfwFN','fTexF','xfnKm','1688853VtKOTs','ntRVL','eYDEu','12JxCVBI','FIjUD','198840FfxdXW','33vwQyQd','10881akegio','mkdirSync','TwMyY','7JlPIqs','existsSync','2FKKekK','lastPlanReminderAt','4310gkwpHw','now','uRXnc','master','ldQJT','registeredAt','TNedk','git\x20rev-parse\x20--abbrev-ref\x20HEAD','1905350wERCHf','YMPse','sessions','EfwEB','GpHVc','currentBranch','featureId','Owvqw'];_0x545c=function(){return _0x2c96ab;};return _0x545c();}function loadCache(){const _0x551b43=_0x42bec1,_0x57a2d0={'ldQJT':function(_0xfa392a){return _0xfa392a();}};try{if(_0x3fab2f[_0x551b43(0x1c7)](CACHE_FILE)){const _0x1b02e6=JSON['parse'](_0x3fab2f[_0x551b43(0x1b3)](CACHE_FILE,_0x551b43(0x1e0)));return{'version':0x3,'sessions':_0x1b02e6[_0x551b43(0x1d4)]||{},'branches':_0x1b02e6['branches']||{},'lastEnabledSessionClearedAt':_0x1b02e6['lastEnabledSessionClearedAt']};}}catch{}return _0x57a2d0[_0x551b43(0x1ce)](createEmptyCache);}function saveCache(_0x202bb6){const _0x4ce810=_0x42bec1;try{const _0x3dba0b=_0x74ac98['dirname'](CACHE_FILE);!_0x3fab2f[_0x4ce810(0x1c7)](_0x3dba0b)&&_0x3fab2f[_0x4ce810(0x1c4)](_0x3dba0b,{'recursive':!![]}),_0x3fab2f[_0x4ce810(0x1da)](CACHE_FILE,JSON['stringify'](_0x202bb6,null,0x2));}catch{}}export function getCurrentBranch(){const _0x6b48d2=_0x42bec1,_0x2eae68={'NSsNf':function(_0x15fa74,_0x5cbe2c,_0x4c8504){return _0x15fa74(_0x5cbe2c,_0x4c8504);},'GZRoS':_0x6b48d2(0x1d1),'mALtx':'pipe','RQfWq':function(_0x5b501f,_0x163e24){return _0x5b501f===_0x163e24;}};try{const _0x49f9b3=_0x2eae68[_0x6b48d2(0x1db)](execSync,_0x2eae68['GZRoS'],{'encoding':_0x6b48d2(0x1e0),'stdio':[_0x2eae68[_0x6b48d2(0x1dc)],_0x2eae68['mALtx'],_0x2eae68[_0x6b48d2(0x1dc)]]})['trim']();if(!_0x49f9b3||_0x2eae68['RQfWq'](_0x49f9b3,_0x6b48d2(0x1b7)))return null;return _0x49f9b3;}catch{return null;}}export function enableBranch(_0xedc23f){const _0x2a4939=loadCache();_0x2a4939['branches'][_0xedc23f]=!![],saveCache(_0x2a4939);}export function disableBranch(_0x43c2b0){const _0x237b6b=loadCache();delete _0x237b6b['branches'][_0x43c2b0],saveCache(_0x237b6b);}export function isBranchEnabled(_0x1fd3d0){const _0x340151={'CcGBg':function(_0x4844eb,_0x4033af){return _0x4844eb===_0x4033af;}},_0x17fa5e=loadCache();return _0x340151['CcGBg'](_0x17fa5e['branches'][_0x1fd3d0],!![]);}function getOrCreateSession(_0x1bcb3c,_0x12b765){const _0x49d4d4=_0x42bec1;return!_0x1bcb3c[_0x49d4d4(0x1d4)][_0x12b765]&&(_0x1bcb3c['sessions'][_0x12b765]={}),_0x1bcb3c[_0x49d4d4(0x1d4)][_0x12b765];}export function enableSession(_0x519b41){const _0x12c054=_0x42bec1,_0x3199c2={'uRXnc':function(_0x5bf623,_0x5218d5,_0x4f80d5){return _0x5bf623(_0x5218d5,_0x4f80d5);},'EfwEB':function(_0xeaa42d){return _0xeaa42d();},'sGPoR':function(_0x268afd,_0x3c29e1){return _0x268afd!==_0x3c29e1;},'dmaRu':_0x12c054(0x1dd)},_0x261064=loadCache(),_0x15c746=_0x3199c2[_0x12c054(0x1cc)](getOrCreateSession,_0x261064,_0x519b41);_0x15c746['enabled']=!![];const _0x1ec571=_0x3199c2[_0x12c054(0x1d5)](getCurrentBranch);_0x1ec571&&_0x3199c2['sGPoR'](_0x1ec571,_0x3199c2['dmaRu'])&&_0x1ec571!==_0x12c054(0x1cd)&&(_0x261064[_0x12c054(0x1b8)][_0x1ec571]=!![],_0x15c746[_0x12c054(0x1d7)]=_0x1ec571),saveCache(_0x261064);}export function isSessionEnabled(_0x4911a0){const _0x1cab02=_0x42bec1,_0x230771={'aMxwI':function(_0x45d123){return _0x45d123();},'oBcTw':function(_0x23e7c3,_0x59d78b){return _0x23e7c3===_0x59d78b;},'MYFNU':'master','zMMdB':function(_0xe845,_0x3b6a92){return _0xe845===_0x3b6a92;},'viNWe':function(_0x339258,_0x3cca09){return _0x339258||_0x3cca09;}},_0x2eec77=_0x230771[_0x1cab02(0x1ac)](loadCache),_0x4d18cc=getCurrentBranch();if(!_0x4d18cc||_0x4d18cc==='main'||_0x230771['oBcTw'](_0x4d18cc,_0x230771['MYFNU']))return _0x230771['oBcTw'](_0x2eec77['sessions'][_0x4911a0]?.['enabled'],!![]);const _0x25e955=_0x230771['oBcTw'](_0x2eec77['branches'][_0x4d18cc],!![]),_0x1ecc35=_0x230771['zMMdB'](_0x2eec77[_0x1cab02(0x1d4)][_0x4911a0]?.[_0x1cab02(0x1b6)],!![]);return _0x230771['viNWe'](_0x25e955,_0x1ecc35);}export function disableSession(_0x24b1d3){const _0x382d70=_0x42bec1,_0x3676bc={'TNedk':function(_0x5f9c79,_0x3c92f4,_0x555352){return _0x5f9c79(_0x3c92f4,_0x555352);},'uopGD':function(_0x234858,_0x5356e1){return _0x234858(_0x5356e1);}},_0x39e50b=loadCache(),_0x384045=_0x3676bc[_0x382d70(0x1d0)](getOrCreateSession,_0x39e50b,_0x24b1d3);_0x384045[_0x382d70(0x1b6)]=![],_0x3676bc['uopGD'](saveCache,_0x39e50b);}export function updateBranchTracking(_0x357c48){const _0x71f9a1=_0x42bec1,_0x2a2461={'TltUL':function(_0x255ac4){return _0x255ac4();},'xfFIB':_0x71f9a1(0x1dd),'GpHVc':_0x71f9a1(0x1cd),'PMNkc':function(_0x3d3ac0,_0x2c9a01){return _0x3d3ac0!==_0x2c9a01;},'TDVhc':function(_0x5ecc12,_0x648811){return _0x5ecc12(_0x648811);}},_0x105178=_0x2a2461['TltUL'](loadCache),_0x54ccd8=_0x105178['sessions'][_0x357c48];if(!_0x54ccd8?.['enabled'])return;const _0x2200d7=getCurrentBranch();if(!_0x2200d7||_0x2200d7===_0x2a2461['xfFIB']||_0x2200d7===_0x2a2461[_0x71f9a1(0x1d6)])return;_0x2a2461['PMNkc'](_0x54ccd8[_0x71f9a1(0x1d7)],_0x2200d7)&&(_0x105178[_0x71f9a1(0x1b8)][_0x2200d7]=!![],_0x54ccd8[_0x71f9a1(0x1d7)]=_0x2200d7,_0x2a2461['TDVhc'](saveCache,_0x105178));}export function initBranchTracking(_0x22474d){const _0x3d7066=_0x42bec1,_0x455773={'ghnfq':function(_0x135732){return _0x135732();},'koTTl':function(_0x61acdd){return _0x61acdd();},'mvfVt':_0x3d7066(0x1dd),'GRCSw':function(_0x2b08fa,_0x294c5e){return _0x2b08fa===_0x294c5e;},'fTexF':function(_0x44443e,_0x300d32){return _0x44443e(_0x300d32);}},_0x3eec06=_0x455773['ghnfq'](loadCache),_0x3740f9=_0x455773['koTTl'](getCurrentBranch);if(!_0x3740f9||_0x3740f9===_0x455773['mvfVt']||_0x455773['GRCSw'](_0x3740f9,'master'))return;if(_0x3eec06[_0x3d7066(0x1b8)][_0x3740f9]===!![]){const _0x13310b=getOrCreateSession(_0x3eec06,_0x22474d);_0x13310b['enabled']=!![],_0x13310b[_0x3d7066(0x1d7)]=_0x3740f9,_0x455773[_0x3d7066(0x1ba)](saveCache,_0x3eec06);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x443a66){const _0x581d6c=_0x42bec1,_0x31e0c7={'pxwMV':function(_0x5c226f){return _0x5c226f();},'xfnKm':function(_0x4b3446,_0x51c3c0){return _0x4b3446(_0x51c3c0);}},_0x2cf938=_0x31e0c7[_0x581d6c(0x1ae)](loadCache),_0xaefde2=_0x2cf938[_0x581d6c(0x1d4)][_0x443a66];_0xaefde2?.['enabled']&&(_0x2cf938['lastEnabledSessionClearedAt']=Date['now'](),_0x31e0c7[_0x581d6c(0x1bb)](saveCache,_0x2cf938));}export function shouldAutoEnableAfterClear(_0x503bdf){const _0x5e0bf7=_0x42bec1,_0x133b2f={'TwMyY':_0x5e0bf7(0x1de),'Owvqw':function(_0x18935b,_0x1e02ab){return _0x18935b-_0x1e02ab;},'oOnMr':function(_0x24c121,_0x5dc9c8){return _0x24c121<=_0x5dc9c8;}};if(_0x503bdf!==_0x133b2f[_0x5e0bf7(0x1c5)])return![];const _0x46c949=loadCache(),_0x53b9c8=_0x46c949['lastEnabledSessionClearedAt'];if(!_0x53b9c8)return![];const _0x543e4b=_0x133b2f[_0x5e0bf7(0x1d9)](Date['now'](),_0x53b9c8);return _0x133b2f['oOnMr'](_0x543e4b,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x2cb3ce){const _0x1aa8e0=_0x42bec1,_0x410d6d={'eYDEu':function(_0x4a73ef,_0x505898,_0xaef24){return _0x4a73ef(_0x505898,_0xaef24);},'rXxMm':function(_0x301ed6){return _0x301ed6();},'lluTn':function(_0x5e7514,_0x4a654a){return _0x5e7514!==_0x4a654a;},'mbekH':'master','uAbZc':function(_0x1dfc8f,_0x314fe0){return _0x1dfc8f(_0x314fe0);}},_0xfe57ce=loadCache(),_0x21ea2f=_0x410d6d[_0x1aa8e0(0x1be)](getOrCreateSession,_0xfe57ce,_0x2cb3ce);_0x21ea2f['enabled']=!![];const _0x5f5b44=_0x410d6d['rXxMm'](getCurrentBranch);_0x5f5b44&&_0x410d6d['lluTn'](_0x5f5b44,'main')&&_0x5f5b44!==_0x410d6d['mbekH']&&(_0x21ea2f['currentBranch']=_0x5f5b44),delete _0xfe57ce['lastEnabledSessionClearedAt'],_0x410d6d['uAbZc'](saveCache,_0xfe57ce);}export function registerSession(_0xd80971,_0x279966){const _0x2a547e=_0x42bec1,_0x199f8d={'FIjUD':function(_0x26e975,_0x1f77aa){return _0x26e975(_0x1f77aa);}},_0x2d640f=loadCache(),_0x43a0b8=getOrCreateSession(_0x2d640f,_0xd80971);_0x43a0b8[_0x2a547e(0x1d8)]=_0x279966,_0x43a0b8[_0x2a547e(0x1cf)]=new Date()['toISOString'](),_0x199f8d[_0x2a547e(0x1c0)](saveCache,_0x2d640f);}export function getSessionEntry(_0x5343cb){const _0xb8e2e5=_0x42bec1,_0x3422b2={'YMPse':function(_0x410908){return _0x410908();}},_0x2b0e38=_0x3422b2[_0xb8e2e5(0x1d3)](loadCache),_0x1c1b7e=_0x2b0e38['sessions'][_0x5343cb];if(_0x1c1b7e?.['featureId']&&_0x1c1b7e?.[_0xb8e2e5(0x1cf)])return{'featureId':_0x1c1b7e['featureId'],'registeredAt':_0x1c1b7e[_0xb8e2e5(0x1cf)]};return null;}export function unregisterSession(_0xaed9a0){const _0x35cf7e=_0x42bec1,_0x2b772c={'ApXKh':function(_0x405306,_0x16371d){return _0x405306(_0x16371d);}},_0x2feeb8=loadCache(),_0x588230=_0x2feeb8['sessions'][_0xaed9a0];_0x588230&&(delete _0x588230[_0x35cf7e(0x1d8)],delete _0x588230['registeredAt'],_0x2b772c['ApXKh'](saveCache,_0x2feeb8));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x513261){const _0x4a2110=_0x42bec1,_0x45adb7={'QIGbi':function(_0x2158b1,_0x268559){return _0x2158b1>=_0x268559;}},_0x2f5455=loadCache(),_0x308088=getOrCreateSession(_0x2f5455,_0x513261),_0x29e4f7=_0x308088[_0x4a2110(0x1c9)]||0x0,_0x3cec71=Date[_0x4a2110(0x1cb)]();if(_0x45adb7['QIGbi'](_0x3cec71-_0x29e4f7,PLAN_REMINDER_INTERVAL_MS))return _0x308088[_0x4a2110(0x1c9)]=_0x3cec71,saveCache(_0x2f5455),!![];return![];}export function shouldShowStopReminder(_0x40ef7a){const _0xb202db=_0x42bec1,_0x1b7126={'wIFPJ':function(_0x59d4eb,_0x1bb2be,_0x9e30b8){return _0x59d4eb(_0x1bb2be,_0x9e30b8);},'IfwFN':function(_0x2767f8,_0x126d52){return _0x2767f8(_0x126d52);}},_0x22eeca=loadCache(),_0x3a6684=_0x1b7126['wIFPJ'](getOrCreateSession,_0x22eeca,_0x40ef7a),_0x57f20f=_0x3a6684['lastStopReminderAt']||0x0,_0x4c9d21=Date[_0xb202db(0x1cb)]();if(_0x4c9d21-_0x57f20f>=STOP_REMINDER_INTERVAL_MS)return _0x3a6684['lastStopReminderAt']=_0x4c9d21,_0x1b7126[_0xb202db(0x1b9)](saveCache,_0x22eeca),!![];return![];}export function hasSessionBeenPrompted(_0x16772e){const _0x1f4d0e=_0x42bec1,_0x11f7b8={'ntRVL':function(_0x4d8981){return _0x4d8981();},'gEeuT':function(_0x2b3fd6,_0x4dd1f8){return _0x2b3fd6===_0x4dd1f8;}},_0x330326=_0x11f7b8[_0x1f4d0e(0x1bd)](loadCache);return _0x11f7b8['gEeuT'](_0x330326['sessions'][_0x16772e]?.[_0x1f4d0e(0x1b0)],!![]);}export function markSessionPrompted(_0x3be67d){const _0x247f1d=_0x42bec1,_0x55f287=loadCache(),_0x54df64=getOrCreateSession(_0x55f287,_0x3be67d);_0x54df64[_0x247f1d(0x1b0)]=!![],saveCache(_0x55f287);}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
|
-
(function(_0x152023,_0x2e9d91){const _0xe94c7d=_0x36b9,_0x1ec564=_0x152023();while(!![]){try{const _0x5c1ded=parseInt(_0xe94c7d(0x1e2))/0x1*(parseInt(_0xe94c7d(0x1ef))/0x2)+parseInt(_0xe94c7d(0x1f7))/0x3+-parseInt(_0xe94c7d(0x1de))/0x4*(parseInt(_0xe94c7d(0x208))/0x5)+parseInt(_0xe94c7d(0x23e))/0x6+-parseInt(_0xe94c7d(0x216))/0x7*(-parseInt(_0xe94c7d(0x239))/0x8)+parseInt(_0xe94c7d(0x21e))/0x9+-parseInt(_0xe94c7d(0x1dd))/0xa;if(_0x5c1ded===_0x2e9d91)break;else _0x1ec564['push'](_0x1ec564['shift']());}catch(_0x153d09){_0x1ec564['push'](_0x1ec564['shift']());}}}(_0x4405,0xaa74c));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(_0x345ee3,_0xa42ab8){const _0x5c7e53=_0x36b9,_0x3a808c={'vmwCN':function(_0x5202e7,_0x1039e2,_0x2ab592){return _0x5202e7(_0x1039e2,_0x2ab592);},'uBoPY':function(_0x1deb48,_0x14f693){return _0x1deb48!==_0x14f693;},'lxiwB':function(_0x6f52cc,_0x3aac65){return _0x6f52cc(_0x3aac65);}},_0x550de5=join(_0xa42ab8,'ci',_0x345ee3),_0x1697e2=join(_0xa42ab8,_0x5c7e53(0x200),_0x345ee3),_0x513b05=_0x3a808c['vmwCN'](join,_0xa42ab8,_0x345ee3),_0x160dfc=join(_0xa42ab8,_0x5c7e53(0x200)),_0x436f29=join(_0xa42ab8,'ci');if(existsSync(_0x550de5))return _0x550de5;if(existsSync(_0x1697e2))return _0x1697e2;if(existsSync(_0x513b05)&&(_0x3a808c[_0x5c7e53(0x1df)](_0x513b05,_0x160dfc)&&_0x513b05!==_0x436f29?!![]:_0x3a808c[_0x5c7e53(0x222)](hasLegacyProfileFiles,_0x513b05)))return _0x513b05;return null;}export function getEnvDir(_0x51f740,_0x1ade8f={}){const _0x25ce01=_0x36b9,_0x45624b={'foffH':function(_0x123c13){return _0x123c13();},'XocZZ':function(_0x15ebb9,_0x3a3e31){return _0x15ebb9(_0x3a3e31);},'fyQxH':function(_0x5d721e){return _0x5d721e();},'YKGwa':function(_0x2c6acc,_0x3a901f){return _0x2c6acc!==_0x3a901f;},'IakSC':function(_0x44f654,_0x89ab95,_0xd8a7a1){return _0x44f654(_0x89ab95,_0xd8a7a1);},'oPiFm':function(_0x4d6e2e,_0x13a438,_0x42c7f4,_0x3857da){return _0x4d6e2e(_0x13a438,_0x42c7f4,_0x3857da);},'AokMT':function(_0x34b44f,_0x45c801,_0x3c6c6a){return _0x34b44f(_0x45c801,_0x3c6c6a);}},_0x1e0aa3=_0x45624b['foffH'](getRangerDir),_0x1d690c=findEnvInRoot(_0x51f740,_0x1e0aa3);if(_0x1d690c){if(_0x1ade8f['forWrite']&&_0x45624b[_0x25ce01(0x234)](isLegacyEnvPath,_0x1d690c))throw legacyWriteError(_0x51f740,_0x1d690c);return _0x1d690c;}const _0x1315c2=_0x45624b['fyQxH'](getRangerHomeDir);if(_0x45624b['YKGwa'](_0x1315c2,_0x1e0aa3)){const _0x459277=_0x45624b[_0x25ce01(0x236)](findEnvInRoot,_0x51f740,_0x1315c2);if(_0x459277){if(_0x1ade8f[_0x25ce01(0x1fb)]&&isLegacyEnvPath(_0x459277))throw legacyWriteError(_0x51f740,_0x459277);return _0x459277;}}const _0x1e65a4=_0x45624b['oPiFm'](join,_0x1315c2,'local',_0x51f740);if(_0x1ade8f[_0x25ce01(0x1fb)])throw _0x45624b[_0x25ce01(0x1fc)](legacyWriteError,_0x51f740,_0x1e65a4);return _0x1e65a4;}function isLegacyEnvPath(_0x48f691){const _0x122176=_0x36b9,_0x1429f0={'pmATJ':function(_0x42ddfd,_0x15b51f){return _0x42ddfd+_0x15b51f;}},_0x36bdc4=getRangerDir(),_0x4c86a0=getRangerHomeDir();for(const _0x222dcf of new Set([_0x36bdc4,_0x4c86a0])){const _0x20be35=_0x222dcf['endsWith']('/')?_0x222dcf:_0x1429f0[_0x122176(0x235)](_0x222dcf,'/');if(_0x48f691===_0x222dcf||_0x48f691['startsWith'](_0x20be35))return!![];}return![];}function legacyWriteError(_0x17b923,_0x5b3012){const _0x4ec022=_0x36b9,_0x1037be={'uRGQr':function(_0x1ae2fb,_0x8be7eb){return _0x1ae2fb+_0x8be7eb;},'gMFPO':function(_0x207f83,_0x146e85){return _0x207f83+_0x146e85;}};return new Error(_0x1037be[_0x4ec022(0x227)](_0x1037be['gMFPO'](_0x4ec022(0x1f5)+_0x17b923+'\x22\x20to\x20legacy\x20path\x20'+_0x5b3012+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x23a2cc,_0x583043){const _0x3b6546=_0x36b9,_0x3dc448={'xBFab':function(_0xa80904){return _0xa80904();},'dvFPw':_0x3b6546(0x200),'Xtqvk':_0x3b6546(0x1fa),'ktxxo':function(_0x576d17,_0x3f48a9,_0x297ce0){return _0x576d17(_0x3f48a9,_0x297ce0);},'GdZFi':function(_0x24af12,_0x148c4a){return _0x24af12(_0x148c4a);},'IBjia':function(_0x453d3b,_0x4d249d){return _0x453d3b===_0x4d249d;},'WrPJq':function(_0x2d8764,_0x341a4b){return _0x2d8764===_0x341a4b;},'opxIg':function(_0x15e480,_0x7ff871){return _0x15e480===_0x7ff871;}},_0x4bde6a=_0x583043?.[_0x3b6546(0x1e7)],_0x5ef95c=_0x4bde6a?[_0x4bde6a]:[_0x3dc448['xBFab'](getRangerDir),getRangerHomeDir()][_0x3b6546(0x202)]((_0x51c41f,_0x2ad4c5,_0x2f0b33)=>_0x2f0b33['indexOf'](_0x51c41f)===_0x2ad4c5),_0x296b32=_0x583043?.[_0x3b6546(0x1d5)]??['ci',_0x3dc448[_0x3b6546(0x225)],_0x3dc448['Xtqvk']];for(const _0x4c3983 of _0x5ef95c){const _0x5b559d=_0x3dc448[_0x3b6546(0x1ff)](join,_0x4c3983,'local'),_0x51207a=join(_0x4c3983,'ci'),_0x264751=[{'location':'ci','path':join(_0x4c3983,'ci',_0x23a2cc)},{'location':_0x3dc448[_0x3b6546(0x225)],'path':join(_0x4c3983,'local',_0x23a2cc)},{'location':_0x3dc448['Xtqvk'],'path':join(_0x4c3983,_0x23a2cc)}];for(const _0x21ca38 of _0x264751){if(_0x296b32[_0x3b6546(0x201)](_0x21ca38['location'])&&_0x3dc448[_0x3b6546(0x22b)](existsSync,_0x21ca38['path'])){if(_0x3dc448['IBjia'](_0x21ca38['location'],_0x3b6546(0x1fa))&&(_0x3dc448[_0x3b6546(0x240)](_0x21ca38['path'],_0x5b559d)||_0x3dc448[_0x3b6546(0x1f8)](_0x21ca38[_0x3b6546(0x1da)],_0x51207a))&&!hasLegacyProfileFiles(_0x21ca38['path']))continue;return{'path':_0x21ca38[_0x3b6546(0x1da)],'location':_0x21ca38['location']};}}}return null;}function hasLegacyProfileFiles(_0x1cd172){const _0x3212a3=_0x36b9,_0x58ed6c={'YTRqt':function(_0x473c27,_0x4f6670,_0x5abf74){return _0x473c27(_0x4f6670,_0x5abf74);},'jjWcQ':function(_0x2b08bb,_0xc164ad){return _0x2b08bb(_0xc164ad);},'mWtYD':function(_0x523869,_0x561e78){return _0x523869(_0x561e78);},'rXSZz':'auth.json.enc'};return existsSync(_0x58ed6c['YTRqt'](join,_0x1cd172,_0x3212a3(0x23b)))||_0x58ed6c['jjWcQ'](existsSync,join(_0x1cd172,_0x3212a3(0x1dc)))||_0x58ed6c['mWtYD'](existsSync,_0x58ed6c[_0x3212a3(0x20a)](join,_0x1cd172,_0x58ed6c[_0x3212a3(0x23a)]));}function _0x36b9(_0x3ee253,_0x4c1e22){_0x3ee253=_0x3ee253-0x1d5;const _0x440562=_0x4405();let _0x36b9f0=_0x440562[_0x3ee253];return _0x36b9f0;}export function isEnvCi(_0xee9fc1){const _0x224f4b=_0x36b9,_0x4a3ea6={'XpPOV':function(_0x2ba48e,_0x5e9d43){return _0x2ba48e(_0x5e9d43);},'xPIVP':function(_0x13f22e){return _0x13f22e();},'lzquH':function(_0x53c697,_0x4568a8,_0x250516,_0x151f49){return _0x53c697(_0x4568a8,_0x250516,_0x151f49);}};if(_0x4a3ea6[_0x224f4b(0x217)](existsSync,join(getRangerDir(),'ci',_0xee9fc1)))return!![];const _0x3677a0=_0x4a3ea6['xPIVP'](getRangerHomeDir);if(_0x3677a0!==getRangerDir()&&_0x4a3ea6[_0x224f4b(0x217)](existsSync,_0x4a3ea6['lzquH'](join,_0x3677a0,'ci',_0xee9fc1)))return!![];return![];}export async function cleanupTempFiles(_0x1e5aa7){const _0x2b87ee=_0x36b9,_0xa8cfb4={'bAXkq':_0x2b87ee(0x224)},_0x2982b8=[_0x1e5aa7[_0x2b87ee(0x221)],_0x1e5aa7[_0x2b87ee(0x22f)]]['filter'](Boolean);await Promise['all'](_0x2982b8['map'](_0x4906c0=>unlink(_0x4906c0)[_0x2b87ee(0x20b)](_0x2c1b88=>{const _0x43e0e9=_0x2b87ee;_0x2c1b88[_0x43e0e9(0x21c)]!==_0xa8cfb4['bAXkq']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x4906c0+':',_0x2c1b88[_0x43e0e9(0x242)]);})));}export function getSettingsPath(_0x4a22b3){const _0x3409f0=_0x36b9,_0xfd3184={'wbzII':function(_0x5d25e2,_0x12fccd,_0x443bb4){return _0x5d25e2(_0x12fccd,_0x443bb4);},'oFPXv':'settings.json'};return _0xfd3184['wbzII'](join,getEnvDir(_0x4a22b3),_0xfd3184[_0x3409f0(0x203)]);}function _0x4405(){const _0x41d39f=['XocZZ','pmATJ','IakSC','zYJiy','auth.json.enc','5792fJJqED','rXSZz','settings.json','aeYIP','userAgent','5590320AtmdNQ','FHSFs','WrPJq','QNeON','message','length','locations','kQbbG','browser','repeat','pdf','path','XigNi','auth.json','26945650YjEevt','3418028OJFzmh','uBoPY','\x20is\x20not\x20set','entries','45303zpksgp','ERsZZ','contextOptions','RGPaE','vision','rangerDir','Environment\x20variable\x20','clipboard-read','xXcvO','--disable-setuid-sandbox','RigRh','cdpEndpoint','string','4nHgDoB','args','object','sessions','headless','sHkMP','Refusing\x20to\x20write\x20profile\x20\x22','now','2916321vYuDdS','opxIg','push','legacy','forWrite','AokMT','vZdkv','ranger-config','ktxxo','local','includes','filter','oFPXv','.json','eukZm','split','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','5vucPoM','stringify','YTRqt','catch','URGAv','lcWaH','MWvEG','XorEU','ChkCL','Ihejt','safeMode','PgVfG','ignoreHTTPSErrors','none','8813qglsKa','XpPOV','boolean','sIKuW','IDVng','storageStatePath','code','ZQrLY','12071799kNRYZk','core','playwright-cli','tempAuthPath','lxiwB','ngxdI','ENOENT','dvFPw','BXpog','uRGQr','QJIHr','join','chromium','GdZFi','SwRQX','header','--no-sandbox','configPath','extraHTTPHeaders','getuid','replace','pXFlM'];_0x4405=function(){return _0x41d39f;};return _0x4405();}export async function loadSettings(_0x317749){const _0x153a8f=_0x36b9,_0x3cad79={'yQafK':function(_0x47e0a0,_0x5662ee){return _0x47e0a0(_0x5662ee);},'RGPaE':function(_0x4a1abe,_0x27f9fe,_0x2126a5){return _0x4a1abe(_0x27f9fe,_0x2126a5);},'RigRh':'utf-8'},_0x499d00=_0x3cad79['yQafK'](getSettingsPath,_0x317749);if(!existsSync(_0x499d00))return{};try{const _0x5e92c9=await _0x3cad79[_0x153a8f(0x1e5)](readFile,_0x499d00,_0x3cad79[_0x153a8f(0x1ec)]);return JSON['parse'](_0x5e92c9);}catch{return{};}}export async function saveSettings(_0x52133c,_0x5cd4e1){const _0x503dfb=_0x36b9,_0x3dcf69={'PZPOH':function(_0x2ce6da,_0x40eff9){return _0x2ce6da(_0x40eff9);},'RCCao':function(_0x14c7e4,_0x3f4889,_0x43bd2b){return _0x14c7e4(_0x3f4889,_0x43bd2b);},'UQCSb':function(_0x218228,_0x491292,_0x1629d3){return _0x218228(_0x491292,_0x1629d3);}},_0x402f38=_0x3dcf69['PZPOH'](getSettingsPath,_0x52133c),_0x5e4aa0=dirname(_0x402f38);!existsSync(_0x5e4aa0)&&await _0x3dcf69['RCCao'](mkdir,_0x5e4aa0,{'recursive':!![]}),await _0x3dcf69['UQCSb'](writeFile,_0x402f38,JSON[_0x503dfb(0x209)](_0x5cd4e1,null,0x2));}export function resolveEnvVars(_0x26a3ba){const _0x3d1ca3=_0x36b9,_0x4dd225={'SwRQX':function(_0x241f3f,_0x4aaa76){return _0x241f3f===_0x4aaa76;},'XeiEu':_0x3d1ca3(0x1ee),'sHkMP':function(_0x26ef13,_0x18240b){return _0x26ef13===_0x18240b;},'DhjKK':'object'};if(typeof _0x26a3ba===_0x4dd225['XeiEu'])return _0x26a3ba[_0x3d1ca3(0x232)](/\$\{(\w+)\}/g,(_0x261042,_0x210bae)=>{const _0xb913b1=_0x3d1ca3,_0x51dfe5=process['env'][_0x210bae];if(_0x4dd225[_0xb913b1(0x22c)](_0x51dfe5,undefined))throw new Error(_0xb913b1(0x1e8)+_0x210bae+_0xb913b1(0x1e0));return _0x51dfe5;});if(Array['isArray'](_0x26a3ba))return _0x26a3ba['map'](resolveEnvVars);if(_0x26a3ba&&_0x4dd225[_0x3d1ca3(0x1f4)](typeof _0x26a3ba,_0x4dd225['DhjKK']))return Object['fromEntries'](Object[_0x3d1ca3(0x1e1)](_0x26a3ba)['map'](([_0x768e4d,_0x47ed3d])=>[_0x768e4d,resolveEnvVars(_0x47ed3d)]));return _0x26a3ba;}const isRecord=_0x125127=>typeof _0x125127==='object'&&_0x125127!==null&&!Array['isArray'](_0x125127),asRecord=_0x5cdabe=>isRecord(_0x5cdabe)?_0x5cdabe:undefined,mergeHeaders=(_0xad4929,_0x5a9caa)=>{const _0x6e303c=_0x36b9,_0x2770aa={'QNeON':function(_0x3a463e,_0x315be9){return _0x3a463e??_0x315be9;}},_0x40bf7f={..._0xad4929??{},..._0x2770aa[_0x6e303c(0x241)](_0x5a9caa,{})};return Object['keys'](_0x40bf7f)[_0x6e303c(0x243)]?_0x40bf7f:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x4c841e,_0xae0190={}){const _0x523361=_0x36b9,_0x13e870={'Ihejt':function(_0x14bd3b,_0x4d77c3){return _0x14bd3b(_0x4d77c3);},'FHSFs':function(_0x5dbf42,_0x3bf26a){return _0x5dbf42===_0x3bf26a;},'DKbSP':_0x523361(0x218),'TRqAv':function(_0x539539,_0x43083c){return _0x539539===_0x43083c;},'PajyM':function(_0x39423a,_0x1bc42b){return _0x39423a(_0x1bc42b);}},_0x5d51cf=asRecord(_0x4c841e[_0x523361(0x1d7)]),_0x177948={..._0x13e870['Ihejt'](asRecord,_0x5d51cf?.['launchOptions'])??{}};_0x13e870[_0x523361(0x23f)](typeof _0xae0190['headless'],_0x13e870['DKbSP'])&&(_0x177948['headless']=_0xae0190['headless']);if(_0x4c841e[_0x523361(0x212)]){const _0xab1e3=_0x177948[_0x523361(0x1f0)]??[],_0x3051a6=SAFE_MODE_ARGS['filter'](_0x45b78c=>!_0xab1e3[_0x523361(0x201)](_0x45b78c));_0x177948['args']=[..._0xab1e3,..._0x3051a6];}if(_0x4c841e['allowInsecureLocalhost']){const _0x26ce40=_0x177948[_0x523361(0x1f0)]??[],_0x13fcb4=ALLOW_LOCALHOST_ARGS['filter'](_0x27b879=>!_0x26ce40[_0x523361(0x201)](_0x27b879));_0x177948[_0x523361(0x1f0)]=[..._0x26ce40,..._0x13fcb4];}const _0x4d8c6a={..._0x13e870[_0x523361(0x211)](asRecord,_0x5d51cf?.[_0x523361(0x1e4)])??{}};_0x4d8c6a[_0x523361(0x214)]=!![];_0x13e870['TRqAv'](typeof _0x4c841e[_0x523361(0x23d)],_0x523361(0x1ee))&&(_0x4d8c6a['userAgent']=_0x4c841e[_0x523361(0x23d)]);const _0x2cf773=mergeHeaders(_0x13e870['PajyM'](asRecord,_0x4d8c6a[_0x523361(0x230)]),asRecord(_0x4c841e['headers']));return _0x2cf773?_0x4d8c6a[_0x523361(0x230)]=_0x2cf773:delete _0x4d8c6a['extraHTTPHeaders'],_0xae0190[_0x523361(0x21b)]&&(_0x4d8c6a['storageState']=_0xae0190['storageStatePath']),{'launchOptions':_0x177948,'contextOptions':_0x4d8c6a};}async function resolveLocalAuthPath(_0xa0008f){const _0x17c4c3=_0x36b9,_0x331861={'XigNi':_0x17c4c3(0x238),'zYJiy':function(_0x5ece7d,_0x19a870,_0x18d711){return _0x5ece7d(_0x19a870,_0x18d711);},'AMnFO':function(_0x5612f5){return _0x5612f5();},'WnQjQ':_0x17c4c3(0x207),'PgVfG':function(_0x3acfdc,_0x293949){return _0x3acfdc(_0x293949);},'BEQsn':function(_0x3ead67,_0x47c997,_0x539b15){return _0x3ead67(_0x47c997,_0x539b15);}},_0x42006e=join(_0xa0008f,_0x331861[_0x17c4c3(0x1db)]),_0x3b0a4a=_0x331861[_0x17c4c3(0x237)](join,_0xa0008f,_0x17c4c3(0x1dc));if(existsSync(_0x42006e))try{const _0x3e26f6=await _0x331861['AMnFO'](getToken);if(!_0x3e26f6)throw new Error(_0x331861['WnQjQ']);const _0x14fdca=await _0x331861[_0x17c4c3(0x213)](readFile,_0x42006e),_0x39badf=_0x331861[_0x17c4c3(0x237)](decrypt,_0x14fdca,_0x3e26f6),_0x1014b3=_0x331861['BEQsn'](join,tmpdir(),'ranger-auth-'+Date[_0x17c4c3(0x1f6)]()+_0x17c4c3(0x204));return await _0x331861['zYJiy'](writeFile,_0x1014b3,_0x39badf),{'storageStatePath':_0x1014b3,'tempAuthPath':_0x1014b3};}catch(_0x4ec3bb){const _0x579396=_0x4ec3bb instanceof Error?_0x4ec3bb[_0x17c4c3(0x242)]:String(_0x4ec3bb);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x579396);}if(existsSync(_0x3b0a4a))return{'storageStatePath':_0x3b0a4a};return{};}export async function buildPlaywrightConfig(_0x22f433,_0x3a4186,_0x11f645,_0x6a471d,_0xc74ba0){const _0x3dfcd1=_0x36b9,_0x19943f={'ChkCL':function(_0xf795ba,_0x5e07d7,_0x29c031,_0x4e5954,_0x8e9cd3,_0x19371b,_0x551046){return _0xf795ba(_0x5e07d7,_0x29c031,_0x4e5954,_0x8e9cd3,_0x19371b,_0x551046);},'roVBA':'stagehand','lcWaH':function(_0x22b1a4,_0x1f3e08){return _0x22b1a4(_0x1f3e08);},'eukZm':function(_0x963c86,_0x1001e9){return _0x963c86(_0x1001e9);}};if(_0xc74ba0)return _0x19943f[_0x3dfcd1(0x210)](buildPlaywrightConfigCore,_0x22f433,_0xc74ba0,_0x3a4186,_0x11f645,_0x6a471d,_0x19943f['roVBA']);const {storageStatePath:_0x3338a2,tempAuthPath:_0x442819}=await _0x19943f[_0x3dfcd1(0x20d)](resolveLocalAuthPath,_0x19943f[_0x3dfcd1(0x20d)](getEnvDir,_0x3a4186));try{const _0x1c25a8=await buildPlaywrightConfigCore(_0x22f433,_0x3338a2,_0x3a4186,_0x11f645,_0x6a471d,'stagehand');return{..._0x1c25a8,'tempAuthPath':_0x442819};}catch(_0x4e938f){_0x442819&&await _0x19943f[_0x3dfcd1(0x205)](unlink,_0x442819)[_0x3dfcd1(0x20b)](()=>{});throw _0x4e938f;}}export async function buildPlaywrightConfigCore(_0x44a9c0,_0x529d45,_0x5638ce,_0x1ec979,_0x172f2f,_0xda1d55='stagehand'){const _0x5b1b50=_0x36b9,_0x3e2288={'hKsNU':_0x5b1b50(0x1eb),'JroTl':_0x5b1b50(0x1e9),'jmRdK':function(_0x3e8443){return _0x3e8443();},'SjBLZ':function(_0x4d8344,_0x4bba0f,_0x3ad5e8,_0x281027){return _0x4d8344(_0x4bba0f,_0x3ad5e8,_0x281027);},'xXcvO':function(_0x375b43){return _0x375b43();},'IlnVr':function(_0x52f412,_0x2179a6){return _0x52f412(_0x2179a6);},'ERsZZ':function(_0x24147d,_0x16cd55){return _0x24147d===_0x16cd55;},'kQbbG':'playwright-cli','GCznQ':_0x5b1b50(0x215),'Usxpd':'install','MPyyY':_0x5b1b50(0x1d9),'nGtTa':_0x5b1b50(0x1e6),'XrMnr':'allow','sIKuW':function(_0x48863f,_0x55abc9){return _0x48863f===_0x55abc9;},'fykiX':function(_0x15b77e,_0x47a7fc,_0x28ed33){return _0x15b77e(_0x47a7fc,_0x28ed33);},'WaYyt':function(_0x129359,_0x40cf4b,_0x42954b){return _0x129359(_0x40cf4b,_0x42954b);}},_0x5c3c76=_0x1ec979||_0x3e2288['jmRdK'](randomUUID),_0x13074c=_0x3e2288['SjBLZ'](join,_0x3e2288[_0x5b1b50(0x1ea)](getRangerDir),_0x5b1b50(0x1f2),_0x5c3c76),_0xa541fc=_0x3e2288['IlnVr'](Boolean,_0x44a9c0[_0x5b1b50(0x1ed)]),_0x2aa6de=_0xa541fc?{'browserName':_0x5b1b50(0x22a),'cdpEndpoint':_0x44a9c0['cdpEndpoint']}:((()=>{const _0x15e459=_0x5b1b50,{launchOptions:_0x1e7751,contextOptions:_0x10249e}=buildBrowserOptionsFromSettings(_0x44a9c0,{'headless':_0x172f2f?![]:_0x44a9c0[_0x15e459(0x1f3)]??!![],'storageStatePath':_0x529d45});if(process[_0x15e459(0x231)]?.()===0x0){const _0x1a0816=[_0x15e459(0x22e),_0x3e2288['hKsNU']],_0x548453=_0x1e7751[_0x15e459(0x1f0)]??[],_0x25361a=_0x1a0816[_0x15e459(0x202)](_0x1ba3de=>!_0x548453['includes'](_0x1ba3de));_0x1e7751[_0x15e459(0x1f0)]=[..._0x548453,..._0x25361a];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1e7751,'contextOptions':{..._0x10249e,'permissions':[_0x3e2288['JroTl'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x22d2c3=_0x3e2288[_0x5b1b50(0x1e3)](_0xda1d55,_0x3e2288['kQbbG'])?{'browser':_0x2aa6de,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x13074c,'outputMode':'file','codegen':_0x3e2288['GCznQ']}:{'name':_0x5638ce,'browser':_0x2aa6de,'capabilities':[_0x5b1b50(0x21f),'tabs',_0x3e2288['Usxpd'],_0x3e2288['MPyyY'],_0x3e2288['nGtTa']],'imageResponses':_0x3e2288['XrMnr'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x13074c};if(!_0xa541fc){const _0x45ac7f=_0x22d2c3[_0x5b1b50(0x1d7)],_0x247bf1=_0x45ac7f['contextOptions'];if(_0x247bf1[_0x5b1b50(0x23d)]===undefined)delete _0x247bf1[_0x5b1b50(0x23d)];if(_0x3e2288[_0x5b1b50(0x219)](_0x247bf1['storageState'],undefined))delete _0x247bf1['storageState'];}const _0x412a45=join(tmpdir(),_0x5b1b50(0x1fe));!existsSync(_0x412a45)&&await _0x3e2288['fykiX'](mkdir,_0x412a45,{'recursive':!![]});const _0x2c9d12=_0xda1d55===_0x3e2288[_0x5b1b50(0x1d6)]?'-cli':'',_0x2e3e7c=join(_0x412a45,_0x5638ce+'-'+Date[_0x5b1b50(0x1f6)]()+_0x2c9d12+'.json');return await _0x3e2288['WaYyt'](writeFile,_0x2e3e7c,JSON[_0x5b1b50(0x209)](_0x22d2c3,null,0x2)),{'configPath':_0x2e3e7c};}export async function buildPlaywrightCliConfig(_0x41b1d9,_0xeb056,_0x4847cd,_0x49e1ea,_0x45cf1d){const _0x35cd22=_0x36b9,_0xcf47a3={'FAGoc':'playwright-cli','BXpog':function(_0x142fa6,_0x4bb683){return _0x142fa6(_0x4bb683);}};if(_0x45cf1d)return buildPlaywrightConfigCore(_0x41b1d9,_0x45cf1d,_0xeb056,_0x4847cd,_0x49e1ea,_0xcf47a3['FAGoc']);const {storageStatePath:_0x25fdfe,tempAuthPath:_0x5136aa}=await resolveLocalAuthPath(_0xcf47a3[_0x35cd22(0x226)](getEnvDir,_0xeb056));try{const _0x47b7f8=await buildPlaywrightConfigCore(_0x41b1d9,_0x25fdfe,_0xeb056,_0x4847cd,_0x49e1ea,_0x35cd22(0x220));return{..._0x47b7f8,'tempAuthPath':_0x5136aa};}catch(_0x44b556){_0x5136aa&&await unlink(_0x5136aa)['catch'](()=>{});throw _0x44b556;}}export function getNestedValue(_0x145dae,_0x2fe346){const _0x4e745c=parseKeyPath(_0x2fe346);let _0x1760d3=_0x145dae;for(const _0x449dd3 of _0x4e745c){if(_0x1760d3===null||_0x1760d3===undefined||typeof _0x1760d3!=='object')return undefined;_0x1760d3=_0x1760d3[_0x449dd3];}return _0x1760d3;}export function setNestedValue(_0xd03491,_0x9afb2f,_0x2a5b31){const _0x2c425f=_0x36b9,_0xa64b9={'aeYIP':function(_0x3811af,_0x3b983d){return _0x3811af<_0x3b983d;},'XorEU':function(_0x3d883f,_0x48b64d){return _0x3d883f-_0x48b64d;},'vTCMS':function(_0x38b241,_0x1922c4){return _0x38b241 in _0x1922c4;},'QJIHr':function(_0x5428e1,_0x552d16){return _0x5428e1!==_0x552d16;},'ZQrLY':function(_0x2b17db,_0x56b95f){return _0x2b17db-_0x56b95f;}},_0x215dcf=parseKeyPath(_0x9afb2f);let _0xdfdd49=_0xd03491;for(let _0x4bd91e=0x0;_0xa64b9[_0x2c425f(0x23c)](_0x4bd91e,_0xa64b9[_0x2c425f(0x20f)](_0x215dcf[_0x2c425f(0x243)],0x1));_0x4bd91e++){const _0x3835ea=_0x215dcf[_0x4bd91e];(!_0xa64b9['vTCMS'](_0x3835ea,_0xdfdd49)||_0xa64b9[_0x2c425f(0x228)](typeof _0xdfdd49[_0x3835ea],_0x2c425f(0x1f1)))&&(_0xdfdd49[_0x3835ea]={}),_0xdfdd49=_0xdfdd49[_0x3835ea];}_0xdfdd49[_0x215dcf[_0xa64b9[_0x2c425f(0x21d)](_0x215dcf[_0x2c425f(0x243)],0x1)]]=_0x2a5b31;}export function deleteNestedValue(_0xd5dc36,_0x337460){const _0x180370=_0x36b9,_0x4f830a={'URGAv':function(_0x42ae2a,_0x22260d){return _0x42ae2a<_0x22260d;},'StdiR':function(_0x1518df,_0x59fe9f){return _0x1518df===_0x59fe9f;},'pXFlM':function(_0x2ee39c,_0x5c4944){return _0x2ee39c!==_0x5c4944;},'MWvEG':function(_0x5eaab0,_0xd580c5){return _0x5eaab0-_0xd580c5;},'ugHbA':function(_0x589c3d,_0x3eb46f){return _0x589c3d in _0x3eb46f;}},_0x484681=parseKeyPath(_0x337460);let _0x7291dd=_0xd5dc36;for(let _0x5f4655=0x0;_0x4f830a[_0x180370(0x20c)](_0x5f4655,_0x484681['length']-0x1);_0x5f4655++){if(_0x7291dd===null||_0x7291dd===undefined||typeof _0x7291dd!==_0x180370(0x1f1))return![];_0x7291dd=_0x7291dd[_0x484681[_0x5f4655]];}if(_0x4f830a['StdiR'](_0x7291dd,null)||_0x7291dd===undefined||_0x4f830a[_0x180370(0x233)](typeof _0x7291dd,'object'))return![];const _0xae035d=_0x484681[_0x4f830a[_0x180370(0x20e)](_0x484681['length'],0x1)];if(_0x4f830a['ugHbA'](_0xae035d,_0x7291dd))return delete _0x7291dd[_0xae035d],!![];return![];}function parseKeyPath(_0x51c0a3){const _0x5e8dc2=_0x36b9,_0x272692={'IDVng':_0x5e8dc2(0x22d),'ngxdI':'headers','gDLaG':function(_0x38161c,_0x52c248){return _0x38161c===_0x52c248;},'OUkdN':'setupHeaders'},_0x8a273d=_0x51c0a3[_0x5e8dc2(0x206)]('.');return _0x8a273d[0x0]===_0x272692[_0x5e8dc2(0x21a)]&&(_0x8a273d[0x0]=_0x272692[_0x5e8dc2(0x223)]),_0x272692['gDLaG'](_0x8a273d[0x0],'setupHeader')&&(_0x8a273d[0x0]=_0x272692['OUkdN']),_0x8a273d;}export function formatSettings(_0x36a993,_0x484f7e=0x0){const _0x27a254=_0x36b9,_0x534487={'vZdkv':'object'},_0x42f924=[],_0xd6b4d2='\x20\x20'[_0x27a254(0x1d8)](_0x484f7e);for(const [_0xa9d1,_0x27f70f]of Object[_0x27a254(0x1e1)](_0x36a993)){if(_0x27f70f===undefined)continue;if(typeof _0x27f70f===_0x534487[_0x27a254(0x1fd)]&&_0x27f70f!==null){_0x42f924[_0x27a254(0x1f9)](''+_0xd6b4d2+_0xa9d1+':');for(const [_0x19936d,_0x2656b4]of Object['entries'](_0x27f70f)){_0x42f924[_0x27a254(0x1f9)](_0xd6b4d2+'\x20\x20'+_0x19936d+':\x20'+_0x2656b4);}}else _0x42f924[_0x27a254(0x1f9)](''+_0xd6b4d2+_0xa9d1+':\x20'+_0x27f70f);}return _0x42f924[_0x27a254(0x229)]('\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');}
|