@ranger-testing/ranger-cli 2.3.0 → 2.3.1
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/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1444(){const _0xc32715=['4iLHxRu','#\x20Feature\x20Review\x20Report:\x20','numeric','None','filter','\x20verified)','Mnyse','PMzfq','prUdk','closedAt','813228HVxvPr','iAgWR','No\x20Session','checklistItemId','createdAt','blockedAt','gitBranch','-\x20**Reason:**\x20',':\x20Ready',':\x20Awaiting\x20Review','join','##\x20Description','floor','8515176GrQSAG','**Branch:**\x20','description','210610AokPUs','agentResponse','CmjqG','status','3364360hVyixm','N/A','ShsVY','iteration','closed','WjGRE','durationMs','length','blocked','gitRepoUrl','##\x20Blocking\x20Issues','completedAt','blockedReason','canceledReason','find','incomplete','###\x20','##\x20Scenario\x20Progress\x20(','https://trace.playwright.dev/?trace=','8576688wYXNqY','**:\x20','push','|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','browserSessionId','toLocaleDateString','773144fcukjz','Session\x20',':\x20In\x20Progress','UvSUs','UVnlE','\x20|\x20','Completed','9660847pWXRXJ','-\x20**Blocked:**\x20','18JsICOr','currentSession','en-US','5ECbClo','substring','verified','in_progress','vhUlM'];_0x1444=function(){return _0xc32715;};return _0x1444();}(function(_0x52004d,_0x30eca0){const _0x2f2e4f=_0x57a6,_0x406b88=_0x52004d();while(!![]){try{const _0x33ead6=-parseInt(_0x2f2e4f(0x1c9))/0x1*(parseInt(_0x2f2e4f(0x1e3))/0x2)+parseInt(_0x2f2e4f(0x1d3))/0x3+-parseInt(_0x2f2e4f(0x1b8))/0x4+-parseInt(_0x2f2e4f(0x1c4))/0x5*(-parseInt(_0x2f2e4f(0x1e0))/0x6)+parseInt(_0x2f2e4f(0x1bf))/0x7+-parseInt(_0x2f2e4f(0x1b2))/0x8+parseInt(_0x2f2e4f(0x1c1))/0x9*(-parseInt(_0x2f2e4f(0x1e7))/0xa);if(_0x33ead6===_0x30eca0)break;else _0x406b88['push'](_0x406b88['shift']());}catch(_0x854fbf){_0x406b88['push'](_0x406b88['shift']());}}}(_0x1444,0xad911));function _0x57a6(_0x165380,_0x35256c){_0x165380=_0x165380-0x1a7;const _0x144443=_0x1444();let _0x57a689=_0x144443[_0x165380];return _0x57a689;}export function buildTraceViewerUrl(_0x2b9756){const _0x512df9=_0x57a6,_0x1efd68=encodeURIComponent(_0x2b9756);return _0x512df9(0x1b1)+_0x1efd68;}function getStatusEmoji(_0x50b6ff){const _0x5a231c=_0x57a6,_0x297101={'scgye':_0x5a231c(0x1ae),'ShsVY':'closed'};switch(_0x50b6ff){case _0x5a231c(0x1c6):case'completed':return'✅';case'pending':case _0x5a231c(0x1c7):return'🔄';case _0x297101['scgye']:return'🟠';case'blocked':return'🛑';case _0x297101[_0x5a231c(0x1e9)]:return'⛔';default:return'❓';}}function formatDuration(_0x3028d5){const _0x4bcc77=_0x57a6,_0x144d01={'tKQLr':function(_0x584449,_0x359c66){return _0x584449===_0x359c66;},'WjGRE':function(_0x109b2f,_0x3fe727){return _0x109b2f/_0x3fe727;}};if(_0x3028d5===null||_0x144d01['tKQLr'](_0x3028d5,undefined))return _0x4bcc77(0x1e8);if(_0x3028d5<0x3e8)return _0x3028d5+'ms';const _0x31b603=Math[_0x4bcc77(0x1df)](_0x3028d5/0x3e8);if(_0x31b603<0x3c)return _0x31b603+'s';const _0x24a0cd=Math['floor'](_0x144d01[_0x4bcc77(0x1ec)](_0x31b603,0x3c)),_0x20c983=_0x31b603%0x3c;return _0x24a0cd+'m\x20'+_0x20c983+'s';}function formatDate(_0xc976e){const _0x346099=_0x57a6,_0x4682db={'iAgWR':'numeric'};if(!_0xc976e)return _0x346099(0x1e8);return new Date(_0xc976e)[_0x346099(0x1b7)](_0x346099(0x1c3),{'year':_0x4682db[_0x346099(0x1d4)],'month':'short','day':_0x346099(0x1cb)});}export function generateFeatureReport(_0x59451e){const _0x1b4267=_0x57a6,_0x2fc886={'aveOD':'in_progress','nwBvE':_0x1b4267(0x1d5),'Mnyse':function(_0x1f987c,_0x5b23e5){return _0x1f987c(_0x5b23e5);},'MmDSU':_0x1b4267(0x1eb),'wjnXV':function(_0xd80359,_0xb05566){return _0xd80359===_0xb05566;},'UvSUs':function(_0x158c21,_0x3ba702){return _0x158c21===_0x3ba702;},'ZTLIS':_0x1b4267(0x1a7),'vhUlM':function(_0x42fe0d,_0x567720){return _0x42fe0d===_0x567720;},'prUdk':function(_0x39183d,_0x17a7d4){return _0x39183d(_0x17a7d4);},'VOVxr':_0x1b4267(0x1ae),'ErROZ':function(_0x2c6081,_0x2306f2){return _0x2c6081(_0x2306f2);},'CkNcb':function(_0x5ab17c,_0x2a7ec8){return _0x5ab17c>_0x2a7ec8;},'WuxFG':_0x1b4267(0x1a9),'IMsEa':'No\x20reason\x20provided','PMzfq':function(_0x1a1b7f,_0x35ae8c){return _0x1a1b7f>_0x35ae8c;},'UVnlE':'##\x20All\x20Verification\x20Sessions','TJdLW':_0x1b4267(0x1b5),'bYLqZ':_0x1b4267(0x1e8),'JMbte':'completed','CmjqG':'failed'},{feature:_0x15013a,stats:_0x442e80,checklistItems:_0xafccb7,sessions:_0x18d96b}=_0x59451e,_0x456a78=[];_0x456a78['push'](_0x1b4267(0x1ca)+_0x15013a['name']),_0x456a78['push']('');let _0xd07fbb,_0x1d63c3;if(_0x15013a['completedAt'])_0xd07fbb=_0x1b4267(0x1be),_0x1d63c3='✅';else{if(_0x15013a[_0x1b4267(0x1c2)]){const _0x3e500f=_0x15013a[_0x1b4267(0x1c2)]['status'];switch(_0x3e500f){case'ready':_0xd07fbb=_0x1b4267(0x1b9)+_0x15013a[_0x1b4267(0x1c2)][_0x1b4267(0x1ea)]+_0x1b4267(0x1db),_0x1d63c3='▶️';break;case _0x2fc886['aveOD']:_0xd07fbb=_0x1b4267(0x1b9)+_0x15013a['currentSession']['iteration']+_0x1b4267(0x1ba),_0x1d63c3='🔄';break;case'completed':_0xd07fbb='Session\x20'+_0x15013a['currentSession']['iteration']+_0x1b4267(0x1dc),_0x1d63c3='📊';break;default:_0xd07fbb='Unknown',_0x1d63c3='❓';}}else _0xd07fbb=_0x2fc886['nwBvE'],_0x1d63c3='⬜';}_0x456a78[_0x1b4267(0x1b4)]('**Status:**\x20'+_0x1d63c3+'\x20'+_0xd07fbb),_0x456a78[_0x1b4267(0x1b4)]('**Created:**\x20'+_0x2fc886[_0x1b4267(0x1cf)](formatDate,_0x15013a[_0x1b4267(0x1d7)]));_0x15013a['completedAt']&&_0x456a78[_0x1b4267(0x1b4)]('**Completed:**\x20'+formatDate(_0x15013a[_0x1b4267(0x1aa)]));_0x15013a[_0x1b4267(0x1a8)]&&_0x456a78['push']('**Repository:**\x20'+_0x15013a['gitRepoUrl']);_0x15013a['gitBranch']&&_0x456a78[_0x1b4267(0x1b4)](_0x1b4267(0x1e1)+_0x15013a[_0x1b4267(0x1d9)]);_0x456a78[_0x1b4267(0x1b4)]('');_0x15013a['description']&&(_0x456a78['push'](_0x1b4267(0x1de)),_0x456a78['push'](''),_0x456a78[_0x1b4267(0x1b4)](_0x15013a[_0x1b4267(0x1e2)]),_0x456a78['push'](''));const _0x55fc6b=_0xafccb7['filter'](_0x2414d8=>_0x2414d8[_0x1b4267(0x1e6)]!==_0x1b4267(0x1eb)),_0x264244=_0xafccb7['filter'](_0x25ec1e=>_0x25ec1e['status']===_0x1b4267(0x1c6))[_0x1b4267(0x1ee)];_0x456a78['push'](_0x1b4267(0x1b0)+_0x264244+'/'+_0x55fc6b[_0x1b4267(0x1ee)]+_0x1b4267(0x1ce)),_0x456a78['push']('');for(const _0x29634f of _0xafccb7){const _0x4311a7=getStatusEmoji(_0x29634f[_0x1b4267(0x1e6)]),_0x109f0b=_0x29634f['status']===_0x2fc886['MmDSU'],_0x5c04a9=_0x109f0b?'~~':'',_0x18c9ea=_0x109f0b?'~~':'';_0x456a78[_0x1b4267(0x1b4)](_0x1b4267(0x1af)+_0x4311a7+'\x20'+_0x5c04a9+_0x29634f['description']+_0x18c9ea),_0x456a78['push']('');_0x2fc886['wjnXV'](_0x29634f['status'],'verified')&&_0x29634f['verifiedAt']&&_0x456a78[_0x1b4267(0x1b4)]('-\x20**Verified:**\x20'+formatDate(_0x29634f['verifiedAt']));_0x2fc886[_0x1b4267(0x1bb)](_0x29634f['status'],_0x2fc886['ZTLIS'])&&_0x29634f[_0x1b4267(0x1d8)]&&(_0x456a78['push'](_0x1b4267(0x1c0)+formatDate(_0x29634f['blockedAt'])),_0x29634f['blockedReason']&&_0x456a78['push']('-\x20**Reason:**\x20'+_0x29634f[_0x1b4267(0x1ab)]));_0x2fc886[_0x1b4267(0x1c8)](_0x29634f[_0x1b4267(0x1e6)],'closed')&&_0x29634f[_0x1b4267(0x1d2)]&&(_0x456a78[_0x1b4267(0x1b4)]('-\x20**Closed:**\x20'+_0x2fc886[_0x1b4267(0x1d1)](formatDate,_0x29634f['closedAt'])),_0x29634f[_0x1b4267(0x1ac)]&&_0x456a78['push'](_0x1b4267(0x1da)+_0x29634f['canceledReason']));_0x29634f['status']===_0x2fc886['VOVxr']&&_0x456a78[_0x1b4267(0x1b4)]('-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work');if(_0x29634f[_0x1b4267(0x1b6)]){_0x456a78[_0x1b4267(0x1b4)]('-\x20**Session:**\x20'+_0x29634f[_0x1b4267(0x1b6)]);const _0x123778=_0x18d96b[_0x1b4267(0x1ad)](_0x322c7a=>_0x322c7a['id']===_0x29634f['browserSessionId']);_0x123778&&(_0x123778['agentResponse']&&_0x456a78[_0x1b4267(0x1b4)]('-\x20**Summary:**\x20'+_0x123778[_0x1b4267(0x1e4)]),_0x123778['traceUrl']&&_0x456a78['push']('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x2fc886['ErROZ'](buildTraceViewerUrl,_0x123778['traceUrl'])+')'));}_0x456a78[_0x1b4267(0x1b4)]('');}const _0x2cd48f=_0xafccb7[_0x1b4267(0x1cd)](_0x31e5c1=>_0x31e5c1['status']==='blocked');if(_0x2fc886['CkNcb'](_0x2cd48f[_0x1b4267(0x1ee)],0x0)){_0x456a78['push'](_0x2fc886['WuxFG']),_0x456a78['push']('');for(const _0x38cc41 of _0x2cd48f){_0x456a78[_0x1b4267(0x1b4)]('-\x20**'+_0x38cc41[_0x1b4267(0x1e2)]+_0x1b4267(0x1b3)+(_0x38cc41[_0x1b4267(0x1ab)]||_0x2fc886['IMsEa']));}_0x456a78[_0x1b4267(0x1b4)]('');}else _0x456a78['push']('##\x20Blocking\x20Issues'),_0x456a78[_0x1b4267(0x1b4)](''),_0x456a78['push'](_0x1b4267(0x1cc)),_0x456a78[_0x1b4267(0x1b4)]('');if(_0x2fc886[_0x1b4267(0x1d0)](_0x18d96b[_0x1b4267(0x1ee)],0x0)){_0x456a78['push'](_0x2fc886[_0x1b4267(0x1bc)]),_0x456a78['push'](''),_0x456a78['push'](_0x2fc886['TJdLW']),_0x456a78[_0x1b4267(0x1b4)]('|---------|----------|--------|----------|------|');for(const _0x3fede6 of _0x18d96b){const _0x2110e3=_0x3fede6[_0x1b4267(0x1d6)]?_0xafccb7[_0x1b4267(0x1ad)](_0x10ec85=>_0x10ec85['id']===_0x3fede6['checklistItemId']):null,_0x2bd399=_0x2110e3?_0x2110e3['description'][_0x1b4267(0x1c5)](0x0,0x1e)+(_0x2fc886['CkNcb'](_0x2110e3[_0x1b4267(0x1e2)][_0x1b4267(0x1ee)],0x1e)?'...':''):_0x2fc886['bYLqZ'],_0x16c132=_0x2fc886['vhUlM'](_0x3fede6['status'],_0x2fc886['JMbte'])?'✅':_0x3fede6['status']===_0x2fc886[_0x1b4267(0x1e5)]?'❌':'🔄';_0x456a78[_0x1b4267(0x1b4)]('|\x20'+_0x3fede6['id']+'\x20|\x20'+_0x2bd399+_0x1b4267(0x1bd)+_0x16c132+'\x20'+_0x3fede6[_0x1b4267(0x1e6)]+'\x20|\x20'+formatDuration(_0x3fede6[_0x1b4267(0x1ed)])+_0x1b4267(0x1bd)+formatDate(_0x3fede6[_0x1b4267(0x1d7)])+'\x20|');}_0x456a78['push']('');}return _0x456a78[_0x1b4267(0x1dd)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5e1d30=_0x333e;function _0x4bbf(){const _0x5e3d22=['GsBIG','endsWith','hiEML','cusFO','3332868Fyddai','ylqjP','nCkcW','dataSize','offset','Could\x20not\x20find\x20Info\x20element','Fixed:\x20','SJEmu','CCrKV','wbzKM','726ngOmdC','concat','2472672NtloiN','vtqYZ','jZPDU','floor','THJCy','YIUuT','RndYj','slice','wediz','MkLOG','ExwCK','1556lPAwjc','vmfpn','error','BnmSU','WzDqx','LPftR','fixWebmDuration.js','85734Osszur','sizeLen','atMLw','ytMem','FRJwS','min','pow','argv','1480TYPYcW','iRXWk','JndYg','xkcJA','nYTGv','BBJJh','LmIhy','4169360IWrTua','4UrTdmy','eIgkJ','ChMNt','alloc','llOoI','GvfIO','length','kjArn','AeOUh','51263qRvsdK','3164775pwSGQd','BpMxA','dHVmW','ixmpC','dataOffset','EYyGp','kvXkY'];_0x4bbf=function(){return _0x5e3d22;};return _0x4bbf();}(function(_0x20f2f3,_0x5b559e){const _0x5e732f=_0x333e,_0x23aea8=_0x20f2f3();while(!![]){try{const _0x1df00b=-parseInt(_0x5e732f(0xe0))/0x1*(-parseInt(_0x5e732f(0xd7))/0x2)+parseInt(_0x5e732f(0xb3))/0x3*(-parseInt(_0x5e732f(0xc0))/0x4)+parseInt(_0x5e732f(0xe1))/0x5+parseInt(_0x5e732f(0xb5))/0x6+parseInt(_0x5e732f(0xec))/0x7+parseInt(_0x5e732f(0xd6))/0x8+-parseInt(_0x5e732f(0xc7))/0x9*(parseInt(_0x5e732f(0xcf))/0xa);if(_0x1df00b===_0x5b559e)break;else _0x23aea8['push'](_0x23aea8['shift']());}catch(_0x1992b2){_0x23aea8['push'](_0x23aea8['shift']());}}}(_0x4bbf,0x9c785));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(_0x25e581,_0x40605c){const _0x1c4164=_0x333e,_0x18de5f={'Bqzkc':function(_0x598761,_0x32f952){return _0x598761&_0x32f952;},'nYTGv':function(_0x383c39,_0x5823d3){return _0x383c39-_0x5823d3;},'ixmpC':function(_0xe17074,_0x321423){return _0xe17074+_0x321423;},'iRXWk':function(_0x1378a5,_0x5d8533){return _0x1378a5*_0x5d8533;}};if(_0x40605c>=_0x25e581['length'])return[0x0,0x0];const _0x4d9a81=_0x25e581[_0x40605c];let _0x11c556=0x1,_0x1e6951=0x80;while(_0x11c556<=0x8&&!_0x18de5f['Bqzkc'](_0x4d9a81,_0x1e6951)){_0x11c556++,_0x1e6951>>=0x1;}if(_0x40605c+_0x11c556>_0x25e581['length'])return[0x0,0x0];let _0x2b556a=_0x4d9a81&_0x18de5f[_0x1c4164(0xd3)](_0x1e6951,0x1);for(let _0x530f17=0x1;_0x530f17<_0x11c556;_0x530f17++){_0x2b556a=_0x18de5f[_0x1c4164(0xe4)](_0x18de5f[_0x1c4164(0xd0)](_0x2b556a,0x100),_0x25e581[_0x40605c+_0x530f17]);}return[_0x2b556a,_0x11c556];}function readId(_0x58907b,_0x305176){const _0x4b9686=_0x333e,_0x1c22b9={'xkcJA':function(_0x40f34f,_0x57b243){return _0x40f34f>=_0x57b243;},'atMLw':function(_0x178797,_0x472c93){return _0x178797>=_0x472c93;},'vmfpn':function(_0x37ca23,_0x2d6ae8){return _0x37ca23>_0x2d6ae8;},'dHVmW':function(_0x3bf340,_0x3e8730){return _0x3bf340+_0x3e8730;}};if(_0x1c22b9[_0x4b9686(0xd2)](_0x305176,_0x58907b['length']))return[0x0,0x0];const _0x5f3b8a=_0x58907b[_0x305176];let _0x5df614;if(_0x1c22b9[_0x4b9686(0xc9)](_0x5f3b8a,0x80))_0x5df614=0x1;else{if(_0x1c22b9[_0x4b9686(0xc9)](_0x5f3b8a,0x40))_0x5df614=0x2;else{if(_0x5f3b8a>=0x20)_0x5df614=0x3;else{if(_0x5f3b8a>=0x10)_0x5df614=0x4;else return[_0x5f3b8a,0x1];}}}if(_0x1c22b9[_0x4b9686(0xc1)](_0x1c22b9[_0x4b9686(0xe3)](_0x305176,_0x5df614),_0x58907b['length']))return[0x0,0x0];let _0x51c8f1=0x0;for(let _0x3acf95=0x0;_0x3acf95<_0x5df614;_0x3acf95++){_0x51c8f1=_0x1c22b9['dHVmW'](_0x51c8f1*0x100,_0x58907b[_0x1c22b9['dHVmW'](_0x305176,_0x3acf95)]);}return[_0x51c8f1,_0x5df614];}function readUint(_0x2ef4c2,_0x35d117,_0x2aa92d){const _0x2e3b95=_0x333e,_0x283ff9={'llOoI':function(_0x417981,_0x367707){return _0x417981<_0x367707;},'oWUtv':function(_0x3d89e5,_0x29d31c){return _0x3d89e5+_0x29d31c;}};let _0x3343b1=0x0;for(let _0x3a5ec0=0x0;_0x283ff9[_0x2e3b95(0xdb)](_0x3a5ec0,_0x2aa92d);_0x3a5ec0++){_0x3343b1=_0x3343b1*0x100+_0x2ef4c2[_0x283ff9['oWUtv'](_0x35d117,_0x3a5ec0)];}return _0x3343b1;}function isUnknownSize(_0x36307a,_0x1a5bef){const _0x5d746d=_0x333e,_0x368148={'LmIhy':function(_0x3652be,_0x19c690){return _0x3652be===_0x19c690;}};return _0x368148[_0x5d746d(0xd5)](_0x36307a,Math[_0x5d746d(0xcd)](0x2,0x7*_0x1a5bef)-0x1);}function writeId(_0x4002a9){const _0x34b7fb=_0x333e,_0x51f9b6={'EYyGp':function(_0x4b6c04,_0x5bb890){return _0x4b6c04<=_0x5bb890;},'MkLOG':function(_0x5d924e,_0x388976){return _0x5d924e>>_0x388976;},'cusFO':function(_0xcb436b,_0x177c1f){return _0xcb436b&_0x177c1f;},'FRJwS':function(_0xae414c,_0x4d4e83){return _0xae414c<=_0x4d4e83;},'fadbb':function(_0x458b35,_0x100586){return _0x458b35&_0x100586;},'WnLUE':function(_0x5aa947,_0x2464b9){return _0x5aa947&_0x2464b9;},'tFKEc':function(_0x54946d,_0x3f0913){return _0x54946d>>_0x3f0913;}};if(_0x4002a9<=0xff)return Buffer['from']([_0x4002a9]);if(_0x51f9b6[_0x34b7fb(0xe6)](_0x4002a9,0xffff))return Buffer['from']([_0x51f9b6[_0x34b7fb(0xbe)](_0x4002a9,0x8)&0xff,_0x51f9b6[_0x34b7fb(0xeb)](_0x4002a9,0xff)]);if(_0x51f9b6[_0x34b7fb(0xcb)](_0x4002a9,0xffffff))return Buffer['from']([_0x51f9b6['MkLOG'](_0x4002a9,0x10)&0xff,_0x4002a9>>0x8&0xff,_0x51f9b6['fadbb'](_0x4002a9,0xff)]);return Buffer['from']([_0x4002a9>>0x18&0xff,_0x51f9b6['MkLOG'](_0x4002a9,0x10)&0xff,_0x51f9b6['WnLUE'](_0x51f9b6['tFKEc'](_0x4002a9,0x8),0xff),_0x4002a9&0xff]);}function writeVint(_0x455f15,_0x41dc51){const _0x3e14b0=_0x333e,_0x2d3db5={'qBDzH':function(_0x45c6e1,_0x4635fb){return _0x45c6e1||_0x4635fb;},'ljwOc':function(_0x29685e,_0x189025){return _0x29685e-_0x189025;},'CCrKV':function(_0xa88b3d,_0x151083){return _0xa88b3d*_0x151083;},'SxRHz':function(_0x3e9322,_0x4e2259){return _0x3e9322-_0x4e2259;},'nCkcW':function(_0x427268,_0x2240eb){return _0x427268>=_0x2240eb;},'jZPDU':function(_0x3ca1bb,_0x79b98c){return _0x3ca1bb&_0x79b98c;},'stuxu':function(_0x410cac,_0x535bf7){return _0x410cac/_0x535bf7;},'ylqjP':function(_0x5306ec,_0x206ae5){return _0x5306ec<<_0x206ae5;},'XSfBz':function(_0x5804e6,_0x5c1ae2){return _0x5804e6-_0x5c1ae2;}};let _0x338906=_0x2d3db5['qBDzH'](_0x41dc51,0x1);while(_0x2d3db5['ljwOc'](Math[_0x3e14b0(0xcd)](0x2,_0x2d3db5[_0x3e14b0(0xb1)](0x7,_0x338906)),0x2)<_0x455f15)_0x338906++;const _0x44b5a5=Buffer['alloc'](_0x338906);for(let _0x375866=_0x2d3db5['SxRHz'](_0x338906,0x1);_0x2d3db5[_0x3e14b0(0xab)](_0x375866,0x0);_0x375866--){_0x44b5a5[_0x375866]=_0x2d3db5[_0x3e14b0(0xb7)](_0x455f15,0xff),_0x455f15=Math[_0x3e14b0(0xb8)](_0x2d3db5['stuxu'](_0x455f15,0x100));}return _0x44b5a5[0x0]|=_0x2d3db5[_0x3e14b0(0xaa)](0x1,_0x2d3db5['XSfBz'](0x8,_0x338906)),_0x44b5a5;}function writeFloat64(_0x21ea73){const _0x3b04f3=_0x333e,_0x381ee0=Buffer[_0x3b04f3(0xda)](0x8);return _0x381ee0['writeDoubleBE'](_0x21ea73,0x0),_0x381ee0;}function _0x333e(_0x459c98,_0x502239){_0x459c98=_0x459c98-0xaa;const _0x4bbf2a=_0x4bbf();let _0x333eb=_0x4bbf2a[_0x459c98];return _0x333eb;}function writeVoid(_0x5c547a){const _0x3e6f95=_0x333e,_0x38d7c3={'BpMxA':function(_0x27734a,_0x141d0a){return _0x27734a<=_0x141d0a;},'jTgzQ':function(_0x3401a8,_0x343334){return _0x3401a8-_0x343334;},'YIUuT':function(_0x17260f,_0x24f49d){return _0x17260f-_0x24f49d;},'BnmSU':function(_0x2ff335,_0x223fb2){return _0x2ff335>=_0x223fb2;},'iaySP':function(_0x24cef5,_0x76b076){return _0x24cef5<=_0x76b076;},'BPZUh':function(_0x40d452,_0x54f02a){return _0x40d452-_0x54f02a;}};for(let _0x620f79=0x1;_0x38d7c3[_0x3e6f95(0xe2)](_0x620f79,0x8);_0x620f79++){const _0x2b7ddb=_0x38d7c3['jTgzQ'](_0x38d7c3[_0x3e6f95(0xba)](_0x5c547a,0x1),_0x620f79);if(_0x38d7c3[_0x3e6f95(0xc3)](_0x2b7ddb,0x0)&&_0x38d7c3['iaySP'](_0x2b7ddb,_0x38d7c3['BPZUh'](Math[_0x3e6f95(0xcd)](0x2,0x7*_0x620f79),0x2)))return Buffer[_0x3e6f95(0xb4)]([Buffer['from']([ID_VOID]),writeVint(_0x2b7ddb,_0x620f79),Buffer[_0x3e6f95(0xda)](_0x2b7ddb)]);}return Buffer[_0x3e6f95(0xda)](0x0);}function findElement(_0x2f4fb2,_0x8281e5,_0x44b988,_0x357d54){const _0x4d24a4=_0x333e,_0xb0765c={'vDhpt':function(_0x3e8fee,_0x4d6593,_0x1b241a){return _0x3e8fee(_0x4d6593,_0x1b241a);},'wbzKM':function(_0x208584,_0x1467e6){return _0x208584===_0x1467e6;},'SJEmu':function(_0x64535e,_0x2c1f90){return _0x64535e+_0x2c1f90;}};let _0x228249=_0x8281e5;while(_0x228249<_0x44b988){const [_0x211911,_0x2eac9a]=readId(_0x2f4fb2,_0x228249),[_0x5a9263,_0x5558b3]=_0xb0765c['vDhpt'](readVint,_0x2f4fb2,_0x228249+_0x2eac9a);if(_0xb0765c[_0x4d24a4(0xb2)](_0x211911,_0x357d54))return{'offset':_0x228249,'idLen':_0x2eac9a,'sizeLen':_0x5558b3,'dataSize':_0x5a9263,'dataOffset':_0x228249+_0x2eac9a+_0x5558b3};if(isUnknownSize(_0x5a9263,_0x5558b3))break;_0x228249+=_0xb0765c[_0x4d24a4(0xb0)](_0x2eac9a+_0x5558b3,_0x5a9263);}return null;}function computeDurationMs(_0x5ddaa9,_0x9277ac){const _0x27a0aa=_0x333e,_0x50c602={'Kltyz':function(_0x4102ca,_0x1c5d9c){return _0x4102ca===_0x1c5d9c;},'BcxaV':function(_0x1289a3,_0xc675c1){return _0x1289a3!==_0xc675c1;},'ChMNt':function(_0x3479ae,_0x13ed16,_0x54aa12){return _0x3479ae(_0x13ed16,_0x54aa12);},'eIgkJ':function(_0x27c28c,_0xec3232){return _0x27c28c+_0xec3232;},'vtqYZ':function(_0xd5dfd9,_0x5a08ed){return _0xd5dfd9-_0x5a08ed;},'LPftR':function(_0x4f4d47,_0x1c205e){return _0x4f4d47===_0x1c205e;},'UvMsD':function(_0x46e805,_0x4d334f){return _0x46e805>=_0x4d334f;},'AvExE':function(_0x5dca2f,_0x2861c5,_0x298599){return _0x5dca2f(_0x2861c5,_0x298599);},'kvXkY':function(_0xbe1d25,_0x1493ce){return _0xbe1d25/_0x1493ce;},'yWSIk':function(_0xd61efa,_0x572b8e){return _0xd61efa*_0x572b8e;},'WzDqx':function(_0x211163,_0x35a54f){return _0x211163>_0x35a54f;}};let _0xf52900=0x0;const _0x4da818=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x167db2=_0x5ddaa9['indexOf'](_0x4da818);if(_0x50c602['Kltyz'](_0x167db2,-0x1))return 0x0;while(_0x167db2<_0x5ddaa9[_0x27a0aa(0xdd)]){const [_0x5a82b4,_0x4303be]=readId(_0x5ddaa9,_0x167db2);if(_0x50c602['BcxaV'](_0x5a82b4,ID_CLUSTER))break;const [_0x229112,_0xa01aa2]=_0x50c602['ChMNt'](readVint,_0x5ddaa9,_0x167db2+_0x4303be),_0xa9ab0e=_0x50c602['eIgkJ'](_0x167db2,_0x4303be)+_0xa01aa2,_0x1b0a3f=_0x50c602[_0x27a0aa(0xd9)](isUnknownSize,_0x229112,_0xa01aa2);let _0x4fbd05;if(_0x1b0a3f){let _0x291178=_0xa9ab0e;while(_0x291178<_0x50c602[_0x27a0aa(0xb6)](_0x5ddaa9[_0x27a0aa(0xdd)],0x4)){const [_0x5de9ba,_0x5560b7]=readId(_0x5ddaa9,_0x291178);if(_0x5de9ba===ID_CLUSTER){_0x4fbd05=_0x291178;break;}const [_0x4ca41c,_0x26bcf0]=_0x50c602[_0x27a0aa(0xd9)](readVint,_0x5ddaa9,_0x291178+_0x5560b7);if(isUnknownSize(_0x4ca41c,_0x26bcf0)){_0x4fbd05=_0x5ddaa9[_0x27a0aa(0xdd)];break;}_0x291178+=_0x5560b7+_0x26bcf0+_0x4ca41c;}_0x4fbd05??=_0x5ddaa9['length'];}else _0x4fbd05=_0xa9ab0e+_0x229112;let _0x16f239=0x0,_0x1fc82c=_0xa9ab0e;while(_0x1fc82c<_0x4fbd05){const [_0x2612a1,_0x14766f]=readId(_0x5ddaa9,_0x1fc82c),[_0x105bcc,_0xee1ba5]=readVint(_0x5ddaa9,_0x1fc82c+_0x14766f);if(_0x50c602['Kltyz'](_0x2612a1,ID_TIMESTAMP))_0x16f239=readUint(_0x5ddaa9,_0x50c602[_0x27a0aa(0xd8)](_0x1fc82c+_0x14766f,_0xee1ba5),_0x105bcc);else{if(_0x50c602[_0x27a0aa(0xc5)](_0x2612a1,ID_SIMPLE_BLOCK)&&_0x50c602['UvMsD'](_0x105bcc,0x4)){const _0x23224c=_0x1fc82c+_0x14766f+_0xee1ba5,[,_0x422b64]=_0x50c602['AvExE'](readVint,_0x5ddaa9,_0x23224c),_0x3a949a=_0x5ddaa9['readInt16BE'](_0x23224c+_0x422b64),_0x12c40b=_0x50c602[_0x27a0aa(0xe7)](_0x50c602['yWSIk'](_0x16f239+_0x3a949a,_0x9277ac),0xf4240);_0x50c602[_0x27a0aa(0xc4)](_0x12c40b,_0xf52900)&&(_0xf52900=_0x12c40b);}else{if(_0x50c602[_0x27a0aa(0xc5)](_0x2612a1,ID_CLUSTER))break;}}if(isUnknownSize(_0x105bcc,_0xee1ba5))break;_0x1fc82c+=_0x50c602['eIgkJ'](_0x14766f,_0xee1ba5)+_0x105bcc;}_0x167db2=_0x4fbd05;}return _0xf52900;}export function fixWebmDuration(_0x11e181,_0x1665fb){const _0x143c4e=_0x333e,_0x5d9f81={'GsBIG':function(_0x3ea706,_0x38ead8){return _0x3ea706(_0x38ead8);},'kjArn':function(_0x24be18,_0xbbc5c3,_0x4d7a57){return _0x24be18(_0xbbc5c3,_0x4d7a57);},'wediz':function(_0x2a8af6,_0x2911bd){return _0x2a8af6+_0x2911bd;},'THJCy':function(_0x5c09ec,_0x44eb31,_0x1c4cb5){return _0x5c09ec(_0x44eb31,_0x1c4cb5);},'sxGER':function(_0x2a14f4,_0x4de964){return _0x2a14f4+_0x4de964;},'BBJJh':function(_0x5abdaa,_0xaf8765){return _0x5abdaa+_0xaf8765;},'RfMcg':function(_0x3ce421,_0x2021c2){return _0x3ce421+_0x2021c2;},'GvfIO':function(_0x11d789,_0x5e59df){return _0x11d789<_0x5e59df;},'iVXsi':function(_0x4c59bc,_0x523b00,_0x2a5565){return _0x4c59bc(_0x523b00,_0x2a5565);},'ingkG':function(_0x55dc67,_0x5f11b4){return _0x55dc67===_0x5f11b4;},'evhXY':function(_0x1a8ee9,_0x32fac5){return _0x1a8ee9+_0x32fac5;},'YufXs':function(_0x3048b0,_0x32cb74){return _0x3048b0+_0x32cb74;},'hiEML':function(_0x116e53,_0x4b74d8,_0x45479b,_0x3c64c9,_0x355119){return _0x116e53(_0x4b74d8,_0x45479b,_0x3c64c9,_0x355119);},'JndYg':function(_0x5be3bd,_0x290a12,_0x11dadb,_0x270e05,_0x9c3241){return _0x5be3bd(_0x290a12,_0x11dadb,_0x270e05,_0x9c3241);},'VwfKF':function(_0x1ea50f,_0x4cc0e3,_0x52ae39,_0x5815c5){return _0x1ea50f(_0x4cc0e3,_0x52ae39,_0x5815c5);},'RndYj':function(_0x1b5e7b,_0x5baddb,_0x1fc304){return _0x1b5e7b(_0x5baddb,_0x1fc304);},'aLcMY':function(_0x48d4ed,_0x364604){return _0x48d4ed<=_0x364604;},'siLcJ':'Could\x20not\x20compute\x20duration','ExwCK':function(_0x3be06d,_0x5154cf){return _0x3be06d/_0x5154cf;},'XzivF':function(_0x56adfd,_0x2256d){return _0x56adfd<_0x2256d;},'AeOUh':function(_0x42837f,_0x430547){return _0x42837f<_0x430547;},'uagov':function(_0x2c5fee,_0xd95d7e,_0x4d086e,_0x5ebc90,_0x130f26,_0x19c88d,_0x1bf188){return _0x2c5fee(_0xd95d7e,_0x4d086e,_0x5ebc90,_0x130f26,_0x19c88d,_0x1bf188);},'UlrYz':function(_0x3b71e2,_0x537780,_0x262a3a,_0x3992c2,_0x17387d,_0x1d7224,_0x594904){return _0x3b71e2(_0x537780,_0x262a3a,_0x3992c2,_0x17387d,_0x1d7224,_0x594904);}},_0x5c9a29=_0x5d9f81[_0x143c4e(0xe8)](readFileSync,_0x11e181);let _0x8b9cfb=0x0;const [_0x520ca0,_0x5e9241]=_0x5d9f81['kjArn'](readId,_0x5c9a29,_0x8b9cfb),[_0x4e99c2,_0x5a34a0]=readVint(_0x5c9a29,_0x8b9cfb+_0x5e9241);_0x8b9cfb+=_0x5d9f81[_0x143c4e(0xbd)](_0x5e9241+_0x5a34a0,_0x4e99c2);const [_0x18aa0d,_0x5855a2]=_0x5d9f81[_0x143c4e(0xb9)](readId,_0x5c9a29,_0x8b9cfb);if(_0x18aa0d!==ID_SEGMENT)return console['error']('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x5ae126]=_0x5d9f81[_0x143c4e(0xde)](readVint,_0x5c9a29,_0x5d9f81['sxGER'](_0x8b9cfb,_0x5855a2)),_0x126a46=_0x5d9f81[_0x143c4e(0xd4)](_0x8b9cfb+_0x5855a2,_0x5ae126);let _0x348f47=_0x126a46;const _0xee88ba=Math[_0x143c4e(0xcc)](_0x5c9a29['length'],_0x5d9f81['RfMcg'](_0x126a46,0x2710));let _0x3e15b0=null,_0x41829a=null;while(_0x5d9f81[_0x143c4e(0xdc)](_0x348f47,_0xee88ba)){const [_0x7e700a,_0x20b8bf]=readId(_0x5c9a29,_0x348f47),[_0x5f2492,_0x4c916c]=_0x5d9f81['iVXsi'](readVint,_0x5c9a29,_0x348f47+_0x20b8bf);_0x7e700a===ID_VOID&&!_0x3e15b0&&(_0x3e15b0={'offset':_0x348f47,'idLen':_0x20b8bf,'sizeLen':_0x4c916c,'dataSize':_0x5f2492,'dataOffset':_0x348f47+_0x20b8bf+_0x4c916c});if(_0x5d9f81['ingkG'](_0x7e700a,ID_INFO)){_0x41829a={'offset':_0x348f47,'idLen':_0x20b8bf,'sizeLen':_0x4c916c,'dataSize':_0x5f2492,'dataOffset':_0x5d9f81['evhXY'](_0x5d9f81['YufXs'](_0x348f47,_0x20b8bf),_0x4c916c)};break;}if(_0x7e700a===ID_CLUSTER)break;if(isUnknownSize(_0x5f2492,_0x4c916c))break;_0x348f47+=_0x20b8bf+_0x4c916c+_0x5f2492;}if(!_0x41829a)return console['error'](_0x143c4e(0xae)),![];const _0x183ae5=_0x5d9f81[_0x143c4e(0xea)](findElement,_0x5c9a29,_0x41829a['dataOffset'],_0x41829a['dataOffset']+_0x41829a['dataSize'],ID_DURATION);if(_0x183ae5)return![];const _0x45ae7a=_0x5d9f81[_0x143c4e(0xd1)](findElement,_0x5c9a29,_0x41829a[_0x143c4e(0xe5)],_0x41829a['dataOffset']+_0x41829a['dataSize'],ID_TIMESTAMP_SCALE);let _0x116f3b=0xf4240;_0x45ae7a&&(_0x116f3b=_0x5d9f81['VwfKF'](readUint,_0x5c9a29,_0x45ae7a[_0x143c4e(0xe5)],_0x45ae7a['dataSize']));const _0x1006d5=_0x5d9f81[_0x143c4e(0xbb)](computeDurationMs,_0x5c9a29,_0x116f3b);if(_0x5d9f81['aLcMY'](_0x1006d5,0x0))return console[_0x143c4e(0xc2)](_0x5d9f81['siLcJ']),![];const _0x4a5f7f=_0x5d9f81[_0x143c4e(0xbf)](_0x1006d5*0xf4240,_0x116f3b),_0x544fe4=Buffer['concat']([_0x5d9f81['GsBIG'](writeId,ID_DURATION),writeVint(0x8),writeFloat64(_0x4a5f7f)]),_0x5c581f=_0x544fe4['length'];if(!_0x3e15b0||_0x5d9f81['XzivF'](_0x3e15b0[_0x143c4e(0xad)],_0x41829a['offset'])){if(_0x3e15b0){const _0x485d8f=_0x5d9f81['evhXY'](_0x3e15b0['idLen']+_0x3e15b0['sizeLen'],_0x3e15b0['dataSize']),_0x620ac9=_0x485d8f-_0x5c581f;if(_0x5d9f81[_0x143c4e(0xdf)](_0x620ac9,0x2))return _0x5d9f81['uagov'](rewriteFile,_0x5c9a29,_0x41829a,_0x544fe4,_0x116f3b,_0x1006d5,_0x1665fb);const _0x3c45a1=_0x41829a[_0x143c4e(0xac)]+_0x5c581f,_0x712d3d=Buffer[_0x143c4e(0xb4)]([_0x5d9f81[_0x143c4e(0xe8)](writeId,ID_INFO),writeVint(_0x3c45a1,_0x41829a[_0x143c4e(0xc8)])]),_0x20cfb1=_0x5c9a29['slice'](_0x41829a['dataOffset'],_0x41829a[_0x143c4e(0xe5)]+_0x41829a[_0x143c4e(0xac)]),_0x1b288b=writeVoid(_0x620ac9),_0x467bfa=_0x5c9a29[_0x143c4e(0xbc)](0x0,_0x3e15b0[_0x143c4e(0xad)]),_0x28c5c5=_0x5c9a29[_0x143c4e(0xbc)](_0x41829a[_0x143c4e(0xe5)]+_0x41829a['dataSize']);return writeFileSync(_0x1665fb,Buffer['concat']([_0x467bfa,_0x1b288b,_0x712d3d,_0x20cfb1,_0x544fe4,_0x28c5c5])),!![];}}return _0x5d9f81['UlrYz'](rewriteFile,_0x5c9a29,_0x41829a,_0x544fe4,_0x116f3b,_0x1006d5,_0x1665fb);}function rewriteFile(_0x79dfee,_0x5951be,_0x8384a,_0x3a8717,_0x1cb050,_0x27b72b){const _0x44813a=_0x333e,_0x46c379={'ytMem':function(_0x5929e3,_0x2ca343){return _0x5929e3+_0x2ca343;}},_0x2fa285=_0x46c379[_0x44813a(0xca)](_0x5951be[_0x44813a(0xac)],_0x8384a['length']),_0x2c053f=Buffer['concat']([writeId(ID_INFO),writeVint(_0x2fa285)]),_0x322e33=_0x5951be['idLen']+_0x5951be[_0x44813a(0xc8)],_0xaa408c=_0x79dfee['slice'](0x0,_0x5951be[_0x44813a(0xad)]),_0x1a3b44=_0x79dfee['slice'](_0x5951be[_0x44813a(0xe5)],_0x5951be['dataOffset']+_0x5951be['dataSize']),_0x42b3cb=_0x79dfee['slice'](_0x5951be[_0x44813a(0xad)]+_0x322e33+_0x5951be['dataSize']);return writeFileSync(_0x27b72b,Buffer['concat']([_0xaa408c,_0x2c053f,_0x1a3b44,_0x8384a,_0x42b3cb])),!![];}if(process[_0x5e1d30(0xce)][0x1]?.[_0x5e1d30(0xe9)]('fixWebmDuration.ts')||process[_0x5e1d30(0xce)][0x1]?.['endsWith'](_0x5e1d30(0xc6))){const input=process[_0x5e1d30(0xce)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x5e1d30(0xc2)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x5e1d30(0xaf)+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
const _0x41897d=_0x192b;(function(_0x4da687,_0x2f2455){const _0x6c2e1f=_0x192b,_0x3d14aa=_0x4da687();while(!![]){try{const _0x4a85ab=-parseInt(_0x6c2e1f(0xab))/0x1+-parseInt(_0x6c2e1f(0xa6))/0x2+-parseInt(_0x6c2e1f(0xb0))/0x3+-parseInt(_0x6c2e1f(0xa0))/0x4*(-parseInt(_0x6c2e1f(0xa9))/0x5)+-parseInt(_0x6c2e1f(0xb8))/0x6+parseInt(_0x6c2e1f(0x9b))/0x7*(parseInt(_0x6c2e1f(0xa7))/0x8)+-parseInt(_0x6c2e1f(0x87))/0x9*(-parseInt(_0x6c2e1f(0xa3))/0xa);if(_0x4a85ab===_0x2f2455)break;else _0x3d14aa['push'](_0x3d14aa['shift']());}catch(_0x52c980){_0x3d14aa['push'](_0x3d14aa['shift']());}}}(_0x4f36,0x2ca1d));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(_0x5a5015,_0x3f2eba){const _0x416525=_0x192b,_0x32a73d={'IEwJj':function(_0x2b8aa9,_0xf687af){return _0x2b8aa9<=_0xf687af;},'bIaEH':function(_0x3bffd0,_0x508ac7){return _0x3bffd0>_0x508ac7;},'ZlqZS':function(_0x5f3114,_0x513746){return _0x5f3114+_0x513746;},'mylqH':function(_0x3b8a10,_0x288f48){return _0x3b8a10-_0x288f48;},'fVqiL':function(_0x1d301e,_0x4d0911){return _0x1d301e<_0x4d0911;}};if(_0x3f2eba>=_0x5a5015[_0x416525(0xbf)])return[0x0,0x0];const _0xd3c5c3=_0x5a5015[_0x3f2eba];let _0x5042ff=0x1,_0x546fbe=0x80;while(_0x32a73d[_0x416525(0x99)](_0x5042ff,0x8)&&!(_0xd3c5c3&_0x546fbe)){_0x5042ff++,_0x546fbe>>=0x1;}if(_0x32a73d[_0x416525(0xbe)](_0x32a73d['ZlqZS'](_0x3f2eba,_0x5042ff),_0x5a5015['length']))return[0x0,0x0];let _0x535323=_0xd3c5c3&_0x32a73d['mylqH'](_0x546fbe,0x1);for(let _0x36278b=0x1;_0x32a73d[_0x416525(0xb1)](_0x36278b,_0x5042ff);_0x36278b++){_0x535323=_0x535323*0x100+_0x5a5015[_0x3f2eba+_0x36278b];}return[_0x535323,_0x5042ff];}function readId(_0x3f4a71,_0x754155){const _0x2c8aa0=_0x192b,_0x1765d4={'KHqiF':function(_0x4d8bb0,_0x185276){return _0x4d8bb0>=_0x185276;},'GZCnQ':function(_0x4081e9,_0x3e2180){return _0x4081e9>_0x3e2180;},'dCFfU':function(_0x42e4c5,_0x326af){return _0x42e4c5*_0x326af;},'iiuXf':function(_0x21eba2,_0x3cd412){return _0x21eba2+_0x3cd412;}};if(_0x1765d4['KHqiF'](_0x754155,_0x3f4a71[_0x2c8aa0(0xbf)]))return[0x0,0x0];const _0x274eac=_0x3f4a71[_0x754155];let _0xaa3226;if(_0x274eac>=0x80)_0xaa3226=0x1;else{if(_0x1765d4[_0x2c8aa0(0xbd)](_0x274eac,0x40))_0xaa3226=0x2;else{if(_0x274eac>=0x20)_0xaa3226=0x3;else{if(_0x274eac>=0x10)_0xaa3226=0x4;else return[_0x274eac,0x1];}}}if(_0x1765d4['GZCnQ'](_0x754155+_0xaa3226,_0x3f4a71[_0x2c8aa0(0xbf)]))return[0x0,0x0];let _0x4260cf=0x0;for(let _0x31c2b0=0x0;_0x31c2b0<_0xaa3226;_0x31c2b0++){_0x4260cf=_0x1765d4['dCFfU'](_0x4260cf,0x100)+_0x3f4a71[_0x1765d4[_0x2c8aa0(0x88)](_0x754155,_0x31c2b0)];}return[_0x4260cf,_0xaa3226];}function readUint(_0x1a8de8,_0xd539ec,_0x290c55){let _0x32a0ea=0x0;for(let _0x5e8d93=0x0;_0x5e8d93<_0x290c55;_0x5e8d93++){_0x32a0ea=_0x32a0ea*0x100+_0x1a8de8[_0xd539ec+_0x5e8d93];}return _0x32a0ea;}function isUnknownSize(_0x5a72bd,_0x1d9614){const _0x26a454=_0x192b,_0xf21b84={'KSKbZ':function(_0x187a28,_0x455cdf){return _0x187a28===_0x455cdf;},'gJElV':function(_0x2203bf,_0xc431af){return _0x2203bf*_0xc431af;}};return _0xf21b84['KSKbZ'](_0x5a72bd,Math['pow'](0x2,_0xf21b84[_0x26a454(0x85)](0x7,_0x1d9614))-0x1);}function writeId(_0x47faf2){const _0x57a212=_0x192b,_0x1b2e51={'vdmpR':function(_0x4f94ce,_0x3f870e){return _0x4f94ce<=_0x3f870e;},'sWIQk':function(_0x3cdefb,_0x35a6e7){return _0x3cdefb>>_0x35a6e7;},'lvSWq':function(_0x252007,_0x4ea60a){return _0x252007&_0x4ea60a;},'exKHM':function(_0x2d852b,_0x1205b7){return _0x2d852b&_0x1205b7;}};if(_0x47faf2<=0xff)return Buffer[_0x57a212(0x95)]([_0x47faf2]);if(_0x1b2e51[_0x57a212(0xaa)](_0x47faf2,0xffff))return Buffer['from']([_0x1b2e51[_0x57a212(0x94)](_0x47faf2,0x8)&0xff,_0x47faf2&0xff]);if(_0x47faf2<=0xffffff)return Buffer[_0x57a212(0x95)]([_0x47faf2>>0x10&0xff,_0x1b2e51[_0x57a212(0x8a)](_0x1b2e51[_0x57a212(0x94)](_0x47faf2,0x8),0xff),_0x1b2e51[_0x57a212(0xa8)](_0x47faf2,0xff)]);return Buffer[_0x57a212(0x95)]([_0x47faf2>>0x18&0xff,_0x1b2e51['sWIQk'](_0x47faf2,0x10)&0xff,_0x1b2e51[_0x57a212(0x94)](_0x47faf2,0x8)&0xff,_0x47faf2&0xff]);}function _0x4f36(){const _0x168c8b=['idLen','yDOEX','dataSize','kmgYz','852KZedKJ','ubSbQ','pAehN','5641430YCNuZI','gjkeI','alloc','84362jcEvVB','32jTEGOo','exKHM','6190JQxeYg','vdmpR','88658QhjXaG','argv','lmnnS','LLKCy','bKhjJ','581802RrwYYA','fVqiL','HMSGQ','readInt16BE','gdjTD','yqjZz','EzSoo','CtURm','2149290rkWTGX','error','sizeLen','dataOffset','TfdZd','KHqiF','bIaEH','length','hQlym','hvkcl','fixWebmDuration.ts','min','YokyX','KatSU','exit','gJElV','QHaCV','9maiqTT','iiuXf','jLAVb','lvSWq','pow','concat','floor','eIcLJ','obzOC','endsWith','NBtiL','offset','indexOf','sWIQk','from','slice','lyixv','yNFKo','IEwJj','ZfsZx','66437DfXoWs'];_0x4f36=function(){return _0x168c8b;};return _0x4f36();}function writeVint(_0x3fe421,_0x56a82a){const _0x3d6192=_0x192b,_0x2d9acd={'hvkcl':function(_0xa71cd0,_0x3048e2){return _0xa71cd0||_0x3048e2;},'KzSRV':function(_0x55a30e,_0x6e3822){return _0x55a30e<_0x6e3822;}};let _0x47f55d=_0x2d9acd[_0x3d6192(0xc1)](_0x56a82a,0x1);while(_0x2d9acd['KzSRV'](Math[_0x3d6192(0x8b)](0x2,0x7*_0x47f55d)-0x2,_0x3fe421))_0x47f55d++;const _0x4cad8f=Buffer[_0x3d6192(0xa5)](_0x47f55d);for(let _0x1dd6bc=_0x47f55d-0x1;_0x1dd6bc>=0x0;_0x1dd6bc--){_0x4cad8f[_0x1dd6bc]=_0x3fe421&0xff,_0x3fe421=Math[_0x3d6192(0x8d)](_0x3fe421/0x100);}return _0x4cad8f[0x0]|=0x1<<0x8-_0x47f55d,_0x4cad8f;}function writeFloat64(_0x3360fd){const _0x154fd1=Buffer['alloc'](0x8);return _0x154fd1['writeDoubleBE'](_0x3360fd,0x0),_0x154fd1;}function writeVoid(_0x1b8787){const _0x5d9522=_0x192b,_0x4e54f7={'LLKCy':function(_0x302cae,_0x180f6e){return _0x302cae>=_0x180f6e;},'ubSbQ':function(_0x1e5c8f,_0x34fc9e){return _0x1e5c8f<=_0x34fc9e;}};for(let _0x31daa1=0x1;_0x31daa1<=0x8;_0x31daa1++){const _0x4ed091=_0x1b8787-0x1-_0x31daa1;if(_0x4e54f7[_0x5d9522(0xae)](_0x4ed091,0x0)&&_0x4e54f7[_0x5d9522(0xa1)](_0x4ed091,Math['pow'](0x2,0x7*_0x31daa1)-0x2))return Buffer['concat']([Buffer['from']([ID_VOID]),writeVint(_0x4ed091,_0x31daa1),Buffer['alloc'](_0x4ed091)]);}return Buffer['alloc'](0x0);}function findElement(_0x581634,_0x4738ad,_0x2c0cfa,_0x264313){const _0x5ef273=_0x192b,_0x3eeb4e={'gjkeI':function(_0x4cad03,_0x312813,_0x1b2dac){return _0x4cad03(_0x312813,_0x1b2dac);},'HDIpK':function(_0x987b2,_0x2bfaac,_0x3ab5e5){return _0x987b2(_0x2bfaac,_0x3ab5e5);},'yNFKo':function(_0x2f450,_0x565992){return _0x2f450+_0x565992;}};let _0x710792=_0x4738ad;while(_0x710792<_0x2c0cfa){const [_0x59741f,_0x5a1e29]=_0x3eeb4e[_0x5ef273(0xa4)](readId,_0x581634,_0x710792),[_0x4855fc,_0x2d5358]=_0x3eeb4e['HDIpK'](readVint,_0x581634,_0x3eeb4e[_0x5ef273(0x98)](_0x710792,_0x5a1e29));if(_0x59741f===_0x264313)return{'offset':_0x710792,'idLen':_0x5a1e29,'sizeLen':_0x2d5358,'dataSize':_0x4855fc,'dataOffset':_0x3eeb4e[_0x5ef273(0x98)](_0x710792,_0x5a1e29)+_0x2d5358};if(isUnknownSize(_0x4855fc,_0x2d5358))break;_0x710792+=_0x3eeb4e[_0x5ef273(0x98)](_0x5a1e29,_0x2d5358)+_0x4855fc;}return null;}function computeDurationMs(_0x33fd02,_0x4cc812){const _0x3a03fc=_0x192b,_0x2adc13={'jLAVb':function(_0x32fc65,_0x2d6e8d){return _0x32fc65===_0x2d6e8d;},'HMSGQ':function(_0xfec444,_0x1d8868){return _0xfec444<_0x1d8868;},'EzSoo':function(_0x49e80e,_0x49e4d8,_0x623e0c){return _0x49e80e(_0x49e4d8,_0x623e0c);},'IERyW':function(_0x95e7f0,_0xe45b93){return _0x95e7f0!==_0xe45b93;},'pAehN':function(_0x59b76b,_0x37968c){return _0x59b76b+_0x37968c;},'eIcLJ':function(_0x333f6d,_0x49324c){return _0x333f6d<_0x49324c;},'NBtiL':function(_0xbb0b09,_0x32542f){return _0xbb0b09-_0x32542f;},'CNZjJ':function(_0xaff003,_0x4441ad,_0x3b2c43){return _0xaff003(_0x4441ad,_0x3b2c43);},'TfdZd':function(_0x9a1cd8,_0x48d182){return _0x9a1cd8+_0x48d182;},'VytsI':function(_0x2004ca,_0x2dd86f,_0x33aa05,_0x52d95a){return _0x2004ca(_0x2dd86f,_0x33aa05,_0x52d95a);},'VQgJl':function(_0x2a14a0,_0x2032d2){return _0x2a14a0+_0x2032d2;},'bKhjJ':function(_0x22d661,_0x54c6af,_0x4a0359){return _0x22d661(_0x54c6af,_0x4a0359);},'DvDxG':function(_0x4860d8,_0x4eee58){return _0x4860d8/_0x4eee58;},'kmgYz':function(_0xee40e4,_0x3907ee){return _0xee40e4>_0x3907ee;}};let _0x3fea4d=0x0;const _0x2810de=Buffer[_0x3a03fc(0x95)]([0x1f,0x43,0xb6,0x75]);let _0xee2b41=_0x33fd02[_0x3a03fc(0x93)](_0x2810de);if(_0x2adc13[_0x3a03fc(0x89)](_0xee2b41,-0x1))return 0x0;while(_0x2adc13[_0x3a03fc(0xb2)](_0xee2b41,_0x33fd02[_0x3a03fc(0xbf)])){const [_0x3e240a,_0x48a47a]=_0x2adc13[_0x3a03fc(0xb6)](readId,_0x33fd02,_0xee2b41);if(_0x2adc13['IERyW'](_0x3e240a,ID_CLUSTER))break;const [_0x32fca5,_0x163e9f]=readVint(_0x33fd02,_0xee2b41+_0x48a47a),_0x2a57f8=_0x2adc13[_0x3a03fc(0xa2)](_0xee2b41,_0x48a47a)+_0x163e9f,_0x1441fe=isUnknownSize(_0x32fca5,_0x163e9f);let _0x354cbc;if(_0x1441fe){let _0x15b2f7=_0x2a57f8;while(_0x2adc13[_0x3a03fc(0x8e)](_0x15b2f7,_0x2adc13[_0x3a03fc(0x91)](_0x33fd02['length'],0x4))){const [_0x3bd367,_0x33dc38]=_0x2adc13['CNZjJ'](readId,_0x33fd02,_0x15b2f7);if(_0x3bd367===ID_CLUSTER){_0x354cbc=_0x15b2f7;break;}const [_0x3cb042,_0x3d4e4c]=readVint(_0x33fd02,_0x2adc13[_0x3a03fc(0xbc)](_0x15b2f7,_0x33dc38));if(isUnknownSize(_0x3cb042,_0x3d4e4c)){_0x354cbc=_0x33fd02['length'];break;}_0x15b2f7+=_0x33dc38+_0x3d4e4c+_0x3cb042;}_0x354cbc??=_0x33fd02['length'];}else _0x354cbc=_0x2a57f8+_0x32fca5;let _0x192a4a=0x0,_0x17bd8a=_0x2a57f8;while(_0x17bd8a<_0x354cbc){const [_0x10aa5f,_0x111dc7]=_0x2adc13['CNZjJ'](readId,_0x33fd02,_0x17bd8a),[_0x49176a,_0x38bb94]=readVint(_0x33fd02,_0x17bd8a+_0x111dc7);if(_0x2adc13[_0x3a03fc(0x89)](_0x10aa5f,ID_TIMESTAMP))_0x192a4a=_0x2adc13['VytsI'](readUint,_0x33fd02,_0x2adc13['pAehN'](_0x17bd8a+_0x111dc7,_0x38bb94),_0x49176a);else{if(_0x2adc13['jLAVb'](_0x10aa5f,ID_SIMPLE_BLOCK)&&_0x49176a>=0x4){const _0x24cb4a=_0x2adc13[_0x3a03fc(0xa2)](_0x2adc13['VQgJl'](_0x17bd8a,_0x111dc7),_0x38bb94),[,_0x2bfb83]=_0x2adc13[_0x3a03fc(0xaf)](readVint,_0x33fd02,_0x24cb4a),_0x52f113=_0x33fd02[_0x3a03fc(0xb3)](_0x24cb4a+_0x2bfb83),_0x30c45a=_0x2adc13['DvDxG']((_0x192a4a+_0x52f113)*_0x4cc812,0xf4240);_0x2adc13[_0x3a03fc(0x9f)](_0x30c45a,_0x3fea4d)&&(_0x3fea4d=_0x30c45a);}else{if(_0x2adc13['jLAVb'](_0x10aa5f,ID_CLUSTER))break;}}if(isUnknownSize(_0x49176a,_0x38bb94))break;_0x17bd8a+=_0x111dc7+_0x38bb94+_0x49176a;}_0xee2b41=_0x354cbc;}return _0x3fea4d;}export function fixWebmDuration(_0x1934ec,_0x353d42){const _0x21d793=_0x192b,_0x1533bf={'QHaCV':function(_0x1ca1b2,_0x1bb3e2){return _0x1ca1b2+_0x1bb3e2;},'obzOC':function(_0x37f2f7,_0x4e443d,_0x56a6e9){return _0x37f2f7(_0x4e443d,_0x56a6e9);},'GsjGe':function(_0x258878,_0x5525bf,_0x3d3835){return _0x258878(_0x5525bf,_0x3d3835);},'lmnnS':function(_0x3fb9df,_0x4d90f9){return _0x3fb9df===_0x4d90f9;},'Ritli':function(_0x2a09f0,_0xae1d6b){return _0x2a09f0+_0xae1d6b;},'hQlym':function(_0x4e5367,_0x40c6ea){return _0x4e5367+_0x40c6ea;},'ogefI':function(_0x250545,_0x3fe1de,_0x54a067){return _0x250545(_0x3fe1de,_0x54a067);},'CtURm':function(_0x2b69c5,_0x1d47b0){return _0x2b69c5+_0x1d47b0;},'lyixv':function(_0xa3cb5b,_0x54fdd9){return _0xa3cb5b+_0x54fdd9;},'VQVDg':'Could\x20not\x20find\x20Info\x20element','gdjTD':function(_0x2b7f6b,_0x2f5c06,_0x373050,_0x28830d,_0x2f6b16){return _0x2b7f6b(_0x2f5c06,_0x373050,_0x28830d,_0x2f6b16);},'ZfsZx':function(_0x34c205,_0x19ad40,_0x37fc9a,_0x46c8be){return _0x34c205(_0x19ad40,_0x37fc9a,_0x46c8be);},'KatSU':function(_0x312fba,_0x9f2863){return _0x312fba(_0x9f2863);},'YokyX':function(_0x58a378,_0x2fb035){return _0x58a378+_0x2fb035;}},_0x46fc6e=readFileSync(_0x1934ec);let _0x247741=0x0;const [_0x290f0d,_0x5ffc93]=readId(_0x46fc6e,_0x247741),[_0x42b6f4,_0x5733b4]=readVint(_0x46fc6e,_0x1533bf['QHaCV'](_0x247741,_0x5ffc93));_0x247741+=_0x5ffc93+_0x5733b4+_0x42b6f4;const [_0x289a31,_0x213ed3]=_0x1533bf[_0x21d793(0x8f)](readId,_0x46fc6e,_0x247741);if(_0x289a31!==ID_SEGMENT)return console['error']('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x1a0d3b]=readVint(_0x46fc6e,_0x247741+_0x213ed3),_0x4b01e0=_0x247741+_0x213ed3+_0x1a0d3b;let _0xe7ece7=_0x4b01e0;const _0x8e95bc=Math[_0x21d793(0x81)](_0x46fc6e['length'],_0x1533bf['QHaCV'](_0x4b01e0,0x2710));let _0x3b7589=null,_0xe462b8=null;while(_0xe7ece7<_0x8e95bc){const [_0x31170a,_0x63c8e8]=readId(_0x46fc6e,_0xe7ece7),[_0x4462b9,_0xd11d60]=_0x1533bf['GsjGe'](readVint,_0x46fc6e,_0xe7ece7+_0x63c8e8);_0x31170a===ID_VOID&&!_0x3b7589&&(_0x3b7589={'offset':_0xe7ece7,'idLen':_0x63c8e8,'sizeLen':_0xd11d60,'dataSize':_0x4462b9,'dataOffset':_0x1533bf[_0x21d793(0x86)](_0xe7ece7+_0x63c8e8,_0xd11d60)});if(_0x1533bf[_0x21d793(0xad)](_0x31170a,ID_INFO)){_0xe462b8={'offset':_0xe7ece7,'idLen':_0x63c8e8,'sizeLen':_0xd11d60,'dataSize':_0x4462b9,'dataOffset':_0x1533bf['Ritli'](_0x1533bf[_0x21d793(0xc0)](_0xe7ece7,_0x63c8e8),_0xd11d60)};break;}if(_0x31170a===ID_CLUSTER)break;if(_0x1533bf['ogefI'](isUnknownSize,_0x4462b9,_0xd11d60))break;_0xe7ece7+=_0x1533bf[_0x21d793(0xb7)](_0x1533bf[_0x21d793(0x97)](_0x63c8e8,_0xd11d60),_0x4462b9);}if(!_0xe462b8)return console['error'](_0x1533bf['VQVDg']),![];const _0x42a2d6=findElement(_0x46fc6e,_0xe462b8[_0x21d793(0xbb)],_0xe462b8[_0x21d793(0xbb)]+_0xe462b8[_0x21d793(0x9e)],ID_DURATION);if(_0x42a2d6)return![];const _0x53b9a4=_0x1533bf[_0x21d793(0xb4)](findElement,_0x46fc6e,_0xe462b8[_0x21d793(0xbb)],_0xe462b8[_0x21d793(0xbb)]+_0xe462b8[_0x21d793(0x9e)],ID_TIMESTAMP_SCALE);let _0x32f6cf=0xf4240;_0x53b9a4&&(_0x32f6cf=_0x1533bf[_0x21d793(0x9a)](readUint,_0x46fc6e,_0x53b9a4[_0x21d793(0xbb)],_0x53b9a4['dataSize']));const _0x126459=_0x1533bf['ogefI'](computeDurationMs,_0x46fc6e,_0x32f6cf);if(_0x126459<=0x0)return console['error']('Could\x20not\x20compute\x20duration'),![];const _0x1d7bea=_0x126459*0xf4240/_0x32f6cf,_0x11931b=Buffer[_0x21d793(0x8c)]([writeId(ID_DURATION),writeVint(0x8),_0x1533bf[_0x21d793(0x83)](writeFloat64,_0x1d7bea)]),_0x29e2fb=_0x11931b['length'];if(!_0x3b7589||_0x3b7589['offset']<_0xe462b8[_0x21d793(0x92)]){if(_0x3b7589){const _0x5c33ff=_0x3b7589['idLen']+_0x3b7589['sizeLen']+_0x3b7589['dataSize'],_0xe97777=_0x5c33ff-_0x29e2fb;if(_0xe97777<0x2)return rewriteFile(_0x46fc6e,_0xe462b8,_0x11931b,_0x32f6cf,_0x126459,_0x353d42);const _0x8cf0b2=_0x1533bf['YokyX'](_0xe462b8['dataSize'],_0x29e2fb),_0xf4244f=Buffer[_0x21d793(0x8c)]([writeId(ID_INFO),writeVint(_0x8cf0b2,_0xe462b8['sizeLen'])]),_0x3a336d=_0x46fc6e[_0x21d793(0x96)](_0xe462b8[_0x21d793(0xbb)],_0x1533bf[_0x21d793(0x82)](_0xe462b8['dataOffset'],_0xe462b8['dataSize'])),_0x246fa9=_0x1533bf['KatSU'](writeVoid,_0xe97777),_0x18d0a8=_0x46fc6e[_0x21d793(0x96)](0x0,_0x3b7589[_0x21d793(0x92)]),_0x1551af=_0x46fc6e['slice'](_0xe462b8['dataOffset']+_0xe462b8[_0x21d793(0x9e)]);return _0x1533bf[_0x21d793(0x8f)](writeFileSync,_0x353d42,Buffer['concat']([_0x18d0a8,_0x246fa9,_0xf4244f,_0x3a336d,_0x11931b,_0x1551af])),!![];}}return rewriteFile(_0x46fc6e,_0xe462b8,_0x11931b,_0x32f6cf,_0x126459,_0x353d42);}function _0x192b(_0x472f2d,_0xbd6946){_0x472f2d=_0x472f2d-0x80;const _0x4f3697=_0x4f36();let _0x192b2e=_0x4f3697[_0x472f2d];return _0x192b2e;}function rewriteFile(_0x275ab9,_0x211623,_0xb7fa6a,_0x620b88,_0x21e2c6,_0x364412){const _0xf8c0e2=_0x192b,_0x210e5c={'yqjZz':function(_0x6769e6,_0x1db6d0){return _0x6769e6(_0x1db6d0);},'ElsMT':function(_0x2a1cdc,_0x5d21b7){return _0x2a1cdc+_0x5d21b7;},'EdtNC':function(_0x2c309c,_0x361e0f){return _0x2c309c+_0x361e0f;},'yDOEX':function(_0x5f281c,_0x4289a7,_0x1c548e){return _0x5f281c(_0x4289a7,_0x1c548e);}},_0x4e89fc=_0x211623[_0xf8c0e2(0x9e)]+_0xb7fa6a['length'],_0x627ae7=Buffer['concat']([writeId(ID_INFO),_0x210e5c[_0xf8c0e2(0xb5)](writeVint,_0x4e89fc)]),_0x5c68c0=_0x211623[_0xf8c0e2(0x9c)]+_0x211623[_0xf8c0e2(0xba)],_0x5d1b5e=_0x275ab9[_0xf8c0e2(0x96)](0x0,_0x211623['offset']),_0x5d58bf=_0x275ab9['slice'](_0x211623['dataOffset'],_0x210e5c['ElsMT'](_0x211623[_0xf8c0e2(0xbb)],_0x211623['dataSize'])),_0x5b3ef9=_0x275ab9['slice'](_0x210e5c['EdtNC'](_0x211623[_0xf8c0e2(0x92)]+_0x5c68c0,_0x211623['dataSize']));return _0x210e5c[_0xf8c0e2(0x9d)](writeFileSync,_0x364412,Buffer[_0xf8c0e2(0x8c)]([_0x5d1b5e,_0x627ae7,_0x5d58bf,_0xb7fa6a,_0x5b3ef9])),!![];}if(process['argv'][0x1]?.[_0x41897d(0x90)](_0x41897d(0x80))||process[_0x41897d(0xac)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0x41897d(0xac)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x41897d(0xb9)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x41897d(0x84)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2776e7,_0x1db7a2){const _0x5c5a9c=_0x5c73,_0x18deac=_0x2776e7();while(!![]){try{const _0x32c2f2=parseInt(_0x5c5a9c(0x131))/0x1+-parseInt(_0x5c5a9c(0x13b))/0x2+parseInt(_0x5c5a9c(0x135))/0x3+-parseInt(_0x5c5a9c(0x139))/0x4*(parseInt(_0x5c5a9c(0x138))/0x5)+parseInt(_0x5c5a9c(0x134))/0x6+-parseInt(_0x5c5a9c(0x137))/0x7*(-parseInt(_0x5c5a9c(0x132))/0x8)+-parseInt(_0x5c5a9c(0x130))/0x9;if(_0x32c2f2===_0x1db7a2)break;else _0x18deac['push'](_0x18deac['shift']());}catch(_0x82c95a){_0x18deac['push'](_0x18deac['shift']());}}}(_0x23fe,0x6d024));import{execSync}from'child_process';export function getGitBranch(){const _0x3241fd=_0x5c73,_0x1fdca0={'AejPY':function(_0xdda80a,_0x3cbbaf,_0x38c89d){return _0xdda80a(_0x3cbbaf,_0x38c89d);},'LbSUJ':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','GvtsN':_0x3241fd(0x133)};try{return _0x1fdca0[_0x3241fd(0x13a)](execSync,_0x1fdca0['LbSUJ'],{'encoding':_0x3241fd(0x12f),'stdio':[_0x3241fd(0x133),'pipe',_0x1fdca0['GvtsN']]})['trim']();}catch{return undefined;}}function _0x5c73(_0x21a91e,_0x2695d5){_0x21a91e=_0x21a91e-0x12d;const _0x23fe27=_0x23fe();let _0x5c73d2=_0x23fe27[_0x21a91e];return _0x5c73d2;}function _0x23fe(){const _0x5502df=['KVhPc','github.com/','replace','utf-8','3286791bLOzqM','97173wfAtXi','2013112qpkBkw','pipe','3331008FIDsFs','2058501YINwHS','git\x20remote\x20get-url\x20origin','21FtmlXM','5555glwNLd','1984SSRxfD','AejPY','1461340NPecme'];_0x23fe=function(){return _0x5502df;};return _0x23fe();}export function getGitRepoUrl(){const _0xaa484d=_0x5c73,_0x32fb9d={'KVhPc':_0xaa484d(0x136),'UuLsg':'utf-8','WmcYx':_0xaa484d(0x133),'GUlCu':_0xaa484d(0x12d)};try{const _0x4d323f=execSync(_0x32fb9d[_0xaa484d(0x13c)],{'encoding':_0x32fb9d['UuLsg'],'stdio':['pipe','pipe',_0x32fb9d['WmcYx']]})['trim']();return _0x4d323f['replace'](/\.git$/,'')[_0xaa484d(0x12e)](/^git@github\.com:/,_0x32fb9d['GUlCu'])['replace'](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x3de2e7={'BEleB':function(_0x49363f){return _0x49363f();}};return{'branch':getGitBranch(),'repoUrl':_0x3de2e7['BEleB'](getGitRepoUrl)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x982464=_0x523d;(function(_0x4f2ae1,_0x4756d2){const _0x1ce866=_0x523d,_0x230c2d=_0x4f2ae1();while(!![]){try{const _0x2fdfed=parseInt(_0x1ce866(0x75))/0x1+parseInt(_0x1ce866(0x98))/0x2+-parseInt(_0x1ce866(0x76))/0x3*(-parseInt(_0x1ce866(0x70))/0x4)+parseInt(_0x1ce866(0x7d))/0x5*(parseInt(_0x1ce866(0x72))/0x6)+parseInt(_0x1ce866(0x95))/0x7+parseInt(_0x1ce866(0x94))/0x8*(parseInt(_0x1ce866(0x7e))/0x9)+parseInt(_0x1ce866(0x9a))/0xa*(-parseInt(_0x1ce866(0x84))/0xb);if(_0x2fdfed===_0x4756d2)break;else _0x230c2d['push'](_0x230c2d['shift']());}catch(_0x6a5ed){_0x230c2d['push'](_0x230c2d['shift']());}}}(_0x9abc,0xa491f));const _0xd87a2b=(function(){let _0x4454aa=!![];return function(_0x1b510b,_0x9dddd5){const _0x26644c=_0x4454aa?function(){const _0x40885f=_0x523d;if(_0x9dddd5){const _0x4ef2ee=_0x9dddd5[_0x40885f(0x8c)](_0x1b510b,arguments);return _0x9dddd5=null,_0x4ef2ee;}}:function(){};return _0x4454aa=![],_0x26644c;};}()),_0x38c9ca=_0xd87a2b(this,function(){const _0x17deae=_0x523d,_0x2e9502={'YCYtt':_0x17deae(0x9d)};return _0x38c9ca[_0x17deae(0x8d)]()[_0x17deae(0x83)](_0x17deae(0x9d))['toString']()[_0x17deae(0x7b)](_0x38c9ca)[_0x17deae(0x83)](_0x2e9502['YCYtt']);});_0x38c9ca();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x982464(0x97),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x982464(0x7c)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x982464(0x8a));function isGitHubCI(){const _0x55499e=_0x982464;return!!process[_0x55499e(0x91)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x229bfe,_0x68a415){const _0x45e0cb=_0x982464,_0x44559e={'BWjce':function(_0x44c2af,_0x91e42,_0x308411){return _0x44c2af(_0x91e42,_0x308411);}},_0x306431=process[_0x45e0cb(0x91)][_0x45e0cb(0x99)];_0x306431&&await _0x44559e['BWjce'](appendFile,_0x306431,_0x229bfe+'='+_0x68a415+'\x0a');}export async function storeToken(_0x11f363){const _0x515c0c=_0x982464,_0x22e629={'iODXQ':function(_0x41afa2){return _0x41afa2();},'zoaKM':function(_0x72dc36,_0x149cb4,_0x30886a){return _0x72dc36(_0x149cb4,_0x30886a);},'cRsVt':function(_0x35a4a4,_0x51d6c2,_0x14dff3,_0x41c90d){return _0x35a4a4(_0x51d6c2,_0x14dff3,_0x41c90d);}};_0x22e629[_0x515c0c(0x96)](isGitHubCI)?await _0x22e629[_0x515c0c(0x9b)](writeToGitHubEnv,ENV_TOKEN,_0x11f363):(await _0x22e629[_0x515c0c(0x9b)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x22e629['cRsVt'](writeFile,TOKEN_PATH,_0x11f363,{'mode':0x180}));}function _0x9abc(){const _0x350481=['BLbpze4','nty3mKzgwuDmsG','mZC0oda1ovPfqKzpqG','Au9ewfe','uKfor0vsx0nmsv9ut0TftG','mJm2otG2ngneCgPhuW','r0Lusfvcx0vovG','odK5mgrStwHREG','EM9Hs00','uuDQzwK','kcGOlISPkYKRksSK','mJy0nhrQzMDLuq','Ae9XB2q','mJqXndu1me9xsxfosq','wMr3y0m','vMPAsM8','nti0ntaXBg5hq3vq','ntm0ourhr3jyzq','veXvzK4','DxrMltG','zKHMDvi','s3vvtgO','y29UC3rYDwn0B3i','y2XPlNr4Da','nxnsy3fhDq','mtq4nvjmCuvSra','DhjPBq','zerbBuO','ru5YEwm','r3PkAgS','C2vHCMnO','mZK5otzts2DXwva','z1jwtLu','z2nhAue','yxn6yKW','AxzZBxG','shPeBeG','CMvMCMvZAc50Ehq','sLLbBge','yxbWBhK','Dg9tDhjPBMC','s3PSDxy','CevHDwC','zvLQAhm','zw52','yLPku2W'];_0x9abc=function(){return _0x350481;};return _0x9abc();}export async function getToken(){const _0x4cc071=_0x982464,_0x518cd4={'lsDym':function(_0x489cf6,_0x5b8953){return _0x489cf6===_0x5b8953;},'pEaug':_0x4cc071(0x74),'QGjei':'oTrmB','bZJSl':function(_0x518d3f,_0x2d7a30){return _0x518d3f!==_0x2d7a30;},'hOqod':_0x4cc071(0x82),'TLUfN':'svVQd','nPOdN':function(_0x4111ed,_0x40c202,_0x4defca){return _0x4111ed(_0x40c202,_0x4defca);},'ENryc':_0x4cc071(0x78)};if(process[_0x4cc071(0x91)][ENV_TOKEN]){if(_0x518cd4['lsDym'](_0x518cd4[_0x4cc071(0x8f)],_0x518cd4[_0x4cc071(0x9c)])){if(_0x40e2fe){const _0x10e078=_0x3e350c[_0x4cc071(0x8c)](_0x527483,arguments);return _0x428acb=null,_0x10e078;}}else return process[_0x4cc071(0x91)][ENV_TOKEN];}if(process['env'][ENV_TOKEN_LEGACY])return process[_0x4cc071(0x91)][ENV_TOKEN_LEGACY];try{if(_0x518cd4[_0x4cc071(0x92)](_0x518cd4[_0x4cc071(0x71)],_0x518cd4[_0x4cc071(0x77)])){const _0xa385b=await _0x518cd4[_0x4cc071(0x93)](readFile,TOKEN_PATH,_0x518cd4[_0x4cc071(0x81)]);return _0xa385b['trim']()||null;}else return!!_0xea0dd7['env'][_0x4cc071(0x99)];}catch{return null;}}function _0x523d(_0x4a4c0f,_0x3285b4){_0x4a4c0f=_0x4a4c0f-0x70;const _0x4c7ec3=_0x9abc();let _0x38c9ca=_0x4c7ec3[_0x4a4c0f];if(_0x523d['jksnXE']===undefined){var _0xd87a2b=function(_0x3998be){const _0x5bdbe7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21c310='',_0x1368cf='',_0x219e59=_0x21c310+_0xd87a2b;for(let _0x45a78b=0x0,_0x363a9b,_0x56e268,_0x3e5ba6=0x0;_0x56e268=_0x3998be['charAt'](_0x3e5ba6++);~_0x56e268&&(_0x363a9b=_0x45a78b%0x4?_0x363a9b*0x40+_0x56e268:_0x56e268,_0x45a78b++%0x4)?_0x21c310+=_0x219e59['charCodeAt'](_0x3e5ba6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x363a9b>>(-0x2*_0x45a78b&0x6)):_0x45a78b:0x0){_0x56e268=_0x5bdbe7['indexOf'](_0x56e268);}for(let _0x5fce30=0x0,_0x3bf15f=_0x21c310['length'];_0x5fce30<_0x3bf15f;_0x5fce30++){_0x1368cf+='%'+('00'+_0x21c310['charCodeAt'](_0x5fce30)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1368cf);};_0x523d['kwNxnr']=_0xd87a2b,_0x523d['RZGElL']={},_0x523d['jksnXE']=!![];}const _0x9abc0c=_0x4c7ec3[0x0],_0x523d98=_0x4a4c0f+_0x9abc0c,_0x3e9911=_0x523d['RZGElL'][_0x523d98];if(!_0x3e9911){const _0x6c313f=function(_0x171bfa){this['LnYkCG']=_0x171bfa,this['yYfdtk']=[0x1,0x0,0x0],this['kWZAeV']=function(){return'newState';},this['RqsBSW']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['NlRFJz']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x6c313f['prototype']['jIWqtc']=function(){const _0x12cdd2=new RegExp(this['RqsBSW']+this['NlRFJz']),_0x184b81=_0x12cdd2['test'](this['kWZAeV']['toString']())?--this['yYfdtk'][0x1]:--this['yYfdtk'][0x0];return this['TFdAEm'](_0x184b81);},_0x6c313f['prototype']['TFdAEm']=function(_0x108393){if(!Boolean(~_0x108393))return _0x108393;return this['UcpnqA'](this['LnYkCG']);},_0x6c313f['prototype']['UcpnqA']=function(_0x25c24e){for(let _0x2629b5=0x0,_0x3b64fe=this['yYfdtk']['length'];_0x2629b5<_0x3b64fe;_0x2629b5++){this['yYfdtk']['push'](Math['round'](Math['random']())),_0x3b64fe=this['yYfdtk']['length'];}return _0x25c24e(this['yYfdtk'][0x0]);},new _0x6c313f(_0x523d)['jIWqtc'](),_0x38c9ca=_0x523d['kwNxnr'](_0x38c9ca),_0x523d['RZGElL'][_0x523d98]=_0x38c9ca;}else _0x38c9ca=_0x3e9911;return _0x38c9ca;}export async function deleteToken(){const _0x15ea4b=_0x982464,_0x5c6b48={'HzDlH':function(_0x2d6b3f,_0x7fca30){return _0x2d6b3f(_0x7fca30);}};try{return await _0x5c6b48[_0x15ea4b(0x89)](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x5f2a11){const _0x291727=_0x982464,_0x5abb07={'aszbL':function(_0x5d649a,_0x2d9ba7,_0x4af4ed){return _0x5d649a(_0x2d9ba7,_0x4af4ed);},'KuULj':function(_0x5287a2,_0x4eb20c,_0x463ecd,_0x5bd319){return _0x5287a2(_0x4eb20c,_0x463ecd,_0x5bd319);}};await _0x5abb07[_0x291727(0x87)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x5abb07[_0x291727(0x7a)](writeFile,REFRESH_TOKEN_PATH,_0x5f2a11,{'mode':0x180});}export async function getRefreshToken(){const _0x1bf79b=_0x982464,_0x4928a0={'aDWtn':function(_0x4a6d97,_0x14e063){return _0x4a6d97===_0x14e063;},'Kzluv':_0x1bf79b(0x79),'gcGiA':_0x1bf79b(0x78)};try{if(_0x4928a0['aDWtn'](_0x1bf79b(0x80),_0x4928a0[_0x1bf79b(0x8e)]))return _0x1d94b3[_0x1bf79b(0x91)][_0x478560];else{const _0x1c4da1=await readFile(REFRESH_TOKEN_PATH,_0x4928a0[_0x1bf79b(0x86)]);return _0x1c4da1[_0x1bf79b(0x7f)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){const _0x5e4b3e=_0x982464,_0x2aa1f4={'SgrYh':function(_0x7e4b0e,_0x1de63d){return _0x7e4b0e===_0x1de63d;},'ivsmx':_0x5e4b3e(0x85),'ZdwcC':_0x5e4b3e(0x8b),'eYjhs':function(_0x83b75a,_0x2b8956){return _0x83b75a(_0x2b8956);}};try{return _0x2aa1f4['SgrYh'](_0x2aa1f4[_0x5e4b3e(0x88)],_0x2aa1f4[_0x5e4b3e(0x73)])?![]:(await _0x2aa1f4[_0x5e4b3e(0x90)](unlink,REFRESH_TOKEN_PATH),!![]);}catch{return![];}}export async function deleteAllCredentials(){await deleteToken(),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21588e,_0x4a6128){const _0x25be20=_0x4835,_0xd43f27=_0x21588e();while(!![]){try{const _0x44b795=parseInt(_0x25be20(0x13d))/0x1*(-parseInt(_0x25be20(0x14f))/0x2)+parseInt(_0x25be20(0x139))/0x3*(-parseInt(_0x25be20(0x160))/0x4)+parseInt(_0x25be20(0x14e))/0x5+parseInt(_0x25be20(0x156))/0x6*(parseInt(_0x25be20(0x13b))/0x7)+-parseInt(_0x25be20(0x155))/0x8+parseInt(_0x25be20(0x150))/0x9*(-parseInt(_0x25be20(0x138))/0xa)+parseInt(_0x25be20(0x14a))/0xb;if(_0x44b795===_0x4a6128)break;else _0xd43f27['push'](_0xd43f27['shift']());}catch(_0x968618){_0xd43f27['push'](_0xd43f27['shift']());}}}(_0x2c2a,0x947c2));const _0x1cf8c3=(function(){const _0x4b7d5c=_0x4835,_0x17136f={'FVMAt':_0x4b7d5c(0x15e),'RPChV':'nHpes','xoPjp':function(_0x42657a,_0x504935){return _0x42657a!==_0x504935;},'Dckmn':_0x4b7d5c(0x141),'SHiYv':_0x4b7d5c(0x152)};let _0xf0a004=!![];return function(_0xc46152,_0x4824e3){const _0x12074f=_0x4b7d5c,_0xd7d79c={'syQim':function(_0x3b311c,_0x4f7caa){return _0x3b311c===_0x4f7caa;},'UTWWd':_0x17136f['FVMAt'],'UlFTa':_0x17136f[_0x12074f(0x154)],'AbeUO':function(_0x53f7f5,_0x2bcd14){const _0x3c9bd9=_0x12074f;return _0x17136f[_0x3c9bd9(0x14b)](_0x53f7f5,_0x2bcd14);},'SDGis':_0x17136f[_0x12074f(0x144)],'rmhCW':_0x17136f[_0x12074f(0x159)]},_0x22f447=_0xf0a004?function(){const _0x553336=_0x12074f;if(_0xd7d79c[_0x553336(0x15f)](_0xd7d79c['UTWWd'],_0xd7d79c[_0x553336(0x15b)])){const _0x2fe4f5=_0x514f65[_0x553336(0x158)](_0x1cbdfc,arguments);return _0x2dd7ea=null,_0x2fe4f5;}else{if(_0x4824e3){if(_0xd7d79c[_0x553336(0x153)](_0xd7d79c[_0x553336(0x149)],_0xd7d79c[_0x553336(0x15c)])){const _0x571993=_0x4824e3[_0x553336(0x158)](_0xc46152,arguments);return _0x4824e3=null,_0x571993;}else return;}}}:function(){};return _0xf0a004=![],_0x22f447;};}()),_0x5ce2be=_0x1cf8c3(this,function(){const _0x349dae=_0x4835,_0x12e3a8={'tgieJ':_0x349dae(0x14c)};return _0x5ce2be[_0x349dae(0x151)]()['search'](_0x349dae(0x14c))[_0x349dae(0x151)]()[_0x349dae(0x140)](_0x5ce2be)[_0x349dae(0x143)](_0x12e3a8[_0x349dae(0x146)]);});_0x5ce2be();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x4835(_0x452f0d,_0x3eb594){_0x452f0d=_0x452f0d-0x138;const _0x1d8535=_0x2c2a();let _0x5ce2be=_0x1d8535[_0x452f0d];if(_0x4835['UghDlN']===undefined){var _0x1cf8c3=function(_0x3ca43f){const _0x1534ca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a9cce='',_0x3b4db2='',_0x285449=_0x5a9cce+_0x1cf8c3;for(let _0x3e2634=0x0,_0x3f02f0,_0x57ff77,_0x1a5d44=0x0;_0x57ff77=_0x3ca43f['charAt'](_0x1a5d44++);~_0x57ff77&&(_0x3f02f0=_0x3e2634%0x4?_0x3f02f0*0x40+_0x57ff77:_0x57ff77,_0x3e2634++%0x4)?_0x5a9cce+=_0x285449['charCodeAt'](_0x1a5d44+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3f02f0>>(-0x2*_0x3e2634&0x6)):_0x3e2634:0x0){_0x57ff77=_0x1534ca['indexOf'](_0x57ff77);}for(let _0x2fa04e=0x0,_0x12ad50=_0x5a9cce['length'];_0x2fa04e<_0x12ad50;_0x2fa04e++){_0x3b4db2+='%'+('00'+_0x5a9cce['charCodeAt'](_0x2fa04e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b4db2);};_0x4835['MEwONO']=_0x1cf8c3,_0x4835['PMpUeE']={},_0x4835['UghDlN']=!![];}const _0x2c2aa0=_0x1d8535[0x0],_0x4835e6=_0x452f0d+_0x2c2aa0,_0xb4452f=_0x4835['PMpUeE'][_0x4835e6];if(!_0xb4452f){const _0x2c27f3=function(_0x50f9e){this['VVCvJG']=_0x50f9e,this['OTZXWU']=[0x1,0x0,0x0],this['ifWAdE']=function(){return'newState';},this['LyWLLV']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['UZLsng']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2c27f3['prototype']['FmJrjR']=function(){const _0x5782d5=new RegExp(this['LyWLLV']+this['UZLsng']),_0x546740=_0x5782d5['test'](this['ifWAdE']['toString']())?--this['OTZXWU'][0x1]:--this['OTZXWU'][0x0];return this['HPOAwE'](_0x546740);},_0x2c27f3['prototype']['HPOAwE']=function(_0x5a316b){if(!Boolean(~_0x5a316b))return _0x5a316b;return this['Lpaabr'](this['VVCvJG']);},_0x2c27f3['prototype']['Lpaabr']=function(_0x2b1a9b){for(let _0x1b9c5b=0x0,_0x1623e4=this['OTZXWU']['length'];_0x1b9c5b<_0x1623e4;_0x1b9c5b++){this['OTZXWU']['push'](Math['round'](Math['random']())),_0x1623e4=this['OTZXWU']['length'];}return _0x2b1a9b(this['OTZXWU'][0x0]);},new _0x2c27f3(_0x4835)['FmJrjR'](),_0x5ce2be=_0x4835['MEwONO'](_0x5ce2be),_0x4835['PMpUeE'][_0x4835e6]=_0x5ce2be;}else _0x5ce2be=_0xb4452f;return _0x5ce2be;}function _0x2c2a(){const _0x123880=['ndC0meL4zLDxzG','ndqXodDQrfjYvu0','z2PmqM8','nJaYsxLnq1fH','D1fICMO','nJa4s2zdrffr','zxjYB3i','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','y29UC3rYDwn0B3i','z2HRq1m','z09SteS','C2vHCMnO','rgnRBw4','qMvHCMvYia','DgDPzuO','C0jKq3q','ChH5tgq','u0rhAxm','mZa4otKXnZztyuzxruS','Eg9qANa','kcGOlISPkYKRksSK','wfvSv0C','mtaWmJe0mg5hvvvpua','mJK2nKrPy1zkqG','mtC1mtrNsgrhC1y','Dg9tDhjPBMC','y1LXvwq','qwjLvu8','uLbdAfy','ndK3ndu4neLpvwD3Da','nZe5nJrgy05zvgi','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','yxbWBhK','u0HPwxy','vxnwsKC','vwXgvge','CM1Oq1C','Dgv4Da','tfDgzfe','C3LrAw0','mJy4tMDKAKn6'];_0x2c2a=function(){return _0x123880;};return _0x2c2a();}export async function logLocalAgentInstallation(_0x40d84a,_0x40f495,_0x5670cf){const _0x449693=_0x4835,_0x43f910={'XUlWG':_0x449693(0x14c),'RKTKy':function(_0x469dc8){return _0x469dc8();},'pxyLd':function(_0x3420a2){return _0x3420a2();},'gOlLK':'POST','MDnUw':'application/json','gjLBo':function(_0x350841,_0x12b382){return _0x350841===_0x12b382;},'UsVJG':'pmkcx','wQbrj':_0x449693(0x147)},_0x16ac3d=await _0x43f910['RKTKy'](getToken);if(!_0x16ac3d)return;const _0x567e08=_0x43f910[_0x449693(0x148)](getApiBaseUrl),_0x4311af=await fetch(_0x567e08+_0x449693(0x157),{'method':_0x43f910[_0x449693(0x142)],'headers':{'Authorization':_0x449693(0x145)+_0x16ac3d,'Content-Type':_0x43f910['MDnUw']},'body':JSON['stringify']({'skillName':_0x40d84a,'cliVersion':_0x5670cf,'metadata':_0x40f495})});if(!_0x4311af['ok']){if(_0x43f910[_0x449693(0x13a)](_0x43f910[_0x449693(0x15a)],_0x43f910[_0x449693(0x13c)]))return _0x494aa9['toString']()[_0x449693(0x143)](uZMxql[_0x449693(0x14d)])[_0x449693(0x151)]()[_0x449693(0x140)](_0x29016c)['search'](uZMxql[_0x449693(0x14d)]);else{const _0x145143=await _0x4311af[_0x449693(0x15d)]();console[_0x449693(0x13e)](_0x449693(0x13f)+_0x145143);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39c1dc,_0x2d0863){const _0x2ed256=_0x3273,_0x5c38ee=_0x39c1dc();while(!![]){try{const _0x5c34b7=-parseInt(_0x2ed256(0x11e))/0x1+-parseInt(_0x2ed256(0x136))/0x2*(parseInt(_0x2ed256(0x134))/0x3)+-parseInt(_0x2ed256(0x13c))/0x4*(parseInt(_0x2ed256(0x14b))/0x5)+parseInt(_0x2ed256(0x149))/0x6+-parseInt(_0x2ed256(0x147))/0x7+-parseInt(_0x2ed256(0x142))/0x8+parseInt(_0x2ed256(0x13a))/0x9;if(_0x5c34b7===_0x2d0863)break;else _0x5c38ee['push'](_0x5c38ee['shift']());}catch(_0xbdee77){_0x5c38ee['push'](_0x5c38ee['shift']());}}}(_0x3471,0x4f9cc));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 isRecord(_0x242078){const _0x2f94b2=_0x3273,_0x45a3c9={'vtYlr':_0x2f94b2(0x123)};return typeof _0x242078===_0x45a3c9[_0x2f94b2(0x11d)]&&_0x242078!==null;}function isImageBlock(_0x3abec2){const _0xd71578=_0x3273,_0x4f1297={'sQIHR':function(_0x1b9668,_0x2c35a2){return _0x1b9668(_0x2c35a2);},'teOnH':function(_0x5eda32,_0x5aea35){return _0x5eda32===_0x5aea35;},'BLTvK':'image'};return _0x4f1297[_0xd71578(0x13d)](isRecord,_0x3abec2)&&_0x4f1297['teOnH'](_0x3abec2[_0xd71578(0x14a)],_0x4f1297['BLTvK']);}function isDataUrl(_0x4cdbc4){const _0x83d04b=_0x3273;return _0x4cdbc4[_0x83d04b(0x135)]('data:');}function _0x3273(_0x5e85ec,_0x4dfbd7){_0x5e85ec=_0x5e85ec-0x119;const _0x34718e=_0x3471();let _0x3273ca=_0x34718e[_0x5e85ec];return _0x3273ca;}function parseDataUrl(_0x190f6a){const _0x54296a=_0x3273,_0x5cdb62=/^data:([^;]+);base64,(.+)$/[_0x54296a(0x138)](_0x190f6a);if(!_0x5cdb62)return null;const _0x2acff7=_0x5cdb62[0x1]['toLowerCase']();if(!isValidMediaType(_0x2acff7))return null;return{'data':_0x5cdb62[0x2],'mediaType':_0x2acff7};}function isValidMediaType(_0x5b0fb4){const _0x3f0c6c=_0x3273,_0x2cf705={'PNdLW':'image/jpeg','WPjBj':'image/gif'};return[_0x2cf705[_0x3f0c6c(0x119)],'image/png',_0x2cf705[_0x3f0c6c(0x125)],_0x3f0c6c(0x146)]['includes'](_0x5b0fb4);}function inferMediaType(_0x45ab93,_0x25c0de){const _0x4f324d=_0x3273,_0x7221d9={'flXRZ':function(_0x408bb1,_0x458616){return _0x408bb1(_0x458616);},'UGmHd':_0x4f324d(0x13f),'iSgWt':'image/jpeg','SBSHC':'png','QxLhx':_0x4f324d(0x13e)};if(_0x45ab93){const _0x50a28c=_0x45ab93[_0x4f324d(0x12a)]()[_0x4f324d(0x122)](';')[0x0]['trim']();if(_0x7221d9['flXRZ'](isValidMediaType,_0x50a28c))return _0x50a28c;}const _0x15f419=extname(_0x25c0de)['toLowerCase']()[_0x4f324d(0x143)]('.','');switch(_0x15f419){case'jpg':case _0x7221d9['UGmHd']:return _0x7221d9['iSgWt'];case _0x7221d9[_0x4f324d(0x141)]:return _0x4f324d(0x126);case _0x7221d9['QxLhx']:return'image/gif';case _0x4f324d(0x144):return _0x4f324d(0x146);default:return'image/png';}}async function readImageFromUrl(_0x47e5d2){const _0x52cd75=_0x3273,_0x5366e7={'hzIee':function(_0x8fcc3f,_0x4366c4){return _0x8fcc3f(_0x4366c4);},'TzvSc':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','MvfWw':function(_0xb0aad0,_0x159e02,_0x17c4c2){return _0xb0aad0(_0x159e02,_0x17c4c2);},'CkGch':_0x52cd75(0x14e),'JUwPX':_0x52cd75(0x120),'owwHi':_0x52cd75(0x128),'FTIFk':'content-type','PRJTF':function(_0x338f11,_0x22fe94){return _0x338f11(_0x22fe94);},'YTsJL':function(_0x58ac2b,_0x1d75ad,_0x3635e7){return _0x58ac2b(_0x1d75ad,_0x3635e7);}};if(_0x5366e7[_0x52cd75(0x124)](isDataUrl,_0x47e5d2)){const _0x5c6392=_0x5366e7[_0x52cd75(0x124)](parseDataUrl,_0x47e5d2);if(_0x5c6392)return _0x5c6392;throw new Error(_0x5366e7[_0x52cd75(0x14d)]);}if(_0x47e5d2['startsWith']('file://')){const _0x4faaf7=_0x5366e7[_0x52cd75(0x124)](fileURLToPath,_0x47e5d2),_0x12748e=await stat(_0x4faaf7);if(_0x12748e['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x52cd75(0x139)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xb70bb4=await _0x5366e7['hzIee'](readFile,_0x4faaf7);return{'data':_0xb70bb4[_0x52cd75(0x11b)](_0x52cd75(0x128)),'mediaType':_0x5366e7[_0x52cd75(0x132)](inferMediaType,null,_0x4faaf7)};}if(_0x47e5d2[_0x52cd75(0x135)]('http://')||_0x47e5d2[_0x52cd75(0x135)](_0x5366e7[_0x52cd75(0x13b)])){const _0x538dd7=await fetch(_0x47e5d2,{'signal':AbortSignal[_0x52cd75(0x11f)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x538dd7['ok'])throw new Error(_0x52cd75(0x12f)+_0x538dd7['status']);const _0x11f209=_0x538dd7['headers'][_0x52cd75(0x11a)](_0x5366e7['JUwPX']);if(_0x11f209){const _0x1ee5e8=Number(_0x11f209);if(!Number['isNaN'](_0x1ee5e8)&&_0x1ee5e8>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x4ad7c2=await _0x538dd7[_0x52cd75(0x140)]();if(_0x4ad7c2['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x52cd75(0x139)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x4ad7c2)[_0x52cd75(0x11b)](_0x5366e7[_0x52cd75(0x145)]),'mediaType':_0x5366e7[_0x52cd75(0x132)](inferMediaType,_0x538dd7[_0x52cd75(0x133)]['get'](_0x5366e7['FTIFk']),_0x47e5d2)};}const _0x216c47=await stat(_0x47e5d2);if(_0x216c47[_0x52cd75(0x127)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x52cd75(0x139)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x304dad=await _0x5366e7['PRJTF'](readFile,_0x47e5d2);return{'data':_0x304dad['toString'](_0x5366e7[_0x52cd75(0x145)]),'mediaType':_0x5366e7['YTsJL'](inferMediaType,null,_0x47e5d2)};}async function convertImageBlockToBase64(_0x5ef341){const _0x466fad=_0x3273,_0x5f126b={'cLWoV':function(_0xd833f9,_0x476ccc){return _0xd833f9===_0x476ccc;},'jPYZc':_0x466fad(0x128)};if(_0x5f126b[_0x466fad(0x130)](_0x5ef341['source']?.['type'],'base64'))return{'updated':![],'block':_0x5ef341};if(_0x5ef341[_0x466fad(0x148)]&&_0x5ef341['mimeType'])return{'updated':![],'block':_0x5ef341};const _0x129928=_0x5ef341[_0x466fad(0x12d)]?.['url']??_0x5ef341[_0x466fad(0x12b)];if(!_0x129928)return{'updated':![],'block':_0x5ef341};const _0x1798fc=await readImageFromUrl(_0x129928);return{'updated':!![],'block':{..._0x5ef341,'source':{'type':_0x5f126b[_0x466fad(0x121)],'media_type':_0x1798fc['mediaType'],'data':_0x1798fc['data']},'url':undefined}};}function _0x3471(){const _0x1b4c57=['22565jhPczc','tool_response','TzvSc','https://','PNdLW','get','toString','updated','vtYlr','220523tIINjp','timeout','content-length','jPYZc','split','object','hzIee','WPjBj','image/png','size','base64','PostToolUse','toLowerCase','url','all','source','iKOtL','Failed\x20to\x20fetch\x20image:\x20','cLWoV','map','MvfWw','headers','1071iPXQqB','startsWith','338zERBfG','yHIYR','exec','Image\x20exceeds\x20size\x20limit\x20(','8405262Epjzox','CkGch','96VXWQTn','sQIHR','gif','jpeg','arrayBuffer','SBSHC','4687368ALqmYL','replace','webp','owwHi','image/webp','839643ipmcuN','data','2923272gkTSCY','type'];_0x3471=function(){return _0x1b4c57;};return _0x3471();}async function convertToolOutputImagesToBase64(_0x4710e5){const _0x28a63e=_0x3273,_0x4bb042={'jpQUd':function(_0x6eca89,_0x3143bd){return _0x6eca89(_0x3143bd);},'bhAsU':function(_0x3ebf3a,_0x4680b9){return _0x3ebf3a(_0x4680b9);}};if(!_0x4bb042['bhAsU'](isRecord,_0x4710e5))return{'updated':![],'output':_0x4710e5};const _0x3e48cc=_0x4710e5['content'];if(!Array['isArray'](_0x3e48cc))return{'updated':![],'output':_0x4710e5};let _0x53d847=![];const _0x4670a9=await Promise[_0x28a63e(0x12c)](_0x3e48cc[_0x28a63e(0x131)](async _0x32ac4a=>{const _0x1314d8=_0x28a63e;if(!_0x4bb042['jpQUd'](isImageBlock,_0x32ac4a))return _0x32ac4a;try{const _0x566e7a=await convertImageBlockToBase64(_0x32ac4a);if(_0x566e7a[_0x1314d8(0x11c)])_0x53d847=!![];return _0x566e7a['block'];}catch{return _0x32ac4a;}}));if(!_0x53d847)return{'updated':![],'output':_0x4710e5};return{'updated':!![],'output':{..._0x4710e5,'content':_0x4670a9}};}export function createMcpImageBase64Hook(){const _0x580dbb=_0x3273,_0x3b2cea={'yHIYR':function(_0x411af4,_0x42c09f){return _0x411af4!==_0x42c09f;},'iKOtL':_0x580dbb(0x129)};return async _0x227005=>{const _0x1da81c=_0x580dbb;if(_0x3b2cea[_0x1da81c(0x137)](_0x227005['hook_event_name'],_0x1da81c(0x129)))return{};const _0x447e88=_0x227005,{updated:_0xf6ef00,output:_0x58d69f}=await convertToolOutputImagesToBase64(_0x447e88[_0x1da81c(0x14c)]);if(!_0xf6ef00)return{};return{'hookSpecificOutput':{'hookEventName':_0x3b2cea[_0x1da81c(0x12e)],'updatedMCPToolOutput':_0x58d69f}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40856d=_0x5f39;(function(_0x26ce2e,_0x17c556){const _0x51ac8f=_0x5f39,_0x49e0e8=_0x26ce2e();while(!![]){try{const _0x46de57=-parseInt(_0x51ac8f(0xab))/0x1+-parseInt(_0x51ac8f(0xa7))/0x2+parseInt(_0x51ac8f(0xac))/0x3+parseInt(_0x51ac8f(0xa6))/0x4+-parseInt(_0x51ac8f(0xaa))/0x5+parseInt(_0x51ac8f(0xa9))/0x6+parseInt(_0x51ac8f(0xaf))/0x7;if(_0x46de57===_0x17c556)break;else _0x49e0e8['push'](_0x49e0e8['shift']());}catch(_0x5b652a){_0x49e0e8['push'](_0x49e0e8['shift']());}}}(_0x3047,0xa51c6));function _0x5f39(_0x150f50,_0x5627c4){_0x150f50=_0x150f50-0xa6;const _0x30477=_0x3047();let _0x5f39fe=_0x30477[_0x150f50];return _0x5f39fe;}function _0x3047(){const _0x81ebce=['5351740kOHzHe','536964ofDyKs','trim','1396734RXpwzL','4483125JKRblh','1291309rUEgGV','3962802YXxqLe','toLowerCase','claude-sonnet-4-6','1687364pZWmoN'];_0x3047=function(){return _0x81ebce;};return _0x3047();}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x40856d(0xae)};export const DEFAULT_VERIFY_MODEL=_0x40856d(0xae);export function resolveVerifyModel(_0x1f73fb){const _0x28ff76=_0x40856d,_0x17bf21={'uFLPy':function(_0x5665c8,_0xe012f2){return _0x5665c8??_0xe012f2;}};if(!_0x1f73fb)return undefined;const _0x2b951b=_0x1f73fb[_0x28ff76(0xa8)]();if(!_0x2b951b)return undefined;const _0x59fd50=VERIFY_MODEL_ALIASES[_0x2b951b[_0x28ff76(0xad)]()];return _0x17bf21['uFLPy'](_0x59fd50,_0x2b951b);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5b01f7,_0x4eca2c){var _0x329480=_0x11c3,_0x5bf8a0=_0x5b01f7();while(!![]){try{var _0x500dde=-parseInt(_0x329480(0x17a))/0x1*(parseInt(_0x329480(0x181))/0x2)+-parseInt(_0x329480(0x17d))/0x3*(-parseInt(_0x329480(0x183))/0x4)+parseInt(_0x329480(0x173))/0x5*(parseInt(_0x329480(0x17c))/0x6)+-parseInt(_0x329480(0x17f))/0x7+parseInt(_0x329480(0x185))/0x8*(parseInt(_0x329480(0x186))/0x9)+parseInt(_0x329480(0x177))/0xa+parseInt(_0x329480(0x17e))/0xb;if(_0x500dde===_0x4eca2c)break;else _0x5bf8a0['push'](_0x5bf8a0['shift']());}catch(_0x1d5169){_0x5bf8a0['push'](_0x5bf8a0['shift']());}}}(_0x5c62,0x9f499));import{homedir}from'os';import{join}from'path';function _0x11c3(_0x2b9f43,_0x23647d){_0x2b9f43=_0x2b9f43-0x173;var _0x5c6202=_0x5c62();var _0x11c372=_0x5c6202[_0x2b9f43];return _0x11c372;}import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x36ceb6){var _0x5212f5=_0x11c3,_0x2c491e={'WGilG':function(_0x33e8bf,_0x1d04b1){return _0x33e8bf===_0x1d04b1;},'wnbGF':_0x5212f5(0x175),'RIKSm':function(_0x44208f,_0x15f8b2,_0x2a5f27,_0x56206a){return _0x44208f(_0x15f8b2,_0x2a5f27,_0x56206a);},'ToAxb':function(_0x42773f){return _0x42773f();},'EKgKg':'opencode','WhNCQ':'.opencode'};if(process[_0x5212f5(0x179)]['OPENCODE_CONFIG_DIR'])return process[_0x5212f5(0x179)][_0x5212f5(0x180)];if(_0x2c491e['WGilG'](_0x36ceb6,_0x2c491e[_0x5212f5(0x182)])){if(process[_0x5212f5(0x179)][_0x5212f5(0x176)])return join(process['env']['XDG_CONFIG_HOME'],'opencode');return _0x2c491e['RIKSm'](join,_0x2c491e[_0x5212f5(0x184)](homedir),'.config',_0x2c491e[_0x5212f5(0x174)]);}return join(getProjectRoot(),_0x2c491e['WhNCQ']);}export function getOpencodeSkillsDir(_0x3e3411){var _0x22a61b=_0x11c3,_0x20d5af={'aJzjf':function(_0x55a0f7,_0x36b484,_0x1d5d76){return _0x55a0f7(_0x36b484,_0x1d5d76);}};return _0x20d5af[_0x22a61b(0x17b)](join,getOpencodeConfigDir(_0x3e3411),_0x22a61b(0x178));}function _0x5c62(){var _0x22e622=['6599690kqWJXg','skills','env','2192IVwWud','aJzjf','28620PkZtyX','177MTFOvC','1630112wMDuqh','3024203ZAiHKg','OPENCODE_CONFIG_DIR','214wNpRvd','wnbGF','12548QiUcJL','ToAxb','40632WUetIm','180dGaMcH','235RYqlGw','EKgKg','user','XDG_CONFIG_HOME'];_0x5c62=function(){return _0x22e622;};return _0x5c62();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x47fa86,_0x44ad57){const _0x178584=_0x4285,_0x27a95b=_0x47fa86();while(!![]){try{const _0x22deff=-parseInt(_0x178584(0xfd))/0x1*(-parseInt(_0x178584(0xff))/0x2)+-parseInt(_0x178584(0x111))/0x3+-parseInt(_0x178584(0x106))/0x4*(-parseInt(_0x178584(0xee))/0x5)+parseInt(_0x178584(0x110))/0x6*(parseInt(_0x178584(0x10d))/0x7)+-parseInt(_0x178584(0xf0))/0x8*(-parseInt(_0x178584(0x114))/0x9)+-parseInt(_0x178584(0xfb))/0xa+parseInt(_0x178584(0x117))/0xb*(parseInt(_0x178584(0x108))/0xc);if(_0x22deff===_0x44ad57)break;else _0x27a95b['push'](_0x27a95b['shift']());}catch(_0x51a513){_0x27a95b['push'](_0x27a95b['shift']());}}}(_0x4bf7,0x80baf));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x2c1522){const _0x4a5e50=_0x4285,_0x554866={'AwHLQ':function(_0x18ec63,_0x26618b){return _0x18ec63(_0x26618b);},'Slpvy':'hex'},_0x4b971e=_0x554866[_0x4a5e50(0x104)](createHash,_0x4a5e50(0x115))[_0x4a5e50(0xf5)](_0x2c1522)['digest'](_0x554866[_0x4a5e50(0xe4)])[_0x4a5e50(0xeb)](0x0,0xc);return'rg-'+_0x4b971e;}function shellQuote(_0x1eb108){return'\x27'+_0x1eb108['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x4f7c0f){const _0xb4a286=_0x4285;return SAFE_SHELL_TOKEN[_0xb4a286(0xf2)](_0x4f7c0f)?_0x4f7c0f:shellQuote(_0x4f7c0f);}function _0x4285(_0x44d03c,_0x4eff82){_0x44d03c=_0x44d03c-0xe2;const _0x4bf726=_0x4bf7();let _0x428562=_0x4bf726[_0x44d03c];return _0x428562;}export function buildPlaywrightCliInvocation(_0x14efdb,_0x38f90d,_0x30dbd3){const _0x31f875=_0x4285,_0x10e537={'MbHup':_0x31f875(0x107),'DWcTX':function(_0x5d9627,_0x2948cc){return _0x5d9627(_0x2948cc);}},_0x5cf7b7=toPlaywrightCliSessionKey(_0x14efdb),[_0x301861=_0x31f875(0xf7)]=_0x30dbd3,_0x549a4c=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x5cf7b7,_0x31f875(0xe8),_0x38f90d,..._0x30dbd3];return{'command':_0x31f875(0x107),'args':_0x549a4c,'shellCommand':[_0x10e537[_0x31f875(0xe7)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x10e537[_0x31f875(0xf4)](quoteShellArg,_0x5cf7b7),_0x31f875(0xe8),_0x10e537['DWcTX'](quoteShellArg,_0x38f90d),..._0x30dbd3[_0x31f875(0xef)](quoteShellArg)][_0x31f875(0xf6)]('\x20'),'subcommand':_0x301861};}export function buildPlaywrightCliCommandPrefix(_0x1d0f77,_0x59f3f4){const _0x46a281=_0x4285,_0x1f6d10={'SUvHt':_0x46a281(0xe8)},_0x310438=toPlaywrightCliSessionKey(_0x1d0f77);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x310438),_0x1f6d10[_0x46a281(0x100)],quoteShellArg(_0x59f3f4)][_0x46a281(0xf6)]('\x20');}function truncateOutput(_0x9b253d,_0x3eb29f=0x7d0){const _0xa1669b=_0x4285,_0x1089c4={'TnuCf':function(_0x4a9187,_0x41ef7f){return _0x4a9187>_0x41ef7f;},'jheRE':function(_0x9c745,_0x4e5ac3){return _0x9c745+_0x4e5ac3;},'YBJcb':'...'};return _0x1089c4['TnuCf'](_0x9b253d['length'],_0x3eb29f)?_0x1089c4['jheRE'](_0x9b253d['slice'](0x0,_0x3eb29f),_0x1089c4[_0xa1669b(0xfa)]):_0x9b253d;}function _0x4bf7(){const _0x2b9fde=['cwd','Slpvy','\x0astdout:\x20','timed\x20out\x20after\x20','MbHup','--config','playwright-cli\x20','CyBBI','slice','toString','string','3432575MMizeV','map','259288GQvkoe','KXLfg','test','env','DWcTX','update','join','unknown','script','aJTXy','YBJcb','6226190mKCneA','trim','91021VSmVAs','OgQKS','10ldYuko','SUvHt','xjpyp','pipe','stderr','AwHLQ','data','4UNlsqn','npx','12ZkdghT','sessionId','null','command','SIGTERM','31787TdtboK','match','timeoutMs','906Fbinxa','2827377EUZkRH','commandArgs','wyHPM','36fRudFp','sha256','args','1489422Cdekkl','length','kill'];_0x4bf7=function(){return _0x2b9fde;};return _0x4bf7();}export async function runPlaywrightCliCommand(_0x1425a0){const _0x53822d=_0x4285,_0x42fbae={'wyHPM':function(_0x123cfe,_0x33013e){return _0x123cfe===_0x33013e;},'KXLfg':function(_0x381e2e,_0x17d761,_0x4f9145,_0x2b60e3){return _0x381e2e(_0x17d761,_0x4f9145,_0x2b60e3);},'aJTXy':_0x53822d(0x102),'xjpyp':_0x53822d(0x105)},_0x4cad0b=buildPlaywrightCliInvocation(_0x1425a0[_0x53822d(0x109)],_0x1425a0['configPath'],_0x1425a0[_0x53822d(0x112)]);return new Promise((_0x14356a,_0x527258)=>{const _0x547563=_0x53822d,_0x24ad1a={'RVhQw':function(_0x4ed977,_0x5f54a7){return _0x4ed977(_0x5f54a7);},'CyBBI':function(_0x17487c,_0x43cb41){const _0x373aec=_0x4285;return _0x42fbae[_0x373aec(0x113)](_0x17487c,_0x43cb41);},'armCn':_0x547563(0x10a),'OgQKS':function(_0x3983c0,_0x5d887b){return _0x3983c0(_0x5d887b);}},_0x1af3cc=_0x42fbae[_0x547563(0xf1)](spawn,_0x4cad0b[_0x547563(0x10b)],_0x4cad0b[_0x547563(0x116)],{'cwd':_0x1425a0[_0x547563(0xe3)],'env':_0x1425a0[_0x547563(0xf3)],'stdio':['ignore',_0x42fbae[_0x547563(0xf9)],_0x42fbae['aJTXy']]});let _0x22bf3d='',_0x6c52e2='',_0x1d7075=![];const _0x4bda0d=_0x1425a0[_0x547563(0x10f)]&&_0x1425a0['timeoutMs']>0x0?setTimeout(()=>{const _0x4f0701=_0x547563;_0x1d7075=!![],_0x1af3cc[_0x4f0701(0xe2)](_0x4f0701(0x10c)),setTimeout(()=>{try{_0x1af3cc['kill']('SIGKILL');}catch{}},0x3e8);},_0x1425a0[_0x547563(0x10f)]):null;_0x1af3cc['stdout']?.['on'](_0x42fbae[_0x547563(0x101)],_0x3e5b7f=>{_0x22bf3d+=_0x3e5b7f['toString']();}),_0x1af3cc[_0x547563(0x103)]?.['on']('data',_0x14f0f7=>{const _0xd904a7=_0x547563;_0x6c52e2+=_0x14f0f7[_0xd904a7(0xec)]();}),_0x1af3cc['on']('error',_0x337c8f=>{if(_0x4bda0d)clearTimeout(_0x4bda0d);_0x527258(_0x337c8f);}),_0x1af3cc['on']('close',(_0x4fae01,_0x212e53)=>{const _0x5b3a44=_0x547563;if(_0x4bda0d)_0x24ad1a['RVhQw'](clearTimeout,_0x4bda0d);if(_0x24ad1a[_0x5b3a44(0xea)](_0x4fae01,0x0)){_0x14356a({'stdout':_0x22bf3d,'stderr':_0x6c52e2,'invocation':_0x4cad0b});return;}const _0x3f2852=_0x1d7075?_0x5b3a44(0xe6)+_0x1425a0[_0x5b3a44(0x10f)]+'ms':'exited\x20with\x20code='+(_0x4fae01??_0x24ad1a['armCn'])+'\x20signal='+(_0x212e53??'null');_0x527258(new Error(_0x5b3a44(0xe9)+_0x4cad0b['subcommand']+'\x20'+_0x3f2852+_0x5b3a44(0xe5)+_0x24ad1a[_0x5b3a44(0xfe)](truncateOutput,_0x22bf3d)+'\x0astderr:\x20'+_0x24ad1a['OgQKS'](truncateOutput,_0x6c52e2)));});});}export function extractBashCommand(_0x5b943c){const _0x467057=_0x4285,_0x119eb6={'KBcIN':_0x467057(0x10b),'ewATc':'cmd','SYWxt':'bash_command','pnTPc':function(_0x5a8dfe,_0x1f1900){return _0x5a8dfe??_0x1f1900;}},_0x330f12=[_0x119eb6['KBcIN'],_0x119eb6['ewATc'],_0x467057(0xf8),_0x119eb6['SYWxt']];for(const _0x5d0d16 of _0x330f12){const _0x4625ba=_0x5b943c[_0x5d0d16];if(typeof _0x4625ba===_0x467057(0xed)&&_0x4625ba[_0x467057(0xfc)]())return _0x4625ba;}const _0x3ba8df=Object['values'](_0x5b943c)['find'](_0x25ab2c=>typeof _0x25ab2c==='string'&&_0x25ab2c['trim']()[_0x467057(0x118)]>0x0);return _0x119eb6['pnTPc'](_0x3ba8df,null);}export function parsePlaywrightCliCommand(_0x1b41a2){const _0x446c55=_0x4285,_0x195c1d=_0x1b41a2[_0x446c55(0x10e)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x195c1d?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x8f37(_0x41abaf,_0x347d87){_0x41abaf=_0x41abaf-0x88;const _0x397c26=_0x397c();let _0x8f379a=_0x397c26[_0x41abaf];return _0x8f379a;}function _0x397c(){const _0x51dceb=['869250AagTXc','255320BrCjPl','9GuVlDH','27MNxWzX','1190634XuYaLc','2750bCyatZ','12ASrFWQ','14cxkrpq','2106490QJNRUc','3232801ckyAIh','658576VXwyna'];_0x397c=function(){return _0x51dceb;};return _0x397c();}(function(_0x4f9fb2,_0x5acbac){const _0x149fe5=_0x8f37,_0x535870=_0x4f9fb2();while(!![]){try{const _0x437163=-parseInt(_0x149fe5(0x92))/0x1*(-parseInt(_0x149fe5(0x89))/0x2)+parseInt(_0x149fe5(0x8a))/0x3*(-parseInt(_0x149fe5(0x90))/0x4)+-parseInt(_0x149fe5(0x8f))/0x5+parseInt(_0x149fe5(0x88))/0x6+parseInt(_0x149fe5(0x8b))/0x7*(-parseInt(_0x149fe5(0x8e))/0x8)+-parseInt(_0x149fe5(0x91))/0x9*(-parseInt(_0x149fe5(0x8c))/0xa)+parseInt(_0x149fe5(0x8d))/0xb;if(_0x437163===_0x5acbac)break;else _0x535870['push'](_0x535870['shift']());}catch(_0x451ba5){_0x535870['push'](_0x535870['shift']());}}}(_0x397c,0x23b72));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x7910e5){const _0x16f8f8=_0x7910e5?_0x7910e5(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x16f8f8+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x536e3c,_0x2c500d){const _0x418aa0=_0x5652,_0x440817=_0x536e3c();while(!![]){try{const _0x3baa25=parseInt(_0x418aa0(0x1cd))/0x1*(parseInt(_0x418aa0(0x1d5))/0x2)+parseInt(_0x418aa0(0x1dd))/0x3*(parseInt(_0x418aa0(0x1d0))/0x4)+-parseInt(_0x418aa0(0x1d8))/0x5*(parseInt(_0x418aa0(0x1e0))/0x6)+-parseInt(_0x418aa0(0x1d4))/0x7*(-parseInt(_0x418aa0(0x1db))/0x8)+parseInt(_0x418aa0(0x1cc))/0x9*(-parseInt(_0x418aa0(0x1d7))/0xa)+-parseInt(_0x418aa0(0x1d2))/0xb*(-parseInt(_0x418aa0(0x1ce))/0xc)+-parseInt(_0x418aa0(0x1d3))/0xd;if(_0x3baa25===_0x2c500d)break;else _0x440817['push'](_0x440817['shift']());}catch(_0x33a6e9){_0x440817['push'](_0x440817['shift']());}}}(_0x1d54,0x38768));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x1f8b11=_0x5652,_0x57d960={'VXNjf':function(_0xcde265,_0x198da1){return _0xcde265+_0x198da1;},'wrOfV':'<div\x20class=\x22ranger-banner__content\x22>','EsMAw':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','ZzfQl':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','nyZOE':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','clyUA':'</div>','XfLHi':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x43c934=_0x57d960['VXNjf'](_0x57d960[_0x1f8b11(0x1dc)]+_0x57d960['EsMAw']+'<div\x20class=\x22ranger-banner__message\x22>'+_0x57d960['ZzfQl'],_0x57d960[_0x1f8b11(0x1de)])+_0x57d960['clyUA']+_0x57d960[_0x1f8b11(0x1d9)]+_0x57d960['XfLHi'],_0x4d597f='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x1f8b11(0x1cf)+JSON[_0x1f8b11(0x1df)](_0x43c934)+_0x1f8b11(0x1d1)+JSON[_0x1f8b11(0x1df)](_0x4d597f)+_0x1f8b11(0x1da);})());function _0x5652(_0x478532,_0x25aab1){_0x478532=_0x478532-0x1cc;const _0x1d54c8=_0x1d54();let _0x565298=_0x1d54c8[_0x478532];return _0x565298;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x1d54(){const _0x326620=['clyUA',';\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','352miiJlx','wrOfV','1326057PpVkfP','nyZOE','stringify','6dVLNxU','1422cuYzBr','21biJRgb','34872rIhZYC','\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','4IyHsyH',';\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','1628OPYdvB','5836688YuQFWa','2198eoohWn','28802VjMkxT','addInitScript','15460QdeQYz','1319140CVHUxD'];_0x1d54=function(){return _0x326620;};return _0x1d54();}export async function addProfileSetupBanner(_0x160ffb){const _0x40f100=_0x5652;await _0x160ffb[_0x40f100(0x1d6)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1623cd,_0x3e22cd){const _0x1f74a6=_0x3aaf,_0xd9ec59=_0x1623cd();while(!![]){try{const _0x2ed605=parseInt(_0x1f74a6(0x1c1))/0x1*(-parseInt(_0x1f74a6(0x1c2))/0x2)+parseInt(_0x1f74a6(0x1af))/0x3*(-parseInt(_0x1f74a6(0x1b6))/0x4)+-parseInt(_0x1f74a6(0x1b0))/0x5*(-parseInt(_0x1f74a6(0x1bc))/0x6)+-parseInt(_0x1f74a6(0x1be))/0x7+parseInt(_0x1f74a6(0x1bd))/0x8*(parseInt(_0x1f74a6(0x1b3))/0x9)+-parseInt(_0x1f74a6(0x1bf))/0xa+parseInt(_0x1f74a6(0x1ba))/0xb;if(_0x2ed605===_0x3e22cd)break;else _0xd9ec59['push'](_0xd9ec59['shift']());}catch(_0x4737cb){_0xd9ec59['push'](_0xd9ec59['shift']());}}}(_0x4cec,0x666fe));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x4cec(){const _0x6b1297=['6087128KVmCNE','4608450KoFKFG','1218400aPyjGa','qBjwh','743803Qmmvss','2MAyLlu','537807nxXsCz','121160BLtgVS','parse','model','9oVpZof','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','warn','4BGZWIz','isArray','string','utf-8','8317683KUgBPg','message','150bcpzuK'];_0x4cec=function(){return _0x6b1297;};return _0x4cec();}function _0x3aaf(_0x4a7441,_0x247f2a){_0x4a7441=_0x4a7441-0x1af;const _0x4cecf4=_0x4cec();let _0x3aafe5=_0x4cecf4[_0x4a7441];return _0x3aafe5;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x40b22f={'KPXZl':function(_0x50ef50,_0x10cd7b,_0x3fac1b){return _0x50ef50(_0x10cd7b,_0x3fac1b);},'mSPkp':function(_0x4b2cd4){return _0x4b2cd4();},'AdtXB':'config.json'};return _0x40b22f['KPXZl'](join,_0x40b22f['mSPkp'](getRangerDir),_0x40b22f['AdtXB']);}export async function loadRangerConfig(){const _0x34a994=_0x3aaf,_0x198e29={'XTwTU':function(_0x9bef18){return _0x9bef18();},'SkTwC':function(_0x8636df,_0x3da6a5,_0xcf7e2){return _0x8636df(_0x3da6a5,_0xcf7e2);},'Wwcwq':function(_0x3d79a8,_0x15db9c){return _0x3d79a8!==_0x15db9c;},'qBjwh':'object','Lhwbd':function(_0x2f5100,_0xfe979f){return _0x2f5100===_0xfe979f;},'KQpwg':function(_0x2faed0,_0x278f2b){return _0x2faed0 instanceof _0x278f2b;},'ETYTL':function(_0x5c2d64,_0x2c600f){return _0x5c2d64(_0x2c600f);}},_0x2165f8=_0x198e29['XTwTU'](getRangerConfigPath);if(!existsSync(_0x2165f8))return{};try{const _0x291aca=await _0x198e29['SkTwC'](readFile,_0x2165f8,_0x34a994(0x1b9)),_0x2ae923=JSON[_0x34a994(0x1b1)](_0x291aca);if(!_0x2ae923||_0x198e29['Wwcwq'](typeof _0x2ae923,_0x198e29[_0x34a994(0x1c0)])||Array[_0x34a994(0x1b7)](_0x2ae923))return{};const _0x69d8a8={},_0x3bb46c=_0x2ae923[_0x34a994(0x1b2)];return _0x198e29['Lhwbd'](typeof _0x3bb46c,_0x34a994(0x1b8))&&(_0x69d8a8[_0x34a994(0x1b2)]=_0x3bb46c),_0x69d8a8;}catch(_0x515355){const _0x15b31c=_0x198e29['KQpwg'](_0x515355,Error)?_0x515355[_0x34a994(0x1bb)]:_0x198e29['ETYTL'](String,_0x515355);return console[_0x34a994(0x1b5)](_0x34a994(0x1b4)+_0x2165f8+':\x20'+_0x15b31c),{};}}
|