@ranger-testing/ranger-cli 2.4.5 → 2.4.7
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/build/skills/ranger/SKILL.md +38 -41
- package/build/skills/ranger/create.md +5 -13
- package/build/skills/ranger/feedback.md +3 -3
- package/build/skills/ranger/start.md +13 -13
- package/build/skills/ranger/verify.md +15 -28
- package/package.json +5 -3
- package/scripts/postinstall.js +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5c68(_0x5b27a6,_0x3f0aea){_0x5b27a6=_0x5b27a6-0x109;const _0x14355d=_0x1435();let _0x5c68f7=_0x14355d[_0x5b27a6];return _0x5c68f7;}function _0x1435(){const _0x59ca58=['1287472fSsowz','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','16392LwFBWo','9yexkkv','ranger\x20profile\x20add\x20local','2941470qboPAF','140liWiqx','40065swuPns','4069595qlSFBW','3619THzRqx','724810YAzOXL','257070chzLVv'];_0x1435=function(){return _0x59ca58;};return _0x1435();}const _0x4fe616=_0x5c68;(function(_0x12e304,_0x51825a){const _0x101c5d=_0x5c68,_0x481022=_0x12e304();while(!![]){try{const _0x412edf=parseInt(_0x101c5d(0x10d))/0x1+parseInt(_0x101c5d(0x10e))/0x2+-parseInt(_0x101c5d(0x109))/0x3*(parseInt(_0x101c5d(0x114))/0x4)+parseInt(_0x101c5d(0x10a))/0x5+parseInt(_0x101c5d(0x113))/0x6+parseInt(_0x101c5d(0x10b))/0x7*(-parseInt(_0x101c5d(0x110))/0x8)+parseInt(_0x101c5d(0x111))/0x9*(-parseInt(_0x101c5d(0x10c))/0xa);if(_0x412edf===_0x51825a)break;else _0x481022['push'](_0x481022['shift']());}catch(_0x19e7a2){_0x481022['push'](_0x481022['shift']());}}}(_0x1435,0x93e23));const DEFAULT_PROFILE_COMMAND=_0x4fe616(0x112);export function formatProfileRequiredMessage(_0x58e38b){const _0x49e8b2=_0x4fe616,_0x1c9080=_0x58e38b?_0x58e38b(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x49e8b2(0x10f)+_0x1c9080+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17053a,_0x1151a8){const _0x1d885e=_0x51b0,_0x405b23=_0x17053a();while(!![]){try{const _0x455509=parseInt(_0x1d885e(0xde))/0x1+parseInt(_0x1d885e(0xe1))/0x2+-parseInt(_0x1d885e(0xda))/0x3+parseInt(_0x1d885e(0xe3))/0x4+parseInt(_0x1d885e(0xdf))/0x5*(-parseInt(_0x1d885e(0xea))/0x6)+-parseInt(_0x1d885e(0xdb))/0x7*(parseInt(_0x1d885e(0xee))/0x8)+parseInt(_0x1d885e(0xe8))/0x9*(parseInt(_0x1d885e(0xed))/0xa);if(_0x455509===_0x1151a8)break;else _0x405b23['push'](_0x405b23['shift']());}catch(_0x47cbb7){_0x405b23['push'](_0x405b23['shift']());}}}(_0x424f,0xd19b1));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x531d09=_0x51b0,_0x1cd75e={'Wsyns':function(_0x5ad0f7,_0x1387a7){return _0x5ad0f7+_0x1387a7;},'TZZtP':_0x531d09(0xe7),'WwSdC':_0x531d09(0xe5),'ftISZ':'</div>'},_0x3440ed=_0x1cd75e[_0x531d09(0xec)]('<div\x20class=\x22ranger-banner__content\x22>'+_0x531d09(0xe2)+_0x1cd75e[_0x531d09(0xdc)],'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x1cd75e[_0x531d09(0xe4)]+'</div>'+_0x1cd75e[_0x531d09(0xdd)]+_0x531d09(0xe9),_0x20959a=_0x531d09(0xeb);return _0x531d09(0xe6)+JSON[_0x531d09(0xd9)](_0x3440ed)+';\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[_0x531d09(0xd9)](_0x20959a)+_0x531d09(0xe0);})());function _0x424f(){const _0x42e458=['1639442ETmngs','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','873688WulDgp','WwSdC','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','\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__message\x22>','9Rnpaxz','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','12COZhkJ','\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','Wsyns','22644930JMYudy','32DmApdQ','stringify','1543077BCkuaB','2658425PXqEXN','TZZtP','ftISZ','1201180codBuU','4029530veUbqf',';\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'];_0x424f=function(){return _0x42e458;};return _0x424f();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x51b0(_0x23af6f,_0x22f006){_0x23af6f=_0x23af6f-0xd9;const _0x424f7b=_0x424f();let _0x51b091=_0x424f7b[_0x23af6f];return _0x51b091;}export async function addProfileSetupBanner(_0x1bde48){await _0x1bde48['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e379a,_0x1d2eb9){const _0x25b325=_0x3832,_0x25b381=_0x5e379a();while(!![]){try{const _0x1939ef=parseInt(_0x25b325(0xdf))/0x1+-parseInt(_0x25b325(0xe0))/0x2*(parseInt(_0x25b325(0xe1))/0x3)+parseInt(_0x25b325(0xe6))/0x4+parseInt(_0x25b325(0xde))/0x5+-parseInt(_0x25b325(0xe8))/0x6*(parseInt(_0x25b325(0xe5))/0x7)+parseInt(_0x25b325(0xea))/0x8*(parseInt(_0x25b325(0xec))/0x9)+-parseInt(_0x25b325(0xe4))/0xa;if(_0x1939ef===_0x1d2eb9)break;else _0x25b381['push'](_0x25b381['shift']());}catch(_0x24ed8e){_0x25b381['push'](_0x25b381['shift']());}}}(_0x3e17,0xb8a10));import{readFile}from'fs/promises';function _0x3e17(){const _0xa7b4a1=['1167233sGNscx','4394zmjTqq','1146erKZsK','object','model','17798730RlQdZH','2872597hWngiO','2850428LpBbNn','lMQdf','6ejUQSX','CdZtQ','1594744HEqcmb','string','36WuIDZJ','message','hlyzH','warn','5542630ZgabsZ'];_0x3e17=function(){return _0xa7b4a1;};return _0x3e17();}import{existsSync}from'fs';import{join}from'path';function _0x3832(_0x536ffe,_0x391b0b){_0x536ffe=_0x536ffe-0xde;const _0x3e17d5=_0x3e17();let _0x38329b=_0x3e17d5[_0x536ffe];return _0x38329b;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x42154c={'RRQBX':'config.json'};return join(getRangerDir(),_0x42154c['RRQBX']);}export async function loadRangerConfig(){const _0xbaff12=_0x3832,_0x59ec18={'CdZtQ':function(_0x4f115d,_0x5c9f84){return _0x4f115d(_0x5c9f84);},'dvTth':'utf-8','lSuEj':_0xbaff12(0xe2),'lMQdf':_0xbaff12(0xeb),'hlyzH':function(_0x4875c9,_0x2530d7){return _0x4875c9 instanceof _0x2530d7;}},_0x1df95d=getRangerConfigPath();if(!_0x59ec18[_0xbaff12(0xe9)](existsSync,_0x1df95d))return{};try{const _0x5ed0c6=await readFile(_0x1df95d,_0x59ec18['dvTth']),_0x317346=JSON['parse'](_0x5ed0c6);if(!_0x317346||typeof _0x317346!==_0x59ec18['lSuEj']||Array['isArray'](_0x317346))return{};const _0x346565={},_0x421bcf=_0x317346['model'];return typeof _0x421bcf===_0x59ec18[_0xbaff12(0xe7)]&&(_0x346565[_0xbaff12(0xe3)]=_0x421bcf),_0x346565;}catch(_0x2ff361){const _0x4927cd=_0x59ec18[_0xbaff12(0xee)](_0x2ff361,Error)?_0x2ff361[_0xbaff12(0xed)]:_0x59ec18['CdZtQ'](String,_0x2ff361);return console[_0xbaff12(0xef)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1df95d+':\x20'+_0x4927cd),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1f69(){const _0x40b647=['.ranger','203802duzfTK','446795MYRHSf','5552397maEkpb','1345256RsSNbJ','BQfOv','mrvhH','3croKzP','143mPPjRk','mFuVK','1563720iDlvaq','root','8kBfmxw','.git','64VHHogC','3338268dJDcNW','342078EWkTdd','cwd','33EgkhJz','56FeJJhP','elNmx','qNLHi'];_0x1f69=function(){return _0x40b647;};return _0x1f69();}(function(_0x18bf48,_0x40bbc5){const _0x3b6bf7=_0x4702,_0x3ebbbd=_0x18bf48();while(!![]){try{const _0x4f24bd=-parseInt(_0x3b6bf7(0x1a0))/0x1+parseInt(_0x3b6bf7(0x19d))/0x2*(-parseInt(_0x3b6bf7(0x1a3))/0x3)+-parseInt(_0x3b6bf7(0x1aa))/0x4*(parseInt(_0x3b6bf7(0x19e))/0x5)+-parseInt(_0x3b6bf7(0x1ac))/0x6*(parseInt(_0x3b6bf7(0x1af))/0x7)+-parseInt(_0x3b6bf7(0x1a8))/0x8*(-parseInt(_0x3b6bf7(0x19f))/0x9)+parseInt(_0x3b6bf7(0x1a6))/0xa*(parseInt(_0x3b6bf7(0x1ae))/0xb)+parseInt(_0x3b6bf7(0x1ab))/0xc*(parseInt(_0x3b6bf7(0x1a4))/0xd);if(_0x4f24bd===_0x40bbc5)break;else _0x3ebbbd['push'](_0x3ebbbd['shift']());}catch(_0xb95a7e){_0x3ebbbd['push'](_0x3ebbbd['shift']());}}}(_0x1f69,0xc6843));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x14c59c=_0x4702,_0x460ade={'mUpfc':function(_0x44c589,_0x5cca91){return _0x44c589(_0x5cca91);},'jzTUZ':_0x14c59c(0x19c),'VqSNE':function(_0xc280c,_0x380fbd){return _0xc280c(_0x380fbd);},'mOxiS':function(_0xd64f56,_0x462173,_0x5c018e){return _0xd64f56(_0x462173,_0x5c018e);}};let _0x55ed16=process['cwd']();const _0x1b676f=parse(_0x55ed16)[_0x14c59c(0x1a7)];while(_0x55ed16!==_0x1b676f){if(_0x460ade['mUpfc'](existsSync,join(_0x55ed16,_0x460ade['jzTUZ'])))return _0x55ed16;_0x55ed16=dirname(_0x55ed16);}if(_0x460ade['VqSNE'](existsSync,_0x460ade['mOxiS'](join,_0x1b676f,_0x460ade['jzTUZ'])))return _0x1b676f;const _0x2a7640=findGitRoot();if(_0x2a7640)return _0x2a7640;return process['cwd']();}function _0x4702(_0x146dd3,_0xb2956f){_0x146dd3=_0x146dd3-0x19c;const _0x1f6901=_0x1f69();let _0x470215=_0x1f6901[_0x146dd3];return _0x470215;}export function getRangerDir(){const _0x53c744=_0x4702,_0x819162={'mFuVK':function(_0x3ceee8,_0x2c36e5,_0x56af00){return _0x3ceee8(_0x2c36e5,_0x56af00);},'mrvhH':function(_0x1974c3){return _0x1974c3();},'qjbDb':_0x53c744(0x19c)};return _0x819162[_0x53c744(0x1a5)](join,_0x819162[_0x53c744(0x1a2)](getRangerRoot),_0x819162['qjbDb']);}export function findGitRoot(){const _0x5e9390=_0x4702,_0x33792c={'qNLHi':function(_0x12ca7f,_0x21f05d){return _0x12ca7f(_0x21f05d);},'xDkyo':function(_0x3af053,_0x37456c){return _0x3af053(_0x37456c);},'elNmx':_0x5e9390(0x1a9),'BQfOv':function(_0x3f0c6a,_0x2bfb77,_0x441963){return _0x3f0c6a(_0x2bfb77,_0x441963);}};let _0x582cd4=process[_0x5e9390(0x1ad)]();const _0x436e95=_0x33792c['qNLHi'](parse,_0x582cd4)['root'];while(_0x582cd4!==_0x436e95){if(_0x33792c['xDkyo'](existsSync,join(_0x582cd4,_0x33792c['elNmx'])))return _0x582cd4;_0x582cd4=dirname(_0x582cd4);}if(_0x33792c[_0x5e9390(0x1b1)](existsSync,_0x33792c[_0x5e9390(0x1a1)](join,_0x436e95,_0x33792c[_0x5e9390(0x1b0)])))return _0x436e95;return null;}export function getRangerHomeDir(){const _0x262c2b=_0x4702,_0x404226={'CRGhk':function(_0x10b678,_0x4c4d84,_0x338540){return _0x10b678(_0x4c4d84,_0x338540);},'iBkCA':function(_0x383b6c){return _0x383b6c();}};return _0x404226['CRGhk'](join,_0x404226['iBkCA'](homedir),_0x262c2b(0x19c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x273ae7,_0x1e8bf2){const _0x3f5c9e=_0x309b,_0x2d4044=_0x273ae7();while(!![]){try{const _0x2fc52c=-parseInt(_0x3f5c9e(0x1f6))/0x1*(-parseInt(_0x3f5c9e(0x1ed))/0x2)+-parseInt(_0x3f5c9e(0x1f2))/0x3*(parseInt(_0x3f5c9e(0x1ec))/0x4)+parseInt(_0x3f5c9e(0x1ee))/0x5*(parseInt(_0x3f5c9e(0x1f7))/0x6)+-parseInt(_0x3f5c9e(0x1f5))/0x7+parseInt(_0x3f5c9e(0x1e9))/0x8*(-parseInt(_0x3f5c9e(0x1ff))/0x9)+-parseInt(_0x3f5c9e(0x1e2))/0xa+parseInt(_0x3f5c9e(0x1df))/0xb;if(_0x2fc52c===_0x1e8bf2)break;else _0x2d4044['push'](_0x2d4044['shift']());}catch(_0x31ed40){_0x2d4044['push'](_0x2d4044['shift']());}}}(_0x33d6,0xe00f3));function _0x309b(_0x1fd268,_0xdfcd2f){_0x1fd268=_0x1fd268-0x1dd;const _0x33d6b2=_0x33d6();let _0x309b4b=_0x33d6b2[_0x1fd268];return _0x309b4b;}import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x28602a){const _0xfc6b6e=_0x309b,_0x5ef793={'VNniN':function(_0x5ce927,_0x2311c3,_0x24487a){return _0x5ce927(_0x2311c3,_0x24487a);}},_0x1f718a=[],_0x42e9ff=[];if(!existsSync(_0x28602a))return{'screenshots':_0x1f718a,'paths':_0x42e9ff};const _0x1f46de=await readdir(_0x28602a),_0x4436f2=_0x1f46de['filter'](_0x1db57=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x1db57))['sort']();for(const _0xb343a of _0x4436f2){const _0x2e870f=_0x5ef793[_0xfc6b6e(0x1f8)](join,_0x28602a,_0xb343a);_0x1f718a[_0xfc6b6e(0x1ea)]({'filename':_0xb343a,'path':_0x2e870f,'relativePath':'./'+_0xb343a}),_0x42e9ff[_0xfc6b6e(0x1ea)](_0x2e870f);}return{'screenshots':_0x1f718a,'paths':_0x42e9ff};}function getSeverityEmoji(_0x1210e9){const _0x5232c4=_0x309b,_0x5c966a={'YAjom':_0x5232c4(0x200)};switch(_0x1210e9){case _0x5232c4(0x1e3):return'🔴';case _0x5c966a['YAjom']:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x3c7624){const _0xa88c98=_0x309b,_0x3aed4b=_0x3c7624['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x111b09=_0x3aed4b['replace'](/^\d+-/,'');return _0x111b09[_0xa88c98(0x1eb)]('-')[_0xa88c98(0x1fa)](_0x19e76c=>_0x19e76c[_0xa88c98(0x1f4)](0x0)[_0xa88c98(0x1de)]()+_0x19e76c[_0xa88c98(0x1e0)](0x1))['join']('\x20');}export function generateMarkdownReport(_0x413168){const _0x47148d=_0x309b,_0x5c7691={'YFqTH':function(_0x1e5459,_0x914395){return _0x1e5459>_0x914395;},'bdmdf':function(_0x86e88b,_0x32c4e3){return _0x86e88b(_0x32c4e3);}},{sessionId:_0x45a975,task:_0x584369,url:_0x573178,success:_0x2c46c3,summary:_0x51c1d2,issues:_0x483360,screenshots:_0x557176,durationMs:_0x63eeb1,traceViewerUrl:_0x5a423b}=_0x413168,_0x1c8717=new Date()['toISOString'](),_0x1852da=(_0x63eeb1/0x3e8)['toFixed'](0x1),_0x3bcf58=[];_0x3bcf58['push']('#\x20Verification\x20Report'),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1fc)+_0x45a975+'`'),_0x3bcf58['push']('**Generated:**\x20'+_0x1c8717),_0x3bcf58['push']('**Duration:**\x20'+_0x1852da+'s'),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)]('##\x20Task'),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58['push']('**URL:**\x20'+_0x573178),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)]('>\x20'+_0x584369),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58['push'](_0x47148d(0x1e6)),_0x3bcf58['push']('');const _0x47f29a=_0x2c46c3?'✅':'❌';_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1e7)+_0x47f29a+'\x20'+(_0x2c46c3?_0x47148d(0x1ef):'ISSUES\x20FOUND')),_0x3bcf58['push'](''),_0x3bcf58['push']('###\x20Summary'),_0x3bcf58['push'](''),_0x3bcf58['push'](_0x51c1d2),_0x3bcf58[_0x47148d(0x1ea)]('');if(_0x483360&&_0x5c7691[_0x47148d(0x1f1)](_0x483360['length'],0x0)){_0x3bcf58['push'](_0x47148d(0x1dd)+_0x483360[_0x47148d(0x1f0)]+')'),_0x3bcf58[_0x47148d(0x1ea)]('');for(const _0x1a3bfd of _0x483360){const _0x3f3d4b=_0x5c7691['bdmdf'](getSeverityEmoji,_0x1a3bfd[_0x47148d(0x1e5)]);_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1e1)+_0x3f3d4b+'\x20['+_0x1a3bfd['severity']+_0x47148d(0x1fb)),_0x3bcf58['push'](''),_0x3bcf58['push'](_0x1a3bfd['description']),_0x3bcf58['push']('');if(_0x1a3bfd['screenshot']){const _0x36ba84=_0x1a3bfd[_0x47148d(0x1fe)],_0x1b515c=_0x557176[_0x47148d(0x1e4)](_0x27fcc5=>_0x27fcc5[_0x47148d(0x1f9)]===_0x36ba84||_0x27fcc5['filename'][_0x47148d(0x1f3)](_0x36ba84));_0x1b515c&&(_0x3bcf58['push']('**Screenshot:**'),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58['push'](']+')'),_0x3bcf58[_0x47148d(0x1ea)](''));}}}if(_0x5c7691['YFqTH'](_0x557176[_0x47148d(0x1f0)],0x0)){_0x3bcf58[_0x47148d(0x1ea)]('##\x20Screenshots\x20('+_0x557176['length']+')'),_0x3bcf58[_0x47148d(0x1ea)]('');for(const _0x3d2197 of _0x557176){const _0x40ae47=formatScreenshotCaption(_0x3d2197['filename']);_0x3bcf58['push']('###\x20'+_0x40ae47),_0x3bcf58['push'](''),_0x3bcf58[_0x47148d(0x1ea)]('!['+_0x3d2197['filename']+']('+_0x3d2197['relativePath']+')'),_0x3bcf58['push']('');}}return _0x5a423b&&(_0x3bcf58[_0x47148d(0x1ea)]('---'),_0x3bcf58[_0x47148d(0x1ea)](''),_0x3bcf58[_0x47148d(0x1ea)](_0x47148d(0x1fd)+_0x5a423b+')'),_0x3bcf58['push']('')),_0x3bcf58['join']('\x0a');}function _0x33d6(){const _0x1cc7cf=['###\x20Issues\x20Found\x20(','toUpperCase','17034501KaIjKA','slice','####\x20','17364820fOHyQS','BLOCKER','find','severity','##\x20Result','**Status:**\x20','relativePath','1123944NfrFxG','push','split','4DnnXTq','17614uBrZUd','5OCKiss','PASSED','length','YFqTH','1751214BmrCOL','includes','charAt','2867214SpDuAA','105THrUWL','10417290KJObwB','VNniN','filename','map',']\x20Issue','**Session:**\x20`','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','screenshot','36uTSGJr','MAJOR'];_0x33d6=function(){return _0x1cc7cf;};return _0x33d6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xbddd87,_0x43419f){const _0x2c7cde=_0x25eb,_0x2f069a=_0xbddd87();while(!![]){try{const _0x4873b0=-parseInt(_0x2c7cde(0x1a2))/0x1+parseInt(_0x2c7cde(0x1ac))/0x2*(-parseInt(_0x2c7cde(0x1a8))/0x3)+-parseInt(_0x2c7cde(0x1a5))/0x4*(parseInt(_0x2c7cde(0x1a6))/0x5)+-parseInt(_0x2c7cde(0x1ad))/0x6*(parseInt(_0x2c7cde(0x1a4))/0x7)+parseInt(_0x2c7cde(0x1a3))/0x8+parseInt(_0x2c7cde(0x19f))/0x9+parseInt(_0x2c7cde(0x1ab))/0xa;if(_0x4873b0===_0x43419f)break;else _0x2f069a['push'](_0x2f069a['shift']());}catch(_0x92d9c3){_0x2f069a['push'](_0x2f069a['shift']());}}}(_0x338d,0x79a42));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x338d(){const _0x94afea=['3300384PJJZaP','6575219oJhqoo','663848kcUgSX','10KVfyIM','label','137523fEECVD','baseDelayMs','maxRetries','20353850iAOrkR','30QFYrCh','6DRtlzE','6740775BrrSXJ','error','pow','739810JIuTAh'];_0x338d=function(){return _0x94afea;};return _0x338d();}function _0x25eb(_0x84950a,_0x3f7a53){_0x84950a=_0x84950a-0x19f;const _0x338db9=_0x338d();let _0x25eb6c=_0x338db9[_0x84950a];return _0x25eb6c;}export async function withRetry(_0x4eaac2,_0x2219c2){const _0x1ae592=_0x25eb,_0x2571ab={'QKcsj':function(_0x34d333,_0x1f751c){return _0x34d333 instanceof _0x1f751c;},'FjlBH':function(_0x1e6c06,_0x3f5c88){return _0x1e6c06*_0x3f5c88;}},_0x1312d4=_0x2219c2?.[_0x1ae592(0x1aa)]??DEFAULT_MAX_RETRIES,_0xa84981=_0x2219c2?.[_0x1ae592(0x1a9)]??DEFAULT_BASE_DELAY_MS;let _0x390320;for(let _0x2c86f1=0x0;_0x2c86f1<=_0x1312d4;_0x2c86f1++){try{return await _0x4eaac2();}catch(_0x2c808d){_0x390320=_0x2571ab['QKcsj'](_0x2c808d,Error)?_0x2c808d:new Error(String(_0x2c808d));if(_0x2c86f1<_0x1312d4){const _0x46f05f=_0x2571ab['FjlBH'](_0xa84981,Math[_0x1ae592(0x1a1)](0x2,_0x2c86f1));_0x2219c2?.[_0x1ae592(0x1a7)]&&console[_0x1ae592(0x1a0)](_0x2219c2['label']+'\x20failed\x20(attempt\x20'+(_0x2c86f1+0x1)+'/'+(_0x1312d4+0x1)+'),\x20retrying\x20in\x20'+_0x46f05f+'ms...'),await new Promise(_0x34f210=>setTimeout(_0x34f210,_0x46f05f));}}}throw _0x390320;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x314680=_0x45ce;(function(_0x388aba,_0x120763){const _0x11ccf3=_0x45ce,_0x51b7c8=_0x388aba();while(!![]){try{const _0x111c36=-parseInt(_0x11ccf3(0x130))/0x1*(parseInt(_0x11ccf3(0x125))/0x2)+parseInt(_0x11ccf3(0x151))/0x3+parseInt(_0x11ccf3(0x12e))/0x4*(-parseInt(_0x11ccf3(0x12a))/0x5)+parseInt(_0x11ccf3(0x137))/0x6+-parseInt(_0x11ccf3(0x149))/0x7+parseInt(_0x11ccf3(0x12b))/0x8+-parseInt(_0x11ccf3(0x150))/0x9*(parseInt(_0x11ccf3(0x12d))/0xa);if(_0x111c36===_0x120763)break;else _0x51b7c8['push'](_0x51b7c8['shift']());}catch(_0x3a9e8a){_0x51b7c8['push'](_0x51b7c8['shift']());}}}(_0x4554,0x36ebd));function _0x45ce(_0x38d9f3,_0xc11934){_0x38d9f3=_0x38d9f3-0x124;const _0x4554a1=_0x4554();let _0x45ce50=_0x4554a1[_0x38d9f3];return _0x45ce50;}import*as _0x427112 from'fs';import*as _0x44b1fe from'path';import*as _0x1c3e01 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x44b1fe[_0x314680(0x13c)](_0x1c3e01['homedir'](),_0x314680(0x124),_0x314680(0x13a));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3d3f2c=_0x314680;try{if(_0x427112[_0x3d3f2c(0x13f)](CACHE_FILE)){const _0x5611c6=JSON[_0x3d3f2c(0x143)](_0x427112['readFileSync'](CACHE_FILE,_0x3d3f2c(0x13b)));return{'version':0x3,'sessions':_0x5611c6['sessions']||{},'branches':_0x5611c6['branches']||{},'lastEnabledSessionClearedAt':_0x5611c6[_0x3d3f2c(0x148)]};}}catch{}return createEmptyCache();}function saveCache(_0x39ad50){try{const _0x566a0d=_0x44b1fe['dirname'](CACHE_FILE);!_0x427112['existsSync'](_0x566a0d)&&_0x427112['mkdirSync'](_0x566a0d,{'recursive':!![]}),_0x427112['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x39ad50,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5e4e7d=_0x314680,_0x3c2dbb={'FerVb':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','gPyrk':'pipe'};try{const _0x182a0d=execSync(_0x3c2dbb['FerVb'],{'encoding':'utf-8','stdio':['pipe',_0x3c2dbb[_0x5e4e7d(0x14f)],_0x3c2dbb[_0x5e4e7d(0x14f)]]})['trim']();if(!_0x182a0d||_0x182a0d==='HEAD')return null;return _0x182a0d;}catch{return null;}}export function enableBranch(_0x341231){const _0x3ce70d=_0x314680,_0x47d10b=loadCache();_0x47d10b[_0x3ce70d(0x14d)][_0x341231]=!![],saveCache(_0x47d10b);}function _0x4554(){const _0x59af0e=['IBkZM','now','existsSync','sNbbo','featureId','TbKUU','parse','lastStopReminderAt','fjjMf','ADktc','registeredAt','lastEnabledSessionClearedAt','2349809FpzxQN','vHKOF','master','kmPso','branches','jaHWW','gPyrk','45WQivVq','390405ezmYbh','enabled','.claude','38102mnmZtv','NfSoK','Mmjuu','lCiIg','YJpll','20935xwwTkd','1775264YgLucj','iTQsw','7080gUadVA','124xfAxRT','currentBranch','1bWWwYf','GmSAn','lastPlanReminderAt','PckvQ','UjZSq','main','toISOString','2165934icWkVn','XciJw','sessions','.ranger_cache.json','utf-8','join'];_0x4554=function(){return _0x59af0e;};return _0x4554();}export function disableBranch(_0x583aa9){const _0x3d8881=_0x314680,_0x199d1c={'lCiIg':function(_0x56c73b){return _0x56c73b();},'NfSoK':function(_0x40c789,_0x541261){return _0x40c789(_0x541261);}},_0x3ed1f2=_0x199d1c[_0x3d8881(0x128)](loadCache);delete _0x3ed1f2['branches'][_0x583aa9],_0x199d1c[_0x3d8881(0x126)](saveCache,_0x3ed1f2);}export function isBranchEnabled(_0x2c621c){const _0x2ed345=_0x314680,_0x5e54ce={'ALTaH':function(_0x2719c7){return _0x2719c7();},'YJpll':function(_0x486fd2,_0x51b5c9){return _0x486fd2===_0x51b5c9;}},_0x1640c1=_0x5e54ce['ALTaH'](loadCache);return _0x5e54ce[_0x2ed345(0x129)](_0x1640c1['branches'][_0x2c621c],!![]);}function getOrCreateSession(_0x2379ab,_0x5351fd){const _0x467b86=_0x314680;return!_0x2379ab[_0x467b86(0x139)][_0x5351fd]&&(_0x2379ab['sessions'][_0x5351fd]={}),_0x2379ab[_0x467b86(0x139)][_0x5351fd];}export function enableSession(_0x466691){const _0x2c3f49=_0x314680,_0x186f32={'UjZSq':function(_0x324a79){return _0x324a79();},'vNLzH':function(_0x47af79,_0x588a8c,_0x4a1965){return _0x47af79(_0x588a8c,_0x4a1965);},'HWAlS':function(_0x70e901,_0x48ba6c){return _0x70e901!==_0x48ba6c;},'iTQsw':function(_0x120894,_0x2c133f){return _0x120894!==_0x2c133f;},'Mmjuu':function(_0x4c9cc1,_0x5e4e77){return _0x4c9cc1(_0x5e4e77);}},_0x4589ec=_0x186f32[_0x2c3f49(0x134)](loadCache),_0x43107=_0x186f32['vNLzH'](getOrCreateSession,_0x4589ec,_0x466691);_0x43107[_0x2c3f49(0x152)]=!![];const _0x10a45f=getCurrentBranch();_0x10a45f&&_0x186f32['HWAlS'](_0x10a45f,'main')&&_0x186f32[_0x2c3f49(0x12c)](_0x10a45f,_0x2c3f49(0x14b))&&(_0x4589ec['branches'][_0x10a45f]=!![],_0x43107[_0x2c3f49(0x12f)]=_0x10a45f),_0x186f32[_0x2c3f49(0x127)](saveCache,_0x4589ec);}export function isSessionEnabled(_0xf284bc){const _0x54c363=_0x314680,_0x30e36e={'sNbbo':function(_0x3d8570){return _0x3d8570();},'gseyg':'master','kmPso':function(_0xbf4381,_0x968d46){return _0xbf4381===_0x968d46;},'hlwTh':function(_0x5f0bb0,_0x10cb21){return _0x5f0bb0||_0x10cb21;}},_0x3b8adc=_0x30e36e[_0x54c363(0x140)](loadCache),_0x1e1f51=getCurrentBranch();if(!_0x1e1f51||_0x1e1f51===_0x54c363(0x135)||_0x1e1f51===_0x30e36e['gseyg'])return _0x30e36e[_0x54c363(0x14c)](_0x3b8adc[_0x54c363(0x139)][_0xf284bc]?.['enabled'],!![]);const _0x386fde=_0x30e36e['kmPso'](_0x3b8adc[_0x54c363(0x14d)][_0x1e1f51],!![]),_0x1bbf26=_0x3b8adc[_0x54c363(0x139)][_0xf284bc]?.['enabled']===!![];return _0x30e36e['hlwTh'](_0x386fde,_0x1bbf26);}export function disableSession(_0x12d4ce){const _0x42e91a=_0x314680,_0x204df5={'fjjMf':function(_0x3e78de){return _0x3e78de();}},_0xacfcd6=_0x204df5[_0x42e91a(0x145)](loadCache),_0x32749f=getOrCreateSession(_0xacfcd6,_0x12d4ce);_0x32749f[_0x42e91a(0x152)]=![],saveCache(_0xacfcd6);}export function updateBranchTracking(_0x5a01b9){const _0x1f9f5b=_0x314680,_0x354bb2={'XciJw':function(_0x591768){return _0x591768();},'LBecG':'master'},_0x486d89=loadCache(),_0x2610e3=_0x486d89[_0x1f9f5b(0x139)][_0x5a01b9];if(!_0x2610e3?.[_0x1f9f5b(0x152)])return;const _0x3fde21=_0x354bb2[_0x1f9f5b(0x138)](getCurrentBranch);if(!_0x3fde21||_0x3fde21===_0x1f9f5b(0x135)||_0x3fde21===_0x354bb2['LBecG'])return;_0x2610e3[_0x1f9f5b(0x12f)]!==_0x3fde21&&(_0x486d89[_0x1f9f5b(0x14d)][_0x3fde21]=!![],_0x2610e3['currentBranch']=_0x3fde21,saveCache(_0x486d89));}export function initBranchTracking(_0x5af4ed){const _0x237b5e=_0x314680,_0x2f798d={'iPUAL':function(_0x162a74){return _0x162a74();},'IBkZM':function(_0x53f28e){return _0x53f28e();},'zieCa':function(_0x1a0144,_0xa60c8c){return _0x1a0144===_0xa60c8c;},'wkinH':'master','IiTUH':function(_0x3df1b5,_0x38aca1){return _0x3df1b5===_0x38aca1;}},_0x233199=_0x2f798d['iPUAL'](loadCache),_0x39b745=_0x2f798d[_0x237b5e(0x13d)](getCurrentBranch);if(!_0x39b745||_0x2f798d['zieCa'](_0x39b745,_0x237b5e(0x135))||_0x39b745===_0x2f798d['wkinH'])return;if(_0x2f798d['IiTUH'](_0x233199[_0x237b5e(0x14d)][_0x39b745],!![])){const _0x1fb6d6=getOrCreateSession(_0x233199,_0x5af4ed);_0x1fb6d6['enabled']=!![],_0x1fb6d6['currentBranch']=_0x39b745,saveCache(_0x233199);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2c1033){const _0x217c9f=_0x314680,_0x25cdcd={'kXEdH':function(_0x3d34ec,_0x11009f){return _0x3d34ec(_0x11009f);}},_0x2712f1=loadCache(),_0x445fba=_0x2712f1[_0x217c9f(0x139)][_0x2c1033];_0x445fba?.['enabled']&&(_0x2712f1['lastEnabledSessionClearedAt']=Date[_0x217c9f(0x13e)](),_0x25cdcd['kXEdH'](saveCache,_0x2712f1));}export function shouldAutoEnableAfterClear(_0x23732a){const _0x59e0cf=_0x314680,_0x143ebe={'OaFuq':function(_0x52eef8,_0x1be006){return _0x52eef8!==_0x1be006;},'GmSAn':'clear'};if(_0x143ebe['OaFuq'](_0x23732a,_0x143ebe[_0x59e0cf(0x131)]))return![];const _0x117e97=loadCache(),_0x34539d=_0x117e97['lastEnabledSessionClearedAt'];if(!_0x34539d)return![];const _0x3b84fa=Date[_0x59e0cf(0x13e)]()-_0x34539d;return _0x3b84fa<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x138796){const _0xc1cc80=_0x314680,_0x5b6505={'hItYj':function(_0x45b162){return _0x45b162();},'TbKUU':'main','PckvQ':function(_0xd9d722,_0xad0169){return _0xd9d722!==_0xad0169;},'TglfE':'master'},_0xe2f2b5=loadCache(),_0x22c8e8=getOrCreateSession(_0xe2f2b5,_0x138796);_0x22c8e8['enabled']=!![];const _0x33a27c=_0x5b6505['hItYj'](getCurrentBranch);_0x33a27c&&_0x33a27c!==_0x5b6505[_0xc1cc80(0x142)]&&_0x5b6505[_0xc1cc80(0x133)](_0x33a27c,_0x5b6505['TglfE'])&&(_0x22c8e8['currentBranch']=_0x33a27c),delete _0xe2f2b5[_0xc1cc80(0x148)],saveCache(_0xe2f2b5);}export function registerSession(_0x408e56,_0x55b0bb){const _0x1fef87=_0x314680,_0x2b0a0f={'tAoSx':function(_0x4d94c3){return _0x4d94c3();}},_0x483f98=_0x2b0a0f['tAoSx'](loadCache),_0x414414=getOrCreateSession(_0x483f98,_0x408e56);_0x414414[_0x1fef87(0x141)]=_0x55b0bb,_0x414414[_0x1fef87(0x147)]=new Date()[_0x1fef87(0x136)](),saveCache(_0x483f98);}export function getSessionEntry(_0x5e8af6){const _0x3d4b6f=_0x314680,_0x10094f=loadCache(),_0x3b4a78=_0x10094f['sessions'][_0x5e8af6];if(_0x3b4a78?.['featureId']&&_0x3b4a78?.['registeredAt'])return{'featureId':_0x3b4a78['featureId'],'registeredAt':_0x3b4a78[_0x3d4b6f(0x147)]};return null;}export function unregisterSession(_0x3cf57e){const _0x2e6562=_0x314680,_0x41389a={'ODBDv':function(_0x504cb3){return _0x504cb3();}},_0x3f33c6=_0x41389a['ODBDv'](loadCache),_0x1f0e0b=_0x3f33c6[_0x2e6562(0x139)][_0x3cf57e];_0x1f0e0b&&(delete _0x1f0e0b['featureId'],delete _0x1f0e0b[_0x2e6562(0x147)],saveCache(_0x3f33c6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1f8ff8){const _0x4d6821=_0x314680,_0x1a2163={'PydjN':function(_0x1b0789){return _0x1b0789();},'wdUqU':function(_0x27f46f,_0x22c49d,_0x254e29){return _0x27f46f(_0x22c49d,_0x254e29);},'jaHWW':function(_0x3a7d34,_0x156043){return _0x3a7d34>=_0x156043;},'xECHA':function(_0x4408de,_0x5d92cb){return _0x4408de-_0x5d92cb;},'ADktc':function(_0x3c9502,_0xd8c8e2){return _0x3c9502(_0xd8c8e2);}},_0x1e6eb3=_0x1a2163['PydjN'](loadCache),_0x192caa=_0x1a2163['wdUqU'](getOrCreateSession,_0x1e6eb3,_0x1f8ff8),_0x128433=_0x192caa[_0x4d6821(0x132)]||0x0,_0x1213b6=Date[_0x4d6821(0x13e)]();if(_0x1a2163[_0x4d6821(0x14e)](_0x1a2163['xECHA'](_0x1213b6,_0x128433),PLAN_REMINDER_INTERVAL_MS))return _0x192caa['lastPlanReminderAt']=_0x1213b6,_0x1a2163[_0x4d6821(0x146)](saveCache,_0x1e6eb3),!![];return![];}export function shouldShowStopReminder(_0x4caeae){const _0x35f20a=_0x314680,_0x1c3d35={'vHKOF':function(_0x410985,_0x1d0e9e,_0x52d648){return _0x410985(_0x1d0e9e,_0x52d648);}},_0x3b2308=loadCache(),_0x501cd4=_0x1c3d35[_0x35f20a(0x14a)](getOrCreateSession,_0x3b2308,_0x4caeae),_0x214b5d=_0x501cd4[_0x35f20a(0x144)]||0x0,_0x47268b=Date['now']();if(_0x47268b-_0x214b5d>=STOP_REMINDER_INTERVAL_MS)return _0x501cd4['lastStopReminderAt']=_0x47268b,saveCache(_0x3b2308),!![];return![];}export function hasSessionBeenPrompted(_0x52f1b5){const _0x150b77=_0x314680,_0x484200={'YzjVX':function(_0x13f3cc,_0x538c59){return _0x13f3cc===_0x538c59;}},_0xcad9b8=loadCache();return _0x484200['YzjVX'](_0xcad9b8[_0x150b77(0x139)][_0x52f1b5]?.['prompted'],!![]);}export function markSessionPrompted(_0x842fc9){const _0x451486={'xdsqS':function(_0x20eba9,_0x15d53d,_0x1e4971){return _0x20eba9(_0x15d53d,_0x1e4971);}},_0x210749=loadCache(),_0x5765f6=_0x451486['xdsqS'](getOrCreateSession,_0x210749,_0x842fc9);_0x5765f6['prompted']=!![],saveCache(_0x210749);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x13f291=_0x537d;(function(_0x155f18,_0xf1ad3d){const _0x566774=_0x537d,_0x51f18b=_0x155f18();while(!![]){try{const _0x414637=-parseInt(_0x566774(0x1cd))/0x1*(parseInt(_0x566774(0x1a3))/0x2)+-parseInt(_0x566774(0x1b1))/0x3+-parseInt(_0x566774(0x1aa))/0x4*(-parseInt(_0x566774(0x1c9))/0x5)+-parseInt(_0x566774(0x1a5))/0x6*(parseInt(_0x566774(0x1bf))/0x7)+parseInt(_0x566774(0x1b3))/0x8+parseInt(_0x566774(0x1c0))/0x9*(parseInt(_0x566774(0x1ca))/0xa)+parseInt(_0x566774(0x19f))/0xb;if(_0x414637===_0xf1ad3d)break;else _0x51f18b['push'](_0x51f18b['shift']());}catch(_0xc0d416){_0x51f18b['push'](_0x51f18b['shift']());}}}(_0x1189,0xed8c1));import*as _0x21dab3 from'fs';import*as _0x32b412 from'path';import*as _0x376289 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x32b412['join'](_0x376289['homedir'](),_0x13f291(0x1ad),_0x13f291(0x1a9));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x57d189=_0x13f291,_0x13b5d5={'dvYvJ':function(_0x19d1c0){return _0x19d1c0();}};try{if(_0x21dab3[_0x57d189(0x1c8)](CACHE_FILE)){const _0x32c29c=JSON['parse'](_0x21dab3[_0x57d189(0x1b5)](CACHE_FILE,_0x57d189(0x1d4)));return{'version':0x3,'sessions':_0x32c29c['sessions']||{},'branches':_0x32c29c['branches']||{},'lastEnabledSessionClearedAt':_0x32c29c[_0x57d189(0x1a8)]};}}catch{}return _0x13b5d5[_0x57d189(0x1ba)](createEmptyCache);}function saveCache(_0x24a321){const _0x4782b9=_0x13f291;try{const _0xaaf1f=_0x32b412[_0x4782b9(0x1b4)](CACHE_FILE);!_0x21dab3[_0x4782b9(0x1c8)](_0xaaf1f)&&_0x21dab3[_0x4782b9(0x1c7)](_0xaaf1f,{'recursive':!![]}),_0x21dab3[_0x4782b9(0x1d6)](CACHE_FILE,JSON[_0x4782b9(0x1b0)](_0x24a321,null,0x2));}catch{}}export function getCurrentBranch(){const _0x28d48d=_0x13f291,_0xcf7678={'GiFYl':function(_0x55bb65,_0x4f8826,_0x2e24fc){return _0x55bb65(_0x4f8826,_0x2e24fc);},'vwloa':_0x28d48d(0x1c2),'Vofnl':_0x28d48d(0x19e)};try{const _0x5c28a7=_0xcf7678['GiFYl'](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x28d48d(0x1d4),'stdio':[_0xcf7678['vwloa'],'pipe',_0xcf7678['vwloa']]})['trim']();if(!_0x5c28a7||_0x5c28a7===_0xcf7678[_0x28d48d(0x1be)])return null;return _0x5c28a7;}catch{return null;}}export function enableBranch(_0x11c7e3){const _0x276309={'zLRCq':function(_0x97ad28){return _0x97ad28();}},_0xfb0db0=_0x276309['zLRCq'](loadCache);_0xfb0db0['branches'][_0x11c7e3]=!![],saveCache(_0xfb0db0);}export function disableBranch(_0x81f6){const _0x15cb16=_0x13f291,_0x2d8c5={'pKUyn':function(_0x1979b3){return _0x1979b3();}},_0x1db695=_0x2d8c5[_0x15cb16(0x1b7)](loadCache);delete _0x1db695['branches'][_0x81f6],saveCache(_0x1db695);}export function isBranchEnabled(_0x16770b){const _0x164a31=_0x13f291,_0x888d85={'jiFvW':function(_0x316cd1,_0x2e447e){return _0x316cd1===_0x2e447e;}},_0x2cade4=loadCache();return _0x888d85['jiFvW'](_0x2cade4[_0x164a31(0x1ab)][_0x16770b],!![]);}function getOrCreateSession(_0x44260e,_0x2b7a47){const _0x1d088a=_0x13f291;return!_0x44260e['sessions'][_0x2b7a47]&&(_0x44260e[_0x1d088a(0x1d7)][_0x2b7a47]={}),_0x44260e[_0x1d088a(0x1d7)][_0x2b7a47];}export function enableSession(_0x930e08){const _0x486966=_0x13f291,_0x200ca9={'vcUuC':function(_0x140ae9){return _0x140ae9();},'ebtnI':function(_0x135402){return _0x135402();},'GQRCU':function(_0x4084d0,_0x68ffd0){return _0x4084d0!==_0x68ffd0;}},_0x521f4a=_0x200ca9[_0x486966(0x1a4)](loadCache),_0x400401=getOrCreateSession(_0x521f4a,_0x930e08);_0x400401[_0x486966(0x1ac)]=!![];const _0x1d76d4=_0x200ca9[_0x486966(0x1d3)](getCurrentBranch);_0x1d76d4&&_0x200ca9[_0x486966(0x1d5)](_0x1d76d4,'main')&&_0x1d76d4!==_0x486966(0x1bd)&&(_0x521f4a[_0x486966(0x1ab)][_0x1d76d4]=!![],_0x400401[_0x486966(0x1a7)]=_0x1d76d4),saveCache(_0x521f4a);}export function isSessionEnabled(_0x411eb0){const _0x2da45f=_0x13f291,_0x58f94c={'JGiaL':function(_0x589256){return _0x589256();},'FVmDH':function(_0x2abc60,_0x1b24bd){return _0x2abc60===_0x1b24bd;},'uEkzB':function(_0x5c84a4,_0x4cf6ed){return _0x5c84a4===_0x4cf6ed;},'GaVky':function(_0x6db4dc,_0xd7b831){return _0x6db4dc===_0xd7b831;},'DkHGn':function(_0x257a34,_0x3f1577){return _0x257a34===_0x3f1577;}},_0x54eb9f=loadCache(),_0x4529a6=_0x58f94c['JGiaL'](getCurrentBranch);if(!_0x4529a6||_0x4529a6===_0x2da45f(0x1b6)||_0x58f94c['FVmDH'](_0x4529a6,'master'))return _0x58f94c['uEkzB'](_0x54eb9f[_0x2da45f(0x1d7)][_0x411eb0]?.[_0x2da45f(0x1ac)],!![]);const _0x50f082=_0x58f94c[_0x2da45f(0x1a1)](_0x54eb9f[_0x2da45f(0x1ab)][_0x4529a6],!![]),_0x1c0fa6=_0x58f94c[_0x2da45f(0x1c4)](_0x54eb9f[_0x2da45f(0x1d7)][_0x411eb0]?.['enabled'],!![]);return _0x50f082||_0x1c0fa6;}export function disableSession(_0x381953){const _0xe70f2a=_0x13f291,_0x20623c={'tLvOP':function(_0x437111,_0x2e635a,_0x4bea54){return _0x437111(_0x2e635a,_0x4bea54);},'KVqtL':function(_0xdff9b5,_0x3e10fd){return _0xdff9b5(_0x3e10fd);}},_0x64e756=loadCache(),_0x1a586d=_0x20623c['tLvOP'](getOrCreateSession,_0x64e756,_0x381953);_0x1a586d[_0xe70f2a(0x1ac)]=![],_0x20623c['KVqtL'](saveCache,_0x64e756);}export function updateBranchTracking(_0x2b30ff){const _0x1a3136=_0x13f291,_0x37a7f5={'HvEgM':function(_0x3aa393){return _0x3aa393();},'GKVRE':function(_0x30cb88,_0x12b2b3){return _0x30cb88===_0x12b2b3;},'wXFPI':_0x1a3136(0x1bd)},_0xde89ad=_0x37a7f5[_0x1a3136(0x1af)](loadCache),_0x25d976=_0xde89ad['sessions'][_0x2b30ff];if(!_0x25d976?.[_0x1a3136(0x1ac)])return;const _0x10e1d3=_0x37a7f5[_0x1a3136(0x1af)](getCurrentBranch);if(!_0x10e1d3||_0x10e1d3==='main'||_0x37a7f5['GKVRE'](_0x10e1d3,_0x37a7f5['wXFPI']))return;_0x25d976[_0x1a3136(0x1a7)]!==_0x10e1d3&&(_0xde89ad['branches'][_0x10e1d3]=!![],_0x25d976['currentBranch']=_0x10e1d3,saveCache(_0xde89ad));}export function initBranchTracking(_0xf24bcd){const _0x54a650=_0x13f291,_0xe72b21={'uilsN':_0x54a650(0x1b6),'TTSSC':function(_0x40bee5,_0x4c9c51){return _0x40bee5===_0x4c9c51;},'NneXp':'master','rbKME':function(_0x4491d5,_0x5bd3b6){return _0x4491d5===_0x5bd3b6;},'Kfpug':function(_0x32ea2f,_0x1995a8){return _0x32ea2f(_0x1995a8);}},_0x2a7ef5=loadCache(),_0x50bab5=getCurrentBranch();if(!_0x50bab5||_0x50bab5===_0xe72b21[_0x54a650(0x1cf)]||_0xe72b21['TTSSC'](_0x50bab5,_0xe72b21['NneXp']))return;if(_0xe72b21['rbKME'](_0x2a7ef5['branches'][_0x50bab5],!![])){const _0x20c2ea=getOrCreateSession(_0x2a7ef5,_0xf24bcd);_0x20c2ea['enabled']=!![],_0x20c2ea['currentBranch']=_0x50bab5,_0xe72b21['Kfpug'](saveCache,_0x2a7ef5);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x1189(){const _0x5036bc=['pKUyn','HeWAZ','hvFxG','dvYvJ','lastPlanReminderAt','Kxzrc','master','Vofnl','28wwPFYP','63xfZbOn','now','pipe','PFLLz','DkHGn','weRXD','MzJkY','mkdirSync','existsSync','672155wUkCuJ','1479070UjyVgs','zJLYn','bvEJg','6eOBmEO','jweFy','uilsN','FWBQJ','prompted','FPXzn','ebtnI','utf-8','GQRCU','writeFileSync','sessions','registeredAt','HEAD','3160641momEGr','BQwRD','GaVky','LbLCG','93824FeNtWd','vcUuC','84654mGKQOg','featureId','currentBranch','lastEnabledSessionClearedAt','.ranger_cache.json','28cNQHIO','branches','enabled','.claude','AgbRA','HvEgM','stringify','4977714dDAVkA','clear','5651536WKNoWh','dirname','readFileSync','main'];_0x1189=function(){return _0x5036bc;};return _0x1189();}export function recordEnabledSessionCleared(_0x3ef578){const _0x524ed2=_0x13f291,_0xb0e9ac={'TWMJu':function(_0x54348d){return _0x54348d();}},_0x5aa8e4=_0xb0e9ac['TWMJu'](loadCache),_0x3a2391=_0x5aa8e4[_0x524ed2(0x1d7)][_0x3ef578];_0x3a2391?.['enabled']&&(_0x5aa8e4['lastEnabledSessionClearedAt']=Date[_0x524ed2(0x1c1)](),saveCache(_0x5aa8e4));}export function shouldAutoEnableAfterClear(_0x466d63){const _0x45e9ac=_0x13f291,_0x2e2450={'MzJkY':function(_0x408280,_0x5b1918){return _0x408280!==_0x5b1918;},'LbLCG':_0x45e9ac(0x1b2),'zAyNN':function(_0x341a8a,_0x4dd57d){return _0x341a8a<=_0x4dd57d;}};if(_0x2e2450[_0x45e9ac(0x1c6)](_0x466d63,_0x2e2450[_0x45e9ac(0x1a2)]))return![];const _0x5d278c=loadCache(),_0x351c94=_0x5d278c[_0x45e9ac(0x1a8)];if(!_0x351c94)return![];const _0x2568ec=Date['now']()-_0x351c94;return _0x2e2450['zAyNN'](_0x2568ec,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x54cc74){const _0x30ef6e=_0x13f291,_0x1063e3={'hvFxG':function(_0x182a76,_0x198e70){return _0x182a76!==_0x198e70;},'BQwRD':_0x30ef6e(0x1b6),'Kxzrc':_0x30ef6e(0x1bd),'IjNMe':function(_0x4f4b19,_0x3fe420){return _0x4f4b19(_0x3fe420);}},_0x1463f8=loadCache(),_0x2d5ae1=getOrCreateSession(_0x1463f8,_0x54cc74);_0x2d5ae1['enabled']=!![];const _0x4f2740=getCurrentBranch();_0x4f2740&&_0x1063e3[_0x30ef6e(0x1b9)](_0x4f2740,_0x1063e3[_0x30ef6e(0x1a0)])&&_0x4f2740!==_0x1063e3[_0x30ef6e(0x1bc)]&&(_0x2d5ae1['currentBranch']=_0x4f2740),delete _0x1463f8['lastEnabledSessionClearedAt'],_0x1063e3['IjNMe'](saveCache,_0x1463f8);}export function registerSession(_0x24d94e,_0x1eddfd){const _0x30b2db=_0x13f291,_0x2458a7={'YZcRI':function(_0x72945d,_0x546f6e,_0x5bb4dc){return _0x72945d(_0x546f6e,_0x5bb4dc);}},_0x15ba8d=loadCache(),_0x3d2ce2=_0x2458a7['YZcRI'](getOrCreateSession,_0x15ba8d,_0x24d94e);_0x3d2ce2['featureId']=_0x1eddfd,_0x3d2ce2[_0x30b2db(0x1d8)]=new Date()['toISOString'](),saveCache(_0x15ba8d);}function _0x537d(_0x21299f,_0x9cfb1c){_0x21299f=_0x21299f-0x19e;const _0x118967=_0x1189();let _0x537d33=_0x118967[_0x21299f];return _0x537d33;}export function getSessionEntry(_0x5926a7){const _0x1d1115=_0x13f291,_0x25e92f={'weRXD':function(_0x33dc1c){return _0x33dc1c();}},_0x41925c=_0x25e92f[_0x1d1115(0x1c5)](loadCache),_0x76a864=_0x41925c[_0x1d1115(0x1d7)][_0x5926a7];if(_0x76a864?.['featureId']&&_0x76a864?.[_0x1d1115(0x1d8)])return{'featureId':_0x76a864['featureId'],'registeredAt':_0x76a864['registeredAt']};return null;}export function unregisterSession(_0x2882f5){const _0x33e726=_0x13f291,_0x345a09={'PFLLz':function(_0x43c68,_0x295d0d){return _0x43c68(_0x295d0d);}},_0x363495=loadCache(),_0x3f0e1c=_0x363495[_0x33e726(0x1d7)][_0x2882f5];_0x3f0e1c&&(delete _0x3f0e1c[_0x33e726(0x1a6)],delete _0x3f0e1c[_0x33e726(0x1d8)],_0x345a09[_0x33e726(0x1c3)](saveCache,_0x363495));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x435736){const _0x3f45f3=_0x13f291,_0x46f19a={'XhTbA':function(_0xc7e2ba){return _0xc7e2ba();},'yTJNT':function(_0x2fcf23,_0x48b5d2,_0x5b2f99){return _0x2fcf23(_0x48b5d2,_0x5b2f99);},'nRsaj':function(_0xd388ca,_0x187a10){return _0xd388ca>=_0x187a10;}},_0x1d01e9=_0x46f19a['XhTbA'](loadCache),_0x4cb10a=_0x46f19a['yTJNT'](getOrCreateSession,_0x1d01e9,_0x435736),_0x487acb=_0x4cb10a[_0x3f45f3(0x1bb)]||0x0,_0x2769fd=Date['now']();if(_0x46f19a['nRsaj'](_0x2769fd-_0x487acb,PLAN_REMINDER_INTERVAL_MS))return _0x4cb10a['lastPlanReminderAt']=_0x2769fd,saveCache(_0x1d01e9),!![];return![];}export function shouldShowStopReminder(_0x2bb00c){const _0x324a71=_0x13f291,_0x2a0435={'AgbRA':function(_0x32e4b9){return _0x32e4b9();},'HeWAZ':function(_0x1280e7,_0x362fd4){return _0x1280e7>=_0x362fd4;},'FWBQJ':function(_0x13801c,_0x1ce762){return _0x13801c(_0x1ce762);}},_0x23301b=_0x2a0435[_0x324a71(0x1ae)](loadCache),_0x516659=getOrCreateSession(_0x23301b,_0x2bb00c),_0x171f54=_0x516659['lastStopReminderAt']||0x0,_0x3c4a43=Date[_0x324a71(0x1c1)]();if(_0x2a0435[_0x324a71(0x1b8)](_0x3c4a43-_0x171f54,STOP_REMINDER_INTERVAL_MS))return _0x516659['lastStopReminderAt']=_0x3c4a43,_0x2a0435[_0x324a71(0x1d0)](saveCache,_0x23301b),!![];return![];}export function hasSessionBeenPrompted(_0x3748c7){const _0x16101c=_0x13f291,_0x2fb9fd={'zJLYn':function(_0x45eed9){return _0x45eed9();},'FPXzn':function(_0x4d7b69,_0xe5b40d){return _0x4d7b69===_0xe5b40d;}},_0x149d1d=_0x2fb9fd[_0x16101c(0x1cb)](loadCache);return _0x2fb9fd[_0x16101c(0x1d2)](_0x149d1d[_0x16101c(0x1d7)][_0x3748c7]?.['prompted'],!![]);}export function markSessionPrompted(_0x96943){const _0x3b2c38=_0x13f291,_0x3df18a={'jweFy':function(_0x283d3f){return _0x283d3f();},'bvEJg':function(_0xefad7,_0x386918){return _0xefad7(_0x386918);}},_0x573095=_0x3df18a[_0x3b2c38(0x1ce)](loadCache),_0x5257d6=getOrCreateSession(_0x573095,_0x96943);_0x5257d6[_0x3b2c38(0x1d1)]=!![],_0x3df18a[_0x3b2c38(0x1cc)](saveCache,_0x573095);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x204fae=_0x21f3;(function(_0x37df03,_0xe729af){const _0x357646=_0x21f3,_0x45f110=_0x37df03();while(!![]){try{const _0x45c788=parseInt(_0x357646(0xca))/0x1+parseInt(_0x357646(0xac))/0x2*(-parseInt(_0x357646(0x9b))/0x3)+-parseInt(_0x357646(0xb0))/0x4*(-parseInt(_0x357646(0xe1))/0x5)+-parseInt(_0x357646(0xbd))/0x6+-parseInt(_0x357646(0xcc))/0x7*(-parseInt(_0x357646(0xc5))/0x8)+-parseInt(_0x357646(0xc8))/0x9*(-parseInt(_0x357646(0xda))/0xa)+parseInt(_0x357646(0xa2))/0xb;if(_0x45c788===_0xe729af)break;else _0x45f110['push'](_0x45f110['shift']());}catch(_0x42f79c){_0x45f110['push'](_0x45f110['shift']());}}}(_0x4265,0x2d30a));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';function _0x4265(){const _0x489b6a=['settings.json','core','EjAIQ','ElmfQ','hvZOg','1250676GruBFu','args','XAqrp','pathK','filter','ranger-config','all','--no-sandbox','8dgjuVC','--allow-insecure-localhost','push','27myzqui','path','187253jnlsVz','cdpEndpoint','1352141RvXqRk','local','headless','string','setupHeaders','browser','DGHbA','object','sessions','BxCed','repeat','allowInsecureLocalhost','pnDhK','hGhhs','139660sOvvJw','Mknol','FtVJL','ENOENT','sEwbp','KDLFR','clipboard-read','40vQElUP','storageStatePath','auth.json','includes','tvxTI','getuid','abzdD','.json','file','--disable-features=WebBluetooth','Qrmte','extraHTTPHeaders','VycyI','meAme','launchOptions','hvXVX','SQkDD','contextOptions','entries','fzEFm','isArray','tabs','owpfk','--disable-setuid-sandbox','fRCPQ','userAgent','now','oUvha','uoajX','EHrhH','storageState','pkkYk','LroWg','CKIeZ','--disable-web-security','length','87ZrpgCT','aqqEL','map','XVnLD','legacy','tempAuthPath','SqksV','1487233RFCkIk','boolean','clipboard-write','YHeyz','WNSKI','tYjxs','bzEse','EICOr','ETkXN','message','19874mfDMhm','UqApi','VWRGs','zQroa','62100prNtLT','fromEntries','chromium','WUvJH','allow','parse','env','location'];_0x4265=function(){return _0x489b6a;};return _0x4265();}export function getEnvDir(_0x392d5d){const _0x5ac2a1=_0x21f3,_0x2137b3={'pkkYk':function(_0x533af4){return _0x533af4();},'UqApi':function(_0x3e22b1,_0x26438b,_0x3b54af,_0x1dc586){return _0x3e22b1(_0x26438b,_0x3b54af,_0x1dc586);},'hDLQQ':'local','tYjxs':function(_0x542d77,_0x5c12d0,_0x4774e6){return _0x542d77(_0x5c12d0,_0x4774e6);},'EICOr':function(_0x3303da,_0x4e5ddb){return _0x3303da(_0x4e5ddb);}},_0xe0034b=_0x2137b3[_0x5ac2a1(0x96)](getRangerDir),_0x2f7342=_0x2137b3['UqApi'](join,_0xe0034b,'ci',_0x392d5d),_0x2291a3=_0x2137b3[_0x5ac2a1(0xad)](join,_0xe0034b,_0x2137b3['hDLQQ'],_0x392d5d),_0x1d803d=join(_0xe0034b,_0x392d5d),_0x50e939=_0x2137b3[_0x5ac2a1(0xa7)](join,_0xe0034b,_0x5ac2a1(0xcd)),_0x2efceb=join(_0xe0034b,'ci');if(_0x2137b3[_0x5ac2a1(0xa9)](existsSync,_0x2f7342))return _0x2f7342;if(existsSync(_0x2291a3))return _0x2291a3;if(existsSync(_0x1d803d)&&(_0x1d803d!==_0x50e939&&_0x1d803d!==_0x2efceb?!![]:hasLegacyProfileFiles(_0x1d803d)))return _0x1d803d;return _0x2291a3;}export function findExistingEnv(_0x3959d8,_0x315053){const _0x20f9e6=_0x21f3,_0x258e9c={'Mknol':_0x20f9e6(0xcd),'uywsQ':function(_0x3929a1,_0x302ff0){return _0x3929a1===_0x302ff0;},'fzEFm':function(_0x266f06,_0x252f7c){return _0x266f06(_0x252f7c);}},_0xc1171b=getRangerDir(),_0x4311de=_0x315053?.['locations']??['ci',_0x258e9c[_0x20f9e6(0xdb)],_0x20f9e6(0x9f)],_0x5221dc=join(_0xc1171b,_0x258e9c['Mknol']),_0x34b975=join(_0xc1171b,'ci'),_0x4e42ce=[{'location':'ci','path':join(_0xc1171b,'ci',_0x3959d8)},{'location':_0x258e9c[_0x20f9e6(0xdb)],'path':join(_0xc1171b,'local',_0x3959d8)},{'location':'legacy','path':join(_0xc1171b,_0x3959d8)}];for(const _0x580379 of _0x4e42ce){if(_0x4311de[_0x20f9e6(0xe4)](_0x580379[_0x20f9e6(0xb7)])&&existsSync(_0x580379[_0x20f9e6(0xc9)])){if(_0x580379['location']==='legacy'&&(_0x580379[_0x20f9e6(0xc9)]===_0x5221dc||_0x258e9c['uywsQ'](_0x580379[_0x20f9e6(0xc9)],_0x34b975))&&!_0x258e9c[_0x20f9e6(0xf4)](hasLegacyProfileFiles,_0x580379['path']))continue;return{'path':_0x580379['path'],'location':_0x580379['location']};}}return null;}function hasLegacyProfileFiles(_0x29ae82){const _0x1a1ea3=_0x21f3,_0x16cbe1={'ZcQHe':function(_0x1d0f20,_0x4f1920,_0x16ed75){return _0x1d0f20(_0x4f1920,_0x16ed75);},'tvxTI':function(_0x5cdc92,_0x4ce12f){return _0x5cdc92(_0x4ce12f);},'KDLFR':function(_0x27d61b,_0x299d73){return _0x27d61b(_0x299d73);},'SqksV':'auth.json.enc'};return existsSync(_0x16cbe1['ZcQHe'](join,_0x29ae82,_0x1a1ea3(0xb8)))||_0x16cbe1[_0x1a1ea3(0xe5)](existsSync,join(_0x29ae82,'auth.json'))||_0x16cbe1[_0x1a1ea3(0xdf)](existsSync,_0x16cbe1['ZcQHe'](join,_0x29ae82,_0x16cbe1[_0x1a1ea3(0xa1)]));}export function isEnvCi(_0x105ff2){const _0xddbc5b=_0x21f3,_0x2a6d6e={'hvXVX':function(_0x41985e,_0x159b77){return _0x41985e(_0x159b77);},'meAme':function(_0x4ba93c){return _0x4ba93c();}};return _0x2a6d6e[_0xddbc5b(0xf0)](existsSync,join(_0x2a6d6e[_0xddbc5b(0xee)](getRangerDir),'ci',_0x105ff2));}export async function cleanupTempFiles(_0x468a19){const _0x39ac32=_0x21f3,_0x478d4f={'VROkd':function(_0x5915ed,_0x2de111){return _0x5915ed!==_0x2de111;}},_0x5cb762=[_0x468a19[_0x39ac32(0xa0)],_0x468a19['configPath']]['filter'](Boolean);await Promise[_0x39ac32(0xc3)](_0x5cb762['map'](_0x1eeeac=>unlink(_0x1eeeac)['catch'](_0x514b8e=>{const _0x3f1a4e=_0x39ac32;_0x478d4f['VROkd'](_0x514b8e['code'],_0x3f1a4e(0xdd))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1eeeac+':',_0x514b8e[_0x3f1a4e(0xab)]);})));}export function getSettingsPath(_0x59c655){const _0x52875a=_0x21f3,_0x39f245={'iLlEA':function(_0x3353fd,_0x208fcd,_0x3ba389){return _0x3353fd(_0x208fcd,_0x3ba389);},'VWRGs':_0x52875a(0xb8)};return _0x39f245['iLlEA'](join,getEnvDir(_0x59c655),_0x39f245[_0x52875a(0xae)]);}export async function loadSettings(_0x4f1b7a){const _0x750a37=_0x21f3,_0x2bb8fb={'yotfI':function(_0x3ec97d,_0x15538e){return _0x3ec97d(_0x15538e);},'ZCJCf':function(_0x15a999,_0x1625c7){return _0x15a999(_0x1625c7);},'skPQU':function(_0xb0837c,_0x67a7bc,_0x2045d8){return _0xb0837c(_0x67a7bc,_0x2045d8);}},_0x57e399=_0x2bb8fb['yotfI'](getSettingsPath,_0x4f1b7a);if(!_0x2bb8fb['ZCJCf'](existsSync,_0x57e399))return{};try{const _0x190e68=await _0x2bb8fb['skPQU'](readFile,_0x57e399,'utf-8');return JSON[_0x750a37(0xb5)](_0x190e68);}catch{return{};}}export async function saveSettings(_0x2cd9a8,_0x395021){const _0x560851=_0x21f3,_0x164b72={'zQroa':function(_0x2513ea,_0x57fb4b){return _0x2513ea(_0x57fb4b);},'EjAIQ':function(_0x4c2e11,_0x32f29d,_0x1af0b3){return _0x4c2e11(_0x32f29d,_0x1af0b3);}},_0x5ad298=_0x164b72[_0x560851(0xaf)](getSettingsPath,_0x2cd9a8),_0x24b397=_0x164b72[_0x560851(0xaf)](dirname,_0x5ad298);!existsSync(_0x24b397)&&await _0x164b72['EjAIQ'](mkdir,_0x24b397,{'recursive':!![]}),await _0x164b72[_0x560851(0xba)](writeFile,_0x5ad298,JSON['stringify'](_0x395021,null,0x2));}export function resolveEnvVars(_0xa4d8f8){const _0x1ab9a1=_0x21f3,_0x3368ed={'XAqrp':function(_0x4bdb4e,_0x5e5fab){return _0x4bdb4e===_0x5e5fab;}};if(_0x3368ed[_0x1ab9a1(0xbf)](typeof _0xa4d8f8,_0x1ab9a1(0xcf)))return _0xa4d8f8['replace'](/\$\{(\w+)\}/g,(_0x5ce6c8,_0x13313e)=>{const _0x38ae4b=_0x1ab9a1,_0x57ac4b=process[_0x38ae4b(0xb6)][_0x13313e];if(_0x57ac4b===undefined)throw new Error('Environment\x20variable\x20'+_0x13313e+'\x20is\x20not\x20set');return _0x57ac4b;});if(Array[_0x1ab9a1(0x8b)](_0xa4d8f8))return _0xa4d8f8[_0x1ab9a1(0x9d)](resolveEnvVars);if(_0xa4d8f8&&typeof _0xa4d8f8==='object')return Object[_0x1ab9a1(0xb1)](Object['entries'](_0xa4d8f8)['map'](([_0x4b520f,_0x3f31d1])=>[_0x4b520f,resolveEnvVars(_0x3f31d1)]));return _0xa4d8f8;}const isRecord=_0x82afbd=>typeof _0x82afbd==='object'&&_0x82afbd!==null&&!Array[_0x204fae(0x8b)](_0x82afbd),asRecord=_0x5a28a0=>isRecord(_0x5a28a0)?_0x5a28a0:undefined,mergeHeaders=(_0x410c01,_0x4f9b59)=>{const _0x30a88f=_0x204fae,_0x53ffb7={'CedRj':function(_0x137dc5,_0x5bbbfa){return _0x137dc5??_0x5bbbfa;}},_0x2cb2fa={..._0x53ffb7['CedRj'](_0x410c01,{}),..._0x4f9b59??{}};return Object['keys'](_0x2cb2fa)[_0x30a88f(0x9a)]?_0x2cb2fa:undefined;},SAFE_MODE_ARGS=[_0x204fae(0xea)],ALLOW_LOCALHOST_ARGS=[_0x204fae(0x99),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x204fae(0xc6)];export function buildBrowserOptionsFromSettings(_0x13eea8,_0x43ec8c={}){const _0x218d09=_0x204fae,_0x2f0632={'gYFiU':function(_0x5b3b18,_0x3a9f53){return _0x5b3b18(_0x3a9f53);},'KhxVx':_0x218d09(0xa3),'DDtQI':function(_0xfd578,_0x4a17dd){return _0xfd578(_0x4a17dd);},'ElmfQ':function(_0x4c0ee6,_0xb2f49f){return _0x4c0ee6===_0xb2f49f;},'FtVJL':_0x218d09(0xcf),'beEjI':function(_0x11413d,_0x88097,_0x3874bf){return _0x11413d(_0x88097,_0x3874bf);}},_0x235f6f=asRecord(_0x13eea8[_0x218d09(0xd1)]),_0x2eef0b={..._0x2f0632['gYFiU'](asRecord,_0x235f6f?.[_0x218d09(0xef)])??{}};typeof _0x43ec8c[_0x218d09(0xce)]===_0x2f0632['KhxVx']&&(_0x2eef0b['headless']=_0x43ec8c['headless']);if(_0x13eea8['safeMode']){const _0x3a5a0e=_0x2eef0b[_0x218d09(0xbe)]??[],_0x5b8522=SAFE_MODE_ARGS[_0x218d09(0xc1)](_0x3a2d77=>!_0x3a5a0e['includes'](_0x3a2d77));_0x2eef0b[_0x218d09(0xbe)]=[..._0x3a5a0e,..._0x5b8522];}if(_0x13eea8[_0x218d09(0xd7)]){const _0x20bd71=_0x2eef0b['args']??[],_0x3689f4=ALLOW_LOCALHOST_ARGS['filter'](_0x5df028=>!_0x20bd71[_0x218d09(0xe4)](_0x5df028));_0x2eef0b['args']=[..._0x20bd71,..._0x3689f4];}const _0x2da0ea={..._0x2f0632['DDtQI'](asRecord,_0x235f6f?.['contextOptions'])??{}};_0x2da0ea['ignoreHTTPSErrors']=!![];_0x2f0632[_0x218d09(0xbb)](typeof _0x13eea8[_0x218d09(0x90)],_0x2f0632[_0x218d09(0xdc)])&&(_0x2da0ea['userAgent']=_0x13eea8['userAgent']);const _0x467d8e=_0x2f0632['beEjI'](mergeHeaders,_0x2f0632['DDtQI'](asRecord,_0x2da0ea['extraHTTPHeaders']),asRecord(_0x13eea8['headers']));return _0x467d8e?_0x2da0ea['extraHTTPHeaders']=_0x467d8e:delete _0x2da0ea[_0x218d09(0xec)],_0x43ec8c[_0x218d09(0xe2)]&&(_0x2da0ea['storageState']=_0x43ec8c['storageStatePath']),{'launchOptions':_0x2eef0b,'contextOptions':_0x2da0ea};}export async function buildPlaywrightConfig(_0x4e9a4e,_0x55ff9a,_0x58fad4,_0x599372){const _0x37bb39=_0x204fae,_0x50bc2f={'VycyI':_0x37bb39(0xe0),'iKPcg':function(_0x1a89c9,_0x1973df){return _0x1a89c9(_0x1973df);},'RtHtE':_0x37bb39(0xe3),'XVnLD':function(_0x4968c6){return _0x4968c6();},'YHeyz':function(_0x63ac09,_0x5c2839){return _0x63ac09(_0x5c2839);},'oUvha':function(_0x6bcb52,_0x3dfe39,_0x11e490){return _0x6bcb52(_0x3dfe39,_0x11e490);},'sciIx':function(_0x1adf34){return _0x1adf34();},'GHcCo':function(_0x18bf0c){return _0x18bf0c();},'SQkDD':function(_0x48faf2,_0x4571e7,_0x4339b5,_0x50405b){return _0x48faf2(_0x4571e7,_0x4339b5,_0x50405b);},'QkfLB':function(_0x58455b){return _0x58455b();},'yuScv':_0x37bb39(0x8c),'uThaY':function(_0xe8fe25,_0x1fc2b7){return _0xe8fe25===_0x1fc2b7;},'owpfk':function(_0x1a1d81,_0x3b40b5,_0x43037e){return _0x1a1d81(_0x3b40b5,_0x43037e);}},_0x2bc8f6=_0x50bc2f['iKPcg'](getEnvDir,_0x55ff9a),_0x2b6ef9=join(_0x2bc8f6,'auth.json.enc'),_0x3892b1=join(_0x2bc8f6,_0x50bc2f['RtHtE']);let _0x30d29c,_0x3b523a;if(existsSync(_0x2b6ef9))try{const _0x3eb001=await _0x50bc2f[_0x37bb39(0x9e)](getToken);if(!_0x3eb001)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2951dc=await _0x50bc2f[_0x37bb39(0xa5)](readFile,_0x2b6ef9),_0x2f2fb8=_0x50bc2f[_0x37bb39(0x92)](decrypt,_0x2951dc,_0x3eb001);_0x3b523a=join(_0x50bc2f['sciIx'](tmpdir),'ranger-auth-'+Date['now']()+_0x37bb39(0xe8)),await writeFile(_0x3b523a,_0x2f2fb8),_0x30d29c=_0x3b523a;}catch(_0x2db870){const _0x1c270f=_0x2db870 instanceof Error?_0x2db870[_0x37bb39(0xab)]:String(_0x2db870);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1c270f);}else existsSync(_0x3892b1)&&(_0x30d29c=_0x3892b1);const _0x1084a1=_0x58fad4||_0x50bc2f['GHcCo'](randomUUID),_0x4f54f3=_0x50bc2f[_0x37bb39(0xf1)](join,_0x50bc2f['QkfLB'](getRangerDir),_0x37bb39(0xd4),_0x1084a1),_0x2be073=Boolean(_0x4e9a4e[_0x37bb39(0xcb)]),_0x2a2015=_0x2be073?{'browserName':'chromium','cdpEndpoint':_0x4e9a4e[_0x37bb39(0xcb)]}:((()=>{const _0x3ae781=_0x37bb39,{launchOptions:_0x6991af,contextOptions:_0x1719de}=buildBrowserOptionsFromSettings(_0x4e9a4e,{'headless':_0x599372?![]:_0x4e9a4e[_0x3ae781(0xce)]??!![],'storageStatePath':_0x30d29c});if(process['getuid']?.()===0x0){const _0x2a2546=['--no-sandbox',_0x3ae781(0x8e)],_0x714134=_0x6991af['args']??[],_0x266beb=_0x2a2546['filter'](_0x5d10f5=>!_0x714134['includes'](_0x5d10f5));_0x6991af[_0x3ae781(0xbe)]=[..._0x714134,..._0x266beb];}return{'isolated':!![],'browserName':_0x3ae781(0xb2),'launchOptions':_0x6991af,'contextOptions':{..._0x1719de,'permissions':[_0x50bc2f[_0x3ae781(0xed)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1f4907={'name':_0x55ff9a,'browser':_0x2a2015,'capabilities':[_0x37bb39(0xb9),_0x50bc2f['yuScv'],'install','pdf','vision'],'imageResponses':_0x37bb39(0xb4),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4f54f3};if(!_0x2be073){const _0x4aa063=_0x1f4907['browser'],_0x4993c4=_0x4aa063[_0x37bb39(0xf2)];if(_0x50bc2f['uThaY'](_0x4993c4[_0x37bb39(0x90)],undefined))delete _0x4993c4['userAgent'];if(_0x4993c4[_0x37bb39(0x95)]===undefined)delete _0x4993c4[_0x37bb39(0x95)];}const _0x448e22=join(_0x50bc2f[_0x37bb39(0x9e)](tmpdir),_0x37bb39(0xc2));!existsSync(_0x448e22)&&await mkdir(_0x448e22,{'recursive':!![]});const _0x334e37=_0x50bc2f[_0x37bb39(0x8d)](join,_0x448e22,_0x55ff9a+'-'+Date[_0x37bb39(0x91)]()+'.json');return await writeFile(_0x334e37,JSON['stringify'](_0x1f4907,null,0x2)),{'configPath':_0x334e37,'tempAuthPath':_0x3b523a};}export async function buildPlaywrightCliConfig(_0x555361,_0x556d99,_0x549343,_0x161494){const _0x43fb6d=_0x204fae,_0x14aee4={'APEBE':_0x43fb6d(0xc4),'pathK':_0x43fb6d(0x8e),'CDiXX':_0x43fb6d(0xe0),'tmXPP':_0x43fb6d(0xa4),'sEwbp':function(_0xc75616,_0x2edc8c){return _0xc75616(_0x2edc8c);},'hvZOg':function(_0x1ae875,_0x3f19c7,_0x2c443e){return _0x1ae875(_0x3f19c7,_0x2c443e);},'ImeRJ':_0x43fb6d(0xe3),'ETkXN':function(_0x1e7094){return _0x1e7094();},'hGhhs':function(_0x11a1fd,_0x38c1fb){return _0x11a1fd instanceof _0x38c1fb;},'uoajX':function(_0x3a2733,_0x2673ae,_0x392684,_0x186efd){return _0x3a2733(_0x2673ae,_0x392684,_0x186efd);},'aqqEL':_0x43fb6d(0xd4),'rkSEd':function(_0x40a882,_0x60ca5c){return _0x40a882(_0x60ca5c);},'WNSKI':function(_0x2de01b,_0x326107){return _0x2de01b===_0x326107;},'QkWot':_0x43fb6d(0xe9),'EHrhH':'none','CKIeZ':function(_0x36553f,_0x331707,_0x560ab7){return _0x36553f(_0x331707,_0x560ab7);},'iQMYt':_0x43fb6d(0xc2),'ULGfA':function(_0x2d675a,_0x217260){return _0x2d675a(_0x217260);},'pnDhK':function(_0x290480,_0x5b6c4e,_0x395805){return _0x290480(_0x5b6c4e,_0x395805);}},_0xe8176=_0x14aee4['sEwbp'](getEnvDir,_0x556d99),_0x1248f0=join(_0xe8176,'auth.json.enc'),_0x65c613=_0x14aee4[_0x43fb6d(0xbc)](join,_0xe8176,_0x14aee4['ImeRJ']);let _0x3494a8,_0x2cf3a0;if(_0x14aee4[_0x43fb6d(0xde)](existsSync,_0x1248f0))try{const _0x2c58ab=await getToken();if(!_0x2c58ab)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x12de8a=await readFile(_0x1248f0),_0x4723f9=decrypt(_0x12de8a,_0x2c58ab);_0x2cf3a0=join(_0x14aee4[_0x43fb6d(0xaa)](tmpdir),'ranger-auth-'+Date[_0x43fb6d(0x91)]()+'.json'),await _0x14aee4['hvZOg'](writeFile,_0x2cf3a0,_0x4723f9),_0x3494a8=_0x2cf3a0;}catch(_0x4941d0){const _0x45d102=_0x14aee4[_0x43fb6d(0xd9)](_0x4941d0,Error)?_0x4941d0['message']:String(_0x4941d0);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x45d102);}else _0x14aee4[_0x43fb6d(0xde)](existsSync,_0x65c613)&&(_0x3494a8=_0x65c613);const _0x3c5ea5=_0x549343||_0x14aee4['ETkXN'](randomUUID),_0x488623=_0x14aee4[_0x43fb6d(0x93)](join,getRangerDir(),_0x14aee4[_0x43fb6d(0x9c)],_0x3c5ea5),_0x503c73=_0x14aee4['rkSEd'](Boolean,_0x555361[_0x43fb6d(0xcb)]),_0xca3b65=_0x503c73?{'browserName':_0x43fb6d(0xb2),'cdpEndpoint':_0x555361[_0x43fb6d(0xcb)]}:((()=>{const _0xf2cd63=_0x43fb6d,{launchOptions:_0x3e59be,contextOptions:_0x420fcc}=buildBrowserOptionsFromSettings(_0x555361,{'headless':_0x161494?![]:_0x555361['headless']??!![],'storageStatePath':_0x3494a8});if(process[_0xf2cd63(0xe6)]?.()===0x0){const _0x879644=[_0x14aee4['APEBE'],_0x14aee4[_0xf2cd63(0xc0)]],_0x1b037a=_0x3e59be['args']??[],_0x392415=_0x879644[_0xf2cd63(0xc1)](_0x5ef7ad=>!_0x1b037a['includes'](_0x5ef7ad));_0x3e59be[_0xf2cd63(0xbe)]=[..._0x1b037a,..._0x392415];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x3e59be,'contextOptions':{..._0x420fcc,'permissions':[_0x14aee4['CDiXX'],_0x14aee4['tmXPP']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x503c73){const _0x41a6f5=_0xca3b65[_0x43fb6d(0xf2)];if(_0x14aee4[_0x43fb6d(0xa6)](_0x41a6f5['userAgent'],undefined))delete _0x41a6f5[_0x43fb6d(0x90)];if(_0x14aee4[_0x43fb6d(0xa6)](_0x41a6f5[_0x43fb6d(0x95)],undefined))delete _0x41a6f5['storageState'];}const _0x657598={'browser':_0xca3b65,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x488623,'outputMode':_0x14aee4['QkWot'],'codegen':_0x14aee4[_0x43fb6d(0x94)]},_0x597388=_0x14aee4[_0x43fb6d(0x98)](join,_0x14aee4['ETkXN'](tmpdir),_0x14aee4['iQMYt']);!_0x14aee4['ULGfA'](existsSync,_0x597388)&&await _0x14aee4[_0x43fb6d(0x98)](mkdir,_0x597388,{'recursive':!![]});const _0x4db5b1=_0x14aee4[_0x43fb6d(0xd8)](join,_0x597388,_0x556d99+'-'+Date['now']()+'-cli.json');return await writeFile(_0x4db5b1,JSON['stringify'](_0x657598,null,0x2)),{'configPath':_0x4db5b1,'tempAuthPath':_0x2cf3a0};}export function getNestedValue(_0xba9cfe,_0x5c5dda){const _0x258215=_0x204fae,_0x180643={'VfxuE':function(_0x58605e,_0x291c15){return _0x58605e===_0x291c15;},'WUvJH':function(_0xaa07b2,_0x1d00be){return _0xaa07b2===_0x1d00be;},'abzdD':_0x258215(0xd3)},_0x400520=parseKeyPath(_0x5c5dda);let _0x2853dd=_0xba9cfe;for(const _0x44fdb9 of _0x400520){if(_0x180643['VfxuE'](_0x2853dd,null)||_0x180643[_0x258215(0xb3)](_0x2853dd,undefined)||typeof _0x2853dd!==_0x180643[_0x258215(0xe7)])return undefined;_0x2853dd=_0x2853dd[_0x44fdb9];}return _0x2853dd;}function _0x21f3(_0x2a47fe,_0x156c1d){_0x2a47fe=_0x2a47fe-0x8b;const _0x426592=_0x4265();let _0x21f3df=_0x426592[_0x2a47fe];return _0x21f3df;}export function setNestedValue(_0x2e36fc,_0x4ec5e1,_0x5cc355){const _0x19c0b8=_0x204fae,_0x2610c2={'lFoyH':function(_0x5a1758,_0x167ff8){return _0x5a1758<_0x167ff8;},'abnVa':function(_0x29737b,_0x3cdca7){return _0x29737b-_0x3cdca7;},'BwMWw':function(_0x49b6cb,_0x1dd3de){return _0x49b6cb in _0x1dd3de;},'hCJai':function(_0x268f8c,_0x546ed0){return _0x268f8c!==_0x546ed0;}},_0x539b31=parseKeyPath(_0x4ec5e1);let _0x75a857=_0x2e36fc;for(let _0x334485=0x0;_0x2610c2['lFoyH'](_0x334485,_0x2610c2['abnVa'](_0x539b31[_0x19c0b8(0x9a)],0x1));_0x334485++){const _0x53f445=_0x539b31[_0x334485];(!_0x2610c2['BwMWw'](_0x53f445,_0x75a857)||_0x2610c2['hCJai'](typeof _0x75a857[_0x53f445],'object'))&&(_0x75a857[_0x53f445]={}),_0x75a857=_0x75a857[_0x53f445];}_0x75a857[_0x539b31[_0x539b31[_0x19c0b8(0x9a)]-0x1]]=_0x5cc355;}export function deleteNestedValue(_0xd40a60,_0x578c75){const _0x5db874=_0x204fae,_0xf5a92b={'egFDq':function(_0x1168f5,_0x434f8b){return _0x1168f5<_0x434f8b;},'BxCed':function(_0x19b151,_0x1767b7){return _0x19b151-_0x1767b7;},'NwgNd':function(_0x53e6c9,_0x4b0f67){return _0x53e6c9===_0x4b0f67;},'DGHbA':function(_0x9c3c08,_0x3b0723){return _0x9c3c08!==_0x3b0723;},'fRCPQ':function(_0x3b4dac,_0x19af44){return _0x3b4dac-_0x19af44;},'bzEse':function(_0x1d0e62,_0x2bdd83){return _0x1d0e62 in _0x2bdd83;}},_0x19efd8=parseKeyPath(_0x578c75);let _0x2daa68=_0xd40a60;for(let _0x4e8118=0x0;_0xf5a92b['egFDq'](_0x4e8118,_0xf5a92b[_0x5db874(0xd5)](_0x19efd8[_0x5db874(0x9a)],0x1));_0x4e8118++){if(_0xf5a92b['NwgNd'](_0x2daa68,null)||_0x2daa68===undefined||_0xf5a92b[_0x5db874(0xd2)](typeof _0x2daa68,'object'))return![];_0x2daa68=_0x2daa68[_0x19efd8[_0x4e8118]];}if(_0x2daa68===null||_0x2daa68===undefined||typeof _0x2daa68!=='object')return![];const _0x3aed5c=_0x19efd8[_0xf5a92b[_0x5db874(0x8f)](_0x19efd8[_0x5db874(0x9a)],0x1)];if(_0xf5a92b[_0x5db874(0xa8)](_0x3aed5c,_0x2daa68))return delete _0x2daa68[_0x3aed5c],!![];return![];}function parseKeyPath(_0x5aebe5){const _0x47b142=_0x204fae,_0x28475b={'fJixj':function(_0x54799b,_0x4aa5e1){return _0x54799b===_0x4aa5e1;}},_0x1fff50=_0x5aebe5['split']('.');return _0x28475b['fJixj'](_0x1fff50[0x0],'header')&&(_0x1fff50[0x0]='headers'),_0x1fff50[0x0]==='setupHeader'&&(_0x1fff50[0x0]=_0x47b142(0xd0)),_0x1fff50;}export function formatSettings(_0x471e0e,_0x5e004b=0x0){const _0x371069=_0x204fae,_0x2818e4={'LroWg':function(_0x52f379,_0x42966e){return _0x52f379===_0x42966e;},'Qrmte':function(_0xed513d,_0x58314a){return _0xed513d!==_0x58314a;}},_0x4e2ee8=[],_0x54c841='\x20\x20'[_0x371069(0xd6)](_0x5e004b);for(const [_0x32512a,_0x3db4ea]of Object['entries'](_0x471e0e)){if(_0x2818e4[_0x371069(0x97)](_0x3db4ea,undefined))continue;if(typeof _0x3db4ea===_0x371069(0xd3)&&_0x2818e4[_0x371069(0xeb)](_0x3db4ea,null)){_0x4e2ee8['push'](''+_0x54c841+_0x32512a+':');for(const [_0x655b5,_0xaa05bb]of Object[_0x371069(0xf3)](_0x3db4ea)){_0x4e2ee8[_0x371069(0xc7)](_0x54c841+'\x20\x20'+_0x655b5+':\x20'+_0xaa05bb);}}else _0x4e2ee8['push'](''+_0x54c841+_0x32512a+':\x20'+_0x3db4ea);}return _0x4e2ee8['join']('\x0a');}
|
|
1
|
+
const _0x189951=_0x3cba;(function(_0x44af4f,_0x4d5f59){const _0x3f120a=_0x3cba,_0x51ae08=_0x44af4f();while(!![]){try{const _0x4567b5=parseInt(_0x3f120a(0x16d))/0x1+parseInt(_0x3f120a(0x123))/0x2+-parseInt(_0x3f120a(0x158))/0x3+parseInt(_0x3f120a(0x15b))/0x4+-parseInt(_0x3f120a(0x133))/0x5+parseInt(_0x3f120a(0x15d))/0x6*(parseInt(_0x3f120a(0x178))/0x7)+-parseInt(_0x3f120a(0x16b))/0x8;if(_0x4567b5===_0x4d5f59)break;else _0x51ae08['push'](_0x51ae08['shift']());}catch(_0x336153){_0x51ae08['push'](_0x51ae08['shift']());}}}(_0x16d8,0x99787));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';function _0x3cba(_0x1115e6,_0x138ae3){_0x1115e6=_0x1115e6-0x120;const _0x16d873=_0x16d8();let _0x3cbaf3=_0x16d873[_0x1115e6];return _0x3cbaf3;}import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x31ea4b){const _0x243d7e=_0x3cba,_0x55ae2a={'OOARp':function(_0x46589e){return _0x46589e();},'yJOMO':function(_0x28f496,_0x378b55,_0x2650ff,_0x531e57){return _0x28f496(_0x378b55,_0x2650ff,_0x531e57);},'jFuvy':'local','zyPxR':function(_0x16cac8,_0x32327d,_0x1c918e){return _0x16cac8(_0x32327d,_0x1c918e);},'nZjLO':function(_0x3d7b80,_0x36a3e3){return _0x3d7b80(_0x36a3e3);},'CfNqu':function(_0x88e735,_0x1e8721){return _0x88e735(_0x1e8721);},'AfMUy':function(_0x383f2f,_0x15e403){return _0x383f2f!==_0x15e403;},'cwwFa':function(_0x2b2628,_0x5e351c){return _0x2b2628!==_0x5e351c;},'nNKbm':function(_0x565bc5,_0x586b7a){return _0x565bc5(_0x586b7a);}},_0xa314c3=_0x55ae2a['OOARp'](getRangerDir),_0x203c8f=join(_0xa314c3,'ci',_0x31ea4b),_0xf1fead=_0x55ae2a['yJOMO'](join,_0xa314c3,_0x55ae2a[_0x243d7e(0x169)],_0x31ea4b),_0x2ceb55=join(_0xa314c3,_0x31ea4b),_0x2d713c=_0x55ae2a['zyPxR'](join,_0xa314c3,_0x243d7e(0x162)),_0x54c6f2=_0x55ae2a['zyPxR'](join,_0xa314c3,'ci');if(existsSync(_0x203c8f))return _0x203c8f;if(_0x55ae2a['nZjLO'](existsSync,_0xf1fead))return _0xf1fead;if(_0x55ae2a[_0x243d7e(0x13a)](existsSync,_0x2ceb55)&&(_0x55ae2a['AfMUy'](_0x2ceb55,_0x2d713c)&&_0x55ae2a[_0x243d7e(0x12d)](_0x2ceb55,_0x54c6f2)?!![]:_0x55ae2a['nNKbm'](hasLegacyProfileFiles,_0x2ceb55)))return _0x2ceb55;return _0xf1fead;}function _0x16d8(){const _0x28ce52=['7jkTtos','pySUT','--allow-running-insecure-content','\x20is\x20not\x20set','rTWGZ','--disable-setuid-sandbox','keys','allowInsecureLocalhost','install','settings.json','rQXdi','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','headless','ekjVH','header','wLyra','storageState','HYBnZ','catch','now','stringify','vision','launchOptions','args','286130zhRurc','rhDkP','.json','ranger-auth-','sdNNw','WzrMC','safeMode','ranger-config','JDJQV','length','cwwFa','xfoqB','clipboard-read','message','code','chromium','1845930MNOhVS','join','cdpEndpoint','location','none','auth.json','clipboard-write','CfNqu','browser','XbBNq','eiinA','ytVuH','path','wfmBy','--no-sandbox','Failed\x20to\x20decrypt\x20auth\x20state:\x20','LYeEx','UkJJB','hJHOh','gkUCA','uxtwB','QdjGa','XXvrr','entries','hAVfl','slwaK','storageStatePath','all','yIxMp','FkELL','mwbWs','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','tempAuthPath','extraHTTPHeaders','hkSaK','object','string','3557313FbXGKb','sessions','includes','3360244xziqAM','AQnUV','1439322iTkyIQ','setupHeader','Bkyff','contextOptions','boolean','local','cExnn','XYCUD','map','irksN','spqnP','userAgent','jFuvy','jygKq','2254072BEJkfQ','dmAKG','1242318woeBae','fromEntries','XYEzQ','vehKG','IdcTW','parse','filter','env','Navov','ENOENT','IWWsf'];_0x16d8=function(){return _0x28ce52;};return _0x16d8();}export function findExistingEnv(_0x396b89,_0x4206cf){const _0x599a00=_0x3cba,_0x182672={'fFlJV':'local','IdcTW':'legacy','WzrMC':function(_0x33ccff,_0x3c4ed5,_0x3d1354){return _0x33ccff(_0x3c4ed5,_0x3d1354);},'xfoqB':function(_0x15092f,_0xd3ceea,_0xcb5857,_0x11677c){return _0x15092f(_0xd3ceea,_0xcb5857,_0x11677c);},'rhDkP':function(_0xf91df4,_0x365548,_0xc32d90){return _0xf91df4(_0x365548,_0xc32d90);},'Navov':function(_0x17d5f8,_0x126ff3){return _0x17d5f8(_0x126ff3);},'spqnP':function(_0x12a38a,_0x217803){return _0x12a38a(_0x217803);}},_0x2652f5=getRangerDir(),_0x144023=_0x4206cf?.['locations']??['ci',_0x182672['fFlJV'],_0x182672[_0x599a00(0x171)]],_0x4e1e9c=_0x182672[_0x599a00(0x128)](join,_0x2652f5,_0x599a00(0x162)),_0x1f71bd=join(_0x2652f5,'ci'),_0x22a28b=[{'location':'ci','path':_0x182672[_0x599a00(0x12e)](join,_0x2652f5,'ci',_0x396b89)},{'location':_0x599a00(0x162),'path':join(_0x2652f5,_0x182672['fFlJV'],_0x396b89)},{'location':_0x182672[_0x599a00(0x171)],'path':_0x182672[_0x599a00(0x124)](join,_0x2652f5,_0x396b89)}];for(const _0x14f81b of _0x22a28b){if(_0x144023[_0x599a00(0x15a)](_0x14f81b[_0x599a00(0x136)])&&_0x182672[_0x599a00(0x175)](existsSync,_0x14f81b[_0x599a00(0x13f)])){if(_0x14f81b['location']===_0x182672[_0x599a00(0x171)]&&(_0x14f81b['path']===_0x4e1e9c||_0x14f81b[_0x599a00(0x13f)]===_0x1f71bd)&&!_0x182672[_0x599a00(0x167)](hasLegacyProfileFiles,_0x14f81b[_0x599a00(0x13f)]))continue;return{'path':_0x14f81b['path'],'location':_0x14f81b[_0x599a00(0x136)]};}}return null;}function hasLegacyProfileFiles(_0x46749a){const _0xf148ff=_0x3cba,_0x4fb54a={'sdNNw':function(_0x3fa8c0,_0x26dc1d){return _0x3fa8c0(_0x26dc1d);},'vehKG':function(_0x1da7ee,_0x29b922,_0x5702bb){return _0x1da7ee(_0x29b922,_0x5702bb);}};return existsSync(join(_0x46749a,'settings.json'))||existsSync(join(_0x46749a,_0xf148ff(0x138)))||_0x4fb54a[_0xf148ff(0x127)](existsSync,_0x4fb54a[_0xf148ff(0x170)](join,_0x46749a,'auth.json.enc'));}export function isEnvCi(_0x1d8291){const _0x59380d=_0x3cba,_0x3d94dc={'hkSaK':function(_0x5b07c6,_0x11a3f9,_0x2af6f2,_0x91a5d2){return _0x5b07c6(_0x11a3f9,_0x2af6f2,_0x91a5d2);},'XYCUD':function(_0x2b02b7){return _0x2b02b7();}};return existsSync(_0x3d94dc[_0x59380d(0x155)](join,_0x3d94dc[_0x59380d(0x164)](getRangerDir),'ci',_0x1d8291));}export async function cleanupTempFiles(_0x5ef9f6){const _0x115b3c=_0x3cba,_0x338ded={'GSyvH':function(_0x196b38,_0x4f596a){return _0x196b38!==_0x4f596a;}},_0x37fb58=[_0x5ef9f6[_0x115b3c(0x153)],_0x5ef9f6['configPath']]['filter'](Boolean);await Promise[_0x115b3c(0x14e)](_0x37fb58['map'](_0x11c24e=>unlink(_0x11c24e)[_0x115b3c(0x18a)](_0x12cc78=>{const _0x137f2d=_0x115b3c;_0x338ded['GSyvH'](_0x12cc78[_0x137f2d(0x131)],_0x137f2d(0x176))&&console['warn'](_0x137f2d(0x183)+_0x11c24e+':',_0x12cc78[_0x137f2d(0x130)]);})));}export function getSettingsPath(_0x3a9d54){const _0x5da744=_0x3cba,_0x57d57e={'gkUCA':_0x5da744(0x181)};return join(getEnvDir(_0x3a9d54),_0x57d57e[_0x5da744(0x146)]);}export async function loadSettings(_0x2e8319){const _0x414ba9=_0x3cba,_0x2aac76={'rQXdi':function(_0x40756e,_0xbe1d4){return _0x40756e(_0xbe1d4);},'ePdvP':function(_0x457c37,_0x23e994,_0x5ba473){return _0x457c37(_0x23e994,_0x5ba473);}},_0xeb52e6=_0x2aac76[_0x414ba9(0x182)](getSettingsPath,_0x2e8319);if(!_0x2aac76['rQXdi'](existsSync,_0xeb52e6))return{};try{const _0x317200=await _0x2aac76['ePdvP'](readFile,_0xeb52e6,'utf-8');return JSON[_0x414ba9(0x172)](_0x317200);}catch{return{};}}export async function saveSettings(_0x3f25f8,_0x9106c3){const _0x41f18f=_0x3cba,_0x29e709={'nACDg':function(_0x1ef463,_0x59b1b6){return _0x1ef463(_0x59b1b6);},'HVhAM':function(_0x2e4dc1,_0x574b69,_0x552bf9){return _0x2e4dc1(_0x574b69,_0x552bf9);}},_0x4aa25c=_0x29e709['nACDg'](getSettingsPath,_0x3f25f8),_0x551ce1=dirname(_0x4aa25c);!existsSync(_0x551ce1)&&await _0x29e709['HVhAM'](mkdir,_0x551ce1,{'recursive':!![]}),await writeFile(_0x4aa25c,JSON[_0x41f18f(0x18c)](_0x9106c3,null,0x2));}export function resolveEnvVars(_0xb4e84c){const _0x489703=_0x3cba,_0x34f06b={'exirg':_0x489703(0x157),'UEdQU':function(_0x266f65,_0x926594){return _0x266f65===_0x926594;},'XYEzQ':_0x489703(0x156)};if(typeof _0xb4e84c===_0x34f06b['exirg'])return _0xb4e84c['replace'](/\$\{(\w+)\}/g,(_0x32a7f2,_0x142607)=>{const _0xa1b213=_0x489703,_0x502585=process[_0xa1b213(0x174)][_0x142607];if(_0x502585===undefined)throw new Error('Environment\x20variable\x20'+_0x142607+_0xa1b213(0x17b));return _0x502585;});if(Array['isArray'](_0xb4e84c))return _0xb4e84c[_0x489703(0x165)](resolveEnvVars);if(_0xb4e84c&&_0x34f06b['UEdQU'](typeof _0xb4e84c,_0x34f06b[_0x489703(0x16f)]))return Object[_0x489703(0x16e)](Object['entries'](_0xb4e84c)[_0x489703(0x165)](([_0x3fdc50,_0x47cc43])=>[_0x3fdc50,resolveEnvVars(_0x47cc43)]));return _0xb4e84c;}const isRecord=_0x5d1b5e=>typeof _0x5d1b5e==='object'&&_0x5d1b5e!==null&&!Array['isArray'](_0x5d1b5e),asRecord=_0x2ac167=>isRecord(_0x2ac167)?_0x2ac167:undefined,mergeHeaders=(_0x3b2c9b,_0xfd50b5)=>{const _0x2bae79=_0x3cba,_0x57c02f={..._0x3b2c9b??{},..._0xfd50b5??{}};return Object[_0x2bae79(0x17e)](_0x57c02f)['length']?_0x57c02f:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x189951(0x17a),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x532e9e,_0x580b4a={}){const _0xc81cef=_0x189951,_0x3e2dd5={'QdjGa':_0xc81cef(0x161),'wfmBy':function(_0x169778,_0xa3d76){return _0x169778===_0xa3d76;},'mwbWs':_0xc81cef(0x157),'kclkZ':function(_0x1c5d6a,_0x3fbfb0){return _0x1c5d6a(_0x3fbfb0);}},_0x284a68=asRecord(_0x532e9e[_0xc81cef(0x13b)]),_0x19700a={...asRecord(_0x284a68?.[_0xc81cef(0x121)])??{}};typeof _0x580b4a['headless']===_0x3e2dd5[_0xc81cef(0x148)]&&(_0x19700a[_0xc81cef(0x184)]=_0x580b4a['headless']);if(_0x532e9e[_0xc81cef(0x129)]){const _0x4df390=_0x19700a[_0xc81cef(0x122)]??[],_0x3ca0b9=SAFE_MODE_ARGS[_0xc81cef(0x173)](_0x479cb9=>!_0x4df390['includes'](_0x479cb9));_0x19700a[_0xc81cef(0x122)]=[..._0x4df390,..._0x3ca0b9];}if(_0x532e9e[_0xc81cef(0x17f)]){const _0x5d6517=_0x19700a[_0xc81cef(0x122)]??[],_0x1a02e2=ALLOW_LOCALHOST_ARGS[_0xc81cef(0x173)](_0x29c33a=>!_0x5d6517['includes'](_0x29c33a));_0x19700a[_0xc81cef(0x122)]=[..._0x5d6517,..._0x1a02e2];}const _0xb0bf27={...asRecord(_0x284a68?.['contextOptions'])??{}};_0xb0bf27['ignoreHTTPSErrors']=!![];_0x3e2dd5[_0xc81cef(0x140)](typeof _0x532e9e[_0xc81cef(0x168)],_0x3e2dd5[_0xc81cef(0x151)])&&(_0xb0bf27[_0xc81cef(0x168)]=_0x532e9e['userAgent']);const _0x2652f9=mergeHeaders(_0x3e2dd5['kclkZ'](asRecord,_0xb0bf27['extraHTTPHeaders']),asRecord(_0x532e9e['headers']));return _0x2652f9?_0xb0bf27[_0xc81cef(0x154)]=_0x2652f9:delete _0xb0bf27['extraHTTPHeaders'],_0x580b4a[_0xc81cef(0x14d)]&&(_0xb0bf27['storageState']=_0x580b4a['storageStatePath']),{'launchOptions':_0x19700a,'contextOptions':_0xb0bf27};}export async function buildPlaywrightConfig(_0x60dbce,_0x64e606,_0x44aad3,_0x24a3de){const _0x109bb5=_0x189951,_0x3a4e48={'FkELL':function(_0x5f5b7d,_0x395255,_0x1eb573){return _0x5f5b7d(_0x395255,_0x1eb573);},'SxYAc':_0x109bb5(0x132),'YHMHa':'auth.json.enc','irksN':_0x109bb5(0x138),'skJmH':_0x109bb5(0x152),'Bkyff':function(_0x3ff94f){return _0x3ff94f();},'eiinA':function(_0x523127,_0x583fc0,_0x2160af){return _0x523127(_0x583fc0,_0x2160af);},'pySUT':function(_0x610e06,_0x5647d2){return _0x610e06(_0x5647d2);},'nCuKq':function(_0x292e69,_0x23ff40,_0x1f3e70,_0x46b244){return _0x292e69(_0x23ff40,_0x1f3e70,_0x46b244);},'XbBNq':_0x109bb5(0x159),'wLyra':'core','jygKq':'tabs','hPWZV':'pdf','rTWGZ':_0x109bb5(0x120),'XXvrr':function(_0x552792,_0x37965c){return _0x552792===_0x37965c;},'UkJJB':function(_0x324e36,_0x88a6d6,_0x242e73){return _0x324e36(_0x88a6d6,_0x242e73);}},_0x351254=getEnvDir(_0x64e606),_0x3d728b=join(_0x351254,_0x3a4e48['YHMHa']),_0x48380f=join(_0x351254,_0x3a4e48[_0x109bb5(0x166)]);let _0x706e62,_0x3630a0;if(existsSync(_0x3d728b))try{const _0x455206=await getToken();if(!_0x455206)throw new Error(_0x3a4e48['skJmH']);const _0x167361=await readFile(_0x3d728b),_0x1350ba=decrypt(_0x167361,_0x455206);_0x3630a0=_0x3a4e48['FkELL'](join,_0x3a4e48[_0x109bb5(0x15f)](tmpdir),'ranger-auth-'+Date['now']()+_0x109bb5(0x125)),await _0x3a4e48[_0x109bb5(0x13d)](writeFile,_0x3630a0,_0x1350ba),_0x706e62=_0x3630a0;}catch(_0x318fcd){const _0x2b60d6=_0x318fcd instanceof Error?_0x318fcd[_0x109bb5(0x130)]:_0x3a4e48[_0x109bb5(0x179)](String,_0x318fcd);throw new Error(_0x109bb5(0x142)+_0x2b60d6);}else existsSync(_0x48380f)&&(_0x706e62=_0x48380f);const _0x2be22b=_0x44aad3||randomUUID(),_0x157796=_0x3a4e48['nCuKq'](join,getRangerDir(),_0x3a4e48[_0x109bb5(0x13c)],_0x2be22b),_0x2350b4=_0x3a4e48['pySUT'](Boolean,_0x60dbce['cdpEndpoint']),_0x352dc9=_0x2350b4?{'browserName':_0x3a4e48['SxYAc'],'cdpEndpoint':_0x60dbce['cdpEndpoint']}:((()=>{const _0x3d5ce7=_0x109bb5,{launchOptions:_0x1103d7,contextOptions:_0x1c3008}=_0x3a4e48['FkELL'](buildBrowserOptionsFromSettings,_0x60dbce,{'headless':_0x24a3de?![]:_0x60dbce['headless']??!![],'storageStatePath':_0x706e62});if(process['getuid']?.()===0x0){const _0x6c0564=['--no-sandbox',_0x3d5ce7(0x17d)],_0x38a644=_0x1103d7[_0x3d5ce7(0x122)]??[],_0x40f576=_0x6c0564[_0x3d5ce7(0x173)](_0x33a4ca=>!_0x38a644['includes'](_0x33a4ca));_0x1103d7[_0x3d5ce7(0x122)]=[..._0x38a644,..._0x40f576];}return{'isolated':!![],'browserName':_0x3a4e48['SxYAc'],'launchOptions':_0x1103d7,'contextOptions':{..._0x1c3008,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x62bf6d={'name':_0x64e606,'browser':_0x352dc9,'capabilities':[_0x3a4e48[_0x109bb5(0x187)],_0x3a4e48[_0x109bb5(0x16a)],_0x109bb5(0x180),_0x3a4e48['hPWZV'],_0x3a4e48[_0x109bb5(0x17c)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x157796};if(!_0x2350b4){const _0x283550=_0x62bf6d['browser'],_0x3e17e4=_0x283550[_0x109bb5(0x160)];if(_0x3a4e48[_0x109bb5(0x149)](_0x3e17e4['userAgent'],undefined))delete _0x3e17e4['userAgent'];if(_0x3e17e4['storageState']===undefined)delete _0x3e17e4[_0x109bb5(0x188)];}const _0x2190fa=join(_0x3a4e48[_0x109bb5(0x15f)](tmpdir),'ranger-config');!existsSync(_0x2190fa)&&await mkdir(_0x2190fa,{'recursive':!![]});const _0x3c9d79=_0x3a4e48[_0x109bb5(0x144)](join,_0x2190fa,_0x64e606+'-'+Date[_0x109bb5(0x18b)]()+_0x109bb5(0x125));return await _0x3a4e48[_0x109bb5(0x150)](writeFile,_0x3c9d79,JSON[_0x109bb5(0x18c)](_0x62bf6d,null,0x2)),{'configPath':_0x3c9d79,'tempAuthPath':_0x3630a0};}export async function buildPlaywrightCliConfig(_0x5c35a,_0x94b603,_0x23b3fb,_0x2f6b77){const _0xc1082c=_0x189951,_0x4fac85={'yIxMp':function(_0x489533,_0x3bdeae,_0x9c559b){return _0x489533(_0x3bdeae,_0x9c559b);},'ytVuH':_0xc1082c(0x141),'ekjVH':_0xc1082c(0x132),'CGkDR':_0xc1082c(0x139),'OwSLt':'auth.json.enc','NjeYT':function(_0x4f09f7){return _0x4f09f7();},'ZeLoJ':function(_0x1359ec,_0x490125){return _0x1359ec(_0x490125);},'hAVfl':function(_0x4f5b93,_0x3da302,_0x842e1d){return _0x4f5b93(_0x3da302,_0x842e1d);},'eKcHc':function(_0x116438,_0x165d29){return _0x116438 instanceof _0x165d29;},'TjnYC':function(_0x455e28,_0x484a7c,_0x4e3a96,_0x10eb57){return _0x455e28(_0x484a7c,_0x4e3a96,_0x10eb57);},'HYBnZ':'file','SVkhZ':_0xc1082c(0x137),'uxtwB':function(_0x346431){return _0x346431();},'PBVGh':function(_0x2f4f5d,_0x1e2374){return _0x2f4f5d(_0x1e2374);},'JDJQV':function(_0x4a88f1,_0x1f9761,_0xdacaa7){return _0x4a88f1(_0x1f9761,_0xdacaa7);}},_0x47520f=getEnvDir(_0x94b603),_0x59b2be=_0x4fac85[_0xc1082c(0x14f)](join,_0x47520f,_0x4fac85['OwSLt']),_0x677364=_0x4fac85[_0xc1082c(0x14f)](join,_0x47520f,'auth.json');let _0x14af55,_0x184c79;if(existsSync(_0x59b2be))try{const _0x59f671=await _0x4fac85['NjeYT'](getToken);if(!_0x59f671)throw new Error(_0xc1082c(0x152));const _0x71e790=await _0x4fac85['ZeLoJ'](readFile,_0x59b2be),_0x24fac3=_0x4fac85['yIxMp'](decrypt,_0x71e790,_0x59f671);_0x184c79=_0x4fac85[_0xc1082c(0x14b)](join,tmpdir(),_0xc1082c(0x126)+Date[_0xc1082c(0x18b)]()+'.json'),await writeFile(_0x184c79,_0x24fac3),_0x14af55=_0x184c79;}catch(_0x160105){const _0x428ef1=_0x4fac85['eKcHc'](_0x160105,Error)?_0x160105['message']:String(_0x160105);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x428ef1);}else _0x4fac85['ZeLoJ'](existsSync,_0x677364)&&(_0x14af55=_0x677364);const _0x5995ea=_0x23b3fb||randomUUID(),_0x4d39cd=_0x4fac85['TjnYC'](join,getRangerDir(),'sessions',_0x5995ea),_0x1b4de2=Boolean(_0x5c35a[_0xc1082c(0x135)]),_0x4037e2=_0x1b4de2?{'browserName':'chromium','cdpEndpoint':_0x5c35a['cdpEndpoint']}:((()=>{const _0x3ce826=_0xc1082c,{launchOptions:_0x1f2112,contextOptions:_0x5aec1f}=_0x4fac85[_0x3ce826(0x14f)](buildBrowserOptionsFromSettings,_0x5c35a,{'headless':_0x2f6b77?![]:_0x5c35a['headless']??!![],'storageStatePath':_0x14af55});if(process['getuid']?.()===0x0){const _0x4cf98d=[_0x4fac85[_0x3ce826(0x13e)],'--disable-setuid-sandbox'],_0x21cb69=_0x1f2112[_0x3ce826(0x122)]??[],_0x2e1268=_0x4cf98d[_0x3ce826(0x173)](_0x25e1c2=>!_0x21cb69[_0x3ce826(0x15a)](_0x25e1c2));_0x1f2112[_0x3ce826(0x122)]=[..._0x21cb69,..._0x2e1268];}return{'isolated':!![],'browserName':_0x4fac85[_0x3ce826(0x185)],'launchOptions':_0x1f2112,'contextOptions':{..._0x5aec1f,'permissions':[_0x3ce826(0x12f),_0x4fac85['CGkDR']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x1b4de2){const _0xabc8e8=_0x4037e2['contextOptions'];if(_0xabc8e8['userAgent']===undefined)delete _0xabc8e8[_0xc1082c(0x168)];if(_0xabc8e8['storageState']===undefined)delete _0xabc8e8['storageState'];}const _0x475756={'browser':_0x4037e2,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d39cd,'outputMode':_0x4fac85[_0xc1082c(0x189)],'codegen':_0x4fac85['SVkhZ']},_0x59850d=join(_0x4fac85[_0xc1082c(0x147)](tmpdir),_0xc1082c(0x12a));!_0x4fac85['PBVGh'](existsSync,_0x59850d)&&await mkdir(_0x59850d,{'recursive':!![]});const _0xcbb983=_0x4fac85[_0xc1082c(0x12b)](join,_0x59850d,_0x94b603+'-'+Date['now']()+'-cli.json');return await writeFile(_0xcbb983,JSON[_0xc1082c(0x18c)](_0x475756,null,0x2)),{'configPath':_0xcbb983,'tempAuthPath':_0x184c79};}export function getNestedValue(_0x517633,_0x1c7267){const _0x59dd30=_0x189951,_0x106ea3={'waqcW':function(_0x41b29a,_0x38e8f2){return _0x41b29a(_0x38e8f2);},'slwaK':function(_0x5b9894,_0x5a290b){return _0x5b9894===_0x5a290b;}},_0x31d144=_0x106ea3['waqcW'](parseKeyPath,_0x1c7267);let _0x7beed=_0x517633;for(const _0x43a04e of _0x31d144){if(_0x106ea3[_0x59dd30(0x14c)](_0x7beed,null)||_0x7beed===undefined||typeof _0x7beed!==_0x59dd30(0x156))return undefined;_0x7beed=_0x7beed[_0x43a04e];}return _0x7beed;}export function setNestedValue(_0x27919a,_0x597aa6,_0x482718){const _0x11b876=_0x189951,_0x15d8d9={'cExuO':function(_0x364412,_0x301ccd){return _0x364412(_0x301ccd);},'hJHOh':function(_0x2b863f,_0x51f753){return _0x2b863f<_0x51f753;},'dItrk':function(_0x110608,_0xa785f2){return _0x110608-_0xa785f2;},'AQnUV':function(_0x4a5a2c,_0x256b78){return _0x4a5a2c in _0x256b78;},'rVsOF':function(_0x3518fc,_0x33dd13){return _0x3518fc!==_0x33dd13;},'nLeWI':'object','KIWdc':function(_0x3396aa,_0xa37fa){return _0x3396aa-_0xa37fa;}},_0x14d87c=_0x15d8d9['cExuO'](parseKeyPath,_0x597aa6);let _0x26276b=_0x27919a;for(let _0x3e6130=0x0;_0x15d8d9[_0x11b876(0x145)](_0x3e6130,_0x15d8d9['dItrk'](_0x14d87c['length'],0x1));_0x3e6130++){const _0x25ecc4=_0x14d87c[_0x3e6130];(!_0x15d8d9[_0x11b876(0x15c)](_0x25ecc4,_0x26276b)||_0x15d8d9['rVsOF'](typeof _0x26276b[_0x25ecc4],_0x15d8d9['nLeWI']))&&(_0x26276b[_0x25ecc4]={}),_0x26276b=_0x26276b[_0x25ecc4];}_0x26276b[_0x14d87c[_0x15d8d9['KIWdc'](_0x14d87c['length'],0x1)]]=_0x482718;}export function deleteNestedValue(_0x4e3d59,_0x4483e0){const _0x31df1f=_0x189951,_0x5ed8da={'aZpju':function(_0x540198,_0x1b3e12){return _0x540198(_0x1b3e12);},'RGFao':function(_0x2bbdb9,_0x53ab48){return _0x2bbdb9<_0x53ab48;},'siWag':function(_0x5c02b9,_0x1fc6f9){return _0x5c02b9-_0x1fc6f9;},'cExnn':function(_0xfc88ad,_0x1a48c4){return _0xfc88ad===_0x1a48c4;},'OMZND':function(_0x260c54,_0x1372e){return _0x260c54!==_0x1372e;},'LYeEx':function(_0x37cfc2,_0x441fd4){return _0x37cfc2 in _0x441fd4;}},_0x16aecb=_0x5ed8da['aZpju'](parseKeyPath,_0x4483e0);let _0x2a1330=_0x4e3d59;for(let _0x351d8c=0x0;_0x5ed8da['RGFao'](_0x351d8c,_0x5ed8da['siWag'](_0x16aecb[_0x31df1f(0x12c)],0x1));_0x351d8c++){if(_0x5ed8da[_0x31df1f(0x163)](_0x2a1330,null)||_0x2a1330===undefined||_0x5ed8da['OMZND'](typeof _0x2a1330,_0x31df1f(0x156)))return![];_0x2a1330=_0x2a1330[_0x16aecb[_0x351d8c]];}if(_0x2a1330===null||_0x2a1330===undefined||typeof _0x2a1330!=='object')return![];const _0x598be7=_0x16aecb[_0x16aecb[_0x31df1f(0x12c)]-0x1];if(_0x5ed8da[_0x31df1f(0x143)](_0x598be7,_0x2a1330))return delete _0x2a1330[_0x598be7],!![];return![];}function parseKeyPath(_0x30a8bd){const _0x1b8fdd=_0x189951,_0x2f7ffa={'XIrUa':function(_0x1b11d7,_0x314ac8){return _0x1b11d7===_0x314ac8;},'BJHZO':_0x1b8fdd(0x186),'XkZeb':'setupHeaders'},_0x37b8c7=_0x30a8bd['split']('.');return _0x2f7ffa['XIrUa'](_0x37b8c7[0x0],_0x2f7ffa['BJHZO'])&&(_0x37b8c7[0x0]='headers'),_0x37b8c7[0x0]===_0x1b8fdd(0x15e)&&(_0x37b8c7[0x0]=_0x2f7ffa['XkZeb']),_0x37b8c7;}export function formatSettings(_0xfd019c,_0x221594=0x0){const _0x31bae9=_0x189951,_0x37bfeb={'IWWsf':function(_0x128211,_0x3c0062){return _0x128211===_0x3c0062;},'dmAKG':'object'},_0x4cd766=[],_0x477c32='\x20\x20'['repeat'](_0x221594);for(const [_0x6b6f50,_0x5ab870]of Object[_0x31bae9(0x14a)](_0xfd019c)){if(_0x37bfeb[_0x31bae9(0x177)](_0x5ab870,undefined))continue;if(typeof _0x5ab870===_0x37bfeb[_0x31bae9(0x16c)]&&_0x5ab870!==null){_0x4cd766['push'](''+_0x477c32+_0x6b6f50+':');for(const [_0xf0dfb0,_0x42aaa3]of Object[_0x31bae9(0x14a)](_0x5ab870)){_0x4cd766['push'](_0x477c32+'\x20\x20'+_0xf0dfb0+':\x20'+_0x42aaa3);}}else _0x4cd766['push'](''+_0x477c32+_0x6b6f50+':\x20'+_0x5ab870);}return _0x4cd766[_0x31bae9(0x134)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x31e3a7,_0x129ab4){const _0x342f9f=_0x4a1d,_0x34ff51=_0x31e3a7();while(!![]){try{const _0x1af692=-parseInt(_0x342f9f(0xbc))/0x1*(-parseInt(_0x342f9f(0xc0))/0x2)+parseInt(_0x342f9f(0xb6))/0x3*(-parseInt(_0x342f9f(0xc2))/0x4)+parseInt(_0x342f9f(0xbd))/0x5*(-parseInt(_0x342f9f(0xc1))/0x6)+-parseInt(_0x342f9f(0xb9))/0x7+-parseInt(_0x342f9f(0xb8))/0x8*(-parseInt(_0x342f9f(0xbe))/0x9)+parseInt(_0x342f9f(0xb7))/0xa+parseInt(_0x342f9f(0xba))/0xb;if(_0x1af692===_0x129ab4)break;else _0x34ff51['push'](_0x34ff51['shift']());}catch(_0xcb34bf){_0x34ff51['push'](_0x34ff51['shift']());}}}(_0x330c,0x3011f));import{readFileSync}from'fs';function _0x4a1d(_0x335eff,_0x51a966){_0x335eff=_0x335eff-0xb6;const _0x330cb7=_0x330c();let _0x4a1db4=_0x330cb7[_0x335eff];return _0x4a1db4;}import{dirname,join}from'path';function _0x330c(){const _0x4a49af=['21484LvZSaz','201isIOWB','740330IJaUcR','56jwxiwV','1722098IXgEmC','8381164VNAMRi','ranger/SKILL.md','3678nuChYp','401510DplWrf','190611UKVcSF','skills','76AWoiCk','24dqMLZE'];_0x330c=function(){return _0x4a49af;};return _0x330c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5ea120){const _0x263e88=_0x4a1d,_0x24091b={'Ltxsm':_0x263e88(0xbf)},_0x2c8db8=join(__dirname,'..','..',_0x24091b['Ltxsm']),_0x46b306=join(_0x2c8db8,_0x5ea120);try{return readFileSync(_0x46b306,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x19d9be=_0x4a1d,_0x1500b4={'QbwdF':function(_0x147aab,_0xa96cd7){return _0x147aab(_0xa96cd7);}};return _0x1500b4['QbwdF'](readSkillContent,_0x19d9be(0xbb));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x132b(_0x26402f,_0x423fc3){_0x26402f=_0x26402f-0xcc;const _0x3bd1dc=_0x3bd1();let _0x132be3=_0x3bd1dc[_0x26402f];return _0x132be3;}const _0x215a0f=_0x132b;(function(_0x442dde,_0x123e7a){const _0x1b674b=_0x132b,_0x1c57f6=_0x442dde();while(!![]){try{const _0x43a529=-parseInt(_0x1b674b(0xda))/0x1*(parseInt(_0x1b674b(0xe4))/0x2)+-parseInt(_0x1b674b(0xdb))/0x3+-parseInt(_0x1b674b(0xd2))/0x4+parseInt(_0x1b674b(0xcf))/0x5*(parseInt(_0x1b674b(0xef))/0x6)+-parseInt(_0x1b674b(0xdc))/0x7+parseInt(_0x1b674b(0xd7))/0x8*(-parseInt(_0x1b674b(0xec))/0x9)+parseInt(_0x1b674b(0xdf))/0xa;if(_0x43a529===_0x123e7a)break;else _0x1c57f6['push'](_0x1c57f6['shift']());}catch(_0x9dd06c){_0x1c57f6['push'](_0x1c57f6['shift']());}}}(_0x3bd1,0x88522));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0x3bd1(){const _0x18ee90=['27atxfME','sqYuN','skills','7170bvVwdK','XXXJk','FjsOT','e2e-test-recommender','bug-bash','SKILL.md','4445Nylvxt','warn','isDirectory','111888gOGAjn','length','UHPRP','mwgzr','match','1702120ZVsrGo','\x20\x20Removed\x20deprecated\x20skill:\x20','GtoOy','178838MGYMws','3048096DNeajX','1930425AKVrxH','filter','log','25271170okzBOq','endsWith','YxPNc','.md','KdkoB','12cWziNy','trim','ddLXT','ranger','CgIbm','utf-8','gCObb','feature-tracker'];_0x3bd1=function(){return _0x18ee90;};return _0x3bd1();}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x215a0f(0xe7)];export const DEPRECATED_SKILLS=[_0x215a0f(0xcc),_0x215a0f(0xcd),_0x215a0f(0xeb)];export async function installSkill(_0x103d28,_0x483c3d={}){const _0x1353e3=_0x215a0f,_0x12abd2={'FjsOT':'project','KdkoB':'claude','gCObb':function(_0x3bcefb,_0x2af466,_0xfa673d){return _0x3bcefb(_0x2af466,_0xfa673d);},'GtoOy':function(_0xc8edf4,_0x1ebc55){return _0xc8edf4(_0x1ebc55);},'YuBJn':function(_0x4338b9,_0x323a63){return _0x4338b9(_0x323a63);},'xjWHU':function(_0x1bbe9a,_0x1de48a){return _0x1bbe9a(_0x1de48a);},'mwgzr':function(_0x3beea4,_0x3cd6b3,_0x59e300){return _0x3beea4(_0x3cd6b3,_0x59e300);},'CgIbm':function(_0x263d64,_0x4852a3){return _0x263d64&&_0x4852a3;},'QnWmQ':function(_0x3ec19a,_0x325d39){return _0x3ec19a(_0x325d39);},'tetrm':function(_0x1a7255,_0x85036a){return _0x1a7255(_0x85036a);},'UHPRP':function(_0x569ed5,_0x5bbd0e){return _0x569ed5(_0x5bbd0e);}},{level:level=_0x12abd2[_0x1353e3(0xf1)],cliVersion:_0x13e4c1,platform:platform=_0x12abd2[_0x1353e3(0xe3)]}=_0x483c3d,_0x214ac6=getSourceSkillsDir(),_0x23d893=_0x12abd2['gCObb'](join,_0x214ac6,_0x103d28),_0x2f6993=join(_0x214ac6,_0x103d28+_0x1353e3(0xe2)),_0x16f522=_0x12abd2[_0x1353e3(0xd9)](existsSync,_0x23d893)&&_0x12abd2['YuBJn'](statSync,_0x23d893)[_0x1353e3(0xd1)]()&&_0x12abd2['xjWHU'](existsSync,_0x12abd2[_0x1353e3(0xd5)](join,_0x23d893,'SKILL.md')),_0x812012=_0x12abd2['xjWHU'](existsSync,_0x2f6993);if(_0x12abd2[_0x1353e3(0xe8)](!_0x16f522,!_0x812012))return console[_0x1353e3(0xd0)]('\x20\x20Skill\x20not\x20found:\x20'+_0x103d28),![];const _0x56db19=platform==='opencode'?_0x12abd2['GtoOy'](getOpencodeSkillsDir,level):_0x12abd2['QnWmQ'](getSkillsDir,level),_0x4d4c9b=_0x12abd2['mwgzr'](join,_0x56db19,_0x103d28);await _0x12abd2['mwgzr'](mkdir,_0x4d4c9b,{'recursive':!![]});let _0x413b3a,_0x58faa4=[];if(_0x16f522){const _0x5d175a=await _0x12abd2['tetrm'](readdir,_0x23d893),_0x15dd35=_0x5d175a[_0x1353e3(0xdd)](_0x1b0e06=>_0x1b0e06[_0x1353e3(0xe0)]('.md'));for(const _0x529afa of _0x15dd35){const _0x2963b1=_0x12abd2[_0x1353e3(0xd5)](join,_0x23d893,_0x529afa),_0x1d7ab9=join(_0x4d4c9b,_0x529afa);await copyFile(_0x2963b1,_0x1d7ab9),_0x58faa4['push'](_0x529afa);}_0x413b3a=await readFile(_0x12abd2[_0x1353e3(0xea)](join,_0x23d893,_0x1353e3(0xce)),_0x1353e3(0xe9));}else{_0x413b3a=await _0x12abd2['gCObb'](readFile,_0x2f6993,_0x1353e3(0xe9));const _0x3a2c22=join(_0x4d4c9b,_0x1353e3(0xce));await writeFile(_0x3a2c22,_0x413b3a,_0x1353e3(0xe9)),_0x58faa4['push'](_0x1353e3(0xce));}const {name:_0x12238f}=_0x12abd2[_0x1353e3(0xd4)](parseFrontmatter,_0x413b3a);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x12238f),console[_0x1353e3(0xde)]('\x20\x20Location:\x20'+_0x4d4c9b),_0x58faa4[_0x1353e3(0xd3)]>0x1&&console[_0x1353e3(0xde)]('\x20\x20Files:\x20'+_0x58faa4['join'](',\x20')),logLocalAgentInstallation(_0x103d28,{'skillDisplayName':_0x12238f,'installLevel':level},_0x13e4c1)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x4863a5=_0x215a0f,_0xf37a85={'IeeyJ':function(_0x4bb97e,_0x22953c,_0x57651f,_0x2b1ffc,_0x31e432){return _0x4bb97e(_0x22953c,_0x57651f,_0x2b1ffc,_0x31e432);},'sqYuN':_0x4863a5(0xee),'YxPNc':function(_0x81a297,_0x4ae65f){return _0x81a297(_0x4ae65f);}},_0x3bd76b=[_0xf37a85['IeeyJ'](join,__dirname,'..','..',_0xf37a85[_0x4863a5(0xed)]),join(__dirname,'..','..','..',_0xf37a85['sqYuN'])];for(const _0x17d0ad of _0x3bd76b){if(_0xf37a85[_0x4863a5(0xe1)](existsSync,_0x17d0ad))return _0x17d0ad;}return _0x3bd76b[0x0];}function parseFrontmatter(_0xf58633){const _0x199ed3=_0x215a0f,_0x41e421=_0xf58633['match'](/^---\n([\s\S]+?)\n---/);if(!_0x41e421)throw new Error('Invalid\x20skill\x20frontmatter');const _0x4b1a19=_0x41e421[0x1],_0x1c1c35=_0x4b1a19[_0x199ed3(0xd6)](/name:\s*(.+)/),_0x322c88=_0x4b1a19[_0x199ed3(0xd6)](/description:\s*"?(.+?)"?\n/);return{'name':_0x1c1c35?.[0x1][_0x199ed3(0xe5)]()||'','description':_0x322c88?.[0x1]['trim']()||''};}export async function removeSkill(_0x1affab,_0x434a7e){const _0x5f0d71=_0x215a0f,_0x4b3515={'XXXJk':function(_0x1a718c,_0x4d0b22){return _0x1a718c(_0x4d0b22);},'ddLXT':function(_0x5d28f3,_0x48c118,_0x4e023c){return _0x5d28f3(_0x48c118,_0x4e023c);}},_0x1eee95=_0x4b3515[_0x5f0d71(0xf0)](getSkillsDir,_0x434a7e),_0x5f01a4=join(_0x1eee95,_0x1affab);if(!existsSync(_0x5f01a4))return![];try{return await _0x4b3515[_0x5f0d71(0xe6)](rm,_0x5f01a4,{'recursive':!![]}),console['log'](_0x5f0d71(0xd8)+_0x1affab),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x1affab),![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2919ab=_0x30e3;(function(_0x355ec2,_0x4e851d){const _0x4b7546=_0x30e3,_0x552cf5=_0x355ec2();while(!![]){try{const _0x14aeb3=-parseInt(_0x4b7546(0x82))/0x1*(parseInt(_0x4b7546(0x94))/0x2)+-parseInt(_0x4b7546(0xa1))/0x3*(parseInt(_0x4b7546(0xb5))/0x4)+-parseInt(_0x4b7546(0x84))/0x5*(parseInt(_0x4b7546(0x8e))/0x6)+-parseInt(_0x4b7546(0x9c))/0x7+parseInt(_0x4b7546(0xb7))/0x8*(parseInt(_0x4b7546(0xa6))/0x9)+parseInt(_0x4b7546(0xaf))/0xa*(parseInt(_0x4b7546(0xa2))/0xb)+parseInt(_0x4b7546(0xad))/0xc;if(_0x14aeb3===_0x4e851d)break;else _0x552cf5['push'](_0x552cf5['shift']());}catch(_0x1f279d){_0x552cf5['push'](_0x552cf5['shift']());}}}(_0x1e2f,0x46d23));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(_0xf80a27,_0x404212){const _0x2b9e06=_0x30e3,_0x245b50={'EpySZ':function(_0x920517,_0x1b6f8b){return _0x920517<=_0x1b6f8b;},'QGQHa':function(_0x3cf0d1,_0xd7e9a){return _0x3cf0d1>_0xd7e9a;},'LUYHA':function(_0x4c1fc1,_0x53515b){return _0x4c1fc1&_0x53515b;}};if(_0x404212>=_0xf80a27['length'])return[0x0,0x0];const _0x4c1476=_0xf80a27[_0x404212];let _0x299d9f=0x1,_0x1fa090=0x80;while(_0x245b50['EpySZ'](_0x299d9f,0x8)&&!(_0x4c1476&_0x1fa090)){_0x299d9f++,_0x1fa090>>=0x1;}if(_0x245b50[_0x2b9e06(0x97)](_0x404212+_0x299d9f,_0xf80a27[_0x2b9e06(0xa3)]))return[0x0,0x0];let _0x859f9a=_0x245b50['LUYHA'](_0x4c1476,_0x1fa090-0x1);for(let _0x257079=0x1;_0x257079<_0x299d9f;_0x257079++){_0x859f9a=_0x859f9a*0x100+_0xf80a27[_0x404212+_0x257079];}return[_0x859f9a,_0x299d9f];}function _0x1e2f(){const _0xde7c8c=['FgPqF','FUTqL','9628116kznUDa','copy','160aJAHfq','gswib','mAqCf','VZCvd','micuj','cqDqA','8628UaMNml','slice','24QHIUAn','hgsko','from','alloc','stitchWebmFiles.js','pow','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','readInt16BE','RkIpC','YwDRi','ckoeo','min','16897oBAZom','floor','10vFhefO','AsBkr','ZARCH','HWQBg','push','gWjYV','qcZVB','bodyBeforeTimestamp','zlEcW','stitchWebmFiles.ts','730098LotiCc','onPoO','Aoumi','bodyAfterTimestamp','NmYTb','YZiFx','46oJkEda','maxTicks','rOZld','QGQHa','header','VeeDi','OHKfg','concat','996506VQRZlf','IwQBn','Rgltl','gvbGk','indexOf','732OZEmVP','330231kNbLWX','length','lgsON','nKfXN','924201SFqubj','SfcVa','ZHNBv','log','nDrmw'];_0x1e2f=function(){return _0xde7c8c;};return _0x1e2f();}function readId(_0x57eba8,_0xe682fa){const _0x2b3cb6=_0x30e3,_0x2e6005={'HWQBg':function(_0x209bb4,_0x82ecf6){return _0x209bb4>=_0x82ecf6;},'FgPqF':function(_0x274748,_0x518107){return _0x274748>=_0x518107;},'VeeDi':function(_0x32b107,_0x4b91c6){return _0x32b107>_0x4b91c6;},'cJjBL':function(_0x493f2d,_0x4ac56d){return _0x493f2d+_0x4ac56d;}};if(_0xe682fa>=_0x57eba8[_0x2b3cb6(0xa3)])return[0x0,0x0];const _0x4e14ee=_0x57eba8[_0xe682fa];let _0x107c03;if(_0x2e6005[_0x2b3cb6(0x87)](_0x4e14ee,0x80))_0x107c03=0x1;else{if(_0x4e14ee>=0x40)_0x107c03=0x2;else{if(_0x4e14ee>=0x20)_0x107c03=0x3;else{if(_0x2e6005[_0x2b3cb6(0xab)](_0x4e14ee,0x10))_0x107c03=0x4;else return[_0x4e14ee,0x1];}}}if(_0x2e6005[_0x2b3cb6(0x99)](_0xe682fa+_0x107c03,_0x57eba8['length']))return[0x0,0x0];let _0x3e6926=0x0;for(let _0x5711a0=0x0;_0x5711a0<_0x107c03;_0x5711a0++){_0x3e6926=_0x3e6926*0x100+_0x57eba8[_0x2e6005['cJjBL'](_0xe682fa,_0x5711a0)];}return[_0x3e6926,_0x107c03];}function readUint(_0x16587b,_0x296a72,_0x5bf1c4){const _0x45aac4={'alKIr':function(_0x2267c7,_0x400300){return _0x2267c7+_0x400300;}};let _0x1b445d=0x0;for(let _0x5cec2d=0x0;_0x5cec2d<_0x5bf1c4;_0x5cec2d++){_0x1b445d=_0x45aac4['alKIr'](_0x1b445d*0x100,_0x16587b[_0x296a72+_0x5cec2d]);}return _0x1b445d;}function isUnknownSize(_0x2c88a1,_0x5a6fe7){const _0x70a6fb=_0x30e3,_0x1d83f9={'vKQNr':function(_0x59d304,_0x2ab01b){return _0x59d304===_0x2ab01b;},'qcZVB':function(_0x8022c3,_0x468da2){return _0x8022c3-_0x468da2;},'RRXca':function(_0xad4070,_0x52e758){return _0xad4070*_0x52e758;}};return _0x1d83f9['vKQNr'](_0x2c88a1,_0x1d83f9[_0x70a6fb(0x8a)](Math[_0x70a6fb(0xbc)](0x2,_0x1d83f9['RRXca'](0x7,_0x5a6fe7)),0x1));}function writeVint(_0x50d7f9,_0x233dc1){const _0x2975ac=_0x30e3,_0x379252={'ABFbY':function(_0x9b2afe,_0x24439d){return _0x9b2afe<_0x24439d;},'hgsko':function(_0x4b65cb,_0x357212){return _0x4b65cb-_0x357212;},'NAaJL':function(_0x1284df,_0x3bd629){return _0x1284df>=_0x3bd629;},'wJjxJ':function(_0x5d14e9,_0x9eb45c){return _0x5d14e9/_0x9eb45c;},'onPoO':function(_0x2cbc89,_0x1ef187){return _0x2cbc89<<_0x1ef187;}};let _0x4e9dd3=_0x233dc1||0x1;while(_0x379252['ABFbY'](_0x379252['hgsko'](Math[_0x2975ac(0xbc)](0x2,0x7*_0x4e9dd3),0x2),_0x50d7f9))_0x4e9dd3++;const _0x5e9994=Buffer['alloc'](_0x4e9dd3);for(let _0xf67b99=_0x379252[_0x2975ac(0xb8)](_0x4e9dd3,0x1);_0x379252['NAaJL'](_0xf67b99,0x0);_0xf67b99--){_0x5e9994[_0xf67b99]=_0x50d7f9&0xff,_0x50d7f9=Math['floor'](_0x379252['wJjxJ'](_0x50d7f9,0x100));}return _0x5e9994[0x0]|=_0x379252[_0x2975ac(0x8f)](0x1,0x8-_0x4e9dd3),_0x5e9994;}function writeUint(_0xc414e3,_0xdc7457){const _0x2ba9cb=_0x30e3,_0x1314ee={'qJucf':function(_0x243753,_0x4cc3cf){return _0x243753>=_0x4cc3cf;},'ckoeo':function(_0x24dd3d,_0x4d2bf9){return _0x24dd3d/_0x4d2bf9;}},_0x39277f=Buffer[_0x2ba9cb(0xba)](_0xdc7457);for(let _0x4aa965=_0xdc7457-0x1;_0x1314ee['qJucf'](_0x4aa965,0x0);_0x4aa965--){_0x39277f[_0x4aa965]=_0xc414e3&0xff,_0xc414e3=Math[_0x2ba9cb(0x83)](_0x1314ee[_0x2ba9cb(0x80)](_0xc414e3,0x100));}return _0x39277f;}function writeUnknownSizeVint(_0x4dc048){const _0x49e152=Buffer['alloc'](_0x4dc048,0xff);return _0x49e152[0x0]=0xff>>_0x4dc048-0x1,_0x49e152;}function uintSize(_0x1ee4c5){const _0x1360ab=_0x30e3,_0x1fe002={'mxmdL':function(_0x33873e,_0xe15b1f){return _0x33873e===_0xe15b1f;},'rOZld':function(_0x4d66f8,_0x3bdad5){return _0x4d66f8>_0x3bdad5;}};if(_0x1fe002['mxmdL'](_0x1ee4c5,0x0))return 0x1;let _0x4972b6=0x0,_0x131e0d=_0x1ee4c5;while(_0x1fe002[_0x1360ab(0x96)](_0x131e0d,0x0)){_0x4972b6++,_0x131e0d=Math['floor'](_0x131e0d/0x100);}return _0x4972b6;}function findTimestampScale(_0x1dc350,_0x5f17c2){const _0x3356f2=_0x30e3,_0x3b5528={'bbDqz':function(_0x593766,_0x878fa){return _0x593766<_0x878fa;},'micuj':function(_0x35a150,_0x363158,_0x101f85){return _0x35a150(_0x363158,_0x101f85);},'AXGsE':function(_0x116a08,_0x4ae13e){return _0x116a08===_0x4ae13e;},'CkWpM':function(_0x2d4251,_0x34424){return _0x2d4251+_0x34424;},'pbzDD':function(_0x44e503,_0x1a2ff6){return _0x44e503===_0x1a2ff6;}};let _0x56f283=_0x5f17c2;const _0x490d32=Math[_0x3356f2(0x81)](_0x1dc350['length'],_0x5f17c2+0x2710);while(_0x3b5528['bbDqz'](_0x56f283,_0x490d32)){const [_0x39a905,_0x2e2f45]=_0x3b5528['micuj'](readId,_0x1dc350,_0x56f283),[_0x1ffb99,_0x4e3a1c]=readVint(_0x1dc350,_0x56f283+_0x2e2f45);if(_0x3b5528['AXGsE'](_0x39a905,ID_INFO)){let _0x535b63=_0x56f283+_0x2e2f45+_0x4e3a1c;const _0x326579=_0x3b5528['CkWpM'](_0x535b63,_0x1ffb99);while(_0x3b5528['bbDqz'](_0x535b63,_0x326579)){const [_0x28f5a1,_0x267aee]=readId(_0x1dc350,_0x535b63),[_0x409973,_0x59c748]=_0x3b5528[_0x3356f2(0xb3)](readVint,_0x1dc350,_0x535b63+_0x267aee);if(_0x28f5a1===ID_TIMESTAMP_SCALE)return readUint(_0x1dc350,_0x3b5528['CkWpM'](_0x535b63+_0x267aee,_0x59c748),_0x409973);_0x535b63+=_0x267aee+_0x59c748+_0x409973;}break;}if(_0x3b5528['pbzDD'](_0x39a905,ID_CLUSTER))break;if(_0x3b5528['micuj'](isUnknownSize,_0x1ffb99,_0x4e3a1c))break;_0x56f283+=_0x2e2f45+_0x4e3a1c+_0x1ffb99;}return 0xf4240;}function findFirstClusterOffset(_0x5f045c,_0x107864){const _0x5f4636=_0x30e3,_0x21b722={'oeSFf':function(_0x55a461,_0x42f07c){return _0x55a461+_0x42f07c;},'nMVQG':function(_0x38ab87,_0x4d239c,_0x135df1){return _0x38ab87(_0x4d239c,_0x135df1);}};let _0xf0a5f3=_0x107864;while(_0xf0a5f3<_0x5f045c['length']){const [_0x1fe99c,_0x148e54]=readId(_0x5f045c,_0xf0a5f3);if(_0x1fe99c===ID_CLUSTER)return _0xf0a5f3;const [_0x599d41,_0x10dfe6]=readVint(_0x5f045c,_0x21b722['oeSFf'](_0xf0a5f3,_0x148e54));if(_0x21b722['nMVQG'](isUnknownSize,_0x599d41,_0x10dfe6))return _0xf0a5f3;_0xf0a5f3+=_0x148e54+_0x10dfe6+_0x599d41;}return _0x5f045c[_0x5f4636(0xa3)];}function findClusterEnd(_0x190a92,_0x2c3441,_0x563698,_0x43ca87){const _0x14ff25=_0x30e3,_0x53e2a2={'Rgltl':function(_0x1be0cd,_0x4745e4,_0x28f91e){return _0x1be0cd(_0x4745e4,_0x28f91e);},'aIHSm':function(_0x120c4a,_0x95a4f2){return _0x120c4a-_0x95a4f2;},'mAqCf':function(_0xc90dc0,_0x3966b5,_0x3d14fc){return _0xc90dc0(_0x3966b5,_0x3d14fc);},'etWce':function(_0xd803d6,_0x5d4162){return _0xd803d6+_0x5d4162;}};if(!_0x53e2a2[_0x14ff25(0x9e)](isUnknownSize,_0x563698,_0x43ca87))return _0x2c3441+_0x563698;const _0x103f40=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x554861=_0x2c3441;while(_0x554861<_0x53e2a2['aIHSm'](_0x190a92['length'],0x4)){const [_0x693924,_0x37c45e]=_0x53e2a2[_0x14ff25(0xb1)](readId,_0x190a92,_0x554861);if(_0x103f40['has'](_0x693924))return _0x554861;const [_0x16c213,_0x2d6675]=readVint(_0x190a92,_0x554861+_0x37c45e);if(_0x53e2a2[_0x14ff25(0x9e)](isUnknownSize,_0x16c213,_0x2d6675))return _0x190a92[_0x14ff25(0xa3)];_0x554861+=_0x53e2a2['etWce'](_0x53e2a2['etWce'](_0x37c45e,_0x2d6675),_0x16c213);}return _0x190a92['length'];}function extractClusters(_0x3b6fc2,_0x17cf40){const _0x14f432=_0x30e3,_0xd87629={'kpdEZ':function(_0x220739,_0x512698){return _0x220739===_0x512698;},'zlEcW':function(_0x1dd9cf,_0x309d12,_0x525159){return _0x1dd9cf(_0x309d12,_0x525159);},'gWjYV':function(_0x52e807,_0x2986e5){return _0x52e807!==_0x2986e5;},'nKfXN':function(_0x49668d,_0x1e4cbe){return _0x49668d+_0x1e4cbe;},'FUTqL':function(_0x5b6597,_0x24d439){return _0x5b6597+_0x24d439;},'gvbGk':function(_0x1d27f7,_0x52b5ec,_0x3faa71,_0x404360,_0x3ae47b){return _0x1d27f7(_0x52b5ec,_0x3faa71,_0x404360,_0x3ae47b);},'eQEbn':function(_0x1fe7d3,_0x1fb049){return _0x1fe7d3+_0x1fb049;},'NCnqo':function(_0x4079a8,_0xcfd656){return _0x4079a8+_0xcfd656;},'xHeli':function(_0x48aa93,_0x1539a2){return _0x48aa93+_0x1539a2;},'FfTbp':function(_0x100a84,_0x3883e4){return _0x100a84<_0x3883e4;},'uPmld':function(_0x5c72fd,_0x3d617d){return _0x5c72fd>_0x3d617d;},'IgNKj':function(_0x16621d,_0x30b365){return _0x16621d===_0x30b365;},'NmYTb':function(_0x2aec64,_0x5053e2){return _0x2aec64+_0x5053e2;}},_0x4687b3=[],_0x590f70=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x329066=0x0;while(_0x329066<_0x3b6fc2[_0x14f432(0xa3)]){const _0x56300a=_0x3b6fc2[_0x14f432(0xa0)](_0x590f70,_0x329066);if(_0xd87629['kpdEZ'](_0x56300a,-0x1))break;const [_0x4a65c2,_0x120a69]=_0xd87629['zlEcW'](readId,_0x3b6fc2,_0x56300a);if(_0xd87629[_0x14f432(0x89)](_0x4a65c2,ID_CLUSTER)){_0x329066=_0x56300a+0x1;continue;}const [_0x5b0bbc,_0x55ce72]=readVint(_0x3b6fc2,_0xd87629[_0x14f432(0xa5)](_0x56300a,_0x120a69)),_0x196a37=_0xd87629[_0x14f432(0xac)](_0x56300a+_0x120a69,_0x55ce72),_0x3ac6c3=_0xd87629[_0x14f432(0x9f)](findClusterEnd,_0x3b6fc2,_0x196a37,_0x5b0bbc,_0x55ce72);let _0x5b4cf3=_0x196a37,_0x129bf3=0x0,_0x27bc3e=0x2,_0x51a34f=![],_0x34876e=Buffer['alloc'](0x0),_0x30c609=Buffer['alloc'](0x0);while(_0x5b4cf3<_0x3ac6c3){const [_0x45d0cb,_0x367ba1]=readId(_0x3b6fc2,_0x5b4cf3),[_0x26d6f5,_0x348772]=_0xd87629[_0x14f432(0x8c)](readVint,_0x3b6fc2,_0xd87629['FUTqL'](_0x5b4cf3,_0x367ba1));if(_0x45d0cb===ID_TIMESTAMP){_0x129bf3=readUint(_0x3b6fc2,_0x5b4cf3+_0x367ba1+_0x348772,_0x26d6f5),_0x27bc3e=_0x26d6f5,_0x51a34f=!![],_0x34876e=_0x3b6fc2[_0x14f432(0xb6)](_0x196a37,_0x5b4cf3);const _0x52e183=_0xd87629['eQEbn'](_0xd87629['NCnqo'](_0x5b4cf3,_0x367ba1)+_0x348772,_0x26d6f5);_0x30c609=_0x3b6fc2[_0x14f432(0xb6)](_0x52e183,_0x3ac6c3);break;}if(_0x45d0cb===ID_CLUSTER)break;if(isUnknownSize(_0x26d6f5,_0x348772))break;_0x5b4cf3+=_0xd87629[_0x14f432(0xac)](_0xd87629['xHeli'](_0x367ba1,_0x348772),_0x26d6f5);}!_0x51a34f&&(_0x30c609=_0x3b6fc2['slice'](_0x196a37,_0x3ac6c3));let _0x3069a9=_0x129bf3;_0x5b4cf3=_0x196a37;while(_0xd87629['FfTbp'](_0x5b4cf3,_0x3ac6c3)){const [_0x431003,_0x572aec]=readId(_0x3b6fc2,_0x5b4cf3),[_0x4d9e02,_0x9a9c56]=readVint(_0x3b6fc2,_0x5b4cf3+_0x572aec);if(_0x431003===ID_SIMPLE_BLOCK&&_0x4d9e02>=0x4){const _0x2fcd40=_0xd87629['xHeli'](_0x5b4cf3+_0x572aec,_0x9a9c56),[,_0x90eb41]=_0xd87629[_0x14f432(0x8c)](readVint,_0x3b6fc2,_0x2fcd40),_0x4a62d9=_0x3b6fc2[_0x14f432(0xbe)](_0xd87629['xHeli'](_0x2fcd40,_0x90eb41)),_0x4dde79=_0x129bf3+_0x4a62d9;if(_0xd87629['uPmld'](_0x4dde79,_0x3069a9))_0x3069a9=_0x4dde79;}if(_0xd87629['IgNKj'](_0x431003,ID_CLUSTER))break;if(isUnknownSize(_0x4d9e02,_0x9a9c56))break;_0x5b4cf3+=_0xd87629[_0x14f432(0x92)](_0x572aec+_0x9a9c56,_0x4d9e02);}_0x4687b3['push']({'timestamp':_0x129bf3,'maxTicks':_0x3069a9,'bodyBeforeTimestamp':_0x34876e,'bodyAfterTimestamp':_0x30c609,'timestampElementSize':_0x27bc3e}),_0x329066=_0x3ac6c3;}return _0x4687b3;}function parseWebm(_0x2273c3){const _0x568b59=_0x30e3,_0x183793={'nDrmw':function(_0x3b9497,_0x36ca1c){return _0x3b9497+_0x36ca1c;},'cqDqA':function(_0x2e849b,_0x159085){return _0x2e849b+_0x159085;},'RkIpC':function(_0x41471c,_0x4e9df8,_0x5909aa){return _0x41471c(_0x4e9df8,_0x5909aa);},'keQPT':function(_0x35d9b6,_0x55d2e4){return _0x35d9b6+_0x55d2e4;},'lgsON':function(_0x1b6d3d,_0x3b8956,_0x65a77d){return _0x1b6d3d(_0x3b8956,_0x65a77d);}};let _0x39709b=0x0;const [,_0x4c56b0]=readId(_0x2273c3,_0x39709b),[_0x2a1d24,_0xb92b7a]=readVint(_0x2273c3,_0x183793[_0x568b59(0xaa)](_0x39709b,_0x4c56b0));_0x39709b+=_0x183793[_0x568b59(0xb4)](_0x183793['nDrmw'](_0x4c56b0,_0xb92b7a),_0x2a1d24);const [_0x26cfe6,_0x1a6388]=_0x183793['RkIpC'](readId,_0x2273c3,_0x39709b);if(_0x26cfe6!==ID_SEGMENT)return null;const [,_0x3a9644]=_0x183793['RkIpC'](readVint,_0x2273c3,_0x183793['keQPT'](_0x39709b,_0x1a6388)),_0x5e506f=_0x39709b+_0x1a6388+_0x3a9644,_0x2b68b8=findTimestampScale(_0x2273c3,_0x5e506f),_0x17bffc=_0x183793[_0x568b59(0xbf)](findFirstClusterOffset,_0x2273c3,_0x5e506f),_0x2ab8c3=_0x2273c3[_0x568b59(0xb6)](0x0,_0x17bffc),_0x4e4011=_0x183793[_0x568b59(0xa4)](extractClusters,_0x2273c3,_0x2b68b8);let _0x3a0178=0x0;for(const _0x803a3f of _0x4e4011){if(_0x803a3f[_0x568b59(0x95)]>_0x3a0178)_0x3a0178=_0x803a3f[_0x568b59(0x95)];}return{'header':_0x2ab8c3,'clusters':_0x4e4011,'timestampScale':_0x2b68b8,'maxTimestampTicks':_0x3a0178};}function buildCluster(_0x3489fc,_0x5293d6,_0x2025f9){const _0x2fc2ae=_0x30e3,_0x31627d={'gswib':function(_0x537e3b,_0x516d17){return _0x537e3b(_0x516d17);}},_0x2fcbe2=Buffer[_0x2fc2ae(0xb9)]([0x1f,0x43,0xb6,0x75]),_0x422f56=Math['max'](0x4,uintSize(_0x3489fc)),_0x523e12=Buffer[_0x2fc2ae(0x9b)]([Buffer[_0x2fc2ae(0xb9)]([ID_TIMESTAMP]),_0x31627d['gswib'](writeVint,_0x422f56),writeUint(_0x3489fc,_0x422f56)]),_0x3e783f=Buffer[_0x2fc2ae(0x9b)]([_0x5293d6,_0x523e12,_0x2025f9]),_0x55b01f=_0x31627d[_0x2fc2ae(0xb0)](writeVint,_0x3e783f['length']);return Buffer['concat']([_0x2fcbe2,_0x55b01f,_0x3e783f]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1cb362){const _0x270e50=_0x30e3,_0x163f74={'ZARCH':function(_0x2fd238,_0x534b37,_0x542958){return _0x2fd238(_0x534b37,_0x542958);},'AsBkr':function(_0x2ebb46,_0x17752b){return _0x2ebb46+_0x17752b;},'SfcVa':function(_0x43d1f2,_0x1ff8cf){return _0x43d1f2+_0x1ff8cf;},'LjGZl':function(_0x48eec8,_0x91673a,_0x3f0f10){return _0x48eec8(_0x91673a,_0x3f0f10);},'Aoumi':function(_0x27900a,_0x5ab5b7,_0x6b457f){return _0x27900a(_0x5ab5b7,_0x6b457f);},'ZHNBv':function(_0x214c98,_0xeaa0f4){return _0x214c98+_0xeaa0f4;},'YZiFx':function(_0x3305fb,_0x48ad1c){return _0x3305fb(_0x48ad1c);},'OHKfg':function(_0x338662,_0x3a4ebb){return _0x338662<_0x3a4ebb;},'IwQBn':function(_0x248ff5,_0x148f2d){return _0x248ff5+_0x148f2d;},'YwDRi':function(_0x2a3a7e,_0x41527b){return _0x2a3a7e+_0x41527b;}},_0x461c29=Buffer['from'](_0x1cb362);let _0x3d9112=0x0;const [,_0x11ec74]=_0x163f74[_0x270e50(0x86)](readId,_0x461c29,_0x3d9112),[_0x181782,_0x616de1]=readVint(_0x461c29,_0x3d9112+_0x11ec74),_0x56d715=_0x163f74[_0x270e50(0x85)](_0x163f74['SfcVa'](_0x3d9112,_0x11ec74),_0x616de1)+_0x181782,[,_0x1cd91e]=_0x163f74['LjGZl'](readId,_0x461c29,_0x56d715),[,_0x4703e7]=_0x163f74[_0x270e50(0x90)](readVint,_0x461c29,_0x56d715+_0x1cd91e),_0xe74510=_0x163f74[_0x270e50(0xa7)](_0x163f74['ZHNBv'](_0x56d715,_0x1cd91e),_0x4703e7),_0x558eb8=_0x163f74[_0x270e50(0x93)](writeUnknownSizeVint,_0x4703e7);_0x558eb8[_0x270e50(0xae)](_0x461c29,_0x56d715+_0x1cd91e);let _0x5b8017=_0xe74510;const _0x5c71e2=Math[_0x270e50(0x81)](_0x461c29['length'],_0xe74510+0x2710);while(_0x5b8017<_0x5c71e2){const [_0x442f3c,_0x47dbe6]=readId(_0x461c29,_0x5b8017),[_0x4844bd,_0x196485]=readVint(_0x461c29,_0x5b8017+_0x47dbe6);if(_0x442f3c===ID_CLUSTER)break;if(isUnknownSize(_0x4844bd,_0x196485))break;if(_0x442f3c===ID_INFO){const _0x5f236c=_0x163f74['ZHNBv'](_0x5b8017,_0x47dbe6)+_0x196485,_0x2dc63f=_0x163f74[_0x270e50(0xa7)](_0x5f236c,_0x4844bd),_0x26dc98=[];let _0xff8fb9=_0x5f236c;while(_0x163f74[_0x270e50(0x9a)](_0xff8fb9,_0x2dc63f)){const [_0x27c61c,_0x527aa3]=_0x163f74[_0x270e50(0x90)](readId,_0x461c29,_0xff8fb9),[_0x33d50d,_0x434608]=readVint(_0x461c29,_0xff8fb9+_0x527aa3),_0x889393=_0x163f74[_0x270e50(0xa8)](_0x163f74[_0x270e50(0x9d)](_0x527aa3,_0x434608),_0x33d50d);_0x27c61c!==ID_DURATION&&_0x26dc98['push'](_0x461c29['slice'](_0xff8fb9,_0xff8fb9+_0x889393)),_0xff8fb9+=_0x889393;}const _0x5e06a2=Buffer[_0x270e50(0x9b)](_0x26dc98),_0x3879bb=Buffer['concat']([_0x461c29['slice'](_0x5b8017,_0x163f74[_0x270e50(0xc0)](_0x5b8017,_0x47dbe6)),_0x163f74['ZARCH'](writeVint,_0x5e06a2['length'],_0x196485)]);return Buffer['concat']([_0x461c29['slice'](0x0,_0x5b8017),_0x3879bb,_0x5e06a2,_0x461c29['slice'](_0x2dc63f)]);}_0x5b8017+=_0x47dbe6+_0x196485+_0x4844bd;}return _0x461c29;}export function stitchWebmFiles(_0x504eb6,_0x9795b0){const _0x2fa856=_0x30e3,_0x2eac76={'VZCvd':function(_0x1eaad3,_0x2cac8a){return _0x1eaad3<=_0x2cac8a;},'PiVvC':function(_0x4cae21,_0x9c12cf){return _0x4cae21(_0x9c12cf);},'qCVOi':function(_0xada1c5,_0x8aadbf){return _0xada1c5<_0x8aadbf;},'xjwCr':function(_0x2e5250,_0x1765ed,_0x3370b5){return _0x2e5250(_0x1765ed,_0x3370b5);}};if(_0x2eac76[_0x2fa856(0xb2)](_0x504eb6['length'],0x1))return![];const _0x2a2e1e=[];for(const _0x40b2cc of _0x504eb6){const _0x26d955=_0x2eac76['PiVvC'](readFileSync,_0x40b2cc),_0x246136=_0x2eac76['PiVvC'](parseWebm,_0x26d955);if(!_0x246136||_0x246136['clusters'][_0x2fa856(0xa3)]===0x0)return![];_0x2a2e1e[_0x2fa856(0x88)](_0x246136);}const _0x1fefe9=_0x2a2e1e[0x0],_0x146172=rebuildHeaderWithoutDuration(_0x1fefe9[_0x2fa856(0x98)]),_0x36f665=[_0x146172];let _0x5cf1b1=0x0;for(let _0x5b4109=0x0;_0x2eac76['qCVOi'](_0x5b4109,_0x2a2e1e['length']);_0x5b4109++){const _0xbef835=_0x2a2e1e[_0x5b4109];for(const _0x3edb3c of _0xbef835['clusters']){const _0x449efa=_0x3edb3c['timestamp']+_0x5cf1b1;_0x36f665[_0x2fa856(0x88)](buildCluster(_0x449efa,_0x3edb3c[_0x2fa856(0x8b)],_0x3edb3c[_0x2fa856(0x91)]));}const _0x53d154=0x1e;_0x5cf1b1+=_0xbef835['maxTimestampTicks']+_0x53d154;}return _0x2eac76['xjwCr'](writeFileSync,_0x9795b0,Buffer[_0x2fa856(0x9b)](_0x36f665)),!![];}function _0x30e3(_0x36f3fa,_0x4c02ce){_0x36f3fa=_0x36f3fa-0x80;const _0x1e2f1e=_0x1e2f();let _0x30e327=_0x1e2f1e[_0x36f3fa];return _0x30e327;}if(process['argv'][0x1]?.['endsWith'](_0x2919ab(0x8d))||process['argv'][0x1]?.['endsWith'](_0x2919ab(0xbb))){const args=process['argv']['slice'](0x2);args[_0x2919ab(0xa3)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x2919ab(0xb6)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x2919ab(0xa9)]('Stitched\x20'+inputs[_0x2919ab(0xa3)]+'\x20files\x20->\x20'+output):console['log'](_0x2919ab(0xbd));}
|
|
1
|
+
const _0x504252=_0x1444;(function(_0x3f3446,_0x454502){const _0x32105e=_0x1444,_0x8d446c=_0x3f3446();while(!![]){try{const _0x469d64=parseInt(_0x32105e(0x236))/0x1*(parseInt(_0x32105e(0x21e))/0x2)+parseInt(_0x32105e(0x1f7))/0x3+-parseInt(_0x32105e(0x1fc))/0x4+parseInt(_0x32105e(0x235))/0x5+-parseInt(_0x32105e(0x23f))/0x6*(parseInt(_0x32105e(0x22e))/0x7)+parseInt(_0x32105e(0x23b))/0x8+parseInt(_0x32105e(0x200))/0x9*(-parseInt(_0x32105e(0x233))/0xa);if(_0x469d64===_0x454502)break;else _0x8d446c['push'](_0x8d446c['shift']());}catch(_0x16b098){_0x8d446c['push'](_0x8d446c['shift']());}}}(_0x5098,0xdc60c));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 _0x5098(){const _0x309b4e=['pow','min','clusters','TuWDQ','14SOVBCP','endsWith','SktcR','vtrSo','LmRYl','6718520NSfoTm','deRjV','296100zedUzT','1hMbGxO','wOkzb','stitchWebmFiles.ts','QSPUg','yWIAh','10376960VKFwqZ','PrZMm','PRhGT','bodyBeforeTimestamp','547056VzxNuK','DSudu','QEOlh','log','maxTimestampTicks','tSrab','slice','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','2369118ZzoLBz','KEggb','error','AtzUx','PIfdU','4295948WQvenC','alloc','UPtWL','from','18Tcnmld','UNleD','tEOVN','CWFGA','header','FMDZJ','length','UfONY','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','argv','stitchWebmFiles.js','FvJkn','UtEmn','bodyAfterTimestamp','VnEqj','fArqT','push','JUYhE','VDyeS','XnaLZ','LSbok','fbdkO','DTlHl','iVGIh','cpKQI','Pfbnb','bpVJm','qteZT','xQqkg','bjHpr','2713330wRDnsx','wxBOz','nhPiH','GPIKq','ZyLOV','eUGda','dnUrl','floor','hgdOg','TLvyx','JHhIb','concat'];_0x5098=function(){return _0x309b4e;};return _0x5098();}function readVint(_0x3fc156,_0x5a527c){const _0x4e3a64=_0x1444,_0x5e2aa7={'alklq':function(_0xd1aa0c,_0x31d54d){return _0xd1aa0c>=_0x31d54d;},'eAcQc':function(_0x3ccb6c,_0x5683a5){return _0x3ccb6c&_0x5683a5;},'XUkuZ':function(_0x5058e8,_0x2aceec){return _0x5058e8<_0x2aceec;},'iVGIh':function(_0x49cf73,_0x30480c){return _0x49cf73+_0x30480c;}};if(_0x5e2aa7['alklq'](_0x5a527c,_0x3fc156['length']))return[0x0,0x0];const _0x38339b=_0x3fc156[_0x5a527c];let _0x5eea98=0x1,_0x27c27a=0x80;while(_0x5eea98<=0x8&&!_0x5e2aa7['eAcQc'](_0x38339b,_0x27c27a)){_0x5eea98++,_0x27c27a>>=0x1;}if(_0x5a527c+_0x5eea98>_0x3fc156['length'])return[0x0,0x0];let _0x2d9092=_0x5e2aa7['eAcQc'](_0x38339b,_0x27c27a-0x1);for(let _0x5f4e2f=0x1;_0x5e2aa7['XUkuZ'](_0x5f4e2f,_0x5eea98);_0x5f4e2f++){_0x2d9092=_0x5e2aa7[_0x4e3a64(0x217)](_0x2d9092*0x100,_0x3fc156[_0x5e2aa7[_0x4e3a64(0x217)](_0x5a527c,_0x5f4e2f)]);}return[_0x2d9092,_0x5eea98];}function _0x1444(_0x5ec0b8,_0x130722){_0x5ec0b8=_0x5ec0b8-0x1f4;const _0x509843=_0x5098();let _0x144472=_0x509843[_0x5ec0b8];return _0x144472;}function readId(_0x437de8,_0x5f3bf3){const _0x786976=_0x1444,_0x1387b0={'TuWDQ':function(_0x2bb062,_0x2e69e7){return _0x2bb062>=_0x2e69e7;},'IxAxL':function(_0x1727b5,_0x561339){return _0x1727b5>=_0x561339;},'JUYhE':function(_0x31496c,_0x4c0ca2){return _0x31496c+_0x4c0ca2;}};if(_0x5f3bf3>=_0x437de8['length'])return[0x0,0x0];const _0x5c8faa=_0x437de8[_0x5f3bf3];let _0x11875e;if(_0x1387b0[_0x786976(0x22d)](_0x5c8faa,0x80))_0x11875e=0x1;else{if(_0x1387b0['IxAxL'](_0x5c8faa,0x40))_0x11875e=0x2;else{if(_0x1387b0['IxAxL'](_0x5c8faa,0x20))_0x11875e=0x3;else{if(_0x1387b0[_0x786976(0x22d)](_0x5c8faa,0x10))_0x11875e=0x4;else return[_0x5c8faa,0x1];}}}if(_0x5f3bf3+_0x11875e>_0x437de8['length'])return[0x0,0x0];let _0x539fc7=0x0;for(let _0x1215e7=0x0;_0x1215e7<_0x11875e;_0x1215e7++){_0x539fc7=_0x1387b0[_0x786976(0x211)](_0x539fc7*0x100,_0x437de8[_0x5f3bf3+_0x1215e7]);}return[_0x539fc7,_0x11875e];}function readUint(_0x1cf122,_0x1983ff,_0x43d7b9){const _0x572047=_0x1444,_0x2c717d={'aNnbZ':function(_0x5c6d52,_0x59dac9){return _0x5c6d52<_0x59dac9;},'wOkzb':function(_0x409c9e,_0x1a8ef2){return _0x409c9e+_0x1a8ef2;}};let _0x559ef4=0x0;for(let _0x24e436=0x0;_0x2c717d['aNnbZ'](_0x24e436,_0x43d7b9);_0x24e436++){_0x559ef4=_0x2c717d[_0x572047(0x237)](_0x559ef4*0x100,_0x1cf122[_0x1983ff+_0x24e436]);}return _0x559ef4;}function isUnknownSize(_0x108d02,_0x423382){const _0x3fc734=_0x1444,_0x3b23ad={'cpKQI':function(_0x564158,_0x26ae85){return _0x564158===_0x26ae85;},'PRhGT':function(_0xb061bd,_0x14e6ef){return _0xb061bd-_0x14e6ef;},'voJSW':function(_0xa9213e,_0x397c73){return _0xa9213e*_0x397c73;}};return _0x3b23ad[_0x3fc734(0x218)](_0x108d02,_0x3b23ad[_0x3fc734(0x23d)](Math['pow'](0x2,_0x3b23ad['voJSW'](0x7,_0x423382)),0x1));}function writeVint(_0x2da48b,_0x34f48b){const _0x4c05cd=_0x1444,_0x15548e={'VnEqj':function(_0x303343,_0x5dc135){return _0x303343||_0x5dc135;},'bjHpr':function(_0x252114,_0x1ff995){return _0x252114*_0x1ff995;},'GPIKq':function(_0x38d003,_0x179caf){return _0x38d003-_0x179caf;},'QKLlO':function(_0x5755cb,_0x25828d){return _0x5755cb>=_0x25828d;},'DTlHl':function(_0x55dfb5,_0x52942f){return _0x55dfb5/_0x52942f;}};let _0x4cdd42=_0x15548e[_0x4c05cd(0x20e)](_0x34f48b,0x1);while(Math[_0x4c05cd(0x22a)](0x2,_0x15548e[_0x4c05cd(0x21d)](0x7,_0x4cdd42))-0x2<_0x2da48b)_0x4cdd42++;const _0x4c8ed1=Buffer[_0x4c05cd(0x1fd)](_0x4cdd42);for(let _0x483455=_0x15548e[_0x4c05cd(0x221)](_0x4cdd42,0x1);_0x15548e['QKLlO'](_0x483455,0x0);_0x483455--){_0x4c8ed1[_0x483455]=_0x2da48b&0xff,_0x2da48b=Math[_0x4c05cd(0x225)](_0x15548e[_0x4c05cd(0x216)](_0x2da48b,0x100));}return _0x4c8ed1[0x0]|=0x1<<_0x15548e[_0x4c05cd(0x221)](0x8,_0x4cdd42),_0x4c8ed1;}function writeUint(_0xec6376,_0x5e8f87){const _0x2334fe=_0x1444,_0x271c95=Buffer[_0x2334fe(0x1fd)](_0x5e8f87);for(let _0x2a1858=_0x5e8f87-0x1;_0x2a1858>=0x0;_0x2a1858--){_0x271c95[_0x2a1858]=_0xec6376&0xff,_0xec6376=Math['floor'](_0xec6376/0x100);}return _0x271c95;}function writeUnknownSizeVint(_0x415d02){const _0x4032a2={'QUwIo':function(_0x4affe4,_0x3f9d57){return _0x4affe4>>_0x3f9d57;}},_0x41273d=Buffer['alloc'](_0x415d02,0xff);return _0x41273d[0x0]=_0x4032a2['QUwIo'](0xff,_0x415d02-0x1),_0x41273d;}function uintSize(_0x22022d){const _0x13239b=_0x1444,_0x43a24d={'eUGda':function(_0x2d2b49,_0x548ed5){return _0x2d2b49/_0x548ed5;}};if(_0x22022d===0x0)return 0x1;let _0x26f4cd=0x0,_0x3af74a=_0x22022d;while(_0x3af74a>0x0){_0x26f4cd++,_0x3af74a=Math['floor'](_0x43a24d[_0x13239b(0x223)](_0x3af74a,0x100));}return _0x26f4cd;}function findTimestampScale(_0x89f25d,_0x53fd60){const _0x49f94b=_0x1444,_0x43edc5={'wxBOz':function(_0x3257fb,_0x20c1f8){return _0x3257fb+_0x20c1f8;},'GDKwL':function(_0x1c2ed9,_0xe30b26){return _0x1c2ed9<_0xe30b26;},'DSudu':function(_0x2050e8,_0x266da7,_0x1e36c4){return _0x2050e8(_0x266da7,_0x1e36c4);},'OXLIr':function(_0x581ad2,_0x48ee95){return _0x581ad2+_0x48ee95;},'XIeFU':function(_0x116009,_0x6dd73a,_0x28e11f){return _0x116009(_0x6dd73a,_0x28e11f);},'qteZT':function(_0x1ea861,_0x161762,_0x11f6bb){return _0x1ea861(_0x161762,_0x11f6bb);},'nhPiH':function(_0x548949,_0x2c999b){return _0x548949+_0x2c999b;},'TLvyx':function(_0x4cc402,_0x2b7d23){return _0x4cc402===_0x2b7d23;},'tSrab':function(_0x41b1a4,_0x57b833,_0x3eb6be,_0x368670){return _0x41b1a4(_0x57b833,_0x3eb6be,_0x368670);},'EEiQB':function(_0x297788,_0x2b393e){return _0x297788===_0x2b393e;}};let _0x3319a8=_0x53fd60;const _0x45e264=Math['min'](_0x89f25d[_0x49f94b(0x206)],_0x43edc5[_0x49f94b(0x21f)](_0x53fd60,0x2710));while(_0x43edc5['GDKwL'](_0x3319a8,_0x45e264)){const [_0x575307,_0x31346d]=_0x43edc5[_0x49f94b(0x240)](readId,_0x89f25d,_0x3319a8),[_0x1f2729,_0x25ba60]=readVint(_0x89f25d,_0x43edc5['wxBOz'](_0x3319a8,_0x31346d));if(_0x575307===ID_INFO){let _0x23e491=_0x3319a8+_0x31346d+_0x25ba60;const _0x49aaf1=_0x43edc5['OXLIr'](_0x23e491,_0x1f2729);while(_0x23e491<_0x49aaf1){const [_0x3eb946,_0x2ad298]=_0x43edc5['XIeFU'](readId,_0x89f25d,_0x23e491),[_0x277dd6,_0x135653]=_0x43edc5[_0x49f94b(0x21b)](readVint,_0x89f25d,_0x43edc5['nhPiH'](_0x23e491,_0x2ad298));if(_0x43edc5[_0x49f94b(0x227)](_0x3eb946,ID_TIMESTAMP_SCALE))return _0x43edc5[_0x49f94b(0x1f4)](readUint,_0x89f25d,_0x43edc5[_0x49f94b(0x220)](_0x23e491+_0x2ad298,_0x135653),_0x277dd6);_0x23e491+=_0x43edc5['wxBOz'](_0x2ad298,_0x135653)+_0x277dd6;}break;}if(_0x43edc5['EEiQB'](_0x575307,ID_CLUSTER))break;if(_0x43edc5[_0x49f94b(0x21b)](isUnknownSize,_0x1f2729,_0x25ba60))break;_0x3319a8+=_0x43edc5['OXLIr'](_0x31346d,_0x25ba60)+_0x1f2729;}return 0xf4240;}function findFirstClusterOffset(_0x165608,_0x599889){const _0x29fc85=_0x1444,_0x27046a={'QEOlh':function(_0x2443ce,_0x1f6e07){return _0x2443ce===_0x1f6e07;},'SktcR':function(_0x235513,_0x47d60a,_0x57c0dc){return _0x235513(_0x47d60a,_0x57c0dc);},'Ncryu':function(_0x3e1333,_0x21a42a){return _0x3e1333+_0x21a42a;},'bcHJa':function(_0x2e6758,_0x3522e6){return _0x2e6758+_0x3522e6;}};let _0x417e3b=_0x599889;while(_0x417e3b<_0x165608['length']){const [_0x4b62d5,_0x2e5d1d]=readId(_0x165608,_0x417e3b);if(_0x27046a[_0x29fc85(0x241)](_0x4b62d5,ID_CLUSTER))return _0x417e3b;const [_0x389bd5,_0x277093]=_0x27046a[_0x29fc85(0x230)](readVint,_0x165608,_0x27046a['Ncryu'](_0x417e3b,_0x2e5d1d));if(_0x27046a[_0x29fc85(0x230)](isUnknownSize,_0x389bd5,_0x277093))return _0x417e3b;_0x417e3b+=_0x27046a['bcHJa'](_0x2e5d1d,_0x277093)+_0x389bd5;}return _0x165608[_0x29fc85(0x206)];}function findClusterEnd(_0x1ff479,_0x3d25ed,_0x3531be,_0x58de0c){const _0xbc481a=_0x1444,_0x304bb2={'VDyeS':function(_0x4bdd2d,_0x32f73e,_0x198716){return _0x4bdd2d(_0x32f73e,_0x198716);},'FvJkn':function(_0x3cf0ee,_0x5e0741){return _0x3cf0ee+_0x5e0741;}};if(!_0x304bb2[_0xbc481a(0x212)](isUnknownSize,_0x3531be,_0x58de0c))return _0x3d25ed+_0x3531be;const _0x3b73d3=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x52903f=_0x3d25ed;while(_0x52903f<_0x1ff479[_0xbc481a(0x206)]-0x4){const [_0x4d8933,_0x12f641]=_0x304bb2['VDyeS'](readId,_0x1ff479,_0x52903f);if(_0x3b73d3['has'](_0x4d8933))return _0x52903f;const [_0x269c7f,_0x222035]=_0x304bb2['VDyeS'](readVint,_0x1ff479,_0x52903f+_0x12f641);if(isUnknownSize(_0x269c7f,_0x222035))return _0x1ff479[_0xbc481a(0x206)];_0x52903f+=_0x304bb2[_0xbc481a(0x20b)](_0x12f641+_0x222035,_0x269c7f);}return _0x1ff479['length'];}function extractClusters(_0x2bf94f,_0x14408e){const _0x53ead3=_0x1444,_0x555461={'jawQd':function(_0x138c16,_0x5dc026){return _0x138c16===_0x5dc026;},'UPtWL':function(_0x3a9ec2,_0x39af77,_0x1fd785){return _0x3a9ec2(_0x39af77,_0x1fd785);},'PIfdU':function(_0x4bf5ee,_0x55cbc4){return _0x4bf5ee+_0x55cbc4;},'tEOVN':function(_0x56e94b,_0x291918){return _0x56e94b+_0x291918;},'LmRYl':function(_0x106434,_0x3f7bf3,_0x597c5e,_0x3f49b3,_0x5f3481){return _0x106434(_0x3f7bf3,_0x597c5e,_0x3f49b3,_0x5f3481);},'yWIAh':function(_0x4b919d,_0x38a84f,_0x21ce59){return _0x4b919d(_0x38a84f,_0x21ce59);},'yHgwF':function(_0x243b16,_0x1349a0){return _0x243b16+_0x1349a0;},'xQqkg':function(_0x4fd5cf,_0x53bc0f){return _0x4fd5cf+_0x53bc0f;},'CeIgV':function(_0x4c1052,_0x46e139){return _0x4c1052===_0x46e139;},'deRjV':function(_0x26095d,_0x5ce27c){return _0x26095d<_0x5ce27c;},'wfcpn':function(_0x5c3a6d,_0x25a407){return _0x5c3a6d+_0x25a407;},'mRKcN':function(_0x58992a,_0x262c14){return _0x58992a>=_0x262c14;},'CWFGA':function(_0x587892,_0x494f08){return _0x587892+_0x494f08;},'LSbok':function(_0x3f4f61,_0x3c0ca0){return _0x3f4f61===_0x3c0ca0;}},_0x2f0879=[],_0xa3f635=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x302691=0x0;while(_0x302691<_0x2bf94f[_0x53ead3(0x206)]){const _0x1a4677=_0x2bf94f['indexOf'](_0xa3f635,_0x302691);if(_0x555461['jawQd'](_0x1a4677,-0x1))break;const [_0x580283,_0x3421a6]=_0x555461[_0x53ead3(0x1fe)](readId,_0x2bf94f,_0x1a4677);if(_0x580283!==ID_CLUSTER){_0x302691=_0x1a4677+0x1;continue;}const [_0x4bece7,_0x3a6e2b]=_0x555461['UPtWL'](readVint,_0x2bf94f,_0x555461['PIfdU'](_0x1a4677,_0x3421a6)),_0xcc98b2=_0x555461[_0x53ead3(0x202)](_0x1a4677+_0x3421a6,_0x3a6e2b),_0x54f55a=_0x555461[_0x53ead3(0x232)](findClusterEnd,_0x2bf94f,_0xcc98b2,_0x4bece7,_0x3a6e2b);let _0x21e16d=_0xcc98b2,_0x3c7677=0x0,_0x4829c7=0x2,_0x3eed36=![],_0x5b144a=Buffer[_0x53ead3(0x1fd)](0x0),_0x345d5b=Buffer[_0x53ead3(0x1fd)](0x0);while(_0x21e16d<_0x54f55a){const [_0x20b834,_0x5b4608]=_0x555461[_0x53ead3(0x1fe)](readId,_0x2bf94f,_0x21e16d),[_0x69e23,_0x2199c3]=_0x555461[_0x53ead3(0x23a)](readVint,_0x2bf94f,_0x21e16d+_0x5b4608);if(_0x20b834===ID_TIMESTAMP){_0x3c7677=readUint(_0x2bf94f,_0x555461[_0x53ead3(0x1fb)](_0x21e16d+_0x5b4608,_0x2199c3),_0x69e23),_0x4829c7=_0x69e23,_0x3eed36=!![],_0x5b144a=_0x2bf94f['slice'](_0xcc98b2,_0x21e16d);const _0x37a83b=_0x555461['yHgwF'](_0x555461[_0x53ead3(0x21c)](_0x21e16d+_0x5b4608,_0x2199c3),_0x69e23);_0x345d5b=_0x2bf94f['slice'](_0x37a83b,_0x54f55a);break;}if(_0x555461['CeIgV'](_0x20b834,ID_CLUSTER))break;if(isUnknownSize(_0x69e23,_0x2199c3))break;_0x21e16d+=_0x5b4608+_0x2199c3+_0x69e23;}!_0x3eed36&&(_0x345d5b=_0x2bf94f['slice'](_0xcc98b2,_0x54f55a));let _0x3d6fa9=_0x3c7677;_0x21e16d=_0xcc98b2;while(_0x555461[_0x53ead3(0x234)](_0x21e16d,_0x54f55a)){const [_0x5152c8,_0xcc7109]=readId(_0x2bf94f,_0x21e16d),[_0x388522,_0x59f0b0]=readVint(_0x2bf94f,_0x555461['wfcpn'](_0x21e16d,_0xcc7109));if(_0x5152c8===ID_SIMPLE_BLOCK&&_0x555461['mRKcN'](_0x388522,0x4)){const _0x14c3fd=_0x555461[_0x53ead3(0x203)](_0x21e16d,_0xcc7109)+_0x59f0b0,[,_0x246014]=readVint(_0x2bf94f,_0x14c3fd),_0x262eaf=_0x2bf94f['readInt16BE'](_0x14c3fd+_0x246014),_0xc65345=_0x3c7677+_0x262eaf;if(_0xc65345>_0x3d6fa9)_0x3d6fa9=_0xc65345;}if(_0x555461[_0x53ead3(0x214)](_0x5152c8,ID_CLUSTER))break;if(isUnknownSize(_0x388522,_0x59f0b0))break;_0x21e16d+=_0xcc7109+_0x59f0b0+_0x388522;}_0x2f0879['push']({'timestamp':_0x3c7677,'maxTicks':_0x3d6fa9,'bodyBeforeTimestamp':_0x5b144a,'bodyAfterTimestamp':_0x345d5b,'timestampElementSize':_0x4829c7}),_0x302691=_0x54f55a;}return _0x2f0879;}function parseWebm(_0x36f02d){const _0x3a2432=_0x1444,_0x2cd9d9={'bpVJm':function(_0x575f13,_0x5538ef,_0x2b4039){return _0x575f13(_0x5538ef,_0x2b4039);},'XnaLZ':function(_0x47f163,_0x34186b){return _0x47f163!==_0x34186b;},'AtzUx':function(_0x49473c,_0x22824f){return _0x49473c+_0x22824f;},'drePg':function(_0x60bdc0,_0x17b4bc,_0x1029ce){return _0x60bdc0(_0x17b4bc,_0x1029ce);},'Pfbnb':function(_0xed7583,_0x3686e9){return _0xed7583>_0x3686e9;}};let _0x2fccbc=0x0;const [,_0x262d8f]=readId(_0x36f02d,_0x2fccbc),[_0x21f2eb,_0x2c41e3]=_0x2cd9d9['bpVJm'](readVint,_0x36f02d,_0x2fccbc+_0x262d8f);_0x2fccbc+=_0x262d8f+_0x2c41e3+_0x21f2eb;const [_0x584edd,_0x11a634]=readId(_0x36f02d,_0x2fccbc);if(_0x2cd9d9[_0x3a2432(0x213)](_0x584edd,ID_SEGMENT))return null;const [,_0x3c1cc2]=_0x2cd9d9[_0x3a2432(0x21a)](readVint,_0x36f02d,_0x2cd9d9[_0x3a2432(0x1fa)](_0x2fccbc,_0x11a634)),_0x270705=_0x2cd9d9[_0x3a2432(0x1fa)](_0x2fccbc+_0x11a634,_0x3c1cc2),_0x550027=findTimestampScale(_0x36f02d,_0x270705),_0x4931a3=_0x2cd9d9['drePg'](findFirstClusterOffset,_0x36f02d,_0x270705),_0x5caf93=_0x36f02d['slice'](0x0,_0x4931a3),_0x307fe1=extractClusters(_0x36f02d,_0x550027);let _0x315dce=0x0;for(const _0x3e1951 of _0x307fe1){if(_0x2cd9d9[_0x3a2432(0x219)](_0x3e1951['maxTicks'],_0x315dce))_0x315dce=_0x3e1951['maxTicks'];}return{'header':_0x5caf93,'clusters':_0x307fe1,'timestampScale':_0x550027,'maxTimestampTicks':_0x315dce};}function buildCluster(_0x3f23f7,_0x4ea04c,_0x30e9dd){const _0x21d72c=_0x1444,_0x4d41b2={'fbdkO':function(_0x2fdab5,_0x34f62a,_0x4a21e2){return _0x2fdab5(_0x34f62a,_0x4a21e2);},'FMDZJ':function(_0x22533d,_0x10cd2f){return _0x22533d(_0x10cd2f);}},_0x83bd75=Buffer[_0x21d72c(0x1ff)]([0x1f,0x43,0xb6,0x75]),_0x50b908=Math['max'](0x4,uintSize(_0x3f23f7)),_0x88c00d=Buffer[_0x21d72c(0x229)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x50b908),_0x4d41b2[_0x21d72c(0x215)](writeUint,_0x3f23f7,_0x50b908)]),_0x7a5b30=Buffer['concat']([_0x4ea04c,_0x88c00d,_0x30e9dd]),_0x17669a=_0x4d41b2[_0x21d72c(0x205)](writeVint,_0x7a5b30['length']);return Buffer['concat']([_0x83bd75,_0x17669a,_0x7a5b30]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2ab91a){const _0x3876a5=_0x1444,_0x363c8b={'fArqT':function(_0x50b921,_0x73550e){return _0x50b921+_0x73550e;},'PdWLA':function(_0x328822,_0x2bdd1f){return _0x328822+_0x2bdd1f;},'hbDnV':function(_0x1830d7,_0x38d135){return _0x1830d7+_0x38d135;},'UfONY':function(_0x8dc18b,_0x5cb6d9,_0x460249){return _0x8dc18b(_0x5cb6d9,_0x460249);},'KEggb':function(_0x5b40b2,_0x3393ee){return _0x5b40b2(_0x3393ee);},'UtEmn':function(_0x13db08,_0x222400){return _0x13db08+_0x222400;},'UNleD':function(_0x133f75,_0x1191c2){return _0x133f75===_0x1191c2;},'vtrSo':function(_0x3b11f9,_0x1c9aae){return _0x3b11f9+_0x1c9aae;},'hgdOg':function(_0x346007,_0x1d6dcd){return _0x346007+_0x1d6dcd;},'AkvEO':function(_0x33a1cf,_0x5c2449){return _0x33a1cf<_0x5c2449;},'ZyLOV':function(_0x4ce141,_0x47c71e,_0xe5a5a2){return _0x4ce141(_0x47c71e,_0xe5a5a2);},'PrZMm':function(_0x29d130,_0x30b0b5){return _0x29d130!==_0x30b0b5;},'fwzKz':function(_0xa03005,_0x2293a6){return _0xa03005+_0x2293a6;}},_0x153218=Buffer[_0x3876a5(0x1ff)](_0x2ab91a);let _0x504550=0x0;const [,_0x5b9749]=readId(_0x153218,_0x504550),[_0x54b7ce,_0x29f7bf]=readVint(_0x153218,_0x363c8b[_0x3876a5(0x20f)](_0x504550,_0x5b9749)),_0x5d4b06=_0x363c8b['PdWLA'](_0x363c8b['hbDnV'](_0x504550+_0x5b9749,_0x29f7bf),_0x54b7ce),[,_0x371597]=_0x363c8b['UfONY'](readId,_0x153218,_0x5d4b06),[,_0x2d1180]=readVint(_0x153218,_0x363c8b['fArqT'](_0x5d4b06,_0x371597)),_0x404093=_0x5d4b06+_0x371597+_0x2d1180,_0x513241=_0x363c8b[_0x3876a5(0x1f8)](writeUnknownSizeVint,_0x2d1180);_0x513241['copy'](_0x153218,_0x363c8b['PdWLA'](_0x5d4b06,_0x371597));let _0x228a35=_0x404093;const _0x1d8968=Math[_0x3876a5(0x22b)](_0x153218[_0x3876a5(0x206)],_0x404093+0x2710);while(_0x228a35<_0x1d8968){const [_0x14ca2c,_0x23d4be]=readId(_0x153218,_0x228a35),[_0x578661,_0x4c53f3]=readVint(_0x153218,_0x363c8b[_0x3876a5(0x20c)](_0x228a35,_0x23d4be));if(_0x14ca2c===ID_CLUSTER)break;if(_0x363c8b[_0x3876a5(0x207)](isUnknownSize,_0x578661,_0x4c53f3))break;if(_0x363c8b[_0x3876a5(0x201)](_0x14ca2c,ID_INFO)){const _0x18f4d1=_0x363c8b[_0x3876a5(0x231)](_0x363c8b[_0x3876a5(0x226)](_0x228a35,_0x23d4be),_0x4c53f3),_0x4e1522=_0x18f4d1+_0x578661,_0x2737d5=[];let _0x438fec=_0x18f4d1;while(_0x363c8b['AkvEO'](_0x438fec,_0x4e1522)){const [_0x2d5e0f,_0x51a256]=readId(_0x153218,_0x438fec),[_0x32a07f,_0x2e8e22]=_0x363c8b['ZyLOV'](readVint,_0x153218,_0x363c8b['PdWLA'](_0x438fec,_0x51a256)),_0x261e1f=_0x51a256+_0x2e8e22+_0x32a07f;_0x363c8b[_0x3876a5(0x23c)](_0x2d5e0f,ID_DURATION)&&_0x2737d5[_0x3876a5(0x210)](_0x153218[_0x3876a5(0x1f5)](_0x438fec,_0x363c8b['fArqT'](_0x438fec,_0x261e1f))),_0x438fec+=_0x261e1f;}const _0xadcc0c=Buffer[_0x3876a5(0x229)](_0x2737d5),_0x366f5d=Buffer[_0x3876a5(0x229)]([_0x153218['slice'](_0x228a35,_0x228a35+_0x23d4be),_0x363c8b[_0x3876a5(0x222)](writeVint,_0xadcc0c['length'],_0x4c53f3)]);return Buffer[_0x3876a5(0x229)]([_0x153218[_0x3876a5(0x1f5)](0x0,_0x228a35),_0x366f5d,_0xadcc0c,_0x153218[_0x3876a5(0x1f5)](_0x4e1522)]);}_0x228a35+=_0x363c8b['fwzKz'](_0x23d4be+_0x4c53f3,_0x578661);}return _0x153218;}export function stitchWebmFiles(_0x3326f7,_0x254291){const _0x5bf46f=_0x1444,_0x145ce3={'QSPUg':function(_0xf8bb71,_0x329533){return _0xf8bb71(_0x329533);},'dnUrl':function(_0x1c689b,_0x441fa4){return _0x1c689b===_0x441fa4;},'wHkgQ':function(_0x4e8bbf,_0x4bca89){return _0x4e8bbf+_0x4bca89;},'JHhIb':function(_0x2f6102,_0xfb186e,_0x27f3b3){return _0x2f6102(_0xfb186e,_0x27f3b3);}};if(_0x3326f7[_0x5bf46f(0x206)]<=0x1)return![];const _0x228b24=[];for(const _0x32728e of _0x3326f7){const _0x5de80a=_0x145ce3['QSPUg'](readFileSync,_0x32728e),_0x1d61f4=_0x145ce3['QSPUg'](parseWebm,_0x5de80a);if(!_0x1d61f4||_0x145ce3[_0x5bf46f(0x224)](_0x1d61f4[_0x5bf46f(0x22c)][_0x5bf46f(0x206)],0x0))return![];_0x228b24[_0x5bf46f(0x210)](_0x1d61f4);}const _0x1f2b50=_0x228b24[0x0],_0x34ea63=_0x145ce3[_0x5bf46f(0x239)](rebuildHeaderWithoutDuration,_0x1f2b50[_0x5bf46f(0x204)]),_0x3017ec=[_0x34ea63];let _0x3a8d17=0x0;for(let _0xead7f8=0x0;_0xead7f8<_0x228b24['length'];_0xead7f8++){const _0x2361b8=_0x228b24[_0xead7f8];for(const _0x4df80f of _0x2361b8[_0x5bf46f(0x22c)]){const _0xbac1ff=_0x145ce3['wHkgQ'](_0x4df80f['timestamp'],_0x3a8d17);_0x3017ec['push'](buildCluster(_0xbac1ff,_0x4df80f[_0x5bf46f(0x23e)],_0x4df80f[_0x5bf46f(0x20d)]));}const _0x29ab9f=0x1e;_0x3a8d17+=_0x2361b8[_0x5bf46f(0x243)]+_0x29ab9f;}return _0x145ce3[_0x5bf46f(0x228)](writeFileSync,_0x254291,Buffer['concat'](_0x3017ec)),!![];}if(process[_0x504252(0x209)][0x1]?.['endsWith'](_0x504252(0x238))||process[_0x504252(0x209)][0x1]?.[_0x504252(0x22f)](_0x504252(0x20a))){const args=process[_0x504252(0x209)][_0x504252(0x1f5)](0x2);args[_0x504252(0x206)]<0x3&&(console[_0x504252(0x1f9)](_0x504252(0x1f6)),process['exit'](0x1));const output=args[args[_0x504252(0x206)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x504252(0x242)](_0x504252(0x208));}
|