@ranger-testing/ranger-cli 2.5.4-alpha.a70fc60-4 → 2.5.4-alpha.b2ba935-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -14
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -0
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +35 -5
- package/build/skills/ranger/create.md +19 -0
- package/build/skills/ranger/verify.md +46 -7
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x566a1f,_0xc68e1f){const _0x3afda0=_0x2d3c,_0x729c98=_0x566a1f();while(!![]){try{const _0x502e8f=parseInt(_0x3afda0(0x140))/0x1+parseInt(_0x3afda0(0x12a))/0x2*(-parseInt(_0x3afda0(0x126))/0x3)+parseInt(_0x3afda0(0x14a))/0x4+-parseInt(_0x3afda0(0x127))/0x5+parseInt(_0x3afda0(0x137))/0x6+parseInt(_0x3afda0(0x12b))/0x7+-parseInt(_0x3afda0(0x13f))/0x8;if(_0x502e8f===_0xc68e1f)break;else _0x729c98['push'](_0x729c98['shift']());}catch(_0x1c9c8f){_0x729c98['push'](_0x729c98['shift']());}}}(_0xba5c,0x6f881));function _0x2d3c(_0x2b0922,_0xf1c654){_0x2b0922=_0x2b0922-0x123;const _0xba5cf0=_0xba5c();let _0x2d3c70=_0xba5cf0[_0x2b0922];return _0x2d3c70;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function _0xba5c(){const _0x2ab4c6=['\x0astdout:\x20','null','npx','exited\x20with\x20code=','1613608iZHsJq','308047DdUBwk','REPMy','...','IBhmh','EoHUi','stdout','script','jeLKt','sha256','toString','851752PGhaMT','awXPs','env','Pkutk','configPath','stderr','rg-','timeoutMs','update','values','trim','wrkeM','sSVIu','arSCO','error','string','783iJhmaQ','4012145otNGen','join','SIGKILL','398GMqzFK','4730796HApvol','KaRyu','command','\x20signal=','IiJmt','HiPUn','gUKZh','PBOmz','FAoRX','match','digest','ignore','1896534yRbrIe','\x27\x5c\x27\x27','bash_command','find'];_0xba5c=function(){return _0x2ab4c6;};return _0xba5c();}function toPlaywrightCliSessionKey(_0x5a3fe1){const _0x2eb20f=_0x2d3c,_0x6c28c3={'REPMy':_0x2eb20f(0x148)},_0x4708ea=createHash(_0x6c28c3[_0x2eb20f(0x141)])[_0x2eb20f(0x152)](_0x5a3fe1)[_0x2eb20f(0x135)]('hex')['slice'](0x0,0xc);return _0x2eb20f(0x150)+_0x4708ea;}function shellQuote(_0x27a005){const _0x370a01=_0x2d3c;return'\x27'+_0x27a005['replace'](/'/g,_0x370a01(0x138))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x456d6c){const _0x4f022d={'WwwiB':function(_0xef8f57,_0x1d0771){return _0xef8f57(_0x1d0771);}};return SAFE_SHELL_TOKEN['test'](_0x456d6c)?_0x456d6c:_0x4f022d['WwwiB'](shellQuote,_0x456d6c);}export function buildPlaywrightCliInvocation(_0x163cba,_0x373a41,_0x52643f){const _0x4008fe=_0x2d3c,_0x2ecc6b={'jeLKt':function(_0x156137,_0x2e8db3){return _0x156137(_0x2e8db3);},'bnuGO':'unknown','Pkutk':'--config','wrkeM':'npx','KaRyu':function(_0x209c2f,_0x38b8af){return _0x209c2f(_0x38b8af);}},_0xf99541=_0x2ecc6b['jeLKt'](toPlaywrightCliSessionKey,_0x163cba),[_0x312220=_0x2ecc6b['bnuGO']]=_0x52643f,_0x27d49f=[PLAYWRIGHT_CLI_BINARY,'-s='+_0xf99541,_0x2ecc6b[_0x4008fe(0x14d)],_0x373a41,..._0x52643f];return{'command':'npx','args':_0x27d49f,'shellCommand':[_0x2ecc6b[_0x4008fe(0x155)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x2ecc6b[_0x4008fe(0x147)](quoteShellArg,_0xf99541),_0x2ecc6b[_0x4008fe(0x14d)],_0x2ecc6b[_0x4008fe(0x12c)](quoteShellArg,_0x373a41),..._0x52643f['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x312220};}export function buildPlaywrightCliCommandPrefix(_0x3ed97f,_0x308e31){const _0x5bc13e=_0x2d3c,_0x356b8e={'sUMaw':function(_0x49709b,_0x45d989){return _0x49709b(_0x45d989);},'FAoRX':_0x5bc13e(0x13d)},_0x40e390=_0x356b8e['sUMaw'](toPlaywrightCliSessionKey,_0x3ed97f);return[_0x356b8e[_0x5bc13e(0x133)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x40e390),'--config',_0x356b8e['sUMaw'](quoteShellArg,_0x308e31)][_0x5bc13e(0x128)]('\x20');}function truncateOutput(_0x21dee1,_0x34160c=0x7d0){const _0x29e2ee=_0x2d3c,_0x29aaa3={'WLtXu':function(_0x4dba97,_0x2d7989){return _0x4dba97>_0x2d7989;},'sSVIu':function(_0x531e4a,_0x399d16){return _0x531e4a+_0x399d16;},'WvRtK':_0x29e2ee(0x142)};return _0x29aaa3['WLtXu'](_0x21dee1['length'],_0x34160c)?_0x29aaa3[_0x29e2ee(0x156)](_0x21dee1['slice'](0x0,_0x34160c),_0x29aaa3['WvRtK']):_0x21dee1;}export async function runPlaywrightCliCommand(_0x23b961){const _0x19f543=_0x2d3c,_0x45bd8c={'gUKZh':function(_0x49d94b,_0x5a8191){return _0x49d94b===_0x5a8191;},'nqNaD':'null','DCPAy':function(_0x16fc64,_0x364b5e){return _0x16fc64(_0x364b5e);},'IBhmh':'SIGTERM','xkslJ':_0x19f543(0x136),'IiJmt':'pipe','PBOmz':'data','YnubE':'close','awXPs':function(_0x3f8e04,_0x29d29e,_0x2f2bff,_0xb383ba){return _0x3f8e04(_0x29d29e,_0x2f2bff,_0xb383ba);}},_0x47fbec=_0x45bd8c[_0x19f543(0x14b)](buildPlaywrightCliInvocation,_0x23b961['sessionId'],_0x23b961[_0x19f543(0x14e)],_0x23b961['commandArgs']);return new Promise((_0x941a18,_0x3010ad)=>{const _0x3f9499=_0x19f543,_0x3be908={'jYVEI':_0x45bd8c[_0x3f9499(0x143)],'uJcHc':function(_0x1c3449,_0xe13c18){return _0x1c3449(_0xe13c18);}},_0x2d1d8f=spawn(_0x47fbec['command'],_0x47fbec['args'],{'cwd':_0x23b961['cwd'],'env':_0x23b961[_0x3f9499(0x14c)],'stdio':[_0x45bd8c['xkslJ'],_0x45bd8c[_0x3f9499(0x12f)],'pipe']});let _0x3bfa06='',_0x235f65='',_0x4e05dd=![];const _0x4f027b=_0x23b961['timeoutMs']&&_0x23b961['timeoutMs']>0x0?setTimeout(()=>{const _0x2dc727=_0x3f9499,_0x11fd3f={'vsZaJ':_0x2dc727(0x129)};_0x4e05dd=!![],_0x2d1d8f['kill'](_0x3be908['jYVEI']),setTimeout(()=>{try{_0x2d1d8f['kill'](_0x11fd3f['vsZaJ']);}catch{}},0x3e8);},_0x23b961[_0x3f9499(0x151)]):null;_0x2d1d8f[_0x3f9499(0x145)]?.['on'](_0x45bd8c[_0x3f9499(0x132)],_0x378d86=>{const _0x135202=_0x3f9499;_0x3bfa06+=_0x378d86[_0x135202(0x149)]();}),_0x2d1d8f[_0x3f9499(0x14f)]?.['on'](_0x45bd8c['PBOmz'],_0x456f19=>{_0x235f65+=_0x456f19['toString']();}),_0x2d1d8f['on'](_0x3f9499(0x124),_0x3256b9=>{if(_0x4f027b)_0x3be908['uJcHc'](clearTimeout,_0x4f027b);_0x3010ad(_0x3256b9);}),_0x2d1d8f['on'](_0x45bd8c['YnubE'],(_0x15b95f,_0x41f054)=>{const _0x56e23a=_0x3f9499;if(_0x4f027b)clearTimeout(_0x4f027b);if(_0x45bd8c[_0x56e23a(0x131)](_0x15b95f,0x0)){_0x941a18({'stdout':_0x3bfa06,'stderr':_0x235f65,'invocation':_0x47fbec});return;}const _0x236e40=_0x4e05dd?'timed\x20out\x20after\x20'+_0x23b961[_0x56e23a(0x151)]+'ms':_0x56e23a(0x13e)+(_0x15b95f??_0x56e23a(0x13c))+_0x56e23a(0x12e)+(_0x41f054??_0x45bd8c['nqNaD']);_0x3010ad(new Error('playwright-cli\x20'+_0x47fbec['subcommand']+'\x20'+_0x236e40+_0x56e23a(0x13b)+truncateOutput(_0x3bfa06)+'\x0astderr:\x20'+_0x45bd8c['DCPAy'](truncateOutput,_0x235f65)));});});}export function extractBashCommand(_0x445f3e){const _0x4a7cee=_0x2d3c,_0x1a6634={'arSCO':_0x4a7cee(0x12d),'HiPUn':_0x4a7cee(0x139),'EoHUi':_0x4a7cee(0x125),'cLApU':function(_0x4b3fc4,_0x377131){return _0x4b3fc4??_0x377131;}},_0x2aa90c=[_0x1a6634[_0x4a7cee(0x123)],'cmd',_0x4a7cee(0x146),_0x1a6634[_0x4a7cee(0x130)]];for(const _0x57fcf3 of _0x2aa90c){const _0x3561ab=_0x445f3e[_0x57fcf3];if(typeof _0x3561ab===_0x1a6634[_0x4a7cee(0x144)]&&_0x3561ab[_0x4a7cee(0x154)]())return _0x3561ab;}const _0x2af4f8=Object[_0x4a7cee(0x153)](_0x445f3e)[_0x4a7cee(0x13a)](_0x16c0ba=>typeof _0x16c0ba===_0x4a7cee(0x125)&&_0x16c0ba[_0x4a7cee(0x154)]()['length']>0x0);return _0x1a6634['cLApU'](_0x2af4f8,null);}export function parsePlaywrightCliCommand(_0x2ef0bd){const _0x23cf9d=_0x2d3c,_0x354162=_0x2ef0bd[_0x23cf9d(0x134)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x354162?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x45c6(){const _0x357dfa=['1401594nZiAYn','1798536pVgpVS','155317roTcMn','1885200jiHeBe','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','ranger\x20profile\x20add\x20local','6fbtKSn','407491NwtLaf','3vyKrga','3587695rMbbWu','10533321gqVgoW'];_0x45c6=function(){return _0x357dfa;};return _0x45c6();}const _0x3099b2=_0x47d2;(function(_0x43bf63,_0x4ee77d){const _0x10adf8=_0x47d2,_0x370a59=_0x43bf63();while(!![]){try{const _0x2a027d=-parseInt(_0x10adf8(0x197))/0x1+parseInt(_0x10adf8(0x195))/0x2*(parseInt(_0x10adf8(0x192))/0x3)+parseInt(_0x10adf8(0x196))/0x4+parseInt(_0x10adf8(0x193))/0x5*(parseInt(_0x10adf8(0x19b))/0x6)+parseInt(_0x10adf8(0x19c))/0x7+-parseInt(_0x10adf8(0x198))/0x8+-parseInt(_0x10adf8(0x194))/0x9;if(_0x2a027d===_0x4ee77d)break;else _0x370a59['push'](_0x370a59['shift']());}catch(_0x241d7b){_0x370a59['push'](_0x370a59['shift']());}}}(_0x45c6,0x5912f));const DEFAULT_PROFILE_COMMAND=_0x3099b2(0x19a);function _0x47d2(_0x47beec,_0x86c0dc){_0x47beec=_0x47beec-0x192;const _0x45c686=_0x45c6();let _0x47d2dc=_0x45c686[_0x47beec];return _0x47d2dc;}export function formatProfileRequiredMessage(_0x1e4725){const _0x114920=_0x3099b2,_0x4ddbf1={'rQEOb':function(_0xcbad01,_0x15e666){return _0xcbad01(_0x15e666);}},_0x1623d4=_0x1e4725?_0x4ddbf1['rQEOb'](_0x1e4725,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x114920(0x199)+_0x1623d4+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4e73(_0x27e5cd,_0x736e6c){_0x27e5cd=_0x27e5cd-0x12b;const _0xafdc08=_0xafdc();let _0x4e7367=_0xafdc08[_0x27e5cd];return _0x4e7367;}function _0xafdc(){const _0x10af2f=['IPgLk','12bQpggk','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','PreBp','23898gLKaeP','DLrIF','IQZUv','262170rRyHYd','LTCZM','85429dslywA','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','\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','<div\x20class=\x22ranger-banner__content\x22>','TsHtu','4EPTHFF','136IqkPRh','ILSdS','1770CXUdSU','1191487LKYssO','24TkOyiU','7929sFxXnX','<div\x20class=\x22ranger-banner__message\x22>','stringify','70044QTAdXt','650WDzQAP','59336ZLcEZR'];_0xafdc=function(){return _0x10af2f;};return _0xafdc();}(function(_0x4abdee,_0x5f4050){const _0x1cff12=_0x4e73,_0x1c5cbb=_0x4abdee();while(!![]){try{const _0x3e9375=-parseInt(_0x1cff12(0x13e))/0x1*(-parseInt(_0x1cff12(0x143))/0x2)+-parseInt(_0x1cff12(0x136))/0x3*(parseInt(_0x1cff12(0x134))/0x4)+-parseInt(_0x1cff12(0x13c))/0x5*(-parseInt(_0x1cff12(0x12e))/0x6)+-parseInt(_0x1cff12(0x139))/0x7*(-parseInt(_0x1cff12(0x144))/0x8)+-parseInt(_0x1cff12(0x12f))/0x9*(-parseInt(_0x1cff12(0x12c))/0xa)+-parseInt(_0x1cff12(0x12d))/0xb+-parseInt(_0x1cff12(0x132))/0xc*(parseInt(_0x1cff12(0x133))/0xd);if(_0x3e9375===_0x5f4050)break;else _0x1c5cbb['push'](_0x1c5cbb['shift']());}catch(_0x25b7f7){_0x1c5cbb['push'](_0x1c5cbb['shift']());}}}(_0xafdc,0x20f9a));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x31425b=_0x4e73,_0x409578={'FbyLh':function(_0x4d0179,_0x16f51a){return _0x4d0179+_0x16f51a;},'LTCZM':function(_0x2efc08,_0x5965ae){return _0x2efc08+_0x5965ae;},'uvenS':function(_0x32cbcb,_0x3de5c3){return _0x32cbcb+_0x3de5c3;},'PreBp':function(_0x1f90b0,_0x36097b){return _0x1f90b0+_0x36097b;},'DLrIF':_0x31425b(0x137),'IPgLk':_0x31425b(0x130),'ILSdS':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','UfGVb':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','TsHtu':'</div>','IQZUv':_0x31425b(0x13f)},_0x3e9822=_0x409578['FbyLh'](_0x409578['LTCZM'](_0x409578[_0x31425b(0x13d)](_0x409578['uvenS'](_0x409578[_0x31425b(0x138)](_0x31425b(0x141)+_0x409578[_0x31425b(0x13a)],_0x409578[_0x31425b(0x135)]),_0x409578[_0x31425b(0x12b)])+_0x409578['UfGVb'],_0x409578['TsHtu']),_0x409578[_0x31425b(0x142)]),_0x409578[_0x31425b(0x13b)]),_0x2337a6='\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 _0x31425b(0x140)+JSON['stringify'](_0x3e9822)+';\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[_0x31425b(0x131)](_0x2337a6)+';\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(_0x14570c){await _0x14570c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3f44e8,_0x2f5559){const _0x2cb41a=_0x4ecf,_0x205471=_0x3f44e8();while(!![]){try{const _0x92843f=parseInt(_0x2cb41a(0x1cc))/0x1*(parseInt(_0x2cb41a(0x1bd))/0x2)+parseInt(_0x2cb41a(0x1d3))/0x3+-parseInt(_0x2cb41a(0x1cd))/0x4+parseInt(_0x2cb41a(0x1da))/0x5*(parseInt(_0x2cb41a(0x1c2))/0x6)+-parseInt(_0x2cb41a(0x1c8))/0x7+parseInt(_0x2cb41a(0x1d5))/0x8*(-parseInt(_0x2cb41a(0x1c7))/0x9)+-parseInt(_0x2cb41a(0x1b9))/0xa*(-parseInt(_0x2cb41a(0x1d9))/0xb);if(_0x92843f===_0x2f5559)break;else _0x205471['push'](_0x205471['shift']());}catch(_0x1dd5ab){_0x205471['push'](_0x205471['shift']());}}}(_0x5ea6,0x2c8c1));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0xef26ac=_0x4ecf,_0x3ffa50={'IZQrj':function(_0xb1366,_0x50273f,_0xa6905e){return _0xb1366(_0x50273f,_0xa6905e);},'vQvGm':function(_0xd3db6b){return _0xd3db6b();}};return _0x3ffa50['IZQrj'](join,_0x3ffa50[_0xef26ac(0x1cb)](getRangerHomeDir),_0xef26ac(0x1bf));}function _0x4ecf(_0x19803f,_0x3d1a19){_0x19803f=_0x19803f-0x1b6;const _0x5ea617=_0x5ea6();let _0x4ecfc3=_0x5ea617[_0x19803f];return _0x4ecfc3;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x3d15d0=_0x4ecf,_0x479db5={'AHHWI':function(_0x34d0fc){return _0x34d0fc();},'CaDPe':function(_0x553c85,_0x313aab){return _0x553c85(_0x313aab);},'syidD':function(_0x8c7d0,_0xc1bc4d){return _0x8c7d0 instanceof _0xc1bc4d;},'LtsOe':function(_0x357a6f,_0x242685){return _0x357a6f instanceof _0x242685;},'Ewvtv':function(_0x2e8019){return _0x2e8019();},'InvKv':_0x3d15d0(0x1c5),'SsHMh':function(_0x367668,_0x4cc65){return _0x367668!==_0x4cc65;}},_0x2ecbed=_0x479db5['AHHWI'](getProjectsConfigPath);if(!_0x479db5[_0x3d15d0(0x1e1)](existsSync,_0x2ecbed))return emptyConfig();let _0x10358b;try{_0x10358b=readFileSync(_0x2ecbed,'utf-8');}catch(_0x4b61ac){const _0xba0100=_0x479db5['syidD'](_0x4b61ac,Error)?_0x4b61ac[_0x3d15d0(0x1b7)]:_0x479db5['CaDPe'](String,_0x4b61ac);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x2ecbed+':\x20'+_0xba0100+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x268fa7;try{_0x268fa7=JSON[_0x3d15d0(0x1d0)](_0x10358b);}catch(_0x350d16){const _0x27fc3d=_0x479db5[_0x3d15d0(0x1d4)](_0x350d16,Error)?_0x350d16[_0x3d15d0(0x1b7)]:_0x479db5['CaDPe'](String,_0x350d16);return console[_0x3d15d0(0x1c3)](_0x3d15d0(0x1dc)+_0x2ecbed+_0x3d15d0(0x1be)+_0x27fc3d+_0x3d15d0(0x1d8)),_0x479db5['Ewvtv'](emptyConfig);}if(!_0x268fa7||typeof _0x268fa7!==_0x479db5['InvKv']||Array[_0x3d15d0(0x1de)](_0x268fa7)||_0x479db5['SsHMh'](_0x268fa7[_0x3d15d0(0x1ca)],CURRENT_VERSION)||typeof _0x268fa7[_0x3d15d0(0x1ce)]!==_0x479db5['InvKv']||_0x268fa7['projects']===null||Array['isArray'](_0x268fa7['projects']))return console['warn'](_0x3d15d0(0x1dc)+_0x2ecbed+_0x3d15d0(0x1d6)),emptyConfig();return _0x268fa7;}function _0x5ea6(){const _0x19420c=['207837UzOOMt','997157DhgCUi','length','version','vQvGm','59725otfGEP','1397252erSXJq','projects','IGIfD','parse','pid','headers','298971hbrJHU','LtsOe','96BeESbb','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','pLRUR',').\x20Ignoring\x20local\x20profile\x20overrides.','22uklkYp','449210KxggIs','jbroM','[ranger]\x20Warning:\x20','profiles','isArray','zJFFb','dnLIa','CaDPe','entries','message','rnVVQ','2762770eeJwai','settings','now','YGVUs','4ckaWGE','\x20is\x20not\x20valid\x20JSON\x20(','projects.json','keyPath\x20is\x20required','.tmp','12gzAAfP','warn','keys','object','ilQqj'];_0x5ea6=function(){return _0x19420c;};return _0x5ea6();}export function writeProjectsConfig(_0x3dd359){const _0x337733=_0x4ecf,_0x22dc2b={'CHlXy':function(_0x440e2f){return _0x440e2f();},'rnVVQ':function(_0x431bd3,_0x52c751){return _0x431bd3(_0x52c751);},'IGIfD':function(_0x15dcf3,_0x544055,_0x1e96f0,_0x5d9154){return _0x15dcf3(_0x544055,_0x1e96f0,_0x5d9154);},'pLRUR':function(_0x141008,_0x36f8e1,_0x32d153){return _0x141008(_0x36f8e1,_0x32d153);}},_0x17937d=_0x22dc2b['CHlXy'](getProjectsConfigPath),_0x240946=_0x22dc2b[_0x337733(0x1b8)](dirname,_0x17937d);!_0x22dc2b['rnVVQ'](existsSync,_0x240946)&&mkdirSync(_0x240946,{'recursive':!![]});const _0x176b8a=_0x17937d+'.'+process[_0x337733(0x1d1)]+'.'+Date[_0x337733(0x1bb)]()+_0x337733(0x1c1),_0x3ed575=JSON['stringify'](_0x3dd359,null,0x2)+'\x0a';try{_0x22dc2b[_0x337733(0x1cf)](writeFileSync,_0x176b8a,_0x3ed575,{'encoding':'utf-8','mode':0x180}),_0x22dc2b[_0x337733(0x1d7)](renameSync,_0x176b8a,_0x17937d);}catch(_0x34896b){try{_0x22dc2b[_0x337733(0x1b8)](existsSync,_0x176b8a)&&_0x22dc2b[_0x337733(0x1b8)](unlinkSync,_0x176b8a);}catch{}throw _0x34896b;}}export function readProfileOverrides(_0x119a6d,_0x35d341){const _0x4341d2=_0x4ecf,_0x3b093f={'KIQcK':function(_0xfad4ca){return _0xfad4ca();}},_0x155ca5=_0x3b093f['KIQcK'](readProjectsConfig),_0x57f87a=_0x155ca5['projects'][_0x119a6d];if(!_0x57f87a||!_0x57f87a[_0x4341d2(0x1dd)])return null;const _0x11e0cc=_0x57f87a['profiles'][_0x35d341];if(!_0x11e0cc||!_0x11e0cc[_0x4341d2(0x1ba)])return null;return _0x11e0cc['settings']??null;}export function setProfileOverride(_0x5f32ba,_0x129888,_0x5b5d26,_0x5219f5){const _0x4a777b=_0x4ecf,_0x516974={'UHIqq':function(_0x8dd5ea,_0x395ad9,_0x506983,_0x38cd15){return _0x8dd5ea(_0x395ad9,_0x506983,_0x38cd15);}};if(!_0x5b5d26)throw new Error(_0x4a777b(0x1c0));const _0x18d5ea=readProjectsConfig(),_0x1f1152=_0x18d5ea['projects'][_0x5f32ba]??={},_0x4db561=_0x1f1152[_0x4a777b(0x1dd)]??={},_0x6a5916=_0x4db561[_0x129888]??={},_0x40d28f=_0x6a5916[_0x4a777b(0x1ba)]??={};_0x516974['UHIqq'](setByKeyPath,_0x40d28f,_0x5b5d26,_0x5219f5),writeProjectsConfig(_0x18d5ea);}export function unsetProfileOverride(_0x1f01ec,_0x8b4730,_0x3546a8){const _0x93ce24=_0x4ecf,_0x41e4d3={'ilQqj':'keyPath\x20is\x20required','idgqS':function(_0x52c70e){return _0x52c70e();},'ryONW':function(_0x32beff,_0x527d77,_0xfe7611){return _0x32beff(_0x527d77,_0xfe7611);}};if(!_0x3546a8)throw new Error(_0x41e4d3[_0x93ce24(0x1c6)]);const _0x5ace40=_0x41e4d3['idgqS'](readProjectsConfig),_0x203303=_0x5ace40[_0x93ce24(0x1ce)][_0x1f01ec];if(!_0x203303?.[_0x93ce24(0x1dd)])return![];const _0x59d691=_0x203303['profiles'][_0x8b4730];if(!_0x59d691?.[_0x93ce24(0x1ba)])return![];const _0x1622bd=_0x41e4d3['ryONW'](deleteByKeyPath,_0x59d691['settings'],_0x3546a8);if(!_0x1622bd)return![];return writeProjectsConfig(_0x5ace40),!![];}export function resetProfileOverrides(_0x23536b,_0x1bb388){const _0xaff19b=_0x4ecf,_0x4611fe={'dnLIa':function(_0x2f978e,_0x49c74a){return _0x2f978e===_0x49c74a;}},_0x461414=readProjectsConfig(),_0xb6da2f=_0x461414[_0xaff19b(0x1ce)][_0x23536b];if(!_0xb6da2f?.[_0xaff19b(0x1dd)])return;if(!(_0x1bb388 in _0xb6da2f['profiles']))return;delete _0xb6da2f['profiles'][_0x1bb388],_0x4611fe[_0xaff19b(0x1e0)](Object[_0xaff19b(0x1c4)](_0xb6da2f['profiles'])[_0xaff19b(0x1c9)],0x0)&&delete _0xb6da2f['profiles'],!_0xb6da2f['profiles']&&delete _0x461414[_0xaff19b(0x1ce)][_0x23536b],writeProjectsConfig(_0x461414);}export function mergeCloudProfileSettings(_0x1e40fc,_0x400ad3){const _0x48c022=_0x4ecf,_0x4f5c9a={'YGVUs':function(_0x13bbee,_0x45572b){return _0x13bbee??_0x45572b;},'zJFFb':function(_0x38b00d,_0x4cc9c0){return _0x38b00d===_0x4cc9c0;},'rWSRs':function(_0x43b294,_0x4d9b26){return _0x43b294===_0x4d9b26;},'sQXPB':_0x48c022(0x1d2),'jbroM':'setupHeaders'},_0x3a1c6c={..._0x4f5c9a[_0x48c022(0x1bc)](_0x1e40fc,{})};if(!_0x400ad3)return _0x3a1c6c;for(const [_0x522fd,_0x3bd24f]of Object[_0x48c022(0x1b6)](_0x400ad3)){if(_0x4f5c9a[_0x48c022(0x1df)](_0x3bd24f,undefined))continue;if(_0x3bd24f===null){delete _0x3a1c6c[_0x522fd];continue;}if(_0x4f5c9a['rWSRs'](_0x522fd,_0x4f5c9a['sQXPB'])||_0x4f5c9a['zJFFb'](_0x522fd,_0x4f5c9a[_0x48c022(0x1db)])){const _0x101062=asRecord(_0x3a1c6c[_0x522fd])??{},_0x585259=asRecord(_0x3bd24f);if(!_0x585259){_0x3a1c6c[_0x522fd]=_0x3bd24f;continue;}const _0x13c385={..._0x101062};for(const [_0x44518a,_0x4a93e0]of Object[_0x48c022(0x1b6)](_0x585259)){if(_0x4a93e0===null)delete _0x13c385[_0x44518a];else _0x4a93e0!==undefined&&(_0x13c385[_0x44518a]=_0x4a93e0);}_0x3a1c6c[_0x522fd]=_0x13c385;continue;}_0x3a1c6c[_0x522fd]=_0x3bd24f;}return _0x3a1c6c;}function asRecord(_0x34a87e){const _0x47a57b=_0x4ecf,_0x3b111a={'OcsVx':'object'};return _0x34a87e&&typeof _0x34a87e===_0x3b111a['OcsVx']&&!Array[_0x47a57b(0x1de)](_0x34a87e)?_0x34a87e:undefined;}function setByKeyPath(_0x3f3275,_0x57c713,_0x1993c4){const _0x54bb6f=_0x4ecf,_0x7f1304={'nWnyV':function(_0x4a9079,_0x288f90){return _0x4a9079-_0x288f90;},'jwfCu':function(_0x43f108,_0x54fc9e){return _0x43f108-_0x54fc9e;}},_0x13f82c=_0x57c713['split']('.');let _0x18c3fd=_0x3f3275;for(let _0x36f221=0x0;_0x36f221<_0x7f1304['nWnyV'](_0x13f82c[_0x54bb6f(0x1c9)],0x1);_0x36f221++){const _0x5e36e5=_0x13f82c[_0x36f221],_0x388de7=_0x18c3fd[_0x5e36e5];(!_0x388de7||typeof _0x388de7!==_0x54bb6f(0x1c5)||Array[_0x54bb6f(0x1de)](_0x388de7))&&(_0x18c3fd[_0x5e36e5]={}),_0x18c3fd=_0x18c3fd[_0x5e36e5];}_0x18c3fd[_0x13f82c[_0x7f1304['jwfCu'](_0x13f82c['length'],0x1)]]=_0x1993c4;}function deleteByKeyPath(_0x545e94,_0x516e40){const _0x70d9f6=_0x4ecf,_0x5023fc={'qhLfT':function(_0x1cbb64,_0x3aa314){return _0x1cbb64-_0x3aa314;},'IRWja':function(_0x5dff2a,_0x3a8534){return _0x5dff2a!==_0x3a8534;},'gqTiP':_0x70d9f6(0x1c5)},_0x88a1c7=_0x516e40['split']('.');let _0x232d48=_0x545e94;for(let _0x4a426e=0x0;_0x4a426e<_0x5023fc['qhLfT'](_0x88a1c7['length'],0x1);_0x4a426e++){const _0x4d205e=_0x88a1c7[_0x4a426e],_0x4cf01b=_0x232d48[_0x4d205e];if(!_0x4cf01b||_0x5023fc['IRWja'](typeof _0x4cf01b,_0x5023fc['gqTiP'])||Array[_0x70d9f6(0x1de)](_0x4cf01b))return![];_0x232d48=_0x4cf01b;}const _0x194a28=_0x88a1c7[_0x5023fc['qhLfT'](_0x88a1c7['length'],0x1)];if(!(_0x194a28 in _0x232d48))return![];return delete _0x232d48[_0x194a28],!![];}
|
|
1
|
+
(function(_0xbd9b5c,_0x434301){const _0x170e4d=_0x1698,_0x5d6ce1=_0xbd9b5c();while(!![]){try{const _0x574c23=parseInt(_0x170e4d(0x121))/0x1+parseInt(_0x170e4d(0x137))/0x2*(-parseInt(_0x170e4d(0x114))/0x3)+parseInt(_0x170e4d(0x110))/0x4*(parseInt(_0x170e4d(0x139))/0x5)+-parseInt(_0x170e4d(0x117))/0x6*(-parseInt(_0x170e4d(0x13e))/0x7)+parseInt(_0x170e4d(0x119))/0x8+-parseInt(_0x170e4d(0x116))/0x9+parseInt(_0x170e4d(0x136))/0xa*(-parseInt(_0x170e4d(0x123))/0xb);if(_0x574c23===_0x434301)break;else _0x5d6ce1['push'](_0x5d6ce1['shift']());}catch(_0x36c3f8){_0x5d6ce1['push'](_0x5d6ce1['shift']());}}}(_0x26f2,0xcdb35));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x108721=_0x1698,_0x852d9f={'TQjSg':function(_0x7719ce,_0x298c55,_0x5931f7){return _0x7719ce(_0x298c55,_0x5931f7);},'dEKOE':function(_0x140ea5){return _0x140ea5();},'OlHBg':'projects.json'};return _0x852d9f['TQjSg'](join,_0x852d9f[_0x108721(0x13f)](getRangerHomeDir),_0x852d9f[_0x108721(0x11d)]);}function _0x1698(_0x1a2f8d,_0x3d675f){_0x1a2f8d=_0x1a2f8d-0x10f;const _0x26f2ba=_0x26f2();let _0x1698eb=_0x26f2ba[_0x1a2f8d];return _0x1698eb;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x295711=_0x1698,_0x26c38b={'cGGOh':function(_0x1f180a,_0xd3a9c5){return _0x1f180a(_0xd3a9c5);},'ikwGQ':function(_0x487b32){return _0x487b32();},'lOLKD':function(_0x5994d6,_0x15e289,_0x25f5d0){return _0x5994d6(_0x15e289,_0x25f5d0);},'LMiNa':function(_0x13012f,_0x5ce935){return _0x13012f instanceof _0x5ce935;},'UJSEO':function(_0x30bde4,_0x1302be){return _0x30bde4(_0x1302be);},'mgDUV':function(_0x3a9892){return _0x3a9892();},'pdAvm':function(_0x186c00,_0x2b9cb0){return _0x186c00!==_0x2b9cb0;},'LrDpw':_0x295711(0x143),'SHyZZ':function(_0x30af71,_0x16de2a){return _0x30af71===_0x16de2a;}},_0x126316=getProjectsConfigPath();if(!_0x26c38b[_0x295711(0x10f)](existsSync,_0x126316))return _0x26c38b['ikwGQ'](emptyConfig);let _0x13c1ee;try{_0x13c1ee=_0x26c38b[_0x295711(0x12d)](readFileSync,_0x126316,_0x295711(0x115));}catch(_0x841847){const _0x322c4c=_0x26c38b['LMiNa'](_0x841847,Error)?_0x841847[_0x295711(0x118)]:_0x26c38b[_0x295711(0x12c)](String,_0x841847);return console[_0x295711(0x12b)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x126316+':\x20'+_0x322c4c+_0x295711(0x11c)),_0x26c38b[_0x295711(0x13c)](emptyConfig);}let _0x54d3d6;try{_0x54d3d6=JSON[_0x295711(0x12f)](_0x13c1ee);}catch(_0x1c3418){const _0x22088e=_0x1c3418 instanceof Error?_0x1c3418[_0x295711(0x118)]:String(_0x1c3418);return console['warn'](_0x295711(0x144)+_0x126316+_0x295711(0x12a)+_0x22088e+_0x295711(0x11f)),_0x26c38b[_0x295711(0x128)](emptyConfig);}if(!_0x54d3d6||typeof _0x54d3d6!==_0x295711(0x143)||Array['isArray'](_0x54d3d6)||_0x54d3d6['version']!==CURRENT_VERSION||_0x26c38b['pdAvm'](typeof _0x54d3d6['projects'],_0x26c38b[_0x295711(0x13a)])||_0x26c38b['SHyZZ'](_0x54d3d6['projects'],null)||Array['isArray'](_0x54d3d6[_0x295711(0x141)]))return console[_0x295711(0x12b)](_0x295711(0x144)+_0x126316+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();return _0x54d3d6;}export function writeProjectsConfig(_0x160d3a){const _0x1e4dc8=_0x1698,_0x34745c={'JJHWD':function(_0xb797d3,_0x1531be){return _0xb797d3(_0x1531be);},'hOAoM':function(_0x56eff9,_0x35e6e3){return _0x56eff9+_0x35e6e3;},'OkRfF':function(_0x482803,_0x413674,_0x2f7798){return _0x482803(_0x413674,_0x2f7798);}},_0x2d0240=getProjectsConfigPath(),_0x7e1f80=_0x34745c['JJHWD'](dirname,_0x2d0240);!_0x34745c[_0x1e4dc8(0x133)](existsSync,_0x7e1f80)&&mkdirSync(_0x7e1f80,{'recursive':!![]});const _0x4fb1df=_0x2d0240+'.'+process['pid']+'.'+Date[_0x1e4dc8(0x11b)]()+'.tmp',_0x1e8e4f=_0x34745c[_0x1e4dc8(0x122)](JSON[_0x1e4dc8(0x11a)](_0x160d3a,null,0x2),'\x0a');try{writeFileSync(_0x4fb1df,_0x1e8e4f,{'encoding':_0x1e4dc8(0x115),'mode':0x180}),_0x34745c[_0x1e4dc8(0x138)](renameSync,_0x4fb1df,_0x2d0240);}catch(_0x5cc39e){try{_0x34745c[_0x1e4dc8(0x133)](existsSync,_0x4fb1df)&&unlinkSync(_0x4fb1df);}catch{}throw _0x5cc39e;}}export function readProfileOverrides(_0x13baa3,_0x23ae30){const _0x42df67=_0x1698,_0x29072b=readProjectsConfig(),_0x593e2e=_0x29072b[_0x42df67(0x141)][_0x13baa3];if(!_0x593e2e||!_0x593e2e['profiles'])return null;const _0x1130eb=_0x593e2e['profiles'][_0x23ae30];if(!_0x1130eb||!_0x1130eb[_0x42df67(0x12e)])return null;return _0x1130eb['settings']??null;}export function setProfileOverride(_0x350985,_0xc5999b,_0x44a727,_0xe8ecc4){const _0x16b56c=_0x1698,_0x30a4e0={'sfyhR':function(_0x626ae1){return _0x626ae1();},'HuClu':function(_0x255815,_0x5a46cc,_0x2c8015,_0xea9535){return _0x255815(_0x5a46cc,_0x2c8015,_0xea9535);}};if(!_0x44a727)throw new Error('keyPath\x20is\x20required');const _0x5194d9=_0x30a4e0['sfyhR'](readProjectsConfig),_0x31f231=_0x5194d9[_0x16b56c(0x141)][_0x350985]??={},_0x1db0f5=_0x31f231['profiles']??={},_0x1ab3cb=_0x1db0f5[_0xc5999b]??={},_0x168342=_0x1ab3cb[_0x16b56c(0x12e)]??={};_0x30a4e0[_0x16b56c(0x127)](setByKeyPath,_0x168342,_0x44a727,_0xe8ecc4),writeProjectsConfig(_0x5194d9);}export function unsetProfileOverride(_0x56dd15,_0x57795b,_0x4b5967){const _0x4ce013=_0x1698,_0x329bd1={'TaEoa':_0x4ce013(0x13d),'qUZZI':function(_0x3bab63,_0x27fbf8,_0x55d3eb){return _0x3bab63(_0x27fbf8,_0x55d3eb);},'ywPow':function(_0x1ba511,_0x1ed65a){return _0x1ba511(_0x1ed65a);}};if(!_0x4b5967)throw new Error(_0x329bd1[_0x4ce013(0x131)]);const _0x1decc8=readProjectsConfig(),_0x54533c=_0x1decc8['projects'][_0x56dd15];if(!_0x54533c?.['profiles'])return![];const _0x5c4f16=_0x54533c['profiles'][_0x57795b];if(!_0x5c4f16?.[_0x4ce013(0x12e)])return![];const _0x1b13b6=_0x329bd1[_0x4ce013(0x135)](deleteByKeyPath,_0x5c4f16[_0x4ce013(0x12e)],_0x4b5967);if(!_0x1b13b6)return![];return _0x329bd1[_0x4ce013(0x111)](writeProjectsConfig,_0x1decc8),!![];}export function resetProfileOverrides(_0x936b58,_0x473100){const _0x291086=_0x1698,_0x140242={'CRTSZ':function(_0x213f35){return _0x213f35();}},_0x6958b8=_0x140242[_0x291086(0x126)](readProjectsConfig),_0x109435=_0x6958b8['projects'][_0x936b58];if(!_0x109435?.['profiles'])return;if(!(_0x473100 in _0x109435[_0x291086(0x112)]))return;delete _0x109435['profiles'][_0x473100],Object[_0x291086(0x113)](_0x109435[_0x291086(0x112)])[_0x291086(0x140)]===0x0&&(!_0x109435[_0x291086(0x13b)]?delete _0x6958b8[_0x291086(0x141)][_0x936b58]:_0x109435['profiles']={}),writeProjectsConfig(_0x6958b8);}export function readLastProfile(_0x59e14c){const _0x13155f=_0x1698,_0x4ef6e4={'eIBBY':function(_0x47aaba){return _0x47aaba();}},_0xdd90c0=_0x4ef6e4['eIBBY'](readProjectsConfig),_0xcee3b2=_0xdd90c0[_0x13155f(0x141)][_0x59e14c];return _0xcee3b2?.[_0x13155f(0x13b)]??null;}export function writeLastProfile(_0x3541b9,_0x31174d){const _0x1c9008=_0x1698,_0x5f2551={'hNKKq':function(_0x16a431){return _0x16a431();},'nPRrO':function(_0x38feea,_0x4330cb){return _0x38feea(_0x4330cb);}},_0x3e26b9=_0x5f2551[_0x1c9008(0x120)](readProjectsConfig),_0x205f8c=_0x3e26b9['projects'][_0x3541b9]??={};_0x205f8c[_0x1c9008(0x13b)]=_0x31174d,_0x5f2551[_0x1c9008(0x125)](writeProjectsConfig,_0x3e26b9);}export function mergeCloudProfileSettings(_0x58ff76,_0x4647c6){const _0x50f3ed=_0x1698,_0x4a363c={'rqCPb':function(_0x33923a,_0x40fb96){return _0x33923a===_0x40fb96;},'YoPyW':function(_0x249f4c,_0x3aba51){return _0x249f4c(_0x3aba51);}},_0x1ab701={..._0x58ff76??{}};if(!_0x4647c6)return _0x1ab701;for(const [_0x408207,_0x1c4e56]of Object['entries'](_0x4647c6)){if(_0x1c4e56===undefined)continue;if(_0x1c4e56===null){delete _0x1ab701[_0x408207];continue;}if(_0x4a363c[_0x50f3ed(0x134)](_0x408207,'headers')||_0x408207==='setupHeaders'){const _0x5d318d=_0x4a363c['YoPyW'](asRecord,_0x1ab701[_0x408207])??{},_0x30b91a=_0x4a363c['YoPyW'](asRecord,_0x1c4e56);if(!_0x30b91a){_0x1ab701[_0x408207]=_0x1c4e56;continue;}const _0x255050={..._0x5d318d};for(const [_0x1f77ef,_0x223671]of Object[_0x50f3ed(0x130)](_0x30b91a)){if(_0x223671===null)delete _0x255050[_0x1f77ef];else _0x223671!==undefined&&(_0x255050[_0x1f77ef]=_0x223671);}_0x1ab701[_0x408207]=_0x255050;continue;}_0x1ab701[_0x408207]=_0x1c4e56;}return _0x1ab701;}function asRecord(_0x581bea){const _0x20a2b6=_0x1698;return _0x581bea&&typeof _0x581bea==='object'&&!Array[_0x20a2b6(0x11e)](_0x581bea)?_0x581bea:undefined;}function setByKeyPath(_0x21fa82,_0x4cf183,_0x3ec484){const _0x58d672=_0x1698,_0x3f5648={'GQgTn':function(_0x42d432,_0x26c0cc){return _0x42d432-_0x26c0cc;},'UzTXm':_0x58d672(0x143),'YbMLP':function(_0x50f304,_0x4d0efe){return _0x50f304-_0x4d0efe;}},_0x30e247=_0x4cf183['split']('.');let _0x10199d=_0x21fa82;for(let _0x137f0d=0x0;_0x137f0d<_0x3f5648['GQgTn'](_0x30e247['length'],0x1);_0x137f0d++){const _0x468633=_0x30e247[_0x137f0d],_0x56758b=_0x10199d[_0x468633];(!_0x56758b||typeof _0x56758b!==_0x3f5648[_0x58d672(0x124)]||Array[_0x58d672(0x11e)](_0x56758b))&&(_0x10199d[_0x468633]={}),_0x10199d=_0x10199d[_0x468633];}_0x10199d[_0x30e247[_0x3f5648[_0x58d672(0x129)](_0x30e247['length'],0x1)]]=_0x3ec484;}function deleteByKeyPath(_0x45241e,_0x322145){const _0x24b36b=_0x1698,_0x7243e={'ZCkbM':function(_0x5aab2d,_0x1e3cb9){return _0x5aab2d<_0x1e3cb9;},'JCKju':function(_0x10d5fa,_0x56ea26){return _0x10d5fa!==_0x56ea26;},'lywfW':function(_0x2cc227,_0x27af75){return _0x2cc227-_0x27af75;}},_0x5a159c=_0x322145[_0x24b36b(0x132)]('.');let _0x18efc4=_0x45241e;for(let _0x2449c2=0x0;_0x7243e['ZCkbM'](_0x2449c2,_0x5a159c[_0x24b36b(0x140)]-0x1);_0x2449c2++){const _0x482957=_0x5a159c[_0x2449c2],_0x341be5=_0x18efc4[_0x482957];if(!_0x341be5||_0x7243e['JCKju'](typeof _0x341be5,_0x24b36b(0x143))||Array['isArray'](_0x341be5))return![];_0x18efc4=_0x341be5;}const _0x53d0da=_0x5a159c[_0x7243e[_0x24b36b(0x142)](_0x5a159c[_0x24b36b(0x140)],0x1)];if(!(_0x53d0da in _0x18efc4))return![];return delete _0x18efc4[_0x53d0da],!![];}function _0x26f2(){const _0x5d1f36=['OkRfF','270695uEEtYZ','LrDpw','lastProfile','mgDUV','keyPath\x20is\x20required','49616dskwnt','dEKOE','length','projects','lywfW','object','[ranger]\x20Warning:\x20','cGGOh','116snuiGP','ywPow','profiles','keys','3RejhZl','utf-8','2520090RczKhM','528sVjibT','message','8018600xGWLdN','stringify','now','.\x20Ignoring\x20local\x20profile\x20overrides.','OlHBg','isArray',').\x20Ignoring\x20local\x20profile\x20overrides.','hNKKq','1443546JcRZPz','hOAoM','110hQgpsk','UzTXm','nPRrO','CRTSZ','HuClu','ikwGQ','YbMLP','\x20is\x20not\x20valid\x20JSON\x20(','warn','UJSEO','lOLKD','settings','parse','entries','TaEoa','split','JJHWD','rqCPb','qUZZI','1927090NGzMIR','3179994DUSAmj'];_0x26f2=function(){return _0x5d1f36;};return _0x26f2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x15b125,_0x7c2c50){const _0x27ef84=_0x1db1,_0x2d79a8=_0x15b125();while(!![]){try{const _0xf9d8c8=parseInt(_0x27ef84(0x11c))/0x1*(-parseInt(_0x27ef84(0x112))/0x2)+parseInt(_0x27ef84(0x118))/0x3+-parseInt(_0x27ef84(0x119))/0x4*(-parseInt(_0x27ef84(0x11f))/0x5)+parseInt(_0x27ef84(0x114))/0x6+parseInt(_0x27ef84(0x11b))/0x7+-parseInt(_0x27ef84(0x116))/0x8*(parseInt(_0x27ef84(0x11d))/0x9)+-parseInt(_0x27ef84(0x11a))/0xa*(-parseInt(_0x27ef84(0x120))/0xb);if(_0xf9d8c8===_0x7c2c50)break;else _0x2d79a8['push'](_0x2d79a8['shift']());}catch(_0x33f9f3){_0x2d79a8['push'](_0x2d79a8['shift']());}}}(_0x3eb0,0xed627));function _0x3eb0(){const _0x527555=['307341MRqCnb','16NHBmtQ','10syGaLb','9762473wlijgl','1utMmHo','1341VcLfYT','warn','70355gopFmW','34450174YcpXcv','parse','3780078ibQUJx','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','101190UVGeoI','XOHlP','98776TDhJOp','message'];_0x3eb0=function(){return _0x527555;};return _0x3eb0();}import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x1db1(_0x186609,_0x1cab5f){_0x186609=_0x186609-0x112;const _0x3eb020=_0x3eb0();let _0x1db1d3=_0x3eb020[_0x186609];return _0x1db1d3;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0xee48df={'gXikr':'config.json'};return join(getRangerDir(),_0xee48df['gXikr']);}export async function loadRangerConfig(){const _0x687a5e=_0x1db1,_0x5e7291={'UmnZL':function(_0x11ad4c){return _0x11ad4c();},'BJJRD':function(_0x44f2ae,_0xfaf63a){return _0x44f2ae(_0xfaf63a);},'XOHlP':function(_0x29ce8b,_0xfd659d,_0x19b3c3){return _0x29ce8b(_0xfd659d,_0x19b3c3);},'TMaDY':function(_0xbf22bb,_0x182115){return _0xbf22bb!==_0x182115;}},_0xc20845=_0x5e7291['UmnZL'](getRangerConfigPath);if(!_0x5e7291['BJJRD'](existsSync,_0xc20845))return{};try{const _0x2ad9fe=await _0x5e7291[_0x687a5e(0x115)](readFile,_0xc20845,'utf-8'),_0x163056=JSON[_0x687a5e(0x121)](_0x2ad9fe);if(!_0x163056||_0x5e7291['TMaDY'](typeof _0x163056,'object')||Array['isArray'](_0x163056))return{};const _0x48f8d7={},_0x328e53=_0x163056['model'];return typeof _0x328e53==='string'&&(_0x48f8d7['model']=_0x328e53),_0x48f8d7;}catch(_0x3542d1){const _0x52fe52=_0x3542d1 instanceof Error?_0x3542d1[_0x687a5e(0x117)]:String(_0x3542d1);return console[_0x687a5e(0x11e)](_0x687a5e(0x113)+_0xc20845+':\x20'+_0x52fe52),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x474909,_0x1e8a1f){const _0x5bf15f=_0x2385,_0x1875e2=_0x474909();while(!![]){try{const _0x198530=-parseInt(_0x5bf15f(0xad))/0x1+-parseInt(_0x5bf15f(0xb7))/0x2*(-parseInt(_0x5bf15f(0xbb))/0x3)+parseInt(_0x5bf15f(0xba))/0x4*(-parseInt(_0x5bf15f(0xb3))/0x5)+-parseInt(_0x5bf15f(0xb8))/0x6*(parseInt(_0x5bf15f(0xb4))/0x7)+-parseInt(_0x5bf15f(0xb1))/0x8*(parseInt(_0x5bf15f(0xbc))/0x9)+-parseInt(_0x5bf15f(0xb6))/0xa*(-parseInt(_0x5bf15f(0xaf))/0xb)+parseInt(_0x5bf15f(0xb2))/0xc;if(_0x198530===_0x1e8a1f)break;else _0x1875e2['push'](_0x1875e2['shift']());}catch(_0xc83ebd){_0x1875e2['push'](_0x1875e2['shift']());}}}(_0x2ff1,0xcc3a5));function _0x2ff1(){const _0x5c445a=['4UZwuHQ','3VbDbLo','63ZJZBLY','utnpn','root','GpCxC','204103YINqmf','.ranger','32549YNrwBJ','.git','1883648alyzDo','33087876CVjwUI','4417115kPqtay','7vuoSTz','lfoyO','5460coZRum','320770CbDVmO','5766522oRBgjk','cwd'];_0x2ff1=function(){return _0x5c445a;};return _0x2ff1();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x4e0901=_0x2385,_0x10ad0e={'zCRka':function(_0xd92232,_0x297adf,_0x53bfe9){return _0xd92232(_0x297adf,_0x53bfe9);},'GpCxC':_0x4e0901(0xae),'WUWud':function(_0x3cd1c9,_0x442fab){return _0x3cd1c9(_0x442fab);},'gBIDB':function(_0x28fedc,_0x2dd808,_0x28728c){return _0x28fedc(_0x2dd808,_0x28728c);}};let _0x56790=process['cwd']();const _0x4622ab=parse(_0x56790)['root'];while(_0x56790!==_0x4622ab){if(existsSync(_0x10ad0e['zCRka'](join,_0x56790,_0x10ad0e[_0x4e0901(0xac)])))return _0x56790;_0x56790=_0x10ad0e['WUWud'](dirname,_0x56790);}if(existsSync(_0x10ad0e['gBIDB'](join,_0x4622ab,'.ranger')))return _0x4622ab;const _0x3bfb50=findGitRoot();if(_0x3bfb50)return _0x3bfb50;return process[_0x4e0901(0xb9)]();}function _0x2385(_0x3d11e3,_0x49bdfe){_0x3d11e3=_0x3d11e3-0xaa;const _0x2ff190=_0x2ff1();let _0x23851a=_0x2ff190[_0x3d11e3];return _0x23851a;}export function getRangerDir(){const _0x58f6c5={'tQGnV':'.ranger'};return join(getRangerRoot(),_0x58f6c5['tQGnV']);}export function findGitRoot(){const _0x4f3d8f=_0x2385,_0x137fa2={'ioBxj':function(_0x8fd61e,_0x1864cd){return _0x8fd61e!==_0x1864cd;},'ZRJsM':function(_0x5a964d,_0x5c2a18){return _0x5a964d(_0x5c2a18);},'nimop':function(_0x356519,_0x472f6c,_0x1014f9){return _0x356519(_0x472f6c,_0x1014f9);},'lfoyO':_0x4f3d8f(0xb0)};let _0x1a98b4=process[_0x4f3d8f(0xb9)]();const _0x43c89d=parse(_0x1a98b4)[_0x4f3d8f(0xab)];while(_0x137fa2['ioBxj'](_0x1a98b4,_0x43c89d)){if(_0x137fa2['ZRJsM'](existsSync,_0x137fa2['nimop'](join,_0x1a98b4,_0x137fa2['lfoyO'])))return _0x1a98b4;_0x1a98b4=dirname(_0x1a98b4);}if(existsSync(join(_0x43c89d,_0x137fa2[_0x4f3d8f(0xb5)])))return _0x43c89d;return null;}export function getRangerHomeDir(){const _0x2a4e0b=_0x2385,_0x5ef4d3={'utnpn':function(_0x1645f4){return _0x1645f4();}};return join(_0x5ef4d3[_0x2a4e0b(0xaa)](homedir),'.ranger');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x360218,_0x54468f){const _0xcae696=_0x4c91,_0x1b3bdd=_0x360218();while(!![]){try{const _0x4442af=parseInt(_0xcae696(0x1a4))/0x1*(parseInt(_0xcae696(0x1be))/0x2)+-parseInt(_0xcae696(0x199))/0x3*(-parseInt(_0xcae696(0x1ba))/0x4)+parseInt(_0xcae696(0x1bc))/0x5*(parseInt(_0xcae696(0x1bd))/0x6)+-parseInt(_0xcae696(0x197))/0x7+parseInt(_0xcae696(0x190))/0x8*(-parseInt(_0xcae696(0x19d))/0x9)+-parseInt(_0xcae696(0x19e))/0xa*(-parseInt(_0xcae696(0x1a7))/0xb)+parseInt(_0xcae696(0x1b0))/0xc*(-parseInt(_0xcae696(0x194))/0xd);if(_0x4442af===_0x54468f)break;else _0x1b3bdd['push'](_0x1b3bdd['shift']());}catch(_0x37f643){_0x1b3bdd['push'](_0x1b3bdd['shift']());}}}(_0x463d,0xc5b47));import{existsSync}from'fs';import _0x2541cc from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x39e030){const _0x2d105b=_0x4c91,_0x46fd8c={'HXPnk':function(_0x2a14f4){return _0x2a14f4();},'TmPyr':function(_0x5017b4){return _0x5017b4();},'RHSFh':function(_0x31877c,_0x15f73f){return _0x31877c+_0x15f73f;},'APyDM':function(_0x272688,_0x16f691){return _0x272688+_0x16f691;},'eOugj':function(_0x5f5834,_0x402a34){return _0x5f5834+_0x402a34;},'gUGeT':_0x2d105b(0x1a2),'NMMer':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','aplsX':function(_0x2e9a75,_0x52d9ff){return _0x2e9a75(_0x52d9ff);},'lNtdP':function(_0x166574,_0x1658ed){return _0x166574(_0x1658ed);},'gtATF':function(_0x439e35,_0x3b19a8){return _0x439e35===_0x3b19a8;},'jClza':function(_0x3087fb,_0xa8b4f9){return _0x3087fb&&_0xa8b4f9;},'rlTlc':_0x2d105b(0x1bb),'TSLWN':_0x2d105b(0x1a3),'PHlya':function(_0x94b9e2,_0x4be792){return _0x94b9e2&&_0x4be792;},'iUUpW':_0x2d105b(0x196),'oBBqO':_0x2d105b(0x1ae),'QONSM':'Cloud\x20profile\x20(recommended)','mNXLG':'local','dYIAc':_0x2d105b(0x186),'EnzFM':function(_0x155b4a,_0x1cb6d4){return _0x155b4a===_0x1cb6d4;},'bPCHo':function(_0x1a94fc,_0xb14f3b,_0x40bfd5){return _0x1a94fc(_0xb14f3b,_0x40bfd5);},'xnTjT':function(_0x4b45d0,_0x3c01c5){return _0x4b45d0??_0x3c01c5;},'lHsjs':function(_0x5724d8,_0x1ec7ac){return _0x5724d8(_0x1ec7ac);},'RFlqR':function(_0x4adbe1,_0x489ed7){return _0x4adbe1(_0x489ed7);},'KVoTc':function(_0x42331d,_0x1a70d6){return _0x42331d(_0x1a70d6);},'MrpOi':function(_0x43cf2c,_0x502c25){return _0x43cf2c(_0x502c25);},'IrqYi':function(_0xac23a2,_0x2df10b){return _0xac23a2(_0x2df10b);},'iaGVU':function(_0x581b2b,_0x386c08){return _0x581b2b(_0x386c08);}},_0xb31100=_0x39e030['profile'];let _0x267222=_0x39e030[_0x2d105b(0x1b2)]??await readActiveProfileName(),_0x3ae5ed=null;if(!_0x267222&&process[_0x2d105b(0x18f)][_0x2d105b(0x1b9)]){const _0xee716d=await _0x46fd8c['HXPnk'](resolveAdHocProfile);_0xee716d&&(_0x267222=_0xee716d['name'],_0x3ae5ed=_0xee716d[_0x2d105b(0x1b2)]);}if(!_0x267222)try{const _0x39f407=await _0x46fd8c['TmPyr'](listCloudProfiles);if(_0x39f407['length']===0x1){const _0x3b895c=_0x39f407[0x0];_0x267222=_0x3b895c[_0x2d105b(0x18e)],console['log'](_0x2d105b(0x19c)+_0x3b895c['name']),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x267222)throw new Error(_0x46fd8c[_0x2d105b(0x1a8)](_0x46fd8c[_0x2d105b(0x1ac)](_0x46fd8c['eOugj']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x46fd8c[_0x2d105b(0x19a)])+_0x46fd8c['NMMer'],'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x5018aa=_0x46fd8c[_0x2d105b(0x195)](getEnvDir,_0x267222),_0x277051=_0x46fd8c['lNtdP'](existsSync,_0x5018aa);let _0x26da96=_0x3ae5ed,_0x1c4c3e=![];if(!_0x26da96)try{_0x26da96=await fetchCloudProfile(_0x267222);if(!_0x26da96)_0x1c4c3e=!![];}catch(_0x612d35){_0x612d35 instanceof ApiError&&_0x46fd8c[_0x2d105b(0x193)](_0x612d35['status'],0x194)&&(_0x1c4c3e=!![]);}if(_0x46fd8c['jClza'](_0xb31100,_0x1c4c3e)&&!_0x277051&&!_0x26da96)throw new Error(_0x46fd8c['RHSFh']('Profile\x20\x22'+_0xb31100+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x46fd8c[_0x2d105b(0x1a6)],_0x46fd8c['TSLWN']));if(_0x46fd8c[_0x2d105b(0x1af)](_0x26da96,_0x277051)){let _0x1fe343=!![];if(isInteractive()){const {source:_0x2b15d8}=await _0x2541cc[_0x2d105b(0x188)]([{'type':_0x46fd8c[_0x2d105b(0x1ab)],'name':_0x46fd8c['oBBqO'],'message':'Profile\x20\x22'+_0x267222+_0x2d105b(0x198),'choices':[{'name':_0x46fd8c['QONSM'],'value':_0x2d105b(0x186)},{'name':'Local\x20profile','value':_0x46fd8c['mNXLG']}],'default':_0x46fd8c['dYIAc']}]);_0x1fe343=_0x46fd8c['EnzFM'](_0x2b15d8,_0x46fd8c['dYIAc']);}if(!_0x1fe343)_0x26da96=null;}const _0x17a4f5=_0x46fd8c[_0x2d105b(0x1b1)](readProfileOverrides,process[_0x2d105b(0x1aa)](),_0x267222);let _0x559496=null,_0x38d800,_0x2b5ded,_0x1d9c0b,_0x452782,_0x9bb705=null,_0x164ecb;const _0x4cef36=_0x46fd8c['lNtdP'](expandOverrides,_0x17a4f5);if(_0x26da96){_0x559496=_0x26da96;const _0x4f3494=_0x26da96[_0x2d105b(0x1b7)]??{},_0xb2afc7=_0x46fd8c['bPCHo'](mergeCloudProfileSettings,_0x4f3494,_0x46fd8c['xnTjT'](_0x17a4f5,undefined)),_0x1c02b5={..._0x26da96,'settings':_0xb2afc7},_0x54bd63=process[_0x2d105b(0x18f)]['RANGER_SESSION_STATE_PATH'];if(_0x54bd63){const _0x2ca0e6=_0x2d105b(0x18b)[_0x2d105b(0x1b3)]('|');let _0x3f8cc4=0x0;while(!![]){switch(_0x2ca0e6[_0x3f8cc4++]){case'0':_0x38d800=_0x54bd63;continue;case'1':_0x2b5ded=_0x46fd8c['lHsjs'](resolveEnvVars,_0xb2afc7);continue;case'2':_0x1d9c0b=_0x46fd8c['lNtdP'](Boolean,_0x2b5ded[_0x2d105b(0x191)]);continue;case'3':if(!existsSync(_0x54bd63))throw new Error('RANGER_SESSION_STATE_PATH='+_0x54bd63+_0x2d105b(0x192));continue;case'4':_0x9bb705={'baseUrl':_0x46fd8c[_0x2d105b(0x18c)](expandString,_0x4f3494[_0x2d105b(0x1a9)]),'startPath':_0x46fd8c['RFlqR'](expandString,_0x4f3494['startPath'])};continue;}break;}}else{const _0x2137f2=await resolveCloudProfileSession(_0x1c02b5);_0x38d800=_0x2137f2[_0x2d105b(0x1b5)],_0x2b5ded=_0x46fd8c[_0x2d105b(0x19f)](resolveEnvVars,_0xb2afc7),_0x1d9c0b=_0x46fd8c[_0x2d105b(0x19b)](Boolean,_0x2b5ded['cdpEndpoint']),_0x9bb705={'baseUrl':_0x46fd8c['MrpOi'](expandString,_0x4f3494[_0x2d105b(0x1a9)]),'startPath':expandString(_0x4f3494['startPath'])},_0x164ecb=_0x2137f2['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x277051)throw new Error(_0x2d105b(0x1ad)+_0x267222+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x267222);const _0x10ae5f=await loadSettings(_0x267222);_0x2b5ded=_0x46fd8c['IrqYi'](resolveEnvVars,_0x10ae5f),_0x1d9c0b=_0x46fd8c[_0x2d105b(0x1a1)](Boolean,_0x2b5ded[_0x2d105b(0x191)]),_0x452782=_0x2b5ded[_0x2d105b(0x1a9)];}const _0x46b3e2=readUrlEnvVars(),_0x4e242b=_0x46fd8c[_0x2d105b(0x195)](resolveProfileUrl,{'flagBaseUrl':_0x39e030['baseUrl'],'flagStartPath':_0x39e030['startPath'],'envBaseUrl':_0x46b3e2['envBaseUrl'],'envStartPath':_0x46b3e2[_0x2d105b(0x1b8)],'localSettingsBaseUrl':_0x452782,'projectOverrides':_0x4cef36,'cloudSettings':_0x9bb705,'authEnvironmentDomain':_0x164ecb}),_0x260585=_0x4e242b[_0x2d105b(0x18a)]??_0x4e242b['baseUrl'];if(!_0x260585&&!_0x1d9c0b)throw new Error(_0x2d105b(0x18d)+_0x267222+_0x2d105b(0x1b6)+_0x267222+_0x2d105b(0x1a0));return{'activeProfile':_0x267222,'resolvedCloudProfile':_0x559496,'cloudAuthPath':_0x38d800,'resolvedSettings':_0x2b5ded,'isCdpMode':_0x1d9c0b,'url':_0x260585,'startPath':_0x4e242b[_0x2d105b(0x189)]};}function expandString(_0x1eb351){const _0x300acc=_0x4c91,_0x57ccdf={'CzPok':_0x300acc(0x1a5),'neUKG':function(_0x2f3101,_0xef66d0){return _0x2f3101(_0xef66d0);}};if(typeof _0x1eb351!==_0x57ccdf[_0x300acc(0x187)])return _0x1eb351;return _0x57ccdf['neUKG'](resolveEnvVars,_0x1eb351);}function _0x463d(){const _0x29068a=['456NcKbRT','cdpEndpoint','\x20does\x20not\x20exist.','gtATF','4641lwfzRb','aplsX','list','7814408JDQgBL','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','28989wRCPSw','gUGeT','lNtdP','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','90612zrsnoA','3142270vFcWYY','KVoTc','\x20baseUrl\x20<url>','iaGVU','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','`ranger\x20profile\x20add`\x20to\x20create\x20one.','1XCqMhC','string','rlTlc','33LJMmDw','RHSFh','baseUrl','cwd','iUUpW','APyDM','Profile\x20\x22','source','PHlya','17652tBFlJx','bPCHo','profile','split','bwchC','authPath','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','settings','envStartPath','RANGER_TEST_USERNAME','352uQXhuq','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','15BRBTyX','1803528nKyTLW','660754JewYws','cloud','CzPok','prompt','startPath','url','3|0|1|2|4','lHsjs','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','name','env'];_0x463d=function(){return _0x29068a;};return _0x463d();}function _0x4c91(_0x1b212d,_0x905853){_0x1b212d=_0x1b212d-0x186;const _0x463d55=_0x463d();let _0x4c9132=_0x463d55[_0x1b212d];return _0x4c9132;}function expandOverrides(_0x4ea96f){const _0x155be4=_0x4c91,_0x5cafd2={'uULKY':function(_0x2793ef,_0x331122){return _0x2793ef===_0x331122;},'bwchC':_0x155be4(0x1a5)};if(!_0x4ea96f)return _0x4ea96f;const _0x42d189={..._0x4ea96f};return _0x5cafd2['uULKY'](typeof _0x42d189['baseUrl'],'string')&&(_0x42d189[_0x155be4(0x1a9)]=resolveEnvVars(_0x42d189['baseUrl'])),typeof _0x42d189['startPath']===_0x5cafd2[_0x155be4(0x1b4)]&&(_0x42d189[_0x155be4(0x189)]=resolveEnvVars(_0x42d189['startPath'])),_0x42d189;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37c1b8,_0x5aac93){const _0x2b2f82=_0x5e3c,_0x44f82e=_0x37c1b8();while(!![]){try{const _0x5ee423=parseInt(_0x2b2f82(0xbd))/0x1+parseInt(_0x2b2f82(0xcf))/0x2*(parseInt(_0x2b2f82(0xc2))/0x3)+parseInt(_0x2b2f82(0xc7))/0x4+parseInt(_0x2b2f82(0xd1))/0x5+-parseInt(_0x2b2f82(0xbb))/0x6*(-parseInt(_0x2b2f82(0xcc))/0x7)+-parseInt(_0x2b2f82(0xc5))/0x8+parseInt(_0x2b2f82(0xd0))/0x9*(-parseInt(_0x2b2f82(0xcb))/0xa);if(_0x5ee423===_0x5aac93)break;else _0x44f82e['push'](_0x44f82e['shift']());}catch(_0x16803e){_0x44f82e['push'](_0x44f82e['shift']());}}}(_0x3cbc,0x1e9e7));function firstDefined(..._0x2b0263){const _0x595b10={'sODXk':function(_0x53e999,_0x541c82){return _0x53e999!==_0x541c82;}};for(const _0x14c7a2 of _0x2b0263){if(_0x595b10['sODXk'](_0x14c7a2,undefined)&&_0x595b10['sODXk'](_0x14c7a2,null)&&_0x595b10['sODXk'](_0x14c7a2,''))return _0x14c7a2;}return undefined;}function normalizeAuthEnvironmentDomain(_0x20eaba){const _0x11ace5=_0x5e3c;if(!_0x20eaba)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x20eaba))return _0x20eaba;return _0x11ace5(0xc6)+_0x20eaba;}export function resolveBaseUrl(_0x5c6bff){const _0xe3c864=_0x5e3c,_0x55acfa={'iFLBH':_0xe3c864(0xbe),'BNUKg':function(_0x5ed7c1,_0xd0c9aa){return _0x5ed7c1===_0xd0c9aa;},'yMqzE':'string'},_0x4d0cac=_0x5c6bff[_0xe3c864(0xc4)],_0x41f530=!!_0x4d0cac&&_0x55acfa['iFLBH']in _0x4d0cac,_0x48d1e1=_0x4d0cac?.['baseUrl'],_0x4c38ae=!(_0x41f530&&_0x55acfa[_0xe3c864(0xca)](_0x48d1e1,null));return firstDefined(_0x5c6bff[_0xe3c864(0xc0)],_0x5c6bff['envBaseUrl'],_0x5c6bff[_0xe3c864(0xbf)],typeof _0x48d1e1===_0x55acfa[_0xe3c864(0xba)]?_0x48d1e1:undefined,_0x4c38ae?_0x5c6bff[_0xe3c864(0xc3)]?.['baseUrl']:undefined,_0x4c38ae?normalizeAuthEnvironmentDomain(_0x5c6bff[_0xe3c864(0xc1)]):undefined);}export function resolveStartPath(_0xba749b){const _0x3873f4=_0x5e3c,_0x4c47d9={'vOJFQ':function(_0x5ac38d,_0x27ed09){return _0x5ac38d===_0x27ed09;}},_0x49c0fa=_0xba749b['projectOverrides'],_0x3cffb9=!!_0x49c0fa&&_0x3873f4(0xc8)in _0x49c0fa,_0x5103c5=_0x49c0fa?.[_0x3873f4(0xc8)],_0x127fa5=!(_0x3cffb9&&_0x5103c5===null);return firstDefined(_0xba749b['flagStartPath'],_0xba749b[_0x3873f4(0xce)],_0x4c47d9['vOJFQ'](typeof _0x5103c5,'string')?_0x5103c5:undefined,_0x127fa5?_0xba749b['cloudSettings']?.['startPath']:undefined);}export function joinBaseAndPath(_0x544ddd,_0x285254){const _0x3546a8=_0x5e3c,_0x12eb68={'uYgTm':function(_0x411bf8,_0xbbf75a){return _0x411bf8+_0xbbf75a;}};if(!_0x544ddd)return undefined;if(!_0x285254)return _0x544ddd;const _0x254f51=_0x544ddd['endsWith']('/')?_0x544ddd['slice'](0x0,-0x1):_0x544ddd,_0x5c74c4=_0x285254[_0x3546a8(0xbc)]('/')?_0x285254:_0x12eb68['uYgTm']('/',_0x285254);return _0x254f51+_0x5c74c4;}function _0x3cbc(){const _0x44d709=['98104gWYPVr','startPath','RANGER_BASE_URL','BNUKg','210LUnNKv','560BhJYpY','RANGER_START_PATH','envStartPath','274Fucimt','243099gizbtR','818495LZwxgF','yMqzE','13722gcayEs','startsWith','243660RPFEZe','baseUrl','localSettingsBaseUrl','flagBaseUrl','authEnvironmentDomain','4821QQhfiJ','cloudSettings','projectOverrides','1138864LnSicg','https://'];_0x3cbc=function(){return _0x44d709;};return _0x3cbc();}export function resolveProfileUrl(_0x2b8420){const _0x4ca4f8={'UbtNy':function(_0xa59eb3,_0x663e7a){return _0xa59eb3(_0x663e7a);},'bEEMf':function(_0x3fdf49,_0x26edf3){return _0x3fdf49(_0x26edf3);},'dCjZP':function(_0x40af3d,_0x411bf9,_0x36437e){return _0x40af3d(_0x411bf9,_0x36437e);}},_0x461021=_0x4ca4f8['UbtNy'](resolveBaseUrl,_0x2b8420),_0x2e67bf=_0x4ca4f8['bEEMf'](resolveStartPath,_0x2b8420);return{'baseUrl':_0x461021,'startPath':_0x2e67bf,'url':_0x4ca4f8['dCjZP'](joinBaseAndPath,_0x461021,_0x2e67bf)};}function _0x5e3c(_0xefd84d,_0x3783fb){_0xefd84d=_0xefd84d-0xba;const _0x3cbc57=_0x3cbc();let _0x5e3ce6=_0x3cbc57[_0xefd84d];return _0x5e3ce6;}export function readUrlEnvVars(_0x3b1e80=process['env']){const _0x408d16=_0x5e3c;return{'envBaseUrl':_0x3b1e80[_0x408d16(0xc9)],'envStartPath':_0x3b1e80[_0x408d16(0xcd)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a5265,_0x143a89){const _0x4ed49b=_0x58a1,_0x4c987a=_0x1a5265();while(!![]){try{const _0x3e93bd=parseInt(_0x4ed49b(0x13d))/0x1*(-parseInt(_0x4ed49b(0x135))/0x2)+parseInt(_0x4ed49b(0x137))/0x3+-parseInt(_0x4ed49b(0x132))/0x4*(parseInt(_0x4ed49b(0x13c))/0x5)+parseInt(_0x4ed49b(0x136))/0x6+-parseInt(_0x4ed49b(0x13a))/0x7*(-parseInt(_0x4ed49b(0x13b))/0x8)+parseInt(_0x4ed49b(0x131))/0x9+-parseInt(_0x4ed49b(0x138))/0xa;if(_0x3e93bd===_0x143a89)break;else _0x4c987a['push'](_0x4c987a['shift']());}catch(_0x17b5fe){_0x4c987a['push'](_0x4c987a['shift']());}}}(_0xf4ee,0x2ed75));function _0x58a1(_0x3c5b03,_0x5a2478){_0x3c5b03=_0x3c5b03-0x131;const _0x58a16a=_0xf4ee();let _0x1c969e=_0x58a16a[_0x3c5b03];return _0x1c969e;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0xf4ee(){const _0x20f597=['67VhYZae','ZqbNu','GhzVa','3214782Ycalgq','62428uZNEDy','LamuI','maxRetries','2810ddVjlR','1968036SpfcwM','596499SISPtP','8532970JBWXTL','),\x20retrying\x20in\x20','3073hnJGMU','4936wSZmOy','5wgzEqx'];_0xf4ee=function(){return _0x20f597;};return _0xf4ee();}export async function withRetry(_0x43a65c,_0xa1a2d){const _0x2a23a9=_0x58a1,_0xd2a11e={'ZqbNu':function(_0x1589bd,_0x3f26e6){return _0x1589bd<=_0x3f26e6;},'LamuI':function(_0x232e93){return _0x232e93();},'GhzVa':function(_0x2fe41a,_0x538c29){return _0x2fe41a+_0x538c29;}},_0x5e5e61=_0xa1a2d?.[_0x2a23a9(0x134)]??DEFAULT_MAX_RETRIES,_0x4eae5a=_0xa1a2d?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x52a4e4;for(let _0x29f04f=0x0;_0xd2a11e[_0x2a23a9(0x13e)](_0x29f04f,_0x5e5e61);_0x29f04f++){try{return await _0xd2a11e[_0x2a23a9(0x133)](_0x43a65c);}catch(_0xe52aac){_0x52a4e4=_0xe52aac instanceof Error?_0xe52aac:new Error(String(_0xe52aac));if(_0x29f04f<_0x5e5e61){const _0x554fda=_0x4eae5a*Math['pow'](0x2,_0x29f04f);_0xa1a2d?.['label']&&console['error'](_0xa1a2d['label']+'\x20failed\x20(attempt\x20'+(_0x29f04f+0x1)+'/'+_0xd2a11e[_0x2a23a9(0x13f)](_0x5e5e61,0x1)+_0x2a23a9(0x139)+_0x554fda+'ms...'),await new Promise(_0x4efcb9=>setTimeout(_0x4efcb9,_0x554fda));}}}throw _0x52a4e4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe64401=_0x6942;(function(_0x293251,_0x2aee33){const _0x37a1e8=_0x6942,_0x8e8f80=_0x293251();while(!![]){try{const _0x4deb69=parseInt(_0x37a1e8(0xc9))/0x1+parseInt(_0x37a1e8(0xc4))/0x2+parseInt(_0x37a1e8(0x9b))/0x3+-parseInt(_0x37a1e8(0xa1))/0x4*(-parseInt(_0x37a1e8(0xaa))/0x5)+parseInt(_0x37a1e8(0xa9))/0x6*(parseInt(_0x37a1e8(0xbd))/0x7)+parseInt(_0x37a1e8(0xb3))/0x8+-parseInt(_0x37a1e8(0x9a))/0x9;if(_0x4deb69===_0x2aee33)break;else _0x8e8f80['push'](_0x8e8f80['shift']());}catch(_0x4363ca){_0x8e8f80['push'](_0x8e8f80['shift']());}}}(_0x47a8,0x34f87));import*as _0x5d2aa5 from'fs';import*as _0x384bb5 from'path';import*as _0x22a86d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x384bb5[_0xe64401(0xaf)](_0x22a86d['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4244d5=_0xe64401,_0x472e64={'bMLgG':function(_0x425b68){return _0x425b68();}};try{if(_0x5d2aa5['existsSync'](CACHE_FILE)){const _0x5e7f5d=JSON[_0x4244d5(0xbf)](_0x5d2aa5['readFileSync'](CACHE_FILE,_0x4244d5(0xb9)));return{'version':0x3,'sessions':_0x5e7f5d[_0x4244d5(0x98)]||{},'branches':_0x5e7f5d['branches']||{},'lastEnabledSessionClearedAt':_0x5e7f5d['lastEnabledSessionClearedAt']};}}catch{}return _0x472e64['bMLgG'](createEmptyCache);}function saveCache(_0x276e41){const _0x19bac6=_0xe64401;try{const _0x27392a=_0x384bb5[_0x19bac6(0xc8)](CACHE_FILE);!_0x5d2aa5[_0x19bac6(0x9c)](_0x27392a)&&_0x5d2aa5['mkdirSync'](_0x27392a,{'recursive':!![]}),_0x5d2aa5[_0x19bac6(0xc5)](CACHE_FILE,JSON[_0x19bac6(0xa6)](_0x276e41,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3eb0b3=_0xe64401,_0x3216cc={'fjTsD':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','eEWuV':_0x3eb0b3(0xb9),'PhVBR':'pipe'};try{const _0x1f85f4=execSync(_0x3216cc[_0x3eb0b3(0xb5)],{'encoding':_0x3216cc['eEWuV'],'stdio':[_0x3216cc[_0x3eb0b3(0xb7)],_0x3216cc[_0x3eb0b3(0xb7)],_0x3eb0b3(0xb6)]})[_0x3eb0b3(0xac)]();if(!_0x1f85f4||_0x1f85f4==='HEAD')return null;return _0x1f85f4;}catch{return null;}}export function enableBranch(_0x5aece7){const _0xf04021=loadCache();_0xf04021['branches'][_0x5aece7]=!![],saveCache(_0xf04021);}export function disableBranch(_0x24f9ba){const _0xdae885=_0xe64401,_0x27b259=loadCache();delete _0x27b259[_0xdae885(0xa3)][_0x24f9ba],saveCache(_0x27b259);}export function isBranchEnabled(_0xbc2ae){const _0x293af8=_0xe64401,_0x114e68={'LbaOo':function(_0x2996b3){return _0x2996b3();}},_0x4634a1=_0x114e68['LbaOo'](loadCache);return _0x4634a1[_0x293af8(0xa3)][_0xbc2ae]===!![];}function getOrCreateSession(_0x565b96,_0x407060){return!_0x565b96['sessions'][_0x407060]&&(_0x565b96['sessions'][_0x407060]={}),_0x565b96['sessions'][_0x407060];}export function enableSession(_0x5444b7){const _0x4e911e=_0xe64401,_0x56ff5e={'mpMak':function(_0xed335f){return _0xed335f();},'KpJwd':function(_0x14ef29,_0x296745){return _0x14ef29!==_0x296745;},'ifhvM':'main','oqEGy':function(_0x459390,_0x5486e7){return _0x459390(_0x5486e7);}},_0x204b57=_0x56ff5e['mpMak'](loadCache),_0x31c430=getOrCreateSession(_0x204b57,_0x5444b7);_0x31c430['enabled']=!![];const _0x35d13f=getCurrentBranch();_0x35d13f&&_0x56ff5e[_0x4e911e(0xc6)](_0x35d13f,_0x56ff5e[_0x4e911e(0xc0)])&&_0x35d13f!==_0x4e911e(0xb8)&&(_0x204b57[_0x4e911e(0xa3)][_0x35d13f]=!![],_0x31c430['currentBranch']=_0x35d13f),_0x56ff5e['oqEGy'](saveCache,_0x204b57);}export function isSessionEnabled(_0x56a67f){const _0xb3fd5b=_0xe64401,_0x2536d6={'gaiCX':function(_0x18ac99){return _0x18ac99();},'RXEgp':function(_0x22a780,_0x56c414){return _0x22a780===_0x56c414;},'ymajo':function(_0x4da143,_0x2db52a){return _0x4da143===_0x2db52a;},'JnCCa':function(_0x1afa41,_0x35b15e){return _0x1afa41===_0x35b15e;},'RfEFr':function(_0x340741,_0x5be512){return _0x340741||_0x5be512;}},_0x53b10e=loadCache(),_0x2ea36f=_0x2536d6[_0xb3fd5b(0xb0)](getCurrentBranch);if(!_0x2ea36f||_0x2536d6['RXEgp'](_0x2ea36f,'main')||_0x2536d6[_0xb3fd5b(0xca)](_0x2ea36f,'master'))return _0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)]===!![];const _0x582ddb=_0x2536d6['RXEgp'](_0x53b10e[_0xb3fd5b(0xa3)][_0x2ea36f],!![]),_0x427fe6=_0x2536d6[_0xb3fd5b(0x9e)](_0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)],!![]);return _0x2536d6[_0xb3fd5b(0xc3)](_0x582ddb,_0x427fe6);}export function disableSession(_0x17c3ce){const _0x30aad2=_0xe64401,_0x1cb6e2={'SCuRg':function(_0x2be6a3){return _0x2be6a3();},'ZVXtp':function(_0x5cc558,_0x2ac0f1,_0x2699db){return _0x5cc558(_0x2ac0f1,_0x2699db);},'jkYkT':function(_0x4f75be,_0x53bcc1){return _0x4f75be(_0x53bcc1);}},_0x45b361=_0x1cb6e2[_0x30aad2(0xa7)](loadCache),_0x51339b=_0x1cb6e2[_0x30aad2(0xa4)](getOrCreateSession,_0x45b361,_0x17c3ce);_0x51339b['enabled']=![],_0x1cb6e2[_0x30aad2(0xba)](saveCache,_0x45b361);}export function updateBranchTracking(_0x55db73){const _0x10aafd=_0xe64401,_0x405ac7={'AqQnM':function(_0x2863ec){return _0x2863ec();},'MPPXc':function(_0x4bd2c5,_0x31839e){return _0x4bd2c5===_0x31839e;},'wqtfU':_0x10aafd(0xbb),'GAGPr':'master','iHKNy':function(_0x5a715c,_0x94d6ed){return _0x5a715c!==_0x94d6ed;},'xkHcv':function(_0x41c3b1,_0x2392db){return _0x41c3b1(_0x2392db);}},_0x4b9f27=loadCache(),_0x5de611=_0x4b9f27[_0x10aafd(0x98)][_0x55db73];if(!_0x5de611?.['enabled'])return;const _0x53aa9b=_0x405ac7['AqQnM'](getCurrentBranch);if(!_0x53aa9b||_0x405ac7['MPPXc'](_0x53aa9b,_0x405ac7[_0x10aafd(0xa5)])||_0x53aa9b===_0x405ac7[_0x10aafd(0xbc)])return;_0x405ac7['iHKNy'](_0x5de611[_0x10aafd(0x9f)],_0x53aa9b)&&(_0x4b9f27['branches'][_0x53aa9b]=!![],_0x5de611[_0x10aafd(0x9f)]=_0x53aa9b,_0x405ac7[_0x10aafd(0x9d)](saveCache,_0x4b9f27));}export function initBranchTracking(_0x2e3bd5){const _0x1a6dd7=_0xe64401,_0x41c25e={'EsrPY':function(_0x446c2a){return _0x446c2a();},'jNlTj':function(_0x5675f5,_0x4e138d){return _0x5675f5===_0x4e138d;},'SmBGm':_0x1a6dd7(0xb8),'TeiJx':function(_0x171eb6,_0x42b53c,_0x1d48dd){return _0x171eb6(_0x42b53c,_0x1d48dd);}},_0x12e2cb=_0x41c25e['EsrPY'](loadCache),_0x46b045=getCurrentBranch();if(!_0x46b045||_0x41c25e['jNlTj'](_0x46b045,_0x1a6dd7(0xbb))||_0x46b045===_0x41c25e['SmBGm'])return;if(_0x12e2cb['branches'][_0x46b045]===!![]){const _0x38ba76=_0x41c25e['TeiJx'](getOrCreateSession,_0x12e2cb,_0x2e3bd5);_0x38ba76[_0x1a6dd7(0x95)]=!![],_0x38ba76[_0x1a6dd7(0x9f)]=_0x46b045,saveCache(_0x12e2cb);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x6942(_0x55ad94,_0x49e518){_0x55ad94=_0x55ad94-0x94;const _0x47a8d9=_0x47a8();let _0x6942f2=_0x47a8d9[_0x55ad94];return _0x6942f2;}export function recordEnabledSessionCleared(_0x105cac){const _0x2de0b3=loadCache(),_0x2adafd=_0x2de0b3['sessions'][_0x105cac];_0x2adafd?.['enabled']&&(_0x2de0b3['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x2de0b3));}export function shouldAutoEnableAfterClear(_0x12e723){const _0x97237=_0xe64401,_0x44a20d={'dDlKi':_0x97237(0xae),'CErfo':function(_0x4f8907,_0x1c55fe){return _0x4f8907-_0x1c55fe;},'ZKXwX':function(_0x38dfd1,_0x143564){return _0x38dfd1<=_0x143564;}};if(_0x12e723!==_0x44a20d[_0x97237(0x99)])return![];const _0x4b63d6=loadCache(),_0x424629=_0x4b63d6[_0x97237(0xad)];if(!_0x424629)return![];const _0x49f91f=_0x44a20d[_0x97237(0xb1)](Date['now'](),_0x424629);return _0x44a20d['ZKXwX'](_0x49f91f,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x2b972f){const _0x262732=_0xe64401,_0x352ab3={'NolXU':function(_0x42263d){return _0x42263d();},'Nxogm':function(_0x305c00,_0x2adae7,_0x929db){return _0x305c00(_0x2adae7,_0x929db);},'KnbYL':function(_0x5774f4,_0x4e603e){return _0x5774f4!==_0x4e603e;},'BsvvF':_0x262732(0xbb),'mxNqx':function(_0x23f48f,_0x3b01a1){return _0x23f48f(_0x3b01a1);}},_0x4a37d7=_0x352ab3[_0x262732(0xc7)](loadCache),_0x50c0af=_0x352ab3['Nxogm'](getOrCreateSession,_0x4a37d7,_0x2b972f);_0x50c0af[_0x262732(0x95)]=!![];const _0x20330b=getCurrentBranch();_0x20330b&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x352ab3['BsvvF'])&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x262732(0xb8))&&(_0x50c0af['currentBranch']=_0x20330b),delete _0x4a37d7['lastEnabledSessionClearedAt'],_0x352ab3['mxNqx'](saveCache,_0x4a37d7);}export function registerSession(_0x36023c,_0x15b163){const _0x3a4680=_0xe64401,_0x1f10cd=loadCache(),_0x49fb13=getOrCreateSession(_0x1f10cd,_0x36023c);_0x49fb13[_0x3a4680(0xb4)]=_0x15b163,_0x49fb13['registeredAt']=new Date()['toISOString'](),saveCache(_0x1f10cd);}export function getSessionEntry(_0x198c06){const _0x3a6cc9=_0xe64401,_0x144293=loadCache(),_0x3bf88b=_0x144293['sessions'][_0x198c06];if(_0x3bf88b?.[_0x3a6cc9(0xb4)]&&_0x3bf88b?.['registeredAt'])return{'featureId':_0x3bf88b[_0x3a6cc9(0xb4)],'registeredAt':_0x3bf88b['registeredAt']};return null;}export function unregisterSession(_0x3ee27b){const _0x9c374a=_0xe64401,_0x2a5d94={'VtLrC':function(_0x268840){return _0x268840();}},_0x506060=_0x2a5d94['VtLrC'](loadCache),_0x57648d=_0x506060['sessions'][_0x3ee27b];_0x57648d&&(delete _0x57648d['featureId'],delete _0x57648d[_0x9c374a(0x97)],saveCache(_0x506060));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2de1ee){const _0x39568b=_0xe64401,_0x104552={'dDbmL':function(_0x31f864,_0x574bb8,_0x456192){return _0x31f864(_0x574bb8,_0x456192);},'iiMUL':function(_0x4577c4,_0x15f7a4){return _0x4577c4>=_0x15f7a4;},'QeBOB':function(_0x22b7d1,_0x4caa25){return _0x22b7d1-_0x4caa25;}},_0x485fab=loadCache(),_0xd848d1=_0x104552['dDbmL'](getOrCreateSession,_0x485fab,_0x2de1ee),_0x30da86=_0xd848d1['lastPlanReminderAt']||0x0,_0x4b1bdd=Date[_0x39568b(0xa8)]();if(_0x104552[_0x39568b(0xbe)](_0x104552[_0x39568b(0xa2)](_0x4b1bdd,_0x30da86),PLAN_REMINDER_INTERVAL_MS))return _0xd848d1['lastPlanReminderAt']=_0x4b1bdd,saveCache(_0x485fab),!![];return![];}export function shouldShowStopReminder(_0x112ddd){const _0x4fc693=_0xe64401,_0x2912ea={'HCknw':function(_0x473cdb){return _0x473cdb();},'rfDLA':function(_0x34db2e,_0xfab8ca,_0x48718b){return _0x34db2e(_0xfab8ca,_0x48718b);},'JCCuV':function(_0x1f86b9,_0x50ca34){return _0x1f86b9>=_0x50ca34;},'JKvCf':function(_0x21dbca,_0x222941){return _0x21dbca-_0x222941;}},_0x87de2e=_0x2912ea[_0x4fc693(0x96)](loadCache),_0x246fec=_0x2912ea[_0x4fc693(0xb2)](getOrCreateSession,_0x87de2e,_0x112ddd),_0x521f9c=_0x246fec[_0x4fc693(0xc2)]||0x0,_0x91389e=Date[_0x4fc693(0xa8)]();if(_0x2912ea[_0x4fc693(0xab)](_0x2912ea['JKvCf'](_0x91389e,_0x521f9c),STOP_REMINDER_INTERVAL_MS))return _0x246fec[_0x4fc693(0xc2)]=_0x91389e,saveCache(_0x87de2e),!![];return![];}function _0x47a8(){const _0x30ab18=['SCuRg','now','105654yUVMcf','1270ONtsnI','JCCuV','trim','lastEnabledSessionClearedAt','clear','join','gaiCX','CErfo','rfDLA','1965792nZOrNV','featureId','fjTsD','pipe','PhVBR','master','utf-8','jkYkT','main','GAGPr','28tsTXPy','iiMUL','parse','ifhvM','cOJBT','lastStopReminderAt','RfEFr','482584LajpKf','writeFileSync','KpJwd','NolXU','dirname','73278JarbnR','ymajo','KnbYL','enabled','HCknw','registeredAt','sessions','dDlKi','8122482JJUDKu','1224651eRllNB','existsSync','xkHcv','JnCCa','currentBranch','prompted','1268OvFtNY','QeBOB','branches','ZVXtp','wqtfU','stringify'];_0x47a8=function(){return _0x30ab18;};return _0x47a8();}export function hasSessionBeenPrompted(_0x592e24){const _0x4b30a7=_0xe64401,_0x593273={'UXpQh':function(_0x52d144,_0x594bfa){return _0x52d144===_0x594bfa;}},_0x5e3ffc=loadCache();return _0x593273['UXpQh'](_0x5e3ffc[_0x4b30a7(0x98)][_0x592e24]?.['prompted'],!![]);}export function markSessionPrompted(_0x3b5625){const _0x5c6312=_0xe64401,_0x4ff664={'cOJBT':function(_0x4d4a47){return _0x4d4a47();},'vuDXM':function(_0x175b1e,_0x504d67,_0x1cccd5){return _0x175b1e(_0x504d67,_0x1cccd5);}},_0x224ba9=_0x4ff664[_0x5c6312(0xc1)](loadCache),_0x304c4d=_0x4ff664['vuDXM'](getOrCreateSession,_0x224ba9,_0x3b5625);_0x304c4d[_0x5c6312(0xa0)]=!![],saveCache(_0x224ba9);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x3a4521=_0x5c99;(function(_0x1b10e8,_0x5d48bf){const _0x5ae006=_0x5c99,_0x2c6acb=_0x1b10e8();while(!![]){try{const _0x79a96b=-parseInt(_0x5ae006(0x15d))/0x1+parseInt(_0x5ae006(0x156))/0x2+parseInt(_0x5ae006(0x151))/0x3+-parseInt(_0x5ae006(0x13e))/0x4+-parseInt(_0x5ae006(0x14f))/0x5+parseInt(_0x5ae006(0x135))/0x6*(-parseInt(_0x5ae006(0x150))/0x7)+-parseInt(_0x5ae006(0x15a))/0x8*(-parseInt(_0x5ae006(0x144))/0x9);if(_0x79a96b===_0x5d48bf)break;else _0x2c6acb['push'](_0x2c6acb['shift']());}catch(_0xbee450){_0x2c6acb['push'](_0x2c6acb['shift']());}}}(_0x5963,0x7a47f));import*as _0x3dd4d1 from'fs';function _0x5c99(_0x47d66e,_0x47e8b7){_0x47d66e=_0x47d66e-0x12d;const _0x59632f=_0x5963();let _0x5c9962=_0x59632f[_0x47d66e];return _0x5c9962;}import*as _0x43474c from'path';import*as _0x23f34f from'os';import{execSync}from'child_process';const CACHE_FILE=_0x43474c[_0x3a4521(0x15c)](_0x23f34f['homedir'](),'.claude',_0x3a4521(0x14d));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x255879=_0x3a4521,_0x27272d={'fBiZU':_0x255879(0x12f)};try{if(_0x3dd4d1[_0x255879(0x143)](CACHE_FILE)){const _0x4c9157=JSON['parse'](_0x3dd4d1[_0x255879(0x155)](CACHE_FILE,_0x27272d['fBiZU']));return{'version':0x3,'sessions':_0x4c9157['sessions']||{},'branches':_0x4c9157['branches']||{},'lastEnabledSessionClearedAt':_0x4c9157[_0x255879(0x15e)]};}}catch{}return createEmptyCache();}function saveCache(_0x208019){const _0x2e1ad8=_0x3a4521;try{const _0x341308=_0x43474c[_0x2e1ad8(0x13c)](CACHE_FILE);!_0x3dd4d1[_0x2e1ad8(0x143)](_0x341308)&&_0x3dd4d1['mkdirSync'](_0x341308,{'recursive':!![]}),_0x3dd4d1['writeFileSync'](CACHE_FILE,JSON[_0x2e1ad8(0x13a)](_0x208019,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4919bc=_0x3a4521,_0x5d7734={'jFuAC':function(_0x3a23ef,_0x29387b,_0x3aec9f){return _0x3a23ef(_0x29387b,_0x3aec9f);},'bAkzB':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','AJjKl':'utf-8','dXVOz':'pipe','HLovj':'HEAD'};try{const _0x4baa98=_0x5d7734[_0x4919bc(0x138)](execSync,_0x5d7734['bAkzB'],{'encoding':_0x5d7734['AJjKl'],'stdio':[_0x5d7734['dXVOz'],'pipe',_0x5d7734['dXVOz']]})[_0x4919bc(0x158)]();if(!_0x4baa98||_0x4baa98===_0x5d7734['HLovj'])return null;return _0x4baa98;}catch{return null;}}export function enableBranch(_0x20b308){const _0x2dfd66=_0x3a4521,_0x56d6fe={'zhIPo':function(_0x1a58eb){return _0x1a58eb();}},_0x783361=_0x56d6fe[_0x2dfd66(0x15b)](loadCache);_0x783361[_0x2dfd66(0x142)][_0x20b308]=!![],saveCache(_0x783361);}export function disableBranch(_0x420d20){const _0x292e14=_0x3a4521,_0x3bc775={'vQIpU':function(_0x36b60d){return _0x36b60d();},'ySiuv':function(_0x5aa453,_0xb285d0){return _0x5aa453(_0xb285d0);}},_0x77d292=_0x3bc775[_0x292e14(0x157)](loadCache);delete _0x77d292[_0x292e14(0x142)][_0x420d20],_0x3bc775['ySiuv'](saveCache,_0x77d292);}export function isBranchEnabled(_0x1deb45){const _0x167571=_0x3a4521,_0x55560d={'OxvHx':function(_0xa29259){return _0xa29259();},'sPPDA':function(_0x21ebd7,_0x3c0a38){return _0x21ebd7===_0x3c0a38;}},_0x4a5198=_0x55560d[_0x167571(0x140)](loadCache);return _0x55560d[_0x167571(0x133)](_0x4a5198['branches'][_0x1deb45],!![]);}function getOrCreateSession(_0x573f68,_0x351090){const _0x544653=_0x3a4521;return!_0x573f68[_0x544653(0x14e)][_0x351090]&&(_0x573f68['sessions'][_0x351090]={}),_0x573f68['sessions'][_0x351090];}export function enableSession(_0x53bc47){const _0x1e55f2=_0x3a4521,_0x2a0c23={'Qafxh':function(_0x8e4b30){return _0x8e4b30();},'PMHdn':function(_0x65e126,_0x5d8ff9,_0x29364c){return _0x65e126(_0x5d8ff9,_0x29364c);},'njhcJ':function(_0x50b315,_0x3e61b6){return _0x50b315!==_0x3e61b6;},'JYGSF':'main','wfQjs':function(_0x3f2b02,_0x1a51b6){return _0x3f2b02(_0x1a51b6);}},_0x5e9940=_0x2a0c23['Qafxh'](loadCache),_0x1b3350=_0x2a0c23[_0x1e55f2(0x13b)](getOrCreateSession,_0x5e9940,_0x53bc47);_0x1b3350[_0x1e55f2(0x13d)]=!![];const _0x1a8004=getCurrentBranch();_0x1a8004&&_0x2a0c23['njhcJ'](_0x1a8004,_0x2a0c23['JYGSF'])&&_0x1a8004!==_0x1e55f2(0x149)&&(_0x5e9940['branches'][_0x1a8004]=!![],_0x1b3350['currentBranch']=_0x1a8004),_0x2a0c23['wfQjs'](saveCache,_0x5e9940);}export function isSessionEnabled(_0x3078a6){const _0x2e7b15=_0x3a4521,_0x39b70f={'CQXFt':function(_0x61d789,_0x5381fa){return _0x61d789===_0x5381fa;},'VZTHF':_0x2e7b15(0x132),'eYILT':_0x2e7b15(0x149),'tDaSl':function(_0x67bd4a,_0x10445b){return _0x67bd4a===_0x10445b;}},_0x1b5583=loadCache(),_0x3a5c94=getCurrentBranch();if(!_0x3a5c94||_0x39b70f['CQXFt'](_0x3a5c94,_0x39b70f['VZTHF'])||_0x3a5c94===_0x39b70f[_0x2e7b15(0x147)])return _0x1b5583[_0x2e7b15(0x14e)][_0x3078a6]?.['enabled']===!![];const _0x230988=_0x1b5583['branches'][_0x3a5c94]===!![],_0x4f275e=_0x39b70f[_0x2e7b15(0x131)](_0x1b5583[_0x2e7b15(0x14e)][_0x3078a6]?.['enabled'],!![]);return _0x230988||_0x4f275e;}function _0x5963(){const _0xba7266=['lastStopReminderAt','readFileSync','1076464SmBiOV','vQIpU','trim','PVgBi','32PBwWnq','zhIPo','join','539703dUyszW','lastEnabledSessionClearedAt','currentBranch','EFAHP','utf-8','eZkBu','tDaSl','main','sPPDA','eShNO','6ASDsCE','toISOString','prompted','jFuAC','now','stringify','PMHdn','dirname','enabled','928204YoYPMx','QmkCS','OxvHx','hDElD','branches','existsSync','3997152OJoBOU','SUZOG','featureId','eYILT','Paumv','master','cIjEo','inOcu','dfczh','.ranger_cache.json','sessions','1895170ltwjJt','5473783CLWgfx','356628oJMRfl','jEoNl','registeredAt'];_0x5963=function(){return _0xba7266;};return _0x5963();}export function disableSession(_0x2a9d33){const _0x34ae8d={'JRKFk':function(_0x1eb80f,_0x4cb756,_0x29b0a2){return _0x1eb80f(_0x4cb756,_0x29b0a2);}},_0x3d40c2=loadCache(),_0x21d92c=_0x34ae8d['JRKFk'](getOrCreateSession,_0x3d40c2,_0x2a9d33);_0x21d92c['enabled']=![],saveCache(_0x3d40c2);}export function updateBranchTracking(_0x9782e2){const _0x184d6c=_0x3a4521,_0x9b29b4={'eShNO':function(_0x2bb754){return _0x2bb754();},'dfczh':_0x184d6c(0x132),'CGMfQ':'master','KTgSe':function(_0xf67df6,_0xd01eb4){return _0xf67df6(_0xd01eb4);}},_0xb54c7d=_0x9b29b4[_0x184d6c(0x134)](loadCache),_0x336193=_0xb54c7d['sessions'][_0x9782e2];if(!_0x336193?.[_0x184d6c(0x13d)])return;const _0x9c4dad=_0x9b29b4[_0x184d6c(0x134)](getCurrentBranch);if(!_0x9c4dad||_0x9c4dad===_0x9b29b4[_0x184d6c(0x14c)]||_0x9c4dad===_0x9b29b4['CGMfQ'])return;_0x336193['currentBranch']!==_0x9c4dad&&(_0xb54c7d[_0x184d6c(0x142)][_0x9c4dad]=!![],_0x336193['currentBranch']=_0x9c4dad,_0x9b29b4['KTgSe'](saveCache,_0xb54c7d));}export function initBranchTracking(_0x3f201a){const _0x262c8b=_0x3a4521,_0x45ba49={'xXlVU':function(_0x4c63b7){return _0x4c63b7();},'Paumv':_0x262c8b(0x132),'ByXxC':function(_0x48e001,_0x2045b0,_0x2d37f){return _0x48e001(_0x2045b0,_0x2d37f);},'etQnd':function(_0xd74a6d,_0x5bb61a){return _0xd74a6d(_0x5bb61a);}},_0x1119d2=_0x45ba49['xXlVU'](loadCache),_0x12a771=getCurrentBranch();if(!_0x12a771||_0x12a771===_0x45ba49[_0x262c8b(0x148)]||_0x12a771==='master')return;if(_0x1119d2['branches'][_0x12a771]===!![]){const _0x290a23=_0x45ba49['ByXxC'](getOrCreateSession,_0x1119d2,_0x3f201a);_0x290a23['enabled']=!![],_0x290a23[_0x262c8b(0x12d)]=_0x12a771,_0x45ba49['etQnd'](saveCache,_0x1119d2);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2db734){const _0x46ee94=_0x3a4521,_0x452d2e={'SUZOG':function(_0x55d0bb){return _0x55d0bb();}},_0x1dfe5f=_0x452d2e[_0x46ee94(0x145)](loadCache),_0x48b7ad=_0x1dfe5f['sessions'][_0x2db734];_0x48b7ad?.['enabled']&&(_0x1dfe5f['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x1dfe5f));}export function shouldAutoEnableAfterClear(_0x144cee){const _0x479c2a=_0x3a4521,_0x56ce7f={'jEoNl':function(_0x33cd89,_0x9cfa45){return _0x33cd89!==_0x9cfa45;},'QmkCS':function(_0x132705,_0x2ab72f){return _0x132705<=_0x2ab72f;}};if(_0x56ce7f[_0x479c2a(0x152)](_0x144cee,'clear'))return![];const _0x360dc8=loadCache(),_0x4a0187=_0x360dc8['lastEnabledSessionClearedAt'];if(!_0x4a0187)return![];const _0xd35af4=Date[_0x479c2a(0x139)]()-_0x4a0187;return _0x56ce7f[_0x479c2a(0x13f)](_0xd35af4,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x298843){const _0x2ac60b=_0x3a4521,_0x5164c4={'inOcu':function(_0x2b8d30){return _0x2b8d30();},'cIjEo':function(_0x58964b){return _0x58964b();},'EFAHP':'main','MEAKK':function(_0xb297f9,_0x54fa36){return _0xb297f9!==_0x54fa36;},'PVgBi':function(_0x2524af,_0x3fa7f2){return _0x2524af(_0x3fa7f2);}},_0x56dca7=_0x5164c4[_0x2ac60b(0x14b)](loadCache),_0x249789=getOrCreateSession(_0x56dca7,_0x298843);_0x249789['enabled']=!![];const _0xe911f3=_0x5164c4[_0x2ac60b(0x14a)](getCurrentBranch);_0xe911f3&&_0xe911f3!==_0x5164c4[_0x2ac60b(0x12e)]&&_0x5164c4['MEAKK'](_0xe911f3,_0x2ac60b(0x149))&&(_0x249789['currentBranch']=_0xe911f3),delete _0x56dca7[_0x2ac60b(0x15e)],_0x5164c4[_0x2ac60b(0x159)](saveCache,_0x56dca7);}export function registerSession(_0x53bc79,_0x279128){const _0xd29ede=_0x3a4521,_0x284de5={'wHgQz':function(_0x57162b){return _0x57162b();},'ssyoa':function(_0x15a14b,_0x4eeca3,_0xf58b26){return _0x15a14b(_0x4eeca3,_0xf58b26);}},_0x28df2a=_0x284de5['wHgQz'](loadCache),_0x32cf18=_0x284de5['ssyoa'](getOrCreateSession,_0x28df2a,_0x53bc79);_0x32cf18[_0xd29ede(0x146)]=_0x279128,_0x32cf18['registeredAt']=new Date()[_0xd29ede(0x136)](),saveCache(_0x28df2a);}export function getSessionEntry(_0x375beb){const _0x3fc058=_0x3a4521,_0x5c5ebc={'eccAf':function(_0x538a17){return _0x538a17();}},_0x440fba=_0x5c5ebc['eccAf'](loadCache),_0x437a40=_0x440fba[_0x3fc058(0x14e)][_0x375beb];if(_0x437a40?.['featureId']&&_0x437a40?.['registeredAt'])return{'featureId':_0x437a40['featureId'],'registeredAt':_0x437a40[_0x3fc058(0x153)]};return null;}export function unregisterSession(_0xf5f63a){const _0x5d4b11=loadCache(),_0x770c4b=_0x5d4b11['sessions'][_0xf5f63a];_0x770c4b&&(delete _0x770c4b['featureId'],delete _0x770c4b['registeredAt'],saveCache(_0x5d4b11));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x4b058f){const _0x21c774=_0x3a4521,_0x44981f={'Kjlkp':function(_0x35e3dc,_0x2a4a3c,_0x300caa){return _0x35e3dc(_0x2a4a3c,_0x300caa);},'hDElD':function(_0x35c024,_0x3f0e05){return _0x35c024>=_0x3f0e05;}},_0x269261=loadCache(),_0x5e0204=_0x44981f['Kjlkp'](getOrCreateSession,_0x269261,_0x4b058f),_0x5de60e=_0x5e0204['lastPlanReminderAt']||0x0,_0x4fa2a9=Date[_0x21c774(0x139)]();if(_0x44981f[_0x21c774(0x141)](_0x4fa2a9-_0x5de60e,PLAN_REMINDER_INTERVAL_MS))return _0x5e0204['lastPlanReminderAt']=_0x4fa2a9,saveCache(_0x269261),!![];return![];}export function shouldShowStopReminder(_0xdecd10){const _0x425ece=_0x3a4521,_0x286349={'UotJR':function(_0x3c0a3d){return _0x3c0a3d();},'nVqWk':function(_0x23bfda,_0x9a2e2c){return _0x23bfda>=_0x9a2e2c;},'qsDCQ':function(_0xb33f3e,_0x83ef77){return _0xb33f3e-_0x83ef77;}},_0x4311a8=_0x286349['UotJR'](loadCache),_0x1b8c9f=getOrCreateSession(_0x4311a8,_0xdecd10),_0x5d9e98=_0x1b8c9f[_0x425ece(0x154)]||0x0,_0x5c60f3=Date['now']();if(_0x286349['nVqWk'](_0x286349['qsDCQ'](_0x5c60f3,_0x5d9e98),STOP_REMINDER_INTERVAL_MS))return _0x1b8c9f[_0x425ece(0x154)]=_0x5c60f3,saveCache(_0x4311a8),!![];return![];}export function hasSessionBeenPrompted(_0xc8026b){const _0x5c7037=_0x3a4521,_0x574ae2={'eZkBu':function(_0x245428){return _0x245428();}},_0x3991bb=_0x574ae2[_0x5c7037(0x130)](loadCache);return _0x3991bb['sessions'][_0xc8026b]?.[_0x5c7037(0x137)]===!![];}export function markSessionPrompted(_0x37d061){const _0x23930b=loadCache(),_0x544fca=getOrCreateSession(_0x23930b,_0x37d061);_0x544fca['prompted']=!![],saveCache(_0x23930b);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f68ed=_0x9bd2;(function(_0x5d8121,_0x162887){const _0x5040cc=_0x9bd2,_0x3b420c=_0x5d8121();while(!![]){try{const _0x25e747=parseInt(_0x5040cc(0x10e))/0x1*(-parseInt(_0x5040cc(0x122))/0x2)+parseInt(_0x5040cc(0xc6))/0x3*(-parseInt(_0x5040cc(0xd7))/0x4)+-parseInt(_0x5040cc(0xe6))/0x5+parseInt(_0x5040cc(0xd5))/0x6+parseInt(_0x5040cc(0xd4))/0x7*(-parseInt(_0x5040cc(0xeb))/0x8)+parseInt(_0x5040cc(0xf3))/0x9*(parseInt(_0x5040cc(0x111))/0xa)+parseInt(_0x5040cc(0x10b))/0xb;if(_0x25e747===_0x162887)break;else _0x3b420c['push'](_0x3b420c['shift']());}catch(_0x7d8a69){_0x3b420c['push'](_0x3b420c['shift']());}}}(_0x127e,0x6c9e9));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(_0x18af57,_0xb1ce30){const _0x5009e8=_0x9bd2,_0x3e25b5={'XmkEf':function(_0xaf411,_0x164af1,_0x211bfb,_0x1cd366){return _0xaf411(_0x164af1,_0x211bfb,_0x1cd366);},'NGPXb':function(_0xf5ce0e,_0x32940d,_0x35d0fe){return _0xf5ce0e(_0x32940d,_0x35d0fe);},'vCUyZ':'local','AERDo':function(_0xe4efd,_0x38f3ba,_0x35afcd){return _0xe4efd(_0x38f3ba,_0x35afcd);},'FoJKP':function(_0x2841fa,_0x267d4b){return _0x2841fa(_0x267d4b);},'TocNR':function(_0x1b268c,_0x2c7a02){return _0x1b268c(_0x2c7a02);},'RDLoo':function(_0x3c4498,_0x304270){return _0x3c4498!==_0x304270;},'zBnOQ':function(_0x4ccc9b,_0x20ee1f){return _0x4ccc9b!==_0x20ee1f;}},_0x489a0f=_0x3e25b5['XmkEf'](join,_0xb1ce30,'ci',_0x18af57),_0x33a665=_0x3e25b5[_0x5009e8(0xcc)](join,_0xb1ce30,'local',_0x18af57),_0x5b0b63=_0x3e25b5['NGPXb'](join,_0xb1ce30,_0x18af57),_0x558204=join(_0xb1ce30,_0x3e25b5['vCUyZ']),_0x5a7244=_0x3e25b5['AERDo'](join,_0xb1ce30,'ci');if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x489a0f))return _0x489a0f;if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x33a665))return _0x33a665;if(_0x3e25b5[_0x5009e8(0xe8)](existsSync,_0x5b0b63)&&(_0x3e25b5['RDLoo'](_0x5b0b63,_0x558204)&&_0x3e25b5[_0x5009e8(0xfd)](_0x5b0b63,_0x5a7244)?!![]:hasLegacyProfileFiles(_0x5b0b63)))return _0x5b0b63;return null;}export function getEnvDir(_0x568806){const _0x3a8328=_0x9bd2,_0x3b8668={'hUhBu':function(_0x36b531){return _0x36b531();}},_0x51e631=_0x3b8668[_0x3a8328(0xca)](getRangerDir),_0x28ced9=findEnvInRoot(_0x568806,_0x51e631);if(_0x28ced9)return _0x28ced9;const _0x4fc75d=_0x3b8668[_0x3a8328(0xca)](getRangerHomeDir);if(_0x4fc75d!==_0x51e631){const _0xbcc776=findEnvInRoot(_0x568806,_0x4fc75d);if(_0xbcc776)return _0xbcc776;}return join(_0x51e631,'local',_0x568806);}function _0x127e(){const _0x590b2d=['location','allowInsecureLocalhost','--disable-features=WebBluetooth','UVdcV','chromium','20858893alRnbL','zoQiG','join','3jCUFiK','install','JypxI','10dnCknN','--allow-insecure-localhost','DtmyV','ranger-auth-','vSJXs','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','isArray','fromEntries','PhhLO','jmsIF','parse','vwJVq','clipboard-write','HFhsj','iATMC','local','hvycM','575518EiwKIb','NUETt','fZSKC','includes','IKZJC','launchOptions','FoJKP','DSVZe','headless','qbuHv','setupHeaders','entries','header','xYBxc','235551WAHDRo','boolean','HzBPB','keys','hUhBu','rangerDir','XmkEf','BAXTO','UkBgv','browser','vision','ZEvZu','stringify','length','161wlCjiw','3711912fyXuGl','zhbiQ','16DZqKPS','qZAkJ','tabs','storageStatePath','now','extraHTTPHeaders','Gjikh','getuid','contextOptions','--disable-web-security','args','.json','settings.json','push','legacy','2054335ZLLzBX','repeat','TocNR','Qwsqm','storageState','273704yopeUG','replace','playwright-cli','core','cOpkB','lUCIZ','--no-sandbox','sessions','2745909hFxxjT','QHoej','dHhgP','\x20is\x20not\x20set','all','userAgent','auth.json','TLCzD','map','filter','zBnOQ','object','tempAuthPath','aIicT','MMmWb','PReWV','path','string','juEsP'];_0x127e=function(){return _0x590b2d;};return _0x127e();}export function findExistingEnv(_0x4402ae,_0x58be99){const _0x253d94=_0x9bd2,_0xd2531c={'aIicT':function(_0x127ae6){return _0x127ae6();},'WXQYu':_0x253d94(0x120),'uSEyx':function(_0x1d638a,_0x5b9ba0,_0x29f197){return _0x1d638a(_0x5b9ba0,_0x29f197);},'vSJXs':function(_0x300ac2,_0x518184,_0x5066c8,_0x42ee34){return _0x300ac2(_0x518184,_0x5066c8,_0x42ee34);},'Qwsqm':function(_0x4f057a,_0x55c341){return _0x4f057a(_0x55c341);},'fZSKC':function(_0x316db5,_0x119201){return _0x316db5===_0x119201;},'DSVZe':'legacy'},_0xa23e87=_0x58be99?.[_0x253d94(0xcb)],_0xb31c63=_0xa23e87?[_0xa23e87]:[getRangerDir(),_0xd2531c[_0x253d94(0x100)](getRangerHomeDir)][_0x253d94(0xfc)]((_0x57400f,_0x504062,_0x1dabf5)=>_0x1dabf5['indexOf'](_0x57400f)===_0x504062),_0x9e1969=_0x58be99?.['locations']??['ci',_0xd2531c['WXQYu'],'legacy'];for(const _0x204bfb of _0xb31c63){const _0x50e6e8=join(_0x204bfb,'local'),_0x2ed21b=_0xd2531c['uSEyx'](join,_0x204bfb,'ci'),_0x30a29e=[{'location':'ci','path':_0xd2531c[_0x253d94(0x115)](join,_0x204bfb,'ci',_0x4402ae)},{'location':_0x253d94(0x120),'path':join(_0x204bfb,_0xd2531c['WXQYu'],_0x4402ae)},{'location':_0x253d94(0xe5),'path':join(_0x204bfb,_0x4402ae)}];for(const _0x1dfc7a of _0x30a29e){if(_0x9e1969['includes'](_0x1dfc7a[_0x253d94(0x106)])&&_0xd2531c[_0x253d94(0xe9)](existsSync,_0x1dfc7a[_0x253d94(0x103)])){if(_0xd2531c['fZSKC'](_0x1dfc7a['location'],_0xd2531c[_0x253d94(0xbf)])&&(_0x1dfc7a[_0x253d94(0x103)]===_0x50e6e8||_0xd2531c[_0x253d94(0x124)](_0x1dfc7a[_0x253d94(0x103)],_0x2ed21b))&&!hasLegacyProfileFiles(_0x1dfc7a['path']))continue;return{'path':_0x1dfc7a['path'],'location':_0x1dfc7a['location']};}}}return null;}function hasLegacyProfileFiles(_0x114b04){const _0x6af39a=_0x9bd2,_0x2a5a07={'IKZJC':function(_0x2cfcfb,_0x2dba09,_0x28163e){return _0x2cfcfb(_0x2dba09,_0x28163e);},'fOuVR':'auth.json'};return existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x6af39a(0xe3)))||existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x2a5a07['fOuVR']))||existsSync(_0x2a5a07['IKZJC'](join,_0x114b04,'auth.json.enc'));}export function isEnvCi(_0x18e9d3){const _0x4dbbb5=_0x9bd2,_0x240217={'cQcGQ':function(_0x527769,_0x296680){return _0x527769(_0x296680);},'sVggk':function(_0x29b212,_0x18b615,_0x225e65,_0x307d95){return _0x29b212(_0x18b615,_0x225e65,_0x307d95);},'PhhLO':function(_0x495661){return _0x495661();}};return _0x240217['cQcGQ'](existsSync,_0x240217['sVggk'](join,_0x240217[_0x4dbbb5(0x119)](getRangerDir),'ci',_0x18e9d3));}export async function cleanupTempFiles(_0x44a6ee){const _0x3dae77=_0x9bd2,_0x326f85={'DlHaB':function(_0x3b4b82,_0x243b9b){return _0x3b4b82!==_0x243b9b;},'gtcaY':'ENOENT'},_0x69574e=[_0x44a6ee[_0x3dae77(0xff)],_0x44a6ee['configPath']]['filter'](Boolean);await Promise[_0x3dae77(0xf7)](_0x69574e['map'](_0x3dd628=>unlink(_0x3dd628)['catch'](_0x25bf30=>{_0x326f85['DlHaB'](_0x25bf30['code'],_0x326f85['gtcaY'])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3dd628+':',_0x25bf30['message']);})));}export function getSettingsPath(_0x383279){const _0x551720=_0x9bd2,_0x74b8e8={'damDm':function(_0x1613e6,_0x20b461,_0x577826){return _0x1613e6(_0x20b461,_0x577826);},'eLXqX':function(_0x2585bf,_0x54bdca){return _0x2585bf(_0x54bdca);},'igKYe':_0x551720(0xe3)};return _0x74b8e8['damDm'](join,_0x74b8e8['eLXqX'](getEnvDir,_0x383279),_0x74b8e8['igKYe']);}export async function loadSettings(_0x12ab60){const _0x223e9a=_0x9bd2,_0x4b8355={'jmsIF':function(_0x42ae,_0x14b83b){return _0x42ae(_0x14b83b);},'DtmyV':function(_0x1cdb61,_0x484b73,_0x575f92){return _0x1cdb61(_0x484b73,_0x575f92);}},_0x1fccba=getSettingsPath(_0x12ab60);if(!_0x4b8355[_0x223e9a(0x11a)](existsSync,_0x1fccba))return{};try{const _0x178295=await _0x4b8355[_0x223e9a(0x113)](readFile,_0x1fccba,'utf-8');return JSON[_0x223e9a(0x11b)](_0x178295);}catch{return{};}}export async function saveSettings(_0x40ea40,_0x381ef8){const _0x56f9a9=_0x9bd2,_0x42e6cb={'hvycM':function(_0x3eb2f4,_0x1862a7){return _0x3eb2f4(_0x1862a7);},'dHhgP':function(_0x433412,_0x2a1f26){return _0x433412(_0x2a1f26);},'iEHnG':function(_0x45739a,_0x5de50e,_0x38e458){return _0x45739a(_0x5de50e,_0x38e458);}},_0x57ee94=_0x42e6cb[_0x56f9a9(0x121)](getSettingsPath,_0x40ea40),_0x20c87a=_0x42e6cb['hvycM'](dirname,_0x57ee94);!_0x42e6cb[_0x56f9a9(0xf5)](existsSync,_0x20c87a)&&await _0x42e6cb['iEHnG'](mkdir,_0x20c87a,{'recursive':!![]}),await writeFile(_0x57ee94,JSON[_0x56f9a9(0xd2)](_0x381ef8,null,0x2));}export function resolveEnvVars(_0x4e9958){const _0x43052e=_0x9bd2,_0x2b93e1={'vKSgj':function(_0x10c4eb,_0x32a5c6){return _0x10c4eb===_0x32a5c6;},'hMfMX':_0x43052e(0x104),'zhbiQ':'object'};if(typeof _0x4e9958===_0x2b93e1['hMfMX'])return _0x4e9958[_0x43052e(0xec)](/\$\{(\w+)\}/g,(_0x126ecd,_0x2c6165)=>{const _0x349632=_0x43052e,_0x195c85=process['env'][_0x2c6165];if(_0x2b93e1['vKSgj'](_0x195c85,undefined))throw new Error('Environment\x20variable\x20'+_0x2c6165+_0x349632(0xf6));return _0x195c85;});if(Array[_0x43052e(0x117)](_0x4e9958))return _0x4e9958['map'](resolveEnvVars);if(_0x4e9958&&typeof _0x4e9958===_0x2b93e1[_0x43052e(0xd6)])return Object[_0x43052e(0x118)](Object[_0x43052e(0xc3)](_0x4e9958)[_0x43052e(0xfb)](([_0x1b6712,_0x12bbfd])=>[_0x1b6712,resolveEnvVars(_0x12bbfd)]));return _0x4e9958;}const isRecord=_0x523c32=>typeof _0x523c32==='object'&&_0x523c32!==null&&!Array[_0x1f68ed(0x117)](_0x523c32),asRecord=_0x31d35d=>isRecord(_0x31d35d)?_0x31d35d:undefined,mergeHeaders=(_0x308afd,_0x42b0b8)=>{const _0x403aaa=_0x1f68ed,_0x2045ad={'Gjikh':function(_0x484ba4,_0x53e6b5){return _0x484ba4??_0x53e6b5;}},_0x168c7b={..._0x2045ad['Gjikh'](_0x308afd,{}),..._0x2045ad[_0x403aaa(0xdd)](_0x42b0b8,{})};return Object[_0x403aaa(0xc9)](_0x168c7b)['length']?_0x168c7b:undefined;},SAFE_MODE_ARGS=[_0x1f68ed(0x108)],ALLOW_LOCALHOST_ARGS=[_0x1f68ed(0xe0),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x1f68ed(0x112)];export function buildBrowserOptionsFromSettings(_0x3d28b,_0x9bda3d={}){const _0x2353b2=_0x1f68ed,_0x18f61a={'xYBxc':function(_0x452fe3,_0x2ead80){return _0x452fe3(_0x2ead80);},'FlOYm':function(_0x3946c0,_0x1792e4){return _0x3946c0===_0x1792e4;},'UkBgv':_0x2353b2(0xc7),'lGOLN':'string','MMmWb':function(_0x59b0df,_0x7ff0db,_0x539835){return _0x59b0df(_0x7ff0db,_0x539835);}},_0x1941e3=asRecord(_0x3d28b[_0x2353b2(0xcf)]),_0x3b4b08={..._0x18f61a[_0x2353b2(0xc5)](asRecord,_0x1941e3?.[_0x2353b2(0x127)])??{}};_0x18f61a['FlOYm'](typeof _0x9bda3d['headless'],_0x18f61a[_0x2353b2(0xce)])&&(_0x3b4b08['headless']=_0x9bda3d['headless']);if(_0x3d28b['safeMode']){const _0xb8f2e9=_0x3b4b08['args']??[],_0x4dfaa0=SAFE_MODE_ARGS[_0x2353b2(0xfc)](_0x2f60da=>!_0xb8f2e9[_0x2353b2(0x125)](_0x2f60da));_0x3b4b08[_0x2353b2(0xe1)]=[..._0xb8f2e9,..._0x4dfaa0];}if(_0x3d28b[_0x2353b2(0x107)]){const _0x5cf5ee=_0x3b4b08['args']??[],_0x2250ba=ALLOW_LOCALHOST_ARGS[_0x2353b2(0xfc)](_0x2cfb7d=>!_0x5cf5ee[_0x2353b2(0x125)](_0x2cfb7d));_0x3b4b08['args']=[..._0x5cf5ee,..._0x2250ba];}const _0x3f9ac3={...asRecord(_0x1941e3?.['contextOptions'])??{}};_0x3f9ac3['ignoreHTTPSErrors']=!![];typeof _0x3d28b[_0x2353b2(0xf8)]===_0x18f61a['lGOLN']&&(_0x3f9ac3['userAgent']=_0x3d28b[_0x2353b2(0xf8)]);const _0x13e94d=_0x18f61a[_0x2353b2(0x101)](mergeHeaders,asRecord(_0x3f9ac3['extraHTTPHeaders']),_0x18f61a['xYBxc'](asRecord,_0x3d28b['headers']));return _0x13e94d?_0x3f9ac3[_0x2353b2(0xdc)]=_0x13e94d:delete _0x3f9ac3[_0x2353b2(0xdc)],_0x9bda3d['storageStatePath']&&(_0x3f9ac3[_0x2353b2(0xea)]=_0x9bda3d[_0x2353b2(0xda)]),{'launchOptions':_0x3b4b08,'contextOptions':_0x3f9ac3};}async function resolveLocalAuthPath(_0x40639f){const _0x164fe2=_0x1f68ed,_0x1efc02={'QHVoi':function(_0x2d6772,_0x12b00c,_0x4bfac3){return _0x2d6772(_0x12b00c,_0x4bfac3);},'zmqjF':'auth.json.enc','JypxI':_0x164fe2(0xf9),'fwEvD':function(_0x2be459,_0x21b21a){return _0x2be459(_0x21b21a);},'ljozB':function(_0x385839,_0x2ac9c9){return _0x385839(_0x2ac9c9);},'kokeC':function(_0x2dd1e9,_0x3cf7e1){return _0x2dd1e9(_0x3cf7e1);},'juEsP':function(_0x3b55b7,_0x6d603c){return _0x3b55b7(_0x6d603c);}},_0x465803=_0x1efc02['QHVoi'](join,_0x40639f,_0x1efc02['zmqjF']),_0x2e530c=join(_0x40639f,_0x1efc02[_0x164fe2(0x110)]);if(_0x1efc02['fwEvD'](existsSync,_0x465803))try{const _0xb81025=await getToken();if(!_0xb81025)throw new Error(_0x164fe2(0x116));const _0x140de5=await _0x1efc02['ljozB'](readFile,_0x465803),_0x2166f6=decrypt(_0x140de5,_0xb81025),_0xbe9929=_0x1efc02['QHVoi'](join,tmpdir(),_0x164fe2(0x114)+Date[_0x164fe2(0xdb)]()+_0x164fe2(0xe2));return await writeFile(_0xbe9929,_0x2166f6),{'storageStatePath':_0xbe9929,'tempAuthPath':_0xbe9929};}catch(_0x502334){const _0x132399=_0x502334 instanceof Error?_0x502334['message']:_0x1efc02['kokeC'](String,_0x502334);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x132399);}if(_0x1efc02[_0x164fe2(0x105)](existsSync,_0x2e530c))return{'storageStatePath':_0x2e530c};return{};}export async function buildPlaywrightConfig(_0x3f230a,_0x3ebc85,_0x2e914f,_0x1dabb3,_0x1d160d){const _0x29628e=_0x1f68ed,_0x251c59={'NUETt':function(_0x289e6e,_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70){return _0x289e6e(_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70);},'PReWV':function(_0x4acf6e,_0x41927a){return _0x4acf6e(_0x41927a);}};if(_0x1d160d)return _0x251c59[_0x29628e(0x123)](buildPlaywrightConfigCore,_0x3f230a,_0x1d160d,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');const {storageStatePath:_0x239840,tempAuthPath:_0x46c480}=await _0x251c59[_0x29628e(0x102)](resolveLocalAuthPath,getEnvDir(_0x3ebc85)),_0x634a8a=await buildPlaywrightConfigCore(_0x3f230a,_0x239840,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');return{..._0x634a8a,'tempAuthPath':_0x46c480};}export async function buildPlaywrightConfigCore(_0xbf97d8,_0x5e107b,_0x477222,_0x375a98,_0x3066f9,_0x35d107='stagehand'){const _0x17edff=_0x1f68ed,_0x460dea={'lUCIZ':function(_0x150ddc,_0x2a5ffd){return _0x150ddc===_0x2a5ffd;},'NJaGL':'--disable-setuid-sandbox','UVdcV':_0x17edff(0x11d),'HFhsj':function(_0x4a4b73){return _0x4a4b73();},'BVJpY':function(_0x2e247c){return _0x2e247c();},'iATMC':_0x17edff(0xed),'zoQiG':'file','IyRIG':_0x17edff(0xd9),'vwJVq':_0x17edff(0xd0),'XFbOA':function(_0x37a992,_0x151365,_0x692be9){return _0x37a992(_0x151365,_0x692be9);},'mKHvM':'ranger-config','BAXTO':function(_0x53cd3f,_0x37effe,_0x4d1d23){return _0x53cd3f(_0x37effe,_0x4d1d23);},'qbuHv':'-cli'},_0xa06b34=_0x375a98||_0x460dea[_0x17edff(0x11e)](randomUUID),_0x5d68c5=join(_0x460dea['BVJpY'](getRangerDir),_0x17edff(0xf2),_0xa06b34),_0x4e2534=Boolean(_0xbf97d8['cdpEndpoint']),_0x4e82ea=_0x4e2534?{'browserName':_0x17edff(0x10a),'cdpEndpoint':_0xbf97d8['cdpEndpoint']}:((()=>{const _0x5666be=_0x17edff,{launchOptions:_0x50188c,contextOptions:_0x346569}=buildBrowserOptionsFromSettings(_0xbf97d8,{'headless':_0x3066f9?![]:_0xbf97d8[_0x5666be(0xc0)]??!![],'storageStatePath':_0x5e107b});if(_0x460dea[_0x5666be(0xf0)](process[_0x5666be(0xde)]?.(),0x0)){const _0x4a3f71=[_0x5666be(0xf1),_0x460dea['NJaGL']],_0x446bb8=_0x50188c[_0x5666be(0xe1)]??[],_0x23963f=_0x4a3f71[_0x5666be(0xfc)](_0x5d1e85=>!_0x446bb8[_0x5666be(0x125)](_0x5d1e85));_0x50188c[_0x5666be(0xe1)]=[..._0x446bb8,..._0x23963f];}return{'isolated':!![],'browserName':_0x5666be(0x10a),'launchOptions':_0x50188c,'contextOptions':{..._0x346569,'permissions':['clipboard-read',_0x460dea[_0x5666be(0x109)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1ab22a=_0x35d107===_0x460dea['iATMC']?{'browser':_0x4e82ea,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5,'outputMode':_0x460dea[_0x17edff(0x10c)],'codegen':'none'}:{'name':_0x477222,'browser':_0x4e82ea,'capabilities':[_0x17edff(0xee),_0x460dea['IyRIG'],_0x17edff(0x10f),'pdf',_0x460dea[_0x17edff(0x11c)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5};if(!_0x4e2534){const _0x335911=_0x1ab22a[_0x17edff(0xcf)],_0x54a52a=_0x335911[_0x17edff(0xdf)];if(_0x54a52a[_0x17edff(0xf8)]===undefined)delete _0x54a52a[_0x17edff(0xf8)];if(_0x54a52a[_0x17edff(0xea)]===undefined)delete _0x54a52a[_0x17edff(0xea)];}const _0x4a53a6=_0x460dea['XFbOA'](join,tmpdir(),_0x460dea['mKHvM']);!existsSync(_0x4a53a6)&&await _0x460dea[_0x17edff(0xcd)](mkdir,_0x4a53a6,{'recursive':!![]});const _0xa71db7=_0x35d107===_0x460dea[_0x17edff(0x11f)]?_0x460dea[_0x17edff(0xc1)]:'',_0xab2eaf=join(_0x4a53a6,_0x477222+'-'+Date['now']()+_0xa71db7+'.json');return await writeFile(_0xab2eaf,JSON['stringify'](_0x1ab22a,null,0x2)),{'configPath':_0xab2eaf};}export async function buildPlaywrightCliConfig(_0x2779ed,_0x7aca59,_0xa3b797,_0x18c039,_0x20b317){const _0x9e6bc3=_0x1f68ed,_0x2109c1={'QHoej':'playwright-cli','TLCzD':function(_0x20da6f,_0x5dbff5){return _0x20da6f(_0x5dbff5);}};if(_0x20b317)return buildPlaywrightConfigCore(_0x2779ed,_0x20b317,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1['QHoej']);const {storageStatePath:_0x333e06,tempAuthPath:_0x2384c0}=await resolveLocalAuthPath(_0x2109c1[_0x9e6bc3(0xfa)](getEnvDir,_0x7aca59)),_0xfb4291=await buildPlaywrightConfigCore(_0x2779ed,_0x333e06,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1[_0x9e6bc3(0xf4)]);return{..._0xfb4291,'tempAuthPath':_0x2384c0};}export function getNestedValue(_0x3ee6ec,_0x49bddf){const _0x5e5e67=_0x1f68ed,_0x29588d={'HzBPB':_0x5e5e67(0xfe)},_0x5528f7=parseKeyPath(_0x49bddf);let _0x1b3acd=_0x3ee6ec;for(const _0x483f75 of _0x5528f7){if(_0x1b3acd===null||_0x1b3acd===undefined||typeof _0x1b3acd!==_0x29588d[_0x5e5e67(0xc8)])return undefined;_0x1b3acd=_0x1b3acd[_0x483f75];}return _0x1b3acd;}export function setNestedValue(_0x1d2697,_0x49c557,_0x1e3794){const _0x4da44b=_0x1f68ed,_0x5213d1={'cOpkB':function(_0x473f40,_0x1d68b8){return _0x473f40<_0x1d68b8;},'BCciH':function(_0x211e7d,_0x5d708b){return _0x211e7d-_0x5d708b;},'ZEvZu':function(_0x56ce1c,_0x316dab){return _0x56ce1c-_0x316dab;}},_0x1eaf4a=parseKeyPath(_0x49c557);let _0x4dac57=_0x1d2697;for(let _0x49fbcc=0x0;_0x5213d1[_0x4da44b(0xef)](_0x49fbcc,_0x5213d1['BCciH'](_0x1eaf4a[_0x4da44b(0xd3)],0x1));_0x49fbcc++){const _0x2893df=_0x1eaf4a[_0x49fbcc];(!(_0x2893df in _0x4dac57)||typeof _0x4dac57[_0x2893df]!==_0x4da44b(0xfe))&&(_0x4dac57[_0x2893df]={}),_0x4dac57=_0x4dac57[_0x2893df];}_0x4dac57[_0x1eaf4a[_0x5213d1[_0x4da44b(0xd1)](_0x1eaf4a['length'],0x1)]]=_0x1e3794;}function _0x9bd2(_0x671a29,_0x2cb4d2){_0x671a29=_0x671a29-0xbf;const _0x127ee4=_0x127e();let _0x9bd21d=_0x127ee4[_0x671a29];return _0x9bd21d;}export function deleteNestedValue(_0x48bc22,_0x5592ce){const _0x33dfe0=_0x1f68ed,_0x2a9e92={'hSCkJ':function(_0x5548dd,_0x289e15){return _0x5548dd-_0x289e15;},'qZAkJ':function(_0x3292a4,_0x16053a){return _0x3292a4 in _0x16053a;}},_0x35a41f=parseKeyPath(_0x5592ce);let _0x2902b6=_0x48bc22;for(let _0x1da8c3=0x0;_0x1da8c3<_0x2a9e92['hSCkJ'](_0x35a41f['length'],0x1);_0x1da8c3++){if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!==_0x33dfe0(0xfe))return![];_0x2902b6=_0x2902b6[_0x35a41f[_0x1da8c3]];}if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!=='object')return![];const _0x37e1c9=_0x35a41f[_0x35a41f['length']-0x1];if(_0x2a9e92[_0x33dfe0(0xd8)](_0x37e1c9,_0x2902b6))return delete _0x2902b6[_0x37e1c9],!![];return![];}function parseKeyPath(_0x56c7e0){const _0x5b079c=_0x1f68ed,_0x531e90={'dyjzD':function(_0x46e63a,_0x4f5e0b){return _0x46e63a===_0x4f5e0b;},'Dnede':_0x5b079c(0xc4),'HEpgy':'headers'},_0x1d5fd2=_0x56c7e0['split']('.');return _0x531e90['dyjzD'](_0x1d5fd2[0x0],_0x531e90['Dnede'])&&(_0x1d5fd2[0x0]=_0x531e90['HEpgy']),_0x1d5fd2[0x0]==='setupHeader'&&(_0x1d5fd2[0x0]=_0x5b079c(0xc2)),_0x1d5fd2;}export function formatSettings(_0x4e14a0,_0x3ec3d7=0x0){const _0x538a3f=_0x1f68ed,_0x30569f={'fkmjf':function(_0x639610,_0x4eccc3){return _0x639610!==_0x4eccc3;}},_0x524004=[],_0x529c78='\x20\x20'[_0x538a3f(0xe7)](_0x3ec3d7);for(const [_0x387496,_0x14c9d1]of Object['entries'](_0x4e14a0)){if(_0x14c9d1===undefined)continue;if(typeof _0x14c9d1===_0x538a3f(0xfe)&&_0x30569f['fkmjf'](_0x14c9d1,null)){_0x524004['push'](''+_0x529c78+_0x387496+':');for(const [_0x42930c,_0x29d857]of Object['entries'](_0x14c9d1)){_0x524004['push'](_0x529c78+'\x20\x20'+_0x42930c+':\x20'+_0x29d857);}}else _0x524004[_0x538a3f(0xe4)](''+_0x529c78+_0x387496+':\x20'+_0x14c9d1);}return _0x524004[_0x538a3f(0x10d)]('\x0a');}
|
|
1
|
+
const _0x15de31=_0x60dd;(function(_0x2b282e,_0x44a3ba){const _0x584727=_0x60dd,_0x359888=_0x2b282e();while(!![]){try{const _0xb3a428=parseInt(_0x584727(0x185))/0x1*(parseInt(_0x584727(0x179))/0x2)+parseInt(_0x584727(0x17b))/0x3*(-parseInt(_0x584727(0x1a5))/0x4)+parseInt(_0x584727(0x19b))/0x5*(-parseInt(_0x584727(0x19f))/0x6)+parseInt(_0x584727(0x1cc))/0x7+parseInt(_0x584727(0x1c7))/0x8+-parseInt(_0x584727(0x1bd))/0x9+-parseInt(_0x584727(0x195))/0xa*(-parseInt(_0x584727(0x1b4))/0xb);if(_0xb3a428===_0x44a3ba)break;else _0x359888['push'](_0x359888['shift']());}catch(_0x433568){_0x359888['push'](_0x359888['shift']());}}}(_0x1123,0xab275));import{readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x60dd(_0x2bc2d4,_0x341a41){_0x2bc2d4=_0x2bc2d4-0x165;const _0x112393=_0x1123();let _0x60dd4a=_0x112393[_0x2bc2d4];return _0x60dd4a;}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(_0x23b5bb,_0x83110d){const _0x3dc171=_0x60dd,_0x56edde={'zUACD':function(_0x400ad3,_0x16ee38,_0x13bea3,_0x50c66d){return _0x400ad3(_0x16ee38,_0x13bea3,_0x50c66d);},'XJopI':function(_0x2b4938,_0x12c1b0,_0x575e3f){return _0x2b4938(_0x12c1b0,_0x575e3f);},'MyjLj':'local'},_0x1d9415=join(_0x83110d,'ci',_0x23b5bb),_0x19c545=_0x56edde['zUACD'](join,_0x83110d,_0x3dc171(0x1b1),_0x23b5bb),_0x9a351d=join(_0x83110d,_0x23b5bb),_0x47bc67=_0x56edde[_0x3dc171(0x1a3)](join,_0x83110d,_0x56edde['MyjLj']),_0x376ab4=join(_0x83110d,'ci');if(existsSync(_0x1d9415))return _0x1d9415;if(existsSync(_0x19c545))return _0x19c545;if(existsSync(_0x9a351d)&&(_0x9a351d!==_0x47bc67&&_0x9a351d!==_0x376ab4?!![]:hasLegacyProfileFiles(_0x9a351d)))return _0x9a351d;return null;}export function getEnvDir(_0x529a35,_0x413114={}){const _0x1dc8c5=_0x60dd,_0xea5212={'IEicx':function(_0x163db9){return _0x163db9();},'TrszD':function(_0x10b02e,_0x13511c,_0x4c6539){return _0x10b02e(_0x13511c,_0x4c6539);},'fXLHt':function(_0x4714ca,_0x4d4897){return _0x4714ca(_0x4d4897);},'sPTyN':function(_0x3a1da0,_0x1d5ce5){return _0x3a1da0!==_0x1d5ce5;},'AOOHM':function(_0x1f43d6,_0x5917d7,_0x506f5d){return _0x1f43d6(_0x5917d7,_0x506f5d);},'dRNSX':function(_0xa09d0,_0x5c514d,_0x3d4191,_0x3aa033){return _0xa09d0(_0x5c514d,_0x3d4191,_0x3aa033);},'lDPzQ':'local'},_0x39214b=_0xea5212[_0x1dc8c5(0x183)](getRangerDir),_0x94b4ef=_0xea5212['TrszD'](findEnvInRoot,_0x529a35,_0x39214b);if(_0x94b4ef){if(_0x413114['forWrite']&&_0xea5212[_0x1dc8c5(0x173)](isLegacyEnvPath,_0x94b4ef))throw _0xea5212['TrszD'](legacyWriteError,_0x529a35,_0x94b4ef);return _0x94b4ef;}const _0x183140=getRangerHomeDir();if(_0xea5212[_0x1dc8c5(0x1a0)](_0x183140,_0x39214b)){const _0x35fee9=_0xea5212['AOOHM'](findEnvInRoot,_0x529a35,_0x183140);if(_0x35fee9){if(_0x413114['forWrite']&&isLegacyEnvPath(_0x35fee9))throw _0xea5212['AOOHM'](legacyWriteError,_0x529a35,_0x35fee9);return _0x35fee9;}}const _0x14eb80=_0xea5212['dRNSX'](join,_0x183140,_0xea5212['lDPzQ'],_0x529a35);if(_0x413114['forWrite'])throw legacyWriteError(_0x529a35,_0x14eb80);return _0x14eb80;}function isLegacyEnvPath(_0x3ba6aa){const _0x465105=_0x60dd,_0x4c06da={'fHNpU':function(_0x3fbc46){return _0x3fbc46();}},_0x5c6f9c=_0x4c06da[_0x465105(0x1ad)](getRangerDir),_0x144166=getRangerHomeDir();for(const _0x1f9957 of new Set([_0x5c6f9c,_0x144166])){const _0x3476d3=_0x1f9957['endsWith']('/')?_0x1f9957:_0x1f9957+'/';if(_0x3ba6aa===_0x1f9957||_0x3ba6aa['startsWith'](_0x3476d3))return!![];}return![];}function legacyWriteError(_0x16f067,_0x52cdb2){const _0x31f6d4=_0x60dd,_0x867604={'OczCY':function(_0xfc735d,_0x2ddb40){return _0xfc735d+_0x2ddb40;},'lAENi':function(_0x11fbb8,_0x5e7658){return _0x11fbb8+_0x5e7658;}};return new Error(_0x867604[_0x31f6d4(0x16e)](_0x867604[_0x31f6d4(0x16e)](_0x867604['lAENi']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x16f067+'\x22\x20to\x20legacy\x20path\x20'+_0x52cdb2+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'),_0x31f6d4(0x198)),_0x31f6d4(0x186)));}export function findExistingEnv(_0x12b666,_0x3ec236){const _0x226973=_0x60dd,_0xb8fc4d={'AMxVd':_0x226973(0x1c1),'tbLhL':function(_0x223a7a,_0x1cb686,_0x466cc2){return _0x223a7a(_0x1cb686,_0x466cc2);},'ZIzzw':function(_0xf022ba,_0x1a2476,_0x60c3c0,_0x216781){return _0xf022ba(_0x1a2476,_0x60c3c0,_0x216781);},'NZNcf':_0x226973(0x1b1),'ERlZh':function(_0x2e13ce,_0x26c82e,_0x32d148,_0x1fb214){return _0x2e13ce(_0x26c82e,_0x32d148,_0x1fb214);},'MtMgW':function(_0x260c8d,_0x190041){return _0x260c8d(_0x190041);},'dAWPb':function(_0x203fb5,_0x5070af){return _0x203fb5===_0x5070af;}},_0x52bb2f=_0x3ec236?.[_0x226973(0x18a)],_0x3f0806=_0x52bb2f?[_0x52bb2f]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x30393b,_0x3d8a1c,_0x1f8b59)=>_0x1f8b59['indexOf'](_0x30393b)===_0x3d8a1c),_0x16aa64=_0x3ec236?.['locations']??['ci','local',_0xb8fc4d[_0x226973(0x187)]];for(const _0x271429 of _0x3f0806){const _0x31c115=_0xb8fc4d[_0x226973(0x16a)](join,_0x271429,'local'),_0x1a90e4=_0xb8fc4d['tbLhL'](join,_0x271429,'ci'),_0x3098ad=[{'location':'ci','path':_0xb8fc4d['ZIzzw'](join,_0x271429,'ci',_0x12b666)},{'location':_0xb8fc4d[_0x226973(0x174)],'path':_0xb8fc4d[_0x226973(0x19a)](join,_0x271429,'local',_0x12b666)},{'location':_0xb8fc4d['AMxVd'],'path':join(_0x271429,_0x12b666)}];for(const _0x483fa9 of _0x3098ad){if(_0x16aa64['includes'](_0x483fa9['location'])&&_0xb8fc4d['MtMgW'](existsSync,_0x483fa9['path'])){if(_0x483fa9['location']===_0xb8fc4d[_0x226973(0x187)]&&(_0xb8fc4d['dAWPb'](_0x483fa9[_0x226973(0x194)],_0x31c115)||_0x483fa9[_0x226973(0x194)]===_0x1a90e4)&&!_0xb8fc4d['MtMgW'](hasLegacyProfileFiles,_0x483fa9[_0x226973(0x194)]))continue;return{'path':_0x483fa9['path'],'location':_0x483fa9['location']};}}}return null;}function hasLegacyProfileFiles(_0x2ab721){const _0x17720c=_0x60dd,_0xb26aed={'jnEBE':function(_0x5cdca5,_0x21739e,_0x598f09){return _0x5cdca5(_0x21739e,_0x598f09);}};return existsSync(_0xb26aed[_0x17720c(0x17a)](join,_0x2ab721,_0x17720c(0x18f)))||existsSync(join(_0x2ab721,_0x17720c(0x1cb)))||existsSync(join(_0x2ab721,_0x17720c(0x167)));}export function isEnvCi(_0x394067){const _0x54af7d=_0x60dd,_0x4ea4cf={'BSrtR':function(_0x1c939b,_0x3fac43){return _0x1c939b(_0x3fac43);},'ywuna':function(_0x43fa52,_0x5ee05e,_0x23e61d,_0x388691){return _0x43fa52(_0x5ee05e,_0x23e61d,_0x388691);},'StKPX':function(_0x28bd54){return _0x28bd54();}};if(_0x4ea4cf[_0x54af7d(0x18b)](existsSync,_0x4ea4cf[_0x54af7d(0x1c8)](join,getRangerDir(),'ci',_0x394067)))return!![];const _0x372676=_0x4ea4cf[_0x54af7d(0x177)](getRangerHomeDir);if(_0x372676!==getRangerDir()&&_0x4ea4cf['BSrtR'](existsSync,join(_0x372676,'ci',_0x394067)))return!![];return![];}function _0x1123(){const _0x1404b2=['--disable-features=WebBluetooth','path','578950AQktfC','jlvPZ','replace','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','push','ERlZh','1388915GsBKZF','rTuQq','object','khqId','18UoBzIE','sPTyN','includes','boolean','XJopI','catch','52aDsZqK','extraHTTPHeaders','SYvCq','now','ENOENT','storageStatePath','vision','GfbpM','fHNpU','Cycrq','map','args','local','--unsafely-treat-insecure-origin-as-secure=http://localhost','isArray','253NnHgmt','browser','XeQKS','ldZsQ','message','ciOJX','getuid','code','GbCDF','7591995FVqYNm','userAgent','pAsYw','string','legacy','Imlfh','pGEYp','cdpEndpoint','--allow-insecure-localhost','YxgtC','1312120xdMIEa','ywuna','tabs','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','auth.json','7910553ndBhte','core','all','.json','etrCm','auth.json.enc','sessions','RCgzj','tbLhL','contextOptions','stringify','sgOQb','OczCY','Pdumz','fromEntries','FLmDk','length','fXLHt','NZNcf','YiHSV','keys','StKPX','storageState','2DFsPts','jnEBE','107367BUXzHl','entries','ignoreHTTPSErrors','YjEkb','file','Environment\x20variable\x20','CeNkE','header','IEicx','warn','217527fjJlqE','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','AMxVd','filter','setupHeader','rangerDir','BSrtR','sgjyv','LjZia','headless','settings.json','RPvhp','ranger-config','OOHEO'];_0x1123=function(){return _0x1404b2;};return _0x1123();}export async function cleanupTempFiles(_0x4d3e21){const _0x4dd130=_0x60dd,_0xb8008c={'BRKnC':function(_0x8c9fcb,_0x416f31){return _0x8c9fcb!==_0x416f31;}},_0xb5e976=[_0x4d3e21['tempAuthPath'],_0x4d3e21['configPath']]['filter'](Boolean);await Promise[_0x4dd130(0x1ce)](_0xb5e976[_0x4dd130(0x1af)](_0x467d28=>unlink(_0x467d28)[_0x4dd130(0x1a4)](_0x353a6c=>{const _0xfc70e1=_0x4dd130;_0xb8008c['BRKnC'](_0x353a6c[_0xfc70e1(0x1bb)],_0xfc70e1(0x1a9))&&console[_0xfc70e1(0x184)](_0xfc70e1(0x1ca)+_0x467d28+':',_0x353a6c['message']);})));}export function getSettingsPath(_0x5a1190){const _0x435e6e=_0x60dd,_0x9d0eb2={'LjZia':_0x435e6e(0x18f)};return join(getEnvDir(_0x5a1190),_0x9d0eb2[_0x435e6e(0x18d)]);}export async function loadSettings(_0x57afef){const _0x3aa0ce=getSettingsPath(_0x57afef);if(!existsSync(_0x3aa0ce))return{};try{const _0x37307d=await readFile(_0x3aa0ce,'utf-8');return JSON['parse'](_0x37307d);}catch{return{};}}export async function saveSettings(_0x451fea,_0x2ef218){const _0x53d5a6=_0x60dd,_0x20966e={'urRUC':function(_0x1a4dd4,_0x25f242){return _0x1a4dd4(_0x25f242);},'YiHSV':function(_0x4d9981,_0x3c1e49,_0x5aee04){return _0x4d9981(_0x3c1e49,_0x5aee04);}},_0x4c9292=getSettingsPath(_0x451fea),_0x15b7aa=dirname(_0x4c9292);!_0x20966e['urRUC'](existsSync,_0x15b7aa)&&await _0x20966e[_0x53d5a6(0x175)](mkdir,_0x15b7aa,{'recursive':!![]}),await writeFile(_0x4c9292,JSON['stringify'](_0x2ef218,null,0x2));}export function resolveEnvVars(_0x58fb1e){const _0x3ed05f=_0x60dd,_0x3fc6ed={'JIDAH':function(_0x141298,_0x1a9852){return _0x141298===_0x1a9852;},'JNfAL':_0x3ed05f(0x1c0)};if(_0x3fc6ed['JIDAH'](typeof _0x58fb1e,_0x3fc6ed['JNfAL']))return _0x58fb1e[_0x3ed05f(0x197)](/\$\{(\w+)\}/g,(_0x3bca99,_0x3a9c11)=>{const _0x44f5b8=_0x3ed05f,_0x5ed8de=process['env'][_0x3a9c11];if(_0x5ed8de===undefined)throw new Error(_0x44f5b8(0x180)+_0x3a9c11+'\x20is\x20not\x20set');return _0x5ed8de;});if(Array['isArray'](_0x58fb1e))return _0x58fb1e['map'](resolveEnvVars);if(_0x58fb1e&&typeof _0x58fb1e==='object')return Object[_0x3ed05f(0x170)](Object[_0x3ed05f(0x17c)](_0x58fb1e)['map'](([_0x15db47,_0x3f7ef1])=>[_0x15db47,resolveEnvVars(_0x3f7ef1)]));return _0x58fb1e;}const isRecord=_0xf1e218=>typeof _0xf1e218===_0x15de31(0x19d)&&_0xf1e218!==null&&!Array[_0x15de31(0x1b3)](_0xf1e218),asRecord=_0x3f89e6=>isRecord(_0x3f89e6)?_0x3f89e6:undefined,mergeHeaders=(_0x3cfd8a,_0x312622)=>{const _0xbe11c2=_0x15de31,_0x23341b={'Cycrq':function(_0x2534f7,_0x3849da){return _0x2534f7??_0x3849da;}},_0x2c917a={..._0x23341b['Cycrq'](_0x3cfd8a,{}),..._0x23341b[_0xbe11c2(0x1ae)](_0x312622,{})};return Object[_0xbe11c2(0x176)](_0x2c917a)['length']?_0x2c917a:undefined;},SAFE_MODE_ARGS=[_0x15de31(0x193)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x15de31(0x1b2),_0x15de31(0x1c5)];export function buildBrowserOptionsFromSettings(_0x524179,_0x147500={}){const _0x20e0ea=_0x15de31,_0x5bb503={'pAsYw':_0x20e0ea(0x1a2),'OOHEO':function(_0x441d4c,_0x415564){return _0x441d4c(_0x415564);}},_0x49e1a6=asRecord(_0x524179[_0x20e0ea(0x1b5)]),_0x2a02ab={...asRecord(_0x49e1a6?.['launchOptions'])??{}};typeof _0x147500[_0x20e0ea(0x18e)]===_0x5bb503[_0x20e0ea(0x1bf)]&&(_0x2a02ab[_0x20e0ea(0x18e)]=_0x147500['headless']);if(_0x524179['safeMode']){const _0x369dd5=_0x2a02ab['args']??[],_0x3c5814=SAFE_MODE_ARGS['filter'](_0x51fc3c=>!_0x369dd5[_0x20e0ea(0x1a1)](_0x51fc3c));_0x2a02ab['args']=[..._0x369dd5,..._0x3c5814];}if(_0x524179['allowInsecureLocalhost']){const _0x327802=_0x2a02ab['args']??[],_0x3c8540=ALLOW_LOCALHOST_ARGS[_0x20e0ea(0x188)](_0x3e71ef=>!_0x327802['includes'](_0x3e71ef));_0x2a02ab['args']=[..._0x327802,..._0x3c8540];}const _0x494f0c={..._0x5bb503[_0x20e0ea(0x192)](asRecord,_0x49e1a6?.[_0x20e0ea(0x16b)])??{}};_0x494f0c[_0x20e0ea(0x17d)]=!![];typeof _0x524179[_0x20e0ea(0x1be)]===_0x20e0ea(0x1c0)&&(_0x494f0c['userAgent']=_0x524179['userAgent']);const _0xda5dcb=mergeHeaders(asRecord(_0x494f0c['extraHTTPHeaders']),asRecord(_0x524179['headers']));return _0xda5dcb?_0x494f0c['extraHTTPHeaders']=_0xda5dcb:delete _0x494f0c[_0x20e0ea(0x1a6)],_0x147500[_0x20e0ea(0x1aa)]&&(_0x494f0c['storageState']=_0x147500[_0x20e0ea(0x1aa)]),{'launchOptions':_0x2a02ab,'contextOptions':_0x494f0c};}async function resolveLocalAuthPath(_0x18cee1){const _0x578a2b=_0x15de31,_0x3ff748={'SYvCq':function(_0x59dc60,_0x33c202,_0x5a82f1){return _0x59dc60(_0x33c202,_0x5a82f1);},'GfbpM':_0x578a2b(0x167),'jlvPZ':function(_0x30031b){return _0x30031b();},'xtpuZ':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','Imlfh':function(_0x5f2647,_0x5d68fc,_0x47893b){return _0x5f2647(_0x5d68fc,_0x47893b);},'ldZsQ':function(_0x24ca4c,_0x505e13,_0xb76d54){return _0x24ca4c(_0x505e13,_0xb76d54);},'aqGUs':function(_0x1c91f6,_0x4905b0){return _0x1c91f6 instanceof _0x4905b0;},'etrCm':function(_0x2342f8,_0x375303){return _0x2342f8(_0x375303);}},_0x2863a2=_0x3ff748[_0x578a2b(0x1a7)](join,_0x18cee1,_0x3ff748[_0x578a2b(0x1ac)]),_0x5b037c=_0x3ff748['SYvCq'](join,_0x18cee1,_0x578a2b(0x1cb));if(existsSync(_0x2863a2))try{const _0xb80a1e=await _0x3ff748[_0x578a2b(0x196)](getToken);if(!_0xb80a1e)throw new Error(_0x3ff748['xtpuZ']);const _0x251f19=await readFile(_0x2863a2),_0x4230f6=_0x3ff748[_0x578a2b(0x1c2)](decrypt,_0x251f19,_0xb80a1e),_0xffd126=_0x3ff748['SYvCq'](join,tmpdir(),'ranger-auth-'+Date[_0x578a2b(0x1a8)]()+_0x578a2b(0x165));return await _0x3ff748[_0x578a2b(0x1b7)](writeFile,_0xffd126,_0x4230f6),{'storageStatePath':_0xffd126,'tempAuthPath':_0xffd126};}catch(_0x28d588){const _0x55e7cd=_0x3ff748['aqGUs'](_0x28d588,Error)?_0x28d588[_0x578a2b(0x1b8)]:_0x3ff748[_0x578a2b(0x166)](String,_0x28d588);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x55e7cd);}if(_0x3ff748['etrCm'](existsSync,_0x5b037c))return{'storageStatePath':_0x5b037c};return{};}export async function buildPlaywrightConfig(_0x5baf22,_0x15e450,_0x4824f1,_0xb218aa,_0x286428){const _0x2c7cc0=_0x15de31,_0x592d4f={'RPvhp':'stagehand','rxCru':function(_0x548278,_0x18dc20){return _0x548278(_0x18dc20);},'EOEli':function(_0x34983e,_0x14f838){return _0x34983e(_0x14f838);},'rSGkm':function(_0x5a2a6e,_0x467ac7,_0xb78152,_0x44193a,_0x34989d,_0x354513,_0x9919ad){return _0x5a2a6e(_0x467ac7,_0xb78152,_0x44193a,_0x34989d,_0x354513,_0x9919ad);}};if(_0x286428)return buildPlaywrightConfigCore(_0x5baf22,_0x286428,_0x15e450,_0x4824f1,_0xb218aa,_0x592d4f[_0x2c7cc0(0x190)]);const {storageStatePath:_0x410845,tempAuthPath:_0x5efb30}=await _0x592d4f['rxCru'](resolveLocalAuthPath,_0x592d4f['EOEli'](getEnvDir,_0x15e450));try{const _0x2383f5=await _0x592d4f['rSGkm'](buildPlaywrightConfigCore,_0x5baf22,_0x410845,_0x15e450,_0x4824f1,_0xb218aa,'stagehand');return{..._0x2383f5,'tempAuthPath':_0x5efb30};}catch(_0x2979d6){_0x5efb30&&await unlink(_0x5efb30)[_0x2c7cc0(0x1a4)](()=>{});throw _0x2979d6;}}export async function buildPlaywrightConfigCore(_0x2bb72b,_0x6a50ea,_0x4d9fd2,_0x76c658,_0xb6e658,_0x406c33='stagehand'){const _0x2a627c=_0x15de31,_0xa0aafe={'CeNkE':function(_0x1b8e77,_0x525f50,_0x5485a4){return _0x1b8e77(_0x525f50,_0x5485a4);},'khqId':function(_0x5f872a,_0x48e998){return _0x5f872a===_0x48e998;},'mcyhQ':'--no-sandbox','jOJhl':'--disable-setuid-sandbox','LUJmz':'clipboard-read','rTuQq':function(_0x1bceb5){return _0x1bceb5();},'zjlRN':function(_0x448d32){return _0x448d32();},'FLmDk':'playwright-cli','HULXQ':_0x2a627c(0x17f),'sgjyv':'none','KHFzZ':'pdf','foWZq':_0x2a627c(0x1ab),'UBqqo':'allow','oBUTS':_0x2a627c(0x191),'sgOQb':function(_0x47ec58,_0x308cd0){return _0x47ec58(_0x308cd0);},'RCgzj':'-cli'},_0x331da1=_0x76c658||_0xa0aafe[_0x2a627c(0x19c)](randomUUID),_0x57dee8=join(_0xa0aafe['zjlRN'](getRangerDir),_0x2a627c(0x168),_0x331da1),_0x1a9854=Boolean(_0x2bb72b[_0x2a627c(0x1c4)]),_0x3d9d95=_0x1a9854?{'browserName':'chromium','cdpEndpoint':_0x2bb72b['cdpEndpoint']}:((()=>{const _0x35e358=_0x2a627c,{launchOptions:_0x20e818,contextOptions:_0x3870de}=_0xa0aafe[_0x35e358(0x181)](buildBrowserOptionsFromSettings,_0x2bb72b,{'headless':_0xb6e658?![]:_0x2bb72b[_0x35e358(0x18e)]??!![],'storageStatePath':_0x6a50ea});if(_0xa0aafe[_0x35e358(0x19e)](process[_0x35e358(0x1ba)]?.(),0x0)){const _0x4f7dd3=[_0xa0aafe['mcyhQ'],_0xa0aafe['jOJhl']],_0x217103=_0x20e818[_0x35e358(0x1b0)]??[],_0x5dbcf8=_0x4f7dd3[_0x35e358(0x188)](_0x1e513b=>!_0x217103[_0x35e358(0x1a1)](_0x1e513b));_0x20e818['args']=[..._0x217103,..._0x5dbcf8];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x20e818,'contextOptions':{..._0x3870de,'permissions':[_0xa0aafe['LUJmz'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x30382e=_0x406c33===_0xa0aafe[_0x2a627c(0x171)]?{'browser':_0x3d9d95,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57dee8,'outputMode':_0xa0aafe['HULXQ'],'codegen':_0xa0aafe[_0x2a627c(0x18c)]}:{'name':_0x4d9fd2,'browser':_0x3d9d95,'capabilities':[_0x2a627c(0x1cd),_0x2a627c(0x1c9),'install',_0xa0aafe['KHFzZ'],_0xa0aafe['foWZq']],'imageResponses':_0xa0aafe['UBqqo'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57dee8};if(!_0x1a9854){const _0x321dcd=_0x30382e['browser'],_0xcc5d77=_0x321dcd['contextOptions'];if(_0xcc5d77['userAgent']===undefined)delete _0xcc5d77[_0x2a627c(0x1be)];if(_0xcc5d77[_0x2a627c(0x178)]===undefined)delete _0xcc5d77['storageState'];}const _0x505014=join(_0xa0aafe['zjlRN'](tmpdir),_0xa0aafe['oBUTS']);!_0xa0aafe[_0x2a627c(0x16d)](existsSync,_0x505014)&&await mkdir(_0x505014,{'recursive':!![]});const _0x2d9f9a=_0xa0aafe[_0x2a627c(0x19e)](_0x406c33,_0xa0aafe['FLmDk'])?_0xa0aafe[_0x2a627c(0x169)]:'',_0x1d7ab9=join(_0x505014,_0x4d9fd2+'-'+Date['now']()+_0x2d9f9a+_0x2a627c(0x165));return await _0xa0aafe[_0x2a627c(0x181)](writeFile,_0x1d7ab9,JSON[_0x2a627c(0x16c)](_0x30382e,null,0x2)),{'configPath':_0x1d7ab9};}export async function buildPlaywrightCliConfig(_0x2673a9,_0x16190e,_0x34827d,_0x58b0de,_0x101bbd){const _0x250304=_0x15de31,_0x8b8495={'DaRNv':function(_0x39d49d,_0x1de059,_0x12304f,_0x884485,_0x20d3bf,_0x12d8ef,_0x27ac36){return _0x39d49d(_0x1de059,_0x12304f,_0x884485,_0x20d3bf,_0x12d8ef,_0x27ac36);},'YjEkb':'playwright-cli'};if(_0x101bbd)return buildPlaywrightConfigCore(_0x2673a9,_0x101bbd,_0x16190e,_0x34827d,_0x58b0de,'playwright-cli');const {storageStatePath:_0x331b3c,tempAuthPath:_0x47f8d7}=await resolveLocalAuthPath(getEnvDir(_0x16190e));try{const _0x3721ed=await _0x8b8495['DaRNv'](buildPlaywrightConfigCore,_0x2673a9,_0x331b3c,_0x16190e,_0x34827d,_0x58b0de,_0x8b8495[_0x250304(0x17e)]);return{..._0x3721ed,'tempAuthPath':_0x47f8d7};}catch(_0x356be7){_0x47f8d7&&await unlink(_0x47f8d7)['catch'](()=>{});throw _0x356be7;}}export function getNestedValue(_0x4a77aa,_0x231e09){const _0x2021bb=_0x15de31,_0x1a1ce5={'ciOJX':function(_0x5927fd,_0x21dbc7){return _0x5927fd===_0x21dbc7;},'XeQKS':function(_0x4a19f4,_0x1d2824){return _0x4a19f4!==_0x1d2824;},'pvXeZ':'object'},_0x25d9ef=parseKeyPath(_0x231e09);let _0xee02f3=_0x4a77aa;for(const _0x22d7a4 of _0x25d9ef){if(_0xee02f3===null||_0x1a1ce5[_0x2021bb(0x1b9)](_0xee02f3,undefined)||_0x1a1ce5[_0x2021bb(0x1b6)](typeof _0xee02f3,_0x1a1ce5['pvXeZ']))return undefined;_0xee02f3=_0xee02f3[_0x22d7a4];}return _0xee02f3;}export function setNestedValue(_0xf92dee,_0x30145d,_0x535238){const _0x3e3801=_0x15de31,_0x5ad13c={'KncWp':function(_0x495652,_0x434b61){return _0x495652(_0x434b61);},'YxgtC':function(_0x596309,_0x2c54f5){return _0x596309!==_0x2c54f5;},'YpdAL':_0x3e3801(0x19d)},_0x33ec10=_0x5ad13c['KncWp'](parseKeyPath,_0x30145d);let _0xd0c59c=_0xf92dee;for(let _0x2b86d4=0x0;_0x2b86d4<_0x33ec10['length']-0x1;_0x2b86d4++){const _0x21def4=_0x33ec10[_0x2b86d4];(!(_0x21def4 in _0xd0c59c)||_0x5ad13c[_0x3e3801(0x1c6)](typeof _0xd0c59c[_0x21def4],_0x5ad13c['YpdAL']))&&(_0xd0c59c[_0x21def4]={}),_0xd0c59c=_0xd0c59c[_0x21def4];}_0xd0c59c[_0x33ec10[_0x33ec10['length']-0x1]]=_0x535238;}export function deleteNestedValue(_0x14a1cd,_0x3599a7){const _0x551b37=_0x15de31,_0x1393ac={'pGEYp':function(_0x20ddec,_0x308306){return _0x20ddec===_0x308306;},'ovfPQ':function(_0x30f85e,_0x58fcb7){return _0x30f85e!==_0x58fcb7;},'Pdumz':function(_0x3aef27,_0x3c41c1){return _0x3aef27!==_0x3c41c1;},'GbCDF':_0x551b37(0x19d),'rtpja':function(_0x10baea,_0x297cb6){return _0x10baea-_0x297cb6;}},_0x39bdc0=parseKeyPath(_0x3599a7);let _0xbd0957=_0x14a1cd;for(let _0x3520ed=0x0;_0x3520ed<_0x39bdc0['length']-0x1;_0x3520ed++){if(_0x1393ac['pGEYp'](_0xbd0957,null)||_0xbd0957===undefined||_0x1393ac['ovfPQ'](typeof _0xbd0957,_0x551b37(0x19d)))return![];_0xbd0957=_0xbd0957[_0x39bdc0[_0x3520ed]];}if(_0xbd0957===null||_0x1393ac[_0x551b37(0x1c3)](_0xbd0957,undefined)||_0x1393ac[_0x551b37(0x16f)](typeof _0xbd0957,_0x1393ac[_0x551b37(0x1bc)]))return![];const _0x120128=_0x39bdc0[_0x1393ac['rtpja'](_0x39bdc0[_0x551b37(0x172)],0x1)];if(_0x120128 in _0xbd0957)return delete _0xbd0957[_0x120128],!![];return![];}function parseKeyPath(_0x491c87){const _0x4925ce=_0x15de31,_0x5a205f={'DVoLF':'headers','XKkAL':_0x4925ce(0x189),'hkvAV':'setupHeaders'},_0x4b50e0=_0x491c87['split']('.');return _0x4b50e0[0x0]===_0x4925ce(0x182)&&(_0x4b50e0[0x0]=_0x5a205f['DVoLF']),_0x4b50e0[0x0]===_0x5a205f['XKkAL']&&(_0x4b50e0[0x0]=_0x5a205f['hkvAV']),_0x4b50e0;}export function formatSettings(_0x41e784,_0x57f916=0x0){const _0x1b0d5a=_0x15de31,_0x22e870={'iDsPT':function(_0x4a1435,_0x1a9ea8){return _0x4a1435===_0x1a9ea8;}},_0x1430a5=[],_0xdb3e59='\x20\x20'['repeat'](_0x57f916);for(const [_0x1fb760,_0x105ff8]of Object[_0x1b0d5a(0x17c)](_0x41e784)){if(_0x105ff8===undefined)continue;if(_0x22e870['iDsPT'](typeof _0x105ff8,_0x1b0d5a(0x19d))&&_0x105ff8!==null){_0x1430a5[_0x1b0d5a(0x199)](''+_0xdb3e59+_0x1fb760+':');for(const [_0x2dc654,_0x3209fc]of Object['entries'](_0x105ff8)){_0x1430a5[_0x1b0d5a(0x199)](_0xdb3e59+'\x20\x20'+_0x2dc654+':\x20'+_0x3209fc);}}else _0x1430a5['push'](''+_0xdb3e59+_0x1fb760+':\x20'+_0x105ff8);}return _0x1430a5['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x19774b,_0x4c7832){const _0x12a303=_0x42f5,_0x254931=_0x19774b();while(!![]){try{const _0x55dd8c=parseInt(_0x12a303(0xe7))/0x1+parseInt(_0x12a303(0xe8))/0x2+-parseInt(_0x12a303(0xe3))/0x3*(-parseInt(_0x12a303(0xe0))/0x4)+parseInt(_0x12a303(0xee))/0x5+parseInt(_0x12a303(0xe5))/0x6*(-parseInt(_0x12a303(0xe2))/0x7)+parseInt(_0x12a303(0xec))/0x8+-parseInt(_0x12a303(0xea))/0x9;if(_0x55dd8c===_0x4c7832)break;else _0x254931['push'](_0x254931['shift']());}catch(_0x49acaa){_0x254931['push'](_0x254931['shift']());}}}(_0x2986,0x66296));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x42f5(_0x48d8f6,_0xdbf06a){_0x48d8f6=_0x48d8f6-0xe0;const _0x2986af=_0x2986();let _0x42f563=_0x2986af[_0x48d8f6];return _0x42f563;}export function readSkillContent(_0x3024ef){const _0x5bf8e7=_0x42f5,_0x2328f0={'Zkevt':function(_0x45666c,_0x53c99a,_0x161403,_0x11f67f,_0x47458d){return _0x45666c(_0x53c99a,_0x161403,_0x11f67f,_0x47458d);},'DPUIE':function(_0x2bdb55,_0x2563ee,_0x51f339){return _0x2bdb55(_0x2563ee,_0x51f339);},'KoXJQ':function(_0x2e9e64,_0x3741b,_0x41fc14){return _0x2e9e64(_0x3741b,_0x41fc14);},'OUSGh':'utf-8'},_0x406a12=_0x2328f0[_0x5bf8e7(0xe1)](join,__dirname,'..','..','skills'),_0x112bbe=_0x2328f0[_0x5bf8e7(0xe9)](join,_0x406a12,_0x3024ef);try{return _0x2328f0[_0x5bf8e7(0xeb)](readFileSync,_0x112bbe,_0x2328f0[_0x5bf8e7(0xe6)]);}catch{return'';}}function _0x2986(){const _0x290a2d=['5255552NYPJHW','WFbAj','1880455oXnnos','1503668djDEOR','Zkevt','3686921GkpBwb','3FIYwuM','ranger/SKILL.md','6uxaPvk','OUSGh','295489FDgRMw','545168pVlVMI','DPUIE','9286812hUIPrZ','KoXJQ'];_0x2986=function(){return _0x290a2d;};return _0x2986();}export function getRangerSkillContent(){const _0x309f81=_0x42f5,_0x302605={'FnNqT':function(_0x4b702c,_0x93f9d9){return _0x4b702c(_0x93f9d9);},'WFbAj':_0x309f81(0xe4)};return _0x302605['FnNqT'](readSkillContent,_0x302605[_0x309f81(0xed)]);}
|