@ranger-testing/ranger-cli 3.0.0 → 3.0.1-alpha.aab0a1c-26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/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/commands/verifyFeatureNovaCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0xeb1708=_0x141c;(function(_0x9bb889,_0xb9dd74){const _0x272473=_0x141c,_0x3ec35a=_0x9bb889();while(!![]){try{const _0x5280ac=parseInt(_0x272473(0xba))/0x1*(parseInt(_0x272473(0xe5))/0x2)+-parseInt(_0x272473(0xee))/0x3+-parseInt(_0x272473(0xe1))/0x4*(-parseInt(_0x272473(0xb2))/0x5)+parseInt(_0x272473(0xde))/0x6*(-parseInt(_0x272473(0xb3))/0x7)+-parseInt(_0x272473(0xe6))/0x8+-parseInt(_0x272473(0xd6))/0x9+parseInt(_0x272473(0xdd))/0xa*(parseInt(_0x272473(0xea))/0xb);if(_0x5280ac===_0xb9dd74)break;else _0x3ec35a['push'](_0x3ec35a['shift']());}catch(_0x39159d){_0x3ec35a['push'](_0x3ec35a['shift']());}}}(_0x551b,0xea047));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0xeb1708(0xbd);function toPlaywrightCliSessionKey(_0x5259a1){const _0x27bc9c=_0xeb1708,_0x57e462={'ZZefu':function(_0x3e6bea,_0x5a8677){return _0x3e6bea(_0x5a8677);}},_0x52271f=_0x57e462['ZZefu'](createHash,'sha256')[_0x27bc9c(0xb1)](_0x5259a1)[_0x27bc9c(0xaf)](_0x27bc9c(0xc3))['slice'](0x0,0xc);return'rg-'+_0x52271f;}function shellQuote(_0x2fdaad){const _0x31c97a=_0xeb1708;return'\x27'+_0x2fdaad[_0x31c97a(0xb7)](/'/g,_0x31c97a(0xcd))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x3b5460){const _0x1a1d25={'fZCBW':function(_0x316602,_0x558e0a){return _0x316602(_0x558e0a);}};return SAFE_SHELL_TOKEN['test'](_0x3b5460)?_0x3b5460:_0x1a1d25['fZCBW'](shellQuote,_0x3b5460);}export function buildPlaywrightCliInvocation(_0x27c4bb,_0x44d9e3,_0x1c5ea2){const _0x15d1a0=_0xeb1708,_0x223d33={'ohlxW':function(_0x48379f,_0xfbc517){return _0x48379f(_0xfbc517);},'HylWy':_0x15d1a0(0xc4),'FZycs':_0x15d1a0(0xe9),'NJORg':function(_0x199b35,_0x3e01d2){return _0x199b35(_0x3e01d2);}},_0x2ceeba=_0x223d33[_0x15d1a0(0xeb)](toPlaywrightCliSessionKey,_0x27c4bb),[_0x44c03b=_0x15d1a0(0xbf)]=_0x1c5ea2,_0x5ab659=[PLAYWRIGHT_CLI_BINARY,_0x15d1a0(0xe7)+_0x2ceeba,_0x15d1a0(0xe9),_0x44d9e3,..._0x1c5ea2];return{'command':_0x15d1a0(0xc4),'args':_0x5ab659,'shellCommand':[_0x223d33[_0x15d1a0(0xed)],PLAYWRIGHT_CLI_BINARY,_0x15d1a0(0xe7)+quoteShellArg(_0x2ceeba),_0x223d33['FZycs'],_0x223d33[_0x15d1a0(0xcf)](quoteShellArg,_0x44d9e3),..._0x1c5ea2['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x44c03b};}function _0x141c(_0x542248,_0x3933ae){_0x542248=_0x542248-0xac;const _0x551be0=_0x551b();let _0x141c5a=_0x551be0[_0x542248];return _0x141c5a;}export function buildPlaywrightCliCommandPrefix(_0x49291c,_0x39b2f0){const _0x80566e=_0xeb1708,_0x151902={'Frlfs':function(_0x39f205,_0x58cd5a){return _0x39f205(_0x58cd5a);},'afCzp':_0x80566e(0xc4),'iUmOZ':_0x80566e(0xe9)},_0x42ed23=_0x151902[_0x80566e(0xc2)](toPlaywrightCliSessionKey,_0x49291c);return[_0x151902[_0x80566e(0xb6)],PLAYWRIGHT_CLI_BINARY,_0x80566e(0xe7)+quoteShellArg(_0x42ed23),_0x151902['iUmOZ'],_0x151902['Frlfs'](quoteShellArg,_0x39b2f0)][_0x80566e(0xd3)]('\x20');}function truncateOutput(_0x302fa2,_0x39c381=0x7d0){const _0x2acb28=_0xeb1708,_0x3bb562={'dhcRf':function(_0x3ce6c6,_0x2d5c83){return _0x3ce6c6>_0x2d5c83;}};return _0x3bb562['dhcRf'](_0x302fa2['length'],_0x39c381)?_0x302fa2[_0x2acb28(0xdc)](0x0,_0x39c381)+_0x2acb28(0xec):_0x302fa2;}export async function runPlaywrightCliCommand(_0x502b50){const _0x3702a4=_0xeb1708,_0x301a59={'pbBEq':function(_0xdf343c,_0x1b60e7,_0x4f01c6){return _0xdf343c(_0x1b60e7,_0x4f01c6);},'uKVzj':function(_0x872ab1,_0x14c34f){return _0x872ab1(_0x14c34f);},'hQCaW':function(_0x5077b3,_0x39f24e){return _0x5077b3===_0x39f24e;},'NFPKo':_0x3702a4(0xc1),'fAmAH':'ignore','DNwLS':_0x3702a4(0xe3),'fSVhl':'data','EKnXX':'close','WhUeL':function(_0xebd172,_0x363a06,_0x2ab8cc,_0x573dd4){return _0xebd172(_0x363a06,_0x2ab8cc,_0x573dd4);}},_0x4fb202=_0x301a59[_0x3702a4(0xe2)](buildPlaywrightCliInvocation,_0x502b50[_0x3702a4(0xc6)],_0x502b50[_0x3702a4(0xcb)],_0x502b50[_0x3702a4(0xb4)]);return new Promise((_0x4ca772,_0x5e4470)=>{const _0x41e7dd=_0x3702a4,_0x5c5f37={'ApBaN':function(_0x25477d,_0x57ee4c){const _0x30df3a=_0x141c;return _0x301a59[_0x30df3a(0xd0)](_0x25477d,_0x57ee4c);},'ZWfTY':function(_0x39ca3d,_0x3488c4){return _0x39ca3d(_0x3488c4);},'oXhbz':_0x301a59[_0x41e7dd(0xd4)],'JxaiF':function(_0x2663a0,_0x1eb3ed){return _0x2663a0(_0x1eb3ed);},'msMbx':function(_0x28942d,_0x585893){return _0x301a59['uKVzj'](_0x28942d,_0x585893);}},_0x511211=spawn(_0x4fb202[_0x41e7dd(0xdf)],_0x4fb202['args'],{'cwd':_0x502b50[_0x41e7dd(0xc9)],'env':_0x502b50['env'],'stdio':[_0x301a59['fAmAH'],_0x301a59[_0x41e7dd(0xae)],_0x301a59['DNwLS']]});let _0x2709e9='',_0x21bab7='',_0x4f1c5e=![];const _0x19f500=_0x502b50[_0x41e7dd(0xc5)]&&_0x502b50[_0x41e7dd(0xc5)]>0x0?setTimeout(()=>{const _0x43c1ae=_0x41e7dd,_0x96a8e4={'TfoKS':'SIGKILL'};_0x4f1c5e=!![],_0x511211['kill']('SIGTERM'),_0x301a59[_0x43c1ae(0xb9)](setTimeout,()=>{const _0x28710a=_0x43c1ae;try{_0x511211[_0x28710a(0xcc)](_0x96a8e4[_0x28710a(0xda)]);}catch{}},0x3e8);},_0x502b50['timeoutMs']):null;_0x511211[_0x41e7dd(0xbb)]?.['on']('data',_0x3faa79=>{_0x2709e9+=_0x3faa79['toString']();}),_0x511211[_0x41e7dd(0xd2)]?.['on'](_0x301a59[_0x41e7dd(0xd8)],_0x4d6db9=>{_0x21bab7+=_0x4d6db9['toString']();}),_0x511211['on'](_0x41e7dd(0xb8),_0x583e48=>{if(_0x19f500)clearTimeout(_0x19f500);_0x301a59['uKVzj'](_0x5e4470,_0x583e48);}),_0x511211['on'](_0x301a59['EKnXX'],(_0x3e22f8,_0x430a60)=>{const _0x267300=_0x41e7dd;if(_0x19f500)clearTimeout(_0x19f500);if(_0x5c5f37['ApBaN'](_0x3e22f8,0x0)){_0x5c5f37[_0x267300(0xca)](_0x4ca772,{'stdout':_0x2709e9,'stderr':_0x21bab7,'invocation':_0x4fb202});return;}const _0x262d98=_0x4f1c5e?'timed\x20out\x20after\x20'+_0x502b50[_0x267300(0xc5)]+'ms':_0x267300(0xce)+(_0x3e22f8??_0x5c5f37[_0x267300(0xdb)])+_0x267300(0xc7)+(_0x430a60??_0x5c5f37[_0x267300(0xdb)]);_0x5c5f37[_0x267300(0xb0)](_0x5e4470,new Error(_0x267300(0xbe)+_0x4fb202[_0x267300(0xc0)]+'\x20'+_0x262d98+'\x0astdout:\x20'+truncateOutput(_0x2709e9)+_0x267300(0xe8)+_0x5c5f37[_0x267300(0xd1)](truncateOutput,_0x21bab7)));});});}function _0x551b(){const _0x42f5fd=['\x20signal=','trim','cwd','ZWfTY','configPath','kill','\x27\x5c\x27\x27','exited\x20with\x20code=','NJORg','hQCaW','msMbx','stderr','join','NFPKo','xSYKm','6629868bjJVbV','script','fSVhl','dQAAV','TfoKS','oXhbz','slice','1500yAauJb','12WjFtxE','command','values','16148ZjvLHC','WhUeL','pipe','string','160868QBAThZ','11909776YdRQSy','-s=','\x0astderr:\x20','--config','247159CwZDOy','ohlxW','...','HylWy','1010364tvARhy','find','match','DNwLS','digest','JxaiF','update','1115YDBpbD','4876816AujDqg','commandArgs','QjpUd','afCzp','replace','error','pbBEq','8zPRjWW','stdout','length','@playwright/cli','playwright-cli\x20','unknown','subcommand','null','Frlfs','hex','npx','timeoutMs','sessionId'];_0x551b=function(){return _0x42f5fd;};return _0x551b();}export function extractBashCommand(_0x4a89ff){const _0x3c15d2=_0xeb1708,_0x881535={'xSYKm':_0x3c15d2(0xdf),'dQAAV':'cmd','QjpUd':function(_0x76c7bf,_0x5162ca){return _0x76c7bf??_0x5162ca;}},_0x2fe8a0=[_0x881535[_0x3c15d2(0xd5)],_0x881535[_0x3c15d2(0xd9)],_0x3c15d2(0xd7),'bash_command'];for(const _0x1c7cf7 of _0x2fe8a0){const _0x525f48=_0x4a89ff[_0x1c7cf7];if(typeof _0x525f48==='string'&&_0x525f48[_0x3c15d2(0xc8)]())return _0x525f48;}const _0x408d45=Object[_0x3c15d2(0xe0)](_0x4a89ff)[_0x3c15d2(0xac)](_0x2a5917=>typeof _0x2a5917===_0x3c15d2(0xe4)&&_0x2a5917['trim']()[_0x3c15d2(0xbc)]>0x0);return _0x881535[_0x3c15d2(0xb5)](_0x408d45,null);}export function parsePlaywrightCliCommand(_0x1ddefd){const _0x123638=_0xeb1708,_0x4f9c53=_0x1ddefd[_0x123638(0xad)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4f9c53?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3a2c(){const _0x652944=['1567HHrAIx','22948gSkzbd','950450NtgVGs','464490MirYbZ','ranger\x20profile\x20add\x20local','9qLzONj','168RdplkT','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','286MfURUG','PikOi','1432nZCWkn','3138840WODzNp','10919150MmHvev','7133RuArmO'];_0x3a2c=function(){return _0x652944;};return _0x3a2c();}function _0x4d4d(_0x2722b2,_0x90d759){_0x2722b2=_0x2722b2-0x67;const _0x3a2ced=_0x3a2c();let _0x4d4d64=_0x3a2ced[_0x2722b2];return _0x4d4d64;}const _0x4ceed1=_0x4d4d;(function(_0x47a7de,_0x3f6998){const _0x4e8b6=_0x4d4d,_0xc9b45=_0x47a7de();while(!![]){try{const _0xb0ecd9=parseInt(_0x4e8b6(0x6c))/0x1*(parseInt(_0x4e8b6(0x74))/0x2)+-parseInt(_0x4e8b6(0x72))/0x3*(-parseInt(_0x4e8b6(0x6d))/0x4)+parseInt(_0x4e8b6(0x6e))/0x5+-parseInt(_0x4e8b6(0x6f))/0x6+parseInt(_0x4e8b6(0x6b))/0x7*(parseInt(_0x4e8b6(0x68))/0x8)+parseInt(_0x4e8b6(0x71))/0x9*(parseInt(_0x4e8b6(0x69))/0xa)+-parseInt(_0x4e8b6(0x6a))/0xb;if(_0xb0ecd9===_0x3f6998)break;else _0xc9b45['push'](_0xc9b45['shift']());}catch(_0x50fe23){_0xc9b45['push'](_0xc9b45['shift']());}}}(_0x3a2c,0x2777f));const DEFAULT_PROFILE_COMMAND=_0x4ceed1(0x70);export function formatProfileRequiredMessage(_0x540191){const _0x1a9758=_0x4ceed1,_0x499c71={'PikOi':function(_0x513d6e,_0x245f22){return _0x513d6e(_0x245f22);}},_0x76b500=_0x540191?_0x499c71[_0x1a9758(0x67)](_0x540191,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x1a9758(0x73)+_0x76b500+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1847(){const _0x223693=['1158519KpfzZc','2548936cxhpAA','<div\x20class=\x22ranger-banner__message\x22>',';\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','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','5471694yxNEKm','2361555BzHexy','6yYYKxe','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','HrZDp','lTSrB','zxaEo','459816MgWFss','75026ZVmArI','<div\x20class=\x22ranger-banner__content\x22>','4fWOhBo','2049415Rthyxv'];_0x1847=function(){return _0x223693;};return _0x1847();}function _0x3f31(_0x893be2,_0x474b6f){_0x893be2=_0x893be2-0x145;const _0x1847a7=_0x1847();let _0x3f317d=_0x1847a7[_0x893be2];return _0x3f317d;}(function(_0xc58e5f,_0x5127d4){const _0x1cdda8=_0x3f31,_0x17885c=_0xc58e5f();while(!![]){try{const _0x5efcff=-parseInt(_0x1cdda8(0x14c))/0x1+parseInt(_0x1cdda8(0x14b))/0x2+parseInt(_0x1cdda8(0x150))/0x3*(-parseInt(_0x1cdda8(0x14e))/0x4)+parseInt(_0x1cdda8(0x14f))/0x5*(parseInt(_0x1cdda8(0x146))/0x6)+parseInt(_0x1cdda8(0x145))/0x7+parseInt(_0x1cdda8(0x151))/0x8+-parseInt(_0x1cdda8(0x155))/0x9;if(_0x5efcff===_0x5127d4)break;else _0x17885c['push'](_0x17885c['shift']());}catch(_0x428a39){_0x17885c['push'](_0x17885c['shift']());}}}(_0x1847,0x37530));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x412707=_0x3f31,_0x3e2984={'zxaEo':function(_0x73cbd9,_0x5a0e56){return _0x73cbd9+_0x5a0e56;},'lecFO':function(_0x29f878,_0x51fe0e){return _0x29f878+_0x51fe0e;},'HrZDp':function(_0x31c916,_0x38757b){return _0x31c916+_0x38757b;},'GiuCu':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','lTSrB':_0x412707(0x152)},_0x38d7ab=_0x3e2984[_0x412707(0x14a)](_0x3e2984[_0x412707(0x14a)](_0x3e2984['lecFO'](_0x3e2984[_0x412707(0x148)](_0x412707(0x14d)+_0x3e2984['GiuCu'],_0x3e2984[_0x412707(0x149)])+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x412707(0x154))+'</div>','</div>'),_0x412707(0x147)),_0xd5f33f='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x38d7ab)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0xd5f33f)+_0x412707(0x153);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5f056c){await _0x5f056c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5c5be1,_0x396d37){const _0x25dc88=_0x5717,_0x5e7f27=_0x5c5be1();while(!![]){try{const _0x4418a1=-parseInt(_0x25dc88(0x151))/0x1+parseInt(_0x25dc88(0x15b))/0x2*(-parseInt(_0x25dc88(0x138))/0x3)+parseInt(_0x25dc88(0x14c))/0x4+parseInt(_0x25dc88(0x156))/0x5+parseInt(_0x25dc88(0x141))/0x6*(-parseInt(_0x25dc88(0x15f))/0x7)+-parseInt(_0x25dc88(0x15d))/0x8*(parseInt(_0x25dc88(0x15c))/0x9)+parseInt(_0x25dc88(0x146))/0xa;if(_0x4418a1===_0x396d37)break;else _0x5e7f27['push'](_0x5e7f27['shift']());}catch(_0x3ee416){_0x5e7f27['push'](_0x5e7f27['shift']());}}}(_0x19d0,0x3620a));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;function _0x19d0(){const _0x2ae736=['8RDUpQo','zphTy','7mvCzUo','VWKdZ','.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','kNvvh','setupHeaders','lWYGk','object','gEOxW','3IMrevk','entries','keys','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','length','rxUfI','message',').\x20Ignoring\x20local\x20profile\x20overrides.','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','1375116vmtmxj','warn','settings','PwSqz','FtJfN','13091680HgUbRj','QvjWG','UxTWP','projects','split','isArray','117340BBbpFd','version','lmjgq','profiles','XFQcm','238517kWBhPV','[ranger]\x20Warning:\x20','utf-8','sWEDn','yrILs','162915SlszKw','zoViQ','dhsDW','lastProfile','DWVBv','701920hmdEzZ','2976453TZqOOj'];_0x19d0=function(){return _0x2ae736;};return _0x19d0();}export function getProjectsConfigPath(){return join(getRangerHomeDir(),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x175e17=_0x5717,_0x15c432={'vhLCa':function(_0x53d680){return _0x53d680();},'gEOxW':function(_0x307fbf,_0x4e6353){return _0x307fbf(_0x4e6353);},'dhsDW':function(_0x4405ba,_0x19a04b){return _0x4405ba instanceof _0x19a04b;},'FtJfN':function(_0x32af60,_0x58f6bc){return _0x32af60(_0x58f6bc);},'DWVBv':_0x175e17(0x136),'loVsU':function(_0x5615b0,_0x1c9817){return _0x5615b0!==_0x1c9817;},'kTgVK':function(_0x206599,_0x467538){return _0x206599===_0x467538;}},_0xbc63af=_0x15c432['vhLCa'](getProjectsConfigPath);if(!_0x15c432[_0x175e17(0x137)](existsSync,_0xbc63af))return emptyConfig();let _0x4ed688;try{_0x4ed688=readFileSync(_0xbc63af,'utf-8');}catch(_0x50cd51){const _0x92db6=_0x15c432[_0x175e17(0x158)](_0x50cd51,Error)?_0x50cd51['message']:_0x15c432['gEOxW'](String,_0x50cd51);return console[_0x175e17(0x142)](_0x175e17(0x140)+_0xbc63af+':\x20'+_0x92db6+_0x175e17(0x161)),emptyConfig();}let _0x1cc6ed;try{_0x1cc6ed=JSON['parse'](_0x4ed688);}catch(_0x463f9e){const _0x5ab67b=_0x15c432['dhsDW'](_0x463f9e,Error)?_0x463f9e[_0x175e17(0x13e)]:_0x15c432[_0x175e17(0x145)](String,_0x463f9e);return console[_0x175e17(0x142)](_0x175e17(0x152)+_0xbc63af+'\x20is\x20not\x20valid\x20JSON\x20('+_0x5ab67b+_0x175e17(0x13f)),_0x15c432['vhLCa'](emptyConfig);}if(!_0x1cc6ed||typeof _0x1cc6ed!==_0x15c432[_0x175e17(0x15a)]||Array['isArray'](_0x1cc6ed)||_0x15c432['loVsU'](_0x1cc6ed[_0x175e17(0x14d)],CURRENT_VERSION)||_0x15c432['loVsU'](typeof _0x1cc6ed[_0x175e17(0x149)],'object')||_0x15c432['kTgVK'](_0x1cc6ed[_0x175e17(0x149)],null)||Array[_0x175e17(0x14b)](_0x1cc6ed['projects']))return console[_0x175e17(0x142)]('[ranger]\x20Warning:\x20'+_0xbc63af+_0x175e17(0x13b)),_0x15c432['vhLCa'](emptyConfig);return _0x1cc6ed;}export function writeProjectsConfig(_0x354ae2){const _0x245316=_0x5717,_0x3b1c0c={'pqkeA':function(_0x5bae19){return _0x5bae19();},'sWEDn':function(_0x3aa136,_0x20b664){return _0x3aa136(_0x20b664);},'yrILs':function(_0x42d38a,_0x1fae4c,_0x567201){return _0x42d38a(_0x1fae4c,_0x567201);},'UxTWP':function(_0xf01e4f,_0x296156,_0x55eb65,_0x4eadd0){return _0xf01e4f(_0x296156,_0x55eb65,_0x4eadd0);},'zphTy':_0x245316(0x153),'yvPwl':function(_0x513d3f,_0x360636){return _0x513d3f(_0x360636);}},_0x362407=_0x3b1c0c['pqkeA'](getProjectsConfigPath),_0x467cf9=_0x3b1c0c['sWEDn'](dirname,_0x362407);!_0x3b1c0c[_0x245316(0x154)](existsSync,_0x467cf9)&&_0x3b1c0c[_0x245316(0x155)](mkdirSync,_0x467cf9,{'recursive':!![]});const _0x17daeb=_0x362407+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x208962=JSON['stringify'](_0x354ae2,null,0x2)+'\x0a';try{_0x3b1c0c[_0x245316(0x148)](writeFileSync,_0x17daeb,_0x208962,{'encoding':_0x3b1c0c[_0x245316(0x15e)],'mode':0x180}),renameSync(_0x17daeb,_0x362407);}catch(_0x57598f){try{_0x3b1c0c['yvPwl'](existsSync,_0x17daeb)&&unlinkSync(_0x17daeb);}catch{}throw _0x57598f;}}export function readProfileOverrides(_0x920ef4,_0x35a38e){const _0x2eac01=_0x5717,_0x354f1c=readProjectsConfig(),_0x2690df=_0x354f1c[_0x2eac01(0x149)][_0x920ef4];if(!_0x2690df||!_0x2690df[_0x2eac01(0x14f)])return null;const _0x2b1d20=_0x2690df['profiles'][_0x35a38e];if(!_0x2b1d20||!_0x2b1d20['settings'])return null;return _0x2b1d20['settings']??null;}export function setProfileOverride(_0x1b7b6c,_0x366a4c,_0x5e5633,_0xdc493a){const _0x1a401f=_0x5717,_0x366911={'QPnff':'keyPath\x20is\x20required','XFQcm':function(_0x426c76,_0x4c560b){return _0x426c76(_0x4c560b);}};if(!_0x5e5633)throw new Error(_0x366911['QPnff']);const _0x524cb3=readProjectsConfig(),_0x49a06f=_0x524cb3['projects'][_0x1b7b6c]??={},_0xb2ee4c=_0x49a06f['profiles']??={},_0x596b5c=_0xb2ee4c[_0x366a4c]??={},_0x38dd0e=_0x596b5c[_0x1a401f(0x143)]??={};setByKeyPath(_0x38dd0e,_0x5e5633,_0xdc493a),_0x366911[_0x1a401f(0x150)](writeProjectsConfig,_0x524cb3);}export function unsetProfileOverride(_0x178264,_0x28700a,_0x119aa2){const _0x2c61d4=_0x5717,_0x3da217={'rxUfI':function(_0xc868ad){return _0xc868ad();},'HumFL':function(_0x3f52f8,_0x5774f6,_0x136f56){return _0x3f52f8(_0x5774f6,_0x136f56);},'vfNOO':function(_0x23c4d1,_0x218236){return _0x23c4d1(_0x218236);}};if(!_0x119aa2)throw new Error(_0x2c61d4(0x162));const _0x57f0fa=_0x3da217[_0x2c61d4(0x13d)](readProjectsConfig),_0x58679e=_0x57f0fa[_0x2c61d4(0x149)][_0x178264];if(!_0x58679e?.['profiles'])return![];const _0x565daf=_0x58679e['profiles'][_0x28700a];if(!_0x565daf?.[_0x2c61d4(0x143)])return![];const _0x53d9f2=_0x3da217['HumFL'](deleteByKeyPath,_0x565daf['settings'],_0x119aa2);if(!_0x53d9f2)return![];return _0x3da217['vfNOO'](writeProjectsConfig,_0x57f0fa),!![];}export function resetProfileOverrides(_0x395f6b,_0xa8e106){const _0x38f55b=_0x5717,_0x2226ac={'PNPoV':function(_0x32de26,_0x610020){return _0x32de26 in _0x610020;},'kNvvh':function(_0x2a5986,_0x32a946){return _0x2a5986===_0x32a946;},'QvjWG':function(_0x36125a,_0x2e6ea1){return _0x36125a(_0x2e6ea1);}},_0x1d4bde=readProjectsConfig(),_0x197495=_0x1d4bde[_0x38f55b(0x149)][_0x395f6b];if(!_0x197495?.['profiles'])return;if(!_0x2226ac['PNPoV'](_0xa8e106,_0x197495[_0x38f55b(0x14f)]))return;delete _0x197495[_0x38f55b(0x14f)][_0xa8e106],_0x2226ac[_0x38f55b(0x163)](Object[_0x38f55b(0x13a)](_0x197495[_0x38f55b(0x14f)])[_0x38f55b(0x13c)],0x0)&&(!_0x197495[_0x38f55b(0x159)]?delete _0x1d4bde[_0x38f55b(0x149)][_0x395f6b]:_0x197495[_0x38f55b(0x14f)]={}),_0x2226ac[_0x38f55b(0x147)](writeProjectsConfig,_0x1d4bde);}export function readLastProfile(_0x30af4c){const _0x437dea=_0x5717,_0x5ef441={'VWKdZ':function(_0x4c490c){return _0x4c490c();}},_0x1da170=_0x5ef441[_0x437dea(0x160)](readProjectsConfig),_0x3e0972=_0x1da170['projects'][_0x30af4c];return _0x3e0972?.['lastProfile']??null;}export function writeLastProfile(_0x1eb32a,_0x12ee4a){const _0x423319=_0x5717,_0x15ec2c={'hAgJW':function(_0x42d263){return _0x42d263();}},_0x824f16=_0x15ec2c['hAgJW'](readProjectsConfig),_0x1d9fd9=_0x824f16[_0x423319(0x149)][_0x1eb32a]??={};_0x1d9fd9[_0x423319(0x159)]=_0x12ee4a,writeProjectsConfig(_0x824f16);}export function clearLastProfile(_0x2cd0df,_0x105dc5){const _0x59d2cd=_0x5717,_0x5adefb={'lWYGk':function(_0x211084){return _0x211084();},'JqHlz':function(_0x15767b,_0x56d05b){return _0x15767b===_0x56d05b;}},_0x4d43fa=_0x5adefb[_0x59d2cd(0x135)](readProjectsConfig),_0x46e24e=_0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df];if(!_0x46e24e||_0x46e24e['lastProfile']!==_0x105dc5)return![];return delete _0x46e24e['lastProfile'],(!_0x46e24e[_0x59d2cd(0x14f)]||_0x5adefb['JqHlz'](Object['keys'](_0x46e24e['profiles'])[_0x59d2cd(0x13c)],0x0))&&delete _0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df],writeProjectsConfig(_0x4d43fa),!![];}export function mergeCloudProfileSettings(_0x5ac5cf,_0x14b78e){const _0x42230f=_0x5717,_0x4d9f5c={'zoViQ':function(_0x538f71,_0x331e91){return _0x538f71===_0x331e91;},'PwSqz':_0x42230f(0x164),'fncqm':function(_0x30d29,_0xb77333){return _0x30d29(_0xb77333);},'lmjgq':function(_0x36e319,_0x3055b4){return _0x36e319!==_0x3055b4;}},_0x3a1505={..._0x5ac5cf??{}};if(!_0x14b78e)return _0x3a1505;for(const [_0x28bd6b,_0x5bd592]of Object['entries'](_0x14b78e)){if(_0x5bd592===undefined)continue;if(_0x4d9f5c[_0x42230f(0x157)](_0x5bd592,null)){delete _0x3a1505[_0x28bd6b];continue;}if(_0x4d9f5c['zoViQ'](_0x28bd6b,'headers')||_0x28bd6b===_0x4d9f5c[_0x42230f(0x144)]){const _0x241ece=asRecord(_0x3a1505[_0x28bd6b])??{},_0x3e0970=_0x4d9f5c['fncqm'](asRecord,_0x5bd592);if(!_0x3e0970){_0x3a1505[_0x28bd6b]=_0x5bd592;continue;}const _0x5bafa1={..._0x241ece};for(const [_0x1ef530,_0x4a4880]of Object[_0x42230f(0x139)](_0x3e0970)){if(_0x4a4880===null)delete _0x5bafa1[_0x1ef530];else _0x4d9f5c[_0x42230f(0x14e)](_0x4a4880,undefined)&&(_0x5bafa1[_0x1ef530]=_0x4a4880);}_0x3a1505[_0x28bd6b]=_0x5bafa1;continue;}_0x3a1505[_0x28bd6b]=_0x5bd592;}return _0x3a1505;}function _0x5717(_0x5cde0f,_0x176655){_0x5cde0f=_0x5cde0f-0x135;const _0x19d00f=_0x19d0();let _0x571762=_0x19d00f[_0x5cde0f];return _0x571762;}function asRecord(_0x371321){return _0x371321&&typeof _0x371321==='object'&&!Array['isArray'](_0x371321)?_0x371321:undefined;}function setByKeyPath(_0x471758,_0x50625a,_0x56c853){const _0xe5cfab=_0x5717,_0x62d7c6={'TJlHA':function(_0x124362,_0x3b0532){return _0x124362<_0x3b0532;},'DZGbf':'object'},_0x552e23=_0x50625a[_0xe5cfab(0x14a)]('.');let _0x1ce8c9=_0x471758;for(let _0xb2f74e=0x0;_0x62d7c6['TJlHA'](_0xb2f74e,_0x552e23['length']-0x1);_0xb2f74e++){const _0x17ed9d=_0x552e23[_0xb2f74e],_0x504c28=_0x1ce8c9[_0x17ed9d];(!_0x504c28||typeof _0x504c28!==_0x62d7c6['DZGbf']||Array[_0xe5cfab(0x14b)](_0x504c28))&&(_0x1ce8c9[_0x17ed9d]={}),_0x1ce8c9=_0x1ce8c9[_0x17ed9d];}_0x1ce8c9[_0x552e23[_0x552e23[_0xe5cfab(0x13c)]-0x1]]=_0x56c853;}function deleteByKeyPath(_0x36369c,_0x1113aa){const _0x3c662e=_0x5717,_0x13f50e={'PIiOi':function(_0x535c43,_0x32b77f){return _0x535c43<_0x32b77f;},'xZwAG':function(_0x50189f,_0x2a03b5){return _0x50189f-_0x2a03b5;}},_0x1ab0c0=_0x1113aa['split']('.');let _0x2777b6=_0x36369c;for(let _0x2dac89=0x0;_0x13f50e['PIiOi'](_0x2dac89,_0x1ab0c0['length']-0x1);_0x2dac89++){const _0x257da1=_0x1ab0c0[_0x2dac89],_0x52d081=_0x2777b6[_0x257da1];if(!_0x52d081||typeof _0x52d081!=='object'||Array[_0x3c662e(0x14b)](_0x52d081))return![];_0x2777b6=_0x52d081;}const _0x359f8c=_0x1ab0c0[_0x13f50e['xZwAG'](_0x1ab0c0['length'],0x1)];if(!(_0x359f8c in _0x2777b6))return![];return delete _0x2777b6[_0x359f8c],!![];}
|
|
1
|
+
(function(_0x3876ff,_0x5573ad){const _0x329b6c=_0x54c2,_0x5e0e19=_0x3876ff();while(!![]){try{const _0x1d7afa=parseInt(_0x329b6c(0x1e8))/0x1+parseInt(_0x329b6c(0x1f6))/0x2+parseInt(_0x329b6c(0x1ee))/0x3+parseInt(_0x329b6c(0x1d3))/0x4*(parseInt(_0x329b6c(0x1ea))/0x5)+-parseInt(_0x329b6c(0x1da))/0x6*(-parseInt(_0x329b6c(0x1f3))/0x7)+-parseInt(_0x329b6c(0x1f4))/0x8+-parseInt(_0x329b6c(0x1ed))/0x9;if(_0x1d7afa===_0x5573ad)break;else _0x5e0e19['push'](_0x5e0e19['shift']());}catch(_0x4bb691){_0x5e0e19['push'](_0x5e0e19['shift']());}}}(_0x2e4e,0x7c33f));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 _0x5b7f92=_0x54c2,_0x395fcc={'ZOGTn':_0x5b7f92(0x1e5)};return join(getRangerHomeDir(),_0x395fcc['ZOGTn']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x146210=_0x54c2,_0x47ca94={'SlLLN':function(_0x2a0eaa){return _0x2a0eaa();},'IyGsB':function(_0x59f6ce,_0xe7149c){return _0x59f6ce(_0xe7149c);},'KrOcA':function(_0xc2d31c,_0x1da57e,_0x40db7e){return _0xc2d31c(_0x1da57e,_0x40db7e);},'aVBvp':_0x146210(0x1d5),'knqlv':function(_0x43253a,_0x17c3d1){return _0x43253a instanceof _0x17c3d1;},'sDFXT':function(_0x22d17e){return _0x22d17e();},'xGQLz':function(_0x4685e1){return _0x4685e1();},'viwWq':function(_0x1b594f,_0x5d69b8){return _0x1b594f!==_0x5d69b8;},'ylgRo':_0x146210(0x1e2),'NABGl':function(_0x2e5f7d){return _0x2e5f7d();}},_0x4c593a=_0x47ca94[_0x146210(0x1dd)](getProjectsConfigPath);if(!_0x47ca94['IyGsB'](existsSync,_0x4c593a))return emptyConfig();let _0x45a28d;try{_0x45a28d=_0x47ca94['KrOcA'](readFileSync,_0x4c593a,_0x47ca94['aVBvp']);}catch(_0x4faadc){const _0x3b9d1b=_0x47ca94['knqlv'](_0x4faadc,Error)?_0x4faadc[_0x146210(0x1d7)]:String(_0x4faadc);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x4c593a+':\x20'+_0x3b9d1b+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x47ca94['sDFXT'](emptyConfig);}let _0x335731;try{_0x335731=JSON['parse'](_0x45a28d);}catch(_0x3ce06a){const _0x440efd=_0x47ca94['knqlv'](_0x3ce06a,Error)?_0x3ce06a['message']:String(_0x3ce06a);return console['warn'](_0x146210(0x1de)+_0x4c593a+'\x20is\x20not\x20valid\x20JSON\x20('+_0x440efd+_0x146210(0x1e3)),_0x47ca94['xGQLz'](emptyConfig);}if(!_0x335731||_0x47ca94[_0x146210(0x1d2)](typeof _0x335731,_0x47ca94['ylgRo'])||Array['isArray'](_0x335731)||_0x335731['version']!==CURRENT_VERSION||_0x47ca94['viwWq'](typeof _0x335731['projects'],'object')||_0x335731['projects']===null||Array['isArray'](_0x335731['projects']))return console['warn']('[ranger]\x20Warning:\x20'+_0x4c593a+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x47ca94['NABGl'](emptyConfig);return _0x335731;}export function writeProjectsConfig(_0x47bf6c){const _0x284e42=_0x54c2,_0x1f9bc4={'RzgNP':function(_0x464af1){return _0x464af1();},'Jhuzd':function(_0x2117b4,_0x11dbbc){return _0x2117b4(_0x11dbbc);},'ZAKdC':function(_0x3813ee,_0x330527,_0x510ce5){return _0x3813ee(_0x330527,_0x510ce5);},'iexlX':function(_0x32f606,_0x43981f,_0x38cafd,_0x20e714){return _0x32f606(_0x43981f,_0x38cafd,_0x20e714);}},_0x467e4d=_0x1f9bc4[_0x284e42(0x1d1)](getProjectsConfigPath),_0x1b3b49=dirname(_0x467e4d);!_0x1f9bc4['Jhuzd'](existsSync,_0x1b3b49)&&_0x1f9bc4['ZAKdC'](mkdirSync,_0x1b3b49,{'recursive':!![]});const _0x2a918b=_0x467e4d+'.'+process['pid']+'.'+Date[_0x284e42(0x1db)]()+'.tmp',_0x3c4a0d=JSON[_0x284e42(0x1e4)](_0x47bf6c,null,0x2)+'\x0a';try{_0x1f9bc4[_0x284e42(0x1d9)](writeFileSync,_0x2a918b,_0x3c4a0d,{'encoding':'utf-8','mode':0x180}),renameSync(_0x2a918b,_0x467e4d);}catch(_0x31bb1e){try{existsSync(_0x2a918b)&&_0x1f9bc4['Jhuzd'](unlinkSync,_0x2a918b);}catch{}throw _0x31bb1e;}}export function readProfileOverrides(_0xdbc295,_0x56e64f){const _0x23efcf=_0x54c2,_0x55e5bc=readProjectsConfig(),_0x349e01=_0x55e5bc[_0x23efcf(0x1e9)][_0xdbc295];if(!_0x349e01||!_0x349e01[_0x23efcf(0x1e6)])return null;const _0x1cc19f=_0x349e01[_0x23efcf(0x1e6)][_0x56e64f];if(!_0x1cc19f||!_0x1cc19f[_0x23efcf(0x1f7)])return null;return _0x1cc19f['settings']??null;}export function setProfileOverride(_0x30d34c,_0x4e7548,_0x43e204,_0x863411){const _0x3e41a5=_0x54c2,_0x22049e={'XPIeD':_0x3e41a5(0x1df),'mbHQm':function(_0x2ebc09){return _0x2ebc09();},'jikrc':function(_0xacb719,_0x15b51e,_0x964e21,_0x160067){return _0xacb719(_0x15b51e,_0x964e21,_0x160067);}};if(!_0x43e204)throw new Error(_0x22049e[_0x3e41a5(0x1f5)]);const _0x223b3c=_0x22049e[_0x3e41a5(0x1e1)](readProjectsConfig),_0x281125=_0x223b3c['projects'][_0x30d34c]??={},_0xa2862f=_0x281125['profiles']??={},_0x2a440d=_0xa2862f[_0x4e7548]??={},_0x72ea82=_0x2a440d['settings']??={};_0x22049e['jikrc'](setByKeyPath,_0x72ea82,_0x43e204,_0x863411),writeProjectsConfig(_0x223b3c);}function _0x2e4e(){const _0x463ef9=['RzgNP','viwWq','2964LvGMmw','ZTsjN','utf-8','nBLya','message','split','iexlX','1170282PYsaev','now','headers','SlLLN','[ranger]\x20Warning:\x20','keyPath\x20is\x20required','EHtlc','mbHQm','object',').\x20Ignoring\x20local\x20profile\x20overrides.','stringify','projects.json','profiles','FEGdY','351920tfvSKx','projects','3415iDYiTq','isArray','length','9264492IHcHaa','781659vuthcN','dehGc','pilLc','entries','lastProfile','14lSAcps','2793016xuWkBe','XPIeD','757160yEvwsF','settings','LNpIP','Arhvs'];_0x2e4e=function(){return _0x463ef9;};return _0x2e4e();}export function unsetProfileOverride(_0x3d82a8,_0xcf5fd3,_0x448bfb){const _0x540bb3=_0x54c2,_0x1bf916={'FEGdY':_0x540bb3(0x1df),'EHtlc':function(_0x1f9f89){return _0x1f9f89();},'qOcdq':function(_0x6db4c5,_0x52ac8f){return _0x6db4c5(_0x52ac8f);}};if(!_0x448bfb)throw new Error(_0x1bf916[_0x540bb3(0x1e7)]);const _0x230b0e=_0x1bf916[_0x540bb3(0x1e0)](readProjectsConfig),_0x37bd5c=_0x230b0e[_0x540bb3(0x1e9)][_0x3d82a8];if(!_0x37bd5c?.['profiles'])return![];const _0x343a89=_0x37bd5c[_0x540bb3(0x1e6)][_0xcf5fd3];if(!_0x343a89?.['settings'])return![];const _0x7a6f1c=deleteByKeyPath(_0x343a89['settings'],_0x448bfb);if(!_0x7a6f1c)return![];return _0x1bf916['qOcdq'](writeProjectsConfig,_0x230b0e),!![];}export function resetProfileOverrides(_0x25c726,_0x43d3fe){const _0x3c49ee=_0x54c2,_0x576ab5={'ZTsjN':function(_0x5424b4,_0x1ef363){return _0x5424b4 in _0x1ef363;},'nBLya':function(_0x116fac,_0x49733f){return _0x116fac(_0x49733f);}},_0x379caa=readProjectsConfig(),_0x10bc8f=_0x379caa[_0x3c49ee(0x1e9)][_0x25c726];if(!_0x10bc8f?.[_0x3c49ee(0x1e6)])return;if(!_0x576ab5[_0x3c49ee(0x1d4)](_0x43d3fe,_0x10bc8f[_0x3c49ee(0x1e6)]))return;delete _0x10bc8f[_0x3c49ee(0x1e6)][_0x43d3fe],Object['keys'](_0x10bc8f[_0x3c49ee(0x1e6)])[_0x3c49ee(0x1ec)]===0x0&&(!_0x10bc8f['lastProfile']?delete _0x379caa[_0x3c49ee(0x1e9)][_0x25c726]:_0x10bc8f[_0x3c49ee(0x1e6)]={}),_0x576ab5[_0x3c49ee(0x1d6)](writeProjectsConfig,_0x379caa);}export function readLastProfile(_0x57e9cc){const _0x265ea5=_0x54c2,_0x46640a={'aHyoM':function(_0xdb185){return _0xdb185();}},_0xc80b25=_0x46640a['aHyoM'](readProjectsConfig),_0x141603=_0xc80b25['projects'][_0x57e9cc];return _0x141603?.[_0x265ea5(0x1f2)]??null;}export function writeLastProfile(_0x201b92,_0x25445e){const _0x81e1b=_0x54c2,_0x48f223={'BrplL':function(_0x22380a,_0x216588){return _0x22380a(_0x216588);}},_0x28a527=readProjectsConfig(),_0x4be445=_0x28a527[_0x81e1b(0x1e9)][_0x201b92]??={};_0x4be445['lastProfile']=_0x25445e,_0x48f223['BrplL'](writeProjectsConfig,_0x28a527);}export function clearLastProfile(_0x5643af,_0x1e8584){const _0x27bde6=_0x54c2,_0x2d14d1={'ujOOp':function(_0x21f438){return _0x21f438();},'EHzjd':function(_0x53b089,_0x37a9eb){return _0x53b089===_0x37a9eb;}},_0x34cf75=_0x2d14d1['ujOOp'](readProjectsConfig),_0x48a63d=_0x34cf75[_0x27bde6(0x1e9)][_0x5643af];if(!_0x48a63d||_0x48a63d[_0x27bde6(0x1f2)]!==_0x1e8584)return![];return delete _0x48a63d[_0x27bde6(0x1f2)],(!_0x48a63d['profiles']||_0x2d14d1['EHzjd'](Object['keys'](_0x48a63d[_0x27bde6(0x1e6)])['length'],0x0))&&delete _0x34cf75[_0x27bde6(0x1e9)][_0x5643af],writeProjectsConfig(_0x34cf75),!![];}export function mergeCloudProfileSettings(_0x1c6b89,_0x3ddaf0){const _0x5dcb41=_0x54c2,_0x4ce1a0={'Arhvs':function(_0x20b465,_0x18389a){return _0x20b465===_0x18389a;},'dehGc':function(_0x29f163,_0x52e7b9){return _0x29f163(_0x52e7b9);},'LNpIP':function(_0x282299,_0x35a1f5){return _0x282299===_0x35a1f5;}},_0x5e41ce={..._0x1c6b89??{}};if(!_0x3ddaf0)return _0x5e41ce;for(const [_0x22f2b9,_0x5ae7bb]of Object[_0x5dcb41(0x1f1)](_0x3ddaf0)){if(_0x5ae7bb===undefined)continue;if(_0x5ae7bb===null){delete _0x5e41ce[_0x22f2b9];continue;}if(_0x4ce1a0[_0x5dcb41(0x1d0)](_0x22f2b9,_0x5dcb41(0x1dc))||_0x22f2b9==='setupHeaders'){const _0x554e15=_0x4ce1a0[_0x5dcb41(0x1ef)](asRecord,_0x5e41ce[_0x22f2b9])??{},_0x43166c=asRecord(_0x5ae7bb);if(!_0x43166c){_0x5e41ce[_0x22f2b9]=_0x5ae7bb;continue;}const _0x19efac={..._0x554e15};for(const [_0x322661,_0x2e3767]of Object[_0x5dcb41(0x1f1)](_0x43166c)){if(_0x4ce1a0[_0x5dcb41(0x1f8)](_0x2e3767,null))delete _0x19efac[_0x322661];else _0x2e3767!==undefined&&(_0x19efac[_0x322661]=_0x2e3767);}_0x5e41ce[_0x22f2b9]=_0x19efac;continue;}_0x5e41ce[_0x22f2b9]=_0x5ae7bb;}return _0x5e41ce;}function asRecord(_0x3f6ed3){const _0x3c28d1=_0x54c2,_0x1cbefd={'KgjTf':_0x3c28d1(0x1e2)};return _0x3f6ed3&&typeof _0x3f6ed3===_0x1cbefd['KgjTf']&&!Array['isArray'](_0x3f6ed3)?_0x3f6ed3:undefined;}function _0x54c2(_0x38bde5,_0x4969d5){_0x38bde5=_0x38bde5-0x1d0;const _0x2e4eb2=_0x2e4e();let _0x54c23c=_0x2e4eb2[_0x38bde5];return _0x54c23c;}function setByKeyPath(_0x3c3233,_0x4d928d,_0x27e2ab){const _0xa19af4=_0x54c2,_0x30c098={'SnSUH':function(_0x3b1b31,_0x907a7c){return _0x3b1b31!==_0x907a7c;}},_0x4b01f3=_0x4d928d['split']('.');let _0x354b62=_0x3c3233;for(let _0x436b38=0x0;_0x436b38<_0x4b01f3[_0xa19af4(0x1ec)]-0x1;_0x436b38++){const _0x460ef9=_0x4b01f3[_0x436b38],_0x206426=_0x354b62[_0x460ef9];(!_0x206426||_0x30c098['SnSUH'](typeof _0x206426,_0xa19af4(0x1e2))||Array[_0xa19af4(0x1eb)](_0x206426))&&(_0x354b62[_0x460ef9]={}),_0x354b62=_0x354b62[_0x460ef9];}_0x354b62[_0x4b01f3[_0x4b01f3[_0xa19af4(0x1ec)]-0x1]]=_0x27e2ab;}function deleteByKeyPath(_0x86a747,_0x75085a){const _0x4cc901=_0x54c2,_0x4b318a={'SBGWA':function(_0x36c4dc,_0x5c9090){return _0x36c4dc!==_0x5c9090;},'pilLc':function(_0x3ca1d6,_0xcf0ff6){return _0x3ca1d6-_0xcf0ff6;}},_0x5dbc96=_0x75085a[_0x4cc901(0x1d8)]('.');let _0x3f1e8f=_0x86a747;for(let _0x3efc06=0x0;_0x3efc06<_0x5dbc96[_0x4cc901(0x1ec)]-0x1;_0x3efc06++){const _0x2a1628=_0x5dbc96[_0x3efc06],_0x2c1854=_0x3f1e8f[_0x2a1628];if(!_0x2c1854||_0x4b318a['SBGWA'](typeof _0x2c1854,_0x4cc901(0x1e2))||Array['isArray'](_0x2c1854))return![];_0x3f1e8f=_0x2c1854;}const _0x5edc4b=_0x5dbc96[_0x4b318a[_0x4cc901(0x1f0)](_0x5dbc96['length'],0x1)];if(!(_0x5edc4b in _0x3f1e8f))return![];return delete _0x3f1e8f[_0x5edc4b],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2421(){const _0x17cf75=['parse','364046rkvWUo','warn','360mTVNRU','aaoKb','model','489yCoFyE','213702FuJjwf','115497qvrXSr','8611370nBnYTi','805040geyTst','25364361adkCFZ','dBMpk','RaiBW','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','2OOlVez','91PPChQp','LEuGu','20344LmgIeF'];_0x2421=function(){return _0x17cf75;};return _0x2421();}(function(_0x1774ff,_0xfabc08){const _0x2a556a=_0x385a,_0x5b8349=_0x1774ff();while(!![]){try{const _0x2cc305=parseInt(_0x2a556a(0x19f))/0x1*(-parseInt(_0x2a556a(0x1a4))/0x2)+-parseInt(_0x2a556a(0x196))/0x3*(parseInt(_0x2a556a(0x1a2))/0x4)+parseInt(_0x2a556a(0x19a))/0x5+parseInt(_0x2a556a(0x197))/0x6*(-parseInt(_0x2a556a(0x1a0))/0x7)+-parseInt(_0x2a556a(0x193))/0x8*(-parseInt(_0x2a556a(0x198))/0x9)+-parseInt(_0x2a556a(0x199))/0xa+parseInt(_0x2a556a(0x19b))/0xb;if(_0x2cc305===_0xfabc08)break;else _0x5b8349['push'](_0x5b8349['shift']());}catch(_0x1f5019){_0x5b8349['push'](_0x5b8349['shift']());}}}(_0x2421,0x80b12));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x1272d9=_0x385a,_0x5a6945={'dBMpk':function(_0x5117b2,_0x1bb027,_0x117295){return _0x5117b2(_0x1bb027,_0x117295);},'RaiBW':function(_0x45abb1){return _0x45abb1();}};return _0x5a6945[_0x1272d9(0x19c)](join,_0x5a6945[_0x1272d9(0x19d)](getRangerDir),'config.json');}function _0x385a(_0x2ae46d,_0x25768d){_0x2ae46d=_0x2ae46d-0x192;const _0x242109=_0x2421();let _0x385a04=_0x242109[_0x2ae46d];return _0x385a04;}export async function loadRangerConfig(){const _0x440c6a=_0x385a,_0xf00aed={'ogvKz':function(_0x1d18f0){return _0x1d18f0();},'rYskK':function(_0x27e5ca,_0x55c2e4,_0x409227){return _0x27e5ca(_0x55c2e4,_0x409227);},'LEuGu':'object','aaoKb':function(_0xf4ce04,_0x48a820){return _0xf4ce04 instanceof _0x48a820;}},_0x1faa23=_0xf00aed['ogvKz'](getRangerConfigPath);if(!existsSync(_0x1faa23))return{};try{const _0x411d77=await _0xf00aed['rYskK'](readFile,_0x1faa23,'utf-8'),_0x1142ef=JSON[_0x440c6a(0x1a3)](_0x411d77);if(!_0x1142ef||typeof _0x1142ef!==_0xf00aed[_0x440c6a(0x1a1)]||Array['isArray'](_0x1142ef))return{};const _0x1249ba={},_0x21a46b=_0x1142ef['model'];return typeof _0x21a46b==='string'&&(_0x1249ba[_0x440c6a(0x195)]=_0x21a46b),_0x1249ba;}catch(_0x479586){const _0x552553=_0xf00aed[_0x440c6a(0x194)](_0x479586,Error)?_0x479586['message']:String(_0x479586);return console[_0x440c6a(0x192)](_0x440c6a(0x19e)+_0x1faa23+':\x20'+_0x552553),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xf98cc0,_0x58864c){const _0x1ce685=_0x5916,_0x12c22a=_0xf98cc0();while(!![]){try{const _0x1a1f40=parseInt(_0x1ce685(0x1cb))/0x1+parseInt(_0x1ce685(0x1ce))/0x2*(-parseInt(_0x1ce685(0x1cf))/0x3)+parseInt(_0x1ce685(0x1d4))/0x4+-parseInt(_0x1ce685(0x1c7))/0x5+parseInt(_0x1ce685(0x1cc))/0x6+-parseInt(_0x1ce685(0x1d5))/0x7+parseInt(_0x1ce685(0x1cd))/0x8;if(_0x1a1f40===_0x58864c)break;else _0x12c22a['push'](_0x12c22a['shift']());}catch(_0x1adf51){_0x12c22a['push'](_0x12c22a['shift']());}}}(_0x4744,0x85563));function _0x4744(){const _0x557c50=['2646427xJlTwj','2077640SotBZn','DHqLx','.ranger','TZxKo','534005XUHQqh','3885624aCraWI','77784zyuVIU','26266iRMDAi','183FDVaFj','psyYE','jijYn','RxEDl','root','3798068Vazewl'];_0x4744=function(){return _0x557c50;};return _0x4744();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x5916(_0x5c114b,_0xe4dcc4){_0x5c114b=_0x5c114b-0x1c7;const _0x4744ec=_0x4744();let _0x591683=_0x4744ec[_0x5c114b];return _0x591683;}export function getRangerRoot(){const _0x35ec07=_0x5916,_0x38c1d2={'yBEBf':function(_0x20a741,_0x14759f){return _0x20a741!==_0x14759f;},'PBrYe':function(_0x4ec7ef,_0x3bea86,_0xa9841a){return _0x4ec7ef(_0x3bea86,_0xa9841a);},'DHqLx':'.ranger','jijYn':function(_0x2db0fb,_0x2659b2){return _0x2db0fb(_0x2659b2);},'TZxKo':function(_0x303602,_0x5cc5ce,_0x136a0e){return _0x303602(_0x5cc5ce,_0x136a0e);}};let _0x11619c=process['cwd']();const _0xeabcc1=parse(_0x11619c)['root'];while(_0x38c1d2['yBEBf'](_0x11619c,_0xeabcc1)){if(existsSync(_0x38c1d2['PBrYe'](join,_0x11619c,_0x38c1d2['DHqLx'])))return _0x11619c;_0x11619c=dirname(_0x11619c);}if(_0x38c1d2[_0x35ec07(0x1d1)](existsSync,_0x38c1d2[_0x35ec07(0x1ca)](join,_0xeabcc1,_0x38c1d2[_0x35ec07(0x1c8)])))return _0xeabcc1;const _0x1f71b9=findGitRoot();if(_0x1f71b9)return _0x1f71b9;return process['cwd']();}export function getRangerDir(){const _0x50db55={'pSteN':function(_0x8283fd,_0xdb4c8e,_0x46aa12){return _0x8283fd(_0xdb4c8e,_0x46aa12);},'IKkpN':'.ranger'};return _0x50db55['pSteN'](join,getRangerRoot(),_0x50db55['IKkpN']);}export function findGitRoot(){const _0x463e21=_0x5916,_0x3dc5a1={'psyYE':function(_0x431576,_0x231c9a){return _0x431576(_0x231c9a);},'Kaask':'.git','DIfXq':function(_0x49283f,_0x4fb1d0){return _0x49283f(_0x4fb1d0);}};let _0xdb47b3=process['cwd']();const _0x3fd437=parse(_0xdb47b3)[_0x463e21(0x1d3)];while(_0xdb47b3!==_0x3fd437){if(_0x3dc5a1['psyYE'](existsSync,join(_0xdb47b3,_0x3dc5a1['Kaask'])))return _0xdb47b3;_0xdb47b3=_0x3dc5a1['DIfXq'](dirname,_0xdb47b3);}if(_0x3dc5a1[_0x463e21(0x1d0)](existsSync,join(_0x3fd437,_0x3dc5a1['Kaask'])))return _0x3fd437;return null;}export function getRangerHomeDir(){const _0x496daa=_0x5916,_0x6dd6be={'JPTVm':function(_0x1b1347){return _0x1b1347();},'RxEDl':_0x496daa(0x1c9)};return join(_0x6dd6be['JPTVm'](homedir),_0x6dd6be[_0x496daa(0x1d2)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17b8bc,_0x11ed2d){const _0xc8df31=_0x3de2,_0x224f51=_0x17b8bc();while(!![]){try{const _0x44f2a3=-parseInt(_0xc8df31(0x211))/0x1*(-parseInt(_0xc8df31(0x203))/0x2)+parseInt(_0xc8df31(0x20d))/0x3+-parseInt(_0xc8df31(0x1e8))/0x4*(parseInt(_0xc8df31(0x1f4))/0x5)+-parseInt(_0xc8df31(0x20c))/0x6*(-parseInt(_0xc8df31(0x1fe))/0x7)+-parseInt(_0xc8df31(0x20e))/0x8*(parseInt(_0xc8df31(0x1f1))/0x9)+-parseInt(_0xc8df31(0x217))/0xa+parseInt(_0xc8df31(0x216))/0xb;if(_0x44f2a3===_0x11ed2d)break;else _0x224f51['push'](_0x224f51['shift']());}catch(_0x48c112){_0x224f51['push'](_0x224f51['shift']());}}}(_0xb8ae,0x6beb1));import{existsSync}from'fs';import _0x22d718 from'inquirer';function _0x3de2(_0x11df54,_0x41e186){_0x11df54=_0x11df54-0x1e8;const _0xb8ae0d=_0xb8ae();let _0x3de2a7=_0xb8ae0d[_0x11df54];return _0x3de2a7;}function _0xb8ae(){const _0xa971f0=['profile','baseUrl','126074UTAtLq','cDEfz','cwd','startPath','envBaseUrl','10250163EBWrBY','4809060RtfJrN','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','RANGER_TEST_USERNAME','1056Fjwuod','EYKir','CeLil','VcDLe','list','QmgPs','Cloud\x20profile\x20(recommended)','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','27TpnouK','SKvmN','name','13950dqyMIP','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','env','\x20baseUrl\x20<url>','WOGJD','HsyMM','FrToY','log','cloud','source','91uiiTot','ubCqB','PjjcX','Profile\x20\x22','`ranger\x20profile\x20add`\x20to\x20create\x20one.','2OMNmHp','AgMIC','prompt','string','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','length','SRZeM','\x20does\x20not\x20exist.','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','354180Oyksdp','456858OofpKp','848224qwYzMZ'];_0xb8ae=function(){return _0xa971f0;};return _0xb8ae();}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(_0x40c07){const _0x279b6b=_0x3de2,_0x3b108f={'cDEfz':function(_0x324b56){return _0x324b56();},'CgobK':function(_0x1cc959,_0x36ee38){return _0x1cc959+_0x36ee38;},'srOcz':function(_0x13cdcb,_0x2738b9){return _0x13cdcb+_0x2738b9;},'bRihR':_0x279b6b(0x218),'PjjcX':function(_0x334adc,_0x5bd26c){return _0x334adc(_0x5bd26c);},'DuhxD':function(_0x1f1a16,_0x59674f){return _0x1f1a16===_0x59674f;},'QmgPs':function(_0xaacbf8,_0x2ce346){return _0xaacbf8&&_0x2ce346;},'EYKir':function(_0x4aca32,_0x3f297a){return _0x4aca32+_0x3f297a;},'QxOKO':function(_0x5b0c50,_0x5b7e68){return _0x5b0c50&&_0x5b7e68;},'NwwPJ':function(_0x1c10d){return _0x1c10d();},'WOGJD':_0x279b6b(0x1ee),'FrToY':'local','HsyMM':function(_0x3601b9,_0x28633c){return _0x3601b9===_0x28633c;},'AgMIC':function(_0x147230,_0x22223e,_0x3c3ad4){return _0x147230(_0x22223e,_0x3c3ad4);},'QDAos':function(_0x1dac61,_0x512c21){return _0x1dac61(_0x512c21);},'xHyVP':function(_0x56bdf1,_0x305152,_0x26678a){return _0x56bdf1(_0x305152,_0x26678a);},'VcDLe':function(_0x52ce56,_0x462425){return _0x52ce56(_0x462425);},'eiDAY':function(_0x2e7b37,_0x195603){return _0x2e7b37(_0x195603);},'SKvmN':function(_0x391988,_0x18c217){return _0x391988(_0x18c217);},'VCDSN':function(_0x2a5954,_0xc42574){return _0x2a5954(_0xc42574);},'CeLil':function(_0x1fac23,_0x95eab4){return _0x1fac23&&_0x95eab4;}},_0x3ac385=_0x40c07[_0x279b6b(0x20f)];let _0x4fae5d=_0x40c07['profile']??await readActiveProfileName(),_0x571aad=null;if(!_0x4fae5d&&process['env'][_0x279b6b(0x219)]){const _0x827e6a=await _0x3b108f[_0x279b6b(0x212)](resolveAdHocProfile);_0x827e6a&&(_0x4fae5d=_0x827e6a['name'],_0x571aad=_0x827e6a[_0x279b6b(0x20f)]);}if(!_0x4fae5d)try{const _0x4ab64c=await listCloudProfiles();if(_0x4ab64c[_0x279b6b(0x208)]===0x1){const _0x61eca8=_0x4ab64c[0x0];_0x4fae5d=_0x61eca8['name'],console[_0x279b6b(0x1fb)](_0x279b6b(0x207)+_0x61eca8[_0x279b6b(0x1f3)]),console[_0x279b6b(0x1fb)](_0x279b6b(0x20b));}}catch{}if(!_0x4fae5d)throw new Error(_0x3b108f['CgobK'](_0x3b108f['srOcz'](_0x3b108f['srOcz']('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a',_0x3b108f['bRihR']),_0x279b6b(0x1f0))+'\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 _0x3b02da=_0x3b108f[_0x279b6b(0x200)](getEnvDir,_0x4fae5d),_0x57b636=_0x3b108f['PjjcX'](existsSync,_0x3b02da);let _0x84da94=_0x571aad,_0x3a8426=![];if(!_0x84da94)try{_0x84da94=await fetchCloudProfile(_0x4fae5d);if(!_0x84da94)_0x3a8426=!![];}catch(_0x2e1404){_0x2e1404 instanceof ApiError&&_0x3b108f['DuhxD'](_0x2e1404['status'],0x194)&&(_0x3a8426=!![]);}if(_0x3b108f[_0x279b6b(0x1ed)](_0x3ac385,_0x3a8426)&&!_0x57b636&&!_0x84da94)throw new Error(_0x3b108f[_0x279b6b(0x1e9)](_0x279b6b(0x201)+_0x3ac385+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+_0x279b6b(0x202));if(_0x3b108f['QxOKO'](_0x84da94,_0x57b636)){let _0x520bcd=!![];if(_0x3b108f['NwwPJ'](isInteractive)){const {source:_0x3a7592}=await _0x22d718[_0x279b6b(0x205)]([{'type':_0x279b6b(0x1ec),'name':_0x279b6b(0x1fd),'message':_0x279b6b(0x201)+_0x4fae5d+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x3b108f[_0x279b6b(0x1f8)],'value':'cloud'},{'name':'Local\x20profile','value':_0x3b108f[_0x279b6b(0x1fa)]}],'default':_0x279b6b(0x1fc)}]);_0x520bcd=_0x3b108f[_0x279b6b(0x1f9)](_0x3a7592,'cloud');}if(!_0x520bcd)_0x84da94=null;}const _0x5cda50=_0x3b108f[_0x279b6b(0x204)](readProfileOverrides,process[_0x279b6b(0x213)](),_0x4fae5d);let _0x3c1bda=null,_0x5dc6c8,_0xa3df2f,_0x1c8acb,_0x5e5487,_0x112ce1=null,_0x2f7daf;const _0xcf6342=_0x3b108f['QDAos'](expandOverrides,_0x5cda50);if(_0x84da94){_0x3c1bda=_0x84da94;const _0x1e233a=_0x84da94['settings']??{},_0x246cb3=_0x3b108f['xHyVP'](mergeCloudProfileSettings,_0x1e233a,_0x5cda50??undefined),_0x25ddfd={..._0x84da94,'settings':_0x246cb3},_0x2e42ee=process[_0x279b6b(0x1f6)]['RANGER_SESSION_STATE_PATH'];if(_0x2e42ee){if(!existsSync(_0x2e42ee))throw new Error('RANGER_SESSION_STATE_PATH='+_0x2e42ee+_0x279b6b(0x20a));_0x5dc6c8=_0x2e42ee,_0xa3df2f=_0x3b108f['PjjcX'](resolveEnvVars,_0x246cb3),_0x1c8acb=_0x3b108f['QDAos'](Boolean,_0xa3df2f['cdpEndpoint']),_0x112ce1={'baseUrl':_0x3b108f[_0x279b6b(0x1eb)](expandString,_0x1e233a['baseUrl']),'startPath':expandString(_0x1e233a[_0x279b6b(0x214)])};}else{const _0x361860=await resolveCloudProfileSession(_0x25ddfd);_0x5dc6c8=_0x361860['authPath'],_0xa3df2f=resolveEnvVars(_0x246cb3),_0x1c8acb=Boolean(_0xa3df2f['cdpEndpoint']),_0x112ce1={'baseUrl':expandString(_0x1e233a['baseUrl']),'startPath':_0x3b108f['eiDAY'](expandString,_0x1e233a[_0x279b6b(0x214)])},_0x2f7daf=_0x361860['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x57b636)throw new Error(_0x279b6b(0x201)+_0x4fae5d+_0x279b6b(0x1f5)+_0x4fae5d);const _0x1cff0c=await _0x3b108f['QDAos'](loadSettings,_0x4fae5d);_0xa3df2f=_0x3b108f[_0x279b6b(0x1f2)](resolveEnvVars,_0x1cff0c),_0x1c8acb=_0x3b108f['VCDSN'](Boolean,_0xa3df2f['cdpEndpoint']),_0x5e5487=_0xa3df2f['baseUrl'];}const _0x47a630=_0x3b108f[_0x279b6b(0x212)](readUrlEnvVars),_0xfeab85=resolveProfileUrl({'flagBaseUrl':_0x40c07[_0x279b6b(0x210)],'flagStartPath':_0x40c07[_0x279b6b(0x214)],'envBaseUrl':_0x47a630[_0x279b6b(0x215)],'envStartPath':_0x47a630['envStartPath'],'localSettingsBaseUrl':_0x5e5487,'projectOverrides':_0xcf6342,'cloudSettings':_0x112ce1,'authEnvironmentDomain':_0x2f7daf}),_0x10a0c9=_0xfeab85['url']??_0xfeab85['baseUrl'];if(_0x3b108f[_0x279b6b(0x1ea)](!_0x10a0c9,!_0x1c8acb))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x4fae5d+_0x279b6b(0x1ef)+_0x4fae5d+_0x279b6b(0x1f7));return{'activeProfile':_0x4fae5d,'resolvedCloudProfile':_0x3c1bda,'cloudAuthPath':_0x5dc6c8,'resolvedSettings':_0xa3df2f,'isCdpMode':_0x1c8acb,'url':_0x10a0c9,'startPath':_0xfeab85['startPath']};}function expandString(_0x5a3cdf){const _0x32a171=_0x3de2,_0x2615ae={'seBMR':function(_0x314096,_0x9953){return _0x314096!==_0x9953;},'ubCqB':_0x32a171(0x206)};if(_0x2615ae['seBMR'](typeof _0x5a3cdf,_0x2615ae[_0x32a171(0x1ff)]))return _0x5a3cdf;return resolveEnvVars(_0x5a3cdf);}function expandOverrides(_0x4328f0){const _0x3fa737=_0x3de2,_0x36a351={'SRZeM':_0x3fa737(0x206),'EzHVY':function(_0x4cabea,_0x3c5803){return _0x4cabea(_0x3c5803);}};if(!_0x4328f0)return _0x4328f0;const _0x30c9d5={..._0x4328f0};return typeof _0x30c9d5[_0x3fa737(0x210)]===_0x36a351['SRZeM']&&(_0x30c9d5['baseUrl']=_0x36a351['EzHVY'](resolveEnvVars,_0x30c9d5[_0x3fa737(0x210)])),typeof _0x30c9d5['startPath']===_0x36a351[_0x3fa737(0x209)]&&(_0x30c9d5[_0x3fa737(0x214)]=resolveEnvVars(_0x30c9d5['startPath'])),_0x30c9d5;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x6d19(_0x53f5f3,_0x50599f){_0x53f5f3=_0x53f5f3-0x71;const _0x57a02d=_0x57a0();let _0x6d19d1=_0x57a02d[_0x53f5f3];return _0x6d19d1;}const _0x4a6c3a=_0x6d19;function _0x57a0(){const _0x1a767d=['localSettingsBaseUrl','416658XvaHqf','authEnvironmentDomain','lTWZB','bSdNg','envBaseUrl','RANGER_START_PATH','baseUrl','1352946gsoaUQ','LbBZS','HLjgC','cloudSettings','envStartPath','uWuuz','716304KEaSQk','866664cqCRdt','RANGER_BASE_URL','4136517jQovFc','2Plygnf','221348uOiWgz','LiqIL','15FsPwxW','ievXr','133157gyurgu','projectOverrides','startPath','test','env'];_0x57a0=function(){return _0x1a767d;};return _0x57a0();}(function(_0x4b2c23,_0x359ab7){const _0x4c3888=_0x6d19,_0xd494b2=_0x4b2c23();while(!![]){try{const _0x5a9c98=parseInt(_0x4c3888(0x88))/0x1*(parseInt(_0x4c3888(0x83))/0x2)+-parseInt(_0x4c3888(0x72))/0x3+-parseInt(_0x4c3888(0x84))/0x4*(-parseInt(_0x4c3888(0x86))/0x5)+parseInt(_0x4c3888(0x7f))/0x6+parseInt(_0x4c3888(0x79))/0x7+parseInt(_0x4c3888(0x80))/0x8+-parseInt(_0x4c3888(0x82))/0x9;if(_0x5a9c98===_0x359ab7)break;else _0xd494b2['push'](_0xd494b2['shift']());}catch(_0x277350){_0xd494b2['push'](_0xd494b2['shift']());}}}(_0x57a0,0x1db40));function firstDefined(..._0x2265ce){const _0x13ee92=_0x6d19,_0x30b1eb={'LbBZS':function(_0x33a897,_0x186c2d){return _0x33a897!==_0x186c2d;}};for(const _0x17c1d9 of _0x2265ce){if(_0x30b1eb[_0x13ee92(0x7a)](_0x17c1d9,undefined)&&_0x17c1d9!==null&&_0x17c1d9!=='')return _0x17c1d9;}return undefined;}function normalizeAuthEnvironmentDomain(_0x2a0ab0){const _0x10432e=_0x6d19;if(!_0x2a0ab0)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x10432e(0x8b)](_0x2a0ab0))return _0x2a0ab0;return'https://'+_0x2a0ab0;}export function resolveBaseUrl(_0x1e5189){const _0x40d988=_0x6d19,_0x9e81e2={'uWuuz':function(_0x5774e6,_0x2edd80){return _0x5774e6===_0x2edd80;},'ievXr':function(_0x1f4937,_0x378688,_0x5789f4,_0x8ce6b9,_0x1ffbf8,_0xa13ef,_0x2fa5e4){return _0x1f4937(_0x378688,_0x5789f4,_0x8ce6b9,_0x1ffbf8,_0xa13ef,_0x2fa5e4);}},_0x57cd58=_0x1e5189[_0x40d988(0x89)],_0x3440ae=!!_0x57cd58&&_0x40d988(0x78)in _0x57cd58,_0x269ff9=_0x57cd58?.['baseUrl'],_0xd87123=!(_0x3440ae&&_0x9e81e2[_0x40d988(0x7e)](_0x269ff9,null));return _0x9e81e2[_0x40d988(0x87)](firstDefined,_0x1e5189['flagBaseUrl'],_0x1e5189[_0x40d988(0x76)],_0x1e5189[_0x40d988(0x71)],_0x9e81e2['uWuuz'](typeof _0x269ff9,'string')?_0x269ff9:undefined,_0xd87123?_0x1e5189[_0x40d988(0x7c)]?.[_0x40d988(0x78)]:undefined,_0xd87123?normalizeAuthEnvironmentDomain(_0x1e5189[_0x40d988(0x73)]):undefined);}export function resolveStartPath(_0x25c147){const _0x45c522=_0x6d19,_0x3e2e6c={'HLjgC':function(_0x16e313,_0x15117c){return _0x16e313 in _0x15117c;},'DbVru':_0x45c522(0x8a),'bSdNg':function(_0x2310bb,_0x411eee,_0x196247,_0x3f474d,_0x25bb49){return _0x2310bb(_0x411eee,_0x196247,_0x3f474d,_0x25bb49);},'JtNUf':'string'},_0x4c5e99=_0x25c147['projectOverrides'],_0x1a37cd=!!_0x4c5e99&&_0x3e2e6c[_0x45c522(0x7b)](_0x3e2e6c['DbVru'],_0x4c5e99),_0xecd567=_0x4c5e99?.['startPath'],_0x5dc4ae=!(_0x1a37cd&&_0xecd567===null);return _0x3e2e6c[_0x45c522(0x75)](firstDefined,_0x25c147['flagStartPath'],_0x25c147[_0x45c522(0x7d)],typeof _0xecd567===_0x3e2e6c['JtNUf']?_0xecd567:undefined,_0x5dc4ae?_0x25c147[_0x45c522(0x7c)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x3d1a69,_0x396f43){if(!_0x3d1a69)return undefined;if(!_0x396f43)return _0x3d1a69;const _0x16fb61=_0x3d1a69['endsWith']('/')?_0x3d1a69['slice'](0x0,-0x1):_0x3d1a69,_0x33e4b1=_0x396f43['startsWith']('/')?_0x396f43:'/'+_0x396f43;return _0x16fb61+_0x33e4b1;}export function resolveProfileUrl(_0x1abf7d){const _0x4c8a90=_0x6d19,_0x3f86db={'lTWZB':function(_0x1c5a70,_0x436ef8){return _0x1c5a70(_0x436ef8);},'LiqIL':function(_0x519709,_0x3b8416,_0x231d69){return _0x519709(_0x3b8416,_0x231d69);}},_0x2acf5e=resolveBaseUrl(_0x1abf7d),_0x55f851=_0x3f86db[_0x4c8a90(0x74)](resolveStartPath,_0x1abf7d);return{'baseUrl':_0x2acf5e,'startPath':_0x55f851,'url':_0x3f86db[_0x4c8a90(0x85)](joinBaseAndPath,_0x2acf5e,_0x55f851)};}export function readUrlEnvVars(_0x57ce95=process[_0x4a6c3a(0x8c)]){const _0x853d5b=_0x4a6c3a;return{'envBaseUrl':_0x57ce95[_0x853d5b(0x81)],'envStartPath':_0x57ce95[_0x853d5b(0x77)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x279d(){const _0x39271b=['\x20failed\x20(attempt\x20','12630726VThsGN','),\x20retrying\x20in\x20','2831630BwsZRT','77vzGHMn','7230680bhRtTI','3983688aUqkZu','2ifViMD','233944KGtKbm','15zfTxYB','135693xBapvN','5EHLXDd','tXeZz','6197835gQRVDK'];_0x279d=function(){return _0x39271b;};return _0x279d();}function _0xc750(_0xb4882f,_0x30eec2){_0xb4882f=_0xb4882f-0xeb;const _0x279d1d=_0x279d();let _0xc75019=_0x279d1d[_0xb4882f];return _0xc75019;}(function(_0x369f05,_0x197b35){const _0x24649c=_0xc750,_0x43a3c5=_0x369f05();while(!![]){try{const _0x1e7657=-parseInt(_0x24649c(0xec))/0x1*(-parseInt(_0x24649c(0xf7))/0x2)+parseInt(_0x24649c(0xeb))/0x3*(-parseInt(_0x24649c(0xf8))/0x4)+parseInt(_0x24649c(0xed))/0x5*(-parseInt(_0x24649c(0xf6))/0x6)+-parseInt(_0x24649c(0xef))/0x7+-parseInt(_0x24649c(0xf5))/0x8+parseInt(_0x24649c(0xf1))/0x9+-parseInt(_0x24649c(0xf3))/0xa*(-parseInt(_0x24649c(0xf4))/0xb);if(_0x1e7657===_0x197b35)break;else _0x43a3c5['push'](_0x43a3c5['shift']());}catch(_0x58804a){_0x43a3c5['push'](_0x43a3c5['shift']());}}}(_0x279d,0xbd5ce));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1f5d62,_0x4f432b){const _0x405f05=_0xc750,_0x540668={'oMTKq':function(_0x1ace56,_0x4c5928){return _0x1ace56<=_0x4c5928;},'uJVxQ':function(_0x4de12d){return _0x4de12d();},'VNZdr':function(_0x478825,_0x44f6d1){return _0x478825*_0x44f6d1;},'tXeZz':function(_0x38af5f,_0x530ed9){return _0x38af5f+_0x530ed9;}},_0x426112=_0x4f432b?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4eed91=_0x4f432b?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x1405b1;for(let _0x40a75a=0x0;_0x540668['oMTKq'](_0x40a75a,_0x426112);_0x40a75a++){try{return await _0x540668['uJVxQ'](_0x1f5d62);}catch(_0x3767be){_0x1405b1=_0x3767be instanceof Error?_0x3767be:new Error(String(_0x3767be));if(_0x40a75a<_0x426112){const _0x2c58cb=_0x540668['VNZdr'](_0x4eed91,Math['pow'](0x2,_0x40a75a));_0x4f432b?.['label']&&console['error'](_0x4f432b['label']+_0x405f05(0xf0)+_0x540668[_0x405f05(0xee)](_0x40a75a,0x1)+'/'+_0x540668['tXeZz'](_0x426112,0x1)+_0x405f05(0xf2)+_0x2c58cb+'ms...'),await new Promise(_0x1c1242=>setTimeout(_0x1c1242,_0x2c58cb));}}}throw _0x1405b1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b0824=_0x5351;(function(_0x564d09,_0x3d1e3c){const _0x1880f4=_0x5351,_0x3b3112=_0x564d09();while(!![]){try{const _0xa23e49=parseInt(_0x1880f4(0x181))/0x1*(-parseInt(_0x1880f4(0x175))/0x2)+parseInt(_0x1880f4(0x163))/0x3*(parseInt(_0x1880f4(0x151))/0x4)+-parseInt(_0x1880f4(0x16f))/0x5+-parseInt(_0x1880f4(0x161))/0x6*(-parseInt(_0x1880f4(0x15a))/0x7)+parseInt(_0x1880f4(0x16b))/0x8+-parseInt(_0x1880f4(0x157))/0x9+parseInt(_0x1880f4(0x16d))/0xa;if(_0xa23e49===_0x3d1e3c)break;else _0x3b3112['push'](_0x3b3112['shift']());}catch(_0x6b8f99){_0x3b3112['push'](_0x3b3112['shift']());}}}(_0x28ed,0xc0692));import*as _0x40578d from'fs';import*as _0x494f09 from'path';function _0x28ed(){const _0x57e6f6=['3741488DlOOkW','NOVcz','19487280RSWAkk','XNJUK','2933855rUABgy','YhTRW','Anomr','olnZI','fymwe','dknHf','10xHZigD','dzLIe','sessions','main','VtHee','stringify','now','mkdirSync','prompted','parse','tBWAs','master','154263toXYxE','featureId','VwqRs','.ranger_cache.json','212tzoVkX','registeredAt','FrNgL','adMED','branches','trim','5636223nKRfhC','currentBranch','OBJhl','14315PjjJgG','ObrZu','writeFileSync','Ogtpa','ftIsu','iAjjX','lastEnabledSessionClearedAt','396IjsVlH','git\x20rev-parse\x20--abbrev-ref\x20HEAD','12513KBWgDL','pipe','dirname','tdwBR','UnsUY','bHeAI','LBqMU','enabled'];_0x28ed=function(){return _0x57e6f6;};return _0x28ed();}import*as _0x180567 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x494f09['join'](_0x180567['homedir'](),'.claude',_0x4b0824(0x184));function _0x5351(_0x40bb56,_0x1b485){_0x40bb56=_0x40bb56-0x151;const _0x28ed4c=_0x28ed();let _0x535151=_0x28ed4c[_0x40bb56];return _0x535151;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x15cfee=_0x4b0824;try{if(_0x40578d['existsSync'](CACHE_FILE)){const _0x4690f4=JSON[_0x15cfee(0x17e)](_0x40578d['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x4690f4['sessions']||{},'branches':_0x4690f4[_0x15cfee(0x155)]||{},'lastEnabledSessionClearedAt':_0x4690f4[_0x15cfee(0x160)]};}}catch{}return createEmptyCache();}function saveCache(_0x14208c){const _0xca028b=_0x4b0824;try{const _0x3e2bfa=_0x494f09[_0xca028b(0x165)](CACHE_FILE);!_0x40578d['existsSync'](_0x3e2bfa)&&_0x40578d[_0xca028b(0x17c)](_0x3e2bfa,{'recursive':!![]}),_0x40578d[_0xca028b(0x15c)](CACHE_FILE,JSON[_0xca028b(0x17a)](_0x14208c,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58be8d=_0x4b0824,_0x4bb43e={'dknHf':function(_0x5dbd22,_0x5f2b42,_0x20de43){return _0x5dbd22(_0x5f2b42,_0x20de43);},'FrNgL':_0x58be8d(0x164),'DErIA':function(_0x5b7ebd,_0x1582b8){return _0x5b7ebd===_0x1582b8;}};try{const _0x1ca2c2=_0x4bb43e[_0x58be8d(0x174)](execSync,_0x58be8d(0x162),{'encoding':'utf-8','stdio':[_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e['FrNgL']]})[_0x58be8d(0x156)]();if(!_0x1ca2c2||_0x4bb43e['DErIA'](_0x1ca2c2,'HEAD'))return null;return _0x1ca2c2;}catch{return null;}}export function enableBranch(_0x2a950a){const _0x25a4fa=_0x4b0824,_0x3aba52=loadCache();_0x3aba52[_0x25a4fa(0x155)][_0x2a950a]=!![],saveCache(_0x3aba52);}export function disableBranch(_0x48d85d){const _0x3ae8c7={'WJIMe':function(_0x5a3e25){return _0x5a3e25();},'PmCmQ':function(_0x3ceaaf,_0x3ddbe4){return _0x3ceaaf(_0x3ddbe4);}},_0x2fa2c6=_0x3ae8c7['WJIMe'](loadCache);delete _0x2fa2c6['branches'][_0x48d85d],_0x3ae8c7['PmCmQ'](saveCache,_0x2fa2c6);}export function isBranchEnabled(_0x3eee5f){const _0x2d6cb1=_0x4b0824,_0x14970f={'sSeQz':function(_0x3bc522){return _0x3bc522();},'OBJhl':function(_0x41d746,_0x42d155){return _0x41d746===_0x42d155;}},_0x511933=_0x14970f['sSeQz'](loadCache);return _0x14970f[_0x2d6cb1(0x159)](_0x511933[_0x2d6cb1(0x155)][_0x3eee5f],!![]);}function getOrCreateSession(_0x140fb0,_0x41197d){const _0x339471=_0x4b0824;return!_0x140fb0['sessions'][_0x41197d]&&(_0x140fb0[_0x339471(0x177)][_0x41197d]={}),_0x140fb0['sessions'][_0x41197d];}export function enableSession(_0x4d83e2){const _0x5d1283=_0x4b0824,_0xa63c56={'NOVcz':function(_0xee481e,_0x15b637,_0x4264ed){return _0xee481e(_0x15b637,_0x4264ed);},'BqdsA':function(_0x5973c3,_0x45b99a){return _0x5973c3!==_0x45b99a;}},_0x4a1ddb=loadCache(),_0x11c3a7=_0xa63c56[_0x5d1283(0x16c)](getOrCreateSession,_0x4a1ddb,_0x4d83e2);_0x11c3a7[_0x5d1283(0x16a)]=!![];const _0x526b6d=getCurrentBranch();_0x526b6d&&_0x526b6d!==_0x5d1283(0x178)&&_0xa63c56['BqdsA'](_0x526b6d,_0x5d1283(0x180))&&(_0x4a1ddb[_0x5d1283(0x155)][_0x526b6d]=!![],_0x11c3a7['currentBranch']=_0x526b6d),saveCache(_0x4a1ddb);}export function isSessionEnabled(_0x368dff){const _0x3a0122=_0x4b0824,_0x439d19={'olnZI':function(_0x27d082){return _0x27d082();},'Yhpcd':function(_0x1c9d2a,_0x5c3f05){return _0x1c9d2a===_0x5c3f05;},'VtHee':function(_0x233fd6,_0x2067c1){return _0x233fd6===_0x2067c1;}},_0x35e86b=_0x439d19[_0x3a0122(0x172)](loadCache),_0x51738a=getCurrentBranch();if(!_0x51738a||_0x439d19['Yhpcd'](_0x51738a,_0x3a0122(0x178))||_0x439d19[_0x3a0122(0x179)](_0x51738a,'master'))return _0x35e86b['sessions'][_0x368dff]?.[_0x3a0122(0x16a)]===!![];const _0x81d06=_0x439d19[_0x3a0122(0x179)](_0x35e86b[_0x3a0122(0x155)][_0x51738a],!![]),_0x11ad53=_0x439d19['VtHee'](_0x35e86b[_0x3a0122(0x177)][_0x368dff]?.['enabled'],!![]);return _0x81d06||_0x11ad53;}export function disableSession(_0x130a85){const _0x181940=_0x4b0824,_0x57c9fd={'Ogtpa':function(_0x26e413){return _0x26e413();},'VODgz':function(_0x4f387e,_0x234bfd,_0x5b031d){return _0x4f387e(_0x234bfd,_0x5b031d);},'uiwiJ':function(_0x3083fe,_0x5c036b){return _0x3083fe(_0x5c036b);}},_0x18a9fd=_0x57c9fd[_0x181940(0x15d)](loadCache),_0x58203e=_0x57c9fd['VODgz'](getOrCreateSession,_0x18a9fd,_0x130a85);_0x58203e['enabled']=![],_0x57c9fd['uiwiJ'](saveCache,_0x18a9fd);}export function updateBranchTracking(_0x5e913f){const _0x350c82=_0x4b0824,_0x3d9fab={'UnsUY':function(_0x3e5295,_0x194b8a){return _0x3e5295===_0x194b8a;},'ObrZu':'main','yrPFO':function(_0x3f4f5d,_0x36e76d){return _0x3f4f5d===_0x36e76d;},'Hwvpe':'master'},_0x1119ca=loadCache(),_0x4401d2=_0x1119ca[_0x350c82(0x177)][_0x5e913f];if(!_0x4401d2?.[_0x350c82(0x16a)])return;const _0xe16086=getCurrentBranch();if(!_0xe16086||_0x3d9fab[_0x350c82(0x167)](_0xe16086,_0x3d9fab[_0x350c82(0x15b)])||_0x3d9fab['yrPFO'](_0xe16086,_0x3d9fab['Hwvpe']))return;_0x4401d2['currentBranch']!==_0xe16086&&(_0x1119ca[_0x350c82(0x155)][_0xe16086]=!![],_0x4401d2[_0x350c82(0x158)]=_0xe16086,saveCache(_0x1119ca));}export function initBranchTracking(_0x347b79){const _0x427c2d=_0x4b0824,_0x1e8c26={'VwqRs':function(_0x3c76a6){return _0x3c76a6();},'LBqMU':function(_0x2ff810,_0x36fab2){return _0x2ff810===_0x36fab2;}},_0x3845d5=_0x1e8c26[_0x427c2d(0x183)](loadCache),_0x4b2df9=getCurrentBranch();if(!_0x4b2df9||_0x1e8c26['LBqMU'](_0x4b2df9,_0x427c2d(0x178))||_0x1e8c26[_0x427c2d(0x169)](_0x4b2df9,_0x427c2d(0x180)))return;if(_0x1e8c26[_0x427c2d(0x169)](_0x3845d5['branches'][_0x4b2df9],!![])){const _0x57a948=getOrCreateSession(_0x3845d5,_0x347b79);_0x57a948[_0x427c2d(0x16a)]=!![],_0x57a948[_0x427c2d(0x158)]=_0x4b2df9,saveCache(_0x3845d5);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5c9a37){const _0x8f6477=_0x4b0824,_0x146b3f={'AOqGx':function(_0x55dc88,_0x4e410e){return _0x55dc88(_0x4e410e);}},_0x439a33=loadCache(),_0x4a3a8f=_0x439a33[_0x8f6477(0x177)][_0x5c9a37];_0x4a3a8f?.[_0x8f6477(0x16a)]&&(_0x439a33[_0x8f6477(0x160)]=Date[_0x8f6477(0x17b)](),_0x146b3f['AOqGx'](saveCache,_0x439a33));}export function shouldAutoEnableAfterClear(_0x3b0910){const _0x45a4f5={'PZPMA':function(_0x334956,_0x548a2c){return _0x334956<=_0x548a2c;}};if(_0x3b0910!=='clear')return![];const _0x40f036=loadCache(),_0x3504e6=_0x40f036['lastEnabledSessionClearedAt'];if(!_0x3504e6)return![];const _0x281eb7=Date['now']()-_0x3504e6;return _0x45a4f5['PZPMA'](_0x281eb7,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x25de1a){const _0x432263=_0x4b0824,_0xa45808={'adMED':function(_0x1ac7dc){return _0x1ac7dc();},'ftIsu':function(_0x435214,_0x43a2ed){return _0x435214!==_0x43a2ed;},'bHeAI':'main','BEoZP':_0x432263(0x180)},_0x401cbd=_0xa45808[_0x432263(0x154)](loadCache),_0x1bcd76=getOrCreateSession(_0x401cbd,_0x25de1a);_0x1bcd76[_0x432263(0x16a)]=!![];const _0x17a358=getCurrentBranch();_0x17a358&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808[_0x432263(0x168)])&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808['BEoZP'])&&(_0x1bcd76['currentBranch']=_0x17a358),delete _0x401cbd[_0x432263(0x160)],saveCache(_0x401cbd);}export function registerSession(_0x45dcee,_0x4bed82){const _0x3d1e94=_0x4b0824,_0x33b2e3={'dJoTs':function(_0x352f04){return _0x352f04();},'Anomr':function(_0x42c682,_0x14c5aa,_0x3c97fd){return _0x42c682(_0x14c5aa,_0x3c97fd);},'nExbe':function(_0x1cc024,_0x3ecfa4){return _0x1cc024(_0x3ecfa4);}},_0x333342=_0x33b2e3['dJoTs'](loadCache),_0x54bf28=_0x33b2e3[_0x3d1e94(0x171)](getOrCreateSession,_0x333342,_0x45dcee);_0x54bf28[_0x3d1e94(0x182)]=_0x4bed82,_0x54bf28[_0x3d1e94(0x152)]=new Date()['toISOString'](),_0x33b2e3['nExbe'](saveCache,_0x333342);}export function getSessionEntry(_0xfdd965){const _0xdf1a67=_0x4b0824,_0x1e5d86={'WQlGk':function(_0xe40eb0){return _0xe40eb0();}},_0x55a73c=_0x1e5d86['WQlGk'](loadCache),_0x159a2a=_0x55a73c['sessions'][_0xfdd965];if(_0x159a2a?.[_0xdf1a67(0x182)]&&_0x159a2a?.['registeredAt'])return{'featureId':_0x159a2a[_0xdf1a67(0x182)],'registeredAt':_0x159a2a[_0xdf1a67(0x152)]};return null;}export function unregisterSession(_0x1bd836){const _0x2b1b47=_0x4b0824,_0x56e02d={'wAAmb':function(_0x257936,_0x53075c){return _0x257936(_0x53075c);}},_0x464c0c=loadCache(),_0x2cf493=_0x464c0c[_0x2b1b47(0x177)][_0x1bd836];_0x2cf493&&(delete _0x2cf493['featureId'],delete _0x2cf493['registeredAt'],_0x56e02d['wAAmb'](saveCache,_0x464c0c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xe4501){const _0xcbbad4=_0x4b0824,_0x1ec688={'BByGE':function(_0x4c394c,_0x3e4f04,_0x53201f){return _0x4c394c(_0x3e4f04,_0x53201f);},'tBWAs':function(_0x408648,_0x43c93e){return _0x408648-_0x43c93e;}},_0x195f49=loadCache(),_0x5ec455=_0x1ec688['BByGE'](getOrCreateSession,_0x195f49,_0xe4501),_0x56a638=_0x5ec455['lastPlanReminderAt']||0x0,_0x5ea169=Date[_0xcbbad4(0x17b)]();if(_0x1ec688[_0xcbbad4(0x17f)](_0x5ea169,_0x56a638)>=PLAN_REMINDER_INTERVAL_MS)return _0x5ec455['lastPlanReminderAt']=_0x5ea169,saveCache(_0x195f49),!![];return![];}export function shouldShowStopReminder(_0x39180f){const _0x444533=_0x4b0824,_0x4f4188={'XNJUK':function(_0x39fc85){return _0x39fc85();},'iAjjX':function(_0x4bbe66,_0x58f027){return _0x4bbe66(_0x58f027);}},_0x3a9964=_0x4f4188[_0x444533(0x16e)](loadCache),_0x4ca200=getOrCreateSession(_0x3a9964,_0x39180f),_0x50b748=_0x4ca200['lastStopReminderAt']||0x0,_0x4d51c6=Date['now']();if(_0x4d51c6-_0x50b748>=STOP_REMINDER_INTERVAL_MS)return _0x4ca200['lastStopReminderAt']=_0x4d51c6,_0x4f4188[_0x444533(0x15f)](saveCache,_0x3a9964),!![];return![];}export function hasSessionBeenPrompted(_0x1550c9){const _0xfed590=_0x4b0824,_0x5d8630={'fymwe':function(_0x3a05b6){return _0x3a05b6();},'YhTRW':function(_0xba9b0f,_0x193b25){return _0xba9b0f===_0x193b25;}},_0x56eab8=_0x5d8630[_0xfed590(0x173)](loadCache);return _0x5d8630[_0xfed590(0x170)](_0x56eab8[_0xfed590(0x177)][_0x1550c9]?.['prompted'],!![]);}export function markSessionPrompted(_0x280f3c){const _0x16a4da=_0x4b0824,_0x1bc308={'tdwBR':function(_0x5e5395){return _0x5e5395();},'dzLIe':function(_0x540e30,_0x1d1f79){return _0x540e30(_0x1d1f79);}},_0xef9717=_0x1bc308[_0x16a4da(0x166)](loadCache),_0x1892f3=getOrCreateSession(_0xef9717,_0x280f3c);_0x1892f3[_0x16a4da(0x17d)]=!![],_0x1bc308[_0x16a4da(0x176)](saveCache,_0xef9717);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x2b63c9=_0x6302;(function(_0x34c756,_0x2f2628){const _0x596d97=_0x6302,_0xa25551=_0x34c756();while(!![]){try{const _0x1eabd2=parseInt(_0x596d97(0x162))/0x1+-parseInt(_0x596d97(0x15c))/0x2+-parseInt(_0x596d97(0x159))/0x3+-parseInt(_0x596d97(0x156))/0x4*(parseInt(_0x596d97(0x152))/0x5)+-parseInt(_0x596d97(0x150))/0x6+parseInt(_0x596d97(0x16f))/0x7*(-parseInt(_0x596d97(0x170))/0x8)+-parseInt(_0x596d97(0x148))/0x9*(-parseInt(_0x596d97(0x15e))/0xa);if(_0x1eabd2===_0x2f2628)break;else _0xa25551['push'](_0xa25551['shift']());}catch(_0x4a4c58){_0xa25551['push'](_0xa25551['shift']());}}}(_0xecf6,0x5d2ab));import*as _0x4c9d66 from'fs';import*as _0x593260 from'path';import*as _0x1f692b from'os';import{execSync}from'child_process';const CACHE_FILE=_0x593260['join'](_0x1f692b[_0x2b63c9(0x158)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ef653=_0x2b63c9,_0x2ba552={'tbZPF':function(_0x4046c2){return _0x4046c2();}};try{if(_0x4c9d66[_0x3ef653(0x147)](CACHE_FILE)){const _0x3d502a=JSON[_0x3ef653(0x16a)](_0x4c9d66[_0x3ef653(0x15b)](CACHE_FILE,_0x3ef653(0x14e)));return{'version':0x3,'sessions':_0x3d502a['sessions']||{},'branches':_0x3d502a[_0x3ef653(0x14d)]||{},'lastEnabledSessionClearedAt':_0x3d502a['lastEnabledSessionClearedAt']};}}catch{}return _0x2ba552['tbZPF'](createEmptyCache);}function saveCache(_0x5dcaaa){const _0x51a0b8=_0x2b63c9;try{const _0x92ab40=_0x593260['dirname'](CACHE_FILE);!_0x4c9d66['existsSync'](_0x92ab40)&&_0x4c9d66[_0x51a0b8(0x151)](_0x92ab40,{'recursive':!![]}),_0x4c9d66[_0x51a0b8(0x149)](CACHE_FILE,JSON[_0x51a0b8(0x155)](_0x5dcaaa,null,0x2));}catch{}}export function getCurrentBranch(){const _0x1a0ec0=_0x2b63c9,_0x1bae79={'FPhjN':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','RDRhc':_0x1a0ec0(0x14e),'NKeib':'pipe'};try{const _0x50888b=execSync(_0x1bae79[_0x1a0ec0(0x16b)],{'encoding':_0x1bae79['RDRhc'],'stdio':['pipe',_0x1bae79['NKeib'],_0x1a0ec0(0x171)]})[_0x1a0ec0(0x175)]();if(!_0x50888b||_0x50888b==='HEAD')return null;return _0x50888b;}catch{return null;}}export function enableBranch(_0x5165e6){const _0x4e8f42=_0x2b63c9,_0x2c4b81={'dsUpO':function(_0x34d957){return _0x34d957();},'ZomVt':function(_0x200dbd,_0x125075){return _0x200dbd(_0x125075);}},_0x175c86=_0x2c4b81[_0x4e8f42(0x16e)](loadCache);_0x175c86[_0x4e8f42(0x14d)][_0x5165e6]=!![],_0x2c4b81['ZomVt'](saveCache,_0x175c86);}export function disableBranch(_0x15b6b6){const _0x211959={'KantS':function(_0x1ffe63,_0x4db89c){return _0x1ffe63(_0x4db89c);}},_0x116a58=loadCache();delete _0x116a58['branches'][_0x15b6b6],_0x211959['KantS'](saveCache,_0x116a58);}export function isBranchEnabled(_0x2514e9){const _0x3065d7=_0x2b63c9,_0x4a3864={'OsGYL':function(_0x1d39ee){return _0x1d39ee();},'UHVwi':function(_0x1480b1,_0x3cb061){return _0x1480b1===_0x3cb061;}},_0x47e169=_0x4a3864['OsGYL'](loadCache);return _0x4a3864[_0x3065d7(0x165)](_0x47e169[_0x3065d7(0x14d)][_0x2514e9],!![]);}function getOrCreateSession(_0x21755f,_0x552c06){const _0xcda40b=_0x2b63c9;return!_0x21755f['sessions'][_0x552c06]&&(_0x21755f['sessions'][_0x552c06]={}),_0x21755f[_0xcda40b(0x157)][_0x552c06];}export function enableSession(_0x56be32){const _0x41b811=_0x2b63c9,_0xdf6adb={'JpjWT':function(_0x5d95e7){return _0x5d95e7();},'RXHkf':function(_0x29be5f){return _0x29be5f();},'XyJVL':function(_0x2c4e05,_0x3456a7){return _0x2c4e05!==_0x3456a7;},'bpbmE':_0x41b811(0x176),'pyaHQ':function(_0xd8bae0,_0x1ea933){return _0xd8bae0(_0x1ea933);}},_0x3709e3=_0xdf6adb[_0x41b811(0x15a)](loadCache),_0xde3a84=getOrCreateSession(_0x3709e3,_0x56be32);_0xde3a84[_0x41b811(0x14a)]=!![];const _0x1921b0=_0xdf6adb['RXHkf'](getCurrentBranch);_0x1921b0&&_0xdf6adb[_0x41b811(0x160)](_0x1921b0,_0xdf6adb['bpbmE'])&&_0x1921b0!=='master'&&(_0x3709e3['branches'][_0x1921b0]=!![],_0xde3a84[_0x41b811(0x167)]=_0x1921b0),_0xdf6adb[_0x41b811(0x15f)](saveCache,_0x3709e3);}export function isSessionEnabled(_0x40bd80){const _0x290f45=_0x2b63c9,_0x1662ff={'zTVuN':function(_0x259e15,_0x28c273){return _0x259e15===_0x28c273;},'dBQUj':_0x290f45(0x14c),'rKUyF':function(_0x10a8d3,_0x142f05){return _0x10a8d3===_0x142f05;}},_0x5b64e7=loadCache(),_0x55783f=getCurrentBranch();if(!_0x55783f||_0x1662ff[_0x290f45(0x15d)](_0x55783f,'main')||_0x55783f===_0x1662ff['dBQUj'])return _0x5b64e7[_0x290f45(0x157)][_0x40bd80]?.['enabled']===!![];const _0x5eb7a0=_0x5b64e7['branches'][_0x55783f]===!![],_0x12e09b=_0x1662ff[_0x290f45(0x14b)](_0x5b64e7[_0x290f45(0x157)][_0x40bd80]?.[_0x290f45(0x14a)],!![]);return _0x5eb7a0||_0x12e09b;}export function disableSession(_0x22c70f){const _0x444596=_0x2b63c9,_0x3d9004={'oAUqa':function(_0x1b21f4,_0x5519ac,_0x5c7c44){return _0x1b21f4(_0x5519ac,_0x5c7c44);}},_0xd11f20=loadCache(),_0x51b2b2=_0x3d9004[_0x444596(0x153)](getOrCreateSession,_0xd11f20,_0x22c70f);_0x51b2b2['enabled']=![],saveCache(_0xd11f20);}export function updateBranchTracking(_0x9440df){const _0x42c8a4=_0x2b63c9,_0x483c52={'kuNEq':function(_0x2167c2){return _0x2167c2();},'GbbsV':function(_0x4111ff){return _0x4111ff();},'ZcXoZ':function(_0x1e303c,_0x4cacc7){return _0x1e303c===_0x4cacc7;},'BuVHf':function(_0x3cd627,_0x2ce6b4){return _0x3cd627!==_0x2ce6b4;},'QCXhx':function(_0x3e1248,_0x4b7c76){return _0x3e1248(_0x4b7c76);}},_0x505b71=_0x483c52['kuNEq'](loadCache),_0x2967bf=_0x505b71[_0x42c8a4(0x157)][_0x9440df];if(!_0x2967bf?.[_0x42c8a4(0x14a)])return;const _0xdd2952=_0x483c52['GbbsV'](getCurrentBranch);if(!_0xdd2952||_0xdd2952==='main'||_0x483c52[_0x42c8a4(0x16c)](_0xdd2952,_0x42c8a4(0x14c)))return;_0x483c52['BuVHf'](_0x2967bf['currentBranch'],_0xdd2952)&&(_0x505b71['branches'][_0xdd2952]=!![],_0x2967bf[_0x42c8a4(0x167)]=_0xdd2952,_0x483c52['QCXhx'](saveCache,_0x505b71));}export function initBranchTracking(_0x20bd6c){const _0x572dd6=_0x2b63c9,_0x371625={'bPkdO':function(_0x4065bb,_0x401dbc){return _0x4065bb===_0x401dbc;},'yfqSN':'master','tHRyV':function(_0x58e669,_0xaa4c3e,_0x42e7e2){return _0x58e669(_0xaa4c3e,_0x42e7e2);},'sdWvW':function(_0x3a7323,_0x90d72d){return _0x3a7323(_0x90d72d);}},_0x392263=loadCache(),_0x4e8232=getCurrentBranch();if(!_0x4e8232||_0x371625['bPkdO'](_0x4e8232,_0x572dd6(0x176))||_0x371625[_0x572dd6(0x173)](_0x4e8232,_0x371625['yfqSN']))return;if(_0x392263['branches'][_0x4e8232]===!![]){const _0x557840=_0x371625[_0x572dd6(0x166)](getOrCreateSession,_0x392263,_0x20bd6c);_0x557840[_0x572dd6(0x14a)]=!![],_0x557840[_0x572dd6(0x167)]=_0x4e8232,_0x371625['sdWvW'](saveCache,_0x392263);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x327726){const _0xa7df3f=_0x2b63c9,_0x5f38c8={'PIVos':function(_0x7b5216,_0x9a5ba3){return _0x7b5216(_0x9a5ba3);}},_0x52ba3b=loadCache(),_0x4b1866=_0x52ba3b[_0xa7df3f(0x157)][_0x327726];_0x4b1866?.[_0xa7df3f(0x14a)]&&(_0x52ba3b[_0xa7df3f(0x172)]=Date[_0xa7df3f(0x163)](),_0x5f38c8['PIVos'](saveCache,_0x52ba3b));}function _0xecf6(){const _0x5e91bd=['4132OzczQd','sessions','homedir','2168487QJlgVR','JpjWT','readFileSync','179320DeqVoh','zTVuN','264790fdQFBU','pyaHQ','XyJVL','MWNnc','421289VaoeJq','now','registeredAt','UHVwi','tHRyV','currentBranch','lastPlanReminderAt','Zdbjo','parse','FPhjN','ZcXoZ','IvzhH','dsUpO','3292163NNOlpn','8zqFXJf','pipe','lastEnabledSessionClearedAt','bPkdO','oKvml','trim','main','dlXao','existsSync','603njxVtp','writeFileSync','enabled','rKUyF','master','branches','utf-8','lastStopReminderAt','2082594MLcUlP','mkdirSync','890eaEqFR','oAUqa','featureId','stringify'];_0xecf6=function(){return _0x5e91bd;};return _0xecf6();}export function shouldAutoEnableAfterClear(_0x5da1ef){const _0x5a25c0={'rICoV':function(_0x5b6784,_0x49e1fb){return _0x5b6784<=_0x49e1fb;}};if(_0x5da1ef!=='clear')return![];const _0x190da5=loadCache(),_0x377b51=_0x190da5['lastEnabledSessionClearedAt'];if(!_0x377b51)return![];const _0xc0ee5e=Date['now']()-_0x377b51;return _0x5a25c0['rICoV'](_0xc0ee5e,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x83cf3d){const _0x382354=_0x2b63c9,_0x2862df={'MWNnc':function(_0x816606){return _0x816606();},'Zdbjo':'main','IvzhH':function(_0x45526b,_0x19d505){return _0x45526b!==_0x19d505;},'Xipec':_0x382354(0x14c),'uTcpQ':function(_0x296226,_0x19d552){return _0x296226(_0x19d552);}},_0x2eb5b8=loadCache(),_0x2b6ad9=getOrCreateSession(_0x2eb5b8,_0x83cf3d);_0x2b6ad9[_0x382354(0x14a)]=!![];const _0x397096=_0x2862df[_0x382354(0x161)](getCurrentBranch);_0x397096&&_0x397096!==_0x2862df[_0x382354(0x169)]&&_0x2862df[_0x382354(0x16d)](_0x397096,_0x2862df['Xipec'])&&(_0x2b6ad9['currentBranch']=_0x397096),delete _0x2eb5b8['lastEnabledSessionClearedAt'],_0x2862df['uTcpQ'](saveCache,_0x2eb5b8);}export function registerSession(_0x3c3c43,_0x338dd2){const _0x48a7f5=_0x2b63c9,_0x33a241={'zfjpz':function(_0x55726c){return _0x55726c();},'nEnjt':function(_0x52c4f3,_0x1b232e){return _0x52c4f3(_0x1b232e);}},_0x3d005b=_0x33a241['zfjpz'](loadCache),_0x4f5921=getOrCreateSession(_0x3d005b,_0x3c3c43);_0x4f5921['featureId']=_0x338dd2,_0x4f5921[_0x48a7f5(0x164)]=new Date()['toISOString'](),_0x33a241['nEnjt'](saveCache,_0x3d005b);}export function getSessionEntry(_0x145d49){const _0x2c0a77=_0x2b63c9,_0x87654={'UUgkC':function(_0x19b761){return _0x19b761();}},_0x9e3dc0=_0x87654['UUgkC'](loadCache),_0x3492c2=_0x9e3dc0[_0x2c0a77(0x157)][_0x145d49];if(_0x3492c2?.[_0x2c0a77(0x154)]&&_0x3492c2?.[_0x2c0a77(0x164)])return{'featureId':_0x3492c2['featureId'],'registeredAt':_0x3492c2[_0x2c0a77(0x164)]};return null;}export function unregisterSession(_0x3cbd0b){const _0x4846e9=_0x2b63c9,_0x3f7123={'OBdSi':function(_0x2a68a2,_0x426517){return _0x2a68a2(_0x426517);}},_0x18e35d=loadCache(),_0x89b596=_0x18e35d[_0x4846e9(0x157)][_0x3cbd0b];_0x89b596&&(delete _0x89b596['featureId'],delete _0x89b596['registeredAt'],_0x3f7123['OBdSi'](saveCache,_0x18e35d));}function _0x6302(_0x4debc8,_0x1aa23e){_0x4debc8=_0x4debc8-0x147;const _0xecf690=_0xecf6();let _0x63025d=_0xecf690[_0x4debc8];return _0x63025d;}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xdf818a){const _0x59c968=_0x2b63c9,_0x4efc8c={'zKjvs':function(_0x2c32b6,_0x31e0a1,_0xecddf0){return _0x2c32b6(_0x31e0a1,_0xecddf0);}},_0x12ef3a=loadCache(),_0x50404b=_0x4efc8c['zKjvs'](getOrCreateSession,_0x12ef3a,_0xdf818a),_0x275db2=_0x50404b['lastPlanReminderAt']||0x0,_0x1dea3f=Date['now']();if(_0x1dea3f-_0x275db2>=PLAN_REMINDER_INTERVAL_MS)return _0x50404b[_0x59c968(0x168)]=_0x1dea3f,saveCache(_0x12ef3a),!![];return![];}export function shouldShowStopReminder(_0x36d85f){const _0x307418=_0x2b63c9,_0x1746e1={'oKvml':function(_0x732c87){return _0x732c87();},'HVBeP':function(_0x53cb58,_0x5bca99){return _0x53cb58-_0x5bca99;}},_0x53b0b8=_0x1746e1[_0x307418(0x174)](loadCache),_0x5f3393=getOrCreateSession(_0x53b0b8,_0x36d85f),_0x1da8fc=_0x5f3393[_0x307418(0x14f)]||0x0,_0x36962c=Date[_0x307418(0x163)]();if(_0x1746e1['HVBeP'](_0x36962c,_0x1da8fc)>=STOP_REMINDER_INTERVAL_MS)return _0x5f3393['lastStopReminderAt']=_0x36962c,saveCache(_0x53b0b8),!![];return![];}export function hasSessionBeenPrompted(_0x22afbb){const _0xc74ee4={'kFRqt':function(_0x977c3f,_0x2ebf59){return _0x977c3f===_0x2ebf59;}},_0x4d3ac7=loadCache();return _0xc74ee4['kFRqt'](_0x4d3ac7['sessions'][_0x22afbb]?.['prompted'],!![]);}export function markSessionPrompted(_0x59a6ae){const _0x2cb77f=_0x2b63c9,_0x2f80d5={'dlXao':function(_0x51630b){return _0x51630b();}},_0xe57d9d=_0x2f80d5[_0x2cb77f(0x177)](loadCache),_0x58cf4c=getOrCreateSession(_0xe57d9d,_0x59a6ae);_0x58cf4c['prompted']=!![],saveCache(_0xe57d9d);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a448e=_0x425d;(function(_0x3aa9e5,_0x7ef18b){const _0x4d2951=_0x425d,_0x43b2d1=_0x3aa9e5();while(!![]){try{const _0x37ea03=-parseInt(_0x4d2951(0xf4))/0x1+parseInt(_0x4d2951(0x9b))/0x2+-parseInt(_0x4d2951(0x98))/0x3+parseInt(_0x4d2951(0xb4))/0x4+-parseInt(_0x4d2951(0xee))/0x5+parseInt(_0x4d2951(0xa4))/0x6*(parseInt(_0x4d2951(0xba))/0x7)+parseInt(_0x4d2951(0xb6))/0x8;if(_0x37ea03===_0x7ef18b)break;else _0x43b2d1['push'](_0x43b2d1['shift']());}catch(_0x4cfa89){_0x43b2d1['push'](_0x43b2d1['shift']());}}}(_0x20bc,0xb265f));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{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x425d(_0x2607de,_0x446a10){_0x2607de=_0x2607de-0x98;const _0x20bcb4=_0x20bc();let _0x425da4=_0x20bcb4[_0x2607de];return _0x425da4;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3e06fe,_0x3db585){const _0xfb2cd1=_0x425d,_0x218263={'Kdzca':function(_0x85ee59,_0x5d2d30,_0x381349,_0x3c4eb8){return _0x85ee59(_0x5d2d30,_0x381349,_0x3c4eb8);},'UYHos':function(_0x5112aa,_0x3fdf40,_0x1d325a,_0x4c1b11){return _0x5112aa(_0x3fdf40,_0x1d325a,_0x4c1b11);},'CHgzV':function(_0x2d23dc,_0x2be927,_0x2ebb37){return _0x2d23dc(_0x2be927,_0x2ebb37);},'LdXFN':function(_0x53b7f2,_0x212f11){return _0x53b7f2(_0x212f11);},'iwLBu':function(_0x399970,_0x123f5a){return _0x399970!==_0x123f5a;}},_0xa4e8f6=_0x218263[_0xfb2cd1(0xd8)](join,_0x3db585,'ci',_0x3e06fe),_0x4ee3d2=_0x218263['UYHos'](join,_0x3db585,'local',_0x3e06fe),_0x41cba5=_0x218263['CHgzV'](join,_0x3db585,_0x3e06fe),_0x3f50c4=join(_0x3db585,'local'),_0x44e29c=join(_0x3db585,'ci');if(existsSync(_0xa4e8f6))return _0xa4e8f6;if(existsSync(_0x4ee3d2))return _0x4ee3d2;if(_0x218263['LdXFN'](existsSync,_0x41cba5)&&(_0x218263['iwLBu'](_0x41cba5,_0x3f50c4)&&_0x218263['iwLBu'](_0x41cba5,_0x44e29c)?!![]:hasLegacyProfileFiles(_0x41cba5)))return _0x41cba5;return null;}export function getEnvDir(_0x47b35b,_0x13541a={}){const _0x46e01b=_0x425d,_0xa93ce2={'ytODf':function(_0x5667a9){return _0x5667a9();},'mnSHH':function(_0x16187e,_0x4cd437,_0x229337){return _0x16187e(_0x4cd437,_0x229337);},'mGwpp':function(_0x4389f7,_0x42c578){return _0x4389f7(_0x42c578);},'tkQal':function(_0x2ade46,_0x36f0ba){return _0x2ade46!==_0x36f0ba;},'qnwZg':function(_0x471065,_0x14b925,_0xb811ce,_0x5522f0){return _0x471065(_0x14b925,_0xb811ce,_0x5522f0);},'WldZC':'local','tZQDv':function(_0x3b12f3,_0x466fa2,_0x4cbe26){return _0x3b12f3(_0x466fa2,_0x4cbe26);}},_0x3df115=_0xa93ce2[_0x46e01b(0xbb)](getRangerDir),_0x1c687e=_0xa93ce2['mnSHH'](findEnvInRoot,_0x47b35b,_0x3df115);if(_0x1c687e){if(_0x13541a[_0x46e01b(0x9f)]&&_0xa93ce2['mGwpp'](isLegacyEnvPath,_0x1c687e))throw legacyWriteError(_0x47b35b,_0x1c687e);return _0x1c687e;}const _0x2c58f5=getRangerHomeDir();if(_0xa93ce2['tkQal'](_0x2c58f5,_0x3df115)){const _0x48b9d2=findEnvInRoot(_0x47b35b,_0x2c58f5);if(_0x48b9d2){if(_0x13541a['forWrite']&&isLegacyEnvPath(_0x48b9d2))throw legacyWriteError(_0x47b35b,_0x48b9d2);return _0x48b9d2;}}const _0x2a20a5=_0xa93ce2[_0x46e01b(0xaa)](join,_0x2c58f5,_0xa93ce2['WldZC'],_0x47b35b);if(_0x13541a[_0x46e01b(0x9f)])throw _0xa93ce2[_0x46e01b(0xcc)](legacyWriteError,_0x47b35b,_0x2a20a5);return _0x2a20a5;}function isLegacyEnvPath(_0x5c23d8){const _0x5adc18=_0x425d,_0x436349={'eJOwS':function(_0x5c02ba){return _0x5c02ba();},'tDTgz':function(_0x2ca857,_0x353c30){return _0x2ca857+_0x353c30;},'yvXte':function(_0x134d65,_0x191be7){return _0x134d65===_0x191be7;}},_0x752e79=_0x436349['eJOwS'](getRangerDir),_0x586e4b=getRangerHomeDir();for(const _0x4bc9ca of new Set([_0x752e79,_0x586e4b])){const _0x4344e6=_0x4bc9ca[_0x5adc18(0xf1)]('/')?_0x4bc9ca:_0x436349[_0x5adc18(0xb2)](_0x4bc9ca,'/');if(_0x436349[_0x5adc18(0xd3)](_0x5c23d8,_0x4bc9ca)||_0x5c23d8['startsWith'](_0x4344e6))return!![];}return![];}function legacyWriteError(_0x59a864,_0x29ceae){const _0x4d39ec=_0x425d,_0x3f9b5a={'PVcLB':function(_0x25e5d3,_0x3247bf){return _0x25e5d3+_0x3247bf;}};return new Error(_0x3f9b5a[_0x4d39ec(0xb9)](_0x4d39ec(0xd1)+_0x59a864+_0x4d39ec(0xe6)+_0x29ceae+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x4d39ec(0xab),_0x4d39ec(0xc2)));}export function findExistingEnv(_0xbf63f8,_0x37c494){const _0x2fe412=_0x425d,_0x3dc653={'LvbtL':function(_0x50ab4c){return _0x50ab4c();},'lESLW':'local','FSwDA':'legacy','EjJvW':function(_0x120bc5,_0x55de13,_0xe05b53){return _0x120bc5(_0x55de13,_0xe05b53);},'btYRg':function(_0x25e316,_0x34f93e,_0x14fc4e,_0x42bfdf){return _0x25e316(_0x34f93e,_0x14fc4e,_0x42bfdf);},'Pyasy':function(_0x372e74,_0x2f55f8){return _0x372e74===_0x2f55f8;}},_0x304de0=_0x37c494?.[_0x2fe412(0xa6)],_0x2a2c46=_0x304de0?[_0x304de0]:[getRangerDir(),_0x3dc653[_0x2fe412(0x103)](getRangerHomeDir)][_0x2fe412(0xb3)]((_0x4de851,_0x5b7d55,_0x55518e)=>_0x55518e[_0x2fe412(0xe8)](_0x4de851)===_0x5b7d55),_0x3fa66b=_0x37c494?.[_0x2fe412(0x105)]??['ci',_0x3dc653[_0x2fe412(0xe5)],_0x3dc653[_0x2fe412(0xcd)]];for(const _0x264de4 of _0x2a2c46){const _0x1ef121=_0x3dc653[_0x2fe412(0xc1)](join,_0x264de4,_0x2fe412(0xec)),_0x10e3c9=join(_0x264de4,'ci'),_0xec021b=[{'location':'ci','path':join(_0x264de4,'ci',_0xbf63f8)},{'location':_0x2fe412(0xec),'path':_0x3dc653[_0x2fe412(0xdb)](join,_0x264de4,_0x3dc653[_0x2fe412(0xe5)],_0xbf63f8)},{'location':_0x3dc653[_0x2fe412(0xcd)],'path':join(_0x264de4,_0xbf63f8)}];for(const _0x5a3c17 of _0xec021b){if(_0x3fa66b[_0x2fe412(0xfc)](_0x5a3c17[_0x2fe412(0xfb)])&&existsSync(_0x5a3c17['path'])){if(_0x5a3c17[_0x2fe412(0xfb)]===_0x3dc653['FSwDA']&&(_0x3dc653[_0x2fe412(0x104)](_0x5a3c17[_0x2fe412(0xb7)],_0x1ef121)||_0x5a3c17[_0x2fe412(0xb7)]===_0x10e3c9)&&!hasLegacyProfileFiles(_0x5a3c17['path']))continue;return{'path':_0x5a3c17['path'],'location':_0x5a3c17['location']};}}}return null;}function hasLegacyProfileFiles(_0x1738c0){const _0x3e163a=_0x425d,_0x7e8986={'azlMz':function(_0x548935,_0x4dde41,_0xc0bfae){return _0x548935(_0x4dde41,_0xc0bfae);},'qIXQn':'settings.json','HsdRL':'auth.json','VXsVk':function(_0x4ce9b2,_0x325ed9){return _0x4ce9b2(_0x325ed9);},'zMUgB':_0x3e163a(0xe3)};return existsSync(_0x7e8986[_0x3e163a(0x10e)](join,_0x1738c0,_0x7e8986[_0x3e163a(0xd4)]))||existsSync(_0x7e8986[_0x3e163a(0x10e)](join,_0x1738c0,_0x7e8986['HsdRL']))||_0x7e8986['VXsVk'](existsSync,_0x7e8986['azlMz'](join,_0x1738c0,_0x7e8986['zMUgB']));}export function isEnvCi(_0x3c6464){const _0x3739e6=_0x425d,_0xb0d6ec={'PvOPq':function(_0x308f8d,_0x150ccf){return _0x308f8d(_0x150ccf);},'QwSCI':function(_0x4fa12c,_0x14f1a2,_0x325143,_0x16cdb6){return _0x4fa12c(_0x14f1a2,_0x325143,_0x16cdb6);},'rBlsT':function(_0x11205c){return _0x11205c();},'gcrJR':function(_0x12bf51){return _0x12bf51();},'OwuOH':function(_0x453933,_0x39a4a0){return _0x453933!==_0x39a4a0;},'kByqU':function(_0x574a8d){return _0x574a8d();}};if(_0xb0d6ec['PvOPq'](existsSync,_0xb0d6ec['QwSCI'](join,_0xb0d6ec[_0x3739e6(0xe1)](getRangerDir),'ci',_0x3c6464)))return!![];const _0xe7d22b=_0xb0d6ec['gcrJR'](getRangerHomeDir);if(_0xb0d6ec[_0x3739e6(0x101)](_0xe7d22b,_0xb0d6ec['kByqU'](getRangerDir))&&_0xb0d6ec['PvOPq'](existsSync,join(_0xe7d22b,'ci',_0x3c6464)))return!![];return![];}export async function cleanupTempFiles(_0x4a3bcd){const _0x169311=_0x425d,_0x2c590e=[_0x4a3bcd['tempAuthPath'],_0x4a3bcd[_0x169311(0xc0)]]['filter'](Boolean);await Promise[_0x169311(0xd5)](_0x2c590e[_0x169311(0xfa)](_0x464152=>unlink(_0x464152)['catch'](_0x59e3d5=>{const _0x4b6e5c=_0x169311;_0x59e3d5[_0x4b6e5c(0xc5)]!=='ENOENT'&&console[_0x4b6e5c(0xa7)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x464152+':',_0x59e3d5['message']);})));}export function getSettingsPath(_0x17dcf0){const _0xd7a200=_0x425d,_0x3d8d62={'eUHmB':_0xd7a200(0xe0)};return join(getEnvDir(_0x17dcf0),_0x3d8d62[_0xd7a200(0xb5)]);}export async function loadSettings(_0x48d2dc){const _0x494ff8=_0x425d,_0x5485a8={'EvBZN':function(_0x619908,_0x2728b1){return _0x619908(_0x2728b1);},'EXhrW':function(_0x288453,_0x4d8eb1,_0x3ebf18){return _0x288453(_0x4d8eb1,_0x3ebf18);}},_0x106140=_0x5485a8['EvBZN'](getSettingsPath,_0x48d2dc);if(!existsSync(_0x106140))return{};try{const _0x3a9b18=await _0x5485a8['EXhrW'](readFile,_0x106140,'utf-8');return JSON[_0x494ff8(0xfe)](_0x3a9b18);}catch{return{};}}export async function saveSettings(_0x3c2d61,_0xca9bd1){const _0x5dcaf3=_0x425d,_0x1fc0c9={'IBEeF':function(_0x1d2c62,_0x190cb0){return _0x1d2c62(_0x190cb0);},'oxJUq':function(_0x368ac8,_0x46f236,_0xfe97f5){return _0x368ac8(_0x46f236,_0xfe97f5);}},_0x2fcc4a=getSettingsPath(_0x3c2d61),_0x3a663a=dirname(_0x2fcc4a);!_0x1fc0c9[_0x5dcaf3(0xcb)](existsSync,_0x3a663a)&&await _0x1fc0c9['oxJUq'](mkdir,_0x3a663a,{'recursive':!![]}),await _0x1fc0c9['oxJUq'](writeFile,_0x2fcc4a,JSON['stringify'](_0xca9bd1,null,0x2));}export function resolveEnvVars(_0x36630d){const _0x25ac62=_0x425d,_0x41002b={'ZoLBv':function(_0x2d0470,_0xebcd97){return _0x2d0470===_0xebcd97;},'CtgBf':function(_0x32caba,_0x31e76f){return _0x32caba===_0x31e76f;}};if(typeof _0x36630d===_0x25ac62(0x9a))return _0x36630d[_0x25ac62(0xe2)](/\$\{(\w+)\}/g,(_0x52ec50,_0x4416bf)=>{const _0x5ded63=_0x25ac62,_0x580414=process[_0x5ded63(0xff)][_0x4416bf];if(_0x41002b['ZoLBv'](_0x580414,undefined))throw new Error('Environment\x20variable\x20'+_0x4416bf+_0x5ded63(0x106));return _0x580414;});if(Array[_0x25ac62(0xa0)](_0x36630d))return _0x36630d['map'](resolveEnvVars);if(_0x36630d&&_0x41002b['CtgBf'](typeof _0x36630d,'object'))return Object[_0x25ac62(0xad)](Object['entries'](_0x36630d)['map'](([_0xd7d57c,_0x3c19ca])=>[_0xd7d57c,resolveEnvVars(_0x3c19ca)]));return _0x36630d;}function _0x20bc(){const _0x3a36df=['--no-sandbox','storageStatePath','length','cdpEndpoint','azlMz','dbfeA','2864538HUGFZf','playwright-cli','string','785866brsObP','keys','stagehand','--unsafely-treat-insecure-origin-as-secure=http://localhost','forWrite','isArray','Zxlvo','stringify','vision','377682ngJtZR','join','rangerDir','warn','userAgent','pdf','qnwZg','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','args','fromEntries','EbKhG','--disable-setuid-sandbox','headless','setupHeaders','tDTgz','filter','3992956XhCgTm','eUHmB','2543904XUzVsN','path','catch','PVcLB','91zKCZkO','ytODf','nova-user-data','OWRCi','push','boolean','configPath','EjJvW','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','tabs','Trhxq','code','FgLmP','ranger-auth-','storageState','dqCNx','object','IBEeF','tZQDv','FSwDA','--disable-features=WebBluetooth','LZhNN','PrKlC','Refusing\x20to\x20write\x20profile\x20\x22','file','yvXte','qIXQn','all','fnojX','wnaln','Kdzca','Jyprf','vfdHn','btYRg','.json','safeMode','browser','executablePath','settings.json','rBlsT','replace','auth.json.enc','Default','lESLW','\x22\x20to\x20legacy\x20path\x20','xlAju','indexOf','tnHre','nwXNp','contextOptions','local','chromium','603335odnnhk','SfPjz','ranger-config','endsWith','extraHTTPHeaders','sessions','721239itRXUm','--disable-web-security','now','entries','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','adnif','map','location','includes','allowInsecureLocalhost','parse','env','FoLZs','OwuOH','RBMNU','LvbtL','Pyasy','locations','\x20is\x20not\x20set','headers','core','AsErM'];_0x20bc=function(){return _0x3a36df;};return _0x20bc();}const isRecord=_0x4ef9dd=>typeof _0x4ef9dd===_0x4a448e(0xca)&&_0x4ef9dd!==null&&!Array['isArray'](_0x4ef9dd),asRecord=_0x285af2=>isRecord(_0x285af2)?_0x285af2:undefined,mergeHeaders=(_0x7b87a6,_0x4556d2)=>{const _0x2e38ef=_0x4a448e,_0x1d61dc={'Trhxq':function(_0x121799,_0x170aa2){return _0x121799??_0x170aa2;}},_0x171a58={..._0x1d61dc[_0x2e38ef(0xc4)](_0x7b87a6,{}),..._0x4556d2??{}};return Object[_0x2e38ef(0x9c)](_0x171a58)[_0x2e38ef(0x10c)]?_0x171a58:undefined;},SAFE_MODE_ARGS=[_0x4a448e(0xce)],ALLOW_LOCALHOST_ARGS=[_0x4a448e(0xf5),'--allow-running-insecure-content',_0x4a448e(0x9e),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x55c4f5,_0x3717b8={}){const _0x5d8d61=_0x4a448e,_0x35b35c={'adnif':function(_0x1b98de,_0x4fc9fc){return _0x1b98de===_0x4fc9fc;},'BBCMa':_0x5d8d61(0x9a),'FgLmP':function(_0x5ab5b3,_0x30c9c7,_0x19a698){return _0x5ab5b3(_0x30c9c7,_0x19a698);},'BsTha':function(_0x47fc05,_0x31f754){return _0x47fc05(_0x31f754);}},_0x1c0f39=asRecord(_0x55c4f5[_0x5d8d61(0xde)]),_0x2e96a6={...asRecord(_0x1c0f39?.['launchOptions'])??{}};typeof _0x3717b8['headless']===_0x5d8d61(0xbf)&&(_0x2e96a6['headless']=_0x3717b8['headless']);if(_0x55c4f5[_0x5d8d61(0xdd)]){const _0xbdfada=_0x2e96a6['args']??[],_0x55eddd=SAFE_MODE_ARGS['filter'](_0x574c7c=>!_0xbdfada[_0x5d8d61(0xfc)](_0x574c7c));_0x2e96a6['args']=[..._0xbdfada,..._0x55eddd];}if(_0x55c4f5['allowInsecureLocalhost']){const _0x4e710e=_0x2e96a6['args']??[],_0x444cab=ALLOW_LOCALHOST_ARGS[_0x5d8d61(0xb3)](_0xda351=>!_0x4e710e['includes'](_0xda351));_0x2e96a6['args']=[..._0x4e710e,..._0x444cab];}const _0x43d443={...asRecord(_0x1c0f39?.[_0x5d8d61(0xeb)])??{}};_0x43d443['ignoreHTTPSErrors']=!![];_0x35b35c[_0x5d8d61(0xf9)](typeof _0x55c4f5['userAgent'],_0x35b35c['BBCMa'])&&(_0x43d443[_0x5d8d61(0xa8)]=_0x55c4f5[_0x5d8d61(0xa8)]);const _0x5bc1b2=_0x35b35c[_0x5d8d61(0xc6)](mergeHeaders,_0x35b35c['BsTha'](asRecord,_0x43d443[_0x5d8d61(0xf2)]),asRecord(_0x55c4f5[_0x5d8d61(0x107)]));return _0x5bc1b2?_0x43d443['extraHTTPHeaders']=_0x5bc1b2:delete _0x43d443[_0x5d8d61(0xf2)],_0x3717b8['storageStatePath']&&(_0x43d443[_0x5d8d61(0xc8)]=_0x3717b8[_0x5d8d61(0x10b)]),{'launchOptions':_0x2e96a6,'contextOptions':_0x43d443};}export async function resolveProfileStorageState(_0x5f1f34){const _0x2cdb47=_0x4a448e,_0x5ce5a2={'wnaln':function(_0x5cca71,_0x26f4ab){return _0x5cca71(_0x26f4ab);}};return resolveLocalAuthPath(_0x5ce5a2[_0x2cdb47(0xd7)](getEnvDir,_0x5f1f34));}async function resolveLocalAuthPath(_0x451508){const _0x422c4=_0x4a448e,_0x200c3a={'Jyprf':function(_0x17318f,_0x112c29,_0x7b66e3){return _0x17318f(_0x112c29,_0x7b66e3);},'LZhNN':function(_0x3b1308,_0x360ea8){return _0x3b1308(_0x360ea8);},'SfPjz':function(_0x13912d,_0x3939d0,_0x3a96ac){return _0x13912d(_0x3939d0,_0x3a96ac);},'KwHcD':function(_0x2ea782,_0x1960e2){return _0x2ea782(_0x1960e2);}},_0x15aff0=_0x200c3a[_0x422c4(0xd9)](join,_0x451508,_0x422c4(0xe3)),_0x98f081=join(_0x451508,'auth.json');if(_0x200c3a[_0x422c4(0xcf)](existsSync,_0x15aff0))try{const _0xc842cc=await getToken();if(!_0xc842cc)throw new Error(_0x422c4(0xf8));const _0x1c824d=await _0x200c3a[_0x422c4(0xcf)](readFile,_0x15aff0),_0x6c1f4d=decrypt(_0x1c824d,_0xc842cc),_0xe6e09=_0x200c3a['Jyprf'](join,tmpdir(),_0x422c4(0xc7)+Date[_0x422c4(0xf6)]()+'.json');return await _0x200c3a[_0x422c4(0xef)](writeFile,_0xe6e09,_0x6c1f4d),{'storageStatePath':_0xe6e09,'tempAuthPath':_0xe6e09};}catch(_0x59198e){const _0x11e713=_0x59198e instanceof Error?_0x59198e['message']:String(_0x59198e);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x11e713);}if(_0x200c3a['KwHcD'](existsSync,_0x98f081))return{'storageStatePath':_0x98f081};return{};}export async function buildPlaywrightConfig(_0x247992,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x164beb){const _0x26eb04={'wWgOW':'stagehand','oIstU':function(_0x3cf927,_0x5ca1c7){return _0x3cf927(_0x5ca1c7);}};if(_0x164beb)return buildPlaywrightConfigCore(_0x247992,_0x164beb,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x26eb04['wWgOW']);const {storageStatePath:_0x2056b8,tempAuthPath:_0xc2d4fa}=await resolveLocalAuthPath(getEnvDir(_0x3ca451));try{const _0x2d30d7=await buildPlaywrightConfigCore(_0x247992,_0x2056b8,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x26eb04['wWgOW']);return{..._0x2d30d7,'tempAuthPath':_0xc2d4fa};}catch(_0x295457){_0xc2d4fa&&await _0x26eb04['oIstU'](unlink,_0xc2d4fa)['catch'](()=>{});throw _0x295457;}}export async function buildPlaywrightConfigCore(_0x2a6db5,_0x58efcc,_0x32ffd8,_0x2356d1,_0x6964b0,_0x448800=_0x4a448e(0x9d)){const _0x316da5=_0x4a448e,_0x32a697={'FoLZs':function(_0x41dbbd,_0x1b0788){return _0x41dbbd===_0x1b0788;},'PrKlC':'--no-sandbox','rqwyn':'--disable-setuid-sandbox','tnHre':'chromium','sdfvg':'clipboard-write','woMIW':function(_0xf8e470,_0x423012,_0x3a7639,_0x484fee){return _0xf8e470(_0x423012,_0x3a7639,_0x484fee);},'dbfeA':_0x316da5(0xf3),'TCCUs':function(_0xa765bd,_0x5e0ca4){return _0xa765bd(_0x5e0ca4);},'msuBv':_0x316da5(0xd2),'VbjHb':'install','fnojX':_0x316da5(0xa9),'lISaH':function(_0x25e6f1,_0x593416){return _0x25e6f1===_0x593416;},'xlAju':_0x316da5(0xf0),'AsErM':function(_0x3151f7,_0x50071b){return _0x3151f7===_0x50071b;},'xGiui':_0x316da5(0x99),'Zxlvo':'-cli','KysEl':function(_0x24a610,_0x1788c9,_0xec30d4){return _0x24a610(_0x1788c9,_0xec30d4);}},_0x3c5f00=_0x2356d1||randomUUID(),_0x30110c=_0x32a697['woMIW'](join,getRangerDir(),_0x32a697[_0x316da5(0x10f)],_0x3c5f00),_0x462a36=_0x32a697['TCCUs'](Boolean,_0x2a6db5[_0x316da5(0x10d)]),_0x303664=_0x462a36?{'browserName':_0x316da5(0xed),'cdpEndpoint':_0x2a6db5['cdpEndpoint']}:((()=>{const _0x4bfa5f=_0x316da5,{launchOptions:_0x216949,contextOptions:_0x528aa7}=buildBrowserOptionsFromSettings(_0x2a6db5,{'headless':_0x6964b0?![]:_0x2a6db5['headless']??!![],'storageStatePath':_0x58efcc});if(_0x32a697['FoLZs'](process['getuid']?.(),0x0)){const _0x169375=[_0x32a697[_0x4bfa5f(0xd0)],_0x32a697['rqwyn']],_0xd61ffc=_0x216949['args']??[],_0x2bfe78=_0x169375[_0x4bfa5f(0xb3)](_0x216ace=>!_0xd61ffc[_0x4bfa5f(0xfc)](_0x216ace));_0x216949[_0x4bfa5f(0xac)]=[..._0xd61ffc,..._0x2bfe78];}return{'isolated':!![],'browserName':_0x32a697[_0x4bfa5f(0xe9)],'launchOptions':_0x216949,'contextOptions':{..._0x528aa7,'permissions':['clipboard-read',_0x32a697['sdfvg']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xe16bd6=_0x448800==='playwright-cli'?{'browser':_0x303664,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x30110c,'outputMode':_0x32a697['msuBv'],'codegen':'none'}:{'name':_0x32ffd8,'browser':_0x303664,'capabilities':[_0x316da5(0x108),_0x316da5(0xc3),_0x32a697['VbjHb'],_0x32a697[_0x316da5(0xd6)],_0x316da5(0xa3)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x30110c};if(!_0x462a36){const _0x4623d8=_0xe16bd6['browser'],_0x7fee32=_0x4623d8['contextOptions'];if(_0x32a697[_0x316da5(0x100)](_0x7fee32[_0x316da5(0xa8)],undefined))delete _0x7fee32[_0x316da5(0xa8)];if(_0x32a697['lISaH'](_0x7fee32['storageState'],undefined))delete _0x7fee32['storageState'];}const _0xb630ed=join(tmpdir(),_0x32a697[_0x316da5(0xe7)]);!existsSync(_0xb630ed)&&await mkdir(_0xb630ed,{'recursive':!![]});const _0x5f3bdf=_0x32a697[_0x316da5(0x109)](_0x448800,_0x32a697['xGiui'])?_0x32a697[_0x316da5(0xa1)]:'',_0x554ba1=join(_0xb630ed,_0x32ffd8+'-'+Date['now']()+_0x5f3bdf+_0x316da5(0xdc));return await _0x32a697['KysEl'](writeFile,_0x554ba1,JSON[_0x316da5(0xa2)](_0xe16bd6,null,0x2)),{'configPath':_0x554ba1,'storageStatePath':_0x58efcc};}export async function buildPlaywrightCliConfig(_0x274725,_0x55f9df,_0x35f0ef,_0x44c726,_0xfe3350){const _0x59be53=_0x4a448e,_0x56ceaf={'bQlTr':function(_0x2f8a77,_0x3817b0,_0x2c72ea,_0x34f2c6,_0x521d44,_0xfa73aa,_0x48e092){return _0x2f8a77(_0x3817b0,_0x2c72ea,_0x34f2c6,_0x521d44,_0xfa73aa,_0x48e092);}};if(_0xfe3350)return _0x56ceaf['bQlTr'](buildPlaywrightConfigCore,_0x274725,_0xfe3350,_0x55f9df,_0x35f0ef,_0x44c726,'playwright-cli');const {storageStatePath:_0x18748d,tempAuthPath:_0xb98525}=await resolveLocalAuthPath(getEnvDir(_0x55f9df));try{const _0x3d2a29=await buildPlaywrightConfigCore(_0x274725,_0x18748d,_0x55f9df,_0x35f0ef,_0x44c726,_0x59be53(0x99));return{..._0x3d2a29,'tempAuthPath':_0xb98525};}catch(_0x5a285c){_0xb98525&&await unlink(_0xb98525)[_0x59be53(0xb8)](()=>{});throw _0x5a285c;}}export async function buildNovaActCliConfig(_0x18fdc3,_0x54c6c7,_0x3a4f42,_0x1eb391,_0x38b6d0){const _0x1ce20f=_0x4a448e,_0x25ecb7={'pgCFM':function(_0x5e78bd){return _0x5e78bd();},'wGHkC':_0x1ce20f(0xf3),'OWRCi':function(_0x128ac4,_0x25b469,_0x112149){return _0x128ac4(_0x25b469,_0x112149);},'dqCNx':function(_0x3b3ee4,_0x28f30c){return _0x3b3ee4===_0x28f30c;},'EbKhG':'string','ZDfET':function(_0x5f34c3,_0x444477){return _0x5f34c3(_0x444477);}},{storageStatePath:_0xb0f040,tempAuthPath:_0x1fd48d}=_0x38b6d0?{'storageStatePath':_0x38b6d0,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x54c6c7)),_0x5e35b7=_0x3a4f42||_0x25ecb7['pgCFM'](randomUUID),_0x505d9e=join(getRangerDir(),_0x25ecb7['wGHkC'],_0x5e35b7),_0x59904c=join(_0x505d9e,_0x1ce20f(0xbc)),_0x457a76=_0xb0f040?_0x25ecb7['OWRCi'](join,_0x59904c,_0x1ce20f(0xe4)):undefined,{launchOptions:_0x3afb06,contextOptions:_0xd044f3}=_0x25ecb7[_0x1ce20f(0xbd)](buildBrowserOptionsFromSettings,_0x18fdc3,{'headless':_0x1eb391?![]:_0x18fdc3['headless']??!![],'storageStatePath':_0xb0f040});if(_0x25ecb7[_0x1ce20f(0xc9)](process['getuid']?.(),0x0)){const _0x4aa8e3=[_0x1ce20f(0x10a),_0x1ce20f(0xaf)],_0x5d99a9=_0x3afb06['args']??[],_0x34aa5b=_0x4aa8e3['filter'](_0x2cbfe8=>!_0x5d99a9['includes'](_0x2cbfe8));_0x3afb06[_0x1ce20f(0xac)]=[..._0x5d99a9,..._0x34aa5b];}const _0x23615e=typeof _0x3afb06[_0x1ce20f(0xdf)]===_0x25ecb7[_0x1ce20f(0xae)]?_0x3afb06['executablePath']:_0xb0f040?chromium[_0x1ce20f(0xdf)]():undefined;return{'storageStatePath':_0xb0f040,'tempAuthPath':_0x1fd48d,'baseUrl':_0x18fdc3['baseUrl'],'headless':_0x25ecb7['ZDfET'](Boolean,_0x3afb06[_0x1ce20f(0xb0)]),'userDataDir':_0x59904c,'browserProfilePath':_0x457a76,'executablePath':_0x23615e,'launchArgs':Array[_0x1ce20f(0xa0)](_0x3afb06['args'])?_0x3afb06[_0x1ce20f(0xac)][_0x1ce20f(0xb3)](_0x1096aa=>typeof _0x1096aa===_0x1ce20f(0x9a)):[],'userAgent':typeof _0xd044f3[_0x1ce20f(0xa8)]===_0x25ecb7['EbKhG']?_0xd044f3['userAgent']:undefined,'extraHTTPHeaders':_0xd044f3[_0x1ce20f(0xf2)],'allowInsecureLocalhost':Boolean(_0x18fdc3[_0x1ce20f(0xfd)]),'safeMode':Boolean(_0x18fdc3[_0x1ce20f(0xdd)]),'cdpEndpoint':_0x18fdc3['cdpEndpoint'],'isCdpMode':Boolean(_0x18fdc3[_0x1ce20f(0x10d)])};}export function getNestedValue(_0x424e80,_0x599f3a){const _0x5bc0f1=_0x4a448e,_0x128bf8={'FZDls':function(_0x4f0894,_0x48f32a){return _0x4f0894===_0x48f32a;},'nwXNp':function(_0xf7f889,_0x4698c4){return _0xf7f889!==_0x4698c4;}},_0x218c13=parseKeyPath(_0x599f3a);let _0x8ea8c5=_0x424e80;for(const _0x1a12de of _0x218c13){if(_0x8ea8c5===null||_0x128bf8['FZDls'](_0x8ea8c5,undefined)||_0x128bf8[_0x5bc0f1(0xea)](typeof _0x8ea8c5,'object'))return undefined;_0x8ea8c5=_0x8ea8c5[_0x1a12de];}return _0x8ea8c5;}export function setNestedValue(_0x100830,_0x1c6911,_0xeb0fe9){const _0x4c702f=_0x4a448e,_0x4e9057={'eIxRc':function(_0x4d85d6,_0x17a6f7){return _0x4d85d6(_0x17a6f7);},'AsGmr':function(_0x147bcb,_0x1a553b){return _0x147bcb in _0x1a553b;},'uNDGl':function(_0x201a14,_0x1734d1){return _0x201a14!==_0x1734d1;}},_0x465852=_0x4e9057['eIxRc'](parseKeyPath,_0x1c6911);let _0xbf19d7=_0x100830;for(let _0xed35f4=0x0;_0xed35f4<_0x465852['length']-0x1;_0xed35f4++){const _0x3fdaef=_0x465852[_0xed35f4];(!_0x4e9057['AsGmr'](_0x3fdaef,_0xbf19d7)||_0x4e9057['uNDGl'](typeof _0xbf19d7[_0x3fdaef],_0x4c702f(0xca)))&&(_0xbf19d7[_0x3fdaef]={}),_0xbf19d7=_0xbf19d7[_0x3fdaef];}_0xbf19d7[_0x465852[_0x465852[_0x4c702f(0x10c)]-0x1]]=_0xeb0fe9;}export function deleteNestedValue(_0x58ce9c,_0x149302){const _0x50100b=_0x4a448e,_0xb3feec={'NSooS':function(_0x13878d,_0x5587b8){return _0x13878d(_0x5587b8);},'vfdHn':function(_0x5092df,_0x3b84ab){return _0x5092df===_0x3b84ab;},'exgZw':function(_0x2b7abb,_0x25b17a){return _0x2b7abb!==_0x25b17a;},'ZkCuB':'object','Kxiyb':function(_0x3717fd,_0x19a64f){return _0x3717fd in _0x19a64f;}},_0x59c21e=_0xb3feec['NSooS'](parseKeyPath,_0x149302);let _0x5a309a=_0x58ce9c;for(let _0x4f8ec7=0x0;_0x4f8ec7<_0x59c21e[_0x50100b(0x10c)]-0x1;_0x4f8ec7++){if(_0xb3feec[_0x50100b(0xda)](_0x5a309a,null)||_0x5a309a===undefined||_0xb3feec['exgZw'](typeof _0x5a309a,_0xb3feec['ZkCuB']))return![];_0x5a309a=_0x5a309a[_0x59c21e[_0x4f8ec7]];}if(_0xb3feec[_0x50100b(0xda)](_0x5a309a,null)||_0x5a309a===undefined||typeof _0x5a309a!=='object')return![];const _0x2706a7=_0x59c21e[_0x59c21e[_0x50100b(0x10c)]-0x1];if(_0xb3feec['Kxiyb'](_0x2706a7,_0x5a309a))return delete _0x5a309a[_0x2706a7],!![];return![];}function parseKeyPath(_0x43a615){const _0x57ac9c=_0x4a448e,_0x1fd566={'PoNLA':'header','RBMNU':'setupHeader'},_0x958155=_0x43a615['split']('.');return _0x958155[0x0]===_0x1fd566['PoNLA']&&(_0x958155[0x0]=_0x57ac9c(0x107)),_0x958155[0x0]===_0x1fd566[_0x57ac9c(0x102)]&&(_0x958155[0x0]=_0x57ac9c(0xb1)),_0x958155;}export function formatSettings(_0x33853d,_0x699b03=0x0){const _0x2c1f79=_0x4a448e,_0x30cda7=[],_0x3d548f='\x20\x20'['repeat'](_0x699b03);for(const [_0x3db910,_0x420074]of Object[_0x2c1f79(0xf7)](_0x33853d)){if(_0x420074===undefined)continue;if(typeof _0x420074===_0x2c1f79(0xca)&&_0x420074!==null){_0x30cda7[_0x2c1f79(0xbe)](''+_0x3d548f+_0x3db910+':');for(const [_0x34661d,_0x67fd19]of Object[_0x2c1f79(0xf7)](_0x420074)){_0x30cda7['push'](_0x3d548f+'\x20\x20'+_0x34661d+':\x20'+_0x67fd19);}}else _0x30cda7[_0x2c1f79(0xbe)](''+_0x3d548f+_0x3db910+':\x20'+_0x420074);}return _0x30cda7[_0x2c1f79(0xa5)]('\x0a');}
|
|
1
|
+
const _0x554c9f=_0x3f79;(function(_0x516fd9,_0x5c8a35){const _0x103fc4=_0x3f79,_0x5e8021=_0x516fd9();while(!![]){try{const _0x458fa7=parseInt(_0x103fc4(0x1ca))/0x1+parseInt(_0x103fc4(0x1aa))/0x2+parseInt(_0x103fc4(0x17f))/0x3+-parseInt(_0x103fc4(0x19a))/0x4+parseInt(_0x103fc4(0x198))/0x5+-parseInt(_0x103fc4(0x1a4))/0x6*(-parseInt(_0x103fc4(0x17a))/0x7)+parseInt(_0x103fc4(0x1bc))/0x8*(-parseInt(_0x103fc4(0x19b))/0x9);if(_0x458fa7===_0x5c8a35)break;else _0x5e8021['push'](_0x5e8021['shift']());}catch(_0x12dbf8){_0x5e8021['push'](_0x5e8021['shift']());}}}(_0x14ae,0x5330f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x14ae(){const _0xd75efe=['string','icDRj','169631LFjmAg','join','yDImM','fhhKi','--no-sandbox','MAzHU','doQtu','KftFd','length','fcsuq','CldXj','cdpEndpoint','yskQT','stringify','ZwKGI','Pniep','mKKUs','boolean','path','message','args','entries','aceKE','--disable-setuid-sandbox','YOJyQ','replace','settings.json','TikFp','ijUXA','XCEth','7UOfOdJ','env','Default','tEqsm','CStAk','88986VTbGEv','Environment\x20variable\x20','ranger-config','TjPAm','FMJXC','QUaXX','fromEntries','allowInsecureLocalhost','extraHTTPHeaders','EzcMJ','storageStatePath','SgvQn','--disable-web-security','includes','userAgent','locations','legacy','BOSMV','file','rangerDir','auth.json','configPath','local','SyOtL','contextOptions','2573380FBTtwx','sessions','2079124EIOSwl','9bAkpWt','safeMode','hmBiS','smOSl','PwjNg','BAhsP','headers','LdKQg','push','4043172SAhthC','now','rXQdN','zPWrL','startsWith','Refusing\x20to\x20write\x20profile\x20\x22','345146gqlydW','GQAeK','pvDWj','location','VPZtu','playwright-cli','EXBPK','forWrite','filter','storageState','setupHeaders','--allow-insecure-localhost','ENOENT','guQiQ','luZFc','rwQCa','object','cwZup','5598976VVgKoJ','browser','headless','baseUrl','nova-user-data','--allow-running-insecure-content','clipboard-write','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','catch','KtReA','plUkT','allow'];_0x14ae=function(){return _0xd75efe;};return _0x14ae();}import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x2b73a4,_0x251e5c){const _0x1f4d52=_0x3f79,_0x320318={'TjPAm':function(_0x1eeb37,_0xc04ef2,_0x295f17){return _0x1eeb37(_0xc04ef2,_0x295f17);},'Pniep':function(_0x556ebe,_0x1d493e,_0x356b79){return _0x556ebe(_0x1d493e,_0x356b79);},'GQAeK':function(_0x4d0596,_0x3cece5){return _0x4d0596(_0x3cece5);},'KftFd':function(_0x18c7f6,_0xe75291){return _0x18c7f6!==_0xe75291;}},_0x47a39b=join(_0x251e5c,'ci',_0x2b73a4),_0x4897dc=join(_0x251e5c,'local',_0x2b73a4),_0x5a2f2d=_0x320318[_0x1f4d52(0x182)](join,_0x251e5c,_0x2b73a4),_0x5f0ee3=join(_0x251e5c,_0x1f4d52(0x195)),_0x3b9c50=_0x320318[_0x1f4d52(0x1d9)](join,_0x251e5c,'ci');if(_0x320318['GQAeK'](existsSync,_0x47a39b))return _0x47a39b;if(_0x320318[_0x1f4d52(0x1ab)](existsSync,_0x4897dc))return _0x4897dc;if(existsSync(_0x5a2f2d)&&(_0x5a2f2d!==_0x5f0ee3&&_0x320318[_0x1f4d52(0x1d1)](_0x5a2f2d,_0x3b9c50)?!![]:hasLegacyProfileFiles(_0x5a2f2d)))return _0x5a2f2d;return null;}export function getEnvDir(_0x3750de,_0x6d3efa={}){const _0x3ca41c=_0x3f79,_0x391c69={'icDRj':function(_0x135cac){return _0x135cac();},'BZAQB':function(_0x384db7,_0xef3a52){return _0x384db7(_0xef3a52);},'enSvv':function(_0x45567d,_0x5d7be2,_0x20b3f5){return _0x45567d(_0x5d7be2,_0x20b3f5);},'ghiqT':function(_0x3fa760,_0x581384,_0x2a7b8a){return _0x3fa760(_0x581384,_0x2a7b8a);}},_0x53bcb7=_0x391c69[_0x3ca41c(0x1c9)](getRangerDir),_0x4c507b=findEnvInRoot(_0x3750de,_0x53bcb7);if(_0x4c507b){if(_0x6d3efa['forWrite']&&_0x391c69['BZAQB'](isLegacyEnvPath,_0x4c507b))throw legacyWriteError(_0x3750de,_0x4c507b);return _0x4c507b;}const _0x2a9415=getRangerHomeDir();if(_0x2a9415!==_0x53bcb7){const _0xd4dd64=_0x391c69['enSvv'](findEnvInRoot,_0x3750de,_0x2a9415);if(_0xd4dd64){if(_0x6d3efa[_0x3ca41c(0x1b1)]&&isLegacyEnvPath(_0xd4dd64))throw _0x391c69['ghiqT'](legacyWriteError,_0x3750de,_0xd4dd64);return _0xd4dd64;}}const _0x53f786=join(_0x2a9415,'local',_0x3750de);if(_0x6d3efa[_0x3ca41c(0x1b1)])throw legacyWriteError(_0x3750de,_0x53f786);return _0x53f786;}function isLegacyEnvPath(_0x24f448){const _0x48ce1a=_0x3f79,_0x1638a4={'oFxZZ':function(_0x2ad0e6,_0x1c44c1){return _0x2ad0e6+_0x1c44c1;},'VPZtu':function(_0x4ffe1f,_0x48cc61){return _0x4ffe1f===_0x48cc61;}},_0x5a3e7d=getRangerDir(),_0x23b1c9=getRangerHomeDir();for(const _0x3d33ea of new Set([_0x5a3e7d,_0x23b1c9])){const _0x54634e=_0x3d33ea['endsWith']('/')?_0x3d33ea:_0x1638a4['oFxZZ'](_0x3d33ea,'/');if(_0x1638a4[_0x48ce1a(0x1ae)](_0x24f448,_0x3d33ea)||_0x24f448[_0x48ce1a(0x1a8)](_0x54634e))return!![];}return![];}function legacyWriteError(_0xceadff,_0x36f4ac){const _0x3ef170=_0x3f79,_0x49dbc4={'Pcuqq':function(_0x1bd721,_0x5742a5){return _0x1bd721+_0x5742a5;}};return new Error(_0x49dbc4['Pcuqq'](_0x3ef170(0x1a9)+_0xceadff+'\x22\x20to\x20legacy\x20path\x20'+_0x36f4ac+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x3a09e4,_0x1c31df){const _0x24af23=_0x3f79,_0x9df5b9={'fqQTT':function(_0x2a29f4){return _0x2a29f4();},'GaIXh':_0x24af23(0x195),'smOSl':function(_0x5cc738,_0x99d404,_0x35945d){return _0x5cc738(_0x99d404,_0x35945d);},'pvDWj':function(_0x504bf4,_0xb2c78d,_0x3d76c8){return _0x504bf4(_0xb2c78d,_0x3d76c8);},'nbdMi':function(_0xfecb1b,_0x2e13dd){return _0xfecb1b(_0x2e13dd);},'tEqsm':'legacy','FMJXC':function(_0x1c7d8f,_0x540c8f){return _0x1c7d8f===_0x540c8f;}},_0x3b94d3=_0x1c31df?.[_0x24af23(0x192)],_0x45a71a=_0x3b94d3?[_0x3b94d3]:[getRangerDir(),_0x9df5b9['fqQTT'](getRangerHomeDir)][_0x24af23(0x1b2)]((_0x3fea21,_0x3565fd,_0x27073a)=>_0x27073a['indexOf'](_0x3fea21)===_0x3565fd),_0x3d2c4e=_0x1c31df?.[_0x24af23(0x18e)]??['ci','local',_0x24af23(0x18f)];for(const _0x21789f of _0x45a71a){const _0x236bf2=join(_0x21789f,_0x9df5b9['GaIXh']),_0x2230d0=_0x9df5b9[_0x24af23(0x19e)](join,_0x21789f,'ci'),_0xfd2227=[{'location':'ci','path':join(_0x21789f,'ci',_0x3a09e4)},{'location':'local','path':join(_0x21789f,_0x24af23(0x195),_0x3a09e4)},{'location':'legacy','path':_0x9df5b9[_0x24af23(0x1ac)](join,_0x21789f,_0x3a09e4)}];for(const _0x1198eb of _0xfd2227){if(_0x3d2c4e[_0x24af23(0x18c)](_0x1198eb[_0x24af23(0x1ad)])&&_0x9df5b9['nbdMi'](existsSync,_0x1198eb['path'])){if(_0x1198eb['location']===_0x9df5b9[_0x24af23(0x17d)]&&(_0x9df5b9[_0x24af23(0x183)](_0x1198eb['path'],_0x236bf2)||_0x9df5b9['FMJXC'](_0x1198eb[_0x24af23(0x1dc)],_0x2230d0))&&!hasLegacyProfileFiles(_0x1198eb['path']))continue;return{'path':_0x1198eb[_0x24af23(0x1dc)],'location':_0x1198eb[_0x24af23(0x1ad)]};}}}return null;}function hasLegacyProfileFiles(_0x157bbb){const _0x14a359=_0x3f79,_0x735718={'rwQCa':function(_0x5b3223,_0x5e07bd,_0x5a0176){return _0x5b3223(_0x5e07bd,_0x5a0176);}};return existsSync(join(_0x157bbb,'settings.json'))||existsSync(join(_0x157bbb,_0x14a359(0x193)))||existsSync(_0x735718[_0x14a359(0x1b9)](join,_0x157bbb,'auth.json.enc'));}export function isEnvCi(_0x58c881){const _0x5102a3=_0x3f79,_0x35d864={'XCEth':function(_0x168280,_0x4557ed){return _0x168280(_0x4557ed);},'cHOst':function(_0x1a2e64){return _0x1a2e64();},'gkrqm':function(_0x56aa51,_0x117f3e){return _0x56aa51!==_0x117f3e;},'ZKiUd':function(_0x280de9){return _0x280de9();}};if(_0x35d864[_0x5102a3(0x179)](existsSync,join(getRangerDir(),'ci',_0x58c881)))return!![];const _0x4f7f57=_0x35d864['cHOst'](getRangerHomeDir);if(_0x35d864['gkrqm'](_0x4f7f57,_0x35d864['ZKiUd'](getRangerDir))&&existsSync(join(_0x4f7f57,'ci',_0x58c881)))return!![];return![];}export async function cleanupTempFiles(_0x470ad4){const _0x1d4241=_0x3f79,_0x57181e=[_0x470ad4['tempAuthPath'],_0x470ad4[_0x1d4241(0x194)]]['filter'](Boolean);await Promise['all'](_0x57181e['map'](_0x2a28cc=>unlink(_0x2a28cc)[_0x1d4241(0x1c4)](_0x45f273=>{const _0x36bb6c=_0x1d4241;_0x45f273['code']!==_0x36bb6c(0x1b6)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x2a28cc+':',_0x45f273['message']);})));}export function getSettingsPath(_0x55935a){const _0x1a2258=_0x3f79,_0x360eac={'tJgvp':function(_0x4d7bcb,_0x29f318,_0x2efa5e){return _0x4d7bcb(_0x29f318,_0x2efa5e);},'dOJOD':function(_0x50c76,_0x196fe8){return _0x50c76(_0x196fe8);}};return _0x360eac['tJgvp'](join,_0x360eac['dOJOD'](getEnvDir,_0x55935a),_0x1a2258(0x1e4));}export async function loadSettings(_0x305e4a){const _0x42e7df=_0x3f79,_0x383b59={'CldXj':function(_0x4459af,_0x52deeb){return _0x4459af(_0x52deeb);}},_0x136da5=getSettingsPath(_0x305e4a);if(!_0x383b59[_0x42e7df(0x1d4)](existsSync,_0x136da5))return{};try{const _0xac9e38=await readFile(_0x136da5,'utf-8');return JSON['parse'](_0xac9e38);}catch{return{};}}export async function saveSettings(_0x1886e5,_0x511e0d){const _0x3ca22e=_0x3f79,_0x326a50={'PwjNg':function(_0x1deb67,_0x986cf8){return _0x1deb67(_0x986cf8);},'ijUXA':function(_0x4429e9,_0x44ee39,_0x48feac){return _0x4429e9(_0x44ee39,_0x48feac);}},_0x5ba327=_0x326a50['PwjNg'](getSettingsPath,_0x1886e5),_0x1ceac2=dirname(_0x5ba327);!_0x326a50[_0x3ca22e(0x19f)](existsSync,_0x1ceac2)&&await _0x326a50[_0x3ca22e(0x178)](mkdir,_0x1ceac2,{'recursive':!![]}),await writeFile(_0x5ba327,JSON[_0x3ca22e(0x1d7)](_0x511e0d,null,0x2));}export function resolveEnvVars(_0x7ad348){const _0x206ffb=_0x3f79,_0x394575={'BAhsP':function(_0x5df3cf,_0x2de831){return _0x5df3cf===_0x2de831;},'yDImM':_0x206ffb(0x1ba)};if(typeof _0x7ad348===_0x206ffb(0x1c8))return _0x7ad348[_0x206ffb(0x1e3)](/\$\{(\w+)\}/g,(_0x48d26e,_0x27ca5e)=>{const _0x234e9c=_0x206ffb,_0x115cb7=process[_0x234e9c(0x17b)][_0x27ca5e];if(_0x394575[_0x234e9c(0x1a0)](_0x115cb7,undefined))throw new Error(_0x234e9c(0x180)+_0x27ca5e+'\x20is\x20not\x20set');return _0x115cb7;});if(Array['isArray'](_0x7ad348))return _0x7ad348['map'](resolveEnvVars);if(_0x7ad348&&_0x394575['BAhsP'](typeof _0x7ad348,_0x394575[_0x206ffb(0x1cc)]))return Object[_0x206ffb(0x185)](Object['entries'](_0x7ad348)['map'](([_0x1eac86,_0x5d87cf])=>[_0x1eac86,resolveEnvVars(_0x5d87cf)]));return _0x7ad348;}const isRecord=_0x2bb659=>typeof _0x2bb659==='object'&&_0x2bb659!==null&&!Array['isArray'](_0x2bb659),asRecord=_0x38a50d=>isRecord(_0x38a50d)?_0x38a50d:undefined,mergeHeaders=(_0x49c7cd,_0x51502b)=>{const _0x370b56=_0x3f79,_0x52d7e7={'EzcMJ':function(_0x5bee22,_0x38a320){return _0x5bee22??_0x38a320;}},_0x1e9569={..._0x52d7e7[_0x370b56(0x188)](_0x49c7cd,{}),..._0x51502b??{}};return Object['keys'](_0x1e9569)[_0x370b56(0x1d2)]?_0x1e9569:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x554c9f(0x18b),_0x554c9f(0x1c1),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x554c9f(0x1b5)];export function buildBrowserOptionsFromSettings(_0x303939,_0x40209f={}){const _0x17e069=_0x554c9f,_0x5d18eb={'BOSMV':function(_0x580f21,_0x238032){return _0x580f21===_0x238032;},'COkOm':_0x17e069(0x1db),'cwZup':'string','fhhKi':function(_0x450221,_0x1f0e17){return _0x450221(_0x1f0e17);}},_0x153902=asRecord(_0x303939[_0x17e069(0x1bd)]),_0x2858b7={...asRecord(_0x153902?.['launchOptions'])??{}};_0x5d18eb[_0x17e069(0x190)](typeof _0x40209f[_0x17e069(0x1be)],_0x5d18eb['COkOm'])&&(_0x2858b7[_0x17e069(0x1be)]=_0x40209f[_0x17e069(0x1be)]);if(_0x303939['safeMode']){const _0xeb22ad=_0x2858b7['args']??[],_0x57159b=SAFE_MODE_ARGS['filter'](_0x5cceeb=>!_0xeb22ad['includes'](_0x5cceeb));_0x2858b7[_0x17e069(0x1de)]=[..._0xeb22ad,..._0x57159b];}if(_0x303939[_0x17e069(0x186)]){const _0x1ac9c6=_0x2858b7['args']??[],_0x5d5476=ALLOW_LOCALHOST_ARGS[_0x17e069(0x1b2)](_0x4f733c=>!_0x1ac9c6[_0x17e069(0x18c)](_0x4f733c));_0x2858b7['args']=[..._0x1ac9c6,..._0x5d5476];}const _0xcc959b={...asRecord(_0x153902?.[_0x17e069(0x197)])??{}};_0xcc959b['ignoreHTTPSErrors']=!![];typeof _0x303939['userAgent']===_0x5d18eb[_0x17e069(0x1bb)]&&(_0xcc959b['userAgent']=_0x303939[_0x17e069(0x18d)]);const _0x511c2e=mergeHeaders(_0x5d18eb[_0x17e069(0x1cd)](asRecord,_0xcc959b['extraHTTPHeaders']),asRecord(_0x303939['headers']));return _0x511c2e?_0xcc959b['extraHTTPHeaders']=_0x511c2e:delete _0xcc959b['extraHTTPHeaders'],_0x40209f[_0x17e069(0x189)]&&(_0xcc959b[_0x17e069(0x1b3)]=_0x40209f['storageStatePath']),{'launchOptions':_0x2858b7,'contextOptions':_0xcc959b};}function _0x3f79(_0x5c5bc2,_0xee93ef){_0x5c5bc2=_0x5c5bc2-0x177;const _0x14ae55=_0x14ae();let _0x3f79d4=_0x14ae55[_0x5c5bc2];return _0x3f79d4;}export async function resolveProfileStorageState(_0x2df6f0){const _0x1796fa={'smyEv':function(_0x1a8391,_0x2d084f){return _0x1a8391(_0x2d084f);}};return resolveLocalAuthPath(_0x1796fa['smyEv'](getEnvDir,_0x2df6f0));}async function resolveLocalAuthPath(_0x5945d1){const _0x4f55ad=_0x554c9f,_0x198a7d={'KtReA':function(_0x3a0606,_0x3451b1,_0x47b405){return _0x3a0606(_0x3451b1,_0x47b405);},'yskQT':function(_0x4afa3d){return _0x4afa3d();},'CStAk':_0x4f55ad(0x1c3),'rXQdN':function(_0x54c24e,_0x32e539,_0x5685f2){return _0x54c24e(_0x32e539,_0x5685f2);},'SyOtL':function(_0x22df20){return _0x22df20();}},_0x244f94=join(_0x5945d1,'auth.json.enc'),_0x14a6e8=_0x198a7d[_0x4f55ad(0x1c5)](join,_0x5945d1,'auth.json');if(existsSync(_0x244f94))try{const _0x2c98a6=await _0x198a7d[_0x4f55ad(0x1d6)](getToken);if(!_0x2c98a6)throw new Error(_0x198a7d[_0x4f55ad(0x17e)]);const _0x13854b=await readFile(_0x244f94),_0x655b91=decrypt(_0x13854b,_0x2c98a6),_0x3ba2b6=_0x198a7d[_0x4f55ad(0x1a6)](join,_0x198a7d[_0x4f55ad(0x196)](tmpdir),'ranger-auth-'+Date['now']()+'.json');return await writeFile(_0x3ba2b6,_0x655b91),{'storageStatePath':_0x3ba2b6,'tempAuthPath':_0x3ba2b6};}catch(_0x2f2599){const _0x49f45d=_0x2f2599 instanceof Error?_0x2f2599[_0x4f55ad(0x1dd)]:String(_0x2f2599);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x49f45d);}if(existsSync(_0x14a6e8))return{'storageStatePath':_0x14a6e8};return{};}export async function buildPlaywrightConfig(_0x29b6b0,_0x3a5669,_0x501beb,_0x257160,_0x419755){const _0x8296e0=_0x554c9f,_0x20bce9={'JmsTm':'stagehand','BFBzE':function(_0x589d63,_0x151763){return _0x589d63(_0x151763);}};if(_0x419755)return buildPlaywrightConfigCore(_0x29b6b0,_0x419755,_0x3a5669,_0x501beb,_0x257160,_0x20bce9['JmsTm']);const {storageStatePath:_0x225446,tempAuthPath:_0x42240f}=await _0x20bce9['BFBzE'](resolveLocalAuthPath,getEnvDir(_0x3a5669));try{const _0x39ae6d=await buildPlaywrightConfigCore(_0x29b6b0,_0x225446,_0x3a5669,_0x501beb,_0x257160,'stagehand');return{..._0x39ae6d,'tempAuthPath':_0x42240f};}catch(_0x546bcf){_0x42240f&&await unlink(_0x42240f)[_0x8296e0(0x1c4)](()=>{});throw _0x546bcf;}}export async function buildPlaywrightConfigCore(_0x4a9689,_0x2ddb80,_0x46d2ad,_0x932fb7,_0x4be56c,_0x3f8606='stagehand'){const _0x5a3d80=_0x554c9f,_0xe71b44={'QVLSv':_0x5a3d80(0x1ce),'zPWrL':_0x5a3d80(0x1e1),'LdKQg':'clipboard-read','gDngU':_0x5a3d80(0x1c2),'auqcu':function(_0x1115d0){return _0x1115d0();},'MAzHU':function(_0x5b10a3,_0x5437f7,_0x222fb3,_0x56c4be){return _0x5b10a3(_0x5437f7,_0x222fb3,_0x56c4be);},'QUaXX':_0x5a3d80(0x199),'gnCoO':'chromium','EmVTh':function(_0x51ae88,_0x4e06e0){return _0x51ae88===_0x4e06e0;},'Mregm':'playwright-cli','ZwKGI':_0x5a3d80(0x191),'PnAtm':'core','plUkT':'vision','aceKE':function(_0x16ea05,_0x536b47,_0x2dd434){return _0x16ea05(_0x536b47,_0x2dd434);},'doQtu':_0x5a3d80(0x181),'NkVKh':function(_0x22e1a3,_0x25ae5d,_0x1a1d28){return _0x22e1a3(_0x25ae5d,_0x1a1d28);},'kVcVY':'-cli'},_0x4bb230=_0x932fb7||_0xe71b44['auqcu'](randomUUID),_0x5cc0e0=_0xe71b44[_0x5a3d80(0x1cf)](join,getRangerDir(),_0xe71b44[_0x5a3d80(0x184)],_0x4bb230),_0x4116fb=Boolean(_0x4a9689[_0x5a3d80(0x1d5)]),_0x10f3aa=_0x4116fb?{'browserName':_0xe71b44['gnCoO'],'cdpEndpoint':_0x4a9689['cdpEndpoint']}:((()=>{const _0x4f4d8c=_0x5a3d80,{launchOptions:_0x185a58,contextOptions:_0x396d5c}=buildBrowserOptionsFromSettings(_0x4a9689,{'headless':_0x4be56c?![]:_0x4a9689['headless']??!![],'storageStatePath':_0x2ddb80});if(process['getuid']?.()===0x0){const _0x1b2fa2=[_0xe71b44['QVLSv'],_0xe71b44[_0x4f4d8c(0x1a7)]],_0x3f999a=_0x185a58['args']??[],_0x538ed7=_0x1b2fa2[_0x4f4d8c(0x1b2)](_0x4eb84b=>!_0x3f999a[_0x4f4d8c(0x18c)](_0x4eb84b));_0x185a58[_0x4f4d8c(0x1de)]=[..._0x3f999a,..._0x538ed7];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x185a58,'contextOptions':{..._0x396d5c,'permissions':[_0xe71b44[_0x4f4d8c(0x1a2)],_0xe71b44['gDngU']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x54213=_0xe71b44['EmVTh'](_0x3f8606,_0xe71b44['Mregm'])?{'browser':_0x10f3aa,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5cc0e0,'outputMode':_0xe71b44[_0x5a3d80(0x1d8)],'codegen':'none'}:{'name':_0x46d2ad,'browser':_0x10f3aa,'capabilities':[_0xe71b44['PnAtm'],'tabs','install','pdf',_0xe71b44[_0x5a3d80(0x1c6)]],'imageResponses':_0x5a3d80(0x1c7),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5cc0e0};if(!_0x4116fb){const _0x7e41e3=_0x54213['browser'],_0x5588b8=_0x7e41e3['contextOptions'];if(_0x5588b8['userAgent']===undefined)delete _0x5588b8['userAgent'];if(_0x5588b8['storageState']===undefined)delete _0x5588b8[_0x5a3d80(0x1b3)];}const _0x8c2f9f=_0xe71b44[_0x5a3d80(0x1e0)](join,tmpdir(),_0xe71b44[_0x5a3d80(0x1d0)]);!existsSync(_0x8c2f9f)&&await _0xe71b44['NkVKh'](mkdir,_0x8c2f9f,{'recursive':!![]});const _0x42cb2b=_0x3f8606===_0x5a3d80(0x1af)?_0xe71b44['kVcVY']:'',_0x22667e=join(_0x8c2f9f,_0x46d2ad+'-'+Date[_0x5a3d80(0x1a5)]()+_0x42cb2b+'.json');return await _0xe71b44['NkVKh'](writeFile,_0x22667e,JSON['stringify'](_0x54213,null,0x2)),{'configPath':_0x22667e,'storageStatePath':_0x2ddb80};}export async function buildPlaywrightCliConfig(_0x4b5ff5,_0x2428b6,_0x183e0e,_0x7ca621,_0x316ab5){const _0x574da1=_0x554c9f,_0x342efc={'YOJyQ':_0x574da1(0x1af),'mKKUs':function(_0x4e60d9,_0x9c85df){return _0x4e60d9(_0x9c85df);},'JKwge':function(_0x22b493,_0x2af3d8,_0x24d2ac,_0x4013cd,_0x4c7256,_0x2429d8,_0x3db733){return _0x22b493(_0x2af3d8,_0x24d2ac,_0x4013cd,_0x4c7256,_0x2429d8,_0x3db733);}};if(_0x316ab5)return buildPlaywrightConfigCore(_0x4b5ff5,_0x316ab5,_0x2428b6,_0x183e0e,_0x7ca621,_0x342efc['YOJyQ']);const {storageStatePath:_0x3e3736,tempAuthPath:_0x306715}=await resolveLocalAuthPath(_0x342efc[_0x574da1(0x1da)](getEnvDir,_0x2428b6));try{const _0x1b6c09=await _0x342efc['JKwge'](buildPlaywrightConfigCore,_0x4b5ff5,_0x3e3736,_0x2428b6,_0x183e0e,_0x7ca621,_0x342efc[_0x574da1(0x1e2)]);return{..._0x1b6c09,'tempAuthPath':_0x306715};}catch(_0x2b2154){_0x306715&&await _0x342efc['mKKUs'](unlink,_0x306715)[_0x574da1(0x1c4)](()=>{});throw _0x2b2154;}}export async function buildNovaActCliConfig(_0x5c00d4,_0x1ab36b,_0x1c09b0,_0x22b971,_0x5e04ac){const _0x333150=_0x554c9f,_0x80d989={'TikFp':function(_0x448191,_0x3835b8){return _0x448191(_0x3835b8);},'MUIvD':function(_0x190e86){return _0x190e86();},'SgvQn':function(_0x40d3ea,_0x372626,_0x87fd2a,_0x57ba60){return _0x40d3ea(_0x372626,_0x87fd2a,_0x57ba60);},'VVaCx':'sessions','guQiQ':function(_0x4865af,_0xd7d6ec,_0x27eb3b){return _0x4865af(_0xd7d6ec,_0x27eb3b);},'EXBPK':_0x333150(0x17c),'yAvUV':function(_0x49a0e1,_0x1254e2){return _0x49a0e1===_0x1254e2;},'KJvyZ':'string','Rccen':function(_0x54743a,_0x13f17d){return _0x54743a(_0x13f17d);}},{storageStatePath:_0x32c861,tempAuthPath:_0x377384}=_0x5e04ac?{'storageStatePath':_0x5e04ac,'tempAuthPath':undefined}:await _0x80d989['TikFp'](resolveLocalAuthPath,getEnvDir(_0x1ab36b)),_0x3cd8d2=_0x1c09b0||_0x80d989['MUIvD'](randomUUID),_0x80bb6d=_0x80d989[_0x333150(0x18a)](join,_0x80d989['MUIvD'](getRangerDir),_0x80d989['VVaCx'],_0x3cd8d2),_0x23591e=join(_0x80bb6d,_0x333150(0x1c0)),_0x5454be=_0x32c861?_0x80d989[_0x333150(0x1b7)](join,_0x23591e,_0x80d989[_0x333150(0x1b0)]):undefined,{launchOptions:_0x1916db,contextOptions:_0x454f14}=buildBrowserOptionsFromSettings(_0x5c00d4,{'headless':_0x22b971?![]:_0x5c00d4[_0x333150(0x1be)]??!![],'storageStatePath':_0x32c861});if(process['getuid']?.()===0x0){const _0x224053=['--no-sandbox','--disable-setuid-sandbox'],_0x433d97=_0x1916db['args']??[],_0x169e3c=_0x224053[_0x333150(0x1b2)](_0x5b37e=>!_0x433d97['includes'](_0x5b37e));_0x1916db['args']=[..._0x433d97,..._0x169e3c];}const _0x46c4e8=_0x80d989['yAvUV'](typeof _0x1916db['executablePath'],_0x80d989['KJvyZ'])?_0x1916db['executablePath']:_0x32c861?chromium['executablePath']():undefined;return{'storageStatePath':_0x32c861,'tempAuthPath':_0x377384,'baseUrl':_0x5c00d4[_0x333150(0x1bf)],'headless':Boolean(_0x1916db[_0x333150(0x1be)]),'userDataDir':_0x23591e,'browserProfilePath':_0x5454be,'executablePath':_0x46c4e8,'launchArgs':Array['isArray'](_0x1916db[_0x333150(0x1de)])?_0x1916db[_0x333150(0x1de)][_0x333150(0x1b2)](_0x3a6199=>typeof _0x3a6199===_0x333150(0x1c8)):[],'userAgent':typeof _0x454f14[_0x333150(0x18d)]===_0x80d989['KJvyZ']?_0x454f14['userAgent']:undefined,'extraHTTPHeaders':_0x454f14[_0x333150(0x187)],'allowInsecureLocalhost':_0x80d989['Rccen'](Boolean,_0x5c00d4['allowInsecureLocalhost']),'safeMode':_0x80d989[_0x333150(0x177)](Boolean,_0x5c00d4[_0x333150(0x19c)]),'cdpEndpoint':_0x5c00d4['cdpEndpoint'],'isCdpMode':Boolean(_0x5c00d4[_0x333150(0x1d5)])};}export function getNestedValue(_0x39bae9,_0x4f341f){const _0x730379={'ZXVos':'object'},_0x19f30b=parseKeyPath(_0x4f341f);let _0x13b409=_0x39bae9;for(const _0x2c514a of _0x19f30b){if(_0x13b409===null||_0x13b409===undefined||typeof _0x13b409!==_0x730379['ZXVos'])return undefined;_0x13b409=_0x13b409[_0x2c514a];}return _0x13b409;}export function setNestedValue(_0x22e8a1,_0x49f38c,_0x28d22f){const _0x10dac4=_0x554c9f,_0x16daf0={'Oinub':function(_0x41aacb,_0xb18899){return _0x41aacb<_0xb18899;},'fcsuq':function(_0x2ae25c,_0x326387){return _0x2ae25c-_0x326387;}},_0x3ebe08=parseKeyPath(_0x49f38c);let _0x44c939=_0x22e8a1;for(let _0x1208aa=0x0;_0x16daf0['Oinub'](_0x1208aa,_0x16daf0['fcsuq'](_0x3ebe08[_0x10dac4(0x1d2)],0x1));_0x1208aa++){const _0x1d8c97=_0x3ebe08[_0x1208aa];(!(_0x1d8c97 in _0x44c939)||typeof _0x44c939[_0x1d8c97]!=='object')&&(_0x44c939[_0x1d8c97]={}),_0x44c939=_0x44c939[_0x1d8c97];}_0x44c939[_0x3ebe08[_0x16daf0[_0x10dac4(0x1d3)](_0x3ebe08['length'],0x1)]]=_0x28d22f;}export function deleteNestedValue(_0x346971,_0x2bb4cb){const _0x21b2df=_0x554c9f,_0x2d3414={'hmBiS':function(_0x4de72f,_0x2f2534){return _0x4de72f<_0x2f2534;},'FxykZ':_0x21b2df(0x1ba),'luZFc':function(_0x560555,_0x4f8b19){return _0x560555===_0x4f8b19;}},_0x10f453=parseKeyPath(_0x2bb4cb);let _0x22c33c=_0x346971;for(let _0x816018=0x0;_0x2d3414[_0x21b2df(0x19d)](_0x816018,_0x10f453['length']-0x1);_0x816018++){if(_0x22c33c===null||_0x22c33c===undefined||typeof _0x22c33c!==_0x2d3414['FxykZ'])return![];_0x22c33c=_0x22c33c[_0x10f453[_0x816018]];}if(_0x2d3414[_0x21b2df(0x1b8)](_0x22c33c,null)||_0x2d3414[_0x21b2df(0x1b8)](_0x22c33c,undefined)||typeof _0x22c33c!=='object')return![];const _0x20faf2=_0x10f453[_0x10f453[_0x21b2df(0x1d2)]-0x1];if(_0x20faf2 in _0x22c33c)return delete _0x22c33c[_0x20faf2],!![];return![];}function parseKeyPath(_0x59ca44){const _0x1657d5=_0x554c9f,_0xdff0c3={'arDvW':_0x1657d5(0x1b4)},_0x255780=_0x59ca44['split']('.');return _0x255780[0x0]==='header'&&(_0x255780[0x0]=_0x1657d5(0x1a1)),_0x255780[0x0]==='setupHeader'&&(_0x255780[0x0]=_0xdff0c3['arDvW']),_0x255780;}export function formatSettings(_0x4483b7,_0x1323bb=0x0){const _0x4faf9f=_0x554c9f,_0x5261cc={'JEzWI':_0x4faf9f(0x1ba)},_0x2ae5a7=[],_0xb54906='\x20\x20'['repeat'](_0x1323bb);for(const [_0x4d7731,_0x1b6337]of Object['entries'](_0x4483b7)){if(_0x1b6337===undefined)continue;if(typeof _0x1b6337===_0x5261cc['JEzWI']&&_0x1b6337!==null){_0x2ae5a7['push'](''+_0xb54906+_0x4d7731+':');for(const [_0x3daa13,_0x482bc7]of Object[_0x4faf9f(0x1df)](_0x1b6337)){_0x2ae5a7[_0x4faf9f(0x1a3)](_0xb54906+'\x20\x20'+_0x3daa13+':\x20'+_0x482bc7);}}else _0x2ae5a7['push'](''+_0xb54906+_0x4d7731+':\x20'+_0x1b6337);}return _0x2ae5a7[_0x4faf9f(0x1cb)]('\x0a');}
|