@ranger-testing/ranger-cli 2.4.2 → 2.4.4

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.
Files changed (71) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -0
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  66. package/build/commands/utils/userApi.js +1 -1
  67. package/build/commands/utils/version.js +1 -1
  68. package/build/commands/verifyFeature.js +1 -1
  69. package/build/commands/verifyFeatureCli.js +1 -1
  70. package/build/commands/verifyInBrowser.js +1 -1
  71. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x3ba358,_0x31de9c){const _0x16d54b=_0x44aa,_0x2482b8=_0x3ba358();while(!![]){try{const _0x33b1c9=parseInt(_0x16d54b(0xa3))/0x1+-parseInt(_0x16d54b(0x9d))/0x2+parseInt(_0x16d54b(0x91))/0x3*(parseInt(_0x16d54b(0xaa))/0x4)+-parseInt(_0x16d54b(0xa4))/0x5*(-parseInt(_0x16d54b(0x9b))/0x6)+-parseInt(_0x16d54b(0x9a))/0x7+-parseInt(_0x16d54b(0xbe))/0x8+parseInt(_0x16d54b(0xa7))/0x9*(-parseInt(_0x16d54b(0xc1))/0xa);if(_0x33b1c9===_0x31de9c)break;else _0x2482b8['push'](_0x2482b8['shift']());}catch(_0x47b2b7){_0x2482b8['push'](_0x2482b8['shift']());}}}(_0x203c,0x3fc67));function _0x44aa(_0x4b61ff,_0x50ae06){_0x4b61ff=_0x4b61ff-0x90;const _0x203c6c=_0x203c();let _0x44aa7a=_0x203c6c[_0x4b61ff];return _0x44aa7a;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x5247b4){const _0x1bd64a=_0x44aa,_0x983c56={'ETvyx':'sha256'},_0x5caff4=createHash(_0x983c56[_0x1bd64a(0xb1)])['update'](_0x5247b4)[_0x1bd64a(0xaf)](_0x1bd64a(0xb4))[_0x1bd64a(0xb7)](0x0,0xc);return'rg-'+_0x5caff4;}function shellQuote(_0x41d738){const _0x570bc3=_0x44aa;return'\x27'+_0x41d738[_0x570bc3(0xae)](/'/g,_0x570bc3(0xa6))+'\x27';}function _0x203c(){const _0x58adca=['replace','digest','toString','ETvyx','oBOhY','kill','hex','match','data','slice','stdout','timed\x20out\x20after\x20','\x0astdout:\x20','MUfzG','kIGTO','env','1702024zMrIfY','timeoutMs','UxxEU','305470QNQtDl','TQQBz','pipe','configPath','args','exited\x20with\x20code=','62541mzhkjl','izLQz','AoTWp','CwxLz','bash_command','npx','-s=','command','yhNyP','1175006VsXkgH','6BtkVyX','SeLhV','212530HwSAZg','null','trim','etJWG','RrSrW','LaPBA','519734lKYDty','2048855DYPjBS','cmd','\x27\x5c\x27\x27','207tOnxhh','string','...','100AgKdqq','length','SIGKILL','--config'];_0x203c=function(){return _0x58adca;};return _0x203c();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x53f408){return SAFE_SHELL_TOKEN['test'](_0x53f408)?_0x53f408:shellQuote(_0x53f408);}export function buildPlaywrightCliInvocation(_0x43f05b,_0xe13e20,_0x313233){const _0x4e6401=_0x44aa,_0x30d319={'AoTWp':function(_0x2ee66e,_0xe58abd){return _0x2ee66e(_0xe58abd);},'oBOhY':_0x4e6401(0xad),'oFjOC':_0x4e6401(0x96),'kIGTO':function(_0x433239,_0x583425){return _0x433239(_0x583425);},'RrSrW':function(_0x5e9fd3,_0x598072){return _0x5e9fd3(_0x598072);}},_0x557ee5=_0x30d319[_0x4e6401(0x93)](toPlaywrightCliSessionKey,_0x43f05b),[_0xdde9e8='unknown']=_0x313233,_0x5dbac8=[PLAYWRIGHT_CLI_BINARY,_0x4e6401(0x97)+_0x557ee5,_0x30d319[_0x4e6401(0xb2)],_0xe13e20,..._0x313233];return{'command':_0x30d319['oFjOC'],'args':_0x5dbac8,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x4e6401(0x97)+_0x30d319[_0x4e6401(0xbc)](quoteShellArg,_0x557ee5),'--config',_0x30d319[_0x4e6401(0xa1)](quoteShellArg,_0xe13e20),..._0x313233['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0xdde9e8};}export function buildPlaywrightCliCommandPrefix(_0x86c53b,_0x9146){const _0x2a7970=_0x44aa,_0x19b435={'izLQz':function(_0x44ea12,_0x51e8a6){return _0x44ea12(_0x51e8a6);},'MUfzG':_0x2a7970(0x96),'bbWxN':'--config'},_0x3819b6=_0x19b435[_0x2a7970(0x92)](toPlaywrightCliSessionKey,_0x86c53b);return[_0x19b435[_0x2a7970(0xbb)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x3819b6),_0x19b435['bbWxN'],_0x19b435[_0x2a7970(0x92)](quoteShellArg,_0x9146)]['join']('\x20');}function truncateOutput(_0x23d620,_0x1bcb69=0x7d0){const _0x4cbf19=_0x44aa,_0x29b398={'irsDY':function(_0x1efb7b,_0x59365e){return _0x1efb7b+_0x59365e;},'LaPBA':_0x4cbf19(0xa9)};return _0x23d620[_0x4cbf19(0xab)]>_0x1bcb69?_0x29b398['irsDY'](_0x23d620['slice'](0x0,_0x1bcb69),_0x29b398[_0x4cbf19(0xa2)]):_0x23d620;}export async function runPlaywrightCliCommand(_0xfdf98c){const _0x15c490=_0x44aa,_0x232480={'YJjbW':_0x15c490(0xac),'vsgjd':'SIGTERM','CWBnb':function(_0x22573c,_0x46fc61){return _0x22573c(_0x46fc61);},'VevBo':function(_0x2d4747,_0x2f5b21){return _0x2d4747??_0x2f5b21;},'jOpne':_0x15c490(0xc3),'MatTY':function(_0x381266,_0x57b494){return _0x381266>_0x57b494;},'yxByK':function(_0x11264f,_0xd60678,_0x4017c8){return _0x11264f(_0xd60678,_0x4017c8);},'TQQBz':'data','AFrHS':'error','CwxLz':'close'},_0xec8dcb=buildPlaywrightCliInvocation(_0xfdf98c['sessionId'],_0xfdf98c[_0x15c490(0xc4)],_0xfdf98c['commandArgs']);return new Promise((_0x1f5a1c,_0x873ca6)=>{const _0x5a98ca=_0x15c490,_0xf3f37a={'yhNyP':function(_0x33a53e,_0x11dc27){return _0x33a53e(_0x11dc27);},'etJWG':function(_0x50b4ca,_0x135061){return _0x232480['VevBo'](_0x50b4ca,_0x135061);}},_0x354fbe=spawn(_0xec8dcb['command'],_0xec8dcb[_0x5a98ca(0xc5)],{'cwd':_0xfdf98c['cwd'],'env':_0xfdf98c[_0x5a98ca(0xbd)],'stdio':['ignore',_0x232480['jOpne'],_0x232480['jOpne']]});let _0x2c640e='',_0x13040a='',_0x554ac4=![];const _0x46df81=_0xfdf98c[_0x5a98ca(0xbf)]&&_0x232480['MatTY'](_0xfdf98c['timeoutMs'],0x0)?_0x232480['yxByK'](setTimeout,()=>{const _0xa3ab=_0x5a98ca,_0xad7e9e={'wXkRT':_0x232480['YJjbW']};_0x554ac4=!![],_0x354fbe[_0xa3ab(0xb3)](_0x232480['vsgjd']),setTimeout(()=>{const _0x25824c=_0xa3ab;try{_0x354fbe[_0x25824c(0xb3)](_0xad7e9e['wXkRT']);}catch{}},0x3e8);},_0xfdf98c[_0x5a98ca(0xbf)]):null;_0x354fbe[_0x5a98ca(0xb8)]?.['on'](_0x232480[_0x5a98ca(0xc2)],_0x3b8313=>{const _0x42eaa2=_0x5a98ca;_0x2c640e+=_0x3b8313[_0x42eaa2(0xb0)]();}),_0x354fbe['stderr']?.['on'](_0x5a98ca(0xb6),_0x527305=>{_0x13040a+=_0x527305['toString']();}),_0x354fbe['on'](_0x232480['AFrHS'],_0x21196f=>{if(_0x46df81)_0x232480['CWBnb'](clearTimeout,_0x46df81);_0x873ca6(_0x21196f);}),_0x354fbe['on'](_0x232480[_0x5a98ca(0x94)],(_0x55a9a0,_0x52ddbb)=>{const _0x41731e=_0x5a98ca;if(_0x46df81)clearTimeout(_0x46df81);if(_0x55a9a0===0x0){_0xf3f37a[_0x41731e(0x99)](_0x1f5a1c,{'stdout':_0x2c640e,'stderr':_0x13040a,'invocation':_0xec8dcb});return;}const _0x478e06=_0x554ac4?_0x41731e(0xb9)+_0xfdf98c['timeoutMs']+'ms':_0x41731e(0x90)+_0xf3f37a['etJWG'](_0x55a9a0,_0x41731e(0x9e))+'\x20signal='+_0xf3f37a[_0x41731e(0xa0)](_0x52ddbb,_0x41731e(0x9e));_0x873ca6(new Error('playwright-cli\x20'+_0xec8dcb['subcommand']+'\x20'+_0x478e06+_0x41731e(0xba)+truncateOutput(_0x2c640e)+'\x0astderr:\x20'+_0xf3f37a[_0x41731e(0x99)](truncateOutput,_0x13040a)));});});}export function extractBashCommand(_0xfb7149){const _0x5304cf=_0x44aa,_0xc06e19={'ZoUTn':_0x5304cf(0xa5),'UxxEU':'script','ciiTv':_0x5304cf(0x95),'SeLhV':_0x5304cf(0xa8),'NAUgT':function(_0x381976,_0x4aca05){return _0x381976??_0x4aca05;}},_0x50bd69=[_0x5304cf(0x98),_0xc06e19['ZoUTn'],_0xc06e19[_0x5304cf(0xc0)],_0xc06e19['ciiTv']];for(const _0x1e3c38 of _0x50bd69){const _0x483b68=_0xfb7149[_0x1e3c38];if(typeof _0x483b68===_0xc06e19[_0x5304cf(0x9c)]&&_0x483b68[_0x5304cf(0x9f)]())return _0x483b68;}const _0x2353ca=Object['values'](_0xfb7149)['find'](_0x27da85=>typeof _0x27da85===_0x5304cf(0xa8)&&_0x27da85['trim']()[_0x5304cf(0xab)]>0x0);return _0xc06e19['NAUgT'](_0x2353ca,null);}export function parsePlaywrightCliCommand(_0x3be9b3){const _0x469019=_0x44aa,_0x55a16f=_0x3be9b3[_0x469019(0xb5)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x55a16f?.[0x1]??null;}
1
+ (function(_0x71a5dc,_0x508a23){const _0x295318=_0x5a1b,_0x53a037=_0x71a5dc();while(!![]){try{const _0x3b6d06=parseInt(_0x295318(0x139))/0x1+parseInt(_0x295318(0x136))/0x2*(parseInt(_0x295318(0x137))/0x3)+parseInt(_0x295318(0x12c))/0x4*(parseInt(_0x295318(0x14a))/0x5)+-parseInt(_0x295318(0x144))/0x6+parseInt(_0x295318(0x11c))/0x7*(-parseInt(_0x295318(0x124))/0x8)+-parseInt(_0x295318(0x149))/0x9*(-parseInt(_0x295318(0x150))/0xa)+-parseInt(_0x295318(0x140))/0xb;if(_0x3b6d06===_0x508a23)break;else _0x53a037['push'](_0x53a037['shift']());}catch(_0x4a887a){_0x53a037['push'](_0x53a037['shift']());}}}(_0x212b,0x26530));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x5746af){const _0x2fefe8=_0x5a1b,_0xb4ead0={'uYEtq':'hex'},_0x409c79=createHash(_0x2fefe8(0x123))[_0x2fefe8(0x12f)](_0x5746af)[_0x2fefe8(0x11f)](_0xb4ead0['uYEtq'])[_0x2fefe8(0x12a)](0x0,0xc);return'rg-'+_0x409c79;}function shellQuote(_0x1c8919){const _0x532767=_0x5a1b;return'\x27'+_0x1c8919[_0x532767(0x12d)](/'/g,_0x532767(0x11b))+'\x27';}function _0x212b(){const _0x1fedb8=['length','188gfJMEJ','6141ZBbWLK','UJgfk','52811cUQLVi','mkikB','subcommand','trim','unknown','yPTAH','script','2299572GnJmcl','test','ignore','values','44148sjRtWu','tjApx','join','--config','string','834633RLENQG','914360WMiMQc','sessionId','-s=','timed\x20out\x20after\x20','null','bash_command','20FFSZQA','SIGKILL','\x27\x5c\x27\x27','413lvloWt','xCXwg','error','digest','timeoutMs','pipe','command','sha256','32568snFefC','bPUvN','stdout','LGJNF','cwd','configPath','slice','pZRGV','4IqHGoP','replace','\x20signal=','update','toString','commandArgs','LFcaM','npx','WLSJn'];_0x212b=function(){return _0x1fedb8;};return _0x212b();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x32019d){const _0x5e3db0=_0x5a1b;return SAFE_SHELL_TOKEN[_0x5e3db0(0x141)](_0x32019d)?_0x32019d:shellQuote(_0x32019d);}export function buildPlaywrightCliInvocation(_0xd6e427,_0x5bbe22,_0x46f1df){const _0x40dc73=_0x5a1b,_0x1ed34c={'BJyLm':'npx','zyyVF':function(_0x182938,_0x2ebb84){return _0x182938(_0x2ebb84);}},_0x8a19fa=toPlaywrightCliSessionKey(_0xd6e427),[_0x6567a1=_0x40dc73(0x13d)]=_0x46f1df,_0x40ae32=[PLAYWRIGHT_CLI_BINARY,_0x40dc73(0x14c)+_0x8a19fa,_0x40dc73(0x147),_0x5bbe22,..._0x46f1df];return{'command':_0x1ed34c['BJyLm'],'args':_0x40ae32,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,'-s='+_0x1ed34c['zyyVF'](quoteShellArg,_0x8a19fa),'--config',quoteShellArg(_0x5bbe22),..._0x46f1df['map'](quoteShellArg)][_0x40dc73(0x146)]('\x20'),'subcommand':_0x6567a1};}function _0x5a1b(_0x119a2f,_0x5156a8){_0x119a2f=_0x119a2f-0x11b;const _0x212b2d=_0x212b();let _0x5a1bbc=_0x212b2d[_0x119a2f];return _0x5a1bbc;}export function buildPlaywrightCliCommandPrefix(_0x3734be,_0x5d436f){const _0x681345=_0x5a1b,_0x2e8a92={'yPTAH':_0x681345(0x133),'tjApx':function(_0x2e04b1,_0xd36c57){return _0x2e04b1(_0xd36c57);}},_0x2de65a=toPlaywrightCliSessionKey(_0x3734be);return[_0x2e8a92[_0x681345(0x13e)],PLAYWRIGHT_CLI_BINARY,_0x681345(0x14c)+quoteShellArg(_0x2de65a),_0x681345(0x147),_0x2e8a92[_0x681345(0x145)](quoteShellArg,_0x5d436f)][_0x681345(0x146)]('\x20');}function truncateOutput(_0x2f736e,_0x149c4c=0x7d0){const _0x85b39e=_0x5a1b,_0x126789={'pZRGV':function(_0x1cfb7e,_0x431433){return _0x1cfb7e>_0x431433;},'UJgfk':function(_0x327612,_0x204798){return _0x327612+_0x204798;}};return _0x126789[_0x85b39e(0x12b)](_0x2f736e['length'],_0x149c4c)?_0x126789[_0x85b39e(0x138)](_0x2f736e[_0x85b39e(0x12a)](0x0,_0x149c4c),'...'):_0x2f736e;}export async function runPlaywrightCliCommand(_0x155629){const _0x10e011=_0x5a1b,_0x531f61={'mkikB':'SIGTERM','PmvFL':function(_0x48f928,_0x9ebe35,_0x562a74){return _0x48f928(_0x9ebe35,_0x562a74);},'jIAVk':function(_0x5ac5df,_0x224f45){return _0x5ac5df??_0x224f45;},'umKjJ':'null','JYRMX':function(_0x2ad3e9,_0x585f18){return _0x2ad3e9(_0x585f18);},'RnDZV':function(_0x48a824,_0x15663c,_0x12f1f9,_0x109e09){return _0x48a824(_0x15663c,_0x12f1f9,_0x109e09);},'msFgU':_0x10e011(0x142),'ncAKT':function(_0x2079dd,_0x588401){return _0x2079dd>_0x588401;},'AaEQK':function(_0x1aa383,_0x4e1fdd,_0x230073){return _0x1aa383(_0x4e1fdd,_0x230073);},'bPUvN':'data','tBOIX':_0x10e011(0x11e),'gbVLK':'close'},_0x3e9fa0=buildPlaywrightCliInvocation(_0x155629[_0x10e011(0x14b)],_0x155629[_0x10e011(0x129)],_0x155629[_0x10e011(0x131)]);return new Promise((_0x74f6c1,_0x4bd510)=>{const _0x47d309=_0x10e011,_0x3a428c={'LFcaM':function(_0x5df3b6,_0x247d16){return _0x5df3b6(_0x247d16);},'LGJNF':function(_0x427bb6,_0x319db4){return _0x427bb6(_0x319db4);}},_0x4c1cef=_0x531f61['RnDZV'](spawn,_0x3e9fa0[_0x47d309(0x122)],_0x3e9fa0['args'],{'cwd':_0x155629[_0x47d309(0x128)],'env':_0x155629['env'],'stdio':[_0x531f61['msFgU'],'pipe',_0x47d309(0x121)]});let _0x5f38cb='',_0x361bc0='',_0x8f1a72=![];const _0x35ce84=_0x155629['timeoutMs']&&_0x531f61['ncAKT'](_0x155629[_0x47d309(0x120)],0x0)?_0x531f61['AaEQK'](setTimeout,()=>{const _0x4f800b=_0x47d309;_0x8f1a72=!![],_0x4c1cef['kill'](_0x531f61[_0x4f800b(0x13a)]),_0x531f61['PmvFL'](setTimeout,()=>{const _0x357e2c=_0x4f800b;try{_0x4c1cef['kill'](_0x357e2c(0x151));}catch{}},0x3e8);},_0x155629[_0x47d309(0x120)]):null;_0x4c1cef[_0x47d309(0x126)]?.['on'](_0x531f61[_0x47d309(0x125)],_0x4839bc=>{_0x5f38cb+=_0x4839bc['toString']();}),_0x4c1cef['stderr']?.['on'](_0x531f61['bPUvN'],_0x184076=>{const _0x595df5=_0x47d309;_0x361bc0+=_0x184076[_0x595df5(0x130)]();}),_0x4c1cef['on'](_0x531f61['tBOIX'],_0x17661e=>{const _0x56e2fa=_0x47d309;if(_0x35ce84)_0x3a428c[_0x56e2fa(0x132)](clearTimeout,_0x35ce84);_0x3a428c[_0x56e2fa(0x127)](_0x4bd510,_0x17661e);}),_0x4c1cef['on'](_0x531f61['gbVLK'],(_0x5aaf7c,_0x136fa6)=>{const _0x395c18=_0x47d309;if(_0x35ce84)clearTimeout(_0x35ce84);if(_0x5aaf7c===0x0){_0x74f6c1({'stdout':_0x5f38cb,'stderr':_0x361bc0,'invocation':_0x3e9fa0});return;}const _0x2f05fb=_0x8f1a72?_0x395c18(0x14d)+_0x155629['timeoutMs']+'ms':'exited\x20with\x20code='+_0x531f61['jIAVk'](_0x5aaf7c,_0x395c18(0x14e))+_0x395c18(0x12e)+(_0x136fa6??_0x531f61['umKjJ']);_0x4bd510(new Error('playwright-cli\x20'+_0x3e9fa0[_0x395c18(0x13b)]+'\x20'+_0x2f05fb+'\x0astdout:\x20'+truncateOutput(_0x5f38cb)+'\x0astderr:\x20'+_0x531f61['JYRMX'](truncateOutput,_0x361bc0)));});});}export function extractBashCommand(_0x1d853a){const _0x2c1c07=_0x5a1b,_0x324995={'pfMaR':'cmd','xCXwg':_0x2c1c07(0x14f),'ykPhc':function(_0x3c18de,_0x47c2d8){return _0x3c18de===_0x47c2d8;},'WLSJn':_0x2c1c07(0x148)},_0x17bff0=[_0x2c1c07(0x122),_0x324995['pfMaR'],_0x2c1c07(0x13f),_0x324995[_0x2c1c07(0x11d)]];for(const _0x48f22 of _0x17bff0){const _0x516540=_0x1d853a[_0x48f22];if(_0x324995['ykPhc'](typeof _0x516540,_0x324995[_0x2c1c07(0x134)])&&_0x516540['trim']())return _0x516540;}const _0x49fedf=Object[_0x2c1c07(0x143)](_0x1d853a)['find'](_0x1618ea=>typeof _0x1618ea===_0x2c1c07(0x148)&&_0x1618ea[_0x2c1c07(0x13c)]()[_0x2c1c07(0x135)]>0x0);return _0x49fedf??null;}export function parsePlaywrightCliCommand(_0x37ef52){const _0x270fee=_0x37ef52['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x270fee?.[0x1]??null;}
@@ -1 +1 @@
1
- function _0x4784(){const _0x2bf47f=['601728UfDRvN','555357KPzfCp','10AuJcYI','3OrGJaR','8YAHifh','156asbsuk','8738989huywiO','71395gHpIRX','19281873VaHKVT','204tfbcXM','4023342siIWfJ','6154MDZOkF','318OIKxlr','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'];_0x4784=function(){return _0x2bf47f;};return _0x4784();}function _0x2563(_0x3db79e,_0x4c1fdd){_0x3db79e=_0x3db79e-0x76;const _0x478422=_0x4784();let _0x256396=_0x478422[_0x3db79e];return _0x256396;}(function(_0x391c6f,_0x5e403b){const _0x4b118f=_0x2563,_0x47a7d0=_0x391c6f();while(!![]){try{const _0x13e3bf=-parseInt(_0x4b118f(0x76))/0x1*(-parseInt(_0x4b118f(0x82))/0x2)+-parseInt(_0x4b118f(0x7c))/0x3*(-parseInt(_0x4b118f(0x79))/0x4)+-parseInt(_0x4b118f(0x80))/0x5*(-parseInt(_0x4b118f(0x77))/0x6)+parseInt(_0x4b118f(0x7f))/0x7*(-parseInt(_0x4b118f(0x7d))/0x8)+-parseInt(_0x4b118f(0x83))/0x9*(parseInt(_0x4b118f(0x7b))/0xa)+parseInt(_0x4b118f(0x7a))/0xb*(-parseInt(_0x4b118f(0x7e))/0xc)+parseInt(_0x4b118f(0x81))/0xd;if(_0x13e3bf===_0x5e403b)break;else _0x47a7d0['push'](_0x47a7d0['shift']());}catch(_0x4d4455){_0x47a7d0['push'](_0x47a7d0['shift']());}}}(_0x4784,0xa2af0));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x3bffaa){const _0x1b7871=_0x2563,_0x4bd1b6=_0x3bffaa?_0x3bffaa(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x1b7871(0x78)+_0x4bd1b6+'.';}
1
+ function _0x5626(){const _0x125a3a=['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','7azofhv','8wkMTBU','7096668RVBjqL','1483565rThrvM','72pDTCui','915474qhUwdI','455778jiwziI','49737BckMOr','269793biDvTb','11kLaDMG','21780590KXetuL'];_0x5626=function(){return _0x125a3a;};return _0x5626();}(function(_0x5e4476,_0x22f1ef){const _0x38554f=_0x111e,_0x211ce2=_0x5e4476();while(!![]){try{const _0x10d7f6=parseInt(_0x38554f(0xac))/0x1+-parseInt(_0x38554f(0xaa))/0x2+-parseInt(_0x38554f(0xad))/0x3+parseInt(_0x38554f(0xb2))/0x4*(parseInt(_0x38554f(0xa8))/0x5)+-parseInt(_0x38554f(0xb3))/0x6*(parseInt(_0x38554f(0xb1))/0x7)+-parseInt(_0x38554f(0xa9))/0x8*(parseInt(_0x38554f(0xab))/0x9)+parseInt(_0x38554f(0xaf))/0xa*(parseInt(_0x38554f(0xae))/0xb);if(_0x10d7f6===_0x22f1ef)break;else _0x211ce2['push'](_0x211ce2['shift']());}catch(_0x4a77f4){_0x211ce2['push'](_0x211ce2['shift']());}}}(_0x5626,0x9b076));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x111e(_0xf86b50,_0x9b8435){_0xf86b50=_0xf86b50-0xa8;const _0x5626cb=_0x5626();let _0x111ea4=_0x5626cb[_0xf86b50];return _0x111ea4;}export function formatProfileRequiredMessage(_0x1118ed){const _0x39da30=_0x111e,_0x5dfd9a={'izzEb':function(_0x1fcd49,_0x32f907){return _0x1fcd49(_0x32f907);}},_0x31dc34=_0x1118ed?_0x5dfd9a['izzEb'](_0x1118ed,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x39da30(0xb0)+_0x31dc34+'.';}
@@ -1 +1 @@
1
- (function(_0x48d125,_0x10aac7){const _0x238648=_0x1b8a,_0x54ae4b=_0x48d125();while(!![]){try{const _0x20274f=parseInt(_0x238648(0x141))/0x1*(parseInt(_0x238648(0x144))/0x2)+-parseInt(_0x238648(0x13c))/0x3*(parseInt(_0x238648(0x140))/0x4)+parseInt(_0x238648(0x133))/0x5*(-parseInt(_0x238648(0x135))/0x6)+parseInt(_0x238648(0x138))/0x7+-parseInt(_0x238648(0x142))/0x8*(-parseInt(_0x238648(0x143))/0x9)+-parseInt(_0x238648(0x13a))/0xa+parseInt(_0x238648(0x13b))/0xb;if(_0x20274f===_0x10aac7)break;else _0x54ae4b['push'](_0x54ae4b['shift']());}catch(_0x3d3bdc){_0x54ae4b['push'](_0x54ae4b['shift']());}}}(_0x3497,0x4f68e));function _0x1b8a(_0x2c1c48,_0x3d9245){_0x2c1c48=_0x2c1c48-0x133;const _0x34979e=_0x3497();let _0x1b8a27=_0x34979e[_0x2c1c48];return _0x1b8a27;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x3a12ce=_0x1b8a,_0x1942bd={'GarxW':function(_0x1bf94c,_0x19fc16){return _0x1bf94c+_0x19fc16;},'BFRbs':function(_0x34eeb5,_0x3e540d){return _0x34eeb5+_0x3e540d;},'jeDyd':_0x3a12ce(0x13f),'LaUeT':'</div>','poLcw':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x14f035=_0x1942bd[_0x3a12ce(0x13e)](_0x1942bd['BFRbs']('<div\x20class=\x22ranger-banner__content\x22>',_0x3a12ce(0x136))+'<div\x20class=\x22ranger-banner__message\x22>'+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x1942bd['jeDyd'])+_0x1942bd[_0x3a12ce(0x137)]+_0x1942bd['LaUeT']+_0x1942bd[_0x3a12ce(0x13d)],_0x719f60=_0x3a12ce(0x134);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'](_0x14f035)+';\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'](_0x719f60)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x3497(){const _0x4807fb=['890978OtBZmO','13263QWxfBK','poLcw','GarxW','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','472uIzwJg','1ktfrbc','8gyXDLz','5557401KSAhZV','880890otHFrz','15FFjfwa','\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','778656xRxIyS','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','LaUeT','4041212inzrFi','addInitScript','4799800AvDVjY'];_0x3497=function(){return _0x4807fb;};return _0x3497();}export async function addProfileSetupBanner(_0x233ee3){const _0x2c1c2b=_0x1b8a;await _0x233ee3[_0x2c1c2b(0x139)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x3b3269,_0x55ff32){const _0x261e05=_0x532a,_0xc7d949=_0x3b3269();while(!![]){try{const _0x3cb957=parseInt(_0x261e05(0x1e9))/0x1*(parseInt(_0x261e05(0x1f1))/0x2)+parseInt(_0x261e05(0x1fb))/0x3*(parseInt(_0x261e05(0x1f7))/0x4)+parseInt(_0x261e05(0x1e8))/0x5*(parseInt(_0x261e05(0x1ef))/0x6)+parseInt(_0x261e05(0x1f0))/0x7*(parseInt(_0x261e05(0x1eb))/0x8)+-parseInt(_0x261e05(0x1f6))/0x9+parseInt(_0x261e05(0x1ed))/0xa*(-parseInt(_0x261e05(0x1f8))/0xb)+parseInt(_0x261e05(0x1ec))/0xc*(-parseInt(_0x261e05(0x1f3))/0xd);if(_0x3cb957===_0x55ff32)break;else _0xc7d949['push'](_0xc7d949['shift']());}catch(_0x1c981d){_0xc7d949['push'](_0xc7d949['shift']());}}}(_0x5082,0x5290f));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x12b9cf=_0x532a,_0x1e6198={'qhCTy':function(_0x194d0a,_0x3071f0){return _0x194d0a+_0x3071f0;},'NubwE':function(_0x1eff43,_0x53ef27){return _0x1eff43+_0x53ef27;},'nopRN':function(_0x4b5432,_0x12ba4d){return _0x4b5432+_0x12ba4d;},'cytbs':'<div\x20class=\x22ranger-banner__content\x22>','mIytK':_0x12b9cf(0x1f5),'AsFkT':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','BOtES':_0x12b9cf(0x1fc),'VGLcO':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x341277=_0x1e6198['qhCTy'](_0x1e6198['NubwE'](_0x1e6198[_0x12b9cf(0x1ea)](_0x1e6198['cytbs'],'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>')+'<div\x20class=\x22ranger-banner__message\x22>',_0x1e6198[_0x12b9cf(0x1f9)])+_0x1e6198['AsFkT'],'</div>')+_0x1e6198['BOtES']+_0x1e6198[_0x12b9cf(0x1fa)],_0x371d29=_0x12b9cf(0x1ee);return _0x12b9cf(0x1f2)+JSON['stringify'](_0x341277)+';\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'](_0x371d29)+';\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';})());function _0x5082(){const _0x5380bc=['\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','71240LVDxwq','addInitScript','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','4511637RQRImb','712vOVGts','11858Hgqcge','mIytK','VGLcO','2589udxSgC','</div>','21515lRKKfu','17971HJxzHm','nopRN','97912cbHaYQ','396CwDjFN','2590AAhrFz','\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','276FPGKXD','203aNJEkI','66RFtSdY'];_0x5082=function(){return _0x5380bc;};return _0x5082();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x532a(_0x3a78b8,_0xa96297){_0x3a78b8=_0x3a78b8-0x1e8;const _0x508275=_0x5082();let _0x532a18=_0x508275[_0x3a78b8];return _0x532a18;}export async function addProfileSetupBanner(_0x4afc73){const _0x52ccd7=_0x532a;await _0x4afc73[_0x52ccd7(0x1f4)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x1c5d32,_0xf1d6aa){const _0xf63469=_0x15ae,_0x42ab29=_0x1c5d32();while(!![]){try{const _0x358ebf=-parseInt(_0xf63469(0xe1))/0x1*(-parseInt(_0xf63469(0xdf))/0x2)+-parseInt(_0xf63469(0xe2))/0x3+-parseInt(_0xf63469(0xe4))/0x4*(-parseInt(_0xf63469(0xe8))/0x5)+parseInt(_0xf63469(0xeb))/0x6+-parseInt(_0xf63469(0xdd))/0x7+parseInt(_0xf63469(0xdb))/0x8*(parseInt(_0xf63469(0xe0))/0x9)+parseInt(_0xf63469(0xe3))/0xa;if(_0x358ebf===_0xf1d6aa)break;else _0x42ab29['push'](_0x42ab29['shift']());}catch(_0x5dc92b){_0x42ab29['push'](_0x42ab29['shift']());}}}(_0x5db3,0xae2ec));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x15ae(_0x599de6,_0xfc4bc7){_0x599de6=_0x599de6-0xd7;const _0x5db3ae=_0x5db3();let _0x15aec9=_0x5db3ae[_0x599de6];return _0x15aec9;}import{getRangerDir}from'./rangerRoot.js';function _0x5db3(){const _0xe819e3=['string','1316025kRinfH','xgbTw','isArray','6267060tqFpsi','JbFlf','parse','model','message','1192bGqckG','config.json','7340242rjzbKo','warn','258zLEkFi','21177tTOLME','3469fTDCAd','4169562AJpHJU','2564840OaFfdL','16egRYdm','RMsmr','KsaAk'];_0x5db3=function(){return _0xe819e3;};return _0x5db3();}export function getRangerConfigPath(){const _0x85d054=_0x15ae,_0x509986={'yZbVg':function(_0x3791bf,_0x13796e,_0x2a17a0){return _0x3791bf(_0x13796e,_0x2a17a0);}};return _0x509986['yZbVg'](join,getRangerDir(),_0x85d054(0xdc));}export async function loadRangerConfig(){const _0xb8689e=_0x15ae,_0x7f6819={'xgbTw':function(_0x5c7ca2){return _0x5c7ca2();},'RMsmr':function(_0x731bab,_0x5ddc73,_0x5ed12a){return _0x731bab(_0x5ddc73,_0x5ed12a);},'sfCRV':'utf-8','KsaAk':function(_0x4304d3,_0x38ab2d){return _0x4304d3!==_0x38ab2d;},'JbFlf':function(_0x5d0e77,_0x135973){return _0x5d0e77 instanceof _0x135973;}},_0x395084=_0x7f6819[_0xb8689e(0xe9)](getRangerConfigPath);if(!existsSync(_0x395084))return{};try{const _0x137645=await _0x7f6819[_0xb8689e(0xe5)](readFile,_0x395084,_0x7f6819['sfCRV']),_0x196fc3=JSON[_0xb8689e(0xd8)](_0x137645);if(!_0x196fc3||_0x7f6819[_0xb8689e(0xe6)](typeof _0x196fc3,'object')||Array[_0xb8689e(0xea)](_0x196fc3))return{};const _0x4a845f={},_0x24c2ec=_0x196fc3[_0xb8689e(0xd9)];return typeof _0x24c2ec===_0xb8689e(0xe7)&&(_0x4a845f[_0xb8689e(0xd9)]=_0x24c2ec),_0x4a845f;}catch(_0x5eeb80){const _0x22d150=_0x7f6819[_0xb8689e(0xd7)](_0x5eeb80,Error)?_0x5eeb80[_0xb8689e(0xda)]:String(_0x5eeb80);return console[_0xb8689e(0xde)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x395084+':\x20'+_0x22d150),{};}}
1
+ (function(_0x5e2ee0,_0x2352ec){const _0xc7ad37=_0x5ba3,_0x2ec169=_0x5e2ee0();while(!![]){try{const _0x532657=-parseInt(_0xc7ad37(0x170))/0x1*(parseInt(_0xc7ad37(0x16c))/0x2)+-parseInt(_0xc7ad37(0x15b))/0x3*(parseInt(_0xc7ad37(0x16b))/0x4)+-parseInt(_0xc7ad37(0x163))/0x5*(parseInt(_0xc7ad37(0x15f))/0x6)+-parseInt(_0xc7ad37(0x166))/0x7*(-parseInt(_0xc7ad37(0x16d))/0x8)+parseInt(_0xc7ad37(0x165))/0x9*(-parseInt(_0xc7ad37(0x169))/0xa)+parseInt(_0xc7ad37(0x168))/0xb*(parseInt(_0xc7ad37(0x16e))/0xc)+parseInt(_0xc7ad37(0x162))/0xd*(parseInt(_0xc7ad37(0x15d))/0xe);if(_0x532657===_0x2352ec)break;else _0x2ec169['push'](_0x2ec169['shift']());}catch(_0xc4eac7){_0x2ec169['push'](_0x2ec169['shift']());}}}(_0x37bc,0x52d4d));function _0x5ba3(_0x2ff2d1,_0x51f2cb){_0x2ff2d1=_0x2ff2d1-0x15b;const _0x37bce9=_0x37bc();let _0x5ba325=_0x37bce9[_0x2ff2d1];return _0x5ba325;}function _0x37bc(){const _0x2413d0=['507429xkkIIf','2595691JLYtqh','utf-8','44CNWdQB','70kGUEIT','string','376XGUdMV','272kXKObz','8CTPYbl','1956048AoBUsu','VbQuD','739TlpAPc','4116vHFMYQ','model','861182DsKjsw','TxaGI','156GtcVfO','object','AIHgH','13DdfUUa','23255DpdDMy','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'];_0x37bc=function(){return _0x2413d0;};return _0x37bc();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0xaaacba=_0x5ba3,_0x1f4343={'TxaGI':function(_0x39cbea,_0x7d29e){return _0x39cbea(_0x7d29e);},'HmYht':function(_0x384bf0,_0x16ec91,_0x56358a){return _0x384bf0(_0x16ec91,_0x56358a);},'XyaeO':function(_0x17fd69,_0x34e01b){return _0x17fd69!==_0x34e01b;},'AIHgH':_0xaaacba(0x16a),'VbQuD':function(_0x2b8c67,_0x1543aa){return _0x2b8c67(_0x1543aa);}},_0x399ea2=getRangerConfigPath();if(!_0x1f4343[_0xaaacba(0x15e)](existsSync,_0x399ea2))return{};try{const _0x3223a3=await _0x1f4343['HmYht'](readFile,_0x399ea2,_0xaaacba(0x167)),_0x3f1669=JSON['parse'](_0x3223a3);if(!_0x3f1669||_0x1f4343['XyaeO'](typeof _0x3f1669,_0xaaacba(0x160))||Array['isArray'](_0x3f1669))return{};const _0x258ba1={},_0x52b96f=_0x3f1669[_0xaaacba(0x15c)];return typeof _0x52b96f===_0x1f4343[_0xaaacba(0x161)]&&(_0x258ba1['model']=_0x52b96f),_0x258ba1;}catch(_0x1974c8){const _0x23007a=_0x1974c8 instanceof Error?_0x1974c8['message']:_0x1f4343[_0xaaacba(0x16f)](String,_0x1974c8);return console['warn'](_0xaaacba(0x164)+_0x399ea2+':\x20'+_0x23007a),{};}}
@@ -1 +1 @@
1
- (function(_0x3f1fa0,_0x8b4708){const _0x4b6888=_0x2a69,_0x3ea2fe=_0x3f1fa0();while(!![]){try{const _0x56d764=parseInt(_0x4b6888(0xae))/0x1+parseInt(_0x4b6888(0xc0))/0x2+parseInt(_0x4b6888(0xb2))/0x3+-parseInt(_0x4b6888(0xbc))/0x4*(parseInt(_0x4b6888(0xb0))/0x5)+-parseInt(_0x4b6888(0xaf))/0x6+parseInt(_0x4b6888(0xb5))/0x7+-parseInt(_0x4b6888(0xb3))/0x8;if(_0x56d764===_0x8b4708)break;else _0x3ea2fe['push'](_0x3ea2fe['shift']());}catch(_0x20ee91){_0x3ea2fe['push'](_0x3ea2fe['shift']());}}}(_0x916e,0xdfd9f));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x8cd448=_0x2a69,_0x30d01d={'HnWZf':function(_0x2d1c05,_0x34f91d){return _0x2d1c05!==_0x34f91d;},'oxclw':_0x8cd448(0xb1),'iVmCx':function(_0x3d8e3b,_0x12e6db,_0x2fadd9){return _0x3d8e3b(_0x12e6db,_0x2fadd9);},'QRihm':function(_0x4c679e){return _0x4c679e();}};let _0x4aaabf=process[_0x8cd448(0xb4)]();const _0x193b97=parse(_0x4aaabf)[_0x8cd448(0xba)];while(_0x30d01d[_0x8cd448(0xbd)](_0x4aaabf,_0x193b97)){if(existsSync(join(_0x4aaabf,_0x30d01d[_0x8cd448(0xb7)])))return _0x4aaabf;_0x4aaabf=dirname(_0x4aaabf);}if(existsSync(_0x30d01d[_0x8cd448(0xb6)](join,_0x193b97,_0x8cd448(0xb1))))return _0x193b97;const _0x2dfb1d=_0x30d01d['QRihm'](findGitRoot);if(_0x2dfb1d)return _0x2dfb1d;return process[_0x8cd448(0xb4)]();}export function getRangerDir(){const _0x29d11a=_0x2a69,_0x46f6fb={'QUIuG':function(_0x436eb8){return _0x436eb8();}};return join(_0x46f6fb['QUIuG'](getRangerRoot),_0x29d11a(0xb1));}function _0x2a69(_0x528d20,_0x4ba83b){_0x528d20=_0x528d20-0xae;const _0x916e01=_0x916e();let _0x2a69c6=_0x916e01[_0x528d20];return _0x2a69c6;}function _0x916e(){const _0x1149aa=['nsrmp','1449268evPAwq','HnWZf','HxusQ','KtHoB','1238600fCdnMX','860489WZPLfQ','3226332cmwJMt','25OnAqXz','.ranger','4008687lqSZSc','9071120TlakFp','cwd','11088518sUlXge','iVmCx','oxclw','.git','uwOlO','root'];_0x916e=function(){return _0x1149aa;};return _0x916e();}export function findGitRoot(){const _0xeb74b8=_0x2a69,_0x2516e8={'uwOlO':function(_0x5567eb,_0x58284c){return _0x5567eb(_0x58284c);},'KtHoB':function(_0x2ecc82,_0x228567){return _0x2ecc82!==_0x228567;},'HxusQ':function(_0x39b2be,_0x4bbcb5,_0x550ac2){return _0x39b2be(_0x4bbcb5,_0x550ac2);},'bqibJ':function(_0x1ed0cb,_0x54bd6f){return _0x1ed0cb(_0x54bd6f);}};let _0x40f921=process['cwd']();const _0x42f176=_0x2516e8[_0xeb74b8(0xb9)](parse,_0x40f921)['root'];while(_0x2516e8[_0xeb74b8(0xbf)](_0x40f921,_0x42f176)){if(existsSync(_0x2516e8[_0xeb74b8(0xbe)](join,_0x40f921,_0xeb74b8(0xb8))))return _0x40f921;_0x40f921=dirname(_0x40f921);}if(_0x2516e8['bqibJ'](existsSync,join(_0x42f176,'.git')))return _0x42f176;return null;}export function getRangerHomeDir(){const _0x450301=_0x2a69,_0xdf241={'nsrmp':function(_0x424092,_0x9e493,_0x282b8f){return _0x424092(_0x9e493,_0x282b8f);}};return _0xdf241[_0x450301(0xbb)](join,homedir(),'.ranger');}
1
+ (function(_0x5c3429,_0x4d4c51){const _0x7b44ca=_0x173c,_0x42d14c=_0x5c3429();while(!![]){try{const _0x376570=-parseInt(_0x7b44ca(0x107))/0x1*(-parseInt(_0x7b44ca(0x104))/0x2)+-parseInt(_0x7b44ca(0xfb))/0x3*(parseInt(_0x7b44ca(0xfc))/0x4)+-parseInt(_0x7b44ca(0x108))/0x5*(-parseInt(_0x7b44ca(0xfa))/0x6)+-parseInt(_0x7b44ca(0xf8))/0x7+parseInt(_0x7b44ca(0xff))/0x8+parseInt(_0x7b44ca(0x105))/0x9+-parseInt(_0x7b44ca(0x106))/0xa;if(_0x376570===_0x4d4c51)break;else _0x42d14c['push'](_0x42d14c['shift']());}catch(_0x164e12){_0x42d14c['push'](_0x42d14c['shift']());}}}(_0x1f6f,0xc0a8d));import{dirname,join,parse}from'path';function _0x173c(_0x394fc8,_0x5c6679){_0x394fc8=_0x394fc8-0xf8;const _0x1f6ff1=_0x1f6f();let _0x173c63=_0x1f6ff1[_0x394fc8];return _0x173c63;}import{existsSync}from'fs';function _0x1f6f(){const _0x48f5b5=['EpdBf','.ranger','6196mdNEAh','12496374MtGfdq','7937040IZNYvt','53SfAVFW','3528365CUiwBH','5046384apGOJn','nXyLv','6LVfwbu','3090255KAuhoR','4AYirxw','segub','exdTh','8603848BiDvyG','.git','WCWmp'];_0x1f6f=function(){return _0x48f5b5;};return _0x1f6f();}import{homedir}from'os';export function getRangerRoot(){const _0x379a74=_0x173c,_0x15afe4={'gKzXw':function(_0x379703,_0x5ff300){return _0x379703(_0x5ff300);},'wHGfp':function(_0x1ef062,_0x3f7979,_0x945eff){return _0x1ef062(_0x3f7979,_0x945eff);},'MlaQy':function(_0x1097ef,_0x306cc5){return _0x1097ef(_0x306cc5);},'smHnQ':'.ranger','WCWmp':function(_0x4bc4c6){return _0x4bc4c6();}};let _0x3e80d0=process['cwd']();const _0x502de8=parse(_0x3e80d0)['root'];while(_0x3e80d0!==_0x502de8){if(_0x15afe4['gKzXw'](existsSync,_0x15afe4['wHGfp'](join,_0x3e80d0,'.ranger')))return _0x3e80d0;_0x3e80d0=dirname(_0x3e80d0);}if(_0x15afe4['MlaQy'](existsSync,join(_0x502de8,_0x15afe4['smHnQ'])))return _0x502de8;const _0x474921=_0x15afe4[_0x379a74(0x101)](findGitRoot);if(_0x474921)return _0x474921;return process['cwd']();}export function getRangerDir(){const _0x2262ea=_0x173c;return join(getRangerRoot(),_0x2262ea(0x103));}export function findGitRoot(){const _0x7c236a=_0x173c,_0x551ac8={'EpdBf':function(_0x3a526d,_0x1a3706){return _0x3a526d(_0x1a3706);},'CBimD':function(_0x30f933,_0x4cbc88){return _0x30f933!==_0x4cbc88;},'gyArV':function(_0x268885,_0x5e5ca,_0x5d2346){return _0x268885(_0x5e5ca,_0x5d2346);},'nXyLv':_0x7c236a(0x100),'TmLZL':function(_0x37378a,_0x6648ab){return _0x37378a(_0x6648ab);},'exdTh':function(_0x4622e0,_0x3aba88,_0x40b10a){return _0x4622e0(_0x3aba88,_0x40b10a);}};let _0x3e5bde=process['cwd']();const _0x1be861=_0x551ac8[_0x7c236a(0x102)](parse,_0x3e5bde)['root'];while(_0x551ac8['CBimD'](_0x3e5bde,_0x1be861)){if(existsSync(_0x551ac8['gyArV'](join,_0x3e5bde,_0x551ac8[_0x7c236a(0xf9)])))return _0x3e5bde;_0x3e5bde=_0x551ac8['TmLZL'](dirname,_0x3e5bde);}if(_0x551ac8['TmLZL'](existsSync,_0x551ac8[_0x7c236a(0xfe)](join,_0x1be861,_0x7c236a(0x100))))return _0x1be861;return null;}export function getRangerHomeDir(){const _0x3aae55=_0x173c,_0x23f24e={'gJWiy':function(_0x31255a){return _0x31255a();},'segub':'.ranger'};return join(_0x23f24e['gJWiy'](homedir),_0x23f24e[_0x3aae55(0xfd)]);}
@@ -1 +1 @@
1
- (function(_0x3a67d4,_0x99269d){const _0xb39e98=_0x23b2,_0x4e059a=_0x3a67d4();while(!![]){try{const _0x3c0347=-parseInt(_0xb39e98(0x197))/0x1*(-parseInt(_0xb39e98(0x1ad))/0x2)+parseInt(_0xb39e98(0x196))/0x3+-parseInt(_0xb39e98(0x19b))/0x4+parseInt(_0xb39e98(0x1a6))/0x5*(-parseInt(_0xb39e98(0x1a7))/0x6)+-parseInt(_0xb39e98(0x190))/0x7+-parseInt(_0xb39e98(0x1b0))/0x8*(parseInt(_0xb39e98(0x18c))/0x9)+-parseInt(_0xb39e98(0x18a))/0xa*(-parseInt(_0xb39e98(0x1af))/0xb);if(_0x3c0347===_0x99269d)break;else _0x4e059a['push'](_0x4e059a['shift']());}catch(_0x1c38b1){_0x4e059a['push'](_0x4e059a['shift']());}}}(_0x48b6,0xaa1c5));import{readdir}from'fs/promises';function _0x48b6(){const _0x273eb5=['6070OiXRwp','2838TtkIze','screenshot','relativePath','sort','OxRhE','push','392286LLHdEC','##\x20Screenshots\x20(','10277795lpTkeI','991216SuHMdz','**Status:**\x20','10VmUqrH','ISSUES\x20FOUND','9hQwEhg','charAt','replace','####\x20','4486629TZnVBX','PASSED','filename','###\x20Summary','severity','muaKq','3283785ELsChv','1tVXkMI','includes','##\x20Result','gOUvW','756956mcqRen','join','MAJOR','split','**Session:**\x20`','length','toISOString','**Screenshot:**','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','###\x20','**Generated:**\x20'];_0x48b6=function(){return _0x273eb5;};return _0x48b6();}import{join}from'path';function _0x23b2(_0x3867e2,_0x3962f4){_0x3867e2=_0x3867e2-0x189;const _0x48b634=_0x48b6();let _0x23b2cc=_0x48b634[_0x3867e2];return _0x23b2cc;}import{existsSync}from'fs';export async function collectScreenshots(_0xbb049d){const _0xd88d3d=_0x23b2,_0x56c352={'OxRhE':function(_0xd0736,_0x45ed81){return _0xd0736(_0x45ed81);},'muaKq':function(_0x55a5ac,_0x3d42a4,_0x578b7c){return _0x55a5ac(_0x3d42a4,_0x578b7c);}},_0x5d6375=[],_0x20a3b8=[];if(!_0x56c352[_0xd88d3d(0x1ab)](existsSync,_0xbb049d))return{'screenshots':_0x5d6375,'paths':_0x20a3b8};const _0x54820b=await readdir(_0xbb049d),_0x5cdb45=_0x54820b['filter'](_0x368a83=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x368a83))[_0xd88d3d(0x1aa)]();for(const _0x42c814 of _0x5cdb45){const _0x4a5265=_0x56c352[_0xd88d3d(0x195)](join,_0xbb049d,_0x42c814);_0x5d6375['push']({'filename':_0x42c814,'path':_0x4a5265,'relativePath':'./'+_0x42c814}),_0x20a3b8['push'](_0x4a5265);}return{'screenshots':_0x5d6375,'paths':_0x20a3b8};}function getSeverityEmoji(_0x3797f5){const _0x442acd=_0x23b2,_0x4d3ed8={'umKpc':'BLOCKER','gOUvW':_0x442acd(0x19d)};switch(_0x3797f5){case _0x4d3ed8['umKpc']:return'🔴';case _0x4d3ed8[_0x442acd(0x19a)]:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x18bc48){const _0x40885d=_0x23b2,_0x18ac97=_0x18bc48[_0x40885d(0x18e)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x4516e8=_0x18ac97['replace'](/^\d+-/,'');return _0x4516e8[_0x40885d(0x19e)]('-')['map'](_0x3a891f=>_0x3a891f[_0x40885d(0x18d)](0x0)['toUpperCase']()+_0x3a891f['slice'](0x1))[_0x40885d(0x19c)]('\x20');}export function generateMarkdownReport(_0x3dabc2){const _0x4232e3=_0x23b2,_0x4bd546={'EMMrM':_0x4232e3(0x18b),'trvVW':function(_0xf547cb,_0x53fca5){return _0xf547cb>_0x53fca5;},'wfUxS':function(_0x21143f,_0xe5e2ac){return _0x21143f>_0xe5e2ac;}},{sessionId:_0x3f48a0,task:_0x2804b7,url:_0x59ae6c,success:_0x253f76,summary:_0x1b56a1,issues:_0x16a00a,screenshots:_0xe7fcbe,durationMs:_0x5aeca8,traceViewerUrl:_0x142ddb}=_0x3dabc2,_0xfef249=new Date()[_0x4232e3(0x1a1)](),_0x3937be=(_0x5aeca8/0x3e8)['toFixed'](0x1),_0x593850=[];_0x593850[_0x4232e3(0x1ac)]('#\x20Verification\x20Report'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x19f)+_0x3f48a0+'`'),_0x593850['push'](_0x4232e3(0x1a5)+_0xfef249),_0x593850['push']('**Duration:**\x20'+_0x3937be+'s'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850[_0x4232e3(0x1ac)]('##\x20Task'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push']('**URL:**\x20'+_0x59ae6c),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push']('>\x20'+_0x2804b7),_0x593850['push'](''),_0x593850['push'](_0x4232e3(0x199)),_0x593850[_0x4232e3(0x1ac)]('');const _0x4fe4c4=_0x253f76?'✅':'❌';_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x189)+_0x4fe4c4+'\x20'+(_0x253f76?_0x4232e3(0x191):_0x4bd546['EMMrM'])),_0x593850['push'](''),_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x193)),_0x593850[_0x4232e3(0x1ac)](''),_0x593850[_0x4232e3(0x1ac)](_0x1b56a1),_0x593850['push']('');if(_0x16a00a&&_0x4bd546['trvVW'](_0x16a00a[_0x4232e3(0x1a0)],0x0)){_0x593850[_0x4232e3(0x1ac)]('###\x20Issues\x20Found\x20('+_0x16a00a[_0x4232e3(0x1a0)]+')'),_0x593850[_0x4232e3(0x1ac)]('');for(const _0x8d2ea6 of _0x16a00a){const _0x58f58e=getSeverityEmoji(_0x8d2ea6[_0x4232e3(0x194)]);_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x18f)+_0x58f58e+'\x20['+_0x8d2ea6[_0x4232e3(0x194)]+']\x20Issue'),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push'](_0x8d2ea6['description']),_0x593850[_0x4232e3(0x1ac)]('');if(_0x8d2ea6[_0x4232e3(0x1a8)]){const _0x275a47=_0x8d2ea6['screenshot'],_0x20b76c=_0xe7fcbe['find'](_0xf7db69=>_0xf7db69['filename']===_0x275a47||_0xf7db69['filename'][_0x4232e3(0x198)](_0x275a47));_0x20b76c&&(_0x593850['push'](_0x4232e3(0x1a2)),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push']('!['+_0x275a47+']('+_0x20b76c[_0x4232e3(0x1a9)]+')'),_0x593850[_0x4232e3(0x1ac)](''));}}}if(_0x4bd546['wfUxS'](_0xe7fcbe[_0x4232e3(0x1a0)],0x0)){_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x1ae)+_0xe7fcbe['length']+')'),_0x593850[_0x4232e3(0x1ac)]('');for(const _0x571e6d of _0xe7fcbe){const _0x37d59f=formatScreenshotCaption(_0x571e6d[_0x4232e3(0x192)]);_0x593850[_0x4232e3(0x1ac)](_0x4232e3(0x1a4)+_0x37d59f),_0x593850[_0x4232e3(0x1ac)](''),_0x593850['push']('!['+_0x571e6d['filename']+']('+_0x571e6d[_0x4232e3(0x1a9)]+')'),_0x593850[_0x4232e3(0x1ac)]('');}}return _0x142ddb&&(_0x593850['push']('---'),_0x593850['push'](''),_0x593850['push'](_0x4232e3(0x1a3)+_0x142ddb+')'),_0x593850['push']('')),_0x593850[_0x4232e3(0x19c)]('\x0a');}
1
+ (function(_0x9078aa,_0x334142){const _0x10477e=_0x5558,_0x446e09=_0x9078aa();while(!![]){try{const _0x418ae0=parseInt(_0x10477e(0x157))/0x1+parseInt(_0x10477e(0x15c))/0x2*(-parseInt(_0x10477e(0x14b))/0x3)+parseInt(_0x10477e(0x14a))/0x4+parseInt(_0x10477e(0x158))/0x5+-parseInt(_0x10477e(0x149))/0x6+parseInt(_0x10477e(0x15b))/0x7+parseInt(_0x10477e(0x13d))/0x8*(-parseInt(_0x10477e(0x142))/0x9);if(_0x418ae0===_0x334142)break;else _0x446e09['push'](_0x446e09['shift']());}catch(_0x3ad299){_0x446e09['push'](_0x446e09['shift']());}}}(_0x13b9,0xee057));function _0x5558(_0x3da1df,_0x4c7b40){_0x3da1df=_0x3da1df-0x13b;const _0x13b98f=_0x13b9();let _0x55581c=_0x13b98f[_0x3da1df];return _0x55581c;}import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x384347){const _0x222db7=_0x5558,_0x3a0791={'ddKbe':function(_0x4abdf1,_0xbca83e){return _0x4abdf1(_0xbca83e);},'UsVIq':function(_0xdd1d98,_0x33bc5e,_0x1f8e21){return _0xdd1d98(_0x33bc5e,_0x1f8e21);}},_0x1e53d6=[],_0x3f9766=[];if(!_0x3a0791[_0x222db7(0x152)](existsSync,_0x384347))return{'screenshots':_0x1e53d6,'paths':_0x3f9766};const _0x5694ab=await _0x3a0791[_0x222db7(0x152)](readdir,_0x384347),_0x50f19b=_0x5694ab['filter'](_0x286aed=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x286aed))[_0x222db7(0x15a)]();for(const _0x52cdf1 of _0x50f19b){const _0x5454ad=_0x3a0791[_0x222db7(0x140)](join,_0x384347,_0x52cdf1);_0x1e53d6[_0x222db7(0x154)]({'filename':_0x52cdf1,'path':_0x5454ad,'relativePath':'./'+_0x52cdf1}),_0x3f9766[_0x222db7(0x154)](_0x5454ad);}return{'screenshots':_0x1e53d6,'paths':_0x3f9766};}function getSeverityEmoji(_0x57933d){const _0xe878e3=_0x5558,_0x366d25={'WPZFK':_0xe878e3(0x143),'DNQAb':_0xe878e3(0x150)};switch(_0x57933d){case _0x366d25['WPZFK']:return'🔴';case _0x366d25[_0xe878e3(0x13b)]:return'🟠';default:return'⚪';}}function _0x13b9(){const _0x2a926d=['42910bcGrPd','slice','DNQAb','relativePath','728dsubOq','map','replace','UsVIq','filename','60381UaBpQF','BLOCKER','split','toUpperCase','toISOString','PASSED','length','8378148HihVee','2345920GAmPgH','201lZFGvs','**URL:**\x20','QsqGi','includes','description','MAJOR','###\x20Issues\x20Found\x20(','ddKbe','**Status:**\x20','push','**Duration:**\x20','screenshot','1753509cFroyn','1971255xIdKmx','join','sort','11795399lGywSN'];_0x13b9=function(){return _0x2a926d;};return _0x13b9();}function formatScreenshotCaption(_0x5eeafe){const _0x1f2a23=_0x5558,_0xbc4101=_0x5eeafe[_0x1f2a23(0x13f)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x17ae80=_0xbc4101[_0x1f2a23(0x13f)](/^\d+-/,'');return _0x17ae80[_0x1f2a23(0x144)]('-')[_0x1f2a23(0x13e)](_0x336f2d=>_0x336f2d['charAt'](0x0)[_0x1f2a23(0x145)]()+_0x336f2d[_0x1f2a23(0x15d)](0x1))[_0x1f2a23(0x159)]('\x20');}export function generateMarkdownReport(_0xe12978){const _0x51d7f7=_0x5558,_0x28988c={'QsqGi':function(_0x468075,_0x4aa3bc){return _0x468075>_0x4aa3bc;}},{sessionId:_0x2ab399,task:_0x1d5833,url:_0x21064b,success:_0x3a9c4b,summary:_0x532f1a,issues:_0x5d8cfb,screenshots:_0x1325fe,durationMs:_0x10b488,traceViewerUrl:_0x26b5bc}=_0xe12978,_0x36cf97=new Date()[_0x51d7f7(0x146)](),_0x4e8d13=(_0x10b488/0x3e8)['toFixed'](0x1),_0x388704=[];_0x388704['push']('#\x20Verification\x20Report'),_0x388704['push'](''),_0x388704['push']('**Session:**\x20`'+_0x2ab399+'`'),_0x388704[_0x51d7f7(0x154)]('**Generated:**\x20'+_0x36cf97),_0x388704[_0x51d7f7(0x154)](_0x51d7f7(0x155)+_0x4e8d13+'s'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)]('##\x20Task'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)](_0x51d7f7(0x14c)+_0x21064b),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('>\x20'+_0x1d5833),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('##\x20Result'),_0x388704[_0x51d7f7(0x154)]('');const _0x29b841=_0x3a9c4b?'✅':'❌';_0x388704['push'](_0x51d7f7(0x153)+_0x29b841+'\x20'+(_0x3a9c4b?_0x51d7f7(0x147):'ISSUES\x20FOUND')),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('###\x20Summary'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)](_0x532f1a),_0x388704[_0x51d7f7(0x154)]('');if(_0x5d8cfb&&_0x5d8cfb['length']>0x0){_0x388704['push'](_0x51d7f7(0x151)+_0x5d8cfb[_0x51d7f7(0x148)]+')'),_0x388704['push']('');for(const _0x43fbc4 of _0x5d8cfb){const _0x52d025=getSeverityEmoji(_0x43fbc4['severity']);_0x388704['push']('####\x20'+_0x52d025+'\x20['+_0x43fbc4['severity']+']\x20Issue'),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push'](_0x43fbc4[_0x51d7f7(0x14f)]),_0x388704[_0x51d7f7(0x154)]('');if(_0x43fbc4[_0x51d7f7(0x156)]){const _0x4d7e21=_0x43fbc4['screenshot'],_0x4770f3=_0x1325fe['find'](_0x46ed47=>_0x46ed47[_0x51d7f7(0x141)]===_0x4d7e21||_0x46ed47['filename'][_0x51d7f7(0x14e)](_0x4d7e21));_0x4770f3&&(_0x388704[_0x51d7f7(0x154)]('**Screenshot:**'),_0x388704[_0x51d7f7(0x154)](''),_0x388704[_0x51d7f7(0x154)]('!['+_0x4d7e21+']('+_0x4770f3[_0x51d7f7(0x13c)]+')'),_0x388704['push'](''));}}}if(_0x28988c[_0x51d7f7(0x14d)](_0x1325fe['length'],0x0)){_0x388704[_0x51d7f7(0x154)]('##\x20Screenshots\x20('+_0x1325fe['length']+')'),_0x388704[_0x51d7f7(0x154)]('');for(const _0x567b4b of _0x1325fe){const _0x15f907=formatScreenshotCaption(_0x567b4b[_0x51d7f7(0x141)]);_0x388704[_0x51d7f7(0x154)]('###\x20'+_0x15f907),_0x388704['push'](''),_0x388704['push']('!['+_0x567b4b[_0x51d7f7(0x141)]+']('+_0x567b4b['relativePath']+')'),_0x388704[_0x51d7f7(0x154)]('');}}return _0x26b5bc&&(_0x388704['push']('---'),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x26b5bc+')'),_0x388704['push']('')),_0x388704['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x51da51,_0x2ceabd){const _0x3794d5=_0x4b33,_0x590da9=_0x51da51();while(!![]){try{const _0x5efa5d=-parseInt(_0x3794d5(0x1d0))/0x1+-parseInt(_0x3794d5(0x1c8))/0x2*(-parseInt(_0x3794d5(0x1d4))/0x3)+parseInt(_0x3794d5(0x1d5))/0x4*(parseInt(_0x3794d5(0x1c9))/0x5)+parseInt(_0x3794d5(0x1d1))/0x6*(parseInt(_0x3794d5(0x1ce))/0x7)+parseInt(_0x3794d5(0x1d6))/0x8+-parseInt(_0x3794d5(0x1cf))/0x9+parseInt(_0x3794d5(0x1c7))/0xa;if(_0x5efa5d===_0x2ceabd)break;else _0x590da9['push'](_0x590da9['shift']());}catch(_0x4ebe6e){_0x590da9['push'](_0x590da9['shift']());}}}(_0x5649,0x5e822));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x3d02ab,_0x41ff9e){const _0x2f3364=_0x4b33,_0x185f34={'JACXf':function(_0x19dee1,_0x5a9f8b){return _0x19dee1<=_0x5a9f8b;},'RUuUq':function(_0x3ca0ae){return _0x3ca0ae();},'IUmpg':function(_0xeb28d6,_0x271e55){return _0xeb28d6(_0x271e55);},'BglEM':function(_0x573205,_0x1d636a){return _0x573205<_0x1d636a;},'ARLac':function(_0x25139d,_0xbecebb){return _0x25139d*_0xbecebb;}},_0x43d9b9=_0x41ff9e?.[_0x2f3364(0x1d2)]??DEFAULT_MAX_RETRIES,_0x48fd69=_0x41ff9e?.[_0x2f3364(0x1cc)]??DEFAULT_BASE_DELAY_MS;let _0x55e026;for(let _0x5adccd=0x0;_0x185f34[_0x2f3364(0x1cd)](_0x5adccd,_0x43d9b9);_0x5adccd++){try{return await _0x185f34['RUuUq'](_0x3d02ab);}catch(_0x3438fd){_0x55e026=_0x3438fd instanceof Error?_0x3438fd:new Error(_0x185f34[_0x2f3364(0x1cb)](String,_0x3438fd));if(_0x185f34[_0x2f3364(0x1ca)](_0x5adccd,_0x43d9b9)){const _0x44e512=_0x185f34['ARLac'](_0x48fd69,Math['pow'](0x2,_0x5adccd));_0x41ff9e?.[_0x2f3364(0x1d3)]&&console['error'](_0x41ff9e[_0x2f3364(0x1d3)]+'\x20failed\x20(attempt\x20'+(_0x5adccd+0x1)+'/'+(_0x43d9b9+0x1)+'),\x20retrying\x20in\x20'+_0x44e512+'ms...'),await new Promise(_0x5c1731=>setTimeout(_0x5c1731,_0x44e512));}}}throw _0x55e026;}function _0x4b33(_0x370ee3,_0x52d171){_0x370ee3=_0x370ee3-0x1c7;const _0x56493c=_0x5649();let _0x4b3350=_0x56493c[_0x370ee3];return _0x4b3350;}function _0x5649(){const _0x1e540b=['421461WBcshR','156fOYauU','maxRetries','label','345NqAgZs','728dPaYBY','223560rqdMXP','3868510JWgmCS','2038yLsdLl','12010ObrcGV','BglEM','IUmpg','baseDelayMs','JACXf','8813uhDSDw','1739808iAmQYy'];_0x5649=function(){return _0x1e540b;};return _0x5649();}
1
+ function _0x2321(){const _0x381000=['2750839XdKvDt','label','1330102eKyEvc','2219253KUMYhx','4qtUCHR','54750LmGLXv','954088APlnUA','baseDelayMs','),\x20retrying\x20in\x20','maxRetries','error','3469330abdhpv','27LWvehd','2617374zXTlbu'];_0x2321=function(){return _0x381000;};return _0x2321();}(function(_0x592fae,_0x52cadb){const _0x318e24=_0x27f2,_0x4d2fac=_0x592fae();while(!![]){try{const _0x4ddf63=-parseInt(_0x318e24(0x14c))/0x1+-parseInt(_0x318e24(0x149))/0x2+parseInt(_0x318e24(0x14a))/0x3+parseInt(_0x318e24(0x14b))/0x4*(parseInt(_0x318e24(0x144))/0x5)+parseInt(_0x318e24(0x146))/0x6+-parseInt(_0x318e24(0x147))/0x7+-parseInt(_0x318e24(0x14d))/0x8*(parseInt(_0x318e24(0x145))/0x9);if(_0x4ddf63===_0x52cadb)break;else _0x4d2fac['push'](_0x4d2fac['shift']());}catch(_0x432f8a){_0x4d2fac['push'](_0x4d2fac['shift']());}}}(_0x2321,0x617b5));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x27f2(_0x8d45a2,_0x9f3299){_0x8d45a2=_0x8d45a2-0x144;const _0x23214a=_0x2321();let _0x27f21d=_0x23214a[_0x8d45a2];return _0x27f21d;}export async function withRetry(_0x5ed22e,_0x4f5036){const _0x10732d=_0x27f2,_0x4f54c9={'rWkcR':function(_0x412f04,_0x2b6888){return _0x412f04(_0x2b6888);},'jxkLx':function(_0x290ea4,_0x39a9fa){return _0x290ea4+_0x39a9fa;}},_0x5a1b8b=_0x4f5036?.[_0x10732d(0x150)]??DEFAULT_MAX_RETRIES,_0x3f7813=_0x4f5036?.[_0x10732d(0x14e)]??DEFAULT_BASE_DELAY_MS;let _0x36adab;for(let _0x4ddbd7=0x0;_0x4ddbd7<=_0x5a1b8b;_0x4ddbd7++){try{return await _0x5ed22e();}catch(_0x3253e7){_0x36adab=_0x3253e7 instanceof Error?_0x3253e7:new Error(_0x4f54c9['rWkcR'](String,_0x3253e7));if(_0x4ddbd7<_0x5a1b8b){const _0x56bd17=_0x3f7813*Math['pow'](0x2,_0x4ddbd7);_0x4f5036?.[_0x10732d(0x148)]&&console[_0x10732d(0x151)](_0x4f5036['label']+'\x20failed\x20(attempt\x20'+(_0x4ddbd7+0x1)+'/'+_0x4f54c9['jxkLx'](_0x5a1b8b,0x1)+_0x10732d(0x14f)+_0x56bd17+'ms...'),await new Promise(_0x5696eb=>setTimeout(_0x5696eb,_0x56bd17));}}}throw _0x36adab;}
@@ -1 +1 @@
1
- const _0x2a2946=_0x54af;(function(_0x484104,_0x4a195c){const _0x3e1a0f=_0x54af,_0x20bbb6=_0x484104();while(!![]){try{const _0x8ed74d=parseInt(_0x3e1a0f(0x1de))/0x1*(-parseInt(_0x3e1a0f(0x1d0))/0x2)+-parseInt(_0x3e1a0f(0x1d8))/0x3*(-parseInt(_0x3e1a0f(0x1f4))/0x4)+parseInt(_0x3e1a0f(0x205))/0x5*(parseInt(_0x3e1a0f(0x1f1))/0x6)+-parseInt(_0x3e1a0f(0x1ee))/0x7+-parseInt(_0x3e1a0f(0x1fe))/0x8*(parseInt(_0x3e1a0f(0x1e8))/0x9)+parseInt(_0x3e1a0f(0x1f3))/0xa*(parseInt(_0x3e1a0f(0x1e9))/0xb)+parseInt(_0x3e1a0f(0x20c))/0xc*(parseInt(_0x3e1a0f(0x1ff))/0xd);if(_0x8ed74d===_0x4a195c)break;else _0x20bbb6['push'](_0x20bbb6['shift']());}catch(_0x5544e2){_0x20bbb6['push'](_0x20bbb6['shift']());}}}(_0x41dc,0x53bd5));import*as _0x1dac09 from'fs';import*as _0xaaea15 from'path';import*as _0x13ab5e from'os';import{execSync}from'child_process';const CACHE_FILE=_0xaaea15[_0x2a2946(0x1d7)](_0x13ab5e[_0x2a2946(0x1fc)](),_0x2a2946(0x20b),_0x2a2946(0x1f8));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0xc583f9=_0x2a2946,_0x4fb03f={'GJmED':'utf-8','dZjVg':function(_0x948e45){return _0x948e45();}};try{if(_0x1dac09[_0xc583f9(0x1cf)](CACHE_FILE)){const _0x3a1ebc=JSON[_0xc583f9(0x1ce)](_0x1dac09['readFileSync'](CACHE_FILE,_0x4fb03f[_0xc583f9(0x1fa)]));return{'version':0x3,'sessions':_0x3a1ebc[_0xc583f9(0x201)]||{},'branches':_0x3a1ebc['branches']||{},'lastEnabledSessionClearedAt':_0x3a1ebc['lastEnabledSessionClearedAt']};}}catch{}return _0x4fb03f[_0xc583f9(0x1fd)](createEmptyCache);}function saveCache(_0x4dfad9){const _0xba9641=_0x2a2946;try{const _0x3d5b40=_0xaaea15[_0xba9641(0x1f6)](CACHE_FILE);!_0x1dac09['existsSync'](_0x3d5b40)&&_0x1dac09[_0xba9641(0x1e7)](_0x3d5b40,{'recursive':!![]}),_0x1dac09[_0xba9641(0x1df)](CACHE_FILE,JSON[_0xba9641(0x1d6)](_0x4dfad9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x50f25e=_0x2a2946,_0xc011d={'HMgKs':function(_0x2c137c,_0x1d7103,_0x35955f){return _0x2c137c(_0x1d7103,_0x35955f);},'TqWKX':'utf-8','noHgG':_0x50f25e(0x1ef),'UUvfP':_0x50f25e(0x1e0)};try{const _0x57e7ac=_0xc011d['HMgKs'](execSync,_0x50f25e(0x1cd),{'encoding':_0xc011d['TqWKX'],'stdio':[_0xc011d['noHgG'],_0x50f25e(0x1ef),'pipe']})['trim']();if(!_0x57e7ac||_0x57e7ac===_0xc011d['UUvfP'])return null;return _0x57e7ac;}catch{return null;}}export function enableBranch(_0x2bdea6){const _0x455bcb=loadCache();_0x455bcb['branches'][_0x2bdea6]=!![],saveCache(_0x455bcb);}function _0x54af(_0x4ab61b,_0x55f602){_0x4ab61b=_0x4ab61b-0x1cd;const _0x41dc4e=_0x41dc();let _0x54af08=_0x41dc4e[_0x4ab61b];return _0x54af08;}export function disableBranch(_0x486c07){const _0x3542d7=_0x2a2946,_0x52c942=loadCache();delete _0x52c942[_0x3542d7(0x1f9)][_0x486c07],saveCache(_0x52c942);}export function isBranchEnabled(_0xae747e){const _0x682f6c=_0x2a2946,_0x46f659={'ibrPV':function(_0x259d75){return _0x259d75();}},_0x48eed8=_0x46f659['ibrPV'](loadCache);return _0x48eed8[_0x682f6c(0x1f9)][_0xae747e]===!![];}function getOrCreateSession(_0x3f5089,_0x2c4e8a){const _0x12aeb7=_0x2a2946;return!_0x3f5089[_0x12aeb7(0x201)][_0x2c4e8a]&&(_0x3f5089[_0x12aeb7(0x201)][_0x2c4e8a]={}),_0x3f5089['sessions'][_0x2c4e8a];}export function enableSession(_0x27988a){const _0x7ef7c4=_0x2a2946,_0x112da2={'fUfWV':function(_0x3b22dd,_0x346633,_0x51a42e){return _0x3b22dd(_0x346633,_0x51a42e);},'RYBxe':function(_0x2a70c1){return _0x2a70c1();},'WOhFq':function(_0x1be2eb,_0x2b1058){return _0x1be2eb!==_0x2b1058;},'KoZHT':_0x7ef7c4(0x1eb),'tSxeC':function(_0x25c6e5,_0x3a81f2){return _0x25c6e5(_0x3a81f2);}},_0x2dfd02=loadCache(),_0x4a777a=_0x112da2['fUfWV'](getOrCreateSession,_0x2dfd02,_0x27988a);_0x4a777a[_0x7ef7c4(0x202)]=!![];const _0x3fdb5f=_0x112da2['RYBxe'](getCurrentBranch);_0x3fdb5f&&_0x112da2[_0x7ef7c4(0x200)](_0x3fdb5f,_0x7ef7c4(0x1d9))&&_0x3fdb5f!==_0x112da2['KoZHT']&&(_0x2dfd02['branches'][_0x3fdb5f]=!![],_0x4a777a['currentBranch']=_0x3fdb5f),_0x112da2[_0x7ef7c4(0x1f0)](saveCache,_0x2dfd02);}export function isSessionEnabled(_0x26678e){const _0xd4353a=_0x2a2946,_0x28e4e4={'tEuHt':function(_0x3f59ec){return _0x3f59ec();},'npuJp':'master','IvioY':function(_0xd9d175,_0x375200){return _0xd9d175===_0x375200;},'qpWmi':function(_0x5edd32,_0x16ac1c){return _0x5edd32||_0x16ac1c;}},_0x1d2fc4=_0x28e4e4['tEuHt'](loadCache),_0x93241a=getCurrentBranch();if(!_0x93241a||_0x93241a===_0xd4353a(0x1d9)||_0x93241a===_0x28e4e4['npuJp'])return _0x28e4e4['IvioY'](_0x1d2fc4['sessions'][_0x26678e]?.['enabled'],!![]);const _0x188839=_0x1d2fc4[_0xd4353a(0x1f9)][_0x93241a]===!![],_0x4d1208=_0x1d2fc4[_0xd4353a(0x201)][_0x26678e]?.[_0xd4353a(0x202)]===!![];return _0x28e4e4[_0xd4353a(0x1e1)](_0x188839,_0x4d1208);}export function disableSession(_0x11e3ee){const _0xa531d4=_0x2a2946,_0x1e99d8={'yIzaq':function(_0x59c068){return _0x59c068();},'SpQkT':function(_0x3ea71c,_0xeff12c,_0x3a6a88){return _0x3ea71c(_0xeff12c,_0x3a6a88);}},_0xa940e9=_0x1e99d8[_0xa531d4(0x207)](loadCache),_0x4e9343=_0x1e99d8[_0xa531d4(0x1d4)](getOrCreateSession,_0xa940e9,_0x11e3ee);_0x4e9343['enabled']=![],saveCache(_0xa940e9);}export function updateBranchTracking(_0x40e0ac){const _0x452340=_0x2a2946,_0x288e02={'QJODG':function(_0x208314){return _0x208314();},'cLdjO':function(_0x1153b3,_0xe163b6){return _0x1153b3===_0xe163b6;},'vsFNx':_0x452340(0x1d9),'GvnkA':_0x452340(0x1eb),'ZBiBf':function(_0x3b8a0b,_0x177e50){return _0x3b8a0b(_0x177e50);}},_0xa49a9a=loadCache(),_0x3d4ed8=_0xa49a9a['sessions'][_0x40e0ac];if(!_0x3d4ed8?.[_0x452340(0x202)])return;const _0x1a6856=_0x288e02['QJODG'](getCurrentBranch);if(!_0x1a6856||_0x288e02['cLdjO'](_0x1a6856,_0x288e02['vsFNx'])||_0x1a6856===_0x288e02['GvnkA'])return;_0x3d4ed8[_0x452340(0x1db)]!==_0x1a6856&&(_0xa49a9a[_0x452340(0x1f9)][_0x1a6856]=!![],_0x3d4ed8[_0x452340(0x1db)]=_0x1a6856,_0x288e02[_0x452340(0x204)](saveCache,_0xa49a9a));}export function initBranchTracking(_0x16f6a3){const _0x8c6391=_0x2a2946,_0x21bdfe={'Fwhvt':function(_0x579ca3){return _0x579ca3();},'eGkNa':function(_0x1e8031,_0x5d4946){return _0x1e8031===_0x5d4946;},'ziziE':function(_0x2e15b0,_0x175477,_0x564dca){return _0x2e15b0(_0x175477,_0x564dca);},'ydCzF':function(_0xd7199f,_0x48691c){return _0xd7199f(_0x48691c);}},_0xa31fef=_0x21bdfe['Fwhvt'](loadCache),_0x175faf=_0x21bdfe['Fwhvt'](getCurrentBranch);if(!_0x175faf||_0x21bdfe['eGkNa'](_0x175faf,'main')||_0x175faf==='master')return;if(_0xa31fef['branches'][_0x175faf]===!![]){const _0x3e6e99=_0x21bdfe['ziziE'](getOrCreateSession,_0xa31fef,_0x16f6a3);_0x3e6e99['enabled']=!![],_0x3e6e99['currentBranch']=_0x175faf,_0x21bdfe[_0x8c6391(0x1f7)](saveCache,_0xa31fef);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x208de6){const _0x1ed989=_0x2a2946,_0x11546e={'mtVgW':function(_0x491e75){return _0x491e75();},'CjItJ':function(_0x3ec6da,_0x44564a){return _0x3ec6da(_0x44564a);}},_0x291d05=_0x11546e['mtVgW'](loadCache),_0x1e275d=_0x291d05[_0x1ed989(0x201)][_0x208de6];_0x1e275d?.[_0x1ed989(0x202)]&&(_0x291d05['lastEnabledSessionClearedAt']=Date[_0x1ed989(0x208)](),_0x11546e[_0x1ed989(0x203)](saveCache,_0x291d05));}export function shouldAutoEnableAfterClear(_0x342fc2){const _0x46bfc6=_0x2a2946,_0x29879f={'BmxDr':function(_0x1f8275,_0x3af051){return _0x1f8275!==_0x3af051;},'fCrOm':function(_0x3cfdb7){return _0x3cfdb7();}};if(_0x29879f['BmxDr'](_0x342fc2,'clear'))return![];const _0x289740=_0x29879f[_0x46bfc6(0x1ec)](loadCache),_0x59732c=_0x289740[_0x46bfc6(0x1f5)];if(!_0x59732c)return![];const _0x1b3ffb=Date[_0x46bfc6(0x208)]()-_0x59732c;return _0x1b3ffb<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x5966ed){const _0x42b88e=_0x2a2946,_0x3a962f={'WsvId':function(_0x37f170){return _0x37f170();},'aQzmK':function(_0x541f42,_0x586855,_0x594188){return _0x541f42(_0x586855,_0x594188);},'fBRNR':function(_0x5c3a89,_0x30eac7){return _0x5c3a89!==_0x30eac7;},'mVFCo':'master','WfzBS':function(_0x137123,_0x2a27b6){return _0x137123(_0x2a27b6);}},_0x1b702b=_0x3a962f['WsvId'](loadCache),_0x46f7a5=_0x3a962f[_0x42b88e(0x1fb)](getOrCreateSession,_0x1b702b,_0x5966ed);_0x46f7a5['enabled']=!![];const _0x4413ba=_0x3a962f[_0x42b88e(0x1e2)](getCurrentBranch);_0x4413ba&&_0x3a962f[_0x42b88e(0x1d2)](_0x4413ba,_0x42b88e(0x1d9))&&_0x3a962f['fBRNR'](_0x4413ba,_0x3a962f['mVFCo'])&&(_0x46f7a5['currentBranch']=_0x4413ba),delete _0x1b702b[_0x42b88e(0x1f5)],_0x3a962f[_0x42b88e(0x1dc)](saveCache,_0x1b702b);}export function registerSession(_0x5a7d11,_0x998e66){const _0x22e622=_0x2a2946,_0x5a7b84={'gxiPn':function(_0x4bda24){return _0x4bda24();},'YHfzx':function(_0x318368,_0x5dd903,_0x2c6844){return _0x318368(_0x5dd903,_0x2c6844);},'izkvu':function(_0x20f4b5,_0x35520c){return _0x20f4b5(_0x35520c);}},_0x385f7b=_0x5a7b84[_0x22e622(0x1ed)](loadCache),_0x4846da=_0x5a7b84[_0x22e622(0x1ea)](getOrCreateSession,_0x385f7b,_0x5a7d11);_0x4846da[_0x22e622(0x1e5)]=_0x998e66,_0x4846da[_0x22e622(0x1e4)]=new Date()[_0x22e622(0x1dd)](),_0x5a7b84[_0x22e622(0x209)](saveCache,_0x385f7b);}export function getSessionEntry(_0x259765){const _0x191e7a=_0x2a2946,_0x1bed96={'EbjNd':function(_0x16e246){return _0x16e246();}},_0x2bdf5c=_0x1bed96[_0x191e7a(0x1da)](loadCache),_0x3e8947=_0x2bdf5c['sessions'][_0x259765];if(_0x3e8947?.[_0x191e7a(0x1e5)]&&_0x3e8947?.['registeredAt'])return{'featureId':_0x3e8947['featureId'],'registeredAt':_0x3e8947[_0x191e7a(0x1e4)]};return null;}export function unregisterSession(_0x43ac9f){const _0x3939e7=_0x2a2946,_0x153ba1={'LYFcY':function(_0x2a87c8){return _0x2a87c8();},'FGdTt':function(_0x5240e1,_0x489a2d){return _0x5240e1(_0x489a2d);}},_0x42e953=_0x153ba1['LYFcY'](loadCache),_0x23f2fa=_0x42e953[_0x3939e7(0x201)][_0x43ac9f];_0x23f2fa&&(delete _0x23f2fa[_0x3939e7(0x1e5)],delete _0x23f2fa[_0x3939e7(0x1e4)],_0x153ba1[_0x3939e7(0x20a)](saveCache,_0x42e953));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xa22e8a){const _0x32e831=_0x2a2946,_0x229a1b={'FaFIi':function(_0x55f351){return _0x55f351();},'zsrOe':function(_0x553814,_0x2b0235){return _0x553814>=_0x2b0235;},'wzYBx':function(_0x9c0a22,_0x568e3d){return _0x9c0a22(_0x568e3d);}},_0x5a6ffd=_0x229a1b['FaFIi'](loadCache),_0x2fbd90=getOrCreateSession(_0x5a6ffd,_0xa22e8a),_0x9c24e2=_0x2fbd90[_0x32e831(0x206)]||0x0,_0x2cc3f9=Date[_0x32e831(0x208)]();if(_0x229a1b['zsrOe'](_0x2cc3f9-_0x9c24e2,PLAN_REMINDER_INTERVAL_MS))return _0x2fbd90[_0x32e831(0x206)]=_0x2cc3f9,_0x229a1b['wzYBx'](saveCache,_0x5a6ffd),!![];return![];}export function shouldShowStopReminder(_0x56f21a){const _0x52e867=_0x2a2946,_0x164b15={'SgZHv':function(_0x11b20f,_0x38dd1f,_0x539730){return _0x11b20f(_0x38dd1f,_0x539730);},'TjVgx':function(_0x381088,_0x1002b8){return _0x381088>=_0x1002b8;},'DzYwv':function(_0x5047bf,_0x443fa4){return _0x5047bf-_0x443fa4;}},_0x4b5235=loadCache(),_0x1db7ae=_0x164b15['SgZHv'](getOrCreateSession,_0x4b5235,_0x56f21a),_0x4a9153=_0x1db7ae['lastStopReminderAt']||0x0,_0x23ade7=Date['now']();if(_0x164b15[_0x52e867(0x1e6)](_0x164b15['DzYwv'](_0x23ade7,_0x4a9153),STOP_REMINDER_INTERVAL_MS))return _0x1db7ae['lastStopReminderAt']=_0x23ade7,saveCache(_0x4b5235),!![];return![];}export function hasSessionBeenPrompted(_0x2024b9){const _0x47a21d=_0x2a2946,_0x3cde07={'KDAwF':function(_0x4be61f){return _0x4be61f();},'tVWUw':function(_0x1df881,_0x171537){return _0x1df881===_0x171537;}},_0x531c32=_0x3cde07[_0x47a21d(0x1d3)](loadCache);return _0x3cde07[_0x47a21d(0x1f2)](_0x531c32['sessions'][_0x2024b9]?.['prompted'],!![]);}export function markSessionPrompted(_0x2dfba3){const _0x1ce393=_0x2a2946,_0x32e5f9={'kJZwf':function(_0x2061e9,_0x3a832b,_0x268bbd){return _0x2061e9(_0x3a832b,_0x268bbd);},'OZVsD':function(_0x28391c,_0x15899a){return _0x28391c(_0x15899a);}},_0x1ff8e9=loadCache(),_0x760a1a=_0x32e5f9[_0x1ce393(0x1d5)](getOrCreateSession,_0x1ff8e9,_0x2dfba3);_0x760a1a[_0x1ce393(0x1d1)]=!![],_0x32e5f9[_0x1ce393(0x1e3)](saveCache,_0x1ff8e9);}export function getCacheFile(){return CACHE_FILE;}function _0x41dc(){const _0x2ac147=['FGdTt','.claude','54564GnCpaG','git\x20rev-parse\x20--abbrev-ref\x20HEAD','parse','existsSync','6NFuAEL','prompted','fBRNR','KDAwF','SpQkT','kJZwf','stringify','join','3vMWKSt','main','EbjNd','currentBranch','WfzBS','toISOString','3693VTMPrM','writeFileSync','HEAD','qpWmi','WsvId','OZVsD','registeredAt','featureId','TjVgx','mkdirSync','20799pGWFWl','68530CkUcyI','YHfzx','master','fCrOm','gxiPn','1160355lTHPVd','pipe','tSxeC','2551470GqVbPU','tVWUw','200KIMLze','187604VklKjk','lastEnabledSessionClearedAt','dirname','ydCzF','.ranger_cache.json','branches','GJmED','aQzmK','homedir','dZjVg','1856fSPOLs','1313NiiCSI','WOhFq','sessions','enabled','CjItJ','ZBiBf','5ZyJuSo','lastPlanReminderAt','yIzaq','now','izkvu'];_0x41dc=function(){return _0x2ac147;};return _0x41dc();}
1
+ const _0x5a9f62=_0x5e4d;(function(_0x386baa,_0x4825e8){const _0x4f6973=_0x5e4d,_0x19f575=_0x386baa();while(!![]){try{const _0x200461=-parseInt(_0x4f6973(0x1b5))/0x1*(-parseInt(_0x4f6973(0x1c2))/0x2)+-parseInt(_0x4f6973(0x1c4))/0x3*(-parseInt(_0x4f6973(0x1c6))/0x4)+-parseInt(_0x4f6973(0x1bd))/0x5*(-parseInt(_0x4f6973(0x1b7))/0x6)+-parseInt(_0x4f6973(0x19e))/0x7*(parseInt(_0x4f6973(0x1b4))/0x8)+parseInt(_0x4f6973(0x1a1))/0x9+parseInt(_0x4f6973(0x1cc))/0xa+-parseInt(_0x4f6973(0x1a0))/0xb;if(_0x200461===_0x4825e8)break;else _0x19f575['push'](_0x19f575['shift']());}catch(_0x58df77){_0x19f575['push'](_0x19f575['shift']());}}}(_0x593a,0x9b36d));import*as _0x4a9c57 from'fs';import*as _0x291f35 from'path';import*as _0x12a9e8 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x291f35['join'](_0x12a9e8['homedir'](),_0x5a9f62(0x19f),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x5e4d(_0x5f306a,_0xee11bc){_0x5f306a=_0x5f306a-0x199;const _0x593ad5=_0x593a();let _0x5e4db3=_0x593ad5[_0x5f306a];return _0x5e4db3;}function loadCache(){const _0x33a71c=_0x5a9f62,_0x162d7d={'SxbJH':'utf-8','NakUA':function(_0x4bb395){return _0x4bb395();}};try{if(_0x4a9c57['existsSync'](CACHE_FILE)){const _0xe65a88=JSON[_0x33a71c(0x199)](_0x4a9c57['readFileSync'](CACHE_FILE,_0x162d7d[_0x33a71c(0x1aa)]));return{'version':0x3,'sessions':_0xe65a88['sessions']||{},'branches':_0xe65a88[_0x33a71c(0x1a3)]||{},'lastEnabledSessionClearedAt':_0xe65a88[_0x33a71c(0x1ba)]};}}catch{}return _0x162d7d[_0x33a71c(0x1c0)](createEmptyCache);}function saveCache(_0x584d9f){const _0x442eec=_0x5a9f62;try{const _0x31b065=_0x291f35['dirname'](CACHE_FILE);!_0x4a9c57['existsSync'](_0x31b065)&&_0x4a9c57[_0x442eec(0x1be)](_0x31b065,{'recursive':!![]}),_0x4a9c57[_0x442eec(0x1a9)](CACHE_FILE,JSON['stringify'](_0x584d9f,null,0x2));}catch{}}export function getCurrentBranch(){const _0x11a1f0=_0x5a9f62,_0x501e4d={'NqyPX':'utf-8','qrPxd':'pipe','RQguf':function(_0x35c786,_0x365d6c){return _0x35c786===_0x365d6c;},'TeNfs':_0x11a1f0(0x1c8)};try{const _0x3c2cca=execSync(_0x11a1f0(0x1ad),{'encoding':_0x501e4d['NqyPX'],'stdio':[_0x501e4d[_0x11a1f0(0x1b1)],'pipe','pipe']})[_0x11a1f0(0x19b)]();if(!_0x3c2cca||_0x501e4d['RQguf'](_0x3c2cca,_0x501e4d[_0x11a1f0(0x1ca)]))return null;return _0x3c2cca;}catch{return null;}}export function enableBranch(_0x43b59c){const _0x1d9677={'LbNjb':function(_0x31e316){return _0x31e316();}},_0x1e46d0=_0x1d9677['LbNjb'](loadCache);_0x1e46d0['branches'][_0x43b59c]=!![],saveCache(_0x1e46d0);}export function disableBranch(_0x1f7437){const _0x23b59d=_0x5a9f62,_0x3a2ec7={'CcOAB':function(_0x42e666,_0x24991d){return _0x42e666(_0x24991d);}},_0x183b64=loadCache();delete _0x183b64[_0x23b59d(0x1a3)][_0x1f7437],_0x3a2ec7[_0x23b59d(0x1ce)](saveCache,_0x183b64);}export function isBranchEnabled(_0x12240c){const _0x16e9be=_0x5a9f62,_0x1975d2={'DoaLc':function(_0x35a0ca){return _0x35a0ca();},'tEvld':function(_0x30906a,_0x154a9f){return _0x30906a===_0x154a9f;}},_0x596ecf=_0x1975d2['DoaLc'](loadCache);return _0x1975d2[_0x16e9be(0x1a8)](_0x596ecf[_0x16e9be(0x1a3)][_0x12240c],!![]);}function getOrCreateSession(_0x13f5a3,_0x39aa60){const _0x198b0e=_0x5a9f62;return!_0x13f5a3['sessions'][_0x39aa60]&&(_0x13f5a3[_0x198b0e(0x1ae)][_0x39aa60]={}),_0x13f5a3['sessions'][_0x39aa60];}export function enableSession(_0x3a59ef){const _0x24ba07=_0x5a9f62,_0x87f457={'cnuZM':function(_0x289305){return _0x289305();},'jLHUi':'master','WgIFK':function(_0x2eccc4,_0x4ef6a){return _0x2eccc4(_0x4ef6a);}},_0x5e76d7=_0x87f457['cnuZM'](loadCache),_0x1c0858=getOrCreateSession(_0x5e76d7,_0x3a59ef);_0x1c0858['enabled']=!![];const _0x52523e=getCurrentBranch();_0x52523e&&_0x52523e!==_0x24ba07(0x1b2)&&_0x52523e!==_0x87f457['jLHUi']&&(_0x5e76d7['branches'][_0x52523e]=!![],_0x1c0858[_0x24ba07(0x1c9)]=_0x52523e),_0x87f457['WgIFK'](saveCache,_0x5e76d7);}export function isSessionEnabled(_0x5b37fc){const _0x49cb63=_0x5a9f62,_0x87adbe={'RIUBx':function(_0x187917){return _0x187917();},'koeqb':function(_0x2f4bb7,_0x38bcc9){return _0x2f4bb7===_0x38bcc9;},'kSUQJ':function(_0x483510,_0x4e32cd){return _0x483510||_0x4e32cd;}},_0x2ae5e8=_0x87adbe['RIUBx'](loadCache),_0x4c1a72=_0x87adbe[_0x49cb63(0x1c7)](getCurrentBranch);if(!_0x4c1a72||_0x4c1a72==='main'||_0x4c1a72==='master')return _0x87adbe['koeqb'](_0x2ae5e8['sessions'][_0x5b37fc]?.['enabled'],!![]);const _0x34b12f=_0x2ae5e8[_0x49cb63(0x1a3)][_0x4c1a72]===!![],_0x2e5d73=_0x2ae5e8[_0x49cb63(0x1ae)][_0x5b37fc]?.[_0x49cb63(0x1bb)]===!![];return _0x87adbe[_0x49cb63(0x1af)](_0x34b12f,_0x2e5d73);}export function disableSession(_0x152dce){const _0x31a126=_0x5a9f62,_0x4a1af4={'edFcw':function(_0x1ddd3b,_0x51deae){return _0x1ddd3b(_0x51deae);}},_0xdaf051=loadCache(),_0x3e3836=getOrCreateSession(_0xdaf051,_0x152dce);_0x3e3836['enabled']=![],_0x4a1af4[_0x31a126(0x1ac)](saveCache,_0xdaf051);}export function updateBranchTracking(_0x212e3f){const _0x1dc074=_0x5a9f62,_0x39ac90={'asCeg':'main','DJAid':function(_0x456f81,_0x4faf25){return _0x456f81===_0x4faf25;},'jfVHF':_0x1dc074(0x1c1),'EooDV':function(_0x52b0e7,_0x406d01){return _0x52b0e7!==_0x406d01;}},_0x50c8d0=loadCache(),_0x35a089=_0x50c8d0[_0x1dc074(0x1ae)][_0x212e3f];if(!_0x35a089?.['enabled'])return;const _0x476bd5=getCurrentBranch();if(!_0x476bd5||_0x476bd5===_0x39ac90['asCeg']||_0x39ac90[_0x1dc074(0x1b8)](_0x476bd5,_0x39ac90[_0x1dc074(0x1c3)]))return;_0x39ac90[_0x1dc074(0x1bf)](_0x35a089[_0x1dc074(0x1c9)],_0x476bd5)&&(_0x50c8d0[_0x1dc074(0x1a3)][_0x476bd5]=!![],_0x35a089['currentBranch']=_0x476bd5,saveCache(_0x50c8d0));}export function initBranchTracking(_0x460fd5){const _0x151a9c=_0x5a9f62,_0x49ad8e={'arxmK':function(_0x54434f){return _0x54434f();},'yjdnT':'master','FuVBI':function(_0x2f15a3,_0x2d57bb){return _0x2f15a3===_0x2d57bb;}},_0x544232=loadCache(),_0x4bc764=_0x49ad8e[_0x151a9c(0x1b0)](getCurrentBranch);if(!_0x4bc764||_0x4bc764==='main'||_0x4bc764===_0x49ad8e[_0x151a9c(0x1a7)])return;if(_0x49ad8e['FuVBI'](_0x544232[_0x151a9c(0x1a3)][_0x4bc764],!![])){const _0x516ba1=getOrCreateSession(_0x544232,_0x460fd5);_0x516ba1['enabled']=!![],_0x516ba1[_0x151a9c(0x1c9)]=_0x4bc764,saveCache(_0x544232);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2feea9){const _0x3080d2=_0x5a9f62,_0x560269={'SuwLF':function(_0x237c5e){return _0x237c5e();}},_0x457322=_0x560269['SuwLF'](loadCache),_0x7a6cc7=_0x457322['sessions'][_0x2feea9];_0x7a6cc7?.['enabled']&&(_0x457322['lastEnabledSessionClearedAt']=Date[_0x3080d2(0x1a5)](),saveCache(_0x457322));}export function shouldAutoEnableAfterClear(_0x2e3bf0){const _0x23208d=_0x5a9f62,_0x448eaf={'RvOJT':function(_0x5725ff,_0x3b0d19){return _0x5725ff!==_0x3b0d19;},'DAVxS':_0x23208d(0x1c5),'ugirt':function(_0x47717b,_0x5a888f){return _0x47717b<=_0x5a888f;}};if(_0x448eaf['RvOJT'](_0x2e3bf0,_0x448eaf[_0x23208d(0x1bc)]))return![];const _0x56a021=loadCache(),_0x4288ba=_0x56a021[_0x23208d(0x1ba)];if(!_0x4288ba)return![];const _0xe9742a=Date['now']()-_0x4288ba;return _0x448eaf[_0x23208d(0x1b6)](_0xe9742a,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4385d4){const _0x10d5f3=_0x5a9f62,_0x28ba99={'EOzjh':function(_0x33e37e,_0x4fa585){return _0x33e37e!==_0x4fa585;}},_0x17c4ab=loadCache(),_0x9dfa9=getOrCreateSession(_0x17c4ab,_0x4385d4);_0x9dfa9['enabled']=!![];const _0xe04754=getCurrentBranch();_0xe04754&&_0xe04754!==_0x10d5f3(0x1b2)&&_0x28ba99[_0x10d5f3(0x19c)](_0xe04754,_0x10d5f3(0x1c1))&&(_0x9dfa9[_0x10d5f3(0x1c9)]=_0xe04754),delete _0x17c4ab['lastEnabledSessionClearedAt'],saveCache(_0x17c4ab);}export function registerSession(_0x5e654d,_0x3e8bb8){const _0x2f0de7=_0x5a9f62,_0x240266={'tppTz':function(_0x28f56c,_0x114003,_0x23e67d){return _0x28f56c(_0x114003,_0x23e67d);}},_0x5a19ae=loadCache(),_0x2a1e2a=_0x240266['tppTz'](getOrCreateSession,_0x5a19ae,_0x5e654d);_0x2a1e2a[_0x2f0de7(0x1a4)]=_0x3e8bb8,_0x2a1e2a[_0x2f0de7(0x1b3)]=new Date()['toISOString'](),saveCache(_0x5a19ae);}export function getSessionEntry(_0x232767){const _0x3d1a54=_0x5a9f62,_0xa45238={'recCd':function(_0x4acc97){return _0x4acc97();}},_0xfbe64c=_0xa45238[_0x3d1a54(0x1cf)](loadCache),_0x7e04ab=_0xfbe64c['sessions'][_0x232767];if(_0x7e04ab?.[_0x3d1a54(0x1a4)]&&_0x7e04ab?.[_0x3d1a54(0x1b3)])return{'featureId':_0x7e04ab[_0x3d1a54(0x1a4)],'registeredAt':_0x7e04ab[_0x3d1a54(0x1b3)]};return null;}export function unregisterSession(_0x5a7763){const _0x456b7f=_0x5a9f62,_0x13d5f4=loadCache(),_0xa47500=_0x13d5f4['sessions'][_0x5a7763];_0xa47500&&(delete _0xa47500[_0x456b7f(0x1a4)],delete _0xa47500[_0x456b7f(0x1b3)],saveCache(_0x13d5f4));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x39200e){const _0x531a36=_0x5a9f62,_0x3797bd={'hijKq':function(_0x34848d,_0x48667a,_0x42b113){return _0x34848d(_0x48667a,_0x42b113);},'gqJsR':function(_0x314f93,_0x458428){return _0x314f93(_0x458428);}},_0x24f712=loadCache(),_0x17d18e=_0x3797bd[_0x531a36(0x1cd)](getOrCreateSession,_0x24f712,_0x39200e),_0x5167a0=_0x17d18e[_0x531a36(0x1cb)]||0x0,_0x4e9a54=Date['now']();if(_0x4e9a54-_0x5167a0>=PLAN_REMINDER_INTERVAL_MS)return _0x17d18e[_0x531a36(0x1cb)]=_0x4e9a54,_0x3797bd[_0x531a36(0x19a)](saveCache,_0x24f712),!![];return![];}export function shouldShowStopReminder(_0x32ba62){const _0x750e7e=_0x5a9f62,_0x10bdc5={'wxgbp':function(_0x407e3e,_0x55f5cc,_0x515283){return _0x407e3e(_0x55f5cc,_0x515283);},'xyByV':function(_0x45f30b,_0x485053){return _0x45f30b>=_0x485053;},'RFrdV':function(_0x2ac73a,_0x1fa97b){return _0x2ac73a-_0x1fa97b;}},_0x25628e=loadCache(),_0x83ab1=_0x10bdc5[_0x750e7e(0x1a2)](getOrCreateSession,_0x25628e,_0x32ba62),_0xabd1c1=_0x83ab1['lastStopReminderAt']||0x0,_0x578983=Date['now']();if(_0x10bdc5[_0x750e7e(0x1b9)](_0x10bdc5['RFrdV'](_0x578983,_0xabd1c1),STOP_REMINDER_INTERVAL_MS))return _0x83ab1[_0x750e7e(0x1ab)]=_0x578983,saveCache(_0x25628e),!![];return![];}export function hasSessionBeenPrompted(_0x41d4ca){const _0x122723=loadCache();return _0x122723['sessions'][_0x41d4ca]?.['prompted']===!![];}function _0x593a(){const _0x524115=['now','XSyrh','yjdnT','tEvld','writeFileSync','SxbJH','lastStopReminderAt','edFcw','git\x20rev-parse\x20--abbrev-ref\x20HEAD','sessions','kSUQJ','arxmK','qrPxd','main','registeredAt','8voUlSg','1NnzEXz','ugirt','42414ikvAxo','DJAid','xyByV','lastEnabledSessionClearedAt','enabled','DAVxS','440tbFGSK','mkdirSync','EooDV','NakUA','master','1845164HhKLAg','jfVHF','119631eJgiQL','clear','68USYgvE','RIUBx','HEAD','currentBranch','TeNfs','lastPlanReminderAt','7173780xZCvIA','hijKq','CcOAB','recCd','parse','gqJsR','trim','EOzjh','prompted','2219329vDcxBT','.claude','24207953ntSjBe','1922274IjAnFr','wxgbp','branches','featureId'];_0x593a=function(){return _0x524115;};return _0x593a();}export function markSessionPrompted(_0x434c4f){const _0x450239=_0x5a9f62,_0x4a57ce={'SDqIo':function(_0x28418e){return _0x28418e();},'XSyrh':function(_0x2892a3,_0x6ebab4,_0x2b85a6){return _0x2892a3(_0x6ebab4,_0x2b85a6);}},_0x13d456=_0x4a57ce['SDqIo'](loadCache),_0x23e11a=_0x4a57ce[_0x450239(0x1a6)](getOrCreateSession,_0x13d456,_0x434c4f);_0x23e11a[_0x450239(0x19d)]=!![],saveCache(_0x13d456);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x1ee84c=_0x1b10;(function(_0x1e3b93,_0x1b1ec1){const _0x27d6e6=_0x1b10,_0x3ab82b=_0x1e3b93();while(!![]){try{const _0xffdab2=-parseInt(_0x27d6e6(0x1f2))/0x1*(parseInt(_0x27d6e6(0x239))/0x2)+parseInt(_0x27d6e6(0x207))/0x3+parseInt(_0x27d6e6(0x214))/0x4*(-parseInt(_0x27d6e6(0x220))/0x5)+-parseInt(_0x27d6e6(0x1f9))/0x6*(parseInt(_0x27d6e6(0x248))/0x7)+parseInt(_0x27d6e6(0x1e5))/0x8*(parseInt(_0x27d6e6(0x1e1))/0x9)+-parseInt(_0x27d6e6(0x1f1))/0xa+parseInt(_0x27d6e6(0x203))/0xb;if(_0xffdab2===_0x1b1ec1)break;else _0x3ab82b['push'](_0x3ab82b['shift']());}catch(_0x38c644){_0x3ab82b['push'](_0x3ab82b['shift']());}}}(_0xb415,0xd5881));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x28cdc8){const _0x6bfd80=_0x1b10,_0x12e11e={'ZZzAH':function(_0x4bd112){return _0x4bd112();},'SXMdr':function(_0x3298d4,_0x127f61,_0x1955b1,_0xbe19c8){return _0x3298d4(_0x127f61,_0x1955b1,_0xbe19c8);},'BYimc':function(_0x580742,_0x215da8,_0x18e678){return _0x580742(_0x215da8,_0x18e678);},'xlyxv':function(_0xddd3b6,_0x4feec6){return _0xddd3b6(_0x4feec6);},'JnlJW':function(_0xaf3b58,_0x27a3bf){return _0xaf3b58(_0x27a3bf);},'GwfHv':function(_0x453613,_0x331351){return _0x453613(_0x331351);},'swBtJ':function(_0x3547aa,_0x341baf){return _0x3547aa!==_0x341baf;}},_0xe6b50f=_0x12e11e[_0x6bfd80(0x232)](getRangerDir),_0x171a12=join(_0xe6b50f,'ci',_0x28cdc8),_0x505874=_0x12e11e[_0x6bfd80(0x225)](join,_0xe6b50f,'local',_0x28cdc8),_0x2208e5=_0x12e11e[_0x6bfd80(0x1f6)](join,_0xe6b50f,_0x28cdc8),_0x2c32b5=join(_0xe6b50f,'local'),_0x4eee8c=join(_0xe6b50f,'ci');if(_0x12e11e['xlyxv'](existsSync,_0x171a12))return _0x171a12;if(_0x12e11e['JnlJW'](existsSync,_0x505874))return _0x505874;if(_0x12e11e[_0x6bfd80(0x21b)](existsSync,_0x2208e5)&&(_0x12e11e['swBtJ'](_0x2208e5,_0x2c32b5)&&_0x2208e5!==_0x4eee8c?!![]:hasLegacyProfileFiles(_0x2208e5)))return _0x2208e5;return _0x505874;}function _0xb415(){const _0x463cfc=['core','oZDYW','MGonA','browser','hTUHc','UZDRK','mKlGm','.json','5636aXyidW','EcIAX','clipboard-write','repeat','goDJu','ZBGFl','path','GwfHv','allowInsecureLocalhost','xXtit','aEDzd','QFvTa','1770PFTsjV','KdRLX','contextOptions','XkhXt','isArray','SXMdr','length','locations','cdpEndpoint','--disable-setuid-sandbox','eZXOQ','Environment\x20variable\x20','rgNvS','header','KQIII','--no-sandbox','TBcIh','njvSS','ZZzAH','tabs','LgrhX','string','nWiqZ','entries','fDSFz','6ISBLaW','join','storageState','VQcWY','GzPpU','dyWjn','setupHeaders','tcBJG','nMmEt','omNAk','hwRyS','boolean','local','HoQdi','fromEntries','749yPcPcr','includes','ENOENT','DHarj','extraHTTPHeaders','qVVCz','SUHYC','stringify','zxwro','lRrNr','ROAKx','ERrKa','warn','--allow-insecure-localhost','999xiBdKo','now','lMRIG','--unsafely-treat-insecure-origin-as-secure=http://localhost','61192HmjyLG','map','getuid','bGcgu','bPvLu','EAWWy','HHkCf','xRRXw','code','clipboard-read','dcIPU','headers','4701040StqwFN','564089WKZxFR','kbLzG','sessions','allow','BYimc','ILkob','IbxyK','51858BLFRpk','--allow-running-insecure-content','args','Failed\x20to\x20decrypt\x20auth\x20state:\x20','headless','JXUGe','userAgent','auth.json','location','chromium','35871737CyxutA','WgVNf','parse','push','1051431QgQAAY','env','KOETV','message','ranger-auth-'];_0xb415=function(){return _0x463cfc;};return _0xb415();}export function findExistingEnv(_0x39abce,_0x18485b){const _0x580ae8=_0x1b10,_0x265f63={'bPvLu':function(_0x173b15){return _0x173b15();},'dcIPU':'local','KsenX':'legacy','xXtit':function(_0x450fac,_0xaff2cd,_0x4d004a){return _0x450fac(_0xaff2cd,_0x4d004a);},'WgVNf':function(_0x4de10d,_0xd18b2b,_0x305057,_0x4a7730){return _0x4de10d(_0xd18b2b,_0x305057,_0x4a7730);},'KOETV':function(_0x43c18f,_0x56167b){return _0x43c18f(_0x56167b);},'dvJos':function(_0x4f9447,_0x18dcdd){return _0x4f9447===_0x18dcdd;}},_0x3ccf84=_0x265f63[_0x580ae8(0x1e9)](getRangerDir),_0x3c86d2=_0x18485b?.[_0x580ae8(0x227)]??['ci',_0x265f63['dcIPU'],_0x265f63['KsenX']],_0x343fb3=_0x265f63[_0x580ae8(0x21d)](join,_0x3ccf84,_0x265f63[_0x580ae8(0x1ef)]),_0x2e3274=join(_0x3ccf84,'ci'),_0x16961c=[{'location':'ci','path':join(_0x3ccf84,'ci',_0x39abce)},{'location':'local','path':_0x265f63[_0x580ae8(0x204)](join,_0x3ccf84,_0x580ae8(0x245),_0x39abce)},{'location':_0x265f63['KsenX'],'path':join(_0x3ccf84,_0x39abce)}];for(const _0x33e83b of _0x16961c){if(_0x3c86d2['includes'](_0x33e83b[_0x580ae8(0x201)])&&_0x265f63[_0x580ae8(0x209)](existsSync,_0x33e83b['path'])){if(_0x265f63['dvJos'](_0x33e83b['location'],'legacy')&&(_0x265f63['dvJos'](_0x33e83b['path'],_0x343fb3)||_0x33e83b[_0x580ae8(0x21a)]===_0x2e3274)&&!_0x265f63['KOETV'](hasLegacyProfileFiles,_0x33e83b['path']))continue;return{'path':_0x33e83b['path'],'location':_0x33e83b['location']};}}return null;}function hasLegacyProfileFiles(_0x2ca819){const _0x3eb094=_0x1b10,_0x358885={'DHarj':function(_0x110192,_0x3a66fe,_0x21cc39){return _0x110192(_0x3a66fe,_0x21cc39);},'zxwro':function(_0x53080c,_0x159d4e){return _0x53080c(_0x159d4e);},'goDJu':_0x3eb094(0x200),'kbLzG':function(_0xc39f55,_0x44e824){return _0xc39f55(_0x44e824);},'tgXVO':'auth.json.enc'};return existsSync(_0x358885[_0x3eb094(0x24b)](join,_0x2ca819,'settings.json'))||_0x358885[_0x3eb094(0x250)](existsSync,join(_0x2ca819,_0x358885[_0x3eb094(0x218)]))||_0x358885[_0x3eb094(0x1f3)](existsSync,_0x358885[_0x3eb094(0x24b)](join,_0x2ca819,_0x358885['tgXVO']));}export function isEnvCi(_0x51093c){const _0x180357=_0x1b10,_0x216a7d={'dyWjn':function(_0x4605c2,_0xd71ce1){return _0x4605c2(_0xd71ce1);},'COtDp':function(_0x6c281f,_0x2e02e7,_0x416e85,_0x2e3e77){return _0x6c281f(_0x2e02e7,_0x416e85,_0x2e3e77);},'rgNvS':function(_0x1f78d4){return _0x1f78d4();}};return _0x216a7d[_0x180357(0x23e)](existsSync,_0x216a7d['COtDp'](join,_0x216a7d[_0x180357(0x22c)](getRangerDir),'ci',_0x51093c));}function _0x1b10(_0x5c0468,_0x16ba50){_0x5c0468=_0x5c0468-0x1e1;const _0xb415b6=_0xb415();let _0x1b1027=_0xb415b6[_0x5c0468];return _0x1b1027;}export async function cleanupTempFiles(_0x32170b){const _0x2a0ff1=_0x1b10,_0x1a3a37={'XkhXt':function(_0x23b77f,_0x1e3015){return _0x23b77f!==_0x1e3015;}},_0x2dd967=[_0x32170b['tempAuthPath'],_0x32170b['configPath']]['filter'](Boolean);await Promise['all'](_0x2dd967[_0x2a0ff1(0x1e6)](_0x253bf0=>unlink(_0x253bf0)['catch'](_0x2ef73b=>{const _0x4dc554=_0x2a0ff1;_0x1a3a37[_0x4dc554(0x223)](_0x2ef73b[_0x4dc554(0x1ed)],_0x4dc554(0x24a))&&console[_0x4dc554(0x254)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x253bf0+':',_0x2ef73b[_0x4dc554(0x20a)]);})));}export function getSettingsPath(_0xa5179a){const _0x7e9f09=_0x1b10,_0xdaba38={'vmaSX':function(_0x2dc8c7,_0x2a4746,_0x140be7){return _0x2dc8c7(_0x2a4746,_0x140be7);},'KdRLX':function(_0x43dd33,_0x5d52e8){return _0x43dd33(_0x5d52e8);}};return _0xdaba38['vmaSX'](join,_0xdaba38[_0x7e9f09(0x221)](getEnvDir,_0xa5179a),'settings.json');}export async function loadSettings(_0x19bb63){const _0x10710d=_0x1b10,_0x3af554={'GzPpU':function(_0x4ba560,_0x24d95d,_0x3ce3b1){return _0x4ba560(_0x24d95d,_0x3ce3b1);}},_0x469576=getSettingsPath(_0x19bb63);if(!existsSync(_0x469576))return{};try{const _0x30b5d6=await _0x3af554[_0x10710d(0x23d)](readFile,_0x469576,'utf-8');return JSON[_0x10710d(0x205)](_0x30b5d6);}catch{return{};}}export async function saveSettings(_0x325b98,_0x3b713e){const _0x13fa1c=_0x1b10,_0x5630a4={'MWyGk':function(_0x550470,_0x20c45e){return _0x550470(_0x20c45e);},'HHkCf':function(_0x1ea74d,_0x474ca0){return _0x1ea74d(_0x474ca0);},'omNAk':function(_0x4399b0,_0x5e2218,_0x50cee5){return _0x4399b0(_0x5e2218,_0x50cee5);},'tcBJG':function(_0x45d3f5,_0x5ca02d,_0x541c33){return _0x45d3f5(_0x5ca02d,_0x541c33);}},_0x5ae702=_0x5630a4['MWyGk'](getSettingsPath,_0x325b98),_0xc2234f=dirname(_0x5ae702);!_0x5630a4[_0x13fa1c(0x1eb)](existsSync,_0xc2234f)&&await _0x5630a4[_0x13fa1c(0x242)](mkdir,_0xc2234f,{'recursive':!![]}),await _0x5630a4[_0x13fa1c(0x240)](writeFile,_0x5ae702,JSON['stringify'](_0x3b713e,null,0x2));}export function resolveEnvVars(_0x57fec9){const _0x59a353=_0x1b10,_0x4c9f5e={'nTbkz':function(_0x4e59e9,_0x106189){return _0x4e59e9===_0x106189;},'EcIAX':function(_0x297cc3,_0xa6c293){return _0x297cc3===_0xa6c293;}};if(_0x4c9f5e['nTbkz'](typeof _0x57fec9,_0x59a353(0x235)))return _0x57fec9['replace'](/\$\{(\w+)\}/g,(_0x22ffc5,_0x17d6cd)=>{const _0x1a9da0=_0x59a353,_0x343e2b=process[_0x1a9da0(0x208)][_0x17d6cd];if(_0x343e2b===undefined)throw new Error(_0x1a9da0(0x22b)+_0x17d6cd+'\x20is\x20not\x20set');return _0x343e2b;});if(Array[_0x59a353(0x224)](_0x57fec9))return _0x57fec9['map'](resolveEnvVars);if(_0x57fec9&&_0x4c9f5e[_0x59a353(0x215)](typeof _0x57fec9,'object'))return Object[_0x59a353(0x247)](Object[_0x59a353(0x237)](_0x57fec9)[_0x59a353(0x1e6)](([_0x7e5465,_0x1c2108])=>[_0x7e5465,resolveEnvVars(_0x1c2108)]));return _0x57fec9;}const isRecord=_0x53e661=>typeof _0x53e661==='object'&&_0x53e661!==null&&!Array['isArray'](_0x53e661),asRecord=_0x495cf4=>isRecord(_0x495cf4)?_0x495cf4:undefined,mergeHeaders=(_0x536e19,_0x186f1e)=>{const _0x41a451=_0x1b10,_0x37f804={'uskyd':function(_0x1a5443,_0x1a521e){return _0x1a5443??_0x1a521e;},'ILkob':function(_0x396e8e,_0x5e86dd){return _0x396e8e??_0x5e86dd;}},_0x148de2={..._0x37f804['uskyd'](_0x536e19,{}),..._0x37f804[_0x41a451(0x1f7)](_0x186f1e,{})};return Object['keys'](_0x148de2)['length']?_0x148de2:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x1ee84c(0x1fa),_0x1ee84c(0x1e4),_0x1ee84c(0x255)];export function buildBrowserOptionsFromSettings(_0x534b42,_0x243599={}){const _0x5462aa=_0x1ee84c,_0x115f45={'lMRIG':function(_0x1c3602,_0xb83b3){return _0x1c3602(_0xb83b3);},'TBcIh':function(_0x2a9147,_0xd544eb){return _0x2a9147(_0xd544eb);},'oZDYW':_0x5462aa(0x244),'Pdgrp':function(_0x2ab922,_0x23635e){return _0x2ab922===_0x23635e;},'ZBGFl':function(_0x1ec33d,_0xadc5dc){return _0x1ec33d(_0xadc5dc);}},_0x114b74=_0x115f45[_0x5462aa(0x1e3)](asRecord,_0x534b42[_0x5462aa(0x20f)]),_0xf8efc0={..._0x115f45[_0x5462aa(0x230)](asRecord,_0x114b74?.['launchOptions'])??{}};typeof _0x243599['headless']===_0x115f45[_0x5462aa(0x20d)]&&(_0xf8efc0['headless']=_0x243599['headless']);if(_0x534b42['safeMode']){const _0xb75eaa=_0xf8efc0['args']??[],_0x356ae0=SAFE_MODE_ARGS['filter'](_0x1e73b7=>!_0xb75eaa[_0x5462aa(0x249)](_0x1e73b7));_0xf8efc0['args']=[..._0xb75eaa,..._0x356ae0];}if(_0x534b42[_0x5462aa(0x21c)]){const _0x2ad07c=_0xf8efc0['args']??[],_0x40c0be=ALLOW_LOCALHOST_ARGS['filter'](_0x4e6aaa=>!_0x2ad07c['includes'](_0x4e6aaa));_0xf8efc0[_0x5462aa(0x1fb)]=[..._0x2ad07c,..._0x40c0be];}const _0x82ead6={...asRecord(_0x114b74?.[_0x5462aa(0x222)])??{}};_0x82ead6['ignoreHTTPSErrors']=!![];_0x115f45['Pdgrp'](typeof _0x534b42[_0x5462aa(0x1ff)],'string')&&(_0x82ead6['userAgent']=_0x534b42['userAgent']);const _0x163068=mergeHeaders(asRecord(_0x82ead6[_0x5462aa(0x24c)]),_0x115f45[_0x5462aa(0x219)](asRecord,_0x534b42[_0x5462aa(0x1f0)]));return _0x163068?_0x82ead6['extraHTTPHeaders']=_0x163068:delete _0x82ead6['extraHTTPHeaders'],_0x243599['storageStatePath']&&(_0x82ead6['storageState']=_0x243599['storageStatePath']),{'launchOptions':_0xf8efc0,'contextOptions':_0x82ead6};}export async function buildPlaywrightConfig(_0x2c798c,_0x11183f,_0x74707e,_0x570c7f){const _0x11b2fd=_0x1ee84c,_0x4f7ae5={'fxEPU':_0x11b2fd(0x229),'zdidv':'chromium','EBjQN':'auth.json','mKlGm':function(_0x28dd1c,_0x1bdbc0){return _0x28dd1c(_0x1bdbc0);},'nMmEt':function(_0x20fce6){return _0x20fce6();},'sknSN':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','LgrhX':function(_0x3d5010,_0x14ee94,_0x5f2225){return _0x3d5010(_0x14ee94,_0x5f2225);},'kWGee':function(_0x5035cd){return _0x5035cd();},'njvSS':_0x11b2fd(0x20c),'EAWWy':_0x11b2fd(0x233),'PUoOD':'vision','KQIII':_0x11b2fd(0x1f5),'ROAKx':function(_0x5b2a17,_0x801587){return _0x5b2a17===_0x801587;},'IQLPE':function(_0x250e89,_0x3ca2da){return _0x250e89(_0x3ca2da);}},_0x3d85a1=getEnvDir(_0x11183f),_0x23c33b=join(_0x3d85a1,'auth.json.enc'),_0x343312=join(_0x3d85a1,_0x4f7ae5['EBjQN']);let _0x1de17f,_0x246ae9;if(_0x4f7ae5[_0x11b2fd(0x212)](existsSync,_0x23c33b))try{const _0x4f20f8=await _0x4f7ae5[_0x11b2fd(0x241)](getToken);if(!_0x4f20f8)throw new Error(_0x4f7ae5['sknSN']);const _0x26657d=await _0x4f7ae5[_0x11b2fd(0x212)](readFile,_0x23c33b),_0x33b999=_0x4f7ae5[_0x11b2fd(0x234)](decrypt,_0x26657d,_0x4f20f8);_0x246ae9=_0x4f7ae5['LgrhX'](join,_0x4f7ae5['nMmEt'](tmpdir),_0x11b2fd(0x20b)+Date[_0x11b2fd(0x1e2)]()+'.json'),await writeFile(_0x246ae9,_0x33b999),_0x1de17f=_0x246ae9;}catch(_0x3ee7ff){const _0x110814=_0x3ee7ff instanceof Error?_0x3ee7ff['message']:String(_0x3ee7ff);throw new Error(_0x11b2fd(0x1fc)+_0x110814);}else _0x4f7ae5[_0x11b2fd(0x212)](existsSync,_0x343312)&&(_0x1de17f=_0x343312);const _0x455cbb=_0x74707e||_0x4f7ae5[_0x11b2fd(0x241)](randomUUID),_0x497bfd=join(_0x4f7ae5['kWGee'](getRangerDir),'sessions',_0x455cbb),_0x36ac09=Boolean(_0x2c798c[_0x11b2fd(0x228)]),_0x137c67=_0x36ac09?{'browserName':'chromium','cdpEndpoint':_0x2c798c[_0x11b2fd(0x228)]}:((()=>{const _0x4c6e6d=_0x11b2fd,{launchOptions:_0x34c3a3,contextOptions:_0x31c7bb}=buildBrowserOptionsFromSettings(_0x2c798c,{'headless':_0x570c7f?![]:_0x2c798c[_0x4c6e6d(0x1fd)]??!![],'storageStatePath':_0x1de17f});if(process['getuid']?.()===0x0){const _0x262d76=['--no-sandbox',_0x4f7ae5['fxEPU']],_0x4f0a0b=_0x34c3a3[_0x4c6e6d(0x1fb)]??[],_0x557249=_0x262d76['filter'](_0x255b35=>!_0x4f0a0b['includes'](_0x255b35));_0x34c3a3['args']=[..._0x4f0a0b,..._0x557249];}return{'isolated':!![],'browserName':_0x4f7ae5['zdidv'],'launchOptions':_0x34c3a3,'contextOptions':{..._0x31c7bb,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x31f4ee={'name':_0x11183f,'browser':_0x137c67,'capabilities':[_0x4f7ae5[_0x11b2fd(0x231)],_0x4f7ae5[_0x11b2fd(0x1ea)],'install','pdf',_0x4f7ae5['PUoOD']],'imageResponses':_0x4f7ae5[_0x11b2fd(0x22e)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x497bfd};if(!_0x36ac09){const _0x45a67f=_0x31f4ee['browser'],_0x47ff8d=_0x45a67f[_0x11b2fd(0x222)];if(_0x47ff8d[_0x11b2fd(0x1ff)]===undefined)delete _0x47ff8d['userAgent'];if(_0x4f7ae5[_0x11b2fd(0x252)](_0x47ff8d[_0x11b2fd(0x23b)],undefined))delete _0x47ff8d[_0x11b2fd(0x23b)];}const _0x2f4f89=join(_0x4f7ae5['nMmEt'](tmpdir),'ranger-config');!_0x4f7ae5['IQLPE'](existsSync,_0x2f4f89)&&await mkdir(_0x2f4f89,{'recursive':!![]});const _0x35d9c5=join(_0x2f4f89,_0x11183f+'-'+Date[_0x11b2fd(0x1e2)]()+_0x11b2fd(0x213));return await _0x4f7ae5[_0x11b2fd(0x234)](writeFile,_0x35d9c5,JSON[_0x11b2fd(0x24f)](_0x31f4ee,null,0x2)),{'configPath':_0x35d9c5,'tempAuthPath':_0x246ae9};}export async function buildPlaywrightCliConfig(_0x53c536,_0x31e087,_0x225814,_0x27eb33){const _0x533adf=_0x1ee84c,_0x5b070d={'ERrKa':function(_0x3f4464,_0x320995){return _0x3f4464===_0x320995;},'aEDzd':_0x533adf(0x229),'IbxyK':_0x533adf(0x202),'xvvjX':_0x533adf(0x216),'pzoyK':function(_0x1d745d,_0xdb51a5,_0xc4288d){return _0x1d745d(_0xdb51a5,_0xc4288d);},'OZCjZ':'auth.json.enc','CBogF':function(_0x2a4b24){return _0x2a4b24();},'bjJvm':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','hTUHc':function(_0x518c75,_0x2c350d){return _0x518c75(_0x2c350d);},'imrBX':function(_0x282642,_0x124167,_0x991dce){return _0x282642(_0x124167,_0x991dce);},'nWiqZ':function(_0x2ac7bc){return _0x2ac7bc();},'QFvTa':function(_0x3d64e0,_0x2a9b33){return _0x3d64e0(_0x2a9b33);},'JXUGe':_0x533adf(0x1f4),'bGcgu':'file','KFfJl':'none','VQcWY':function(_0x1377f5){return _0x1377f5();},'MGonA':'ranger-config','QFnGJ':function(_0x29135d,_0x59899a,_0x26de71){return _0x29135d(_0x59899a,_0x26de71);},'HoQdi':function(_0x18290d,_0x4eb76d,_0x1c3b19){return _0x18290d(_0x4eb76d,_0x1c3b19);}},_0x5c2322=getEnvDir(_0x31e087),_0x52df14=_0x5b070d['pzoyK'](join,_0x5c2322,_0x5b070d['OZCjZ']),_0x864536=join(_0x5c2322,_0x533adf(0x200));let _0x4ba31a,_0x33d9f2;if(existsSync(_0x52df14))try{const _0x4878a8=await _0x5b070d['CBogF'](getToken);if(!_0x4878a8)throw new Error(_0x5b070d['bjJvm']);const _0x5f3e28=await _0x5b070d[_0x533adf(0x210)](readFile,_0x52df14),_0x2108f2=_0x5b070d['imrBX'](decrypt,_0x5f3e28,_0x4878a8);_0x33d9f2=join(_0x5b070d[_0x533adf(0x236)](tmpdir),_0x533adf(0x20b)+Date['now']()+_0x533adf(0x213)),await writeFile(_0x33d9f2,_0x2108f2),_0x4ba31a=_0x33d9f2;}catch(_0x49fdd5){const _0x25ccd8=_0x49fdd5 instanceof Error?_0x49fdd5['message']:String(_0x49fdd5);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x25ccd8);}else _0x5b070d[_0x533adf(0x21f)](existsSync,_0x864536)&&(_0x4ba31a=_0x864536);const _0x4f363a=_0x225814||_0x5b070d['nWiqZ'](randomUUID),_0x57b308=join(getRangerDir(),_0x5b070d[_0x533adf(0x1fe)],_0x4f363a),_0x23828a=_0x5b070d['hTUHc'](Boolean,_0x53c536[_0x533adf(0x228)]),_0x143ff5=_0x23828a?{'browserName':_0x5b070d[_0x533adf(0x1f8)],'cdpEndpoint':_0x53c536[_0x533adf(0x228)]}:((()=>{const _0x10d171=_0x533adf,{launchOptions:_0x5d4a7a,contextOptions:_0x5bf6a8}=buildBrowserOptionsFromSettings(_0x53c536,{'headless':_0x27eb33?![]:_0x53c536[_0x10d171(0x1fd)]??!![],'storageStatePath':_0x4ba31a});if(_0x5b070d[_0x10d171(0x253)](process[_0x10d171(0x1e7)]?.(),0x0)){const _0x3efdb5=[_0x10d171(0x22f),_0x5b070d[_0x10d171(0x21e)]],_0x599fa2=_0x5d4a7a[_0x10d171(0x1fb)]??[],_0x701687=_0x3efdb5['filter'](_0x10086f=>!_0x599fa2['includes'](_0x10086f));_0x5d4a7a[_0x10d171(0x1fb)]=[..._0x599fa2,..._0x701687];}return{'isolated':!![],'browserName':_0x5b070d[_0x10d171(0x1f8)],'launchOptions':_0x5d4a7a,'contextOptions':{..._0x5bf6a8,'permissions':[_0x10d171(0x1ee),_0x5b070d['xvvjX']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x23828a){const _0x306aba=_0x143ff5[_0x533adf(0x222)];if(_0x306aba['userAgent']===undefined)delete _0x306aba['userAgent'];if(_0x5b070d[_0x533adf(0x253)](_0x306aba['storageState'],undefined))delete _0x306aba[_0x533adf(0x23b)];}const _0x29b012={'browser':_0x143ff5,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x57b308,'outputMode':_0x5b070d[_0x533adf(0x1e8)],'codegen':_0x5b070d['KFfJl']},_0x56f3ee=join(_0x5b070d[_0x533adf(0x23c)](tmpdir),_0x5b070d[_0x533adf(0x20e)]);!_0x5b070d[_0x533adf(0x210)](existsSync,_0x56f3ee)&&await _0x5b070d['QFnGJ'](mkdir,_0x56f3ee,{'recursive':!![]});const _0x1fd910=_0x5b070d[_0x533adf(0x246)](join,_0x56f3ee,_0x31e087+'-'+Date[_0x533adf(0x1e2)]()+'-cli.json');return await writeFile(_0x1fd910,JSON[_0x533adf(0x24f)](_0x29b012,null,0x2)),{'configPath':_0x1fd910,'tempAuthPath':_0x33d9f2};}export function getNestedValue(_0x5c6954,_0x1d1969){const _0x4ea6b0=_0x1ee84c,_0x17b30f={'ajJHx':function(_0x2398bb,_0x3843c5){return _0x2398bb===_0x3843c5;},'hwRyS':function(_0x3c7765,_0x333c96){return _0x3c7765!==_0x333c96;}},_0x3b6cbd=parseKeyPath(_0x1d1969);let _0x512273=_0x5c6954;for(const _0x335c8f of _0x3b6cbd){if(_0x512273===null||_0x17b30f['ajJHx'](_0x512273,undefined)||_0x17b30f[_0x4ea6b0(0x243)](typeof _0x512273,'object'))return undefined;_0x512273=_0x512273[_0x335c8f];}return _0x512273;}export function setNestedValue(_0x46898d,_0x4f5bed,_0x10db0e){const _0x2777eb=_0x1ee84c,_0x27e997={'eZXOQ':function(_0x1a9375,_0x1ee21c){return _0x1a9375(_0x1ee21c);},'lRrNr':function(_0x13c8ec,_0x10c793){return _0x13c8ec!==_0x10c793;},'fDSFz':function(_0x4dde94,_0x5580a8){return _0x4dde94-_0x5580a8;}},_0x3074c5=_0x27e997[_0x2777eb(0x22a)](parseKeyPath,_0x4f5bed);let _0x483ef4=_0x46898d;for(let _0x1f10ce=0x0;_0x1f10ce<_0x3074c5[_0x2777eb(0x226)]-0x1;_0x1f10ce++){const _0x580398=_0x3074c5[_0x1f10ce];(!(_0x580398 in _0x483ef4)||_0x27e997[_0x2777eb(0x251)](typeof _0x483ef4[_0x580398],'object'))&&(_0x483ef4[_0x580398]={}),_0x483ef4=_0x483ef4[_0x580398];}_0x483ef4[_0x3074c5[_0x27e997[_0x2777eb(0x238)](_0x3074c5[_0x2777eb(0x226)],0x1)]]=_0x10db0e;}export function deleteNestedValue(_0xd73801,_0x22f44d){const _0x5c742c=_0x1ee84c,_0x5a7623={'RxhVj':function(_0x4acb23,_0x499f9d){return _0x4acb23(_0x499f9d);},'SUHYC':function(_0x7de20d,_0x4a69ca){return _0x7de20d===_0x4a69ca;},'LJrfD':function(_0x465bc2,_0x5300b1){return _0x465bc2!==_0x5300b1;},'bkwuE':'object','qVVCz':function(_0x321a75,_0x2a36b2){return _0x321a75-_0x2a36b2;}},_0x17548c=_0x5a7623['RxhVj'](parseKeyPath,_0x22f44d);let _0x581439=_0xd73801;for(let _0x3d98ab=0x0;_0x3d98ab<_0x17548c['length']-0x1;_0x3d98ab++){if(_0x581439===null||_0x5a7623[_0x5c742c(0x24e)](_0x581439,undefined)||_0x5a7623['LJrfD'](typeof _0x581439,_0x5a7623['bkwuE']))return![];_0x581439=_0x581439[_0x17548c[_0x3d98ab]];}if(_0x5a7623['SUHYC'](_0x581439,null)||_0x581439===undefined||typeof _0x581439!==_0x5a7623['bkwuE'])return![];const _0x44b24c=_0x17548c[_0x5a7623[_0x5c742c(0x24d)](_0x17548c['length'],0x1)];if(_0x44b24c in _0x581439)return delete _0x581439[_0x44b24c],!![];return![];}function parseKeyPath(_0x3e23e1){const _0x1d81e6=_0x1ee84c,_0x4b353d={'UZDRK':function(_0x48513c,_0x2c4e21){return _0x48513c===_0x2c4e21;},'YqCtU':_0x1d81e6(0x22d),'aOGoO':'headers'},_0x359e24=_0x3e23e1['split']('.');return _0x4b353d[_0x1d81e6(0x211)](_0x359e24[0x0],_0x4b353d['YqCtU'])&&(_0x359e24[0x0]=_0x4b353d['aOGoO']),_0x4b353d['UZDRK'](_0x359e24[0x0],'setupHeader')&&(_0x359e24[0x0]=_0x1d81e6(0x23f)),_0x359e24;}export function formatSettings(_0x17ed59,_0x256e9c=0x0){const _0x30a71b=_0x1ee84c,_0x5e4248={'xRRXw':function(_0x3e5893,_0x33a387){return _0x3e5893!==_0x33a387;}},_0x6b8e9f=[],_0x2ffaa2='\x20\x20'[_0x30a71b(0x217)](_0x256e9c);for(const [_0x2f3551,_0x22090a]of Object[_0x30a71b(0x237)](_0x17ed59)){if(_0x22090a===undefined)continue;if(typeof _0x22090a==='object'&&_0x5e4248[_0x30a71b(0x1ec)](_0x22090a,null)){_0x6b8e9f['push'](''+_0x2ffaa2+_0x2f3551+':');for(const [_0x5845d2,_0x5f27c6]of Object['entries'](_0x22090a)){_0x6b8e9f['push'](_0x2ffaa2+'\x20\x20'+_0x5845d2+':\x20'+_0x5f27c6);}}else _0x6b8e9f[_0x30a71b(0x206)](''+_0x2ffaa2+_0x2f3551+':\x20'+_0x22090a);}return _0x6b8e9f[_0x30a71b(0x23a)]('\x0a');}
1
+ const _0x106451=_0x1354;(function(_0x5165c2,_0x5c82e7){const _0x601f62=_0x1354,_0x619dd5=_0x5165c2();while(!![]){try{const _0x3eb029=parseInt(_0x601f62(0x1b2))/0x1+-parseInt(_0x601f62(0x16a))/0x2*(-parseInt(_0x601f62(0x1a9))/0x3)+-parseInt(_0x601f62(0x1a5))/0x4+parseInt(_0x601f62(0x1b7))/0x5+parseInt(_0x601f62(0x197))/0x6+parseInt(_0x601f62(0x184))/0x7+-parseInt(_0x601f62(0x1ce))/0x8*(parseInt(_0x601f62(0x186))/0x9);if(_0x3eb029===_0x5c82e7)break;else _0x619dd5['push'](_0x619dd5['shift']());}catch(_0x1c2d73){_0x619dd5['push'](_0x619dd5['shift']());}}}(_0x36eb,0x8dcd7));function _0x36eb(){const _0x12ffb0=['sessions','env','jWcbx','Ffmrv','jtTbK','QEBmR','join','lEwdm','cdpEndpoint','dmYTj','configPath','ranger-auth-','map','egXyC','1293438dNayIw','dGnsm','JqZNW','clipboard-write','auth.json.enc','includes','userAgent','GcXbu','settings.json','QuUAA','.json','ukAHj','Failed\x20to\x20decrypt\x20auth\x20state:\x20','split','1604552wMQaSl','acBeS','CrRAN','goilt','15RNMeml','pvYkn','VXkfe','qGPrk','contextOptions','aHeWq','path','lnajs','push','956617ESelGA','headers','chromium','locations','UPDcN','2994720zLFwkj','allowInsecureLocalhost','getuid','message','GOpvy','mWcYm','length','yyRBA','jkoHv','isArray','local','szORH','ranger-config','YbzLR','filter','hXuiK','vision','--disable-setuid-sandbox','replace','ALvMI','\x20is\x20not\x20set','auth.json','qAXba','1263392XIIKuC','allow','UbYDo','headless','ebLAs','header','267346rgHYAz','cLukl','sqGhH','ignoreHTTPSErrors','code','dPsOo','--disable-features=WebBluetooth','browser','VzcDG','storageState','dQQtm','mFlIO','string','install','storageStatePath','location','extraHTTPHeaders','ENOENT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','entries','REaWd','JTJXn','uNgwU','stringify','CFaAr','OcpcO','7484722EihuRR','--disable-web-security','144tPETfL','args','now'];_0x36eb=function(){return _0x12ffb0;};return _0x36eb();}import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x281258){const _0x193a0d=_0x1354,_0x6fc528={'JqZNW':function(_0x5c1a66){return _0x5c1a66();},'fZsaU':function(_0x23a4f0,_0x53e516,_0x816744,_0x3af64e){return _0x23a4f0(_0x53e516,_0x816744,_0x3af64e);},'Ffmrv':function(_0x54f4ac,_0xabdd58,_0x3c61ef){return _0x54f4ac(_0xabdd58,_0x3c61ef);},'dBJab':_0x193a0d(0x1c1),'cLukl':function(_0x3238fc,_0x3e3670){return _0x3238fc(_0x3e3670);},'qWTkl':function(_0x378ae4,_0xa3d92e){return _0x378ae4!==_0xa3d92e;},'OVGbP':function(_0x47e869,_0x44bdea){return _0x47e869!==_0x44bdea;}},_0x4d3aca=_0x6fc528[_0x193a0d(0x199)](getRangerDir),_0x33934b=_0x6fc528['fZsaU'](join,_0x4d3aca,'ci',_0x281258),_0x44938d=join(_0x4d3aca,_0x193a0d(0x1c1),_0x281258),_0x2619f5=_0x6fc528[_0x193a0d(0x18c)](join,_0x4d3aca,_0x281258),_0x1cd1c1=join(_0x4d3aca,_0x6fc528['dBJab']),_0x370aef=join(_0x4d3aca,'ci');if(_0x6fc528['cLukl'](existsSync,_0x33934b))return _0x33934b;if(existsSync(_0x44938d))return _0x44938d;if(_0x6fc528[_0x193a0d(0x16b)](existsSync,_0x2619f5)&&(_0x6fc528['qWTkl'](_0x2619f5,_0x1cd1c1)&&_0x6fc528['OVGbP'](_0x2619f5,_0x370aef)?!![]:hasLegacyProfileFiles(_0x2619f5)))return _0x2619f5;return _0x44938d;}export function findExistingEnv(_0x153a29,_0xc8132a){const _0xf81ddb=_0x1354,_0x31cf27={'dQQtm':'local','CrRAN':function(_0x4344d1,_0x325e23,_0x2c91e4){return _0x4344d1(_0x325e23,_0x2c91e4);},'bnWmm':function(_0x6e1871,_0x7a276d,_0x18d339,_0x120339){return _0x6e1871(_0x7a276d,_0x18d339,_0x120339);},'xLjvx':function(_0x4819d4,_0x5a7022){return _0x4819d4===_0x5a7022;}},_0x48e0a8=getRangerDir(),_0x2d00bb=_0xc8132a?.[_0xf81ddb(0x1b5)]??['ci',_0x31cf27[_0xf81ddb(0x174)],'legacy'],_0x39ff87=_0x31cf27[_0xf81ddb(0x1a7)](join,_0x48e0a8,_0x31cf27[_0xf81ddb(0x174)]),_0x20cc0e=_0x31cf27[_0xf81ddb(0x1a7)](join,_0x48e0a8,'ci'),_0x207877=[{'location':'ci','path':join(_0x48e0a8,'ci',_0x153a29)},{'location':'local','path':_0x31cf27['bnWmm'](join,_0x48e0a8,_0x31cf27['dQQtm'],_0x153a29)},{'location':'legacy','path':join(_0x48e0a8,_0x153a29)}];for(const _0x4cd50c of _0x207877){if(_0x2d00bb[_0xf81ddb(0x19c)](_0x4cd50c[_0xf81ddb(0x179)])&&existsSync(_0x4cd50c[_0xf81ddb(0x1af)])){if(_0x4cd50c['location']==='legacy'&&(_0x4cd50c['path']===_0x39ff87||_0x31cf27['xLjvx'](_0x4cd50c['path'],_0x20cc0e))&&!hasLegacyProfileFiles(_0x4cd50c['path']))continue;return{'path':_0x4cd50c['path'],'location':_0x4cd50c['location']};}}return null;}function hasLegacyProfileFiles(_0x861ab7){const _0xcf01a1=_0x1354,_0x9e7f2d={'xwmEr':function(_0x414934,_0x7b8b82){return _0x414934(_0x7b8b82);},'pvYkn':_0xcf01a1(0x19f),'fyXft':function(_0x5cb539,_0x4d12d9,_0x4631bc){return _0x5cb539(_0x4d12d9,_0x4631bc);},'xwVLe':function(_0x6b35c,_0x4cf9bc){return _0x6b35c(_0x4cf9bc);}};return _0x9e7f2d['xwmEr'](existsSync,join(_0x861ab7,_0x9e7f2d[_0xcf01a1(0x1aa)]))||existsSync(_0x9e7f2d['fyXft'](join,_0x861ab7,_0xcf01a1(0x1cc)))||_0x9e7f2d['xwVLe'](existsSync,join(_0x861ab7,'auth.json.enc'));}export function isEnvCi(_0x4c4138){const _0x536ff5=_0x1354,_0x538195={'goilt':function(_0x133e29,_0x4abfa8){return _0x133e29(_0x4abfa8);}};return _0x538195[_0x536ff5(0x1a8)](existsSync,join(getRangerDir(),'ci',_0x4c4138));}export async function cleanupTempFiles(_0x53e77e){const _0x88ba25=_0x1354,_0x110943={'RTobL':function(_0x3dcd80,_0x879aca){return _0x3dcd80!==_0x879aca;},'EabzK':_0x88ba25(0x17b)},_0x32eb87=[_0x53e77e['tempAuthPath'],_0x53e77e[_0x88ba25(0x193)]]['filter'](Boolean);await Promise['all'](_0x32eb87['map'](_0x12212e=>unlink(_0x12212e)['catch'](_0x549070=>{const _0x5b7ab6=_0x88ba25;_0x110943['RTobL'](_0x549070[_0x5b7ab6(0x16e)],_0x110943['EabzK'])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x12212e+':',_0x549070['message']);})));}export function getSettingsPath(_0x8702dc){const _0x4373f0=_0x1354,_0x54e9d8={'QuUAA':function(_0x50b8e4,_0x20739b,_0x666935){return _0x50b8e4(_0x20739b,_0x666935);},'jWcbx':'settings.json'};return _0x54e9d8[_0x4373f0(0x1a0)](join,getEnvDir(_0x8702dc),_0x54e9d8[_0x4373f0(0x18b)]);}export async function loadSettings(_0x9edcb){const _0x4acd06={'mqczt':function(_0x342bdc,_0x15d987){return _0x342bdc(_0x15d987);},'GyCLi':function(_0x5b8c3e,_0x5be2e4){return _0x5b8c3e(_0x5be2e4);},'rAoTK':'utf-8'},_0x4b3ef3=_0x4acd06['mqczt'](getSettingsPath,_0x9edcb);if(!_0x4acd06['GyCLi'](existsSync,_0x4b3ef3))return{};try{const _0x4908ea=await readFile(_0x4b3ef3,_0x4acd06['rAoTK']);return JSON['parse'](_0x4908ea);}catch{return{};}}export async function saveSettings(_0xbed53,_0x4695f0){const _0x39fde4=_0x1354,_0x5024b2={'hXuiK':function(_0x2a2bbf,_0x368c75){return _0x2a2bbf(_0x368c75);},'egXyC':function(_0xb6c087,_0xb37559,_0x4d3347){return _0xb6c087(_0xb37559,_0x4d3347);}},_0x1b5cf4=_0x5024b2[_0x39fde4(0x1c6)](getSettingsPath,_0xbed53),_0x5c6c47=dirname(_0x1b5cf4);!_0x5024b2['hXuiK'](existsSync,_0x5c6c47)&&await _0x5024b2[_0x39fde4(0x196)](mkdir,_0x5c6c47,{'recursive':!![]}),await writeFile(_0x1b5cf4,JSON[_0x39fde4(0x181)](_0x4695f0,null,0x2));}export function resolveEnvVars(_0x6169c7){const _0xbedb43=_0x1354,_0x47be81={'VXkfe':'string','Pfdxf':function(_0x171e02,_0x33be2d){return _0x171e02===_0x33be2d;},'dOTNt':'object'};if(typeof _0x6169c7===_0x47be81[_0xbedb43(0x1ab)])return _0x6169c7[_0xbedb43(0x1c9)](/\$\{(\w+)\}/g,(_0xe21914,_0x7b080b)=>{const _0x27d37e=_0xbedb43,_0x1434d9=process[_0x27d37e(0x18a)][_0x7b080b];if(_0x1434d9===undefined)throw new Error('Environment\x20variable\x20'+_0x7b080b+_0x27d37e(0x1cb));return _0x1434d9;});if(Array[_0xbedb43(0x1c0)](_0x6169c7))return _0x6169c7['map'](resolveEnvVars);if(_0x6169c7&&_0x47be81['Pfdxf'](typeof _0x6169c7,_0x47be81['dOTNt']))return Object['fromEntries'](Object[_0xbedb43(0x17d)](_0x6169c7)[_0xbedb43(0x195)](([_0x562a88,_0x1fafee])=>[_0x562a88,resolveEnvVars(_0x1fafee)]));return _0x6169c7;}const isRecord=_0xf7a2a4=>typeof _0xf7a2a4==='object'&&_0xf7a2a4!==null&&!Array['isArray'](_0xf7a2a4),asRecord=_0xca2259=>isRecord(_0xca2259)?_0xca2259:undefined,mergeHeaders=(_0x5a088e,_0x4973a4)=>{const _0x2b7b29={..._0x5a088e??{},..._0x4973a4??{}};return Object['keys'](_0x2b7b29)['length']?_0x2b7b29:undefined;},SAFE_MODE_ARGS=[_0x106451(0x170)],ALLOW_LOCALHOST_ARGS=[_0x106451(0x185),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x28e476,_0x26ab79={}){const _0x1f9fd4=_0x106451,_0x2b8370={'VzcDG':function(_0x4687ed,_0x3ba582){return _0x4687ed(_0x3ba582);},'mLCXM':function(_0x437013,_0x5e70be){return _0x437013===_0x5e70be;},'acBeS':_0x1f9fd4(0x176),'QEYTU':function(_0x5c60d1,_0x38cd85,_0x154a37){return _0x5c60d1(_0x38cd85,_0x154a37);}},_0x3e1611=asRecord(_0x28e476['browser']),_0x134810={..._0x2b8370[_0x1f9fd4(0x172)](asRecord,_0x3e1611?.['launchOptions'])??{}};typeof _0x26ab79[_0x1f9fd4(0x1d1)]==='boolean'&&(_0x134810[_0x1f9fd4(0x1d1)]=_0x26ab79['headless']);if(_0x28e476['safeMode']){const _0x2050c1=_0x134810['args']??[],_0x394827=SAFE_MODE_ARGS['filter'](_0x223b9c=>!_0x2050c1[_0x1f9fd4(0x19c)](_0x223b9c));_0x134810['args']=[..._0x2050c1,..._0x394827];}if(_0x28e476[_0x1f9fd4(0x1b8)]){const _0x4178c0=_0x134810['args']??[],_0x248972=ALLOW_LOCALHOST_ARGS['filter'](_0x164604=>!_0x4178c0[_0x1f9fd4(0x19c)](_0x164604));_0x134810['args']=[..._0x4178c0,..._0x248972];}const _0xcbdb7b={..._0x2b8370[_0x1f9fd4(0x172)](asRecord,_0x3e1611?.['contextOptions'])??{}};_0xcbdb7b[_0x1f9fd4(0x16d)]=!![];_0x2b8370['mLCXM'](typeof _0x28e476[_0x1f9fd4(0x19d)],_0x2b8370[_0x1f9fd4(0x1a6)])&&(_0xcbdb7b[_0x1f9fd4(0x19d)]=_0x28e476[_0x1f9fd4(0x19d)]);const _0xa9860=_0x2b8370['QEYTU'](mergeHeaders,asRecord(_0xcbdb7b['extraHTTPHeaders']),asRecord(_0x28e476[_0x1f9fd4(0x1b3)]));return _0xa9860?_0xcbdb7b[_0x1f9fd4(0x17a)]=_0xa9860:delete _0xcbdb7b[_0x1f9fd4(0x17a)],_0x26ab79['storageStatePath']&&(_0xcbdb7b['storageState']=_0x26ab79[_0x1f9fd4(0x178)]),{'launchOptions':_0x134810,'contextOptions':_0xcbdb7b};}export async function buildPlaywrightConfig(_0x337fe1,_0x320404,_0x23d292,_0x30afe6){const _0x3b7c22=_0x106451,_0x4f752b={'SjnBP':function(_0x231fdf,_0x4dbb1f){return _0x231fdf===_0x4dbb1f;},'sqGhH':'--no-sandbox','jtTbK':'--disable-setuid-sandbox','mQdPT':_0x3b7c22(0x1b4),'qAXba':'clipboard-read','NAfzV':_0x3b7c22(0x19a),'qGPrk':function(_0x29cd6e,_0x360eb7,_0x5f2134){return _0x29cd6e(_0x360eb7,_0x5f2134);},'llLAY':'auth.json','YbzLR':function(_0x26b2fa){return _0x26b2fa();},'OcpcO':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','yyRBA':function(_0x5981ba,_0x142681,_0x57e895){return _0x5981ba(_0x142681,_0x57e895);},'lnajs':function(_0x4e75eb){return _0x4e75eb();},'GcXbu':function(_0x5273ff,_0x362229){return _0x5273ff(_0x362229);},'aHeWq':function(_0x25bc47){return _0x25bc47();},'RRswb':function(_0x171839,_0x36e3b8,_0x50895f,_0x5c8278){return _0x171839(_0x36e3b8,_0x50895f,_0x5c8278);},'cCoJv':'core','JQPWW':'tabs','QEBmR':_0x3b7c22(0x177),'REaWd':'pdf','uNgwU':_0x3b7c22(0x1cf),'dGnsm':function(_0x1f8f60,_0x480bdb){return _0x1f8f60===_0x480bdb;},'VRxCZ':'ranger-config','XBaej':function(_0x34f59b,_0xde679){return _0x34f59b(_0xde679);},'ebLAs':function(_0x258f58,_0x5d9a77,_0x3e4042){return _0x258f58(_0x5d9a77,_0x3e4042);}},_0x4f9374=getEnvDir(_0x320404),_0x49bf0a=join(_0x4f9374,'auth.json.enc'),_0x5522bf=_0x4f752b[_0x3b7c22(0x1ac)](join,_0x4f9374,_0x4f752b['llLAY']);let _0x3eac8d,_0x3b354c;if(existsSync(_0x49bf0a))try{const _0x46af97=await _0x4f752b[_0x3b7c22(0x1c4)](getToken);if(!_0x46af97)throw new Error(_0x4f752b[_0x3b7c22(0x183)]);const _0x205924=await readFile(_0x49bf0a),_0x22cbdc=_0x4f752b[_0x3b7c22(0x1be)](decrypt,_0x205924,_0x46af97);_0x3b354c=join(_0x4f752b[_0x3b7c22(0x1b0)](tmpdir),_0x3b7c22(0x194)+Date[_0x3b7c22(0x188)]()+'.json'),await writeFile(_0x3b354c,_0x22cbdc),_0x3eac8d=_0x3b354c;}catch(_0x1d8373){const _0x3bf378=_0x1d8373 instanceof Error?_0x1d8373['message']:_0x4f752b[_0x3b7c22(0x19e)](String,_0x1d8373);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x3bf378);}else existsSync(_0x5522bf)&&(_0x3eac8d=_0x5522bf);const _0xdbf167=_0x23d292||_0x4f752b[_0x3b7c22(0x1ae)](randomUUID),_0x53a855=_0x4f752b['RRswb'](join,getRangerDir(),_0x3b7c22(0x189),_0xdbf167),_0x1951e4=Boolean(_0x337fe1['cdpEndpoint']),_0x1ad4b2=_0x1951e4?{'browserName':_0x4f752b['mQdPT'],'cdpEndpoint':_0x337fe1[_0x3b7c22(0x191)]}:((()=>{const _0x3f2536=_0x3b7c22,{launchOptions:_0x3fbc41,contextOptions:_0x47ea49}=buildBrowserOptionsFromSettings(_0x337fe1,{'headless':_0x30afe6?![]:_0x337fe1['headless']??!![],'storageStatePath':_0x3eac8d});if(_0x4f752b['SjnBP'](process[_0x3f2536(0x1b9)]?.(),0x0)){const _0x3d1df9=[_0x4f752b[_0x3f2536(0x16c)],_0x4f752b[_0x3f2536(0x18d)]],_0xfa1c02=_0x3fbc41[_0x3f2536(0x187)]??[],_0x1d3536=_0x3d1df9[_0x3f2536(0x1c5)](_0x55e81c=>!_0xfa1c02[_0x3f2536(0x19c)](_0x55e81c));_0x3fbc41[_0x3f2536(0x187)]=[..._0xfa1c02,..._0x1d3536];}return{'isolated':!![],'browserName':_0x4f752b['mQdPT'],'launchOptions':_0x3fbc41,'contextOptions':{..._0x47ea49,'permissions':[_0x4f752b[_0x3f2536(0x1cd)],_0x4f752b['NAfzV']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xa2c13f={'name':_0x320404,'browser':_0x1ad4b2,'capabilities':[_0x4f752b['cCoJv'],_0x4f752b['JQPWW'],_0x4f752b[_0x3b7c22(0x18e)],_0x4f752b[_0x3b7c22(0x17e)],_0x3b7c22(0x1c7)],'imageResponses':_0x4f752b[_0x3b7c22(0x180)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x53a855};if(!_0x1951e4){const _0x1fbf81=_0xa2c13f[_0x3b7c22(0x171)],_0xc5c95d=_0x1fbf81[_0x3b7c22(0x1ad)];if(_0xc5c95d['userAgent']===undefined)delete _0xc5c95d[_0x3b7c22(0x19d)];if(_0x4f752b[_0x3b7c22(0x198)](_0xc5c95d['storageState'],undefined))delete _0xc5c95d[_0x3b7c22(0x173)];}const _0xe73b5a=join(tmpdir(),_0x4f752b['VRxCZ']);!_0x4f752b['XBaej'](existsSync,_0xe73b5a)&&await mkdir(_0xe73b5a,{'recursive':!![]});const _0x2aeba6=_0x4f752b[_0x3b7c22(0x1ac)](join,_0xe73b5a,_0x320404+'-'+Date['now']()+_0x3b7c22(0x1a1));return await _0x4f752b[_0x3b7c22(0x1d2)](writeFile,_0x2aeba6,JSON[_0x3b7c22(0x181)](_0xa2c13f,null,0x2)),{'configPath':_0x2aeba6,'tempAuthPath':_0x3b354c};}export async function buildPlaywrightCliConfig(_0x4a575e,_0x41ceea,_0x101105,_0x257c19){const _0x27a295=_0x106451,_0x82bcf4={'dPsOo':function(_0x3f4a4c,_0x24327c,_0x4f0237){return _0x3f4a4c(_0x24327c,_0x4f0237);},'ALvMI':_0x27a295(0x1c8),'ukAHj':'clipboard-read','RFvaZ':'clipboard-write','mFlIO':function(_0x35ab1e,_0x59f05f){return _0x35ab1e(_0x59f05f);},'xKzCs':function(_0x2ccb4c,_0x353121,_0x236ac4){return _0x2ccb4c(_0x353121,_0x236ac4);},'UbYDo':function(_0xa8d1dd,_0x4781c8,_0x20d47b){return _0xa8d1dd(_0x4781c8,_0x20d47b);},'InQGq':function(_0x399ac9,_0x54143c){return _0x399ac9 instanceof _0x54143c;},'mWcYm':function(_0x2d9c62,_0x19f67d,_0x34b040,_0x19c0e6){return _0x2d9c62(_0x19f67d,_0x34b040,_0x19c0e6);},'kdSNp':function(_0x532ebf){return _0x532ebf();},'MQWnJ':function(_0x493247,_0x176d9d){return _0x493247===_0x176d9d;},'GOpvy':function(_0x81cc59,_0x73b7bd){return _0x81cc59===_0x73b7bd;},'ekgSX':'file','jdkvn':'none','vLYpy':function(_0x3b74ca,_0x230747,_0x50fb82){return _0x3b74ca(_0x230747,_0x50fb82);},'PDyfu':function(_0x42e168,_0x163bf0,_0x368679){return _0x42e168(_0x163bf0,_0x368679);}},_0x52b5c2=getEnvDir(_0x41ceea),_0x41e094=join(_0x52b5c2,_0x27a295(0x19b)),_0x44645c=_0x82bcf4[_0x27a295(0x16f)](join,_0x52b5c2,_0x27a295(0x1cc));let _0x50f56d,_0x3460e5;if(_0x82bcf4['mFlIO'](existsSync,_0x41e094))try{const _0x25e485=await getToken();if(!_0x25e485)throw new Error(_0x27a295(0x17c));const _0x1cbba0=await readFile(_0x41e094),_0x405764=_0x82bcf4['xKzCs'](decrypt,_0x1cbba0,_0x25e485);_0x3460e5=join(tmpdir(),'ranger-auth-'+Date[_0x27a295(0x188)]()+_0x27a295(0x1a1)),await _0x82bcf4[_0x27a295(0x1d0)](writeFile,_0x3460e5,_0x405764),_0x50f56d=_0x3460e5;}catch(_0x292d56){const _0x335af6=_0x82bcf4['InQGq'](_0x292d56,Error)?_0x292d56[_0x27a295(0x1ba)]:String(_0x292d56);throw new Error(_0x27a295(0x1a3)+_0x335af6);}else _0x82bcf4[_0x27a295(0x175)](existsSync,_0x44645c)&&(_0x50f56d=_0x44645c);const _0x87f25d=_0x101105||randomUUID(),_0x375765=_0x82bcf4[_0x27a295(0x1bc)](join,_0x82bcf4['kdSNp'](getRangerDir),'sessions',_0x87f25d),_0x544654=Boolean(_0x4a575e['cdpEndpoint']),_0x4f12d8=_0x544654?{'browserName':_0x27a295(0x1b4),'cdpEndpoint':_0x4a575e['cdpEndpoint']}:((()=>{const _0x1d7f89=_0x27a295,{launchOptions:_0x35ddcc,contextOptions:_0x189fbe}=_0x82bcf4[_0x1d7f89(0x16f)](buildBrowserOptionsFromSettings,_0x4a575e,{'headless':_0x257c19?![]:_0x4a575e[_0x1d7f89(0x1d1)]??!![],'storageStatePath':_0x50f56d});if(process['getuid']?.()===0x0){const _0x2f65f9=['--no-sandbox',_0x82bcf4[_0x1d7f89(0x1ca)]],_0x547d2a=_0x35ddcc['args']??[],_0x5d170a=_0x2f65f9[_0x1d7f89(0x1c5)](_0x11f25b=>!_0x547d2a['includes'](_0x11f25b));_0x35ddcc[_0x1d7f89(0x187)]=[..._0x547d2a,..._0x5d170a];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x35ddcc,'contextOptions':{..._0x189fbe,'permissions':[_0x82bcf4[_0x1d7f89(0x1a2)],_0x82bcf4['RFvaZ']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x544654){const _0x1a62b8=_0x4f12d8['contextOptions'];if(_0x82bcf4['MQWnJ'](_0x1a62b8[_0x27a295(0x19d)],undefined))delete _0x1a62b8['userAgent'];if(_0x82bcf4[_0x27a295(0x1bb)](_0x1a62b8[_0x27a295(0x173)],undefined))delete _0x1a62b8['storageState'];}const _0x26bc88={'browser':_0x4f12d8,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x375765,'outputMode':_0x82bcf4['ekgSX'],'codegen':_0x82bcf4['jdkvn']},_0x3a57fb=join(tmpdir(),_0x27a295(0x1c3));!_0x82bcf4['mFlIO'](existsSync,_0x3a57fb)&&await _0x82bcf4['vLYpy'](mkdir,_0x3a57fb,{'recursive':!![]});const _0x4d765d=_0x82bcf4['PDyfu'](join,_0x3a57fb,_0x41ceea+'-'+Date['now']()+'-cli.json');return await writeFile(_0x4d765d,JSON['stringify'](_0x26bc88,null,0x2)),{'configPath':_0x4d765d,'tempAuthPath':_0x3460e5};}function _0x1354(_0x589410,_0x6daee0){_0x589410=_0x589410-0x169;const _0x36ebc7=_0x36eb();let _0x1354bb=_0x36ebc7[_0x589410];return _0x1354bb;}export function getNestedValue(_0x13ef25,_0x4f8e44){const _0x3d0d99=_0x106451,_0x42aa60={'CFaAr':function(_0x45738c,_0x4d4f19){return _0x45738c!==_0x4d4f19;}},_0x2aaaad=parseKeyPath(_0x4f8e44);let _0x3666e5=_0x13ef25;for(const _0x3263c2 of _0x2aaaad){if(_0x3666e5===null||_0x3666e5===undefined||_0x42aa60[_0x3d0d99(0x182)](typeof _0x3666e5,'object'))return undefined;_0x3666e5=_0x3666e5[_0x3263c2];}return _0x3666e5;}export function setNestedValue(_0x554794,_0x4455f9,_0x278c82){const _0x51fbdc=_0x106451,_0x1bcc79={'jHZGk':function(_0x5e707d,_0x1efa80){return _0x5e707d<_0x1efa80;},'UPDcN':function(_0x431c41,_0x1d63eb){return _0x431c41 in _0x1d63eb;},'dmYTj':function(_0x8d7cfb,_0x1d16e9){return _0x8d7cfb!==_0x1d16e9;}},_0x181129=parseKeyPath(_0x4455f9);let _0x1949b6=_0x554794;for(let _0x63e9c=0x0;_0x1bcc79['jHZGk'](_0x63e9c,_0x181129[_0x51fbdc(0x1bd)]-0x1);_0x63e9c++){const _0x280224=_0x181129[_0x63e9c];(!_0x1bcc79[_0x51fbdc(0x1b6)](_0x280224,_0x1949b6)||_0x1bcc79[_0x51fbdc(0x192)](typeof _0x1949b6[_0x280224],'object'))&&(_0x1949b6[_0x280224]={}),_0x1949b6=_0x1949b6[_0x280224];}_0x1949b6[_0x181129[_0x181129['length']-0x1]]=_0x278c82;}export function deleteNestedValue(_0x26a7a6,_0x5847f9){const _0x5da1fd=_0x106451,_0x166938={'lEwdm':function(_0x1a2b8a,_0x23bdb4){return _0x1a2b8a(_0x23bdb4);},'VlXfr':function(_0x58cb15,_0x34d09b){return _0x58cb15===_0x34d09b;},'ASUEX':function(_0x32aa60,_0x54e814){return _0x32aa60!==_0x54e814;},'oymsb':function(_0x3ab035,_0x35a812){return _0x3ab035!==_0x35a812;},'JTJXn':'object','FigKj':function(_0x3610cc,_0x1a76d7){return _0x3610cc in _0x1a76d7;}},_0x236803=_0x166938[_0x5da1fd(0x190)](parseKeyPath,_0x5847f9);let _0x1a6bfa=_0x26a7a6;for(let _0x110b5d=0x0;_0x110b5d<_0x236803[_0x5da1fd(0x1bd)]-0x1;_0x110b5d++){if(_0x1a6bfa===null||_0x166938['VlXfr'](_0x1a6bfa,undefined)||_0x166938['ASUEX'](typeof _0x1a6bfa,'object'))return![];_0x1a6bfa=_0x1a6bfa[_0x236803[_0x110b5d]];}if(_0x1a6bfa===null||_0x166938['VlXfr'](_0x1a6bfa,undefined)||_0x166938['oymsb'](typeof _0x1a6bfa,_0x166938[_0x5da1fd(0x17f)]))return![];const _0x5b1e16=_0x236803[_0x236803[_0x5da1fd(0x1bd)]-0x1];if(_0x166938['FigKj'](_0x5b1e16,_0x1a6bfa))return delete _0x1a6bfa[_0x5b1e16],!![];return![];}function parseKeyPath(_0x557204){const _0x56dfd0=_0x106451,_0x1b2fb3={'gZdsY':'headers','jkoHv':function(_0x2f3660,_0x267c28){return _0x2f3660===_0x267c28;},'szORH':'setupHeader'},_0x1949db=_0x557204[_0x56dfd0(0x1a4)]('.');return _0x1949db[0x0]===_0x56dfd0(0x169)&&(_0x1949db[0x0]=_0x1b2fb3['gZdsY']),_0x1b2fb3[_0x56dfd0(0x1bf)](_0x1949db[0x0],_0x1b2fb3[_0x56dfd0(0x1c2)])&&(_0x1949db[0x0]='setupHeaders'),_0x1949db;}export function formatSettings(_0x1a8d65,_0x5afa26=0x0){const _0x4f2e83=_0x106451,_0x2607e8={'LLAuO':'object','qbQIs':function(_0x272204,_0x1ec3e9){return _0x272204!==_0x1ec3e9;}},_0x8fa2ed=[],_0x16f547='\x20\x20'['repeat'](_0x5afa26);for(const [_0x39a1b1,_0x263c11]of Object[_0x4f2e83(0x17d)](_0x1a8d65)){if(_0x263c11===undefined)continue;if(typeof _0x263c11===_0x2607e8['LLAuO']&&_0x2607e8['qbQIs'](_0x263c11,null)){_0x8fa2ed[_0x4f2e83(0x1b1)](''+_0x16f547+_0x39a1b1+':');for(const [_0x193c8c,_0x2cd863]of Object[_0x4f2e83(0x17d)](_0x263c11)){_0x8fa2ed[_0x4f2e83(0x1b1)](_0x16f547+'\x20\x20'+_0x193c8c+':\x20'+_0x2cd863);}}else _0x8fa2ed['push'](''+_0x16f547+_0x39a1b1+':\x20'+_0x263c11);}return _0x8fa2ed[_0x4f2e83(0x18f)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x454994,_0x5c4387){const _0xb3101a=_0x27fe,_0x22cb6a=_0x454994();while(!![]){try{const _0x4040cc=parseInt(_0xb3101a(0x1e9))/0x1*(-parseInt(_0xb3101a(0x1e4))/0x2)+-parseInt(_0xb3101a(0x1df))/0x3+-parseInt(_0xb3101a(0x1de))/0x4+parseInt(_0xb3101a(0x1e8))/0x5+-parseInt(_0xb3101a(0x1e7))/0x6*(-parseInt(_0xb3101a(0x1e3))/0x7)+parseInt(_0xb3101a(0x1ea))/0x8*(-parseInt(_0xb3101a(0x1e2))/0x9)+parseInt(_0xb3101a(0x1e5))/0xa*(parseInt(_0xb3101a(0x1e1))/0xb);if(_0x4040cc===_0x5c4387)break;else _0x22cb6a['push'](_0x22cb6a['shift']());}catch(_0x58966){_0x22cb6a['push'](_0x22cb6a['shift']());}}}(_0x5ebf,0x7fe8f));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x27fe(_0x4b78bc,_0x21d701){_0x4b78bc=_0x4b78bc-0x1de;const _0x5ebfbf=_0x5ebf();let _0x27fe8f=_0x5ebfbf[_0x4b78bc];return _0x27fe8f;}function _0x5ebf(){const _0x2792dc=['117569mtpfcn','16rZsDEy','utf-8','436804ILKpBa','2138658wKkAJD','ranger/SKILL.md','425887PZqSCu','783495Yvxhsu','6195UTtUMK','10GgijKG','160JTztdU','Nurwc','5940nuCTca','3061695kmsAZH'];_0x5ebf=function(){return _0x2792dc;};return _0x5ebf();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x325ae8){const _0x10dacf=_0x27fe,_0xcd1768={'bjSHB':function(_0x21c232,_0x32f723,_0x5d21c2,_0x3082f7,_0x1bce5a){return _0x21c232(_0x32f723,_0x5d21c2,_0x3082f7,_0x1bce5a);},'Nurwc':function(_0x18e39f,_0x2d8bd1,_0x3fbd2e){return _0x18e39f(_0x2d8bd1,_0x3fbd2e);},'EGTYe':_0x10dacf(0x1eb)},_0x2d9555=_0xcd1768['bjSHB'](join,__dirname,'..','..','skills'),_0x626d82=join(_0x2d9555,_0x325ae8);try{return _0xcd1768[_0x10dacf(0x1e6)](readFileSync,_0x626d82,_0xcd1768['EGTYe']);}catch{return'';}}export function getRangerSkillContent(){const _0x426ed2=_0x27fe,_0xc2bea0={'YdkJV':function(_0x353150,_0xf35b9){return _0x353150(_0xf35b9);},'qDuSS':_0x426ed2(0x1e0)};return _0xc2bea0['YdkJV'](readSkillContent,_0xc2bea0['qDuSS']);}
1
+ (function(_0x1be7c6,_0x1616f7){const _0x4d3cb2=_0x4d95,_0x1f695f=_0x1be7c6();while(!![]){try{const _0x946c01=parseInt(_0x4d3cb2(0x146))/0x1+-parseInt(_0x4d3cb2(0x13d))/0x2*(-parseInt(_0x4d3cb2(0x144))/0x3)+parseInt(_0x4d3cb2(0x140))/0x4+parseInt(_0x4d3cb2(0x145))/0x5*(parseInt(_0x4d3cb2(0x142))/0x6)+-parseInt(_0x4d3cb2(0x143))/0x7+parseInt(_0x4d3cb2(0x13c))/0x8*(-parseInt(_0x4d3cb2(0x141))/0x9)+-parseInt(_0x4d3cb2(0x13b))/0xa;if(_0x946c01===_0x1616f7)break;else _0x1f695f['push'](_0x1f695f['shift']());}catch(_0x58591e){_0x1f695f['push'](_0x1f695f['shift']());}}}(_0x502a,0x4ba88));function _0x502a(){const _0x1b0b7e=['7042000AlznYj','40DzhZqZ','410594DrQGsJ','rOscG','utf-8','1831032tXWOst','674091kSkOfx','24YYHwoy','1770377CJnqxg','3gbaJID','465720lkjzUi','605871FROSdr','AqedV'];_0x502a=function(){return _0x1b0b7e;};return _0x502a();}import{readFileSync}from'fs';function _0x4d95(_0x3d9c7c,_0x2d689){_0x3d9c7c=_0x3d9c7c-0x13a;const _0x502a84=_0x502a();let _0x4d95a8=_0x502a84[_0x3d9c7c];return _0x4d95a8;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x566b2b){const _0xd78fa5=_0x4d95,_0x3b4caf={'SFFmA':function(_0x4a8b4c,_0x5b7e57,_0x3613a2,_0x21556f,_0x5edeb7){return _0x4a8b4c(_0x5b7e57,_0x3613a2,_0x21556f,_0x5edeb7);},'AqedV':function(_0xcd4f58,_0x1d44ab,_0x1a1bd4){return _0xcd4f58(_0x1d44ab,_0x1a1bd4);}},_0x51df53=_0x3b4caf['SFFmA'](join,__dirname,'..','..','skills'),_0x41d5a1=join(_0x51df53,_0x566b2b);try{return _0x3b4caf[_0xd78fa5(0x13a)](readFileSync,_0x41d5a1,_0xd78fa5(0x13f));}catch{return'';}}export function getRangerSkillContent(){const _0x1487eb=_0x4d95,_0x1e26c8={'rOscG':'ranger/SKILL.md'};return readSkillContent(_0x1e26c8[_0x1487eb(0x13e)]);}
@@ -1 +1 @@
1
- const _0x49c2b6=_0x439d;function _0x439d(_0x238723,_0x1331a4){_0x238723=_0x238723-0xb5;const _0x36f24b=_0x36f2();let _0x439de9=_0x36f24b[_0x238723];return _0x439de9;}(function(_0x3e1c02,_0x2454eb){const _0x509beb=_0x439d,_0x2eae06=_0x3e1c02();while(!![]){try{const _0x26c872=parseInt(_0x509beb(0xd5))/0x1*(parseInt(_0x509beb(0xb5))/0x2)+parseInt(_0x509beb(0xbe))/0x3*(parseInt(_0x509beb(0xca))/0x4)+parseInt(_0x509beb(0xda))/0x5*(-parseInt(_0x509beb(0xd9))/0x6)+parseInt(_0x509beb(0xc8))/0x7+-parseInt(_0x509beb(0xdc))/0x8*(-parseInt(_0x509beb(0xc7))/0x9)+-parseInt(_0x509beb(0xc3))/0xa*(parseInt(_0x509beb(0xbc))/0xb)+-parseInt(_0x509beb(0xbd))/0xc;if(_0x26c872===_0x2454eb)break;else _0x2eae06['push'](_0x2eae06['shift']());}catch(_0x53b196){_0x2eae06['push'](_0x2eae06['shift']());}}}(_0x36f2,0x570c3));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x49c2b6(0xd6),_0x49c2b6(0xce),_0x49c2b6(0xc2)];export async function installSkill(_0x206bcd,_0x3efa17={}){const _0x3f0402=_0x49c2b6,_0x5140c0={'cZeaz':function(_0x6228e9,_0x1d7650,_0x1dec69){return _0x6228e9(_0x1d7650,_0x1dec69);},'IdxKD':function(_0x46fde6,_0x2e7bd5){return _0x46fde6(_0x2e7bd5);},'YLSQB':function(_0x32476b,_0x29fb02){return _0x32476b(_0x29fb02);},'HYCuD':function(_0x40596a,_0x41cc61){return _0x40596a(_0x41cc61);},'UeohL':'SKILL.md','jebTr':function(_0x516f86,_0x5d8b8b){return _0x516f86===_0x5d8b8b;},'jtQxu':_0x3f0402(0xc6),'hbvVu':function(_0x41cc0d,_0x2b0c8d){return _0x41cc0d(_0x2b0c8d);},'HcWjJ':function(_0x565274,_0x363f79,_0x19789c,_0x421f73){return _0x565274(_0x363f79,_0x19789c,_0x421f73);}},{level:level=_0x3f0402(0xb8),cliVersion:_0x19f40c,platform:platform='claude'}=_0x3efa17,_0x3edf89=getSourceSkillsDir(),_0x13e687=_0x5140c0[_0x3f0402(0xd3)](join,_0x3edf89,_0x206bcd),_0x2ec2ca=join(_0x3edf89,_0x206bcd+_0x3f0402(0xc1)),_0x3d94c1=_0x5140c0['IdxKD'](existsSync,_0x13e687)&&_0x5140c0[_0x3f0402(0xbf)](statSync,_0x13e687)['isDirectory']()&&_0x5140c0['HYCuD'](existsSync,join(_0x13e687,_0x5140c0[_0x3f0402(0xd4)])),_0x26db89=existsSync(_0x2ec2ca);if(!_0x3d94c1&&!_0x26db89)return console[_0x3f0402(0xd0)](_0x3f0402(0xe0)+_0x206bcd),![];const _0x54c210=_0x5140c0[_0x3f0402(0xdd)](platform,_0x5140c0['jtQxu'])?getOpencodeSkillsDir(level):_0x5140c0[_0x3f0402(0xc0)](getSkillsDir,level),_0x4b69ab=_0x5140c0[_0x3f0402(0xd3)](join,_0x54c210,_0x206bcd);await mkdir(_0x4b69ab,{'recursive':!![]});let _0x42c290,_0x33c90c=[];if(_0x3d94c1){const _0x407202=await _0x5140c0['HYCuD'](readdir,_0x13e687),_0x306b9a=_0x407202[_0x3f0402(0xc4)](_0x337f57=>_0x337f57[_0x3f0402(0xb9)]('.md'));for(const _0x1a12c1 of _0x306b9a){const _0xfe0cf6=_0x5140c0[_0x3f0402(0xd3)](join,_0x13e687,_0x1a12c1),_0x4121a0=join(_0x4b69ab,_0x1a12c1);await _0x5140c0[_0x3f0402(0xd3)](copyFile,_0xfe0cf6,_0x4121a0),_0x33c90c[_0x3f0402(0xcf)](_0x1a12c1);}_0x42c290=await _0x5140c0['cZeaz'](readFile,join(_0x13e687,_0x5140c0['UeohL']),'utf-8');}else{_0x42c290=await readFile(_0x2ec2ca,_0x3f0402(0xdf));const _0x53360f=join(_0x4b69ab,_0x5140c0[_0x3f0402(0xd4)]);await writeFile(_0x53360f,_0x42c290,'utf-8'),_0x33c90c['push'](_0x5140c0[_0x3f0402(0xd4)]);}const {name:_0x4a1b37}=parseFrontmatter(_0x42c290);return console[_0x3f0402(0xb7)]('\x20\x20Installed\x20skill:\x20'+_0x4a1b37),console[_0x3f0402(0xb7)](_0x3f0402(0xd7)+_0x4b69ab),_0x33c90c[_0x3f0402(0xc9)]>0x1&&console['log'](_0x3f0402(0xdb)+_0x33c90c['join'](',\x20')),_0x5140c0['HcWjJ'](logLocalAgentInstallation,_0x206bcd,{'skillDisplayName':_0x4a1b37,'installLevel':level},_0x19f40c)[_0x3f0402(0xde)](()=>{}),!![];}function getSourceSkillsDir(){const _0x227b34=_0x49c2b6,_0x5c9b44={'xmoRN':function(_0x374365,_0x55cc49,_0x38a63f,_0x46322d,_0x3475ac,_0x1cfb22){return _0x374365(_0x55cc49,_0x38a63f,_0x46322d,_0x3475ac,_0x1cfb22);},'MqkiN':_0x227b34(0xcd),'VDfgp':function(_0x1028ec,_0xeb1120){return _0x1028ec(_0xeb1120);}},_0x275993=[join(__dirname,'..','..','skills'),_0x5c9b44[_0x227b34(0xc5)](join,__dirname,'..','..','..',_0x5c9b44[_0x227b34(0xcc)])];for(const _0x299059 of _0x275993){if(_0x5c9b44[_0x227b34(0xcb)](existsSync,_0x299059))return _0x299059;}return _0x275993[0x0];}function _0x36f2(){const _0x47d17f=['bug-bash','push','warn','uekpR','zmAqf','cZeaz','UeohL','3694iagplL','e2e-test-recommender','\x20\x20Location:\x20','trim','27060DYpPrS','775pAJnNj','\x20\x20Files:\x20','8fzusQz','jebTr','catch','utf-8','\x20\x20Skill\x20not\x20found:\x20','226ZMbHUH','match','log','project','endsWith','Invalid\x20skill\x20frontmatter','fpxNy','121616dvVvOO','893304HxInUr','12ghCTOw','YLSQB','hbvVu','.md','feature-tracker','470ZaRfUt','filter','xmoRN','opencode','1679499YnekVA','3590790JfqfzU','length','532668uBIBSX','VDfgp','MqkiN','skills'];_0x36f2=function(){return _0x47d17f;};return _0x36f2();}function parseFrontmatter(_0x2efe42){const _0xcd9471=_0x49c2b6,_0x28a6a5={'fpxNy':_0xcd9471(0xba)},_0x53f7c8=_0x2efe42[_0xcd9471(0xb6)](/^---\n([\s\S]+?)\n---/);if(!_0x53f7c8)throw new Error(_0x28a6a5[_0xcd9471(0xbb)]);const _0x2627ba=_0x53f7c8[0x1],_0x209d7d=_0x2627ba['match'](/name:\s*(.+)/),_0x206aa1=_0x2627ba['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x209d7d?.[0x1]['trim']()||'','description':_0x206aa1?.[0x1][_0xcd9471(0xd8)]()||''};}export async function removeSkill(_0x3edc84,_0x5b34e7){const _0x307022=_0x49c2b6,_0x24eac4={'uekpR':function(_0x3fe62b,_0x2baeb6){return _0x3fe62b(_0x2baeb6);},'zmAqf':function(_0x453b28,_0x2d21a0,_0x592925){return _0x453b28(_0x2d21a0,_0x592925);}},_0xc005ac=getSkillsDir(_0x5b34e7),_0x1fbf9c=join(_0xc005ac,_0x3edc84);if(!_0x24eac4[_0x307022(0xd1)](existsSync,_0x1fbf9c))return![];try{return await _0x24eac4[_0x307022(0xd2)](rm,_0x1fbf9c,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x3edc84),!![];}catch{return console[_0x307022(0xd0)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x3edc84),![];}}
1
+ const _0x1aa37a=_0x4103;(function(_0x3f4dff,_0x1de582){const _0x5de9d0=_0x4103,_0x5aaa03=_0x3f4dff();while(!![]){try{const _0x3afa14=-parseInt(_0x5de9d0(0x1d4))/0x1*(-parseInt(_0x5de9d0(0x1e6))/0x2)+-parseInt(_0x5de9d0(0x1da))/0x3+-parseInt(_0x5de9d0(0x1cc))/0x4*(-parseInt(_0x5de9d0(0x1d6))/0x5)+parseInt(_0x5de9d0(0x1c8))/0x6*(-parseInt(_0x5de9d0(0x1e7))/0x7)+parseInt(_0x5de9d0(0x1de))/0x8+-parseInt(_0x5de9d0(0x1ce))/0x9+-parseInt(_0x5de9d0(0x1d0))/0xa*(-parseInt(_0x5de9d0(0x1cb))/0xb);if(_0x3afa14===_0x1de582)break;else _0x5aaa03['push'](_0x5aaa03['shift']());}catch(_0x5727de){_0x5aaa03['push'](_0x5aaa03['shift']());}}}(_0xa1dd,0xb85c8));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0x4103(_0x4b9a79,_0x42cf58){_0x4b9a79=_0x4b9a79-0x1c7;const _0xa1ddf1=_0xa1dd();let _0x4103f8=_0xa1ddf1[_0x4b9a79];return _0x4103f8;}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x1aa37a(0x1e0),'feature-tracker'];export async function installSkill(_0x5cee02,_0x2dea26={}){const _0x20d498=_0x1aa37a,_0x43e53f={'LDuoW':'project','NNOKp':_0x20d498(0x1d7),'ACwvn':function(_0x3b6d23,_0x37b360,_0x556572){return _0x3b6d23(_0x37b360,_0x556572);},'jQnNP':function(_0x3df868,_0x148e01){return _0x3df868(_0x148e01);},'lfTuq':function(_0x258127,_0x3e6031){return _0x258127(_0x3e6031);},'GoRIB':function(_0x3073ab,_0x19b541){return _0x3073ab(_0x19b541);},'yxdKc':function(_0x4f52d7,_0x583671){return _0x4f52d7&&_0x583671;},'boNrd':'opencode','taNgc':function(_0x5670b2,_0x25d804,_0xb749d7){return _0x5670b2(_0x25d804,_0xb749d7);},'KMRcT':function(_0x5c730a,_0x5b8392,_0x4c00be){return _0x5c730a(_0x5b8392,_0x4c00be);},'xVtYU':_0x20d498(0x1e1),'Rivah':'utf-8','arqqT':function(_0x202ede,_0x438bcd,_0x5aae41){return _0x202ede(_0x438bcd,_0x5aae41);},'LAWTN':function(_0x50b3c3,_0x13658f){return _0x50b3c3>_0x13658f;},'xVMYN':function(_0x336123,_0x139ae5,_0x58c33e,_0x5a418a){return _0x336123(_0x139ae5,_0x58c33e,_0x5a418a);}},{level:level=_0x43e53f[_0x20d498(0x1d2)],cliVersion:_0x162b9e,platform:platform=_0x43e53f['NNOKp']}=_0x2dea26,_0x5a63a9=getSourceSkillsDir(),_0xce72c1=_0x43e53f['ACwvn'](join,_0x5a63a9,_0x5cee02),_0x3657b2=join(_0x5a63a9,_0x5cee02+_0x20d498(0x1dc)),_0x3229e0=_0x43e53f['jQnNP'](existsSync,_0xce72c1)&&_0x43e53f['lfTuq'](statSync,_0xce72c1)[_0x20d498(0x1db)]()&&existsSync(join(_0xce72c1,_0x20d498(0x1e1))),_0x132452=_0x43e53f['GoRIB'](existsSync,_0x3657b2);if(_0x43e53f[_0x20d498(0x1e2)](!_0x3229e0,!_0x132452))return console[_0x20d498(0x1d1)](_0x20d498(0x1dd)+_0x5cee02),![];const _0x57c589=platform===_0x43e53f['boNrd']?getOpencodeSkillsDir(level):getSkillsDir(level),_0x3ab815=_0x43e53f['taNgc'](join,_0x57c589,_0x5cee02);await _0x43e53f['KMRcT'](mkdir,_0x3ab815,{'recursive':!![]});let _0x3a73e3,_0x5213e2=[];if(_0x3229e0){const _0x5c1a05=await readdir(_0xce72c1),_0x487a89=_0x5c1a05['filter'](_0x12a7eb=>_0x12a7eb['endsWith']('.md'));for(const _0x14a2b2 of _0x487a89){const _0x965527=join(_0xce72c1,_0x14a2b2),_0x18521e=_0x43e53f['taNgc'](join,_0x3ab815,_0x14a2b2);await _0x43e53f[_0x20d498(0x1e3)](copyFile,_0x965527,_0x18521e),_0x5213e2['push'](_0x14a2b2);}_0x3a73e3=await readFile(join(_0xce72c1,_0x43e53f['xVtYU']),_0x43e53f[_0x20d498(0x1cd)]);}else{_0x3a73e3=await readFile(_0x3657b2,_0x20d498(0x1e4));const _0x1d7444=_0x43e53f['arqqT'](join,_0x3ab815,_0x20d498(0x1e1));await writeFile(_0x1d7444,_0x3a73e3,'utf-8'),_0x5213e2['push'](_0x43e53f['xVtYU']);}const {name:_0x20b637}=_0x43e53f[_0x20d498(0x1c9)](parseFrontmatter,_0x3a73e3);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x20b637),console[_0x20d498(0x1ca)](_0x20d498(0x1d5)+_0x3ab815),_0x43e53f['LAWTN'](_0x5213e2['length'],0x1)&&console[_0x20d498(0x1ca)]('\x20\x20Files:\x20'+_0x5213e2['join'](',\x20')),_0x43e53f['xVMYN'](logLocalAgentInstallation,_0x5cee02,{'skillDisplayName':_0x20b637,'installLevel':level},_0x162b9e)[_0x20d498(0x1c7)](()=>{}),!![];}function getSourceSkillsDir(){const _0x1f2791=_0x1aa37a,_0x1fc216={'kvjce':function(_0x49306e,_0x2dd1a4,_0x5d1805,_0x31c44a,_0x3a233b){return _0x49306e(_0x2dd1a4,_0x5d1805,_0x31c44a,_0x3a233b);},'qzfsj':function(_0x58a540,_0x922df0,_0x2358af,_0x3ad112,_0x1e68ef,_0x303a13){return _0x58a540(_0x922df0,_0x2358af,_0x3ad112,_0x1e68ef,_0x303a13);},'VzEsx':_0x1f2791(0x1d8),'neYIW':function(_0x3951e2,_0x50ef91){return _0x3951e2(_0x50ef91);}},_0x309069=[_0x1fc216['kvjce'](join,__dirname,'..','..','skills'),_0x1fc216[_0x1f2791(0x1d9)](join,__dirname,'..','..','..',_0x1fc216[_0x1f2791(0x1df)])];for(const _0x5ae98d of _0x309069){if(_0x1fc216[_0x1f2791(0x1cf)](existsSync,_0x5ae98d))return _0x5ae98d;}return _0x309069[0x0];}function parseFrontmatter(_0x224a50){const _0x183207=_0x1aa37a,_0x1dfa32={'SvpQn':'Invalid\x20skill\x20frontmatter'},_0x5070ee=_0x224a50[_0x183207(0x1d3)](/^---\n([\s\S]+?)\n---/);if(!_0x5070ee)throw new Error(_0x1dfa32['SvpQn']);const _0x287a24=_0x5070ee[0x1],_0xb3fa02=_0x287a24['match'](/name:\s*(.+)/),_0x4a7f13=_0x287a24['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xb3fa02?.[0x1][_0x183207(0x1e5)]()||'','description':_0x4a7f13?.[0x1][_0x183207(0x1e5)]()||''};}function _0xa1dd(){const _0x56c971=['neYIW','20LLpWlR','warn','LDuoW','match','3xOqMwd','\x20\x20Location:\x20','13955XDxVRx','claude','skills','qzfsj','3949932MfRThs','isDirectory','.md','\x20\x20Skill\x20not\x20found:\x20','7252992qxtrko','VzEsx','bug-bash','SKILL.md','yxdKc','KMRcT','utf-8','trim','493042ORmBKA','588469SYRLft','catch','54lxnQBl','lfTuq','log','3102275mbxNrg','1208PwzVzT','Rivah','2022552NzvXti'];_0xa1dd=function(){return _0x56c971;};return _0xa1dd();}export async function removeSkill(_0x5c0e9a,_0x881d0f){const _0x1ae178=_0x1aa37a,_0x2803e6={'rrDAB':function(_0x295a7f,_0x3bc2de){return _0x295a7f(_0x3bc2de);}},_0x1607e7=_0x2803e6['rrDAB'](getSkillsDir,_0x881d0f),_0xceb4f3=join(_0x1607e7,_0x5c0e9a);if(!existsSync(_0xceb4f3))return![];try{return await rm(_0xceb4f3,{'recursive':!![]}),console[_0x1ae178(0x1ca)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x5c0e9a),!![];}catch{return console[_0x1ae178(0x1d1)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5c0e9a),![];}}