@ranger-testing/ranger-cli 2.5.3 → 2.5.4-alpha.0e8b82c-9

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 (80) 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 -1
  25. package/build/commands/migrateProfile.js +1 -0
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -0
  42. package/build/commands/utils/cloudProfileSession.js +1 -0
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -0
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -0
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -0
  63. package/build/commands/utils/resolveProfileUrl.js +1 -0
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +18 -4
  78. package/build/skills/ranger/create.md +6 -0
  79. package/build/skills/ranger/verify.md +17 -3
  80. package/package.json +6 -2
@@ -1 +1 @@
1
- (function(_0xc0cf37,_0x5f3b72){const _0x3286e7=_0xb2d3,_0x227bdf=_0xc0cf37();while(!![]){try{const _0x54422f=-parseInt(_0x3286e7(0x1bf))/0x1*(-parseInt(_0x3286e7(0x1c7))/0x2)+parseInt(_0x3286e7(0x1c9))/0x3+parseInt(_0x3286e7(0x1c1))/0x4+-parseInt(_0x3286e7(0x1c4))/0x5*(parseInt(_0x3286e7(0x1c0))/0x6)+-parseInt(_0x3286e7(0x1cc))/0x7+parseInt(_0x3286e7(0x1cb))/0x8+-parseInt(_0x3286e7(0x1c6))/0x9;if(_0x54422f===_0x5f3b72)break;else _0x227bdf['push'](_0x227bdf['shift']());}catch(_0x227d7d){_0x227bdf['push'](_0x227bdf['shift']());}}}(_0x240d,0x2ea11));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x240d(){const _0x20c26f=['baseDelayMs','1VphSIw','222pJRDAx','975784yCjCYb','maxRetries','label','50095fHYure','ms...','2454606YqKqAt','277918CuIsyI','pow','1140072hWMFRg','error','967984OukEDA','346479dVrXwX'];_0x240d=function(){return _0x20c26f;};return _0x240d();}function _0xb2d3(_0x3c1c4e,_0x47ff5b){_0x3c1c4e=_0x3c1c4e-0x1bf;const _0x240d33=_0x240d();let _0xb2d3df=_0x240d33[_0x3c1c4e];return _0xb2d3df;}export async function withRetry(_0x1f0f43,_0x258048){const _0x2cfc8b=_0xb2d3,_0x41866f={'TKQls':function(_0x7f5445,_0x3af576){return _0x7f5445<=_0x3af576;},'yYAqp':function(_0xe7ae3c){return _0xe7ae3c();},'XqDHt':function(_0x39ffe8,_0x3f494f){return _0x39ffe8 instanceof _0x3f494f;},'CEkej':function(_0x2687f0,_0x280961){return _0x2687f0(_0x280961);}},_0x25f77d=_0x258048?.[_0x2cfc8b(0x1c2)]??DEFAULT_MAX_RETRIES,_0x2e4956=_0x258048?.[_0x2cfc8b(0x1cd)]??DEFAULT_BASE_DELAY_MS;let _0x4b9861;for(let _0xea201e=0x0;_0x41866f['TKQls'](_0xea201e,_0x25f77d);_0xea201e++){try{return await _0x41866f['yYAqp'](_0x1f0f43);}catch(_0x24dec4){_0x4b9861=_0x41866f['XqDHt'](_0x24dec4,Error)?_0x24dec4:new Error(_0x41866f['CEkej'](String,_0x24dec4));if(_0xea201e<_0x25f77d){const _0x12c9c9=_0x2e4956*Math[_0x2cfc8b(0x1c8)](0x2,_0xea201e);_0x258048?.['label']&&console[_0x2cfc8b(0x1ca)](_0x258048[_0x2cfc8b(0x1c3)]+'\x20failed\x20(attempt\x20'+(_0xea201e+0x1)+'/'+(_0x25f77d+0x1)+'),\x20retrying\x20in\x20'+_0x12c9c9+_0x2cfc8b(0x1c5)),await new Promise(_0x3e2f3a=>setTimeout(_0x3e2f3a,_0x12c9c9));}}}throw _0x4b9861;}
1
+ function _0x3211(_0x508bb7,_0x3bdc4f){_0x508bb7=_0x508bb7-0x1d1;const _0x2ed4c3=_0x2ed4();let _0x3211a7=_0x2ed4c3[_0x508bb7];return _0x3211a7;}(function(_0x9c9e34,_0x5b9410){const _0x5c4c09=_0x3211,_0x154b0d=_0x9c9e34();while(!![]){try{const _0x32ced7=-parseInt(_0x5c4c09(0x1d3))/0x1*(-parseInt(_0x5c4c09(0x1e1))/0x2)+-parseInt(_0x5c4c09(0x1dc))/0x3+parseInt(_0x5c4c09(0x1d7))/0x4+-parseInt(_0x5c4c09(0x1e3))/0x5*(parseInt(_0x5c4c09(0x1db))/0x6)+parseInt(_0x5c4c09(0x1de))/0x7*(-parseInt(_0x5c4c09(0x1d2))/0x8)+parseInt(_0x5c4c09(0x1d6))/0x9*(parseInt(_0x5c4c09(0x1df))/0xa)+parseInt(_0x5c4c09(0x1e4))/0xb;if(_0x32ced7===_0x5b9410)break;else _0x154b0d['push'](_0x154b0d['shift']());}catch(_0x4cef01){_0x154b0d['push'](_0x154b0d['shift']());}}}(_0x2ed4,0xe3361));function _0x2ed4(){const _0x171804=['5864phCKcI','10669TwAMaV','RRpWQ','tOYXH','99TMgqVH','1819848nqceLC','label','maxRetries','pow','767310dNBLcN','3700167YsOFEc','baseDelayMs','15505qZazpq','696830YArzrN','CdTuw','262oKTWLt','),\x20retrying\x20in\x20','5sqkKwY','14260532QssEeP','lamvy'];_0x2ed4=function(){return _0x171804;};return _0x2ed4();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x25f2f6,_0x4d1cf9){const _0x1be7a4=_0x3211,_0xfd54d8={'RRpWQ':function(_0x5b5bc5,_0x81c44e){return _0x5b5bc5<=_0x81c44e;},'tOYXH':function(_0xf90eae,_0x3d3e46){return _0xf90eae(_0x3d3e46);},'lamvy':function(_0x29fec5,_0x5b8eba){return _0x29fec5<_0x5b8eba;},'CdTuw':function(_0x1839b4,_0xc63c84){return _0x1839b4*_0xc63c84;}},_0x21e9f0=_0x4d1cf9?.[_0x1be7a4(0x1d9)]??DEFAULT_MAX_RETRIES,_0xeb448c=_0x4d1cf9?.[_0x1be7a4(0x1dd)]??DEFAULT_BASE_DELAY_MS;let _0x37426d;for(let _0x118830=0x0;_0xfd54d8[_0x1be7a4(0x1d4)](_0x118830,_0x21e9f0);_0x118830++){try{return await _0x25f2f6();}catch(_0xf0bd3d){_0x37426d=_0xf0bd3d instanceof Error?_0xf0bd3d:new Error(_0xfd54d8[_0x1be7a4(0x1d5)](String,_0xf0bd3d));if(_0xfd54d8[_0x1be7a4(0x1d1)](_0x118830,_0x21e9f0)){const _0xe8533=_0xfd54d8[_0x1be7a4(0x1e0)](_0xeb448c,Math[_0x1be7a4(0x1da)](0x2,_0x118830));_0x4d1cf9?.['label']&&console['error'](_0x4d1cf9[_0x1be7a4(0x1d8)]+'\x20failed\x20(attempt\x20'+(_0x118830+0x1)+'/'+(_0x21e9f0+0x1)+_0x1be7a4(0x1e2)+_0xe8533+'ms...'),await new Promise(_0x2ef78f=>setTimeout(_0x2ef78f,_0xe8533));}}}throw _0x37426d;}
@@ -1 +1 @@
1
- const _0xa20fdd=_0x3382;(function(_0x4f9df0,_0x207b3e){const _0x27ca27=_0x3382,_0x270610=_0x4f9df0();while(!![]){try{const _0x4a35e8=parseInt(_0x27ca27(0x1eb))/0x1+-parseInt(_0x27ca27(0x1f0))/0x2+parseInt(_0x27ca27(0x1d8))/0x3+-parseInt(_0x27ca27(0x1e8))/0x4+parseInt(_0x27ca27(0x206))/0x5+parseInt(_0x27ca27(0x203))/0x6*(-parseInt(_0x27ca27(0x1ea))/0x7)+parseInt(_0x27ca27(0x204))/0x8;if(_0x4a35e8===_0x207b3e)break;else _0x270610['push'](_0x270610['shift']());}catch(_0x25d82f){_0x270610['push'](_0x270610['shift']());}}}(_0x2dca,0x3990c));function _0x2dca(){const _0x273c40=['RhTyU','MOtds','lastPlanReminderAt','yteDp','registeredAt','FQjyz','git\x20rev-parse\x20--abbrev-ref\x20HEAD','stringify','12YzqDqW','3897280doFZDz','main','170315IXnrcS','562188YRkyFz','branches','existsSync','whvmZ','vnKOk','KjOZt','prompted','sessions','master','mkdirSync','trim','VVeRC','YWjax','XTRzc','NekmN','NyhhH','1691068iJFpSN','uZsZX','1038674VpddtW','354840bWpxpS','enabled','JNWTu','currentBranch','homedir','216280PrEjWF','featureId','now','toISOString','qeSfe','oKbtx','FKwLL','HEAD','lastStopReminderAt','WPeyS','lastEnabledSessionClearedAt'];_0x2dca=function(){return _0x273c40;};return _0x2dca();}import*as _0x189c73 from'fs';import*as _0x84f579 from'path';import*as _0x4f2b67 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x84f579['join'](_0x4f2b67[_0xa20fdd(0x1ef)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ed425=_0xa20fdd,_0x1bae0c={'qeSfe':function(_0x1cf16c){return _0x1cf16c();}};try{if(_0x189c73[_0x3ed425(0x1da)](CACHE_FILE)){const _0xf2f6e6=JSON['parse'](_0x189c73['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0xf2f6e6['sessions']||{},'branches':_0xf2f6e6[_0x3ed425(0x1d9)]||{},'lastEnabledSessionClearedAt':_0xf2f6e6['lastEnabledSessionClearedAt']};}}catch{}return _0x1bae0c[_0x3ed425(0x1f4)](createEmptyCache);}function saveCache(_0x52a868){const _0x4fd908=_0xa20fdd;try{const _0x58192a=_0x84f579['dirname'](CACHE_FILE);!_0x189c73['existsSync'](_0x58192a)&&_0x189c73[_0x4fd908(0x1e1)](_0x58192a,{'recursive':!![]}),_0x189c73['writeFileSync'](CACHE_FILE,JSON[_0x4fd908(0x202)](_0x52a868,null,0x2));}catch{}}export function getCurrentBranch(){const _0xf5ff75=_0xa20fdd,_0x2e479e={'cJTOW':function(_0x52233a,_0x1a1d08,_0x1a14c3){return _0x52233a(_0x1a1d08,_0x1a14c3);},'RhTyU':'pipe','MSOKq':_0xf5ff75(0x1f7)};try{const _0x37f8ea=_0x2e479e['cJTOW'](execSync,_0xf5ff75(0x201),{'encoding':'utf-8','stdio':[_0x2e479e[_0xf5ff75(0x1fb)],_0x2e479e['RhTyU'],'pipe']})[_0xf5ff75(0x1e2)]();if(!_0x37f8ea||_0x37f8ea===_0x2e479e['MSOKq'])return null;return _0x37f8ea;}catch{return null;}}export function enableBranch(_0x552ca8){const _0x17a600={'KlqEi':function(_0x2e8964){return _0x2e8964();},'JjKzb':function(_0x21dacf,_0x8c771b){return _0x21dacf(_0x8c771b);}},_0x4f72c7=_0x17a600['KlqEi'](loadCache);_0x4f72c7['branches'][_0x552ca8]=!![],_0x17a600['JjKzb'](saveCache,_0x4f72c7);}export function disableBranch(_0x1c29e2){const _0xcf2db1=_0xa20fdd,_0x5b43f3={'NyhhH':function(_0x3f3001,_0x4995e2){return _0x3f3001(_0x4995e2);}},_0x433524=loadCache();delete _0x433524[_0xcf2db1(0x1d9)][_0x1c29e2],_0x5b43f3[_0xcf2db1(0x1e7)](saveCache,_0x433524);}export function isBranchEnabled(_0x267849){const _0x16ad63={'FltIs':function(_0x31b9c3){return _0x31b9c3();},'oRETq':function(_0x41330f,_0x4f0ca0){return _0x41330f===_0x4f0ca0;}},_0x47eea=_0x16ad63['FltIs'](loadCache);return _0x16ad63['oRETq'](_0x47eea['branches'][_0x267849],!![]);}function getOrCreateSession(_0x5cbf2b,_0x427c73){const _0x24ccc4=_0xa20fdd;return!_0x5cbf2b[_0x24ccc4(0x1df)][_0x427c73]&&(_0x5cbf2b[_0x24ccc4(0x1df)][_0x427c73]={}),_0x5cbf2b['sessions'][_0x427c73];}export function enableSession(_0x1c2629){const _0x3284d0=_0xa20fdd,_0x44de05=loadCache(),_0x656943=getOrCreateSession(_0x44de05,_0x1c2629);_0x656943['enabled']=!![];const _0x43074c=getCurrentBranch();_0x43074c&&_0x43074c!=='main'&&_0x43074c!==_0x3284d0(0x1e0)&&(_0x44de05[_0x3284d0(0x1d9)][_0x43074c]=!![],_0x656943['currentBranch']=_0x43074c),saveCache(_0x44de05);}export function isSessionEnabled(_0x49173a){const _0xebc2fc=_0xa20fdd,_0x33a150={'qMkpw':function(_0x41fa14){return _0x41fa14();},'oKbtx':function(_0xe0d3a1,_0x287b7e){return _0xe0d3a1===_0x287b7e;},'OWBNL':function(_0x3076f6,_0x87b3a5){return _0x3076f6||_0x87b3a5;}},_0x178527=_0x33a150['qMkpw'](loadCache),_0x1e85e0=_0x33a150['qMkpw'](getCurrentBranch);if(!_0x1e85e0||_0x1e85e0===_0xebc2fc(0x205)||_0x1e85e0===_0xebc2fc(0x1e0))return _0x33a150[_0xebc2fc(0x1f5)](_0x178527['sessions'][_0x49173a]?.[_0xebc2fc(0x1ec)],!![]);const _0xadaffa=_0x178527[_0xebc2fc(0x1d9)][_0x1e85e0]===!![],_0x7818b1=_0x178527['sessions'][_0x49173a]?.['enabled']===!![];return _0x33a150['OWBNL'](_0xadaffa,_0x7818b1);}export function disableSession(_0x22eea0){const _0x275164=loadCache(),_0x5b34ea=getOrCreateSession(_0x275164,_0x22eea0);_0x5b34ea['enabled']=![],saveCache(_0x275164);}export function updateBranchTracking(_0x377e32){const _0xf3b834=_0xa20fdd,_0xf892bb={'WSmtz':function(_0x4a6d7a){return _0x4a6d7a();},'YWjax':function(_0x336b50,_0x4544d7){return _0x336b50===_0x4544d7;},'ptMCk':'main','vaEaS':'master','FKwLL':function(_0x5417c6,_0x3d9a3e){return _0x5417c6(_0x3d9a3e);}},_0x4a16d4=_0xf892bb['WSmtz'](loadCache),_0x435b8f=_0x4a16d4['sessions'][_0x377e32];if(!_0x435b8f?.['enabled'])return;const _0x111b03=getCurrentBranch();if(!_0x111b03||_0xf892bb[_0xf3b834(0x1e4)](_0x111b03,_0xf892bb['ptMCk'])||_0xf892bb['YWjax'](_0x111b03,_0xf892bb['vaEaS']))return;_0x435b8f[_0xf3b834(0x1ee)]!==_0x111b03&&(_0x4a16d4['branches'][_0x111b03]=!![],_0x435b8f[_0xf3b834(0x1ee)]=_0x111b03,_0xf892bb[_0xf3b834(0x1f6)](saveCache,_0x4a16d4));}export function initBranchTracking(_0x2d494b){const _0x379c04=_0xa20fdd,_0x29669b={'WPeyS':function(_0x5784ec,_0x4f7c40){return _0x5784ec===_0x4f7c40;},'NekmN':function(_0x428109,_0x4dde5b){return _0x428109===_0x4dde5b;},'kAFJD':function(_0x4fd37f,_0x4b6914,_0x14e034){return _0x4fd37f(_0x4b6914,_0x14e034);}},_0xb69740=loadCache(),_0x30991a=getCurrentBranch();if(!_0x30991a||_0x29669b[_0x379c04(0x1f9)](_0x30991a,'main')||_0x30991a==='master')return;if(_0x29669b[_0x379c04(0x1e6)](_0xb69740[_0x379c04(0x1d9)][_0x30991a],!![])){const _0x4ae596=_0x29669b['kAFJD'](getOrCreateSession,_0xb69740,_0x2d494b);_0x4ae596['enabled']=!![],_0x4ae596['currentBranch']=_0x30991a,saveCache(_0xb69740);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5ac1f6){const _0x4ec2b4=_0xa20fdd,_0x592b40={'yteDp':function(_0x3cd012,_0xf6ee53){return _0x3cd012(_0xf6ee53);}},_0x5df16e=loadCache(),_0x192bd8=_0x5df16e['sessions'][_0x5ac1f6];_0x192bd8?.[_0x4ec2b4(0x1ec)]&&(_0x5df16e['lastEnabledSessionClearedAt']=Date['now'](),_0x592b40[_0x4ec2b4(0x1fe)](saveCache,_0x5df16e));}export function shouldAutoEnableAfterClear(_0xe2cb9e){const _0x146bbc=_0xa20fdd,_0x1a9fa7={'MSiIp':function(_0x47af46){return _0x47af46();},'vnKOk':function(_0x80ec8b,_0x560c85){return _0x80ec8b-_0x560c85;}};if(_0xe2cb9e!=='clear')return![];const _0x236588=_0x1a9fa7['MSiIp'](loadCache),_0x17d1e2=_0x236588[_0x146bbc(0x1fa)];if(!_0x17d1e2)return![];const _0x31a6fb=_0x1a9fa7[_0x146bbc(0x1dc)](Date[_0x146bbc(0x1f2)](),_0x17d1e2);return _0x31a6fb<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x3fb623){const _0x4040b3=_0xa20fdd,_0x441969={'EfvFS':function(_0x57c6b1){return _0x57c6b1();},'bNkji':function(_0x4b793a,_0x5c3e82,_0xd9f5d4){return _0x4b793a(_0x5c3e82,_0xd9f5d4);},'JNWTu':function(_0x34a047,_0x210d93){return _0x34a047!==_0x210d93;},'VVeRC':_0x4040b3(0x205),'iXoqW':function(_0x3a4b9d,_0x881df9){return _0x3a4b9d!==_0x881df9;},'ZDlYO':'master'},_0x50ae70=_0x441969['EfvFS'](loadCache),_0x5f3869=_0x441969['bNkji'](getOrCreateSession,_0x50ae70,_0x3fb623);_0x5f3869[_0x4040b3(0x1ec)]=!![];const _0xd0500=getCurrentBranch();_0xd0500&&_0x441969[_0x4040b3(0x1ed)](_0xd0500,_0x441969[_0x4040b3(0x1e3)])&&_0x441969['iXoqW'](_0xd0500,_0x441969['ZDlYO'])&&(_0x5f3869[_0x4040b3(0x1ee)]=_0xd0500),delete _0x50ae70['lastEnabledSessionClearedAt'],saveCache(_0x50ae70);}export function registerSession(_0x464b03,_0x5f1c49){const _0x54c4ae=_0xa20fdd,_0x404315=loadCache(),_0x117571=getOrCreateSession(_0x404315,_0x464b03);_0x117571['featureId']=_0x5f1c49,_0x117571[_0x54c4ae(0x1ff)]=new Date()[_0x54c4ae(0x1f3)](),saveCache(_0x404315);}export function getSessionEntry(_0x419cb5){const _0x56f6a0=_0xa20fdd,_0x4f1480={'KjOZt':function(_0x15800a){return _0x15800a();}},_0x3da93f=_0x4f1480[_0x56f6a0(0x1dd)](loadCache),_0x38b83c=_0x3da93f[_0x56f6a0(0x1df)][_0x419cb5];if(_0x38b83c?.[_0x56f6a0(0x1f1)]&&_0x38b83c?.['registeredAt'])return{'featureId':_0x38b83c['featureId'],'registeredAt':_0x38b83c['registeredAt']};return null;}export function unregisterSession(_0x1a6ec8){const _0x459dac=_0xa20fdd,_0x1e4e0f={'Qfasu':function(_0x2cd068){return _0x2cd068();},'MOtds':function(_0x182c93,_0xae34af){return _0x182c93(_0xae34af);}},_0xb45c52=_0x1e4e0f['Qfasu'](loadCache),_0x13b11f=_0xb45c52[_0x459dac(0x1df)][_0x1a6ec8];_0x13b11f&&(delete _0x13b11f['featureId'],delete _0x13b11f['registeredAt'],_0x1e4e0f[_0x459dac(0x1fc)](saveCache,_0xb45c52));}function _0x3382(_0x21073b,_0x5bd25f){_0x21073b=_0x21073b-0x1d8;const _0x2dca07=_0x2dca();let _0x33821e=_0x2dca07[_0x21073b];return _0x33821e;}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2aafae){const _0x217b23=_0xa20fdd,_0x4c6e6d={'uZsZX':function(_0x35e132,_0x16fa6a){return _0x35e132>=_0x16fa6a;},'FQjyz':function(_0x3a73f6,_0x44e244){return _0x3a73f6-_0x44e244;},'DbGsT':function(_0x462e66,_0xbbb23){return _0x462e66(_0xbbb23);}},_0x4394b6=loadCache(),_0x63c53f=getOrCreateSession(_0x4394b6,_0x2aafae),_0x347c1a=_0x63c53f[_0x217b23(0x1fd)]||0x0,_0x56a910=Date['now']();if(_0x4c6e6d[_0x217b23(0x1e9)](_0x4c6e6d[_0x217b23(0x200)](_0x56a910,_0x347c1a),PLAN_REMINDER_INTERVAL_MS))return _0x63c53f[_0x217b23(0x1fd)]=_0x56a910,_0x4c6e6d['DbGsT'](saveCache,_0x4394b6),!![];return![];}export function shouldShowStopReminder(_0x4e38ad){const _0x1d64b8=_0xa20fdd,_0x960dce={'SHnDK':function(_0x2e9599){return _0x2e9599();},'BTMdb':function(_0x56598b,_0x1d6da9,_0x647737){return _0x56598b(_0x1d6da9,_0x647737);},'nrZIW':function(_0x15d2f8,_0x44cbe9){return _0x15d2f8-_0x44cbe9;}},_0x2d3034=_0x960dce['SHnDK'](loadCache),_0x35cceb=_0x960dce['BTMdb'](getOrCreateSession,_0x2d3034,_0x4e38ad),_0x96a3a5=_0x35cceb[_0x1d64b8(0x1f8)]||0x0,_0x1d2c13=Date['now']();if(_0x960dce['nrZIW'](_0x1d2c13,_0x96a3a5)>=STOP_REMINDER_INTERVAL_MS)return _0x35cceb['lastStopReminderAt']=_0x1d2c13,saveCache(_0x2d3034),!![];return![];}export function hasSessionBeenPrompted(_0x4801b7){const _0x2da654=_0xa20fdd,_0xb39f3a={'XTRzc':function(_0xd7ba5a,_0x4553e4){return _0xd7ba5a===_0x4553e4;}},_0x46ec00=loadCache();return _0xb39f3a[_0x2da654(0x1e5)](_0x46ec00['sessions'][_0x4801b7]?.[_0x2da654(0x1de)],!![]);}export function markSessionPrompted(_0x426125){const _0x5935a1=_0xa20fdd,_0x3f2ab1={'DkaYm':function(_0x1c9e3a){return _0x1c9e3a();},'whvmZ':function(_0x3b152d,_0x55104b,_0x3b0d6f){return _0x3b152d(_0x55104b,_0x3b0d6f);}},_0x3ed26e=_0x3f2ab1['DkaYm'](loadCache),_0x90a567=_0x3f2ab1[_0x5935a1(0x1db)](getOrCreateSession,_0x3ed26e,_0x426125);_0x90a567['prompted']=!![],saveCache(_0x3ed26e);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x40c551=_0x19da;(function(_0x48b214,_0x24eb0f){const _0xada056=_0x19da,_0x1c69b6=_0x48b214();while(!![]){try{const _0x30b7a9=parseInt(_0xada056(0x164))/0x1*(parseInt(_0xada056(0x183))/0x2)+-parseInt(_0xada056(0x17c))/0x3+-parseInt(_0xada056(0x18a))/0x4*(parseInt(_0xada056(0x196))/0x5)+-parseInt(_0xada056(0x17d))/0x6*(-parseInt(_0xada056(0x186))/0x7)+parseInt(_0xada056(0x189))/0x8+-parseInt(_0xada056(0x162))/0x9+-parseInt(_0xada056(0x184))/0xa*(-parseInt(_0xada056(0x188))/0xb);if(_0x30b7a9===_0x24eb0f)break;else _0x1c69b6['push'](_0x1c69b6['shift']());}catch(_0x3f5cd9){_0x1c69b6['push'](_0x1c69b6['shift']());}}}(_0x30cc,0x8bb9f));import*as _0x2a537d from'fs';import*as _0x129d11 from'path';function _0x19da(_0x4c9933,_0x1a69c0){_0x4c9933=_0x4c9933-0x162;const _0x30cc02=_0x30cc();let _0x19da3d=_0x30cc02[_0x4c9933];return _0x19da3d;}import*as _0x5ac8e3 from'os';import{execSync}from'child_process';function _0x30cc(){const _0x62eaa1=['pipe','bltLI','stringify','Brfxa','currentBranch','lastPlanReminderAt','sessions','writeFileSync','featureId','pxKHn','RXFfl','817029KcJxvz','2998524JPAbbO','parse','ASWAg','enabled','existsSync','ukDYZ','2157422SLSGYf','22730fsdxHT','main','7NXyJuF','clear','4499YdzCJT','1539352CCVCdb','12148ghVFoi','bNHvP','AEHHA','HEAD','.ranger_cache.json','master','tRLFU','GCSbK','doEjc','utf-8','VMsif','CKPfu','1385PBHiXH','NnlbA','hozRo','BGFNA','now','9131670uCXvcU','kUTHH','1GcMZhN','readFileSync','toISOString','EbTdh','mkdirSync','lastEnabledSessionClearedAt','registeredAt','homedir','prompted','bvONr','branches','uDwjw','.claude'];_0x30cc=function(){return _0x62eaa1;};return _0x30cc();}const CACHE_FILE=_0x129d11['join'](_0x5ac8e3[_0x40c551(0x16b)](),_0x40c551(0x170),_0x40c551(0x18e));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x523db6=_0x40c551;try{if(_0x2a537d['existsSync'](CACHE_FILE)){const _0x28da11=JSON[_0x523db6(0x17e)](_0x2a537d[_0x523db6(0x165)](CACHE_FILE,_0x523db6(0x193)));return{'version':0x3,'sessions':_0x28da11['sessions']||{},'branches':_0x28da11[_0x523db6(0x16e)]||{},'lastEnabledSessionClearedAt':_0x28da11['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x45e4c8){const _0x371346=_0x40c551;try{const _0x1f3f42=_0x129d11['dirname'](CACHE_FILE);!_0x2a537d[_0x371346(0x181)](_0x1f3f42)&&_0x2a537d[_0x371346(0x168)](_0x1f3f42,{'recursive':!![]}),_0x2a537d[_0x371346(0x178)](CACHE_FILE,JSON[_0x371346(0x173)](_0x45e4c8,null,0x2));}catch{}}export function getCurrentBranch(){const _0x736b50=_0x40c551,_0x51d881={'JmYvH':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','CrquX':_0x736b50(0x193),'tRLFU':function(_0xc442cd,_0x1be534){return _0xc442cd===_0x1be534;},'RqXNe':_0x736b50(0x18d)};try{const _0x593e2e=execSync(_0x51d881['JmYvH'],{'encoding':_0x51d881['CrquX'],'stdio':['pipe',_0x736b50(0x171),_0x736b50(0x171)]})['trim']();if(!_0x593e2e||_0x51d881[_0x736b50(0x190)](_0x593e2e,_0x51d881['RqXNe']))return null;return _0x593e2e;}catch{return null;}}export function enableBranch(_0x6bd583){const _0x9ab05={'LSlnW':function(_0x2d674e,_0x4e4bab){return _0x2d674e(_0x4e4bab);}},_0x4d7620=loadCache();_0x4d7620['branches'][_0x6bd583]=!![],_0x9ab05['LSlnW'](saveCache,_0x4d7620);}export function disableBranch(_0x2b6f6a){const _0xa8b6e9=loadCache();delete _0xa8b6e9['branches'][_0x2b6f6a],saveCache(_0xa8b6e9);}export function isBranchEnabled(_0x3ba874){const _0x350267=_0x40c551,_0x194c00={'QPABx':function(_0x4ba1f1){return _0x4ba1f1();},'NnlbA':function(_0x4d020e,_0x4f1d25){return _0x4d020e===_0x4f1d25;}},_0x4e379a=_0x194c00['QPABx'](loadCache);return _0x194c00[_0x350267(0x197)](_0x4e379a['branches'][_0x3ba874],!![]);}function getOrCreateSession(_0x27d565,_0x2c10fb){const _0x5925f7=_0x40c551;return!_0x27d565[_0x5925f7(0x177)][_0x2c10fb]&&(_0x27d565['sessions'][_0x2c10fb]={}),_0x27d565[_0x5925f7(0x177)][_0x2c10fb];}export function enableSession(_0x19ef2c){const _0x34f539=_0x40c551,_0x4d4a80={'bNHvP':function(_0x29a864){return _0x29a864();},'aaUQH':_0x34f539(0x185)},_0xe1f1ba=loadCache(),_0x293876=getOrCreateSession(_0xe1f1ba,_0x19ef2c);_0x293876[_0x34f539(0x180)]=!![];const _0x3b1f30=_0x4d4a80[_0x34f539(0x18b)](getCurrentBranch);_0x3b1f30&&_0x3b1f30!==_0x4d4a80['aaUQH']&&_0x3b1f30!=='master'&&(_0xe1f1ba[_0x34f539(0x16e)][_0x3b1f30]=!![],_0x293876[_0x34f539(0x175)]=_0x3b1f30),saveCache(_0xe1f1ba);}export function isSessionEnabled(_0x263a67){const _0x2e616a=_0x40c551,_0x1976a9={'doEjc':function(_0x302956,_0x28d236){return _0x302956===_0x28d236;},'aRdoT':'main','DyFMY':'master'},_0x55380b=loadCache(),_0x3939f5=getCurrentBranch();if(!_0x3939f5||_0x1976a9[_0x2e616a(0x192)](_0x3939f5,_0x1976a9['aRdoT'])||_0x3939f5===_0x1976a9['DyFMY'])return _0x1976a9['doEjc'](_0x55380b['sessions'][_0x263a67]?.['enabled'],!![]);const _0xfe707b=_0x55380b['branches'][_0x3939f5]===!![],_0x5a929d=_0x1976a9['doEjc'](_0x55380b[_0x2e616a(0x177)][_0x263a67]?.['enabled'],!![]);return _0xfe707b||_0x5a929d;}export function disableSession(_0x578e64){const _0x4cb430=_0x40c551,_0xeeb634={'bvONr':function(_0x504443){return _0x504443();}},_0x56117e=_0xeeb634[_0x4cb430(0x16d)](loadCache),_0x54abf2=getOrCreateSession(_0x56117e,_0x578e64);_0x54abf2[_0x4cb430(0x180)]=![],saveCache(_0x56117e);}export function updateBranchTracking(_0x494b4d){const _0x26f775=_0x40c551,_0x57a53a={'HUzNL':function(_0x419c3b,_0x51aaba){return _0x419c3b===_0x51aaba;},'BGFNA':_0x26f775(0x185),'hozRo':function(_0x4310c3,_0x4a9fe2){return _0x4310c3!==_0x4a9fe2;}},_0x267df8=loadCache(),_0x10f9ae=_0x267df8['sessions'][_0x494b4d];if(!_0x10f9ae?.['enabled'])return;const _0x20cc5e=getCurrentBranch();if(!_0x20cc5e||_0x57a53a['HUzNL'](_0x20cc5e,_0x57a53a[_0x26f775(0x199)])||_0x20cc5e==='master')return;_0x57a53a[_0x26f775(0x198)](_0x10f9ae[_0x26f775(0x175)],_0x20cc5e)&&(_0x267df8['branches'][_0x20cc5e]=!![],_0x10f9ae['currentBranch']=_0x20cc5e,saveCache(_0x267df8));}export function initBranchTracking(_0xbd946a){const _0x1b219e=_0x40c551,_0x104570={'xrXAS':function(_0x4d83cb){return _0x4d83cb();},'RXFfl':function(_0x404566,_0x43c9e5){return _0x404566===_0x43c9e5;},'ZyRxQ':_0x1b219e(0x185),'AEHHA':_0x1b219e(0x18f),'Ffytw':function(_0x515af0,_0x15337c){return _0x515af0===_0x15337c;},'YLiwG':function(_0x28f3b3,_0x2c41bb,_0x3ed9cf){return _0x28f3b3(_0x2c41bb,_0x3ed9cf);}},_0x5320c7=_0x104570['xrXAS'](loadCache),_0x196e77=getCurrentBranch();if(!_0x196e77||_0x104570[_0x1b219e(0x17b)](_0x196e77,_0x104570['ZyRxQ'])||_0x196e77===_0x104570[_0x1b219e(0x18c)])return;if(_0x104570['Ffytw'](_0x5320c7[_0x1b219e(0x16e)][_0x196e77],!![])){const _0x39b1bd=_0x104570['YLiwG'](getOrCreateSession,_0x5320c7,_0xbd946a);_0x39b1bd['enabled']=!![],_0x39b1bd[_0x1b219e(0x175)]=_0x196e77,saveCache(_0x5320c7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0xb8b9fb){const _0x42264b=_0x40c551,_0x292684=loadCache(),_0x2345c5=_0x292684[_0x42264b(0x177)][_0xb8b9fb];_0x2345c5?.['enabled']&&(_0x292684['lastEnabledSessionClearedAt']=Date[_0x42264b(0x19a)](),saveCache(_0x292684));}export function shouldAutoEnableAfterClear(_0x3fb6d5){const _0x417e18=_0x40c551,_0x3c3e2a={'hKUuG':function(_0x10cd9f,_0x1e8007){return _0x10cd9f!==_0x1e8007;},'EbTdh':_0x417e18(0x187),'LDVTI':function(_0x2a96a7){return _0x2a96a7();},'Opzcv':function(_0x57ed1c,_0x128e6f){return _0x57ed1c-_0x128e6f;}};if(_0x3c3e2a['hKUuG'](_0x3fb6d5,_0x3c3e2a[_0x417e18(0x167)]))return![];const _0x35c087=_0x3c3e2a['LDVTI'](loadCache),_0x5aea61=_0x35c087[_0x417e18(0x169)];if(!_0x5aea61)return![];const _0x1852ee=_0x3c3e2a['Opzcv'](Date[_0x417e18(0x19a)](),_0x5aea61);return _0x1852ee<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x51c1ce){const _0x1f28dc=_0x40c551,_0x440e1e={'Brfxa':function(_0x41c95e){return _0x41c95e();},'CKPfu':function(_0x1c207c,_0x2a57f0,_0x1109c2){return _0x1c207c(_0x2a57f0,_0x1109c2);},'VMsif':function(_0x24845d){return _0x24845d();},'wHgcE':function(_0x1f08c0,_0x1c4a86){return _0x1f08c0!==_0x1c4a86;},'tYUYy':function(_0x3140d6,_0x159e95){return _0x3140d6(_0x159e95);}},_0x449f3e=_0x440e1e[_0x1f28dc(0x174)](loadCache),_0x26c217=_0x440e1e[_0x1f28dc(0x195)](getOrCreateSession,_0x449f3e,_0x51c1ce);_0x26c217[_0x1f28dc(0x180)]=!![];const _0x144c23=_0x440e1e[_0x1f28dc(0x194)](getCurrentBranch);_0x144c23&&_0x440e1e['wHgcE'](_0x144c23,_0x1f28dc(0x185))&&_0x440e1e['wHgcE'](_0x144c23,_0x1f28dc(0x18f))&&(_0x26c217[_0x1f28dc(0x175)]=_0x144c23),delete _0x449f3e['lastEnabledSessionClearedAt'],_0x440e1e['tYUYy'](saveCache,_0x449f3e);}export function registerSession(_0x3f1c56,_0xef8fd){const _0x2606ce=_0x40c551,_0x63d525={'ukDYZ':function(_0x4a820d){return _0x4a820d();},'PNVaX':function(_0xd64987,_0x4d1a73){return _0xd64987(_0x4d1a73);}},_0x371bc1=_0x63d525[_0x2606ce(0x182)](loadCache),_0x1b9861=getOrCreateSession(_0x371bc1,_0x3f1c56);_0x1b9861['featureId']=_0xef8fd,_0x1b9861['registeredAt']=new Date()[_0x2606ce(0x166)](),_0x63d525['PNVaX'](saveCache,_0x371bc1);}export function getSessionEntry(_0x1d6a74){const _0x5e513b=_0x40c551,_0x233971=loadCache(),_0x1cca04=_0x233971['sessions'][_0x1d6a74];if(_0x1cca04?.[_0x5e513b(0x179)]&&_0x1cca04?.[_0x5e513b(0x16a)])return{'featureId':_0x1cca04['featureId'],'registeredAt':_0x1cca04[_0x5e513b(0x16a)]};return null;}export function unregisterSession(_0x1237b7){const _0x86b182=_0x40c551,_0xac4954={'ASWAg':function(_0x2d4a8d){return _0x2d4a8d();}},_0x237871=_0xac4954[_0x86b182(0x17f)](loadCache),_0x483397=_0x237871['sessions'][_0x1237b7];_0x483397&&(delete _0x483397['featureId'],delete _0x483397[_0x86b182(0x16a)],saveCache(_0x237871));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xb3497b){const _0x577c4e=_0x40c551,_0x200aa1={'sQXje':function(_0x1b1646){return _0x1b1646();},'pxKHn':function(_0x23d825,_0x2e6f06,_0x56f3cb){return _0x23d825(_0x2e6f06,_0x56f3cb);},'IPQrv':function(_0x5cb4aa,_0xfe609e){return _0x5cb4aa>=_0xfe609e;},'APREy':function(_0x251c7f,_0x55f358){return _0x251c7f(_0x55f358);}},_0xb1feda=_0x200aa1['sQXje'](loadCache),_0x54d0ce=_0x200aa1[_0x577c4e(0x17a)](getOrCreateSession,_0xb1feda,_0xb3497b),_0x57e926=_0x54d0ce[_0x577c4e(0x176)]||0x0,_0x1426f8=Date[_0x577c4e(0x19a)]();if(_0x200aa1['IPQrv'](_0x1426f8-_0x57e926,PLAN_REMINDER_INTERVAL_MS))return _0x54d0ce['lastPlanReminderAt']=_0x1426f8,_0x200aa1['APREy'](saveCache,_0xb1feda),!![];return![];}export function shouldShowStopReminder(_0x165477){const _0x187bd8=_0x40c551,_0x5063eb={'YWNDu':function(_0xe61a75,_0x195357,_0x11d3d3){return _0xe61a75(_0x195357,_0x11d3d3);},'bltLI':function(_0x258e8e,_0xe3e4c8){return _0x258e8e-_0xe3e4c8;},'uDwjw':function(_0x32265b,_0x3177fd){return _0x32265b(_0x3177fd);}},_0x434be2=loadCache(),_0x59fa2b=_0x5063eb['YWNDu'](getOrCreateSession,_0x434be2,_0x165477),_0x4f573c=_0x59fa2b['lastStopReminderAt']||0x0,_0x327e44=Date[_0x187bd8(0x19a)]();if(_0x5063eb[_0x187bd8(0x172)](_0x327e44,_0x4f573c)>=STOP_REMINDER_INTERVAL_MS)return _0x59fa2b['lastStopReminderAt']=_0x327e44,_0x5063eb[_0x187bd8(0x16f)](saveCache,_0x434be2),!![];return![];}export function hasSessionBeenPrompted(_0x586911){const _0x770d38=_0x40c551,_0x4f5e50=loadCache();return _0x4f5e50['sessions'][_0x586911]?.[_0x770d38(0x16c)]===!![];}export function markSessionPrompted(_0x1106b9){const _0x3fafdb=_0x40c551,_0x430e9f={'kUTHH':function(_0xc4638,_0xa8b6b1,_0x1775c2){return _0xc4638(_0xa8b6b1,_0x1775c2);},'GCSbK':function(_0x366c3f,_0x411d58){return _0x366c3f(_0x411d58);}},_0x52e1cd=loadCache(),_0x51f601=_0x430e9f[_0x3fafdb(0x163)](getOrCreateSession,_0x52e1cd,_0x1106b9);_0x51f601[_0x3fafdb(0x16c)]=!![],_0x430e9f[_0x3fafdb(0x191)](saveCache,_0x52e1cd);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x57b256=_0x3ccc;(function(_0x38cd7b,_0xf81611){const _0x3448ee=_0x3ccc,_0x317328=_0x38cd7b();while(!![]){try{const _0xe9452d=-parseInt(_0x3448ee(0x124))/0x1+parseInt(_0x3448ee(0x127))/0x2+-parseInt(_0x3448ee(0x10d))/0x3*(-parseInt(_0x3448ee(0x121))/0x4)+parseInt(_0x3448ee(0x12a))/0x5*(parseInt(_0x3448ee(0xea))/0x6)+parseInt(_0x3448ee(0x10c))/0x7*(parseInt(_0x3448ee(0xe0))/0x8)+parseInt(_0x3448ee(0x104))/0x9*(parseInt(_0x3448ee(0xfd))/0xa)+parseInt(_0x3448ee(0x131))/0xb*(-parseInt(_0x3448ee(0x11f))/0xc);if(_0xe9452d===_0xf81611)break;else _0x317328['push'](_0x317328['shift']());}catch(_0x16d43a){_0x317328['push'](_0x317328['shift']());}}}(_0x41b8,0x376b6));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(_0x595e4c){const _0x3568de=_0x3ccc,_0x425193={'FAllw':'local','faGQV':function(_0x482712,_0x548e76,_0x524cfe){return _0x482712(_0x548e76,_0x524cfe);},'Fezxa':function(_0x3888f2,_0x194cee){return _0x3888f2(_0x194cee);},'uahku':function(_0x97bf99,_0x50cabc){return _0x97bf99!==_0x50cabc;}},_0x59a6bf=getRangerDir(),_0x1dd587=join(_0x59a6bf,'ci',_0x595e4c),_0x16a001=join(_0x59a6bf,_0x425193[_0x3568de(0x136)],_0x595e4c),_0x3ab213=join(_0x59a6bf,_0x595e4c),_0x27dddc=_0x425193['faGQV'](join,_0x59a6bf,_0x425193[_0x3568de(0x136)]),_0x243d90=join(_0x59a6bf,'ci');if(existsSync(_0x1dd587))return _0x1dd587;if(_0x425193['Fezxa'](existsSync,_0x16a001))return _0x16a001;if(existsSync(_0x3ab213)&&(_0x3ab213!==_0x27dddc&&_0x425193[_0x3568de(0xef)](_0x3ab213,_0x243d90)?!![]:hasLegacyProfileFiles(_0x3ab213)))return _0x3ab213;return _0x16a001;}export function findExistingEnv(_0xfdd2c,_0x396eaa){const _0x184674=_0x3ccc,_0x129752={'bdVJB':function(_0x16b91b){return _0x16b91b();},'KLOiL':_0x184674(0x12b),'vQsQz':function(_0x4104cb,_0x5f3713,_0x1773f1,_0xbfb8da){return _0x4104cb(_0x5f3713,_0x1773f1,_0xbfb8da);},'FNboY':_0x184674(0x111),'dTdfm':function(_0x3a823d,_0x50e22e){return _0x3a823d(_0x50e22e);},'KVFJd':function(_0x42299f,_0x4ea99a){return _0x42299f===_0x4ea99a;},'dhJyT':function(_0x2fa1fe,_0x35786c){return _0x2fa1fe===_0x35786c;},'QTOiS':function(_0x2843f1,_0x469d16){return _0x2843f1(_0x469d16);}},_0x38162c=_0x396eaa?.['rangerDir']??_0x129752['bdVJB'](getRangerDir),_0x4f27a3=_0x396eaa?.['locations']??['ci',_0x129752['KLOiL'],'legacy'],_0x320f37=join(_0x38162c,_0x129752['KLOiL']),_0x1d762a=join(_0x38162c,'ci'),_0x52540c=[{'location':'ci','path':join(_0x38162c,'ci',_0xfdd2c)},{'location':_0x129752[_0x184674(0xfb)],'path':_0x129752['vQsQz'](join,_0x38162c,_0x129752['KLOiL'],_0xfdd2c)},{'location':_0x129752['FNboY'],'path':join(_0x38162c,_0xfdd2c)}];for(const _0x4c73b1 of _0x52540c){if(_0x4f27a3[_0x184674(0x137)](_0x4c73b1['location'])&&_0x129752[_0x184674(0x116)](existsSync,_0x4c73b1['path'])){if(_0x4c73b1[_0x184674(0xe3)]===_0x129752[_0x184674(0x139)]&&(_0x129752['KVFJd'](_0x4c73b1['path'],_0x320f37)||_0x129752[_0x184674(0x102)](_0x4c73b1[_0x184674(0x114)],_0x1d762a))&&!_0x129752[_0x184674(0x100)](hasLegacyProfileFiles,_0x4c73b1['path']))continue;return{'path':_0x4c73b1['path'],'location':_0x4c73b1[_0x184674(0xe3)]};}}return null;}function hasLegacyProfileFiles(_0x468801){const _0x5e446c=_0x3ccc,_0x47af3a={'fPcUy':function(_0x7b9abc,_0x5315a8){return _0x7b9abc(_0x5315a8);},'QxOCu':function(_0x3bd34e,_0x2fc676){return _0x3bd34e(_0x2fc676);},'gzuyG':_0x5e446c(0xe4)};return _0x47af3a[_0x5e446c(0xdb)](existsSync,join(_0x468801,'settings.json'))||_0x47af3a[_0x5e446c(0xfe)](existsSync,join(_0x468801,'auth.json'))||existsSync(join(_0x468801,_0x47af3a['gzuyG']));}export function isEnvCi(_0x585525){const _0x31f35a={'YHbMK':function(_0x10b46a,_0x8bc02f){return _0x10b46a(_0x8bc02f);},'LAedV':function(_0x3c8dda){return _0x3c8dda();}};return _0x31f35a['YHbMK'](existsSync,join(_0x31f35a['LAedV'](getRangerDir),'ci',_0x585525));}export async function cleanupTempFiles(_0x2538bb){const _0x400356=_0x3ccc,_0x50cc8c={'TaLKL':function(_0x33679b,_0x2c1c18){return _0x33679b!==_0x2c1c18;},'tqoom':'ENOENT'},_0x3e3011=[_0x2538bb[_0x400356(0xfa)],_0x2538bb[_0x400356(0x140)]]['filter'](Boolean);await Promise[_0x400356(0xda)](_0x3e3011['map'](_0x26caf3=>unlink(_0x26caf3)['catch'](_0x4ffae0=>{const _0x348781=_0x400356;_0x50cc8c[_0x348781(0xe9)](_0x4ffae0[_0x348781(0x145)],_0x50cc8c['tqoom'])&&console[_0x348781(0xde)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x26caf3+':',_0x4ffae0[_0x348781(0x110)]);})));}export function getSettingsPath(_0x4e2fcc){const _0x284ea1=_0x3ccc,_0x1af884={'lsKRI':function(_0x16168d,_0x5bb6f2,_0x215067){return _0x16168d(_0x5bb6f2,_0x215067);},'SxQkU':_0x284ea1(0xd8)};return _0x1af884[_0x284ea1(0x113)](join,getEnvDir(_0x4e2fcc),_0x1af884[_0x284ea1(0xf2)]);}export async function loadSettings(_0x59b6f9){const _0x4873bf=_0x3ccc,_0x4cadc2={'etlQg':_0x4873bf(0x128)},_0x35acc3=getSettingsPath(_0x59b6f9);if(!existsSync(_0x35acc3))return{};try{const _0x3c4bc9=await readFile(_0x35acc3,_0x4cadc2['etlQg']);return JSON[_0x4873bf(0xce)](_0x3c4bc9);}catch{return{};}}export async function saveSettings(_0x3b8b20,_0x254a5d){const _0x270544=_0x3ccc,_0x37b422={'Pelmj':function(_0x475a46,_0xe4e2c4){return _0x475a46(_0xe4e2c4);}},_0x17b996=getSettingsPath(_0x3b8b20),_0x4739f9=dirname(_0x17b996);!_0x37b422['Pelmj'](existsSync,_0x4739f9)&&await mkdir(_0x4739f9,{'recursive':!![]}),await writeFile(_0x17b996,JSON[_0x270544(0x134)](_0x254a5d,null,0x2));}export function resolveEnvVars(_0x1eef41){const _0xcf32f2=_0x3ccc,_0x2ceed8={'AenhI':function(_0x2e241a,_0x34d216){return _0x2e241a===_0x34d216;},'AYtpW':_0xcf32f2(0xf1)};if(typeof _0x1eef41===_0xcf32f2(0x135))return _0x1eef41['replace'](/\$\{(\w+)\}/g,(_0x1845c9,_0x237422)=>{const _0x84f051=_0xcf32f2,_0xfbdcc5=process[_0x84f051(0x12f)][_0x237422];if(_0x2ceed8['AenhI'](_0xfbdcc5,undefined))throw new Error(_0x84f051(0xfc)+_0x237422+'\x20is\x20not\x20set');return _0xfbdcc5;});if(Array['isArray'](_0x1eef41))return _0x1eef41[_0xcf32f2(0x11d)](resolveEnvVars);if(_0x1eef41&&typeof _0x1eef41===_0x2ceed8[_0xcf32f2(0x12c)])return Object['fromEntries'](Object['entries'](_0x1eef41)[_0xcf32f2(0x11d)](([_0x485c68,_0x1a1e39])=>[_0x485c68,resolveEnvVars(_0x1a1e39)]));return _0x1eef41;}const isRecord=_0x361bed=>typeof _0x361bed===_0x57b256(0xf1)&&_0x361bed!==null&&!Array[_0x57b256(0x11a)](_0x361bed),asRecord=_0xa47494=>isRecord(_0xa47494)?_0xa47494:undefined,mergeHeaders=(_0x1159a1,_0x244493)=>{const _0x334f92=_0x57b256,_0x5337bc={'qDtDr':function(_0x481941,_0x3dfc62){return _0x481941??_0x3dfc62;}},_0x67b2d5={..._0x5337bc[_0x334f92(0xd1)](_0x1159a1,{}),..._0x244493??{}};return Object['keys'](_0x67b2d5)[_0x334f92(0x117)]?_0x67b2d5:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x57b256(0xf8),_0x57b256(0xd9),_0x57b256(0xcf),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x1499ba,_0x56bcb8={}){const _0x5751e5=_0x57b256,_0x1641a2={'xURKA':function(_0x442a9c,_0x10c02b){return _0x442a9c(_0x10c02b);},'arbKH':function(_0x53867e,_0x52f517){return _0x53867e===_0x52f517;},'NBPlq':function(_0x53b071,_0x367e5b,_0x8b6fa3){return _0x53b071(_0x367e5b,_0x8b6fa3);},'cmjjG':function(_0xa947bb,_0x68183c){return _0xa947bb(_0x68183c);},'nHIMS':function(_0x31f38d,_0x15528e){return _0x31f38d(_0x15528e);}},_0x4af137=_0x1641a2['xURKA'](asRecord,_0x1499ba[_0x5751e5(0x130)]),_0x2b8455={...asRecord(_0x4af137?.[_0x5751e5(0x126)])??{}};_0x1641a2['arbKH'](typeof _0x56bcb8['headless'],_0x5751e5(0xd0))&&(_0x2b8455['headless']=_0x56bcb8['headless']);if(_0x1499ba[_0x5751e5(0x13a)]){const _0x268396=_0x2b8455['args']??[],_0x4843f8=SAFE_MODE_ARGS['filter'](_0x10a3e2=>!_0x268396[_0x5751e5(0x137)](_0x10a3e2));_0x2b8455[_0x5751e5(0x107)]=[..._0x268396,..._0x4843f8];}if(_0x1499ba[_0x5751e5(0x119)]){const _0x23d2ae=_0x2b8455[_0x5751e5(0x107)]??[],_0x5aa918=ALLOW_LOCALHOST_ARGS['filter'](_0x481928=>!_0x23d2ae['includes'](_0x481928));_0x2b8455[_0x5751e5(0x107)]=[..._0x23d2ae,..._0x5aa918];}const _0x2a478a={...asRecord(_0x4af137?.[_0x5751e5(0x141)])??{}};_0x2a478a[_0x5751e5(0x133)]=!![];typeof _0x1499ba[_0x5751e5(0x13e)]==='string'&&(_0x2a478a[_0x5751e5(0x13e)]=_0x1499ba['userAgent']);const _0x270a5d=_0x1641a2[_0x5751e5(0xeb)](mergeHeaders,_0x1641a2['cmjjG'](asRecord,_0x2a478a[_0x5751e5(0xe2)]),_0x1641a2['nHIMS'](asRecord,_0x1499ba[_0x5751e5(0x13f)]));return _0x270a5d?_0x2a478a['extraHTTPHeaders']=_0x270a5d:delete _0x2a478a['extraHTTPHeaders'],_0x56bcb8[_0x5751e5(0xf4)]&&(_0x2a478a[_0x5751e5(0xe8)]=_0x56bcb8[_0x5751e5(0xf4)]),{'launchOptions':_0x2b8455,'contextOptions':_0x2a478a};}export async function buildPlaywrightConfig(_0x2bb9f9,_0x2619ee,_0x213c1e,_0x3ad7a8){const _0x536f7c=_0x57b256,_0x3d220e={'wxeeB':function(_0x439c90,_0x55d761,_0x15a97d){return _0x439c90(_0x55d761,_0x15a97d);},'cSYjj':function(_0x2f4f54,_0x227a8d){return _0x2f4f54===_0x227a8d;},'IOtLA':'--no-sandbox','fRfUQ':'--disable-setuid-sandbox','PgRvQ':_0x536f7c(0x12e),'lEevM':_0x536f7c(0x13b),'CrsLi':function(_0x21840d,_0x1f322b){return _0x21840d(_0x1f322b);},'uPSWa':function(_0x4c5a9e,_0x3bfb08,_0x24e2e4){return _0x4c5a9e(_0x3bfb08,_0x24e2e4);},'XhQIy':_0x536f7c(0x13c),'TRlpv':function(_0x3b50ae,_0xb35cb8){return _0x3b50ae(_0xb35cb8);},'ZoImL':function(_0x2fe60c){return _0x2fe60c();},'rbplD':_0x536f7c(0xd4),'lbyRT':function(_0x2cf35b,_0x33f841){return _0x2cf35b(_0x33f841);},'sjUiD':_0x536f7c(0x112),'inhpb':'install','vIeAQ':function(_0xdc927f,_0x5d49e5){return _0xdc927f===_0x5d49e5;},'GotSn':function(_0x4593c3){return _0x4593c3();},'DwYCQ':function(_0x334987,_0xe9db2d,_0x3e2f5d){return _0x334987(_0xe9db2d,_0x3e2f5d);},'yonbl':function(_0x5d8cbc,_0x5ba0e1,_0x3cb02c){return _0x5d8cbc(_0x5ba0e1,_0x3cb02c);}},_0x4348df=_0x3d220e[_0x536f7c(0xdc)](getEnvDir,_0x2619ee),_0x3d6b37=join(_0x4348df,'auth.json.enc'),_0x5ca92e=_0x3d220e['uPSWa'](join,_0x4348df,_0x3d220e[_0x536f7c(0x142)]);let _0x3c97c6,_0x4fd583;if(existsSync(_0x3d6b37))try{const _0x56275d=await getToken();if(!_0x56275d)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x23ed58=await readFile(_0x3d6b37),_0x2621c9=decrypt(_0x23ed58,_0x56275d);_0x4fd583=join(tmpdir(),_0x536f7c(0xdf)+Date[_0x536f7c(0x11e)]()+'.json'),await writeFile(_0x4fd583,_0x2621c9),_0x3c97c6=_0x4fd583;}catch(_0x440061){const _0x98217a=_0x440061 instanceof Error?_0x440061['message']:_0x3d220e['TRlpv'](String,_0x440061);throw new Error(_0x536f7c(0x132)+_0x98217a);}else _0x3d220e[_0x536f7c(0xe1)](existsSync,_0x5ca92e)&&(_0x3c97c6=_0x5ca92e);const _0x15a1c7=_0x213c1e||_0x3d220e['ZoImL'](randomUUID),_0x38b680=join(getRangerDir(),_0x3d220e['rbplD'],_0x15a1c7),_0xc93d8b=_0x3d220e['lbyRT'](Boolean,_0x2bb9f9['cdpEndpoint']),_0x19293d=_0xc93d8b?{'browserName':_0x3d220e[_0x536f7c(0xe6)],'cdpEndpoint':_0x2bb9f9['cdpEndpoint']}:((()=>{const _0x3b03e6=_0x536f7c,{launchOptions:_0x322799,contextOptions:_0x32b6db}=_0x3d220e[_0x3b03e6(0xd7)](buildBrowserOptionsFromSettings,_0x2bb9f9,{'headless':_0x3ad7a8?![]:_0x2bb9f9['headless']??!![],'storageStatePath':_0x3c97c6});if(_0x3d220e[_0x3b03e6(0xf7)](process[_0x3b03e6(0x125)]?.(),0x0)){const _0x35d891=[_0x3d220e['IOtLA'],_0x3d220e['fRfUQ']],_0x879d6f=_0x322799['args']??[],_0x29b6fe=_0x35d891[_0x3b03e6(0xd5)](_0x48f423=>!_0x879d6f[_0x3b03e6(0x137)](_0x48f423));_0x322799[_0x3b03e6(0x107)]=[..._0x879d6f,..._0x29b6fe];}return{'isolated':!![],'browserName':_0x3d220e['PgRvQ'],'launchOptions':_0x322799,'contextOptions':{..._0x32b6db,'permissions':[_0x3b03e6(0x103),_0x3d220e[_0x3b03e6(0x122)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x436017={'name':_0x2619ee,'browser':_0x19293d,'capabilities':[_0x3d220e['sjUiD'],'tabs',_0x3d220e['inhpb'],'pdf',_0x536f7c(0x10a)],'imageResponses':_0x536f7c(0xf3),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x38b680};if(!_0xc93d8b){const _0x43a299=_0x436017[_0x536f7c(0x130)],_0x4726f0=_0x43a299['contextOptions'];if(_0x4726f0['userAgent']===undefined)delete _0x4726f0['userAgent'];if(_0x3d220e['vIeAQ'](_0x4726f0['storageState'],undefined))delete _0x4726f0['storageState'];}const _0x20a5cc=_0x3d220e[_0x536f7c(0xd7)](join,_0x3d220e[_0x536f7c(0x105)](tmpdir),_0x536f7c(0x129));!existsSync(_0x20a5cc)&&await mkdir(_0x20a5cc,{'recursive':!![]});const _0x50afa0=_0x3d220e[_0x536f7c(0x143)](join,_0x20a5cc,_0x2619ee+'-'+Date[_0x536f7c(0x11e)]()+'.json');return await _0x3d220e['yonbl'](writeFile,_0x50afa0,JSON[_0x536f7c(0x134)](_0x436017,null,0x2)),{'configPath':_0x50afa0,'tempAuthPath':_0x4fd583};}export async function buildPlaywrightCliConfig(_0x5cbbd3,_0x381923,_0x57640d,_0x1dd3d7){const _0x379be9=_0x57b256,_0x1c2393={'oPeNH':function(_0x38f66b,_0x1c21c9){return _0x38f66b===_0x1c21c9;},'OrFeT':_0x379be9(0xd6),'dZtwh':'clipboard-read','yolxd':function(_0x5c047f,_0x3f2abb,_0x43a462){return _0x5c047f(_0x3f2abb,_0x43a462);},'zBxfr':_0x379be9(0xe4),'bsCaT':function(_0x4ac01d,_0x5399f0,_0x3fd4e4){return _0x4ac01d(_0x5399f0,_0x3fd4e4);},'IYmEW':'auth.json','OQKMK':function(_0x457b40){return _0x457b40();},'cHBgR':function(_0x2151e0,_0xce7530){return _0x2151e0(_0xce7530);},'bVPxR':function(_0x491678){return _0x491678();},'mqbBH':function(_0x3f589f,_0x35692f,_0x19aadc){return _0x3f589f(_0x35692f,_0x19aadc);},'yHorb':function(_0x112a04,_0x28a448){return _0x112a04 instanceof _0x28a448;},'Mckqe':function(_0x5a2461,_0x473f84){return _0x5a2461(_0x473f84);},'DcFpM':function(_0x211777,_0x976248,_0x2060f2,_0x421ace){return _0x211777(_0x976248,_0x2060f2,_0x421ace);},'xAcMD':_0x379be9(0xd4),'wKURZ':function(_0x52b54b){return _0x52b54b();},'BdPbz':_0x379be9(0x129),'DNcNo':function(_0x4108b8,_0x38f9b9,_0x3e3b0f){return _0x4108b8(_0x38f9b9,_0x3e3b0f);}},_0x44c636=getEnvDir(_0x381923),_0x1d9534=_0x1c2393['yolxd'](join,_0x44c636,_0x1c2393[_0x379be9(0x138)]),_0x11b20a=_0x1c2393['bsCaT'](join,_0x44c636,_0x1c2393['IYmEW']);let _0x1c9329,_0x26b217;if(existsSync(_0x1d9534))try{const _0x11709e=await _0x1c2393[_0x379be9(0x11c)](getToken);if(!_0x11709e)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x287c78=await _0x1c2393[_0x379be9(0xe7)](readFile,_0x1d9534),_0x31e5c0=decrypt(_0x287c78,_0x11709e);_0x26b217=join(_0x1c2393['bVPxR'](tmpdir),_0x379be9(0xdf)+Date['now']()+_0x379be9(0xf9)),await _0x1c2393['mqbBH'](writeFile,_0x26b217,_0x31e5c0),_0x1c9329=_0x26b217;}catch(_0x1b3cec){const _0x40b49d=_0x1c2393['yHorb'](_0x1b3cec,Error)?_0x1b3cec[_0x379be9(0x110)]:String(_0x1b3cec);throw new Error(_0x379be9(0x132)+_0x40b49d);}else _0x1c2393[_0x379be9(0xd2)](existsSync,_0x11b20a)&&(_0x1c9329=_0x11b20a);const _0xb74060=_0x57640d||_0x1c2393[_0x379be9(0xff)](randomUUID),_0x482ef9=_0x1c2393[_0x379be9(0xed)](join,_0x1c2393[_0x379be9(0x11c)](getRangerDir),_0x1c2393[_0x379be9(0x118)],_0xb74060),_0x25600c=Boolean(_0x5cbbd3[_0x379be9(0x101)]),_0x222d2b=_0x25600c?{'browserName':'chromium','cdpEndpoint':_0x5cbbd3[_0x379be9(0x101)]}:((()=>{const _0x87cb01=_0x379be9,{launchOptions:_0x29cd7b,contextOptions:_0x5dfcc1}=buildBrowserOptionsFromSettings(_0x5cbbd3,{'headless':_0x1dd3d7?![]:_0x5cbbd3[_0x87cb01(0x106)]??!![],'storageStatePath':_0x1c9329});if(_0x1c2393[_0x87cb01(0xf6)](process[_0x87cb01(0x125)]?.(),0x0)){const _0x44499d=[_0x87cb01(0x10f),_0x1c2393[_0x87cb01(0x10b)]],_0x1a0018=_0x29cd7b[_0x87cb01(0x107)]??[],_0x4b9516=_0x44499d[_0x87cb01(0xd5)](_0x3a3bd4=>!_0x1a0018[_0x87cb01(0x137)](_0x3a3bd4));_0x29cd7b[_0x87cb01(0x107)]=[..._0x1a0018,..._0x4b9516];}return{'isolated':!![],'browserName':_0x87cb01(0x12e),'launchOptions':_0x29cd7b,'contextOptions':{..._0x5dfcc1,'permissions':[_0x1c2393[_0x87cb01(0xcd)],_0x87cb01(0x13b)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x25600c){const _0x1f40a7=_0x222d2b['contextOptions'];if(_0x1c2393[_0x379be9(0xf6)](_0x1f40a7[_0x379be9(0x13e)],undefined))delete _0x1f40a7[_0x379be9(0x13e)];if(_0x1f40a7[_0x379be9(0xe8)]===undefined)delete _0x1f40a7['storageState'];}const _0x166488={'browser':_0x222d2b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x482ef9,'outputMode':_0x379be9(0x108),'codegen':_0x379be9(0x109)},_0x61e789=_0x1c2393[_0x379be9(0xec)](join,_0x1c2393['wKURZ'](tmpdir),_0x1c2393[_0x379be9(0x115)]);!existsSync(_0x61e789)&&await mkdir(_0x61e789,{'recursive':!![]});const _0x4e5eba=_0x1c2393['DNcNo'](join,_0x61e789,_0x381923+'-'+Date['now']()+_0x379be9(0x11b));return await _0x1c2393['bsCaT'](writeFile,_0x4e5eba,JSON[_0x379be9(0x134)](_0x166488,null,0x2)),{'configPath':_0x4e5eba,'tempAuthPath':_0x26b217};}export function getNestedValue(_0x350708,_0x3e66ab){const _0x26da55=_0x57b256,_0xa1c388={'ffuFH':function(_0x5d4905,_0x4e616d){return _0x5d4905===_0x4e616d;},'QfmGE':function(_0x2a35ee,_0x2b24ac){return _0x2a35ee!==_0x2b24ac;}},_0x16d38a=parseKeyPath(_0x3e66ab);let _0x196739=_0x350708;for(const _0x10c0da of _0x16d38a){if(_0xa1c388['ffuFH'](_0x196739,null)||_0x196739===undefined||_0xa1c388[_0x26da55(0x13d)](typeof _0x196739,'object'))return undefined;_0x196739=_0x196739[_0x10c0da];}return _0x196739;}export function setNestedValue(_0x5cb873,_0x143490,_0x2c343b){const _0x2deb19=_0x57b256,_0x13322e={'kIfIm':function(_0x5832da,_0x1d50c9){return _0x5832da(_0x1d50c9);},'vmRIk':function(_0x20a63a,_0x1d4ae2){return _0x20a63a in _0x1d4ae2;}},_0x365326=_0x13322e[_0x2deb19(0x12d)](parseKeyPath,_0x143490);let _0x2ce916=_0x5cb873;for(let _0x154f0d=0x0;_0x154f0d<_0x365326['length']-0x1;_0x154f0d++){const _0x314ad6=_0x365326[_0x154f0d];(!_0x13322e[_0x2deb19(0xe5)](_0x314ad6,_0x2ce916)||typeof _0x2ce916[_0x314ad6]!==_0x2deb19(0xf1))&&(_0x2ce916[_0x314ad6]={}),_0x2ce916=_0x2ce916[_0x314ad6];}_0x2ce916[_0x365326[_0x365326['length']-0x1]]=_0x2c343b;}function _0x3ccc(_0x113b59,_0x56e619){_0x113b59=_0x113b59-0xcc;const _0x41b87c=_0x41b8();let _0x3ccc3f=_0x41b87c[_0x113b59];return _0x3ccc3f;}export function deleteNestedValue(_0x3c3238,_0xe5408a){const _0x337188=_0x57b256,_0x32e1ed={'sKqfQ':function(_0x2d2996,_0x53b333){return _0x2d2996(_0x53b333);},'IIEfN':function(_0x4d267d,_0x26e9c8){return _0x4d267d<_0x26e9c8;},'nRbbK':function(_0x41ef7c,_0x4f75bf){return _0x41ef7c===_0x4f75bf;},'lbUOy':_0x337188(0xf1),'aJkCi':function(_0x1551c1,_0x544090){return _0x1551c1===_0x544090;}},_0x2742f6=_0x32e1ed[_0x337188(0xdd)](parseKeyPath,_0xe5408a);let _0x10b888=_0x3c3238;for(let _0x4e1ced=0x0;_0x32e1ed['IIEfN'](_0x4e1ced,_0x2742f6['length']-0x1);_0x4e1ced++){if(_0x32e1ed['nRbbK'](_0x10b888,null)||_0x10b888===undefined||typeof _0x10b888!==_0x32e1ed[_0x337188(0x10e)])return![];_0x10b888=_0x10b888[_0x2742f6[_0x4e1ced]];}if(_0x10b888===null||_0x32e1ed['aJkCi'](_0x10b888,undefined)||typeof _0x10b888!==_0x337188(0xf1))return![];const _0x4e07c0=_0x2742f6[_0x2742f6['length']-0x1];if(_0x4e07c0 in _0x10b888)return delete _0x10b888[_0x4e07c0],!![];return![];}function parseKeyPath(_0x149c55){const _0x358f8b=_0x57b256,_0x10905d={'NLLlS':_0x358f8b(0xcc),'dJjdY':function(_0x38845a,_0x43480a){return _0x38845a===_0x43480a;},'CkzlX':'setupHeaders'},_0x57f11f=_0x149c55[_0x358f8b(0xee)]('.');return _0x57f11f[0x0]===_0x10905d['NLLlS']&&(_0x57f11f[0x0]='headers'),_0x10905d[_0x358f8b(0x123)](_0x57f11f[0x0],'setupHeader')&&(_0x57f11f[0x0]=_0x10905d['CkzlX']),_0x57f11f;}export function formatSettings(_0x538991,_0x301c6e=0x0){const _0x57add3=_0x57b256,_0x4c3cab={'uInds':function(_0x284c53,_0x3f4ce0){return _0x284c53===_0x3f4ce0;},'jfqCn':function(_0x26c919,_0x12ab04){return _0x26c919===_0x12ab04;},'mYKjQ':function(_0x9b7ea,_0x5b968c){return _0x9b7ea!==_0x5b968c;}},_0x122d9d=[],_0x5b3001='\x20\x20'[_0x57add3(0x144)](_0x301c6e);for(const [_0x440d6d,_0x358878]of Object['entries'](_0x538991)){if(_0x4c3cab['uInds'](_0x358878,undefined))continue;if(_0x4c3cab['jfqCn'](typeof _0x358878,'object')&&_0x4c3cab[_0x57add3(0xd3)](_0x358878,null)){_0x122d9d['push'](''+_0x5b3001+_0x440d6d+':');for(const [_0x372706,_0x5ea932]of Object[_0x57add3(0xf5)](_0x358878)){_0x122d9d[_0x57add3(0x120)](_0x5b3001+'\x20\x20'+_0x372706+':\x20'+_0x5ea932);}}else _0x122d9d['push'](''+_0x5b3001+_0x440d6d+':\x20'+_0x358878);}return _0x122d9d[_0x57add3(0xf0)]('\x0a');}function _0x41b8(){const _0x1bd1ab=['lEevM','dJjdY','308546WpwRqR','getuid','launchOptions','258840YHqEej','utf-8','ranger-config','3275vhieVh','local','AYtpW','kIfIm','chromium','env','browser','11cTUROH','Failed\x20to\x20decrypt\x20auth\x20state:\x20','ignoreHTTPSErrors','stringify','string','FAllw','includes','zBxfr','FNboY','safeMode','clipboard-write','auth.json','QfmGE','userAgent','headers','configPath','contextOptions','XhQIy','DwYCQ','repeat','code','header','dZtwh','parse','--unsafely-treat-insecure-origin-as-secure=http://localhost','boolean','qDtDr','Mckqe','mYKjQ','sessions','filter','--disable-setuid-sandbox','wxeeB','settings.json','--allow-running-insecure-content','all','fPcUy','CrsLi','sKqfQ','warn','ranger-auth-','38352WofPUG','TRlpv','extraHTTPHeaders','location','auth.json.enc','vmRIk','PgRvQ','cHBgR','storageState','TaLKL','558qafOQs','NBPlq','mqbBH','DcFpM','split','uahku','join','object','SxQkU','allow','storageStatePath','entries','oPeNH','cSYjj','--disable-web-security','.json','tempAuthPath','KLOiL','Environment\x20variable\x20','3357740NztSIQ','QxOCu','bVPxR','QTOiS','cdpEndpoint','dhJyT','clipboard-read','9YpehPO','GotSn','headless','args','file','none','vision','OrFeT','483wHtCcV','213KLKxoJ','lbUOy','--no-sandbox','message','legacy','core','lsKRI','path','BdPbz','dTdfm','length','xAcMD','allowInsecureLocalhost','isArray','-cli.json','OQKMK','map','now','7091256xsvWom','push','15188cohEOA'];_0x41b8=function(){return _0x1bd1ab;};return _0x41b8();}
1
+ const _0x8c91a=_0x2d38;(function(_0x37b754,_0x33a05e){const _0x27683a=_0x2d38,_0x2ab3f3=_0x37b754();while(!![]){try{const _0x28fa17=parseInt(_0x27683a(0x1c1))/0x1+parseInt(_0x27683a(0x1a9))/0x2*(parseInt(_0x27683a(0x1ce))/0x3)+-parseInt(_0x27683a(0x1e5))/0x4+-parseInt(_0x27683a(0x1f7))/0x5*(parseInt(_0x27683a(0x1be))/0x6)+-parseInt(_0x27683a(0x1c7))/0x7*(parseInt(_0x27683a(0x1aa))/0x8)+parseInt(_0x27683a(0x1c5))/0x9*(parseInt(_0x27683a(0x1e9))/0xa)+-parseInt(_0x27683a(0x1dd))/0xb;if(_0x28fa17===_0x33a05e)break;else _0x2ab3f3['push'](_0x2ab3f3['shift']());}catch(_0x3efa24){_0x2ab3f3['push'](_0x2ab3f3['shift']());}}}(_0xba7c,0xd8bb8));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';function _0x2d38(_0x10a43c,_0x4a9ff8){_0x10a43c=_0x10a43c-0x1a9;const _0xba7c1b=_0xba7c();let _0x2d3854=_0xba7c1b[_0x10a43c];return _0x2d3854;}import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x29db7b,_0x1fe772){const _0x539c7a=_0x2d38,_0x21fc9c={'bLrDA':function(_0x4d1eb7,_0x43f8f2,_0x5bd2ab,_0x2090c4){return _0x4d1eb7(_0x43f8f2,_0x5bd2ab,_0x2090c4);},'EXLgZ':function(_0x3a4aa1,_0x1aace2){return _0x3a4aa1(_0x1aace2);},'gutax':function(_0x5993e2,_0x3988f8){return _0x5993e2!==_0x3988f8;},'sCHXm':function(_0x32a7ad,_0x449258){return _0x32a7ad(_0x449258);}},_0x22a8fb=_0x21fc9c['bLrDA'](join,_0x1fe772,'ci',_0x29db7b),_0x57ff39=join(_0x1fe772,'local',_0x29db7b),_0x5b8fed=join(_0x1fe772,_0x29db7b),_0x25149b=join(_0x1fe772,'local'),_0x524997=join(_0x1fe772,'ci');if(existsSync(_0x22a8fb))return _0x22a8fb;if(existsSync(_0x57ff39))return _0x57ff39;if(_0x21fc9c[_0x539c7a(0x209)](existsSync,_0x5b8fed)&&(_0x5b8fed!==_0x25149b&&_0x21fc9c[_0x539c7a(0x1da)](_0x5b8fed,_0x524997)?!![]:_0x21fc9c['sCHXm'](hasLegacyProfileFiles,_0x5b8fed)))return _0x5b8fed;return null;}export function getEnvDir(_0x497633){const _0x3de6bd=_0x2d38,_0x1e74aa={'LXIlX':function(_0x564f1e){return _0x564f1e();},'uHGuE':function(_0x395be5,_0x4a584b,_0x3bbc9e){return _0x395be5(_0x4a584b,_0x3bbc9e);},'SPtVi':function(_0x170552,_0x4ba647){return _0x170552!==_0x4ba647;},'zHwoB':function(_0x5a369e,_0x18fe0f,_0x48a3d0,_0x5554bc){return _0x5a369e(_0x18fe0f,_0x48a3d0,_0x5554bc);},'heWMQ':'local'},_0x436147=_0x1e74aa[_0x3de6bd(0x1b8)](getRangerDir),_0x4c6310=_0x1e74aa[_0x3de6bd(0x1b0)](findEnvInRoot,_0x497633,_0x436147);if(_0x4c6310)return _0x4c6310;const _0x5f4112=getRangerHomeDir();if(_0x1e74aa['SPtVi'](_0x5f4112,_0x436147)){const _0x171a82=findEnvInRoot(_0x497633,_0x5f4112);if(_0x171a82)return _0x171a82;}return _0x1e74aa[_0x3de6bd(0x1e1)](join,_0x436147,_0x1e74aa['heWMQ'],_0x497633);}export function findExistingEnv(_0x2677d4,_0x14929e){const _0x5602f6=_0x2d38,_0x39d2d4={'rYumT':'legacy','HRxDH':function(_0x4ab501,_0x5360d5,_0x2565bd,_0x2d325a){return _0x4ab501(_0x5360d5,_0x2565bd,_0x2d325a);},'gegah':'local','lhLuJ':function(_0x35fdf7,_0x37ab09){return _0x35fdf7===_0x37ab09;}},_0x168985=_0x14929e?.['rangerDir'],_0x4e3ee2=_0x168985?[_0x168985]:[getRangerDir(),getRangerHomeDir()][_0x5602f6(0x1f6)]((_0xe33437,_0x54e140,_0x37327c)=>_0x37327c['indexOf'](_0xe33437)===_0x54e140),_0x37e09d=_0x14929e?.['locations']??['ci','local',_0x39d2d4['rYumT']];for(const _0x3feb87 of _0x4e3ee2){const _0x1be8a0=join(_0x3feb87,'local'),_0x492be5=join(_0x3feb87,'ci'),_0x7645b2=[{'location':'ci','path':_0x39d2d4['HRxDH'](join,_0x3feb87,'ci',_0x2677d4)},{'location':'local','path':join(_0x3feb87,_0x39d2d4[_0x5602f6(0x1bc)],_0x2677d4)},{'location':'legacy','path':join(_0x3feb87,_0x2677d4)}];for(const _0x459b56 of _0x7645b2){if(_0x37e09d['includes'](_0x459b56['location'])&&existsSync(_0x459b56['path'])){if(_0x39d2d4['lhLuJ'](_0x459b56[_0x5602f6(0x1cc)],'legacy')&&(_0x39d2d4['lhLuJ'](_0x459b56[_0x5602f6(0x1ed)],_0x1be8a0)||_0x459b56[_0x5602f6(0x1ed)]===_0x492be5)&&!hasLegacyProfileFiles(_0x459b56['path']))continue;return{'path':_0x459b56[_0x5602f6(0x1ed)],'location':_0x459b56[_0x5602f6(0x1cc)]};}}}return null;}function hasLegacyProfileFiles(_0x38c456){const _0x15e17b=_0x2d38,_0x3fbb74={'xtgQq':function(_0x388ec7,_0x5b9071,_0x539159){return _0x388ec7(_0x5b9071,_0x539159);},'mLkUA':function(_0x1f1b36,_0x19e03f,_0x309241){return _0x1f1b36(_0x19e03f,_0x309241);}};return existsSync(_0x3fbb74[_0x15e17b(0x202)](join,_0x38c456,'settings.json'))||existsSync(_0x3fbb74[_0x15e17b(0x1e3)](join,_0x38c456,_0x15e17b(0x20e)))||existsSync(join(_0x38c456,_0x15e17b(0x21a)));}export function isEnvCi(_0x33419b){const _0x14725d=_0x2d38,_0x1345c4={'GRTfR':function(_0x79fed,_0x14a60c){return _0x79fed(_0x14a60c);},'NcsYi':function(_0x20ace9,_0x327959,_0x2f29e7,_0x9eff1){return _0x20ace9(_0x327959,_0x2f29e7,_0x9eff1);},'Ydhvg':function(_0x2a6661){return _0x2a6661();},'akilP':function(_0x11bf51,_0x19604c){return _0x11bf51!==_0x19604c;},'KkhDR':function(_0x4db2c4){return _0x4db2c4();}};if(_0x1345c4[_0x14725d(0x1d1)](existsSync,_0x1345c4[_0x14725d(0x1c9)](join,_0x1345c4['Ydhvg'](getRangerDir),'ci',_0x33419b)))return!![];const _0x3abd2e=getRangerHomeDir();if(_0x1345c4['akilP'](_0x3abd2e,_0x1345c4[_0x14725d(0x1ac)](getRangerDir))&&_0x1345c4[_0x14725d(0x1d1)](existsSync,_0x1345c4[_0x14725d(0x1c9)](join,_0x3abd2e,'ci',_0x33419b)))return!![];return![];}export async function cleanupTempFiles(_0x36efcd){const _0x52dbc9=_0x2d38,_0xf80741={'UjRaB':function(_0x22b5d1,_0x54697b){return _0x22b5d1!==_0x54697b;},'dBulr':'ENOENT'},_0x2e50dc=[_0x36efcd[_0x52dbc9(0x1ae)],_0x36efcd[_0x52dbc9(0x210)]]['filter'](Boolean);await Promise[_0x52dbc9(0x1b6)](_0x2e50dc['map'](_0x48f78b=>unlink(_0x48f78b)['catch'](_0x18a650=>{const _0x3d33ef=_0x52dbc9;_0xf80741[_0x3d33ef(0x1bb)](_0x18a650['code'],_0xf80741[_0x3d33ef(0x1d5)])&&console['warn'](_0x3d33ef(0x1f5)+_0x48f78b+':',_0x18a650['message']);})));}export function getSettingsPath(_0x267d2a){const _0xad53d=_0x2d38,_0x3b9bda={'MaDtA':function(_0x331b2d,_0x361818,_0xfb057){return _0x331b2d(_0x361818,_0xfb057);},'HCKHA':function(_0x5aa471,_0x54b770){return _0x5aa471(_0x54b770);},'adnuJ':'settings.json'};return _0x3b9bda['MaDtA'](join,_0x3b9bda[_0xad53d(0x1e4)](getEnvDir,_0x267d2a),_0x3b9bda[_0xad53d(0x219)]);}export async function loadSettings(_0x4e4542){const _0xa189bf=_0x2d38,_0x4bc1f7={'YGvdp':function(_0x200f30,_0x26e885,_0xf15ddd){return _0x200f30(_0x26e885,_0xf15ddd);},'CVWAO':_0xa189bf(0x1d9)},_0xf47251=getSettingsPath(_0x4e4542);if(!existsSync(_0xf47251))return{};try{const _0x8eb7bb=await _0x4bc1f7[_0xa189bf(0x212)](readFile,_0xf47251,_0x4bc1f7[_0xa189bf(0x1c6)]);return JSON['parse'](_0x8eb7bb);}catch{return{};}}export async function saveSettings(_0x2562ae,_0x987f33){const _0x4b8780=_0x2d38,_0xd929e0={'DxmBU':function(_0x42b148,_0x34d0d2){return _0x42b148(_0x34d0d2);},'BmJVs':function(_0x20c175,_0x533f60){return _0x20c175(_0x533f60);},'SrkyR':function(_0x2986a8,_0x199068,_0x267fd9){return _0x2986a8(_0x199068,_0x267fd9);}},_0x23c8e3=_0xd929e0[_0x4b8780(0x213)](getSettingsPath,_0x2562ae),_0xb23643=_0xd929e0[_0x4b8780(0x215)](dirname,_0x23c8e3);!_0xd929e0['DxmBU'](existsSync,_0xb23643)&&await _0xd929e0['SrkyR'](mkdir,_0xb23643,{'recursive':!![]}),await _0xd929e0[_0x4b8780(0x1db)](writeFile,_0x23c8e3,JSON['stringify'](_0x987f33,null,0x2));}export function resolveEnvVars(_0x52aee1){const _0x1988f3=_0x2d38,_0x50ba82={'XORrd':function(_0x228b33,_0xfe9c86){return _0x228b33===_0xfe9c86;},'pHOmf':_0x1988f3(0x1b5),'NLBZC':_0x1988f3(0x1df)};if(_0x50ba82[_0x1988f3(0x211)](typeof _0x52aee1,_0x50ba82[_0x1988f3(0x1d4)]))return _0x52aee1['replace'](/\$\{(\w+)\}/g,(_0x11a786,_0x297679)=>{const _0x758ea6=_0x1988f3,_0x559fc3=process['env'][_0x297679];if(_0x50ba82[_0x758ea6(0x211)](_0x559fc3,undefined))throw new Error(_0x758ea6(0x214)+_0x297679+'\x20is\x20not\x20set');return _0x559fc3;});if(Array[_0x1988f3(0x1b2)](_0x52aee1))return _0x52aee1['map'](resolveEnvVars);if(_0x52aee1&&typeof _0x52aee1===_0x50ba82[_0x1988f3(0x207)])return Object[_0x1988f3(0x216)](Object['entries'](_0x52aee1)['map'](([_0x442557,_0x57c4e2])=>[_0x442557,resolveEnvVars(_0x57c4e2)]));return _0x52aee1;}const isRecord=_0x2ff47d=>typeof _0x2ff47d===_0x8c91a(0x1df)&&_0x2ff47d!==null&&!Array['isArray'](_0x2ff47d),asRecord=_0x1b4109=>isRecord(_0x1b4109)?_0x1b4109:undefined,mergeHeaders=(_0x1667e0,_0x52efec)=>{const _0x1d5a76=_0x8c91a,_0x335de9={'xrQdm':function(_0x23099c,_0x39165c){return _0x23099c??_0x39165c;}},_0x4da84a={..._0x335de9['xrQdm'](_0x1667e0,{}),..._0x52efec??{}};return Object[_0x1d5a76(0x1ec)](_0x4da84a)[_0x1d5a76(0x1e2)]?_0x4da84a:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x8c91a(0x1bd),_0x8c91a(0x1e0),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x612f03,_0x5e8b38={}){const _0x5413ff=_0x8c91a,_0x16fb4e={'XeBHX':function(_0x21ae90,_0x5632f5){return _0x21ae90(_0x5632f5);},'aLRaE':_0x5413ff(0x1b5),'sdAdP':function(_0x4fb10d,_0x2217e4,_0x705c57){return _0x4fb10d(_0x2217e4,_0x705c57);}},_0x22a12b=_0x16fb4e['XeBHX'](asRecord,_0x612f03['browser']),_0x7afef9={...asRecord(_0x22a12b?.['launchOptions'])??{}};typeof _0x5e8b38['headless']===_0x5413ff(0x1fb)&&(_0x7afef9[_0x5413ff(0x1d8)]=_0x5e8b38['headless']);if(_0x612f03[_0x5413ff(0x204)]){const _0x31626c=_0x7afef9['args']??[],_0x2ed3da=SAFE_MODE_ARGS['filter'](_0x17f17a=>!_0x31626c[_0x5413ff(0x1de)](_0x17f17a));_0x7afef9[_0x5413ff(0x1d7)]=[..._0x31626c,..._0x2ed3da];}if(_0x612f03['allowInsecureLocalhost']){const _0x189edd=_0x7afef9[_0x5413ff(0x1d7)]??[],_0x3a9e12=ALLOW_LOCALHOST_ARGS['filter'](_0x10200d=>!_0x189edd['includes'](_0x10200d));_0x7afef9[_0x5413ff(0x1d7)]=[..._0x189edd,..._0x3a9e12];}const _0x5619b2={...asRecord(_0x22a12b?.['contextOptions'])??{}};_0x5619b2['ignoreHTTPSErrors']=!![];typeof _0x612f03['userAgent']===_0x16fb4e['aLRaE']&&(_0x5619b2[_0x5413ff(0x1cf)]=_0x612f03['userAgent']);const _0x42ed10=_0x16fb4e['sdAdP'](mergeHeaders,asRecord(_0x5619b2[_0x5413ff(0x1fc)]),asRecord(_0x612f03[_0x5413ff(0x1fa)]));return _0x42ed10?_0x5619b2['extraHTTPHeaders']=_0x42ed10:delete _0x5619b2['extraHTTPHeaders'],_0x5e8b38[_0x5413ff(0x20a)]&&(_0x5619b2[_0x5413ff(0x201)]=_0x5e8b38[_0x5413ff(0x20a)]),{'launchOptions':_0x7afef9,'contextOptions':_0x5619b2};}async function resolveLocalAuthPath(_0x292043){const _0x2c84dc=_0x8c91a,_0xce7eb6={'yJGmi':function(_0x5d70c6,_0x3935de,_0x5b365d){return _0x5d70c6(_0x3935de,_0x5b365d);},'lXSHw':'auth.json','kVfRs':function(_0x4e0439){return _0x4e0439();},'ghpJF':function(_0x3a5223,_0x15bd9c){return _0x3a5223 instanceof _0x15bd9c;},'uMvcA':function(_0x3041b5,_0x242446){return _0x3041b5(_0x242446);},'YAPog':function(_0x49b002,_0x1be10f){return _0x49b002(_0x1be10f);}},_0x4108fe=_0xce7eb6[_0x2c84dc(0x1c2)](join,_0x292043,'auth.json.enc'),_0x520aa5=join(_0x292043,_0xce7eb6['lXSHw']);if(existsSync(_0x4108fe))try{const _0x47efef=await getToken();if(!_0x47efef)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3efca2=await readFile(_0x4108fe),_0x225f2b=decrypt(_0x3efca2,_0x47efef),_0x2c21dc=join(_0xce7eb6[_0x2c84dc(0x1cb)](tmpdir),'ranger-auth-'+Date['now']()+'.json');return await writeFile(_0x2c21dc,_0x225f2b),{'storageStatePath':_0x2c21dc,'tempAuthPath':_0x2c21dc};}catch(_0x22ac26){const _0x28b7e3=_0xce7eb6[_0x2c84dc(0x1fe)](_0x22ac26,Error)?_0x22ac26['message']:_0xce7eb6[_0x2c84dc(0x1f3)](String,_0x22ac26);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x28b7e3);}if(_0xce7eb6[_0x2c84dc(0x1b1)](existsSync,_0x520aa5))return{'storageStatePath':_0x520aa5};return{};}export async function buildPlaywrightConfig(_0x557b2a,_0x1505e7,_0x32f31a,_0x4ca00d,_0x25def5){const _0x689960=_0x8c91a,_0x5caa89={'EJPsE':function(_0x4b2c85,_0x532216,_0x5f2a51,_0x331346,_0x5921e2,_0x221b27,_0x539740){return _0x4b2c85(_0x532216,_0x5f2a51,_0x331346,_0x5921e2,_0x221b27,_0x539740);},'uCDJk':'stagehand','WxmIB':function(_0x1b2685,_0x1f3dab){return _0x1b2685(_0x1f3dab);}};if(_0x25def5)return _0x5caa89['EJPsE'](buildPlaywrightConfigCore,_0x557b2a,_0x25def5,_0x1505e7,_0x32f31a,_0x4ca00d,_0x5caa89['uCDJk']);const {storageStatePath:_0x4accc5,tempAuthPath:_0x39cfa7}=await resolveLocalAuthPath(getEnvDir(_0x1505e7));try{const _0x567bb0=await buildPlaywrightConfigCore(_0x557b2a,_0x4accc5,_0x1505e7,_0x32f31a,_0x4ca00d,_0x5caa89[_0x689960(0x1e8)]);return{..._0x567bb0,'tempAuthPath':_0x39cfa7};}catch(_0x5ac894){_0x39cfa7&&await _0x5caa89['WxmIB'](unlink,_0x39cfa7)['catch'](()=>{});throw _0x5ac894;}}export async function buildPlaywrightConfigCore(_0x3359d3,_0x47b320,_0x171cab,_0x4e046b,_0x185b80,_0xb7d947=_0x8c91a(0x1fd)){const _0x209df0=_0x8c91a,_0x36f5ce={'ZFtMm':function(_0x4d6b19,_0x21369c,_0x46b1e5){return _0x4d6b19(_0x21369c,_0x46b1e5);},'IaNDv':function(_0x37a623,_0x10915a){return _0x37a623===_0x10915a;},'IXPNW':'--no-sandbox','FfAsY':'--disable-setuid-sandbox','cswpy':function(_0x1550c3){return _0x1550c3();},'GavmU':function(_0x146c39,_0x495856,_0x3be911,_0x13752f){return _0x146c39(_0x495856,_0x3be911,_0x13752f);},'CCVKH':function(_0x4bccdf){return _0x4bccdf();},'pooSU':'sessions','wIKpg':function(_0x41ec24,_0x40a756){return _0x41ec24(_0x40a756);},'cQTqV':'chromium','gZeSn':_0x209df0(0x200),'aJcFS':_0x209df0(0x1ef),'ltNUx':'tabs','HlUIG':'pdf','jvtgW':function(_0x5a661e,_0x362af7){return _0x5a661e===_0x362af7;},'StUvf':_0x209df0(0x1b7)},_0x5975f3=_0x4e046b||_0x36f5ce[_0x209df0(0x1af)](randomUUID),_0x56fd6d=_0x36f5ce[_0x209df0(0x1ea)](join,_0x36f5ce['CCVKH'](getRangerDir),_0x36f5ce[_0x209df0(0x1ad)],_0x5975f3),_0xad26db=_0x36f5ce['wIKpg'](Boolean,_0x3359d3[_0x209df0(0x1b9)]),_0x3f8ada=_0xad26db?{'browserName':_0x36f5ce['cQTqV'],'cdpEndpoint':_0x3359d3[_0x209df0(0x1b9)]}:((()=>{const _0x416e3c=_0x209df0,{launchOptions:_0x2505bc,contextOptions:_0x4c7675}=_0x36f5ce['ZFtMm'](buildBrowserOptionsFromSettings,_0x3359d3,{'headless':_0x185b80?![]:_0x3359d3['headless']??!![],'storageStatePath':_0x47b320});if(_0x36f5ce[_0x416e3c(0x1ab)](process[_0x416e3c(0x1dc)]?.(),0x0)){const _0x556701=[_0x36f5ce['IXPNW'],_0x36f5ce[_0x416e3c(0x1bf)]],_0x2c454e=_0x2505bc['args']??[],_0x4308ea=_0x556701[_0x416e3c(0x1f6)](_0x4d7885=>!_0x2c454e['includes'](_0x4d7885));_0x2505bc['args']=[..._0x2c454e,..._0x4308ea];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x2505bc,'contextOptions':{..._0x4c7675,'permissions':[_0x416e3c(0x203),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3d8a6c=_0x36f5ce['IaNDv'](_0xb7d947,'playwright-cli')?{'browser':_0x3f8ada,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x56fd6d,'outputMode':_0x209df0(0x1ba),'codegen':_0x36f5ce[_0x209df0(0x1eb)]}:{'name':_0x171cab,'browser':_0x3f8ada,'capabilities':[_0x36f5ce['aJcFS'],_0x36f5ce['ltNUx'],_0x209df0(0x1cd),_0x36f5ce[_0x209df0(0x1d2)],'vision'],'imageResponses':_0x209df0(0x208),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x56fd6d};if(!_0xad26db){const _0x32be9a=_0x3d8a6c[_0x209df0(0x1c8)],_0x336125=_0x32be9a[_0x209df0(0x1b4)];if(_0x36f5ce['jvtgW'](_0x336125['userAgent'],undefined))delete _0x336125['userAgent'];if(_0x336125[_0x209df0(0x201)]===undefined)delete _0x336125['storageState'];}const _0x3e701a=join(_0x36f5ce[_0x209df0(0x1af)](tmpdir),'ranger-config');!existsSync(_0x3e701a)&&await mkdir(_0x3e701a,{'recursive':!![]});const _0x3a9360=_0xb7d947==='playwright-cli'?_0x36f5ce['StUvf']:'',_0x3bf805=_0x36f5ce[_0x209df0(0x1ff)](join,_0x3e701a,_0x171cab+'-'+Date['now']()+_0x3a9360+_0x209df0(0x20c));return await _0x36f5ce[_0x209df0(0x1ff)](writeFile,_0x3bf805,JSON[_0x209df0(0x1f0)](_0x3d8a6c,null,0x2)),{'configPath':_0x3bf805};}export async function buildPlaywrightCliConfig(_0x1fd4c3,_0x57e0bc,_0x350e60,_0x28ce9f,_0x16c70c){const _0x459d2d=_0x8c91a,_0x59b338={'HZbNl':function(_0x13b326,_0x368915){return _0x13b326(_0x368915);},'unpey':function(_0x411759,_0x4d0a84,_0x8e3e,_0x1a4063,_0x4faec1,_0x2750f1,_0x3c00cf){return _0x411759(_0x4d0a84,_0x8e3e,_0x1a4063,_0x4faec1,_0x2750f1,_0x3c00cf);},'bvTML':_0x459d2d(0x1c4)};if(_0x16c70c)return buildPlaywrightConfigCore(_0x1fd4c3,_0x16c70c,_0x57e0bc,_0x350e60,_0x28ce9f,'playwright-cli');const {storageStatePath:_0x299a1a,tempAuthPath:_0x5b8837}=await _0x59b338[_0x459d2d(0x1ee)](resolveLocalAuthPath,getEnvDir(_0x57e0bc));try{const _0x244acf=await _0x59b338[_0x459d2d(0x21b)](buildPlaywrightConfigCore,_0x1fd4c3,_0x299a1a,_0x57e0bc,_0x350e60,_0x28ce9f,_0x59b338['bvTML']);return{..._0x244acf,'tempAuthPath':_0x5b8837};}catch(_0x35045b){_0x5b8837&&await unlink(_0x5b8837)['catch'](()=>{});throw _0x35045b;}}export function getNestedValue(_0x1c6480,_0x46b02e){const _0x8ca29=_0x8c91a,_0x26eef7={'kZetn':function(_0xeeff9,_0x4fc772){return _0xeeff9!==_0x4fc772;},'mVMNj':_0x8ca29(0x1df)},_0x176d21=parseKeyPath(_0x46b02e);let _0x4823f6=_0x1c6480;for(const _0x492c1e of _0x176d21){if(_0x4823f6===null||_0x4823f6===undefined||_0x26eef7['kZetn'](typeof _0x4823f6,_0x26eef7[_0x8ca29(0x1f2)]))return undefined;_0x4823f6=_0x4823f6[_0x492c1e];}return _0x4823f6;}export function setNestedValue(_0x145a01,_0x840b6f,_0x4674dd){const _0x1f12a7=_0x8c91a,_0x581906={'Jwiqg':function(_0x369e6a,_0x38d369){return _0x369e6a(_0x38d369);},'EVaMj':function(_0x251762,_0x3c5919){return _0x251762-_0x3c5919;},'oTLYX':function(_0x5cd430,_0x8da013){return _0x5cd430!==_0x8da013;}},_0x151f16=_0x581906['Jwiqg'](parseKeyPath,_0x840b6f);let _0x43ef5a=_0x145a01;for(let _0x17fb4c=0x0;_0x17fb4c<_0x581906[_0x1f12a7(0x205)](_0x151f16[_0x1f12a7(0x1e2)],0x1);_0x17fb4c++){const _0x243f46=_0x151f16[_0x17fb4c];(!(_0x243f46 in _0x43ef5a)||_0x581906[_0x1f12a7(0x1f4)](typeof _0x43ef5a[_0x243f46],'object'))&&(_0x43ef5a[_0x243f46]={}),_0x43ef5a=_0x43ef5a[_0x243f46];}_0x43ef5a[_0x151f16[_0x151f16[_0x1f12a7(0x1e2)]-0x1]]=_0x4674dd;}export function deleteNestedValue(_0x431deb,_0x9e50c9){const _0x172dce=_0x8c91a,_0x2298ad={'fvSVF':function(_0x31e511,_0x298930){return _0x31e511(_0x298930);},'tslmQ':function(_0x62913e,_0x56c087){return _0x62913e<_0x56c087;},'doiOZ':function(_0x18ed0e,_0x30f68e){return _0x18ed0e-_0x30f68e;},'ZNOfU':function(_0x5ef35c,_0x2cc907){return _0x5ef35c===_0x2cc907;},'wUVra':function(_0x42dd09,_0xee821a){return _0x42dd09!==_0xee821a;},'HHnhj':'object','WVmQb':function(_0x36ecc5,_0x5a8b4b){return _0x36ecc5===_0x5a8b4b;},'gQoWu':function(_0x3e6328,_0x4797a1){return _0x3e6328!==_0x4797a1;},'BKycJ':function(_0x2928f4,_0x23f408){return _0x2928f4 in _0x23f408;}},_0xcfbeee=_0x2298ad['fvSVF'](parseKeyPath,_0x9e50c9);let _0x1f90e1=_0x431deb;for(let _0x27cda9=0x0;_0x2298ad[_0x172dce(0x1d3)](_0x27cda9,_0x2298ad[_0x172dce(0x1f9)](_0xcfbeee[_0x172dce(0x1e2)],0x1));_0x27cda9++){if(_0x1f90e1===null||_0x2298ad['ZNOfU'](_0x1f90e1,undefined)||_0x2298ad[_0x172dce(0x20b)](typeof _0x1f90e1,_0x2298ad[_0x172dce(0x218)]))return![];_0x1f90e1=_0x1f90e1[_0xcfbeee[_0x27cda9]];}if(_0x2298ad[_0x172dce(0x1d6)](_0x1f90e1,null)||_0x2298ad[_0x172dce(0x1e6)](_0x1f90e1,undefined)||_0x2298ad[_0x172dce(0x20d)](typeof _0x1f90e1,_0x2298ad['HHnhj']))return![];const _0x569289=_0xcfbeee[_0x2298ad[_0x172dce(0x1f9)](_0xcfbeee[_0x172dce(0x1e2)],0x1)];if(_0x2298ad[_0x172dce(0x1e7)](_0x569289,_0x1f90e1))return delete _0x1f90e1[_0x569289],!![];return![];}function parseKeyPath(_0xcae4da){const _0x37a4ac=_0x8c91a,_0xab8f09={'gKcJN':'headers','TJdxW':function(_0x4d5d1d,_0x791a1e){return _0x4d5d1d===_0x791a1e;},'axRmg':_0x37a4ac(0x1c3)},_0x2db596=_0xcae4da[_0x37a4ac(0x1c0)]('.');return _0x2db596[0x0]===_0x37a4ac(0x1d0)&&(_0x2db596[0x0]=_0xab8f09[_0x37a4ac(0x217)]),_0xab8f09[_0x37a4ac(0x20f)](_0x2db596[0x0],_0xab8f09['axRmg'])&&(_0x2db596[0x0]=_0x37a4ac(0x1b3)),_0x2db596;}function _0xba7c(){const _0x2e7169=['configPath','XORrd','YGvdp','DxmBU','Environment\x20variable\x20','BmJVs','fromEntries','gKcJN','HHnhj','adnuJ','auth.json.enc','unpey','24664CFXojj','3184NsMjuM','IaNDv','KkhDR','pooSU','tempAuthPath','cswpy','uHGuE','YAPog','isArray','setupHeaders','contextOptions','string','all','-cli','LXIlX','cdpEndpoint','file','UjRaB','gegah','--allow-running-insecure-content','174XmoXOB','FfAsY','split','1205575uoBWNP','yJGmi','setupHeader','playwright-cli','756UVTekB','CVWAO','11683lFUGsm','browser','NcsYi','join','kVfRs','location','install','327PlsQUg','userAgent','header','GRTfR','HlUIG','tslmQ','pHOmf','dBulr','ZNOfU','args','headless','utf-8','gutax','SrkyR','getuid','2613721wcDojA','includes','object','--unsafely-treat-insecure-origin-as-secure=http://localhost','zHwoB','length','mLkUA','HCKHA','3883992CJvECc','WVmQb','BKycJ','uCDJk','63270TcaYxT','GavmU','gZeSn','keys','path','HZbNl','core','stringify','entries','mVMNj','uMvcA','oTLYX','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','filter','55280oQmncL','repeat','doiOZ','headers','boolean','extraHTTPHeaders','stagehand','ghpJF','ZFtMm','none','storageState','xtgQq','clipboard-read','safeMode','EVaMj','push','NLBZC','allow','EXLgZ','storageStatePath','wUVra','.json','gQoWu','auth.json','TJdxW'];_0xba7c=function(){return _0x2e7169;};return _0xba7c();}export function formatSettings(_0x2176c7,_0x578fe8=0x0){const _0x514918=_0x8c91a,_0x6a61f8={'grAlL':'object','zHqtb':function(_0x274478,_0x29d796){return _0x274478!==_0x29d796;}},_0x220c96=[],_0x28172f='\x20\x20'[_0x514918(0x1f8)](_0x578fe8);for(const [_0x4a6e49,_0x460fac]of Object[_0x514918(0x1f1)](_0x2176c7)){if(_0x460fac===undefined)continue;if(typeof _0x460fac===_0x6a61f8['grAlL']&&_0x6a61f8['zHqtb'](_0x460fac,null)){_0x220c96[_0x514918(0x206)](''+_0x28172f+_0x4a6e49+':');for(const [_0x384786,_0x5a31f2]of Object['entries'](_0x460fac)){_0x220c96[_0x514918(0x206)](_0x28172f+'\x20\x20'+_0x384786+':\x20'+_0x5a31f2);}}else _0x220c96[_0x514918(0x206)](''+_0x28172f+_0x4a6e49+':\x20'+_0x460fac);}return _0x220c96[_0x514918(0x1ca)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x402599,_0x30ebe7){const _0x1d4891=_0x5e30,_0x277b32=_0x402599();while(!![]){try{const _0xd8744b=parseInt(_0x1d4891(0xbb))/0x1+-parseInt(_0x1d4891(0xbc))/0x2+parseInt(_0x1d4891(0xbd))/0x3*(-parseInt(_0x1d4891(0xb7))/0x4)+-parseInt(_0x1d4891(0xc1))/0x5*(-parseInt(_0x1d4891(0xc2))/0x6)+parseInt(_0x1d4891(0xb9))/0x7*(parseInt(_0x1d4891(0xb8))/0x8)+parseInt(_0x1d4891(0xbf))/0x9*(-parseInt(_0x1d4891(0xba))/0xa)+parseInt(_0x1d4891(0xbe))/0xb;if(_0xd8744b===_0x30ebe7)break;else _0x277b32['push'](_0x277b32['shift']());}catch(_0x23423b){_0x277b32['push'](_0x277b32['shift']());}}}(_0x5d7b,0x487fd));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x5e30(_0x489991,_0x506036){_0x489991=_0x489991-0xb7;const _0x5d7be9=_0x5d7b();let _0x5e30df=_0x5d7be9[_0x489991];return _0x5e30df;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3ee2c6){const _0x4503bd={'LtUbF':'utf-8'},_0x4bbe8c=join(__dirname,'..','..','skills'),_0x5bccf9=join(_0x4bbe8c,_0x3ee2c6);try{return readFileSync(_0x5bccf9,_0x4503bd['LtUbF']);}catch{return'';}}export function getRangerSkillContent(){const _0x14b492=_0x5e30,_0x4db122={'QTJik':_0x14b492(0xc0)};return readSkillContent(_0x4db122['QTJik']);}function _0x5d7b(){const _0x3b15f7=['53224NDGKIT','14cvTjna','19350gWRGnt','578315snQhJD','1079184LcAWwN','84306cpUQvq','8193911ncuoOq','1719lWSNYl','ranger/SKILL.md','365mAucgJ','37788ECVbpt','84blOorl'];_0x5d7b=function(){return _0x3b15f7;};return _0x5d7b();}
1
+ (function(_0x4e83e8,_0x1bf68a){const _0x2648ff=_0x3fa4,_0x46a6b2=_0x4e83e8();while(!![]){try{const _0x4a14f6=parseInt(_0x2648ff(0x1eb))/0x1+-parseInt(_0x2648ff(0x1de))/0x2+-parseInt(_0x2648ff(0x1e8))/0x3+parseInt(_0x2648ff(0x1e0))/0x4*(parseInt(_0x2648ff(0x1ea))/0x5)+-parseInt(_0x2648ff(0x1e9))/0x6*(parseInt(_0x2648ff(0x1e5))/0x7)+-parseInt(_0x2648ff(0x1dd))/0x8*(-parseInt(_0x2648ff(0x1e7))/0x9)+-parseInt(_0x2648ff(0x1e4))/0xa*(-parseInt(_0x2648ff(0x1dc))/0xb);if(_0x4a14f6===_0x1bf68a)break;else _0x46a6b2['push'](_0x46a6b2['shift']());}catch(_0x475949){_0x46a6b2['push'](_0x46a6b2['shift']());}}}(_0x42c3,0x36444));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x3fa4(_0x4a9bea,_0x48c945){_0x4a9bea=_0x4a9bea-0x1db;const _0x42c386=_0x42c3();let _0x3fa4c9=_0x42c386[_0x4a9bea];return _0x3fa4c9;}function _0x42c3(){const _0x12c52b=['vQoEj','11uwYWrk','8gWtPPW','395624zQQLRQ','utf-8','21572sBxmnx','gjXcj','ksxbW','skills','2015810JNsVvF','293825fUGDdR','WSFIS','2679444KiXUmb','117546gDYwaG','60qLqxTy','40MGYnCe','336579xyiDJh'];_0x42c3=function(){return _0x12c52b;};return _0x42c3();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3c09ee){const _0x4581=_0x3fa4,_0x2fe973={'ksxbW':function(_0x4e3fcc,_0x1d25c1,_0x3c76f1){return _0x4e3fcc(_0x1d25c1,_0x3c76f1);},'gjXcj':_0x4581(0x1df)},_0x817333=join(__dirname,'..','..',_0x4581(0x1e3)),_0xfa3f76=join(_0x817333,_0x3c09ee);try{return _0x2fe973[_0x4581(0x1e2)](readFileSync,_0xfa3f76,_0x2fe973[_0x4581(0x1e1)]);}catch{return'';}}export function getRangerSkillContent(){const _0x32e2d0=_0x3fa4,_0x180e76={'WSFIS':function(_0x8c3d9c,_0x186855){return _0x8c3d9c(_0x186855);},'vQoEj':'ranger/SKILL.md'};return _0x180e76[_0x32e2d0(0x1e6)](readSkillContent,_0x180e76[_0x32e2d0(0x1db)]);}
@@ -1 +1 @@
1
- function _0x35ef(_0x517b6b,_0x5e93da){_0x517b6b=_0x517b6b-0x120;const _0x248360=_0x2483();let _0x35efdd=_0x248360[_0x517b6b];return _0x35efdd;}const _0x5d4958=_0x35ef;(function(_0x3f418f,_0x5dea5){const _0x2dd7f6=_0x35ef,_0x16e317=_0x3f418f();while(!![]){try{const _0x14e8c5=parseInt(_0x2dd7f6(0x120))/0x1*(-parseInt(_0x2dd7f6(0x13b))/0x2)+parseInt(_0x2dd7f6(0x132))/0x3+parseInt(_0x2dd7f6(0x123))/0x4+parseInt(_0x2dd7f6(0x136))/0x5*(-parseInt(_0x2dd7f6(0x145))/0x6)+parseInt(_0x2dd7f6(0x144))/0x7*(-parseInt(_0x2dd7f6(0x142))/0x8)+-parseInt(_0x2dd7f6(0x121))/0x9*(-parseInt(_0x2dd7f6(0x140))/0xa)+-parseInt(_0x2dd7f6(0x129))/0xb;if(_0x14e8c5===_0x5dea5)break;else _0x16e317['push'](_0x16e317['shift']());}catch(_0xf0da9e){_0x16e317['push'](_0x16e317['shift']());}}}(_0x2483,0xe4ab5));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x2483(){const _0x4dbb4d=['6633968BbGwFw','ranger','feature-tracker','isDirectory','claude','\x20\x20Skill\x20not\x20found:\x20','warn','MwjYS','e2e-test-recommender','4912635wiMniZ','push','gtJeC','Invalid\x20skill\x20frontmatter','5TaolOG','join','jLUBm','log','opencode','12eSZKaf','endsWith','UeVEJ','match','\x20\x20Location:\x20','4823190VrjWgp','SKILL.md','7001976gSxgeY','uCYaU','7EGgptX','11096346eHFBDu','project','89017BkuYjk','27mTCKWR','SZogs','6855820xWObsv','trim','CoPUB','VlNcf','HUcrH','utf-8'];_0x2483=function(){return _0x4dbb4d;};return _0x2483();}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=[_0x5d4958(0x12a)];export const DEPRECATED_SKILLS=[_0x5d4958(0x131),'bug-bash',_0x5d4958(0x12b)];export async function installSkill(_0x43aa75,_0x2c35df={}){const _0x599c2c=_0x5d4958,_0x549cb7={'UpAcZ':_0x599c2c(0x12d),'HUcrH':function(_0x51e5d0,_0x41cc83,_0xbf5a02){return _0x51e5d0(_0x41cc83,_0xbf5a02);},'gtJeC':function(_0x284d5f,_0x25d332){return _0x284d5f(_0x25d332);},'jLUBm':_0x599c2c(0x141),'SZogs':function(_0x309600,_0x5b6db9){return _0x309600===_0x5b6db9;},'VlNcf':function(_0x557e6e,_0x1123ec){return _0x557e6e(_0x1123ec);},'BmSGJ':_0x599c2c(0x128),'fTyWb':function(_0x5ac8e4,_0x2c3034,_0x580a3a){return _0x5ac8e4(_0x2c3034,_0x580a3a);},'CoPUB':function(_0x18547d,_0x10b8e3,_0x49b347,_0x5c2daa){return _0x18547d(_0x10b8e3,_0x49b347,_0x5c2daa);},'vHTqG':function(_0x119cfa,_0x40c69c){return _0x119cfa>_0x40c69c;}},{level:level=_0x599c2c(0x146),cliVersion:_0x200871,platform:platform=_0x549cb7['UpAcZ']}=_0x2c35df,_0x6be351=getSourceSkillsDir(),_0x2bc0f8=_0x549cb7['HUcrH'](join,_0x6be351,_0x43aa75),_0x4e9456=join(_0x6be351,_0x43aa75+'.md'),_0x2e6769=_0x549cb7['gtJeC'](existsSync,_0x2bc0f8)&&_0x549cb7[_0x599c2c(0x134)](statSync,_0x2bc0f8)[_0x599c2c(0x12c)]()&&_0x549cb7['gtJeC'](existsSync,_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x549cb7[_0x599c2c(0x138)])),_0x33bc63=existsSync(_0x4e9456);if(!_0x2e6769&&!_0x33bc63)return console[_0x599c2c(0x12f)](_0x599c2c(0x12e)+_0x43aa75),![];const _0x278745=_0x549cb7[_0x599c2c(0x122)](platform,_0x599c2c(0x13a))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4d378e=_0x549cb7[_0x599c2c(0x127)](join,_0x278745,_0x43aa75);await _0x549cb7[_0x599c2c(0x127)](mkdir,_0x4d378e,{'recursive':!![]});let _0x2d6761,_0x3a8721=[];if(_0x2e6769){const _0x1eeb0a=await _0x549cb7[_0x599c2c(0x126)](readdir,_0x2bc0f8),_0x5047cf=_0x1eeb0a['filter'](_0xd4c262=>_0xd4c262[_0x599c2c(0x13c)]('.md'));for(const _0x128a09 of _0x5047cf){const _0x2b546c=_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x128a09),_0x207061=_0x549cb7[_0x599c2c(0x127)](join,_0x4d378e,_0x128a09);await copyFile(_0x2b546c,_0x207061),_0x3a8721[_0x599c2c(0x133)](_0x128a09);}_0x2d6761=await readFile(join(_0x2bc0f8,_0x549cb7['jLUBm']),_0x549cb7['BmSGJ']);}else{_0x2d6761=await _0x549cb7[_0x599c2c(0x127)](readFile,_0x4e9456,_0x599c2c(0x128));const _0x135410=_0x549cb7['fTyWb'](join,_0x4d378e,_0x549cb7['jLUBm']);await _0x549cb7[_0x599c2c(0x125)](writeFile,_0x135410,_0x2d6761,_0x599c2c(0x128)),_0x3a8721[_0x599c2c(0x133)](_0x549cb7[_0x599c2c(0x138)]);}const {name:_0x2a6500}=_0x549cb7['VlNcf'](parseFrontmatter,_0x2d6761);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x2a6500),console['log'](_0x599c2c(0x13f)+_0x4d378e),_0x549cb7['vHTqG'](_0x3a8721['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0x3a8721[_0x599c2c(0x137)](',\x20')),logLocalAgentInstallation(_0x43aa75,{'skillDisplayName':_0x2a6500,'installLevel':level},_0x200871)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1cd63f=_0x5d4958,_0x3ade9d={'UeVEJ':function(_0x42e792,_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab){return _0x42e792(_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab);}},_0x4c9d35=[join(__dirname,'..','..','skills'),_0x3ade9d[_0x1cd63f(0x13d)](join,__dirname,'..','..','..','skills')];for(const _0x2e2dbe of _0x4c9d35){if(existsSync(_0x2e2dbe))return _0x2e2dbe;}return _0x4c9d35[0x0];}function parseFrontmatter(_0x1aac68){const _0x9f9ee1=_0x5d4958,_0x1ed862={'MwjYS':_0x9f9ee1(0x135)},_0x315011=_0x1aac68['match'](/^---\n([\s\S]+?)\n---/);if(!_0x315011)throw new Error(_0x1ed862[_0x9f9ee1(0x130)]);const _0x3e624b=_0x315011[0x1],_0x4eaf30=_0x3e624b['match'](/name:\s*(.+)/),_0x5a7d3b=_0x3e624b[_0x9f9ee1(0x13e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4eaf30?.[0x1][_0x9f9ee1(0x124)]()||'','description':_0x5a7d3b?.[0x1][_0x9f9ee1(0x124)]()||''};}export async function removeSkill(_0x21bb5c,_0x4ddd49){const _0x539131=_0x5d4958,_0x59446f={'uCYaU':function(_0x161338,_0x9ffea9,_0x555cc6){return _0x161338(_0x9ffea9,_0x555cc6);}},_0xe7fac9=getSkillsDir(_0x4ddd49),_0xfed6aa=_0x59446f[_0x539131(0x143)](join,_0xe7fac9,_0x21bb5c);if(!existsSync(_0xfed6aa))return![];try{return await rm(_0xfed6aa,{'recursive':!![]}),console[_0x539131(0x139)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x21bb5c),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x21bb5c),![];}}
1
+ (function(_0x42c822,_0x3eb9ef){const _0x40354b=_0x1b41,_0x339ab3=_0x42c822();while(!![]){try{const _0x55a557=-parseInt(_0x40354b(0x86))/0x1+-parseInt(_0x40354b(0x7d))/0x2*(parseInt(_0x40354b(0x95))/0x3)+-parseInt(_0x40354b(0x8e))/0x4+parseInt(_0x40354b(0x80))/0x5+-parseInt(_0x40354b(0x81))/0x6+-parseInt(_0x40354b(0x83))/0x7*(parseInt(_0x40354b(0x91))/0x8)+parseInt(_0x40354b(0x8a))/0x9;if(_0x55a557===_0x3eb9ef)break;else _0x339ab3['push'](_0x339ab3['shift']());}catch(_0xa00d65){_0x339ab3['push'](_0x339ab3['shift']());}}}(_0x4861,0xe4cf1));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x1b41(_0x34ffcc,_0x98b9d2){_0x34ffcc=_0x34ffcc-0x7c;const _0x48616b=_0x4861();let _0x1b4133=_0x48616b[_0x34ffcc];return _0x1b4133;}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 _0x4861(){const _0x1f5c76=['length','MSIhb','kclcv','621TqynBE','Invalid\x20skill\x20frontmatter','fSNGS','project','htnRT','warn','gyaFm','match','11346LbUmqw','LGYzH','utf-8','4959600aXiSfx','9173376kudsyr','SKILL.md','35021SpDeoK','piksq','\x20\x20Files:\x20','436475aVXRJH','\x20\x20Location:\x20','\x20\x20Removed\x20deprecated\x20skill:\x20','gzlGS','54065970wSOoBG','.md','log','opencode','5085508lYxAvd','VKbFH','VrfwT','2640esOByV'];_0x4861=function(){return _0x1f5c76;};return _0x4861();}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','feature-tracker'];export async function installSkill(_0x528384,_0x1706e7={}){const _0x5751f9=_0x1b41,_0x47b7af={'gyaFm':_0x5751f9(0x98),'MSIhb':function(_0x146dde,_0x22b339,_0x23dfa7){return _0x146dde(_0x22b339,_0x23dfa7);},'LGYzH':function(_0x593639,_0x3660ae){return _0x593639(_0x3660ae);},'VrfwT':_0x5751f9(0x82),'NIzBV':function(_0x1dc6d2,_0x30b75e){return _0x1dc6d2===_0x30b75e;},'htnRT':function(_0x184a2b,_0x32551c){return _0x184a2b(_0x32551c);},'kclcv':'utf-8','PwXpM':function(_0x3de36d,_0x251f5a,_0x19e849){return _0x3de36d(_0x251f5a,_0x19e849);},'fSNGS':function(_0xad8677,_0x681003,_0x1a9a30){return _0xad8677(_0x681003,_0x1a9a30);},'dsBJO':function(_0x59a8e8,_0x235cb5,_0xc80aa5,_0x178916){return _0x59a8e8(_0x235cb5,_0xc80aa5,_0x178916);},'gzlGS':function(_0x4c789d,_0x440c34,_0x310c02,_0x1e58e1){return _0x4c789d(_0x440c34,_0x310c02,_0x1e58e1);}},{level:level=_0x47b7af[_0x5751f9(0x9b)],cliVersion:_0x329300,platform:platform='claude'}=_0x1706e7,_0xfbe26b=getSourceSkillsDir(),_0x153c50=_0x47b7af['MSIhb'](join,_0xfbe26b,_0x528384),_0x150bb1=join(_0xfbe26b,_0x528384+_0x5751f9(0x8b)),_0x385620=existsSync(_0x153c50)&&statSync(_0x153c50)['isDirectory']()&&_0x47b7af[_0x5751f9(0x7e)](existsSync,_0x47b7af[_0x5751f9(0x93)](join,_0x153c50,_0x47b7af[_0x5751f9(0x90)])),_0x213d1e=existsSync(_0x150bb1);if(!_0x385620&&!_0x213d1e)return console[_0x5751f9(0x9a)]('\x20\x20Skill\x20not\x20found:\x20'+_0x528384),![];const _0x12c11c=_0x47b7af['NIzBV'](platform,_0x5751f9(0x8d))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4f1b8c=_0x47b7af[_0x5751f9(0x93)](join,_0x12c11c,_0x528384);await _0x47b7af['MSIhb'](mkdir,_0x4f1b8c,{'recursive':!![]});let _0x41fc09,_0x44870c=[];if(_0x385620){const _0x4dc956=await _0x47b7af[_0x5751f9(0x99)](readdir,_0x153c50),_0x2efa4c=_0x4dc956['filter'](_0x4a939d=>_0x4a939d['endsWith']('.md'));for(const _0x2627ee of _0x2efa4c){const _0xd281a7=_0x47b7af[_0x5751f9(0x93)](join,_0x153c50,_0x2627ee),_0x24aaa7=_0x47b7af[_0x5751f9(0x93)](join,_0x4f1b8c,_0x2627ee);await copyFile(_0xd281a7,_0x24aaa7),_0x44870c['push'](_0x2627ee);}_0x41fc09=await _0x47b7af[_0x5751f9(0x93)](readFile,join(_0x153c50,_0x5751f9(0x82)),_0x47b7af['kclcv']);}else{_0x41fc09=await _0x47b7af['PwXpM'](readFile,_0x150bb1,_0x47b7af[_0x5751f9(0x94)]);const _0x26f559=_0x47b7af[_0x5751f9(0x97)](join,_0x4f1b8c,_0x5751f9(0x82));await _0x47b7af['dsBJO'](writeFile,_0x26f559,_0x41fc09,_0x5751f9(0x7f)),_0x44870c['push'](_0x5751f9(0x82));}const {name:_0x2b855c}=parseFrontmatter(_0x41fc09);return console[_0x5751f9(0x8c)]('\x20\x20Installed\x20skill:\x20'+_0x2b855c),console['log'](_0x5751f9(0x87)+_0x4f1b8c),_0x44870c[_0x5751f9(0x92)]>0x1&&console['log'](_0x5751f9(0x85)+_0x44870c['join'](',\x20')),_0x47b7af[_0x5751f9(0x89)](logLocalAgentInstallation,_0x528384,{'skillDisplayName':_0x2b855c,'installLevel':level},_0x329300)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x28ac18=_0x1b41,_0x1fd531={'bcyDy':'skills','piksq':function(_0x59a727,_0x37386c,_0x446a87,_0x2c680d,_0x49f01e,_0x1de50c){return _0x59a727(_0x37386c,_0x446a87,_0x2c680d,_0x49f01e,_0x1de50c);}},_0x13d2d1=[join(__dirname,'..','..',_0x1fd531['bcyDy']),_0x1fd531[_0x28ac18(0x84)](join,__dirname,'..','..','..','skills')];for(const _0x24f0d7 of _0x13d2d1){if(existsSync(_0x24f0d7))return _0x24f0d7;}return _0x13d2d1[0x0];}function parseFrontmatter(_0x50b62f){const _0x5369dd=_0x1b41,_0x2fd023={'xljkF':_0x5369dd(0x96)},_0x5e48f1=_0x50b62f['match'](/^---\n([\s\S]+?)\n---/);if(!_0x5e48f1)throw new Error(_0x2fd023['xljkF']);const _0x10942b=_0x5e48f1[0x1],_0x4fd2b3=_0x10942b[_0x5369dd(0x7c)](/name:\s*(.+)/),_0x52b98e=_0x10942b['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x4fd2b3?.[0x1]['trim']()||'','description':_0x52b98e?.[0x1]['trim']()||''};}export async function removeSkill(_0x48baa1,_0x42dc28){const _0x5aa3c0=_0x1b41,_0x3805a5={'VKbFH':function(_0x1ee03e,_0x2ed866,_0x3f5fc6){return _0x1ee03e(_0x2ed866,_0x3f5fc6);}},_0x1793ae=getSkillsDir(_0x42dc28),_0x52a6dc=_0x3805a5['VKbFH'](join,_0x1793ae,_0x48baa1);if(!existsSync(_0x52a6dc))return![];try{return await _0x3805a5[_0x5aa3c0(0x8f)](rm,_0x52a6dc,{'recursive':!![]}),console[_0x5aa3c0(0x8c)](_0x5aa3c0(0x88)+_0x48baa1),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x48baa1),![];}}
@@ -1 +1 @@
1
- const _0x1d5a18=_0x2026;(function(_0x35119d,_0x179d17){const _0x260c0e=_0x2026,_0x48128e=_0x35119d();while(!![]){try{const _0x8f2c0e=parseInt(_0x260c0e(0x11e))/0x1*(parseInt(_0x260c0e(0x11c))/0x2)+parseInt(_0x260c0e(0x13b))/0x3*(-parseInt(_0x260c0e(0x117))/0x4)+-parseInt(_0x260c0e(0x158))/0x5*(-parseInt(_0x260c0e(0x142))/0x6)+parseInt(_0x260c0e(0x153))/0x7*(parseInt(_0x260c0e(0x129))/0x8)+-parseInt(_0x260c0e(0x141))/0x9+-parseInt(_0x260c0e(0x151))/0xa+-parseInt(_0x260c0e(0x125))/0xb*(-parseInt(_0x260c0e(0x132))/0xc);if(_0x8f2c0e===_0x179d17)break;else _0x48128e['push'](_0x48128e['shift']());}catch(_0x16a9c6){_0x48128e['push'](_0x48128e['shift']());}}}(_0xa406,0x589b6));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(_0x2af929,_0x4a441f){const _0x29635e=_0x2026,_0x50569c={'Fhqaj':function(_0x449d20,_0x59b6ad){return _0x449d20&_0x59b6ad;},'NDebf':function(_0x58b00a,_0x33d5d3){return _0x58b00a-_0x33d5d3;},'ZTiNL':function(_0x4bed69,_0x1ad200){return _0x4bed69+_0x1ad200;}};if(_0x4a441f>=_0x2af929['length'])return[0x0,0x0];const _0x28aac6=_0x2af929[_0x4a441f];let _0x44b71a=0x1,_0x3d645d=0x80;while(_0x44b71a<=0x8&&!_0x50569c[_0x29635e(0x137)](_0x28aac6,_0x3d645d)){_0x44b71a++,_0x3d645d>>=0x1;}if(_0x4a441f+_0x44b71a>_0x2af929['length'])return[0x0,0x0];let _0x5ae6da=_0x28aac6&_0x50569c['NDebf'](_0x3d645d,0x1);for(let _0x4f2440=0x1;_0x4f2440<_0x44b71a;_0x4f2440++){_0x5ae6da=_0x5ae6da*0x100+_0x2af929[_0x50569c[_0x29635e(0x11f)](_0x4a441f,_0x4f2440)];}return[_0x5ae6da,_0x44b71a];}function readId(_0x2137c7,_0xcceb56){const _0x52bd02=_0x2026,_0x4365fe={'ANeCq':function(_0x34eee9,_0x342171){return _0x34eee9>=_0x342171;},'VsONr':function(_0x6e9e13,_0x2fad0){return _0x6e9e13>=_0x2fad0;},'WDrMe':function(_0x541c3e,_0x3a0d9a){return _0x541c3e*_0x3a0d9a;}};if(_0xcceb56>=_0x2137c7[_0x52bd02(0x139)])return[0x0,0x0];const _0x35f0cd=_0x2137c7[_0xcceb56];let _0x42ddd4;if(_0x4365fe[_0x52bd02(0x127)](_0x35f0cd,0x80))_0x42ddd4=0x1;else{if(_0x35f0cd>=0x40)_0x42ddd4=0x2;else{if(_0x4365fe[_0x52bd02(0x127)](_0x35f0cd,0x20))_0x42ddd4=0x3;else{if(_0x4365fe[_0x52bd02(0x159)](_0x35f0cd,0x10))_0x42ddd4=0x4;else return[_0x35f0cd,0x1];}}}if(_0xcceb56+_0x42ddd4>_0x2137c7['length'])return[0x0,0x0];let _0x34e784=0x0;for(let _0x514a90=0x0;_0x514a90<_0x42ddd4;_0x514a90++){_0x34e784=_0x4365fe[_0x52bd02(0x134)](_0x34e784,0x100)+_0x2137c7[_0xcceb56+_0x514a90];}return[_0x34e784,_0x42ddd4];}function readUint(_0x5e7e57,_0xa1aae1,_0x4085aa){const _0x4f8972={'jCrcC':function(_0x1eb24a,_0x48f7c8){return _0x1eb24a<_0x48f7c8;},'uKapR':function(_0xe79fce,_0x2f2870){return _0xe79fce+_0x2f2870;}};let _0x1e8ab9=0x0;for(let _0x51cc03=0x0;_0x4f8972['jCrcC'](_0x51cc03,_0x4085aa);_0x51cc03++){_0x1e8ab9=_0x4f8972['uKapR'](_0x1e8ab9*0x100,_0x5e7e57[_0xa1aae1+_0x51cc03]);}return _0x1e8ab9;}function isUnknownSize(_0x57f00b,_0x4bb875){const _0x3cbdf7={'iBigI':function(_0x3db227,_0x4350f0){return _0x3db227===_0x4350f0;}};return _0x3cbdf7['iBigI'](_0x57f00b,Math['pow'](0x2,0x7*_0x4bb875)-0x1);}function _0x2026(_0x5a2b81,_0x13b34b){_0x5a2b81=_0x5a2b81-0x115;const _0xa4062f=_0xa406();let _0x20263b=_0xa4062f[_0x5a2b81];return _0x20263b;}function writeVint(_0x501010,_0x1f6ff3){const _0x162d92=_0x2026,_0x39979={'CSnDk':function(_0x4b3357,_0x2b1f95){return _0x4b3357||_0x2b1f95;},'FYDYn':function(_0x26e01d,_0x3c51ed){return _0x26e01d-_0x3c51ed;},'KjqRq':function(_0x127bfc,_0x338e3b){return _0x127bfc*_0x338e3b;},'deDzN':function(_0x22db3e,_0x3d03e5){return _0x22db3e>=_0x3d03e5;},'uGWpm':function(_0x51c0b6,_0x1a8f78){return _0x51c0b6-_0x1a8f78;}};let _0x28cdb6=_0x39979[_0x162d92(0x126)](_0x1f6ff3,0x1);while(_0x39979['FYDYn'](Math['pow'](0x2,_0x39979[_0x162d92(0x116)](0x7,_0x28cdb6)),0x2)<_0x501010)_0x28cdb6++;const _0x13a904=Buffer[_0x162d92(0x120)](_0x28cdb6);for(let _0xa7355b=_0x28cdb6-0x1;_0x39979[_0x162d92(0x135)](_0xa7355b,0x0);_0xa7355b--){_0x13a904[_0xa7355b]=_0x501010&0xff,_0x501010=Math[_0x162d92(0x154)](_0x501010/0x100);}return _0x13a904[0x0]|=0x1<<_0x39979[_0x162d92(0x136)](0x8,_0x28cdb6),_0x13a904;}function writeUint(_0x42f3a4,_0x53c13b){const _0x4de4ad=_0x2026,_0x4abbd={'MguvH':function(_0x1cc3b7,_0x4c8576){return _0x1cc3b7-_0x4c8576;},'AoXBB':function(_0x4873ed,_0x42d4d8){return _0x4873ed>=_0x42d4d8;}},_0xbd52e1=Buffer[_0x4de4ad(0x120)](_0x53c13b);for(let _0x33acce=_0x4abbd[_0x4de4ad(0x12e)](_0x53c13b,0x1);_0x4abbd['AoXBB'](_0x33acce,0x0);_0x33acce--){_0xbd52e1[_0x33acce]=_0x42f3a4&0xff,_0x42f3a4=Math[_0x4de4ad(0x154)](_0x42f3a4/0x100);}return _0xbd52e1;}function writeUnknownSizeVint(_0x51103d){const _0x38e550={'UCtzu':function(_0x117624,_0x539bb2){return _0x117624-_0x539bb2;}},_0x5abe64=Buffer['alloc'](_0x51103d,0xff);return _0x5abe64[0x0]=0xff>>_0x38e550['UCtzu'](_0x51103d,0x1),_0x5abe64;}function uintSize(_0x19f8f6){const _0x4f20fc={'RNlHW':function(_0x25f1cd,_0x10492f){return _0x25f1cd===_0x10492f;}};if(_0x4f20fc['RNlHW'](_0x19f8f6,0x0))return 0x1;let _0x459dd1=0x0,_0x25fac0=_0x19f8f6;while(_0x25fac0>0x0){_0x459dd1++,_0x25fac0=Math['floor'](_0x25fac0/0x100);}return _0x459dd1;}function findTimestampScale(_0x164826,_0x5cdb1b){const _0x3f6d98=_0x2026,_0xb5f1b3={'fPOiu':function(_0xff0568,_0x4ec790){return _0xff0568+_0x4ec790;},'wnEYk':function(_0x47fdb0,_0xafb3f0){return _0x47fdb0+_0xafb3f0;},'RUVha':function(_0x4e64bc,_0x20aa97){return _0x4e64bc===_0x20aa97;},'lHwjm':function(_0x27fab8,_0x1dd46d){return _0x27fab8<_0x1dd46d;},'mzEwd':function(_0x21c0a6,_0x36bc2a){return _0x21c0a6+_0x36bc2a;},'CvNYB':function(_0x3cc94b,_0x31e69f){return _0x3cc94b+_0x31e69f;}};let _0x5fd633=_0x5cdb1b;const _0xa1ae01=Math[_0x3f6d98(0x12f)](_0x164826[_0x3f6d98(0x139)],_0xb5f1b3[_0x3f6d98(0x14f)](_0x5cdb1b,0x2710));while(_0x5fd633<_0xa1ae01){const [_0x289fa,_0x3fcf3d]=readId(_0x164826,_0x5fd633),[_0x3ab633,_0x4fec46]=readVint(_0x164826,_0xb5f1b3[_0x3f6d98(0x12a)](_0x5fd633,_0x3fcf3d));if(_0xb5f1b3[_0x3f6d98(0x143)](_0x289fa,ID_INFO)){let _0x5c1794=_0xb5f1b3[_0x3f6d98(0x14f)](_0x5fd633,_0x3fcf3d)+_0x4fec46;const _0xf6e9b4=_0x5c1794+_0x3ab633;while(_0xb5f1b3['lHwjm'](_0x5c1794,_0xf6e9b4)){const [_0x9c20a0,_0x3f62f0]=readId(_0x164826,_0x5c1794),[_0x52c076,_0x2f9764]=readVint(_0x164826,_0x5c1794+_0x3f62f0);if(_0x9c20a0===ID_TIMESTAMP_SCALE)return readUint(_0x164826,_0x5c1794+_0x3f62f0+_0x2f9764,_0x52c076);_0x5c1794+=_0xb5f1b3[_0x3f6d98(0x12a)](_0x3f62f0,_0x2f9764)+_0x52c076;}break;}if(_0x289fa===ID_CLUSTER)break;if(isUnknownSize(_0x3ab633,_0x4fec46))break;_0x5fd633+=_0xb5f1b3['mzEwd'](_0xb5f1b3['CvNYB'](_0x3fcf3d,_0x4fec46),_0x3ab633);}return 0xf4240;}function _0xa406(){const _0x5c2596=['oaStO','clusters','wrChR','from','1196QnYbJM','BSnYd','993UMMcec','ZTiNL','alloc','UGHWR','maxTicks','maxTimestampTicks','ufjge','11XdxMgG','CSnDk','ANeCq','GChYD','2144432hkoQEG','wnEYk','wHQbp','IDRqY','bodyBeforeTimestamp','MguvH','min','GfQhY','header','3697836PITUkN','vSTpB','WDrMe','deDzN','uGWpm','Fhqaj','GRrTP','length','push','459066MFtDMe','silAt','pszrw','slice','dWXBH','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','2333097eVbfMV','176622tzegxM','RUVha','MhyAd','yGBji','dYxjn','UuELN','vHhBE','yEOTT','max','exit','argv','xboGX','concat','fPOiu','GwvxB','1182250tUdWax','pOLNw','7aQUVTK','floor','endsWith','log','WZAhG','5tFhVtr','VsONr','FQLyV','KjqRq','12PpXcUg'];_0xa406=function(){return _0x5c2596;};return _0xa406();}function findFirstClusterOffset(_0x32b82c,_0x4dad52){const _0x4ff016=_0x2026,_0x30ad25={'xboGX':function(_0x32d70f,_0x130835){return _0x32d70f<_0x130835;},'IDRqY':function(_0x29d7cc,_0x3e95b7,_0x196972){return _0x29d7cc(_0x3e95b7,_0x196972);},'yGBji':function(_0x10d345,_0x5a6fe4){return _0x10d345===_0x5a6fe4;}};let _0x548963=_0x4dad52;while(_0x30ad25[_0x4ff016(0x14d)](_0x548963,_0x32b82c['length'])){const [_0x39d048,_0x5a7d5b]=_0x30ad25[_0x4ff016(0x12c)](readId,_0x32b82c,_0x548963);if(_0x30ad25[_0x4ff016(0x145)](_0x39d048,ID_CLUSTER))return _0x548963;const [_0x1295cb,_0x59883b]=readVint(_0x32b82c,_0x548963+_0x5a7d5b);if(isUnknownSize(_0x1295cb,_0x59883b))return _0x548963;_0x548963+=_0x5a7d5b+_0x59883b+_0x1295cb;}return _0x32b82c[_0x4ff016(0x139)];}function findClusterEnd(_0x5638ef,_0x10333a,_0x3f319f,_0x457a32){const _0x20f018=_0x2026,_0xf8439b={'silAt':function(_0x4dcfae,_0x493993,_0x36cafb){return _0x4dcfae(_0x493993,_0x36cafb);},'LWtzn':function(_0x52d2ad,_0x3554af,_0x5b7cb1){return _0x52d2ad(_0x3554af,_0x5b7cb1);},'YFCyp':function(_0x341e15,_0x41307b){return _0x341e15+_0x41307b;}};if(!isUnknownSize(_0x3f319f,_0x457a32))return _0x10333a+_0x3f319f;const _0x258e17=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x571454=_0x10333a;while(_0x571454<_0x5638ef['length']-0x4){const [_0x853913,_0x263ce9]=_0xf8439b[_0x20f018(0x13c)](readId,_0x5638ef,_0x571454);if(_0x258e17['has'](_0x853913))return _0x571454;const [_0x81884b,_0x579244]=readVint(_0x5638ef,_0x571454+_0x263ce9);if(_0xf8439b['LWtzn'](isUnknownSize,_0x81884b,_0x579244))return _0x5638ef['length'];_0x571454+=_0xf8439b['YFCyp'](_0x263ce9+_0x579244,_0x81884b);}return _0x5638ef[_0x20f018(0x139)];}function extractClusters(_0x4ec5ca,_0x1fd468){const _0x203cc5=_0x2026,_0x30aea4={'bXLNT':function(_0x19c203,_0x5d7781){return _0x19c203!==_0x5d7781;},'vHhBE':function(_0xcef3d7,_0x29e5af){return _0xcef3d7+_0x29e5af;},'GChYD':function(_0x1843b7,_0x1c6f2d){return _0x1843b7+_0x1c6f2d;},'vSTpB':function(_0x9bc627,_0x3c533f,_0xdb9b4e,_0x5db9e7,_0x34967e){return _0x9bc627(_0x3c533f,_0xdb9b4e,_0x5db9e7,_0x34967e);},'ufjge':function(_0x25805a,_0x4af1c2){return _0x25805a<_0x4af1c2;},'UGHWR':function(_0x517d92,_0x58dc21,_0x232fc5){return _0x517d92(_0x58dc21,_0x232fc5);},'oaStO':function(_0xed698,_0x43ecbe){return _0xed698===_0x43ecbe;},'BSnYd':function(_0x274918,_0x5b8d4f){return _0x274918<_0x5b8d4f;},'leMTD':function(_0x20c684,_0x2fdb38){return _0x20c684>=_0x2fdb38;},'eCSZB':function(_0x22ae7a,_0x37020d){return _0x22ae7a+_0x37020d;},'LBoDz':function(_0x42b5e0,_0x383470){return _0x42b5e0>_0x383470;}},_0x46c7de=[],_0x350df3=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x366a2b=0x0;while(_0x366a2b<_0x4ec5ca[_0x203cc5(0x139)]){const _0x5c5d88=_0x4ec5ca['indexOf'](_0x350df3,_0x366a2b);if(_0x5c5d88===-0x1)break;const [_0x297d82,_0x534437]=readId(_0x4ec5ca,_0x5c5d88);if(_0x30aea4['bXLNT'](_0x297d82,ID_CLUSTER)){_0x366a2b=_0x5c5d88+0x1;continue;}const [_0x2814e2,_0x1f3625]=readVint(_0x4ec5ca,_0x30aea4[_0x203cc5(0x148)](_0x5c5d88,_0x534437)),_0x560ec8=_0x30aea4['GChYD'](_0x30aea4[_0x203cc5(0x148)](_0x5c5d88,_0x534437),_0x1f3625),_0x3a0153=_0x30aea4[_0x203cc5(0x133)](findClusterEnd,_0x4ec5ca,_0x560ec8,_0x2814e2,_0x1f3625);let _0x5b598d=_0x560ec8,_0x3fa91e=0x0,_0x48aa71=0x2,_0x4e911c=![],_0x14e9c1=Buffer[_0x203cc5(0x120)](0x0),_0xf5d76e=Buffer['alloc'](0x0);while(_0x30aea4[_0x203cc5(0x124)](_0x5b598d,_0x3a0153)){const [_0x3516dd,_0x21cc37]=_0x30aea4['UGHWR'](readId,_0x4ec5ca,_0x5b598d),[_0x5018a5,_0x3e8ba7]=readVint(_0x4ec5ca,_0x5b598d+_0x21cc37);if(_0x30aea4[_0x203cc5(0x118)](_0x3516dd,ID_TIMESTAMP)){_0x3fa91e=readUint(_0x4ec5ca,_0x30aea4['GChYD'](_0x5b598d+_0x21cc37,_0x3e8ba7),_0x5018a5),_0x48aa71=_0x5018a5,_0x4e911c=!![],_0x14e9c1=_0x4ec5ca[_0x203cc5(0x13e)](_0x560ec8,_0x5b598d);const _0x110fab=_0x30aea4['vHhBE'](_0x30aea4['vHhBE'](_0x30aea4['vHhBE'](_0x5b598d,_0x21cc37),_0x3e8ba7),_0x5018a5);_0xf5d76e=_0x4ec5ca[_0x203cc5(0x13e)](_0x110fab,_0x3a0153);break;}if(_0x3516dd===ID_CLUSTER)break;if(_0x30aea4[_0x203cc5(0x121)](isUnknownSize,_0x5018a5,_0x3e8ba7))break;_0x5b598d+=_0x21cc37+_0x3e8ba7+_0x5018a5;}!_0x4e911c&&(_0xf5d76e=_0x4ec5ca[_0x203cc5(0x13e)](_0x560ec8,_0x3a0153));let _0x102f62=_0x3fa91e;_0x5b598d=_0x560ec8;while(_0x30aea4[_0x203cc5(0x11d)](_0x5b598d,_0x3a0153)){const [_0x7efb12,_0x2decfa]=_0x30aea4['UGHWR'](readId,_0x4ec5ca,_0x5b598d),[_0x5a3b4b,_0x2cad60]=readVint(_0x4ec5ca,_0x30aea4[_0x203cc5(0x128)](_0x5b598d,_0x2decfa));if(_0x30aea4[_0x203cc5(0x118)](_0x7efb12,ID_SIMPLE_BLOCK)&&_0x30aea4['leMTD'](_0x5a3b4b,0x4)){const _0x376683=_0x30aea4[_0x203cc5(0x148)](_0x30aea4['vHhBE'](_0x5b598d,_0x2decfa),_0x2cad60),[,_0x5c3f97]=readVint(_0x4ec5ca,_0x376683),_0x45f2d4=_0x4ec5ca['readInt16BE'](_0x30aea4['eCSZB'](_0x376683,_0x5c3f97)),_0x593bfc=_0x3fa91e+_0x45f2d4;if(_0x30aea4['LBoDz'](_0x593bfc,_0x102f62))_0x102f62=_0x593bfc;}if(_0x7efb12===ID_CLUSTER)break;if(isUnknownSize(_0x5a3b4b,_0x2cad60))break;_0x5b598d+=_0x2decfa+_0x2cad60+_0x5a3b4b;}_0x46c7de['push']({'timestamp':_0x3fa91e,'maxTicks':_0x102f62,'bodyBeforeTimestamp':_0x14e9c1,'bodyAfterTimestamp':_0xf5d76e,'timestampElementSize':_0x48aa71}),_0x366a2b=_0x3a0153;}return _0x46c7de;}function parseWebm(_0x4fa0c2){const _0x2b9d2a=_0x2026,_0x1272a0={'GwvxB':function(_0x45998c,_0xbdadb7,_0x1d5aff){return _0x45998c(_0xbdadb7,_0x1d5aff);},'WZAhG':function(_0x59d99f,_0x366877){return _0x59d99f+_0x366877;},'FQLyV':function(_0xa4dd1b,_0x504afc){return _0xa4dd1b!==_0x504afc;},'wHQbp':function(_0x3d4579,_0x3d9767){return _0x3d4579+_0x3d9767;},'umLHN':function(_0xe336dd,_0x48a870){return _0xe336dd+_0x48a870;},'rVOvJ':function(_0x3e1c05,_0x4c2722,_0x362a90){return _0x3e1c05(_0x4c2722,_0x362a90);}};let _0x4ecfb7=0x0;const [,_0x5d8eeb]=readId(_0x4fa0c2,_0x4ecfb7),[_0x400980,_0x14244b]=_0x1272a0[_0x2b9d2a(0x150)](readVint,_0x4fa0c2,_0x4ecfb7+_0x5d8eeb);_0x4ecfb7+=_0x1272a0[_0x2b9d2a(0x157)](_0x5d8eeb+_0x14244b,_0x400980);const [_0xa91d1e,_0x138eb2]=readId(_0x4fa0c2,_0x4ecfb7);if(_0x1272a0[_0x2b9d2a(0x115)](_0xa91d1e,ID_SEGMENT))return null;const [,_0x5c8a05]=readVint(_0x4fa0c2,_0x4ecfb7+_0x138eb2),_0x3fbd22=_0x1272a0[_0x2b9d2a(0x12b)](_0x1272a0['umLHN'](_0x4ecfb7,_0x138eb2),_0x5c8a05),_0xdfedb4=findTimestampScale(_0x4fa0c2,_0x3fbd22),_0x3be0b4=findFirstClusterOffset(_0x4fa0c2,_0x3fbd22),_0x10f752=_0x4fa0c2['slice'](0x0,_0x3be0b4),_0x83c28f=_0x1272a0['rVOvJ'](extractClusters,_0x4fa0c2,_0xdfedb4);let _0x52d8a1=0x0;for(const _0x37403b of _0x83c28f){if(_0x37403b['maxTicks']>_0x52d8a1)_0x52d8a1=_0x37403b[_0x2b9d2a(0x122)];}return{'header':_0x10f752,'clusters':_0x83c28f,'timestampScale':_0xdfedb4,'maxTimestampTicks':_0x52d8a1};}function buildCluster(_0x29fc9d,_0x10e590,_0x3e35e7){const _0x25876d=_0x2026,_0xbfd407={'pOLNw':function(_0x5e81e5,_0x4fc36b){return _0x5e81e5(_0x4fc36b);},'VZGZq':function(_0x12061a,_0x4702d0,_0xbafb6a){return _0x12061a(_0x4702d0,_0xbafb6a);},'LdoIR':function(_0x137150,_0x5db296){return _0x137150(_0x5db296);}},_0x5958a8=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0xaf1a8f=Math[_0x25876d(0x14a)](0x4,_0xbfd407[_0x25876d(0x152)](uintSize,_0x29fc9d)),_0x12dd6d=Buffer['concat']([Buffer[_0x25876d(0x11b)]([ID_TIMESTAMP]),writeVint(_0xaf1a8f),_0xbfd407['VZGZq'](writeUint,_0x29fc9d,_0xaf1a8f)]),_0x155fd8=Buffer[_0x25876d(0x14e)]([_0x10e590,_0x12dd6d,_0x3e35e7]),_0x1766ff=_0xbfd407['LdoIR'](writeVint,_0x155fd8[_0x25876d(0x139)]);return Buffer[_0x25876d(0x14e)]([_0x5958a8,_0x1766ff,_0x155fd8]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x8f3fbc){const _0x7ceec2=_0x2026,_0x544b72={'TthmL':function(_0x4135d7,_0xad7988){return _0x4135d7+_0xad7988;},'dWXBH':function(_0x2264a6,_0xe448c5,_0x3b99dc){return _0x2264a6(_0xe448c5,_0x3b99dc);},'GRrTP':function(_0xca42e6,_0x35c25d){return _0xca42e6(_0x35c25d);},'UuELN':function(_0x2dbe6a,_0xae13e8){return _0x2dbe6a+_0xae13e8;},'BAgHA':function(_0x227f8d,_0x4b8c54){return _0x227f8d+_0x4b8c54;},'wrChR':function(_0x41c8b9,_0x37468c){return _0x41c8b9<_0x37468c;},'rQyVT':function(_0x374c97,_0x5c09d2,_0x4762d8){return _0x374c97(_0x5c09d2,_0x4762d8);},'dYxjn':function(_0x59633e,_0x5e5f84){return _0x59633e+_0x5e5f84;},'MhyAd':function(_0x35b76a,_0x51d394){return _0x35b76a+_0x51d394;},'uEMrF':function(_0x213a0b,_0x248e82){return _0x213a0b+_0x248e82;},'LVUHD':function(_0xdf75af,_0x25af16){return _0xdf75af+_0x25af16;},'GfQhY':function(_0x308520,_0x5f2794){return _0x308520+_0x5f2794;}},_0x270054=Buffer['from'](_0x8f3fbc);let _0x872637=0x0;const [,_0x454526]=readId(_0x270054,_0x872637),[_0x13e2a1,_0x12fda1]=readVint(_0x270054,_0x872637+_0x454526),_0x15971e=_0x544b72['TthmL'](_0x544b72['TthmL'](_0x872637,_0x454526)+_0x12fda1,_0x13e2a1),[,_0x2e04cb]=_0x544b72['dWXBH'](readId,_0x270054,_0x15971e),[,_0x5b4956]=readVint(_0x270054,_0x15971e+_0x2e04cb),_0x2cc44c=_0x544b72['TthmL'](_0x15971e,_0x2e04cb)+_0x5b4956,_0x17080e=_0x544b72[_0x7ceec2(0x138)](writeUnknownSizeVint,_0x5b4956);_0x17080e['copy'](_0x270054,_0x544b72[_0x7ceec2(0x147)](_0x15971e,_0x2e04cb));let _0x52f8d2=_0x2cc44c;const _0x2b2d48=Math[_0x7ceec2(0x12f)](_0x270054[_0x7ceec2(0x139)],_0x544b72['BAgHA'](_0x2cc44c,0x2710));while(_0x544b72[_0x7ceec2(0x11a)](_0x52f8d2,_0x2b2d48)){const [_0xd97467,_0x3208af]=_0x544b72[_0x7ceec2(0x13f)](readId,_0x270054,_0x52f8d2),[_0x8538c1,_0x5e0218]=readVint(_0x270054,_0x52f8d2+_0x3208af);if(_0xd97467===ID_CLUSTER)break;if(_0x544b72['rQyVT'](isUnknownSize,_0x8538c1,_0x5e0218))break;if(_0xd97467===ID_INFO){const _0x1dbeda=_0x544b72[_0x7ceec2(0x146)](_0x544b72[_0x7ceec2(0x144)](_0x52f8d2,_0x3208af),_0x5e0218),_0x533995=_0x1dbeda+_0x8538c1,_0x128131=[];let _0x1d3b56=_0x1dbeda;while(_0x1d3b56<_0x533995){const [_0x3d5ad8,_0x19c16b]=readId(_0x270054,_0x1d3b56),[_0x2951fa,_0x437910]=readVint(_0x270054,_0x1d3b56+_0x19c16b),_0x3d90c4=_0x544b72['BAgHA'](_0x544b72['uEMrF'](_0x19c16b,_0x437910),_0x2951fa);_0x3d5ad8!==ID_DURATION&&_0x128131[_0x7ceec2(0x13a)](_0x270054[_0x7ceec2(0x13e)](_0x1d3b56,_0x1d3b56+_0x3d90c4)),_0x1d3b56+=_0x3d90c4;}const _0xd3bd93=Buffer['concat'](_0x128131),_0x1d2aac=Buffer[_0x7ceec2(0x14e)]([_0x270054[_0x7ceec2(0x13e)](_0x52f8d2,_0x544b72['LVUHD'](_0x52f8d2,_0x3208af)),_0x544b72['rQyVT'](writeVint,_0xd3bd93['length'],_0x5e0218)]);return Buffer[_0x7ceec2(0x14e)]([_0x270054[_0x7ceec2(0x13e)](0x0,_0x52f8d2),_0x1d2aac,_0xd3bd93,_0x270054['slice'](_0x533995)]);}_0x52f8d2+=_0x544b72[_0x7ceec2(0x146)](_0x544b72[_0x7ceec2(0x130)](_0x3208af,_0x5e0218),_0x8538c1);}return _0x270054;}export function stitchWebmFiles(_0x2b96f3,_0x215574){const _0x50086f=_0x2026,_0x4db2db={'uAumA':function(_0x1ee83d,_0x515ed0){return _0x1ee83d(_0x515ed0);},'pszrw':function(_0x295d31,_0x1af5de){return _0x295d31<_0x1af5de;},'PCisG':function(_0x880143,_0x41fc9a){return _0x880143+_0x41fc9a;},'yEOTT':function(_0x526c4c,_0x7978b0,_0x1a4cad){return _0x526c4c(_0x7978b0,_0x1a4cad);}};if(_0x2b96f3[_0x50086f(0x139)]<=0x1)return![];const _0x281ec0=[];for(const _0x4efc3a of _0x2b96f3){const _0x38845e=readFileSync(_0x4efc3a),_0x24c138=parseWebm(_0x38845e);if(!_0x24c138||_0x24c138[_0x50086f(0x119)][_0x50086f(0x139)]===0x0)return![];_0x281ec0[_0x50086f(0x13a)](_0x24c138);}const _0x1825c2=_0x281ec0[0x0],_0x36a929=_0x4db2db['uAumA'](rebuildHeaderWithoutDuration,_0x1825c2[_0x50086f(0x131)]),_0x4c162e=[_0x36a929];let _0x5c8cea=0x0;for(let _0xf606cd=0x0;_0x4db2db[_0x50086f(0x13d)](_0xf606cd,_0x281ec0[_0x50086f(0x139)]);_0xf606cd++){const _0x583cec=_0x281ec0[_0xf606cd];for(const _0x5016ba of _0x583cec[_0x50086f(0x119)]){const _0x3837f1=_0x5016ba['timestamp']+_0x5c8cea;_0x4c162e[_0x50086f(0x13a)](buildCluster(_0x3837f1,_0x5016ba[_0x50086f(0x12d)],_0x5016ba['bodyAfterTimestamp']));}const _0x3b8773=0x1e;_0x5c8cea+=_0x4db2db['PCisG'](_0x583cec[_0x50086f(0x123)],_0x3b8773);}return _0x4db2db[_0x50086f(0x149)](writeFileSync,_0x215574,Buffer[_0x50086f(0x14e)](_0x4c162e)),!![];}if(process['argv'][0x1]?.[_0x1d5a18(0x155)]('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0x1d5a18(0x155)]('stitchWebmFiles.js')){const args=process[_0x1d5a18(0x14c)]['slice'](0x2);args[_0x1d5a18(0x139)]<0x3&&(console['error'](_0x1d5a18(0x140)),process[_0x1d5a18(0x14b)](0x1));const output=args[args[_0x1d5a18(0x139)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x1d5a18(0x156)]('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x3d9620=_0x3359;(function(_0x380f7b,_0x212b8f){const _0x218b6c=_0x3359,_0x1d4865=_0x380f7b();while(!![]){try{const _0x107659=-parseInt(_0x218b6c(0x19b))/0x1+-parseInt(_0x218b6c(0x194))/0x2*(-parseInt(_0x218b6c(0x190))/0x3)+parseInt(_0x218b6c(0x18d))/0x4+parseInt(_0x218b6c(0x161))/0x5+-parseInt(_0x218b6c(0x18f))/0x6*(parseInt(_0x218b6c(0x191))/0x7)+parseInt(_0x218b6c(0x18b))/0x8+parseInt(_0x218b6c(0x16d))/0x9;if(_0x107659===_0x212b8f)break;else _0x1d4865['push'](_0x1d4865['shift']());}catch(_0x640cdb){_0x1d4865['push'](_0x1d4865['shift']());}}}(_0x24f2,0xdf45c));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(_0x32ccfc,_0x2f964){const _0x3f0959=_0x3359,_0x19aaf1={'RKCJV':function(_0x342baa,_0x4680bd){return _0x342baa<=_0x4680bd;},'hDvBt':function(_0x22b3d3,_0x226fca){return _0x22b3d3&_0x226fca;},'BssOH':function(_0x7f656,_0x5b381f){return _0x7f656>_0x5b381f;},'GLojL':function(_0x311854,_0x381025){return _0x311854<_0x381025;}};if(_0x2f964>=_0x32ccfc['length'])return[0x0,0x0];const _0x113faa=_0x32ccfc[_0x2f964];let _0x56dbdb=0x1,_0x24d3bf=0x80;while(_0x19aaf1['RKCJV'](_0x56dbdb,0x8)&&!_0x19aaf1[_0x3f0959(0x173)](_0x113faa,_0x24d3bf)){_0x56dbdb++,_0x24d3bf>>=0x1;}if(_0x19aaf1[_0x3f0959(0x17e)](_0x2f964+_0x56dbdb,_0x32ccfc['length']))return[0x0,0x0];let _0x11734c=_0x113faa&_0x24d3bf-0x1;for(let _0x7dcb70=0x1;_0x19aaf1[_0x3f0959(0x180)](_0x7dcb70,_0x56dbdb);_0x7dcb70++){_0x11734c=_0x11734c*0x100+_0x32ccfc[_0x2f964+_0x7dcb70];}return[_0x11734c,_0x56dbdb];}function readId(_0x5e65a8,_0x4fee58){const _0xd9891a=_0x3359,_0x565dfb={'OIrXt':function(_0x115419,_0x592f79){return _0x115419>=_0x592f79;},'XtdbR':function(_0x4f636a,_0x542b06){return _0x4f636a>=_0x542b06;},'oFIRj':function(_0x2beea4,_0x24847){return _0x2beea4>_0x24847;},'rKxYA':function(_0x7f6e18,_0x30e40f){return _0x7f6e18+_0x30e40f;},'LdQGC':function(_0x3cecab,_0xe28a72){return _0x3cecab<_0xe28a72;},'GkPXl':function(_0x50ad08,_0x103803){return _0x50ad08+_0x103803;},'rrRuU':function(_0x44f87f,_0x2aaf43){return _0x44f87f*_0x2aaf43;},'sIJVw':function(_0x1849b2,_0x4ba796){return _0x1849b2+_0x4ba796;}};if(_0x565dfb[_0xd9891a(0x16c)](_0x4fee58,_0x5e65a8['length']))return[0x0,0x0];const _0x503dda=_0x5e65a8[_0x4fee58];let _0x2e3aee;if(_0x565dfb['XtdbR'](_0x503dda,0x80))_0x2e3aee=0x1;else{if(_0x503dda>=0x40)_0x2e3aee=0x2;else{if(_0x503dda>=0x20)_0x2e3aee=0x3;else{if(_0x503dda>=0x10)_0x2e3aee=0x4;else return[_0x503dda,0x1];}}}if(_0x565dfb['oFIRj'](_0x565dfb['rKxYA'](_0x4fee58,_0x2e3aee),_0x5e65a8[_0xd9891a(0x18c)]))return[0x0,0x0];let _0x5dce4d=0x0;for(let _0x2fec37=0x0;_0x565dfb['LdQGC'](_0x2fec37,_0x2e3aee);_0x2fec37++){_0x5dce4d=_0x565dfb['GkPXl'](_0x565dfb['rrRuU'](_0x5dce4d,0x100),_0x5e65a8[_0x565dfb[_0xd9891a(0x17d)](_0x4fee58,_0x2fec37)]);}return[_0x5dce4d,_0x2e3aee];}function _0x3359(_0x4bfb34,_0x450d36){_0x4bfb34=_0x4bfb34-0x15b;const _0x24f2cd=_0x24f2();let _0x3359dc=_0x24f2cd[_0x4bfb34];return _0x3359dc;}function readUint(_0x881ba9,_0x102d89,_0x53772e){const _0x440aa8=_0x3359,_0x52bc9c={'aIRcA':function(_0x59db1c,_0x197669){return _0x59db1c<_0x197669;},'qzeUa':function(_0x3461ba,_0x49b132){return _0x3461ba*_0x49b132;}};let _0x4c61b9=0x0;for(let _0x172946=0x0;_0x52bc9c[_0x440aa8(0x195)](_0x172946,_0x53772e);_0x172946++){_0x4c61b9=_0x52bc9c[_0x440aa8(0x17a)](_0x4c61b9,0x100)+_0x881ba9[_0x102d89+_0x172946];}return _0x4c61b9;}function isUnknownSize(_0x3ec849,_0x3abc87){const _0x5e6d47=_0x3359,_0x162473={'fDPcy':function(_0x4e8ae6,_0x1bea67){return _0x4e8ae6*_0x1bea67;}};return _0x3ec849===Math[_0x5e6d47(0x15b)](0x2,_0x162473['fDPcy'](0x7,_0x3abc87))-0x1;}function writeVint(_0x50e4a4,_0x2e5e87){const _0x36b762=_0x3359,_0x57d5cc={'rybDk':function(_0x42f3e6,_0x83745b){return _0x42f3e6<_0x83745b;},'zqiXv':function(_0x3b95f9,_0x4c347d){return _0x3b95f9&_0x4c347d;},'LknCX':function(_0x22a956,_0x2b9878){return _0x22a956<<_0x2b9878;},'gJYCP':function(_0x3f0708,_0x390a77){return _0x3f0708-_0x390a77;}};let _0x28e568=_0x2e5e87||0x1;while(_0x57d5cc['rybDk'](Math[_0x36b762(0x15b)](0x2,0x7*_0x28e568)-0x2,_0x50e4a4))_0x28e568++;const _0x2704a7=Buffer[_0x36b762(0x188)](_0x28e568);for(let _0x5bbf05=_0x28e568-0x1;_0x5bbf05>=0x0;_0x5bbf05--){_0x2704a7[_0x5bbf05]=_0x57d5cc[_0x36b762(0x15c)](_0x50e4a4,0xff),_0x50e4a4=Math[_0x36b762(0x1a0)](_0x50e4a4/0x100);}return _0x2704a7[0x0]|=_0x57d5cc['LknCX'](0x1,_0x57d5cc['gJYCP'](0x8,_0x28e568)),_0x2704a7;}function writeUint(_0x30e05e,_0x50baf3){const _0x3995a7=_0x3359,_0x2ec157={'IYHSH':function(_0x4c6a15,_0x120803){return _0x4c6a15&_0x120803;},'NTHnR':function(_0x790c54,_0x50d794){return _0x790c54/_0x50d794;}},_0x2528fd=Buffer[_0x3995a7(0x188)](_0x50baf3);for(let _0x374e2d=_0x50baf3-0x1;_0x374e2d>=0x0;_0x374e2d--){_0x2528fd[_0x374e2d]=_0x2ec157[_0x3995a7(0x19f)](_0x30e05e,0xff),_0x30e05e=Math['floor'](_0x2ec157['NTHnR'](_0x30e05e,0x100));}return _0x2528fd;}function writeUnknownSizeVint(_0x50fa11){const _0x3243af=_0x3359,_0x18055c={'YQLPV':function(_0x1f7117,_0x4633e8){return _0x1f7117-_0x4633e8;}},_0x5f5736=Buffer['alloc'](_0x50fa11,0xff);return _0x5f5736[0x0]=0xff>>_0x18055c[_0x3243af(0x1a1)](_0x50fa11,0x1),_0x5f5736;}function uintSize(_0x24c2f0){const _0x1872de=_0x3359,_0x508ebb={'nWEEy':function(_0x5c3866,_0x320731){return _0x5c3866/_0x320731;}};if(_0x24c2f0===0x0)return 0x1;let _0x460dec=0x0,_0x10f9f2=_0x24c2f0;while(_0x10f9f2>0x0){_0x460dec++,_0x10f9f2=Math['floor'](_0x508ebb[_0x1872de(0x198)](_0x10f9f2,0x100));}return _0x460dec;}function findTimestampScale(_0x4bb20e,_0xa983aa){const _0x5bff61=_0x3359,_0x2b3ddd={'FoRCi':function(_0x34968b,_0xd0bcbf){return _0x34968b+_0xd0bcbf;},'SNUfH':function(_0xf39b9b,_0x5d915c){return _0xf39b9b<_0x5d915c;},'OtKRr':function(_0x2cc902,_0x48d6f8,_0x1e8222){return _0x2cc902(_0x48d6f8,_0x1e8222);},'zJPsR':function(_0x2c0c01,_0xa457fb){return _0x2c0c01===_0xa457fb;},'KpBBE':function(_0xd1206b,_0x500088){return _0xd1206b+_0x500088;},'xmTiS':function(_0x7e4963,_0x139d3a,_0x1583bb,_0x13126b){return _0x7e4963(_0x139d3a,_0x1583bb,_0x13126b);},'LIyWC':function(_0x29edfb,_0x18d103){return _0x29edfb+_0x18d103;},'MDaxF':function(_0x541b2b,_0x16ef45){return _0x541b2b+_0x16ef45;}};let _0x5d56c9=_0xa983aa;const _0xa7ccf7=Math[_0x5bff61(0x169)](_0x4bb20e['length'],_0x2b3ddd['FoRCi'](_0xa983aa,0x2710));while(_0x2b3ddd[_0x5bff61(0x15f)](_0x5d56c9,_0xa7ccf7)){const [_0x5da076,_0x4504cb]=readId(_0x4bb20e,_0x5d56c9),[_0x805fae,_0x6246a7]=_0x2b3ddd[_0x5bff61(0x19c)](readVint,_0x4bb20e,_0x2b3ddd['FoRCi'](_0x5d56c9,_0x4504cb));if(_0x2b3ddd['zJPsR'](_0x5da076,ID_INFO)){let _0x5ad405=_0x2b3ddd['FoRCi'](_0x2b3ddd['KpBBE'](_0x5d56c9,_0x4504cb),_0x6246a7);const _0x25b9a7=_0x5ad405+_0x805fae;while(_0x5ad405<_0x25b9a7){const [_0x35af89,_0x139837]=readId(_0x4bb20e,_0x5ad405),[_0x502ab6,_0x1248c3]=readVint(_0x4bb20e,_0x2b3ddd[_0x5bff61(0x16f)](_0x5ad405,_0x139837));if(_0x35af89===ID_TIMESTAMP_SCALE)return _0x2b3ddd['xmTiS'](readUint,_0x4bb20e,_0x2b3ddd[_0x5bff61(0x186)](_0x5ad405,_0x139837)+_0x1248c3,_0x502ab6);_0x5ad405+=_0x2b3ddd[_0x5bff61(0x17b)](_0x139837,_0x1248c3)+_0x502ab6;}break;}if(_0x5da076===ID_CLUSTER)break;if(isUnknownSize(_0x805fae,_0x6246a7))break;_0x5d56c9+=_0x2b3ddd['LIyWC'](_0x2b3ddd['MDaxF'](_0x4504cb,_0x6246a7),_0x805fae);}return 0xf4240;}function findFirstClusterOffset(_0x5be775,_0x3dc296){const _0x247881=_0x3359,_0x319d70={'lrJmN':function(_0x4ff176,_0x535d89,_0xa8cfd){return _0x4ff176(_0x535d89,_0xa8cfd);},'bkomA':function(_0x2c2a3d,_0x52a3bc){return _0x2c2a3d+_0x52a3bc;},'gZaWF':function(_0x2eb57b,_0x133950){return _0x2eb57b+_0x133950;}};let _0x25a3ba=_0x3dc296;while(_0x25a3ba<_0x5be775[_0x247881(0x18c)]){const [_0x396240,_0x49ba62]=_0x319d70['lrJmN'](readId,_0x5be775,_0x25a3ba);if(_0x396240===ID_CLUSTER)return _0x25a3ba;const [_0x324cb6,_0x5a50ff]=readVint(_0x5be775,_0x25a3ba+_0x49ba62);if(_0x319d70['lrJmN'](isUnknownSize,_0x324cb6,_0x5a50ff))return _0x25a3ba;_0x25a3ba+=_0x319d70['bkomA'](_0x319d70[_0x247881(0x18e)](_0x49ba62,_0x5a50ff),_0x324cb6);}return _0x5be775['length'];}function findClusterEnd(_0xc175c7,_0x329923,_0x33aaef,_0x54b816){const _0x5b2e93=_0x3359,_0x49b077={'KbhlX':function(_0x51f748,_0x50ca80,_0x2d51a4){return _0x51f748(_0x50ca80,_0x2d51a4);},'mvvXP':function(_0x4de6c7,_0xaeec26){return _0x4de6c7+_0xaeec26;},'cwDpO':function(_0x3b5485,_0xe30e90){return _0x3b5485<_0xe30e90;},'LrcIC':function(_0x8c9107,_0x29420f,_0x289863){return _0x8c9107(_0x29420f,_0x289863);},'BFuxB':function(_0x887408,_0x29273d,_0x32ed71){return _0x887408(_0x29273d,_0x32ed71);},'mUQUf':function(_0x150576,_0x5343d1){return _0x150576+_0x5343d1;}};if(!_0x49b077[_0x5b2e93(0x17c)](isUnknownSize,_0x33aaef,_0x54b816))return _0x49b077[_0x5b2e93(0x160)](_0x329923,_0x33aaef);const _0x58bd4e=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2c2b9b=_0x329923;while(_0x49b077[_0x5b2e93(0x174)](_0x2c2b9b,_0xc175c7[_0x5b2e93(0x18c)]-0x4)){const [_0x2b2330,_0x36b8b9]=_0x49b077['LrcIC'](readId,_0xc175c7,_0x2c2b9b);if(_0x58bd4e[_0x5b2e93(0x179)](_0x2b2330))return _0x2c2b9b;const [_0xeaa6d8,_0x311b55]=_0x49b077[_0x5b2e93(0x17f)](readVint,_0xc175c7,_0x49b077['mUQUf'](_0x2c2b9b,_0x36b8b9));if(isUnknownSize(_0xeaa6d8,_0x311b55))return _0xc175c7['length'];_0x2c2b9b+=_0x49b077[_0x5b2e93(0x168)](_0x36b8b9,_0x311b55)+_0xeaa6d8;}return _0xc175c7[_0x5b2e93(0x18c)];}function extractClusters(_0x952387,_0x405059){const _0x2074a0=_0x3359,_0x4ed268={'NzxRS':function(_0x1f9f92,_0x7523c8){return _0x1f9f92===_0x7523c8;},'bEBTa':function(_0x5250ea,_0x4652df,_0x14269a){return _0x5250ea(_0x4652df,_0x14269a);},'doQYr':function(_0x52f268,_0x358fbc){return _0x52f268+_0x358fbc;},'rKKPy':function(_0x28ddab,_0x47eee9){return _0x28ddab<_0x47eee9;},'PqcsF':function(_0x1d7968,_0x1c8480){return _0x1d7968===_0x1c8480;},'ckHks':function(_0x3ee25d,_0x10c96b,_0x4ab819,_0x4adbd0){return _0x3ee25d(_0x10c96b,_0x4ab819,_0x4adbd0);},'YRTEH':function(_0x5876be,_0x53711f){return _0x5876be+_0x53711f;},'monjg':function(_0x33007e,_0x147e44){return _0x33007e+_0x147e44;},'UwEAx':function(_0x2b45b6,_0x57ad42,_0x12b918){return _0x2b45b6(_0x57ad42,_0x12b918);},'GdTQs':function(_0x1d8e79,_0x2f1e4a){return _0x1d8e79+_0x2f1e4a;},'GITcD':function(_0x11c7a8,_0x38116c){return _0x11c7a8>=_0x38116c;},'lewTW':function(_0x284a67,_0x3f9b53){return _0x284a67>_0x3f9b53;},'XDHfq':function(_0x592604,_0x1dedf8,_0x56052f){return _0x592604(_0x1dedf8,_0x56052f);},'cDXJO':function(_0x3ffec5,_0x31d42b){return _0x3ffec5+_0x31d42b;}},_0x42f794=[],_0x5738b8=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x2ad3bc=0x0;while(_0x2ad3bc<_0x952387[_0x2074a0(0x18c)]){const _0x25c8d6=_0x952387['indexOf'](_0x5738b8,_0x2ad3bc);if(_0x4ed268[_0x2074a0(0x185)](_0x25c8d6,-0x1))break;const [_0x5f7639,_0x55ac68]=_0x4ed268['bEBTa'](readId,_0x952387,_0x25c8d6);if(_0x5f7639!==ID_CLUSTER){_0x2ad3bc=_0x25c8d6+0x1;continue;}const [_0x40e817,_0x4c63dd]=readVint(_0x952387,_0x4ed268['doQYr'](_0x25c8d6,_0x55ac68)),_0x428b46=_0x4ed268['doQYr'](_0x4ed268['doQYr'](_0x25c8d6,_0x55ac68),_0x4c63dd),_0x4b6dea=findClusterEnd(_0x952387,_0x428b46,_0x40e817,_0x4c63dd);let _0x1553ae=_0x428b46,_0x541b90=0x0,_0x4c699f=0x2,_0x501b28=![],_0x574295=Buffer[_0x2074a0(0x188)](0x0),_0x202b4b=Buffer['alloc'](0x0);while(_0x4ed268[_0x2074a0(0x165)](_0x1553ae,_0x4b6dea)){const [_0x5833d3,_0x83171d]=readId(_0x952387,_0x1553ae),[_0x5c8636,_0x778130]=_0x4ed268['bEBTa'](readVint,_0x952387,_0x1553ae+_0x83171d);if(_0x4ed268[_0x2074a0(0x18a)](_0x5833d3,ID_TIMESTAMP)){_0x541b90=_0x4ed268[_0x2074a0(0x193)](readUint,_0x952387,_0x4ed268[_0x2074a0(0x171)](_0x4ed268['monjg'](_0x1553ae,_0x83171d),_0x778130),_0x5c8636),_0x4c699f=_0x5c8636,_0x501b28=!![],_0x574295=_0x952387['slice'](_0x428b46,_0x1553ae);const _0x537498=_0x1553ae+_0x83171d+_0x778130+_0x5c8636;_0x202b4b=_0x952387[_0x2074a0(0x183)](_0x537498,_0x4b6dea);break;}if(_0x5833d3===ID_CLUSTER)break;if(_0x4ed268['bEBTa'](isUnknownSize,_0x5c8636,_0x778130))break;_0x1553ae+=_0x83171d+_0x778130+_0x5c8636;}!_0x501b28&&(_0x202b4b=_0x952387[_0x2074a0(0x183)](_0x428b46,_0x4b6dea));let _0x24a8af=_0x541b90;_0x1553ae=_0x428b46;while(_0x1553ae<_0x4b6dea){const [_0x3d1505,_0x342a26]=_0x4ed268['UwEAx'](readId,_0x952387,_0x1553ae),[_0xf1ace2,_0x36fc41]=_0x4ed268['UwEAx'](readVint,_0x952387,_0x4ed268['GdTQs'](_0x1553ae,_0x342a26));if(_0x3d1505===ID_SIMPLE_BLOCK&&_0x4ed268['GITcD'](_0xf1ace2,0x4)){const _0x25f0e1=_0x1553ae+_0x342a26+_0x36fc41,[,_0x18bc8e]=readVint(_0x952387,_0x25f0e1),_0x1a29b2=_0x952387['readInt16BE'](_0x25f0e1+_0x18bc8e),_0x1fff63=_0x4ed268[_0x2074a0(0x15e)](_0x541b90,_0x1a29b2);if(_0x4ed268[_0x2074a0(0x163)](_0x1fff63,_0x24a8af))_0x24a8af=_0x1fff63;}if(_0x3d1505===ID_CLUSTER)break;if(_0x4ed268['XDHfq'](isUnknownSize,_0xf1ace2,_0x36fc41))break;_0x1553ae+=_0x4ed268[_0x2074a0(0x171)](_0x4ed268[_0x2074a0(0x182)](_0x342a26,_0x36fc41),_0xf1ace2);}_0x42f794['push']({'timestamp':_0x541b90,'maxTicks':_0x24a8af,'bodyBeforeTimestamp':_0x574295,'bodyAfterTimestamp':_0x202b4b,'timestampElementSize':_0x4c699f}),_0x2ad3bc=_0x4b6dea;}return _0x42f794;}function parseWebm(_0x37c927){const _0x51a8f3=_0x3359,_0x227dd9={'hBUTO':function(_0x3d6e2a,_0x3ced17,_0x455cb8){return _0x3d6e2a(_0x3ced17,_0x455cb8);},'XoTef':function(_0x236dad,_0x201465){return _0x236dad+_0x201465;},'QqvqA':function(_0x45e8ed,_0x664bd4){return _0x45e8ed!==_0x664bd4;},'ZpLrj':function(_0xb764b9,_0x5b429c,_0x453d8b){return _0xb764b9(_0x5b429c,_0x453d8b);},'lymEa':function(_0x4b9b92,_0x43d1dd){return _0x4b9b92>_0x43d1dd;}};let _0x1840e6=0x0;const [,_0x117fc5]=_0x227dd9['hBUTO'](readId,_0x37c927,_0x1840e6),[_0x15719f,_0x40c5de]=_0x227dd9[_0x51a8f3(0x181)](readVint,_0x37c927,_0x227dd9[_0x51a8f3(0x189)](_0x1840e6,_0x117fc5));_0x1840e6+=_0x117fc5+_0x40c5de+_0x15719f;const [_0x10c87b,_0xa14221]=readId(_0x37c927,_0x1840e6);if(_0x227dd9['QqvqA'](_0x10c87b,ID_SEGMENT))return null;const [,_0x12aa10]=readVint(_0x37c927,_0x1840e6+_0xa14221),_0x327e5f=_0x1840e6+_0xa14221+_0x12aa10,_0x2f7446=_0x227dd9['ZpLrj'](findTimestampScale,_0x37c927,_0x327e5f),_0x62eb59=_0x227dd9[_0x51a8f3(0x19a)](findFirstClusterOffset,_0x37c927,_0x327e5f),_0x34c15e=_0x37c927[_0x51a8f3(0x183)](0x0,_0x62eb59),_0x11c005=extractClusters(_0x37c927,_0x2f7446);let _0x45ffba=0x0;for(const _0x208813 of _0x11c005){if(_0x227dd9['lymEa'](_0x208813[_0x51a8f3(0x172)],_0x45ffba))_0x45ffba=_0x208813[_0x51a8f3(0x172)];}return{'header':_0x34c15e,'clusters':_0x11c005,'timestampScale':_0x2f7446,'maxTimestampTicks':_0x45ffba};}function buildCluster(_0x5abf20,_0x1272ef,_0x1bc73d){const _0x47e57b=_0x3359,_0x59bae4={'jXyaj':function(_0x284c5e,_0x94fca4,_0x511e90){return _0x284c5e(_0x94fca4,_0x511e90);},'yJTuu':function(_0x12f811,_0x47279b){return _0x12f811(_0x47279b);}},_0x197fc6=Buffer[_0x47e57b(0x196)]([0x1f,0x43,0xb6,0x75]),_0x3655fc=Math[_0x47e57b(0x164)](0x4,uintSize(_0x5abf20)),_0x4aa878=Buffer[_0x47e57b(0x16b)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x3655fc),_0x59bae4[_0x47e57b(0x162)](writeUint,_0x5abf20,_0x3655fc)]),_0x5eb4b0=Buffer['concat']([_0x1272ef,_0x4aa878,_0x1bc73d]),_0x26fdfd=_0x59bae4[_0x47e57b(0x16a)](writeVint,_0x5eb4b0['length']);return Buffer['concat']([_0x197fc6,_0x26fdfd,_0x5eb4b0]);}const ID_DURATION=0x4489;function _0x24f2(){const _0x3c23ae=['ckHks','4VxyciW','aIRcA','from','KGSZJ','nWEEy','QSukb','ZpLrj','1760575JMmiAD','OtKRr','endsWith','push','IYHSH','floor','YQLPV','pow','zqiXv','pirLY','doQYr','SNUfH','mvvXP','7252400MncqtV','jXyaj','lewTW','max','rKKPy','sbdBL','\x20files\x20->\x20','mUQUf','min','yJTuu','concat','OIrXt','2533158jsvYhv','timestamp','FoRCi','log','YRTEH','maxTicks','hDvBt','cwDpO','argv','WKQwo','clusters','stitchWebmFiles.js','has','qzeUa','LIyWC','KbhlX','sIJVw','BssOH','BFuxB','GLojL','hBUTO','cDXJO','slice','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','NzxRS','KpBBE','stitchWebmFiles.ts','alloc','XoTef','PqcsF','6259816sLyLdb','length','3209320oYIMPU','gZaWF','9602784LYRRDF','1438221iEfytD','7CglWlS','error'];_0x24f2=function(){return _0x3c23ae;};return _0x24f2();}function rebuildHeaderWithoutDuration(_0x56bea5){const _0x3a8c2e=_0x3359,_0x36eb21={'sbdBL':function(_0x34a226,_0x11eeb7,_0x980c5c){return _0x34a226(_0x11eeb7,_0x980c5c);},'jfFcw':function(_0x4ee270,_0x3cfd60){return _0x4ee270+_0x3cfd60;},'QSukb':function(_0x42362c,_0x590c14){return _0x42362c+_0x590c14;},'ouVmv':function(_0x3294aa,_0x289693){return _0x3294aa(_0x289693);},'pirLY':function(_0x15fe7c,_0x42eb3d){return _0x15fe7c+_0x42eb3d;},'KGSZJ':function(_0x276e51,_0x442821){return _0x276e51<_0x442821;},'xrkFg':function(_0x214128,_0x5bcbb3,_0x52449e){return _0x214128(_0x5bcbb3,_0x52449e);}},_0xe0f1cb=Buffer[_0x3a8c2e(0x196)](_0x56bea5);let _0x2b99e4=0x0;const [,_0x52d28b]=_0x36eb21['sbdBL'](readId,_0xe0f1cb,_0x2b99e4),[_0x235378,_0x29b71a]=readVint(_0xe0f1cb,_0x36eb21['jfFcw'](_0x2b99e4,_0x52d28b)),_0x166d11=_0x36eb21['jfFcw'](_0x36eb21[_0x3a8c2e(0x199)](_0x2b99e4,_0x52d28b)+_0x29b71a,_0x235378),[,_0x14d96d]=readId(_0xe0f1cb,_0x166d11),[,_0x157a45]=readVint(_0xe0f1cb,_0x166d11+_0x14d96d),_0x56431b=_0x166d11+_0x14d96d+_0x157a45,_0x1a0eb9=_0x36eb21['ouVmv'](writeUnknownSizeVint,_0x157a45);_0x1a0eb9['copy'](_0xe0f1cb,_0x36eb21[_0x3a8c2e(0x15d)](_0x166d11,_0x14d96d));let _0x1f9646=_0x56431b;const _0x2b79ec=Math['min'](_0xe0f1cb[_0x3a8c2e(0x18c)],_0x56431b+0x2710);while(_0x1f9646<_0x2b79ec){const [_0x219c11,_0x172c41]=_0x36eb21[_0x3a8c2e(0x166)](readId,_0xe0f1cb,_0x1f9646),[_0x288119,_0x4fd81d]=readVint(_0xe0f1cb,_0x1f9646+_0x172c41);if(_0x219c11===ID_CLUSTER)break;if(isUnknownSize(_0x288119,_0x4fd81d))break;if(_0x219c11===ID_INFO){const _0x3bceb2=_0x1f9646+_0x172c41+_0x4fd81d,_0x2f9a9a=_0x3bceb2+_0x288119,_0xc8339e=[];let _0x508c1b=_0x3bceb2;while(_0x36eb21[_0x3a8c2e(0x197)](_0x508c1b,_0x2f9a9a)){const [_0x407848,_0xea7521]=_0x36eb21['xrkFg'](readId,_0xe0f1cb,_0x508c1b),[_0x35b9f8,_0x2ae824]=readVint(_0xe0f1cb,_0x508c1b+_0xea7521),_0x10d6d9=_0xea7521+_0x2ae824+_0x35b9f8;_0x407848!==ID_DURATION&&_0xc8339e[_0x3a8c2e(0x19e)](_0xe0f1cb[_0x3a8c2e(0x183)](_0x508c1b,_0x508c1b+_0x10d6d9)),_0x508c1b+=_0x10d6d9;}const _0x11a280=Buffer[_0x3a8c2e(0x16b)](_0xc8339e),_0x2e095d=Buffer[_0x3a8c2e(0x16b)]([_0xe0f1cb[_0x3a8c2e(0x183)](_0x1f9646,_0x36eb21['pirLY'](_0x1f9646,_0x172c41)),writeVint(_0x11a280[_0x3a8c2e(0x18c)],_0x4fd81d)]);return Buffer[_0x3a8c2e(0x16b)]([_0xe0f1cb['slice'](0x0,_0x1f9646),_0x2e095d,_0x11a280,_0xe0f1cb[_0x3a8c2e(0x183)](_0x2f9a9a)]);}_0x1f9646+=_0x172c41+_0x4fd81d+_0x288119;}return _0xe0f1cb;}export function stitchWebmFiles(_0xe09877,_0x7365e7){const _0x38f5aa=_0x3359,_0xf5184f={'WKQwo':function(_0x2826bb,_0x4d5e06,_0x14200f){return _0x2826bb(_0x4d5e06,_0x14200f);}};if(_0xe09877['length']<=0x1)return![];const _0x30dfac=[];for(const _0x4c7552 of _0xe09877){const _0x5b9d9e=readFileSync(_0x4c7552),_0x4ed3b2=parseWebm(_0x5b9d9e);if(!_0x4ed3b2||_0x4ed3b2[_0x38f5aa(0x177)]['length']===0x0)return![];_0x30dfac[_0x38f5aa(0x19e)](_0x4ed3b2);}const _0x17cfcb=_0x30dfac[0x0],_0x44a7c6=rebuildHeaderWithoutDuration(_0x17cfcb['header']),_0x1ddd16=[_0x44a7c6];let _0x4ad6b9=0x0;for(let _0x2fc192=0x0;_0x2fc192<_0x30dfac[_0x38f5aa(0x18c)];_0x2fc192++){const _0x1d114e=_0x30dfac[_0x2fc192];for(const _0x54bb93 of _0x1d114e['clusters']){const _0x2661dd=_0x54bb93[_0x38f5aa(0x16e)]+_0x4ad6b9;_0x1ddd16[_0x38f5aa(0x19e)](buildCluster(_0x2661dd,_0x54bb93['bodyBeforeTimestamp'],_0x54bb93['bodyAfterTimestamp']));}const _0x50b41f=0x1e;_0x4ad6b9+=_0x1d114e['maxTimestampTicks']+_0x50b41f;}return _0xf5184f[_0x38f5aa(0x176)](writeFileSync,_0x7365e7,Buffer['concat'](_0x1ddd16)),!![];}if(process[_0x3d9620(0x175)][0x1]?.['endsWith'](_0x3d9620(0x187))||process[_0x3d9620(0x175)][0x1]?.[_0x3d9620(0x19d)](_0x3d9620(0x178))){const args=process[_0x3d9620(0x175)]['slice'](0x2);args['length']<0x3&&(console[_0x3d9620(0x192)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args[_0x3d9620(0x18c)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x3d9620(0x170)]('Stitched\x20'+inputs['length']+_0x3d9620(0x167)+output):console['log'](_0x3d9620(0x184));}
@@ -1 +1 @@
1
- const _0xee0225=_0xf479;(function(_0x766570,_0x46512e){const _0x5b09e3=_0xf479,_0x13bd31=_0x766570();while(!![]){try{const _0xae7cc9=parseInt(_0x5b09e3(0x191))/0x1*(parseInt(_0x5b09e3(0x189))/0x2)+parseInt(_0x5b09e3(0x192))/0x3*(parseInt(_0x5b09e3(0x194))/0x4)+-parseInt(_0x5b09e3(0x1b5))/0x5*(-parseInt(_0x5b09e3(0x1ba))/0x6)+parseInt(_0x5b09e3(0x1af))/0x7+parseInt(_0x5b09e3(0x1bc))/0x8+-parseInt(_0x5b09e3(0x199))/0x9*(-parseInt(_0x5b09e3(0x1b2))/0xa)+-parseInt(_0x5b09e3(0x176))/0xb*(parseInt(_0x5b09e3(0x180))/0xc);if(_0xae7cc9===_0x46512e)break;else _0x13bd31['push'](_0x13bd31['shift']());}catch(_0x25e8a3){_0x13bd31['push'](_0x13bd31['shift']());}}}(_0x59fd,0xa8dc7));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x4babb6=_0xf479,_0x1774fc={'Thxzn':function(_0x46c607,_0x4afcab,_0x4677a5){return _0x46c607(_0x4afcab,_0x4677a5);},'cwmal':function(_0x2c803f,_0x2059c8,_0x47a9b8){return _0x2c803f(_0x2059c8,_0x47a9b8);},'rDTGp':function(_0x3194bb,_0x4c45fc){return _0x3194bb(_0x4c45fc);},'HjcHL':function(_0x1698ce){return _0x1698ce();},'PmUQm':function(_0x1a93da,_0x555ec2,_0x36223b){return _0x1a93da(_0x555ec2,_0x36223b);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x5c5329=_0x1774fc[_0x4babb6(0x187)](join,homedir(),'.ranger'),_0x5380cd=_0x1774fc[_0x4babb6(0x1ab)](join,_0x5c5329,_0x4babb6(0x177));if(_0x1774fc[_0x4babb6(0x1a4)](existsSync,_0x5380cd)){cachedDeviceId=readFileSync(_0x5380cd,_0x4babb6(0x169))[_0x4babb6(0x16f)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x1774fc['HjcHL'](randomUUID),_0x1774fc['PmUQm'](mkdirSync,_0x5c5329,{'recursive':!![]}),writeFileSync(_0x5380cd,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}function _0x59fd(){const _0x3a6d65=['\x20event(s)\x20to\x20','trackCommandError','commandId','dJfnZ','phase','jxHXp','deviceId','lVCRv','kYUAS','phase_end','rDTGp','XfNbP','trackPhaseEnd','isTty','name','MhCPa','XaSrg','cwmal','qaoVU','length','phaseCounter','329140ijLXSP','finally','GITHUB_ACTIONS','69340UYSlxT','mHbAq','get','5408990gnOGCk','trackCommandStart','phaseIndex','outcome','stringify','6kJTSYx','durationMs','4534656gcVOpC','env','signal','slice','nodeVersion','cwd','utf-8','metadata','jlnQA','flush','cliVersion','evaluation','trim','command_error','sRKDX','buffer','set','setContext','errorMessage','39138913eEyYNK','.session','isCI','vqMDh','splice','sendImmediate','phaseStartTimes','checklistItemId','FVmHl','transport','12bGNAeP','flushing','Authorization','catch','command_start','phase_start','error','Thxzn','browserSessionId','9886qNRbDP','constructor','now','commandStartTime','command_end','delete','push','sendBatch','145xxHKzu','195xndwgD','buildEvent','58876WdrNFQ','featureId','isTTY','platform','Bearer\x20','1143ANAlvc'];_0x59fd=function(){return _0x3a6d65;};return _0x59fd();}export class TelemetryCollector{['buffer']=[];[_0xee0225(0x19c)];['command'];[_0xee0225(0x18c)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();['flushing']=null;[_0xee0225(0x1a0)];[_0xee0225(0x16d)];[_0xee0225(0x1c0)];[_0xee0225(0x197)];['isTty'];['isCI'];[_0xee0225(0x195)];['checklistItemId'];[_0xee0225(0x188)];[_0xee0225(0x17f)];constructor(_0x2d42d5){const _0x4eaf61=_0xee0225,_0x49eb61={'kYUAS':function(_0x5b43c5){return _0x5b43c5();}},_0x451bfe='5|6|8|1|4|2|3|0|7'['split']('|');let _0x120c6f=0x0;while(!![]){switch(_0x451bfe[_0x120c6f++]){case'0':this[_0x4eaf61(0x1a7)]=process['stdout'][_0x4eaf61(0x196)]??![];continue;case'1':this[_0x4eaf61(0x1a0)]=_0x49eb61[_0x4eaf61(0x1a2)](getDeviceId);continue;case'2':this[_0x4eaf61(0x1c0)]=process['version'];continue;case'3':this['platform']=process[_0x4eaf61(0x197)];continue;case'4':this['cliVersion']=_0x49eb61[_0x4eaf61(0x1a2)](getCurrentVersion);continue;case'5':this['commandId']=randomUUID();continue;case'6':this['command']=_0x2d42d5;continue;case'7':this[_0x4eaf61(0x178)]=!!(process['env']['CI']||process[_0x4eaf61(0x1bd)][_0x4eaf61(0x1b1)]);continue;case'8':this[_0x4eaf61(0x18c)]=Date['now']();continue;}break;}}[_0xee0225(0x174)](_0x6c7ab7){const _0x23df63=_0xee0225;if(_0x6c7ab7[_0x23df63(0x195)])this[_0x23df63(0x195)]=_0x6c7ab7[_0x23df63(0x195)];if(_0x6c7ab7[_0x23df63(0x17d)])this[_0x23df63(0x17d)]=_0x6c7ab7[_0x23df63(0x17d)];if(_0x6c7ab7[_0x23df63(0x188)])this[_0x23df63(0x188)]=_0x6c7ab7[_0x23df63(0x188)];if(_0x6c7ab7['transport'])this[_0x23df63(0x17f)]=_0x6c7ab7[_0x23df63(0x17f)];}async[_0xee0225(0x1b6)](_0x18f23b){const _0x418466=_0xee0225,_0x235d47={'XaSrg':_0x418466(0x184)},_0x110e74=this[_0x418466(0x193)]({'eventType':_0x235d47[_0x418466(0x1aa)],'metadata':_0x18f23b});await this['sendImmediate'](_0x110e74);}async['trackCommandEnd'](_0x10f018,_0x315a52){const _0xc847c3=_0xee0225,_0x1e7dcb={'ngOrn':function(_0x59ba43,_0x12eade){return _0x59ba43-_0x12eade;}},_0xeacd08=this['buildEvent']({'eventType':_0xc847c3(0x18d),'outcome':_0x10f018,'durationMs':_0x1e7dcb['ngOrn'](Date[_0xc847c3(0x18b)](),this['commandStartTime']),'metadata':_0x315a52});await this[_0xc847c3(0x17b)](_0xeacd08),await this[_0xc847c3(0x16c)]();}async[_0xee0225(0x19b)](_0x3c1dc6,_0x1dbdde){const _0x4ec9a8=_0xee0225,_0x542b23={'MhCPa':function(_0x2f06b0,_0x149bbe){return _0x2f06b0 instanceof _0x149bbe;},'lVCRv':function(_0x4fffa1,_0x465810){return _0x4fffa1-_0x465810;}},_0x3f2a30=this['buildEvent']({'eventType':_0x4ec9a8(0x170),'errorMessage':truncate(_0x542b23[_0x4ec9a8(0x1a9)](_0x3c1dc6,Error)?_0x3c1dc6['message']:String(_0x3c1dc6),0x1f4),'errorType':_0x542b23['MhCPa'](_0x3c1dc6,Error)?_0x3c1dc6['constructor'][_0x4ec9a8(0x1a8)]:'Unknown','durationMs':_0x542b23[_0x4ec9a8(0x1a1)](Date[_0x4ec9a8(0x18b)](),this['commandStartTime']),'metadata':_0x1dbdde});await this['sendImmediate'](_0x3f2a30),await this['flush']();}['trackPhaseStart'](_0x41e461,_0x3961c3){const _0x23a90c=_0xee0225,_0x102e57={'vqMDh':_0x23a90c(0x185)};this[_0x23a90c(0x1ae)]++,this['phaseStartTimes'][_0x23a90c(0x173)](_0x41e461,Date['now']());const _0x9b65fd=this['buildEvent']({'eventType':_0x102e57[_0x23a90c(0x179)],'phase':_0x41e461,'phaseIndex':this['phaseCounter'],'metadata':_0x3961c3});this[_0x23a90c(0x172)][_0x23a90c(0x18f)](_0x9b65fd);}[_0xee0225(0x1a6)](_0x68e76d,_0x2493b5){const _0x39ce4a=_0xee0225,_0x431267={'AMOhG':_0x39ce4a(0x1a3),'FVmHl':function(_0x26c16a,_0xee0655){return _0x26c16a>=_0xee0655;}},_0x2e800e=this[_0x39ce4a(0x17c)]['get'](_0x68e76d),_0xb6a696=_0x2e800e?Date[_0x39ce4a(0x18b)]()-_0x2e800e:undefined;this['phaseStartTimes'][_0x39ce4a(0x18e)](_0x68e76d);const _0x1fcfee=this[_0x39ce4a(0x193)]({'eventType':_0x431267['AMOhG'],'phase':_0x68e76d,'durationMs':_0xb6a696,'metadata':_0x2493b5});this[_0x39ce4a(0x172)][_0x39ce4a(0x18f)](_0x1fcfee),_0x431267[_0x39ce4a(0x17e)](this['buffer'][_0x39ce4a(0x1ad)],0xa)&&this['flushAsync']();}async['trackPhaseError'](_0x1e3952,_0x361e5c,_0x3a69d6){const _0x436882=_0xee0225,_0x323c76={'AViUV':function(_0x555686,_0xac1905){return _0x555686-_0xac1905;},'WeelQ':function(_0x41d5c7,_0x5b8209,_0x325ce3){return _0x41d5c7(_0x5b8209,_0x325ce3);},'jlnQA':function(_0xb0f151,_0x4bbd8e){return _0xb0f151(_0x4bbd8e);},'dJfnZ':function(_0x3d720a,_0x24635d){return _0x3d720a instanceof _0x24635d;},'jxHXp':'Unknown'},_0x2a22fd=this[_0x436882(0x17c)][_0x436882(0x1b4)](_0x1e3952),_0x167a4f=_0x2a22fd?_0x323c76['AViUV'](Date['now'](),_0x2a22fd):undefined;this[_0x436882(0x17c)][_0x436882(0x18e)](_0x1e3952);const _0x20e4c5=this['buildEvent']({'eventType':'phase_error','phase':_0x1e3952,'durationMs':_0x167a4f,'errorMessage':_0x323c76['WeelQ'](truncate,_0x361e5c instanceof Error?_0x361e5c['message']:_0x323c76[_0x436882(0x16b)](String,_0x361e5c),0x1f4),'errorType':_0x323c76[_0x436882(0x19d)](_0x361e5c,Error)?_0x361e5c[_0x436882(0x18a)][_0x436882(0x1a8)]:_0x323c76[_0x436882(0x19f)],'metadata':_0x3a69d6});await this[_0x436882(0x17b)](_0x20e4c5);}async['flush'](){const _0x1bd3b9=_0xee0225;if(this['buffer'][_0x1bd3b9(0x1ad)]===0x0)return;const _0x5f0e56=this[_0x1bd3b9(0x172)][_0x1bd3b9(0x17a)](0x0);try{await this[_0x1bd3b9(0x190)](_0x5f0e56);}catch{}}['buildEvent'](_0x29de7f){const _0xe49210=_0xee0225;return{'eventType':_0x29de7f['eventType'],'command':this['command'],'commandId':this['commandId'],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x29de7f[_0xe49210(0x1bb)],'phase':_0x29de7f[_0xe49210(0x19e)],'phaseIndex':_0x29de7f[_0xe49210(0x1b7)],'outcome':_0x29de7f[_0xe49210(0x1b8)],'errorMessage':_0x29de7f[_0xe49210(0x175)],'errorType':_0x29de7f['errorType'],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0xe49210(0x188)],'transport':this[_0xe49210(0x17f)],'evaluation':_0x29de7f[_0xe49210(0x16e)],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0xe49210(0x197)],'cwd':process[_0xe49210(0x1c1)](),'isTty':this[_0xe49210(0x1a7)],'isCI':this['isCI'],'metadata':_0x29de7f[_0xe49210(0x16a)]};}async['sendImmediate'](_0x20fd37){try{await this['sendBatch']([_0x20fd37]);}catch{}}['flushAsync'](){const _0x3a329e=_0xee0225;if(this[_0x3a329e(0x181)])return;this[_0x3a329e(0x181)]=this[_0x3a329e(0x16c)]()[_0x3a329e(0x1b0)](()=>{this['flushing']=null;});}async[_0xee0225(0x190)](_0x2f2a57){const _0x1cc50a=_0xee0225,_0x4e447b={'NmltO':function(_0x22d966){return _0x22d966();},'sRKDX':function(_0x14ea55){return _0x14ea55();},'mHbAq':_0x1cc50a(0x182),'pHAfT':function(_0x52929c,_0x203717){return _0x52929c(_0x203717);}},_0x5256ca=await _0x4e447b['NmltO'](getToken)[_0x1cc50a(0x183)](()=>null),_0x4e0f51=_0x4e447b[_0x1cc50a(0x171)](getApiBaseUrl),_0x26eb9b={'Content-Type':'application/json'};_0x5256ca&&(_0x26eb9b[_0x4e447b[_0x1cc50a(0x1b3)]]=_0x1cc50a(0x198)+_0x5256ca);const _0x5a9fdd={'events':_0x2f2a57};process[_0x1cc50a(0x1bd)]['DEBUG']&&console[_0x1cc50a(0x186)]('[telemetry]\x20Sending\x20'+_0x2f2a57[_0x1cc50a(0x1ad)]+_0x1cc50a(0x19a)+_0x4e0f51+'/api/v1/mcp/cli-telemetry');const _0x2d0a13=new AbortController(),_0x2889c5=setTimeout(()=>_0x2d0a13['abort'](),0x1388);try{await fetch(_0x4e0f51+'/api/v1/mcp/cli-telemetry',{'method':'POST','headers':_0x26eb9b,'body':JSON[_0x1cc50a(0x1b9)](_0x5a9fdd),'signal':_0x2d0a13[_0x1cc50a(0x1be)]});}finally{_0x4e447b['pHAfT'](clearTimeout,_0x2889c5);}}}let currentCollector=null;function _0xf479(_0xaed963,_0x2db445){_0xaed963=_0xaed963-0x169;const _0x59fdb1=_0x59fd();let _0xf4799d=_0x59fdb1[_0xaed963];return _0xf4799d;}export function createTelemetryCollector(_0x20f45b){return currentCollector=new TelemetryCollector(_0x20f45b),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x524d95,_0xa9f057,_0x3f5774){const _0x36db84=createTelemetryCollector(_0x524d95);await _0x36db84['trackCommandStart'](_0x3f5774);try{const _0x478269=await _0xa9f057(_0x36db84);return await _0x36db84['trackCommandEnd']('success'),_0x478269;}catch(_0xa6a824){await _0x36db84['trackCommandError'](_0xa6a824);throw _0xa6a824;}finally{await _0x36db84['flush']();}}function truncate(_0x4abce7,_0x11c84e){const _0x513e5e=_0xee0225,_0xa9b6c2={'LoCUO':function(_0x497ac6,_0x49b7ee){return _0x497ac6>_0x49b7ee;},'XfNbP':function(_0x2faae8,_0x5eab7d){return _0x2faae8+_0x5eab7d;},'qaoVU':'...'};return _0xa9b6c2['LoCUO'](_0x4abce7[_0x513e5e(0x1ad)],_0x11c84e)?_0xa9b6c2[_0x513e5e(0x1a5)](_0x4abce7[_0x513e5e(0x1bf)](0x0,_0x11c84e),_0xa9b6c2[_0x513e5e(0x1ac)]):_0x4abce7;}
1
+ const _0x2e31a1=_0x482b;(function(_0x290a18,_0x12fa12){const _0x5a75d1=_0x482b,_0x1e5233=_0x290a18();while(!![]){try{const _0xcf289=-parseInt(_0x5a75d1(0xfd))/0x1*(parseInt(_0x5a75d1(0x103))/0x2)+parseInt(_0x5a75d1(0xed))/0x3+parseInt(_0x5a75d1(0x11f))/0x4+parseInt(_0x5a75d1(0x109))/0x5+-parseInt(_0x5a75d1(0x116))/0x6*(parseInt(_0x5a75d1(0x129))/0x7)+parseInt(_0x5a75d1(0xea))/0x8+-parseInt(_0x5a75d1(0xe6))/0x9;if(_0xcf289===_0x12fa12)break;else _0x1e5233['push'](_0x1e5233['shift']());}catch(_0x52b549){_0x1e5233['push'](_0x1e5233['shift']());}}}(_0x4c90,0x4e369));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function _0x482b(_0x9e835f,_0x2868bf){_0x9e835f=_0x9e835f-0xe0;const _0x4c9021=_0x4c90();let _0x482b49=_0x4c9021[_0x9e835f];return _0x482b49;}function getDeviceId(){const _0x42169a=_0x482b,_0x157839={'wnHGL':function(_0x3972c7,_0x480ed0,_0x64d79c){return _0x3972c7(_0x480ed0,_0x64d79c);},'PBCBw':function(_0x297104){return _0x297104();},'LbPYM':function(_0x3e74f5,_0x5ef62f,_0x3b47ef){return _0x3e74f5(_0x5ef62f,_0x3b47ef);},'TKPln':'.session','yxRlV':'utf-8'};if(cachedDeviceId)return cachedDeviceId;try{const _0x1b7e0b=_0x157839['wnHGL'](join,_0x157839['PBCBw'](homedir),'.ranger'),_0x3b332c=_0x157839['LbPYM'](join,_0x1b7e0b,_0x157839['TKPln']);if(existsSync(_0x3b332c)){cachedDeviceId=_0x157839[_0x42169a(0xf6)](readFileSync,_0x3b332c,_0x157839[_0x42169a(0x12a)])[_0x42169a(0x100)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x157839[_0x42169a(0x10d)](randomUUID),mkdirSync(_0x1b7e0b,{'recursive':!![]}),_0x157839['LbPYM'](writeFileSync,_0x3b332c,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x157839[_0x42169a(0x10d)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{[_0x2e31a1(0xe7)]=[];[_0x2e31a1(0xe3)];[_0x2e31a1(0x124)];['commandStartTime'];['phaseCounter']=0x0;['phaseStartTimes']=new Map();['flushing']=null;[_0x2e31a1(0xfb)];['cliVersion'];['nodeVersion'];[_0x2e31a1(0x10e)];[_0x2e31a1(0xf9)];[_0x2e31a1(0x115)];['featureId'];[_0x2e31a1(0x120)];[_0x2e31a1(0x111)];[_0x2e31a1(0x101)];constructor(_0x37ccb5){const _0x27b221=_0x2e31a1,_0x4630e0={'ammrh':function(_0xb72d11){return _0xb72d11();}},_0x5ebff3='7|4|5|8|1|2|3|0|6'['split']('|');let _0x1b5f28=0x0;while(!![]){switch(_0x5ebff3[_0x1b5f28++]){case'0':this['isTty']=process['stdout'][_0x27b221(0x104)]??![];continue;case'1':this['cliVersion']=_0x4630e0['ammrh'](getCurrentVersion);continue;case'2':this[_0x27b221(0x107)]=process[_0x27b221(0x12b)];continue;case'3':this[_0x27b221(0x10e)]=process['platform'];continue;case'4':this['command']=_0x37ccb5;continue;case'5':this['commandStartTime']=Date['now']();continue;case'6':this[_0x27b221(0x115)]=!!(process[_0x27b221(0xf2)]['CI']||process['env']['GITHUB_ACTIONS']);continue;case'7':this['commandId']=randomUUID();continue;case'8':this['deviceId']=_0x4630e0[_0x27b221(0xfe)](getDeviceId);continue;}break;}}[_0x2e31a1(0xe4)](_0x33f5d2){const _0x5c7f47=_0x2e31a1;if(_0x33f5d2['featureId'])this['featureId']=_0x33f5d2['featureId'];if(_0x33f5d2[_0x5c7f47(0x120)])this[_0x5c7f47(0x120)]=_0x33f5d2[_0x5c7f47(0x120)];if(_0x33f5d2[_0x5c7f47(0x111)])this[_0x5c7f47(0x111)]=_0x33f5d2['browserSessionId'];if(_0x33f5d2[_0x5c7f47(0x101)])this['transport']=_0x33f5d2['transport'];}async[_0x2e31a1(0x11b)](_0x4dd9c3){const _0x495bb3=_0x2e31a1,_0x48ea64={'MFUsB':_0x495bb3(0x126)},_0x5ea5d0=this['buildEvent']({'eventType':_0x48ea64['MFUsB'],'metadata':_0x4dd9c3});await this[_0x495bb3(0xec)](_0x5ea5d0);}async[_0x2e31a1(0x102)](_0x5be0f0,_0x3dc352){const _0x4359c5=_0x2e31a1,_0x3f4159={'npPhC':_0x4359c5(0xfc)},_0x2b4c6a=this['buildEvent']({'eventType':_0x3f4159[_0x4359c5(0xe0)],'outcome':_0x5be0f0,'durationMs':Date[_0x4359c5(0x10a)]()-this[_0x4359c5(0xe9)],'metadata':_0x3dc352});await this['sendImmediate'](_0x2b4c6a),await this['flush']();}async[_0x2e31a1(0x113)](_0x25bba3,_0x1e2503){const _0x25c504=_0x2e31a1,_0x50b560={'CLLXK':_0x25c504(0x125),'vtQbW':function(_0x4d6bc6,_0x15776f,_0x433c4c){return _0x4d6bc6(_0x15776f,_0x433c4c);},'CnwdN':function(_0x369bc5,_0x51e84c){return _0x369bc5 instanceof _0x51e84c;},'jlWYr':function(_0x10d8f2,_0x1e6d88){return _0x10d8f2-_0x1e6d88;}},_0x4e4ee2=this[_0x25c504(0x105)]({'eventType':_0x50b560['CLLXK'],'errorMessage':_0x50b560[_0x25c504(0x106)](truncate,_0x50b560['CnwdN'](_0x25bba3,Error)?_0x25bba3['message']:String(_0x25bba3),0x1f4),'errorType':_0x50b560['CnwdN'](_0x25bba3,Error)?_0x25bba3['constructor']['name']:_0x25c504(0x128),'durationMs':_0x50b560[_0x25c504(0xf3)](Date['now'](),this[_0x25c504(0xe9)]),'metadata':_0x1e2503});await this[_0x25c504(0xec)](_0x4e4ee2),await this[_0x25c504(0x112)]();}[_0x2e31a1(0x10c)](_0x17dfc8,_0x400b99){const _0x2d1aff=_0x2e31a1,_0x5e620d={'izNIk':'phase_start'};this[_0x2d1aff(0xf7)]++,this[_0x2d1aff(0xe1)]['set'](_0x17dfc8,Date[_0x2d1aff(0x10a)]());const _0x33b9fa=this[_0x2d1aff(0x105)]({'eventType':_0x5e620d['izNIk'],'phase':_0x17dfc8,'phaseIndex':this['phaseCounter'],'metadata':_0x400b99});this['buffer'][_0x2d1aff(0x127)](_0x33b9fa);}[_0x2e31a1(0x10f)](_0x132554,_0x3e0ce8){const _0x2c7ccf=_0x2e31a1,_0x276b94={'Vdqyk':'phase_end','TGaCy':function(_0x17281f,_0x474148){return _0x17281f>=_0x474148;}},_0x5c471e=this[_0x2c7ccf(0xe1)]['get'](_0x132554),_0x2ae262=_0x5c471e?Date['now']()-_0x5c471e:undefined;this['phaseStartTimes'][_0x2c7ccf(0x118)](_0x132554);const _0x4e00ac=this['buildEvent']({'eventType':_0x276b94['Vdqyk'],'phase':_0x132554,'durationMs':_0x2ae262,'metadata':_0x3e0ce8});this[_0x2c7ccf(0xe7)][_0x2c7ccf(0x127)](_0x4e00ac),_0x276b94['TGaCy'](this[_0x2c7ccf(0xe7)]['length'],0xa)&&this['flushAsync']();}async['trackPhaseError'](_0x8a6617,_0x56221f,_0x1aac5b){const _0x33b4a9=_0x2e31a1,_0x1a9d70={'HcjEB':function(_0xfceb08,_0x33c560){return _0xfceb08 instanceof _0x33c560;},'NmHHv':function(_0xfdf1d5,_0x353e03){return _0xfdf1d5(_0x353e03);}},_0x475d5a=this[_0x33b4a9(0xe1)][_0x33b4a9(0x108)](_0x8a6617),_0x7144e3=_0x475d5a?Date['now']()-_0x475d5a:undefined;this['phaseStartTimes'][_0x33b4a9(0x118)](_0x8a6617);const _0xeeb79b=this[_0x33b4a9(0x105)]({'eventType':'phase_error','phase':_0x8a6617,'durationMs':_0x7144e3,'errorMessage':truncate(_0x1a9d70[_0x33b4a9(0xee)](_0x56221f,Error)?_0x56221f['message']:_0x1a9d70[_0x33b4a9(0x114)](String,_0x56221f),0x1f4),'errorType':_0x1a9d70['HcjEB'](_0x56221f,Error)?_0x56221f[_0x33b4a9(0xf4)][_0x33b4a9(0xf1)]:'Unknown','metadata':_0x1aac5b});await this[_0x33b4a9(0xec)](_0xeeb79b);}async[_0x2e31a1(0x112)](){const _0x41f7ea=_0x2e31a1,_0x1f00ad={'Mmklk':function(_0x541c94,_0x5cf0bd){return _0x541c94===_0x5cf0bd;}};if(_0x1f00ad[_0x41f7ea(0x119)](this['buffer']['length'],0x0))return;const _0x25cb55=this['buffer']['splice'](0x0);try{await this[_0x41f7ea(0xe2)](_0x25cb55);}catch{}}[_0x2e31a1(0x105)](_0x1a2881){const _0x3b4e46=_0x2e31a1;return{'eventType':_0x1a2881['eventType'],'command':this['command'],'commandId':this['commandId'],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x1a2881[_0x3b4e46(0x11e)],'phase':_0x1a2881['phase'],'phaseIndex':_0x1a2881['phaseIndex'],'outcome':_0x1a2881['outcome'],'errorMessage':_0x1a2881[_0x3b4e46(0x110)],'errorType':_0x1a2881['errorType'],'featureId':this['featureId'],'checklistItemId':this[_0x3b4e46(0x120)],'browserSessionId':this['browserSessionId'],'transport':this[_0x3b4e46(0x101)],'evaluation':_0x1a2881[_0x3b4e46(0x123)],'cliVersion':this[_0x3b4e46(0xeb)],'nodeVersion':this[_0x3b4e46(0x107)],'platform':this[_0x3b4e46(0x10e)],'cwd':process[_0x3b4e46(0xf8)](),'isTty':this[_0x3b4e46(0xf9)],'isCI':this[_0x3b4e46(0x115)],'metadata':_0x1a2881[_0x3b4e46(0xe8)]};}async['sendImmediate'](_0x353f3e){try{await this['sendBatch']([_0x353f3e]);}catch{}}['flushAsync'](){const _0x9e218e=_0x2e31a1;if(this['flushing'])return;this[_0x9e218e(0x117)]=this['flush']()[_0x9e218e(0xf5)](()=>{this['flushing']=null;});}async[_0x2e31a1(0xe2)](_0x393c8f){const _0x599498=_0x2e31a1,_0x429188={'kWKJP':function(_0x19b9c9){return _0x19b9c9();},'MKdCU':function(_0x28bd02){return _0x28bd02();},'QjUcm':'application/json','vQSAO':'Authorization','ZCUiL':function(_0x399bcf,_0x5801ac,_0x505942){return _0x399bcf(_0x5801ac,_0x505942);},'nAIal':'POST'},_0x48fefa=await _0x429188['kWKJP'](getToken)['catch'](()=>null),_0x57c112=_0x429188[_0x599498(0x122)](getApiBaseUrl),_0x258aca={'Content-Type':_0x429188[_0x599498(0x10b)]};_0x48fefa&&(_0x258aca[_0x429188['vQSAO']]='Bearer\x20'+_0x48fefa);const _0x2166dc={'events':_0x393c8f};process[_0x599498(0xf2)][_0x599498(0xff)]&&console[_0x599498(0x121)](_0x599498(0x11a)+_0x393c8f['length']+'\x20event(s)\x20to\x20'+_0x57c112+_0x599498(0xef));const _0x5e873e=new AbortController(),_0x18e2f3=_0x429188[_0x599498(0xe5)](setTimeout,()=>_0x5e873e['abort'](),0x1388);try{await _0x429188['ZCUiL'](fetch,_0x57c112+'/api/v1/mcp/cli-telemetry',{'method':_0x429188['nAIal'],'headers':_0x258aca,'body':JSON[_0x599498(0xf0)](_0x2166dc),'signal':_0x5e873e['signal']});}finally{clearTimeout(_0x18e2f3);}}}let currentCollector=null;export function createTelemetryCollector(_0x5017f4){return currentCollector=new TelemetryCollector(_0x5017f4),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x4fb4a5,_0x4632b4,_0x41e2ca){const _0x2db758=_0x2e31a1,_0xbc85ed={'qfPPS':function(_0x506910,_0x34dd0d){return _0x506910(_0x34dd0d);}},_0x964639=_0xbc85ed[_0x2db758(0xfa)](createTelemetryCollector,_0x4fb4a5);await _0x964639['trackCommandStart'](_0x41e2ca);try{const _0x4d777b=await _0x4632b4(_0x964639);return await _0x964639['trackCommandEnd']('success'),_0x4d777b;}catch(_0x2335f8){await _0x964639['trackCommandError'](_0x2335f8);throw _0x2335f8;}finally{await _0x964639[_0x2db758(0x112)]();}}function _0x4c90(){const _0x3ae480=['buildEvent','vtQbW','nodeVersion','get','2084395VZQkQt','now','QjUcm','trackPhaseStart','PBCBw','platform','trackPhaseEnd','errorMessage','browserSessionId','flush','trackCommandError','NmHHv','isCI','12qhCZpc','flushing','delete','Mmklk','[telemetry]\x20Sending\x20','trackCommandStart','IyaWN','rkOSL','durationMs','1316316ijNvqk','checklistItemId','error','MKdCU','evaluation','command','command_error','command_start','push','Unknown','1018346WRzNOa','yxRlV','version','npPhC','phaseStartTimes','sendBatch','commandId','setContext','ZCUiL','4554495oOGIKe','buffer','metadata','commandStartTime','1135512xViWpX','cliVersion','sendImmediate','1336155piubLB','HcjEB','/api/v1/mcp/cli-telemetry','stringify','name','env','jlWYr','constructor','finally','wnHGL','phaseCounter','cwd','isTty','qfPPS','deviceId','command_end','30SoHkzC','ammrh','DEBUG','trim','transport','trackCommandEnd','14394AMNFpi','isTTY'];_0x4c90=function(){return _0x3ae480;};return _0x4c90();}function truncate(_0x104efe,_0x1e1b2d){const _0x565572=_0x2e31a1,_0x2fea7a={'IyaWN':function(_0x468d46,_0xf227f9){return _0x468d46>_0xf227f9;},'rkOSL':'...'};return _0x2fea7a[_0x565572(0x11c)](_0x104efe['length'],_0x1e1b2d)?_0x104efe['slice'](0x0,_0x1e1b2d)+_0x2fea7a[_0x565572(0x11d)]:_0x104efe;}
@@ -1 +1 @@
1
- function _0x77f4(_0x103aac,_0x2505d8){_0x103aac=_0x103aac-0x17b;const _0x35edd7=_0x35ed();let _0x77f46b=_0x35edd7[_0x103aac];return _0x77f46b;}(function(_0x41878d,_0x44581d){const _0x17713c=_0x77f4,_0x9a2cce=_0x41878d();while(!![]){try{const _0x1e7cae=parseInt(_0x17713c(0x18a))/0x1+-parseInt(_0x17713c(0x191))/0x2+parseInt(_0x17713c(0x181))/0x3*(parseInt(_0x17713c(0x192))/0x4)+-parseInt(_0x17713c(0x183))/0x5+-parseInt(_0x17713c(0x180))/0x6+-parseInt(_0x17713c(0x18d))/0x7*(parseInt(_0x17713c(0x18f))/0x8)+parseInt(_0x17713c(0x17b))/0x9*(parseInt(_0x17713c(0x17f))/0xa);if(_0x1e7cae===_0x44581d)break;else _0x9a2cce['push'](_0x9a2cce['shift']());}catch(_0x47b557){_0x9a2cce['push'](_0x9a2cce['shift']());}}}(_0x35ed,0xcbd26));import{getApiBaseUrl}from'./environment.js';function _0x35ed(){const _0x1e0106=['TCpnc','AIMzz','json','1340321ZQExja','Cfwwd','/cli-auth/refresh','371VhgRLZ','timeout','80224nbYARQ','POST','1556900bmlyAL','1676kUIWJf','18651339GtKsYh','XjCBa','phdKh','persistRefreshToken','10WzTioQ','6822294meztSW','9621jAdnRY','YnLkR','7372940uocIPi','/cli-auth/partner-refresh','token','application/json'];_0x35ed=function(){return _0x1e0106;};return _0x35ed();}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x2cae1e=_0x77f4,_0x5338f3={'XjCBa':function(_0x431eee,_0x1e04fb){return _0x431eee(_0x1e04fb);},'AIMzz':function(_0x5d442b,_0x172e46){return _0x5d442b(_0x172e46);}},_0x150d5d=await getRefreshToken();if(!_0x150d5d)return null;const _0x161d31=await _0x5338f3[_0x2cae1e(0x17c)](tryPartnerRefresh,_0x150d5d);if(_0x161d31)return _0x161d31;return _0x5338f3[_0x2cae1e(0x188)](tryWorkosRefresh,_0x150d5d);}export async function refreshPartnerCliToken(_0x1c49a3,_0x4d445a={}){const _0x4808d4=_0x77f4,_0x54c356={'TCpnc':function(_0x541e73,_0x5d3af7){return _0x541e73(_0x5d3af7);}},_0x1a00e1=await tryPartnerRefresh(_0x1c49a3);return _0x1a00e1&&_0x4d445a[_0x4808d4(0x17e)]&&await _0x54c356[_0x4808d4(0x187)](storeRefreshToken,_0x1c49a3),_0x1a00e1;}async function tryPartnerRefresh(_0x22c4ee){const _0x21429a=_0x77f4,_0x2ad125={'VqlxK':_0x21429a(0x186),'YnLkR':function(_0x4a4652,_0x4e8cc4){return _0x4a4652(_0x4e8cc4);}},_0x77df01=getApiBaseUrl();try{const _0x350853=await fetch(_0x77df01+_0x21429a(0x184),{'method':'POST','headers':{'Content-Type':_0x2ad125['VqlxK']},'body':JSON['stringify']({'refreshToken':_0x22c4ee}),'signal':AbortSignal[_0x21429a(0x18e)](0x2710)});if(!_0x350853['ok'])return null;const _0x56377c=await _0x350853[_0x21429a(0x189)]();return await _0x2ad125[_0x21429a(0x182)](storeToken,_0x56377c[_0x21429a(0x185)]),_0x56377c[_0x21429a(0x185)];}catch{return null;}}async function tryWorkosRefresh(_0x4e1759){const _0x5d39e9=_0x77f4,_0x5b0fb8={'Cfwwd':_0x5d39e9(0x190),'phdKh':function(_0x5ea32d,_0x27d88c){return _0x5ea32d(_0x27d88c);}},_0x456447=getApiBaseUrl();try{const _0x28677d=await fetch(_0x456447+_0x5d39e9(0x18c),{'method':_0x5b0fb8[_0x5d39e9(0x18b)],'headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'refreshToken':_0x4e1759}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x28677d['ok'])return null;const _0x498d9b=await _0x28677d['json']();return await _0x5b0fb8[_0x5d39e9(0x17d)](storeToken,_0x498d9b['token']),await _0x5b0fb8['phdKh'](storeRefreshToken,_0x498d9b['refreshToken']),_0x498d9b[_0x5d39e9(0x185)];}catch{return null;}}
1
+ function _0x58a4(_0x528132,_0x1cab21){_0x528132=_0x528132-0x144;const _0x540b3a=_0x540b();let _0x58a472=_0x540b3a[_0x528132];return _0x58a472;}(function(_0x1ea279,_0x1f001f){const _0x398e58=_0x58a4,_0x5b2c90=_0x1ea279();while(!![]){try{const _0x457580=-parseInt(_0x398e58(0x159))/0x1*(-parseInt(_0x398e58(0x14c))/0x2)+parseInt(_0x398e58(0x15a))/0x3+-parseInt(_0x398e58(0x14b))/0x4*(parseInt(_0x398e58(0x14f))/0x5)+-parseInt(_0x398e58(0x149))/0x6+parseInt(_0x398e58(0x144))/0x7*(-parseInt(_0x398e58(0x157))/0x8)+-parseInt(_0x398e58(0x14a))/0x9+parseInt(_0x398e58(0x14e))/0xa*(parseInt(_0x398e58(0x154))/0xb);if(_0x457580===_0x1f001f)break;else _0x5b2c90['push'](_0x5b2c90['shift']());}catch(_0x1cf43c){_0x5b2c90['push'](_0x5b2c90['shift']());}}}(_0x540b,0xe1fc4));import{getApiBaseUrl}from'./environment.js';function _0x540b(){const _0x16f5a9=['timeout','11JFdIxm','RWZtA','KpFPB','331048qsLWHq','/cli-auth/refresh','18XvWRHw','477381nahQtE','91sJGTsp','UwdxC','refreshToken','stringify','xCuGb','10277910soSdPi','8956179jbcuDC','7408YbMRyF','33268xtDrhO','persistRefreshToken','51725420dApEKb','3940AEqNME','token','gABHZ','/cli-auth/partner-refresh'];_0x540b=function(){return _0x16f5a9;};return _0x540b();}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x4fc3f5={'XEIoQ':function(_0x6d4054,_0x428b53){return _0x6d4054(_0x428b53);}},_0x82e58a=await getRefreshToken();if(!_0x82e58a)return null;const _0x253866=await _0x4fc3f5['XEIoQ'](tryPartnerRefresh,_0x82e58a);if(_0x253866)return _0x253866;return tryWorkosRefresh(_0x82e58a);}export async function refreshPartnerCliToken(_0x3b8a42,_0x478e45={}){const _0x5f1ecb=_0x58a4,_0x3a9c6d=await tryPartnerRefresh(_0x3b8a42);return _0x3a9c6d&&_0x478e45[_0x5f1ecb(0x14d)]&&await storeRefreshToken(_0x3b8a42),_0x3a9c6d;}async function tryPartnerRefresh(_0x49ac7e){const _0x5f2d02=_0x58a4,_0x54c67e={'gABHZ':function(_0x2e7fb8,_0x1c53f9,_0x269ffc){return _0x2e7fb8(_0x1c53f9,_0x269ffc);},'xoEmT':'POST','UwdxC':'application/json','RWZtA':function(_0x412f02,_0x3a7cfe){return _0x412f02(_0x3a7cfe);}},_0x476f81=getApiBaseUrl();try{const _0x461497=await _0x54c67e[_0x5f2d02(0x151)](fetch,_0x476f81+_0x5f2d02(0x152),{'method':_0x54c67e['xoEmT'],'headers':{'Content-Type':_0x54c67e[_0x5f2d02(0x145)]},'body':JSON['stringify']({'refreshToken':_0x49ac7e}),'signal':AbortSignal[_0x5f2d02(0x153)](0x2710)});if(!_0x461497['ok'])return null;const _0x1e4e66=await _0x461497['json']();return await _0x54c67e[_0x5f2d02(0x155)](storeToken,_0x1e4e66['token']),_0x1e4e66[_0x5f2d02(0x150)];}catch{return null;}}async function tryWorkosRefresh(_0x30bafd){const _0x19e211=_0x58a4,_0x29c85b={'FHkcf':'POST','xCuGb':'application/json','KpFPB':function(_0x3ca505,_0x28c6d8){return _0x3ca505(_0x28c6d8);}},_0x683920=getApiBaseUrl();try{const _0x7d90=await fetch(_0x683920+_0x19e211(0x158),{'method':_0x29c85b['FHkcf'],'headers':{'Content-Type':_0x29c85b[_0x19e211(0x148)]},'body':JSON[_0x19e211(0x147)]({'refreshToken':_0x30bafd}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x7d90['ok'])return null;const _0xff538f=await _0x7d90['json']();return await storeToken(_0xff538f[_0x19e211(0x150)]),await _0x29c85b[_0x19e211(0x156)](storeRefreshToken,_0xff538f[_0x19e211(0x146)]),_0xff538f[_0x19e211(0x150)];}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x269832,_0x3d6c82){const _0x34cb9f=_0x126b,_0x4d3551=_0x269832();while(!![]){try{const _0x14def7=parseInt(_0x34cb9f(0x13a))/0x1+-parseInt(_0x34cb9f(0x154))/0x2+-parseInt(_0x34cb9f(0x140))/0x3+-parseInt(_0x34cb9f(0x149))/0x4+-parseInt(_0x34cb9f(0x136))/0x5+-parseInt(_0x34cb9f(0x160))/0x6+parseInt(_0x34cb9f(0x147))/0x7;if(_0x14def7===_0x3d6c82)break;else _0x4d3551['push'](_0x4d3551['shift']());}catch(_0x51555a){_0x4d3551['push'](_0x4d3551['shift']());}}}(_0xfba5,0x6612b));import{readdir,readFile}from'fs/promises';function _0x126b(_0x1507a5,_0x434088){_0x1507a5=_0x1507a5-0x132;const _0xfba52c=_0xfba5();let _0x126b6c=_0xfba52c[_0x1507a5];return _0x126b6c;}import{join}from'path';function _0xfba5(){const _0x116303=['EGmDX','818855qnuLVP','length','set','page@0','475248SVMAxh','string','utf-8','Yqhjl','getTime','frame-snapshot','1281231IfPJpx','pageId','isDirectory','params','type','RsPvW','abs','12952072ClucML','indexOf','2151080QYOTte','.trace','VoUWD','method','input','GAmEg','point','startTime','afterSnapshot','inputSnapshot','beforeSnapshot','908964kBZmur','sDjOt','goto','monotonicTime','endsWith','navigated','split','find','endTime','from','callId','wallTime','1946118qgTMAF','get','GuOme','before','url'];_0xfba5=function(){return _0x116303;};return _0xfba5();}export async function mapStepsToTraceSnapshots(_0x418900,_0x3df745){const _0x2f85cb=_0x126b,_0x1bd793={'Yqhjl':function(_0x81274c,_0x3f9f72){return _0x81274c(_0x3f9f72);},'STPpw':_0x2f85cb(0x14a),'EGmDX':function(_0xce1742,_0x458797){return _0xce1742(_0x458797);},'tRLti':function(_0x2880d1,_0x51485f){return _0x2880d1===_0x51485f;},'hiVUH':function(_0x40e854,_0x4e94e6){return _0x40e854===_0x4e94e6;},'GuOme':_0x2f85cb(0x13f),'mmPAb':function(_0x30f715,_0x26709a){return _0x30f715===_0x26709a;},'GAmEg':'string','hIIPv':'event','sDjOt':_0x2f85cb(0x159),'hTpHG':function(_0x11e178,_0x17312d){return _0x11e178===_0x17312d;},'yARTn':function(_0x31eb7e,_0x239dbe){return _0x31eb7e<_0x239dbe;},'RsPvW':function(_0x39fc50,_0x139776){return _0x39fc50>=_0x139776;},'VoUWD':_0x2f85cb(0x156),'eSXPa':function(_0x8e0096,_0x463b5a){return _0x8e0096+_0x463b5a;}},_0x35db5e=new Map();if(_0x3df745[_0x2f85cb(0x137)]===0x0)return _0x35db5e;const _0x21d25f=[],_0x4ea457=async _0x8ba1c9=>{const _0x156f04=_0x2f85cb,_0x3e0826=await readdir(_0x8ba1c9,{'withFileTypes':!![]});for(const _0xf6bc03 of _0x3e0826){const _0x319c20=join(_0x8ba1c9,_0xf6bc03['name']);if(_0xf6bc03[_0x156f04(0x142)]())await _0x1bd793[_0x156f04(0x13d)](_0x4ea457,_0x319c20);else _0xf6bc03['name'][_0x156f04(0x158)](_0x1bd793['STPpw'])&&_0x21d25f['push'](_0x319c20);}};await _0x1bd793[_0x2f85cb(0x135)](_0x4ea457,_0x418900);if(_0x1bd793['tRLti'](_0x21d25f[_0x2f85cb(0x137)],0x0))return _0x35db5e;const _0x4f6f6d=[];for(const _0x186934 of _0x21d25f){const _0x3a05c3=await readFile(_0x186934,_0x2f85cb(0x13c)),_0x13e5cf=_0x3a05c3[_0x2f85cb(0x15a)]('\x0a')['filter'](_0x229407=>_0x229407['trim']());for(const _0x490eae of _0x13e5cf){try{_0x4f6f6d['push'](JSON['parse'](_0x490eae));}catch{}}}if(_0x4f6f6d['length']===0x0)return _0x35db5e;const _0x2ac8fb=_0x4f6f6d[_0x2f85cb(0x15b)](_0x4de8f8=>_0x4de8f8['type']==='context-options');if(!_0x2ac8fb)return _0x35db5e;const _0x1f89e3=_0x2ac8fb[_0x2f85cb(0x15f)]-_0x2ac8fb[_0x2f85cb(0x157)],_0x14d3b9=new Map();for(const _0x5f1bcf of _0x4f6f6d){switch(_0x5f1bcf[_0x2f85cb(0x144)]){case _0x2f85cb(0x133):{const _0x4fe089=_0x5f1bcf;_0x14d3b9[_0x2f85cb(0x138)](_0x4fe089[_0x2f85cb(0x15e)],{'callId':_0x4fe089[_0x2f85cb(0x15e)],'startTime':_0x4fe089[_0x2f85cb(0x150)],'endTime':0x0,'method':_0x4fe089['method'],'apiName':_0x4fe089['apiName'],'params':_0x4fe089['params'],'pageId':_0x4fe089['pageId'],'beforeSnapshot':_0x4fe089['beforeSnapshot']});break;}case _0x2f85cb(0x14d):{const _0x59b68f=_0x5f1bcf,_0x38fcc3=_0x14d3b9[_0x2f85cb(0x161)](_0x59b68f[_0x2f85cb(0x15e)]);if(_0x38fcc3){if(_0x59b68f['inputSnapshot'])_0x38fcc3[_0x2f85cb(0x152)]=_0x59b68f[_0x2f85cb(0x152)];if(_0x59b68f[_0x2f85cb(0x14f)])_0x38fcc3['point']=_0x59b68f['point'];}break;}case'after':{const _0x304ea9=_0x5f1bcf,_0x456ff6=_0x14d3b9['get'](_0x304ea9[_0x2f85cb(0x15e)]);if(_0x456ff6){_0x456ff6['endTime']=_0x304ea9[_0x2f85cb(0x15c)];if(_0x304ea9[_0x2f85cb(0x151)])_0x456ff6['afterSnapshot']=_0x304ea9['afterSnapshot'];}break;}}}const _0x3d3210=Array[_0x2f85cb(0x15d)](_0x14d3b9['values']())['filter'](_0x1f4da=>_0x1f4da[_0x2f85cb(0x15c)]>0x0&&(_0x1f4da[_0x2f85cb(0x151)]||_0x1f4da[_0x2f85cb(0x153)]))['sort']((_0x4615ad,_0x205884)=>_0x4615ad[_0x2f85cb(0x150)]-_0x205884['startTime']);if(_0x1bd793['hiVUH'](_0x3d3210[_0x2f85cb(0x137)],0x0))return _0x35db5e;const _0x3a8903=new Map();for(const _0x1f1bd9 of _0x4f6f6d){if(_0x1f1bd9['type']===_0x1bd793[_0x2f85cb(0x132)]){const _0x198b80=_0x1f1bd9['snapshot'];_0x198b80?.['snapshotName']&&_0x198b80?.['frameUrl']&&_0x3a8903['set'](_0x198b80['snapshotName'],_0x198b80['frameUrl']);}}const _0x2b4267=new Map();for(const _0x9bc3f1 of _0x3d3210){const _0x1fb7ec=_0x9bc3f1[_0x2f85cb(0x143)]?.['url'];_0x1bd793['mmPAb'](_0x9bc3f1['method'],'goto')&&typeof _0x1fb7ec===_0x1bd793[_0x2f85cb(0x14e)]&&_0x9bc3f1['pageId']&&_0x2b4267['set'](_0x9bc3f1['pageId'],_0x1fb7ec);}for(const _0x3918eb of _0x4f6f6d){const _0x1f361a=_0x3918eb,_0x5971e0=_0x1f361a['params'],_0x4a1632=_0x5971e0?.['url'];_0x1f361a['type']===_0x1bd793['hIIPv']&&_0x1bd793['hiVUH'](_0x1f361a[_0x2f85cb(0x14c)],_0x1bd793[_0x2f85cb(0x155)])&&typeof _0x4a1632==='string'&&_0x1bd793['hTpHG'](typeof _0x1f361a[_0x2f85cb(0x141)],_0x2f85cb(0x13b))&&_0x2b4267[_0x2f85cb(0x138)](_0x1f361a['pageId'],_0x4a1632);}for(const _0x433429 of _0x3df745){const _0x5bd1e3=new Date(_0x433429['capturedAt'])[_0x2f85cb(0x13e)](),_0x1a3eb7=_0x5bd1e3-_0x1f89e3;let _0x4ecfac=null,_0x419ed6=Infinity;for(const _0x286483 of _0x3d3210){const _0x2d3d44=Math[_0x2f85cb(0x146)](_0x286483['endTime']-_0x1a3eb7);_0x1bd793['yARTn'](_0x2d3d44,_0x419ed6)&&(_0x419ed6=_0x2d3d44,_0x4ecfac=_0x286483);}if(!_0x4ecfac)continue;const _0xcd296c=_0x4ecfac[_0x2f85cb(0x151)]||_0x4ecfac[_0x2f85cb(0x153)];if(!_0xcd296c)continue;const _0x1b2e70=_0x4ecfac['pageId']||_0x2f85cb(0x139);let _0x183bf7=_0x3a8903['get'](_0xcd296c)||_0x2b4267['get'](_0x1b2e70)||'';if(!_0x183bf7)for(let _0x5b29ee=_0x3d3210[_0x2f85cb(0x148)](_0x4ecfac);_0x1bd793[_0x2f85cb(0x145)](_0x5b29ee,0x0);_0x5b29ee--){const _0x23e0c4=_0x3d3210[_0x5b29ee][_0x2f85cb(0x143)]?.[_0x2f85cb(0x134)];if(_0x3d3210[_0x5b29ee][_0x2f85cb(0x14c)]===_0x1bd793[_0x2f85cb(0x14b)]&&typeof _0x23e0c4===_0x2f85cb(0x13b)){_0x183bf7=_0x23e0c4;break;}}let _0x5d877b,_0x442a19;const _0x4cb6a3=_0x3d3210[_0x2f85cb(0x148)](_0x4ecfac);if(_0x4cb6a3>=0x0&&_0x1bd793['yARTn'](_0x4cb6a3,_0x3d3210[_0x2f85cb(0x137)]-0x1)){const _0x337112=_0x3d3210[_0x1bd793['eSXPa'](_0x4cb6a3,0x1)];_0x337112['point']&&_0x337112['inputSnapshot']&&(_0x5d877b=_0x337112[_0x2f85cb(0x14f)],_0x442a19=_0x337112['inputSnapshot']);}_0x35db5e[_0x2f85cb(0x138)](_0x433429['stepId'],{'snapshotName':_0xcd296c,'inputSnapshotName':_0x442a19,'pageId':_0x1b2e70,'pageUrl':_0x183bf7,'callId':_0x4ecfac['callId'],'point':_0x5d877b});}return _0x35db5e;}
1
+ function _0x4ff1(_0x1ca49f,_0x42c289){_0x1ca49f=_0x1ca49f-0x8e;const _0x46497b=_0x4649();let _0x4ff169=_0x46497b[_0x1ca49f];return _0x4ff169;}(function(_0x4b89b3,_0xd4a399){const _0x3cd8a3=_0x4ff1,_0x24d418=_0x4b89b3();while(!![]){try{const _0x23beda=-parseInt(_0x3cd8a3(0xbc))/0x1+parseInt(_0x3cd8a3(0xb2))/0x2*(parseInt(_0x3cd8a3(0x93))/0x3)+parseInt(_0x3cd8a3(0xb5))/0x4+-parseInt(_0x3cd8a3(0xbf))/0x5*(-parseInt(_0x3cd8a3(0xa1))/0x6)+parseInt(_0x3cd8a3(0xc2))/0x7+parseInt(_0x3cd8a3(0x94))/0x8*(parseInt(_0x3cd8a3(0x9e))/0x9)+-parseInt(_0x3cd8a3(0x98))/0xa*(parseInt(_0x3cd8a3(0xac))/0xb);if(_0x23beda===_0xd4a399)break;else _0x24d418['push'](_0x24d418['shift']());}catch(_0x4fe8ec){_0x24d418['push'](_0x24d418['shift']());}}}(_0x4649,0xa6301));import{readdir,readFile}from'fs/promises';import{join}from'path';function _0x4649(){const _0x4cfabd=['method','point','length','inputSnapshot','push','endTime','cQdTH','pageId','JnBdY','517CohXSM','abs','trim','input','FRpmF','snapshot','142938XnEGtZ','get','cQtmT','318776GntmQx','frameUrl','event','before','split','stepId','set','333641tBjnZQ','name','sort','446045ZMsGyw','filter','frame-snapshot','2614283wqjcEC','indexOf','beforeSnapshot','url','NOFeo','apiName','string','context-options','callId','capturedAt','page@0','27hFAHMI','184uIfIHs','wallTime','params','from','405900puCuzR','goto','after','startTime','gROnw','Ppcwi','504954HQTAZM','afterSnapshot','type','36sewOUE','jEFni'];_0x4649=function(){return _0x4cfabd;};return _0x4649();}export async function mapStepsToTraceSnapshots(_0x54437c,_0xd85b35){const _0x57360b=_0x4ff1,_0x5131cd={'cVtez':function(_0x22e3ee,_0x5665e6,_0x3fa513){return _0x22e3ee(_0x5665e6,_0x3fa513);},'EvfcJ':'.trace','peSSr':function(_0x260811,_0x44203e){return _0x260811===_0x44203e;},'VaMFX':'utf-8','jaXyL':function(_0x12e216,_0x57758f){return _0x12e216-_0x57758f;},'tPPxg':_0x57360b(0xb8),'NOFeo':_0x57360b(0xaf),'rjOvm':_0x57360b(0x9a),'Ppcwi':_0x57360b(0xc1),'FRpmF':function(_0x403d4f,_0x1f4038){return _0x403d4f===_0x1f4038;},'JnBdY':function(_0x350b8c,_0x30ed86){return _0x350b8c===_0x30ed86;},'AcZlX':_0x57360b(0xb7),'oecsm':function(_0x4bbaa6,_0x5e747a){return _0x4bbaa6===_0x5e747a;},'cQtmT':function(_0x47a46d,_0x38792d){return _0x47a46d<_0x38792d;},'gROnw':function(_0x21d54d,_0x53a38c){return _0x21d54d>=_0x53a38c;},'cQdTH':function(_0x4c1e50,_0x241e9e){return _0x4c1e50===_0x241e9e;},'Vfobe':'string','jEFni':function(_0x16e679,_0xc7d921){return _0x16e679<_0xc7d921;},'DxIwB':function(_0xb00361,_0x27041f){return _0xb00361+_0x27041f;}},_0x421c52=new Map();if(_0xd85b35[_0x57360b(0xa5)]===0x0)return _0x421c52;const _0x1119ee=[],_0x53ef49=async _0x396918=>{const _0x4a8c72=_0x57360b,_0x2298dd=await _0x5131cd['cVtez'](readdir,_0x396918,{'withFileTypes':!![]});for(const _0x4edd82 of _0x2298dd){const _0x3e77ae=join(_0x396918,_0x4edd82[_0x4a8c72(0xbd)]);if(_0x4edd82['isDirectory']())await _0x53ef49(_0x3e77ae);else _0x4edd82[_0x4a8c72(0xbd)]['endsWith'](_0x5131cd['EvfcJ'])&&_0x1119ee[_0x4a8c72(0xa7)](_0x3e77ae);}};await _0x53ef49(_0x54437c);if(_0x5131cd['peSSr'](_0x1119ee['length'],0x0))return _0x421c52;const _0x2f41f6=[];for(const _0x2f4957 of _0x1119ee){const _0x47a571=await readFile(_0x2f4957,_0x5131cd['VaMFX']),_0x5e5d7d=_0x47a571[_0x57360b(0xb9)]('\x0a')[_0x57360b(0xc0)](_0x21692e=>_0x21692e[_0x57360b(0xae)]());for(const _0xb6a5e0 of _0x5e5d7d){try{_0x2f41f6[_0x57360b(0xa7)](JSON['parse'](_0xb6a5e0));}catch{}}}if(_0x2f41f6['length']===0x0)return _0x421c52;const _0x5d2276=_0x2f41f6['find'](_0x10773c=>_0x10773c['type']===_0x57360b(0x8f));if(!_0x5d2276)return _0x421c52;const _0x5f00c9=_0x5131cd['jaXyL'](_0x5d2276[_0x57360b(0x95)],_0x5d2276['monotonicTime']),_0x13c50d=new Map();for(const _0x423ca2 of _0x2f41f6){switch(_0x423ca2['type']){case _0x5131cd['tPPxg']:{const _0x3548c8=_0x423ca2;_0x13c50d[_0x57360b(0xbb)](_0x3548c8[_0x57360b(0x90)],{'callId':_0x3548c8['callId'],'startTime':_0x3548c8[_0x57360b(0x9b)],'endTime':0x0,'method':_0x3548c8['method'],'apiName':_0x3548c8[_0x57360b(0xc7)],'params':_0x3548c8[_0x57360b(0x96)],'pageId':_0x3548c8['pageId'],'beforeSnapshot':_0x3548c8[_0x57360b(0xc4)]});break;}case _0x5131cd[_0x57360b(0xc6)]:{const _0x9331cc=_0x423ca2,_0x245024=_0x13c50d[_0x57360b(0xb3)](_0x9331cc['callId']);if(_0x245024){if(_0x9331cc[_0x57360b(0xa6)])_0x245024['inputSnapshot']=_0x9331cc[_0x57360b(0xa6)];if(_0x9331cc[_0x57360b(0xa4)])_0x245024['point']=_0x9331cc['point'];}break;}case _0x5131cd['rjOvm']:{const _0x22c81b=_0x423ca2,_0x39d58f=_0x13c50d['get'](_0x22c81b['callId']);if(_0x39d58f){_0x39d58f[_0x57360b(0xa8)]=_0x22c81b['endTime'];if(_0x22c81b['afterSnapshot'])_0x39d58f[_0x57360b(0x9f)]=_0x22c81b[_0x57360b(0x9f)];}break;}}}const _0x52395d=Array[_0x57360b(0x97)](_0x13c50d['values']())['filter'](_0x3865f0=>_0x3865f0['endTime']>0x0&&(_0x3865f0['afterSnapshot']||_0x3865f0[_0x57360b(0xc4)]))[_0x57360b(0xbe)]((_0x59b427,_0x3a1015)=>_0x59b427['startTime']-_0x3a1015['startTime']);if(_0x5131cd['peSSr'](_0x52395d[_0x57360b(0xa5)],0x0))return _0x421c52;const _0x444ba7=new Map();for(const _0x227f27 of _0x2f41f6){if(_0x227f27[_0x57360b(0xa0)]===_0x5131cd[_0x57360b(0x9d)]){const _0x3b4930=_0x227f27[_0x57360b(0xb1)];_0x3b4930?.['snapshotName']&&_0x3b4930?.['frameUrl']&&_0x444ba7[_0x57360b(0xbb)](_0x3b4930['snapshotName'],_0x3b4930[_0x57360b(0xb6)]);}}const _0x129165=new Map();for(const _0x2f8340 of _0x52395d){const _0x5395d0=_0x2f8340['params']?.['url'];_0x2f8340[_0x57360b(0xa3)]==='goto'&&_0x5131cd[_0x57360b(0xb0)](typeof _0x5395d0,_0x57360b(0x8e))&&_0x2f8340['pageId']&&_0x129165[_0x57360b(0xbb)](_0x2f8340['pageId'],_0x5395d0);}for(const _0xff6b4b of _0x2f41f6){const _0x353608=_0xff6b4b,_0x1a33a=_0x353608[_0x57360b(0x96)],_0x3b8278=_0x1a33a?.[_0x57360b(0xc5)];_0x5131cd[_0x57360b(0xab)](_0x353608['type'],_0x5131cd['AcZlX'])&&_0x5131cd['FRpmF'](_0x353608[_0x57360b(0xa3)],'navigated')&&typeof _0x3b8278===_0x57360b(0x8e)&&_0x5131cd['oecsm'](typeof _0x353608['pageId'],_0x57360b(0x8e))&&_0x129165[_0x57360b(0xbb)](_0x353608[_0x57360b(0xaa)],_0x3b8278);}for(const _0x913b2 of _0xd85b35){const _0x28b23e=new Date(_0x913b2[_0x57360b(0x91)])['getTime'](),_0xed427d=_0x5131cd['jaXyL'](_0x28b23e,_0x5f00c9);let _0x193150=null,_0x30723b=Infinity;for(const _0x234293 of _0x52395d){const _0x54a021=Math[_0x57360b(0xad)](_0x5131cd['jaXyL'](_0x234293['endTime'],_0xed427d));_0x5131cd[_0x57360b(0xb4)](_0x54a021,_0x30723b)&&(_0x30723b=_0x54a021,_0x193150=_0x234293);}if(!_0x193150)continue;const _0x3b3431=_0x193150['afterSnapshot']||_0x193150['beforeSnapshot'];if(!_0x3b3431)continue;const _0x2face5=_0x193150['pageId']||_0x57360b(0x92);let _0x4676bc=_0x444ba7['get'](_0x3b3431)||_0x129165[_0x57360b(0xb3)](_0x2face5)||'';if(!_0x4676bc)for(let _0x365df8=_0x52395d[_0x57360b(0xc3)](_0x193150);_0x5131cd['gROnw'](_0x365df8,0x0);_0x365df8--){const _0x128400=_0x52395d[_0x365df8][_0x57360b(0x96)]?.[_0x57360b(0xc5)];if(_0x5131cd[_0x57360b(0xa9)](_0x52395d[_0x365df8][_0x57360b(0xa3)],_0x57360b(0x99))&&typeof _0x128400===_0x5131cd['Vfobe']){_0x4676bc=_0x128400;break;}}let _0x32ba7e,_0x96d8b9;const _0x43d0a3=_0x52395d['indexOf'](_0x193150);if(_0x5131cd[_0x57360b(0x9c)](_0x43d0a3,0x0)&&_0x5131cd[_0x57360b(0xa2)](_0x43d0a3,_0x52395d[_0x57360b(0xa5)]-0x1)){const _0x15c14f=_0x52395d[_0x5131cd['DxIwB'](_0x43d0a3,0x1)];_0x15c14f['point']&&_0x15c14f[_0x57360b(0xa6)]&&(_0x32ba7e=_0x15c14f[_0x57360b(0xa4)],_0x96d8b9=_0x15c14f['inputSnapshot']);}_0x421c52['set'](_0x913b2[_0x57360b(0xba)],{'snapshotName':_0x3b3431,'inputSnapshotName':_0x96d8b9,'pageId':_0x2face5,'pageUrl':_0x4676bc,'callId':_0x193150[_0x57360b(0x90)],'point':_0x32ba7e});}return _0x421c52;}
@@ -1 +1 @@
1
- function _0x3427(_0x3c8ac3,_0x405acc){_0x3c8ac3=_0x3c8ac3-0x15f;const _0x5e63c5=_0x5e63();let _0x34278a=_0x5e63c5[_0x3c8ac3];return _0x34278a;}function _0x5e63(){const _0x1b7ea1=['8295SIHFNs','GET','8489490mDAQfk','statusText','3171150BnZQMB','/api/v1/mcp/me','1ZiVUNW','186rhTPhN','2000oTHOiY','plcDu','3904146snFNgd','302211bxEoZU','Bearer\x20','1643150KNeDno','5909216tQreDt'];_0x5e63=function(){return _0x1b7ea1;};return _0x5e63();}(function(_0x250da2,_0x40a3c0){const _0x29fb66=_0x3427,_0x341f9c=_0x250da2();while(!![]){try{const _0x203409=parseInt(_0x29fb66(0x169))/0x1*(parseInt(_0x29fb66(0x161))/0x2)+parseInt(_0x29fb66(0x163))/0x3*(parseInt(_0x29fb66(0x16b))/0x4)+-parseInt(_0x29fb66(0x165))/0x5+parseInt(_0x29fb66(0x16a))/0x6*(parseInt(_0x29fb66(0x15f))/0x7)+-parseInt(_0x29fb66(0x162))/0x8+-parseInt(_0x29fb66(0x16d))/0x9+parseInt(_0x29fb66(0x167))/0xa;if(_0x203409===_0x40a3c0)break;else _0x341f9c['push'](_0x341f9c['shift']());}catch(_0xdcdb56){_0x341f9c['push'](_0x341f9c['shift']());}}}(_0x5e63,0xf1819));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x43ffc4){const _0x32da99=_0x3427,_0x5061f5={'plcDu':_0x32da99(0x164),'ZyRUy':function(_0x1b1373,_0x48c501){return _0x1b1373(_0x48c501);}},_0x2d4ef1=getApiBaseUrl();try{const _0x5e1bd2=await fetch(_0x2d4ef1+_0x32da99(0x168),{'method':_0x5061f5[_0x32da99(0x16c)],'headers':{'Authorization':_0x32da99(0x160)+_0x43ffc4}});if(!_0x5e1bd2['ok'])return{'success':![],'error':_0x5e1bd2['status']+'\x20'+_0x5e1bd2[_0x32da99(0x166)],'status':_0x5e1bd2['status']};const _0x2af013=await _0x5e1bd2['json']();return{'success':!![],'user':_0x2af013};}catch(_0x2c0724){return{'success':![],'error':_0x2c0724 instanceof Error?_0x2c0724['message']:_0x5061f5['ZyRUy'](String,_0x2c0724)};}}
1
+ (function(_0x1eecc6,_0x532878){const _0x3e367a=_0x445e,_0x13360a=_0x1eecc6();while(!![]){try{const _0x41ce1a=parseInt(_0x3e367a(0x18c))/0x1*(-parseInt(_0x3e367a(0x181))/0x2)+-parseInt(_0x3e367a(0x187))/0x3+-parseInt(_0x3e367a(0x190))/0x4*(-parseInt(_0x3e367a(0x184))/0x5)+-parseInt(_0x3e367a(0x18b))/0x6+parseInt(_0x3e367a(0x189))/0x7+-parseInt(_0x3e367a(0x183))/0x8*(parseInt(_0x3e367a(0x182))/0x9)+parseInt(_0x3e367a(0x185))/0xa;if(_0x41ce1a===_0x532878)break;else _0x13360a['push'](_0x13360a['shift']());}catch(_0x15131f){_0x13360a['push'](_0x13360a['shift']());}}}(_0x29e4,0xe0ea6));function _0x445e(_0xcae06e,_0x1b5eeb){_0xcae06e=_0xcae06e-0x181;const _0x29e41c=_0x29e4();let _0x445e8d=_0x29e41c[_0xcae06e];return _0x445e8d;}function _0x29e4(){const _0x3bd54d=['23814380LFwtom','PokqR','5420445wvNlUz','GET','3767295eIAukG','sBpAe','5282856fWwCUa','41521VbwYkO','status','json','message','1417484oMPbQJ','44lIqHRc','1525239XdQwOh','8FbniOn','25duacBp'];_0x29e4=function(){return _0x3bd54d;};return _0x29e4();}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x5289d0){const _0x43c7b8=_0x445e,_0x30c7c5={'pEisD':function(_0x11b20b){return _0x11b20b();},'dRVWd':_0x43c7b8(0x188),'sBpAe':function(_0x441aec,_0x47ed25){return _0x441aec instanceof _0x47ed25;},'PokqR':function(_0x3f6424,_0x5f2beb){return _0x3f6424(_0x5f2beb);}},_0xd1ad5e=_0x30c7c5['pEisD'](getApiBaseUrl);try{const _0x4f92b0=await fetch(_0xd1ad5e+'/api/v1/mcp/me',{'method':_0x30c7c5['dRVWd'],'headers':{'Authorization':'Bearer\x20'+_0x5289d0}});if(!_0x4f92b0['ok'])return{'success':![],'error':_0x4f92b0[_0x43c7b8(0x18d)]+'\x20'+_0x4f92b0['statusText'],'status':_0x4f92b0['status']};const _0x240b53=await _0x4f92b0[_0x43c7b8(0x18e)]();return{'success':!![],'user':_0x240b53};}catch(_0x31d19e){return{'success':![],'error':_0x30c7c5[_0x43c7b8(0x18a)](_0x31d19e,Error)?_0x31d19e[_0x43c7b8(0x18f)]:_0x30c7c5[_0x43c7b8(0x186)](String,_0x31d19e)};}}