@ranger-testing/ranger-cli 2.4.1 → 2.4.3

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 (70) 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/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/reportGenerator.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/build/commands/verifyInBrowser.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x19d0(_0xd60711,_0x272f97){_0xd60711=_0xd60711-0xd5;const _0x67126f=_0x6712();let _0x19d090=_0x67126f[_0xd60711];return _0x19d090;}const _0x5b2481=_0x19d0;(function(_0x233c88,_0x5c1ec4){const _0x3bbbc9=_0x19d0,_0x67e671=_0x233c88();while(!![]){try{const _0xa3ccf1=-parseInt(_0x3bbbc9(0x101))/0x1+parseInt(_0x3bbbc9(0x10f))/0x2*(parseInt(_0x3bbbc9(0x10d))/0x3)+-parseInt(_0x3bbbc9(0x117))/0x4+-parseInt(_0x3bbbc9(0xd7))/0x5+parseInt(_0x3bbbc9(0xe1))/0x6+-parseInt(_0x3bbbc9(0x113))/0x7+parseInt(_0x3bbbc9(0x10a))/0x8*(parseInt(_0x3bbbc9(0x11e))/0x9);if(_0xa3ccf1===_0x5c1ec4)break;else _0x67e671['push'](_0x67e671['shift']());}catch(_0x55ed1c){_0x67e671['push'](_0x67e671['shift']());}}}(_0x6712,0x51e73));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x352831,_0x583d65){const _0x4f8074=_0x19d0,_0x582688={'NoPfs':function(_0x1fc7dd,_0x5a39c0){return _0x1fc7dd>=_0x5a39c0;},'tRrfA':function(_0x20e11d,_0xa92346){return _0x20e11d<=_0xa92346;},'ZDfYd':function(_0x5b4259,_0x9c4061){return _0x5b4259+_0x9c4061;}};if(_0x582688[_0x4f8074(0xdc)](_0x583d65,_0x352831[_0x4f8074(0x110)]))return[0x0,0x0];const _0x3b318a=_0x352831[_0x583d65];let _0x456b77=0x1,_0x3f8581=0x80;while(_0x582688[_0x4f8074(0x107)](_0x456b77,0x8)&&!(_0x3b318a&_0x3f8581)){_0x456b77++,_0x3f8581>>=0x1;}if(_0x582688['ZDfYd'](_0x583d65,_0x456b77)>_0x352831['length'])return[0x0,0x0];let _0x36aa88=_0x3b318a&_0x3f8581-0x1;for(let _0x45df18=0x1;_0x45df18<_0x456b77;_0x45df18++){_0x36aa88=_0x582688['ZDfYd'](_0x36aa88*0x100,_0x352831[_0x583d65+_0x45df18]);}return[_0x36aa88,_0x456b77];}function readId(_0xb8d9dd,_0x3dee9f){const _0x5bac91=_0x19d0,_0x1bf61e={'munNK':function(_0x26948e,_0x4dc995){return _0x26948e>=_0x4dc995;},'EXfXB':function(_0x4fc6e9,_0x407d97){return _0x4fc6e9+_0x407d97;}};if(_0x3dee9f>=_0xb8d9dd[_0x5bac91(0x110)])return[0x0,0x0];const _0x31a68f=_0xb8d9dd[_0x3dee9f];let _0x5e1745;if(_0x1bf61e[_0x5bac91(0xde)](_0x31a68f,0x80))_0x5e1745=0x1;else{if(_0x31a68f>=0x40)_0x5e1745=0x2;else{if(_0x31a68f>=0x20)_0x5e1745=0x3;else{if(_0x31a68f>=0x10)_0x5e1745=0x4;else return[_0x31a68f,0x1];}}}if(_0x3dee9f+_0x5e1745>_0xb8d9dd[_0x5bac91(0x110)])return[0x0,0x0];let _0x1ae997=0x0;for(let _0x371fb0=0x0;_0x371fb0<_0x5e1745;_0x371fb0++){_0x1ae997=_0x1ae997*0x100+_0xb8d9dd[_0x1bf61e[_0x5bac91(0xf6)](_0x3dee9f,_0x371fb0)];}return[_0x1ae997,_0x5e1745];}function readUint(_0x22ba89,_0x35c8e5,_0x1950b7){const _0x20eeca=_0x19d0,_0x5c6fd5={'QDBDE':function(_0x1e83e5,_0x5a29f3){return _0x1e83e5<_0x5a29f3;},'tMOmq':function(_0x304cc0,_0x3de451){return _0x304cc0*_0x3de451;}};let _0x2eb1d0=0x0;for(let _0x1ba89a=0x0;_0x5c6fd5['QDBDE'](_0x1ba89a,_0x1950b7);_0x1ba89a++){_0x2eb1d0=_0x5c6fd5[_0x20eeca(0xf7)](_0x2eb1d0,0x100)+_0x22ba89[_0x35c8e5+_0x1ba89a];}return _0x2eb1d0;}function isUnknownSize(_0x2df414,_0x175300){const _0x5cc76e=_0x19d0,_0x3fcaa3={'abEsD':function(_0x4ab7e5,_0xb629e4){return _0x4ab7e5===_0xb629e4;},'iITMa':function(_0x2c76c6,_0x23116d){return _0x2c76c6*_0x23116d;}};return _0x3fcaa3['abEsD'](_0x2df414,Math[_0x5cc76e(0x106)](0x2,_0x3fcaa3['iITMa'](0x7,_0x175300))-0x1);}function writeVint(_0x59bf84,_0x48250b){const _0x2f0e57=_0x19d0,_0x5e0397={'nZzjk':function(_0x15b6be,_0x1974f0){return _0x15b6be-_0x1974f0;},'jjdQT':function(_0x45a417,_0x26e785){return _0x45a417<<_0x26e785;}};let _0x2fc879=_0x48250b||0x1;while(_0x5e0397['nZzjk'](Math['pow'](0x2,0x7*_0x2fc879),0x2)<_0x59bf84)_0x2fc879++;const _0x573cb8=Buffer['alloc'](_0x2fc879);for(let _0xd9d30d=_0x2fc879-0x1;_0xd9d30d>=0x0;_0xd9d30d--){_0x573cb8[_0xd9d30d]=_0x59bf84&0xff,_0x59bf84=Math[_0x2f0e57(0xf3)](_0x59bf84/0x100);}return _0x573cb8[0x0]|=_0x5e0397['jjdQT'](0x1,0x8-_0x2fc879),_0x573cb8;}function writeUint(_0x105184,_0x13cefd){const _0x251b6c=_0x19d0,_0x134ee5={'jNZnd':function(_0x35df4b,_0x5769ca){return _0x35df4b-_0x5769ca;},'XSJga':function(_0x2347ed,_0x316313){return _0x2347ed>=_0x316313;},'aMDmZ':function(_0x332cce,_0x5c233f){return _0x332cce/_0x5c233f;}},_0x159f0a=Buffer[_0x251b6c(0xd5)](_0x13cefd);for(let _0x1186d5=_0x134ee5[_0x251b6c(0xec)](_0x13cefd,0x1);_0x134ee5[_0x251b6c(0xf1)](_0x1186d5,0x0);_0x1186d5--){_0x159f0a[_0x1186d5]=_0x105184&0xff,_0x105184=Math[_0x251b6c(0xf3)](_0x134ee5[_0x251b6c(0x11d)](_0x105184,0x100));}return _0x159f0a;}function writeUnknownSizeVint(_0x324752){const _0x5a4c2b={'gEZch':function(_0x3c5aed,_0x1dad49){return _0x3c5aed>>_0x1dad49;}},_0x15ef63=Buffer['alloc'](_0x324752,0xff);return _0x15ef63[0x0]=_0x5a4c2b['gEZch'](0xff,_0x324752-0x1),_0x15ef63;}function uintSize(_0x121fd5){const _0x18a669=_0x19d0,_0x43a41b={'lXdnG':function(_0x26952,_0x3d10f7){return _0x26952/_0x3d10f7;}};if(_0x121fd5===0x0)return 0x1;let _0x13fe96=0x0,_0x17f465=_0x121fd5;while(_0x17f465>0x0){_0x13fe96++,_0x17f465=Math['floor'](_0x43a41b[_0x18a669(0xf2)](_0x17f465,0x100));}return _0x13fe96;}function findTimestampScale(_0x1aa60d,_0xdef368){const _0xee4764=_0x19d0,_0x1cdf61={'yEUjz':function(_0x542c43,_0x2f394b){return _0x542c43+_0x2f394b;},'gMgOa':function(_0x381911,_0x5acae9){return _0x381911<_0x5acae9;},'EZXxK':function(_0xad7981,_0x36d83e,_0x5daf12){return _0xad7981(_0x36d83e,_0x5daf12);},'yQMnD':function(_0xb52feb,_0x572df7){return _0xb52feb+_0x572df7;},'FbabG':function(_0x3cfedf,_0x16041f,_0x4ad298){return _0x3cfedf(_0x16041f,_0x4ad298);},'klbLU':function(_0x5b1804,_0x8c53b0,_0x447e03){return _0x5b1804(_0x8c53b0,_0x447e03);},'odMdt':function(_0x425535,_0x1b02c6,_0x595bf1,_0x665c4f){return _0x425535(_0x1b02c6,_0x595bf1,_0x665c4f);},'wEkZH':function(_0x2043be,_0x272d2c,_0x5e7507){return _0x2043be(_0x272d2c,_0x5e7507);}};let _0xf0fd73=_0xdef368;const _0x2c97b5=Math[_0xee4764(0xe4)](_0x1aa60d['length'],_0x1cdf61['yEUjz'](_0xdef368,0x2710));while(_0x1cdf61[_0xee4764(0xeb)](_0xf0fd73,_0x2c97b5)){const [_0x12ad57,_0xfbf3fa]=readId(_0x1aa60d,_0xf0fd73),[_0x18f7f5,_0x5bb603]=_0x1cdf61['EZXxK'](readVint,_0x1aa60d,_0xf0fd73+_0xfbf3fa);if(_0x12ad57===ID_INFO){let _0x2c7255=_0x1cdf61['yQMnD'](_0x1cdf61[_0xee4764(0xda)](_0xf0fd73,_0xfbf3fa),_0x5bb603);const _0x11fb87=_0x2c7255+_0x18f7f5;while(_0x1cdf61[_0xee4764(0xeb)](_0x2c7255,_0x11fb87)){const [_0x22ce91,_0xe3abd7]=_0x1cdf61[_0xee4764(0x102)](readId,_0x1aa60d,_0x2c7255),[_0x3ba337,_0x3c268a]=_0x1cdf61['klbLU'](readVint,_0x1aa60d,_0x2c7255+_0xe3abd7);if(_0x22ce91===ID_TIMESTAMP_SCALE)return _0x1cdf61['odMdt'](readUint,_0x1aa60d,_0x2c7255+_0xe3abd7+_0x3c268a,_0x3ba337);_0x2c7255+=_0xe3abd7+_0x3c268a+_0x3ba337;}break;}if(_0x12ad57===ID_CLUSTER)break;if(_0x1cdf61['wEkZH'](isUnknownSize,_0x18f7f5,_0x5bb603))break;_0xf0fd73+=_0x1cdf61[_0xee4764(0x11c)](_0xfbf3fa,_0x5bb603)+_0x18f7f5;}return 0xf4240;}function findFirstClusterOffset(_0x574bbf,_0x4fc2fd){const _0x48fa66=_0x19d0,_0x52b5cd={'aApLT':function(_0x44a269,_0x1ff6b9){return _0x44a269<_0x1ff6b9;},'XCTqT':function(_0x321469,_0x313206){return _0x321469===_0x313206;},'QXULi':function(_0x411ef2,_0x368922,_0x4b61d6){return _0x411ef2(_0x368922,_0x4b61d6);},'KhdPR':function(_0x567736,_0x32647d){return _0x567736+_0x32647d;},'sQtyP':function(_0x137135,_0x4cda90,_0xc3b6d8){return _0x137135(_0x4cda90,_0xc3b6d8);}};let _0xb7eb4b=_0x4fc2fd;while(_0x52b5cd['aApLT'](_0xb7eb4b,_0x574bbf['length'])){const [_0x580d86,_0x1c5685]=readId(_0x574bbf,_0xb7eb4b);if(_0x52b5cd[_0x48fa66(0xe3)](_0x580d86,ID_CLUSTER))return _0xb7eb4b;const [_0x2665bb,_0xb64ecd]=_0x52b5cd['QXULi'](readVint,_0x574bbf,_0x52b5cd[_0x48fa66(0xfb)](_0xb7eb4b,_0x1c5685));if(_0x52b5cd['sQtyP'](isUnknownSize,_0x2665bb,_0xb64ecd))return _0xb7eb4b;_0xb7eb4b+=_0x1c5685+_0xb64ecd+_0x2665bb;}return _0x574bbf[_0x48fa66(0x110)];}function findClusterEnd(_0x4f43ec,_0x47279c,_0x9500ae,_0x46a520){const _0x2734b5=_0x19d0,_0x527af6={'vnbdV':function(_0x585e5d,_0x302485){return _0x585e5d+_0x302485;},'jfFOq':function(_0x5baad2,_0x47b460){return _0x5baad2-_0x47b460;},'ijbgw':function(_0x28a7e8,_0x2cea3,_0x4f6781){return _0x28a7e8(_0x2cea3,_0x4f6781);},'nPRnf':function(_0x35f4a9,_0x3fd861,_0x25cafb){return _0x35f4a9(_0x3fd861,_0x25cafb);}};if(!isUnknownSize(_0x9500ae,_0x46a520))return _0x527af6['vnbdV'](_0x47279c,_0x9500ae);const _0x2c732c=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2cd4d9=_0x47279c;while(_0x2cd4d9<_0x527af6['jfFOq'](_0x4f43ec['length'],0x4)){const [_0x8968cb,_0x4eba13]=_0x527af6[_0x2734b5(0xea)](readId,_0x4f43ec,_0x2cd4d9);if(_0x2c732c[_0x2734b5(0xf5)](_0x8968cb))return _0x2cd4d9;const [_0x56ad0b,_0x48accb]=_0x527af6[_0x2734b5(0xea)](readVint,_0x4f43ec,_0x2cd4d9+_0x4eba13);if(_0x527af6[_0x2734b5(0xf4)](isUnknownSize,_0x56ad0b,_0x48accb))return _0x4f43ec[_0x2734b5(0x110)];_0x2cd4d9+=_0x527af6['vnbdV'](_0x4eba13+_0x48accb,_0x56ad0b);}return _0x4f43ec['length'];}function _0x6712(){const _0xca736b=['stitchWebmFiles.js','pow','tRrfA','\x20files\x20->\x20','wpRQh','3632SpQOtD','icSTP','IPXIm','747zKyQeb','slice','752eJhkBK','length','from','concat','4583040VzkZsl','rJmZu','aqEYQ','error','2566856AnRoQR','clusters','argv','vbWVy','endsWith','yEUjz','aMDmZ','32463ReAIUN','alloc','bodyAfterTimestamp','1744060PiEQny','push','YVUdA','yQMnD','PFfLl','NoPfs','header','munNK','readInt16BE','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','3452502jUNkcR','FrrDp','XCTqT','min','PwTFC','nSsNV','ylEgx','lNioB','maxTicks','ijbgw','gMgOa','jNZnd','ojTvd','BqnBM','dUaSX','dxxOo','XSJga','lXdnG','floor','nPRnf','has','EXfXB','tMOmq','DfHgW','ODWpi','nvabm','KhdPR','SpsKT','erIsM','TrUqY','pUONW','JvHpc','325898MiQPVE','FbabG','exit','log'];_0x6712=function(){return _0xca736b;};return _0x6712();}function extractClusters(_0x17806a,_0x5352ff){const _0x215979=_0x19d0,_0x55cf59={'nvabm':function(_0x102a67,_0x3f957e){return _0x102a67+_0x3f957e;},'pUONW':function(_0x574625,_0x481e11,_0x12582d){return _0x574625(_0x481e11,_0x12582d);},'SpsKT':function(_0x204086,_0x5e6a55,_0x1ee983,_0x324d5f){return _0x204086(_0x5e6a55,_0x1ee983,_0x324d5f);},'vbWVy':function(_0x24ba53,_0x6505c7){return _0x24ba53+_0x6505c7;},'SHjDg':function(_0x28635e,_0x2d27e7){return _0x28635e+_0x2d27e7;},'lNioB':function(_0x3305e4,_0x10b2e5){return _0x3305e4+_0x10b2e5;},'sCKqO':function(_0x4dd2d6,_0x252a2b,_0x4fe65e){return _0x4dd2d6(_0x252a2b,_0x4fe65e);},'JbkAa':function(_0x5ebf42,_0x377a28){return _0x5ebf42+_0x377a28;},'iwoYs':function(_0x4c0e3d,_0xff38db){return _0x4c0e3d<_0xff38db;},'ylEgx':function(_0x171870,_0x4f062c,_0xfc8890){return _0x171870(_0x4f062c,_0xfc8890);},'FrrDp':function(_0x69c098,_0x12b6ef){return _0x69c098===_0x12b6ef;},'jbXav':function(_0x22b713,_0x2a84e2){return _0x22b713>=_0x2a84e2;},'YVfob':function(_0x1ed368,_0x48f027){return _0x1ed368+_0x48f027;},'IPXIm':function(_0x4010a3,_0x227a5d){return _0x4010a3>_0x227a5d;},'YVUdA':function(_0x4fe171,_0x105e17){return _0x4fe171===_0x105e17;},'fxJyG':function(_0x2a0e98,_0x1b68d1){return _0x2a0e98+_0x1b68d1;}},_0x1c0918=[],_0x4ea64e=Buffer[_0x215979(0x111)]([0x1f,0x43,0xb6,0x75]);let _0x4c29ee=0x0;while(_0x4c29ee<_0x17806a['length']){const _0x3deb37=_0x17806a['indexOf'](_0x4ea64e,_0x4c29ee);if(_0x3deb37===-0x1)break;const [_0x18790a,_0x3d5cc6]=readId(_0x17806a,_0x3deb37);if(_0x18790a!==ID_CLUSTER){_0x4c29ee=_0x55cf59['nvabm'](_0x3deb37,0x1);continue;}const [_0x22f19a,_0x27a747]=readVint(_0x17806a,_0x3deb37+_0x3d5cc6),_0x43db94=_0x55cf59[_0x215979(0xfa)](_0x3deb37+_0x3d5cc6,_0x27a747),_0x5c9274=findClusterEnd(_0x17806a,_0x43db94,_0x22f19a,_0x27a747);let _0x59272c=_0x43db94,_0x48bb70=0x0,_0x4bcf7d=0x2,_0x3fcb23=![],_0xed8ca4=Buffer['alloc'](0x0),_0x15fbdb=Buffer['alloc'](0x0);while(_0x59272c<_0x5c9274){const [_0x28fb2c,_0x2360da]=_0x55cf59[_0x215979(0xff)](readId,_0x17806a,_0x59272c),[_0xbf3e94,_0x6c9d4d]=readVint(_0x17806a,_0x55cf59['nvabm'](_0x59272c,_0x2360da));if(_0x28fb2c===ID_TIMESTAMP){_0x48bb70=_0x55cf59[_0x215979(0xfc)](readUint,_0x17806a,_0x55cf59[_0x215979(0x11a)](_0x59272c,_0x2360da)+_0x6c9d4d,_0xbf3e94),_0x4bcf7d=_0xbf3e94,_0x3fcb23=!![],_0xed8ca4=_0x17806a['slice'](_0x43db94,_0x59272c);const _0x217ae7=_0x55cf59['SHjDg'](_0x55cf59[_0x215979(0xe8)](_0x59272c+_0x2360da,_0x6c9d4d),_0xbf3e94);_0x15fbdb=_0x17806a['slice'](_0x217ae7,_0x5c9274);break;}if(_0x28fb2c===ID_CLUSTER)break;if(_0x55cf59['sCKqO'](isUnknownSize,_0xbf3e94,_0x6c9d4d))break;_0x59272c+=_0x55cf59['JbkAa'](_0x2360da+_0x6c9d4d,_0xbf3e94);}!_0x3fcb23&&(_0x15fbdb=_0x17806a['slice'](_0x43db94,_0x5c9274));let _0x3cea63=_0x48bb70;_0x59272c=_0x43db94;while(_0x55cf59['iwoYs'](_0x59272c,_0x5c9274)){const [_0x11cca6,_0x2135cd]=_0x55cf59[_0x215979(0xe7)](readId,_0x17806a,_0x59272c),[_0x37bbfb,_0x28de73]=readVint(_0x17806a,_0x59272c+_0x2135cd);if(_0x55cf59[_0x215979(0xe2)](_0x11cca6,ID_SIMPLE_BLOCK)&&_0x55cf59['jbXav'](_0x37bbfb,0x4)){const _0x442ceb=_0x55cf59['vbWVy'](_0x59272c,_0x2135cd)+_0x28de73,[,_0x2e655]=_0x55cf59['pUONW'](readVint,_0x17806a,_0x442ceb),_0x8c0d74=_0x17806a[_0x215979(0xdf)](_0x442ceb+_0x2e655),_0x22068b=_0x55cf59['YVfob'](_0x48bb70,_0x8c0d74);if(_0x55cf59[_0x215979(0x10c)](_0x22068b,_0x3cea63))_0x3cea63=_0x22068b;}if(_0x55cf59[_0x215979(0xd9)](_0x11cca6,ID_CLUSTER))break;if(isUnknownSize(_0x37bbfb,_0x28de73))break;_0x59272c+=_0x55cf59['fxJyG'](_0x2135cd+_0x28de73,_0x37bbfb);}_0x1c0918[_0x215979(0xd8)]({'timestamp':_0x48bb70,'maxTicks':_0x3cea63,'bodyBeforeTimestamp':_0xed8ca4,'bodyAfterTimestamp':_0x15fbdb,'timestampElementSize':_0x4bcf7d}),_0x4c29ee=_0x5c9274;}return _0x1c0918;}function parseWebm(_0x449110){const _0x12cedf=_0x19d0,_0x3b36aa={'WhQMy':function(_0x195ff5,_0x5916e9,_0x1d20f5){return _0x195ff5(_0x5916e9,_0x1d20f5);},'PwTFC':function(_0x565e92,_0x34e2c5){return _0x565e92+_0x34e2c5;},'jECVT':function(_0x1ff209,_0x270a00){return _0x1ff209!==_0x270a00;},'DfHgW':function(_0x1ad737,_0x15e2b2){return _0x1ad737+_0x15e2b2;},'hgJXN':function(_0x4861ae,_0x3ce3cb,_0x586588){return _0x4861ae(_0x3ce3cb,_0x586588);}};let _0xa35bde=0x0;const [,_0x23af89]=_0x3b36aa['WhQMy'](readId,_0x449110,_0xa35bde),[_0x235fa9,_0x5ae712]=readVint(_0x449110,_0xa35bde+_0x23af89);_0xa35bde+=_0x3b36aa[_0x12cedf(0xe5)](_0x23af89,_0x5ae712)+_0x235fa9;const [_0x55d8c2,_0x4a44d7]=_0x3b36aa['WhQMy'](readId,_0x449110,_0xa35bde);if(_0x3b36aa['jECVT'](_0x55d8c2,ID_SEGMENT))return null;const [,_0x484ee0]=readVint(_0x449110,_0xa35bde+_0x4a44d7),_0x10fc9e=_0x3b36aa[_0x12cedf(0xf8)](_0xa35bde,_0x4a44d7)+_0x484ee0,_0x59041d=_0x3b36aa['hgJXN'](findTimestampScale,_0x449110,_0x10fc9e),_0x364f78=findFirstClusterOffset(_0x449110,_0x10fc9e),_0x3a13f6=_0x449110[_0x12cedf(0x10e)](0x0,_0x364f78),_0x3c0011=extractClusters(_0x449110,_0x59041d);let _0x35ebf2=0x0;for(const _0x1b0ed9 of _0x3c0011){if(_0x1b0ed9[_0x12cedf(0xe9)]>_0x35ebf2)_0x35ebf2=_0x1b0ed9[_0x12cedf(0xe9)];}return{'header':_0x3a13f6,'clusters':_0x3c0011,'timestampScale':_0x59041d,'maxTimestampTicks':_0x35ebf2};}function buildCluster(_0x5a361e,_0x2f3be8,_0x28e335){const _0x4d4a57=_0x19d0,_0x2ad0b7={'TrUqY':function(_0x9930c1,_0x7a8086){return _0x9930c1(_0x7a8086);},'OKruR':function(_0x57cdff,_0x483907,_0x2105db){return _0x57cdff(_0x483907,_0x2105db);}},_0x5ef1b8=Buffer[_0x4d4a57(0x111)]([0x1f,0x43,0xb6,0x75]),_0xf55e06=Math['max'](0x4,_0x2ad0b7[_0x4d4a57(0xfe)](uintSize,_0x5a361e)),_0x484e52=Buffer['concat']([Buffer[_0x4d4a57(0x111)]([ID_TIMESTAMP]),writeVint(_0xf55e06),_0x2ad0b7['OKruR'](writeUint,_0x5a361e,_0xf55e06)]),_0x3bbf34=Buffer[_0x4d4a57(0x112)]([_0x2f3be8,_0x484e52,_0x28e335]),_0x983958=writeVint(_0x3bbf34[_0x4d4a57(0x110)]);return Buffer['concat']([_0x5ef1b8,_0x983958,_0x3bbf34]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x35c411){const _0x1a82e8=_0x19d0,_0x14b006={'erIsM':function(_0xe202d6,_0x5b831b,_0x4269fd){return _0xe202d6(_0x5b831b,_0x4269fd);},'bueFp':function(_0x240f23,_0x350986,_0x1af37b){return _0x240f23(_0x350986,_0x1af37b);},'rJmZu':function(_0x1b82c5,_0x1735cb){return _0x1b82c5+_0x1735cb;},'PFfLl':function(_0x17584e,_0x2eb712){return _0x17584e+_0x2eb712;},'ODWpi':function(_0x4aa2ac,_0x155680){return _0x4aa2ac+_0x155680;},'ojTvd':function(_0x9ac159,_0x45a610,_0x4b8bbd){return _0x9ac159(_0x45a610,_0x4b8bbd);},'gSjUn':function(_0x304ddb,_0x30316c){return _0x304ddb===_0x30316c;},'icSTP':function(_0x2a05a1,_0x47eaa3,_0xc882d3){return _0x2a05a1(_0x47eaa3,_0xc882d3);},'JvHpc':function(_0x50ecda,_0x5a2b41){return _0x50ecda<_0x5a2b41;},'dUaSX':function(_0x4b4ec0,_0x1858c4,_0x261c96){return _0x4b4ec0(_0x1858c4,_0x261c96);},'aqEYQ':function(_0x4bb9af,_0x988d5c){return _0x4bb9af+_0x988d5c;},'BqnBM':function(_0x206be9,_0x2675fb){return _0x206be9!==_0x2675fb;},'SsYgG':function(_0x55b09f,_0x1fdcdb,_0x59de38){return _0x55b09f(_0x1fdcdb,_0x59de38);},'gSfVD':function(_0x29d87b,_0x189bd1){return _0x29d87b+_0x189bd1;}},_0x29f54e=Buffer['from'](_0x35c411);let _0x257976=0x0;const [,_0x54bf65]=_0x14b006[_0x1a82e8(0xfd)](readId,_0x29f54e,_0x257976),[_0x1d0f7d,_0x390e4d]=_0x14b006['erIsM'](readVint,_0x29f54e,_0x257976+_0x54bf65),_0x37a97e=_0x257976+_0x54bf65+_0x390e4d+_0x1d0f7d,[,_0x34f7de]=readId(_0x29f54e,_0x37a97e),[,_0x19e204]=_0x14b006['bueFp'](readVint,_0x29f54e,_0x14b006[_0x1a82e8(0x114)](_0x37a97e,_0x34f7de)),_0x58e36b=_0x14b006[_0x1a82e8(0xdb)](_0x37a97e+_0x34f7de,_0x19e204),_0x2ed7e1=writeUnknownSizeVint(_0x19e204);_0x2ed7e1['copy'](_0x29f54e,_0x14b006['ODWpi'](_0x37a97e,_0x34f7de));let _0x4b90d1=_0x58e36b;const _0x32c4d3=Math['min'](_0x29f54e[_0x1a82e8(0x110)],_0x58e36b+0x2710);while(_0x4b90d1<_0x32c4d3){const [_0x2eca8b,_0xabe68a]=_0x14b006[_0x1a82e8(0xed)](readId,_0x29f54e,_0x4b90d1),[_0x1a33a8,_0x74f821]=_0x14b006['ojTvd'](readVint,_0x29f54e,_0x14b006['ODWpi'](_0x4b90d1,_0xabe68a));if(_0x14b006['gSjUn'](_0x2eca8b,ID_CLUSTER))break;if(_0x14b006[_0x1a82e8(0x10b)](isUnknownSize,_0x1a33a8,_0x74f821))break;if(_0x2eca8b===ID_INFO){const _0x1eb20b=_0x4b90d1+_0xabe68a+_0x74f821,_0x598552=_0x14b006[_0x1a82e8(0xf9)](_0x1eb20b,_0x1a33a8),_0x5aa77c=[];let _0x1cfa2d=_0x1eb20b;while(_0x14b006[_0x1a82e8(0x100)](_0x1cfa2d,_0x598552)){const [_0x2dde91,_0x1a540d]=readId(_0x29f54e,_0x1cfa2d),[_0x4159c2,_0x3aba38]=_0x14b006[_0x1a82e8(0xef)](readVint,_0x29f54e,_0x14b006[_0x1a82e8(0xdb)](_0x1cfa2d,_0x1a540d)),_0x43a879=_0x14b006[_0x1a82e8(0x115)](_0x1a540d+_0x3aba38,_0x4159c2);_0x14b006[_0x1a82e8(0xee)](_0x2dde91,ID_DURATION)&&_0x5aa77c[_0x1a82e8(0xd8)](_0x29f54e[_0x1a82e8(0x10e)](_0x1cfa2d,_0x14b006['aqEYQ'](_0x1cfa2d,_0x43a879))),_0x1cfa2d+=_0x43a879;}const _0x2d0cbe=Buffer[_0x1a82e8(0x112)](_0x5aa77c),_0x45567f=Buffer['concat']([_0x29f54e['slice'](_0x4b90d1,_0x14b006[_0x1a82e8(0xf9)](_0x4b90d1,_0xabe68a)),_0x14b006['SsYgG'](writeVint,_0x2d0cbe[_0x1a82e8(0x110)],_0x74f821)]);return Buffer[_0x1a82e8(0x112)]([_0x29f54e[_0x1a82e8(0x10e)](0x0,_0x4b90d1),_0x45567f,_0x2d0cbe,_0x29f54e['slice'](_0x598552)]);}_0x4b90d1+=_0x14b006['PFfLl'](_0x14b006['gSfVD'](_0xabe68a,_0x74f821),_0x1a33a8);}return _0x29f54e;}export function stitchWebmFiles(_0x582b1d,_0x2894fb){const _0x14d50a=_0x19d0,_0x48fea2={'zFzop':function(_0x488666,_0x2ac4e8){return _0x488666<=_0x2ac4e8;},'dxxOo':function(_0x5d8109,_0x2776e2){return _0x5d8109(_0x2776e2);},'nSsNV':function(_0x83793d,_0x59f0a2){return _0x83793d===_0x59f0a2;},'iavxN':function(_0x130edb,_0xb60eb5){return _0x130edb<_0xb60eb5;},'TqHbR':function(_0xd1f7a6,_0x5dab7c){return _0xd1f7a6+_0x5dab7c;},'wpRQh':function(_0x242d4e,_0x3d7288,_0x2faa23,_0x1e7a27){return _0x242d4e(_0x3d7288,_0x2faa23,_0x1e7a27);}};if(_0x48fea2['zFzop'](_0x582b1d[_0x14d50a(0x110)],0x1))return![];const _0x579e55=[];for(const _0x29e881 of _0x582b1d){const _0x1d2ea1=readFileSync(_0x29e881),_0xde723c=_0x48fea2['dxxOo'](parseWebm,_0x1d2ea1);if(!_0xde723c||_0x48fea2[_0x14d50a(0xe6)](_0xde723c[_0x14d50a(0x118)]['length'],0x0))return![];_0x579e55[_0x14d50a(0xd8)](_0xde723c);}const _0x4dace7=_0x579e55[0x0],_0x1a212b=_0x48fea2[_0x14d50a(0xf0)](rebuildHeaderWithoutDuration,_0x4dace7[_0x14d50a(0xdd)]),_0xf4026d=[_0x1a212b];let _0x42a8d0=0x0;for(let _0x970457=0x0;_0x48fea2['iavxN'](_0x970457,_0x579e55['length']);_0x970457++){const _0x2e2603=_0x579e55[_0x970457];for(const _0x1ee9cc of _0x2e2603['clusters']){const _0x301ce5=_0x48fea2['TqHbR'](_0x1ee9cc['timestamp'],_0x42a8d0);_0xf4026d[_0x14d50a(0xd8)](_0x48fea2[_0x14d50a(0x109)](buildCluster,_0x301ce5,_0x1ee9cc['bodyBeforeTimestamp'],_0x1ee9cc[_0x14d50a(0xd6)]));}const _0x3063e2=0x1e;_0x42a8d0+=_0x2e2603['maxTimestampTicks']+_0x3063e2;}return writeFileSync(_0x2894fb,Buffer[_0x14d50a(0x112)](_0xf4026d)),!![];}if(process[_0x5b2481(0x119)][0x1]?.[_0x5b2481(0x11b)]('stitchWebmFiles.ts')||process[_0x5b2481(0x119)][0x1]?.['endsWith'](_0x5b2481(0x105))){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x5b2481(0x116)](_0x5b2481(0xe0)),process[_0x5b2481(0x103)](0x1));const output=args[args[_0x5b2481(0x110)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x5b2481(0x104)]('Stitched\x20'+inputs[_0x5b2481(0x110)]+_0x5b2481(0x108)+output):console[_0x5b2481(0x104)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x44e209=_0x2621;(function(_0x14d508,_0x69d67a){const _0x5ad77b=_0x2621,_0x52afda=_0x14d508();while(!![]){try{const _0x318abd=parseInt(_0x5ad77b(0x169))/0x1*(-parseInt(_0x5ad77b(0x158))/0x2)+-parseInt(_0x5ad77b(0x138))/0x3*(parseInt(_0x5ad77b(0x16d))/0x4)+-parseInt(_0x5ad77b(0x155))/0x5*(-parseInt(_0x5ad77b(0x156))/0x6)+-parseInt(_0x5ad77b(0x135))/0x7*(-parseInt(_0x5ad77b(0x157))/0x8)+parseInt(_0x5ad77b(0x152))/0x9*(parseInt(_0x5ad77b(0x150))/0xa)+-parseInt(_0x5ad77b(0x130))/0xb+parseInt(_0x5ad77b(0x13b))/0xc;if(_0x318abd===_0x69d67a)break;else _0x52afda['push'](_0x52afda['shift']());}catch(_0x5cd18d){_0x52afda['push'](_0x52afda['shift']());}}}(_0x5ed0,0xe994a));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x5dc42e,_0x58e8d5){const _0x15d905=_0x2621,_0x37f05d={'hXpUw':function(_0x19b024,_0x41f8b2){return _0x19b024>=_0x41f8b2;},'GcNOp':function(_0x1b4b87,_0x5a4e74){return _0x1b4b87<=_0x5a4e74;},'GFTMi':function(_0x2c4d64,_0x2728c1){return _0x2c4d64+_0x2728c1;},'Cqihx':function(_0x9eaac2,_0x11b987){return _0x9eaac2&_0x11b987;},'HjqAk':function(_0x463bba,_0x14565e){return _0x463bba-_0x14565e;},'MXDmV':function(_0x486d96,_0x1332d3){return _0x486d96<_0x1332d3;}};if(_0x37f05d['hXpUw'](_0x58e8d5,_0x5dc42e[_0x15d905(0x172)]))return[0x0,0x0];const _0xa6cd72=_0x5dc42e[_0x58e8d5];let _0x198541=0x1,_0x2f78d2=0x80;while(_0x37f05d['GcNOp'](_0x198541,0x8)&&!(_0xa6cd72&_0x2f78d2)){_0x198541++,_0x2f78d2>>=0x1;}if(_0x37f05d[_0x15d905(0x143)](_0x58e8d5,_0x198541)>_0x5dc42e['length'])return[0x0,0x0];let _0x51f95b=_0x37f05d['Cqihx'](_0xa6cd72,_0x37f05d[_0x15d905(0x14a)](_0x2f78d2,0x1));for(let _0x104db4=0x1;_0x37f05d['MXDmV'](_0x104db4,_0x198541);_0x104db4++){_0x51f95b=_0x37f05d['GFTMi'](_0x51f95b*0x100,_0x5dc42e[_0x58e8d5+_0x104db4]);}return[_0x51f95b,_0x198541];}function readId(_0x43ab0f,_0x51a3db){const _0x433509=_0x2621,_0xc4214={'WZAIf':function(_0x3f2328,_0x297854){return _0x3f2328>=_0x297854;},'bVPNs':function(_0x5ce8e6,_0x1ae84d){return _0x5ce8e6>=_0x1ae84d;},'SnlHd':function(_0x45aaec,_0x223ab1){return _0x45aaec>_0x223ab1;},'azbJB':function(_0x474785,_0x23cfff){return _0x474785+_0x23cfff;}};if(_0x51a3db>=_0x43ab0f[_0x433509(0x172)])return[0x0,0x0];const _0x33fc44=_0x43ab0f[_0x51a3db];let _0x4162f8;if(_0x33fc44>=0x80)_0x4162f8=0x1;else{if(_0xc4214['WZAIf'](_0x33fc44,0x40))_0x4162f8=0x2;else{if(_0xc4214['WZAIf'](_0x33fc44,0x20))_0x4162f8=0x3;else{if(_0xc4214['bVPNs'](_0x33fc44,0x10))_0x4162f8=0x4;else return[_0x33fc44,0x1];}}}if(_0xc4214[_0x433509(0x147)](_0x51a3db+_0x4162f8,_0x43ab0f[_0x433509(0x172)]))return[0x0,0x0];let _0x3bde61=0x0;for(let _0x1f49b6=0x0;_0x1f49b6<_0x4162f8;_0x1f49b6++){_0x3bde61=_0x3bde61*0x100+_0x43ab0f[_0xc4214['azbJB'](_0x51a3db,_0x1f49b6)];}return[_0x3bde61,_0x4162f8];}function readUint(_0x249acc,_0x5f3883,_0x1fbb68){const _0x1732a9={'bkVfK':function(_0x4501c3,_0x19de5e){return _0x4501c3+_0x19de5e;}};let _0xa9fa98=0x0;for(let _0x57998c=0x0;_0x57998c<_0x1fbb68;_0x57998c++){_0xa9fa98=_0xa9fa98*0x100+_0x249acc[_0x1732a9['bkVfK'](_0x5f3883,_0x57998c)];}return _0xa9fa98;}function isUnknownSize(_0x281878,_0x42cf45){const _0x3101d7=_0x2621;return _0x281878===Math[_0x3101d7(0x14f)](0x2,0x7*_0x42cf45)-0x1;}function writeVint(_0x1c87e4,_0x537f3d){const _0x2132c3=_0x2621,_0x3f3d50={'JCnht':function(_0x4b6767,_0x4b953b){return _0x4b6767||_0x4b953b;},'ifJzQ':function(_0x358e81,_0xc92d4b){return _0x358e81&_0xc92d4b;},'Cpnbm':function(_0x35c608,_0x5aaafa){return _0x35c608<<_0x5aaafa;},'fcSMH':function(_0x465c59,_0x337b95){return _0x465c59-_0x337b95;}};let _0x473e1c=_0x3f3d50[_0x2132c3(0x139)](_0x537f3d,0x1);while(Math[_0x2132c3(0x14f)](0x2,0x7*_0x473e1c)-0x2<_0x1c87e4)_0x473e1c++;const _0x1e296f=Buffer['alloc'](_0x473e1c);for(let _0x5e768e=_0x473e1c-0x1;_0x5e768e>=0x0;_0x5e768e--){_0x1e296f[_0x5e768e]=_0x3f3d50[_0x2132c3(0x15d)](_0x1c87e4,0xff),_0x1c87e4=Math['floor'](_0x1c87e4/0x100);}return _0x1e296f[0x0]|=_0x3f3d50[_0x2132c3(0x14d)](0x1,_0x3f3d50[_0x2132c3(0x167)](0x8,_0x473e1c)),_0x1e296f;}function _0x2621(_0x5ec9e1,_0x557f48){_0x5ec9e1=_0x5ec9e1-0x12d;const _0x5ed043=_0x5ed0();let _0x26210d=_0x5ed043[_0x5ec9e1];return _0x26210d;}function writeUint(_0x3813ba,_0x1c4595){const _0x2ab8cf=_0x2621,_0x393374=Buffer[_0x2ab8cf(0x160)](_0x1c4595);for(let _0xbc09bd=_0x1c4595-0x1;_0xbc09bd>=0x0;_0xbc09bd--){_0x393374[_0xbc09bd]=_0x3813ba&0xff,_0x3813ba=Math[_0x2ab8cf(0x12d)](_0x3813ba/0x100);}return _0x393374;}function writeUnknownSizeVint(_0x3e7ca7){const _0x4c0c58=_0x2621,_0x58629e={'WXhDv':function(_0x940ce9,_0x1afd8d){return _0x940ce9>>_0x1afd8d;},'amylL':function(_0x4868ca,_0x4bcdb6){return _0x4868ca-_0x4bcdb6;}},_0x2a4602=Buffer[_0x4c0c58(0x160)](_0x3e7ca7,0xff);return _0x2a4602[0x0]=_0x58629e[_0x4c0c58(0x142)](0xff,_0x58629e['amylL'](_0x3e7ca7,0x1)),_0x2a4602;}function uintSize(_0x4257d7){const _0x1da4d1=_0x2621,_0x3b3e76={'bdapm':function(_0x354cbe,_0x145b89){return _0x354cbe===_0x145b89;},'dnLli':function(_0x23faa6,_0x2e811b){return _0x23faa6/_0x2e811b;}};if(_0x3b3e76[_0x1da4d1(0x13a)](_0x4257d7,0x0))return 0x1;let _0x30f19d=0x0,_0x3e2fb1=_0x4257d7;while(_0x3e2fb1>0x0){_0x30f19d++,_0x3e2fb1=Math[_0x1da4d1(0x12d)](_0x3b3e76['dnLli'](_0x3e2fb1,0x100));}return _0x30f19d;}function findTimestampScale(_0x4a717f,_0x16a7c1){const _0x58658e=_0x2621,_0x385d18={'CdMCc':function(_0x57a78c,_0x38f62){return _0x57a78c<_0x38f62;},'XhKNO':function(_0x46386b,_0x384af2,_0x30b606){return _0x46386b(_0x384af2,_0x30b606);},'HJswY':function(_0x34cf6b,_0x3aafbc){return _0x34cf6b+_0x3aafbc;},'KMchk':function(_0x9bb5c8,_0x41de72){return _0x9bb5c8===_0x41de72;},'VPOSf':function(_0x51e7c2,_0x3cbb40){return _0x51e7c2+_0x3cbb40;},'uhTkg':function(_0x33c71a,_0x41342a,_0x201691,_0x3de6e8){return _0x33c71a(_0x41342a,_0x201691,_0x3de6e8);},'Cfhyi':function(_0xad4084,_0x5cd26e){return _0xad4084+_0x5cd26e;}};let _0x159224=_0x16a7c1;const _0x9fffd2=Math[_0x58658e(0x145)](_0x4a717f[_0x58658e(0x172)],_0x16a7c1+0x2710);while(_0x385d18[_0x58658e(0x159)](_0x159224,_0x9fffd2)){const [_0x39859e,_0x1d1102]=readId(_0x4a717f,_0x159224),[_0x3a1da9,_0x5bdf9b]=_0x385d18[_0x58658e(0x154)](readVint,_0x4a717f,_0x385d18[_0x58658e(0x170)](_0x159224,_0x1d1102));if(_0x385d18[_0x58658e(0x15b)](_0x39859e,ID_INFO)){let _0x12d95b=_0x385d18[_0x58658e(0x16a)](_0x159224,_0x1d1102)+_0x5bdf9b;const _0x567652=_0x12d95b+_0x3a1da9;while(_0x385d18['CdMCc'](_0x12d95b,_0x567652)){const [_0x56a652,_0x324784]=readId(_0x4a717f,_0x12d95b),[_0xb4a83e,_0x2fac63]=readVint(_0x4a717f,_0x12d95b+_0x324784);if(_0x56a652===ID_TIMESTAMP_SCALE)return _0x385d18['uhTkg'](readUint,_0x4a717f,_0x385d18['HJswY'](_0x385d18['VPOSf'](_0x12d95b,_0x324784),_0x2fac63),_0xb4a83e);_0x12d95b+=_0x385d18['VPOSf'](_0x324784+_0x2fac63,_0xb4a83e);}break;}if(_0x385d18[_0x58658e(0x15b)](_0x39859e,ID_CLUSTER))break;if(isUnknownSize(_0x3a1da9,_0x5bdf9b))break;_0x159224+=_0x385d18['Cfhyi'](_0x1d1102+_0x5bdf9b,_0x3a1da9);}return 0xf4240;}function findFirstClusterOffset(_0xdbe88f,_0x3f971e){const _0x251bba=_0x2621,_0x409b32={'dHYEz':function(_0x4a6752,_0x1dec2b){return _0x4a6752<_0x1dec2b;},'lJeMN':function(_0x4ad726,_0x1e1f21,_0x1d29f0){return _0x4ad726(_0x1e1f21,_0x1d29f0);},'XvVqt':function(_0x497c14,_0x2eb087){return _0x497c14===_0x2eb087;},'ckysW':function(_0x5dd2c7,_0x23d07a,_0x5b680f){return _0x5dd2c7(_0x23d07a,_0x5b680f);},'aCDaS':function(_0x3e8335,_0x4d98e5){return _0x3e8335+_0x4d98e5;}};let _0x46fe69=_0x3f971e;while(_0x409b32[_0x251bba(0x146)](_0x46fe69,_0xdbe88f['length'])){const [_0x43733e,_0x21560c]=_0x409b32['lJeMN'](readId,_0xdbe88f,_0x46fe69);if(_0x409b32[_0x251bba(0x16e)](_0x43733e,ID_CLUSTER))return _0x46fe69;const [_0x305ed7,_0x57ab68]=readVint(_0xdbe88f,_0x46fe69+_0x21560c);if(_0x409b32[_0x251bba(0x16f)](isUnknownSize,_0x305ed7,_0x57ab68))return _0x46fe69;_0x46fe69+=_0x409b32[_0x251bba(0x171)](_0x409b32[_0x251bba(0x171)](_0x21560c,_0x57ab68),_0x305ed7);}return _0xdbe88f['length'];}function findClusterEnd(_0x2e6722,_0x3a416f,_0x398685,_0xa4197a){const _0x1cb02d=_0x2621,_0x397595={'dwgAr':function(_0x52bca9,_0x12f7cb,_0x3051fb){return _0x52bca9(_0x12f7cb,_0x3051fb);},'UYUyQ':function(_0x4add95,_0x3b86b6){return _0x4add95+_0x3b86b6;},'udbAF':function(_0x195f5d,_0x42f4da,_0x3b924a){return _0x195f5d(_0x42f4da,_0x3b924a);}};if(!_0x397595['dwgAr'](isUnknownSize,_0x398685,_0xa4197a))return _0x397595['UYUyQ'](_0x3a416f,_0x398685);const _0x355f15=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x44fda3=_0x3a416f;while(_0x44fda3<_0x2e6722[_0x1cb02d(0x172)]-0x4){const [_0x3d4906,_0x5056a8]=_0x397595[_0x1cb02d(0x13e)](readId,_0x2e6722,_0x44fda3);if(_0x355f15[_0x1cb02d(0x134)](_0x3d4906))return _0x44fda3;const [_0x2b6130,_0x384ef5]=readVint(_0x2e6722,_0x397595['UYUyQ'](_0x44fda3,_0x5056a8));if(isUnknownSize(_0x2b6130,_0x384ef5))return _0x2e6722['length'];_0x44fda3+=_0x5056a8+_0x384ef5+_0x2b6130;}return _0x2e6722['length'];}function _0x5ed0(){const _0x4d59a5=['dHYEz','SnlHd','xkyEM','FruEj','HjqAk','argv','stitchWebmFiles.js','Cpnbm','DqTwG','pow','8286430LxrxXo','CeTra','9qjLCCc','timestamp','XhKNO','70KLMmse','120096DjiQgN','32RgXOCx','612akEXdY','CdMCc','push','KMchk','concat','ifJzQ','qxYja','max','alloc','indexOf','maxTimestampTicks','ZcIpw','endsWith','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','exit','fcSMH','Stitched\x20','2062CVXoIB','VPOSf','EwPYx','slice','3312296JOEvYy','XvVqt','ckysW','HJswY','aCDaS','length','floor','lNejh','BINYG','17713608HMxggM','maxTicks','LhJVP','Cpxri','has','2437449jrCPXk','Ybded','IRlvs','3EPshkt','JCnht','bdapm','18293100aqMHhM','IAvSk','from','udbAF','log','jYdrD','VeJWl','WXhDv','GFTMi','YKQxR','min'];_0x5ed0=function(){return _0x4d59a5;};return _0x5ed0();}function extractClusters(_0x3eb675,_0x5a5ff5){const _0x5b2e4a=_0x2621,_0x306727={'ndDxS':function(_0x1def3d,_0x28fbbd){return _0x1def3d<_0x28fbbd;},'IAvSk':function(_0x30abd8,_0x4ce8cf,_0x15fa40){return _0x30abd8(_0x4ce8cf,_0x15fa40);},'DqTwG':function(_0x254e47,_0x4f10f7,_0x11efac){return _0x254e47(_0x4f10f7,_0x11efac);},'QhBvI':function(_0x1bce3d,_0x4162ad){return _0x1bce3d+_0x4162ad;},'WxhdJ':function(_0x3aa1d8,_0x3cf55e,_0x5db275,_0x55af5a){return _0x3aa1d8(_0x3cf55e,_0x5db275,_0x55af5a);},'VeJWl':function(_0x45d618,_0x2ef840){return _0x45d618+_0x2ef840;},'NcnYB':function(_0x9a426,_0x57c442){return _0x9a426===_0x57c442;},'YKQxR':function(_0xa3bd6b,_0x4e628f){return _0xa3bd6b+_0x4e628f;},'njykr':function(_0x54950e,_0x3c57e0){return _0x54950e<_0x3c57e0;},'EwPYx':function(_0x1e5863,_0x2a7896,_0x3045cb){return _0x1e5863(_0x2a7896,_0x3045cb);},'Cpxri':function(_0x3b2e64,_0x4c2c21,_0x320e9c){return _0x3b2e64(_0x4c2c21,_0x320e9c);},'eKkMD':function(_0x5d9fd9,_0x3bef5e){return _0x5d9fd9===_0x3bef5e;},'ZcIpw':function(_0xc3e448,_0x35c8e5,_0x5f395f){return _0xc3e448(_0x35c8e5,_0x5f395f);}},_0x130d3b=[],_0x2e307a=Buffer[_0x5b2e4a(0x13d)]([0x1f,0x43,0xb6,0x75]);let _0x27b007=0x0;while(_0x306727['ndDxS'](_0x27b007,_0x3eb675[_0x5b2e4a(0x172)])){const _0x29e50e=_0x3eb675[_0x5b2e4a(0x161)](_0x2e307a,_0x27b007);if(_0x29e50e===-0x1)break;const [_0x3ca31e,_0x258b67]=_0x306727[_0x5b2e4a(0x13c)](readId,_0x3eb675,_0x29e50e);if(_0x3ca31e!==ID_CLUSTER){_0x27b007=_0x29e50e+0x1;continue;}const [_0x14694e,_0x5bf9c6]=_0x306727['IAvSk'](readVint,_0x3eb675,_0x29e50e+_0x258b67),_0xeaa9c2=_0x29e50e+_0x258b67+_0x5bf9c6,_0x265377=findClusterEnd(_0x3eb675,_0xeaa9c2,_0x14694e,_0x5bf9c6);let _0x422b81=_0xeaa9c2,_0x2c452f=0x0,_0x6400a0=0x2,_0x8962c4=![],_0x5768f0=Buffer['alloc'](0x0),_0x3c56a8=Buffer['alloc'](0x0);while(_0x422b81<_0x265377){const [_0x3a5d54,_0x5701b1]=readId(_0x3eb675,_0x422b81),[_0x491e73,_0x13f63f]=_0x306727[_0x5b2e4a(0x14e)](readVint,_0x3eb675,_0x306727['QhBvI'](_0x422b81,_0x5701b1));if(_0x3a5d54===ID_TIMESTAMP){_0x2c452f=_0x306727['WxhdJ'](readUint,_0x3eb675,_0x306727['VeJWl'](_0x422b81+_0x5701b1,_0x13f63f),_0x491e73),_0x6400a0=_0x491e73,_0x8962c4=!![],_0x5768f0=_0x3eb675[_0x5b2e4a(0x16c)](_0xeaa9c2,_0x422b81);const _0x1154b5=_0x306727[_0x5b2e4a(0x141)](_0x422b81,_0x5701b1)+_0x13f63f+_0x491e73;_0x3c56a8=_0x3eb675[_0x5b2e4a(0x16c)](_0x1154b5,_0x265377);break;}if(_0x306727['NcnYB'](_0x3a5d54,ID_CLUSTER))break;if(_0x306727[_0x5b2e4a(0x14e)](isUnknownSize,_0x491e73,_0x13f63f))break;_0x422b81+=_0x306727[_0x5b2e4a(0x144)](_0x5701b1+_0x13f63f,_0x491e73);}!_0x8962c4&&(_0x3c56a8=_0x3eb675['slice'](_0xeaa9c2,_0x265377));let _0x405623=_0x2c452f;_0x422b81=_0xeaa9c2;while(_0x306727['njykr'](_0x422b81,_0x265377)){const [_0x3ee061,_0x29e005]=_0x306727[_0x5b2e4a(0x14e)](readId,_0x3eb675,_0x422b81),[_0x2c7dc9,_0x3e6d77]=_0x306727[_0x5b2e4a(0x16b)](readVint,_0x3eb675,_0x422b81+_0x29e005);if(_0x306727['NcnYB'](_0x3ee061,ID_SIMPLE_BLOCK)&&_0x2c7dc9>=0x4){const _0x441d4d=_0x306727['QhBvI'](_0x422b81+_0x29e005,_0x3e6d77),[,_0x1be7d5]=_0x306727[_0x5b2e4a(0x133)](readVint,_0x3eb675,_0x441d4d),_0x56081b=_0x3eb675['readInt16BE'](_0x441d4d+_0x1be7d5),_0x13b0ce=_0x2c452f+_0x56081b;if(_0x13b0ce>_0x405623)_0x405623=_0x13b0ce;}if(_0x306727['eKkMD'](_0x3ee061,ID_CLUSTER))break;if(_0x306727[_0x5b2e4a(0x163)](isUnknownSize,_0x2c7dc9,_0x3e6d77))break;_0x422b81+=_0x306727[_0x5b2e4a(0x144)](_0x29e005,_0x3e6d77)+_0x2c7dc9;}_0x130d3b['push']({'timestamp':_0x2c452f,'maxTicks':_0x405623,'bodyBeforeTimestamp':_0x5768f0,'bodyAfterTimestamp':_0x3c56a8,'timestampElementSize':_0x6400a0}),_0x27b007=_0x265377;}return _0x130d3b;}function parseWebm(_0x4c7a69){const _0x3b8dc6=_0x2621,_0x1fc5b4={'FruEj':function(_0x27fc62,_0x1b4dd2,_0x221fac){return _0x27fc62(_0x1b4dd2,_0x221fac);},'BmDOW':function(_0x58ab30,_0x2f0bf4){return _0x58ab30+_0x2f0bf4;},'bgYgy':function(_0x266e1d,_0x4ae040){return _0x266e1d!==_0x4ae040;},'HJmLa':function(_0x4512c7,_0x2e50d6){return _0x4512c7+_0x2e50d6;},'UlyOh':function(_0x4124f1,_0x1ed238){return _0x4124f1+_0x1ed238;},'gypHf':function(_0x56f318,_0x37e1a0,_0x1fafb5){return _0x56f318(_0x37e1a0,_0x1fafb5);}};let _0x3c2a94=0x0;const [,_0xfae22c]=_0x1fc5b4[_0x3b8dc6(0x149)](readId,_0x4c7a69,_0x3c2a94),[_0x265316,_0x1ab47f]=readVint(_0x4c7a69,_0x3c2a94+_0xfae22c);_0x3c2a94+=_0x1fc5b4['BmDOW'](_0xfae22c,_0x1ab47f)+_0x265316;const [_0x51f29f,_0x478029]=readId(_0x4c7a69,_0x3c2a94);if(_0x1fc5b4['bgYgy'](_0x51f29f,ID_SEGMENT))return null;const [,_0x5258e0]=readVint(_0x4c7a69,_0x1fc5b4['HJmLa'](_0x3c2a94,_0x478029)),_0x2225ac=_0x1fc5b4['UlyOh'](_0x3c2a94+_0x478029,_0x5258e0),_0x47ac58=_0x1fc5b4['gypHf'](findTimestampScale,_0x4c7a69,_0x2225ac),_0x2fbc8a=findFirstClusterOffset(_0x4c7a69,_0x2225ac),_0x502048=_0x4c7a69['slice'](0x0,_0x2fbc8a),_0x3dbe54=extractClusters(_0x4c7a69,_0x47ac58);let _0x1a573e=0x0;for(const _0x5ab685 of _0x3dbe54){if(_0x5ab685[_0x3b8dc6(0x131)]>_0x1a573e)_0x1a573e=_0x5ab685['maxTicks'];}return{'header':_0x502048,'clusters':_0x3dbe54,'timestampScale':_0x47ac58,'maxTimestampTicks':_0x1a573e};}function buildCluster(_0x1e26cc,_0x52c7be,_0x34a52e){const _0x2f7ccb=_0x2621,_0x2e1f68={'ZzeRT':function(_0x3ba961,_0x175786){return _0x3ba961(_0x175786);}},_0x567462=Buffer[_0x2f7ccb(0x13d)]([0x1f,0x43,0xb6,0x75]),_0x191fec=Math[_0x2f7ccb(0x15f)](0x4,_0x2e1f68['ZzeRT'](uintSize,_0x1e26cc)),_0x118eec=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x191fec),writeUint(_0x1e26cc,_0x191fec)]),_0x1af192=Buffer['concat']([_0x52c7be,_0x118eec,_0x34a52e]),_0x5d4903=_0x2e1f68['ZzeRT'](writeVint,_0x1af192['length']);return Buffer[_0x2f7ccb(0x15c)]([_0x567462,_0x5d4903,_0x1af192]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x57a43){const _0x110bfe=_0x2621,_0x2ee4ea={'vnicX':function(_0x1dc111,_0x353d27,_0x5ae08a){return _0x1dc111(_0x353d27,_0x5ae08a);},'Ybded':function(_0x19ded1,_0xd7c092){return _0x19ded1+_0xd7c092;},'LhJVP':function(_0x3afbce,_0x129c47){return _0x3afbce+_0x129c47;},'jYdrD':function(_0x33d9cb,_0x59a821,_0x56459d){return _0x33d9cb(_0x59a821,_0x56459d);},'CNoDo':function(_0x4e3ed6,_0x3732ff){return _0x4e3ed6+_0x3732ff;},'xkyEM':function(_0x37107d,_0x52d439){return _0x37107d(_0x52d439);},'lNejh':function(_0x5f47f0,_0x10682e){return _0x5f47f0+_0x10682e;},'BINYG':function(_0x5d9c61,_0x5b5816,_0x319772){return _0x5d9c61(_0x5b5816,_0x319772);},'AgyXf':function(_0x227987,_0x5b0c66){return _0x227987<_0x5b0c66;},'JabKa':function(_0x4b6de2,_0x1ef977,_0x58bdc2){return _0x4b6de2(_0x1ef977,_0x58bdc2);},'PMubS':function(_0x29d323,_0x95f0b){return _0x29d323!==_0x95f0b;},'unqaq':function(_0x338149,_0x30d563,_0x26fae8){return _0x338149(_0x30d563,_0x26fae8);}},_0x50d768=Buffer['from'](_0x57a43);let _0x18e563=0x0;const [,_0x2d6b2a]=_0x2ee4ea['vnicX'](readId,_0x50d768,_0x18e563),[_0x41b6f1,_0x25c35b]=readVint(_0x50d768,_0x2ee4ea['Ybded'](_0x18e563,_0x2d6b2a)),_0x15416b=_0x2ee4ea['LhJVP'](_0x2ee4ea[_0x110bfe(0x132)](_0x2ee4ea['Ybded'](_0x18e563,_0x2d6b2a),_0x25c35b),_0x41b6f1),[,_0x22725d]=_0x2ee4ea[_0x110bfe(0x140)](readId,_0x50d768,_0x15416b),[,_0x2e5e23]=readVint(_0x50d768,_0x2ee4ea['CNoDo'](_0x15416b,_0x22725d)),_0x4d1ca6=_0x2ee4ea['CNoDo'](_0x15416b+_0x22725d,_0x2e5e23),_0xb77fd0=_0x2ee4ea[_0x110bfe(0x148)](writeUnknownSizeVint,_0x2e5e23);_0xb77fd0['copy'](_0x50d768,_0x2ee4ea[_0x110bfe(0x12e)](_0x15416b,_0x22725d));let _0x1f34c1=_0x4d1ca6;const _0x4a589d=Math['min'](_0x50d768[_0x110bfe(0x172)],_0x2ee4ea[_0x110bfe(0x136)](_0x4d1ca6,0x2710));while(_0x1f34c1<_0x4a589d){const [_0x48cce7,_0x334cd9]=readId(_0x50d768,_0x1f34c1),[_0xf88e45,_0x592223]=_0x2ee4ea[_0x110bfe(0x12f)](readVint,_0x50d768,_0x1f34c1+_0x334cd9);if(_0x48cce7===ID_CLUSTER)break;if(_0x2ee4ea['jYdrD'](isUnknownSize,_0xf88e45,_0x592223))break;if(_0x48cce7===ID_INFO){const _0x4c7efe=_0x2ee4ea['Ybded'](_0x1f34c1,_0x334cd9)+_0x592223,_0x289f3f=_0x2ee4ea[_0x110bfe(0x12e)](_0x4c7efe,_0xf88e45),_0x3aff4c=[];let _0x31196c=_0x4c7efe;while(_0x2ee4ea['AgyXf'](_0x31196c,_0x289f3f)){const [_0x5302f8,_0x55e485]=_0x2ee4ea['JabKa'](readId,_0x50d768,_0x31196c),[_0x16561d,_0x5a2ed2]=readVint(_0x50d768,_0x2ee4ea['lNejh'](_0x31196c,_0x55e485)),_0x2a309b=_0x2ee4ea[_0x110bfe(0x136)](_0x2ee4ea['CNoDo'](_0x55e485,_0x5a2ed2),_0x16561d);_0x2ee4ea['PMubS'](_0x5302f8,ID_DURATION)&&_0x3aff4c[_0x110bfe(0x15a)](_0x50d768[_0x110bfe(0x16c)](_0x31196c,_0x31196c+_0x2a309b)),_0x31196c+=_0x2a309b;}const _0x4923f4=Buffer['concat'](_0x3aff4c),_0x467177=Buffer['concat']([_0x50d768[_0x110bfe(0x16c)](_0x1f34c1,_0x2ee4ea['lNejh'](_0x1f34c1,_0x334cd9)),_0x2ee4ea['unqaq'](writeVint,_0x4923f4['length'],_0x592223)]);return Buffer['concat']([_0x50d768['slice'](0x0,_0x1f34c1),_0x467177,_0x4923f4,_0x50d768['slice'](_0x289f3f)]);}_0x1f34c1+=_0x334cd9+_0x592223+_0xf88e45;}return _0x50d768;}export function stitchWebmFiles(_0x45f0dc,_0x4480c2){const _0xd00b7a=_0x2621,_0x46170f={'IRlvs':function(_0x583c33,_0x22a048){return _0x583c33<=_0x22a048;},'CeTra':function(_0x3e3a92,_0x5dc491){return _0x3e3a92(_0x5dc491);},'eRUdL':function(_0x2bc9d8,_0x475eb6){return _0x2bc9d8===_0x475eb6;},'qxYja':function(_0x4919dd,_0x402581,_0x1bc94b,_0x52bd07){return _0x4919dd(_0x402581,_0x1bc94b,_0x52bd07);}};if(_0x46170f[_0xd00b7a(0x137)](_0x45f0dc['length'],0x1))return![];const _0x1ab0fa=[];for(const _0x47b9e2 of _0x45f0dc){const _0x2b08b2=_0x46170f[_0xd00b7a(0x151)](readFileSync,_0x47b9e2),_0x13dc65=parseWebm(_0x2b08b2);if(!_0x13dc65||_0x46170f['eRUdL'](_0x13dc65['clusters']['length'],0x0))return![];_0x1ab0fa[_0xd00b7a(0x15a)](_0x13dc65);}const _0x1067f9=_0x1ab0fa[0x0],_0x1dac3b=_0x46170f['CeTra'](rebuildHeaderWithoutDuration,_0x1067f9['header']),_0x49ed8f=[_0x1dac3b];let _0x3c10cd=0x0;for(let _0x35110c=0x0;_0x35110c<_0x1ab0fa['length'];_0x35110c++){const _0x283329=_0x1ab0fa[_0x35110c];for(const _0x219628 of _0x283329['clusters']){const _0x405e4f=_0x219628[_0xd00b7a(0x153)]+_0x3c10cd;_0x49ed8f[_0xd00b7a(0x15a)](_0x46170f[_0xd00b7a(0x15e)](buildCluster,_0x405e4f,_0x219628['bodyBeforeTimestamp'],_0x219628['bodyAfterTimestamp']));}const _0x2dfd8c=0x1e;_0x3c10cd+=_0x283329[_0xd00b7a(0x162)]+_0x2dfd8c;}return writeFileSync(_0x4480c2,Buffer['concat'](_0x49ed8f)),!![];}if(process['argv'][0x1]?.[_0x44e209(0x164)]('stitchWebmFiles.ts')||process[_0x44e209(0x14b)][0x1]?.[_0x44e209(0x164)](_0x44e209(0x14c))){const args=process[_0x44e209(0x14b)][_0x44e209(0x16c)](0x2);args['length']<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x44e209(0x166)](0x1));const output=args[args[_0x44e209(0x172)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x44e209(0x13f)](_0x44e209(0x168)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x44e209(0x13f)](_0x44e209(0x165));}
@@ -1 +1 @@
1
- const _0x443264=_0x44ed;function _0x22fa(){const _0x2be631=['phaseCounter','bxZEf','16pckWCG','POST','INJwb','slice','cwd','NCdbb','2458936WNrhOv','trackPhaseError','cliVersion','...','sendBatch','sendImmediate','checklistItemId','command','142761mvfYWo','stdout','650556NmjlCa','RxLsU','commandStartTime','platform','phase_end','deviceId','outcome','DEBUG','eventType','tRXAo','trackPhaseStart','name','utf-8','browserSessionId','WAIIG','Authorization','push','43440edEzFg','command_start','message','wMLuI','Unknown','nodeVersion','buildEvent','now','trackPhaseEnd','phase_start','trim','get','PmbQF','945801hXsvoD','command_error','trackCommandEnd','command_end','BhyhI','errorType','version','buffer','4035934sbFVgE','GITHUB_ACTIONS','aynIO','iUhhp','success','delete','toISOString','phaseStartTimes','errorMessage','/api/v1/mcp/cli-telemetry','constructor','set','flush','phase_error','isTty','[telemetry]\x20Sending\x20','\x20event(s)\x20to\x20','env','LMCAY','splice','transport','featureId','phaseIndex','flushing','trackCommandStart','395CQFdKm','abort','pilPm','isCI','length','riuBv','eAUGx','commandId','8iyMmlS','CtWEy','3565330SonGHN','signal'];_0x22fa=function(){return _0x2be631;};return _0x22fa();}(function(_0x1a65aa,_0x5540cf){const _0x1fdb99=_0x44ed,_0x5c0bbc=_0x1a65aa();while(!![]){try{const _0x44afa0=parseInt(_0x1fdb99(0x1f5))/0x1+parseInt(_0x1fdb99(0x23c))/0x2*(parseInt(_0x1fdb99(0x1f3))/0x3)+parseInt(_0x1fdb99(0x1eb))/0x4+parseInt(_0x1fdb99(0x234))/0x5*(-parseInt(_0x1fdb99(0x206))/0x6)+-parseInt(_0x1fdb99(0x21b))/0x7+-parseInt(_0x1fdb99(0x1e5))/0x8*(parseInt(_0x1fdb99(0x213))/0x9)+parseInt(_0x1fdb99(0x23e))/0xa;if(_0x44afa0===_0x5540cf)break;else _0x5c0bbc['push'](_0x5c0bbc['shift']());}catch(_0x3bc9e7){_0x5c0bbc['push'](_0x5c0bbc['shift']());}}}(_0x22fa,0x6eb5f));function _0x44ed(_0x2183fc,_0x2bf93e){_0x2183fc=_0x2183fc-0x1e4;const _0x22fac2=_0x22fa();let _0x44edcc=_0x22fac2[_0x2183fc];return _0x44edcc;}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 _0x236461=_0x44ed,_0x4a7675={'bxZEf':'.session','RxLsU':function(_0xec51dc,_0x36c038){return _0xec51dc(_0x36c038);},'udLVR':_0x236461(0x201),'aynIO':function(_0x3de419,_0x46dcf5,_0x5a29e2){return _0x3de419(_0x46dcf5,_0x5a29e2);},'lfZRx':function(_0x4f6e24,_0x2951a4,_0x2a2bdb){return _0x4f6e24(_0x2951a4,_0x2a2bdb);},'CtWEy':function(_0x3cd3fc){return _0x3cd3fc();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x1c0333=join(homedir(),'.ranger'),_0x320ec0=join(_0x1c0333,_0x4a7675[_0x236461(0x1e4)]);if(_0x4a7675[_0x236461(0x1f6)](existsSync,_0x320ec0)){cachedDeviceId=readFileSync(_0x320ec0,_0x4a7675['udLVR'])[_0x236461(0x210)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),_0x4a7675[_0x236461(0x21d)](mkdirSync,_0x1c0333,{'recursive':!![]}),_0x4a7675['lfZRx'](writeFileSync,_0x320ec0,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x4a7675[_0x236461(0x23d)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x443264(0x23b)];[_0x443264(0x1f2)];[_0x443264(0x1f7)];[_0x443264(0x240)]=0x0;[_0x443264(0x222)]=new Map();['flushing']=null;[_0x443264(0x1fa)];[_0x443264(0x1ed)];[_0x443264(0x20b)];['platform'];[_0x443264(0x229)];[_0x443264(0x237)];['featureId'];['checklistItemId'];[_0x443264(0x202)];[_0x443264(0x22f)];constructor(_0x1c1d9e){const _0x95084d=_0x443264,_0x1cfe65={'SNQlL':'1|5|4|2|7|6|8|0|3','eTIkq':function(_0x3fc578){return _0x3fc578();},'riuBv':function(_0x4e2883){return _0x4e2883();}},_0x135df0=_0x1cfe65['SNQlL']['split']('|');let _0x243286=0x0;while(!![]){switch(_0x135df0[_0x243286++]){case'0':this[_0x95084d(0x229)]=process[_0x95084d(0x1f4)]['isTTY']??![];continue;case'1':this['commandId']=randomUUID();continue;case'2':this[_0x95084d(0x1fa)]=_0x1cfe65['eTIkq'](getDeviceId);continue;case'3':this[_0x95084d(0x237)]=!!(process['env']['CI']||process[_0x95084d(0x22c)][_0x95084d(0x21c)]);continue;case'4':this['commandStartTime']=Date[_0x95084d(0x20d)]();continue;case'5':this['command']=_0x1c1d9e;continue;case'6':this['nodeVersion']=process[_0x95084d(0x219)];continue;case'7':this[_0x95084d(0x1ed)]=_0x1cfe65[_0x95084d(0x239)](getCurrentVersion);continue;case'8':this['platform']=process['platform'];continue;}break;}}['setContext'](_0x4143ad){const _0x37fb87=_0x443264;if(_0x4143ad['featureId'])this['featureId']=_0x4143ad[_0x37fb87(0x230)];if(_0x4143ad['checklistItemId'])this['checklistItemId']=_0x4143ad[_0x37fb87(0x1f1)];if(_0x4143ad['browserSessionId'])this[_0x37fb87(0x202)]=_0x4143ad[_0x37fb87(0x202)];if(_0x4143ad['transport'])this[_0x37fb87(0x22f)]=_0x4143ad[_0x37fb87(0x22f)];}async[_0x443264(0x233)](_0x38a2bb){const _0x55da43=_0x443264,_0x49e0cc={'NCdbb':_0x55da43(0x207)},_0x124f2d=this[_0x55da43(0x20c)]({'eventType':_0x49e0cc[_0x55da43(0x1ea)],'metadata':_0x38a2bb});await this['sendImmediate'](_0x124f2d);}async[_0x443264(0x215)](_0x21980e,_0x207d20){const _0x1868fc=_0x443264,_0x4b6f19={'BhyhI':_0x1868fc(0x216),'JXjAQ':function(_0x3eb6b8,_0x171b34){return _0x3eb6b8-_0x171b34;}},_0x5c08d8=this[_0x1868fc(0x20c)]({'eventType':_0x4b6f19[_0x1868fc(0x217)],'outcome':_0x21980e,'durationMs':_0x4b6f19['JXjAQ'](Date[_0x1868fc(0x20d)](),this[_0x1868fc(0x1f7)]),'metadata':_0x207d20});await this['sendImmediate'](_0x5c08d8),await this[_0x1868fc(0x227)]();}async['trackCommandError'](_0x556897,_0x5d6922){const _0x1fec07=_0x443264,_0x46857a={'aHXMu':function(_0x81beb1,_0x1514ed,_0xec20e9){return _0x81beb1(_0x1514ed,_0xec20e9);},'WAIIG':function(_0x1f6f98,_0x128ef8){return _0x1f6f98(_0x128ef8);},'pilPm':_0x1fec07(0x20a)},_0x13f042=this['buildEvent']({'eventType':_0x1fec07(0x214),'errorMessage':_0x46857a['aHXMu'](truncate,_0x556897 instanceof Error?_0x556897[_0x1fec07(0x208)]:_0x46857a[_0x1fec07(0x203)](String,_0x556897),0x1f4),'errorType':_0x556897 instanceof Error?_0x556897[_0x1fec07(0x225)][_0x1fec07(0x200)]:_0x46857a[_0x1fec07(0x236)],'durationMs':Date['now']()-this[_0x1fec07(0x1f7)],'metadata':_0x5d6922});await this['sendImmediate'](_0x13f042),await this['flush']();}[_0x443264(0x1ff)](_0x3c4240,_0x2af014){const _0x3ab550=_0x443264,_0x27c70a={'LMCAY':_0x3ab550(0x20f)};this[_0x3ab550(0x240)]++,this[_0x3ab550(0x222)][_0x3ab550(0x226)](_0x3c4240,Date['now']());const _0x2a3cac=this[_0x3ab550(0x20c)]({'eventType':_0x27c70a[_0x3ab550(0x22d)],'phase':_0x3c4240,'phaseIndex':this['phaseCounter'],'metadata':_0x2af014});this[_0x3ab550(0x21a)]['push'](_0x2a3cac);}[_0x443264(0x20e)](_0xb947af,_0x5b7c50){const _0x5e87f4=_0x443264,_0x4132c3={'HiLza':function(_0x4c14ab,_0x1279d9){return _0x4c14ab-_0x1279d9;},'INJwb':_0x5e87f4(0x1f9)},_0x1ecb53=this[_0x5e87f4(0x222)][_0x5e87f4(0x211)](_0xb947af),_0x33553e=_0x1ecb53?_0x4132c3['HiLza'](Date['now'](),_0x1ecb53):undefined;this[_0x5e87f4(0x222)][_0x5e87f4(0x220)](_0xb947af);const _0x2fecba=this['buildEvent']({'eventType':_0x4132c3[_0x5e87f4(0x1e7)],'phase':_0xb947af,'durationMs':_0x33553e,'metadata':_0x5b7c50});this[_0x5e87f4(0x21a)][_0x5e87f4(0x205)](_0x2fecba),this['buffer'][_0x5e87f4(0x238)]>=0xa&&this['flushAsync']();}async[_0x443264(0x1ec)](_0xb90057,_0x227818,_0x14cc83){const _0x20f199=_0x443264,_0x901538={'UsYty':function(_0x44fd4a,_0x33e8b7){return _0x44fd4a-_0x33e8b7;},'iUhhp':function(_0x100cbe,_0x184cf3){return _0x100cbe instanceof _0x184cf3;},'IDPfp':function(_0x19322e,_0x356105){return _0x19322e(_0x356105);},'tRXAo':'Unknown'},_0x227aab=this[_0x20f199(0x222)][_0x20f199(0x211)](_0xb90057),_0x1840e2=_0x227aab?_0x901538['UsYty'](Date[_0x20f199(0x20d)](),_0x227aab):undefined;this['phaseStartTimes']['delete'](_0xb90057);const _0x1f5725=this[_0x20f199(0x20c)]({'eventType':_0x20f199(0x228),'phase':_0xb90057,'durationMs':_0x1840e2,'errorMessage':truncate(_0x901538[_0x20f199(0x21e)](_0x227818,Error)?_0x227818[_0x20f199(0x208)]:_0x901538['IDPfp'](String,_0x227818),0x1f4),'errorType':_0x901538['iUhhp'](_0x227818,Error)?_0x227818['constructor']['name']:_0x901538[_0x20f199(0x1fe)],'metadata':_0x14cc83});await this['sendImmediate'](_0x1f5725);}async[_0x443264(0x227)](){const _0x17cec9=_0x443264,_0x413dc2={'wMLuI':function(_0x485990,_0x2c15fc){return _0x485990===_0x2c15fc;}};if(_0x413dc2[_0x17cec9(0x209)](this['buffer']['length'],0x0))return;const _0x148ec5=this[_0x17cec9(0x21a)][_0x17cec9(0x22e)](0x0);try{await this['sendBatch'](_0x148ec5);}catch{}}[_0x443264(0x20c)](_0x107dff){const _0x420be2=_0x443264;return{'eventType':_0x107dff[_0x420be2(0x1fd)],'command':this['command'],'commandId':this[_0x420be2(0x23b)],'deviceId':this[_0x420be2(0x1fa)],'timestamp':new Date()[_0x420be2(0x221)](),'durationMs':_0x107dff['durationMs'],'phase':_0x107dff['phase'],'phaseIndex':_0x107dff[_0x420be2(0x231)],'outcome':_0x107dff[_0x420be2(0x1fb)],'errorMessage':_0x107dff[_0x420be2(0x223)],'errorType':_0x107dff[_0x420be2(0x218)],'featureId':this[_0x420be2(0x230)],'checklistItemId':this[_0x420be2(0x1f1)],'browserSessionId':this['browserSessionId'],'transport':this['transport'],'evaluation':_0x107dff['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0x420be2(0x1f8)],'cwd':process[_0x420be2(0x1e9)](),'isTty':this[_0x420be2(0x229)],'isCI':this['isCI'],'metadata':_0x107dff['metadata']};}async[_0x443264(0x1f0)](_0x91c0e5){const _0x59fb7f=_0x443264;try{await this[_0x59fb7f(0x1ef)]([_0x91c0e5]);}catch{}}['flushAsync'](){const _0x476985=_0x443264;if(this['flushing'])return;this['flushing']=this[_0x476985(0x227)]()['finally'](()=>{const _0xcbf2=_0x476985;this[_0xcbf2(0x232)]=null;});}async['sendBatch'](_0x5249a9){const _0x3863c8=_0x443264,_0x1d7660={'eAUGx':function(_0x4953f0){return _0x4953f0();},'sZskw':'application/json','xWwVq':_0x3863c8(0x204)},_0x30c6b0=await _0x1d7660[_0x3863c8(0x23a)](getToken)['catch'](()=>null),_0x38dd18=_0x1d7660['eAUGx'](getApiBaseUrl),_0x6b4821={'Content-Type':_0x1d7660['sZskw']};_0x30c6b0&&(_0x6b4821[_0x1d7660['xWwVq']]='Bearer\x20'+_0x30c6b0);const _0x3b0d8b={'events':_0x5249a9};process[_0x3863c8(0x22c)][_0x3863c8(0x1fc)]&&console['error'](_0x3863c8(0x22a)+_0x5249a9[_0x3863c8(0x238)]+_0x3863c8(0x22b)+_0x38dd18+'/api/v1/mcp/cli-telemetry');const _0x53911f=new AbortController(),_0x11d2a3=setTimeout(()=>_0x53911f[_0x3863c8(0x235)](),0x1388);try{await fetch(_0x38dd18+_0x3863c8(0x224),{'method':_0x3863c8(0x1e6),'headers':_0x6b4821,'body':JSON['stringify'](_0x3b0d8b),'signal':_0x53911f[_0x3863c8(0x23f)]});}finally{clearTimeout(_0x11d2a3);}}}let currentCollector=null;export function createTelemetryCollector(_0x3fa490){return currentCollector=new TelemetryCollector(_0x3fa490),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x59229d,_0x1b8c2a,_0x1210c7){const _0x4600c0=_0x443264,_0x43a827=createTelemetryCollector(_0x59229d);await _0x43a827['trackCommandStart'](_0x1210c7);try{const _0x47be9f=await _0x1b8c2a(_0x43a827);return await _0x43a827['trackCommandEnd'](_0x4600c0(0x21f)),_0x47be9f;}catch(_0x443778){await _0x43a827['trackCommandError'](_0x443778);throw _0x443778;}finally{await _0x43a827[_0x4600c0(0x227)]();}}function truncate(_0x26dbfc,_0x3e7bb8){const _0x53ec0e=_0x443264,_0x2b7e5d={'DWRxw':function(_0x19503d,_0x4d1e6f){return _0x19503d>_0x4d1e6f;},'PmbQF':function(_0x4e0e28,_0x570fba){return _0x4e0e28+_0x570fba;}};return _0x2b7e5d['DWRxw'](_0x26dbfc['length'],_0x3e7bb8)?_0x2b7e5d[_0x53ec0e(0x212)](_0x26dbfc[_0x53ec0e(0x1e8)](0x0,_0x3e7bb8),_0x53ec0e(0x1ee)):_0x26dbfc;}
1
+ function _0x4dc6(_0x22ad0c,_0x315e24){_0x22ad0c=_0x22ad0c-0xf0;const _0xe33850=_0xe338();let _0x4dc613=_0xe33850[_0x22ad0c];return _0x4dc613;}const _0x3b18cf=_0x4dc6;(function(_0x2db459,_0x5baf82){const _0x4affe0=_0x4dc6,_0x13915f=_0x2db459();while(!![]){try{const _0xd2ba2b=parseInt(_0x4affe0(0x136))/0x1+parseInt(_0x4affe0(0x10a))/0x2+parseInt(_0x4affe0(0x13b))/0x3*(-parseInt(_0x4affe0(0xfd))/0x4)+-parseInt(_0x4affe0(0x133))/0x5*(-parseInt(_0x4affe0(0x137))/0x6)+parseInt(_0x4affe0(0xf8))/0x7*(-parseInt(_0x4affe0(0xf3))/0x8)+-parseInt(_0x4affe0(0xf1))/0x9*(parseInt(_0x4affe0(0x114))/0xa)+parseInt(_0x4affe0(0x105))/0xb*(parseInt(_0x4affe0(0x101))/0xc);if(_0xd2ba2b===_0x5baf82)break;else _0x13915f['push'](_0x13915f['shift']());}catch(_0x1358f8){_0x13915f['push'](_0x13915f['shift']());}}}(_0xe338,0xefc0f));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 _0x4a2d9d=_0x4dc6,_0x358e11={'mzcfZ':function(_0xcf2061,_0x438246,_0x9c94ea){return _0xcf2061(_0x438246,_0x9c94ea);},'YqVLZ':function(_0x484ed0){return _0x484ed0();},'QqRHO':function(_0x5d72d3,_0x3eaa3a,_0xedc0fd){return _0x5d72d3(_0x3eaa3a,_0xedc0fd);},'vInNg':function(_0x23251c,_0x23ddc8){return _0x23251c(_0x23ddc8);},'MiBid':function(_0x378ce0,_0x3dec08,_0x3f403d){return _0x378ce0(_0x3dec08,_0x3f403d);},'qiUAE':_0x4a2d9d(0x10b),'BjKxt':function(_0x38372c){return _0x38372c();},'hljVH':function(_0x388538,_0x2955ec,_0x53ca64){return _0x388538(_0x2955ec,_0x53ca64);},'hlYiK':function(_0x2ac26a,_0x41786d,_0x17baed){return _0x2ac26a(_0x41786d,_0x17baed);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x5d1e99=_0x358e11[_0x4a2d9d(0x10e)](join,_0x358e11['YqVLZ'](homedir),_0x4a2d9d(0x104)),_0x5b7500=_0x358e11['QqRHO'](join,_0x5d1e99,_0x4a2d9d(0x106));if(_0x358e11['vInNg'](existsSync,_0x5b7500)){cachedDeviceId=_0x358e11['MiBid'](readFileSync,_0x5b7500,_0x358e11[_0x4a2d9d(0x12a)])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x358e11[_0x4a2d9d(0x125)](randomUUID),_0x358e11['hljVH'](mkdirSync,_0x5d1e99,{'recursive':!![]}),_0x358e11[_0x4a2d9d(0x11b)](writeFileSync,_0x5b7500,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}function _0xe338(){const _0x3be7c8=['2573058fcKqCe','zZWMT','toISOString','POST','2199228KwUbGw','errorMessage','bpXAv','durationMs','errorType','3009249LCeMZF','splice','8uhkHZD','application/json','cwd','phaseCounter','Bearer\x20','5537329sWJsIV','/api/v1/mcp/cli-telemetry','Unknown','name','Pygnf','8GmnZsN','get','commandStartTime','constructor','18456qYYbtz','nDlbH','flush','.ranger','10604mrfySO','.session','command_end','length','featureId','90876ypXIvG','utf-8','commandId','stdout','mzcfZ','platform','message','isCI','eventType','nodeVersion','10IOxRbg','ylQSv','buffer','signal','sendImmediate','CVtUB','now','hlYiK','set','phaseStartTimes','checklistItemId','slice','buildEvent','command_error','cliVersion','deviceId','browserSessionId','BjKxt','env','success','phaseIndex','stringify','qiUAE','EBEaO','flushing','xfkID','push','flushAsync','sendBatch','trackCommandStart','isTty','5piJunt','transport','trackPhaseStart','1616678fefIYm'];_0xe338=function(){return _0x3be7c8;};return _0xe338();}export class TelemetryCollector{['buffer']=[];['commandId'];['command'];[_0x3b18cf(0xff)];[_0x3b18cf(0xf6)]=0x0;['phaseStartTimes']=new Map();['flushing']=null;['deviceId'];[_0x3b18cf(0x122)];['nodeVersion'];['platform'];['isTty'];['isCI'];[_0x3b18cf(0x109)];['checklistItemId'];[_0x3b18cf(0x124)];[_0x3b18cf(0x134)];constructor(_0x88b290){const _0x26e121=_0x3b18cf,_0x17728d={'QErhz':function(_0x50117a){return _0x50117a();}};this[_0x26e121(0x10c)]=randomUUID(),this['command']=_0x88b290,this['commandStartTime']=Date[_0x26e121(0x11a)](),this['deviceId']=_0x17728d['QErhz'](getDeviceId),this['cliVersion']=_0x17728d['QErhz'](getCurrentVersion),this[_0x26e121(0x113)]=process['version'],this[_0x26e121(0x10f)]=process[_0x26e121(0x10f)],this[_0x26e121(0x132)]=process[_0x26e121(0x10d)]['isTTY']??![],this[_0x26e121(0x111)]=!!(process[_0x26e121(0x126)]['CI']||process['env']['GITHUB_ACTIONS']);}['setContext'](_0x250938){const _0x303ab1=_0x3b18cf;if(_0x250938['featureId'])this[_0x303ab1(0x109)]=_0x250938['featureId'];if(_0x250938[_0x303ab1(0x11e)])this['checklistItemId']=_0x250938['checklistItemId'];if(_0x250938['browserSessionId'])this[_0x303ab1(0x124)]=_0x250938['browserSessionId'];if(_0x250938[_0x303ab1(0x134)])this['transport']=_0x250938[_0x303ab1(0x134)];}async['trackCommandStart'](_0x1d8c0d){const _0x377e00=_0x3b18cf,_0x557403=this[_0x377e00(0x120)]({'eventType':'command_start','metadata':_0x1d8c0d});await this[_0x377e00(0x118)](_0x557403);}async['trackCommandEnd'](_0xcc801c,_0x1b7364){const _0x37ce6d=_0x3b18cf,_0x6adb6b=this[_0x37ce6d(0x120)]({'eventType':_0x37ce6d(0x107),'outcome':_0xcc801c,'durationMs':Date[_0x37ce6d(0x11a)]()-this[_0x37ce6d(0xff)],'metadata':_0x1b7364});await this[_0x37ce6d(0x118)](_0x6adb6b),await this[_0x37ce6d(0x103)]();}async['trackCommandError'](_0x5897b9,_0x1fc464){const _0x130ba8=_0x3b18cf,_0x16d166={'CVtUB':function(_0x4e942f,_0x1b077a,_0x4c71a7){return _0x4e942f(_0x1b077a,_0x4c71a7);},'PORMX':function(_0x1a4fb9,_0x7df379){return _0x1a4fb9(_0x7df379);},'ylQSv':function(_0x45d374,_0x45c9e7){return _0x45d374 instanceof _0x45c9e7;},'xfkID':_0x130ba8(0xfa)},_0x39841e=this['buildEvent']({'eventType':_0x130ba8(0x121),'errorMessage':_0x16d166[_0x130ba8(0x119)](truncate,_0x5897b9 instanceof Error?_0x5897b9[_0x130ba8(0x110)]:_0x16d166['PORMX'](String,_0x5897b9),0x1f4),'errorType':_0x16d166[_0x130ba8(0x115)](_0x5897b9,Error)?_0x5897b9['constructor'][_0x130ba8(0xfb)]:_0x16d166[_0x130ba8(0x12d)],'durationMs':Date[_0x130ba8(0x11a)]()-this[_0x130ba8(0xff)],'metadata':_0x1fc464});await this[_0x130ba8(0x118)](_0x39841e),await this['flush']();}[_0x3b18cf(0x135)](_0x1fce16,_0x253dad){const _0x34c118=_0x3b18cf,_0x2f8192={'DTmEs':'phase_start'};this[_0x34c118(0xf6)]++,this[_0x34c118(0x11d)][_0x34c118(0x11c)](_0x1fce16,Date[_0x34c118(0x11a)]());const _0x524cca=this['buildEvent']({'eventType':_0x2f8192['DTmEs'],'phase':_0x1fce16,'phaseIndex':this['phaseCounter'],'metadata':_0x253dad});this[_0x34c118(0x116)][_0x34c118(0x12e)](_0x524cca);}['trackPhaseEnd'](_0x347849,_0x1d590d){const _0x264996=_0x3b18cf,_0x3b9ddc={'ZUlGV':function(_0x4c63d1,_0x109ef2){return _0x4c63d1-_0x109ef2;},'urJJj':'phase_end'},_0x4065c8=this[_0x264996(0x11d)][_0x264996(0xfe)](_0x347849),_0x20fdd6=_0x4065c8?_0x3b9ddc['ZUlGV'](Date[_0x264996(0x11a)](),_0x4065c8):undefined;this['phaseStartTimes']['delete'](_0x347849);const _0xf00e0a=this[_0x264996(0x120)]({'eventType':_0x3b9ddc['urJJj'],'phase':_0x347849,'durationMs':_0x20fdd6,'metadata':_0x1d590d});this['buffer'][_0x264996(0x12e)](_0xf00e0a),this[_0x264996(0x116)][_0x264996(0x108)]>=0xa&&this['flushAsync']();}async['trackPhaseError'](_0xbe6630,_0x1bd835,_0x2fff1f){const _0x4986db=_0x3b18cf,_0x9579ab={'zZWMT':function(_0x16a096,_0x5b4173){return _0x16a096 instanceof _0x5b4173;},'TDCyJ':function(_0x3c96f0,_0x439a67){return _0x3c96f0(_0x439a67);}},_0x117ec=this['phaseStartTimes']['get'](_0xbe6630),_0x279f0c=_0x117ec?Date['now']()-_0x117ec:undefined;this['phaseStartTimes']['delete'](_0xbe6630);const _0xde8d79=this['buildEvent']({'eventType':'phase_error','phase':_0xbe6630,'durationMs':_0x279f0c,'errorMessage':truncate(_0x9579ab[_0x4986db(0x138)](_0x1bd835,Error)?_0x1bd835[_0x4986db(0x110)]:_0x9579ab['TDCyJ'](String,_0x1bd835),0x1f4),'errorType':_0x9579ab['zZWMT'](_0x1bd835,Error)?_0x1bd835[_0x4986db(0x100)][_0x4986db(0xfb)]:_0x4986db(0xfa),'metadata':_0x2fff1f});await this[_0x4986db(0x118)](_0xde8d79);}async['flush'](){const _0x34774b=_0x3b18cf,_0x2b7f21={'bpXAv':function(_0x3e689c,_0x510d56){return _0x3e689c===_0x510d56;}};if(_0x2b7f21[_0x34774b(0x13d)](this[_0x34774b(0x116)]['length'],0x0))return;const _0x40f4fa=this[_0x34774b(0x116)][_0x34774b(0xf2)](0x0);try{await this['sendBatch'](_0x40f4fa);}catch{}}['buildEvent'](_0x5e31f6){const _0x162b59=_0x3b18cf;return{'eventType':_0x5e31f6[_0x162b59(0x112)],'command':this['command'],'commandId':this['commandId'],'deviceId':this[_0x162b59(0x123)],'timestamp':new Date()[_0x162b59(0x139)](),'durationMs':_0x5e31f6[_0x162b59(0x13e)],'phase':_0x5e31f6['phase'],'phaseIndex':_0x5e31f6[_0x162b59(0x128)],'outcome':_0x5e31f6['outcome'],'errorMessage':_0x5e31f6[_0x162b59(0x13c)],'errorType':_0x5e31f6[_0x162b59(0xf0)],'featureId':this[_0x162b59(0x109)],'checklistItemId':this[_0x162b59(0x11e)],'browserSessionId':this[_0x162b59(0x124)],'transport':this[_0x162b59(0x134)],'evaluation':_0x5e31f6['evaluation'],'cliVersion':this[_0x162b59(0x122)],'nodeVersion':this['nodeVersion'],'platform':this[_0x162b59(0x10f)],'cwd':process[_0x162b59(0xf5)](),'isTty':this[_0x162b59(0x132)],'isCI':this[_0x162b59(0x111)],'metadata':_0x5e31f6['metadata']};}async[_0x3b18cf(0x118)](_0x3b0e77){const _0x2696c8=_0x3b18cf;try{await this[_0x2696c8(0x130)]([_0x3b0e77]);}catch{}}[_0x3b18cf(0x12f)](){const _0x58e68b=_0x3b18cf;if(this[_0x58e68b(0x12c)])return;this['flushing']=this[_0x58e68b(0x103)]()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x56b773){const _0x15d929=_0x3b18cf,_0x3be4c6={'fflzs':_0x15d929(0xf4),'lnRoA':'Authorization','EBEaO':function(_0x58e35e,_0x916774,_0x48b22c){return _0x58e35e(_0x916774,_0x48b22c);},'Pygnf':_0x15d929(0x13a)},_0x396cd4=await getToken()['catch'](()=>null),_0x1963ac=getApiBaseUrl(),_0x13d130={'Content-Type':_0x3be4c6['fflzs']};_0x396cd4&&(_0x13d130[_0x3be4c6['lnRoA']]=_0x15d929(0xf7)+_0x396cd4);const _0x4cd3d8={'events':_0x56b773};process['env']['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x56b773['length']+'\x20event(s)\x20to\x20'+_0x1963ac+_0x15d929(0xf9));const _0x3c9219=new AbortController(),_0x56a292=_0x3be4c6[_0x15d929(0x12b)](setTimeout,()=>_0x3c9219['abort'](),0x1388);try{await _0x3be4c6[_0x15d929(0x12b)](fetch,_0x1963ac+'/api/v1/mcp/cli-telemetry',{'method':_0x3be4c6[_0x15d929(0xfc)],'headers':_0x13d130,'body':JSON[_0x15d929(0x129)](_0x4cd3d8),'signal':_0x3c9219[_0x15d929(0x117)]});}finally{clearTimeout(_0x56a292);}}}let currentCollector=null;export function createTelemetryCollector(_0x4bb283){return currentCollector=new TelemetryCollector(_0x4bb283),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x566368,_0x516eb2,_0x397257){const _0x528cb8=_0x3b18cf,_0x40c0ec={'RnfaD':function(_0x19d8ad,_0x3da5c9){return _0x19d8ad(_0x3da5c9);}},_0x3483fa=_0x40c0ec['RnfaD'](createTelemetryCollector,_0x566368);await _0x3483fa[_0x528cb8(0x131)](_0x397257);try{const _0xd31bc5=await _0x516eb2(_0x3483fa);return await _0x3483fa['trackCommandEnd'](_0x528cb8(0x127)),_0xd31bc5;}catch(_0x4ca4c5){await _0x3483fa['trackCommandError'](_0x4ca4c5);throw _0x4ca4c5;}finally{await _0x3483fa[_0x528cb8(0x103)]();}}function truncate(_0x2aff61,_0x740860){const _0x452384=_0x3b18cf,_0x5a859b={'nDlbH':function(_0x597449,_0x19e33e){return _0x597449>_0x19e33e;}};return _0x5a859b[_0x452384(0x102)](_0x2aff61['length'],_0x740860)?_0x2aff61[_0x452384(0x11f)](0x0,_0x740860)+'...':_0x2aff61;}
@@ -1 +1 @@
1
- (function(_0xb9919f,_0x2bc926){const _0x3fa86f=_0x3b2b,_0x5984e0=_0xb9919f();while(!![]){try{const _0x35d900=parseInt(_0x3fa86f(0x13e))/0x1+-parseInt(_0x3fa86f(0x149))/0x2*(parseInt(_0x3fa86f(0x12f))/0x3)+parseInt(_0x3fa86f(0x13b))/0x4+-parseInt(_0x3fa86f(0x132))/0x5+-parseInt(_0x3fa86f(0x14a))/0x6*(parseInt(_0x3fa86f(0x14f))/0x7)+parseInt(_0x3fa86f(0x15e))/0x8*(-parseInt(_0x3fa86f(0x154))/0x9)+-parseInt(_0x3fa86f(0x12e))/0xa*(-parseInt(_0x3fa86f(0x14b))/0xb);if(_0x35d900===_0x2bc926)break;else _0x5984e0['push'](_0x5984e0['shift']());}catch(_0x86b2ef){_0x5984e0['push'](_0x5984e0['shift']());}}}(_0x4b12,0xd219d));function _0x4b12(){const _0x100f41=['SEuyQ','27mKyHaJ','eduuH','afterSnapshot','IXKOz','XyIcj','point','pageId','abs','utf-8','monotonicTime','190160GgBJUq','hxUrV','1740GeMeJU','493203JWxySm','FqtRM','getTime','2918895UwPrVS','get','push','name','apiName','callId','frame-snapshot','url','goto','1989580jXUCqu','inputSnapshot','string','1040814PnQiPR','startTime','params','filter','ghGrQ','context-options','bOEBM','type','set','EDcPd','values','10uhBOZN','126gHjuTp','71896ccjjZd','beforeSnapshot','mtnvS','frameUrl','112602klvGOP','input','method','length'];_0x4b12=function(){return _0x100f41;};return _0x4b12();}import{readdir,readFile}from'fs/promises';function _0x3b2b(_0x339a1a,_0x1eac39){_0x339a1a=_0x339a1a-0x12e;const _0x4b1216=_0x4b12();let _0x3b2bee=_0x4b1216[_0x339a1a];return _0x3b2bee;}import{join}from'path';export async function mapStepsToTraceSnapshots(_0x137202,_0x137f30){const _0x1bf89f=_0x3b2b,_0x254e0b={'SEuyQ':function(_0x8e2dc2,_0x47dcc0,_0x978843){return _0x8e2dc2(_0x47dcc0,_0x978843);},'FqtRM':function(_0x340eea,_0x399ee9){return _0x340eea(_0x399ee9);},'ghGrQ':function(_0x309861,_0x597033){return _0x309861===_0x597033;},'hxUrV':function(_0x575222,_0x43a1ce){return _0x575222===_0x43a1ce;},'mtnvS':function(_0xd60731,_0x4f06c8){return _0xd60731===_0x4f06c8;},'vddiS':function(_0xdd11fa,_0x5cbd3f){return _0xdd11fa-_0x5cbd3f;},'XyIcj':'before','CmeNZ':_0x1bf89f(0x150),'GcizL':'after','KjgUQ':function(_0x4970b9,_0x5142ca){return _0x4970b9===_0x5142ca;},'eduuH':_0x1bf89f(0x13d),'IXKOz':function(_0x5e863f,_0x118efd){return _0x5e863f===_0x118efd;},'XlgGl':function(_0x54ef68,_0x21f180){return _0x54ef68-_0x21f180;},'EDcPd':function(_0x56352f,_0x3dd1bc){return _0x56352f<_0x3dd1bc;},'bOEBM':function(_0x13832c,_0x31b60c){return _0x13832c<_0x31b60c;}},_0x1f845c=new Map();if(_0x254e0b[_0x1bf89f(0x142)](_0x137f30[_0x1bf89f(0x152)],0x0))return _0x1f845c;const _0x3c02a4=[],_0x3bb5f5=async _0x356f5e=>{const _0x1ed261=_0x1bf89f,_0x3cbf5e=await readdir(_0x356f5e,{'withFileTypes':!![]});for(const _0x5534ed of _0x3cbf5e){const _0x4f2a5a=_0x254e0b[_0x1ed261(0x153)](join,_0x356f5e,_0x5534ed[_0x1ed261(0x135)]);if(_0x5534ed['isDirectory']())await _0x254e0b[_0x1ed261(0x130)](_0x3bb5f5,_0x4f2a5a);else _0x5534ed['name']['endsWith']('.trace')&&_0x3c02a4['push'](_0x4f2a5a);}};await _0x254e0b[_0x1bf89f(0x130)](_0x3bb5f5,_0x137202);if(_0x254e0b[_0x1bf89f(0x15f)](_0x3c02a4['length'],0x0))return _0x1f845c;const _0x3498e=[];for(const _0x43c9d3 of _0x3c02a4){const _0x593bcd=await readFile(_0x43c9d3,_0x1bf89f(0x15c)),_0x14b05b=_0x593bcd['split']('\x0a')[_0x1bf89f(0x141)](_0x10b4a2=>_0x10b4a2['trim']());for(const _0x485b86 of _0x14b05b){try{_0x3498e[_0x1bf89f(0x134)](JSON['parse'](_0x485b86));}catch{}}}if(_0x254e0b[_0x1bf89f(0x14d)](_0x3498e[_0x1bf89f(0x152)],0x0))return _0x1f845c;const _0x39dc97=_0x3498e['find'](_0xe09c8f=>_0xe09c8f['type']===_0x1bf89f(0x143));if(!_0x39dc97)return _0x1f845c;const _0x3232ca=_0x254e0b['vddiS'](_0x39dc97['wallTime'],_0x39dc97[_0x1bf89f(0x15d)]),_0x176f38=new Map();for(const _0x3c3884 of _0x3498e){switch(_0x3c3884['type']){case _0x254e0b[_0x1bf89f(0x158)]:{const _0x2a8014=_0x3c3884;_0x176f38[_0x1bf89f(0x146)](_0x2a8014[_0x1bf89f(0x137)],{'callId':_0x2a8014['callId'],'startTime':_0x2a8014[_0x1bf89f(0x13f)],'endTime':0x0,'method':_0x2a8014[_0x1bf89f(0x151)],'apiName':_0x2a8014[_0x1bf89f(0x136)],'params':_0x2a8014[_0x1bf89f(0x140)],'pageId':_0x2a8014[_0x1bf89f(0x15a)],'beforeSnapshot':_0x2a8014[_0x1bf89f(0x14c)]});break;}case _0x254e0b['CmeNZ']:{const _0x392fbc=_0x3c3884,_0x179ec5=_0x176f38[_0x1bf89f(0x133)](_0x392fbc['callId']);if(_0x179ec5){if(_0x392fbc[_0x1bf89f(0x13c)])_0x179ec5[_0x1bf89f(0x13c)]=_0x392fbc[_0x1bf89f(0x13c)];if(_0x392fbc['point'])_0x179ec5[_0x1bf89f(0x159)]=_0x392fbc['point'];}break;}case _0x254e0b['GcizL']:{const _0x3572f5=_0x3c3884,_0x4d76a2=_0x176f38['get'](_0x3572f5[_0x1bf89f(0x137)]);if(_0x4d76a2){_0x4d76a2['endTime']=_0x3572f5['endTime'];if(_0x3572f5[_0x1bf89f(0x156)])_0x4d76a2['afterSnapshot']=_0x3572f5[_0x1bf89f(0x156)];}break;}}}const _0x2d98fc=Array['from'](_0x176f38[_0x1bf89f(0x148)]())[_0x1bf89f(0x141)](_0x4cd1f6=>_0x4cd1f6['endTime']>0x0&&(_0x4cd1f6[_0x1bf89f(0x156)]||_0x4cd1f6[_0x1bf89f(0x14c)]))['sort']((_0x449027,_0x7b9923)=>_0x449027['startTime']-_0x7b9923[_0x1bf89f(0x13f)]);if(_0x2d98fc['length']===0x0)return _0x1f845c;const _0xd63fab=new Map();for(const _0x27be01 of _0x3498e){if(_0x27be01['type']===_0x1bf89f(0x138)){const _0x5f5823=_0x27be01['snapshot'];_0x5f5823?.['snapshotName']&&_0x5f5823?.['frameUrl']&&_0xd63fab['set'](_0x5f5823['snapshotName'],_0x5f5823[_0x1bf89f(0x14e)]);}}const _0x7f4696=new Map();for(const _0x24939e of _0x2d98fc){const _0x1851f4=_0x24939e[_0x1bf89f(0x140)]?.[_0x1bf89f(0x139)];_0x24939e['method']===_0x1bf89f(0x13a)&&typeof _0x1851f4==='string'&&_0x24939e['pageId']&&_0x7f4696['set'](_0x24939e['pageId'],_0x1851f4);}for(const _0x43493e of _0x3498e){const _0x5b6343=_0x43493e,_0xf8824f=_0x5b6343['params'],_0x3ebd8e=_0xf8824f?.[_0x1bf89f(0x139)];_0x5b6343[_0x1bf89f(0x145)]==='event'&&_0x254e0b['KjgUQ'](_0x5b6343[_0x1bf89f(0x151)],'navigated')&&_0x254e0b[_0x1bf89f(0x14d)](typeof _0x3ebd8e,_0x254e0b[_0x1bf89f(0x155)])&&_0x254e0b[_0x1bf89f(0x157)](typeof _0x5b6343['pageId'],_0x254e0b['eduuH'])&&_0x7f4696[_0x1bf89f(0x146)](_0x5b6343[_0x1bf89f(0x15a)],_0x3ebd8e);}for(const _0x184f13 of _0x137f30){const _0x268144=new Date(_0x184f13['capturedAt'])[_0x1bf89f(0x131)](),_0x2b9e2d=_0x254e0b['XlgGl'](_0x268144,_0x3232ca);let _0x14b19c=null,_0x577396=Infinity;for(const _0x536c9b of _0x2d98fc){const _0x2179c4=Math[_0x1bf89f(0x15b)](_0x254e0b['XlgGl'](_0x536c9b['endTime'],_0x2b9e2d));_0x254e0b[_0x1bf89f(0x147)](_0x2179c4,_0x577396)&&(_0x577396=_0x2179c4,_0x14b19c=_0x536c9b);}if(!_0x14b19c)continue;const _0x41dd4c=_0x14b19c['afterSnapshot']||_0x14b19c['beforeSnapshot'];if(!_0x41dd4c)continue;const _0x501aba=_0x14b19c[_0x1bf89f(0x15a)]||'page@0';let _0x108f86=_0xd63fab['get'](_0x41dd4c)||_0x7f4696[_0x1bf89f(0x133)](_0x501aba)||'';if(!_0x108f86)for(let _0x18aa15=_0x2d98fc['indexOf'](_0x14b19c);_0x18aa15>=0x0;_0x18aa15--){const _0x539af4=_0x2d98fc[_0x18aa15][_0x1bf89f(0x140)]?.['url'];if(_0x2d98fc[_0x18aa15][_0x1bf89f(0x151)]===_0x1bf89f(0x13a)&&typeof _0x539af4===_0x254e0b['eduuH']){_0x108f86=_0x539af4;break;}}let _0x23d0b9,_0x32787c;const _0x94f7ec=_0x2d98fc['indexOf'](_0x14b19c);if(_0x94f7ec>=0x0&&_0x254e0b[_0x1bf89f(0x144)](_0x94f7ec,_0x254e0b['vddiS'](_0x2d98fc['length'],0x1))){const _0x3d71f0=_0x2d98fc[_0x94f7ec+0x1];_0x3d71f0['point']&&_0x3d71f0['inputSnapshot']&&(_0x23d0b9=_0x3d71f0[_0x1bf89f(0x159)],_0x32787c=_0x3d71f0['inputSnapshot']);}_0x1f845c[_0x1bf89f(0x146)](_0x184f13['stepId'],{'snapshotName':_0x41dd4c,'inputSnapshotName':_0x32787c,'pageId':_0x501aba,'pageUrl':_0x108f86,'callId':_0x14b19c['callId'],'point':_0x23d0b9});}return _0x1f845c;}
1
+ function _0x12e3(){const _0x3fa05e=['parse','length','type','beforeSnapshot','string','set','626112CyPrnv','getTime','stepId','YTonC','indexOf','610023WnKTng','prQOO','YgnGV','QIiuG','4FMiEqu','utf-8','get','wallTime','Pbfyf','after','monotonicTime','startTime','afterSnapshot','ELJMU','ncfCd','JLqIA','navigated','snapshot','goto','BtKeB','params','endTime','nVMxb','Ccace','method','jIeOS','564oTtrEh','callId','149097LdfAoL','.trace','272Ayaqev','sort','6578650OqEQLx','ExIqR','frame-snapshot','url','isDirectory','inputSnapshot','pageId','values','33089HIMmJk','filter','split','capturedAt','GoDNo','19620bFjBUX','340050UhRAas'];_0x12e3=function(){return _0x3fa05e;};return _0x12e3();}(function(_0x173500,_0x1bc82b){const _0x57176b=_0x10a2,_0x3e0205=_0x173500();while(!![]){try{const _0x5eb89d=parseInt(_0x57176b(0x11d))/0x1+parseInt(_0x57176b(0x105))/0x2*(parseInt(_0x57176b(0x101))/0x3)+-parseInt(_0x57176b(0xfc))/0x4+parseInt(_0x57176b(0xf5))/0x5+parseInt(_0x57176b(0x11b))/0x6*(parseInt(_0x57176b(0xef))/0x7)+-parseInt(_0x57176b(0x11f))/0x8*(-parseInt(_0x57176b(0xf4))/0x9)+-parseInt(_0x57176b(0xe7))/0xa;if(_0x5eb89d===_0x1bc82b)break;else _0x3e0205['push'](_0x3e0205['shift']());}catch(_0x47bc48){_0x3e0205['push'](_0x3e0205['shift']());}}}(_0x12e3,0x500ae));function _0x10a2(_0x1cd4c0,_0xd6ac47){_0x1cd4c0=_0x1cd4c0-0xe6;const _0x12e3a2=_0x12e3();let _0x10a215=_0x12e3a2[_0x1cd4c0];return _0x10a215;}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x18aacb,_0x3e318a){const _0x4808b2=_0x10a2,_0xd1087f={'ncfCd':function(_0x3fbdad,_0x11c7a2,_0x3d29ed){return _0x3fbdad(_0x11c7a2,_0x3d29ed);},'Cxojx':function(_0x16b326,_0x53b06f){return _0x16b326(_0x53b06f);},'Pbfyf':_0x4808b2(0x11e),'YTonC':function(_0x5240b9,_0x14e973){return _0x5240b9===_0x14e973;},'YgnGV':'input','BtKeB':function(_0xd0828e,_0x50a4b3){return _0xd0828e===_0x50a4b3;},'jIeOS':_0x4808b2(0xe9),'ELJMU':function(_0x43f91c,_0x574e6b){return _0x43f91c===_0x574e6b;},'ExIqR':function(_0x1c3da9,_0x2dd39a){return _0x1c3da9===_0x2dd39a;},'QIiuG':_0x4808b2(0xfa),'GoDNo':function(_0x8efea7,_0x4f6662){return _0x8efea7<_0x4f6662;},'nVMxb':'page@0','prQOO':function(_0x4fd059,_0x4dc2aa){return _0x4fd059===_0x4dc2aa;},'Ccace':function(_0x494801,_0x493f40){return _0x494801>=_0x493f40;},'JLqIA':function(_0x57687f,_0x1e55ce){return _0x57687f-_0x1e55ce;}},_0x114184=new Map();if(_0x3e318a[_0x4808b2(0xf7)]===0x0)return _0x114184;const _0x4d2a4c=[],_0x181770=async _0x521fe4=>{const _0x1a69b8=_0x4808b2,_0x27aa5f=await readdir(_0x521fe4,{'withFileTypes':!![]});for(const _0x387545 of _0x27aa5f){const _0x5cbc45=_0xd1087f[_0x1a69b8(0x10f)](join,_0x521fe4,_0x387545['name']);if(_0x387545[_0x1a69b8(0xeb)]())await _0xd1087f['Cxojx'](_0x181770,_0x5cbc45);else _0x387545['name']['endsWith'](_0xd1087f[_0x1a69b8(0x109)])&&_0x4d2a4c['push'](_0x5cbc45);}};await _0xd1087f['Cxojx'](_0x181770,_0x18aacb);if(_0x4d2a4c['length']===0x0)return _0x114184;const _0x16f982=[];for(const _0x3629cf of _0x4d2a4c){const _0x452c3f=await _0xd1087f[_0x4808b2(0x10f)](readFile,_0x3629cf,_0x4808b2(0x106)),_0x16ba47=_0x452c3f[_0x4808b2(0xf1)]('\x0a')['filter'](_0x3c0606=>_0x3c0606['trim']());for(const _0x19bdd3 of _0x16ba47){try{_0x16f982['push'](JSON[_0x4808b2(0xf6)](_0x19bdd3));}catch{}}}if(_0xd1087f[_0x4808b2(0xff)](_0x16f982[_0x4808b2(0xf7)],0x0))return _0x114184;const _0x9b3d40=_0x16f982['find'](_0x4b2957=>_0x4b2957[_0x4808b2(0xf8)]==='context-options');if(!_0x9b3d40)return _0x114184;const _0x455274=_0x9b3d40[_0x4808b2(0x108)]-_0x9b3d40[_0x4808b2(0x10b)],_0x46616d=new Map();for(const _0x21eac2 of _0x16f982){switch(_0x21eac2[_0x4808b2(0xf8)]){case'before':{const _0x1023d8=_0x21eac2;_0x46616d[_0x4808b2(0xfb)](_0x1023d8[_0x4808b2(0x11c)],{'callId':_0x1023d8[_0x4808b2(0x11c)],'startTime':_0x1023d8['startTime'],'endTime':0x0,'method':_0x1023d8['method'],'apiName':_0x1023d8['apiName'],'params':_0x1023d8[_0x4808b2(0x115)],'pageId':_0x1023d8[_0x4808b2(0xed)],'beforeSnapshot':_0x1023d8['beforeSnapshot']});break;}case _0xd1087f[_0x4808b2(0x103)]:{const _0x3be32a=_0x21eac2,_0x2eb770=_0x46616d['get'](_0x3be32a['callId']);if(_0x2eb770){if(_0x3be32a[_0x4808b2(0xec)])_0x2eb770[_0x4808b2(0xec)]=_0x3be32a[_0x4808b2(0xec)];if(_0x3be32a['point'])_0x2eb770['point']=_0x3be32a['point'];}break;}case _0x4808b2(0x10a):{const _0x45f589=_0x21eac2,_0x4a3341=_0x46616d[_0x4808b2(0x107)](_0x45f589['callId']);if(_0x4a3341){_0x4a3341[_0x4808b2(0x116)]=_0x45f589[_0x4808b2(0x116)];if(_0x45f589['afterSnapshot'])_0x4a3341[_0x4808b2(0x10d)]=_0x45f589['afterSnapshot'];}break;}}}const _0xd0c136=Array['from'](_0x46616d[_0x4808b2(0xee)]())[_0x4808b2(0xf0)](_0x2d1332=>_0x2d1332['endTime']>0x0&&(_0x2d1332['afterSnapshot']||_0x2d1332['beforeSnapshot']))[_0x4808b2(0xe6)]((_0x48c03f,_0x41f7fa)=>_0x48c03f[_0x4808b2(0x10c)]-_0x41f7fa['startTime']);if(_0xd1087f['BtKeB'](_0xd0c136['length'],0x0))return _0x114184;const _0x29318b=new Map();for(const _0x1a81aa of _0x16f982){if(_0xd1087f[_0x4808b2(0x114)](_0x1a81aa['type'],_0xd1087f[_0x4808b2(0x11a)])){const _0x18cb13=_0x1a81aa[_0x4808b2(0x112)];_0x18cb13?.['snapshotName']&&_0x18cb13?.['frameUrl']&&_0x29318b[_0x4808b2(0xfb)](_0x18cb13['snapshotName'],_0x18cb13['frameUrl']);}}const _0x207d3f=new Map();for(const _0x52ecde of _0xd0c136){const _0x3390ff=_0x52ecde['params']?.[_0x4808b2(0xea)];_0xd1087f[_0x4808b2(0x10e)](_0x52ecde['method'],'goto')&&typeof _0x3390ff==='string'&&_0x52ecde['pageId']&&_0x207d3f[_0x4808b2(0xfb)](_0x52ecde[_0x4808b2(0xed)],_0x3390ff);}for(const _0x2254f4 of _0x16f982){const _0x12feac=_0x2254f4,_0x73f42e=_0x12feac['params'],_0x550071=_0x73f42e?.['url'];_0xd1087f[_0x4808b2(0xe8)](_0x12feac['type'],'event')&&_0x12feac[_0x4808b2(0x119)]===_0x4808b2(0x111)&&_0xd1087f['YTonC'](typeof _0x550071,_0xd1087f[_0x4808b2(0x104)])&&_0xd1087f[_0x4808b2(0xff)](typeof _0x12feac['pageId'],_0x4808b2(0xfa))&&_0x207d3f['set'](_0x12feac[_0x4808b2(0xed)],_0x550071);}for(const _0x1890df of _0x3e318a){const _0x5ede84=new Date(_0x1890df[_0x4808b2(0xf2)])[_0x4808b2(0xfd)](),_0x2fb34f=_0x5ede84-_0x455274;let _0x5661f6=null,_0x3c7619=Infinity;for(const _0x3e2523 of _0xd0c136){const _0x5c8bc5=Math['abs'](_0x3e2523['endTime']-_0x2fb34f);_0xd1087f[_0x4808b2(0xf3)](_0x5c8bc5,_0x3c7619)&&(_0x3c7619=_0x5c8bc5,_0x5661f6=_0x3e2523);}if(!_0x5661f6)continue;const _0xddfbfb=_0x5661f6[_0x4808b2(0x10d)]||_0x5661f6[_0x4808b2(0xf9)];if(!_0xddfbfb)continue;const _0x328ce0=_0x5661f6[_0x4808b2(0xed)]||_0xd1087f[_0x4808b2(0x117)];let _0x25a4d1=_0x29318b['get'](_0xddfbfb)||_0x207d3f[_0x4808b2(0x107)](_0x328ce0)||'';if(!_0x25a4d1)for(let _0x35a1be=_0xd0c136['indexOf'](_0x5661f6);_0x35a1be>=0x0;_0x35a1be--){const _0xedaefd=_0xd0c136[_0x35a1be]['params']?.[_0x4808b2(0xea)];if(_0xd1087f[_0x4808b2(0x102)](_0xd0c136[_0x35a1be]['method'],_0x4808b2(0x113))&&typeof _0xedaefd===_0xd1087f['QIiuG']){_0x25a4d1=_0xedaefd;break;}}let _0x108d23,_0x3f8027;const _0x252eba=_0xd0c136[_0x4808b2(0x100)](_0x5661f6);if(_0xd1087f[_0x4808b2(0x118)](_0x252eba,0x0)&&_0x252eba<_0xd1087f[_0x4808b2(0x110)](_0xd0c136[_0x4808b2(0xf7)],0x1)){const _0x3e378e=_0xd0c136[_0x252eba+0x1];_0x3e378e['point']&&_0x3e378e['inputSnapshot']&&(_0x108d23=_0x3e378e['point'],_0x3f8027=_0x3e378e[_0x4808b2(0xec)]);}_0x114184[_0x4808b2(0xfb)](_0x1890df[_0x4808b2(0xfe)],{'snapshotName':_0xddfbfb,'inputSnapshotName':_0x3f8027,'pageId':_0x328ce0,'pageUrl':_0x25a4d1,'callId':_0x5661f6[_0x4808b2(0x11c)],'point':_0x108d23});}return _0x114184;}
@@ -1 +1 @@
1
- function _0x7724(_0x550961,_0x3e02fc){_0x550961=_0x550961-0x1d8;const _0x4c4db4=_0x4c4d();let _0x772417=_0x4c4db4[_0x550961];return _0x772417;}(function(_0x227cbf,_0x1f59e3){const _0x1f1279=_0x7724,_0x1f63e2=_0x227cbf();while(!![]){try{const _0x38e4e9=-parseInt(_0x1f1279(0x1df))/0x1*(-parseInt(_0x1f1279(0x1e3))/0x2)+parseInt(_0x1f1279(0x1e7))/0x3+-parseInt(_0x1f1279(0x1d8))/0x4+-parseInt(_0x1f1279(0x1dc))/0x5*(parseInt(_0x1f1279(0x1de))/0x6)+parseInt(_0x1f1279(0x1e1))/0x7+-parseInt(_0x1f1279(0x1d9))/0x8+parseInt(_0x1f1279(0x1e4))/0x9;if(_0x38e4e9===_0x1f59e3)break;else _0x1f63e2['push'](_0x1f63e2['shift']());}catch(_0x30dcca){_0x1f63e2['push'](_0x1f63e2['shift']());}}}(_0x4c4d,0xd56be));function _0x4c4d(){const _0x37d55c=['Bearer\x20','1325562tNQifP','1523qLduaP','statusText','622664SGIvLM','/api/v1/mcp/me','2246qVQGMM','26532657bKPxTZ','nWYsk','json','1529520akYJzn','GET','6149112ZRDgmG','12161440cCeRIG','message','status','30eBCCSJ'];_0x4c4d=function(){return _0x37d55c;};return _0x4c4d();}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x5db0fa){const _0x1f9258=_0x7724,_0x3c909d={'FOXqg':function(_0x11d3a7,_0x1fa0a2,_0x41d503){return _0x11d3a7(_0x1fa0a2,_0x41d503);},'nWYsk':function(_0xf4db2e,_0x321974){return _0xf4db2e instanceof _0x321974;}},_0x4d66be=getApiBaseUrl();try{const _0x5f0e87=await _0x3c909d['FOXqg'](fetch,_0x4d66be+_0x1f9258(0x1e2),{'method':_0x1f9258(0x1e8),'headers':{'Authorization':_0x1f9258(0x1dd)+_0x5db0fa}});if(!_0x5f0e87['ok'])return{'success':![],'error':_0x5f0e87['status']+'\x20'+_0x5f0e87[_0x1f9258(0x1e0)],'status':_0x5f0e87[_0x1f9258(0x1db)]};const _0x47b243=await _0x5f0e87[_0x1f9258(0x1e6)]();return{'success':!![],'user':_0x47b243};}catch(_0x330c9b){return{'success':![],'error':_0x3c909d[_0x1f9258(0x1e5)](_0x330c9b,Error)?_0x330c9b[_0x1f9258(0x1da)]:String(_0x330c9b)};}}
1
+ function _0x583b(){const _0x360f1a=['rnCKq','3919472vpVFsj','598832UIiBPo','statusText','5343674oLFhbK','status','104778gkEiBy','17730610yWjmtb','TgQJI','694660lSvbdK','18ntfyPb','1898583tSKFaN','4HEKPPC','270ckQQPl','/api/v1/mcp/me'];_0x583b=function(){return _0x360f1a;};return _0x583b();}(function(_0x518d44,_0x307b6e){const _0x49ae86=_0x4de3,_0x53cf27=_0x518d44();while(!![]){try{const _0x2a49bd=-parseInt(_0x49ae86(0x143))/0x1+-parseInt(_0x49ae86(0x13b))/0x2+-parseInt(_0x49ae86(0x13d))/0x3*(-parseInt(_0x49ae86(0x13e))/0x4)+-parseInt(_0x49ae86(0x13f))/0x5*(parseInt(_0x49ae86(0x138))/0x6)+-parseInt(_0x49ae86(0x136))/0x7+-parseInt(_0x49ae86(0x142))/0x8*(-parseInt(_0x49ae86(0x13c))/0x9)+parseInt(_0x49ae86(0x139))/0xa;if(_0x2a49bd===_0x307b6e)break;else _0x53cf27['push'](_0x53cf27['shift']());}catch(_0x9870ea){_0x53cf27['push'](_0x53cf27['shift']());}}}(_0x583b,0xb303c));function _0x4de3(_0x38893c,_0x4d44a4){_0x38893c=_0x38893c-0x135;const _0x583b14=_0x583b();let _0x4de36a=_0x583b14[_0x38893c];return _0x4de36a;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x6f9cb9){const _0x142e9d=_0x4de3,_0x52502e={'rnCKq':function(_0x171667,_0x12a3a5,_0x1ce29f){return _0x171667(_0x12a3a5,_0x1ce29f);},'TgQJI':'GET','ZNaVH':function(_0x5e12eb,_0x1090aa){return _0x5e12eb(_0x1090aa);}},_0x134c01=getApiBaseUrl();try{const _0x160d7d=await _0x52502e[_0x142e9d(0x141)](fetch,_0x134c01+_0x142e9d(0x140),{'method':_0x52502e[_0x142e9d(0x13a)],'headers':{'Authorization':'Bearer\x20'+_0x6f9cb9}});if(!_0x160d7d['ok'])return{'success':![],'error':_0x160d7d[_0x142e9d(0x137)]+'\x20'+_0x160d7d[_0x142e9d(0x135)],'status':_0x160d7d['status']};const _0x41135b=await _0x160d7d['json']();return{'success':!![],'user':_0x41135b};}catch(_0x319115){return{'success':![],'error':_0x319115 instanceof Error?_0x319115['message']:_0x52502e['ZNaVH'](String,_0x319115)};}}
@@ -1 +1 @@
1
- (function(_0x34bb6c,_0x386bdf){const _0x5e7332=_0x1e08,_0x35004a=_0x34bb6c();while(!![]){try{const _0x1cd233=parseInt(_0x5e7332(0x194))/0x1+parseInt(_0x5e7332(0x1a0))/0x2+-parseInt(_0x5e7332(0x191))/0x3+parseInt(_0x5e7332(0x19a))/0x4+-parseInt(_0x5e7332(0x1a3))/0x5+-parseInt(_0x5e7332(0x198))/0x6+-parseInt(_0x5e7332(0x19c))/0x7;if(_0x1cd233===_0x386bdf)break;else _0x35004a['push'](_0x35004a['shift']());}catch(_0x1dc812){_0x35004a['push'](_0x35004a['shift']());}}}(_0x46e2,0xb0232));import{readFileSync}from'fs';function _0x46e2(){const _0x41b31c=['veYBJ','142972uUEAUj','map','package.json','tcDRe','1978806TMzSTx','split','5723912XIGevy','gDMgC','4987500cFBRGT','version','lSTMC','EFwUW','1562794GThhkF','QbjdX','\x20version','838150sJBztY','iDnLx','1271874eYHySL','mmRWa'];_0x46e2=function(){return _0x41b31c;};return _0x46e2();}import{existsSync}from'fs';import{execSync}from'child_process';function _0x1e08(_0x970957,_0x33b427){_0x970957=_0x970957-0x191;const _0x46e28c=_0x46e2();let _0x1e0863=_0x46e28c[_0x970957];return _0x1e0863;}import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x5333d7=_0x1e08,_0xa659b8={'veYBJ':function(_0x25fdf9,_0x1276ad,_0x1246e8,_0x17b76d,_0x53329d){return _0x25fdf9(_0x1276ad,_0x1246e8,_0x17b76d,_0x53329d);},'FfAsY':'package.json','QbjdX':function(_0x256a31,_0x16cf2e){return _0x256a31(_0x16cf2e);},'EFwUW':function(_0x799c71,_0x4d956e,_0x1be2b4){return _0x799c71(_0x4d956e,_0x1be2b4);},'uFBTM':'utf-8','wBTlH':'unknown'},_0x348f89=[_0xa659b8[_0x5333d7(0x193)](join,__dirname,'..','..',_0xa659b8['FfAsY']),join(__dirname,'..','..','..',_0x5333d7(0x196))];for(const _0x585d86 of _0x348f89){if(_0xa659b8[_0x5333d7(0x1a1)](existsSync,_0x585d86))try{const _0x14da49=JSON['parse'](_0xa659b8[_0x5333d7(0x19f)](readFileSync,_0x585d86,_0xa659b8['uFBTM']));return _0x14da49[_0x5333d7(0x19d)]||_0xa659b8['wBTlH'];}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x26b5cc=_0x1e08,_0x41ef8e={'iDnLx':function(_0x15541e,_0x371626,_0xa1f8e){return _0x15541e(_0x371626,_0xa1f8e);},'lSTMC':'pipe','gDMgC':function(_0x47c533,_0x3bfd9b){return _0x47c533(_0x3bfd9b);}};try{const _0x3d8583=_0x41ef8e[_0x26b5cc(0x1a4)](execSync,'npm\x20view\x20'+PACKAGE_NAME+_0x26b5cc(0x1a2),{'encoding':'utf-8','timeout':0x2710,'stdio':[_0x41ef8e['lSTMC'],_0x41ef8e[_0x26b5cc(0x19e)],_0x41ef8e['lSTMC']]});return{'version':_0x3d8583['trim']()};}catch(_0x2163c0){const _0x3aabdc=_0x2163c0 instanceof Error?_0x2163c0['message']:_0x41ef8e[_0x26b5cc(0x19b)](String,_0x2163c0);return{'error':_0x3aabdc};}}export function compareVersions(_0x4d82b8,_0x453fbd){const _0x4df7c5=_0x1e08,_0x15e2c0={'mmRWa':function(_0x42528f,_0x46e38b){return _0x42528f<_0x46e38b;},'tcDRe':function(_0x435d52,_0x4ba36c){return _0x435d52>_0x4ba36c;},'dgpfb':function(_0x1960d8,_0x2a3871){return _0x1960d8<_0x2a3871;}},_0x797d10=_0x4d82b8[_0x4df7c5(0x199)]('.')[_0x4df7c5(0x195)](Number),_0x4efa69=_0x453fbd['split']('.')[_0x4df7c5(0x195)](Number);for(let _0x5d02df=0x0;_0x15e2c0[_0x4df7c5(0x192)](_0x5d02df,0x3);_0x5d02df++){const _0x53e426=_0x797d10[_0x5d02df]||0x0,_0x2e30fa=_0x4efa69[_0x5d02df]||0x0;if(_0x15e2c0[_0x4df7c5(0x197)](_0x2e30fa,_0x53e426))return 0x1;if(_0x15e2c0['dgpfb'](_0x2e30fa,_0x53e426))return-0x1;}return 0x0;}
1
+ (function(_0x4ecc72,_0x305a0e){const _0xe9a0c=_0x6ada,_0xc7e7e9=_0x4ecc72();while(!![]){try{const _0x954dda=-parseInt(_0xe9a0c(0x7e))/0x1*(parseInt(_0xe9a0c(0x81))/0x2)+parseInt(_0xe9a0c(0x8e))/0x3+parseInt(_0xe9a0c(0x80))/0x4+parseInt(_0xe9a0c(0x8b))/0x5+parseInt(_0xe9a0c(0x8a))/0x6*(parseInt(_0xe9a0c(0x84))/0x7)+parseInt(_0xe9a0c(0x8f))/0x8+-parseInt(_0xe9a0c(0x8d))/0x9;if(_0x954dda===_0x305a0e)break;else _0xc7e7e9['push'](_0xc7e7e9['shift']());}catch(_0x59fd25){_0xc7e7e9['push'](_0xc7e7e9['shift']());}}}(_0x51be,0x9dc81));function _0x6ada(_0x1cbd88,_0x19fa7f){_0x1cbd88=_0x1cbd88-0x7e;const _0x51bebd=_0x51be();let _0x6ada42=_0x51bebd[_0x1cbd88];return _0x6ada42;}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='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x44cd18=_0x6ada,_0x3d02ec={'iKnNh':_0x44cd18(0x91),'oajvc':function(_0x1fb423,_0x292eff,_0x413ca9,_0x5314be,_0x209eb6,_0x1bbaa9){return _0x1fb423(_0x292eff,_0x413ca9,_0x5314be,_0x209eb6,_0x1bbaa9);},'hXFxw':function(_0x4e6b30,_0xf7fc43,_0x3ee1b2){return _0x4e6b30(_0xf7fc43,_0x3ee1b2);},'HCvGz':'unknown'},_0x287c3b=[join(__dirname,'..','..',_0x3d02ec[_0x44cd18(0x89)]),_0x3d02ec[_0x44cd18(0x7f)](join,__dirname,'..','..','..',_0x3d02ec['iKnNh'])];for(const _0x13c0cd of _0x287c3b){if(existsSync(_0x13c0cd))try{const _0x3c93e2=JSON['parse'](_0x3d02ec['hXFxw'](readFileSync,_0x13c0cd,'utf-8'));return _0x3c93e2['version']||_0x3d02ec[_0x44cd18(0x82)];}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x53161b=_0x6ada,_0x5441b8={'CZnyE':_0x53161b(0x8c),'UXMHd':_0x53161b(0x86),'MUnti':function(_0x179807,_0x74f9e6){return _0x179807(_0x74f9e6);}};try{const _0x4af468=execSync('npm\x20view\x20'+PACKAGE_NAME+_0x53161b(0x83),{'encoding':_0x5441b8['CZnyE'],'timeout':0x2710,'stdio':[_0x5441b8[_0x53161b(0x90)],'pipe',_0x53161b(0x86)]});return{'version':_0x4af468[_0x53161b(0x85)]()};}catch(_0x5db9d2){const _0x25d752=_0x5db9d2 instanceof Error?_0x5db9d2['message']:_0x5441b8['MUnti'](String,_0x5db9d2);return{'error':_0x25d752};}}function _0x51be(){const _0x59a553=['31fNoeFC','oajvc','4366148ECeHGy','28ySxJPU','HCvGz','\x20version','289387XuSxNV','trim','pipe','map','split','iKnNh','174eIAnNy','1449945mpJeIb','utf-8','27541620IFZOVn','2527509qDVkSm','2271752RslqYv','UXMHd','package.json'];_0x51be=function(){return _0x59a553;};return _0x51be();}export function compareVersions(_0x8b1d2e,_0x316c72){const _0x31ee98=_0x6ada,_0x3a032f={'Nhzsy':function(_0x17f641,_0x4d8254){return _0x17f641<_0x4d8254;}},_0x7cd293=_0x8b1d2e['split']('.')['map'](Number),_0x2dd37b=_0x316c72[_0x31ee98(0x88)]('.')[_0x31ee98(0x87)](Number);for(let _0x30f1ac=0x0;_0x3a032f['Nhzsy'](_0x30f1ac,0x3);_0x30f1ac++){const _0x426aff=_0x7cd293[_0x30f1ac]||0x0,_0x290e13=_0x2dd37b[_0x30f1ac]||0x0;if(_0x290e13>_0x426aff)return 0x1;if(_0x290e13<_0x426aff)return-0x1;}return 0x0;}