@treasuredata/tdx 0.4.2 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/engage-api-client.d.ts +57 -0
  6. package/dist/client/engage-api-client.d.ts.map +1 -0
  7. package/dist/client/engage-api-client.js +1 -0
  8. package/dist/client/engage-api-client.js.map +1 -0
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.d.ts.map +1 -1
  11. package/dist/client/llm-api-client.js +1 -1
  12. package/dist/client/llm-api-client.js.map +1 -1
  13. package/dist/client/rate-limiter.js +1 -1
  14. package/dist/client/td-api-client.js +1 -1
  15. package/dist/client/trino-api-client.js +1 -1
  16. package/dist/client/workflow-client.js +1 -1
  17. package/dist/commands/activations.js +1 -1
  18. package/dist/commands/api-command.js +1 -1
  19. package/dist/commands/auth-command.js +1 -1
  20. package/dist/commands/chat-command.js +1 -1
  21. package/dist/commands/claude-command.js +1 -1
  22. package/dist/commands/command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.d.ts +69 -0
  27. package/dist/commands/engage-command.d.ts.map +1 -0
  28. package/dist/commands/engage-command.js +1 -0
  29. package/dist/commands/engage-command.js.map +1 -0
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pwd-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/credential-cache.js +1 -1
  50. package/dist/core/global-context.js +1 -1
  51. package/dist/core/keychain.js +1 -1
  52. package/dist/core/profile.js +1 -1
  53. package/dist/core/project-config.js +1 -1
  54. package/dist/core/session.js +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/proxy/anthropic-adapter.js +1 -1
  57. package/dist/proxy/server.js +1 -1
  58. package/dist/proxy/session-cache.js +1 -1
  59. package/dist/sdk/api.js +1 -1
  60. package/dist/sdk/engage.d.ts +152 -0
  61. package/dist/sdk/engage.d.ts.map +1 -0
  62. package/dist/sdk/engage.js +1 -0
  63. package/dist/sdk/engage.js.map +1 -0
  64. package/dist/sdk/errors.js +1 -1
  65. package/dist/sdk/index.d.ts +7 -0
  66. package/dist/sdk/index.d.ts.map +1 -1
  67. package/dist/sdk/index.js +1 -1
  68. package/dist/sdk/index.js.map +1 -1
  69. package/dist/sdk/job.js +1 -1
  70. package/dist/sdk/llm.js +1 -1
  71. package/dist/sdk/query.js +1 -1
  72. package/dist/sdk/segment.js +1 -1
  73. package/dist/sdk/workflow.js +1 -1
  74. package/dist/types/endpoints.d.ts +4 -0
  75. package/dist/types/endpoints.d.ts.map +1 -1
  76. package/dist/types/endpoints.js +1 -1
  77. package/dist/types/endpoints.js.map +1 -1
  78. package/dist/types/engage.d.ts +340 -0
  79. package/dist/types/engage.d.ts.map +1 -0
  80. package/dist/types/engage.js +1 -0
  81. package/dist/types/engage.js.map +1 -0
  82. package/dist/types/index.d.ts +2 -1
  83. package/dist/types/index.d.ts.map +1 -1
  84. package/dist/types/index.js +1 -1
  85. package/dist/utils/agent-ref-parser.js +1 -1
  86. package/dist/utils/chat-cache.js +1 -1
  87. package/dist/utils/colors.js +1 -1
  88. package/dist/utils/command-output.js +1 -1
  89. package/dist/utils/constants.js +1 -1
  90. package/dist/utils/file-permissions.js +1 -1
  91. package/dist/utils/format-detector.js +1 -1
  92. package/dist/utils/formatters.js +1 -1
  93. package/dist/utils/json-loader.js +1 -1
  94. package/dist/utils/llm-backup-utils.js +1 -1
  95. package/dist/utils/model-aliases.js +1 -1
  96. package/dist/utils/option-validation.js +1 -1
  97. package/dist/utils/port.js +1 -1
  98. package/dist/utils/process.js +1 -1
  99. package/dist/utils/prompt.js +1 -1
  100. package/dist/utils/segment-path-parser.js +1 -1
  101. package/dist/utils/segment-ref-parser.js +1 -1
  102. package/dist/utils/spinner.js +1 -1
  103. package/dist/utils/sql-parser.js +1 -1
  104. package/dist/utils/sse-parser.js +1 -1
  105. package/dist/utils/string-utils.js +1 -1
  106. package/dist/utils/table-ref-parser.js +1 -1
  107. package/dist/utils/tdx-logger.js +1 -1
  108. package/dist/utils/tree-formatter.js +1 -1
  109. package/dist/utils/version-check.js +1 -1
  110. package/dist/utils/workflow-utils.js +1 -1
  111. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x14a7c7,_0x1b2657){const _0x2ebdff=a70_0x97ac,_0x3591e7=_0x14a7c7();while(!![]){try{const _0x166cd1=parseInt(_0x2ebdff(0x17d))/0x1+parseInt(_0x2ebdff(0x16c))/0x2+-parseInt(_0x2ebdff(0x194))/0x3+parseInt(_0x2ebdff(0x193))/0x4*(-parseInt(_0x2ebdff(0x195))/0x5)+-parseInt(_0x2ebdff(0x18f))/0x6+-parseInt(_0x2ebdff(0x184))/0x7+parseInt(_0x2ebdff(0x187))/0x8;if(_0x166cd1===_0x1b2657)break;else _0x3591e7['push'](_0x3591e7['shift']());}catch(_0xcd5d55){_0x3591e7['push'](_0x3591e7['shift']());}}}(a70_0x6adf,0xd732e));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x26fa4a=a70_0x97ac;return process[_0x26fa4a(0x17f)][_0x26fa4a(0x175)]||Infinity;}export function formatAsTable(_0xd0730,_0x499e7e=DEFAULT_MAX_DISPLAY_ROWS,_0x157311=![],_0x7a717e={}){const _0x4ee681=a70_0x97ac;if(_0xd0730[_0x4ee681(0x18a)][_0x4ee681(0x168)]===0x0)return _0x4ee681(0x196);const _0x2f58fd=_0xd0730['columns'][_0x4ee681(0x16a)](_0x86a962=>_0x86a962[_0x4ee681(0x16b)]),_0x496975=_0xd0730[_0x4ee681(0x175)]['map'](_0x1be525=>simplifyType(_0x1be525[_0x4ee681(0x170)])),_0x1a8855=_0xd0730[_0x4ee681(0x18a)]['slice'](0x0,_0x499e7e),_0x1d9057=_0xd0730[_0x4ee681(0x18a)][_0x4ee681(0x168)],_0x12d346=_0x1d9057>_0x499e7e,_0x23ff2c=[],_0x2e99c7=getTerminalWidth(),_0x5245b2=_0x2e99c7!==Infinity,_0x349aec=0x32;let _0x237c1e=_0x2f58fd[_0x4ee681(0x16a)]((_0x16ab42,_0x17145c)=>{const _0x442b82=_0x4ee681,_0xd144f1=stringWidth(_0x496975[_0x17145c]),_0x4e7f2c=Math['max'](..._0x1a8855[_0x442b82(0x16a)](_0x57bec9=>{const _0x255c0c=_0x57bec9[_0x16ab42];return stringWidth(formatValue(_0x255c0c));})),_0x4e95eb=Math['max'](stringWidth(_0x16ab42),_0xd144f1,_0x4e7f2c);return _0x157311?_0x4e95eb:Math[_0x442b82(0x166)](_0x4e95eb,_0x349aec);});if(_0x5245b2&&!_0x157311&&_0x2f58fd[_0x4ee681(0x168)]>0x0){const _0x58d682=_0x4f53b9=>{let _0x323fa3=0x1;for(const _0x185377 of _0x4f53b9){_0x323fa3+=_0x185377+0x3;}return _0x323fa3+0x1;};let _0x417de6=_0x58d682(_0x237c1e);if(_0x417de6>_0x2e99c7){const _0x340aec=0x3;for(let _0x4f690f=_0x237c1e[_0x4ee681(0x168)]-0x1;_0x4f690f>=0x0;_0x4f690f--){_0x417de6=_0x58d682(_0x237c1e);if(_0x417de6<=_0x2e99c7)break;const _0x1f2f41=_0x237c1e[_0x4f690f],_0x2233ff=_0x417de6-_0x2e99c7,_0x5b92d6=_0x1f2f41-_0x340aec,_0x40ba83=Math[_0x4ee681(0x166)](_0x2233ff,_0x5b92d6);_0x40ba83>0x0&&(_0x237c1e[_0x4f690f]=_0x1f2f41-_0x40ba83);}}}const _0x2970f2=_0x2f58fd,_0x281415=_0x496975,_0x35bd0c=_0x237c1e,_0x5831b7=_0x237c1e;_0x23ff2c[_0x4ee681(0x192)](colorBorder('┌'+_0x5831b7['map'](_0x2bc3b0=>'─'[_0x4ee681(0x165)](_0x2bc3b0+0x2))['join']('┬')+'┐',_0x7a717e));const _0x20ca57=_0x2970f2[_0x4ee681(0x16a)]((_0x3b4fec,_0x2f22cc)=>centerAlign(_0x3b4fec,_0x35bd0c[_0x2f22cc]));_0x23ff2c[_0x4ee681(0x192)](colorBorder('│',_0x7a717e)+'\x20'+_0x20ca57[_0x4ee681(0x173)]('\x20'+colorBorder('│',_0x7a717e)+'\x20')+'\x20'+colorBorder('│',_0x7a717e));const _0x1f2a0e=_0x281415[_0x4ee681(0x16a)]((_0x2a1d3e,_0x31ba61)=>colorType(centerAlign(_0x2a1d3e,_0x35bd0c[_0x31ba61]),_0x7a717e));_0x23ff2c[_0x4ee681(0x192)](colorBorder('│',_0x7a717e)+'\x20'+_0x1f2a0e[_0x4ee681(0x173)]('\x20'+colorBorder('│',_0x7a717e)+'\x20')+'\x20'+colorBorder('│',_0x7a717e)),_0x23ff2c[_0x4ee681(0x192)](colorBorder('├'+_0x5831b7[_0x4ee681(0x16a)](_0x4fc4f9=>'─'['repeat'](_0x4fc4f9+0x2))[_0x4ee681(0x173)]('┼')+'┤',_0x7a717e));const _0x477f5f=(_0x337961,_0x490393)=>{const _0x4279d6=_0x4ee681,_0x2e3159=stringWidth(_0x337961);if(_0x2e3159<=_0x490393)return _0x337961;let _0x46b2f1=_0x337961;while(stringWidth(_0x46b2f1+'…')>_0x490393&&_0x46b2f1['length']>0x0){_0x46b2f1=_0x46b2f1[_0x4279d6(0x16f)](0x0,-0x1);}return _0x46b2f1+'…';};_0x1a8855['forEach'](_0x2f478b=>{const _0x275a7d=_0x4ee681,_0x1acb4b=_0x2f58fd['map']((_0x25c044,_0x7d792c)=>{const _0x5b9985=a70_0x97ac,_0x2b8e03=_0x2f478b[_0x25c044],_0x4de9e7=formatValue(_0x2b8e03),_0x4f607c=_0x35bd0c[_0x7d792c],_0x8d4e4d=_0x477f5f(_0x4de9e7,_0x4f607c),_0x4912fd=typeof _0x2b8e03===_0x5b9985(0x16d)||typeof _0x2b8e03===_0x5b9985(0x17c)&&/^-?\d+$/[_0x5b9985(0x169)](_0x2b8e03);return _0x4912fd?padStart(_0x8d4e4d,_0x4f607c):padEnd(_0x8d4e4d,_0x4f607c);});_0x23ff2c[_0x275a7d(0x192)](colorBorder('│',_0x7a717e)+'\x20'+_0x1acb4b[_0x275a7d(0x173)]('\x20'+colorBorder('│',_0x7a717e)+'\x20')+'\x20'+colorBorder('│',_0x7a717e));});const _0x593bf1=_0x5831b7[_0x4ee681(0x177)]((_0x21149e,_0x4a9f6c)=>_0x21149e+_0x4a9f6c+0x3,-0x1);_0x23ff2c[_0x4ee681(0x192)](colorBorder('├'+_0x5831b7[_0x4ee681(0x16a)](_0x2107f6=>'─'[_0x4ee681(0x165)](_0x2107f6+0x2))[_0x4ee681(0x173)]('┴')+'┤',_0x7a717e));let _0x105e4f;_0x12d346?_0x105e4f=_0x1d9057+_0x4ee681(0x174)+_0x499e7e+_0x4ee681(0x17b):_0x105e4f=_0x1d9057+'\x20row'+(_0x1d9057===0x1?'':'s');const _0x52caad=_0x105e4f[_0x4ee681(0x182)](_0x593bf1-0x2);return _0x23ff2c['push'](colorBorder('│',_0x7a717e)+'\x20'+_0x52caad+'\x20'+colorBorder('│',_0x7a717e)),_0x23ff2c['push'](colorBorder('└'+'─'[_0x4ee681(0x165)](_0x593bf1)+'┘',_0x7a717e)),_0x23ff2c[_0x4ee681(0x173)]('\x0a');}function simplifyType(_0x8620bc){const _0x313752=a70_0x97ac,_0x4d046={'varchar':_0x313752(0x17c),'bigint':_0x313752(0x189),'integer':_0x313752(0x179),'double':_0x313752(0x18b),'boolean':_0x313752(0x180),'date':_0x313752(0x18e),'timestamp':_0x313752(0x163),'array':'array','map':'map','row':_0x313752(0x186)},_0x392d3c=_0x8620bc[_0x313752(0x164)]();for(const [_0x258fdc,_0xa2fc52]of Object[_0x313752(0x167)](_0x4d046)){if(_0x392d3c[_0x313752(0x178)](_0x258fdc))return _0xa2fc52;}return _0x8620bc[_0x313752(0x168)]>0xa?_0x8620bc[_0x313752(0x190)](0x0,0xa):_0x8620bc;}export function formatAsJSON(_0x249bf0,_0x6e40c9={}){const _0x427a92=a70_0x97ac;if(_0x249bf0['data'][_0x427a92(0x168)]===0x0)return'[]';if(shouldUseColor(_0x6e40c9))return colorizeJSON(_0x249bf0[_0x427a92(0x18a)],_0x6e40c9);const _0x172f34=_0x249bf0[_0x427a92(0x18a)][_0x427a92(0x16a)](_0x29a477=>'\x20\x20'+JSON[_0x427a92(0x183)](_0x29a477));return'[\x0a'+_0x172f34[_0x427a92(0x173)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x695683,_0x3b3c7d={}){const _0x4cde82=a70_0x97ac;if(_0x695683['data'][_0x4cde82(0x168)]===0x0)return'';if(shouldUseColor(_0x3b3c7d))return _0x695683[_0x4cde82(0x18a)][_0x4cde82(0x16a)](_0x2bca9c=>colorizeJSONCompact(_0x2bca9c,_0x3b3c7d))[_0x4cde82(0x173)]('\x0a');return _0x695683[_0x4cde82(0x18a)][_0x4cde82(0x16a)](_0x53fc3e=>JSON[_0x4cde82(0x183)](_0x53fc3e))[_0x4cde82(0x173)]('\x0a');}function a70_0x97ac(_0x18c01b,_0x29f4c2){const _0x6adfe3=a70_0x6adf();return a70_0x97ac=function(_0x97ac42,_0x18fdac){_0x97ac42=_0x97ac42-0x163;let _0x28796f=_0x6adfe3[_0x97ac42];return _0x28796f;},a70_0x97ac(_0x18c01b,_0x29f4c2);}export function formatAsTSV(_0xde835f){const _0x995bfe=a70_0x97ac;if(_0xde835f[_0x995bfe(0x18a)]['length']===0x0)return'';const _0x5a40a6=[],_0x452b4b=_0xde835f[_0x995bfe(0x175)][_0x995bfe(0x16a)](_0x1aad38=>_0x1aad38[_0x995bfe(0x16b)]);return _0x5a40a6[_0x995bfe(0x192)](_0x452b4b['join']('\x09')),_0xde835f[_0x995bfe(0x18a)]['forEach'](_0x5a0d9f=>{const _0x18e9df=_0x995bfe,_0x344336=_0x452b4b[_0x18e9df(0x16a)](_0x2638ba=>{const _0x115f2b=_0x5a0d9f[_0x2638ba];return formatValueForTSV(_0x115f2b);});_0x5a40a6[_0x18e9df(0x192)](_0x344336[_0x18e9df(0x173)]('\x09'));}),_0x5a40a6[_0x995bfe(0x173)]('\x0a');}function formatValue(_0x1e0cdf){const _0xe04b45=a70_0x97ac;if(_0x1e0cdf===null||_0x1e0cdf===undefined)return'';if(typeof _0x1e0cdf===_0xe04b45(0x17c)){const _0x3c3836=_0x1e0cdf[_0xe04b45(0x16e)](/\n/g,'\x5cn')[_0xe04b45(0x16e)](/\r/g,'\x5cr')[_0xe04b45(0x16e)](/\t/g,'\x5ct');return _0x3c3836;}if(typeof _0x1e0cdf===_0xe04b45(0x16d))return String(_0x1e0cdf);if(typeof _0x1e0cdf===_0xe04b45(0x18d))return _0x1e0cdf?_0xe04b45(0x188):'false';if(_0x1e0cdf instanceof Date)return _0x1e0cdf['toISOString']();if(typeof _0x1e0cdf===_0xe04b45(0x171))return JSON[_0xe04b45(0x183)](_0x1e0cdf);return String(_0x1e0cdf);}function formatValueForTSV(_0x5e779c){const _0x596a15=a70_0x97ac;if(_0x5e779c===null||_0x5e779c===undefined)return'';if(typeof _0x5e779c===_0x596a15(0x17c))return _0x5e779c['replace'](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x5e779c==='number'||typeof _0x5e779c==='boolean')return String(_0x5e779c);if(_0x5e779c instanceof Date)return _0x5e779c[_0x596a15(0x176)]();if(typeof _0x5e779c===_0x596a15(0x171))return JSON['stringify'](_0x5e779c);return String(_0x5e779c);}export function formatQueryResult(_0x43ac51,_0x505f64){const _0x45b109=a70_0x97ac;switch(_0x505f64){case _0x45b109(0x185):return formatAsTable(_0x43ac51);case _0x45b109(0x17e):return formatAsJSON(_0x43ac51);case'jsonl':return formatAsJSONL(_0x43ac51);case'tsv':return formatAsTSV(_0x43ac51);default:return formatAsJSON(_0x43ac51);}}export function formatBytes(_0x1b00f3){const _0x2b55cc=a70_0x97ac;if(_0x1b00f3===0x0)return _0x2b55cc(0x18c);const _0x2e8699=['B','KB','MB','GB','TB'],_0x4b56d1=0x400,_0x224388=Math[_0x2b55cc(0x172)](Math[_0x2b55cc(0x17a)](_0x1b00f3)/Math[_0x2b55cc(0x17a)](_0x4b56d1)),_0x531b50=_0x1b00f3/Math[_0x2b55cc(0x191)](_0x4b56d1,_0x224388),_0x173527=_0x531b50>=0xa?0x1:0x2;return _0x531b50[_0x2b55cc(0x181)](_0x173527)+'\x20'+_0x2e8699[_0x224388];}function a70_0x6adf(){const _0x57ce95=['2941773sogAHd','6830eQmUjU','No\x20rows\x20returned','timestamp','toLowerCase','repeat','min','entries','length','test','map','name','2800830AVOcEE','number','replace','slice','type','object','floor','join','\x20rows\x20(','columns','toISOString','reduce','startsWith','int','log','\x20shown)','string','1139718iHSjoY','json','stdout','bool','toFixed','padEnd','stringify','1783950CkAshR','table','row','9656024aFktZQ','true','long','data','double','0\x20B','boolean','date','2585358YtKYQU','substring','pow','push','3512MVEfOT'];a70_0x6adf=function(){return _0x57ce95;};return a70_0x6adf();}export function formatRows(_0x1c1241){const _0x38a2b8=a70_0x97ac;if(_0x1c1241==null)return'-';if(_0x1c1241===0x0)return'0';if(_0x1c1241<0x3e8)return _0x1c1241['toString']();const _0x388a4a=['','K','M','B','T'],_0x41ceb8=0x3e8,_0x4f5d87=Math['floor'](Math[_0x38a2b8(0x17a)](_0x1c1241)/Math[_0x38a2b8(0x17a)](_0x41ceb8)),_0xaedd5=_0x1c1241/Math[_0x38a2b8(0x191)](_0x41ceb8,_0x4f5d87),_0x33c1ad=_0xaedd5>=0xa?0x1:0x2;return''+_0xaedd5['toFixed'](_0x33c1ad)+_0x388a4a[_0x4f5d87];}
1
+ (function(_0x26df9c,_0x26935){const _0xaccf26=a74_0x53a4,_0x4100f6=_0x26df9c();while(!![]){try{const _0xf7fd8a=-parseInt(_0xaccf26(0x16b))/0x1+-parseInt(_0xaccf26(0x168))/0x2+-parseInt(_0xaccf26(0x15b))/0x3+-parseInt(_0xaccf26(0x140))/0x4*(-parseInt(_0xaccf26(0x151))/0x5)+-parseInt(_0xaccf26(0x157))/0x6+parseInt(_0xaccf26(0x16a))/0x7+parseInt(_0xaccf26(0x158))/0x8;if(_0xf7fd8a===_0x26935)break;else _0x4100f6['push'](_0x4100f6['shift']());}catch(_0x2d9b21){_0x4100f6['push'](_0x4100f6['shift']());}}}(a74_0x5e89,0xaa4ec));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x273134=a74_0x53a4;return process[_0x273134(0x147)][_0x273134(0x145)]||Infinity;}export function formatAsTable(_0x3973d6,_0x3e128f=DEFAULT_MAX_DISPLAY_ROWS,_0x12325b=![],_0x101414={}){const _0x2220f1=a74_0x53a4;if(_0x3973d6[_0x2220f1(0x14a)][_0x2220f1(0x14f)]===0x0)return _0x2220f1(0x166);const _0x4403f1=_0x3973d6[_0x2220f1(0x145)][_0x2220f1(0x15c)](_0x384b06=>_0x384b06['name']),_0x1524d8=_0x3973d6[_0x2220f1(0x145)][_0x2220f1(0x15c)](_0x3e4ad6=>simplifyType(_0x3e4ad6[_0x2220f1(0x13d)])),_0x40a725=_0x3973d6['data'][_0x2220f1(0x149)](0x0,_0x3e128f),_0x23a30=_0x3973d6[_0x2220f1(0x14a)][_0x2220f1(0x14f)],_0x3190c9=_0x23a30>_0x3e128f,_0x122c17=[],_0xe09033=getTerminalWidth(),_0x2e1fe0=_0xe09033!==Infinity,_0x583440=0x32;let _0x1feda5=_0x4403f1['map']((_0x28a7eb,_0x5071ed)=>{const _0x49ba89=_0x2220f1,_0xda931f=stringWidth(_0x1524d8[_0x5071ed]),_0x2d6916=Math[_0x49ba89(0x162)](..._0x40a725[_0x49ba89(0x15c)](_0x19b517=>{const _0x5aba3f=_0x19b517[_0x28a7eb];return stringWidth(formatValue(_0x5aba3f));})),_0xa456d3=Math['max'](stringWidth(_0x28a7eb),_0xda931f,_0x2d6916);return _0x12325b?_0xa456d3:Math[_0x49ba89(0x13f)](_0xa456d3,_0x583440);});if(_0x2e1fe0&&!_0x12325b&&_0x4403f1['length']>0x0){const _0x1293dc=_0x395c9e=>{let _0x167b33=0x1;for(const _0x1f23c7 of _0x395c9e){_0x167b33+=_0x1f23c7+0x3;}return _0x167b33+0x1;};let _0x52202f=_0x1293dc(_0x1feda5);if(_0x52202f>_0xe09033){const _0x19aaa2=0x3;for(let _0x32e1ce=_0x1feda5[_0x2220f1(0x14f)]-0x1;_0x32e1ce>=0x0;_0x32e1ce--){_0x52202f=_0x1293dc(_0x1feda5);if(_0x52202f<=_0xe09033)break;const _0x1a4071=_0x1feda5[_0x32e1ce],_0x113d17=_0x52202f-_0xe09033,_0x509959=_0x1a4071-_0x19aaa2,_0x250d9f=Math[_0x2220f1(0x13f)](_0x113d17,_0x509959);_0x250d9f>0x0&&(_0x1feda5[_0x32e1ce]=_0x1a4071-_0x250d9f);}}}const _0x400f05=_0x4403f1,_0x2ea573=_0x1524d8,_0x547088=_0x1feda5,_0x30f8af=_0x1feda5;_0x122c17[_0x2220f1(0x16d)](colorBorder('┌'+_0x30f8af[_0x2220f1(0x15c)](_0x2c4bef=>'─'[_0x2220f1(0x14e)](_0x2c4bef+0x2))['join']('┬')+'┐',_0x101414));const _0x5f4be0=_0x400f05[_0x2220f1(0x15c)]((_0x31b144,_0x29a49c)=>centerAlign(_0x31b144,_0x547088[_0x29a49c]));_0x122c17['push'](colorBorder('│',_0x101414)+'\x20'+_0x5f4be0[_0x2220f1(0x15e)]('\x20'+colorBorder('│',_0x101414)+'\x20')+'\x20'+colorBorder('│',_0x101414));const _0x21f23a=_0x2ea573[_0x2220f1(0x15c)]((_0x4a7a91,_0x3992b4)=>colorType(centerAlign(_0x4a7a91,_0x547088[_0x3992b4]),_0x101414));_0x122c17['push'](colorBorder('│',_0x101414)+'\x20'+_0x21f23a[_0x2220f1(0x15e)]('\x20'+colorBorder('│',_0x101414)+'\x20')+'\x20'+colorBorder('│',_0x101414)),_0x122c17[_0x2220f1(0x16d)](colorBorder('├'+_0x30f8af['map'](_0x916656=>'─'[_0x2220f1(0x14e)](_0x916656+0x2))[_0x2220f1(0x15e)]('┼')+'┤',_0x101414));const _0x2d4e3d=(_0x3b6450,_0x3ba41c)=>{const _0x308e28=_0x2220f1,_0x498da1=stringWidth(_0x3b6450);if(_0x498da1<=_0x3ba41c)return _0x3b6450;let _0x1b5c63=_0x3b6450;while(stringWidth(_0x1b5c63+'…')>_0x3ba41c&&_0x1b5c63[_0x308e28(0x14f)]>0x0){_0x1b5c63=_0x1b5c63[_0x308e28(0x149)](0x0,-0x1);}return _0x1b5c63+'…';};_0x40a725[_0x2220f1(0x15d)](_0x5a78b2=>{const _0xcfc2c4=_0x2220f1,_0x4abf24=_0x4403f1[_0xcfc2c4(0x15c)]((_0x48e62c,_0x1461b7)=>{const _0x4047bc=_0xcfc2c4,_0x40a1de=_0x5a78b2[_0x48e62c],_0x1d5fc4=formatValue(_0x40a1de),_0x5199ad=_0x547088[_0x1461b7],_0x37ccce=_0x2d4e3d(_0x1d5fc4,_0x5199ad),_0x5d5933=typeof _0x40a1de===_0x4047bc(0x14c)||typeof _0x40a1de===_0x4047bc(0x153)&&/^-?\d+$/[_0x4047bc(0x161)](_0x40a1de);return _0x5d5933?padStart(_0x37ccce,_0x5199ad):padEnd(_0x37ccce,_0x5199ad);});_0x122c17[_0xcfc2c4(0x16d)](colorBorder('│',_0x101414)+'\x20'+_0x4abf24[_0xcfc2c4(0x15e)]('\x20'+colorBorder('│',_0x101414)+'\x20')+'\x20'+colorBorder('│',_0x101414));});const _0x5ef954=_0x30f8af[_0x2220f1(0x150)]((_0x15df43,_0x5f4254)=>_0x15df43+_0x5f4254+0x3,-0x1);_0x122c17[_0x2220f1(0x16d)](colorBorder('├'+_0x30f8af[_0x2220f1(0x15c)](_0x2388ef=>'─'[_0x2220f1(0x14e)](_0x2388ef+0x2))['join']('┴')+'┤',_0x101414));let _0x528ad5;_0x3190c9?_0x528ad5=_0x23a30+_0x2220f1(0x163)+_0x3e128f+_0x2220f1(0x14b):_0x528ad5=_0x23a30+_0x2220f1(0x15a)+(_0x23a30===0x1?'':'s');const _0x9db4e6=_0x528ad5[_0x2220f1(0x141)](_0x5ef954-0x2);return _0x122c17[_0x2220f1(0x16d)](colorBorder('│',_0x101414)+'\x20'+_0x9db4e6+'\x20'+colorBorder('│',_0x101414)),_0x122c17[_0x2220f1(0x16d)](colorBorder('└'+'─'[_0x2220f1(0x14e)](_0x5ef954)+'┘',_0x101414)),_0x122c17[_0x2220f1(0x15e)]('\x0a');}function a74_0x53a4(_0x525b57,_0x3952fd){const _0x5e8930=a74_0x5e89();return a74_0x53a4=function(_0x53a43a,_0x5f0232){_0x53a43a=_0x53a43a-0x13d;let _0x5d39c6=_0x5e8930[_0x53a43a];return _0x5d39c6;},a74_0x53a4(_0x525b57,_0x3952fd);}function simplifyType(_0x33dac0){const _0x54c125=a74_0x53a4,_0x5590af={'varchar':_0x54c125(0x153),'bigint':_0x54c125(0x14d),'integer':_0x54c125(0x155),'double':'double','boolean':_0x54c125(0x144),'date':'date','timestamp':'timestamp','array':_0x54c125(0x152),'map':_0x54c125(0x15c),'row':'row'},_0x5d9b9a=_0x33dac0['toLowerCase']();for(const [_0x2e3dfb,_0x4087e3]of Object['entries'](_0x5590af)){if(_0x5d9b9a[_0x54c125(0x15f)](_0x2e3dfb))return _0x4087e3;}return _0x33dac0[_0x54c125(0x14f)]>0xa?_0x33dac0['substring'](0x0,0xa):_0x33dac0;}function a74_0x5e89(){const _0x444681=['test','max','\x20rows\x20(','pow','table','No\x20rows\x20returned','false','2079432fmgPYh','toISOString','2781779qHxxeN','688197bOnosH','jsonl','push','type','log','min','4523392NdZQSG','padEnd','name','toFixed','bool','columns','replace','stdout','0\x20B','slice','data','\x20shown)','number','long','repeat','length','reduce','5NFCVtj','array','string','json','int','stringify','5310834dOUJJX','16465360DUqDSd','tsv','\x20row','827349QxOoVc','map','forEach','join','startsWith','floor'];a74_0x5e89=function(){return _0x444681;};return a74_0x5e89();}export function formatAsJSON(_0x210184,_0x9be863={}){const _0x4f5c5f=a74_0x53a4;if(_0x210184[_0x4f5c5f(0x14a)][_0x4f5c5f(0x14f)]===0x0)return'[]';if(shouldUseColor(_0x9be863))return colorizeJSON(_0x210184[_0x4f5c5f(0x14a)],_0x9be863);const _0x2e0959=_0x210184[_0x4f5c5f(0x14a)]['map'](_0x4b7db1=>'\x20\x20'+JSON[_0x4f5c5f(0x156)](_0x4b7db1));return'[\x0a'+_0x2e0959[_0x4f5c5f(0x15e)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x416e88,_0x9cc222={}){const _0x3f3636=a74_0x53a4;if(_0x416e88['data'][_0x3f3636(0x14f)]===0x0)return'';if(shouldUseColor(_0x9cc222))return _0x416e88[_0x3f3636(0x14a)][_0x3f3636(0x15c)](_0x145b5d=>colorizeJSONCompact(_0x145b5d,_0x9cc222))[_0x3f3636(0x15e)]('\x0a');return _0x416e88[_0x3f3636(0x14a)][_0x3f3636(0x15c)](_0x34907d=>JSON['stringify'](_0x34907d))[_0x3f3636(0x15e)]('\x0a');}export function formatAsTSV(_0x21dae0){const _0x3ff25d=a74_0x53a4;if(_0x21dae0[_0x3ff25d(0x14a)][_0x3ff25d(0x14f)]===0x0)return'';const _0x2c5b07=[],_0x2dbfe0=_0x21dae0[_0x3ff25d(0x145)][_0x3ff25d(0x15c)](_0x44695f=>_0x44695f[_0x3ff25d(0x142)]);return _0x2c5b07[_0x3ff25d(0x16d)](_0x2dbfe0[_0x3ff25d(0x15e)]('\x09')),_0x21dae0[_0x3ff25d(0x14a)]['forEach'](_0x4d60f2=>{const _0x41dbbb=_0x3ff25d,_0x4a2911=_0x2dbfe0[_0x41dbbb(0x15c)](_0x2b15f3=>{const _0x4157a4=_0x4d60f2[_0x2b15f3];return formatValueForTSV(_0x4157a4);});_0x2c5b07[_0x41dbbb(0x16d)](_0x4a2911[_0x41dbbb(0x15e)]('\x09'));}),_0x2c5b07[_0x3ff25d(0x15e)]('\x0a');}function formatValue(_0x184d3e){const _0x16cbef=a74_0x53a4;if(_0x184d3e===null||_0x184d3e===undefined)return'';if(typeof _0x184d3e===_0x16cbef(0x153)){const _0x156059=_0x184d3e[_0x16cbef(0x146)](/\n/g,'\x5cn')[_0x16cbef(0x146)](/\r/g,'\x5cr')[_0x16cbef(0x146)](/\t/g,'\x5ct');return _0x156059;}if(typeof _0x184d3e===_0x16cbef(0x14c))return String(_0x184d3e);if(typeof _0x184d3e==='boolean')return _0x184d3e?'true':_0x16cbef(0x167);if(_0x184d3e instanceof Date)return _0x184d3e['toISOString']();if(typeof _0x184d3e==='object')return JSON['stringify'](_0x184d3e);return String(_0x184d3e);}function formatValueForTSV(_0x18dadc){const _0x274b9f=a74_0x53a4;if(_0x18dadc===null||_0x18dadc===undefined)return'';if(typeof _0x18dadc===_0x274b9f(0x153))return _0x18dadc[_0x274b9f(0x146)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x18dadc===_0x274b9f(0x14c)||typeof _0x18dadc==='boolean')return String(_0x18dadc);if(_0x18dadc instanceof Date)return _0x18dadc[_0x274b9f(0x169)]();if(typeof _0x18dadc==='object')return JSON[_0x274b9f(0x156)](_0x18dadc);return String(_0x18dadc);}export function formatQueryResult(_0x465487,_0x10199e){const _0x5ce0da=a74_0x53a4;switch(_0x10199e){case _0x5ce0da(0x165):return formatAsTable(_0x465487);case _0x5ce0da(0x154):return formatAsJSON(_0x465487);case _0x5ce0da(0x16c):return formatAsJSONL(_0x465487);case _0x5ce0da(0x159):return formatAsTSV(_0x465487);default:return formatAsJSON(_0x465487);}}export function formatBytes(_0x23a9c2){const _0x27c994=a74_0x53a4;if(_0x23a9c2===0x0)return _0x27c994(0x148);const _0x54b810=['B','KB','MB','GB','TB'],_0x30404d=0x400,_0x49c14b=Math[_0x27c994(0x160)](Math['log'](_0x23a9c2)/Math[_0x27c994(0x13e)](_0x30404d)),_0x4a885d=_0x23a9c2/Math[_0x27c994(0x164)](_0x30404d,_0x49c14b),_0x3c0c9a=_0x4a885d>=0xa?0x1:0x2;return _0x4a885d[_0x27c994(0x143)](_0x3c0c9a)+'\x20'+_0x54b810[_0x49c14b];}export function formatRows(_0x3b82e6){const _0x521294=a74_0x53a4;if(_0x3b82e6==null)return'-';if(_0x3b82e6===0x0)return'0';if(_0x3b82e6<0x3e8)return _0x3b82e6['toString']();const _0x334aa0=['','K','M','B','T'],_0x56dcca=0x3e8,_0x18c4bd=Math[_0x521294(0x160)](Math['log'](_0x3b82e6)/Math[_0x521294(0x13e)](_0x56dcca)),_0x1e6981=_0x3b82e6/Math['pow'](_0x56dcca,_0x18c4bd),_0x3029d9=_0x1e6981>=0xa?0x1:0x2;return''+_0x1e6981[_0x521294(0x143)](_0x3029d9)+_0x334aa0[_0x18c4bd];}
@@ -1 +1 @@
1
- (function(_0x4fc453,_0x271885){const _0x3868ef=a71_0x538d,_0xc6aab4=_0x4fc453();while(!![]){try{const _0x37f80f=parseInt(_0x3868ef(0x10b))/0x1+-parseInt(_0x3868ef(0x11e))/0x2*(parseInt(_0x3868ef(0x10d))/0x3)+-parseInt(_0x3868ef(0x113))/0x4*(parseInt(_0x3868ef(0x104))/0x5)+parseInt(_0x3868ef(0x116))/0x6+parseInt(_0x3868ef(0x105))/0x7*(parseInt(_0x3868ef(0x118))/0x8)+-parseInt(_0x3868ef(0x11c))/0x9+-parseInt(_0x3868ef(0x11a))/0xa*(-parseInt(_0x3868ef(0x115))/0xb);if(_0x37f80f===_0x271885)break;else _0xc6aab4['push'](_0xc6aab4['shift']());}catch(_0x41a48e){_0xc6aab4['push'](_0xc6aab4['shift']());}}}(a71_0x4878,0xdca98));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a71_0x4878(){const _0x39e8d8=['1305086SDecrM','10JyncDH','231zIPGCE','Invalid\x20JSON\x20string:\x20','File\x20not\x20found:\x20','code','INTERNAL','Permission\x20denied\x20reading\x20file:\x20','1037537fEbCmC','PERMISSION_DENIED','3LTwLDY','EACCES','parse','Invalid\x20JSON\x20in\x20file\x20\x27','NOT_FOUND','\x27:\x20','1215024onTmZE','utf-8','11vZYRmG','6442440RjsNlQ','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','168088USSupW','INVALID_ARGUMENT','299260bmzqEe','message','6036111ISQKwB','ENOENT'];a71_0x4878=function(){return _0x39e8d8;};return a71_0x4878();}export async function loadJSON(_0x2f9caf,_0x216ce4){const _0x4cdc49=a71_0x538d;try{if(_0x216ce4){const _0x11068e=await readFile(_0x2f9caf,_0x4cdc49(0x114));try{return JSON[_0x4cdc49(0x10f)](_0x11068e);}catch(_0x374a91){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4cdc49(0x110)+_0x2f9caf+_0x4cdc49(0x112)+(_0x374a91 instanceof Error?_0x374a91[_0x4cdc49(0x11b)]:String(_0x374a91)));}}else try{return JSON[_0x4cdc49(0x10f)](_0x2f9caf);}catch(_0x27e970){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x4cdc49(0x106)+(_0x27e970 instanceof Error?_0x27e970['message']:String(_0x27e970)));}}catch(_0x534f4d){if(_0x534f4d instanceof SDKError)throw _0x534f4d;if(_0x534f4d instanceof Error&&_0x4cdc49(0x108)in _0x534f4d){const _0x44d04c=_0x534f4d;if(_0x44d04c[_0x4cdc49(0x108)]===_0x4cdc49(0x11d))throw new SDKError(ErrorCode[_0x4cdc49(0x111)],_0x4cdc49(0x107)+_0x2f9caf);else{if(_0x44d04c[_0x4cdc49(0x108)]===_0x4cdc49(0x10e))throw new SDKError(ErrorCode[_0x4cdc49(0x10c)],_0x4cdc49(0x10a)+_0x2f9caf);}}throw new SDKError(ErrorCode[_0x4cdc49(0x109)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x534f4d instanceof Error?_0x534f4d[_0x4cdc49(0x11b)]:String(_0x534f4d)));}}function a71_0x538d(_0x468694,_0x40bebf){const _0x4878df=a71_0x4878();return a71_0x538d=function(_0x538d19,_0x40c6bc){_0x538d19=_0x538d19-0x104;let _0x450849=_0x4878df[_0x538d19];return _0x450849;},a71_0x538d(_0x468694,_0x40bebf);}export async function loadJSONFromOptions(_0x598b7b,_0x1280d4){const _0x4a038b=a71_0x538d;if(_0x598b7b&&_0x1280d4)throw new SDKError(ErrorCode[_0x4a038b(0x119)],_0x4a038b(0x117));if(_0x598b7b)return await loadJSON(_0x598b7b,![]);if(_0x1280d4)return await loadJSON(_0x1280d4,!![]);return undefined;}
1
+ (function(_0x4b58aa,_0xcdd24b){const _0x15858c=a75_0x5049,_0x37a554=_0x4b58aa();while(!![]){try{const _0x192a38=-parseInt(_0x15858c(0xba))/0x1+-parseInt(_0x15858c(0xbc))/0x2*(parseInt(_0x15858c(0xce))/0x3)+parseInt(_0x15858c(0xbd))/0x4+-parseInt(_0x15858c(0xc6))/0x5+parseInt(_0x15858c(0xcd))/0x6*(parseInt(_0x15858c(0xc4))/0x7)+parseInt(_0x15858c(0xb8))/0x8+parseInt(_0x15858c(0xb9))/0x9*(-parseInt(_0x15858c(0xc8))/0xa);if(_0x192a38===_0xcdd24b)break;else _0x37a554['push'](_0x37a554['shift']());}catch(_0x53424b){_0x37a554['push'](_0x37a554['shift']());}}}(a75_0x2777,0xebfd5));function a75_0x2777(){const _0x2b1cef=['8149096mzPYMK','1557SoshdD','401114FfcRvL','Permission\x20denied\x20reading\x20file:\x20','2Vlhbzt','1046628TynoOI','message','File\x20not\x20found:\x20','ENOENT','Invalid\x20JSON\x20string:\x20','parse','utf-8','1755089KWbyEx','\x27:\x20','1737705fAyhKk','PERMISSION_DENIED','19490lhlTnI','NOT_FOUND','INTERNAL','Invalid\x20JSON\x20in\x20file\x20\x27','INVALID_ARGUMENT','30MRktQo','1444452AZTsEI'];a75_0x2777=function(){return _0x2b1cef;};return a75_0x2777();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0xc32b14,_0x4bff8b){const _0x6a74ba=a75_0x5049;try{if(_0x4bff8b){const _0x516ffe=await readFile(_0xc32b14,_0x6a74ba(0xc3));try{return JSON[_0x6a74ba(0xc2)](_0x516ffe);}catch(_0x8f632a){throw new SDKError(ErrorCode[_0x6a74ba(0xcc)],_0x6a74ba(0xcb)+_0xc32b14+_0x6a74ba(0xc5)+(_0x8f632a instanceof Error?_0x8f632a[_0x6a74ba(0xbe)]:String(_0x8f632a)));}}else try{return JSON[_0x6a74ba(0xc2)](_0xc32b14);}catch(_0x582267){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x6a74ba(0xc1)+(_0x582267 instanceof Error?_0x582267[_0x6a74ba(0xbe)]:String(_0x582267)));}}catch(_0x43188e){if(_0x43188e instanceof SDKError)throw _0x43188e;if(_0x43188e instanceof Error&&'code'in _0x43188e){const _0x15e617=_0x43188e;if(_0x15e617['code']===_0x6a74ba(0xc0))throw new SDKError(ErrorCode[_0x6a74ba(0xc9)],_0x6a74ba(0xbf)+_0xc32b14);else{if(_0x15e617['code']==='EACCES')throw new SDKError(ErrorCode[_0x6a74ba(0xc7)],_0x6a74ba(0xbb)+_0xc32b14);}}throw new SDKError(ErrorCode[_0x6a74ba(0xca)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x43188e instanceof Error?_0x43188e[_0x6a74ba(0xbe)]:String(_0x43188e)));}}function a75_0x5049(_0x49edc6,_0x352a45){const _0x2777d0=a75_0x2777();return a75_0x5049=function(_0x5049f3,_0x125f1b){_0x5049f3=_0x5049f3-0xb8;let _0x585298=_0x2777d0[_0x5049f3];return _0x585298;},a75_0x5049(_0x49edc6,_0x352a45);}export async function loadJSONFromOptions(_0x4f72a7,_0x567dd2){const _0x12cefd=a75_0x5049;if(_0x4f72a7&&_0x567dd2)throw new SDKError(ErrorCode[_0x12cefd(0xcc)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x4f72a7)return await loadJSON(_0x4f72a7,![]);if(_0x567dd2)return await loadJSON(_0x567dd2,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x3dfe30,_0x1d3b49){const _0x21cf52=a72_0x62ea,_0x396e5f=_0x3dfe30();while(!![]){try{const _0x4fc523=parseInt(_0x21cf52(0xda))/0x1+-parseInt(_0x21cf52(0xde))/0x2+parseInt(_0x21cf52(0xdd))/0x3+-parseInt(_0x21cf52(0xe4))/0x4*(-parseInt(_0x21cf52(0xdc))/0x5)+parseInt(_0x21cf52(0xdf))/0x6+parseInt(_0x21cf52(0xe2))/0x7*(-parseInt(_0x21cf52(0xd8))/0x8)+-parseInt(_0x21cf52(0xd7))/0x9;if(_0x4fc523===_0x1d3b49)break;else _0x396e5f['push'](_0x396e5f['shift']());}catch(_0x65325f){_0x396e5f['push'](_0x396e5f['shift']());}}}(a72_0x2647,0xaeadc));function a72_0x62ea(_0x158b5c,_0xd4752b){const _0x2647fe=a72_0x2647();return a72_0x62ea=function(_0x62ea7d,_0x579f77){_0x62ea7d=_0x62ea7d-0xd6;let _0x1c4241=_0x2647fe[_0x62ea7d];return _0x1c4241;},a72_0x62ea(_0x158b5c,_0xd4752b);}function a72_0x2647(){const _0x3d5a77=['1.0','2931430tvARBk','2070069ZfadfY','1458836afzeCD','4221636AwhPqd','has','attributes','721987bahzMs','targetKnowledgeBaseId','4bYgIlJ','get','5605884OJYSPl','40QwbpVa','targetAgentId','603568ZgyLYI'];a72_0x2647=function(){return _0x3d5a77;};return a72_0x2647();}export function canCreateAgent(_0xf7104d,_0x7352f){const _0x29b83a=a72_0x62ea;for(const _0x95125a of _0xf7104d[_0x29b83a(0xe1)]['tools']){if(_0x95125a[_0x29b83a(0xd9)]&&!_0x7352f[_0x29b83a(0xe0)](_0x95125a[_0x29b83a(0xd9)]))return![];}return!![];}export function remapToolIds(_0x19fd3d,_0x1153a3,_0x4a73db){const _0x347a98=a72_0x62ea;return _0x19fd3d['map'](_0x55b85f=>({..._0x55b85f,'targetKnowledgeBaseId':_0x55b85f[_0x347a98(0xe3)]?_0x1153a3[_0x347a98(0xd6)](_0x55b85f[_0x347a98(0xe3)])||_0x55b85f[_0x347a98(0xe3)]:undefined,'targetAgentId':_0x55b85f[_0x347a98(0xd9)]?_0x4a73db['get'](_0x55b85f['targetAgentId'])||_0x55b85f[_0x347a98(0xd9)]:undefined}));}export function remapVariableIds(_0x10277b,_0xffdfff){const _0x479cf3=a72_0x62ea;return _0x10277b['map'](_0x55d298=>({..._0x55d298,'targetKnowledgeBaseId':_0xffdfff[_0x479cf3(0xd6)](_0x55d298[_0x479cf3(0xe3)])||_0x55d298['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x404228){const _0x22e514=a72_0x62ea;return _0x404228===_0x22e514(0xdb);}
1
+ function a76_0x3e6a(){const _0x2a2efa=['1.0','13421331CtwjRI','get','targetKnowledgeBaseId','map','4550882BcsKBR','25455yNurVu','354rIAyIC','21258YDTXTJ','472WKgVDi','2jsYeQk','524NblVEc','attributes','3589150hzBAuG','52470kDuISJ','119104PxuNZa','targetAgentId','tools'];a76_0x3e6a=function(){return _0x2a2efa;};return a76_0x3e6a();}function a76_0x25dd(_0x39823a,_0x56ce56){const _0x3e6ac1=a76_0x3e6a();return a76_0x25dd=function(_0x25dd58,_0x120ae5){_0x25dd58=_0x25dd58-0xaf;let _0x57622b=_0x3e6ac1[_0x25dd58];return _0x57622b;},a76_0x25dd(_0x39823a,_0x56ce56);}(function(_0xff380c,_0x55617e){const _0x110179=a76_0x25dd,_0x38aa6d=_0xff380c();while(!![]){try{const _0x38d98c=parseInt(_0x110179(0xb7))/0x1*(-parseInt(_0x110179(0xb2))/0x2)+-parseInt(_0x110179(0xb0))/0x3*(parseInt(_0x110179(0xb3))/0x4)+parseInt(_0x110179(0xc0))/0x5*(parseInt(_0x110179(0xaf))/0x6)+-parseInt(_0x110179(0xbf))/0x7+parseInt(_0x110179(0xb1))/0x8*(parseInt(_0x110179(0xb6))/0x9)+parseInt(_0x110179(0xb5))/0xa+parseInt(_0x110179(0xbb))/0xb;if(_0x38d98c===_0x55617e)break;else _0x38aa6d['push'](_0x38aa6d['shift']());}catch(_0x4ea451){_0x38aa6d['push'](_0x38aa6d['shift']());}}}(a76_0x3e6a,0x80637));export function canCreateAgent(_0x276689,_0x559422){const _0x2a0623=a76_0x25dd;for(const _0x3f74f9 of _0x276689[_0x2a0623(0xb4)][_0x2a0623(0xb9)]){if(_0x3f74f9[_0x2a0623(0xb8)]&&!_0x559422['has'](_0x3f74f9[_0x2a0623(0xb8)]))return![];}return!![];}export function remapToolIds(_0x2a85c0,_0x4846ce,_0x4213f3){const _0x702cec=a76_0x25dd;return _0x2a85c0['map'](_0x2303bf=>({..._0x2303bf,'targetKnowledgeBaseId':_0x2303bf[_0x702cec(0xbd)]?_0x4846ce['get'](_0x2303bf[_0x702cec(0xbd)])||_0x2303bf['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x2303bf['targetAgentId']?_0x4213f3[_0x702cec(0xbc)](_0x2303bf[_0x702cec(0xb8)])||_0x2303bf[_0x702cec(0xb8)]:undefined}));}export function remapVariableIds(_0x2a2197,_0x1b5974){const _0x21a9fb=a76_0x25dd;return _0x2a2197[_0x21a9fb(0xbe)](_0x3fe2d7=>({..._0x3fe2d7,'targetKnowledgeBaseId':_0x1b5974[_0x21a9fb(0xbc)](_0x3fe2d7['targetKnowledgeBaseId'])||_0x3fe2d7[_0x21a9fb(0xbd)]}));}export function isSupportedBackupVersion(_0x5b9c99){const _0x250763=a76_0x25dd;return _0x5b9c99===_0x250763(0xba);}
@@ -1 +1 @@
1
- const a73_0x52226d=a73_0x4161;(function(_0x231092,_0x50987c){const _0x309fb6=a73_0x4161,_0x53f44c=_0x231092();while(!![]){try{const _0x462055=parseInt(_0x309fb6(0x1a2))/0x1+parseInt(_0x309fb6(0x197))/0x2*(parseInt(_0x309fb6(0x1a4))/0x3)+-parseInt(_0x309fb6(0x19c))/0x4+-parseInt(_0x309fb6(0x1a1))/0x5*(parseInt(_0x309fb6(0x19a))/0x6)+parseInt(_0x309fb6(0x19b))/0x7*(-parseInt(_0x309fb6(0x1a3))/0x8)+parseInt(_0x309fb6(0x19e))/0x9+-parseInt(_0x309fb6(0x19d))/0xa*(-parseInt(_0x309fb6(0x198))/0xb);if(_0x462055===_0x50987c)break;else _0x53f44c['push'](_0x53f44c['shift']());}catch(_0x172399){_0x53f44c['push'](_0x53f44c['shift']());}}}(a73_0x298d,0xd6312));const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a73_0x52226d(0x19f)};export function extractModelAlias(_0x452ad7){const _0x1fbef7=a73_0x52226d,_0xf3ae46=_0x452ad7[_0x1fbef7(0x199)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0xf3ae46)return _0xf3ae46[0x1][_0x1fbef7(0x1a0)]();return _0x452ad7;}function a73_0x298d(){const _0x4c9361=['toLowerCase','835QoZjbh','1234130Hxjqjq','140672FElsMd','530598XioIdW','2TSIqvz','22sLUuye','match','59610zviLAU','70APonYe','3882852Qupcwm','5194450qOoKyj','11098278magEmx','claude-4.5-sonnet'];a73_0x298d=function(){return _0x4c9361;};return a73_0x298d();}export function resolveModelAlias(_0x58de27){const _0x573173=a73_0x52226d;return MODEL_ALIASES[_0x58de27[_0x573173(0x1a0)]()]||_0x58de27;}function a73_0x4161(_0x548227,_0x374862){const _0x298dcc=a73_0x298d();return a73_0x4161=function(_0x41617c,_0xf804e9){_0x41617c=_0x41617c-0x197;let _0x4d14ab=_0x298dcc[_0x41617c];return _0x4d14ab;},a73_0x4161(_0x548227,_0x374862);}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ function a77_0x3694(_0xa61928,_0x4adc99){const _0x159d4b=a77_0x159d();return a77_0x3694=function(_0x36948a,_0x50efce){_0x36948a=_0x36948a-0x8a;let _0x2146a3=_0x159d4b[_0x36948a];return _0x2146a3;},a77_0x3694(_0xa61928,_0x4adc99);}const a77_0x47e361=a77_0x3694;(function(_0x1b5c8c,_0x535a92){const _0x3b35fa=a77_0x3694,_0x4787ca=_0x1b5c8c();while(!![]){try{const _0xabecc1=parseInt(_0x3b35fa(0x8f))/0x1+parseInt(_0x3b35fa(0x8c))/0x2*(parseInt(_0x3b35fa(0x91))/0x3)+-parseInt(_0x3b35fa(0x8e))/0x4+-parseInt(_0x3b35fa(0x8a))/0x5+parseInt(_0x3b35fa(0x8b))/0x6+-parseInt(_0x3b35fa(0x90))/0x7*(-parseInt(_0x3b35fa(0x8d))/0x8)+-parseInt(_0x3b35fa(0x94))/0x9;if(_0xabecc1===_0x535a92)break;else _0x4787ca['push'](_0x4787ca['shift']());}catch(_0x4d4830){_0x4787ca['push'](_0x4787ca['shift']());}}}(a77_0x159d,0x9a0fc));function a77_0x159d(){const _0x32c366=['2415662XLpgSc','42184clNyFA','4726564gQolhF','22158fPFeJN','350TJredR','3KYLFZX','toLowerCase','claude-4.5-sonnet','630288dACQnx','1185800FpYyyW','3757380JnTwHr'];a77_0x159d=function(){return _0x32c366;};return a77_0x159d();}const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a77_0x47e361(0x93)};export function extractModelAlias(_0x957fa1){const _0x56c62d=a77_0x47e361,_0x33db82=_0x957fa1['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x33db82)return _0x33db82[0x1][_0x56c62d(0x92)]();return _0x957fa1;}export function resolveModelAlias(_0x5113a4){const _0x186786=a77_0x47e361;return MODEL_ALIASES[_0x5113a4[_0x186786(0x92)]()]||_0x5113a4;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x16436a,_0xb8eba2){const _0x2320cb=a74_0x38b7,_0x527d87=_0x16436a();while(!![]){try{const _0x58e9b7=-parseInt(_0x2320cb(0x14f))/0x1+-parseInt(_0x2320cb(0x151))/0x2*(parseInt(_0x2320cb(0x153))/0x3)+parseInt(_0x2320cb(0x155))/0x4*(parseInt(_0x2320cb(0x156))/0x5)+parseInt(_0x2320cb(0x15a))/0x6+-parseInt(_0x2320cb(0x159))/0x7*(parseInt(_0x2320cb(0x157))/0x8)+-parseInt(_0x2320cb(0x150))/0x9+parseInt(_0x2320cb(0x14e))/0xa;if(_0x58e9b7===_0xb8eba2)break;else _0x527d87['push'](_0x527d87['shift']());}catch(_0x12733f){_0x527d87['push'](_0x527d87['shift']());}}}(a74_0x2869,0x1c4a9));function a74_0x2869(){const _0x194408=['number','124988rVFfes','5epHxAE','520NDRyGH','Invalid\x20limit\x20value:\x20','23618zXpmzr','976266DpWgXG','Invalid\x20timeout\x20value:\x20','isInteger','.\x20Must\x20be\x20an\x20integer.','5382290hywhJw','214082AlIzpX','1298061mnpvLE','5158oMxQRk','.\x20Must\x20be\x20a\x20positive\x20integer.','45LmZTYR'];a74_0x2869=function(){return _0x194408;};return a74_0x2869();}function a74_0x38b7(_0x36055d,_0x36fd05){const _0x2869b7=a74_0x2869();return a74_0x38b7=function(_0x38b708,_0x2a92a9){_0x38b708=_0x38b708-0x14d;let _0x190e05=_0x2869b7[_0x38b708];return _0x190e05;},a74_0x38b7(_0x36055d,_0x36fd05);}export function validateLimitOption(_0x7533e1){const _0xd3e72c=a74_0x38b7;if(!Number[_0xd3e72c(0x15c)](_0x7533e1))return{'isValid':![],'error':_0xd3e72c(0x158)+_0x7533e1+_0xd3e72c(0x14d)};if(_0x7533e1<=0x0)return{'isValid':![],'error':_0xd3e72c(0x158)+_0x7533e1+_0xd3e72c(0x152)};return{'isValid':!![],'value':_0x7533e1};}export function validateTimeoutOption(_0x34e6ec,_0x2753e6=0x1e){const _0x1d510a=a74_0x38b7;if(_0x34e6ec===undefined)return{'isValid':!![],'value':_0x2753e6};const _0xc5aef0=typeof _0x34e6ec===_0x1d510a(0x154)?_0x34e6ec:parseFloat(_0x34e6ec);if(isNaN(_0xc5aef0))return{'isValid':![],'error':_0x1d510a(0x15b)+_0x34e6ec+'.\x20Must\x20be\x20a\x20number.'};if(_0xc5aef0<=0x0)return{'isValid':![],'error':_0x1d510a(0x15b)+_0xc5aef0+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0xc5aef0};}
1
+ (function(_0x3bf740,_0x3d9fb3){const _0x100d16=a78_0xc1c0,_0x37e9ed=_0x3bf740();while(!![]){try{const _0x41879c=parseInt(_0x100d16(0x7c))/0x1+-parseInt(_0x100d16(0x7f))/0x2*(-parseInt(_0x100d16(0x85))/0x3)+parseInt(_0x100d16(0x88))/0x4*(parseInt(_0x100d16(0x84))/0x5)+parseInt(_0x100d16(0x7d))/0x6+parseInt(_0x100d16(0x8b))/0x7*(parseInt(_0x100d16(0x87))/0x8)+-parseInt(_0x100d16(0x81))/0x9+-parseInt(_0x100d16(0x7b))/0xa;if(_0x41879c===_0x3d9fb3)break;else _0x37e9ed['push'](_0x37e9ed['shift']());}catch(_0x3da652){_0x37e9ed['push'](_0x37e9ed['shift']());}}}(a78_0xb133,0x4c6e8));export function validateLimitOption(_0x4e5609){const _0x48207e=a78_0xc1c0;if(!Number[_0x48207e(0x7e)](_0x4e5609))return{'isValid':![],'error':_0x48207e(0x86)+_0x4e5609+_0x48207e(0x82)};if(_0x4e5609<=0x0)return{'isValid':![],'error':_0x48207e(0x86)+_0x4e5609+_0x48207e(0x7a)};return{'isValid':!![],'value':_0x4e5609};}export function validateTimeoutOption(_0x16ecc9,_0x2b7577=0x1e){const _0x2c8630=a78_0xc1c0;if(_0x16ecc9===undefined)return{'isValid':!![],'value':_0x2b7577};const _0x12063b=typeof _0x16ecc9===_0x2c8630(0x8a)?_0x16ecc9:parseFloat(_0x16ecc9);if(isNaN(_0x12063b))return{'isValid':![],'error':_0x2c8630(0x89)+_0x16ecc9+_0x2c8630(0x83)};if(_0x12063b<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x12063b+_0x2c8630(0x80)};return{'isValid':!![],'value':_0x12063b};}function a78_0xc1c0(_0x4fe6a0,_0x5ba1b6){const _0xb133cb=a78_0xb133();return a78_0xc1c0=function(_0xc1c083,_0x2ef70d){_0xc1c083=_0xc1c083-0x7a;let _0x44c7e4=_0xb133cb[_0xc1c083];return _0x44c7e4;},a78_0xc1c0(_0x4fe6a0,_0x5ba1b6);}function a78_0xb133(){const _0x1f1bca=['Invalid\x20limit\x20value:\x20','632AhLSSc','424352oKzwNl','Invalid\x20timeout\x20value:\x20','number','21231qJIOeX','.\x20Must\x20be\x20a\x20positive\x20integer.','13461960txWZmw','339912tjqAWM','3233778RctAQi','isInteger','2ZQYnWO','.\x20Must\x20be\x20a\x20positive\x20number.','303417zuEwle','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','15EFuHcB','768681opIYnG'];a78_0xb133=function(){return _0x1f1bca;};return a78_0xb133();}
@@ -1 +1 @@
1
- (function(_0xbdb528,_0x5629ff){const _0x194540=a75_0x1bef,_0x35e764=_0xbdb528();while(!![]){try{const _0x3e650b=-parseInt(_0x194540(0xb0))/0x1*(-parseInt(_0x194540(0xae))/0x2)+parseInt(_0x194540(0xb9))/0x3+-parseInt(_0x194540(0xb8))/0x4*(parseInt(_0x194540(0xb2))/0x5)+parseInt(_0x194540(0xad))/0x6+parseInt(_0x194540(0xba))/0x7*(parseInt(_0x194540(0xb6))/0x8)+parseInt(_0x194540(0xaf))/0x9+parseInt(_0x194540(0xb5))/0xa*(-parseInt(_0x194540(0xbb))/0xb);if(_0x3e650b===_0x5629ff)break;else _0x35e764['push'](_0x35e764['shift']());}catch(_0x5bd041){_0x35e764['push'](_0x35e764['shift']());}}}(a75_0x4a31,0xabe2c));import{createServer}from'node:net';function a75_0x1bef(_0x3961b9,_0xa287bf){const _0x4a318c=a75_0x4a31();return a75_0x1bef=function(_0x1befa9,_0xb26128){_0x1befa9=_0x1befa9-0xad;let _0x2d89bd=_0x4a318c[_0x1befa9];return _0x2d89bd;},a75_0x1bef(_0x3961b9,_0xa287bf);}export async function isPortAvailable(_0x2036ae){return new Promise(_0x2a245d=>{const _0x35a32e=a75_0x1bef,_0x4d5be0=createServer();_0x4d5be0[_0x35a32e(0xbc)]('error',_0x3cddc0=>{const _0x41aab3=_0x35a32e;_0x3cddc0[_0x41aab3(0xb1)]===_0x41aab3(0xb7)?_0x2a245d(![]):_0x2a245d(![]);}),_0x4d5be0[_0x35a32e(0xbc)]('listening',()=>{const _0x305cca=_0x35a32e;_0x4d5be0[_0x305cca(0xb4)](),_0x2a245d(!![]);}),_0x4d5be0[_0x35a32e(0xb3)](_0x2036ae,_0x35a32e(0xbd));});}function a75_0x4a31(){const _0x11cb01=['21AGPiDT','11LJMWXi','once','0.0.0.0','5124384wyqHhn','2156502rcwale','4032711ErOAAO','1fcpUCB','code','5276835iWFMQJ','listen','close','17217680BjlTgl','412312ZjkoHS','EADDRINUSE','4uTZuAa','2838504thayEy'];a75_0x4a31=function(){return _0x11cb01;};return a75_0x4a31();}export async function findAvailablePort(_0x3ea17f=0xfa0,_0x3517dd=0x64){for(let _0x1e2099=0x0;_0x1e2099<_0x3517dd;_0x1e2099++){const _0x5b6bf4=_0x3ea17f+_0x1e2099;if(await isPortAvailable(_0x5b6bf4))return _0x5b6bf4;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x3ea17f+'\x20and\x20'+(_0x3ea17f+_0x3517dd-0x1));}
1
+ (function(_0x593e60,_0x1c818f){const _0x15fc0d=a79_0x14f4,_0x52f11a=_0x593e60();while(!![]){try{const _0x2bb8be=-parseInt(_0x15fc0d(0x1f9))/0x1*(parseInt(_0x15fc0d(0x1f2))/0x2)+parseInt(_0x15fc0d(0x1ee))/0x3+-parseInt(_0x15fc0d(0x1f5))/0x4+parseInt(_0x15fc0d(0x1ea))/0x5+-parseInt(_0x15fc0d(0x1f3))/0x6*(parseInt(_0x15fc0d(0x1ef))/0x7)+-parseInt(_0x15fc0d(0x1f0))/0x8+parseInt(_0x15fc0d(0x1f4))/0x9;if(_0x2bb8be===_0x1c818f)break;else _0x52f11a['push'](_0x52f11a['shift']());}catch(_0x302fa2){_0x52f11a['push'](_0x52f11a['shift']());}}}(a79_0x544a,0x8f616));function a79_0x14f4(_0x3f0ac5,_0x68ef69){const _0x544a3a=a79_0x544a();return a79_0x14f4=function(_0x14f49e,_0x167800){_0x14f49e=_0x14f49e-0x1ea;let _0x22fa97=_0x544a3a[_0x14f49e];return _0x22fa97;},a79_0x14f4(_0x3f0ac5,_0x68ef69);}function a79_0x544a(){const _0x3633de=['0.0.0.0','No\x20available\x20port\x20found\x20between\x20','2885556RwufAX','77pNgiqO','3128848aZcmnJ','\x20and\x20','525110MqCoxb','361758iMwjrS','12702690ilCxsI','3245184wBreKP','once','listen','error','3MPIGuX','4336570rNjtrX','close'];a79_0x544a=function(){return _0x3633de;};return a79_0x544a();}import{createServer}from'node:net';export async function isPortAvailable(_0x5583ba){return new Promise(_0x2900d1=>{const _0x142c16=a79_0x14f4,_0x3aa5f7=createServer();_0x3aa5f7[_0x142c16(0x1f6)](_0x142c16(0x1f8),_0x203d37=>{_0x203d37['code']==='EADDRINUSE'?_0x2900d1(![]):_0x2900d1(![]);}),_0x3aa5f7[_0x142c16(0x1f6)]('listening',()=>{const _0x534536=_0x142c16;_0x3aa5f7[_0x534536(0x1eb)](),_0x2900d1(!![]);}),_0x3aa5f7[_0x142c16(0x1f7)](_0x5583ba,_0x142c16(0x1ec));});}export async function findAvailablePort(_0x42d181=0xfa0,_0x5d4425=0x64){const _0x4e8994=a79_0x14f4;for(let _0x362406=0x0;_0x362406<_0x5d4425;_0x362406++){const _0x20f18c=_0x42d181+_0x362406;if(await isPortAvailable(_0x20f18c))return _0x20f18c;}throw new Error(_0x4e8994(0x1ed)+_0x42d181+_0x4e8994(0x1f1)+(_0x42d181+_0x5d4425-0x1));}
@@ -1 +1 @@
1
- const a76_0x44b785=a76_0x45db;(function(_0x27b92c,_0x7425ad){const _0x5e6046=a76_0x45db,_0x174ade=_0x27b92c();while(!![]){try{const _0x3b8647=-parseInt(_0x5e6046(0x16a))/0x1*(parseInt(_0x5e6046(0x157))/0x2)+parseInt(_0x5e6046(0x163))/0x3+parseInt(_0x5e6046(0x16c))/0x4*(parseInt(_0x5e6046(0x156))/0x5)+parseInt(_0x5e6046(0x16f))/0x6*(parseInt(_0x5e6046(0x170))/0x7)+parseInt(_0x5e6046(0x141))/0x8*(-parseInt(_0x5e6046(0x15a))/0x9)+parseInt(_0x5e6046(0x160))/0xa*(parseInt(_0x5e6046(0x143))/0xb)+parseInt(_0x5e6046(0x144))/0xc;if(_0x3b8647===_0x7425ad)break;else _0x174ade['push'](_0x174ade['shift']());}catch(_0x464a7c){_0x174ade['push'](_0x174ade['shift']());}}}(a76_0x57aa,0x4ea2e));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a76_0x44b785(0x158),'zsh','sh',a76_0x44b785(0x15f),a76_0x44b785(0x142),'tcsh',a76_0x44b785(0x148),a76_0x44b785(0x164),a76_0x44b785(0x145),a76_0x44b785(0x167),'nu',a76_0x44b785(0x14a),a76_0x44b785(0x171),a76_0x44b785(0x147)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a76_0x44b785(0x13f),a76_0x44b785(0x140)]);function getProcessInfoWindows(_0x54ea72){const _0x33108e=a76_0x44b785;try{const _0x1724ae=execSync(_0x33108e(0x169)+_0x54ea72+_0x33108e(0x15c),{'encoding':_0x33108e(0x14d),'windowsHide':!![]})['trim'](),_0x3e9c19=_0x1724ae[_0x33108e(0x161)]('\x0a')[_0x33108e(0x162)](_0x52552b=>_0x52552b[_0x33108e(0x153)]());if(_0x3e9c19['length']<0x2)return null;const _0x18f916=_0x3e9c19[_0x3e9c19[_0x33108e(0x152)]-0x1][_0x33108e(0x161)](',');if(_0x18f916[_0x33108e(0x152)]<0x3)return null;const _0x53b9b7=_0x18f916[0x1]?.[_0x33108e(0x153)]()||'',_0x3dee17=parseInt(_0x18f916[0x2]?.[_0x33108e(0x153)]()||'0',0xa);if(isNaN(_0x3dee17)||!_0x53b9b7)return null;return{'pid':_0x54ea72,'ppid':_0x3dee17,'comm':_0x53b9b7[_0x33108e(0x150)](/\.exe$/i,'')};}catch(_0x34b782){return process[_0x33108e(0x168)]['DEBUG']&&console[_0x33108e(0x165)](_0x33108e(0x14b)+_0x54ea72+_0x33108e(0x166),_0x34b782),null;}}function getProcessInfoPosix(_0x27b8af){const _0x4c9ccb=a76_0x44b785;try{const _0x2c29e8=execSync('ps\x20-p\x20'+_0x27b8af+_0x4c9ccb(0x16d),{'encoding':'utf-8'})[_0x4c9ccb(0x153)](),[_0x3d4c2f,..._0x667c54]=_0x2c29e8[_0x4c9ccb(0x161)](/\s+/),_0x443de0=parseInt(_0x3d4c2f,0xa),_0x44e504=_0x667c54['join']('\x20');if(isNaN(_0x443de0))return null;return{'pid':_0x27b8af,'ppid':_0x443de0,'comm':_0x44e504};}catch(_0x479fcd){return process[_0x4c9ccb(0x168)][_0x4c9ccb(0x16b)]&&console[_0x4c9ccb(0x165)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x27b8af+_0x4c9ccb(0x14f),_0x479fcd),null;}}function getProcessInfo(_0x2cfe61){const _0x295dc2=a76_0x44b785;if(process[_0x295dc2(0x146)]===_0x295dc2(0x15e))return getProcessInfoWindows(_0x2cfe61);return getProcessInfoPosix(_0x2cfe61);}function a76_0x45db(_0x4bdbf3,_0x2623f4){const _0x57aaee=a76_0x57aa();return a76_0x45db=function(_0x45dbb3,_0x3c1547){_0x45dbb3=_0x45dbb3-0x13f;let _0x2da13e=_0x57aaee[_0x45dbb3];return _0x2da13e;},a76_0x45db(_0x4bdbf3,_0x2623f4);}function getBasename(_0x21bd36){const _0x301075=a76_0x44b785;return _0x21bd36[_0x301075(0x150)](/^-/,'')[_0x301075(0x161)]('/')[_0x301075(0x14c)]()?.[_0x301075(0x154)]()||'';}function isShell(_0x486408){const _0x379d76=a76_0x44b785;return SHELL_NAMES[_0x379d76(0x149)](getBasename(_0x486408));}function isEphemeralShellSpawner(_0x201dc6){const _0x1b2241=a76_0x44b785;return EPHEMERAL_SHELL_SPAWNERS[_0x1b2241(0x149)](getBasename(_0x201dc6));}let cachedShellPID;function findShellPID(){const _0xf64602=a76_0x44b785;let _0x477abb=process[_0xf64602(0x14e)];const _0x576618=0xa;let _0x4360b3=0x0;while(_0x4360b3<_0x576618){const _0x4fcf6b=getProcessInfo(_0x477abb);if(!_0x4fcf6b){process[_0xf64602(0x168)]['DEBUG']&&console[_0xf64602(0x165)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x477abb+',\x20using\x20fallback');break;}if(isShell(_0x4fcf6b[_0xf64602(0x159)])){const _0x6b7f8e=getProcessInfo(_0x4fcf6b[_0xf64602(0x14e)]);if(_0x6b7f8e&&isEphemeralShellSpawner(_0x6b7f8e[_0xf64602(0x159)])){process[_0xf64602(0x168)][_0xf64602(0x16b)]&&console[_0xf64602(0x165)]('Found\x20ephemeral\x20shell\x20'+_0x4fcf6b[_0xf64602(0x15d)]+'\x20('+_0x4fcf6b[_0xf64602(0x159)]+_0xf64602(0x151)+_0x6b7f8e[_0xf64602(0x159)]+_0xf64602(0x155));_0x477abb=_0x4fcf6b[_0xf64602(0x14e)],_0x4360b3++;continue;}return _0x4fcf6b[_0xf64602(0x15d)];}if(_0x4fcf6b[_0xf64602(0x14e)]===0x0||_0x4fcf6b[_0xf64602(0x14e)]===0x1){if(isShell(_0x4fcf6b['comm']))return _0x4fcf6b[_0xf64602(0x15d)];break;}_0x477abb=_0x4fcf6b[_0xf64602(0x14e)],_0x4360b3++;}return process[_0xf64602(0x168)][_0xf64602(0x16b)]&&console['error'](_0xf64602(0x16e)),process[_0xf64602(0x14e)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a76_0x57aa(){const _0xa17256=['No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','756384tJjJTL','14kwYlKJ','elvish','code','cursor','16FqENLw','ksh','1030062eHYpBs','2154600XjkRoG','pwsh','platform','xonsh','csh','has','ion','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','pop','utf-8','ppid','\x20on\x20POSIX:','replace',')\x20spawned\x20by\x20','length','trim','toLowerCase',',\x20continuing\x20up','5ZrTlgw','302atLSKp','bash','comm','2376036LDYBWK','kill','\x20get\x20ParentProcessId,Name\x20/format:csv','pid','win32','fish','10HKysbm','split','filter','1530765LgCpNu','dash','error','\x20on\x20Windows:','powershell','env','wmic\x20process\x20where\x20ProcessId=','1437GoLFmm','DEBUG','126056ewcAxd','\x20-o\x20ppid=,comm='];a76_0x57aa=function(){return _0xa17256;};return a76_0x57aa();}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2c6f43){const _0x48441c=a76_0x44b785;try{return process[_0x48441c(0x15b)](_0x2c6f43,0x0),!![];}catch{return![];}}
1
+ function a80_0x1b96(_0x248127,_0x43a333){const _0x11522e=a80_0x1152();return a80_0x1b96=function(_0x1b9612,_0x2f6c42){_0x1b9612=_0x1b9612-0x179;let _0x2616a2=_0x11522e[_0x1b9612];return _0x2616a2;},a80_0x1b96(_0x248127,_0x43a333);}const a80_0x51d2e8=a80_0x1b96;(function(_0x303984,_0x371e36){const _0x58fa03=a80_0x1b96,_0xdd22=_0x303984();while(!![]){try{const _0x5d8583=parseInt(_0x58fa03(0x1a7))/0x1*(-parseInt(_0x58fa03(0x17b))/0x2)+-parseInt(_0x58fa03(0x19b))/0x3*(-parseInt(_0x58fa03(0x193))/0x4)+-parseInt(_0x58fa03(0x18d))/0x5*(-parseInt(_0x58fa03(0x191))/0x6)+-parseInt(_0x58fa03(0x19c))/0x7*(parseInt(_0x58fa03(0x184))/0x8)+-parseInt(_0x58fa03(0x187))/0x9+-parseInt(_0x58fa03(0x197))/0xa*(-parseInt(_0x58fa03(0x185))/0xb)+-parseInt(_0x58fa03(0x18a))/0xc;if(_0x5d8583===_0x371e36)break;else _0xdd22['push'](_0xdd22['shift']());}catch(_0x4fa68d){_0xdd22['push'](_0xdd22['shift']());}}}(a80_0x1152,0x77749));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a80_0x51d2e8(0x19d),a80_0x51d2e8(0x1a8),'sh',a80_0x51d2e8(0x1a2),a80_0x51d2e8(0x1a1),'tcsh',a80_0x51d2e8(0x188),a80_0x51d2e8(0x1a9),a80_0x51d2e8(0x1a0),a80_0x51d2e8(0x17c),'nu','ion',a80_0x51d2e8(0x1ab),a80_0x51d2e8(0x182)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a80_0x51d2e8(0x192),a80_0x51d2e8(0x18c),a80_0x51d2e8(0x17f)]);function getProcessInfoWindows(_0x2b50c2){const _0x8ee0d9=a80_0x51d2e8;try{const _0x5be19f=execSync('wmic\x20process\x20where\x20ProcessId='+_0x2b50c2+_0x8ee0d9(0x183),{'encoding':'utf-8','windowsHide':!![]})[_0x8ee0d9(0x19f)](),_0xf1ef73=_0x5be19f['split']('\x0a')[_0x8ee0d9(0x1a6)](_0xf87be5=>_0xf87be5[_0x8ee0d9(0x19f)]());if(_0xf1ef73['length']<0x2)return null;const _0x2916aa=_0xf1ef73[_0xf1ef73[_0x8ee0d9(0x17a)]-0x1][_0x8ee0d9(0x196)](',');if(_0x2916aa[_0x8ee0d9(0x17a)]<0x3)return null;const _0x46b882=_0x2916aa[0x1]?.[_0x8ee0d9(0x19f)]()||'',_0x39fc20=parseInt(_0x2916aa[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x39fc20)||!_0x46b882)return null;return{'pid':_0x2b50c2,'ppid':_0x39fc20,'comm':_0x46b882[_0x8ee0d9(0x190)](/\.exe$/i,'')};}catch(_0x5e97c4){return process[_0x8ee0d9(0x17e)][_0x8ee0d9(0x198)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x2b50c2+_0x8ee0d9(0x189),_0x5e97c4),null;}}function getProcessInfoPosix(_0x1edacc){const _0x51142e=a80_0x51d2e8;try{const _0x4c69d9=execSync('ps\x20-p\x20'+_0x1edacc+_0x51142e(0x179),{'encoding':'utf-8'})[_0x51142e(0x19f)](),[_0x3e6e8e,..._0x5e1864]=_0x4c69d9[_0x51142e(0x196)](/\s+/),_0x1e7a12=parseInt(_0x3e6e8e,0xa),_0x411f95=_0x5e1864['join']('\x20');if(isNaN(_0x1e7a12))return null;return{'pid':_0x1edacc,'ppid':_0x1e7a12,'comm':_0x411f95};}catch(_0x22f123){return process[_0x51142e(0x17e)]['DEBUG']&&console[_0x51142e(0x17d)](_0x51142e(0x1aa)+_0x1edacc+_0x51142e(0x19e),_0x22f123),null;}}function getProcessInfo(_0x23c0a3){const _0x5f3146=a80_0x51d2e8;if(process[_0x5f3146(0x18b)]===_0x5f3146(0x199))return getProcessInfoWindows(_0x23c0a3);return getProcessInfoPosix(_0x23c0a3);}function a80_0x1152(){const _0xc8c668=['81GLgioc','133xCksAD','bash','\x20on\x20POSIX:','trim','pwsh','ksh','fish','has',',\x20using\x20fallback','Found\x20ephemeral\x20shell\x20','filter','95pQkPoA','zsh','dash','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','elvish','\x20-o\x20ppid=,comm=','length','2798JXUKPl','powershell','error','env','cursor','pop','kill','xonsh','\x20get\x20ParentProcessId,Name\x20/format:csv','209816vgTmRl','22gQcnpS','toLowerCase','1654281EFIbSD','csh','\x20on\x20Windows:','9830316kPvpme','platform','code','15lTHxUC','pid',',\x20continuing\x20up','replace','1869060GNQoxg','claude','124892wuhGkR','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','ppid','split','1729790fRQfQG','DEBUG','win32','comm'];a80_0x1152=function(){return _0xc8c668;};return a80_0x1152();}function getBasename(_0x4d4842){const _0x30d474=a80_0x51d2e8;return _0x4d4842['replace'](/^-/,'')[_0x30d474(0x196)]('/')[_0x30d474(0x180)]()?.[_0x30d474(0x186)]()||'';}function isShell(_0x40db8d){const _0x445523=a80_0x51d2e8;return SHELL_NAMES[_0x445523(0x1a3)](getBasename(_0x40db8d));}function isEphemeralShellSpawner(_0x5f4d22){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x5f4d22));}let cachedShellPID;function findShellPID(){const _0x49fe84=a80_0x51d2e8;let _0x427581=process[_0x49fe84(0x195)];const _0x14687a=0xa;let _0xde5d43=0x0;while(_0xde5d43<_0x14687a){const _0x34a622=getProcessInfo(_0x427581);if(!_0x34a622){process[_0x49fe84(0x17e)][_0x49fe84(0x198)]&&console[_0x49fe84(0x17d)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x427581+_0x49fe84(0x1a4));break;}if(isShell(_0x34a622['comm'])){const _0x4ed930=getProcessInfo(_0x34a622[_0x49fe84(0x195)]);if(_0x4ed930&&isEphemeralShellSpawner(_0x4ed930[_0x49fe84(0x19a)])){process[_0x49fe84(0x17e)][_0x49fe84(0x198)]&&console['error'](_0x49fe84(0x1a5)+_0x34a622[_0x49fe84(0x18e)]+'\x20('+_0x34a622[_0x49fe84(0x19a)]+')\x20spawned\x20by\x20'+_0x4ed930[_0x49fe84(0x19a)]+_0x49fe84(0x18f));_0x427581=_0x34a622[_0x49fe84(0x195)],_0xde5d43++;continue;}return _0x34a622[_0x49fe84(0x18e)];}if(_0x34a622['ppid']===0x0||_0x34a622[_0x49fe84(0x195)]===0x1){if(isShell(_0x34a622['comm']))return _0x34a622[_0x49fe84(0x18e)];break;}_0x427581=_0x34a622[_0x49fe84(0x195)],_0xde5d43++;}return process['env'][_0x49fe84(0x198)]&&console['error'](_0x49fe84(0x194)),process[_0x49fe84(0x195)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x142ce2){const _0x1eef95=a80_0x51d2e8;try{return process[_0x1eef95(0x181)](_0x142ce2,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x374d1c,_0xee2f57){const _0x58b17d=a77_0x4c59,_0x9e152=_0x374d1c();while(!![]){try{const _0x49d654=-parseInt(_0x58b17d(0x78))/0x1*(-parseInt(_0x58b17d(0x7a))/0x2)+parseInt(_0x58b17d(0x77))/0x3+parseInt(_0x58b17d(0x7b))/0x4+-parseInt(_0x58b17d(0x80))/0x5+-parseInt(_0x58b17d(0x7d))/0x6*(-parseInt(_0x58b17d(0x7c))/0x7)+-parseInt(_0x58b17d(0x7f))/0x8*(-parseInt(_0x58b17d(0x7e))/0x9)+-parseInt(_0x58b17d(0x82))/0xa;if(_0x49d654===_0xee2f57)break;else _0x9e152['push'](_0x9e152['shift']());}catch(_0xbe653e){_0x9e152['push'](_0x9e152['shift']());}}}(a77_0x5a83,0x81a81));function a77_0x4c59(_0x9d4902,_0x4961e1){const _0x5a83b9=a77_0x5a83();return a77_0x4c59=function(_0x4c5977,_0x1151e8){_0x4c5977=_0x4c5977-0x76;let _0x1b69f3=_0x5a83b9[_0x4c5977];return _0x1b69f3;},a77_0x4c59(_0x9d4902,_0x4961e1);}import*as a77_0x167b45 from'readline';function a77_0x5a83(){const _0x14786c=['toLowerCase','24280ElWMfp','1747948edMBzU','4968187puQwYS','6MKgmNc','11403NvTkOv','464FUBiZz','2831720kwiAuo','yes','6779710gqsGCS','createInterface','close','stdout','1556262BMdckN','3UvBHIv'];a77_0x5a83=function(){return _0x14786c;};return a77_0x5a83();}export async function confirm(_0x3b41d8){const _0x10dad7=a77_0x4c59,_0x5ec6fa=a77_0x167b45[_0x10dad7(0x83)]({'input':process['stdin'],'output':process[_0x10dad7(0x76)]});return new Promise(_0xbf9155=>{_0x5ec6fa['question'](_0x3b41d8+'\x20(y/N):\x20',_0x596708=>{const _0x5b4422=a77_0x4c59;_0x5ec6fa[_0x5b4422(0x84)](),_0xbf9155(_0x596708[_0x5b4422(0x79)]()==='y'||_0x596708[_0x5b4422(0x79)]()===_0x5b4422(0x81));});});}
1
+ (function(_0xd2379b,_0x4325e5){const _0x2d1ff1=a81_0x686f,_0x239b06=_0xd2379b();while(!![]){try{const _0x18bc0a=-parseInt(_0x2d1ff1(0xc9))/0x1*(-parseInt(_0x2d1ff1(0xc8))/0x2)+-parseInt(_0x2d1ff1(0xcb))/0x3+parseInt(_0x2d1ff1(0xc6))/0x4*(-parseInt(_0x2d1ff1(0xd3))/0x5)+-parseInt(_0x2d1ff1(0xcc))/0x6*(parseInt(_0x2d1ff1(0xcf))/0x7)+parseInt(_0x2d1ff1(0xce))/0x8+parseInt(_0x2d1ff1(0xd4))/0x9+parseInt(_0x2d1ff1(0xd5))/0xa;if(_0x18bc0a===_0x4325e5)break;else _0x239b06['push'](_0x239b06['shift']());}catch(_0x2c76d8){_0x239b06['push'](_0x239b06['shift']());}}}(a81_0x2c56,0x20955));import*as a81_0x52bd6c from'readline';function a81_0x686f(_0x12539e,_0x155d6d){const _0x2c5641=a81_0x2c56();return a81_0x686f=function(_0x686f74,_0x2af84d){_0x686f74=_0x686f74-0xc6;let _0x30e74e=_0x2c5641[_0x686f74];return _0x30e74e;},a81_0x686f(_0x12539e,_0x155d6d);}function a81_0x2c56(){const _0x1dc23b=['4569700EPHUNQ','8nmTIIY','createInterface','498qjQQNP','336DMHFwi','close','556176nFUzFG','564tGZxXh','yes','126496JfinMn','861NspkTs','\x20(y/N):\x20','toLowerCase','question','578635dJOeID','48807JtVnPo'];a81_0x2c56=function(){return _0x1dc23b;};return a81_0x2c56();}export async function confirm(_0x531288){const _0x41f17d=a81_0x686f,_0x18545f=a81_0x52bd6c[_0x41f17d(0xc7)]({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x1a7eb4=>{const _0x55e642=_0x41f17d;_0x18545f[_0x55e642(0xd2)](_0x531288+_0x55e642(0xd0),_0x281a1a=>{const _0x123ee7=_0x55e642;_0x18545f[_0x123ee7(0xca)](),_0x1a7eb4(_0x281a1a[_0x123ee7(0xd1)]()==='y'||_0x281a1a[_0x123ee7(0xd1)]()===_0x123ee7(0xcd));});});}
@@ -1 +1 @@
1
- (function(_0x1c0a54,_0x7f1e37){const _0x48fd08=a78_0x4b0b,_0x2856d5=_0x1c0a54();while(!![]){try{const _0x47cc7c=parseInt(_0x48fd08(0xaa))/0x1+parseInt(_0x48fd08(0xc0))/0x2*(parseInt(_0x48fd08(0xa8))/0x3)+parseInt(_0x48fd08(0xb0))/0x4+-parseInt(_0x48fd08(0xbb))/0x5+-parseInt(_0x48fd08(0xb4))/0x6+-parseInt(_0x48fd08(0xa6))/0x7+parseInt(_0x48fd08(0xb2))/0x8;if(_0x47cc7c===_0x7f1e37)break;else _0x2856d5['push'](_0x2856d5['shift']());}catch(_0x12f9bf){_0x2856d5['push'](_0x2856d5['shift']());}}}(a78_0x4b91,0xd476c));export function parsePath(_0x819e3b){const _0x357770=a78_0x4b0b;if(!_0x819e3b||_0x819e3b[_0x357770(0xb3)]()==='')throw new Error(_0x357770(0xbf));const _0x34c04a=_0x819e3b[_0x357770(0xb3)]();if(_0x34c04a==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x819e3b};const _0x1c2388=_0x34c04a[_0x357770(0xa7)]('/')?_0x34c04a['substring'](0x1):_0x34c04a,_0x573ddf=_0x1c2388[_0x357770(0xad)]('/')[_0x357770(0xbe)](_0x3737b2=>_0x3737b2!=='');if(_0x573ddf[_0x357770(0xae)]===0x0)throw new Error(_0x357770(0xb1));const _0x1c0ee3=_0x34c04a['startsWith']('/')||!isRelativePathSegment(_0x573ddf[0x0]);for(const _0x4e9a48 of _0x573ddf){validatePathSegment(_0x4e9a48);}return{'segments':_0x573ddf,'isAbsolute':_0x1c0ee3,'raw':_0x819e3b};}function isRelativePathSegment(_0x4cf508){return _0x4cf508==='.'||_0x4cf508==='..';}function validatePathSegment(_0x125e83){const _0x3c2daa=a78_0x4b0b;if(_0x125e83==='')throw new Error(_0x3c2daa(0xba));if(_0x125e83==='.'||_0x125e83==='..')return;if(/[\x00-\x1F\x7F]/[_0x3c2daa(0xbc)](_0x125e83))throw new Error(_0x3c2daa(0xb9)+_0x125e83);if(_0x125e83!==_0x125e83[_0x3c2daa(0xb3)]()){}}export function validatePath(_0x2f85c1){const _0x2b3f2a=a78_0x4b0b;if(_0x2f85c1[_0x2b3f2a(0xb8)]['length']===0x0&&!_0x2f85c1[_0x2b3f2a(0xb6)])throw new Error(_0x2b3f2a(0xab));if(_0x2f85c1[_0x2b3f2a(0xb6)]){if(_0x2f85c1['segments'][0x0]==='..')throw new Error(_0x2b3f2a(0xb5));let _0x167758=0x0;for(const _0x577399 of _0x2f85c1[_0x2b3f2a(0xb8)]){if(_0x577399==='..'){if(_0x167758===0x0)throw new Error(_0x2b3f2a(0xbd));_0x167758--;}else _0x577399!=='.'&&_0x167758++;}}}export function joinPaths(_0x471269,_0x185ab1){const _0x341a2f=a78_0x4b0b;if(!_0x471269||_0x471269==='/')return _0x185ab1;if(!_0x185ab1||_0x185ab1==='.')return _0x471269;if(_0x185ab1['startsWith']('/'))return _0x185ab1;const _0x9dab30=parsePath(_0x471269),_0x3bbbb5=parsePath(_0x185ab1),_0x1ea9de=[..._0x9dab30['segments']];for(const _0x1a4945 of _0x3bbbb5[_0x341a2f(0xb8)]){if(_0x1a4945==='.')continue;else{if(_0x1a4945==='..'){if(_0x1ea9de['length']===0x0)throw new Error(_0x341a2f(0xc1));_0x1ea9de['pop']();}else _0x1ea9de[_0x341a2f(0xaf)](_0x1a4945);}}const _0x58167f=_0x1ea9de[_0x341a2f(0xac)]('/');return _0x9dab30[_0x341a2f(0xa9)][_0x341a2f(0xa7)]('/')?'/'+_0x58167f:_0x58167f;}function a78_0x4b91(){const _0x5ceedf=['push','5272108YcgapR','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','2185376axxxJX','trim','5968038DuRhxF','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','isAbsolute','pop','segments','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20segment\x20cannot\x20be\x20empty','5857125dUNkqd','test','Path\x20attempts\x20to\x20navigate\x20above\x20root','filter','Path\x20cannot\x20be\x20empty','2jZIyRI','Cannot\x20navigate\x20above\x20root','3033219sOrLyz','startsWith','1124511GkoFgK','raw','1503631HjSmtd','Relative\x20path\x20cannot\x20be\x20empty','join','split','length'];a78_0x4b91=function(){return _0x5ceedf;};return a78_0x4b91();}export function normalizePath(_0x1ea9c9){const _0x55328d=a78_0x4b0b,_0x59ee13=parsePath(_0x1ea9c9),_0xd6af96=[];for(const _0x585b0a of _0x59ee13['segments']){if(_0x585b0a==='.')continue;else{if(_0x585b0a==='..'){if(_0xd6af96[_0x55328d(0xae)]===0x0){if(_0x59ee13[_0x55328d(0xb6)])throw new Error(_0x55328d(0xc1));_0xd6af96['push']('..');}else _0xd6af96[_0xd6af96['length']-0x1]==='..'?_0xd6af96[_0x55328d(0xaf)]('..'):_0xd6af96[_0x55328d(0xb7)]();}else _0xd6af96[_0x55328d(0xaf)](_0x585b0a);}}if(_0xd6af96[_0x55328d(0xae)]===0x0)return _0x59ee13['isAbsolute']?'/':'.';const _0x2d11b1=_0xd6af96['join']('/');return _0x59ee13['raw']['startsWith']('/')?'/'+_0x2d11b1:_0x2d11b1;}export function getParentPath(_0x364735){const _0x166a80=a78_0x4b0b,_0x58c40b=parsePath(_0x364735);if(_0x58c40b[_0x166a80(0xb8)][_0x166a80(0xae)]<=0x1)return'/';const _0x59dbee=_0x58c40b[_0x166a80(0xb8)]['slice'](0x0,-0x1)['join']('/');return _0x58c40b[_0x166a80(0xa9)][_0x166a80(0xa7)]('/')?'/'+_0x59dbee:_0x59dbee;}function a78_0x4b0b(_0x100450,_0x103b5c){const _0x4b9107=a78_0x4b91();return a78_0x4b0b=function(_0x4b0b81,_0x47fe87){_0x4b0b81=_0x4b0b81-0xa6;let _0x1a7f61=_0x4b9107[_0x4b0b81];return _0x1a7f61;},a78_0x4b0b(_0x100450,_0x103b5c);}export function getBaseName(_0x674aab){const _0x21a45c=a78_0x4b0b,_0x4043e6=parsePath(_0x674aab);return _0x4043e6['segments'][_0x4043e6[_0x21a45c(0xb8)][_0x21a45c(0xae)]-0x1]||'';}export function isChildPath(_0x216ffa,_0x515fa4){const _0x5679ad=a78_0x4b0b,_0x126d66=parsePath(_0x216ffa),_0x4d75c2=parsePath(_0x515fa4);if(_0x126d66[_0x5679ad(0xb8)][_0x5679ad(0xae)]<=_0x4d75c2['segments'][_0x5679ad(0xae)])return![];for(let _0x45c6ed=0x0;_0x45c6ed<_0x4d75c2[_0x5679ad(0xb8)][_0x5679ad(0xae)];_0x45c6ed++){if(_0x126d66['segments'][_0x45c6ed]!==_0x4d75c2['segments'][_0x45c6ed])return![];}return!![];}export function splitPath(_0xdaf03c){const _0x1d8265=a78_0x4b0b,_0x391bd9=parsePath(_0xdaf03c);if(_0x391bd9[_0x1d8265(0xb8)][_0x1d8265(0xae)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x391bd9[_0x1d8265(0xb8)][_0x1d8265(0xae)]===0x1)return{'parent':_0x391bd9[_0x1d8265(0xb8)][0x0]};return{'parent':_0x391bd9[_0x1d8265(0xb8)][0x0],'child':_0x391bd9[_0x1d8265(0xb8)]['slice'](0x1)[_0x1d8265(0xac)]('/')};}
1
+ function a82_0x18a1(){const _0x52b42e=['test','935468MbnrSf','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','isAbsolute','1110950VwcYXz','701559BmPlnf','42dLpxDC','18iWNjRS','substring','96258ksqbIH','split','85434CYzkEW','132230xhEzan','push','Cannot\x20split\x20empty\x20path','2292424uYDJLi','segments','filter','length','join','Path\x20attempts\x20to\x20navigate\x20above\x20root','Cannot\x20navigate\x20above\x20root','30lslMRX','slice','Path\x20segment\x20cannot\x20be\x20empty','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','startsWith','trim','raw','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','pop','Relative\x20path\x20cannot\x20be\x20empty'];a82_0x18a1=function(){return _0x52b42e;};return a82_0x18a1();}(function(_0x2d3d2b,_0x1ba7b0){const _0x1a59b2=a82_0x3bf5,_0x17ca94=_0x2d3d2b();while(!![]){try{const _0x291af6=-parseInt(_0x1a59b2(0x17b))/0x1+-parseInt(_0x1a59b2(0x176))/0x2*(-parseInt(_0x1a59b2(0x17a))/0x3)+-parseInt(_0x1a59b2(0x190))/0x4+parseInt(_0x1a59b2(0x193))/0x5+parseInt(_0x1a59b2(0x178))/0x6*(parseInt(_0x1a59b2(0x175))/0x7)+-parseInt(_0x1a59b2(0x17e))/0x8+parseInt(_0x1a59b2(0x194))/0x9*(parseInt(_0x1a59b2(0x185))/0xa);if(_0x291af6===_0x1ba7b0)break;else _0x17ca94['push'](_0x17ca94['shift']());}catch(_0x5e97ed){_0x17ca94['push'](_0x17ca94['shift']());}}}(a82_0x18a1,0x26131));export function parsePath(_0x5c13b9){const _0x260b97=a82_0x3bf5;if(!_0x5c13b9||_0x5c13b9['trim']()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x5a81b5=_0x5c13b9['trim']();if(_0x5a81b5==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5c13b9};const _0x26f7a7=_0x5a81b5[_0x260b97(0x189)]('/')?_0x5a81b5[_0x260b97(0x177)](0x1):_0x5a81b5,_0x38a1ea=_0x26f7a7[_0x260b97(0x179)]('/')[_0x260b97(0x180)](_0x1dcd19=>_0x1dcd19!=='');if(_0x38a1ea[_0x260b97(0x181)]===0x0)throw new Error(_0x260b97(0x188));const _0xa84140=_0x5a81b5['startsWith']('/')||!isRelativePathSegment(_0x38a1ea[0x0]);for(const _0x543d5a of _0x38a1ea){validatePathSegment(_0x543d5a);}return{'segments':_0x38a1ea,'isAbsolute':_0xa84140,'raw':_0x5c13b9};}function isRelativePathSegment(_0x2c225a){return _0x2c225a==='.'||_0x2c225a==='..';}function validatePathSegment(_0x3bce0e){const _0x173205=a82_0x3bf5;if(_0x3bce0e==='')throw new Error(_0x173205(0x187));if(_0x3bce0e==='.'||_0x3bce0e==='..')return;if(/[\x00-\x1F\x7F]/[_0x173205(0x18f)](_0x3bce0e))throw new Error(_0x173205(0x18c)+_0x3bce0e);if(_0x3bce0e!==_0x3bce0e[_0x173205(0x18a)]()){}}export function validatePath(_0x3d97b0){const _0x510b6f=a82_0x3bf5;if(_0x3d97b0['segments'][_0x510b6f(0x181)]===0x0&&!_0x3d97b0[_0x510b6f(0x192)])throw new Error(_0x510b6f(0x18e));if(_0x3d97b0[_0x510b6f(0x192)]){if(_0x3d97b0[_0x510b6f(0x17f)][0x0]==='..')throw new Error(_0x510b6f(0x191));let _0x157b59=0x0;for(const _0x1728ca of _0x3d97b0[_0x510b6f(0x17f)]){if(_0x1728ca==='..'){if(_0x157b59===0x0)throw new Error(_0x510b6f(0x183));_0x157b59--;}else _0x1728ca!=='.'&&_0x157b59++;}}}export function joinPaths(_0xfd0d4f,_0x3ae1f2){const _0xe1891=a82_0x3bf5;if(!_0xfd0d4f||_0xfd0d4f==='/')return _0x3ae1f2;if(!_0x3ae1f2||_0x3ae1f2==='.')return _0xfd0d4f;if(_0x3ae1f2[_0xe1891(0x189)]('/'))return _0x3ae1f2;const _0x446814=parsePath(_0xfd0d4f),_0x190622=parsePath(_0x3ae1f2),_0x383390=[..._0x446814[_0xe1891(0x17f)]];for(const _0x2d7aa6 of _0x190622['segments']){if(_0x2d7aa6==='.')continue;else{if(_0x2d7aa6==='..'){if(_0x383390['length']===0x0)throw new Error(_0xe1891(0x184));_0x383390[_0xe1891(0x18d)]();}else _0x383390[_0xe1891(0x17c)](_0x2d7aa6);}}const _0x5dd5f2=_0x383390[_0xe1891(0x182)]('/');return _0x446814[_0xe1891(0x18b)][_0xe1891(0x189)]('/')?'/'+_0x5dd5f2:_0x5dd5f2;}export function normalizePath(_0x1de675){const _0x13090d=a82_0x3bf5,_0x5d2673=parsePath(_0x1de675),_0x1ab946=[];for(const _0x38efb2 of _0x5d2673[_0x13090d(0x17f)]){if(_0x38efb2==='.')continue;else{if(_0x38efb2==='..'){if(_0x1ab946[_0x13090d(0x181)]===0x0){if(_0x5d2673[_0x13090d(0x192)])throw new Error(_0x13090d(0x184));_0x1ab946[_0x13090d(0x17c)]('..');}else _0x1ab946[_0x1ab946['length']-0x1]==='..'?_0x1ab946[_0x13090d(0x17c)]('..'):_0x1ab946[_0x13090d(0x18d)]();}else _0x1ab946['push'](_0x38efb2);}}if(_0x1ab946[_0x13090d(0x181)]===0x0)return _0x5d2673[_0x13090d(0x192)]?'/':'.';const _0x2355f6=_0x1ab946[_0x13090d(0x182)]('/');return _0x5d2673['raw'][_0x13090d(0x189)]('/')?'/'+_0x2355f6:_0x2355f6;}export function getParentPath(_0x527e46){const _0x6dfa96=a82_0x3bf5,_0x38a543=parsePath(_0x527e46);if(_0x38a543[_0x6dfa96(0x17f)][_0x6dfa96(0x181)]<=0x1)return'/';const _0x1b1128=_0x38a543[_0x6dfa96(0x17f)][_0x6dfa96(0x186)](0x0,-0x1)[_0x6dfa96(0x182)]('/');return _0x38a543[_0x6dfa96(0x18b)][_0x6dfa96(0x189)]('/')?'/'+_0x1b1128:_0x1b1128;}export function getBaseName(_0x549858){const _0x3d23b2=a82_0x3bf5,_0x22328c=parsePath(_0x549858);return _0x22328c[_0x3d23b2(0x17f)][_0x22328c['segments'][_0x3d23b2(0x181)]-0x1]||'';}export function isChildPath(_0x3907bf,_0x3acfbd){const _0x2b555b=a82_0x3bf5,_0xa470f9=parsePath(_0x3907bf),_0x4a2a6e=parsePath(_0x3acfbd);if(_0xa470f9[_0x2b555b(0x17f)][_0x2b555b(0x181)]<=_0x4a2a6e[_0x2b555b(0x17f)]['length'])return![];for(let _0x4c65fb=0x0;_0x4c65fb<_0x4a2a6e[_0x2b555b(0x17f)][_0x2b555b(0x181)];_0x4c65fb++){if(_0xa470f9[_0x2b555b(0x17f)][_0x4c65fb]!==_0x4a2a6e[_0x2b555b(0x17f)][_0x4c65fb])return![];}return!![];}function a82_0x3bf5(_0x490441,_0x2b74d1){const _0x18a1ad=a82_0x18a1();return a82_0x3bf5=function(_0x3bf58a,_0x4f15e2){_0x3bf58a=_0x3bf58a-0x175;let _0x4ced39=_0x18a1ad[_0x3bf58a];return _0x4ced39;},a82_0x3bf5(_0x490441,_0x2b74d1);}export function splitPath(_0xb2df7a){const _0x49e3c0=a82_0x3bf5,_0xa41ae1=parsePath(_0xb2df7a);if(_0xa41ae1[_0x49e3c0(0x17f)][_0x49e3c0(0x181)]===0x0)throw new Error(_0x49e3c0(0x17d));if(_0xa41ae1[_0x49e3c0(0x17f)][_0x49e3c0(0x181)]===0x1)return{'parent':_0xa41ae1[_0x49e3c0(0x17f)][0x0]};return{'parent':_0xa41ae1[_0x49e3c0(0x17f)][0x0],'child':_0xa41ae1[_0x49e3c0(0x17f)][_0x49e3c0(0x186)](0x1)[_0x49e3c0(0x182)]('/')};}
@@ -1 +1 @@
1
- function a79_0x396e(_0x1169d9,_0x2ae096){const _0x4461ba=a79_0x4461();return a79_0x396e=function(_0x396ece,_0x4a0038){_0x396ece=_0x396ece-0x1ec;let _0x264b39=_0x4461ba[_0x396ece];return _0x264b39;},a79_0x396e(_0x1169d9,_0x2ae096);}function a79_0x4461(){const _0x24f4fa=['indexOf','358174oQOdZz','490315qrosKB','10732GfsNtJ','8fbbSGe','2828705YlbhvD','609512xESHbL','Invalid\x20segment\x20reference\x20format:\x20','704385TyYlYf','3519462GaDDJL','171yomjYe','substring'];a79_0x4461=function(){return _0x24f4fa;};return a79_0x4461();}(function(_0x895126,_0x277831){const _0x9c51e2=a79_0x396e,_0x252bd1=_0x895126();while(!![]){try{const _0x202993=-parseInt(_0x9c51e2(0x1ee))/0x1+-parseInt(_0x9c51e2(0x1f3))/0x2+parseInt(_0x9c51e2(0x1f7))/0x3*(-parseInt(_0x9c51e2(0x1f0))/0x4)+parseInt(_0x9c51e2(0x1f2))/0x5+parseInt(_0x9c51e2(0x1f6))/0x6+parseInt(_0x9c51e2(0x1ef))/0x7*(parseInt(_0x9c51e2(0x1f1))/0x8)+-parseInt(_0x9c51e2(0x1f5))/0x9;if(_0x202993===_0x277831)break;else _0x252bd1['push'](_0x252bd1['shift']());}catch(_0x59fdf9){_0x252bd1['push'](_0x252bd1['shift']());}}}(a79_0x4461,0x5022d));export function parseSegmentRef(_0x45aa06){const _0x4a27a5=a79_0x396e,_0x231408=_0x45aa06[_0x4a27a5(0x1ed)]('/');if(_0x231408===-0x1)return{'parentId':_0x45aa06};if(_0x231408===0x0)throw new Error(_0x4a27a5(0x1f4)+_0x45aa06+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x1cec1b=_0x45aa06['substring'](0x0,_0x231408),_0x324175=_0x45aa06[_0x4a27a5(0x1ec)](_0x231408+0x1);if(_0x324175==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x45aa06+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1cec1b,'childId':_0x324175};}
1
+ function a83_0x14e7(_0x31bdc1,_0x795824){const _0x10b814=a83_0x10b8();return a83_0x14e7=function(_0x14e7e5,_0x32e040){_0x14e7e5=_0x14e7e5-0x1af;let _0x9d7031=_0x10b814[_0x14e7e5];return _0x9d7031;},a83_0x14e7(_0x31bdc1,_0x795824);}(function(_0x48af3c,_0x11a5ff){const _0x543d87=a83_0x14e7,_0x47903b=_0x48af3c();while(!![]){try{const _0x1c2c7d=-parseInt(_0x543d87(0x1b1))/0x1*(parseInt(_0x543d87(0x1b0))/0x2)+-parseInt(_0x543d87(0x1af))/0x3*(-parseInt(_0x543d87(0x1b2))/0x4)+-parseInt(_0x543d87(0x1bc))/0x5*(-parseInt(_0x543d87(0x1b7))/0x6)+-parseInt(_0x543d87(0x1bb))/0x7+-parseInt(_0x543d87(0x1b6))/0x8+parseInt(_0x543d87(0x1b5))/0x9*(-parseInt(_0x543d87(0x1b9))/0xa)+parseInt(_0x543d87(0x1bd))/0xb;if(_0x1c2c7d===_0x11a5ff)break;else _0x47903b['push'](_0x47903b['shift']());}catch(_0x2c2a40){_0x47903b['push'](_0x47903b['shift']());}}}(a83_0x10b8,0x7ccb0));export function parseSegmentRef(_0x4651e5){const _0x55914c=a83_0x14e7,_0x26fab5=_0x4651e5['indexOf']('/');if(_0x26fab5===-0x1)return{'parentId':_0x4651e5};if(_0x26fab5===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x4651e5+_0x55914c(0x1b3));const _0x153587=_0x4651e5['substring'](0x0,_0x26fab5),_0x341c2e=_0x4651e5[_0x55914c(0x1b4)](_0x26fab5+0x1);if(_0x341c2e==='')throw new Error(_0x55914c(0x1b8)+_0x4651e5+_0x55914c(0x1ba));return{'parentId':_0x153587,'childId':_0x341c2e};}function a83_0x10b8(){const _0x549816=['774VwuxPn','Invalid\x20segment\x20reference\x20format:\x20','1420bTKfXT','.\x20Child\x20name\x20cannot\x20be\x20empty','1388975qzCyZF','13655qaeQcX','13416689FbmDIY','270FwqvKr','74nOQhda','12049WFGYTb','17012rScIas','.\x20Parent\x20name\x20cannot\x20be\x20empty','substring','48681xDeNad','250400vtgThO'];a83_0x10b8=function(){return _0x549816;};return a83_0x10b8();}
@@ -1 +1 @@
1
- function a80_0x25eb(){const _0x559371=['30908532JRrhhE','8113023AOiXPU','3682205msOOaV','21701mTTUTu','10PKwNkY','stdout','toFixed','stop','floor','6366ZlVwZe','39XjAaXI','isSpinning','extra','202596GxEOIJ','jobId','cyan','replace','phase','clock','2723kvThfI','now','text','...','2yXwlRh','start','8tkeJOF','9666866afiNcq'];a80_0x25eb=function(){return _0x559371;};return a80_0x25eb();}(function(_0x67fcaf,_0x20d26c){const _0x34742a=a80_0xfac7,_0x1a960c=_0x67fcaf();while(!![]){try{const _0x359160=-parseInt(_0x34742a(0x15a))/0x1*(-parseInt(_0x34742a(0x16e))/0x2)+parseInt(_0x34742a(0x161))/0x3*(-parseInt(_0x34742a(0x164))/0x4)+-parseInt(_0x34742a(0x174))/0x5+parseInt(_0x34742a(0x160))/0x6*(-parseInt(_0x34742a(0x16a))/0x7)+-parseInt(_0x34742a(0x170))/0x8*(-parseInt(_0x34742a(0x173))/0x9)+-parseInt(_0x34742a(0x15b))/0xa*(parseInt(_0x34742a(0x171))/0xb)+parseInt(_0x34742a(0x172))/0xc;if(_0x359160===_0x20d26c)break;else _0x1a960c['push'](_0x1a960c['shift']());}catch(_0x443bcf){_0x1a960c['push'](_0x1a960c['shift']());}}}(a80_0x25eb,0xc659e));import a80_0x453331 from'ora';function a80_0xfac7(_0x1973cd,_0x53171f){const _0x25eb14=a80_0x25eb();return a80_0xfac7=function(_0xfac7df,_0x123115){_0xfac7df=_0xfac7df-0x15a;let _0x4385a8=_0x25eb14[_0xfac7df];return _0x4385a8;},a80_0xfac7(_0x1973cd,_0x53171f);}export function createCommandSpinner(_0x496b16,_0x1786cb={}){const _0x44b188=a80_0xfac7,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1786cb;return a80_0x453331({'text':_0x496b16,'color':_0x44b188(0x166),'isEnabled':forceEnabled||process[_0x44b188(0x15c)]['isTTY']&&!verbose});}export async function withSpinner(_0x187029,_0x121962,_0x179b3d={}){const _0x3265aa=a80_0xfac7,_0x29aa53=_0x179b3d[_0x3265aa(0x169)]??(()=>Date[_0x3265aa(0x16b)]()),_0x3b8b26=createCommandSpinner(_0x187029,_0x179b3d);_0x3b8b26['start']();const _0x292036=_0x29aa53();try{const _0x54d63c=await _0x121962(),_0xcc2fe=_0x29aa53()-_0x292036;return _0x3b8b26['stop'](),{'data':_0x54d63c,'elapsedMs':_0xcc2fe};}catch(_0x2b7e1c){_0x3b8b26['stop']();throw _0x2b7e1c;}}export async function withQuerySpinner(_0x1e30f9,_0x34701d,_0x5a2a5e={}){const _0x24f1ec=a80_0xfac7,_0x210de7=_0x5a2a5e[_0x24f1ec(0x169)]??(()=>Date[_0x24f1ec(0x16b)]()),_0x4ef7b0=_0x5a2a5e['intervalFactory']??setInterval,_0x3f12fd=createCommandSpinner(_0x1e30f9,_0x5a2a5e);_0x3f12fd[_0x24f1ec(0x16f)]();const _0x5997c5=_0x210de7(),_0x25b88d=_0x1e30f9[_0x24f1ec(0x167)](_0x24f1ec(0x16d),''),_0x43cde6={},_0x594b5c=()=>{const _0x259469=_0x24f1ec;if(!_0x3f12fd[_0x259469(0x162)])return;const _0xa9b1a4=_0x210de7()-_0x5997c5,_0x3e0de4=formatElapsed(_0xa9b1a4),_0x5ccf8d=_0x43cde6['phase']??_0x25b88d,_0x2a2af2=_0x43cde6['jobId']?'\x20[Job\x20ID:\x20'+_0x43cde6[_0x259469(0x165)]+']':'',_0x593c97=_0x43cde6[_0x259469(0x163)]?'\x20'+_0x43cde6[_0x259469(0x163)]:'';_0x3f12fd[_0x259469(0x16c)]=_0x5ccf8d+'\x20'+_0x3e0de4+_0x593c97+_0x2a2af2;},_0xe02163=_0x4ef7b0(()=>{_0x594b5c();},0x3e8),_0x3a7c54={'setPhase':_0x76a222=>{const _0x1c896b=_0x24f1ec;_0x43cde6[_0x1c896b(0x168)]=_0x76a222,_0x594b5c();},'setJobId':_0x36a2f2=>{const _0x187afc=_0x24f1ec;_0x43cde6[_0x187afc(0x165)]=_0x36a2f2,_0x594b5c();},'setExtra':_0x11665e=>{_0x43cde6['extra']=_0x11665e,_0x594b5c();}};_0x594b5c();try{const _0x100833=await _0x34701d(_0x3a7c54),_0x4130a5=_0x210de7()-_0x5997c5;return{'data':_0x100833,'elapsedMs':_0x4130a5};}finally{clearInterval(_0xe02163),_0x3f12fd[_0x24f1ec(0x15e)]();}}export function formatElapsed(_0x4b518d){const _0x455c6a=a80_0xfac7,_0x1a898d=Math[_0x455c6a(0x15f)](_0x4b518d/0x3e8);if(_0x1a898d<0x3c)return(_0x4b518d/0x3e8)[_0x455c6a(0x15d)](0x1)+'s';const _0x4bd4bb=Math['floor'](_0x1a898d/0x3c),_0x862639=_0x1a898d%0x3c;if(_0x4bd4bb<0x3c)return _0x4bd4bb+'m\x20'+_0x862639+'s';const _0x495e18=Math['floor'](_0x4bd4bb/0x3c),_0x20de18=_0x4bd4bb%0x3c;return _0x495e18+'h\x20'+_0x20de18+'m';}
1
+ (function(_0x58d097,_0x36e280){const _0x20f0a9=a84_0x2131,_0x42bf14=_0x58d097();while(!![]){try{const _0x2121e1=parseInt(_0x20f0a9(0x1ee))/0x1+parseInt(_0x20f0a9(0x1e8))/0x2*(-parseInt(_0x20f0a9(0x1e7))/0x3)+parseInt(_0x20f0a9(0x1ea))/0x4*(-parseInt(_0x20f0a9(0x1e2))/0x5)+parseInt(_0x20f0a9(0x1e5))/0x6+parseInt(_0x20f0a9(0x1dd))/0x7*(-parseInt(_0x20f0a9(0x1e6))/0x8)+-parseInt(_0x20f0a9(0x1e4))/0x9*(-parseInt(_0x20f0a9(0x1f1))/0xa)+parseInt(_0x20f0a9(0x1e0))/0xb;if(_0x2121e1===_0x36e280)break;else _0x42bf14['push'](_0x42bf14['shift']());}catch(_0x31a741){_0x42bf14['push'](_0x42bf14['shift']());}}}(a84_0x1729,0x34ddb));import a84_0x1ba55b from'ora';export function createCommandSpinner(_0x5f478b,_0x115a9f={}){const _0x55b2a3=a84_0x2131,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x115a9f;return a84_0x1ba55b({'text':_0x5f478b,'color':_0x55b2a3(0x1ef),'isEnabled':forceEnabled||process[_0x55b2a3(0x1e9)][_0x55b2a3(0x1ec)]&&!verbose});}export async function withSpinner(_0x5efd42,_0x5b15f0,_0x4349d7={}){const _0x548e91=a84_0x2131,_0x7485c8=_0x4349d7[_0x548e91(0x1f2)]??(()=>Date['now']()),_0x492843=createCommandSpinner(_0x5efd42,_0x4349d7);_0x492843['start']();const _0x4ed00a=_0x7485c8();try{const _0x58664b=await _0x5b15f0(),_0x5a187b=_0x7485c8()-_0x4ed00a;return _0x492843[_0x548e91(0x1dc)](),{'data':_0x58664b,'elapsedMs':_0x5a187b};}catch(_0x477d0d){_0x492843[_0x548e91(0x1dc)]();throw _0x477d0d;}}function a84_0x2131(_0x104e10,_0x5b2f1d){const _0x1729b9=a84_0x1729();return a84_0x2131=function(_0x2131da,_0x2382f3){_0x2131da=_0x2131da-0x1db;let _0x5b593e=_0x1729b9[_0x2131da];return _0x5b593e;},a84_0x2131(_0x104e10,_0x5b2f1d);}export async function withQuerySpinner(_0x59f152,_0x3c2aa6,_0x1ec183={}){const _0x2c304f=a84_0x2131,_0x44de00=_0x1ec183[_0x2c304f(0x1f2)]??(()=>Date[_0x2c304f(0x1eb)]()),_0x2016a2=_0x1ec183[_0x2c304f(0x1e3)]??setInterval,_0x3a783e=createCommandSpinner(_0x59f152,_0x1ec183);_0x3a783e[_0x2c304f(0x1e1)]();const _0x355034=_0x44de00(),_0x5483e5=_0x59f152['replace']('...',''),_0x262151={},_0x334b92=()=>{const _0x6c56ef=_0x2c304f;if(!_0x3a783e['isSpinning'])return;const _0x5c0430=_0x44de00()-_0x355034,_0x591891=formatElapsed(_0x5c0430),_0xa72e86=_0x262151[_0x6c56ef(0x1f4)]??_0x5483e5,_0x381a3f=_0x262151['jobId']?_0x6c56ef(0x1f0)+_0x262151[_0x6c56ef(0x1de)]+']':'',_0x1c9a2b=_0x262151['extra']?'\x20'+_0x262151[_0x6c56ef(0x1ed)]:'';_0x3a783e[_0x6c56ef(0x1db)]=_0xa72e86+'\x20'+_0x591891+_0x1c9a2b+_0x381a3f;},_0x377c9b=_0x2016a2(()=>{_0x334b92();},0x3e8),_0x319076={'setPhase':_0x5510a8=>{_0x262151['phase']=_0x5510a8,_0x334b92();},'setJobId':_0x18dcb6=>{const _0x5d1472=_0x2c304f;_0x262151[_0x5d1472(0x1de)]=_0x18dcb6,_0x334b92();},'setExtra':_0x50d3a9=>{const _0x140394=_0x2c304f;_0x262151[_0x140394(0x1ed)]=_0x50d3a9,_0x334b92();}};_0x334b92();try{const _0x6e8585=await _0x3c2aa6(_0x319076),_0x2e0194=_0x44de00()-_0x355034;return{'data':_0x6e8585,'elapsedMs':_0x2e0194};}finally{clearInterval(_0x377c9b),_0x3a783e[_0x2c304f(0x1dc)]();}}export function formatElapsed(_0x2958e6){const _0x3d039=a84_0x2131,_0x371a7a=Math['floor'](_0x2958e6/0x3e8);if(_0x371a7a<0x3c)return(_0x2958e6/0x3e8)[_0x3d039(0x1f3)](0x1)+'s';const _0x260c8b=Math[_0x3d039(0x1df)](_0x371a7a/0x3c),_0x5909d3=_0x371a7a%0x3c;if(_0x260c8b<0x3c)return _0x260c8b+'m\x20'+_0x5909d3+'s';const _0x52192c=Math[_0x3d039(0x1df)](_0x260c8b/0x3c),_0x405935=_0x260c8b%0x3c;return _0x52192c+'h\x20'+_0x405935+'m';}function a84_0x1729(){const _0x5f0408=['301534roHPBr','cyan','\x20[Job\x20ID:\x20','421510LwuYiX','clock','toFixed','phase','text','stop','308735QnltUo','jobId','floor','609444adwzdC','start','5205tewKam','intervalFactory','54FiWiCm','1233150QZoAEU','56dGHOyy','291FQREPK','4994lDaqgj','stdout','184BmuimA','now','isTTY','extra'];a84_0x1729=function(){return _0x5f0408;};return a84_0x1729();}
@@ -1 +1 @@
1
- (function(_0x46ea01,_0x42bccf){const _0x6a37e3=a81_0x4b88,_0x263d95=_0x46ea01();while(!![]){try{const _0x35cf8f=parseInt(_0x6a37e3(0x129))/0x1+parseInt(_0x6a37e3(0x12b))/0x2*(-parseInt(_0x6a37e3(0x12c))/0x3)+-parseInt(_0x6a37e3(0x119))/0x4*(parseInt(_0x6a37e3(0x11d))/0x5)+parseInt(_0x6a37e3(0x125))/0x6*(parseInt(_0x6a37e3(0x124))/0x7)+parseInt(_0x6a37e3(0x11e))/0x8*(parseInt(_0x6a37e3(0x11f))/0x9)+-parseInt(_0x6a37e3(0x116))/0xa*(-parseInt(_0x6a37e3(0x126))/0xb)+-parseInt(_0x6a37e3(0x130))/0xc*(parseInt(_0x6a37e3(0x122))/0xd);if(_0x35cf8f===_0x42bccf)break;else _0x263d95['push'](_0x263d95['shift']());}catch(_0x2fecef){_0x263d95['push'](_0x263d95['shift']());}}}(a81_0x43b9,0x72d8f));import{readFileSync}from'fs';export function stripSqlComments(_0x2bbd07){const _0x53fd3c=a81_0x4b88;let _0x4e5a4f=_0x2bbd07[_0x53fd3c(0x131)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4e5a4f=_0x4e5a4f['replace'](/--.*$/gm,''),_0x4e5a4f[_0x53fd3c(0x11b)]();}function isEscaped(_0xe68f36,_0x9a98b){let _0x5d2f53=0x0;for(let _0x48d3e6=_0x9a98b-0x1;_0x48d3e6>=0x0&&_0xe68f36[_0x48d3e6]==='\x5c';_0x48d3e6--){_0x5d2f53++;}return _0x5d2f53%0x2===0x1;}export function splitSqlStatements(_0x540f10){const _0x56bfe8=a81_0x4b88,_0x202680=stripSqlComments(_0x540f10);if(!_0x202680)throw new Error(_0x56bfe8(0x123));const _0x5ef2ab=[];let _0x93f1f1='',_0xe0f95e=![],_0x55aee2=![],_0x188c9b=![];for(let _0x212c6f=0x0;_0x212c6f<_0x540f10[_0x56bfe8(0x11a)];_0x212c6f++){const _0x1f1ccd=_0x540f10[_0x212c6f];if(_0x1f1ccd==='\x27'&&!isEscaped(_0x540f10,_0x212c6f)&&!_0x55aee2&&!_0x188c9b)_0xe0f95e=!_0xe0f95e;else{if(_0x1f1ccd==='\x22'&&!isEscaped(_0x540f10,_0x212c6f)&&!_0xe0f95e&&!_0x188c9b)_0x55aee2=!_0x55aee2;else _0x1f1ccd==='`'&&!isEscaped(_0x540f10,_0x212c6f)&&!_0xe0f95e&&!_0x55aee2&&(_0x188c9b=!_0x188c9b);}if(_0x1f1ccd===';'&&!_0xe0f95e&&!_0x55aee2&&!_0x188c9b){const _0x1a20cc=_0x93f1f1[_0x56bfe8(0x11b)]();_0x1a20cc&&_0x5ef2ab[_0x56bfe8(0x12d)](_0x1a20cc),_0x93f1f1='';}else _0x93f1f1+=_0x1f1ccd;}const _0x2d3b76=_0x93f1f1['trim']();_0x2d3b76&&_0x5ef2ab[_0x56bfe8(0x12d)](_0x2d3b76);const _0x2ae4cc=_0x5ef2ab[_0x56bfe8(0x127)](_0x429080=>_0x429080[_0x56bfe8(0x11b)]())[_0x56bfe8(0x120)](_0x77cc3d=>{const _0x2a73ea=stripSqlComments(_0x77cc3d);return _0x2a73ea['length']>0x0;});if(_0x2ae4cc[_0x56bfe8(0x11a)]===0x0)throw new Error(_0x56bfe8(0x123));return _0x2ae4cc;}function a81_0x4b88(_0x4f607a,_0x4b779a){const _0x43b985=a81_0x43b9();return a81_0x4b88=function(_0x4b888b,_0x607255){_0x4b888b=_0x4b888b-0x116;let _0x238151=_0x43b985[_0x4b888b];return _0x238151;},a81_0x4b88(_0x4f607a,_0x4b779a);}export function readFileContent(_0x2a5472){const _0x587a25=a81_0x4b88;try{return readFileSync(_0x2a5472,_0x587a25(0x117));}catch(_0x33bb53){const _0x3c9689=_0x33bb53[_0x587a25(0x128)];if(_0x3c9689===_0x587a25(0x12f))throw new Error(_0x587a25(0x121)+_0x2a5472+_0x587a25(0x11c));else{if(_0x3c9689===_0x587a25(0x118))throw new Error(_0x587a25(0x133)+_0x2a5472+'\x27');else throw new Error(_0x587a25(0x132)+_0x2a5472+_0x587a25(0x12a)+_0x33bb53[_0x587a25(0x12e)]);}}}function a81_0x43b9(){const _0x105f21=['\x27:\x20','18346sgEkXM','84PTbZwR','push','message','ENOENT','636VthJjQ','replace','Error\x20reading\x20file\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','2041240pKVghS','utf-8','EACCES','388iHiEFp','length','trim','\x27\x20not\x20found','11535MTSwJu','2515272NJCwqS','9TiclAZ','filter','File\x20\x27','52585YbTvzr','Content\x20contains\x20no\x20SQL\x20statements','7YvmzIt','1033926lTQVpk','11GOmnPi','map','code','474569gGpXyQ'];a81_0x43b9=function(){return _0x105f21;};return a81_0x43b9();}export function readSqlStatementsFromFile(_0x39fb6e){const _0x1cd769=a81_0x4b88,_0x52af04=readFileContent(_0x39fb6e);try{return splitSqlStatements(_0x52af04);}catch(_0x112741){throw new Error(_0x1cd769(0x121)+_0x39fb6e+'\x27\x20'+_0x112741[_0x1cd769(0x12e)]['toLowerCase']());}}
1
+ (function(_0x5a91db,_0x270f49){const _0x20ffe8=a85_0x3f17,_0x5b9066=_0x5a91db();while(!![]){try{const _0x1814d7=-parseInt(_0x20ffe8(0xf4))/0x1+-parseInt(_0x20ffe8(0x105))/0x2*(-parseInt(_0x20ffe8(0xfc))/0x3)+parseInt(_0x20ffe8(0xeb))/0x4*(-parseInt(_0x20ffe8(0x106))/0x5)+-parseInt(_0x20ffe8(0xf1))/0x6*(parseInt(_0x20ffe8(0x103))/0x7)+parseInt(_0x20ffe8(0x102))/0x8+-parseInt(_0x20ffe8(0xfd))/0x9*(-parseInt(_0x20ffe8(0xed))/0xa)+parseInt(_0x20ffe8(0x107))/0xb*(parseInt(_0x20ffe8(0xfb))/0xc);if(_0x1814d7===_0x270f49)break;else _0x5b9066['push'](_0x5b9066['shift']());}catch(_0x26a77a){_0x5b9066['push'](_0x5b9066['shift']());}}}(a85_0x530b,0xea431));import{readFileSync}from'fs';function a85_0x530b(){const _0x3d33b5=['File\x20\x27','20sifcfM','filter','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','6AGgnzU','code','EACCES','1257460yAdoXA','message','push','trim','length','\x27\x20not\x20found','Content\x20contains\x20no\x20SQL\x20statements','348qZVOui','1797717VRgGHO','7616277BZcgex','ENOENT','\x27:\x20','replace','map','7080088gaLXWt','9522443bkHCJJ','toLowerCase','4CSlTAw','5ZusUej','169191OgvtCg','2578792qfHnod'];a85_0x530b=function(){return _0x3d33b5;};return a85_0x530b();}export function stripSqlComments(_0xf20fda){const _0x39315a=a85_0x3f17;let _0x4ea505=_0xf20fda[_0x39315a(0x100)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4ea505=_0x4ea505[_0x39315a(0x100)](/--.*$/gm,''),_0x4ea505[_0x39315a(0xf7)]();}function isEscaped(_0x5b3cd4,_0x10f8e7){let _0x5efa29=0x0;for(let _0x4eb7a6=_0x10f8e7-0x1;_0x4eb7a6>=0x0&&_0x5b3cd4[_0x4eb7a6]==='\x5c';_0x4eb7a6--){_0x5efa29++;}return _0x5efa29%0x2===0x1;}function a85_0x3f17(_0x377d75,_0x11b4d7){const _0x530b16=a85_0x530b();return a85_0x3f17=function(_0x3f170a,_0x245db4){_0x3f170a=_0x3f170a-0xeb;let _0x35ec36=_0x530b16[_0x3f170a];return _0x35ec36;},a85_0x3f17(_0x377d75,_0x11b4d7);}export function splitSqlStatements(_0x178848){const _0x29e095=a85_0x3f17,_0x5aa0b7=stripSqlComments(_0x178848);if(!_0x5aa0b7)throw new Error(_0x29e095(0xfa));const _0x5babf5=[];let _0x1a739a='',_0x9f046f=![],_0x4c886d=![],_0x487247=![];for(let _0x23e35b=0x0;_0x23e35b<_0x178848[_0x29e095(0xf8)];_0x23e35b++){const _0x187a99=_0x178848[_0x23e35b];if(_0x187a99==='\x27'&&!isEscaped(_0x178848,_0x23e35b)&&!_0x4c886d&&!_0x487247)_0x9f046f=!_0x9f046f;else{if(_0x187a99==='\x22'&&!isEscaped(_0x178848,_0x23e35b)&&!_0x9f046f&&!_0x487247)_0x4c886d=!_0x4c886d;else _0x187a99==='`'&&!isEscaped(_0x178848,_0x23e35b)&&!_0x9f046f&&!_0x4c886d&&(_0x487247=!_0x487247);}if(_0x187a99===';'&&!_0x9f046f&&!_0x4c886d&&!_0x487247){const _0x4fac84=_0x1a739a[_0x29e095(0xf7)]();_0x4fac84&&_0x5babf5[_0x29e095(0xf6)](_0x4fac84),_0x1a739a='';}else _0x1a739a+=_0x187a99;}const _0x270732=_0x1a739a[_0x29e095(0xf7)]();_0x270732&&_0x5babf5[_0x29e095(0xf6)](_0x270732);const _0x33bb2e=_0x5babf5[_0x29e095(0x101)](_0x154111=>_0x154111[_0x29e095(0xf7)]())[_0x29e095(0xee)](_0x1b469a=>{const _0x4bca5c=_0x29e095,_0x50dc10=stripSqlComments(_0x1b469a);return _0x50dc10[_0x4bca5c(0xf8)]>0x0;});if(_0x33bb2e[_0x29e095(0xf8)]===0x0)throw new Error(_0x29e095(0xfa));return _0x33bb2e;}export function readFileContent(_0x208ff8){const _0x41ccf9=a85_0x3f17;try{return readFileSync(_0x208ff8,_0x41ccf9(0xf0));}catch(_0x459fe0){const _0x44a80b=_0x459fe0[_0x41ccf9(0xf2)];if(_0x44a80b===_0x41ccf9(0xfe))throw new Error(_0x41ccf9(0xec)+_0x208ff8+_0x41ccf9(0xf9));else{if(_0x44a80b===_0x41ccf9(0xf3))throw new Error(_0x41ccf9(0xef)+_0x208ff8+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x208ff8+_0x41ccf9(0xff)+_0x459fe0[_0x41ccf9(0xf5)]);}}}export function readSqlStatementsFromFile(_0x3f947d){const _0x71cdb7=a85_0x3f17,_0x3eb9e4=readFileContent(_0x3f947d);try{return splitSqlStatements(_0x3eb9e4);}catch(_0x5a29a9){throw new Error(_0x71cdb7(0xec)+_0x3f947d+'\x27\x20'+_0x5a29a9[_0x71cdb7(0xf5)][_0x71cdb7(0x104)]());}}
@@ -1 +1 @@
1
- (function(_0x64362d,_0x3b9397){const _0x59ba1c=a82_0x20b8,_0x1dbe2a=_0x64362d();while(!![]){try{const _0x3fc9a3=parseInt(_0x59ba1c(0x109))/0x1*(-parseInt(_0x59ba1c(0x110))/0x2)+-parseInt(_0x59ba1c(0x10a))/0x3*(-parseInt(_0x59ba1c(0x11e))/0x4)+-parseInt(_0x59ba1c(0x120))/0x5*(-parseInt(_0x59ba1c(0x11a))/0x6)+parseInt(_0x59ba1c(0x113))/0x7+parseInt(_0x59ba1c(0x111))/0x8+parseInt(_0x59ba1c(0x108))/0x9*(-parseInt(_0x59ba1c(0x114))/0xa)+-parseInt(_0x59ba1c(0x116))/0xb;if(_0x3fc9a3===_0x3b9397)break;else _0x1dbe2a['push'](_0x1dbe2a['shift']());}catch(_0x114a88){_0x1dbe2a['push'](_0x1dbe2a['shift']());}}}(a82_0x24f7,0x386ec));export async function*parseSSEStream(_0x1ae24b,_0x15f5bc){const _0x51dfe1=a82_0x20b8;if(!_0x1ae24b[_0x51dfe1(0x10b)])throw new Error(_0x51dfe1(0x122));const _0x33845e=_0x1ae24b[_0x51dfe1(0x10b)]['getReader'](),_0x302108=new TextDecoder();let _0x11ff18='',_0x375832={};try{while(!![]){const {done:_0x1fa08d,value:_0x292d86}=await _0x33845e[_0x51dfe1(0x118)]();if(_0x1fa08d){if(_0x375832['data']){_0x15f5bc?.[_0x51dfe1(0x11c)]('[LLM\x20API\x20SSE]\x20'+_0x375832[_0x51dfe1(0x11f)]);const _0x5c0ba9=parseSSEData(_0x375832['data']);yield _0x5c0ba9;}break;}_0x11ff18+=_0x302108[_0x51dfe1(0x10e)](_0x292d86,{'stream':!![]});const _0xf14009=_0x11ff18[_0x51dfe1(0x11d)]('\x0a');_0x11ff18=_0xf14009[_0x51dfe1(0x121)]()||'';for(const _0x41dade of _0xf14009){if(_0x41dade[_0x51dfe1(0x10c)]()===''){if(_0x375832['data']){_0x15f5bc?.[_0x51dfe1(0x11c)](_0x51dfe1(0x117)+_0x375832[_0x51dfe1(0x11f)]);const _0x4e8ba8=parseSSEData(_0x375832['data']);yield _0x4e8ba8,_0x375832={};}continue;}if(_0x41dade[_0x51dfe1(0x10d)](':'))continue;const _0x51fbcb=_0x41dade[_0x51dfe1(0x112)](':');if(_0x51fbcb===-0x1)continue;const _0x4aad24=_0x41dade[_0x51dfe1(0x115)](0x0,_0x51fbcb);let _0x4db709=_0x41dade[_0x51dfe1(0x115)](_0x51fbcb+0x1);_0x4db709[_0x51dfe1(0x10d)]('\x20')&&(_0x4db709=_0x4db709[_0x51dfe1(0x115)](0x1));switch(_0x4aad24){case _0x51dfe1(0x123):_0x375832[_0x51dfe1(0x123)]=_0x4db709;break;case _0x51dfe1(0x11f):_0x375832[_0x51dfe1(0x11f)]=_0x375832[_0x51dfe1(0x11f)]?_0x375832[_0x51dfe1(0x11f)]+'\x0a'+_0x4db709:_0x4db709;break;case'id':_0x375832['id']=_0x4db709;break;}}}}finally{_0x33845e[_0x51dfe1(0x119)]();}}function a82_0x20b8(_0x3d3f3c,_0x5ba6aa){const _0x24f707=a82_0x24f7();return a82_0x20b8=function(_0x20b832,_0x54bf70){_0x20b832=_0x20b832-0x108;let _0x58be7e=_0x24f707[_0x20b832];return _0x58be7e;},a82_0x20b8(_0x3d3f3c,_0x5ba6aa);}function a82_0x24f7(){const _0x407661=['25bSoSTP','pop','Response\x20body\x20is\x20null','event','9HVseyI','73588WUqJtk','32100kBmEla','body','trim','startsWith','decode','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','2OvvXqc','273672vvTVIP','indexOf','566804YCfyHX','3741770fhHMmX','slice','1595253GTimpn','[LLM\x20API\x20SSE]\x20','read','releaseLock','401106OksWWW','parse','debug','split','140lasUEU','data'];a82_0x24f7=function(){return _0x407661;};return a82_0x24f7();}function parseSSEData(_0x342374){const _0x3cfe9a=a82_0x20b8;try{return JSON[_0x3cfe9a(0x11b)](_0x342374);}catch(_0x4d78d6){throw new Error(_0x3cfe9a(0x10f)+_0x342374,{'cause':_0x4d78d6});}}
1
+ function a86_0x3003(){const _0x1b3fcb=['decode','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','646563KVfCib','20MZhFbn','Response\x20body\x20is\x20null','3925494WQBLWE','read','6376LhlCXP','5589925wisigd','[LLM\x20API\x20SSE]\x20','2639rlrlVt','event','pop','1473252oGkhQR','93734AtUNyo','split','body','slice','trim','2238jnuFMR','getReader','startsWith','12CvLZZU','debug','7415jJEAaR','data','indexOf','17ViAwom'];a86_0x3003=function(){return _0x1b3fcb;};return a86_0x3003();}function a86_0x19a7(_0x131456,_0x158611){const _0x3003aa=a86_0x3003();return a86_0x19a7=function(_0x19a7fb,_0x5e5642){_0x19a7fb=_0x19a7fb-0x176;let _0x545777=_0x3003aa[_0x19a7fb];return _0x545777;},a86_0x19a7(_0x131456,_0x158611);}(function(_0x39d70b,_0x5519fc){const _0x15c134=a86_0x19a7,_0x5c1b9e=_0x39d70b();while(!![]){try{const _0x89756e=-parseInt(_0x15c134(0x181))/0x1*(parseInt(_0x15c134(0x190))/0x2)+-parseInt(_0x15c134(0x184))/0x3+parseInt(_0x15c134(0x18f))/0x4+parseInt(_0x15c134(0x17e))/0x5*(-parseInt(_0x15c134(0x179))/0x6)+-parseInt(_0x15c134(0x18c))/0x7*(-parseInt(_0x15c134(0x189))/0x8)+parseInt(_0x15c134(0x187))/0x9*(parseInt(_0x15c134(0x185))/0xa)+parseInt(_0x15c134(0x18a))/0xb*(parseInt(_0x15c134(0x17c))/0xc);if(_0x89756e===_0x5519fc)break;else _0x5c1b9e['push'](_0x5c1b9e['shift']());}catch(_0x38e8e4){_0x5c1b9e['push'](_0x5c1b9e['shift']());}}}(a86_0x3003,0x7621e));export async function*parseSSEStream(_0x1e6756,_0x5670da){const _0x4d080f=a86_0x19a7;if(!_0x1e6756[_0x4d080f(0x176)])throw new Error(_0x4d080f(0x186));const _0x3139b9=_0x1e6756[_0x4d080f(0x176)][_0x4d080f(0x17a)](),_0x4f6943=new TextDecoder();let _0x5e2301='',_0x548eda={};try{while(!![]){const {done:_0x2140cf,value:_0xa3b8ec}=await _0x3139b9[_0x4d080f(0x188)]();if(_0x2140cf){if(_0x548eda[_0x4d080f(0x17f)]){_0x5670da?.[_0x4d080f(0x17d)](_0x4d080f(0x18b)+_0x548eda['data']);const _0x323751=parseSSEData(_0x548eda[_0x4d080f(0x17f)]);yield _0x323751;}break;}_0x5e2301+=_0x4f6943[_0x4d080f(0x182)](_0xa3b8ec,{'stream':!![]});const _0xa28365=_0x5e2301[_0x4d080f(0x191)]('\x0a');_0x5e2301=_0xa28365[_0x4d080f(0x18e)]()||'';for(const _0x14a02e of _0xa28365){if(_0x14a02e[_0x4d080f(0x178)]()===''){if(_0x548eda[_0x4d080f(0x17f)]){_0x5670da?.[_0x4d080f(0x17d)]('[LLM\x20API\x20SSE]\x20'+_0x548eda[_0x4d080f(0x17f)]);const _0x31ff10=parseSSEData(_0x548eda[_0x4d080f(0x17f)]);yield _0x31ff10,_0x548eda={};}continue;}if(_0x14a02e[_0x4d080f(0x17b)](':'))continue;const _0xce9d56=_0x14a02e[_0x4d080f(0x180)](':');if(_0xce9d56===-0x1)continue;const _0x3f2c3d=_0x14a02e[_0x4d080f(0x177)](0x0,_0xce9d56);let _0x385c17=_0x14a02e[_0x4d080f(0x177)](_0xce9d56+0x1);_0x385c17[_0x4d080f(0x17b)]('\x20')&&(_0x385c17=_0x385c17[_0x4d080f(0x177)](0x1));switch(_0x3f2c3d){case'event':_0x548eda[_0x4d080f(0x18d)]=_0x385c17;break;case _0x4d080f(0x17f):_0x548eda[_0x4d080f(0x17f)]=_0x548eda[_0x4d080f(0x17f)]?_0x548eda['data']+'\x0a'+_0x385c17:_0x385c17;break;case'id':_0x548eda['id']=_0x385c17;break;}}}}finally{_0x3139b9['releaseLock']();}}function parseSSEData(_0x466199){const _0xd13902=a86_0x19a7;try{return JSON['parse'](_0x466199);}catch(_0x2d187a){throw new Error(_0xd13902(0x183)+_0x466199,{'cause':_0x2d187a});}}
@@ -1 +1 @@
1
- (function(_0x16eb5d,_0x3dac0f){const _0x3d64ce=a83_0x19a7,_0x220933=_0x16eb5d();while(!![]){try{const _0x356905=parseInt(_0x3d64ce(0xff))/0x1*(parseInt(_0x3d64ce(0xf7))/0x2)+parseInt(_0x3d64ce(0xfe))/0x3+-parseInt(_0x3d64ce(0xed))/0x4+parseInt(_0x3d64ce(0x104))/0x5*(-parseInt(_0x3d64ce(0xfb))/0x6)+parseInt(_0x3d64ce(0x100))/0x7*(parseInt(_0x3d64ce(0xef))/0x8)+-parseInt(_0x3d64ce(0xeb))/0x9*(parseInt(_0x3d64ce(0xfa))/0xa)+parseInt(_0x3d64ce(0xf3))/0xb*(parseInt(_0x3d64ce(0xf1))/0xc);if(_0x356905===_0x3dac0f)break;else _0x220933['push'](_0x220933['shift']());}catch(_0x3f75b0){_0x220933['push'](_0x220933['shift']());}}}(a83_0x47dd,0x52252));import a83_0x7b3c34 from'string-width';export function stringWidth(_0x5d8da9){return a83_0x7b3c34(_0x5d8da9);}export function padEnd(_0x418796,_0x59df00){const _0x5ccd16=a83_0x19a7,_0x3212e4=stringWidth(_0x418796);if(_0x3212e4>=_0x59df00)return _0x418796;return _0x418796+'\x20'[_0x5ccd16(0xf5)](_0x59df00-_0x3212e4);}export function padStart(_0x4dae8f,_0x744be6){const _0x50cef1=a83_0x19a7,_0x3d97b9=stringWidth(_0x4dae8f);if(_0x3d97b9>=_0x744be6)return _0x4dae8f;return'\x20'[_0x50cef1(0xf5)](_0x744be6-_0x3d97b9)+_0x4dae8f;}export function centerAlign(_0x303554,_0xb089e8){const _0x1a90de=a83_0x19a7,_0x412665=stringWidth(_0x303554);if(_0x412665>_0xb089e8){if(_0xb089e8<=0x1)return'…'[_0x1a90de(0xf0)](0x0,_0xb089e8);let _0xe80dfc=_0x303554;while(stringWidth(_0xe80dfc+'…')>_0xb089e8){_0xe80dfc=_0xe80dfc[_0x1a90de(0xf4)](0x0,-0x1);}return _0xe80dfc+'…';}if(_0x412665===_0xb089e8)return _0x303554;const _0x4d5b7c=_0xb089e8-_0x412665,_0x15fa58=Math[_0x1a90de(0xfc)](_0x4d5b7c/0x2),_0x329e29=_0x4d5b7c-_0x15fa58;return'\x20'['repeat'](_0x15fa58)+_0x303554+'\x20'[_0x1a90de(0xf5)](_0x329e29);}export function escapeStringLiteral(_0x161494){const _0x47d858=a83_0x19a7;if(!_0x161494||_0x161494['trim']()['length']===0x0)throw new Error(_0x47d858(0xec));const _0x4cab2=_0x161494['replace'](/'/g,'\x27\x27');return'\x27'+_0x4cab2+'\x27';}function a83_0x19a7(_0x1c4ed3,_0x3dd3a0){const _0x47ddc7=a83_0x47dd();return a83_0x19a7=function(_0x19a79d,_0x57e1ea){_0x19a79d=_0x19a79d-0xea;let _0x57f94d=_0x47ddc7[_0x19a79d];return _0x57f94d;},a83_0x19a7(_0x1c4ed3,_0x3dd3a0);}function a83_0x47dd(){const _0x4ce2bc=['\x5c$&','3224386SEMZfQ','slice','repeat','length','30242Embbko','random','toString','10PhBhSf','42SaVOYU','floor','padStart','1672023fjvVEm','21OMqsid','84287aUmQQX','toLowerCase','USERNAME','test','257395WTigYn','replace','5324031BCwmtV','Cannot\x20escape\x20empty\x20string\x20literal','1878556dAsDFL','env','392UKkMAP','substring','12ESeFlY'];a83_0x47dd=function(){return _0x4ce2bc;};return a83_0x47dd();}export function globToLike(_0x11160e){const _0x5a8195=a83_0x19a7;let _0x57c347=_0x11160e[_0x5a8195(0xea)](/\\/g,'\x5c\x5c')[_0x5a8195(0xea)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x57c347=_0x57c347[_0x5a8195(0xea)](/\*/g,'%')[_0x5a8195(0xea)](/\?/g,'_'),_0x57c347;}export function buildLikePattern(_0x592a70){const _0x544f07=a83_0x19a7;if(!_0x592a70||_0x592a70['trim']()[_0x544f07(0xf6)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x3bd8bd=globToLike(_0x592a70),_0x29d431=_0x3bd8bd[_0x544f07(0xea)](/'/g,'\x27\x27');return'\x27'+_0x29d431+'\x27';}export function matchGlobPattern(_0x93e1b3,_0xae46fe){const _0x4188c4=a83_0x19a7,_0x94348e=_0xae46fe['replace'](/[.+^${}()|[\]\\]/g,_0x4188c4(0xf2))[_0x4188c4(0xea)](/\*/g,'.*')[_0x4188c4(0xea)](/\?/g,'.'),_0x551c38=new RegExp('^'+_0x94348e+'$');return _0x551c38[_0x4188c4(0x103)](_0x93e1b3);}export function getSanitizedUsername(){const _0x14f314=a83_0x19a7,_0x6f3cf3=process[_0x14f314(0xee)]['USER']||process[_0x14f314(0xee)][_0x14f314(0x102)]||'unknown';return _0x6f3cf3['replace'](/[^a-zA-Z0-9]/g,'')[_0x14f314(0x101)]();}export function generateRandomHex(){const _0x34fdfd=a83_0x19a7,_0x4ce7d0=Math[_0x34fdfd(0xfc)](Math[_0x34fdfd(0xf8)]()*0xfffff);return _0x4ce7d0[_0x34fdfd(0xf9)](0x10)[_0x34fdfd(0xfd)](0x5,'0');}
1
+ (function(_0x46af0a,_0x266d0a){const _0x47977d=a87_0x10f0,_0xf147f1=_0x46af0a();while(!![]){try{const _0x461b70=parseInt(_0x47977d(0x194))/0x1*(parseInt(_0x47977d(0x195))/0x2)+parseInt(_0x47977d(0x18e))/0x3+-parseInt(_0x47977d(0x19f))/0x4*(-parseInt(_0x47977d(0x18f))/0x5)+parseInt(_0x47977d(0x18d))/0x6+parseInt(_0x47977d(0x196))/0x7+-parseInt(_0x47977d(0x19c))/0x8*(parseInt(_0x47977d(0x192))/0x9)+-parseInt(_0x47977d(0x190))/0xa;if(_0x461b70===_0x266d0a)break;else _0xf147f1['push'](_0xf147f1['shift']());}catch(_0x49222d){_0xf147f1['push'](_0xf147f1['shift']());}}}(a87_0x5384,0xcdb9d));import a87_0x38ecb4 from'string-width';export function stringWidth(_0x1c1023){return a87_0x38ecb4(_0x1c1023);}export function padEnd(_0x502658,_0x4d76cb){const _0x1deedf=a87_0x10f0,_0x4383ea=stringWidth(_0x502658);if(_0x4383ea>=_0x4d76cb)return _0x502658;return _0x502658+'\x20'[_0x1deedf(0x19d)](_0x4d76cb-_0x4383ea);}export function padStart(_0x3a0d9a,_0x56cfc4){const _0xab549e=stringWidth(_0x3a0d9a);if(_0xab549e>=_0x56cfc4)return _0x3a0d9a;return'\x20'['repeat'](_0x56cfc4-_0xab549e)+_0x3a0d9a;}export function centerAlign(_0x2b38d1,_0x4bc1b4){const _0x4763c4=a87_0x10f0,_0x293cfc=stringWidth(_0x2b38d1);if(_0x293cfc>_0x4bc1b4){if(_0x4bc1b4<=0x1)return'…'[_0x4763c4(0x1a7)](0x0,_0x4bc1b4);let _0x3ba1b9=_0x2b38d1;while(stringWidth(_0x3ba1b9+'…')>_0x4bc1b4){_0x3ba1b9=_0x3ba1b9[_0x4763c4(0x18c)](0x0,-0x1);}return _0x3ba1b9+'…';}if(_0x293cfc===_0x4bc1b4)return _0x2b38d1;const _0x39da28=_0x4bc1b4-_0x293cfc,_0x1528a4=Math[_0x4763c4(0x19a)](_0x39da28/0x2),_0x3e6c52=_0x39da28-_0x1528a4;return'\x20'[_0x4763c4(0x19d)](_0x1528a4)+_0x2b38d1+'\x20'['repeat'](_0x3e6c52);}export function escapeStringLiteral(_0x1cdbb4){const _0x1a118a=a87_0x10f0;if(!_0x1cdbb4||_0x1cdbb4[_0x1a118a(0x199)]()[_0x1a118a(0x1a0)]===0x0)throw new Error(_0x1a118a(0x19b));const _0x1140d4=_0x1cdbb4[_0x1a118a(0x1a3)](/'/g,'\x27\x27');return'\x27'+_0x1140d4+'\x27';}export function globToLike(_0x56c896){const _0x2a5bf2=a87_0x10f0;let _0x95b854=_0x56c896[_0x2a5bf2(0x1a3)](/\\/g,'\x5c\x5c')[_0x2a5bf2(0x1a3)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x95b854=_0x95b854[_0x2a5bf2(0x1a3)](/\*/g,'%')[_0x2a5bf2(0x1a3)](/\?/g,'_'),_0x95b854;}export function buildLikePattern(_0x115a60){const _0x11f509=a87_0x10f0;if(!_0x115a60||_0x115a60[_0x11f509(0x199)]()['length']===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x432a4d=globToLike(_0x115a60),_0x34baf0=_0x432a4d[_0x11f509(0x1a3)](/'/g,'\x27\x27');return'\x27'+_0x34baf0+'\x27';}function a87_0x5384(){const _0x487a47=['6960730ALgZAW','env','USERNAME','trim','floor','Cannot\x20escape\x20empty\x20string\x20literal','482872FlaoGq','repeat','toString','46524IDfXjD','length','USER','\x5c$&','replace','toLowerCase','random','test','substring','slice','4531794fUBRpD','2217360QWbEGh','515kmvAKU','32991150LwNjLV','padStart','90IcslEv','unknown','352852MJENcd','6TGcwNi'];a87_0x5384=function(){return _0x487a47;};return a87_0x5384();}export function matchGlobPattern(_0x24a9f0,_0x57c544){const _0x2ad945=a87_0x10f0,_0x55cae0=_0x57c544['replace'](/[.+^${}()|[\]\\]/g,_0x2ad945(0x1a2))[_0x2ad945(0x1a3)](/\*/g,'.*')[_0x2ad945(0x1a3)](/\?/g,'.'),_0x120d72=new RegExp('^'+_0x55cae0+'$');return _0x120d72[_0x2ad945(0x1a6)](_0x24a9f0);}export function getSanitizedUsername(){const _0x1a8e96=a87_0x10f0,_0x289b01=process[_0x1a8e96(0x197)][_0x1a8e96(0x1a1)]||process['env'][_0x1a8e96(0x198)]||_0x1a8e96(0x193);return _0x289b01[_0x1a8e96(0x1a3)](/[^a-zA-Z0-9]/g,'')[_0x1a8e96(0x1a4)]();}function a87_0x10f0(_0x112553,_0x2ff5ef){const _0x5384ba=a87_0x5384();return a87_0x10f0=function(_0x10f018,_0x15d810){_0x10f018=_0x10f018-0x18c;let _0x4150b9=_0x5384ba[_0x10f018];return _0x4150b9;},a87_0x10f0(_0x112553,_0x2ff5ef);}export function generateRandomHex(){const _0x52f14d=a87_0x10f0,_0x468548=Math[_0x52f14d(0x19a)](Math[_0x52f14d(0x1a5)]()*0xfffff);return _0x468548[_0x52f14d(0x19e)](0x10)[_0x52f14d(0x191)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x4177e6,_0x349dd2){const _0x5865a0=a84_0x577a,_0x1239fc=_0x4177e6();while(!![]){try{const _0x56c305=parseInt(_0x5865a0(0x106))/0x1*(-parseInt(_0x5865a0(0x10e))/0x2)+parseInt(_0x5865a0(0xfa))/0x3*(-parseInt(_0x5865a0(0x10a))/0x4)+parseInt(_0x5865a0(0x107))/0x5*(-parseInt(_0x5865a0(0x102))/0x6)+-parseInt(_0x5865a0(0x10b))/0x7*(parseInt(_0x5865a0(0x101))/0x8)+parseInt(_0x5865a0(0xf9))/0x9+parseInt(_0x5865a0(0x100))/0xa+-parseInt(_0x5865a0(0x113))/0xb*(-parseInt(_0x5865a0(0xfb))/0xc);if(_0x56c305===_0x349dd2)break;else _0x1239fc['push'](_0x1239fc['shift']());}catch(_0x422fe4){_0x1239fc['push'](_0x1239fc['shift']());}}}(a84_0x389d,0xc6a51));function hasWildcard(_0x3a7a3f){const _0x37825a=a84_0x577a;return _0x3a7a3f[_0x37825a(0xfe)]('*')||_0x3a7a3f[_0x37825a(0xfe)]('?');}export function parseTableReference(_0x59ba21){const _0x16a4a8=a84_0x577a;if(!_0x59ba21||_0x59ba21[_0x16a4a8(0xfd)]()['length']===0x0)throw new Error(_0x16a4a8(0x112));const _0x5adfc6=_0x59ba21[_0x16a4a8(0xfd)](),_0x1b7ca2={'original':_0x5adfc6},_0x2c0a67=_0x5adfc6[_0x16a4a8(0x10f)]('.');if(_0x2c0a67[_0x16a4a8(0x110)]===0x1){const _0x2845ff=_0x2c0a67[0x0];if(!_0x2845ff)throw new Error(_0x16a4a8(0x108));_0x1b7ca2[_0x16a4a8(0xfc)]=_0x2845ff;}else{if(_0x2c0a67['length']===0x2){const [_0x231a9d,_0x53287c]=_0x2c0a67;if(!_0x231a9d)throw new Error(_0x16a4a8(0x10c));if(!_0x53287c)throw new Error(_0x16a4a8(0x103));_0x1b7ca2['database']=_0x231a9d,_0x1b7ca2[_0x16a4a8(0xfc)]=_0x53287c;}else{if(_0x2c0a67[_0x16a4a8(0x110)]===0x3){const [_0x529ea0,_0x5197c7,_0x3e65e9]=_0x2c0a67;if(!_0x529ea0||!_0x5197c7||!_0x3e65e9)throw new Error(_0x16a4a8(0x111));_0x1b7ca2['catalog']=_0x529ea0,_0x1b7ca2['database']=_0x5197c7,_0x1b7ca2['table']=_0x3e65e9;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x1b7ca2;}export function formatTableReference(_0x594d3a){const _0x2e0836=a84_0x577a,_0x37ee43=[];return _0x594d3a['catalog']&&_0x37ee43[_0x2e0836(0xff)](_0x594d3a[_0x2e0836(0x109)]),_0x594d3a['database']&&_0x37ee43['push'](_0x594d3a['database']),_0x594d3a['table']&&_0x37ee43['push'](_0x594d3a[_0x2e0836(0xfc)]),_0x37ee43[_0x2e0836(0x10d)]('.');}export function validateTableListReference(_0x1e1e5a){return undefined;}function a84_0x577a(_0x41e309,_0x4b68de){const _0x389d9f=a84_0x389d();return a84_0x577a=function(_0x577a79,_0x5c9f33){_0x577a79=_0x577a79-0xf9;let _0x52d996=_0x389d9f[_0x577a79];return _0x52d996;},a84_0x577a(_0x41e309,_0x4b68de);}function a84_0x389d(){const _0x38725c=['join','4oyjvCo','split','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','44Kgnomv','7120593RAzSXU','4429389XOfMEh','8625792eBKsBe','table','trim','includes','push','12110980KAFkTA','8fVxHcg','5239482zlfHCy','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','420323yDaRWy','5zOStDB','Pattern\x20cannot\x20be\x20just\x20a\x20dot','catalog','4KTHXbX','6114738fNVUIc','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)'];a84_0x389d=function(){return _0x38725c;};return a84_0x389d();}export function validateTableDescribeReference(_0x36d4e9){const _0x4a32d6=a84_0x577a;if(!_0x36d4e9['table'])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x36d4e9[_0x4a32d6(0x104)]&&hasWildcard(_0x36d4e9[_0x4a32d6(0x104)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x36d4e9['table']))return _0x4a32d6(0x105);return undefined;}
1
+ (function(_0x4fa1b3,_0x4ddd50){const _0x42e776=a88_0x49f3,_0x401c1d=_0x4fa1b3();while(!![]){try{const _0x22070d=-parseInt(_0x42e776(0x13b))/0x1*(parseInt(_0x42e776(0x12d))/0x2)+parseInt(_0x42e776(0x135))/0x3*(-parseInt(_0x42e776(0x134))/0x4)+parseInt(_0x42e776(0x141))/0x5+-parseInt(_0x42e776(0x13d))/0x6+-parseInt(_0x42e776(0x138))/0x7+parseInt(_0x42e776(0x139))/0x8+parseInt(_0x42e776(0x13a))/0x9;if(_0x22070d===_0x4ddd50)break;else _0x401c1d['push'](_0x401c1d['shift']());}catch(_0x3ba8d4){_0x401c1d['push'](_0x401c1d['shift']());}}}(a88_0x27e4,0x8e067));function a88_0x49f3(_0x2bb85d,_0x2552d1){const _0x27e433=a88_0x27e4();return a88_0x49f3=function(_0x49f3ff,_0x974ff7){_0x49f3ff=_0x49f3ff-0x12b;let _0xc8125b=_0x27e433[_0x49f3ff];return _0xc8125b;},a88_0x49f3(_0x2bb85d,_0x2552d1);}function hasWildcard(_0x2c8dbc){const _0x592d7d=a88_0x49f3;return _0x2c8dbc['includes']('*')||_0x2c8dbc[_0x592d7d(0x140)]('?');}export function parseTableReference(_0x3fc36f){const _0x1e8ea7=a88_0x49f3;if(!_0x3fc36f||_0x3fc36f[_0x1e8ea7(0x13f)]()['length']===0x0)throw new Error(_0x1e8ea7(0x143));const _0x2a6561=_0x3fc36f[_0x1e8ea7(0x13f)](),_0x36f868={'original':_0x2a6561},_0x1b1590=_0x2a6561['split']('.');if(_0x1b1590[_0x1e8ea7(0x12e)]===0x1){const _0x223921=_0x1b1590[0x0];if(!_0x223921)throw new Error(_0x1e8ea7(0x132));_0x36f868[_0x1e8ea7(0x13c)]=_0x223921;}else{if(_0x1b1590[_0x1e8ea7(0x12e)]===0x2){const [_0xe2e6b7,_0x22bf22]=_0x1b1590;if(!_0xe2e6b7)throw new Error(_0x1e8ea7(0x12c));if(!_0x22bf22)throw new Error(_0x1e8ea7(0x142));_0x36f868['database']=_0xe2e6b7,_0x36f868['table']=_0x22bf22;}else{if(_0x1b1590['length']===0x3){const [_0x138da0,_0x4d01ec,_0x4cd02e]=_0x1b1590;if(!_0x138da0||!_0x4d01ec||!_0x4cd02e)throw new Error(_0x1e8ea7(0x13e));_0x36f868['catalog']=_0x138da0,_0x36f868[_0x1e8ea7(0x12f)]=_0x4d01ec,_0x36f868[_0x1e8ea7(0x13c)]=_0x4cd02e;}else throw new Error(_0x1e8ea7(0x133));}}return _0x36f868;}export function formatTableReference(_0x479920){const _0x10cacc=a88_0x49f3,_0x77222b=[];return _0x479920['catalog']&&_0x77222b[_0x10cacc(0x131)](_0x479920[_0x10cacc(0x12b)]),_0x479920[_0x10cacc(0x12f)]&&_0x77222b[_0x10cacc(0x131)](_0x479920[_0x10cacc(0x12f)]),_0x479920[_0x10cacc(0x13c)]&&_0x77222b[_0x10cacc(0x131)](_0x479920[_0x10cacc(0x13c)]),_0x77222b[_0x10cacc(0x137)]('.');}function a88_0x27e4(){const _0x1c73e1=['Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1940780WhenSQ','3LSDlIy','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','join','5874680kDIJBj','8698680CVDlfW','7250481WQIXXZ','2443aGIvye','table','5381310RlVrCs','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','trim','includes','5417820KWoUfX','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','catalog','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','142upZboG','length','database','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','push','Pattern\x20cannot\x20be\x20just\x20a\x20dot'];a88_0x27e4=function(){return _0x1c73e1;};return a88_0x27e4();}export function validateTableListReference(_0x2da4bf){return undefined;}export function validateTableDescribeReference(_0x599209){const _0x396741=a88_0x49f3;if(!_0x599209['table'])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x599209[_0x396741(0x12f)]&&hasWildcard(_0x599209[_0x396741(0x12f)]))return _0x396741(0x130);if(hasWildcard(_0x599209[_0x396741(0x13c)]))return _0x396741(0x136);return undefined;}
@@ -1 +1 @@
1
- const a85_0x18f50d=a85_0x416b;function a85_0x416b(_0x3c660e,_0x5406e4){const _0x3f04a6=a85_0x3f04();return a85_0x416b=function(_0x416b8f,_0x4504c0){_0x416b8f=_0x416b8f-0x120;let _0x150b93=_0x3f04a6[_0x416b8f];return _0x150b93;},a85_0x416b(_0x3c660e,_0x5406e4);}(function(_0x45aa88,_0x230cd6){const _0x1f5736=a85_0x416b,_0x42fc5f=_0x45aa88();while(!![]){try{const _0x231828=parseInt(_0x1f5736(0x139))/0x1*(-parseInt(_0x1f5736(0x159))/0x2)+-parseInt(_0x1f5736(0x12e))/0x3+-parseInt(_0x1f5736(0x148))/0x4+parseInt(_0x1f5736(0x150))/0x5+-parseInt(_0x1f5736(0x14d))/0x6+-parseInt(_0x1f5736(0x143))/0x7*(-parseInt(_0x1f5736(0x137))/0x8)+parseInt(_0x1f5736(0x127))/0x9*(parseInt(_0x1f5736(0x142))/0xa);if(_0x231828===_0x230cd6)break;else _0x42fc5f['push'](_0x42fc5f['shift']());}catch(_0x357cfa){_0x42fc5f['push'](_0x42fc5f['shift']());}}}(a85_0x3f04,0x94a79));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a85_0x3f04(){const _0x4f6222=['getHours','debug','toISOString','stack','640602aPMNtY','trace','DEBUG','rotateOldLogs','end','tdx','.log','write','tdx.log','3087ClXHjA','name','join','error','logStream','split','gray','340812SwUsrT','getLogPath','WARN','getMilliseconds','mtime','abs','Proxy\x20session\x20ended','getTimezoneOffset','info','2200RdtOBb','.cache','2IIRjxV','warn','yellow','fileOnly','getMonth','includes','logDir','logLevel','getMinutes','14730OmcCYO','26740CZXmSJ','getDate','map','.gz','Warning:\x20Error\x20writing\x20to\x20tdx.log:','261952jBpDcd','test','cyan','red','toString','2571840BFXbMd','INFO','Warning:\x20Failed\x20to\x20compress\x20','1507420cQktiX','message','padStart','TRACE','close'];a85_0x3f04=function(){return _0x4f6222;};return a85_0x3f04();}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a85_0x39e15d from'chalk';function safeStringify(_0x4fb058){const _0x208fea=a85_0x416b;if(typeof _0x4fb058==='string')return _0x4fb058;if(_0x4fb058 instanceof Error)return _0x4fb058['stack']||_0x4fb058[_0x208fea(0x128)]+':\x20'+_0x4fb058[_0x208fea(0x151)];try{return JSON['stringify'](_0x4fb058,(_0x408cdd,_0x3be709)=>{const _0x1b0f56=_0x208fea;if(_0x3be709 instanceof Error)return{'name':_0x3be709['name'],'message':_0x3be709['message'],'stack':_0x3be709[_0x1b0f56(0x158)],'cause':_0x3be709['cause']};return _0x3be709;});}catch{return String(_0x4fb058);}}function getTimezoneOffset(){const _0x51a687=a85_0x416b,_0x548315=-new Date()[_0x51a687(0x135)](),_0x4dbd10=Math['floor'](Math[_0x51a687(0x133)](_0x548315)/0x3c),_0x47df64=Math[_0x51a687(0x133)](_0x548315)%0x3c,_0x53bd1c=_0x548315>=0x0?'+':'-';return''+_0x53bd1c+_0x4dbd10[_0x51a687(0x14c)]()[_0x51a687(0x152)](0x2,'0')+_0x47df64['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0x1fa4af=a85_0x416b,_0x17aaf5=new Date(),_0x1bdb1d=_0x17aaf5['getFullYear'](),_0x21fcb8=(_0x17aaf5[_0x1fa4af(0x13d)]()+0x1)['toString']()[_0x1fa4af(0x152)](0x2,'0'),_0x1a5397=_0x17aaf5[_0x1fa4af(0x144)]()[_0x1fa4af(0x14c)]()[_0x1fa4af(0x152)](0x2,'0'),_0xd6cdd0=_0x17aaf5[_0x1fa4af(0x155)]()[_0x1fa4af(0x14c)]()[_0x1fa4af(0x152)](0x2,'0'),_0x2b80b0=_0x17aaf5[_0x1fa4af(0x141)]()[_0x1fa4af(0x14c)]()[_0x1fa4af(0x152)](0x2,'0'),_0x43861e=_0x17aaf5['getSeconds']()[_0x1fa4af(0x14c)]()[_0x1fa4af(0x152)](0x2,'0'),_0x42b724=_0x17aaf5[_0x1fa4af(0x131)]()[_0x1fa4af(0x14c)]()[_0x1fa4af(0x152)](0x3,'0'),_0x2ec497=getTimezoneOffset();return _0x1bdb1d+'-'+_0x21fcb8+'-'+_0x1a5397+'\x20'+_0xd6cdd0+':'+_0x2b80b0+':'+_0x43861e+'.'+_0x42b724+_0x2ec497;}function formatColoredLogEntry(_0x1e2fce,_0x39b807){const _0x33a6ca=a85_0x416b,_0x38ab60=formatTimestamp(),_0x4f9920=_0x39b807[_0x33a6ca(0x145)](safeStringify)[_0x33a6ca(0x129)]('\x20'),_0x1227a7=a85_0x39e15d[_0x33a6ca(0x12d)](_0x38ab60);let _0x52d7e0;switch(_0x1e2fce){case _0x33a6ca(0x136):_0x52d7e0=a85_0x39e15d[_0x33a6ca(0x14a)]('['+_0x1e2fce+']\x20');break;case'warn':_0x52d7e0=a85_0x39e15d[_0x33a6ca(0x13b)]('['+_0x1e2fce+']\x20');break;case _0x33a6ca(0x12a):_0x52d7e0=a85_0x39e15d[_0x33a6ca(0x14b)]('['+_0x1e2fce+']');break;case'debug':_0x52d7e0=a85_0x39e15d[_0x33a6ca(0x12d)]('['+_0x1e2fce+']');break;default:_0x52d7e0='['+_0x1e2fce+']';}return _0x1227a7+'\x20'+_0x52d7e0+'\x20'+_0x4f9920;}export var LogLevel;(function(_0x3eb2bb){const _0x5f1bea=a85_0x416b;_0x3eb2bb[_0x3eb2bb[_0x5f1bea(0x153)]=-0x2]='TRACE',_0x3eb2bb[_0x3eb2bb[_0x5f1bea(0x120)]=-0x1]=_0x5f1bea(0x120),_0x3eb2bb[_0x3eb2bb['INFO']=0x0]=_0x5f1bea(0x14e),_0x3eb2bb[_0x3eb2bb[_0x5f1bea(0x130)]=0x1]=_0x5f1bea(0x130),_0x3eb2bb[_0x3eb2bb['ERROR']=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a85_0x18f50d(0x12b)];[a85_0x18f50d(0x13f)];[a85_0x18f50d(0x140)];['fileOnly'];constructor(_0x3c3df5=LogLevel['INFO'],_0xb3f03b=![]){const _0x4be9f5=a85_0x18f50d;this[_0x4be9f5(0x13f)]=join(homedir(),_0x4be9f5(0x138),_0x4be9f5(0x123),'logs'),this[_0x4be9f5(0x140)]=_0x3c3df5,this[_0x4be9f5(0x13c)]=_0xb3f03b;}async['init'](){const _0x646f7=a85_0x18f50d;try{await mkdir(this[_0x646f7(0x13f)],{'recursive':!![]}),await this[_0x646f7(0x121)]();const _0x5fe296=join(this[_0x646f7(0x13f)],_0x646f7(0x126));this[_0x646f7(0x12b)]=createWriteStream(_0x5fe296,{'flags':'a'}),this[_0x646f7(0x12b)]['on'](_0x646f7(0x12a),_0x4ad734=>{const _0x34016c=_0x646f7;console[_0x34016c(0x12a)](_0x34016c(0x147),_0x4ad734[_0x34016c(0x151)]);});}catch(_0x54002e){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20files:',_0x54002e);}}async[a85_0x18f50d(0x121)](){const _0x487a56=a85_0x18f50d;try{const _0x5db427=await readdir(this[_0x487a56(0x13f)]),_0x451dd0=new Date()[_0x487a56(0x157)]()['split']('T')[0x0];if(_0x5db427[_0x487a56(0x13e)](_0x487a56(0x126))){const _0x4b0fac=join(this[_0x487a56(0x13f)],'tdx.log'),_0x54e98e=await stat(_0x4b0fac),_0x5d6de1=new Date(_0x54e98e[_0x487a56(0x132)])[_0x487a56(0x157)]()[_0x487a56(0x12c)]('T')[0x0];if(_0x5d6de1<_0x451dd0){const _0x5493bc=join(this[_0x487a56(0x13f)],'tdx-'+_0x5d6de1+_0x487a56(0x124));await rename(_0x4b0fac,_0x5493bc);}}const _0x2ba507=await readdir(this[_0x487a56(0x13f)]),_0x1e8df3=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x2c2795=_0x2ba507['filter'](_0x3297c2=>_0x1e8df3[_0x487a56(0x149)](_0x3297c2));for(const _0x2aa9e2 of _0x2c2795){const _0x3e5811=join(this['logDir'],_0x2aa9e2),_0x8bb4df=join(this[_0x487a56(0x13f)],_0x2aa9e2+_0x487a56(0x146));try{await pipeline(createReadStream(_0x3e5811),createGzip(),createWriteStream(_0x8bb4df)),await unlink(_0x3e5811);}catch(_0x4fc62f){console[_0x487a56(0x12a)](_0x487a56(0x14f)+_0x2aa9e2+':',_0x4fc62f);}}}catch{}}[a85_0x18f50d(0x156)](..._0x1a8eda){const _0x51d88a=a85_0x18f50d;if(this[_0x51d88a(0x140)]>LogLevel[_0x51d88a(0x120)])return;const _0x298d95=formatColoredLogEntry(_0x51d88a(0x156),_0x1a8eda);this[_0x51d88a(0x12b)]?.['write'](_0x298d95+'\x0a');}[a85_0x18f50d(0x15a)](..._0x5b6b92){const _0x21b349=a85_0x18f50d;if(this[_0x21b349(0x140)]>LogLevel[_0x21b349(0x153)])return;const _0x493182=formatColoredLogEntry(_0x21b349(0x15a),_0x5b6b92);this[_0x21b349(0x12b)]?.['write'](_0x493182+'\x0a');}[a85_0x18f50d(0x136)](..._0xf067b4){const _0x37618e=a85_0x18f50d;if(this[_0x37618e(0x140)]>LogLevel[_0x37618e(0x14e)])return;const _0x311fe7=formatColoredLogEntry(_0x37618e(0x136),_0xf067b4);!this[_0x37618e(0x13c)]&&console['log'](_0x311fe7),this[_0x37618e(0x12b)]?.[_0x37618e(0x125)](_0x311fe7+'\x0a');}[a85_0x18f50d(0x13a)](..._0x4d68af){const _0x20f384=a85_0x18f50d;if(this[_0x20f384(0x140)]>LogLevel['WARN'])return;const _0x46235a=formatColoredLogEntry(_0x20f384(0x13a),_0x4d68af);!this['fileOnly']&&console[_0x20f384(0x12a)](_0x46235a),this[_0x20f384(0x12b)]?.['write'](_0x46235a+'\x0a');}[a85_0x18f50d(0x12a)](..._0x24e540){const _0x540129=a85_0x18f50d,_0x4d907c=formatColoredLogEntry('error',_0x24e540);!this[_0x540129(0x13c)]&&console[_0x540129(0x12a)](_0x4d907c),this[_0x540129(0x12b)]?.[_0x540129(0x125)](_0x4d907c+'\x0a');}async[a85_0x18f50d(0x154)](){const _0x5f5b15=a85_0x18f50d;return this['info'](_0x5f5b15(0x134)),new Promise(_0x209f18=>{const _0x3fbf33=_0x5f5b15;this[_0x3fbf33(0x12b)]?this['logStream'][_0x3fbf33(0x122)](()=>{_0x209f18();}):_0x209f18();});}[a85_0x18f50d(0x12f)](){const _0x418d20=a85_0x18f50d;return join(this[_0x418d20(0x13f)],_0x418d20(0x126));}}
1
+ const a89_0x3389d3=a89_0x500b;(function(_0x5b12ea,_0x12c474){const _0xa7f887=a89_0x500b,_0xe36d2a=_0x5b12ea();while(!![]){try{const _0x390530=parseInt(_0xa7f887(0x1da))/0x1+parseInt(_0xa7f887(0x1cb))/0x2+-parseInt(_0xa7f887(0x1f0))/0x3*(parseInt(_0xa7f887(0x1f6))/0x4)+parseInt(_0xa7f887(0x1e4))/0x5*(parseInt(_0xa7f887(0x1d4))/0x6)+-parseInt(_0xa7f887(0x1d3))/0x7*(parseInt(_0xa7f887(0x1e8))/0x8)+parseInt(_0xa7f887(0x1d5))/0x9*(parseInt(_0xa7f887(0x200))/0xa)+-parseInt(_0xa7f887(0x1e0))/0xb;if(_0x390530===_0x12c474)break;else _0xe36d2a['push'](_0xe36d2a['shift']());}catch(_0x29e72e){_0xe36d2a['push'](_0xe36d2a['shift']());}}}(a89_0x5309,0x742bb));import{createWriteStream,createReadStream}from'fs';function a89_0x5309(){const _0x270d6d=['rotateOldLogs','768568RQenOl','abs','getHours','cyan','getTimezoneOffset','cause','13649119PdJyyC','close','message','error','260WyDAcF','Warning:\x20Error\x20writing\x20to\x20tdx.log:','split','floor','112huqcAN','.cache','init','join','WARN','padStart','filter','tdx.log','42dyqNbk','gray','getLogPath','DEBUG','getMilliseconds','toISOString','47684QVJXJe','fileOnly','getMonth','getSeconds','logDir','getFullYear','INFO','logLevel','trace','logStream','10QWZWcp','write','.gz','logs','info','.log','name','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','Proxy\x20session\x20ended','TRACE','stringify','yellow','979704uJVGNq','red','debug','test','tdx-','warn','toString','ERROR','269325VThIBb','39546tRkQuZ','7389504XhoUiX','Warning:\x20Failed\x20to\x20compress\x20','includes','mtime'];a89_0x5309=function(){return _0x270d6d;};return a89_0x5309();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a89_0x25af63 from'chalk';function safeStringify(_0x2ae290){const _0x5e00ba=a89_0x500b;if(typeof _0x2ae290==='string')return _0x2ae290;if(_0x2ae290 instanceof Error)return _0x2ae290['stack']||_0x2ae290[_0x5e00ba(0x1c5)]+':\x20'+_0x2ae290[_0x5e00ba(0x1e2)];try{return JSON[_0x5e00ba(0x1c9)](_0x2ae290,(_0x168297,_0x2a7730)=>{const _0x4a0371=_0x5e00ba;if(_0x2a7730 instanceof Error)return{'name':_0x2a7730['name'],'message':_0x2a7730[_0x4a0371(0x1e2)],'stack':_0x2a7730['stack'],'cause':_0x2a7730[_0x4a0371(0x1df)]};return _0x2a7730;});}catch{return String(_0x2ae290);}}function getTimezoneOffset(){const _0x1002f3=a89_0x500b,_0x1a28bd=-new Date()[_0x1002f3(0x1de)](),_0xee3076=Math[_0x1002f3(0x1e7)](Math[_0x1002f3(0x1db)](_0x1a28bd)/0x3c),_0x3621bf=Math[_0x1002f3(0x1db)](_0x1a28bd)%0x3c,_0x364bad=_0x1a28bd>=0x0?'+':'-';return''+_0x364bad+_0xee3076['toString']()[_0x1002f3(0x1ed)](0x2,'0')+_0x3621bf[_0x1002f3(0x1d1)]()[_0x1002f3(0x1ed)](0x2,'0');}function formatTimestamp(){const _0x26ead1=a89_0x500b,_0x4f0c11=new Date(),_0x11056d=_0x4f0c11[_0x26ead1(0x1fb)](),_0x4f3607=(_0x4f0c11[_0x26ead1(0x1f8)]()+0x1)[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0x338330=_0x4f0c11['getDate']()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0x3f10ff=_0x4f0c11[_0x26ead1(0x1dc)]()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0xd44361=_0x4f0c11['getMinutes']()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0x41a994=_0x4f0c11[_0x26ead1(0x1f9)]()['toString']()[_0x26ead1(0x1ed)](0x2,'0'),_0x39992a=_0x4f0c11[_0x26ead1(0x1f4)]()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x3,'0'),_0x2d6894=getTimezoneOffset();return _0x11056d+'-'+_0x4f3607+'-'+_0x338330+'\x20'+_0x3f10ff+':'+_0xd44361+':'+_0x41a994+'.'+_0x39992a+_0x2d6894;}function a89_0x500b(_0x51f1ad,_0x4a966a){const _0x53090d=a89_0x5309();return a89_0x500b=function(_0x500b41,_0x22d55b){_0x500b41=_0x500b41-0x1c5;let _0xea2159=_0x53090d[_0x500b41];return _0xea2159;},a89_0x500b(_0x51f1ad,_0x4a966a);}function formatColoredLogEntry(_0x491521,_0x221c15){const _0x2ab4c2=a89_0x500b,_0x17bd77=formatTimestamp(),_0x4909e8=_0x221c15['map'](safeStringify)[_0x2ab4c2(0x1eb)]('\x20'),_0x4e8801=a89_0x25af63['gray'](_0x17bd77);let _0x5657b0;switch(_0x491521){case _0x2ab4c2(0x204):_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1dd)]('['+_0x491521+']\x20');break;case'warn':_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1ca)]('['+_0x491521+']\x20');break;case _0x2ab4c2(0x1e3):_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1cc)]('['+_0x491521+']');break;case _0x2ab4c2(0x1cd):_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1f1)]('['+_0x491521+']');break;default:_0x5657b0='['+_0x491521+']';}return _0x4e8801+'\x20'+_0x5657b0+'\x20'+_0x4909e8;}export var LogLevel;(function(_0x19ab41){const _0x30d174=a89_0x500b;_0x19ab41[_0x19ab41[_0x30d174(0x1c8)]=-0x2]='TRACE',_0x19ab41[_0x19ab41[_0x30d174(0x1f3)]=-0x1]=_0x30d174(0x1f3),_0x19ab41[_0x19ab41[_0x30d174(0x1fc)]=0x0]='INFO',_0x19ab41[_0x19ab41['WARN']=0x1]=_0x30d174(0x1ec),_0x19ab41[_0x19ab41[_0x30d174(0x1d2)]=0x2]=_0x30d174(0x1d2);}(LogLevel||(LogLevel={})));export class TDXLogger{[a89_0x3389d3(0x1ff)];[a89_0x3389d3(0x1fa)];[a89_0x3389d3(0x1fd)];[a89_0x3389d3(0x1f7)];constructor(_0x179e1a=LogLevel[a89_0x3389d3(0x1fc)],_0x6799f9=![]){const _0x4d545a=a89_0x3389d3;this['logDir']=join(homedir(),_0x4d545a(0x1e9),'tdx',_0x4d545a(0x203)),this[_0x4d545a(0x1fd)]=_0x179e1a,this[_0x4d545a(0x1f7)]=_0x6799f9;}async[a89_0x3389d3(0x1ea)](){const _0x580ab0=a89_0x3389d3;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x580ab0(0x1d9)]();const _0xba39c4=join(this[_0x580ab0(0x1fa)],'tdx.log');this[_0x580ab0(0x1ff)]=createWriteStream(_0xba39c4,{'flags':'a'}),this[_0x580ab0(0x1ff)]['on'](_0x580ab0(0x1e3),_0x4eb037=>{const _0x5ce2c7=_0x580ab0;console['error'](_0x5ce2c7(0x1e5),_0x4eb037[_0x5ce2c7(0x1e2)]);});}catch(_0x6bb978){console['error'](_0x580ab0(0x1c6),_0x6bb978);}}async[a89_0x3389d3(0x1d9)](){const _0x41389d=a89_0x3389d3;try{const _0x589a72=await readdir(this['logDir']),_0x5373cb=new Date()[_0x41389d(0x1f5)]()[_0x41389d(0x1e6)]('T')[0x0];if(_0x589a72[_0x41389d(0x1d7)](_0x41389d(0x1ef))){const _0x52c84b=join(this[_0x41389d(0x1fa)],'tdx.log'),_0x2f1110=await stat(_0x52c84b),_0x3e4f0b=new Date(_0x2f1110[_0x41389d(0x1d8)])[_0x41389d(0x1f5)]()[_0x41389d(0x1e6)]('T')[0x0];if(_0x3e4f0b<_0x5373cb){const _0x4e3c91=join(this[_0x41389d(0x1fa)],_0x41389d(0x1cf)+_0x3e4f0b+_0x41389d(0x205));await rename(_0x52c84b,_0x4e3c91);}}const _0x35680a=await readdir(this['logDir']),_0x43485a=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x4eb510=_0x35680a[_0x41389d(0x1ee)](_0x21a7a6=>_0x43485a[_0x41389d(0x1ce)](_0x21a7a6));for(const _0x20e3d1 of _0x4eb510){const _0x1cb767=join(this['logDir'],_0x20e3d1),_0x27d17c=join(this[_0x41389d(0x1fa)],_0x20e3d1+_0x41389d(0x202));try{await pipeline(createReadStream(_0x1cb767),createGzip(),createWriteStream(_0x27d17c)),await unlink(_0x1cb767);}catch(_0xb956f7){console[_0x41389d(0x1e3)](_0x41389d(0x1d6)+_0x20e3d1+':',_0xb956f7);}}}catch{}}[a89_0x3389d3(0x1cd)](..._0x1590d0){const _0x506fb1=a89_0x3389d3;if(this[_0x506fb1(0x1fd)]>LogLevel['DEBUG'])return;const _0x3a34b8=formatColoredLogEntry('debug',_0x1590d0);this[_0x506fb1(0x1ff)]?.[_0x506fb1(0x201)](_0x3a34b8+'\x0a');}[a89_0x3389d3(0x1fe)](..._0x2c3df3){const _0x2aad03=a89_0x3389d3;if(this[_0x2aad03(0x1fd)]>LogLevel['TRACE'])return;const _0x403162=formatColoredLogEntry(_0x2aad03(0x1fe),_0x2c3df3);this[_0x2aad03(0x1ff)]?.[_0x2aad03(0x201)](_0x403162+'\x0a');}[a89_0x3389d3(0x204)](..._0x383492){const _0x5571e3=a89_0x3389d3;if(this[_0x5571e3(0x1fd)]>LogLevel[_0x5571e3(0x1fc)])return;const _0x4b3cf2=formatColoredLogEntry(_0x5571e3(0x204),_0x383492);!this['fileOnly']&&console['log'](_0x4b3cf2),this[_0x5571e3(0x1ff)]?.[_0x5571e3(0x201)](_0x4b3cf2+'\x0a');}[a89_0x3389d3(0x1d0)](..._0x3ee287){const _0x466242=a89_0x3389d3;if(this[_0x466242(0x1fd)]>LogLevel[_0x466242(0x1ec)])return;const _0x3dc8a1=formatColoredLogEntry('warn',_0x3ee287);!this[_0x466242(0x1f7)]&&console['error'](_0x3dc8a1),this[_0x466242(0x1ff)]?.[_0x466242(0x201)](_0x3dc8a1+'\x0a');}['error'](..._0xca9b19){const _0x4d6fa7=a89_0x3389d3,_0x17478d=formatColoredLogEntry('error',_0xca9b19);!this[_0x4d6fa7(0x1f7)]&&console['error'](_0x17478d),this[_0x4d6fa7(0x1ff)]?.['write'](_0x17478d+'\x0a');}async[a89_0x3389d3(0x1e1)](){const _0x1c1fe1=a89_0x3389d3;return this[_0x1c1fe1(0x204)](_0x1c1fe1(0x1c7)),new Promise(_0x5c12eb=>{this['logStream']?this['logStream']['end'](()=>{_0x5c12eb();}):_0x5c12eb();});}[a89_0x3389d3(0x1f2)](){const _0x25ddd3=a89_0x3389d3;return join(this[_0x25ddd3(0x1fa)],_0x25ddd3(0x1ef));}}