@ranger-testing/ranger-cli 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.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/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/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -0
- 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/verifyInBrowser.js +1 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5aee30,_0x373af1){const _0x87be6f=_0x3280,_0x2e05d2=_0x5aee30();while(!![]){try{const _0x243915=parseInt(_0x87be6f(0x13b))/0x1*(-parseInt(_0x87be6f(0x13f))/0x2)+-parseInt(_0x87be6f(0x13d))/0x3+-parseInt(_0x87be6f(0x16f))/0x4+parseInt(_0x87be6f(0x162))/0x5+parseInt(_0x87be6f(0x14a))/0x6+parseInt(_0x87be6f(0x16e))/0x7+parseInt(_0x87be6f(0x13a))/0x8*(parseInt(_0x87be6f(0x156))/0x9);if(_0x243915===_0x373af1)break;else _0x2e05d2['push'](_0x2e05d2['shift']());}catch(_0x63496b){_0x2e05d2['push'](_0x2e05d2['shift']());}}}(_0x24b9,0x76c51));export function buildTraceViewerUrl(_0x706461){const _0x1ebe99=_0x3280,_0x1959d2={'iDklp':function(_0x23561e,_0x515323){return _0x23561e(_0x515323);}},_0x12cd6c=_0x1959d2['iDklp'](encodeURIComponent,_0x706461);return _0x1ebe99(0x142)+_0x12cd6c;}function getStatusEmoji(_0x40b94d){const _0x42754a=_0x3280,_0x3b7618={'xKwrD':_0x42754a(0x130),'wCUbT':_0x42754a(0x15a),'kmSJc':'incomplete','lKDgE':_0x42754a(0x167)};switch(_0x40b94d){case _0x3b7618['xKwrD']:case'completed':return'✅';case _0x3b7618[_0x42754a(0x131)]:case _0x42754a(0x170):return'🔄';case _0x3b7618[_0x42754a(0x154)]:return'🟠';case _0x3b7618[_0x42754a(0x141)]:return'🛑';case _0x42754a(0x135):return'⛔';default:return'❓';}}function _0x3280(_0x29f6a1,_0x34d7e9){_0x29f6a1=_0x29f6a1-0x12b;const _0x24b9e4=_0x24b9();let _0x3280fd=_0x24b9e4[_0x29f6a1];return _0x3280fd;}function formatDuration(_0x4dbdb8){const _0x2bfb0a=_0x3280,_0x10b1fd={'BKBpG':function(_0x370df8,_0x2a2781){return _0x370df8===_0x2a2781;},'bzMfF':function(_0x59920f,_0x202d1d){return _0x59920f<_0x202d1d;},'lArDI':function(_0x33ca64,_0x479555){return _0x33ca64%_0x479555;}};if(_0x10b1fd['BKBpG'](_0x4dbdb8,null)||_0x10b1fd[_0x2bfb0a(0x16b)](_0x4dbdb8,undefined))return _0x2bfb0a(0x134);if(_0x10b1fd[_0x2bfb0a(0x173)](_0x4dbdb8,0x3e8))return _0x4dbdb8+'ms';const _0x2c91e0=Math['floor'](_0x4dbdb8/0x3e8);if(_0x2c91e0<0x3c)return _0x2c91e0+'s';const _0xfc7a66=Math[_0x2bfb0a(0x15c)](_0x2c91e0/0x3c),_0x2bbaae=_0x10b1fd['lArDI'](_0x2c91e0,0x3c);return _0xfc7a66+'m\x20'+_0x2bbaae+'s';}function _0x24b9(){const _0x152c2b=['kmSJc',':\x20In\x20Progress','7731981eBRbAM','RiBVH','QgHXw','###\x20','pending','checklistItemId','floor',':\x20Ready','iteration','filter','blockedReason','...','968510ZHxodC','closedAt','None','**Branch:**\x20','xuaXu','blocked','\x20verified)','currentSession','#\x20Feature\x20Review\x20Report:\x20','BKBpG','push','browserSessionId','6413820RiAaMG','3641172VUAUzo','in_progress','blockedAt','find','bzMfF','aJURN','EtqbE','OjArM','incomplete','short','status','numeric','sort','verified','wCUbT','createdAt','Completed','N/A','closed','JIoKS','length','kPMCk','description','8CRepLs','1AOVCUJ','##\x20Blocking\x20Issues','935442indNuk','completedAt','1487440HEYfZG','uYNkW','lKDgE','https://trace.playwright.dev/?trace=','gitBranch','aFVmh','position','canceledReason','Ygzpv','\x20|\x20','-\x20**Trace:**\x20[View\x20in\x20Playwright](','2899422QsWjNk','-\x20**Blocked:**\x20','##\x20Scenario\x20Progress\x20(','**Completed:**\x20','RKFep','-\x20**Reason:**\x20','traceUrl','**:\x20','verifiedAt','**Repository:**\x20'];_0x24b9=function(){return _0x152c2b;};return _0x24b9();}function formatDate(_0x3b2954){const _0x482233=_0x3280,_0x37c277={'EtqbE':_0x482233(0x134),'aFVmh':_0x482233(0x12e)};if(!_0x3b2954)return _0x37c277[_0x482233(0x175)];return new Date(_0x3b2954)['toLocaleDateString']('en-US',{'year':_0x37c277['aFVmh'],'month':_0x482233(0x12c),'day':_0x37c277[_0x482233(0x144)]});}export function generateFeatureReport(_0x47d34e){const _0x750b43=_0x3280,_0x4e2424={'OZkxW':'ready','RKFep':'completed','RiBVH':'Unknown','OjArM':'No\x20Session','aJURN':function(_0x435d9d,_0x34ae95){return _0x435d9d(_0x34ae95);},'QgHXw':'##\x20Description','JIoKS':'closed','xuaXu':_0x750b43(0x12b),'cKulk':'##\x20Blocking\x20Issues','MAFej':'|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','Ygzpv':'|---------|----------|--------|----------|------|','Xkklt':function(_0x350cd6,_0x3d8994){return _0x350cd6+_0x3d8994;},'uYNkW':_0x750b43(0x161),'BYbEC':'N/A','YfSKh':function(_0x4b50bb,_0x3fad34){return _0x4b50bb===_0x3fad34;},'kPMCk':function(_0x40c91b,_0x3a5486){return _0x40c91b===_0x3a5486;}},{feature:_0x109ca1,stats:_0x5c0e6a,checklistItems:_0x23f3f0,sessions:_0x30fb43}=_0x47d34e,_0x1929b3=[];_0x1929b3[_0x750b43(0x16c)](_0x750b43(0x16a)+_0x109ca1['name']),_0x1929b3[_0x750b43(0x16c)]('');let _0x1c0d16,_0x4f8beb;if(_0x109ca1[_0x750b43(0x13e)])_0x1c0d16=_0x750b43(0x133),_0x4f8beb='✅';else{if(_0x109ca1[_0x750b43(0x169)]){const _0x51bab3=_0x109ca1['currentSession']['status'];switch(_0x51bab3){case _0x4e2424['OZkxW']:_0x1c0d16='Session\x20'+_0x109ca1['currentSession']['iteration']+_0x750b43(0x15d),_0x4f8beb='▶️';break;case'in_progress':_0x1c0d16='Session\x20'+_0x109ca1[_0x750b43(0x169)][_0x750b43(0x15e)]+_0x750b43(0x155),_0x4f8beb='🔄';break;case _0x4e2424[_0x750b43(0x14e)]:_0x1c0d16='Session\x20'+_0x109ca1['currentSession'][_0x750b43(0x15e)]+':\x20Awaiting\x20Review',_0x4f8beb='📊';break;default:_0x1c0d16=_0x4e2424[_0x750b43(0x157)],_0x4f8beb='❓';}}else _0x1c0d16=_0x4e2424[_0x750b43(0x176)],_0x4f8beb='⬜';}_0x1929b3[_0x750b43(0x16c)]('**Status:**\x20'+_0x4f8beb+'\x20'+_0x1c0d16),_0x1929b3[_0x750b43(0x16c)]('**Created:**\x20'+_0x4e2424['aJURN'](formatDate,_0x109ca1[_0x750b43(0x132)]));_0x109ca1[_0x750b43(0x13e)]&&_0x1929b3[_0x750b43(0x16c)](_0x750b43(0x14d)+formatDate(_0x109ca1['completedAt']));_0x109ca1['gitRepoUrl']&&_0x1929b3['push'](_0x750b43(0x153)+_0x109ca1['gitRepoUrl']);_0x109ca1[_0x750b43(0x143)]&&_0x1929b3['push'](_0x750b43(0x165)+_0x109ca1[_0x750b43(0x143)]);_0x1929b3['push']('');_0x109ca1[_0x750b43(0x139)]&&(_0x1929b3[_0x750b43(0x16c)](_0x4e2424[_0x750b43(0x158)]),_0x1929b3['push'](''),_0x1929b3['push'](_0x109ca1['description']),_0x1929b3['push'](''));const _0x4bd52b=_0x23f3f0['filter'](_0x272234=>_0x272234[_0x750b43(0x12d)]!==_0x750b43(0x135)),_0x24d950=_0x23f3f0[_0x750b43(0x15f)](_0x2777c5=>_0x2777c5['status']===_0x750b43(0x130))['length'];_0x1929b3['push'](_0x750b43(0x14c)+_0x24d950+'/'+_0x4bd52b[_0x750b43(0x137)]+_0x750b43(0x168)),_0x1929b3[_0x750b43(0x16c)]('');const _0x2b24a6=[..._0x23f3f0][_0x750b43(0x12f)]((_0x5f0eda,_0x18a5df)=>_0x5f0eda[_0x750b43(0x145)]-_0x18a5df[_0x750b43(0x145)]);for(const _0x52fc60 of _0x2b24a6){const _0x5db9a4=getStatusEmoji(_0x52fc60[_0x750b43(0x12d)]),_0x1e8cd2=_0x52fc60['status']===_0x750b43(0x135),_0x3e5983=_0x1e8cd2?'~~':'',_0x33e560=_0x1e8cd2?'~~':'';_0x1929b3[_0x750b43(0x16c)](_0x750b43(0x159)+_0x5db9a4+'\x20'+_0x3e5983+_0x52fc60['description']+_0x33e560),_0x1929b3['push']('');_0x52fc60[_0x750b43(0x12d)]===_0x750b43(0x130)&&_0x52fc60['verifiedAt']&&_0x1929b3['push']('-\x20**Verified:**\x20'+formatDate(_0x52fc60[_0x750b43(0x152)]));_0x52fc60['status']===_0x750b43(0x167)&&_0x52fc60[_0x750b43(0x171)]&&(_0x1929b3['push'](_0x750b43(0x14b)+_0x4e2424[_0x750b43(0x174)](formatDate,_0x52fc60['blockedAt'])),_0x52fc60[_0x750b43(0x160)]&&_0x1929b3['push'](_0x750b43(0x14f)+_0x52fc60[_0x750b43(0x160)]));_0x52fc60[_0x750b43(0x12d)]===_0x4e2424[_0x750b43(0x136)]&&_0x52fc60[_0x750b43(0x163)]&&(_0x1929b3['push']('-\x20**Closed:**\x20'+_0x4e2424[_0x750b43(0x174)](formatDate,_0x52fc60['closedAt'])),_0x52fc60['canceledReason']&&_0x1929b3[_0x750b43(0x16c)](_0x750b43(0x14f)+_0x52fc60[_0x750b43(0x146)]));_0x52fc60['status']===_0x4e2424[_0x750b43(0x166)]&&_0x1929b3[_0x750b43(0x16c)]('-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work');if(_0x52fc60[_0x750b43(0x16d)]){_0x1929b3['push']('-\x20**Session:**\x20'+_0x52fc60['browserSessionId']);const _0xbf2af2=_0x30fb43['find'](_0x331c80=>_0x331c80['id']===_0x52fc60['browserSessionId']);_0xbf2af2&&(_0xbf2af2['agentResponse']&&_0x1929b3[_0x750b43(0x16c)]('-\x20**Summary:**\x20'+_0xbf2af2['agentResponse']),_0xbf2af2[_0x750b43(0x150)]&&_0x1929b3['push'](_0x750b43(0x149)+_0x4e2424['aJURN'](buildTraceViewerUrl,_0xbf2af2['traceUrl'])+')'));}_0x1929b3['push']('');}const _0x469f5f=_0x23f3f0[_0x750b43(0x15f)](_0x286a35=>_0x286a35[_0x750b43(0x12d)]==='blocked');if(_0x469f5f['length']>0x0){_0x1929b3['push'](_0x4e2424['cKulk']),_0x1929b3['push']('');for(const _0x1d716d of _0x469f5f){_0x1929b3['push']('-\x20**'+_0x1d716d['description']+_0x750b43(0x151)+(_0x1d716d[_0x750b43(0x160)]||'No\x20reason\x20provided'));}_0x1929b3[_0x750b43(0x16c)]('');}else _0x1929b3['push'](_0x750b43(0x13c)),_0x1929b3['push'](''),_0x1929b3[_0x750b43(0x16c)](_0x750b43(0x164)),_0x1929b3[_0x750b43(0x16c)]('');if(_0x30fb43[_0x750b43(0x137)]>0x0){_0x1929b3[_0x750b43(0x16c)]('##\x20All\x20Verification\x20Sessions'),_0x1929b3['push'](''),_0x1929b3[_0x750b43(0x16c)](_0x4e2424['MAFej']),_0x1929b3[_0x750b43(0x16c)](_0x4e2424[_0x750b43(0x147)]);for(const _0x1f5c51 of _0x30fb43){const _0x1919e7=_0x1f5c51['checklistItemId']?_0x23f3f0[_0x750b43(0x172)](_0x3b56c6=>_0x3b56c6['id']===_0x1f5c51[_0x750b43(0x15b)]):null,_0x288033=_0x1919e7?_0x4e2424['Xkklt'](_0x1919e7['description']['substring'](0x0,0x1e),_0x1919e7[_0x750b43(0x139)]['length']>0x1e?_0x4e2424[_0x750b43(0x140)]:''):_0x4e2424['BYbEC'],_0x41d9a1=_0x4e2424['YfSKh'](_0x1f5c51[_0x750b43(0x12d)],_0x4e2424['RKFep'])?'✅':_0x4e2424[_0x750b43(0x138)](_0x1f5c51[_0x750b43(0x12d)],'failed')?'❌':'🔄';_0x1929b3[_0x750b43(0x16c)]('|\x20'+_0x1f5c51['id']+'\x20|\x20'+_0x288033+'\x20|\x20'+_0x41d9a1+'\x20'+_0x1f5c51['status']+_0x750b43(0x148)+formatDuration(_0x1f5c51['durationMs'])+'\x20|\x20'+_0x4e2424['aJURN'](formatDate,_0x1f5c51['createdAt'])+'\x20|');}_0x1929b3[_0x750b43(0x16c)]('');}return _0x1929b3['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5e75e4=_0x56d3;function _0x2171(){const _0x2d6f95=['jEFkw','idLen','nlRGn','KVNzj','QNCYG','sizeLen','99258YemSxP','qlrdD','gHYQE','XZsIF','TWYPN','UxaZf','KeQzO','length','9PrZlyv','FaOxn','NxTBv','PbIDc','qMiJR','mrErs','trOZp','SpoCd','sBuhZ','ZUNyz','from','kjlNQ','uATld','tjQZx','concat','20008JAdIWG','QzDTq','YdbqP','QfRgK','mWwWh','Fixed:\x20','exit','VfeYG','gkkcE','KtQZB','wBMkA','rQtXV','IRrxX','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','argv','111QEOcxT','509720TWQCKU','sMRSj','log','indexOf','fixWebmDuration.js','UtMCx','pow','dataSize','min','dataOffset','KgpoR','YbAGg','958304KGgSdz','OBgRi','mwVwh','21kxPOPo','36883QMnBfK','slice','alloc','172700iUdpOC','790mIHwoS','error','432996tJeAcQ','fixWebmDuration.ts'];_0x2171=function(){return _0x2d6f95;};return _0x2171();}(function(_0x23e3a1,_0x45c10b){const _0x2176f3=_0x56d3,_0x1f4aef=_0x23e3a1();while(!![]){try{const _0x54865c=parseInt(_0x2176f3(0x1bf))/0x1+-parseInt(_0x2176f3(0x1ca))/0x2+parseInt(_0x2176f3(0x1f0))/0x3*(parseInt(_0x2176f3(0x1e1))/0x4)+-parseInt(_0x2176f3(0x1f1))/0x5+-parseInt(_0x2176f3(0x1c2))/0x6*(parseInt(_0x2176f3(0x1bb))/0x7)+parseInt(_0x2176f3(0x1b8))/0x8*(-parseInt(_0x2176f3(0x1d2))/0x9)+-parseInt(_0x2176f3(0x1c0))/0xa*(-parseInt(_0x2176f3(0x1bc))/0xb);if(_0x54865c===_0x45c10b)break;else _0x1f4aef['push'](_0x1f4aef['shift']());}catch(_0x133b30){_0x1f4aef['push'](_0x1f4aef['shift']());}}}(_0x2171,0x20e92));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x5e7c35,_0x1046ae){const _0x5a2180=_0x56d3,_0x5e69d6={'FaOxn':function(_0xe2f875,_0x24eccb){return _0xe2f875+_0x24eccb;},'HzLPM':function(_0x4c478c,_0xc6d39d){return _0x4c478c&_0xc6d39d;},'KtQZB':function(_0x395775,_0x8b7a8){return _0x395775+_0x8b7a8;}};if(_0x1046ae>=_0x5e7c35['length'])return[0x0,0x0];const _0x37158a=_0x5e7c35[_0x1046ae];let _0xf0e94a=0x1,_0x160abc=0x80;while(_0xf0e94a<=0x8&&!(_0x37158a&_0x160abc)){_0xf0e94a++,_0x160abc>>=0x1;}if(_0x5e69d6[_0x5a2180(0x1d3)](_0x1046ae,_0xf0e94a)>_0x5e7c35['length'])return[0x0,0x0];let _0x23b042=_0x5e69d6['HzLPM'](_0x37158a,_0x160abc-0x1);for(let _0x2de830=0x1;_0x2de830<_0xf0e94a;_0x2de830++){_0x23b042=_0x5e69d6[_0x5a2180(0x1ea)](_0x23b042*0x100,_0x5e7c35[_0x5e69d6['KtQZB'](_0x1046ae,_0x2de830)]);}return[_0x23b042,_0xf0e94a];}function readId(_0x5357cb,_0x3a84f3){const _0x404547=_0x56d3,_0x100a05={'UVhnm':function(_0x4eabea,_0x4e8c89){return _0x4eabea+_0x4e8c89;},'PbIDc':function(_0x4cf213,_0x2792db){return _0x4cf213+_0x2792db;}};if(_0x3a84f3>=_0x5357cb['length'])return[0x0,0x0];const _0x54f63c=_0x5357cb[_0x3a84f3];let _0x5dafee;if(_0x54f63c>=0x80)_0x5dafee=0x1;else{if(_0x54f63c>=0x40)_0x5dafee=0x2;else{if(_0x54f63c>=0x20)_0x5dafee=0x3;else{if(_0x54f63c>=0x10)_0x5dafee=0x4;else return[_0x54f63c,0x1];}}}if(_0x100a05['UVhnm'](_0x3a84f3,_0x5dafee)>_0x5357cb['length'])return[0x0,0x0];let _0x2893b8=0x0;for(let _0x4583bc=0x0;_0x4583bc<_0x5dafee;_0x4583bc++){_0x2893b8=_0x2893b8*0x100+_0x5357cb[_0x100a05[_0x404547(0x1d5)](_0x3a84f3,_0x4583bc)];}return[_0x2893b8,_0x5dafee];}function readUint(_0x2c7175,_0x335f10,_0xb44ad7){const _0x32085e=_0x56d3,_0x3d1540={'sMRSj':function(_0x4ac301,_0x158e6e){return _0x4ac301<_0x158e6e;},'AmurD':function(_0x1e3c7a,_0x28114a){return _0x1e3c7a+_0x28114a;}};let _0x5d22c8=0x0;for(let _0x2b6a6=0x0;_0x3d1540[_0x32085e(0x1f2)](_0x2b6a6,_0xb44ad7);_0x2b6a6++){_0x5d22c8=_0x5d22c8*0x100+_0x2c7175[_0x3d1540['AmurD'](_0x335f10,_0x2b6a6)];}return _0x5d22c8;}function isUnknownSize(_0x4dd474,_0x767e2){const _0x4554b7=_0x56d3;return _0x4dd474===Math[_0x4554b7(0x1f7)](0x2,0x7*_0x767e2)-0x1;}function writeId(_0x1a14c1){const _0x4c0b08=_0x56d3,_0x4c55e5={'YdbqP':function(_0x2b855a,_0x5580ca){return _0x2b855a<=_0x5580ca;},'UxaZf':function(_0x3b21aa,_0x155a8d){return _0x3b21aa&_0x155a8d;},'lYksu':function(_0x595326,_0x33735c){return _0x595326>>_0x33735c;}};if(_0x4c55e5[_0x4c0b08(0x1e3)](_0x1a14c1,0xff))return Buffer[_0x4c0b08(0x1dc)]([_0x1a14c1]);if(_0x1a14c1<=0xffff)return Buffer['from']([_0x1a14c1>>0x8&0xff,_0x4c55e5['UxaZf'](_0x1a14c1,0xff)]);if(_0x4c55e5['YdbqP'](_0x1a14c1,0xffffff))return Buffer[_0x4c0b08(0x1dc)]([_0x1a14c1>>0x10&0xff,_0x1a14c1>>0x8&0xff,_0x1a14c1&0xff]);return Buffer[_0x4c0b08(0x1dc)]([_0x1a14c1>>0x18&0xff,_0x4c55e5[_0x4c0b08(0x1cf)](_0x4c55e5['lYksu'](_0x1a14c1,0x10),0xff),_0x4c55e5[_0x4c0b08(0x1cf)](_0x1a14c1>>0x8,0xff),_0x4c55e5['UxaZf'](_0x1a14c1,0xff)]);}function writeVint(_0x32541e,_0x5e0313){const _0x5ca498=_0x56d3,_0x12d2ac={'mtUpP':function(_0x33d8ad,_0x214514){return _0x33d8ad-_0x214514;},'okJCb':function(_0x2ad450,_0x406fd3){return _0x2ad450&_0x406fd3;},'KVNzj':function(_0x42d287,_0x4eef04){return _0x42d287/_0x4eef04;},'iIJTi':function(_0x1f6ec2,_0xd8e83d){return _0x1f6ec2<<_0xd8e83d;}};let _0x22b8bd=_0x5e0313||0x1;while(_0x12d2ac['mtUpP'](Math['pow'](0x2,0x7*_0x22b8bd),0x2)<_0x32541e)_0x22b8bd++;const _0x58deed=Buffer[_0x5ca498(0x1be)](_0x22b8bd);for(let _0x5670e0=_0x22b8bd-0x1;_0x5670e0>=0x0;_0x5670e0--){_0x58deed[_0x5670e0]=_0x12d2ac['okJCb'](_0x32541e,0xff),_0x32541e=Math['floor'](_0x12d2ac[_0x5ca498(0x1c7)](_0x32541e,0x100));}return _0x58deed[0x0]|=_0x12d2ac['iIJTi'](0x1,0x8-_0x22b8bd),_0x58deed;}function writeFloat64(_0x333ef4){const _0xca9a6=_0x56d3,_0x45f528=Buffer[_0xca9a6(0x1be)](0x8);return _0x45f528['writeDoubleBE'](_0x333ef4,0x0),_0x45f528;}function writeVoid(_0x5961c4){const _0x315926=_0x56d3,_0x20df0b={'YTKfO':function(_0x23b378,_0x5a6809){return _0x23b378<=_0x5a6809;},'DflcO':function(_0x38f621,_0x4a29e4){return _0x38f621-_0x4a29e4;},'nlRGn':function(_0x2a6abc,_0x505db8,_0x256c0f){return _0x2a6abc(_0x505db8,_0x256c0f);}};for(let _0x52531f=0x1;_0x20df0b['YTKfO'](_0x52531f,0x8);_0x52531f++){const _0x467b7e=_0x20df0b['DflcO'](_0x5961c4-0x1,_0x52531f);if(_0x467b7e>=0x0&&_0x20df0b['YTKfO'](_0x467b7e,Math[_0x315926(0x1f7)](0x2,0x7*_0x52531f)-0x2))return Buffer[_0x315926(0x1e0)]([Buffer[_0x315926(0x1dc)]([ID_VOID]),_0x20df0b[_0x315926(0x1c6)](writeVint,_0x467b7e,_0x52531f),Buffer[_0x315926(0x1be)](_0x467b7e)]);}return Buffer['alloc'](0x0);}function findElement(_0x3492f3,_0x8c7efb,_0x424488,_0x188b21){const _0x54e659=_0x56d3,_0x587fec={'VJBtw':function(_0x71272b,_0x4482cd,_0x5b150c){return _0x71272b(_0x4482cd,_0x5b150c);},'tjQZx':function(_0x180b19,_0x5e2c4e,_0x96d836){return _0x180b19(_0x5e2c4e,_0x96d836);},'KgpoR':function(_0x18fb42,_0x698e4d){return _0x18fb42+_0x698e4d;},'ZlThG':function(_0x4e67cc,_0x2ca148){return _0x4e67cc===_0x2ca148;},'OBgRi':function(_0x2a8134,_0xdaf8,_0x2a3864){return _0x2a8134(_0xdaf8,_0x2a3864);},'hMVBn':function(_0x206e39,_0x25fb48){return _0x206e39+_0x25fb48;}};let _0x2bc6be=_0x8c7efb;while(_0x2bc6be<_0x424488){const [_0x476653,_0x47a382]=_0x587fec['VJBtw'](readId,_0x3492f3,_0x2bc6be),[_0x514b3a,_0x686b7d]=_0x587fec[_0x54e659(0x1df)](readVint,_0x3492f3,_0x587fec[_0x54e659(0x1fb)](_0x2bc6be,_0x47a382));if(_0x587fec['ZlThG'](_0x476653,_0x188b21))return{'offset':_0x2bc6be,'idLen':_0x47a382,'sizeLen':_0x686b7d,'dataSize':_0x514b3a,'dataOffset':_0x587fec[_0x54e659(0x1fb)](_0x2bc6be+_0x47a382,_0x686b7d)};if(_0x587fec[_0x54e659(0x1b9)](isUnknownSize,_0x514b3a,_0x686b7d))break;_0x2bc6be+=_0x587fec['hMVBn'](_0x47a382,_0x686b7d)+_0x514b3a;}return null;}function computeDurationMs(_0x216bb4,_0x38839a){const _0x2ca2a4=_0x56d3,_0x48a276={'NxTBv':function(_0x1f6d54,_0x30a6af){return _0x1f6d54===_0x30a6af;},'QfRgK':function(_0x546096,_0x1baaf0,_0x424f68){return _0x546096(_0x1baaf0,_0x424f68);},'trOZp':function(_0x27716c,_0x46cc93){return _0x27716c!==_0x46cc93;},'bHnep':function(_0x27285e,_0xc81f60){return _0x27285e+_0xc81f60;},'fgFKi':function(_0x6dbbfb,_0x349b05){return _0x6dbbfb+_0x349b05;},'gHYQE':function(_0x14ea44,_0x5ebe13,_0x289270){return _0x14ea44(_0x5ebe13,_0x289270);},'UtMCx':function(_0x5727ea,_0x977510){return _0x5727ea-_0x977510;},'XZsIF':function(_0x4ae1cd,_0xc63bd4,_0x56f7f4){return _0x4ae1cd(_0xc63bd4,_0x56f7f4);},'TWYPN':function(_0x3c34b3,_0x33d934){return _0x3c34b3+_0x33d934;},'ZQkRn':function(_0x34f5bb,_0x91dd0c){return _0x34f5bb+_0x91dd0c;},'ZUNyz':function(_0x3042ec,_0x48f70b){return _0x3042ec+_0x48f70b;},'QzDTq':function(_0x13e3cd,_0x9565bb,_0x27e808,_0x38889e){return _0x13e3cd(_0x9565bb,_0x27e808,_0x38889e);},'mWwWh':function(_0x3b4999,_0x2c6a72){return _0x3b4999===_0x2c6a72;},'APdSf':function(_0x15a8c5,_0x4d12db){return _0x15a8c5>_0x4d12db;},'uATld':function(_0x2d3575,_0x10082d){return _0x2d3575===_0x10082d;},'FCHOt':function(_0x3e8e9b,_0x4aa408){return _0x3e8e9b+_0x4aa408;},'SqVal':function(_0x17178c,_0x561bf6){return _0x17178c+_0x561bf6;}};let _0x2d43b9=0x0;const _0x62aeed=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x1c8c6b=_0x216bb4[_0x2ca2a4(0x1f4)](_0x62aeed);if(_0x48a276['NxTBv'](_0x1c8c6b,-0x1))return 0x0;while(_0x1c8c6b<_0x216bb4['length']){const [_0x38e902,_0x248f1c]=_0x48a276['QfRgK'](readId,_0x216bb4,_0x1c8c6b);if(_0x48a276[_0x2ca2a4(0x1d8)](_0x38e902,ID_CLUSTER))break;const [_0xc9394c,_0x5f366f]=readVint(_0x216bb4,_0x48a276['bHnep'](_0x1c8c6b,_0x248f1c)),_0x66c6ad=_0x48a276['fgFKi'](_0x48a276['fgFKi'](_0x1c8c6b,_0x248f1c),_0x5f366f),_0x125748=_0x48a276['gHYQE'](isUnknownSize,_0xc9394c,_0x5f366f);let _0x241117;if(_0x125748){let _0x32cfe3=_0x66c6ad;while(_0x32cfe3<_0x48a276[_0x2ca2a4(0x1f6)](_0x216bb4[_0x2ca2a4(0x1d1)],0x4)){const [_0x47637f,_0x4ffcfd]=readId(_0x216bb4,_0x32cfe3);if(_0x47637f===ID_CLUSTER){_0x241117=_0x32cfe3;break;}const [_0x5b1f32,_0x30974e]=_0x48a276[_0x2ca2a4(0x1cd)](readVint,_0x216bb4,_0x48a276[_0x2ca2a4(0x1ce)](_0x32cfe3,_0x4ffcfd));if(_0x48a276[_0x2ca2a4(0x1e4)](isUnknownSize,_0x5b1f32,_0x30974e)){_0x241117=_0x216bb4['length'];break;}_0x32cfe3+=_0x48a276['fgFKi'](_0x4ffcfd+_0x30974e,_0x5b1f32);}_0x241117??=_0x216bb4['length'];}else _0x241117=_0x48a276['ZQkRn'](_0x66c6ad,_0xc9394c);let _0x4d394b=0x0,_0x4981fd=_0x66c6ad;while(_0x4981fd<_0x241117){const [_0x32ed10,_0x277a48]=readId(_0x216bb4,_0x4981fd),[_0x10f046,_0x51fd21]=_0x48a276[_0x2ca2a4(0x1cc)](readVint,_0x216bb4,_0x48a276[_0x2ca2a4(0x1db)](_0x4981fd,_0x277a48));if(_0x48a276[_0x2ca2a4(0x1d4)](_0x32ed10,ID_TIMESTAMP))_0x4d394b=_0x48a276[_0x2ca2a4(0x1e2)](readUint,_0x216bb4,_0x48a276['ZUNyz'](_0x4981fd,_0x277a48)+_0x51fd21,_0x10f046);else{if(_0x48a276[_0x2ca2a4(0x1e5)](_0x32ed10,ID_SIMPLE_BLOCK)&&_0x10f046>=0x4){const _0x53e814=_0x48a276['ZUNyz'](_0x48a276['ZQkRn'](_0x4981fd,_0x277a48),_0x51fd21),[,_0x323746]=readVint(_0x216bb4,_0x53e814),_0x43f6d2=_0x216bb4['readInt16BE'](_0x53e814+_0x323746),_0x4d0b95=_0x48a276['bHnep'](_0x4d394b,_0x43f6d2)*_0x38839a/0xf4240;_0x48a276['APdSf'](_0x4d0b95,_0x2d43b9)&&(_0x2d43b9=_0x4d0b95);}else{if(_0x48a276[_0x2ca2a4(0x1de)](_0x32ed10,ID_CLUSTER))break;}}if(isUnknownSize(_0x10f046,_0x51fd21))break;_0x4981fd+=_0x48a276['FCHOt'](_0x48a276['SqVal'](_0x277a48,_0x51fd21),_0x10f046);}_0x1c8c6b=_0x241117;}return _0x2d43b9;}function _0x56d3(_0x292603,_0x155c8a){_0x292603=_0x292603-0x1b8;const _0x217141=_0x2171();let _0x56d345=_0x217141[_0x292603];return _0x56d345;}export function fixWebmDuration(_0x5a640d,_0x2e3037){const _0x36ddb9=_0x56d3,_0x46ccaa={'qMiJR':function(_0x3b8ce9,_0x12c7ad){return _0x3b8ce9(_0x12c7ad);},'SpoCd':function(_0x4ae2d4,_0xafc586,_0x3dcdc0){return _0x4ae2d4(_0xafc586,_0x3dcdc0);},'kjlNQ':function(_0x12afcf,_0x118389){return _0x12afcf+_0x118389;},'rQtXV':function(_0x260298,_0x4dbfa4){return _0x260298===_0x4dbfa4;},'KeQzO':function(_0x1e97fe,_0x3195e6){return _0x1e97fe+_0x3195e6;},'YbAGg':function(_0xf98fde,_0x12333d){return _0xf98fde+_0x12333d;},'mrErs':'Could\x20not\x20find\x20Info\x20element','wBMkA':function(_0x1f439b,_0x1a2c31,_0xcc1b9a,_0x763ade,_0x2c8fc3){return _0x1f439b(_0x1a2c31,_0xcc1b9a,_0x763ade,_0x2c8fc3);},'jlkuG':function(_0x3c4ba6,_0x485b16,_0x17a2fd,_0x454704,_0x28e38f){return _0x3c4ba6(_0x485b16,_0x17a2fd,_0x454704,_0x28e38f);},'gkkcE':function(_0x27f0ac,_0x507b9d,_0x12adc8,_0x46106f){return _0x27f0ac(_0x507b9d,_0x12adc8,_0x46106f);},'hHMEe':function(_0xfeb26c,_0x26d061,_0x538945){return _0xfeb26c(_0x26d061,_0x538945);},'IRrxX':function(_0x2a869e,_0x176a21){return _0x2a869e<=_0x176a21;},'RoXGb':'Could\x20not\x20compute\x20duration','ULLax':function(_0x25c844,_0x2f1f96){return _0x25c844(_0x2f1f96);},'qlrdD':function(_0x1652d5,_0x3d870f){return _0x1652d5(_0x3d870f);},'QNCYG':function(_0x466b36,_0x5beeb4){return _0x466b36+_0x5beeb4;},'jEFkw':function(_0x49c4ad,_0x3d3600){return _0x49c4ad+_0x3d3600;},'VfeYG':function(_0x1f4471,_0x30ab0e){return _0x1f4471-_0x30ab0e;},'JAnHT':function(_0xeb5195,_0x355850){return _0xeb5195<_0x355850;},'rvsvo':function(_0x29c166,_0x345947){return _0x29c166+_0x345947;}},_0x138e13=_0x46ccaa[_0x36ddb9(0x1d6)](readFileSync,_0x5a640d);let _0x1290c6=0x0;const [_0x75e149,_0x374791]=_0x46ccaa['SpoCd'](readId,_0x138e13,_0x1290c6),[_0x7dd076,_0x39c7ee]=readVint(_0x138e13,_0x46ccaa[_0x36ddb9(0x1dd)](_0x1290c6,_0x374791));_0x1290c6+=_0x46ccaa[_0x36ddb9(0x1dd)](_0x374791,_0x39c7ee)+_0x7dd076;const [_0x164d69,_0x5768af]=_0x46ccaa[_0x36ddb9(0x1d9)](readId,_0x138e13,_0x1290c6);if(_0x164d69!==ID_SEGMENT)return console[_0x36ddb9(0x1c1)](_0x36ddb9(0x1ee)),![];const [,_0x3ec628]=readVint(_0x138e13,_0x1290c6+_0x5768af),_0x5e2d31=_0x1290c6+_0x5768af+_0x3ec628;let _0x146aa6=_0x5e2d31;const _0x186fce=Math[_0x36ddb9(0x1f9)](_0x138e13[_0x36ddb9(0x1d1)],_0x46ccaa['kjlNQ'](_0x5e2d31,0x2710));let _0x1ee09f=null,_0x42b4ee=null;while(_0x146aa6<_0x186fce){const [_0x9456d5,_0x2d22b1]=readId(_0x138e13,_0x146aa6),[_0x3aeda4,_0x2a9ed3]=readVint(_0x138e13,_0x146aa6+_0x2d22b1);_0x9456d5===ID_VOID&&!_0x1ee09f&&(_0x1ee09f={'offset':_0x146aa6,'idLen':_0x2d22b1,'sizeLen':_0x2a9ed3,'dataSize':_0x3aeda4,'dataOffset':_0x46ccaa['kjlNQ'](_0x146aa6+_0x2d22b1,_0x2a9ed3)});if(_0x46ccaa['rQtXV'](_0x9456d5,ID_INFO)){_0x42b4ee={'offset':_0x146aa6,'idLen':_0x2d22b1,'sizeLen':_0x2a9ed3,'dataSize':_0x3aeda4,'dataOffset':_0x46ccaa[_0x36ddb9(0x1d0)](_0x46ccaa[_0x36ddb9(0x1fc)](_0x146aa6,_0x2d22b1),_0x2a9ed3)};break;}if(_0x46ccaa[_0x36ddb9(0x1ec)](_0x9456d5,ID_CLUSTER))break;if(_0x46ccaa[_0x36ddb9(0x1d9)](isUnknownSize,_0x3aeda4,_0x2a9ed3))break;_0x146aa6+=_0x2d22b1+_0x2a9ed3+_0x3aeda4;}if(!_0x42b4ee)return console[_0x36ddb9(0x1c1)](_0x46ccaa[_0x36ddb9(0x1d7)]),![];const _0x4565a8=_0x46ccaa[_0x36ddb9(0x1eb)](findElement,_0x138e13,_0x42b4ee[_0x36ddb9(0x1fa)],_0x46ccaa['YbAGg'](_0x42b4ee['dataOffset'],_0x42b4ee['dataSize']),ID_DURATION);if(_0x4565a8)return![];const _0x21604f=_0x46ccaa['jlkuG'](findElement,_0x138e13,_0x42b4ee['dataOffset'],_0x46ccaa[_0x36ddb9(0x1dd)](_0x42b4ee['dataOffset'],_0x42b4ee['dataSize']),ID_TIMESTAMP_SCALE);let _0x4504b8=0xf4240;_0x21604f&&(_0x4504b8=_0x46ccaa[_0x36ddb9(0x1e9)](readUint,_0x138e13,_0x21604f['dataOffset'],_0x21604f[_0x36ddb9(0x1f8)]));const _0x163c63=_0x46ccaa['hHMEe'](computeDurationMs,_0x138e13,_0x4504b8);if(_0x46ccaa[_0x36ddb9(0x1ed)](_0x163c63,0x0))return console['error'](_0x46ccaa['RoXGb']),![];const _0x2558a9=_0x163c63*0xf4240/_0x4504b8,_0x28de11=Buffer[_0x36ddb9(0x1e0)]([_0x46ccaa['ULLax'](writeId,ID_DURATION),_0x46ccaa[_0x36ddb9(0x1cb)](writeVint,0x8),_0x46ccaa['ULLax'](writeFloat64,_0x2558a9)]),_0x42d0c2=_0x28de11[_0x36ddb9(0x1d1)];if(!_0x1ee09f||_0x1ee09f['offset']<_0x42b4ee['offset']){if(_0x1ee09f){const _0x38deca=_0x46ccaa[_0x36ddb9(0x1c8)](_0x46ccaa[_0x36ddb9(0x1c4)](_0x1ee09f[_0x36ddb9(0x1c5)],_0x1ee09f[_0x36ddb9(0x1c9)]),_0x1ee09f['dataSize']),_0xd1861d=_0x46ccaa[_0x36ddb9(0x1e8)](_0x38deca,_0x42d0c2);if(_0x46ccaa['JAnHT'](_0xd1861d,0x2))return rewriteFile(_0x138e13,_0x42b4ee,_0x28de11,_0x4504b8,_0x163c63,_0x2e3037);const _0x1a1d24=_0x46ccaa[_0x36ddb9(0x1dd)](_0x42b4ee['dataSize'],_0x42d0c2),_0x2c2e44=Buffer[_0x36ddb9(0x1e0)]([_0x46ccaa[_0x36ddb9(0x1cb)](writeId,ID_INFO),writeVint(_0x1a1d24,_0x42b4ee[_0x36ddb9(0x1c9)])]),_0x3844b2=_0x138e13[_0x36ddb9(0x1bd)](_0x42b4ee[_0x36ddb9(0x1fa)],_0x46ccaa['YbAGg'](_0x42b4ee[_0x36ddb9(0x1fa)],_0x42b4ee[_0x36ddb9(0x1f8)])),_0x24e038=writeVoid(_0xd1861d),_0xf804e1=_0x138e13['slice'](0x0,_0x1ee09f['offset']),_0x459f1b=_0x138e13[_0x36ddb9(0x1bd)](_0x46ccaa['rvsvo'](_0x42b4ee['dataOffset'],_0x42b4ee['dataSize']));return _0x46ccaa['hHMEe'](writeFileSync,_0x2e3037,Buffer[_0x36ddb9(0x1e0)]([_0xf804e1,_0x24e038,_0x2c2e44,_0x3844b2,_0x28de11,_0x459f1b])),!![];}}return rewriteFile(_0x138e13,_0x42b4ee,_0x28de11,_0x4504b8,_0x163c63,_0x2e3037);}function rewriteFile(_0x533c23,_0x20ef3b,_0x1c2e64,_0x271969,_0x2dbf51,_0x590a47){const _0xef7633=_0x56d3,_0x3e99fb={'mwVwh':function(_0x19d31e,_0x23d21f){return _0x19d31e(_0x23d21f);},'sBuhZ':function(_0x3634b9,_0x40a694){return _0x3634b9+_0x40a694;},'BWNNU':function(_0x4cc919,_0xbd73b5,_0x322b15){return _0x4cc919(_0xbd73b5,_0x322b15);}},_0x306fb8=_0x20ef3b[_0xef7633(0x1f8)]+_0x1c2e64['length'],_0x457029=Buffer[_0xef7633(0x1e0)]([writeId(ID_INFO),_0x3e99fb[_0xef7633(0x1ba)](writeVint,_0x306fb8)]),_0x234dde=_0x3e99fb[_0xef7633(0x1da)](_0x20ef3b['idLen'],_0x20ef3b[_0xef7633(0x1c9)]),_0x27a2d3=_0x533c23[_0xef7633(0x1bd)](0x0,_0x20ef3b['offset']),_0x481e4e=_0x533c23['slice'](_0x20ef3b['dataOffset'],_0x3e99fb['sBuhZ'](_0x20ef3b[_0xef7633(0x1fa)],_0x20ef3b['dataSize'])),_0xadf9c5=_0x533c23['slice'](_0x3e99fb['sBuhZ'](_0x20ef3b['offset']+_0x234dde,_0x20ef3b[_0xef7633(0x1f8)]));return _0x3e99fb['BWNNU'](writeFileSync,_0x590a47,Buffer['concat']([_0x27a2d3,_0x457029,_0x481e4e,_0x1c2e64,_0xadf9c5])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x5e75e4(0x1c3))||process[_0x5e75e4(0x1ef)][0x1]?.['endsWith'](_0x5e75e4(0x1f5))){const input=process[_0x5e75e4(0x1ef)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x5e75e4(0x1c1)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x5e75e4(0x1e7)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x5e75e4(0x1f3)](_0x5e75e4(0x1e6)+output):console[_0x5e75e4(0x1f3)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
const _0x25be8f=_0x30aa;(function(_0x432575,_0x5efee1){const _0x4eb6f6=_0x30aa,_0xed7a49=_0x432575();while(!![]){try{const _0x2e5fcf=parseInt(_0x4eb6f6(0x22a))/0x1+parseInt(_0x4eb6f6(0x201))/0x2+-parseInt(_0x4eb6f6(0x1f3))/0x3*(parseInt(_0x4eb6f6(0x1fe))/0x4)+-parseInt(_0x4eb6f6(0x20c))/0x5*(parseInt(_0x4eb6f6(0x22d))/0x6)+-parseInt(_0x4eb6f6(0x1f9))/0x7+parseInt(_0x4eb6f6(0x203))/0x8*(parseInt(_0x4eb6f6(0x224))/0x9)+parseInt(_0x4eb6f6(0x213))/0xa*(parseInt(_0x4eb6f6(0x200))/0xb);if(_0x2e5fcf===_0x5efee1)break;else _0xed7a49['push'](_0xed7a49['shift']());}catch(_0x401db6){_0xed7a49['push'](_0xed7a49['shift']());}}}(_0x1ec9,0x89b0b));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x320c27,_0x5b0f6e){const _0x52860c=_0x30aa,_0x697827={'MxMWc':function(_0x1d2827,_0x5bd12a){return _0x1d2827&_0x5bd12a;},'BxNUh':function(_0x4b32c4,_0x55cbd7){return _0x4b32c4&_0x55cbd7;},'GgKVM':function(_0x264df1,_0x1adadd){return _0x264df1<_0x1adadd;},'ZNIYK':function(_0x28c21e,_0x55b77c){return _0x28c21e+_0x55b77c;},'vFgMK':function(_0x238503,_0x44acb6){return _0x238503+_0x44acb6;}};if(_0x5b0f6e>=_0x320c27[_0x52860c(0x209)])return[0x0,0x0];const _0x28f1c5=_0x320c27[_0x5b0f6e];let _0x54eb3f=0x1,_0x50d285=0x80;while(_0x54eb3f<=0x8&&!_0x697827['MxMWc'](_0x28f1c5,_0x50d285)){_0x54eb3f++,_0x50d285>>=0x1;}if(_0x5b0f6e+_0x54eb3f>_0x320c27['length'])return[0x0,0x0];let _0x11c12d=_0x697827['BxNUh'](_0x28f1c5,_0x50d285-0x1);for(let _0x23d578=0x1;_0x697827['GgKVM'](_0x23d578,_0x54eb3f);_0x23d578++){_0x11c12d=_0x697827[_0x52860c(0x20a)](_0x11c12d*0x100,_0x320c27[_0x697827[_0x52860c(0x220)](_0x5b0f6e,_0x23d578)]);}return[_0x11c12d,_0x54eb3f];}function readId(_0x381600,_0xfad448){const _0x5c7096=_0x30aa,_0x1b1660={'QxjXT':function(_0x49c0bb,_0x41820d){return _0x49c0bb>=_0x41820d;},'BTJpB':function(_0xe9703f,_0x2cf54e){return _0xe9703f>=_0x2cf54e;},'UyyuT':function(_0x3af1be,_0x46c129){return _0x3af1be>=_0x46c129;},'MqzJP':function(_0xcb2427,_0x54ebd1){return _0xcb2427+_0x54ebd1;},'qryVH':function(_0x5b2e65,_0x161c19){return _0x5b2e65*_0x161c19;}};if(_0x1b1660['QxjXT'](_0xfad448,_0x381600['length']))return[0x0,0x0];const _0x51b4df=_0x381600[_0xfad448];let _0x577bbf;if(_0x1b1660[_0x5c7096(0x1f5)](_0x51b4df,0x80))_0x577bbf=0x1;else{if(_0x1b1660[_0x5c7096(0x204)](_0x51b4df,0x40))_0x577bbf=0x2;else{if(_0x51b4df>=0x20)_0x577bbf=0x3;else{if(_0x1b1660[_0x5c7096(0x1f5)](_0x51b4df,0x10))_0x577bbf=0x4;else return[_0x51b4df,0x1];}}}if(_0xfad448+_0x577bbf>_0x381600['length'])return[0x0,0x0];let _0x1a9e4f=0x0;for(let _0x580a39=0x0;_0x580a39<_0x577bbf;_0x580a39++){_0x1a9e4f=_0x1b1660['MqzJP'](_0x1b1660['qryVH'](_0x1a9e4f,0x100),_0x381600[_0xfad448+_0x580a39]);}return[_0x1a9e4f,_0x577bbf];}function readUint(_0x175887,_0x542f23,_0x524532){const _0x5a9d27=_0x30aa,_0x4de14f={'tCzzt':function(_0x56133a,_0x248d6b){return _0x56133a<_0x248d6b;},'lJFwr':function(_0xb36dfe,_0x5f5a75){return _0xb36dfe*_0x5f5a75;}};let _0x546f45=0x0;for(let _0x44f963=0x0;_0x4de14f['tCzzt'](_0x44f963,_0x524532);_0x44f963++){_0x546f45=_0x4de14f[_0x5a9d27(0x217)](_0x546f45,0x100)+_0x175887[_0x542f23+_0x44f963];}return _0x546f45;}function isUnknownSize(_0x5cbc67,_0x3329ee){const _0x59f3b6=_0x30aa,_0x4a4514={'ccepj':function(_0xf0c5cf,_0x5e4ec4){return _0xf0c5cf===_0x5e4ec4;},'WhaXp':function(_0x33d986,_0x3b3338){return _0x33d986-_0x3b3338;},'lheCH':function(_0x37948a,_0x428c32){return _0x37948a*_0x428c32;}};return _0x4a4514['ccepj'](_0x5cbc67,_0x4a4514['WhaXp'](Math['pow'](0x2,_0x4a4514[_0x59f3b6(0x206)](0x7,_0x3329ee)),0x1));}function writeId(_0x704b38){const _0x1eeae0=_0x30aa,_0x2e019d={'dCCxZ':function(_0x56d97c,_0x4099b1){return _0x56d97c<=_0x4099b1;},'IezKO':function(_0x3bbafd,_0x5dd963){return _0x3bbafd>>_0x5dd963;},'NamdD':function(_0x37d901,_0x2288d3){return _0x37d901&_0x2288d3;},'fCIsQ':function(_0x1681f1,_0x38b0bb){return _0x1681f1>>_0x38b0bb;},'qWaBJ':function(_0x18ce6b,_0x5dd58a){return _0x18ce6b>>_0x5dd58a;}};if(_0x2e019d[_0x1eeae0(0x1f2)](_0x704b38,0xff))return Buffer[_0x1eeae0(0x229)]([_0x704b38]);if(_0x2e019d['dCCxZ'](_0x704b38,0xffff))return Buffer[_0x1eeae0(0x229)]([_0x2e019d['IezKO'](_0x704b38,0x8)&0xff,_0x704b38&0xff]);if(_0x704b38<=0xffffff)return Buffer['from']([_0x704b38>>0x10&0xff,_0x2e019d['NamdD'](_0x2e019d['fCIsQ'](_0x704b38,0x8),0xff),_0x2e019d[_0x1eeae0(0x212)](_0x704b38,0xff)]);return Buffer['from']([_0x2e019d[_0x1eeae0(0x216)](_0x704b38,0x18)&0xff,_0x2e019d[_0x1eeae0(0x20e)](_0x704b38,0x10)&0xff,_0x2e019d['IezKO'](_0x704b38,0x8)&0xff,_0x704b38&0xff]);}function _0x1ec9(){const _0x52a2c9=['upnCq','jCfnM','argv','fzmDX','Could\x20not\x20find\x20Info\x20element','sizeLen','LIRnr','kRzfU','vFgMK','onllt','gQFab','error','21807zkLmsf','dGNmc','fixWebmDuration.ts','xWGXD','writeDoubleBE','from','722616zMTwTq','hCfAJ','QkxwR','6rywzuD','offset','wiemv','AULBc','iTnLv','CxSyu','AWDzA','aQytR','rQOeL','concat','VTfAO','dataOffset','dCCxZ','1264533pUkpEo','jovsI','BTJpB','zRqks','indexOf','yGOAC','7507738RfLAfu','jxjfE','NQLcA','alloc','scVrT','8mIbyHl','BtaYH','11olbMcZ','771744Dsblel','endsWith','2248hUIFnq','UyyuT','ODxbd','lheCH','dataSize','CkCkR','length','ZNIYK','Nsjwf','989060BTiHIl','JNNZR','qWaBJ','uYORv','slice','ipQpb','NamdD','8879960XVNYsS','MjnIZ','log','IezKO','lJFwr'];_0x1ec9=function(){return _0x52a2c9;};return _0x1ec9();}function writeVint(_0x493656,_0x50f42c){const _0x36760d=_0x30aa,_0x144b8b={'dGNmc':function(_0x424825,_0x49b95c){return _0x424825-_0x49b95c;},'gQFab':function(_0x51e38c,_0x3e2279){return _0x51e38c/_0x3e2279;},'JNNZR':function(_0xc37c8c,_0x4ee054){return _0xc37c8c<<_0x4ee054;}};let _0x35e44d=_0x50f42c||0x1;while(_0x144b8b[_0x36760d(0x225)](Math['pow'](0x2,0x7*_0x35e44d),0x2)<_0x493656)_0x35e44d++;const _0x4dfa5f=Buffer[_0x36760d(0x1fc)](_0x35e44d);for(let _0x219aab=_0x35e44d-0x1;_0x219aab>=0x0;_0x219aab--){_0x4dfa5f[_0x219aab]=_0x493656&0xff,_0x493656=Math['floor'](_0x144b8b[_0x36760d(0x222)](_0x493656,0x100));}return _0x4dfa5f[0x0]|=_0x144b8b[_0x36760d(0x20d)](0x1,0x8-_0x35e44d),_0x4dfa5f;}function writeFloat64(_0x4fcea3){const _0x280b84=_0x30aa,_0x3f4fc1=Buffer['alloc'](0x8);return _0x3f4fc1[_0x280b84(0x228)](_0x4fcea3,0x0),_0x3f4fc1;}function writeVoid(_0x31a86b){const _0x64a76=_0x30aa,_0x2cfeab={'pykOj':function(_0x5a075a,_0x5608fe){return _0x5a075a<=_0x5608fe;},'ctlkB':function(_0x39df8e,_0x466bad){return _0x39df8e>=_0x466bad;},'scVrT':function(_0x15afcd,_0x47a454){return _0x15afcd*_0x47a454;},'wiemv':function(_0x3e7909,_0x19f5f8,_0x5340f0){return _0x3e7909(_0x19f5f8,_0x5340f0);}};for(let _0x12fe32=0x1;_0x2cfeab['pykOj'](_0x12fe32,0x8);_0x12fe32++){const _0x35402a=_0x31a86b-0x1-_0x12fe32;if(_0x2cfeab['ctlkB'](_0x35402a,0x0)&&_0x35402a<=Math['pow'](0x2,_0x2cfeab[_0x64a76(0x1fd)](0x7,_0x12fe32))-0x2)return Buffer[_0x64a76(0x1ef)]([Buffer[_0x64a76(0x229)]([ID_VOID]),_0x2cfeab[_0x64a76(0x22f)](writeVint,_0x35402a,_0x12fe32),Buffer[_0x64a76(0x1fc)](_0x35402a)]);}return Buffer['alloc'](0x0);}function findElement(_0x4f3967,_0x1ae63c,_0x5e9cab,_0x3009f2){const _0x1c2d2b=_0x30aa,_0xc824f={'upnCq':function(_0x3f2d09,_0x16dc8c,_0x49edf7){return _0x3f2d09(_0x16dc8c,_0x49edf7);},'vGpVN':function(_0x3162a4,_0x5193f9,_0x170de0){return _0x3162a4(_0x5193f9,_0x170de0);},'CkCkR':function(_0x3f66bf,_0x3a61af){return _0x3f66bf+_0x3a61af;},'ODxbd':function(_0x2df20b,_0x23cd8b){return _0x2df20b+_0x23cd8b;},'CCkMf':function(_0x4e8247,_0x1d77c4){return _0x4e8247+_0x1d77c4;}};let _0x596696=_0x1ae63c;while(_0x596696<_0x5e9cab){const [_0x22c0ca,_0x1cad64]=_0xc824f[_0x1c2d2b(0x218)](readId,_0x4f3967,_0x596696),[_0x3512c2,_0x5b3e9f]=_0xc824f['vGpVN'](readVint,_0x4f3967,_0xc824f[_0x1c2d2b(0x208)](_0x596696,_0x1cad64));if(_0x22c0ca===_0x3009f2)return{'offset':_0x596696,'idLen':_0x1cad64,'sizeLen':_0x5b3e9f,'dataSize':_0x3512c2,'dataOffset':_0xc824f['ODxbd'](_0xc824f[_0x1c2d2b(0x205)](_0x596696,_0x1cad64),_0x5b3e9f)};if(_0xc824f[_0x1c2d2b(0x218)](isUnknownSize,_0x3512c2,_0x5b3e9f))break;_0x596696+=_0xc824f['CCkMf'](_0x1cad64+_0x5b3e9f,_0x3512c2);}return null;}function computeDurationMs(_0x20e0a6,_0x36a2a7){const _0x20f77f=_0x30aa,_0x5ca87e={'Nsjwf':function(_0x549971,_0x1c6d7f){return _0x549971===_0x1c6d7f;},'ipQpb':function(_0x268a46,_0x1fac8d,_0x288280){return _0x268a46(_0x1fac8d,_0x288280);},'MjnIZ':function(_0x3f6503,_0x265069){return _0x3f6503+_0x265069;},'jCfnM':function(_0x1e0aa7,_0x5c789a){return _0x1e0aa7===_0x5c789a;},'rQOeL':function(_0x46a14e,_0x2ef3f0,_0x42a11b){return _0x46a14e(_0x2ef3f0,_0x42a11b);},'CxSyu':function(_0x22836e,_0x1858d3){return _0x22836e+_0x1858d3;},'KrVpj':function(_0x477891,_0x32165a,_0x57bf57){return _0x477891(_0x32165a,_0x57bf57);},'onllt':function(_0x2697d2,_0x4507b4){return _0x2697d2<_0x4507b4;},'iwueT':function(_0x2fe4e0,_0x2d5f8e,_0x580a2e,_0x1a3188){return _0x2fe4e0(_0x2d5f8e,_0x580a2e,_0x1a3188);},'AULBc':function(_0xfe84b8,_0x4c4ad5){return _0xfe84b8>=_0x4c4ad5;},'lAVIy':function(_0x57d877,_0x3e7e36){return _0x57d877+_0x3e7e36;},'LIRnr':function(_0x54c8fe,_0x27ced6){return _0x54c8fe/_0x27ced6;},'DvBTr':function(_0x2e2943,_0x3ae11d){return _0x2e2943+_0x3ae11d;},'VTfAO':function(_0x193c9e,_0x56e7e6){return _0x193c9e+_0x56e7e6;}};let _0x46f594=0x0;const _0x19975c=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x49b09f=_0x20e0a6[_0x20f77f(0x1f7)](_0x19975c);if(_0x5ca87e[_0x20f77f(0x20b)](_0x49b09f,-0x1))return 0x0;while(_0x49b09f<_0x20e0a6[_0x20f77f(0x209)]){const [_0x114f67,_0x22ca1c]=_0x5ca87e[_0x20f77f(0x211)](readId,_0x20e0a6,_0x49b09f);if(_0x114f67!==ID_CLUSTER)break;const [_0x90c077,_0x4d5434]=_0x5ca87e['ipQpb'](readVint,_0x20e0a6,_0x5ca87e['MjnIZ'](_0x49b09f,_0x22ca1c)),_0xb07c21=_0x49b09f+_0x22ca1c+_0x4d5434,_0x3e5fad=isUnknownSize(_0x90c077,_0x4d5434);let _0x3a1cfd;if(_0x3e5fad){let _0x49ad76=_0xb07c21;while(_0x49ad76<_0x20e0a6[_0x20f77f(0x209)]-0x4){const [_0x1341b0,_0x5bbfb2]=readId(_0x20e0a6,_0x49ad76);if(_0x5ca87e[_0x20f77f(0x219)](_0x1341b0,ID_CLUSTER)){_0x3a1cfd=_0x49ad76;break;}const [_0x4e2de3,_0x1978f5]=_0x5ca87e[_0x20f77f(0x1ee)](readVint,_0x20e0a6,_0x5ca87e[_0x20f77f(0x1eb)](_0x49ad76,_0x5bbfb2));if(_0x5ca87e['KrVpj'](isUnknownSize,_0x4e2de3,_0x1978f5)){_0x3a1cfd=_0x20e0a6[_0x20f77f(0x209)];break;}_0x49ad76+=_0x5bbfb2+_0x1978f5+_0x4e2de3;}_0x3a1cfd??=_0x20e0a6[_0x20f77f(0x209)];}else _0x3a1cfd=_0x5ca87e['MjnIZ'](_0xb07c21,_0x90c077);let _0x4f1a4b=0x0,_0x4c4db7=_0xb07c21;while(_0x5ca87e[_0x20f77f(0x221)](_0x4c4db7,_0x3a1cfd)){const [_0x1a282f,_0x4032ec]=readId(_0x20e0a6,_0x4c4db7),[_0x371f01,_0x513191]=readVint(_0x20e0a6,_0x5ca87e[_0x20f77f(0x214)](_0x4c4db7,_0x4032ec));if(_0x5ca87e[_0x20f77f(0x20b)](_0x1a282f,ID_TIMESTAMP))_0x4f1a4b=_0x5ca87e['iwueT'](readUint,_0x20e0a6,_0x4c4db7+_0x4032ec+_0x513191,_0x371f01);else{if(_0x5ca87e[_0x20f77f(0x219)](_0x1a282f,ID_SIMPLE_BLOCK)&&_0x5ca87e[_0x20f77f(0x230)](_0x371f01,0x4)){const _0x2dd478=_0x4c4db7+_0x4032ec+_0x513191,[,_0xd72764]=readVint(_0x20e0a6,_0x2dd478),_0x5e652e=_0x20e0a6['readInt16BE'](_0x5ca87e['lAVIy'](_0x2dd478,_0xd72764)),_0x439f6b=_0x5ca87e[_0x20f77f(0x21e)](_0x5ca87e['DvBTr'](_0x4f1a4b,_0x5e652e)*_0x36a2a7,0xf4240);_0x439f6b>_0x46f594&&(_0x46f594=_0x439f6b);}else{if(_0x1a282f===ID_CLUSTER)break;}}if(_0x5ca87e['rQOeL'](isUnknownSize,_0x371f01,_0x513191))break;_0x4c4db7+=_0x5ca87e[_0x20f77f(0x1f0)](_0x4032ec+_0x513191,_0x371f01);}_0x49b09f=_0x3a1cfd;}return _0x46f594;}export function fixWebmDuration(_0x2e040c,_0x3a94ba){const _0x493aeb=_0x30aa,_0x2e355b={'voQYk':function(_0x2f87a6,_0x1e9191){return _0x2f87a6(_0x1e9191);},'QkxwR':function(_0x59967c,_0x1f0406,_0x180c19){return _0x59967c(_0x1f0406,_0x180c19);},'hCfAJ':function(_0x2cdea1,_0x1ee29e){return _0x2cdea1+_0x1ee29e;},'AWDzA':function(_0x1d390b,_0x3ff8a4){return _0x1d390b+_0x3ff8a4;},'jxjfE':function(_0x4b0d94,_0x43d2b9){return _0x4b0d94!==_0x43d2b9;},'kRzfU':function(_0x15011e,_0x3e388b,_0x1e96e5){return _0x15011e(_0x3e388b,_0x1e96e5);},'jovsI':function(_0x3e6186,_0x339577){return _0x3e6186+_0x339577;},'vsBHu':function(_0x50d028,_0xe30842,_0x3e2803){return _0x50d028(_0xe30842,_0x3e2803);},'zRqks':function(_0xfcb9ad,_0x126af0){return _0xfcb9ad===_0x126af0;},'aQytR':function(_0x43180c,_0x4a61ab){return _0x43180c+_0x4a61ab;},'OaEvB':function(_0x4de870,_0x52f1ac,_0x38c4ec,_0x1bfa4a,_0x4023e7){return _0x4de870(_0x52f1ac,_0x38c4ec,_0x1bfa4a,_0x4023e7);},'xWGXD':function(_0x34d400,_0x168ce9,_0x53eb6d,_0x26f477){return _0x34d400(_0x168ce9,_0x53eb6d,_0x26f477);},'BtaYH':function(_0x9a9f9b,_0x1cced1){return _0x9a9f9b(_0x1cced1);},'iTnLv':function(_0xa8895e,_0x5ce983){return _0xa8895e(_0x5ce983);},'RhfOA':function(_0x55b429,_0x286b2f){return _0x55b429<_0x286b2f;},'AUARS':function(_0x23e530,_0x5d5a46){return _0x23e530-_0x5d5a46;},'fzmDX':function(_0x417ece,_0x146481){return _0x417ece<_0x146481;},'NQLcA':function(_0x536d8c,_0x39616e,_0x5b80c,_0x39c6ef,_0x10a044,_0x3ef9a8,_0x16630a){return _0x536d8c(_0x39616e,_0x5b80c,_0x39c6ef,_0x10a044,_0x3ef9a8,_0x16630a);},'QdvkR':function(_0x5dc693,_0x5bb4fc){return _0x5dc693+_0x5bb4fc;},'lQwQd':function(_0x3aba65,_0x423c58,_0x1e5164,_0x2876fa,_0x24a738,_0x1ef6f7,_0xe371d4){return _0x3aba65(_0x423c58,_0x1e5164,_0x2876fa,_0x24a738,_0x1ef6f7,_0xe371d4);}},_0x138bff=_0x2e355b['voQYk'](readFileSync,_0x2e040c);let _0x405246=0x0;const [_0x24a512,_0x4e4ef9]=_0x2e355b[_0x493aeb(0x22c)](readId,_0x138bff,_0x405246),[_0x2b8e34,_0x3501f5]=readVint(_0x138bff,_0x2e355b[_0x493aeb(0x22b)](_0x405246,_0x4e4ef9));_0x405246+=_0x2e355b[_0x493aeb(0x1ec)](_0x2e355b['hCfAJ'](_0x4e4ef9,_0x3501f5),_0x2b8e34);const [_0x226442,_0x542693]=readId(_0x138bff,_0x405246);if(_0x2e355b[_0x493aeb(0x1fa)](_0x226442,ID_SEGMENT))return console[_0x493aeb(0x223)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x113dce]=_0x2e355b[_0x493aeb(0x21f)](readVint,_0x138bff,_0x2e355b[_0x493aeb(0x22b)](_0x405246,_0x542693)),_0x434b6d=_0x2e355b['hCfAJ'](_0x2e355b[_0x493aeb(0x1f4)](_0x405246,_0x542693),_0x113dce);let _0x22fa66=_0x434b6d;const _0x202a26=Math['min'](_0x138bff['length'],_0x2e355b[_0x493aeb(0x1ec)](_0x434b6d,0x2710));let _0x2396fd=null,_0x39cc4c=null;while(_0x22fa66<_0x202a26){const [_0x313a35,_0x414603]=readId(_0x138bff,_0x22fa66),[_0x23bc03,_0x4cb177]=_0x2e355b['vsBHu'](readVint,_0x138bff,_0x2e355b[_0x493aeb(0x1ec)](_0x22fa66,_0x414603));_0x2e355b[_0x493aeb(0x1f6)](_0x313a35,ID_VOID)&&!_0x2396fd&&(_0x2396fd={'offset':_0x22fa66,'idLen':_0x414603,'sizeLen':_0x4cb177,'dataSize':_0x23bc03,'dataOffset':_0x2e355b['hCfAJ'](_0x22fa66+_0x414603,_0x4cb177)});if(_0x2e355b['zRqks'](_0x313a35,ID_INFO)){_0x39cc4c={'offset':_0x22fa66,'idLen':_0x414603,'sizeLen':_0x4cb177,'dataSize':_0x23bc03,'dataOffset':_0x22fa66+_0x414603+_0x4cb177};break;}if(_0x313a35===ID_CLUSTER)break;if(_0x2e355b['QkxwR'](isUnknownSize,_0x23bc03,_0x4cb177))break;_0x22fa66+=_0x2e355b[_0x493aeb(0x1ec)](_0x2e355b['aQytR'](_0x414603,_0x4cb177),_0x23bc03);}if(!_0x39cc4c)return console[_0x493aeb(0x223)](_0x493aeb(0x21c)),![];const _0x3f7538=findElement(_0x138bff,_0x39cc4c['dataOffset'],_0x39cc4c['dataOffset']+_0x39cc4c[_0x493aeb(0x207)],ID_DURATION);if(_0x3f7538)return![];const _0x54a3ef=_0x2e355b['OaEvB'](findElement,_0x138bff,_0x39cc4c[_0x493aeb(0x1f1)],_0x39cc4c[_0x493aeb(0x1f1)]+_0x39cc4c['dataSize'],ID_TIMESTAMP_SCALE);let _0x2d8463=0xf4240;_0x54a3ef&&(_0x2d8463=_0x2e355b[_0x493aeb(0x227)](readUint,_0x138bff,_0x54a3ef['dataOffset'],_0x54a3ef[_0x493aeb(0x207)]));const _0x21bd81=computeDurationMs(_0x138bff,_0x2d8463);if(_0x21bd81<=0x0)return console[_0x493aeb(0x223)]('Could\x20not\x20compute\x20duration'),![];const _0x44f71c=_0x21bd81*0xf4240/_0x2d8463,_0x2279ed=Buffer['concat']([writeId(ID_DURATION),_0x2e355b[_0x493aeb(0x1ff)](writeVint,0x8),_0x2e355b[_0x493aeb(0x231)](writeFloat64,_0x44f71c)]),_0x506ec2=_0x2279ed[_0x493aeb(0x209)];if(!_0x2396fd||_0x2e355b['RhfOA'](_0x2396fd['offset'],_0x39cc4c[_0x493aeb(0x22e)])){if(_0x2396fd){const _0x22a0c8=_0x2396fd['idLen']+_0x2396fd[_0x493aeb(0x21d)]+_0x2396fd['dataSize'],_0x4f9d5a=_0x2e355b['AUARS'](_0x22a0c8,_0x506ec2);if(_0x2e355b[_0x493aeb(0x21b)](_0x4f9d5a,0x2))return _0x2e355b[_0x493aeb(0x1fb)](rewriteFile,_0x138bff,_0x39cc4c,_0x2279ed,_0x2d8463,_0x21bd81,_0x3a94ba);const _0x26043a=_0x39cc4c[_0x493aeb(0x207)]+_0x506ec2,_0x1a0638=Buffer[_0x493aeb(0x1ef)]([writeId(ID_INFO),_0x2e355b[_0x493aeb(0x22c)](writeVint,_0x26043a,_0x39cc4c[_0x493aeb(0x21d)])]),_0x4ea6b0=_0x138bff[_0x493aeb(0x210)](_0x39cc4c['dataOffset'],_0x2e355b['QdvkR'](_0x39cc4c[_0x493aeb(0x1f1)],_0x39cc4c[_0x493aeb(0x207)])),_0x1907b5=_0x2e355b[_0x493aeb(0x1ff)](writeVoid,_0x4f9d5a),_0x14f6b6=_0x138bff['slice'](0x0,_0x2396fd[_0x493aeb(0x22e)]),_0x2a4f36=_0x138bff[_0x493aeb(0x210)](_0x2e355b[_0x493aeb(0x1ed)](_0x39cc4c['dataOffset'],_0x39cc4c[_0x493aeb(0x207)]));return writeFileSync(_0x3a94ba,Buffer['concat']([_0x14f6b6,_0x1907b5,_0x1a0638,_0x4ea6b0,_0x2279ed,_0x2a4f36])),!![];}}return _0x2e355b['lQwQd'](rewriteFile,_0x138bff,_0x39cc4c,_0x2279ed,_0x2d8463,_0x21bd81,_0x3a94ba);}function rewriteFile(_0x191c4a,_0x219926,_0x286086,_0x427efd,_0x282852,_0x51b16f){const _0x2aebd2=_0x30aa,_0x449c3d={'RmLgp':function(_0x40423e,_0x3485b0){return _0x40423e+_0x3485b0;},'uYORv':function(_0x26825a,_0x35a305){return _0x26825a(_0x35a305);},'vMlZY':function(_0x116564,_0x238df1){return _0x116564+_0x238df1;},'yGOAC':function(_0x318163,_0x340a84,_0x5e4db9){return _0x318163(_0x340a84,_0x5e4db9);}},_0x129b8b=_0x449c3d['RmLgp'](_0x219926['dataSize'],_0x286086[_0x2aebd2(0x209)]),_0x48d7d3=Buffer['concat']([_0x449c3d['uYORv'](writeId,ID_INFO),_0x449c3d[_0x2aebd2(0x20f)](writeVint,_0x129b8b)]),_0x3e7f71=_0x219926['idLen']+_0x219926[_0x2aebd2(0x21d)],_0x574d7a=_0x191c4a['slice'](0x0,_0x219926[_0x2aebd2(0x22e)]),_0x993841=_0x191c4a['slice'](_0x219926[_0x2aebd2(0x1f1)],_0x449c3d['vMlZY'](_0x219926['dataOffset'],_0x219926[_0x2aebd2(0x207)])),_0x5e17be=_0x191c4a['slice'](_0x219926['offset']+_0x3e7f71+_0x219926['dataSize']);return _0x449c3d[_0x2aebd2(0x1f8)](writeFileSync,_0x51b16f,Buffer[_0x2aebd2(0x1ef)]([_0x574d7a,_0x48d7d3,_0x993841,_0x286086,_0x5e17be])),!![];}function _0x30aa(_0x1aa4fe,_0x295332){_0x1aa4fe=_0x1aa4fe-0x1eb;const _0x1ec9a4=_0x1ec9();let _0x30aa2f=_0x1ec9a4[_0x1aa4fe];return _0x30aa2f;}if(process[_0x25be8f(0x21a)][0x1]?.[_0x25be8f(0x202)](_0x25be8f(0x226))||process[_0x25be8f(0x21a)][0x1]?.[_0x25be8f(0x202)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x25be8f(0x223)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x25be8f(0x215)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d8023,_0x465ffc){const _0x3e05bc=_0x46e5,_0x3bdac4=_0x1d8023();while(!![]){try{const _0xbd17bd=parseInt(_0x3e05bc(0x1cc))/0x1+-parseInt(_0x3e05bc(0x1c7))/0x2+parseInt(_0x3e05bc(0x1cf))/0x3+parseInt(_0x3e05bc(0x1c8))/0x4*(-parseInt(_0x3e05bc(0x1c6))/0x5)+parseInt(_0x3e05bc(0x1ca))/0x6*(parseInt(_0x3e05bc(0x1d0))/0x7)+-parseInt(_0x3e05bc(0x1c5))/0x8*(parseInt(_0x3e05bc(0x1c4))/0x9)+parseInt(_0x3e05bc(0x1d1))/0xa;if(_0xbd17bd===_0x465ffc)break;else _0x3bdac4['push'](_0x3bdac4['shift']());}catch(_0x3129ff){_0x3bdac4['push'](_0x3bdac4['shift']());}}}(_0x5bee,0xac617));import{execSync}from'child_process';export function getGitBranch(){const _0x1fd1b0=_0x46e5,_0x25094f={'PPkCa':function(_0x5b083f,_0x363139,_0x5567a1){return _0x5b083f(_0x363139,_0x5567a1);},'UgCzH':_0x1fd1b0(0x1c3)};try{return _0x25094f['PPkCa'](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':'utf-8','stdio':[_0x25094f[_0x1fd1b0(0x1d3)],_0x25094f['UgCzH'],_0x25094f['UgCzH']]})[_0x1fd1b0(0x1d2)]();}catch{return undefined;}}function _0x46e5(_0x586c00,_0x3602eb){_0x586c00=_0x586c00-0x1c2;const _0x5bee75=_0x5bee();let _0x46e586=_0x5bee75[_0x586c00];return _0x46e586;}export function getGitRepoUrl(){const _0x312fd5=_0x46e5,_0x5a3ce4={'Fqnyn':_0x312fd5(0x1cd),'ERhGA':_0x312fd5(0x1c9)};try{const _0x4d83fa=execSync(_0x5a3ce4['Fqnyn'],{'encoding':_0x5a3ce4['ERhGA'],'stdio':['pipe','pipe',_0x312fd5(0x1c3)]})['trim']();return _0x4d83fa[_0x312fd5(0x1c2)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x312fd5(0x1ce))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function _0x5bee(){const _0x2d5754=['git\x20remote\x20get-url\x20origin','github.com/','2721555sAqKdE','1681127NsWuSX','12055160SGItQt','trim','UgCzH','replace','pipe','111753oKSojZ','184IhyUvS','64895HVlSBS','2390516WckSIB','344NRLpJC','utf-8','24xkIGsZ','wIYPS','229769zumFsl'];_0x5bee=function(){return _0x2d5754;};return _0x5bee();}export function getGitInfo(){const _0x40fc25=_0x46e5,_0x32a770={'wIYPS':function(_0x41a7a3){return _0x41a7a3();}};return{'branch':_0x32a770[_0x40fc25(0x1cb)](getGitBranch),'repoUrl':getGitRepoUrl()};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x147c7a=_0x10c7;(function(_0x4846f6,_0x43e62e){const _0x5c824a=_0x10c7,_0x3daa1b=_0x4846f6();while(!![]){try{const _0x3ff5f6=-parseInt(_0x5c824a(0x160))/0x1+-parseInt(_0x5c824a(0x170))/0x2+parseInt(_0x5c824a(0x15e))/0x3+parseInt(_0x5c824a(0x182))/0x4*(-parseInt(_0x5c824a(0x174))/0x5)+parseInt(_0x5c824a(0x16a))/0x6+-parseInt(_0x5c824a(0x180))/0x7*(parseInt(_0x5c824a(0x15a))/0x8)+-parseInt(_0x5c824a(0x177))/0x9*(-parseInt(_0x5c824a(0x178))/0xa);if(_0x3ff5f6===_0x43e62e)break;else _0x3daa1b['push'](_0x3daa1b['shift']());}catch(_0x419ffb){_0x3daa1b['push'](_0x3daa1b['shift']());}}}(_0x2f71,0xe4618));function _0x2f71(){const _0x1a91e6=['nZKXn2viBu5eqq','DhjPBq','mta5mdqXmKHuu21Xva','CMvMCMvZAc50Ehq','sK1PEui','zwTKCgy','nZq2ngvpEM1MAq','uKn6C0m','BMTAqxa','kcGOlISPkYKRksSK','nde5mZuYnNfJuwXTvG','r0Lusfvcx0vovG','mJmZmdiXBMvevxnQ','yxbWBhK','CuL0Ewm','y3L4y1K','Dg9tDhjPBMC','DuL4B3m','zLj3z1q','tg9lzxy','C2PVvfG','B1LTEvu','nZGXnty1ngjJtfjYqq','B0LQuwm','AurmzLm','B1fpuMe','uKfor0vsx01duf9ut0TftG','wKLsze4','mJGXotG5mLn4sM9mtq','rwThsLO','zw52','vM9TuNG','mJv1ugnNvg8','q1DZr1y','C2vHCMnO','mtCXourlCuf6uq','mtiWmJiWC1r2tgfw','CKTRyKq','y29UC3rYDwn0B3i','EvnVzNy','wNHnEfa','wxj5rKC','DxrMltG','wNb4uhK'];_0x2f71=function(){return _0x1a91e6;};return _0x2f71();}const _0x358dfe=(function(){const _0x40ce71=_0x10c7,_0x325511={'hUFHR':_0x40ce71(0x17b)};let _0x892e0c=!![];return function(_0x3f9932,_0x309862){if(_0x325511['hUFHR']===_0x325511['hUFHR']){const _0x110b3c=_0x892e0c?function(){const _0x50ab78=_0x10c7;if(_0x309862){const _0x5298c6=_0x309862[_0x50ab78(0x161)](_0x3f9932,arguments);return _0x309862=null,_0x5298c6;}}:function(){};return _0x892e0c=![],_0x110b3c;}else return _0x408275['env'][_0x4ef9f0];};}()),_0x457cb9=_0x358dfe(this,function(){const _0x4f2e50=_0x10c7,_0x95ab01={'oQORa':_0x4f2e50(0x15d)};return _0x457cb9['toString']()[_0x4f2e50(0x176)](_0x95ab01['oQORa'])[_0x4f2e50(0x164)]()[_0x4f2e50(0x17a)](_0x457cb9)[_0x4f2e50(0x176)](_0x95ab01[_0x4f2e50(0x16d)]);});_0x457cb9();function _0x10c7(_0x6e072f,_0x21507f){_0x6e072f=_0x6e072f-0x158;const _0x1f43e6=_0x2f71();let _0x457cb9=_0x1f43e6[_0x6e072f];if(_0x10c7['EiLaNV']===undefined){var _0x358dfe=function(_0x4e9b78){const _0x5800a6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f36b7='',_0xf2143b='',_0x38b60f=_0x1f36b7+_0x358dfe;for(let _0x2cdc8b=0x0,_0x233492,_0x4239b1,_0x519fdb=0x0;_0x4239b1=_0x4e9b78['charAt'](_0x519fdb++);~_0x4239b1&&(_0x233492=_0x2cdc8b%0x4?_0x233492*0x40+_0x4239b1:_0x4239b1,_0x2cdc8b++%0x4)?_0x1f36b7+=_0x38b60f['charCodeAt'](_0x519fdb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x233492>>(-0x2*_0x2cdc8b&0x6)):_0x2cdc8b:0x0){_0x4239b1=_0x5800a6['indexOf'](_0x4239b1);}for(let _0x2926bf=0x0,_0x28b568=_0x1f36b7['length'];_0x2926bf<_0x28b568;_0x2926bf++){_0xf2143b+='%'+('00'+_0x1f36b7['charCodeAt'](_0x2926bf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xf2143b);};_0x10c7['gkGZdM']=_0x358dfe,_0x10c7['pNTaqT']={},_0x10c7['EiLaNV']=!![];}const _0x2f714d=_0x1f43e6[0x0],_0x10c756=_0x6e072f+_0x2f714d,_0x18f90c=_0x10c7['pNTaqT'][_0x10c756];if(!_0x18f90c){const _0x51ef12=function(_0x36ddda){this['UyaDnb']=_0x36ddda,this['jZAhNM']=[0x1,0x0,0x0],this['dvTZOj']=function(){return'newState';},this['jTrDcY']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['BuEUZp']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x51ef12['prototype']['xnJQuj']=function(){const _0x555a25=new RegExp(this['jTrDcY']+this['BuEUZp']),_0x2f8731=_0x555a25['test'](this['dvTZOj']['toString']())?--this['jZAhNM'][0x1]:--this['jZAhNM'][0x0];return this['brqEYU'](_0x2f8731);},_0x51ef12['prototype']['brqEYU']=function(_0x57589f){if(!Boolean(~_0x57589f))return _0x57589f;return this['qVkNRA'](this['UyaDnb']);},_0x51ef12['prototype']['qVkNRA']=function(_0x5a9576){for(let _0x20cd9a=0x0,_0x116649=this['jZAhNM']['length'];_0x20cd9a<_0x116649;_0x20cd9a++){this['jZAhNM']['push'](Math['round'](Math['random']())),_0x116649=this['jZAhNM']['length'];}return _0x5a9576(this['jZAhNM'][0x0]);},new _0x51ef12(_0x10c7)['xnJQuj'](),_0x457cb9=_0x10c7['gkGZdM'](_0x457cb9),_0x10c7['pNTaqT'][_0x10c756]=_0x457cb9;}else _0x457cb9=_0x18f90c;return _0x457cb9;}import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x147c7a(0x16e),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x147c7a(0x183));function isGitHubCI(){const _0x2e0255=_0x147c7a;return!!process['env'][_0x2e0255(0x15f)];}async function writeToGitHubEnv(_0x3473a4,_0x6dc078){const _0x4ebe65=_0x147c7a,_0x1bdd97=process[_0x4ebe65(0x172)]['GITHUB_ENV'];_0x1bdd97&&await appendFile(_0x1bdd97,_0x3473a4+'='+_0x6dc078+'\x0a');}export async function storeToken(_0x35b657){const _0x357ace=_0x147c7a,_0x3f71a9={'fRwgT':function(_0x2edd7e){return _0x2edd7e();},'uUCwM':function(_0x42ad2b,_0x1e0636,_0x26f55c){return _0x42ad2b(_0x1e0636,_0x26f55c);},'wvafO':function(_0x5dd0c5,_0x1611d0){return _0x5dd0c5===_0x1611d0;},'nkZAp':_0x357ace(0x168),'cyxcY':function(_0x4ee255,_0x43fce0,_0x59182c,_0x59b871){return _0x4ee255(_0x43fce0,_0x59182c,_0x59b871);}};if(_0x3f71a9[_0x357ace(0x166)](isGitHubCI))await _0x3f71a9['uUCwM'](writeToGitHubEnv,ENV_TOKEN,_0x35b657);else{if(_0x3f71a9['wvafO'](_0x3f71a9[_0x357ace(0x15c)],'sjoTX'))await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x3f71a9[_0x357ace(0x163)](writeFile,TOKEN_PATH,_0x35b657,{'mode':0x180});else return![];}}export async function getToken(){const _0x3c3b65=_0x147c7a,_0x7945eb={'wZYWT':function(_0x5c7360,_0xe1c5c6){return _0x5c7360!==_0xe1c5c6;},'ekdpf':_0x3c3b65(0x16f),'YryFG':_0x3c3b65(0x162),'ZpxPy':function(_0x580e91,_0x2e94d3,_0xe99b4a){return _0x580e91(_0x2e94d3,_0xe99b4a);},'CWsGV':function(_0x2b722a,_0xf3e4c5){return _0x2b722a===_0xf3e4c5;},'LoKev':_0x3c3b65(0x16c)};if(process['env'][ENV_TOKEN])return _0x7945eb['wZYWT']('SSDhi',_0x7945eb[_0x3c3b65(0x159)])?process[_0x3c3b65(0x172)][ENV_TOKEN]:![];if(process[_0x3c3b65(0x172)][ENV_TOKEN_LEGACY])return process[_0x3c3b65(0x172)][ENV_TOKEN_LEGACY];try{if(_0x3c3b65(0x165)!==_0x7945eb[_0x3c3b65(0x17d)]){const _0x3eb9c3=await _0x7945eb[_0x3c3b65(0x17f)](readFile,TOKEN_PATH,_0x3c3b65(0x17e));return _0x3eb9c3['trim']()||null;}else return null;}catch{return _0x7945eb[_0x3c3b65(0x175)](_0x7945eb[_0x3c3b65(0x167)],_0x7945eb[_0x3c3b65(0x167)])?null:null;}}export async function deleteToken(){const _0x5c32de={'uYXSD':function(_0x32b141,_0x941b42){return _0x32b141(_0x941b42);}};try{return await _0x5c32de['uYXSD'](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x5b668e){const _0x330551=_0x147c7a,_0x19d94d={'JMiyB':function(_0x44d75d,_0x59b5fa,_0x55dec2){return _0x44d75d(_0x59b5fa,_0x55dec2);},'IWMto':function(_0x359ca7,_0x38e366,_0x543c9a,_0x46ec62){return _0x359ca7(_0x38e366,_0x543c9a,_0x46ec62);}};await _0x19d94d[_0x330551(0x158)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x19d94d['IWMto'](writeFile,REFRESH_TOKEN_PATH,_0x5b668e,{'mode':0x180});}export async function getRefreshToken(){const _0x346316=_0x147c7a,_0x10638c={'VomRx':function(_0x212473,_0x30cbe6,_0x45759d){return _0x212473(_0x30cbe6,_0x45759d);}};try{const _0x27ac3a=await _0x10638c[_0x346316(0x173)](readFile,REFRESH_TOKEN_PATH,'utf-8');return _0x27ac3a[_0x346316(0x181)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x80c563=_0x147c7a,_0x3aa3e4={'EkGJZ':function(_0x8113bd,_0x1f304e){return _0x8113bd===_0x1f304e;},'oYmyU':_0x80c563(0x16b),'bJUJw':function(_0x45403f,_0x1b93c4){return _0x45403f(_0x1b93c4);},'rKkbD':_0x80c563(0x17c)};try{if(_0x3aa3e4[_0x80c563(0x171)](_0x3aa3e4[_0x80c563(0x169)],_0x3aa3e4['oYmyU']))return await _0x3aa3e4['bJUJw'](unlink,REFRESH_TOKEN_PATH),!![];else{if(_0xb705db){const _0xf603c0=_0x24aa3e['apply'](_0x57dd77,arguments);return _0x596114=null,_0xf603c0;}}}catch{if(_0x3aa3e4[_0x80c563(0x171)](_0x3aa3e4[_0x80c563(0x179)],_0x80c563(0x15b))){const _0xdd02a6=_0x51ef12?function(){const _0x5ad3c=_0x80c563;if(_0x20cd9a){const _0x4e14ed=_0x415f7f[_0x5ad3c(0x161)](_0x5e183e,arguments);return _0x3050b4=null,_0x4e14ed;}}:function(){};return _0x5a9576=![],_0xdd02a6;}else return![];}}export async function deleteAllCredentials(){const _0x103610={'GLpcJ':function(_0x1e81f0){return _0x1e81f0();}};await deleteToken(),await _0x103610['GLpcJ'](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4dad(){const _0x34c07e=['Dgv4Da','CNHxDue','yK1gq3G','z3rnEe8','Dg9tDhjPBMC','vNHUEMO','mte5ndaWour3yMzXuq','mta0mtiXntbhsKHmEu8','nZm2mdi2nLHRy2D4Ba','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','CuTQEeO','vgvLrK4','zxjYB3i','qMvHCMvYia','C3rYAw5NAwz5','kcGOlISPkYKRksSK','AerQBwe','v2nwDMi','mtqXota2mdHPwM1vtu0','C2vHCMnO','owDYyKrVCa','mtb2A1bQBvi','mJaWoduYneXVvKDMvG','mta2odyXm2LOyNbzyq','zuj6rui','wg1lsgu','mJe1nZuWnvLoBujrsq','nK1gqKLLCq','yxbWBhK','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','BxjtEvC','EgfXq3C','y29UC3rYDwn0B3i'];_0x4dad=function(){return _0x34c07e;};return _0x4dad();}(function(_0x357c29,_0x17d57f){const _0x2ab04c=_0xa5e2,_0x24768e=_0x357c29();while(!![]){try{const _0x597e26=-parseInt(_0x2ab04c(0x123))/0x1+-parseInt(_0x2ab04c(0x127))/0x2*(-parseInt(_0x2ab04c(0x133))/0x3)+parseInt(_0x2ab04c(0x122))/0x4*(parseInt(_0x2ab04c(0x121))/0x5)+-parseInt(_0x2ab04c(0x135))/0x6+parseInt(_0x2ab04c(0x126))/0x7+parseInt(_0x2ab04c(0x11e))/0x8+parseInt(_0x2ab04c(0x120))/0x9*(-parseInt(_0x2ab04c(0x134))/0xa);if(_0x597e26===_0x17d57f)break;else _0x24768e['push'](_0x24768e['shift']());}catch(_0x4ac5b9){_0x24768e['push'](_0x24768e['shift']());}}}(_0x4dad,0xe669d));const _0x3892db=(function(){const _0x1596e1=_0xa5e2,_0x3a19b6={'WcVvb':function(_0x1ed8c6,_0x4e0cd8){return _0x1ed8c6!==_0x4e0cd8;},'bMFCx':_0x1596e1(0x12e),'eBzEB':_0x1596e1(0x12a)};let _0x30b792=!![];return function(_0x42ce4c,_0x24d600){const _0x305224=_0x1596e1,_0x33bf8d={'XmKHe':function(_0x4add9b,_0x59bb69){const _0x22d5c4=_0xa5e2;return _0x3a19b6[_0x22d5c4(0x11d)](_0x4add9b,_0x59bb69);},'TeeFN':_0x3a19b6[_0x305224(0x12f)],'hDjma':_0x3a19b6[_0x305224(0x124)],'gtMxO':'oSPwF'},_0x4237b6=_0x30b792?function(){const _0x3bc571=_0x305224;if(_0x33bf8d[_0x3bc571(0x125)](_0x33bf8d[_0x3bc571(0x117)],_0x33bf8d[_0x3bc571(0x117)])){const _0x4eab84=_0x4bcc3d?function(){const _0x30964e=_0x3bc571;if(_0x6d9bfd){const _0x27771d=_0x36ca4e[_0x30964e(0x128)](_0xcce764,arguments);return _0x22bcee=null,_0x27771d;}}:function(){};return _0x46854b=![],_0x4eab84;}else{if(_0x24d600){if(_0x33bf8d[_0x3bc571(0x125)](_0x33bf8d[_0x3bc571(0x11c)],_0x33bf8d[_0x3bc571(0x130)])){const _0x164334=_0x24d600['apply'](_0x42ce4c,arguments);return _0x24d600=null,_0x164334;}else{if(_0x4edb5c){const _0x6a9c9b=_0x69c618[_0x3bc571(0x128)](_0x572db2,arguments);return _0x146e28=null,_0x6a9c9b;}}}}}:function(){};return _0x30b792=![],_0x4237b6;};}()),_0x12d05f=_0x3892db(this,function(){const _0x2187f6=_0xa5e2,_0x1906e0={'Vxnzj':_0x2187f6(0x11b)};return _0x12d05f['toString']()[_0x2187f6(0x11f)](_0x1906e0[_0x2187f6(0x132)])[_0x2187f6(0x131)]()[_0x2187f6(0x12c)](_0x12d05f)['search'](_0x2187f6(0x11b));});function _0xa5e2(_0x26ac05,_0x5be994){_0x26ac05=_0x26ac05-0x117;const _0x5b8bb7=_0x4dad();let _0x12d05f=_0x5b8bb7[_0x26ac05];if(_0xa5e2['AcMAHS']===undefined){var _0x3892db=function(_0x2faa85){const _0x446e52='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x175677='',_0x23e636='',_0x3170c6=_0x175677+_0x3892db;for(let _0x393f3a=0x0,_0x256c15,_0xf36220,_0x2d9240=0x0;_0xf36220=_0x2faa85['charAt'](_0x2d9240++);~_0xf36220&&(_0x256c15=_0x393f3a%0x4?_0x256c15*0x40+_0xf36220:_0xf36220,_0x393f3a++%0x4)?_0x175677+=_0x3170c6['charCodeAt'](_0x2d9240+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x256c15>>(-0x2*_0x393f3a&0x6)):_0x393f3a:0x0){_0xf36220=_0x446e52['indexOf'](_0xf36220);}for(let _0x3fd431=0x0,_0x300a4d=_0x175677['length'];_0x3fd431<_0x300a4d;_0x3fd431++){_0x23e636+='%'+('00'+_0x175677['charCodeAt'](_0x3fd431)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x23e636);};_0xa5e2['DGNuIo']=_0x3892db,_0xa5e2['XwOAUc']={},_0xa5e2['AcMAHS']=!![];}const _0x4dadc0=_0x5b8bb7[0x0],_0xa5e2bf=_0x26ac05+_0x4dadc0,_0x4f88f6=_0xa5e2['XwOAUc'][_0xa5e2bf];if(!_0x4f88f6){const _0x4bcc3d=function(_0x26fec6){this['ZItbts']=_0x26fec6,this['XESYpA']=[0x1,0x0,0x0],this['IOUVUc']=function(){return'newState';},this['POuhoO']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['MpEwHS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4bcc3d['prototype']['pztNqB']=function(){const _0x356ad3=new RegExp(this['POuhoO']+this['MpEwHS']),_0x3881bc=_0x356ad3['test'](this['IOUVUc']['toString']())?--this['XESYpA'][0x1]:--this['XESYpA'][0x0];return this['JzBOZx'](_0x3881bc);},_0x4bcc3d['prototype']['JzBOZx']=function(_0x53f335){if(!Boolean(~_0x53f335))return _0x53f335;return this['WtvbrU'](this['ZItbts']);},_0x4bcc3d['prototype']['WtvbrU']=function(_0x46854b){for(let _0x6d9bfd=0x0,_0x586ed4=this['XESYpA']['length'];_0x6d9bfd<_0x586ed4;_0x6d9bfd++){this['XESYpA']['push'](Math['round'](Math['random']())),_0x586ed4=this['XESYpA']['length'];}return _0x46854b(this['XESYpA'][0x0]);},new _0x4bcc3d(_0xa5e2)['pztNqB'](),_0x12d05f=_0xa5e2['DGNuIo'](_0x12d05f),_0xa5e2['XwOAUc'][_0xa5e2bf]=_0x12d05f;}else _0x12d05f=_0x4f88f6;return _0x12d05f;}_0x12d05f();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x13b14c,_0x4390f7,_0x51674f){const _0x4cb719=_0xa5e2,_0x3f08c1={'xaqCw':function(_0x188635){return _0x188635();},'qKjxJ':'application/json'},_0x2b0755=await getToken();if(!_0x2b0755)return;const _0x446ebe=_0x3f08c1[_0x4cb719(0x12b)](getApiBaseUrl),_0x208a43=await fetch(_0x446ebe+_0x4cb719(0x136),{'method':'POST','headers':{'Authorization':_0x4cb719(0x119)+_0x2b0755,'Content-Type':_0x3f08c1[_0x4cb719(0x137)]},'body':JSON[_0x4cb719(0x11a)]({'skillName':_0x13b14c,'cliVersion':_0x51674f,'metadata':_0x4390f7})});if(!_0x208a43['ok']){const _0x13845d=await _0x208a43[_0x4cb719(0x12d)]();console[_0x4cb719(0x118)](_0x4cb719(0x129)+_0x13845d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x538e8b,_0x2ee595){const _0x4d47b8=_0x1e27,_0x541340=_0x538e8b();while(!![]){try{const _0x2e73d8=parseInt(_0x4d47b8(0x19f))/0x1+parseInt(_0x4d47b8(0x192))/0x2*(-parseInt(_0x4d47b8(0x1a0))/0x3)+-parseInt(_0x4d47b8(0x1a6))/0x4+-parseInt(_0x4d47b8(0x19e))/0x5*(-parseInt(_0x4d47b8(0x1d2))/0x6)+-parseInt(_0x4d47b8(0x1af))/0x7+parseInt(_0x4d47b8(0x1b0))/0x8+-parseInt(_0x4d47b8(0x1bf))/0x9*(-parseInt(_0x4d47b8(0x190))/0xa);if(_0x2e73d8===_0x2ee595)break;else _0x541340['push'](_0x541340['shift']());}catch(_0x30bb4c){_0x541340['push'](_0x541340['shift']());}}}(_0x1bd3,0x26151));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function _0x1e27(_0x36a834,_0x4e9ccd){_0x36a834=_0x36a834-0x18e;const _0x1bd397=_0x1bd3();let _0x1e275a=_0x1bd397[_0x36a834];return _0x1e275a;}function isRecord(_0x54f989){const _0xa4522=_0x1e27,_0x182926={'PbgPU':_0xa4522(0x1ba),'enavd':function(_0x2d8dc8,_0x39b624){return _0x2d8dc8!==_0x39b624;}};return typeof _0x54f989===_0x182926[_0xa4522(0x19d)]&&_0x182926[_0xa4522(0x19b)](_0x54f989,null);}function isImageBlock(_0x4d90b5){const _0x1a2c08=_0x1e27,_0x499086={'EjWQN':function(_0x188fc2,_0x4884fb){return _0x188fc2===_0x4884fb;},'axrqt':_0x1a2c08(0x1bc)};return isRecord(_0x4d90b5)&&_0x499086['EjWQN'](_0x4d90b5['type'],_0x499086['axrqt']);}function isDataUrl(_0x731261){const _0x45b7a3=_0x1e27;return _0x731261[_0x45b7a3(0x1c6)](_0x45b7a3(0x1cc));}function _0x1bd3(){const _0x729ec6=['412340CMLeJu','89081gmJrTv','18xCJqxH','from','https://','arrayBuffer','JqYfj','JwQJZ','632112PXqmDc','unEab','trim','PostToolUse','headers','suSOj','IjWyi','get','vawTW','1031821jddceu','740032vagrTE','base64','Failed\x20to\x20fetch\x20image:\x20','image/jpeg','webp','data','AqNEN','OHeSe','content-type','NHYXZ','object','jpg','image','status','type','206523lctRAq','image/gif','Image\x20exceeds\x20size\x20limit\x20(','qXBER','image/png','hook_event_name','\x20bytes)','startsWith','image/webp','jpeg','source','timeout','QdAKl','data:','cAvDB','ZRspm','itwqj','zKnmG','file://','18TYDpKD','NrHnk','zuVQj','110txmAPe','toLowerCase','73330IztPxc','content-length','mimeType','izozB','map','AHmbx','toString','updated','all','enavd','WfTLy','PbgPU'];_0x1bd3=function(){return _0x729ec6;};return _0x1bd3();}function parseDataUrl(_0x381084){const _0x1a3248=_0x1e27,_0x264f6f=/^data:([^;]+);base64,(.+)$/['exec'](_0x381084);if(!_0x264f6f)return null;const _0x315d36=_0x264f6f[0x1][_0x1a3248(0x191)]();if(!isValidMediaType(_0x315d36))return null;return{'data':_0x264f6f[0x2],'mediaType':_0x315d36};}function isValidMediaType(_0x54e000){const _0x52fafe=_0x1e27,_0x119fb6={'OHeSe':_0x52fafe(0x1b3),'NrHnk':'image/gif','zuVQj':'image/webp'};return[_0x119fb6[_0x52fafe(0x1b7)],'image/png',_0x119fb6[_0x52fafe(0x18e)],_0x119fb6[_0x52fafe(0x18f)]]['includes'](_0x54e000);}function inferMediaType(_0x40f21a,_0x85429f){const _0x2157f3=_0x1e27,_0x351120={'cAvDB':function(_0x321c0f,_0x426fbc){return _0x321c0f(_0x426fbc);},'gCVRt':_0x2157f3(0x1bb),'VjiBr':_0x2157f3(0x1c8),'WXhQT':_0x2157f3(0x1b3),'YJIPS':'png','JwQJZ':_0x2157f3(0x1c3),'NHYXZ':'gif','AHmbx':_0x2157f3(0x1c0),'tnjaf':_0x2157f3(0x1b4),'ckqZc':_0x2157f3(0x1c7)};if(_0x40f21a){const _0x53ba64=_0x40f21a[_0x2157f3(0x191)]()['split'](';')[0x0][_0x2157f3(0x1a8)]();if(_0x351120[_0x2157f3(0x1cd)](isValidMediaType,_0x53ba64))return _0x53ba64;}const _0x1af463=extname(_0x85429f)[_0x2157f3(0x191)]()['replace']('.','');switch(_0x1af463){case _0x351120['gCVRt']:case _0x351120['VjiBr']:return _0x351120['WXhQT'];case _0x351120['YJIPS']:return _0x351120[_0x2157f3(0x1a5)];case _0x351120[_0x2157f3(0x1b9)]:return _0x351120[_0x2157f3(0x197)];case _0x351120['tnjaf']:return _0x351120['ckqZc'];default:return _0x351120[_0x2157f3(0x1a5)];}}async function readImageFromUrl(_0x1f102b){const _0x5c98c4=_0x1e27,_0x18fa9e={'QdAKl':function(_0x1ea263,_0x745785){return _0x1ea263(_0x745785);},'MxylI':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','unEab':_0x5c98c4(0x1d1),'qXBER':function(_0x505856,_0x5b5f46){return _0x505856>_0x5b5f46;},'ZJywd':function(_0x2e7b71,_0x3ecb8b){return _0x2e7b71(_0x3ecb8b);},'izozB':function(_0x335314,_0x157360,_0x545711){return _0x335314(_0x157360,_0x545711);},'AqNEN':_0x5c98c4(0x1a2),'itwqj':function(_0x491dcd,_0x2ac1b7,_0x5a908b){return _0x491dcd(_0x2ac1b7,_0x5a908b);},'ZRspm':function(_0x31a868,_0x40bf06){return _0x31a868(_0x40bf06);},'fIGnM':_0x5c98c4(0x1b1),'JqYfj':_0x5c98c4(0x1b8),'zKnmG':function(_0x56b1d0,_0x12a25c){return _0x56b1d0(_0x12a25c);}};if(_0x18fa9e[_0x5c98c4(0x1cb)](isDataUrl,_0x1f102b)){const _0x5581f3=_0x18fa9e['QdAKl'](parseDataUrl,_0x1f102b);if(_0x5581f3)return _0x5581f3;throw new Error(_0x18fa9e['MxylI']);}if(_0x1f102b[_0x5c98c4(0x1c6)](_0x18fa9e[_0x5c98c4(0x1a7)])){const _0x161878=fileURLToPath(_0x1f102b),_0x1c3481=await stat(_0x161878);if(_0x18fa9e[_0x5c98c4(0x1c2)](_0x1c3481['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x5c98c4(0x1c1)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x2d8e9d=await _0x18fa9e['ZJywd'](readFile,_0x161878);return{'data':_0x2d8e9d[_0x5c98c4(0x198)](_0x5c98c4(0x1b1)),'mediaType':_0x18fa9e[_0x5c98c4(0x195)](inferMediaType,null,_0x161878)};}if(_0x1f102b[_0x5c98c4(0x1c6)]('http://')||_0x1f102b['startsWith'](_0x18fa9e[_0x5c98c4(0x1b6)])){const _0x388fc8=await _0x18fa9e[_0x5c98c4(0x1cf)](fetch,_0x1f102b,{'signal':AbortSignal[_0x5c98c4(0x1ca)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x388fc8['ok'])throw new Error(_0x5c98c4(0x1b2)+_0x388fc8[_0x5c98c4(0x1bd)]);const _0x3e4901=_0x388fc8[_0x5c98c4(0x1aa)][_0x5c98c4(0x1ad)](_0x5c98c4(0x193));if(_0x3e4901){const _0x18933e=_0x18fa9e[_0x5c98c4(0x1ce)](Number,_0x3e4901);if(!Number['isNaN'](_0x18933e)&&_0x18933e>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x5c98c4(0x1c1)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x4a9d94=await _0x388fc8[_0x5c98c4(0x1a3)]();if(_0x18fa9e['qXBER'](_0x4a9d94['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x5c98c4(0x1c5));return{'data':Buffer[_0x5c98c4(0x1a1)](_0x4a9d94)['toString'](_0x18fa9e['fIGnM']),'mediaType':inferMediaType(_0x388fc8[_0x5c98c4(0x1aa)]['get'](_0x18fa9e[_0x5c98c4(0x1a4)]),_0x1f102b)};}const _0x480d87=await stat(_0x1f102b);if(_0x480d87['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xa8b690=await _0x18fa9e[_0x5c98c4(0x1d0)](readFile,_0x1f102b);return{'data':_0xa8b690['toString'](_0x5c98c4(0x1b1)),'mediaType':_0x18fa9e[_0x5c98c4(0x1cf)](inferMediaType,null,_0x1f102b)};}async function convertImageBlockToBase64(_0x2fde37){const _0x30b0f9=_0x1e27,_0x39759f={'WHYfk':function(_0x32ce40,_0x3213e1){return _0x32ce40===_0x3213e1;},'vawTW':_0x30b0f9(0x1b1),'WfTLy':function(_0x14032a,_0x38d77f){return _0x14032a(_0x38d77f);}};if(_0x39759f['WHYfk'](_0x2fde37[_0x30b0f9(0x1c9)]?.[_0x30b0f9(0x1be)],_0x39759f['vawTW']))return{'updated':![],'block':_0x2fde37};if(_0x2fde37['data']&&_0x2fde37[_0x30b0f9(0x194)])return{'updated':![],'block':_0x2fde37};const _0x1fbd58=_0x2fde37[_0x30b0f9(0x1c9)]?.['url']??_0x2fde37['url'];if(!_0x1fbd58)return{'updated':![],'block':_0x2fde37};const _0x33f70e=await _0x39759f[_0x30b0f9(0x19c)](readImageFromUrl,_0x1fbd58);return{'updated':!![],'block':{..._0x2fde37,'source':{'type':_0x39759f[_0x30b0f9(0x1ae)],'media_type':_0x33f70e['mediaType'],'data':_0x33f70e[_0x30b0f9(0x1b5)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x465228){const _0x420ee2=_0x1e27,_0x6f3e2d={'suSOj':function(_0x542323,_0x5d6fc0){return _0x542323(_0x5d6fc0);}};if(!_0x6f3e2d[_0x420ee2(0x1ab)](isRecord,_0x465228))return{'updated':![],'output':_0x465228};const _0x3ce787=_0x465228['content'];if(!Array['isArray'](_0x3ce787))return{'updated':![],'output':_0x465228};let _0x52c8a2=![];const _0x2e69b0=await Promise[_0x420ee2(0x19a)](_0x3ce787[_0x420ee2(0x196)](async _0x33a9c5=>{const _0x59e81a=_0x420ee2;if(!isImageBlock(_0x33a9c5))return _0x33a9c5;try{const _0x429468=await _0x6f3e2d[_0x59e81a(0x1ab)](convertImageBlockToBase64,_0x33a9c5);if(_0x429468[_0x59e81a(0x199)])_0x52c8a2=!![];return _0x429468['block'];}catch{return _0x33a9c5;}}));if(!_0x52c8a2)return{'updated':![],'output':_0x465228};return{'updated':!![],'output':{..._0x465228,'content':_0x2e69b0}};}export function createMcpImageBase64Hook(){const _0x4c3e30={'IjWyi':'PostToolUse'};return async _0x5da507=>{const _0xeeb057=_0x1e27;if(_0x5da507[_0xeeb057(0x1c4)]!==_0x4c3e30[_0xeeb057(0x1ac)])return{};const _0x3e785c=_0x5da507,{updated:_0x314ef5,output:_0x4165dc}=await convertToolOutputImagesToBase64(_0x3e785c['tool_response']);if(!_0x314ef5)return{};return{'hookSpecificOutput':{'hookEventName':_0xeeb057(0x1a9),'updatedMCPToolOutput':_0x4165dc}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x5c420b=_0x4bba;function _0x4bba(_0x4b8cfc,_0x1e0ee4){_0x4b8cfc=_0x4b8cfc-0xce;const _0x53c9dd=_0x53c9();let _0x4bbaaf=_0x53c9dd[_0x4b8cfc];return _0x4bbaaf;}(function(_0x5a9a23,_0xa2616e){const _0x5b8e8d=_0x4bba,_0xc639ba=_0x5a9a23();while(!![]){try{const _0x3c514f=parseInt(_0x5b8e8d(0xcf))/0x1+-parseInt(_0x5b8e8d(0xd6))/0x2+-parseInt(_0x5b8e8d(0xd2))/0x3+parseInt(_0x5b8e8d(0xd5))/0x4*(-parseInt(_0x5b8e8d(0xd3))/0x5)+parseInt(_0x5b8e8d(0xd0))/0x6*(-parseInt(_0x5b8e8d(0xd4))/0x7)+-parseInt(_0x5b8e8d(0xd8))/0x8*(-parseInt(_0x5b8e8d(0xd7))/0x9)+parseInt(_0x5b8e8d(0xce))/0xa;if(_0x3c514f===_0xa2616e)break;else _0xc639ba['push'](_0xc639ba['shift']());}catch(_0x3bd6c5){_0xc639ba['push'](_0xc639ba['shift']());}}}(_0x53c9,0xa5891));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL=_0x5c420b(0xd1);export function resolveVerifyModel(_0x2b0568){if(!_0x2b0568)return undefined;const _0x3257c6=_0x2b0568['trim']();if(!_0x3257c6)return undefined;const _0x277f35=VERIFY_MODEL_ALIASES[_0x3257c6['toLowerCase']()];return _0x277f35??_0x3257c6;}function _0x53c9(){const _0x128af2=['4ZxiiZG','2098670QbUPSz','2126457rXaROT','16rQWqWr','13187630EtlwBP','1225326pvYlqc','1108872tPwdLp','claude-opus-4-6','3184554ppnOwW','214685HyzNOQ','7qBCeVo'];_0x53c9=function(){return _0x128af2;};return _0x53c9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3866b7,_0x3ae4d3){var _0xb96b1f=_0x25b0,_0x260273=_0x3866b7();while(!![]){try{var _0x456a04=-parseInt(_0xb96b1f(0x13c))/0x1+-parseInt(_0xb96b1f(0x139))/0x2+-parseInt(_0xb96b1f(0x143))/0x3+parseInt(_0xb96b1f(0x134))/0x4*(parseInt(_0xb96b1f(0x138))/0x5)+-parseInt(_0xb96b1f(0x131))/0x6*(-parseInt(_0xb96b1f(0x145))/0x7)+-parseInt(_0xb96b1f(0x137))/0x8*(parseInt(_0xb96b1f(0x136))/0x9)+parseInt(_0xb96b1f(0x144))/0xa;if(_0x456a04===_0x3ae4d3)break;else _0x260273['push'](_0x260273['shift']());}catch(_0x560268){_0x260273['push'](_0x260273['shift']());}}}(_0x1a83,0x741fe));import{homedir}from'os';function _0x25b0(_0x1b639c,_0x11de7c){_0x1b639c=_0x1b639c-0x131;var _0x1a8376=_0x1a83();var _0x25b06e=_0x1a8376[_0x1b639c];return _0x25b06e;}import{join}from'path';function _0x1a83(){var _0x4f7aa6=['mthDc','.opencode','XDG_CONFIG_HOME','MjJCQ','1240122IhBHzQ','25190980VIUCIw','16779AmtSOz','264UkAsCw','GImCW','.config','112obonuJ','rUxbP','3282903wnwWSH','16jsowwz','13470AefiDn','1239672aixxKF','env','user','461608zuomBn','skills','NXiqJ'];_0x1a83=function(){return _0x4f7aa6;};return _0x1a83();}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0xbb1d04){var _0x596634=_0x25b0,_0x2631c4={'JpPLi':function(_0x4b548b,_0x4d9075){return _0x4b548b===_0x4d9075;},'rUxbP':_0x596634(0x13b),'NXiqJ':'opencode','MjJCQ':function(_0x4aa6fc){return _0x4aa6fc();},'GImCW':_0x596634(0x133),'dgKJP':_0x596634(0x140)};if(process[_0x596634(0x13a)]['OPENCODE_CONFIG_DIR'])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x2631c4['JpPLi'](_0xbb1d04,_0x2631c4[_0x596634(0x135)])){if(process[_0x596634(0x13a)][_0x596634(0x141)])return join(process['env']['XDG_CONFIG_HOME'],_0x2631c4[_0x596634(0x13e)]);return join(_0x2631c4[_0x596634(0x142)](homedir),_0x2631c4[_0x596634(0x132)],_0x2631c4['NXiqJ']);}return join(getProjectRoot(),_0x2631c4['dgKJP']);}export function getOpencodeSkillsDir(_0x693c45){var _0x4ad47f=_0x25b0,_0x19e30b={'mthDc':function(_0x361fc0,_0x38a166,_0x3a1d2d){return _0x361fc0(_0x38a166,_0x3a1d2d);},'MUWQA':function(_0x1c12ba,_0x164366){return _0x1c12ba(_0x164366);}};return _0x19e30b[_0x4ad47f(0x13f)](join,_0x19e30b['MUWQA'](getOpencodeConfigDir,_0x693c45),_0x4ad47f(0x13d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x10a87e=_0x4d51;(function(_0x1bdc5b,_0xca704e){const _0x175536=_0x4d51,_0x4e41ac=_0x1bdc5b();while(!![]){try{const _0x10ba89=-parseInt(_0x175536(0x139))/0x1*(-parseInt(_0x175536(0x134))/0x2)+-parseInt(_0x175536(0x13a))/0x3+parseInt(_0x175536(0x136))/0x4+-parseInt(_0x175536(0x137))/0x5*(-parseInt(_0x175536(0x135))/0x6)+-parseInt(_0x175536(0x133))/0x7*(parseInt(_0x175536(0x12f))/0x8)+parseInt(_0x175536(0x131))/0x9+parseInt(_0x175536(0x130))/0xa;if(_0x10ba89===_0xca704e)break;else _0x4e41ac['push'](_0x4e41ac['shift']());}catch(_0x23b2a2){_0x4e41ac['push'](_0x4e41ac['shift']());}}}(_0x1eb0,0xb89a5));const DEFAULT_PROFILE_COMMAND=_0x10a87e(0x138);export function formatProfileRequiredMessage(_0x3bf62d){const _0x44be6b=_0x10a87e,_0x55c233=_0x3bf62d?_0x3bf62d(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x44be6b(0x132)+_0x55c233+'.';}function _0x4d51(_0x36fbc6,_0x4e77e0){_0x36fbc6=_0x36fbc6-0x12f;const _0x1eb020=_0x1eb0();let _0x4d514b=_0x1eb020[_0x36fbc6];return _0x4d514b;}function _0x1eb0(){const _0x4602e7=['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','1854986UKwuqL','166eArPBt','1979526DteYhj','22072iatpLi','5nJJpRC','ranger\x20profile\x20add\x20local','7289NBzBcL','416946mGVykF','40AnwsmR','9385200PICYrO','3070431GArBqn'];_0x1eb0=function(){return _0x4602e7;};return _0x1eb0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x3d6091,_0x554b66){const _0x59b36c=_0x536e,_0x23e43a=_0x3d6091();while(!![]){try{const _0x55e257=-parseInt(_0x59b36c(0x158))/0x1+parseInt(_0x59b36c(0x160))/0x2+-parseInt(_0x59b36c(0x15e))/0x3+parseInt(_0x59b36c(0x16c))/0x4+-parseInt(_0x59b36c(0x169))/0x5*(parseInt(_0x59b36c(0x163))/0x6)+parseInt(_0x59b36c(0x16e))/0x7*(-parseInt(_0x59b36c(0x15b))/0x8)+parseInt(_0x59b36c(0x16b))/0x9;if(_0x55e257===_0x554b66)break;else _0x23e43a['push'](_0x23e43a['shift']());}catch(_0x4fce47){_0x23e43a['push'](_0x23e43a['shift']());}}}(_0x1a3a,0x1d3a8));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x3c7bd0=_0x536e,_0x4ab317={'zNUvk':function(_0x456303,_0x1f3cd8){return _0x456303+_0x1f3cd8;},'SEiPF':function(_0x4499ed,_0x59df6b){return _0x4499ed+_0x59df6b;},'qvvsh':_0x3c7bd0(0x167),'EthMu':_0x3c7bd0(0x164),'dXJNw':_0x3c7bd0(0x170),'qwDcE':_0x3c7bd0(0x161)},_0x333083=_0x4ab317[_0x3c7bd0(0x15a)](_0x4ab317[_0x3c7bd0(0x166)](_0x4ab317['zNUvk'](_0x3c7bd0(0x15d)+_0x4ab317[_0x3c7bd0(0x16d)]+_0x3c7bd0(0x16f),_0x4ab317[_0x3c7bd0(0x15c)])+_0x4ab317['dXJNw'],_0x4ab317[_0x3c7bd0(0x168)]),_0x3c7bd0(0x161))+_0x3c7bd0(0x162),_0x242595=_0x3c7bd0(0x159);return _0x3c7bd0(0x165)+JSON['stringify'](_0x333083)+_0x3c7bd0(0x16a)+JSON['stringify'](_0x242595)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x536e(_0x50b958,_0x2e817c){_0x50b958=_0x50b958-0x158;const _0x1a3a7a=_0x1a3a();let _0x536e8e=_0x1a3a7a[_0x50b958];return _0x536e8e;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x9eeff9){const _0xdf63a5=_0x536e;await _0x9eeff9[_0xdf63a5(0x15f)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}function _0x1a3a(){const _0x1e9eef=['SEiPF','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','qwDcE','2540CaRgTA',';\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','4487499dCdOwN','194276YsHafo','qvvsh','7IvZqgM','<div\x20class=\x22ranger-banner__message\x22>','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','86562gVecYT','\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','zNUvk','1557720tOUGae','EthMu','<div\x20class=\x22ranger-banner__content\x22>','397674CcoKhS','addInitScript','412678XhDdrd','</div>','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','2598XdgsTT','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</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'];_0x1a3a=function(){return _0x1e9eef;};return _0x1a3a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5b108d,_0x50d312){const _0x4fbba0=_0x53c9,_0x19dc80=_0x5b108d();while(!![]){try{const _0x1a06df=-parseInt(_0x4fbba0(0x1e7))/0x1*(-parseInt(_0x4fbba0(0x1ed))/0x2)+-parseInt(_0x4fbba0(0x1e9))/0x3*(parseInt(_0x4fbba0(0x1e8))/0x4)+parseInt(_0x4fbba0(0x1ef))/0x5+-parseInt(_0x4fbba0(0x1e5))/0x6*(-parseInt(_0x4fbba0(0x1ee))/0x7)+-parseInt(_0x4fbba0(0x1f5))/0x8*(-parseInt(_0x4fbba0(0x1f7))/0x9)+-parseInt(_0x4fbba0(0x1f3))/0xa*(parseInt(_0x4fbba0(0x1f9))/0xb)+parseInt(_0x4fbba0(0x1f6))/0xc*(parseInt(_0x4fbba0(0x1ea))/0xd);if(_0x1a06df===_0x50d312)break;else _0x19dc80['push'](_0x19dc80['shift']());}catch(_0x4d5a10){_0x19dc80['push'](_0x19dc80['shift']());}}}(_0x5c5d,0xdd260));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x53c9(_0x4f7cc0,_0x383447){_0x4f7cc0=_0x4f7cc0-0x1e5;const _0x5c5d94=_0x5c5d();let _0x53c9c2=_0x5c5d94[_0x4f7cc0];return _0x53c9c2;}export function getRangerConfigPath(){const _0x71943=_0x53c9,_0x14c161={'CjdiV':function(_0x3f4b64,_0x439339,_0x18e4e1){return _0x3f4b64(_0x439339,_0x18e4e1);},'xLfgz':function(_0x541623){return _0x541623();}};return _0x14c161['CjdiV'](join,_0x14c161['xLfgz'](getRangerDir),_0x71943(0x1f1));}export async function loadRangerConfig(){const _0x156770=_0x53c9,_0xc16c21={'eCrfP':function(_0x195460){return _0x195460();},'OXbPN':function(_0x32cf08,_0x420db8){return _0x32cf08(_0x420db8);},'oGnEw':function(_0x433dec,_0x299003,_0x3b9722){return _0x433dec(_0x299003,_0x3b9722);},'rxSjV':_0x156770(0x1f4),'VeABk':_0x156770(0x1eb),'XOdXA':function(_0x5bfe77,_0x5eb5fc){return _0x5bfe77 instanceof _0x5eb5fc;}},_0x371935=_0xc16c21['eCrfP'](getRangerConfigPath);if(!_0xc16c21['OXbPN'](existsSync,_0x371935))return{};try{const _0x53bf8e=await _0xc16c21[_0x156770(0x1ec)](readFile,_0x371935,_0xc16c21['rxSjV']),_0x4989a5=JSON['parse'](_0x53bf8e);if(!_0x4989a5||typeof _0x4989a5!=='object'||Array['isArray'](_0x4989a5))return{};const _0x58de54={},_0x1b3ae8=_0x4989a5[_0x156770(0x1f0)];return typeof _0x1b3ae8===_0xc16c21['VeABk']&&(_0x58de54[_0x156770(0x1f0)]=_0x1b3ae8),_0x58de54;}catch(_0x2e6bf3){const _0x5cd9f5=_0xc16c21[_0x156770(0x1f2)](_0x2e6bf3,Error)?_0x2e6bf3[_0x156770(0x1e6)]:_0xc16c21['OXbPN'](String,_0x2e6bf3);return console[_0x156770(0x1f8)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x371935+':\x20'+_0x5cd9f5),{};}}function _0x5c5d(){const _0x4adb0f=['1706735DEsJvE','model','config.json','XOdXA','8870iNLLsR','utf-8','8395976ZynOQu','12LnPjMw','9hXSJeV','warn','14322cleEcE','1716642UOVqEs','message','3491CFuLrQ','4afJRDI','5093643WQUQeg','24292801oVWpvH','string','oGnEw','122PhoskO','7aaRjLS'];_0x5c5d=function(){return _0x4adb0f;};return _0x5c5d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8605b7,_0xbeb771){const _0x1d7a19=_0x10a5,_0x150ee7=_0x8605b7();while(!![]){try{const _0x2aeea2=parseInt(_0x1d7a19(0x18b))/0x1+parseInt(_0x1d7a19(0x180))/0x2*(parseInt(_0x1d7a19(0x189))/0x3)+parseInt(_0x1d7a19(0x191))/0x4+-parseInt(_0x1d7a19(0x17b))/0x5*(parseInt(_0x1d7a19(0x183))/0x6)+-parseInt(_0x1d7a19(0x18e))/0x7*(parseInt(_0x1d7a19(0x18a))/0x8)+parseInt(_0x1d7a19(0x18c))/0x9+-parseInt(_0x1d7a19(0x186))/0xa*(parseInt(_0x1d7a19(0x18d))/0xb);if(_0x2aeea2===_0xbeb771)break;else _0x150ee7['push'](_0x150ee7['shift']());}catch(_0x1c3542){_0x150ee7['push'](_0x150ee7['shift']());}}}(_0x3a57,0x773cf));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x48abf1=_0x10a5,_0x52af8b={'RCYVm':function(_0x14ec27,_0x3b3d22){return _0x14ec27(_0x3b3d22);},'kfzwZ':function(_0x56431d,_0x44b055){return _0x56431d!==_0x44b055;},'pmUmx':_0x48abf1(0x185),'pINJw':function(_0x5684e1,_0x49df91,_0x3be9f1){return _0x5684e1(_0x49df91,_0x3be9f1);}};let _0x50da93=process[_0x48abf1(0x17c)]();const _0x4c5fd8=_0x52af8b[_0x48abf1(0x188)](parse,_0x50da93)[_0x48abf1(0x17e)];while(_0x52af8b[_0x48abf1(0x182)](_0x50da93,_0x4c5fd8)){if(_0x52af8b['RCYVm'](existsSync,join(_0x50da93,_0x52af8b['pmUmx'])))return _0x50da93;_0x50da93=dirname(_0x50da93);}if(existsSync(_0x52af8b[_0x48abf1(0x190)](join,_0x4c5fd8,_0x48abf1(0x185))))return _0x4c5fd8;const _0x39f610=findGitRoot();if(_0x39f610)return _0x39f610;return process[_0x48abf1(0x17c)]();}export function getRangerDir(){const _0x3dca75=_0x10a5,_0x1b96ab={'drsKe':function(_0x20dbf5){return _0x20dbf5();},'cFvto':'.ranger'};return join(_0x1b96ab[_0x3dca75(0x17a)](getRangerRoot),_0x1b96ab[_0x3dca75(0x17d)]);}function _0x10a5(_0x4b4566,_0x1d8df6){_0x4b4566=_0x4b4566-0x17a;const _0x3a575e=_0x3a57();let _0x10a53d=_0x3a575e[_0x4b4566];return _0x10a53d;}export function findGitRoot(){const _0x8a7751=_0x10a5,_0x4c44d6={'PtIdC':function(_0x425de3,_0x2a3483){return _0x425de3(_0x2a3483);},'EARKt':function(_0x5cf746,_0x5d20c6){return _0x5cf746!==_0x5d20c6;},'LmzTD':function(_0x206725,_0x4c94f9){return _0x206725(_0x4c94f9);},'aXXjR':function(_0x171cb4,_0x5eca26,_0x18adc1){return _0x171cb4(_0x5eca26,_0x18adc1);},'ObBqu':_0x8a7751(0x187)};let _0x244228=process['cwd']();const _0x1ab2d7=_0x4c44d6['PtIdC'](parse,_0x244228)[_0x8a7751(0x17e)];while(_0x4c44d6['EARKt'](_0x244228,_0x1ab2d7)){if(_0x4c44d6['LmzTD'](existsSync,_0x4c44d6[_0x8a7751(0x184)](join,_0x244228,_0x4c44d6[_0x8a7751(0x17f)])))return _0x244228;_0x244228=_0x4c44d6[_0x8a7751(0x18f)](dirname,_0x244228);}if(existsSync(_0x4c44d6[_0x8a7751(0x184)](join,_0x1ab2d7,'.git')))return _0x1ab2d7;return null;}function _0x3a57(){const _0x19dd80=['ObBqu','2VgbrwJ','acFIl','kfzwZ','6mSXTfy','aXXjR','.ranger','830WalgHM','.git','RCYVm','1471656kxiRms','8oTRcQS','298760zxgpzf','4123782snpOKt','55682DuMQQw','1689849kAaSOG','PtIdC','pINJw','2661060wMqAJH','drsKe','3814115nUivjd','cwd','cFvto','root'];_0x3a57=function(){return _0x19dd80;};return _0x3a57();}export function getRangerHomeDir(){const _0x482ed7=_0x10a5,_0x1d9b76={'acFIl':_0x482ed7(0x185)};return join(homedir(),_0x1d9b76[_0x482ed7(0x181)]);}
|