@ranger-testing/ranger-cli 2.4.7 → 2.5.0

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 (72) 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/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -1
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x23a414=_0x5d9d;(function(_0x2b60a8,_0x4be3d9){const _0x45c0bc=_0x5d9d,_0x5cd7d3=_0x2b60a8();while(!![]){try{const _0x3592ca=parseInt(_0x45c0bc(0x1ff))/0x1+-parseInt(_0x45c0bc(0x1f0))/0x2+parseInt(_0x45c0bc(0x1d8))/0x3*(parseInt(_0x45c0bc(0x1f2))/0x4)+-parseInt(_0x45c0bc(0x1f9))/0x5*(parseInt(_0x45c0bc(0x1dc))/0x6)+parseInt(_0x45c0bc(0x227))/0x7+-parseInt(_0x45c0bc(0x222))/0x8*(-parseInt(_0x45c0bc(0x1fa))/0x9)+-parseInt(_0x45c0bc(0x1e8))/0xa;if(_0x3592ca===_0x4be3d9)break;else _0x5cd7d3['push'](_0x5cd7d3['shift']());}catch(_0x23bda1){_0x5cd7d3['push'](_0x5cd7d3['shift']());}}}(_0x2ef9,0x7d588));function _0x2ef9(){const _0x53ccaa=['env','trackCommandStart','trim','12SYeNge','signal','isTty','outcome','1008666BnNMmp','command_start','QAJSw','flushing','splice','get','zcWoI','error','gRxfz','phase_start','.ranger','bjHRL','8046780bGGsRt','commandStartTime','transport','HdriT','trackPhaseEnd','browserSessionId','success','stringify','1397810CvvKDI','platform','786668tQxOIL','buffer','phaseStartTimes','POST','Bearer\x20','/api/v1/mcp/cli-telemetry','trackCommandEnd','15nNCHdI','9ocQgUC','trackCommandError','featureId','sendBatch','delete','712440twSvXI','buildEvent','cwd','now','\x20event(s)\x20to\x20','abort','HqERv','phase','phaseCounter','utf-8','oMosm','cliVersion','eventType','QULxg','errorMessage','length','flushAsync','checklistItemId','isCI','Unknown','ZRReR','JMnrt','...','trackPhaseError','kQlzY','nodeVersion','finally','dNHWJ','sendImmediate','1|4|8|0|2|6|7|5|3','set','flush','push','DEBUG','durationMs','7206584BwQYmz','AyMJO','deviceId','command','[telemetry]\x20Sending\x20','849807nARxIs'];_0x2ef9=function(){return _0x53ccaa;};return _0x2ef9();}import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x57fef3=_0x5d9d,_0x95703f={'zcWoI':function(_0x3672f9){return _0x3672f9();},'kQlzY':_0x57fef3(0x1e6),'wzOKT':'.session','HqERv':function(_0x222169,_0x48e90b,_0x2c66c4){return _0x222169(_0x48e90b,_0x2c66c4);},'TZnqp':_0x57fef3(0x208)};if(cachedDeviceId)return cachedDeviceId;try{const _0x25d6af=join(_0x95703f[_0x57fef3(0x1e2)](homedir),_0x95703f[_0x57fef3(0x217)]),_0x218c09=join(_0x25d6af,_0x95703f['wzOKT']);if(existsSync(_0x218c09)){cachedDeviceId=_0x95703f[_0x57fef3(0x205)](readFileSync,_0x218c09,_0x95703f['TZnqp'])[_0x57fef3(0x1d7)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x95703f[_0x57fef3(0x1e2)](randomUUID),mkdirSync(_0x25d6af,{'recursive':!![]}),writeFileSync(_0x218c09,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];['commandId'];['command'];[_0x23a414(0x1e9)];['phaseCounter']=0x0;[_0x23a414(0x1f4)]=new Map();[_0x23a414(0x1df)]=null;['deviceId'];[_0x23a414(0x20a)];['nodeVersion'];['platform'];['isTty'];[_0x23a414(0x211)];['featureId'];[_0x23a414(0x210)];['browserSessionId'];['transport'];constructor(_0x40edca){const _0x275d64=_0x23a414,_0x48d613={'DOKCn':function(_0x5be66b){return _0x5be66b();}},_0x5af2f7=_0x275d64(0x21c)['split']('|');let _0x27b81b=0x0;while(!![]){switch(_0x5af2f7[_0x27b81b++]){case'0':this[_0x275d64(0x224)]=_0x48d613['DOKCn'](getDeviceId);continue;case'1':this['commandId']=randomUUID();continue;case'2':this['cliVersion']=getCurrentVersion();continue;case'3':this['isCI']=!!(process['env']['CI']||process['env']['GITHUB_ACTIONS']);continue;case'4':this[_0x275d64(0x225)]=_0x40edca;continue;case'5':this[_0x275d64(0x1da)]=process['stdout']['isTTY']??![];continue;case'6':this[_0x275d64(0x218)]=process['version'];continue;case'7':this['platform']=process[_0x275d64(0x1f1)];continue;case'8':this[_0x275d64(0x1e9)]=Date['now']();continue;}break;}}['setContext'](_0x5b9f8f){const _0x1d97b7=_0x23a414;if(_0x5b9f8f[_0x1d97b7(0x1fc)])this[_0x1d97b7(0x1fc)]=_0x5b9f8f['featureId'];if(_0x5b9f8f[_0x1d97b7(0x210)])this['checklistItemId']=_0x5b9f8f['checklistItemId'];if(_0x5b9f8f[_0x1d97b7(0x1ed)])this['browserSessionId']=_0x5b9f8f['browserSessionId'];if(_0x5b9f8f['transport'])this[_0x1d97b7(0x1ea)]=_0x5b9f8f[_0x1d97b7(0x1ea)];}async[_0x23a414(0x1d6)](_0x429607){const _0x3a892d=_0x23a414,_0x435eaf=this['buildEvent']({'eventType':_0x3a892d(0x1dd),'metadata':_0x429607});await this[_0x3a892d(0x21b)](_0x435eaf);}async[_0x23a414(0x1f8)](_0x275150,_0x2a9efc){const _0x4e61ab=_0x23a414,_0x5514a9={'HdriT':function(_0x395431,_0x3ca9cb){return _0x395431-_0x3ca9cb;}},_0x38f9b7=this[_0x4e61ab(0x200)]({'eventType':'command_end','outcome':_0x275150,'durationMs':_0x5514a9[_0x4e61ab(0x1eb)](Date[_0x4e61ab(0x202)](),this['commandStartTime']),'metadata':_0x2a9efc});await this['sendImmediate'](_0x38f9b7),await this[_0x4e61ab(0x21e)]();}async[_0x23a414(0x1fb)](_0xdf0ccc,_0x362190){const _0x362ce6=_0x23a414,_0x362beb={'oMosm':'command_error','QULxg':function(_0x4566ce,_0x4f3faf){return _0x4566ce instanceof _0x4f3faf;},'AyMJO':'Unknown','XJETF':function(_0x1eb27d,_0x521217){return _0x1eb27d-_0x521217;}},_0x4ab0f2=this['buildEvent']({'eventType':_0x362beb[_0x362ce6(0x209)],'errorMessage':truncate(_0xdf0ccc instanceof Error?_0xdf0ccc['message']:String(_0xdf0ccc),0x1f4),'errorType':_0x362beb[_0x362ce6(0x20c)](_0xdf0ccc,Error)?_0xdf0ccc['constructor']['name']:_0x362beb[_0x362ce6(0x223)],'durationMs':_0x362beb['XJETF'](Date['now'](),this[_0x362ce6(0x1e9)]),'metadata':_0x362190});await this['sendImmediate'](_0x4ab0f2),await this['flush']();}['trackPhaseStart'](_0x2a6939,_0x521fc5){const _0x52850d=_0x23a414;this[_0x52850d(0x207)]++,this['phaseStartTimes'][_0x52850d(0x21d)](_0x2a6939,Date['now']());const _0xa28b5d=this[_0x52850d(0x200)]({'eventType':_0x52850d(0x1e5),'phase':_0x2a6939,'phaseIndex':this[_0x52850d(0x207)],'metadata':_0x521fc5});this['buffer']['push'](_0xa28b5d);}[_0x23a414(0x1ec)](_0x3669f3,_0x55eae9){const _0x1f6483=_0x23a414,_0x129d05={'mcDge':function(_0x2edfe9,_0xf59297){return _0x2edfe9-_0xf59297;},'RmhKa':function(_0x5bd225,_0x593fd2){return _0x5bd225>=_0x593fd2;}},_0x12ed59=this[_0x1f6483(0x1f4)][_0x1f6483(0x1e1)](_0x3669f3),_0x4ba984=_0x12ed59?_0x129d05['mcDge'](Date[_0x1f6483(0x202)](),_0x12ed59):undefined;this['phaseStartTimes'][_0x1f6483(0x1fe)](_0x3669f3);const _0x548154=this[_0x1f6483(0x200)]({'eventType':'phase_end','phase':_0x3669f3,'durationMs':_0x4ba984,'metadata':_0x55eae9});this[_0x1f6483(0x1f3)][_0x1f6483(0x21f)](_0x548154),_0x129d05['RmhKa'](this[_0x1f6483(0x1f3)][_0x1f6483(0x20e)],0xa)&&this[_0x1f6483(0x20f)]();}async[_0x23a414(0x216)](_0x28a6a3,_0x491701,_0x181a2b){const _0x3a1934=_0x23a414,_0x38a36f={'yqIjz':function(_0x3d2a3f,_0x38a07c){return _0x3d2a3f-_0x38a07c;},'QAJSw':'phase_error','JMnrt':function(_0x487af1,_0x4a52ad){return _0x487af1 instanceof _0x4a52ad;}},_0x120075=this[_0x3a1934(0x1f4)][_0x3a1934(0x1e1)](_0x28a6a3),_0x22a116=_0x120075?_0x38a36f['yqIjz'](Date[_0x3a1934(0x202)](),_0x120075):undefined;this['phaseStartTimes']['delete'](_0x28a6a3);const _0x4f3803=this['buildEvent']({'eventType':_0x38a36f[_0x3a1934(0x1de)],'phase':_0x28a6a3,'durationMs':_0x22a116,'errorMessage':truncate(_0x38a36f[_0x3a1934(0x214)](_0x491701,Error)?_0x491701['message']:String(_0x491701),0x1f4),'errorType':_0x491701 instanceof Error?_0x491701['constructor']['name']:_0x3a1934(0x212),'metadata':_0x181a2b});await this['sendImmediate'](_0x4f3803);}async[_0x23a414(0x21e)](){const _0x55f8a4=_0x23a414;if(this['buffer'][_0x55f8a4(0x20e)]===0x0)return;const _0x266e3d=this['buffer'][_0x55f8a4(0x1e0)](0x0);try{await this['sendBatch'](_0x266e3d);}catch{}}[_0x23a414(0x200)](_0x5c78fc){const _0x20a95d=_0x23a414;return{'eventType':_0x5c78fc[_0x20a95d(0x20b)],'command':this['command'],'commandId':this['commandId'],'deviceId':this[_0x20a95d(0x224)],'timestamp':new Date()['toISOString'](),'durationMs':_0x5c78fc[_0x20a95d(0x221)],'phase':_0x5c78fc[_0x20a95d(0x206)],'phaseIndex':_0x5c78fc['phaseIndex'],'outcome':_0x5c78fc[_0x20a95d(0x1db)],'errorMessage':_0x5c78fc[_0x20a95d(0x20d)],'errorType':_0x5c78fc['errorType'],'featureId':this[_0x20a95d(0x1fc)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x20a95d(0x1ed)],'transport':this['transport'],'evaluation':_0x5c78fc['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this['platform'],'cwd':process[_0x20a95d(0x201)](),'isTty':this['isTty'],'isCI':this['isCI'],'metadata':_0x5c78fc['metadata']};}async['sendImmediate'](_0x24d24f){const _0x2906fd=_0x23a414;try{await this[_0x2906fd(0x1fd)]([_0x24d24f]);}catch{}}['flushAsync'](){const _0x319c3b=_0x23a414;if(this['flushing'])return;this[_0x319c3b(0x1df)]=this['flush']()[_0x319c3b(0x219)](()=>{const _0x43c788=_0x319c3b;this[_0x43c788(0x1df)]=null;});}async[_0x23a414(0x1fd)](_0x5290ba){const _0x9e85e1=_0x23a414,_0x839312={'dNHWJ':function(_0x254321){return _0x254321();},'VaIio':function(_0x5364af,_0x74f2ad,_0x26a309){return _0x5364af(_0x74f2ad,_0x26a309);},'rZaGX':_0x9e85e1(0x1f5)},_0x4d873c=await _0x839312[_0x9e85e1(0x21a)](getToken)['catch'](()=>null),_0x43aa1d=getApiBaseUrl(),_0x5a4200={'Content-Type':'application/json'};_0x4d873c&&(_0x5a4200['Authorization']=_0x9e85e1(0x1f6)+_0x4d873c);const _0x571991={'events':_0x5290ba};process[_0x9e85e1(0x228)][_0x9e85e1(0x220)]&&console[_0x9e85e1(0x1e3)](_0x9e85e1(0x226)+_0x5290ba['length']+_0x9e85e1(0x203)+_0x43aa1d+'/api/v1/mcp/cli-telemetry');const _0x12a32e=new AbortController(),_0x11b7c6=setTimeout(()=>_0x12a32e[_0x9e85e1(0x204)](),0x1388);try{await _0x839312['VaIio'](fetch,_0x43aa1d+_0x9e85e1(0x1f7),{'method':_0x839312['rZaGX'],'headers':_0x5a4200,'body':JSON[_0x9e85e1(0x1ef)](_0x571991),'signal':_0x12a32e[_0x9e85e1(0x1d9)]});}finally{clearTimeout(_0x11b7c6);}}}function _0x5d9d(_0x4933a4,_0x5f08a5){_0x4933a4=_0x4933a4-0x1d6;const _0x2ef9d7=_0x2ef9();let _0x5d9da6=_0x2ef9d7[_0x4933a4];return _0x5d9da6;}let currentCollector=null;export function createTelemetryCollector(_0x3d7084){return currentCollector=new TelemetryCollector(_0x3d7084),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x37ada8,_0x10a317,_0x24efbb){const _0x596471=_0x23a414,_0x2c3256={'ZRReR':function(_0x1a71a1,_0x16637f){return _0x1a71a1(_0x16637f);},'bjHRL':_0x596471(0x1ee)},_0x50dc76=_0x2c3256[_0x596471(0x213)](createTelemetryCollector,_0x37ada8);await _0x50dc76[_0x596471(0x1d6)](_0x24efbb);try{const _0x30c4a4=await _0x10a317(_0x50dc76);return await _0x50dc76[_0x596471(0x1f8)](_0x2c3256[_0x596471(0x1e7)]),_0x30c4a4;}catch(_0xe3be77){await _0x50dc76[_0x596471(0x1fb)](_0xe3be77);throw _0xe3be77;}finally{await _0x50dc76['flush']();}}function truncate(_0xc35e41,_0x37132a){const _0x17095d=_0x23a414,_0x5cf0be={'gRxfz':function(_0x5c9fca,_0x38a788){return _0x5c9fca>_0x38a788;},'Venmc':_0x17095d(0x215)};return _0x5cf0be[_0x17095d(0x1e4)](_0xc35e41[_0x17095d(0x20e)],_0x37132a)?_0xc35e41['slice'](0x0,_0x37132a)+_0x5cf0be['Venmc']:_0xc35e41;}
1
+ const _0x29d00b=_0xb8be;(function(_0x290bd9,_0x1137c1){const _0x14e81d=_0xb8be,_0x43b6d7=_0x290bd9();while(!![]){try{const _0x10300f=parseInt(_0x14e81d(0x125))/0x1+-parseInt(_0x14e81d(0x11c))/0x2+-parseInt(_0x14e81d(0x116))/0x3*(-parseInt(_0x14e81d(0x110))/0x4)+parseInt(_0x14e81d(0x131))/0x5+-parseInt(_0x14e81d(0x147))/0x6*(-parseInt(_0x14e81d(0x148))/0x7)+-parseInt(_0x14e81d(0x111))/0x8+parseInt(_0x14e81d(0x146))/0x9*(-parseInt(_0x14e81d(0x127))/0xa);if(_0x10300f===_0x1137c1)break;else _0x43b6d7['push'](_0x43b6d7['shift']());}catch(_0x26b4e7){_0x43b6d7['push'](_0x43b6d7['shift']());}}}(_0x478c,0xbba84));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function _0x478c(){const _0x19583e=['10UUHXNV','/api/v1/mcp/cli-telemetry','Authorization','flush','version','toISOString','get','now','command_error','transport','5872040jJXjKR','browserSessionId','flushAsync','beQrW','sendBatch','commandId','Npwds','phaseStartTimes','isCI','checklistItemId','flushing','QncCa','trim','eventType','featureId','\x20event(s)\x20to\x20','slVcR','split','message','KnWgC','isTty','16338474BLOeeD','715236hzXIRH','7dkMNPA','constructor','wAAZl','isTTY','errorType','ntJkO','splice','command_start','evaluation','env','buildEvent','cliVersion','WQVHF','528VrbOIC','448944FaSdOa','trackCommandStart','metadata','command_end','trackCommandError','28515jntRKC','Bearer\x20','commandStartTime','vkemX','application/json','buffer','1351858TgVFEg','POST','signal','fqewU','push','sendImmediate','platform','deviceId','phaseCounter','767803fzIlCS','EIjyy'];_0x478c=function(){return _0x19583e;};return _0x478c();}import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0xb92efb=_0xb8be,_0x1a4e3b={'XBDms':function(_0x19047e){return _0x19047e();},'QncCa':'.ranger','fqewU':function(_0xaadf6,_0x890b72,_0x1ea209){return _0xaadf6(_0x890b72,_0x1ea209);},'bGNMX':function(_0x36a2d2,_0x5ec311){return _0x36a2d2(_0x5ec311);},'MVAlx':function(_0x141de3,_0x59a885,_0x1eb805){return _0x141de3(_0x59a885,_0x1eb805);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x25e68b=join(_0x1a4e3b['XBDms'](homedir),_0x1a4e3b[_0xb92efb(0x13c)]),_0x15fae0=_0x1a4e3b[_0xb92efb(0x11f)](join,_0x25e68b,'.session');if(_0x1a4e3b['bGNMX'](existsSync,_0x15fae0)){cachedDeviceId=readFileSync(_0x15fae0,'utf-8')[_0xb92efb(0x13d)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x1a4e3b['XBDms'](randomUUID),_0x1a4e3b['MVAlx'](mkdirSync,_0x25e68b,{'recursive':!![]}),writeFileSync(_0x15fae0,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];['commandId'];['command'];[_0x29d00b(0x118)];[_0x29d00b(0x124)]=0x0;['phaseStartTimes']=new Map();[_0x29d00b(0x13b)]=null;[_0x29d00b(0x123)];['cliVersion'];['nodeVersion'];['platform'];['isTty'];[_0x29d00b(0x139)];[_0x29d00b(0x13f)];[_0x29d00b(0x13a)];['browserSessionId'];['transport'];constructor(_0x3c45d4){const _0x5af028=_0x29d00b,_0x5a2b4f={'slVcR':function(_0x3af278){return _0x3af278();}},_0x1eda9f='2|6|8|3|5|7|4|0|1'[_0x5af028(0x142)]('|');let _0x2c5293=0x0;while(!![]){switch(_0x1eda9f[_0x2c5293++]){case'0':this[_0x5af028(0x145)]=process['stdout'][_0x5af028(0x14b)]??![];continue;case'1':this[_0x5af028(0x139)]=!!(process['env']['CI']||process['env']['GITHUB_ACTIONS']);continue;case'2':this[_0x5af028(0x136)]=randomUUID();continue;case'3':this[_0x5af028(0x123)]=_0x5a2b4f[_0x5af028(0x141)](getDeviceId);continue;case'4':this['platform']=process['platform'];continue;case'5':this['cliVersion']=getCurrentVersion();continue;case'6':this['command']=_0x3c45d4;continue;case'7':this['nodeVersion']=process[_0x5af028(0x12b)];continue;case'8':this[_0x5af028(0x118)]=Date['now']();continue;}break;}}['setContext'](_0x4147e8){const _0x507531=_0x29d00b;if(_0x4147e8['featureId'])this['featureId']=_0x4147e8['featureId'];if(_0x4147e8['checklistItemId'])this[_0x507531(0x13a)]=_0x4147e8[_0x507531(0x13a)];if(_0x4147e8['browserSessionId'])this[_0x507531(0x132)]=_0x4147e8[_0x507531(0x132)];if(_0x4147e8['transport'])this[_0x507531(0x130)]=_0x4147e8[_0x507531(0x130)];}async[_0x29d00b(0x112)](_0xbbf5e9){const _0x5b1a73=_0x29d00b,_0x5a9dd2={'Npwds':_0x5b1a73(0x14f)},_0x45783c=this['buildEvent']({'eventType':_0x5a9dd2[_0x5b1a73(0x137)],'metadata':_0xbbf5e9});await this['sendImmediate'](_0x45783c);}async['trackCommandEnd'](_0x124629,_0xb28418){const _0x38e999=_0x29d00b,_0x3babdd={'vYcfh':_0x38e999(0x114),'ntJkO':function(_0x3cb665,_0x112abc){return _0x3cb665-_0x112abc;}},_0x4297b4=this[_0x38e999(0x152)]({'eventType':_0x3babdd['vYcfh'],'outcome':_0x124629,'durationMs':_0x3babdd[_0x38e999(0x14d)](Date[_0x38e999(0x12e)](),this[_0x38e999(0x118)]),'metadata':_0xb28418});await this['sendImmediate'](_0x4297b4),await this[_0x38e999(0x12a)]();}async[_0x29d00b(0x115)](_0x5129fa,_0x269e43){const _0xded4f2=_0x29d00b,_0x485cd1={'WQVHF':_0xded4f2(0x12f),'beQrW':function(_0x1f5766,_0x43dccf,_0x11ac1b){return _0x1f5766(_0x43dccf,_0x11ac1b);},'Dslii':function(_0x440767,_0x594b4c){return _0x440767(_0x594b4c);},'cWJbG':function(_0x132260,_0x1c8c6d){return _0x132260 instanceof _0x1c8c6d;},'VEFup':function(_0x2bf4c6,_0x54df54){return _0x2bf4c6-_0x54df54;}},_0x52d5a1=this['buildEvent']({'eventType':_0x485cd1[_0xded4f2(0x154)],'errorMessage':_0x485cd1[_0xded4f2(0x134)](truncate,_0x5129fa instanceof Error?_0x5129fa['message']:_0x485cd1['Dslii'](String,_0x5129fa),0x1f4),'errorType':_0x485cd1['cWJbG'](_0x5129fa,Error)?_0x5129fa[_0xded4f2(0x149)]['name']:'Unknown','durationMs':_0x485cd1['VEFup'](Date['now'](),this['commandStartTime']),'metadata':_0x269e43});await this['sendImmediate'](_0x52d5a1),await this['flush']();}['trackPhaseStart'](_0xcb74e5,_0x33ad75){const _0x31ae21=_0x29d00b,_0x48e0fa={'HTtHG':'phase_start'};this['phaseCounter']++,this[_0x31ae21(0x138)]['set'](_0xcb74e5,Date[_0x31ae21(0x12e)]());const _0x413600=this[_0x31ae21(0x152)]({'eventType':_0x48e0fa['HTtHG'],'phase':_0xcb74e5,'phaseIndex':this['phaseCounter'],'metadata':_0x33ad75});this['buffer'][_0x31ae21(0x120)](_0x413600);}['trackPhaseEnd'](_0x6fce68,_0x157745){const _0x1ca6c8=_0x29d00b,_0x425014={'bRsQp':function(_0x48a178,_0x45749b){return _0x48a178-_0x45749b;},'OXMZR':'phase_end','wAAZl':function(_0x272857,_0x2fef83){return _0x272857>=_0x2fef83;}},_0x44a375=this[_0x1ca6c8(0x138)][_0x1ca6c8(0x12d)](_0x6fce68),_0x3988fc=_0x44a375?_0x425014['bRsQp'](Date[_0x1ca6c8(0x12e)](),_0x44a375):undefined;this[_0x1ca6c8(0x138)]['delete'](_0x6fce68);const _0x242323=this['buildEvent']({'eventType':_0x425014['OXMZR'],'phase':_0x6fce68,'durationMs':_0x3988fc,'metadata':_0x157745});this[_0x1ca6c8(0x11b)]['push'](_0x242323),_0x425014[_0x1ca6c8(0x14a)](this['buffer']['length'],0xa)&&this['flushAsync']();}async['trackPhaseError'](_0x3fba70,_0x310dc0,_0x5431cd){const _0x5266e7=_0x29d00b,_0x1d44ed={'KnWgC':function(_0x4a9e38,_0x56c61e,_0x5e9b72){return _0x4a9e38(_0x56c61e,_0x5e9b72);},'EIjyy':function(_0x3785e6,_0x2411de){return _0x3785e6 instanceof _0x2411de;}},_0x3dd339=this[_0x5266e7(0x138)]['get'](_0x3fba70),_0x14ebe0=_0x3dd339?Date['now']()-_0x3dd339:undefined;this[_0x5266e7(0x138)]['delete'](_0x3fba70);const _0x31fcbb=this[_0x5266e7(0x152)]({'eventType':'phase_error','phase':_0x3fba70,'durationMs':_0x14ebe0,'errorMessage':_0x1d44ed[_0x5266e7(0x144)](truncate,_0x1d44ed['EIjyy'](_0x310dc0,Error)?_0x310dc0[_0x5266e7(0x143)]:String(_0x310dc0),0x1f4),'errorType':_0x1d44ed[_0x5266e7(0x126)](_0x310dc0,Error)?_0x310dc0[_0x5266e7(0x149)]['name']:'Unknown','metadata':_0x5431cd});await this['sendImmediate'](_0x31fcbb);}async[_0x29d00b(0x12a)](){const _0x42a037=_0x29d00b;if(this[_0x42a037(0x11b)]['length']===0x0)return;const _0x7ef5f=this[_0x42a037(0x11b)][_0x42a037(0x14e)](0x0);try{await this['sendBatch'](_0x7ef5f);}catch{}}['buildEvent'](_0x28553b){const _0x11051d=_0x29d00b;return{'eventType':_0x28553b[_0x11051d(0x13e)],'command':this['command'],'commandId':this['commandId'],'deviceId':this['deviceId'],'timestamp':new Date()[_0x11051d(0x12c)](),'durationMs':_0x28553b['durationMs'],'phase':_0x28553b['phase'],'phaseIndex':_0x28553b['phaseIndex'],'outcome':_0x28553b['outcome'],'errorMessage':_0x28553b['errorMessage'],'errorType':_0x28553b[_0x11051d(0x14c)],'featureId':this[_0x11051d(0x13f)],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'transport':this[_0x11051d(0x130)],'evaluation':_0x28553b[_0x11051d(0x150)],'cliVersion':this[_0x11051d(0x153)],'nodeVersion':this['nodeVersion'],'platform':this[_0x11051d(0x122)],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this[_0x11051d(0x139)],'metadata':_0x28553b[_0x11051d(0x113)]};}async[_0x29d00b(0x121)](_0x3593d0){const _0x3427ea=_0x29d00b;try{await this[_0x3427ea(0x135)]([_0x3593d0]);}catch{}}[_0x29d00b(0x133)](){const _0x243b30=_0x29d00b;if(this[_0x243b30(0x13b)])return;this['flushing']=this[_0x243b30(0x12a)]()['finally'](()=>{const _0x2548fa=_0x243b30;this[_0x2548fa(0x13b)]=null;});}async[_0x29d00b(0x135)](_0x5035a3){const _0x3c237f=_0x29d00b,_0x559b12={'kWNcR':function(_0x1cce92){return _0x1cce92();},'vkemX':_0x3c237f(0x129),'pDooR':function(_0x597af0,_0x196b94){return _0x597af0(_0x196b94);}},_0x3b41a3=await getToken()['catch'](()=>null),_0x5de0c6=_0x559b12['kWNcR'](getApiBaseUrl),_0x32fbd1={'Content-Type':_0x3c237f(0x11a)};_0x3b41a3&&(_0x32fbd1[_0x559b12[_0x3c237f(0x119)]]=_0x3c237f(0x117)+_0x3b41a3);const _0x2b137e={'events':_0x5035a3};process[_0x3c237f(0x151)]['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x5035a3['length']+_0x3c237f(0x140)+_0x5de0c6+_0x3c237f(0x128));const _0xdda574=new AbortController(),_0x1c9575=setTimeout(()=>_0xdda574['abort'](),0x1388);try{await fetch(_0x5de0c6+_0x3c237f(0x128),{'method':_0x3c237f(0x11d),'headers':_0x32fbd1,'body':JSON['stringify'](_0x2b137e),'signal':_0xdda574[_0x3c237f(0x11e)]});}finally{_0x559b12['pDooR'](clearTimeout,_0x1c9575);}}}let currentCollector=null;export function createTelemetryCollector(_0x4a9669){return currentCollector=new TelemetryCollector(_0x4a9669),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x502261,_0x18d862,_0x4e6add){const _0xdb0994=_0x29d00b,_0x20e218={'QSPJe':function(_0x390f28,_0xeb3779){return _0x390f28(_0xeb3779);},'zVtwF':'success'},_0x2fefb2=createTelemetryCollector(_0x502261);await _0x2fefb2[_0xdb0994(0x112)](_0x4e6add);try{const _0x7b5b6a=await _0x20e218['QSPJe'](_0x18d862,_0x2fefb2);return await _0x2fefb2['trackCommandEnd'](_0x20e218['zVtwF']),_0x7b5b6a;}catch(_0xc5509){await _0x2fefb2[_0xdb0994(0x115)](_0xc5509);throw _0xc5509;}finally{await _0x2fefb2['flush']();}}function _0xb8be(_0x4d8c57,_0x40f211){_0x4d8c57=_0x4d8c57-0x110;const _0x478cc7=_0x478c();let _0xb8be1a=_0x478cc7[_0x4d8c57];return _0xb8be1a;}function truncate(_0x748fce,_0x885433){const _0x19c21d={'bIAVu':function(_0x72d9ea,_0x1ae7c1){return _0x72d9ea+_0x1ae7c1;}};return _0x748fce['length']>_0x885433?_0x19c21d['bIAVu'](_0x748fce['slice'](0x0,_0x885433),'...'):_0x748fce;}
@@ -1 +1 @@
1
- (function(_0x2c94fd,_0x175c4c){const _0x2842be=_0x5edd,_0x4c160e=_0x2c94fd();while(!![]){try{const _0x4e5d2f=parseInt(_0x2842be(0x19a))/0x1+parseInt(_0x2842be(0x192))/0x2*(-parseInt(_0x2842be(0x18e))/0x3)+parseInt(_0x2842be(0x197))/0x4+parseInt(_0x2842be(0x18d))/0x5+parseInt(_0x2842be(0x18c))/0x6*(parseInt(_0x2842be(0x18b))/0x7)+-parseInt(_0x2842be(0x196))/0x8+parseInt(_0x2842be(0x198))/0x9;if(_0x4e5d2f===_0x175c4c)break;else _0x4c160e['push'](_0x4c160e['shift']());}catch(_0x27931e){_0x4c160e['push'](_0x4c160e['shift']());}}}(_0x2a87,0xc8c3b));import{getApiBaseUrl}from'./environment.js';function _0x2a87(){const _0xd5b314=['1577269CUutcw','4286163mgGcmQ','6WhusvU','704540Hajywz','129ojcPTf','application/json','POST','MWpPh','45718StgFpN','json','token','/cli-auth/refresh','11440432TkqynC','1463756IMFORG','4850073enABBa','refreshToken'];_0x2a87=function(){return _0xd5b314;};return _0x2a87();}function _0x5edd(_0x333e2c,_0x16e8b0){_0x333e2c=_0x333e2c-0x18b;const _0x2a8743=_0x2a87();let _0x5eddf6=_0x2a8743[_0x333e2c];return _0x5eddf6;}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0xcd0083=_0x5edd,_0x2675ea={'CCtJy':function(_0x1f652d){return _0x1f652d();},'ePfae':function(_0x241c51,_0x3fd6f1,_0x4b5a5d){return _0x241c51(_0x3fd6f1,_0x4b5a5d);},'KNOXa':_0xcd0083(0x190),'MWpPh':function(_0x11e0b6,_0x4e6cf9){return _0x11e0b6(_0x4e6cf9);}},_0x523279=await _0x2675ea['CCtJy'](getRefreshToken);if(!_0x523279)return null;const _0x4b0c05=getApiBaseUrl();try{const _0x350ca7=await _0x2675ea['ePfae'](fetch,_0x4b0c05+_0xcd0083(0x195),{'method':_0x2675ea['KNOXa'],'headers':{'Content-Type':_0xcd0083(0x18f)},'body':JSON['stringify']({'refreshToken':_0x523279}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x350ca7['ok'])return null;const _0x178d5c=await _0x350ca7[_0xcd0083(0x193)]();return await _0x2675ea[_0xcd0083(0x191)](storeToken,_0x178d5c[_0xcd0083(0x194)]),await storeRefreshToken(_0x178d5c[_0xcd0083(0x199)]),_0x178d5c[_0xcd0083(0x194)];}catch{return null;}}
1
+ (function(_0x371117,_0x4b8851){const _0x56833e=_0x37e0,_0x269348=_0x371117();while(!![]){try{const _0x55fb5a=parseInt(_0x56833e(0x19d))/0x1+-parseInt(_0x56833e(0x1a2))/0x2*(-parseInt(_0x56833e(0x1a0))/0x3)+-parseInt(_0x56833e(0x1a1))/0x4+-parseInt(_0x56833e(0x199))/0x5*(parseInt(_0x56833e(0x19a))/0x6)+-parseInt(_0x56833e(0x194))/0x7+-parseInt(_0x56833e(0x195))/0x8+parseInt(_0x56833e(0x19b))/0x9*(parseInt(_0x56833e(0x198))/0xa);if(_0x55fb5a===_0x4b8851)break;else _0x269348['push'](_0x269348['shift']());}catch(_0x567060){_0x269348['push'](_0x269348['shift']());}}}(_0x2fbb,0x951fc));function _0x2fbb(){const _0x5a6f20=['CbhCs','application/json','stringify','6930693SokeMn','3116816STqvhO','wgyBY','json','38950GfFYPY','10yoXZuv','2786820xYMnKm','5391fMDiEy','POST','734787owEatV','SqKlw','refreshToken','2796dnkyHo','742876Cvstdw','80uwfWdi'];_0x2fbb=function(){return _0x5a6f20;};return _0x2fbb();}function _0x37e0(_0x5f0d0a,_0x4ba3e1){_0x5f0d0a=_0x5f0d0a-0x192;const _0x2fbbc0=_0x2fbb();let _0x37e0b2=_0x2fbbc0[_0x5f0d0a];return _0x37e0b2;}import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x2720b8=_0x37e0,_0x6dd845={'SqKlw':function(_0x44758a){return _0x44758a();},'CbhCs':_0x2720b8(0x19c),'RhUXb':_0x2720b8(0x192),'wgyBY':function(_0x55f810,_0xc30c51){return _0x55f810(_0xc30c51);}},_0x312262=await getRefreshToken();if(!_0x312262)return null;const _0x125a66=_0x6dd845[_0x2720b8(0x19e)](getApiBaseUrl);try{const _0x3a0fae=await fetch(_0x125a66+'/cli-auth/refresh',{'method':_0x6dd845[_0x2720b8(0x1a3)],'headers':{'Content-Type':_0x6dd845['RhUXb']},'body':JSON[_0x2720b8(0x193)]({'refreshToken':_0x312262}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x3a0fae['ok'])return null;const _0x4954f5=await _0x3a0fae[_0x2720b8(0x197)]();return await _0x6dd845[_0x2720b8(0x196)](storeToken,_0x4954f5['token']),await _0x6dd845[_0x2720b8(0x196)](storeRefreshToken,_0x4954f5[_0x2720b8(0x19f)]),_0x4954f5['token'];}catch{return null;}}
@@ -1 +1 @@
1
- function _0x1e85(_0x382835,_0x2c5f76){_0x382835=_0x382835-0xc4;const _0x17344b=_0x1734();let _0x1e850d=_0x17344b[_0x382835];return _0x1e850d;}(function(_0x365a17,_0x92b9fc){const _0x1f00aa=_0x1e85,_0x5cf5a7=_0x365a17();while(!![]){try{const _0x3120e0=-parseInt(_0x1f00aa(0xd7))/0x1*(-parseInt(_0x1f00aa(0xe4))/0x2)+-parseInt(_0x1f00aa(0xd3))/0x3*(parseInt(_0x1f00aa(0xed))/0x4)+parseInt(_0x1f00aa(0xe0))/0x5+-parseInt(_0x1f00aa(0xda))/0x6+-parseInt(_0x1f00aa(0xe9))/0x7*(-parseInt(_0x1f00aa(0xd2))/0x8)+-parseInt(_0x1f00aa(0xe1))/0x9+parseInt(_0x1f00aa(0xca))/0xa;if(_0x3120e0===_0x92b9fc)break;else _0x5cf5a7['push'](_0x5cf5a7['shift']());}catch(_0x506307){_0x5cf5a7['push'](_0x5cf5a7['shift']());}}}(_0x1734,0xda75a));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x5545e6,_0x2f26b4){const _0x321360=_0x1e85,_0x373f77={'XBKIn':function(_0xb991a4,_0x1eeebd,_0x4aaa29){return _0xb991a4(_0x1eeebd,_0x4aaa29);},'bpDSd':function(_0x3781b0,_0x555abd,_0x1d5ca8){return _0x3781b0(_0x555abd,_0x1d5ca8);},'UVnAs':'.trace','XqwZK':function(_0x5f3ddd,_0x1b96fa,_0x40710d){return _0x5f3ddd(_0x1b96fa,_0x40710d);},'Zkafb':function(_0x380c2e,_0x5de91c){return _0x380c2e-_0x5de91c;},'TFQqF':'before','SQyfy':_0x321360(0xd9),'AyHNa':_0x321360(0xf0),'xNibb':'frame-snapshot','SGNfA':function(_0x92ef10,_0x12bba7){return _0x92ef10===_0x12bba7;},'lETEy':_0x321360(0xc5),'xpxIN':'string','OuAFq':function(_0x221c0d,_0x4cc3ba){return _0x221c0d-_0x4cc3ba;},'AGjGh':function(_0x399c41,_0x11c500){return _0x399c41>=_0x11c500;},'zHfBB':function(_0x55987b,_0x5d71fb){return _0x55987b===_0x5d71fb;},'MWhlc':function(_0x5381c2,_0x3b3a2e){return _0x5381c2+_0x3b3a2e;}},_0x1cbb1d=new Map();if(_0x2f26b4[_0x321360(0xe8)]===0x0)return _0x1cbb1d;const _0x22aca1=[],_0x4303ee=async _0x68e50f=>{const _0x457a16=_0x321360,_0x3f50c7=await _0x373f77['XBKIn'](readdir,_0x68e50f,{'withFileTypes':!![]});for(const _0x1cdd1f of _0x3f50c7){const _0x323a6a=_0x373f77['bpDSd'](join,_0x68e50f,_0x1cdd1f[_0x457a16(0xc8)]);if(_0x1cdd1f['isDirectory']())await _0x4303ee(_0x323a6a);else _0x1cdd1f['name'][_0x457a16(0xdc)](_0x373f77['UVnAs'])&&_0x22aca1['push'](_0x323a6a);}};await _0x4303ee(_0x5545e6);if(_0x22aca1['length']===0x0)return _0x1cbb1d;const _0x46db18=[];for(const _0x2c0af6 of _0x22aca1){const _0xb27f50=await _0x373f77[_0x321360(0xf4)](readFile,_0x2c0af6,_0x321360(0xe5)),_0x39fef4=_0xb27f50[_0x321360(0xd5)]('\x0a')['filter'](_0x1da010=>_0x1da010['trim']());for(const _0x35077e of _0x39fef4){try{_0x46db18['push'](JSON['parse'](_0x35077e));}catch{}}}if(_0x46db18[_0x321360(0xe8)]===0x0)return _0x1cbb1d;const _0x7342ba=_0x46db18['find'](_0x26d702=>_0x26d702['type']==='context-options');if(!_0x7342ba)return _0x1cbb1d;const _0x101155=_0x373f77[_0x321360(0xdd)](_0x7342ba['wallTime'],_0x7342ba[_0x321360(0xc6)]),_0x432f51=new Map();for(const _0x31ff3c of _0x46db18){switch(_0x31ff3c[_0x321360(0xee)]){case _0x373f77[_0x321360(0xd6)]:{const _0x20f231=_0x31ff3c;_0x432f51['set'](_0x20f231[_0x321360(0xcf)],{'callId':_0x20f231['callId'],'startTime':_0x20f231['startTime'],'endTime':0x0,'method':_0x20f231[_0x321360(0xe7)],'apiName':_0x20f231[_0x321360(0xeb)],'params':_0x20f231[_0x321360(0xf6)],'pageId':_0x20f231['pageId'],'beforeSnapshot':_0x20f231[_0x321360(0xf5)]});break;}case _0x373f77[_0x321360(0xd4)]:{const _0x4736d8=_0x31ff3c,_0x3cbbc8=_0x432f51[_0x321360(0xe6)](_0x4736d8[_0x321360(0xcf)]);if(_0x3cbbc8){if(_0x4736d8[_0x321360(0xcb)])_0x3cbbc8[_0x321360(0xcb)]=_0x4736d8['inputSnapshot'];if(_0x4736d8['point'])_0x3cbbc8['point']=_0x4736d8['point'];}break;}case _0x373f77['AyHNa']:{const _0x1c2476=_0x31ff3c,_0x13c837=_0x432f51['get'](_0x1c2476['callId']);if(_0x13c837){_0x13c837[_0x321360(0xde)]=_0x1c2476['endTime'];if(_0x1c2476['afterSnapshot'])_0x13c837[_0x321360(0xcd)]=_0x1c2476['afterSnapshot'];}break;}}}const _0x30be3f=Array[_0x321360(0xdb)](_0x432f51[_0x321360(0xc4)]())['filter'](_0x298119=>_0x298119[_0x321360(0xde)]>0x0&&(_0x298119[_0x321360(0xcd)]||_0x298119[_0x321360(0xf5)]))[_0x321360(0xdf)]((_0x1dc4f7,_0x5e4407)=>_0x1dc4f7['startTime']-_0x5e4407[_0x321360(0xec)]);if(_0x30be3f['length']===0x0)return _0x1cbb1d;const _0x2e6b88=new Map();for(const _0x5e1ce8 of _0x46db18){if(_0x5e1ce8[_0x321360(0xee)]===_0x373f77[_0x321360(0xd1)]){const _0x5aece1=_0x5e1ce8['snapshot'];_0x5aece1?.['snapshotName']&&_0x5aece1?.['frameUrl']&&_0x2e6b88[_0x321360(0xd8)](_0x5aece1['snapshotName'],_0x5aece1['frameUrl']);}}const _0x2f8be4=new Map();for(const _0x47cc86 of _0x30be3f){const _0x5edb38=_0x47cc86[_0x321360(0xf6)]?.['url'];_0x373f77['SGNfA'](_0x47cc86[_0x321360(0xe7)],_0x373f77[_0x321360(0xc9)])&&typeof _0x5edb38===_0x373f77['xpxIN']&&_0x47cc86[_0x321360(0xcc)]&&_0x2f8be4[_0x321360(0xd8)](_0x47cc86['pageId'],_0x5edb38);}for(const _0x3976bc of _0x46db18){const _0x4bc12f=_0x3976bc,_0x56cb43=_0x4bc12f[_0x321360(0xf6)],_0x229e82=_0x56cb43?.[_0x321360(0xea)];_0x373f77['SGNfA'](_0x4bc12f['type'],'event')&&_0x373f77['SGNfA'](_0x4bc12f[_0x321360(0xe7)],_0x321360(0xe2))&&_0x373f77['SGNfA'](typeof _0x229e82,_0x373f77['xpxIN'])&&typeof _0x4bc12f['pageId']===_0x373f77['xpxIN']&&_0x2f8be4['set'](_0x4bc12f[_0x321360(0xcc)],_0x229e82);}for(const _0x17ccc2 of _0x2f26b4){const _0x37a100=new Date(_0x17ccc2[_0x321360(0xef)])['getTime'](),_0x1dcf5a=_0x373f77['Zkafb'](_0x37a100,_0x101155);let _0x5a3650=null,_0x399619=Infinity;for(const _0xb65d91 of _0x30be3f){const _0x258d0a=Math['abs'](_0x373f77[_0x321360(0xf1)](_0xb65d91[_0x321360(0xde)],_0x1dcf5a));_0x258d0a<_0x399619&&(_0x399619=_0x258d0a,_0x5a3650=_0xb65d91);}if(!_0x5a3650)continue;const _0x3c73e7=_0x5a3650[_0x321360(0xcd)]||_0x5a3650['beforeSnapshot'];if(!_0x3c73e7)continue;const _0x4a5460=_0x5a3650['pageId']||_0x321360(0xd0);let _0x8d1bd3=_0x2e6b88['get'](_0x3c73e7)||_0x2f8be4['get'](_0x4a5460)||'';if(!_0x8d1bd3)for(let _0x147347=_0x30be3f['indexOf'](_0x5a3650);_0x373f77[_0x321360(0xe3)](_0x147347,0x0);_0x147347--){const _0x4cc894=_0x30be3f[_0x147347]['params']?.[_0x321360(0xea)];if(_0x373f77['zHfBB'](_0x30be3f[_0x147347]['method'],_0x373f77[_0x321360(0xc9)])&&typeof _0x4cc894===_0x321360(0xf3)){_0x8d1bd3=_0x4cc894;break;}}let _0xc978b9,_0x4c450b;const _0x28c81b=_0x30be3f[_0x321360(0xce)](_0x5a3650);if(_0x28c81b>=0x0&&_0x28c81b<_0x30be3f['length']-0x1){const _0x4b5754=_0x30be3f[_0x373f77['MWhlc'](_0x28c81b,0x1)];_0x4b5754[_0x321360(0xc7)]&&_0x4b5754[_0x321360(0xcb)]&&(_0xc978b9=_0x4b5754['point'],_0x4c450b=_0x4b5754[_0x321360(0xcb)]);}_0x1cbb1d['set'](_0x17ccc2[_0x321360(0xf2)],{'snapshotName':_0x3c73e7,'inputSnapshotName':_0x4c450b,'pageId':_0x4a5460,'pageUrl':_0x8d1bd3,'callId':_0x5a3650['callId'],'point':_0xc978b9});}return _0x1cbb1d;}function _0x1734(){const _0x271ba5=['monotonicTime','point','name','lETEy','11611790PLHLGG','inputSnapshot','pageId','afterSnapshot','indexOf','callId','page@0','xNibb','32JEczVu','3531WGoIwE','SQyfy','split','TFQqF','6wUEgcJ','set','input','2676402UOQjaj','from','endsWith','Zkafb','endTime','sort','5118420rSVYpv','3704499ckICzR','navigated','AGjGh','148386rVVqzc','utf-8','get','method','length','377825hdgGTP','url','apiName','startTime','3716qNerVk','type','capturedAt','after','OuAFq','stepId','string','XqwZK','beforeSnapshot','params','values','goto'];_0x1734=function(){return _0x271ba5;};return _0x1734();}
1
+ (function(_0x2c9b8d,_0x10b6bf){const _0x5581b5=_0x2d24,_0xec1a5=_0x2c9b8d();while(!![]){try{const _0x2ffc3b=-parseInt(_0x5581b5(0x1fd))/0x1*(parseInt(_0x5581b5(0x20a))/0x2)+-parseInt(_0x5581b5(0x202))/0x3+parseInt(_0x5581b5(0x20b))/0x4+parseInt(_0x5581b5(0x1ec))/0x5+-parseInt(_0x5581b5(0x1ff))/0x6+-parseInt(_0x5581b5(0x1f6))/0x7+parseInt(_0x5581b5(0x21a))/0x8;if(_0x2ffc3b===_0x10b6bf)break;else _0xec1a5['push'](_0xec1a5['shift']());}catch(_0xf8e23b){_0xec1a5['push'](_0xec1a5['shift']());}}}(_0x4197,0x9bd2d));function _0x4197(){const _0x4b9619=['pageId','FBpft','parse','wallTime','vTLZM','values','4125935uFNhQs','beforeSnapshot','snapshotName','lQxvB','filter','iVVRu','input','goto','url','method','7898233nMsIDo','inputSnapshot','CAubt','after','page@0','split','frame-snapshot','376265RXXzRN','.trace','1928556XPGgqA','point','name','600633asvvZM','indexOf','HPmeR','stepId','from','isDirectory','apiName','callId','2AlSlrs','2460348sYOkMF','afterSnapshot','iXyVc','ujbtw','abs','string','event','params','startTime','endTime','get','snapshot','type','push','length','9793600CtXHHE'];_0x4197=function(){return _0x4b9619;};return _0x4197();}import{readdir,readFile}from'fs/promises';import{join}from'path';function _0x2d24(_0x5301b1,_0x2e42e4){_0x5301b1=_0x5301b1-0x1eb;const _0x4197ba=_0x4197();let _0x2d247d=_0x4197ba[_0x5301b1];return _0x2d247d;}export async function mapStepsToTraceSnapshots(_0x49d62f,_0x40a86e){const _0x21431e=_0x2d24,_0x1ab00b={'iXyVc':_0x21431e(0x1fe),'lQxvB':function(_0x57d804,_0x5d4ff1){return _0x57d804===_0x5d4ff1;},'TGFTN':function(_0x286dd6,_0x49782a){return _0x286dd6-_0x49782a;},'vTLZM':_0x21431e(0x1f9),'HPmeR':function(_0x104a27,_0x3c27e1){return _0x104a27===_0x3c27e1;},'nqbgy':_0x21431e(0x1fc),'iVVRu':function(_0x5295bb,_0x1e8dd6){return _0x5295bb===_0x1e8dd6;},'ujbtw':'string','goNxV':'navigated','rfXUT':function(_0x259551,_0x4d21e8){return _0x259551<_0x4d21e8;},'CAubt':_0x21431e(0x1fa),'FBpft':function(_0x3c1f3e,_0x1865e3){return _0x3c1f3e>=_0x1865e3;},'qtHUI':'goto','LoDGM':function(_0x1be940,_0x3eface){return _0x1be940+_0x3eface;}},_0x286aae=new Map();if(_0x40a86e[_0x21431e(0x219)]===0x0)return _0x286aae;const _0x574f2=[],_0x392534=async _0x464553=>{const _0x409073=_0x21431e,_0x2b324b=await readdir(_0x464553,{'withFileTypes':!![]});for(const _0xec2002 of _0x2b324b){const _0x1b15c0=join(_0x464553,_0xec2002[_0x409073(0x201)]);if(_0xec2002[_0x409073(0x207)]())await _0x392534(_0x1b15c0);else _0xec2002[_0x409073(0x201)]['endsWith'](_0x1ab00b[_0x409073(0x20d)])&&_0x574f2[_0x409073(0x218)](_0x1b15c0);}};await _0x392534(_0x49d62f);if(_0x574f2[_0x21431e(0x219)]===0x0)return _0x286aae;const _0x40f2f6=[];for(const _0x2374e0 of _0x574f2){const _0x4d6980=await readFile(_0x2374e0,'utf-8'),_0x53dd32=_0x4d6980[_0x21431e(0x1fb)]('\x0a')[_0x21431e(0x1f0)](_0x2d5b26=>_0x2d5b26['trim']());for(const _0xa5078c of _0x53dd32){try{_0x40f2f6['push'](JSON[_0x21431e(0x21d)](_0xa5078c));}catch{}}}if(_0x1ab00b['lQxvB'](_0x40f2f6[_0x21431e(0x219)],0x0))return _0x286aae;const _0x479cb6=_0x40f2f6['find'](_0x252d3f=>_0x252d3f['type']==='context-options');if(!_0x479cb6)return _0x286aae;const _0x44ac05=_0x1ab00b['TGFTN'](_0x479cb6[_0x21431e(0x21e)],_0x479cb6['monotonicTime']),_0x12bf30=new Map();for(const _0x33055f of _0x40f2f6){switch(_0x33055f[_0x21431e(0x217)]){case'before':{const _0x2e119d=_0x33055f;_0x12bf30['set'](_0x2e119d['callId'],{'callId':_0x2e119d['callId'],'startTime':_0x2e119d[_0x21431e(0x213)],'endTime':0x0,'method':_0x2e119d[_0x21431e(0x1f5)],'apiName':_0x2e119d[_0x21431e(0x208)],'params':_0x2e119d[_0x21431e(0x212)],'pageId':_0x2e119d[_0x21431e(0x21b)],'beforeSnapshot':_0x2e119d[_0x21431e(0x1ed)]});break;}case _0x21431e(0x1f2):{const _0x85d6a4=_0x33055f,_0x2cd7fd=_0x12bf30[_0x21431e(0x215)](_0x85d6a4['callId']);if(_0x2cd7fd){if(_0x85d6a4['inputSnapshot'])_0x2cd7fd[_0x21431e(0x1f7)]=_0x85d6a4[_0x21431e(0x1f7)];if(_0x85d6a4[_0x21431e(0x200)])_0x2cd7fd['point']=_0x85d6a4[_0x21431e(0x200)];}break;}case _0x1ab00b[_0x21431e(0x21f)]:{const _0x15efbb=_0x33055f,_0x57eb1f=_0x12bf30[_0x21431e(0x215)](_0x15efbb['callId']);if(_0x57eb1f){_0x57eb1f['endTime']=_0x15efbb[_0x21431e(0x214)];if(_0x15efbb['afterSnapshot'])_0x57eb1f[_0x21431e(0x20c)]=_0x15efbb[_0x21431e(0x20c)];}break;}}}const _0x27fb3b=Array[_0x21431e(0x206)](_0x12bf30[_0x21431e(0x1eb)]())[_0x21431e(0x1f0)](_0xe12858=>_0xe12858[_0x21431e(0x214)]>0x0&&(_0xe12858['afterSnapshot']||_0xe12858[_0x21431e(0x1ed)]))['sort']((_0x50a718,_0xcee36a)=>_0x50a718[_0x21431e(0x213)]-_0xcee36a[_0x21431e(0x213)]);if(_0x27fb3b[_0x21431e(0x219)]===0x0)return _0x286aae;const _0x3e9242=new Map();for(const _0x2e11e0 of _0x40f2f6){if(_0x1ab00b['HPmeR'](_0x2e11e0[_0x21431e(0x217)],_0x1ab00b['nqbgy'])){const _0x15667a=_0x2e11e0[_0x21431e(0x216)];_0x15667a?.[_0x21431e(0x1ee)]&&_0x15667a?.['frameUrl']&&_0x3e9242['set'](_0x15667a[_0x21431e(0x1ee)],_0x15667a['frameUrl']);}}const _0x37f939=new Map();for(const _0x1b041c of _0x27fb3b){const _0x580110=_0x1b041c['params']?.[_0x21431e(0x1f4)];_0x1ab00b[_0x21431e(0x1f1)](_0x1b041c['method'],_0x21431e(0x1f3))&&typeof _0x580110===_0x1ab00b['ujbtw']&&_0x1b041c['pageId']&&_0x37f939['set'](_0x1b041c['pageId'],_0x580110);}for(const _0x4bb238 of _0x40f2f6){const _0x7198a5=_0x4bb238,_0x5178e6=_0x7198a5[_0x21431e(0x212)],_0x1da1ea=_0x5178e6?.[_0x21431e(0x1f4)];_0x1ab00b[_0x21431e(0x1f1)](_0x7198a5['type'],_0x21431e(0x211))&&_0x1ab00b[_0x21431e(0x204)](_0x7198a5['method'],_0x1ab00b['goNxV'])&&_0x1ab00b[_0x21431e(0x1ef)](typeof _0x1da1ea,_0x1ab00b[_0x21431e(0x20e)])&&typeof _0x7198a5['pageId']===_0x21431e(0x210)&&_0x37f939['set'](_0x7198a5[_0x21431e(0x21b)],_0x1da1ea);}for(const _0x80dd95 of _0x40a86e){const _0x472cb0=new Date(_0x80dd95['capturedAt'])['getTime'](),_0x165a4b=_0x472cb0-_0x44ac05;let _0x4d23d6=null,_0x1de4c3=Infinity;for(const _0x3ee141 of _0x27fb3b){const _0x3cb53d=Math[_0x21431e(0x20f)](_0x3ee141[_0x21431e(0x214)]-_0x165a4b);_0x1ab00b['rfXUT'](_0x3cb53d,_0x1de4c3)&&(_0x1de4c3=_0x3cb53d,_0x4d23d6=_0x3ee141);}if(!_0x4d23d6)continue;const _0x13b3e2=_0x4d23d6[_0x21431e(0x20c)]||_0x4d23d6['beforeSnapshot'];if(!_0x13b3e2)continue;const _0x198f88=_0x4d23d6[_0x21431e(0x21b)]||_0x1ab00b[_0x21431e(0x1f8)];let _0x3644be=_0x3e9242[_0x21431e(0x215)](_0x13b3e2)||_0x37f939['get'](_0x198f88)||'';if(!_0x3644be)for(let _0x1b2af0=_0x27fb3b[_0x21431e(0x203)](_0x4d23d6);_0x1ab00b[_0x21431e(0x21c)](_0x1b2af0,0x0);_0x1b2af0--){const _0x477228=_0x27fb3b[_0x1b2af0][_0x21431e(0x212)]?.['url'];if(_0x27fb3b[_0x1b2af0]['method']===_0x1ab00b['qtHUI']&&_0x1ab00b[_0x21431e(0x1f1)](typeof _0x477228,'string')){_0x3644be=_0x477228;break;}}let _0x4df0f0,_0x2ea0b8;const _0x108e31=_0x27fb3b[_0x21431e(0x203)](_0x4d23d6);if(_0x1ab00b['FBpft'](_0x108e31,0x0)&&_0x108e31<_0x1ab00b['TGFTN'](_0x27fb3b[_0x21431e(0x219)],0x1)){const _0x45c4ce=_0x27fb3b[_0x1ab00b['LoDGM'](_0x108e31,0x1)];_0x45c4ce[_0x21431e(0x200)]&&_0x45c4ce['inputSnapshot']&&(_0x4df0f0=_0x45c4ce[_0x21431e(0x200)],_0x2ea0b8=_0x45c4ce['inputSnapshot']);}_0x286aae['set'](_0x80dd95[_0x21431e(0x205)],{'snapshotName':_0x13b3e2,'inputSnapshotName':_0x2ea0b8,'pageId':_0x198f88,'pageUrl':_0x3644be,'callId':_0x4d23d6[_0x21431e(0x209)],'point':_0x4df0f0});}return _0x286aae;}
@@ -1 +1 @@
1
- (function(_0x2492aa,_0x526c1d){const _0x17d4cc=_0x3fd3,_0x15edc0=_0x2492aa();while(!![]){try{const _0x28d72a=-parseInt(_0x17d4cc(0x1ef))/0x1*(-parseInt(_0x17d4cc(0x1f2))/0x2)+parseInt(_0x17d4cc(0x1ed))/0x3+parseInt(_0x17d4cc(0x1f1))/0x4+-parseInt(_0x17d4cc(0x1f4))/0x5+parseInt(_0x17d4cc(0x1f6))/0x6+-parseInt(_0x17d4cc(0x1f0))/0x7+-parseInt(_0x17d4cc(0x1f5))/0x8;if(_0x28d72a===_0x526c1d)break;else _0x15edc0['push'](_0x15edc0['shift']());}catch(_0x40261d){_0x15edc0['push'](_0x15edc0['shift']());}}}(_0x1473,0x63b2e));import{getApiBaseUrl}from'./environment.js';function _0x3fd3(_0x153533,_0x3fca6d){_0x153533=_0x153533-0x1ec;const _0x147397=_0x1473();let _0x3fd3df=_0x147397[_0x153533];return _0x3fd3df;}export async function getCurrentUser(_0x372b0e){const _0x2f5b75=_0x3fd3,_0x54285f={'gzJxr':function(_0x2bf167,_0x4c5de0){return _0x2bf167 instanceof _0x4c5de0;}},_0x227443=getApiBaseUrl();try{const _0x1fc82a=await fetch(_0x227443+'/api/v1/mcp/me',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x372b0e}});if(!_0x1fc82a['ok'])return{'success':![],'error':_0x1fc82a[_0x2f5b75(0x1f3)]+'\x20'+_0x1fc82a[_0x2f5b75(0x1ec)],'status':_0x1fc82a['status']};const _0xe93cb1=await _0x1fc82a['json']();return{'success':!![],'user':_0xe93cb1};}catch(_0x268f48){return{'success':![],'error':_0x54285f['gzJxr'](_0x268f48,Error)?_0x268f48[_0x2f5b75(0x1ee)]:String(_0x268f48)};}}function _0x1473(){const _0x487288=['statusText','1997649AIZJGU','message','145807CRHcMY','4359544ovALRM','1138340iYBUXS','2ZwoQrD','status','141840pqrkPh','2890232LMOoES','1947180GjJskQ'];_0x1473=function(){return _0x487288;};return _0x1473();}
1
+ function _0x22d5(_0x58b97b,_0x37c3df){_0x58b97b=_0x58b97b-0x122;const _0x52b92e=_0x52b9();let _0x22d58a=_0x52b92e[_0x58b97b];return _0x22d58a;}function _0x52b9(){const _0x5cb13c=['2573185cvVHbr','GET','1001jwgEvg','3874760XSAuwE','QwWTC','3103152jaPdDX','6Iabngx','2283KjGyVO','3507287OBrMhG','json','296wBHKXu','220550hHLJcB','230049mZXwhd','536eghdmT','status','XscaZ','Bearer\x20'];_0x52b9=function(){return _0x5cb13c;};return _0x52b9();}(function(_0x4ef6e9,_0x777fc7){const _0x125469=_0x22d5,_0x199617=_0x4ef6e9();while(!![]){try{const _0x55060f=-parseInt(_0x125469(0x132))/0x1*(parseInt(_0x125469(0x127))/0x2)+parseInt(_0x125469(0x130))/0x3+-parseInt(_0x125469(0x12e))/0x4+parseInt(_0x125469(0x12b))/0x5+-parseInt(_0x125469(0x131))/0x6*(parseInt(_0x125469(0x122))/0x7)+-parseInt(_0x125469(0x124))/0x8*(parseInt(_0x125469(0x126))/0x9)+parseInt(_0x125469(0x125))/0xa*(parseInt(_0x125469(0x12d))/0xb);if(_0x55060f===_0x777fc7)break;else _0x199617['push'](_0x199617['shift']());}catch(_0x3dca5d){_0x199617['push'](_0x199617['shift']());}}}(_0x52b9,0x81136));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x38908e){const _0x51c577=_0x22d5,_0x2726a8={'XscaZ':function(_0x3a5f49){return _0x3a5f49();},'nydul':_0x51c577(0x12c),'QwWTC':function(_0x122232,_0x503f98){return _0x122232(_0x503f98);}},_0x10d24f=_0x2726a8[_0x51c577(0x129)](getApiBaseUrl);try{const _0x33204d=await fetch(_0x10d24f+'/api/v1/mcp/me',{'method':_0x2726a8['nydul'],'headers':{'Authorization':_0x51c577(0x12a)+_0x38908e}});if(!_0x33204d['ok'])return{'success':![],'error':_0x33204d[_0x51c577(0x128)]+'\x20'+_0x33204d['statusText'],'status':_0x33204d['status']};const _0x331e95=await _0x33204d[_0x51c577(0x123)]();return{'success':!![],'user':_0x331e95};}catch(_0x1acbf9){return{'success':![],'error':_0x1acbf9 instanceof Error?_0x1acbf9['message']:_0x2726a8[_0x51c577(0x12f)](String,_0x1acbf9)};}}
@@ -1 +1 @@
1
- const _0x362e27=_0x2573;(function(_0x1e84b2,_0x106126){const _0x210ed0=_0x2573,_0x18cf5d=_0x1e84b2();while(!![]){try{const _0xf7fcf5=parseInt(_0x210ed0(0x8d))/0x1+-parseInt(_0x210ed0(0x8e))/0x2+-parseInt(_0x210ed0(0x87))/0x3+parseInt(_0x210ed0(0x80))/0x4*(parseInt(_0x210ed0(0x88))/0x5)+parseInt(_0x210ed0(0x91))/0x6*(parseInt(_0x210ed0(0x8a))/0x7)+parseInt(_0x210ed0(0x94))/0x8*(-parseInt(_0x210ed0(0x85))/0x9)+-parseInt(_0x210ed0(0x83))/0xa*(-parseInt(_0x210ed0(0x82))/0xb);if(_0xf7fcf5===_0x106126)break;else _0x18cf5d['push'](_0x18cf5d['shift']());}catch(_0x558cd7){_0x18cf5d['push'](_0x18cf5d['shift']());}}}(_0x1fe8,0x416da));function _0x2573(_0x454e1b,_0x5600b7){_0x454e1b=_0x454e1b-0x7a;const _0x1fe84b=_0x1fe8();let _0x2573a4=_0x1fe84b[_0x454e1b];return _0x2573a4;}import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x362e27(0x8b);export function getCurrentVersion(){const _0x5194c9=_0x362e27,_0xf710c7={'gVSNN':function(_0x1ed4b9,_0x3437c9,_0x217bd6,_0x19a77c,_0x298067){return _0x1ed4b9(_0x3437c9,_0x217bd6,_0x19a77c,_0x298067);},'VZame':_0x5194c9(0x93),'gLrai':function(_0x43c4d1,_0x5e8923,_0x56a975,_0x7b21cf,_0x214c76,_0x499bd6){return _0x43c4d1(_0x5e8923,_0x56a975,_0x7b21cf,_0x214c76,_0x499bd6);},'ZqlCe':function(_0x205f6f,_0x101549){return _0x205f6f(_0x101549);},'ZyeZx':function(_0x29c6e8,_0x1849a1,_0x347a87){return _0x29c6e8(_0x1849a1,_0x347a87);},'DHhLP':_0x5194c9(0x8c),'WQDOw':'unknown'},_0x5c0fcc=[_0xf710c7[_0x5194c9(0x84)](join,__dirname,'..','..',_0xf710c7['VZame']),_0xf710c7['gLrai'](join,__dirname,'..','..','..',_0x5194c9(0x93))];for(const _0x13b482 of _0x5c0fcc){if(_0xf710c7['ZqlCe'](existsSync,_0x13b482))try{const _0x407978=JSON[_0x5194c9(0x7f)](_0xf710c7['ZyeZx'](readFileSync,_0x13b482,_0xf710c7[_0x5194c9(0x7e)]));return _0x407978[_0x5194c9(0x7c)]||_0xf710c7[_0x5194c9(0x86)];}catch{continue;}}return _0xf710c7['WQDOw'];}export function getLatestVersion(){const _0x41a2ca=_0x362e27,_0x4e2b87={'slGDu':function(_0x5e614e,_0x17918d,_0x580169){return _0x5e614e(_0x17918d,_0x580169);},'XRlcN':'utf-8','nvpuX':_0x41a2ca(0x8f),'mlpwn':function(_0x49bcf8,_0x5b53bc){return _0x49bcf8 instanceof _0x5b53bc;}};try{const _0x1e60fc=_0x4e2b87[_0x41a2ca(0x81)](execSync,_0x41a2ca(0x92)+PACKAGE_NAME+'\x20version',{'encoding':_0x4e2b87['XRlcN'],'timeout':0x2710,'stdio':[_0x4e2b87['nvpuX'],'pipe','pipe']});return{'version':_0x1e60fc[_0x41a2ca(0x7b)]()};}catch(_0x3a8e69){const _0x1e3cd7=_0x4e2b87[_0x41a2ca(0x7a)](_0x3a8e69,Error)?_0x3a8e69[_0x41a2ca(0x90)]:String(_0x3a8e69);return{'error':_0x1e3cd7};}}function _0x1fe8(){const _0x5e3b85=['WQDOw','930180MayRlc','2865eNgLNa','myWYc','28Tiugtf','@ranger-testing/ranger-cli','utf-8','129728gwODLP','617952HvVtiq','pipe','message','416436YfHkhS','npm\x20view\x20','package.json','8kCReEr','mlpwn','trim','version','split','DHhLP','parse','1684GPEReK','slGDu','140129WXjvVu','220QYoglh','gVSNN','376317NytOHl'];_0x1fe8=function(){return _0x5e3b85;};return _0x1fe8();}export function compareVersions(_0x2f2b2b,_0x48a46e){const _0x54d58f=_0x362e27,_0x4d1d92={'myWYc':function(_0x402c8d,_0x1c04f6){return _0x402c8d<_0x1c04f6;},'itJxe':function(_0x39f05b,_0x5504f8){return _0x39f05b>_0x5504f8;}},_0x446036=_0x2f2b2b['split']('.')['map'](Number),_0xe4a52a=_0x48a46e[_0x54d58f(0x7d)]('.')['map'](Number);for(let _0x5ee4d8=0x0;_0x4d1d92[_0x54d58f(0x89)](_0x5ee4d8,0x3);_0x5ee4d8++){const _0x2b2104=_0x446036[_0x5ee4d8]||0x0,_0x306d07=_0xe4a52a[_0x5ee4d8]||0x0;if(_0x4d1d92['itJxe'](_0x306d07,_0x2b2104))return 0x1;if(_0x306d07<_0x2b2104)return-0x1;}return 0x0;}
1
+ const _0x34fee7=_0x422b;(function(_0x1fdd60,_0x1e6fb6){const _0x3e2f3d=_0x422b,_0x130f0a=_0x1fdd60();while(!![]){try{const _0x38e1f3=parseInt(_0x3e2f3d(0xf4))/0x1+-parseInt(_0x3e2f3d(0xf5))/0x2*(-parseInt(_0x3e2f3d(0xf9))/0x3)+-parseInt(_0x3e2f3d(0xf1))/0x4*(-parseInt(_0x3e2f3d(0xee))/0x5)+-parseInt(_0x3e2f3d(0xf0))/0x6+parseInt(_0x3e2f3d(0xea))/0x7+parseInt(_0x3e2f3d(0xeb))/0x8*(parseInt(_0x3e2f3d(0xec))/0x9)+-parseInt(_0x3e2f3d(0xe6))/0xa;if(_0x38e1f3===_0x1e6fb6)break;else _0x130f0a['push'](_0x130f0a['shift']());}catch(_0x5d9e7c){_0x130f0a['push'](_0x130f0a['shift']());}}}(_0x2b9e,0xbf882));import{readFileSync}from'fs';import{existsSync}from'fs';function _0x422b(_0x3890a1,_0x4e4570){_0x3890a1=_0x3890a1-0xe5;const _0x2b9e40=_0x2b9e();let _0x422b14=_0x2b9e40[_0x3890a1];return _0x422b14;}import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x34fee7(0xed);export function getCurrentVersion(){const _0x476553=_0x34fee7,_0x38af7b={'CVGpQ':_0x476553(0xfa),'YsrDk':function(_0x5b19db,_0x18da83,_0xf05184,_0x13bbb5,_0xb1a05,_0x4bc034){return _0x5b19db(_0x18da83,_0xf05184,_0x13bbb5,_0xb1a05,_0x4bc034);},'MOyVg':function(_0x51f6ba,_0x2d322e){return _0x51f6ba(_0x2d322e);},'aouxq':'utf-8','VpknC':_0x476553(0xf8)},_0x59941a=[join(__dirname,'..','..',_0x38af7b[_0x476553(0xe5)]),_0x38af7b[_0x476553(0xef)](join,__dirname,'..','..','..','package.json')];for(const _0x1f5c34 of _0x59941a){if(_0x38af7b[_0x476553(0xf3)](existsSync,_0x1f5c34))try{const _0x7ff7ba=JSON[_0x476553(0xfb)](readFileSync(_0x1f5c34,_0x38af7b[_0x476553(0xf6)]));return _0x7ff7ba['version']||_0x38af7b[_0x476553(0xe7)];}catch{continue;}}return _0x38af7b['VpknC'];}function _0x2b9e(){const _0x1eae95=['1283556edcAlA','aouxq','anLMp','unknown','3mONuLb','package.json','parse','message','split','CVGpQ','12352120KuBdVR','VpknC','map','KLzct','7941591ArHpCa','1720LiRBqZ','17100IMBbHx','@ranger-testing/ranger-cli','568445MlTAmQ','YsrDk','6533028TmhnIK','8OjSzti','utf-8','MOyVg','696395qLugIU'];_0x2b9e=function(){return _0x1eae95;};return _0x2b9e();}export function getLatestVersion(){const _0x2b0d23=_0x34fee7,_0xda4187={'mPdJs':function(_0x4022b2,_0xd89061,_0x4100a4){return _0x4022b2(_0xd89061,_0x4100a4);},'KLzct':'pipe','WRbna':function(_0x58ad0f,_0x48c274){return _0x58ad0f instanceof _0x48c274;}};try{const _0x5d26de=_0xda4187['mPdJs'](execSync,'npm\x20view\x20'+PACKAGE_NAME+'\x20version',{'encoding':_0x2b0d23(0xf2),'timeout':0x2710,'stdio':['pipe',_0xda4187[_0x2b0d23(0xe9)],'pipe']});return{'version':_0x5d26de['trim']()};}catch(_0x567d45){const _0x502cc9=_0xda4187['WRbna'](_0x567d45,Error)?_0x567d45[_0x2b0d23(0xfc)]:String(_0x567d45);return{'error':_0x502cc9};}}export function compareVersions(_0x133da4,_0x20b035){const _0x115d2f=_0x34fee7,_0xcf67c7={'anLMp':function(_0x573a9c,_0x9f1bda){return _0x573a9c<_0x9f1bda;},'qGjBN':function(_0x4f290f,_0x43077f){return _0x4f290f<_0x43077f;}},_0x13b460=_0x133da4[_0x115d2f(0xfd)]('.')[_0x115d2f(0xe8)](Number),_0xe5e94f=_0x20b035['split']('.')[_0x115d2f(0xe8)](Number);for(let _0x2f0217=0x0;_0xcf67c7[_0x115d2f(0xf7)](_0x2f0217,0x3);_0x2f0217++){const _0x44e515=_0x13b460[_0x2f0217]||0x0,_0x1e2904=_0xe5e94f[_0x2f0217]||0x0;if(_0x1e2904>_0x44e515)return 0x1;if(_0xcf67c7['qGjBN'](_0x1e2904,_0x44e515))return-0x1;}return 0x0;}