@ranger-testing/ranger-cli 2.4.6 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/build/skills/ranger/SKILL.md +38 -41
- package/build/skills/ranger/create.md +5 -13
- package/build/skills/ranger/feedback.md +3 -3
- package/build/skills/ranger/start.md +13 -13
- package/build/skills/ranger/verify.md +15 -28
- package/package.json +5 -3
- package/scripts/postinstall.js +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x379005,_0x5ea8c8){const _0x5437cd=_0x5742,_0x41e289=_0x379005();while(!![]){try{const _0x91c6bb=parseInt(_0x5437cd(0x1f6))/0x1+parseInt(_0x5437cd(0x1d4))/0x2*(-parseInt(_0x5437cd(0x1bd))/0x3)+-parseInt(_0x5437cd(0x1f5))/0x4*(-parseInt(_0x5437cd(0x1c0))/0x5)+parseInt(_0x5437cd(0x1ba))/0x6+parseInt(_0x5437cd(0x1e2))/0x7*(parseInt(_0x5437cd(0x1c4))/0x8)+parseInt(_0x5437cd(0x1f9))/0x9+parseInt(_0x5437cd(0x1ce))/0xa*(-parseInt(_0x5437cd(0x1c3))/0xb);if(_0x91c6bb===_0x5ea8c8)break;else _0x41e289['push'](_0x41e289['shift']());}catch(_0x3ece89){_0x41e289['push'](_0x41e289['shift']());}}}(_0x41ec,0x9d0f9));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';function _0x5742(_0x50cb7c,_0x233f80){_0x50cb7c=_0x50cb7c-0x1b2;const _0x41ec25=_0x41ec();let _0x5742c5=_0x41ec25[_0x50cb7c];return _0x5742c5;}export async function createFeature(_0x48eada){const _0x4bdf60=_0x5742,_0x10b1ed={'aldWY':function(_0x5cfe26){return _0x5cfe26();},'aXnPw':_0x4bdf60(0x1d9),'rgfxf':function(_0x1d8f9e){return _0x1d8f9e();},'sMgQr':_0x4bdf60(0x1d5),'SKXpw':'Feature\x20limit\x20exceeded'},_0xf8ad61=await _0x10b1ed[_0x4bdf60(0x1bc)](getToken);if(!_0xf8ad61)throw new Error(_0x10b1ed[_0x4bdf60(0x1eb)]);const _0x51974e=_0x10b1ed['rgfxf'](getApiBaseUrl),_0x311b98=await fetch(_0x51974e+_0x4bdf60(0x1f8),{'method':'POST','headers':{'Authorization':_0x4bdf60(0x1b9)+_0xf8ad61,'Content-Type':_0x10b1ed[_0x4bdf60(0x1fb)]},'body':JSON['stringify'](_0x48eada)});if(!_0x311b98['ok']){if(_0x311b98[_0x4bdf60(0x1f7)]===0x192){const _0x29e3ab=await _0x311b98[_0x4bdf60(0x1d6)](),_0x2205bb=_0x29e3ab['billingUrl']||'https://dashboard.ranger.net/billing';throw new Error((_0x29e3ab['message']||_0x10b1ed[_0x4bdf60(0x1e3)])+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x2205bb);}const _0x2813b9=await _0x311b98[_0x4bdf60(0x1ff)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x2813b9);}return _0x311b98[_0x4bdf60(0x1d6)]();}export async function listFeatures(_0x29d79a){const _0x1761bc=_0x5742,_0x2f1642={'gZaAo':function(_0x353762){return _0x353762();},'bDTRv':_0x1761bc(0x1d9),'ypyZB':_0x1761bc(0x1cc),'Sxavj':_0x1761bc(0x1f3),'oeyqj':_0x1761bc(0x1d0),'jKjTR':_0x1761bc(0x1e5),'KkXzT':function(_0xd8e33f,_0x2adb2c,_0x3046bc){return _0xd8e33f(_0x2adb2c,_0x3046bc);}},_0xb085fa=await _0x2f1642['gZaAo'](getToken);if(!_0xb085fa)throw new Error(_0x2f1642['bDTRv']);const _0x3f0531=_0x2f1642[_0x1761bc(0x1cf)](getApiBaseUrl),_0x108bdb=new URLSearchParams();if(_0x29d79a?.[_0x1761bc(0x1cc)])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642['ypyZB'],_0x29d79a[_0x1761bc(0x1cc)]);if(_0x29d79a?.['gitBranch'])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642['Sxavj'],_0x29d79a['gitBranch']);if(_0x29d79a?.[_0x1761bc(0x1d0)])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642['oeyqj'],_0x29d79a['limit'][_0x1761bc(0x1df)]());if(_0x29d79a?.[_0x1761bc(0x1e4)])_0x108bdb['set'](_0x1761bc(0x1e4),_0x29d79a['offset'][_0x1761bc(0x1df)]());if(_0x29d79a?.['includeDeleted'])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642[_0x1761bc(0x1c7)],_0x1761bc(0x1fe));const _0x2e74a9=_0x3f0531+_0x1761bc(0x1f8)+(_0x108bdb[_0x1761bc(0x1df)]()?'?'+_0x108bdb['toString']():''),_0x4e442b=await _0x2f1642[_0x1761bc(0x1b7)](fetch,_0x2e74a9,{'method':_0x1761bc(0x1f0),'headers':{'Authorization':'Bearer\x20'+_0xb085fa}});if(!_0x4e442b['ok']){const _0x3bc917=await _0x4e442b[_0x1761bc(0x1ff)]();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x3bc917);}return _0x4e442b[_0x1761bc(0x1d6)]();}export async function getFeature(_0x25c7a8){const _0x373041=_0x5742,_0x5a3e01={'hoziH':function(_0x38cead){return _0x38cead();},'Zqfop':_0x373041(0x1d9),'LFryk':function(_0x3a7d93,_0x48036e,_0x9957ba){return _0x3a7d93(_0x48036e,_0x9957ba);},'FwnDq':'GET'},_0x2eb02d=await _0x5a3e01[_0x373041(0x1dc)](getToken);if(!_0x2eb02d)throw new Error(_0x5a3e01['Zqfop']);const _0x15e4a9=getApiBaseUrl(),_0x41bc55=await _0x5a3e01[_0x373041(0x1d3)](fetch,_0x15e4a9+'/api/v1/mcp/features/'+_0x25c7a8,{'method':_0x5a3e01[_0x373041(0x1b6)],'headers':{'Authorization':'Bearer\x20'+_0x2eb02d}});if(!_0x41bc55['ok']){const _0x2b77cb=await _0x41bc55[_0x373041(0x1ff)]();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x2b77cb);}return _0x41bc55['json']();}export async function updateFeature(_0x2490e7,_0x3396cd){const _0x247a1a=_0x5742,_0x5798af={'LocvJ':_0x247a1a(0x1d9),'PvDfd':function(_0x413621){return _0x413621();},'JCgvc':function(_0x5a9310,_0x385092,_0x4ce63f){return _0x5a9310(_0x385092,_0x4ce63f);}},_0x2ca557=await getToken();if(!_0x2ca557)throw new Error(_0x5798af[_0x247a1a(0x1bb)]);const _0x4bb15c=_0x5798af[_0x247a1a(0x1e9)](getApiBaseUrl),_0x4a242a=await _0x5798af['JCgvc'](fetch,_0x4bb15c+'/api/v1/mcp/features/'+_0x2490e7,{'method':_0x247a1a(0x1c2),'headers':{'Authorization':'Bearer\x20'+_0x2ca557,'Content-Type':'application/json'},'body':JSON[_0x247a1a(0x1cb)](_0x3396cd)});if(!_0x4a242a['ok']){const _0x4406a5=await _0x4a242a['text']();throw new Error(_0x247a1a(0x1e7)+_0x4406a5);}return _0x4a242a[_0x247a1a(0x1d6)]();}export async function createChecklistItem(_0x2ff337,_0x17ac3f,_0x190d6e){const _0x3a1abc=_0x5742,_0x6ff4f6={'ujHxP':function(_0x375ee7){return _0x375ee7();},'TCvpQ':_0x3a1abc(0x1d9),'uTtHn':function(_0x16b93a,_0x15c0ff,_0x31ef92){return _0x16b93a(_0x15c0ff,_0x31ef92);},'VYoBA':'POST','Vufqb':'application/json'},_0x569f82=await _0x6ff4f6['ujHxP'](getToken);if(!_0x569f82)throw new Error(_0x6ff4f6[_0x3a1abc(0x1d8)]);const _0xbd0409=getApiBaseUrl(),_0x3696d8=await _0x6ff4f6['uTtHn'](fetch,_0xbd0409+'/api/v1/mcp/features/'+_0x2ff337+'/checklist',{'method':_0x6ff4f6['VYoBA'],'headers':{'Authorization':'Bearer\x20'+_0x569f82,'Content-Type':_0x6ff4f6['Vufqb']},'body':JSON['stringify']({'description':_0x17ac3f,'position':_0x190d6e})});if(!_0x3696d8['ok']){const _0xeeafd7=await _0x3696d8['text']();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0xeeafd7);}return _0x3696d8[_0x3a1abc(0x1d6)]();}export async function updateChecklistItem(_0x3839f9,_0x55f22b,_0x5e30cb){const _0x319e66=_0x5742,_0x59be5c={'dDWdR':_0x319e66(0x1d9),'AjPFv':function(_0x4e0458,_0x5a4a16,_0x8a7370){return _0x4e0458(_0x5a4a16,_0x8a7370);},'JKaFk':_0x319e66(0x1e1)};return _0x59be5c['AjPFv'](withRetry,async()=>{const _0x29a317=_0x319e66,_0x197b1d=await getToken();if(!_0x197b1d)throw new Error(_0x59be5c['dDWdR']);const _0x4778d1=getApiBaseUrl(),_0x3f7f35=await fetch(_0x4778d1+_0x29a317(0x1f4)+_0x3839f9+'/checklist/'+_0x55f22b,{'method':_0x29a317(0x1c2),'headers':{'Authorization':_0x29a317(0x1b9)+_0x197b1d,'Content-Type':_0x29a317(0x1d5)},'body':JSON['stringify'](_0x5e30cb)});if(!_0x3f7f35['ok']){const _0x25756d=await _0x3f7f35[_0x29a317(0x1ff)]();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x25756d);}return _0x3f7f35[_0x29a317(0x1d6)]();},{'label':_0x59be5c[_0x319e66(0x1c1)]});}export async function getFeatureReport(_0x114f37){const _0x53499d=_0x5742,_0x637db5={'qZEow':_0x53499d(0x1d9),'ETPwA':function(_0x5ae3d8){return _0x5ae3d8();}},_0x4944c1=await getToken();if(!_0x4944c1)throw new Error(_0x637db5['qZEow']);const _0x2d0755=_0x637db5[_0x53499d(0x1d1)](getApiBaseUrl),_0x22ffac=await fetch(_0x2d0755+_0x53499d(0x1f4)+_0x114f37+_0x53499d(0x1fd),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x4944c1}});if(!_0x22ffac['ok']){const _0x3a9d54=await _0x22ffac['text']();throw new Error(_0x53499d(0x1f2)+_0x3a9d54);}return _0x22ffac['json']();}export async function getFeatureReportMarkdown(_0x1cca1d,_0x20c610){const _0x48a161=_0x5742,_0x58b4f4={'RVKvv':_0x48a161(0x1d9),'VXCmi':function(_0x137d2c,_0x310216){return _0x137d2c>_0x310216;},'tWJlA':'sessionId','qOWkL':function(_0xb271d5,_0x25d4f0,_0x4260b7){return _0xb271d5(_0x25d4f0,_0x4260b7);}},_0x432630=await getToken();if(!_0x432630)throw new Error(_0x58b4f4['RVKvv']);const _0x19d4a7=getApiBaseUrl(),_0x53a18d=new URLSearchParams(),_0x1e6743=_0x58b4f4['VXCmi'](_0x20c610?.['itemIds']?.['length']??0x0,0x0),_0x277588=Boolean(_0x20c610?.['sessionId']);_0x1e6743&&_0x20c610?.['itemIds']&&_0x53a18d[_0x48a161(0x1b8)]('itemIds',_0x20c610['itemIds'][_0x48a161(0x1e6)](','));_0x277588&&_0x20c610?.['sessionId']&&_0x53a18d[_0x48a161(0x1b8)](_0x58b4f4[_0x48a161(0x1e0)],_0x20c610[_0x48a161(0x1dd)]);!_0x1e6743&&!_0x277588&&_0x20c610?.[_0x48a161(0x1ec)]&&_0x53a18d['set']('style',_0x20c610['style']);const _0x26e57=_0x19d4a7+_0x48a161(0x1f4)+_0x1cca1d+_0x48a161(0x1f1),_0x1c9754=''+_0x26e57+(_0x53a18d[_0x48a161(0x1df)]()?'?'+_0x53a18d['toString']():''),_0x2d3315=await _0x58b4f4['qOWkL'](fetch,_0x1c9754,{'method':_0x48a161(0x1f0),'headers':{'Authorization':_0x48a161(0x1b9)+_0x432630}});if(!_0x2d3315['ok']){const _0x51f285=await _0x2d3315[_0x48a161(0x1ff)]();throw new Error(_0x48a161(0x1cd)+_0x51f285);}return _0x2d3315[_0x48a161(0x1ff)]();}export async function listFeatureSessions(_0x424ec1){const _0x4062cb=_0x5742,_0x3ae4f9={'tODIY':function(_0x852376){return _0x852376();},'gYQgH':_0x4062cb(0x1f0)},_0x51b516=await getToken();if(!_0x51b516)throw new Error(_0x4062cb(0x1d9));const _0x12c2ea=_0x3ae4f9['tODIY'](getApiBaseUrl),_0x35c593=await fetch(_0x12c2ea+'/api/v1/mcp/features/'+_0x424ec1+'/sessions',{'method':_0x3ae4f9['gYQgH'],'headers':{'Authorization':_0x4062cb(0x1b9)+_0x51b516}});if(!_0x35c593['ok']){const _0x16ddeb=await _0x35c593[_0x4062cb(0x1ff)]();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x16ddeb);}return _0x35c593[_0x4062cb(0x1d6)]();}export async function startSession(_0x4d7dc3,_0x5f1f4e){const _0x1197de=_0x5742,_0x5a92d5={'HvQPM':function(_0x29df3b){return _0x29df3b();},'ANozU':function(_0x17e7f3,_0x3fe6db,_0x3af64c){return _0x17e7f3(_0x3fe6db,_0x3af64c);}},_0x24b53f=await _0x5a92d5[_0x1197de(0x1bf)](getToken);if(!_0x24b53f)throw new Error(_0x1197de(0x1d9));const _0x5f0994=getApiBaseUrl(),_0x22c919=await _0x5a92d5[_0x1197de(0x1c9)](fetch,_0x5f0994+_0x1197de(0x1f4)+_0x4d7dc3+'/sessions/'+_0x5f1f4e+_0x1197de(0x1b3),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x24b53f}});if(!_0x22c919['ok']){const _0x46475a=await _0x22c919[_0x1197de(0x1ff)]();throw new Error(_0x1197de(0x200)+_0x46475a);}return _0x22c919['json']();}function _0x41ec(){const _0x32bb9c=['/action-items','stringify','gitRepoUrl','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','3899810ViCgIS','gZaAo','limit','ETPwA','Failed\x20to\x20delete\x20feature\x20review:\x20','LFryk','43432RskuRn','application/json','json','GYZLR','TCvpQ','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','nIser','VsJuN','hoziH','sessionId','BQjCi','toString','tWJlA','updateChecklistItem','3983tfVQJm','SKXpw','offset','includeDeleted','join','Failed\x20to\x20update\x20feature\x20review:\x20','Mcruz','PvDfd','Failed\x20to\x20get\x20item\x20feedback:\x20','aXnPw','style','DELETE','POST','wrfJx','GET','/report/markdown','Failed\x20to\x20get\x20feature\x20review\x20report:\x20','gitBranch','/api/v1/mcp/features/','204mQchOi','679040fPsJcl','status','/api/v1/mcp/features','3602988icglZp','Failed\x20to\x20get\x20action\x20items:\x20','sMgQr','hIUSQ','/report','true','text','Failed\x20to\x20start\x20session:\x20','/restore','/start','YlDKl','luGjd','FwnDq','KkXzT','set','Bearer\x20','5840790gPtUgP','LocvJ','aldWY','3urhvRx','cdrCP','HvQPM','71105owPULK','JKaFk','PATCH','77MkBoQI','8672RhhFUy','FVvgA','xmmoL','jKjTR','pVXgQ','ANozU'];_0x41ec=function(){return _0x32bb9c;};return _0x41ec();}export async function concludeSession(_0x17b37d,_0x4c4cac){const _0x2e50de=_0x5742,_0x3acabc={'BpaVd':function(_0x4fce2e){return _0x4fce2e();},'YlDKl':_0x2e50de(0x1d9),'VsJuN':_0x2e50de(0x1ee)},_0x5a9e0d=await _0x3acabc['BpaVd'](getToken);if(!_0x5a9e0d)throw new Error(_0x3acabc[_0x2e50de(0x1b4)]);const _0x3e8467=getApiBaseUrl(),_0x29fcf9=await fetch(_0x3e8467+_0x2e50de(0x1f4)+_0x17b37d+'/sessions/'+_0x4c4cac+'/conclude',{'method':_0x3acabc[_0x2e50de(0x1db)],'headers':{'Authorization':_0x2e50de(0x1b9)+_0x5a9e0d}});if(!_0x29fcf9['ok']){const _0x19360b=await _0x29fcf9['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x19360b);}return _0x29fcf9[_0x2e50de(0x1d6)]();}export async function getActionItems(_0x4345f9){const _0x5dd6cc=_0x5742,_0x5d148a={'Flvcv':function(_0x19b9e2){return _0x19b9e2();},'ANBux':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','luGjd':_0x5dd6cc(0x1f0)},_0x445d2b=await _0x5d148a['Flvcv'](getToken);if(!_0x445d2b)throw new Error(_0x5d148a['ANBux']);const _0x3f1e84=getApiBaseUrl(),_0xfb2620=await fetch(_0x3f1e84+_0x5dd6cc(0x1f4)+_0x4345f9+_0x5dd6cc(0x1ca),{'method':_0x5d148a[_0x5dd6cc(0x1b5)],'headers':{'Authorization':_0x5dd6cc(0x1b9)+_0x445d2b}});if(!_0xfb2620['ok']){const _0x345180=await _0xfb2620['text']();throw new Error(_0x5dd6cc(0x1fa)+_0x345180);}return _0xfb2620['json']();}export async function getItemFeedback(_0x55f2d6,_0x478736){const _0x18beea=_0x5742,_0x21d0b7={'GYZLR':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','xQSyV':function(_0x3985ff){return _0x3985ff();},'FVvgA':_0x18beea(0x1f0)},_0x218944=await getToken();if(!_0x218944)throw new Error(_0x21d0b7[_0x18beea(0x1d7)]);const _0x439c48=_0x21d0b7['xQSyV'](getApiBaseUrl),_0x5285d2=await fetch(_0x439c48+_0x18beea(0x1f4)+_0x55f2d6+'/checklist-items/'+_0x478736+'/feedback',{'method':_0x21d0b7[_0x18beea(0x1c5)],'headers':{'Authorization':_0x18beea(0x1b9)+_0x218944}});if(!_0x5285d2['ok']){const _0x233815=await _0x5285d2[_0x18beea(0x1ff)]();throw new Error(_0x18beea(0x1ea)+_0x233815);}return _0x5285d2[_0x18beea(0x1d6)]();}export async function markCommentsAddressed(_0x231b4c,_0x3bc0a0,_0x4f6ac3){const _0x168fb5=_0x5742,_0x3aba95={'cdrCP':function(_0x2cabc1){return _0x2cabc1();},'RuqHx':_0x168fb5(0x1d9),'wrfJx':function(_0xd1a276,_0x4593dc,_0x51fe6c){return _0xd1a276(_0x4593dc,_0x51fe6c);},'nIser':_0x168fb5(0x1d5)},_0x129e7e=await _0x3aba95[_0x168fb5(0x1be)](getToken);if(!_0x129e7e)throw new Error(_0x3aba95['RuqHx']);const _0x485eb5=getApiBaseUrl(),_0x3f1fcd=await _0x3aba95[_0x168fb5(0x1ef)](fetch,_0x485eb5+'/api/v1/mcp/features/'+_0x231b4c+'/comments/address',{'method':'POST','headers':{'Authorization':_0x168fb5(0x1b9)+_0x129e7e,'Content-Type':_0x3aba95[_0x168fb5(0x1da)]},'body':JSON[_0x168fb5(0x1cb)]({'checklistItemId':_0x3bc0a0,'commentIds':_0x4f6ac3})});if(!_0x3f1fcd['ok']){const _0x2acd3b=await _0x3f1fcd[_0x168fb5(0x1ff)]();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x2acd3b);}}export async function softDeleteFeature(_0xe90916){const _0x221c32=_0x5742,_0x146261={'xmmoL':function(_0x1b2a42){return _0x1b2a42();},'pVXgQ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Znnlj':function(_0x28fc6d){return _0x28fc6d();},'BQjCi':function(_0x3dd15c,_0x3d2272,_0x357fc5){return _0x3dd15c(_0x3d2272,_0x357fc5);},'Mcruz':_0x221c32(0x1ed)},_0x41cbf7=await _0x146261[_0x221c32(0x1c6)](getToken);if(!_0x41cbf7)throw new Error(_0x146261[_0x221c32(0x1c8)]);const _0x3f21eb=_0x146261['Znnlj'](getApiBaseUrl),_0x13901c=await _0x146261[_0x221c32(0x1de)](fetch,_0x3f21eb+_0x221c32(0x1f4)+_0xe90916,{'method':_0x146261[_0x221c32(0x1e8)],'headers':{'Authorization':_0x221c32(0x1b9)+_0x41cbf7}});if(!_0x13901c['ok']){const _0xd98bbb=await _0x13901c['text']();throw new Error(_0x221c32(0x1d2)+_0xd98bbb);}}export async function restoreFeature(_0x3e68fe){const _0x5e937f=_0x5742,_0x2734e8={'hIUSQ':function(_0x53d80c){return _0x53d80c();},'oqVbM':function(_0x872cb2,_0x130537,_0xe6d842){return _0x872cb2(_0x130537,_0xe6d842);},'VcOIS':_0x5e937f(0x1ee)},_0x5bc42a=await getToken();if(!_0x5bc42a)throw new Error(_0x5e937f(0x1d9));const _0x534f09=_0x2734e8[_0x5e937f(0x1fc)](getApiBaseUrl),_0x2758cb=await _0x2734e8['oqVbM'](fetch,_0x534f09+'/api/v1/mcp/features/'+_0x3e68fe+_0x5e937f(0x1b2),{'method':_0x2734e8['VcOIS'],'headers':{'Authorization':_0x5e937f(0x1b9)+_0x5bc42a}});if(!_0x2758cb['ok']){const _0x55c24c=await _0x2758cb[_0x5e937f(0x1ff)]();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x55c24c);}}
|
|
1
|
+
(function(_0x3f3212,_0x1e6c3c){const _0x3c1c68=_0x7754,_0x2eb488=_0x3f3212();while(!![]){try{const _0x2e29d9=parseInt(_0x3c1c68(0x178))/0x1*(-parseInt(_0x3c1c68(0x194))/0x2)+-parseInt(_0x3c1c68(0x182))/0x3+-parseInt(_0x3c1c68(0x192))/0x4*(-parseInt(_0x3c1c68(0x176))/0x5)+-parseInt(_0x3c1c68(0x171))/0x6*(parseInt(_0x3c1c68(0x186))/0x7)+parseInt(_0x3c1c68(0x175))/0x8*(-parseInt(_0x3c1c68(0x17a))/0x9)+parseInt(_0x3c1c68(0x15c))/0xa+parseInt(_0x3c1c68(0x162))/0xb;if(_0x2e29d9===_0x1e6c3c)break;else _0x2eb488['push'](_0x2eb488['shift']());}catch(_0x78787c){_0x2eb488['push'](_0x2eb488['shift']());}}}(_0x57bc,0x9dcd6));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x554ad4){const _0x185069=_0x7754,_0x5ec59b={'ljJrt':_0x185069(0x151),'wlUIl':function(_0x2e9c62,_0x449feb,_0x1b8709){return _0x2e9c62(_0x449feb,_0x1b8709);},'FXwIa':_0x185069(0x17d)},_0x157942=await getToken();if(!_0x157942)throw new Error(_0x5ec59b['ljJrt']);const _0x3b90ee=getApiBaseUrl(),_0x22cc35=await _0x5ec59b['wlUIl'](fetch,_0x3b90ee+'/api/v1/mcp/features',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x157942,'Content-Type':'application/json'},'body':JSON['stringify'](_0x554ad4)});if(!_0x22cc35['ok']){if(_0x22cc35[_0x185069(0x180)]===0x192){const _0x2d704f=await _0x22cc35['json'](),_0x472aa2=_0x2d704f[_0x185069(0x172)]||_0x5ec59b['FXwIa'];throw new Error((_0x2d704f['message']||'Feature\x20limit\x20exceeded')+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x472aa2);}const _0x391c63=await _0x22cc35[_0x185069(0x166)]();throw new Error(_0x185069(0x167)+_0x391c63);}return _0x22cc35[_0x185069(0x185)]();}export async function listFeatures(_0x452a82){const _0x1c50c5=_0x7754,_0x55b559={'epzyO':function(_0x34195a){return _0x34195a();},'jQfXW':'limit','YtfaR':'GET'},_0x244a60=await getToken();if(!_0x244a60)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3d4997=_0x55b559[_0x1c50c5(0x152)](getApiBaseUrl),_0x29f37c=new URLSearchParams();if(_0x452a82?.['gitRepoUrl'])_0x29f37c['set'](_0x1c50c5(0x155),_0x452a82[_0x1c50c5(0x155)]);if(_0x452a82?.[_0x1c50c5(0x150)])_0x29f37c['set']('gitBranch',_0x452a82[_0x1c50c5(0x150)]);if(_0x452a82?.['limit'])_0x29f37c['set'](_0x55b559['jQfXW'],_0x452a82['limit'][_0x1c50c5(0x183)]());if(_0x452a82?.[_0x1c50c5(0x18d)])_0x29f37c[_0x1c50c5(0x165)]('offset',_0x452a82[_0x1c50c5(0x18d)]['toString']());if(_0x452a82?.['includeDeleted'])_0x29f37c['set'](_0x1c50c5(0x193),_0x1c50c5(0x190));const _0x16eafc=_0x3d4997+'/api/v1/mcp/features'+(_0x29f37c[_0x1c50c5(0x183)]()?'?'+_0x29f37c[_0x1c50c5(0x183)]():''),_0x3addd4=await fetch(_0x16eafc,{'method':_0x55b559['YtfaR'],'headers':{'Authorization':_0x1c50c5(0x16d)+_0x244a60}});if(!_0x3addd4['ok']){const _0x31f6e5=await _0x3addd4[_0x1c50c5(0x166)]();throw new Error(_0x1c50c5(0x179)+_0x31f6e5);}return _0x3addd4[_0x1c50c5(0x185)]();}export async function getFeature(_0xf52706){const _0x3d389f=_0x7754,_0x285b52={'HCcTh':_0x3d389f(0x151)},_0x301e7e=await getToken();if(!_0x301e7e)throw new Error(_0x285b52['HCcTh']);const _0x12784b=getApiBaseUrl(),_0x46da88=await fetch(_0x12784b+'/api/v1/mcp/features/'+_0xf52706,{'method':'GET','headers':{'Authorization':_0x3d389f(0x16d)+_0x301e7e}});if(!_0x46da88['ok']){const _0x467f4b=await _0x46da88['text']();throw new Error(_0x3d389f(0x159)+_0x467f4b);}return _0x46da88['json']();}export async function updateFeature(_0x1d50be,_0x255628){const _0x2d2781=_0x7754,_0x44fccb={'sRAtR':function(_0x3991c6){return _0x3991c6();},'dAEgF':_0x2d2781(0x184),'HkBAR':_0x2d2781(0x174)},_0x42ee67=await _0x44fccb[_0x2d2781(0x15e)](getToken);if(!_0x42ee67)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x25534f=_0x44fccb['sRAtR'](getApiBaseUrl),_0x19a272=await fetch(_0x25534f+'/api/v1/mcp/features/'+_0x1d50be,{'method':_0x44fccb[_0x2d2781(0x187)],'headers':{'Authorization':_0x2d2781(0x16d)+_0x42ee67,'Content-Type':_0x44fccb[_0x2d2781(0x156)]},'body':JSON['stringify'](_0x255628)});if(!_0x19a272['ok']){const _0x267572=await _0x19a272[_0x2d2781(0x166)]();throw new Error(_0x2d2781(0x18e)+_0x267572);}return _0x19a272['json']();}export async function createChecklistItem(_0x46617f,_0x36fc5f,_0x2e3906){const _0x2232d3=_0x7754,_0x2f6b53={'JciWu':function(_0xe8234){return _0xe8234();}},_0x22194c=await _0x2f6b53['JciWu'](getToken);if(!_0x22194c)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4887ac=_0x2f6b53['JciWu'](getApiBaseUrl),_0x15d3fc=await fetch(_0x4887ac+'/api/v1/mcp/features/'+_0x46617f+'/checklist',{'method':_0x2232d3(0x177),'headers':{'Authorization':_0x2232d3(0x16d)+_0x22194c,'Content-Type':'application/json'},'body':JSON['stringify']({'description':_0x36fc5f,'position':_0x2e3906})});if(!_0x15d3fc['ok']){const _0xdd8f44=await _0x15d3fc['text']();throw new Error(_0x2232d3(0x181)+_0xdd8f44);}return _0x15d3fc['json']();}export async function updateChecklistItem(_0x3c8d3f,_0x2a6f7f,_0x4e1cda){const _0x45dfc9=_0x7754,_0x1da6a9={'DCwtO':function(_0xad09f){return _0xad09f();},'TbbAp':function(_0x30bc8f,_0x36607a,_0x2ba6a6){return _0x30bc8f(_0x36607a,_0x2ba6a6);},'VTGpV':_0x45dfc9(0x184)};return withRetry(async()=>{const _0x27d521=_0x45dfc9,_0x1d9930=await _0x1da6a9['DCwtO'](getToken);if(!_0x1d9930)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x32be52=_0x1da6a9[_0x27d521(0x16f)](getApiBaseUrl),_0x281cc6=await _0x1da6a9[_0x27d521(0x169)](fetch,_0x32be52+'/api/v1/mcp/features/'+_0x3c8d3f+'/checklist/'+_0x2a6f7f,{'method':_0x1da6a9['VTGpV'],'headers':{'Authorization':_0x27d521(0x16d)+_0x1d9930,'Content-Type':_0x27d521(0x174)},'body':JSON['stringify'](_0x4e1cda)});if(!_0x281cc6['ok']){const _0x35f535=await _0x281cc6['text']();throw new Error(_0x27d521(0x157)+_0x35f535);}return _0x281cc6[_0x27d521(0x185)]();},{'label':_0x45dfc9(0x163)});}export async function getFeatureReport(_0x7dffd4){const _0x12456e=_0x7754,_0x576269={'GSeJp':function(_0x1e1878){return _0x1e1878();}},_0x2eb806=await _0x576269['GSeJp'](getToken);if(!_0x2eb806)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x16cd38=getApiBaseUrl(),_0x4555a1=await fetch(_0x16cd38+'/api/v1/mcp/features/'+_0x7dffd4+'/report',{'method':'GET','headers':{'Authorization':_0x12456e(0x16d)+_0x2eb806}});if(!_0x4555a1['ok']){const _0x48d2c4=await _0x4555a1[_0x12456e(0x166)]();throw new Error(_0x12456e(0x15f)+_0x48d2c4);}return _0x4555a1['json']();}export async function getFeatureReportMarkdown(_0xbfd585,_0x4daa44){const _0x2630af=_0x7754,_0x59c6d8={'MqfSz':function(_0x149910){return _0x149910();},'WodPm':_0x2630af(0x191),'CzgiO':function(_0x4a42d0,_0x39ba31,_0x2c845c){return _0x4a42d0(_0x39ba31,_0x2c845c);}},_0x28f1dc=await _0x59c6d8[_0x2630af(0x161)](getToken);if(!_0x28f1dc)throw new Error(_0x2630af(0x151));const _0x5df438=getApiBaseUrl(),_0x257591=new URLSearchParams(),_0x404610=(_0x4daa44?.[_0x2630af(0x154)]?.[_0x2630af(0x189)]??0x0)>0x0,_0x29028e=Boolean(_0x4daa44?.['sessionId']);_0x404610&&_0x4daa44?.[_0x2630af(0x154)]&&_0x257591['set']('itemIds',_0x4daa44['itemIds'][_0x2630af(0x188)](','));_0x29028e&&_0x4daa44?.[_0x2630af(0x191)]&&_0x257591[_0x2630af(0x165)](_0x59c6d8[_0x2630af(0x160)],_0x4daa44['sessionId']);!_0x404610&&!_0x29028e&&_0x4daa44?.['style']&&_0x257591['set'](_0x2630af(0x164),_0x4daa44[_0x2630af(0x164)]);const _0x3f27df=_0x5df438+_0x2630af(0x14f)+_0xbfd585+'/report/markdown',_0x44c683=''+_0x3f27df+(_0x257591[_0x2630af(0x183)]()?'?'+_0x257591[_0x2630af(0x183)]():''),_0x31e7f1=await _0x59c6d8[_0x2630af(0x158)](fetch,_0x44c683,{'method':'GET','headers':{'Authorization':_0x2630af(0x16d)+_0x28f1dc}});if(!_0x31e7f1['ok']){const _0x5a6008=await _0x31e7f1['text']();throw new Error(_0x2630af(0x18a)+_0x5a6008);}return _0x31e7f1['text']();}export async function listFeatureSessions(_0x43e1e6){const _0x19da25=_0x7754,_0x279247={'MSDAY':_0x19da25(0x151),'rMIWf':function(_0x47ed39){return _0x47ed39();},'TYtRh':function(_0x14607e,_0x4e2043,_0x45d8f1){return _0x14607e(_0x4e2043,_0x45d8f1);},'PCJJC':'GET'},_0x1f26d9=await getToken();if(!_0x1f26d9)throw new Error(_0x279247[_0x19da25(0x17c)]);const _0xb1e2f1=_0x279247[_0x19da25(0x17f)](getApiBaseUrl),_0x27eab7=await _0x279247['TYtRh'](fetch,_0xb1e2f1+'/api/v1/mcp/features/'+_0x43e1e6+_0x19da25(0x15b),{'method':_0x279247[_0x19da25(0x15a)],'headers':{'Authorization':'Bearer\x20'+_0x1f26d9}});if(!_0x27eab7['ok']){const _0x37b552=await _0x27eab7[_0x19da25(0x166)]();throw new Error(_0x19da25(0x16a)+_0x37b552);}return _0x27eab7[_0x19da25(0x185)]();}export async function startSession(_0x1299b2,_0x2de31f){const _0x3b0e2e=_0x7754,_0x40d01f={'vyiGV':function(_0x3b0a4a){return _0x3b0a4a();},'MJnNs':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ryUqv':function(_0x4cc74c,_0x447bd1,_0x51a42b){return _0x4cc74c(_0x447bd1,_0x51a42b);}},_0x5db41f=await _0x40d01f['vyiGV'](getToken);if(!_0x5db41f)throw new Error(_0x40d01f[_0x3b0e2e(0x16e)]);const _0x253557=_0x40d01f[_0x3b0e2e(0x153)](getApiBaseUrl),_0x2a8762=await _0x40d01f[_0x3b0e2e(0x16b)](fetch,_0x253557+_0x3b0e2e(0x14f)+_0x1299b2+_0x3b0e2e(0x17e)+_0x2de31f+'/start',{'method':_0x3b0e2e(0x177),'headers':{'Authorization':_0x3b0e2e(0x16d)+_0x5db41f}});if(!_0x2a8762['ok']){const _0x472bab=await _0x2a8762[_0x3b0e2e(0x166)]();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x472bab);}return _0x2a8762[_0x3b0e2e(0x185)]();}export async function concludeSession(_0x2daf85,_0x256ee0){const _0x53231f=_0x7754,_0x3006bf={'tsMFo':function(_0x44e1b6){return _0x44e1b6();},'TItGF':function(_0x16e8e5,_0x2b07c5,_0x20008f){return _0x16e8e5(_0x2b07c5,_0x20008f);}},_0x35fe32=await _0x3006bf['tsMFo'](getToken);if(!_0x35fe32)throw new Error(_0x53231f(0x151));const _0x40effc=getApiBaseUrl(),_0x17982e=await _0x3006bf['TItGF'](fetch,_0x40effc+'/api/v1/mcp/features/'+_0x2daf85+_0x53231f(0x17e)+_0x256ee0+'/conclude',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x35fe32}});if(!_0x17982e['ok']){const _0x222671=await _0x17982e['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x222671);}return _0x17982e[_0x53231f(0x185)]();}export async function getActionItems(_0x3298dd){const _0x4f93ef=_0x7754,_0x1c38ff={'dAeSA':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','IQhMH':function(_0x2386c7){return _0x2386c7();}},_0x13a992=await getToken();if(!_0x13a992)throw new Error(_0x1c38ff['dAeSA']);const _0x5d42f3=_0x1c38ff[_0x4f93ef(0x18b)](getApiBaseUrl),_0x3f9be6=await fetch(_0x5d42f3+'/api/v1/mcp/features/'+_0x3298dd+'/action-items',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x13a992}});if(!_0x3f9be6['ok']){const _0x4265d9=await _0x3f9be6[_0x4f93ef(0x166)]();throw new Error('Failed\x20to\x20get\x20action\x20items:\x20'+_0x4265d9);}return _0x3f9be6['json']();}function _0x7754(_0x4a16f0,_0x47c383){_0x4a16f0=_0x4a16f0-0x14f;const _0x57bcfa=_0x57bc();let _0x7754cf=_0x57bcfa[_0x4a16f0];return _0x7754cf;}export async function getItemFeedback(_0x3f4438,_0x282a04){const _0x4d85e4=_0x7754,_0x33d3de={'MYZgk':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','BWjrz':function(_0x1b63e4){return _0x1b63e4();},'SgNSq':function(_0x1f5b31,_0x364d23,_0x116030){return _0x1f5b31(_0x364d23,_0x116030);},'Wcqcc':'GET'},_0x48cdb9=await getToken();if(!_0x48cdb9)throw new Error(_0x33d3de[_0x4d85e4(0x16c)]);const _0x12195a=_0x33d3de['BWjrz'](getApiBaseUrl),_0x6d84c2=await _0x33d3de[_0x4d85e4(0x17b)](fetch,_0x12195a+'/api/v1/mcp/features/'+_0x3f4438+_0x4d85e4(0x168)+_0x282a04+'/feedback',{'method':_0x33d3de['Wcqcc'],'headers':{'Authorization':_0x4d85e4(0x16d)+_0x48cdb9}});if(!_0x6d84c2['ok']){const _0x21ca94=await _0x6d84c2[_0x4d85e4(0x166)]();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0x21ca94);}return _0x6d84c2['json']();}export async function markCommentsAddressed(_0x3ee94a,_0x4bfdbd,_0x4e295e){const _0x2eeb3f=_0x7754,_0x46dd06={'UPfHo':_0x2eeb3f(0x151),'ADrop':function(_0x3e0b98,_0x4960a8,_0x22818a){return _0x3e0b98(_0x4960a8,_0x22818a);}},_0x308429=await getToken();if(!_0x308429)throw new Error(_0x46dd06['UPfHo']);const _0x2598b4=getApiBaseUrl(),_0x1f7dd3=await _0x46dd06[_0x2eeb3f(0x18c)](fetch,_0x2598b4+_0x2eeb3f(0x14f)+_0x3ee94a+'/comments/address',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x308429,'Content-Type':'application/json'},'body':JSON['stringify']({'checklistItemId':_0x4bfdbd,'commentIds':_0x4e295e})});if(!_0x1f7dd3['ok']){const _0x304a33=await _0x1f7dd3[_0x2eeb3f(0x166)]();throw new Error(_0x2eeb3f(0x173)+_0x304a33);}}export async function softDeleteFeature(_0x2cde49){const _0x2c8a90=_0x7754,_0x52d3f6={'cNgZr':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','NTGsf':function(_0x2ea9c1){return _0x2ea9c1();},'mKOPC':function(_0x5ad1d6,_0x5727be,_0x28f387){return _0x5ad1d6(_0x5727be,_0x28f387);}},_0x46a8c0=await getToken();if(!_0x46a8c0)throw new Error(_0x52d3f6[_0x2c8a90(0x15d)]);const _0x4bfccd=_0x52d3f6[_0x2c8a90(0x18f)](getApiBaseUrl),_0x3e5cdf=await _0x52d3f6['mKOPC'](fetch,_0x4bfccd+'/api/v1/mcp/features/'+_0x2cde49,{'method':_0x2c8a90(0x170),'headers':{'Authorization':'Bearer\x20'+_0x46a8c0}});if(!_0x3e5cdf['ok']){const _0x4298d2=await _0x3e5cdf[_0x2c8a90(0x166)]();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0x4298d2);}}function _0x57bc(){const _0x2249f8=['WodPm','MqfSz','17215649xsWKgf','updateChecklistItem','style','set','text','Failed\x20to\x20create\x20feature\x20review:\x20','/checklist-items/','TbbAp','Failed\x20to\x20list\x20sessions:\x20','ryUqv','MYZgk','Bearer\x20','MJnNs','DCwtO','DELETE','2020974VILKAx','billingUrl','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','application/json','16yxeQhq','365BzYUqs','POST','4871VYrqSG','Failed\x20to\x20list\x20feature\x20reviews:\x20','4370553hApbza','SgNSq','MSDAY','https://dashboard.ranger.net/billing','/sessions/','rMIWf','status','Failed\x20to\x20create\x20scenario:\x20','2676822WFxpla','toString','PATCH','json','7eauKfw','dAEgF','join','length','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','IQhMH','ADrop','offset','Failed\x20to\x20update\x20feature\x20review:\x20','NTGsf','true','sessionId','63684nhrFFV','includeDeleted','22HfXCvX','/api/v1/mcp/features/','gitBranch','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','epzyO','vyiGV','itemIds','gitRepoUrl','HkBAR','Failed\x20to\x20update\x20scenario:\x20','CzgiO','Failed\x20to\x20get\x20feature\x20review:\x20','PCJJC','/sessions','1729840CwBXOV','cNgZr','sRAtR','Failed\x20to\x20get\x20feature\x20review\x20report:\x20'];_0x57bc=function(){return _0x2249f8;};return _0x57bc();}export async function restoreFeature(_0x351a06){const _0x1bfdeb=_0x7754,_0x3598af={'rFSSR':_0x1bfdeb(0x151),'AVdVY':function(_0x64f58a){return _0x64f58a();},'nGqYy':function(_0x22f331,_0x2f4e90,_0x14be58){return _0x22f331(_0x2f4e90,_0x14be58);}},_0x476ea2=await getToken();if(!_0x476ea2)throw new Error(_0x3598af['rFSSR']);const _0x3bab41=_0x3598af['AVdVY'](getApiBaseUrl),_0x328ea5=await _0x3598af['nGqYy'](fetch,_0x3bab41+'/api/v1/mcp/features/'+_0x351a06+'/restore',{'method':'POST','headers':{'Authorization':_0x1bfdeb(0x16d)+_0x476ea2}});if(!_0x328ea5['ok']){const _0x2bccc0=await _0x328ea5[_0x1bfdeb(0x166)]();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x2bccc0);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x44d5(_0x5ca146,_0x5fe146){_0x5ca146=_0x5ca146-0x176;const _0x38bb0c=_0x38bb();let _0x44d588=_0x38bb0c[_0x5ca146];return _0x44d588;}(function(_0x24c596,_0x180399){const _0x46e315=_0x44d5,_0x2bbff0=_0x24c596();while(!![]){try{const _0x2c3b8d=-parseInt(_0x46e315(0x18a))/0x1*(-parseInt(_0x46e315(0x17d))/0x2)+-parseInt(_0x46e315(0x195))/0x3*(-parseInt(_0x46e315(0x18c))/0x4)+-parseInt(_0x46e315(0x185))/0x5*(-parseInt(_0x46e315(0x191))/0x6)+parseInt(_0x46e315(0x1b9))/0x7+parseInt(_0x46e315(0x19f))/0x8*(-parseInt(_0x46e315(0x182))/0x9)+parseInt(_0x46e315(0x18b))/0xa+-parseInt(_0x46e315(0x186))/0xb;if(_0x2c3b8d===_0x180399)break;else _0x2bbff0['push'](_0x2bbff0['shift']());}catch(_0x4e2c37){_0x2bbff0['push'](_0x2bbff0['shift']());}}}(_0x38bb,0x6cad3));export function buildTraceViewerUrl(_0x1086d0){const _0x39fdf6=encodeURIComponent(_0x1086d0);return'https://trace.playwright.dev/?trace='+_0x39fdf6;}function getStatusEmoji(_0x4c814b){const _0x1c60c7=_0x44d5,_0x37f697={'gwRYi':'verified','JqSjF':_0x1c60c7(0x1af),'Foahg':_0x1c60c7(0x1a5)};switch(_0x4c814b){case _0x37f697['gwRYi']:case'completed':return'✅';case _0x1c60c7(0x183):case _0x37f697['JqSjF']:return'🔄';case _0x37f697['Foahg']:return'🟠';case _0x1c60c7(0x1b2):return'🛑';case'closed':return'⛔';default:return'❓';}}function formatDuration(_0xc32560){const _0x4cd814=_0x44d5,_0x43395e={'gjFey':'N/A','hegWf':function(_0x454db7,_0x2e5f4a){return _0x454db7/_0x2e5f4a;},'XRoVw':function(_0x5ac252,_0x1bcdfe){return _0x5ac252<_0x1bcdfe;}};if(_0xc32560===null||_0xc32560===undefined)return _0x43395e['gjFey'];if(_0xc32560<0x3e8)return _0xc32560+'ms';const _0x560dc8=Math['floor'](_0x43395e[_0x4cd814(0x192)](_0xc32560,0x3e8));if(_0x43395e['XRoVw'](_0x560dc8,0x3c))return _0x560dc8+'s';const _0x257c2f=Math['floor'](_0x560dc8/0x3c),_0x4d8ace=_0x560dc8%0x3c;return _0x257c2f+'m\x20'+_0x4d8ace+'s';}function formatDate(_0x49ab5e){const _0x19640d=_0x44d5,_0x23d274={'koWQh':'en-US','vXOcv':'short','Gwafp':_0x19640d(0x1ad)};if(!_0x49ab5e)return _0x19640d(0x181);return new Date(_0x49ab5e)[_0x19640d(0x1b6)](_0x23d274['koWQh'],{'year':_0x19640d(0x1ad),'month':_0x23d274[_0x19640d(0x1a3)],'day':_0x23d274[_0x19640d(0x1b3)]});}function _0x38bb(){const _0x1d17b8=['verified','blocked','Gwafp','RhPkg','...','toLocaleDateString','gitBranch','Session\x20','2414496teNBcz','closed','-\x20**','createdAt','VTxnS','qLCDG','length','AUWVo','pGMaq','gitRepoUrl','|---------|----------|--------|----------|------|','browserSessionId','-\x20**Trace:**\x20[View\x20in\x20Playwright](','**Completed:**\x20','None',':\x20In\x20Progress','muuDz','6OuGLLA','-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work','\x20verified)','FOQyK','N/A','5773419lDyErs','pending','Unknown','50685QbKUSX','16729779SgCFpB','canceledReason','Completed','-\x20**Blocked:**\x20','277456rZuTlr','6746090LYLaNI','2495332yDnQnY','-\x20**Verified:**\x20','status','LtfTd','LewnJ','78bnmNXO','hegWf','currentSession','**Repository:**\x20','3hPNAqn','wDdNL','##\x20Scenario\x20Progress\x20(','blockedAt','push','ready','description','-\x20**Reason:**\x20','##\x20Description','**:\x20','8DWQbQo','\x20|\x20','filter','traceUrl','vXOcv','completedAt','incomplete','blockedReason','YaMTT','fhyvd','No\x20Session','iteration','verifiedAt','BwGrA','numeric','closedAt','in_progress','Oyupa'];_0x38bb=function(){return _0x1d17b8;};return _0x38bb();}export function generateFeatureReport(_0x12534c){const _0x4c6e24=_0x44d5,_0x2e6053={'LtfTd':_0x4c6e24(0x1af),'muuDz':_0x4c6e24(0x184),'YaMTT':_0x4c6e24(0x1a9),'RhPkg':function(_0x3ebe2c,_0x13e7f8){return _0x3ebe2c(_0x13e7f8);},'BwGrA':function(_0x24ddf8,_0x168c77){return _0x24ddf8===_0x168c77;},'AUWVo':function(_0x436921,_0x85f8c2){return _0x436921===_0x85f8c2;},'Oyupa':_0x4c6e24(0x1b2),'MjFgq':_0x4c6e24(0x1ba),'mOVyC':function(_0x5efaa6,_0x362bea){return _0x5efaa6===_0x362bea;},'FOQyK':function(_0x262fa0,_0x4be728){return _0x262fa0(_0x4be728);},'qLCDG':'No\x20reason\x20provided','LewnJ':'##\x20Blocking\x20Issues','wDdNL':'##\x20All\x20Verification\x20Sessions','VTxnS':'|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','NCaUb':_0x4c6e24(0x176),'fhyvd':function(_0x14f644,_0x580f55){return _0x14f644>_0x580f55;},'QSTfV':'N/A','pVIoi':'completed','svAbH':function(_0x285f74,_0x39ebb2){return _0x285f74===_0x39ebb2;},'pGMaq':function(_0xde8ca9,_0x51304b){return _0xde8ca9(_0x51304b);}},{feature:_0x2cb87e,stats:_0x21241d,checklistItems:_0x99b45a,sessions:_0x4fe299}=_0x12534c,_0x454e21=[];_0x454e21['push']('#\x20Feature\x20Review\x20Report:\x20'+_0x2cb87e['name']),_0x454e21['push']('');let _0x53337b,_0x24c432;if(_0x2cb87e[_0x4c6e24(0x1a4)])_0x53337b=_0x4c6e24(0x188),_0x24c432='✅';else{if(_0x2cb87e[_0x4c6e24(0x193)]){const _0x416db9=_0x2cb87e['currentSession']['status'];switch(_0x416db9){case _0x4c6e24(0x19a):_0x53337b='Session\x20'+_0x2cb87e['currentSession']['iteration']+':\x20Ready',_0x24c432='▶️';break;case _0x2e6053[_0x4c6e24(0x18f)]:_0x53337b='Session\x20'+_0x2cb87e[_0x4c6e24(0x193)][_0x4c6e24(0x1aa)]+_0x4c6e24(0x17b),_0x24c432='🔄';break;case'completed':_0x53337b=_0x4c6e24(0x1b8)+_0x2cb87e[_0x4c6e24(0x193)]['iteration']+':\x20Awaiting\x20Review',_0x24c432='📊';break;default:_0x53337b=_0x2e6053[_0x4c6e24(0x17c)],_0x24c432='❓';}}else _0x53337b=_0x2e6053[_0x4c6e24(0x1a7)],_0x24c432='⬜';}_0x454e21['push']('**Status:**\x20'+_0x24c432+'\x20'+_0x53337b),_0x454e21['push']('**Created:**\x20'+formatDate(_0x2cb87e[_0x4c6e24(0x1bc)]));_0x2cb87e[_0x4c6e24(0x1a4)]&&_0x454e21[_0x4c6e24(0x199)](_0x4c6e24(0x179)+_0x2e6053[_0x4c6e24(0x1b4)](formatDate,_0x2cb87e['completedAt']));_0x2cb87e[_0x4c6e24(0x1c2)]&&_0x454e21['push'](_0x4c6e24(0x194)+_0x2cb87e[_0x4c6e24(0x1c2)]);_0x2cb87e[_0x4c6e24(0x1b7)]&&_0x454e21['push']('**Branch:**\x20'+_0x2cb87e['gitBranch']);_0x454e21[_0x4c6e24(0x199)]('');_0x2cb87e['description']&&(_0x454e21[_0x4c6e24(0x199)](_0x4c6e24(0x19d)),_0x454e21['push'](''),_0x454e21['push'](_0x2cb87e[_0x4c6e24(0x19b)]),_0x454e21[_0x4c6e24(0x199)](''));const _0x3b4ec6=_0x99b45a[_0x4c6e24(0x1a1)](_0x80d789=>_0x80d789['status']!=='closed'),_0x1f7f45=_0x99b45a[_0x4c6e24(0x1a1)](_0x50ee1e=>_0x50ee1e['status']==='verified')['length'];_0x454e21[_0x4c6e24(0x199)](_0x4c6e24(0x197)+_0x1f7f45+'/'+_0x3b4ec6['length']+_0x4c6e24(0x17f)),_0x454e21['push']('');for(const _0x23e605 of _0x99b45a){const _0x26d963=getStatusEmoji(_0x23e605[_0x4c6e24(0x18e)]),_0xe3037f=_0x2e6053[_0x4c6e24(0x1ac)](_0x23e605[_0x4c6e24(0x18e)],_0x4c6e24(0x1ba)),_0x15b1ae=_0xe3037f?'~~':'',_0x3b1f38=_0xe3037f?'~~':'';_0x454e21[_0x4c6e24(0x199)]('###\x20'+_0x26d963+'\x20'+_0x15b1ae+_0x23e605['description']+_0x3b1f38),_0x454e21['push']('');_0x2e6053[_0x4c6e24(0x1c0)](_0x23e605['status'],_0x4c6e24(0x1b1))&&_0x23e605[_0x4c6e24(0x1ab)]&&_0x454e21['push'](_0x4c6e24(0x18d)+formatDate(_0x23e605[_0x4c6e24(0x1ab)]));_0x23e605['status']===_0x2e6053[_0x4c6e24(0x1b0)]&&_0x23e605['blockedAt']&&(_0x454e21[_0x4c6e24(0x199)](_0x4c6e24(0x189)+formatDate(_0x23e605[_0x4c6e24(0x198)])),_0x23e605[_0x4c6e24(0x1a6)]&&_0x454e21['push']('-\x20**Reason:**\x20'+_0x23e605['blockedReason']));_0x2e6053[_0x4c6e24(0x1ac)](_0x23e605['status'],_0x2e6053['MjFgq'])&&_0x23e605[_0x4c6e24(0x1ae)]&&(_0x454e21['push']('-\x20**Closed:**\x20'+formatDate(_0x23e605['closedAt'])),_0x23e605[_0x4c6e24(0x187)]&&_0x454e21['push'](_0x4c6e24(0x19c)+_0x23e605['canceledReason']));_0x2e6053['mOVyC'](_0x23e605[_0x4c6e24(0x18e)],_0x4c6e24(0x1a5))&&_0x454e21['push'](_0x4c6e24(0x17e));if(_0x23e605[_0x4c6e24(0x177)]){_0x454e21[_0x4c6e24(0x199)]('-\x20**Session:**\x20'+_0x23e605[_0x4c6e24(0x177)]);const _0x1ca31f=_0x4fe299['find'](_0x385c65=>_0x385c65['id']===_0x23e605[_0x4c6e24(0x177)]);_0x1ca31f&&(_0x1ca31f['agentResponse']&&_0x454e21[_0x4c6e24(0x199)]('-\x20**Summary:**\x20'+_0x1ca31f['agentResponse']),_0x1ca31f[_0x4c6e24(0x1a2)]&&_0x454e21[_0x4c6e24(0x199)](_0x4c6e24(0x178)+_0x2e6053[_0x4c6e24(0x180)](buildTraceViewerUrl,_0x1ca31f['traceUrl'])+')'));}_0x454e21[_0x4c6e24(0x199)]('');}const _0x25b9e1=_0x99b45a['filter'](_0xd2270f=>_0xd2270f['status']===_0x4c6e24(0x1b2));if(_0x25b9e1['length']>0x0){_0x454e21['push']('##\x20Blocking\x20Issues'),_0x454e21['push']('');for(const _0x79004f of _0x25b9e1){_0x454e21[_0x4c6e24(0x199)](_0x4c6e24(0x1bb)+_0x79004f[_0x4c6e24(0x19b)]+_0x4c6e24(0x19e)+(_0x79004f['blockedReason']||_0x2e6053[_0x4c6e24(0x1be)]));}_0x454e21['push']('');}else _0x454e21[_0x4c6e24(0x199)](_0x2e6053[_0x4c6e24(0x190)]),_0x454e21[_0x4c6e24(0x199)](''),_0x454e21[_0x4c6e24(0x199)](_0x4c6e24(0x17a)),_0x454e21[_0x4c6e24(0x199)]('');if(_0x4fe299[_0x4c6e24(0x1bf)]>0x0){_0x454e21[_0x4c6e24(0x199)](_0x2e6053[_0x4c6e24(0x196)]),_0x454e21[_0x4c6e24(0x199)](''),_0x454e21[_0x4c6e24(0x199)](_0x2e6053[_0x4c6e24(0x1bd)]),_0x454e21[_0x4c6e24(0x199)](_0x2e6053['NCaUb']);for(const _0x106122 of _0x4fe299){const _0x4d5ca2=_0x106122['checklistItemId']?_0x99b45a['find'](_0xc0f12d=>_0xc0f12d['id']===_0x106122['checklistItemId']):null,_0x49829e=_0x4d5ca2?_0x4d5ca2[_0x4c6e24(0x19b)]['substring'](0x0,0x1e)+(_0x2e6053[_0x4c6e24(0x1a8)](_0x4d5ca2[_0x4c6e24(0x19b)][_0x4c6e24(0x1bf)],0x1e)?_0x4c6e24(0x1b5):''):_0x2e6053['QSTfV'],_0x160d02=_0x2e6053[_0x4c6e24(0x1ac)](_0x106122[_0x4c6e24(0x18e)],_0x2e6053['pVIoi'])?'✅':_0x2e6053['svAbH'](_0x106122[_0x4c6e24(0x18e)],'failed')?'❌':'🔄';_0x454e21[_0x4c6e24(0x199)]('|\x20'+_0x106122['id']+'\x20|\x20'+_0x49829e+_0x4c6e24(0x1a0)+_0x160d02+'\x20'+_0x106122[_0x4c6e24(0x18e)]+'\x20|\x20'+_0x2e6053[_0x4c6e24(0x1c1)](formatDuration,_0x106122['durationMs'])+_0x4c6e24(0x1a0)+formatDate(_0x106122[_0x4c6e24(0x1bc)])+'\x20|');}_0x454e21['push']('');}return _0x454e21['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5ad7fb=_0x2022;(function(_0x1b77aa,_0x1012b5){const _0x284aeb=_0x2022,_0x58b3bd=_0x1b77aa();while(!![]){try{const _0x4d8e42=parseInt(_0x284aeb(0x20a))/0x1+-parseInt(_0x284aeb(0x212))/0x2*(parseInt(_0x284aeb(0x1ff))/0x3)+parseInt(_0x284aeb(0x226))/0x4*(-parseInt(_0x284aeb(0x218))/0x5)+parseInt(_0x284aeb(0x1f5))/0x6*(-parseInt(_0x284aeb(0x22c))/0x7)+parseInt(_0x284aeb(0x21b))/0x8+-parseInt(_0x284aeb(0x20f))/0x9+parseInt(_0x284aeb(0x20c))/0xa;if(_0x4d8e42===_0x1012b5)break;else _0x58b3bd['push'](_0x58b3bd['shift']());}catch(_0x1f5bd0){_0x58b3bd['push'](_0x58b3bd['shift']());}}}(_0x4eca,0x32a66));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(_0x243b98,_0x4f31c1){const _0x43790f=_0x2022,_0x5f0d99={'EkppS':function(_0x2a2b77,_0x248d42){return _0x2a2b77>=_0x248d42;},'BvTAk':function(_0x1e84d4,_0x5cad75){return _0x1e84d4>_0x5cad75;},'JUnKu':function(_0x34f5c0,_0x3339b0){return _0x34f5c0&_0x3339b0;},'UbZoS':function(_0x464901,_0x3f0da8){return _0x464901+_0x3f0da8;}};if(_0x5f0d99['EkppS'](_0x4f31c1,_0x243b98['length']))return[0x0,0x0];const _0x108c88=_0x243b98[_0x4f31c1];let _0x2cdb1d=0x1,_0x4842b2=0x80;while(_0x2cdb1d<=0x8&&!(_0x108c88&_0x4842b2)){_0x2cdb1d++,_0x4842b2>>=0x1;}if(_0x5f0d99['BvTAk'](_0x4f31c1+_0x2cdb1d,_0x243b98[_0x43790f(0x1f2)]))return[0x0,0x0];let _0x14fa9e=_0x5f0d99['JUnKu'](_0x108c88,_0x4842b2-0x1);for(let _0x3e4341=0x1;_0x3e4341<_0x2cdb1d;_0x3e4341++){_0x14fa9e=_0x5f0d99[_0x43790f(0x1fc)](_0x14fa9e*0x100,_0x243b98[_0x4f31c1+_0x3e4341]);}return[_0x14fa9e,_0x2cdb1d];}function readId(_0x468868,_0x6bba38){const _0x51b1b5=_0x2022,_0x11bc48={'THsIt':function(_0x12eff1,_0x27f779){return _0x12eff1>=_0x27f779;},'KTOGv':function(_0x30137b,_0x572ba3){return _0x30137b<_0x572ba3;},'llZFZ':function(_0x51f78c,_0x36bf2f){return _0x51f78c+_0x36bf2f;},'Uqbio':function(_0x7c511c,_0x310326){return _0x7c511c+_0x310326;}};if(_0x11bc48[_0x51b1b5(0x217)](_0x6bba38,_0x468868['length']))return[0x0,0x0];const _0x397328=_0x468868[_0x6bba38];let _0x831ac;if(_0x397328>=0x80)_0x831ac=0x1;else{if(_0x397328>=0x40)_0x831ac=0x2;else{if(_0x11bc48['THsIt'](_0x397328,0x20))_0x831ac=0x3;else{if(_0x397328>=0x10)_0x831ac=0x4;else return[_0x397328,0x1];}}}if(_0x6bba38+_0x831ac>_0x468868[_0x51b1b5(0x1f2)])return[0x0,0x0];let _0x160751=0x0;for(let _0x92cdf8=0x0;_0x11bc48[_0x51b1b5(0x21d)](_0x92cdf8,_0x831ac);_0x92cdf8++){_0x160751=_0x11bc48['llZFZ'](_0x160751*0x100,_0x468868[_0x11bc48[_0x51b1b5(0x216)](_0x6bba38,_0x92cdf8)]);}return[_0x160751,_0x831ac];}function readUint(_0x7bd509,_0x12b984,_0x1d4139){const _0xd5bad7=_0x2022,_0x1951c1={'ZRYpm':function(_0x3cbf02,_0x57bb73){return _0x3cbf02<_0x57bb73;},'FfJEG':function(_0x428709,_0x24b7f6){return _0x428709+_0x24b7f6;}};let _0x20cfde=0x0;for(let _0x32b609=0x0;_0x1951c1[_0xd5bad7(0x227)](_0x32b609,_0x1d4139);_0x32b609++){_0x20cfde=_0x1951c1[_0xd5bad7(0x1f6)](_0x20cfde*0x100,_0x7bd509[_0x12b984+_0x32b609]);}return _0x20cfde;}function isUnknownSize(_0xad3c44,_0x2d97ce){const _0x1ccf37={'VYpTU':function(_0x2fb934,_0x4970a1){return _0x2fb934*_0x4970a1;}};return _0xad3c44===Math['pow'](0x2,_0x1ccf37['VYpTU'](0x7,_0x2d97ce))-0x1;}function writeId(_0x21a62c){const _0x42c667=_0x2022,_0x5a7a5b={'oOGnd':function(_0x3a60e3,_0x31a72a){return _0x3a60e3<=_0x31a72a;},'JzuUR':function(_0x5984df,_0x3f501d){return _0x5984df&_0x3f501d;},'rhPqO':function(_0x2ac64e,_0x378103){return _0x2ac64e>>_0x378103;},'SBcsq':function(_0x3936ec,_0x1f4283){return _0x3936ec&_0x1f4283;},'xhEMH':function(_0x1fa53f,_0xbe1a89){return _0x1fa53f>>_0xbe1a89;},'NgqlM':function(_0x29299e,_0x372abe){return _0x29299e&_0x372abe;},'Yhtww':function(_0x32e750,_0x5ed63a){return _0x32e750>>_0x5ed63a;}};if(_0x5a7a5b['oOGnd'](_0x21a62c,0xff))return Buffer[_0x42c667(0x203)]([_0x21a62c]);if(_0x21a62c<=0xffff)return Buffer['from']([_0x5a7a5b[_0x42c667(0x22a)](_0x5a7a5b[_0x42c667(0x220)](_0x21a62c,0x8),0xff),_0x5a7a5b['JzuUR'](_0x21a62c,0xff)]);if(_0x21a62c<=0xffffff)return Buffer[_0x42c667(0x203)]([_0x5a7a5b['SBcsq'](_0x21a62c>>0x10,0xff),_0x21a62c>>0x8&0xff,_0x21a62c&0xff]);return Buffer[_0x42c667(0x203)]([_0x5a7a5b[_0x42c667(0x22a)](_0x5a7a5b['xhEMH'](_0x21a62c,0x18),0xff),_0x5a7a5b['NgqlM'](_0x21a62c>>0x10,0xff),_0x5a7a5b['NgqlM'](_0x5a7a5b[_0x42c667(0x222)](_0x21a62c,0x8),0xff),_0x21a62c&0xff]);}function _0x2022(_0x4ca9e9,_0x3ec690){_0x4ca9e9=_0x4ca9e9-0x1f2;const _0x4eca41=_0x4eca();let _0x202278=_0x4eca41[_0x4ca9e9];return _0x202278;}function writeVint(_0x2190a0,_0x2cb9ce){const _0x334a74=_0x2022,_0x179e5f={'RxnGs':function(_0x3f75b1,_0x646c4d){return _0x3f75b1||_0x646c4d;},'SJZrP':function(_0x2a6461,_0x500304){return _0x2a6461<_0x500304;},'oNTJe':function(_0x11dbb5,_0x4c8589){return _0x11dbb5-_0x4c8589;},'STOUi':function(_0x34f5af,_0x489af5){return _0x34f5af-_0x489af5;},'xgxny':function(_0x76f067,_0x132a89){return _0x76f067&_0x132a89;},'FQjhl':function(_0xa7165b,_0x37397b){return _0xa7165b<<_0x37397b;},'gEvzT':function(_0x1ecdad,_0x47e5b8){return _0x1ecdad-_0x47e5b8;}};let _0x289249=_0x179e5f['RxnGs'](_0x2cb9ce,0x1);while(_0x179e5f['SJZrP'](_0x179e5f['oNTJe'](Math[_0x334a74(0x1f4)](0x2,0x7*_0x289249),0x2),_0x2190a0))_0x289249++;const _0xd36d53=Buffer[_0x334a74(0x211)](_0x289249);for(let _0x990d44=_0x179e5f['STOUi'](_0x289249,0x1);_0x990d44>=0x0;_0x990d44--){_0xd36d53[_0x990d44]=_0x179e5f['xgxny'](_0x2190a0,0xff),_0x2190a0=Math['floor'](_0x2190a0/0x100);}return _0xd36d53[0x0]|=_0x179e5f[_0x334a74(0x201)](0x1,_0x179e5f[_0x334a74(0x230)](0x8,_0x289249)),_0xd36d53;}function writeFloat64(_0x39daad){const _0x287118=Buffer['alloc'](0x8);return _0x287118['writeDoubleBE'](_0x39daad,0x0),_0x287118;}function writeVoid(_0x528f35){const _0x344f53=_0x2022,_0x5bea4c={'ZjeZW':function(_0x59670c,_0x4a55ef){return _0x59670c-_0x4a55ef;},'ZhyqD':function(_0x5c0c10,_0x1345be,_0x16b258){return _0x5c0c10(_0x1345be,_0x16b258);}};for(let _0x10cbc7=0x1;_0x10cbc7<=0x8;_0x10cbc7++){const _0x1e4c8c=_0x5bea4c[_0x344f53(0x1fb)](_0x528f35,0x1)-_0x10cbc7;if(_0x1e4c8c>=0x0&&_0x1e4c8c<=Math[_0x344f53(0x1f4)](0x2,0x7*_0x10cbc7)-0x2)return Buffer[_0x344f53(0x224)]([Buffer[_0x344f53(0x203)]([ID_VOID]),_0x5bea4c[_0x344f53(0x221)](writeVint,_0x1e4c8c,_0x10cbc7),Buffer['alloc'](_0x1e4c8c)]);}return Buffer['alloc'](0x0);}function findElement(_0x33dd15,_0x5730a4,_0x44f844,_0x1ca95d){const _0x1aaf13=_0x2022,_0x327db5={'cJgYJ':function(_0x1566d1,_0x473eac){return _0x1566d1<_0x473eac;},'pITXR':function(_0x179f8b,_0x447951){return _0x179f8b===_0x447951;},'CBoMB':function(_0x27f242,_0x4f1da5){return _0x27f242+_0x4f1da5;},'Esjzn':function(_0x10ce8a,_0x1d0283,_0x39ccab){return _0x10ce8a(_0x1d0283,_0x39ccab);},'woJHO':function(_0x48710e,_0x35c876){return _0x48710e+_0x35c876;}};let _0x4cb30d=_0x5730a4;while(_0x327db5[_0x1aaf13(0x1f3)](_0x4cb30d,_0x44f844)){const [_0x16f817,_0x1c0fdd]=readId(_0x33dd15,_0x4cb30d),[_0x25cf72,_0x4f3a2f]=readVint(_0x33dd15,_0x4cb30d+_0x1c0fdd);if(_0x327db5['pITXR'](_0x16f817,_0x1ca95d))return{'offset':_0x4cb30d,'idLen':_0x1c0fdd,'sizeLen':_0x4f3a2f,'dataSize':_0x25cf72,'dataOffset':_0x327db5[_0x1aaf13(0x1f8)](_0x4cb30d+_0x1c0fdd,_0x4f3a2f)};if(_0x327db5[_0x1aaf13(0x206)](isUnknownSize,_0x25cf72,_0x4f3a2f))break;_0x4cb30d+=_0x327db5['CBoMB'](_0x327db5[_0x1aaf13(0x1fe)](_0x1c0fdd,_0x4f3a2f),_0x25cf72);}return null;}function computeDurationMs(_0x53f243,_0x36e66f){const _0x20f389=_0x2022,_0x1811ed={'sInUB':function(_0x2df3df,_0x5a85e5){return _0x2df3df===_0x5a85e5;},'dvPLB':function(_0x5445fa,_0x533416){return _0x5445fa<_0x533416;},'GvzXX':function(_0x517d94,_0x11c156){return _0x517d94!==_0x11c156;},'hDFSZ':function(_0x289144,_0x565515,_0x1c61b6){return _0x289144(_0x565515,_0x1c61b6);},'MoXrF':function(_0x3aba85,_0x215a37){return _0x3aba85<_0x215a37;},'NJBSg':function(_0x27e08e,_0x148bed){return _0x27e08e+_0x148bed;},'elbpR':function(_0x102b65,_0x299e1f,_0x525050){return _0x102b65(_0x299e1f,_0x525050);},'Ymjyt':function(_0x3e3448,_0x302b8c){return _0x3e3448+_0x302b8c;},'isTGG':function(_0x3894ed,_0x432de8,_0x42d981,_0x1888d3){return _0x3894ed(_0x432de8,_0x42d981,_0x1888d3);},'VwqMj':function(_0x5e7466,_0x2e14c8,_0x15463f){return _0x5e7466(_0x2e14c8,_0x15463f);}};let _0x1c3dac=0x0;const _0x525235=Buffer[_0x20f389(0x203)]([0x1f,0x43,0xb6,0x75]);let _0x199c2c=_0x53f243[_0x20f389(0x1fa)](_0x525235);if(_0x1811ed[_0x20f389(0x209)](_0x199c2c,-0x1))return 0x0;while(_0x1811ed[_0x20f389(0x1f9)](_0x199c2c,_0x53f243['length'])){const [_0x250174,_0x7916f6]=readId(_0x53f243,_0x199c2c);if(_0x1811ed[_0x20f389(0x1fd)](_0x250174,ID_CLUSTER))break;const [_0x5d3494,_0x4a1f9a]=readVint(_0x53f243,_0x199c2c+_0x7916f6),_0xfa2d15=_0x199c2c+_0x7916f6+_0x4a1f9a,_0x4cdf09=_0x1811ed[_0x20f389(0x21f)](isUnknownSize,_0x5d3494,_0x4a1f9a);let _0x81c664;if(_0x4cdf09){let _0x378f50=_0xfa2d15;while(_0x1811ed[_0x20f389(0x21c)](_0x378f50,_0x53f243[_0x20f389(0x1f2)]-0x4)){const [_0x2b868c,_0x47c306]=readId(_0x53f243,_0x378f50);if(_0x2b868c===ID_CLUSTER){_0x81c664=_0x378f50;break;}const [_0x159ec6,_0x517ade]=readVint(_0x53f243,_0x1811ed[_0x20f389(0x207)](_0x378f50,_0x47c306));if(_0x1811ed[_0x20f389(0x20d)](isUnknownSize,_0x159ec6,_0x517ade)){_0x81c664=_0x53f243[_0x20f389(0x1f2)];break;}_0x378f50+=_0x1811ed['NJBSg'](_0x47c306+_0x517ade,_0x159ec6);}_0x81c664??=_0x53f243['length'];}else _0x81c664=_0x1811ed['Ymjyt'](_0xfa2d15,_0x5d3494);let _0x3dbe8b=0x0,_0x562b24=_0xfa2d15;while(_0x1811ed[_0x20f389(0x1f9)](_0x562b24,_0x81c664)){const [_0x213748,_0x2437de]=_0x1811ed[_0x20f389(0x21f)](readId,_0x53f243,_0x562b24),[_0x37fcfb,_0x9e27bd]=readVint(_0x53f243,_0x562b24+_0x2437de);if(_0x213748===ID_TIMESTAMP)_0x3dbe8b=_0x1811ed[_0x20f389(0x223)](readUint,_0x53f243,_0x562b24+_0x2437de+_0x9e27bd,_0x37fcfb);else{if(_0x213748===ID_SIMPLE_BLOCK&&_0x37fcfb>=0x4){const _0x5859d2=_0x1811ed['NJBSg'](_0x1811ed[_0x20f389(0x207)](_0x562b24,_0x2437de),_0x9e27bd),[,_0x391e70]=readVint(_0x53f243,_0x5859d2),_0x15ef57=_0x53f243['readInt16BE'](_0x5859d2+_0x391e70),_0x48e277=(_0x3dbe8b+_0x15ef57)*_0x36e66f/0xf4240;_0x48e277>_0x1c3dac&&(_0x1c3dac=_0x48e277);}else{if(_0x213748===ID_CLUSTER)break;}}if(_0x1811ed['VwqMj'](isUnknownSize,_0x37fcfb,_0x9e27bd))break;_0x562b24+=_0x2437de+_0x9e27bd+_0x37fcfb;}_0x199c2c=_0x81c664;}return _0x1c3dac;}export function fixWebmDuration(_0x3e5a0e,_0x520786){const _0xfeedb3=_0x2022,_0x34c4e3={'FFAtz':function(_0x5989de,_0x43e9ea){return _0x5989de+_0x43e9ea;},'gFcoV':_0xfeedb3(0x21a),'drFdk':function(_0x1afb6b,_0xe58627){return _0x1afb6b+_0xe58627;},'XNHCQ':function(_0xc481eb,_0x2a7f74){return _0xc481eb+_0x2a7f74;},'Gobps':function(_0x312e2e,_0x4bbacc){return _0x312e2e+_0x4bbacc;},'CugNI':function(_0x39b66d,_0x449ce7){return _0x39b66d+_0x449ce7;},'Wldmr':function(_0x1351dd,_0x5df584){return _0x1351dd===_0x5df584;},'rwGlV':'Could\x20not\x20find\x20Info\x20element','HnHzf':function(_0x3f99fe,_0x35fc43,_0x49b1db,_0x2d2c72,_0x502a03){return _0x3f99fe(_0x35fc43,_0x49b1db,_0x2d2c72,_0x502a03);},'ajzVU':function(_0x350c67,_0x42a0c0){return _0x350c67+_0x42a0c0;},'TGdQp':function(_0x202348,_0xc2e4c0,_0x98be2b){return _0x202348(_0xc2e4c0,_0x98be2b);},'YWdrt':_0xfeedb3(0x214),'EUFCy':function(_0xc3cf4b,_0x2d2531){return _0xc3cf4b(_0x2d2531);},'ZvnMH':function(_0x50444d,_0x3da117){return _0x50444d<_0x3da117;},'ocxfz':function(_0x20b2e0,_0x5d9bb4){return _0x20b2e0-_0x5d9bb4;},'TRttF':function(_0x54ead6,_0x4d2389,_0x55df3f,_0x3c934b,_0x322e07,_0x193bbe,_0x800528){return _0x54ead6(_0x4d2389,_0x55df3f,_0x3c934b,_0x322e07,_0x193bbe,_0x800528);}},_0x5b82e1=readFileSync(_0x3e5a0e);let _0x114013=0x0;const [_0x162218,_0x3a1153]=readId(_0x5b82e1,_0x114013),[_0x211bf8,_0x14ff45]=readVint(_0x5b82e1,_0x34c4e3[_0xfeedb3(0x229)](_0x114013,_0x3a1153));_0x114013+=_0x34c4e3['FFAtz'](_0x3a1153,_0x14ff45)+_0x211bf8;const [_0x552488,_0x48234e]=readId(_0x5b82e1,_0x114013);if(_0x552488!==ID_SEGMENT)return console['error'](_0x34c4e3[_0xfeedb3(0x228)]),![];const [,_0x2afd18]=readVint(_0x5b82e1,_0x114013+_0x48234e),_0x458514=_0x34c4e3['drFdk'](_0x114013+_0x48234e,_0x2afd18);let _0x2ad0f0=_0x458514;const _0x397911=Math[_0xfeedb3(0x20e)](_0x5b82e1[_0xfeedb3(0x1f2)],_0x34c4e3[_0xfeedb3(0x20b)](_0x458514,0x2710));let _0x12d253=null,_0x373c23=null;while(_0x2ad0f0<_0x397911){const [_0x4a9d8b,_0x38f6f7]=readId(_0x5b82e1,_0x2ad0f0),[_0x6c606,_0x38ed31]=readVint(_0x5b82e1,_0x2ad0f0+_0x38f6f7);_0x4a9d8b===ID_VOID&&!_0x12d253&&(_0x12d253={'offset':_0x2ad0f0,'idLen':_0x38f6f7,'sizeLen':_0x38ed31,'dataSize':_0x6c606,'dataOffset':_0x34c4e3['Gobps'](_0x2ad0f0,_0x38f6f7)+_0x38ed31});if(_0x4a9d8b===ID_INFO){_0x373c23={'offset':_0x2ad0f0,'idLen':_0x38f6f7,'sizeLen':_0x38ed31,'dataSize':_0x6c606,'dataOffset':_0x34c4e3['CugNI'](_0x2ad0f0,_0x38f6f7)+_0x38ed31};break;}if(_0x34c4e3['Wldmr'](_0x4a9d8b,ID_CLUSTER))break;if(isUnknownSize(_0x6c606,_0x38ed31))break;_0x2ad0f0+=_0x34c4e3[_0xfeedb3(0x20b)](_0x34c4e3['XNHCQ'](_0x38f6f7,_0x38ed31),_0x6c606);}if(!_0x373c23)return console[_0xfeedb3(0x22f)](_0x34c4e3[_0xfeedb3(0x22e)]),![];const _0x46bb1e=findElement(_0x5b82e1,_0x373c23['dataOffset'],_0x34c4e3[_0xfeedb3(0x20b)](_0x373c23['dataOffset'],_0x373c23[_0xfeedb3(0x202)]),ID_DURATION);if(_0x46bb1e)return![];const _0x36779a=_0x34c4e3['HnHzf'](findElement,_0x5b82e1,_0x373c23['dataOffset'],_0x34c4e3[_0xfeedb3(0x205)](_0x373c23['dataOffset'],_0x373c23[_0xfeedb3(0x202)]),ID_TIMESTAMP_SCALE);let _0x5b5515=0xf4240;_0x36779a&&(_0x5b5515=readUint(_0x5b82e1,_0x36779a[_0xfeedb3(0x21e)],_0x36779a['dataSize']));const _0x400a42=_0x34c4e3[_0xfeedb3(0x219)](computeDurationMs,_0x5b82e1,_0x5b5515);if(_0x400a42<=0x0)return console[_0xfeedb3(0x22f)](_0x34c4e3['YWdrt']),![];const _0x347b7c=_0x400a42*0xf4240/_0x5b5515,_0x11d7a7=Buffer['concat']([writeId(ID_DURATION),_0x34c4e3['EUFCy'](writeVint,0x8),_0x34c4e3[_0xfeedb3(0x225)](writeFloat64,_0x347b7c)]),_0x4e4610=_0x11d7a7['length'];if(!_0x12d253||_0x34c4e3['ZvnMH'](_0x12d253['offset'],_0x373c23[_0xfeedb3(0x210)])){if(_0x12d253){const _0x21ac83=_0x34c4e3['Gobps'](_0x12d253['idLen'],_0x12d253['sizeLen'])+_0x12d253['dataSize'],_0x50b425=_0x34c4e3['ocxfz'](_0x21ac83,_0x4e4610);if(_0x34c4e3['ZvnMH'](_0x50b425,0x2))return _0x34c4e3['TRttF'](rewriteFile,_0x5b82e1,_0x373c23,_0x11d7a7,_0x5b5515,_0x400a42,_0x520786);const _0x870c45=_0x373c23['dataSize']+_0x4e4610,_0xa03c14=Buffer['concat']([_0x34c4e3['EUFCy'](writeId,ID_INFO),writeVint(_0x870c45,_0x373c23['sizeLen'])]),_0x3a6169=_0x5b82e1['slice'](_0x373c23[_0xfeedb3(0x21e)],_0x373c23['dataOffset']+_0x373c23[_0xfeedb3(0x202)]),_0x4ac54d=_0x34c4e3[_0xfeedb3(0x225)](writeVoid,_0x50b425),_0x45e292=_0x5b82e1[_0xfeedb3(0x1f7)](0x0,_0x12d253[_0xfeedb3(0x210)]),_0xa2167a=_0x5b82e1['slice'](_0x373c23['dataOffset']+_0x373c23[_0xfeedb3(0x202)]);return _0x34c4e3[_0xfeedb3(0x219)](writeFileSync,_0x520786,Buffer['concat']([_0x45e292,_0x4ac54d,_0xa03c14,_0x3a6169,_0x11d7a7,_0xa2167a])),!![];}}return _0x34c4e3['TRttF'](rewriteFile,_0x5b82e1,_0x373c23,_0x11d7a7,_0x5b5515,_0x400a42,_0x520786);}function rewriteFile(_0x31efc3,_0x30fd7a,_0xf9de75,_0x46be4b,_0x14c3ce,_0x593b11){const _0x2cdbb=_0x2022,_0x337d32={'bAQCv':function(_0x553c33,_0xdd7e1f){return _0x553c33+_0xdd7e1f;}},_0x23b1f7=_0x337d32['bAQCv'](_0x30fd7a[_0x2cdbb(0x202)],_0xf9de75['length']),_0x77f026=Buffer['concat']([writeId(ID_INFO),writeVint(_0x23b1f7)]),_0x40c8af=_0x337d32[_0x2cdbb(0x215)](_0x30fd7a['idLen'],_0x30fd7a['sizeLen']),_0x36d21e=_0x31efc3['slice'](0x0,_0x30fd7a[_0x2cdbb(0x210)]),_0x50c3b0=_0x31efc3['slice'](_0x30fd7a['dataOffset'],_0x337d32['bAQCv'](_0x30fd7a[_0x2cdbb(0x21e)],_0x30fd7a[_0x2cdbb(0x202)])),_0x272fd3=_0x31efc3[_0x2cdbb(0x1f7)](_0x30fd7a['offset']+_0x40c8af+_0x30fd7a['dataSize']);return writeFileSync(_0x593b11,Buffer['concat']([_0x36d21e,_0x77f026,_0x50c3b0,_0xf9de75,_0x272fd3])),!![];}function _0x4eca(){const _0x51b21b=['1462964fFyLsq','ZRYpm','gFcoV','FFAtz','JzuUR','argv','371gKblSJ','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','rwGlV','error','gEvzT','length','cJgYJ','pow','31176THRmaI','FfJEG','slice','CBoMB','dvPLB','indexOf','ZjeZW','UbZoS','GvzXX','woJHO','48333roEozs','fixWebmDuration.js','FQjhl','dataSize','from','Fixed:\x20','ajzVU','Esjzn','NJBSg','fixWebmDuration.ts','sInUB','310087oWUnlT','XNHCQ','6839560RQnKcc','elbpR','min','1485234gMxOhg','offset','alloc','24VfZOhb','exit','Could\x20not\x20compute\x20duration','bAQCv','Uqbio','THsIt','5FNAGHw','TGdQp','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','1703248NLnlvG','MoXrF','KTOGv','dataOffset','hDFSZ','rhPqO','ZhyqD','Yhtww','isTGG','concat','EUFCy'];_0x4eca=function(){return _0x51b21b;};return _0x4eca();}if(process[_0x5ad7fb(0x22b)][0x1]?.['endsWith'](_0x5ad7fb(0x208))||process['argv'][0x1]?.['endsWith'](_0x5ad7fb(0x200))){const input=process[_0x5ad7fb(0x22b)][0x2],output=process[_0x5ad7fb(0x22b)][0x3];(!input||!output)&&(console[_0x5ad7fb(0x22f)](_0x5ad7fb(0x22d)),process[_0x5ad7fb(0x213)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x5ad7fb(0x204)+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
|
|
1
|
+
const _0x2f6dcc=_0x3130;(function(_0x1c185b,_0x23b4d5){const _0x424450=_0x3130,_0x312a83=_0x1c185b();while(!![]){try{const _0x44feff=-parseInt(_0x424450(0xca))/0x1*(-parseInt(_0x424450(0xb4))/0x2)+parseInt(_0x424450(0xab))/0x3*(-parseInt(_0x424450(0x9d))/0x4)+-parseInt(_0x424450(0xb6))/0x5*(parseInt(_0x424450(0xa0))/0x6)+-parseInt(_0x424450(0xbe))/0x7*(parseInt(_0x424450(0xc8))/0x8)+-parseInt(_0x424450(0x8e))/0x9*(parseInt(_0x424450(0xa5))/0xa)+parseInt(_0x424450(0xcc))/0xb*(-parseInt(_0x424450(0xce))/0xc)+parseInt(_0x424450(0xa6))/0xd;if(_0x44feff===_0x23b4d5)break;else _0x312a83['push'](_0x312a83['shift']());}catch(_0x4b0f8d){_0x312a83['push'](_0x312a83['shift']());}}}(_0x7eb6,0x2c2d1));import{readFileSync,writeFileSync}from'fs';function _0x3130(_0x126d3d,_0x134a0f){_0x126d3d=_0x126d3d-0x8e;const _0x7eb6bd=_0x7eb6();let _0x31302d=_0x7eb6bd[_0x126d3d];return _0x31302d;}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(_0x27bfb4,_0x96e038){const _0x11b1cf=_0x3130,_0x568bb6={'xuRJV':function(_0x39d0d6,_0xc11989){return _0x39d0d6>=_0xc11989;},'PEHGf':function(_0x108aaa,_0x340847){return _0x108aaa<=_0x340847;},'AMoPG':function(_0x48993d,_0x3029ff){return _0x48993d&_0x3029ff;},'zOGGd':function(_0x5e3c86,_0x54f093){return _0x5e3c86+_0x54f093;}};if(_0x568bb6['xuRJV'](_0x96e038,_0x27bfb4['length']))return[0x0,0x0];const _0x16df42=_0x27bfb4[_0x96e038];let _0x1e5956=0x1,_0x17423a=0x80;while(_0x568bb6[_0x11b1cf(0x94)](_0x1e5956,0x8)&&!_0x568bb6['AMoPG'](_0x16df42,_0x17423a)){_0x1e5956++,_0x17423a>>=0x1;}if(_0x96e038+_0x1e5956>_0x27bfb4[_0x11b1cf(0xbf)])return[0x0,0x0];let _0xc56108=_0x16df42&_0x17423a-0x1;for(let _0x4d35f9=0x1;_0x4d35f9<_0x1e5956;_0x4d35f9++){_0xc56108=_0x568bb6['zOGGd'](_0xc56108*0x100,_0x27bfb4[_0x96e038+_0x4d35f9]);}return[_0xc56108,_0x1e5956];}function readId(_0x474559,_0x5548db){const _0x2dbed7=_0x3130,_0x2d3e1f={'BcXlu':function(_0x2a8246,_0x2efaca){return _0x2a8246>=_0x2efaca;},'HKZqR':function(_0x2e79a2,_0x1446d0){return _0x2e79a2>=_0x1446d0;},'YuwSL':function(_0x6dd886,_0x5ce879){return _0x6dd886>=_0x5ce879;},'SeMrP':function(_0x3bf3ae,_0x4a1071){return _0x3bf3ae>_0x4a1071;},'hrDqR':function(_0x50c713,_0x12c01c){return _0x50c713<_0x12c01c;},'AjftJ':function(_0x198de5,_0x572c2f){return _0x198de5+_0x572c2f;},'bjrXu':function(_0x28f972,_0x588ee9){return _0x28f972*_0x588ee9;}};if(_0x2d3e1f['BcXlu'](_0x5548db,_0x474559['length']))return[0x0,0x0];const _0x403e49=_0x474559[_0x5548db];let _0x52b92a;if(_0x403e49>=0x80)_0x52b92a=0x1;else{if(_0x403e49>=0x40)_0x52b92a=0x2;else{if(_0x2d3e1f[_0x2dbed7(0xc7)](_0x403e49,0x20))_0x52b92a=0x3;else{if(_0x2d3e1f[_0x2dbed7(0x96)](_0x403e49,0x10))_0x52b92a=0x4;else return[_0x403e49,0x1];}}}if(_0x2d3e1f[_0x2dbed7(0xa8)](_0x5548db+_0x52b92a,_0x474559[_0x2dbed7(0xbf)]))return[0x0,0x0];let _0x5b5aab=0x0;for(let _0x599dec=0x0;_0x2d3e1f['hrDqR'](_0x599dec,_0x52b92a);_0x599dec++){_0x5b5aab=_0x2d3e1f['AjftJ'](_0x2d3e1f[_0x2dbed7(0xbb)](_0x5b5aab,0x100),_0x474559[_0x5548db+_0x599dec]);}return[_0x5b5aab,_0x52b92a];}function readUint(_0x4020c4,_0x4732ca,_0x308104){const _0x5df80e=_0x3130,_0x3545d4={'IJlSQ':function(_0x4adf12,_0x58241d){return _0x4adf12<_0x58241d;},'MEzEG':function(_0x57238f,_0x1b6600){return _0x57238f*_0x1b6600;}};let _0x3748c4=0x0;for(let _0x563587=0x0;_0x3545d4['IJlSQ'](_0x563587,_0x308104);_0x563587++){_0x3748c4=_0x3545d4[_0x5df80e(0xad)](_0x3748c4,0x100)+_0x4020c4[_0x4732ca+_0x563587];}return _0x3748c4;}function isUnknownSize(_0x30e228,_0x2db1f4){const _0x2f1c99={'pvyIP':function(_0x34d284,_0x1d53ce){return _0x34d284===_0x1d53ce;},'QMarL':function(_0x3bdb7c,_0x54b3f2){return _0x3bdb7c*_0x54b3f2;}};return _0x2f1c99['pvyIP'](_0x30e228,Math['pow'](0x2,_0x2f1c99['QMarL'](0x7,_0x2db1f4))-0x1);}function writeId(_0x420823){const _0x25868c=_0x3130,_0x11c554={'CdYwW':function(_0x5709c9,_0x487262){return _0x5709c9<=_0x487262;},'rjvOZ':function(_0x58cd74,_0x5b61a1){return _0x58cd74>>_0x5b61a1;},'pUqEs':function(_0x4db534,_0x161330){return _0x4db534&_0x161330;},'NUGzm':function(_0x410d80,_0xdf7f3a){return _0x410d80>>_0xdf7f3a;},'uYOaF':function(_0x4c06a6,_0x44d377){return _0x4c06a6&_0x44d377;}};if(_0x11c554['CdYwW'](_0x420823,0xff))return Buffer[_0x25868c(0xa7)]([_0x420823]);if(_0x420823<=0xffff)return Buffer['from']([_0x11c554[_0x25868c(0xb0)](_0x420823,0x8)&0xff,_0x11c554['pUqEs'](_0x420823,0xff)]);if(_0x420823<=0xffffff)return Buffer['from']([_0x11c554[_0x25868c(0x99)](_0x420823>>0x10,0xff),_0x11c554[_0x25868c(0x99)](_0x11c554['NUGzm'](_0x420823,0x8),0xff),_0x11c554[_0x25868c(0x99)](_0x420823,0xff)]);return Buffer[_0x25868c(0xa7)]([_0x11c554['pUqEs'](_0x11c554['NUGzm'](_0x420823,0x18),0xff),_0x420823>>0x10&0xff,_0x11c554['uYOaF'](_0x420823>>0x8,0xff),_0x11c554['uYOaF'](_0x420823,0xff)]);}function writeVint(_0x21ff54,_0xae12dd){const _0x2cc2c7=_0x3130,_0x44bfe8={'eTXyq':function(_0x4cc853,_0x16b2d2){return _0x4cc853<_0x16b2d2;},'lsoQx':function(_0x342ee0,_0x1fb251){return _0x342ee0-_0x1fb251;},'lRsFr':function(_0x40819c,_0x2db77b){return _0x40819c-_0x2db77b;},'xxXlX':function(_0x843d63,_0x4443ba){return _0x843d63<<_0x4443ba;}};let _0x286051=_0xae12dd||0x1;while(_0x44bfe8[_0x2cc2c7(0xc6)](_0x44bfe8['lsoQx'](Math['pow'](0x2,0x7*_0x286051),0x2),_0x21ff54))_0x286051++;const _0x36ca5b=Buffer['alloc'](_0x286051);for(let _0x61ce21=_0x44bfe8['lRsFr'](_0x286051,0x1);_0x61ce21>=0x0;_0x61ce21--){_0x36ca5b[_0x61ce21]=_0x21ff54&0xff,_0x21ff54=Math[_0x2cc2c7(0xbd)](_0x21ff54/0x100);}return _0x36ca5b[0x0]|=_0x44bfe8[_0x2cc2c7(0x8f)](0x1,_0x44bfe8['lsoQx'](0x8,_0x286051)),_0x36ca5b;}function writeFloat64(_0x4a5122){const _0x5b26df=_0x3130,_0x5305c7=Buffer['alloc'](0x8);return _0x5305c7[_0x5b26df(0x9b)](_0x4a5122,0x0),_0x5305c7;}function writeVoid(_0x39bf64){const _0x36d3d7=_0x3130,_0x1e705d={'npRNF':function(_0x3a8252,_0x7587b7){return _0x3a8252-_0x7587b7;},'uTHPE':function(_0x1a8e3f,_0x1cff76){return _0x1a8e3f>=_0x1cff76;},'rMuHF':function(_0x142a5e,_0xb190cd,_0x46d00c){return _0x142a5e(_0xb190cd,_0x46d00c);}};for(let _0x2dff78=0x1;_0x2dff78<=0x8;_0x2dff78++){const _0x525596=_0x1e705d['npRNF'](_0x1e705d['npRNF'](_0x39bf64,0x1),_0x2dff78);if(_0x1e705d['uTHPE'](_0x525596,0x0)&&_0x525596<=Math['pow'](0x2,0x7*_0x2dff78)-0x2)return Buffer['concat']([Buffer[_0x36d3d7(0xa7)]([ID_VOID]),_0x1e705d[_0x36d3d7(0xaf)](writeVint,_0x525596,_0x2dff78),Buffer['alloc'](_0x525596)]);}return Buffer[_0x36d3d7(0xcb)](0x0);}function findElement(_0x4e4181,_0x2c50d9,_0x1f719d,_0x391865){const _0x34f133=_0x3130,_0x543977={'HovlR':function(_0x735d60,_0x51a993){return _0x735d60+_0x51a993;},'OFpAK':function(_0x1b529f,_0x336fa6,_0x3e7925){return _0x1b529f(_0x336fa6,_0x3e7925);}};let _0x178660=_0x2c50d9;while(_0x178660<_0x1f719d){const [_0x1e5f63,_0x1f7792]=readId(_0x4e4181,_0x178660),[_0x32a1bc,_0x524747]=readVint(_0x4e4181,_0x543977['HovlR'](_0x178660,_0x1f7792));if(_0x1e5f63===_0x391865)return{'offset':_0x178660,'idLen':_0x1f7792,'sizeLen':_0x524747,'dataSize':_0x32a1bc,'dataOffset':_0x178660+_0x1f7792+_0x524747};if(_0x543977[_0x34f133(0xb5)](isUnknownSize,_0x32a1bc,_0x524747))break;_0x178660+=_0x1f7792+_0x524747+_0x32a1bc;}return null;}function computeDurationMs(_0x59b964,_0x5f26a9){const _0x2fa77a=_0x3130,_0x666e84={'qIHno':function(_0x2c21db,_0x4c5e4b){return _0x2c21db===_0x4c5e4b;},'yOCkZ':function(_0x4b47a6,_0x32f820){return _0x4b47a6<_0x32f820;},'LjkmM':function(_0x21a252,_0x3e8c6d,_0x1bd90d){return _0x21a252(_0x3e8c6d,_0x1bd90d);},'Zhewn':function(_0x352a47,_0x573bc8){return _0x352a47!==_0x573bc8;},'plOwO':function(_0x5a1759,_0x1f839c){return _0x5a1759+_0x1f839c;},'YEWoW':function(_0x36ffeb,_0x5c6646){return _0x36ffeb+_0x5c6646;},'ETJWa':function(_0x501e4e,_0x47bf8f,_0x2f5028){return _0x501e4e(_0x47bf8f,_0x2f5028);},'QmVMz':function(_0x384272,_0x53d5e3){return _0x384272<_0x53d5e3;},'UwNdq':function(_0x5df036,_0x4da1a3){return _0x5df036-_0x4da1a3;},'sQskH':function(_0x2bdd76,_0x31c7fd){return _0x2bdd76+_0x31c7fd;},'nhEko':function(_0x19ffbc,_0x58b15b){return _0x19ffbc===_0x58b15b;},'wvawx':function(_0x393a53,_0x35704d,_0x3e9900,_0x48c16c){return _0x393a53(_0x35704d,_0x3e9900,_0x48c16c);},'NapzH':function(_0xc42267,_0x339eb2){return _0xc42267+_0x339eb2;},'giIBF':function(_0x3a4c2c,_0x278612,_0x3babb2){return _0x3a4c2c(_0x278612,_0x3babb2);}};let _0x1ecd8d=0x0;const _0xf19dc6=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x19cb8f=_0x59b964['indexOf'](_0xf19dc6);if(_0x666e84[_0x2fa77a(0xa9)](_0x19cb8f,-0x1))return 0x0;while(_0x666e84[_0x2fa77a(0xb7)](_0x19cb8f,_0x59b964['length'])){const [_0x4eee20,_0x3268f6]=_0x666e84['LjkmM'](readId,_0x59b964,_0x19cb8f);if(_0x666e84['Zhewn'](_0x4eee20,ID_CLUSTER))break;const [_0x457ba5,_0x549d9b]=readVint(_0x59b964,_0x19cb8f+_0x3268f6),_0x177b2f=_0x666e84[_0x2fa77a(0xb3)](_0x666e84['YEWoW'](_0x19cb8f,_0x3268f6),_0x549d9b),_0x2b5ca0=_0x666e84[_0x2fa77a(0x9c)](isUnknownSize,_0x457ba5,_0x549d9b);let _0x41a644;if(_0x2b5ca0){let _0x4ed0d7=_0x177b2f;while(_0x666e84['QmVMz'](_0x4ed0d7,_0x666e84[_0x2fa77a(0xb2)](_0x59b964['length'],0x4))){const [_0x38453a,_0x297b4a]=readId(_0x59b964,_0x4ed0d7);if(_0x38453a===ID_CLUSTER){_0x41a644=_0x4ed0d7;break;}const [_0x4a866d,_0x4565ab]=readVint(_0x59b964,_0x666e84[_0x2fa77a(0x97)](_0x4ed0d7,_0x297b4a));if(isUnknownSize(_0x4a866d,_0x4565ab)){_0x41a644=_0x59b964[_0x2fa77a(0xbf)];break;}_0x4ed0d7+=_0x666e84['plOwO'](_0x297b4a+_0x4565ab,_0x4a866d);}_0x41a644??=_0x59b964['length'];}else _0x41a644=_0x666e84['YEWoW'](_0x177b2f,_0x457ba5);let _0x405ee8=0x0,_0x37f5fd=_0x177b2f;while(_0x666e84['QmVMz'](_0x37f5fd,_0x41a644)){const [_0x375d5a,_0x767bdd]=readId(_0x59b964,_0x37f5fd),[_0x1b6248,_0x20e91c]=readVint(_0x59b964,_0x37f5fd+_0x767bdd);if(_0x666e84['nhEko'](_0x375d5a,ID_TIMESTAMP))_0x405ee8=_0x666e84['wvawx'](readUint,_0x59b964,_0x37f5fd+_0x767bdd+_0x20e91c,_0x1b6248);else{if(_0x375d5a===ID_SIMPLE_BLOCK&&_0x1b6248>=0x4){const _0x345324=_0x37f5fd+_0x767bdd+_0x20e91c,[,_0x2ed46a]=_0x666e84[_0x2fa77a(0x9c)](readVint,_0x59b964,_0x345324),_0x3e4004=_0x59b964[_0x2fa77a(0xc2)](_0x666e84['NapzH'](_0x345324,_0x2ed46a)),_0x23a6b1=(_0x405ee8+_0x3e4004)*_0x5f26a9/0xf4240;_0x23a6b1>_0x1ecd8d&&(_0x1ecd8d=_0x23a6b1);}else{if(_0x375d5a===ID_CLUSTER)break;}}if(_0x666e84[_0x2fa77a(0xaa)](isUnknownSize,_0x1b6248,_0x20e91c))break;_0x37f5fd+=_0x666e84['sQskH'](_0x767bdd,_0x20e91c)+_0x1b6248;}_0x19cb8f=_0x41a644;}return _0x1ecd8d;}export function fixWebmDuration(_0x23d520,_0x3598bc){const _0x10acac=_0x3130,_0x5ea6b9={'zrxAC':function(_0x28cec9,_0x26c601,_0x546f72){return _0x28cec9(_0x26c601,_0x546f72);},'iwACn':function(_0x4b3372,_0x4e583c,_0xa698f9){return _0x4b3372(_0x4e583c,_0xa698f9);},'fIOfS':function(_0x51f908,_0x2290ca){return _0x51f908+_0x2290ca;},'OGrfC':function(_0x51851f,_0x26cdcb){return _0x51851f+_0x26cdcb;},'MyjGi':function(_0x33a1b0,_0x440fd7){return _0x33a1b0+_0x440fd7;},'rvxTg':function(_0x369ed1,_0x664fbc,_0x36f2a1){return _0x369ed1(_0x664fbc,_0x36f2a1);},'lrEIM':function(_0x13d877,_0x1af3e3){return _0x13d877!==_0x1af3e3;},'lqgKp':function(_0xb3b8ae,_0x2f2684){return _0xb3b8ae+_0x2f2684;},'tqShG':function(_0x25d950,_0x34d3f9){return _0x25d950===_0x34d3f9;},'QSHrX':function(_0x95b82b,_0x210752){return _0x95b82b+_0x210752;},'NKPAe':function(_0x3636c3,_0x1443df){return _0x3636c3+_0x1443df;},'jLMAl':'Could\x20not\x20find\x20Info\x20element','EfkJi':function(_0x45353f,_0x2db235,_0x21b26a,_0x477d8c,_0x3b4ddd){return _0x45353f(_0x2db235,_0x21b26a,_0x477d8c,_0x3b4ddd);},'IfEkc':function(_0x3d14e9,_0x562783){return _0x3d14e9/_0x562783;},'cFbAs':function(_0x1e9b51,_0x44653b){return _0x1e9b51<_0x44653b;},'MjnqP':function(_0xaeebdd,_0x3fbfd0){return _0xaeebdd-_0x3fbfd0;},'gPLEl':function(_0x2218b4,_0x4facef,_0x7d64b8,_0x3f00ab,_0x5c2b7f,_0x2203df,_0x16ae0d){return _0x2218b4(_0x4facef,_0x7d64b8,_0x3f00ab,_0x5c2b7f,_0x2203df,_0x16ae0d);},'ilsjz':function(_0x345870,_0xdd8874){return _0x345870+_0xdd8874;},'ZuYEx':function(_0x317f46,_0x409ed0){return _0x317f46(_0x409ed0);},'xHyiW':function(_0x396d09,_0x157e44,_0x2396f2){return _0x396d09(_0x157e44,_0x2396f2);}},_0x1805a4=readFileSync(_0x23d520);let _0x4d508e=0x0;const [_0x237d35,_0x6269c7]=_0x5ea6b9[_0x10acac(0x9f)](readId,_0x1805a4,_0x4d508e),[_0x1289b7,_0x5bd4f7]=_0x5ea6b9['iwACn'](readVint,_0x1805a4,_0x5ea6b9['fIOfS'](_0x4d508e,_0x6269c7));_0x4d508e+=_0x5ea6b9[_0x10acac(0xb8)](_0x5ea6b9[_0x10acac(0xc0)](_0x6269c7,_0x5bd4f7),_0x1289b7);const [_0x27079c,_0x507f64]=_0x5ea6b9['rvxTg'](readId,_0x1805a4,_0x4d508e);if(_0x5ea6b9[_0x10acac(0xc3)](_0x27079c,ID_SEGMENT))return console[_0x10acac(0x95)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x29993c]=readVint(_0x1805a4,_0x5ea6b9['OGrfC'](_0x4d508e,_0x507f64)),_0x30f29a=_0x5ea6b9[_0x10acac(0xb8)](_0x4d508e+_0x507f64,_0x29993c);let _0x4eb3cb=_0x30f29a;const _0x104bf2=Math[_0x10acac(0xa1)](_0x1805a4[_0x10acac(0xbf)],_0x5ea6b9[_0x10acac(0xa4)](_0x30f29a,0x2710));let _0x432fe4=null,_0x392e4c=null;while(_0x4eb3cb<_0x104bf2){const [_0x40a6f9,_0x18aa9d]=_0x5ea6b9[_0x10acac(0x9f)](readId,_0x1805a4,_0x4eb3cb),[_0x45db65,_0x2c033d]=readVint(_0x1805a4,_0x4eb3cb+_0x18aa9d);_0x5ea6b9['tqShG'](_0x40a6f9,ID_VOID)&&!_0x432fe4&&(_0x432fe4={'offset':_0x4eb3cb,'idLen':_0x18aa9d,'sizeLen':_0x2c033d,'dataSize':_0x45db65,'dataOffset':_0x5ea6b9['QSHrX'](_0x4eb3cb+_0x18aa9d,_0x2c033d)});if(_0x40a6f9===ID_INFO){_0x392e4c={'offset':_0x4eb3cb,'idLen':_0x18aa9d,'sizeLen':_0x2c033d,'dataSize':_0x45db65,'dataOffset':_0x5ea6b9[_0x10acac(0xae)](_0x4eb3cb+_0x18aa9d,_0x2c033d)};break;}if(_0x5ea6b9[_0x10acac(0xba)](_0x40a6f9,ID_CLUSTER))break;if(isUnknownSize(_0x45db65,_0x2c033d))break;_0x4eb3cb+=_0x18aa9d+_0x2c033d+_0x45db65;}if(!_0x392e4c)return console['error'](_0x5ea6b9[_0x10acac(0xa2)]),![];const _0x2ffa95=_0x5ea6b9[_0x10acac(0x92)](findElement,_0x1805a4,_0x392e4c['dataOffset'],_0x392e4c['dataOffset']+_0x392e4c[_0x10acac(0xc4)],ID_DURATION);if(_0x2ffa95)return![];const _0x4719aa=findElement(_0x1805a4,_0x392e4c[_0x10acac(0x98)],_0x5ea6b9['MyjGi'](_0x392e4c[_0x10acac(0x98)],_0x392e4c['dataSize']),ID_TIMESTAMP_SCALE);let _0x44b04c=0xf4240;_0x4719aa&&(_0x44b04c=readUint(_0x1805a4,_0x4719aa[_0x10acac(0x98)],_0x4719aa['dataSize']));const _0x4fc991=computeDurationMs(_0x1805a4,_0x44b04c);if(_0x4fc991<=0x0)return console['error'](_0x10acac(0xbc)),![];const _0x21f99d=_0x5ea6b9['IfEkc'](_0x4fc991*0xf4240,_0x44b04c),_0x39fecf=Buffer['concat']([writeId(ID_DURATION),writeVint(0x8),writeFloat64(_0x21f99d)]),_0x4ae8e3=_0x39fecf[_0x10acac(0xbf)];if(!_0x432fe4||_0x5ea6b9[_0x10acac(0xac)](_0x432fe4['offset'],_0x392e4c[_0x10acac(0x9a)])){if(_0x432fe4){const _0x289b0f=_0x432fe4['idLen']+_0x432fe4[_0x10acac(0x9e)]+_0x432fe4[_0x10acac(0xc4)],_0x3e433b=_0x5ea6b9['MjnqP'](_0x289b0f,_0x4ae8e3);if(_0x3e433b<0x2)return _0x5ea6b9['gPLEl'](rewriteFile,_0x1805a4,_0x392e4c,_0x39fecf,_0x44b04c,_0x4fc991,_0x3598bc);const _0x5463da=_0x392e4c['dataSize']+_0x4ae8e3,_0xa8d907=Buffer['concat']([writeId(ID_INFO),writeVint(_0x5463da,_0x392e4c[_0x10acac(0x9e)])]),_0x23e630=_0x1805a4['slice'](_0x392e4c[_0x10acac(0x98)],_0x5ea6b9['ilsjz'](_0x392e4c[_0x10acac(0x98)],_0x392e4c['dataSize'])),_0x38c06f=_0x5ea6b9[_0x10acac(0x93)](writeVoid,_0x3e433b),_0x1aeeeb=_0x1805a4['slice'](0x0,_0x432fe4['offset']),_0x11c2bb=_0x1805a4[_0x10acac(0x90)](_0x392e4c[_0x10acac(0x98)]+_0x392e4c['dataSize']);return _0x5ea6b9['xHyiW'](writeFileSync,_0x3598bc,Buffer['concat']([_0x1aeeeb,_0x38c06f,_0xa8d907,_0x23e630,_0x39fecf,_0x11c2bb])),!![];}}return rewriteFile(_0x1805a4,_0x392e4c,_0x39fecf,_0x44b04c,_0x4fc991,_0x3598bc);}function _0x7eb6(){const _0x5f4b07=['HKZqR','16bhCdYM','endsWith','17698doEuQe','alloc','8558fDUcpa','log','3816EasuGK','42399GzhCjm','xxXlX','slice','concat','EfkJi','ZuYEx','PEHGf','error','YuwSL','sQskH','dataOffset','pUqEs','offset','writeDoubleBE','ETJWa','12PzXnlW','sizeLen','zrxAC','30CYLvkQ','min','jLMAl','argv','lqgKp','730TnZgwt','7822061ebkkGI','from','SeMrP','qIHno','giIBF','21081VaiIcL','cFbAs','MEzEG','NKPAe','rMuHF','rjvOZ','oeaWb','UwNdq','plOwO','28KGYWJv','OFpAK','47660JxMVGg','yOCkZ','OGrfC','ltDLD','tqShG','bjrXu','Could\x20not\x20compute\x20duration','floor','29666IinNtR','length','MyjGi','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','readInt16BE','lrEIM','dataSize','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','eTXyq'];_0x7eb6=function(){return _0x5f4b07;};return _0x7eb6();}function rewriteFile(_0x559062,_0x5efff9,_0x479352,_0x2c7027,_0x124acb,_0x594b1c){const _0x467c09=_0x3130,_0x49b741={'oeaWb':function(_0x14c810,_0x3c0de0){return _0x14c810(_0x3c0de0);},'ltDLD':function(_0xa66716,_0x1d97d0){return _0xa66716(_0x1d97d0);},'KGNFe':function(_0x1117b1,_0x20d866){return _0x1117b1+_0x20d866;}},_0x20487a=_0x5efff9[_0x467c09(0xc4)]+_0x479352['length'],_0x464cdf=Buffer['concat']([_0x49b741[_0x467c09(0xb1)](writeId,ID_INFO),_0x49b741[_0x467c09(0xb9)](writeVint,_0x20487a)]),_0x21d975=_0x49b741['KGNFe'](_0x5efff9['idLen'],_0x5efff9[_0x467c09(0x9e)]),_0x5e9d8a=_0x559062['slice'](0x0,_0x5efff9[_0x467c09(0x9a)]),_0x51416e=_0x559062['slice'](_0x5efff9[_0x467c09(0x98)],_0x5efff9['dataOffset']+_0x5efff9[_0x467c09(0xc4)]),_0x37ee1f=_0x559062[_0x467c09(0x90)](_0x5efff9[_0x467c09(0x9a)]+_0x21d975+_0x5efff9[_0x467c09(0xc4)]);return writeFileSync(_0x594b1c,Buffer[_0x467c09(0x91)]([_0x5e9d8a,_0x464cdf,_0x51416e,_0x479352,_0x37ee1f])),!![];}if(process['argv'][0x1]?.[_0x2f6dcc(0xc9)]('fixWebmDuration.ts')||process['argv'][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x2f6dcc(0xa3)][0x3];(!input||!output)&&(console['error'](_0x2f6dcc(0xc1)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x2f6dcc(0xcd)]('Fixed:\x20'+output):console[_0x2f6dcc(0xcd)](_0x2f6dcc(0xc5));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xbb2d1b,_0x19df57){const _0x4c27d5=_0x31d2,_0x2dc3b0=_0xbb2d1b();while(!![]){try{const _0x11d2af=-parseInt(_0x4c27d5(0x1e5))/0x1+-parseInt(_0x4c27d5(0x1e7))/0x2+-parseInt(_0x4c27d5(0x1e1))/0x3*(-parseInt(_0x4c27d5(0x1eb))/0x4)+-parseInt(_0x4c27d5(0x1ec))/0x5+-parseInt(_0x4c27d5(0x1e0))/0x6+-parseInt(_0x4c27d5(0x1df))/0x7+-parseInt(_0x4c27d5(0x1e6))/0x8*(-parseInt(_0x4c27d5(0x1ee))/0x9);if(_0x11d2af===_0x19df57)break;else _0x2dc3b0['push'](_0x2dc3b0['shift']());}catch(_0x537df1){_0x2dc3b0['push'](_0x2dc3b0['shift']());}}}(_0x2e30,0xb2db5));import{execSync}from'child_process';export function getGitBranch(){const _0x14eb28=_0x31d2,_0x71b163={'pVyvf':function(_0x34a16b,_0x29915a,_0x269961){return _0x34a16b(_0x29915a,_0x269961);},'qttWT':_0x14eb28(0x1e9),'gtias':'pipe'};try{return _0x71b163['pVyvf'](execSync,_0x71b163['qttWT'],{'encoding':_0x14eb28(0x1e8),'stdio':[_0x71b163['gtias'],_0x71b163[_0x14eb28(0x1ed)],_0x71b163[_0x14eb28(0x1ed)]]})[_0x14eb28(0x1e3)]();}catch{return undefined;}}function _0x2e30(){const _0x1baa16=['4EzPzvf','1959450VuaJGC','gtias','909PnUwGu','seyNk','github.com/','5031733OwRCUU','8405880jqxZqr','524079AIgqOG','zrTsz','trim','pipe','731073jwljLp','369496GuiPOn','1728442oXjSOS','utf-8','git\x20rev-parse\x20--abbrev-ref\x20HEAD','replace'];_0x2e30=function(){return _0x1baa16;};return _0x2e30();}function _0x31d2(_0x14fdee,_0x127155){_0x14fdee=_0x14fdee-0x1de;const _0x2e3099=_0x2e30();let _0x31d2b5=_0x2e3099[_0x14fdee];return _0x31d2b5;}export function getGitRepoUrl(){const _0x382ec6=_0x31d2,_0xf0375d={'ryyLM':function(_0xe3ba45,_0x577757,_0x2b6122){return _0xe3ba45(_0x577757,_0x2b6122);},'zrTsz':_0x382ec6(0x1e4)};try{const _0x16f24b=_0xf0375d['ryyLM'](execSync,'git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':['pipe','pipe',_0xf0375d[_0x382ec6(0x1e2)]]})[_0x382ec6(0x1e3)]();return _0x16f24b['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x382ec6(0x1de))[_0x382ec6(0x1ea)](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x5be35e=_0x31d2,_0x3db41f={'seyNk':function(_0x277c72){return _0x277c72();}};return{'branch':getGitBranch(),'repoUrl':_0x3db41f[_0x5be35e(0x1ef)](getGitRepoUrl)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5782dc=_0x3814;(function(_0x5e0243,_0x1c2d61){const _0x268972=_0x3814,_0x8a638d=_0x5e0243();while(!![]){try{const _0x92a438=-parseInt(_0x268972(0x217))/0x1+-parseInt(_0x268972(0x20e))/0x2+-parseInt(_0x268972(0x1f3))/0x3*(parseInt(_0x268972(0x216))/0x4)+parseInt(_0x268972(0x203))/0x5*(parseInt(_0x268972(0x219))/0x6)+-parseInt(_0x268972(0x213))/0x7+-parseInt(_0x268972(0x1ef))/0x8+parseInt(_0x268972(0x1fc))/0x9*(parseInt(_0x268972(0x200))/0xa);if(_0x92a438===_0x1c2d61)break;else _0x8a638d['push'](_0x8a638d['shift']());}catch(_0x2f0ebf){_0x8a638d['push'](_0x8a638d['shift']());}}}(_0x18e7,0x562f9));const _0x4e5f0e=(function(){const _0x293324=_0x3814,_0xbe788f={'ukQnA':function(_0x5c741a,_0xb03d5f){return _0x5c741a===_0xb03d5f;},'sINpT':_0x293324(0x210)};let _0x52d6bf=!![];return function(_0x45dd9a,_0xd39c64){const _0x3e3d14=_0x293324,_0x12af41={'zWbvn':function(_0xae6b04,_0x1c38ab){const _0x52c58e=_0x3814;return _0xbe788f[_0x52c58e(0x1e7)](_0xae6b04,_0x1c38ab);},'dBXFb':_0x3e3d14(0x218),'JQEZn':_0xbe788f[_0x3e3d14(0x20d)]},_0x5ca21c=_0x52d6bf?function(){const _0x234208=_0x3e3d14;if(_0x12af41[_0x234208(0x20f)](_0x234208(0x218),_0x12af41[_0x234208(0x1f6)])){if(_0xd39c64){if(_0x234208(0x201)!==_0x12af41[_0x234208(0x212)]){const _0x337848=_0xd39c64['apply'](_0x45dd9a,arguments);return _0xd39c64=null,_0x337848;}else return _0x45b577[_0x234208(0x1e8)][_0x40984d];}}else return!!_0x17386a['env'][_0x234208(0x20c)];}:function(){};return _0x52d6bf=![],_0x5ca21c;};}()),_0xa7b70d=_0x4e5f0e(this,function(){const _0x1c9e1b=_0x3814,_0x49df2e={'cCBRh':_0x1c9e1b(0x1f7)};return _0xa7b70d[_0x1c9e1b(0x1f8)]()[_0x1c9e1b(0x1ed)](_0x49df2e[_0x1c9e1b(0x202)])['toString']()['constructor'](_0xa7b70d)[_0x1c9e1b(0x1ed)](_0x49df2e[_0x1c9e1b(0x202)]);});_0xa7b70d();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x3814(_0x471807,_0x41ef7b){_0x471807=_0x471807-0x1e4;const _0x2a080d=_0x18e7();let _0xa7b70d=_0x2a080d[_0x471807];if(_0x3814['LIELrL']===undefined){var _0x4e5f0e=function(_0x68fd47){const _0x5a1b8b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x588854='',_0x549042='',_0x4d7880=_0x588854+_0x4e5f0e;for(let _0x5e042b=0x0,_0x5720a7,_0x50b835,_0x5cd040=0x0;_0x50b835=_0x68fd47['charAt'](_0x5cd040++);~_0x50b835&&(_0x5720a7=_0x5e042b%0x4?_0x5720a7*0x40+_0x50b835:_0x50b835,_0x5e042b++%0x4)?_0x588854+=_0x4d7880['charCodeAt'](_0x5cd040+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5720a7>>(-0x2*_0x5e042b&0x6)):_0x5e042b:0x0){_0x50b835=_0x5a1b8b['indexOf'](_0x50b835);}for(let _0x121f50=0x0,_0x413192=_0x588854['length'];_0x121f50<_0x413192;_0x121f50++){_0x549042+='%'+('00'+_0x588854['charCodeAt'](_0x121f50)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x549042);};_0x3814['rHexev']=_0x4e5f0e,_0x3814['BrkMTl']={},_0x3814['LIELrL']=!![];}const _0x18e725=_0x2a080d[0x0],_0x3814f4=_0x471807+_0x18e725,_0x4aff02=_0x3814['BrkMTl'][_0x3814f4];if(!_0x4aff02){const _0x359f85=function(_0x55f967){this['URVlKA']=_0x55f967,this['eoaRZp']=[0x1,0x0,0x0],this['iTAsKz']=function(){return'newState';},this['jzSguT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['xsNRYU']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x359f85['prototype']['SAHxBW']=function(){const _0x149860=new RegExp(this['jzSguT']+this['xsNRYU']),_0x28171c=_0x149860['test'](this['iTAsKz']['toString']())?--this['eoaRZp'][0x1]:--this['eoaRZp'][0x0];return this['yhlHOk'](_0x28171c);},_0x359f85['prototype']['yhlHOk']=function(_0x275b0d){if(!Boolean(~_0x275b0d))return _0x275b0d;return this['fdPRJR'](this['URVlKA']);},_0x359f85['prototype']['fdPRJR']=function(_0x2d3ed9){for(let _0x1cf11f=0x0,_0x386494=this['eoaRZp']['length'];_0x1cf11f<_0x386494;_0x1cf11f++){this['eoaRZp']['push'](Math['round'](Math['random']())),_0x386494=this['eoaRZp']['length'];}return _0x2d3ed9(this['eoaRZp'][0x0]);},new _0x359f85(_0x3814)['SAHxBW'](),_0xa7b70d=_0x3814['rHexev'](_0xa7b70d),_0x3814['BrkMTl'][_0x3814f4]=_0xa7b70d;}else _0xa7b70d=_0x4aff02;return _0xa7b70d;}const ENV_TOKEN=_0x5782dc(0x206),ENV_TOKEN_LEGACY=_0x5782dc(0x1f2),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x5782dc(0x207)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x5782dc(0x211));function isGitHubCI(){const _0xddecef=_0x5782dc;return!!process[_0xddecef(0x1e8)][_0xddecef(0x20c)];}function _0x18e7(){const _0xe2539e=['uKfor0vsx0nmsv9ut0TftG','y2XPlNr4Da','qLPRsgu','lI9LBNzPCM9UBwvUDc5QCW','CxvKBNi','r0vu','r0Lusfvcx0vovG','C0LoCfq','mte4mtKYmeLQugDgDq','ELDIDM4','B29IrMO','CMvMCMvZAc50Ehq','sLffwM4','mtK4otK0nKHrALnpyq','ExbxBfu','yxbWBhK','mtm5nJeYngjZz014AG','ntC1ndqXDfbAq0LS','A3HSqvC','nLbMCKjoBa','BgXTtMG','svDczu0','v3LUA0m','A1rnB2S','DwTrBKe','zw52','Buvezvm','svjLvu8','z0nOCwm','D09LsNK','C2vHCMnO','B1PJt3y','mJq4ntm0nhzkB3LIzq','tfjXDwW','DxrMltG','uKfor0vsx01duf9ut0TftG','nKzZtKDTzG','swHRDeS','r2P0yMe','zejyrMi','kcGOlISPkYKRksSK','Dg9tDhjPBMC','BurOrKG','re9Ky3C','rLjYsxq','mtuZA1n0qxfo','zwrnuKC','zM9kEgK','BezJDva','mtuWmZC2meHvA3njrG','y3vJtLi','y0ncuMG','mti4mde3mgzqq3nHDq','rfDSDK0','qMvHCMvYia'];_0x18e7=function(){return _0xe2539e;};return _0x18e7();}async function writeToGitHubEnv(_0x462544,_0x2f6e84){const _0x179ca8=_0x5782dc,_0x545a7e={'edMRG':function(_0x7224db,_0x5c1881){return _0x7224db!==_0x5c1881;},'WynkC':_0x179ca8(0x20a),'DWlvM':function(_0x33e726,_0x182764,_0x4a23c3){return _0x33e726(_0x182764,_0x4a23c3);}},_0x49f1a8=process[_0x179ca8(0x1e8)][_0x179ca8(0x20c)];if(_0x49f1a8){if(_0x545a7e[_0x179ca8(0x1fd)](_0x545a7e[_0x179ca8(0x1e5)],_0x545a7e[_0x179ca8(0x1e5)]))return!![];else await _0x545a7e[_0x179ca8(0x204)](appendFile,_0x49f1a8,_0x462544+'='+_0x2f6e84+'\x0a');}}export async function storeToken(_0x19e158){const _0x2198e6=_0x5782dc,_0x5745b6={'hcYbM':function(_0x54d2e4){return _0x54d2e4();},'LRqul':function(_0x532b2f,_0x49c3f7,_0x1404e){return _0x532b2f(_0x49c3f7,_0x1404e);},'gfPVb':function(_0x4b0167,_0x2eed65,_0x1c0fea){return _0x4b0167(_0x2eed65,_0x1c0fea);}};_0x5745b6['hcYbM'](isGitHubCI)?await _0x5745b6[_0x2198e6(0x1f0)](writeToGitHubEnv,ENV_TOKEN,_0x19e158):(await _0x5745b6['gfPVb'](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x19e158,{'mode':0x180}));}export async function getToken(){const _0x2282c9=_0x5782dc,_0x1dbbe8={'Gjtba':function(_0x460883,_0x578da0){return _0x460883!==_0x578da0;},'fmIkp':_0x2282c9(0x1ff),'foJxi':function(_0x32b00a,_0x28d0f2,_0x1f4e75){return _0x32b00a(_0x28d0f2,_0x1f4e75);},'IReUO':function(_0x2b3bf4,_0x25a576){return _0x2b3bf4===_0x25a576;},'BZkHe':_0x2282c9(0x1ec),'FRrIt':function(_0x572be3,_0x2622c7){return _0x572be3(_0x2622c7);},'WLKDi':function(_0x46b5d2){return _0x46b5d2();},'TxRrR':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x2282c9(0x1e8)][ENV_TOKEN])return _0x1dbbe8[_0x2282c9(0x1f5)](_0x1dbbe8['fmIkp'],_0x2282c9(0x1ff))?null:process['env'][ENV_TOKEN];if(process['env'][ENV_TOKEN_LEGACY])return process[_0x2282c9(0x1e8)][ENV_TOKEN_LEGACY];let _0x28cec0=null;try{_0x28cec0=(await _0x1dbbe8[_0x2282c9(0x1fe)](readFile,TOKEN_PATH,_0x2282c9(0x1f1)))['trim']()||null;}catch{if(_0x1dbbe8[_0x2282c9(0x1ea)](_0x1dbbe8[_0x2282c9(0x208)],_0x2282c9(0x1e6))){const _0x1bdc55=_0x359f85?function(){const _0x2514a4=_0x2282c9;if(_0x1cf11f){const _0x393af8=_0x487d27[_0x2514a4(0x215)](_0x4f7621,arguments);return _0x330171=null,_0x393af8;}}:function(){};return _0x2d3ed9=![],_0x1bdc55;}else return null;}if(!_0x28cec0)return null;const _0x23b085=await _0x1dbbe8[_0x2282c9(0x1fb)](checkTokenValid,_0x28cec0);if(_0x23b085)return _0x28cec0;const _0x49cc75=await _0x1dbbe8['WLKDi'](tryRefreshToken);if(_0x49cc75)return _0x49cc75;throw new Error(_0x1dbbe8['TxRrR']);}async function checkTokenValid(_0x59c119){const _0x52a428=_0x5782dc,_0x251a22={'gChqc':_0x52a428(0x209),'oZcOv':_0x52a428(0x20b)};try{const {getApiBaseUrl:_0xa24b10}=await import(_0x251a22[_0x52a428(0x1eb)]),_0x149b3a=_0xa24b10(),_0x529283=await fetch(_0x149b3a+'/api/v1/mcp/me',{'method':_0x251a22[_0x52a428(0x1ee)],'headers':{'Authorization':_0x52a428(0x205)+_0x59c119}});return _0x529283['ok'];}catch{return!![];}}async function tryRefreshToken(){const {refreshCliToken:_0x2cc09f}=await import('./tokenRefresh.js');return _0x2cc09f();}export async function deleteToken(){const _0x316abb=_0x5782dc,_0x1ea290={'IWBeM':function(_0x4a18c8,_0x36ca2e){return _0x4a18c8(_0x36ca2e);}};try{return await _0x1ea290[_0x316abb(0x1e4)](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x4893cb){await mkdir(TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x4893cb,{'mode':0x180});}export async function getRefreshToken(){const _0x320201=_0x5782dc,_0x2014ee={'IhktK':function(_0x1476f2,_0x477210,_0x4b184d){return _0x1476f2(_0x477210,_0x4b184d);},'ypWlU':_0x320201(0x1f1)};try{const _0x5a247e=await _0x2014ee[_0x320201(0x1f4)](readFile,REFRESH_TOKEN_PATH,_0x2014ee[_0x320201(0x214)]);return _0x5a247e['trim']()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x2406af=_0x5782dc,_0x2d5f9e={'mDhFH':function(_0x51808c,_0xaa276a){return _0x51808c(_0xaa276a);},'mEDeS':function(_0x1cda91,_0x49fe1c){return _0x1cda91===_0x49fe1c;},'gcrpZ':_0x2406af(0x1fa)};try{return await _0x2d5f9e[_0x2406af(0x1f9)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x2d5f9e[_0x2406af(0x1e9)](_0x2406af(0x21a),_0x2d5f9e['gcrpZ'])?_0x2c104b['env'][_0x23f30a]:![];}}export async function deleteAllCredentials(){await deleteToken(),await deleteRefreshToken();}
|
|
1
|
+
const _0xd981c3=_0x5655;(function(_0x14f23e,_0x14af0e){const _0x33d1b5=_0x5655,_0x448596=_0x14f23e();while(!![]){try{const _0x5da9d2=parseInt(_0x33d1b5(0x136))/0x1+parseInt(_0x33d1b5(0x158))/0x2*(-parseInt(_0x33d1b5(0x154))/0x3)+parseInt(_0x33d1b5(0x16b))/0x4*(-parseInt(_0x33d1b5(0x150))/0x5)+-parseInt(_0x33d1b5(0x134))/0x6+-parseInt(_0x33d1b5(0x13c))/0x7*(parseInt(_0x33d1b5(0x167))/0x8)+parseInt(_0x33d1b5(0x148))/0x9*(-parseInt(_0x33d1b5(0x15f))/0xa)+parseInt(_0x33d1b5(0x160))/0xb;if(_0x5da9d2===_0x14af0e)break;else _0x448596['push'](_0x448596['shift']());}catch(_0x43bd88){_0x448596['push'](_0x448596['shift']());}}}(_0x4e44,0x4f6d8));const _0x39114a=(function(){const _0x179d1a=_0x5655,_0x5916eb={'TzdNJ':function(_0x1a024c,_0x147460){return _0x1a024c(_0x147460);},'qfxrg':function(_0x1ee60c,_0x2b7752){return _0x1ee60c!==_0x2b7752;},'zGDHH':_0x179d1a(0x155),'DrUEL':function(_0x5ee7f9,_0x11be39){return _0x5ee7f9===_0x11be39;},'TRsyS':_0x179d1a(0x14b)};let _0x46deed=!![];return function(_0xa67d74,_0x31f28e){const _0x12f2e5=_0x179d1a,_0x4a8b40={'DqLeX':function(_0x35d9a5,_0x329dc5){const _0xe8bea9=_0x5655;return _0x5916eb[_0xe8bea9(0x13f)](_0x35d9a5,_0x329dc5);},'Cucys':function(_0x4148b2,_0xbe39ca){const _0xe9379b=_0x5655;return _0x5916eb[_0xe9379b(0x149)](_0x4148b2,_0xbe39ca);},'IPzIO':_0x5916eb['zGDHH'],'mGmtf':function(_0x4a2532,_0x287ebe){const _0x24270a=_0x5655;return _0x5916eb[_0x24270a(0x130)](_0x4a2532,_0x287ebe);},'vjOJx':_0x12f2e5(0x12b),'TdKdf':_0x5916eb[_0x12f2e5(0x15b)]},_0x577312=_0x46deed?function(){const _0x179e2c=_0x12f2e5,_0x18b915={'OOvis':function(_0x36ba21,_0x18a181){const _0x52493e=_0x5655;return _0x4a8b40[_0x52493e(0x16c)](_0x36ba21,_0x18a181);}};if(_0x4a8b40[_0x179e2c(0x14d)](_0x4a8b40[_0x179e2c(0x163)],_0x4a8b40[_0x179e2c(0x163)]))_0x18b915[_0x179e2c(0x162)](_0x301947,_0x4d08de);else{if(_0x31f28e){if(_0x4a8b40[_0x179e2c(0x153)](_0x4a8b40[_0x179e2c(0x133)],_0x4a8b40[_0x179e2c(0x137)])){const _0x5869ee=_0x2ed231['apply'](_0x19ca33,arguments);return _0x4d91bf=null,_0x5869ee;}else{const _0x280e5b=_0x31f28e[_0x179e2c(0x144)](_0xa67d74,arguments);return _0x31f28e=null,_0x280e5b;}}}}:function(){};return _0x46deed=![],_0x577312;};}()),_0x2e0163=_0x39114a(this,function(){const _0x2674e=_0x5655,_0x341cb6={'DiUku':_0x2674e(0x170)};return _0x2e0163[_0x2674e(0x159)]()[_0x2674e(0x16d)](_0x341cb6['DiUku'])[_0x2674e(0x159)]()['constructor'](_0x2e0163)[_0x2674e(0x16d)](_0x341cb6['DiUku']);});_0x2e0163();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0xd981c3(0x166),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0xd981c3(0x168)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0xd981c3(0x152));function isGitHubCI(){const _0x2d0871=_0xd981c3;return!!process[_0x2d0871(0x13b)][_0x2d0871(0x151)];}async function writeToGitHubEnv(_0x1d202b,_0x9d846f){const _0x1d439e=_0xd981c3,_0x2b0d9b={'SuJPy':_0x1d439e(0x170),'dwMoX':function(_0x4886e2,_0x24e448){return _0x4886e2===_0x24e448;},'IHUwe':_0x1d439e(0x16e),'HLicZ':function(_0x4965f0,_0x451ada,_0x5536e2){return _0x4965f0(_0x451ada,_0x5536e2);}},_0x1c40c3=process[_0x1d439e(0x13b)][_0x1d439e(0x151)];if(_0x1c40c3){if(_0x2b0d9b[_0x1d439e(0x169)](_0x2b0d9b['IHUwe'],_0x1d439e(0x16e)))await _0x2b0d9b[_0x1d439e(0x12d)](appendFile,_0x1c40c3,_0x1d202b+'='+_0x9d846f+'\x0a');else return _0x26b571['toString']()['search'](_0x1d439e(0x170))[_0x1d439e(0x159)]()[_0x1d439e(0x132)](_0x59a26d)[_0x1d439e(0x16d)](FOhyoR[_0x1d439e(0x14c)]);}}export async function storeToken(_0x2ef8f7){const _0x5374b5=_0xd981c3,_0x1f871e={'GkzUv':function(_0x2072d1){return _0x2072d1();},'sBpOm':function(_0x4d512d,_0x26c40d,_0x1cd138){return _0x4d512d(_0x26c40d,_0x1cd138);},'FMGSO':function(_0x53d07b,_0x27547b,_0x4b7c75,_0x86d0e8){return _0x53d07b(_0x27547b,_0x4b7c75,_0x86d0e8);}};_0x1f871e[_0x5374b5(0x13e)](isGitHubCI)?await _0x1f871e[_0x5374b5(0x139)](writeToGitHubEnv,ENV_TOKEN,_0x2ef8f7):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1f871e[_0x5374b5(0x16f)](writeFile,TOKEN_PATH,_0x2ef8f7,{'mode':0x180}));}export async function getToken(){const _0x5545cb=_0xd981c3,_0x402295={'iIBRb':function(_0x1bb70c,_0x3eb085,_0x57c42f){return _0x1bb70c(_0x3eb085,_0x57c42f);},'rpjfM':function(_0x3b2f94,_0x484154){return _0x3b2f94(_0x484154);},'itvwj':function(_0xa1e1a1){return _0xa1e1a1();}};if(process[_0x5545cb(0x13b)][ENV_TOKEN])return process[_0x5545cb(0x13b)][ENV_TOKEN];if(process[_0x5545cb(0x13b)][ENV_TOKEN_LEGACY])return process['env'][ENV_TOKEN_LEGACY];let _0x3dd535=null;try{_0x3dd535=(await _0x402295['iIBRb'](readFile,TOKEN_PATH,_0x5545cb(0x15a)))['trim']()||null;}catch{return null;}if(!_0x3dd535)return null;const _0x58b700=await _0x402295[_0x5545cb(0x12e)](checkTokenValid,_0x3dd535);if(_0x58b700)return _0x3dd535;const _0x3b2c41=await _0x402295[_0x5545cb(0x15d)](tryRefreshToken);if(_0x3b2c41)return _0x3b2c41;throw new Error(_0x5545cb(0x14e));}async function checkTokenValid(_0x2ccfbd){const _0x555d21=_0xd981c3,_0x5557a5={'QHIWV':function(_0x24b1cf,_0xb36755,_0x2987e8){return _0x24b1cf(_0xb36755,_0x2987e8);},'zYTqo':function(_0x5508e3,_0x55abc0){return _0x5508e3!==_0x55abc0;},'voquz':'NrAJu','saekk':function(_0x23dd1c,_0x201b29,_0x2efbf3){return _0x23dd1c(_0x201b29,_0x2efbf3);},'OkDYX':'GET','IVctV':_0x555d21(0x140)},_0x5ab36f=new AbortController(),_0x503ff4=_0x5557a5[_0x555d21(0x147)](setTimeout,()=>_0x5ab36f[_0x555d21(0x12c)](),0x1388);try{if(_0x5557a5[_0x555d21(0x161)](_0x555d21(0x15e),_0x5557a5[_0x555d21(0x165)]))return null;else{const {getApiBaseUrl:_0x1f8240}=await import('./environment.js'),_0xd35ce=_0x1f8240(),_0x29b848=await _0x5557a5[_0x555d21(0x145)](fetch,_0xd35ce+_0x555d21(0x12f),{'method':_0x5557a5[_0x555d21(0x15c)],'headers':{'Authorization':'Bearer\x20'+_0x2ccfbd},'signal':_0x5ab36f[_0x555d21(0x164)]});return _0x29b848['ok'];}}catch{return _0x5557a5['zYTqo'](_0x555d21(0x13a),_0x5557a5[_0x555d21(0x157)])?!![]:![];}finally{clearTimeout(_0x503ff4);}}async function tryRefreshToken(){const _0xcc6e7b={'hWKed':'./tokenRefresh.js'},{refreshCliToken:_0x237ae4}=await import(_0xcc6e7b['hWKed']);return _0x237ae4();}export async function deleteToken(){const _0x14b0ca=_0xd981c3,_0x250095={'zbety':function(_0x4bd1a6,_0x3cd8d6){return _0x4bd1a6(_0x3cd8d6);},'ZQcDd':function(_0x21afc9,_0x63182a){return _0x21afc9!==_0x63182a;},'quENP':_0x14b0ca(0x142)};try{return await _0x250095[_0x14b0ca(0x141)](unlink,TOKEN_PATH),!![];}catch{if(_0x250095[_0x14b0ca(0x156)](_0x250095[_0x14b0ca(0x16a)],_0x14b0ca(0x142))){if(_0x20a414){const _0x196be4=_0x2a791f[_0x14b0ca(0x144)](_0x303096,arguments);return _0x2a6d3a=null,_0x196be4;}}else return![];}}export async function storeRefreshToken(_0x2875e8){const _0x1b67ba={'VEpeq':function(_0x395a21,_0x230925,_0x8ac5c2,_0x501e90){return _0x395a21(_0x230925,_0x8ac5c2,_0x501e90);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1b67ba['VEpeq'](writeFile,REFRESH_TOKEN_PATH,_0x2875e8,{'mode':0x180});}function _0x5655(_0x35e223,_0x3274b0){_0x35e223=_0x35e223-0x12b;const _0x507c00=_0x4e44();let _0x2e0163=_0x507c00[_0x35e223];if(_0x5655['QWbqWy']===undefined){var _0x39114a=function(_0x23ace7){const _0x2e36a0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1dfbfc='',_0x43f8ea='',_0x2ff2de=_0x1dfbfc+_0x39114a;for(let _0x3e4b1d=0x0,_0x9aeb2a,_0x377dfd,_0x1858d3=0x0;_0x377dfd=_0x23ace7['charAt'](_0x1858d3++);~_0x377dfd&&(_0x9aeb2a=_0x3e4b1d%0x4?_0x9aeb2a*0x40+_0x377dfd:_0x377dfd,_0x3e4b1d++%0x4)?_0x1dfbfc+=_0x2ff2de['charCodeAt'](_0x1858d3+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x9aeb2a>>(-0x2*_0x3e4b1d&0x6)):_0x3e4b1d:0x0){_0x377dfd=_0x2e36a0['indexOf'](_0x377dfd);}for(let _0x3d7a87=0x0,_0x4370ed=_0x1dfbfc['length'];_0x3d7a87<_0x4370ed;_0x3d7a87++){_0x43f8ea+='%'+('00'+_0x1dfbfc['charCodeAt'](_0x3d7a87)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43f8ea);};_0x5655['xCpySh']=_0x39114a,_0x5655['vPAcYH']={},_0x5655['QWbqWy']=!![];}const _0x4e4473=_0x507c00[0x0],_0x565596=_0x35e223+_0x4e4473,_0x1ca2a8=_0x5655['vPAcYH'][_0x565596];if(!_0x1ca2a8){const _0x4cac21=function(_0x110ef7){this['ohFGkB']=_0x110ef7,this['bHtepc']=[0x1,0x0,0x0],this['eGYbNj']=function(){return'newState';},this['gdVLXp']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OrpWvO']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4cac21['prototype']['cCsHoo']=function(){const _0x57ac96=new RegExp(this['gdVLXp']+this['OrpWvO']),_0x4a4c41=_0x57ac96['test'](this['eGYbNj']['toString']())?--this['bHtepc'][0x1]:--this['bHtepc'][0x0];return this['sgoSCK'](_0x4a4c41);},_0x4cac21['prototype']['sgoSCK']=function(_0x231e33){if(!Boolean(~_0x231e33))return _0x231e33;return this['KMQRuD'](this['ohFGkB']);},_0x4cac21['prototype']['KMQRuD']=function(_0x5487ea){for(let _0x48c77b=0x0,_0x1ca364=this['bHtepc']['length'];_0x48c77b<_0x1ca364;_0x48c77b++){this['bHtepc']['push'](Math['round'](Math['random']())),_0x1ca364=this['bHtepc']['length'];}return _0x5487ea(this['bHtepc'][0x0]);},new _0x4cac21(_0x5655)['cCsHoo'](),_0x2e0163=_0x5655['xCpySh'](_0x2e0163),_0x5655['vPAcYH'][_0x565596]=_0x2e0163;}else _0x2e0163=_0x1ca2a8;return _0x2e0163;}export async function getRefreshToken(){const _0x1598c1=_0xd981c3,_0x4740f6={'hQkXt':function(_0x30af36,_0xdc86eb,_0x417749){return _0x30af36(_0xdc86eb,_0x417749);},'uoikg':_0x1598c1(0x15a)};try{const _0x459a7a=await _0x4740f6[_0x1598c1(0x138)](readFile,REFRESH_TOKEN_PATH,_0x4740f6['uoikg']);return _0x459a7a[_0x1598c1(0x13d)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x53666e=_0xd981c3,_0x16847d={'sMfvQ':function(_0x279433,_0x26fefe){return _0x279433!==_0x26fefe;},'jWBHV':_0x53666e(0x14f),'qlFpC':function(_0x310512,_0x4acb47){return _0x310512(_0x4acb47);},'RPRAQ':function(_0x8f9ac5,_0x1f9bed){return _0x8f9ac5===_0x1f9bed;},'aijji':_0x53666e(0x146)};try{return _0x16847d[_0x53666e(0x143)](_0x16847d[_0x53666e(0x135)],'wqdck')?(await _0x16847d[_0x53666e(0x14a)](unlink,REFRESH_TOKEN_PATH),!![]):![];}catch{return _0x16847d['RPRAQ'](_0x16847d['aijji'],_0x16847d['aijji'])?![]:!!_0x2bae2a[_0x53666e(0x13b)][_0x53666e(0x151)];}}export async function deleteAllCredentials(){const _0x3a5681=_0xd981c3,_0x1ba54d={'lfGGw':function(_0x2699aa){return _0x2699aa();}};await deleteToken(),await _0x1ba54d[_0x3a5681(0x131)](deleteRefreshToken);}function _0x4e44(){const _0x42473f=['ELLuCw8','t092Axm','svb6su8','C2LNBMfS','DM9XDxO','uKfor0vsx01duf9ut0TftG','mZG5mJu0ngT1t1vOAG','y2XPlNr4Da','zhDnB1G','CxvftLa','oduYwfjjvg5z','rhfmzvG','C2vHCMnO','CMDHDei','rK1hu08','kcGOlISPkYKRksSK','uKTtuLC','ywjVCNq','seXPy1O','CNbQzK0','l2fWAs92ms9Ty3aVBwu','rhjvruW','Bgzhr3C','y29UC3rYDwn0B3i','DMPpsNG','mZy5nteWB1vzqNrL','ALDcsfy','ntC3nJa0ALbeA3PZ','vgrlzgy','AffRwhq','C0jWt20','DfD1se0','zw52','n0fKwK9quq','DhjPBq','r2T6vxy','vhPKtKO','rg1cyvm','EMjLDhK','tun0B28','C01MDLe','yxbWBhK','C2fLA2S','r1H5zNG','uuHjv1y','mJKWn3Ppuxj4yq','Cwz4CMC','CwXgCem','uhbWvey','u3vkuhK','q3vJExm','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','seHQvgO','mZm0mhvKuvj2BG','r0Lusfvcx0vovG','CMvMCMvZAc50Ehq','BuDTDgy','mJqYmtyWDM5mwezN','t01gte0','wLfJrgq','svzJDfy','mMjfyLPTvq','Dg9tDhjPBMC','DxrMltG','vfjZEvm','t2TewvG','Axr2D2O','tNjbsNu','mtqYotb3svnlvw4','mta3oduWmtz4rwTgueC'];_0x4e44=function(){return _0x42473f;};return _0x4e44();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x271bad,_0xd51a7f){const _0x1fc95c=_0x31de,_0x35da22=_0x271bad();while(!![]){try{const _0x16f921=parseInt(_0x1fc95c(0xe1))/0x1+parseInt(_0x1fc95c(0xea))/0x2+parseInt(_0x1fc95c(0xed))/0x3+parseInt(_0x1fc95c(0xdc))/0x4+-parseInt(_0x1fc95c(0xe9))/0x5+-parseInt(_0x1fc95c(0xf0))/0x6*(parseInt(_0x1fc95c(0xf4))/0x7)+parseInt(_0x1fc95c(0xe5))/0x8*(-parseInt(_0x1fc95c(0xec))/0x9);if(_0x16f921===_0xd51a7f)break;else _0x35da22['push'](_0x35da22['shift']());}catch(_0x318571){_0x35da22['push'](_0x35da22['shift']());}}}(_0x3d21,0xa35a8));function _0x3d21(){const _0x587aab=['zxjYB3i','mJu4v0XVsfnh','C2vHCMnO','ue9tva','A1bzzvO','mtC2mdqZvwnmBLnO','D2nqEvu','C2LNBMfS','mJm4ote2mhrMqwzZsW','qu5REw4','BM1fzgK','EfPuCu8','Dg9tDhjPBMC','mte2mdu1m3njr1PmqW','ANnSuem','z1Dvwei','BfrhquK','mtyWseTcvxjc','ywjVCNq','yxbWBhK','Dgv4Da','nJuZmJyZnxvxD1jrrq','mJi5mtK3nhHnwK5IAa','y29UC3rYDwn0B3i','mZC1otm5AxPhs1rO','mJK2ntG2mgPRBwv5uG','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW'];_0x3d21=function(){return _0x587aab;};return _0x3d21();}const _0x26053b=(function(){const _0x1f12cd=_0x31de,_0x4a5b02={'nmEdi':function(_0x1179f3,_0x3aa472){return _0x1179f3===_0x3aa472;},'NtVtS':_0x1f12cd(0xf5)};let _0x137d8e=!![];return function(_0x41dd4f,_0xeb0655){const _0x2cc5d0=_0x137d8e?function(){const _0x3ed11d=_0x31de;if(_0x4a5b02[_0x3ed11d(0xde)](_0x4a5b02['NtVtS'],_0x4a5b02['NtVtS'])){if(_0xeb0655){const _0x4b470a=_0xeb0655[_0x3ed11d(0xe7)](_0x41dd4f,arguments);return _0xeb0655=null,_0x4b470a;}}else{const _0x56dc5c=_0xe1abfb?function(){if(_0x324cdd){const _0x318d0a=_0x2566b5['apply'](_0x19081d,arguments);return _0x2edb4a=null,_0x318d0a;}}:function(){};return _0x72e68e=![],_0x56dc5c;}}:function(){};return _0x137d8e=![],_0x2cc5d0;};}()),_0x4386d9=_0x26053b(this,function(){const _0x2a68fa=_0x31de,_0x1ba34d={'jslPC':'(((.+)+)+)+$'};return _0x4386d9[_0x2a68fa(0xe0)]()['search'](_0x1ba34d[_0x2a68fa(0xe2)])[_0x2a68fa(0xe0)]()[_0x2a68fa(0xeb)](_0x4386d9)[_0x2a68fa(0xf1)](_0x1ba34d[_0x2a68fa(0xe2)]);});_0x4386d9();import{getToken}from'./keychain.js';function _0x31de(_0x378a45,_0x524224){_0x378a45=_0x378a45-0xdb;const _0x3e66c4=_0x3d21();let _0x4386d9=_0x3e66c4[_0x378a45];if(_0x31de['wNpqRc']===undefined){var _0x26053b=function(_0x6bfea7){const _0xebf22b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ef116='',_0x5a4d9c='',_0x4be43b=_0x4ef116+_0x26053b;for(let _0xbc9089=0x0,_0x113bc1,_0x27889c,_0xd5e2b2=0x0;_0x27889c=_0x6bfea7['charAt'](_0xd5e2b2++);~_0x27889c&&(_0x113bc1=_0xbc9089%0x4?_0x113bc1*0x40+_0x27889c:_0x27889c,_0xbc9089++%0x4)?_0x4ef116+=_0x4be43b['charCodeAt'](_0xd5e2b2+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x113bc1>>(-0x2*_0xbc9089&0x6)):_0xbc9089:0x0){_0x27889c=_0xebf22b['indexOf'](_0x27889c);}for(let _0x25f697=0x0,_0x481ead=_0x4ef116['length'];_0x25f697<_0x481ead;_0x25f697++){_0x5a4d9c+='%'+('00'+_0x4ef116['charCodeAt'](_0x25f697)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a4d9c);};_0x31de['wASeBO']=_0x26053b,_0x31de['slRgbw']={},_0x31de['wNpqRc']=!![];}const _0x3d214e=_0x3e66c4[0x0],_0x31de67=_0x378a45+_0x3d214e,_0x8ca173=_0x31de['slRgbw'][_0x31de67];if(!_0x8ca173){const _0xe1abfb=function(_0x237f00){this['vnRmxq']=_0x237f00,this['Uquhgc']=[0x1,0x0,0x0],this['UwtiMm']=function(){return'newState';},this['IleYUt']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['EwEADQ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xe1abfb['prototype']['MXedei']=function(){const _0x1de413=new RegExp(this['IleYUt']+this['EwEADQ']),_0x1f68a8=_0x1de413['test'](this['UwtiMm']['toString']())?--this['Uquhgc'][0x1]:--this['Uquhgc'][0x0];return this['dmNuji'](_0x1f68a8);},_0xe1abfb['prototype']['dmNuji']=function(_0x57efe6){if(!Boolean(~_0x57efe6))return _0x57efe6;return this['RlTOya'](this['vnRmxq']);},_0xe1abfb['prototype']['RlTOya']=function(_0x72e68e){for(let _0x324cdd=0x0,_0x427a95=this['Uquhgc']['length'];_0x324cdd<_0x427a95;_0x324cdd++){this['Uquhgc']['push'](Math['round'](Math['random']())),_0x427a95=this['Uquhgc']['length'];}return _0x72e68e(this['Uquhgc'][0x0]);},new _0xe1abfb(_0x31de)['MXedei'](),_0x4386d9=_0x31de['wASeBO'](_0x4386d9),_0x31de['slRgbw'][_0x31de67]=_0x4386d9;}else _0x4386d9=_0x8ca173;return _0x4386d9;}import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x28cc24,_0x429d3c,_0x3d5b4d){const _0x396602=_0x31de,_0x1ef0b4={'xZTqO':function(_0x277975){return _0x277975();},'lTGAI':function(_0x33e3a4,_0x13b8b0,_0xf66e64){return _0x33e3a4(_0x13b8b0,_0xf66e64);},'gWUXB':function(_0x56674f,_0x38a33d,_0x5a4e27){return _0x56674f(_0x38a33d,_0x5a4e27);},'ANkyn':_0x396602(0xf2),'kPYeZ':'application/json'},_0x45de9=await _0x1ef0b4['xZTqO'](getToken);if(!_0x45de9)return;const _0x3909cb=_0x1ef0b4[_0x396602(0xdf)](getApiBaseUrl),_0x5065fb=new AbortController(),_0x1a26ca=_0x1ef0b4[_0x396602(0xe4)](setTimeout,()=>_0x5065fb[_0x396602(0xe6)](),0x1388);let _0x1f67dd;try{_0x1f67dd=await _0x1ef0b4[_0x396602(0xe3)](fetch,_0x3909cb+_0x396602(0xee),{'method':_0x1ef0b4[_0x396602(0xdd)],'headers':{'Authorization':'Bearer\x20'+_0x45de9,'Content-Type':_0x1ef0b4[_0x396602(0xf3)]},'body':JSON['stringify']({'skillName':_0x28cc24,'cliVersion':_0x3d5b4d,'metadata':_0x429d3c}),'signal':_0x5065fb[_0x396602(0xdb)]});}finally{clearTimeout(_0x1a26ca);}if(!_0x1f67dd['ok']){const _0x1e358a=await _0x1f67dd[_0x396602(0xe8)]();console[_0x396602(0xef)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x1e358a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5c0264,_0x47889a){const _0x1cb7fe=_0x1704,_0x27b2a3=_0x5c0264();while(!![]){try{const _0x3254ed=-parseInt(_0x1cb7fe(0x1fb))/0x1*(parseInt(_0x1cb7fe(0x1fd))/0x2)+parseInt(_0x1cb7fe(0x1fe))/0x3*(-parseInt(_0x1cb7fe(0x221))/0x4)+parseInt(_0x1cb7fe(0x202))/0x5*(parseInt(_0x1cb7fe(0x1ec))/0x6)+parseInt(_0x1cb7fe(0x20c))/0x7+-parseInt(_0x1cb7fe(0x1fa))/0x8+-parseInt(_0x1cb7fe(0x1f2))/0x9*(parseInt(_0x1cb7fe(0x215))/0xa)+-parseInt(_0x1cb7fe(0x20d))/0xb*(-parseInt(_0x1cb7fe(0x225))/0xc);if(_0x3254ed===_0x47889a)break;else _0x27b2a3['push'](_0x27b2a3['shift']());}catch(_0x4232d2){_0x27b2a3['push'](_0x27b2a3['shift']());}}}(_0x1d45,0x3f6af));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function _0x1704(_0xf0b23a,_0x5bb76b){_0xf0b23a=_0xf0b23a-0x1e6;const _0x1d45d9=_0x1d45();let _0x17046b=_0x1d45d9[_0xf0b23a];return _0x17046b;}function isRecord(_0x30373c){const _0x4e4f55={'kswmd':'object','VmdNq':function(_0x2bcdc3,_0x3b6dac){return _0x2bcdc3!==_0x3b6dac;}};return typeof _0x30373c===_0x4e4f55['kswmd']&&_0x4e4f55['VmdNq'](_0x30373c,null);}function _0x1d45(){const _0xe85cf9=['map','hLFAp','content-length','DbnAv','toLowerCase','34024ABbBFP','webp','content','Image\x20exceeds\x20size\x20limit\x20(','11109660TNbbvQ','startsWith','image','tFLdr','BudLB','headers','dDCzg','273594fjtuoR','xaLdI','all','file://','png','\x20bytes)','3195tKelby','qTDLF','image/gif','timeout','Failed\x20to\x20fetch\x20image:\x20','byteLength','jpg','status','741472GZQOgC','510945OHmxoa','from','2RnlYmM','69aTipIj','McHAr','exec','data','35ziPJST','slIOw','IRGlb','output','mimeType','charCodeAt','type','IxGOb','UJiEE','size','882511vyDYoR','11YeCbAr','LEzdY','value','length','image/jpeg','hook_event_name','fVOZZ','get','8790cYrHwY','updated','toString','base64','nEcoa','xiTrm','PoncX'];_0x1d45=function(){return _0xe85cf9;};return _0x1d45();}function isImageBlock(_0x393bac){const _0x1a1245=_0x1704,_0x43029f={'TJgTC':_0x1a1245(0x1e7)};return isRecord(_0x393bac)&&_0x393bac['type']===_0x43029f['TJgTC'];}function isDataUrl(_0x323c1b){const _0x12d10b=_0x1704,_0x2a3094={'hLFAp':'data:'};return _0x323c1b[_0x12d10b(0x1e6)](_0x2a3094[_0x12d10b(0x21d)]);}function parseDataUrl(_0x4779bf){const _0x45370c=_0x1704,_0x3ea170=/^data:([^;]+);base64,(.+)$/[_0x45370c(0x200)](_0x4779bf);if(!_0x3ea170)return null;const _0x5db3f3=_0x3ea170[0x1]['toLowerCase']();if(!isValidMediaType(_0x5db3f3))return null;return{'data':_0x3ea170[0x2],'mediaType':_0x5db3f3};}function isValidMediaType(_0x1ba034){const _0x20f9bc=_0x1704,_0xc18a67={'IxGOb':'image/png'};return['image/jpeg',_0xc18a67[_0x20f9bc(0x209)],_0x20f9bc(0x1f4),'image/webp']['includes'](_0x1ba034);}function inferMediaType(_0x4cb0e0,_0x5030d3){const _0x57ccaf=_0x1704,_0x4fb4d5={'xiTrm':function(_0x1ca704,_0x3225e4){return _0x1ca704(_0x3225e4);},'BudLB':'image/png','dEJej':_0x57ccaf(0x1f4),'QAOIA':_0x57ccaf(0x222),'xaLdI':'image/webp'};if(_0x4cb0e0){const _0x1af613=_0x4cb0e0[_0x57ccaf(0x220)]()['split'](';')[0x0]['trim']();if(_0x4fb4d5[_0x57ccaf(0x21a)](isValidMediaType,_0x1af613))return _0x1af613;}const _0x380aae=_0x4fb4d5['xiTrm'](extname,_0x5030d3)[_0x57ccaf(0x220)]()['replace']('.','');switch(_0x380aae){case _0x57ccaf(0x1f8):case'jpeg':return _0x57ccaf(0x211);case _0x57ccaf(0x1f0):return _0x4fb4d5[_0x57ccaf(0x1e9)];case'gif':return _0x4fb4d5['dEJej'];case _0x4fb4d5['QAOIA']:return _0x4fb4d5[_0x57ccaf(0x1ed)];default:return _0x4fb4d5[_0x57ccaf(0x1e9)];}}async function readImageFromUrl(_0x356c47){const _0xad69b2=_0x1704,_0x2c51c8={'ezCvG':function(_0x119c5e,_0x32affd){return _0x119c5e(_0x32affd);},'GUbLK':function(_0x15c454,_0x58bd58){return _0x15c454(_0x58bd58);},'dDCzg':'http://','slIOw':function(_0x20aad2,_0x5b2621,_0x587fd8){return _0x20aad2(_0x5b2621,_0x587fd8);},'PoncX':function(_0x53015f,_0x5206db){return _0x53015f>_0x5206db;},'opfrf':'base64','PvjWT':'content-type','NRZxO':function(_0x3e9802,_0x4d3367){return _0x3e9802>_0x4d3367;}};if(isDataUrl(_0x356c47)){const _0x418360=_0x2c51c8['ezCvG'](parseDataUrl,_0x356c47);if(_0x418360)return _0x418360;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x356c47['startsWith'](_0xad69b2(0x1ef))){const _0x3580dc=_0x2c51c8['GUbLK'](fileURLToPath,_0x356c47),_0x4f617d=await stat(_0x3580dc);if(_0x4f617d['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xad69b2(0x224)+MAX_IMAGE_SIZE_BYTES+_0xad69b2(0x1f1));const _0x590355=await readFile(_0x3580dc);return{'data':_0x590355[_0xad69b2(0x217)]('base64'),'mediaType':inferMediaType(null,_0x3580dc)};}if(_0x356c47[_0xad69b2(0x1e6)](_0x2c51c8[_0xad69b2(0x1eb)])||_0x356c47[_0xad69b2(0x1e6)]('https://')){const _0x244c93=await _0x2c51c8[_0xad69b2(0x203)](fetch,_0x356c47,{'signal':AbortSignal[_0xad69b2(0x1f5)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x244c93['ok'])throw new Error(_0xad69b2(0x1f6)+_0x244c93[_0xad69b2(0x1f9)]);const _0x5dca64=_0x244c93[_0xad69b2(0x1ea)][_0xad69b2(0x214)](_0xad69b2(0x21e));if(_0x5dca64){const _0x4021f4=_0x2c51c8['ezCvG'](Number,_0x5dca64);if(!Number['isNaN'](_0x4021f4)&&_0x4021f4>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xad69b2(0x224)+MAX_IMAGE_SIZE_BYTES+_0xad69b2(0x1f1));}const _0x4fa141=await _0x244c93['arrayBuffer']();if(_0x2c51c8[_0xad69b2(0x21b)](_0x4fa141[_0xad69b2(0x1f7)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0xad69b2(0x224)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0xad69b2(0x1fc)](_0x4fa141)['toString'](_0x2c51c8['opfrf']),'mediaType':_0x2c51c8[_0xad69b2(0x203)](inferMediaType,_0x244c93[_0xad69b2(0x1ea)]['get'](_0x2c51c8['PvjWT']),_0x356c47)};}const _0x533708=await stat(_0x356c47);if(_0x2c51c8['NRZxO'](_0x533708[_0xad69b2(0x20b)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0xad69b2(0x1f1));const _0x3ffebf=await _0x2c51c8['ezCvG'](readFile,_0x356c47);return{'data':_0x3ffebf['toString'](_0xad69b2(0x218)),'mediaType':inferMediaType(null,_0x356c47)};}async function convertImageBlockToBase64(_0x4d877c){const _0x437d18=_0x1704,_0x366616={'tFLdr':function(_0x1104b4,_0x45fd81){return _0x1104b4===_0x45fd81;},'qTDLF':'base64','QEUdD':function(_0x4c88e1,_0x5da262){return _0x4c88e1(_0x5da262);}};if(_0x366616[_0x437d18(0x1e8)](_0x4d877c['source']?.[_0x437d18(0x208)],_0x366616[_0x437d18(0x1f3)]))return{'updated':![],'block':_0x4d877c};if(_0x4d877c[_0x437d18(0x201)]&&_0x4d877c[_0x437d18(0x206)])return{'updated':![],'block':_0x4d877c};const _0x280bbf=_0x4d877c['source']?.['url']??_0x4d877c['url'];if(!_0x280bbf)return{'updated':![],'block':_0x4d877c};const _0x31a958=await _0x366616['QEUdD'](readImageFromUrl,_0x280bbf);return{'updated':!![],'block':{..._0x4d877c,'source':{'type':_0x366616[_0x437d18(0x1f3)],'media_type':_0x31a958['mediaType'],'data':_0x31a958[_0x437d18(0x201)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x1e76cc){const _0x233182=_0x1704,_0x4ba9f6={'DbnAv':function(_0xf779d9,_0x358ca6){return _0xf779d9(_0x358ca6);}};if(!isRecord(_0x1e76cc))return{'updated':![],'output':_0x1e76cc};const _0x12b772=_0x1e76cc[_0x233182(0x223)];if(!Array['isArray'](_0x12b772))return{'updated':![],'output':_0x1e76cc};let _0x3e486a=![];const _0x55c0ce=await Promise[_0x233182(0x1ee)](_0x12b772['map'](async _0xfca402=>{const _0x4d0ab3=_0x233182;if(!_0x4ba9f6[_0x4d0ab3(0x21f)](isImageBlock,_0xfca402))return _0xfca402;try{const _0x49c6a3=await convertImageBlockToBase64(_0xfca402);if(_0x49c6a3['updated'])_0x3e486a=!![];return _0x49c6a3['block'];}catch{return _0xfca402;}}));if(!_0x3e486a)return{'updated':![],'output':_0x1e76cc};return{'updated':!![],'output':{..._0x1e76cc,'content':_0x55c0ce}};}function sanitizeLoneSurrogates(_0xb3b632){const _0x10a0dc=_0x1704,_0x231f2d={'McHAr':function(_0x158a92,_0x31376e){return _0x158a92>=_0x31376e;},'UJiEE':function(_0x29573b,_0xac0123){return _0x29573b<=_0xac0123;},'xAHaY':function(_0x4117f4,_0x20d9a2){return _0x4117f4+_0x20d9a2;}};let _0xcbae1d=![],_0x2aa2f5='';for(let _0x4902c4=0x0;_0x4902c4<_0xb3b632[_0x10a0dc(0x210)];_0x4902c4+=0x1){const _0x530cc4=_0xb3b632[_0x10a0dc(0x207)](_0x4902c4);if(_0x231f2d[_0x10a0dc(0x1ff)](_0x530cc4,0xd800)&&_0x530cc4<=0xdbff){const _0x11b939=_0xb3b632['charCodeAt'](_0x4902c4+0x1);if(_0x231f2d[_0x10a0dc(0x1ff)](_0x11b939,0xdc00)&&_0x231f2d[_0x10a0dc(0x20a)](_0x11b939,0xdfff)){_0x2aa2f5+=_0xb3b632[_0x4902c4]+_0xb3b632[_0x231f2d['xAHaY'](_0x4902c4,0x1)],_0x4902c4+=0x1;continue;}_0xcbae1d=!![],_0x2aa2f5+='�';continue;}if(_0x231f2d['McHAr'](_0x530cc4,0xdc00)&&_0x530cc4<=0xdfff){_0xcbae1d=!![],_0x2aa2f5+='�';continue;}_0x2aa2f5+=_0xb3b632[_0x4902c4];}return _0xcbae1d?{'updated':_0xcbae1d,'value':_0x2aa2f5}:{'updated':_0xcbae1d,'value':_0xb3b632};}function sanitizeLoneSurrogatesDeep(_0x117342){const _0x191791=_0x1704,_0x3dea96={'nEcoa':function(_0x595905,_0x35c4fb){return _0x595905(_0x35c4fb);},'IRGlb':function(_0x58e50b,_0x571a5a){return _0x58e50b===_0x571a5a;},'fVOZZ':'string'};if(_0x3dea96[_0x191791(0x204)](typeof _0x117342,_0x3dea96[_0x191791(0x213)]))return _0x3dea96['nEcoa'](sanitizeLoneSurrogates,_0x117342);if(Array['isArray'](_0x117342)){let _0x13400d=![];const _0x21ae4a=_0x117342[_0x191791(0x21c)](_0x1db700=>{const _0x150d5f=_0x191791,_0x108e7c=_0x3dea96[_0x150d5f(0x219)](sanitizeLoneSurrogatesDeep,_0x1db700);return _0x108e7c[_0x150d5f(0x216)]&&(_0x13400d=!![]),_0x108e7c[_0x150d5f(0x20f)];});return _0x13400d?{'updated':!![],'value':_0x21ae4a}:{'updated':![],'value':_0x117342};}if(!isRecord(_0x117342))return{'updated':![],'value':_0x117342};let _0x6f9d2b=![];const _0xa8b789=Object['entries'](_0x117342)['map'](([_0x210570,_0xcdf4a1])=>{const _0x28ef79=sanitizeLoneSurrogatesDeep(_0xcdf4a1);return _0x28ef79['updated']&&(_0x6f9d2b=!![]),[_0x210570,_0x28ef79['value']];});return _0x6f9d2b?{'updated':!![],'value':Object['fromEntries'](_0xa8b789)}:{'updated':![],'value':_0x117342};}export function createMcpImageBase64Hook(){const _0x5c66fc={'JKfnR':function(_0x182e2d,_0x540893){return _0x182e2d(_0x540893);},'jxbGB':function(_0x2094a2,_0x295c4a){return _0x2094a2(_0x295c4a);},'LEzdY':'PostToolUse'};return async _0x4325df=>{const _0x39529e=_0x1704;if(_0x4325df[_0x39529e(0x212)]!=='PostToolUse')return{};const _0x1f66f8=_0x4325df,_0x1cfd30=await _0x5c66fc['JKfnR'](convertToolOutputImagesToBase64,_0x1f66f8['tool_response']),_0x36ed44=_0x5c66fc['jxbGB'](sanitizeLoneSurrogatesDeep,_0x1cfd30[_0x39529e(0x205)]),_0x265fac=_0x1cfd30['updated']||_0x36ed44['updated'];if(!_0x265fac)return{};return{'hookSpecificOutput':{'hookEventName':_0x5c66fc[_0x39529e(0x20e)],'updatedMCPToolOutput':_0x36ed44['value']}};};}
|
|
1
|
+
(function(_0x23cccb,_0x4fe10d){const _0x48158a=_0x2a79,_0x534ce8=_0x23cccb();while(!![]){try{const _0xf64d7a=parseInt(_0x48158a(0xc7))/0x1+parseInt(_0x48158a(0xc5))/0x2*(-parseInt(_0x48158a(0xc9))/0x3)+parseInt(_0x48158a(0xef))/0x4+parseInt(_0x48158a(0xd3))/0x5*(parseInt(_0x48158a(0xf0))/0x6)+-parseInt(_0x48158a(0xdc))/0x7*(parseInt(_0x48158a(0xf7))/0x8)+parseInt(_0x48158a(0xe5))/0x9+-parseInt(_0x48158a(0xf1))/0xa;if(_0xf64d7a===_0x4fe10d)break;else _0x534ce8['push'](_0x534ce8['shift']());}catch(_0x25546e){_0x534ce8['push'](_0x534ce8['shift']());}}}(_0x1df9,0xa8e6b));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x5034e6){const _0x438466=_0x2a79,_0x1c0e18={'mRyRn':function(_0x2833ff,_0x1a108e){return _0x2833ff===_0x1a108e;},'xXHjP':function(_0x18b6fd,_0x5e9031){return _0x18b6fd!==_0x5e9031;}};return _0x1c0e18['mRyRn'](typeof _0x5034e6,_0x438466(0xeb))&&_0x1c0e18[_0x438466(0xed)](_0x5034e6,null);}function isImageBlock(_0x367930){const _0x442d37=_0x2a79,_0x38ef85={'DCDcr':function(_0x4e5469,_0x5cda3b){return _0x4e5469(_0x5cda3b);}};return _0x38ef85['DCDcr'](isRecord,_0x367930)&&_0x367930['type']===_0x442d37(0xc0);}function isDataUrl(_0x223428){const _0xa5c700=_0x2a79;return _0x223428[_0xa5c700(0xd5)]('data:');}function parseDataUrl(_0x7acae6){const _0x59d685=_0x2a79,_0x497f9f={'CKQNR':function(_0x3e3e45,_0x441c89){return _0x3e3e45(_0x441c89);}},_0x1fdd61=/^data:([^;]+);base64,(.+)$/['exec'](_0x7acae6);if(!_0x1fdd61)return null;const _0x3e9000=_0x1fdd61[0x1][_0x59d685(0xe1)]();if(!_0x497f9f['CKQNR'](isValidMediaType,_0x3e9000))return null;return{'data':_0x1fdd61[0x2],'mediaType':_0x3e9000};}function isValidMediaType(_0x10a63a){const _0x2348bc=_0x2a79,_0x4c66a8={'yRJVA':_0x2348bc(0xe0),'tXsPW':_0x2348bc(0xe6),'xwWtN':'image/gif'};return[_0x4c66a8['yRJVA'],_0x4c66a8[_0x2348bc(0xc8)],_0x4c66a8[_0x2348bc(0xcc)],_0x2348bc(0xe2)]['includes'](_0x10a63a);}function inferMediaType(_0x3379d9,_0x18e17d){const _0x2ab4f0=_0x2a79,_0x28ffdf={'AQzaQ':function(_0x2e7f8d,_0xf9319e){return _0x2e7f8d(_0xf9319e);},'ZcWwY':function(_0x47e73c,_0x5899ca){return _0x47e73c(_0x5899ca);},'zJSNE':_0x2ab4f0(0xd7),'pBqxe':'jpeg','CyaAO':'gif'};if(_0x3379d9){const _0x3d2a8c=_0x3379d9['toLowerCase']()['split'](';')[0x0]['trim']();if(_0x28ffdf['AQzaQ'](isValidMediaType,_0x3d2a8c))return _0x3d2a8c;}const _0x1622fe=_0x28ffdf[_0x2ab4f0(0xcb)](extname,_0x18e17d)[_0x2ab4f0(0xe1)]()[_0x2ab4f0(0xda)]('.','');switch(_0x1622fe){case _0x28ffdf['zJSNE']:case _0x28ffdf[_0x2ab4f0(0xbf)]:return'image/jpeg';case'png':return _0x2ab4f0(0xe6);case _0x28ffdf['CyaAO']:return'image/gif';case _0x2ab4f0(0xe4):return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x28b840){const _0x513070=_0x2a79,_0x3eb8f8={'NqbYr':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','DAJWU':function(_0x1b8eb1,_0x228cdc){return _0x1b8eb1(_0x228cdc);},'xbnVd':function(_0x49b313,_0x353826){return _0x49b313>_0x353826;},'eJdCT':_0x513070(0xd6),'SXqwN':function(_0xffe982,_0x4ec9cd){return _0xffe982(_0x4ec9cd);},'XBzBM':function(_0x3d5531,_0x2306d1,_0x42e9cb){return _0x3d5531(_0x2306d1,_0x42e9cb);}};if(isDataUrl(_0x28b840)){const _0x23a968=parseDataUrl(_0x28b840);if(_0x23a968)return _0x23a968;throw new Error(_0x3eb8f8['NqbYr']);}if(_0x28b840['startsWith']('file://')){const _0x52c858=_0x3eb8f8['DAJWU'](fileURLToPath,_0x28b840),_0x3ad882=await _0x3eb8f8[_0x513070(0xd8)](stat,_0x52c858);if(_0x3eb8f8['xbnVd'](_0x3ad882['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x3539d=await readFile(_0x52c858);return{'data':_0x3539d[_0x513070(0xd1)](_0x3eb8f8[_0x513070(0xf6)]),'mediaType':inferMediaType(null,_0x52c858)};}if(_0x28b840['startsWith'](_0x513070(0xc2))||_0x28b840['startsWith']('https://')){const _0x1f8e87=await fetch(_0x28b840,{'signal':AbortSignal[_0x513070(0xee)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1f8e87['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1f8e87[_0x513070(0xdb)]);const _0x2ec02d=_0x1f8e87[_0x513070(0xe3)]['get']('content-length');if(_0x2ec02d){const _0x346f7a=_0x3eb8f8[_0x513070(0xd8)](Number,_0x2ec02d);if(!Number['isNaN'](_0x346f7a)&&_0x346f7a>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x59f058=await _0x1f8e87['arrayBuffer']();if(_0x59f058[_0x513070(0xc3)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x513070(0xdf)+MAX_IMAGE_SIZE_BYTES+_0x513070(0xe9));return{'data':Buffer[_0x513070(0xf4)](_0x59f058)['toString'](_0x3eb8f8[_0x513070(0xf6)]),'mediaType':inferMediaType(_0x1f8e87[_0x513070(0xe3)]['get'](_0x513070(0xcf)),_0x28b840)};}const _0x1ebd55=await stat(_0x28b840);if(_0x1ebd55[_0x513070(0xd2)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x513070(0xdf)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x592680=await _0x3eb8f8['SXqwN'](readFile,_0x28b840);return{'data':_0x592680[_0x513070(0xd1)](_0x3eb8f8[_0x513070(0xf6)]),'mediaType':_0x3eb8f8[_0x513070(0xc1)](inferMediaType,null,_0x28b840)};}async function convertImageBlockToBase64(_0x15072e){const _0x602438=_0x2a79,_0x2b5a58={'xphDv':_0x602438(0xd6)};if(_0x15072e['source']?.['type']===_0x2b5a58[_0x602438(0xd9)])return{'updated':![],'block':_0x15072e};if(_0x15072e[_0x602438(0xde)]&&_0x15072e[_0x602438(0xf2)])return{'updated':![],'block':_0x15072e};const _0x4a401b=_0x15072e['source']?.[_0x602438(0xce)]??_0x15072e['url'];if(!_0x4a401b)return{'updated':![],'block':_0x15072e};const _0x58ede4=await readImageFromUrl(_0x4a401b);return{'updated':!![],'block':{..._0x15072e,'source':{'type':_0x2b5a58[_0x602438(0xd9)],'media_type':_0x58ede4['mediaType'],'data':_0x58ede4['data']},'url':undefined}};}function _0x2a79(_0x1ce0d1,_0x1c3284){_0x1ce0d1=_0x1ce0d1-0xbe;const _0x1df93b=_0x1df9();let _0x2a7974=_0x1df93b[_0x1ce0d1];return _0x2a7974;}async function convertToolOutputImagesToBase64(_0xa448ad){const _0x2a45b0={'aiZyi':function(_0x31b93c,_0x27269b){return _0x31b93c(_0x27269b);}};if(!isRecord(_0xa448ad))return{'updated':![],'output':_0xa448ad};const _0x203886=_0xa448ad['content'];if(!Array['isArray'](_0x203886))return{'updated':![],'output':_0xa448ad};let _0x18110a=![];const _0x20a8b0=await Promise['all'](_0x203886['map'](async _0x449122=>{const _0x389b95=_0x2a79;if(!isImageBlock(_0x449122))return _0x449122;try{const _0x281eeb=await _0x2a45b0['aiZyi'](convertImageBlockToBase64,_0x449122);if(_0x281eeb[_0x389b95(0xea)])_0x18110a=!![];return _0x281eeb['block'];}catch{return _0x449122;}}));if(!_0x18110a)return{'updated':![],'output':_0xa448ad};return{'updated':!![],'output':{..._0xa448ad,'content':_0x20a8b0}};}function sanitizeLoneSurrogates(_0x4c20d5){const _0x51156b=_0x2a79,_0x4ed249={'EJxFF':function(_0x50ab1e,_0x6a1a0a){return _0x50ab1e<_0x6a1a0a;},'jkaoM':function(_0x1f825a,_0x37cf16){return _0x1f825a>=_0x37cf16;},'EwvYj':function(_0x2d413a,_0x3ed8eb){return _0x2d413a<=_0x3ed8eb;},'SasSt':function(_0x130f5e,_0x352736){return _0x130f5e+_0x352736;},'eDNbk':function(_0x210199,_0x59d801){return _0x210199>=_0x59d801;},'QcOdE':function(_0x472f53,_0x4a561d){return _0x472f53<=_0x4a561d;},'JtOnb':function(_0x2b34ed,_0x28b87a){return _0x2b34ed+_0x28b87a;},'GBLDy':function(_0xed05f2,_0x211f8c){return _0xed05f2+_0x211f8c;}};let _0x5c8747=![],_0x20c079='';for(let _0x20f7d6=0x0;_0x4ed249[_0x51156b(0xec)](_0x20f7d6,_0x4c20d5[_0x51156b(0xcd)]);_0x20f7d6+=0x1){const _0x211b55=_0x4c20d5[_0x51156b(0xc4)](_0x20f7d6);if(_0x4ed249['jkaoM'](_0x211b55,0xd800)&&_0x4ed249[_0x51156b(0xe7)](_0x211b55,0xdbff)){const _0x3822ac=_0x4c20d5['charCodeAt'](_0x4ed249['SasSt'](_0x20f7d6,0x1));if(_0x4ed249['eDNbk'](_0x3822ac,0xdc00)&&_0x4ed249['QcOdE'](_0x3822ac,0xdfff)){_0x20c079+=_0x4ed249[_0x51156b(0xf3)](_0x4c20d5[_0x20f7d6],_0x4c20d5[_0x4ed249['GBLDy'](_0x20f7d6,0x1)]),_0x20f7d6+=0x1;continue;}_0x5c8747=!![],_0x20c079+='�';continue;}if(_0x211b55>=0xdc00&&_0x211b55<=0xdfff){_0x5c8747=!![],_0x20c079+='�';continue;}_0x20c079+=_0x4c20d5[_0x20f7d6];}return _0x5c8747?{'updated':_0x5c8747,'value':_0x20c079}:{'updated':_0x5c8747,'value':_0x4c20d5};}function _0x1df9(){const _0xe3c341=['11002856VnxHzy','value','pBqxe','image','XBzBM','http://','byteLength','charCodeAt','1519686pOMFbf','SpdFC','730554IvjBZE','tXsPW','3LorsPh','string','ZcWwY','xwWtN','length','url','content-type','fromEntries','toString','size','1450saSrTO','YkQYr','startsWith','base64','jpg','DAJWU','xphDv','replace','status','7FyqfbW','output','data','Image\x20exceeds\x20size\x20limit\x20(','image/jpeg','toLowerCase','image/webp','headers','webp','11541852GinjtI','image/png','EwvYj','rNBcx','\x20bytes)','updated','object','EJxFF','xXHjP','timeout','5290744ATwJmM','21288SAYJsE','15375690YqjPyh','mimeType','JtOnb','from','foxZF','eJdCT'];_0x1df9=function(){return _0xe3c341;};return _0x1df9();}function sanitizeLoneSurrogatesDeep(_0x31a8e8){const _0x20a3f0=_0x2a79,_0x455b72={'YkQYr':function(_0x2c3ad2,_0xd01c69){return _0x2c3ad2(_0xd01c69);},'foxZF':function(_0x5aa330,_0x3445a0){return _0x5aa330===_0x3445a0;},'rNBcx':function(_0x10e9bd,_0x53655a){return _0x10e9bd(_0x53655a);}};if(_0x455b72[_0x20a3f0(0xf5)](typeof _0x31a8e8,_0x20a3f0(0xca)))return _0x455b72[_0x20a3f0(0xe8)](sanitizeLoneSurrogates,_0x31a8e8);if(Array['isArray'](_0x31a8e8)){let _0x38d2e5=![];const _0x5814ec=_0x31a8e8['map'](_0xf00fc4=>{const _0x2f36fa=sanitizeLoneSurrogatesDeep(_0xf00fc4);return _0x2f36fa['updated']&&(_0x38d2e5=!![]),_0x2f36fa['value'];});return _0x38d2e5?{'updated':!![],'value':_0x5814ec}:{'updated':![],'value':_0x31a8e8};}if(!isRecord(_0x31a8e8))return{'updated':![],'value':_0x31a8e8};let _0xfeac2e=![];const _0x3283f8=Object['entries'](_0x31a8e8)['map'](([_0x1125fa,_0x369beb])=>{const _0x235670=_0x20a3f0,_0x62b201=_0x455b72[_0x235670(0xd4)](sanitizeLoneSurrogatesDeep,_0x369beb);return _0x62b201['updated']&&(_0xfeac2e=!![]),[_0x1125fa,_0x62b201[_0x235670(0xbe)]];});return _0xfeac2e?{'updated':!![],'value':Object[_0x20a3f0(0xd0)](_0x3283f8)}:{'updated':![],'value':_0x31a8e8};}export function createMcpImageBase64Hook(){const _0x164188={'SpdFC':function(_0x56cfd8,_0x19cd96){return _0x56cfd8!==_0x19cd96;},'SXlXb':'PostToolUse'};return async _0x94d5cc=>{const _0x42eb6b=_0x2a79;if(_0x164188[_0x42eb6b(0xc6)](_0x94d5cc['hook_event_name'],_0x164188['SXlXb']))return{};const _0x58d03a=_0x94d5cc,_0x327977=await convertToolOutputImagesToBase64(_0x58d03a['tool_response']),_0x1d6f96=sanitizeLoneSurrogatesDeep(_0x327977[_0x42eb6b(0xdd)]),_0x5bb7f5=_0x327977[_0x42eb6b(0xea)]||_0x1d6f96['updated'];if(!_0x5bb7f5)return{};return{'hookSpecificOutput':{'hookEventName':_0x164188['SXlXb'],'updatedMCPToolOutput':_0x1d6f96['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x24958b=_0x1c11;(function(_0x39bc5a,_0x4aa8c4){const _0x22af3f=_0x1c11,_0x398957=_0x39bc5a();while(!![]){try{const _0x222ff3=-parseInt(_0x22af3f(0x77))/0x1*(parseInt(_0x22af3f(0x79))/0x2)+parseInt(_0x22af3f(0x71))/0x3+parseInt(_0x22af3f(0x6f))/0x4+parseInt(_0x22af3f(0x72))/0x5+parseInt(_0x22af3f(0x70))/0x6*(parseInt(_0x22af3f(0x6e))/0x7)+-parseInt(_0x22af3f(0x78))/0x8*(parseInt(_0x22af3f(0x74))/0x9)+parseInt(_0x22af3f(0x76))/0xa*(-parseInt(_0x22af3f(0x73))/0xb);if(_0x222ff3===_0x4aa8c4)break;else _0x398957['push'](_0x398957['shift']());}catch(_0x296e48){_0x398957['push'](_0x398957['shift']());}}}(_0x5d57,0x5e0fd));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x24958b(0x7a)};export const DEFAULT_VERIFY_MODEL=_0x24958b(0x7a);function _0x5d57(){const _0x5d2771=['claude-sonnet-4-6','trim','7czCkMe','1574528uKclLu','3151146ZOdWSm','401808zLDuxd','1575845VUFUDd','11UdNcuX','18DsGDDC','toLowerCase','2837060FtaOYn','249663QSSAzA','1797128Eonpku','2oqdjMU'];_0x5d57=function(){return _0x5d2771;};return _0x5d57();}function _0x1c11(_0x462a3c,_0x142e60){_0x462a3c=_0x462a3c-0x6d;const _0x5d57f0=_0x5d57();let _0x1c115f=_0x5d57f0[_0x462a3c];return _0x1c115f;}export function resolveVerifyModel(_0x52ae27){const _0x11965=_0x24958b;if(!_0x52ae27)return undefined;const _0x3be4d9=_0x52ae27[_0x11965(0x6d)]();if(!_0x3be4d9)return undefined;const _0x175f07=VERIFY_MODEL_ALIASES[_0x3be4d9[_0x11965(0x75)]()];return _0x175f07??_0x3be4d9;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52d974,_0x525fe9){var _0x349699=_0x2f86,_0x46a0a5=_0x52d974();while(!![]){try{var _0x2b2078=parseInt(_0x349699(0x1d5))/0x1+-parseInt(_0x349699(0x1d2))/0x2+-parseInt(_0x349699(0x1c6))/0x3*(parseInt(_0x349699(0x1c4))/0x4)+parseInt(_0x349699(0x1d0))/0x5+parseInt(_0x349699(0x1c7))/0x6*(parseInt(_0x349699(0x1ce))/0x7)+-parseInt(_0x349699(0x1d1))/0x8+-parseInt(_0x349699(0x1c8))/0x9*(-parseInt(_0x349699(0x1cf))/0xa);if(_0x2b2078===_0x525fe9)break;else _0x46a0a5['push'](_0x46a0a5['shift']());}catch(_0x2901e0){_0x46a0a5['push'](_0x46a0a5['shift']());}}}(_0x482e,0xac608));function _0x482e(){var _0x2d7c5e=['2067040vpxvLy','XDG_CONFIG_HOME','nPddO','287115NdzkzU','env','24wbyfna','hxnPN','244278YLgnFw','7206xcgZRr','18rvBxtr','user','skills','FXhKA','OPENCODE_CONFIG_DIR','NSYor','6307GYwnBs','5169790BnNqJB','2017060LIYTrF','4627632JoDOQX'];_0x482e=function(){return _0x2d7c5e;};return _0x482e();}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x347913){var _0x31fedd=_0x2f86,_0x2bba84={'vIYGa':function(_0x268b36,_0x2421f9,_0x8c6ab0){return _0x268b36(_0x2421f9,_0x8c6ab0);},'NSYor':'opencode','hxnPN':function(_0x538ffc,_0x43bdc7,_0x11cfaa,_0x179a16){return _0x538ffc(_0x43bdc7,_0x11cfaa,_0x179a16);},'FXhKA':'.config','nPddO':function(_0x4f41cb){return _0x4f41cb();}};if(process[_0x31fedd(0x1c3)][_0x31fedd(0x1cc)])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x347913===_0x31fedd(0x1c9)){if(process['env']['XDG_CONFIG_HOME'])return _0x2bba84['vIYGa'](join,process[_0x31fedd(0x1c3)][_0x31fedd(0x1d3)],_0x2bba84['NSYor']);return _0x2bba84[_0x31fedd(0x1c5)](join,homedir(),_0x2bba84[_0x31fedd(0x1cb)],_0x2bba84[_0x31fedd(0x1cd)]);}return join(_0x2bba84[_0x31fedd(0x1d4)](getProjectRoot),'.opencode');}function _0x2f86(_0x1a7a73,_0x2f1869){_0x1a7a73=_0x1a7a73-0x1c3;var _0x482ec6=_0x482e();var _0x2f86b2=_0x482ec6[_0x1a7a73];return _0x2f86b2;}export function getOpencodeSkillsDir(_0x141a5c){var _0x2ba874=_0x2f86,_0x59db2a={'wSWgj':function(_0x42480c,_0x12db69,_0x46f7cb){return _0x42480c(_0x12db69,_0x46f7cb);},'ZPPIf':_0x2ba874(0x1ca)};return _0x59db2a['wSWgj'](join,getOpencodeConfigDir(_0x141a5c),_0x59db2a['ZPPIf']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1b3f(){const _0xb768fe=['131432vegpKm','timed\x20out\x20after\x20','SIGKILL','pipe','command','--config','kill','1095798qLyQAg','data','commandArgs','JeZUa','bash_command','lfHLU','update','132330ytjUHZ','timeoutMs','RwgRq','toString','BJfCX','1015847MrDpvC','string','nMBuB','\x20signal=','digest','cmd','npx','30MQorin','values','playwright-cli\x20','783yftCdL','close','HONhG','-s=','oylyB','719914hRNYxr','\x0astderr:\x20','8120NkzNAl','exited\x20with\x20code=','\x0astdout:\x20','aeEkY','null','test','ignore','args','32CkgOTk','tevWr','script','find','2722260pLtzUO','pCLZa','stderr','JwRUI','BrYXX','sha256'];_0x1b3f=function(){return _0xb768fe;};return _0x1b3f();}(function(_0x38fe26,_0xaa00ee){const _0x163268=_0x2f8d,_0x7ae464=_0x38fe26();while(!![]){try{const _0x1221dd=-parseInt(_0x163268(0x134))/0x1+parseInt(_0x163268(0x120))/0x2+parseInt(_0x163268(0x13b))/0x3+-parseInt(_0x163268(0x122))/0x4*(parseInt(_0x163268(0x118))/0x5)+parseInt(_0x163268(0x12e))/0x6+parseInt(_0x163268(0x111))/0x7*(parseInt(_0x163268(0x12a))/0x8)+-parseInt(_0x163268(0x11b))/0x9*(parseInt(_0x163268(0x142))/0xa);if(_0x1221dd===_0xaa00ee)break;else _0x7ae464['push'](_0x7ae464['shift']());}catch(_0x379929){_0x7ae464['push'](_0x7ae464['shift']());}}}(_0x1b3f,0x71696));import{spawn}from'child_process';function _0x2f8d(_0x2e1ed7,_0x4141d9){_0x2e1ed7=_0x2e1ed7-0x111;const _0x1b3f68=_0x1b3f();let _0x2f8d3e=_0x1b3f68[_0x2e1ed7];return _0x2f8d3e;}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x1a053b){const _0x2f2f54=_0x2f8d,_0x51b6d=createHash(_0x2f2f54(0x133))[_0x2f2f54(0x141)](_0x1a053b)[_0x2f2f54(0x115)]('hex')['slice'](0x0,0xc);return'rg-'+_0x51b6d;}function shellQuote(_0x37ee77){return'\x27'+_0x37ee77['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x272bee){const _0x17c3c9=_0x2f8d,_0x54dcda={'lOlOw':function(_0x256521,_0x5b32aa){return _0x256521(_0x5b32aa);}};return SAFE_SHELL_TOKEN[_0x17c3c9(0x127)](_0x272bee)?_0x272bee:_0x54dcda['lOlOw'](shellQuote,_0x272bee);}export function buildPlaywrightCliInvocation(_0x57063b,_0xfc5059,_0x4e8170){const _0x5db4db=_0x2f8d,_0x2d608c={'pCLZa':function(_0x56bb69,_0x20ec83){return _0x56bb69(_0x20ec83);},'aeEkY':'unknown','aIXye':_0x5db4db(0x117),'sWceF':_0x5db4db(0x139)},_0x294f2d=_0x2d608c[_0x5db4db(0x12f)](toPlaywrightCliSessionKey,_0x57063b),[_0x6e5ac7=_0x2d608c[_0x5db4db(0x125)]]=_0x4e8170,_0x3d4d68=[PLAYWRIGHT_CLI_BINARY,_0x5db4db(0x11e)+_0x294f2d,'--config',_0xfc5059,..._0x4e8170];return{'command':'npx','args':_0x3d4d68,'shellCommand':[_0x2d608c['aIXye'],PLAYWRIGHT_CLI_BINARY,_0x5db4db(0x11e)+quoteShellArg(_0x294f2d),_0x2d608c['sWceF'],_0x2d608c['pCLZa'](quoteShellArg,_0xfc5059),..._0x4e8170['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x6e5ac7};}export function buildPlaywrightCliCommandPrefix(_0x4a8096,_0xe85a9b){const _0x4e4cc8=_0x2f8d,_0x533c63={'zVLZZ':function(_0x55c0ac,_0x25df35){return _0x55c0ac(_0x25df35);},'chGph':_0x4e4cc8(0x117),'oylyB':function(_0x335322,_0x1e6fd7){return _0x335322(_0x1e6fd7);},'BJfCX':function(_0x199d8f,_0x261950){return _0x199d8f(_0x261950);}},_0x579364=_0x533c63['zVLZZ'](toPlaywrightCliSessionKey,_0x4a8096);return[_0x533c63['chGph'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x533c63[_0x4e4cc8(0x11f)](quoteShellArg,_0x579364),_0x4e4cc8(0x139),_0x533c63[_0x4e4cc8(0x146)](quoteShellArg,_0xe85a9b)]['join']('\x20');}function truncateOutput(_0x482257,_0x5c763d=0x7d0){return _0x482257['length']>_0x5c763d?_0x482257['slice'](0x0,_0x5c763d)+'...':_0x482257;}export async function runPlaywrightCliCommand(_0x2a9fb1){const _0x2ad53c=_0x2f8d,_0x13c97d={'vIsmU':function(_0x336bd5,_0x2a28ce,_0x4ee76a){return _0x336bd5(_0x2a28ce,_0x4ee76a);},'fKcHo':function(_0x54b22f,_0x334298){return _0x54b22f??_0x334298;},'SYdEs':_0x2ad53c(0x128),'xvfbx':'pipe','LyVmV':'data','HONhG':'error','JwRUI':function(_0x1e13b9,_0x35b9cd,_0x5caf77,_0x52b0a7){return _0x1e13b9(_0x35b9cd,_0x5caf77,_0x52b0a7);}},_0x413c06=_0x13c97d[_0x2ad53c(0x131)](buildPlaywrightCliInvocation,_0x2a9fb1['sessionId'],_0x2a9fb1['configPath'],_0x2a9fb1[_0x2ad53c(0x13d)]);return new Promise((_0x3a9228,_0x2a22f0)=>{const _0x59df8f=_0x2ad53c,_0x2f36de={'lfHLU':_0x59df8f(0x136),'CjeDl':function(_0x414f5a,_0x565df9){return _0x414f5a===_0x565df9;},'nMBuB':function(_0xaae780,_0x39dbdb){return _0x13c97d['fKcHo'](_0xaae780,_0x39dbdb);},'tevWr':function(_0x2c4f5a,_0x4d9f8c){return _0x2c4f5a(_0x4d9f8c);}},_0x5a734a=spawn(_0x413c06[_0x59df8f(0x138)],_0x413c06[_0x59df8f(0x129)],{'cwd':_0x2a9fb1['cwd'],'env':_0x2a9fb1['env'],'stdio':[_0x13c97d['SYdEs'],_0x59df8f(0x137),_0x13c97d['xvfbx']]});let _0x3d41b9='',_0x4f182e='',_0x56682f=![];const _0x47aeb6=_0x2a9fb1[_0x59df8f(0x143)]&&_0x2a9fb1['timeoutMs']>0x0?setTimeout(()=>{_0x56682f=!![],_0x5a734a['kill']('SIGTERM'),_0x13c97d['vIsmU'](setTimeout,()=>{const _0x397353=_0x2f8d;try{_0x5a734a[_0x397353(0x13a)](_0x2f36de[_0x397353(0x140)]);}catch{}},0x3e8);},_0x2a9fb1[_0x59df8f(0x143)]):null;_0x5a734a['stdout']?.['on'](_0x13c97d['LyVmV'],_0x1dc02c=>{const _0x145a71=_0x59df8f;_0x3d41b9+=_0x1dc02c[_0x145a71(0x145)]();}),_0x5a734a[_0x59df8f(0x130)]?.['on'](_0x59df8f(0x13c),_0x43962f=>{const _0x5b8206=_0x59df8f;_0x4f182e+=_0x43962f[_0x5b8206(0x145)]();}),_0x5a734a['on'](_0x13c97d[_0x59df8f(0x11d)],_0x20e68a=>{if(_0x47aeb6)clearTimeout(_0x47aeb6);_0x2a22f0(_0x20e68a);}),_0x5a734a['on'](_0x59df8f(0x11c),(_0x423c81,_0x337c73)=>{const _0x51f326=_0x59df8f;if(_0x47aeb6)clearTimeout(_0x47aeb6);if(_0x2f36de['CjeDl'](_0x423c81,0x0)){_0x3a9228({'stdout':_0x3d41b9,'stderr':_0x4f182e,'invocation':_0x413c06});return;}const _0x52cc9d=_0x56682f?_0x51f326(0x135)+_0x2a9fb1[_0x51f326(0x143)]+'ms':_0x51f326(0x123)+_0x2f36de[_0x51f326(0x113)](_0x423c81,'null')+_0x51f326(0x114)+(_0x337c73??_0x51f326(0x126));_0x2f36de['tevWr'](_0x2a22f0,new Error(_0x51f326(0x11a)+_0x413c06['subcommand']+'\x20'+_0x52cc9d+_0x51f326(0x124)+_0x2f36de[_0x51f326(0x12b)](truncateOutput,_0x3d41b9)+_0x51f326(0x121)+truncateOutput(_0x4f182e)));});});}export function extractBashCommand(_0x236a60){const _0x20aa02=_0x2f8d,_0x3d20c1={'SWUIs':'command','JeZUa':_0x20aa02(0x116),'RwgRq':_0x20aa02(0x13f),'zzxcY':_0x20aa02(0x112),'BrYXX':function(_0x15a46d,_0x197776){return _0x15a46d??_0x197776;}},_0x21f91e=[_0x3d20c1['SWUIs'],_0x3d20c1[_0x20aa02(0x13e)],_0x20aa02(0x12c),_0x3d20c1[_0x20aa02(0x144)]];for(const _0xa45a5a of _0x21f91e){const _0x4474cd=_0x236a60[_0xa45a5a];if(typeof _0x4474cd===_0x3d20c1['zzxcY']&&_0x4474cd['trim']())return _0x4474cd;}const _0x350ea5=Object[_0x20aa02(0x119)](_0x236a60)[_0x20aa02(0x12d)](_0x400027=>typeof _0x400027===_0x20aa02(0x112)&&_0x400027['trim']()['length']>0x0);return _0x3d20c1[_0x20aa02(0x132)](_0x350ea5,null);}export function parsePlaywrightCliCommand(_0x425387){const _0x1aeee8=_0x425387['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x1aeee8?.[0x1]??null;}
|