@ranger-testing/ranger-cli 2.1.0 → 2.1.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/README.md +10 -1
- 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 -0
- package/build/commands/utils/model.js +1 -0
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -0
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/build/skills/ranger/SKILL.md +16 -14
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x25dc07,_0x40a4d3){const _0x1820a8=_0x563c,_0x11cf0f=_0x25dc07();while(!![]){try{const _0x3fdeb2=parseInt(_0x1820a8(0xe9))/0x1+parseInt(_0x1820a8(0xdd))/0x2*(-parseInt(_0x1820a8(0x116))/0x3)+parseInt(_0x1820a8(0x10c))/0x4+parseInt(_0x1820a8(0x114))/0x5*(-parseInt(_0x1820a8(0x10a))/0x6)+-parseInt(_0x1820a8(0xef))/0x7*(-parseInt(_0x1820a8(0xe4))/0x8)+-parseInt(_0x1820a8(0xe2))/0x9*(parseInt(_0x1820a8(0xf3))/0xa)+parseInt(_0x1820a8(0x111))/0xb*(-parseInt(_0x1820a8(0xda))/0xc);if(_0x3fdeb2===_0x40a4d3)break;else _0x11cf0f['push'](_0x11cf0f['shift']());}catch(_0x1b59c6){_0x11cf0f['push'](_0x11cf0f['shift']());}}}(_0x3aae,0xd9eab));function _0x3aae(){const _0x3bfc28=['Completed','WgbQq','80448AwqrIj','-\x20**Reason:**\x20','currentSession','5266vYTCNB','push','filter','xPFPo','toLocaleDateString','1081926TjdlGh','closed','592lYgfAR','ZvDXA','Wydde','join','YVQXY','1468299GjHNgM','GQBuB','traceUrl','**:\x20','None','checklistItemId','103796ASLqLt','floor','verifiedAt','ejQKS','60GMaBeq','completedAt','createdAt','No\x20Session','-\x20**Blocked:**\x20','pending',':\x20In\x20Progress','##\x20Blocking\x20Issues','arFZP','sort','completed','XxJDD','numeric','durationMs','ready','-\x20**Verified:**\x20','status','aNpKX','blocked','-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work','length','N/A','verified','25668kSfqiW','Session\x20','4329860jqLFUJ','in_progress','hJMwL','blockedReason','find','2376QgSeBX','##\x20Description','description','565abfBFu','blockedAt','117Qvqbyd','\x20|\x20','closedAt','**Branch:**\x20','short','gitRepoUrl','position','gitBranch'];_0x3aae=function(){return _0x3bfc28;};return _0x3aae();}function _0x563c(_0x1d9c23,_0x3d86d7){_0x1d9c23=_0x1d9c23-0xd8;const _0x3aaef1=_0x3aae();let _0x563cb8=_0x3aaef1[_0x1d9c23];return _0x563cb8;}export function buildTraceViewerUrl(_0x2c4755){const _0x37865c=encodeURIComponent(_0x2c4755);return'https://trace.playwright.dev/?trace='+_0x37865c;}function getStatusEmoji(_0x57ea0f){const _0x205774=_0x563c,_0x15ac10={'HYMWP':'verified','GQBuB':'completed','Hybyp':_0x205774(0xf8)};switch(_0x57ea0f){case _0x15ac10['HYMWP']:case _0x15ac10[_0x205774(0xea)]:return'✅';case _0x15ac10['Hybyp']:case _0x205774(0x10d):return'🔄';case'incomplete':return'🟠';case _0x205774(0x105):return'🛑';case _0x205774(0xe3):return'⛔';default:return'❓';}}function formatDuration(_0x273678){const _0x12b623=_0x563c,_0x5d3ab2={'ejQKS':function(_0x54a737,_0x333da6){return _0x54a737===_0x333da6;},'XxJDD':function(_0x5cf100,_0x7227ac){return _0x5cf100/_0x7227ac;}};if(_0x5d3ab2[_0x12b623(0xf2)](_0x273678,null)||_0x273678===undefined)return'N/A';if(_0x273678<0x3e8)return _0x273678+'ms';const _0xfff725=Math['floor'](_0x273678/0x3e8);if(_0xfff725<0x3c)return _0xfff725+'s';const _0x617960=Math[_0x12b623(0xf0)](_0x5d3ab2[_0x12b623(0xfe)](_0xfff725,0x3c)),_0x121431=_0xfff725%0x3c;return _0x617960+'m\x20'+_0x121431+'s';}function formatDate(_0x5f27c8){const _0x58176f=_0x563c,_0x7553d4={'QPVXC':'N/A','Wydde':'en-US','kgsJj':_0x58176f(0x11a)};if(!_0x5f27c8)return _0x7553d4['QPVXC'];return new Date(_0x5f27c8)[_0x58176f(0xe1)](_0x7553d4[_0x58176f(0xe6)],{'year':_0x58176f(0xff),'month':_0x7553d4['kgsJj'],'day':_0x58176f(0xff)});}export function generateFeatureReport(_0x25bab0){const _0x35e1f6=_0x563c,_0x33872e={'qczsE':_0x35e1f6(0xd8),'AfeVr':_0x35e1f6(0x10d),'ZvDXA':_0x35e1f6(0xf6),'xPFPo':_0x35e1f6(0x112),'nZuSY':_0x35e1f6(0xe3),'WgbQq':function(_0x4ec156,_0x36c0a2){return _0x4ec156===_0x36c0a2;},'mrIZQ':function(_0x122263,_0xcd076f){return _0x122263===_0xcd076f;},'QvZXG':function(_0x2db278,_0x481fcb){return _0x2db278(_0x481fcb);},'vHOvt':'##\x20Blocking\x20Issues','aNpKX':function(_0x3379cc,_0x63f881){return _0x3379cc>_0x63f881;},'YVQXY':'##\x20All\x20Verification\x20Sessions','DYRPC':'|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','hJMwL':'...','arFZP':_0x35e1f6(0x108),'zExpC':function(_0x25673b,_0x25a9db){return _0x25673b===_0x25a9db;},'OvfTm':_0x35e1f6(0xfd),'cmlfB':function(_0x5501c7,_0x1fa5a9){return _0x5501c7(_0x1fa5a9);}},{feature:_0x28f159,stats:_0x3e9fca,checklistItems:_0x471415,sessions:_0x514dc4}=_0x25bab0,_0x3b4003=[];_0x3b4003[_0x35e1f6(0xde)]('#\x20Feature\x20Review\x20Report:\x20'+_0x28f159['name']),_0x3b4003['push']('');let _0x53da13,_0x34ce84;if(_0x28f159[_0x35e1f6(0xf4)])_0x53da13=_0x33872e['qczsE'],_0x34ce84='✅';else{if(_0x28f159['currentSession']){const _0x2dac91=_0x28f159[_0x35e1f6(0xdc)][_0x35e1f6(0x103)];switch(_0x2dac91){case _0x35e1f6(0x101):_0x53da13=_0x35e1f6(0x10b)+_0x28f159[_0x35e1f6(0xdc)]['iteration']+':\x20Ready',_0x34ce84='▶️';break;case _0x33872e['AfeVr']:_0x53da13='Session\x20'+_0x28f159['currentSession']['iteration']+_0x35e1f6(0xf9),_0x34ce84='🔄';break;case'completed':_0x53da13=_0x35e1f6(0x10b)+_0x28f159[_0x35e1f6(0xdc)]['iteration']+':\x20Awaiting\x20Review',_0x34ce84='📊';break;default:_0x53da13='Unknown',_0x34ce84='❓';}}else _0x53da13=_0x33872e[_0x35e1f6(0xe5)],_0x34ce84='⬜';}_0x3b4003['push']('**Status:**\x20'+_0x34ce84+'\x20'+_0x53da13),_0x3b4003['push']('**Created:**\x20'+formatDate(_0x28f159['createdAt']));_0x28f159[_0x35e1f6(0xf4)]&&_0x3b4003['push']('**Completed:**\x20'+formatDate(_0x28f159[_0x35e1f6(0xf4)]));_0x28f159[_0x35e1f6(0x11b)]&&_0x3b4003[_0x35e1f6(0xde)]('**Repository:**\x20'+_0x28f159[_0x35e1f6(0x11b)]);_0x28f159[_0x35e1f6(0x11d)]&&_0x3b4003['push'](_0x35e1f6(0x119)+_0x28f159['gitBranch']);_0x3b4003[_0x35e1f6(0xde)]('');_0x28f159['description']&&(_0x3b4003['push'](_0x33872e[_0x35e1f6(0xe0)]),_0x3b4003[_0x35e1f6(0xde)](''),_0x3b4003['push'](_0x28f159[_0x35e1f6(0x113)]),_0x3b4003['push'](''));const _0xc8504b=_0x471415['filter'](_0x577552=>_0x577552['status']!=='closed'),_0xd0187f=_0x471415[_0x35e1f6(0xdf)](_0x52b6a2=>_0x52b6a2[_0x35e1f6(0x103)]===_0x35e1f6(0x109))[_0x35e1f6(0x107)];_0x3b4003[_0x35e1f6(0xde)]('##\x20Scenario\x20Progress\x20('+_0xd0187f+'/'+_0xc8504b[_0x35e1f6(0x107)]+'\x20verified)'),_0x3b4003[_0x35e1f6(0xde)]('');const _0x22a8ad=[..._0x471415][_0x35e1f6(0xfc)]((_0x2f2404,_0x52091e)=>_0x2f2404[_0x35e1f6(0x11c)]-_0x52091e[_0x35e1f6(0x11c)]);for(const _0xc02920 of _0x22a8ad){const _0x3f8bfe=getStatusEmoji(_0xc02920[_0x35e1f6(0x103)]),_0x9a1853=_0xc02920['status']===_0x33872e['nZuSY'],_0x4f206a=_0x9a1853?'~~':'',_0xbf9df3=_0x9a1853?'~~':'';_0x3b4003['push']('###\x20'+_0x3f8bfe+'\x20'+_0x4f206a+_0xc02920[_0x35e1f6(0x113)]+_0xbf9df3),_0x3b4003[_0x35e1f6(0xde)]('');_0x33872e[_0x35e1f6(0xd9)](_0xc02920[_0x35e1f6(0x103)],'verified')&&_0xc02920[_0x35e1f6(0xf1)]&&_0x3b4003[_0x35e1f6(0xde)](_0x35e1f6(0x102)+formatDate(_0xc02920[_0x35e1f6(0xf1)]));_0xc02920[_0x35e1f6(0x103)]===_0x35e1f6(0x105)&&_0xc02920[_0x35e1f6(0x115)]&&(_0x3b4003['push'](_0x35e1f6(0xf7)+formatDate(_0xc02920['blockedAt'])),_0xc02920[_0x35e1f6(0x10f)]&&_0x3b4003[_0x35e1f6(0xde)]('-\x20**Reason:**\x20'+_0xc02920['blockedReason']));_0x33872e['mrIZQ'](_0xc02920[_0x35e1f6(0x103)],_0x33872e['nZuSY'])&&_0xc02920[_0x35e1f6(0x118)]&&(_0x3b4003[_0x35e1f6(0xde)]('-\x20**Closed:**\x20'+_0x33872e['QvZXG'](formatDate,_0xc02920['closedAt'])),_0xc02920['canceledReason']&&_0x3b4003[_0x35e1f6(0xde)](_0x35e1f6(0xdb)+_0xc02920['canceledReason']));_0xc02920['status']==='incomplete'&&_0x3b4003['push'](_0x35e1f6(0x106));if(_0xc02920['browserSessionId']){_0x3b4003[_0x35e1f6(0xde)]('-\x20**Session:**\x20'+_0xc02920['browserSessionId']);const _0x16cf18=_0x514dc4['find'](_0x526a89=>_0x526a89['id']===_0xc02920['browserSessionId']);_0x16cf18&&(_0x16cf18['agentResponse']&&_0x3b4003['push']('-\x20**Summary:**\x20'+_0x16cf18['agentResponse']),_0x16cf18[_0x35e1f6(0xeb)]&&_0x3b4003['push']('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+buildTraceViewerUrl(_0x16cf18['traceUrl'])+')'));}_0x3b4003['push']('');}const _0x437a78=_0x471415[_0x35e1f6(0xdf)](_0x4a171a=>_0x4a171a[_0x35e1f6(0x103)]===_0x35e1f6(0x105));if(_0x437a78['length']>0x0){_0x3b4003['push'](_0x35e1f6(0xfa)),_0x3b4003[_0x35e1f6(0xde)]('');for(const _0x52199f of _0x437a78){_0x3b4003[_0x35e1f6(0xde)]('-\x20**'+_0x52199f[_0x35e1f6(0x113)]+_0x35e1f6(0xec)+(_0x52199f['blockedReason']||'No\x20reason\x20provided'));}_0x3b4003[_0x35e1f6(0xde)]('');}else _0x3b4003['push'](_0x33872e['vHOvt']),_0x3b4003[_0x35e1f6(0xde)](''),_0x3b4003['push'](_0x35e1f6(0xed)),_0x3b4003['push']('');if(_0x33872e[_0x35e1f6(0x104)](_0x514dc4[_0x35e1f6(0x107)],0x0)){_0x3b4003['push'](_0x33872e[_0x35e1f6(0xe8)]),_0x3b4003['push'](''),_0x3b4003[_0x35e1f6(0xde)](_0x33872e['DYRPC']),_0x3b4003['push']('|---------|----------|--------|----------|------|');for(const _0x3a2dd5 of _0x514dc4){const _0xab9e93=_0x3a2dd5[_0x35e1f6(0xee)]?_0x471415[_0x35e1f6(0x110)](_0x59d0ce=>_0x59d0ce['id']===_0x3a2dd5[_0x35e1f6(0xee)]):null,_0x214042=_0xab9e93?_0xab9e93['description']['substring'](0x0,0x1e)+(_0xab9e93[_0x35e1f6(0x113)]['length']>0x1e?_0x33872e[_0x35e1f6(0x10e)]:''):_0x33872e[_0x35e1f6(0xfb)],_0x5d5c7a=_0x33872e['zExpC'](_0x3a2dd5['status'],_0x33872e['OvfTm'])?'✅':_0x3a2dd5['status']==='failed'?'❌':'🔄';_0x3b4003['push']('|\x20'+_0x3a2dd5['id']+'\x20|\x20'+_0x214042+_0x35e1f6(0x117)+_0x5d5c7a+'\x20'+_0x3a2dd5[_0x35e1f6(0x103)]+'\x20|\x20'+formatDuration(_0x3a2dd5[_0x35e1f6(0x100)])+_0x35e1f6(0x117)+_0x33872e['cmlfB'](formatDate,_0x3a2dd5[_0x35e1f6(0xf5)])+'\x20|');}_0x3b4003['push']('');}return _0x3b4003[_0x35e1f6(0xe7)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x174867=_0x56e3;(function(_0x3f70a6,_0x2620e1){const _0x4788df=_0x56e3,_0x388197=_0x3f70a6();while(!![]){try{const _0x33bd96=-parseInt(_0x4788df(0x162))/0x1+parseInt(_0x4788df(0x16d))/0x2+-parseInt(_0x4788df(0x13b))/0x3+-parseInt(_0x4788df(0x140))/0x4+-parseInt(_0x4788df(0x15f))/0x5*(parseInt(_0x4788df(0x158))/0x6)+-parseInt(_0x4788df(0x148))/0x7+-parseInt(_0x4788df(0x16a))/0x8*(-parseInt(_0x4788df(0x141))/0x9);if(_0x33bd96===_0x2620e1)break;else _0x388197['push'](_0x388197['shift']());}catch(_0x4b972c){_0x388197['push'](_0x388197['shift']());}}}(_0x49b2,0x7d869));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(_0x1a6a07,_0x319f47){const _0x13017e=_0x56e3,_0x88f931={'rKtDn':function(_0x57eb75,_0x28cac2){return _0x57eb75<=_0x28cac2;},'xRfzj':function(_0xe78d59,_0x2f1d2f){return _0xe78d59>_0x2f1d2f;},'UjAGY':function(_0x41aa4b,_0x4213af){return _0x41aa4b+_0x4213af;},'dkZOf':function(_0x52e5fc,_0x51e5cb){return _0x52e5fc&_0x51e5cb;},'FDCaR':function(_0x50a740,_0xa51d31){return _0x50a740-_0xa51d31;},'LrWbV':function(_0x2057a9,_0x2da48c){return _0x2057a9<_0x2da48c;},'YvvSJ':function(_0x2e6596,_0x22aea1){return _0x2e6596+_0x22aea1;}};if(_0x319f47>=_0x1a6a07[_0x13017e(0x154)])return[0x0,0x0];const _0x452b10=_0x1a6a07[_0x319f47];let _0xdfcf4e=0x1,_0x500d0c=0x80;while(_0x88f931['rKtDn'](_0xdfcf4e,0x8)&&!(_0x452b10&_0x500d0c)){_0xdfcf4e++,_0x500d0c>>=0x1;}if(_0x88f931['xRfzj'](_0x88f931['UjAGY'](_0x319f47,_0xdfcf4e),_0x1a6a07[_0x13017e(0x154)]))return[0x0,0x0];let _0x2e6593=_0x88f931[_0x13017e(0x139)](_0x452b10,_0x88f931['FDCaR'](_0x500d0c,0x1));for(let _0x220bc3=0x1;_0x88f931[_0x13017e(0x133)](_0x220bc3,_0xdfcf4e);_0x220bc3++){_0x2e6593=_0x2e6593*0x100+_0x1a6a07[_0x88f931['YvvSJ'](_0x319f47,_0x220bc3)];}return[_0x2e6593,_0xdfcf4e];}function readId(_0xd925ae,_0x18f3ef){const _0x2251f9=_0x56e3,_0x15a0ce={'MhgeQ':function(_0x2a0b58,_0xdb6068){return _0x2a0b58>=_0xdb6068;},'jQiJE':function(_0x16fab2,_0x32e9c8){return _0x16fab2+_0x32e9c8;},'iaFkW':function(_0x2a1f9a,_0x174c31){return _0x2a1f9a+_0x174c31;}};if(_0x15a0ce[_0x2251f9(0x137)](_0x18f3ef,_0xd925ae['length']))return[0x0,0x0];const _0x324c65=_0xd925ae[_0x18f3ef];let _0x919bcc;if(_0x15a0ce['MhgeQ'](_0x324c65,0x80))_0x919bcc=0x1;else{if(_0x15a0ce['MhgeQ'](_0x324c65,0x40))_0x919bcc=0x2;else{if(_0x324c65>=0x20)_0x919bcc=0x3;else{if(_0x324c65>=0x10)_0x919bcc=0x4;else return[_0x324c65,0x1];}}}if(_0x18f3ef+_0x919bcc>_0xd925ae[_0x2251f9(0x154)])return[0x0,0x0];let _0x1f12d2=0x0;for(let _0x4c3171=0x0;_0x4c3171<_0x919bcc;_0x4c3171++){_0x1f12d2=_0x15a0ce['jQiJE'](_0x1f12d2*0x100,_0xd925ae[_0x15a0ce['iaFkW'](_0x18f3ef,_0x4c3171)]);}return[_0x1f12d2,_0x919bcc];}function readUint(_0x50e07b,_0x12ee17,_0x40561d){const _0x465c40=_0x56e3,_0x5084af={'GeylA':function(_0x1c7b58,_0x5aa22a){return _0x1c7b58<_0x5aa22a;},'FvxOg':function(_0x582956,_0x3c7f74){return _0x582956+_0x3c7f74;}};let _0x54c910=0x0;for(let _0x45ae2b=0x0;_0x5084af['GeylA'](_0x45ae2b,_0x40561d);_0x45ae2b++){_0x54c910=_0x5084af['FvxOg'](_0x54c910*0x100,_0x50e07b[_0x5084af[_0x465c40(0x13f)](_0x12ee17,_0x45ae2b)]);}return _0x54c910;}function _0x56e3(_0x4de9a0,_0x570f3c){_0x4de9a0=_0x4de9a0-0x12a;const _0x49b2f0=_0x49b2();let _0x56e33f=_0x49b2f0[_0x4de9a0];return _0x56e33f;}function isUnknownSize(_0x193e0e,_0x327720){const _0x2413cf=_0x56e3,_0x3426bc={'sIVFF':function(_0x3ebe87,_0x18f70c){return _0x3ebe87===_0x18f70c;},'xXLPA':function(_0x1fe134,_0xb1ebe0){return _0x1fe134-_0xb1ebe0;},'VyYTk':function(_0x29bed4,_0x5672a6){return _0x29bed4*_0x5672a6;}};return _0x3426bc[_0x2413cf(0x161)](_0x193e0e,_0x3426bc['xXLPA'](Math[_0x2413cf(0x12b)](0x2,_0x3426bc[_0x2413cf(0x15c)](0x7,_0x327720)),0x1));}function writeId(_0x33f2e7){const _0x54d6ea=_0x56e3,_0x554955={'iWzte':function(_0x6261cd,_0x954c99){return _0x6261cd<=_0x954c99;},'hwtcy':function(_0x101f64,_0x41d150){return _0x101f64&_0x41d150;},'ZVKfg':function(_0x6c0ce9,_0x47cc29){return _0x6c0ce9&_0x47cc29;},'MSZVa':function(_0x567d34,_0x12e900){return _0x567d34&_0x12e900;}};if(_0x33f2e7<=0xff)return Buffer['from']([_0x33f2e7]);if(_0x554955[_0x54d6ea(0x16e)](_0x33f2e7,0xffff))return Buffer['from']([_0x33f2e7>>0x8&0xff,_0x554955['hwtcy'](_0x33f2e7,0xff)]);if(_0x33f2e7<=0xffffff)return Buffer['from']([_0x33f2e7>>0x10&0xff,_0x554955['hwtcy'](_0x33f2e7>>0x8,0xff),_0x554955['ZVKfg'](_0x33f2e7,0xff)]);return Buffer['from']([_0x554955['MSZVa'](_0x33f2e7>>0x18,0xff),_0x33f2e7>>0x10&0xff,_0x33f2e7>>0x8&0xff,_0x33f2e7&0xff]);}function writeVint(_0x189020,_0x3bbdde){const _0x1a8257=_0x56e3,_0x128d56={'GQOWP':function(_0x5257c0,_0xd0a046){return _0x5257c0||_0xd0a046;},'DNrSL':function(_0x3f7e71,_0x56b8f7){return _0x3f7e71-_0x56b8f7;},'npwhp':function(_0x3b625a,_0x2f7d08){return _0x3b625a*_0x2f7d08;},'kDoBF':function(_0x36e7ad,_0x3fb02c){return _0x36e7ad-_0x3fb02c;},'bWafg':function(_0x1fa6b3,_0x3519d8){return _0x1fa6b3&_0x3519d8;},'lksMW':function(_0x70e712,_0x154dd9){return _0x70e712/_0x154dd9;},'nCEjL':function(_0x25e2ad,_0x29459e){return _0x25e2ad<<_0x29459e;}};let _0x411309=_0x128d56['GQOWP'](_0x3bbdde,0x1);while(_0x128d56['DNrSL'](Math[_0x1a8257(0x12b)](0x2,_0x128d56[_0x1a8257(0x16b)](0x7,_0x411309)),0x2)<_0x189020)_0x411309++;const _0x4e7b87=Buffer['alloc'](_0x411309);for(let _0x2c5b93=_0x128d56['kDoBF'](_0x411309,0x1);_0x2c5b93>=0x0;_0x2c5b93--){_0x4e7b87[_0x2c5b93]=_0x128d56['bWafg'](_0x189020,0xff),_0x189020=Math[_0x1a8257(0x166)](_0x128d56['lksMW'](_0x189020,0x100));}return _0x4e7b87[0x0]|=_0x128d56[_0x1a8257(0x130)](0x1,0x8-_0x411309),_0x4e7b87;}function writeFloat64(_0x144ce2){const _0x4ae396=_0x56e3,_0x1b6646=Buffer[_0x4ae396(0x131)](0x8);return _0x1b6646[_0x4ae396(0x156)](_0x144ce2,0x0),_0x1b6646;}function _0x49b2(){const _0x5b0b9f=['concat','pow','sizeLen','nyxOC','fSoiS','dZnWr','nCEjL','alloc','ZvbtX','LrWbV','NdDqd','nWixQ','aMVer','MhgeQ','Could\x20not\x20compute\x20duration','dkZOf','MejSF','3069207MiCNWy','zPAho','JdsZd','oOVKz','FvxOg','885480MePvcu','3997683JRDdBs','exit','dataOffset','Gmxcd','readInt16BE','hhLpN','VEznt','2542141eGADEM','endsWith','RAxpS','KxKor','log','indexOf','RNNLV','slice','Fixed:\x20','SPQhj','kYUBj','hnaie','length','UbjNo','writeDoubleBE','offset','1121154IKaZKq','iLdhu','error','liQvi','VyYTk','GtQLU','Could\x20not\x20find\x20Info\x20element','15OHrJvU','from','sIVFF','503283pGRqFi','argv','dataSize','meWHI','floor','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','BxvqC','MlLCC','56gRgeJJ','npwhp','ZYbLX','152612jUbJsB','iWzte','bPbhw'];_0x49b2=function(){return _0x5b0b9f;};return _0x49b2();}function writeVoid(_0x84b5a5){const _0x4afc7e=_0x56e3,_0x89d02a={'oRmOY':function(_0x106d26,_0xf5108a){return _0x106d26-_0xf5108a;},'lbszE':function(_0x3c1267,_0x4d0e45){return _0x3c1267<=_0x4d0e45;},'aMVer':function(_0x260807,_0xed76be){return _0x260807*_0xed76be;}};for(let _0x48c256=0x1;_0x48c256<=0x8;_0x48c256++){const _0xc407be=_0x89d02a['oRmOY'](_0x84b5a5-0x1,_0x48c256);if(_0xc407be>=0x0&&_0x89d02a['lbszE'](_0xc407be,Math['pow'](0x2,_0x89d02a[_0x4afc7e(0x136)](0x7,_0x48c256))-0x2))return Buffer['concat']([Buffer[_0x4afc7e(0x160)]([ID_VOID]),writeVint(_0xc407be,_0x48c256),Buffer['alloc'](_0xc407be)]);}return Buffer[_0x4afc7e(0x131)](0x0);}function findElement(_0xbba380,_0x33e1c5,_0x1049cf,_0x22d8b9){const _0x14242c=_0x56e3,_0x190053={'PpcRS':function(_0x1341ff,_0x5a3d4c){return _0x1341ff<_0x5a3d4c;},'liQvi':function(_0x396706,_0xf6f0ca,_0x54ff0a){return _0x396706(_0xf6f0ca,_0x54ff0a);},'JdsZd':function(_0x4803ea,_0x142dae){return _0x4803ea===_0x142dae;},'ZYbLX':function(_0x4ce076,_0x220112){return _0x4ce076+_0x220112;}};let _0x4473cb=_0x33e1c5;while(_0x190053['PpcRS'](_0x4473cb,_0x1049cf)){const [_0x3d1d14,_0x3de58f]=_0x190053[_0x14242c(0x15b)](readId,_0xbba380,_0x4473cb),[_0x5eb097,_0x89a44b]=readVint(_0xbba380,_0x4473cb+_0x3de58f);if(_0x190053[_0x14242c(0x13d)](_0x3d1d14,_0x22d8b9))return{'offset':_0x4473cb,'idLen':_0x3de58f,'sizeLen':_0x89a44b,'dataSize':_0x5eb097,'dataOffset':_0x190053[_0x14242c(0x16c)](_0x4473cb,_0x3de58f)+_0x89a44b};if(isUnknownSize(_0x5eb097,_0x89a44b))break;_0x4473cb+=_0x3de58f+_0x89a44b+_0x5eb097;}return null;}function computeDurationMs(_0x45a2fe,_0x486c9c){const _0x1a075c=_0x56e3,_0x40469e={'meWHI':function(_0x40c22a,_0x249cd4,_0x28767f){return _0x40c22a(_0x249cd4,_0x28767f);},'Gmxcd':function(_0x3218db,_0x234ee8){return _0x3218db+_0x234ee8;},'KxKor':function(_0x15f5d3,_0xc9c6dc,_0x48f102){return _0x15f5d3(_0xc9c6dc,_0x48f102);},'iLdhu':function(_0x1e1243,_0x167833){return _0x1e1243===_0x167833;},'UbjNo':function(_0x15f902,_0x48af92,_0x198d7b){return _0x15f902(_0x48af92,_0x198d7b);},'RNNLV':function(_0x5f2b08,_0xf7b3c3,_0x576a04){return _0x5f2b08(_0xf7b3c3,_0x576a04);},'bPbhw':function(_0x400b3c,_0x446975){return _0x400b3c+_0x446975;},'kYUBj':function(_0x2c1248,_0x359722){return _0x2c1248+_0x359722;},'iuPid':function(_0x2d4a84,_0x3f6f10){return _0x2d4a84<_0x3f6f10;},'apCvk':function(_0x294940,_0x40144c,_0x3a251e){return _0x294940(_0x40144c,_0x3a251e);},'VCxpr':function(_0x2b1ffc,_0x2f701b){return _0x2b1ffc>=_0x2f701b;},'rdowb':function(_0x27d554,_0x2d53d1){return _0x27d554+_0x2d53d1;},'hnaie':function(_0x28bbf9,_0x28d1a9){return _0x28bbf9*_0x28d1a9;},'GtQLU':function(_0x4f00e1,_0x20752d,_0x26a1f2){return _0x4f00e1(_0x20752d,_0x26a1f2);}};let _0x35a04a=0x0;const _0x1f2f66=Buffer[_0x1a075c(0x160)]([0x1f,0x43,0xb6,0x75]);let _0x59d85e=_0x45a2fe[_0x1a075c(0x14d)](_0x1f2f66);if(_0x59d85e===-0x1)return 0x0;while(_0x59d85e<_0x45a2fe['length']){const [_0x391a1f,_0x1c222c]=_0x40469e[_0x1a075c(0x165)](readId,_0x45a2fe,_0x59d85e);if(_0x391a1f!==ID_CLUSTER)break;const [_0x590286,_0x3c3c3a]=readVint(_0x45a2fe,_0x40469e['Gmxcd'](_0x59d85e,_0x1c222c)),_0xfa8f3a=_0x59d85e+_0x1c222c+_0x3c3c3a,_0x943f4e=_0x40469e[_0x1a075c(0x14b)](isUnknownSize,_0x590286,_0x3c3c3a);let _0x1e0020;if(_0x943f4e){let _0x7fc76f=_0xfa8f3a;while(_0x7fc76f<_0x45a2fe[_0x1a075c(0x154)]-0x4){const [_0x1b3a26,_0x5950dd]=readId(_0x45a2fe,_0x7fc76f);if(_0x40469e[_0x1a075c(0x159)](_0x1b3a26,ID_CLUSTER)){_0x1e0020=_0x7fc76f;break;}const [_0x19e919,_0x5c321b]=_0x40469e[_0x1a075c(0x155)](readVint,_0x45a2fe,_0x40469e[_0x1a075c(0x144)](_0x7fc76f,_0x5950dd));if(_0x40469e[_0x1a075c(0x14e)](isUnknownSize,_0x19e919,_0x5c321b)){_0x1e0020=_0x45a2fe['length'];break;}_0x7fc76f+=_0x40469e['Gmxcd'](_0x40469e['bPbhw'](_0x5950dd,_0x5c321b),_0x19e919);}_0x1e0020??=_0x45a2fe[_0x1a075c(0x154)];}else _0x1e0020=_0x40469e[_0x1a075c(0x152)](_0xfa8f3a,_0x590286);let _0x359149=0x0,_0x15f9ce=_0xfa8f3a;while(_0x40469e['iuPid'](_0x15f9ce,_0x1e0020)){const [_0x133988,_0x55046c]=readId(_0x45a2fe,_0x15f9ce),[_0xe8815,_0x102ac8]=_0x40469e['apCvk'](readVint,_0x45a2fe,_0x15f9ce+_0x55046c);if(_0x40469e['iLdhu'](_0x133988,ID_TIMESTAMP))_0x359149=readUint(_0x45a2fe,_0x40469e[_0x1a075c(0x144)](_0x15f9ce+_0x55046c,_0x102ac8),_0xe8815);else{if(_0x133988===ID_SIMPLE_BLOCK&&_0x40469e['VCxpr'](_0xe8815,0x4)){const _0x299cc7=_0x40469e['Gmxcd'](_0x15f9ce+_0x55046c,_0x102ac8),[,_0x378d80]=readVint(_0x45a2fe,_0x299cc7),_0x31e4bb=_0x45a2fe[_0x1a075c(0x145)](_0x40469e['rdowb'](_0x299cc7,_0x378d80)),_0x482f27=_0x40469e[_0x1a075c(0x153)](_0x40469e[_0x1a075c(0x16f)](_0x359149,_0x31e4bb),_0x486c9c)/0xf4240;_0x482f27>_0x35a04a&&(_0x35a04a=_0x482f27);}else{if(_0x133988===ID_CLUSTER)break;}}if(_0x40469e[_0x1a075c(0x15d)](isUnknownSize,_0xe8815,_0x102ac8))break;_0x15f9ce+=_0x55046c+_0x102ac8+_0xe8815;}_0x59d85e=_0x1e0020;}return _0x35a04a;}export function fixWebmDuration(_0x1907d1,_0x589328){const _0x1a1f22=_0x56e3,_0x5c3682={'nxlNO':function(_0x53e69d,_0x2eace9){return _0x53e69d(_0x2eace9);},'NdDqd':function(_0x42696d,_0x4ac311,_0x13e1d5){return _0x42696d(_0x4ac311,_0x13e1d5);},'GrDjl':function(_0x3e4476,_0x5e6a42){return _0x3e4476!==_0x5e6a42;},'oOVKz':function(_0x231c6c,_0x3dd0c8){return _0x231c6c+_0x3dd0c8;},'QQWTi':function(_0x243039,_0x3ea40a){return _0x243039+_0x3ea40a;},'SCwTK':function(_0x3e19bb,_0x30d4ac){return _0x3e19bb===_0x30d4ac;},'tPpxz':function(_0x448443,_0x3ad315){return _0x448443+_0x3ad315;},'FbSko':function(_0x38f9a5,_0x27ac3f){return _0x38f9a5===_0x27ac3f;},'dZnWr':function(_0x35d29a,_0x12f513){return _0x35d29a+_0x12f513;},'ZvbtX':function(_0x3ae31f,_0x3a2862){return _0x3ae31f+_0x3a2862;},'VEznt':function(_0x22cdb1,_0x4e8716,_0x4f2ac4,_0xb21699,_0x3e2bc2){return _0x22cdb1(_0x4e8716,_0x4f2ac4,_0xb21699,_0x3e2bc2);},'DPCBw':function(_0x13cbda,_0x3bc746){return _0x13cbda<=_0x3bc746;},'vusYI':_0x1a1f22(0x138),'BxvqC':function(_0x47dd73,_0x361885){return _0x47dd73/_0x361885;},'fSoiS':function(_0x2f7b7f,_0x2585fe){return _0x2f7b7f*_0x2585fe;},'nyxOC':function(_0x5a64f8,_0x540c62){return _0x5a64f8(_0x540c62);},'nWixQ':function(_0x449bd8,_0x42eae0){return _0x449bd8(_0x42eae0);},'RAxpS':function(_0x52e2de,_0x472fe7){return _0x52e2de<_0x472fe7;},'DeRRX':function(_0x5df86f,_0x38c0b6){return _0x5df86f+_0x38c0b6;},'MejSF':function(_0x54a210,_0x5115dc){return _0x54a210(_0x5115dc);},'MlLCC':function(_0x141dcc,_0x1c12f6,_0x56e5b1){return _0x141dcc(_0x1c12f6,_0x56e5b1);},'hhLpN':function(_0x1390e5,_0x286e91,_0x4f8d9b,_0x595bbd,_0x53beba,_0x505ea7,_0x1c897e){return _0x1390e5(_0x286e91,_0x4f8d9b,_0x595bbd,_0x53beba,_0x505ea7,_0x1c897e);}},_0x3e046e=_0x5c3682['nxlNO'](readFileSync,_0x1907d1);let _0x40f3c6=0x0;const [_0x4e692d,_0x434d2c]=_0x5c3682[_0x1a1f22(0x134)](readId,_0x3e046e,_0x40f3c6),[_0x487b00,_0x50148f]=readVint(_0x3e046e,_0x40f3c6+_0x434d2c);_0x40f3c6+=_0x434d2c+_0x50148f+_0x487b00;const [_0x33f0b2,_0x3554c7]=_0x5c3682['NdDqd'](readId,_0x3e046e,_0x40f3c6);if(_0x5c3682['GrDjl'](_0x33f0b2,ID_SEGMENT))return console['error'](_0x1a1f22(0x167)),![];const [,_0xf82911]=_0x5c3682['NdDqd'](readVint,_0x3e046e,_0x5c3682[_0x1a1f22(0x13e)](_0x40f3c6,_0x3554c7)),_0x3d6022=_0x5c3682['oOVKz'](_0x40f3c6,_0x3554c7)+_0xf82911;let _0x3d91ea=_0x3d6022;const _0x2fd089=Math['min'](_0x3e046e['length'],_0x5c3682['QQWTi'](_0x3d6022,0x2710));let _0x539b63=null,_0x1e9099=null;while(_0x3d91ea<_0x2fd089){const [_0x843220,_0x338390]=readId(_0x3e046e,_0x3d91ea),[_0x1b4119,_0x54f637]=readVint(_0x3e046e,_0x3d91ea+_0x338390);_0x5c3682['SCwTK'](_0x843220,ID_VOID)&&!_0x539b63&&(_0x539b63={'offset':_0x3d91ea,'idLen':_0x338390,'sizeLen':_0x54f637,'dataSize':_0x1b4119,'dataOffset':_0x5c3682['tPpxz'](_0x3d91ea+_0x338390,_0x54f637)});if(_0x5c3682['FbSko'](_0x843220,ID_INFO)){_0x1e9099={'offset':_0x3d91ea,'idLen':_0x338390,'sizeLen':_0x54f637,'dataSize':_0x1b4119,'dataOffset':_0x5c3682['oOVKz'](_0x5c3682[_0x1a1f22(0x12f)](_0x3d91ea,_0x338390),_0x54f637)};break;}if(_0x5c3682['FbSko'](_0x843220,ID_CLUSTER))break;if(isUnknownSize(_0x1b4119,_0x54f637))break;_0x3d91ea+=_0x338390+_0x54f637+_0x1b4119;}if(!_0x1e9099)return console[_0x1a1f22(0x15a)](_0x1a1f22(0x15e)),![];const _0x21f270=findElement(_0x3e046e,_0x1e9099[_0x1a1f22(0x143)],_0x5c3682[_0x1a1f22(0x132)](_0x1e9099[_0x1a1f22(0x143)],_0x1e9099['dataSize']),ID_DURATION);if(_0x21f270)return![];const _0x2dbe93=_0x5c3682[_0x1a1f22(0x147)](findElement,_0x3e046e,_0x1e9099['dataOffset'],_0x1e9099['dataOffset']+_0x1e9099[_0x1a1f22(0x164)],ID_TIMESTAMP_SCALE);let _0x4e34d6=0xf4240;_0x2dbe93&&(_0x4e34d6=readUint(_0x3e046e,_0x2dbe93[_0x1a1f22(0x143)],_0x2dbe93['dataSize']));const _0x57429a=computeDurationMs(_0x3e046e,_0x4e34d6);if(_0x5c3682['DPCBw'](_0x57429a,0x0))return console[_0x1a1f22(0x15a)](_0x5c3682['vusYI']),![];const _0x2e39d3=_0x5c3682[_0x1a1f22(0x168)](_0x5c3682[_0x1a1f22(0x12e)](_0x57429a,0xf4240),_0x4e34d6),_0x7c4ca8=Buffer[_0x1a1f22(0x12a)]([_0x5c3682[_0x1a1f22(0x12d)](writeId,ID_DURATION),_0x5c3682[_0x1a1f22(0x135)](writeVint,0x8),writeFloat64(_0x2e39d3)]),_0x1ff2c8=_0x7c4ca8['length'];if(!_0x539b63||_0x5c3682[_0x1a1f22(0x14a)](_0x539b63[_0x1a1f22(0x157)],_0x1e9099['offset'])){if(_0x539b63){const _0x5ef638=_0x5c3682['DeRRX'](_0x5c3682[_0x1a1f22(0x13e)](_0x539b63['idLen'],_0x539b63[_0x1a1f22(0x12c)]),_0x539b63[_0x1a1f22(0x164)]),_0xfc67fc=_0x5ef638-_0x1ff2c8;if(_0xfc67fc<0x2)return rewriteFile(_0x3e046e,_0x1e9099,_0x7c4ca8,_0x4e34d6,_0x57429a,_0x589328);const _0x1106e6=_0x5c3682['dZnWr'](_0x1e9099[_0x1a1f22(0x164)],_0x1ff2c8),_0x536b13=Buffer[_0x1a1f22(0x12a)]([_0x5c3682[_0x1a1f22(0x13a)](writeId,ID_INFO),_0x5c3682[_0x1a1f22(0x169)](writeVint,_0x1106e6,_0x1e9099['sizeLen'])]),_0x17fd53=_0x3e046e['slice'](_0x1e9099[_0x1a1f22(0x143)],_0x1e9099[_0x1a1f22(0x143)]+_0x1e9099['dataSize']),_0x414af9=writeVoid(_0xfc67fc),_0x57c49a=_0x3e046e['slice'](0x0,_0x539b63[_0x1a1f22(0x157)]),_0x3955e8=_0x3e046e['slice'](_0x1e9099[_0x1a1f22(0x143)]+_0x1e9099[_0x1a1f22(0x164)]);return writeFileSync(_0x589328,Buffer['concat']([_0x57c49a,_0x414af9,_0x536b13,_0x17fd53,_0x7c4ca8,_0x3955e8])),!![];}}return _0x5c3682[_0x1a1f22(0x146)](rewriteFile,_0x3e046e,_0x1e9099,_0x7c4ca8,_0x4e34d6,_0x57429a,_0x589328);}function rewriteFile(_0x52c91b,_0x8d0ee2,_0x470225,_0x32503b,_0x4eda08,_0x2acf6c){const _0x35cf90=_0x56e3,_0x62ed81={'SPQhj':function(_0x4fc1b9,_0x5af2cf){return _0x4fc1b9+_0x5af2cf;},'zPAho':function(_0x3ae964,_0x24e9be){return _0x3ae964(_0x24e9be);},'bFjHG':function(_0x52f4b7,_0x4ea598){return _0x52f4b7(_0x4ea598);}},_0x331e3c=_0x62ed81[_0x35cf90(0x151)](_0x8d0ee2['dataSize'],_0x470225['length']),_0x5a9418=Buffer['concat']([_0x62ed81[_0x35cf90(0x13c)](writeId,ID_INFO),_0x62ed81['bFjHG'](writeVint,_0x331e3c)]),_0x25aae6=_0x8d0ee2['idLen']+_0x8d0ee2['sizeLen'],_0x355d94=_0x52c91b['slice'](0x0,_0x8d0ee2['offset']),_0x17d296=_0x52c91b['slice'](_0x8d0ee2[_0x35cf90(0x143)],_0x8d0ee2['dataOffset']+_0x8d0ee2[_0x35cf90(0x164)]),_0x35fda1=_0x52c91b[_0x35cf90(0x14f)](_0x62ed81[_0x35cf90(0x151)](_0x8d0ee2['offset'],_0x25aae6)+_0x8d0ee2['dataSize']);return writeFileSync(_0x2acf6c,Buffer['concat']([_0x355d94,_0x5a9418,_0x17d296,_0x470225,_0x35fda1])),!![];}if(process[_0x174867(0x163)][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x174867(0x163)][0x1]?.[_0x174867(0x149)]('fixWebmDuration.js')){const input=process[_0x174867(0x163)][0x2],output=process[_0x174867(0x163)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x174867(0x142)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x174867(0x14c)](_0x174867(0x150)+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
const _0x5e75e4=_0x56d3;function _0x2171(){const _0x2d6f95=['jEFkw','idLen','nlRGn','KVNzj','QNCYG','sizeLen','99258YemSxP','qlrdD','gHYQE','XZsIF','TWYPN','UxaZf','KeQzO','length','9PrZlyv','FaOxn','NxTBv','PbIDc','qMiJR','mrErs','trOZp','SpoCd','sBuhZ','ZUNyz','from','kjlNQ','uATld','tjQZx','concat','20008JAdIWG','QzDTq','YdbqP','QfRgK','mWwWh','Fixed:\x20','exit','VfeYG','gkkcE','KtQZB','wBMkA','rQtXV','IRrxX','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','argv','111QEOcxT','509720TWQCKU','sMRSj','log','indexOf','fixWebmDuration.js','UtMCx','pow','dataSize','min','dataOffset','KgpoR','YbAGg','958304KGgSdz','OBgRi','mwVwh','21kxPOPo','36883QMnBfK','slice','alloc','172700iUdpOC','790mIHwoS','error','432996tJeAcQ','fixWebmDuration.ts'];_0x2171=function(){return _0x2d6f95;};return _0x2171();}(function(_0x23e3a1,_0x45c10b){const _0x2176f3=_0x56d3,_0x1f4aef=_0x23e3a1();while(!![]){try{const _0x54865c=parseInt(_0x2176f3(0x1bf))/0x1+-parseInt(_0x2176f3(0x1ca))/0x2+parseInt(_0x2176f3(0x1f0))/0x3*(parseInt(_0x2176f3(0x1e1))/0x4)+-parseInt(_0x2176f3(0x1f1))/0x5+-parseInt(_0x2176f3(0x1c2))/0x6*(parseInt(_0x2176f3(0x1bb))/0x7)+parseInt(_0x2176f3(0x1b8))/0x8*(-parseInt(_0x2176f3(0x1d2))/0x9)+-parseInt(_0x2176f3(0x1c0))/0xa*(-parseInt(_0x2176f3(0x1bc))/0xb);if(_0x54865c===_0x45c10b)break;else _0x1f4aef['push'](_0x1f4aef['shift']());}catch(_0x133b30){_0x1f4aef['push'](_0x1f4aef['shift']());}}}(_0x2171,0x20e92));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x5e7c35,_0x1046ae){const _0x5a2180=_0x56d3,_0x5e69d6={'FaOxn':function(_0xe2f875,_0x24eccb){return _0xe2f875+_0x24eccb;},'HzLPM':function(_0x4c478c,_0xc6d39d){return _0x4c478c&_0xc6d39d;},'KtQZB':function(_0x395775,_0x8b7a8){return _0x395775+_0x8b7a8;}};if(_0x1046ae>=_0x5e7c35['length'])return[0x0,0x0];const _0x37158a=_0x5e7c35[_0x1046ae];let _0xf0e94a=0x1,_0x160abc=0x80;while(_0xf0e94a<=0x8&&!(_0x37158a&_0x160abc)){_0xf0e94a++,_0x160abc>>=0x1;}if(_0x5e69d6[_0x5a2180(0x1d3)](_0x1046ae,_0xf0e94a)>_0x5e7c35['length'])return[0x0,0x0];let _0x23b042=_0x5e69d6['HzLPM'](_0x37158a,_0x160abc-0x1);for(let _0x2de830=0x1;_0x2de830<_0xf0e94a;_0x2de830++){_0x23b042=_0x5e69d6[_0x5a2180(0x1ea)](_0x23b042*0x100,_0x5e7c35[_0x5e69d6['KtQZB'](_0x1046ae,_0x2de830)]);}return[_0x23b042,_0xf0e94a];}function readId(_0x5357cb,_0x3a84f3){const _0x404547=_0x56d3,_0x100a05={'UVhnm':function(_0x4eabea,_0x4e8c89){return _0x4eabea+_0x4e8c89;},'PbIDc':function(_0x4cf213,_0x2792db){return _0x4cf213+_0x2792db;}};if(_0x3a84f3>=_0x5357cb['length'])return[0x0,0x0];const _0x54f63c=_0x5357cb[_0x3a84f3];let _0x5dafee;if(_0x54f63c>=0x80)_0x5dafee=0x1;else{if(_0x54f63c>=0x40)_0x5dafee=0x2;else{if(_0x54f63c>=0x20)_0x5dafee=0x3;else{if(_0x54f63c>=0x10)_0x5dafee=0x4;else return[_0x54f63c,0x1];}}}if(_0x100a05['UVhnm'](_0x3a84f3,_0x5dafee)>_0x5357cb['length'])return[0x0,0x0];let _0x2893b8=0x0;for(let _0x4583bc=0x0;_0x4583bc<_0x5dafee;_0x4583bc++){_0x2893b8=_0x2893b8*0x100+_0x5357cb[_0x100a05[_0x404547(0x1d5)](_0x3a84f3,_0x4583bc)];}return[_0x2893b8,_0x5dafee];}function readUint(_0x2c7175,_0x335f10,_0xb44ad7){const _0x32085e=_0x56d3,_0x3d1540={'sMRSj':function(_0x4ac301,_0x158e6e){return _0x4ac301<_0x158e6e;},'AmurD':function(_0x1e3c7a,_0x28114a){return _0x1e3c7a+_0x28114a;}};let _0x5d22c8=0x0;for(let _0x2b6a6=0x0;_0x3d1540[_0x32085e(0x1f2)](_0x2b6a6,_0xb44ad7);_0x2b6a6++){_0x5d22c8=_0x5d22c8*0x100+_0x2c7175[_0x3d1540['AmurD'](_0x335f10,_0x2b6a6)];}return _0x5d22c8;}function isUnknownSize(_0x4dd474,_0x767e2){const _0x4554b7=_0x56d3;return _0x4dd474===Math[_0x4554b7(0x1f7)](0x2,0x7*_0x767e2)-0x1;}function writeId(_0x1a14c1){const _0x4c0b08=_0x56d3,_0x4c55e5={'YdbqP':function(_0x2b855a,_0x5580ca){return _0x2b855a<=_0x5580ca;},'UxaZf':function(_0x3b21aa,_0x155a8d){return _0x3b21aa&_0x155a8d;},'lYksu':function(_0x595326,_0x33735c){return _0x595326>>_0x33735c;}};if(_0x4c55e5[_0x4c0b08(0x1e3)](_0x1a14c1,0xff))return Buffer[_0x4c0b08(0x1dc)]([_0x1a14c1]);if(_0x1a14c1<=0xffff)return Buffer['from']([_0x1a14c1>>0x8&0xff,_0x4c55e5['UxaZf'](_0x1a14c1,0xff)]);if(_0x4c55e5['YdbqP'](_0x1a14c1,0xffffff))return Buffer[_0x4c0b08(0x1dc)]([_0x1a14c1>>0x10&0xff,_0x1a14c1>>0x8&0xff,_0x1a14c1&0xff]);return Buffer[_0x4c0b08(0x1dc)]([_0x1a14c1>>0x18&0xff,_0x4c55e5[_0x4c0b08(0x1cf)](_0x4c55e5['lYksu'](_0x1a14c1,0x10),0xff),_0x4c55e5[_0x4c0b08(0x1cf)](_0x1a14c1>>0x8,0xff),_0x4c55e5['UxaZf'](_0x1a14c1,0xff)]);}function writeVint(_0x32541e,_0x5e0313){const _0x5ca498=_0x56d3,_0x12d2ac={'mtUpP':function(_0x33d8ad,_0x214514){return _0x33d8ad-_0x214514;},'okJCb':function(_0x2ad450,_0x406fd3){return _0x2ad450&_0x406fd3;},'KVNzj':function(_0x42d287,_0x4eef04){return _0x42d287/_0x4eef04;},'iIJTi':function(_0x1f6ec2,_0xd8e83d){return _0x1f6ec2<<_0xd8e83d;}};let _0x22b8bd=_0x5e0313||0x1;while(_0x12d2ac['mtUpP'](Math['pow'](0x2,0x7*_0x22b8bd),0x2)<_0x32541e)_0x22b8bd++;const _0x58deed=Buffer[_0x5ca498(0x1be)](_0x22b8bd);for(let _0x5670e0=_0x22b8bd-0x1;_0x5670e0>=0x0;_0x5670e0--){_0x58deed[_0x5670e0]=_0x12d2ac['okJCb'](_0x32541e,0xff),_0x32541e=Math['floor'](_0x12d2ac[_0x5ca498(0x1c7)](_0x32541e,0x100));}return _0x58deed[0x0]|=_0x12d2ac['iIJTi'](0x1,0x8-_0x22b8bd),_0x58deed;}function writeFloat64(_0x333ef4){const _0xca9a6=_0x56d3,_0x45f528=Buffer[_0xca9a6(0x1be)](0x8);return _0x45f528['writeDoubleBE'](_0x333ef4,0x0),_0x45f528;}function writeVoid(_0x5961c4){const _0x315926=_0x56d3,_0x20df0b={'YTKfO':function(_0x23b378,_0x5a6809){return _0x23b378<=_0x5a6809;},'DflcO':function(_0x38f621,_0x4a29e4){return _0x38f621-_0x4a29e4;},'nlRGn':function(_0x2a6abc,_0x505db8,_0x256c0f){return _0x2a6abc(_0x505db8,_0x256c0f);}};for(let _0x52531f=0x1;_0x20df0b['YTKfO'](_0x52531f,0x8);_0x52531f++){const _0x467b7e=_0x20df0b['DflcO'](_0x5961c4-0x1,_0x52531f);if(_0x467b7e>=0x0&&_0x20df0b['YTKfO'](_0x467b7e,Math[_0x315926(0x1f7)](0x2,0x7*_0x52531f)-0x2))return Buffer[_0x315926(0x1e0)]([Buffer[_0x315926(0x1dc)]([ID_VOID]),_0x20df0b[_0x315926(0x1c6)](writeVint,_0x467b7e,_0x52531f),Buffer[_0x315926(0x1be)](_0x467b7e)]);}return Buffer['alloc'](0x0);}function findElement(_0x3492f3,_0x8c7efb,_0x424488,_0x188b21){const _0x54e659=_0x56d3,_0x587fec={'VJBtw':function(_0x71272b,_0x4482cd,_0x5b150c){return _0x71272b(_0x4482cd,_0x5b150c);},'tjQZx':function(_0x180b19,_0x5e2c4e,_0x96d836){return _0x180b19(_0x5e2c4e,_0x96d836);},'KgpoR':function(_0x18fb42,_0x698e4d){return _0x18fb42+_0x698e4d;},'ZlThG':function(_0x4e67cc,_0x2ca148){return _0x4e67cc===_0x2ca148;},'OBgRi':function(_0x2a8134,_0xdaf8,_0x2a3864){return _0x2a8134(_0xdaf8,_0x2a3864);},'hMVBn':function(_0x206e39,_0x25fb48){return _0x206e39+_0x25fb48;}};let _0x2bc6be=_0x8c7efb;while(_0x2bc6be<_0x424488){const [_0x476653,_0x47a382]=_0x587fec['VJBtw'](readId,_0x3492f3,_0x2bc6be),[_0x514b3a,_0x686b7d]=_0x587fec[_0x54e659(0x1df)](readVint,_0x3492f3,_0x587fec[_0x54e659(0x1fb)](_0x2bc6be,_0x47a382));if(_0x587fec['ZlThG'](_0x476653,_0x188b21))return{'offset':_0x2bc6be,'idLen':_0x47a382,'sizeLen':_0x686b7d,'dataSize':_0x514b3a,'dataOffset':_0x587fec[_0x54e659(0x1fb)](_0x2bc6be+_0x47a382,_0x686b7d)};if(_0x587fec[_0x54e659(0x1b9)](isUnknownSize,_0x514b3a,_0x686b7d))break;_0x2bc6be+=_0x587fec['hMVBn'](_0x47a382,_0x686b7d)+_0x514b3a;}return null;}function computeDurationMs(_0x216bb4,_0x38839a){const _0x2ca2a4=_0x56d3,_0x48a276={'NxTBv':function(_0x1f6d54,_0x30a6af){return _0x1f6d54===_0x30a6af;},'QfRgK':function(_0x546096,_0x1baaf0,_0x424f68){return _0x546096(_0x1baaf0,_0x424f68);},'trOZp':function(_0x27716c,_0x46cc93){return _0x27716c!==_0x46cc93;},'bHnep':function(_0x27285e,_0xc81f60){return _0x27285e+_0xc81f60;},'fgFKi':function(_0x6dbbfb,_0x349b05){return _0x6dbbfb+_0x349b05;},'gHYQE':function(_0x14ea44,_0x5ebe13,_0x289270){return _0x14ea44(_0x5ebe13,_0x289270);},'UtMCx':function(_0x5727ea,_0x977510){return _0x5727ea-_0x977510;},'XZsIF':function(_0x4ae1cd,_0xc63bd4,_0x56f7f4){return _0x4ae1cd(_0xc63bd4,_0x56f7f4);},'TWYPN':function(_0x3c34b3,_0x33d934){return _0x3c34b3+_0x33d934;},'ZQkRn':function(_0x34f5bb,_0x91dd0c){return _0x34f5bb+_0x91dd0c;},'ZUNyz':function(_0x3042ec,_0x48f70b){return _0x3042ec+_0x48f70b;},'QzDTq':function(_0x13e3cd,_0x9565bb,_0x27e808,_0x38889e){return _0x13e3cd(_0x9565bb,_0x27e808,_0x38889e);},'mWwWh':function(_0x3b4999,_0x2c6a72){return _0x3b4999===_0x2c6a72;},'APdSf':function(_0x15a8c5,_0x4d12db){return _0x15a8c5>_0x4d12db;},'uATld':function(_0x2d3575,_0x10082d){return _0x2d3575===_0x10082d;},'FCHOt':function(_0x3e8e9b,_0x4aa408){return _0x3e8e9b+_0x4aa408;},'SqVal':function(_0x17178c,_0x561bf6){return _0x17178c+_0x561bf6;}};let _0x2d43b9=0x0;const _0x62aeed=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x1c8c6b=_0x216bb4[_0x2ca2a4(0x1f4)](_0x62aeed);if(_0x48a276['NxTBv'](_0x1c8c6b,-0x1))return 0x0;while(_0x1c8c6b<_0x216bb4['length']){const [_0x38e902,_0x248f1c]=_0x48a276['QfRgK'](readId,_0x216bb4,_0x1c8c6b);if(_0x48a276[_0x2ca2a4(0x1d8)](_0x38e902,ID_CLUSTER))break;const [_0xc9394c,_0x5f366f]=readVint(_0x216bb4,_0x48a276['bHnep'](_0x1c8c6b,_0x248f1c)),_0x66c6ad=_0x48a276['fgFKi'](_0x48a276['fgFKi'](_0x1c8c6b,_0x248f1c),_0x5f366f),_0x125748=_0x48a276['gHYQE'](isUnknownSize,_0xc9394c,_0x5f366f);let _0x241117;if(_0x125748){let _0x32cfe3=_0x66c6ad;while(_0x32cfe3<_0x48a276[_0x2ca2a4(0x1f6)](_0x216bb4[_0x2ca2a4(0x1d1)],0x4)){const [_0x47637f,_0x4ffcfd]=readId(_0x216bb4,_0x32cfe3);if(_0x47637f===ID_CLUSTER){_0x241117=_0x32cfe3;break;}const [_0x5b1f32,_0x30974e]=_0x48a276[_0x2ca2a4(0x1cd)](readVint,_0x216bb4,_0x48a276[_0x2ca2a4(0x1ce)](_0x32cfe3,_0x4ffcfd));if(_0x48a276[_0x2ca2a4(0x1e4)](isUnknownSize,_0x5b1f32,_0x30974e)){_0x241117=_0x216bb4['length'];break;}_0x32cfe3+=_0x48a276['fgFKi'](_0x4ffcfd+_0x30974e,_0x5b1f32);}_0x241117??=_0x216bb4['length'];}else _0x241117=_0x48a276['ZQkRn'](_0x66c6ad,_0xc9394c);let _0x4d394b=0x0,_0x4981fd=_0x66c6ad;while(_0x4981fd<_0x241117){const [_0x32ed10,_0x277a48]=readId(_0x216bb4,_0x4981fd),[_0x10f046,_0x51fd21]=_0x48a276[_0x2ca2a4(0x1cc)](readVint,_0x216bb4,_0x48a276[_0x2ca2a4(0x1db)](_0x4981fd,_0x277a48));if(_0x48a276[_0x2ca2a4(0x1d4)](_0x32ed10,ID_TIMESTAMP))_0x4d394b=_0x48a276[_0x2ca2a4(0x1e2)](readUint,_0x216bb4,_0x48a276['ZUNyz'](_0x4981fd,_0x277a48)+_0x51fd21,_0x10f046);else{if(_0x48a276[_0x2ca2a4(0x1e5)](_0x32ed10,ID_SIMPLE_BLOCK)&&_0x10f046>=0x4){const _0x53e814=_0x48a276['ZUNyz'](_0x48a276['ZQkRn'](_0x4981fd,_0x277a48),_0x51fd21),[,_0x323746]=readVint(_0x216bb4,_0x53e814),_0x43f6d2=_0x216bb4['readInt16BE'](_0x53e814+_0x323746),_0x4d0b95=_0x48a276['bHnep'](_0x4d394b,_0x43f6d2)*_0x38839a/0xf4240;_0x48a276['APdSf'](_0x4d0b95,_0x2d43b9)&&(_0x2d43b9=_0x4d0b95);}else{if(_0x48a276[_0x2ca2a4(0x1de)](_0x32ed10,ID_CLUSTER))break;}}if(isUnknownSize(_0x10f046,_0x51fd21))break;_0x4981fd+=_0x48a276['FCHOt'](_0x48a276['SqVal'](_0x277a48,_0x51fd21),_0x10f046);}_0x1c8c6b=_0x241117;}return _0x2d43b9;}function _0x56d3(_0x292603,_0x155c8a){_0x292603=_0x292603-0x1b8;const _0x217141=_0x2171();let _0x56d345=_0x217141[_0x292603];return _0x56d345;}export function fixWebmDuration(_0x5a640d,_0x2e3037){const _0x36ddb9=_0x56d3,_0x46ccaa={'qMiJR':function(_0x3b8ce9,_0x12c7ad){return _0x3b8ce9(_0x12c7ad);},'SpoCd':function(_0x4ae2d4,_0xafc586,_0x3dcdc0){return _0x4ae2d4(_0xafc586,_0x3dcdc0);},'kjlNQ':function(_0x12afcf,_0x118389){return _0x12afcf+_0x118389;},'rQtXV':function(_0x260298,_0x4dbfa4){return _0x260298===_0x4dbfa4;},'KeQzO':function(_0x1e97fe,_0x3195e6){return _0x1e97fe+_0x3195e6;},'YbAGg':function(_0xf98fde,_0x12333d){return _0xf98fde+_0x12333d;},'mrErs':'Could\x20not\x20find\x20Info\x20element','wBMkA':function(_0x1f439b,_0x1a2c31,_0xcc1b9a,_0x763ade,_0x2c8fc3){return _0x1f439b(_0x1a2c31,_0xcc1b9a,_0x763ade,_0x2c8fc3);},'jlkuG':function(_0x3c4ba6,_0x485b16,_0x17a2fd,_0x454704,_0x28e38f){return _0x3c4ba6(_0x485b16,_0x17a2fd,_0x454704,_0x28e38f);},'gkkcE':function(_0x27f0ac,_0x507b9d,_0x12adc8,_0x46106f){return _0x27f0ac(_0x507b9d,_0x12adc8,_0x46106f);},'hHMEe':function(_0xfeb26c,_0x26d061,_0x538945){return _0xfeb26c(_0x26d061,_0x538945);},'IRrxX':function(_0x2a869e,_0x176a21){return _0x2a869e<=_0x176a21;},'RoXGb':'Could\x20not\x20compute\x20duration','ULLax':function(_0x25c844,_0x2f1f96){return _0x25c844(_0x2f1f96);},'qlrdD':function(_0x1652d5,_0x3d870f){return _0x1652d5(_0x3d870f);},'QNCYG':function(_0x466b36,_0x5beeb4){return _0x466b36+_0x5beeb4;},'jEFkw':function(_0x49c4ad,_0x3d3600){return _0x49c4ad+_0x3d3600;},'VfeYG':function(_0x1f4471,_0x30ab0e){return _0x1f4471-_0x30ab0e;},'JAnHT':function(_0xeb5195,_0x355850){return _0xeb5195<_0x355850;},'rvsvo':function(_0x29c166,_0x345947){return _0x29c166+_0x345947;}},_0x138e13=_0x46ccaa[_0x36ddb9(0x1d6)](readFileSync,_0x5a640d);let _0x1290c6=0x0;const [_0x75e149,_0x374791]=_0x46ccaa['SpoCd'](readId,_0x138e13,_0x1290c6),[_0x7dd076,_0x39c7ee]=readVint(_0x138e13,_0x46ccaa[_0x36ddb9(0x1dd)](_0x1290c6,_0x374791));_0x1290c6+=_0x46ccaa[_0x36ddb9(0x1dd)](_0x374791,_0x39c7ee)+_0x7dd076;const [_0x164d69,_0x5768af]=_0x46ccaa[_0x36ddb9(0x1d9)](readId,_0x138e13,_0x1290c6);if(_0x164d69!==ID_SEGMENT)return console[_0x36ddb9(0x1c1)](_0x36ddb9(0x1ee)),![];const [,_0x3ec628]=readVint(_0x138e13,_0x1290c6+_0x5768af),_0x5e2d31=_0x1290c6+_0x5768af+_0x3ec628;let _0x146aa6=_0x5e2d31;const _0x186fce=Math[_0x36ddb9(0x1f9)](_0x138e13[_0x36ddb9(0x1d1)],_0x46ccaa['kjlNQ'](_0x5e2d31,0x2710));let _0x1ee09f=null,_0x42b4ee=null;while(_0x146aa6<_0x186fce){const [_0x9456d5,_0x2d22b1]=readId(_0x138e13,_0x146aa6),[_0x3aeda4,_0x2a9ed3]=readVint(_0x138e13,_0x146aa6+_0x2d22b1);_0x9456d5===ID_VOID&&!_0x1ee09f&&(_0x1ee09f={'offset':_0x146aa6,'idLen':_0x2d22b1,'sizeLen':_0x2a9ed3,'dataSize':_0x3aeda4,'dataOffset':_0x46ccaa['kjlNQ'](_0x146aa6+_0x2d22b1,_0x2a9ed3)});if(_0x46ccaa['rQtXV'](_0x9456d5,ID_INFO)){_0x42b4ee={'offset':_0x146aa6,'idLen':_0x2d22b1,'sizeLen':_0x2a9ed3,'dataSize':_0x3aeda4,'dataOffset':_0x46ccaa[_0x36ddb9(0x1d0)](_0x46ccaa[_0x36ddb9(0x1fc)](_0x146aa6,_0x2d22b1),_0x2a9ed3)};break;}if(_0x46ccaa[_0x36ddb9(0x1ec)](_0x9456d5,ID_CLUSTER))break;if(_0x46ccaa[_0x36ddb9(0x1d9)](isUnknownSize,_0x3aeda4,_0x2a9ed3))break;_0x146aa6+=_0x2d22b1+_0x2a9ed3+_0x3aeda4;}if(!_0x42b4ee)return console[_0x36ddb9(0x1c1)](_0x46ccaa[_0x36ddb9(0x1d7)]),![];const _0x4565a8=_0x46ccaa[_0x36ddb9(0x1eb)](findElement,_0x138e13,_0x42b4ee[_0x36ddb9(0x1fa)],_0x46ccaa['YbAGg'](_0x42b4ee['dataOffset'],_0x42b4ee['dataSize']),ID_DURATION);if(_0x4565a8)return![];const _0x21604f=_0x46ccaa['jlkuG'](findElement,_0x138e13,_0x42b4ee['dataOffset'],_0x46ccaa[_0x36ddb9(0x1dd)](_0x42b4ee['dataOffset'],_0x42b4ee['dataSize']),ID_TIMESTAMP_SCALE);let _0x4504b8=0xf4240;_0x21604f&&(_0x4504b8=_0x46ccaa[_0x36ddb9(0x1e9)](readUint,_0x138e13,_0x21604f['dataOffset'],_0x21604f[_0x36ddb9(0x1f8)]));const _0x163c63=_0x46ccaa['hHMEe'](computeDurationMs,_0x138e13,_0x4504b8);if(_0x46ccaa[_0x36ddb9(0x1ed)](_0x163c63,0x0))return console['error'](_0x46ccaa['RoXGb']),![];const _0x2558a9=_0x163c63*0xf4240/_0x4504b8,_0x28de11=Buffer[_0x36ddb9(0x1e0)]([_0x46ccaa['ULLax'](writeId,ID_DURATION),_0x46ccaa[_0x36ddb9(0x1cb)](writeVint,0x8),_0x46ccaa['ULLax'](writeFloat64,_0x2558a9)]),_0x42d0c2=_0x28de11[_0x36ddb9(0x1d1)];if(!_0x1ee09f||_0x1ee09f['offset']<_0x42b4ee['offset']){if(_0x1ee09f){const _0x38deca=_0x46ccaa[_0x36ddb9(0x1c8)](_0x46ccaa[_0x36ddb9(0x1c4)](_0x1ee09f[_0x36ddb9(0x1c5)],_0x1ee09f[_0x36ddb9(0x1c9)]),_0x1ee09f['dataSize']),_0xd1861d=_0x46ccaa[_0x36ddb9(0x1e8)](_0x38deca,_0x42d0c2);if(_0x46ccaa['JAnHT'](_0xd1861d,0x2))return rewriteFile(_0x138e13,_0x42b4ee,_0x28de11,_0x4504b8,_0x163c63,_0x2e3037);const _0x1a1d24=_0x46ccaa[_0x36ddb9(0x1dd)](_0x42b4ee['dataSize'],_0x42d0c2),_0x2c2e44=Buffer[_0x36ddb9(0x1e0)]([_0x46ccaa[_0x36ddb9(0x1cb)](writeId,ID_INFO),writeVint(_0x1a1d24,_0x42b4ee[_0x36ddb9(0x1c9)])]),_0x3844b2=_0x138e13[_0x36ddb9(0x1bd)](_0x42b4ee[_0x36ddb9(0x1fa)],_0x46ccaa['YbAGg'](_0x42b4ee[_0x36ddb9(0x1fa)],_0x42b4ee[_0x36ddb9(0x1f8)])),_0x24e038=writeVoid(_0xd1861d),_0xf804e1=_0x138e13['slice'](0x0,_0x1ee09f['offset']),_0x459f1b=_0x138e13[_0x36ddb9(0x1bd)](_0x46ccaa['rvsvo'](_0x42b4ee['dataOffset'],_0x42b4ee['dataSize']));return _0x46ccaa['hHMEe'](writeFileSync,_0x2e3037,Buffer[_0x36ddb9(0x1e0)]([_0xf804e1,_0x24e038,_0x2c2e44,_0x3844b2,_0x28de11,_0x459f1b])),!![];}}return rewriteFile(_0x138e13,_0x42b4ee,_0x28de11,_0x4504b8,_0x163c63,_0x2e3037);}function rewriteFile(_0x533c23,_0x20ef3b,_0x1c2e64,_0x271969,_0x2dbf51,_0x590a47){const _0xef7633=_0x56d3,_0x3e99fb={'mwVwh':function(_0x19d31e,_0x23d21f){return _0x19d31e(_0x23d21f);},'sBuhZ':function(_0x3634b9,_0x40a694){return _0x3634b9+_0x40a694;},'BWNNU':function(_0x4cc919,_0xbd73b5,_0x322b15){return _0x4cc919(_0xbd73b5,_0x322b15);}},_0x306fb8=_0x20ef3b[_0xef7633(0x1f8)]+_0x1c2e64['length'],_0x457029=Buffer[_0xef7633(0x1e0)]([writeId(ID_INFO),_0x3e99fb[_0xef7633(0x1ba)](writeVint,_0x306fb8)]),_0x234dde=_0x3e99fb[_0xef7633(0x1da)](_0x20ef3b['idLen'],_0x20ef3b[_0xef7633(0x1c9)]),_0x27a2d3=_0x533c23[_0xef7633(0x1bd)](0x0,_0x20ef3b['offset']),_0x481e4e=_0x533c23['slice'](_0x20ef3b['dataOffset'],_0x3e99fb['sBuhZ'](_0x20ef3b[_0xef7633(0x1fa)],_0x20ef3b['dataSize'])),_0xadf9c5=_0x533c23['slice'](_0x3e99fb['sBuhZ'](_0x20ef3b['offset']+_0x234dde,_0x20ef3b[_0xef7633(0x1f8)]));return _0x3e99fb['BWNNU'](writeFileSync,_0x590a47,Buffer['concat']([_0x27a2d3,_0x457029,_0x481e4e,_0x1c2e64,_0xadf9c5])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x5e75e4(0x1c3))||process[_0x5e75e4(0x1ef)][0x1]?.['endsWith'](_0x5e75e4(0x1f5))){const input=process[_0x5e75e4(0x1ef)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x5e75e4(0x1c1)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x5e75e4(0x1e7)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x5e75e4(0x1f3)](_0x5e75e4(0x1e6)+output):console[_0x5e75e4(0x1f3)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x521b44,_0xc1a6b6){const _0x42924c=_0x66a2,_0xa24b1f=_0x521b44();while(!![]){try{const _0x224cb0=-parseInt(_0x42924c(0x101))/0x1*(-parseInt(_0x42924c(0xfa))/0x2)+-parseInt(_0x42924c(0xf8))/0x3*(parseInt(_0x42924c(0xf6))/0x4)+-parseInt(_0x42924c(0xfd))/0x5*(parseInt(_0x42924c(0xfe))/0x6)+parseInt(_0x42924c(0xf2))/0x7+-parseInt(_0x42924c(0xf1))/0x8*(-parseInt(_0x42924c(0xee))/0x9)+-parseInt(_0x42924c(0x100))/0xa*(-parseInt(_0x42924c(0xfc))/0xb)+-parseInt(_0x42924c(0xfb))/0xc*(parseInt(_0x42924c(0xf4))/0xd);if(_0x224cb0===_0xc1a6b6)break;else _0xa24b1f['push'](_0xa24b1f['shift']());}catch(_0x4830f9){_0xa24b1f['push'](_0xa24b1f['shift']());}}}(_0x1edf,0x7b1cc));function _0x66a2(_0x20373e,_0x50c073){_0x20373e=_0x20373e-0xee;const _0x1edf98=_0x1edf();let _0x66a2a9=_0x1edf98[_0x20373e];return _0x66a2a9;}import{execSync}from'child_process';export function getGitBranch(){const _0x1b20e4=_0x66a2,_0x40a25b={'emyeJ':'pipe'};try{return execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x1b20e4(0xf5),'stdio':['pipe',_0x40a25b[_0x1b20e4(0xf7)],_0x40a25b[_0x1b20e4(0xf7)]]})['trim']();}catch{return undefined;}}function _0x1edf(){const _0x537c6e=['20lmneLe','1326420RZlaeC','trim','360980MGFEnC','128315snGrTQ','4283478CaqPbl','VfaGN','WMOui','16qgwyVj','4281067PwAdbQ','replace','351PUkWfE','utf-8','8WocGzz','emyeJ','343926DpXSvC','github.com/','2ToCMSx','385824vIspOb','242NFmFOf'];_0x1edf=function(){return _0x537c6e;};return _0x1edf();}export function getGitRepoUrl(){const _0xf16640=_0x66a2,_0x5b43a6={'AxsEg':function(_0x51d3de,_0x43ac0e,_0x4b2254){return _0x51d3de(_0x43ac0e,_0x4b2254);},'VfaGN':_0xf16640(0xf5),'WMOui':'pipe'};try{const _0x2ff4a8=_0x5b43a6['AxsEg'](execSync,'git\x20remote\x20get-url\x20origin',{'encoding':_0x5b43a6[_0xf16640(0xef)],'stdio':[_0x5b43a6['WMOui'],_0x5b43a6[_0xf16640(0xf0)],_0x5b43a6[_0xf16640(0xf0)]]})[_0xf16640(0xff)]();return _0x2ff4a8[_0xf16640(0xf3)](/\.git$/,'')['replace'](/^git@github\.com:/,_0xf16640(0xf9))[_0xf16640(0xf3)](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x5eb446={'CJqew':function(_0x31139a){return _0x31139a();}};return{'branch':getGitBranch(),'repoUrl':_0x5eb446['CJqew'](getGitRepoUrl)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x338704=_0x74b0;(function(_0x508483,_0x5da838){const _0x3fdad6=_0x74b0,_0xeef8d2=_0x508483();while(!![]){try{const _0x69ba9e=parseInt(_0x3fdad6(0x1d2))/0x1+-parseInt(_0x3fdad6(0x1cd))/0x2+parseInt(_0x3fdad6(0x1ef))/0x3+parseInt(_0x3fdad6(0x1f8))/0x4*(-parseInt(_0x3fdad6(0x1e8))/0x5)+-parseInt(_0x3fdad6(0x1e9))/0x6+parseInt(_0x3fdad6(0x1f6))/0x7+parseInt(_0x3fdad6(0x1f2))/0x8;if(_0x69ba9e===_0x5da838)break;else _0xeef8d2['push'](_0xeef8d2['shift']());}catch(_0x2f54a8){_0xeef8d2['push'](_0xeef8d2['shift']());}}}(_0xbd33,0xd7afc));const _0x4ac4ee=(function(){const _0x3d3e98=_0x74b0,_0x135a51={'eExLs':function(_0x4cf54e,_0x4ed6a5){return _0x4cf54e!==_0x4ed6a5;},'VNLxn':_0x3d3e98(0x1de),'SwfDu':function(_0x2d2c8e,_0x2d61f5){return _0x2d2c8e!==_0x2d61f5;},'GCFLP':_0x3d3e98(0x1e7)};let _0x37cf11=!![];return function(_0x4a21f6,_0x33ef41){const _0x3a3341=_0x3d3e98;if(_0x135a51[_0x3a3341(0x1f7)](_0x135a51[_0x3a3341(0x1e4)],_0x135a51[_0x3a3341(0x1e4)])){if(_0x1abee2){const _0x56e1fb=_0x53f32a[_0x3a3341(0x1d8)](_0x183bee,arguments);return _0x828e95=null,_0x56e1fb;}}else{const _0x572afb=_0x37cf11?function(){const _0x557974=_0x3a3341;if(_0x135a51['eExLs'](_0x557974(0x1de),_0x135a51['VNLxn']))return null;else{if(_0x33ef41){const _0x2e4f20=_0x33ef41[_0x557974(0x1d8)](_0x4a21f6,arguments);return _0x33ef41=null,_0x2e4f20;}}}:function(){};return _0x37cf11=![],_0x572afb;}};}()),_0x395022=_0x4ac4ee(this,function(){const _0x34d8bc=_0x74b0,_0x2d832f={'kRdGO':_0x34d8bc(0x1dd)};return _0x395022[_0x34d8bc(0x1d3)]()[_0x34d8bc(0x1eb)]('(((.+)+)+)+$')[_0x34d8bc(0x1d3)]()[_0x34d8bc(0x1cc)](_0x395022)[_0x34d8bc(0x1eb)](_0x2d832f[_0x34d8bc(0x1e5)]);});_0x395022();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x338704(0x1e2),ENV_TOKEN_LEGACY=_0x338704(0x1ea),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x338704(0x1d9)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x338704(0x1ee));function isGitHubCI(){const _0x17c2b0=_0x338704;return!!process[_0x17c2b0(0x1e1)][_0x17c2b0(0x1cf)];}async function writeToGitHubEnv(_0x3cb48d,_0x501cc0){const _0x19c987=_0x338704,_0x314d95={'PeOCj':function(_0x1d3b8,_0x4bf353,_0x5674a3){return _0x1d3b8(_0x4bf353,_0x5674a3);}},_0x49460b=process[_0x19c987(0x1e1)]['GITHUB_ENV'];_0x49460b&&await _0x314d95['PeOCj'](appendFile,_0x49460b,_0x3cb48d+'='+_0x501cc0+'\x0a');}export async function storeToken(_0x2189b2){const _0x1dc756=_0x338704,_0x28563c={'vHjgQ':function(_0x4bafd5){return _0x4bafd5();},'pxlHQ':function(_0x597c9c,_0xbb84b3,_0x3c54fb,_0x94ec){return _0x597c9c(_0xbb84b3,_0x3c54fb,_0x94ec);}};_0x28563c[_0x1dc756(0x1db)](isGitHubCI)?await writeToGitHubEnv(ENV_TOKEN,_0x2189b2):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x28563c['pxlHQ'](writeFile,TOKEN_PATH,_0x2189b2,{'mode':0x180}));}export async function getToken(){const _0x112ed4=_0x338704,_0x576d89={'VPJHr':function(_0x156963,_0x2cb8a3){return _0x156963!==_0x2cb8a3;},'Comzo':_0x112ed4(0x1da),'JquvD':'PJdgs','hBjCO':function(_0x2cc0fc,_0x384b2f,_0x15f674){return _0x2cc0fc(_0x384b2f,_0x15f674);}};if(process[_0x112ed4(0x1e1)][ENV_TOKEN])return process[_0x112ed4(0x1e1)][ENV_TOKEN];if(process[_0x112ed4(0x1e1)][ENV_TOKEN_LEGACY])return _0x576d89[_0x112ed4(0x1f4)](_0x576d89[_0x112ed4(0x1cb)],_0x112ed4(0x1d0))?process[_0x112ed4(0x1e1)][ENV_TOKEN_LEGACY]:![];try{if(_0x576d89[_0x112ed4(0x1f4)](_0x576d89[_0x112ed4(0x1f0)],_0x112ed4(0x1ec))){const _0xa8e7dc=await _0x576d89[_0x112ed4(0x1d7)](readFile,TOKEN_PATH,_0x112ed4(0x1f3));return _0xa8e7dc[_0x112ed4(0x1d5)]()||null;}else return null;}catch{return null;}}export async function deleteToken(){const _0x184362=_0x338704,_0x145017={'fkyIk':_0x184362(0x1e6)};try{if(_0x145017[_0x184362(0x1d4)]===_0x184362(0x1e6))return await unlink(TOKEN_PATH),!![];else{const _0x4353d2=_0x426eda[_0x184362(0x1d8)](_0x5d82f9,arguments);return _0x81990c=null,_0x4353d2;}}catch{return![];}}function _0x74b0(_0x1f2807,_0x15fc06){_0x1f2807=_0x1f2807-0x1cb;const _0x3516f0=_0xbd33();let _0x395022=_0x3516f0[_0x1f2807];if(_0x74b0['phMfuh']===undefined){var _0x4ac4ee=function(_0x416667){const _0x54278d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x33c40a='',_0x8994cf='',_0x38bbd3=_0x33c40a+_0x4ac4ee;for(let _0x44f11b=0x0,_0x464960,_0x1bd94a,_0x2202c3=0x0;_0x1bd94a=_0x416667['charAt'](_0x2202c3++);~_0x1bd94a&&(_0x464960=_0x44f11b%0x4?_0x464960*0x40+_0x1bd94a:_0x1bd94a,_0x44f11b++%0x4)?_0x33c40a+=_0x38bbd3['charCodeAt'](_0x2202c3+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x464960>>(-0x2*_0x44f11b&0x6)):_0x44f11b:0x0){_0x1bd94a=_0x54278d['indexOf'](_0x1bd94a);}for(let _0x4c5027=0x0,_0x2d67c9=_0x33c40a['length'];_0x4c5027<_0x2d67c9;_0x4c5027++){_0x8994cf+='%'+('00'+_0x33c40a['charCodeAt'](_0x4c5027)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8994cf);};_0x74b0['WwNdbY']=_0x4ac4ee,_0x74b0['LrAJfa']={},_0x74b0['phMfuh']=!![];}const _0xbd33b3=_0x3516f0[0x0],_0x74b0f3=_0x1f2807+_0xbd33b3,_0x2ea44f=_0x74b0['LrAJfa'][_0x74b0f3];if(!_0x2ea44f){const _0x2bebb6=function(_0x5daa78){this['kVeOrK']=_0x5daa78,this['BOtlrq']=[0x1,0x0,0x0],this['jWhIZz']=function(){return'newState';},this['hCZODw']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['VpHLYG']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2bebb6['prototype']['LBrdhl']=function(){const _0x246702=new RegExp(this['hCZODw']+this['VpHLYG']),_0x575d15=_0x246702['test'](this['jWhIZz']['toString']())?--this['BOtlrq'][0x1]:--this['BOtlrq'][0x0];return this['PmEoUy'](_0x575d15);},_0x2bebb6['prototype']['PmEoUy']=function(_0x20c6c3){if(!Boolean(~_0x20c6c3))return _0x20c6c3;return this['xKJnkK'](this['kVeOrK']);},_0x2bebb6['prototype']['xKJnkK']=function(_0x23c8a7){for(let _0x12b41d=0x0,_0x53f066=this['BOtlrq']['length'];_0x12b41d<_0x53f066;_0x12b41d++){this['BOtlrq']['push'](Math['round'](Math['random']())),_0x53f066=this['BOtlrq']['length'];}return _0x23c8a7(this['BOtlrq'][0x0]);},new _0x2bebb6(_0x74b0)['LBrdhl'](),_0x395022=_0x74b0['WwNdbY'](_0x395022),_0x74b0['LrAJfa'][_0x74b0f3]=_0x395022;}else _0x395022=_0x2ea44f;return _0x395022;}export async function storeRefreshToken(_0x57565e){const _0x3d56d2=_0x338704,_0x1e59c2={'rvgbM':function(_0x15143e,_0x5570aa,_0x1c17bb,_0x487f0a){return _0x15143e(_0x5570aa,_0x1c17bb,_0x487f0a);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1e59c2[_0x3d56d2(0x1e3)](writeFile,REFRESH_TOKEN_PATH,_0x57565e,{'mode':0x180});}export async function getRefreshToken(){const _0x360483=_0x338704,_0xa1a1f3={'klQTg':function(_0x1e2028,_0x55f034){return _0x1e2028===_0x55f034;},'lAtuR':_0x360483(0x1ce),'riDeE':function(_0x39a19a,_0x16a4df,_0x7b3271){return _0x39a19a(_0x16a4df,_0x7b3271);},'JwrwZ':_0x360483(0x1f3)};try{if(_0xa1a1f3[_0x360483(0x1ed)]('IHqNF',_0xa1a1f3[_0x360483(0x1f1)]))return _0x3c98fc[_0x360483(0x1e1)][_0x58d4f3];else{const _0x1e2eb5=await _0xa1a1f3['riDeE'](readFile,REFRESH_TOKEN_PATH,_0xa1a1f3['JwrwZ']);return _0x1e2eb5[_0x360483(0x1d5)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){const _0x71f187=_0x338704,_0x34d3c2={'ZtkZK':function(_0x315850,_0x5d7dc2){return _0x315850!==_0x5d7dc2;},'iZppG':_0x71f187(0x1dc)};try{if(_0x34d3c2[_0x71f187(0x1d1)](_0x71f187(0x1e0),_0x34d3c2[_0x71f187(0x1f5)]))return await unlink(REFRESH_TOKEN_PATH),!![];else{const _0x2b79af=_0x2bebb6?function(){const _0x2ca898=_0x71f187;if(_0x12b41d){const _0x38e754=_0x2f7c7c[_0x2ca898(0x1d8)](_0x26f606,arguments);return _0x4adffd=null,_0x38e754;}}:function(){};return _0x23c8a7=![],_0x2b79af;}}catch{return![];}}export async function deleteAllCredentials(){const _0x11b757=_0x338704,_0x386038={'HiRzB':function(_0x5ae9dd){return _0x5ae9dd();},'koiDh':function(_0x5a1ced){return _0x5a1ced();}};await _0x386038[_0x11b757(0x1d6)](deleteToken),await _0x386038[_0x11b757(0x1df)](deleteRefreshToken);}function _0xbd33(){const _0x33fde0=['u0fXtuu','DKHQz1e','tKrYq3C','kcGOlISPkYKRksSK','sNnXDLy','A29PrgG','v1DoruS','zw52','uKfor0vsx0nmsv9ut0TftG','CNzNyK0','r0ngtfa','A1jKr08','thzgsxu','D0nRD2e','mZCYnujvB3zryq','mtaXmdG3nZzds3jerMm','uKfor0vsx01duf9ut0TftG','C2vHCMnO','r1jzCgC','A2XrvgC','CMvMCMvZAc50Ehq','nZyWmtKXzNzKugzw','sNf1DKq','Bef0Dvi','mtCYndC1mZzhs3jtB3y','DxrMltG','vLbkshi','AvPWCeC','otCWnZq2mhbQtxjmvW','u3DMrhu','nZG5mLL3zK1cEa','q29TEM8','y29UC3rYDwn0B3i','mtG1nZm1mgrMwujRsW','B3DnEwG','r0Lusfvcx0vovG','s2HXwM4','wNrRwKS','mte3mdy4ou9LwKfqwa','Dg9tDhjPBMC','zMT5swS','DhjPBq','sgLsEKi','AejQq08','yxbWBhK','y2XPlNr4Da'];_0xbd33=function(){return _0x33fde0;};return _0xbd33();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x55a5(_0x292564,_0x389e5d){_0x292564=_0x292564-0xf0;const _0x12a1a8=_0x12e3();let _0xb7caa3=_0x12a1a8[_0x292564];if(_0x55a5['rYmUEx']===undefined){var _0x175e4b=function(_0x45ad3e){const _0x4132a2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x34ca23='',_0x32662a='',_0x10d034=_0x34ca23+_0x175e4b;for(let _0x278c4b=0x0,_0x331dd8,_0x450b72,_0x3c982f=0x0;_0x450b72=_0x45ad3e['charAt'](_0x3c982f++);~_0x450b72&&(_0x331dd8=_0x278c4b%0x4?_0x331dd8*0x40+_0x450b72:_0x450b72,_0x278c4b++%0x4)?_0x34ca23+=_0x10d034['charCodeAt'](_0x3c982f+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x331dd8>>(-0x2*_0x278c4b&0x6)):_0x278c4b:0x0){_0x450b72=_0x4132a2['indexOf'](_0x450b72);}for(let _0x41ee0c=0x0,_0x37e3a4=_0x34ca23['length'];_0x41ee0c<_0x37e3a4;_0x41ee0c++){_0x32662a+='%'+('00'+_0x34ca23['charCodeAt'](_0x41ee0c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32662a);};_0x55a5['HULYxn']=_0x175e4b,_0x55a5['eUalcl']={},_0x55a5['rYmUEx']=!![];}const _0x12e321=_0x12a1a8[0x0],_0x55a5b6=_0x292564+_0x12e321,_0x477015=_0x55a5['eUalcl'][_0x55a5b6];if(!_0x477015){const _0x1862cf=function(_0x492a97){this['zSdRJV']=_0x492a97,this['rTIpVL']=[0x1,0x0,0x0],this['WnruUW']=function(){return'newState';},this['ctuyIe']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['eUUNdN']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1862cf['prototype']['svolGB']=function(){const _0x3204fd=new RegExp(this['ctuyIe']+this['eUUNdN']),_0x516a0f=_0x3204fd['test'](this['WnruUW']['toString']())?--this['rTIpVL'][0x1]:--this['rTIpVL'][0x0];return this['svoPht'](_0x516a0f);},_0x1862cf['prototype']['svoPht']=function(_0x22041e){if(!Boolean(~_0x22041e))return _0x22041e;return this['lwCcIJ'](this['zSdRJV']);},_0x1862cf['prototype']['lwCcIJ']=function(_0x56a06f){for(let _0x543903=0x0,_0x37d4a0=this['rTIpVL']['length'];_0x543903<_0x37d4a0;_0x543903++){this['rTIpVL']['push'](Math['round'](Math['random']())),_0x37d4a0=this['rTIpVL']['length'];}return _0x56a06f(this['rTIpVL'][0x0]);},new _0x1862cf(_0x55a5)['svolGB'](),_0xb7caa3=_0x55a5['HULYxn'](_0xb7caa3),_0x55a5['eUalcl'][_0x55a5b6]=_0xb7caa3;}else _0xb7caa3=_0x477015;return _0xb7caa3;}(function(_0x3ed328,_0x47db07){const _0x8a9f46=_0x55a5,_0x43114e=_0x3ed328();while(!![]){try{const _0x4fa3f4=parseInt(_0x8a9f46(0xfb))/0x1+-parseInt(_0x8a9f46(0xf1))/0x2+parseInt(_0x8a9f46(0xf6))/0x3+-parseInt(_0x8a9f46(0xf7))/0x4*(-parseInt(_0x8a9f46(0xf0))/0x5)+-parseInt(_0x8a9f46(0xf2))/0x6+parseInt(_0x8a9f46(0xfc))/0x7+-parseInt(_0x8a9f46(0xf3))/0x8*(parseInt(_0x8a9f46(0xf4))/0x9);if(_0x4fa3f4===_0x47db07)break;else _0x43114e['push'](_0x43114e['shift']());}catch(_0x384adf){_0x43114e['push'](_0x43114e['shift']());}}}(_0x12e3,0x2137a));const _0x175e4b=(function(){let _0x57069a=!![];return function(_0x12216f,_0x706be3){const _0x43c381=_0x57069a?function(){if(_0x706be3){const _0x58bd24=_0x706be3['apply'](_0x12216f,arguments);return _0x706be3=null,_0x58bd24;}}:function(){};return _0x57069a=![],_0x43c381;};}()),_0xb7caa3=_0x175e4b(this,function(){const _0xa230df=_0x55a5,_0x1fe9fe={'kggPi':_0xa230df(0x107)};return _0xb7caa3[_0xa230df(0x106)]()[_0xa230df(0xfe)](_0xa230df(0x107))['toString']()[_0xa230df(0x104)](_0xb7caa3)[_0xa230df(0xfe)](_0x1fe9fe[_0xa230df(0x101)]);});_0xb7caa3();function _0x12e3(){const _0x5e8085=['rxbyquO','zLL1sg4','y29UC3rYDwn0B3i','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','Dg9tDhjPBMC','kcGOlISPkYKRksSK','qMvHCMvYia','C3rYAw5NAwz5','odCZmZa1tgHfs2Pc','mJG5nty0yuDtt0nj','mZaXnZG4vhLYrNHT','mJa1nMzjz2LVtG','mtq0u3DwywPf','uuHZr3i','ntu1ovzqy1fUAW','nefRzxnMDG','ue9tva','yxbWBhK','rur5thu','nZGXnZnOsvzlv2C','ntyZotqXvxbvC0LJ','yKnOANy','C2vHCMnO','z21kyLG','yxbWBgLJyxrPB24VANnVBG','A2DNugK'];_0x12e3=function(){return _0x5e8085;};return _0x12e3();}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x4c102e,_0x2a9dbd,_0x45f339){const _0x13a0ab=_0x55a5,_0x9934cb={'EpXAJ':function(_0x23f947){return _0x23f947();},'QHsGr':'xyhoq','EDyLu':_0x13a0ab(0x100),'wnXnY':function(_0x5abcc7,_0x5f1ec7){return _0x5abcc7===_0x5f1ec7;},'gmJbX':_0x13a0ab(0x103),'bChjv':'Evocl'},_0x388b04=await _0x9934cb[_0x13a0ab(0x102)](getToken);if(!_0x388b04){if(_0x9934cb[_0x13a0ab(0xf5)]===_0x9934cb[_0x13a0ab(0xf5)])return;else{const _0x4625f5=_0x5ce285[_0x13a0ab(0xf9)](_0x4278dd,arguments);return _0xaa04c8=null,_0x4625f5;}}const _0x254288=_0x9934cb['EpXAJ'](getApiBaseUrl),_0x40d6a2=await fetch(_0x254288+'/api/v1/mcp/local-agent-installations',{'method':_0x13a0ab(0xf8),'headers':{'Authorization':_0x13a0ab(0x108)+_0x388b04,'Content-Type':_0x9934cb[_0x13a0ab(0xfa)]},'body':JSON[_0x13a0ab(0x109)]({'skillName':_0x4c102e,'cliVersion':_0x45f339,'metadata':_0x2a9dbd})});if(!_0x40d6a2['ok']){if(_0x9934cb['wnXnY'](_0x9934cb[_0x13a0ab(0xff)],_0x9934cb[_0x13a0ab(0xfd)]))return;else{const _0x1f9b9b=await _0x40d6a2['text']();console['error'](_0x13a0ab(0x105)+_0x1f9b9b);}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x230657,_0x8f4044){const _0x114d48=_0x424c,_0x3b8565=_0x230657();while(!![]){try{const _0x1abd02=-parseInt(_0x114d48(0x1e3))/0x1+parseInt(_0x114d48(0x1e6))/0x2+parseInt(_0x114d48(0x1c3))/0x3*(-parseInt(_0x114d48(0x1d2))/0x4)+-parseInt(_0x114d48(0x1ec))/0x5+-parseInt(_0x114d48(0x1c6))/0x6+-parseInt(_0x114d48(0x1d9))/0x7*(parseInt(_0x114d48(0x1c0))/0x8)+parseInt(_0x114d48(0x1d3))/0x9;if(_0x1abd02===_0x8f4044)break;else _0x3b8565['push'](_0x3b8565['shift']());}catch(_0x2117e4){_0x3b8565['push'](_0x3b8565['shift']());}}}(_0x32e0,0xb454c));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x32e0(){const _0x4c6f92=['10598272xXoTnU','CEpEv','tool_response','210441TELWll','exec','content-type','826968SecPMU','VnwiY','mimeType','hHjTN','updated','MZgQI','size','nAqsw','url','webp','iVJWJ','map','4EGZhNI','33462216mdLUox','isNaN','ADiuU','content','hook_event_name','Image\x20exceeds\x20size\x20limit\x20(','7zNHBEy','image/webp','zdoOf','byteLength','type','from','umgKZ','headers','SoNUT','toLowerCase','1294027KCQEtK','VmdnU','source','1871612NlTEfF','\x20bytes)','data','image/png','split','replace','5442040IqJzHJ','image/gif','startsWith','base64','https://','image/jpeg','UZSKM','trim','QIJeV','toString','status'];_0x32e0=function(){return _0x4c6f92;};return _0x32e0();}function _0x424c(_0x12855b,_0x256f5d){_0x12855b=_0x12855b-0x1bd;const _0x32e047=_0x32e0();let _0x424c88=_0x32e047[_0x12855b];return _0x424c88;}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0xf40655){const _0x52422b=_0x424c,_0x33488c={'hHjTN':function(_0x5cc9a7,_0x9a6f60){return _0x5cc9a7===_0x9a6f60;},'UZSKM':function(_0x3cb8ed,_0x56dd2c){return _0x3cb8ed!==_0x56dd2c;}};return _0x33488c[_0x52422b(0x1c9)](typeof _0xf40655,'object')&&_0x33488c[_0x52422b(0x1f2)](_0xf40655,null);}function isImageBlock(_0x4e32f5){const _0x41ac1=_0x424c;return isRecord(_0x4e32f5)&&_0x4e32f5[_0x41ac1(0x1dd)]==='image';}function isDataUrl(_0x5eb38b){const _0x5e784f=_0x424c,_0x1668f3={'VmdnU':'data:'};return _0x5eb38b['startsWith'](_0x1668f3[_0x5e784f(0x1e4)]);}function parseDataUrl(_0x319351){const _0x146e48=_0x424c,_0x95a3d4={'QIJeV':function(_0x440d86,_0x152829){return _0x440d86(_0x152829);}},_0x35aaea=/^data:([^;]+);base64,(.+)$/[_0x146e48(0x1c4)](_0x319351);if(!_0x35aaea)return null;const _0x26ef29=_0x35aaea[0x1][_0x146e48(0x1e2)]();if(!_0x95a3d4[_0x146e48(0x1bd)](isValidMediaType,_0x26ef29))return null;return{'data':_0x35aaea[0x2],'mediaType':_0x26ef29};}function isValidMediaType(_0x16e90e){const _0x4a1f1a=_0x424c,_0xf7806={'iVJWJ':'image/jpeg','LOQKe':_0x4a1f1a(0x1e9),'AklOm':'image/gif','VjFyZ':'image/webp'};return[_0xf7806[_0x4a1f1a(0x1d0)],_0xf7806['LOQKe'],_0xf7806['AklOm'],_0xf7806['VjFyZ']]['includes'](_0x16e90e);}function inferMediaType(_0x2d9fa2,_0x534551){const _0xa57eae=_0x424c,_0x43f702={'APnNC':function(_0x2a984c,_0x47c542){return _0x2a984c(_0x47c542);},'sWBRH':_0xa57eae(0x1f1),'sIMUW':'png','GIGJx':'gif','nAqsw':_0xa57eae(0x1ed),'HEXCb':_0xa57eae(0x1cf),'umgKZ':_0xa57eae(0x1da),'mRFKj':'image/png'};if(_0x2d9fa2){const _0x174f57=_0x2d9fa2[_0xa57eae(0x1e2)]()[_0xa57eae(0x1ea)](';')[0x0][_0xa57eae(0x1f3)]();if(_0x43f702['APnNC'](isValidMediaType,_0x174f57))return _0x174f57;}const _0x23dfe2=extname(_0x534551)[_0xa57eae(0x1e2)]()[_0xa57eae(0x1eb)]('.','');switch(_0x23dfe2){case'jpg':case'jpeg':return _0x43f702['sWBRH'];case _0x43f702['sIMUW']:return'image/png';case _0x43f702['GIGJx']:return _0x43f702[_0xa57eae(0x1cd)];case _0x43f702['HEXCb']:return _0x43f702[_0xa57eae(0x1df)];default:return _0x43f702['mRFKj'];}}async function readImageFromUrl(_0x2788b6){const _0xe84f8a=_0x424c,_0x3b3305={'xZBqP':function(_0x30ed82,_0x183047){return _0x30ed82(_0x183047);},'DrOGA':function(_0x586e59,_0x1a8273){return _0x586e59(_0x1a8273);},'VnwiY':_0xe84f8a(0x1ef),'JBzEF':_0xe84f8a(0x1f0),'MZgQI':function(_0x5e46af,_0x399622,_0x1e39ae){return _0x5e46af(_0x399622,_0x1e39ae);},'vyaqt':_0xe84f8a(0x1c5),'CEpEv':function(_0x3530d9,_0x5dca5e){return _0x3530d9>_0x5dca5e;},'SoNUT':function(_0x2709f0,_0x41db31){return _0x2709f0(_0x41db31);}};if(_0x3b3305['xZBqP'](isDataUrl,_0x2788b6)){const _0x3e1ffa=_0x3b3305['DrOGA'](parseDataUrl,_0x2788b6);if(_0x3e1ffa)return _0x3e1ffa;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x2788b6['startsWith']('file://')){const _0x5cb32c=_0x3b3305['xZBqP'](fileURLToPath,_0x2788b6),_0x87571b=await stat(_0x5cb32c);if(_0x87571b[_0xe84f8a(0x1cc)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xe84f8a(0x1d8)+MAX_IMAGE_SIZE_BYTES+_0xe84f8a(0x1e7));const _0x3c419e=await readFile(_0x5cb32c);return{'data':_0x3c419e['toString'](_0x3b3305[_0xe84f8a(0x1c7)]),'mediaType':inferMediaType(null,_0x5cb32c)};}if(_0x2788b6['startsWith']('http://')||_0x2788b6[_0xe84f8a(0x1ee)](_0x3b3305['JBzEF'])){const _0x3d27a1=await _0x3b3305[_0xe84f8a(0x1cb)](fetch,_0x2788b6,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x3d27a1['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x3d27a1[_0xe84f8a(0x1bf)]);const _0x58555a=_0x3d27a1['headers']['get']('content-length');if(_0x58555a){const _0x5c9b52=_0x3b3305['xZBqP'](Number,_0x58555a);if(!Number[_0xe84f8a(0x1d4)](_0x5c9b52)&&_0x5c9b52>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xe84f8a(0x1d8)+MAX_IMAGE_SIZE_BYTES+_0xe84f8a(0x1e7));}const _0xb1c98c=await _0x3d27a1['arrayBuffer']();if(_0xb1c98c[_0xe84f8a(0x1dc)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xe84f8a(0x1d8)+MAX_IMAGE_SIZE_BYTES+_0xe84f8a(0x1e7));return{'data':Buffer[_0xe84f8a(0x1de)](_0xb1c98c)[_0xe84f8a(0x1be)](_0xe84f8a(0x1ef)),'mediaType':inferMediaType(_0x3d27a1[_0xe84f8a(0x1e0)]['get'](_0x3b3305['vyaqt']),_0x2788b6)};}const _0x143cb9=await stat(_0x2788b6);if(_0x3b3305[_0xe84f8a(0x1c1)](_0x143cb9[_0xe84f8a(0x1cc)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0xe84f8a(0x1d8)+MAX_IMAGE_SIZE_BYTES+_0xe84f8a(0x1e7));const _0x257312=await _0x3b3305[_0xe84f8a(0x1e1)](readFile,_0x2788b6);return{'data':_0x257312[_0xe84f8a(0x1be)](_0xe84f8a(0x1ef)),'mediaType':inferMediaType(null,_0x2788b6)};}async function convertImageBlockToBase64(_0x3ab2ad){const _0xeb3bb5=_0x424c,_0x2a5b86={'vFgiM':function(_0x47cec3,_0x4a7dcb){return _0x47cec3===_0x4a7dcb;},'urHzc':_0xeb3bb5(0x1ef),'ADiuU':function(_0x5f2d35,_0x4b8e30){return _0x5f2d35(_0x4b8e30);}};if(_0x2a5b86['vFgiM'](_0x3ab2ad[_0xeb3bb5(0x1e5)]?.[_0xeb3bb5(0x1dd)],_0x2a5b86['urHzc']))return{'updated':![],'block':_0x3ab2ad};if(_0x3ab2ad[_0xeb3bb5(0x1e8)]&&_0x3ab2ad[_0xeb3bb5(0x1c8)])return{'updated':![],'block':_0x3ab2ad};const _0x42a19d=_0x3ab2ad[_0xeb3bb5(0x1e5)]?.['url']??_0x3ab2ad[_0xeb3bb5(0x1ce)];if(!_0x42a19d)return{'updated':![],'block':_0x3ab2ad};const _0x40168d=await _0x2a5b86[_0xeb3bb5(0x1d5)](readImageFromUrl,_0x42a19d);return{'updated':!![],'block':{..._0x3ab2ad,'source':{'type':_0xeb3bb5(0x1ef),'media_type':_0x40168d['mediaType'],'data':_0x40168d['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0xe6c063){const _0x54f78b=_0x424c,_0x1bc468={'zdoOf':function(_0xb9d3a9,_0x54a901){return _0xb9d3a9(_0x54a901);}};if(!isRecord(_0xe6c063))return{'updated':![],'output':_0xe6c063};const _0xe07839=_0xe6c063[_0x54f78b(0x1d6)];if(!Array['isArray'](_0xe07839))return{'updated':![],'output':_0xe6c063};let _0x40f1db=![];const _0x598088=await Promise['all'](_0xe07839[_0x54f78b(0x1d1)](async _0x1e9925=>{const _0xb19ee3=_0x54f78b;if(!_0x1bc468[_0xb19ee3(0x1db)](isImageBlock,_0x1e9925))return _0x1e9925;try{const _0xb6d62c=await convertImageBlockToBase64(_0x1e9925);if(_0xb6d62c[_0xb19ee3(0x1ca)])_0x40f1db=!![];return _0xb6d62c['block'];}catch{return _0x1e9925;}}));if(!_0x40f1db)return{'updated':![],'output':_0xe6c063};return{'updated':!![],'output':{..._0xe6c063,'content':_0x598088}};}export function createMcpImageBase64Hook(){const _0x262a19={'TWzeM':'PostToolUse','AMHnT':function(_0x28ed62,_0x217aa2){return _0x28ed62(_0x217aa2);}};return async _0x203cc8=>{const _0x27e429=_0x424c;if(_0x203cc8[_0x27e429(0x1d7)]!==_0x262a19['TWzeM'])return{};const _0x7c2592=_0x203cc8,{updated:_0x15803e,output:_0x46b728}=await _0x262a19['AMHnT'](convertToolOutputImagesToBase64,_0x7c2592[_0x27e429(0x1c2)]);if(!_0x15803e)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x46b728}};};}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x4337(_0x31e8c0,_0x4f4970){_0x31e8c0=_0x31e8c0-0x90;const _0x1b834c=_0x1b83();let _0x433745=_0x1b834c[_0x31e8c0];return _0x433745;}const _0x4c7912=_0x4337;(function(_0x232910,_0x225f54){const _0x58428c=_0x4337,_0x220dfa=_0x232910();while(!![]){try{const _0x471455=parseInt(_0x58428c(0x9c))/0x1*(-parseInt(_0x58428c(0x9a))/0x2)+-parseInt(_0x58428c(0x99))/0x3*(-parseInt(_0x58428c(0x96))/0x4)+-parseInt(_0x58428c(0x9d))/0x5+parseInt(_0x58428c(0x98))/0x6*(-parseInt(_0x58428c(0x91))/0x7)+parseInt(_0x58428c(0x9b))/0x8*(-parseInt(_0x58428c(0x93))/0x9)+-parseInt(_0x58428c(0x94))/0xa+parseInt(_0x58428c(0x92))/0xb;if(_0x471455===_0x225f54)break;else _0x220dfa['push'](_0x220dfa['shift']());}catch(_0x407bf8){_0x220dfa['push'](_0x220dfa['shift']());}}}(_0x1b83,0x862dd));function _0x1b83(){const _0x541a45=['1FnHzit','2344745NEbEKB','claude-opus-4-6','6664322uQCKOD','23396131hCrzKg','5219955AHoZcr','56720APqxFT','claude-sonnet-4-6','187932whwkMj','trim','6HvXoAH','69oAiGUt','1302542KpGbud','8miGniT'];_0x1b83=function(){return _0x541a45;};return _0x1b83();}const VERIFY_MODEL_ALIASES={'opus':_0x4c7912(0x90),'sonnet':_0x4c7912(0x95)};export const DEFAULT_VERIFY_MODEL=_0x4c7912(0x90);export function resolveVerifyModel(_0x5b620a){const _0xd2c2d2=_0x4c7912,_0x4e2d7c={'JrElp':function(_0x33085a,_0x4a7827){return _0x33085a??_0x4a7827;}};if(!_0x5b620a)return undefined;const _0x3d04ad=_0x5b620a[_0xd2c2d2(0x97)]();if(!_0x3d04ad)return undefined;const _0x11b5cf=VERIFY_MODEL_ALIASES[_0x3d04ad['toLowerCase']()];return _0x4e2d7c['JrElp'](_0x11b5cf,_0x3d04ad);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x38020b,_0x21dc2e){var _0x146f00=_0x395b,_0x3893c2=_0x38020b();while(!![]){try{var _0x422436=parseInt(_0x146f00(0x13f))/0x1+parseInt(_0x146f00(0x131))/0x2*(parseInt(_0x146f00(0x138))/0x3)+parseInt(_0x146f00(0x137))/0x4*(-parseInt(_0x146f00(0x12e))/0x5)+-parseInt(_0x146f00(0x13d))/0x6*(-parseInt(_0x146f00(0x141))/0x7)+-parseInt(_0x146f00(0x12f))/0x8*(parseInt(_0x146f00(0x13a))/0x9)+parseInt(_0x146f00(0x13c))/0xa+parseInt(_0x146f00(0x134))/0xb;if(_0x422436===_0x21dc2e)break;else _0x3893c2['push'](_0x3893c2['shift']());}catch(_0x3790c8){_0x3893c2['push'](_0x3893c2['shift']());}}}(_0x3ce1,0x7a987));import{homedir}from'os';function _0x395b(_0xdfdc50,_0x3e2683){_0xdfdc50=_0xdfdc50-0x12e;var _0x3ce1ce=_0x3ce1();var _0x395b15=_0x3ce1ce[_0xdfdc50];return _0x395b15;}import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x14eee6){var _0x1b81e1=_0x395b,_0xe150f2={'PaodV':_0x1b81e1(0x13b),'dhhBK':function(_0x5f1ea0,_0xfa740f,_0x2ef073){return _0x5f1ea0(_0xfa740f,_0x2ef073);},'rIQUx':'opencode','QizWG':function(_0x344d1b,_0x5400f1,_0x4e8d16){return _0x344d1b(_0x5400f1,_0x4e8d16);},'xyJYt':'.opencode'};if(process[_0x1b81e1(0x140)][_0x1b81e1(0x132)])return process[_0x1b81e1(0x140)][_0x1b81e1(0x132)];if(_0x14eee6===_0xe150f2['PaodV']){if(process['env'][_0x1b81e1(0x130)])return _0xe150f2[_0x1b81e1(0x136)](join,process['env']['XDG_CONFIG_HOME'],'opencode');return join(homedir(),'.config',_0xe150f2[_0x1b81e1(0x133)]);}return _0xe150f2[_0x1b81e1(0x135)](join,getProjectRoot(),_0xe150f2['xyJYt']);}export function getOpencodeSkillsDir(_0x185b3b){var _0x989ab8=_0x395b,_0x205c4a={'zkqcG':function(_0x125b0a,_0x15f2b8){return _0x125b0a(_0x15f2b8);},'EVspM':'skills'};return join(_0x205c4a[_0x989ab8(0x13e)](getOpencodeConfigDir,_0x185b3b),_0x205c4a[_0x989ab8(0x139)]);}function _0x3ce1(){var _0xdb79ff=['3357JDSYeB','user','4972450eSUytx','306wAJkdC','zkqcG','406128EDoaAF','env','40950MksyYD','175EdrllK','18184NdAbFd','XDG_CONFIG_HOME','654614kChBBn','OPENCODE_CONFIG_DIR','rIQUx','3308173jLbiWs','QizWG','dhhBK','92240DAXELc','6haGZAK','EVspM'];_0x3ce1=function(){return _0xdb79ff;};return _0x3ce1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x59a03a,_0x8a48b4){const _0xa97468=_0x2fd8,_0x1c7b73=_0x59a03a();while(!![]){try{const _0xf00a87=-parseInt(_0xa97468(0x8a))/0x1*(-parseInt(_0xa97468(0x87))/0x2)+parseInt(_0xa97468(0x8c))/0x3+parseInt(_0xa97468(0x8e))/0x4*(parseInt(_0xa97468(0x85))/0x5)+-parseInt(_0xa97468(0x88))/0x6+parseInt(_0xa97468(0x86))/0x7*(-parseInt(_0xa97468(0x8b))/0x8)+parseInt(_0xa97468(0x8f))/0x9*(parseInt(_0xa97468(0x89))/0xa)+-parseInt(_0xa97468(0x8d))/0xb;if(_0xf00a87===_0x8a48b4)break;else _0x1c7b73['push'](_0x1c7b73['shift']());}catch(_0xb1afb7){_0x1c7b73['push'](_0x1c7b73['shift']());}}}(_0x3a0f,0xe2b5e));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x3a0f(){const _0x3d37b9=['8gqMmOd','4542216roSisP','7568044sUmbqO','20zojyaC','13129335thgVpp','197825fXEPhW','8450015gVVmJk','8Kgciyb','9535014EIaIOC','10ZwIHFx','310553JMcXof'];_0x3a0f=function(){return _0x3d37b9;};return _0x3a0f();}function _0x2fd8(_0x37fba5,_0x5c1037){_0x37fba5=_0x37fba5-0x85;const _0x3a0f22=_0x3a0f();let _0x2fd8e3=_0x3a0f22[_0x37fba5];return _0x2fd8e3;}export function formatProfileRequiredMessage(_0x12c5dc){const _0xf43b8f=_0x12c5dc?_0x12c5dc(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'+_0xf43b8f+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x38dd(){const _0x7d5774=['fWlUn','\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','3789ZkJtcY','<div\x20class=\x22ranger-banner__message\x22>','7nZcjzr','1872LDDZvs','9548034pBIzbL','1260039Zhzafw','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','1491890TMwWST','2mokmWF','<div\x20class=\x22ranger-banner__content\x22>','cQxnr','44mLaOsm','\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','qeNOY','4645500UrPbYo','8AvClIj','50209596gCZQtj','3864870jMRfow','xXXGV',';\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','</div>','addInitScript','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','nPbUO','stringify'];_0x38dd=function(){return _0x7d5774;};return _0x38dd();}function _0x5d8e(_0x46e063,_0x2d6ad0){_0x46e063=_0x46e063-0x66;const _0x38dd17=_0x38dd();let _0x5d8e7f=_0x38dd17[_0x46e063];return _0x5d8e7f;}(function(_0x4c9567,_0x5e24e3){const _0x9ba490=_0x5d8e,_0x4da7b4=_0x4c9567();while(!![]){try{const _0x43a753=-parseInt(_0x9ba490(0x78))/0x1*(parseInt(_0x9ba490(0x7b))/0x2)+-parseInt(_0x9ba490(0x73))/0x3*(-parseInt(_0x9ba490(0x76))/0x4)+-parseInt(_0x9ba490(0x66))/0x5+-parseInt(_0x9ba490(0x77))/0x6*(parseInt(_0x9ba490(0x75))/0x7)+-parseInt(_0x9ba490(0x67))/0x8*(-parseInt(_0x9ba490(0x69))/0x9)+parseInt(_0x9ba490(0x7a))/0xa*(-parseInt(_0x9ba490(0x7e))/0xb)+parseInt(_0x9ba490(0x68))/0xc;if(_0x43a753===_0x5e24e3)break;else _0x4da7b4['push'](_0x4da7b4['shift']());}catch(_0x3afaa){_0x4da7b4['push'](_0x4da7b4['shift']());}}}(_0x38dd,0xca015));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x3e5bea=_0x5d8e,_0x4bce94={'xXXGV':function(_0x309316,_0x33f1ef){return _0x309316+_0x33f1ef;},'qeNOY':_0x3e5bea(0x79),'MpDnA':_0x3e5bea(0x74),'nPbUO':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','cQxnr':_0x3e5bea(0x6c),'fWlUn':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x5a0b5d=_0x4bce94[_0x3e5bea(0x6a)](_0x4bce94[_0x3e5bea(0x6a)](_0x3e5bea(0x7c)+_0x4bce94[_0x3e5bea(0x80)]+_0x4bce94['MpDnA']+_0x4bce94[_0x3e5bea(0x6f)],_0x3e5bea(0x6e)),_0x4bce94[_0x3e5bea(0x7d)])+_0x4bce94['cQxnr']+_0x4bce94[_0x3e5bea(0x71)],_0x1f0d66=_0x3e5bea(0x72);return _0x3e5bea(0x7f)+JSON[_0x3e5bea(0x70)](_0x5a0b5d)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x3e5bea(0x70)](_0x1f0d66)+_0x3e5bea(0x6b);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x348a0d){const _0x5ab021=_0x5d8e;await _0x348a0d[_0x5ab021(0x6d)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x1e4ff1,_0x17a9f9){const _0x7226e0=_0x540a,_0x2167b8=_0x1e4ff1();while(!![]){try{const _0x17723b=-parseInt(_0x7226e0(0xb0))/0x1*(-parseInt(_0x7226e0(0xaf))/0x2)+parseInt(_0x7226e0(0xa9))/0x3+parseInt(_0x7226e0(0xae))/0x4+-parseInt(_0x7226e0(0xa5))/0x5+parseInt(_0x7226e0(0xb2))/0x6+-parseInt(_0x7226e0(0xa8))/0x7*(-parseInt(_0x7226e0(0xb7))/0x8)+-parseInt(_0x7226e0(0xa6))/0x9*(parseInt(_0x7226e0(0xaa))/0xa);if(_0x17723b===_0x17a9f9)break;else _0x2167b8['push'](_0x2167b8['shift']());}catch(_0x5e3e83){_0x2167b8['push'](_0x2167b8['shift']());}}}(_0x3001,0x9fa4f));import{readFile}from'fs/promises';function _0x540a(_0x1b0004,_0x3f5ef3){_0x1b0004=_0x1b0004-0xa5;const _0x300145=_0x3001();let _0x540aa6=_0x300145[_0x1b0004];return _0x540aa6;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x3001(){const _0x234b30=['Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','hJaLh','warn','2870576yHoVWH','39038xNPVrb','11IwuiMx','fEYui','7392420AqFCdS','vRYQJ','message','object','isArray','8dzRHza','2292515KxEodK','15534IvRmlh','parse','1918903zfZuRo','3389856GxUvhr','14230kWIOlz'];_0x3001=function(){return _0x234b30;};return _0x3001();}export function getRangerConfigPath(){const _0x1ebe93={'xFFlO':function(_0xbf99ef,_0x186ba7,_0x284bcc){return _0xbf99ef(_0x186ba7,_0x284bcc);}};return _0x1ebe93['xFFlO'](join,getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x4795bb=_0x540a,_0x3cfafa={'EBDfw':function(_0x2bb6cc,_0x172210){return _0x2bb6cc(_0x172210);},'hJaLh':function(_0x187f5c,_0x55fb3c,_0x1734ca){return _0x187f5c(_0x55fb3c,_0x1734ca);},'vRYQJ':function(_0x328815,_0x5f05a5){return _0x328815===_0x5f05a5;},'FeKio':'string','fEYui':function(_0x5a7fa8,_0x14738f){return _0x5a7fa8 instanceof _0x14738f;}},_0x5ecbb6=getRangerConfigPath();if(!_0x3cfafa['EBDfw'](existsSync,_0x5ecbb6))return{};try{const _0x218ed8=await _0x3cfafa[_0x4795bb(0xac)](readFile,_0x5ecbb6,'utf-8'),_0x22c24d=JSON[_0x4795bb(0xa7)](_0x218ed8);if(!_0x22c24d||typeof _0x22c24d!==_0x4795bb(0xb5)||Array[_0x4795bb(0xb6)](_0x22c24d))return{};const _0x66b2cf={},_0x1f9682=_0x22c24d['model'];return _0x3cfafa[_0x4795bb(0xb3)](typeof _0x1f9682,_0x3cfafa['FeKio'])&&(_0x66b2cf['model']=_0x1f9682),_0x66b2cf;}catch(_0x11f8d9){const _0x3b6d08=_0x3cfafa[_0x4795bb(0xb1)](_0x11f8d9,Error)?_0x11f8d9[_0x4795bb(0xb4)]:String(_0x11f8d9);return console[_0x4795bb(0xad)](_0x4795bb(0xab)+_0x5ecbb6+':\x20'+_0x3b6d08),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e1001,_0x27cbbe){const _0x553dde=_0x53b1,_0x3166ac=_0x1e1001();while(!![]){try{const _0x3dbad8=parseInt(_0x553dde(0xd1))/0x1*(-parseInt(_0x553dde(0xd5))/0x2)+parseInt(_0x553dde(0xdd))/0x3*(parseInt(_0x553dde(0xda))/0x4)+parseInt(_0x553dde(0xd3))/0x5+-parseInt(_0x553dde(0xc8))/0x6*(-parseInt(_0x553dde(0xd6))/0x7)+-parseInt(_0x553dde(0xd4))/0x8+parseInt(_0x553dde(0xcc))/0x9*(-parseInt(_0x553dde(0xc9))/0xa)+-parseInt(_0x553dde(0xdc))/0xb*(-parseInt(_0x553dde(0xd7))/0xc);if(_0x3dbad8===_0x27cbbe)break;else _0x3166ac['push'](_0x3166ac['shift']());}catch(_0x586f47){_0x3166ac['push'](_0x3166ac['shift']());}}}(_0x4315,0x2e8b1));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x1b138f=_0x53b1,_0x1e7fbd={'wuVwx':function(_0x5662b2,_0xad8e05){return _0x5662b2(_0xad8e05);},'vksGf':function(_0x585dd7,_0x36be52){return _0x585dd7(_0x36be52);},'HvcxQ':'.ranger'};let _0xb6650f=process['cwd']();const _0x493df8=_0x1e7fbd[_0x1b138f(0xdb)](parse,_0xb6650f)[_0x1b138f(0xd8)];while(_0xb6650f!==_0x493df8){if(existsSync(join(_0xb6650f,'.ranger')))return _0xb6650f;_0xb6650f=dirname(_0xb6650f);}if(_0x1e7fbd['vksGf'](existsSync,join(_0x493df8,_0x1e7fbd[_0x1b138f(0xcd)])))return _0x493df8;const _0x32b8f7=findGitRoot();if(_0x32b8f7)return _0x32b8f7;return process['cwd']();}export function getRangerDir(){const _0x5c8743=_0x53b1,_0x25a269={'HiThJ':function(_0x1738b0){return _0x1738b0();}};return join(_0x25a269[_0x5c8743(0xce)](getRangerRoot),_0x5c8743(0xd9));}export function findGitRoot(){const _0x2e86d0=_0x53b1,_0x533fae={'UaePo':function(_0x3d92ac,_0x13d960){return _0x3d92ac(_0x13d960);},'paeVX':function(_0x2205d9,_0xa3d41a){return _0x2205d9!==_0xa3d41a;},'WVvKu':function(_0x2bb465,_0x422fe9){return _0x2bb465(_0x422fe9);},'NKuar':function(_0x4a590a,_0x3ed7d2){return _0x4a590a(_0x3ed7d2);},'quUxN':function(_0x3ef571,_0x4da673,_0x45c347){return _0x3ef571(_0x4da673,_0x45c347);},'nuxKc':_0x2e86d0(0xcf)};let _0x439ddc=process['cwd']();const _0x346fb4=_0x533fae[_0x2e86d0(0xcb)](parse,_0x439ddc)['root'];while(_0x533fae['paeVX'](_0x439ddc,_0x346fb4)){if(existsSync(join(_0x439ddc,_0x2e86d0(0xcf))))return _0x439ddc;_0x439ddc=_0x533fae['WVvKu'](dirname,_0x439ddc);}if(_0x533fae[_0x2e86d0(0xca)](existsSync,_0x533fae[_0x2e86d0(0xd0)](join,_0x346fb4,_0x533fae[_0x2e86d0(0xd2)])))return _0x346fb4;return null;}function _0x53b1(_0x431f4d,_0x25dbfe){_0x431f4d=_0x431f4d-0xc8;const _0x43156d=_0x4315();let _0x53b120=_0x43156d[_0x431f4d];return _0x53b120;}export function getRangerHomeDir(){return join(homedir(),'.ranger');}function _0x4315(){const _0x2dcf52=['NKuar','UaePo','146709ujVNvZ','HvcxQ','HiThJ','.git','quUxN','8TXjiuW','nuxKc','1462680IckcFF','84000qodBLt','59326wbUHKL','1988kizIHo','739476SJtGSR','root','.ranger','16XhRNms','wuVwx','11UZKumV','79572koSIJv','228HhuxLU','20DBmGoj'];_0x4315=function(){return _0x2dcf52;};return _0x4315();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x17215b,_0x4a4e50){const _0x66fdcd=_0x59e0,_0x326188=_0x17215b();while(!![]){try{const _0x2e1b8a=-parseInt(_0x66fdcd(0x16d))/0x1*(parseInt(_0x66fdcd(0x165))/0x2)+-parseInt(_0x66fdcd(0x156))/0x3*(-parseInt(_0x66fdcd(0x15c))/0x4)+-parseInt(_0x66fdcd(0x162))/0x5*(-parseInt(_0x66fdcd(0x15f))/0x6)+parseInt(_0x66fdcd(0x154))/0x7*(-parseInt(_0x66fdcd(0x14e))/0x8)+-parseInt(_0x66fdcd(0x167))/0x9+parseInt(_0x66fdcd(0x159))/0xa+parseInt(_0x66fdcd(0x168))/0xb*(-parseInt(_0x66fdcd(0x163))/0xc);if(_0x2e1b8a===_0x4a4e50)break;else _0x326188['push'](_0x326188['shift']());}catch(_0x3ce2af){_0x326188['push'](_0x326188['shift']());}}}(_0x5097,0xaf6fb));import{readdir}from'fs/promises';import{join}from'path';function _0x59e0(_0x562aa8,_0x3ed6f8){_0x562aa8=_0x562aa8-0x149;const _0x5097fc=_0x5097();let _0x59e0a5=_0x5097fc[_0x562aa8];return _0x59e0a5;}import{existsSync}from'fs';export async function collectScreenshots(_0x242f48){const _0x28c7b7=_0x59e0,_0x39883d=[],_0x424eae=[];if(!existsSync(_0x242f48))return{'screenshots':_0x39883d,'paths':_0x424eae};const _0x29fbf8=await readdir(_0x242f48),_0x366ec4=_0x29fbf8[_0x28c7b7(0x14a)](_0x2cf548=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x2cf548))['sort']();for(const _0x991803 of _0x366ec4){const _0xfcd9c2=join(_0x242f48,_0x991803);_0x39883d['push']({'filename':_0x991803,'path':_0xfcd9c2,'relativePath':'./'+_0x991803}),_0x424eae['push'](_0xfcd9c2);}return{'screenshots':_0x39883d,'paths':_0x424eae};}function getSeverityEmoji(_0x275bb2){const _0x463607=_0x59e0,_0x4b4fbd={'ToAHP':'BLOCKER'};switch(_0x275bb2){case _0x4b4fbd['ToAHP']:return'🔴';case _0x463607(0x166):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x5f5a93){const _0x1ab54e=_0x59e0,_0x13294f=_0x5f5a93['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x4a2332=_0x13294f['replace'](/^\d+-/,'');return _0x4a2332['split']('-')[_0x1ab54e(0x150)](_0x645463=>_0x645463['charAt'](0x0)['toUpperCase']()+_0x645463[_0x1ab54e(0x160)](0x1))[_0x1ab54e(0x151)]('\x20');}function _0x5097(){const _0x7fc9c=['toFixed','19ViCbCj','---','filter','filename','**Status:**\x20','fawfi','488qhtPCe','##\x20Result','map','join','##\x20Task','##\x20Screenshots\x20(','74914PcBGzT','length','15711ouZXeY','apFai','#\x20Verification\x20Report','7222090VtiOIo','PASSED','description','1084HsBNEO','**Session:**\x20`','ISSUES\x20FOUND','1019142iqIBDV','slice','####\x20','15Sorypr','142836JReoev','push','102740KQnSLL','MAJOR','696699suCJho','209oPOGYz','**Duration:**\x20','severity','screenshot'];_0x5097=function(){return _0x7fc9c;};return _0x5097();}export function generateMarkdownReport(_0x1ed226){const _0x5af4ff=_0x59e0,_0x386ad4={'fawfi':function(_0x4ff409,_0x543312){return _0x4ff409/_0x543312;},'CmggX':_0x5af4ff(0x15a),'apFai':function(_0x206a30,_0x1443ec){return _0x206a30>_0x1443ec;},'hQVUR':function(_0x1840aa,_0x395b4d){return _0x1840aa>_0x395b4d;}},{sessionId:_0x2c5065,task:_0x3c2c1d,url:_0x598e18,success:_0xcb534,summary:_0x3e7fe1,issues:_0x3a6a51,screenshots:_0xacb3b0,durationMs:_0x37e8c5,traceViewerUrl:_0x2ff4ce}=_0x1ed226,_0x4344ba=new Date()['toISOString'](),_0x5e2676=_0x386ad4[_0x5af4ff(0x14d)](_0x37e8c5,0x3e8)[_0x5af4ff(0x16c)](0x1),_0x5c14c1=[];_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x158)),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1['push'](_0x5af4ff(0x15d)+_0x2c5065+'`'),_0x5c14c1[_0x5af4ff(0x164)]('**Generated:**\x20'+_0x4344ba),_0x5c14c1['push'](_0x5af4ff(0x169)+_0x5e2676+'s'),_0x5c14c1['push'](''),_0x5c14c1['push'](_0x5af4ff(0x152)),_0x5c14c1['push'](''),_0x5c14c1['push']('**URL:**\x20'+_0x598e18),_0x5c14c1['push'](''),_0x5c14c1[_0x5af4ff(0x164)]('>\x20'+_0x3c2c1d),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x14f)),_0x5c14c1['push']('');const _0x5d2669=_0xcb534?'✅':'❌';_0x5c14c1['push'](_0x5af4ff(0x14c)+_0x5d2669+'\x20'+(_0xcb534?_0x386ad4['CmggX']:_0x5af4ff(0x15e))),_0x5c14c1['push'](''),_0x5c14c1[_0x5af4ff(0x164)]('###\x20Summary'),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1[_0x5af4ff(0x164)](_0x3e7fe1),_0x5c14c1[_0x5af4ff(0x164)]('');if(_0x3a6a51&&_0x386ad4[_0x5af4ff(0x157)](_0x3a6a51[_0x5af4ff(0x155)],0x0)){_0x5c14c1[_0x5af4ff(0x164)]('###\x20Issues\x20Found\x20('+_0x3a6a51[_0x5af4ff(0x155)]+')'),_0x5c14c1[_0x5af4ff(0x164)]('');for(const _0x473ca4 of _0x3a6a51){const _0x1548ca=getSeverityEmoji(_0x473ca4['severity']);_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x161)+_0x1548ca+'\x20['+_0x473ca4[_0x5af4ff(0x16a)]+']\x20Issue'),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1['push'](_0x473ca4[_0x5af4ff(0x15b)]),_0x5c14c1[_0x5af4ff(0x164)]('');if(_0x473ca4['screenshot']){const _0x594e4d=_0x473ca4[_0x5af4ff(0x16b)],_0x3ea730=_0xacb3b0['find'](_0x227b5f=>_0x227b5f['filename']===_0x594e4d||_0x227b5f['filename']['includes'](_0x594e4d));_0x3ea730&&(_0x5c14c1['push']('**Screenshot:**'),_0x5c14c1['push'](''),_0x5c14c1['push'](''),_0x5c14c1[_0x5af4ff(0x164)](''));}}}if(_0x386ad4['hQVUR'](_0xacb3b0['length'],0x0)){_0x5c14c1['push'](_0x5af4ff(0x153)+_0xacb3b0[_0x5af4ff(0x155)]+')'),_0x5c14c1['push']('');for(const _0x405b64 of _0xacb3b0){const _0x93bfe9=formatScreenshotCaption(_0x405b64['filename']);_0x5c14c1[_0x5af4ff(0x164)]('###\x20'+_0x93bfe9),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1['push']('!['+_0x405b64[_0x5af4ff(0x14b)]+']('+_0x405b64['relativePath']+')'),_0x5c14c1[_0x5af4ff(0x164)]('');}}return _0x2ff4ce&&(_0x5c14c1[_0x5af4ff(0x164)](_0x5af4ff(0x149)),_0x5c14c1[_0x5af4ff(0x164)](''),_0x5c14c1[_0x5af4ff(0x164)]('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x2ff4ce+')'),_0x5c14c1[_0x5af4ff(0x164)]('')),_0x5c14c1[_0x5af4ff(0x151)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x56e9(_0x483b20,_0x14ce18){_0x483b20=_0x483b20-0x158;const _0x381878=_0x3818();let _0x56e957=_0x381878[_0x483b20];return _0x56e957;}(function(_0x1dd333,_0x48797a){const _0x4ba383=_0x56e9,_0x1c860d=_0x1dd333();while(!![]){try{const _0x591355=-parseInt(_0x4ba383(0x15d))/0x1+parseInt(_0x4ba383(0x15b))/0x2*(-parseInt(_0x4ba383(0x160))/0x3)+-parseInt(_0x4ba383(0x159))/0x4*(parseInt(_0x4ba383(0x165))/0x5)+parseInt(_0x4ba383(0x162))/0x6*(parseInt(_0x4ba383(0x15a))/0x7)+parseInt(_0x4ba383(0x166))/0x8+parseInt(_0x4ba383(0x15f))/0x9+-parseInt(_0x4ba383(0x163))/0xa*(-parseInt(_0x4ba383(0x161))/0xb);if(_0x591355===_0x48797a)break;else _0x1c860d['push'](_0x1c860d['shift']());}catch(_0x50d9de){_0x1c860d['push'](_0x1c860d['shift']());}}}(_0x3818,0x9cf84));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x3818(){const _0x263a01=['4707SyjsuS','33dKTvNi','282eFPFNs','4790150xdxquh','label','2395zkVKaj','7563472qdYhWs','wvZHf','ms...','pow','752tsmfIL','31493uYPfoO','1070zDIrqy','maxRetries','1135757VSWdqG','),\x20retrying\x20in\x20','1028160NIOels'];_0x3818=function(){return _0x263a01;};return _0x3818();}export async function withRetry(_0xd4765,_0xb1aab0){const _0x3d4ec2=_0x56e9,_0x45a60d={'wvZHf':function(_0x1709d8,_0x173e89){return _0x1709d8 instanceof _0x173e89;},'DJVGc':function(_0x5323fd,_0x3008f1){return _0x5323fd*_0x3008f1;}},_0x1aeedb=_0xb1aab0?.[_0x3d4ec2(0x15c)]??DEFAULT_MAX_RETRIES,_0x5a33bc=_0xb1aab0?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x1fb90b;for(let _0x526e1e=0x0;_0x526e1e<=_0x1aeedb;_0x526e1e++){try{return await _0xd4765();}catch(_0x96e69f){_0x1fb90b=_0x45a60d[_0x3d4ec2(0x167)](_0x96e69f,Error)?_0x96e69f:new Error(String(_0x96e69f));if(_0x526e1e<_0x1aeedb){const _0x15d09e=_0x45a60d['DJVGc'](_0x5a33bc,Math[_0x3d4ec2(0x158)](0x2,_0x526e1e));_0xb1aab0?.['label']&&console['error'](_0xb1aab0[_0x3d4ec2(0x164)]+'\x20failed\x20(attempt\x20'+(_0x526e1e+0x1)+'/'+(_0x1aeedb+0x1)+_0x3d4ec2(0x15e)+_0x15d09e+_0x3d4ec2(0x168)),await new Promise(_0x5731f7=>setTimeout(_0x5731f7,_0x15d09e));}}}throw _0x1fb90b;}
|