@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.a70fc60-4

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.
Files changed (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -1
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -1
  63. package/build/commands/utils/resolveProfileUrl.js +1 -1
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +1 -1
  78. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x5822(_0x214fef,_0xb9175f){_0x214fef=_0x214fef-0x1bb;const _0x145c0e=_0x145c();let _0x582271=_0x145c0e[_0x214fef];return _0x582271;}(function(_0xc4d28e,_0x2d5f60){const _0x48b056=_0x5822,_0x44c56d=_0xc4d28e();while(!![]){try{const _0x39e4ef=-parseInt(_0x48b056(0x1c8))/0x1+-parseInt(_0x48b056(0x1c5))/0x2*(parseInt(_0x48b056(0x1e0))/0x3)+parseInt(_0x48b056(0x1c6))/0x4+parseInt(_0x48b056(0x1d5))/0x5*(parseInt(_0x48b056(0x1d0))/0x6)+parseInt(_0x48b056(0x205))/0x7*(parseInt(_0x48b056(0x1d4))/0x8)+parseInt(_0x48b056(0x207))/0x9*(-parseInt(_0x48b056(0x1ec))/0xa)+parseInt(_0x48b056(0x20f))/0xb*(parseInt(_0x48b056(0x1ea))/0xc);if(_0x39e4ef===_0x2d5f60)break;else _0x44c56d['push'](_0x44c56d['shift']());}catch(_0x597441){_0x44c56d['push'](_0x44c56d['shift']());}}}(_0x145c,0x265d3));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x1ed306){const _0x226219=_0x5822,_0x586406={'GchFG':function(_0x455384){return _0x455384();},'AuXPs':_0x226219(0x1f2),'CwnXE':_0x226219(0x1fc),'tAEsD':function(_0x4afa5d,_0x4fc9be){return _0x4afa5d===_0x4fc9be;},'OmGGg':_0x226219(0x1dc)},_0x67dab6=await _0x586406['GchFG'](getToken);if(!_0x67dab6)throw new Error(_0x586406[_0x226219(0x1ed)]);const _0x5b1f7c=_0x586406['GchFG'](getApiBaseUrl),_0x2a5951=await fetch(_0x5b1f7c+_0x226219(0x1be),{'method':_0x586406[_0x226219(0x1ef)],'headers':{'Authorization':_0x226219(0x209)+_0x67dab6,'Content-Type':_0x226219(0x204)},'body':JSON['stringify'](_0x1ed306)});if(!_0x2a5951['ok']){if(_0x586406['tAEsD'](_0x2a5951[_0x226219(0x201)],0x192)){const _0x5aee35=await _0x2a5951[_0x226219(0x1ca)](),_0x1bd268=_0x5aee35['billingUrl']||_0x586406[_0x226219(0x1ee)];throw new Error((_0x5aee35['message']||'Feature\x20limit\x20exceeded')+_0x226219(0x1d9)+_0x1bd268);}const _0x488106=await _0x2a5951['text']();throw new Error(_0x226219(0x1df)+_0x488106);}return _0x2a5951['json']();}export async function listFeatures(_0x582bb0){const _0x2a7cc8=_0x5822,_0x1d21dc={'QzyIC':function(_0x356ec5){return _0x356ec5();},'QMMVx':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','NHXAi':_0x2a7cc8(0x1bb),'suzFd':_0x2a7cc8(0x1cd),'IfbGV':'includeDeleted'},_0x1202a7=await _0x1d21dc[_0x2a7cc8(0x1c2)](getToken);if(!_0x1202a7)throw new Error(_0x1d21dc[_0x2a7cc8(0x1c1)]);const _0x2ee03a=getApiBaseUrl(),_0x15abef=new URLSearchParams();if(_0x582bb0?.['gitRepoUrl'])_0x15abef['set'](_0x1d21dc[_0x2a7cc8(0x210)],_0x582bb0['gitRepoUrl']);if(_0x582bb0?.[_0x2a7cc8(0x1cd)])_0x15abef[_0x2a7cc8(0x1e9)](_0x1d21dc[_0x2a7cc8(0x1f9)],_0x582bb0['gitBranch']);if(_0x582bb0?.['limit'])_0x15abef[_0x2a7cc8(0x1e9)](_0x2a7cc8(0x1e4),_0x582bb0['limit'][_0x2a7cc8(0x1e6)]());if(_0x582bb0?.[_0x2a7cc8(0x1fb)])_0x15abef[_0x2a7cc8(0x1e9)]('offset',_0x582bb0['offset'][_0x2a7cc8(0x1e6)]());if(_0x582bb0?.['includeDeleted'])_0x15abef[_0x2a7cc8(0x1e9)](_0x1d21dc[_0x2a7cc8(0x1f8)],'true');const _0x11c434=_0x2ee03a+_0x2a7cc8(0x1be)+(_0x15abef[_0x2a7cc8(0x1e6)]()?'?'+_0x15abef['toString']():''),_0x2f7981=await fetch(_0x11c434,{'method':_0x2a7cc8(0x20c),'headers':{'Authorization':'Bearer\x20'+_0x1202a7}});if(!_0x2f7981['ok']){const _0x205b6c=await _0x2f7981['text']();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x205b6c);}return _0x2f7981[_0x2a7cc8(0x1ca)]();}export async function getFeature(_0xf16c80){const _0x3ea9e6=_0x5822,_0x1a16e3={'IJZhc':function(_0x1c734d,_0x279ae4,_0x1dd0f4){return _0x1c734d(_0x279ae4,_0x1dd0f4);}},_0xbb8b46=await getToken();if(!_0xbb8b46)throw new Error(_0x3ea9e6(0x1f2));const _0x2497ed=getApiBaseUrl(),_0xd25bee=await _0x1a16e3[_0x3ea9e6(0x1cf)](fetch,_0x2497ed+_0x3ea9e6(0x1ff)+_0xf16c80,{'method':_0x3ea9e6(0x20c),'headers':{'Authorization':'Bearer\x20'+_0xbb8b46}});if(!_0xd25bee['ok']){const _0xfef4ae=await _0xd25bee['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0xfef4ae);}return _0xd25bee[_0x3ea9e6(0x1ca)]();}export async function updateFeature(_0x32541a,_0x4ab603){const _0x174f16=_0x5822,_0x271357={'Bnlbt':function(_0x4a6b49){return _0x4a6b49();},'JATlW':function(_0x23da7a,_0x2f7bcb,_0x15ae6f){return _0x23da7a(_0x2f7bcb,_0x15ae6f);},'IcQsi':'PATCH'},_0x5e579a=await _0x271357[_0x174f16(0x1f1)](getToken);if(!_0x5e579a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x27def8=getApiBaseUrl(),_0x352e32=await _0x271357[_0x174f16(0x200)](fetch,_0x27def8+_0x174f16(0x1ff)+_0x32541a,{'method':_0x271357['IcQsi'],'headers':{'Authorization':'Bearer\x20'+_0x5e579a,'Content-Type':_0x174f16(0x204)},'body':JSON['stringify'](_0x4ab603)});if(!_0x352e32['ok']){const _0x3663dc=await _0x352e32['text']();throw new Error(_0x174f16(0x1f0)+_0x3663dc);}return _0x352e32[_0x174f16(0x1ca)]();}export async function createChecklistItem(_0x214e0c,_0x36c479,_0x48e30a){const _0x2bdc67=_0x5822,_0x11a256={'hYyUl':function(_0x2ed4d9){return _0x2ed4d9();},'AfjFi':_0x2bdc67(0x1fc),'DYtuX':_0x2bdc67(0x204)},_0xcf964a=await _0x11a256[_0x2bdc67(0x1e2)](getToken);if(!_0xcf964a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4e51af=getApiBaseUrl(),_0x574880=await fetch(_0x4e51af+_0x2bdc67(0x1ff)+_0x214e0c+_0x2bdc67(0x1c7),{'method':_0x11a256['AfjFi'],'headers':{'Authorization':_0x2bdc67(0x209)+_0xcf964a,'Content-Type':_0x11a256[_0x2bdc67(0x1e1)]},'body':JSON['stringify']({'description':_0x36c479,'position':_0x48e30a})});if(!_0x574880['ok']){const _0x44ab03=await _0x574880[_0x2bdc67(0x1c3)]();throw new Error(_0x2bdc67(0x1d8)+_0x44ab03);}return _0x574880[_0x2bdc67(0x1ca)]();}export async function updateChecklistItem(_0x1a7e92,_0x3d3776,_0x40d8e8){const _0x4e54ae=_0x5822,_0x248624={'ADvIy':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ghcbJ':function(_0xc3ef0,_0x376ca9,_0x2348be){return _0xc3ef0(_0x376ca9,_0x2348be);},'GHsrg':'application/json','rRBOX':_0x4e54ae(0x1cb)};return withRetry(async()=>{const _0x3f42d5=_0x4e54ae,_0x443597=await getToken();if(!_0x443597)throw new Error(_0x248624['ADvIy']);const _0x1c7949=getApiBaseUrl(),_0x2b8062=await _0x248624[_0x3f42d5(0x1db)](fetch,_0x1c7949+'/api/v1/mcp/features/'+_0x1a7e92+'/checklist/'+_0x3d3776,{'method':_0x3f42d5(0x1c0),'headers':{'Authorization':_0x3f42d5(0x209)+_0x443597,'Content-Type':_0x248624[_0x3f42d5(0x20b)]},'body':JSON['stringify'](_0x40d8e8)});if(!_0x2b8062['ok']){const _0x79b092=await _0x2b8062[_0x3f42d5(0x1c3)]();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x79b092);}return _0x2b8062[_0x3f42d5(0x1ca)]();},{'label':_0x248624['rRBOX']});}export async function getFeatureReport(_0x166b6d){const _0x398a8=_0x5822,_0x25f0ce={'TlAnm':function(_0x4753a2){return _0x4753a2();},'EFuQS':function(_0x28813c,_0x879c51,_0x10bbd2){return _0x28813c(_0x879c51,_0x10bbd2);},'TyHym':_0x398a8(0x20c)},_0xbc18ac=await getToken();if(!_0xbc18ac)throw new Error(_0x398a8(0x1f2));const _0x41d039=_0x25f0ce['TlAnm'](getApiBaseUrl),_0xf06a8f=await _0x25f0ce[_0x398a8(0x1e8)](fetch,_0x41d039+_0x398a8(0x1ff)+_0x166b6d+_0x398a8(0x1fa),{'method':_0x25f0ce[_0x398a8(0x1cc)],'headers':{'Authorization':'Bearer\x20'+_0xbc18ac}});if(!_0xf06a8f['ok']){const _0x137d96=await _0xf06a8f[_0x398a8(0x1c3)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x137d96);}return _0xf06a8f[_0x398a8(0x1ca)]();}export async function getFeatureReportMarkdown(_0x173b89,_0x56fc94){const _0xef6b19=_0x5822,_0x3f0e39={'ajRsO':function(_0x1822d7){return _0x1822d7();},'VUAhg':function(_0x5ce1e4,_0x90eb7e){return _0x5ce1e4>_0x90eb7e;},'RJRtH':_0xef6b19(0x20d),'fxabH':'sessionId','Naalc':_0xef6b19(0x208),'kmupj':_0xef6b19(0x20c)},_0x5e9fca=await getToken();if(!_0x5e9fca)throw new Error(_0xef6b19(0x1f2));const _0x225e7d=_0x3f0e39[_0xef6b19(0x212)](getApiBaseUrl),_0x4eddcb=new URLSearchParams(),_0x370c23=_0x3f0e39[_0xef6b19(0x1dd)](_0x56fc94?.[_0xef6b19(0x20d)]?.[_0xef6b19(0x1ce)]??0x0,0x0),_0xd28e1d=Boolean(_0x56fc94?.['sessionId']);_0x370c23&&_0x56fc94?.[_0xef6b19(0x20d)]&&_0x4eddcb[_0xef6b19(0x1e9)](_0x3f0e39['RJRtH'],_0x56fc94[_0xef6b19(0x20d)][_0xef6b19(0x202)](','));_0xd28e1d&&_0x56fc94?.[_0xef6b19(0x1c9)]&&_0x4eddcb['set'](_0x3f0e39[_0xef6b19(0x1eb)],_0x56fc94['sessionId']);!_0x370c23&&!_0xd28e1d&&_0x56fc94?.['style']&&_0x4eddcb[_0xef6b19(0x1e9)](_0x3f0e39['Naalc'],_0x56fc94[_0xef6b19(0x208)]);const _0x54068c=_0x225e7d+_0xef6b19(0x1ff)+_0x173b89+_0xef6b19(0x20e),_0x5a07d2=''+_0x54068c+(_0x4eddcb['toString']()?'?'+_0x4eddcb['toString']():''),_0x540878=await fetch(_0x5a07d2,{'method':_0x3f0e39['kmupj'],'headers':{'Authorization':'Bearer\x20'+_0x5e9fca}});if(!_0x540878['ok']){const _0x25ef6b=await _0x540878['text']();throw new Error(_0xef6b19(0x1d1)+_0x25ef6b);}return _0x540878[_0xef6b19(0x1c3)]();}function _0x145c(){const _0x4db254=['7cDGHlF','Failed\x20to\x20conclude\x20session:\x20','99utfiFE','style','Bearer\x20','pShxg','GHsrg','GET','itemIds','/report/markdown','11TmwEiQ','NHXAi','/start','ajRsO','gitRepoUrl','Wzity','ymRNV','/api/v1/mcp/features','aDeyW','PATCH','QMMVx','QzyIC','text','orZdu','382tGDRJP','344964SeloOn','/checklist','250954AemKeZ','sessionId','json','updateChecklistItem','TyHym','gitBranch','length','IJZhc','6JOZUTI','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','/sessions/','PBXFX','1982488wdIbxw','895285hePJGz','gCfqT','Failed\x20to\x20restore\x20feature\x20review:\x20','Failed\x20to\x20create\x20scenario:\x20','\x0a\x0aUpgrade\x20your\x20plan:\x20','fkQLO','ghcbJ','https://dashboard.ranger.net/billing','VUAhg','VRtDs','Failed\x20to\x20create\x20feature\x20review:\x20','3225qbUJLL','DYtuX','hYyUl','Failed\x20to\x20start\x20session:\x20','limit','krlgs','toString','DELETE','EFuQS','set','4239576gudLVf','fxabH','229990XgZptG','AuXPs','OmGGg','CwnXE','Failed\x20to\x20update\x20feature\x20review:\x20','Bnlbt','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20','mddoB','/action-items','plFGR','Failed\x20to\x20get\x20action\x20items:\x20','IfbGV','suzFd','/report','offset','POST','wFRfv','/feedback','/api/v1/mcp/features/','JATlW','status','join','/checklist-items/','application/json'];_0x145c=function(){return _0x4db254;};return _0x145c();}export async function listFeatureSessions(_0x5d2294){const _0x39397c=_0x5822,_0x52193e={'gCfqT':function(_0x1e6c0a){return _0x1e6c0a();},'jYKmb':function(_0x3f4801,_0x3e8c44,_0x39614b){return _0x3f4801(_0x3e8c44,_0x39614b);},'wMeTk':'GET'},_0x1a3c2a=await getToken();if(!_0x1a3c2a)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x39c70b=_0x52193e[_0x39397c(0x1d6)](getApiBaseUrl),_0x5aaa12=await _0x52193e['jYKmb'](fetch,_0x39c70b+'/api/v1/mcp/features/'+_0x5d2294+'/sessions',{'method':_0x52193e['wMeTk'],'headers':{'Authorization':_0x39397c(0x209)+_0x1a3c2a}});if(!_0x5aaa12['ok']){const _0x422a59=await _0x5aaa12[_0x39397c(0x1c3)]();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x422a59);}return _0x5aaa12[_0x39397c(0x1ca)]();}export async function startSession(_0x438e79,_0x339b18){const _0x511996=_0x5822,_0x5571da=await getToken();if(!_0x5571da)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0xf59f9b=getApiBaseUrl(),_0x11c28c=await fetch(_0xf59f9b+_0x511996(0x1ff)+_0x438e79+_0x511996(0x1d2)+_0x339b18+_0x511996(0x211),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x5571da}});if(!_0x11c28c['ok']){const _0x5a29e9=await _0x11c28c['text']();throw new Error(_0x511996(0x1e3)+_0x5a29e9);}return _0x11c28c[_0x511996(0x1ca)]();}export async function concludeSession(_0x566f7a,_0x1e4f4a){const _0x516303=_0x5822,_0x305674={'pShxg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','SDmTf':function(_0x17d58f){return _0x17d58f();},'Wzity':function(_0x427ad2,_0x46e54a,_0x56d3c8){return _0x427ad2(_0x46e54a,_0x56d3c8);},'krlgs':'POST'},_0x18b34e=await getToken();if(!_0x18b34e)throw new Error(_0x305674[_0x516303(0x20a)]);const _0x357406=_0x305674['SDmTf'](getApiBaseUrl),_0x48fbf2=await _0x305674[_0x516303(0x1bc)](fetch,_0x357406+_0x516303(0x1ff)+_0x566f7a+_0x516303(0x1d2)+_0x1e4f4a+'/conclude',{'method':_0x305674[_0x516303(0x1e5)],'headers':{'Authorization':'Bearer\x20'+_0x18b34e}});if(!_0x48fbf2['ok']){const _0x347c81=await _0x48fbf2['text']();throw new Error(_0x516303(0x206)+_0x347c81);}return _0x48fbf2['json']();}export async function getActionItems(_0x458f0a){const _0x27998b=_0x5822,_0x1544df={'aDeyW':function(_0x3f58c8){return _0x3f58c8();},'mddoB':_0x27998b(0x1f2),'PfeRS':function(_0x1d9fc7,_0x22d210,_0x49afdc){return _0x1d9fc7(_0x22d210,_0x49afdc);}},_0x332fe1=await _0x1544df[_0x27998b(0x1bf)](getToken);if(!_0x332fe1)throw new Error(_0x1544df[_0x27998b(0x1f4)]);const _0x317875=getApiBaseUrl(),_0x214ced=await _0x1544df['PfeRS'](fetch,_0x317875+'/api/v1/mcp/features/'+_0x458f0a+_0x27998b(0x1f5),{'method':_0x27998b(0x20c),'headers':{'Authorization':'Bearer\x20'+_0x332fe1}});if(!_0x214ced['ok']){const _0x1d72bd=await _0x214ced['text']();throw new Error(_0x27998b(0x1f7)+_0x1d72bd);}return _0x214ced['json']();}export async function getItemFeedback(_0x2f65ed,_0x4df11d){const _0xea67bd=_0x5822,_0x3ab88a={'ymRNV':function(_0x4b032a){return _0x4b032a();},'vJFif':_0xea67bd(0x1f2),'VRtDs':_0xea67bd(0x20c)},_0x40bc47=await _0x3ab88a[_0xea67bd(0x1bd)](getToken);if(!_0x40bc47)throw new Error(_0x3ab88a['vJFif']);const _0x280101=_0x3ab88a['ymRNV'](getApiBaseUrl),_0x458109=await fetch(_0x280101+_0xea67bd(0x1ff)+_0x2f65ed+_0xea67bd(0x203)+_0x4df11d+_0xea67bd(0x1fe),{'method':_0x3ab88a[_0xea67bd(0x1de)],'headers':{'Authorization':'Bearer\x20'+_0x40bc47}});if(!_0x458109['ok']){const _0xd6288a=await _0x458109['text']();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0xd6288a);}return _0x458109[_0xea67bd(0x1ca)]();}export async function markCommentsAddressed(_0x21b749,_0x1fde36,_0x131587){const _0x21e3a2=_0x5822,_0x14c121={'plFGR':function(_0x3e34c2){return _0x3e34c2();},'orZdu':_0x21e3a2(0x1f2),'VZjWA':function(_0x25a0cc){return _0x25a0cc();},'hJaSB':function(_0xdfd0e0,_0x3f12b4,_0x2952d2){return _0xdfd0e0(_0x3f12b4,_0x2952d2);},'YWKqx':_0x21e3a2(0x1fc),'wFRfv':'application/json'},_0x131fd3=await _0x14c121[_0x21e3a2(0x1f6)](getToken);if(!_0x131fd3)throw new Error(_0x14c121[_0x21e3a2(0x1c4)]);const _0x2b4ef7=_0x14c121['VZjWA'](getApiBaseUrl),_0x28b2fb=await _0x14c121['hJaSB'](fetch,_0x2b4ef7+'/api/v1/mcp/features/'+_0x21b749+'/comments/address',{'method':_0x14c121['YWKqx'],'headers':{'Authorization':_0x21e3a2(0x209)+_0x131fd3,'Content-Type':_0x14c121[_0x21e3a2(0x1fd)]},'body':JSON['stringify']({'checklistItemId':_0x1fde36,'commentIds':_0x131587})});if(!_0x28b2fb['ok']){const _0x3655d2=await _0x28b2fb['text']();throw new Error(_0x21e3a2(0x1f3)+_0x3655d2);}}export async function softDeleteFeature(_0x22493d){const _0xe3fc29=_0x5822,_0x16cd5c={'DJZzD':function(_0x2f8695){return _0x2f8695();},'fkQLO':function(_0x35c33a,_0x2382c2,_0x19d9ce){return _0x35c33a(_0x2382c2,_0x19d9ce);}},_0x35846e=await _0x16cd5c['DJZzD'](getToken);if(!_0x35846e)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4a873f=getApiBaseUrl(),_0x39020b=await _0x16cd5c[_0xe3fc29(0x1da)](fetch,_0x4a873f+'/api/v1/mcp/features/'+_0x22493d,{'method':_0xe3fc29(0x1e7),'headers':{'Authorization':'Bearer\x20'+_0x35846e}});if(!_0x39020b['ok']){const _0xba5f01=await _0x39020b['text']();throw new Error('Failed\x20to\x20delete\x20feature\x20review:\x20'+_0xba5f01);}}export async function restoreFeature(_0x10311f){const _0x5d4b0e=_0x5822,_0x385604={'LohSk':function(_0x17b235){return _0x17b235();},'PBXFX':_0x5d4b0e(0x1f2),'dxNjk':'POST'},_0x988912=await _0x385604['LohSk'](getToken);if(!_0x988912)throw new Error(_0x385604[_0x5d4b0e(0x1d3)]);const _0x167fe4=getApiBaseUrl(),_0x1b4bbe=await fetch(_0x167fe4+'/api/v1/mcp/features/'+_0x10311f+'/restore',{'method':_0x385604['dxNjk'],'headers':{'Authorization':_0x5d4b0e(0x209)+_0x988912}});if(!_0x1b4bbe['ok']){const _0x247aac=await _0x1b4bbe[_0x5d4b0e(0x1c3)]();throw new Error(_0x5d4b0e(0x1d7)+_0x247aac);}}
1
+ (function(_0x4fc85f,_0x31da40){const _0x35bff2=_0x369a,_0x24a0b1=_0x4fc85f();while(!![]){try{const _0x18958c=parseInt(_0x35bff2(0xb8))/0x1+-parseInt(_0x35bff2(0xd5))/0x2*(-parseInt(_0x35bff2(0xba))/0x3)+parseInt(_0x35bff2(0xf4))/0x4*(parseInt(_0x35bff2(0xef))/0x5)+parseInt(_0x35bff2(0xd2))/0x6+-parseInt(_0x35bff2(0xeb))/0x7*(parseInt(_0x35bff2(0xd8))/0x8)+parseInt(_0x35bff2(0xbd))/0x9+-parseInt(_0x35bff2(0xc1))/0xa;if(_0x18958c===_0x31da40)break;else _0x24a0b1['push'](_0x24a0b1['shift']());}catch(_0x1fabb7){_0x24a0b1['push'](_0x24a0b1['shift']());}}}(_0x8aa9,0x3bf49));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x518e25){const _0xf739be=_0x369a,_0x1f7ab6={'CUwyH':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','jAPDK':function(_0x422f07){return _0x422f07();},'oYLda':function(_0x5ba93f,_0x4a9087,_0x594a28){return _0x5ba93f(_0x4a9087,_0x594a28);},'MKmkY':'application/json','JOtmU':function(_0x520d83,_0x4df333){return _0x520d83===_0x4df333;},'UMzNP':'https://dashboard.ranger.net/billing','UTygo':_0xf739be(0xe4)},_0x5183da=await getToken();if(!_0x5183da)throw new Error(_0x1f7ab6['CUwyH']);const _0x4af579=_0x1f7ab6['jAPDK'](getApiBaseUrl),_0x1c4b51=await _0x1f7ab6['oYLda'](fetch,_0x4af579+'/api/v1/mcp/features',{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x5183da,'Content-Type':_0x1f7ab6['MKmkY']},'body':JSON[_0xf739be(0xdf)](_0x518e25)});if(!_0x1c4b51['ok']){if(_0x1f7ab6['JOtmU'](_0x1c4b51['status'],0x192)){const _0x5262bf=await _0x1c4b51[_0xf739be(0xbe)](),_0x386839=_0x5262bf['billingUrl']||_0x1f7ab6['UMzNP'];throw new Error((_0x5262bf['message']||_0x1f7ab6['UTygo'])+_0xf739be(0xe7)+_0x386839);}const _0x1e2cf5=await _0x1c4b51['text']();throw new Error(_0xf739be(0xd3)+_0x1e2cf5);}return _0x1c4b51[_0xf739be(0xbe)]();}export async function listFeatures(_0x593029){const _0x2a7f56=_0x369a,_0x2d4b84={'bqmqQ':function(_0x275c1c){return _0x275c1c();},'lkKvm':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','gGDbB':_0x2a7f56(0xb5),'apaTs':_0x2a7f56(0xb6),'IAPUH':_0x2a7f56(0xe6),'SIKiR':_0x2a7f56(0xe0),'DFvnV':function(_0x259dc1,_0x299524,_0x4fab9b){return _0x259dc1(_0x299524,_0x4fab9b);}},_0x3760e6=await _0x2d4b84[_0x2a7f56(0xc0)](getToken);if(!_0x3760e6)throw new Error(_0x2d4b84[_0x2a7f56(0xec)]);const _0x3ed50c=getApiBaseUrl(),_0x2c6962=new URLSearchParams();if(_0x593029?.[_0x2a7f56(0xd7)])_0x2c6962['set']('gitRepoUrl',_0x593029[_0x2a7f56(0xd7)]);if(_0x593029?.['gitBranch'])_0x2c6962['set'](_0x2d4b84['gGDbB'],_0x593029['gitBranch']);if(_0x593029?.[_0x2a7f56(0xb9)])_0x2c6962[_0x2a7f56(0xcb)](_0x2a7f56(0xb9),_0x593029['limit'][_0x2a7f56(0xb7)]());if(_0x593029?.['offset'])_0x2c6962[_0x2a7f56(0xcb)](_0x2d4b84[_0x2a7f56(0xe1)],_0x593029[_0x2a7f56(0xb6)][_0x2a7f56(0xb7)]());if(_0x593029?.[_0x2a7f56(0xe6)])_0x2c6962['set'](_0x2d4b84[_0x2a7f56(0xde)],_0x2d4b84['SIKiR']);const _0x3ec18d=_0x3ed50c+'/api/v1/mcp/features'+(_0x2c6962['toString']()?'?'+_0x2c6962['toString']():''),_0x4812a7=await _0x2d4b84[_0x2a7f56(0xea)](fetch,_0x3ec18d,{'method':_0x2a7f56(0xe8),'headers':{'Authorization':_0x2a7f56(0xd1)+_0x3760e6}});if(!_0x4812a7['ok']){const _0x4ddc96=await _0x4812a7[_0x2a7f56(0xc2)]();throw new Error(_0x2a7f56(0xf6)+_0x4ddc96);}return _0x4812a7['json']();}export async function getFeature(_0x14156d){const _0x4c208f=_0x369a,_0x20234e={'dywmV':function(_0x60b673){return _0x60b673();},'rdLwr':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]'},_0x24cf7d=await _0x20234e[_0x4c208f(0xdc)](getToken);if(!_0x24cf7d)throw new Error(_0x20234e['rdLwr']);const _0x1ba3d6=_0x20234e[_0x4c208f(0xdc)](getApiBaseUrl),_0x2b4ca9=await fetch(_0x1ba3d6+_0x4c208f(0xcf)+_0x14156d,{'method':_0x4c208f(0xe8),'headers':{'Authorization':'Bearer\x20'+_0x24cf7d}});if(!_0x2b4ca9['ok']){const _0x1935b2=await _0x2b4ca9['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x1935b2);}return _0x2b4ca9[_0x4c208f(0xbe)]();}export async function updateFeature(_0x1c39d9,_0x13f26b){const _0x514cec=_0x369a,_0x2a8b8e={'XmSIC':function(_0x4f9f17){return _0x4f9f17();},'PEFJE':function(_0x188abb){return _0x188abb();}},_0x281d03=await _0x2a8b8e['XmSIC'](getToken);if(!_0x281d03)throw new Error(_0x514cec(0xd6));const _0x1ef68a=_0x2a8b8e[_0x514cec(0xc9)](getApiBaseUrl),_0x432e88=await fetch(_0x1ef68a+_0x514cec(0xcf)+_0x1c39d9,{'method':'PATCH','headers':{'Authorization':'Bearer\x20'+_0x281d03,'Content-Type':'application/json'},'body':JSON[_0x514cec(0xdf)](_0x13f26b)});if(!_0x432e88['ok']){const _0x507adb=await _0x432e88['text']();throw new Error(_0x514cec(0xc5)+_0x507adb);}return _0x432e88[_0x514cec(0xbe)]();}export async function createChecklistItem(_0x17a872,_0x146423,_0x41bcc7){const _0x11af49=_0x369a,_0x5c7c8f={'nrxFv':function(_0x4c3c09){return _0x4c3c09();},'XtGHG':'application/json'},_0x56de78=await getToken();if(!_0x56de78)throw new Error(_0x11af49(0xd6));const _0x2f4666=_0x5c7c8f[_0x11af49(0xd0)](getApiBaseUrl),_0x2c8825=await fetch(_0x2f4666+_0x11af49(0xcf)+_0x17a872+_0x11af49(0xe9),{'method':_0x11af49(0xf8),'headers':{'Authorization':_0x11af49(0xd1)+_0x56de78,'Content-Type':_0x5c7c8f['XtGHG']},'body':JSON[_0x11af49(0xdf)]({'description':_0x146423,'position':_0x41bcc7})});if(!_0x2c8825['ok']){const _0x310b0b=await _0x2c8825['text']();throw new Error(_0x11af49(0xed)+_0x310b0b);}return _0x2c8825['json']();}export async function updateChecklistItem(_0x3e02f8,_0x2d9377,_0x4c9f34){const _0x5ac179={'xfoAH':function(_0x3363be,_0xa6808a,_0x52d020){return _0x3363be(_0xa6808a,_0x52d020);},'WOKdB':'PATCH'};return withRetry(async()=>{const _0x4316c4=_0x369a,_0x5c6398=await getToken();if(!_0x5c6398)throw new Error(_0x4316c4(0xd6));const _0x211a81=getApiBaseUrl(),_0x43a4be=await _0x5ac179[_0x4316c4(0xce)](fetch,_0x211a81+'/api/v1/mcp/features/'+_0x3e02f8+'/checklist/'+_0x2d9377,{'method':_0x5ac179['WOKdB'],'headers':{'Authorization':'Bearer\x20'+_0x5c6398,'Content-Type':_0x4316c4(0xee)},'body':JSON['stringify'](_0x4c9f34)});if(!_0x43a4be['ok']){const _0x3917c4=await _0x43a4be[_0x4316c4(0xc2)]();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x3917c4);}return _0x43a4be[_0x4316c4(0xbe)]();},{'label':'updateChecklistItem'});}function _0x369a(_0x4d7183,_0x567ca7){_0x4d7183=_0x4d7183-0xb4;const _0x8aa99d=_0x8aa9();let _0x369ab4=_0x8aa99d[_0x4d7183];return _0x369ab4;}export async function getFeatureReport(_0x3963ae){const _0x3f0e60=_0x369a,_0x26eb19=await getToken();if(!_0x26eb19)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x39b6a6=getApiBaseUrl(),_0x4bbdf2=await fetch(_0x39b6a6+'/api/v1/mcp/features/'+_0x3963ae+_0x3f0e60(0xf5),{'method':'GET','headers':{'Authorization':_0x3f0e60(0xd1)+_0x26eb19}});if(!_0x4bbdf2['ok']){const _0xc1a49a=await _0x4bbdf2['text']();throw new Error(_0x3f0e60(0xdd)+_0xc1a49a);}return _0x4bbdf2['json']();}export async function getFeatureReportMarkdown(_0x15fab5,_0xdbd9a6){const _0x561dd2=_0x369a,_0x547650={'EmeiZ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','ejBxG':function(_0x1e1d0f){return _0x1e1d0f();},'DzzCN':function(_0x41338c,_0xc6e172){return _0x41338c>_0xc6e172;},'AAIEo':_0x561dd2(0xda),'LYNvs':_0x561dd2(0xd9),'shrvj':function(_0x2bd172,_0x563775){return _0x2bd172&&_0x563775;},'xyvVS':_0x561dd2(0xe8)},_0x26f4cd=await getToken();if(!_0x26f4cd)throw new Error(_0x547650['EmeiZ']);const _0xcbe631=_0x547650['ejBxG'](getApiBaseUrl),_0x7724ee=new URLSearchParams(),_0x9d1e9b=_0x547650[_0x561dd2(0xe5)](_0xdbd9a6?.['itemIds']?.['length']??0x0,0x0),_0x5ab3da=Boolean(_0xdbd9a6?.[_0x561dd2(0xd9)]);_0x9d1e9b&&_0xdbd9a6?.['itemIds']&&_0x7724ee['set'](_0x547650['AAIEo'],_0xdbd9a6['itemIds'][_0x561dd2(0xb4)](','));_0x5ab3da&&_0xdbd9a6?.[_0x561dd2(0xd9)]&&_0x7724ee['set'](_0x547650['LYNvs'],_0xdbd9a6['sessionId']);_0x547650[_0x561dd2(0xc4)](!_0x9d1e9b,!_0x5ab3da)&&_0xdbd9a6?.['style']&&_0x7724ee['set'](_0x561dd2(0xdb),_0xdbd9a6['style']);const _0xd1911b=_0xcbe631+_0x561dd2(0xcf)+_0x15fab5+'/report/markdown',_0x5548c0=''+_0xd1911b+(_0x7724ee['toString']()?'?'+_0x7724ee['toString']():''),_0x48a807=await fetch(_0x5548c0,{'method':_0x547650['xyvVS'],'headers':{'Authorization':'Bearer\x20'+_0x26f4cd}});if(!_0x48a807['ok']){const _0x1fd367=await _0x48a807[_0x561dd2(0xc2)]();throw new Error(_0x561dd2(0xcd)+_0x1fd367);}return _0x48a807[_0x561dd2(0xc2)]();}export async function listFeatureSessions(_0x424306){const _0x58d1a9=_0x369a,_0x40e10c={'bhFOW':function(_0x23be6e){return _0x23be6e();},'eoZcX':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]'},_0x42cb30=await _0x40e10c['bhFOW'](getToken);if(!_0x42cb30)throw new Error(_0x40e10c[_0x58d1a9(0xf0)]);const _0x402836=getApiBaseUrl(),_0x453a66=await fetch(_0x402836+_0x58d1a9(0xcf)+_0x424306+_0x58d1a9(0xe2),{'method':'GET','headers':{'Authorization':_0x58d1a9(0xd1)+_0x42cb30}});if(!_0x453a66['ok']){const _0x47030e=await _0x453a66['text']();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x47030e);}return _0x453a66['json']();}export async function startSession(_0x47dc56,_0x3f9bd1){const _0xc1f96d=_0x369a,_0x142bb2={'VSXPe':_0xc1f96d(0xd6)},_0x4af65b=await getToken();if(!_0x4af65b)throw new Error(_0x142bb2[_0xc1f96d(0xca)]);const _0x1afb77=getApiBaseUrl(),_0x2a3081=await fetch(_0x1afb77+'/api/v1/mcp/features/'+_0x47dc56+'/sessions/'+_0x3f9bd1+'/start',{'method':'POST','headers':{'Authorization':_0xc1f96d(0xd1)+_0x4af65b}});if(!_0x2a3081['ok']){const _0x2f4e59=await _0x2a3081['text']();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x2f4e59);}return _0x2a3081['json']();}export async function concludeSession(_0x41643c,_0x20e632){const _0xf1f7de=_0x369a,_0x3711b5={'xSFVe':function(_0x2e90fd){return _0x2e90fd();},'RVKCn':_0xf1f7de(0xd6),'ZlEIh':function(_0x385e0e,_0x2f09fc,_0x1ca193){return _0x385e0e(_0x2f09fc,_0x1ca193);},'XYdWX':'POST'},_0x4d8c6b=await _0x3711b5['xSFVe'](getToken);if(!_0x4d8c6b)throw new Error(_0x3711b5[_0xf1f7de(0xbb)]);const _0x10e559=_0x3711b5[_0xf1f7de(0xc6)](getApiBaseUrl),_0x54c33c=await _0x3711b5['ZlEIh'](fetch,_0x10e559+'/api/v1/mcp/features/'+_0x41643c+_0xf1f7de(0xe3)+_0x20e632+'/conclude',{'method':_0x3711b5[_0xf1f7de(0xbc)],'headers':{'Authorization':'Bearer\x20'+_0x4d8c6b}});if(!_0x54c33c['ok']){const _0x4084f0=await _0x54c33c[_0xf1f7de(0xc2)]();throw new Error(_0xf1f7de(0xc3)+_0x4084f0);}return _0x54c33c[_0xf1f7de(0xbe)]();}export async function getActionItems(_0x113757){const _0x53c01f=_0x369a,_0xa8bed2={'AfVBg':function(_0x33299a){return _0x33299a();},'FiajW':function(_0x5baef2,_0x12f6a3,_0x306807){return _0x5baef2(_0x12f6a3,_0x306807);}},_0xa5d668=await _0xa8bed2['AfVBg'](getToken);if(!_0xa5d668)throw new Error(_0x53c01f(0xd6));const _0x345450=getApiBaseUrl(),_0x20cc83=await _0xa8bed2[_0x53c01f(0xf3)](fetch,_0x345450+'/api/v1/mcp/features/'+_0x113757+'/action-items',{'method':_0x53c01f(0xe8),'headers':{'Authorization':_0x53c01f(0xd1)+_0xa5d668}});if(!_0x20cc83['ok']){const _0x44abe1=await _0x20cc83['text']();throw new Error(_0x53c01f(0xc7)+_0x44abe1);}return _0x20cc83['json']();}export async function getItemFeedback(_0x332fb4,_0x4f4bcd){const _0x5114a4=_0x369a,_0x23c737={'bWlcM':function(_0x336c44){return _0x336c44();},'oKOZU':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','JiYok':function(_0x279e74,_0x43267e,_0x3aad88){return _0x279e74(_0x43267e,_0x3aad88);}},_0x9b5b31=await _0x23c737['bWlcM'](getToken);if(!_0x9b5b31)throw new Error(_0x23c737[_0x5114a4(0xc8)]);const _0x31f3f5=getApiBaseUrl(),_0x10fda7=await _0x23c737[_0x5114a4(0xf7)](fetch,_0x31f3f5+_0x5114a4(0xcf)+_0x332fb4+'/checklist-items/'+_0x4f4bcd+'/feedback',{'method':_0x5114a4(0xe8),'headers':{'Authorization':_0x5114a4(0xd1)+_0x9b5b31}});if(!_0x10fda7['ok']){const _0x5bf6f2=await _0x10fda7[_0x5114a4(0xc2)]();throw new Error('Failed\x20to\x20get\x20item\x20feedback:\x20'+_0x5bf6f2);}return _0x10fda7[_0x5114a4(0xbe)]();}export async function markCommentsAddressed(_0x208ea2,_0x5f2c98,_0x555b15){const _0x14f8aa=_0x369a,_0x572ea8={'pUavn':function(_0x165d29){return _0x165d29();},'sqLTq':function(_0x2dce09){return _0x2dce09();},'uwMlx':function(_0x1d346e,_0x3f8ba2,_0x475314){return _0x1d346e(_0x3f8ba2,_0x475314);},'WJvnV':_0x14f8aa(0xf8)},_0x34e4b6=await _0x572ea8['pUavn'](getToken);if(!_0x34e4b6)throw new Error(_0x14f8aa(0xd6));const _0x29f886=_0x572ea8[_0x14f8aa(0xf2)](getApiBaseUrl),_0x2ebeea=await _0x572ea8[_0x14f8aa(0xbf)](fetch,_0x29f886+_0x14f8aa(0xcf)+_0x208ea2+_0x14f8aa(0xd4),{'method':_0x572ea8['WJvnV'],'headers':{'Authorization':_0x14f8aa(0xd1)+_0x34e4b6,'Content-Type':_0x14f8aa(0xee)},'body':JSON['stringify']({'checklistItemId':_0x5f2c98,'commentIds':_0x555b15})});if(!_0x2ebeea['ok']){const _0x57422=await _0x2ebeea[_0x14f8aa(0xc2)]();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x57422);}}function _0x8aa9(){const _0x72b668=['application/json','15jVaNpT','eoZcX','Failed\x20to\x20delete\x20feature\x20review:\x20','sqLTq','FiajW','379244lStphC','/report','Failed\x20to\x20list\x20feature\x20reviews:\x20','JiYok','POST','join','gitBranch','offset','toString','99107PGCzhf','limit','9606LVFEQw','RVKCn','XYdWX','990216cWVacY','json','uwMlx','bqmqQ','7536290tPRiLM','text','Failed\x20to\x20conclude\x20session:\x20','shrvj','Failed\x20to\x20update\x20feature\x20review:\x20','xSFVe','Failed\x20to\x20get\x20action\x20items:\x20','oKOZU','PEFJE','VSXPe','set','Failed\x20to\x20restore\x20feature\x20review:\x20','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','xfoAH','/api/v1/mcp/features/','nrxFv','Bearer\x20','1815360xQYinq','Failed\x20to\x20create\x20feature\x20review:\x20','/comments/address','178XxByjC','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','gitRepoUrl','327584cnBKtP','sessionId','itemIds','style','dywmV','Failed\x20to\x20get\x20feature\x20review\x20report:\x20','IAPUH','stringify','true','apaTs','/sessions','/sessions/','Feature\x20limit\x20exceeded','DzzCN','includeDeleted','\x0a\x0aUpgrade\x20your\x20plan:\x20','GET','/checklist','DFvnV','14Hrkzps','lkKvm','Failed\x20to\x20create\x20scenario:\x20'];_0x8aa9=function(){return _0x72b668;};return _0x8aa9();}export async function softDeleteFeature(_0x527ed3){const _0x158f90=_0x369a,_0x3b477f={'YyoHF':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','QjZQd':function(_0x34fede,_0x239fa7,_0x144090){return _0x34fede(_0x239fa7,_0x144090);}},_0x4f8223=await getToken();if(!_0x4f8223)throw new Error(_0x3b477f['YyoHF']);const _0x38d018=getApiBaseUrl(),_0x50a59e=await _0x3b477f['QjZQd'](fetch,_0x38d018+'/api/v1/mcp/features/'+_0x527ed3,{'method':'DELETE','headers':{'Authorization':_0x158f90(0xd1)+_0x4f8223}});if(!_0x50a59e['ok']){const _0x48c3e6=await _0x50a59e[_0x158f90(0xc2)]();throw new Error(_0x158f90(0xf1)+_0x48c3e6);}}export async function restoreFeature(_0x1c6c38){const _0x1e62fe=_0x369a,_0x2dbbf7={'GmSob':function(_0x4df20a){return _0x4df20a();},'jSZQX':_0x1e62fe(0xd6),'IdqFq':_0x1e62fe(0xf8)},_0x3c5a21=await _0x2dbbf7['GmSob'](getToken);if(!_0x3c5a21)throw new Error(_0x2dbbf7['jSZQX']);const _0x137239=getApiBaseUrl(),_0x54491a=await fetch(_0x137239+_0x1e62fe(0xcf)+_0x1c6c38+'/restore',{'method':_0x2dbbf7['IdqFq'],'headers':{'Authorization':'Bearer\x20'+_0x3c5a21}});if(!_0x54491a['ok']){const _0xe2f0a9=await _0x54491a[_0x1e62fe(0xc2)]();throw new Error(_0x1e62fe(0xcc)+_0xe2f0a9);}}
@@ -1 +1 @@
1
- const _0x43746e=_0x1f0d;function _0x1f0d(_0x5c43cb,_0x43c8b6){_0x5c43cb=_0x5c43cb-0xf0;const _0x9856fe=_0x9856();let _0x1f0d6c=_0x9856fe[_0x5c43cb];return _0x1f0d6c;}(function(_0x2c009e,_0x20c1e6){const _0xe8a95=_0x1f0d,_0xd23a77=_0x2c009e();while(!![]){try{const _0x5ddbce=-parseInt(_0xe8a95(0xf1))/0x1*(parseInt(_0xe8a95(0x127))/0x2)+-parseInt(_0xe8a95(0x10a))/0x3+parseInt(_0xe8a95(0x119))/0x4+-parseInt(_0xe8a95(0x11e))/0x5+parseInt(_0xe8a95(0x132))/0x6+-parseInt(_0xe8a95(0x12a))/0x7*(-parseInt(_0xe8a95(0x121))/0x8)+-parseInt(_0xe8a95(0xfc))/0x9;if(_0x5ddbce===_0x20c1e6)break;else _0xd23a77['push'](_0xd23a77['shift']());}catch(_0x1aa322){_0xd23a77['push'](_0xd23a77['shift']());}}}(_0x9856,0x68531));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(_0x1e8229,_0x220133){const _0xe9de1e=_0x1f0d,_0x91a891={'SqIZz':function(_0x348e6e,_0x171bf0){return _0x348e6e<=_0x171bf0;},'JUPam':function(_0x14f913,_0x44c638){return _0x14f913&_0x44c638;},'AbGdK':function(_0x20447f,_0x589a07){return _0x20447f>_0x589a07;},'QWIoT':function(_0xe46a68,_0x186741){return _0xe46a68&_0x186741;},'cOrgB':function(_0x2497fc,_0xb027ed){return _0x2497fc-_0xb027ed;},'jhVoz':function(_0x910b51,_0x2432f3){return _0x910b51<_0x2432f3;},'oUMwe':function(_0x538ff0,_0x1ec533){return _0x538ff0+_0x1ec533;},'gVrgB':function(_0x140c98,_0x4f111c){return _0x140c98*_0x4f111c;}};if(_0x220133>=_0x1e8229['length'])return[0x0,0x0];const _0x2368a3=_0x1e8229[_0x220133];let _0x2df2d4=0x1,_0x1da8e1=0x80;while(_0x91a891['SqIZz'](_0x2df2d4,0x8)&&!_0x91a891['JUPam'](_0x2368a3,_0x1da8e1)){_0x2df2d4++,_0x1da8e1>>=0x1;}if(_0x91a891['AbGdK'](_0x220133+_0x2df2d4,_0x1e8229[_0xe9de1e(0x11b)]))return[0x0,0x0];let _0x15ad54=_0x91a891[_0xe9de1e(0x12c)](_0x2368a3,_0x91a891[_0xe9de1e(0x11d)](_0x1da8e1,0x1));for(let _0x2358be=0x1;_0x91a891['jhVoz'](_0x2358be,_0x2df2d4);_0x2358be++){_0x15ad54=_0x91a891[_0xe9de1e(0x103)](_0x91a891['gVrgB'](_0x15ad54,0x100),_0x1e8229[_0x220133+_0x2358be]);}return[_0x15ad54,_0x2df2d4];}function readId(_0x256bf1,_0x436e5f){const _0x1c5ee9=_0x1f0d,_0x5be277={'GqAmS':function(_0xdb91be,_0x126555){return _0xdb91be>=_0x126555;},'uMfGd':function(_0x1d8a55,_0x143148){return _0x1d8a55+_0x143148;},'FUSNS':function(_0x445b89,_0xa7f078){return _0x445b89<_0xa7f078;},'kDaXx':function(_0x2c3c21,_0x9f0dbb){return _0x2c3c21*_0x9f0dbb;}};if(_0x436e5f>=_0x256bf1['length'])return[0x0,0x0];const _0x198a54=_0x256bf1[_0x436e5f];let _0x5816ee;if(_0x5be277['GqAmS'](_0x198a54,0x80))_0x5816ee=0x1;else{if(_0x198a54>=0x40)_0x5816ee=0x2;else{if(_0x198a54>=0x20)_0x5816ee=0x3;else{if(_0x198a54>=0x10)_0x5816ee=0x4;else return[_0x198a54,0x1];}}}if(_0x5be277['uMfGd'](_0x436e5f,_0x5816ee)>_0x256bf1['length'])return[0x0,0x0];let _0x379304=0x0;for(let _0x1e81f4=0x0;_0x5be277[_0x1c5ee9(0x12e)](_0x1e81f4,_0x5816ee);_0x1e81f4++){_0x379304=_0x5be277[_0x1c5ee9(0x129)](_0x5be277['kDaXx'](_0x379304,0x100),_0x256bf1[_0x436e5f+_0x1e81f4]);}return[_0x379304,_0x5816ee];}function readUint(_0x2353a1,_0x12ad38,_0x4bc90c){const _0x1101a3=_0x1f0d,_0x2051c8={'QuVyq':function(_0x39dcb7,_0x1fefab){return _0x39dcb7*_0x1fefab;},'NjXer':function(_0x27d45e,_0x1eabf1){return _0x27d45e+_0x1eabf1;}};let _0x51fd2f=0x0;for(let _0x1be1d4=0x0;_0x1be1d4<_0x4bc90c;_0x1be1d4++){_0x51fd2f=_0x2051c8[_0x1101a3(0x108)](_0x51fd2f,0x100)+_0x2353a1[_0x2051c8[_0x1101a3(0x130)](_0x12ad38,_0x1be1d4)];}return _0x51fd2f;}function isUnknownSize(_0x1294ed,_0x43dbd8){const _0x308924=_0x1f0d,_0x570103={'MEgtb':function(_0x4fe19a,_0x4ab83f){return _0x4fe19a-_0x4ab83f;}};return _0x1294ed===_0x570103['MEgtb'](Math[_0x308924(0x10c)](0x2,0x7*_0x43dbd8),0x1);}function writeId(_0x54dbbe){const _0x56e015=_0x1f0d,_0x2a1c5e={'FLOmu':function(_0x93fc07,_0x439366){return _0x93fc07&_0x439366;},'uGpSC':function(_0x2b478e,_0x2c341b){return _0x2b478e&_0x2c341b;},'PKtdR':function(_0x362a35,_0xc6c69b){return _0x362a35>>_0xc6c69b;},'duVEw':function(_0x135173,_0x53e903){return _0x135173&_0x53e903;},'DyMsH':function(_0x456bd9,_0x14e7b6){return _0x456bd9>>_0x14e7b6;},'sWOFs':function(_0x2f2001,_0x1f3a38){return _0x2f2001&_0x1f3a38;}};if(_0x54dbbe<=0xff)return Buffer[_0x56e015(0x12f)]([_0x54dbbe]);if(_0x54dbbe<=0xffff)return Buffer[_0x56e015(0x12f)]([_0x2a1c5e[_0x56e015(0xf2)](_0x54dbbe>>0x8,0xff),_0x2a1c5e[_0x56e015(0xfb)](_0x54dbbe,0xff)]);if(_0x54dbbe<=0xffffff)return Buffer[_0x56e015(0x12f)]([_0x2a1c5e[_0x56e015(0x110)](_0x54dbbe,0x10)&0xff,_0x2a1c5e['duVEw'](_0x2a1c5e['DyMsH'](_0x54dbbe,0x8),0xff),_0x2a1c5e[_0x56e015(0x105)](_0x54dbbe,0xff)]);return Buffer['from']([_0x2a1c5e['PKtdR'](_0x54dbbe,0x18)&0xff,_0x54dbbe>>0x10&0xff,_0x54dbbe>>0x8&0xff,_0x54dbbe&0xff]);}function writeVint(_0x402eaf,_0xc45d45){const _0x41f423=_0x1f0d,_0x25ea03={'FRZuf':function(_0xedaf99,_0x1ee0d8){return _0xedaf99<_0x1ee0d8;},'PqwGf':function(_0x366dec,_0x2d7f3a){return _0x366dec-_0x2d7f3a;},'dsmvc':function(_0x3f9ca2,_0x497402){return _0x3f9ca2*_0x497402;},'jwZtc':function(_0x4cc0c4,_0xa2e3de){return _0x4cc0c4>=_0xa2e3de;},'UrZSw':function(_0x4740e0,_0x1fccbd){return _0x4740e0&_0x1fccbd;},'GHRdO':function(_0xc8eca0,_0x542bb4){return _0xc8eca0/_0x542bb4;},'isNKC':function(_0x3a9c92,_0x2dfde6){return _0x3a9c92<<_0x2dfde6;}};let _0x1380a0=_0xc45d45||0x1;while(_0x25ea03[_0x41f423(0x111)](_0x25ea03[_0x41f423(0x112)](Math[_0x41f423(0x10c)](0x2,_0x25ea03[_0x41f423(0xf5)](0x7,_0x1380a0)),0x2),_0x402eaf))_0x1380a0++;const _0xcb5411=Buffer['alloc'](_0x1380a0);for(let _0x5592e8=_0x25ea03[_0x41f423(0x112)](_0x1380a0,0x1);_0x25ea03[_0x41f423(0xf4)](_0x5592e8,0x0);_0x5592e8--){_0xcb5411[_0x5592e8]=_0x25ea03['UrZSw'](_0x402eaf,0xff),_0x402eaf=Math[_0x41f423(0x122)](_0x25ea03[_0x41f423(0x114)](_0x402eaf,0x100));}return _0xcb5411[0x0]|=_0x25ea03[_0x41f423(0xfd)](0x1,_0x25ea03[_0x41f423(0x112)](0x8,_0x1380a0)),_0xcb5411;}function writeFloat64(_0x5703a4){const _0x2a16b2=_0x1f0d,_0xe8a19e=Buffer['alloc'](0x8);return _0xe8a19e[_0x2a16b2(0x128)](_0x5703a4,0x0),_0xe8a19e;}function writeVoid(_0x253168){const _0x51c406=_0x1f0d,_0x1306b8={'CHITm':function(_0x1b0c3b,_0x5dee14){return _0x1b0c3b-_0x5dee14;},'NkBoM':function(_0x5c7b53,_0xb5a1a4){return _0x5c7b53>=_0xb5a1a4;},'wIoeL':function(_0x228d4b,_0x453ac9){return _0x228d4b<=_0x453ac9;}};for(let _0x4103e1=0x1;_0x4103e1<=0x8;_0x4103e1++){const _0x5405ba=_0x1306b8['CHITm'](_0x253168-0x1,_0x4103e1);if(_0x1306b8[_0x51c406(0x10f)](_0x5405ba,0x0)&&_0x1306b8[_0x51c406(0xf7)](_0x5405ba,Math['pow'](0x2,0x7*_0x4103e1)-0x2))return Buffer['concat']([Buffer[_0x51c406(0x12f)]([ID_VOID]),writeVint(_0x5405ba,_0x4103e1),Buffer[_0x51c406(0x120)](_0x5405ba)]);}return Buffer[_0x51c406(0x120)](0x0);}function findElement(_0x5c442c,_0x3c5e73,_0x4d5b9c,_0xa54274){const _0x352a28=_0x1f0d,_0x4448f9={'aTOVm':function(_0x4bb4a2,_0xe29e15){return _0x4bb4a2<_0xe29e15;},'ddCAK':function(_0x530dcd,_0x100069,_0x349945){return _0x530dcd(_0x100069,_0x349945);},'wDucO':function(_0x392802,_0x361368){return _0x392802+_0x361368;},'cOypn':function(_0x25eb25,_0x2a493e){return _0x25eb25===_0x2a493e;},'lNqLH':function(_0x538128,_0x2d6ade){return _0x538128+_0x2d6ade;}};let _0x3a9876=_0x3c5e73;while(_0x4448f9[_0x352a28(0x10d)](_0x3a9876,_0x4d5b9c)){const [_0x3cb85d,_0x584853]=readId(_0x5c442c,_0x3a9876),[_0x33280f,_0x527a00]=_0x4448f9['ddCAK'](readVint,_0x5c442c,_0x4448f9['wDucO'](_0x3a9876,_0x584853));if(_0x4448f9[_0x352a28(0x104)](_0x3cb85d,_0xa54274))return{'offset':_0x3a9876,'idLen':_0x584853,'sizeLen':_0x527a00,'dataSize':_0x33280f,'dataOffset':_0x4448f9[_0x352a28(0x102)](_0x3a9876,_0x584853)+_0x527a00};if(isUnknownSize(_0x33280f,_0x527a00))break;_0x3a9876+=_0x584853+_0x527a00+_0x33280f;}return null;}function computeDurationMs(_0x39b52a,_0x320374){const _0x449938=_0x1f0d,_0x327bb3={'JgKFR':function(_0x36dd8e,_0x3e100e){return _0x36dd8e<_0x3e100e;},'ukANT':function(_0x13a2cc,_0x31ece0,_0x54d43f){return _0x13a2cc(_0x31ece0,_0x54d43f);},'NhMOZ':function(_0x5541be,_0x5bab63,_0xc5cbf4){return _0x5541be(_0x5bab63,_0xc5cbf4);},'HcZCv':function(_0x1faf44,_0x559f2f){return _0x1faf44+_0x559f2f;},'mHxGq':function(_0xbe35f2,_0x3a26aa,_0x41856e){return _0xbe35f2(_0x3a26aa,_0x41856e);},'fkKYH':function(_0x45a024,_0x40b32f){return _0x45a024===_0x40b32f;},'xWzVA':function(_0x47c7ea,_0xfd026b){return _0x47c7ea+_0xfd026b;},'cCFLC':function(_0x4aa991,_0x2a8356){return _0x4aa991<_0x2a8356;},'GARZI':function(_0x481e8c,_0x529dd3){return _0x481e8c===_0x529dd3;},'didZP':function(_0x5820e5,_0x4c26df){return _0x5820e5+_0x4c26df;},'vCMGi':function(_0x5de47f,_0x4fbcde){return _0x5de47f+_0x4fbcde;},'uzvzW':function(_0x42aee9,_0x8735ac){return _0x42aee9*_0x8735ac;},'mLAxa':function(_0x11e7bd,_0x4ca62d){return _0x11e7bd>_0x4ca62d;},'MgWcu':function(_0x183485,_0x4510ed){return _0x183485===_0x4510ed;},'CTJEU':function(_0x1a631e,_0x56e98c){return _0x1a631e+_0x56e98c;}};let _0x35b885=0x0;const _0xb9f9b5=Buffer[_0x449938(0x12f)]([0x1f,0x43,0xb6,0x75]);let _0x4edbc5=_0x39b52a[_0x449938(0x125)](_0xb9f9b5);if(_0x4edbc5===-0x1)return 0x0;while(_0x327bb3['JgKFR'](_0x4edbc5,_0x39b52a['length'])){const [_0x1ca5ea,_0x3068c6]=_0x327bb3[_0x449938(0x12b)](readId,_0x39b52a,_0x4edbc5);if(_0x1ca5ea!==ID_CLUSTER)break;const [_0x2ff878,_0x5c31f9]=_0x327bb3['NhMOZ'](readVint,_0x39b52a,_0x327bb3['HcZCv'](_0x4edbc5,_0x3068c6)),_0x44e2d6=_0x327bb3['HcZCv'](_0x4edbc5+_0x3068c6,_0x5c31f9),_0x33db6d=isUnknownSize(_0x2ff878,_0x5c31f9);let _0x572e58;if(_0x33db6d){let _0x1db40f=_0x44e2d6;while(_0x1db40f<_0x39b52a['length']-0x4){const [_0x3b2827,_0x1f2106]=_0x327bb3['mHxGq'](readId,_0x39b52a,_0x1db40f);if(_0x327bb3[_0x449938(0x118)](_0x3b2827,ID_CLUSTER)){_0x572e58=_0x1db40f;break;}const [_0x5dc694,_0x324a7a]=readVint(_0x39b52a,_0x1db40f+_0x1f2106);if(isUnknownSize(_0x5dc694,_0x324a7a)){_0x572e58=_0x39b52a[_0x449938(0x11b)];break;}_0x1db40f+=_0x327bb3[_0x449938(0xf9)](_0x1f2106,_0x324a7a)+_0x5dc694;}_0x572e58??=_0x39b52a[_0x449938(0x11b)];}else _0x572e58=_0x44e2d6+_0x2ff878;let _0x2acdfe=0x0,_0x279b0e=_0x44e2d6;while(_0x327bb3[_0x449938(0x107)](_0x279b0e,_0x572e58)){const [_0x35080d,_0x2eaf00]=readId(_0x39b52a,_0x279b0e),[_0x5ca864,_0x197724]=readVint(_0x39b52a,_0x327bb3[_0x449938(0xf9)](_0x279b0e,_0x2eaf00));if(_0x327bb3['GARZI'](_0x35080d,ID_TIMESTAMP))_0x2acdfe=readUint(_0x39b52a,_0x327bb3[_0x449938(0xf6)](_0x279b0e,_0x2eaf00)+_0x197724,_0x5ca864);else{if(_0x35080d===ID_SIMPLE_BLOCK&&_0x5ca864>=0x4){const _0x4f56e8=_0x327bb3['vCMGi'](_0x279b0e+_0x2eaf00,_0x197724),[,_0x3521d7]=_0x327bb3['ukANT'](readVint,_0x39b52a,_0x4f56e8),_0x156bb=_0x39b52a['readInt16BE'](_0x327bb3[_0x449938(0x106)](_0x4f56e8,_0x3521d7)),_0x4b81f3=_0x327bb3['uzvzW'](_0x2acdfe+_0x156bb,_0x320374)/0xf4240;_0x327bb3[_0x449938(0x11f)](_0x4b81f3,_0x35b885)&&(_0x35b885=_0x4b81f3);}else{if(_0x327bb3[_0x449938(0x10b)](_0x35080d,ID_CLUSTER))break;}}if(_0x327bb3[_0x449938(0xf0)](isUnknownSize,_0x5ca864,_0x197724))break;_0x279b0e+=_0x327bb3['CTJEU'](_0x2eaf00+_0x197724,_0x5ca864);}_0x4edbc5=_0x572e58;}return _0x35b885;}function _0x9856(){const _0x3c6f97=['QuVyq','VBGrd','84732XNQdDo','MgWcu','pow','aTOVm','EoVMd','NkBoM','PKtdR','FRZuf','PqwGf','slice','GHRdO','dataOffset','TtulA','sizeLen','fkKYH','2094128xHkvcZ','LVirF','length','endsWith','cOrgB','425180wYgotn','mLAxa','alloc','1248NuucNG','floor','error','nmTck','indexOf','argv','87502GUprJY','writeDoubleBE','uMfGd','3598hRwEue','ukANT','QWIoT','log','FUSNS','from','NjXer','gWYpb','2394282mQGSiv','mHxGq','1eCTSJp','FLOmu','klizm','jwZtc','dsmvc','didZP','wIoeL','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','xWzVA','PSqiu','uGpSC','3765771MvJOOp','isNKC','offset','jIZwf','dataSize','concat','lNqLH','oUMwe','cOypn','sWOFs','HcZCv','cCFLC'];_0x9856=function(){return _0x3c6f97;};return _0x9856();}export function fixWebmDuration(_0x4b9763,_0x154792){const _0x2f865f=_0x1f0d,_0x31e6e6={'TtulA':function(_0xd3aef9,_0x3d1e52,_0x81819){return _0xd3aef9(_0x3d1e52,_0x81819);},'VBGrd':function(_0x36b5b2,_0x164744){return _0x36b5b2+_0x164744;},'NHZBT':function(_0x483157,_0x316bc1){return _0x483157!==_0x316bc1;},'PSqiu':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','guwJq':function(_0x52fc0b,_0xba2a64,_0x34e9a2){return _0x52fc0b(_0xba2a64,_0x34e9a2);},'jIZwf':function(_0x53d14e,_0x42420e){return _0x53d14e+_0x42420e;},'klizm':function(_0x53014f,_0x29e2da){return _0x53014f+_0x29e2da;},'gWYpb':function(_0x35a8e4,_0x148a83){return _0x35a8e4===_0x148a83;},'SJxrw':function(_0x27faa5,_0x2531de,_0x2f3246,_0x1bff35,_0x2ca0a9){return _0x27faa5(_0x2531de,_0x2f3246,_0x1bff35,_0x2ca0a9);},'LVirF':function(_0x53a584,_0x5541ee,_0x245102,_0x419e91){return _0x53a584(_0x5541ee,_0x245102,_0x419e91);},'EoVMd':function(_0x396a61,_0xa2804a){return _0x396a61<=_0xa2804a;},'mqUuF':'Could\x20not\x20compute\x20duration','Xvsqk':function(_0x53f493,_0x1df1b4){return _0x53f493/_0x1df1b4;},'Celtv':function(_0x191b79,_0x1c95a9){return _0x191b79*_0x1c95a9;},'EPBFJ':function(_0x1fbc94,_0x4b4a21){return _0x1fbc94(_0x4b4a21);}},_0x46e1a4=readFileSync(_0x4b9763);let _0x4f152e=0x0;const [_0x251183,_0x3bb243]=readId(_0x46e1a4,_0x4f152e),[_0x365353,_0x5a2b90]=_0x31e6e6[_0x2f865f(0x116)](readVint,_0x46e1a4,_0x4f152e+_0x3bb243);_0x4f152e+=_0x31e6e6['VBGrd'](_0x3bb243+_0x5a2b90,_0x365353);const [_0x11303b,_0x1800cd]=readId(_0x46e1a4,_0x4f152e);if(_0x31e6e6['NHZBT'](_0x11303b,ID_SEGMENT))return console[_0x2f865f(0x123)](_0x31e6e6[_0x2f865f(0xfa)]),![];const [,_0x3c1fdc]=_0x31e6e6['guwJq'](readVint,_0x46e1a4,_0x31e6e6['VBGrd'](_0x4f152e,_0x1800cd)),_0x1e3c44=_0x31e6e6[_0x2f865f(0xff)](_0x4f152e,_0x1800cd)+_0x3c1fdc;let _0x198d7b=_0x1e3c44;const _0x4ef1f2=Math['min'](_0x46e1a4['length'],_0x31e6e6['jIZwf'](_0x1e3c44,0x2710));let _0x13e6e2=null,_0x507f32=null;while(_0x198d7b<_0x4ef1f2){const [_0x1e20bd,_0x184490]=readId(_0x46e1a4,_0x198d7b),[_0x268007,_0x7b0a46]=readVint(_0x46e1a4,_0x31e6e6[_0x2f865f(0xf3)](_0x198d7b,_0x184490));_0x1e20bd===ID_VOID&&!_0x13e6e2&&(_0x13e6e2={'offset':_0x198d7b,'idLen':_0x184490,'sizeLen':_0x7b0a46,'dataSize':_0x268007,'dataOffset':_0x198d7b+_0x184490+_0x7b0a46});if(_0x31e6e6[_0x2f865f(0x131)](_0x1e20bd,ID_INFO)){_0x507f32={'offset':_0x198d7b,'idLen':_0x184490,'sizeLen':_0x7b0a46,'dataSize':_0x268007,'dataOffset':_0x31e6e6[_0x2f865f(0xf3)](_0x31e6e6[_0x2f865f(0x109)](_0x198d7b,_0x184490),_0x7b0a46)};break;}if(_0x1e20bd===ID_CLUSTER)break;if(isUnknownSize(_0x268007,_0x7b0a46))break;_0x198d7b+=_0x31e6e6['klizm'](_0x31e6e6[_0x2f865f(0xf3)](_0x184490,_0x7b0a46),_0x268007);}if(!_0x507f32)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x3cacc2=_0x31e6e6['SJxrw'](findElement,_0x46e1a4,_0x507f32[_0x2f865f(0x115)],_0x507f32['dataOffset']+_0x507f32['dataSize'],ID_DURATION);if(_0x3cacc2)return![];const _0xd9b023=findElement(_0x46e1a4,_0x507f32[_0x2f865f(0x115)],_0x507f32[_0x2f865f(0x115)]+_0x507f32[_0x2f865f(0x100)],ID_TIMESTAMP_SCALE);let _0x3ff920=0xf4240;_0xd9b023&&(_0x3ff920=_0x31e6e6[_0x2f865f(0x11a)](readUint,_0x46e1a4,_0xd9b023['dataOffset'],_0xd9b023['dataSize']));const _0x5672a1=computeDurationMs(_0x46e1a4,_0x3ff920);if(_0x31e6e6[_0x2f865f(0x10e)](_0x5672a1,0x0))return console[_0x2f865f(0x123)](_0x31e6e6['mqUuF']),![];const _0xb3a546=_0x31e6e6['Xvsqk'](_0x31e6e6['Celtv'](_0x5672a1,0xf4240),_0x3ff920),_0xba3102=Buffer[_0x2f865f(0x101)]([writeId(ID_DURATION),_0x31e6e6['EPBFJ'](writeVint,0x8),_0x31e6e6['EPBFJ'](writeFloat64,_0xb3a546)]),_0x2d97c2=_0xba3102['length'];if(!_0x13e6e2||_0x13e6e2['offset']<_0x507f32[_0x2f865f(0xfe)]){if(_0x13e6e2){const _0x142b57=_0x13e6e2['idLen']+_0x13e6e2[_0x2f865f(0x117)]+_0x13e6e2[_0x2f865f(0x100)],_0x3077ff=_0x142b57-_0x2d97c2;if(_0x3077ff<0x2)return rewriteFile(_0x46e1a4,_0x507f32,_0xba3102,_0x3ff920,_0x5672a1,_0x154792);const _0x17e2a2=_0x31e6e6['VBGrd'](_0x507f32[_0x2f865f(0x100)],_0x2d97c2),_0x24426d=Buffer['concat']([_0x31e6e6['EPBFJ'](writeId,ID_INFO),writeVint(_0x17e2a2,_0x507f32['sizeLen'])]),_0x84cc20=_0x46e1a4[_0x2f865f(0x113)](_0x507f32[_0x2f865f(0x115)],_0x507f32[_0x2f865f(0x115)]+_0x507f32[_0x2f865f(0x100)]),_0x250070=writeVoid(_0x3077ff),_0x497ea4=_0x46e1a4[_0x2f865f(0x113)](0x0,_0x13e6e2[_0x2f865f(0xfe)]),_0x33d81e=_0x46e1a4[_0x2f865f(0x113)](_0x31e6e6[_0x2f865f(0xff)](_0x507f32['dataOffset'],_0x507f32[_0x2f865f(0x100)]));return writeFileSync(_0x154792,Buffer['concat']([_0x497ea4,_0x250070,_0x24426d,_0x84cc20,_0xba3102,_0x33d81e])),!![];}}return rewriteFile(_0x46e1a4,_0x507f32,_0xba3102,_0x3ff920,_0x5672a1,_0x154792);}function rewriteFile(_0x44f4d3,_0x5b304d,_0x87a8a,_0x4f9b2c,_0x620de6,_0x2b1754){const _0x480863=_0x1f0d,_0x3c2b2e={'HRNoZ':function(_0x1ae186,_0x452b59){return _0x1ae186+_0x452b59;},'nmTck':function(_0x1e24ed,_0x425de2){return _0x1e24ed(_0x425de2);},'PjBpH':function(_0x3f68c5,_0x504ae5){return _0x3f68c5+_0x504ae5;}},_0x69861e=_0x3c2b2e['HRNoZ'](_0x5b304d[_0x480863(0x100)],_0x87a8a[_0x480863(0x11b)]),_0x10b76b=Buffer['concat']([writeId(ID_INFO),_0x3c2b2e[_0x480863(0x124)](writeVint,_0x69861e)]),_0x39393b=_0x3c2b2e['HRNoZ'](_0x5b304d['idLen'],_0x5b304d[_0x480863(0x117)]),_0x1232de=_0x44f4d3[_0x480863(0x113)](0x0,_0x5b304d[_0x480863(0xfe)]),_0x4840c8=_0x44f4d3['slice'](_0x5b304d[_0x480863(0x115)],_0x5b304d['dataOffset']+_0x5b304d['dataSize']),_0x15812e=_0x44f4d3[_0x480863(0x113)](_0x3c2b2e['PjBpH'](_0x5b304d['offset']+_0x39393b,_0x5b304d['dataSize']));return writeFileSync(_0x2b1754,Buffer['concat']([_0x1232de,_0x10b76b,_0x4840c8,_0x87a8a,_0x15812e])),!![];}if(process['argv'][0x1]?.[_0x43746e(0x11c)]('fixWebmDuration.ts')||process[_0x43746e(0x126)][0x1]?.[_0x43746e(0x11c)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x43746e(0x126)][0x3];(!input||!output)&&(console[_0x43746e(0x123)](_0x43746e(0xf8)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x43746e(0x12d)]('Fixed:\x20'+output):console[_0x43746e(0x12d)]('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
1
+ const _0x5ee21e=_0x13a0;(function(_0x8827cd,_0x479b5d){const _0x37d908=_0x13a0,_0x5d874d=_0x8827cd();while(!![]){try{const _0x599640=-parseInt(_0x37d908(0x1ba))/0x1*(-parseInt(_0x37d908(0x1cc))/0x2)+-parseInt(_0x37d908(0x1bb))/0x3+parseInt(_0x37d908(0x1bc))/0x4*(parseInt(_0x37d908(0x1e5))/0x5)+-parseInt(_0x37d908(0x1f0))/0x6+parseInt(_0x37d908(0x1d1))/0x7+parseInt(_0x37d908(0x1c5))/0x8+-parseInt(_0x37d908(0x1d4))/0x9;if(_0x599640===_0x479b5d)break;else _0x5d874d['push'](_0x5d874d['shift']());}catch(_0x3deb37){_0x5d874d['push'](_0x5d874d['shift']());}}}(_0x1016,0xd8b11));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(_0x1a1f85,_0x571a72){const _0x1f8d0a=_0x13a0,_0x476390={'Xtpgh':function(_0xa38454,_0x478ae8){return _0xa38454>=_0x478ae8;},'zwvjQ':function(_0x212188,_0x2ac2ab){return _0x212188>_0x2ac2ab;},'VGeCJ':function(_0x3c8645,_0x1c08e8){return _0x3c8645&_0x1c08e8;},'IjEOb':function(_0x2c4451,_0x5ce26c){return _0x2c4451<_0x5ce26c;},'MmWin':function(_0x285390,_0xbeca6a){return _0x285390+_0xbeca6a;}};if(_0x476390[_0x1f8d0a(0x1be)](_0x571a72,_0x1a1f85['length']))return[0x0,0x0];const _0x34eefc=_0x1a1f85[_0x571a72];let _0x58b544=0x1,_0xc7b503=0x80;while(_0x58b544<=0x8&&!(_0x34eefc&_0xc7b503)){_0x58b544++,_0xc7b503>>=0x1;}if(_0x476390[_0x1f8d0a(0x1dc)](_0x571a72+_0x58b544,_0x1a1f85['length']))return[0x0,0x0];let _0x225ce9=_0x476390['VGeCJ'](_0x34eefc,_0xc7b503-0x1);for(let _0x5722f3=0x1;_0x476390[_0x1f8d0a(0x1b1)](_0x5722f3,_0x58b544);_0x5722f3++){_0x225ce9=_0x225ce9*0x100+_0x1a1f85[_0x476390[_0x1f8d0a(0x1da)](_0x571a72,_0x5722f3)];}return[_0x225ce9,_0x58b544];}function readId(_0x3a3002,_0x2d555a){const _0x3d92e2=_0x13a0,_0x4b7fd9={'nfarh':function(_0x54eed1,_0x3d387a){return _0x54eed1>=_0x3d387a;},'xKjZm':function(_0x5516ee,_0x31795d){return _0x5516ee>=_0x31795d;},'iDgvC':function(_0xf96c5d,_0x22e344){return _0xf96c5d>_0x22e344;},'wTout':function(_0xf2eb1a,_0x1e3bf4){return _0xf2eb1a<_0x1e3bf4;},'jCqQn':function(_0x44b84b,_0x2c8a14){return _0x44b84b*_0x2c8a14;}};if(_0x4b7fd9['nfarh'](_0x2d555a,_0x3a3002[_0x3d92e2(0x1ce)]))return[0x0,0x0];const _0x56fef7=_0x3a3002[_0x2d555a];let _0x51117b;if(_0x4b7fd9['xKjZm'](_0x56fef7,0x80))_0x51117b=0x1;else{if(_0x56fef7>=0x40)_0x51117b=0x2;else{if(_0x4b7fd9['xKjZm'](_0x56fef7,0x20))_0x51117b=0x3;else{if(_0x56fef7>=0x10)_0x51117b=0x4;else return[_0x56fef7,0x1];}}}if(_0x4b7fd9['iDgvC'](_0x2d555a+_0x51117b,_0x3a3002[_0x3d92e2(0x1ce)]))return[0x0,0x0];let _0x219904=0x0;for(let _0x3c3b29=0x0;_0x4b7fd9[_0x3d92e2(0x1d7)](_0x3c3b29,_0x51117b);_0x3c3b29++){_0x219904=_0x4b7fd9['jCqQn'](_0x219904,0x100)+_0x3a3002[_0x2d555a+_0x3c3b29];}return[_0x219904,_0x51117b];}function readUint(_0x2aa660,_0x2e89f0,_0x423ea6){const _0x327e26=_0x13a0,_0x31a082={'oaXaB':function(_0x295bf1,_0x37c10f){return _0x295bf1<_0x37c10f;},'ewQjd':function(_0x490cef,_0x4631bb){return _0x490cef*_0x4631bb;}};let _0x26d19f=0x0;for(let _0x29c10d=0x0;_0x31a082[_0x327e26(0x1f2)](_0x29c10d,_0x423ea6);_0x29c10d++){_0x26d19f=_0x31a082['ewQjd'](_0x26d19f,0x100)+_0x2aa660[_0x2e89f0+_0x29c10d];}return _0x26d19f;}function isUnknownSize(_0x30be05,_0x5d584e){const _0x4c5547=_0x13a0,_0x12c6e9={'fMjYI':function(_0x22ce64,_0x2d775c){return _0x22ce64===_0x2d775c;},'bYDHu':function(_0x5d6f69,_0x4d88b3){return _0x5d6f69*_0x4d88b3;}};return _0x12c6e9['fMjYI'](_0x30be05,Math['pow'](0x2,_0x12c6e9[_0x4c5547(0x1c6)](0x7,_0x5d584e))-0x1);}function _0x1016(){const _0x4bc220=['readInt16BE','FzcYa','hklzO','XwTmU','15IDKEIu','LqmTj','Znvkv','endsWith','bxpbT','error','JtNke','argv','Ytcwu','VPwDj','Rzmno','6912186AKsHWt','FpGwP','oaXaB','xTFNN','log','mnSjt','floor','mARth','mbAXY','IjEOb','JIbnR','dataSize','alloc','wlvmu','jrthm','JkQEu','gStpa','ABICp','105295NhFoYE','4502118zCJVIf','2309588DLavJy','zotRQ','Xtpgh','sizeLen','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','concat','indexOf','vmWyp','11031120LpSCFx','bYDHu','idLen','uPiyS','FfNPx','Could\x20not\x20compute\x20duration','Could\x20not\x20find\x20Info\x20element','10cNMaJw','slice','length','uSFEy','ftNSc','567833WoGAuM','GftTA','sycqD','1605321iUCsOE','offset','LyrSG','wTout','kqfgF','from','MmWin','vpNIT','zwvjQ','exit','kmRNk','OmvbT','dataOffset'];_0x1016=function(){return _0x4bc220;};return _0x1016();}function writeId(_0x4ebb9b){const _0xf44294=_0x13a0,_0x2c971e={'FpGwP':function(_0x5000ad,_0x382e2a){return _0x5000ad<=_0x382e2a;},'OmvbT':function(_0x1f26ff,_0x2e5929){return _0x1f26ff&_0x2e5929;},'OVPWV':function(_0x2a2d61,_0x55c8e0){return _0x2a2d61>>_0x55c8e0;},'mbAXY':function(_0x43393e,_0x31b3d5){return _0x43393e&_0x31b3d5;},'CNzvw':function(_0x5b4997,_0x379329){return _0x5b4997&_0x379329;},'Znvkv':function(_0x9034fc,_0x2cf9be){return _0x9034fc>>_0x2cf9be;}};if(_0x2c971e[_0xf44294(0x1f1)](_0x4ebb9b,0xff))return Buffer['from']([_0x4ebb9b]);if(_0x2c971e[_0xf44294(0x1f1)](_0x4ebb9b,0xffff))return Buffer[_0xf44294(0x1d9)]([_0x2c971e[_0xf44294(0x1df)](_0x2c971e['OVPWV'](_0x4ebb9b,0x8),0xff),_0x2c971e[_0xf44294(0x1b0)](_0x4ebb9b,0xff)]);if(_0x4ebb9b<=0xffffff)return Buffer['from']([_0x2c971e['CNzvw'](_0x4ebb9b>>0x10,0xff),_0x4ebb9b>>0x8&0xff,_0x4ebb9b&0xff]);return Buffer['from']([_0x2c971e[_0xf44294(0x1e7)](_0x4ebb9b,0x18)&0xff,_0x2c971e[_0xf44294(0x1e7)](_0x4ebb9b,0x10)&0xff,_0x2c971e['OVPWV'](_0x4ebb9b,0x8)&0xff,_0x4ebb9b&0xff]);}function writeVint(_0x3c2602,_0xbd8c2a){const _0x1f52e6=_0x13a0,_0xb2d716={'pKPMR':function(_0x37db4d,_0x1c61de){return _0x37db4d<_0x1c61de;},'hFgDS':function(_0x8dafd1,_0x102300){return _0x8dafd1*_0x102300;},'mWHLh':function(_0x57168c,_0x48e532){return _0x57168c>=_0x48e532;},'jrthm':function(_0x51dd80,_0x20b738){return _0x51dd80&_0x20b738;},'FzcYa':function(_0x28117d,_0x1d0c77){return _0x28117d<<_0x1d0c77;},'AYOHM':function(_0x3f3fc6,_0x51da81){return _0x3f3fc6-_0x51da81;}};let _0x28083e=_0xbd8c2a||0x1;while(_0xb2d716['pKPMR'](Math['pow'](0x2,_0xb2d716['hFgDS'](0x7,_0x28083e))-0x2,_0x3c2602))_0x28083e++;const _0x5003f8=Buffer['alloc'](_0x28083e);for(let _0x4ff913=_0x28083e-0x1;_0xb2d716['mWHLh'](_0x4ff913,0x0);_0x4ff913--){_0x5003f8[_0x4ff913]=_0xb2d716[_0x1f52e6(0x1b6)](_0x3c2602,0xff),_0x3c2602=Math[_0x1f52e6(0x1f6)](_0x3c2602/0x100);}return _0x5003f8[0x0]|=_0xb2d716[_0x1f52e6(0x1e2)](0x1,_0xb2d716['AYOHM'](0x8,_0x28083e)),_0x5003f8;}function writeFloat64(_0x2ff8f5){const _0x191876=Buffer['alloc'](0x8);return _0x191876['writeDoubleBE'](_0x2ff8f5,0x0),_0x191876;}function writeVoid(_0x5db6ec){const _0xbb3938=_0x13a0,_0x271822={'zotRQ':function(_0x197221,_0x35cce8){return _0x197221<=_0x35cce8;},'xTFNN':function(_0x3eaf27,_0x41d4ef){return _0x3eaf27-_0x41d4ef;},'XcNPK':function(_0x175555,_0x4f85f3){return _0x175555>=_0x4f85f3;},'IMRWW':function(_0x34afd0,_0x4faf64){return _0x34afd0<=_0x4faf64;},'ledEI':function(_0x2d4927,_0x5181fe){return _0x2d4927*_0x5181fe;}};for(let _0x544a3b=0x1;_0x271822[_0xbb3938(0x1bd)](_0x544a3b,0x8);_0x544a3b++){const _0x53db48=_0x271822[_0xbb3938(0x1f3)](_0x5db6ec-0x1,_0x544a3b);if(_0x271822['XcNPK'](_0x53db48,0x0)&&_0x271822['IMRWW'](_0x53db48,Math['pow'](0x2,_0x271822['ledEI'](0x7,_0x544a3b))-0x2))return Buffer[_0xbb3938(0x1c2)]([Buffer['from']([ID_VOID]),writeVint(_0x53db48,_0x544a3b),Buffer[_0xbb3938(0x1b4)](_0x53db48)]);}return Buffer['alloc'](0x0);}function findElement(_0x2997be,_0x5d4480,_0x5c91c1,_0x56f2df){const _0x37dff7=_0x13a0,_0x3f95eb={'wuONB':function(_0xe90d5e,_0x3e9c3c){return _0xe90d5e<_0x3e9c3c;},'gStpa':function(_0x4a631a,_0x360cc4,_0x563c67){return _0x4a631a(_0x360cc4,_0x563c67);},'JIbnR':function(_0x3fa197,_0xdf9f8f){return _0x3fa197+_0xdf9f8f;},'ABICp':function(_0x210782,_0xa4a662){return _0x210782+_0xa4a662;}};let _0x109297=_0x5d4480;while(_0x3f95eb['wuONB'](_0x109297,_0x5c91c1)){const [_0x434d75,_0x310f68]=_0x3f95eb[_0x37dff7(0x1b8)](readId,_0x2997be,_0x109297),[_0xaafa7e,_0x379e6b]=readVint(_0x2997be,_0x109297+_0x310f68);if(_0x434d75===_0x56f2df)return{'offset':_0x109297,'idLen':_0x310f68,'sizeLen':_0x379e6b,'dataSize':_0xaafa7e,'dataOffset':_0x3f95eb[_0x37dff7(0x1b2)](_0x3f95eb[_0x37dff7(0x1b9)](_0x109297,_0x310f68),_0x379e6b)};if(_0x3f95eb[_0x37dff7(0x1b8)](isUnknownSize,_0xaafa7e,_0x379e6b))break;_0x109297+=_0x3f95eb['ABICp'](_0x310f68+_0x379e6b,_0xaafa7e);}return null;}function computeDurationMs(_0x3472ee,_0xaffaf){const _0x32f16a=_0x13a0,_0x3f3f0e={'JtNke':function(_0x2dbb3c,_0x300bce){return _0x2dbb3c<_0x300bce;},'JkQEu':function(_0x1fdd31,_0x11d35e,_0x44a081){return _0x1fdd31(_0x11d35e,_0x44a081);},'XwTmU':function(_0x5d05d5,_0x4a19b3){return _0x5d05d5!==_0x4a19b3;},'Ytcwu':function(_0x25cec5,_0x2c24d5){return _0x25cec5+_0x2c24d5;},'ZRniW':function(_0x343782,_0x20e3c9){return _0x343782-_0x20e3c9;},'Rzmno':function(_0x33e0c4,_0x182466,_0x5a21e5){return _0x33e0c4(_0x182466,_0x5a21e5);},'mARth':function(_0x22b59f,_0x4f57a7){return _0x22b59f===_0x4f57a7;},'vpNIT':function(_0x31f521,_0x259f75){return _0x31f521+_0x259f75;},'uPiyS':function(_0xe69125,_0x2db98f,_0x5ee4d2){return _0xe69125(_0x2db98f,_0x5ee4d2);},'wlvmu':function(_0x26a8a6,_0xe8bd24,_0xb5324,_0x3b4d9a){return _0x26a8a6(_0xe8bd24,_0xb5324,_0x3b4d9a);},'lRoIu':function(_0x2e1444,_0x4b0f5e){return _0x2e1444+_0x4b0f5e;},'vmWyp':function(_0x4e19e7,_0x2b81c7){return _0x4e19e7+_0x2b81c7;},'FttTe':function(_0x110b1a,_0x173a4c){return _0x110b1a/_0x173a4c;},'VPwDj':function(_0x3fc7d0,_0x11a956){return _0x3fc7d0*_0x11a956;},'kmRNk':function(_0xb2b6ba,_0x4ccd1c){return _0xb2b6ba+_0x4ccd1c;},'fDHCY':function(_0x477bfc,_0x3eda80){return _0x477bfc>_0x3eda80;},'txLrc':function(_0x1ed022,_0x373718){return _0x1ed022===_0x373718;},'LyrSG':function(_0x478b2e,_0x1afea8){return _0x478b2e+_0x1afea8;}};let _0x29083f=0x0;const _0x16e7f1=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xafeb3d=_0x3472ee[_0x32f16a(0x1c3)](_0x16e7f1);if(_0xafeb3d===-0x1)return 0x0;while(_0x3f3f0e[_0x32f16a(0x1eb)](_0xafeb3d,_0x3472ee[_0x32f16a(0x1ce)])){const [_0x4afb6e,_0x1c56c8]=_0x3f3f0e[_0x32f16a(0x1b7)](readId,_0x3472ee,_0xafeb3d);if(_0x3f3f0e[_0x32f16a(0x1e4)](_0x4afb6e,ID_CLUSTER))break;const [_0x40f3e8,_0x3f0d48]=readVint(_0x3472ee,_0xafeb3d+_0x1c56c8),_0x100cca=_0x3f3f0e[_0x32f16a(0x1ed)](_0x3f3f0e['Ytcwu'](_0xafeb3d,_0x1c56c8),_0x3f0d48),_0x5e9fdb=isUnknownSize(_0x40f3e8,_0x3f0d48);let _0x17d78b;if(_0x5e9fdb){let _0x127eaa=_0x100cca;while(_0x127eaa<_0x3f3f0e['ZRniW'](_0x3472ee[_0x32f16a(0x1ce)],0x4)){const [_0x2c0850,_0x3d492e]=_0x3f3f0e[_0x32f16a(0x1ef)](readId,_0x3472ee,_0x127eaa);if(_0x3f3f0e[_0x32f16a(0x1af)](_0x2c0850,ID_CLUSTER)){_0x17d78b=_0x127eaa;break;}const [_0x65245e,_0x2cd4f1]=_0x3f3f0e['Rzmno'](readVint,_0x3472ee,_0x127eaa+_0x3d492e);if(isUnknownSize(_0x65245e,_0x2cd4f1)){_0x17d78b=_0x3472ee[_0x32f16a(0x1ce)];break;}_0x127eaa+=_0x3f3f0e[_0x32f16a(0x1ed)](_0x3f3f0e['Ytcwu'](_0x3d492e,_0x2cd4f1),_0x65245e);}_0x17d78b??=_0x3472ee[_0x32f16a(0x1ce)];}else _0x17d78b=_0x3f3f0e[_0x32f16a(0x1db)](_0x100cca,_0x40f3e8);let _0x52a363=0x0,_0x251586=_0x100cca;while(_0x251586<_0x17d78b){const [_0x7f436e,_0x3ab420]=readId(_0x3472ee,_0x251586),[_0xfe4afc,_0x589b9b]=_0x3f3f0e['uPiyS'](readVint,_0x3472ee,_0x251586+_0x3ab420);if(_0x7f436e===ID_TIMESTAMP)_0x52a363=_0x3f3f0e[_0x32f16a(0x1b5)](readUint,_0x3472ee,_0x3f3f0e['lRoIu'](_0x251586,_0x3ab420)+_0x589b9b,_0xfe4afc);else{if(_0x7f436e===ID_SIMPLE_BLOCK&&_0xfe4afc>=0x4){const _0x32d9ca=_0x3f3f0e[_0x32f16a(0x1c4)](_0x251586+_0x3ab420,_0x589b9b),[,_0x4314ba]=_0x3f3f0e[_0x32f16a(0x1c8)](readVint,_0x3472ee,_0x32d9ca),_0x301fa8=_0x3472ee[_0x32f16a(0x1e1)](_0x3f3f0e[_0x32f16a(0x1c4)](_0x32d9ca,_0x4314ba)),_0x227fbd=_0x3f3f0e['FttTe'](_0x3f3f0e[_0x32f16a(0x1ee)](_0x3f3f0e[_0x32f16a(0x1de)](_0x52a363,_0x301fa8),_0xaffaf),0xf4240);_0x3f3f0e['fDHCY'](_0x227fbd,_0x29083f)&&(_0x29083f=_0x227fbd);}else{if(_0x3f3f0e['txLrc'](_0x7f436e,ID_CLUSTER))break;}}if(_0x3f3f0e[_0x32f16a(0x1b7)](isUnknownSize,_0xfe4afc,_0x589b9b))break;_0x251586+=_0x3f3f0e[_0x32f16a(0x1d6)](_0x3f3f0e[_0x32f16a(0x1d6)](_0x3ab420,_0x589b9b),_0xfe4afc);}_0xafeb3d=_0x17d78b;}return _0x29083f;}function _0x13a0(_0x125a35,_0x4922e2){_0x125a35=_0x125a35-0x1af;const _0x10169a=_0x1016();let _0x13a055=_0x10169a[_0x125a35];return _0x13a055;}export function fixWebmDuration(_0x228d6c,_0x30cc39){const _0x4289ae=_0x13a0,_0x4db317={'FfNPx':function(_0x525715,_0x45d9cf){return _0x525715(_0x45d9cf);},'ftNSc':function(_0x40b507,_0x38e4e3,_0x5622d0){return _0x40b507(_0x38e4e3,_0x5622d0);},'ZHklY':function(_0x5e7d17,_0x17920a){return _0x5e7d17+_0x17920a;},'VSKyJ':_0x4289ae(0x1c1),'bxpbT':function(_0x26d1df,_0x4c848e){return _0x26d1df+_0x4c848e;},'mnSjt':function(_0x2f6ebb,_0x285233){return _0x2f6ebb===_0x285233;},'LqmTj':function(_0xe4100e,_0x3457f7){return _0xe4100e<=_0x3457f7;},'hklzO':_0x4289ae(0x1ca),'OSyLG':function(_0x271d7a,_0x34c25d){return _0x271d7a<_0x34c25d;},'OkxWs':function(_0x386a5d,_0x5184fa){return _0x386a5d+_0x5184fa;},'kqfgF':function(_0x981cfe,_0x1da603){return _0x981cfe-_0x1da603;},'GftTA':function(_0x18ed54,_0x4b9a66,_0x71f92,_0x4685cc,_0x56f8d7,_0x5dddb4,_0x416772){return _0x18ed54(_0x4b9a66,_0x71f92,_0x4685cc,_0x56f8d7,_0x5dddb4,_0x416772);},'sycqD':function(_0x4aebfb,_0x35e958){return _0x4aebfb+_0x35e958;},'LHkAt':function(_0x1b87c1,_0xfb6ac4){return _0x1b87c1+_0xfb6ac4;}},_0x1a97d2=_0x4db317[_0x4289ae(0x1c9)](readFileSync,_0x228d6c);let _0x5e8832=0x0;const [_0x2cf411,_0x42878]=readId(_0x1a97d2,_0x5e8832),[_0x2c11da,_0x85635d]=_0x4db317[_0x4289ae(0x1d0)](readVint,_0x1a97d2,_0x5e8832+_0x42878);_0x5e8832+=_0x4db317['ZHklY'](_0x42878,_0x85635d)+_0x2c11da;const [_0x567d10,_0x354599]=readId(_0x1a97d2,_0x5e8832);if(_0x567d10!==ID_SEGMENT)return console[_0x4289ae(0x1ea)](_0x4db317['VSKyJ']),![];const [,_0x23f9d9]=_0x4db317['ftNSc'](readVint,_0x1a97d2,_0x4db317['ZHklY'](_0x5e8832,_0x354599)),_0x5b2889=_0x4db317[_0x4289ae(0x1e9)](_0x5e8832+_0x354599,_0x23f9d9);let _0xa59bd1=_0x5b2889;const _0x36341f=Math['min'](_0x1a97d2[_0x4289ae(0x1ce)],_0x5b2889+0x2710);let _0xa4f848=null,_0x1313d0=null;while(_0xa59bd1<_0x36341f){const [_0xf38b14,_0x324ea5]=_0x4db317[_0x4289ae(0x1d0)](readId,_0x1a97d2,_0xa59bd1),[_0x58f138,_0x2deea0]=readVint(_0x1a97d2,_0x4db317['bxpbT'](_0xa59bd1,_0x324ea5));_0x4db317['mnSjt'](_0xf38b14,ID_VOID)&&!_0xa4f848&&(_0xa4f848={'offset':_0xa59bd1,'idLen':_0x324ea5,'sizeLen':_0x2deea0,'dataSize':_0x58f138,'dataOffset':_0x4db317['bxpbT'](_0xa59bd1,_0x324ea5)+_0x2deea0});if(_0xf38b14===ID_INFO){_0x1313d0={'offset':_0xa59bd1,'idLen':_0x324ea5,'sizeLen':_0x2deea0,'dataSize':_0x58f138,'dataOffset':_0xa59bd1+_0x324ea5+_0x2deea0};break;}if(_0x4db317[_0x4289ae(0x1f5)](_0xf38b14,ID_CLUSTER))break;if(_0x4db317['ftNSc'](isUnknownSize,_0x58f138,_0x2deea0))break;_0xa59bd1+=_0x4db317['bxpbT'](_0x324ea5,_0x2deea0)+_0x58f138;}if(!_0x1313d0)return console[_0x4289ae(0x1ea)](_0x4289ae(0x1cb)),![];const _0x30ca46=findElement(_0x1a97d2,_0x1313d0['dataOffset'],_0x1313d0['dataOffset']+_0x1313d0['dataSize'],ID_DURATION);if(_0x30ca46)return![];const _0x4ea898=findElement(_0x1a97d2,_0x1313d0['dataOffset'],_0x1313d0['dataOffset']+_0x1313d0[_0x4289ae(0x1b3)],ID_TIMESTAMP_SCALE);let _0x1f5704=0xf4240;_0x4ea898&&(_0x1f5704=readUint(_0x1a97d2,_0x4ea898[_0x4289ae(0x1e0)],_0x4ea898[_0x4289ae(0x1b3)]));const _0x48acbd=_0x4db317[_0x4289ae(0x1d0)](computeDurationMs,_0x1a97d2,_0x1f5704);if(_0x4db317[_0x4289ae(0x1e6)](_0x48acbd,0x0))return console[_0x4289ae(0x1ea)](_0x4db317[_0x4289ae(0x1e3)]),![];const _0x5b6180=_0x48acbd*0xf4240/_0x1f5704,_0x2f1191=Buffer[_0x4289ae(0x1c2)]([_0x4db317[_0x4289ae(0x1c9)](writeId,ID_DURATION),_0x4db317[_0x4289ae(0x1c9)](writeVint,0x8),_0x4db317['FfNPx'](writeFloat64,_0x5b6180)]),_0x4c6b10=_0x2f1191[_0x4289ae(0x1ce)];if(!_0xa4f848||_0x4db317['OSyLG'](_0xa4f848['offset'],_0x1313d0[_0x4289ae(0x1d5)])){if(_0xa4f848){const _0xb438c=_0x4db317['OkxWs'](_0xa4f848[_0x4289ae(0x1c7)],_0xa4f848[_0x4289ae(0x1bf)])+_0xa4f848['dataSize'],_0x127424=_0x4db317[_0x4289ae(0x1d8)](_0xb438c,_0x4c6b10);if(_0x127424<0x2)return _0x4db317[_0x4289ae(0x1d2)](rewriteFile,_0x1a97d2,_0x1313d0,_0x2f1191,_0x1f5704,_0x48acbd,_0x30cc39);const _0x4dd48d=_0x4db317[_0x4289ae(0x1d3)](_0x1313d0['dataSize'],_0x4c6b10),_0x550d88=Buffer[_0x4289ae(0x1c2)]([writeId(ID_INFO),writeVint(_0x4dd48d,_0x1313d0[_0x4289ae(0x1bf)])]),_0x5258d0=_0x1a97d2['slice'](_0x1313d0[_0x4289ae(0x1e0)],_0x4db317['LHkAt'](_0x1313d0[_0x4289ae(0x1e0)],_0x1313d0['dataSize'])),_0x2980c0=writeVoid(_0x127424),_0x4777ba=_0x1a97d2[_0x4289ae(0x1cd)](0x0,_0xa4f848[_0x4289ae(0x1d5)]),_0x394fb7=_0x1a97d2['slice'](_0x1313d0['dataOffset']+_0x1313d0[_0x4289ae(0x1b3)]);return _0x4db317[_0x4289ae(0x1d0)](writeFileSync,_0x30cc39,Buffer['concat']([_0x4777ba,_0x2980c0,_0x550d88,_0x5258d0,_0x2f1191,_0x394fb7])),!![];}}return rewriteFile(_0x1a97d2,_0x1313d0,_0x2f1191,_0x1f5704,_0x48acbd,_0x30cc39);}function rewriteFile(_0x1e9310,_0x18fea5,_0x38a0bb,_0x320ee4,_0x283abd,_0x4d8705){const _0x558308=_0x13a0,_0x2b512f={'osQHo':function(_0x18f0db,_0x1bb976){return _0x18f0db+_0x1bb976;},'LasPk':function(_0x57b050,_0x32e1ef){return _0x57b050(_0x32e1ef);},'uSFEy':function(_0x36dd3c,_0x15f520){return _0x36dd3c+_0x15f520;}},_0x32cdec=_0x2b512f['osQHo'](_0x18fea5['dataSize'],_0x38a0bb[_0x558308(0x1ce)]),_0x4f8d1f=Buffer['concat']([writeId(ID_INFO),_0x2b512f['LasPk'](writeVint,_0x32cdec)]),_0x3acbac=_0x18fea5[_0x558308(0x1c7)]+_0x18fea5[_0x558308(0x1bf)],_0x64e35b=_0x1e9310['slice'](0x0,_0x18fea5['offset']),_0x2c7767=_0x1e9310[_0x558308(0x1cd)](_0x18fea5['dataOffset'],_0x2b512f[_0x558308(0x1cf)](_0x18fea5[_0x558308(0x1e0)],_0x18fea5['dataSize'])),_0x5653d5=_0x1e9310['slice'](_0x2b512f['uSFEy'](_0x18fea5[_0x558308(0x1d5)],_0x3acbac)+_0x18fea5['dataSize']);return writeFileSync(_0x4d8705,Buffer[_0x558308(0x1c2)]([_0x64e35b,_0x4f8d1f,_0x2c7767,_0x38a0bb,_0x5653d5])),!![];}if(process[_0x5ee21e(0x1ec)][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x5ee21e(0x1ec)][0x1]?.[_0x5ee21e(0x1e8)]('fixWebmDuration.js')){const input=process[_0x5ee21e(0x1ec)][0x2],output=process[_0x5ee21e(0x1ec)][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x5ee21e(0x1dd)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x5ee21e(0x1f4)](_0x5ee21e(0x1c0));}
@@ -1 +1 @@
1
- (function(_0x4413d5,_0x1444b5){const _0x2422f6=_0x3b83,_0x17ee05=_0x4413d5();while(!![]){try{const _0x3b5d2f=parseInt(_0x2422f6(0xb4))/0x1+-parseInt(_0x2422f6(0xab))/0x2*(-parseInt(_0x2422f6(0xb3))/0x3)+parseInt(_0x2422f6(0xae))/0x4*(parseInt(_0x2422f6(0xb0))/0x5)+parseInt(_0x2422f6(0xad))/0x6*(-parseInt(_0x2422f6(0xb1))/0x7)+-parseInt(_0x2422f6(0xac))/0x8+-parseInt(_0x2422f6(0xaa))/0x9*(parseInt(_0x2422f6(0xaf))/0xa)+parseInt(_0x2422f6(0xb8))/0xb*(-parseInt(_0x2422f6(0xb7))/0xc);if(_0x3b5d2f===_0x1444b5)break;else _0x17ee05['push'](_0x17ee05['shift']());}catch(_0x139eb6){_0x17ee05['push'](_0x17ee05['shift']());}}}(_0x38a5,0x3fb21));function _0x3b83(_0x185c33,_0x326a40){_0x185c33=_0x185c33-0xaa;const _0x38a529=_0x38a5();let _0x3b8388=_0x38a529[_0x185c33];return _0x3b8388;}import{execFile as _0x5b73c4}from'child_process';function _0x38a5(){const _0x31c432=['120DPhQim','1464SkFRkd','5410jxgJwD','5655NGLmvx','9142qmUUvw','--error-unmatch','72492VRfoMK','105555YaYMri','Bpdde','kqCll','12jRIQWL','3026221IvizPP','1557FSDWEj','22SOIPEm','1036672ZKyvNY'];_0x38a5=function(){return _0x31c432;};return _0x38a5();}import{promisify}from'util';const execFile=promisify(_0x5b73c4);export async function isPathGitTracked(_0x2435e0){const _0x167fbd=_0x3b83,_0x2eccda={'kqCll':function(_0x3dc367,_0x3d39e0,_0xf6ab1c,_0x292e06){return _0x3dc367(_0x3d39e0,_0xf6ab1c,_0x292e06);},'Bpdde':'git'};try{return await _0x2eccda[_0x167fbd(0xb6)](execFile,_0x2eccda[_0x167fbd(0xb5)],['ls-files',_0x167fbd(0xb2),_0x2435e0],{'cwd':process['cwd']()}),!![];}catch{return![];}}
1
+ (function(_0x52c5ac,_0x1466da){const _0x303b78=_0x1e90,_0xa20aef=_0x52c5ac();while(!![]){try{const _0x7e8b82=-parseInt(_0x303b78(0x1d7))/0x1*(-parseInt(_0x303b78(0x1d3))/0x2)+parseInt(_0x303b78(0x1ce))/0x3*(-parseInt(_0x303b78(0x1da))/0x4)+-parseInt(_0x303b78(0x1d8))/0x5+parseInt(_0x303b78(0x1d9))/0x6+-parseInt(_0x303b78(0x1cf))/0x7*(parseInt(_0x303b78(0x1d5))/0x8)+parseInt(_0x303b78(0x1d2))/0x9+parseInt(_0x303b78(0x1d4))/0xa;if(_0x7e8b82===_0x1466da)break;else _0xa20aef['push'](_0xa20aef['shift']());}catch(_0x4bf39c){_0xa20aef['push'](_0xa20aef['shift']());}}}(_0x9ca7,0xd3eba));import{execFile as _0x5cfc8d}from'child_process';import{promisify}from'util';const execFile=promisify(_0x5cfc8d);function _0x1e90(_0x3ff7c8,_0x35c457){_0x3ff7c8=_0x3ff7c8-0x1ce;const _0x9ca76e=_0x9ca7();let _0x1e900b=_0x9ca76e[_0x3ff7c8];return _0x1e900b;}function _0x9ca7(){const _0x5edfaa=['2258rAMYzD','10097580pgDaSN','32veHSqG','cwd','892RCcSDq','3333660wZBigL','2605818RGAqDb','4nBiGKP','3608751NsAmkf','796047GPuiiA','heSVC','git','6672870DxMaNp'];_0x9ca7=function(){return _0x5edfaa;};return _0x9ca7();}export async function isPathGitTracked(_0xf6058a){const _0xa1b420=_0x1e90,_0xc0bd8c={'heSVC':function(_0x595ae1,_0x2ed23b,_0x2a6376,_0x13353a){return _0x595ae1(_0x2ed23b,_0x2a6376,_0x13353a);}};try{return await _0xc0bd8c[_0xa1b420(0x1d0)](execFile,_0xa1b420(0x1d1),['ls-files','--error-unmatch',_0xf6058a],{'cwd':process[_0xa1b420(0x1d6)]()}),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const _0x1a77de=_0x14c4;(function(_0x409a8a,_0x334ebd){const _0x1dd2a3=_0x14c4,_0x4a75d2=_0x409a8a();while(!![]){try{const _0x12f5e5=-parseInt(_0x1dd2a3(0x1f0))/0x1*(-parseInt(_0x1dd2a3(0x1ea))/0x2)+parseInt(_0x1dd2a3(0x22b))/0x3+-parseInt(_0x1dd2a3(0x211))/0x4+parseInt(_0x1dd2a3(0x1fa))/0x5+-parseInt(_0x1dd2a3(0x1f9))/0x6*(-parseInt(_0x1dd2a3(0x21c))/0x7)+parseInt(_0x1dd2a3(0x204))/0x8+-parseInt(_0x1dd2a3(0x1fe))/0x9*(parseInt(_0x1dd2a3(0x220))/0xa);if(_0x12f5e5===_0x334ebd)break;else _0x4a75d2['push'](_0x4a75d2['shift']());}catch(_0x50a866){_0x4a75d2['push'](_0x4a75d2['shift']());}}}(_0x1b91,0xeaa73));function _0x1b91(){const _0x181abb=['s1vPDLa','lI9LBNzPCM9UBwvUDc5QCW','DeTwv0m','tvjbCwi','qwDhzu8','C2vHCMnO','Bwv2u1a','CfjUEum','uKfor0vsx01duf9ut0TftG','kcGOlISPkYKRksSK','mMTbDMz6CG','yLLeAgW','EK5pDLK','CgjLrvu','BwvZC2fNzq','DhjPBq','nZKZneLzsLLkDW','Bg9N','BwXqte8','r0PJswi','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','yxbWBhK','zw52','zMXZDMi','zu92uKO','mZG1oeTKzffIBG','odaXmdqWu0DQDuXz','yuTdr3m','y2XPlNr4Da','y29UC3rYDwn0B3i','mJG3mtLvDu9dwLy','uLjRvwm','uKfor0vsx0nmsv9ut0TftG','l2fWAs92ms9Ty3aVBwu','lI90B2TLBLjLzNjLC2GUANm','wfjMCMW','mtm1mdG1nNrxB0rKzq','lI4VBwnWqM9VDhn0CMfWlMPZ','BMzKt2m','ywjVCNq','uM5xEuu','rhLRyNC','swv0twu','zKn4yva','uujswxe','r0vu','r0Lusfvcx0vovG','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','vwjTsMW','nJy0nJuYngX6EMTluW','rMLzuuG','DgHKqK4','B2Dwthu','qurxExO','BLvXDMy','DKXyAMK','weLTsNa','t3v3wwu','CMvMCMvZAc50Ehq','rKLiwvu','mtGYndjnt0nryKu','qMXZy1u','u0PvvNG','AwTMu0m','mZqXmeHqrfbyqG','yu9ouKu','qw5YD2y','qvDuvuS','qLrzuwq','s2nQtxm','tuHLr1u','qMLyA28','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','DxrMltG','z3zzEu8','nta5ndCZmNfAu1vXAq','yMPzDhe','tujKy1C','zvfTsey','rgvdEee','C21ArwC','qvDqwNy','Buzpy0m','Dg9tDhjPBMC','rhHcvKq','rNHdEeq'];_0x1b91=function(){return _0x181abb;};return _0x1b91();}const _0x4c8c88=(function(){const _0x454886=_0x14c4,_0x5b5765={'BlscU':function(_0x4d545d,_0x1725e9){return _0x4d545d===_0x1725e9;},'XImJp':_0x454886(0x1eb),'AWPZv':_0x454886(0x21f),'FxCxD':function(_0x1d2fb8,_0xa645f){return _0x1d2fb8 instanceof _0xa645f;}};let _0x2170ff=!![];return function(_0x246957,_0x3b519d){const _0x21e5c6=_0x454886,_0x33f89e={'XRfrl':function(_0x1eda2e,_0x5143b2){const _0x2a0485=_0x14c4;return _0x5b5765[_0x2a0485(0x235)](_0x1eda2e,_0x5143b2);},'gvYyO':_0x21e5c6(0x20f)},_0x1b376d=_0x2170ff?function(){const _0x52ae44=_0x21e5c6;if(_0x5b5765[_0x52ae44(0x21d)](_0x5b5765[_0x52ae44(0x218)],_0x5b5765[_0x52ae44(0x231)])){const _0x4e1ede=_0x33f89e[_0x52ae44(0x203)](_0x8190e3,_0x566d4f)?_0x38f4ef[_0x52ae44(0x1ee)]:_0x5ebdb1(_0x1012a1);throw new _0x2937a2(_0x52ae44(0x1f4)+_0x4e1ede+'\x0a'+_0x33f89e[_0x52ae44(0x22a)]);}else{if(_0x3b519d){if(_0x5b5765[_0x52ae44(0x21d)](_0x52ae44(0x1f3),_0x52ae44(0x1f3))){const _0x4b0ce8=_0x3b519d[_0x52ae44(0x1f5)](_0x246957,arguments);return _0x3b519d=null,_0x4b0ce8;}else{if(_0x2f2738){const _0x48db35=_0x1ea79d['apply'](_0x2f8593,arguments);return _0x59eae7=null,_0x48db35;}}}}}:function(){};return _0x2170ff=![],_0x1b376d;};}()),_0x18aae1=_0x4c8c88(this,function(){const _0x323cb6=_0x14c4,_0xb3eb91={'nfdOc':_0x323cb6(0x1e9)};return _0x18aae1[_0x323cb6(0x233)]()[_0x323cb6(0x1e5)](_0xb3eb91[_0x323cb6(0x206)])[_0x323cb6(0x233)]()['constructor'](_0x18aae1)[_0x323cb6(0x1e5)](_0xb3eb91[_0x323cb6(0x206)]);});_0x18aae1();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x1a77de(0x200),ENV_TOKEN_LEGACY=_0x1a77de(0x1e8),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x1a77de(0x1fc)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x1a77de(0x21a));function isGitHubCI(){const _0x414275=_0x1a77de;return!!process[_0x414275(0x1f6)][_0x414275(0x20e)];}async function writeToGitHubEnv(_0xa9c3bf,_0xc7bcf6){const _0x9ae086=_0x1a77de,_0x532c83={'SJUVx':function(_0x1814a9,_0x51321e){return _0x1814a9!==_0x51321e;},'QBRYq':_0x9ae086(0x224)},_0x1481d0=process[_0x9ae086(0x1f6)][_0x9ae086(0x20e)];if(_0x1481d0){if(_0x532c83[_0x9ae086(0x21e)](_0x532c83[_0x9ae086(0x20c)],_0x532c83[_0x9ae086(0x20c)])){const _0x5c0df4=_0x93130c[_0x9ae086(0x1f5)](_0x245308,arguments);return _0x3c9735=null,_0x5c0df4;}else await appendFile(_0x1481d0,_0xa9c3bf+'='+_0xc7bcf6+'\x0a');}}export async function storeToken(_0x3cd49f){const _0x1bbbb0=_0x1a77de,_0x4464a5={'AgGeO':_0x1bbbb0(0x1e9),'wgvoo':function(_0x54ae96){return _0x54ae96();},'AWTUK':'aKCGs','vLXji':function(_0x4c2d81,_0x4087bd,_0x261c58){return _0x4c2d81(_0x4087bd,_0x261c58);},'nUqvf':function(_0x4f63cb,_0x434682){return _0x4f63cb!==_0x434682;},'IetMe':_0x1bbbb0(0x1e6),'aONRE':function(_0x55c49d,_0x466b30,_0x241721,_0x44e112){return _0x55c49d(_0x466b30,_0x241721,_0x44e112);}};if(_0x4464a5['wgvoo'](isGitHubCI)){if(_0x1bbbb0(0x1fb)!==_0x4464a5[_0x1bbbb0(0x223)])return _0x1d4ea5['toString']()[_0x1bbbb0(0x1e5)](BSypEb[_0x1bbbb0(0x1e4)])[_0x1bbbb0(0x233)]()[_0x1bbbb0(0x1fd)](_0x33aa2f)[_0x1bbbb0(0x1e5)]('(((.+)+)+)+$');else await _0x4464a5[_0x1bbbb0(0x217)](writeToGitHubEnv,ENV_TOKEN,_0x3cd49f);}else{if(_0x4464a5[_0x1bbbb0(0x216)](_0x4464a5[_0x1bbbb0(0x20a)],_0x4464a5[_0x1bbbb0(0x20a)]))return![];else await _0x4464a5[_0x1bbbb0(0x217)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4464a5[_0x1bbbb0(0x221)](writeFile,TOKEN_PATH,_0x3cd49f,{'mode':0x180});}}export async function getToken(){const _0x2fb329=_0x1a77de,_0x360512={'ZdRRe':'utf-8','thdBN':_0x2fb329(0x22e),'pgAHF':_0x2fb329(0x21b),'ADWyz':function(_0x58a0eb){return _0x58a0eb();},'fJclk':function(_0x14aba0,_0x28982a){return _0x14aba0(_0x28982a);},'mhGpd':_0x2fb329(0x205),'KUivP':function(_0x5cc9bb,_0x426a2c){return _0x5cc9bb!==_0x426a2c;},'eOvRJ':'AXslf','pKlbR':_0x2fb329(0x232),'Dykbw':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','VrQyO':function(_0x184cdc){return _0x184cdc();},'MBdcW':function(_0x36184e){return _0x36184e();},'BiXko':function(_0x3e3b2f,_0x59b5e4){return _0x3e3b2f instanceof _0x59b5e4;},'tKVWC':function(_0x47b50c,_0x1c220e){return _0x47b50c(_0x1c220e);},'smZEg':function(_0x2e6ddf,_0x131bf9){return _0x2e6ddf+_0x131bf9;},'bjYtq':_0x2fb329(0x228)};if(process['env'][ENV_TOKEN])return process[_0x2fb329(0x1f6)][ENV_TOKEN];if(process[_0x2fb329(0x1f6)][ENV_TOKEN_LEGACY])return process[_0x2fb329(0x1f6)][ENV_TOKEN_LEGACY];let _0x4d0536=null;try{_0x4d0536=(await readFile(TOKEN_PATH,_0x360512['ZdRRe']))[_0x2fb329(0x1ef)]()||null;}catch{if(_0x360512[_0x2fb329(0x213)]===_0x360512['pgAHF'])return null;else{const _0x1e2aa3=await _0x360512[_0x2fb329(0x215)](tryRefreshToken);return _0x1e2aa3;}}if(!_0x4d0536)return null;const _0x117348=await checkTokenValid(_0x4d0536);if(_0x117348)return _0x4d0536;const _0x297db8=await _0x360512['fJclk'](tryPromoteRefreshToken,_0x4d0536);if(_0x297db8)return _0x297db8;const _0x215c66=await _0x360512['ADWyz'](tryRefreshToken);if(_0x215c66)return _0x215c66;const {getMcpAuthOrigin:_0x1af95c,mcpBootstrap:_0x9aea6e}=await import(_0x360512['mhGpd']),_0x411ea4=await _0x1af95c();if(_0x411ea4)try{if(_0x360512[_0x2fb329(0x236)](_0x360512[_0x2fb329(0x1f8)],_0x360512['pKlbR'])){console[_0x2fb329(0x1f1)](_0x360512[_0x2fb329(0x209)]),await _0x360512['VrQyO'](_0x9aea6e);const _0x16d31f=await _0x360512[_0x2fb329(0x22d)](tryRefreshToken);if(_0x16d31f)return _0x16d31f;}else return _0x2ffac0[_0x2fb329(0x1f6)][_0x29b534];}catch(_0x49ef16){const _0x2257b2=_0x360512[_0x2fb329(0x227)](_0x49ef16,Error)?_0x49ef16[_0x2fb329(0x1ee)]:_0x360512[_0x2fb329(0x1e2)](String,_0x49ef16);throw new Error(_0x360512[_0x2fb329(0x230)](_0x2fb329(0x1f4)+_0x2257b2+'\x0a',_0x2fb329(0x20f)));}throw new Error(_0x360512[_0x2fb329(0x22c)]);}async function checkTokenValid(_0x337884){const _0x5aab16=_0x1a77de,_0x51ecc8={'FiYQH':function(_0x11bd3c,_0x30dd0e){return _0x11bd3c(_0x30dd0e);},'OuwYe':function(_0x4b4f59,_0x422200,_0x2ad552){return _0x4b4f59(_0x422200,_0x2ad552);},'pbeEU':_0x5aab16(0x20d),'TGIGO':function(_0x498d0a,_0x55bcf){return _0x498d0a!==_0x55bcf;},'mlPLO':_0x5aab16(0x20b)},_0x1a6f93=new AbortController(),_0x1a2953=_0x51ecc8[_0x5aab16(0x219)](setTimeout,()=>_0x1a6f93[_0x5aab16(0x207)](),0x1388);try{const {getApiBaseUrl:_0x2b9e69}=await import(_0x5aab16(0x1e1)),_0x5475fd=_0x2b9e69(),_0x14d71b=await _0x51ecc8[_0x5aab16(0x219)](fetch,_0x5475fd+_0x5aab16(0x201),{'method':_0x51ecc8[_0x5aab16(0x1ed)],'headers':{'Authorization':'Bearer\x20'+_0x337884},'signal':_0x1a6f93['signal']});return _0x14d71b['ok'];}catch{return!![];}finally{_0x51ecc8['TGIGO'](_0x51ecc8[_0x5aab16(0x1f2)],'fCxaP')?_0x51ecc8[_0x5aab16(0x212)](_0x58ef47,_0x3986ef):clearTimeout(_0x1a2953);}}async function tryRefreshToken(){const _0x198676=_0x1a77de,_0xefc573={'DEDMz':_0x198676(0x202)},{refreshCliToken:_0x43d165}=await import(_0xefc573['DEDMz']);return _0x43d165();}async function tryPromoteRefreshToken(_0x2967c8){const _0x144265=_0x1a77de,_0x329dd5={'flsvb':function(_0xda0ed5,_0x5ba172,_0x16baaf){return _0xda0ed5(_0x5ba172,_0x16baaf);}},{refreshPartnerCliToken:_0xfe4e92}=await import(_0x144265(0x202));return _0x329dd5[_0x144265(0x1f7)](_0xfe4e92,_0x2967c8,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x35f2d9=_0x1a77de,_0x2005e2={'gWjlx':_0x35f2d9(0x225),'woeSe':function(_0x4cad2a,_0x371c8d){return _0x4cad2a(_0x371c8d);}};try{return _0x2005e2['gWjlx']===_0x2005e2['gWjlx']?(await _0x2005e2['woeSe'](unlink,TOKEN_PATH),!![]):![];}catch{return![];}}export async function storeRefreshToken(_0x59739c){const _0x329afa=_0x1a77de,_0x1aba23={'zNOvY':function(_0x667e4a,_0x1231c4,_0x241553,_0x2bdf58){return _0x667e4a(_0x1231c4,_0x241553,_0x2bdf58);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1aba23[_0x329afa(0x1ec)](writeFile,REFRESH_TOKEN_PATH,_0x59739c,{'mode':0x180});}export async function getRefreshToken(){const _0x5de111=_0x1a77de,_0x22a2e2={'DeCxA':function(_0x15d5d3,_0x1089b3,_0x260025){return _0x15d5d3(_0x1089b3,_0x260025);},'Anrwf':_0x5de111(0x229),'UbmJl':function(_0x271b53,_0x184f39){return _0x271b53===_0x184f39;},'RnWyE':_0x5de111(0x1ff)};try{const _0x329885=await _0x22a2e2[_0x5de111(0x22f)](readFile,REFRESH_TOKEN_PATH,_0x22a2e2[_0x5de111(0x222)]);return _0x329885[_0x5de111(0x1ef)]()||null;}catch{if(_0x22a2e2[_0x5de111(0x210)](_0x22a2e2[_0x5de111(0x208)],_0x22a2e2[_0x5de111(0x208)]))return null;else{const _0x18fcaf=_0x52a106?function(){const _0x14d021=_0x5de111;if(_0x4ea7c6){const _0x344af7=_0x3348ca[_0x14d021(0x1f5)](_0x29329f,arguments);return _0x2018d4=null,_0x344af7;}}:function(){};return _0x322c96=![],_0x18fcaf;}}}function _0x14c4(_0x44b99f,_0x1cf55a){_0x44b99f=_0x44b99f-0x1e1;const _0x47dd9b=_0x1b91();let _0x18aae1=_0x47dd9b[_0x44b99f];if(_0x14c4['bfLXPG']===undefined){var _0x4c8c88=function(_0x968617){const _0x3ffa14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe8e175='',_0x3a0820='',_0x257852=_0xe8e175+_0x4c8c88;for(let _0x1f4718=0x0,_0x301a71,_0x323d10,_0x21c8d8=0x0;_0x323d10=_0x968617['charAt'](_0x21c8d8++);~_0x323d10&&(_0x301a71=_0x1f4718%0x4?_0x301a71*0x40+_0x323d10:_0x323d10,_0x1f4718++%0x4)?_0xe8e175+=_0x257852['charCodeAt'](_0x21c8d8+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x301a71>>(-0x2*_0x1f4718&0x6)):_0x1f4718:0x0){_0x323d10=_0x3ffa14['indexOf'](_0x323d10);}for(let _0x3bcd2a=0x0,_0x5c764e=_0xe8e175['length'];_0x3bcd2a<_0x5c764e;_0x3bcd2a++){_0x3a0820+='%'+('00'+_0xe8e175['charCodeAt'](_0x3bcd2a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a0820);};_0x14c4['VNGKfT']=_0x4c8c88,_0x14c4['mCXtem']={},_0x14c4['bfLXPG']=!![];}const _0x1b913d=_0x47dd9b[0x0],_0x14c42b=_0x44b99f+_0x1b913d,_0xec9062=_0x14c4['mCXtem'][_0x14c42b];if(!_0xec9062){const _0x52a106=function(_0x45f236){this['psAySq']=_0x45f236,this['YRYRGC']=[0x1,0x0,0x0],this['hUJjAP']=function(){return'newState';},this['fEpgXN']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['UcCDXH']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x52a106['prototype']['ONeHIm']=function(){const _0x5d03b0=new RegExp(this['fEpgXN']+this['UcCDXH']),_0x547552=_0x5d03b0['test'](this['hUJjAP']['toString']())?--this['YRYRGC'][0x1]:--this['YRYRGC'][0x0];return this['PkyYcR'](_0x547552);},_0x52a106['prototype']['PkyYcR']=function(_0x2ac394){if(!Boolean(~_0x2ac394))return _0x2ac394;return this['NtCHHs'](this['psAySq']);},_0x52a106['prototype']['NtCHHs']=function(_0x322c96){for(let _0x4ea7c6=0x0,_0x29b89c=this['YRYRGC']['length'];_0x4ea7c6<_0x29b89c;_0x4ea7c6++){this['YRYRGC']['push'](Math['round'](Math['random']())),_0x29b89c=this['YRYRGC']['length'];}return _0x322c96(this['YRYRGC'][0x0]);},new _0x52a106(_0x14c4)['ONeHIm'](),_0x18aae1=_0x14c4['VNGKfT'](_0x18aae1),_0x14c4['mCXtem'][_0x14c42b]=_0x18aae1;}else _0x18aae1=_0xec9062;return _0x18aae1;}export async function deleteRefreshToken(){const _0x3ff85d=_0x1a77de,_0x5d50d4={'MHeGU':function(_0x59d885,_0x353e33){return _0x59d885(_0x353e33);},'MRAqb':function(_0x3d85fa,_0x5d95c8){return _0x3d85fa!==_0x5d95c8;},'pRnyC':_0x3ff85d(0x234)};try{return await _0x5d50d4[_0x3ff85d(0x226)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x5d50d4[_0x3ff85d(0x1e3)](_0x5d50d4[_0x3ff85d(0x1e7)],_0x5d50d4[_0x3ff85d(0x1e7)])?!!_0x2495b8[_0x3ff85d(0x1f6)][_0x3ff85d(0x20e)]:![];}}export async function deleteAllCredentials(){const _0x2f4777=_0x1a77de,_0x57ff7b={'ogVLu':function(_0x3804ef){return _0x3804ef();}};await _0x57ff7b[_0x2f4777(0x214)](deleteToken),await deleteRefreshToken();}
1
+ function _0x5969(_0x5b35cf,_0x378f8c){_0x5b35cf=_0x5b35cf-0x190;const _0x38a444=_0x4260();let _0x384e85=_0x38a444[_0x5b35cf];if(_0x5969['qVFVap']===undefined){var _0x1ba8b3=function(_0x268899){const _0x54bbc2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x11f15c='',_0x49f1a1='',_0x5df956=_0x11f15c+_0x1ba8b3;for(let _0x2b2708=0x0,_0x2deac6,_0x2f291a,_0x49e30e=0x0;_0x2f291a=_0x268899['charAt'](_0x49e30e++);~_0x2f291a&&(_0x2deac6=_0x2b2708%0x4?_0x2deac6*0x40+_0x2f291a:_0x2f291a,_0x2b2708++%0x4)?_0x11f15c+=_0x5df956['charCodeAt'](_0x49e30e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2deac6>>(-0x2*_0x2b2708&0x6)):_0x2b2708:0x0){_0x2f291a=_0x54bbc2['indexOf'](_0x2f291a);}for(let _0x1b80bc=0x0,_0x243fdb=_0x11f15c['length'];_0x1b80bc<_0x243fdb;_0x1b80bc++){_0x49f1a1+='%'+('00'+_0x11f15c['charCodeAt'](_0x1b80bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49f1a1);};_0x5969['reJgPU']=_0x1ba8b3,_0x5969['wmDgma']={},_0x5969['qVFVap']=!![];}const _0x426013=_0x38a444[0x0],_0x5969e3=_0x5b35cf+_0x426013,_0x1b5c47=_0x5969['wmDgma'][_0x5969e3];if(!_0x1b5c47){const _0x2125e8=function(_0xdf84ee){this['mqgzdR']=_0xdf84ee,this['uILtkD']=[0x1,0x0,0x0],this['qBzpIl']=function(){return'newState';},this['MJWyNO']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['GiqqTw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2125e8['prototype']['ZLAxXu']=function(){const _0x116c04=new RegExp(this['MJWyNO']+this['GiqqTw']),_0x320a03=_0x116c04['test'](this['qBzpIl']['toString']())?--this['uILtkD'][0x1]:--this['uILtkD'][0x0];return this['qLhext'](_0x320a03);},_0x2125e8['prototype']['qLhext']=function(_0x424a20){if(!Boolean(~_0x424a20))return _0x424a20;return this['yiNSme'](this['mqgzdR']);},_0x2125e8['prototype']['yiNSme']=function(_0x150625){for(let _0x554e3c=0x0,_0x198609=this['uILtkD']['length'];_0x554e3c<_0x198609;_0x554e3c++){this['uILtkD']['push'](Math['round'](Math['random']())),_0x198609=this['uILtkD']['length'];}return _0x150625(this['uILtkD'][0x0]);},new _0x2125e8(_0x5969)['ZLAxXu'](),_0x384e85=_0x5969['reJgPU'](_0x384e85),_0x5969['wmDgma'][_0x5969e3]=_0x384e85;}else _0x384e85=_0x1b5c47;return _0x384e85;}const _0x23530e=_0x5969;(function(_0x5bb827,_0x55fb33){const _0x3825e2=_0x5969,_0x5c0d9=_0x5bb827();while(!![]){try{const _0x59157b=-parseInt(_0x3825e2(0x1c2))/0x1*(-parseInt(_0x3825e2(0x1a3))/0x2)+-parseInt(_0x3825e2(0x1a7))/0x3+parseInt(_0x3825e2(0x19d))/0x4*(-parseInt(_0x3825e2(0x1ac))/0x5)+-parseInt(_0x3825e2(0x1b6))/0x6*(parseInt(_0x3825e2(0x199))/0x7)+-parseInt(_0x3825e2(0x1c9))/0x8+-parseInt(_0x3825e2(0x1a1))/0x9+-parseInt(_0x3825e2(0x1dc))/0xa*(-parseInt(_0x3825e2(0x1d0))/0xb);if(_0x59157b===_0x55fb33)break;else _0x5c0d9['push'](_0x5c0d9['shift']());}catch(_0x3e6fff){_0x5c0d9['push'](_0x5c0d9['shift']());}}}(_0x4260,0x80247));const _0x1ba8b3=(function(){const _0x1394ae=_0x5969,_0x3f2d45={'WwNFX':function(_0x1d92ad,_0x2d82bd){return _0x1d92ad!==_0x2d82bd;},'RkNDB':_0x1394ae(0x1c0)};let _0x4fa2c8=!![];return function(_0x513139,_0x297147){const _0x43f36a={'LMlwa':function(_0xde7568,_0x268b29){const _0x2877c0=_0x5969;return _0x3f2d45[_0x2877c0(0x1c4)](_0xde7568,_0x268b29);},'Znuqb':_0x3f2d45['RkNDB']},_0x28a4f2=_0x4fa2c8?function(){const _0x1db2c8=_0x5969;if(_0x43f36a[_0x1db2c8(0x1a6)](_0x43f36a[_0x1db2c8(0x1c5)],_0x43f36a[_0x1db2c8(0x1c5)])){const _0x3af140=_0x1bb39b[_0x1db2c8(0x1ae)](_0x25335c,arguments);return _0x130487=null,_0x3af140;}else{if(_0x297147){const _0x73d995=_0x297147[_0x1db2c8(0x1ae)](_0x513139,arguments);return _0x297147=null,_0x73d995;}}}:function(){};return _0x4fa2c8=![],_0x28a4f2;};}()),_0x384e85=_0x1ba8b3(this,function(){const _0x490649=_0x5969,_0x5bf2da={'zrVEk':'(((.+)+)+)+$'};return _0x384e85[_0x490649(0x1a8)]()[_0x490649(0x1b0)]('(((.+)+)+)+$')[_0x490649(0x1a8)]()[_0x490649(0x1c6)](_0x384e85)['search'](_0x5bf2da['zrVEk']);});_0x384e85();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x4260(){const _0x32e920=['v3DorLG','wM51Cwi','y29UC3rYDwn0B3i','uxnZq2K','EvHis3m','nZqWote4ne5lELf6Cq','wwHpy0u','ywjVCNq','ve94CgC','DhjPBq','C2LNBMfS','v3nvrLe','mJjpuNjRAuG','Ehz2tge','y2XPlNr4Da','AKDMqxy','sKXLueS','CevfDMC','uwnzCuG','v0HrquG','CKHMywG','BwvZC2fNzq','v2Xduu8','ChfpBgO','mty1mJe4nZbyA3HPywG','se96y3q','DxrMltG','r0Lusfvcx0vovG','yK52zLG','DMfdBhC','vfbHrKC','qMvHCMvYia','uLzIAfC','zw52','r0vu','nJCZotq1m0jcEenKrG','lI90B2TLBLjLzNjLC2GUANm','B2PRsMO','vM9HA2m','nfzLturVBW','q3zgwhm','vuTuBha','lI4VBwnWqM9VDhn0CMfWlMPZ','nZKYmJu0n25btKvZvG','A3zpD2e','mJiYA2L2vu9L','t09yzMy','Cujnthi','te1SD2e','odG2ndmXDg11z09K','Dg9tDhjPBMC','uKfor0vsx0nmsv9ut0TftG','BLfdu00','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','mteZodCZnvPwruLZuq','l2fWAs92ms9Ty3aVBwu','yxbWBhK','C0vNExK','C2vHCMnO','tgjmqM4','Bg9N','DeDtEKi','DgDJENy','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','nKjyEwPhEq','wgTPtvy','ChLZDeS','A2zsEKW','zNnNtKK','q2TwtNq','B0HgwNG','qKXlsuW','ELDhwem','ALzTuNO','CxbyqMq','lI9LBNzPCM9UBwvUDc5QCW','ndyYmvvhvfzcqW','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG'];_0x4260=function(){return _0x32e920;};return _0x4260();}const ENV_TOKEN=_0x23530e(0x1a9),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x23530e(0x1d2)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x31b9d7=_0x23530e;return!!process['env'][_0x31b9d7(0x191)];}async function writeToGitHubEnv(_0x23a3b1,_0x1b5b00){const _0x1084c3=_0x23530e,_0x5b008a={'qBMLr':function(_0x3dcf83,_0x1d0c17,_0x315498){return _0x3dcf83(_0x1d0c17,_0x315498);}},_0x5f4c72=process[_0x1084c3(0x197)]['GITHUB_ENV'];_0x5f4c72&&await _0x5b008a[_0x1084c3(0x1a5)](appendFile,_0x5f4c72,_0x23a3b1+'='+_0x1b5b00+'\x0a');}export async function storeToken(_0x6c7d97){const _0x5ae360=_0x23530e,_0x4f263c={'HgRHZ':function(_0x1057e3,_0x37138c,_0x6b93b9){return _0x1057e3(_0x37138c,_0x6b93b9);},'kfRzL':function(_0x5162ac,_0x57a9c5,_0x1fb6e1,_0x472696){return _0x5162ac(_0x57a9c5,_0x1fb6e1,_0x472696);}};isGitHubCI()?await writeToGitHubEnv(ENV_TOKEN,_0x6c7d97):(await _0x4f263c['HgRHZ'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4f263c[_0x5ae360(0x1b9)](writeFile,TOKEN_PATH,_0x6c7d97,{'mode':0x180}));}export async function getToken(){const _0x37ca30=_0x23530e,_0xebd31d={'kvOwa':function(_0x4f6391,_0x3137d6){return _0x4f6391 instanceof _0x3137d6;},'QcYqH':function(_0x2c096c,_0x864c0a){return _0x2c096c(_0x864c0a);},'UKTlp':function(_0x587087,_0x36596c){return _0x587087+_0x36596c;},'CkVNt':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','WHQAH':_0x37ca30(0x19e),'nQCSM':function(_0x4b71c2,_0x2e8c52){return _0x4b71c2===_0x2e8c52;},'OOXff':function(_0x2eb05b,_0x41fdbc){return _0x2eb05b!==_0x41fdbc;},'vaClw':'MpGWm','tGSzB':function(_0x5d32e6,_0xf808a6,_0x1793ab){return _0x5d32e6(_0xf808a6,_0x1793ab);},'WlCQO':_0x37ca30(0x190),'Voakc':function(_0x29c7f0){return _0x29c7f0();},'GoKXY':function(_0x4505eb,_0x268c5b){return _0x4505eb(_0x268c5b);},'TPaFG':function(_0x4a1961){return _0x4a1961();},'rHfah':_0x37ca30(0x1a0),'pqOlj':_0x37ca30(0x1b5),'fsgNI':function(_0x5dec91,_0x16585a){return _0x5dec91 instanceof _0x16585a;},'LbLBn':function(_0x5127e5,_0xb66a9f){return _0x5127e5+_0xb66a9f;}};if(process[_0x37ca30(0x197)][ENV_TOKEN])return _0xebd31d[_0x37ca30(0x1d7)]!==_0x37ca30(0x19e)?null:process[_0x37ca30(0x197)][ENV_TOKEN];if(process[_0x37ca30(0x197)][ENV_TOKEN_LEGACY]){if(_0xebd31d[_0x37ca30(0x1aa)](_0x37ca30(0x196),_0x37ca30(0x1cc))){const _0x41d866=_0x2125e8?function(){const _0x5f18d3=_0x37ca30;if(_0x554e3c){const _0x3fae00=_0x406174[_0x5f18d3(0x1ae)](_0x2e624d,arguments);return _0xc2784e=null,_0x3fae00;}}:function(){};return _0x150625=![],_0x41d866;}else return process[_0x37ca30(0x197)][ENV_TOKEN_LEGACY];}let _0x45dbfd=null;try{if(_0xebd31d[_0x37ca30(0x1a4)](_0xebd31d[_0x37ca30(0x193)],_0xebd31d[_0x37ca30(0x193)])){const _0x5efe89=_0xebd31d[_0x37ca30(0x1a2)](_0xb7b1fd,_0x470745)?_0x2561ca['message']:_0xebd31d[_0x37ca30(0x1d6)](_0xb185c,_0x396076);throw new _0x164c82(_0xebd31d[_0x37ca30(0x19f)](_0x37ca30(0x1c3)+_0x5efe89+'\x0a',_0xebd31d[_0x37ca30(0x1bb)]));}else _0x45dbfd=(await _0xebd31d[_0x37ca30(0x1b3)](readFile,TOKEN_PATH,_0xebd31d[_0x37ca30(0x1da)]))[_0x37ca30(0x1cd)]()||null;}catch{const _0x4e344a=await _0xebd31d[_0x37ca30(0x19c)](tryRefreshToken);return _0x4e344a;}if(!_0x45dbfd)return null;const _0x3f231f=await _0xebd31d['GoKXY'](checkTokenValid,_0x45dbfd);if(_0x3f231f)return _0x45dbfd;const _0x820893=await tryPromoteRefreshToken(_0x45dbfd);if(_0x820893)return _0x820893;const _0x84e974=await _0xebd31d[_0x37ca30(0x194)](tryRefreshToken);if(_0x84e974)return _0x84e974;const {getMcpAuthOrigin:_0x5d0994,mcpBootstrap:_0x24b759}=await import(_0xebd31d[_0x37ca30(0x1d8)]),_0x4ae83a=await _0xebd31d['TPaFG'](_0x5d0994);if(_0x4ae83a)try{console[_0x37ca30(0x1b2)](_0xebd31d[_0x37ca30(0x1db)]),await _0x24b759();const _0x53a3b3=await tryRefreshToken();if(_0x53a3b3)return _0x53a3b3;}catch(_0x205bb1){const _0x5314f0=_0xebd31d[_0x37ca30(0x1ba)](_0x205bb1,Error)?_0x205bb1[_0x37ca30(0x1d9)]:_0xebd31d['QcYqH'](String,_0x205bb1);throw new Error(_0xebd31d[_0x37ca30(0x1b1)](_0x37ca30(0x1c3)+_0x5314f0+'\x0a',_0xebd31d[_0x37ca30(0x1bb)]));}throw new Error(_0x37ca30(0x1ab));}async function checkTokenValid(_0x510e41){const _0x563ed6=_0x23530e,_0x228743={'QssCi':function(_0x4c5cb6,_0x2175da){return _0x4c5cb6===_0x2175da;},'YhOcE':_0x563ed6(0x1dd),'XkiMV':_0x563ed6(0x1c1),'xvvLa':_0x563ed6(0x198),'ojkJj':function(_0x3d50d7,_0x7ded9f){return _0x3d50d7(_0x7ded9f);}},_0x43a275=new AbortController(),_0x26f868=setTimeout(()=>_0x43a275[_0x563ed6(0x1cb)](),0x1388);try{if(_0x228743[_0x563ed6(0x1c7)](_0x228743[_0x563ed6(0x1ca)],_0x228743[_0x563ed6(0x1ca)])){const {getApiBaseUrl:_0x2c49f9}=await import(_0x228743[_0x563ed6(0x1b7)]),_0x4c7020=_0x2c49f9(),_0x38a911=await fetch(_0x4c7020+_0x563ed6(0x1ad),{'method':_0x228743[_0x563ed6(0x1d1)],'headers':{'Authorization':_0x563ed6(0x195)+_0x510e41},'signal':_0x43a275[_0x563ed6(0x1ce)]});return _0x38a911['ok'];}else _0x209e10(_0x3e3237);}catch{return!![];}finally{_0x228743[_0x563ed6(0x19b)](clearTimeout,_0x26f868);}}async function tryRefreshToken(){const _0xa1bba=_0x23530e,_0x4aba92={'JLePK':_0xa1bba(0x19a),'yXHKs':function(_0x42ac04){return _0x42ac04();}},{refreshCliToken:_0x556ce3}=await import(_0x4aba92[_0xa1bba(0x1d4)]);return _0x4aba92[_0xa1bba(0x1c8)](_0x556ce3);}async function tryPromoteRefreshToken(_0x2da7dc){const _0x5f0fe6=_0x23530e,_0x46ed0f={'WsUFQ':function(_0x2770a6,_0x52d266,_0x302b5b){return _0x2770a6(_0x52d266,_0x302b5b);}},{refreshPartnerCliToken:_0x2db74e}=await import(_0x5f0fe6(0x19a));return _0x46ed0f[_0x5f0fe6(0x1cf)](_0x2db74e,_0x2da7dc,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x3ee792=_0x23530e,_0x399382={'tgczv':function(_0x162381,_0xe5f3ce){return _0x162381!==_0xe5f3ce;},'BLKIL':'wVokD','pystK':'KYzoQ'};try{return await unlink(TOKEN_PATH),!![];}catch{if(_0x399382[_0x3ee792(0x1b4)](_0x399382[_0x3ee792(0x1bd)],_0x399382[_0x3ee792(0x1b8)]))return![];else{if(_0x9b1637){const _0xce3c85=_0x23c306[_0x3ee792(0x1ae)](_0x5baae4,arguments);return _0x101211=null,_0xce3c85;}}}}export async function storeRefreshToken(_0x5240d5){const _0x3d15a7=_0x23530e,_0x22630f={'jGfAv':function(_0xd6e9b7,_0x20099f,_0x54dd59){return _0xd6e9b7(_0x20099f,_0x54dd59);},'jVmRz':function(_0x183fac,_0x1595b1,_0x4cbb14,_0x4720cf){return _0x183fac(_0x1595b1,_0x4cbb14,_0x4720cf);}};await _0x22630f[_0x3d15a7(0x1d3)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x22630f[_0x3d15a7(0x1bf)](writeFile,REFRESH_TOKEN_PATH,_0x5240d5,{'mode':0x180});}export async function getRefreshToken(){const _0x29179f=_0x23530e,_0x55a928={'zkQNR':'mvhBi','oHFZx':'ZBhYu','fxVPD':function(_0x38b299,_0x518ad1,_0x3baca1){return _0x38b299(_0x518ad1,_0x3baca1);},'zolNC':function(_0x11f958,_0x4e93cb){return _0x11f958===_0x4e93cb;},'sEgyy':_0x29179f(0x1d5)};try{if(_0x55a928['zkQNR']!==_0x55a928[_0x29179f(0x1bc)]){const _0x284807=await _0x55a928['fxVPD'](readFile,REFRESH_TOKEN_PATH,_0x29179f(0x190));return _0x284807[_0x29179f(0x1cd)]()||null;}else return!![];}catch{return _0x55a928['zolNC'](_0x29179f(0x1d5),_0x55a928[_0x29179f(0x1af)])?null:!!_0x55108e['env']['GITHUB_ENV'];}}export async function deleteRefreshToken(){const _0x1dad65=_0x23530e,_0x3e73f3={'zWGXC':function(_0x20ec8a,_0x27f5f1){return _0x20ec8a(_0x27f5f1);}};try{return await _0x3e73f3[_0x1dad65(0x1be)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x246657=_0x23530e,_0x22e563={'bNvfX':function(_0x52d032){return _0x52d032();},'YagiU':function(_0xd487cc){return _0xd487cc();}};await _0x22e563[_0x246657(0x192)](deleteToken),await _0x22e563['YagiU'](deleteRefreshToken);}
@@ -1 +1 @@
1
- function _0x5b86(_0x57c248,_0x3c06ac){_0x57c248=_0x57c248-0x15c;const _0x587bb4=_0x5d6c();let _0x511ed4=_0x587bb4[_0x57c248];if(_0x5b86['vRkgts']===undefined){var _0x1fa6ad=function(_0x555661){const _0x4d4956='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a8373='',_0x2e4520='',_0x587ef8=_0x5a8373+_0x1fa6ad;for(let _0x239da5=0x0,_0x1610fe,_0x4066a6,_0xb4d495=0x0;_0x4066a6=_0x555661['charAt'](_0xb4d495++);~_0x4066a6&&(_0x1610fe=_0x239da5%0x4?_0x1610fe*0x40+_0x4066a6:_0x4066a6,_0x239da5++%0x4)?_0x5a8373+=_0x587ef8['charCodeAt'](_0xb4d495+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1610fe>>(-0x2*_0x239da5&0x6)):_0x239da5:0x0){_0x4066a6=_0x4d4956['indexOf'](_0x4066a6);}for(let _0x2ec4ab=0x0,_0x66c71e=_0x5a8373['length'];_0x2ec4ab<_0x66c71e;_0x2ec4ab++){_0x2e4520+='%'+('00'+_0x5a8373['charCodeAt'](_0x2ec4ab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e4520);};_0x5b86['dXoJeL']=_0x1fa6ad,_0x5b86['kiEdZy']={},_0x5b86['vRkgts']=!![];}const _0x5d6cbb=_0x587bb4[0x0],_0x5b8628=_0x57c248+_0x5d6cbb,_0x3da132=_0x5b86['kiEdZy'][_0x5b8628];if(!_0x3da132){const _0x458970=function(_0x859798){this['JITzGt']=_0x859798,this['eLmJjR']=[0x1,0x0,0x0],this['fSvyBY']=function(){return'newState';},this['jDhOuJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CClxDE']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x458970['prototype']['TKjbNt']=function(){const _0x2462cb=new RegExp(this['jDhOuJ']+this['CClxDE']),_0x21c4b1=_0x2462cb['test'](this['fSvyBY']['toString']())?--this['eLmJjR'][0x1]:--this['eLmJjR'][0x0];return this['jBUABh'](_0x21c4b1);},_0x458970['prototype']['jBUABh']=function(_0x175151){if(!Boolean(~_0x175151))return _0x175151;return this['AINQTl'](this['JITzGt']);},_0x458970['prototype']['AINQTl']=function(_0x56a0df){for(let _0x5a6073=0x0,_0x43f196=this['eLmJjR']['length'];_0x5a6073<_0x43f196;_0x5a6073++){this['eLmJjR']['push'](Math['round'](Math['random']())),_0x43f196=this['eLmJjR']['length'];}return _0x56a0df(this['eLmJjR'][0x0]);},new _0x458970(_0x5b86)['TKjbNt'](),_0x511ed4=_0x5b86['dXoJeL'](_0x511ed4),_0x5b86['kiEdZy'][_0x5b8628]=_0x511ed4;}else _0x511ed4=_0x3da132;return _0x511ed4;}(function(_0x3c6ddc,_0x537839){const _0x588070=_0x5b86,_0x3d2455=_0x3c6ddc();while(!![]){try{const _0x5e0153=parseInt(_0x588070(0x170))/0x1+-parseInt(_0x588070(0x162))/0x2+-parseInt(_0x588070(0x16d))/0x3*(parseInt(_0x588070(0x171))/0x4)+parseInt(_0x588070(0x15c))/0x5+parseInt(_0x588070(0x167))/0x6+parseInt(_0x588070(0x16f))/0x7+parseInt(_0x588070(0x160))/0x8*(-parseInt(_0x588070(0x172))/0x9);if(_0x5e0153===_0x537839)break;else _0x3d2455['push'](_0x3d2455['shift']());}catch(_0x19c982){_0x3d2455['push'](_0x3d2455['shift']());}}}(_0x5d6c,0xb8d1c));const _0x1fa6ad=(function(){const _0x53a1b5={'lDCkj':function(_0x9a023,_0x362098){return _0x9a023!==_0x362098;},'CVOdu':'kENJd'};let _0xbacc80=!![];return function(_0x448240,_0x11c4a3){const _0xfefe7=_0xbacc80?function(){const _0x303d6b=_0x5b86;if(_0x11c4a3){if(_0x53a1b5[_0x303d6b(0x168)](_0x53a1b5['CVOdu'],_0x53a1b5[_0x303d6b(0x16b)])){const _0x54a411=_0x411aae[_0x303d6b(0x161)](_0x2f004c,arguments);return _0x22785e=null,_0x54a411;}else{const _0x158e08=_0x11c4a3[_0x303d6b(0x161)](_0x448240,arguments);return _0x11c4a3=null,_0x158e08;}}}:function(){};return _0xbacc80=![],_0xfefe7;};}()),_0x511ed4=_0x1fa6ad(this,function(){const _0x774705=_0x5b86,_0x2f5e09={'WpLox':'(((.+)+)+)+$'};return _0x511ed4['toString']()[_0x774705(0x173)](_0x2f5e09[_0x774705(0x175)])['toString']()[_0x774705(0x166)](_0x511ed4)[_0x774705(0x173)](_0x2f5e09[_0x774705(0x175)]);});_0x511ed4();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x5b1d19,_0x5a6632,_0x55b0e3){const _0x574a5e=_0x5b86,_0x397b41={'EDGvw':function(_0x1b16f8){return _0x1b16f8();},'wAwem':function(_0x372b6a,_0x37b44d){return _0x372b6a===_0x37b44d;},'FFfrp':_0x574a5e(0x15e),'RyLAo':_0x574a5e(0x176),'FlWfg':function(_0x5ce07d){return _0x5ce07d();},'YMwJc':function(_0x3d91f7,_0x26a9d6,_0x4297c1){return _0x3d91f7(_0x26a9d6,_0x4297c1);},'jvAMp':function(_0x8e8e5b,_0x31579d,_0x2b1e4c){return _0x8e8e5b(_0x31579d,_0x2b1e4c);},'lfOwL':'POST','ZssWx':'application/json','OlJAR':function(_0x7addd2,_0x203cf5){return _0x7addd2(_0x203cf5);}},_0x2673e9=await _0x397b41['EDGvw'](getToken);if(!_0x2673e9){if(_0x397b41[_0x574a5e(0x164)](_0x397b41[_0x574a5e(0x174)],_0x397b41['RyLAo'])){const _0x7507f3=_0x458970?function(){const _0x721cad=_0x574a5e;if(_0x5a6073){const _0x4c09d2=_0x582d7f[_0x721cad(0x161)](_0x5eab72,arguments);return _0x3b82ff=null,_0x4c09d2;}}:function(){};return _0x56a0df=![],_0x7507f3;}else return;}const _0x396ee3=_0x397b41[_0x574a5e(0x177)](getApiBaseUrl),_0x231577=new AbortController(),_0x29981d=_0x397b41['YMwJc'](setTimeout,()=>_0x231577[_0x574a5e(0x178)](),0x1388);let _0x8dba0;try{_0x8dba0=await _0x397b41[_0x574a5e(0x16e)](fetch,_0x396ee3+'/api/v1/mcp/local-agent-installations',{'method':_0x397b41[_0x574a5e(0x163)],'headers':{'Authorization':'Bearer\x20'+_0x2673e9,'Content-Type':_0x397b41[_0x574a5e(0x165)]},'body':JSON[_0x574a5e(0x15d)]({'skillName':_0x5b1d19,'cliVersion':_0x55b0e3,'metadata':_0x5a6632}),'signal':_0x231577[_0x574a5e(0x169)]});}finally{_0x397b41[_0x574a5e(0x16a)](clearTimeout,_0x29981d);}if(!_0x8dba0['ok']){const _0x3c39fd=await _0x8dba0['text']();console[_0x574a5e(0x16c)](_0x574a5e(0x15f)+_0x3c39fd);}}function _0x5d6c(){const _0x471318=['ExvnEfK','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','mtKXode4nhzSD2Hqsa','yxbWBhK','mJy1mdG4oe5Ms3Hrwq','BgzpD0W','D0f3zw0','wNnZv3G','y29UC3rYDwn0B3i','mJG0otaWne9ewNLswq','BerdA2O','C2LNBMfS','t2Xkqvi','q1zpzhu','zxjYB3i','odiWnuP6zgzlrW','ANzbtxa','mJq5mZuXouLgBhHuCq','mtuXmJm5ogDXq3bpDG','mJm2te1oCKvb','ouHcru1tAW','C2vHCMnO','rKzMCNa','v3bmB3G','vvvwvha','rMXxzMC','ywjVCNq','nZaWnZy1rM1kBw1O','C3rYAw5NAwz5'];_0x5d6c=function(){return _0x471318;};return _0x5d6c();}
1
+ (function(_0x3ddc51,_0xa6a902){const _0x25ceab=_0x45b7,_0x2782b3=_0x3ddc51();while(!![]){try{const _0x2b0288=parseInt(_0x25ceab(0xb3))/0x1+parseInt(_0x25ceab(0xbc))/0x2+parseInt(_0x25ceab(0xc0))/0x3+-parseInt(_0x25ceab(0xba))/0x4+parseInt(_0x25ceab(0xad))/0x5+-parseInt(_0x25ceab(0xb5))/0x6+parseInt(_0x25ceab(0xb4))/0x7;if(_0x2b0288===_0xa6a902)break;else _0x2782b3['push'](_0x2782b3['shift']());}catch(_0x5f2e22){_0x2782b3['push'](_0x2782b3['shift']());}}}(_0x19d6,0x97879));const _0x42e54b=(function(){let _0x5a0898=!![];return function(_0x494f59,_0x5bc4fc){const _0x415780=_0x5a0898?function(){const _0x24d4f0=_0x45b7;if(_0x5bc4fc){const _0x409820=_0x5bc4fc[_0x24d4f0(0xc9)](_0x494f59,arguments);return _0x5bc4fc=null,_0x409820;}}:function(){};return _0x5a0898=![],_0x415780;};}()),_0x160862=_0x42e54b(this,function(){const _0x368d6a=_0x45b7,_0x5f4b2f={'PdgHb':_0x368d6a(0xae)};return _0x160862['toString']()['search'](_0x5f4b2f[_0x368d6a(0xb0)])['toString']()[_0x368d6a(0xb8)](_0x160862)[_0x368d6a(0xc5)](_0x5f4b2f['PdgHb']);});function _0x45b7(_0x4f0338,_0x11ffbb){_0x4f0338=_0x4f0338-0xad;const _0x3d4d65=_0x19d6();let _0x160862=_0x3d4d65[_0x4f0338];if(_0x45b7['GeetaJ']===undefined){var _0x42e54b=function(_0x3e29e9){const _0x2fbe39='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5f3e7c='',_0x42245c='',_0x1e49f7=_0x5f3e7c+_0x42e54b;for(let _0x26713b=0x0,_0x1ca686,_0x553826,_0x21380e=0x0;_0x553826=_0x3e29e9['charAt'](_0x21380e++);~_0x553826&&(_0x1ca686=_0x26713b%0x4?_0x1ca686*0x40+_0x553826:_0x553826,_0x26713b++%0x4)?_0x5f3e7c+=_0x1e49f7['charCodeAt'](_0x21380e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1ca686>>(-0x2*_0x26713b&0x6)):_0x26713b:0x0){_0x553826=_0x2fbe39['indexOf'](_0x553826);}for(let _0x90b4d6=0x0,_0x24f146=_0x5f3e7c['length'];_0x90b4d6<_0x24f146;_0x90b4d6++){_0x42245c+='%'+('00'+_0x5f3e7c['charCodeAt'](_0x90b4d6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42245c);};_0x45b7['jKqVLb']=_0x42e54b,_0x45b7['pmueoF']={},_0x45b7['GeetaJ']=!![];}const _0x19d621=_0x3d4d65[0x0],_0x45b7c7=_0x4f0338+_0x19d621,_0x27a220=_0x45b7['pmueoF'][_0x45b7c7];if(!_0x27a220){const _0x9dd81d=function(_0xc9c972){this['MYSkrv']=_0xc9c972,this['ebQRpM']=[0x1,0x0,0x0],this['eYisLi']=function(){return'newState';},this['vnKOrr']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['fwUxeX']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x9dd81d['prototype']['fhgSzu']=function(){const _0x2744b7=new RegExp(this['vnKOrr']+this['fwUxeX']),_0x283dd1=_0x2744b7['test'](this['eYisLi']['toString']())?--this['ebQRpM'][0x1]:--this['ebQRpM'][0x0];return this['wTzyCK'](_0x283dd1);},_0x9dd81d['prototype']['wTzyCK']=function(_0x5ba554){if(!Boolean(~_0x5ba554))return _0x5ba554;return this['qXRFoV'](this['MYSkrv']);},_0x9dd81d['prototype']['qXRFoV']=function(_0x17fe40){for(let _0xad1460=0x0,_0x3f3ab3=this['ebQRpM']['length'];_0xad1460<_0x3f3ab3;_0xad1460++){this['ebQRpM']['push'](Math['round'](Math['random']())),_0x3f3ab3=this['ebQRpM']['length'];}return _0x17fe40(this['ebQRpM'][0x0]);},new _0x9dd81d(_0x45b7)['fhgSzu'](),_0x160862=_0x45b7['jKqVLb'](_0x160862),_0x45b7['pmueoF'][_0x45b7c7]=_0x160862;}else _0x160862=_0x27a220;return _0x160862;}_0x160862();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x19d6(){const _0x575a7d=['sunZsgm','ugrNsgi','ue9tva','ve15BeS','mZG3nZe3A0Hlu214','mtmZotmYmtLJBerqBLa','ntq3mJGWnhr4AwPoqq','Dg9tDhjPBMC','AwPsD2S','y29UC3rYDwn0B3i','y3vmz08','ndKWnJq5nMHUy1zPza','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mtu0odGYCxLmCufY','C2LNBMfS','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','DwrJr3a','nda5mdC0sNjxvvvb','CgnIwem','yxbWBgLJyxrPB24VANnVBG','C3rYAw5NAwz5','BgXwANi','C2vHCMnO','Dgv4Da','vgTMtgW','qNPZwg4','yxbWBhK','mtiYmJK1mgHWBwvYzq','kcGOlISPkYKRksSK'];_0x19d6=function(){return _0x575a7d;};return _0x19d6();}export async function logLocalAgentInstallation(_0x469d88,_0x3007cb,_0x2f64a1){const _0x35de62=_0x45b7,_0x3c0d0a={'cuLgO':_0x35de62(0xae),'pcbXC':function(_0x35db9b){return _0x35db9b();},'ijRwk':function(_0x5f0d93,_0x346965){return _0x5f0d93!==_0x346965;},'TkfLl':_0x35de62(0xb2),'uvrQX':function(_0x16dbc4){return _0x16dbc4();},'BzsXn':function(_0x471a50,_0x8c261d,_0x392814){return _0x471a50(_0x8c261d,_0x392814);},'udcGp':_0x35de62(0xb1),'ICsHc':_0x35de62(0xc2),'llVjr':function(_0x5b67d3,_0x2d8c90){return _0x5b67d3(_0x2d8c90);}},_0x3cb9c3=await _0x3c0d0a[_0x35de62(0xc1)](getToken);if(!_0x3cb9c3){if(_0x3c0d0a[_0x35de62(0xb7)]('rfBYL',_0x3c0d0a[_0x35de62(0xc7)]))return;else return _0x47ab7b['toString']()[_0x35de62(0xc5)](lhuSCz[_0x35de62(0xb9)])[_0x35de62(0xb6)]()[_0x35de62(0xb8)](_0x34acf6)[_0x35de62(0xc5)](lhuSCz[_0x35de62(0xb9)]);}const _0x1b7100=_0x3c0d0a['uvrQX'](getApiBaseUrl),_0x2183af=new AbortController(),_0x1bcaee=_0x3c0d0a[_0x35de62(0xc8)](setTimeout,()=>_0x2183af['abort'](),0x1388);let _0x16dc6a;try{_0x16dc6a=await _0x3c0d0a[_0x35de62(0xc8)](fetch,_0x1b7100+_0x35de62(0xbb),{'method':_0x3c0d0a[_0x35de62(0xbf)],'headers':{'Authorization':'Bearer\x20'+_0x3cb9c3,'Content-Type':_0x3c0d0a[_0x35de62(0xaf)]},'body':JSON[_0x35de62(0xc3)]({'skillName':_0x469d88,'cliVersion':_0x2f64a1,'metadata':_0x3007cb}),'signal':_0x2183af[_0x35de62(0xbd)]});}finally{_0x3c0d0a[_0x35de62(0xc4)](clearTimeout,_0x1bcaee);}if(!_0x16dc6a['ok']){const _0x3bff21=await _0x16dc6a[_0x35de62(0xc6)]();console['error'](_0x35de62(0xbe)+_0x3bff21);}}
@@ -1 +1 @@
1
- (function(_0x454944,_0x42656a){const _0x38f11b=_0x3228,_0x4b85f4=_0x454944();while(!![]){try{const _0x373eb1=parseInt(_0x38f11b(0x89))/0x1*(parseInt(_0x38f11b(0x91))/0x2)+parseInt(_0x38f11b(0x8e))/0x3*(parseInt(_0x38f11b(0x92))/0x4)+-parseInt(_0x38f11b(0x8d))/0x5+-parseInt(_0x38f11b(0x90))/0x6*(-parseInt(_0x38f11b(0x8b))/0x7)+parseInt(_0x38f11b(0x88))/0x8+parseInt(_0x38f11b(0x96))/0x9+-parseInt(_0x38f11b(0x87))/0xa*(parseInt(_0x38f11b(0x94))/0xb);if(_0x373eb1===_0x42656a)break;else _0x4b85f4['push'](_0x4b85f4['shift']());}catch(_0x3fa63a){_0x4b85f4['push'](_0x4b85f4['shift']());}}}(_0xe5c2,0x24e58));function originIdentity(_0x12d24e){const _0x3f6b82=_0x3228;try{const _0x5c8769=new URL(_0x12d24e);return _0x5c8769[_0x3f6b82(0x8c)]+'//'+_0x5c8769[_0x3f6b82(0x95)];}catch{return undefined;}}function _0x3228(_0x210afd,_0x329a6a){_0x210afd=_0x210afd-0x87;const _0xe5c267=_0xe5c2();let _0x322820=_0xe5c267[_0x210afd];return _0x322820;}function _0xe5c2(){const _0x1894ca=['1320672XDhXZf','284957ynajPv','BELjO','165291DnikJP','protocol','829895YwqZOC','3bELecT','entries','66YssKKK','2QpJJhq','330324vOMqzY','defaultEnvironmentKey','11gBebUb','host','1613961MYTFHX','6545870uzaFlt'];_0xe5c2=function(){return _0x1894ca;};return _0xe5c2();}export function matchAuthEnvironment(_0x29e814,_0x1cb376){const _0x1fbe3c=_0x3228,_0x3c09f2={'BELjO':function(_0x2079ae,_0x544572){return _0x2079ae(_0x544572);}};if(!_0x1cb376||!_0x1cb376['environments'])return undefined;const _0x4b3581=_0x3c09f2[_0x1fbe3c(0x8a)](originIdentity,_0x29e814);if(!_0x4b3581){if(_0x1cb376['defaultEnvironmentKey']&&_0x1cb376['environments'][_0x1cb376['defaultEnvironmentKey']])return _0x1cb376['defaultEnvironmentKey'];return undefined;}for(const [_0x1e5a7f,_0x27c1f5]of Object[_0x1fbe3c(0x8f)](_0x1cb376['environments'])){for(const _0x189e4d of _0x27c1f5['domains']??[]){const _0x572c5d=_0x3c09f2['BELjO'](originIdentity,_0x189e4d);if(_0x572c5d&&_0x572c5d===_0x4b3581)return _0x1e5a7f;}}if(_0x1cb376['defaultEnvironmentKey']&&_0x1cb376['environments'][_0x1cb376[_0x1fbe3c(0x93)]])return _0x1cb376[_0x1fbe3c(0x93)];return undefined;}
1
+ function _0x42d8(){const _0x43f482=['environments','1984545wBhvaU','970459EWFtSm','host','fBYiQ','35228105cyHqYE','15vaeLEy','defaultEnvironmentKey','DDRQu','1425009BSZnyL','996238snHxnE','6aRSiqY','950952YaIYSR','1rqpztk','40hotwKT','11129700iLrCam'];_0x42d8=function(){return _0x43f482;};return _0x42d8();}function _0x2663(_0x32b7cc,_0x25666d){_0x32b7cc=_0x32b7cc-0x74;const _0x42d85d=_0x42d8();let _0x26634a=_0x42d85d[_0x32b7cc];return _0x26634a;}(function(_0xd77200,_0x1097ba){const _0x1075b4=_0x2663,_0x18f913=_0xd77200();while(!![]){try{const _0x5ce446=parseInt(_0x1075b4(0x76))/0x1*(-parseInt(_0x1075b4(0x83))/0x2)+-parseInt(_0x1075b4(0x82))/0x3+parseInt(_0x1075b4(0x75))/0x4*(parseInt(_0x1075b4(0x7f))/0x5)+parseInt(_0x1075b4(0x74))/0x6*(-parseInt(_0x1075b4(0x7b))/0x7)+-parseInt(_0x1075b4(0x77))/0x8*(parseInt(_0x1075b4(0x7a))/0x9)+-parseInt(_0x1075b4(0x78))/0xa+parseInt(_0x1075b4(0x7e))/0xb;if(_0x5ce446===_0x1097ba)break;else _0x18f913['push'](_0x18f913['shift']());}catch(_0x94b325){_0x18f913['push'](_0x18f913['shift']());}}}(_0x42d8,0x8fae3));function originIdentity(_0x3f60ff){const _0x430526=_0x2663;try{const _0x4b7b82=new URL(_0x3f60ff);return _0x4b7b82['protocol']+'//'+_0x4b7b82[_0x430526(0x7c)];}catch{return undefined;}}export function matchAuthEnvironment(_0x48deef,_0x2ebaef){const _0x3dcdec=_0x2663,_0x508f91={'DDRQu':function(_0x1e042d,_0x5d0fc7){return _0x1e042d(_0x5d0fc7);},'fBYiQ':function(_0x37000a,_0x85b9e){return _0x37000a===_0x85b9e;}};if(!_0x2ebaef||!_0x2ebaef[_0x3dcdec(0x79)])return undefined;const _0x1bc149=_0x508f91[_0x3dcdec(0x81)](originIdentity,_0x48deef);if(!_0x1bc149){if(_0x2ebaef['defaultEnvironmentKey']&&_0x2ebaef[_0x3dcdec(0x79)][_0x2ebaef[_0x3dcdec(0x80)]])return _0x2ebaef[_0x3dcdec(0x80)];return undefined;}for(const [_0x57160a,_0x1ec103]of Object['entries'](_0x2ebaef[_0x3dcdec(0x79)])){for(const _0x467194 of _0x1ec103['domains']??[]){const _0x104822=originIdentity(_0x467194);if(_0x104822&&_0x508f91[_0x3dcdec(0x7d)](_0x104822,_0x1bc149))return _0x57160a;}}if(_0x2ebaef[_0x3dcdec(0x80)]&&_0x2ebaef['environments'][_0x2ebaef[_0x3dcdec(0x80)]])return _0x2ebaef['defaultEnvironmentKey'];return undefined;}
@@ -1 +1 @@
1
- (function(_0x5c39ee,_0xa45500){const _0xb2d4fe=_0x41d3,_0x55ece2=_0x5c39ee();while(!![]){try{const _0x20e446=-parseInt(_0xb2d4fe(0x163))/0x1*(-parseInt(_0xb2d4fe(0x124))/0x2)+parseInt(_0xb2d4fe(0x149))/0x3*(-parseInt(_0xb2d4fe(0x132))/0x4)+-parseInt(_0xb2d4fe(0x151))/0x5+-parseInt(_0xb2d4fe(0x135))/0x6+parseInt(_0xb2d4fe(0x157))/0x7*(parseInt(_0xb2d4fe(0x147))/0x8)+-parseInt(_0xb2d4fe(0x165))/0x9+parseInt(_0xb2d4fe(0x13c))/0xa*(parseInt(_0xb2d4fe(0x134))/0xb);if(_0x20e446===_0xa45500)break;else _0x55ece2['push'](_0x55ece2['shift']());}catch(_0x51d110){_0x55ece2['push'](_0x55ece2['shift']());}}}(_0x5745,0x35a5e));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(_0x1ad571){const _0x3afdcf=_0x41d3,_0x248728={'wInHs':function(_0x23212a,_0x36d9c8){return _0x23212a===_0x36d9c8;},'mDNuz':_0x3afdcf(0x15b)};return _0x248728[_0x3afdcf(0x155)](typeof _0x1ad571,_0x248728[_0x3afdcf(0x13a)])&&_0x1ad571!==null;}function isImageBlock(_0x10c5bc){const _0xb5b221=_0x41d3,_0x160f20={'mrhRv':function(_0x2645c5,_0x139048){return _0x2645c5(_0x139048);}};return _0x160f20[_0xb5b221(0x144)](isRecord,_0x10c5bc)&&_0x10c5bc[_0xb5b221(0x13d)]==='image';}function isDataUrl(_0x24bdfa){const _0x253b1e=_0x41d3;return _0x24bdfa['startsWith'](_0x253b1e(0x15a));}function _0x41d3(_0x3b25c9,_0x59cc59){_0x3b25c9=_0x3b25c9-0x121;const _0x574501=_0x5745();let _0x41d30f=_0x574501[_0x3b25c9];return _0x41d30f;}function parseDataUrl(_0x452b8d){const _0x20ba5c=_0x41d3,_0x4bd893=/^data:([^;]+);base64,(.+)$/[_0x20ba5c(0x14d)](_0x452b8d);if(!_0x4bd893)return null;const _0x19f7aa=_0x4bd893[0x1][_0x20ba5c(0x133)]();if(!isValidMediaType(_0x19f7aa))return null;return{'data':_0x4bd893[0x2],'mediaType':_0x19f7aa};}function isValidMediaType(_0x3920be){const _0x8bd4ac=_0x41d3,_0x2b0cee={'SDYJL':'image/jpeg','mfAay':_0x8bd4ac(0x156)};return[_0x2b0cee['SDYJL'],_0x2b0cee[_0x8bd4ac(0x14e)],_0x8bd4ac(0x127),_0x8bd4ac(0x145)]['includes'](_0x3920be);}function _0x5745(){const _0x42dc6c=['image/png','5026sWGAGL','data','qtcIn','data:','object','NXAUx','DaatH','SnAdx','EQZDj','IMCaV','content','replace','909yftidm','map','2726802UDZRXq','string','kMFaS','content-type','86yZJdPS','charCodeAt','zBtTW','image/gif','Image\x20exceeds\x20size\x20limit\x20(','boNVz','content-length','timeout','image/jpeg','DOXdY','headers','Zuewt','https://','ZbrrY','56996GbIUll','toLowerCase','1258169LNYMEs','2153634rtAXWK','size','source','mimeType','png','mDNuz','EViYm','110eVPhFv','type','byteLength','toString','startsWith','url','output','PostToolUse','mrhRv','image/webp','status','152haEWlI','value','33DdbiLC','gif','file://','Mhhns','exec','mfAay','updated','mqrxG','1362500GGjieA','fdYnZ','\x20bytes)','get','wInHs'];_0x5745=function(){return _0x42dc6c;};return _0x5745();}function inferMediaType(_0x571502,_0x24024e){const _0x101e82=_0x41d3,_0x36f110={'ZzSZu':function(_0x53d85b,_0x1982bf){return _0x53d85b(_0x1982bf);},'UVwdV':'jpeg','DaatH':_0x101e82(0x12c),'wFnRK':_0x101e82(0x156),'dWcIE':_0x101e82(0x14a),'uEIuH':'image/gif'};if(_0x571502){const _0x2b8c43=_0x571502[_0x101e82(0x133)]()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x2b8c43))return _0x2b8c43;}const _0x3c0471=_0x36f110['ZzSZu'](extname,_0x24024e)['toLowerCase']()[_0x101e82(0x162)]('.','');switch(_0x3c0471){case'jpg':case _0x36f110['UVwdV']:return _0x36f110[_0x101e82(0x15d)];case _0x101e82(0x139):return _0x36f110['wFnRK'];case _0x36f110['dWcIE']:return _0x36f110['uEIuH'];case'webp':return'image/webp';default:return _0x101e82(0x156);}}async function readImageFromUrl(_0x24b930){const _0x2a179f=_0x41d3,_0x3ef67c={'Mhhns':function(_0x535f9e,_0x320a22){return _0x535f9e(_0x320a22);},'KxIJh':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','zKDDR':function(_0x754cae,_0x514254){return _0x754cae(_0x514254);},'fdYnZ':function(_0x55bd4f,_0x25d3c5){return _0x55bd4f>_0x25d3c5;},'EQZDj':'http://','qtcIn':'base64','bijwK':function(_0x4d99c5,_0x276690,_0x4795bc){return _0x4d99c5(_0x276690,_0x4795bc);},'NXAUx':function(_0x280125,_0x5ae11d){return _0x280125(_0x5ae11d);},'EViYm':function(_0x5e7bcf,_0x3ec8ea,_0x1a82f7){return _0x5e7bcf(_0x3ec8ea,_0x1a82f7);}};if(_0x3ef67c[_0x2a179f(0x14c)](isDataUrl,_0x24b930)){const _0x8e632c=parseDataUrl(_0x24b930);if(_0x8e632c)return _0x8e632c;throw new Error(_0x3ef67c['KxIJh']);}if(_0x24b930['startsWith'](_0x2a179f(0x14b))){const _0x5de449=_0x3ef67c['zKDDR'](fileURLToPath,_0x24b930),_0x163635=await _0x3ef67c['Mhhns'](stat,_0x5de449);if(_0x3ef67c[_0x2a179f(0x152)](_0x163635[_0x2a179f(0x136)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2a179f(0x153));const _0x5ad97a=await _0x3ef67c['zKDDR'](readFile,_0x5de449);return{'data':_0x5ad97a[_0x2a179f(0x13f)]('base64'),'mediaType':inferMediaType(null,_0x5de449)};}if(_0x24b930[_0x2a179f(0x140)](_0x3ef67c[_0x2a179f(0x15f)])||_0x24b930[_0x2a179f(0x140)](_0x2a179f(0x130))){const _0x1b1863=await fetch(_0x24b930,{'signal':AbortSignal[_0x2a179f(0x12b)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1b1863['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1b1863[_0x2a179f(0x146)]);const _0x1dc331=_0x1b1863[_0x2a179f(0x12e)]['get'](_0x2a179f(0x12a));if(_0x1dc331){const _0x381598=_0x3ef67c[_0x2a179f(0x14c)](Number,_0x1dc331);if(!Number['isNaN'](_0x381598)&&_0x381598>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x2a179f(0x128)+MAX_IMAGE_SIZE_BYTES+_0x2a179f(0x153));}const _0x2f77af=await _0x1b1863['arrayBuffer']();if(_0x3ef67c['fdYnZ'](_0x2f77af[_0x2a179f(0x13e)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2a179f(0x153));return{'data':Buffer['from'](_0x2f77af)[_0x2a179f(0x13f)](_0x3ef67c[_0x2a179f(0x159)]),'mediaType':_0x3ef67c['bijwK'](inferMediaType,_0x1b1863[_0x2a179f(0x12e)][_0x2a179f(0x154)](_0x2a179f(0x123)),_0x24b930)};}const _0xe56c2b=await _0x3ef67c['Mhhns'](stat,_0x24b930);if(_0x3ef67c['fdYnZ'](_0xe56c2b[_0x2a179f(0x136)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2a179f(0x128)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x58f986=await _0x3ef67c[_0x2a179f(0x15c)](readFile,_0x24b930);return{'data':_0x58f986['toString'](_0x3ef67c[_0x2a179f(0x159)]),'mediaType':_0x3ef67c[_0x2a179f(0x13b)](inferMediaType,null,_0x24b930)};}async function convertImageBlockToBase64(_0xa0e0db){const _0x5d2c61=_0x41d3,_0x5c8815={'mqrxG':function(_0x2685d0,_0x5638ee){return _0x2685d0===_0x5638ee;},'Zuewt':'base64'};if(_0x5c8815[_0x5d2c61(0x150)](_0xa0e0db[_0x5d2c61(0x137)]?.['type'],_0x5c8815[_0x5d2c61(0x12f)]))return{'updated':![],'block':_0xa0e0db};if(_0xa0e0db['data']&&_0xa0e0db[_0x5d2c61(0x138)])return{'updated':![],'block':_0xa0e0db};const _0x42b724=_0xa0e0db[_0x5d2c61(0x137)]?.[_0x5d2c61(0x141)]??_0xa0e0db['url'];if(!_0x42b724)return{'updated':![],'block':_0xa0e0db};const _0x5dcae1=await readImageFromUrl(_0x42b724);return{'updated':!![],'block':{..._0xa0e0db,'source':{'type':'base64','media_type':_0x5dcae1['mediaType'],'data':_0x5dcae1[_0x5d2c61(0x158)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x421d3b){const _0x4b570d=_0x41d3,_0x235674={'SnAdx':function(_0x3524e5,_0x44e03e){return _0x3524e5(_0x44e03e);},'kMFaS':function(_0x499169,_0x535395){return _0x499169(_0x535395);}};if(!_0x235674[_0x4b570d(0x122)](isRecord,_0x421d3b))return{'updated':![],'output':_0x421d3b};const _0x553d7b=_0x421d3b[_0x4b570d(0x161)];if(!Array['isArray'](_0x553d7b))return{'updated':![],'output':_0x421d3b};let _0x4f9a00=![];const _0x424588=await Promise['all'](_0x553d7b[_0x4b570d(0x164)](async _0x2d8fdb=>{const _0x593f0c=_0x4b570d;if(!_0x235674[_0x593f0c(0x15e)](isImageBlock,_0x2d8fdb))return _0x2d8fdb;try{const _0x48e370=await _0x235674['kMFaS'](convertImageBlockToBase64,_0x2d8fdb);if(_0x48e370[_0x593f0c(0x14f)])_0x4f9a00=!![];return _0x48e370['block'];}catch{return _0x2d8fdb;}}));if(!_0x4f9a00)return{'updated':![],'output':_0x421d3b};return{'updated':!![],'output':{..._0x421d3b,'content':_0x424588}};}function sanitizeLoneSurrogates(_0x217cb7){const _0x410ddd=_0x41d3,_0x30ec1a={'boNVz':function(_0x8c9d4,_0x58555d){return _0x8c9d4>=_0x58555d;},'zBtTW':function(_0xd03f1a,_0x1e79dc){return _0xd03f1a+_0x1e79dc;},'IMCaV':function(_0x5f2b13,_0x2467a8){return _0x5f2b13+_0x2467a8;},'pmzzy':function(_0x527152,_0x49d7f8){return _0x527152+_0x49d7f8;},'wikdL':function(_0x205ef6,_0x385446){return _0x205ef6<=_0x385446;}};let _0x2d3bea=![],_0x555510='';for(let _0x2b7e4c=0x0;_0x2b7e4c<_0x217cb7['length'];_0x2b7e4c+=0x1){const _0x187584=_0x217cb7['charCodeAt'](_0x2b7e4c);if(_0x30ec1a['boNVz'](_0x187584,0xd800)&&_0x187584<=0xdbff){const _0x368549=_0x217cb7[_0x410ddd(0x125)](_0x30ec1a[_0x410ddd(0x126)](_0x2b7e4c,0x1));if(_0x30ec1a[_0x410ddd(0x129)](_0x368549,0xdc00)&&_0x368549<=0xdfff){_0x555510+=_0x30ec1a[_0x410ddd(0x160)](_0x217cb7[_0x2b7e4c],_0x217cb7[_0x30ec1a['pmzzy'](_0x2b7e4c,0x1)]),_0x2b7e4c+=0x1;continue;}_0x2d3bea=!![],_0x555510+='�';continue;}if(_0x187584>=0xdc00&&_0x30ec1a['wikdL'](_0x187584,0xdfff)){_0x2d3bea=!![],_0x555510+='�';continue;}_0x555510+=_0x217cb7[_0x2b7e4c];}return _0x2d3bea?{'updated':_0x2d3bea,'value':_0x555510}:{'updated':_0x2d3bea,'value':_0x217cb7};}function sanitizeLoneSurrogatesDeep(_0xe8cb50){const _0x17837d=_0x41d3,_0x433f8a={'ZbrrY':function(_0x3ddcde,_0x4c298a){return _0x3ddcde(_0x4c298a);},'DsZtG':_0x17837d(0x121)};if(typeof _0xe8cb50===_0x433f8a['DsZtG'])return sanitizeLoneSurrogates(_0xe8cb50);if(Array['isArray'](_0xe8cb50)){let _0x145b20=![];const _0xd63fd4=_0xe8cb50[_0x17837d(0x164)](_0x234fed=>{const _0x16dcab=_0x17837d,_0x4b5bef=sanitizeLoneSurrogatesDeep(_0x234fed);return _0x4b5bef[_0x16dcab(0x14f)]&&(_0x145b20=!![]),_0x4b5bef[_0x16dcab(0x148)];});return _0x145b20?{'updated':!![],'value':_0xd63fd4}:{'updated':![],'value':_0xe8cb50};}if(!_0x433f8a[_0x17837d(0x131)](isRecord,_0xe8cb50))return{'updated':![],'value':_0xe8cb50};let _0x29cbcc=![];const _0x3474c4=Object['entries'](_0xe8cb50)['map'](([_0x3defe0,_0x5b55b1])=>{const _0x477d0e=_0x17837d,_0x9e7523=_0x433f8a['ZbrrY'](sanitizeLoneSurrogatesDeep,_0x5b55b1);return _0x9e7523[_0x477d0e(0x14f)]&&(_0x29cbcc=!![]),[_0x3defe0,_0x9e7523['value']];});return _0x29cbcc?{'updated':!![],'value':Object['fromEntries'](_0x3474c4)}:{'updated':![],'value':_0xe8cb50};}export function createMcpImageBase64Hook(){const _0x5ad679={'fheIo':function(_0x5bd455,_0x3e061d){return _0x5bd455!==_0x3e061d;},'DOXdY':'PostToolUse'};return async _0x3e8160=>{const _0x1a8c2e=_0x41d3;if(_0x5ad679['fheIo'](_0x3e8160['hook_event_name'],_0x1a8c2e(0x143)))return{};const _0x4214a8=_0x3e8160,_0x51b7d3=await convertToolOutputImagesToBase64(_0x4214a8['tool_response']),_0x421670=sanitizeLoneSurrogatesDeep(_0x51b7d3[_0x1a8c2e(0x142)]),_0x552892=_0x51b7d3[_0x1a8c2e(0x14f)]||_0x421670['updated'];if(!_0x552892)return{};return{'hookSpecificOutput':{'hookEventName':_0x5ad679[_0x1a8c2e(0x12d)],'updatedMCPToolOutput':_0x421670[_0x1a8c2e(0x148)]}};};}
1
+ function _0x10ef(_0x341787,_0x17bda0){_0x341787=_0x341787-0xcb;const _0x2c46eb=_0x2c46();let _0x10ef4b=_0x2c46eb[_0x341787];return _0x10ef4b;}(function(_0x15feb2,_0x24ce91){const _0xb2d3b3=_0x10ef,_0x4c62f6=_0x15feb2();while(!![]){try{const _0x55d207=parseInt(_0xb2d3b3(0xfc))/0x1+parseInt(_0xb2d3b3(0xcd))/0x2*(parseInt(_0xb2d3b3(0xd8))/0x3)+-parseInt(_0xb2d3b3(0xdc))/0x4+-parseInt(_0xb2d3b3(0x108))/0x5+parseInt(_0xb2d3b3(0xf1))/0x6*(parseInt(_0xb2d3b3(0xf9))/0x7)+parseInt(_0xb2d3b3(0xe6))/0x8*(parseInt(_0xb2d3b3(0xd3))/0x9)+-parseInt(_0xb2d3b3(0xec))/0xa;if(_0x55d207===_0x24ce91)break;else _0x4c62f6['push'](_0x4c62f6['shift']());}catch(_0x1265c1){_0x4c62f6['push'](_0x4c62f6['shift']());}}}(_0x2c46,0x97289));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(_0x5a717e){const _0x1f2876=_0x10ef,_0x525ed8={'GoUHY':function(_0x547b2e,_0x48af43){return _0x547b2e===_0x48af43;},'MbstQ':function(_0x8ceb2b,_0x2dea19){return _0x8ceb2b!==_0x2dea19;}};return _0x525ed8[_0x1f2876(0xd5)](typeof _0x5a717e,'object')&&_0x525ed8['MbstQ'](_0x5a717e,null);}function isImageBlock(_0xc864e3){const _0x4ca079=_0x10ef,_0x570470={'hwrZI':function(_0x166ec5,_0x8d4624){return _0x166ec5(_0x8d4624);},'hGHUT':function(_0x8e42b5,_0x2baad1){return _0x8e42b5===_0x2baad1;}};return _0x570470['hwrZI'](isRecord,_0xc864e3)&&_0x570470[_0x4ca079(0xf5)](_0xc864e3[_0x4ca079(0xe9)],'image');}function isDataUrl(_0x2cede8){const _0x3524a8=_0x10ef;return _0x2cede8[_0x3524a8(0x109)](_0x3524a8(0x10a));}function parseDataUrl(_0x58e9c2){const _0x53a68c=_0x10ef,_0x2bcaab=/^data:([^;]+);base64,(.+)$/[_0x53a68c(0x107)](_0x58e9c2);if(!_0x2bcaab)return null;const _0x2ca2ee=_0x2bcaab[0x1][_0x53a68c(0xd9)]();if(!isValidMediaType(_0x2ca2ee))return null;return{'data':_0x2bcaab[0x2],'mediaType':_0x2ca2ee};}function isValidMediaType(_0x57f13b){const _0x526125=_0x10ef,_0x2566cd={'eYEnA':_0x526125(0xdf),'tAVGG':'image/png'};return[_0x2566cd[_0x526125(0xde)],_0x2566cd['tAVGG'],_0x526125(0xd1),_0x526125(0xf8)]['includes'](_0x57f13b);}function inferMediaType(_0x5df1e0,_0x53dc3d){const _0x13e8fc=_0x10ef,_0x191cbe={'frIpe':function(_0x87cd2c,_0x4dc9c5){return _0x87cd2c(_0x4dc9c5);},'BzCZZ':function(_0x86c8a9,_0x1e1193){return _0x86c8a9(_0x1e1193);},'sOdGj':'jpeg','xoXGE':'image/jpeg','jDsMk':'image/gif','XDQqZ':_0x13e8fc(0xf2)};if(_0x5df1e0){const _0x552f81=_0x5df1e0[_0x13e8fc(0xd9)]()[_0x13e8fc(0xd2)](';')[0x0][_0x13e8fc(0xed)]();if(_0x191cbe['frIpe'](isValidMediaType,_0x552f81))return _0x552f81;}const _0x3085f6=_0x191cbe[_0x13e8fc(0x101)](extname,_0x53dc3d)[_0x13e8fc(0xd9)]()[_0x13e8fc(0xcb)]('.','');switch(_0x3085f6){case'jpg':case _0x191cbe[_0x13e8fc(0xe8)]:return _0x191cbe['xoXGE'];case'png':return'image/png';case'gif':return _0x191cbe['jDsMk'];case _0x13e8fc(0xcf):return'image/webp';default:return _0x191cbe[_0x13e8fc(0xcc)];}}async function readImageFromUrl(_0x17c809){const _0x55df2c=_0x10ef,_0xbcff29={'znDmo':_0x55df2c(0xd4),'AEkGc':_0x55df2c(0xea),'lTyyo':function(_0x16ca8a,_0x203bd4){return _0x16ca8a>_0x203bd4;},'YNMQK':function(_0x517274,_0x5a98de){return _0x517274(_0x5a98de);},'AExTx':'base64','Iqxte':'http://','kOMMJ':'https://','zkeaU':function(_0x3e6385,_0x11cad2){return _0x3e6385>_0x11cad2;},'EPSkP':'content-type'};if(isDataUrl(_0x17c809)){const _0x42a8cc=parseDataUrl(_0x17c809);if(_0x42a8cc)return _0x42a8cc;throw new Error(_0xbcff29['znDmo']);}if(_0x17c809['startsWith'](_0xbcff29['AEkGc'])){const _0x1e033a=fileURLToPath(_0x17c809),_0xb35261=await stat(_0x1e033a);if(_0xbcff29[_0x55df2c(0xe0)](_0xb35261[_0x55df2c(0xfe)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x55df2c(0xf7)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x1574e5=await _0xbcff29[_0x55df2c(0xf3)](readFile,_0x1e033a);return{'data':_0x1574e5['toString'](_0xbcff29[_0x55df2c(0xd6)]),'mediaType':inferMediaType(null,_0x1e033a)};}if(_0x17c809['startsWith'](_0xbcff29[_0x55df2c(0xfd)])||_0x17c809[_0x55df2c(0x109)](_0xbcff29['kOMMJ'])){const _0x57ec53=await fetch(_0x17c809,{'signal':AbortSignal[_0x55df2c(0xe1)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x57ec53['ok'])throw new Error(_0x55df2c(0xd7)+_0x57ec53['status']);const _0xdbb063=_0x57ec53[_0x55df2c(0xe2)]['get']('content-length');if(_0xdbb063){const _0xb7b770=Number(_0xdbb063);if(!Number[_0x55df2c(0xe5)](_0xb7b770)&&_0xb7b770>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x4fa271=await _0x57ec53['arrayBuffer']();if(_0xbcff29['zkeaU'](_0x4fa271['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x55df2c(0xf6));return{'data':Buffer[_0x55df2c(0xee)](_0x4fa271)[_0x55df2c(0xdb)](_0xbcff29[_0x55df2c(0xd6)]),'mediaType':inferMediaType(_0x57ec53[_0x55df2c(0xe2)]['get'](_0xbcff29[_0x55df2c(0xf0)]),_0x17c809)};}const _0x36b107=await stat(_0x17c809);if(_0x36b107[_0x55df2c(0xfe)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x552d46=await _0xbcff29['YNMQK'](readFile,_0x17c809);return{'data':_0x552d46['toString'](_0xbcff29['AExTx']),'mediaType':inferMediaType(null,_0x17c809)};}async function convertImageBlockToBase64(_0x4fb81f){const _0x4a7a8b=_0x10ef,_0x5b5d78={'PRYWJ':function(_0x407f0b,_0x36547a){return _0x407f0b(_0x36547a);},'YdDyS':'base64'};if(_0x4fb81f[_0x4a7a8b(0x104)]?.['type']===_0x4a7a8b(0xef))return{'updated':![],'block':_0x4fb81f};if(_0x4fb81f[_0x4a7a8b(0x105)]&&_0x4fb81f['mimeType'])return{'updated':![],'block':_0x4fb81f};const _0x1a1e35=_0x4fb81f[_0x4a7a8b(0x104)]?.[_0x4a7a8b(0xf4)]??_0x4fb81f[_0x4a7a8b(0xf4)];if(!_0x1a1e35)return{'updated':![],'block':_0x4fb81f};const _0x27f038=await _0x5b5d78[_0x4a7a8b(0xfb)](readImageFromUrl,_0x1a1e35);return{'updated':!![],'block':{..._0x4fb81f,'source':{'type':_0x5b5d78[_0x4a7a8b(0xfa)],'media_type':_0x27f038['mediaType'],'data':_0x27f038['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3d1e69){const _0x217d1b=_0x10ef,_0x3b6847={'CFXJA':function(_0x4b4e0a,_0x168821){return _0x4b4e0a(_0x168821);}};if(!_0x3b6847[_0x217d1b(0x10b)](isRecord,_0x3d1e69))return{'updated':![],'output':_0x3d1e69};const _0x21745a=_0x3d1e69[_0x217d1b(0x106)];if(!Array[_0x217d1b(0xe3)](_0x21745a))return{'updated':![],'output':_0x3d1e69};let _0x26a2fa=![];const _0x24ffc7=await Promise['all'](_0x21745a[_0x217d1b(0xe4)](async _0x2d1d76=>{if(!_0x3b6847['CFXJA'](isImageBlock,_0x2d1d76))return _0x2d1d76;try{const _0x3b65b9=await convertImageBlockToBase64(_0x2d1d76);if(_0x3b65b9['updated'])_0x26a2fa=!![];return _0x3b65b9['block'];}catch{return _0x2d1d76;}}));if(!_0x26a2fa)return{'updated':![],'output':_0x3d1e69};return{'updated':!![],'output':{..._0x3d1e69,'content':_0x24ffc7}};}function sanitizeLoneSurrogates(_0x4bf133){const _0x10deb1=_0x10ef,_0x5e8f26={'fhteq':function(_0x3cfa68,_0x33c11a){return _0x3cfa68<=_0x33c11a;},'rYOsd':function(_0x51d9e1,_0x18ad73){return _0x51d9e1<=_0x18ad73;}};let _0x2cc2fb=![],_0x1223be='';for(let _0x4fcb40=0x0;_0x4fcb40<_0x4bf133[_0x10deb1(0x102)];_0x4fcb40+=0x1){const _0x2f443b=_0x4bf133[_0x10deb1(0xe7)](_0x4fcb40);if(_0x2f443b>=0xd800&&_0x5e8f26['fhteq'](_0x2f443b,0xdbff)){const _0x5b007f=_0x4bf133[_0x10deb1(0xe7)](_0x4fcb40+0x1);if(_0x5b007f>=0xdc00&&_0x5b007f<=0xdfff){_0x1223be+=_0x4bf133[_0x4fcb40]+_0x4bf133[_0x4fcb40+0x1],_0x4fcb40+=0x1;continue;}_0x2cc2fb=!![],_0x1223be+='�';continue;}if(_0x2f443b>=0xdc00&&_0x5e8f26['rYOsd'](_0x2f443b,0xdfff)){_0x2cc2fb=!![],_0x1223be+='�';continue;}_0x1223be+=_0x4bf133[_0x4fcb40];}return _0x2cc2fb?{'updated':_0x2cc2fb,'value':_0x1223be}:{'updated':_0x2cc2fb,'value':_0x4bf133};}function sanitizeLoneSurrogatesDeep(_0x4e7cc9){const _0x402efa=_0x10ef,_0x460463={'YxFBa':function(_0x5c56cf,_0x187308){return _0x5c56cf(_0x187308);},'wZmVh':'string'};if(typeof _0x4e7cc9===_0x460463[_0x402efa(0xeb)])return _0x460463[_0x402efa(0xce)](sanitizeLoneSurrogates,_0x4e7cc9);if(Array['isArray'](_0x4e7cc9)){let _0x58d597=![];const _0x2cc30a=_0x4e7cc9[_0x402efa(0xe4)](_0x386dfe=>{const _0x46e8c9=_0x402efa,_0x5bb73f=sanitizeLoneSurrogatesDeep(_0x386dfe);return _0x5bb73f['updated']&&(_0x58d597=!![]),_0x5bb73f[_0x46e8c9(0xff)];});return _0x58d597?{'updated':!![],'value':_0x2cc30a}:{'updated':![],'value':_0x4e7cc9};}if(!isRecord(_0x4e7cc9))return{'updated':![],'value':_0x4e7cc9};let _0x112b16=![];const _0x15f854=Object['entries'](_0x4e7cc9)[_0x402efa(0xe4)](([_0x515260,_0x40450b])=>{const _0x96f79c=_0x402efa,_0x4992eb=_0x460463[_0x96f79c(0xce)](sanitizeLoneSurrogatesDeep,_0x40450b);return _0x4992eb[_0x96f79c(0xdd)]&&(_0x112b16=!![]),[_0x515260,_0x4992eb['value']];});return _0x112b16?{'updated':!![],'value':Object[_0x402efa(0xd0)](_0x15f854)}:{'updated':![],'value':_0x4e7cc9};}export function createMcpImageBase64Hook(){const _0x471348=_0x10ef,_0x5e8c66={'bFvyC':_0x471348(0xda),'jojTX':function(_0x7b5921,_0x5251af){return _0x7b5921(_0x5251af);}};return async _0x269ef6=>{const _0x23fa3f=_0x471348;if(_0x269ef6['hook_event_name']!==_0x5e8c66['bFvyC'])return{};const _0x1a517c=_0x269ef6,_0x32eb53=await _0x5e8c66[_0x23fa3f(0x100)](convertToolOutputImagesToBase64,_0x1a517c[_0x23fa3f(0x103)]),_0xc53e54=sanitizeLoneSurrogatesDeep(_0x32eb53['output']),_0x22c1a0=_0x32eb53['updated']||_0xc53e54[_0x23fa3f(0xdd)];if(!_0x22c1a0)return{};return{'hookSpecificOutput':{'hookEventName':_0x5e8c66['bFvyC'],'updatedMCPToolOutput':_0xc53e54['value']}};};}function _0x2c46(){const _0x11732=['replace','XDQqZ','8fZxveR','YxFBa','webp','fromEntries','image/gif','split','81DksIaR','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','GoUHY','AExTx','Failed\x20to\x20fetch\x20image:\x20','833757qBKmwz','toLowerCase','PostToolUse','toString','1696692xzhBTY','updated','eYEnA','image/jpeg','lTyyo','timeout','headers','isArray','map','isNaN','667336LQdhPY','charCodeAt','sOdGj','type','file://','wZmVh','3556350OimjNH','trim','from','base64','EPSkP','1914xRZUJE','image/png','YNMQK','url','hGHUT','\x20bytes)','Image\x20exceeds\x20size\x20limit\x20(','image/webp','14609hLWmTW','YdDyS','PRYWJ','4447qtImKm','Iqxte','size','value','jojTX','BzCZZ','length','tool_response','source','data','content','exec','5668380eqKDSt','startsWith','data:','CFXJA'];_0x2c46=function(){return _0x11732;};return _0x2c46();}
@@ -1 +1 @@
1
- function _0x2b79(_0x492d6c,_0x3f4cd9){_0x492d6c=_0x492d6c-0xd0;const _0xb9b6ee=_0xb9b6();let _0x2b796c=_0xb9b6ee[_0x492d6c];return _0x2b796c;}const _0x39bfc8=_0x2b79;(function(_0x534e77,_0x31dc1e){const _0x89e890=_0x2b79,_0x2c18ef=_0x534e77();while(!![]){try{const _0x3cecc7=parseInt(_0x89e890(0xd6))/0x1+parseInt(_0x89e890(0xd4))/0x2*(-parseInt(_0x89e890(0xda))/0x3)+parseInt(_0x89e890(0xd1))/0x4+-parseInt(_0x89e890(0xd2))/0x5+-parseInt(_0x89e890(0xd9))/0x6*(parseInt(_0x89e890(0xd5))/0x7)+-parseInt(_0x89e890(0xd8))/0x8+parseInt(_0x89e890(0xd7))/0x9*(parseInt(_0x89e890(0xd3))/0xa);if(_0x3cecc7===_0x31dc1e)break;else _0x2c18ef['push'](_0x2c18ef['shift']());}catch(_0x2f3542){_0x2c18ef['push'](_0x2c18ef['shift']());}}}(_0xb9b6,0x94f34));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x39bfc8(0xd0)};export const DEFAULT_VERIFY_MODEL=_0x39bfc8(0xd0);function _0xb9b6(){const _0x5d2317=['3629820HMlRZs','24761390MPZJpb','326mONIEU','7HdLLdn','368610DVvVLx','9EArvqg','3669024tAhIHc','7300530pqXOQF','12741KusEsB','claude-sonnet-4-6','3435836dSTCMH'];_0xb9b6=function(){return _0x5d2317;};return _0xb9b6();}export function resolveVerifyModel(_0x485179){if(!_0x485179)return undefined;const _0xd62207=_0x485179['trim']();if(!_0xd62207)return undefined;const _0x54d3c4=VERIFY_MODEL_ALIASES[_0xd62207['toLowerCase']()];return _0x54d3c4??_0xd62207;}
1
+ (function(_0x401cdf,_0x4bcb53){const _0x308245=_0x5602,_0x4fd9ca=_0x401cdf();while(!![]){try{const _0xd42194=parseInt(_0x308245(0xbb))/0x1*(-parseInt(_0x308245(0xb8))/0x2)+parseInt(_0x308245(0xb5))/0x3+-parseInt(_0x308245(0xba))/0x4+parseInt(_0x308245(0xb4))/0x5+-parseInt(_0x308245(0xb9))/0x6+-parseInt(_0x308245(0xb3))/0x7+parseInt(_0x308245(0xb7))/0x8;if(_0xd42194===_0x4bcb53)break;else _0x4fd9ca['push'](_0x4fd9ca['shift']());}catch(_0x2d9b7c){_0x4fd9ca['push'](_0x4fd9ca['shift']());}}}(_0x1c1a,0x6844b));function _0x5602(_0x56c877,_0x46ceb8){_0x56c877=_0x56c877-0xb3;const _0x1c1aa4=_0x1c1a();let _0x560247=_0x1c1aa4[_0x56c877];return _0x560247;}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0xd95f8){const _0x23a194=_0x5602,_0xaf0b96={'oXpMh':function(_0x268c81,_0x46492e){return _0x268c81??_0x46492e;}};if(!_0xd95f8)return undefined;const _0x240391=_0xd95f8[_0x23a194(0xb6)]();if(!_0x240391)return undefined;const _0x570b5a=VERIFY_MODEL_ALIASES[_0x240391['toLowerCase']()];return _0xaf0b96['oXpMh'](_0x570b5a,_0x240391);}function _0x1c1a(){const _0x5d419c=['trim','8306344jIjERm','84886NhbjiH','2481222rPBSFa','1037724HpnMsW','17yMEqRE','335454kqMWSa','2748805rFiQOR','844350ErIYDd'];_0x1c1a=function(){return _0x5d419c;};return _0x1c1a();}
@@ -1 +1 @@
1
- (function(_0x38ebf7,_0x1cd976){var _0x423822=_0x1343,_0x1b71e6=_0x38ebf7();while(!![]){try{var _0x466476=parseInt(_0x423822(0x1b8))/0x1+-parseInt(_0x423822(0x1b9))/0x2+-parseInt(_0x423822(0x1b7))/0x3*(-parseInt(_0x423822(0x1b1))/0x4)+-parseInt(_0x423822(0x1ac))/0x5*(parseInt(_0x423822(0x1af))/0x6)+parseInt(_0x423822(0x1aa))/0x7+parseInt(_0x423822(0x1b5))/0x8+-parseInt(_0x423822(0x1ab))/0x9;if(_0x466476===_0x1cd976)break;else _0x1b71e6['push'](_0x1b71e6['shift']());}catch(_0x2f3694){_0x1b71e6['push'](_0x1b71e6['shift']());}}}(_0x3655,0xad0fd));import{homedir}from'os';import{join}from'path';function _0x3655(){var _0xaa4513=['.opencode','opencode','1779336xRqVye','.config','27NPjkiy','1296153uKwYKK','1173870DGyQmP','xTUFz','env','OPENCODE_CONFIG_DIR','1924223mlbegl','3290571yOSAPq','3935yzLfQc','XDG_CONFIG_HOME','qwGDW','9930lzSrYc','user','520196ivinEB','svZYf'];_0x3655=function(){return _0xaa4513;};return _0x3655();}import{getProjectRoot}from'./claudeConfig.js';function _0x1343(_0x23795b,_0x33e67c){_0x23795b=_0x23795b-0x1a9;var _0x3655ee=_0x3655();var _0x1343ae=_0x3655ee[_0x23795b];return _0x1343ae;}export function getOpencodeConfigDir(_0x1f1a26){var _0x5397ba=_0x1343,_0x50a46d={'KiMkF':function(_0x22c98d,_0x1545b6){return _0x22c98d===_0x1545b6;},'maeYc':_0x5397ba(0x1b0),'xTUFz':function(_0x529134,_0x43b6f8,_0x44740f){return _0x529134(_0x43b6f8,_0x44740f);},'wneGc':_0x5397ba(0x1b4),'IjnZe':function(_0x568d2c){return _0x568d2c();},'FbzkR':_0x5397ba(0x1b3)};if(process['env']['OPENCODE_CONFIG_DIR'])return process['env'][_0x5397ba(0x1a9)];if(_0x50a46d['KiMkF'](_0x1f1a26,_0x50a46d['maeYc'])){if(process[_0x5397ba(0x1bb)]['XDG_CONFIG_HOME'])return _0x50a46d[_0x5397ba(0x1ba)](join,process['env'][_0x5397ba(0x1ad)],_0x50a46d['wneGc']);return join(_0x50a46d['IjnZe'](homedir),_0x5397ba(0x1b6),_0x50a46d['wneGc']);}return join(getProjectRoot(),_0x50a46d['FbzkR']);}export function getOpencodeSkillsDir(_0x4ba84c){var _0x21b1f0=_0x1343,_0x17b956={'svZYf':function(_0x1cc18f,_0x3950e8){return _0x1cc18f(_0x3950e8);},'qwGDW':'skills'};return join(_0x17b956[_0x21b1f0(0x1b2)](getOpencodeConfigDir,_0x4ba84c),_0x17b956[_0x21b1f0(0x1ae)]);}
1
+ (function(_0x482b1a,_0x4263ec){var _0x2d055=_0x3a99,_0x22891a=_0x482b1a();while(!![]){try{var _0x3f5510=-parseInt(_0x2d055(0x128))/0x1+-parseInt(_0x2d055(0x125))/0x2*(parseInt(_0x2d055(0x12c))/0x3)+parseInt(_0x2d055(0x126))/0x4*(-parseInt(_0x2d055(0x129))/0x5)+parseInt(_0x2d055(0x12d))/0x6+parseInt(_0x2d055(0x132))/0x7*(-parseInt(_0x2d055(0x134))/0x8)+parseInt(_0x2d055(0x131))/0x9*(parseInt(_0x2d055(0x123))/0xa)+parseInt(_0x2d055(0x122))/0xb*(parseInt(_0x2d055(0x130))/0xc);if(_0x3f5510===_0x4263ec)break;else _0x22891a['push'](_0x22891a['shift']());}catch(_0x4cde8c){_0x22891a['push'](_0x22891a['shift']());}}}(_0x1c5f,0xaf803));import{homedir}from'os';function _0x3a99(_0x311943,_0x4e9a02){_0x311943=_0x311943-0x122;var _0x1c5fd5=_0x1c5f();var _0x3a99ee=_0x1c5fd5[_0x311943];return _0x3a99ee;}function _0x1c5f(){var _0x9bc489=['3783825EyTiyO','50701bllGfI','env','1112gaCuqf','OPENCODE_CONFIG_DIR','fvGdD','rUyYc','427493oiUYZc','10rPRhsg','XDG_CONFIG_HOME','1249066YhaBqY','1344528UKzzVT','user','1335539yqRkCt','5xQvtJp','opencode','.opencode','3fBktaH','5052804sXbZop','XdiRO','njDmh','852EnjIHq'];_0x1c5f=function(){return _0x9bc489;};return _0x1c5f();}import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x11a093){var _0x508411=_0x3a99,_0x3b3490={'rYWsC':function(_0x4fdc1c,_0x17b551){return _0x4fdc1c===_0x17b551;},'njDmh':function(_0x4abd8f,_0x1fd1ec,_0x51ec50){return _0x4abd8f(_0x1fd1ec,_0x51ec50);},'rUyYc':'.config','fvGdD':_0x508411(0x12b)};if(process['env']['OPENCODE_CONFIG_DIR'])return process['env'][_0x508411(0x135)];if(_0x3b3490['rYWsC'](_0x11a093,_0x508411(0x127))){if(process[_0x508411(0x133)][_0x508411(0x124)])return _0x3b3490[_0x508411(0x12f)](join,process['env']['XDG_CONFIG_HOME'],_0x508411(0x12a));return join(homedir(),_0x3b3490[_0x508411(0x137)],_0x508411(0x12a));}return join(getProjectRoot(),_0x3b3490[_0x508411(0x136)]);}export function getOpencodeSkillsDir(_0x4c0e7f){var _0x35cd3d=_0x3a99,_0xb91b49={'CIRgr':function(_0x2d8b80,_0xe8121f,_0x18dcc1){return _0x2d8b80(_0xe8121f,_0x18dcc1);},'XdiRO':'skills'};return _0xb91b49['CIRgr'](join,getOpencodeConfigDir(_0x4c0e7f),_0xb91b49[_0x35cd3d(0x12e)]);}
@@ -1 +1 @@
1
- const _0x2b8638=_0x5747;(function(_0x22e9eb,_0x150ce9){const _0x693f52=_0x5747,_0x24c045=_0x22e9eb();while(!![]){try{const _0x45007e=parseInt(_0x693f52(0x6f))/0x1*(parseInt(_0x693f52(0x7d))/0x2)+parseInt(_0x693f52(0x7e))/0x3+parseInt(_0x693f52(0x6a))/0x4+-parseInt(_0x693f52(0x91))/0x5+parseInt(_0x693f52(0x88))/0x6*(parseInt(_0x693f52(0x97))/0x7)+parseInt(_0x693f52(0x80))/0x8+-parseInt(_0x693f52(0x6c))/0x9*(parseInt(_0x693f52(0x6b))/0xa);if(_0x45007e===_0x150ce9)break;else _0x24c045['push'](_0x24c045['shift']());}catch(_0x14af26){_0x24c045['push'](_0x24c045['shift']());}}}(_0x2bbc,0xe6f62));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x2b8638(0xa0);function toPlaywrightCliSessionKey(_0x2dd536){const _0x27c227=_0x2b8638,_0x131c88=createHash(_0x27c227(0x75))[_0x27c227(0x6d)](_0x2dd536)[_0x27c227(0x9b)](_0x27c227(0x8d))[_0x27c227(0x8f)](0x0,0xc);return'rg-'+_0x131c88;}function shellQuote(_0x1a36ad){const _0x3df4b3=_0x2b8638;return'\x27'+_0x1a36ad[_0x3df4b3(0x7c)](/'/g,_0x3df4b3(0x7a))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x20838c){const _0x19fac8=_0x2b8638,_0xcc673c={'VMJwJ':function(_0x3f4433,_0x655387){return _0x3f4433(_0x655387);}};return SAFE_SHELL_TOKEN[_0x19fac8(0x82)](_0x20838c)?_0x20838c:_0xcc673c[_0x19fac8(0x84)](shellQuote,_0x20838c);}export function buildPlaywrightCliInvocation(_0x50bf79,_0x5b3343,_0x3cdb02){const _0x2ecd58=_0x2b8638,_0x24fb8a={'blyaN':function(_0x2ef510,_0xd12cc6){return _0x2ef510(_0xd12cc6);},'HsaoN':_0x2ecd58(0x9c),'NEsPE':'npx'},_0x185572=_0x24fb8a[_0x2ecd58(0x78)](toPlaywrightCliSessionKey,_0x50bf79),[_0x21653a=_0x2ecd58(0x89)]=_0x3cdb02,_0x4fda19=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x185572,_0x24fb8a[_0x2ecd58(0x70)],_0x5b3343,..._0x3cdb02];return{'command':'npx','args':_0x4fda19,'shellCommand':[_0x24fb8a['NEsPE'],PLAYWRIGHT_CLI_BINARY,_0x2ecd58(0x9f)+quoteShellArg(_0x185572),'--config',quoteShellArg(_0x5b3343),..._0x3cdb02[_0x2ecd58(0x94)](quoteShellArg)][_0x2ecd58(0x86)]('\x20'),'subcommand':_0x21653a};}function _0x2bbc(){const _0x277d1b=['2behHtM','5264052ZOJOMJ','bash_command','2071272NtlLTJ','kill','test','ReKJV','VMJwJ','nkmZe','join','configPath','60dmDfoP','unknown','close','hpfYf','cmd','hex','DleDw','slice','subcommand','7610615NyPIsL','data','trim','map','DeKIM','aNaVa','248934rPEDij','script','yPbLo','EJani','digest','--config','command','args','-s=','@playwright/cli','string','kEKRO','commandArgs','toString','\x0astderr:\x20','error','pipe','SIGKILL','ENUNb','mWFHF','2263420cfndjq','2180UsfOHT','29142IOOhiw','update','cwd','238957EBqchT','HsaoN','length','timed\x20out\x20after\x20','stdout','env','sha256','\x20signal=','null','blyaN','JaNpJ','\x27\x5c\x27\x27','timeoutMs','replace'];_0x2bbc=function(){return _0x277d1b;};return _0x2bbc();}export function buildPlaywrightCliCommandPrefix(_0x25f3ea,_0x1408ec){const _0x1901fe=_0x2b8638,_0x4e57ce={'ezWww':function(_0x2a5bf8,_0x5bf700){return _0x2a5bf8(_0x5bf700);},'aNaVa':'--config','ReKJV':function(_0x13fb5a,_0x4f9fd0){return _0x13fb5a(_0x4f9fd0);}},_0x573583=_0x4e57ce['ezWww'](toPlaywrightCliSessionKey,_0x25f3ea);return['npx',PLAYWRIGHT_CLI_BINARY,_0x1901fe(0x9f)+quoteShellArg(_0x573583),_0x4e57ce[_0x1901fe(0x96)],_0x4e57ce[_0x1901fe(0x83)](quoteShellArg,_0x1408ec)]['join']('\x20');}function truncateOutput(_0x14067d,_0xcfafef=0x7d0){const _0x5a609b=_0x2b8638,_0x3f11f4={'cQxFe':'...'};return _0x14067d[_0x5a609b(0x71)]>_0xcfafef?_0x14067d[_0x5a609b(0x8f)](0x0,_0xcfafef)+_0x3f11f4['cQxFe']:_0x14067d;}export async function runPlaywrightCliCommand(_0x2ef019){const _0xee42e6=_0x2b8638,_0x2c99d9={'fTiLO':function(_0x28db30,_0x4e6591){return _0x28db30(_0x4e6591);},'DeKIM':function(_0x276535,_0x582352){return _0x276535(_0x582352);},'OOayw':_0xee42e6(0x67),'RFmda':function(_0x4e5ecc,_0x53350a){return _0x4e5ecc(_0x53350a);},'XQxkU':function(_0x420d6c,_0xa50cb1){return _0x420d6c(_0xa50cb1);},'kEKRO':_0xee42e6(0x77),'nkmZe':function(_0x126021,_0x4917fb,_0x531c3c,_0x448b5c){return _0x126021(_0x4917fb,_0x531c3c,_0x448b5c);},'yPbLo':_0xee42e6(0x92),'QpjGo':_0xee42e6(0xa6),'ENUNb':_0xee42e6(0x8a)},_0x3d9cbe=buildPlaywrightCliInvocation(_0x2ef019['sessionId'],_0x2ef019[_0xee42e6(0x87)],_0x2ef019[_0xee42e6(0xa3)]);return new Promise((_0x19711e,_0x2d9f96)=>{const _0x4a2208=_0xee42e6,_0x29a7af={'JaNpJ':_0x2c99d9['OOayw'],'XsVBA':'SIGTERM','hpfYf':function(_0xf69a79,_0x2a04d3,_0x7cbe43){return _0xf69a79(_0x2a04d3,_0x7cbe43);},'oPIGd':function(_0x2eb2d0,_0xe18750){return _0x2c99d9['RFmda'](_0x2eb2d0,_0xe18750);},'lMnCf':function(_0xfbad03,_0x158165){return _0x2c99d9['XQxkU'](_0xfbad03,_0x158165);},'EJani':function(_0x459d73,_0x33cee5){return _0x459d73??_0x33cee5;},'IiSca':function(_0x291cf2,_0x563a99){return _0x291cf2??_0x563a99;},'wVCOj':_0x2c99d9[_0x4a2208(0xa2)],'mWFHF':function(_0x49d6fc,_0x121f3f){return _0x49d6fc(_0x121f3f);}},_0x463c0f=_0x2c99d9[_0x4a2208(0x85)](spawn,_0x3d9cbe['command'],_0x3d9cbe[_0x4a2208(0x9e)],{'cwd':_0x2ef019[_0x4a2208(0x6e)],'env':_0x2ef019[_0x4a2208(0x74)],'stdio':['ignore','pipe',_0x4a2208(0x66)]});let _0x579c17='',_0x1f80c9='',_0x440a69=![];const _0x46ac15=_0x2ef019['timeoutMs']&&_0x2ef019[_0x4a2208(0x7b)]>0x0?setTimeout(()=>{const _0x3ae2af=_0x4a2208;_0x440a69=!![],_0x463c0f[_0x3ae2af(0x81)](_0x29a7af['XsVBA']),_0x29a7af[_0x3ae2af(0x8b)](setTimeout,()=>{const _0x516871=_0x3ae2af;try{_0x463c0f['kill'](_0x29a7af[_0x516871(0x79)]);}catch{}},0x3e8);},_0x2ef019[_0x4a2208(0x7b)]):null;_0x463c0f[_0x4a2208(0x73)]?.['on'](_0x2c99d9[_0x4a2208(0x99)],_0xa0b179=>{const _0x2d1d77=_0x4a2208;_0x579c17+=_0xa0b179[_0x2d1d77(0xa4)]();}),_0x463c0f['stderr']?.['on'](_0x2c99d9[_0x4a2208(0x99)],_0x5ad659=>{_0x1f80c9+=_0x5ad659['toString']();}),_0x463c0f['on'](_0x2c99d9['QpjGo'],_0x503a24=>{const _0x3c4afc=_0x4a2208;if(_0x46ac15)_0x2c99d9['fTiLO'](clearTimeout,_0x46ac15);_0x2c99d9[_0x3c4afc(0x95)](_0x2d9f96,_0x503a24);}),_0x463c0f['on'](_0x2c99d9[_0x4a2208(0x68)],(_0x8edb1d,_0x122c9c)=>{const _0x106b4e=_0x4a2208;if(_0x46ac15)_0x29a7af['oPIGd'](clearTimeout,_0x46ac15);if(_0x8edb1d===0x0){_0x29a7af['lMnCf'](_0x19711e,{'stdout':_0x579c17,'stderr':_0x1f80c9,'invocation':_0x3d9cbe});return;}const _0x3c1bda=_0x440a69?_0x106b4e(0x72)+_0x2ef019['timeoutMs']+'ms':'exited\x20with\x20code='+_0x29a7af[_0x106b4e(0x9a)](_0x8edb1d,_0x106b4e(0x77))+_0x106b4e(0x76)+_0x29a7af['IiSca'](_0x122c9c,_0x29a7af['wVCOj']);_0x2d9f96(new Error('playwright-cli\x20'+_0x3d9cbe[_0x106b4e(0x90)]+'\x20'+_0x3c1bda+'\x0astdout:\x20'+_0x29a7af[_0x106b4e(0x69)](truncateOutput,_0x579c17)+_0x106b4e(0xa5)+_0x29a7af[_0x106b4e(0x69)](truncateOutput,_0x1f80c9)));});});}export function extractBashCommand(_0x419ead){const _0x5919aa=_0x2b8638,_0x348892={'DleDw':_0x5919aa(0x8c),'CAkRS':function(_0x4492a1,_0x26e395){return _0x4492a1===_0x26e395;},'BBdPd':function(_0x2feb7a,_0x276cb9){return _0x2feb7a??_0x276cb9;}},_0x10a768=[_0x5919aa(0x9d),_0x348892[_0x5919aa(0x8e)],_0x5919aa(0x98),_0x5919aa(0x7f)];for(const _0x15f720 of _0x10a768){const _0x62f97c=_0x419ead[_0x15f720];if(_0x348892['CAkRS'](typeof _0x62f97c,_0x5919aa(0xa1))&&_0x62f97c[_0x5919aa(0x93)]())return _0x62f97c;}const _0xb0e827=Object['values'](_0x419ead)['find'](_0x538eef=>typeof _0x538eef===_0x5919aa(0xa1)&&_0x538eef['trim']()[_0x5919aa(0x71)]>0x0);return _0x348892['BBdPd'](_0xb0e827,null);}function _0x5747(_0x34ba35,_0x530fa7){_0x34ba35=_0x34ba35-0x66;const _0x2bbc99=_0x2bbc();let _0x574741=_0x2bbc99[_0x34ba35];return _0x574741;}export function parsePlaywrightCliCommand(_0x5d572){const _0x92fc03=_0x5d572['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x92fc03?.[0x1]??null;}
1
+ function _0x5ae7(){const _0x1153b2=['\x20signal=','cwd','null','8412eujTJc','vIwzR','kill','bash_command','8921763uAecaw','subcommand','5ndYIlT','trim','exited\x20with\x20code=','timeoutMs','GTdFJ','\x27\x5c\x27\x27','WLJiH','playwright-cli\x20','SIGKILL','GLEDI','18439660fVdnji','TgWfo','--config','-s=','EYGJT','slice','join','8795720sGtEOg','length','2828QQgZLt','11cGsLTC','data','digest','50486gkPzIA','78pRKjSM','SIGTERM','erIxl','hex','find','stdout','map','ignore','QuxlW','hBvSC','4401516uIPRHw','378310baLCrh'];_0x5ae7=function(){return _0x1153b2;};return _0x5ae7();}(function(_0xa8104d,_0x4ea4cd){const _0xa19f9c=_0x2afc,_0x53c90f=_0xa8104d();while(!![]){try{const _0xf1fb79=-parseInt(_0xa19f9c(0x126))/0x1+parseInt(_0xa19f9c(0x11a))/0x2*(parseInt(_0xa19f9c(0x11b))/0x3)+parseInt(_0xa19f9c(0x125))/0x4*(parseInt(_0xa19f9c(0x103))/0x5)+parseInt(_0xa19f9c(0x12a))/0x6*(-parseInt(_0xa19f9c(0x116))/0x7)+-parseInt(_0xa19f9c(0x114))/0x8+-parseInt(_0xa19f9c(0x12e))/0x9+parseInt(_0xa19f9c(0x10d))/0xa*(parseInt(_0xa19f9c(0x117))/0xb);if(_0xf1fb79===_0x4ea4cd)break;else _0x53c90f['push'](_0x53c90f['shift']());}catch(_0x10d829){_0x53c90f['push'](_0x53c90f['shift']());}}}(_0x5ae7,0x89fb5));function _0x2afc(_0xafa844,_0x383459){_0xafa844=_0xafa844-0x103;const _0x5ae7c2=_0x5ae7();let _0x2afc19=_0x5ae7c2[_0xafa844];return _0x2afc19;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x19bcc2){const _0x42e288=_0x2afc,_0x526351={'ZqEXQ':'sha256'},_0x1fe64a=createHash(_0x526351['ZqEXQ'])['update'](_0x19bcc2)[_0x42e288(0x119)](_0x42e288(0x11e))[_0x42e288(0x112)](0x0,0xc);return'rg-'+_0x1fe64a;}function shellQuote(_0x1445c2){const _0x193c51=_0x2afc;return'\x27'+_0x1445c2['replace'](/'/g,_0x193c51(0x108))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0xfa5068){return SAFE_SHELL_TOKEN['test'](_0xfa5068)?_0xfa5068:shellQuote(_0xfa5068);}export function buildPlaywrightCliInvocation(_0x50b3cc,_0x67d7f8,_0xed4917){const _0x41fbfa=_0x2afc,_0x2a24da={'rbmNv':'unknown','VindA':_0x41fbfa(0x10f),'QuxlW':'npx','UnSGY':function(_0x3cb103,_0x2521ab){return _0x3cb103(_0x2521ab);}},_0x232f48=toPlaywrightCliSessionKey(_0x50b3cc),[_0x5d282a=_0x2a24da['rbmNv']]=_0xed4917,_0x257825=[PLAYWRIGHT_CLI_BINARY,_0x41fbfa(0x110)+_0x232f48,_0x2a24da['VindA'],_0x67d7f8,..._0xed4917];return{'command':_0x2a24da[_0x41fbfa(0x123)],'args':_0x257825,'shellCommand':[_0x2a24da[_0x41fbfa(0x123)],PLAYWRIGHT_CLI_BINARY,_0x41fbfa(0x110)+quoteShellArg(_0x232f48),_0x41fbfa(0x10f),_0x2a24da['UnSGY'](quoteShellArg,_0x67d7f8),..._0xed4917[_0x41fbfa(0x121)](quoteShellArg)]['join']('\x20'),'subcommand':_0x5d282a};}export function buildPlaywrightCliCommandPrefix(_0x561998,_0x213c32){const _0x394aa2=_0x2afc,_0xaf2d76={'vIwzR':function(_0x167d9a,_0x55448f){return _0x167d9a(_0x55448f);},'qEIVI':_0x394aa2(0x10f)},_0x1fe08d=toPlaywrightCliSessionKey(_0x561998);return['npx',PLAYWRIGHT_CLI_BINARY,_0x394aa2(0x110)+_0xaf2d76[_0x394aa2(0x12b)](quoteShellArg,_0x1fe08d),_0xaf2d76['qEIVI'],_0xaf2d76[_0x394aa2(0x12b)](quoteShellArg,_0x213c32)][_0x394aa2(0x113)]('\x20');}function truncateOutput(_0x3f72c3,_0x21351c=0x7d0){const _0x1da7e5=_0x2afc,_0x34b0c3={'PPyol':function(_0x50f729,_0x429a04){return _0x50f729>_0x429a04;},'EYGJT':function(_0x471bbc,_0x297acd){return _0x471bbc+_0x297acd;},'GTdFJ':'...'};return _0x34b0c3['PPyol'](_0x3f72c3['length'],_0x21351c)?_0x34b0c3[_0x1da7e5(0x111)](_0x3f72c3['slice'](0x0,_0x21351c),_0x34b0c3[_0x1da7e5(0x107)]):_0x3f72c3;}export async function runPlaywrightCliCommand(_0x4f0469){const _0x4439a8=_0x2afc,_0x1bdf14={'erIxl':function(_0x5c5861,_0x16ace4){return _0x5c5861(_0x16ace4);},'NQdYd':function(_0x57d619,_0x20297d){return _0x57d619===_0x20297d;},'MBoZJ':function(_0x4564a4,_0x5247bb){return _0x4564a4??_0x5247bb;},'WLJiH':_0x4439a8(0x129),'TgWfo':'pipe','DkWph':function(_0x595aa8,_0x1b7408){return _0x595aa8>_0x1b7408;},'VdThi':_0x4439a8(0x118),'egjMb':'error','mecqd':'close','cCxAw':function(_0x19b503,_0x444f82,_0x224640,_0x342aef){return _0x19b503(_0x444f82,_0x224640,_0x342aef);}},_0x4b3d01=_0x1bdf14['cCxAw'](buildPlaywrightCliInvocation,_0x4f0469['sessionId'],_0x4f0469['configPath'],_0x4f0469['commandArgs']);return new Promise((_0x9b4fa,_0x244b15)=>{const _0x24a311=_0x4439a8,_0x258062=spawn(_0x4b3d01['command'],_0x4b3d01['args'],{'cwd':_0x4f0469[_0x24a311(0x128)],'env':_0x4f0469['env'],'stdio':[_0x24a311(0x122),'pipe',_0x1bdf14[_0x24a311(0x10e)]]});let _0x55e37b='',_0x24d886='',_0x37a54f=![];const _0x4862fd=_0x4f0469[_0x24a311(0x106)]&&_0x1bdf14['DkWph'](_0x4f0469['timeoutMs'],0x0)?setTimeout(()=>{const _0x2cfcd7=_0x24a311;_0x37a54f=!![],_0x258062[_0x2cfcd7(0x12c)](_0x2cfcd7(0x11c)),setTimeout(()=>{const _0x5da312=_0x2cfcd7;try{_0x258062['kill'](_0x5da312(0x10b));}catch{}},0x3e8);},_0x4f0469['timeoutMs']):null;_0x258062[_0x24a311(0x120)]?.['on'](_0x1bdf14['VdThi'],_0x4d4f0d=>{_0x55e37b+=_0x4d4f0d['toString']();}),_0x258062['stderr']?.['on'](_0x24a311(0x118),_0x5a4956=>{_0x24d886+=_0x5a4956['toString']();}),_0x258062['on'](_0x1bdf14['egjMb'],_0x64cc12=>{const _0x3b77e3=_0x24a311;if(_0x4862fd)clearTimeout(_0x4862fd);_0x1bdf14[_0x3b77e3(0x11d)](_0x244b15,_0x64cc12);}),_0x258062['on'](_0x1bdf14['mecqd'],(_0x97a90a,_0x2d8915)=>{const _0x11c6d3=_0x24a311;if(_0x4862fd)clearTimeout(_0x4862fd);if(_0x1bdf14['NQdYd'](_0x97a90a,0x0)){_0x9b4fa({'stdout':_0x55e37b,'stderr':_0x24d886,'invocation':_0x4b3d01});return;}const _0x1497d3=_0x37a54f?'timed\x20out\x20after\x20'+_0x4f0469[_0x11c6d3(0x106)]+'ms':_0x11c6d3(0x105)+_0x1bdf14['MBoZJ'](_0x97a90a,_0x1bdf14[_0x11c6d3(0x109)])+_0x11c6d3(0x127)+(_0x2d8915??_0x1bdf14['WLJiH']);_0x244b15(new Error(_0x11c6d3(0x10a)+_0x4b3d01[_0x11c6d3(0x12f)]+'\x20'+_0x1497d3+'\x0astdout:\x20'+_0x1bdf14[_0x11c6d3(0x11d)](truncateOutput,_0x55e37b)+'\x0astderr:\x20'+_0x1bdf14['erIxl'](truncateOutput,_0x24d886)));});});}export function extractBashCommand(_0x4338d1){const _0x30a909=_0x2afc,_0x4a9f55={'hBvSC':'cmd','GLEDI':function(_0x17c606,_0xa9d527){return _0x17c606===_0xa9d527;}},_0x12ee5a=['command',_0x4a9f55[_0x30a909(0x124)],'script',_0x30a909(0x12d)];for(const _0x499a6f of _0x12ee5a){const _0x152cb5=_0x4338d1[_0x499a6f];if(_0x4a9f55[_0x30a909(0x10c)](typeof _0x152cb5,'string')&&_0x152cb5[_0x30a909(0x104)]())return _0x152cb5;}const _0x4f0d50=Object['values'](_0x4338d1)[_0x30a909(0x11f)](_0x524e23=>typeof _0x524e23==='string'&&_0x524e23[_0x30a909(0x104)]()[_0x30a909(0x115)]>0x0);return _0x4f0d50??null;}export function parsePlaywrightCliCommand(_0x5cda27){const _0x1d0404=_0x5cda27['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x1d0404?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x129649,_0x380ff8){const _0x2ed077=_0x5408,_0x50a000=_0x129649();while(!![]){try{const _0xca82df=parseInt(_0x2ed077(0xf7))/0x1+parseInt(_0x2ed077(0xfa))/0x2+-parseInt(_0x2ed077(0xff))/0x3*(parseInt(_0x2ed077(0xf9))/0x4)+parseInt(_0x2ed077(0x101))/0x5+-parseInt(_0x2ed077(0xf8))/0x6*(parseInt(_0x2ed077(0xfb))/0x7)+-parseInt(_0x2ed077(0xfe))/0x8+parseInt(_0x2ed077(0xfc))/0x9*(parseInt(_0x2ed077(0xfd))/0xa);if(_0xca82df===_0x380ff8)break;else _0x50a000['push'](_0x50a000['shift']());}catch(_0xadac15){_0x50a000['push'](_0x50a000['shift']());}}}(_0x3403,0xaf982));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x49af84){const _0x52998e=_0x5408,_0x5b921b={'mbgBR':function(_0x252d22,_0x187c0d){return _0x252d22(_0x187c0d);}},_0x428aff=_0x49af84?_0x5b921b[_0x52998e(0x100)](_0x49af84,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x428aff+'.';}function _0x5408(_0x4bf048,_0x10a981){_0x4bf048=_0x4bf048-0xf7;const _0x34036b=_0x3403();let _0x54089d=_0x34036b[_0x4bf048];return _0x54089d;}function _0x3403(){const _0xc3e50=['8041239okEXpp','20FMirrt','8810080sHflVS','3860694XbQycL','mbgBR','1367465WXmdqP','1008365yfhIhu','7386702OYbsgy','4oLKwfd','2539418OOSIRC','7GJHGEh'];_0x3403=function(){return _0xc3e50;};return _0x3403();}
1
+ function _0x5e6f(){const _0x40af2e=['378715Lvdnvw','1526469gppEyS','429540UTrhri','906075PDwxrL','18CHUHli','2802080ePTxKd','2685304EmwQIQ','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','11798FBtWJy'];_0x5e6f=function(){return _0x40af2e;};return _0x5e6f();}(function(_0xa7b6f8,_0x2666a7){const _0xa11a00=_0x20bd,_0x482137=_0xa7b6f8();while(!![]){try{const _0x210711=parseInt(_0xa11a00(0x9c))/0x1+parseInt(_0xa11a00(0x9f))/0x2+-parseInt(_0xa11a00(0xa0))/0x3+parseInt(_0xa11a00(0x9a))/0x4+parseInt(_0xa11a00(0x9d))/0x5*(-parseInt(_0xa11a00(0x98))/0x6)+-parseInt(_0xa11a00(0x9e))/0x7+parseInt(_0xa11a00(0x99))/0x8;if(_0x210711===_0x2666a7)break;else _0x482137['push'](_0x482137['shift']());}catch(_0x199dca){_0x482137['push'](_0x482137['shift']());}}}(_0x5e6f,0x7a461));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x20bd(_0x4978d7,_0x3ba46d){_0x4978d7=_0x4978d7-0x98;const _0x5e6f6e=_0x5e6f();let _0x20bd65=_0x5e6f6e[_0x4978d7];return _0x20bd65;}export function formatProfileRequiredMessage(_0x24f6ec){const _0x31bd9f=_0x20bd,_0x1c3d86={'AjslR':function(_0x25bc67,_0x1a4ea0){return _0x25bc67(_0x1a4ea0);}},_0x159d6d=_0x24f6ec?_0x1c3d86['AjslR'](_0x24f6ec,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x31bd9f(0x9b)+_0x159d6d+'.';}
@@ -1 +1 @@
1
- (function(_0x58e4cf,_0x32dd32){const _0x3a0222=_0x421e,_0x1374d9=_0x58e4cf();while(!![]){try{const _0x16a61d=parseInt(_0x3a0222(0x69))/0x1*(parseInt(_0x3a0222(0x72))/0x2)+parseInt(_0x3a0222(0x67))/0x3+-parseInt(_0x3a0222(0x6e))/0x4*(parseInt(_0x3a0222(0x75))/0x5)+-parseInt(_0x3a0222(0x7a))/0x6*(parseInt(_0x3a0222(0x77))/0x7)+-parseInt(_0x3a0222(0x71))/0x8*(-parseInt(_0x3a0222(0x7c))/0x9)+-parseInt(_0x3a0222(0x70))/0xa*(parseInt(_0x3a0222(0x66))/0xb)+-parseInt(_0x3a0222(0x6d))/0xc;if(_0x16a61d===_0x32dd32)break;else _0x1374d9['push'](_0x1374d9['shift']());}catch(_0x3bfcb4){_0x1374d9['push'](_0x1374d9['shift']());}}}(_0x1825,0x4b197));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x315d89=_0x421e,_0x3fb9bb={'gKElQ':function(_0x5b0bfc,_0x622ced){return _0x5b0bfc+_0x622ced;},'DHpdm':'<div\x20class=\x22ranger-banner__content\x22>','PTqgQ':_0x315d89(0x6c),'CYBrl':'<div\x20class=\x22ranger-banner__message\x22>','MnLmo':_0x315d89(0x6b),'gQphh':_0x315d89(0x68)},_0x249231=_0x3fb9bb[_0x315d89(0x74)](_0x3fb9bb[_0x315d89(0x74)](_0x3fb9bb['gKElQ'](_0x3fb9bb['DHpdm']+_0x3fb9bb['PTqgQ']+_0x3fb9bb[_0x315d89(0x6f)]+_0x315d89(0x76),_0x315d89(0x7b)),_0x3fb9bb[_0x315d89(0x79)])+_0x315d89(0x6b),_0x3fb9bb['gQphh']),_0x4ff100='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON[_0x315d89(0x78)](_0x249231)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x315d89(0x78)](_0x4ff100)+_0x315d89(0x73);})());function _0x1825(){const _0x5cbbee=['75304pjJQxJ','CYBrl','477240FQByRC','167480awNHrj','2uUeXAC',';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a','gKElQ','60xuTTvc','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','168Fdqodu','stringify','MnLmo','108048MiOMvP','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','261ySvOzx','22YbOXOp','1110252eRpXWK','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','137519eIsXgs','addInitScript','</div>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','642708tDblhS'];_0x1825=function(){return _0x5cbbee;};return _0x1825();}function _0x421e(_0x4950da,_0x53c886){_0x4950da=_0x4950da-0x66;const _0x18250e=_0x1825();let _0x421ef3=_0x18250e[_0x4950da];return _0x421ef3;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x26b326){const _0x885e52=_0x421e;await _0x26b326[_0x885e52(0x6a)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x1f5063,_0xa7dc7a){const _0x45ceed=_0x4a55,_0x3f4cde=_0x1f5063();while(!![]){try{const _0x395d84=parseInt(_0x45ceed(0x91))/0x1+parseInt(_0x45ceed(0x88))/0x2*(-parseInt(_0x45ceed(0x96))/0x3)+parseInt(_0x45ceed(0x92))/0x4+-parseInt(_0x45ceed(0x87))/0x5+-parseInt(_0x45ceed(0x85))/0x6+-parseInt(_0x45ceed(0x8e))/0x7*(parseInt(_0x45ceed(0x94))/0x8)+parseInt(_0x45ceed(0x86))/0x9;if(_0x395d84===_0xa7dc7a)break;else _0x3f4cde['push'](_0x3f4cde['shift']());}catch(_0x21d832){_0x3f4cde['push'](_0x3f4cde['shift']());}}}(_0x1bd5,0x775e1));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x28cc0e=_0x4a55,_0x544685={'HKwls':function(_0x1e4528,_0x14be51){return _0x1e4528+_0x14be51;},'LHZuq':function(_0x39a70d,_0x529783){return _0x39a70d+_0x529783;},'ggsUj':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','kNGzC':_0x28cc0e(0x95),'WbQfT':_0x28cc0e(0x84),'JDZji':'</div>'},_0x32b7c4=_0x544685['HKwls'](_0x544685[_0x28cc0e(0x93)](_0x544685['LHZuq'](_0x544685['LHZuq']('<div\x20class=\x22ranger-banner__content\x22>'+_0x544685[_0x28cc0e(0x8a)],_0x544685[_0x28cc0e(0x90)])+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x544685['WbQfT']),_0x544685[_0x28cc0e(0x97)])+'</div>',_0x28cc0e(0x8f)),_0x488bd8=_0x28cc0e(0x8b);return _0x28cc0e(0x8d)+JSON['stringify'](_0x32b7c4)+_0x28cc0e(0x8c)+JSON[_0x28cc0e(0x89)](_0x488bd8)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x4a55(_0x5186b2,_0x50f8f5){_0x5186b2=_0x5186b2-0x84;const _0x1bd553=_0x1bd5();let _0x4a5534=_0x1bd553[_0x5186b2];return _0x4a5534;}function _0x1bd5(){const _0xacd9fd=['kNGzC','169533VAjzkM','2623064gvLLKX','HKwls','40FdUCyr','<div\x20class=\x22ranger-banner__message\x22>','2460QLlNuk','JDZji','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','2050320tkpRqb','23507388guZejF','4126535hYXxtP','2356Lakxck','stringify','ggsUj','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a',';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','1141441xVYmkX','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'];_0x1bd5=function(){return _0xacd9fd;};return _0x1bd5();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x42e6a4){await _0x42e6a4['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}