@ranger-testing/ranger-cli 2.4.0 → 2.4.1

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 (70) 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/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/reportGenerator.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/build/commands/verifyInBrowser.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x5ed245=_0x1333;(function(_0x1d1eae,_0xa5fe63){const _0x4d4706=_0x1333,_0x426d2e=_0x1d1eae();while(!![]){try{const _0x30a24e=-parseInt(_0x4d4706(0x1be))/0x1*(-parseInt(_0x4d4706(0x1d7))/0x2)+parseInt(_0x4d4706(0x1c9))/0x3+-parseInt(_0x4d4706(0x1dd))/0x4+parseInt(_0x4d4706(0x1d4))/0x5+-parseInt(_0x4d4706(0x1c1))/0x6*(-parseInt(_0x4d4706(0x1e0))/0x7)+parseInt(_0x4d4706(0x1bb))/0x8*(-parseInt(_0x4d4706(0x1cd))/0x9)+-parseInt(_0x4d4706(0x1e5))/0xa;if(_0x30a24e===_0xa5fe63)break;else _0x426d2e['push'](_0x426d2e['shift']());}catch(_0x5513b7){_0x426d2e['push'](_0x426d2e['shift']());}}}(_0xd7c2,0xb24c3));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x5ed245(0x1c5);function _0x1333(_0x3c5690,_0x1afcc4){_0x3c5690=_0x3c5690-0x1ba;const _0xd7c24e=_0xd7c2();let _0x1333a6=_0xd7c24e[_0x3c5690];return _0x1333a6;}function toPlaywrightCliSessionKey(_0x2f4662){const _0x458a3e=_0x5ed245,_0x5f506d={'eQtsV':function(_0x1dcd1c,_0x7aa047){return _0x1dcd1c(_0x7aa047);},'VLgUl':'sha256'},_0x1d723d=_0x5f506d['eQtsV'](createHash,_0x5f506d[_0x458a3e(0x1dc)])['update'](_0x2f4662)['digest']('hex')[_0x458a3e(0x1cb)](0x0,0xc);return'rg-'+_0x1d723d;}function shellQuote(_0x15871c){const _0x403212=_0x5ed245;return'\x27'+_0x15871c[_0x403212(0x1c0)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x57951a){return SAFE_SHELL_TOKEN['test'](_0x57951a)?_0x57951a:shellQuote(_0x57951a);}export function buildPlaywrightCliInvocation(_0xc3155b,_0x229bf7,_0x12870b){const _0x3c4fea=_0x5ed245,_0x4cc469={'TADaj':function(_0x862b0b,_0x480e88){return _0x862b0b(_0x480e88);},'VzHBi':_0x3c4fea(0x1d3),'rPZSK':_0x3c4fea(0x1de)},_0x2c36bc=_0x4cc469[_0x3c4fea(0x1cf)](toPlaywrightCliSessionKey,_0xc3155b),[_0x17627b=_0x4cc469[_0x3c4fea(0x1c3)]]=_0x12870b,_0x28e66a=[PLAYWRIGHT_CLI_BINARY,_0x3c4fea(0x1d5)+_0x2c36bc,_0x4cc469['rPZSK'],_0x229bf7,..._0x12870b];return{'command':_0x3c4fea(0x1c4),'args':_0x28e66a,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x2c36bc),'--config',quoteShellArg(_0x229bf7),..._0x12870b[_0x3c4fea(0x1e3)](quoteShellArg)][_0x3c4fea(0x1ce)]('\x20'),'subcommand':_0x17627b};}export function buildPlaywrightCliCommandPrefix(_0x46be8a,_0xb6a7c){const _0x5f59ae=_0x5ed245,_0x9af122={'NGoom':function(_0x439e05,_0x2bce68){return _0x439e05(_0x2bce68);},'DDScK':'--config'},_0x501e22=_0x9af122['NGoom'](toPlaywrightCliSessionKey,_0x46be8a);return['npx',PLAYWRIGHT_CLI_BINARY,_0x5f59ae(0x1d5)+quoteShellArg(_0x501e22),_0x9af122[_0x5f59ae(0x1da)],_0x9af122['NGoom'](quoteShellArg,_0xb6a7c)][_0x5f59ae(0x1ce)]('\x20');}function truncateOutput(_0x1c1993,_0x50f55e=0x7d0){const _0x329473=_0x5ed245,_0x22cf53={'OEjZU':function(_0xeeadfb,_0x1fd0d5){return _0xeeadfb+_0x1fd0d5;},'ofTni':_0x329473(0x1e2)};return _0x1c1993[_0x329473(0x1d2)]>_0x50f55e?_0x22cf53[_0x329473(0x1bc)](_0x1c1993[_0x329473(0x1cb)](0x0,_0x50f55e),_0x22cf53['ofTni']):_0x1c1993;}export async function runPlaywrightCliCommand(_0x170f70){const _0x124da7=_0x5ed245,_0x484ae7={'ZqaoK':function(_0x126ab8,_0x154868){return _0x126ab8(_0x154868);},'Ghixc':function(_0x21d63c,_0x5ad9c7){return _0x21d63c??_0x5ad9c7;},'qjQGM':'ignore','oZfVA':_0x124da7(0x1c2),'vvlrH':_0x124da7(0x1e6)},_0x5bfae7=buildPlaywrightCliInvocation(_0x170f70[_0x124da7(0x1d8)],_0x170f70['configPath'],_0x170f70['commandArgs']);return new Promise((_0x3e36d3,_0x4c7a66)=>{const _0x52f941=_0x124da7,_0x50bf11={'XSFdE':function(_0x97b8ca,_0x27b13a){const _0x44cdc0=_0x1333;return _0x484ae7[_0x44cdc0(0x1bd)](_0x97b8ca,_0x27b13a);},'VzseX':function(_0x2aedbd,_0x3065be){return _0x2aedbd===_0x3065be;},'ckaVR':function(_0x596da1,_0x5771ae){const _0x4e0038=_0x1333;return _0x484ae7[_0x4e0038(0x1ca)](_0x596da1,_0x5771ae);},'VrFIn':function(_0x5c8fdf,_0x3d2d66){return _0x5c8fdf??_0x3d2d66;},'SqLRq':function(_0x4cf1f1,_0x2c8caa){return _0x4cf1f1(_0x2c8caa);}},_0x3913cb=spawn(_0x5bfae7['command'],_0x5bfae7['args'],{'cwd':_0x170f70['cwd'],'env':_0x170f70[_0x52f941(0x1c8)],'stdio':[_0x484ae7['qjQGM'],'pipe','pipe']});let _0x4a53a5='',_0x4eced8='',_0x5705c8=![];const _0x5aaac5=_0x170f70[_0x52f941(0x1d0)]&&_0x170f70[_0x52f941(0x1d0)]>0x0?setTimeout(()=>{const _0x80541d=_0x52f941;_0x5705c8=!![],_0x3913cb[_0x80541d(0x1d6)]('SIGTERM'),setTimeout(()=>{try{_0x3913cb['kill']('SIGKILL');}catch{}},0x3e8);},_0x170f70['timeoutMs']):null;_0x3913cb['stdout']?.['on'](_0x484ae7['oZfVA'],_0x1bee76=>{const _0x2129f1=_0x52f941;_0x4a53a5+=_0x1bee76[_0x2129f1(0x1df)]();}),_0x3913cb['stderr']?.['on'](_0x484ae7['oZfVA'],_0x3d4e7a=>{const _0x4b66d8=_0x52f941;_0x4eced8+=_0x3d4e7a[_0x4b66d8(0x1df)]();}),_0x3913cb['on'](_0x484ae7[_0x52f941(0x1e4)],_0x2630f9=>{if(_0x5aaac5)clearTimeout(_0x5aaac5);_0x4c7a66(_0x2630f9);}),_0x3913cb['on'](_0x52f941(0x1ba),(_0x5c3267,_0x34dcd3)=>{const _0x26c913=_0x52f941;if(_0x5aaac5)_0x50bf11[_0x26c913(0x1e1)](clearTimeout,_0x5aaac5);if(_0x50bf11[_0x26c913(0x1c7)](_0x5c3267,0x0)){_0x50bf11['XSFdE'](_0x3e36d3,{'stdout':_0x4a53a5,'stderr':_0x4eced8,'invocation':_0x5bfae7});return;}const _0x3bad69=_0x5705c8?_0x26c913(0x1d1)+_0x170f70['timeoutMs']+'ms':'exited\x20with\x20code='+_0x50bf11['ckaVR'](_0x5c3267,'null')+'\x20signal='+_0x50bf11['VrFIn'](_0x34dcd3,'null');_0x4c7a66(new Error(_0x26c913(0x1c6)+_0x5bfae7['subcommand']+'\x20'+_0x3bad69+_0x26c913(0x1db)+_0x50bf11['SqLRq'](truncateOutput,_0x4a53a5)+_0x26c913(0x1cc)+truncateOutput(_0x4eced8)));});});}export function extractBashCommand(_0x38bc1e){const _0x4c6d05=_0x5ed245,_0x4cfddb={'tVxew':'command','YFAQw':function(_0x56a84a,_0x228e38){return _0x56a84a===_0x228e38;}},_0x1cce79=[_0x4cfddb['tVxew'],'cmd','script','bash_command'];for(const _0x342c4d of _0x1cce79){const _0x4252c3=_0x38bc1e[_0x342c4d];if(_0x4cfddb['YFAQw'](typeof _0x4252c3,_0x4c6d05(0x1d9))&&_0x4252c3['trim']())return _0x4252c3;}const _0x4441ee=Object['values'](_0x38bc1e)[_0x4c6d05(0x1bf)](_0x2cb9b4=>typeof _0x2cb9b4===_0x4c6d05(0x1d9)&&_0x2cb9b4['trim']()[_0x4c6d05(0x1d2)]>0x0);return _0x4441ee??null;}function _0xd7c2(){const _0x1787f7=['2683820glYyJW','--config','toString','35hXZBHi','XSFdE','...','map','vvlrH','22650030hMULUd','error','close','280gtcQgQ','OEjZU','ZqaoK','131797XDdJQC','find','replace','420078jEJRmY','data','VzHBi','npx','@playwright/cli','playwright-cli\x20','VzseX','env','2303094qdAkEd','Ghixc','slice','\x0astderr:\x20','67563oTlaIU','join','TADaj','timeoutMs','timed\x20out\x20after\x20','length','unknown','6807400HcsJvJ','-s=','kill','22BDfBuN','sessionId','string','DDScK','\x0astdout:\x20','VLgUl'];_0xd7c2=function(){return _0x1787f7;};return _0xd7c2();}export function parsePlaywrightCliCommand(_0x4865bf){const _0x2d6918=_0x4865bf['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x2d6918?.[0x1]??null;}
1
+ function _0x1121(){const _0xc2211=['pipe','\x0astderr:\x20','vSZIG','soaiJ','exited\x20with\x20code=','FYTSq','join','hhbVO','SIGKILL','null','2137385LSrXPs','sha256','toString','error','\x20signal=','match','kgDzC','-s=','--config','data','subcommand','commandArgs','hEJME','trim','update','npx','string','timeoutMs','sessionId','14099110gMeTAP','\x27\x5c\x27\x27','6ezWLJw','QfznG','timed\x20out\x20after\x20','GfukQ','4143816iFvUiD','5675215YhgagH','find','ILvPW','fflXa','RqfQW','4829440BwDJyx','bUJoD','stderr','replace','bWBsQ','values','LoGPn','icqUu','kill','length','close','1275720absMEE','slice','1KOGCvH','3rZBqwF','ynUZJ','SIGTERM','1101382OrCtDQ'];_0x1121=function(){return _0xc2211;};return _0x1121();}(function(_0x268901,_0x57191b){const _0x4dee39=_0x2440,_0x255ef4=_0x268901();while(!![]){try{const _0xf30210=parseInt(_0x4dee39(0xf4))/0x1*(parseInt(_0x4dee39(0xf8))/0x2)+parseInt(_0x4dee39(0xf5))/0x3*(parseInt(_0x4dee39(0xf2))/0x4)+parseInt(_0x4dee39(0xc8))/0x5*(parseInt(_0x4dee39(0xdd))/0x6)+parseInt(_0x4dee39(0xe2))/0x7+-parseInt(_0x4dee39(0xe7))/0x8+parseInt(_0x4dee39(0xe1))/0x9+-parseInt(_0x4dee39(0xdb))/0xa;if(_0xf30210===_0x57191b)break;else _0x255ef4['push'](_0x255ef4['shift']());}catch(_0x3179a6){_0x255ef4['push'](_0x255ef4['shift']());}}}(_0x1121,0x876b4));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x1bad51){const _0x59be8a=_0x2440,_0x22cf1c={'vSZIG':function(_0x1a1d5e,_0xaaf31f){return _0x1a1d5e(_0xaaf31f);},'LoGPn':_0x59be8a(0xc9),'UUqai':'hex'},_0x1607ba=_0x22cf1c[_0x59be8a(0xfb)](createHash,_0x22cf1c[_0x59be8a(0xed)])[_0x59be8a(0xd6)](_0x1bad51)['digest'](_0x22cf1c['UUqai'])[_0x59be8a(0xf3)](0x0,0xc);return'rg-'+_0x1607ba;}function shellQuote(_0xf3bc66){const _0x4592e3=_0x2440;return'\x27'+_0xf3bc66[_0x4592e3(0xea)](/'/g,_0x4592e3(0xdc))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x3dd179){return SAFE_SHELL_TOKEN['test'](_0x3dd179)?_0x3dd179:shellQuote(_0x3dd179);}export function buildPlaywrightCliInvocation(_0x35e967,_0x650d0e,_0x4fa49c){const _0xdb0e8d=_0x2440,_0x1da366={'uEZPV':'unknown','biGmp':_0xdb0e8d(0xd7),'WHjvk':function(_0x329039,_0xc10965){return _0x329039(_0xc10965);},'hhbVO':_0xdb0e8d(0xd0)},_0x4f119a=toPlaywrightCliSessionKey(_0x35e967),[_0x4acaae=_0x1da366['uEZPV']]=_0x4fa49c,_0x21a785=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4f119a,_0xdb0e8d(0xd0),_0x650d0e,..._0x4fa49c];return{'command':_0x1da366['biGmp'],'args':_0x21a785,'shellCommand':[_0x1da366['biGmp'],PLAYWRIGHT_CLI_BINARY,_0xdb0e8d(0xcf)+_0x1da366['WHjvk'](quoteShellArg,_0x4f119a),_0x1da366[_0xdb0e8d(0x100)],quoteShellArg(_0x650d0e),..._0x4fa49c['map'](quoteShellArg)][_0xdb0e8d(0xff)]('\x20'),'subcommand':_0x4acaae};}function _0x2440(_0x228bda,_0x210127){_0x228bda=_0x228bda-0xc7;const _0x112105=_0x1121();let _0x244088=_0x112105[_0x228bda];return _0x244088;}export function buildPlaywrightCliCommandPrefix(_0x213bb9,_0x513aa5){const _0x58f5ec=_0x2440,_0xd642c0={'xsvLs':_0x58f5ec(0xd0),'ILvPW':function(_0x44b517,_0x42aa0a){return _0x44b517(_0x42aa0a);}},_0x52b5c2=toPlaywrightCliSessionKey(_0x213bb9);return[_0x58f5ec(0xd7),PLAYWRIGHT_CLI_BINARY,_0x58f5ec(0xcf)+quoteShellArg(_0x52b5c2),_0xd642c0['xsvLs'],_0xd642c0[_0x58f5ec(0xe4)](quoteShellArg,_0x513aa5)][_0x58f5ec(0xff)]('\x20');}function truncateOutput(_0x583a7f,_0x3115a8=0x7d0){const _0x561464=_0x2440,_0x533c82={'kZEvT':function(_0x3b83f7,_0x400d25){return _0x3b83f7+_0x400d25;},'GfukQ':'...'};return _0x583a7f[_0x561464(0xf0)]>_0x3115a8?_0x533c82['kZEvT'](_0x583a7f[_0x561464(0xf3)](0x0,_0x3115a8),_0x533c82[_0x561464(0xe0)]):_0x583a7f;}export async function runPlaywrightCliCommand(_0x22d692){const _0x41cdc3=_0x2440,_0x29d17d={'FYTSq':function(_0x1b53b4,_0x26d36e){return _0x1b53b4===_0x26d36e;},'QfznG':function(_0x385aef,_0x537492){return _0x385aef(_0x537492);},'AnIGu':_0x41cdc3(0xc7),'soaiJ':function(_0x352791,_0x55efae){return _0x352791(_0x55efae);},'bUJoD':function(_0xcc3bd6,_0x8b9c6e){return _0xcc3bd6(_0x8b9c6e);},'ynUZJ':function(_0x4f88cf,_0x213a7f,_0x58f21b,_0x337123){return _0x4f88cf(_0x213a7f,_0x58f21b,_0x337123);},'bWBsQ':'ignore','fflXa':_0x41cdc3(0xf9),'hEJME':_0x41cdc3(0xd1),'eWphk':_0x41cdc3(0xf1)},_0x3293ce=buildPlaywrightCliInvocation(_0x22d692[_0x41cdc3(0xda)],_0x22d692['configPath'],_0x22d692[_0x41cdc3(0xd3)]);return new Promise((_0x14c4f1,_0x3bf91a)=>{const _0x12deb0=_0x41cdc3,_0x9ba141={'kgDzC':function(_0x47b426,_0x165626){return _0x47b426(_0x165626);}},_0x44eb25=_0x29d17d[_0x12deb0(0xf6)](spawn,_0x3293ce['command'],_0x3293ce['args'],{'cwd':_0x22d692['cwd'],'env':_0x22d692['env'],'stdio':[_0x29d17d[_0x12deb0(0xeb)],_0x29d17d[_0x12deb0(0xe5)],_0x29d17d['fflXa']]});let _0x5dca26='',_0x50ec9a='',_0x765d3=![];const _0x45dc69=_0x22d692['timeoutMs']&&_0x22d692[_0x12deb0(0xd9)]>0x0?setTimeout(()=>{const _0x5bc660=_0x12deb0;_0x765d3=!![],_0x44eb25['kill'](_0x5bc660(0xf7)),setTimeout(()=>{const _0x1e412b=_0x5bc660;try{_0x44eb25[_0x1e412b(0xef)](_0x1e412b(0x101));}catch{}},0x3e8);},_0x22d692['timeoutMs']):null;_0x44eb25['stdout']?.['on'](_0x29d17d[_0x12deb0(0xd4)],_0x28aea7=>{_0x5dca26+=_0x28aea7['toString']();}),_0x44eb25[_0x12deb0(0xe9)]?.['on']('data',_0x2a3ecd=>{const _0x4625df=_0x12deb0;_0x50ec9a+=_0x2a3ecd[_0x4625df(0xca)]();}),_0x44eb25['on'](_0x12deb0(0xcb),_0x416d33=>{const _0xb5ad24=_0x12deb0;if(_0x45dc69)clearTimeout(_0x45dc69);_0x9ba141[_0xb5ad24(0xce)](_0x3bf91a,_0x416d33);}),_0x44eb25['on'](_0x29d17d['eWphk'],(_0x2130f5,_0xc6f09a)=>{const _0x26bbba=_0x12deb0;if(_0x45dc69)clearTimeout(_0x45dc69);if(_0x29d17d[_0x26bbba(0xfe)](_0x2130f5,0x0)){_0x29d17d[_0x26bbba(0xde)](_0x14c4f1,{'stdout':_0x5dca26,'stderr':_0x50ec9a,'invocation':_0x3293ce});return;}const _0x2844eb=_0x765d3?_0x26bbba(0xdf)+_0x22d692[_0x26bbba(0xd9)]+'ms':_0x26bbba(0xfd)+(_0x2130f5??_0x29d17d['AnIGu'])+_0x26bbba(0xcc)+(_0xc6f09a??'null');_0x3bf91a(new Error('playwright-cli\x20'+_0x3293ce[_0x26bbba(0xd2)]+'\x20'+_0x2844eb+'\x0astdout:\x20'+_0x29d17d[_0x26bbba(0xfc)](truncateOutput,_0x5dca26)+_0x26bbba(0xfa)+_0x29d17d[_0x26bbba(0xe8)](truncateOutput,_0x50ec9a)));});});}export function extractBashCommand(_0x245343){const _0x37750a=_0x2440,_0x3bdfec={'GfHZe':'command','RqfQW':'script','icqUu':_0x37750a(0xd8),'iQTtz':function(_0x760140,_0x183911){return _0x760140??_0x183911;}},_0x20ea05=[_0x3bdfec['GfHZe'],'cmd',_0x3bdfec[_0x37750a(0xe6)],'bash_command'];for(const _0x479be8 of _0x20ea05){const _0x195bbe=_0x245343[_0x479be8];if(typeof _0x195bbe===_0x3bdfec[_0x37750a(0xee)]&&_0x195bbe[_0x37750a(0xd5)]())return _0x195bbe;}const _0xcec8bf=Object[_0x37750a(0xec)](_0x245343)[_0x37750a(0xe3)](_0x3ca9a8=>typeof _0x3ca9a8==='string'&&_0x3ca9a8[_0x37750a(0xd5)]()['length']>0x0);return _0x3bdfec['iQTtz'](_0xcec8bf,null);}export function parsePlaywrightCliCommand(_0x3f564c){const _0x1344dc=_0x2440,_0x8dc900=_0x3f564c[_0x1344dc(0xcd)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x8dc900?.[0x1]??null;}
@@ -1 +1 @@
1
- const _0x4705cb=_0xca5d;(function(_0x277b78,_0x347e41){const _0x472386=_0xca5d,_0x41e056=_0x277b78();while(!![]){try{const _0x487728=-parseInt(_0x472386(0x11f))/0x1+parseInt(_0x472386(0x123))/0x2*(-parseInt(_0x472386(0x122))/0x3)+-parseInt(_0x472386(0x11d))/0x4*(-parseInt(_0x472386(0x11b))/0x5)+parseInt(_0x472386(0x121))/0x6*(-parseInt(_0x472386(0x11e))/0x7)+-parseInt(_0x472386(0x124))/0x8+parseInt(_0x472386(0x119))/0x9*(parseInt(_0x472386(0x11a))/0xa)+parseInt(_0x472386(0x11c))/0xb;if(_0x487728===_0x347e41)break;else _0x41e056['push'](_0x41e056['shift']());}catch(_0x3fbb1f){_0x41e056['push'](_0x41e056['shift']());}}}(_0x1781,0xd8339));const DEFAULT_PROFILE_COMMAND=_0x4705cb(0x120);function _0xca5d(_0x2cd339,_0x2798bc){_0x2cd339=_0x2cd339-0x119;const _0x1781fe=_0x1781();let _0xca5d58=_0x1781fe[_0x2cd339];return _0xca5d58;}export function formatProfileRequiredMessage(_0x521f1c){const _0x21c82b=_0x521f1c?_0x521f1c(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x21c82b+'.';}function _0x1781(){const _0x5b0bf1=['2IPQMUc','2195784yEBVMD','981819kEVMRQ','10SOqYji','25MFYDrr','24372876KentFo','1336060nveYqY','85589sWusih','1152816SNdkWb','ranger\x20profile\x20add\x20local','12OVKjWl','4972734MRrIDB'];_0x1781=function(){return _0x5b0bf1;};return _0x1781();}
1
+ (function(_0x2ce136,_0x363b44){const _0x5c9d01=_0x38bd,_0x10f008=_0x2ce136();while(!![]){try{const _0x4c6487=parseInt(_0x5c9d01(0xca))/0x1+-parseInt(_0x5c9d01(0xc9))/0x2*(-parseInt(_0x5c9d01(0xc3))/0x3)+-parseInt(_0x5c9d01(0xc8))/0x4*(-parseInt(_0x5c9d01(0xcc))/0x5)+-parseInt(_0x5c9d01(0xc7))/0x6+parseInt(_0x5c9d01(0xcb))/0x7+parseInt(_0x5c9d01(0xc5))/0x8+-parseInt(_0x5c9d01(0xc4))/0x9*(parseInt(_0x5c9d01(0xcd))/0xa);if(_0x4c6487===_0x363b44)break;else _0x10f008['push'](_0x10f008['shift']());}catch(_0x588124){_0x10f008['push'](_0x10f008['shift']());}}}(_0x15e2,0x65e62));function _0x15e2(){const _0x4adefa=['15122718Ikdjrn','2793504zjLnNt','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','4778814ASBZFe','9496NCmtnZ','197066UxFeaH','688225nfaORv','5626481mJWnFo','765XDfzkp','10mWXgMK','21orvHjA'];_0x15e2=function(){return _0x4adefa;};return _0x15e2();}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x38bd(_0xed1299,_0xcfa4a9){_0xed1299=_0xed1299-0xc3;const _0x15e2f2=_0x15e2();let _0x38bdb2=_0x15e2f2[_0xed1299];return _0x38bdb2;}export function formatProfileRequiredMessage(_0x27d19e){const _0x30814a=_0x38bd,_0x5e56ce=_0x27d19e?_0x27d19e(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x30814a(0xc6)+_0x5e56ce+'.';}
@@ -1 +1 @@
1
- function _0x373c(_0x14b325,_0x5ea9a3){_0x14b325=_0x14b325-0x1e9;const _0x4fb7ec=_0x4fb7();let _0x373c72=_0x4fb7ec[_0x14b325];return _0x373c72;}(function(_0x5e3a27,_0x58f5a9){const _0x4ee419=_0x373c,_0x199b82=_0x5e3a27();while(!![]){try{const _0x3b6ed3=-parseInt(_0x4ee419(0x1ef))/0x1*(-parseInt(_0x4ee419(0x1ea))/0x2)+-parseInt(_0x4ee419(0x1f7))/0x3*(-parseInt(_0x4ee419(0x1f5))/0x4)+-parseInt(_0x4ee419(0x1f6))/0x5*(parseInt(_0x4ee419(0x1f2))/0x6)+parseInt(_0x4ee419(0x1f4))/0x7+-parseInt(_0x4ee419(0x1ed))/0x8+-parseInt(_0x4ee419(0x1ec))/0x9+parseInt(_0x4ee419(0x1e9))/0xa*(parseInt(_0x4ee419(0x1f3))/0xb);if(_0x3b6ed3===_0x58f5a9)break;else _0x199b82['push'](_0x199b82['shift']());}catch(_0x1d099c){_0x199b82['push'](_0x199b82['shift']());}}}(_0x4fb7,0x82308));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x20133d=_0x373c,_0x26eb38={'QQqdL':function(_0x676197,_0xe9cb16){return _0x676197+_0xe9cb16;},'WSRHe':function(_0x47581d,_0x2b8fb2){return _0x47581d+_0x2b8fb2;},'iCiMp':function(_0x47bd00,_0x1b5eeb){return _0x47bd00+_0x1b5eeb;},'ePnVb':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','GUHOg':'</div>','FVZUQ':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x8b3245=_0x26eb38['QQqdL'](_0x26eb38['WSRHe'](_0x26eb38['iCiMp']('<div\x20class=\x22ranger-banner__content\x22>'+_0x26eb38[_0x20133d(0x1f1)]+'<div\x20class=\x22ranger-banner__message\x22>',_0x20133d(0x1ee)),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x26eb38['GUHOg'],_0x20133d(0x1f0))+_0x26eb38['FVZUQ'],_0x1da797=_0x20133d(0x1f8);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'](_0x8b3245)+';\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[_0x20133d(0x1eb)](_0x1da797)+';\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 _0x4fb7(){const _0x589939=['<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','500275AaFVvl','</div>','ePnVb','6WOPJHJ','7685733xgnGJz','3534244FCLCGF','64YJOTVY','2141395IMNKtf','90483ERcGxX','\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','10qEjfzz','2GdAjqY','stringify','2370258zuoiRU','7692392cWIvdX'];_0x4fb7=function(){return _0x589939;};return _0x4fb7();}export async function addProfileSetupBanner(_0x9f2312){await _0x9f2312['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x27e3(){const _0x5e1df4=['384905HsyCQY','</div>','kPUgZ','yafMS','71PltkHD','mkqVp','18392jsWliM','stringify','1335483zkvfpw','<div\x20class=\x22ranger-banner__content\x22>','\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','70vFfJFZ','3720276BwDwAR','1134736vPvqya','1125864BXdsuG',';\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','paBcT','20lkQcrh','\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','214242LLKafs'];_0x27e3=function(){return _0x5e1df4;};return _0x27e3();}(function(_0x7ab7f5,_0x1ec2a3){const _0x2152a8=_0x1de4,_0x2c5319=_0x7ab7f5();while(!![]){try{const _0x2bcdc3=-parseInt(_0x2152a8(0x1b6))/0x1*(parseInt(_0x2152a8(0x1a4))/0x2)+parseInt(_0x2152a8(0x1ac))/0x3+parseInt(_0x2152a8(0x1aa))/0x4+-parseInt(_0x2152a8(0x1b2))/0x5+parseInt(_0x2152a8(0x1b1))/0x6*(parseInt(_0x2152a8(0x1a9))/0x7)+-parseInt(_0x2152a8(0x1ab))/0x8+-parseInt(_0x2152a8(0x1a6))/0x9*(parseInt(_0x2152a8(0x1af))/0xa);if(_0x2bcdc3===_0x1ec2a3)break;else _0x2c5319['push'](_0x2c5319['shift']());}catch(_0x1bdc11){_0x2c5319['push'](_0x2c5319['shift']());}}}(_0x27e3,0x7895a));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x1f9a79=_0x1de4,_0x52d412={'yafMS':function(_0x501105,_0x112136){return _0x501105+_0x112136;},'mkqVp':function(_0x1b11e,_0x55d976){return _0x1b11e+_0x55d976;},'paBcT':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','kPUgZ':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','AfSlc':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x5e29a1=_0x52d412[_0x1f9a79(0x1b5)](_0x52d412['yafMS'](_0x52d412[_0x1f9a79(0x1b7)](_0x1f9a79(0x1a7)+_0x52d412[_0x1f9a79(0x1ae)]+'<div\x20class=\x22ranger-banner__message\x22>','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x52d412[_0x1f9a79(0x1b4)],'</div>')+_0x1f9a79(0x1b3),_0x52d412['AfSlc']),_0x177864=_0x1f9a79(0x1b0);return _0x1f9a79(0x1a8)+JSON['stringify'](_0x5e29a1)+_0x1f9a79(0x1ad)+JSON[_0x1f9a79(0x1a5)](_0x177864)+';\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 _0x1de4(_0x25b432,_0x1f59dd){_0x25b432=_0x25b432-0x1a4;const _0x27e385=_0x27e3();let _0x1de43d=_0x27e385[_0x25b432];return _0x1de43d;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x44d58c){await _0x44d58c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x41eb7a,_0x82fd52){const _0x59265d=_0x7051,_0x46ebc0=_0x41eb7a();while(!![]){try{const _0x28a69b=-parseInt(_0x59265d(0x1b8))/0x1*(parseInt(_0x59265d(0x1b2))/0x2)+-parseInt(_0x59265d(0x1b6))/0x3*(parseInt(_0x59265d(0x1af))/0x4)+-parseInt(_0x59265d(0x1b9))/0x5*(parseInt(_0x59265d(0x1ae))/0x6)+parseInt(_0x59265d(0x1bd))/0x7+-parseInt(_0x59265d(0x1b1))/0x8*(-parseInt(_0x59265d(0x1c4))/0x9)+parseInt(_0x59265d(0x1b5))/0xa*(-parseInt(_0x59265d(0x1bc))/0xb)+parseInt(_0x59265d(0x1bf))/0xc;if(_0x28a69b===_0x82fd52)break;else _0x46ebc0['push'](_0x46ebc0['shift']());}catch(_0x2ce612){_0x46ebc0['push'](_0x46ebc0['shift']());}}}(_0x4aef,0x76d62));import{readFile}from'fs/promises';function _0x7051(_0x270f1b,_0x536624){_0x270f1b=_0x270f1b-0x1ae;const _0x4aef80=_0x4aef();let _0x705171=_0x4aef80[_0x270f1b];return _0x705171;}function _0x4aef(){const _0x5a0dfa=['model','kWwJI','30MAxueu','3cvSZJh','object','9byOjRj','50opZpak','BmxKf','utf-8','1875368mQBVZW','5018475MfHSzD','GRvzT','12082788FsOhoA','string','isArray','ktelg','parse','2538QxbhfK','539052MmEKXr','687292sGZpvf','config.json','21624AwJIEb','92802RqVFrL'];_0x4aef=function(){return _0x5a0dfa;};return _0x4aef();}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x10f883=_0x7051,_0x6d7a79={'BmxKf':function(_0x47df21){return _0x47df21();}};return join(_0x6d7a79[_0x10f883(0x1ba)](getRangerDir),_0x10f883(0x1b0));}export async function loadRangerConfig(){const _0x168a1d=_0x7051,_0x4ff315={'BFcym':function(_0x45806e){return _0x45806e();},'oOElK':function(_0x33ef50,_0x155fb7){return _0x33ef50(_0x155fb7);},'ktelg':function(_0x2c1adb,_0x279d50){return _0x2c1adb!==_0x279d50;},'GRvzT':function(_0x285bdb,_0x3a74d9){return _0x285bdb===_0x3a74d9;},'kWwJI':function(_0x56c977,_0x33dbcb){return _0x56c977 instanceof _0x33dbcb;}},_0x15ca47=_0x4ff315['BFcym'](getRangerConfigPath);if(!_0x4ff315['oOElK'](existsSync,_0x15ca47))return{};try{const _0x70b9c4=await readFile(_0x15ca47,_0x168a1d(0x1bb)),_0x2b1996=JSON[_0x168a1d(0x1c3)](_0x70b9c4);if(!_0x2b1996||_0x4ff315[_0x168a1d(0x1c2)](typeof _0x2b1996,_0x168a1d(0x1b7))||Array[_0x168a1d(0x1c1)](_0x2b1996))return{};const _0x2a50d0={},_0x58a4e=_0x2b1996['model'];return _0x4ff315[_0x168a1d(0x1be)](typeof _0x58a4e,_0x168a1d(0x1c0))&&(_0x2a50d0[_0x168a1d(0x1b3)]=_0x58a4e),_0x2a50d0;}catch(_0x2eec88){const _0x1b923d=_0x4ff315[_0x168a1d(0x1b4)](_0x2eec88,Error)?_0x2eec88['message']:String(_0x2eec88);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x15ca47+':\x20'+_0x1b923d),{};}}
1
+ (function(_0x4c3e87,_0xd8b58f){const _0x17cdae=_0x1632,_0x2d1129=_0x4c3e87();while(!![]){try{const _0x20d146=-parseInt(_0x17cdae(0x13f))/0x1+-parseInt(_0x17cdae(0x144))/0x2*(-parseInt(_0x17cdae(0x141))/0x3)+parseInt(_0x17cdae(0x146))/0x4+-parseInt(_0x17cdae(0x14b))/0x5+-parseInt(_0x17cdae(0x14d))/0x6*(parseInt(_0x17cdae(0x143))/0x7)+-parseInt(_0x17cdae(0x14e))/0x8*(-parseInt(_0x17cdae(0x14a))/0x9)+parseInt(_0x17cdae(0x149))/0xa;if(_0x20d146===_0xd8b58f)break;else _0x2d1129['push'](_0x2d1129['shift']());}catch(_0x275120){_0x2d1129['push'](_0x2d1129['shift']());}}}(_0x35d4,0x7a1b5));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x1632(_0x38d2ba,_0x153a64){_0x38d2ba=_0x38d2ba-0x13f;const _0x35d479=_0x35d4();let _0x1632d1=_0x35d479[_0x38d2ba];return _0x1632d1;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x35d4(){const _0x7aeab7=['6buyIyU','1892456dJkspp','object','GgRsc','string','715528hzTqZO','warn','52890WrKita','message','5649077MuFPKj','62jHtXgQ','isArray','2152272XVzVeq','parse','utf-8','6195240iSgFLk','36HhYeSh','3138310lHPzUl','model'];_0x35d4=function(){return _0x7aeab7;};return _0x35d4();}export function getRangerConfigPath(){const _0x4cec08={'cfbdx':function(_0x123e48,_0x27420a,_0x35099c){return _0x123e48(_0x27420a,_0x35099c);},'qDqeC':function(_0x13d7e4){return _0x13d7e4();},'wGokk':'config.json'};return _0x4cec08['cfbdx'](join,_0x4cec08['qDqeC'](getRangerDir),_0x4cec08['wGokk']);}export async function loadRangerConfig(){const _0x5ac345=_0x1632,_0xa7a669={'vvFTs':function(_0x3b7988,_0x498f96){return _0x3b7988(_0x498f96);},'WurNt':_0x5ac345(0x14f),'GgRsc':_0x5ac345(0x151)},_0x24cf17=getRangerConfigPath();if(!_0xa7a669['vvFTs'](existsSync,_0x24cf17))return{};try{const _0x25f1de=await readFile(_0x24cf17,_0x5ac345(0x148)),_0x6c1d2=JSON[_0x5ac345(0x147)](_0x25f1de);if(!_0x6c1d2||typeof _0x6c1d2!==_0xa7a669['WurNt']||Array[_0x5ac345(0x145)](_0x6c1d2))return{};const _0x3c5b48={},_0x11bdef=_0x6c1d2[_0x5ac345(0x14c)];return typeof _0x11bdef===_0xa7a669[_0x5ac345(0x150)]&&(_0x3c5b48['model']=_0x11bdef),_0x3c5b48;}catch(_0x3ddefb){const _0x52003f=_0x3ddefb instanceof Error?_0x3ddefb[_0x5ac345(0x142)]:_0xa7a669['vvFTs'](String,_0x3ddefb);return console[_0x5ac345(0x140)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x24cf17+':\x20'+_0x52003f),{};}}
@@ -1 +1 @@
1
- (function(_0x393e77,_0x5636ae){const _0x24342f=_0x4e03,_0x595529=_0x393e77();while(!![]){try{const _0x1eed89=parseInt(_0x24342f(0x1b0))/0x1*(-parseInt(_0x24342f(0x1af))/0x2)+parseInt(_0x24342f(0x1ba))/0x3*(-parseInt(_0x24342f(0x1b3))/0x4)+parseInt(_0x24342f(0x1b9))/0x5*(parseInt(_0x24342f(0x1b5))/0x6)+parseInt(_0x24342f(0x1b7))/0x7+-parseInt(_0x24342f(0x1bc))/0x8*(-parseInt(_0x24342f(0x1ab))/0x9)+-parseInt(_0x24342f(0x1be))/0xa*(parseInt(_0x24342f(0x1bd))/0xb)+parseInt(_0x24342f(0x1b6))/0xc*(parseInt(_0x24342f(0x1b4))/0xd);if(_0x1eed89===_0x5636ae)break;else _0x595529['push'](_0x595529['shift']());}catch(_0x51aa93){_0x595529['push'](_0x595529['shift']());}}}(_0x2afe,0x1bdec));import{dirname,join,parse}from'path';function _0x4e03(_0x1ca064,_0x4536eb){_0x1ca064=_0x1ca064-0x1aa;const _0x2afe0d=_0x2afe();let _0x4e0302=_0x2afe0d[_0x1ca064];return _0x4e0302;}import{existsSync}from'fs';function _0x2afe(){const _0x3d44a1=['117VlODCh','30yACPVb','516084dkvHYU','709625fZTMmS','Ssinl','23340TetQzp','8661YIkaNY','YgkIl','32UuXLvi','33LsxUGU','609560DVVjoj','InJox','BOttX','179883msFgVb','cwd','PBDWO','REUsD','50ZRAjaJ','3589rOyHBY','uvxyC','.ranger','284zUxPWs'];_0x2afe=function(){return _0x3d44a1;};return _0x2afe();}import{homedir}from'os';export function getRangerRoot(){const _0x21ea44=_0x4e03,_0xed9578={'REUsD':function(_0xb810f9,_0x4bbfb4){return _0xb810f9(_0x4bbfb4);},'PBDWO':function(_0x2d6a29,_0x176169){return _0x2d6a29!==_0x176169;},'YgkIl':function(_0x8b2094,_0x319966){return _0x8b2094(_0x319966);},'BOttX':'.ranger'};let _0x39dd70=process['cwd']();const _0x4eba97=_0xed9578[_0x21ea44(0x1ae)](parse,_0x39dd70)['root'];while(_0xed9578[_0x21ea44(0x1ad)](_0x39dd70,_0x4eba97)){if(_0xed9578[_0x21ea44(0x1bb)](existsSync,join(_0x39dd70,'.ranger')))return _0x39dd70;_0x39dd70=_0xed9578['YgkIl'](dirname,_0x39dd70);}if(existsSync(join(_0x4eba97,_0xed9578[_0x21ea44(0x1aa)])))return _0x4eba97;const _0x34ac5b=findGitRoot();if(_0x34ac5b)return _0x34ac5b;return process[_0x21ea44(0x1ac)]();}export function getRangerDir(){const _0x4fd97d=_0x4e03,_0x7bcf7e={'uvxyC':function(_0x1a5778){return _0x1a5778();}};return join(_0x7bcf7e[_0x4fd97d(0x1b1)](getRangerRoot),_0x4fd97d(0x1b2));}export function findGitRoot(){const _0x21e241=_0x4e03,_0x3cb3fc={'RNmKd':function(_0x28005e,_0x4ed788){return _0x28005e(_0x4ed788);},'JbkGQ':function(_0x7eba72,_0x8cbbb4){return _0x7eba72(_0x8cbbb4);},'InJox':'.git'};let _0x2fbed5=process['cwd']();const _0x29eb75=parse(_0x2fbed5)['root'];while(_0x2fbed5!==_0x29eb75){if(existsSync(join(_0x2fbed5,'.git')))return _0x2fbed5;_0x2fbed5=_0x3cb3fc['RNmKd'](dirname,_0x2fbed5);}if(_0x3cb3fc['JbkGQ'](existsSync,join(_0x29eb75,_0x3cb3fc[_0x21e241(0x1bf)])))return _0x29eb75;return null;}export function getRangerHomeDir(){const _0x583785=_0x4e03,_0xa8257c={'Ssinl':function(_0x174deb){return _0x174deb();}};return join(_0xa8257c[_0x583785(0x1b8)](homedir),_0x583785(0x1b2));}
1
+ (function(_0x49cb25,_0x330d1d){const _0x21294f=_0x9592,_0x3cb323=_0x49cb25();while(!![]){try{const _0x5e37a5=parseInt(_0x21294f(0x14f))/0x1+parseInt(_0x21294f(0x14c))/0x2+parseInt(_0x21294f(0x152))/0x3*(-parseInt(_0x21294f(0x14b))/0x4)+parseInt(_0x21294f(0x148))/0x5+parseInt(_0x21294f(0x142))/0x6+parseInt(_0x21294f(0x143))/0x7+-parseInt(_0x21294f(0x14e))/0x8*(parseInt(_0x21294f(0x145))/0x9);if(_0x5e37a5===_0x330d1d)break;else _0x3cb323['push'](_0x3cb323['shift']());}catch(_0x2118b4){_0x3cb323['push'](_0x3cb323['shift']());}}}(_0x3226,0x43ebb));function _0x3226(){const _0x1f1ab4=['bvTcl','2935809inXdxT','.ranger','eBCqp','633280fhCkEt','.git','imFNA','2111024AInDJj','909880DSFtnf','cOglt','16vfxeBG','346114zZEngo','RMImH','cwd','3lUZAOI','487176yMMMjp','3146185RqyFmQ'];_0x3226=function(){return _0x1f1ab4;};return _0x3226();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x50d377=_0x9592,_0x3038cd={'bvTcl':function(_0x49b48c,_0x2fccc8){return _0x49b48c(_0x2fccc8);}};let _0x20decd=process['cwd']();const _0x4ce16a=_0x3038cd['bvTcl'](parse,_0x20decd)['root'];while(_0x20decd!==_0x4ce16a){if(_0x3038cd[_0x50d377(0x144)](existsSync,join(_0x20decd,_0x50d377(0x146))))return _0x20decd;_0x20decd=dirname(_0x20decd);}if(existsSync(join(_0x4ce16a,'.ranger')))return _0x4ce16a;const _0x1e26f4=findGitRoot();if(_0x1e26f4)return _0x1e26f4;return process['cwd']();}function _0x9592(_0x16a2a8,_0x56e868){_0x16a2a8=_0x16a2a8-0x142;const _0x322606=_0x3226();let _0x959242=_0x322606[_0x16a2a8];return _0x959242;}export function getRangerDir(){const _0x2e8850=_0x9592,_0x46b8c6={'imFNA':function(_0x1ce6d4){return _0x1ce6d4();}};return join(_0x46b8c6[_0x2e8850(0x14a)](getRangerRoot),_0x2e8850(0x146));}export function findGitRoot(){const _0x4efa40=_0x9592,_0x22cc3d={'cOglt':_0x4efa40(0x149),'eBCqp':function(_0x5cd4a8,_0x4399f3){return _0x5cd4a8(_0x4399f3);}};let _0x24e053=process[_0x4efa40(0x151)]();const _0x4cfed8=parse(_0x24e053)['root'];while(_0x24e053!==_0x4cfed8){if(existsSync(join(_0x24e053,_0x22cc3d[_0x4efa40(0x14d)])))return _0x24e053;_0x24e053=dirname(_0x24e053);}if(_0x22cc3d[_0x4efa40(0x147)](existsSync,join(_0x4cfed8,'.git')))return _0x4cfed8;return null;}export function getRangerHomeDir(){const _0x40b4af=_0x9592,_0x30a3a0={'RMImH':function(_0x458901,_0x9f689a,_0x1b1a8e){return _0x458901(_0x9f689a,_0x1b1a8e);}};return _0x30a3a0[_0x40b4af(0x150)](join,homedir(),_0x40b4af(0x146));}
@@ -1 +1 @@
1
- (function(_0x3de847,_0x34ddbb){const _0x2ffc95=_0x1326,_0x1c0e5b=_0x3de847();while(!![]){try{const _0x3e9334=-parseInt(_0x2ffc95(0x1eb))/0x1+parseInt(_0x2ffc95(0x1ed))/0x2*(parseInt(_0x2ffc95(0x1f4))/0x3)+parseInt(_0x2ffc95(0x1d7))/0x4*(parseInt(_0x2ffc95(0x1db))/0x5)+-parseInt(_0x2ffc95(0x1cf))/0x6*(-parseInt(_0x2ffc95(0x1e9))/0x7)+-parseInt(_0x2ffc95(0x1ee))/0x8+parseInt(_0x2ffc95(0x1f2))/0x9+-parseInt(_0x2ffc95(0x1e3))/0xa;if(_0x3e9334===_0x34ddbb)break;else _0x1c0e5b['push'](_0x1c0e5b['shift']());}catch(_0x3152dc){_0x1c0e5b['push'](_0x1c0e5b['shift']());}}}(_0x2afb,0x4170c));import{readdir}from'fs/promises';function _0x2afb(){const _0x265f85=['###\x20Issues\x20Found\x20(','toUpperCase','**Status:**\x20','####\x20','sort','length','includes','4359820zwIgBV','BLOCKER','push','relativePath','**Screenshot:**','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','42ukUgtE','###\x20Summary','63537fXTlzo','join','47258YFgCnk','2628336hAgKaC','##\x20Task','---','screenshot','2093553mFBDwI','dnABC','45WNMCHs','###\x20','159468fOtSYo','map','jXIyh','#\x20Verification\x20Report','filename','**URL:**\x20','filter','MAJOR','10060MixiqO','**Generated:**\x20','split','severity','695akineT'];_0x2afb=function(){return _0x265f85;};return _0x2afb();}function _0x1326(_0x2b1a07,_0x4854cb){_0x2b1a07=_0x2b1a07-0x1ce;const _0x2afbd8=_0x2afb();let _0x1326df=_0x2afbd8[_0x2b1a07];return _0x1326df;}import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x3badb1){const _0x28e04f=_0x1326,_0x5ce353={'pQESW':function(_0x4b7ba2,_0x42ec08){return _0x4b7ba2(_0x42ec08);},'jGDCc':function(_0x31f8c5,_0x4c4f8c,_0x363d92){return _0x31f8c5(_0x4c4f8c,_0x363d92);}},_0x5955d4=[],_0x52508d=[];if(!_0x5ce353['pQESW'](existsSync,_0x3badb1))return{'screenshots':_0x5955d4,'paths':_0x52508d};const _0x1ca73d=await readdir(_0x3badb1),_0x52acda=_0x1ca73d[_0x28e04f(0x1d5)](_0x2c14c6=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x2c14c6))[_0x28e04f(0x1e0)]();for(const _0x37af52 of _0x52acda){const _0x2ee621=_0x5ce353['jGDCc'](join,_0x3badb1,_0x37af52);_0x5955d4['push']({'filename':_0x37af52,'path':_0x2ee621,'relativePath':'./'+_0x37af52}),_0x52508d['push'](_0x2ee621);}return{'screenshots':_0x5955d4,'paths':_0x52508d};}function getSeverityEmoji(_0x1791a7){const _0x1aba33=_0x1326;switch(_0x1791a7){case _0x1aba33(0x1e4):return'🔴';case _0x1aba33(0x1d6):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x34cdc5){const _0x27405e=_0x1326,_0x1f373e=_0x34cdc5['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x235922=_0x1f373e['replace'](/^\d+-/,'');return _0x235922[_0x27405e(0x1d9)]('-')[_0x27405e(0x1d0)](_0x36ec3c=>_0x36ec3c['charAt'](0x0)[_0x27405e(0x1dd)]()+_0x36ec3c['slice'](0x1))[_0x27405e(0x1ec)]('\x20');}export function generateMarkdownReport(_0x3935ed){const _0x2d1a70=_0x1326,_0x407f5c={'pIguK':function(_0x2e5e70,_0x430c53){return _0x2e5e70/_0x430c53;},'dnABC':'PASSED','jXIyh':function(_0x2893b3,_0x5834ae){return _0x2893b3>_0x5834ae;},'lMGCh':function(_0x4f0263,_0xb4d36c){return _0x4f0263(_0xb4d36c);}},{sessionId:_0x2d386e,task:_0x1072b6,url:_0x276b2a,success:_0x5a3cfd,summary:_0x38351a,issues:_0x57f317,screenshots:_0x4cebbd,durationMs:_0x101a20,traceViewerUrl:_0x2518dc}=_0x3935ed,_0x1f12b6=new Date()['toISOString'](),_0x51dec4=_0x407f5c['pIguK'](_0x101a20,0x3e8)['toFixed'](0x1),_0x179c6c=[];_0x179c6c['push'](_0x2d1a70(0x1d2)),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('**Session:**\x20`'+_0x2d386e+'`'),_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1d8)+_0x1f12b6),_0x179c6c['push']('**Duration:**\x20'+_0x51dec4+'s'),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1ef)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1d4)+_0x276b2a),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('>\x20'+_0x1072b6),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('##\x20Result'),_0x179c6c[_0x2d1a70(0x1e5)]('');const _0xd69cfe=_0x5a3cfd?'✅':'❌';_0x179c6c['push'](_0x2d1a70(0x1de)+_0xd69cfe+'\x20'+(_0x5a3cfd?_0x407f5c[_0x2d1a70(0x1f3)]:'ISSUES\x20FOUND')),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1ea)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x38351a),_0x179c6c['push']('');if(_0x57f317&&_0x57f317['length']>0x0){_0x179c6c['push'](_0x2d1a70(0x1dc)+_0x57f317[_0x2d1a70(0x1e1)]+')'),_0x179c6c['push']('');for(const _0x3ff110 of _0x57f317){const _0x21c7eb=getSeverityEmoji(_0x3ff110[_0x2d1a70(0x1da)]);_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1df)+_0x21c7eb+'\x20['+_0x3ff110['severity']+']\x20Issue'),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c[_0x2d1a70(0x1e5)](_0x3ff110['description']),_0x179c6c['push']('');if(_0x3ff110[_0x2d1a70(0x1f1)]){const _0x29f68a=_0x3ff110[_0x2d1a70(0x1f1)],_0x3dbf5d=_0x4cebbd['find'](_0x567203=>_0x567203[_0x2d1a70(0x1d3)]===_0x29f68a||_0x567203['filename'][_0x2d1a70(0x1e2)](_0x29f68a));_0x3dbf5d&&(_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1e7)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push']('!['+_0x29f68a+']('+_0x3dbf5d[_0x2d1a70(0x1e6)]+')'),_0x179c6c[_0x2d1a70(0x1e5)](''));}}}if(_0x407f5c[_0x2d1a70(0x1d1)](_0x4cebbd[_0x2d1a70(0x1e1)],0x0)){_0x179c6c[_0x2d1a70(0x1e5)]('##\x20Screenshots\x20('+_0x4cebbd[_0x2d1a70(0x1e1)]+')'),_0x179c6c[_0x2d1a70(0x1e5)]('');for(const _0x1270c of _0x4cebbd){const _0x40ba9b=_0x407f5c['lMGCh'](formatScreenshotCaption,_0x1270c[_0x2d1a70(0x1d3)]);_0x179c6c['push'](_0x2d1a70(0x1ce)+_0x40ba9b),_0x179c6c['push'](''),_0x179c6c['push']('!['+_0x1270c['filename']+']('+_0x1270c[_0x2d1a70(0x1e6)]+')'),_0x179c6c['push']('');}}return _0x2518dc&&(_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1f0)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1e8)+_0x2518dc+')'),_0x179c6c[_0x2d1a70(0x1e5)]('')),_0x179c6c['join']('\x0a');}
1
+ (function(_0x5a0972,_0x454493){const _0xe4a0f8=_0x5926,_0x4bbff4=_0x5a0972();while(!![]){try{const _0x24fc4f=parseInt(_0xe4a0f8(0x127))/0x1+parseInt(_0xe4a0f8(0x12b))/0x2+parseInt(_0xe4a0f8(0x142))/0x3+-parseInt(_0xe4a0f8(0x147))/0x4*(parseInt(_0xe4a0f8(0x137))/0x5)+-parseInt(_0xe4a0f8(0x129))/0x6*(-parseInt(_0xe4a0f8(0x128))/0x7)+parseInt(_0xe4a0f8(0x148))/0x8+-parseInt(_0xe4a0f8(0x12c))/0x9;if(_0x24fc4f===_0x454493)break;else _0x4bbff4['push'](_0x4bbff4['shift']());}catch(_0x2a8c1e){_0x4bbff4['push'](_0x4bbff4['shift']());}}}(_0x1a13,0xaffd5));function _0x5926(_0x4477b0,_0x1d14cd){_0x4477b0=_0x4477b0-0x127;const _0x1a1329=_0x1a13();let _0x592691=_0x1a1329[_0x4477b0];return _0x592691;}import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x1a13(){const _0x5dade5=['631452NVawYc','**Status:**\x20','toUpperCase','filename','##\x20Screenshots\x20(','8MekPrd','7583384xRMHAi','push','length','fFfAB','MAJOR','**Duration:**\x20','1115236gvFteK','7MmEgyt','4241670drkhWw','relativePath','670946jjzlKA','17154234ZFkPDC','replace','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','sort',']\x20Issue','toISOString','**Generated:**\x20','toFixed','##\x20Task','filter','screenshot','1722955PAniVQ','##\x20Result','URQSm','---','**Screenshot:**','includes','###\x20','###\x20Summary','severity','#\x20Verification\x20Report','test'];_0x1a13=function(){return _0x5dade5;};return _0x1a13();}export async function collectScreenshots(_0xaa6871){const _0x4e72a6=_0x5926,_0x31cc49=[],_0xe47b47=[];if(!existsSync(_0xaa6871))return{'screenshots':_0x31cc49,'paths':_0xe47b47};const _0x44099f=await readdir(_0xaa6871),_0x553173=_0x44099f[_0x4e72a6(0x135)](_0x3ececa=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x4e72a6(0x141)](_0x3ececa))[_0x4e72a6(0x12f)]();for(const _0x1afd66 of _0x553173){const _0x49787a=join(_0xaa6871,_0x1afd66);_0x31cc49['push']({'filename':_0x1afd66,'path':_0x49787a,'relativePath':'./'+_0x1afd66}),_0xe47b47['push'](_0x49787a);}return{'screenshots':_0x31cc49,'paths':_0xe47b47};}function getSeverityEmoji(_0xd68020){const _0x326cf7=_0x5926,_0x5cfbcf={'URQSm':'BLOCKER'};switch(_0xd68020){case _0x5cfbcf[_0x326cf7(0x139)]:return'🔴';case _0x326cf7(0x14c):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x1e7294){const _0x1effe8=_0x5926,_0xe9c217=_0x1e7294[_0x1effe8(0x12d)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x4f452f=_0xe9c217['replace'](/^\d+-/,'');return _0x4f452f['split']('-')['map'](_0x56fb7f=>_0x56fb7f['charAt'](0x0)[_0x1effe8(0x144)]()+_0x56fb7f['slice'](0x1))['join']('\x20');}export function generateMarkdownReport(_0x1356cd){const _0x20180b=_0x5926,_0x4f0ed3={'MuliQ':function(_0x41e892,_0x329d35){return _0x41e892/_0x329d35;},'diDZg':'ISSUES\x20FOUND','fFfAB':function(_0x44efc9,_0x521055){return _0x44efc9>_0x521055;},'IKRWU':function(_0x5b301d,_0xb1a879){return _0x5b301d(_0xb1a879);}},{sessionId:_0x24d872,task:_0x17b882,url:_0x399050,success:_0xfe6a5d,summary:_0x2a2149,issues:_0x228b33,screenshots:_0x3ea973,durationMs:_0x3f6a26,traceViewerUrl:_0x29f421}=_0x1356cd,_0x4d7436=new Date()[_0x20180b(0x131)](),_0x3da82f=_0x4f0ed3['MuliQ'](_0x3f6a26,0x3e8)[_0x20180b(0x133)](0x1),_0x23488a=[];_0x23488a[_0x20180b(0x149)](_0x20180b(0x140)),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)]('**Session:**\x20`'+_0x24d872+'`'),_0x23488a['push'](_0x20180b(0x132)+_0x4d7436),_0x23488a[_0x20180b(0x149)](_0x20180b(0x14d)+_0x3da82f+'s'),_0x23488a[_0x20180b(0x149)](''),_0x23488a[_0x20180b(0x149)](_0x20180b(0x134)),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)]('**URL:**\x20'+_0x399050),_0x23488a[_0x20180b(0x149)](''),_0x23488a['push']('>\x20'+_0x17b882),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)](_0x20180b(0x138)),_0x23488a['push']('');const _0x16964e=_0xfe6a5d?'✅':'❌';_0x23488a[_0x20180b(0x149)](_0x20180b(0x143)+_0x16964e+'\x20'+(_0xfe6a5d?'PASSED':_0x4f0ed3['diDZg'])),_0x23488a['push'](''),_0x23488a['push'](_0x20180b(0x13e)),_0x23488a[_0x20180b(0x149)](''),_0x23488a['push'](_0x2a2149),_0x23488a['push']('');if(_0x228b33&&_0x4f0ed3[_0x20180b(0x14b)](_0x228b33[_0x20180b(0x14a)],0x0)){_0x23488a['push']('###\x20Issues\x20Found\x20('+_0x228b33[_0x20180b(0x14a)]+')'),_0x23488a['push']('');for(const _0x3dbbf2 of _0x228b33){const _0xff609d=_0x4f0ed3['IKRWU'](getSeverityEmoji,_0x3dbbf2[_0x20180b(0x13f)]);_0x23488a['push']('####\x20'+_0xff609d+'\x20['+_0x3dbbf2['severity']+_0x20180b(0x130)),_0x23488a['push'](''),_0x23488a['push'](_0x3dbbf2['description']),_0x23488a['push']('');if(_0x3dbbf2[_0x20180b(0x136)]){const _0x292cb7=_0x3dbbf2[_0x20180b(0x136)],_0x246e2e=_0x3ea973['find'](_0x1b8e41=>_0x1b8e41['filename']===_0x292cb7||_0x1b8e41[_0x20180b(0x145)][_0x20180b(0x13c)](_0x292cb7));_0x246e2e&&(_0x23488a['push'](_0x20180b(0x13b)),_0x23488a['push'](''),_0x23488a['push']('!['+_0x292cb7+']('+_0x246e2e[_0x20180b(0x12a)]+')'),_0x23488a[_0x20180b(0x149)](''));}}}if(_0x4f0ed3[_0x20180b(0x14b)](_0x3ea973[_0x20180b(0x14a)],0x0)){_0x23488a[_0x20180b(0x149)](_0x20180b(0x146)+_0x3ea973[_0x20180b(0x14a)]+')'),_0x23488a[_0x20180b(0x149)]('');for(const _0x1be86c of _0x3ea973){const _0x5bd1b6=_0x4f0ed3['IKRWU'](formatScreenshotCaption,_0x1be86c[_0x20180b(0x145)]);_0x23488a[_0x20180b(0x149)](_0x20180b(0x13d)+_0x5bd1b6),_0x23488a['push'](''),_0x23488a[_0x20180b(0x149)]('!['+_0x1be86c['filename']+']('+_0x1be86c['relativePath']+')'),_0x23488a['push']('');}}return _0x29f421&&(_0x23488a['push'](_0x20180b(0x13a)),_0x23488a[_0x20180b(0x149)](''),_0x23488a['push'](_0x20180b(0x12e)+_0x29f421+')'),_0x23488a['push']('')),_0x23488a['join']('\x0a');}
@@ -1 +1 @@
1
- function _0x1313(_0x56156c,_0x5d9337){_0x56156c=_0x56156c-0xd9;const _0x406e85=_0x406e();let _0x1313e4=_0x406e85[_0x56156c];return _0x1313e4;}(function(_0x48b61c,_0x13ff9e){const _0x311bb7=_0x1313,_0x463509=_0x48b61c();while(!![]){try{const _0x279bf2=-parseInt(_0x311bb7(0xdc))/0x1*(parseInt(_0x311bb7(0xe9))/0x2)+parseInt(_0x311bb7(0xe0))/0x3*(parseInt(_0x311bb7(0xd9))/0x4)+parseInt(_0x311bb7(0xe4))/0x5*(parseInt(_0x311bb7(0xe3))/0x6)+-parseInt(_0x311bb7(0xe2))/0x7*(parseInt(_0x311bb7(0xdf))/0x8)+-parseInt(_0x311bb7(0xe7))/0x9*(-parseInt(_0x311bb7(0xda))/0xa)+parseInt(_0x311bb7(0xdb))/0xb*(-parseInt(_0x311bb7(0xdd))/0xc)+parseInt(_0x311bb7(0xe5))/0xd*(parseInt(_0x311bb7(0xe1))/0xe);if(_0x279bf2===_0x13ff9e)break;else _0x463509['push'](_0x463509['shift']());}catch(_0x4b8d59){_0x463509['push'](_0x463509['shift']());}}}(_0x406e,0xefa1c));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x406e(){const _0x3c03aa=['\x20failed\x20(attempt\x20','128882qaSLGi','3788HHWZGU','10AJYPhj','44TAoohp','16IzYvOg','3135036sfAOBl','error','40mTilLO','1233rgUYXh','24942092gFdlBb','1862126lWHZyo','3156HoxgtU','12395sYJwAN','13TgEroh','),\x20retrying\x20in\x20','8216469kpWCLv'];_0x406e=function(){return _0x3c03aa;};return _0x406e();}export async function withRetry(_0x5e0ee6,_0x4a426d){const _0x9f30b=_0x1313,_0x2a4a21=_0x4a426d?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x2935e3=_0x4a426d?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x3e1aea;for(let _0x1e2264=0x0;_0x1e2264<=_0x2a4a21;_0x1e2264++){try{return await _0x5e0ee6();}catch(_0x41fc5f){_0x3e1aea=_0x41fc5f instanceof Error?_0x41fc5f:new Error(String(_0x41fc5f));if(_0x1e2264<_0x2a4a21){const _0x489b51=_0x2935e3*Math['pow'](0x2,_0x1e2264);_0x4a426d?.['label']&&console[_0x9f30b(0xde)](_0x4a426d['label']+_0x9f30b(0xe8)+(_0x1e2264+0x1)+'/'+(_0x2a4a21+0x1)+_0x9f30b(0xe6)+_0x489b51+'ms...'),await new Promise(_0x394da4=>setTimeout(_0x394da4,_0x489b51));}}}throw _0x3e1aea;}
1
+ (function(_0x40a58f,_0x374c51){const _0x42a7c8=_0x380f,_0x2a92af=_0x40a58f();while(!![]){try{const _0x3431bf=parseInt(_0x42a7c8(0x77))/0x1+parseInt(_0x42a7c8(0x79))/0x2*(parseInt(_0x42a7c8(0x7c))/0x3)+-parseInt(_0x42a7c8(0x75))/0x4*(-parseInt(_0x42a7c8(0x7e))/0x5)+parseInt(_0x42a7c8(0x72))/0x6+-parseInt(_0x42a7c8(0x78))/0x7+-parseInt(_0x42a7c8(0x76))/0x8+-parseInt(_0x42a7c8(0x7b))/0x9;if(_0x3431bf===_0x374c51)break;else _0x2a92af['push'](_0x2a92af['shift']());}catch(_0x54f792){_0x2a92af['push'](_0x2a92af['shift']());}}}(_0x57ec,0xc25a2));function _0x380f(_0x4ead6b,_0x4c53cd){_0x4ead6b=_0x4ead6b-0x72;const _0x57ec6c=_0x57ec();let _0x380f48=_0x57ec6c[_0x4ead6b];return _0x380f48;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2384c6,_0x22ecc8){const _0x12cd2f=_0x380f,_0x39a2f7={'UefmP':function(_0x413b45){return _0x413b45();},'htYuo':function(_0x36f1b6,_0x13d1c5){return _0x36f1b6 instanceof _0x13d1c5;},'eTQEP':function(_0x3ce78b,_0x2e9f96){return _0x3ce78b*_0x2e9f96;}},_0x397b10=_0x22ecc8?.['maxRetries']??DEFAULT_MAX_RETRIES,_0xafe087=_0x22ecc8?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x3f072e;for(let _0x22cff6=0x0;_0x22cff6<=_0x397b10;_0x22cff6++){try{return await _0x39a2f7['UefmP'](_0x2384c6);}catch(_0x26d3ca){_0x3f072e=_0x39a2f7[_0x12cd2f(0x7f)](_0x26d3ca,Error)?_0x26d3ca:new Error(String(_0x26d3ca));if(_0x22cff6<_0x397b10){const _0x2b7000=_0x39a2f7[_0x12cd2f(0x74)](_0xafe087,Math['pow'](0x2,_0x22cff6));_0x22ecc8?.[_0x12cd2f(0x73)]&&console[_0x12cd2f(0x7d)](_0x22ecc8['label']+'\x20failed\x20(attempt\x20'+(_0x22cff6+0x1)+'/'+(_0x397b10+0x1)+'),\x20retrying\x20in\x20'+_0x2b7000+_0x12cd2f(0x7a)),await new Promise(_0x33a544=>setTimeout(_0x33a544,_0x2b7000));}}}throw _0x3f072e;}function _0x57ec(){const _0x34dcf7=['error','310PRRUQB','htYuo','3984336hsMDmO','label','eTQEP','82936MrEJLq','344968fZJDwV','548017KuBHuF','8037050LLIeCA','398xeJXSy','ms...','9402822iWaWbu','8058sBkjuu'];_0x57ec=function(){return _0x34dcf7;};return _0x57ec();}
@@ -1 +1 @@
1
- const _0xcd620c=_0x170b;(function(_0x43abcd,_0x2c7bbd){const _0x1896f9=_0x170b,_0x3b3fe4=_0x43abcd();while(!![]){try{const _0x5c856d=parseInt(_0x1896f9(0x14f))/0x1*(parseInt(_0x1896f9(0x163))/0x2)+-parseInt(_0x1896f9(0x162))/0x3*(parseInt(_0x1896f9(0x16f))/0x4)+-parseInt(_0x1896f9(0x16b))/0x5+-parseInt(_0x1896f9(0x150))/0x6*(-parseInt(_0x1896f9(0x157))/0x7)+-parseInt(_0x1896f9(0x146))/0x8+parseInt(_0x1896f9(0x16a))/0x9*(parseInt(_0x1896f9(0x167))/0xa)+parseInt(_0x1896f9(0x151))/0xb*(-parseInt(_0x1896f9(0x175))/0xc);if(_0x5c856d===_0x2c7bbd)break;else _0x3b3fe4['push'](_0x3b3fe4['shift']());}catch(_0x59ed93){_0x3b3fe4['push'](_0x3b3fe4['shift']());}}}(_0x5c36,0x20c19));import*as _0x5903d1 from'fs';import*as _0x24a72f from'path';import*as _0xaaf4b5 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x24a72f[_0xcd620c(0x15d)](_0xaaf4b5[_0xcd620c(0x173)](),_0xcd620c(0x158),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x33aaa4=_0xcd620c,_0x1dd7f2={'UwmqN':'utf-8','PjhIa':function(_0x310206){return _0x310206();}};try{if(_0x5903d1['existsSync'](CACHE_FILE)){const _0x55ceab=JSON[_0x33aaa4(0x170)](_0x5903d1['readFileSync'](CACHE_FILE,_0x1dd7f2[_0x33aaa4(0x16c)]));return{'version':0x3,'sessions':_0x55ceab[_0x33aaa4(0x143)]||{},'branches':_0x55ceab[_0x33aaa4(0x171)]||{},'lastEnabledSessionClearedAt':_0x55ceab['lastEnabledSessionClearedAt']};}}catch{}return _0x1dd7f2['PjhIa'](createEmptyCache);}function saveCache(_0x322fe0){const _0x189a37=_0xcd620c;try{const _0x2b858a=_0x24a72f['dirname'](CACHE_FILE);!_0x5903d1['existsSync'](_0x2b858a)&&_0x5903d1['mkdirSync'](_0x2b858a,{'recursive':!![]}),_0x5903d1['writeFileSync'](CACHE_FILE,JSON[_0x189a37(0x168)](_0x322fe0,null,0x2));}catch{}}export function getCurrentBranch(){const _0xfcb4b1=_0xcd620c,_0x43b74a={'NgbSE':_0xfcb4b1(0x145),'aKfyK':'pipe'};try{const _0xdd2698=execSync(_0x43b74a['NgbSE'],{'encoding':'utf-8','stdio':[_0x43b74a[_0xfcb4b1(0x149)],_0x43b74a['aKfyK'],_0xfcb4b1(0x159)]})['trim']();if(!_0xdd2698||_0xdd2698===_0xfcb4b1(0x15c))return null;return _0xdd2698;}catch{return null;}}export function enableBranch(_0x4bea66){const _0x20a34a=loadCache();_0x20a34a['branches'][_0x4bea66]=!![],saveCache(_0x20a34a);}export function disableBranch(_0x3e8435){const _0x42e03d=_0xcd620c,_0x18da50={'jAOLZ':function(_0x2eaccb){return _0x2eaccb();},'dYxjv':function(_0x6e816d,_0xa8b781){return _0x6e816d(_0xa8b781);}},_0x1459af=_0x18da50[_0x42e03d(0x148)](loadCache);delete _0x1459af[_0x42e03d(0x171)][_0x3e8435],_0x18da50['dYxjv'](saveCache,_0x1459af);}export function isBranchEnabled(_0xd7d7b9){const _0x387e94=_0xcd620c,_0x2a559f={'gwJmv':function(_0x1efb08){return _0x1efb08();}},_0x443727=_0x2a559f['gwJmv'](loadCache);return _0x443727[_0x387e94(0x171)][_0xd7d7b9]===!![];}function getOrCreateSession(_0x3a7fbc,_0x56b2ec){const _0x176fe1=_0xcd620c;return!_0x3a7fbc[_0x176fe1(0x143)][_0x56b2ec]&&(_0x3a7fbc['sessions'][_0x56b2ec]={}),_0x3a7fbc['sessions'][_0x56b2ec];}export function enableSession(_0x477bb3){const _0x4cb19b=_0xcd620c,_0x1f75e2={'llVLF':function(_0x1bfa8f){return _0x1bfa8f();},'YVIeF':function(_0xb1d6ea,_0x5c1b6e,_0x1bc618){return _0xb1d6ea(_0x5c1b6e,_0x1bc618);},'qdlfl':function(_0x19d71c,_0x5daef0){return _0x19d71c!==_0x5daef0;},'hlbTr':_0x4cb19b(0x15f),'bQctA':function(_0x5f1bed,_0x49795c){return _0x5f1bed(_0x49795c);}},_0x185e76=_0x1f75e2['llVLF'](loadCache),_0x36ca03=_0x1f75e2['YVIeF'](getOrCreateSession,_0x185e76,_0x477bb3);_0x36ca03['enabled']=!![];const _0xa1cbe=getCurrentBranch();_0xa1cbe&&_0x1f75e2['qdlfl'](_0xa1cbe,'main')&&_0xa1cbe!==_0x1f75e2['hlbTr']&&(_0x185e76[_0x4cb19b(0x171)][_0xa1cbe]=!![],_0x36ca03['currentBranch']=_0xa1cbe),_0x1f75e2[_0x4cb19b(0x161)](saveCache,_0x185e76);}export function isSessionEnabled(_0x55664b){const _0x567607=_0xcd620c,_0x44af6d={'ruTgZ':function(_0x130e66){return _0x130e66();},'CmQUg':function(_0x22da43,_0x4fbbd1){return _0x22da43===_0x4fbbd1;},'Tviub':function(_0x3d2744,_0x114413){return _0x3d2744===_0x114413;},'lmziQ':_0x567607(0x15f),'jAMbE':function(_0x51dc36,_0x3e8944){return _0x51dc36===_0x3e8944;},'IvUBf':function(_0x4e55fd,_0x33c7eb){return _0x4e55fd||_0x33c7eb;}},_0x26614d=_0x44af6d[_0x567607(0x156)](loadCache),_0x204b20=_0x44af6d['ruTgZ'](getCurrentBranch);if(!_0x204b20||_0x44af6d[_0x567607(0x14e)](_0x204b20,_0x567607(0x155))||_0x44af6d['Tviub'](_0x204b20,_0x44af6d[_0x567607(0x165)]))return _0x26614d['sessions'][_0x55664b]?.['enabled']===!![];const _0x3ebe5b=_0x44af6d[_0x567607(0x15b)](_0x26614d[_0x567607(0x171)][_0x204b20],!![]),_0xf8dd00=_0x26614d[_0x567607(0x143)][_0x55664b]?.[_0x567607(0x172)]===!![];return _0x44af6d['IvUBf'](_0x3ebe5b,_0xf8dd00);}export function disableSession(_0x4c5fcc){const _0x59a4d8=_0xcd620c,_0x1f719b={'FsaAi':function(_0x4f48aa,_0x22a9ba){return _0x4f48aa(_0x22a9ba);}},_0xb9615=loadCache(),_0x3c55dd=getOrCreateSession(_0xb9615,_0x4c5fcc);_0x3c55dd[_0x59a4d8(0x172)]=![],_0x1f719b[_0x59a4d8(0x166)](saveCache,_0xb9615);}function _0x5c36(){const _0x123655=['now','currentBranch','16uVtYgK','parse','branches','enabled','homedir','oeuhp','12cWKVtS','sessions','lastPlanReminderAt','git\x20rev-parse\x20--abbrev-ref\x20HEAD','268968YExhCj','featureId','jAOLZ','aKfyK','AcKCK','lastEnabledSessionClearedAt','GDiBl','emKpJ','CmQUg','5373OMprHc','143178lxginE','1912999oMJsPv','gLHPE','DIldJ','LuQFa','main','ruTgZ','42jhOpDz','.claude','pipe','clear','jAMbE','HEAD','join','TzZhx','master','prompted','bQctA','65220RDZxjM','54AfGlHd','lastStopReminderAt','lmziQ','FsaAi','4970kdHaCv','stringify','registeredAt','3231HAvwTy','190065LOHOFt','UwmqN'];_0x5c36=function(){return _0x123655;};return _0x5c36();}export function updateBranchTracking(_0x4be38d){const _0x13a4aa=_0xcd620c,_0x430a40={'gLHPE':function(_0x470216){return _0x470216();},'AcKCK':_0x13a4aa(0x155),'DIldJ':function(_0x1774f3,_0x40753d){return _0x1774f3(_0x40753d);}},_0x5b685d=_0x430a40[_0x13a4aa(0x152)](loadCache),_0x17025d=_0x5b685d['sessions'][_0x4be38d];if(!_0x17025d?.[_0x13a4aa(0x172)])return;const _0x512149=_0x430a40['gLHPE'](getCurrentBranch);if(!_0x512149||_0x512149===_0x430a40[_0x13a4aa(0x14a)]||_0x512149==='master')return;_0x17025d[_0x13a4aa(0x16e)]!==_0x512149&&(_0x5b685d['branches'][_0x512149]=!![],_0x17025d[_0x13a4aa(0x16e)]=_0x512149,_0x430a40[_0x13a4aa(0x153)](saveCache,_0x5b685d));}function _0x170b(_0x3a9bfc,_0x13bac0){_0x3a9bfc=_0x3a9bfc-0x143;const _0x5c362b=_0x5c36();let _0x170b8d=_0x5c362b[_0x3a9bfc];return _0x170b8d;}export function initBranchTracking(_0x18b093){const _0x1615e8=_0xcd620c,_0x224b8c={'ruhwx':function(_0x521bb6,_0x4a0915){return _0x521bb6===_0x4a0915;}},_0x27c4b2=loadCache(),_0x4ed411=getCurrentBranch();if(!_0x4ed411||_0x4ed411==='main'||_0x224b8c['ruhwx'](_0x4ed411,'master'))return;if(_0x27c4b2[_0x1615e8(0x171)][_0x4ed411]===!![]){const _0x4e6004=getOrCreateSession(_0x27c4b2,_0x18b093);_0x4e6004['enabled']=!![],_0x4e6004['currentBranch']=_0x4ed411,saveCache(_0x27c4b2);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x402935){const _0x3c2a3a=_0xcd620c,_0x35d8dd={'LuQFa':function(_0x1c072a,_0x411150){return _0x1c072a(_0x411150);}},_0x78215a=loadCache(),_0xf84858=_0x78215a['sessions'][_0x402935];_0xf84858?.[_0x3c2a3a(0x172)]&&(_0x78215a['lastEnabledSessionClearedAt']=Date['now'](),_0x35d8dd[_0x3c2a3a(0x154)](saveCache,_0x78215a));}export function shouldAutoEnableAfterClear(_0x1b3ad5){const _0x322ff1=_0xcd620c,_0x4d0d1c={'YIloa':function(_0x5e8ce2,_0x102443){return _0x5e8ce2-_0x102443;}};if(_0x1b3ad5!==_0x322ff1(0x15a))return![];const _0x454c66=loadCache(),_0x2ecfa2=_0x454c66[_0x322ff1(0x14b)];if(!_0x2ecfa2)return![];const _0x2bfe3b=_0x4d0d1c['YIloa'](Date['now'](),_0x2ecfa2);return _0x2bfe3b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x483013){const _0x4b2927=_0xcd620c,_0x2f5d7e={'iCNCO':function(_0xe23f45){return _0xe23f45();},'pStcZ':'master'},_0x16dbaa=_0x2f5d7e['iCNCO'](loadCache),_0x3b90aa=getOrCreateSession(_0x16dbaa,_0x483013);_0x3b90aa['enabled']=!![];const _0x50c3eb=_0x2f5d7e['iCNCO'](getCurrentBranch);_0x50c3eb&&_0x50c3eb!==_0x4b2927(0x155)&&_0x50c3eb!==_0x2f5d7e['pStcZ']&&(_0x3b90aa[_0x4b2927(0x16e)]=_0x50c3eb),delete _0x16dbaa[_0x4b2927(0x14b)],saveCache(_0x16dbaa);}export function registerSession(_0x5506bd,_0x2642e6){const _0x4c702b=_0xcd620c,_0x2850dd={'oeuhp':function(_0x21dc65,_0x1d3572){return _0x21dc65(_0x1d3572);}},_0x58bb12=loadCache(),_0x21047e=getOrCreateSession(_0x58bb12,_0x5506bd);_0x21047e[_0x4c702b(0x147)]=_0x2642e6,_0x21047e['registeredAt']=new Date()['toISOString'](),_0x2850dd[_0x4c702b(0x174)](saveCache,_0x58bb12);}export function getSessionEntry(_0x26db13){const _0x5434d5=_0xcd620c,_0x253b5a={'GDiBl':function(_0x4b1325){return _0x4b1325();}},_0x1e1ae8=_0x253b5a[_0x5434d5(0x14c)](loadCache),_0x357513=_0x1e1ae8['sessions'][_0x26db13];if(_0x357513?.['featureId']&&_0x357513?.['registeredAt'])return{'featureId':_0x357513['featureId'],'registeredAt':_0x357513['registeredAt']};return null;}export function unregisterSession(_0x458199){const _0x84297b=_0xcd620c,_0x13c9cd=loadCache(),_0x1fa295=_0x13c9cd['sessions'][_0x458199];_0x1fa295&&(delete _0x1fa295[_0x84297b(0x147)],delete _0x1fa295[_0x84297b(0x169)],saveCache(_0x13c9cd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x4c2927){const _0x90f9ea=_0xcd620c,_0x480614={'YEPGZ':function(_0x5c45f5){return _0x5c45f5();},'TzZhx':function(_0x2ce376,_0x47561c,_0x1d38d9){return _0x2ce376(_0x47561c,_0x1d38d9);}},_0x6576d1=_0x480614['YEPGZ'](loadCache),_0x7538d=_0x480614[_0x90f9ea(0x15e)](getOrCreateSession,_0x6576d1,_0x4c2927),_0x39fd74=_0x7538d['lastPlanReminderAt']||0x0,_0x2dafb7=Date[_0x90f9ea(0x16d)]();if(_0x2dafb7-_0x39fd74>=PLAN_REMINDER_INTERVAL_MS)return _0x7538d[_0x90f9ea(0x144)]=_0x2dafb7,saveCache(_0x6576d1),!![];return![];}export function shouldShowStopReminder(_0x1dcc7c){const _0x16d72c=_0xcd620c,_0xfba7bc={'emKpJ':function(_0x37d66b,_0x3d4aed){return _0x37d66b>=_0x3d4aed;},'GgQJt':function(_0x18198d,_0x2b9038){return _0x18198d-_0x2b9038;}},_0x278152=loadCache(),_0x47bb01=getOrCreateSession(_0x278152,_0x1dcc7c),_0x14a51b=_0x47bb01[_0x16d72c(0x164)]||0x0,_0x1d5718=Date['now']();if(_0xfba7bc[_0x16d72c(0x14d)](_0xfba7bc['GgQJt'](_0x1d5718,_0x14a51b),STOP_REMINDER_INTERVAL_MS))return _0x47bb01[_0x16d72c(0x164)]=_0x1d5718,saveCache(_0x278152),!![];return![];}export function hasSessionBeenPrompted(_0x5e28dc){const _0x2b6852=_0xcd620c,_0x6850da=loadCache();return _0x6850da[_0x2b6852(0x143)][_0x5e28dc]?.[_0x2b6852(0x160)]===!![];}export function markSessionPrompted(_0x244730){const _0x11dedf=_0xcd620c,_0x3fc2f7={'aoAHP':function(_0x21e14e){return _0x21e14e();},'JfTWl':function(_0x41aecf,_0x313371,_0x2e0b66){return _0x41aecf(_0x313371,_0x2e0b66);}},_0x22ee9c=_0x3fc2f7['aoAHP'](loadCache),_0x1a2ea9=_0x3fc2f7['JfTWl'](getOrCreateSession,_0x22ee9c,_0x244730);_0x1a2ea9[_0x11dedf(0x160)]=!![],saveCache(_0x22ee9c);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x323696=_0x3ecc;(function(_0x18c5b7,_0x4d45f7){const _0x40a4d7=_0x3ecc,_0xaab34a=_0x18c5b7();while(!![]){try{const _0xfde477=-parseInt(_0x40a4d7(0x16a))/0x1*(-parseInt(_0x40a4d7(0x172))/0x2)+-parseInt(_0x40a4d7(0x16e))/0x3+parseInt(_0x40a4d7(0x160))/0x4*(parseInt(_0x40a4d7(0x14d))/0x5)+parseInt(_0x40a4d7(0x162))/0x6*(parseInt(_0x40a4d7(0x163))/0x7)+parseInt(_0x40a4d7(0x150))/0x8*(parseInt(_0x40a4d7(0x149))/0x9)+parseInt(_0x40a4d7(0x159))/0xa+-parseInt(_0x40a4d7(0x16d))/0xb;if(_0xfde477===_0x4d45f7)break;else _0xaab34a['push'](_0xaab34a['shift']());}catch(_0x42075b){_0xaab34a['push'](_0xaab34a['shift']());}}}(_0x5e82,0xdd003));import*as _0x2f45cc from'fs';import*as _0x3ec97c from'path';import*as _0x4d83a0 from'os';function _0x5e82(){const _0x51b8d5=['lastEnabledSessionClearedAt','UFDyZ','zipNf','10637910FBdacb','master','Sayzm','sessions','JPqYT','hwUhI','toISOString','8feRAGM','currentBranch','4795338zkggjN','7TDQnJX','HEkvo','readFileSync','MXqEG','pbKvk','utf-8','HEAD','86551fNyTnt','PxMjz','branches','44785510yHrxtn','1736130QIHJBW','main','.ranger_cache.json','fDpgS','26VluVrN','mkdirSync','.claude','pipe','writeFileSync','clear','bypWL','enabled','lastPlanReminderAt','now','CkPHt','QKkYD','registeredAt','sQUfs','tAiZX','19071AclNFQ','lastStopReminderAt','existsSync','GBKMz','2073955UAyMwc','featureId','mLcDk','6560lNrBXy','ASIts','mQSVK','UuDbb','ITjZw','prompted'];_0x5e82=function(){return _0x51b8d5;};return _0x5e82();}import{execSync}from'child_process';const CACHE_FILE=_0x3ec97c['join'](_0x4d83a0['homedir'](),_0x323696(0x174),_0x323696(0x170));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x119476=_0x323696,_0x4158b1={'HEkvo':_0x119476(0x168)};try{if(_0x2f45cc[_0x119476(0x14b)](CACHE_FILE)){const _0x387d84=JSON['parse'](_0x2f45cc[_0x119476(0x165)](CACHE_FILE,_0x4158b1[_0x119476(0x164)]));return{'version':0x3,'sessions':_0x387d84[_0x119476(0x15c)]||{},'branches':_0x387d84[_0x119476(0x16c)]||{},'lastEnabledSessionClearedAt':_0x387d84[_0x119476(0x156)]};}}catch{}return createEmptyCache();}function saveCache(_0x2fbc13){const _0x2218f3=_0x323696;try{const _0x12a135=_0x3ec97c['dirname'](CACHE_FILE);!_0x2f45cc[_0x2218f3(0x14b)](_0x12a135)&&_0x2f45cc[_0x2218f3(0x173)](_0x12a135,{'recursive':!![]}),_0x2f45cc[_0x2218f3(0x176)](CACHE_FILE,JSON['stringify'](_0x2fbc13,null,0x2));}catch{}}export function getCurrentBranch(){const _0x41b5d2=_0x323696,_0x152c4f={'WPFMO':function(_0x5c635d,_0x34b3c4,_0x243194){return _0x5c635d(_0x34b3c4,_0x243194);},'bsnis':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ITjZw':'pipe','PIcRx':function(_0xe4cb3,_0x364d54){return _0xe4cb3===_0x364d54;},'UKOko':_0x41b5d2(0x169)};try{const _0x4ca67=_0x152c4f['WPFMO'](execSync,_0x152c4f['bsnis'],{'encoding':'utf-8','stdio':[_0x152c4f[_0x41b5d2(0x154)],_0x41b5d2(0x175),_0x41b5d2(0x175)]})['trim']();if(!_0x4ca67||_0x152c4f['PIcRx'](_0x4ca67,_0x152c4f['UKOko']))return null;return _0x4ca67;}catch{return null;}}export function enableBranch(_0x1a02a4){const _0x134229={'UULPq':function(_0x30f111,_0xfc0477){return _0x30f111(_0xfc0477);}},_0x21986f=loadCache();_0x21986f['branches'][_0x1a02a4]=!![],_0x134229['UULPq'](saveCache,_0x21986f);}export function disableBranch(_0x31a6b6){const _0x1b48a7=_0x323696,_0x10ce80={'Kuvrx':function(_0xe90b,_0x211b1d){return _0xe90b(_0x211b1d);}},_0x1280d4=loadCache();delete _0x1280d4[_0x1b48a7(0x16c)][_0x31a6b6],_0x10ce80['Kuvrx'](saveCache,_0x1280d4);}export function isBranchEnabled(_0x11156a){const _0x157b8e=_0x323696,_0x2550f7=loadCache();return _0x2550f7[_0x157b8e(0x16c)][_0x11156a]===!![];}function getOrCreateSession(_0x3e1b45,_0x15ea10){const _0x22536e=_0x323696;return!_0x3e1b45['sessions'][_0x15ea10]&&(_0x3e1b45[_0x22536e(0x15c)][_0x15ea10]={}),_0x3e1b45[_0x22536e(0x15c)][_0x15ea10];}export function enableSession(_0x33fd88){const _0x25cc7c=_0x323696,_0x7ef99a={'hwUhI':function(_0x1a7209){return _0x1a7209();},'AbwVk':_0x25cc7c(0x15a),'bypWL':function(_0x10ab08,_0x65e494){return _0x10ab08(_0x65e494);}},_0x5d774a=loadCache(),_0x5abb81=getOrCreateSession(_0x5d774a,_0x33fd88);_0x5abb81['enabled']=!![];const _0x5a8a36=_0x7ef99a[_0x25cc7c(0x15e)](getCurrentBranch);_0x5a8a36&&_0x5a8a36!=='main'&&_0x5a8a36!==_0x7ef99a['AbwVk']&&(_0x5d774a['branches'][_0x5a8a36]=!![],_0x5abb81[_0x25cc7c(0x161)]=_0x5a8a36),_0x7ef99a[_0x25cc7c(0x178)](saveCache,_0x5d774a);}export function isSessionEnabled(_0x259b3e){const _0x353e22=_0x323696,_0x5d7cfd={'WLhpT':function(_0x5e71f9){return _0x5e71f9();},'Sayzm':function(_0x38db65){return _0x38db65();},'MPmMU':'main','dmwYC':function(_0x41f570,_0x339b41){return _0x41f570===_0x339b41;},'CkPHt':function(_0x288057,_0x2c0b9c){return _0x288057===_0x2c0b9c;},'ASIts':function(_0x33cea2,_0x46bc82){return _0x33cea2||_0x46bc82;}},_0x23744f=_0x5d7cfd['WLhpT'](loadCache),_0x3512bb=_0x5d7cfd[_0x353e22(0x15b)](getCurrentBranch);if(!_0x3512bb||_0x3512bb===_0x5d7cfd['MPmMU']||_0x3512bb===_0x353e22(0x15a))return _0x5d7cfd['dmwYC'](_0x23744f['sessions'][_0x259b3e]?.[_0x353e22(0x179)],!![]);const _0x25f9c1=_0x23744f[_0x353e22(0x16c)][_0x3512bb]===!![],_0x51e2bb=_0x5d7cfd[_0x353e22(0x17c)](_0x23744f[_0x353e22(0x15c)][_0x259b3e]?.['enabled'],!![]);return _0x5d7cfd[_0x353e22(0x151)](_0x25f9c1,_0x51e2bb);}export function disableSession(_0x209684){const _0x349f83=_0x323696,_0x2e9e2c={'qKBNo':function(_0x443b2b,_0x11b249){return _0x443b2b(_0x11b249);}},_0x1042cb=loadCache(),_0x53d0a7=getOrCreateSession(_0x1042cb,_0x209684);_0x53d0a7[_0x349f83(0x179)]=![],_0x2e9e2c['qKBNo'](saveCache,_0x1042cb);}export function updateBranchTracking(_0x1ecf8f){const _0x5286b7=_0x323696,_0x10a694={'zipNf':'main'},_0x3ed70d=loadCache(),_0x2cfaf5=_0x3ed70d[_0x5286b7(0x15c)][_0x1ecf8f];if(!_0x2cfaf5?.[_0x5286b7(0x179)])return;const _0x246027=getCurrentBranch();if(!_0x246027||_0x246027===_0x10a694[_0x5286b7(0x158)]||_0x246027==='master')return;_0x2cfaf5[_0x5286b7(0x161)]!==_0x246027&&(_0x3ed70d[_0x5286b7(0x16c)][_0x246027]=!![],_0x2cfaf5['currentBranch']=_0x246027,saveCache(_0x3ed70d));}export function initBranchTracking(_0x5791f5){const _0x13d5c2=_0x323696,_0x4a05d9={'fDpgS':function(_0xaf6d52){return _0xaf6d52();},'trOXb':function(_0x1657fc,_0x5bd0f5){return _0x1657fc===_0x5bd0f5;},'mQSVK':'master','kWWiQ':function(_0x1f82e4,_0x5afae0,_0x273b26){return _0x1f82e4(_0x5afae0,_0x273b26);},'UuDbb':function(_0x14c645,_0x27be79){return _0x14c645(_0x27be79);}},_0x28538d=_0x4a05d9[_0x13d5c2(0x171)](loadCache),_0xe8a9e6=getCurrentBranch();if(!_0xe8a9e6||_0xe8a9e6===_0x13d5c2(0x16f)||_0x4a05d9['trOXb'](_0xe8a9e6,_0x4a05d9[_0x13d5c2(0x152)]))return;if(_0x28538d[_0x13d5c2(0x16c)][_0xe8a9e6]===!![]){const _0x2d0afd=_0x4a05d9['kWWiQ'](getOrCreateSession,_0x28538d,_0x5791f5);_0x2d0afd['enabled']=!![],_0x2d0afd[_0x13d5c2(0x161)]=_0xe8a9e6,_0x4a05d9[_0x13d5c2(0x153)](saveCache,_0x28538d);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x3ecc(_0x120ecf,_0x31cff4){_0x120ecf=_0x120ecf-0x148;const _0x5e8291=_0x5e82();let _0x3ecc71=_0x5e8291[_0x120ecf];return _0x3ecc71;}export function recordEnabledSessionCleared(_0x45145d){const _0x4a34fc=_0x323696,_0x8e7673={'mLcDk':function(_0x38e0f0){return _0x38e0f0();}},_0x39d0c1=_0x8e7673[_0x4a34fc(0x14f)](loadCache),_0x4b199e=_0x39d0c1['sessions'][_0x45145d];_0x4b199e?.[_0x4a34fc(0x179)]&&(_0x39d0c1[_0x4a34fc(0x156)]=Date[_0x4a34fc(0x17b)](),saveCache(_0x39d0c1));}export function shouldAutoEnableAfterClear(_0x25f746){const _0x11f5d5=_0x323696,_0x48426f={'GtsfF':_0x11f5d5(0x177),'PxMjz':function(_0xb88d0c,_0x28099a){return _0xb88d0c<=_0x28099a;}};if(_0x25f746!==_0x48426f['GtsfF'])return![];const _0x262517=loadCache(),_0x31aea7=_0x262517['lastEnabledSessionClearedAt'];if(!_0x31aea7)return![];const _0x3a6258=Date[_0x11f5d5(0x17b)]()-_0x31aea7;return _0x48426f[_0x11f5d5(0x16b)](_0x3a6258,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5818a9){const _0x153aa1=_0x323696,_0x5de5e5={'JPqYT':function(_0x5e5563,_0x3382a4,_0x508889){return _0x5e5563(_0x3382a4,_0x508889);},'LqIXG':_0x153aa1(0x16f),'tAiZX':function(_0x568230,_0x46cb76){return _0x568230!==_0x46cb76;},'GBKMz':'master','pbKvk':function(_0x1d4c06,_0x59a9a5){return _0x1d4c06(_0x59a9a5);}},_0x1fcb02=loadCache(),_0x2fc6a1=_0x5de5e5[_0x153aa1(0x15d)](getOrCreateSession,_0x1fcb02,_0x5818a9);_0x2fc6a1['enabled']=!![];const _0x381761=getCurrentBranch();_0x381761&&_0x381761!==_0x5de5e5['LqIXG']&&_0x5de5e5[_0x153aa1(0x148)](_0x381761,_0x5de5e5[_0x153aa1(0x14c)])&&(_0x2fc6a1['currentBranch']=_0x381761),delete _0x1fcb02['lastEnabledSessionClearedAt'],_0x5de5e5[_0x153aa1(0x167)](saveCache,_0x1fcb02);}export function registerSession(_0x56cafe,_0x128022){const _0x16bab3=_0x323696,_0x34b606={'MXqEG':function(_0x43608d,_0x410ab1){return _0x43608d(_0x410ab1);}},_0x293f4e=loadCache(),_0x2d6a10=getOrCreateSession(_0x293f4e,_0x56cafe);_0x2d6a10[_0x16bab3(0x14e)]=_0x128022,_0x2d6a10['registeredAt']=new Date()[_0x16bab3(0x15f)](),_0x34b606[_0x16bab3(0x166)](saveCache,_0x293f4e);}export function getSessionEntry(_0x5ab8e8){const _0x1d0a90=_0x323696,_0x332259={'HbELA':function(_0x395c66){return _0x395c66();}},_0x3da86c=_0x332259['HbELA'](loadCache),_0x151dbc=_0x3da86c[_0x1d0a90(0x15c)][_0x5ab8e8];if(_0x151dbc?.['featureId']&&_0x151dbc?.[_0x1d0a90(0x17e)])return{'featureId':_0x151dbc[_0x1d0a90(0x14e)],'registeredAt':_0x151dbc['registeredAt']};return null;}export function unregisterSession(_0x3a8868){const _0x21f50f=_0x323696,_0x9cbc87={'tkLdi':function(_0x73f7e2){return _0x73f7e2();}},_0x3731ca=_0x9cbc87['tkLdi'](loadCache),_0x5380d2=_0x3731ca['sessions'][_0x3a8868];_0x5380d2&&(delete _0x5380d2['featureId'],delete _0x5380d2[_0x21f50f(0x17e)],saveCache(_0x3731ca));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x8859a7){const _0x15cfcd=_0x323696,_0x377a08={'GqFqX':function(_0x3b8689){return _0x3b8689();},'UFDyZ':function(_0x57dc6c,_0x10e0f8){return _0x57dc6c>=_0x10e0f8;},'sQUfs':function(_0x487c6d,_0xc34d0f){return _0x487c6d-_0xc34d0f;}},_0x518043=_0x377a08['GqFqX'](loadCache),_0x272c70=getOrCreateSession(_0x518043,_0x8859a7),_0x35b742=_0x272c70[_0x15cfcd(0x17a)]||0x0,_0x4ae4a7=Date['now']();if(_0x377a08[_0x15cfcd(0x157)](_0x377a08[_0x15cfcd(0x17f)](_0x4ae4a7,_0x35b742),PLAN_REMINDER_INTERVAL_MS))return _0x272c70[_0x15cfcd(0x17a)]=_0x4ae4a7,saveCache(_0x518043),!![];return![];}export function shouldShowStopReminder(_0x550919){const _0x1d6e0a=_0x323696,_0x23fe22=loadCache(),_0x582197=getOrCreateSession(_0x23fe22,_0x550919),_0x19df7f=_0x582197[_0x1d6e0a(0x14a)]||0x0,_0x3573c9=Date[_0x1d6e0a(0x17b)]();if(_0x3573c9-_0x19df7f>=STOP_REMINDER_INTERVAL_MS)return _0x582197['lastStopReminderAt']=_0x3573c9,saveCache(_0x23fe22),!![];return![];}export function hasSessionBeenPrompted(_0xa1397){const _0x346bfe=_0x323696,_0x9fc8de={'WNggN':function(_0x4117e0){return _0x4117e0();}},_0xaa245e=_0x9fc8de['WNggN'](loadCache);return _0xaa245e['sessions'][_0xa1397]?.[_0x346bfe(0x155)]===!![];}export function markSessionPrompted(_0x1ec8f9){const _0x329f03=_0x323696,_0x3468bf={'QKkYD':function(_0x5d808c,_0x1f540e,_0x2c22af){return _0x5d808c(_0x1f540e,_0x2c22af);},'HxzEb':function(_0x575fc7,_0x5c521c){return _0x575fc7(_0x5c521c);}},_0x5b5d6c=loadCache(),_0x1e42a5=_0x3468bf[_0x329f03(0x17d)](getOrCreateSession,_0x5b5d6c,_0x1ec8f9);_0x1e42a5[_0x329f03(0x155)]=!![],_0x3468bf['HxzEb'](saveCache,_0x5b5d6c);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x124c79=_0x29a4;(function(_0x540e8e,_0x4be7be){const _0xce79af=_0x29a4,_0x522bc2=_0x540e8e();while(!![]){try{const _0x2a319c=-parseInt(_0xce79af(0xc2))/0x1+-parseInt(_0xce79af(0xaa))/0x2+-parseInt(_0xce79af(0x98))/0x3*(-parseInt(_0xce79af(0xeb))/0x4)+-parseInt(_0xce79af(0xc9))/0x5*(parseInt(_0xce79af(0xbd))/0x6)+-parseInt(_0xce79af(0xd5))/0x7*(-parseInt(_0xce79af(0x99))/0x8)+parseInt(_0xce79af(0x8c))/0x9+parseInt(_0xce79af(0xe9))/0xa*(parseInt(_0xce79af(0xc4))/0xb);if(_0x2a319c===_0x4be7be)break;else _0x522bc2['push'](_0x522bc2['shift']());}catch(_0x46cca2){_0x522bc2['push'](_0x522bc2['shift']());}}}(_0x2b39,0x964c7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x2b39(){const _0x5f3963=['DfuIq','allowInsecureLocalhost','kGlfT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','EUeDQ','configPath','70uFQdKn','cdpEndpoint','--disable-web-security','CeRao','headless','eEHhG','now','--disable-setuid-sandbox','string','location','push','WRwCv','LOegK','lKWCK','dBSXY','aNOEK','path','QecVJ','repeat','chromium','1210gsBedC','NHSpf','308668ezjqIF','UdBVH','args','xclAW','--no-sandbox','stringify','core','tDTlg','EObrU','sessions','1478322UrbdOQ','Environment\x20variable\x20','XzwFr','aSuis','all','HHxHY','utf-8','auth.json.enc','headers','Failed\x20to\x20decrypt\x20auth\x20state:\x20','.json','LvbQW','21KLBrIP','35864NPmmqA','phxUR','QdJMm','split','VBStW','clipboard-write','ranger-auth-','file','storageState','JEwTo','launchOptions','userAgent','GyFTs','WoIVZ','DPBOw','isArray','auth.json','245156Nariqn','settings.json','none','clipboard-read','ENOENT','nabuB','kbIVw','entries','extraHTTPHeaders','local','LeNPZ','ijUXX','object','contextOptions','join','warn','--unsafely-treat-insecure-origin-as-secure=http://localhost','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','bPNhn','6WrySMG','catch','install','ranger-config','parse','1166604wwmowF','sqICH','189321pBAYCy','code','--allow-running-insecure-content','ovmLD','includes','4634915KoAGlN','lbTdq','kqKIY','QIrkE','storageStatePath','filter'];_0x2b39=function(){return _0x5f3963;};return _0x2b39();}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(_0x2cc511){const _0x45b320=_0x29a4,_0x578e67={'xHnLs':function(_0x49a5b2,_0x3e8964,_0x34d1fc,_0x1546d6){return _0x49a5b2(_0x3e8964,_0x34d1fc,_0x1546d6);},'qopdk':_0x45b320(0xb3),'BZLbw':function(_0x28a634,_0x353908,_0x547974){return _0x28a634(_0x353908,_0x547974);},'fgkCO':function(_0x1707f8,_0x26abc7,_0x3f9a87){return _0x1707f8(_0x26abc7,_0x3f9a87);},'EUeDQ':function(_0x58e672,_0x515607){return _0x58e672(_0x515607);},'kbIVw':function(_0x490964,_0x1308e1){return _0x490964!==_0x1308e1;}},_0x479d9e=getRangerDir(),_0x4d480c=join(_0x479d9e,'ci',_0x2cc511),_0x26c195=_0x578e67['xHnLs'](join,_0x479d9e,_0x578e67['qopdk'],_0x2cc511),_0x3c7633=join(_0x479d9e,_0x2cc511),_0x174131=_0x578e67['BZLbw'](join,_0x479d9e,_0x578e67['qopdk']),_0x3258d1=_0x578e67['fgkCO'](join,_0x479d9e,'ci');if(existsSync(_0x4d480c))return _0x4d480c;if(_0x578e67[_0x45b320(0xd3)](existsSync,_0x26c195))return _0x26c195;if(existsSync(_0x3c7633)&&(_0x3c7633!==_0x174131&&_0x578e67[_0x45b320(0xb0)](_0x3c7633,_0x3258d1)?!![]:hasLegacyProfileFiles(_0x3c7633)))return _0x3c7633;return _0x26c195;}export function findExistingEnv(_0x1fc949,_0x457000){const _0x2f0482=_0x29a4,_0x49e948={'oodaw':function(_0x1fb496){return _0x1fb496();},'jhfUM':'legacy','XzwFr':_0x2f0482(0xb3),'vUsng':function(_0x23c63b,_0x780989,_0x10b659){return _0x23c63b(_0x780989,_0x10b659);},'scSoa':function(_0x7370db,_0x46dae5){return _0x7370db===_0x46dae5;},'phxUR':function(_0x4f5500,_0xf491e1){return _0x4f5500(_0xf491e1);}},_0x3f21b9=_0x49e948['oodaw'](getRangerDir),_0x35b223=_0x457000?.['locations']??['ci',_0x2f0482(0xb3),_0x49e948['jhfUM']],_0x157790=join(_0x3f21b9,'local'),_0x415442=join(_0x3f21b9,'ci'),_0x565e1c=[{'location':'ci','path':join(_0x3f21b9,'ci',_0x1fc949)},{'location':_0x49e948['XzwFr'],'path':join(_0x3f21b9,_0x49e948[_0x2f0482(0x8e)],_0x1fc949)},{'location':_0x49e948['jhfUM'],'path':_0x49e948['vUsng'](join,_0x3f21b9,_0x1fc949)}];for(const _0x510d73 of _0x565e1c){if(_0x35b223[_0x2f0482(0xc8)](_0x510d73[_0x2f0482(0xde)])&&existsSync(_0x510d73[_0x2f0482(0xe5)])){if(_0x510d73[_0x2f0482(0xde)]==='legacy'&&(_0x49e948['scSoa'](_0x510d73[_0x2f0482(0xe5)],_0x157790)||_0x510d73['path']===_0x415442)&&!_0x49e948[_0x2f0482(0x9a)](hasLegacyProfileFiles,_0x510d73['path']))continue;return{'path':_0x510d73[_0x2f0482(0xe5)],'location':_0x510d73['location']};}}return null;}function hasLegacyProfileFiles(_0x395108){const _0x2bca58=_0x29a4,_0x2d1c1e={'ibDCF':function(_0x2e20e5,_0x36f57a){return _0x2e20e5(_0x36f57a);},'kqKIY':_0x2bca58(0x93)};return _0x2d1c1e['ibDCF'](existsSync,join(_0x395108,_0x2bca58(0xab)))||_0x2d1c1e['ibDCF'](existsSync,join(_0x395108,'auth.json'))||existsSync(join(_0x395108,_0x2d1c1e[_0x2bca58(0xcb)]));}export function isEnvCi(_0x53488d){const _0x3d616e={'upIYC':function(_0xec7fb3,_0x44cf0a){return _0xec7fb3(_0x44cf0a);},'EUAVo':function(_0xc6528f,_0x4d11d0,_0x3e7700,_0x1b87b3){return _0xc6528f(_0x4d11d0,_0x3e7700,_0x1b87b3);}};return _0x3d616e['upIYC'](existsSync,_0x3d616e['EUAVo'](join,getRangerDir(),'ci',_0x53488d));}export async function cleanupTempFiles(_0x3c9a34){const _0x2a08b9=_0x29a4,_0x4f362a={'sySet':_0x2a08b9(0xae)},_0x6a617=[_0x3c9a34['tempAuthPath'],_0x3c9a34[_0x2a08b9(0xd4)]][_0x2a08b9(0xce)](Boolean);await Promise[_0x2a08b9(0x90)](_0x6a617['map'](_0x4acfb6=>unlink(_0x4acfb6)[_0x2a08b9(0xbe)](_0x12e2c0=>{const _0x2e54c4=_0x2a08b9;_0x12e2c0[_0x2e54c4(0xc5)]!==_0x4f362a['sySet']&&console[_0x2e54c4(0xb9)](_0x2e54c4(0xbb)+_0x4acfb6+':',_0x12e2c0['message']);})));}export function getSettingsPath(_0x49149f){const _0x4d6819=_0x29a4,_0x41f64b={'xclAW':function(_0xa64bbd,_0x32e77a,_0x413b4c){return _0xa64bbd(_0x32e77a,_0x413b4c);}};return _0x41f64b[_0x4d6819(0x85)](join,getEnvDir(_0x49149f),'settings.json');}export async function loadSettings(_0x4722fc){const _0x48b3ef=_0x29a4,_0x64b27a=getSettingsPath(_0x4722fc);if(!existsSync(_0x64b27a))return{};try{const _0x5abeda=await readFile(_0x64b27a,_0x48b3ef(0x92));return JSON[_0x48b3ef(0xc1)](_0x5abeda);}catch{return{};}}export async function saveSettings(_0x5d9d01,_0x5a5676){const _0x5b3624=_0x29a4,_0x5b3580={'GyFTs':function(_0x95a91,_0x5be501){return _0x95a91(_0x5be501);}},_0x12c848=_0x5b3580[_0x5b3624(0xa5)](getSettingsPath,_0x5d9d01),_0x4fd818=dirname(_0x12c848);!existsSync(_0x4fd818)&&await mkdir(_0x4fd818,{'recursive':!![]}),await writeFile(_0x12c848,JSON['stringify'](_0x5a5676,null,0x2));}export function resolveEnvVars(_0x27318e){const _0x93b09c=_0x29a4,_0x2bf00e={'aQATT':function(_0x315b8c,_0x84e54a){return _0x315b8c===_0x84e54a;},'bPNhn':_0x93b09c(0xdd),'DfuIq':_0x93b09c(0xb6)};if(typeof _0x27318e===_0x2bf00e[_0x93b09c(0xbc)])return _0x27318e['replace'](/\$\{(\w+)\}/g,(_0x460702,_0x15c3d0)=>{const _0x2cc697=_0x93b09c,_0x51447d=process['env'][_0x15c3d0];if(_0x2bf00e['aQATT'](_0x51447d,undefined))throw new Error(_0x2cc697(0x8d)+_0x15c3d0+'\x20is\x20not\x20set');return _0x51447d;});if(Array[_0x93b09c(0xa8)](_0x27318e))return _0x27318e['map'](resolveEnvVars);if(_0x27318e&&typeof _0x27318e===_0x2bf00e[_0x93b09c(0xcf)])return Object['fromEntries'](Object[_0x93b09c(0xb1)](_0x27318e)['map'](([_0x1c6c52,_0x2fae99])=>[_0x1c6c52,resolveEnvVars(_0x2fae99)]));return _0x27318e;}const isRecord=_0x14af7c=>typeof _0x14af7c==='object'&&_0x14af7c!==null&&!Array['isArray'](_0x14af7c),asRecord=_0x5901b5=>isRecord(_0x5901b5)?_0x5901b5:undefined,mergeHeaders=(_0x1ff56a,_0x1bcfba)=>{const _0x46749c=_0x29a4,_0x5892ff={'UdBVH':function(_0x132c02,_0x3fed9e){return _0x132c02??_0x3fed9e;}},_0x1f4213={..._0x1ff56a??{},..._0x5892ff[_0x46749c(0x83)](_0x1bcfba,{})};return Object['keys'](_0x1f4213)['length']?_0x1f4213:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x124c79(0xd7),_0x124c79(0xc6),_0x124c79(0xba)];export function buildBrowserOptionsFromSettings(_0x2e2cc3,_0x28fd95={}){const _0x1996ae=_0x124c79,_0x3dd929={'lKWCK':function(_0xd7c1f6,_0x1eb29a){return _0xd7c1f6(_0x1eb29a);},'QAkNd':function(_0x5a4bcf,_0x283770){return _0x5a4bcf(_0x283770);},'THTCk':'string','tDTlg':function(_0x4a383e,_0x3bfcc0){return _0x4a383e(_0x3bfcc0);}},_0x1df2e7=asRecord(_0x2e2cc3['browser']),_0xb72d56={..._0x3dd929[_0x1996ae(0xe2)](asRecord,_0x1df2e7?.[_0x1996ae(0xa3)])??{}};typeof _0x28fd95[_0x1996ae(0xd9)]==='boolean'&&(_0xb72d56[_0x1996ae(0xd9)]=_0x28fd95['headless']);if(_0x2e2cc3['safeMode']){const _0x3593e2=_0xb72d56['args']??[],_0x62e8c6=SAFE_MODE_ARGS['filter'](_0x2cecf2=>!_0x3593e2[_0x1996ae(0xc8)](_0x2cecf2));_0xb72d56['args']=[..._0x3593e2,..._0x62e8c6];}if(_0x2e2cc3[_0x1996ae(0xd0)]){const _0x171919=_0xb72d56[_0x1996ae(0x84)]??[],_0x240ff2=ALLOW_LOCALHOST_ARGS[_0x1996ae(0xce)](_0x45f9b4=>!_0x171919[_0x1996ae(0xc8)](_0x45f9b4));_0xb72d56['args']=[..._0x171919,..._0x240ff2];}const _0x44b0e3={..._0x3dd929['QAkNd'](asRecord,_0x1df2e7?.['contextOptions'])??{}};typeof _0x2e2cc3['userAgent']===_0x3dd929['THTCk']&&(_0x44b0e3['userAgent']=_0x2e2cc3[_0x1996ae(0xa4)]);const _0x189b00=mergeHeaders(_0x3dd929[_0x1996ae(0x89)](asRecord,_0x44b0e3['extraHTTPHeaders']),_0x3dd929[_0x1996ae(0xe2)](asRecord,_0x2e2cc3[_0x1996ae(0x94)]));return _0x189b00?_0x44b0e3[_0x1996ae(0xb2)]=_0x189b00:delete _0x44b0e3['extraHTTPHeaders'],_0x28fd95['storageStatePath']&&(_0x44b0e3['storageState']=_0x28fd95[_0x1996ae(0xcd)]),{'launchOptions':_0xb72d56,'contextOptions':_0x44b0e3};}export async function buildPlaywrightConfig(_0xfdb1a0,_0x138cff,_0xebb8b3,_0x89346c){const _0x1a04b2=_0x124c79,_0x50d5dc={'dBSXY':function(_0x3dd3ec,_0x9b5b2c){return _0x3dd3ec===_0x9b5b2c;},'ovmLD':_0x1a04b2(0x86),'QecVJ':'--disable-setuid-sandbox','WoIVZ':'chromium','uqRKX':'auth.json','ijUXX':function(_0x194dcd){return _0x194dcd();},'LeNPZ':function(_0x4c0045,_0x58cadb){return _0x4c0045(_0x58cadb);},'WkIaP':function(_0x105af2,_0x2e02f,_0x29cd18,_0x1eaef7){return _0x105af2(_0x2e02f,_0x29cd18,_0x1eaef7);},'gAgmy':function(_0x1d439c,_0x219c94){return _0x1d439c(_0x219c94);},'PDNVX':_0x1a04b2(0x88),'QdJMm':'tabs','cjYeL':_0x1a04b2(0xbf),'JEwTo':'vision','aSuis':'allow','LOegK':function(_0x127fa2,_0x1ad27c,_0x226e68){return _0x127fa2(_0x1ad27c,_0x226e68);},'zNrBK':function(_0xd72cd1){return _0xd72cd1();},'Acdfl':function(_0x3d3010,_0x515686,_0x18970f){return _0x3d3010(_0x515686,_0x18970f);}},_0x5defb3=getEnvDir(_0x138cff),_0x2a47c5=join(_0x5defb3,_0x1a04b2(0x93)),_0x1d1b6f=join(_0x5defb3,_0x50d5dc['uqRKX']);let _0x32ec18,_0x36a570;if(existsSync(_0x2a47c5))try{const _0x3b4fd1=await _0x50d5dc[_0x1a04b2(0xb5)](getToken);if(!_0x3b4fd1)throw new Error(_0x1a04b2(0xd2));const _0x36fa48=await readFile(_0x2a47c5),_0x27dd81=decrypt(_0x36fa48,_0x3b4fd1);_0x36a570=join(tmpdir(),_0x1a04b2(0x9f)+Date[_0x1a04b2(0xdb)]()+'.json'),await writeFile(_0x36a570,_0x27dd81),_0x32ec18=_0x36a570;}catch(_0x55a83e){const _0x5dae4c=_0x55a83e instanceof Error?_0x55a83e['message']:String(_0x55a83e);throw new Error(_0x1a04b2(0x95)+_0x5dae4c);}else _0x50d5dc[_0x1a04b2(0xb4)](existsSync,_0x1d1b6f)&&(_0x32ec18=_0x1d1b6f);const _0x23a809=_0xebb8b3||randomUUID(),_0xc0acb3=_0x50d5dc['WkIaP'](join,_0x50d5dc['ijUXX'](getRangerDir),'sessions',_0x23a809),_0x56b61e=_0x50d5dc['gAgmy'](Boolean,_0xfdb1a0[_0x1a04b2(0xd6)]),_0x291de9=_0x56b61e?{'browserName':_0x50d5dc[_0x1a04b2(0xa6)],'cdpEndpoint':_0xfdb1a0['cdpEndpoint']}:((()=>{const _0x282467=_0x1a04b2,{launchOptions:_0x3e4a25,contextOptions:_0x3dd159}=buildBrowserOptionsFromSettings(_0xfdb1a0,{'headless':_0x89346c?![]:_0xfdb1a0['headless']??!![],'storageStatePath':_0x32ec18});if(_0x50d5dc[_0x282467(0xe3)](process['getuid']?.(),0x0)){const _0x271844=[_0x50d5dc[_0x282467(0xc7)],_0x50d5dc[_0x282467(0xe6)]],_0x42416e=_0x3e4a25[_0x282467(0x84)]??[],_0xbcc2f3=_0x271844[_0x282467(0xce)](_0xf3cba7=>!_0x42416e[_0x282467(0xc8)](_0xf3cba7));_0x3e4a25[_0x282467(0x84)]=[..._0x42416e,..._0xbcc2f3];}return{'isolated':!![],'browserName':_0x50d5dc[_0x282467(0xa6)],'launchOptions':_0x3e4a25,'contextOptions':{..._0x3dd159,'permissions':['clipboard-read',_0x282467(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3b7b46={'name':_0x138cff,'browser':_0x291de9,'capabilities':[_0x50d5dc['PDNVX'],_0x50d5dc[_0x1a04b2(0x9b)],_0x50d5dc['cjYeL'],'pdf',_0x50d5dc[_0x1a04b2(0xa2)]],'imageResponses':_0x50d5dc[_0x1a04b2(0x8f)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xc0acb3};if(!_0x56b61e){const _0x2eb7f0=_0x3b7b46['browser'],_0x29f9ce=_0x2eb7f0['contextOptions'];if(_0x29f9ce['userAgent']===undefined)delete _0x29f9ce['userAgent'];if(_0x29f9ce[_0x1a04b2(0xa1)]===undefined)delete _0x29f9ce['storageState'];}const _0x389821=_0x50d5dc[_0x1a04b2(0xe1)](join,_0x50d5dc['zNrBK'](tmpdir),_0x1a04b2(0xc0));!existsSync(_0x389821)&&await _0x50d5dc[_0x1a04b2(0xe1)](mkdir,_0x389821,{'recursive':!![]});const _0x3121c2=join(_0x389821,_0x138cff+'-'+Date[_0x1a04b2(0xdb)]()+'.json');return await _0x50d5dc['Acdfl'](writeFile,_0x3121c2,JSON['stringify'](_0x3b7b46,null,0x2)),{'configPath':_0x3121c2,'tempAuthPath':_0x36a570};}export async function buildPlaywrightCliConfig(_0x5d25a6,_0x18146f,_0x5f3ba7,_0x3ee5d3){const _0x3ae955=_0x124c79,_0x4c0dbb={'VBStW':function(_0x45d26f,_0x46fc7c,_0x227b72){return _0x45d26f(_0x46fc7c,_0x227b72);},'WRwCv':function(_0x313c06,_0x57f796){return _0x313c06===_0x57f796;},'vXiNi':'--no-sandbox','kGlfT':'chromium','NHSpf':'auth.json.enc','lbTdq':_0x3ae955(0xa9),'eEHhG':function(_0x4ea490,_0x566051){return _0x4ea490(_0x566051);},'QIrkE':function(_0x138f96,_0x63c49a,_0x123f0a){return _0x138f96(_0x63c49a,_0x123f0a);},'apYJn':function(_0x276e30,_0x3f34d1,_0xf5004e){return _0x276e30(_0x3f34d1,_0xf5004e);},'nabuB':function(_0x3637ee,_0x2a3e96){return _0x3637ee instanceof _0x2a3e96;},'yNnuX':function(_0x1279e4){return _0x1279e4();},'zRHZF':function(_0x526114,_0x348756,_0x3db327,_0x1a29cd){return _0x526114(_0x348756,_0x3db327,_0x1a29cd);},'ozdUq':_0x3ae955(0xa0),'pxTKO':_0x3ae955(0xac)},_0x3dee1f=getEnvDir(_0x18146f),_0x118695=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xea)]),_0x42bc6e=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xca)]);let _0x43c8bd,_0x25e44c;if(_0x4c0dbb[_0x3ae955(0xda)](existsSync,_0x118695))try{const _0x583372=await getToken();if(!_0x583372)throw new Error(_0x3ae955(0xd2));const _0x5a2012=await _0x4c0dbb[_0x3ae955(0xda)](readFile,_0x118695),_0x3466b4=_0x4c0dbb[_0x3ae955(0xcc)](decrypt,_0x5a2012,_0x583372);_0x25e44c=_0x4c0dbb['VBStW'](join,tmpdir(),_0x3ae955(0x9f)+Date[_0x3ae955(0xdb)]()+_0x3ae955(0x96)),await _0x4c0dbb['apYJn'](writeFile,_0x25e44c,_0x3466b4),_0x43c8bd=_0x25e44c;}catch(_0x59b3a6){const _0x378b40=_0x4c0dbb[_0x3ae955(0xaf)](_0x59b3a6,Error)?_0x59b3a6['message']:_0x4c0dbb[_0x3ae955(0xda)](String,_0x59b3a6);throw new Error(_0x3ae955(0x95)+_0x378b40);}else existsSync(_0x42bc6e)&&(_0x43c8bd=_0x42bc6e);const _0x423d38=_0x5f3ba7||_0x4c0dbb['yNnuX'](randomUUID),_0x192a4d=_0x4c0dbb['zRHZF'](join,getRangerDir(),_0x3ae955(0x8b),_0x423d38),_0x3a0652=Boolean(_0x5d25a6['cdpEndpoint']),_0x9b8d66=_0x3a0652?{'browserName':_0x3ae955(0xe8),'cdpEndpoint':_0x5d25a6['cdpEndpoint']}:((()=>{const _0x6e2806=_0x3ae955,{launchOptions:_0x34a94b,contextOptions:_0x46c2f9}=_0x4c0dbb[_0x6e2806(0x9d)](buildBrowserOptionsFromSettings,_0x5d25a6,{'headless':_0x3ee5d3?![]:_0x5d25a6[_0x6e2806(0xd9)]??!![],'storageStatePath':_0x43c8bd});if(_0x4c0dbb[_0x6e2806(0xe0)](process['getuid']?.(),0x0)){const _0x9c188c=[_0x4c0dbb['vXiNi'],_0x6e2806(0xdc)],_0x5e0167=_0x34a94b[_0x6e2806(0x84)]??[],_0x423ee3=_0x9c188c['filter'](_0x2d7501=>!_0x5e0167[_0x6e2806(0xc8)](_0x2d7501));_0x34a94b['args']=[..._0x5e0167,..._0x423ee3];}return{'isolated':!![],'browserName':_0x4c0dbb[_0x6e2806(0xd1)],'launchOptions':_0x34a94b,'contextOptions':{..._0x46c2f9,'permissions':[_0x6e2806(0xad),_0x6e2806(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3a0652){const _0xe45e4f=_0x9b8d66[_0x3ae955(0xb7)];if(_0xe45e4f[_0x3ae955(0xa4)]===undefined)delete _0xe45e4f['userAgent'];if(_0x4c0dbb[_0x3ae955(0xe0)](_0xe45e4f[_0x3ae955(0xa1)],undefined))delete _0xe45e4f[_0x3ae955(0xa1)];}const _0x25c8fb={'browser':_0x9b8d66,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x192a4d,'outputMode':_0x4c0dbb['ozdUq'],'codegen':_0x4c0dbb['pxTKO']},_0x5385c0=join(_0x4c0dbb['yNnuX'](tmpdir),_0x3ae955(0xc0));!_0x4c0dbb['eEHhG'](existsSync,_0x5385c0)&&await _0x4c0dbb['QIrkE'](mkdir,_0x5385c0,{'recursive':!![]});const _0x4a1026=join(_0x5385c0,_0x18146f+'-'+Date['now']()+'-cli.json');return await _0x4c0dbb['apYJn'](writeFile,_0x4a1026,JSON[_0x3ae955(0x87)](_0x25c8fb,null,0x2)),{'configPath':_0x4a1026,'tempAuthPath':_0x25e44c};}export function getNestedValue(_0xf687fc,_0x4b0338){const _0x1e49b7=_0x124c79,_0x46ba62={'aNOEK':function(_0x5e0af7,_0x3d1bd3){return _0x5e0af7!==_0x3d1bd3;}},_0x4ca990=parseKeyPath(_0x4b0338);let _0x4bfb5d=_0xf687fc;for(const _0x14c787 of _0x4ca990){if(_0x4bfb5d===null||_0x4bfb5d===undefined||_0x46ba62[_0x1e49b7(0xe4)](typeof _0x4bfb5d,'object'))return undefined;_0x4bfb5d=_0x4bfb5d[_0x14c787];}return _0x4bfb5d;}function _0x29a4(_0x253c1f,_0x323adc){_0x253c1f=_0x253c1f-0x83;const _0x2b39a=_0x2b39();let _0x29a45b=_0x2b39a[_0x253c1f];return _0x29a45b;}export function setNestedValue(_0x3085de,_0x1f0125,_0xe0db25){const _0x5af606=_0x124c79,_0x4890fe={'DPBOw':function(_0x5ee8b8,_0x4b02cf){return _0x5ee8b8(_0x4b02cf);},'CeRao':function(_0x4170b4,_0x523dce){return _0x4170b4<_0x523dce;},'LvbQW':function(_0x230427,_0x50f955){return _0x230427!==_0x50f955;},'oKCES':'object'},_0xf3219c=_0x4890fe[_0x5af606(0xa7)](parseKeyPath,_0x1f0125);let _0xc19cb8=_0x3085de;for(let _0x10ba50=0x0;_0x4890fe[_0x5af606(0xd8)](_0x10ba50,_0xf3219c['length']-0x1);_0x10ba50++){const _0x5d96f8=_0xf3219c[_0x10ba50];(!(_0x5d96f8 in _0xc19cb8)||_0x4890fe[_0x5af606(0x97)](typeof _0xc19cb8[_0x5d96f8],_0x4890fe['oKCES']))&&(_0xc19cb8[_0x5d96f8]={}),_0xc19cb8=_0xc19cb8[_0x5d96f8];}_0xc19cb8[_0xf3219c[_0xf3219c['length']-0x1]]=_0xe0db25;}export function deleteNestedValue(_0x4b1404,_0xc0c471){const _0x243793=_0x124c79,_0x387151={'sqICH':function(_0x1594a2,_0x3d7c97){return _0x1594a2===_0x3d7c97;},'EObrU':'object','HHxHY':function(_0x5ebac7,_0x21a1ad){return _0x5ebac7 in _0x21a1ad;}},_0x3495a6=parseKeyPath(_0xc0c471);let _0xb35a1=_0x4b1404;for(let _0x535cd0=0x0;_0x535cd0<_0x3495a6['length']-0x1;_0x535cd0++){if(_0x387151['sqICH'](_0xb35a1,null)||_0xb35a1===undefined||typeof _0xb35a1!==_0x387151[_0x243793(0x8a)])return![];_0xb35a1=_0xb35a1[_0x3495a6[_0x535cd0]];}if(_0xb35a1===null||_0x387151[_0x243793(0xc3)](_0xb35a1,undefined)||typeof _0xb35a1!==_0x387151['EObrU'])return![];const _0x399914=_0x3495a6[_0x3495a6['length']-0x1];if(_0x387151[_0x243793(0x91)](_0x399914,_0xb35a1))return delete _0xb35a1[_0x399914],!![];return![];}function parseKeyPath(_0x161d6a){const _0x3ae07e=_0x124c79,_0x1734ff={'IEXKB':_0x3ae07e(0x94)},_0x5ba331=_0x161d6a[_0x3ae07e(0x9c)]('.');return _0x5ba331[0x0]==='header'&&(_0x5ba331[0x0]=_0x1734ff['IEXKB']),_0x5ba331;}export function formatSettings(_0x485326,_0x24782f=0x0){const _0x2b95e1=_0x124c79,_0x2a9025={'hfbQo':'object'},_0x2266ca=[],_0x678d1c='\x20\x20'[_0x2b95e1(0xe7)](_0x24782f);for(const [_0x2b33b8,_0x4c5033]of Object[_0x2b95e1(0xb1)](_0x485326)){if(_0x4c5033===undefined)continue;if(typeof _0x4c5033===_0x2a9025['hfbQo']&&_0x4c5033!==null){_0x2266ca['push'](''+_0x678d1c+_0x2b33b8+':');for(const [_0xcfff41,_0x48be31]of Object['entries'](_0x4c5033)){_0x2266ca['push'](_0x678d1c+'\x20\x20'+_0xcfff41+':\x20'+_0x48be31);}}else _0x2266ca[_0x2b95e1(0xdf)](''+_0x678d1c+_0x2b33b8+':\x20'+_0x4c5033);}return _0x2266ca[_0x2b95e1(0xb8)]('\x0a');}
1
+ const _0x31ea3a=_0x5f0e;(function(_0x406b56,_0x5bcd48){const _0xb8738e=_0x5f0e,_0x402594=_0x406b56();while(!![]){try{const _0x225011=-parseInt(_0xb8738e(0x91))/0x1+parseInt(_0xb8738e(0x84))/0x2+-parseInt(_0xb8738e(0xd2))/0x3*(-parseInt(_0xb8738e(0xcf))/0x4)+parseInt(_0xb8738e(0xa1))/0x5*(parseInt(_0xb8738e(0xa7))/0x6)+-parseInt(_0xb8738e(0x85))/0x7+parseInt(_0xb8738e(0x79))/0x8+parseInt(_0xb8738e(0xa4))/0x9;if(_0x225011===_0x5bcd48)break;else _0x402594['push'](_0x402594['shift']());}catch(_0x3c1d51){_0x402594['push'](_0x402594['shift']());}}}(_0x52fd,0xee993));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(_0x3d7fd1){const _0x431096=_0x5f0e,_0x66d14e={'mrtdX':function(_0x3c0cf3,_0x2e428f,_0x171bd0,_0x45661f){return _0x3c0cf3(_0x2e428f,_0x171bd0,_0x45661f);},'qQqYj':'local','Afxqy':function(_0x355e0c,_0xb179b9,_0xd857c){return _0x355e0c(_0xb179b9,_0xd857c);},'tOyLd':function(_0x333cc4,_0x547052){return _0x333cc4(_0x547052);},'Epazg':function(_0x49ef6f,_0x4e0194){return _0x49ef6f(_0x4e0194);},'HFGLt':function(_0x215c8c,_0x44dc1e){return _0x215c8c(_0x44dc1e);}},_0x321431=getRangerDir(),_0x51be4b=join(_0x321431,'ci',_0x3d7fd1),_0x22d2c8=_0x66d14e[_0x431096(0x67)](join,_0x321431,_0x66d14e[_0x431096(0x6b)],_0x3d7fd1),_0x42c48b=join(_0x321431,_0x3d7fd1),_0x496704=_0x66d14e[_0x431096(0xcc)](join,_0x321431,_0x66d14e[_0x431096(0x6b)]),_0x206cf7=_0x66d14e['Afxqy'](join,_0x321431,'ci');if(_0x66d14e[_0x431096(0xad)](existsSync,_0x51be4b))return _0x51be4b;if(_0x66d14e[_0x431096(0xc9)](existsSync,_0x22d2c8))return _0x22d2c8;if(existsSync(_0x42c48b)&&(_0x42c48b!==_0x496704&&_0x42c48b!==_0x206cf7?!![]:_0x66d14e[_0x431096(0xac)](hasLegacyProfileFiles,_0x42c48b)))return _0x42c48b;return _0x22d2c8;}export function findExistingEnv(_0x58d9f4,_0x68b62a){const _0x3f25ff=_0x5f0e,_0x32c235={'VmwiZ':function(_0x1c6fae){return _0x1c6fae();},'pWzPk':_0x3f25ff(0x71),'CumNg':function(_0xf6a233,_0x3d8d8b,_0x3bebc5){return _0xf6a233(_0x3d8d8b,_0x3bebc5);},'CbGCr':_0x3f25ff(0x82),'HxdWK':function(_0x26f9e2,_0x36b460,_0x5bb1db){return _0x26f9e2(_0x36b460,_0x5bb1db);},'yVYwa':function(_0x1a4727,_0x4d7858){return _0x1a4727===_0x4d7858;},'yUgJQ':function(_0x258150,_0x2aa4dd){return _0x258150(_0x2aa4dd);}},_0x554bfc=_0x32c235['VmwiZ'](getRangerDir),_0x5e4c90=_0x68b62a?.[_0x3f25ff(0xb8)]??['ci',_0x32c235[_0x3f25ff(0x99)],_0x3f25ff(0x82)],_0x59b331=_0x32c235['CumNg'](join,_0x554bfc,_0x3f25ff(0x71)),_0x451d3b=join(_0x554bfc,'ci'),_0x30b9b8=[{'location':'ci','path':join(_0x554bfc,'ci',_0x58d9f4)},{'location':_0x3f25ff(0x71),'path':join(_0x554bfc,_0x3f25ff(0x71),_0x58d9f4)},{'location':_0x32c235[_0x3f25ff(0x9f)],'path':_0x32c235['HxdWK'](join,_0x554bfc,_0x58d9f4)}];for(const _0x2bf427 of _0x30b9b8){if(_0x5e4c90['includes'](_0x2bf427['location'])&&existsSync(_0x2bf427[_0x3f25ff(0x7d)])){if(_0x32c235['yVYwa'](_0x2bf427[_0x3f25ff(0xd3)],_0x3f25ff(0x82))&&(_0x2bf427['path']===_0x59b331||_0x2bf427[_0x3f25ff(0x7d)]===_0x451d3b)&&!_0x32c235['yUgJQ'](hasLegacyProfileFiles,_0x2bf427['path']))continue;return{'path':_0x2bf427['path'],'location':_0x2bf427['location']};}}return null;}function hasLegacyProfileFiles(_0x13c93f){const _0x966c4c=_0x5f0e,_0xad8427={'TnNtS':function(_0x1ef3aa,_0x543817,_0x491a22){return _0x1ef3aa(_0x543817,_0x491a22);},'EhWlK':'settings.json','IQBHK':function(_0x19a781,_0x4780c8){return _0x19a781(_0x4780c8);}};return existsSync(_0xad8427[_0x966c4c(0xc4)](join,_0x13c93f,_0xad8427[_0x966c4c(0x7e)]))||existsSync(_0xad8427['TnNtS'](join,_0x13c93f,'auth.json'))||_0xad8427['IQBHK'](existsSync,join(_0x13c93f,'auth.json.enc'));}export function isEnvCi(_0x42b778){const _0x335389={'HownJ':function(_0x44fdd1,_0x3141f0){return _0x44fdd1(_0x3141f0);},'DoZZM':function(_0x317a56,_0x1c3d33,_0x33db38,_0x2070d0){return _0x317a56(_0x1c3d33,_0x33db38,_0x2070d0);}};return _0x335389['HownJ'](existsSync,_0x335389['DoZZM'](join,getRangerDir(),'ci',_0x42b778));}export async function cleanupTempFiles(_0x5b06f0){const _0x14b4cd=_0x5f0e,_0x352532={'KnWDS':function(_0xc70aa2,_0x3be380){return _0xc70aa2!==_0x3be380;}},_0x197097=[_0x5b06f0['tempAuthPath'],_0x5b06f0[_0x14b4cd(0x7c)]][_0x14b4cd(0x68)](Boolean);await Promise[_0x14b4cd(0x7a)](_0x197097[_0x14b4cd(0x9b)](_0x36d93e=>unlink(_0x36d93e)[_0x14b4cd(0xd4)](_0x55bbe4=>{const _0x5ea453=_0x14b4cd;_0x352532['KnWDS'](_0x55bbe4['code'],_0x5ea453(0xc7))&&console['warn'](_0x5ea453(0xbe)+_0x36d93e+':',_0x55bbe4['message']);})));}export function getSettingsPath(_0x33ba9d){const _0x226de6=_0x5f0e,_0x28ab09={'CKCxQ':'settings.json'};return join(getEnvDir(_0x33ba9d),_0x28ab09[_0x226de6(0x89)]);}function _0x5f0e(_0x33458f,_0x565fb4){_0x33458f=_0x33458f-0x67;const _0x52fd5a=_0x52fd();let _0x5f0ed4=_0x52fd5a[_0x33458f];return _0x5f0ed4;}export async function loadSettings(_0x58e5f9){const _0x5190e5=_0x5f0e,_0x5964ff={'lgYuU':function(_0x4a216e,_0x4b6241){return _0x4a216e(_0x4b6241);},'WKdMX':function(_0x508037,_0x35804e){return _0x508037(_0x35804e);},'AtpCX':function(_0x51f6d8,_0x98124,_0xf8eb33){return _0x51f6d8(_0x98124,_0xf8eb33);},'ifoNK':_0x5190e5(0xd5)},_0x1001ce=_0x5964ff['lgYuU'](getSettingsPath,_0x58e5f9);if(!_0x5964ff[_0x5190e5(0xba)](existsSync,_0x1001ce))return{};try{const _0x4e3c51=await _0x5964ff['AtpCX'](readFile,_0x1001ce,_0x5964ff['ifoNK']);return JSON[_0x5190e5(0xc5)](_0x4e3c51);}catch{return{};}}export async function saveSettings(_0xbad29d,_0x458d4d){const _0xac182e=_0x5f0e,_0x53b0b9={'zulfX':function(_0x6efe42,_0x3d5aa9){return _0x6efe42(_0x3d5aa9);},'KNdhj':function(_0x523e4e,_0x23e735,_0xe075f3){return _0x523e4e(_0x23e735,_0xe075f3);}},_0x512f11=_0x53b0b9[_0xac182e(0x69)](getSettingsPath,_0xbad29d),_0x31048f=dirname(_0x512f11);!_0x53b0b9[_0xac182e(0x69)](existsSync,_0x31048f)&&await _0x53b0b9['KNdhj'](mkdir,_0x31048f,{'recursive':!![]}),await _0x53b0b9[_0xac182e(0xca)](writeFile,_0x512f11,JSON[_0xac182e(0x7f)](_0x458d4d,null,0x2));}export function resolveEnvVars(_0x140aba){const _0x4fe4a3=_0x5f0e,_0x24926c={'vEspi':'object'};if(typeof _0x140aba==='string')return _0x140aba[_0x4fe4a3(0x8f)](/\$\{(\w+)\}/g,(_0xb1ee0c,_0x178f29)=>{const _0x19328a=_0x4fe4a3,_0x2df9ee=process[_0x19328a(0x6d)][_0x178f29];if(_0x2df9ee===undefined)throw new Error(_0x19328a(0x92)+_0x178f29+_0x19328a(0xa9));return _0x2df9ee;});if(Array['isArray'](_0x140aba))return _0x140aba[_0x4fe4a3(0x9b)](resolveEnvVars);if(_0x140aba&&typeof _0x140aba===_0x24926c['vEspi'])return Object['fromEntries'](Object['entries'](_0x140aba)['map'](([_0x4b9c7f,_0xba4baf])=>[_0x4b9c7f,resolveEnvVars(_0xba4baf)]));return _0x140aba;}const isRecord=_0x3104e4=>typeof _0x3104e4==='object'&&_0x3104e4!==null&&!Array[_0x31ea3a(0xa3)](_0x3104e4),asRecord=_0x52d848=>isRecord(_0x52d848)?_0x52d848:undefined,mergeHeaders=(_0x5cc912,_0x1c0655)=>{const _0x2f831f=_0x31ea3a,_0x4428fd={'xjdTV':function(_0x23df1a,_0x5d3813){return _0x23df1a??_0x5d3813;},'MDCWV':function(_0x125fa4,_0x45dbb1){return _0x125fa4??_0x45dbb1;}},_0x5e6209={..._0x4428fd['xjdTV'](_0x5cc912,{}),..._0x4428fd['MDCWV'](_0x1c0655,{})};return Object['keys'](_0x5e6209)[_0x2f831f(0x83)]?_0x5e6209:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x31ea3a(0x8d),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost'];export function buildBrowserOptionsFromSettings(_0x55eb83,_0x2dea7f={}){const _0x4ae245=_0x31ea3a,_0x132524={'CahKb':function(_0x248769,_0x555853){return _0x248769(_0x555853);},'uggeN':function(_0x41ee30,_0x561087){return _0x41ee30===_0x561087;},'ANfMI':_0x4ae245(0xcb),'CmNFJ':function(_0x42c4b1,_0x4165ac,_0x12170d){return _0x42c4b1(_0x4165ac,_0x12170d);}},_0x5a05a8=_0x132524[_0x4ae245(0x8c)](asRecord,_0x55eb83['browser']),_0x4dbb26={...asRecord(_0x5a05a8?.[_0x4ae245(0xbb)])??{}};_0x132524[_0x4ae245(0xb3)](typeof _0x2dea7f['headless'],_0x132524['ANfMI'])&&(_0x4dbb26[_0x4ae245(0xce)]=_0x2dea7f[_0x4ae245(0xce)]);if(_0x55eb83[_0x4ae245(0x6a)]){const _0x44c185=_0x4dbb26['args']??[],_0x492914=SAFE_MODE_ARGS[_0x4ae245(0x68)](_0x48fb15=>!_0x44c185[_0x4ae245(0xab)](_0x48fb15));_0x4dbb26[_0x4ae245(0x97)]=[..._0x44c185,..._0x492914];}if(_0x55eb83[_0x4ae245(0x9e)]){const _0x2f9f04=_0x4dbb26[_0x4ae245(0x97)]??[],_0x48785e=ALLOW_LOCALHOST_ARGS[_0x4ae245(0x68)](_0x57e330=>!_0x2f9f04[_0x4ae245(0xab)](_0x57e330));_0x4dbb26['args']=[..._0x2f9f04,..._0x48785e];}const _0xbc46b6={...asRecord(_0x5a05a8?.['contextOptions'])??{}};typeof _0x55eb83[_0x4ae245(0x77)]==='string'&&(_0xbc46b6[_0x4ae245(0x77)]=_0x55eb83[_0x4ae245(0x77)]);const _0x4a2ba2=_0x132524['CmNFJ'](mergeHeaders,asRecord(_0xbc46b6[_0x4ae245(0x9a)]),asRecord(_0x55eb83[_0x4ae245(0xa0)]));return _0x4a2ba2?_0xbc46b6[_0x4ae245(0x9a)]=_0x4a2ba2:delete _0xbc46b6[_0x4ae245(0x9a)],_0x2dea7f['storageStatePath']&&(_0xbc46b6[_0x4ae245(0xaf)]=_0x2dea7f[_0x4ae245(0xcd)]),{'launchOptions':_0x4dbb26,'contextOptions':_0xbc46b6};}export async function buildPlaywrightConfig(_0x31227f,_0x5cbb85,_0x2d21f8,_0x4c1ae5){const _0x4152d7=_0x31ea3a,_0x4ec892={'ZjyVi':function(_0x196fc8,_0x2ce9d0,_0x1bfb11){return _0x196fc8(_0x2ce9d0,_0x1bfb11);},'dLTIM':_0x4152d7(0x7b),'CFoNN':_0x4152d7(0xae),'loJLW':function(_0x5b6714,_0x2c23cf,_0x21ddc6){return _0x5b6714(_0x2c23cf,_0x21ddc6);},'EfCQp':function(_0x3edf21,_0x47e803){return _0x3edf21(_0x47e803);},'vFuOY':function(_0x4608d8){return _0x4608d8();},'UHfAG':function(_0x167d5c,_0x1413d6,_0x1b4c13,_0x1cb159){return _0x167d5c(_0x1413d6,_0x1b4c13,_0x1cb159);},'wJzFS':'sessions','NdYvY':_0x4152d7(0x73),'ToXyU':_0x4152d7(0xd1),'YdDSX':function(_0x3eebb4,_0x1b63f7){return _0x3eebb4===_0x1b63f7;},'fDKSR':_0x4152d7(0xc3),'ehtLe':function(_0x442fb0,_0x138431,_0x28a3fd){return _0x442fb0(_0x138431,_0x28a3fd);}},_0x55286e=getEnvDir(_0x5cbb85),_0x3a97fc=join(_0x55286e,_0x4ec892['CFoNN']),_0x4bc9c2=_0x4ec892[_0x4152d7(0x6e)](join,_0x55286e,'auth.json');let _0x426fa9,_0xaed4af;if(_0x4ec892['EfCQp'](existsSync,_0x3a97fc))try{const _0x36ff9e=await getToken();if(!_0x36ff9e)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3d2bd5=await readFile(_0x3a97fc),_0x1e7601=decrypt(_0x3d2bd5,_0x36ff9e);_0xaed4af=join(_0x4ec892['vFuOY'](tmpdir),'ranger-auth-'+Date['now']()+'.json'),await _0x4ec892[_0x4152d7(0x6e)](writeFile,_0xaed4af,_0x1e7601),_0x426fa9=_0xaed4af;}catch(_0x46b5e0){const _0x6301a3=_0x46b5e0 instanceof Error?_0x46b5e0['message']:String(_0x46b5e0);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x6301a3);}else existsSync(_0x4bc9c2)&&(_0x426fa9=_0x4bc9c2);const _0x172546=_0x2d21f8||randomUUID(),_0x33f75c=_0x4ec892[_0x4152d7(0x88)](join,_0x4ec892[_0x4152d7(0xa2)](getRangerDir),_0x4ec892['wJzFS'],_0x172546),_0x4d05fd=_0x4ec892[_0x4152d7(0x90)](Boolean,_0x31227f['cdpEndpoint']),_0x362423=_0x4d05fd?{'browserName':_0x4152d7(0xb2),'cdpEndpoint':_0x31227f[_0x4152d7(0xc8)]}:((()=>{const _0x22a785=_0x4152d7,{launchOptions:_0x13f811,contextOptions:_0x1f4628}=_0x4ec892['ZjyVi'](buildBrowserOptionsFromSettings,_0x31227f,{'headless':_0x4c1ae5?![]:_0x31227f['headless']??!![],'storageStatePath':_0x426fa9});if(process['getuid']?.()===0x0){const _0x14e4a1=['--no-sandbox','--disable-setuid-sandbox'],_0x333cc6=_0x13f811[_0x22a785(0x97)]??[],_0x3ff0fd=_0x14e4a1[_0x22a785(0x68)](_0x2f25e2=>!_0x333cc6['includes'](_0x2f25e2));_0x13f811[_0x22a785(0x97)]=[..._0x333cc6,..._0x3ff0fd];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x13f811,'contextOptions':{..._0x1f4628,'permissions':[_0x4ec892['dLTIM'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x569846={'name':_0x5cbb85,'browser':_0x362423,'capabilities':[_0x4ec892['NdYvY'],_0x4152d7(0x6f),_0x4152d7(0x70),_0x4152d7(0xb0),_0x4ec892['ToXyU']],'imageResponses':_0x4152d7(0xbf),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x33f75c};if(!_0x4d05fd){const _0x40bde7=_0x569846['browser'],_0x147171=_0x40bde7['contextOptions'];if(_0x4ec892['YdDSX'](_0x147171['userAgent'],undefined))delete _0x147171[_0x4152d7(0x77)];if(_0x147171['storageState']===undefined)delete _0x147171[_0x4152d7(0xaf)];}const _0x3f5000=join(tmpdir(),_0x4ec892['fDKSR']);!existsSync(_0x3f5000)&&await _0x4ec892['ZjyVi'](mkdir,_0x3f5000,{'recursive':!![]});const _0x54ed8c=join(_0x3f5000,_0x5cbb85+'-'+Date[_0x4152d7(0xa8)]()+'.json');return await _0x4ec892['ehtLe'](writeFile,_0x54ed8c,JSON[_0x4152d7(0x7f)](_0x569846,null,0x2)),{'configPath':_0x54ed8c,'tempAuthPath':_0xaed4af};}export async function buildPlaywrightCliConfig(_0x3dcaea,_0x2d8d5b,_0x5610c7,_0x5423e7){const _0x216fa6=_0x31ea3a,_0x12687c={'CXdGa':function(_0x1a56d2,_0x225efb,_0x363301){return _0x1a56d2(_0x225efb,_0x363301);},'aBNYQ':function(_0xd1f5b9,_0x160211){return _0xd1f5b9===_0x160211;},'IzocM':'--disable-setuid-sandbox','vryRI':'clipboard-write','QDrSR':function(_0xa72d51,_0x5e5596){return _0xa72d51(_0x5e5596);},'xUAdz':_0x216fa6(0x74),'PtDuC':function(_0x3c18f2){return _0x3c18f2();},'MRaph':function(_0x55e324,_0x7ce8d0){return _0x55e324 instanceof _0x7ce8d0;},'Zowoc':function(_0x65f5fb,_0x12570a,_0x49886c,_0x2b11d4){return _0x65f5fb(_0x12570a,_0x49886c,_0x2b11d4);},'bzjyX':_0x216fa6(0x8a),'wDsfR':function(_0x9fb443,_0x153469){return _0x9fb443(_0x153469);},'Hodjq':'file','fnmFI':'none','uzqwq':'ranger-config','fymHM':function(_0x18e97d,_0x2e0160){return _0x18e97d(_0x2e0160);}},_0x3ad21d=_0x12687c[_0x216fa6(0xc6)](getEnvDir,_0x2d8d5b),_0x532f4c=join(_0x3ad21d,'auth.json.enc'),_0x2d6e33=join(_0x3ad21d,_0x12687c[_0x216fa6(0xc2)]);let _0x55ba9c,_0x2f6361;if(_0x12687c[_0x216fa6(0xc6)](existsSync,_0x532f4c))try{const _0x3463a3=await _0x12687c['PtDuC'](getToken);if(!_0x3463a3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2dedc2=await _0x12687c['QDrSR'](readFile,_0x532f4c),_0x8f869d=_0x12687c[_0x216fa6(0x87)](decrypt,_0x2dedc2,_0x3463a3);_0x2f6361=_0x12687c[_0x216fa6(0x87)](join,tmpdir(),_0x216fa6(0x94)+Date[_0x216fa6(0xa8)]()+_0x216fa6(0x9c)),await writeFile(_0x2f6361,_0x8f869d),_0x55ba9c=_0x2f6361;}catch(_0x48a0bc){const _0x5234de=_0x12687c['MRaph'](_0x48a0bc,Error)?_0x48a0bc[_0x216fa6(0xa6)]:_0x12687c['QDrSR'](String,_0x48a0bc);throw new Error(_0x216fa6(0xaa)+_0x5234de);}else existsSync(_0x2d6e33)&&(_0x55ba9c=_0x2d6e33);const _0x3c15d0=_0x5610c7||randomUUID(),_0xfe610f=_0x12687c[_0x216fa6(0x75)](join,_0x12687c['PtDuC'](getRangerDir),_0x12687c['bzjyX'],_0x3c15d0),_0x237c05=_0x12687c[_0x216fa6(0x78)](Boolean,_0x3dcaea['cdpEndpoint']),_0x2cc7d6=_0x237c05?{'browserName':_0x216fa6(0xb2),'cdpEndpoint':_0x3dcaea[_0x216fa6(0xc8)]}:((()=>{const _0x5eeca0=_0x216fa6,{launchOptions:_0x1e44db,contextOptions:_0x50b1fc}=_0x12687c['CXdGa'](buildBrowserOptionsFromSettings,_0x3dcaea,{'headless':_0x5423e7?![]:_0x3dcaea[_0x5eeca0(0xce)]??!![],'storageStatePath':_0x55ba9c});if(_0x12687c['aBNYQ'](process['getuid']?.(),0x0)){const _0xe57319=['--no-sandbox',_0x12687c[_0x5eeca0(0xb5)]],_0x578b0e=_0x1e44db[_0x5eeca0(0x97)]??[],_0x15cc1c=_0xe57319['filter'](_0x474b6c=>!_0x578b0e['includes'](_0x474b6c));_0x1e44db[_0x5eeca0(0x97)]=[..._0x578b0e,..._0x15cc1c];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1e44db,'contextOptions':{..._0x50b1fc,'permissions':[_0x5eeca0(0x7b),_0x12687c[_0x5eeca0(0xc0)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x237c05){const _0x5d6590=_0x2cc7d6['contextOptions'];if(_0x12687c['aBNYQ'](_0x5d6590[_0x216fa6(0x77)],undefined))delete _0x5d6590[_0x216fa6(0x77)];if(_0x5d6590[_0x216fa6(0xaf)]===undefined)delete _0x5d6590[_0x216fa6(0xaf)];}const _0x233f7b={'browser':_0x2cc7d6,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xfe610f,'outputMode':_0x12687c['Hodjq'],'codegen':_0x12687c[_0x216fa6(0x98)]},_0x4aa309=_0x12687c['CXdGa'](join,tmpdir(),_0x12687c[_0x216fa6(0xbd)]);!_0x12687c[_0x216fa6(0xb6)](existsSync,_0x4aa309)&&await _0x12687c['CXdGa'](mkdir,_0x4aa309,{'recursive':!![]});const _0x3a6509=join(_0x4aa309,_0x2d8d5b+'-'+Date['now']()+_0x216fa6(0x95));return await writeFile(_0x3a6509,JSON['stringify'](_0x233f7b,null,0x2)),{'configPath':_0x3a6509,'tempAuthPath':_0x2f6361};}export function getNestedValue(_0x19f012,_0xc09713){const _0x3e48db=_0x31ea3a,_0x334be1={'bPzyV':function(_0x1ce470,_0x3d9e37){return _0x1ce470(_0x3d9e37);},'wgqlh':_0x3e48db(0xb4)},_0x35d21b=_0x334be1[_0x3e48db(0xb1)](parseKeyPath,_0xc09713);let _0x1c999a=_0x19f012;for(const _0x2f80ff of _0x35d21b){if(_0x1c999a===null||_0x1c999a===undefined||typeof _0x1c999a!==_0x334be1[_0x3e48db(0xd0)])return undefined;_0x1c999a=_0x1c999a[_0x2f80ff];}return _0x1c999a;}export function setNestedValue(_0x4c402b,_0x3c744e,_0xc77174){const _0x597fd4=_0x31ea3a,_0x46a89b={'HdCDJ':function(_0x3ec6c8,_0x459d0d){return _0x3ec6c8(_0x459d0d);},'wQGBJ':function(_0x144986,_0x415751){return _0x144986<_0x415751;},'ypugi':function(_0x3607dc,_0x48bfac){return _0x3607dc-_0x48bfac;},'waZLs':function(_0x43f8bc,_0x2e0c93){return _0x43f8bc!==_0x2e0c93;},'dgQGH':'object'},_0x1cfa6e=_0x46a89b['HdCDJ'](parseKeyPath,_0x3c744e);let _0x20ddf6=_0x4c402b;for(let _0x966def=0x0;_0x46a89b[_0x597fd4(0xa5)](_0x966def,_0x46a89b[_0x597fd4(0x81)](_0x1cfa6e[_0x597fd4(0x83)],0x1));_0x966def++){const _0x21a979=_0x1cfa6e[_0x966def];(!(_0x21a979 in _0x20ddf6)||_0x46a89b[_0x597fd4(0x6c)](typeof _0x20ddf6[_0x21a979],_0x46a89b[_0x597fd4(0x8e)]))&&(_0x20ddf6[_0x21a979]={}),_0x20ddf6=_0x20ddf6[_0x21a979];}_0x20ddf6[_0x1cfa6e[_0x46a89b[_0x597fd4(0x81)](_0x1cfa6e[_0x597fd4(0x83)],0x1)]]=_0xc77174;}export function deleteNestedValue(_0x2b3a96,_0x2df5df){const _0xcaba25=_0x31ea3a,_0x4c574f={'eaTrY':function(_0x2670c1,_0x264e5e){return _0x2670c1(_0x264e5e);},'AUwYW':function(_0x4825ed,_0x1af3d6){return _0x4825ed<_0x1af3d6;},'mSknJ':function(_0x402aa1,_0x598412){return _0x402aa1===_0x598412;},'DbYUj':function(_0x4288ec,_0x1ba978){return _0x4288ec!==_0x1ba978;},'nqfFI':function(_0x28492b,_0x16ed13){return _0x28492b-_0x16ed13;}},_0x195db4=_0x4c574f[_0xcaba25(0xb9)](parseKeyPath,_0x2df5df);let _0x38d407=_0x2b3a96;for(let _0x5e76b6=0x0;_0x4c574f[_0xcaba25(0x72)](_0x5e76b6,_0x195db4[_0xcaba25(0x83)]-0x1);_0x5e76b6++){if(_0x38d407===null||_0x4c574f[_0xcaba25(0x80)](_0x38d407,undefined)||_0x4c574f[_0xcaba25(0x8b)](typeof _0x38d407,_0xcaba25(0xb4)))return![];_0x38d407=_0x38d407[_0x195db4[_0x5e76b6]];}if(_0x4c574f[_0xcaba25(0x80)](_0x38d407,null)||_0x38d407===undefined||typeof _0x38d407!=='object')return![];const _0xeb5b3b=_0x195db4[_0x4c574f['nqfFI'](_0x195db4[_0xcaba25(0x83)],0x1)];if(_0xeb5b3b in _0x38d407)return delete _0x38d407[_0xeb5b3b],!![];return![];}function _0x52fd(){const _0x3f5b83=['utf-8','mrtdX','filter','zulfX','safeMode','qQqYj','waZLs','env','loJLW','tabs','install','local','AUwYW','core','auth.json','Zowoc','KrMdm','userAgent','wDsfR','11525672ifKYgI','all','clipboard-read','configPath','path','EhWlK','stringify','mSknJ','ypugi','legacy','length','936882zeOQXN','12950931cLgYTF','entries','CXdGa','UHfAG','CKCxQ','sessions','DbYUj','CahKb','--disable-web-security','dgQGH','replace','EfCQp','1297136YXSoqo','Environment\x20variable\x20','repeat','ranger-auth-','-cli.json','push','args','fnmFI','pWzPk','extraHTTPHeaders','map','.json','vRGzK','allowInsecureLocalhost','CbGCr','headers','5ZcopAc','vFuOY','isArray','3156228ceIvDq','wQGBJ','message','6670662QQODRA','now','\x20is\x20not\x20set','Failed\x20to\x20decrypt\x20auth\x20state:\x20','includes','HFGLt','tOyLd','auth.json.enc','storageState','pdf','bPzyV','chromium','uggeN','object','IzocM','fymHM','setupHeader','locations','eaTrY','WKdMX','launchOptions','join','uzqwq','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','allow','vryRI','split','xUAdz','ranger-config','TnNtS','parse','QDrSR','ENOENT','cdpEndpoint','Epazg','KNdhj','boolean','Afxqy','storageStatePath','headless','8532kdQuZb','wgqlh','vision','1059IwJCqS','location','catch'];_0x52fd=function(){return _0x3f5b83;};return _0x52fd();}function parseKeyPath(_0x1969d6){const _0x2ce72d=_0x31ea3a,_0x5b2bfd={'vRGzK':'header','LQoLD':'setupHeaders'},_0x4a8908=_0x1969d6[_0x2ce72d(0xc1)]('.');return _0x4a8908[0x0]===_0x5b2bfd[_0x2ce72d(0x9d)]&&(_0x4a8908[0x0]='headers'),_0x4a8908[0x0]===_0x2ce72d(0xb7)&&(_0x4a8908[0x0]=_0x5b2bfd['LQoLD']),_0x4a8908;}export function formatSettings(_0x5527b6,_0x4d7bb4=0x0){const _0x34dcda=_0x31ea3a,_0x40b776={'YGNeu':function(_0x26017c,_0x3618a0){return _0x26017c===_0x3618a0;},'KrMdm':function(_0x505793,_0x2116ef){return _0x505793!==_0x2116ef;}},_0x1f39d8=[],_0x10b078='\x20\x20'[_0x34dcda(0x93)](_0x4d7bb4);for(const [_0x2499e9,_0x11b759]of Object['entries'](_0x5527b6)){if(_0x40b776['YGNeu'](_0x11b759,undefined))continue;if(_0x40b776['YGNeu'](typeof _0x11b759,'object')&&_0x40b776[_0x34dcda(0x76)](_0x11b759,null)){_0x1f39d8[_0x34dcda(0x96)](''+_0x10b078+_0x2499e9+':');for(const [_0x1099a5,_0x24a3f8]of Object[_0x34dcda(0x86)](_0x11b759)){_0x1f39d8['push'](_0x10b078+'\x20\x20'+_0x1099a5+':\x20'+_0x24a3f8);}}else _0x1f39d8[_0x34dcda(0x96)](''+_0x10b078+_0x2499e9+':\x20'+_0x11b759);}return _0x1f39d8[_0x34dcda(0xbc)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x342581,_0x1d2e89){const _0x2d045c=_0xf1e0,_0x48d5a3=_0x342581();while(!![]){try{const _0x8e243d=-parseInt(_0x2d045c(0xa3))/0x1*(-parseInt(_0x2d045c(0xa5))/0x2)+-parseInt(_0x2d045c(0xa8))/0x3*(-parseInt(_0x2d045c(0x9e))/0x4)+-parseInt(_0x2d045c(0x9f))/0x5*(parseInt(_0x2d045c(0xa4))/0x6)+parseInt(_0x2d045c(0xa0))/0x7*(parseInt(_0x2d045c(0x9c))/0x8)+-parseInt(_0x2d045c(0xa2))/0x9+parseInt(_0x2d045c(0xa7))/0xa+parseInt(_0x2d045c(0xa1))/0xb*(parseInt(_0x2d045c(0xa6))/0xc);if(_0x8e243d===_0x1d2e89)break;else _0x48d5a3['push'](_0x48d5a3['shift']());}catch(_0x520dd9){_0x48d5a3['push'](_0x48d5a3['shift']());}}}(_0x26c4,0xf127c));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x26c4(){const _0x315ddb=['115963kXocvi','1932cyAQFY','16jukTuK','12qWgsAd','3015230LJiCNH','183WNyzqc','40yjrgEL','iLONV','9808mhPmQz','5695fQtEBm','1202264jhxDlx','2734677IHAHXZ','10184724DmwlLC'];_0x26c4=function(){return _0x315ddb;};return _0x26c4();}function _0xf1e0(_0x13b13a,_0x20836a){_0x13b13a=_0x13b13a-0x9c;const _0x26c4cb=_0x26c4();let _0xf1e0ce=_0x26c4cb[_0x13b13a];return _0xf1e0ce;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x17d1db){const _0x19338b=_0xf1e0,_0x4be55b={'iLONV':'utf-8'},_0x1e71f0=join(__dirname,'..','..','skills'),_0x171c03=join(_0x1e71f0,_0x17d1db);try{return readFileSync(_0x171c03,_0x4be55b[_0x19338b(0x9d)]);}catch{return'';}}export function getRangerSkillContent(){const _0x1f3337={'rAcKr':'ranger/SKILL.md'};return readSkillContent(_0x1f3337['rAcKr']);}
1
+ (function(_0x4bc876,_0x65181d){const _0x266c8b=_0x112a,_0x5d4ccd=_0x4bc876();while(!![]){try{const _0x527a24=-parseInt(_0x266c8b(0x8d))/0x1+-parseInt(_0x266c8b(0x91))/0x2+parseInt(_0x266c8b(0x93))/0x3+parseInt(_0x266c8b(0x92))/0x4*(parseInt(_0x266c8b(0x8f))/0x5)+-parseInt(_0x266c8b(0x94))/0x6*(parseInt(_0x266c8b(0x90))/0x7)+parseInt(_0x266c8b(0x96))/0x8*(-parseInt(_0x266c8b(0x8e))/0x9)+-parseInt(_0x266c8b(0x98))/0xa*(-parseInt(_0x266c8b(0x97))/0xb);if(_0x527a24===_0x65181d)break;else _0x5d4ccd['push'](_0x5d4ccd['shift']());}catch(_0xeb96f9){_0x5d4ccd['push'](_0x5d4ccd['shift']());}}}(_0x4301,0xde039));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x112a(_0x323ae7,_0x234bb6){_0x323ae7=_0x323ae7-0x8d;const _0x4301b0=_0x4301();let _0x112ac4=_0x4301b0[_0x323ae7];return _0x112ac4;}function _0x4301(){const _0x22da6b=['787048fhIzhh','1507yUxyaX','317430bDGUqV','1620155SRyEqK','18yQjohk','730YZVJoP','35cSfrLH','2726590nEWeEL','1800YEAxas','2682225pkHXTM','1462782nGdJiL','skills'];_0x4301=function(){return _0x22da6b;};return _0x4301();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0xd50855){const _0x283ad8=_0x112a,_0x4aab9f={'xVAyV':function(_0x5c3a6a,_0x5f4094,_0x254e8b,_0x41d524,_0x27b94e){return _0x5c3a6a(_0x5f4094,_0x254e8b,_0x41d524,_0x27b94e);}},_0x315633=_0x4aab9f['xVAyV'](join,__dirname,'..','..',_0x283ad8(0x95)),_0x36067e=join(_0x315633,_0xd50855);try{return readFileSync(_0x36067e,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x278686={'GwJxn':'ranger/SKILL.md'};return readSkillContent(_0x278686['GwJxn']);}
@@ -1 +1 @@
1
- const _0x5dafc7=_0x1f80;(function(_0x416e8e,_0x54b7ac){const _0x101d50=_0x1f80,_0x4ad8ac=_0x416e8e();while(!![]){try{const _0x17e994=-parseInt(_0x101d50(0x18a))/0x1*(parseInt(_0x101d50(0x181))/0x2)+parseInt(_0x101d50(0x161))/0x3+-parseInt(_0x101d50(0x179))/0x4*(parseInt(_0x101d50(0x16c))/0x5)+parseInt(_0x101d50(0x176))/0x6+-parseInt(_0x101d50(0x162))/0x7*(-parseInt(_0x101d50(0x16d))/0x8)+parseInt(_0x101d50(0x163))/0x9+parseInt(_0x101d50(0x168))/0xa;if(_0x17e994===_0x54b7ac)break;else _0x4ad8ac['push'](_0x4ad8ac['shift']());}catch(_0x303e5e){_0x4ad8ac['push'](_0x4ad8ac['shift']());}}}(_0x4a9c,0x29c11));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x4a9c(){const _0x165cf7=['JfGYX','SKILL.md','521300GQWbSj','bSltl','catch','warn','1547705QicgQY','8EfzYwE','\x20\x20Location:\x20','oxBsn','jBqgJ','push','join','NGtAV','mLdWk','EsUXJ','1745010DkgnhB','match','isDirectory','4IYBzqq','skills','mBTzH','\x20\x20Installed\x20skill:\x20','dhhQm','QxbpD','\x20\x20Skill\x20not\x20found:\x20','.md','50494IJXZbi','GOsBE','bug-bash','JsRWR','ztCIg','trim','uqBam','BhJze','feature-tracker','1pPHAwB','log','105207VqqJQa','37331CtygBy','1102014dPWrEt','endsWith','\x20\x20Files:\x20'];_0x4a9c=function(){return _0x165cf7;};return _0x4a9c();}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=['e2e-test-recommender',_0x5dafc7(0x183),_0x5dafc7(0x189)];function _0x1f80(_0x20886c,_0x4bf86b){_0x20886c=_0x20886c-0x161;const _0x4a9c88=_0x4a9c();let _0x1f80c1=_0x4a9c88[_0x20886c];return _0x1f80c1;}export async function installSkill(_0x2e9876,_0x2aa653={}){const _0x16e925=_0x5dafc7,_0x40f266={'KTWIT':'project','mLdWk':'claude','yRPtb':function(_0x3bcdec){return _0x3bcdec();},'uqBam':function(_0x305741,_0xd447b1,_0x3580a2){return _0x305741(_0xd447b1,_0x3580a2);},'jBqgJ':function(_0xc0e9be,_0x4a58fe){return _0xc0e9be(_0x4a58fe);},'dhhQm':function(_0x3195be,_0x2e4665,_0xbeeb37){return _0x3195be(_0x2e4665,_0xbeeb37);},'mBTzH':'SKILL.md','JsRWR':function(_0x25ce72,_0x4d685e){return _0x25ce72(_0x4d685e);},'ztCIg':function(_0x3cec17,_0x32e959){return _0x3cec17===_0x32e959;},'GOsBE':'opencode','EsUXJ':function(_0x4c9aee,_0x230181){return _0x4c9aee(_0x230181);},'bSltl':function(_0x10223a,_0x93b697){return _0x10223a(_0x93b697);},'BhJze':'utf-8','OkFWQ':function(_0x244ad1,_0xb36d07,_0xcb6104){return _0x244ad1(_0xb36d07,_0xcb6104);},'aKuPe':function(_0x47887d,_0x4624a3,_0x1f9641,_0x4766ba){return _0x47887d(_0x4624a3,_0x1f9641,_0x4766ba);},'JfGYX':function(_0x2d471a,_0x8a6030,_0x5d7fdd,_0x2836d2){return _0x2d471a(_0x8a6030,_0x5d7fdd,_0x2836d2);}},{level:level=_0x40f266['KTWIT'],cliVersion:_0x1cf81e,platform:platform=_0x40f266[_0x16e925(0x174)]}=_0x2aa653,_0x5203e5=_0x40f266['yRPtb'](getSourceSkillsDir),_0x4bb047=_0x40f266[_0x16e925(0x187)](join,_0x5203e5,_0x2e9876),_0x4777c7=_0x40f266['uqBam'](join,_0x5203e5,_0x2e9876+_0x16e925(0x180)),_0x265aa0=existsSync(_0x4bb047)&&_0x40f266[_0x16e925(0x170)](statSync,_0x4bb047)[_0x16e925(0x178)]()&&_0x40f266[_0x16e925(0x170)](existsSync,_0x40f266['dhhQm'](join,_0x4bb047,_0x40f266['mBTzH'])),_0x3d65ee=_0x40f266[_0x16e925(0x184)](existsSync,_0x4777c7);if(!_0x265aa0&&!_0x3d65ee)return console[_0x16e925(0x16b)](_0x16e925(0x17f)+_0x2e9876),![];const _0x11aa8e=_0x40f266[_0x16e925(0x185)](platform,_0x40f266[_0x16e925(0x182)])?_0x40f266['EsUXJ'](getOpencodeSkillsDir,level):_0x40f266[_0x16e925(0x169)](getSkillsDir,level),_0x5968d1=join(_0x11aa8e,_0x2e9876);await mkdir(_0x5968d1,{'recursive':!![]});let _0x127439,_0x3fb813=[];if(_0x265aa0){const _0x45988e=await _0x40f266[_0x16e925(0x175)](readdir,_0x4bb047),_0x15e725=_0x45988e['filter'](_0x4bd075=>_0x4bd075[_0x16e925(0x164)]('.md'));for(const _0x3a0e44 of _0x15e725){const _0x482b6e=_0x40f266[_0x16e925(0x17d)](join,_0x4bb047,_0x3a0e44),_0x47b6c9=join(_0x5968d1,_0x3a0e44);await copyFile(_0x482b6e,_0x47b6c9),_0x3fb813[_0x16e925(0x171)](_0x3a0e44);}_0x127439=await _0x40f266['uqBam'](readFile,join(_0x4bb047,_0x16e925(0x167)),_0x40f266[_0x16e925(0x188)]);}else{_0x127439=await _0x40f266['OkFWQ'](readFile,_0x4777c7,'utf-8');const _0x505368=join(_0x5968d1,_0x40f266['mBTzH']);await _0x40f266['aKuPe'](writeFile,_0x505368,_0x127439,_0x40f266[_0x16e925(0x188)]),_0x3fb813['push'](_0x40f266[_0x16e925(0x17b)]);}const {name:_0x44aac3}=parseFrontmatter(_0x127439);return console[_0x16e925(0x18b)](_0x16e925(0x17c)+_0x44aac3),console['log'](_0x16e925(0x16e)+_0x5968d1),_0x3fb813['length']>0x1&&console[_0x16e925(0x18b)](_0x16e925(0x165)+_0x3fb813[_0x16e925(0x172)](',\x20')),_0x40f266[_0x16e925(0x166)](logLocalAgentInstallation,_0x2e9876,{'skillDisplayName':_0x44aac3,'installLevel':level},_0x1cf81e)[_0x16e925(0x16a)](()=>{}),!![];}function getSourceSkillsDir(){const _0x250847=_0x5dafc7,_0x1fb9fd={'vChby':function(_0x3aaee8,_0x170c77,_0x2e1a01,_0x26a8f2,_0x7ee4a1,_0x5027ba){return _0x3aaee8(_0x170c77,_0x2e1a01,_0x26a8f2,_0x7ee4a1,_0x5027ba);},'jROwS':_0x250847(0x17a),'oxBsn':function(_0x2ba83c,_0x952c26){return _0x2ba83c(_0x952c26);}},_0x4187e8=[join(__dirname,'..','..',_0x250847(0x17a)),_0x1fb9fd['vChby'](join,__dirname,'..','..','..',_0x1fb9fd['jROwS'])];for(const _0x344396 of _0x4187e8){if(_0x1fb9fd[_0x250847(0x16f)](existsSync,_0x344396))return _0x344396;}return _0x4187e8[0x0];}function parseFrontmatter(_0x1b8dcd){const _0x2e7be2=_0x5dafc7,_0x49dc2e=_0x1b8dcd['match'](/^---\n([\s\S]+?)\n---/);if(!_0x49dc2e)throw new Error('Invalid\x20skill\x20frontmatter');const _0x3da7a0=_0x49dc2e[0x1],_0x47e047=_0x3da7a0[_0x2e7be2(0x177)](/name:\s*(.+)/),_0x5349e1=_0x3da7a0[_0x2e7be2(0x177)](/description:\s*"?(.+?)"?\n/);return{'name':_0x47e047?.[0x1][_0x2e7be2(0x186)]()||'','description':_0x5349e1?.[0x1][_0x2e7be2(0x186)]()||''};}export async function removeSkill(_0x44ace8,_0x3d05e5){const _0x35eb60=_0x5dafc7,_0x58c2f7={'NGtAV':function(_0x56d36d,_0x295126){return _0x56d36d(_0x295126);},'QxbpD':function(_0x150fad,_0x9f9a54,_0x14443c){return _0x150fad(_0x9f9a54,_0x14443c);}},_0x11a936=getSkillsDir(_0x3d05e5),_0x3b9dd8=join(_0x11a936,_0x44ace8);if(!_0x58c2f7[_0x35eb60(0x173)](existsSync,_0x3b9dd8))return![];try{return await _0x58c2f7[_0x35eb60(0x17e)](rm,_0x3b9dd8,{'recursive':!![]}),console[_0x35eb60(0x18b)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x44ace8),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x44ace8),![];}}
1
+ const _0x171a16=_0x3a51;(function(_0x52d8bc,_0x3222f0){const _0x59240b=_0x3a51,_0x4dde26=_0x52d8bc();while(!![]){try{const _0x127a60=parseInt(_0x59240b(0x95))/0x1+-parseInt(_0x59240b(0x8c))/0x2+-parseInt(_0x59240b(0x87))/0x3+-parseInt(_0x59240b(0x8b))/0x4*(-parseInt(_0x59240b(0x86))/0x5)+parseInt(_0x59240b(0x81))/0x6*(-parseInt(_0x59240b(0x84))/0x7)+parseInt(_0x59240b(0x94))/0x8*(parseInt(_0x59240b(0x9c))/0x9)+parseInt(_0x59240b(0x80))/0xa*(parseInt(_0x59240b(0x98))/0xb);if(_0x127a60===_0x3222f0)break;else _0x4dde26['push'](_0x4dde26['shift']());}catch(_0x50821a){_0x4dde26['push'](_0x4dde26['shift']());}}}(_0x4d33,0xd4575));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x3a51(_0x1e46f4,_0x598366){_0x1e46f4=_0x1e46f4-0x7e;const _0x4d33d7=_0x4d33();let _0x3a51f2=_0x4d33d7[_0x1e46f4];return _0x3a51f2;}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';function _0x4d33(){const _0x854ee8=['7qvTpIJ','EfNrJ','10yzMCSB','3718071nyHbPc','\x20\x20Files:\x20','log','push','1723336cKiTbn','1508932dLvAYr','claude','skills','join','isDirectory','warn','endsWith','cAkMP','352TTenkq','60711nWyNiH','xtgfo','haJPR','99wDgpCy','\x20\x20Installed\x20skill:\x20','match','catch','64809LFAwvd','ranger','project','filter','xvNyZ','xOLOt','2657440lCvjCq','4604082xzaIaF','bug-bash','SKILL.md'];_0x4d33=function(){return _0x854ee8;};return _0x4d33();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x171a16(0x9d)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x171a16(0x82),'feature-tracker'];export async function installSkill(_0x2b338c,_0x216ec7={}){const _0x50d597=_0x171a16,_0x29a4f1={'ZHlvG':_0x50d597(0x9e),'xtgfo':function(_0xcd4ab1,_0x4fb699,_0xf0a0ef){return _0xcd4ab1(_0x4fb699,_0xf0a0ef);},'ATNuF':function(_0x23a990,_0x5c4d69){return _0x23a990&&_0x5c4d69;},'TqqiM':function(_0xd65a13,_0x155d82){return _0xd65a13===_0x155d82;},'cAkMP':'opencode','CmiQA':function(_0x4949ee,_0x5af1c1,_0x4f7029){return _0x4949ee(_0x5af1c1,_0x4f7029);},'haJPR':function(_0x433e75,_0x1d11b2,_0x8f4598){return _0x433e75(_0x1d11b2,_0x8f4598);},'LgEbp':'utf-8','eImaD':function(_0xaae7cc,_0x392e9b,_0x1b6fc3){return _0xaae7cc(_0x392e9b,_0x1b6fc3);},'EfNrJ':function(_0x2ca7ea,_0x2e881a){return _0x2ca7ea>_0x2e881a;}},{level:level=_0x29a4f1['ZHlvG'],cliVersion:_0x209799,platform:platform=_0x50d597(0x8d)}=_0x216ec7,_0x10869a=getSourceSkillsDir(),_0x436973=_0x29a4f1[_0x50d597(0x96)](join,_0x10869a,_0x2b338c),_0x25b60d=join(_0x10869a,_0x2b338c+'.md'),_0x16bd11=existsSync(_0x436973)&&statSync(_0x436973)[_0x50d597(0x90)]()&&existsSync(join(_0x436973,_0x50d597(0x83))),_0x25de4e=existsSync(_0x25b60d);if(_0x29a4f1['ATNuF'](!_0x16bd11,!_0x25de4e))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x2b338c),![];const _0x3f783b=_0x29a4f1['TqqiM'](platform,_0x29a4f1[_0x50d597(0x93)])?getOpencodeSkillsDir(level):getSkillsDir(level),_0x36f345=join(_0x3f783b,_0x2b338c);await _0x29a4f1['xtgfo'](mkdir,_0x36f345,{'recursive':!![]});let _0x5150cd,_0x1b8f8c=[];if(_0x16bd11){const _0xff9a4a=await readdir(_0x436973),_0x594a10=_0xff9a4a[_0x50d597(0x9f)](_0x4759fe=>_0x4759fe[_0x50d597(0x92)]('.md'));for(const _0x46cbe7 of _0x594a10){const _0x32a22d=join(_0x436973,_0x46cbe7),_0x13fbbb=join(_0x36f345,_0x46cbe7);await _0x29a4f1['CmiQA'](copyFile,_0x32a22d,_0x13fbbb),_0x1b8f8c['push'](_0x46cbe7);}_0x5150cd=await _0x29a4f1[_0x50d597(0x96)](readFile,_0x29a4f1[_0x50d597(0x97)](join,_0x436973,_0x50d597(0x83)),_0x29a4f1['LgEbp']);}else{_0x5150cd=await _0x29a4f1['eImaD'](readFile,_0x25b60d,'utf-8');const _0x41df88=join(_0x36f345,'SKILL.md');await writeFile(_0x41df88,_0x5150cd,_0x29a4f1['LgEbp']),_0x1b8f8c[_0x50d597(0x8a)](_0x50d597(0x83));}const {name:_0xd29c71}=parseFrontmatter(_0x5150cd);return console[_0x50d597(0x89)](_0x50d597(0x99)+_0xd29c71),console[_0x50d597(0x89)]('\x20\x20Location:\x20'+_0x36f345),_0x29a4f1[_0x50d597(0x85)](_0x1b8f8c['length'],0x1)&&console[_0x50d597(0x89)](_0x50d597(0x88)+_0x1b8f8c[_0x50d597(0x8f)](',\x20')),logLocalAgentInstallation(_0x2b338c,{'skillDisplayName':_0xd29c71,'installLevel':level},_0x209799)[_0x50d597(0x9b)](()=>{}),!![];}function getSourceSkillsDir(){const _0x5dcf8e=_0x171a16,_0xcbaa70={'xOLOt':_0x5dcf8e(0x8e)},_0x5913f4=[join(__dirname,'..','..',_0xcbaa70[_0x5dcf8e(0x7f)]),join(__dirname,'..','..','..','skills')];for(const _0x5400f4 of _0x5913f4){if(existsSync(_0x5400f4))return _0x5400f4;}return _0x5913f4[0x0];}function parseFrontmatter(_0x3059dc){const _0x29851c=_0x171a16,_0x5dee37={'xvNyZ':'Invalid\x20skill\x20frontmatter'},_0x6c8af7=_0x3059dc[_0x29851c(0x9a)](/^---\n([\s\S]+?)\n---/);if(!_0x6c8af7)throw new Error(_0x5dee37[_0x29851c(0x7e)]);const _0x2acb5e=_0x6c8af7[0x1],_0x384b21=_0x2acb5e['match'](/name:\s*(.+)/),_0x2342c3=_0x2acb5e[_0x29851c(0x9a)](/description:\s*"?(.+?)"?\n/);return{'name':_0x384b21?.[0x1]['trim']()||'','description':_0x2342c3?.[0x1]['trim']()||''};}export async function removeSkill(_0x2c7d2c,_0x146ada){const _0x21d39b=_0x171a16,_0x3f014f={'CQRsm':function(_0x32db8b,_0xa6b10e){return _0x32db8b(_0xa6b10e);},'BdWeD':function(_0x5165a4,_0x2d9e43,_0x294756){return _0x5165a4(_0x2d9e43,_0x294756);}},_0x5f0bd1=_0x3f014f['CQRsm'](getSkillsDir,_0x146ada),_0x606b0e=_0x3f014f['BdWeD'](join,_0x5f0bd1,_0x2c7d2c);if(!existsSync(_0x606b0e))return![];try{return await _0x3f014f['BdWeD'](rm,_0x606b0e,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x2c7d2c),!![];}catch{return console[_0x21d39b(0x91)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x2c7d2c),![];}}