@ranger-testing/ranger-cli 2.2.2 → 2.2.3

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 (68) hide show
  1. package/README.md +3 -1
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/profileMessages.js +1 -1
  52. package/build/commands/utils/profileSetupBanner.js +1 -1
  53. package/build/commands/utils/rangerConfig.js +1 -1
  54. package/build/commands/utils/rangerRoot.js +1 -1
  55. package/build/commands/utils/reportGenerator.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  64. package/build/commands/utils/userApi.js +1 -1
  65. package/build/commands/utils/version.js +1 -1
  66. package/build/commands/verifyFeature.js +1 -1
  67. package/build/commands/verifyInBrowser.js +1 -1
  68. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x39c6(_0x135e45,_0x41f56f){_0x135e45=_0x135e45-0x131;const _0x349c67=_0x349c();let _0x39c613=_0x349c67[_0x135e45];return _0x39c613;}(function(_0xe0c23,_0x449bb9){const _0x167aff=_0x39c6,_0x52adb5=_0xe0c23();while(!![]){try{const _0x34019c=parseInt(_0x167aff(0x131))/0x1+-parseInt(_0x167aff(0x133))/0x2+parseInt(_0x167aff(0x134))/0x3+parseInt(_0x167aff(0x13a))/0x4+parseInt(_0x167aff(0x139))/0x5*(-parseInt(_0x167aff(0x141))/0x6)+parseInt(_0x167aff(0x13d))/0x7*(parseInt(_0x167aff(0x13c))/0x8)+parseInt(_0x167aff(0x138))/0x9*(-parseInt(_0x167aff(0x135))/0xa);if(_0x34019c===_0x449bb9)break;else _0x52adb5['push'](_0x52adb5['shift']());}catch(_0x42cf01){_0x52adb5['push'](_0x52adb5['shift']());}}}(_0x349c,0xdba4e));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x120540=_0x39c6,_0xc5f227={'hfwur':function(_0x1a1d61,_0x5b3c17){return _0x1a1d61+_0x5b3c17;},'XiKZd':function(_0x1878ab,_0x4c6c0e){return _0x1878ab+_0x4c6c0e;},'OgtNq':function(_0x29fa26,_0xd84bba){return _0x29fa26+_0xd84bba;},'bimnL':'<div\x20class=\x22ranger-banner__message\x22>','TfZMg':_0x120540(0x13f)},_0x4673d1=_0xc5f227['hfwur'](_0xc5f227['XiKZd'](_0xc5f227['OgtNq'](_0x120540(0x137),'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>')+_0xc5f227['bimnL']+_0x120540(0x144)+_0x120540(0x13b),_0xc5f227[_0x120540(0x132)])+_0xc5f227['TfZMg'],_0x120540(0x13e)),_0x594f95=_0x120540(0x140);return _0x120540(0x136)+JSON[_0x120540(0x143)](_0x4673d1)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x120540(0x143)](_0x594f95)+_0x120540(0x142);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x349c(){const _0x36f61b=['8847zVcbRU','547975XuLQRO','2927912DEGhLu','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','8596456QqmODG','7kybYpM','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','</div>','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','54FYsUbC',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','stringify','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','924700GXtmxd','TfZMg','18304btfkKS','1009959ROmOYe','11930lmoUBk','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','<div\x20class=\x22ranger-banner__content\x22>'];_0x349c=function(){return _0x36f61b;};return _0x349c();}export async function addProfileSetupBanner(_0x9cf848){await _0x9cf848['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x1edbf8,_0xd38532){const _0x27fc76=_0x100d,_0x28d510=_0x1edbf8();while(!![]){try{const _0x58cef8=-parseInt(_0x27fc76(0x84))/0x1*(-parseInt(_0x27fc76(0x87))/0x2)+parseInt(_0x27fc76(0x8b))/0x3*(-parseInt(_0x27fc76(0x80))/0x4)+parseInt(_0x27fc76(0x93))/0x5+parseInt(_0x27fc76(0x82))/0x6*(parseInt(_0x27fc76(0x88))/0x7)+parseInt(_0x27fc76(0x89))/0x8*(parseInt(_0x27fc76(0x94))/0x9)+parseInt(_0x27fc76(0x86))/0xa+-parseInt(_0x27fc76(0x83))/0xb;if(_0x58cef8===_0xd38532)break;else _0x28d510['push'](_0x28d510['shift']());}catch(_0x54e908){_0x28d510['push'](_0x28d510['shift']());}}}(_0x540b,0x2b4aa));function _0x100d(_0x56b44b,_0x5ce423){_0x56b44b=_0x56b44b-0x80;const _0x540b4a=_0x540b();let _0x100d97=_0x540b4a[_0x56b44b];return _0x100d97;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x2c7a77=_0x100d,_0x5d448a={'yMxew':function(_0x1c78f2,_0x16d5b8){return _0x1c78f2+_0x16d5b8;},'BiyBH':function(_0x4918a3,_0x866907){return _0x4918a3+_0x866907;},'VJDNQ':_0x2c7a77(0x90),'HKOyA':_0x2c7a77(0x91),'LYSAk':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>'},_0x5c2c44=_0x5d448a[_0x2c7a77(0x8d)](_0x5d448a[_0x2c7a77(0x8d)](_0x5d448a['yMxew'](_0x5d448a[_0x2c7a77(0x92)](_0x5d448a[_0x2c7a77(0x8c)]+_0x2c7a77(0x8f),_0x5d448a['HKOyA']),_0x2c7a77(0x81)),_0x5d448a[_0x2c7a77(0x8a)])+'</div>',_0x2c7a77(0x8e))+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x1f7c9e=_0x2c7a77(0x96);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x5c2c44)+_0x2c7a77(0x85)+JSON[_0x2c7a77(0x95)](_0x1f7c9e)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x25e01f){await _0x25e01f['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}function _0x540b(){const _0x2d9f44=['<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','<div\x20class=\x22ranger-banner__content\x22>','<div\x20class=\x22ranger-banner__message\x22>','BiyBH','71235fQtMhE','44181acOzve','stringify','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','212216StoQPX','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','2082aJFFvH','911713EgtmsP','203XKWOfS',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20','796310gVMxlJ','62gClHBJ','2219OlkVLb','168FeRlzs','LYSAk','3WvPXxP','VJDNQ','yMxew','</div>'];_0x540b=function(){return _0x2d9f44;};return _0x540b();}
@@ -1 +1 @@
1
- (function(_0x4f87c9,_0x4c824a){const _0x1be645=_0x154a,_0x3c7e92=_0x4f87c9();while(!![]){try{const _0x1fa9b0=parseInt(_0x1be645(0x14b))/0x1*(-parseInt(_0x1be645(0x150))/0x2)+parseInt(_0x1be645(0x14f))/0x3+-parseInt(_0x1be645(0x148))/0x4+-parseInt(_0x1be645(0x13f))/0x5*(-parseInt(_0x1be645(0x14c))/0x6)+parseInt(_0x1be645(0x142))/0x7+-parseInt(_0x1be645(0x145))/0x8+parseInt(_0x1be645(0x144))/0x9*(parseInt(_0x1be645(0x149))/0xa);if(_0x1fa9b0===_0x4c824a)break;else _0x3c7e92['push'](_0x3c7e92['shift']());}catch(_0x5e40c4){_0x3c7e92['push'](_0x3c7e92['shift']());}}}(_0x1967,0xdae48));function _0x154a(_0x17b5e9,_0x13ac7c){_0x17b5e9=_0x17b5e9-0x13d;const _0x196799=_0x1967();let _0x154a9c=_0x196799[_0x17b5e9];return _0x154a9c;}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x1967(){const _0x5f2e3f=['object','uMtJk','6967388OyjEwG','2540eBMahd','string','3LNEhIr','492Athrwm','model','parse','1984695qJnUab','175634pJNFnl','mjXkF','utf-8','46295rnHCar','message','warn','1291255tjhkKB','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','61281EaumfM','3462976MrFMgW'];_0x1967=function(){return _0x5f2e3f;};return _0x1967();}export function getRangerConfigPath(){const _0x387878=_0x154a,_0x2c179f={'mjXkF':function(_0x5a2575,_0x46aff1,_0x4f6894){return _0x5a2575(_0x46aff1,_0x4f6894);},'nMFWb':function(_0xe7f309){return _0xe7f309();}};return _0x2c179f[_0x387878(0x13d)](join,_0x2c179f['nMFWb'](getRangerDir),'config.json');}export async function loadRangerConfig(){const _0x12585f=_0x154a,_0x42fcbe={'MCmIf':function(_0x54717f){return _0x54717f();},'uMtJk':function(_0x12da66,_0x3a484d,_0x5cceea){return _0x12da66(_0x3a484d,_0x5cceea);},'SZWST':_0x12585f(0x14a)},_0x1922dd=_0x42fcbe['MCmIf'](getRangerConfigPath);if(!existsSync(_0x1922dd))return{};try{const _0x523b79=await _0x42fcbe[_0x12585f(0x147)](readFile,_0x1922dd,_0x12585f(0x13e)),_0x879ac3=JSON[_0x12585f(0x14e)](_0x523b79);if(!_0x879ac3||typeof _0x879ac3!==_0x12585f(0x146)||Array['isArray'](_0x879ac3))return{};const _0x59c53f={},_0x225208=_0x879ac3[_0x12585f(0x14d)];return typeof _0x225208===_0x42fcbe['SZWST']&&(_0x59c53f['model']=_0x225208),_0x59c53f;}catch(_0x50ceb2){const _0x16fd33=_0x50ceb2 instanceof Error?_0x50ceb2[_0x12585f(0x140)]:String(_0x50ceb2);return console[_0x12585f(0x141)](_0x12585f(0x143)+_0x1922dd+':\x20'+_0x16fd33),{};}}
1
+ function _0x55c8(){const _0x104ee5=['225111leFBLb','1899984uZSgzv','294260XogvZI','797DOcdVt','DfcWr','8955uCztsz','string','OPhkJ','3090kwkTaD','214TURiSF','isArray','lUFsK','15043CZxmdl','1041738OMvNvV','RjpLF','message','EbvCv','warn','5LBUZSt'];_0x55c8=function(){return _0x104ee5;};return _0x55c8();}(function(_0x179c4d,_0x37c2b2){const _0x28da02=_0x5a8c,_0x4b67c2=_0x179c4d();while(!![]){try{const _0x54b208=parseInt(_0x28da02(0x73))/0x1*(parseInt(_0x28da02(0x66))/0x2)+parseInt(_0x28da02(0x70))/0x3+-parseInt(_0x28da02(0x72))/0x4*(-parseInt(_0x28da02(0x6f))/0x5)+-parseInt(_0x28da02(0x6a))/0x6+-parseInt(_0x28da02(0x69))/0x7+-parseInt(_0x28da02(0x71))/0x8+parseInt(_0x28da02(0x75))/0x9*(parseInt(_0x28da02(0x65))/0xa);if(_0x54b208===_0x37c2b2)break;else _0x4b67c2['push'](_0x4b67c2['shift']());}catch(_0x30c9b6){_0x4b67c2['push'](_0x4b67c2['shift']());}}}(_0x55c8,0x1f442));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x5a8c(_0x193fbf,_0x458d8b){_0x193fbf=_0x193fbf-0x65;const _0x55c890=_0x55c8();let _0x5a8cba=_0x55c890[_0x193fbf];return _0x5a8cba;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x10db59=_0x5a8c,_0x796f3f={'srTYH':function(_0xf41724,_0x1774b0,_0xc5389d){return _0xf41724(_0x1774b0,_0xc5389d);},'EbvCv':function(_0x5940ec){return _0x5940ec();}};return _0x796f3f['srTYH'](join,_0x796f3f[_0x10db59(0x6d)](getRangerDir),'config.json');}export async function loadRangerConfig(){const _0x5a5e5c=_0x5a8c,_0xfde484={'lUFsK':function(_0x255497){return _0x255497();},'RjpLF':function(_0x2dd76d,_0x3c8471){return _0x2dd76d(_0x3c8471);},'OPhkJ':function(_0x2f9a96,_0x33b89e,_0x2d0acf){return _0x2f9a96(_0x33b89e,_0x2d0acf);},'DfcWr':'utf-8','rrNrH':'object','YGFAb':function(_0x46586a,_0xed73de){return _0x46586a===_0xed73de;},'veVgJ':_0x5a5e5c(0x76)},_0x5080e2=_0xfde484[_0x5a5e5c(0x68)](getRangerConfigPath);if(!_0xfde484[_0x5a5e5c(0x6b)](existsSync,_0x5080e2))return{};try{const _0x271620=await _0xfde484[_0x5a5e5c(0x77)](readFile,_0x5080e2,_0xfde484[_0x5a5e5c(0x74)]),_0x56dd90=JSON['parse'](_0x271620);if(!_0x56dd90||typeof _0x56dd90!==_0xfde484['rrNrH']||Array[_0x5a5e5c(0x67)](_0x56dd90))return{};const _0x2694aa={},_0x1920f4=_0x56dd90['model'];return _0xfde484['YGFAb'](typeof _0x1920f4,_0xfde484['veVgJ'])&&(_0x2694aa['model']=_0x1920f4),_0x2694aa;}catch(_0x2c8561){const _0x4a1684=_0x2c8561 instanceof Error?_0x2c8561[_0x5a5e5c(0x6c)]:String(_0x2c8561);return console[_0x5a5e5c(0x6e)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x5080e2+':\x20'+_0x4a1684),{};}}
@@ -1 +1 @@
1
- (function(_0x5e73c3,_0x437602){const _0x531897=_0x2d55,_0x104fcc=_0x5e73c3();while(!![]){try{const _0x4a3abb=parseInt(_0x531897(0x97))/0x1*(parseInt(_0x531897(0x95))/0x2)+-parseInt(_0x531897(0x8a))/0x3+parseInt(_0x531897(0x8e))/0x4*(-parseInt(_0x531897(0x8b))/0x5)+-parseInt(_0x531897(0x94))/0x6*(-parseInt(_0x531897(0x98))/0x7)+-parseInt(_0x531897(0x99))/0x8*(-parseInt(_0x531897(0x92))/0x9)+-parseInt(_0x531897(0x91))/0xa*(parseInt(_0x531897(0x9b))/0xb)+parseInt(_0x531897(0x96))/0xc;if(_0x4a3abb===_0x437602)break;else _0x104fcc['push'](_0x104fcc['shift']());}catch(_0x4acc02){_0x104fcc['push'](_0x104fcc['shift']());}}}(_0x5807,0xc31f9));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x5807(){const _0x14662f=['.ranger','pHgRz','1893490ahnurP','128349iqwbAC','HwAuK','6LVfvda','10bwUhYL','9851748NpZuRF','236563IPYHVo','10727738ZjqyzM','280fLECgN','OTrkg','77FZAqxC','.git','gnYlC','cwd','2898858MQqsJD','95GaFnSE','vCMdt','dlafX','198844AnSpbi'];_0x5807=function(){return _0x14662f;};return _0x5807();}import{homedir}from'os';export function getRangerRoot(){const _0x2ad9a3=_0x2d55,_0x4ece79={'Dctqo':function(_0x4e5f0c,_0x47ad50){return _0x4e5f0c(_0x47ad50);},'CUOCk':function(_0x47b4f7,_0x4cd74e){return _0x47b4f7(_0x4cd74e);},'WKJWI':function(_0x5c8049,_0x1bf03f){return _0x5c8049(_0x1bf03f);},'wZJrO':function(_0x34e3ae,_0x377d0c,_0xf1fcb2){return _0x34e3ae(_0x377d0c,_0xf1fcb2);},'OTrkg':_0x2ad9a3(0x8f),'HwAuK':function(_0x1eba70){return _0x1eba70();}};let _0x4abaf3=process[_0x2ad9a3(0x9e)]();const _0x40bde8=_0x4ece79['Dctqo'](parse,_0x4abaf3)['root'];while(_0x4abaf3!==_0x40bde8){if(_0x4ece79['CUOCk'](existsSync,join(_0x4abaf3,_0x2ad9a3(0x8f))))return _0x4abaf3;_0x4abaf3=_0x4ece79['WKJWI'](dirname,_0x4abaf3);}if(_0x4ece79['Dctqo'](existsSync,_0x4ece79['wZJrO'](join,_0x40bde8,_0x4ece79[_0x2ad9a3(0x9a)])))return _0x40bde8;const _0xdff1b4=_0x4ece79[_0x2ad9a3(0x93)](findGitRoot);if(_0xdff1b4)return _0xdff1b4;return process['cwd']();}export function getRangerDir(){const _0x536823=_0x2d55,_0x253b82={'dlafX':_0x536823(0x8f)};return join(getRangerRoot(),_0x253b82[_0x536823(0x8d)]);}function _0x2d55(_0x111d18,_0x54e45f){_0x111d18=_0x111d18-0x8a;const _0x58079b=_0x5807();let _0x2d5543=_0x58079b[_0x111d18];return _0x2d5543;}export function findGitRoot(){const _0x2279dc=_0x2d55,_0x366e4e={'vCMdt':function(_0xd3e025,_0x2e2157){return _0xd3e025(_0x2e2157);},'bVDgf':function(_0x17efae,_0x21b260,_0x4c69e4){return _0x17efae(_0x21b260,_0x4c69e4);},'gnYlC':'.git'};let _0x58ad91=process[_0x2279dc(0x9e)]();const _0x58a667=_0x366e4e['vCMdt'](parse,_0x58ad91)['root'];while(_0x58ad91!==_0x58a667){if(existsSync(_0x366e4e['bVDgf'](join,_0x58ad91,_0x2279dc(0x9c))))return _0x58ad91;_0x58ad91=_0x366e4e['vCMdt'](dirname,_0x58ad91);}if(_0x366e4e[_0x2279dc(0x8c)](existsSync,join(_0x58a667,_0x366e4e[_0x2279dc(0x9d)])))return _0x58a667;return null;}export function getRangerHomeDir(){const _0x209d3b=_0x2d55,_0x1517d={'pHgRz':function(_0x10477e){return _0x10477e();}};return join(_0x1517d[_0x209d3b(0x90)](homedir),'.ranger');}
1
+ (function(_0x11b69c,_0x509511){const _0x361f09=_0x3737,_0x3f8908=_0x11b69c();while(!![]){try{const _0x591ca9=parseInt(_0x361f09(0x86))/0x1*(-parseInt(_0x361f09(0x88))/0x2)+parseInt(_0x361f09(0x8c))/0x3+parseInt(_0x361f09(0x8e))/0x4*(-parseInt(_0x361f09(0x80))/0x5)+parseInt(_0x361f09(0x7b))/0x6+parseInt(_0x361f09(0x8b))/0x7+parseInt(_0x361f09(0x7c))/0x8*(-parseInt(_0x361f09(0x84))/0x9)+parseInt(_0x361f09(0x7e))/0xa;if(_0x591ca9===_0x509511)break;else _0x3f8908['push'](_0x3f8908['shift']());}catch(_0x597be0){_0x3f8908['push'](_0x3f8908['shift']());}}}(_0x3549,0xb6cc9));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x2608e9=_0x3737,_0x37a4a0={'EGhaR':function(_0x47dd98,_0x5c857b){return _0x47dd98(_0x5c857b);},'aXtzh':function(_0x3d8cf8,_0x259e6a){return _0x3d8cf8(_0x259e6a);},'wiyKl':function(_0xf079d3,_0x34f435,_0x147eed){return _0xf079d3(_0x34f435,_0x147eed);},'gOsOa':'.ranger'};let _0x50cca1=process['cwd']();const _0x322bf8=parse(_0x50cca1)[_0x2608e9(0x83)];while(_0x50cca1!==_0x322bf8){if(_0x37a4a0['EGhaR'](existsSync,join(_0x50cca1,_0x2608e9(0x82))))return _0x50cca1;_0x50cca1=_0x37a4a0['aXtzh'](dirname,_0x50cca1);}if(_0x37a4a0['EGhaR'](existsSync,_0x37a4a0['wiyKl'](join,_0x322bf8,_0x37a4a0[_0x2608e9(0x7f)])))return _0x322bf8;const _0x1a78a4=findGitRoot();if(_0x1a78a4)return _0x1a78a4;return process[_0x2608e9(0x7d)]();}function _0x3737(_0x3215b7,_0x99e22b){_0x3215b7=_0x3215b7-0x7b;const _0x354997=_0x3549();let _0x37370c=_0x354997[_0x3215b7];return _0x37370c;}export function getRangerDir(){const _0x2b48cf=_0x3737,_0x4b293b={'cHveD':function(_0x18bc48,_0x252952,_0x524473){return _0x18bc48(_0x252952,_0x524473);},'IZLvw':function(_0x198025){return _0x198025();},'jPHKd':'.ranger'};return _0x4b293b['cHveD'](join,_0x4b293b[_0x2b48cf(0x85)](getRangerRoot),_0x4b293b[_0x2b48cf(0x8a)]);}function _0x3549(){const _0x378f27=['14xZMJpe','oDvlR','60276hgrGaX','GaPyd','jPHKd','6373290vEpCIC','471813pGnDQY','XywNx','776052WmEaup','8970384UkMgja','8qyGdsJ','cwd','1770000TujFar','gOsOa','35aoRDmx','.git','.ranger','root','1899333qFlVSd','IZLvw'];_0x3549=function(){return _0x378f27;};return _0x3549();}export function findGitRoot(){const _0x4d1301=_0x3737,_0x27e140={'GaPyd':function(_0x542b29,_0x369294){return _0x542b29(_0x369294);},'XywNx':function(_0x4ffd14,_0x4725bf,_0x32f76a){return _0x4ffd14(_0x4725bf,_0x32f76a);},'oDvlR':_0x4d1301(0x81),'rWScL':function(_0x3cf32e,_0x2f5761){return _0x3cf32e(_0x2f5761);},'DTXTW':function(_0x24e0bb,_0x1575fe,_0x5408d0){return _0x24e0bb(_0x1575fe,_0x5408d0);}};let _0x38d396=process['cwd']();const _0x1ee07b=parse(_0x38d396)['root'];while(_0x38d396!==_0x1ee07b){if(_0x27e140[_0x4d1301(0x89)](existsSync,_0x27e140[_0x4d1301(0x8d)](join,_0x38d396,_0x27e140['oDvlR'])))return _0x38d396;_0x38d396=_0x27e140['GaPyd'](dirname,_0x38d396);}if(_0x27e140['rWScL'](existsSync,_0x27e140['DTXTW'](join,_0x1ee07b,_0x27e140[_0x4d1301(0x87)])))return _0x1ee07b;return null;}export function getRangerHomeDir(){const _0x276a52={'sorQE':'.ranger'};return join(homedir(),_0x276a52['sorQE']);}
@@ -1 +1 @@
1
- (function(_0x5cea8a,_0x3873d8){const _0x325f28=_0x946d,_0x5e7f2f=_0x5cea8a();while(!![]){try{const _0x2b9635=parseInt(_0x325f28(0x89))/0x1+-parseInt(_0x325f28(0x9e))/0x2*(parseInt(_0x325f28(0xa3))/0x3)+parseInt(_0x325f28(0x9f))/0x4*(parseInt(_0x325f28(0x93))/0x5)+parseInt(_0x325f28(0xa6))/0x6+-parseInt(_0x325f28(0x8a))/0x7+-parseInt(_0x325f28(0xa0))/0x8*(parseInt(_0x325f28(0x87))/0x9)+-parseInt(_0x325f28(0x9c))/0xa;if(_0x2b9635===_0x3873d8)break;else _0x5e7f2f['push'](_0x5e7f2f['shift']());}catch(_0x4249db){_0x5e7f2f['push'](_0x5e7f2f['shift']());}}}(_0x2e14,0x3a0d3));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x2e14(){const _0x671d95=['kYMsU','sGjZq','PASSED','toISOString','toUpperCase','1508730voGeKl','MAJOR','48226ZoJSjW','360352TbliXe','2152uagQBb','charAt','**Session:**\x20`','6hxVrZf','map','###\x20Summary','1523430RdgYFI','find','push','ISSUES\x20FOUND','length','RhKPM','7911JWzgcj','BLOCKER','261489RarhBa','786303ThPEeE','severity','sort','description','##\x20Task','##\x20Result','toFixed','join','aEeHR','15wZBVBK','**URL:**\x20','filename','replace'];_0x2e14=function(){return _0x671d95;};return _0x2e14();}export async function collectScreenshots(_0x4aee4c){const _0x52a166=_0x946d,_0x2f015e={'kYMsU':function(_0x239c53,_0x2784f2){return _0x239c53(_0x2784f2);}},_0x3d4d1b=[],_0x41f130=[];if(!existsSync(_0x4aee4c))return{'screenshots':_0x3d4d1b,'paths':_0x41f130};const _0x355af4=await _0x2f015e[_0x52a166(0x97)](readdir,_0x4aee4c),_0x1afad0=_0x355af4['filter'](_0x296396=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x296396))[_0x52a166(0x8c)]();for(const _0x299831 of _0x1afad0){const _0x39ac9a=join(_0x4aee4c,_0x299831);_0x3d4d1b['push']({'filename':_0x299831,'path':_0x39ac9a,'relativePath':'./'+_0x299831}),_0x41f130[_0x52a166(0xa8)](_0x39ac9a);}return{'screenshots':_0x3d4d1b,'paths':_0x41f130};}function getSeverityEmoji(_0x34bd87){const _0x5255c7=_0x946d,_0x29d2fd={'DkgvK':_0x5255c7(0x9d)};switch(_0x34bd87){case _0x5255c7(0x88):return'🔴';case _0x29d2fd['DkgvK']:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x1f6bde){const _0x459de6=_0x946d,_0xf95c8c=_0x1f6bde[_0x459de6(0x96)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x4890e0=_0xf95c8c[_0x459de6(0x96)](/^\d+-/,'');return _0x4890e0['split']('-')[_0x459de6(0xa4)](_0x55787a=>_0x55787a[_0x459de6(0xa1)](0x0)[_0x459de6(0x9b)]()+_0x55787a['slice'](0x1))[_0x459de6(0x91)]('\x20');}function _0x946d(_0x322297,_0x2c6141){_0x322297=_0x322297-0x85;const _0x2e148d=_0x2e14();let _0x946dbc=_0x2e148d[_0x322297];return _0x946dbc;}export function generateMarkdownReport(_0x53380a){const _0x286289=_0x946d,_0x73e185={'RhKPM':function(_0x12610d,_0xa611ec){return _0x12610d/_0xa611ec;},'aEeHR':_0x286289(0x99),'sGjZq':_0x286289(0xa9),'qtufg':function(_0x383996,_0x20d8e5){return _0x383996(_0x20d8e5);}},{sessionId:_0x4e9237,task:_0x2a6526,url:_0x421bee,success:_0x5b8edd,summary:_0x4ca044,issues:_0x44c026,screenshots:_0x3c60c8,durationMs:_0x2a64d8,traceViewerUrl:_0x330952}=_0x53380a,_0x58c6dc=new Date()[_0x286289(0x9a)](),_0x32a340=_0x73e185[_0x286289(0x86)](_0x2a64d8,0x3e8)[_0x286289(0x90)](0x1),_0x2097f2=[];_0x2097f2['push']('#\x20Verification\x20Report'),_0x2097f2['push'](''),_0x2097f2['push'](_0x286289(0xa2)+_0x4e9237+'`'),_0x2097f2[_0x286289(0xa8)]('**Generated:**\x20'+_0x58c6dc),_0x2097f2['push']('**Duration:**\x20'+_0x32a340+'s'),_0x2097f2['push'](''),_0x2097f2[_0x286289(0xa8)](_0x286289(0x8e)),_0x2097f2['push'](''),_0x2097f2[_0x286289(0xa8)](_0x286289(0x94)+_0x421bee),_0x2097f2['push'](''),_0x2097f2['push']('>\x20'+_0x2a6526),_0x2097f2[_0x286289(0xa8)](''),_0x2097f2[_0x286289(0xa8)](_0x286289(0x8f)),_0x2097f2[_0x286289(0xa8)]('');const _0x30542c=_0x5b8edd?'✅':'❌';_0x2097f2['push']('**Status:**\x20'+_0x30542c+'\x20'+(_0x5b8edd?_0x73e185[_0x286289(0x92)]:_0x73e185[_0x286289(0x98)])),_0x2097f2['push'](''),_0x2097f2['push'](_0x286289(0xa5)),_0x2097f2[_0x286289(0xa8)](''),_0x2097f2[_0x286289(0xa8)](_0x4ca044),_0x2097f2[_0x286289(0xa8)]('');if(_0x44c026&&_0x44c026['length']>0x0){_0x2097f2[_0x286289(0xa8)]('###\x20Issues\x20Found\x20('+_0x44c026[_0x286289(0x85)]+')'),_0x2097f2['push']('');for(const _0x29924d of _0x44c026){const _0x845e3e=_0x73e185['qtufg'](getSeverityEmoji,_0x29924d['severity']);_0x2097f2['push']('####\x20'+_0x845e3e+'\x20['+_0x29924d[_0x286289(0x8b)]+']\x20Issue'),_0x2097f2[_0x286289(0xa8)](''),_0x2097f2['push'](_0x29924d[_0x286289(0x8d)]),_0x2097f2[_0x286289(0xa8)]('');if(_0x29924d['screenshot']){const _0x10de72=_0x29924d['screenshot'],_0x4e2896=_0x3c60c8[_0x286289(0xa7)](_0x1f578d=>_0x1f578d[_0x286289(0x95)]===_0x10de72||_0x1f578d[_0x286289(0x95)]['includes'](_0x10de72));_0x4e2896&&(_0x2097f2['push']('**Screenshot:**'),_0x2097f2[_0x286289(0xa8)](''),_0x2097f2['push']('!['+_0x10de72+']('+_0x4e2896['relativePath']+')'),_0x2097f2[_0x286289(0xa8)](''));}}}if(_0x3c60c8[_0x286289(0x85)]>0x0){_0x2097f2['push']('##\x20Screenshots\x20('+_0x3c60c8['length']+')'),_0x2097f2['push']('');for(const _0x318592 of _0x3c60c8){const _0x59143b=formatScreenshotCaption(_0x318592[_0x286289(0x95)]);_0x2097f2['push']('###\x20'+_0x59143b),_0x2097f2[_0x286289(0xa8)](''),_0x2097f2[_0x286289(0xa8)]('!['+_0x318592[_0x286289(0x95)]+']('+_0x318592['relativePath']+')'),_0x2097f2[_0x286289(0xa8)]('');}}return _0x330952&&(_0x2097f2['push']('---'),_0x2097f2[_0x286289(0xa8)](''),_0x2097f2['push']('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x330952+')'),_0x2097f2['push']('')),_0x2097f2[_0x286289(0x91)]('\x0a');}
1
+ (function(_0x431328,_0x4b8ba7){const _0x4d09fb=_0x1e7d,_0xd9af=_0x431328();while(!![]){try{const _0x1a8965=parseInt(_0x4d09fb(0x13e))/0x1+parseInt(_0x4d09fb(0x12d))/0x2+parseInt(_0x4d09fb(0x143))/0x3+-parseInt(_0x4d09fb(0x142))/0x4+-parseInt(_0x4d09fb(0x135))/0x5+-parseInt(_0x4d09fb(0x129))/0x6*(-parseInt(_0x4d09fb(0x126))/0x7)+parseInt(_0x4d09fb(0x136))/0x8*(-parseInt(_0x4d09fb(0x139))/0x9);if(_0x1a8965===_0x4b8ba7)break;else _0xd9af['push'](_0xd9af['shift']());}catch(_0xadd2b8){_0xd9af['push'](_0xd9af['shift']());}}}(_0x159f,0x7e6ac));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0xdabeb){const _0x11475f=_0x1e7d,_0x23d52f={'tvmho':function(_0x3aa641,_0x11b583){return _0x3aa641(_0x11b583);}},_0x5e5651=[],_0x10532e=[];if(!_0x23d52f['tvmho'](existsSync,_0xdabeb))return{'screenshots':_0x5e5651,'paths':_0x10532e};const _0x5e38e7=await readdir(_0xdabeb),_0x255fbb=_0x5e38e7['filter'](_0x582581=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x11475f(0x13b)](_0x582581))['sort']();for(const _0x489221 of _0x255fbb){const _0x5a5121=join(_0xdabeb,_0x489221);_0x5e5651[_0x11475f(0x13d)]({'filename':_0x489221,'path':_0x5a5121,'relativePath':'./'+_0x489221}),_0x10532e['push'](_0x5a5121);}return{'screenshots':_0x5e5651,'paths':_0x10532e};}function getSeverityEmoji(_0x2ae485){const _0xe65930=_0x1e7d,_0x3a5e58={'UNMOn':'BLOCKER','dhgHX':_0xe65930(0x134)};switch(_0x2ae485){case _0x3a5e58['UNMOn']:return'🔴';case _0x3a5e58['dhgHX']:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x3f8e36){const _0x13af55=_0x1e7d,_0x41e164=_0x3f8e36[_0x13af55(0x13a)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x2e95fe=_0x41e164[_0x13af55(0x13a)](/^\d+-/,'');return _0x2e95fe['split']('-')['map'](_0xbd4b3d=>_0xbd4b3d['charAt'](0x0)[_0x13af55(0x127)]()+_0xbd4b3d['slice'](0x1))['join']('\x20');}function _0x159f(){const _0x56039a=['MAJOR','297115vXjXVR','16ecTljR','length','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','6677334RDKqPM','replace','test','filename','push','413931hNuBgW','description','###\x20','join','882068nXpZsX','1537209wGApXk','2219hsYTge','toUpperCase','includes','16080whDBoW','###\x20Summary','---','##\x20Task','1011404fofnPQ','screenshot','###\x20Issues\x20Found\x20(','severity','find','##\x20Screenshots\x20(','**Screenshot:**'];_0x159f=function(){return _0x56039a;};return _0x159f();}function _0x1e7d(_0x39ab9a,_0x172abc){_0x39ab9a=_0x39ab9a-0x126;const _0x159fb8=_0x159f();let _0x1e7d6d=_0x159fb8[_0x39ab9a];return _0x1e7d6d;}export function generateMarkdownReport(_0x5cc668){const _0x1abffe=_0x1e7d,_0x4ca57e={'KrbdU':'PASSED'},{sessionId:_0x5b76ce,task:_0x4884a4,url:_0x4353f1,success:_0x3d2d6a,summary:_0x3d5214,issues:_0xc0515d,screenshots:_0x31b228,durationMs:_0x5c80e0,traceViewerUrl:_0x2ae507}=_0x5cc668,_0x51cb17=new Date()['toISOString'](),_0x3bb430=(_0x5c80e0/0x3e8)['toFixed'](0x1),_0x15b411=[];_0x15b411['push']('#\x20Verification\x20Report'),_0x15b411[_0x1abffe(0x13d)](''),_0x15b411['push']('**Session:**\x20`'+_0x5b76ce+'`'),_0x15b411['push']('**Generated:**\x20'+_0x51cb17),_0x15b411[_0x1abffe(0x13d)]('**Duration:**\x20'+_0x3bb430+'s'),_0x15b411['push'](''),_0x15b411['push'](_0x1abffe(0x12c)),_0x15b411['push'](''),_0x15b411['push']('**URL:**\x20'+_0x4353f1),_0x15b411[_0x1abffe(0x13d)](''),_0x15b411['push']('>\x20'+_0x4884a4),_0x15b411['push'](''),_0x15b411[_0x1abffe(0x13d)]('##\x20Result'),_0x15b411[_0x1abffe(0x13d)]('');const _0x13eee3=_0x3d2d6a?'✅':'❌';_0x15b411[_0x1abffe(0x13d)]('**Status:**\x20'+_0x13eee3+'\x20'+(_0x3d2d6a?_0x4ca57e['KrbdU']:'ISSUES\x20FOUND')),_0x15b411[_0x1abffe(0x13d)](''),_0x15b411[_0x1abffe(0x13d)](_0x1abffe(0x12a)),_0x15b411[_0x1abffe(0x13d)](''),_0x15b411[_0x1abffe(0x13d)](_0x3d5214),_0x15b411[_0x1abffe(0x13d)]('');if(_0xc0515d&&_0xc0515d[_0x1abffe(0x137)]>0x0){_0x15b411[_0x1abffe(0x13d)](_0x1abffe(0x12f)+_0xc0515d['length']+')'),_0x15b411[_0x1abffe(0x13d)]('');for(const _0x565bf6 of _0xc0515d){const _0x11f331=getSeverityEmoji(_0x565bf6[_0x1abffe(0x130)]);_0x15b411[_0x1abffe(0x13d)]('####\x20'+_0x11f331+'\x20['+_0x565bf6[_0x1abffe(0x130)]+']\x20Issue'),_0x15b411[_0x1abffe(0x13d)](''),_0x15b411['push'](_0x565bf6[_0x1abffe(0x13f)]),_0x15b411['push']('');if(_0x565bf6[_0x1abffe(0x12e)]){const _0x509bc5=_0x565bf6[_0x1abffe(0x12e)],_0x4647dd=_0x31b228[_0x1abffe(0x131)](_0x1fc3c4=>_0x1fc3c4[_0x1abffe(0x13c)]===_0x509bc5||_0x1fc3c4[_0x1abffe(0x13c)][_0x1abffe(0x128)](_0x509bc5));_0x4647dd&&(_0x15b411['push'](_0x1abffe(0x133)),_0x15b411[_0x1abffe(0x13d)](''),_0x15b411[_0x1abffe(0x13d)]('!['+_0x509bc5+']('+_0x4647dd['relativePath']+')'),_0x15b411['push'](''));}}}if(_0x31b228['length']>0x0){_0x15b411['push'](_0x1abffe(0x132)+_0x31b228[_0x1abffe(0x137)]+')'),_0x15b411['push']('');for(const _0xf3d74 of _0x31b228){const _0x4aa354=formatScreenshotCaption(_0xf3d74['filename']);_0x15b411[_0x1abffe(0x13d)](_0x1abffe(0x140)+_0x4aa354),_0x15b411[_0x1abffe(0x13d)](''),_0x15b411[_0x1abffe(0x13d)]('!['+_0xf3d74[_0x1abffe(0x13c)]+']('+_0xf3d74['relativePath']+')'),_0x15b411['push']('');}}return _0x2ae507&&(_0x15b411['push'](_0x1abffe(0x12b)),_0x15b411['push'](''),_0x15b411['push'](_0x1abffe(0x138)+_0x2ae507+')'),_0x15b411['push']('')),_0x15b411[_0x1abffe(0x141)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x317410,_0x4a2426){const _0x299bb9=_0x208f,_0x3a2325=_0x317410();while(!![]){try{const _0x8b1d08=parseInt(_0x299bb9(0x18c))/0x1+-parseInt(_0x299bb9(0x197))/0x2+parseInt(_0x299bb9(0x18f))/0x3+parseInt(_0x299bb9(0x18b))/0x4+parseInt(_0x299bb9(0x195))/0x5+-parseInt(_0x299bb9(0x191))/0x6*(-parseInt(_0x299bb9(0x190))/0x7)+-parseInt(_0x299bb9(0x18e))/0x8;if(_0x8b1d08===_0x4a2426)break;else _0x3a2325['push'](_0x3a2325['shift']());}catch(_0x2e810d){_0x3a2325['push'](_0x3a2325['shift']());}}}(_0x34f5,0xa5827));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x208f(_0xe51fe5,_0x2d3274){_0xe51fe5=_0xe51fe5-0x18b;const _0x34f59a=_0x34f5();let _0x208f0c=_0x34f59a[_0xe51fe5];return _0x208f0c;}export async function withRetry(_0x5c9d62,_0x3b14de){const _0x344012=_0x208f,_0xd0712e={'mJCFP':function(_0xe56a97,_0x36c98f){return _0xe56a97<=_0x36c98f;},'cQxqK':function(_0xae6ad6){return _0xae6ad6();},'DedvL':function(_0x2a9900,_0x450705){return _0x2a9900 instanceof _0x450705;},'QcMTI':function(_0x52437d,_0x21b045){return _0x52437d(_0x21b045);},'zzfcX':function(_0x3ad87b,_0x162a9d){return _0x3ad87b*_0x162a9d;}},_0x1f3821=_0x3b14de?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x2796f7=_0x3b14de?.[_0x344012(0x194)]??DEFAULT_BASE_DELAY_MS;let _0x262781;for(let _0x5e0d4a=0x0;_0xd0712e['mJCFP'](_0x5e0d4a,_0x1f3821);_0x5e0d4a++){try{return await _0xd0712e[_0x344012(0x18d)](_0x5c9d62);}catch(_0x5b709f){_0x262781=_0xd0712e[_0x344012(0x198)](_0x5b709f,Error)?_0x5b709f:new Error(_0xd0712e['QcMTI'](String,_0x5b709f));if(_0x5e0d4a<_0x1f3821){const _0x467b72=_0xd0712e['zzfcX'](_0x2796f7,Math['pow'](0x2,_0x5e0d4a));_0x3b14de?.['label']&&console[_0x344012(0x196)](_0x3b14de['label']+'\x20failed\x20(attempt\x20'+(_0x5e0d4a+0x1)+'/'+(_0x1f3821+0x1)+_0x344012(0x193)+_0x467b72+_0x344012(0x192)),await new Promise(_0x5a24a3=>setTimeout(_0x5a24a3,_0x467b72));}}}throw _0x262781;}function _0x34f5(){const _0x2b8e06=['910057tqxQnn','cQxqK','29045472nyNBoI','3901227XtiiPO','5047nXvcUv','1668KYpgJk','ms...','),\x20retrying\x20in\x20','baseDelayMs','6536875VuVQDd','error','1404696tDUgHo','DedvL','5170720bowbmb'];_0x34f5=function(){return _0x2b8e06;};return _0x34f5();}
1
+ (function(_0x1b9512,_0x5e913a){const _0x32ff56=_0x43ed,_0x58bd18=_0x1b9512();while(!![]){try{const _0x159dd6=-parseInt(_0x32ff56(0x16c))/0x1+-parseInt(_0x32ff56(0x175))/0x2+-parseInt(_0x32ff56(0x177))/0x3+parseInt(_0x32ff56(0x16f))/0x4*(-parseInt(_0x32ff56(0x16d))/0x5)+-parseInt(_0x32ff56(0x17b))/0x6*(-parseInt(_0x32ff56(0x172))/0x7)+-parseInt(_0x32ff56(0x171))/0x8*(-parseInt(_0x32ff56(0x173))/0x9)+parseInt(_0x32ff56(0x174))/0xa;if(_0x159dd6===_0x5e913a)break;else _0x58bd18['push'](_0x58bd18['shift']());}catch(_0x14413e){_0x58bd18['push'](_0x58bd18['shift']());}}}(_0x4b7b,0x4e8c8));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x566776,_0x12802a){const _0x64ff47=_0x43ed,_0x32fa2b={'cjfAS':function(_0x3f7fa4,_0x442f4c){return _0x3f7fa4<=_0x442f4c;},'VPEoF':function(_0x532005){return _0x532005();},'UUrTu':function(_0x2567b9,_0x411750){return _0x2567b9 instanceof _0x411750;},'YwpfM':function(_0x56edbb,_0x3891a7){return _0x56edbb+_0x3891a7;}},_0x1e8e0a=_0x12802a?.[_0x64ff47(0x176)]??DEFAULT_MAX_RETRIES,_0x107df9=_0x12802a?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x73dd22;for(let _0x123e62=0x0;_0x32fa2b[_0x64ff47(0x179)](_0x123e62,_0x1e8e0a);_0x123e62++){try{return await _0x32fa2b['VPEoF'](_0x566776);}catch(_0x559346){_0x73dd22=_0x32fa2b[_0x64ff47(0x170)](_0x559346,Error)?_0x559346:new Error(String(_0x559346));if(_0x123e62<_0x1e8e0a){const _0x33342d=_0x107df9*Math['pow'](0x2,_0x123e62);_0x12802a?.['label']&&console[_0x64ff47(0x178)](_0x12802a[_0x64ff47(0x17c)]+_0x64ff47(0x17a)+(_0x123e62+0x1)+'/'+_0x32fa2b['YwpfM'](_0x1e8e0a,0x1)+_0x64ff47(0x16e)+_0x33342d+'ms...'),await new Promise(_0x3f11b7=>setTimeout(_0x3f11b7,_0x33342d));}}}throw _0x73dd22;}function _0x43ed(_0x413326,_0x71172){_0x413326=_0x413326-0x16c;const _0x4b7bca=_0x4b7b();let _0x43ed40=_0x4b7bca[_0x413326];return _0x43ed40;}function _0x4b7b(){const _0x35d282=['label','499153MRbnEQ','370zhLxsV','),\x20retrying\x20in\x20','31244TZJHGS','UUrTu','7376XiMdSi','28WomWvs','2763fEvZro','17946540kGrLwn','762162QtgFMp','maxRetries','1434804ttyjhc','error','cjfAS','\x20failed\x20(attempt\x20','270816LGpEYJ'];_0x4b7b=function(){return _0x35d282;};return _0x4b7b();}
@@ -1 +1 @@
1
- const _0x5b0641=_0x51db;(function(_0x24560c,_0x3e7691){const _0x5a565c=_0x51db,_0x14fe3e=_0x24560c();while(!![]){try{const _0x5b12b9=parseInt(_0x5a565c(0x19e))/0x1+parseInt(_0x5a565c(0x1a3))/0x2*(parseInt(_0x5a565c(0x1a9))/0x3)+-parseInt(_0x5a565c(0x19a))/0x4+-parseInt(_0x5a565c(0x194))/0x5*(-parseInt(_0x5a565c(0x1a2))/0x6)+-parseInt(_0x5a565c(0x1b3))/0x7*(-parseInt(_0x5a565c(0x1bc))/0x8)+-parseInt(_0x5a565c(0x1b5))/0x9+-parseInt(_0x5a565c(0x1a4))/0xa;if(_0x5b12b9===_0x3e7691)break;else _0x14fe3e['push'](_0x14fe3e['shift']());}catch(_0x316fa3){_0x14fe3e['push'](_0x14fe3e['shift']());}}}(_0x3730,0xb9919));import*as _0x5f1e73 from'fs';import*as _0x12860f from'path';import*as _0x582e1e from'os';import{execSync}from'child_process';const CACHE_FILE=_0x12860f[_0x5b0641(0x1a0)](_0x582e1e['homedir'](),_0x5b0641(0x1b9),_0x5b0641(0x1bd));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x556200=_0x5b0641,_0x28eb4a={'Vowjx':_0x556200(0x195)};try{if(_0x5f1e73[_0x556200(0x191)](CACHE_FILE)){const _0x2a02b1=JSON['parse'](_0x5f1e73['readFileSync'](CACHE_FILE,_0x28eb4a[_0x556200(0x1b6)]));return{'version':0x3,'sessions':_0x2a02b1['sessions']||{},'branches':_0x2a02b1['branches']||{},'lastEnabledSessionClearedAt':_0x2a02b1[_0x556200(0x1ab)]};}}catch{}return createEmptyCache();}function _0x51db(_0x13c20a,_0x4e47b2){_0x13c20a=_0x13c20a-0x18b;const _0x3730f2=_0x3730();let _0x51dbb2=_0x3730f2[_0x13c20a];return _0x51dbb2;}function saveCache(_0x581bf2){const _0x850b2d=_0x5b0641;try{const _0x35f25a=_0x12860f[_0x850b2d(0x1ac)](CACHE_FILE);!_0x5f1e73[_0x850b2d(0x191)](_0x35f25a)&&_0x5f1e73['mkdirSync'](_0x35f25a,{'recursive':!![]}),_0x5f1e73[_0x850b2d(0x1b8)](CACHE_FILE,JSON['stringify'](_0x581bf2,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3eb293=_0x5b0641,_0x7130e2={'cZmgZ':'pipe','BuBBq':'HEAD'};try{const _0x358a3d=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x3eb293(0x195),'stdio':['pipe',_0x7130e2['cZmgZ'],_0x3eb293(0x18f)]})['trim']();if(!_0x358a3d||_0x358a3d===_0x7130e2[_0x3eb293(0x199)])return null;return _0x358a3d;}catch{return null;}}export function enableBranch(_0x4a8cda){const _0x5012c8=_0x5b0641,_0x4eb44c={'mQHoB':function(_0x2cb8a1){return _0x2cb8a1();},'hoqlI':function(_0x1281d1,_0x5bd31c){return _0x1281d1(_0x5bd31c);}},_0x58e237=_0x4eb44c['mQHoB'](loadCache);_0x58e237[_0x5012c8(0x193)][_0x4a8cda]=!![],_0x4eb44c['hoqlI'](saveCache,_0x58e237);}export function disableBranch(_0x47068e){const _0x5ce7d9=_0x5b0641,_0x84c2c1={'MOgmF':function(_0x5e4e9c){return _0x5e4e9c();},'VLIiN':function(_0x4c8f39,_0xa769ce){return _0x4c8f39(_0xa769ce);}},_0x317f27=_0x84c2c1[_0x5ce7d9(0x1aa)](loadCache);delete _0x317f27[_0x5ce7d9(0x193)][_0x47068e],_0x84c2c1['VLIiN'](saveCache,_0x317f27);}export function isBranchEnabled(_0x22237a){const _0x34af52=loadCache();return _0x34af52['branches'][_0x22237a]===!![];}function getOrCreateSession(_0x375f7e,_0x3b17f6){const _0x2a79eb=_0x5b0641;return!_0x375f7e['sessions'][_0x3b17f6]&&(_0x375f7e[_0x2a79eb(0x1a6)][_0x3b17f6]={}),_0x375f7e[_0x2a79eb(0x1a6)][_0x3b17f6];}export function enableSession(_0x4a8872){const _0x21ccee=_0x5b0641,_0x34e88d={'ALlqN':function(_0x1d2630){return _0x1d2630();},'ErSXD':function(_0x4b29ba,_0x2bcbee,_0x44b2ca){return _0x4b29ba(_0x2bcbee,_0x44b2ca);},'WPcMm':function(_0x338be1){return _0x338be1();},'qREfm':function(_0x1bf000,_0x312beb){return _0x1bf000!==_0x312beb;},'qJnCB':_0x21ccee(0x198)},_0x3f5726=_0x34e88d[_0x21ccee(0x196)](loadCache),_0x2bc08f=_0x34e88d['ErSXD'](getOrCreateSession,_0x3f5726,_0x4a8872);_0x2bc08f[_0x21ccee(0x1b0)]=!![];const _0x59890e=_0x34e88d['WPcMm'](getCurrentBranch);_0x59890e&&_0x34e88d[_0x21ccee(0x18b)](_0x59890e,_0x34e88d[_0x21ccee(0x1a7)])&&_0x59890e!==_0x21ccee(0x1b4)&&(_0x3f5726[_0x21ccee(0x193)][_0x59890e]=!![],_0x2bc08f['currentBranch']=_0x59890e),saveCache(_0x3f5726);}export function isSessionEnabled(_0x4f5095){const _0x1edd0a=_0x5b0641,_0x5e60d3={'LSkcm':function(_0x1214f0){return _0x1214f0();},'YssSh':function(_0x8ba2ad,_0x1210bc){return _0x8ba2ad===_0x1210bc;},'WwEpG':function(_0x2de420,_0x4c5739){return _0x2de420===_0x4c5739;},'MHOCj':function(_0x136b72,_0x36c002){return _0x136b72===_0x36c002;}},_0x12369f=loadCache(),_0x1b086f=_0x5e60d3['LSkcm'](getCurrentBranch);if(!_0x1b086f||_0x5e60d3['YssSh'](_0x1b086f,'main')||_0x5e60d3['WwEpG'](_0x1b086f,_0x1edd0a(0x1b4)))return _0x5e60d3['MHOCj'](_0x12369f['sessions'][_0x4f5095]?.[_0x1edd0a(0x1b0)],!![]);const _0x4782b6=_0x12369f['branches'][_0x1b086f]===!![],_0x28bc42=_0x12369f['sessions'][_0x4f5095]?.['enabled']===!![];return _0x4782b6||_0x28bc42;}export function disableSession(_0x2a98c1){const _0x5c0ea7=_0x5b0641,_0x478de1={'jvBFw':function(_0x2281d2,_0x19a4a4){return _0x2281d2(_0x19a4a4);}},_0x34ac68=loadCache(),_0x374a2b=getOrCreateSession(_0x34ac68,_0x2a98c1);_0x374a2b[_0x5c0ea7(0x1b0)]=![],_0x478de1['jvBFw'](saveCache,_0x34ac68);}export function updateBranchTracking(_0x4097cf){const _0x2d4634=_0x5b0641,_0x8dcfa8={'eGtxa':function(_0x4260e5){return _0x4260e5();},'txgHz':function(_0x3fbd1a,_0x11b4ad){return _0x3fbd1a===_0x11b4ad;},'xpYrU':function(_0x527e6f,_0x483661){return _0x527e6f===_0x483661;},'HjmQP':'master','VIByx':function(_0x44c53d,_0x3231d1){return _0x44c53d!==_0x3231d1;}},_0x3100d0=loadCache(),_0x19366f=_0x3100d0['sessions'][_0x4097cf];if(!_0x19366f?.[_0x2d4634(0x1b0)])return;const _0x107a73=_0x8dcfa8['eGtxa'](getCurrentBranch);if(!_0x107a73||_0x8dcfa8[_0x2d4634(0x1b1)](_0x107a73,'main')||_0x8dcfa8[_0x2d4634(0x1af)](_0x107a73,_0x8dcfa8[_0x2d4634(0x19f)]))return;_0x8dcfa8['VIByx'](_0x19366f['currentBranch'],_0x107a73)&&(_0x3100d0[_0x2d4634(0x193)][_0x107a73]=!![],_0x19366f['currentBranch']=_0x107a73,saveCache(_0x3100d0));}export function initBranchTracking(_0x437437){const _0x266bb8=_0x5b0641,_0x47da0b={'rgHih':function(_0xd7a9bd){return _0xd7a9bd();},'qCErr':'main','bCUBj':function(_0x4f9de8,_0x221a11){return _0x4f9de8===_0x221a11;},'kxwzd':function(_0x34e09c,_0x56b719){return _0x34e09c===_0x56b719;}},_0x3a635c=loadCache(),_0x8df0b5=_0x47da0b['rgHih'](getCurrentBranch);if(!_0x8df0b5||_0x8df0b5===_0x47da0b[_0x266bb8(0x18d)]||_0x47da0b['bCUBj'](_0x8df0b5,'master'))return;if(_0x47da0b['kxwzd'](_0x3a635c['branches'][_0x8df0b5],!![])){const _0x4416e0=getOrCreateSession(_0x3a635c,_0x437437);_0x4416e0[_0x266bb8(0x1b0)]=!![],_0x4416e0['currentBranch']=_0x8df0b5,saveCache(_0x3a635c);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2e0536){const _0x3bf64b=_0x5b0641,_0x9d38d1=loadCache(),_0x36d8af=_0x9d38d1[_0x3bf64b(0x1a6)][_0x2e0536];_0x36d8af?.['enabled']&&(_0x9d38d1[_0x3bf64b(0x1ab)]=Date['now'](),saveCache(_0x9d38d1));}export function shouldAutoEnableAfterClear(_0x1a128e){const _0x684895=_0x5b0641,_0x209f4d={'VnMTo':_0x684895(0x1bb),'erVYI':function(_0x2c2ba0){return _0x2c2ba0();}};if(_0x1a128e!==_0x209f4d['VnMTo'])return![];const _0xaac8a8=_0x209f4d[_0x684895(0x1ba)](loadCache),_0x55ba6f=_0xaac8a8['lastEnabledSessionClearedAt'];if(!_0x55ba6f)return![];const _0x29f9ba=Date['now']()-_0x55ba6f;return _0x29f9ba<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x5088a9){const _0x2883ec=_0x5b0641,_0x512961={'hCSrq':function(_0x3db530,_0xce806a,_0x16f427){return _0x3db530(_0xce806a,_0x16f427);},'KMRuJ':function(_0x5b6f31,_0x27245e){return _0x5b6f31!==_0x27245e;},'vRXty':_0x2883ec(0x198),'qgMOK':function(_0x15214d,_0x494e9e){return _0x15214d!==_0x494e9e;},'SEgfi':_0x2883ec(0x1b4),'PCCmo':function(_0x2ccdfb,_0x2898a8){return _0x2ccdfb(_0x2898a8);}},_0x1449ee=loadCache(),_0x2f2cd0=_0x512961[_0x2883ec(0x190)](getOrCreateSession,_0x1449ee,_0x5088a9);_0x2f2cd0['enabled']=!![];const _0x3d6a03=getCurrentBranch();_0x3d6a03&&_0x512961[_0x2883ec(0x1b2)](_0x3d6a03,_0x512961[_0x2883ec(0x1b7)])&&_0x512961[_0x2883ec(0x1ae)](_0x3d6a03,_0x512961[_0x2883ec(0x1a8)])&&(_0x2f2cd0[_0x2883ec(0x18c)]=_0x3d6a03),delete _0x1449ee['lastEnabledSessionClearedAt'],_0x512961['PCCmo'](saveCache,_0x1449ee);}export function registerSession(_0x53b470,_0x502359){const _0x337356=_0x5b0641,_0x449152={'HRcQB':function(_0x400a56){return _0x400a56();}},_0x4c3b47=_0x449152[_0x337356(0x1a5)](loadCache),_0x3e11fb=getOrCreateSession(_0x4c3b47,_0x53b470);_0x3e11fb[_0x337356(0x19b)]=_0x502359,_0x3e11fb[_0x337356(0x19d)]=new Date()['toISOString'](),saveCache(_0x4c3b47);}export function getSessionEntry(_0x5d2eeb){const _0x41ddc9=_0x5b0641,_0x3e895a=loadCache(),_0xe4d5f4=_0x3e895a['sessions'][_0x5d2eeb];if(_0xe4d5f4?.['featureId']&&_0xe4d5f4?.['registeredAt'])return{'featureId':_0xe4d5f4[_0x41ddc9(0x19b)],'registeredAt':_0xe4d5f4[_0x41ddc9(0x19d)]};return null;}export function unregisterSession(_0x484ba8){const _0x2a9cb9=_0x5b0641,_0x391043={'FPEek':function(_0x4dbce4,_0x53783d){return _0x4dbce4(_0x53783d);}},_0xe31920=loadCache(),_0xc828a2=_0xe31920['sessions'][_0x484ba8];_0xc828a2&&(delete _0xc828a2[_0x2a9cb9(0x19b)],delete _0xc828a2['registeredAt'],_0x391043[_0x2a9cb9(0x197)](saveCache,_0xe31920));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x279d96){const _0x468633=_0x5b0641,_0x209bfe={'pVDFm':function(_0x350dd3,_0x27a275,_0x5bd7ec){return _0x350dd3(_0x27a275,_0x5bd7ec);},'qgIAF':function(_0x5dcf78,_0x48ba93){return _0x5dcf78-_0x48ba93;}},_0x5b463e=loadCache(),_0x39ee52=_0x209bfe[_0x468633(0x192)](getOrCreateSession,_0x5b463e,_0x279d96),_0x25f20e=_0x39ee52[_0x468633(0x1ad)]||0x0,_0x523dbd=Date['now']();if(_0x209bfe[_0x468633(0x19c)](_0x523dbd,_0x25f20e)>=PLAN_REMINDER_INTERVAL_MS)return _0x39ee52[_0x468633(0x1ad)]=_0x523dbd,saveCache(_0x5b463e),!![];return![];}export function hasSessionBeenPrompted(_0x2b7734){const _0x268464=_0x5b0641,_0x501b97={'BoDwV':function(_0xd7f78a){return _0xd7f78a();},'cBXwQ':function(_0x2f3c25,_0x60b0d7){return _0x2f3c25===_0x60b0d7;}},_0x15a45c=_0x501b97['BoDwV'](loadCache);return _0x501b97[_0x268464(0x1a1)](_0x15a45c[_0x268464(0x1a6)][_0x2b7734]?.[_0x268464(0x18e)],!![]);}function _0x3730(){const _0x4c14cd=['featureId','qgIAF','registeredAt','544809bZgtqr','HjmQP','join','cBXwQ','29946yuNcpF','3398zouivr','6653620hGdFjj','HRcQB','sessions','qJnCB','SEgfi','1206ABngXf','MOgmF','lastEnabledSessionClearedAt','dirname','lastPlanReminderAt','qgMOK','xpYrU','enabled','txgHz','KMRuJ','7112sVsvwV','master','6740055IFPzxq','Vowjx','vRXty','writeFileSync','.claude','erVYI','clear','9264yVrres','.ranger_cache.json','qREfm','currentBranch','qCErr','prompted','pipe','hCSrq','existsSync','pVDFm','branches','445WauXfm','utf-8','ALlqN','FPEek','main','BuBBq','2696752GLxXPp'];_0x3730=function(){return _0x4c14cd;};return _0x3730();}export function markSessionPrompted(_0x328b7e){const _0x465761={'IilDN':function(_0x5c303f,_0x47db63){return _0x5c303f(_0x47db63);}},_0x7ae34f=loadCache(),_0x3ce38d=getOrCreateSession(_0x7ae34f,_0x328b7e);_0x3ce38d['prompted']=!![],_0x465761['IilDN'](saveCache,_0x7ae34f);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x245d8f=_0x399c;(function(_0xb94832,_0x3047b4){const _0x46cb7b=_0x399c,_0x3a07d3=_0xb94832();while(!![]){try{const _0x4f4528=-parseInt(_0x46cb7b(0xe5))/0x1+parseInt(_0x46cb7b(0xe4))/0x2+parseInt(_0x46cb7b(0xb9))/0x3+parseInt(_0x46cb7b(0xc5))/0x4+parseInt(_0x46cb7b(0xd9))/0x5+-parseInt(_0x46cb7b(0xe2))/0x6*(-parseInt(_0x46cb7b(0xdc))/0x7)+-parseInt(_0x46cb7b(0xc4))/0x8;if(_0x4f4528===_0x3047b4)break;else _0x3a07d3['push'](_0x3a07d3['shift']());}catch(_0x1a9096){_0x3a07d3['push'](_0x3a07d3['shift']());}}}(_0x1127,0x8ee7b));import*as _0x415f9a from'fs';import*as _0xaf8c88 from'path';import*as _0x1359cb from'os';function _0x399c(_0x17cdd2,_0x5c39a2){_0x17cdd2=_0x17cdd2-0xb4;const _0x11277b=_0x1127();let _0x399c73=_0x11277b[_0x17cdd2];return _0x399c73;}import{execSync}from'child_process';const CACHE_FILE=_0xaf8c88['join'](_0x1359cb['homedir'](),_0x245d8f(0xcd),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1ff4aa=_0x245d8f,_0x34f783={'aDPiA':function(_0x417a0e){return _0x417a0e();}};try{if(_0x415f9a[_0x1ff4aa(0xc8)](CACHE_FILE)){const _0x20e4fd=JSON['parse'](_0x415f9a['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x20e4fd[_0x1ff4aa(0xc1)]||{},'branches':_0x20e4fd[_0x1ff4aa(0xc2)]||{},'lastEnabledSessionClearedAt':_0x20e4fd[_0x1ff4aa(0xb7)]};}}catch{}return _0x34f783[_0x1ff4aa(0xd5)](createEmptyCache);}function saveCache(_0x28c804){const _0x58f8fc=_0x245d8f;try{const _0x482eb3=_0xaf8c88[_0x58f8fc(0xb8)](CACHE_FILE);!_0x415f9a['existsSync'](_0x482eb3)&&_0x415f9a['mkdirSync'](_0x482eb3,{'recursive':!![]}),_0x415f9a['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x28c804,null,0x2));}catch{}}export function getCurrentBranch(){const _0x59299e=_0x245d8f,_0x30c797={'RkohF':function(_0x40c9e7,_0x5a32ba,_0x1043f0){return _0x40c9e7(_0x5a32ba,_0x1043f0);},'IILaE':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ypWHV':'utf-8','oGfle':'pipe','DYnAR':'HEAD'};try{const _0x261823=_0x30c797['RkohF'](execSync,_0x30c797['IILaE'],{'encoding':_0x30c797[_0x59299e(0xbf)],'stdio':[_0x59299e(0xc0),_0x30c797[_0x59299e(0xdd)],_0x59299e(0xc0)]})[_0x59299e(0xd0)]();if(!_0x261823||_0x261823===_0x30c797['DYnAR'])return null;return _0x261823;}catch{return null;}}function _0x1127(){const _0x1709be=['lastEnabledSessionClearedAt','dirname','2206836mPCblf','registeredAt','lastPlanReminderAt','AJjGj','VberO','xzvVi','ypWHV','pipe','sessions','branches','Ijdsj','15205320XGEzRU','2296352XrSQri','AyZlU','yvFYF','existsSync','enabled','prompted','peLrT','jYBeA','.claude','main','cXwVu','trim','obYzU','master','oDMgt','now','aDPiA','JbShd','clear','PQRwn','3202880JlDCch','jGymb','featureId','7AJWYKT','oGfle','ftxaQ','EgDjQ','rHCuy','gRgvB','3805914MhJoxT','vlCaH','64420ocGmFz','130801whSHQP','onhxF','pVNvi','currentBranch','wKSdD'];_0x1127=function(){return _0x1709be;};return _0x1127();}export function enableBranch(_0x6b4084){const _0x453e09=_0x245d8f,_0x499dbd={'wKSdD':function(_0x1b952b,_0x522acd){return _0x1b952b(_0x522acd);}},_0x479dca=loadCache();_0x479dca['branches'][_0x6b4084]=!![],_0x499dbd[_0x453e09(0xb6)](saveCache,_0x479dca);}export function disableBranch(_0x46af3f){const _0x35344c={'eYFeH':function(_0x4e9836){return _0x4e9836();}},_0x49a859=_0x35344c['eYFeH'](loadCache);delete _0x49a859['branches'][_0x46af3f],saveCache(_0x49a859);}export function isBranchEnabled(_0x4520b6){const _0x1bd10d=_0x245d8f,_0x41c020={'pVNvi':function(_0x5211f9){return _0x5211f9();}},_0x2b21fe=_0x41c020[_0x1bd10d(0xb4)](loadCache);return _0x2b21fe[_0x1bd10d(0xc2)][_0x4520b6]===!![];}function getOrCreateSession(_0x2abf60,_0x1ed90b){const _0x3adedd=_0x245d8f;return!_0x2abf60[_0x3adedd(0xc1)][_0x1ed90b]&&(_0x2abf60['sessions'][_0x1ed90b]={}),_0x2abf60[_0x3adedd(0xc1)][_0x1ed90b];}export function enableSession(_0x110144){const _0x5240ec=_0x245d8f,_0x182d61={'jGymb':function(_0x188ad9){return _0x188ad9();},'yvFYF':function(_0x1c99a9,_0x314d10,_0x414cf5){return _0x1c99a9(_0x314d10,_0x414cf5);},'lOhRz':_0x5240ec(0xce),'QHMMx':function(_0x4620b7,_0x5b22da){return _0x4620b7(_0x5b22da);}},_0x5f36c6=_0x182d61[_0x5240ec(0xda)](loadCache),_0x5326c4=_0x182d61[_0x5240ec(0xc7)](getOrCreateSession,_0x5f36c6,_0x110144);_0x5326c4[_0x5240ec(0xc9)]=!![];const _0x48438f=_0x182d61['jGymb'](getCurrentBranch);_0x48438f&&_0x48438f!==_0x182d61['lOhRz']&&_0x48438f!=='master'&&(_0x5f36c6[_0x5240ec(0xc2)][_0x48438f]=!![],_0x5326c4['currentBranch']=_0x48438f),_0x182d61['QHMMx'](saveCache,_0x5f36c6);}export function isSessionEnabled(_0x5745dd){const _0x2caa81=_0x245d8f,_0x12c236={'gRgvB':function(_0x4068ce){return _0x4068ce();},'obYzU':'main','OXUDs':function(_0x6c49cb,_0x3fafd2){return _0x6c49cb===_0x3fafd2;},'lYFkl':function(_0x8b46,_0x1f771d){return _0x8b46===_0x1f771d;}},_0x531bd2=_0x12c236[_0x2caa81(0xe1)](loadCache),_0x254224=getCurrentBranch();if(!_0x254224||_0x254224===_0x12c236[_0x2caa81(0xd1)]||_0x12c236['OXUDs'](_0x254224,_0x2caa81(0xd2)))return _0x12c236['OXUDs'](_0x531bd2[_0x2caa81(0xc1)][_0x5745dd]?.['enabled'],!![]);const _0x57fbba=_0x12c236['lYFkl'](_0x531bd2[_0x2caa81(0xc2)][_0x254224],!![]),_0x324678=_0x12c236['OXUDs'](_0x531bd2[_0x2caa81(0xc1)][_0x5745dd]?.[_0x2caa81(0xc9)],!![]);return _0x57fbba||_0x324678;}export function disableSession(_0x575129){const _0xb35938=_0x245d8f,_0x5c7f64={'oDMgt':function(_0x1d306a){return _0x1d306a();}},_0x25624b=_0x5c7f64[_0xb35938(0xd3)](loadCache),_0x2e8475=getOrCreateSession(_0x25624b,_0x575129);_0x2e8475[_0xb35938(0xc9)]=![],saveCache(_0x25624b);}export function updateBranchTracking(_0x46a7b6){const _0x8d4e9e=_0x245d8f,_0x41235e={'peLrT':function(_0x1ad518){return _0x1ad518();},'vlCaH':function(_0x28cb86,_0xf5700b){return _0x28cb86===_0xf5700b;},'onhxF':_0x8d4e9e(0xce),'EgDjQ':function(_0x43b1aa,_0x388630){return _0x43b1aa===_0x388630;},'AJjGj':function(_0x38b48a,_0x10a19f){return _0x38b48a!==_0x10a19f;}},_0x2f0d4a=loadCache(),_0x2e84cf=_0x2f0d4a[_0x8d4e9e(0xc1)][_0x46a7b6];if(!_0x2e84cf?.['enabled'])return;const _0x10e350=_0x41235e[_0x8d4e9e(0xcb)](getCurrentBranch);if(!_0x10e350||_0x41235e[_0x8d4e9e(0xe3)](_0x10e350,_0x41235e[_0x8d4e9e(0xe6)])||_0x41235e[_0x8d4e9e(0xdf)](_0x10e350,'master'))return;_0x41235e[_0x8d4e9e(0xbc)](_0x2e84cf[_0x8d4e9e(0xb5)],_0x10e350)&&(_0x2f0d4a['branches'][_0x10e350]=!![],_0x2e84cf['currentBranch']=_0x10e350,saveCache(_0x2f0d4a));}export function initBranchTracking(_0x3a82c6){const _0x40b207=_0x245d8f,_0x369c27={'VberO':'main','XpUOR':function(_0x2f9def,_0x1676f1){return _0x2f9def===_0x1676f1;},'SFkQe':_0x40b207(0xd2),'xzvVi':function(_0x18bf32,_0x495a55){return _0x18bf32===_0x495a55;},'SwbCA':function(_0x4f380d,_0xd43b66){return _0x4f380d(_0xd43b66);}},_0x3467a7=loadCache(),_0x18ac32=getCurrentBranch();if(!_0x18ac32||_0x18ac32===_0x369c27[_0x40b207(0xbd)]||_0x369c27['XpUOR'](_0x18ac32,_0x369c27['SFkQe']))return;if(_0x369c27[_0x40b207(0xbe)](_0x3467a7['branches'][_0x18ac32],!![])){const _0xa924f8=getOrCreateSession(_0x3467a7,_0x3a82c6);_0xa924f8['enabled']=!![],_0xa924f8[_0x40b207(0xb5)]=_0x18ac32,_0x369c27['SwbCA'](saveCache,_0x3467a7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x10a0f9){const _0x25c340=_0x245d8f,_0x50ec94={'jYBeA':function(_0x38352a){return _0x38352a();},'ftxaQ':function(_0x129e87,_0x386eb2){return _0x129e87(_0x386eb2);}},_0x3bd2e4=_0x50ec94[_0x25c340(0xcc)](loadCache),_0x4c8666=_0x3bd2e4['sessions'][_0x10a0f9];_0x4c8666?.['enabled']&&(_0x3bd2e4['lastEnabledSessionClearedAt']=Date['now'](),_0x50ec94[_0x25c340(0xde)](saveCache,_0x3bd2e4));}export function shouldAutoEnableAfterClear(_0x326100){const _0x50e3cc=_0x245d8f,_0x1d9edc={'Ijdsj':function(_0x296c8c,_0xf421e5){return _0x296c8c!==_0xf421e5;},'DyboG':_0x50e3cc(0xd7),'VYOFd':function(_0x4a7088){return _0x4a7088();},'FNQwA':function(_0x40f3ff,_0x20378c){return _0x40f3ff-_0x20378c;}};if(_0x1d9edc[_0x50e3cc(0xc3)](_0x326100,_0x1d9edc['DyboG']))return![];const _0x1ee84d=_0x1d9edc['VYOFd'](loadCache),_0x1dd41b=_0x1ee84d['lastEnabledSessionClearedAt'];if(!_0x1dd41b)return![];const _0x5d3a80=_0x1d9edc['FNQwA'](Date[_0x50e3cc(0xd4)](),_0x1dd41b);return _0x5d3a80<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x154c38){const _0xbb64c8=_0x245d8f,_0x33e8b6={'rHCuy':function(_0x193daa){return _0x193daa();}},_0x56abb1=_0x33e8b6['rHCuy'](loadCache),_0x1f674b=getOrCreateSession(_0x56abb1,_0x154c38);_0x1f674b[_0xbb64c8(0xc9)]=!![];const _0x4e1fd2=_0x33e8b6[_0xbb64c8(0xe0)](getCurrentBranch);_0x4e1fd2&&_0x4e1fd2!==_0xbb64c8(0xce)&&_0x4e1fd2!==_0xbb64c8(0xd2)&&(_0x1f674b['currentBranch']=_0x4e1fd2),delete _0x56abb1['lastEnabledSessionClearedAt'],saveCache(_0x56abb1);}export function registerSession(_0x4751e9,_0xc0de91){const _0x124ea6=_0x245d8f,_0x2a5fbe={'cFvfT':function(_0x2c66bd,_0x12e6e4,_0x873e70){return _0x2c66bd(_0x12e6e4,_0x873e70);},'kzGgo':function(_0x51f4b7,_0x1329cd){return _0x51f4b7(_0x1329cd);}},_0x4fdf97=loadCache(),_0x2d50e0=_0x2a5fbe['cFvfT'](getOrCreateSession,_0x4fdf97,_0x4751e9);_0x2d50e0['featureId']=_0xc0de91,_0x2d50e0[_0x124ea6(0xba)]=new Date()['toISOString'](),_0x2a5fbe['kzGgo'](saveCache,_0x4fdf97);}export function getSessionEntry(_0x19530f){const _0x318cf0=_0x245d8f,_0x3f3c55={'cXwVu':function(_0x38b595){return _0x38b595();}},_0x40c042=_0x3f3c55[_0x318cf0(0xcf)](loadCache),_0x4bfdbe=_0x40c042['sessions'][_0x19530f];if(_0x4bfdbe?.[_0x318cf0(0xdb)]&&_0x4bfdbe?.['registeredAt'])return{'featureId':_0x4bfdbe[_0x318cf0(0xdb)],'registeredAt':_0x4bfdbe[_0x318cf0(0xba)]};return null;}export function unregisterSession(_0x1718d7){const _0x48e5bb=_0x245d8f,_0x2954a9=loadCache(),_0x37a71a=_0x2954a9['sessions'][_0x1718d7];_0x37a71a&&(delete _0x37a71a[_0x48e5bb(0xdb)],delete _0x37a71a['registeredAt'],saveCache(_0x2954a9));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1682d7){const _0x40edcd=_0x245d8f,_0x3353d3={'vyvHE':function(_0x57e1f7,_0x251ba9,_0x56e07e){return _0x57e1f7(_0x251ba9,_0x56e07e);},'JbShd':function(_0x5d151a,_0x12c3dc){return _0x5d151a-_0x12c3dc;},'YULsu':function(_0x1c726d,_0x4d7eab){return _0x1c726d(_0x4d7eab);}},_0x8e4440=loadCache(),_0x1993b8=_0x3353d3['vyvHE'](getOrCreateSession,_0x8e4440,_0x1682d7),_0x19355b=_0x1993b8[_0x40edcd(0xbb)]||0x0,_0x3cf64f=Date['now']();if(_0x3353d3[_0x40edcd(0xd6)](_0x3cf64f,_0x19355b)>=PLAN_REMINDER_INTERVAL_MS)return _0x1993b8['lastPlanReminderAt']=_0x3cf64f,_0x3353d3['YULsu'](saveCache,_0x8e4440),!![];return![];}export function hasSessionBeenPrompted(_0x4c08f1){const _0x384ef6=_0x245d8f,_0x139fe2={'OaAgA':function(_0x15009d){return _0x15009d();},'yxPaT':function(_0x467000,_0x5789d2){return _0x467000===_0x5789d2;}},_0x171ce5=_0x139fe2['OaAgA'](loadCache);return _0x139fe2['yxPaT'](_0x171ce5[_0x384ef6(0xc1)][_0x4c08f1]?.[_0x384ef6(0xca)],!![]);}export function markSessionPrompted(_0x2b8868){const _0x17339d=_0x245d8f,_0x540c9d={'PQRwn':function(_0x365ada){return _0x365ada();},'AyZlU':function(_0x3718d1,_0x1cc05d,_0x3c9503){return _0x3718d1(_0x1cc05d,_0x3c9503);}},_0x1b3da4=_0x540c9d[_0x17339d(0xd8)](loadCache),_0x23a06c=_0x540c9d[_0x17339d(0xc6)](getOrCreateSession,_0x1b3da4,_0x2b8868);_0x23a06c[_0x17339d(0xca)]=!![],saveCache(_0x1b3da4);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x4bccb9=_0x2a4d;(function(_0x644685,_0x290cda){const _0x16b921=_0x2a4d,_0x567783=_0x644685();while(!![]){try{const _0x5e9e8c=parseInt(_0x16b921(0xde))/0x1*(-parseInt(_0x16b921(0xc9))/0x2)+-parseInt(_0x16b921(0xcf))/0x3+-parseInt(_0x16b921(0xd1))/0x4*(-parseInt(_0x16b921(0x9d))/0x5)+-parseInt(_0x16b921(0xef))/0x6*(-parseInt(_0x16b921(0xd7))/0x7)+-parseInt(_0x16b921(0xb4))/0x8+parseInt(_0x16b921(0xa7))/0x9+parseInt(_0x16b921(0xbc))/0xa;if(_0x5e9e8c===_0x290cda)break;else _0x567783['push'](_0x567783['shift']());}catch(_0x28b682){_0x567783['push'](_0x567783['shift']());}}}(_0xc1f1,0xa1353));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(_0x232861){const _0x302295=_0x2a4d,_0x4f4142={'RDZBE':function(_0x58d230){return _0x58d230();},'BDbar':function(_0x512ee4,_0x3e078e,_0x232bc4,_0x284f7d){return _0x512ee4(_0x3e078e,_0x232bc4,_0x284f7d);},'ZdkNC':_0x302295(0xb9),'drmna':function(_0x2a9bf8,_0x2bcc27,_0x8b0043){return _0x2a9bf8(_0x2bcc27,_0x8b0043);},'hnRCE':function(_0x41a3e8,_0x1b2181,_0x1f28d8){return _0x41a3e8(_0x1b2181,_0x1f28d8);},'PmMHc':function(_0x2dd50b,_0xe7da4d){return _0x2dd50b!==_0xe7da4d;},'fxMia':function(_0x6945e0,_0x50c72e){return _0x6945e0!==_0x50c72e;}},_0x540634=_0x4f4142['RDZBE'](getRangerDir),_0x4ba156=join(_0x540634,'ci',_0x232861),_0x246057=_0x4f4142[_0x302295(0xe7)](join,_0x540634,_0x4f4142['ZdkNC'],_0x232861),_0x74ea70=_0x4f4142[_0x302295(0x93)](join,_0x540634,_0x232861),_0x4086e1=_0x4f4142[_0x302295(0xca)](join,_0x540634,_0x4f4142[_0x302295(0xf2)]),_0x266b19=join(_0x540634,'ci');if(existsSync(_0x4ba156))return _0x4ba156;if(existsSync(_0x246057))return _0x246057;if(existsSync(_0x74ea70)&&(_0x4f4142[_0x302295(0xed)](_0x74ea70,_0x4086e1)&&_0x4f4142[_0x302295(0xb3)](_0x74ea70,_0x266b19)?!![]:hasLegacyProfileFiles(_0x74ea70)))return _0x74ea70;return _0x246057;}export function findExistingEnv(_0x298ab6,_0x10ac35){const _0x30bcac=_0x2a4d,_0x32da38={'PlOgr':'local','jFnUy':function(_0x34bf02,_0x533f88,_0xbcb767){return _0x34bf02(_0x533f88,_0xbcb767);},'qUOmt':function(_0x16db17,_0x23496e,_0x332959,_0x181497){return _0x16db17(_0x23496e,_0x332959,_0x181497);},'siFdo':'legacy','JWoAR':function(_0x3b72ad,_0x204323,_0x1abbdd){return _0x3b72ad(_0x204323,_0x1abbdd);},'GjUjG':function(_0x31d38e,_0x54448d){return _0x31d38e(_0x54448d);},'BRiPB':function(_0x3e558c,_0x5d3521){return _0x3e558c===_0x5d3521;}},_0xba912f=getRangerDir(),_0x2f4ee1=_0x10ac35?.[_0x30bcac(0xf1)]??['ci',_0x32da38['PlOgr'],_0x30bcac(0xd4)],_0x1585d6=join(_0xba912f,_0x32da38[_0x30bcac(0xa8)]),_0x231184=_0x32da38[_0x30bcac(0xb2)](join,_0xba912f,'ci'),_0x11b6da=[{'location':'ci','path':_0x32da38[_0x30bcac(0xc4)](join,_0xba912f,'ci',_0x298ab6)},{'location':_0x32da38[_0x30bcac(0xa8)],'path':join(_0xba912f,_0x30bcac(0xb9),_0x298ab6)},{'location':_0x32da38['siFdo'],'path':_0x32da38['JWoAR'](join,_0xba912f,_0x298ab6)}];for(const _0x15bc24 of _0x11b6da){if(_0x2f4ee1['includes'](_0x15bc24['location'])&&_0x32da38[_0x30bcac(0xa0)](existsSync,_0x15bc24['path'])){if(_0x15bc24[_0x30bcac(0xdc)]===_0x32da38[_0x30bcac(0xf0)]&&(_0x15bc24['path']===_0x1585d6||_0x32da38['BRiPB'](_0x15bc24[_0x30bcac(0xb5)],_0x231184))&&!hasLegacyProfileFiles(_0x15bc24[_0x30bcac(0xb5)]))continue;return{'path':_0x15bc24[_0x30bcac(0xb5)],'location':_0x15bc24['location']};}}return null;}function hasLegacyProfileFiles(_0x4a1e52){const _0x51a20f=_0x2a4d,_0xcb0238={'fnaYu':function(_0x25d051,_0x393319){return _0x25d051(_0x393319);},'bMIUd':function(_0x18ef10,_0x275cee,_0x1b52c2){return _0x18ef10(_0x275cee,_0x1b52c2);},'Hqkli':function(_0xcd668d,_0x4ec554){return _0xcd668d(_0x4ec554);},'kizwY':'auth.json','rFzWO':'auth.json.enc'};return _0xcb0238[_0x51a20f(0xec)](existsSync,_0xcb0238[_0x51a20f(0x9a)](join,_0x4a1e52,'settings.json'))||_0xcb0238['Hqkli'](existsSync,join(_0x4a1e52,_0xcb0238[_0x51a20f(0xbf)]))||_0xcb0238[_0x51a20f(0xec)](existsSync,join(_0x4a1e52,_0xcb0238[_0x51a20f(0xa9)]));}export function isEnvCi(_0x211d9c){const _0x23b663=_0x2a4d,_0x42f3e8={'dsJIU':function(_0x31130a,_0x2d4c99){return _0x31130a(_0x2d4c99);},'aMQRz':function(_0x15753c){return _0x15753c();}};return _0x42f3e8[_0x23b663(0x9f)](existsSync,join(_0x42f3e8[_0x23b663(0x94)](getRangerDir),'ci',_0x211d9c));}export async function cleanupTempFiles(_0x33ea25){const _0x34bc15=_0x2a4d,_0x34a2dd={'RfzMN':function(_0x4e8530,_0x455b16){return _0x4e8530!==_0x455b16;}},_0x1b7ae2=[_0x33ea25['tempAuthPath'],_0x33ea25['configPath']]['filter'](Boolean);await Promise['all'](_0x1b7ae2[_0x34bc15(0xd8)](_0x5bc2e6=>unlink(_0x5bc2e6)[_0x34bc15(0xc2)](_0x4aff3f=>{const _0x22d919=_0x34bc15;_0x34a2dd['RfzMN'](_0x4aff3f[_0x22d919(0xeb)],'ENOENT')&&console[_0x22d919(0xb8)](_0x22d919(0xe5)+_0x5bc2e6+':',_0x4aff3f['message']);})));}export function getSettingsPath(_0x33ab78){const _0x3126bb=_0x2a4d,_0x2e3e03={'SRNra':function(_0x3725c4,_0x318fbf,_0x130aef){return _0x3725c4(_0x318fbf,_0x130aef);},'cplwg':'settings.json'};return _0x2e3e03[_0x3126bb(0xce)](join,getEnvDir(_0x33ab78),_0x2e3e03['cplwg']);}export async function loadSettings(_0x4755b4){const _0x3c287c=_0x2a4d,_0x209583={'NqmBi':function(_0x378425,_0x42d00d){return _0x378425(_0x42d00d);},'eyfHJ':function(_0x264a76,_0x5cc4ff,_0x51bdb8){return _0x264a76(_0x5cc4ff,_0x51bdb8);}},_0x277ae4=getSettingsPath(_0x4755b4);if(!_0x209583[_0x3c287c(0xd0)](existsSync,_0x277ae4))return{};try{const _0x39ba6f=await _0x209583['eyfHJ'](readFile,_0x277ae4,'utf-8');return JSON[_0x3c287c(0xcd)](_0x39ba6f);}catch{return{};}}export async function saveSettings(_0xe615ab,_0x26d7b9){const _0xe88c5f=_0x2a4d,_0x4d4bb7={'DbRqo':function(_0x114294,_0x5d3e8d){return _0x114294(_0x5d3e8d);},'hvVcg':function(_0x361c81,_0x32e741,_0x1a66e1){return _0x361c81(_0x32e741,_0x1a66e1);}},_0x2c4925=getSettingsPath(_0xe615ab),_0xcf6aee=dirname(_0x2c4925);!_0x4d4bb7[_0xe88c5f(0xb6)](existsSync,_0xcf6aee)&&await _0x4d4bb7[_0xe88c5f(0x97)](mkdir,_0xcf6aee,{'recursive':!![]}),await writeFile(_0x2c4925,JSON['stringify'](_0x26d7b9,null,0x2));}export function resolveEnvVars(_0x21c1a5){const _0x370550=_0x2a4d,_0x4c31e6={'HElvU':function(_0x210313,_0x157894){return _0x210313===_0x157894;},'tuwuJ':_0x370550(0xe4),'tCaDq':_0x370550(0x96)};if(typeof _0x21c1a5===_0x4c31e6[_0x370550(0xcc)])return _0x21c1a5[_0x370550(0x99)](/\$\{(\w+)\}/g,(_0x5e2ff6,_0x4956e0)=>{const _0x278cbb=_0x370550,_0x1379ad=process['env'][_0x4956e0];if(_0x4c31e6['HElvU'](_0x1379ad,undefined))throw new Error('Environment\x20variable\x20'+_0x4956e0+_0x278cbb(0x9e));return _0x1379ad;});if(Array['isArray'](_0x21c1a5))return _0x21c1a5['map'](resolveEnvVars);if(_0x21c1a5&&_0x4c31e6[_0x370550(0xc3)](typeof _0x21c1a5,_0x4c31e6[_0x370550(0xbe)]))return Object['fromEntries'](Object['entries'](_0x21c1a5)[_0x370550(0xd8)](([_0x497bbc,_0x3ca7df])=>[_0x497bbc,resolveEnvVars(_0x3ca7df)]));return _0x21c1a5;}const isRecord=_0x2af2ff=>typeof _0x2af2ff==='object'&&_0x2af2ff!==null&&!Array['isArray'](_0x2af2ff),asRecord=_0x43e96e=>isRecord(_0x43e96e)?_0x43e96e:undefined,mergeHeaders=(_0x4b32eb,_0x5efc3a)=>{const _0x3dc3d5={..._0x4b32eb??{},..._0x5efc3a??{}};return Object['keys'](_0x3dc3d5)['length']?_0x3dc3d5:undefined;},ALLOW_LOCALHOST_ARGS=[_0x4bccb9(0xcb),_0x4bccb9(0xd3),'--unsafely-treat-insecure-origin-as-secure=http://localhost'];export function buildBrowserOptionsFromSettings(_0x570d00,_0x50859d={}){const _0x2cbe65=_0x4bccb9,_0x2248aa={'QiMdI':function(_0x3bd288,_0xc309a9){return _0x3bd288(_0xc309a9);},'GRwkX':function(_0x5a4e5c,_0x5280d9){return _0x5a4e5c===_0x5280d9;},'pkgPo':_0x2cbe65(0xf4),'AjElW':function(_0x379179,_0x13f575){return _0x379179(_0x13f575);}},_0x3375b8=asRecord(_0x570d00[_0x2cbe65(0xc1)]),_0x1a9552={..._0x2248aa[_0x2cbe65(0xe3)](asRecord,_0x3375b8?.[_0x2cbe65(0xb7)])??{}};_0x2248aa[_0x2cbe65(0xf3)](typeof _0x50859d['headless'],_0x2248aa['pkgPo'])&&(_0x1a9552['headless']=_0x50859d['headless']);if(_0x570d00[_0x2cbe65(0xc8)]){const _0x48d353=_0x1a9552['args']??[],_0x2a164b=ALLOW_LOCALHOST_ARGS['filter'](_0x183b02=>!_0x48d353['includes'](_0x183b02));_0x1a9552['args']=[..._0x48d353,..._0x2a164b];}const _0x1e2db2={...asRecord(_0x3375b8?.['contextOptions'])??{}};typeof _0x570d00['userAgent']==='string'&&(_0x1e2db2['userAgent']=_0x570d00[_0x2cbe65(0xe1)]);const _0xcc15b5=mergeHeaders(asRecord(_0x1e2db2['extraHTTPHeaders']),_0x2248aa['AjElW'](asRecord,_0x570d00['headers']));return _0xcc15b5?_0x1e2db2[_0x2cbe65(0xaf)]=_0xcc15b5:delete _0x1e2db2['extraHTTPHeaders'],_0x50859d['storageStatePath']&&(_0x1e2db2['storageState']=_0x50859d[_0x2cbe65(0xd5)]),{'launchOptions':_0x1a9552,'contextOptions':_0x1e2db2};}export async function buildPlaywrightConfig(_0x5a6cb1,_0x4d2ee6,_0x23eb6e,_0x53f3af){const _0x38ecd1=_0x4bccb9,_0x1de524={'bjamr':function(_0x2260d5,_0x2f9adb,_0x2982a4){return _0x2260d5(_0x2f9adb,_0x2982a4);},'IziFF':function(_0x27a0aa,_0x191ebc){return _0x27a0aa===_0x191ebc;},'LBDkU':'auth.json.enc','Jwabu':_0x38ecd1(0xe6),'GhsmV':_0x38ecd1(0xd2),'vxjEv':function(_0x4d5af6,_0xa366f0,_0x22e8b7){return _0x4d5af6(_0xa366f0,_0x22e8b7);},'EqQZu':function(_0x2a9594,_0x522d19){return _0x2a9594(_0x522d19);},'Lgiqm':function(_0x561ada){return _0x561ada();},'upJHu':function(_0xf8be81){return _0xf8be81();},'kDeZn':'sessions','jGpDq':function(_0x171bb7,_0x4c7ce9){return _0x171bb7(_0x4c7ce9);},'wZqgW':'core','GqbJB':'tabs','gYNbT':'install','tyObu':function(_0x479252,_0x216ecb){return _0x479252(_0x216ecb);},'DgkWG':function(_0x89aceb,_0x17dc2b,_0x30abf4){return _0x89aceb(_0x17dc2b,_0x30abf4);}},_0x1dbd6d=getEnvDir(_0x4d2ee6),_0x1a9756=join(_0x1dbd6d,_0x1de524[_0x38ecd1(0xe9)]),_0x1001b6=join(_0x1dbd6d,_0x1de524['Jwabu']);let _0x2321f1,_0x2168b6;if(existsSync(_0x1a9756))try{const _0x3507fd=await getToken();if(!_0x3507fd)throw new Error(_0x1de524['GhsmV']);const _0x55c6a7=await readFile(_0x1a9756),_0x45de52=decrypt(_0x55c6a7,_0x3507fd);_0x2168b6=join(tmpdir(),_0x38ecd1(0xe8)+Date['now']()+'.json'),await _0x1de524[_0x38ecd1(0xd9)](writeFile,_0x2168b6,_0x45de52),_0x2321f1=_0x2168b6;}catch(_0x1554e9){const _0x1a0d19=_0x1554e9 instanceof Error?_0x1554e9[_0x38ecd1(0xdd)]:String(_0x1554e9);throw new Error(_0x38ecd1(0xbd)+_0x1a0d19);}else _0x1de524[_0x38ecd1(0xd6)](existsSync,_0x1001b6)&&(_0x2321f1=_0x1001b6);const _0xbd04b7=_0x23eb6e||_0x1de524[_0x38ecd1(0xdb)](randomUUID),_0x214c87=join(_0x1de524['upJHu'](getRangerDir),_0x1de524[_0x38ecd1(0xa3)],_0xbd04b7),_0xcb29ba=_0x1de524[_0x38ecd1(0xe0)](Boolean,_0x5a6cb1[_0x38ecd1(0x9c)]),_0x283c64=_0xcb29ba?{'browserName':_0x38ecd1(0xad),'cdpEndpoint':_0x5a6cb1['cdpEndpoint']}:((()=>{const _0x5e404c=_0x38ecd1,{launchOptions:_0x276ad1,contextOptions:_0x40f81b}=_0x1de524['bjamr'](buildBrowserOptionsFromSettings,_0x5a6cb1,{'headless':_0x53f3af?![]:_0x5a6cb1[_0x5e404c(0xae)]??!![],'storageStatePath':_0x2321f1});if(_0x1de524['IziFF'](process['getuid']?.(),0x0)){const _0x3879de=[_0x5e404c(0xb0),_0x5e404c(0xa4)],_0x5e9cda=_0x276ad1[_0x5e404c(0xbb)]??[],_0x12e7f3=_0x3879de['filter'](_0x531e13=>!_0x5e9cda['includes'](_0x531e13));_0x276ad1['args']=[..._0x5e9cda,..._0x12e7f3];}return{'isolated':!![],'browserName':_0x5e404c(0xad),'launchOptions':_0x276ad1,'contextOptions':{..._0x40f81b,'permissions':['clipboard-read',_0x5e404c(0xba)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x435a81={'name':_0x4d2ee6,'browser':_0x283c64,'capabilities':[_0x1de524['wZqgW'],_0x1de524['GqbJB'],_0x1de524['gYNbT'],'pdf',_0x38ecd1(0xaa)],'imageResponses':_0x38ecd1(0xea),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x214c87};if(!_0xcb29ba){const _0x44ba9c=_0x435a81[_0x38ecd1(0xc1)],_0x5cdcc4=_0x44ba9c['contextOptions'];if(_0x1de524[_0x38ecd1(0xa2)](_0x5cdcc4[_0x38ecd1(0xe1)],undefined))delete _0x5cdcc4['userAgent'];if(_0x5cdcc4[_0x38ecd1(0x98)]===undefined)delete _0x5cdcc4[_0x38ecd1(0x98)];}const _0x59e61e=join(tmpdir(),_0x38ecd1(0xda));!_0x1de524['tyObu'](existsSync,_0x59e61e)&&await _0x1de524[_0x38ecd1(0xc0)](mkdir,_0x59e61e,{'recursive':!![]});const _0x42d046=join(_0x59e61e,_0x4d2ee6+'-'+Date[_0x38ecd1(0xac)]()+'.json');return await writeFile(_0x42d046,JSON[_0x38ecd1(0xc5)](_0x435a81,null,0x2)),{'configPath':_0x42d046,'tempAuthPath':_0x2168b6};}export function getNestedValue(_0x1e3f18,_0x1eb712){const _0x3a81c4=_0x4bccb9,_0x4ec384={'HogvG':function(_0x27ff4d,_0x251b48){return _0x27ff4d(_0x251b48);},'eFzpY':function(_0x551f7b,_0x43c05d){return _0x551f7b===_0x43c05d;},'Ccqef':function(_0x4c7de2,_0x54c560){return _0x4c7de2!==_0x54c560;}},_0x46ffc5=_0x4ec384['HogvG'](parseKeyPath,_0x1eb712);let _0x53767f=_0x1e3f18;for(const _0x119ce8 of _0x46ffc5){if(_0x4ec384['eFzpY'](_0x53767f,null)||_0x53767f===undefined||_0x4ec384[_0x3a81c4(0xc7)](typeof _0x53767f,'object'))return undefined;_0x53767f=_0x53767f[_0x119ce8];}return _0x53767f;}export function setNestedValue(_0x10f18f,_0x508415,_0x42cf93){const _0x3dd556=_0x4bccb9,_0x2f267d={'WSsEQ':function(_0x17deb8,_0x8e5a){return _0x17deb8-_0x8e5a;}},_0x552bb1=parseKeyPath(_0x508415);let _0x5f1f32=_0x10f18f;for(let _0xc7d069=0x0;_0xc7d069<_0x552bb1['length']-0x1;_0xc7d069++){const _0x1123e1=_0x552bb1[_0xc7d069];(!(_0x1123e1 in _0x5f1f32)||typeof _0x5f1f32[_0x1123e1]!==_0x3dd556(0x96))&&(_0x5f1f32[_0x1123e1]={}),_0x5f1f32=_0x5f1f32[_0x1123e1];}_0x5f1f32[_0x552bb1[_0x2f267d[_0x3dd556(0xa5)](_0x552bb1[_0x3dd556(0xab)],0x1)]]=_0x42cf93;}function _0x2a4d(_0x4e3fb8,_0x55f6be){_0x4e3fb8=_0x4e3fb8-0x93;const _0xc1f1be=_0xc1f1();let _0x2a4df9=_0xc1f1be[_0x4e3fb8];return _0x2a4df9;}export function deleteNestedValue(_0x130631,_0xf2d230){const _0x2c8ab1=_0x4bccb9,_0x226aa6={'sDlus':function(_0x59bf2f,_0x412836){return _0x59bf2f(_0x412836);},'fOlhy':function(_0x5a78cd,_0x2a91ea){return _0x5a78cd<_0x2a91ea;},'KGwiv':function(_0x26260c,_0x5c9890){return _0x26260c===_0x5c9890;},'xVOKJ':function(_0x2fef7e,_0x5e116f){return _0x2fef7e===_0x5e116f;},'PweIN':function(_0x58e42b,_0xf54d69){return _0x58e42b-_0xf54d69;}},_0xf83ded=_0x226aa6['sDlus'](parseKeyPath,_0xf2d230);let _0x77fe7e=_0x130631;for(let _0x496b2e=0x0;_0x226aa6[_0x2c8ab1(0xdf)](_0x496b2e,_0xf83ded['length']-0x1);_0x496b2e++){if(_0x226aa6[_0x2c8ab1(0xa6)](_0x77fe7e,null)||_0x77fe7e===undefined||typeof _0x77fe7e!==_0x2c8ab1(0x96))return![];_0x77fe7e=_0x77fe7e[_0xf83ded[_0x496b2e]];}if(_0x226aa6['xVOKJ'](_0x77fe7e,null)||_0x77fe7e===undefined||typeof _0x77fe7e!=='object')return![];const _0x5704ee=_0xf83ded[_0x226aa6[_0x2c8ab1(0xa1)](_0xf83ded[_0x2c8ab1(0xab)],0x1)];if(_0x5704ee in _0x77fe7e)return delete _0x77fe7e[_0x5704ee],!![];return![];}function parseKeyPath(_0x1be17e){const _0x409c52=_0x4bccb9,_0x4f9aba={'aIEky':function(_0x939ac9,_0x1000b3){return _0x939ac9===_0x1000b3;},'inYqR':'header','qDLDz':'headers'},_0x5272f8=_0x1be17e[_0x409c52(0xc6)]('.');return _0x4f9aba['aIEky'](_0x5272f8[0x0],_0x4f9aba['inYqR'])&&(_0x5272f8[0x0]=_0x4f9aba[_0x409c52(0xee)]),_0x5272f8;}export function formatSettings(_0x448f0a,_0x40868e=0x0){const _0x4e1ce5=_0x4bccb9,_0x35531c={'XpmCl':function(_0x5da295,_0x4f751a){return _0x5da295===_0x4f751a;},'ZcFim':function(_0x4a0f30,_0x267554){return _0x4a0f30!==_0x267554;}},_0xc886ea=[],_0x284af6='\x20\x20'['repeat'](_0x40868e);for(const [_0x101000,_0x2325e0]of Object['entries'](_0x448f0a)){if(_0x35531c['XpmCl'](_0x2325e0,undefined))continue;if(typeof _0x2325e0===_0x4e1ce5(0x96)&&_0x35531c[_0x4e1ce5(0x95)](_0x2325e0,null)){_0xc886ea[_0x4e1ce5(0xe2)](''+_0x284af6+_0x101000+':');for(const [_0x5def13,_0x4c4ebb]of Object[_0x4e1ce5(0x9b)](_0x2325e0)){_0xc886ea['push'](_0x284af6+'\x20\x20'+_0x5def13+':\x20'+_0x4c4ebb);}}else _0xc886ea[_0x4e1ce5(0xe2)](''+_0x284af6+_0x101000+':\x20'+_0x2325e0);}return _0xc886ea[_0x4e1ce5(0xb1)]('\x0a');}function _0xc1f1(){const _0xf41220=['DbRqo','launchOptions','warn','local','clipboard-write','args','13271540UnGqpa','Failed\x20to\x20decrypt\x20auth\x20state:\x20','tCaDq','kizwY','DgkWG','browser','catch','HElvU','qUOmt','stringify','split','Ccqef','allowInsecureLocalhost','278qFuKZK','hnRCE','--disable-web-security','tuwuJ','parse','SRNra','3692352hUHXLE','NqmBi','8WCoMNZ','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--allow-running-insecure-content','legacy','storageStatePath','EqQZu','7rBBghM','map','vxjEv','ranger-config','Lgiqm','location','message','2707bXKHxK','fOlhy','jGpDq','userAgent','push','QiMdI','string','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','auth.json','BDbar','ranger-auth-','LBDkU','allow','code','fnaYu','PmMHc','qDLDz','2993370cBIoji','siFdo','locations','ZdkNC','GRwkX','boolean','drmna','aMQRz','ZcFim','object','hvVcg','storageState','replace','bMIUd','entries','cdpEndpoint','467385ytcMbD','\x20is\x20not\x20set','dsJIU','GjUjG','PweIN','IziFF','kDeZn','--disable-setuid-sandbox','WSsEQ','KGwiv','5878260Nxsxaz','PlOgr','rFzWO','vision','length','now','chromium','headless','extraHTTPHeaders','--no-sandbox','join','jFnUy','fxMia','3190232qanHIV','path'];_0xc1f1=function(){return _0xf41220;};return _0xc1f1();}
1
+ (function(_0x33b734,_0x3ad759){const _0x39ddb1=_0x3922,_0x17783b=_0x33b734();while(!![]){try{const _0x3ca2da=parseInt(_0x39ddb1(0xcf))/0x1*(parseInt(_0x39ddb1(0xa4))/0x2)+parseInt(_0x39ddb1(0x81))/0x3*(-parseInt(_0x39ddb1(0xac))/0x4)+parseInt(_0x39ddb1(0xc5))/0x5+parseInt(_0x39ddb1(0xbd))/0x6+parseInt(_0x39ddb1(0x7d))/0x7*(parseInt(_0x39ddb1(0x84))/0x8)+parseInt(_0x39ddb1(0xaa))/0x9*(parseInt(_0x39ddb1(0xd7))/0xa)+-parseInt(_0x39ddb1(0x8b))/0xb;if(_0x3ca2da===_0x3ad759)break;else _0x17783b['push'](_0x17783b['shift']());}catch(_0x264cc4){_0x17783b['push'](_0x17783b['shift']());}}}(_0x51d6,0xdc465));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x51d6(){const _0x147f3d=['join','sessions','8432556Zjqgth','filter','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','cdpEndpoint','NkgTA','vision','Gengs','local','3729710eJGnvb','tempAuthPath','storageStatePath','repeat','GWfdw','EbTdG','warn','settings.json','utf-8','nGhbu','1zBhrXZ','extraHTTPHeaders','browser','length','mWrSi','IPjsQ','includes','NVycD','10UBwzJJ','cozUa','\x20is\x20not\x20set','headless','WkghF','CnATl','14VcSHJa','OdZrt','tCaSG','userAgent','3yBCZKG','headers','CWzYo','5591544hsnkQo','hyfsV','auth.json.enc','vomch','storageState','legacy','isArray','23527141qoxSPo','parse','FSUIs','Bcwse','ranger-config','EkqoU','catch','entries','.json','oykEZ','NDTin','contextOptions','message','replace','uZmYp','now','header','map','Failed\x20to\x20decrypt\x20auth\x20state:\x20','push','yKLRs','vlzGC','HhERc','PNXBI','rOiCh','966142VtmclD','dkdvk','SohfD','pdf','object','EDafS','2620188OjVALI','tawOL','5129524Wkzdyu','split','locations','args','stringify','env','location','zwvnR','path','qKJdZ','mMIcE','xjCFY','TCPXw','aCbeU','MyWcH'];_0x51d6=function(){return _0x147f3d;};return _0x51d6();}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(_0x512f4f){const _0x45492b=_0x3922,_0x437328={'aSIgy':function(_0x1ac00b,_0x35d63b,_0x362b0e,_0x4a211a){return _0x1ac00b(_0x35d63b,_0x362b0e,_0x4a211a);},'QlZMK':'local','cozUa':function(_0x4fc64f,_0x5f32b6,_0x3a6869){return _0x4fc64f(_0x5f32b6,_0x3a6869);},'IPjsQ':function(_0x2f2038,_0x19c514){return _0x2f2038(_0x19c514);},'HCCbI':function(_0x54a5e7,_0x10078e){return _0x54a5e7(_0x10078e);},'LJGQC':function(_0x3324b6,_0x3f854d){return _0x3324b6(_0x3f854d);},'PNXBI':function(_0x1c24ad,_0x4ee7c4){return _0x1c24ad!==_0x4ee7c4;},'tCaSG':function(_0x23bdda,_0x418ce0){return _0x23bdda!==_0x418ce0;}},_0x4e62ce=getRangerDir(),_0x1a6fb9=_0x437328['aSIgy'](join,_0x4e62ce,'ci',_0x512f4f),_0x13856b=join(_0x4e62ce,_0x437328['QlZMK'],_0x512f4f),_0x1ce707=_0x437328[_0x45492b(0xd8)](join,_0x4e62ce,_0x512f4f),_0x4f37cd=join(_0x4e62ce,_0x45492b(0xc4)),_0x5b5a0c=_0x437328[_0x45492b(0xd8)](join,_0x4e62ce,'ci');if(_0x437328[_0x45492b(0xd4)](existsSync,_0x1a6fb9))return _0x1a6fb9;if(_0x437328['HCCbI'](existsSync,_0x13856b))return _0x13856b;if(_0x437328['LJGQC'](existsSync,_0x1ce707)&&(_0x437328[_0x45492b(0xa2)](_0x1ce707,_0x4f37cd)&&_0x437328[_0x45492b(0x7f)](_0x1ce707,_0x5b5a0c)?!![]:hasLegacyProfileFiles(_0x1ce707)))return _0x1ce707;return _0x13856b;}export function findExistingEnv(_0xf77d8,_0x2c2f02){const _0x55f9ae=_0x3922,_0x373208={'EbTdG':function(_0x21db4e){return _0x21db4e();},'nGhbu':_0x55f9ae(0xc4),'CnATl':function(_0x3f1a9d,_0x4b20f8,_0x2e7d8,_0x5e3989){return _0x3f1a9d(_0x4b20f8,_0x2e7d8,_0x5e3989);},'goMlo':function(_0x2097bb,_0x570be9,_0x58ed79,_0x3a8e35){return _0x2097bb(_0x570be9,_0x58ed79,_0x3a8e35);},'xJLsZ':_0x55f9ae(0x89),'WkghF':function(_0x4b50b5,_0x2cf9c2,_0x3f6e9f){return _0x4b50b5(_0x2cf9c2,_0x3f6e9f);},'mlCAk':function(_0x15ab57,_0x44bc39){return _0x15ab57===_0x44bc39;},'GWfdw':function(_0x2d4f38,_0x752f8c){return _0x2d4f38(_0x752f8c);}},_0x377703=_0x373208[_0x55f9ae(0xca)](getRangerDir),_0x45ce59=_0x2c2f02?.[_0x55f9ae(0xae)]??['ci','local',_0x55f9ae(0x89)],_0x526c52=join(_0x377703,_0x373208[_0x55f9ae(0xce)]),_0x1d88c4=join(_0x377703,'ci'),_0x5345e1=[{'location':'ci','path':_0x373208[_0x55f9ae(0xdc)](join,_0x377703,'ci',_0xf77d8)},{'location':_0x373208['nGhbu'],'path':_0x373208['goMlo'](join,_0x377703,_0x55f9ae(0xc4),_0xf77d8)},{'location':_0x373208['xJLsZ'],'path':_0x373208[_0x55f9ae(0xdb)](join,_0x377703,_0xf77d8)}];for(const _0x15c7da of _0x5345e1){if(_0x45ce59[_0x55f9ae(0xd5)](_0x15c7da[_0x55f9ae(0xb2)])&&existsSync(_0x15c7da['path'])){if(_0x15c7da[_0x55f9ae(0xb2)]===_0x373208['xJLsZ']&&(_0x373208['mlCAk'](_0x15c7da['path'],_0x526c52)||_0x15c7da[_0x55f9ae(0xb4)]===_0x1d88c4)&&!_0x373208[_0x55f9ae(0xc9)](hasLegacyProfileFiles,_0x15c7da[_0x55f9ae(0xb4)]))continue;return{'path':_0x15c7da[_0x55f9ae(0xb4)],'location':_0x15c7da[_0x55f9ae(0xb2)]};}}return null;}function hasLegacyProfileFiles(_0x176a24){const _0x11bd8c=_0x3922,_0x387ac5={'Gengs':function(_0x3a348b,_0x486750){return _0x3a348b(_0x486750);},'KzFFp':function(_0x1bc6a7,_0x216d17,_0x26abb6){return _0x1bc6a7(_0x216d17,_0x26abb6);},'CWzYo':'settings.json','qKJdZ':function(_0x50db5f,_0x97a78f){return _0x50db5f(_0x97a78f);}};return _0x387ac5[_0x11bd8c(0xc3)](existsSync,_0x387ac5['KzFFp'](join,_0x176a24,_0x387ac5[_0x11bd8c(0x83)]))||_0x387ac5[_0x11bd8c(0xc3)](existsSync,join(_0x176a24,'auth.json'))||_0x387ac5[_0x11bd8c(0xb5)](existsSync,join(_0x176a24,_0x11bd8c(0x86)));}export function isEnvCi(_0x5ea964){const _0xbe2973=_0x3922,_0xcbf043={'umSEs':function(_0x1c6766,_0x55077e){return _0x1c6766(_0x55077e);},'oykEZ':function(_0x4d8f2a,_0x53dfaa,_0x241b29,_0xab0287){return _0x4d8f2a(_0x53dfaa,_0x241b29,_0xab0287);}};return _0xcbf043['umSEs'](existsSync,_0xcbf043[_0xbe2973(0x94)](join,getRangerDir(),'ci',_0x5ea964));}export async function cleanupTempFiles(_0xed0d7e){const _0x11def7=_0x3922,_0x486878=[_0xed0d7e[_0x11def7(0xc6)],_0xed0d7e['configPath']]['filter'](Boolean);await Promise['all'](_0x486878['map'](_0x3085fb=>unlink(_0x3085fb)[_0x11def7(0x91)](_0x379640=>{const _0x7b13da=_0x11def7;_0x379640['code']!=='ENOENT'&&console[_0x7b13da(0xcb)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3085fb+':',_0x379640[_0x7b13da(0x97)]);})));}export function getSettingsPath(_0x1e71c7){const _0xccfa8a=_0x3922,_0xc985f2={'BOCGH':function(_0x2f485e,_0xb7e049){return _0x2f485e(_0xb7e049);}};return join(_0xc985f2['BOCGH'](getEnvDir,_0x1e71c7),_0xccfa8a(0xcc));}export async function loadSettings(_0x38462b){const _0x5683ab=_0x3922,_0x3e372e={'WJrtK':function(_0x58aec8,_0x55969f,_0x123330){return _0x58aec8(_0x55969f,_0x123330);},'Bcwse':_0x5683ab(0xcd)},_0x1230cf=getSettingsPath(_0x38462b);if(!existsSync(_0x1230cf))return{};try{const _0x4defd3=await _0x3e372e['WJrtK'](readFile,_0x1230cf,_0x3e372e[_0x5683ab(0x8e)]);return JSON[_0x5683ab(0x8c)](_0x4defd3);}catch{return{};}}function _0x3922(_0x5747c6,_0xcf6dc6){_0x5747c6=_0x5747c6-0x7d;const _0x51d609=_0x51d6();let _0x39229c=_0x51d609[_0x5747c6];return _0x39229c;}export async function saveSettings(_0x4aa2d,_0x5afa47){const _0x4a4020=_0x3922,_0x5e7ea8={'YmZkK':function(_0x110725,_0xa10467){return _0x110725(_0xa10467);}},_0x4a33e6=getSettingsPath(_0x4aa2d),_0x3ebe87=_0x5e7ea8['YmZkK'](dirname,_0x4a33e6);!_0x5e7ea8['YmZkK'](existsSync,_0x3ebe87)&&await mkdir(_0x3ebe87,{'recursive':!![]}),await writeFile(_0x4a33e6,JSON[_0x4a4020(0xb0)](_0x5afa47,null,0x2));}export function resolveEnvVars(_0x4e44c4){const _0xd32259=_0x3922,_0x4c8009={'KGSzT':function(_0x3ae0fa,_0x4d9700){return _0x3ae0fa===_0x4d9700;},'PKhuV':function(_0x101040,_0x5c08a5){return _0x101040===_0x5c08a5;},'rzPUQ':function(_0x12f3f9,_0x494ad2){return _0x12f3f9===_0x494ad2;},'NVycD':_0xd32259(0xa8)};if(_0x4c8009['PKhuV'](typeof _0x4e44c4,'string'))return _0x4e44c4[_0xd32259(0x98)](/\$\{(\w+)\}/g,(_0x447761,_0x1a93b8)=>{const _0x2ec44e=_0xd32259,_0x1fa8a1=process[_0x2ec44e(0xb1)][_0x1a93b8];if(_0x4c8009['KGSzT'](_0x1fa8a1,undefined))throw new Error('Environment\x20variable\x20'+_0x1a93b8+_0x2ec44e(0xd9));return _0x1fa8a1;});if(Array[_0xd32259(0x8a)](_0x4e44c4))return _0x4e44c4[_0xd32259(0x9c)](resolveEnvVars);if(_0x4e44c4&&_0x4c8009['rzPUQ'](typeof _0x4e44c4,_0x4c8009[_0xd32259(0xd6)]))return Object['fromEntries'](Object[_0xd32259(0x92)](_0x4e44c4)[_0xd32259(0x9c)](([_0x5556b3,_0xb457c8])=>[_0x5556b3,resolveEnvVars(_0xb457c8)]));return _0x4e44c4;}const isRecord=_0x462dee=>typeof _0x462dee==='object'&&_0x462dee!==null&&!Array['isArray'](_0x462dee),asRecord=_0x3ec163=>isRecord(_0x3ec163)?_0x3ec163:undefined,mergeHeaders=(_0x624f6d,_0x2a770b)=>{const _0x300ec1={..._0x624f6d??{},..._0x2a770b??{}};return Object['keys'](_0x300ec1)['length']?_0x300ec1:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost'];export function buildBrowserOptionsFromSettings(_0x553b98,_0x23da38={}){const _0x5b7814=_0x3922,_0x47300e={'tawOL':function(_0x206962,_0x5ccaf1){return _0x206962===_0x5ccaf1;},'SohfD':'boolean','Cvzph':'string','JRMJK':function(_0x19b7bb,_0xdc9e39){return _0x19b7bb(_0xdc9e39);}},_0x2b1418=asRecord(_0x553b98[_0x5b7814(0xd1)]),_0x475b76={...asRecord(_0x2b1418?.['launchOptions'])??{}};_0x47300e[_0x5b7814(0xab)](typeof _0x23da38[_0x5b7814(0xda)],_0x47300e[_0x5b7814(0xa6)])&&(_0x475b76['headless']=_0x23da38['headless']);if(_0x553b98['safeMode']){const _0x25df0a=_0x475b76['args']??[],_0x61f5a1=SAFE_MODE_ARGS[_0x5b7814(0xbe)](_0x59fda6=>!_0x25df0a[_0x5b7814(0xd5)](_0x59fda6));_0x475b76[_0x5b7814(0xaf)]=[..._0x25df0a,..._0x61f5a1];}if(_0x553b98['allowInsecureLocalhost']){const _0x31053d=_0x475b76['args']??[],_0x301338=ALLOW_LOCALHOST_ARGS[_0x5b7814(0xbe)](_0x4bda11=>!_0x31053d[_0x5b7814(0xd5)](_0x4bda11));_0x475b76[_0x5b7814(0xaf)]=[..._0x31053d,..._0x301338];}const _0x1e0b21={...asRecord(_0x2b1418?.[_0x5b7814(0x96)])??{}};typeof _0x553b98['userAgent']===_0x47300e['Cvzph']&&(_0x1e0b21[_0x5b7814(0x80)]=_0x553b98['userAgent']);const _0x42c1c2=mergeHeaders(asRecord(_0x1e0b21[_0x5b7814(0xd0)]),_0x47300e['JRMJK'](asRecord,_0x553b98['headers']));return _0x42c1c2?_0x1e0b21['extraHTTPHeaders']=_0x42c1c2:delete _0x1e0b21[_0x5b7814(0xd0)],_0x23da38[_0x5b7814(0xc7)]&&(_0x1e0b21[_0x5b7814(0x88)]=_0x23da38[_0x5b7814(0xc7)]),{'launchOptions':_0x475b76,'contextOptions':_0x1e0b21};}export async function buildPlaywrightConfig(_0x811b22,_0x1e16bf,_0x4378ca,_0x204afa){const _0x431b94=_0x3922,_0xf6e279={'FSUIs':function(_0x2b5cf1,_0xb4e764,_0x1d869b){return _0x2b5cf1(_0xb4e764,_0x1d869b);},'EDafS':'--disable-setuid-sandbox','mMIcE':'chromium','gRhKQ':'clipboard-read','EkqoU':'clipboard-write','yKLRs':function(_0x24f7c9,_0x2579d1){return _0x24f7c9(_0x2579d1);},'hzfVS':'auth.json','OdZrt':_0x431b94(0xbf),'zcgme':function(_0x104c27,_0x31e3f0,_0x13f9bd){return _0x104c27(_0x31e3f0,_0x13f9bd);},'rOiCh':function(_0x1da685,_0x243480){return _0x1da685 instanceof _0x243480;},'TCPXw':function(_0x281665,_0x1b87dd){return _0x281665(_0x1b87dd);},'rxulL':function(_0x166e29,_0x4a0d9b){return _0x166e29(_0x4a0d9b);},'NDTin':function(_0x7a6c20,_0x4469fc){return _0x7a6c20===_0x4469fc;},'zSuau':function(_0x594ee4){return _0x594ee4();},'NkgTA':_0x431b94(0x8f)},_0x27ade0=_0xf6e279[_0x431b94(0x9f)](getEnvDir,_0x1e16bf),_0x38276c=join(_0x27ade0,'auth.json.enc'),_0xfbfc7c=_0xf6e279['FSUIs'](join,_0x27ade0,_0xf6e279['hzfVS']);let _0x4e7ab2,_0x327d66;if(_0xf6e279['yKLRs'](existsSync,_0x38276c))try{const _0x58fc75=await getToken();if(!_0x58fc75)throw new Error(_0xf6e279[_0x431b94(0x7e)]);const _0x1c54a2=await readFile(_0x38276c),_0x8eed3c=decrypt(_0x1c54a2,_0x58fc75);_0x327d66=_0xf6e279['zcgme'](join,tmpdir(),'ranger-auth-'+Date['now']()+'.json'),await _0xf6e279[_0x431b94(0x8d)](writeFile,_0x327d66,_0x8eed3c),_0x4e7ab2=_0x327d66;}catch(_0x2c1bb0){const _0xfc0ebf=_0xf6e279[_0x431b94(0xa3)](_0x2c1bb0,Error)?_0x2c1bb0['message']:_0xf6e279['TCPXw'](String,_0x2c1bb0);throw new Error(_0x431b94(0x9d)+_0xfc0ebf);}else existsSync(_0xfbfc7c)&&(_0x4e7ab2=_0xfbfc7c);const _0x4035bd=_0x4378ca||randomUUID(),_0x750f4=join(getRangerDir(),_0x431b94(0xbc),_0x4035bd),_0x22747c=_0xf6e279['rxulL'](Boolean,_0x811b22[_0x431b94(0xc0)]),_0x578275=_0x22747c?{'browserName':_0xf6e279[_0x431b94(0xb6)],'cdpEndpoint':_0x811b22[_0x431b94(0xc0)]}:((()=>{const _0x487ae3=_0x431b94,{launchOptions:_0x48c2da,contextOptions:_0x5a2530}=_0xf6e279[_0x487ae3(0x8d)](buildBrowserOptionsFromSettings,_0x811b22,{'headless':_0x204afa?![]:_0x811b22['headless']??!![],'storageStatePath':_0x4e7ab2});if(process['getuid']?.()===0x0){const _0x1e1e46=['--no-sandbox',_0xf6e279[_0x487ae3(0xa9)]],_0x4fc7b8=_0x48c2da[_0x487ae3(0xaf)]??[],_0x541334=_0x1e1e46['filter'](_0x37c188=>!_0x4fc7b8['includes'](_0x37c188));_0x48c2da[_0x487ae3(0xaf)]=[..._0x4fc7b8,..._0x541334];}return{'isolated':!![],'browserName':_0xf6e279[_0x487ae3(0xb6)],'launchOptions':_0x48c2da,'contextOptions':{..._0x5a2530,'permissions':[_0xf6e279['gRhKQ'],_0xf6e279[_0x487ae3(0x90)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1ac50a={'name':_0x1e16bf,'browser':_0x578275,'capabilities':['core','tabs','install',_0x431b94(0xa7),_0x431b94(0xc2)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x750f4};if(!_0x22747c){const _0x2c4a9f=_0x1ac50a[_0x431b94(0xd1)],_0x1deb07=_0x2c4a9f['contextOptions'];if(_0xf6e279[_0x431b94(0x95)](_0x1deb07['userAgent'],undefined))delete _0x1deb07['userAgent'];if(_0x1deb07[_0x431b94(0x88)]===undefined)delete _0x1deb07[_0x431b94(0x88)];}const _0x22133e=join(_0xf6e279['zSuau'](tmpdir),_0xf6e279[_0x431b94(0xc1)]);!_0xf6e279[_0x431b94(0xb8)](existsSync,_0x22133e)&&await _0xf6e279['zcgme'](mkdir,_0x22133e,{'recursive':!![]});const _0x31532a=_0xf6e279[_0x431b94(0x8d)](join,_0x22133e,_0x1e16bf+'-'+Date[_0x431b94(0x9a)]()+_0x431b94(0x93));return await writeFile(_0x31532a,JSON['stringify'](_0x1ac50a,null,0x2)),{'configPath':_0x31532a,'tempAuthPath':_0x327d66};}export function getNestedValue(_0x5e4a35,_0xe15cca){const _0x1ce095=_0x3922,_0x20a956={'MyWcH':function(_0x2290c4,_0x13e3b9){return _0x2290c4(_0x13e3b9);},'jItTe':_0x1ce095(0xa8)},_0x436599=_0x20a956[_0x1ce095(0xba)](parseKeyPath,_0xe15cca);let _0x372b4f=_0x5e4a35;for(const _0x5973c6 of _0x436599){if(_0x372b4f===null||_0x372b4f===undefined||typeof _0x372b4f!==_0x20a956['jItTe'])return undefined;_0x372b4f=_0x372b4f[_0x5973c6];}return _0x372b4f;}export function setNestedValue(_0x10c5a5,_0x2095a2,_0x2803d0){const _0x1b7275=_0x3922,_0x43d324={'zwvnR':function(_0x33c8dc,_0x51f2d7){return _0x33c8dc(_0x51f2d7);},'uZmYp':function(_0x26875d,_0x3f9801){return _0x26875d!==_0x3f9801;}},_0x1c9338=_0x43d324[_0x1b7275(0xb3)](parseKeyPath,_0x2095a2);let _0x14cd93=_0x10c5a5;for(let _0x4a5d2f=0x0;_0x4a5d2f<_0x1c9338[_0x1b7275(0xd2)]-0x1;_0x4a5d2f++){const _0x5bf81f=_0x1c9338[_0x4a5d2f];(!(_0x5bf81f in _0x14cd93)||_0x43d324[_0x1b7275(0x99)](typeof _0x14cd93[_0x5bf81f],_0x1b7275(0xa8)))&&(_0x14cd93[_0x5bf81f]={}),_0x14cd93=_0x14cd93[_0x5bf81f];}_0x14cd93[_0x1c9338[_0x1c9338['length']-0x1]]=_0x2803d0;}export function deleteNestedValue(_0x1508ca,_0x59d49b){const _0x3943f0=_0x3922,_0x465b87={'hyfsV':function(_0x8f4746,_0x24ee5f){return _0x8f4746<_0x24ee5f;},'qbAhI':function(_0x25f765,_0x27f471){return _0x25f765===_0x27f471;},'pZwbX':function(_0x12fdd8,_0x35b0ef){return _0x12fdd8!==_0x35b0ef;},'vlzGC':function(_0x4c9d93,_0x13f80e){return _0x4c9d93===_0x13f80e;},'vomch':function(_0x1e49d5,_0x11cfde){return _0x1e49d5-_0x11cfde;},'aCbeU':function(_0x16d2b0,_0x2cf92f){return _0x16d2b0 in _0x2cf92f;}},_0x2b532d=parseKeyPath(_0x59d49b);let _0xc650c7=_0x1508ca;for(let _0x137bd6=0x0;_0x465b87[_0x3943f0(0x85)](_0x137bd6,_0x2b532d['length']-0x1);_0x137bd6++){if(_0xc650c7===null||_0x465b87['qbAhI'](_0xc650c7,undefined)||_0x465b87['pZwbX'](typeof _0xc650c7,'object'))return![];_0xc650c7=_0xc650c7[_0x2b532d[_0x137bd6]];}if(_0x465b87[_0x3943f0(0xa0)](_0xc650c7,null)||_0xc650c7===undefined||typeof _0xc650c7!==_0x3943f0(0xa8))return![];const _0xb246e=_0x2b532d[_0x465b87[_0x3943f0(0x87)](_0x2b532d['length'],0x1)];if(_0x465b87[_0x3943f0(0xb9)](_0xb246e,_0xc650c7))return delete _0xc650c7[_0xb246e],!![];return![];}function parseKeyPath(_0x4618ff){const _0x3edbce=_0x3922,_0x38d1cf={'mWrSi':function(_0x1d8b6a,_0x3dbb48){return _0x1d8b6a===_0x3dbb48;},'xjCFY':_0x3edbce(0x9b)},_0x5bcce2=_0x4618ff[_0x3edbce(0xad)]('.');return _0x38d1cf[_0x3edbce(0xd3)](_0x5bcce2[0x0],_0x38d1cf[_0x3edbce(0xb7)])&&(_0x5bcce2[0x0]=_0x3edbce(0x82)),_0x5bcce2;}export function formatSettings(_0x3a5a31,_0x1ece31=0x0){const _0x57150f=_0x3922,_0x52cc2a={'dkdvk':function(_0x37d4d7,_0x3d0c46){return _0x37d4d7===_0x3d0c46;},'HhERc':'object'},_0x2b1dfd=[],_0x83bccf='\x20\x20'[_0x57150f(0xc8)](_0x1ece31);for(const [_0x4dddeb,_0x55b8ae]of Object[_0x57150f(0x92)](_0x3a5a31)){if(_0x52cc2a[_0x57150f(0xa5)](_0x55b8ae,undefined))continue;if(typeof _0x55b8ae===_0x52cc2a[_0x57150f(0xa1)]&&_0x55b8ae!==null){_0x2b1dfd[_0x57150f(0x9e)](''+_0x83bccf+_0x4dddeb+':');for(const [_0x411eee,_0x567fd0]of Object['entries'](_0x55b8ae)){_0x2b1dfd['push'](_0x83bccf+'\x20\x20'+_0x411eee+':\x20'+_0x567fd0);}}else _0x2b1dfd[_0x57150f(0x9e)](''+_0x83bccf+_0x4dddeb+':\x20'+_0x55b8ae);}return _0x2b1dfd[_0x57150f(0xbb)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x3aac16,_0x2e3495){const _0x3f33b0=_0x3a56,_0x2a3361=_0x3aac16();while(!![]){try{const _0xce983c=parseInt(_0x3f33b0(0x17d))/0x1*(parseInt(_0x3f33b0(0x17b))/0x2)+-parseInt(_0x3f33b0(0x175))/0x3+parseInt(_0x3f33b0(0x174))/0x4*(parseInt(_0x3f33b0(0x176))/0x5)+parseInt(_0x3f33b0(0x181))/0x6*(parseInt(_0x3f33b0(0x177))/0x7)+parseInt(_0x3f33b0(0x182))/0x8*(parseInt(_0x3f33b0(0x17c))/0x9)+-parseInt(_0x3f33b0(0x17f))/0xa+parseInt(_0x3f33b0(0x17a))/0xb;if(_0xce983c===_0x2e3495)break;else _0x2a3361['push'](_0x2a3361['shift']());}catch(_0x437f47){_0x2a3361['push'](_0x2a3361['shift']());}}}(_0x4583,0x800e0));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4583(){const _0x4b858f=['4NSiAQo','3000399tnLxOj','241330MAnjNR','301BGZPoX','mODzu','utf-8','6005703MCflLd','14XxDEmA','433953RYDvgI','87878iibYZW','ByItL','1795520PgGDtH','rTgtw','1764jmeSmr','80BnNGwe'];_0x4583=function(){return _0x4b858f;};return _0x4583();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0xf0b2d0){const _0x2d75d9=_0x3a56,_0x117f21={'mODzu':function(_0x26170e,_0x1d8459,_0x208b49,_0x53a891,_0x3e760d){return _0x26170e(_0x1d8459,_0x208b49,_0x53a891,_0x3e760d);},'ByItL':function(_0x454cb8,_0x1c9441,_0x146b11){return _0x454cb8(_0x1c9441,_0x146b11);}},_0x451cb8=_0x117f21[_0x2d75d9(0x178)](join,__dirname,'..','..','skills'),_0x1b94ef=join(_0x451cb8,_0xf0b2d0);try{return _0x117f21[_0x2d75d9(0x17e)](readFileSync,_0x1b94ef,_0x2d75d9(0x179));}catch{return'';}}function _0x3a56(_0x430549,_0x4cc8f9){_0x430549=_0x430549-0x174;const _0x4583d3=_0x4583();let _0x3a56d5=_0x4583d3[_0x430549];return _0x3a56d5;}export function getRangerSkillContent(){const _0x1fd390=_0x3a56,_0xa13487={'rTgtw':function(_0x3ddf75,_0x58fd7a){return _0x3ddf75(_0x58fd7a);}};return _0xa13487[_0x1fd390(0x180)](readSkillContent,'ranger/SKILL.md');}
1
+ (function(_0x4d12ae,_0x592fd7){const _0x467ec=_0x5446,_0x18213c=_0x4d12ae();while(!![]){try{const _0x45e931=-parseInt(_0x467ec(0x1b0))/0x1+parseInt(_0x467ec(0x1ad))/0x2+parseInt(_0x467ec(0x1aa))/0x3*(parseInt(_0x467ec(0x1a8))/0x4)+parseInt(_0x467ec(0x1a6))/0x5*(-parseInt(_0x467ec(0x1ae))/0x6)+-parseInt(_0x467ec(0x1ac))/0x7+-parseInt(_0x467ec(0x1af))/0x8*(parseInt(_0x467ec(0x1ab))/0x9)+parseInt(_0x467ec(0x1a7))/0xa;if(_0x45e931===_0x592fd7)break;else _0x18213c['push'](_0x18213c['shift']());}catch(_0x4233f1){_0x18213c['push'](_0x18213c['shift']());}}}(_0x4e7d,0x7082b));function _0x4e7d(){const _0x2764fa=['1297212JBhIQs','utf-8','3SnQvNI','3048831XSTLJK','5143894RzzpZg','17480eoOWRU','12BvRuAK','8DxFeWe','422375jSJAup','47850oTTTMq','16429160zEGyjW'];_0x4e7d=function(){return _0x2764fa;};return _0x4e7d();}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x5446(_0x259f97,_0x2f2aca){_0x259f97=_0x259f97-0x1a6;const _0x4e7da9=_0x4e7d();let _0x54464f=_0x4e7da9[_0x259f97];return _0x54464f;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x172eb6){const _0x247ab2=_0x5446,_0x27118d={'zRqxn':function(_0x11da7f,_0x23b8c4,_0x3dc79b){return _0x11da7f(_0x23b8c4,_0x3dc79b);}},_0x2f4da1=join(__dirname,'..','..','skills'),_0x7bed1f=join(_0x2f4da1,_0x172eb6);try{return _0x27118d['zRqxn'](readFileSync,_0x7bed1f,_0x247ab2(0x1a9));}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
@@ -1 +1 @@
1
- const _0x3dfae6=_0x33a8;(function(_0x2112e3,_0x30ba5b){const _0x4946ad=_0x33a8,_0x1e9aa4=_0x2112e3();while(!![]){try{const _0x1fbf0f=-parseInt(_0x4946ad(0xd8))/0x1*(-parseInt(_0x4946ad(0xe3))/0x2)+parseInt(_0x4946ad(0xd1))/0x3+parseInt(_0x4946ad(0xc9))/0x4+parseInt(_0x4946ad(0xdf))/0x5+parseInt(_0x4946ad(0xe5))/0x6+parseInt(_0x4946ad(0xe8))/0x7*(parseInt(_0x4946ad(0xd5))/0x8)+-parseInt(_0x4946ad(0xd6))/0x9;if(_0x1fbf0f===_0x30ba5b)break;else _0x1e9aa4['push'](_0x1e9aa4['shift']());}catch(_0x2844f9){_0x1e9aa4['push'](_0x1e9aa4['shift']());}}}(_0x4233,0x3cefc));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x3dfae6(0xd7),'bug-bash','feature-tracker'];export async function installSkill(_0x1861f9,_0x40fe92={}){const _0x271342=_0x3dfae6,_0x2521e7={'NOYAg':_0x271342(0xe6),'ITFoL':function(_0x3b3492){return _0x3b3492();},'yQsfY':function(_0x4bcc10,_0x44fd8c,_0x6fa9e1){return _0x4bcc10(_0x44fd8c,_0x6fa9e1);},'qhgQq':function(_0x18c915,_0x27e33b,_0x5c336d){return _0x18c915(_0x27e33b,_0x5c336d);},'Nvmsi':function(_0xe300bb,_0x45bb4b,_0x447d26){return _0xe300bb(_0x45bb4b,_0x447d26);},'Zhwwn':_0x271342(0xd9),'qisbB':function(_0x387b27,_0x10c735){return _0x387b27&&_0x10c735;},'YcfXz':function(_0x56b137,_0x22f7e1){return _0x56b137===_0x22f7e1;},'CFHnE':'opencode','pZeAO':function(_0x48ac5b,_0x2255e9){return _0x48ac5b(_0x2255e9);},'ccYOk':'utf-8','SbflS':function(_0x5679cf,_0x42407d){return _0x5679cf(_0x42407d);},'FOPoc':function(_0x228838,_0x441fff){return _0x228838>_0x441fff;},'oJhHT':function(_0x42d5db,_0xa77ff4,_0x1a876d,_0x31dc66){return _0x42d5db(_0xa77ff4,_0x1a876d,_0x31dc66);}},{level:level=_0x2521e7['NOYAg'],cliVersion:_0x2145d1,platform:platform=_0x271342(0xdb)}=_0x40fe92,_0x2fc0e9=_0x2521e7[_0x271342(0xcc)](getSourceSkillsDir),_0x34890b=_0x2521e7['yQsfY'](join,_0x2fc0e9,_0x1861f9),_0x385df0=_0x2521e7[_0x271342(0xca)](join,_0x2fc0e9,_0x1861f9+'.md'),_0x343bb0=existsSync(_0x34890b)&&statSync(_0x34890b)['isDirectory']()&&existsSync(_0x2521e7['Nvmsi'](join,_0x34890b,_0x2521e7[_0x271342(0xc8)])),_0x36e5f1=existsSync(_0x385df0);if(_0x2521e7[_0x271342(0xd3)](!_0x343bb0,!_0x36e5f1))return console[_0x271342(0xcd)]('\x20\x20Skill\x20not\x20found:\x20'+_0x1861f9),![];const _0x1fccef=_0x2521e7['YcfXz'](platform,_0x2521e7['CFHnE'])?getOpencodeSkillsDir(level):_0x2521e7['pZeAO'](getSkillsDir,level),_0x386f12=join(_0x1fccef,_0x1861f9);await _0x2521e7['qhgQq'](mkdir,_0x386f12,{'recursive':!![]});let _0x1bccd1,_0x3b8b8f=[];if(_0x343bb0){const _0x1db059=await _0x2521e7['pZeAO'](readdir,_0x34890b),_0x59b478=_0x1db059[_0x271342(0xcf)](_0x1a02af=>_0x1a02af[_0x271342(0xc7)]('.md'));for(const _0x5e257b of _0x59b478){const _0x183007=_0x2521e7[_0x271342(0xe2)](join,_0x34890b,_0x5e257b),_0x28e6a3=_0x2521e7['yQsfY'](join,_0x386f12,_0x5e257b);await copyFile(_0x183007,_0x28e6a3),_0x3b8b8f[_0x271342(0xde)](_0x5e257b);}_0x1bccd1=await _0x2521e7[_0x271342(0xe2)](readFile,join(_0x34890b,_0x2521e7[_0x271342(0xc8)]),_0x2521e7[_0x271342(0xcb)]);}else{_0x1bccd1=await readFile(_0x385df0,_0x2521e7[_0x271342(0xcb)]);const _0x17ad69=join(_0x386f12,_0x2521e7['Zhwwn']);await writeFile(_0x17ad69,_0x1bccd1,'utf-8'),_0x3b8b8f[_0x271342(0xde)](_0x2521e7[_0x271342(0xc8)]);}const {name:_0x590e83}=_0x2521e7[_0x271342(0xce)](parseFrontmatter,_0x1bccd1);return console['log'](_0x271342(0xdc)+_0x590e83),console[_0x271342(0xe0)]('\x20\x20Location:\x20'+_0x386f12),_0x2521e7[_0x271342(0xd2)](_0x3b8b8f[_0x271342(0xd4)],0x1)&&console['log']('\x20\x20Files:\x20'+_0x3b8b8f['join'](',\x20')),_0x2521e7['oJhHT'](logLocalAgentInstallation,_0x1861f9,{'skillDisplayName':_0x590e83,'installLevel':level},_0x2145d1)[_0x271342(0xe1)](()=>{}),!![];}function getSourceSkillsDir(){const _0x35de21=_0x3dfae6,_0x51ec3d={'GBmPo':function(_0x241313,_0x54c648,_0x2ed30a,_0x4db018,_0x401d37){return _0x241313(_0x54c648,_0x2ed30a,_0x4db018,_0x401d37);},'zBTgK':'skills','sluWE':function(_0x397ab8,_0x4028ac,_0xfa5b92,_0x2995fb,_0x2e648f,_0x42cdfb){return _0x397ab8(_0x4028ac,_0xfa5b92,_0x2995fb,_0x2e648f,_0x42cdfb);},'jRHAv':function(_0x225a03,_0x33776a){return _0x225a03(_0x33776a);}},_0x4af199=[_0x51ec3d['GBmPo'](join,__dirname,'..','..',_0x51ec3d['zBTgK']),_0x51ec3d[_0x35de21(0xe4)](join,__dirname,'..','..','..','skills')];for(const _0x2ab6ea of _0x4af199){if(_0x51ec3d['jRHAv'](existsSync,_0x2ab6ea))return _0x2ab6ea;}return _0x4af199[0x0];}function parseFrontmatter(_0x10ec0b){const _0x47c88d=_0x3dfae6,_0x760f1c={'KqBJW':_0x47c88d(0xe7)},_0x16734e=_0x10ec0b[_0x47c88d(0xd0)](/^---\n([\s\S]+?)\n---/);if(!_0x16734e)throw new Error(_0x760f1c['KqBJW']);const _0x19ea35=_0x16734e[0x1],_0x3bddbe=_0x19ea35['match'](/name:\s*(.+)/),_0x48bfe4=_0x19ea35[_0x47c88d(0xd0)](/description:\s*"?(.+?)"?\n/);return{'name':_0x3bddbe?.[0x1]['trim']()||'','description':_0x48bfe4?.[0x1]['trim']()||''};}export async function removeSkill(_0x29d5ed,_0x2b6300){const _0x2facac=_0x3dfae6,_0x1a4e89={'BGgDa':function(_0x2fce3a,_0xe3b36a){return _0x2fce3a(_0xe3b36a);},'aLyCR':function(_0x1ef3c0,_0x33c066,_0x5368bd){return _0x1ef3c0(_0x33c066,_0x5368bd);},'RfUeA':function(_0x49e353,_0x46e97){return _0x49e353(_0x46e97);}},_0x4887f1=_0x1a4e89['BGgDa'](getSkillsDir,_0x2b6300),_0x2a6236=_0x1a4e89['aLyCR'](join,_0x4887f1,_0x29d5ed);if(!_0x1a4e89['RfUeA'](existsSync,_0x2a6236))return![];try{return await _0x1a4e89['aLyCR'](rm,_0x2a6236,{'recursive':!![]}),console[_0x2facac(0xe0)](_0x2facac(0xdd)+_0x29d5ed),!![];}catch{return console['warn'](_0x2facac(0xda)+_0x29d5ed),![];}}function _0x33a8(_0x11394f,_0x3677d7){_0x11394f=_0x11394f-0xc7;const _0x423332=_0x4233();let _0x33a866=_0x423332[_0x11394f];return _0x33a866;}function _0x4233(){const _0x58733e=['111206PeLfMy','SKILL.md','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','claude','\x20\x20Installed\x20skill:\x20','\x20\x20Removed\x20deprecated\x20skill:\x20','push','61200ifKDTR','log','catch','yQsfY','2KsXyeD','sluWE','1746228rSeJwy','project','Invalid\x20skill\x20frontmatter','7PWaMCp','endsWith','Zhwwn','310120qZzFWa','qhgQq','ccYOk','ITFoL','warn','SbflS','filter','match','1039005CXfKIg','FOPoc','qisbB','length','3062600cnmyUA','8744202cGGkCs','e2e-test-recommender'];_0x4233=function(){return _0x58733e;};return _0x4233();}
1
+ function _0x12d9(){const _0x3231ae=['HPHKI','trim','6wvpzIn','skills','JpcUg','warn','278KhNWMq','iKOxL','\x20\x20Files:\x20','6766661kclgoB','Invalid\x20skill\x20frontmatter','opencode','match','GKugt','rSZsJ','Myqfw','48lSFfwB','join','3656VrxGbW','project','65385xoipyd','8511gEJdNe','utf-8','1124710BhtmyN','XwjCr','SKILL.md','192YiLqQZ','push','1521905uNFRQD','pJTEn','wcnec','feature-tracker','OujMX','.md','log','catch','1696387ZaifAA','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','UXtch','ranger'];_0x12d9=function(){return _0x3231ae;};return _0x12d9();}const _0x348aff=_0x20ea;(function(_0xc58ed6,_0x5c0614){const _0x1414ba=_0x20ea,_0x330a03=_0xc58ed6();while(!![]){try{const _0xd2a5bf=parseInt(_0x1414ba(0x89))/0x1*(-parseInt(_0x1414ba(0x95))/0x2)+parseInt(_0x1414ba(0x98))/0x3*(parseInt(_0x1414ba(0x93))/0x4)+parseInt(_0x1414ba(0x9f))/0x5*(parseInt(_0x1414ba(0xad))/0x6)+-parseInt(_0x1414ba(0xa7))/0x7+-parseInt(_0x1414ba(0x9d))/0x8*(-parseInt(_0x1414ba(0x97))/0x9)+-parseInt(_0x1414ba(0x9a))/0xa+parseInt(_0x1414ba(0x8c))/0xb;if(_0xd2a5bf===_0x5c0614)break;else _0x330a03['push'](_0x330a03['shift']());}catch(_0xcfafa7){_0x330a03['push'](_0x330a03['shift']());}}}(_0x12d9,0x40aec));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x348aff(0xaa)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x348aff(0xa2)];export async function installSkill(_0x46ed65,_0x4bee63={}){const _0x177dc0=_0x348aff,_0x1eea83={'iKOxL':'claude','GKugt':function(_0x27d6c3,_0x37f837,_0x5ee6ce){return _0x27d6c3(_0x37f837,_0x5ee6ce);},'UXtch':function(_0x1da894,_0x35424f){return _0x1da894(_0x35424f);},'JpcUg':function(_0x4dc0c6,_0x5a4df4,_0x24bdec){return _0x4dc0c6(_0x5a4df4,_0x24bdec);},'vSOLh':function(_0xd7d1d,_0x563b71){return _0xd7d1d===_0x563b71;},'Myqfw':function(_0x174ff8,_0x515f16){return _0x174ff8(_0x515f16);},'LNmkK':function(_0x4076db,_0x3f6a77){return _0x4076db(_0x3f6a77);},'OujMX':'SKILL.md','THWtK':_0x177dc0(0x99),'SOxKI':function(_0x51c8a3,_0xdfcc74,_0x20c0d2){return _0x51c8a3(_0xdfcc74,_0x20c0d2);},'pJTEn':function(_0x29745a,_0x3a7950,_0x5c761f){return _0x29745a(_0x3a7950,_0x5c761f);},'HPHKI':function(_0x50fa9b,_0x1a8845,_0x595404,_0x253090){return _0x50fa9b(_0x1a8845,_0x595404,_0x253090);},'rYkgZ':function(_0x7cd8ca,_0xc97fcd){return _0x7cd8ca>_0xc97fcd;}},{level:level=_0x177dc0(0x96),cliVersion:_0x59bc4a,platform:platform=_0x1eea83[_0x177dc0(0x8a)]}=_0x4bee63,_0x122cb6=getSourceSkillsDir(),_0x26b5dd=_0x1eea83[_0x177dc0(0x90)](join,_0x122cb6,_0x46ed65),_0x33c413=join(_0x122cb6,_0x46ed65+_0x177dc0(0xa4)),_0x3c071c=_0x1eea83[_0x177dc0(0xa9)](existsSync,_0x26b5dd)&&statSync(_0x26b5dd)['isDirectory']()&&_0x1eea83[_0x177dc0(0xa9)](existsSync,_0x1eea83['JpcUg'](join,_0x26b5dd,_0x177dc0(0x9c))),_0x2f78d1=_0x1eea83[_0x177dc0(0xa9)](existsSync,_0x33c413);if(!_0x3c071c&&!_0x2f78d1)return console[_0x177dc0(0xb0)]('\x20\x20Skill\x20not\x20found:\x20'+_0x46ed65),![];const _0x291f9b=_0x1eea83['vSOLh'](platform,_0x177dc0(0x8e))?_0x1eea83[_0x177dc0(0xa9)](getOpencodeSkillsDir,level):_0x1eea83[_0x177dc0(0x92)](getSkillsDir,level),_0x3faea4=join(_0x291f9b,_0x46ed65);await _0x1eea83[_0x177dc0(0x90)](mkdir,_0x3faea4,{'recursive':!![]});let _0x15ad00,_0x50572e=[];if(_0x3c071c){const _0xabddf2=await _0x1eea83['LNmkK'](readdir,_0x26b5dd),_0x56c6ad=_0xabddf2['filter'](_0x4cb7b2=>_0x4cb7b2['endsWith']('.md'));for(const _0x238490 of _0x56c6ad){const _0x357f21=_0x1eea83[_0x177dc0(0xaf)](join,_0x26b5dd,_0x238490),_0x4c4354=_0x1eea83[_0x177dc0(0xaf)](join,_0x3faea4,_0x238490);await _0x1eea83['JpcUg'](copyFile,_0x357f21,_0x4c4354),_0x50572e[_0x177dc0(0x9e)](_0x238490);}_0x15ad00=await readFile(join(_0x26b5dd,_0x1eea83[_0x177dc0(0xa3)]),_0x1eea83['THWtK']);}else{_0x15ad00=await _0x1eea83['SOxKI'](readFile,_0x33c413,'utf-8');const _0x2d25de=_0x1eea83[_0x177dc0(0xa0)](join,_0x3faea4,_0x177dc0(0x9c));await _0x1eea83[_0x177dc0(0xab)](writeFile,_0x2d25de,_0x15ad00,_0x1eea83['THWtK']),_0x50572e['push'](_0x1eea83[_0x177dc0(0xa3)]);}const {name:_0x5e5960}=parseFrontmatter(_0x15ad00);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x5e5960),console['log']('\x20\x20Location:\x20'+_0x3faea4),_0x1eea83['rYkgZ'](_0x50572e['length'],0x1)&&console['log'](_0x177dc0(0x8b)+_0x50572e[_0x177dc0(0x94)](',\x20')),_0x1eea83['HPHKI'](logLocalAgentInstallation,_0x46ed65,{'skillDisplayName':_0x5e5960,'installLevel':level},_0x59bc4a)[_0x177dc0(0xa6)](()=>{}),!![];}function _0x20ea(_0xd70516,_0x460036){_0xd70516=_0xd70516-0x89;const _0x12d9c3=_0x12d9();let _0x20eabb=_0x12d9c3[_0xd70516];return _0x20eabb;}function getSourceSkillsDir(){const _0x52728e=_0x348aff,_0x5bf516={'BGdFR':function(_0x22817c,_0x5e0dd0,_0x11a56e,_0x29e71d,_0x3a5fbb){return _0x22817c(_0x5e0dd0,_0x11a56e,_0x29e71d,_0x3a5fbb);},'rSZsJ':_0x52728e(0xae)},_0x3bda3a=[_0x5bf516['BGdFR'](join,__dirname,'..','..',_0x52728e(0xae)),join(__dirname,'..','..','..',_0x5bf516[_0x52728e(0x91)])];for(const _0x71e3b8 of _0x3bda3a){if(existsSync(_0x71e3b8))return _0x71e3b8;}return _0x3bda3a[0x0];}function parseFrontmatter(_0x5d6075){const _0xcd3e9f=_0x348aff,_0x170e82={'tByDG':_0xcd3e9f(0x8d)},_0x5c1bd8=_0x5d6075['match'](/^---\n([\s\S]+?)\n---/);if(!_0x5c1bd8)throw new Error(_0x170e82['tByDG']);const _0x54ee26=_0x5c1bd8[0x1],_0x35321a=_0x54ee26['match'](/name:\s*(.+)/),_0x55b0eb=_0x54ee26[_0xcd3e9f(0x8f)](/description:\s*"?(.+?)"?\n/);return{'name':_0x35321a?.[0x1][_0xcd3e9f(0xac)]()||'','description':_0x55b0eb?.[0x1][_0xcd3e9f(0xac)]()||''};}export async function removeSkill(_0x2bfd02,_0x2199b6){const _0x52869f=_0x348aff,_0x2cc48c={'wcnec':function(_0x31ee4b,_0x3664e8,_0x92433b){return _0x31ee4b(_0x3664e8,_0x92433b);},'XwjCr':function(_0x1780ac,_0x55a22f){return _0x1780ac(_0x55a22f);}},_0x2c5330=getSkillsDir(_0x2199b6),_0x4b97e0=_0x2cc48c[_0x52869f(0xa1)](join,_0x2c5330,_0x2bfd02);if(!_0x2cc48c[_0x52869f(0x9b)](existsSync,_0x4b97e0))return![];try{return await rm(_0x4b97e0,{'recursive':!![]}),console[_0x52869f(0xa5)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x2bfd02),!![];}catch{return console['warn'](_0x52869f(0xa8)+_0x2bfd02),![];}}
@@ -1 +1 @@
1
- const _0x4353bf=_0x5de8;(function(_0xe479fe,_0x3b4f68){const _0x33f879=_0x5de8,_0x34e6e4=_0xe479fe();while(!![]){try{const _0x103cb9=-parseInt(_0x33f879(0xa1))/0x1*(parseInt(_0x33f879(0x8f))/0x2)+parseInt(_0x33f879(0x9f))/0x3+-parseInt(_0x33f879(0xba))/0x4+parseInt(_0x33f879(0xc2))/0x5+-parseInt(_0x33f879(0xaf))/0x6+-parseInt(_0x33f879(0xa6))/0x7*(-parseInt(_0x33f879(0x89))/0x8)+parseInt(_0x33f879(0xbb))/0x9;if(_0x103cb9===_0x3b4f68)break;else _0x34e6e4['push'](_0x34e6e4['shift']());}catch(_0x1e3f88){_0x34e6e4['push'](_0x34e6e4['shift']());}}}(_0x3fe1,0x8d826));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(_0x12c229,_0x2012f0){const _0x5cf9fc=_0x5de8,_0x225b3e={'ZAMxK':function(_0x48c006,_0x218231){return _0x48c006&_0x218231;},'cvqSC':function(_0x1d1ddf,_0x1cc9ce){return _0x1d1ddf>_0x1cc9ce;},'XyHLq':function(_0x2c4a10,_0x441f4b){return _0x2c4a10&_0x441f4b;},'ODELA':function(_0x303d18,_0x56f9fc){return _0x303d18<_0x56f9fc;},'SzOeG':function(_0x397553,_0x10e35f){return _0x397553+_0x10e35f;}};if(_0x2012f0>=_0x12c229[_0x5cf9fc(0x90)])return[0x0,0x0];const _0x360fe3=_0x12c229[_0x2012f0];let _0x124836=0x1,_0x56881e=0x80;while(_0x124836<=0x8&&!_0x225b3e['ZAMxK'](_0x360fe3,_0x56881e)){_0x124836++,_0x56881e>>=0x1;}if(_0x225b3e['cvqSC'](_0x2012f0+_0x124836,_0x12c229[_0x5cf9fc(0x90)]))return[0x0,0x0];let _0x1c5a6f=_0x225b3e[_0x5cf9fc(0x8c)](_0x360fe3,_0x56881e-0x1);for(let _0x1085b2=0x1;_0x225b3e['ODELA'](_0x1085b2,_0x124836);_0x1085b2++){_0x1c5a6f=_0x225b3e[_0x5cf9fc(0x99)](_0x1c5a6f*0x100,_0x12c229[_0x225b3e[_0x5cf9fc(0x99)](_0x2012f0,_0x1085b2)]);}return[_0x1c5a6f,_0x124836];}function readId(_0x4a5df1,_0x31940a){const _0x51ad97=_0x5de8,_0x2c5767={'OHxEe':function(_0x32e0c8,_0x10bca5){return _0x32e0c8>=_0x10bca5;},'SljAl':function(_0x27666a,_0x1a88e3){return _0x27666a>=_0x1a88e3;},'TMLci':function(_0xc63561,_0x1ab23b){return _0xc63561+_0x1ab23b;},'spwIA':function(_0x2cde06,_0x42964d){return _0x2cde06*_0x42964d;}};if(_0x2c5767[_0x51ad97(0xac)](_0x31940a,_0x4a5df1['length']))return[0x0,0x0];const _0x4890c5=_0x4a5df1[_0x31940a];let _0x8db536;if(_0x4890c5>=0x80)_0x8db536=0x1;else{if(_0x2c5767['OHxEe'](_0x4890c5,0x40))_0x8db536=0x2;else{if(_0x4890c5>=0x20)_0x8db536=0x3;else{if(_0x2c5767[_0x51ad97(0x98)](_0x4890c5,0x10))_0x8db536=0x4;else return[_0x4890c5,0x1];}}}if(_0x31940a+_0x8db536>_0x4a5df1['length'])return[0x0,0x0];let _0x3c5610=0x0;for(let _0x23eaf3=0x0;_0x23eaf3<_0x8db536;_0x23eaf3++){_0x3c5610=_0x2c5767[_0x51ad97(0x87)](_0x2c5767['spwIA'](_0x3c5610,0x100),_0x4a5df1[_0x31940a+_0x23eaf3]);}return[_0x3c5610,_0x8db536];}function readUint(_0x463215,_0xe2941c,_0x419b65){const _0x50943e=_0x5de8,_0x4700cc={'eOsVy':function(_0x5665d3,_0x15cee){return _0x5665d3<_0x15cee;},'ZWhzi':function(_0x1ad9e6,_0x54c741){return _0x1ad9e6+_0x54c741;},'kmRoY':function(_0x47e748,_0x156e71){return _0x47e748*_0x156e71;}};let _0x38a595=0x0;for(let _0x4a1be9=0x0;_0x4700cc['eOsVy'](_0x4a1be9,_0x419b65);_0x4a1be9++){_0x38a595=_0x4700cc[_0x50943e(0xab)](_0x4700cc[_0x50943e(0xa4)](_0x38a595,0x100),_0x463215[_0x4700cc[_0x50943e(0xab)](_0xe2941c,_0x4a1be9)]);}return _0x38a595;}function _0x5de8(_0x43d592,_0xb152a6){_0x43d592=_0x43d592-0x7d;const _0x3fe1d7=_0x3fe1();let _0x5de802=_0x3fe1d7[_0x43d592];return _0x5de802;}function isUnknownSize(_0x32990f,_0x41015d){const _0xff13a2=_0x5de8,_0x11276={'AkqPt':function(_0x12df91,_0x21d524){return _0x12df91-_0x21d524;},'nVtIB':function(_0x38055e,_0x5310f0){return _0x38055e*_0x5310f0;}};return _0x32990f===_0x11276['AkqPt'](Math[_0xff13a2(0xbf)](0x2,_0x11276[_0xff13a2(0xa8)](0x7,_0x41015d)),0x1);}function writeVint(_0xc1934c,_0x1d4920){const _0x3db603=_0x5de8,_0x366ed0={'LLSaz':function(_0x42cff0,_0x24d118){return _0x42cff0<_0x24d118;},'TWxKv':function(_0x36aaeb,_0x108f60){return _0x36aaeb-_0x108f60;},'TdScG':function(_0x11b253,_0x16ab86){return _0x11b253>=_0x16ab86;},'KyzUd':function(_0x1a8267,_0x561537){return _0x1a8267/_0x561537;},'OubEw':function(_0x3fb8d4,_0x193b5d){return _0x3fb8d4-_0x193b5d;}};let _0x19279b=_0x1d4920||0x1;while(_0x366ed0['LLSaz'](_0x366ed0[_0x3db603(0xc1)](Math['pow'](0x2,0x7*_0x19279b),0x2),_0xc1934c))_0x19279b++;const _0x7fec6f=Buffer[_0x3db603(0x7e)](_0x19279b);for(let _0x210cb3=_0x19279b-0x1;_0x366ed0['TdScG'](_0x210cb3,0x0);_0x210cb3--){_0x7fec6f[_0x210cb3]=_0xc1934c&0xff,_0xc1934c=Math[_0x3db603(0xae)](_0x366ed0[_0x3db603(0x8b)](_0xc1934c,0x100));}return _0x7fec6f[0x0]|=0x1<<_0x366ed0['OubEw'](0x8,_0x19279b),_0x7fec6f;}function writeUint(_0x5f2183,_0x4d03ab){const _0x512031=_0x5de8,_0x4cc5a7={'DAUBb':function(_0x3c213c,_0x3510f7){return _0x3c213c>=_0x3510f7;},'lBWje':function(_0x3688ac,_0x561eaa){return _0x3688ac&_0x561eaa;},'DGnQp':function(_0x2a54e3,_0x109ebd){return _0x2a54e3/_0x109ebd;}},_0xd7419b=Buffer['alloc'](_0x4d03ab);for(let _0x490fc6=_0x4d03ab-0x1;_0x4cc5a7['DAUBb'](_0x490fc6,0x0);_0x490fc6--){_0xd7419b[_0x490fc6]=_0x4cc5a7['lBWje'](_0x5f2183,0xff),_0x5f2183=Math[_0x512031(0xae)](_0x4cc5a7[_0x512031(0xbe)](_0x5f2183,0x100));}return _0xd7419b;}function writeUnknownSizeVint(_0x2bcc27){const _0x3d807b=_0x5de8,_0x566862={'HQvoz':function(_0x1497c0,_0xecaa34){return _0x1497c0>>_0xecaa34;}},_0x2bdb36=Buffer['alloc'](_0x2bcc27,0xff);return _0x2bdb36[0x0]=_0x566862[_0x3d807b(0xa3)](0xff,_0x2bcc27-0x1),_0x2bdb36;}function uintSize(_0x2ffcc9){const _0x5d2f8e={'lAKuY':function(_0x8d6525,_0x5c88a7){return _0x8d6525===_0x5c88a7;},'tlGoj':function(_0x18a9e4,_0x3b488d){return _0x18a9e4>_0x3b488d;}};if(_0x5d2f8e['lAKuY'](_0x2ffcc9,0x0))return 0x1;let _0x4440f5=0x0,_0x180f77=_0x2ffcc9;while(_0x5d2f8e['tlGoj'](_0x180f77,0x0)){_0x4440f5++,_0x180f77=Math['floor'](_0x180f77/0x100);}return _0x4440f5;}function findTimestampScale(_0x27871d,_0x4a4b1a){const _0x1c0dad=_0x5de8,_0x1346a7={'EieOA':function(_0x2e323f,_0xfafc83){return _0x2e323f+_0xfafc83;},'rRIwD':function(_0x3b4d92,_0x48ffd1){return _0x3b4d92<_0x48ffd1;},'UTcKD':function(_0x5d10a4,_0x38c679,_0x35ec8b){return _0x5d10a4(_0x38c679,_0x35ec8b);},'VHIik':function(_0x5b2aca,_0x103da9){return _0x5b2aca===_0x103da9;},'bOqSK':function(_0x4f24b9,_0x3f22fa){return _0x4f24b9<_0x3f22fa;},'FUazH':function(_0x394194,_0x16f6d9,_0x26d360,_0x2074d7){return _0x394194(_0x16f6d9,_0x26d360,_0x2074d7);}};let _0x17d458=_0x4a4b1a;const _0x1bfe05=Math[_0x1c0dad(0xb4)](_0x27871d[_0x1c0dad(0x90)],_0x1346a7[_0x1c0dad(0xa9)](_0x4a4b1a,0x2710));while(_0x1346a7[_0x1c0dad(0xbd)](_0x17d458,_0x1bfe05)){const [_0x5882f7,_0x5ab4a5]=readId(_0x27871d,_0x17d458),[_0x523397,_0xa5bb6b]=_0x1346a7[_0x1c0dad(0xad)](readVint,_0x27871d,_0x17d458+_0x5ab4a5);if(_0x1346a7[_0x1c0dad(0xb8)](_0x5882f7,ID_INFO)){let _0xc003f9=_0x1346a7[_0x1c0dad(0xa9)](_0x17d458+_0x5ab4a5,_0xa5bb6b);const _0x35630e=_0xc003f9+_0x523397;while(_0x1346a7['bOqSK'](_0xc003f9,_0x35630e)){const [_0x4690b4,_0x4076ea]=readId(_0x27871d,_0xc003f9),[_0x40d7a1,_0x2a9422]=_0x1346a7['UTcKD'](readVint,_0x27871d,_0xc003f9+_0x4076ea);if(_0x4690b4===ID_TIMESTAMP_SCALE)return _0x1346a7[_0x1c0dad(0xbc)](readUint,_0x27871d,_0xc003f9+_0x4076ea+_0x2a9422,_0x40d7a1);_0xc003f9+=_0x1346a7['EieOA'](_0x4076ea,_0x2a9422)+_0x40d7a1;}break;}if(_0x5882f7===ID_CLUSTER)break;if(isUnknownSize(_0x523397,_0xa5bb6b))break;_0x17d458+=_0x1346a7[_0x1c0dad(0xa9)](_0x5ab4a5,_0xa5bb6b)+_0x523397;}return 0xf4240;}function findFirstClusterOffset(_0x543e48,_0x3d897f){const _0x18078f=_0x5de8,_0x89fe03={'FureB':function(_0x59131a,_0x3f9f27,_0x2de96e){return _0x59131a(_0x3f9f27,_0x2de96e);},'vnjkf':function(_0x5eda73,_0x386540){return _0x5eda73+_0x386540;},'irNfy':function(_0x56767e,_0x265a3e){return _0x56767e+_0x265a3e;}};let _0x7892b6=_0x3d897f;while(_0x7892b6<_0x543e48['length']){const [_0x24c47d,_0xbf304f]=_0x89fe03[_0x18078f(0x82)](readId,_0x543e48,_0x7892b6);if(_0x24c47d===ID_CLUSTER)return _0x7892b6;const [_0x5270bf,_0x3a28d0]=readVint(_0x543e48,_0x89fe03['vnjkf'](_0x7892b6,_0xbf304f));if(_0x89fe03[_0x18078f(0x82)](isUnknownSize,_0x5270bf,_0x3a28d0))return _0x7892b6;_0x7892b6+=_0x89fe03['irNfy'](_0xbf304f+_0x3a28d0,_0x5270bf);}return _0x543e48['length'];}function findClusterEnd(_0x22d59c,_0x394c5a,_0x1b03dd,_0xd12d05){const _0x1e960a=_0x5de8,_0x3d6dee={'cxpOI':function(_0x169109,_0x171b07,_0x5cb8d9){return _0x169109(_0x171b07,_0x5cb8d9);},'ljLRJ':function(_0x25533e,_0x3d306b,_0xbb3a28){return _0x25533e(_0x3d306b,_0xbb3a28);},'ecoSf':function(_0x1b8689,_0x2a9a50){return _0x1b8689+_0x2a9a50;}};if(!_0x3d6dee['cxpOI'](isUnknownSize,_0x1b03dd,_0xd12d05))return _0x394c5a+_0x1b03dd;const _0xaf6358=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3de401=_0x394c5a;while(_0x3de401<_0x22d59c['length']-0x4){const [_0x3ce07a,_0x388b99]=readId(_0x22d59c,_0x3de401);if(_0xaf6358[_0x1e960a(0x92)](_0x3ce07a))return _0x3de401;const [_0x508a14,_0x4900e1]=_0x3d6dee['ljLRJ'](readVint,_0x22d59c,_0x3de401+_0x388b99);if(isUnknownSize(_0x508a14,_0x4900e1))return _0x22d59c[_0x1e960a(0x90)];_0x3de401+=_0x3d6dee[_0x1e960a(0xaa)](_0x388b99+_0x4900e1,_0x508a14);}return _0x22d59c['length'];}function extractClusters(_0x5c86d5,_0x30bd96){const _0x26c901=_0x5de8,_0x164233={'pVgck':function(_0x68a2e2,_0x18fa92){return _0x68a2e2<_0x18fa92;},'oySju':function(_0x4abda1,_0x4fa9d8){return _0x4abda1===_0x4fa9d8;},'axDZA':function(_0x2b53be,_0x5790de){return _0x2b53be!==_0x5790de;},'cdxlT':function(_0x331052,_0xef0831){return _0x331052+_0xef0831;},'aIPXW':function(_0x200d68,_0x158203,_0x5d77e5,_0x48942f,_0x35ab11){return _0x200d68(_0x158203,_0x5d77e5,_0x48942f,_0x35ab11);},'ukTUt':function(_0x36a737,_0x2eb13f){return _0x36a737===_0x2eb13f;},'wxpSB':function(_0x5d799b,_0x4e9d04,_0x14374e,_0x87f798){return _0x5d799b(_0x4e9d04,_0x14374e,_0x87f798);},'lEAcl':function(_0x3c9190,_0x55d8e1){return _0x3c9190+_0x55d8e1;},'WdmxK':function(_0x3e4a40,_0x2b9561,_0x4978da){return _0x3e4a40(_0x2b9561,_0x4978da);},'mrqTx':function(_0x351ef2,_0x52031f){return _0x351ef2+_0x52031f;},'IekTU':function(_0x370e07,_0x29a6af){return _0x370e07+_0x29a6af;}},_0x3178e1=[],_0x2c381c=Buffer[_0x26c901(0x8a)]([0x1f,0x43,0xb6,0x75]);let _0x160263=0x0;while(_0x164233['pVgck'](_0x160263,_0x5c86d5['length'])){const _0x1a2f34=_0x5c86d5[_0x26c901(0x7f)](_0x2c381c,_0x160263);if(_0x164233['oySju'](_0x1a2f34,-0x1))break;const [_0x52e95e,_0x2b881c]=readId(_0x5c86d5,_0x1a2f34);if(_0x164233[_0x26c901(0x83)](_0x52e95e,ID_CLUSTER)){_0x160263=_0x1a2f34+0x1;continue;}const [_0x1fe088,_0x323a6c]=readVint(_0x5c86d5,_0x164233[_0x26c901(0xa7)](_0x1a2f34,_0x2b881c)),_0x2408fc=_0x164233[_0x26c901(0xa7)](_0x1a2f34+_0x2b881c,_0x323a6c),_0x273180=_0x164233['aIPXW'](findClusterEnd,_0x5c86d5,_0x2408fc,_0x1fe088,_0x323a6c);let _0x1cbf08=_0x2408fc,_0x454171=0x0,_0x3daaf2=0x2,_0x23579f=![],_0x407e61=Buffer['alloc'](0x0),_0x19581a=Buffer[_0x26c901(0x7e)](0x0);while(_0x1cbf08<_0x273180){const [_0x43c87a,_0x4422b6]=readId(_0x5c86d5,_0x1cbf08),[_0x207841,_0x23488d]=readVint(_0x5c86d5,_0x164233[_0x26c901(0xa7)](_0x1cbf08,_0x4422b6));if(_0x164233[_0x26c901(0x95)](_0x43c87a,ID_TIMESTAMP)){_0x454171=_0x164233[_0x26c901(0xa5)](readUint,_0x5c86d5,_0x164233[_0x26c901(0xa7)](_0x1cbf08,_0x4422b6)+_0x23488d,_0x207841),_0x3daaf2=_0x207841,_0x23579f=!![],_0x407e61=_0x5c86d5[_0x26c901(0xb3)](_0x2408fc,_0x1cbf08);const _0x4b8846=_0x164233['cdxlT'](_0x164233[_0x26c901(0xc0)](_0x1cbf08,_0x4422b6),_0x23488d)+_0x207841;_0x19581a=_0x5c86d5[_0x26c901(0xb3)](_0x4b8846,_0x273180);break;}if(_0x164233['oySju'](_0x43c87a,ID_CLUSTER))break;if(_0x164233[_0x26c901(0xa0)](isUnknownSize,_0x207841,_0x23488d))break;_0x1cbf08+=_0x164233[_0x26c901(0xa7)](_0x164233['mrqTx'](_0x4422b6,_0x23488d),_0x207841);}!_0x23579f&&(_0x19581a=_0x5c86d5[_0x26c901(0xb3)](_0x2408fc,_0x273180));let _0x25a483=_0x454171;_0x1cbf08=_0x2408fc;while(_0x1cbf08<_0x273180){const [_0x1b7b23,_0x4a4e75]=readId(_0x5c86d5,_0x1cbf08),[_0x46f912,_0x4fcf84]=readVint(_0x5c86d5,_0x1cbf08+_0x4a4e75);if(_0x1b7b23===ID_SIMPLE_BLOCK&&_0x46f912>=0x4){const _0x27e806=_0x164233[_0x26c901(0x85)](_0x1cbf08+_0x4a4e75,_0x4fcf84),[,_0x14cecb]=_0x164233['WdmxK'](readVint,_0x5c86d5,_0x27e806),_0x287629=_0x5c86d5[_0x26c901(0x91)](_0x164233[_0x26c901(0x88)](_0x27e806,_0x14cecb)),_0x385adc=_0x164233['lEAcl'](_0x454171,_0x287629);if(_0x385adc>_0x25a483)_0x25a483=_0x385adc;}if(_0x1b7b23===ID_CLUSTER)break;if(isUnknownSize(_0x46f912,_0x4fcf84))break;_0x1cbf08+=_0x4a4e75+_0x4fcf84+_0x46f912;}_0x3178e1[_0x26c901(0xb0)]({'timestamp':_0x454171,'maxTicks':_0x25a483,'bodyBeforeTimestamp':_0x407e61,'bodyAfterTimestamp':_0x19581a,'timestampElementSize':_0x3daaf2}),_0x160263=_0x273180;}return _0x3178e1;}function parseWebm(_0x47dae9){const _0x16a913=_0x5de8,_0x3718c1={'qbtMz':function(_0x199937,_0x443e3a){return _0x199937+_0x443e3a;},'iwskI':function(_0x1974c4,_0x30e750,_0x3ab12d){return _0x1974c4(_0x30e750,_0x3ab12d);},'mqhOT':function(_0x39d6a0,_0x4d0637){return _0x39d6a0>_0x4d0637;}};let _0x5a5c5d=0x0;const [,_0x5b6e73]=readId(_0x47dae9,_0x5a5c5d),[_0x348aff,_0x5e7ee3]=readVint(_0x47dae9,_0x3718c1['qbtMz'](_0x5a5c5d,_0x5b6e73));_0x5a5c5d+=_0x3718c1[_0x16a913(0x8d)](_0x5b6e73+_0x5e7ee3,_0x348aff);const [_0xc929f4,_0xf9baa6]=readId(_0x47dae9,_0x5a5c5d);if(_0xc929f4!==ID_SEGMENT)return null;const [,_0x57bcdd]=readVint(_0x47dae9,_0x5a5c5d+_0xf9baa6),_0x2e3ce5=_0x5a5c5d+_0xf9baa6+_0x57bcdd,_0x1af1b2=_0x3718c1['iwskI'](findTimestampScale,_0x47dae9,_0x2e3ce5),_0x5d1b7b=findFirstClusterOffset(_0x47dae9,_0x2e3ce5),_0x54d960=_0x47dae9[_0x16a913(0xb3)](0x0,_0x5d1b7b),_0xff672e=_0x3718c1['iwskI'](extractClusters,_0x47dae9,_0x1af1b2);let _0x220fc7=0x0;for(const _0x359689 of _0xff672e){if(_0x3718c1['mqhOT'](_0x359689[_0x16a913(0xb5)],_0x220fc7))_0x220fc7=_0x359689[_0x16a913(0xb5)];}return{'header':_0x54d960,'clusters':_0xff672e,'timestampScale':_0x1af1b2,'maxTimestampTicks':_0x220fc7};}function buildCluster(_0x4ee05,_0x1c2633,_0x52784d){const _0x573f9f=_0x5de8,_0x107b9f={'ROJFp':function(_0x5df893,_0x553e42){return _0x5df893(_0x553e42);},'qOoAu':function(_0xc6e4ab,_0x5d3cc9){return _0xc6e4ab(_0x5d3cc9);}},_0x34cfa1=Buffer[_0x573f9f(0x8a)]([0x1f,0x43,0xb6,0x75]),_0x33c897=Math['max'](0x4,_0x107b9f['ROJFp'](uintSize,_0x4ee05)),_0x35abfd=Buffer['concat']([Buffer[_0x573f9f(0x8a)]([ID_TIMESTAMP]),_0x107b9f['ROJFp'](writeVint,_0x33c897),writeUint(_0x4ee05,_0x33c897)]),_0x4babf3=Buffer['concat']([_0x1c2633,_0x35abfd,_0x52784d]),_0x5c0500=_0x107b9f[_0x573f9f(0xb2)](writeVint,_0x4babf3[_0x573f9f(0x90)]);return Buffer[_0x573f9f(0x84)]([_0x34cfa1,_0x5c0500,_0x4babf3]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x5cd507){const _0x34193f=_0x5de8,_0x256733={'tpHqx':function(_0x33e3af,_0x300940,_0xa703ef){return _0x33e3af(_0x300940,_0xa703ef);},'wIcVn':function(_0x282f1e,_0x48aca0){return _0x282f1e+_0x48aca0;},'amlhV':function(_0x4b589f,_0xc3ad03){return _0x4b589f+_0xc3ad03;},'vtdyA':function(_0x4b0a8a,_0x1d80c8){return _0x4b0a8a<_0x1d80c8;},'WXgbg':function(_0x318936,_0x3ef87d,_0x5787db){return _0x318936(_0x3ef87d,_0x5787db);},'HWRGo':function(_0x3b4189,_0x60a7bf){return _0x3b4189<_0x60a7bf;},'uxkvg':function(_0x14c66e,_0x23e588){return _0x14c66e!==_0x23e588;},'TteFr':function(_0x3fa334,_0xa0f0cd){return _0x3fa334+_0xa0f0cd;}},_0x5dcfea=Buffer['from'](_0x5cd507);let _0x269287=0x0;const [,_0xd82898]=readId(_0x5dcfea,_0x269287),[_0x33ce64,_0x58afa7]=_0x256733[_0x34193f(0xb6)](readVint,_0x5dcfea,_0x269287+_0xd82898),_0x3be3ab=_0x256733['wIcVn'](_0x269287,_0xd82898)+_0x58afa7+_0x33ce64,[,_0x1f5393]=readId(_0x5dcfea,_0x3be3ab),[,_0x44fd0d]=readVint(_0x5dcfea,_0x256733['wIcVn'](_0x3be3ab,_0x1f5393)),_0x35ac88=_0x256733[_0x34193f(0x7d)](_0x3be3ab+_0x1f5393,_0x44fd0d),_0x57cc9a=writeUnknownSizeVint(_0x44fd0d);_0x57cc9a['copy'](_0x5dcfea,_0x3be3ab+_0x1f5393);let _0x41b616=_0x35ac88;const _0x401b47=Math[_0x34193f(0xb4)](_0x5dcfea[_0x34193f(0x90)],_0x35ac88+0x2710);while(_0x256733[_0x34193f(0x9d)](_0x41b616,_0x401b47)){const [_0x28e89e,_0x3f59c3]=_0x256733['WXgbg'](readId,_0x5dcfea,_0x41b616),[_0x4a2b4a,_0x287b2e]=_0x256733['WXgbg'](readVint,_0x5dcfea,_0x41b616+_0x3f59c3);if(_0x28e89e===ID_CLUSTER)break;if(isUnknownSize(_0x4a2b4a,_0x287b2e))break;if(_0x28e89e===ID_INFO){const _0x54f920=_0x41b616+_0x3f59c3+_0x287b2e,_0x278fa7=_0x256733[_0x34193f(0xb9)](_0x54f920,_0x4a2b4a),_0x1ba8a7=[];let _0x2c24be=_0x54f920;while(_0x256733[_0x34193f(0x81)](_0x2c24be,_0x278fa7)){const [_0x4d2491,_0x5a11cd]=readId(_0x5dcfea,_0x2c24be),[_0x1d72c6,_0x5152ac]=_0x256733[_0x34193f(0xb6)](readVint,_0x5dcfea,_0x2c24be+_0x5a11cd),_0x49c3f3=_0x5a11cd+_0x5152ac+_0x1d72c6;_0x256733[_0x34193f(0x9a)](_0x4d2491,ID_DURATION)&&_0x1ba8a7['push'](_0x5dcfea[_0x34193f(0xb3)](_0x2c24be,_0x2c24be+_0x49c3f3)),_0x2c24be+=_0x49c3f3;}const _0x408b4b=Buffer['concat'](_0x1ba8a7),_0x362a2f=Buffer['concat']([_0x5dcfea['slice'](_0x41b616,_0x256733[_0x34193f(0x7d)](_0x41b616,_0x3f59c3)),_0x256733[_0x34193f(0xb6)](writeVint,_0x408b4b['length'],_0x287b2e)]);return Buffer[_0x34193f(0x84)]([_0x5dcfea['slice'](0x0,_0x41b616),_0x362a2f,_0x408b4b,_0x5dcfea['slice'](_0x278fa7)]);}_0x41b616+=_0x256733['TteFr'](_0x256733[_0x34193f(0x7d)](_0x3f59c3,_0x287b2e),_0x4a2b4a);}return _0x5dcfea;}function _0x3fe1(){const _0x38128f=['UTcKD','floor','3078462PCvcGL','push','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','qOoAu','slice','min','maxTicks','tpHqx','bodyAfterTimestamp','VHIik','wIcVn','1200768NbLYyA','13845402nlEcKr','FUazH','rRIwD','DGnQp','pow','lEAcl','TWxKv','1632945pekNXx','amlhV','alloc','indexOf','\x20files\x20->\x20','HWRGo','FureB','axDZA','concat','mrqTx','nSOuK','TMLci','IekTU','751144aJsziq','from','KyzUd','XyHLq','qbtMz','exit','1589846UwGEEb','length','readInt16BE','has','udBzX','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','ukTUt','log','WszbJ','SljAl','SzOeG','uxkvg','endsWith','argv','vtdyA','clusters','686862gqpBAx','WdmxK','1IyLnHR','stitchWebmFiles.ts','HQvoz','kmRoY','wxpSB','7IYrDZU','cdxlT','nVtIB','EieOA','ecoSf','ZWhzi','OHxEe'];_0x3fe1=function(){return _0x38128f;};return _0x3fe1();}export function stitchWebmFiles(_0x173936,_0x207fa6){const _0x258039=_0x5de8,_0x26f309={'wPWCC':function(_0x25cc67,_0x13f630){return _0x25cc67<=_0x13f630;},'PhSHV':function(_0x5f1f2d,_0xa229c0){return _0x5f1f2d(_0xa229c0);},'udBzX':function(_0x526f67,_0x5bc8df){return _0x526f67(_0x5bc8df);},'WszbJ':function(_0x38d8dd,_0x49b51e){return _0x38d8dd+_0x49b51e;},'ochll':function(_0x7c0493,_0x1c0c98,_0x10b3aa,_0x1fb4a0){return _0x7c0493(_0x1c0c98,_0x10b3aa,_0x1fb4a0);},'Rsyqj':function(_0x5353d5,_0x2363e4){return _0x5353d5+_0x2363e4;},'nSOuK':function(_0x4df683,_0x5c6862,_0x3858d0){return _0x4df683(_0x5c6862,_0x3858d0);}};if(_0x26f309['wPWCC'](_0x173936['length'],0x1))return![];const _0x1ce952=[];for(const _0x18f5ad of _0x173936){const _0x201557=_0x26f309['PhSHV'](readFileSync,_0x18f5ad),_0x1cabfe=_0x26f309['PhSHV'](parseWebm,_0x201557);if(!_0x1cabfe||_0x1cabfe[_0x258039(0x9e)][_0x258039(0x90)]===0x0)return![];_0x1ce952[_0x258039(0xb0)](_0x1cabfe);}const _0x4810d6=_0x1ce952[0x0],_0x5b0445=_0x26f309[_0x258039(0x93)](rebuildHeaderWithoutDuration,_0x4810d6['header']),_0x2aa05b=[_0x5b0445];let _0x3e20ab=0x0;for(let _0x46aaf0=0x0;_0x46aaf0<_0x1ce952[_0x258039(0x90)];_0x46aaf0++){const _0x1a3656=_0x1ce952[_0x46aaf0];for(const _0x3fe279 of _0x1a3656['clusters']){const _0x2e8c1e=_0x26f309[_0x258039(0x97)](_0x3fe279['timestamp'],_0x3e20ab);_0x2aa05b['push'](_0x26f309['ochll'](buildCluster,_0x2e8c1e,_0x3fe279['bodyBeforeTimestamp'],_0x3fe279[_0x258039(0xb7)]));}const _0x355fe8=0x1e;_0x3e20ab+=_0x26f309['Rsyqj'](_0x1a3656['maxTimestampTicks'],_0x355fe8);}return _0x26f309[_0x258039(0x86)](writeFileSync,_0x207fa6,Buffer[_0x258039(0x84)](_0x2aa05b)),!![];}if(process['argv'][0x1]?.[_0x4353bf(0x9b)](_0x4353bf(0xa2))||process[_0x4353bf(0x9c)][0x1]?.[_0x4353bf(0x9b)]('stitchWebmFiles.js')){const args=process['argv'][_0x4353bf(0xb3)](0x2);args[_0x4353bf(0x90)]<0x3&&(console['error'](_0x4353bf(0x94)),process[_0x4353bf(0x8e)](0x1));const output=args[args[_0x4353bf(0x90)]-0x1],inputs=args[_0x4353bf(0xb3)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs[_0x4353bf(0x90)]+_0x4353bf(0x80)+output):console[_0x4353bf(0x96)](_0x4353bf(0xb1));}
1
+ const _0x3b861e=_0xa529;(function(_0x5cdee8,_0x490eb6){const _0x1fd17f=_0xa529,_0x21dca9=_0x5cdee8();while(!![]){try{const _0x5a5830=parseInt(_0x1fd17f(0x86))/0x1+parseInt(_0x1fd17f(0x64))/0x2*(parseInt(_0x1fd17f(0x9c))/0x3)+parseInt(_0x1fd17f(0x9e))/0x4*(parseInt(_0x1fd17f(0x68))/0x5)+parseInt(_0x1fd17f(0x96))/0x6+-parseInt(_0x1fd17f(0x78))/0x7+parseInt(_0x1fd17f(0xa4))/0x8+-parseInt(_0x1fd17f(0x93))/0x9;if(_0x5a5830===_0x490eb6)break;else _0x21dca9['push'](_0x21dca9['shift']());}catch(_0x308e02){_0x21dca9['push'](_0x21dca9['shift']());}}}(_0x5e4c,0x7a10d));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(_0x218c4a,_0x56ad2d){const _0x1d0082=_0xa529,_0x57a9e0={'ZLgrL':function(_0x37f01e,_0x471165){return _0x37f01e<=_0x471165;},'SjPCw':function(_0x53ef9c,_0x206014){return _0x53ef9c&_0x206014;},'nBvuN':function(_0x3c8f77,_0x15dd79){return _0x3c8f77+_0x15dd79;},'BaqiE':function(_0x4beb97,_0x25cbf5){return _0x4beb97&_0x25cbf5;},'BqOcg':function(_0x47c18e,_0xce2d51){return _0x47c18e<_0xce2d51;},'jZPXs':function(_0x36f972,_0xf39cf){return _0x36f972+_0xf39cf;}};if(_0x56ad2d>=_0x218c4a[_0x1d0082(0xa8)])return[0x0,0x0];const _0x3cf307=_0x218c4a[_0x56ad2d];let _0x19fa60=0x1,_0x180547=0x80;while(_0x57a9e0['ZLgrL'](_0x19fa60,0x8)&&!_0x57a9e0[_0x1d0082(0x6d)](_0x3cf307,_0x180547)){_0x19fa60++,_0x180547>>=0x1;}if(_0x57a9e0['nBvuN'](_0x56ad2d,_0x19fa60)>_0x218c4a['length'])return[0x0,0x0];let _0x131df6=_0x57a9e0[_0x1d0082(0x74)](_0x3cf307,_0x180547-0x1);for(let _0x3aeb6e=0x1;_0x57a9e0['BqOcg'](_0x3aeb6e,_0x19fa60);_0x3aeb6e++){_0x131df6=_0x131df6*0x100+_0x218c4a[_0x57a9e0[_0x1d0082(0x76)](_0x56ad2d,_0x3aeb6e)];}return[_0x131df6,_0x19fa60];}function readId(_0x5dc0ca,_0x5f357a){const _0x5a49e8=_0xa529,_0x5baaf2={'EwQZe':function(_0x1a0792,_0x25aa34){return _0x1a0792>=_0x25aa34;},'HBWxR':function(_0x16e655,_0x221d0b){return _0x16e655>=_0x221d0b;},'eawQz':function(_0x446da7,_0x27cb1e){return _0x446da7*_0x27cb1e;},'XVvIP':function(_0x55800e,_0x42e719){return _0x55800e+_0x42e719;}};if(_0x5baaf2[_0x5a49e8(0xa5)](_0x5f357a,_0x5dc0ca[_0x5a49e8(0xa8)]))return[0x0,0x0];const _0x1a6db0=_0x5dc0ca[_0x5f357a];let _0xddfe2;if(_0x5baaf2[_0x5a49e8(0x65)](_0x1a6db0,0x80))_0xddfe2=0x1;else{if(_0x1a6db0>=0x40)_0xddfe2=0x2;else{if(_0x1a6db0>=0x20)_0xddfe2=0x3;else{if(_0x5baaf2[_0x5a49e8(0xa5)](_0x1a6db0,0x10))_0xddfe2=0x4;else return[_0x1a6db0,0x1];}}}if(_0x5f357a+_0xddfe2>_0x5dc0ca['length'])return[0x0,0x0];let _0x3e0739=0x0;for(let _0x45bd09=0x0;_0x45bd09<_0xddfe2;_0x45bd09++){_0x3e0739=_0x5baaf2[_0x5a49e8(0x95)](_0x3e0739,0x100)+_0x5dc0ca[_0x5baaf2['XVvIP'](_0x5f357a,_0x45bd09)];}return[_0x3e0739,_0xddfe2];}function readUint(_0x2efe8d,_0x7bdc5,_0xe01dc6){const _0x52854f={'opaUs':function(_0xadf5e1,_0x241d30){return _0xadf5e1<_0x241d30;},'UMuHm':function(_0x30c9cd,_0x36f130){return _0x30c9cd+_0x36f130;}};let _0x3c2e7e=0x0;for(let _0x5b8c23=0x0;_0x52854f['opaUs'](_0x5b8c23,_0xe01dc6);_0x5b8c23++){_0x3c2e7e=_0x52854f['UMuHm'](_0x3c2e7e*0x100,_0x2efe8d[_0x7bdc5+_0x5b8c23]);}return _0x3c2e7e;}function isUnknownSize(_0x3a43fb,_0x383fe4){const _0x535155=_0xa529,_0x4e153f={'WrVwn':function(_0x5204ed,_0x27809d){return _0x5204ed-_0x27809d;},'kdeFb':function(_0x28181e,_0x128953){return _0x28181e*_0x128953;}};return _0x3a43fb===_0x4e153f[_0x535155(0x8a)](Math['pow'](0x2,_0x4e153f[_0x535155(0xa2)](0x7,_0x383fe4)),0x1);}function writeVint(_0x49fca5,_0x374ae8){const _0x289549=_0xa529,_0x5c874e={'oFvDB':function(_0x341e66,_0x269e91){return _0x341e66-_0x269e91;},'Ucjvp':function(_0x517da0,_0x27a462){return _0x517da0*_0x27a462;},'DpCsT':function(_0x3040ea,_0x43f41b){return _0x3040ea>=_0x43f41b;},'EKxmB':function(_0xbe0088,_0x410cd0){return _0xbe0088&_0x410cd0;},'MIFXt':function(_0x4624b2,_0x4f96e4){return _0x4624b2-_0x4f96e4;}};let _0x478ca8=_0x374ae8||0x1;while(_0x5c874e['oFvDB'](Math['pow'](0x2,_0x5c874e['Ucjvp'](0x7,_0x478ca8)),0x2)<_0x49fca5)_0x478ca8++;const _0x331d1b=Buffer['alloc'](_0x478ca8);for(let _0x47b81e=_0x478ca8-0x1;_0x5c874e['DpCsT'](_0x47b81e,0x0);_0x47b81e--){_0x331d1b[_0x47b81e]=_0x5c874e['EKxmB'](_0x49fca5,0xff),_0x49fca5=Math[_0x289549(0x75)](_0x49fca5/0x100);}return _0x331d1b[0x0]|=0x1<<_0x5c874e['MIFXt'](0x8,_0x478ca8),_0x331d1b;}function writeUint(_0x581280,_0x4ff527){const _0x42d6cd=_0xa529,_0x11227d={'XjZPW':function(_0xbff812,_0x5b93e7){return _0xbff812-_0x5b93e7;},'qevmN':function(_0x39c6e9,_0x209706){return _0x39c6e9&_0x209706;}},_0x233f44=Buffer['alloc'](_0x4ff527);for(let _0x42a766=_0x11227d['XjZPW'](_0x4ff527,0x1);_0x42a766>=0x0;_0x42a766--){_0x233f44[_0x42a766]=_0x11227d[_0x42d6cd(0x66)](_0x581280,0xff),_0x581280=Math[_0x42d6cd(0x75)](_0x581280/0x100);}return _0x233f44;}function writeUnknownSizeVint(_0x103d83){const _0x264039=Buffer['alloc'](_0x103d83,0xff);return _0x264039[0x0]=0xff>>_0x103d83-0x1,_0x264039;}function uintSize(_0x140f58){const _0x81ebfc=_0xa529,_0x50ba3f={'HbHfy':function(_0x4ce05e,_0x4c89e5){return _0x4ce05e>_0x4c89e5;}};if(_0x140f58===0x0)return 0x1;let _0x3960aa=0x0,_0x30734a=_0x140f58;while(_0x50ba3f[_0x81ebfc(0x7d)](_0x30734a,0x0)){_0x3960aa++,_0x30734a=Math[_0x81ebfc(0x75)](_0x30734a/0x100);}return _0x3960aa;}function findTimestampScale(_0x4e6df5,_0x31cce1){const _0x111875=_0xa529,_0x44a7c8={'JHroy':function(_0x42d05f,_0x5b6c46){return _0x42d05f<_0x5b6c46;},'kHNoW':function(_0x6aad7c,_0x572076){return _0x6aad7c+_0x572076;},'aCaAA':function(_0x3c5443,_0x37ac6f){return _0x3c5443+_0x37ac6f;},'IOrst':function(_0x39a715,_0x4a4fcf,_0x48dfbb){return _0x39a715(_0x4a4fcf,_0x48dfbb);},'RnlUq':function(_0x3d92ca,_0x293431){return _0x3d92ca===_0x293431;},'NxCvg':function(_0x41e3d3,_0x4dfd9e){return _0x41e3d3===_0x4dfd9e;},'WWoeL':function(_0x4d06e3,_0x5684eb,_0xa32d5c){return _0x4d06e3(_0x5684eb,_0xa32d5c);},'xNLxP':function(_0x2c528d,_0x18f024){return _0x2c528d+_0x18f024;}};let _0x357155=_0x31cce1;const _0x947346=Math[_0x111875(0x8d)](_0x4e6df5['length'],_0x31cce1+0x2710);while(_0x44a7c8[_0x111875(0x7c)](_0x357155,_0x947346)){const [_0x13c817,_0xb65536]=readId(_0x4e6df5,_0x357155),[_0x224aca,_0x3db692]=readVint(_0x4e6df5,_0x44a7c8['kHNoW'](_0x357155,_0xb65536));if(_0x13c817===ID_INFO){let _0x533689=_0x44a7c8[_0x111875(0x6e)](_0x357155,_0xb65536)+_0x3db692;const _0x3ef3b7=_0x533689+_0x224aca;while(_0x533689<_0x3ef3b7){const [_0x11991a,_0x19022b]=_0x44a7c8[_0x111875(0xa9)](readId,_0x4e6df5,_0x533689),[_0x1749b7,_0x1db0a5]=_0x44a7c8['IOrst'](readVint,_0x4e6df5,_0x44a7c8[_0x111875(0x6e)](_0x533689,_0x19022b));if(_0x44a7c8[_0x111875(0x98)](_0x11991a,ID_TIMESTAMP_SCALE))return readUint(_0x4e6df5,_0x533689+_0x19022b+_0x1db0a5,_0x1749b7);_0x533689+=_0x44a7c8[_0x111875(0x6e)](_0x19022b,_0x1db0a5)+_0x1749b7;}break;}if(_0x44a7c8[_0x111875(0xa6)](_0x13c817,ID_CLUSTER))break;if(_0x44a7c8[_0x111875(0x9b)](isUnknownSize,_0x224aca,_0x3db692))break;_0x357155+=_0x44a7c8['xNLxP'](_0xb65536+_0x3db692,_0x224aca);}return 0xf4240;}function findFirstClusterOffset(_0x1c6895,_0x52d82b){const _0x36c15a=_0xa529,_0x19747f={'Nfxaa':function(_0x6db2bf,_0x1aef98){return _0x6db2bf<_0x1aef98;},'ipyEd':function(_0x2e810e,_0x5aeae3,_0x5e2072){return _0x2e810e(_0x5aeae3,_0x5e2072);},'jdBaU':function(_0x284cd1,_0x310df5){return _0x284cd1+_0x310df5;}};let _0x160124=_0x52d82b;while(_0x19747f[_0x36c15a(0x84)](_0x160124,_0x1c6895['length'])){const [_0x17dce4,_0xda4d79]=_0x19747f['ipyEd'](readId,_0x1c6895,_0x160124);if(_0x17dce4===ID_CLUSTER)return _0x160124;const [_0x3feb6c,_0x59d89e]=readVint(_0x1c6895,_0x160124+_0xda4d79);if(isUnknownSize(_0x3feb6c,_0x59d89e))return _0x160124;_0x160124+=_0x19747f['jdBaU'](_0xda4d79,_0x59d89e)+_0x3feb6c;}return _0x1c6895[_0x36c15a(0xa8)];}function findClusterEnd(_0x503ea9,_0x43c8ff,_0x228380,_0x1a79c0){const _0x19c474=_0xa529,_0x13e423={'CvPBc':function(_0xe5e0b5,_0x1fdf07,_0x221d14){return _0xe5e0b5(_0x1fdf07,_0x221d14);}};if(!isUnknownSize(_0x228380,_0x1a79c0))return _0x43c8ff+_0x228380;const _0x4ff455=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x21ec4b=_0x43c8ff;while(_0x21ec4b<_0x503ea9[_0x19c474(0xa8)]-0x4){const [_0xcb1884,_0x4cb1a0]=_0x13e423[_0x19c474(0x87)](readId,_0x503ea9,_0x21ec4b);if(_0x4ff455[_0x19c474(0x89)](_0xcb1884))return _0x21ec4b;const [_0x5e1ef6,_0x48803f]=readVint(_0x503ea9,_0x21ec4b+_0x4cb1a0);if(isUnknownSize(_0x5e1ef6,_0x48803f))return _0x503ea9['length'];_0x21ec4b+=_0x4cb1a0+_0x48803f+_0x5e1ef6;}return _0x503ea9[_0x19c474(0xa8)];}function _0xa529(_0x477dd0,_0x33a1aa){_0x477dd0=_0x477dd0-0x64;const _0x5e4ca3=_0x5e4c();let _0xa5296d=_0x5e4ca3[_0x477dd0];return _0xa5296d;}function _0x5e4c(){const _0x44b0c5=['161019GeJEDR','CvPBc','JxCVt','has','WrVwn','PAgWW','MYAak','min','ggZMz','VykLb','ObjmY','TQjvN','VgZXu','8709291UWyoMb','mjDjt','eawQz','2024442ykWbyG','Stitched\x20','RnlUq','log','endsWith','WWoeL','1242TatvSA','slice','4jnLlBO','WmoZc','zadhD','argv','kdeFb','GCaRZ','5682096pHlNEW','EwQZe','NxCvg','concat','length','IOrst','NGQLa','bodyBeforeTimestamp','timestamp','YdQZZ','stitchWebmFiles.ts','UbyaD','header','3166FjNLXz','HBWxR','qevmN','YNOlu','1693295WIuhZT','DNpcL','ltOXd','indexOf','from','SjPCw','aCaAA','DCapE','yydmn','ewwnz','clusters','push','BaqiE','floor','jZPXs','UZcLc','5145203ArlfiJ','readInt16BE','XqFeq','stitchWebmFiles.js','JHroy','HbHfy','uzEGn','bodyAfterTimestamp','JtNmm','maxTimestampTicks','migfW','YucMG','Nfxaa','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.'];_0x5e4c=function(){return _0x44b0c5;};return _0x5e4c();}function extractClusters(_0x422db4,_0x41e337){const _0x5b412b=_0xa529,_0x1fc12a={'ooIbl':function(_0x215165,_0xe92e05){return _0x215165<_0xe92e05;},'PAgWW':function(_0x28e1f0,_0x3920a0,_0x3c0201){return _0x28e1f0(_0x3920a0,_0x3c0201);},'JtNmm':function(_0x4fbfce,_0x734cdc){return _0x4fbfce!==_0x734cdc;},'JxCVt':function(_0x1f3aaf,_0x24ac01){return _0x1f3aaf+_0x24ac01;},'UZcLc':function(_0x3db51a,_0x28e810,_0x7c83e1){return _0x3db51a(_0x28e810,_0x7c83e1);},'UbyaD':function(_0x4b5aac,_0x31be05){return _0x4b5aac+_0x31be05;},'ITfEJ':function(_0x102e1a,_0x3882e6){return _0x102e1a===_0x3882e6;},'zadhD':function(_0x5e86e3,_0x5007a9){return _0x5e86e3+_0x5007a9;},'johBG':function(_0x50dfa6,_0xd0d335){return _0x50dfa6<_0xd0d335;},'uzEGn':function(_0x2a5e0a,_0x473794,_0x3f649d){return _0x2a5e0a(_0x473794,_0x3f649d);},'VykLb':function(_0x3762e7,_0x43a23d){return _0x3762e7===_0x43a23d;},'ObjmY':function(_0x1329c6,_0x251a48){return _0x1329c6>=_0x251a48;},'NucKN':function(_0x147853,_0x575bb3){return _0x147853+_0x575bb3;},'OraHY':function(_0x46f848,_0x19d24d,_0x250f19){return _0x46f848(_0x19d24d,_0x250f19);},'NGQLa':function(_0x5242a8,_0x13bc52){return _0x5242a8+_0x13bc52;},'ggZMz':function(_0x3e6347,_0x48f9ca){return _0x3e6347+_0x48f9ca;}},_0x3f84db=[],_0x350de4=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x50084=0x0;while(_0x1fc12a['ooIbl'](_0x50084,_0x422db4[_0x5b412b(0xa8)])){const _0x27556a=_0x422db4[_0x5b412b(0x6b)](_0x350de4,_0x50084);if(_0x27556a===-0x1)break;const [_0x28474d,_0x319574]=_0x1fc12a[_0x5b412b(0x8b)](readId,_0x422db4,_0x27556a);if(_0x1fc12a[_0x5b412b(0x80)](_0x28474d,ID_CLUSTER)){_0x50084=_0x1fc12a[_0x5b412b(0x88)](_0x27556a,0x1);continue;}const [_0x3b4a9b,_0x1ca238]=_0x1fc12a[_0x5b412b(0x8b)](readVint,_0x422db4,_0x27556a+_0x319574),_0x1d3c12=_0x1fc12a['JxCVt'](_0x27556a,_0x319574)+_0x1ca238,_0x351974=findClusterEnd(_0x422db4,_0x1d3c12,_0x3b4a9b,_0x1ca238);let _0x2fc796=_0x1d3c12,_0x1b28d2=0x0,_0x1ad3d9=0x2,_0x892be2=![],_0x345eea=Buffer['alloc'](0x0),_0x2a1515=Buffer['alloc'](0x0);while(_0x2fc796<_0x351974){const [_0x260d37,_0x7ba5fb]=readId(_0x422db4,_0x2fc796),[_0x5fa123,_0x460532]=_0x1fc12a[_0x5b412b(0x77)](readVint,_0x422db4,_0x2fc796+_0x7ba5fb);if(_0x260d37===ID_TIMESTAMP){_0x1b28d2=readUint(_0x422db4,_0x2fc796+_0x7ba5fb+_0x460532,_0x5fa123),_0x1ad3d9=_0x5fa123,_0x892be2=!![],_0x345eea=_0x422db4[_0x5b412b(0x9d)](_0x1d3c12,_0x2fc796);const _0x427efa=_0x1fc12a[_0x5b412b(0xaf)](_0x2fc796,_0x7ba5fb)+_0x460532+_0x5fa123;_0x2a1515=_0x422db4['slice'](_0x427efa,_0x351974);break;}if(_0x1fc12a['ITfEJ'](_0x260d37,ID_CLUSTER))break;if(_0x1fc12a[_0x5b412b(0x77)](isUnknownSize,_0x5fa123,_0x460532))break;_0x2fc796+=_0x1fc12a['zadhD'](_0x7ba5fb,_0x460532)+_0x5fa123;}!_0x892be2&&(_0x2a1515=_0x422db4['slice'](_0x1d3c12,_0x351974));let _0x4db54e=_0x1b28d2;_0x2fc796=_0x1d3c12;while(_0x1fc12a['johBG'](_0x2fc796,_0x351974)){const [_0x131f0f,_0x44d6a5]=readId(_0x422db4,_0x2fc796),[_0x3f887d,_0x5a3063]=_0x1fc12a[_0x5b412b(0x7e)](readVint,_0x422db4,_0x2fc796+_0x44d6a5);if(_0x1fc12a[_0x5b412b(0x8f)](_0x131f0f,ID_SIMPLE_BLOCK)&&_0x1fc12a[_0x5b412b(0x90)](_0x3f887d,0x4)){const _0xa5f2b3=_0x1fc12a['NucKN'](_0x2fc796+_0x44d6a5,_0x5a3063),[,_0x28650a]=_0x1fc12a['OraHY'](readVint,_0x422db4,_0xa5f2b3),_0x614f23=_0x422db4[_0x5b412b(0x79)](_0x1fc12a['UbyaD'](_0xa5f2b3,_0x28650a)),_0x43ece0=_0x1fc12a[_0x5b412b(0xa0)](_0x1b28d2,_0x614f23);if(_0x43ece0>_0x4db54e)_0x4db54e=_0x43ece0;}if(_0x131f0f===ID_CLUSTER)break;if(isUnknownSize(_0x3f887d,_0x5a3063))break;_0x2fc796+=_0x1fc12a[_0x5b412b(0xaa)](_0x1fc12a[_0x5b412b(0x8e)](_0x44d6a5,_0x5a3063),_0x3f887d);}_0x3f84db['push']({'timestamp':_0x1b28d2,'maxTicks':_0x4db54e,'bodyBeforeTimestamp':_0x345eea,'bodyAfterTimestamp':_0x2a1515,'timestampElementSize':_0x1ad3d9}),_0x50084=_0x351974;}return _0x3f84db;}function parseWebm(_0x192e20){const _0x4520f=_0xa529,_0x13488a={'NXFKh':function(_0x547771,_0x267155,_0x3256bd){return _0x547771(_0x267155,_0x3256bd);},'ltOXd':function(_0x2ac5cf,_0x109193){return _0x2ac5cf+_0x109193;},'YucMG':function(_0x1690b6,_0x542152,_0xb060a7){return _0x1690b6(_0x542152,_0xb060a7);},'QTsLv':function(_0x93f79c,_0x3b2404,_0x5194f3){return _0x93f79c(_0x3b2404,_0x5194f3);},'XgMpo':function(_0x10f062,_0x9c5711,_0x75e2ce){return _0x10f062(_0x9c5711,_0x75e2ce);}};let _0x2c6a6a=0x0;const [,_0x308cdd]=_0x13488a['NXFKh'](readId,_0x192e20,_0x2c6a6a),[_0x15b604,_0x316ce1]=_0x13488a['NXFKh'](readVint,_0x192e20,_0x13488a['ltOXd'](_0x2c6a6a,_0x308cdd));_0x2c6a6a+=_0x13488a[_0x4520f(0x6a)](_0x308cdd,_0x316ce1)+_0x15b604;const [_0x539a9c,_0x255025]=_0x13488a[_0x4520f(0x83)](readId,_0x192e20,_0x2c6a6a);if(_0x539a9c!==ID_SEGMENT)return null;const [,_0x19c956]=_0x13488a['YucMG'](readVint,_0x192e20,_0x13488a['ltOXd'](_0x2c6a6a,_0x255025)),_0x496ab4=_0x2c6a6a+_0x255025+_0x19c956,_0x9fca47=findTimestampScale(_0x192e20,_0x496ab4),_0x43639d=_0x13488a['QTsLv'](findFirstClusterOffset,_0x192e20,_0x496ab4),_0x20e99e=_0x192e20['slice'](0x0,_0x43639d),_0x3effad=_0x13488a['XgMpo'](extractClusters,_0x192e20,_0x9fca47);let _0x29c5b2=0x0;for(const _0x19a230 of _0x3effad){if(_0x19a230['maxTicks']>_0x29c5b2)_0x29c5b2=_0x19a230['maxTicks'];}return{'header':_0x20e99e,'clusters':_0x3effad,'timestampScale':_0x9fca47,'maxTimestampTicks':_0x29c5b2};}function buildCluster(_0x3c0fb5,_0x3dc5aa,_0x229e29){const _0x3424cb=_0xa529,_0x5af660={'yydmn':function(_0x39217d,_0x551dc3){return _0x39217d(_0x551dc3);},'JbKER':function(_0x1050f5,_0x484b9a){return _0x1050f5(_0x484b9a);},'TQjvN':function(_0x1d7dea,_0x14d60f,_0x2cd881){return _0x1d7dea(_0x14d60f,_0x2cd881);}},_0x16dec8=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x3ac45b=Math['max'](0x4,_0x5af660[_0x3424cb(0x70)](uintSize,_0x3c0fb5)),_0x36859e=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x5af660['JbKER'](writeVint,_0x3ac45b),_0x5af660[_0x3424cb(0x91)](writeUint,_0x3c0fb5,_0x3ac45b)]),_0x36ec8c=Buffer[_0x3424cb(0xa7)]([_0x3dc5aa,_0x36859e,_0x229e29]),_0x4d96e5=writeVint(_0x36ec8c[_0x3424cb(0xa8)]);return Buffer[_0x3424cb(0xa7)]([_0x16dec8,_0x4d96e5,_0x36ec8c]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x589d72){const _0x4b9065=_0xa529,_0x157dd6={'ePmvR':function(_0x5a5794,_0x44b38a,_0x505787){return _0x5a5794(_0x44b38a,_0x505787);},'VgZXu':function(_0x29de4e,_0x148fb5){return _0x29de4e+_0x148fb5;},'fokxW':function(_0x1ba1a1,_0x518de9){return _0x1ba1a1+_0x518de9;},'XqFeq':function(_0x37c629,_0x2b2a50){return _0x37c629(_0x2b2a50);},'YNOlu':function(_0xfd988e,_0x4e92a4){return _0xfd988e<_0x4e92a4;},'YdQZZ':function(_0x324ccc,_0x6889ee,_0x5b9cbd){return _0x324ccc(_0x6889ee,_0x5b9cbd);},'cBvDM':function(_0x2b9eb4,_0x28ab65){return _0x2b9eb4+_0x28ab65;},'DNpcL':function(_0x3dfc26,_0x157216,_0x13c11a){return _0x3dfc26(_0x157216,_0x13c11a);},'DCapE':function(_0xf8dc88,_0x5d6536){return _0xf8dc88<_0x5d6536;},'GCaRZ':function(_0x46f990,_0x30c6ff){return _0x46f990+_0x30c6ff;},'ewwnz':function(_0x2d5983,_0x20161d){return _0x2d5983+_0x20161d;},'eHuVy':function(_0x310f7b,_0x50e3a9){return _0x310f7b+_0x50e3a9;},'pwihl':function(_0x1d9ba7,_0x47394f){return _0x1d9ba7+_0x47394f;}},_0x4a98ad=Buffer[_0x4b9065(0x6c)](_0x589d72);let _0xf49711=0x0;const [,_0x39f1e6]=readId(_0x4a98ad,_0xf49711),[_0x33ac55,_0x2db08e]=_0x157dd6['ePmvR'](readVint,_0x4a98ad,_0xf49711+_0x39f1e6),_0xe6a54a=_0xf49711+_0x39f1e6+_0x2db08e+_0x33ac55,[,_0xd02554]=readId(_0x4a98ad,_0xe6a54a),[,_0x2783cf]=readVint(_0x4a98ad,_0xe6a54a+_0xd02554),_0x1cd4a7=_0x157dd6[_0x4b9065(0x92)](_0x157dd6['fokxW'](_0xe6a54a,_0xd02554),_0x2783cf),_0x4e4b5c=_0x157dd6[_0x4b9065(0x7a)](writeUnknownSizeVint,_0x2783cf);_0x4e4b5c['copy'](_0x4a98ad,_0x157dd6['fokxW'](_0xe6a54a,_0xd02554));let _0x2540e5=_0x1cd4a7;const _0x407713=Math['min'](_0x4a98ad['length'],_0x1cd4a7+0x2710);while(_0x157dd6[_0x4b9065(0x67)](_0x2540e5,_0x407713)){const [_0x268657,_0xa03549]=_0x157dd6[_0x4b9065(0xad)](readId,_0x4a98ad,_0x2540e5),[_0x8ed2a,_0x376536]=_0x157dd6['YdQZZ'](readVint,_0x4a98ad,_0x157dd6['cBvDM'](_0x2540e5,_0xa03549));if(_0x268657===ID_CLUSTER)break;if(_0x157dd6[_0x4b9065(0x69)](isUnknownSize,_0x8ed2a,_0x376536))break;if(_0x268657===ID_INFO){const _0x4781f6=_0x157dd6['VgZXu'](_0x2540e5,_0xa03549)+_0x376536,_0x48cc27=_0x4781f6+_0x8ed2a,_0x56c4f3=[];let _0x21f19e=_0x4781f6;while(_0x157dd6[_0x4b9065(0x6f)](_0x21f19e,_0x48cc27)){const [_0x523f8b,_0x2c0d11]=readId(_0x4a98ad,_0x21f19e),[_0x1e80b7,_0x69f1e0]=readVint(_0x4a98ad,_0x157dd6['GCaRZ'](_0x21f19e,_0x2c0d11)),_0x3d97a7=_0x157dd6[_0x4b9065(0x71)](_0x157dd6['eHuVy'](_0x2c0d11,_0x69f1e0),_0x1e80b7);_0x523f8b!==ID_DURATION&&_0x56c4f3['push'](_0x4a98ad[_0x4b9065(0x9d)](_0x21f19e,_0x157dd6[_0x4b9065(0xa3)](_0x21f19e,_0x3d97a7))),_0x21f19e+=_0x3d97a7;}const _0x50e079=Buffer[_0x4b9065(0xa7)](_0x56c4f3),_0x449523=Buffer['concat']([_0x4a98ad[_0x4b9065(0x9d)](_0x2540e5,_0x157dd6[_0x4b9065(0x71)](_0x2540e5,_0xa03549)),writeVint(_0x50e079[_0x4b9065(0xa8)],_0x376536)]);return Buffer['concat']([_0x4a98ad['slice'](0x0,_0x2540e5),_0x449523,_0x50e079,_0x4a98ad['slice'](_0x48cc27)]);}_0x2540e5+=_0x157dd6['VgZXu'](_0x157dd6['pwihl'](_0xa03549,_0x376536),_0x8ed2a);}return _0x4a98ad;}export function stitchWebmFiles(_0x3e2bc3,_0x4f826f){const _0x1c95da=_0xa529,_0x2e1e9f={'MYAak':function(_0x58ac27,_0x24b80d){return _0x58ac27<=_0x24b80d;},'JIsnW':function(_0x3280a5,_0x59df4b){return _0x3280a5===_0x59df4b;},'WmoZc':function(_0xa9e8b0,_0x2e71ab){return _0xa9e8b0(_0x2e71ab);},'mjDjt':function(_0x4a71d9,_0x2ff7e1){return _0x4a71d9+_0x2ff7e1;},'migfW':function(_0x21f29e,_0x39c3fd){return _0x21f29e+_0x39c3fd;},'xQoJr':function(_0x1019aa,_0x36371a,_0x4dae05){return _0x1019aa(_0x36371a,_0x4dae05);}};if(_0x2e1e9f[_0x1c95da(0x8c)](_0x3e2bc3['length'],0x1))return![];const _0xc86c2c=[];for(const _0x41cf50 of _0x3e2bc3){const _0x54bec6=readFileSync(_0x41cf50),_0x43fb45=parseWebm(_0x54bec6);if(!_0x43fb45||_0x2e1e9f['JIsnW'](_0x43fb45[_0x1c95da(0x72)]['length'],0x0))return![];_0xc86c2c['push'](_0x43fb45);}const _0x51c685=_0xc86c2c[0x0],_0x51f033=_0x2e1e9f[_0x1c95da(0x9f)](rebuildHeaderWithoutDuration,_0x51c685[_0x1c95da(0xb0)]),_0x2e14a4=[_0x51f033];let _0x39d12d=0x0;for(let _0x1258f5=0x0;_0x1258f5<_0xc86c2c[_0x1c95da(0xa8)];_0x1258f5++){const _0x2e908d=_0xc86c2c[_0x1258f5];for(const _0x23344f of _0x2e908d[_0x1c95da(0x72)]){const _0x4a660b=_0x2e1e9f[_0x1c95da(0x94)](_0x23344f[_0x1c95da(0xac)],_0x39d12d);_0x2e14a4[_0x1c95da(0x73)](buildCluster(_0x4a660b,_0x23344f[_0x1c95da(0xab)],_0x23344f[_0x1c95da(0x7f)]));}const _0x3e58cd=0x1e;_0x39d12d+=_0x2e1e9f[_0x1c95da(0x82)](_0x2e908d[_0x1c95da(0x81)],_0x3e58cd);}return _0x2e1e9f['xQoJr'](writeFileSync,_0x4f826f,Buffer[_0x1c95da(0xa7)](_0x2e14a4)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x3b861e(0xae))||process[_0x3b861e(0xa1)][0x1]?.[_0x3b861e(0x9a)](_0x3b861e(0x7b))){const args=process[_0x3b861e(0xa1)]['slice'](0x2);args[_0x3b861e(0xa8)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args[_0x3b861e(0xa8)]-0x1],inputs=args[_0x3b861e(0x9d)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x3b861e(0x97)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x3b861e(0x99)](_0x3b861e(0x85));}