@ranger-testing/ranger-cli 2.5.0 → 2.5.2

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 (73) 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/mcpBootstrap.js +1 -0
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/agentEnv.js +1 -1
  36. package/build/commands/utils/browserSessionsApi.js +1 -1
  37. package/build/commands/utils/claudeConfig.js +1 -1
  38. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  39. package/build/commands/utils/claudePlugin.js +1 -1
  40. package/build/commands/utils/crypto.js +1 -1
  41. package/build/commands/utils/desirePathLog.js +1 -1
  42. package/build/commands/utils/deviceAuth.js +1 -1
  43. package/build/commands/utils/environment.js +1 -1
  44. package/build/commands/utils/featureApi.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.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/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/tokenRefresh.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/package.json +1 -1
  70. package/build/commands/utils/featureReportGenerator.js +0 -1
  71. package/build/commands/utils/git.js +0 -1
  72. package/build/commands/utils/reportGenerator.js +0 -1
  73. package/build/commands/verifyInBrowser.js +0 -1
@@ -1 +1 @@
1
- const _0x44792f=_0x371b;(function(_0x457012,_0x19f7f5){const _0x55f58e=_0x371b,_0x5a300f=_0x457012();while(!![]){try{const _0x70a98=-parseInt(_0x55f58e(0x19c))/0x1*(-parseInt(_0x55f58e(0x187))/0x2)+-parseInt(_0x55f58e(0x1b3))/0x3*(parseInt(_0x55f58e(0x19b))/0x4)+-parseInt(_0x55f58e(0x1a0))/0x5*(-parseInt(_0x55f58e(0x18a))/0x6)+parseInt(_0x55f58e(0x1a6))/0x7*(parseInt(_0x55f58e(0x19d))/0x8)+parseInt(_0x55f58e(0x1ba))/0x9*(-parseInt(_0x55f58e(0x1af))/0xa)+parseInt(_0x55f58e(0x1b6))/0xb*(parseInt(_0x55f58e(0x193))/0xc)+-parseInt(_0x55f58e(0x1bd))/0xd;if(_0x70a98===_0x19f7f5)break;else _0x5a300f['push'](_0x5a300f['shift']());}catch(_0xc5a614){_0x5a300f['push'](_0x5a300f['shift']());}}}(_0xf263,0xa82a8));function _0xf263(){const _0xda8329=['dxurp','cWXwR','playwright-cli\x20','data','string','-s=','kALqA','1418030OzCqZH','toString','XthnP','ignore','762REBXOh','pipe','join','2398715TJNjqE','\x0astdout:\x20','--config','stdout','63Xhaety','sessionId','Yqeoo','24371256KelRVy','\x20signal=','16khaYnO','slice','kill','2172270JMSGfp','stderr','jMnDr','@playwright/cli','subcommand','args','values','env','update','60WvLaQp','zWfGe','SIGTERM','exited\x20with\x20code=','npx','timeoutMs','command','IxfMn','7992nIWYOA','148337pwpmse','8oKxlin','JPVfC','match','10iJapyD','find','script','hex','unknown','replace','7437654vMNnAY','trim'];_0xf263=function(){return _0xda8329;};return _0xf263();}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x44792f(0x18d);function toPlaywrightCliSessionKey(_0x1dbfe6){const _0x23d705=_0x44792f,_0x1985bd={'lxJgw':'sha256'},_0x8dce2=createHash(_0x1985bd['lxJgw'])[_0x23d705(0x192)](_0x1dbfe6)['digest'](_0x23d705(0x1a3))[_0x23d705(0x188)](0x0,0xc);return'rg-'+_0x8dce2;}function shellQuote(_0x8cd705){const _0x4bfcb5=_0x44792f;return'\x27'+_0x8cd705[_0x4bfcb5(0x1a5)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2777ca){const _0x3410c3={'PvFlf':function(_0x2f4590,_0x4b9b78){return _0x2f4590(_0x4b9b78);}};return SAFE_SHELL_TOKEN['test'](_0x2777ca)?_0x2777ca:_0x3410c3['PvFlf'](shellQuote,_0x2777ca);}export function buildPlaywrightCliInvocation(_0xee45ab,_0x5380ec,_0x24f70b){const _0x141bc7=_0x44792f,_0x260c72={'Fqoko':_0x141bc7(0x1a4),'CzaOC':_0x141bc7(0x1b8),'sDzqu':'npx','Jvfye':function(_0x4366e1,_0x44d756){return _0x4366e1(_0x44d756);}},_0x4698ca=toPlaywrightCliSessionKey(_0xee45ab),[_0x3c54df=_0x260c72['Fqoko']]=_0x24f70b,_0x1ccc63=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4698ca,_0x260c72['CzaOC'],_0x5380ec,..._0x24f70b];return{'command':_0x260c72['sDzqu'],'args':_0x1ccc63,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x141bc7(0x1ad)+quoteShellArg(_0x4698ca),_0x141bc7(0x1b8),_0x260c72['Jvfye'](quoteShellArg,_0x5380ec),..._0x24f70b['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x3c54df};}export function buildPlaywrightCliCommandPrefix(_0x4fb5a7,_0xd0806){const _0x10e9fb=_0x44792f,_0x30723a={'kALqA':function(_0x5edf9f,_0x375db5){return _0x5edf9f(_0x375db5);},'aoqyj':_0x10e9fb(0x1b8)},_0x2439a1=toPlaywrightCliSessionKey(_0x4fb5a7);return[_0x10e9fb(0x197),PLAYWRIGHT_CLI_BINARY,_0x10e9fb(0x1ad)+_0x30723a['kALqA'](quoteShellArg,_0x2439a1),_0x30723a['aoqyj'],_0x30723a[_0x10e9fb(0x1ae)](quoteShellArg,_0xd0806)][_0x10e9fb(0x1b5)]('\x20');}function truncateOutput(_0x57e3a8,_0xf0edc4=0x7d0){const _0x51d331=_0x44792f;return _0x57e3a8['length']>_0xf0edc4?_0x57e3a8[_0x51d331(0x188)](0x0,_0xf0edc4)+'...':_0x57e3a8;}export async function runPlaywrightCliCommand(_0x6a61eb){const _0x44295e=_0x44792f,_0x1ae6e8={'jMnDr':function(_0x3832ee,_0x2c820e){return _0x3832ee(_0x2c820e);},'OVdsT':function(_0xdbfd7f,_0x2f5d64){return _0xdbfd7f??_0x2f5d64;},'ovqxV':_0x44295e(0x1b2),'WUBOX':_0x44295e(0x1b4),'Yqeoo':function(_0x255838,_0x382e1f){return _0x255838>_0x382e1f;},'dxurp':_0x44295e(0x1ab),'gaMFb':'error','IxfMn':function(_0x55773c,_0x528ff1,_0x2589de,_0x604872){return _0x55773c(_0x528ff1,_0x2589de,_0x604872);}},_0x359df1=_0x1ae6e8[_0x44295e(0x19a)](buildPlaywrightCliInvocation,_0x6a61eb[_0x44295e(0x1bb)],_0x6a61eb['configPath'],_0x6a61eb['commandArgs']);return new Promise((_0x516309,_0xd46343)=>{const _0x4190e8=_0x44295e,_0x51c1b0={'cWXwR':function(_0x4600b6,_0x4a2c33){const _0x566a81=_0x371b;return _0x1ae6e8[_0x566a81(0x18c)](_0x4600b6,_0x4a2c33);},'VycMR':function(_0x150ce2,_0x311368){return _0x1ae6e8['OVdsT'](_0x150ce2,_0x311368);}},_0x350fb8=spawn(_0x359df1[_0x4190e8(0x199)],_0x359df1[_0x4190e8(0x18f)],{'cwd':_0x6a61eb['cwd'],'env':_0x6a61eb[_0x4190e8(0x191)],'stdio':[_0x1ae6e8['ovqxV'],_0x4190e8(0x1b4),_0x1ae6e8['WUBOX']]});let _0x418f69='',_0x51da69='',_0x3d4c25=![];const _0x428ba7=_0x6a61eb['timeoutMs']&&_0x1ae6e8[_0x4190e8(0x1bc)](_0x6a61eb['timeoutMs'],0x0)?setTimeout(()=>{const _0x4308e3=_0x4190e8;_0x3d4c25=!![],_0x350fb8[_0x4308e3(0x189)](_0x4308e3(0x195)),setTimeout(()=>{try{_0x350fb8['kill']('SIGKILL');}catch{}},0x3e8);},_0x6a61eb[_0x4190e8(0x198)]):null;_0x350fb8[_0x4190e8(0x1b9)]?.['on'](_0x1ae6e8[_0x4190e8(0x1a8)],_0x27411c=>{_0x418f69+=_0x27411c['toString']();}),_0x350fb8[_0x4190e8(0x18b)]?.['on'](_0x4190e8(0x1ab),_0x148e16=>{const _0x18728f=_0x4190e8;_0x51da69+=_0x148e16[_0x18728f(0x1b0)]();}),_0x350fb8['on'](_0x1ae6e8['gaMFb'],_0x1a9b52=>{if(_0x428ba7)clearTimeout(_0x428ba7);_0x51c1b0['cWXwR'](_0xd46343,_0x1a9b52);}),_0x350fb8['on']('close',(_0x28b269,_0x5dce93)=>{const _0xef0c30=_0x4190e8;if(_0x428ba7)clearTimeout(_0x428ba7);if(_0x28b269===0x0){_0x516309({'stdout':_0x418f69,'stderr':_0x51da69,'invocation':_0x359df1});return;}const _0x290719=_0x3d4c25?'timed\x20out\x20after\x20'+_0x6a61eb['timeoutMs']+'ms':_0xef0c30(0x196)+_0x51c1b0['VycMR'](_0x28b269,'null')+_0xef0c30(0x1be)+(_0x5dce93??'null');_0xd46343(new Error(_0xef0c30(0x1aa)+_0x359df1[_0xef0c30(0x18e)]+'\x20'+_0x290719+_0xef0c30(0x1b7)+truncateOutput(_0x418f69)+'\x0astderr:\x20'+_0x51c1b0[_0xef0c30(0x1a9)](truncateOutput,_0x51da69)));});});}function _0x371b(_0x303561,_0x1fca72){_0x303561=_0x303561-0x187;const _0xf263f0=_0xf263();let _0x371b46=_0xf263f0[_0x303561];return _0x371b46;}export function extractBashCommand(_0x50330f){const _0x2378c4=_0x44792f,_0x27436f={'XthnP':'command','ekbVB':'cmd','JPVfC':'bash_command','zWfGe':'string'},_0x50504c=[_0x27436f[_0x2378c4(0x1b1)],_0x27436f['ekbVB'],_0x2378c4(0x1a2),_0x27436f[_0x2378c4(0x19e)]];for(const _0x3d66a9 of _0x50504c){const _0x4d65ec=_0x50330f[_0x3d66a9];if(typeof _0x4d65ec===_0x27436f[_0x2378c4(0x194)]&&_0x4d65ec[_0x2378c4(0x1a7)]())return _0x4d65ec;}const _0x419cb5=Object[_0x2378c4(0x190)](_0x50330f)[_0x2378c4(0x1a1)](_0x4348c8=>typeof _0x4348c8===_0x2378c4(0x1ac)&&_0x4348c8['trim']()['length']>0x0);return _0x419cb5??null;}export function parsePlaywrightCliCommand(_0x4111a){const _0x584e36=_0x44792f,_0x3836fe=_0x4111a[_0x584e36(0x19f)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x3836fe?.[0x1]??null;}
1
+ const _0x18854d=_0x23aa;(function(_0x13ebab,_0x316790){const _0x412623=_0x23aa,_0x55424f=_0x13ebab();while(!![]){try{const _0x24e30a=-parseInt(_0x412623(0x20e))/0x1*(parseInt(_0x412623(0x1e8))/0x2)+-parseInt(_0x412623(0x1fb))/0x3*(parseInt(_0x412623(0x1ef))/0x4)+parseInt(_0x412623(0x20a))/0x5+parseInt(_0x412623(0x1fa))/0x6*(-parseInt(_0x412623(0x1f8))/0x7)+-parseInt(_0x412623(0x207))/0x8+-parseInt(_0x412623(0x206))/0x9*(-parseInt(_0x412623(0x202))/0xa)+parseInt(_0x412623(0x1f2))/0xb;if(_0x24e30a===_0x316790)break;else _0x55424f['push'](_0x55424f['shift']());}catch(_0x1344bb){_0x55424f['push'](_0x55424f['shift']());}}}(_0x1c5e,0xd861c));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x18854d(0x1f3);function toPlaywrightCliSessionKey(_0x30e939){const _0x212cb8=_0x18854d,_0x2e645d={'SOZbV':'sha256','PNVkT':_0x212cb8(0x210)},_0x534b53=createHash(_0x2e645d[_0x212cb8(0x1e4)])['update'](_0x30e939)[_0x212cb8(0x20f)](_0x2e645d[_0x212cb8(0x1f0)])[_0x212cb8(0x1f5)](0x0,0xc);return'rg-'+_0x534b53;}function _0x1c5e(){const _0x3b233b=['3646447mlbYbS','BBVWg','18LhvNMU','76035uVccHp','...','trim','env','command','SIGTERM','Aanws','1062390sqMDaE','replace','MbfIu','cwd','9lUXRRu','11309392PLLqQa','--config','toString','1155760gPwFkD','timeoutMs','HLZvO','kill','38327ySAqAj','digest','hex','npx','sessionId','NlcfI','GsPfs','SIGKILL','string','\x27\x5c\x27\x27','values','SOZbV','fDhFe','bQYLI','stderr','62bDEOvJ','dcvBl','TprLQ','playwright-cli\x20','configPath','TFLZv','pipe','220cGKZwu','PNVkT','YKeUn','67182038uhKNbx','@playwright/cli','test','slice','length','TobwB'];_0x1c5e=function(){return _0x3b233b;};return _0x1c5e();}function shellQuote(_0x34c232){const _0x14a471=_0x18854d;return'\x27'+_0x34c232[_0x14a471(0x203)](/'/g,_0x14a471(0x1e2))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x54f174){const _0x22e339=_0x18854d;return SAFE_SHELL_TOKEN[_0x22e339(0x1f4)](_0x54f174)?_0x54f174:shellQuote(_0x54f174);}export function buildPlaywrightCliInvocation(_0x38aca9,_0xa2950,_0x5eae34){const _0x1193b1=_0x18854d,_0x249cdd={'Sqvos':'unknown','KXcBY':_0x1193b1(0x1dc),'xZLvD':'--config','BBVWg':function(_0x384e39,_0x411d0e){return _0x384e39(_0x411d0e);}},_0x378ab0=toPlaywrightCliSessionKey(_0x38aca9),[_0x28d6b2=_0x249cdd['Sqvos']]=_0x5eae34,_0x462600=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x378ab0,_0x1193b1(0x208),_0xa2950,..._0x5eae34];return{'command':_0x249cdd['KXcBY'],'args':_0x462600,'shellCommand':[_0x1193b1(0x1dc),PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x378ab0),_0x249cdd['xZLvD'],_0x249cdd[_0x1193b1(0x1f9)](quoteShellArg,_0xa2950),..._0x5eae34['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x28d6b2};}function _0x23aa(_0x4c2110,_0x11cf22){_0x4c2110=_0x4c2110-0x1dc;const _0x1c5e0e=_0x1c5e();let _0x23aac7=_0x1c5e0e[_0x4c2110];return _0x23aac7;}export function buildPlaywrightCliCommandPrefix(_0x4a6bad,_0x3f7cc9){const _0x228558=_0x18854d,_0x1fd9d4={'YKeUn':function(_0x1448f0,_0x2fa103){return _0x1448f0(_0x2fa103);},'TobwB':_0x228558(0x1dc),'fDhFe':'--config','TFLZv':function(_0x3c1a27,_0x474813){return _0x3c1a27(_0x474813);}},_0x5de948=_0x1fd9d4[_0x228558(0x1f1)](toPlaywrightCliSessionKey,_0x4a6bad);return[_0x1fd9d4[_0x228558(0x1f7)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x1fd9d4['YKeUn'](quoteShellArg,_0x5de948),_0x1fd9d4[_0x228558(0x1e5)],_0x1fd9d4[_0x228558(0x1ed)](quoteShellArg,_0x3f7cc9)]['join']('\x20');}function truncateOutput(_0x119e1c,_0x271a99=0x7d0){const _0x589940=_0x18854d,_0x2aaf77={'SwcWv':function(_0x253427,_0x583a2d){return _0x253427+_0x583a2d;},'dcvBl':_0x589940(0x1fc)};return _0x119e1c[_0x589940(0x1f6)]>_0x271a99?_0x2aaf77['SwcWv'](_0x119e1c[_0x589940(0x1f5)](0x0,_0x271a99),_0x2aaf77[_0x589940(0x1e9)]):_0x119e1c;}export async function runPlaywrightCliCommand(_0x37c435){const _0x5167fe=_0x18854d,_0xaf4626={'sxYEd':function(_0x5dfa19,_0x32d933){return _0x5dfa19===_0x32d933;},'TprLQ':function(_0x1a9e35,_0x6194){return _0x1a9e35??_0x6194;},'HLZvO':'null','bQYLI':function(_0x536ee6,_0x49761c){return _0x536ee6(_0x49761c);},'NlcfI':function(_0x210ecf,_0x17b75f,_0x56a2f1,_0x1b754b){return _0x210ecf(_0x17b75f,_0x56a2f1,_0x1b754b);},'GfQNa':'ignore','GsPfs':'pipe','Aanws':function(_0x3d5645,_0x4f240d){return _0x3d5645>_0x4f240d;},'MbfIu':'error','iHSzY':function(_0x3497de,_0x1f3863,_0x5406e9,_0x29d5cd){return _0x3497de(_0x1f3863,_0x5406e9,_0x29d5cd);}},_0x204ea7=_0xaf4626['iHSzY'](buildPlaywrightCliInvocation,_0x37c435[_0x5167fe(0x1dd)],_0x37c435[_0x5167fe(0x1ec)],_0x37c435['commandArgs']);return new Promise((_0xa0e3a2,_0x3c5966)=>{const _0x23b7c7=_0x5167fe,_0x249d01=_0xaf4626[_0x23b7c7(0x1de)](spawn,_0x204ea7['command'],_0x204ea7['args'],{'cwd':_0x37c435[_0x23b7c7(0x205)],'env':_0x37c435[_0x23b7c7(0x1fe)],'stdio':[_0xaf4626['GfQNa'],_0x23b7c7(0x1ee),_0xaf4626[_0x23b7c7(0x1df)]]});let _0x1a8054='',_0x1ec79f='',_0x1be34=![];const _0x15ed64=_0x37c435['timeoutMs']&&_0xaf4626[_0x23b7c7(0x201)](_0x37c435['timeoutMs'],0x0)?setTimeout(()=>{const _0x132956=_0x23b7c7;_0x1be34=!![],_0x249d01[_0x132956(0x20d)](_0x132956(0x200)),setTimeout(()=>{const _0x4c78b3=_0x132956;try{_0x249d01[_0x4c78b3(0x20d)](_0x4c78b3(0x1e0));}catch{}},0x3e8);},_0x37c435['timeoutMs']):null;_0x249d01['stdout']?.['on']('data',_0x14d833=>{const _0x1f2ed0=_0x23b7c7;_0x1a8054+=_0x14d833[_0x1f2ed0(0x209)]();}),_0x249d01[_0x23b7c7(0x1e7)]?.['on']('data',_0x1bd081=>{_0x1ec79f+=_0x1bd081['toString']();}),_0x249d01['on'](_0xaf4626[_0x23b7c7(0x204)],_0x24a2b5=>{if(_0x15ed64)clearTimeout(_0x15ed64);_0x3c5966(_0x24a2b5);}),_0x249d01['on']('close',(_0x4834a3,_0x4c9b30)=>{const _0xbe0bad=_0x23b7c7;if(_0x15ed64)clearTimeout(_0x15ed64);if(_0xaf4626['sxYEd'](_0x4834a3,0x0)){_0xa0e3a2({'stdout':_0x1a8054,'stderr':_0x1ec79f,'invocation':_0x204ea7});return;}const _0x303bd1=_0x1be34?'timed\x20out\x20after\x20'+_0x37c435[_0xbe0bad(0x20b)]+'ms':'exited\x20with\x20code='+_0xaf4626[_0xbe0bad(0x1ea)](_0x4834a3,_0xaf4626[_0xbe0bad(0x20c)])+'\x20signal='+(_0x4c9b30??_0xaf4626['HLZvO']);_0xaf4626['bQYLI'](_0x3c5966,new Error(_0xbe0bad(0x1eb)+_0x204ea7['subcommand']+'\x20'+_0x303bd1+'\x0astdout:\x20'+_0xaf4626[_0xbe0bad(0x1e6)](truncateOutput,_0x1a8054)+'\x0astderr:\x20'+_0xaf4626[_0xbe0bad(0x1e6)](truncateOutput,_0x1ec79f)));});});}export function extractBashCommand(_0x5c0a6b){const _0x23ca76=_0x18854d,_0x146ca2={'bvCrZ':_0x23ca76(0x1ff),'HJshr':'script'},_0x3679ce=[_0x146ca2['bvCrZ'],'cmd',_0x146ca2['HJshr'],'bash_command'];for(const _0x3dac90 of _0x3679ce){const _0x17f65c=_0x5c0a6b[_0x3dac90];if(typeof _0x17f65c===_0x23ca76(0x1e1)&&_0x17f65c[_0x23ca76(0x1fd)]())return _0x17f65c;}const _0x5ed796=Object[_0x23ca76(0x1e3)](_0x5c0a6b)['find'](_0x5a312e=>typeof _0x5a312e===_0x23ca76(0x1e1)&&_0x5a312e[_0x23ca76(0x1fd)]()['length']>0x0);return _0x5ed796??null;}export function parsePlaywrightCliCommand(_0x1fc0c0){const _0x6eec41=_0x1fc0c0['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x6eec41?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x47c243,_0x10b5a5){const _0x37da4e=_0x3ef6,_0x595a94=_0x47c243();while(!![]){try{const _0x2d304d=parseInt(_0x37da4e(0x140))/0x1+parseInt(_0x37da4e(0x13c))/0x2+-parseInt(_0x37da4e(0x146))/0x3*(parseInt(_0x37da4e(0x141))/0x4)+-parseInt(_0x37da4e(0x13e))/0x5*(parseInt(_0x37da4e(0x145))/0x6)+parseInt(_0x37da4e(0x143))/0x7*(parseInt(_0x37da4e(0x13f))/0x8)+parseInt(_0x37da4e(0x144))/0x9*(-parseInt(_0x37da4e(0x13d))/0xa)+parseInt(_0x37da4e(0x142))/0xb;if(_0x2d304d===_0x10b5a5)break;else _0x595a94['push'](_0x595a94['shift']());}catch(_0xa877b7){_0x595a94['push'](_0x595a94['shift']());}}}(_0x2a17,0xef41e));function _0x3ef6(_0x528783,_0x38fe3a){_0x528783=_0x528783-0x13c;const _0x2a178c=_0x2a17();let _0x3ef6dc=_0x2a178c[_0x528783];return _0x3ef6dc;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x53496f){const _0x33fa62={'ogAVv':function(_0x37a74d,_0x398ba4){return _0x37a74d(_0x398ba4);}},_0x548cc9=_0x53496f?_0x33fa62['ogAVv'](_0x53496f,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'+_0x548cc9+'.';}function _0x2a17(){const _0x4cae16=['8993314YZxVpO','4662TQcEQD','1575657cCFboA','109770ONOvAL','3677487GoFVAO','374054xdWzCg','10XUcqQM','130dyzfDA','8032zzwBJc','1183305RtsrZU','4DhYyIJ'];_0x2a17=function(){return _0x4cae16;};return _0x2a17();}
1
+ const _0x335ea9=_0x3338;(function(_0x39f9cc,_0x196a17){const _0x2aa461=_0x3338,_0x2e3c7d=_0x39f9cc();while(!![]){try{const _0x4b6cb4=-parseInt(_0x2aa461(0x1de))/0x1+parseInt(_0x2aa461(0x1e1))/0x2*(parseInt(_0x2aa461(0x1dd))/0x3)+parseInt(_0x2aa461(0x1db))/0x4+parseInt(_0x2aa461(0x1df))/0x5*(parseInt(_0x2aa461(0x1e4))/0x6)+-parseInt(_0x2aa461(0x1e0))/0x7*(-parseInt(_0x2aa461(0x1d9))/0x8)+-parseInt(_0x2aa461(0x1dc))/0x9*(-parseInt(_0x2aa461(0x1da))/0xa)+-parseInt(_0x2aa461(0x1d8))/0xb;if(_0x4b6cb4===_0x196a17)break;else _0x2e3c7d['push'](_0x2e3c7d['shift']());}catch(_0x4d1fe7){_0x2e3c7d['push'](_0x2e3c7d['shift']());}}}(_0x256f,0x744f7));function _0x256f(){const _0x5c4c01=['1353cpTDaB','252840DVIGpC','1392240TdhxEY','623cZjjhy','632oAslIC','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','ranger\x20profile\x20add\x20local','6MlMbRG','2881043AqYKCM','40392aYTqLp','7180WCJMaf','457492lWiEeH','81maebCM'];_0x256f=function(){return _0x5c4c01;};return _0x256f();}function _0x3338(_0x446766,_0x5d75b4){_0x446766=_0x446766-0x1d8;const _0x256f73=_0x256f();let _0x3338b7=_0x256f73[_0x446766];return _0x3338b7;}const DEFAULT_PROFILE_COMMAND=_0x335ea9(0x1e3);export function formatProfileRequiredMessage(_0x2fe7ef){const _0x41b75c=_0x335ea9,_0x2cf923=_0x2fe7ef?_0x2fe7ef(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x41b75c(0x1e2)+_0x2cf923+'.';}
@@ -1 +1 @@
1
- (function(_0x5efe33,_0x3cdb6e){const _0x4d4fd2=_0x55fa,_0xb9062f=_0x5efe33();while(!![]){try{const _0x2d76de=-parseInt(_0x4d4fd2(0xd3))/0x1*(-parseInt(_0x4d4fd2(0xd1))/0x2)+-parseInt(_0x4d4fd2(0xd0))/0x3+-parseInt(_0x4d4fd2(0xce))/0x4*(parseInt(_0x4d4fd2(0xdc))/0x5)+parseInt(_0x4d4fd2(0xdb))/0x6*(parseInt(_0x4d4fd2(0xdd))/0x7)+parseInt(_0x4d4fd2(0xda))/0x8+parseInt(_0x4d4fd2(0xcd))/0x9*(parseInt(_0x4d4fd2(0xd8))/0xa)+parseInt(_0x4d4fd2(0xd5))/0xb;if(_0x2d76de===_0x3cdb6e)break;else _0xb9062f['push'](_0xb9062f['shift']());}catch(_0x4c7082){_0xb9062f['push'](_0xb9062f['shift']());}}}(_0x5d70,0x8b6bf));function _0x55fa(_0x323eb1,_0x14d342){_0x323eb1=_0x323eb1-0xca;const _0x5d7072=_0x5d70();let _0x55faf9=_0x5d7072[_0x323eb1];return _0x55faf9;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x34b5e7=_0x55fa,_0x2f97fe={'jJfYZ':function(_0xba7d5e,_0x3b2eb3){return _0xba7d5e+_0x3b2eb3;},'WQQPK':function(_0x4c1473,_0x1ae2fd){return _0x4c1473+_0x1ae2fd;},'ogjLZ':_0x34b5e7(0xd6),'emwZH':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','FPjIb':'</div>'},_0x11f804=_0x2f97fe[_0x34b5e7(0xde)](_0x2f97fe[_0x34b5e7(0xcc)](_0x2f97fe[_0x34b5e7(0xcc)](_0x2f97fe[_0x34b5e7(0xcc)]('<div\x20class=\x22ranger-banner__content\x22>'+_0x34b5e7(0xd4),_0x2f97fe[_0x34b5e7(0xcf)]),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x2f97fe['emwZH']+_0x2f97fe[_0x34b5e7(0xd7)],'</div>'),_0x34b5e7(0xd9)),_0x6680f2='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x34b5e7(0xcb)](_0x11f804)+_0x34b5e7(0xd2)+JSON['stringify'](_0x6680f2)+';\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 _0x5d70(){const _0x29c723=['5yUtMDJ','413OfPvET','jJfYZ','addInitScript','stringify','WQQPK','98469UPpfBE','3787340NzbTBr','ogjLZ','3003063MSxzXn','332642vkVzak',';\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','6uQwsBw','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','2919598Zvukxm','<div\x20class=\x22ranger-banner__message\x22>','FPjIb','150VdHndI','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','3762056OWTLFj','63174XJTibj'];_0x5d70=function(){return _0x29c723;};return _0x5d70();}export async function addProfileSetupBanner(_0x15a7fe){const _0x1b1032=_0x55fa;await _0x15a7fe[_0x1b1032(0xca)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x1151ce,_0x2cabc2){const _0x54d9ac=_0x4f57,_0x177dc0=_0x1151ce();while(!![]){try{const _0x2346dc=parseInt(_0x54d9ac(0x133))/0x1+-parseInt(_0x54d9ac(0x127))/0x2*(-parseInt(_0x54d9ac(0x135))/0x3)+-parseInt(_0x54d9ac(0x125))/0x4*(parseInt(_0x54d9ac(0x126))/0x5)+-parseInt(_0x54d9ac(0x12e))/0x6+parseInt(_0x54d9ac(0x131))/0x7*(parseInt(_0x54d9ac(0x12a))/0x8)+-parseInt(_0x54d9ac(0x12c))/0x9+parseInt(_0x54d9ac(0x136))/0xa;if(_0x2346dc===_0x2cabc2)break;else _0x177dc0['push'](_0x177dc0['shift']());}catch(_0x285930){_0x177dc0['push'](_0x177dc0['shift']());}}}(_0x2f7a,0x50ac7));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x59730a=_0x4f57,_0x43ba0b={'USzvp':function(_0x36c456,_0x3e84bb){return _0x36c456+_0x3e84bb;},'ZCPTc':function(_0x28c9c1,_0x1bbdd7){return _0x28c9c1+_0x1bbdd7;},'Lzsqx':function(_0x3b6673,_0x30e4dc){return _0x3b6673+_0x30e4dc;},'HOweQ':function(_0x24b0cd,_0xc4c7f2){return _0x24b0cd+_0xc4c7f2;},'RgGas':_0x59730a(0x138),'AHIKf':_0x59730a(0x134)},_0x2c386e=_0x43ba0b['USzvp'](_0x43ba0b['ZCPTc'](_0x43ba0b['Lzsqx'](_0x43ba0b['HOweQ']('<div\x20class=\x22ranger-banner__content\x22>'+_0x59730a(0x128),_0x59730a(0x130)),_0x43ba0b['RgGas'])+_0x59730a(0x12f),'</div>'),'</div>')+_0x43ba0b[_0x59730a(0x137)],_0x20c450='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x59730a(0x129)+JSON[_0x59730a(0x12b)](_0x2c386e)+_0x59730a(0x12d)+JSON['stringify'](_0x20c450)+_0x59730a(0x132);})());function _0x4f57(_0x12041d,_0xa058c6){_0x12041d=_0x12041d-0x125;const _0x2f7a12=_0x2f7a();let _0x4f57d9=_0x2f7a12[_0x12041d];return _0x4f57d9;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x2f7a(){const _0x3a1ec1=['2056ZzygzI','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','\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','24YzgYdG','stringify','4370454LFGSed',';\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','1788450MtKBQy','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','<div\x20class=\x22ranger-banner__message\x22>','1492519jaiTge',';\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','98353frVMsP','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','1455eNegav','528540kxGdWR','AHIKf','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','4904ucHyCi','715fyGCkS'];_0x2f7a=function(){return _0x3a1ec1;};return _0x2f7a();}export async function addProfileSetupBanner(_0x458d02){await _0x458d02['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0xc25096,_0x443ee4){const _0x4a64f6=_0x11ac,_0x16c47c=_0xc25096();while(!![]){try{const _0x3876b3=-parseInt(_0x4a64f6(0x140))/0x1*(-parseInt(_0x4a64f6(0x13a))/0x2)+parseInt(_0x4a64f6(0x143))/0x3*(-parseInt(_0x4a64f6(0x13d))/0x4)+-parseInt(_0x4a64f6(0x138))/0x5+parseInt(_0x4a64f6(0x13f))/0x6*(-parseInt(_0x4a64f6(0x132))/0x7)+parseInt(_0x4a64f6(0x134))/0x8+-parseInt(_0x4a64f6(0x139))/0x9*(-parseInt(_0x4a64f6(0x13b))/0xa)+parseInt(_0x4a64f6(0x136))/0xb*(parseInt(_0x4a64f6(0x142))/0xc);if(_0x3876b3===_0x443ee4)break;else _0x16c47c['push'](_0x16c47c['shift']());}catch(_0x23cfed){_0x16c47c['push'](_0x16c47c['shift']());}}}(_0x473e,0x89180));import{readFile}from'fs/promises';function _0x11ac(_0x1dca81,_0x5d362d){_0x1dca81=_0x1dca81-0x131;const _0x473e70=_0x473e();let _0x11ac2e=_0x473e70[_0x1dca81];return _0x11ac2e;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x3206a0=_0x11ac,_0x20cc2d={'uIpQk':function(_0x4b526e,_0x6efc10,_0x5a2384){return _0x4b526e(_0x6efc10,_0x5a2384);},'HFTwq':'config.json'};return _0x20cc2d[_0x3206a0(0x133)](join,getRangerDir(),_0x20cc2d['HFTwq']);}export async function loadRangerConfig(){const _0x28a8b7=_0x11ac,_0x356c01={'FwcQV':function(_0x45611c,_0x4d1953,_0x2dc230){return _0x45611c(_0x4d1953,_0x2dc230);},'eNBIl':'utf-8','rdOOP':function(_0x33e2f4,_0x684dd5){return _0x33e2f4!==_0x684dd5;},'wRMBf':function(_0x38be8d,_0xfabfe4){return _0x38be8d instanceof _0xfabfe4;}},_0x1a9742=getRangerConfigPath();if(!existsSync(_0x1a9742))return{};try{const _0x4aa7f2=await _0x356c01['FwcQV'](readFile,_0x1a9742,_0x356c01['eNBIl']),_0x20202b=JSON['parse'](_0x4aa7f2);if(!_0x20202b||_0x356c01[_0x28a8b7(0x131)](typeof _0x20202b,_0x28a8b7(0x135))||Array[_0x28a8b7(0x141)](_0x20202b))return{};const _0xd5b73a={},_0x23857c=_0x20202b['model'];return typeof _0x23857c==='string'&&(_0xd5b73a[_0x28a8b7(0x13c)]=_0x23857c),_0xd5b73a;}catch(_0x2ee486){const _0x3bdbd8=_0x356c01[_0x28a8b7(0x137)](_0x2ee486,Error)?_0x2ee486['message']:String(_0x2ee486);return console[_0x28a8b7(0x13e)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1a9742+':\x20'+_0x3bdbd8),{};}}function _0x473e(){const _0xe15ae3=['model','4wJeDCT','warn','21444XmTxWC','2LSSlOE','isArray','174228shYVpV','2418873LNvkVZ','rdOOP','273SShmrf','uIpQk','6247960MBaMvo','object','572gpAxPV','wRMBf','2825460SBEPiW','18lUvBxs','125816ExSFOa','2052530bffshk'];_0x473e=function(){return _0xe15ae3;};return _0x473e();}
1
+ (function(_0x521f08,_0x156720){const _0x1da1b2=_0x117c,_0x3e1375=_0x521f08();while(!![]){try{const _0xcf1f79=-parseInt(_0x1da1b2(0x1b6))/0x1*(parseInt(_0x1da1b2(0x1c0))/0x2)+-parseInt(_0x1da1b2(0x1bf))/0x3+-parseInt(_0x1da1b2(0x1b8))/0x4*(parseInt(_0x1da1b2(0x1c7))/0x5)+-parseInt(_0x1da1b2(0x1cb))/0x6+-parseInt(_0x1da1b2(0x1c6))/0x7+-parseInt(_0x1da1b2(0x1c2))/0x8*(-parseInt(_0x1da1b2(0x1c3))/0x9)+parseInt(_0x1da1b2(0x1b7))/0xa;if(_0xcf1f79===_0x156720)break;else _0x3e1375['push'](_0x3e1375['shift']());}catch(_0x594233){_0x3e1375['push'](_0x3e1375['shift']());}}}(_0x430e,0xe25e3));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x117c(_0x5e3bfe,_0x4569f8){_0x5e3bfe=_0x5e3bfe-0x1b5;const _0x430ec6=_0x430e();let _0x117cf7=_0x430ec6[_0x5e3bfe];return _0x117cf7;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x67bd94=_0x117c,_0x2c4bb7={'zuoNY':function(_0x5da6e4){return _0x5da6e4();},'BHeEc':'config.json'};return join(_0x2c4bb7[_0x67bd94(0x1c5)](getRangerDir),_0x2c4bb7['BHeEc']);}export async function loadRangerConfig(){const _0x4b5a83=_0x117c,_0x55c82c={'uqqoD':function(_0x1672a9){return _0x1672a9();},'FiMBN':function(_0x3955b3,_0x554f3e){return _0x3955b3(_0x554f3e);},'GtFWM':function(_0x2f23e6,_0x1b04ec,_0x31174e){return _0x2f23e6(_0x1b04ec,_0x31174e);},'FlAEU':function(_0x2f12ab,_0x5207ad){return _0x2f12ab!==_0x5207ad;},'WuoyJ':_0x4b5a83(0x1ca),'JorDp':function(_0xce27f5,_0x39d75e){return _0xce27f5===_0x39d75e;},'iYnkA':function(_0x515939,_0x3e3228){return _0x515939 instanceof _0x3e3228;},'VtCNQ':function(_0x11da8e,_0x5a4d9e){return _0x11da8e(_0x5a4d9e);}},_0x44bad1=_0x55c82c[_0x4b5a83(0x1be)](getRangerConfigPath);if(!_0x55c82c['FiMBN'](existsSync,_0x44bad1))return{};try{const _0x3de940=await _0x55c82c['GtFWM'](readFile,_0x44bad1,_0x4b5a83(0x1c4)),_0x1037cb=JSON[_0x4b5a83(0x1c8)](_0x3de940);if(!_0x1037cb||_0x55c82c[_0x4b5a83(0x1b5)](typeof _0x1037cb,_0x55c82c['WuoyJ'])||Array[_0x4b5a83(0x1bc)](_0x1037cb))return{};const _0x3ce412={},_0x1b3be6=_0x1037cb[_0x4b5a83(0x1bd)];return _0x55c82c[_0x4b5a83(0x1c9)](typeof _0x1b3be6,_0x4b5a83(0x1ba))&&(_0x3ce412[_0x4b5a83(0x1bd)]=_0x1b3be6),_0x3ce412;}catch(_0x460f7a){const _0x1d399f=_0x55c82c[_0x4b5a83(0x1b9)](_0x460f7a,Error)?_0x460f7a['message']:_0x55c82c['VtCNQ'](String,_0x460f7a);return console[_0x4b5a83(0x1c1)](_0x4b5a83(0x1bb)+_0x44bad1+':\x20'+_0x1d399f),{};}}function _0x430e(){const _0x29a5d4=['warn','32520NTNpkA','3933TtNWqA','utf-8','zuoNY','8594264xRSAZD','10trqAXS','parse','JorDp','object','5435220PNQDOA','FlAEU','1ZBGUjt','29577080YGvEPq','405416WStsUj','iYnkA','string','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','isArray','model','uqqoD','3076101TouhOJ','890426SbKFJT'];_0x430e=function(){return _0x29a5d4;};return _0x430e();}
@@ -1 +1 @@
1
- (function(_0x363712,_0x4a58a3){const _0x13ac61=_0x11fc,_0x43e8bd=_0x363712();while(!![]){try{const _0x8e89a3=parseInt(_0x13ac61(0x9f))/0x1*(parseInt(_0x13ac61(0x93))/0x2)+parseInt(_0x13ac61(0x99))/0x3*(-parseInt(_0x13ac61(0x91))/0x4)+-parseInt(_0x13ac61(0x9c))/0x5*(-parseInt(_0x13ac61(0xa1))/0x6)+-parseInt(_0x13ac61(0xa0))/0x7*(parseInt(_0x13ac61(0x96))/0x8)+-parseInt(_0x13ac61(0x9d))/0x9+parseInt(_0x13ac61(0x95))/0xa*(-parseInt(_0x13ac61(0x9e))/0xb)+parseInt(_0x13ac61(0xa2))/0xc;if(_0x8e89a3===_0x4a58a3)break;else _0x43e8bd['push'](_0x43e8bd['shift']());}catch(_0x4632bb){_0x43e8bd['push'](_0x43e8bd['shift']());}}}(_0x1424,0x43c89));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x1424(){const _0x3f8bdc=['.ranger','525070roJfUx','85784TRfLSa','NSPtO','.git','3WTmRiG','root','KxusV','75YzfANU','4490856srBIbC','110xVuWcB','3JMhBCK','7BszNet','161166CuaFtj','10756704mGQTFB','1360904jdyAFc','sPOAu','235558bNYJQi'];_0x1424=function(){return _0x3f8bdc;};return _0x1424();}export function getRangerRoot(){const _0x4399e0=_0x11fc,_0x1be66b={'KxusV':function(_0x21a4ff,_0x2496f7){return _0x21a4ff(_0x2496f7);},'SMGxX':function(_0x5c9f0a,_0x4f0a3d){return _0x5c9f0a!==_0x4f0a3d;},'uePik':function(_0x3fb2d4,_0xb88164,_0x536b83){return _0x3fb2d4(_0xb88164,_0x536b83);},'LJjZY':'.ranger'};let _0x5c7226=process['cwd']();const _0x50a35f=_0x1be66b['KxusV'](parse,_0x5c7226)[_0x4399e0(0x9a)];while(_0x1be66b['SMGxX'](_0x5c7226,_0x50a35f)){if(existsSync(_0x1be66b['uePik'](join,_0x5c7226,_0x1be66b['LJjZY'])))return _0x5c7226;_0x5c7226=dirname(_0x5c7226);}if(_0x1be66b[_0x4399e0(0x9b)](existsSync,_0x1be66b['uePik'](join,_0x50a35f,_0x1be66b['LJjZY'])))return _0x50a35f;const _0x58b967=findGitRoot();if(_0x58b967)return _0x58b967;return process['cwd']();}function _0x11fc(_0x30784b,_0x4f830f){_0x30784b=_0x30784b-0x91;const _0x1424cd=_0x1424();let _0x11fc6f=_0x1424cd[_0x30784b];return _0x11fc6f;}export function getRangerDir(){const _0x38ed44=_0x11fc,_0x7d5993={'NkfRe':function(_0x7f7b,_0x3cbd6e,_0x5f5c1a){return _0x7f7b(_0x3cbd6e,_0x5f5c1a);}};return _0x7d5993['NkfRe'](join,getRangerRoot(),_0x38ed44(0x94));}export function findGitRoot(){const _0x28c0ec=_0x11fc,_0x3023f4={'sPOAu':function(_0x47a07f,_0x3376a8){return _0x47a07f(_0x3376a8);}};let _0x31ffdc=process['cwd']();const _0x49b69b=parse(_0x31ffdc)['root'];while(_0x31ffdc!==_0x49b69b){if(existsSync(join(_0x31ffdc,_0x28c0ec(0x98))))return _0x31ffdc;_0x31ffdc=_0x3023f4[_0x28c0ec(0x92)](dirname,_0x31ffdc);}if(existsSync(join(_0x49b69b,_0x28c0ec(0x98))))return _0x49b69b;return null;}export function getRangerHomeDir(){const _0x1c0dca=_0x11fc,_0x566826={'tEywT':function(_0x57387a,_0x4410c9,_0x356a52){return _0x57387a(_0x4410c9,_0x356a52);},'NSPtO':function(_0x331c24){return _0x331c24();}};return _0x566826['tEywT'](join,_0x566826[_0x1c0dca(0x97)](homedir),_0x1c0dca(0x94));}
1
+ (function(_0x424fe0,_0x3e9117){const _0xb83a99=_0x227c,_0x18b75a=_0x424fe0();while(!![]){try{const _0x3ba6e8=parseInt(_0xb83a99(0xf3))/0x1+-parseInt(_0xb83a99(0xed))/0x2+parseInt(_0xb83a99(0xe7))/0x3+parseInt(_0xb83a99(0xe9))/0x4*(parseInt(_0xb83a99(0xe8))/0x5)+parseInt(_0xb83a99(0xf2))/0x6*(-parseInt(_0xb83a99(0xf1))/0x7)+parseInt(_0xb83a99(0xf0))/0x8*(-parseInt(_0xb83a99(0xe4))/0x9)+-parseInt(_0xb83a99(0xeb))/0xa;if(_0x3ba6e8===_0x3e9117)break;else _0x18b75a['push'](_0x18b75a['shift']());}catch(_0x40964e){_0x18b75a['push'](_0x18b75a['shift']());}}}(_0x3edd,0xdba3a));function _0x227c(_0x251bea,_0x11e1cf){_0x251bea=_0x251bea-0xdf;const _0x3eddb5=_0x3edd();let _0x227c3e=_0x3eddb5[_0x251bea];return _0x227c3e;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x112f56=_0x227c,_0x4b385c={'fqKej':function(_0x45a62b,_0x1c3348){return _0x45a62b!==_0x1c3348;},'FAXPF':function(_0x1a1daf,_0x279717,_0x1e70e7){return _0x1a1daf(_0x279717,_0x1e70e7);},'xrhHJ':_0x112f56(0xe6)};let _0x229276=process[_0x112f56(0xdf)]();const _0x54660b=parse(_0x229276)['root'];while(_0x4b385c[_0x112f56(0xf5)](_0x229276,_0x54660b)){if(existsSync(_0x4b385c[_0x112f56(0xf6)](join,_0x229276,_0x4b385c[_0x112f56(0xe0)])))return _0x229276;_0x229276=dirname(_0x229276);}if(existsSync(join(_0x54660b,_0x4b385c[_0x112f56(0xe0)])))return _0x54660b;const _0x48ca01=findGitRoot();if(_0x48ca01)return _0x48ca01;return process[_0x112f56(0xdf)]();}export function getRangerDir(){const _0x5aa5ea=_0x227c,_0x36f5aa={'CItCo':function(_0x33faae){return _0x33faae();},'GZXjt':'.ranger'};return join(_0x36f5aa['CItCo'](getRangerRoot),_0x36f5aa[_0x5aa5ea(0xee)]);}function _0x3edd(){const _0x1eca99=['ZLrJH','35576WewcED','2282DGtVls','14088nxzIoM','801676UskgZE','aPsJu','fqKej','FAXPF','cwd','xrhHJ','ookpk','rGSZk','xUkTf','99cuasJe','root','.ranger','4059981cECtKU','2168195pjzJar','8AwvwoQ','.git','8221620mMbsbM','YJiLJ','972224EgoCUJ','GZXjt'];_0x3edd=function(){return _0x1eca99;};return _0x3edd();}export function findGitRoot(){const _0xd28b3c=_0x227c,_0xf03e56={'ookpk':function(_0x5025e4,_0x5ba664){return _0x5025e4!==_0x5ba664;},'ZLrJH':function(_0x35fea4,_0x1f0867){return _0x35fea4(_0x1f0867);},'YJiLJ':function(_0xcc8cbe,_0x13b535,_0x574672){return _0xcc8cbe(_0x13b535,_0x574672);},'xUkTf':'.git'};let _0x3264e6=process[_0xd28b3c(0xdf)]();const _0xeb32d1=parse(_0x3264e6)[_0xd28b3c(0xe5)];while(_0xf03e56[_0xd28b3c(0xe1)](_0x3264e6,_0xeb32d1)){if(existsSync(join(_0x3264e6,_0xd28b3c(0xea))))return _0x3264e6;_0x3264e6=dirname(_0x3264e6);}if(_0xf03e56[_0xd28b3c(0xef)](existsSync,_0xf03e56[_0xd28b3c(0xec)](join,_0xeb32d1,_0xf03e56[_0xd28b3c(0xe3)])))return _0xeb32d1;return null;}export function getRangerHomeDir(){const _0x9a2d40=_0x227c,_0x1893e1={'aPsJu':function(_0xa61946){return _0xa61946();},'rGSZk':'.ranger'};return join(_0x1893e1[_0x9a2d40(0xf4)](homedir),_0x1893e1[_0x9a2d40(0xe2)]);}
@@ -1 +1 @@
1
- function _0x39f5(_0x162a31,_0x208210){_0x162a31=_0x162a31-0xd9;const _0x460e74=_0x460e();let _0x39f5ca=_0x460e74[_0x162a31];return _0x39f5ca;}(function(_0x4a35f3,_0x1f2d74){const _0x2a2e6b=_0x39f5,_0x51bc81=_0x4a35f3();while(!![]){try{const _0x2b97e6=-parseInt(_0x2a2e6b(0xea))/0x1+-parseInt(_0x2a2e6b(0xe7))/0x2+-parseInt(_0x2a2e6b(0xda))/0x3*(parseInt(_0x2a2e6b(0xe6))/0x4)+parseInt(_0x2a2e6b(0xe8))/0x5+-parseInt(_0x2a2e6b(0xdf))/0x6*(-parseInt(_0x2a2e6b(0xe0))/0x7)+parseInt(_0x2a2e6b(0xe4))/0x8*(-parseInt(_0x2a2e6b(0xdc))/0x9)+parseInt(_0x2a2e6b(0xe2))/0xa;if(_0x2b97e6===_0x1f2d74)break;else _0x51bc81['push'](_0x51bc81['shift']());}catch(_0x4053c0){_0x51bc81['push'](_0x51bc81['shift']());}}}(_0x460e,0x2e3f1));function _0x460e(){const _0x2ce9a0=['ms...','lGHob','48lfnQky','312095OIZbti','yWkOd','3210870jogDkL','error','776ayICul','maxRetries','132gNKzgE','653056WnAJqG','1334545pdgQwz','wHtIk','170806DhwAHb','pow','2301hrdMAP','NFHbW','21582hwyzxg'];_0x460e=function(){return _0x2ce9a0;};return _0x460e();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1b4f8a,_0xe9081c){const _0x4a0218=_0x39f5,_0x43c3a8={'wHtIk':function(_0x1f00bb,_0x4f67b1){return _0x1f00bb instanceof _0x4f67b1;},'lGHob':function(_0xfc0921,_0x4487c3){return _0xfc0921(_0x4487c3);},'NFHbW':function(_0x5ce07b,_0x3c9522){return _0x5ce07b*_0x3c9522;},'yWkOd':function(_0x1a2787,_0x500b85){return _0x1a2787+_0x500b85;}},_0x2aef7d=_0xe9081c?.[_0x4a0218(0xe5)]??DEFAULT_MAX_RETRIES,_0x5e2bf4=_0xe9081c?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0xd97446;for(let _0x4326e3=0x0;_0x4326e3<=_0x2aef7d;_0x4326e3++){try{return await _0x1b4f8a();}catch(_0x29dd8e){_0xd97446=_0x43c3a8[_0x4a0218(0xe9)](_0x29dd8e,Error)?_0x29dd8e:new Error(_0x43c3a8[_0x4a0218(0xde)](String,_0x29dd8e));if(_0x4326e3<_0x2aef7d){const _0x437927=_0x43c3a8[_0x4a0218(0xdb)](_0x5e2bf4,Math[_0x4a0218(0xd9)](0x2,_0x4326e3));_0xe9081c?.['label']&&console[_0x4a0218(0xe3)](_0xe9081c['label']+'\x20failed\x20(attempt\x20'+_0x43c3a8[_0x4a0218(0xe1)](_0x4326e3,0x1)+'/'+_0x43c3a8[_0x4a0218(0xe1)](_0x2aef7d,0x1)+'),\x20retrying\x20in\x20'+_0x437927+_0x4a0218(0xdd)),await new Promise(_0x54a8cf=>setTimeout(_0x54a8cf,_0x437927));}}}throw _0xd97446;}
1
+ function _0x373e(_0x3a169c,_0x385807){_0x3a169c=_0x3a169c-0xf9;const _0x1dff78=_0x1dff();let _0x373e60=_0x1dff78[_0x3a169c];return _0x373e60;}(function(_0x4980a9,_0xc2a748){const _0x196a66=_0x373e,_0x2929b1=_0x4980a9();while(!![]){try{const _0x1d1384=-parseInt(_0x196a66(0xfc))/0x1*(parseInt(_0x196a66(0xfe))/0x2)+parseInt(_0x196a66(0xff))/0x3+parseInt(_0x196a66(0x106))/0x4*(-parseInt(_0x196a66(0x105))/0x5)+-parseInt(_0x196a66(0xf9))/0x6+parseInt(_0x196a66(0xfa))/0x7+-parseInt(_0x196a66(0x103))/0x8*(-parseInt(_0x196a66(0xfd))/0x9)+-parseInt(_0x196a66(0x100))/0xa*(parseInt(_0x196a66(0x104))/0xb);if(_0x1d1384===_0xc2a748)break;else _0x2929b1['push'](_0x2929b1['shift']());}catch(_0x52b957){_0x2929b1['push'](_0x2929b1['shift']());}}}(_0x1dff,0x89419));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1dff(){const _0x38f6e7=['5812504JgWlRf','77nxTSnZ','45zMGSBw','156192XOewAh','3331530DWsozq','6127478KVbLNh','label','6454xxTMyb','9IKuWlK','174iHeEjO','1498935GEheHf','101680sElSVb','ms...','\x20failed\x20(attempt\x20'];_0x1dff=function(){return _0x38f6e7;};return _0x1dff();}export async function withRetry(_0x2cb9a8,_0x293fe0){const _0xd0a630=_0x373e,_0x35306f={'JCUwl':function(_0x287631,_0x1913f5){return _0x287631<=_0x1913f5;},'mQblG':function(_0x21b699,_0x10e61d){return _0x21b699<_0x10e61d;},'SGouD':function(_0x1403e0,_0x281899){return _0x1403e0*_0x281899;},'yvonO':function(_0x40599a,_0x524a98){return _0x40599a+_0x524a98;}},_0x32c01c=_0x293fe0?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4eebb9=_0x293fe0?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x179ae2;for(let _0x1e5eb4=0x0;_0x35306f['JCUwl'](_0x1e5eb4,_0x32c01c);_0x1e5eb4++){try{return await _0x2cb9a8();}catch(_0x5270c6){_0x179ae2=_0x5270c6 instanceof Error?_0x5270c6:new Error(String(_0x5270c6));if(_0x35306f['mQblG'](_0x1e5eb4,_0x32c01c)){const _0x15323e=_0x35306f['SGouD'](_0x4eebb9,Math['pow'](0x2,_0x1e5eb4));_0x293fe0?.[_0xd0a630(0xfb)]&&console['error'](_0x293fe0['label']+_0xd0a630(0x102)+(_0x1e5eb4+0x1)+'/'+_0x35306f['yvonO'](_0x32c01c,0x1)+'),\x20retrying\x20in\x20'+_0x15323e+_0xd0a630(0x101)),await new Promise(_0x3985e7=>setTimeout(_0x3985e7,_0x15323e));}}}throw _0x179ae2;}
@@ -1 +1 @@
1
- const _0x4ce9be=_0x5a6c;(function(_0x194c09,_0x16c2ee){const _0x1dfb96=_0x5a6c,_0xfb0459=_0x194c09();while(!![]){try{const _0x50b4fd=-parseInt(_0x1dfb96(0x153))/0x1+parseInt(_0x1dfb96(0x144))/0x2+-parseInt(_0x1dfb96(0x154))/0x3*(-parseInt(_0x1dfb96(0x162))/0x4)+parseInt(_0x1dfb96(0x151))/0x5+-parseInt(_0x1dfb96(0x146))/0x6*(-parseInt(_0x1dfb96(0x143))/0x7)+parseInt(_0x1dfb96(0x155))/0x8+-parseInt(_0x1dfb96(0x14e))/0x9;if(_0x50b4fd===_0x16c2ee)break;else _0xfb0459['push'](_0xfb0459['shift']());}catch(_0x459aa8){_0xfb0459['push'](_0xfb0459['shift']());}}}(_0x7f60,0xc7161));import*as _0x29ec63 from'fs';import*as _0x52927b from'path';import*as _0x4af9c7 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x52927b['join'](_0x4af9c7['homedir'](),'.claude',_0x4ce9be(0x158));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5d2897=_0x4ce9be,_0xf97ad2={'vvKQT':'utf-8'};try{if(_0x29ec63['existsSync'](CACHE_FILE)){const _0x50d661=JSON[_0x5d2897(0x148)](_0x29ec63[_0x5d2897(0x14a)](CACHE_FILE,_0xf97ad2['vvKQT']));return{'version':0x3,'sessions':_0x50d661[_0x5d2897(0x13f)]||{},'branches':_0x50d661[_0x5d2897(0x141)]||{},'lastEnabledSessionClearedAt':_0x50d661['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xcb21b9){const _0x5baa13=_0x4ce9be;try{const _0x3d0b7a=_0x52927b[_0x5baa13(0x14b)](CACHE_FILE);!_0x29ec63[_0x5baa13(0x14d)](_0x3d0b7a)&&_0x29ec63[_0x5baa13(0x142)](_0x3d0b7a,{'recursive':!![]}),_0x29ec63['writeFileSync'](CACHE_FILE,JSON[_0x5baa13(0x15c)](_0xcb21b9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2ea05a=_0x4ce9be,_0x45dedc={'NfpMk':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ghlDu':_0x2ea05a(0x160)};try{const _0xa5f4cb=execSync(_0x45dedc['NfpMk'],{'encoding':'utf-8','stdio':[_0x2ea05a(0x160),_0x45dedc['ghlDu'],'pipe']})[_0x2ea05a(0x149)]();if(!_0xa5f4cb||_0xa5f4cb==='HEAD')return null;return _0xa5f4cb;}catch{return null;}}function _0x7f60(){const _0xdb10da=['180664pibZqD','wpgNC','2595354fhSVyN','main','parse','trim','readFileSync','dirname','Qotwa','existsSync','10974105lILsJu','lastPlanReminderAt','lastEnabledSessionClearedAt','7444655apkSPR','LwkwN','1073397VHGBDd','3BrdaKu','960432gshxrw','XlOkf','fPBid','.ranger_cache.json','registeredAt','clear','pezOt','stringify','enabled','master','now','pipe','HKAYP','3905292zcEhZW','SdctY','sYXOz','currentBranch','GlLIM','lvjel','sessions','featureId','branches','mkdirSync','7iIjJdJ'];_0x7f60=function(){return _0xdb10da;};return _0x7f60();}export function enableBranch(_0x3a1f56){const _0x29b019=_0x4ce9be,_0xe9b4ba={'OjTII':function(_0x503d83){return _0x503d83();}},_0x510d28=_0xe9b4ba['OjTII'](loadCache);_0x510d28[_0x29b019(0x141)][_0x3a1f56]=!![],saveCache(_0x510d28);}export function disableBranch(_0x456456){const _0x29b889=_0x4ce9be,_0x9856f8={'XlOkf':function(_0xa57d1){return _0xa57d1();},'EqrcC':function(_0x1dd753,_0x50f486){return _0x1dd753(_0x50f486);}},_0x12a09b=_0x9856f8[_0x29b889(0x156)](loadCache);delete _0x12a09b['branches'][_0x456456],_0x9856f8['EqrcC'](saveCache,_0x12a09b);}export function isBranchEnabled(_0x1c5d06){const _0x536d44=_0x4ce9be,_0x4c1303={'HKAYP':function(_0xe34687){return _0xe34687();}},_0x8136e6=_0x4c1303[_0x536d44(0x161)](loadCache);return _0x8136e6['branches'][_0x1c5d06]===!![];}function getOrCreateSession(_0x38357e,_0x2f65f9){const _0x1c1c03=_0x4ce9be;return!_0x38357e['sessions'][_0x2f65f9]&&(_0x38357e[_0x1c1c03(0x13f)][_0x2f65f9]={}),_0x38357e['sessions'][_0x2f65f9];}export function enableSession(_0x387521){const _0x2a5f00=_0x4ce9be,_0x14ee3f={'vllbm':function(_0x12c2d2,_0x512113){return _0x12c2d2!==_0x512113;},'lwrgN':_0x2a5f00(0x147)},_0x1f0821=loadCache(),_0x415761=getOrCreateSession(_0x1f0821,_0x387521);_0x415761[_0x2a5f00(0x15d)]=!![];const _0x6f6019=getCurrentBranch();_0x6f6019&&_0x14ee3f['vllbm'](_0x6f6019,_0x14ee3f['lwrgN'])&&_0x6f6019!=='master'&&(_0x1f0821['branches'][_0x6f6019]=!![],_0x415761[_0x2a5f00(0x165)]=_0x6f6019),saveCache(_0x1f0821);}export function isSessionEnabled(_0x4fd747){const _0x4163f7=_0x4ce9be,_0xbced9a={'lvjel':function(_0x9de75b){return _0x9de75b();},'Qotwa':function(_0x32ccda,_0x123d17){return _0x32ccda===_0x123d17;},'Nqwej':_0x4163f7(0x15e),'NPYmO':function(_0x5953c2,_0x26271a){return _0x5953c2===_0x26271a;},'JRWVc':function(_0x143f0a,_0x446ac4){return _0x143f0a||_0x446ac4;}},_0x109762=loadCache(),_0x30f0af=_0xbced9a[_0x4163f7(0x167)](getCurrentBranch);if(!_0x30f0af||_0x30f0af==='main'||_0xbced9a['Qotwa'](_0x30f0af,_0xbced9a['Nqwej']))return _0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)]===!![];const _0x1526da=_0xbced9a[_0x4163f7(0x14c)](_0x109762['branches'][_0x30f0af],!![]),_0x3c1a67=_0xbced9a['NPYmO'](_0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)],!![]);return _0xbced9a['JRWVc'](_0x1526da,_0x3c1a67);}export function disableSession(_0x521032){const _0x409816=_0x4ce9be,_0x6ac25d={'uiKqA':function(_0x16cb72,_0x430c5a,_0x6be296){return _0x16cb72(_0x430c5a,_0x6be296);}},_0x4613f4=loadCache(),_0x347d4b=_0x6ac25d['uiKqA'](getOrCreateSession,_0x4613f4,_0x521032);_0x347d4b[_0x409816(0x15d)]=![],saveCache(_0x4613f4);}export function updateBranchTracking(_0xc2f214){const _0x29a98e=_0x4ce9be,_0x5a576e={'iNrrG':function(_0x2b6682){return _0x2b6682();},'wpgNC':_0x29a98e(0x147),'pfUFE':'master'},_0x373545=_0x5a576e['iNrrG'](loadCache),_0x47d6f9=_0x373545['sessions'][_0xc2f214];if(!_0x47d6f9?.['enabled'])return;const _0x448fa6=_0x5a576e['iNrrG'](getCurrentBranch);if(!_0x448fa6||_0x448fa6===_0x5a576e[_0x29a98e(0x145)]||_0x448fa6===_0x5a576e['pfUFE'])return;_0x47d6f9['currentBranch']!==_0x448fa6&&(_0x373545[_0x29a98e(0x141)][_0x448fa6]=!![],_0x47d6f9['currentBranch']=_0x448fa6,saveCache(_0x373545));}export function initBranchTracking(_0x5071bd){const _0x513f1b=_0x4ce9be,_0x3ea30d={'fPBid':_0x513f1b(0x147),'SdctY':function(_0x248acd,_0x20cbe7){return _0x248acd===_0x20cbe7;},'Bnixd':function(_0x46ee9b,_0xb3edd1,_0x4ee6c6){return _0x46ee9b(_0xb3edd1,_0x4ee6c6);}},_0x58234a=loadCache(),_0x159345=getCurrentBranch();if(!_0x159345||_0x159345===_0x3ea30d[_0x513f1b(0x157)]||_0x3ea30d[_0x513f1b(0x163)](_0x159345,'master'))return;if(_0x58234a[_0x513f1b(0x141)][_0x159345]===!![]){const _0xe26a3c=_0x3ea30d['Bnixd'](getOrCreateSession,_0x58234a,_0x5071bd);_0xe26a3c[_0x513f1b(0x15d)]=!![],_0xe26a3c[_0x513f1b(0x165)]=_0x159345,saveCache(_0x58234a);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x49ea32){const _0x15faf8=_0x4ce9be,_0x5374cc={'nffhz':function(_0x5ef4bb,_0xccbd30){return _0x5ef4bb(_0xccbd30);}},_0x2409f4=loadCache(),_0x349189=_0x2409f4[_0x15faf8(0x13f)][_0x49ea32];_0x349189?.[_0x15faf8(0x15d)]&&(_0x2409f4[_0x15faf8(0x150)]=Date[_0x15faf8(0x15f)](),_0x5374cc['nffhz'](saveCache,_0x2409f4));}export function shouldAutoEnableAfterClear(_0x3063d2){const _0x527956=_0x4ce9be,_0x42a9c6={'WLfMV':_0x527956(0x15a)};if(_0x3063d2!==_0x42a9c6['WLfMV'])return![];const _0x5f07c0=loadCache(),_0x63eb37=_0x5f07c0['lastEnabledSessionClearedAt'];if(!_0x63eb37)return![];const _0x19bf91=Date[_0x527956(0x15f)]()-_0x63eb37;return _0x19bf91<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x4dc80e){const _0x40e606=_0x4ce9be,_0x33c4ac={'IXghe':function(_0x1ccb20){return _0x1ccb20();},'qwEgc':function(_0x3c3c23,_0xdc470e,_0x2e0840){return _0x3c3c23(_0xdc470e,_0x2e0840);},'pezOt':function(_0x1351ed,_0x23b981){return _0x1351ed!==_0x23b981;},'sYXOz':function(_0x5dea62,_0x2a5309){return _0x5dea62(_0x2a5309);}},_0x3dbc7b=_0x33c4ac['IXghe'](loadCache),_0x194cef=_0x33c4ac['qwEgc'](getOrCreateSession,_0x3dbc7b,_0x4dc80e);_0x194cef['enabled']=!![];const _0x3c3986=getCurrentBranch();_0x3c3986&&_0x33c4ac[_0x40e606(0x15b)](_0x3c3986,'main')&&_0x3c3986!=='master'&&(_0x194cef[_0x40e606(0x165)]=_0x3c3986),delete _0x3dbc7b[_0x40e606(0x150)],_0x33c4ac[_0x40e606(0x164)](saveCache,_0x3dbc7b);}export function registerSession(_0x161295,_0x16d4d0){const _0x345041=_0x4ce9be,_0x58ebfa={'oOkrB':function(_0x49d68e){return _0x49d68e();}},_0x3144f8=_0x58ebfa['oOkrB'](loadCache),_0x319d27=getOrCreateSession(_0x3144f8,_0x161295);_0x319d27['featureId']=_0x16d4d0,_0x319d27[_0x345041(0x159)]=new Date()['toISOString'](),saveCache(_0x3144f8);}function _0x5a6c(_0x6195e9,_0x125cc1){_0x6195e9=_0x6195e9-0x13f;const _0x7f60d4=_0x7f60();let _0x5a6ce5=_0x7f60d4[_0x6195e9];return _0x5a6ce5;}export function getSessionEntry(_0x3379ca){const _0x28cb1a=_0x4ce9be,_0x3153ff=loadCache(),_0xacaf6=_0x3153ff[_0x28cb1a(0x13f)][_0x3379ca];if(_0xacaf6?.['featureId']&&_0xacaf6?.[_0x28cb1a(0x159)])return{'featureId':_0xacaf6['featureId'],'registeredAt':_0xacaf6[_0x28cb1a(0x159)]};return null;}export function unregisterSession(_0x2ae2f5){const _0x5337ff=_0x4ce9be,_0x3b754f=loadCache(),_0x12c4b5=_0x3b754f[_0x5337ff(0x13f)][_0x2ae2f5];_0x12c4b5&&(delete _0x12c4b5[_0x5337ff(0x140)],delete _0x12c4b5[_0x5337ff(0x159)],saveCache(_0x3b754f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5484cc){const _0x35ec6f=_0x4ce9be,_0x15cdc1={'kWyop':function(_0x5a4176,_0x58838d,_0x1e1a43){return _0x5a4176(_0x58838d,_0x1e1a43);},'IDnAd':function(_0x2f3600,_0x4ab640){return _0x2f3600-_0x4ab640;},'JsLAv':function(_0x3ff452,_0x181581){return _0x3ff452(_0x181581);}},_0x1ddb50=loadCache(),_0x3ecada=_0x15cdc1['kWyop'](getOrCreateSession,_0x1ddb50,_0x5484cc),_0x37cbd6=_0x3ecada['lastPlanReminderAt']||0x0,_0x2fe2d8=Date[_0x35ec6f(0x15f)]();if(_0x15cdc1['IDnAd'](_0x2fe2d8,_0x37cbd6)>=PLAN_REMINDER_INTERVAL_MS)return _0x3ecada[_0x35ec6f(0x14f)]=_0x2fe2d8,_0x15cdc1['JsLAv'](saveCache,_0x1ddb50),!![];return![];}export function shouldShowStopReminder(_0x574160){const _0x531e28={'zuEKc':function(_0x1401d9,_0x2007d2){return _0x1401d9-_0x2007d2;},'yNyvJ':function(_0x4e0299,_0x365c92){return _0x4e0299(_0x365c92);}},_0x392fb7=loadCache(),_0x56eebc=getOrCreateSession(_0x392fb7,_0x574160),_0xefaf08=_0x56eebc['lastStopReminderAt']||0x0,_0x36fbeb=Date['now']();if(_0x531e28['zuEKc'](_0x36fbeb,_0xefaf08)>=STOP_REMINDER_INTERVAL_MS)return _0x56eebc['lastStopReminderAt']=_0x36fbeb,_0x531e28['yNyvJ'](saveCache,_0x392fb7),!![];return![];}export function hasSessionBeenPrompted(_0x5296de){const _0xf4ad6e=_0x4ce9be,_0x5d6b76={'GlLIM':function(_0x712610,_0x1e2779){return _0x712610===_0x1e2779;}},_0x32ad54=loadCache();return _0x5d6b76[_0xf4ad6e(0x166)](_0x32ad54['sessions'][_0x5296de]?.['prompted'],!![]);}export function markSessionPrompted(_0x86537e){const _0x48b30d=_0x4ce9be,_0x45ae32={'SbFCN':function(_0x48af73){return _0x48af73();},'LwkwN':function(_0x12c701,_0x4dd465,_0x4764d1){return _0x12c701(_0x4dd465,_0x4764d1);}},_0x4e9c39=_0x45ae32['SbFCN'](loadCache),_0x141a5f=_0x45ae32[_0x48b30d(0x152)](getOrCreateSession,_0x4e9c39,_0x86537e);_0x141a5f['prompted']=!![],saveCache(_0x4e9c39);}export function getCacheFile(){return CACHE_FILE;}
1
+ (function(_0xb68f5c,_0x4bf02e){const _0x57363a=_0xb547,_0xfc208e=_0xb68f5c();while(!![]){try{const _0xd5e899=parseInt(_0x57363a(0x11c))/0x1*(parseInt(_0x57363a(0x12b))/0x2)+-parseInt(_0x57363a(0x12e))/0x3+parseInt(_0x57363a(0x131))/0x4*(-parseInt(_0x57363a(0x14e))/0x5)+parseInt(_0x57363a(0x120))/0x6*(parseInt(_0x57363a(0x14a))/0x7)+-parseInt(_0x57363a(0x139))/0x8*(-parseInt(_0x57363a(0x141))/0x9)+parseInt(_0x57363a(0x14f))/0xa*(parseInt(_0x57363a(0x145))/0xb)+parseInt(_0x57363a(0x11d))/0xc*(-parseInt(_0x57363a(0x14c))/0xd);if(_0xd5e899===_0x4bf02e)break;else _0xfc208e['push'](_0xfc208e['shift']());}catch(_0x4bc179){_0xfc208e['push'](_0xfc208e['shift']());}}}(_0x1b7f,0xd2abd));import*as _0x251069 from'fs';import*as _0x1bba8b from'path';import*as _0x537558 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1bba8b['join'](_0x537558['homedir'](),'.claude','.ranger_cache.json');function _0xb547(_0x52fa5a,_0x530ed2){_0x52fa5a=_0x52fa5a-0x11b;const _0x1b7f89=_0x1b7f();let _0xb54746=_0x1b7f89[_0x52fa5a];return _0xb54746;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5e3691=_0xb547,_0x340ee1={'XXtqP':function(_0x1f246c){return _0x1f246c();}};try{if(_0x251069[_0x5e3691(0x148)](CACHE_FILE)){const _0x564275=JSON['parse'](_0x251069[_0x5e3691(0x12f)](CACHE_FILE,_0x5e3691(0x149)));return{'version':0x3,'sessions':_0x564275[_0x5e3691(0x123)]||{},'branches':_0x564275[_0x5e3691(0x150)]||{},'lastEnabledSessionClearedAt':_0x564275[_0x5e3691(0x136)]};}}catch{}return _0x340ee1['XXtqP'](createEmptyCache);}function saveCache(_0x3046e9){const _0x367b0d=_0xb547;try{const _0xc075cc=_0x1bba8b['dirname'](CACHE_FILE);!_0x251069[_0x367b0d(0x148)](_0xc075cc)&&_0x251069[_0x367b0d(0x11e)](_0xc075cc,{'recursive':!![]}),_0x251069['writeFileSync'](CACHE_FILE,JSON[_0x367b0d(0x122)](_0x3046e9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x22dd4c=_0xb547,_0x1d4450={'heFzq':function(_0x36b9dd,_0x4f246e,_0x58f999){return _0x36b9dd(_0x4f246e,_0x58f999);},'cZbbs':'utf-8','CtZzg':'pipe'};try{const _0x49e6ff=_0x1d4450['heFzq'](execSync,_0x22dd4c(0x144),{'encoding':_0x1d4450[_0x22dd4c(0x12a)],'stdio':['pipe',_0x1d4450['CtZzg'],_0x22dd4c(0x135)]})[_0x22dd4c(0x13c)]();if(!_0x49e6ff||_0x49e6ff==='HEAD')return null;return _0x49e6ff;}catch{return null;}}function _0x1b7f(){const _0x1b4d30=['4FwNUsq','IpJuc','WhKDj','4314414uEDycu','readFileSync','enabled','4NxHqjg','prompted','registeredAt','dJOSQ','pipe','lastEnabledSessionClearedAt','CnAuY','cXveT','8QMqpPc','naUjh','MqOys','trim','TNCaa','rGqbt','WKsEQ','now','4931505bNXkkB','lastPlanReminderAt','kfUFI','git\x20rev-parse\x20--abbrev-ref\x20HEAD','49753loRhPA','yuKpy','XIaGe','existsSync','utf-8','18242RFvcZy','currentBranch','26azVFbI','master','1576550zULisk','2900XuAQLq','branches','DOeIa','kdFaG','abkQO','IHCOg','597676XoZJVV','10950012PLUsMF','mkdirSync','dgmbs','3192MBbNfU','lastStopReminderAt','stringify','sessions','ZHdCh','hOiqV','main','bItji','featureId','aZdJk','cZbbs'];_0x1b7f=function(){return _0x1b4d30;};return _0x1b7f();}export function enableBranch(_0x496f21){const _0x253835=_0xb547,_0x1d4537={'abkQO':function(_0x3bba67){return _0x3bba67();},'dJOSQ':function(_0x13ff24,_0xc91922){return _0x13ff24(_0xc91922);}},_0x395d37=_0x1d4537[_0x253835(0x153)](loadCache);_0x395d37[_0x253835(0x150)][_0x496f21]=!![],_0x1d4537[_0x253835(0x134)](saveCache,_0x395d37);}export function disableBranch(_0xbf0022){const _0x30c234=_0xb547,_0x4645ce={'CfLZe':function(_0x2d1167,_0x5f2290){return _0x2d1167(_0x5f2290);}},_0x3c764b=loadCache();delete _0x3c764b[_0x30c234(0x150)][_0xbf0022],_0x4645ce['CfLZe'](saveCache,_0x3c764b);}export function isBranchEnabled(_0xb63fa8){const _0x1571e4=_0xb547,_0x20c385={'naUjh':function(_0x1a2e81,_0x5ecd47){return _0x1a2e81===_0x5ecd47;}},_0x44b6b9=loadCache();return _0x20c385[_0x1571e4(0x13a)](_0x44b6b9[_0x1571e4(0x150)][_0xb63fa8],!![]);}function getOrCreateSession(_0x4d643c,_0x3acc79){return!_0x4d643c['sessions'][_0x3acc79]&&(_0x4d643c['sessions'][_0x3acc79]={}),_0x4d643c['sessions'][_0x3acc79];}export function enableSession(_0x45693a){const _0x2e1c41=_0xb547,_0x1ab823={'ZHdCh':function(_0x10b291,_0x120bd2,_0x4d0047){return _0x10b291(_0x120bd2,_0x4d0047);},'yQsHg':function(_0x4e6851,_0x35ca68){return _0x4e6851!==_0x35ca68;}},_0x1faada=loadCache(),_0x11e53e=_0x1ab823[_0x2e1c41(0x124)](getOrCreateSession,_0x1faada,_0x45693a);_0x11e53e[_0x2e1c41(0x130)]=!![];const _0x4ae275=getCurrentBranch();_0x4ae275&&_0x1ab823['yQsHg'](_0x4ae275,'main')&&_0x1ab823['yQsHg'](_0x4ae275,'master')&&(_0x1faada[_0x2e1c41(0x150)][_0x4ae275]=!![],_0x11e53e['currentBranch']=_0x4ae275),saveCache(_0x1faada);}export function isSessionEnabled(_0x211350){const _0xf49431=_0xb547,_0x55effe={'yuKpy':function(_0x18c33a){return _0x18c33a();},'bItji':'main','IHCOg':function(_0x4b5955,_0x4495dd){return _0x4b5955===_0x4495dd;}},_0x4f948a=loadCache(),_0x384983=_0x55effe[_0xf49431(0x146)](getCurrentBranch);if(!_0x384983||_0x384983===_0x55effe[_0xf49431(0x127)]||_0x384983==='master')return _0x55effe['IHCOg'](_0x4f948a[_0xf49431(0x123)][_0x211350]?.[_0xf49431(0x130)],!![]);const _0x3a87cf=_0x4f948a['branches'][_0x384983]===!![],_0x1b3de2=_0x55effe[_0xf49431(0x11b)](_0x4f948a[_0xf49431(0x123)][_0x211350]?.[_0xf49431(0x130)],!![]);return _0x3a87cf||_0x1b3de2;}export function disableSession(_0x163fb4){const _0x541138=_0xb547,_0x2dfcc9={'rGqbt':function(_0x5e50d8){return _0x5e50d8();},'QbhFK':function(_0x127454,_0x576fbd){return _0x127454(_0x576fbd);}},_0x3fc0d8=_0x2dfcc9[_0x541138(0x13e)](loadCache),_0x1db8e6=getOrCreateSession(_0x3fc0d8,_0x163fb4);_0x1db8e6[_0x541138(0x130)]=![],_0x2dfcc9['QbhFK'](saveCache,_0x3fc0d8);}export function updateBranchTracking(_0x5e179a){const _0x405990=_0xb547,_0x4af3a6={'MqOys':function(_0x572693){return _0x572693();},'IpJuc':function(_0x5bd5b9,_0x5c3ce0){return _0x5bd5b9===_0x5c3ce0;},'xbwzO':_0x405990(0x14d),'GxzGr':function(_0x366f42,_0x894a8c){return _0x366f42!==_0x894a8c;}},_0x8f538d=_0x4af3a6[_0x405990(0x13b)](loadCache),_0x42f8a7=_0x8f538d[_0x405990(0x123)][_0x5e179a];if(!_0x42f8a7?.['enabled'])return;const _0x4354d5=_0x4af3a6[_0x405990(0x13b)](getCurrentBranch);if(!_0x4354d5||_0x4af3a6[_0x405990(0x12c)](_0x4354d5,_0x405990(0x126))||_0x4354d5===_0x4af3a6['xbwzO'])return;_0x4af3a6['GxzGr'](_0x42f8a7['currentBranch'],_0x4354d5)&&(_0x8f538d['branches'][_0x4354d5]=!![],_0x42f8a7['currentBranch']=_0x4354d5,saveCache(_0x8f538d));}export function initBranchTracking(_0x2957cc){const _0x135261=_0xb547,_0x5812e9={'dsJsC':function(_0x486cd2){return _0x486cd2();},'ywIKB':function(_0x366a2d,_0x525acb){return _0x366a2d===_0x525acb;},'twHnk':function(_0x3d49e1,_0x47f9ba){return _0x3d49e1(_0x47f9ba);}},_0x34d328=_0x5812e9['dsJsC'](loadCache),_0x5befac=_0x5812e9['dsJsC'](getCurrentBranch);if(!_0x5befac||_0x5812e9['ywIKB'](_0x5befac,_0x135261(0x126))||_0x5befac==='master')return;if(_0x34d328[_0x135261(0x150)][_0x5befac]===!![]){const _0x241d4f=getOrCreateSession(_0x34d328,_0x2957cc);_0x241d4f[_0x135261(0x130)]=!![],_0x241d4f[_0x135261(0x14b)]=_0x5befac,_0x5812e9['twHnk'](saveCache,_0x34d328);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x393afc){const _0x2174b1=_0xb547,_0x35423f={'ZevFJ':function(_0x3ea7bb){return _0x3ea7bb();},'WhKDj':function(_0x40f30a,_0x3f738a){return _0x40f30a(_0x3f738a);}},_0x422551=_0x35423f['ZevFJ'](loadCache),_0x25a72c=_0x422551['sessions'][_0x393afc];_0x25a72c?.['enabled']&&(_0x422551['lastEnabledSessionClearedAt']=Date[_0x2174b1(0x140)](),_0x35423f[_0x2174b1(0x12d)](saveCache,_0x422551));}export function shouldAutoEnableAfterClear(_0x1e7a4e){const _0x1a09a4=_0xb547,_0x55b1dd={'gxUYj':'clear','iBkGa':function(_0x39e0d6){return _0x39e0d6();}};if(_0x1e7a4e!==_0x55b1dd['gxUYj'])return![];const _0x42ede9=_0x55b1dd['iBkGa'](loadCache),_0x4efe96=_0x42ede9[_0x1a09a4(0x136)];if(!_0x4efe96)return![];const _0x3d4a08=Date['now']()-_0x4efe96;return _0x3d4a08<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x498013){const _0x541f18=_0xb547,_0x3612e7={'CnAuY':function(_0x5d3bf9){return _0x5d3bf9();},'hOiqV':function(_0x2bbdd6,_0x5f3d76,_0x182b78){return _0x2bbdd6(_0x5f3d76,_0x182b78);},'hqsFq':function(_0x3f99bd,_0x13887a){return _0x3f99bd!==_0x13887a;},'aZdJk':'master','kdFaG':function(_0x33e578,_0x244b9d){return _0x33e578(_0x244b9d);}},_0x414999=_0x3612e7[_0x541f18(0x137)](loadCache),_0x15ec1f=_0x3612e7[_0x541f18(0x125)](getOrCreateSession,_0x414999,_0x498013);_0x15ec1f['enabled']=!![];const _0x532451=getCurrentBranch();_0x532451&&_0x532451!==_0x541f18(0x126)&&_0x3612e7['hqsFq'](_0x532451,_0x3612e7[_0x541f18(0x129)])&&(_0x15ec1f[_0x541f18(0x14b)]=_0x532451),delete _0x414999['lastEnabledSessionClearedAt'],_0x3612e7[_0x541f18(0x152)](saveCache,_0x414999);}export function registerSession(_0x6496c9,_0x7b2b9e){const _0x520200=_0xb547,_0x2f08bd={'cXveT':function(_0x55fcc7){return _0x55fcc7();},'qWsoI':function(_0x67fb8e,_0x3936e1,_0xd512b9){return _0x67fb8e(_0x3936e1,_0xd512b9);},'XIaGe':function(_0x3ff9ed,_0x2cd1e4){return _0x3ff9ed(_0x2cd1e4);}},_0x2121a3=_0x2f08bd[_0x520200(0x138)](loadCache),_0x46e110=_0x2f08bd['qWsoI'](getOrCreateSession,_0x2121a3,_0x6496c9);_0x46e110['featureId']=_0x7b2b9e,_0x46e110['registeredAt']=new Date()['toISOString'](),_0x2f08bd[_0x520200(0x147)](saveCache,_0x2121a3);}export function getSessionEntry(_0x3f44e2){const _0x322d24=_0xb547,_0x3ef84c={'IOdRz':function(_0x1dffe1){return _0x1dffe1();}},_0x54dc69=_0x3ef84c['IOdRz'](loadCache),_0x52be8f=_0x54dc69['sessions'][_0x3f44e2];if(_0x52be8f?.['featureId']&&_0x52be8f?.['registeredAt'])return{'featureId':_0x52be8f[_0x322d24(0x128)],'registeredAt':_0x52be8f['registeredAt']};return null;}export function unregisterSession(_0xc9c234){const _0x5e3699=_0xb547,_0x511f1d={'TNCaa':function(_0x45245d,_0x5d5a9e){return _0x45245d(_0x5d5a9e);}},_0x960ba9=loadCache(),_0x546cd6=_0x960ba9['sessions'][_0xc9c234];_0x546cd6&&(delete _0x546cd6[_0x5e3699(0x128)],delete _0x546cd6[_0x5e3699(0x133)],_0x511f1d[_0x5e3699(0x13d)](saveCache,_0x960ba9));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2b7906){const _0x3fc63b=_0xb547,_0x3f63fd={'dgmbs':function(_0xd49e96,_0x33d924,_0x598ce1){return _0xd49e96(_0x33d924,_0x598ce1);},'DOeIa':function(_0x3e6546,_0x16eb99){return _0x3e6546>=_0x16eb99;},'kfUFI':function(_0x25378b,_0x5256d0){return _0x25378b-_0x5256d0;},'dpBiB':function(_0xfd300f,_0x12aef9){return _0xfd300f(_0x12aef9);}},_0x57e2da=loadCache(),_0x44d78d=_0x3f63fd[_0x3fc63b(0x11f)](getOrCreateSession,_0x57e2da,_0x2b7906),_0x32eac3=_0x44d78d[_0x3fc63b(0x142)]||0x0,_0x530277=Date[_0x3fc63b(0x140)]();if(_0x3f63fd[_0x3fc63b(0x151)](_0x3f63fd[_0x3fc63b(0x143)](_0x530277,_0x32eac3),PLAN_REMINDER_INTERVAL_MS))return _0x44d78d['lastPlanReminderAt']=_0x530277,_0x3f63fd['dpBiB'](saveCache,_0x57e2da),!![];return![];}export function shouldShowStopReminder(_0x31baf8){const _0x31eb73=_0xb547,_0x2be185={'WKsEQ':function(_0x2dbbc7,_0x41b034,_0x10b3f2){return _0x2dbbc7(_0x41b034,_0x10b3f2);},'LSRWc':function(_0x5ec8f2,_0x15370a){return _0x5ec8f2(_0x15370a);}},_0x1adc05=loadCache(),_0x4acd2f=_0x2be185[_0x31eb73(0x13f)](getOrCreateSession,_0x1adc05,_0x31baf8),_0x62fb49=_0x4acd2f[_0x31eb73(0x121)]||0x0,_0x444949=Date[_0x31eb73(0x140)]();if(_0x444949-_0x62fb49>=STOP_REMINDER_INTERVAL_MS)return _0x4acd2f[_0x31eb73(0x121)]=_0x444949,_0x2be185['LSRWc'](saveCache,_0x1adc05),!![];return![];}export function hasSessionBeenPrompted(_0x40c176){const _0x2e4bec=_0xb547,_0x22bbaf=loadCache();return _0x22bbaf['sessions'][_0x40c176]?.[_0x2e4bec(0x132)]===!![];}export function markSessionPrompted(_0x826918){const _0x5477fc=_0xb547,_0x5e8762=loadCache(),_0x4a287d=getOrCreateSession(_0x5e8762,_0x826918);_0x4a287d[_0x5477fc(0x132)]=!![],saveCache(_0x5e8762);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x45f284=_0x1300;(function(_0x4e15c2,_0x477b15){const _0x48a990=_0x1300,_0xbf092a=_0x4e15c2();while(!![]){try{const _0x58a1ad=parseInt(_0x48a990(0xa1))/0x1+parseInt(_0x48a990(0xb4))/0x2*(parseInt(_0x48a990(0xcb))/0x3)+-parseInt(_0x48a990(0xc8))/0x4*(parseInt(_0x48a990(0x7d))/0x5)+parseInt(_0x48a990(0xb0))/0x6+parseInt(_0x48a990(0x7a))/0x7+parseInt(_0x48a990(0xd6))/0x8+-parseInt(_0x48a990(0x94))/0x9*(parseInt(_0x48a990(0xbb))/0xa);if(_0x58a1ad===_0x477b15)break;else _0xbf092a['push'](_0xbf092a['shift']());}catch(_0x1286f8){_0xbf092a['push'](_0xbf092a['shift']());}}}(_0x4547,0x5d761));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(_0x2092c4){const _0x1e90bf=_0x1300,_0x5ff177={'dEBUM':function(_0x3b27e4){return _0x3b27e4();},'UpInl':function(_0x24de7e,_0x2b4654,_0x15c2a7){return _0x24de7e(_0x2b4654,_0x15c2a7);},'ehkib':'local','gLrNk':function(_0xc46dc3,_0x1db223){return _0xc46dc3(_0x1db223);},'Pxlec':function(_0x25faf9,_0x3846f6){return _0x25faf9!==_0x3846f6;}},_0x2de13e=_0x5ff177['dEBUM'](getRangerDir),_0x3928dc=join(_0x2de13e,'ci',_0x2092c4),_0x15deac=join(_0x2de13e,'local',_0x2092c4),_0x5b33f9=_0x5ff177['UpInl'](join,_0x2de13e,_0x2092c4),_0x51d64b=join(_0x2de13e,_0x5ff177['ehkib']),_0x4d5679=_0x5ff177['UpInl'](join,_0x2de13e,'ci');if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x3928dc))return _0x3928dc;if(existsSync(_0x15deac))return _0x15deac;if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x5b33f9)&&(_0x5b33f9!==_0x51d64b&&_0x5ff177[_0x1e90bf(0xce)](_0x5b33f9,_0x4d5679)?!![]:hasLegacyProfileFiles(_0x5b33f9)))return _0x5b33f9;return _0x15deac;}export function findExistingEnv(_0x485d21,_0x5f0df6){const _0x1d7ac7=_0x1300,_0x41b1e4={'FVmgy':_0x1d7ac7(0x7b),'eaQhi':_0x1d7ac7(0x84),'jFffR':function(_0x5f1d10,_0x17f069,_0x44753c){return _0x5f1d10(_0x17f069,_0x44753c);},'UGjoD':function(_0x12dea7,_0x446caa,_0x5c4aaa,_0x3d1896){return _0x12dea7(_0x446caa,_0x5c4aaa,_0x3d1896);},'xGYOT':function(_0x3232aa,_0x5b34ea){return _0x3232aa===_0x5b34ea;}},_0x27632b=_0x5f0df6?.['rangerDir']??getRangerDir(),_0x15f5f5=_0x5f0df6?.['locations']??['ci',_0x41b1e4[_0x1d7ac7(0x99)],_0x41b1e4['eaQhi']],_0x206bbc=join(_0x27632b,'local'),_0x3e8012=_0x41b1e4[_0x1d7ac7(0xc2)](join,_0x27632b,'ci'),_0x54eb4d=[{'location':'ci','path':join(_0x27632b,'ci',_0x485d21)},{'location':'local','path':_0x41b1e4['UGjoD'](join,_0x27632b,_0x41b1e4[_0x1d7ac7(0x99)],_0x485d21)},{'location':'legacy','path':join(_0x27632b,_0x485d21)}];for(const _0x456eaf of _0x54eb4d){if(_0x15f5f5[_0x1d7ac7(0x91)](_0x456eaf['location'])&&existsSync(_0x456eaf[_0x1d7ac7(0x8a)])){if(_0x456eaf[_0x1d7ac7(0xad)]==='legacy'&&(_0x41b1e4[_0x1d7ac7(0xdc)](_0x456eaf['path'],_0x206bbc)||_0x456eaf[_0x1d7ac7(0x8a)]===_0x3e8012)&&!hasLegacyProfileFiles(_0x456eaf[_0x1d7ac7(0x8a)]))continue;return{'path':_0x456eaf['path'],'location':_0x456eaf['location']};}}return null;}function hasLegacyProfileFiles(_0x47c8d6){const _0x4d5ca0=_0x1300,_0x112515={'MclDI':function(_0x5b458f,_0x2bf8f2,_0x13bc48){return _0x5b458f(_0x2bf8f2,_0x13bc48);},'wpEhN':_0x4d5ca0(0xb7),'jwLrv':function(_0x33a867,_0x26698d){return _0x33a867(_0x26698d);},'HZnGa':_0x4d5ca0(0xa6)};return existsSync(_0x112515['MclDI'](join,_0x47c8d6,'settings.json'))||existsSync(join(_0x47c8d6,_0x112515['wpEhN']))||_0x112515[_0x4d5ca0(0xa3)](existsSync,_0x112515[_0x4d5ca0(0xe4)](join,_0x47c8d6,_0x112515[_0x4d5ca0(0xae)]));}export function isEnvCi(_0x2a6bcd){const _0x166168={'gHXUO':function(_0x1b6fcd){return _0x1b6fcd();}};return existsSync(join(_0x166168['gHXUO'](getRangerDir),'ci',_0x2a6bcd));}export async function cleanupTempFiles(_0x33353b){const _0x15b817=_0x1300,_0x5269bf={'HXVmy':_0x15b817(0xb9)},_0x1d94cf=[_0x33353b[_0x15b817(0xe2)],_0x33353b['configPath']][_0x15b817(0xb2)](Boolean);await Promise[_0x15b817(0xdd)](_0x1d94cf[_0x15b817(0xc1)](_0x359d9a=>unlink(_0x359d9a)[_0x15b817(0x87)](_0x225982=>{const _0x5f0df5=_0x15b817;_0x225982[_0x5f0df5(0x8c)]!==_0x5269bf[_0x5f0df5(0xa9)]&&console[_0x5f0df5(0x83)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x359d9a+':',_0x225982[_0x5f0df5(0x80)]);})));}export function getSettingsPath(_0x3f5363){const _0x5e0139=_0x1300,_0x26b676={'mAYQG':function(_0x1f33bc,_0x481d69,_0x368bed){return _0x1f33bc(_0x481d69,_0x368bed);},'OZREY':'settings.json'};return _0x26b676['mAYQG'](join,getEnvDir(_0x3f5363),_0x26b676[_0x5e0139(0x7f)]);}export async function loadSettings(_0x3ed589){const _0x2b9271=_0x1300,_0x3b008e={'lvshD':function(_0x31b738,_0x41156e){return _0x31b738(_0x41156e);},'TFngI':'utf-8'},_0x35be75=_0x3b008e['lvshD'](getSettingsPath,_0x3ed589);if(!_0x3b008e['lvshD'](existsSync,_0x35be75))return{};try{const _0x36a6b3=await readFile(_0x35be75,_0x3b008e[_0x2b9271(0x81)]);return JSON['parse'](_0x36a6b3);}catch{return{};}}export async function saveSettings(_0x20e9a1,_0x5588f8){const _0x2caa44=getSettingsPath(_0x20e9a1),_0x2f4c45=dirname(_0x2caa44);!existsSync(_0x2f4c45)&&await mkdir(_0x2f4c45,{'recursive':!![]}),await writeFile(_0x2caa44,JSON['stringify'](_0x5588f8,null,0x2));}function _0x1300(_0xd9a7d4,_0x11ec90){_0xd9a7d4=_0xd9a7d4-0x77;const _0x454733=_0x4547();let _0x1300df=_0x454733[_0xd9a7d4];return _0x1300df;}export function resolveEnvVars(_0x3abfde){const _0xeda0fc=_0x1300,_0x36633f={'UwPEx':function(_0x44e871,_0x41cc7e){return _0x44e871===_0x41cc7e;},'aiQDq':_0xeda0fc(0x88)};if(_0x36633f[_0xeda0fc(0xe6)](typeof _0x3abfde,_0xeda0fc(0xd4)))return _0x3abfde[_0xeda0fc(0x82)](/\$\{(\w+)\}/g,(_0x16790a,_0x2e5246)=>{const _0x2aea5d=_0xeda0fc,_0x4fdcc3=process[_0x2aea5d(0xd5)][_0x2e5246];if(_0x36633f['UwPEx'](_0x4fdcc3,undefined))throw new Error('Environment\x20variable\x20'+_0x2e5246+'\x20is\x20not\x20set');return _0x4fdcc3;});if(Array[_0xeda0fc(0x98)](_0x3abfde))return _0x3abfde['map'](resolveEnvVars);if(_0x3abfde&&typeof _0x3abfde===_0x36633f[_0xeda0fc(0xa4)])return Object[_0xeda0fc(0x9e)](Object['entries'](_0x3abfde)[_0xeda0fc(0xc1)](([_0x2439af,_0x1e56e5])=>[_0x2439af,resolveEnvVars(_0x1e56e5)]));return _0x3abfde;}const isRecord=_0x55c763=>typeof _0x55c763===_0x45f284(0x88)&&_0x55c763!==null&&!Array[_0x45f284(0x98)](_0x55c763),asRecord=_0x2631a7=>isRecord(_0x2631a7)?_0x2631a7:undefined,mergeHeaders=(_0x8830ca,_0x2fad6d)=>{const _0x3cf9fc=_0x45f284,_0xe05d84={'dvtNH':function(_0x2f1dbb,_0x56768){return _0x2f1dbb??_0x56768;}},_0x43c126={..._0xe05d84['dvtNH'](_0x8830ca,{}),..._0xe05d84[_0x3cf9fc(0x95)](_0x2fad6d,{})};return Object[_0x3cf9fc(0x7c)](_0x43c126)[_0x3cf9fc(0x85)]?_0x43c126:undefined;},SAFE_MODE_ARGS=[_0x45f284(0xb5)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2472a5,_0x3659d0={}){const _0x1b2764=_0x45f284,_0x756624={'qfiYt':function(_0x55612a,_0x395e34){return _0x55612a(_0x395e34);},'BharN':function(_0x3dd88c,_0x1aaa97){return _0x3dd88c(_0x1aaa97);},'HthHb':function(_0x4d51fc,_0x1f1022){return _0x4d51fc===_0x1f1022;},'CxqrX':'string'},_0x586c27=_0x756624['qfiYt'](asRecord,_0x2472a5[_0x1b2764(0xc7)]),_0x13f2c3={..._0x756624[_0x1b2764(0xd3)](asRecord,_0x586c27?.['launchOptions'])??{}};typeof _0x3659d0['headless']===_0x1b2764(0xd0)&&(_0x13f2c3['headless']=_0x3659d0['headless']);if(_0x2472a5['safeMode']){const _0xafc8d0=_0x13f2c3[_0x1b2764(0x77)]??[],_0x45beb3=SAFE_MODE_ARGS['filter'](_0x4b769d=>!_0xafc8d0['includes'](_0x4b769d));_0x13f2c3[_0x1b2764(0x77)]=[..._0xafc8d0,..._0x45beb3];}if(_0x2472a5[_0x1b2764(0x8d)]){const _0x1dc953=_0x13f2c3[_0x1b2764(0x77)]??[],_0x1e2945=ALLOW_LOCALHOST_ARGS['filter'](_0x380b4b=>!_0x1dc953[_0x1b2764(0x91)](_0x380b4b));_0x13f2c3['args']=[..._0x1dc953,..._0x1e2945];}const _0x2ee9bc={..._0x756624['BharN'](asRecord,_0x586c27?.['contextOptions'])??{}};_0x2ee9bc['ignoreHTTPSErrors']=!![];_0x756624[_0x1b2764(0xb8)](typeof _0x2472a5['userAgent'],_0x756624[_0x1b2764(0x78)])&&(_0x2ee9bc['userAgent']=_0x2472a5['userAgent']);const _0x297843=mergeHeaders(asRecord(_0x2ee9bc['extraHTTPHeaders']),asRecord(_0x2472a5[_0x1b2764(0x9f)]));return _0x297843?_0x2ee9bc['extraHTTPHeaders']=_0x297843:delete _0x2ee9bc['extraHTTPHeaders'],_0x3659d0['storageStatePath']&&(_0x2ee9bc[_0x1b2764(0xde)]=_0x3659d0['storageStatePath']),{'launchOptions':_0x13f2c3,'contextOptions':_0x2ee9bc};}export async function buildPlaywrightConfig(_0x5e8d55,_0x55d02d,_0xa9f9f6,_0x2d02d2){const _0xe60a3f=_0x45f284,_0x1ef36a={'AtwIB':function(_0x167fd2,_0x3f643d){return _0x167fd2===_0x3f643d;},'yYFMy':_0xe60a3f(0x92),'fLqgZ':'--disable-setuid-sandbox','hJOjV':_0xe60a3f(0xe0),'lHqtb':_0xe60a3f(0x97),'LrfGN':function(_0x26de14,_0x26b95f,_0x4824bb){return _0x26de14(_0x26b95f,_0x4824bb);},'wKgzP':function(_0x5f2990,_0x1ddbc8){return _0x5f2990(_0x1ddbc8);},'FmtEu':function(_0x2725c0,_0x33e3f9,_0x472d0f){return _0x2725c0(_0x33e3f9,_0x472d0f);},'GeKXt':function(_0x586b9b){return _0x586b9b();},'oqDhD':function(_0x4419b7,_0x47b0a6){return _0x4419b7 instanceof _0x47b0a6;},'HJRhc':function(_0x49e576,_0x50cc5d){return _0x49e576(_0x50cc5d);},'ExLdf':function(_0x42a2e5,_0x5f3b10,_0x1e863c,_0x3b1155){return _0x42a2e5(_0x5f3b10,_0x1e863c,_0x3b1155);},'nHdhe':_0xe60a3f(0xa0),'mIXrC':'tabs','AuySf':_0xe60a3f(0xac),'oiVNu':_0xe60a3f(0xbf),'VqsAm':function(_0x5f4830,_0x460e86){return _0x5f4830===_0x460e86;},'atGCL':function(_0x1d0580){return _0x1d0580();},'ztDrg':'ranger-config','pQCON':function(_0x27e6cc,_0x362939){return _0x27e6cc(_0x362939);}},_0x329a2b=getEnvDir(_0x55d02d),_0x542e36=join(_0x329a2b,'auth.json.enc'),_0x47a775=_0x1ef36a[_0xe60a3f(0xab)](join,_0x329a2b,'auth.json');let _0x56ab45,_0x3cd17a;if(existsSync(_0x542e36))try{const _0x1207b3=await getToken();if(!_0x1207b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2609b2=await _0x1ef36a['wKgzP'](readFile,_0x542e36),_0x26360a=decrypt(_0x2609b2,_0x1207b3);_0x3cd17a=_0x1ef36a[_0xe60a3f(0xb1)](join,_0x1ef36a['GeKXt'](tmpdir),_0xe60a3f(0xa7)+Date[_0xe60a3f(0x96)]()+_0xe60a3f(0xaf)),await _0x1ef36a[_0xe60a3f(0xab)](writeFile,_0x3cd17a,_0x26360a),_0x56ab45=_0x3cd17a;}catch(_0x1f285a){const _0x50eb4d=_0x1ef36a['oqDhD'](_0x1f285a,Error)?_0x1f285a['message']:_0x1ef36a[_0xe60a3f(0xba)](String,_0x1f285a);throw new Error(_0xe60a3f(0x8e)+_0x50eb4d);}else existsSync(_0x47a775)&&(_0x56ab45=_0x47a775);const _0x4db8bd=_0xa9f9f6||_0x1ef36a['GeKXt'](randomUUID),_0x2ad652=_0x1ef36a[_0xe60a3f(0x9b)](join,getRangerDir(),'sessions',_0x4db8bd),_0x54926c=Boolean(_0x5e8d55[_0xe60a3f(0xd7)]),_0x417812=_0x54926c?{'browserName':'chromium','cdpEndpoint':_0x5e8d55['cdpEndpoint']}:((()=>{const _0x1f07b1=_0xe60a3f,{launchOptions:_0x4f2747,contextOptions:_0x3d2b6d}=buildBrowserOptionsFromSettings(_0x5e8d55,{'headless':_0x2d02d2?![]:_0x5e8d55['headless']??!![],'storageStatePath':_0x56ab45});if(_0x1ef36a[_0x1f07b1(0xa2)](process['getuid']?.(),0x0)){const _0x2d5373=[_0x1ef36a['yYFMy'],_0x1ef36a['fLqgZ']],_0x54dc17=_0x4f2747[_0x1f07b1(0x77)]??[],_0x2e7520=_0x2d5373['filter'](_0x226d56=>!_0x54dc17['includes'](_0x226d56));_0x4f2747[_0x1f07b1(0x77)]=[..._0x54dc17,..._0x2e7520];}return{'isolated':!![],'browserName':_0x1ef36a[_0x1f07b1(0xc3)],'launchOptions':_0x4f2747,'contextOptions':{..._0x3d2b6d,'permissions':[_0x1f07b1(0x9c),_0x1ef36a['lHqtb']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1e5e93={'name':_0x55d02d,'browser':_0x417812,'capabilities':[_0x1ef36a['nHdhe'],_0x1ef36a[_0xe60a3f(0x9a)],_0x1ef36a[_0xe60a3f(0xbd)],'pdf','vision'],'imageResponses':_0x1ef36a['oiVNu'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2ad652};if(!_0x54926c){const _0x49c990=_0x1e5e93['browser'],_0x9af66d=_0x49c990['contextOptions'];if(_0x9af66d['userAgent']===undefined)delete _0x9af66d[_0xe60a3f(0x89)];if(_0x1ef36a[_0xe60a3f(0xc0)](_0x9af66d[_0xe60a3f(0xde)],undefined))delete _0x9af66d[_0xe60a3f(0xde)];}const _0x2681fb=join(_0x1ef36a['atGCL'](tmpdir),_0x1ef36a['ztDrg']);!_0x1ef36a['pQCON'](existsSync,_0x2681fb)&&await mkdir(_0x2681fb,{'recursive':!![]});const _0x3cdabc=join(_0x2681fb,_0x55d02d+'-'+Date['now']()+'.json');return await _0x1ef36a['FmtEu'](writeFile,_0x3cdabc,JSON[_0xe60a3f(0xe1)](_0x1e5e93,null,0x2)),{'configPath':_0x3cdabc,'tempAuthPath':_0x3cd17a};}export async function buildPlaywrightCliConfig(_0x366da0,_0x29b072,_0x1e9188,_0x183bd9){const _0x3ef979=_0x45f284,_0x3c2090={'ohqPU':function(_0x2bec00,_0x37adfc,_0x19853b){return _0x2bec00(_0x37adfc,_0x19853b);},'ZGjMM':_0x3ef979(0xb3),'dPOqF':_0x3ef979(0x97),'uAKXb':'auth.json','XWCnA':function(_0x3c701e,_0x3debc9){return _0x3c701e(_0x3debc9);},'AgzYf':function(_0xc18db9){return _0xc18db9();},'YwVpX':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','FusFQ':function(_0xd4fd02,_0x1d3ade){return _0xd4fd02 instanceof _0x1d3ade;},'wYkLz':function(_0x128a12,_0x3cfacb){return _0x128a12(_0x3cfacb);},'SXDxz':function(_0x50e578,_0x268cc0){return _0x50e578(_0x268cc0);},'SrJBw':function(_0xcd0ecc,_0x25b5c0){return _0xcd0ecc===_0x25b5c0;},'kKRYw':_0x3ef979(0x7e),'nHTEJ':function(_0x3a0ad3){return _0x3a0ad3();},'DxnHM':function(_0x13f88e,_0x260e57,_0x164df8){return _0x13f88e(_0x260e57,_0x164df8);},'ljDJB':function(_0x3e5730,_0x3594b7,_0x43a338){return _0x3e5730(_0x3594b7,_0x43a338);}},_0x435631=getEnvDir(_0x29b072),_0x3efdee=join(_0x435631,_0x3ef979(0xa6)),_0x517e9f=join(_0x435631,_0x3c2090[_0x3ef979(0xd2)]);let _0x21a212,_0x2e5a57;if(_0x3c2090[_0x3ef979(0xe5)](existsSync,_0x3efdee))try{const _0x374688=await _0x3c2090[_0x3ef979(0xa5)](getToken);if(!_0x374688)throw new Error(_0x3c2090['YwVpX']);const _0x3fc9c4=await _0x3c2090[_0x3ef979(0xe5)](readFile,_0x3efdee),_0x1c3c37=_0x3c2090[_0x3ef979(0xc4)](decrypt,_0x3fc9c4,_0x374688);_0x2e5a57=join(tmpdir(),'ranger-auth-'+Date[_0x3ef979(0x96)]()+_0x3ef979(0xaf)),await _0x3c2090[_0x3ef979(0xc4)](writeFile,_0x2e5a57,_0x1c3c37),_0x21a212=_0x2e5a57;}catch(_0x18de5d){const _0x29b3ec=_0x3c2090['FusFQ'](_0x18de5d,Error)?_0x18de5d[_0x3ef979(0x80)]:String(_0x18de5d);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x29b3ec);}else _0x3c2090[_0x3ef979(0x90)](existsSync,_0x517e9f)&&(_0x21a212=_0x517e9f);const _0x479116=_0x1e9188||randomUUID(),_0x1d069a=join(_0x3c2090[_0x3ef979(0xa5)](getRangerDir),_0x3ef979(0xcc),_0x479116),_0x18b7a9=_0x3c2090[_0x3ef979(0x93)](Boolean,_0x366da0['cdpEndpoint']),_0x16024f=_0x18b7a9?{'browserName':_0x3ef979(0xe0),'cdpEndpoint':_0x366da0[_0x3ef979(0xd7)]}:((()=>{const _0x299ede=_0x3ef979,{launchOptions:_0x3e7c77,contextOptions:_0x5d439d}=_0x3c2090['ohqPU'](buildBrowserOptionsFromSettings,_0x366da0,{'headless':_0x183bd9?![]:_0x366da0[_0x299ede(0xcd)]??!![],'storageStatePath':_0x21a212});if(process[_0x299ede(0xd8)]?.()===0x0){const _0x1a6cb2=[_0x299ede(0x92),_0x3c2090[_0x299ede(0xd9)]],_0x16fe5a=_0x3e7c77[_0x299ede(0x77)]??[],_0x360e1d=_0x1a6cb2['filter'](_0x53fdc8=>!_0x16fe5a[_0x299ede(0x91)](_0x53fdc8));_0x3e7c77['args']=[..._0x16fe5a,..._0x360e1d];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x3e7c77,'contextOptions':{..._0x5d439d,'permissions':['clipboard-read',_0x3c2090['dPOqF']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x18b7a9){const _0x154e23=_0x16024f['contextOptions'];if(_0x3c2090['SrJBw'](_0x154e23[_0x3ef979(0x89)],undefined))delete _0x154e23[_0x3ef979(0x89)];if(_0x3c2090[_0x3ef979(0xc5)](_0x154e23[_0x3ef979(0xde)],undefined))delete _0x154e23[_0x3ef979(0xde)];}const _0x1e7e7f={'browser':_0x16024f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1d069a,'outputMode':'file','codegen':_0x3c2090['kKRYw']},_0x50fe56=join(_0x3c2090[_0x3ef979(0xaa)](tmpdir),_0x3ef979(0xd1));!_0x3c2090['wYkLz'](existsSync,_0x50fe56)&&await _0x3c2090[_0x3ef979(0xb6)](mkdir,_0x50fe56,{'recursive':!![]});const _0x29926e=join(_0x50fe56,_0x29b072+'-'+Date[_0x3ef979(0x96)]()+'-cli.json');return await _0x3c2090[_0x3ef979(0xbe)](writeFile,_0x29926e,JSON[_0x3ef979(0xe1)](_0x1e7e7f,null,0x2)),{'configPath':_0x29926e,'tempAuthPath':_0x2e5a57};}export function getNestedValue(_0x1facee,_0x21f6dd){const _0x996445=_0x45f284,_0x4caaa0={'ENNrd':function(_0x89c5fc,_0x152d6d){return _0x89c5fc===_0x152d6d;},'uEPiZ':function(_0x55bc4c,_0x3b3d86){return _0x55bc4c===_0x3b3d86;},'RQihM':_0x996445(0x88)},_0xdfec5d=parseKeyPath(_0x21f6dd);let _0x5337a3=_0x1facee;for(const _0x33ab4a of _0xdfec5d){if(_0x4caaa0[_0x996445(0xe3)](_0x5337a3,null)||_0x4caaa0[_0x996445(0x86)](_0x5337a3,undefined)||typeof _0x5337a3!==_0x4caaa0[_0x996445(0x9d)])return undefined;_0x5337a3=_0x5337a3[_0x33ab4a];}return _0x5337a3;}export function setNestedValue(_0x222594,_0xe3cb2e,_0x5a165f){const _0x6fc1f7=_0x45f284,_0x542d15={'hhXMu':function(_0x4dafe3,_0x59f778){return _0x4dafe3(_0x59f778);},'kZVaF':function(_0x38279c,_0x49e2f1){return _0x38279c-_0x49e2f1;},'rdjWD':function(_0xea517,_0x54041d){return _0xea517!==_0x54041d;},'Ntlog':'object'},_0x30e7b9=_0x542d15[_0x6fc1f7(0xdb)](parseKeyPath,_0xe3cb2e);let _0x1c9d48=_0x222594;for(let _0x5b38db=0x0;_0x5b38db<_0x542d15['kZVaF'](_0x30e7b9[_0x6fc1f7(0x85)],0x1);_0x5b38db++){const _0x50371a=_0x30e7b9[_0x5b38db];(!(_0x50371a in _0x1c9d48)||_0x542d15['rdjWD'](typeof _0x1c9d48[_0x50371a],_0x542d15['Ntlog']))&&(_0x1c9d48[_0x50371a]={}),_0x1c9d48=_0x1c9d48[_0x50371a];}_0x1c9d48[_0x30e7b9[_0x542d15[_0x6fc1f7(0xe7)](_0x30e7b9['length'],0x1)]]=_0x5a165f;}export function deleteNestedValue(_0x59043b,_0x140862){const _0x3db34f=_0x45f284,_0x579063={'XoQNE':function(_0x54e8a9,_0x18f06){return _0x54e8a9(_0x18f06);},'IziqB':_0x3db34f(0x88),'ukyrb':function(_0x3612b4,_0x298a58){return _0x3612b4===_0x298a58;},'xbHIS':function(_0x24ef9c,_0x5e2b7f){return _0x24ef9c!==_0x5e2b7f;}},_0x3a59db=_0x579063[_0x3db34f(0xc9)](parseKeyPath,_0x140862);let _0x1f3389=_0x59043b;for(let _0x1a4a2b=0x0;_0x1a4a2b<_0x3a59db[_0x3db34f(0x85)]-0x1;_0x1a4a2b++){if(_0x1f3389===null||_0x1f3389===undefined||typeof _0x1f3389!==_0x579063['IziqB'])return![];_0x1f3389=_0x1f3389[_0x3a59db[_0x1a4a2b]];}if(_0x579063['ukyrb'](_0x1f3389,null)||_0x1f3389===undefined||_0x579063[_0x3db34f(0xca)](typeof _0x1f3389,_0x579063['IziqB']))return![];const _0x425a6d=_0x3a59db[_0x3a59db['length']-0x1];if(_0x425a6d in _0x1f3389)return delete _0x1f3389[_0x425a6d],!![];return![];}function parseKeyPath(_0x30c3d7){const _0x2f5f6b=_0x45f284,_0x53520f={'rFggg':_0x2f5f6b(0x79),'eEFoM':'setupHeaders'},_0x2ad307=_0x30c3d7[_0x2f5f6b(0xbc)]('.');return _0x2ad307[0x0]==='header'&&(_0x2ad307[0x0]=_0x2f5f6b(0x9f)),_0x2ad307[0x0]===_0x53520f['rFggg']&&(_0x2ad307[0x0]=_0x53520f[_0x2f5f6b(0x8f)]),_0x2ad307;}export function formatSettings(_0x3a3908,_0x29e644=0x0){const _0x506d7e=_0x45f284,_0x520964={'WghHJ':_0x506d7e(0x88)},_0x8a910f=[],_0x21490a='\x20\x20'[_0x506d7e(0xa8)](_0x29e644);for(const [_0x2eeec1,_0x349c66]of Object[_0x506d7e(0x8b)](_0x3a3908)){if(_0x349c66===undefined)continue;if(typeof _0x349c66===_0x520964[_0x506d7e(0xda)]&&_0x349c66!==null){_0x8a910f[_0x506d7e(0xdf)](''+_0x21490a+_0x2eeec1+':');for(const [_0xf8b307,_0x20d704]of Object[_0x506d7e(0x8b)](_0x349c66)){_0x8a910f['push'](_0x21490a+'\x20\x20'+_0xf8b307+':\x20'+_0x20d704);}}else _0x8a910f['push'](''+_0x21490a+_0x2eeec1+':\x20'+_0x349c66);}return _0x8a910f[_0x506d7e(0xc6)]('\x0a');}function _0x4547(){const _0x4c5bd6=['jwLrv','aiQDq','AgzYf','auth.json.enc','ranger-auth-','repeat','HXVmy','nHTEJ','LrfGN','install','location','HZnGa','.json','2626086DezUXL','FmtEu','filter','--disable-setuid-sandbox','232HiqSOQ','--disable-features=WebBluetooth','DxnHM','auth.json','HthHb','ENOENT','HJRhc','50TIMQMz','split','AuySf','ljDJB','allow','VqsAm','map','jFffR','hJOjV','ohqPU','SrJBw','join','browser','1202232agVFVF','XoQNE','xbHIS','15738Kjrkfs','sessions','headless','Pxlec','gLrNk','boolean','ranger-config','uAKXb','qfiYt','string','env','912584tEkFsB','cdpEndpoint','getuid','ZGjMM','WghHJ','hhXMu','xGYOT','all','storageState','push','chromium','stringify','tempAuthPath','ENNrd','MclDI','XWCnA','UwPEx','kZVaF','args','CxqrX','setupHeader','5108005AeGMYW','local','keys','10TvUVTj','none','OZREY','message','TFngI','replace','warn','legacy','length','uEPiZ','catch','object','userAgent','path','entries','code','allowInsecureLocalhost','Failed\x20to\x20decrypt\x20auth\x20state:\x20','eEFoM','wYkLz','includes','--no-sandbox','SXDxz','2968272RYUJwb','dvtNH','now','clipboard-write','isArray','FVmgy','mIXrC','ExLdf','clipboard-read','RQihM','fromEntries','headers','core','742968wENuNc','AtwIB'];_0x4547=function(){return _0x4c5bd6;};return _0x4547();}
1
+ const _0x4b6d94=_0xe175;(function(_0x457c50,_0x18e922){const _0x198358=_0xe175,_0x27213e=_0x457c50();while(!![]){try{const _0x2787f9=-parseInt(_0x198358(0xf9))/0x1+-parseInt(_0x198358(0x125))/0x2*(parseInt(_0x198358(0x121))/0x3)+-parseInt(_0x198358(0xda))/0x4*(parseInt(_0x198358(0xe8))/0x5)+-parseInt(_0x198358(0x109))/0x6+parseInt(_0x198358(0xe0))/0x7*(parseInt(_0x198358(0x13b))/0x8)+parseInt(_0x198358(0x129))/0x9+parseInt(_0x198358(0x134))/0xa*(parseInt(_0x198358(0x127))/0xb);if(_0x2787f9===_0x18e922)break;else _0x27213e['push'](_0x27213e['shift']());}catch(_0x4eef72){_0x27213e['push'](_0x27213e['shift']());}}}(_0x4917,0x6220f));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(_0x348c1e){const _0x4f288f=_0xe175,_0xcdf808={'ytYCQ':function(_0x8b9743){return _0x8b9743();},'nHKts':function(_0x2fff4c,_0x161d7f,_0x3dfc1d,_0x326674){return _0x2fff4c(_0x161d7f,_0x3dfc1d,_0x326674);},'bgGhz':function(_0xb15bf6,_0x31165a,_0x2636ec,_0xb8405){return _0xb15bf6(_0x31165a,_0x2636ec,_0xb8405);},'ImKJp':'local','MJNlK':function(_0x22267e,_0x4d6289,_0x9594b3){return _0x22267e(_0x4d6289,_0x9594b3);},'acxUJ':function(_0xe69e55,_0x5efb43,_0x2ae27b){return _0xe69e55(_0x5efb43,_0x2ae27b);},'alrKS':function(_0x5c2441,_0x21be1c){return _0x5c2441(_0x21be1c);}},_0x508c45=_0xcdf808[_0x4f288f(0x12c)](getRangerDir),_0x4c74ce=_0xcdf808['nHKts'](join,_0x508c45,'ci',_0x348c1e),_0x44ed53=_0xcdf808[_0x4f288f(0x100)](join,_0x508c45,_0xcdf808[_0x4f288f(0x131)],_0x348c1e),_0x20898d=_0xcdf808['MJNlK'](join,_0x508c45,_0x348c1e),_0x49f358=_0xcdf808[_0x4f288f(0x11a)](join,_0x508c45,_0xcdf808['ImKJp']),_0x194fce=join(_0x508c45,'ci');if(existsSync(_0x4c74ce))return _0x4c74ce;if(existsSync(_0x44ed53))return _0x44ed53;if(_0xcdf808['alrKS'](existsSync,_0x20898d)&&(_0x20898d!==_0x49f358&&_0x20898d!==_0x194fce?!![]:hasLegacyProfileFiles(_0x20898d)))return _0x20898d;return _0x44ed53;}export function findExistingEnv(_0x1839ca,_0x43f15f){const _0x36bebb=_0xe175,_0x4ba7c8={'drYdc':function(_0x2638c9){return _0x2638c9();},'bgsVi':function(_0x4ef7a2,_0x307f94,_0x4ed382){return _0x4ef7a2(_0x307f94,_0x4ed382);},'UwHFN':'local','oKYNc':function(_0x122319,_0x29120f){return _0x122319(_0x29120f);},'pVabS':function(_0x4bfc62,_0x3e622b){return _0x4bfc62===_0x3e622b;},'QBaez':function(_0xf65e99,_0x46630e){return _0xf65e99(_0x46630e);}},_0x2caeb6=_0x43f15f?.['rangerDir']??_0x4ba7c8['drYdc'](getRangerDir),_0x58f714=_0x43f15f?.['locations']??['ci','local','legacy'],_0x50259d=_0x4ba7c8['bgsVi'](join,_0x2caeb6,_0x36bebb(0x136)),_0x4cdc6b=_0x4ba7c8[_0x36bebb(0x122)](join,_0x2caeb6,'ci'),_0x2aa28c=[{'location':'ci','path':join(_0x2caeb6,'ci',_0x1839ca)},{'location':_0x4ba7c8[_0x36bebb(0xfa)],'path':join(_0x2caeb6,_0x4ba7c8[_0x36bebb(0xfa)],_0x1839ca)},{'location':_0x36bebb(0xfd),'path':join(_0x2caeb6,_0x1839ca)}];for(const _0x2c7ad8 of _0x2aa28c){if(_0x58f714['includes'](_0x2c7ad8['location'])&&_0x4ba7c8[_0x36bebb(0xdf)](existsSync,_0x2c7ad8['path'])){if(_0x4ba7c8[_0x36bebb(0xfb)](_0x2c7ad8['location'],'legacy')&&(_0x2c7ad8['path']===_0x50259d||_0x2c7ad8['path']===_0x4cdc6b)&&!_0x4ba7c8[_0x36bebb(0xf7)](hasLegacyProfileFiles,_0x2c7ad8[_0x36bebb(0x11c)]))continue;return{'path':_0x2c7ad8['path'],'location':_0x2c7ad8['location']};}}return null;}function hasLegacyProfileFiles(_0x5c4cfe){const _0xe260bf={'dwiHu':function(_0x264972,_0x58c6eb){return _0x264972(_0x58c6eb);},'ttrjV':function(_0x1b5702,_0x509c51,_0x1020e1){return _0x1b5702(_0x509c51,_0x1020e1);},'RGpEx':function(_0x167f66,_0x459d59){return _0x167f66(_0x459d59);},'PDHBb':'auth.json.enc'};return existsSync(join(_0x5c4cfe,'settings.json'))||_0xe260bf['dwiHu'](existsSync,_0xe260bf['ttrjV'](join,_0x5c4cfe,'auth.json'))||_0xe260bf['RGpEx'](existsSync,join(_0x5c4cfe,_0xe260bf['PDHBb']));}export function isEnvCi(_0x3b941b){return existsSync(join(getRangerDir(),'ci',_0x3b941b));}function _0xe175(_0x856be0,_0x3b3b5a){_0x856be0=_0x856be0-0xd9;const _0x491700=_0x4917();let _0xe1757d=_0x491700[_0x856be0];return _0xe1757d;}export async function cleanupTempFiles(_0x4195cc){const _0x24fede=_0xe175,_0x27617f={'bVGxM':function(_0x38c5f1,_0x263de5){return _0x38c5f1!==_0x263de5;}},_0x3bfde2=[_0x4195cc[_0x24fede(0x10b)],_0x4195cc['configPath']]['filter'](Boolean);await Promise['all'](_0x3bfde2['map'](_0x3f3f2=>unlink(_0x3f3f2)[_0x24fede(0x10f)](_0x4eee41=>{const _0x1c23d1=_0x24fede;_0x27617f['bVGxM'](_0x4eee41['code'],'ENOENT')&&console[_0x1c23d1(0xe9)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3f3f2+':',_0x4eee41[_0x1c23d1(0x13a)]);})));}export function getSettingsPath(_0x23e140){const _0x23343e=_0xe175,_0x5e1801={'ZEEmc':function(_0x2db7d2,_0x46c596,_0x46bccf){return _0x2db7d2(_0x46c596,_0x46bccf);},'MnzJn':'settings.json'};return _0x5e1801[_0x23343e(0x108)](join,getEnvDir(_0x23e140),_0x5e1801['MnzJn']);}export async function loadSettings(_0x51dde6){const _0x17e591=_0xe175,_0x532fb7={'nVPbG':function(_0x281695,_0x3a1f3b){return _0x281695(_0x3a1f3b);},'FiZLY':_0x17e591(0x11f)},_0x1dba76=_0x532fb7['nVPbG'](getSettingsPath,_0x51dde6);if(!existsSync(_0x1dba76))return{};try{const _0x452011=await readFile(_0x1dba76,_0x532fb7[_0x17e591(0xde)]);return JSON['parse'](_0x452011);}catch{return{};}}export async function saveSettings(_0x3d0089,_0x5f4760){const _0x1622e1=_0xe175,_0x42ed6b={'JrOFx':function(_0x2e51e1,_0x4a3173){return _0x2e51e1(_0x4a3173);},'DfnnX':function(_0x173060,_0x484818){return _0x173060(_0x484818);},'NsHrY':function(_0x159c7e,_0x293beb,_0x3f3480){return _0x159c7e(_0x293beb,_0x3f3480);}},_0x1ce041=_0x42ed6b['JrOFx'](getSettingsPath,_0x3d0089),_0x2a57e4=dirname(_0x1ce041);!_0x42ed6b[_0x1622e1(0x117)](existsSync,_0x2a57e4)&&await mkdir(_0x2a57e4,{'recursive':!![]}),await _0x42ed6b['NsHrY'](writeFile,_0x1ce041,JSON[_0x1622e1(0x104)](_0x5f4760,null,0x2));}export function resolveEnvVars(_0x416f97){const _0x48a611=_0xe175,_0x37463f={'asdJU':function(_0x423ee7,_0x7b950f){return _0x423ee7===_0x7b950f;},'ThRQg':_0x48a611(0xe3)};if(_0x37463f[_0x48a611(0x128)](typeof _0x416f97,_0x37463f['ThRQg']))return _0x416f97[_0x48a611(0xee)](/\$\{(\w+)\}/g,(_0x237bd8,_0x380305)=>{const _0x3e86e5=process['env'][_0x380305];if(_0x3e86e5===undefined)throw new Error('Environment\x20variable\x20'+_0x380305+'\x20is\x20not\x20set');return _0x3e86e5;});if(Array[_0x48a611(0x10a)](_0x416f97))return _0x416f97[_0x48a611(0xfe)](resolveEnvVars);if(_0x416f97&&typeof _0x416f97==='object')return Object['fromEntries'](Object['entries'](_0x416f97)[_0x48a611(0xfe)](([_0x14987f,_0x25f467])=>[_0x14987f,resolveEnvVars(_0x25f467)]));return _0x416f97;}const isRecord=_0x2c791b=>typeof _0x2c791b==='object'&&_0x2c791b!==null&&!Array['isArray'](_0x2c791b),asRecord=_0x5ca490=>isRecord(_0x5ca490)?_0x5ca490:undefined,mergeHeaders=(_0x393961,_0x670b32)=>{const _0x1d3a08=_0xe175,_0x214abd={'WcZGz':function(_0x26c707,_0x349d54){return _0x26c707??_0x349d54;}},_0x31c2b0={..._0x214abd[_0x1d3a08(0xe2)](_0x393961,{}),..._0x670b32??{}};return Object['keys'](_0x31c2b0)[_0x1d3a08(0x116)]?_0x31c2b0:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x4b6d94(0xec),_0x4b6d94(0x11e),_0x4b6d94(0x132),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x328fa6,_0x3d7d0a={}){const _0x47e096=_0x4b6d94,_0x8ccc7c={'GYUsv':'boolean','lpzdz':function(_0x1ccf73,_0x23a577){return _0x1ccf73(_0x23a577);},'ellua':_0x47e096(0xe3)},_0x8552a5=asRecord(_0x328fa6['browser']),_0x55ea57={...asRecord(_0x8552a5?.[_0x47e096(0xf6)])??{}};typeof _0x3d7d0a['headless']===_0x8ccc7c[_0x47e096(0x105)]&&(_0x55ea57[_0x47e096(0xef)]=_0x3d7d0a[_0x47e096(0xef)]);if(_0x328fa6[_0x47e096(0xf5)]){const _0x2e4c8d=_0x55ea57['args']??[],_0x2b9837=SAFE_MODE_ARGS['filter'](_0x3a791d=>!_0x2e4c8d['includes'](_0x3a791d));_0x55ea57[_0x47e096(0xf0)]=[..._0x2e4c8d,..._0x2b9837];}if(_0x328fa6['allowInsecureLocalhost']){const _0x549968=_0x55ea57['args']??[],_0x251c9b=ALLOW_LOCALHOST_ARGS[_0x47e096(0x111)](_0x30caf9=>!_0x549968['includes'](_0x30caf9));_0x55ea57[_0x47e096(0xf0)]=[..._0x549968,..._0x251c9b];}const _0x1a379a={..._0x8ccc7c['lpzdz'](asRecord,_0x8552a5?.['contextOptions'])??{}};_0x1a379a['ignoreHTTPSErrors']=!![];typeof _0x328fa6[_0x47e096(0x10e)]===_0x8ccc7c[_0x47e096(0x12f)]&&(_0x1a379a[_0x47e096(0x10e)]=_0x328fa6[_0x47e096(0x10e)]);const _0x11bee8=mergeHeaders(asRecord(_0x1a379a['extraHTTPHeaders']),asRecord(_0x328fa6['headers']));return _0x11bee8?_0x1a379a[_0x47e096(0x101)]=_0x11bee8:delete _0x1a379a['extraHTTPHeaders'],_0x3d7d0a['storageStatePath']&&(_0x1a379a['storageState']=_0x3d7d0a['storageStatePath']),{'launchOptions':_0x55ea57,'contextOptions':_0x1a379a};}function _0x4917(){const _0x3d9bd7=['GYUsv','egaGu','WxUpY','ZEEmc','233934qlXdbm','isArray','tempAuthPath','mNroG','sessions','userAgent','catch','hXlkm','filter','includes','WpsMq','LqLOR','auth.json','length','DfnnX','UHsGS','yhIPp','acxUJ','eQiYd','path','tGpwG','--allow-running-insecure-content','utf-8','setupHeader','3InAhfL','bgsVi','--no-sandbox','header','1266946nwspyb','WCUtI','4497141rySLIU','asdJU','1588401SpVfCt','.json','MKWIK','ytYCQ','core','ZnMcZ','ellua','hVTVh','ImKJp','--unsafely-treat-insecure-origin-as-secure=http://localhost','join','40xPZVyI','vision','local','WzVVk','JINbb','--disable-setuid-sandbox','message','5048CbqiyF','Uahbi','FTyXB','gfTiL','4TLXVoV','trBUC','allow','none','FiZLY','oKYNc','4585qbiUmq','clipboard-write','WcZGz','string','ranger-auth-','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','now','MVWXI','2565715YiEPxL','warn','ranger-config','Failed\x20to\x20decrypt\x20auth\x20state:\x20','--disable-web-security','KXZMb','replace','headless','args','clipboard-read','storageState','Btqcz','-cli.json','safeMode','launchOptions','QBaez','split','637578oYwccQ','UwHFN','pVabS','cdpEndpoint','legacy','map','IJREE','bgGhz','extraHTTPHeaders','setupHeaders','CqYGy','stringify'];_0x4917=function(){return _0x3d9bd7;};return _0x4917();}export async function buildPlaywrightConfig(_0x54c17b,_0x3e286c,_0x9feff4,_0x42b082){const _0x5aec0e=_0x4b6d94,_0x101aff={'ckYbA':_0x5aec0e(0x139),'SfdkT':_0x5aec0e(0xf1),'mNroG':_0x5aec0e(0xe1),'FTyXB':function(_0x16d975,_0x46b77f,_0x21cb51){return _0x16d975(_0x46b77f,_0x21cb51);},'uMYUW':function(_0x37fa93,_0x3544c7){return _0x37fa93(_0x3544c7);},'LqLOR':function(_0x28bf2f){return _0x28bf2f();},'xbSZb':function(_0x567432,_0x3c6242){return _0x567432(_0x3c6242);},'LvkIz':function(_0x5767c5,_0x20428c,_0x78b0b){return _0x5767c5(_0x20428c,_0x78b0b);},'rlHCk':function(_0x1db2e9,_0x1852b9,_0x4ca3d7,_0x377d5c){return _0x1db2e9(_0x1852b9,_0x4ca3d7,_0x377d5c);},'QdImV':_0x5aec0e(0x12d),'ltOMQ':'tabs','pzZJk':_0x5aec0e(0x135),'rGSNm':_0x5aec0e(0xdc),'WpsMq':function(_0x13c04e,_0x252be4){return _0x13c04e===_0x252be4;},'gfTiL':function(_0x28b2c3,_0x5af891){return _0x28b2c3===_0x5af891;},'MVWXI':'ranger-config'},_0x4ea93e=getEnvDir(_0x3e286c),_0x1d1e23=_0x101aff[_0x5aec0e(0x13d)](join,_0x4ea93e,'auth.json.enc'),_0x1215ea=join(_0x4ea93e,_0x5aec0e(0x115));let _0x33cc45,_0x2cb4b9;if(_0x101aff['uMYUW'](existsSync,_0x1d1e23))try{const _0x273227=await _0x101aff[_0x5aec0e(0x114)](getToken);if(!_0x273227)throw new Error(_0x5aec0e(0xe5));const _0x4467cc=await _0x101aff['xbSZb'](readFile,_0x1d1e23),_0x489e0f=decrypt(_0x4467cc,_0x273227);_0x2cb4b9=_0x101aff['FTyXB'](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x5aec0e(0x12a)),await _0x101aff['LvkIz'](writeFile,_0x2cb4b9,_0x489e0f),_0x33cc45=_0x2cb4b9;}catch(_0x26445d){const _0x4428d1=_0x26445d instanceof Error?_0x26445d['message']:String(_0x26445d);throw new Error(_0x5aec0e(0xeb)+_0x4428d1);}else _0x101aff['uMYUW'](existsSync,_0x1215ea)&&(_0x33cc45=_0x1215ea);const _0x5d1472=_0x9feff4||_0x101aff[_0x5aec0e(0x114)](randomUUID),_0x5edd07=_0x101aff['rlHCk'](join,getRangerDir(),_0x5aec0e(0x10d),_0x5d1472),_0x17019c=Boolean(_0x54c17b['cdpEndpoint']),_0x9c9e2a=_0x17019c?{'browserName':'chromium','cdpEndpoint':_0x54c17b['cdpEndpoint']}:((()=>{const _0x4384f8=_0x5aec0e,{launchOptions:_0x639c92,contextOptions:_0x40bbeb}=buildBrowserOptionsFromSettings(_0x54c17b,{'headless':_0x42b082?![]:_0x54c17b[_0x4384f8(0xef)]??!![],'storageStatePath':_0x33cc45});if(process['getuid']?.()===0x0){const _0x2d2cd8=[_0x4384f8(0x123),_0x101aff['ckYbA']],_0x2ebe11=_0x639c92[_0x4384f8(0xf0)]??[],_0x46a6b3=_0x2d2cd8[_0x4384f8(0x111)](_0x350b39=>!_0x2ebe11['includes'](_0x350b39));_0x639c92[_0x4384f8(0xf0)]=[..._0x2ebe11,..._0x46a6b3];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x639c92,'contextOptions':{..._0x40bbeb,'permissions':[_0x101aff['SfdkT'],_0x101aff[_0x4384f8(0x10c)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x329bd9={'name':_0x3e286c,'browser':_0x9c9e2a,'capabilities':[_0x101aff['QdImV'],_0x101aff['ltOMQ'],'install','pdf',_0x101aff['pzZJk']],'imageResponses':_0x101aff['rGSNm'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5edd07};if(!_0x17019c){const _0x486f49=_0x329bd9['browser'],_0x4b9ac4=_0x486f49['contextOptions'];if(_0x101aff[_0x5aec0e(0x113)](_0x4b9ac4['userAgent'],undefined))delete _0x4b9ac4[_0x5aec0e(0x10e)];if(_0x101aff[_0x5aec0e(0xd9)](_0x4b9ac4[_0x5aec0e(0xf2)],undefined))delete _0x4b9ac4[_0x5aec0e(0xf2)];}const _0x4a57c4=join(tmpdir(),_0x101aff[_0x5aec0e(0xe7)]);!existsSync(_0x4a57c4)&&await mkdir(_0x4a57c4,{'recursive':!![]});const _0x4dcda9=_0x101aff[_0x5aec0e(0x13d)](join,_0x4a57c4,_0x3e286c+'-'+Date[_0x5aec0e(0xe6)]()+'.json');return await _0x101aff[_0x5aec0e(0x13d)](writeFile,_0x4dcda9,JSON['stringify'](_0x329bd9,null,0x2)),{'configPath':_0x4dcda9,'tempAuthPath':_0x2cb4b9};}export async function buildPlaywrightCliConfig(_0x968492,_0x28a91b,_0x37302c,_0x1c4d69){const _0x3a4b7c=_0x4b6d94,_0x1951d9={'WxUpY':function(_0x581678,_0xcb04e7,_0x30c20d){return _0x581678(_0xcb04e7,_0x30c20d);},'FvMjb':function(_0xc06740,_0x40c509){return _0xc06740===_0x40c509;},'fVQWL':'--no-sandbox','YyMtN':'clipboard-read','Btqcz':function(_0x30f538,_0x424501,_0x337316){return _0x30f538(_0x424501,_0x337316);},'PofJx':'auth.json.enc','ZnMcZ':function(_0x50e674,_0x5382fb){return _0x50e674(_0x5382fb);},'WCUtI':function(_0x29bca6){return _0x29bca6();},'iXZQo':function(_0x95e511,_0xf9a50e){return _0x95e511(_0xf9a50e);},'ksbMA':function(_0x3a3936,_0x40ac8c,_0x2b0cf8){return _0x3a3936(_0x40ac8c,_0x2b0cf8);},'YOaYu':function(_0x2cf1ec){return _0x2cf1ec();},'hVTVh':function(_0x2f4923,_0x50ce15){return _0x2f4923(_0x50ce15);},'yhIPp':function(_0x1d2fb5,_0x4b04e1,_0x201906,_0x5de13c){return _0x1d2fb5(_0x4b04e1,_0x201906,_0x5de13c);},'MKWIK':'sessions','WzVVk':'chromium','Uahbi':function(_0x4a4cc2,_0xb5cb20){return _0x4a4cc2===_0xb5cb20;},'CqYGy':'file','eIuhR':_0x3a4b7c(0xea),'hXlkm':function(_0x148483,_0x403731,_0x147e93){return _0x148483(_0x403731,_0x147e93);}},_0x535186=getEnvDir(_0x28a91b),_0x5791ff=_0x1951d9['Btqcz'](join,_0x535186,_0x1951d9['PofJx']),_0x153b50=_0x1951d9[_0x3a4b7c(0xf3)](join,_0x535186,_0x3a4b7c(0x115));let _0xf7a5f0,_0x50e47f;if(_0x1951d9[_0x3a4b7c(0x12e)](existsSync,_0x5791ff))try{const _0x3be990=await _0x1951d9[_0x3a4b7c(0x126)](getToken);if(!_0x3be990)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x30f2e6=await _0x1951d9['iXZQo'](readFile,_0x5791ff),_0x511e18=_0x1951d9['ksbMA'](decrypt,_0x30f2e6,_0x3be990);_0x50e47f=join(_0x1951d9['YOaYu'](tmpdir),_0x3a4b7c(0xe4)+Date['now']()+'.json'),await _0x1951d9['Btqcz'](writeFile,_0x50e47f,_0x511e18),_0xf7a5f0=_0x50e47f;}catch(_0x548738){const _0x142bd5=_0x548738 instanceof Error?_0x548738[_0x3a4b7c(0x13a)]:String(_0x548738);throw new Error(_0x3a4b7c(0xeb)+_0x142bd5);}else _0x1951d9[_0x3a4b7c(0x130)](existsSync,_0x153b50)&&(_0xf7a5f0=_0x153b50);const _0x1835ff=_0x37302c||randomUUID(),_0x19d543=_0x1951d9[_0x3a4b7c(0x119)](join,_0x1951d9['WCUtI'](getRangerDir),_0x1951d9[_0x3a4b7c(0x12b)],_0x1835ff),_0x268358=Boolean(_0x968492[_0x3a4b7c(0xfc)]),_0x10e248=_0x268358?{'browserName':_0x1951d9[_0x3a4b7c(0x137)],'cdpEndpoint':_0x968492[_0x3a4b7c(0xfc)]}:((()=>{const _0x1337b9=_0x3a4b7c,{launchOptions:_0xee3523,contextOptions:_0x3a564b}=_0x1951d9[_0x1337b9(0x107)](buildBrowserOptionsFromSettings,_0x968492,{'headless':_0x1c4d69?![]:_0x968492[_0x1337b9(0xef)]??!![],'storageStatePath':_0xf7a5f0});if(_0x1951d9['FvMjb'](process['getuid']?.(),0x0)){const _0x4d341f=[_0x1951d9['fVQWL'],_0x1337b9(0x139)],_0x4606b5=_0xee3523['args']??[],_0x36959f=_0x4d341f[_0x1337b9(0x111)](_0x33ec7f=>!_0x4606b5[_0x1337b9(0x112)](_0x33ec7f));_0xee3523[_0x1337b9(0xf0)]=[..._0x4606b5,..._0x36959f];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0xee3523,'contextOptions':{..._0x3a564b,'permissions':[_0x1951d9['YyMtN'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x268358){const _0xfde5f4=_0x10e248['contextOptions'];if(_0x1951d9[_0x3a4b7c(0x13c)](_0xfde5f4[_0x3a4b7c(0x10e)],undefined))delete _0xfde5f4[_0x3a4b7c(0x10e)];if(_0xfde5f4[_0x3a4b7c(0xf2)]===undefined)delete _0xfde5f4['storageState'];}const _0x210b40={'browser':_0x10e248,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x19d543,'outputMode':_0x1951d9[_0x3a4b7c(0x103)],'codegen':_0x3a4b7c(0xdd)},_0x1abeb9=join(tmpdir(),_0x1951d9['eIuhR']);!_0x1951d9[_0x3a4b7c(0x12e)](existsSync,_0x1abeb9)&&await mkdir(_0x1abeb9,{'recursive':!![]});const _0x1cb3ed=_0x1951d9[_0x3a4b7c(0x110)](join,_0x1abeb9,_0x28a91b+'-'+Date[_0x3a4b7c(0xe6)]()+_0x3a4b7c(0xf4));return await _0x1951d9['WxUpY'](writeFile,_0x1cb3ed,JSON[_0x3a4b7c(0x104)](_0x210b40,null,0x2)),{'configPath':_0x1cb3ed,'tempAuthPath':_0x50e47f};}export function getNestedValue(_0x40ae83,_0x1f7125){const _0x2014c0=_0x4b6d94,_0x175277={'UHsGS':function(_0x38be4c,_0x28e6e3){return _0x38be4c(_0x28e6e3);},'DAeoZ':function(_0x1a8c00,_0x29a9e3){return _0x1a8c00===_0x29a9e3;},'trBUC':'object'},_0x30e93a=_0x175277[_0x2014c0(0x118)](parseKeyPath,_0x1f7125);let _0x20e1d7=_0x40ae83;for(const _0x96176f of _0x30e93a){if(_0x175277['DAeoZ'](_0x20e1d7,null)||_0x20e1d7===undefined||typeof _0x20e1d7!==_0x175277[_0x2014c0(0xdb)])return undefined;_0x20e1d7=_0x20e1d7[_0x96176f];}return _0x20e1d7;}export function setNestedValue(_0x69bcbd,_0x1b77f6,_0x48bb59){const _0x4bb0f5=_0x4b6d94,_0x40a84f={'IJREE':function(_0x4c7d88,_0x3f8db2){return _0x4c7d88(_0x3f8db2);},'qgCOD':function(_0x2c3bcc,_0x507ae5){return _0x2c3bcc<_0x507ae5;},'mVqeG':function(_0x338b91,_0x3576a5){return _0x338b91!==_0x3576a5;}},_0x1b276b=_0x40a84f[_0x4bb0f5(0xff)](parseKeyPath,_0x1b77f6);let _0x431b38=_0x69bcbd;for(let _0x5b4195=0x0;_0x40a84f['qgCOD'](_0x5b4195,_0x1b276b[_0x4bb0f5(0x116)]-0x1);_0x5b4195++){const _0x1cac2a=_0x1b276b[_0x5b4195];(!(_0x1cac2a in _0x431b38)||_0x40a84f['mVqeG'](typeof _0x431b38[_0x1cac2a],'object'))&&(_0x431b38[_0x1cac2a]={}),_0x431b38=_0x431b38[_0x1cac2a];}_0x431b38[_0x1b276b[_0x1b276b['length']-0x1]]=_0x48bb59;}export function deleteNestedValue(_0x3f12ec,_0x505b9a){const _0x200686=_0x4b6d94,_0x2f07d6={'XKBSZ':function(_0x4e2f53,_0x22640b){return _0x4e2f53<_0x22640b;},'egaGu':function(_0x1f102b,_0x3a72d7){return _0x1f102b-_0x3a72d7;},'JINbb':'object','tGpwG':function(_0x2af453,_0x296bab){return _0x2af453===_0x296bab;},'VROLr':function(_0x196c2a,_0x1b02df){return _0x196c2a in _0x1b02df;}},_0x564c06=parseKeyPath(_0x505b9a);let _0x34dc95=_0x3f12ec;for(let _0x3a8c69=0x0;_0x2f07d6['XKBSZ'](_0x3a8c69,_0x2f07d6[_0x200686(0x106)](_0x564c06['length'],0x1));_0x3a8c69++){if(_0x34dc95===null||_0x34dc95===undefined||typeof _0x34dc95!==_0x2f07d6[_0x200686(0x138)])return![];_0x34dc95=_0x34dc95[_0x564c06[_0x3a8c69]];}if(_0x2f07d6[_0x200686(0x11d)](_0x34dc95,null)||_0x34dc95===undefined||typeof _0x34dc95!==_0x2f07d6[_0x200686(0x138)])return![];const _0xc6f29d=_0x564c06[_0x2f07d6['egaGu'](_0x564c06[_0x200686(0x116)],0x1)];if(_0x2f07d6['VROLr'](_0xc6f29d,_0x34dc95))return delete _0x34dc95[_0xc6f29d],!![];return![];}function parseKeyPath(_0x3b5817){const _0x40b682=_0x4b6d94,_0x27e4e1={'eQiYd':_0x40b682(0x124),'KXZMb':function(_0xd02dfd,_0x39a462){return _0xd02dfd===_0x39a462;}},_0x780ee7=_0x3b5817[_0x40b682(0xf8)]('.');return _0x780ee7[0x0]===_0x27e4e1[_0x40b682(0x11b)]&&(_0x780ee7[0x0]='headers'),_0x27e4e1[_0x40b682(0xed)](_0x780ee7[0x0],_0x40b682(0x120))&&(_0x780ee7[0x0]=_0x40b682(0x102)),_0x780ee7;}export function formatSettings(_0x134cbf,_0x294d8f=0x0){const _0x1caf68=_0x4b6d94,_0x600d7f={'fMdcp':function(_0x2ffc98,_0x3f0d97){return _0x2ffc98===_0x3f0d97;},'AIjFB':function(_0x5862c5,_0x519f62){return _0x5862c5===_0x519f62;}},_0x220145=[],_0x2479b3='\x20\x20'['repeat'](_0x294d8f);for(const [_0x32d13c,_0x5ebe74]of Object['entries'](_0x134cbf)){if(_0x600d7f['fMdcp'](_0x5ebe74,undefined))continue;if(_0x600d7f['AIjFB'](typeof _0x5ebe74,'object')&&_0x5ebe74!==null){_0x220145['push'](''+_0x2479b3+_0x32d13c+':');for(const [_0xbc1c7f,_0x1b66ea]of Object['entries'](_0x5ebe74)){_0x220145['push'](_0x2479b3+'\x20\x20'+_0xbc1c7f+':\x20'+_0x1b66ea);}}else _0x220145['push'](''+_0x2479b3+_0x32d13c+':\x20'+_0x5ebe74);}return _0x220145[_0x1caf68(0x133)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x8fef22,_0x3da91b){const _0x5d938e=_0x5703,_0x413817=_0x8fef22();while(!![]){try{const _0x2f122e=-parseInt(_0x5d938e(0x164))/0x1+-parseInt(_0x5d938e(0x163))/0x2+parseInt(_0x5d938e(0x15c))/0x3+-parseInt(_0x5d938e(0x15f))/0x4*(parseInt(_0x5d938e(0x15b))/0x5)+-parseInt(_0x5d938e(0x162))/0x6+-parseInt(_0x5d938e(0x15a))/0x7+parseInt(_0x5d938e(0x15e))/0x8;if(_0x2f122e===_0x3da91b)break;else _0x413817['push'](_0x413817['shift']());}catch(_0x4bec30){_0x413817['push'](_0x413817['shift']());}}}(_0x3e9b,0x23a7e));import{readFileSync}from'fs';function _0x5703(_0x664401,_0x4e571e){_0x664401=_0x664401-0x15a;const _0x3e9b56=_0x3e9b();let _0x57036d=_0x3e9b56[_0x664401];return _0x57036d;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x3e9b(){const _0xfd7f34=['55982PNwQZG','61561OjAbAF','839020XwQzDz','278755WUhccj','58536ZmXuGe','ranger/SKILL.md','4821200YwNlVI','12zUrtsk','EkplG','utf-8','596706vCjLHI'];_0x3e9b=function(){return _0xfd7f34;};return _0x3e9b();}export function readSkillContent(_0x64d597){const _0x2a08cc=_0x5703,_0x42a275={'RXqfb':function(_0x1d1398,_0x44d84a,_0x5111c4,_0x25a3d3,_0x410a70){return _0x1d1398(_0x44d84a,_0x5111c4,_0x25a3d3,_0x410a70);},'DNWIZ':'skills','EkplG':function(_0x141f87,_0x14145c,_0x24056d){return _0x141f87(_0x14145c,_0x24056d);},'mKRPA':_0x2a08cc(0x161)},_0x379701=_0x42a275['RXqfb'](join,__dirname,'..','..',_0x42a275['DNWIZ']),_0x43c5fb=_0x42a275['EkplG'](join,_0x379701,_0x64d597);try{return _0x42a275[_0x2a08cc(0x160)](readFileSync,_0x43c5fb,_0x42a275['mKRPA']);}catch{return'';}}export function getRangerSkillContent(){const _0xde3cf0=_0x5703,_0x4520f7={'UDGuc':_0xde3cf0(0x15d)};return readSkillContent(_0x4520f7['UDGuc']);}
1
+ (function(_0x22d1f5,_0x1f1235){const _0x579968=_0x4604,_0x2b1971=_0x22d1f5();while(!![]){try{const _0x8ee79e=-parseInt(_0x579968(0x1d9))/0x1*(-parseInt(_0x579968(0x1dc))/0x2)+parseInt(_0x579968(0x1d4))/0x3+-parseInt(_0x579968(0x1d5))/0x4+-parseInt(_0x579968(0x1d7))/0x5*(-parseInt(_0x579968(0x1da))/0x6)+-parseInt(_0x579968(0x1d6))/0x7+-parseInt(_0x579968(0x1d8))/0x8+parseInt(_0x579968(0x1db))/0x9;if(_0x8ee79e===_0x1f1235)break;else _0x2b1971['push'](_0x2b1971['shift']());}catch(_0x4cb978){_0x2b1971['push'](_0x2b1971['shift']());}}}(_0x5cff,0x3562c));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4604(_0x5b2d68,_0x26886e){_0x5b2d68=_0x5b2d68-0x1d4;const _0x5cff3c=_0x5cff();let _0x4604b7=_0x5cff3c[_0x5b2d68];return _0x4604b7;}function _0x5cff(){const _0x9476f6=['286761JMGJjN','1637436RzfFwk','571060IIyrDf','541630zblEpP','430520eztkeA','26223sTlCIY','6BBSBMc','2439504amYvVe','22MXdUJJ'];_0x5cff=function(){return _0x9476f6;};return _0x5cff();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5b1772){const _0x449bf4={'hgKAH':function(_0x7492d9,_0x16dbef,_0x4efdb6,_0x7dcd36,_0x33d791){return _0x7492d9(_0x16dbef,_0x4efdb6,_0x7dcd36,_0x33d791);},'ZwFMy':'skills','JlQXB':function(_0x494921,_0x5c84d1,_0x4fb15a){return _0x494921(_0x5c84d1,_0x4fb15a);}},_0x379f6f=_0x449bf4['hgKAH'](join,__dirname,'..','..',_0x449bf4['ZwFMy']),_0x227cb9=join(_0x379f6f,_0x5b1772);try{return _0x449bf4['JlQXB'](readFileSync,_0x227cb9,'utf-8');}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
@@ -1 +1 @@
1
- function _0x3467(){const _0x4d70a7=['2UdReBk','warn','WVPCk','155901JekYSq','push','XIFNv','claude','636OVfMBJ','ZORhD','uPNix','94977JsUKso','\x20\x20Files:\x20','9LKHTYj','feature-tracker','orUrT','trim','project','50OnyIGn','549618KSqILV','filter','\x20\x20Location:\x20','isDirectory','\x20\x20Removed\x20deprecated\x20skill:\x20','SKILL.md','skills','EHrrX','1231270FXgXaN','catch','match','log','5376998eOtvVH','3949992aXvWaz','\x20\x20Skill\x20not\x20found:\x20','opencode','tBbax','Invalid\x20skill\x20frontmatter','7xhnRxB','nTNIL','endsWith'];_0x3467=function(){return _0x4d70a7;};return _0x3467();}const _0x5f3913=_0x3b36;(function(_0xcb25ab,_0x41f728){const _0x373f04=_0x3b36,_0x4e95d9=_0xcb25ab();while(!![]){try{const _0x4aab37=parseInt(_0x373f04(0xa7))/0x1*(parseInt(_0x373f04(0xc4))/0x2)+-parseInt(_0x373f04(0xc7))/0x3+parseInt(_0x373f04(0xcb))/0x4*(parseInt(_0x373f04(0xae))/0x5)+parseInt(_0x373f04(0xaf))/0x6*(parseInt(_0x373f04(0xc1))/0x7)+parseInt(_0x373f04(0xbc))/0x8+-parseInt(_0x373f04(0xa9))/0x9*(-parseInt(_0x373f04(0xb7))/0xa)+-parseInt(_0x373f04(0xbb))/0xb;if(_0x4aab37===_0x41f728)break;else _0x4e95d9['push'](_0x4e95d9['shift']());}catch(_0x502c9e){_0x4e95d9['push'](_0x4e95d9['shift']());}}}(_0x3467,0x40845));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x5f3913(0xaa)];export async function installSkill(_0x457cac,_0x28b8a1={}){const _0xb356d9=_0x5f3913,_0x3a9de3={'QVLiN':function(_0x315a6e){return _0x315a6e();},'qoNxd':function(_0x5221bc,_0x29b894,_0x53d69f){return _0x5221bc(_0x29b894,_0x53d69f);},'JVysu':function(_0x49e4e9,_0x7b2f55,_0x1fbfc6){return _0x49e4e9(_0x7b2f55,_0x1fbfc6);},'XIFNv':function(_0x2cfd7b,_0x1bd5d3){return _0x2cfd7b(_0x1bd5d3);},'ZORhD':_0xb356d9(0xb4),'mqZoJ':function(_0x3ec340,_0x519e4b){return _0x3ec340&&_0x519e4b;},'llCmy':function(_0x199269,_0x462f7a){return _0x199269===_0x462f7a;},'PPUJM':_0xb356d9(0xbe),'VUOMO':function(_0x2ad57e,_0x56eb6a){return _0x2ad57e(_0x56eb6a);},'EHrrX':function(_0x2da6dd,_0x26e3ad,_0xa2c805){return _0x2da6dd(_0x26e3ad,_0xa2c805);},'UGMGR':function(_0x79fc14,_0x56cf4d,_0x3f868a,_0x56ed10){return _0x79fc14(_0x56cf4d,_0x3f868a,_0x56ed10);},'orUrT':function(_0x5488bf,_0xb1ed8){return _0x5488bf(_0xb1ed8);},'tBbax':function(_0x418bde,_0xc5fb80){return _0x418bde>_0xc5fb80;}},{level:level=_0xb356d9(0xad),cliVersion:_0x43abce,platform:platform=_0xb356d9(0xca)}=_0x28b8a1,_0x18f4b6=_0x3a9de3['QVLiN'](getSourceSkillsDir),_0x247551=_0x3a9de3['qoNxd'](join,_0x18f4b6,_0x457cac),_0x1bd6a0=_0x3a9de3['JVysu'](join,_0x18f4b6,_0x457cac+'.md'),_0x40c6bc=_0x3a9de3[_0xb356d9(0xc9)](existsSync,_0x247551)&&statSync(_0x247551)[_0xb356d9(0xb2)]()&&existsSync(_0x3a9de3['qoNxd'](join,_0x247551,_0x3a9de3[_0xb356d9(0xa5)])),_0x2f0a42=existsSync(_0x1bd6a0);if(_0x3a9de3['mqZoJ'](!_0x40c6bc,!_0x2f0a42))return console[_0xb356d9(0xc5)](_0xb356d9(0xbd)+_0x457cac),![];const _0x3d9cc3=_0x3a9de3['llCmy'](platform,_0x3a9de3['PPUJM'])?getOpencodeSkillsDir(level):_0x3a9de3['VUOMO'](getSkillsDir,level),_0x4d9e95=_0x3a9de3[_0xb356d9(0xb6)](join,_0x3d9cc3,_0x457cac);await mkdir(_0x4d9e95,{'recursive':!![]});let _0x4822d2,_0x2fdb00=[];if(_0x40c6bc){const _0x1f93e6=await readdir(_0x247551),_0x5d40e4=_0x1f93e6[_0xb356d9(0xb0)](_0xb45432=>_0xb45432[_0xb356d9(0xc3)]('.md'));for(const _0x1b609c of _0x5d40e4){const _0x1a86a4=join(_0x247551,_0x1b609c),_0x237c49=join(_0x4d9e95,_0x1b609c);await _0x3a9de3[_0xb356d9(0xb6)](copyFile,_0x1a86a4,_0x237c49),_0x2fdb00['push'](_0x1b609c);}_0x4822d2=await _0x3a9de3['qoNxd'](readFile,join(_0x247551,'SKILL.md'),'utf-8');}else{_0x4822d2=await _0x3a9de3[_0xb356d9(0xb6)](readFile,_0x1bd6a0,'utf-8');const _0x389f85=join(_0x4d9e95,_0x3a9de3['ZORhD']);await _0x3a9de3['UGMGR'](writeFile,_0x389f85,_0x4822d2,'utf-8'),_0x2fdb00[_0xb356d9(0xc8)](_0x3a9de3[_0xb356d9(0xa5)]);}const {name:_0x537217}=_0x3a9de3[_0xb356d9(0xab)](parseFrontmatter,_0x4822d2);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x537217),console[_0xb356d9(0xba)](_0xb356d9(0xb1)+_0x4d9e95),_0x3a9de3[_0xb356d9(0xbf)](_0x2fdb00['length'],0x1)&&console[_0xb356d9(0xba)](_0xb356d9(0xa8)+_0x2fdb00['join'](',\x20')),_0x3a9de3['UGMGR'](logLocalAgentInstallation,_0x457cac,{'skillDisplayName':_0x537217,'installLevel':level},_0x43abce)[_0xb356d9(0xb8)](()=>{}),!![];}function getSourceSkillsDir(){const _0x23f643=_0x5f3913,_0x306359={'loHcW':_0x23f643(0xb5),'nTNIL':function(_0x59d2c3,_0x7052a6){return _0x59d2c3(_0x7052a6);}},_0x1b06a4=[join(__dirname,'..','..',_0x306359['loHcW']),join(__dirname,'..','..','..',_0x306359['loHcW'])];for(const _0x5c5bfc of _0x1b06a4){if(_0x306359[_0x23f643(0xc2)](existsSync,_0x5c5bfc))return _0x5c5bfc;}return _0x1b06a4[0x0];}function parseFrontmatter(_0x1d9e3a){const _0xe4edc3=_0x5f3913,_0x184d06={'caDMp':_0xe4edc3(0xc0)},_0x1fe98e=_0x1d9e3a[_0xe4edc3(0xb9)](/^---\n([\s\S]+?)\n---/);if(!_0x1fe98e)throw new Error(_0x184d06['caDMp']);const _0x2a6cbb=_0x1fe98e[0x1],_0xd33312=_0x2a6cbb['match'](/name:\s*(.+)/),_0x456995=_0x2a6cbb[_0xe4edc3(0xb9)](/description:\s*"?(.+?)"?\n/);return{'name':_0xd33312?.[0x1][_0xe4edc3(0xac)]()||'','description':_0x456995?.[0x1]['trim']()||''};}function _0x3b36(_0x16272a,_0x5a487b){_0x16272a=_0x16272a-0xa5;const _0x3467c1=_0x3467();let _0x3b3664=_0x3467c1[_0x16272a];return _0x3b3664;}export async function removeSkill(_0x5e52f6,_0x3cb58e){const _0x211b3e=_0x5f3913,_0x101c15={'uPNix':function(_0x189af0,_0x477b3c,_0x4ecb16){return _0x189af0(_0x477b3c,_0x4ecb16);},'WVPCk':function(_0xe67470,_0x2e327c){return _0xe67470(_0x2e327c);}},_0x1d40c0=getSkillsDir(_0x3cb58e),_0x358456=_0x101c15[_0x211b3e(0xa6)](join,_0x1d40c0,_0x5e52f6);if(!_0x101c15[_0x211b3e(0xc6)](existsSync,_0x358456))return![];try{return await _0x101c15['uPNix'](rm,_0x358456,{'recursive':!![]}),console['log'](_0x211b3e(0xb3)+_0x5e52f6),!![];}catch{return console[_0x211b3e(0xc5)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5e52f6),![];}}
1
+ const _0x2d7cc7=_0x2d6b;function _0x2d6b(_0x55c0aa,_0x332b01){_0x55c0aa=_0x55c0aa-0x6b;const _0x348244=_0x3482();let _0x2d6b0c=_0x348244[_0x55c0aa];return _0x2d6b0c;}(function(_0x45e253,_0x250d08){const _0x2057a8=_0x2d6b,_0x5933c3=_0x45e253();while(!![]){try{const _0xbd9909=-parseInt(_0x2057a8(0x8d))/0x1+parseInt(_0x2057a8(0x74))/0x2*(-parseInt(_0x2057a8(0x71))/0x3)+-parseInt(_0x2057a8(0x6b))/0x4*(-parseInt(_0x2057a8(0x7e))/0x5)+parseInt(_0x2057a8(0x8c))/0x6*(-parseInt(_0x2057a8(0x8e))/0x7)+-parseInt(_0x2057a8(0x7d))/0x8+parseInt(_0x2057a8(0x70))/0x9*(parseInt(_0x2057a8(0x7b))/0xa)+-parseInt(_0x2057a8(0x84))/0xb*(-parseInt(_0x2057a8(0x8f))/0xc);if(_0xbd9909===_0x250d08)break;else _0x5933c3['push'](_0x5933c3['shift']());}catch(_0x355197){_0x5933c3['push'](_0x5933c3['shift']());}}}(_0x3482,0x3f0ff));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';function _0x3482(){const _0x315ad8=['match','54IhiVhE','3TLARqz','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','push','997882smgHNQ','Invalid\x20skill\x20frontmatter','join','SKILL.md','EAoAt','ObfWN','utf-8','7170Qyapri','bug-bash','2101480pehYHE','780GSvnIy','vNNjW','\x20\x20Location:\x20','\x20\x20Skill\x20not\x20found:\x20','yEuMU','log','15862dwKBBe','catch','isDirectory','UtciM','skills','\x20\x20Removed\x20deprecated\x20skill:\x20','project','JGFEM','24mKbXGl','207915bivTZm','774319hanuka','9732NUIAwc','hQide','\x20\x20Files:\x20','.md','e2e-test-recommender','trim','filter','length','YkdLb','12732derSeG','hfTmD','ranger','VqYMa'];_0x3482=function(){return _0x315ad8;};return _0x3482();}import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x2d7cc7(0x6d)];export const DEPRECATED_SKILLS=[_0x2d7cc7(0x93),_0x2d7cc7(0x7c),'feature-tracker'];export async function installSkill(_0xfcdaf0,_0x5ded94={}){const _0x143551=_0x2d7cc7,_0xdb0ba0={'EAoAt':_0x143551(0x8a),'ObfWN':'claude','hQide':function(_0x1eb3e6,_0x58de61,_0x27db5a){return _0x1eb3e6(_0x58de61,_0x27db5a);},'hfTmD':function(_0x2ff31d,_0x5d4f37){return _0x2ff31d(_0x5d4f37);},'wfhLF':function(_0x3565ff,_0x222cd4){return _0x3565ff(_0x222cd4);},'YkdLb':function(_0x347bb9,_0x2a757d){return _0x347bb9===_0x2a757d;},'NJHLM':'opencode','UQNEh':function(_0x3fb7b8,_0xa109dc,_0x11c740){return _0x3fb7b8(_0xa109dc,_0x11c740);},'yEuMU':function(_0x51f8c9,_0x6f8dc3,_0x122bc2){return _0x51f8c9(_0x6f8dc3,_0x122bc2);},'VqYMa':_0x143551(0x77),'JGFEM':function(_0x4d8d10,_0x1ba87d,_0x452952,_0x5e29ce){return _0x4d8d10(_0x1ba87d,_0x452952,_0x5e29ce);},'UgDDP':_0x143551(0x7a),'vNNjW':function(_0x5a0943,_0x38cde7){return _0x5a0943>_0x38cde7;}},{level:level=_0xdb0ba0[_0x143551(0x78)],cliVersion:_0x3b47b5,platform:platform=_0xdb0ba0[_0x143551(0x79)]}=_0x5ded94,_0x5c1b1c=getSourceSkillsDir(),_0x52b97d=join(_0x5c1b1c,_0xfcdaf0),_0x5e357d=_0xdb0ba0[_0x143551(0x90)](join,_0x5c1b1c,_0xfcdaf0+'.md'),_0x47e88d=existsSync(_0x52b97d)&&_0xdb0ba0['hfTmD'](statSync,_0x52b97d)[_0x143551(0x86)]()&&_0xdb0ba0[_0x143551(0x6c)](existsSync,_0xdb0ba0['hQide'](join,_0x52b97d,'SKILL.md')),_0x410221=_0xdb0ba0['wfhLF'](existsSync,_0x5e357d);if(!_0x47e88d&&!_0x410221)return console['warn'](_0x143551(0x81)+_0xfcdaf0),![];const _0x10fe9c=_0xdb0ba0[_0x143551(0x97)](platform,_0xdb0ba0['NJHLM'])?getOpencodeSkillsDir(level):getSkillsDir(level),_0x5ec1e0=join(_0x10fe9c,_0xfcdaf0);await mkdir(_0x5ec1e0,{'recursive':!![]});let _0x4dc7a0,_0x111aa3=[];if(_0x47e88d){const _0x2a0fe7=await readdir(_0x52b97d),_0x5df285=_0x2a0fe7[_0x143551(0x95)](_0x2b4ce8=>_0x2b4ce8['endsWith'](_0x143551(0x92)));for(const _0x4f7a8f of _0x5df285){const _0x1bf38c=join(_0x52b97d,_0x4f7a8f),_0x3848b3=_0xdb0ba0['UQNEh'](join,_0x5ec1e0,_0x4f7a8f);await _0xdb0ba0[_0x143551(0x82)](copyFile,_0x1bf38c,_0x3848b3),_0x111aa3['push'](_0x4f7a8f);}_0x4dc7a0=await _0xdb0ba0['hQide'](readFile,join(_0x52b97d,_0x143551(0x77)),_0x143551(0x7a));}else{_0x4dc7a0=await readFile(_0x5e357d,'utf-8');const _0x526159=join(_0x5ec1e0,_0xdb0ba0[_0x143551(0x6e)]);await _0xdb0ba0[_0x143551(0x8b)](writeFile,_0x526159,_0x4dc7a0,_0xdb0ba0['UgDDP']),_0x111aa3[_0x143551(0x73)](_0xdb0ba0['VqYMa']);}const {name:_0x259e50}=parseFrontmatter(_0x4dc7a0);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x259e50),console[_0x143551(0x83)](_0x143551(0x80)+_0x5ec1e0),_0xdb0ba0[_0x143551(0x7f)](_0x111aa3[_0x143551(0x96)],0x1)&&console[_0x143551(0x83)](_0x143551(0x91)+_0x111aa3[_0x143551(0x76)](',\x20')),_0xdb0ba0[_0x143551(0x8b)](logLocalAgentInstallation,_0xfcdaf0,{'skillDisplayName':_0x259e50,'installLevel':level},_0x3b47b5)[_0x143551(0x85)](()=>{}),!![];}function getSourceSkillsDir(){const _0x4c2520=_0x2d7cc7,_0x2e3d3c={'Cptva':_0x4c2520(0x88)},_0x4a1363=[join(__dirname,'..','..',_0x4c2520(0x88)),join(__dirname,'..','..','..',_0x2e3d3c['Cptva'])];for(const _0x202730 of _0x4a1363){if(existsSync(_0x202730))return _0x202730;}return _0x4a1363[0x0];}function parseFrontmatter(_0x3ee83d){const _0x2691ae=_0x2d7cc7,_0x45f843=_0x3ee83d['match'](/^---\n([\s\S]+?)\n---/);if(!_0x45f843)throw new Error(_0x2691ae(0x75));const _0x407a90=_0x45f843[0x1],_0xcdb5f8=_0x407a90[_0x2691ae(0x6f)](/name:\s*(.+)/),_0x29cb9e=_0x407a90['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xcdb5f8?.[0x1][_0x2691ae(0x94)]()||'','description':_0x29cb9e?.[0x1][_0x2691ae(0x94)]()||''};}export async function removeSkill(_0x1204c2,_0x23a6e9){const _0x4696ca=_0x2d7cc7,_0x4da0c2={'JvBND':function(_0x2ad1f3,_0x5f20b2){return _0x2ad1f3(_0x5f20b2);},'UtciM':function(_0x187579,_0x40450a,_0x5d6e78){return _0x187579(_0x40450a,_0x5d6e78);}},_0x4477e4=_0x4da0c2['JvBND'](getSkillsDir,_0x23a6e9),_0x27623c=_0x4da0c2[_0x4696ca(0x87)](join,_0x4477e4,_0x1204c2);if(!_0x4da0c2['JvBND'](existsSync,_0x27623c))return![];try{return await rm(_0x27623c,{'recursive':!![]}),console['log'](_0x4696ca(0x89)+_0x1204c2),!![];}catch{return console['warn'](_0x4696ca(0x72)+_0x1204c2),![];}}
@@ -1 +1 @@
1
- const _0x3f05c2=_0x3c03;(function(_0x506313,_0x26c202){const _0x703c71=_0x3c03,_0x4225e6=_0x506313();while(!![]){try{const _0x26a6b3=parseInt(_0x703c71(0x18f))/0x1+parseInt(_0x703c71(0x178))/0x2*(-parseInt(_0x703c71(0x164))/0x3)+parseInt(_0x703c71(0x167))/0x4+-parseInt(_0x703c71(0x196))/0x5*(parseInt(_0x703c71(0x17c))/0x6)+-parseInt(_0x703c71(0x15a))/0x7*(-parseInt(_0x703c71(0x159))/0x8)+-parseInt(_0x703c71(0x161))/0x9+parseInt(_0x703c71(0x163))/0xa;if(_0x26a6b3===_0x26c202)break;else _0x4225e6['push'](_0x4225e6['shift']());}catch(_0x37b6f1){_0x4225e6['push'](_0x4225e6['shift']());}}}(_0x2a67,0x8c04e));import{readFileSync,writeFileSync}from'fs';function _0x3c03(_0x5b7485,_0x154161){_0x5b7485=_0x5b7485-0x150;const _0x2a6723=_0x2a67();let _0x3c0333=_0x2a6723[_0x5b7485];return _0x3c0333;}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x2c3974,_0x309526){const _0x5609d4=_0x3c03,_0x8a75da={'PqAEY':function(_0x3785a9,_0x1434d4){return _0x3785a9>=_0x1434d4;},'ZxmYO':function(_0x41a113,_0x233a09){return _0x41a113&_0x233a09;},'NxbcM':function(_0x486ca2,_0x587ab7){return _0x486ca2>_0x587ab7;},'UVpoa':function(_0x3365aa,_0x173c3b){return _0x3365aa-_0x173c3b;},'TXvBe':function(_0x354ea1,_0x2409d4){return _0x354ea1<_0x2409d4;}};if(_0x8a75da[_0x5609d4(0x162)](_0x309526,_0x2c3974['length']))return[0x0,0x0];const _0x186b29=_0x2c3974[_0x309526];let _0x2eaf01=0x1,_0x4bd527=0x80;while(_0x2eaf01<=0x8&&!_0x8a75da['ZxmYO'](_0x186b29,_0x4bd527)){_0x2eaf01++,_0x4bd527>>=0x1;}if(_0x8a75da['NxbcM'](_0x309526+_0x2eaf01,_0x2c3974['length']))return[0x0,0x0];let _0x1aa959=_0x8a75da['ZxmYO'](_0x186b29,_0x8a75da[_0x5609d4(0x17d)](_0x4bd527,0x1));for(let _0x33e5be=0x1;_0x8a75da[_0x5609d4(0x18e)](_0x33e5be,_0x2eaf01);_0x33e5be++){_0x1aa959=_0x1aa959*0x100+_0x2c3974[_0x309526+_0x33e5be];}return[_0x1aa959,_0x2eaf01];}function readId(_0xd18124,_0x53d24f){const _0x4a2898=_0x3c03,_0x5a8a09={'esgzK':function(_0x3e9183,_0x49c59a){return _0x3e9183>=_0x49c59a;},'oAisO':function(_0x229664,_0x40e6e0){return _0x229664>=_0x40e6e0;},'JiLha':function(_0x4f4821,_0x2b197e){return _0x4f4821>=_0x2b197e;},'aPWgR':function(_0x63e9eb,_0x4a978f){return _0x63e9eb+_0x4a978f;},'lFbsO':function(_0x5e337e,_0x4ba3c6){return _0x5e337e*_0x4ba3c6;}};if(_0x5a8a09[_0x4a2898(0x190)](_0x53d24f,_0xd18124[_0x4a2898(0x16c)]))return[0x0,0x0];const _0xaa0132=_0xd18124[_0x53d24f];let _0x3b8d01;if(_0x5a8a09['oAisO'](_0xaa0132,0x80))_0x3b8d01=0x1;else{if(_0xaa0132>=0x40)_0x3b8d01=0x2;else{if(_0xaa0132>=0x20)_0x3b8d01=0x3;else{if(_0x5a8a09[_0x4a2898(0x187)](_0xaa0132,0x10))_0x3b8d01=0x4;else return[_0xaa0132,0x1];}}}if(_0x53d24f+_0x3b8d01>_0xd18124['length'])return[0x0,0x0];let _0x1ab728=0x0;for(let _0x5309eb=0x0;_0x5309eb<_0x3b8d01;_0x5309eb++){_0x1ab728=_0x5a8a09['aPWgR'](_0x5a8a09['lFbsO'](_0x1ab728,0x100),_0xd18124[_0x53d24f+_0x5309eb]);}return[_0x1ab728,_0x3b8d01];}function readUint(_0x58f09d,_0x2b9099,_0x226a74){const _0x300904=_0x3c03,_0x15f6df={'Plvlw':function(_0x12aa62,_0x26ca07){return _0x12aa62<_0x26ca07;},'hUzpb':function(_0x53334d,_0x2bf53c){return _0x53334d*_0x2bf53c;},'xfsnC':function(_0x1bdfb1,_0x5169cc){return _0x1bdfb1+_0x5169cc;}};let _0x4b1ffa=0x0;for(let _0x3cd8d7=0x0;_0x15f6df['Plvlw'](_0x3cd8d7,_0x226a74);_0x3cd8d7++){_0x4b1ffa=_0x15f6df[_0x300904(0x154)](_0x4b1ffa,0x100)+_0x58f09d[_0x15f6df['xfsnC'](_0x2b9099,_0x3cd8d7)];}return _0x4b1ffa;}function isUnknownSize(_0x4d4451,_0x45836e){const _0x3aca52={'mGiRB':function(_0x39aa75,_0x2c2fa3){return _0x39aa75-_0x2c2fa3;}};return _0x4d4451===_0x3aca52['mGiRB'](Math['pow'](0x2,0x7*_0x45836e),0x1);}function writeVint(_0x23e7d6,_0xd28abd){const _0x34d7d8=_0x3c03,_0x2a0d2c={'DbTBX':function(_0x102081,_0x329209){return _0x102081<_0x329209;},'QBLKe':function(_0x41e9e5,_0x44d708){return _0x41e9e5-_0x44d708;},'ibtCp':function(_0x73a69d,_0x44a296){return _0x73a69d*_0x44a296;},'scNtB':function(_0x6e2365,_0x34d17d){return _0x6e2365>=_0x34d17d;},'saSkn':function(_0x35d423,_0x248c45){return _0x35d423/_0x248c45;},'imZwF':function(_0x148090,_0x1e1c0f){return _0x148090<<_0x1e1c0f;}};let _0x2af155=_0xd28abd||0x1;while(_0x2a0d2c[_0x34d7d8(0x169)](_0x2a0d2c['QBLKe'](Math[_0x34d7d8(0x18d)](0x2,_0x2a0d2c[_0x34d7d8(0x192)](0x7,_0x2af155)),0x2),_0x23e7d6))_0x2af155++;const _0x1731af=Buffer[_0x34d7d8(0x180)](_0x2af155);for(let _0x2b292c=_0x2af155-0x1;_0x2a0d2c['scNtB'](_0x2b292c,0x0);_0x2b292c--){_0x1731af[_0x2b292c]=_0x23e7d6&0xff,_0x23e7d6=Math[_0x34d7d8(0x150)](_0x2a0d2c[_0x34d7d8(0x166)](_0x23e7d6,0x100));}return _0x1731af[0x0]|=_0x2a0d2c['imZwF'](0x1,0x8-_0x2af155),_0x1731af;}function writeUint(_0x201a4c,_0x398f13){const _0xe81076=_0x3c03,_0x6e5b3d={'NpRth':function(_0x175319,_0x343004){return _0x175319>=_0x343004;},'dEdIf':function(_0x140695,_0x5b5b64){return _0x140695/_0x5b5b64;}},_0x40bb27=Buffer['alloc'](_0x398f13);for(let _0x3e34cf=_0x398f13-0x1;_0x6e5b3d[_0xe81076(0x184)](_0x3e34cf,0x0);_0x3e34cf--){_0x40bb27[_0x3e34cf]=_0x201a4c&0xff,_0x201a4c=Math[_0xe81076(0x150)](_0x6e5b3d['dEdIf'](_0x201a4c,0x100));}return _0x40bb27;}function writeUnknownSizeVint(_0x3b5778){const _0x4d29f5=_0x3c03,_0x219897={'ZHfNl':function(_0x19ff86,_0x73d558){return _0x19ff86>>_0x73d558;}},_0x5db6b5=Buffer[_0x4d29f5(0x180)](_0x3b5778,0xff);return _0x5db6b5[0x0]=_0x219897['ZHfNl'](0xff,_0x3b5778-0x1),_0x5db6b5;}function uintSize(_0x19ae85){const _0xe0b5a1=_0x3c03,_0x3156f0={'cKkLz':function(_0x498b29,_0x1139d3){return _0x498b29/_0x1139d3;}};if(_0x19ae85===0x0)return 0x1;let _0x39316c=0x0,_0x32910e=_0x19ae85;while(_0x32910e>0x0){_0x39316c++,_0x32910e=Math[_0xe0b5a1(0x150)](_0x3156f0['cKkLz'](_0x32910e,0x100));}return _0x39316c;}function findTimestampScale(_0x4c4369,_0x3ead09){const _0x3d1dbc=_0x3c03,_0x279e60={'hnzJR':function(_0x21918b,_0x564c29){return _0x21918b+_0x564c29;},'vdILK':function(_0x30b17e,_0x275426){return _0x30b17e===_0x275426;},'plasP':function(_0x2db20c,_0x59f4de){return _0x2db20c+_0x59f4de;},'wIudx':function(_0x5ae17b,_0x815d68,_0x3c2662){return _0x5ae17b(_0x815d68,_0x3c2662);},'Ltxrj':function(_0x453409,_0x3b7936){return _0x453409+_0x3b7936;},'nDtjE':function(_0x5aaed4,_0x57c5d4){return _0x5aaed4===_0x57c5d4;},'xiMZx':function(_0x401fee,_0x3e2a4e){return _0x401fee+_0x3e2a4e;},'SEmQa':function(_0xf4c731,_0x30435e){return _0xf4c731+_0x30435e;},'RYDYY':function(_0x1ebee9,_0x1ae2ec){return _0x1ebee9+_0x1ae2ec;}};let _0x85188e=_0x3ead09;const _0x1092ac=Math[_0x3d1dbc(0x15c)](_0x4c4369['length'],_0x3ead09+0x2710);while(_0x85188e<_0x1092ac){const [_0x4e79a9,_0x254dd0]=readId(_0x4c4369,_0x85188e),[_0x207e25,_0x2e358d]=readVint(_0x4c4369,_0x279e60['hnzJR'](_0x85188e,_0x254dd0));if(_0x279e60['vdILK'](_0x4e79a9,ID_INFO)){let _0x575d1b=_0x85188e+_0x254dd0+_0x2e358d;const _0x22b143=_0x279e60[_0x3d1dbc(0x15e)](_0x575d1b,_0x207e25);while(_0x575d1b<_0x22b143){const [_0x3e7746,_0x3539c3]=readId(_0x4c4369,_0x575d1b),[_0x355a0f,_0x3aa988]=_0x279e60[_0x3d1dbc(0x191)](readVint,_0x4c4369,_0x279e60[_0x3d1dbc(0x189)](_0x575d1b,_0x3539c3));if(_0x279e60[_0x3d1dbc(0x171)](_0x3e7746,ID_TIMESTAMP_SCALE))return readUint(_0x4c4369,_0x279e60['xiMZx'](_0x575d1b,_0x3539c3)+_0x3aa988,_0x355a0f);_0x575d1b+=_0x279e60['SEmQa'](_0x279e60['RYDYY'](_0x3539c3,_0x3aa988),_0x355a0f);}break;}if(_0x4e79a9===ID_CLUSTER)break;if(isUnknownSize(_0x207e25,_0x2e358d))break;_0x85188e+=_0x279e60['plasP'](_0x254dd0,_0x2e358d)+_0x207e25;}return 0xf4240;}function findFirstClusterOffset(_0x46f347,_0x536618){const _0xea5eac=_0x3c03,_0x55fbcb={'pYxJr':function(_0x1767f6,_0x561c93){return _0x1767f6<_0x561c93;},'KCKFg':function(_0x545054,_0xb05bdf,_0x2361b4){return _0x545054(_0xb05bdf,_0x2361b4);},'CCbQi':function(_0x57c031,_0x1aaa41){return _0x57c031===_0x1aaa41;},'tsoDS':function(_0x22a780,_0x1630e3){return _0x22a780+_0x1630e3;},'HRvmH':function(_0x295b72,_0x30bdd2){return _0x295b72+_0x30bdd2;},'qziap':function(_0x36c129,_0x23727d){return _0x36c129+_0x23727d;}};let _0x276190=_0x536618;while(_0x55fbcb[_0xea5eac(0x186)](_0x276190,_0x46f347['length'])){const [_0x3f265a,_0xe2bd95]=_0x55fbcb[_0xea5eac(0x198)](readId,_0x46f347,_0x276190);if(_0x55fbcb[_0xea5eac(0x151)](_0x3f265a,ID_CLUSTER))return _0x276190;const [_0x459e3f,_0x3e3994]=readVint(_0x46f347,_0x55fbcb['tsoDS'](_0x276190,_0xe2bd95));if(isUnknownSize(_0x459e3f,_0x3e3994))return _0x276190;_0x276190+=_0x55fbcb[_0xea5eac(0x177)](_0x55fbcb[_0xea5eac(0x176)](_0xe2bd95,_0x3e3994),_0x459e3f);}return _0x46f347['length'];}function findClusterEnd(_0x5153aa,_0x3fe888,_0x50346e,_0x1fdfda){const _0x4222e8=_0x3c03,_0x114d35={'ygGDW':function(_0x81730e,_0x9df6ad,_0x569fa9){return _0x81730e(_0x9df6ad,_0x569fa9);},'TUhDD':function(_0x109c62,_0x281006){return _0x109c62<_0x281006;},'ejUzM':function(_0x431ef5,_0x5d87de){return _0x431ef5-_0x5d87de;},'LtabT':function(_0x52c515,_0x46f6cb,_0x4ce183){return _0x52c515(_0x46f6cb,_0x4ce183);},'kbUYJ':function(_0x23e73d,_0x285388,_0x5936e0){return _0x23e73d(_0x285388,_0x5936e0);},'GehTQ':function(_0x42a1f3,_0x422685,_0x77403a){return _0x42a1f3(_0x422685,_0x77403a);},'wKoXN':function(_0x13c190,_0x49b578){return _0x13c190+_0x49b578;}};if(!_0x114d35['ygGDW'](isUnknownSize,_0x50346e,_0x1fdfda))return _0x3fe888+_0x50346e;const _0x247b16=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3855c2=_0x3fe888;while(_0x114d35[_0x4222e8(0x158)](_0x3855c2,_0x114d35[_0x4222e8(0x157)](_0x5153aa['length'],0x4))){const [_0x2843a1,_0x361992]=_0x114d35[_0x4222e8(0x17b)](readId,_0x5153aa,_0x3855c2);if(_0x247b16['has'](_0x2843a1))return _0x3855c2;const [_0xfffb9b,_0x59c412]=_0x114d35[_0x4222e8(0x153)](readVint,_0x5153aa,_0x3855c2+_0x361992);if(_0x114d35['GehTQ'](isUnknownSize,_0xfffb9b,_0x59c412))return _0x5153aa['length'];_0x3855c2+=_0x114d35[_0x4222e8(0x16e)](_0x361992+_0x59c412,_0xfffb9b);}return _0x5153aa['length'];}function extractClusters(_0x29c90b,_0x1b0411){const _0x4777b5=_0x3c03,_0x48b03d={'YrtAd':function(_0x206ea2,_0xf4c15a){return _0x206ea2+_0xf4c15a;},'fbYSx':function(_0x5bc25a,_0x4bfa44,_0x905523){return _0x5bc25a(_0x4bfa44,_0x905523);},'pftwR':function(_0x523c21,_0x5a7efc){return _0x523c21+_0x5a7efc;},'cDKrA':function(_0x2591fc,_0x2c1875,_0x299f81,_0x5b2637,_0x3e64f9){return _0x2591fc(_0x2c1875,_0x299f81,_0x5b2637,_0x3e64f9);},'qiTzc':function(_0x257a0a,_0x1f0389){return _0x257a0a<_0x1f0389;},'EBLkq':function(_0xb9bc3d,_0x36aea0,_0x44a16a){return _0xb9bc3d(_0x36aea0,_0x44a16a);},'vprYa':function(_0x3c410a,_0x40a8e5){return _0x3c410a+_0x40a8e5;},'IEIJE':function(_0x272631,_0x3b3e93,_0xde88cf,_0xce9ca5){return _0x272631(_0x3b3e93,_0xde88cf,_0xce9ca5);},'MDnrY':function(_0x15d473,_0x5f0d6b){return _0x15d473+_0x5f0d6b;},'xRyCS':function(_0xad76bf,_0x475c14){return _0xad76bf===_0x475c14;},'nHVaY':function(_0x37ae82,_0x46420f,_0x5df8fb){return _0x37ae82(_0x46420f,_0x5df8fb);},'qxGQW':function(_0x4932ba,_0x1ba5bc,_0x22813b){return _0x4932ba(_0x1ba5bc,_0x22813b);},'kZlHV':function(_0x3d570d,_0x25e4d5){return _0x3d570d+_0x25e4d5;}},_0x18036b=[],_0x1f4042=Buffer[_0x4777b5(0x165)]([0x1f,0x43,0xb6,0x75]);let _0x373580=0x0;while(_0x373580<_0x29c90b['length']){const _0x4a7fdd=_0x29c90b['indexOf'](_0x1f4042,_0x373580);if(_0x4a7fdd===-0x1)break;const [_0x5d369b,_0xdae35a]=readId(_0x29c90b,_0x4a7fdd);if(_0x5d369b!==ID_CLUSTER){_0x373580=_0x48b03d[_0x4777b5(0x197)](_0x4a7fdd,0x1);continue;}const [_0x47e726,_0x316797]=_0x48b03d['fbYSx'](readVint,_0x29c90b,_0x48b03d[_0x4777b5(0x197)](_0x4a7fdd,_0xdae35a)),_0x5f145f=_0x48b03d[_0x4777b5(0x15d)](_0x48b03d[_0x4777b5(0x15d)](_0x4a7fdd,_0xdae35a),_0x316797),_0x407c0f=_0x48b03d['cDKrA'](findClusterEnd,_0x29c90b,_0x5f145f,_0x47e726,_0x316797);let _0x2c06e4=_0x5f145f,_0x103a86=0x0,_0x3e179d=0x2,_0x123476=![],_0x30e42f=Buffer[_0x4777b5(0x180)](0x0),_0x5ba3f2=Buffer[_0x4777b5(0x180)](0x0);while(_0x48b03d[_0x4777b5(0x18b)](_0x2c06e4,_0x407c0f)){const [_0x505364,_0x4fe937]=readId(_0x29c90b,_0x2c06e4),[_0x38d323,_0x113571]=_0x48b03d['EBLkq'](readVint,_0x29c90b,_0x48b03d['vprYa'](_0x2c06e4,_0x4fe937));if(_0x505364===ID_TIMESTAMP){_0x103a86=_0x48b03d[_0x4777b5(0x16b)](readUint,_0x29c90b,_0x48b03d['vprYa'](_0x2c06e4+_0x4fe937,_0x113571),_0x38d323),_0x3e179d=_0x38d323,_0x123476=!![],_0x30e42f=_0x29c90b['slice'](_0x5f145f,_0x2c06e4);const _0x3a6d9f=_0x48b03d['pftwR'](_0x48b03d[_0x4777b5(0x17f)](_0x2c06e4,_0x4fe937),_0x113571)+_0x38d323;_0x5ba3f2=_0x29c90b['slice'](_0x3a6d9f,_0x407c0f);break;}if(_0x48b03d[_0x4777b5(0x152)](_0x505364,ID_CLUSTER))break;if(_0x48b03d['nHVaY'](isUnknownSize,_0x38d323,_0x113571))break;_0x2c06e4+=_0x48b03d['pftwR'](_0x4fe937+_0x113571,_0x38d323);}!_0x123476&&(_0x5ba3f2=_0x29c90b[_0x4777b5(0x170)](_0x5f145f,_0x407c0f));let _0x34d304=_0x103a86;_0x2c06e4=_0x5f145f;while(_0x2c06e4<_0x407c0f){const [_0x495607,_0x2065ed]=readId(_0x29c90b,_0x2c06e4),[_0x43da1d,_0x22594f]=readVint(_0x29c90b,_0x2c06e4+_0x2065ed);if(_0x495607===ID_SIMPLE_BLOCK&&_0x43da1d>=0x4){const _0x511dc8=_0x48b03d[_0x4777b5(0x197)](_0x2c06e4+_0x2065ed,_0x22594f),[,_0x71257]=_0x48b03d[_0x4777b5(0x18c)](readVint,_0x29c90b,_0x511dc8),_0x4ab92c=_0x29c90b['readInt16BE'](_0x48b03d['kZlHV'](_0x511dc8,_0x71257)),_0x41c5ac=_0x103a86+_0x4ab92c;if(_0x41c5ac>_0x34d304)_0x34d304=_0x41c5ac;}if(_0x495607===ID_CLUSTER)break;if(_0x48b03d['EBLkq'](isUnknownSize,_0x43da1d,_0x22594f))break;_0x2c06e4+=_0x48b03d[_0x4777b5(0x15d)](_0x48b03d['vprYa'](_0x2065ed,_0x22594f),_0x43da1d);}_0x18036b['push']({'timestamp':_0x103a86,'maxTicks':_0x34d304,'bodyBeforeTimestamp':_0x30e42f,'bodyAfterTimestamp':_0x5ba3f2,'timestampElementSize':_0x3e179d}),_0x373580=_0x407c0f;}return _0x18036b;}function parseWebm(_0x27be81){const _0x1a7b98=_0x3c03,_0x65c7c4={'bYFMH':function(_0x2b5f47,_0x16277b){return _0x2b5f47+_0x16277b;},'BcqxP':function(_0x1d9001,_0x28ee48,_0x14bff3){return _0x1d9001(_0x28ee48,_0x14bff3);},'pSLfb':function(_0x137493,_0x3741d9){return _0x137493!==_0x3741d9;},'sVcZa':function(_0x213a36,_0x2f06ba,_0x1cb638){return _0x213a36(_0x2f06ba,_0x1cb638);}};let _0x5a90bc=0x0;const [,_0x354b86]=readId(_0x27be81,_0x5a90bc),[_0x29933e,_0x1ac749]=readVint(_0x27be81,_0x5a90bc+_0x354b86);_0x5a90bc+=_0x65c7c4[_0x1a7b98(0x174)](_0x65c7c4['bYFMH'](_0x354b86,_0x1ac749),_0x29933e);const [_0x866da9,_0x566439]=_0x65c7c4['BcqxP'](readId,_0x27be81,_0x5a90bc);if(_0x65c7c4['pSLfb'](_0x866da9,ID_SEGMENT))return null;const [,_0x56bf7e]=_0x65c7c4[_0x1a7b98(0x193)](readVint,_0x27be81,_0x65c7c4['bYFMH'](_0x5a90bc,_0x566439)),_0x59cc65=_0x5a90bc+_0x566439+_0x56bf7e,_0x2e09ee=_0x65c7c4[_0x1a7b98(0x193)](findTimestampScale,_0x27be81,_0x59cc65),_0x33fe3c=findFirstClusterOffset(_0x27be81,_0x59cc65),_0x993dea=_0x27be81['slice'](0x0,_0x33fe3c),_0x5c812a=_0x65c7c4[_0x1a7b98(0x182)](extractClusters,_0x27be81,_0x2e09ee);let _0x212ad5=0x0;for(const _0x437de8 of _0x5c812a){if(_0x437de8[_0x1a7b98(0x15b)]>_0x212ad5)_0x212ad5=_0x437de8[_0x1a7b98(0x15b)];}return{'header':_0x993dea,'clusters':_0x5c812a,'timestampScale':_0x2e09ee,'maxTimestampTicks':_0x212ad5};}function buildCluster(_0x199dfa,_0x389860,_0x592ab9){const _0x37cd51=_0x3c03,_0x9e9313={'hCMFy':function(_0x189525,_0x411823){return _0x189525(_0x411823);},'iiRNG':function(_0xe2fb59,_0x431de6,_0xddb3af){return _0xe2fb59(_0x431de6,_0xddb3af);},'EqyuV':function(_0x472d16,_0x238d7c){return _0x472d16(_0x238d7c);}},_0x3808c6=Buffer[_0x37cd51(0x165)]([0x1f,0x43,0xb6,0x75]),_0x22e733=Math[_0x37cd51(0x18a)](0x4,_0x9e9313['hCMFy'](uintSize,_0x199dfa)),_0x490358=Buffer[_0x37cd51(0x181)]([Buffer[_0x37cd51(0x165)]([ID_TIMESTAMP]),_0x9e9313['hCMFy'](writeVint,_0x22e733),_0x9e9313['iiRNG'](writeUint,_0x199dfa,_0x22e733)]),_0x2edde=Buffer['concat']([_0x389860,_0x490358,_0x592ab9]),_0x28338d=_0x9e9313['EqyuV'](writeVint,_0x2edde['length']);return Buffer[_0x37cd51(0x181)]([_0x3808c6,_0x28338d,_0x2edde]);}function _0x2a67(){const _0x4ce25c=['TUhDD','296qNEiFm','189770UrosyE','maxTicks','min','pftwR','plasP','ltTht','GnBZk','5824719SGZEhw','PqAEY','6830850OsJXSs','3FiJPLR','from','saSkn','255652sXLdcU','xGkXO','DbTBX','czWjj','IEIJE','length','XcnUP','wKoXN','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','slice','nDtjE','bodyAfterTimestamp','argv','bYFMH','eOBLk','qziap','HRvmH','2240336Honluh','clusters','Joqvy','LtabT','30rCweHP','UVpoa','fxzFx','MDnrY','alloc','concat','sVcZa','log','NpRth','DRMJI','pYxJr','JiLha','UEdGI','Ltxrj','max','qiTzc','qxGQW','pow','TXvBe','1069494yqbDMX','esgzK','wIudx','ibtCp','BcqxP','stitchWebmFiles.ts','JfiLN','478685mkxINO','YrtAd','KCKFg','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','floor','CCbQi','xRyCS','kbUYJ','hUzpb','endsWith','header','ejUzM'];_0x2a67=function(){return _0x4ce25c;};return _0x2a67();}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x544e26){const _0x55fab6=_0x3c03,_0x179128={'GnBZk':function(_0x929624,_0x2239c1,_0x502c09){return _0x929624(_0x2239c1,_0x502c09);},'XcnUP':function(_0x2a5656,_0x1dd5be){return _0x2a5656+_0x1dd5be;},'czWjj':function(_0x398a6d,_0x4e2a7b){return _0x398a6d+_0x4e2a7b;},'xGkXO':function(_0x7320ae,_0x53e400){return _0x7320ae+_0x53e400;},'JfiLN':function(_0x16c2a5,_0x2edd71,_0x15e05e){return _0x16c2a5(_0x2edd71,_0x15e05e);},'eOBLk':function(_0x38152e,_0x2a99e3){return _0x38152e+_0x2a99e3;},'UEdGI':function(_0xc56b78,_0x472c56){return _0xc56b78(_0x472c56);},'xaLmO':function(_0x2cc3c2,_0x4d162d){return _0x2cc3c2+_0x4d162d;},'ltTht':function(_0x592dd0,_0x2c5bbb){return _0x592dd0<_0x2c5bbb;},'ZHnSe':function(_0xdc634e,_0x25a314){return _0xdc634e+_0x25a314;},'iRXiV':function(_0x2da137,_0x2c343b){return _0x2da137+_0x2c343b;}},_0x1ec111=Buffer[_0x55fab6(0x165)](_0x544e26);let _0x1eaea1=0x0;const [,_0x4e37a6]=_0x179128[_0x55fab6(0x160)](readId,_0x1ec111,_0x1eaea1),[_0xd76a69,_0x4be957]=_0x179128['GnBZk'](readVint,_0x1ec111,_0x179128[_0x55fab6(0x16d)](_0x1eaea1,_0x4e37a6)),_0x13bb70=_0x179128['czWjj'](_0x179128['xGkXO'](_0x1eaea1,_0x4e37a6)+_0x4be957,_0xd76a69),[,_0x2832ec]=readId(_0x1ec111,_0x13bb70),[,_0xf77254]=_0x179128[_0x55fab6(0x195)](readVint,_0x1ec111,_0x179128[_0x55fab6(0x175)](_0x13bb70,_0x2832ec)),_0x480fd4=_0x179128[_0x55fab6(0x16a)](_0x13bb70+_0x2832ec,_0xf77254),_0x29e385=_0x179128[_0x55fab6(0x188)](writeUnknownSizeVint,_0xf77254);_0x29e385['copy'](_0x1ec111,_0x179128[_0x55fab6(0x175)](_0x13bb70,_0x2832ec));let _0xb1e61e=_0x480fd4;const _0xe4cc5c=Math['min'](_0x1ec111['length'],_0x179128['xaLmO'](_0x480fd4,0x2710));while(_0x179128[_0x55fab6(0x15f)](_0xb1e61e,_0xe4cc5c)){const [_0x3fc327,_0x42e33e]=_0x179128['GnBZk'](readId,_0x1ec111,_0xb1e61e),[_0x4c79c0,_0x3246f5]=readVint(_0x1ec111,_0x179128['ZHnSe'](_0xb1e61e,_0x42e33e));if(_0x3fc327===ID_CLUSTER)break;if(isUnknownSize(_0x4c79c0,_0x3246f5))break;if(_0x3fc327===ID_INFO){const _0x1b6b7c=_0xb1e61e+_0x42e33e+_0x3246f5,_0x4c6c6f=_0x1b6b7c+_0x4c79c0,_0x581712=[];let _0x51a40d=_0x1b6b7c;while(_0x51a40d<_0x4c6c6f){const [_0x4f8c20,_0x2899c2]=_0x179128['GnBZk'](readId,_0x1ec111,_0x51a40d),[_0x320e49,_0x2a6565]=_0x179128['GnBZk'](readVint,_0x1ec111,_0x179128['czWjj'](_0x51a40d,_0x2899c2)),_0x3d3218=_0x2899c2+_0x2a6565+_0x320e49;_0x4f8c20!==ID_DURATION&&_0x581712['push'](_0x1ec111[_0x55fab6(0x170)](_0x51a40d,_0x179128['iRXiV'](_0x51a40d,_0x3d3218))),_0x51a40d+=_0x3d3218;}const _0x323b40=Buffer[_0x55fab6(0x181)](_0x581712),_0x1aad64=Buffer[_0x55fab6(0x181)]([_0x1ec111['slice'](_0xb1e61e,_0x179128[_0x55fab6(0x168)](_0xb1e61e,_0x42e33e)),_0x179128['GnBZk'](writeVint,_0x323b40['length'],_0x3246f5)]);return Buffer['concat']([_0x1ec111[_0x55fab6(0x170)](0x0,_0xb1e61e),_0x1aad64,_0x323b40,_0x1ec111['slice'](_0x4c6c6f)]);}_0xb1e61e+=_0x179128['xaLmO'](_0x42e33e+_0x3246f5,_0x4c79c0);}return _0x1ec111;}export function stitchWebmFiles(_0xec1e2a,_0x2aca13){const _0x10773c=_0x3c03,_0x52d1ff={'bSwLX':function(_0x441fe9,_0x3b47cd){return _0x441fe9<=_0x3b47cd;},'fxzFx':function(_0x5c8c8e,_0x223544){return _0x5c8c8e(_0x223544);},'Joqvy':function(_0x6f7baa,_0x5644c1){return _0x6f7baa(_0x5644c1);},'yguSB':function(_0x2de708,_0x1ffb2d){return _0x2de708+_0x1ffb2d;},'KHFWb':function(_0x24d329,_0x89e4bf,_0x4fb5a4,_0x365cdf){return _0x24d329(_0x89e4bf,_0x4fb5a4,_0x365cdf);},'DRMJI':function(_0x2ebdc5,_0x583341){return _0x2ebdc5+_0x583341;}};if(_0x52d1ff['bSwLX'](_0xec1e2a['length'],0x1))return![];const _0x69436=[];for(const _0x55e422 of _0xec1e2a){const _0x34375a=_0x52d1ff[_0x10773c(0x17e)](readFileSync,_0x55e422),_0x21b688=_0x52d1ff['Joqvy'](parseWebm,_0x34375a);if(!_0x21b688||_0x21b688[_0x10773c(0x179)][_0x10773c(0x16c)]===0x0)return![];_0x69436['push'](_0x21b688);}const _0x12bb73=_0x69436[0x0],_0x119c2e=_0x52d1ff[_0x10773c(0x17a)](rebuildHeaderWithoutDuration,_0x12bb73[_0x10773c(0x156)]),_0x44556f=[_0x119c2e];let _0x592ce1=0x0;for(let _0x4e41e2=0x0;_0x4e41e2<_0x69436['length'];_0x4e41e2++){const _0x2c1a42=_0x69436[_0x4e41e2];for(const _0x201a8f of _0x2c1a42['clusters']){const _0x50cd0d=_0x52d1ff['yguSB'](_0x201a8f['timestamp'],_0x592ce1);_0x44556f['push'](_0x52d1ff['KHFWb'](buildCluster,_0x50cd0d,_0x201a8f['bodyBeforeTimestamp'],_0x201a8f[_0x10773c(0x172)]));}const _0x56157f=0x1e;_0x592ce1+=_0x52d1ff[_0x10773c(0x185)](_0x2c1a42['maxTimestampTicks'],_0x56157f);}return writeFileSync(_0x2aca13,Buffer[_0x10773c(0x181)](_0x44556f)),!![];}if(process['argv'][0x1]?.[_0x3f05c2(0x155)](_0x3f05c2(0x194))||process[_0x3f05c2(0x173)][0x1]?.[_0x3f05c2(0x155)]('stitchWebmFiles.js')){const args=process[_0x3f05c2(0x173)][_0x3f05c2(0x170)](0x2);args['length']<0x3&&(console['error'](_0x3f05c2(0x16f)),process['exit'](0x1));const output=args[args[_0x3f05c2(0x16c)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x3f05c2(0x183)]('Stitched\x20'+inputs[_0x3f05c2(0x16c)]+'\x20files\x20->\x20'+output):console['log'](_0x3f05c2(0x199));}
1
+ function _0x5b76(){const _0x400018=['Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','lZvBe','max','has','argv','aIDsX','push','bodyAfterTimestamp','eraSi','clusters','BoIes','sEWPY','134094aizPEm','90IeEpin','bodyBeforeTimestamp','105sNhorg','copy','endsWith','235QTXSTF','QVYAe','exit','XtvKE','maxTimestampTicks','MfVFo','wStvD','QuTKC','length','vVqGU','QhADZ','slice','2byYZyO','WPKcc','AcHgV','LUDgA','IkZAv','tCEDe','HGLGb','pow','UlYmc','UtLKC','7660BFdfwt','EYXuA','QsxiN','400455UcQIZf','jRgec','header','48dOfzrz','timestamp','IIgXH','6716898qdoIpO','124383JiysNQ','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','from','WAJkd','kwqsm','NOEtJ','log','alloc','5329973xJwJZh','DHTXM','concat','OMjQk','lrRbj','FGVco','enaOW','indexOf','GSWcC','maxTicks','ulTQB','733232EdEaWs'];_0x5b76=function(){return _0x400018;};return _0x5b76();}const _0xba6e0c=_0x11b5;(function(_0x571973,_0x16ca0f){const _0xa89e4b=_0x11b5,_0x5c4fea=_0x571973();while(!![]){try{const _0x19d05c=-parseInt(_0xa89e4b(0x1c7))/0x1*(parseInt(_0xa89e4b(0x1b5))/0x2)+-parseInt(_0xa89e4b(0x195))/0x3+-parseInt(_0xa89e4b(0x1d1))/0x4*(parseInt(_0xa89e4b(0x1bb))/0x5)+parseInt(_0xa89e4b(0x194))/0x6+parseInt(_0xa89e4b(0x1b8))/0x7*(parseInt(_0xa89e4b(0x1a8))/0x8)+parseInt(_0xa89e4b(0x18e))/0x9*(parseInt(_0xa89e4b(0x1b6))/0xa)+-parseInt(_0xa89e4b(0x19d))/0xb*(parseInt(_0xa89e4b(0x191))/0xc);if(_0x19d05c===_0x16ca0f)break;else _0x5c4fea['push'](_0x5c4fea['shift']());}catch(_0x218ebe){_0x5c4fea['push'](_0x5c4fea['shift']());}}}(_0x5b76,0xa8b48));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x5bf263,_0xfd0e11){const _0x2bf270=_0x11b5,_0xf21cfb={'QVYAe':function(_0x475b5c,_0x5f055b){return _0x475b5c<=_0x5f055b;},'dwbyH':function(_0x4530d5,_0x549993){return _0x4530d5>_0x549993;},'bEESh':function(_0x1c8c01,_0x51004c){return _0x1c8c01+_0x51004c;},'NOEtJ':function(_0x57d3e3,_0x36e4fb){return _0x57d3e3*_0x36e4fb;}};if(_0xfd0e11>=_0x5bf263['length'])return[0x0,0x0];const _0x15d3cc=_0x5bf263[_0xfd0e11];let _0x3f7182=0x1,_0x523090=0x80;while(_0xf21cfb[_0x2bf270(0x1bc)](_0x3f7182,0x8)&&!(_0x15d3cc&_0x523090)){_0x3f7182++,_0x523090>>=0x1;}if(_0xf21cfb['dwbyH'](_0xf21cfb['bEESh'](_0xfd0e11,_0x3f7182),_0x5bf263[_0x2bf270(0x1c3)]))return[0x0,0x0];let _0x30e178=_0x15d3cc&_0x523090-0x1;for(let _0x5e63f5=0x1;_0x5e63f5<_0x3f7182;_0x5e63f5++){_0x30e178=_0xf21cfb['bEESh'](_0xf21cfb[_0x2bf270(0x19a)](_0x30e178,0x100),_0x5bf263[_0xf21cfb['bEESh'](_0xfd0e11,_0x5e63f5)]);}return[_0x30e178,_0x3f7182];}function readId(_0x17c7d4,_0xaf73cf){const _0x2eaa6c=_0x11b5,_0x2d4090={'lrRbj':function(_0x548ffd,_0x1ebbbf){return _0x548ffd>=_0x1ebbbf;},'WUgXJ':function(_0x8178c8,_0x14581a){return _0x8178c8>=_0x14581a;},'RTVff':function(_0x43a399,_0x40ccdf){return _0x43a399+_0x40ccdf;},'JcJgj':function(_0x1bed5d,_0x9c3851){return _0x1bed5d*_0x9c3851;}};if(_0xaf73cf>=_0x17c7d4['length'])return[0x0,0x0];const _0x3cd449=_0x17c7d4[_0xaf73cf];let _0x79a898;if(_0x2d4090[_0x2eaa6c(0x1a1)](_0x3cd449,0x80))_0x79a898=0x1;else{if(_0x3cd449>=0x40)_0x79a898=0x2;else{if(_0x3cd449>=0x20)_0x79a898=0x3;else{if(_0x2d4090['WUgXJ'](_0x3cd449,0x10))_0x79a898=0x4;else return[_0x3cd449,0x1];}}}if(_0x2d4090['RTVff'](_0xaf73cf,_0x79a898)>_0x17c7d4[_0x2eaa6c(0x1c3)])return[0x0,0x0];let _0x80d807=0x0;for(let _0x7fe6fb=0x0;_0x7fe6fb<_0x79a898;_0x7fe6fb++){_0x80d807=_0x2d4090['JcJgj'](_0x80d807,0x100)+_0x17c7d4[_0xaf73cf+_0x7fe6fb];}return[_0x80d807,_0x79a898];}function readUint(_0x5a4233,_0xdf29c1,_0x54ad4f){const _0x514155={'ShDIV':function(_0x227c2c,_0x4ccfa1){return _0x227c2c*_0x4ccfa1;}};let _0x15aa6b=0x0;for(let _0x79239b=0x0;_0x79239b<_0x54ad4f;_0x79239b++){_0x15aa6b=_0x514155['ShDIV'](_0x15aa6b,0x100)+_0x5a4233[_0xdf29c1+_0x79239b];}return _0x15aa6b;}function isUnknownSize(_0x102b18,_0x359348){const _0x18c710=_0x11b5,_0x3d0a71={'vRvoz':function(_0x310ea4,_0x2e6fb7){return _0x310ea4===_0x2e6fb7;}};return _0x3d0a71['vRvoz'](_0x102b18,Math[_0x18c710(0x1ce)](0x2,0x7*_0x359348)-0x1);}function writeVint(_0x5906d0,_0x4fd4ec){const _0x49a6a4=_0x11b5,_0x291fa9={'bOooI':function(_0x23f3f9,_0xe98fce){return _0x23f3f9-_0xe98fce;},'AYjOU':function(_0xfa8a8f,_0x588740){return _0xfa8a8f/_0x588740;},'ldyvX':function(_0x1113eb,_0x19d14f){return _0x1113eb-_0x19d14f;}};let _0x20c62c=_0x4fd4ec||0x1;while(_0x291fa9['bOooI'](Math[_0x49a6a4(0x1ce)](0x2,0x7*_0x20c62c),0x2)<_0x5906d0)_0x20c62c++;const _0x285104=Buffer[_0x49a6a4(0x19c)](_0x20c62c);for(let _0x575c0f=_0x20c62c-0x1;_0x575c0f>=0x0;_0x575c0f--){_0x285104[_0x575c0f]=_0x5906d0&0xff,_0x5906d0=Math['floor'](_0x291fa9['AYjOU'](_0x5906d0,0x100));}return _0x285104[0x0]|=0x1<<_0x291fa9['ldyvX'](0x8,_0x20c62c),_0x285104;}function writeUint(_0x867e8f,_0x5ca415){const _0x578799=_0x11b5,_0x11c080={'BoIes':function(_0xb6620d,_0x4d2cf9){return _0xb6620d&_0x4d2cf9;},'TPOOS':function(_0x5ca715,_0x5dc4e4){return _0x5ca715/_0x5dc4e4;}},_0x168127=Buffer['alloc'](_0x5ca415);for(let _0x52d54b=_0x5ca415-0x1;_0x52d54b>=0x0;_0x52d54b--){_0x168127[_0x52d54b]=_0x11c080[_0x578799(0x1b3)](_0x867e8f,0xff),_0x867e8f=Math['floor'](_0x11c080['TPOOS'](_0x867e8f,0x100));}return _0x168127;}function writeUnknownSizeVint(_0x4802ad){const _0x4717cc=_0x11b5,_0x43bee1={'tCEDe':function(_0x389220,_0x3de7a3){return _0x389220>>_0x3de7a3;},'UlOjX':function(_0x395520,_0x3affe4){return _0x395520-_0x3affe4;}},_0x35f22a=Buffer['alloc'](_0x4802ad,0xff);return _0x35f22a[0x0]=_0x43bee1[_0x4717cc(0x1cc)](0xff,_0x43bee1['UlOjX'](_0x4802ad,0x1)),_0x35f22a;}function uintSize(_0x5aa832){const _0x5b7ab5={'DLWJd':function(_0x2e2ff2,_0x5d249c){return _0x2e2ff2===_0x5d249c;},'LyUTd':function(_0x1d4b71,_0x8c5e1){return _0x1d4b71>_0x8c5e1;}};if(_0x5b7ab5['DLWJd'](_0x5aa832,0x0))return 0x1;let _0x3ce2a4=0x0,_0x546c7d=_0x5aa832;while(_0x5b7ab5['LyUTd'](_0x546c7d,0x0)){_0x3ce2a4++,_0x546c7d=Math['floor'](_0x546c7d/0x100);}return _0x3ce2a4;}function findTimestampScale(_0x25bd4f,_0xe1e79f){const _0x59eb6c=_0x11b5,_0x5506ea={'HGLGb':function(_0x1bfe7f,_0x755f2){return _0x1bfe7f+_0x755f2;},'UFWuv':function(_0x51ac03,_0x4af127){return _0x51ac03<_0x4af127;},'enaOW':function(_0x1f3a88,_0x342048){return _0x1f3a88+_0x342048;},'jRgec':function(_0x5e7161,_0x5b8090){return _0x5e7161===_0x5b8090;},'aIDsX':function(_0x3ab68c,_0x12420a){return _0x3ab68c+_0x12420a;},'klSBe':function(_0x257734,_0x4faf21){return _0x257734<_0x4faf21;},'FGVco':function(_0x1102e4,_0x468ead,_0x418f24){return _0x1102e4(_0x468ead,_0x418f24);},'OMjQk':function(_0x6490e0,_0x322bcb){return _0x6490e0+_0x322bcb;},'LUDgA':function(_0x410b8b,_0x431ac2){return _0x410b8b===_0x431ac2;},'Nqyjy':function(_0x36eb51,_0x378ba3){return _0x36eb51+_0x378ba3;}};let _0x29a1eb=_0xe1e79f;const _0x478661=Math['min'](_0x25bd4f['length'],_0x5506ea['HGLGb'](_0xe1e79f,0x2710));while(_0x5506ea['UFWuv'](_0x29a1eb,_0x478661)){const [_0x25a18a,_0x520e36]=readId(_0x25bd4f,_0x29a1eb),[_0x3c4e1f,_0x2dd69d]=readVint(_0x25bd4f,_0x5506ea[_0x59eb6c(0x1a3)](_0x29a1eb,_0x520e36));if(_0x5506ea[_0x59eb6c(0x18f)](_0x25a18a,ID_INFO)){let _0x35ec86=_0x5506ea['aIDsX'](_0x5506ea[_0x59eb6c(0x1a3)](_0x29a1eb,_0x520e36),_0x2dd69d);const _0x4467bc=_0x35ec86+_0x3c4e1f;while(_0x5506ea['klSBe'](_0x35ec86,_0x4467bc)){const [_0x583fce,_0x289f03]=readId(_0x25bd4f,_0x35ec86),[_0x3783e4,_0x1ebdc2]=_0x5506ea[_0x59eb6c(0x1a2)](readVint,_0x25bd4f,_0x5506ea[_0x59eb6c(0x1a0)](_0x35ec86,_0x289f03));if(_0x5506ea[_0x59eb6c(0x1ca)](_0x583fce,ID_TIMESTAMP_SCALE))return readUint(_0x25bd4f,_0x35ec86+_0x289f03+_0x1ebdc2,_0x3783e4);_0x35ec86+=_0x5506ea[_0x59eb6c(0x1ae)](_0x5506ea[_0x59eb6c(0x1cd)](_0x289f03,_0x1ebdc2),_0x3783e4);}break;}if(_0x25a18a===ID_CLUSTER)break;if(_0x5506ea['FGVco'](isUnknownSize,_0x3c4e1f,_0x2dd69d))break;_0x29a1eb+=_0x5506ea['Nqyjy'](_0x520e36,_0x2dd69d)+_0x3c4e1f;}return 0xf4240;}function findFirstClusterOffset(_0x20d2a1,_0x2b6d21){const _0x5c61df=_0x11b5,_0x2180f5={'AcHgV':function(_0x49caf0,_0x53b9e0){return _0x49caf0<_0x53b9e0;},'QsxiN':function(_0x2f81da,_0x4b1787,_0x46fad9){return _0x2f81da(_0x4b1787,_0x46fad9);}};let _0x4b879b=_0x2b6d21;while(_0x2180f5[_0x5c61df(0x1c9)](_0x4b879b,_0x20d2a1['length'])){const [_0x160686,_0x567ab0]=_0x2180f5['QsxiN'](readId,_0x20d2a1,_0x4b879b);if(_0x160686===ID_CLUSTER)return _0x4b879b;const [_0x1cb0ed,_0x443559]=_0x2180f5[_0x5c61df(0x18d)](readVint,_0x20d2a1,_0x4b879b+_0x567ab0);if(isUnknownSize(_0x1cb0ed,_0x443559))return _0x4b879b;_0x4b879b+=_0x567ab0+_0x443559+_0x1cb0ed;}return _0x20d2a1['length'];}function findClusterEnd(_0x28dfcd,_0x3f67a2,_0x506291,_0x24bf10){const _0x3daaa0=_0x11b5,_0x56420f={'QuTKC':function(_0x802ce4,_0x45acaa){return _0x802ce4+_0x45acaa;},'vVqGU':function(_0x365c46,_0x243183,_0x57ba04){return _0x365c46(_0x243183,_0x57ba04);},'hcsQI':function(_0x26dfad,_0x5a6634){return _0x26dfad+_0x5a6634;}};if(!isUnknownSize(_0x506291,_0x24bf10))return _0x56420f[_0x3daaa0(0x1c2)](_0x3f67a2,_0x506291);const _0x3825f8=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0xbb0fe8=_0x3f67a2;while(_0xbb0fe8<_0x28dfcd[_0x3daaa0(0x1c3)]-0x4){const [_0x358684,_0x5f5209]=_0x56420f['vVqGU'](readId,_0x28dfcd,_0xbb0fe8);if(_0x3825f8[_0x3daaa0(0x1ac)](_0x358684))return _0xbb0fe8;const [_0x285c81,_0x309583]=_0x56420f[_0x3daaa0(0x1c4)](readVint,_0x28dfcd,_0xbb0fe8+_0x5f5209);if(_0x56420f[_0x3daaa0(0x1c4)](isUnknownSize,_0x285c81,_0x309583))return _0x28dfcd['length'];_0xbb0fe8+=_0x56420f['hcsQI'](_0x5f5209,_0x309583)+_0x285c81;}return _0x28dfcd['length'];}function extractClusters(_0x46adbf,_0x1096e9){const _0xa8085b=_0x11b5,_0x2ae9d1={'DHTXM':function(_0x469252,_0x5d1249){return _0x469252<_0x5d1249;},'eraSi':function(_0x5c4256,_0x3a7e36){return _0x5c4256===_0x3a7e36;},'WPKcc':function(_0x53e06f,_0x576bf2,_0x43d413){return _0x53e06f(_0x576bf2,_0x43d413);},'GSWcC':function(_0x5d005e,_0x3f292f){return _0x5d005e+_0x3f292f;},'XtvKE':function(_0x45e226,_0x17c0f1){return _0x45e226+_0x17c0f1;},'OMCNP':function(_0x1e5ee9,_0x4dd103){return _0x1e5ee9+_0x4dd103;},'BLXZY':function(_0x588051,_0x37750d,_0x5b137e,_0x5d0f8a,_0x4fdd6b){return _0x588051(_0x37750d,_0x5b137e,_0x5d0f8a,_0x4fdd6b);},'EYXuA':function(_0x29354a,_0x591c45,_0xd63b8f){return _0x29354a(_0x591c45,_0xd63b8f);},'QhADZ':function(_0x935f06,_0x137a78){return _0x935f06===_0x137a78;},'ZNtmU':function(_0x5e4e42,_0x5cba83,_0x232632,_0x50ee46){return _0x5e4e42(_0x5cba83,_0x232632,_0x50ee46);},'UtLKC':function(_0x3cff31,_0x5ecf5a){return _0x3cff31+_0x5ecf5a;},'ulTQB':function(_0xad715f,_0x289419){return _0xad715f+_0x289419;},'cxxvl':function(_0x35564e,_0x1ff7fa){return _0x35564e+_0x1ff7fa;},'kwqsm':function(_0x4bf352,_0x2ee068){return _0x4bf352+_0x2ee068;},'RJpCH':function(_0x298bab,_0x507f34,_0x230906){return _0x298bab(_0x507f34,_0x230906);},'sEWPY':function(_0x2d8343,_0x4244d4){return _0x2d8343>=_0x4244d4;},'dHyXV':function(_0x2a7ff3,_0x514ef9){return _0x2a7ff3>_0x514ef9;}},_0x5cf342=[],_0x4e3457=Buffer[_0xa8085b(0x197)]([0x1f,0x43,0xb6,0x75]);let _0x236dd9=0x0;while(_0x2ae9d1[_0xa8085b(0x19e)](_0x236dd9,_0x46adbf[_0xa8085b(0x1c3)])){const _0x539f9a=_0x46adbf[_0xa8085b(0x1a4)](_0x4e3457,_0x236dd9);if(_0x2ae9d1[_0xa8085b(0x1b1)](_0x539f9a,-0x1))break;const [_0x436a2f,_0x2a7641]=_0x2ae9d1[_0xa8085b(0x1c8)](readId,_0x46adbf,_0x539f9a);if(_0x436a2f!==ID_CLUSTER){_0x236dd9=_0x2ae9d1[_0xa8085b(0x1a5)](_0x539f9a,0x1);continue;}const [_0x1f17c3,_0x232a17]=_0x2ae9d1[_0xa8085b(0x1c8)](readVint,_0x46adbf,_0x539f9a+_0x2a7641),_0x3dd035=_0x2ae9d1[_0xa8085b(0x1be)](_0x2ae9d1['OMCNP'](_0x539f9a,_0x2a7641),_0x232a17),_0x5135c0=_0x2ae9d1['BLXZY'](findClusterEnd,_0x46adbf,_0x3dd035,_0x1f17c3,_0x232a17);let _0x4f19d9=_0x3dd035,_0x127ea6=0x0,_0x2f6737=0x2,_0x2dfa53=![],_0x33e2c1=Buffer['alloc'](0x0),_0x308520=Buffer[_0xa8085b(0x19c)](0x0);while(_0x4f19d9<_0x5135c0){const [_0x26abae,_0x3aa81c]=readId(_0x46adbf,_0x4f19d9),[_0x262d8d,_0x282fdf]=_0x2ae9d1[_0xa8085b(0x1d2)](readVint,_0x46adbf,_0x4f19d9+_0x3aa81c);if(_0x2ae9d1[_0xa8085b(0x1c5)](_0x26abae,ID_TIMESTAMP)){_0x127ea6=_0x2ae9d1['ZNtmU'](readUint,_0x46adbf,_0x2ae9d1[_0xa8085b(0x1d0)](_0x2ae9d1[_0xa8085b(0x1a7)](_0x4f19d9,_0x3aa81c),_0x282fdf),_0x262d8d),_0x2f6737=_0x262d8d,_0x2dfa53=!![],_0x33e2c1=_0x46adbf[_0xa8085b(0x1c6)](_0x3dd035,_0x4f19d9);const _0x573137=_0x2ae9d1['cxxvl'](_0x4f19d9+_0x3aa81c,_0x282fdf)+_0x262d8d;_0x308520=_0x46adbf[_0xa8085b(0x1c6)](_0x573137,_0x5135c0);break;}if(_0x2ae9d1[_0xa8085b(0x1b1)](_0x26abae,ID_CLUSTER))break;if(isUnknownSize(_0x262d8d,_0x282fdf))break;_0x4f19d9+=_0x2ae9d1['kwqsm'](_0x2ae9d1[_0xa8085b(0x199)](_0x3aa81c,_0x282fdf),_0x262d8d);}!_0x2dfa53&&(_0x308520=_0x46adbf[_0xa8085b(0x1c6)](_0x3dd035,_0x5135c0));let _0x206d54=_0x127ea6;_0x4f19d9=_0x3dd035;while(_0x2ae9d1[_0xa8085b(0x19e)](_0x4f19d9,_0x5135c0)){const [_0x25b72d,_0x4b466e]=readId(_0x46adbf,_0x4f19d9),[_0x32f3dc,_0x1e1ae3]=_0x2ae9d1['RJpCH'](readVint,_0x46adbf,_0x2ae9d1['GSWcC'](_0x4f19d9,_0x4b466e));if(_0x25b72d===ID_SIMPLE_BLOCK&&_0x2ae9d1[_0xa8085b(0x1b4)](_0x32f3dc,0x4)){const _0x3e78ad=_0x2ae9d1['ulTQB'](_0x4f19d9,_0x4b466e)+_0x1e1ae3,[,_0x1cd39e]=_0x2ae9d1[_0xa8085b(0x1c8)](readVint,_0x46adbf,_0x3e78ad),_0x100fbc=_0x46adbf['readInt16BE'](_0x3e78ad+_0x1cd39e),_0x2e544a=_0x127ea6+_0x100fbc;if(_0x2ae9d1['dHyXV'](_0x2e544a,_0x206d54))_0x206d54=_0x2e544a;}if(_0x2ae9d1[_0xa8085b(0x1c5)](_0x25b72d,ID_CLUSTER))break;if(isUnknownSize(_0x32f3dc,_0x1e1ae3))break;_0x4f19d9+=_0x2ae9d1[_0xa8085b(0x1be)](_0x4b466e+_0x1e1ae3,_0x32f3dc);}_0x5cf342['push']({'timestamp':_0x127ea6,'maxTicks':_0x206d54,'bodyBeforeTimestamp':_0x33e2c1,'bodyAfterTimestamp':_0x308520,'timestampElementSize':_0x2f6737}),_0x236dd9=_0x5135c0;}return _0x5cf342;}function parseWebm(_0x43ee09){const _0x3b6809=_0x11b5,_0x533d77={'lZvBe':function(_0x4ee954,_0x19c5a4,_0x247987){return _0x4ee954(_0x19c5a4,_0x247987);},'hDSFA':function(_0x4d8eb3,_0xb527b4){return _0x4d8eb3+_0xb527b4;},'Yjemx':function(_0x11c8f0,_0x155cae){return _0x11c8f0!==_0x155cae;},'aiRXE':function(_0x45b93b,_0x40df3a){return _0x45b93b>_0x40df3a;}};let _0x43df1c=0x0;const [,_0x3ad795]=_0x533d77[_0x3b6809(0x1aa)](readId,_0x43ee09,_0x43df1c),[_0x570c35,_0x18f449]=readVint(_0x43ee09,_0x533d77['hDSFA'](_0x43df1c,_0x3ad795));_0x43df1c+=_0x533d77['hDSFA'](_0x533d77['hDSFA'](_0x3ad795,_0x18f449),_0x570c35);const [_0x325df9,_0x219d52]=readId(_0x43ee09,_0x43df1c);if(_0x533d77['Yjemx'](_0x325df9,ID_SEGMENT))return null;const [,_0x498b7c]=readVint(_0x43ee09,_0x43df1c+_0x219d52),_0x1ff8ff=_0x533d77['hDSFA'](_0x43df1c+_0x219d52,_0x498b7c),_0x428a6a=findTimestampScale(_0x43ee09,_0x1ff8ff),_0x440b08=findFirstClusterOffset(_0x43ee09,_0x1ff8ff),_0x4102c4=_0x43ee09[_0x3b6809(0x1c6)](0x0,_0x440b08),_0x392ec6=_0x533d77[_0x3b6809(0x1aa)](extractClusters,_0x43ee09,_0x428a6a);let _0x26cc8e=0x0;for(const _0x43069a of _0x392ec6){if(_0x533d77['aiRXE'](_0x43069a[_0x3b6809(0x1a6)],_0x26cc8e))_0x26cc8e=_0x43069a[_0x3b6809(0x1a6)];}return{'header':_0x4102c4,'clusters':_0x392ec6,'timestampScale':_0x428a6a,'maxTimestampTicks':_0x26cc8e};}function buildCluster(_0x5b43dc,_0x2ddd94,_0x34dd15){const _0x4b6729=_0x11b5,_0x1ed508={'kIveN':function(_0x35471b,_0x3e6e6f){return _0x35471b(_0x3e6e6f);},'jLwyW':function(_0x155c5b,_0x2aada2,_0x54e9f7){return _0x155c5b(_0x2aada2,_0x54e9f7);}},_0x1b773d=Buffer[_0x4b6729(0x197)]([0x1f,0x43,0xb6,0x75]),_0x4f616f=Math[_0x4b6729(0x1ab)](0x4,uintSize(_0x5b43dc)),_0x582231=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x1ed508['kIveN'](writeVint,_0x4f616f),_0x1ed508['jLwyW'](writeUint,_0x5b43dc,_0x4f616f)]),_0x2de85a=Buffer[_0x4b6729(0x19f)]([_0x2ddd94,_0x582231,_0x34dd15]),_0x15d8d7=writeVint(_0x2de85a['length']);return Buffer[_0x4b6729(0x19f)]([_0x1b773d,_0x15d8d7,_0x2de85a]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2ed4ac){const _0x454c24=_0x11b5,_0x51bb4a={'lAsXR':function(_0x5114ce,_0x476177,_0x1fb722){return _0x5114ce(_0x476177,_0x1fb722);},'UlYmc':function(_0x1cce4f,_0x2ff77c,_0x4df38c){return _0x1cce4f(_0x2ff77c,_0x4df38c);},'IkZAv':function(_0x13a3e1,_0x323286){return _0x13a3e1+_0x323286;},'fEsnd':function(_0x3c2119,_0x27e4da){return _0x3c2119+_0x27e4da;},'iwApT':function(_0x393cae,_0x15a6e1){return _0x393cae+_0x15a6e1;},'pqvjO':function(_0x28fe09,_0x257b02,_0x2d3fb1){return _0x28fe09(_0x257b02,_0x2d3fb1);},'cfWqh':function(_0x3d6062,_0x2f401e){return _0x3d6062+_0x2f401e;},'ktXXN':function(_0xac0329,_0xf48247){return _0xac0329<_0xf48247;},'IIgXH':function(_0x405744,_0x33debe){return _0x405744+_0x33debe;},'MfVFo':function(_0xf337f3,_0x16e868){return _0xf337f3+_0x16e868;}},_0x48a5fe=Buffer['from'](_0x2ed4ac);let _0x727e18=0x0;const [,_0x191473]=_0x51bb4a['lAsXR'](readId,_0x48a5fe,_0x727e18),[_0x393f1d,_0x377019]=_0x51bb4a['UlYmc'](readVint,_0x48a5fe,_0x51bb4a[_0x454c24(0x1cb)](_0x727e18,_0x191473)),_0x33e769=_0x51bb4a[_0x454c24(0x1cb)](_0x51bb4a[_0x454c24(0x1cb)](_0x727e18,_0x191473)+_0x377019,_0x393f1d),[,_0x1e08a7]=readId(_0x48a5fe,_0x33e769),[,_0x540cce]=_0x51bb4a[_0x454c24(0x1cf)](readVint,_0x48a5fe,_0x51bb4a['IkZAv'](_0x33e769,_0x1e08a7)),_0x472117=_0x51bb4a['fEsnd'](_0x33e769+_0x1e08a7,_0x540cce),_0x1e19f8=writeUnknownSizeVint(_0x540cce);_0x1e19f8[_0x454c24(0x1b9)](_0x48a5fe,_0x51bb4a['iwApT'](_0x33e769,_0x1e08a7));let _0x5ab55d=_0x472117;const _0x5d0335=Math['min'](_0x48a5fe[_0x454c24(0x1c3)],_0x51bb4a['IkZAv'](_0x472117,0x2710));while(_0x5ab55d<_0x5d0335){const [_0x488e73,_0x3a2256]=_0x51bb4a['pqvjO'](readId,_0x48a5fe,_0x5ab55d),[_0x4c497e,_0x556aef]=readVint(_0x48a5fe,_0x51bb4a['fEsnd'](_0x5ab55d,_0x3a2256));if(_0x488e73===ID_CLUSTER)break;if(isUnknownSize(_0x4c497e,_0x556aef))break;if(_0x488e73===ID_INFO){const _0x3bbf6d=_0x51bb4a['cfWqh'](_0x5ab55d+_0x3a2256,_0x556aef),_0x2971b8=_0x51bb4a['fEsnd'](_0x3bbf6d,_0x4c497e),_0x314a83=[];let _0x5a8f66=_0x3bbf6d;while(_0x51bb4a['ktXXN'](_0x5a8f66,_0x2971b8)){const [_0xd2864c,_0x1100fd]=readId(_0x48a5fe,_0x5a8f66),[_0x7f2840,_0x3e1f49]=_0x51bb4a['UlYmc'](readVint,_0x48a5fe,_0x51bb4a[_0x454c24(0x193)](_0x5a8f66,_0x1100fd)),_0x233453=_0x1100fd+_0x3e1f49+_0x7f2840;_0xd2864c!==ID_DURATION&&_0x314a83['push'](_0x48a5fe['slice'](_0x5a8f66,_0x51bb4a[_0x454c24(0x1c0)](_0x5a8f66,_0x233453))),_0x5a8f66+=_0x233453;}const _0x472331=Buffer['concat'](_0x314a83),_0x53282c=Buffer[_0x454c24(0x19f)]([_0x48a5fe['slice'](_0x5ab55d,_0x5ab55d+_0x3a2256),writeVint(_0x472331['length'],_0x556aef)]);return Buffer[_0x454c24(0x19f)]([_0x48a5fe['slice'](0x0,_0x5ab55d),_0x53282c,_0x472331,_0x48a5fe['slice'](_0x2971b8)]);}_0x5ab55d+=_0x51bb4a[_0x454c24(0x1c0)](_0x3a2256+_0x556aef,_0x4c497e);}return _0x48a5fe;}function _0x11b5(_0x51e792,_0x46064f){_0x51e792=_0x51e792-0x18d;const _0x5b760e=_0x5b76();let _0x11b5b8=_0x5b760e[_0x51e792];return _0x11b5b8;}export function stitchWebmFiles(_0x5d28bb,_0x2f0c1e){const _0x5b5d68=_0x11b5,_0x4df286={'WAJkd':function(_0x885179,_0x1411b6){return _0x885179<=_0x1411b6;},'wStvD':function(_0x3438c8,_0x51ad59){return _0x3438c8(_0x51ad59);},'phTjy':function(_0x3f2aa7,_0x337618){return _0x3f2aa7<_0x337618;},'vODpQ':function(_0x54682f,_0x380a62,_0x549cc9){return _0x54682f(_0x380a62,_0x549cc9);}};if(_0x4df286[_0x5b5d68(0x198)](_0x5d28bb['length'],0x1))return![];const _0x45ca0f=[];for(const _0x38e71f of _0x5d28bb){const _0x5b7ab4=readFileSync(_0x38e71f),_0x4a084d=_0x4df286[_0x5b5d68(0x1c1)](parseWebm,_0x5b7ab4);if(!_0x4a084d||_0x4a084d[_0x5b5d68(0x1b2)]['length']===0x0)return![];_0x45ca0f[_0x5b5d68(0x1af)](_0x4a084d);}const _0x21529f=_0x45ca0f[0x0],_0x14ebcc=_0x4df286['wStvD'](rebuildHeaderWithoutDuration,_0x21529f[_0x5b5d68(0x190)]),_0xd54a9b=[_0x14ebcc];let _0x48b10e=0x0;for(let _0x29452c=0x0;_0x4df286['phTjy'](_0x29452c,_0x45ca0f['length']);_0x29452c++){const _0x52f7d5=_0x45ca0f[_0x29452c];for(const _0x4c79df of _0x52f7d5[_0x5b5d68(0x1b2)]){const _0x23e1c3=_0x4c79df[_0x5b5d68(0x192)]+_0x48b10e;_0xd54a9b[_0x5b5d68(0x1af)](buildCluster(_0x23e1c3,_0x4c79df[_0x5b5d68(0x1b7)],_0x4c79df[_0x5b5d68(0x1b0)]));}const _0x4c1ce3=0x1e;_0x48b10e+=_0x52f7d5[_0x5b5d68(0x1bf)]+_0x4c1ce3;}return _0x4df286['vODpQ'](writeFileSync,_0x2f0c1e,Buffer['concat'](_0xd54a9b)),!![];}if(process['argv'][0x1]?.[_0xba6e0c(0x1ba)]('stitchWebmFiles.ts')||process[_0xba6e0c(0x1ad)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv'][_0xba6e0c(0x1c6)](0x2);args[_0xba6e0c(0x1c3)]<0x3&&(console['error'](_0xba6e0c(0x1a9)),process[_0xba6e0c(0x1bd)](0x1));const output=args[args[_0xba6e0c(0x1c3)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0xba6e0c(0x19b)]('Stitched\x20'+inputs[_0xba6e0c(0x1c3)]+'\x20files\x20->\x20'+output):console[_0xba6e0c(0x19b)](_0xba6e0c(0x196));}