@treasuredata/tdx 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-api-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-api-client.d.ts.map +1 -1
  6. package/dist/client/llm-api-client.js +1 -1
  7. package/dist/client/llm-api-client.js.map +1 -1
  8. package/dist/client/rate-limiter.js +1 -1
  9. package/dist/client/td-api-client.js +1 -1
  10. package/dist/client/trino-api-client.js +1 -1
  11. package/dist/client/workflow-client.js +1 -1
  12. package/dist/commands/activations.js +1 -1
  13. package/dist/commands/api-command.js +1 -1
  14. package/dist/commands/auth-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/context-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/llm-proxy.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profiles-command.js +1 -1
  26. package/dist/commands/query-command.js +1 -1
  27. package/dist/commands/segment-command.js +1 -1
  28. package/dist/commands/segment-create-command.js +1 -1
  29. package/dist/commands/segment-fields-command.js +1 -1
  30. package/dist/commands/segment-pwd-command.js +1 -1
  31. package/dist/commands/segment-update-command.js +1 -1
  32. package/dist/commands/segment-use-command.js +1 -1
  33. package/dist/commands/segments.js +1 -1
  34. package/dist/commands/show.js +1 -1
  35. package/dist/commands/tables.js +1 -1
  36. package/dist/commands/use-command.js +1 -1
  37. package/dist/commands/workflow-command.js +1 -1
  38. package/dist/core/auth.js +1 -1
  39. package/dist/core/config.js +1 -1
  40. package/dist/core/credential-cache.js +1 -1
  41. package/dist/core/global-context.js +1 -1
  42. package/dist/core/keychain.js +1 -1
  43. package/dist/core/profile.js +1 -1
  44. package/dist/core/project-config.js +1 -1
  45. package/dist/core/session.js +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/proxy/anthropic-adapter.js +1 -1
  48. package/dist/proxy/server.js +1 -1
  49. package/dist/proxy/session-cache.js +1 -1
  50. package/dist/sdk/api.js +1 -1
  51. package/dist/sdk/errors.js +1 -1
  52. package/dist/sdk/index.js +1 -1
  53. package/dist/sdk/job.js +1 -1
  54. package/dist/sdk/llm.js +1 -1
  55. package/dist/sdk/query.js +1 -1
  56. package/dist/sdk/segment.js +1 -1
  57. package/dist/sdk/workflow.js +1 -1
  58. package/dist/types/endpoints.js +1 -1
  59. package/dist/types/index.js +1 -1
  60. package/dist/utils/agent-ref-parser.js +1 -1
  61. package/dist/utils/chat-cache.js +1 -1
  62. package/dist/utils/colors.js +1 -1
  63. package/dist/utils/command-output.js +1 -1
  64. package/dist/utils/constants.js +1 -1
  65. package/dist/utils/file-permissions.js +1 -1
  66. package/dist/utils/format-detector.js +1 -1
  67. package/dist/utils/formatters.js +1 -1
  68. package/dist/utils/json-loader.js +1 -1
  69. package/dist/utils/llm-backup-utils.js +1 -1
  70. package/dist/utils/model-aliases.js +1 -1
  71. package/dist/utils/option-validation.js +1 -1
  72. package/dist/utils/port.js +1 -1
  73. package/dist/utils/process.js +1 -1
  74. package/dist/utils/prompt.js +1 -1
  75. package/dist/utils/segment-path-parser.js +1 -1
  76. package/dist/utils/segment-ref-parser.js +1 -1
  77. package/dist/utils/spinner.js +1 -1
  78. package/dist/utils/sql-parser.js +1 -1
  79. package/dist/utils/sse-parser.js +1 -1
  80. package/dist/utils/string-utils.js +1 -1
  81. package/dist/utils/table-ref-parser.js +1 -1
  82. package/dist/utils/tdx-logger.js +1 -1
  83. package/dist/utils/tree-formatter.js +1 -1
  84. package/dist/utils/version-check.js +1 -1
  85. package/dist/utils/workflow-utils.js +1 -1
  86. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x5f5907,_0x486b3d){const _0x3cabbf=a68_0x3645,_0x1dc8c0=_0x5f5907();while(!![]){try{const _0x38237b=-parseInt(_0x3cabbf(0x1db))/0x1+parseInt(_0x3cabbf(0x1e0))/0x2+parseInt(_0x3cabbf(0x1dd))/0x3+-parseInt(_0x3cabbf(0x1e3))/0x4*(-parseInt(_0x3cabbf(0x1d6))/0x5)+-parseInt(_0x3cabbf(0x1d2))/0x6+parseInt(_0x3cabbf(0x1df))/0x7+parseInt(_0x3cabbf(0x1d8))/0x8*(-parseInt(_0x3cabbf(0x1d5))/0x9);if(_0x38237b===_0x486b3d)break;else _0x1dc8c0['push'](_0x1dc8c0['shift']());}catch(_0x12b034){_0x1dc8c0['push'](_0x1dc8c0['shift']());}}}(a68_0xdce4,0x7cf73));import*as a68_0x586e7f from'node:fs';import*as a68_0x4796f2 from'node:path';export function setSecureFilePermissions(_0x4401bd){const _0x1053dc=a68_0x3645;try{a68_0x586e7f[_0x1053dc(0x1dc)](_0x4401bd,0x180);}catch{console[_0x1053dc(0x1d3)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4401bd);}}export function setSecureDirectoryPermissions(_0x1354a8){const _0x5746e5=a68_0x3645;try{a68_0x586e7f[_0x5746e5(0x1dc)](_0x1354a8,0x1c0);}catch{console[_0x5746e5(0x1d3)](_0x5746e5(0x1d1)+_0x1354a8);}}function a68_0x3645(_0x11a1e1,_0x4ed065){const _0xdce474=a68_0xdce4();return a68_0x3645=function(_0x364558,_0x3ba284){_0x364558=_0x364558-0x1d0;let _0x4543e0=_0xdce474[_0x364558];return _0x4543e0;},a68_0x3645(_0x11a1e1,_0x4ed065);}export function createSecureDirectory(_0x5b314a){const _0x58442e=a68_0x3645;!a68_0x586e7f[_0x58442e(0x1e4)](_0x5b314a)&&(a68_0x586e7f[_0x58442e(0x1d9)](_0x5b314a,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5b314a));}function a68_0xdce4(){const _0x272355=['2783893CQdVlA','1698206nVZzdT','Warning:\x20','mode','2473652ABYvUm','existsSync','\x20has\x20insecure\x20permissions\x20(','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','545724zMaeQa','warn','writeFileSync','9vIGSpg','5pLoBVo','statSync','14183384XsymlO','mkdirSync','dirname','238708flZKjw','chmodSync','2247687zJdKtZ','Should\x20be\x200600\x20or\x20more\x20restrictive.'];a68_0xdce4=function(){return _0x272355;};return a68_0xdce4();}export function validateSecureFilePermissions(_0x2fd6cd){const _0x567d89=a68_0x3645;try{const _0x41dfe4=a68_0x586e7f[_0x567d89(0x1d7)](_0x2fd6cd),_0x35f308=_0x41dfe4[_0x567d89(0x1e2)]&0x1ff,_0xfa5026=(_0x35f308&0x3f)!==0x0;if(_0xfa5026)return console[_0x567d89(0x1d3)](_0x567d89(0x1e1)+_0x2fd6cd+_0x567d89(0x1d0)+_0x35f308['toString'](0x8)+').\x20'+_0x567d89(0x1de)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x153564,_0x76fd63){const _0x51ae52=a68_0x3645,_0x40eb8f=a68_0x4796f2[_0x51ae52(0x1da)](_0x153564);createSecureDirectory(_0x40eb8f),a68_0x586e7f[_0x51ae52(0x1d4)](_0x153564,_0x76fd63,{'mode':0x180}),setSecureFilePermissions(_0x153564);}
1
+ (function(_0x3c46eb,_0x4ed3fa){const _0x3c889c=a68_0x23f7,_0x5f4733=_0x3c46eb();while(!![]){try{const _0x3c7d7a=parseInt(_0x3c889c(0x157))/0x1*(-parseInt(_0x3c889c(0x155))/0x2)+-parseInt(_0x3c889c(0x166))/0x3+-parseInt(_0x3c889c(0x167))/0x4+-parseInt(_0x3c889c(0x159))/0x5+parseInt(_0x3c889c(0x156))/0x6*(parseInt(_0x3c889c(0x15c))/0x7)+-parseInt(_0x3c889c(0x15b))/0x8+parseInt(_0x3c889c(0x168))/0x9*(parseInt(_0x3c889c(0x169))/0xa);if(_0x3c7d7a===_0x4ed3fa)break;else _0x5f4733['push'](_0x5f4733['shift']());}catch(_0x29bd8b){_0x5f4733['push'](_0x5f4733['shift']());}}}(a68_0x1a53,0xc56d6));import*as a68_0x185d66 from'node:fs';import*as a68_0xa7dd2a from'node:path';export function setSecureFilePermissions(_0x372a1d){const _0x110089=a68_0x23f7;try{a68_0x185d66[_0x110089(0x163)](_0x372a1d,0x180);}catch{console[_0x110089(0x162)](_0x110089(0x158)+_0x372a1d);}}export function setSecureDirectoryPermissions(_0x363549){const _0xb629c3=a68_0x23f7;try{a68_0x185d66['chmodSync'](_0x363549,0x1c0);}catch{console['warn'](_0xb629c3(0x158)+_0x363549);}}function a68_0x23f7(_0x5e47cc,_0x5b0d83){const _0x1a5319=a68_0x1a53();return a68_0x23f7=function(_0x23f72a,_0x37869a){_0x23f72a=_0x23f72a-0x155;let _0x2face5=_0x1a5319[_0x23f72a];return _0x2face5;},a68_0x23f7(_0x5e47cc,_0x5b0d83);}function a68_0x1a53(){const _0x46be27=['warn','chmodSync','mkdirSync','Warning:\x20','1645062EwapdC','1702960kQMDFE','9GGKndq','44978960kWaVrn','Should\x20be\x200600\x20or\x20more\x20restrictive.','13434BgAwAi','42fTlCHM','85CzLCzb','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','4613065ZniowY','writeFileSync','10410552sGPvkt','79737OyFoOX','\x20has\x20insecure\x20permissions\x20(','mode','toString',').\x20','existsSync'];a68_0x1a53=function(){return _0x46be27;};return a68_0x1a53();}export function createSecureDirectory(_0x29e6ff){const _0x45b524=a68_0x23f7;!a68_0x185d66[_0x45b524(0x161)](_0x29e6ff)&&(a68_0x185d66[_0x45b524(0x164)](_0x29e6ff,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x29e6ff));}export function validateSecureFilePermissions(_0x1f1c5c){const _0x1814c9=a68_0x23f7;try{const _0x1d4598=a68_0x185d66['statSync'](_0x1f1c5c),_0xc8602b=_0x1d4598[_0x1814c9(0x15e)]&0x1ff,_0x464939=(_0xc8602b&0x3f)!==0x0;if(_0x464939)return console['warn'](_0x1814c9(0x165)+_0x1f1c5c+_0x1814c9(0x15d)+_0xc8602b[_0x1814c9(0x15f)](0x8)+_0x1814c9(0x160)+_0x1814c9(0x16a)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1ecb96,_0x509edd){const _0x159985=a68_0x23f7,_0x202f6f=a68_0xa7dd2a['dirname'](_0x1ecb96);createSecureDirectory(_0x202f6f),a68_0x185d66[_0x159985(0x15a)](_0x1ecb96,_0x509edd,{'mode':0x180}),setSecureFilePermissions(_0x1ecb96);}
@@ -1 +1 @@
1
- function a69_0x5229(){const _0x3fd5ee=['4QCBGTL','928277ieAbSw','table','18064STRtCS','518040qLhWFb','tsv','110BIIumF','toLowerCase','json','text','split','24GNldfY','68349QkMKby','357370cQHjZb','75AESkru','26Fuicwr','4978788sqshOZ','40VLkbHq','13059171vWVzYj'];a69_0x5229=function(){return _0x3fd5ee;};return a69_0x5229();}function a69_0x1584(_0x4ddfc6,_0x38b5e5){const _0x522984=a69_0x5229();return a69_0x1584=function(_0x15847a,_0x185f90){_0x15847a=_0x15847a-0x109;let _0x1d7b8c=_0x522984[_0x15847a];return _0x1d7b8c;},a69_0x1584(_0x4ddfc6,_0x38b5e5);}(function(_0xdf0646,_0x426076){const _0x11514d=a69_0x1584,_0x3fdaea=_0xdf0646();while(!![]){try{const _0x14a8bf=-parseInt(_0x11514d(0x116))/0x1*(-parseInt(_0x11514d(0x113))/0x2)+parseInt(_0x11514d(0x10c))/0x3*(parseInt(_0x11514d(0x111))/0x4)+-parseInt(_0x11514d(0x10e))/0x5*(-parseInt(_0x11514d(0x117))/0x6)+-parseInt(_0x11514d(0x114))/0x7*(-parseInt(_0x11514d(0x10b))/0x8)+-parseInt(_0x11514d(0x112))/0x9+-parseInt(_0x11514d(0x10d))/0xa*(parseInt(_0x11514d(0x119))/0xb)+-parseInt(_0x11514d(0x110))/0xc*(-parseInt(_0x11514d(0x10f))/0xd);if(_0x14a8bf===_0x426076)break;else _0x3fdaea['push'](_0x3fdaea['shift']());}catch(_0x1b7a65){_0x3fdaea['push'](_0x3fdaea['shift']());}}}(a69_0x5229,0xeed7c));export function detectFormatFromExtension(_0x2ac51e){const _0x222b17=a69_0x1584,_0x336a59=_0x2ac51e[_0x222b17(0x11a)]()[_0x222b17(0x10a)]('.')['pop']();switch(_0x336a59){case _0x222b17(0x11b):return _0x222b17(0x11b);case'jsonl':return'jsonl';case _0x222b17(0x118):case'tab':return _0x222b17(0x118);case'txt':case _0x222b17(0x109):return _0x222b17(0x115);default:return undefined;}}export function resolveOutputFormat(_0x44ed17,_0x453ba4,_0x25b609){if(_0x44ed17)return _0x44ed17;if(_0x453ba4){const _0x181d5d=detectFormatFromExtension(_0x453ba4);if(_0x181d5d)return _0x181d5d;}return _0x25b609;}
1
+ function a69_0x23c2(_0x32ee78,_0x6d6a62){const _0x4f4ce5=a69_0x4f4c();return a69_0x23c2=function(_0x23c26a,_0xdd1a1e){_0x23c26a=_0x23c26a-0x1b6;let _0x696c2b=_0x4f4ce5[_0x23c26a];return _0x696c2b;},a69_0x23c2(_0x32ee78,_0x6d6a62);}(function(_0x158f6b,_0x63af10){const _0x3ab07f=a69_0x23c2,_0x46824f=_0x158f6b();while(!![]){try{const _0x91e9d4=parseInt(_0x3ab07f(0x1bd))/0x1+parseInt(_0x3ab07f(0x1b7))/0x2+parseInt(_0x3ab07f(0x1c6))/0x3*(-parseInt(_0x3ab07f(0x1c0))/0x4)+parseInt(_0x3ab07f(0x1c1))/0x5+parseInt(_0x3ab07f(0x1c3))/0x6+parseInt(_0x3ab07f(0x1c7))/0x7+-parseInt(_0x3ab07f(0x1c2))/0x8*(parseInt(_0x3ab07f(0x1ba))/0x9);if(_0x91e9d4===_0x63af10)break;else _0x46824f['push'](_0x46824f['shift']());}catch(_0x1a4485){_0x46824f['push'](_0x46824f['shift']());}}}(a69_0x4f4c,0x97abb));export function detectFormatFromExtension(_0x2e52e1){const _0x593687=a69_0x23c2,_0x1c9d9e=_0x2e52e1[_0x593687(0x1b6)]()[_0x593687(0x1c4)]('.')[_0x593687(0x1bf)]();switch(_0x1c9d9e){case _0x593687(0x1bc):return _0x593687(0x1bc);case _0x593687(0x1c5):return _0x593687(0x1c5);case _0x593687(0x1b9):case _0x593687(0x1b8):return _0x593687(0x1b9);case _0x593687(0x1be):case _0x593687(0x1bb):return'table';default:return undefined;}}function a69_0x4f4c(){const _0x530713=['pop','3832120UVoOVI','19010TdkAKe','392RaLlnD','6571110begdgA','split','jsonl','3cJOHTe','1367499yyRXRj','toLowerCase','1740450bCMKYC','tab','tsv','260109MjIcxU','text','json','830853imdhqA','txt'];a69_0x4f4c=function(){return _0x530713;};return a69_0x4f4c();}export function resolveOutputFormat(_0x385eea,_0xd52c51,_0x5aabeb){if(_0x385eea)return _0x385eea;if(_0xd52c51){const _0x546554=detectFormatFromExtension(_0xd52c51);if(_0x546554)return _0x546554;}return _0x5aabeb;}
@@ -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(_0xa23c73,_0x249cf1){const _0x21942c=a70_0x5b6f,_0x33df07=_0xa23c73();while(!![]){try{const _0x4510a0=parseInt(_0x21942c(0xed))/0x1*(-parseInt(_0x21942c(0xe9))/0x2)+-parseInt(_0x21942c(0x101))/0x3+-parseInt(_0x21942c(0xec))/0x4+-parseInt(_0x21942c(0xf5))/0x5*(parseInt(_0x21942c(0xe6))/0x6)+-parseInt(_0x21942c(0xf1))/0x7*(-parseInt(_0x21942c(0xdd))/0x8)+-parseInt(_0x21942c(0xd2))/0x9+parseInt(_0x21942c(0xe4))/0xa*(parseInt(_0x21942c(0xd4))/0xb);if(_0x4510a0===_0x249cf1)break;else _0x33df07['push'](_0x33df07['shift']());}catch(_0x60f64a){_0x33df07['push'](_0x33df07['shift']());}}}(a70_0x372d,0x3b06d));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 _0x417f1f=a70_0x5b6f;return process[_0x417f1f(0xf2)]['columns']||Infinity;}export function formatAsTable(_0x192534,_0x5dea15=DEFAULT_MAX_DISPLAY_ROWS,_0x39df72=![],_0x5473d2={}){const _0x10b1bb=a70_0x5b6f;if(_0x192534[_0x10b1bb(0xfb)][_0x10b1bb(0xe3)]===0x0)return'No\x20rows\x20returned';const _0x2e1a93=_0x192534[_0x10b1bb(0xe1)][_0x10b1bb(0xde)](_0x305192=>_0x305192[_0x10b1bb(0xd7)]),_0x2eb3b6=_0x192534['columns'][_0x10b1bb(0xde)](_0x373e55=>simplifyType(_0x373e55['type'])),_0x3ceab6=_0x192534['data'][_0x10b1bb(0xd8)](0x0,_0x5dea15),_0xe00314=_0x192534[_0x10b1bb(0xfb)]['length'],_0xc60599=_0xe00314>_0x5dea15,_0x438ab9=[],_0x589daa=getTerminalWidth(),_0x526c42=_0x589daa!==Infinity,_0x5eb05d=0x32;let _0x25a6ee=_0x2e1a93[_0x10b1bb(0xde)]((_0x40e722,_0x5b89a6)=>{const _0x1da91d=_0x10b1bb,_0x56dbf5=stringWidth(_0x2eb3b6[_0x5b89a6]),_0x3f83fa=Math[_0x1da91d(0xf4)](..._0x3ceab6['map'](_0x2ce99c=>{const _0x256bee=_0x2ce99c[_0x40e722];return stringWidth(formatValue(_0x256bee));})),_0x20ead8=Math[_0x1da91d(0xf4)](stringWidth(_0x40e722),_0x56dbf5,_0x3f83fa);return _0x39df72?_0x20ead8:Math[_0x1da91d(0xfc)](_0x20ead8,_0x5eb05d);});if(_0x526c42&&!_0x39df72&&_0x2e1a93['length']>0x0){const _0x4fa4e5=_0x789665=>{let _0x8374b0=0x1;for(const _0x360a80 of _0x789665){_0x8374b0+=_0x360a80+0x3;}return _0x8374b0+0x1;};let _0x401e33=_0x4fa4e5(_0x25a6ee);if(_0x401e33>_0x589daa){const _0x468f3c=0x3;for(let _0x2b1035=_0x25a6ee[_0x10b1bb(0xe3)]-0x1;_0x2b1035>=0x0;_0x2b1035--){_0x401e33=_0x4fa4e5(_0x25a6ee);if(_0x401e33<=_0x589daa)break;const _0x599892=_0x25a6ee[_0x2b1035],_0x577a08=_0x401e33-_0x589daa,_0x1dff47=_0x599892-_0x468f3c,_0x4e8fa0=Math['min'](_0x577a08,_0x1dff47);_0x4e8fa0>0x0&&(_0x25a6ee[_0x2b1035]=_0x599892-_0x4e8fa0);}}}const _0x1c61da=_0x2e1a93,_0x338eee=_0x2eb3b6,_0x1da39e=_0x25a6ee,_0x3bf60a=_0x25a6ee;_0x438ab9[_0x10b1bb(0xcf)](colorBorder('┌'+_0x3bf60a[_0x10b1bb(0xde)](_0x7338c=>'─'[_0x10b1bb(0xd0)](_0x7338c+0x2))[_0x10b1bb(0xff)]('┬')+'┐',_0x5473d2));const _0x1ecb3f=_0x1c61da[_0x10b1bb(0xde)]((_0x5ce268,_0x7c846)=>centerAlign(_0x5ce268,_0x1da39e[_0x7c846]));_0x438ab9[_0x10b1bb(0xcf)](colorBorder('│',_0x5473d2)+'\x20'+_0x1ecb3f[_0x10b1bb(0xff)]('\x20'+colorBorder('│',_0x5473d2)+'\x20')+'\x20'+colorBorder('│',_0x5473d2));const _0x367a48=_0x338eee[_0x10b1bb(0xde)]((_0x3283da,_0x23661b)=>colorType(centerAlign(_0x3283da,_0x1da39e[_0x23661b]),_0x5473d2));_0x438ab9['push'](colorBorder('│',_0x5473d2)+'\x20'+_0x367a48[_0x10b1bb(0xff)]('\x20'+colorBorder('│',_0x5473d2)+'\x20')+'\x20'+colorBorder('│',_0x5473d2)),_0x438ab9['push'](colorBorder('├'+_0x3bf60a[_0x10b1bb(0xde)](_0x14cc9a=>'─'[_0x10b1bb(0xd0)](_0x14cc9a+0x2))[_0x10b1bb(0xff)]('┼')+'┤',_0x5473d2));const _0xb7a700=(_0x5e0268,_0x49830b)=>{const _0x3f056d=_0x10b1bb,_0x508fe9=stringWidth(_0x5e0268);if(_0x508fe9<=_0x49830b)return _0x5e0268;let _0x40ff43=_0x5e0268;while(stringWidth(_0x40ff43+'…')>_0x49830b&&_0x40ff43[_0x3f056d(0xe3)]>0x0){_0x40ff43=_0x40ff43[_0x3f056d(0xd8)](0x0,-0x1);}return _0x40ff43+'…';};_0x3ceab6[_0x10b1bb(0xd5)](_0x4c083=>{const _0x15204f=_0x10b1bb,_0x2710bb=_0x2e1a93[_0x15204f(0xde)]((_0x435509,_0x54ea28)=>{const _0x452b16=_0x15204f,_0x40dbb6=_0x4c083[_0x435509],_0x140032=formatValue(_0x40dbb6),_0x3c7952=_0x1da39e[_0x54ea28],_0x3351e5=_0xb7a700(_0x140032,_0x3c7952),_0x59d24f=typeof _0x40dbb6===_0x452b16(0xeb)||typeof _0x40dbb6===_0x452b16(0xfa)&&/^-?\d+$/[_0x452b16(0xdb)](_0x40dbb6);return _0x59d24f?padStart(_0x3351e5,_0x3c7952):padEnd(_0x3351e5,_0x3c7952);});_0x438ab9['push'](colorBorder('│',_0x5473d2)+'\x20'+_0x2710bb[_0x15204f(0xff)]('\x20'+colorBorder('│',_0x5473d2)+'\x20')+'\x20'+colorBorder('│',_0x5473d2));});const _0x3c3798=_0x3bf60a[_0x10b1bb(0xf6)]((_0x4513a4,_0x1d56ca)=>_0x4513a4+_0x1d56ca+0x3,-0x1);_0x438ab9[_0x10b1bb(0xcf)](colorBorder('├'+_0x3bf60a[_0x10b1bb(0xde)](_0x200a68=>'─'[_0x10b1bb(0xd0)](_0x200a68+0x2))[_0x10b1bb(0xff)]('┴')+'┤',_0x5473d2));let _0x4dba6b;_0xc60599?_0x4dba6b=_0xe00314+'\x20rows\x20('+_0x5dea15+_0x10b1bb(0xe5):_0x4dba6b=_0xe00314+_0x10b1bb(0xd1)+(_0xe00314===0x1?'':'s');const _0xd2025a=_0x4dba6b[_0x10b1bb(0xf9)](_0x3c3798-0x2);return _0x438ab9['push'](colorBorder('│',_0x5473d2)+'\x20'+_0xd2025a+'\x20'+colorBorder('│',_0x5473d2)),_0x438ab9[_0x10b1bb(0xcf)](colorBorder('└'+'─'[_0x10b1bb(0xd0)](_0x3c3798)+'┘',_0x5473d2)),_0x438ab9['join']('\x0a');}function simplifyType(_0x4e595a){const _0x3019be=a70_0x5b6f,_0x3bce87={'varchar':'string','bigint':_0x3019be(0xee),'integer':_0x3019be(0x104),'double':'double','boolean':_0x3019be(0x102),'date':_0x3019be(0xdc),'timestamp':_0x3019be(0xfd),'array':_0x3019be(0x103),'map':'map','row':_0x3019be(0xf3)},_0xef643=_0x4e595a[_0x3019be(0x100)]();for(const [_0x11a4ee,_0x196be6]of Object[_0x3019be(0xd3)](_0x3bce87)){if(_0xef643[_0x3019be(0xd9)](_0x11a4ee))return _0x196be6;}return _0x4e595a[_0x3019be(0xe3)]>0xa?_0x4e595a['substring'](0x0,0xa):_0x4e595a;}export function formatAsJSON(_0x2c3363,_0x58611c={}){const _0x50f325=a70_0x5b6f;if(_0x2c3363[_0x50f325(0xfb)][_0x50f325(0xe3)]===0x0)return'[]';if(shouldUseColor(_0x58611c))return colorizeJSON(_0x2c3363[_0x50f325(0xfb)],_0x58611c);const _0x3bd5d4=_0x2c3363[_0x50f325(0xfb)][_0x50f325(0xde)](_0x58ad92=>'\x20\x20'+JSON[_0x50f325(0xfe)](_0x58ad92));return'[\x0a'+_0x3bd5d4[_0x50f325(0xff)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x74d512,_0x1d64f6={}){const _0x5dfde7=a70_0x5b6f;if(_0x74d512[_0x5dfde7(0xfb)][_0x5dfde7(0xe3)]===0x0)return'';if(shouldUseColor(_0x1d64f6))return _0x74d512[_0x5dfde7(0xfb)][_0x5dfde7(0xde)](_0xbfa44a=>colorizeJSONCompact(_0xbfa44a,_0x1d64f6))[_0x5dfde7(0xff)]('\x0a');return _0x74d512[_0x5dfde7(0xfb)][_0x5dfde7(0xde)](_0x142eee=>JSON[_0x5dfde7(0xfe)](_0x142eee))['join']('\x0a');}export function formatAsTSV(_0x1a02f4){const _0x3d463c=a70_0x5b6f;if(_0x1a02f4[_0x3d463c(0xfb)]['length']===0x0)return'';const _0x310df6=[],_0x440765=_0x1a02f4[_0x3d463c(0xe1)][_0x3d463c(0xde)](_0x12eac6=>_0x12eac6['name']);return _0x310df6[_0x3d463c(0xcf)](_0x440765[_0x3d463c(0xff)]('\x09')),_0x1a02f4[_0x3d463c(0xfb)][_0x3d463c(0xd5)](_0x5e4faf=>{const _0xedb28a=_0x3d463c,_0x5b3a31=_0x440765[_0xedb28a(0xde)](_0x55d9b9=>{const _0x560e20=_0x5e4faf[_0x55d9b9];return formatValueForTSV(_0x560e20);});_0x310df6['push'](_0x5b3a31[_0xedb28a(0xff)]('\x09'));}),_0x310df6[_0x3d463c(0xff)]('\x0a');}function formatValue(_0x59766d){const _0x5ee310=a70_0x5b6f;if(_0x59766d===null||_0x59766d===undefined)return'';if(typeof _0x59766d===_0x5ee310(0xfa)){const _0x398e4c=_0x59766d[_0x5ee310(0xea)](/\n/g,'\x5cn')[_0x5ee310(0xea)](/\r/g,'\x5cr')[_0x5ee310(0xea)](/\t/g,'\x5ct');return _0x398e4c;}if(typeof _0x59766d==='number')return String(_0x59766d);if(typeof _0x59766d==='boolean')return _0x59766d?_0x5ee310(0xdf):'false';if(_0x59766d instanceof Date)return _0x59766d[_0x5ee310(0xe0)]();if(typeof _0x59766d==='object')return JSON['stringify'](_0x59766d);return String(_0x59766d);}function formatValueForTSV(_0x5811eb){const _0x31eabd=a70_0x5b6f;if(_0x5811eb===null||_0x5811eb===undefined)return'';if(typeof _0x5811eb==='string')return _0x5811eb[_0x31eabd(0xea)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x5811eb==='number'||typeof _0x5811eb==='boolean')return String(_0x5811eb);if(_0x5811eb instanceof Date)return _0x5811eb['toISOString']();if(typeof _0x5811eb===_0x31eabd(0xe8))return JSON[_0x31eabd(0xfe)](_0x5811eb);return String(_0x5811eb);}export function formatQueryResult(_0x3b11ab,_0x57b899){const _0x3ebab7=a70_0x5b6f;switch(_0x57b899){case _0x3ebab7(0xda):return formatAsTable(_0x3b11ab);case'json':return formatAsJSON(_0x3b11ab);case'jsonl':return formatAsJSONL(_0x3b11ab);case _0x3ebab7(0xe7):return formatAsTSV(_0x3b11ab);default:return formatAsJSON(_0x3b11ab);}}function a70_0x372d(){const _0x5087dd=['1iGbfbV','long','0\x20B','pow','2163497oiMMJa','stdout','row','max','425KMJkdh','reduce','toFixed','floor','padEnd','string','data','min','timestamp','stringify','join','toLowerCase','563703UgQEou','bool','array','int','push','repeat','\x20row','2754810FBvGCx','entries','691427DDNifH','forEach','toString','name','slice','startsWith','table','test','date','8AhgIZC','map','true','toISOString','columns','log','length','200DPyoWl','\x20shown)','894tCxkzp','tsv','object','852872AicKqk','replace','number','1565384OMjUXP'];a70_0x372d=function(){return _0x5087dd;};return a70_0x372d();}export function formatBytes(_0x36f4a0){const _0x4c3ace=a70_0x5b6f;if(_0x36f4a0===0x0)return _0x4c3ace(0xef);const _0x3dffe6=['B','KB','MB','GB','TB'],_0x493364=0x400,_0x4a3238=Math[_0x4c3ace(0xf8)](Math['log'](_0x36f4a0)/Math[_0x4c3ace(0xe2)](_0x493364)),_0x5110ae=_0x36f4a0/Math[_0x4c3ace(0xf0)](_0x493364,_0x4a3238),_0x45cba1=_0x5110ae>=0xa?0x1:0x2;return _0x5110ae['toFixed'](_0x45cba1)+'\x20'+_0x3dffe6[_0x4a3238];}function a70_0x5b6f(_0x52493f,_0x2cf682){const _0x372df7=a70_0x372d();return a70_0x5b6f=function(_0x5b6f13,_0x10030f){_0x5b6f13=_0x5b6f13-0xcf;let _0x1ce7dd=_0x372df7[_0x5b6f13];return _0x1ce7dd;},a70_0x5b6f(_0x52493f,_0x2cf682);}export function formatRows(_0x3243c5){const _0xb4c20=a70_0x5b6f;if(_0x3243c5==null)return'-';if(_0x3243c5===0x0)return'0';if(_0x3243c5<0x3e8)return _0x3243c5[_0xb4c20(0xd6)]();const _0x2e4acb=['','K','M','B','T'],_0x48a26a=0x3e8,_0x355cb5=Math[_0xb4c20(0xf8)](Math[_0xb4c20(0xe2)](_0x3243c5)/Math[_0xb4c20(0xe2)](_0x48a26a)),_0x3aa6e1=_0x3243c5/Math[_0xb4c20(0xf0)](_0x48a26a,_0x355cb5),_0x85551f=_0x3aa6e1>=0xa?0x1:0x2;return''+_0x3aa6e1[_0xb4c20(0xf7)](_0x85551f)+_0x2e4acb[_0x355cb5];}
@@ -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(_0x37a8be,_0x5d5bb1){const _0x4a1943=a71_0x6983,_0x7dc7c5=_0x37a8be();while(!![]){try{const _0x53dbe1=parseInt(_0x4a1943(0x104))/0x1+-parseInt(_0x4a1943(0x114))/0x2+parseInt(_0x4a1943(0x102))/0x3*(-parseInt(_0x4a1943(0x10e))/0x4)+-parseInt(_0x4a1943(0x112))/0x5*(parseInt(_0x4a1943(0x109))/0x6)+-parseInt(_0x4a1943(0x106))/0x7*(-parseInt(_0x4a1943(0x10d))/0x8)+-parseInt(_0x4a1943(0x10b))/0x9+parseInt(_0x4a1943(0x105))/0xa;if(_0x53dbe1===_0x5d5bb1)break;else _0x7dc7c5['push'](_0x7dc7c5['shift']());}catch(_0x4f6d75){_0x7dc7c5['push'](_0x7dc7c5['shift']());}}}(a71_0x437c,0xb9725));function a71_0x437c(){const _0x4c4b73=['3082302mrFwZc','File\x20not\x20found:\x20','40lDoMdy','876tglGdX','message','\x27:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','60JkHBEX','Invalid\x20JSON\x20string:\x20','1627860sDsZiM','NOT_FOUND','INVALID_ARGUMENT','831WCPFhS','Failed\x20to\x20load\x20JSON:\x20','1395704OAFCVy','11424740iWGxdr','1185422BeZqDq','code','Invalid\x20JSON\x20in\x20file\x20\x27','704124ExRcuj','parse'];a71_0x437c=function(){return _0x4c4b73;};return a71_0x437c();}function a71_0x6983(_0x10303e,_0x19c0d0){const _0x437ce8=a71_0x437c();return a71_0x6983=function(_0x6983f2,_0x22dd4e){_0x6983f2=_0x6983f2-0x102;let _0x35f891=_0x437ce8[_0x6983f2];return _0x35f891;},a71_0x6983(_0x10303e,_0x19c0d0);}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0xeff50b,_0x120062){const _0x10d76b=a71_0x6983;try{if(_0x120062){const _0x1e3b22=await readFile(_0xeff50b,'utf-8');try{return JSON[_0x10d76b(0x10a)](_0x1e3b22);}catch(_0x14f22b){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x10d76b(0x108)+_0xeff50b+_0x10d76b(0x110)+(_0x14f22b instanceof Error?_0x14f22b[_0x10d76b(0x10f)]:String(_0x14f22b)));}}else try{return JSON[_0x10d76b(0x10a)](_0xeff50b);}catch(_0x3cebc1){throw new SDKError(ErrorCode[_0x10d76b(0x116)],_0x10d76b(0x113)+(_0x3cebc1 instanceof Error?_0x3cebc1[_0x10d76b(0x10f)]:String(_0x3cebc1)));}}catch(_0x4bc8b5){if(_0x4bc8b5 instanceof SDKError)throw _0x4bc8b5;if(_0x4bc8b5 instanceof Error&&_0x10d76b(0x107)in _0x4bc8b5){const _0x480499=_0x4bc8b5;if(_0x480499['code']==='ENOENT')throw new SDKError(ErrorCode[_0x10d76b(0x115)],_0x10d76b(0x10c)+_0xeff50b);else{if(_0x480499[_0x10d76b(0x107)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0xeff50b);}}throw new SDKError(ErrorCode['INTERNAL'],_0x10d76b(0x103)+(_0x4bc8b5 instanceof Error?_0x4bc8b5[_0x10d76b(0x10f)]:String(_0x4bc8b5)));}}export async function loadJSONFromOptions(_0x48a665,_0x5d519a){const _0x777a1e=a71_0x6983;if(_0x48a665&&_0x5d519a)throw new SDKError(ErrorCode[_0x777a1e(0x116)],_0x777a1e(0x111));if(_0x48a665)return await loadJSON(_0x48a665,![]);if(_0x5d519a)return await loadJSON(_0x5d519a,!![]);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(_0x449ec5,_0x550853){const _0x29e153=a72_0x577d,_0x95d904=_0x449ec5();while(!![]){try{const _0x54cedd=parseInt(_0x29e153(0x94))/0x1+parseInt(_0x29e153(0x92))/0x2*(parseInt(_0x29e153(0x9d))/0x3)+-parseInt(_0x29e153(0x9b))/0x4+-parseInt(_0x29e153(0x97))/0x5+-parseInt(_0x29e153(0x99))/0x6*(parseInt(_0x29e153(0x93))/0x7)+-parseInt(_0x29e153(0x91))/0x8+parseInt(_0x29e153(0x98))/0x9;if(_0x54cedd===_0x550853)break;else _0x95d904['push'](_0x95d904['shift']());}catch(_0x32f7c8){_0x95d904['push'](_0x95d904['shift']());}}}(a72_0x5993,0xaf7ff));export function canCreateAgent(_0x12642f,_0x48d7c4){const _0x2ce0e5=a72_0x577d;for(const _0x106b92 of _0x12642f[_0x2ce0e5(0x90)][_0x2ce0e5(0x9c)]){if(_0x106b92[_0x2ce0e5(0x8d)]&&!_0x48d7c4[_0x2ce0e5(0x96)](_0x106b92[_0x2ce0e5(0x8d)]))return![];}return!![];}export function remapToolIds(_0x31feb4,_0x56f021,_0x2c4266){const _0x53cd0b=a72_0x577d;return _0x31feb4['map'](_0x13438e=>({..._0x13438e,'targetKnowledgeBaseId':_0x13438e[_0x53cd0b(0x9a)]?_0x56f021['get'](_0x13438e[_0x53cd0b(0x9a)])||_0x13438e['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x13438e['targetAgentId']?_0x2c4266['get'](_0x13438e[_0x53cd0b(0x8d)])||_0x13438e[_0x53cd0b(0x8d)]:undefined}));}function a72_0x577d(_0x464045,_0x1bb694){const _0x59933c=a72_0x5993();return a72_0x577d=function(_0x577dd3,_0x10388e){_0x577dd3=_0x577dd3-0x8d;let _0x36d003=_0x59933c[_0x577dd3];return _0x36d003;},a72_0x577d(_0x464045,_0x1bb694);}export function remapVariableIds(_0x2d2028,_0x331fab){const _0x132d20=a72_0x577d;return _0x2d2028[_0x132d20(0x8f)](_0x2621ea=>({..._0x2621ea,'targetKnowledgeBaseId':_0x331fab[_0x132d20(0x8e)](_0x2621ea['targetKnowledgeBaseId'])||_0x2621ea['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x231c9b){const _0x38f3af=a72_0x577d;return _0x231c9b===_0x38f3af(0x95);}function a72_0x5993(){const _0x1718fe=['580fYXHwr','18655APfPHz','168116JBKYOy','1.0','has','2424740gLVBHy','21780036PFxIOQ','1098KGVVxc','targetKnowledgeBaseId','1735320tyUWzd','tools','4710UXSvru','targetAgentId','get','map','attributes','7344800fJVacX'];a72_0x5993=function(){return _0x1718fe;};return a72_0x5993();}
@@ -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
+ const a73_0xd8b22f=a73_0x15be;(function(_0x257f69,_0x15985a){const _0xe504c8=a73_0x15be,_0x285767=_0x257f69();while(!![]){try{const _0x398a17=parseInt(_0xe504c8(0x1fe))/0x1*(parseInt(_0xe504c8(0x1f8))/0x2)+-parseInt(_0xe504c8(0x1f7))/0x3*(parseInt(_0xe504c8(0x1f4))/0x4)+-parseInt(_0xe504c8(0x1f5))/0x5+parseInt(_0xe504c8(0x1fa))/0x6+-parseInt(_0xe504c8(0x1fc))/0x7*(parseInt(_0xe504c8(0x1f6))/0x8)+-parseInt(_0xe504c8(0x1fd))/0x9+parseInt(_0xe504c8(0x1ff))/0xa*(parseInt(_0xe504c8(0x200))/0xb);if(_0x398a17===_0x15985a)break;else _0x285767['push'](_0x285767['shift']());}catch(_0x45daca){_0x285767['push'](_0x285767['shift']());}}}(a73_0x3c3b,0xb0812));const MODEL_ALIASES={'haiku':a73_0xd8b22f(0x1f9),'sonnet':a73_0xd8b22f(0x1fb)};export function extractModelAlias(_0x101db2){const _0x37855c=a73_0xd8b22f,_0x256f22=_0x101db2['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x256f22)return _0x256f22[0x1][_0x37855c(0x201)]();return _0x101db2;}function a73_0x3c3b(){const _0x465ee2=['3011832SGNolQ','373817brawgS','40zSciVg','3278242MdipVR','toLowerCase','3703204PQvDUz','367405mXblXu','32OiwuLB','3XsRwpe','2qxhJcG','claude-4.5-haiku','6098514hZGqtA','claude-4.5-sonnet','919506xOjxTU'];a73_0x3c3b=function(){return _0x465ee2;};return a73_0x3c3b();}export function resolveModelAlias(_0x344a02){const _0x5a9981=a73_0xd8b22f;return MODEL_ALIASES[_0x344a02[_0x5a9981(0x201)]()]||_0x344a02;}function a73_0x15be(_0x11e25f,_0x361603){const _0x3c3b33=a73_0x3c3b();return a73_0x15be=function(_0x15be40,_0xe54caf){_0x15be40=_0x15be40-0x1f4;let _0x1e9b2d=_0x3c3b33[_0x15be40];return _0x1e9b2d;},a73_0x15be(_0x11e25f,_0x361603);}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 a74_0xa99d(_0x3648d8,_0x57d1ad){const _0x1428f9=a74_0x1428();return a74_0xa99d=function(_0xa99d0a,_0x527839){_0xa99d0a=_0xa99d0a-0xc0;let _0x578462=_0x1428f9[_0xa99d0a];return _0x578462;},a74_0xa99d(_0x3648d8,_0x57d1ad);}function a74_0x1428(){const _0x1d6e08=['Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','77dpwvpP','2595596fcmsys','33612BiOATe','640600xNDyUD','103174bNdFLH','34725WuJtDH','.\x20Must\x20be\x20a\x20positive\x20integer.','294RrsPSV','11bkYfok','isInteger','2428527OTCBSk','2552sqaEfk','288vVJXIE','91730LnXhLS'];a74_0x1428=function(){return _0x1d6e08;};return a74_0x1428();}(function(_0x22fa23,_0x4202ab){const _0x10fe5d=a74_0xa99d,_0x222fad=_0x22fa23();while(!![]){try{const _0x4762e4=parseInt(_0x10fe5d(0xc6))/0x1*(-parseInt(_0x10fe5d(0xc2))/0x2)+parseInt(_0x10fe5d(0xc8))/0x3+-parseInt(_0x10fe5d(0xcf))/0x4+parseInt(_0x10fe5d(0xc3))/0x5*(parseInt(_0x10fe5d(0xc5))/0x6)+parseInt(_0x10fe5d(0xce))/0x7*(parseInt(_0x10fe5d(0xc1))/0x8)+-parseInt(_0x10fe5d(0xca))/0x9*(-parseInt(_0x10fe5d(0xcb))/0xa)+parseInt(_0x10fe5d(0xc9))/0xb*(-parseInt(_0x10fe5d(0xc0))/0xc);if(_0x4762e4===_0x4202ab)break;else _0x222fad['push'](_0x222fad['shift']());}catch(_0x2c7972){_0x222fad['push'](_0x222fad['shift']());}}}(a74_0x1428,0x6fd03));export function validateLimitOption(_0x5dedf1){const _0x42e6a7=a74_0xa99d;if(!Number[_0x42e6a7(0xc7)](_0x5dedf1))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5dedf1+'.\x20Must\x20be\x20an\x20integer.'};if(_0x5dedf1<=0x0)return{'isValid':![],'error':_0x42e6a7(0xcc)+_0x5dedf1+_0x42e6a7(0xc4)};return{'isValid':!![],'value':_0x5dedf1};}export function validateTimeoutOption(_0x33d6a9,_0x1abfe0=0x1e){const _0x3c247f=a74_0xa99d;if(_0x33d6a9===undefined)return{'isValid':!![],'value':_0x1abfe0};const _0x4b30f0=typeof _0x33d6a9==='number'?_0x33d6a9:parseFloat(_0x33d6a9);if(isNaN(_0x4b30f0))return{'isValid':![],'error':_0x3c247f(0xcd)+_0x33d6a9+'.\x20Must\x20be\x20a\x20number.'};if(_0x4b30f0<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4b30f0+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4b30f0};}
@@ -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 a75_0xcf70(_0x5059ec,_0x51733b){const _0x2e6758=a75_0x2e67();return a75_0xcf70=function(_0xcf70e7,_0x474177){_0xcf70e7=_0xcf70e7-0xec;let _0x45bc86=_0x2e6758[_0xcf70e7];return _0x45bc86;},a75_0xcf70(_0x5059ec,_0x51733b);}(function(_0x25752a,_0x253847){const _0x240c14=a75_0xcf70,_0x44b60b=_0x25752a();while(!![]){try{const _0x2a234f=-parseInt(_0x240c14(0xf4))/0x1+-parseInt(_0x240c14(0xec))/0x2*(parseInt(_0x240c14(0xf7))/0x3)+parseInt(_0x240c14(0xf0))/0x4*(-parseInt(_0x240c14(0xf3))/0x5)+parseInt(_0x240c14(0xfd))/0x6+parseInt(_0x240c14(0xf8))/0x7*(-parseInt(_0x240c14(0xf9))/0x8)+parseInt(_0x240c14(0xf1))/0x9*(-parseInt(_0x240c14(0xef))/0xa)+parseInt(_0x240c14(0xf2))/0xb;if(_0x2a234f===_0x253847)break;else _0x44b60b['push'](_0x44b60b['shift']());}catch(_0x1970cb){_0x44b60b['push'](_0x44b60b['shift']());}}}(a75_0x2e67,0x39a31));import{createServer}from'node:net';export async function isPortAvailable(_0x128a30){return new Promise(_0x3b0244=>{const _0x5ab188=a75_0xcf70,_0x574783=createServer();_0x574783['once'](_0x5ab188(0xf5),_0x4c1ca1=>{const _0x11a955=_0x5ab188;_0x4c1ca1[_0x11a955(0xfb)]===_0x11a955(0xed)?_0x3b0244(![]):_0x3b0244(![]);}),_0x574783[_0x5ab188(0xfc)]('listening',()=>{const _0x15c254=_0x5ab188;_0x574783[_0x15c254(0xff)](),_0x3b0244(!![]);}),_0x574783[_0x5ab188(0xfa)](_0x128a30,_0x5ab188(0xee));});}function a75_0x2e67(){const _0x281f6d=['643779SXbzCU','5165754HuWMJM','5qZWAOd','269912klyJAA','error','No\x20available\x20port\x20found\x20between\x20','201fRpNNf','1491QTcqmY','4200HsMnWK','listen','code','once','2652054tveait','\x20and\x20','close','5474fJScSt','EADDRINUSE','0.0.0.0','10nBWLat','155580MjhSJv'];a75_0x2e67=function(){return _0x281f6d;};return a75_0x2e67();}export async function findAvailablePort(_0x4f7147=0xfa0,_0x479202=0x64){const _0x54617c=a75_0xcf70;for(let _0x3ae116=0x0;_0x3ae116<_0x479202;_0x3ae116++){const _0x463b6f=_0x4f7147+_0x3ae116;if(await isPortAvailable(_0x463b6f))return _0x463b6f;}throw new Error(_0x54617c(0xf6)+_0x4f7147+_0x54617c(0xfe)+(_0x4f7147+_0x479202-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
+ const a76_0x1530db=a76_0x7afa;(function(_0x554dc6,_0x2dea1a){const _0x68ec60=a76_0x7afa,_0x515cf9=_0x554dc6();while(!![]){try{const _0x549acf=-parseInt(_0x68ec60(0x218))/0x1+-parseInt(_0x68ec60(0x213))/0x2+parseInt(_0x68ec60(0x20c))/0x3*(parseInt(_0x68ec60(0x1f4))/0x4)+parseInt(_0x68ec60(0x1f3))/0x5+-parseInt(_0x68ec60(0x216))/0x6+-parseInt(_0x68ec60(0x211))/0x7+parseInt(_0x68ec60(0x1f7))/0x8;if(_0x549acf===_0x2dea1a)break;else _0x515cf9['push'](_0x515cf9['shift']());}catch(_0x52f6d0){_0x515cf9['push'](_0x515cf9['shift']());}}}(a76_0x3ddb,0x1fc7d));function a76_0x3ddb(){const _0x28714d=['32812vWUzXl','Found\x20ephemeral\x20shell\x20','code','3950608gRdrXg','replace',')\x20spawned\x20by\x20','trim','comm','error','toLowerCase','length','pop','DEBUG','csh','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','ps\x20-p\x20','pwsh','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','\x20-o\x20ppid=,comm=','powershell',',\x20continuing\x20up','utf-8','ppid','join','21OFcNyK','fish','env','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','claude','1458499UNmKQq','pid','87252cFgOel','win32','wmic\x20process\x20where\x20ProcessId=','686064MnwCfX','split','136586plZESr','\x20on\x20POSIX:','\x20get\x20ParentProcessId,Name\x20/format:csv','cursor','\x20on\x20Windows:','409195pNHuoW'];a76_0x3ddb=function(){return _0x28714d;};return a76_0x3ddb();}import{execSync}from'node:child_process';function a76_0x7afa(_0x1f30c2,_0x21207a){const _0x3ddb31=a76_0x3ddb();return a76_0x7afa=function(_0x7afaf7,_0x32c31f){_0x7afaf7=_0x7afaf7-0x1ef;let _0x4b75a0=_0x3ddb31[_0x7afaf7];return _0x4b75a0;},a76_0x7afa(_0x1f30c2,_0x21207a);}const SHELL_NAMES=new Set(['bash','zsh','sh',a76_0x1530db(0x20d),'ksh','tcsh',a76_0x1530db(0x201),'dash',a76_0x1530db(0x204),a76_0x1530db(0x207),'nu','ion','elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a76_0x1530db(0x210),a76_0x1530db(0x1f6),a76_0x1530db(0x1f1)]);function getProcessInfoWindows(_0x76a871){const _0x1d8496=a76_0x1530db;try{const _0x2cf9c4=execSync(_0x1d8496(0x215)+_0x76a871+_0x1d8496(0x1f0),{'encoding':_0x1d8496(0x209),'windowsHide':!![]})['trim'](),_0x24fcf=_0x2cf9c4['split']('\x0a')['filter'](_0x53db72=>_0x53db72[_0x1d8496(0x1fa)]());if(_0x24fcf['length']<0x2)return null;const _0x519075=_0x24fcf[_0x24fcf[_0x1d8496(0x1fe)]-0x1][_0x1d8496(0x217)](',');if(_0x519075[_0x1d8496(0x1fe)]<0x3)return null;const _0x3716d2=_0x519075[0x1]?.[_0x1d8496(0x1fa)]()||'',_0x1e4f6f=parseInt(_0x519075[0x2]?.[_0x1d8496(0x1fa)]()||'0',0xa);if(isNaN(_0x1e4f6f)||!_0x3716d2)return null;return{'pid':_0x76a871,'ppid':_0x1e4f6f,'comm':_0x3716d2['replace'](/\.exe$/i,'')};}catch(_0x481a9c){return process[_0x1d8496(0x20e)][_0x1d8496(0x200)]&&console['error'](_0x1d8496(0x205)+_0x76a871+_0x1d8496(0x1f2),_0x481a9c),null;}}function getProcessInfoPosix(_0x5cb4be){const _0x5a668b=a76_0x1530db;try{const _0x434610=execSync(_0x5a668b(0x203)+_0x5cb4be+_0x5a668b(0x206),{'encoding':_0x5a668b(0x209)})[_0x5a668b(0x1fa)](),[_0x4427d9,..._0x1680c4]=_0x434610[_0x5a668b(0x217)](/\s+/),_0x3e708e=parseInt(_0x4427d9,0xa),_0x2b25d6=_0x1680c4[_0x5a668b(0x20b)]('\x20');if(isNaN(_0x3e708e))return null;return{'pid':_0x5cb4be,'ppid':_0x3e708e,'comm':_0x2b25d6};}catch(_0x5bd5de){return process[_0x5a668b(0x20e)][_0x5a668b(0x200)]&&console[_0x5a668b(0x1fc)](_0x5a668b(0x205)+_0x5cb4be+_0x5a668b(0x1ef),_0x5bd5de),null;}}function getProcessInfo(_0x5dc602){const _0x26c214=a76_0x1530db;if(process['platform']===_0x26c214(0x214))return getProcessInfoWindows(_0x5dc602);return getProcessInfoPosix(_0x5dc602);}function getBasename(_0x2c1dfa){const _0x14f6a8=a76_0x1530db;return _0x2c1dfa[_0x14f6a8(0x1f8)](/^-/,'')[_0x14f6a8(0x217)]('/')[_0x14f6a8(0x1ff)]()?.[_0x14f6a8(0x1fd)]()||'';}function isShell(_0x2e980f){return SHELL_NAMES['has'](getBasename(_0x2e980f));}function isEphemeralShellSpawner(_0x36bff0){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x36bff0));}let cachedShellPID;function findShellPID(){const _0x9c7709=a76_0x1530db;let _0x5115fd=process[_0x9c7709(0x20a)];const _0x5410cc=0xa;let _0x50d860=0x0;while(_0x50d860<_0x5410cc){const _0x59aaab=getProcessInfo(_0x5115fd);if(!_0x59aaab){process[_0x9c7709(0x20e)][_0x9c7709(0x200)]&&console[_0x9c7709(0x1fc)](_0x9c7709(0x202)+_0x5115fd+',\x20using\x20fallback');break;}if(isShell(_0x59aaab[_0x9c7709(0x1fb)])){const _0x3236a8=getProcessInfo(_0x59aaab[_0x9c7709(0x20a)]);if(_0x3236a8&&isEphemeralShellSpawner(_0x3236a8[_0x9c7709(0x1fb)])){process[_0x9c7709(0x20e)]['DEBUG']&&console[_0x9c7709(0x1fc)](_0x9c7709(0x1f5)+_0x59aaab[_0x9c7709(0x212)]+'\x20('+_0x59aaab['comm']+_0x9c7709(0x1f9)+_0x3236a8['comm']+_0x9c7709(0x208));_0x5115fd=_0x59aaab[_0x9c7709(0x20a)],_0x50d860++;continue;}return _0x59aaab[_0x9c7709(0x212)];}if(_0x59aaab[_0x9c7709(0x20a)]===0x0||_0x59aaab[_0x9c7709(0x20a)]===0x1){if(isShell(_0x59aaab[_0x9c7709(0x1fb)]))return _0x59aaab['pid'];break;}_0x5115fd=_0x59aaab[_0x9c7709(0x20a)],_0x50d860++;}return process[_0x9c7709(0x20e)]['DEBUG']&&console[_0x9c7709(0x1fc)](_0x9c7709(0x20f)),process[_0x9c7709(0x20a)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4487fc){try{return process['kill'](_0x4487fc,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(_0x5ea140,_0x5d8b01){const _0x3b9e14=a77_0x1dc5,_0x9df374=_0x5ea140();while(!![]){try{const _0x1e8c7d=parseInt(_0x3b9e14(0x8a))/0x1+parseInt(_0x3b9e14(0x83))/0x2*(parseInt(_0x3b9e14(0x88))/0x3)+-parseInt(_0x3b9e14(0x8b))/0x4*(-parseInt(_0x3b9e14(0x7d))/0x5)+-parseInt(_0x3b9e14(0x7f))/0x6+-parseInt(_0x3b9e14(0x86))/0x7*(-parseInt(_0x3b9e14(0x87))/0x8)+-parseInt(_0x3b9e14(0x85))/0x9+-parseInt(_0x3b9e14(0x81))/0xa;if(_0x1e8c7d===_0x5d8b01)break;else _0x9df374['push'](_0x9df374['shift']());}catch(_0x45a357){_0x9df374['push'](_0x9df374['shift']());}}}(a77_0x4b6d,0xafd5d));function a77_0x4b6d(){const _0x6f8ff9=['toLowerCase','stdin','240lAIoIQ','question','4187736JvQaRi','stdout','9561610xlkizw','createInterface','7726RjvEwF','\x20(y/N):\x20','558279iEmayt','14ctQmsf','567096qqiRcY','783NElcBJ','close','163248EoEMer','93592hRQYQb','yes'];a77_0x4b6d=function(){return _0x6f8ff9;};return a77_0x4b6d();}import*as a77_0x52cfce from'readline';function a77_0x1dc5(_0x4a083e,_0xd136e1){const _0x4b6d06=a77_0x4b6d();return a77_0x1dc5=function(_0x1dc5d8,_0x297356){_0x1dc5d8=_0x1dc5d8-0x7b;let _0x1ded66=_0x4b6d06[_0x1dc5d8];return _0x1ded66;},a77_0x1dc5(_0x4a083e,_0xd136e1);}export async function confirm(_0x503d06){const _0x5ca113=a77_0x1dc5,_0x26201f=a77_0x52cfce[_0x5ca113(0x82)]({'input':process[_0x5ca113(0x7c)],'output':process[_0x5ca113(0x80)]});return new Promise(_0x38930d=>{const _0x1dc52d=_0x5ca113;_0x26201f[_0x1dc52d(0x7e)](_0x503d06+_0x1dc52d(0x84),_0x7e45ec=>{const _0x27c1db=_0x1dc52d;_0x26201f[_0x27c1db(0x89)](),_0x38930d(_0x7e45ec[_0x27c1db(0x7b)]()==='y'||_0x7e45ec[_0x27c1db(0x7b)]()===_0x27c1db(0x8c));});});}
@@ -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(_0x1b4ef4,_0x2b296b){const _0x441a08=a78_0x3714,_0x269c47=_0x1b4ef4();while(!![]){try{const _0x544e00=parseInt(_0x441a08(0xbc))/0x1*(parseInt(_0x441a08(0xca))/0x2)+-parseInt(_0x441a08(0xc6))/0x3*(parseInt(_0x441a08(0xce))/0x4)+-parseInt(_0x441a08(0xc9))/0x5*(-parseInt(_0x441a08(0xc2))/0x6)+-parseInt(_0x441a08(0xc4))/0x7+-parseInt(_0x441a08(0xb6))/0x8*(-parseInt(_0x441a08(0xbb))/0x9)+parseInt(_0x441a08(0xcf))/0xa*(parseInt(_0x441a08(0xbf))/0xb)+-parseInt(_0x441a08(0xcc))/0xc;if(_0x544e00===_0x2b296b)break;else _0x269c47['push'](_0x269c47['shift']());}catch(_0x37748a){_0x269c47['push'](_0x269c47['shift']());}}}(a78_0x3494,0xb40a8));export function parsePath(_0x11c8be){const _0x592802=a78_0x3714;if(!_0x11c8be||_0x11c8be['trim']()==='')throw new Error(_0x592802(0xc0));const _0x2b0e37=_0x11c8be[_0x592802(0xc5)]();if(_0x2b0e37==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x11c8be};const _0x4b26fc=_0x2b0e37[_0x592802(0xd1)]('/')?_0x2b0e37[_0x592802(0xc7)](0x1):_0x2b0e37,_0x5a0dd4=_0x4b26fc['split']('/')[_0x592802(0xcd)](_0x2cc00f=>_0x2cc00f!=='');if(_0x5a0dd4[_0x592802(0xb7)]===0x0)throw new Error(_0x592802(0xd3));const _0xcd58a9=_0x2b0e37[_0x592802(0xd1)]('/')||!isRelativePathSegment(_0x5a0dd4[0x0]);for(const _0x52b999 of _0x5a0dd4){validatePathSegment(_0x52b999);}return{'segments':_0x5a0dd4,'isAbsolute':_0xcd58a9,'raw':_0x11c8be};}function isRelativePathSegment(_0x26d058){return _0x26d058==='.'||_0x26d058==='..';}function validatePathSegment(_0x5b63fa){const _0x4d9695=a78_0x3714;if(_0x5b63fa==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x5b63fa==='.'||_0x5b63fa==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x5b63fa))throw new Error(_0x4d9695(0xbd)+_0x5b63fa);if(_0x5b63fa!==_0x5b63fa['trim']()){}}export function validatePath(_0x239d04){const _0x186dd3=a78_0x3714;if(_0x239d04[_0x186dd3(0xb9)][_0x186dd3(0xb7)]===0x0&&!_0x239d04['isAbsolute'])throw new Error(_0x186dd3(0xb8));if(_0x239d04[_0x186dd3(0xd0)]){if(_0x239d04[_0x186dd3(0xb9)][0x0]==='..')throw new Error(_0x186dd3(0xcb));let _0x5fb85b=0x0;for(const _0x128edc of _0x239d04[_0x186dd3(0xb9)]){if(_0x128edc==='..'){if(_0x5fb85b===0x0)throw new Error(_0x186dd3(0xc3));_0x5fb85b--;}else _0x128edc!=='.'&&_0x5fb85b++;}}}export function joinPaths(_0x13f2f3,_0x17af06){const _0x24b192=a78_0x3714;if(!_0x13f2f3||_0x13f2f3==='/')return _0x17af06;if(!_0x17af06||_0x17af06==='.')return _0x13f2f3;if(_0x17af06[_0x24b192(0xd1)]('/'))return _0x17af06;const _0xf8724a=parsePath(_0x13f2f3),_0x38a5a8=parsePath(_0x17af06),_0x134bf8=[..._0xf8724a[_0x24b192(0xb9)]];for(const _0xa279be of _0x38a5a8['segments']){if(_0xa279be==='.')continue;else{if(_0xa279be==='..'){if(_0x134bf8[_0x24b192(0xb7)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x134bf8[_0x24b192(0xc8)]();}else _0x134bf8[_0x24b192(0xd2)](_0xa279be);}}const _0x34aa6e=_0x134bf8[_0x24b192(0xbe)]('/');return _0xf8724a['raw'][_0x24b192(0xd1)]('/')?'/'+_0x34aa6e:_0x34aa6e;}function a78_0x3714(_0x146b96,_0x4de482){const _0x3494c0=a78_0x3494();return a78_0x3714=function(_0x3714d2,_0x27cb4c){_0x3714d2=_0x3714d2-0xb6;let _0xb82b68=_0x3494c0[_0x3714d2];return _0xb82b68;},a78_0x3714(_0x146b96,_0x4de482);}export function normalizePath(_0x4c8fe2){const _0x3554dc=a78_0x3714,_0x51e6b4=parsePath(_0x4c8fe2),_0x39937c=[];for(const _0x2b4ff7 of _0x51e6b4[_0x3554dc(0xb9)]){if(_0x2b4ff7==='.')continue;else{if(_0x2b4ff7==='..'){if(_0x39937c[_0x3554dc(0xb7)]===0x0){if(_0x51e6b4[_0x3554dc(0xd0)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x39937c[_0x3554dc(0xd2)]('..');}else _0x39937c[_0x39937c[_0x3554dc(0xb7)]-0x1]==='..'?_0x39937c[_0x3554dc(0xd2)]('..'):_0x39937c[_0x3554dc(0xc8)]();}else _0x39937c[_0x3554dc(0xd2)](_0x2b4ff7);}}if(_0x39937c['length']===0x0)return _0x51e6b4[_0x3554dc(0xd0)]?'/':'.';const _0x472ba5=_0x39937c[_0x3554dc(0xbe)]('/');return _0x51e6b4[_0x3554dc(0xba)][_0x3554dc(0xd1)]('/')?'/'+_0x472ba5:_0x472ba5;}export function getParentPath(_0x155636){const _0x5c8797=a78_0x3714,_0x1cfd48=parsePath(_0x155636);if(_0x1cfd48[_0x5c8797(0xb9)][_0x5c8797(0xb7)]<=0x1)return'/';const _0x3f4dfa=_0x1cfd48[_0x5c8797(0xb9)][_0x5c8797(0xc1)](0x0,-0x1)[_0x5c8797(0xbe)]('/');return _0x1cfd48[_0x5c8797(0xba)][_0x5c8797(0xd1)]('/')?'/'+_0x3f4dfa:_0x3f4dfa;}export function getBaseName(_0x4a6728){const _0x1ce1b1=a78_0x3714,_0x561eb5=parsePath(_0x4a6728);return _0x561eb5['segments'][_0x561eb5[_0x1ce1b1(0xb9)][_0x1ce1b1(0xb7)]-0x1]||'';}export function isChildPath(_0x328ac3,_0x326992){const _0x442979=a78_0x3714,_0x272ca7=parsePath(_0x328ac3),_0x42b63b=parsePath(_0x326992);if(_0x272ca7[_0x442979(0xb9)][_0x442979(0xb7)]<=_0x42b63b[_0x442979(0xb9)][_0x442979(0xb7)])return![];for(let _0x2227a8=0x0;_0x2227a8<_0x42b63b['segments']['length'];_0x2227a8++){if(_0x272ca7[_0x442979(0xb9)][_0x2227a8]!==_0x42b63b[_0x442979(0xb9)][_0x2227a8])return![];}return!![];}export function splitPath(_0x121f55){const _0x5c3b40=a78_0x3714,_0x1dab55=parsePath(_0x121f55);if(_0x1dab55['segments']['length']===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x1dab55[_0x5c3b40(0xb9)][_0x5c3b40(0xb7)]===0x1)return{'parent':_0x1dab55['segments'][0x0]};return{'parent':_0x1dab55['segments'][0x0],'child':_0x1dab55[_0x5c3b40(0xb9)][_0x5c3b40(0xc1)](0x1)[_0x5c3b40(0xbe)]('/')};}function a78_0x3494(){const _0x1a2803=['182439UUCVAV','7273XBGrNl','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','join','55jZnGhr','Path\x20cannot\x20be\x20empty','slice','6lhClZz','Path\x20attempts\x20to\x20navigate\x20above\x20root','3778362ypzpRQ','trim','2140491ykgVNa','substring','pop','7278935MPXFDW','50hKpLTu','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','25563888gwWUFd','filter','4CrqAlK','2209990EcXAzb','isAbsolute','startsWith','push','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','544gPEasY','length','Relative\x20path\x20cannot\x20be\x20empty','segments','raw'];a78_0x3494=function(){return _0x1a2803;};return a78_0x3494();}
@@ -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(_0x5c130d,_0x4196a9){const _0x26eb0b=a79_0x5d9f,_0x428ad1=_0x5c130d();while(!![]){try{const _0x2d1de1=-parseInt(_0x26eb0b(0x1d3))/0x1*(parseInt(_0x26eb0b(0x1ce))/0x2)+-parseInt(_0x26eb0b(0x1c7))/0x3*(-parseInt(_0x26eb0b(0x1cf))/0x4)+parseInt(_0x26eb0b(0x1cb))/0x5+-parseInt(_0x26eb0b(0x1cd))/0x6+-parseInt(_0x26eb0b(0x1d2))/0x7+-parseInt(_0x26eb0b(0x1cc))/0x8*(-parseInt(_0x26eb0b(0x1d1))/0x9)+parseInt(_0x26eb0b(0x1c5))/0xa;if(_0x2d1de1===_0x4196a9)break;else _0x428ad1['push'](_0x428ad1['shift']());}catch(_0x58301f){_0x428ad1['push'](_0x428ad1['shift']());}}}(a79_0x55c7,0xf0223));function a79_0x5d9f(_0x4d5405,_0x5e05bf){const _0x55c7ce=a79_0x55c7();return a79_0x5d9f=function(_0x5d9f98,_0xedce44){_0x5d9f98=_0x5d9f98-0x1c5;let _0x19758f=_0x55c7ce[_0x5d9f98];return _0x19758f;},a79_0x5d9f(_0x4d5405,_0x5e05bf);}function a79_0x55c7(){const _0x3bbee0=['indexOf','.\x20Child\x20name\x20cannot\x20be\x20empty','substring','9600615NjMdKk','2872xvzJvX','6108264bkjyAR','20814vZereW','8Vuhhyq','Invalid\x20segment\x20reference\x20format:\x20','4806SVHjYz','9254063jtuGuo','127szqFub','15700280FtziAz','.\x20Parent\x20name\x20cannot\x20be\x20empty','1445208yblWzu'];a79_0x55c7=function(){return _0x3bbee0;};return a79_0x55c7();}export function parseSegmentRef(_0x5da5d8){const _0xeefb68=a79_0x5d9f,_0x149b8f=_0x5da5d8[_0xeefb68(0x1c8)]('/');if(_0x149b8f===-0x1)return{'parentId':_0x5da5d8};if(_0x149b8f===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5da5d8+_0xeefb68(0x1c6));const _0x5a065d=_0x5da5d8[_0xeefb68(0x1ca)](0x0,_0x149b8f),_0x438d22=_0x5da5d8[_0xeefb68(0x1ca)](_0x149b8f+0x1);if(_0x438d22==='')throw new Error(_0xeefb68(0x1d0)+_0x5da5d8+_0xeefb68(0x1c9));return{'parentId':_0x5a065d,'childId':_0x438d22};}
@@ -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 a80_0x21bd(_0x41a4bb,_0x106bc8){const _0x3841b4=a80_0x3841();return a80_0x21bd=function(_0x21bd80,_0x52976d){_0x21bd80=_0x21bd80-0x1de;let _0x3eef1e=_0x3841b4[_0x21bd80];return _0x3eef1e;},a80_0x21bd(_0x41a4bb,_0x106bc8);}(function(_0x293437,_0x5df41e){const _0x1f4a99=a80_0x21bd,_0x487cee=_0x293437();while(!![]){try{const _0x1376dd=parseInt(_0x1f4a99(0x1f7))/0x1+parseInt(_0x1f4a99(0x1f3))/0x2+-parseInt(_0x1f4a99(0x1df))/0x3*(parseInt(_0x1f4a99(0x1ed))/0x4)+-parseInt(_0x1f4a99(0x1ec))/0x5*(-parseInt(_0x1f4a99(0x1e9))/0x6)+parseInt(_0x1f4a99(0x1e3))/0x7*(-parseInt(_0x1f4a99(0x1ee))/0x8)+parseInt(_0x1f4a99(0x1de))/0x9*(parseInt(_0x1f4a99(0x1f8))/0xa)+-parseInt(_0x1f4a99(0x1e0))/0xb;if(_0x1376dd===_0x5df41e)break;else _0x487cee['push'](_0x487cee['shift']());}catch(_0x3cea03){_0x487cee['push'](_0x487cee['shift']());}}}(a80_0x3841,0x2674f));function a80_0x3841(){const _0x267fe6=['27loSKjZ','1487805yPDtww','isTTY','jobId','220339vMotOa','stop','toFixed','start','text','stdout','1236kEQDWp','\x20[Job\x20ID:\x20','cyan','1465rerBAQ','91108aMqJfj','8QuYqsM','intervalFactory','replace','clock','floor','329748qbUdCw','isSpinning','phase','now','78792fyHvIz','2252200ONrThw','extra','...','9vEqKkQ'];a80_0x3841=function(){return _0x267fe6;};return a80_0x3841();}import a80_0x2a76d6 from'ora';export function createCommandSpinner(_0x2b208e,_0x19b097={}){const _0x155507=a80_0x21bd,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x19b097;return a80_0x2a76d6({'text':_0x2b208e,'color':_0x155507(0x1eb),'isEnabled':forceEnabled||process[_0x155507(0x1e8)][_0x155507(0x1e1)]&&!verbose});}export async function withSpinner(_0x2c4e32,_0x1f8002,_0x4ada12={}){const _0x567815=a80_0x21bd,_0x11fdbc=_0x4ada12['clock']??(()=>Date[_0x567815(0x1f6)]()),_0x16df55=createCommandSpinner(_0x2c4e32,_0x4ada12);_0x16df55[_0x567815(0x1e6)]();const _0x5f4e72=_0x11fdbc();try{const _0xebac31=await _0x1f8002(),_0x1c071c=_0x11fdbc()-_0x5f4e72;return _0x16df55['stop'](),{'data':_0xebac31,'elapsedMs':_0x1c071c};}catch(_0x2200cd){_0x16df55[_0x567815(0x1e4)]();throw _0x2200cd;}}export async function withQuerySpinner(_0xf3fe75,_0x416a98,_0x3b4c4a={}){const _0x55bbb2=a80_0x21bd,_0x1ed10a=_0x3b4c4a[_0x55bbb2(0x1f1)]??(()=>Date[_0x55bbb2(0x1f6)]()),_0x3b76b6=_0x3b4c4a[_0x55bbb2(0x1ef)]??setInterval,_0x4c5334=createCommandSpinner(_0xf3fe75,_0x3b4c4a);_0x4c5334[_0x55bbb2(0x1e6)]();const _0x2f2e15=_0x1ed10a(),_0x3dc786=_0xf3fe75[_0x55bbb2(0x1f0)](_0x55bbb2(0x1fa),''),_0x47ac13={},_0x4fd5c3=()=>{const _0x5d477e=_0x55bbb2;if(!_0x4c5334[_0x5d477e(0x1f4)])return;const _0x30fd78=_0x1ed10a()-_0x2f2e15,_0x412a8a=formatElapsed(_0x30fd78),_0xf7a75a=_0x47ac13[_0x5d477e(0x1f5)]??_0x3dc786,_0x12e077=_0x47ac13['jobId']?_0x5d477e(0x1ea)+_0x47ac13[_0x5d477e(0x1e2)]+']':'',_0x4cd945=_0x47ac13[_0x5d477e(0x1f9)]?'\x20'+_0x47ac13['extra']:'';_0x4c5334[_0x5d477e(0x1e7)]=_0xf7a75a+'\x20'+_0x412a8a+_0x4cd945+_0x12e077;},_0x4fcfbf=_0x3b76b6(()=>{_0x4fd5c3();},0x3e8),_0x263db4={'setPhase':_0x162a26=>{const _0x285d12=_0x55bbb2;_0x47ac13[_0x285d12(0x1f5)]=_0x162a26,_0x4fd5c3();},'setJobId':_0x4c9da9=>{const _0x41787f=_0x55bbb2;_0x47ac13[_0x41787f(0x1e2)]=_0x4c9da9,_0x4fd5c3();},'setExtra':_0x37ecdd=>{const _0x58c6fa=_0x55bbb2;_0x47ac13[_0x58c6fa(0x1f9)]=_0x37ecdd,_0x4fd5c3();}};_0x4fd5c3();try{const _0x18d350=await _0x416a98(_0x263db4),_0xcfcb27=_0x1ed10a()-_0x2f2e15;return{'data':_0x18d350,'elapsedMs':_0xcfcb27};}finally{clearInterval(_0x4fcfbf),_0x4c5334[_0x55bbb2(0x1e4)]();}}export function formatElapsed(_0x30771a){const _0x1f3e57=a80_0x21bd,_0x21c4e9=Math[_0x1f3e57(0x1f2)](_0x30771a/0x3e8);if(_0x21c4e9<0x3c)return(_0x30771a/0x3e8)[_0x1f3e57(0x1e5)](0x1)+'s';const _0x48f991=Math['floor'](_0x21c4e9/0x3c),_0x19a1cb=_0x21c4e9%0x3c;if(_0x48f991<0x3c)return _0x48f991+'m\x20'+_0x19a1cb+'s';const _0x3ae56c=Math['floor'](_0x48f991/0x3c),_0x599f8a=_0x48f991%0x3c;return _0x3ae56c+'h\x20'+_0x599f8a+'m';}
@@ -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(_0xb4fa79,_0x26255f){const _0x3ef57f=a81_0x57b8,_0x1febf8=_0xb4fa79();while(!![]){try{const _0x4e3a9d=parseInt(_0x3ef57f(0xb9))/0x1*(-parseInt(_0x3ef57f(0xc1))/0x2)+parseInt(_0x3ef57f(0xce))/0x3+-parseInt(_0x3ef57f(0xd0))/0x4+-parseInt(_0x3ef57f(0xc8))/0x5*(parseInt(_0x3ef57f(0xcf))/0x6)+-parseInt(_0x3ef57f(0xcb))/0x7+parseInt(_0x3ef57f(0xc3))/0x8*(-parseInt(_0x3ef57f(0xbd))/0x9)+parseInt(_0x3ef57f(0xba))/0xa*(parseInt(_0x3ef57f(0xc2))/0xb);if(_0x4e3a9d===_0x26255f)break;else _0x1febf8['push'](_0x1febf8['shift']());}catch(_0xe5c7e3){_0x1febf8['push'](_0x1febf8['shift']());}}}(a81_0x3496,0x7b3fd));function a81_0x57b8(_0x2eca0f,_0xef19f6){const _0x349638=a81_0x3496();return a81_0x57b8=function(_0x57b8c1,_0x4aef4a){_0x57b8c1=_0x57b8c1-0xb9;let _0x5235ff=_0x349638[_0x57b8c1];return _0x5235ff;},a81_0x57b8(_0x2eca0f,_0xef19f6);}import{readFileSync}from'fs';export function stripSqlComments(_0x26059b){const _0x44955e=a81_0x57b8;let _0x4b9f3d=_0x26059b[_0x44955e(0xcd)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4b9f3d=_0x4b9f3d[_0x44955e(0xcd)](/--.*$/gm,''),_0x4b9f3d['trim']();}function a81_0x3496(){const _0x3a5986=['168364tLUSfD','length','replace','2940168RgqjHp','5007282JPjglY','1750492YnCbvY','utf-8','731190YkJyxU','40GqiGCk','ENOENT','trim','82539rbwKbH','toLowerCase','map','message','2wllFxG','6008706ZbjJjY','552TgBLmm','filter','EACCES','push','Error\x20reading\x20file\x20\x27','5eVDQwy','Content\x20contains\x20no\x20SQL\x20statements','code'];a81_0x3496=function(){return _0x3a5986;};return a81_0x3496();}function isEscaped(_0x216b1f,_0x51b310){let _0x5f4e3a=0x0;for(let _0x433af1=_0x51b310-0x1;_0x433af1>=0x0&&_0x216b1f[_0x433af1]==='\x5c';_0x433af1--){_0x5f4e3a++;}return _0x5f4e3a%0x2===0x1;}export function splitSqlStatements(_0x1753b7){const _0x1b5f7c=a81_0x57b8,_0x591f6b=stripSqlComments(_0x1753b7);if(!_0x591f6b)throw new Error(_0x1b5f7c(0xc9));const _0x3db1ba=[];let _0x15e651='',_0x3b276d=![],_0x429a3b=![],_0x3c5a5e=![];for(let _0xdeaac1=0x0;_0xdeaac1<_0x1753b7['length'];_0xdeaac1++){const _0x5bf5cb=_0x1753b7[_0xdeaac1];if(_0x5bf5cb==='\x27'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x429a3b&&!_0x3c5a5e)_0x3b276d=!_0x3b276d;else{if(_0x5bf5cb==='\x22'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x3b276d&&!_0x3c5a5e)_0x429a3b=!_0x429a3b;else _0x5bf5cb==='`'&&!isEscaped(_0x1753b7,_0xdeaac1)&&!_0x3b276d&&!_0x429a3b&&(_0x3c5a5e=!_0x3c5a5e);}if(_0x5bf5cb===';'&&!_0x3b276d&&!_0x429a3b&&!_0x3c5a5e){const _0x1b4615=_0x15e651['trim']();_0x1b4615&&_0x3db1ba[_0x1b5f7c(0xc6)](_0x1b4615),_0x15e651='';}else _0x15e651+=_0x5bf5cb;}const _0x30157c=_0x15e651[_0x1b5f7c(0xbc)]();_0x30157c&&_0x3db1ba[_0x1b5f7c(0xc6)](_0x30157c);const _0xac13a3=_0x3db1ba[_0x1b5f7c(0xbf)](_0x105dbd=>_0x105dbd[_0x1b5f7c(0xbc)]())[_0x1b5f7c(0xc4)](_0x1894ce=>{const _0x38e309=_0x1b5f7c,_0x39ab04=stripSqlComments(_0x1894ce);return _0x39ab04[_0x38e309(0xcc)]>0x0;});if(_0xac13a3[_0x1b5f7c(0xcc)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0xac13a3;}export function readFileContent(_0x446770){const _0x46b00e=a81_0x57b8;try{return readFileSync(_0x446770,_0x46b00e(0xd1));}catch(_0x5e5574){const _0x357502=_0x5e5574[_0x46b00e(0xca)];if(_0x357502===_0x46b00e(0xbb))throw new Error('File\x20\x27'+_0x446770+'\x27\x20not\x20found');else{if(_0x357502===_0x46b00e(0xc5))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x446770+'\x27');else throw new Error(_0x46b00e(0xc7)+_0x446770+'\x27:\x20'+_0x5e5574[_0x46b00e(0xc0)]);}}}export function readSqlStatementsFromFile(_0x56d911){const _0x52fbb5=a81_0x57b8,_0x353d1c=readFileContent(_0x56d911);try{return splitSqlStatements(_0x353d1c);}catch(_0x15515c){throw new Error('File\x20\x27'+_0x56d911+'\x27\x20'+_0x15515c[_0x52fbb5(0xc0)][_0x52fbb5(0xbe)]());}}
@@ -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(_0x5f30cc,_0x5cc0c6){const _0x56dff0=a82_0xc99c,_0x40dcbd=_0x5f30cc();while(!![]){try{const _0x6ae4d2=-parseInt(_0x56dff0(0xf8))/0x1*(parseInt(_0x56dff0(0x108))/0x2)+-parseInt(_0x56dff0(0xf9))/0x3+-parseInt(_0x56dff0(0xf7))/0x4+parseInt(_0x56dff0(0x101))/0x5+parseInt(_0x56dff0(0x103))/0x6+-parseInt(_0x56dff0(0x102))/0x7*(-parseInt(_0x56dff0(0xfa))/0x8)+-parseInt(_0x56dff0(0xfc))/0x9*(-parseInt(_0x56dff0(0xf6))/0xa);if(_0x6ae4d2===_0x5cc0c6)break;else _0x40dcbd['push'](_0x40dcbd['shift']());}catch(_0x4852ce){_0x40dcbd['push'](_0x40dcbd['shift']());}}}(a82_0x4d59,0x3e486));export async function*parseSSEStream(_0x3eb9a7,_0xcf0418){const _0x35e59f=a82_0xc99c;if(!_0x3eb9a7[_0x35e59f(0xff)])throw new Error('Response\x20body\x20is\x20null');const _0x20d409=_0x3eb9a7[_0x35e59f(0xff)]['getReader'](),_0x5ddaa4=new TextDecoder();let _0x1388e3='',_0x36d469={};try{while(!![]){const {done:_0x2be01f,value:_0x22cd25}=await _0x20d409['read']();if(_0x2be01f){if(_0x36d469[_0x35e59f(0x109)]){_0xcf0418?.[_0x35e59f(0x107)](_0x35e59f(0xfe)+_0x36d469[_0x35e59f(0x109)]);const _0x5c9c1f=parseSSEData(_0x36d469[_0x35e59f(0x109)]);yield _0x5c9c1f;}break;}_0x1388e3+=_0x5ddaa4['decode'](_0x22cd25,{'stream':!![]});const _0x10fad4=_0x1388e3[_0x35e59f(0x106)]('\x0a');_0x1388e3=_0x10fad4[_0x35e59f(0xfb)]()||'';for(const _0x5522a2 of _0x10fad4){if(_0x5522a2[_0x35e59f(0x104)]()===''){if(_0x36d469['data']){_0xcf0418?.[_0x35e59f(0x107)](_0x35e59f(0xfe)+_0x36d469['data']);const _0x3a8309=parseSSEData(_0x36d469[_0x35e59f(0x109)]);yield _0x3a8309,_0x36d469={};}continue;}if(_0x5522a2[_0x35e59f(0xf4)](':'))continue;const _0x14c7df=_0x5522a2[_0x35e59f(0xf5)](':');if(_0x14c7df===-0x1)continue;const _0x22b21f=_0x5522a2['slice'](0x0,_0x14c7df);let _0x57da23=_0x5522a2[_0x35e59f(0xfd)](_0x14c7df+0x1);_0x57da23[_0x35e59f(0xf4)]('\x20')&&(_0x57da23=_0x57da23[_0x35e59f(0xfd)](0x1));switch(_0x22b21f){case'event':_0x36d469['event']=_0x57da23;break;case _0x35e59f(0x109):_0x36d469[_0x35e59f(0x109)]=_0x36d469[_0x35e59f(0x109)]?_0x36d469['data']+'\x0a'+_0x57da23:_0x57da23;break;case'id':_0x36d469['id']=_0x57da23;break;}}}}finally{_0x20d409[_0x35e59f(0x100)]();}}function a82_0xc99c(_0x5c70a8,_0x10e02f){const _0x4d5940=a82_0x4d59();return a82_0xc99c=function(_0xc99c7d,_0x1fac3b){_0xc99c7d=_0xc99c7d-0xf3;let _0x256722=_0x4d5940[_0xc99c7d];return _0x256722;},a82_0xc99c(_0x5c70a8,_0x10e02f);}function parseSSEData(_0x5d7cf2){const _0x37f5ba=a82_0xc99c;try{return JSON[_0x37f5ba(0xf3)](_0x5d7cf2);}catch(_0x5c4ad1){throw new Error(_0x37f5ba(0x105)+_0x5d7cf2,{'cause':_0x5c4ad1});}}function a82_0x4d59(){const _0x2e186f=['10pyzTjR','646728AQOCZv','38885wioKky','640197fDyuDD','8tJLZFn','pop','6396201NuAUGJ','slice','[LLM\x20API\x20SSE]\x20','body','releaseLock','222800dvLhQB','1678908QZsfqJ','376998futOKz','trim','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','debug','22AxBfvI','data','parse','startsWith','indexOf'];a82_0x4d59=function(){return _0x2e186f;};return a82_0x4d59();}
@@ -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(_0x31ad9f,_0x48bec7){const _0x17cb12=a83_0x3cae,_0x100c4c=_0x31ad9f();while(!![]){try{const _0x273b3b=-parseInt(_0x17cb12(0xa7))/0x1*(-parseInt(_0x17cb12(0xad))/0x2)+parseInt(_0x17cb12(0xb5))/0x3*(parseInt(_0x17cb12(0xac))/0x4)+-parseInt(_0x17cb12(0xa8))/0x5+-parseInt(_0x17cb12(0xb9))/0x6+parseInt(_0x17cb12(0xb8))/0x7*(parseInt(_0x17cb12(0xae))/0x8)+parseInt(_0x17cb12(0xa9))/0x9+parseInt(_0x17cb12(0xb6))/0xa*(-parseInt(_0x17cb12(0xb2))/0xb);if(_0x273b3b===_0x48bec7)break;else _0x100c4c['push'](_0x100c4c['shift']());}catch(_0x3c8861){_0x100c4c['push'](_0x100c4c['shift']());}}}(a83_0x40f1,0x30dd3));import a83_0x130466 from'string-width';function a83_0x3cae(_0x41d270,_0xeba413){const _0x40f17f=a83_0x40f1();return a83_0x3cae=function(_0x3caea9,_0x245259){_0x3caea9=_0x3caea9-0xa5;let _0x3423ca=_0x40f17f[_0x3caea9];return _0x3423ca;},a83_0x3cae(_0x41d270,_0xeba413);}function a83_0x40f1(){const _0xf9d10c=['287ATzULi','2258040gjvuVq','USERNAME','floor','slice','env','toString','Cannot\x20escape\x20empty\x20string\x20literal','238609otVmCO','1206975qERrtK','2615256IJJAQS','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toLowerCase','314908hWBZot','2RaIFpW','60608oMRkUW','unknown','trim','repeat','11shQhzM','replace','substring','3DQMzsl','1006540usOWVc','random'];a83_0x40f1=function(){return _0xf9d10c;};return a83_0x40f1();}export function stringWidth(_0x1d1bd5){return a83_0x130466(_0x1d1bd5);}export function padEnd(_0x23a70c,_0x527ac9){const _0x266681=a83_0x3cae,_0x388a11=stringWidth(_0x23a70c);if(_0x388a11>=_0x527ac9)return _0x23a70c;return _0x23a70c+'\x20'[_0x266681(0xb1)](_0x527ac9-_0x388a11);}export function padStart(_0x61bc6a,_0x489623){const _0x5d9abb=a83_0x3cae,_0x455d8=stringWidth(_0x61bc6a);if(_0x455d8>=_0x489623)return _0x61bc6a;return'\x20'[_0x5d9abb(0xb1)](_0x489623-_0x455d8)+_0x61bc6a;}export function centerAlign(_0x11265f,_0x15494d){const _0x1d2f5c=a83_0x3cae,_0x54ae77=stringWidth(_0x11265f);if(_0x54ae77>_0x15494d){if(_0x15494d<=0x1)return'…'[_0x1d2f5c(0xb4)](0x0,_0x15494d);let _0x8f31e9=_0x11265f;while(stringWidth(_0x8f31e9+'…')>_0x15494d){_0x8f31e9=_0x8f31e9[_0x1d2f5c(0xbc)](0x0,-0x1);}return _0x8f31e9+'…';}if(_0x54ae77===_0x15494d)return _0x11265f;const _0x5256df=_0x15494d-_0x54ae77,_0x4d7b7a=Math[_0x1d2f5c(0xbb)](_0x5256df/0x2),_0x2b00b3=_0x5256df-_0x4d7b7a;return'\x20'[_0x1d2f5c(0xb1)](_0x4d7b7a)+_0x11265f+'\x20'[_0x1d2f5c(0xb1)](_0x2b00b3);}export function escapeStringLiteral(_0x264544){const _0x4bdff2=a83_0x3cae;if(!_0x264544||_0x264544[_0x4bdff2(0xb0)]()['length']===0x0)throw new Error(_0x4bdff2(0xa6));const _0x223bf3=_0x264544['replace'](/'/g,'\x27\x27');return'\x27'+_0x223bf3+'\x27';}export function globToLike(_0x1ee44b){const _0x2eed3a=a83_0x3cae;let _0x4fbbb2=_0x1ee44b[_0x2eed3a(0xb3)](/\\/g,'\x5c\x5c')[_0x2eed3a(0xb3)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x4fbbb2=_0x4fbbb2[_0x2eed3a(0xb3)](/\*/g,'%')[_0x2eed3a(0xb3)](/\?/g,'_'),_0x4fbbb2;}export function buildLikePattern(_0x1f1309){const _0x4c8b13=a83_0x3cae;if(!_0x1f1309||_0x1f1309[_0x4c8b13(0xb0)]()['length']===0x0)throw new Error(_0x4c8b13(0xaa));const _0x51350c=globToLike(_0x1f1309),_0x517dfd=_0x51350c[_0x4c8b13(0xb3)](/'/g,'\x27\x27');return'\x27'+_0x517dfd+'\x27';}export function matchGlobPattern(_0x2e04d4,_0x1dc6ad){const _0x53a204=a83_0x3cae,_0x4d7fb7=_0x1dc6ad[_0x53a204(0xb3)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x53a204(0xb3)](/\*/g,'.*')[_0x53a204(0xb3)](/\?/g,'.'),_0x1a3bd9=new RegExp('^'+_0x4d7fb7+'$');return _0x1a3bd9['test'](_0x2e04d4);}export function getSanitizedUsername(){const _0x133796=a83_0x3cae,_0x2fd9e5=process['env']['USER']||process[_0x133796(0xbd)][_0x133796(0xba)]||_0x133796(0xaf);return _0x2fd9e5['replace'](/[^a-zA-Z0-9]/g,'')[_0x133796(0xab)]();}export function generateRandomHex(){const _0x1c500e=a83_0x3cae,_0x4be6bf=Math[_0x1c500e(0xbb)](Math[_0x1c500e(0xb7)]()*0xfffff);return _0x4be6bf[_0x1c500e(0xa5)](0x10)['padStart'](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(_0x54b8a0,_0x22032b){const _0x5e33ff=a84_0x5f2a,_0x216c0c=_0x54b8a0();while(!![]){try{const _0x1d7436=parseInt(_0x5e33ff(0xa8))/0x1+parseInt(_0x5e33ff(0xa3))/0x2*(-parseInt(_0x5e33ff(0xb2))/0x3)+-parseInt(_0x5e33ff(0xac))/0x4+-parseInt(_0x5e33ff(0xa2))/0x5+-parseInt(_0x5e33ff(0x9f))/0x6*(parseInt(_0x5e33ff(0xb0))/0x7)+parseInt(_0x5e33ff(0xad))/0x8+parseInt(_0x5e33ff(0xb1))/0x9;if(_0x1d7436===_0x22032b)break;else _0x216c0c['push'](_0x216c0c['shift']());}catch(_0xdaa8c7){_0x216c0c['push'](_0x216c0c['shift']());}}}(a84_0x51d2,0x2c43a));function a84_0x5f2a(_0x5c7458,_0x18013b){const _0x51d260=a84_0x51d2();return a84_0x5f2a=function(_0x5f2a5a,_0x52aca1){_0x5f2a5a=_0x5f2a5a-0x9c;let _0x2b18d2=_0x51d260[_0x5f2a5a];return _0x2b18d2;},a84_0x5f2a(_0x5c7458,_0x18013b);}function hasWildcard(_0x5cb234){const _0x12b930=a84_0x5f2a;return _0x5cb234[_0x12b930(0x9c)]('*')||_0x5cb234[_0x12b930(0x9c)]('?');}export function parseTableReference(_0x482c57){const _0x24544d=a84_0x5f2a;if(!_0x482c57||_0x482c57['trim']()[_0x24544d(0x9e)]===0x0)throw new Error(_0x24544d(0xa5));const _0x2dda79=_0x482c57[_0x24544d(0xa1)](),_0x39de7e={'original':_0x2dda79},_0x102bda=_0x2dda79[_0x24544d(0xae)]('.');if(_0x102bda['length']===0x1){const _0x3135fc=_0x102bda[0x0];if(!_0x3135fc)throw new Error(_0x24544d(0xb3));_0x39de7e[_0x24544d(0xa6)]=_0x3135fc;}else{if(_0x102bda['length']===0x2){const [_0x3876c8,_0x5a06c1]=_0x102bda;if(!_0x3876c8)throw new Error(_0x24544d(0xa0));if(!_0x5a06c1)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x39de7e[_0x24544d(0xab)]=_0x3876c8,_0x39de7e[_0x24544d(0xa6)]=_0x5a06c1;}else{if(_0x102bda[_0x24544d(0x9e)]===0x3){const [_0x4310a5,_0x1994ad,_0x15f7df]=_0x102bda;if(!_0x4310a5||!_0x1994ad||!_0x15f7df)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x39de7e['catalog']=_0x4310a5,_0x39de7e[_0x24544d(0xab)]=_0x1994ad,_0x39de7e[_0x24544d(0xa6)]=_0x15f7df;}else throw new Error(_0x24544d(0xaf));}}return _0x39de7e;}function a84_0x51d2(){const _0x37e73c=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','catalog','44625muzztN','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','database','680056BeEntd','71776NaIxkM','split','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','98TQSZXD','7003665MiPOtD','6JiOWsF','Pattern\x20cannot\x20be\x20just\x20a\x20dot','includes','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','length','51846hgMJAk','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','trim','1198230WLDyqg','119842JNbttt','Table\x20name\x20is\x20required\x20for\x20describe\x20operation'];a84_0x51d2=function(){return _0x37e73c;};return a84_0x51d2();}export function formatTableReference(_0x5358ff){const _0x4382bc=a84_0x5f2a,_0x556832=[];return _0x5358ff['catalog']&&_0x556832[_0x4382bc(0xa9)](_0x5358ff[_0x4382bc(0xa7)]),_0x5358ff[_0x4382bc(0xab)]&&_0x556832['push'](_0x5358ff['database']),_0x5358ff[_0x4382bc(0xa6)]&&_0x556832['push'](_0x5358ff[_0x4382bc(0xa6)]),_0x556832['join']('.');}export function validateTableListReference(_0x5579b1){return undefined;}export function validateTableDescribeReference(_0xe39ee2){const _0x17e02d=a84_0x5f2a;if(!_0xe39ee2[_0x17e02d(0xa6)])return _0x17e02d(0xa4);if(_0xe39ee2[_0x17e02d(0xab)]&&hasWildcard(_0xe39ee2[_0x17e02d(0xab)]))return _0x17e02d(0x9d);if(hasWildcard(_0xe39ee2[_0x17e02d(0xa6)]))return _0x17e02d(0xaa);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 a85_0x22e6a8=a85_0x3cb0;(function(_0x48242a,_0x548f10){const _0x24e33f=a85_0x3cb0,_0x2f8c97=_0x48242a();while(!![]){try{const _0x2f14b7=parseInt(_0x24e33f(0x140))/0x1+parseInt(_0x24e33f(0x175))/0x2*(parseInt(_0x24e33f(0x14e))/0x3)+parseInt(_0x24e33f(0x171))/0x4*(-parseInt(_0x24e33f(0x14c))/0x5)+-parseInt(_0x24e33f(0x150))/0x6+-parseInt(_0x24e33f(0x159))/0x7*(parseInt(_0x24e33f(0x154))/0x8)+parseInt(_0x24e33f(0x177))/0x9*(parseInt(_0x24e33f(0x16e))/0xa)+parseInt(_0x24e33f(0x170))/0xb;if(_0x2f14b7===_0x548f10)break;else _0x2f8c97['push'](_0x2f8c97['shift']());}catch(_0x3d86ab){_0x2f8c97['push'](_0x2f8c97['shift']());}}}(a85_0x43f8,0xdc765));function a85_0x43f8(){const _0x5e6334=['getSeconds','floor','cause','tdx','split','logLevel','getMilliseconds','init','logStream','INFO','getFullYear','error','20AmnbNI','write','1109526EozEAX','8WKDQtt','getDate','ERROR','debug','110dHTPgS','name','7861716nOljAq','gray','cyan','TRACE','yellow','269936xZqKzE','Proxy\x20session\x20ended','warn','red','abs','logDir','log','stack','fileOnly','.cache','info','end','615670nkLWJy','getLogPath','62571KwWZgr','rotateOldLogs','9671544zMdsGl','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','string','DEBUG','2015120ydfuWS','logs','toString','message','map','14XdObVd','WARN','test','padStart','Warning:\x20Error\x20writing\x20to\x20tdx.log:','trace','close','getHours','tdx.log'];a85_0x43f8=function(){return _0x5e6334;};return a85_0x43f8();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';function a85_0x3cb0(_0x160801,_0x58a074){const _0x43f89a=a85_0x43f8();return a85_0x3cb0=function(_0x3cb0dc,_0x1f852a){_0x3cb0dc=_0x3cb0dc-0x13f;let _0x2e4cd9=_0x43f89a[_0x3cb0dc];return _0x2e4cd9;},a85_0x3cb0(_0x160801,_0x58a074);}import{pipeline}from'stream/promises';import a85_0x440fa2 from'chalk';function safeStringify(_0x319b4c){const _0x253e7c=a85_0x3cb0;if(typeof _0x319b4c===_0x253e7c(0x152))return _0x319b4c;if(_0x319b4c instanceof Error)return _0x319b4c[_0x253e7c(0x147)]||_0x319b4c['name']+':\x20'+_0x319b4c[_0x253e7c(0x157)];try{return JSON['stringify'](_0x319b4c,(_0x2d2c2d,_0x679569)=>{const _0x1952e6=_0x253e7c;if(_0x679569 instanceof Error)return{'name':_0x679569[_0x1952e6(0x176)],'message':_0x679569[_0x1952e6(0x157)],'stack':_0x679569['stack'],'cause':_0x679569[_0x1952e6(0x164)]};return _0x679569;});}catch{return String(_0x319b4c);}}function getTimezoneOffset(){const _0x111220=a85_0x3cb0,_0x45cd3c=-new Date()['getTimezoneOffset'](),_0x44b340=Math[_0x111220(0x163)](Math[_0x111220(0x144)](_0x45cd3c)/0x3c),_0x443ddb=Math[_0x111220(0x144)](_0x45cd3c)%0x3c,_0xe7bbdf=_0x45cd3c>=0x0?'+':'-';return''+_0xe7bbdf+_0x44b340[_0x111220(0x156)]()['padStart'](0x2,'0')+_0x443ddb['toString']()[_0x111220(0x15c)](0x2,'0');}function formatTimestamp(){const _0x3bb351=a85_0x3cb0,_0x506ef8=new Date(),_0x2c9bd7=_0x506ef8[_0x3bb351(0x16c)](),_0x1f3aa1=(_0x506ef8['getMonth']()+0x1)[_0x3bb351(0x156)]()[_0x3bb351(0x15c)](0x2,'0'),_0x52f642=_0x506ef8[_0x3bb351(0x172)]()[_0x3bb351(0x156)]()[_0x3bb351(0x15c)](0x2,'0'),_0x18e11f=_0x506ef8[_0x3bb351(0x160)]()[_0x3bb351(0x156)]()[_0x3bb351(0x15c)](0x2,'0'),_0x34ff21=_0x506ef8['getMinutes']()[_0x3bb351(0x156)]()['padStart'](0x2,'0'),_0x36c34e=_0x506ef8[_0x3bb351(0x162)]()['toString']()[_0x3bb351(0x15c)](0x2,'0'),_0x19ad43=_0x506ef8[_0x3bb351(0x168)]()[_0x3bb351(0x156)]()['padStart'](0x3,'0'),_0x2ccd92=getTimezoneOffset();return _0x2c9bd7+'-'+_0x1f3aa1+'-'+_0x52f642+'\x20'+_0x18e11f+':'+_0x34ff21+':'+_0x36c34e+'.'+_0x19ad43+_0x2ccd92;}function formatColoredLogEntry(_0x1f2050,_0x2dd5fb){const _0x3820d2=a85_0x3cb0,_0x143d57=formatTimestamp(),_0x4fac87=_0x2dd5fb[_0x3820d2(0x158)](safeStringify)['join']('\x20'),_0x505841=a85_0x440fa2[_0x3820d2(0x178)](_0x143d57);let _0x3bad30;switch(_0x1f2050){case _0x3820d2(0x14a):_0x3bad30=a85_0x440fa2[_0x3820d2(0x179)]('['+_0x1f2050+']\x20');break;case'warn':_0x3bad30=a85_0x440fa2[_0x3820d2(0x13f)]('['+_0x1f2050+']\x20');break;case _0x3820d2(0x16d):_0x3bad30=a85_0x440fa2[_0x3820d2(0x143)]('['+_0x1f2050+']');break;case _0x3820d2(0x174):_0x3bad30=a85_0x440fa2[_0x3820d2(0x178)]('['+_0x1f2050+']');break;default:_0x3bad30='['+_0x1f2050+']';}return _0x505841+'\x20'+_0x3bad30+'\x20'+_0x4fac87;}export var LogLevel;(function(_0x3bc925){const _0x2cc33e=a85_0x3cb0;_0x3bc925[_0x3bc925['TRACE']=-0x2]=_0x2cc33e(0x17a),_0x3bc925[_0x3bc925[_0x2cc33e(0x153)]=-0x1]=_0x2cc33e(0x153),_0x3bc925[_0x3bc925['INFO']=0x0]=_0x2cc33e(0x16b),_0x3bc925[_0x3bc925[_0x2cc33e(0x15a)]=0x1]=_0x2cc33e(0x15a),_0x3bc925[_0x3bc925[_0x2cc33e(0x173)]=0x2]=_0x2cc33e(0x173);}(LogLevel||(LogLevel={})));export class TDXLogger{[a85_0x22e6a8(0x16a)];['logDir'];['logLevel'];['fileOnly'];constructor(_0x5d6257=LogLevel[a85_0x22e6a8(0x16b)],_0x64419e=![]){const _0xcce08d=a85_0x22e6a8;this[_0xcce08d(0x145)]=join(homedir(),_0xcce08d(0x149),_0xcce08d(0x165),_0xcce08d(0x155)),this[_0xcce08d(0x167)]=_0x5d6257,this['fileOnly']=_0x64419e;}async[a85_0x22e6a8(0x169)](){const _0x332dcf=a85_0x22e6a8;try{await mkdir(this[_0x332dcf(0x145)],{'recursive':!![]}),await this[_0x332dcf(0x14f)]();const _0x3e7d47=join(this[_0x332dcf(0x145)],'tdx.log');this['logStream']=createWriteStream(_0x3e7d47,{'flags':'a'}),this[_0x332dcf(0x16a)]['on'](_0x332dcf(0x16d),_0x176566=>{const _0x43a544=_0x332dcf;console[_0x43a544(0x16d)](_0x43a544(0x15d),_0x176566[_0x43a544(0x157)]);});}catch(_0x519697){console[_0x332dcf(0x16d)](_0x332dcf(0x151),_0x519697);}}async[a85_0x22e6a8(0x14f)](){const _0x18f447=a85_0x22e6a8;try{const _0x4a290c=await readdir(this[_0x18f447(0x145)]),_0x4d6114=new Date()['toISOString']()[_0x18f447(0x166)]('T')[0x0];if(_0x4a290c['includes']('tdx.log')){const _0x30dc82=join(this['logDir'],_0x18f447(0x161)),_0x5958d6=await stat(_0x30dc82),_0x445c26=new Date(_0x5958d6['mtime'])['toISOString']()['split']('T')[0x0];if(_0x445c26<_0x4d6114){const _0x381a98=join(this[_0x18f447(0x145)],'tdx-'+_0x445c26+'.log');await rename(_0x30dc82,_0x381a98);}}const _0x23de92=await readdir(this[_0x18f447(0x145)]),_0x145ae3=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x49c6e7=_0x23de92['filter'](_0x10d06f=>_0x145ae3[_0x18f447(0x15b)](_0x10d06f));for(const _0x448ace of _0x49c6e7){const _0x358479=join(this[_0x18f447(0x145)],_0x448ace),_0x586c4b=join(this[_0x18f447(0x145)],_0x448ace+'.gz');try{await pipeline(createReadStream(_0x358479),createGzip(),createWriteStream(_0x586c4b)),await unlink(_0x358479);}catch(_0x129b96){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0x448ace+':',_0x129b96);}}}catch{}}[a85_0x22e6a8(0x174)](..._0x2638ff){const _0x3a5686=a85_0x22e6a8;if(this[_0x3a5686(0x167)]>LogLevel[_0x3a5686(0x153)])return;const _0x264045=formatColoredLogEntry('debug',_0x2638ff);this['logStream']?.[_0x3a5686(0x16f)](_0x264045+'\x0a');}[a85_0x22e6a8(0x15e)](..._0x17d9b5){const _0x40264a=a85_0x22e6a8;if(this[_0x40264a(0x167)]>LogLevel[_0x40264a(0x17a)])return;const _0x50b5cd=formatColoredLogEntry(_0x40264a(0x15e),_0x17d9b5);this[_0x40264a(0x16a)]?.[_0x40264a(0x16f)](_0x50b5cd+'\x0a');}[a85_0x22e6a8(0x14a)](..._0x2205f3){const _0x1c6756=a85_0x22e6a8;if(this[_0x1c6756(0x167)]>LogLevel[_0x1c6756(0x16b)])return;const _0x578fc0=formatColoredLogEntry(_0x1c6756(0x14a),_0x2205f3);!this[_0x1c6756(0x148)]&&console[_0x1c6756(0x146)](_0x578fc0),this[_0x1c6756(0x16a)]?.['write'](_0x578fc0+'\x0a');}[a85_0x22e6a8(0x142)](..._0x857f2b){const _0x4bd43d=a85_0x22e6a8;if(this['logLevel']>LogLevel['WARN'])return;const _0x5b6be5=formatColoredLogEntry(_0x4bd43d(0x142),_0x857f2b);!this[_0x4bd43d(0x148)]&&console[_0x4bd43d(0x16d)](_0x5b6be5),this['logStream']?.[_0x4bd43d(0x16f)](_0x5b6be5+'\x0a');}[a85_0x22e6a8(0x16d)](..._0x37fe2e){const _0x16671d=a85_0x22e6a8,_0x38b1cc=formatColoredLogEntry('error',_0x37fe2e);!this['fileOnly']&&console[_0x16671d(0x16d)](_0x38b1cc),this[_0x16671d(0x16a)]?.[_0x16671d(0x16f)](_0x38b1cc+'\x0a');}async[a85_0x22e6a8(0x15f)](){const _0x9e3a0c=a85_0x22e6a8;return this[_0x9e3a0c(0x14a)](_0x9e3a0c(0x141)),new Promise(_0xfc2934=>{const _0x32455f=_0x9e3a0c;this[_0x32455f(0x16a)]?this[_0x32455f(0x16a)][_0x32455f(0x14b)](()=>{_0xfc2934();}):_0xfc2934();});}[a85_0x22e6a8(0x14d)](){const _0x43100f=a85_0x22e6a8;return join(this['logDir'],_0x43100f(0x161));}}