@treasuredata/tdx 0.4.4 → 0.4.6

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 (107) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-api-client.js +1 -1
  5. package/dist/client/engage-api-client.d.ts +79 -1
  6. package/dist/client/engage-api-client.d.ts.map +1 -1
  7. package/dist/client/engage-api-client.js +1 -1
  8. package/dist/client/engage-api-client.js.map +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.js +1 -1
  13. package/dist/client/trino-api-client.js +1 -1
  14. package/dist/client/workflow-client.js +1 -1
  15. package/dist/commands/activations.js +1 -1
  16. package/dist/commands/api-command.js +1 -1
  17. package/dist/commands/auth-command.js +1 -1
  18. package/dist/commands/chat-command.js +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/command.d.ts.map +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/command.js.map +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.d.ts +128 -0
  27. package/dist/commands/engage-command.d.ts.map +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/engage-command.js.map +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pwd-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.d.ts +1 -0
  46. package/dist/commands/use-command.d.ts.map +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/use-command.js.map +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/config.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.d.ts +1 -0
  58. package/dist/core/session.d.ts.map +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/session.js.map +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/proxy/anthropic-adapter.js +1 -1
  63. package/dist/proxy/server.js +1 -1
  64. package/dist/proxy/session-cache.js +1 -1
  65. package/dist/sdk/api.js +1 -1
  66. package/dist/sdk/engage.d.ts +105 -1
  67. package/dist/sdk/engage.d.ts.map +1 -1
  68. package/dist/sdk/engage.js +1 -1
  69. package/dist/sdk/engage.js.map +1 -1
  70. package/dist/sdk/errors.js +1 -1
  71. package/dist/sdk/index.js +1 -1
  72. package/dist/sdk/job.js +1 -1
  73. package/dist/sdk/llm.js +1 -1
  74. package/dist/sdk/query.js +1 -1
  75. package/dist/sdk/segment.js +1 -1
  76. package/dist/sdk/workflow.js +1 -1
  77. package/dist/types/endpoints.js +1 -1
  78. package/dist/types/engage.d.ts +102 -0
  79. package/dist/types/engage.d.ts.map +1 -1
  80. package/dist/types/index.js +1 -1
  81. package/dist/utils/agent-ref-parser.js +1 -1
  82. package/dist/utils/chat-cache.js +1 -1
  83. package/dist/utils/colors.js +1 -1
  84. package/dist/utils/command-output.js +1 -1
  85. package/dist/utils/constants.js +1 -1
  86. package/dist/utils/file-permissions.js +1 -1
  87. package/dist/utils/format-detector.js +1 -1
  88. package/dist/utils/formatters.js +1 -1
  89. package/dist/utils/json-loader.js +1 -1
  90. package/dist/utils/llm-backup-utils.js +1 -1
  91. package/dist/utils/model-aliases.js +1 -1
  92. package/dist/utils/option-validation.js +1 -1
  93. package/dist/utils/port.js +1 -1
  94. package/dist/utils/process.js +1 -1
  95. package/dist/utils/prompt.js +1 -1
  96. package/dist/utils/segment-path-parser.js +1 -1
  97. package/dist/utils/segment-ref-parser.js +1 -1
  98. package/dist/utils/spinner.js +1 -1
  99. package/dist/utils/sql-parser.js +1 -1
  100. package/dist/utils/sse-parser.js +1 -1
  101. package/dist/utils/string-utils.js +1 -1
  102. package/dist/utils/table-ref-parser.js +1 -1
  103. package/dist/utils/tdx-logger.js +1 -1
  104. package/dist/utils/tree-formatter.js +1 -1
  105. package/dist/utils/version-check.js +1 -1
  106. package/dist/utils/workflow-utils.js +1 -1
  107. package/package.json +1 -1
@@ -1 +1 @@
1
- function a82_0x18a1(){const _0x52b42e=['test','935468MbnrSf','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','isAbsolute','1110950VwcYXz','701559BmPlnf','42dLpxDC','18iWNjRS','substring','96258ksqbIH','split','85434CYzkEW','132230xhEzan','push','Cannot\x20split\x20empty\x20path','2292424uYDJLi','segments','filter','length','join','Path\x20attempts\x20to\x20navigate\x20above\x20root','Cannot\x20navigate\x20above\x20root','30lslMRX','slice','Path\x20segment\x20cannot\x20be\x20empty','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','startsWith','trim','raw','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','pop','Relative\x20path\x20cannot\x20be\x20empty'];a82_0x18a1=function(){return _0x52b42e;};return a82_0x18a1();}(function(_0x2d3d2b,_0x1ba7b0){const _0x1a59b2=a82_0x3bf5,_0x17ca94=_0x2d3d2b();while(!![]){try{const _0x291af6=-parseInt(_0x1a59b2(0x17b))/0x1+-parseInt(_0x1a59b2(0x176))/0x2*(-parseInt(_0x1a59b2(0x17a))/0x3)+-parseInt(_0x1a59b2(0x190))/0x4+parseInt(_0x1a59b2(0x193))/0x5+parseInt(_0x1a59b2(0x178))/0x6*(parseInt(_0x1a59b2(0x175))/0x7)+-parseInt(_0x1a59b2(0x17e))/0x8+parseInt(_0x1a59b2(0x194))/0x9*(parseInt(_0x1a59b2(0x185))/0xa);if(_0x291af6===_0x1ba7b0)break;else _0x17ca94['push'](_0x17ca94['shift']());}catch(_0x5e97ed){_0x17ca94['push'](_0x17ca94['shift']());}}}(a82_0x18a1,0x26131));export function parsePath(_0x5c13b9){const _0x260b97=a82_0x3bf5;if(!_0x5c13b9||_0x5c13b9['trim']()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x5a81b5=_0x5c13b9['trim']();if(_0x5a81b5==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5c13b9};const _0x26f7a7=_0x5a81b5[_0x260b97(0x189)]('/')?_0x5a81b5[_0x260b97(0x177)](0x1):_0x5a81b5,_0x38a1ea=_0x26f7a7[_0x260b97(0x179)]('/')[_0x260b97(0x180)](_0x1dcd19=>_0x1dcd19!=='');if(_0x38a1ea[_0x260b97(0x181)]===0x0)throw new Error(_0x260b97(0x188));const _0xa84140=_0x5a81b5['startsWith']('/')||!isRelativePathSegment(_0x38a1ea[0x0]);for(const _0x543d5a of _0x38a1ea){validatePathSegment(_0x543d5a);}return{'segments':_0x38a1ea,'isAbsolute':_0xa84140,'raw':_0x5c13b9};}function isRelativePathSegment(_0x2c225a){return _0x2c225a==='.'||_0x2c225a==='..';}function validatePathSegment(_0x3bce0e){const _0x173205=a82_0x3bf5;if(_0x3bce0e==='')throw new Error(_0x173205(0x187));if(_0x3bce0e==='.'||_0x3bce0e==='..')return;if(/[\x00-\x1F\x7F]/[_0x173205(0x18f)](_0x3bce0e))throw new Error(_0x173205(0x18c)+_0x3bce0e);if(_0x3bce0e!==_0x3bce0e[_0x173205(0x18a)]()){}}export function validatePath(_0x3d97b0){const _0x510b6f=a82_0x3bf5;if(_0x3d97b0['segments'][_0x510b6f(0x181)]===0x0&&!_0x3d97b0[_0x510b6f(0x192)])throw new Error(_0x510b6f(0x18e));if(_0x3d97b0[_0x510b6f(0x192)]){if(_0x3d97b0[_0x510b6f(0x17f)][0x0]==='..')throw new Error(_0x510b6f(0x191));let _0x157b59=0x0;for(const _0x1728ca of _0x3d97b0[_0x510b6f(0x17f)]){if(_0x1728ca==='..'){if(_0x157b59===0x0)throw new Error(_0x510b6f(0x183));_0x157b59--;}else _0x1728ca!=='.'&&_0x157b59++;}}}export function joinPaths(_0xfd0d4f,_0x3ae1f2){const _0xe1891=a82_0x3bf5;if(!_0xfd0d4f||_0xfd0d4f==='/')return _0x3ae1f2;if(!_0x3ae1f2||_0x3ae1f2==='.')return _0xfd0d4f;if(_0x3ae1f2[_0xe1891(0x189)]('/'))return _0x3ae1f2;const _0x446814=parsePath(_0xfd0d4f),_0x190622=parsePath(_0x3ae1f2),_0x383390=[..._0x446814[_0xe1891(0x17f)]];for(const _0x2d7aa6 of _0x190622['segments']){if(_0x2d7aa6==='.')continue;else{if(_0x2d7aa6==='..'){if(_0x383390['length']===0x0)throw new Error(_0xe1891(0x184));_0x383390[_0xe1891(0x18d)]();}else _0x383390[_0xe1891(0x17c)](_0x2d7aa6);}}const _0x5dd5f2=_0x383390[_0xe1891(0x182)]('/');return _0x446814[_0xe1891(0x18b)][_0xe1891(0x189)]('/')?'/'+_0x5dd5f2:_0x5dd5f2;}export function normalizePath(_0x1de675){const _0x13090d=a82_0x3bf5,_0x5d2673=parsePath(_0x1de675),_0x1ab946=[];for(const _0x38efb2 of _0x5d2673[_0x13090d(0x17f)]){if(_0x38efb2==='.')continue;else{if(_0x38efb2==='..'){if(_0x1ab946[_0x13090d(0x181)]===0x0){if(_0x5d2673[_0x13090d(0x192)])throw new Error(_0x13090d(0x184));_0x1ab946[_0x13090d(0x17c)]('..');}else _0x1ab946[_0x1ab946['length']-0x1]==='..'?_0x1ab946[_0x13090d(0x17c)]('..'):_0x1ab946[_0x13090d(0x18d)]();}else _0x1ab946['push'](_0x38efb2);}}if(_0x1ab946[_0x13090d(0x181)]===0x0)return _0x5d2673[_0x13090d(0x192)]?'/':'.';const _0x2355f6=_0x1ab946[_0x13090d(0x182)]('/');return _0x5d2673['raw'][_0x13090d(0x189)]('/')?'/'+_0x2355f6:_0x2355f6;}export function getParentPath(_0x527e46){const _0x6dfa96=a82_0x3bf5,_0x38a543=parsePath(_0x527e46);if(_0x38a543[_0x6dfa96(0x17f)][_0x6dfa96(0x181)]<=0x1)return'/';const _0x1b1128=_0x38a543[_0x6dfa96(0x17f)][_0x6dfa96(0x186)](0x0,-0x1)[_0x6dfa96(0x182)]('/');return _0x38a543[_0x6dfa96(0x18b)][_0x6dfa96(0x189)]('/')?'/'+_0x1b1128:_0x1b1128;}export function getBaseName(_0x549858){const _0x3d23b2=a82_0x3bf5,_0x22328c=parsePath(_0x549858);return _0x22328c[_0x3d23b2(0x17f)][_0x22328c['segments'][_0x3d23b2(0x181)]-0x1]||'';}export function isChildPath(_0x3907bf,_0x3acfbd){const _0x2b555b=a82_0x3bf5,_0xa470f9=parsePath(_0x3907bf),_0x4a2a6e=parsePath(_0x3acfbd);if(_0xa470f9[_0x2b555b(0x17f)][_0x2b555b(0x181)]<=_0x4a2a6e[_0x2b555b(0x17f)]['length'])return![];for(let _0x4c65fb=0x0;_0x4c65fb<_0x4a2a6e[_0x2b555b(0x17f)][_0x2b555b(0x181)];_0x4c65fb++){if(_0xa470f9[_0x2b555b(0x17f)][_0x4c65fb]!==_0x4a2a6e[_0x2b555b(0x17f)][_0x4c65fb])return![];}return!![];}function a82_0x3bf5(_0x490441,_0x2b74d1){const _0x18a1ad=a82_0x18a1();return a82_0x3bf5=function(_0x3bf58a,_0x4f15e2){_0x3bf58a=_0x3bf58a-0x175;let _0x4ced39=_0x18a1ad[_0x3bf58a];return _0x4ced39;},a82_0x3bf5(_0x490441,_0x2b74d1);}export function splitPath(_0xb2df7a){const _0x49e3c0=a82_0x3bf5,_0xa41ae1=parsePath(_0xb2df7a);if(_0xa41ae1[_0x49e3c0(0x17f)][_0x49e3c0(0x181)]===0x0)throw new Error(_0x49e3c0(0x17d));if(_0xa41ae1[_0x49e3c0(0x17f)][_0x49e3c0(0x181)]===0x1)return{'parent':_0xa41ae1[_0x49e3c0(0x17f)][0x0]};return{'parent':_0xa41ae1[_0x49e3c0(0x17f)][0x0],'child':_0xa41ae1[_0x49e3c0(0x17f)][_0x49e3c0(0x186)](0x1)[_0x49e3c0(0x182)]('/')};}
1
+ (function(_0x1be507,_0x2f5ba6){const _0x602bf4=a82_0x54e6,_0x339c20=_0x1be507();while(!![]){try{const _0x2bc63d=-parseInt(_0x602bf4(0x173))/0x1+-parseInt(_0x602bf4(0x18c))/0x2+parseInt(_0x602bf4(0x17c))/0x3*(parseInt(_0x602bf4(0x183))/0x4)+parseInt(_0x602bf4(0x189))/0x5+parseInt(_0x602bf4(0x177))/0x6*(parseInt(_0x602bf4(0x18e))/0x7)+parseInt(_0x602bf4(0x17f))/0x8*(-parseInt(_0x602bf4(0x188))/0x9)+parseInt(_0x602bf4(0x17e))/0xa;if(_0x2bc63d===_0x2f5ba6)break;else _0x339c20['push'](_0x339c20['shift']());}catch(_0xb337c2){_0x339c20['push'](_0x339c20['shift']());}}}(a82_0x31b5,0xa1c5f));function a82_0x54e6(_0x577388,_0x5ad2bf){const _0x31b55e=a82_0x31b5();return a82_0x54e6=function(_0x54e6cf,_0x2912cb){_0x54e6cf=_0x54e6cf-0x173;let _0x46fd30=_0x31b55e[_0x54e6cf];return _0x46fd30;},a82_0x54e6(_0x577388,_0x5ad2bf);}export function parsePath(_0x1d46bf){const _0x460ec4=a82_0x54e6;if(!_0x1d46bf||_0x1d46bf[_0x460ec4(0x17d)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x182818=_0x1d46bf['trim']();if(_0x182818==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1d46bf};const _0x5164e4=_0x182818[_0x460ec4(0x175)]('/')?_0x182818[_0x460ec4(0x18a)](0x1):_0x182818,_0x342046=_0x5164e4[_0x460ec4(0x185)]('/')[_0x460ec4(0x184)](_0x30da1b=>_0x30da1b!=='');if(_0x342046[_0x460ec4(0x18b)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x115f8d=_0x182818[_0x460ec4(0x175)]('/')||!isRelativePathSegment(_0x342046[0x0]);for(const _0x1fde54 of _0x342046){validatePathSegment(_0x1fde54);}return{'segments':_0x342046,'isAbsolute':_0x115f8d,'raw':_0x1d46bf};}function isRelativePathSegment(_0x5beef7){return _0x5beef7==='.'||_0x5beef7==='..';}function validatePathSegment(_0x5625f4){const _0xaa4818=a82_0x54e6;if(_0x5625f4==='')throw new Error(_0xaa4818(0x174));if(_0x5625f4==='.'||_0x5625f4==='..')return;if(/[\x00-\x1F\x7F]/[_0xaa4818(0x178)](_0x5625f4))throw new Error(_0xaa4818(0x18f)+_0x5625f4);if(_0x5625f4!==_0x5625f4[_0xaa4818(0x17d)]()){}}export function validatePath(_0x53cef1){const _0x276bb6=a82_0x54e6;if(_0x53cef1[_0x276bb6(0x181)][_0x276bb6(0x18b)]===0x0&&!_0x53cef1[_0x276bb6(0x187)])throw new Error(_0x276bb6(0x17b));if(_0x53cef1['isAbsolute']){if(_0x53cef1[_0x276bb6(0x181)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1b4a4b=0x0;for(const _0x2ea1b9 of _0x53cef1[_0x276bb6(0x181)]){if(_0x2ea1b9==='..'){if(_0x1b4a4b===0x0)throw new Error(_0x276bb6(0x176));_0x1b4a4b--;}else _0x2ea1b9!=='.'&&_0x1b4a4b++;}}}export function joinPaths(_0x2f4d00,_0x2b1b5d){const _0x46490d=a82_0x54e6;if(!_0x2f4d00||_0x2f4d00==='/')return _0x2b1b5d;if(!_0x2b1b5d||_0x2b1b5d==='.')return _0x2f4d00;if(_0x2b1b5d[_0x46490d(0x175)]('/'))return _0x2b1b5d;const _0x11dfe0=parsePath(_0x2f4d00),_0x92b9be=parsePath(_0x2b1b5d),_0x47039b=[..._0x11dfe0[_0x46490d(0x181)]];for(const _0x144bc3 of _0x92b9be[_0x46490d(0x181)]){if(_0x144bc3==='.')continue;else{if(_0x144bc3==='..'){if(_0x47039b[_0x46490d(0x18b)]===0x0)throw new Error(_0x46490d(0x18d));_0x47039b['pop']();}else _0x47039b[_0x46490d(0x186)](_0x144bc3);}}const _0x2497bf=_0x47039b[_0x46490d(0x17a)]('/');return _0x11dfe0[_0x46490d(0x180)][_0x46490d(0x175)]('/')?'/'+_0x2497bf:_0x2497bf;}export function normalizePath(_0x196594){const _0x14cd7c=a82_0x54e6,_0x267c48=parsePath(_0x196594),_0xff7576=[];for(const _0x49d59e of _0x267c48[_0x14cd7c(0x181)]){if(_0x49d59e==='.')continue;else{if(_0x49d59e==='..'){if(_0xff7576['length']===0x0){if(_0x267c48['isAbsolute'])throw new Error(_0x14cd7c(0x18d));_0xff7576[_0x14cd7c(0x186)]('..');}else _0xff7576[_0xff7576[_0x14cd7c(0x18b)]-0x1]==='..'?_0xff7576['push']('..'):_0xff7576['pop']();}else _0xff7576['push'](_0x49d59e);}}if(_0xff7576[_0x14cd7c(0x18b)]===0x0)return _0x267c48[_0x14cd7c(0x187)]?'/':'.';const _0x249c12=_0xff7576[_0x14cd7c(0x17a)]('/');return _0x267c48[_0x14cd7c(0x180)][_0x14cd7c(0x175)]('/')?'/'+_0x249c12:_0x249c12;}export function getParentPath(_0x248db0){const _0x3057ed=a82_0x54e6,_0x1007dd=parsePath(_0x248db0);if(_0x1007dd['segments']['length']<=0x1)return'/';const _0x242150=_0x1007dd[_0x3057ed(0x181)][_0x3057ed(0x179)](0x0,-0x1)[_0x3057ed(0x17a)]('/');return _0x1007dd['raw'][_0x3057ed(0x175)]('/')?'/'+_0x242150:_0x242150;}export function getBaseName(_0x4bcdaa){const _0x651787=a82_0x54e6,_0x29eeb4=parsePath(_0x4bcdaa);return _0x29eeb4[_0x651787(0x181)][_0x29eeb4[_0x651787(0x181)]['length']-0x1]||'';}export function isChildPath(_0x1af4d5,_0x1495e9){const _0x1acd12=a82_0x54e6,_0x478324=parsePath(_0x1af4d5),_0x5bcf60=parsePath(_0x1495e9);if(_0x478324[_0x1acd12(0x181)][_0x1acd12(0x18b)]<=_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)])return![];for(let _0x29a6c1=0x0;_0x29a6c1<_0x5bcf60[_0x1acd12(0x181)][_0x1acd12(0x18b)];_0x29a6c1++){if(_0x478324[_0x1acd12(0x181)][_0x29a6c1]!==_0x5bcf60[_0x1acd12(0x181)][_0x29a6c1])return![];}return!![];}export function splitPath(_0x2c591b){const _0x66640d=a82_0x54e6,_0x2dcf21=parsePath(_0x2c591b);if(_0x2dcf21[_0x66640d(0x181)]['length']===0x0)throw new Error(_0x66640d(0x182));if(_0x2dcf21['segments'][_0x66640d(0x18b)]===0x1)return{'parent':_0x2dcf21['segments'][0x0]};return{'parent':_0x2dcf21['segments'][0x0],'child':_0x2dcf21[_0x66640d(0x181)][_0x66640d(0x179)](0x1)[_0x66640d(0x17a)]('/')};}function a82_0x31b5(){const _0x4119a3=['slice','join','Relative\x20path\x20cannot\x20be\x20empty','1776555zQlWIJ','trim','9851080yqaXgI','66200XPUzGS','raw','segments','Cannot\x20split\x20empty\x20path','4MrlpFS','filter','split','push','isAbsolute','1404CyQsdO','1730260ikUuzL','substring','length','1548462aWBvDO','Cannot\x20navigate\x20above\x20root','1043kkmsbM','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','275394PUoueH','Path\x20segment\x20cannot\x20be\x20empty','startsWith','Path\x20attempts\x20to\x20navigate\x20above\x20root','43482GLLfMH','test'];a82_0x31b5=function(){return _0x4119a3;};return a82_0x31b5();}
@@ -1 +1 @@
1
- function a83_0x14e7(_0x31bdc1,_0x795824){const _0x10b814=a83_0x10b8();return a83_0x14e7=function(_0x14e7e5,_0x32e040){_0x14e7e5=_0x14e7e5-0x1af;let _0x9d7031=_0x10b814[_0x14e7e5];return _0x9d7031;},a83_0x14e7(_0x31bdc1,_0x795824);}(function(_0x48af3c,_0x11a5ff){const _0x543d87=a83_0x14e7,_0x47903b=_0x48af3c();while(!![]){try{const _0x1c2c7d=-parseInt(_0x543d87(0x1b1))/0x1*(parseInt(_0x543d87(0x1b0))/0x2)+-parseInt(_0x543d87(0x1af))/0x3*(-parseInt(_0x543d87(0x1b2))/0x4)+-parseInt(_0x543d87(0x1bc))/0x5*(-parseInt(_0x543d87(0x1b7))/0x6)+-parseInt(_0x543d87(0x1bb))/0x7+-parseInt(_0x543d87(0x1b6))/0x8+parseInt(_0x543d87(0x1b5))/0x9*(-parseInt(_0x543d87(0x1b9))/0xa)+parseInt(_0x543d87(0x1bd))/0xb;if(_0x1c2c7d===_0x11a5ff)break;else _0x47903b['push'](_0x47903b['shift']());}catch(_0x2c2a40){_0x47903b['push'](_0x47903b['shift']());}}}(a83_0x10b8,0x7ccb0));export function parseSegmentRef(_0x4651e5){const _0x55914c=a83_0x14e7,_0x26fab5=_0x4651e5['indexOf']('/');if(_0x26fab5===-0x1)return{'parentId':_0x4651e5};if(_0x26fab5===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x4651e5+_0x55914c(0x1b3));const _0x153587=_0x4651e5['substring'](0x0,_0x26fab5),_0x341c2e=_0x4651e5[_0x55914c(0x1b4)](_0x26fab5+0x1);if(_0x341c2e==='')throw new Error(_0x55914c(0x1b8)+_0x4651e5+_0x55914c(0x1ba));return{'parentId':_0x153587,'childId':_0x341c2e};}function a83_0x10b8(){const _0x549816=['774VwuxPn','Invalid\x20segment\x20reference\x20format:\x20','1420bTKfXT','.\x20Child\x20name\x20cannot\x20be\x20empty','1388975qzCyZF','13655qaeQcX','13416689FbmDIY','270FwqvKr','74nOQhda','12049WFGYTb','17012rScIas','.\x20Parent\x20name\x20cannot\x20be\x20empty','substring','48681xDeNad','250400vtgThO'];a83_0x10b8=function(){return _0x549816;};return a83_0x10b8();}
1
+ function a83_0x4f7e(_0x174cf6,_0xc9a3){const _0x1ce0aa=a83_0x1ce0();return a83_0x4f7e=function(_0x4f7e3c,_0x19c6d1){_0x4f7e3c=_0x4f7e3c-0xb0;let _0x2db22f=_0x1ce0aa[_0x4f7e3c];return _0x2db22f;},a83_0x4f7e(_0x174cf6,_0xc9a3);}(function(_0x216413,_0x3a91ab){const _0x1afa69=a83_0x4f7e,_0x377d01=_0x216413();while(!![]){try{const _0x1bd7bd=parseInt(_0x1afa69(0xb1))/0x1*(-parseInt(_0x1afa69(0xb9))/0x2)+-parseInt(_0x1afa69(0xb0))/0x3+-parseInt(_0x1afa69(0xba))/0x4*(parseInt(_0x1afa69(0xb4))/0x5)+-parseInt(_0x1afa69(0xbb))/0x6+-parseInt(_0x1afa69(0xb5))/0x7+parseInt(_0x1afa69(0xb3))/0x8+parseInt(_0x1afa69(0xb6))/0x9*(parseInt(_0x1afa69(0xb8))/0xa);if(_0x1bd7bd===_0x3a91ab)break;else _0x377d01['push'](_0x377d01['shift']());}catch(_0x2ff6cb){_0x377d01['push'](_0x377d01['shift']());}}}(a83_0x1ce0,0xe228c));export function parseSegmentRef(_0x4e53da){const _0x191a00=a83_0x4f7e,_0x4a06e4=_0x4e53da['indexOf']('/');if(_0x4a06e4===-0x1)return{'parentId':_0x4e53da};if(_0x4a06e4===0x0)throw new Error(_0x191a00(0xbc)+_0x4e53da+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x5cf0ae=_0x4e53da[_0x191a00(0xb7)](0x0,_0x4a06e4),_0xbcc2c7=_0x4e53da[_0x191a00(0xb7)](_0x4a06e4+0x1);if(_0xbcc2c7==='')throw new Error(_0x191a00(0xbc)+_0x4e53da+_0x191a00(0xb2));return{'parentId':_0x5cf0ae,'childId':_0xbcc2c7};}function a83_0x1ce0(){const _0x8c5591=['974DDSKsD','6284VfdDwN','1429098znwzKC','Invalid\x20segment\x20reference\x20format:\x20','653358hhfiFF','1143ZypjPy','.\x20Child\x20name\x20cannot\x20be\x20empty','23272YnKuzC','3545TbTdzM','431088pnSrfB','250029DGkDLl','substring','1120uMUOep'];a83_0x1ce0=function(){return _0x8c5591;};return a83_0x1ce0();}
@@ -1 +1 @@
1
- (function(_0x58d097,_0x36e280){const _0x20f0a9=a84_0x2131,_0x42bf14=_0x58d097();while(!![]){try{const _0x2121e1=parseInt(_0x20f0a9(0x1ee))/0x1+parseInt(_0x20f0a9(0x1e8))/0x2*(-parseInt(_0x20f0a9(0x1e7))/0x3)+parseInt(_0x20f0a9(0x1ea))/0x4*(-parseInt(_0x20f0a9(0x1e2))/0x5)+parseInt(_0x20f0a9(0x1e5))/0x6+parseInt(_0x20f0a9(0x1dd))/0x7*(-parseInt(_0x20f0a9(0x1e6))/0x8)+-parseInt(_0x20f0a9(0x1e4))/0x9*(-parseInt(_0x20f0a9(0x1f1))/0xa)+parseInt(_0x20f0a9(0x1e0))/0xb;if(_0x2121e1===_0x36e280)break;else _0x42bf14['push'](_0x42bf14['shift']());}catch(_0x31a741){_0x42bf14['push'](_0x42bf14['shift']());}}}(a84_0x1729,0x34ddb));import a84_0x1ba55b from'ora';export function createCommandSpinner(_0x5f478b,_0x115a9f={}){const _0x55b2a3=a84_0x2131,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x115a9f;return a84_0x1ba55b({'text':_0x5f478b,'color':_0x55b2a3(0x1ef),'isEnabled':forceEnabled||process[_0x55b2a3(0x1e9)][_0x55b2a3(0x1ec)]&&!verbose});}export async function withSpinner(_0x5efd42,_0x5b15f0,_0x4349d7={}){const _0x548e91=a84_0x2131,_0x7485c8=_0x4349d7[_0x548e91(0x1f2)]??(()=>Date['now']()),_0x492843=createCommandSpinner(_0x5efd42,_0x4349d7);_0x492843['start']();const _0x4ed00a=_0x7485c8();try{const _0x58664b=await _0x5b15f0(),_0x5a187b=_0x7485c8()-_0x4ed00a;return _0x492843[_0x548e91(0x1dc)](),{'data':_0x58664b,'elapsedMs':_0x5a187b};}catch(_0x477d0d){_0x492843[_0x548e91(0x1dc)]();throw _0x477d0d;}}function a84_0x2131(_0x104e10,_0x5b2f1d){const _0x1729b9=a84_0x1729();return a84_0x2131=function(_0x2131da,_0x2382f3){_0x2131da=_0x2131da-0x1db;let _0x5b593e=_0x1729b9[_0x2131da];return _0x5b593e;},a84_0x2131(_0x104e10,_0x5b2f1d);}export async function withQuerySpinner(_0x59f152,_0x3c2aa6,_0x1ec183={}){const _0x2c304f=a84_0x2131,_0x44de00=_0x1ec183[_0x2c304f(0x1f2)]??(()=>Date[_0x2c304f(0x1eb)]()),_0x2016a2=_0x1ec183[_0x2c304f(0x1e3)]??setInterval,_0x3a783e=createCommandSpinner(_0x59f152,_0x1ec183);_0x3a783e[_0x2c304f(0x1e1)]();const _0x355034=_0x44de00(),_0x5483e5=_0x59f152['replace']('...',''),_0x262151={},_0x334b92=()=>{const _0x6c56ef=_0x2c304f;if(!_0x3a783e['isSpinning'])return;const _0x5c0430=_0x44de00()-_0x355034,_0x591891=formatElapsed(_0x5c0430),_0xa72e86=_0x262151[_0x6c56ef(0x1f4)]??_0x5483e5,_0x381a3f=_0x262151['jobId']?_0x6c56ef(0x1f0)+_0x262151[_0x6c56ef(0x1de)]+']':'',_0x1c9a2b=_0x262151['extra']?'\x20'+_0x262151[_0x6c56ef(0x1ed)]:'';_0x3a783e[_0x6c56ef(0x1db)]=_0xa72e86+'\x20'+_0x591891+_0x1c9a2b+_0x381a3f;},_0x377c9b=_0x2016a2(()=>{_0x334b92();},0x3e8),_0x319076={'setPhase':_0x5510a8=>{_0x262151['phase']=_0x5510a8,_0x334b92();},'setJobId':_0x18dcb6=>{const _0x5d1472=_0x2c304f;_0x262151[_0x5d1472(0x1de)]=_0x18dcb6,_0x334b92();},'setExtra':_0x50d3a9=>{const _0x140394=_0x2c304f;_0x262151[_0x140394(0x1ed)]=_0x50d3a9,_0x334b92();}};_0x334b92();try{const _0x6e8585=await _0x3c2aa6(_0x319076),_0x2e0194=_0x44de00()-_0x355034;return{'data':_0x6e8585,'elapsedMs':_0x2e0194};}finally{clearInterval(_0x377c9b),_0x3a783e[_0x2c304f(0x1dc)]();}}export function formatElapsed(_0x2958e6){const _0x3d039=a84_0x2131,_0x371a7a=Math['floor'](_0x2958e6/0x3e8);if(_0x371a7a<0x3c)return(_0x2958e6/0x3e8)[_0x3d039(0x1f3)](0x1)+'s';const _0x260c8b=Math[_0x3d039(0x1df)](_0x371a7a/0x3c),_0x5909d3=_0x371a7a%0x3c;if(_0x260c8b<0x3c)return _0x260c8b+'m\x20'+_0x5909d3+'s';const _0x52192c=Math[_0x3d039(0x1df)](_0x260c8b/0x3c),_0x405935=_0x260c8b%0x3c;return _0x52192c+'h\x20'+_0x405935+'m';}function a84_0x1729(){const _0x5f0408=['301534roHPBr','cyan','\x20[Job\x20ID:\x20','421510LwuYiX','clock','toFixed','phase','text','stop','308735QnltUo','jobId','floor','609444adwzdC','start','5205tewKam','intervalFactory','54FiWiCm','1233150QZoAEU','56dGHOyy','291FQREPK','4994lDaqgj','stdout','184BmuimA','now','isTTY','extra'];a84_0x1729=function(){return _0x5f0408;};return a84_0x1729();}
1
+ (function(_0x1a71fd,_0x575cdb){const _0x33b635=a84_0x235f,_0x3edf6e=_0x1a71fd();while(!![]){try{const _0x1eebe6=-parseInt(_0x33b635(0x1d5))/0x1+parseInt(_0x33b635(0x1c0))/0x2*(-parseInt(_0x33b635(0x1c9))/0x3)+parseInt(_0x33b635(0x1ca))/0x4*(parseInt(_0x33b635(0x1ce))/0x5)+-parseInt(_0x33b635(0x1d0))/0x6*(parseInt(_0x33b635(0x1d3))/0x7)+parseInt(_0x33b635(0x1c6))/0x8+-parseInt(_0x33b635(0x1d9))/0x9+-parseInt(_0x33b635(0x1cf))/0xa*(-parseInt(_0x33b635(0x1be))/0xb);if(_0x1eebe6===_0x575cdb)break;else _0x3edf6e['push'](_0x3edf6e['shift']());}catch(_0x2ccf80){_0x3edf6e['push'](_0x3edf6e['shift']());}}}(a84_0x2a28,0xc1fe9));function a84_0x235f(_0x4555fb,_0x4f363b){const _0x2a2849=a84_0x2a28();return a84_0x235f=function(_0x235fc0,_0x1ad1dc){_0x235fc0=_0x235fc0-0x1be;let _0x560478=_0x2a2849[_0x235fc0];return _0x560478;},a84_0x235f(_0x4555fb,_0x4f363b);}import a84_0x205bda from'ora';function a84_0x2a28(){const _0x445252=['6220015csCvRI','7780wZPMEr','62364wOUttD','start','cyan','189qltCru','\x20[Job\x20ID:\x20','105060vPwLaa','replace','phase','isTTY','7908525MPdwFP','18007kRMNcg','intervalFactory','1807434sdIDJw','toFixed','stop','stdout','isSpinning','jobId','3561216KsTsAd','now','text','3OBJFRm','4RDwvaj','extra','clock','floor'];a84_0x2a28=function(){return _0x445252;};return a84_0x2a28();}export function createCommandSpinner(_0x10b4d6,_0x9e5ee6={}){const _0x4aceda=a84_0x235f,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x9e5ee6;return a84_0x205bda({'text':_0x10b4d6,'color':_0x4aceda(0x1d2),'isEnabled':forceEnabled||process[_0x4aceda(0x1c3)][_0x4aceda(0x1d8)]&&!verbose});}export async function withSpinner(_0x61a246,_0x3eff16,_0x2a5f65={}){const _0x2f4928=a84_0x235f,_0x65eb46=_0x2a5f65['clock']??(()=>Date[_0x2f4928(0x1c7)]()),_0x3e2047=createCommandSpinner(_0x61a246,_0x2a5f65);_0x3e2047[_0x2f4928(0x1d1)]();const _0x4c034f=_0x65eb46();try{const _0x3ec375=await _0x3eff16(),_0x26de8f=_0x65eb46()-_0x4c034f;return _0x3e2047[_0x2f4928(0x1c2)](),{'data':_0x3ec375,'elapsedMs':_0x26de8f};}catch(_0x20f4b9){_0x3e2047[_0x2f4928(0x1c2)]();throw _0x20f4b9;}}export async function withQuerySpinner(_0x419f91,_0x314718,_0xc6f8a={}){const _0x2472af=a84_0x235f,_0x197916=_0xc6f8a[_0x2472af(0x1cc)]??(()=>Date[_0x2472af(0x1c7)]()),_0x33d72e=_0xc6f8a[_0x2472af(0x1bf)]??setInterval,_0x3ccc0d=createCommandSpinner(_0x419f91,_0xc6f8a);_0x3ccc0d['start']();const _0x6daae=_0x197916(),_0x16e499=_0x419f91[_0x2472af(0x1d6)]('...',''),_0x4cb110={},_0x1a403f=()=>{const _0x26dfcb=_0x2472af;if(!_0x3ccc0d[_0x26dfcb(0x1c4)])return;const _0x4318bd=_0x197916()-_0x6daae,_0x1c8e2e=formatElapsed(_0x4318bd),_0x52446c=_0x4cb110[_0x26dfcb(0x1d7)]??_0x16e499,_0x567cda=_0x4cb110['jobId']?_0x26dfcb(0x1d4)+_0x4cb110['jobId']+']':'',_0x2d84c8=_0x4cb110[_0x26dfcb(0x1cb)]?'\x20'+_0x4cb110[_0x26dfcb(0x1cb)]:'';_0x3ccc0d[_0x26dfcb(0x1c8)]=_0x52446c+'\x20'+_0x1c8e2e+_0x2d84c8+_0x567cda;},_0xcf1f1e=_0x33d72e(()=>{_0x1a403f();},0x3e8),_0x4ee1db={'setPhase':_0x36817f=>{const _0x59fd74=_0x2472af;_0x4cb110[_0x59fd74(0x1d7)]=_0x36817f,_0x1a403f();},'setJobId':_0x4a7973=>{const _0x201fc3=_0x2472af;_0x4cb110[_0x201fc3(0x1c5)]=_0x4a7973,_0x1a403f();},'setExtra':_0x54858f=>{const _0x496993=_0x2472af;_0x4cb110[_0x496993(0x1cb)]=_0x54858f,_0x1a403f();}};_0x1a403f();try{const _0x58ca94=await _0x314718(_0x4ee1db),_0x22a4dc=_0x197916()-_0x6daae;return{'data':_0x58ca94,'elapsedMs':_0x22a4dc};}finally{clearInterval(_0xcf1f1e),_0x3ccc0d[_0x2472af(0x1c2)]();}}export function formatElapsed(_0x132a1d){const _0x243114=a84_0x235f,_0x43c754=Math[_0x243114(0x1cd)](_0x132a1d/0x3e8);if(_0x43c754<0x3c)return(_0x132a1d/0x3e8)[_0x243114(0x1c1)](0x1)+'s';const _0x18805c=Math[_0x243114(0x1cd)](_0x43c754/0x3c),_0x4cb0e6=_0x43c754%0x3c;if(_0x18805c<0x3c)return _0x18805c+'m\x20'+_0x4cb0e6+'s';const _0xd23e01=Math['floor'](_0x18805c/0x3c),_0x3c9627=_0x18805c%0x3c;return _0xd23e01+'h\x20'+_0x3c9627+'m';}
@@ -1 +1 @@
1
- (function(_0x5a91db,_0x270f49){const _0x20ffe8=a85_0x3f17,_0x5b9066=_0x5a91db();while(!![]){try{const _0x1814d7=-parseInt(_0x20ffe8(0xf4))/0x1+-parseInt(_0x20ffe8(0x105))/0x2*(-parseInt(_0x20ffe8(0xfc))/0x3)+parseInt(_0x20ffe8(0xeb))/0x4*(-parseInt(_0x20ffe8(0x106))/0x5)+-parseInt(_0x20ffe8(0xf1))/0x6*(parseInt(_0x20ffe8(0x103))/0x7)+parseInt(_0x20ffe8(0x102))/0x8+-parseInt(_0x20ffe8(0xfd))/0x9*(-parseInt(_0x20ffe8(0xed))/0xa)+parseInt(_0x20ffe8(0x107))/0xb*(parseInt(_0x20ffe8(0xfb))/0xc);if(_0x1814d7===_0x270f49)break;else _0x5b9066['push'](_0x5b9066['shift']());}catch(_0x26a77a){_0x5b9066['push'](_0x5b9066['shift']());}}}(a85_0x530b,0xea431));import{readFileSync}from'fs';function a85_0x530b(){const _0x3d33b5=['File\x20\x27','20sifcfM','filter','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','6AGgnzU','code','EACCES','1257460yAdoXA','message','push','trim','length','\x27\x20not\x20found','Content\x20contains\x20no\x20SQL\x20statements','348qZVOui','1797717VRgGHO','7616277BZcgex','ENOENT','\x27:\x20','replace','map','7080088gaLXWt','9522443bkHCJJ','toLowerCase','4CSlTAw','5ZusUej','169191OgvtCg','2578792qfHnod'];a85_0x530b=function(){return _0x3d33b5;};return a85_0x530b();}export function stripSqlComments(_0xf20fda){const _0x39315a=a85_0x3f17;let _0x4ea505=_0xf20fda[_0x39315a(0x100)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4ea505=_0x4ea505[_0x39315a(0x100)](/--.*$/gm,''),_0x4ea505[_0x39315a(0xf7)]();}function isEscaped(_0x5b3cd4,_0x10f8e7){let _0x5efa29=0x0;for(let _0x4eb7a6=_0x10f8e7-0x1;_0x4eb7a6>=0x0&&_0x5b3cd4[_0x4eb7a6]==='\x5c';_0x4eb7a6--){_0x5efa29++;}return _0x5efa29%0x2===0x1;}function a85_0x3f17(_0x377d75,_0x11b4d7){const _0x530b16=a85_0x530b();return a85_0x3f17=function(_0x3f170a,_0x245db4){_0x3f170a=_0x3f170a-0xeb;let _0x35ec36=_0x530b16[_0x3f170a];return _0x35ec36;},a85_0x3f17(_0x377d75,_0x11b4d7);}export function splitSqlStatements(_0x178848){const _0x29e095=a85_0x3f17,_0x5aa0b7=stripSqlComments(_0x178848);if(!_0x5aa0b7)throw new Error(_0x29e095(0xfa));const _0x5babf5=[];let _0x1a739a='',_0x9f046f=![],_0x4c886d=![],_0x487247=![];for(let _0x23e35b=0x0;_0x23e35b<_0x178848[_0x29e095(0xf8)];_0x23e35b++){const _0x187a99=_0x178848[_0x23e35b];if(_0x187a99==='\x27'&&!isEscaped(_0x178848,_0x23e35b)&&!_0x4c886d&&!_0x487247)_0x9f046f=!_0x9f046f;else{if(_0x187a99==='\x22'&&!isEscaped(_0x178848,_0x23e35b)&&!_0x9f046f&&!_0x487247)_0x4c886d=!_0x4c886d;else _0x187a99==='`'&&!isEscaped(_0x178848,_0x23e35b)&&!_0x9f046f&&!_0x4c886d&&(_0x487247=!_0x487247);}if(_0x187a99===';'&&!_0x9f046f&&!_0x4c886d&&!_0x487247){const _0x4fac84=_0x1a739a[_0x29e095(0xf7)]();_0x4fac84&&_0x5babf5[_0x29e095(0xf6)](_0x4fac84),_0x1a739a='';}else _0x1a739a+=_0x187a99;}const _0x270732=_0x1a739a[_0x29e095(0xf7)]();_0x270732&&_0x5babf5[_0x29e095(0xf6)](_0x270732);const _0x33bb2e=_0x5babf5[_0x29e095(0x101)](_0x154111=>_0x154111[_0x29e095(0xf7)]())[_0x29e095(0xee)](_0x1b469a=>{const _0x4bca5c=_0x29e095,_0x50dc10=stripSqlComments(_0x1b469a);return _0x50dc10[_0x4bca5c(0xf8)]>0x0;});if(_0x33bb2e[_0x29e095(0xf8)]===0x0)throw new Error(_0x29e095(0xfa));return _0x33bb2e;}export function readFileContent(_0x208ff8){const _0x41ccf9=a85_0x3f17;try{return readFileSync(_0x208ff8,_0x41ccf9(0xf0));}catch(_0x459fe0){const _0x44a80b=_0x459fe0[_0x41ccf9(0xf2)];if(_0x44a80b===_0x41ccf9(0xfe))throw new Error(_0x41ccf9(0xec)+_0x208ff8+_0x41ccf9(0xf9));else{if(_0x44a80b===_0x41ccf9(0xf3))throw new Error(_0x41ccf9(0xef)+_0x208ff8+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x208ff8+_0x41ccf9(0xff)+_0x459fe0[_0x41ccf9(0xf5)]);}}}export function readSqlStatementsFromFile(_0x3f947d){const _0x71cdb7=a85_0x3f17,_0x3eb9e4=readFileContent(_0x3f947d);try{return splitSqlStatements(_0x3eb9e4);}catch(_0x5a29a9){throw new Error(_0x71cdb7(0xec)+_0x3f947d+'\x27\x20'+_0x5a29a9[_0x71cdb7(0xf5)][_0x71cdb7(0x104)]());}}
1
+ (function(_0x4de609,_0x55850f){const _0x2c0648=a85_0x3c14,_0x4386e9=_0x4de609();while(!![]){try{const _0x5a3eea=-parseInt(_0x2c0648(0x13a))/0x1*(parseInt(_0x2c0648(0x123))/0x2)+parseInt(_0x2c0648(0x12e))/0x3+-parseInt(_0x2c0648(0x126))/0x4+-parseInt(_0x2c0648(0x129))/0x5+-parseInt(_0x2c0648(0x12f))/0x6+parseInt(_0x2c0648(0x139))/0x7+parseInt(_0x2c0648(0x134))/0x8*(parseInt(_0x2c0648(0x125))/0x9);if(_0x5a3eea===_0x55850f)break;else _0x4386e9['push'](_0x4386e9['shift']());}catch(_0xf312dc){_0x4386e9['push'](_0x4386e9['shift']());}}}(a85_0x491d,0x96fd3));import{readFileSync}from'fs';export function stripSqlComments(_0x497fc4){const _0x42eeff=a85_0x3c14;let _0x3dc652=_0x497fc4[_0x42eeff(0x133)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3dc652=_0x3dc652[_0x42eeff(0x133)](/--.*$/gm,''),_0x3dc652[_0x42eeff(0x135)]();}function a85_0x3c14(_0x59ff21,_0x11a810){const _0x491dc6=a85_0x491d();return a85_0x3c14=function(_0x3c14eb,_0x4e625b){_0x3c14eb=_0x3c14eb-0x123;let _0x2fddd8=_0x491dc6[_0x3c14eb];return _0x2fddd8;},a85_0x3c14(_0x59ff21,_0x11a810);}function isEscaped(_0x57d695,_0x16f8a5){let _0x3b7e7e=0x0;for(let _0x327850=_0x16f8a5-0x1;_0x327850>=0x0&&_0x57d695[_0x327850]==='\x5c';_0x327850--){_0x3b7e7e++;}return _0x3b7e7e%0x2===0x1;}export function splitSqlStatements(_0x4debca){const _0x495ebb=a85_0x3c14,_0x15297e=stripSqlComments(_0x4debca);if(!_0x15297e)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x1b891d=[];let _0x458113='',_0x260cbf=![],_0x2ffa43=![],_0x571d88=![];for(let _0x1c007a=0x0;_0x1c007a<_0x4debca['length'];_0x1c007a++){const _0x456cac=_0x4debca[_0x1c007a];if(_0x456cac==='\x27'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x2ffa43&&!_0x571d88)_0x260cbf=!_0x260cbf;else{if(_0x456cac==='\x22'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x571d88)_0x2ffa43=!_0x2ffa43;else _0x456cac==='`'&&!isEscaped(_0x4debca,_0x1c007a)&&!_0x260cbf&&!_0x2ffa43&&(_0x571d88=!_0x571d88);}if(_0x456cac===';'&&!_0x260cbf&&!_0x2ffa43&&!_0x571d88){const _0x1ef458=_0x458113[_0x495ebb(0x135)]();_0x1ef458&&_0x1b891d['push'](_0x1ef458),_0x458113='';}else _0x458113+=_0x456cac;}const _0x3c2222=_0x458113[_0x495ebb(0x135)]();_0x3c2222&&_0x1b891d['push'](_0x3c2222);const _0x27d8b8=_0x1b891d[_0x495ebb(0x137)](_0x406281=>_0x406281[_0x495ebb(0x135)]())[_0x495ebb(0x12b)](_0x57948b=>{const _0x3c3eaa=_0x495ebb,_0x44eec5=stripSqlComments(_0x57948b);return _0x44eec5[_0x3c3eaa(0x131)]>0x0;});if(_0x27d8b8['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x27d8b8;}export function readFileContent(_0x50beab){const _0xe3b6ad=a85_0x3c14;try{return readFileSync(_0x50beab,_0xe3b6ad(0x12d));}catch(_0x5e94ec){const _0x4621a7=_0x5e94ec[_0xe3b6ad(0x138)];if(_0x4621a7==='ENOENT')throw new Error(_0xe3b6ad(0x130)+_0x50beab+_0xe3b6ad(0x124));else{if(_0x4621a7===_0xe3b6ad(0x136))throw new Error(_0xe3b6ad(0x12c)+_0x50beab+'\x27');else throw new Error(_0xe3b6ad(0x127)+_0x50beab+_0xe3b6ad(0x128)+_0x5e94ec[_0xe3b6ad(0x12a)]);}}}export function readSqlStatementsFromFile(_0x14ca81){const _0x3bf976=a85_0x3c14,_0x460cec=readFileContent(_0x14ca81);try{return splitSqlStatements(_0x460cec);}catch(_0x8629be){throw new Error(_0x3bf976(0x130)+_0x14ca81+'\x27\x20'+_0x8629be[_0x3bf976(0x12a)][_0x3bf976(0x132)]());}}function a85_0x491d(){const _0x254322=['819kgGNMt','165640eiRCFz','Error\x20reading\x20file\x20\x27','\x27:\x20','1143545nVsrBy','message','filter','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','2521125FFWQKs','2054784oTRFex','File\x20\x27','length','toLowerCase','replace','54488cAJQRF','trim','EACCES','map','code','4062765KarhFG','809537DtMcPn','2pkyipi','\x27\x20not\x20found'];a85_0x491d=function(){return _0x254322;};return a85_0x491d();}
@@ -1 +1 @@
1
- function a86_0x3003(){const _0x1b3fcb=['decode','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','646563KVfCib','20MZhFbn','Response\x20body\x20is\x20null','3925494WQBLWE','read','6376LhlCXP','5589925wisigd','[LLM\x20API\x20SSE]\x20','2639rlrlVt','event','pop','1473252oGkhQR','93734AtUNyo','split','body','slice','trim','2238jnuFMR','getReader','startsWith','12CvLZZU','debug','7415jJEAaR','data','indexOf','17ViAwom'];a86_0x3003=function(){return _0x1b3fcb;};return a86_0x3003();}function a86_0x19a7(_0x131456,_0x158611){const _0x3003aa=a86_0x3003();return a86_0x19a7=function(_0x19a7fb,_0x5e5642){_0x19a7fb=_0x19a7fb-0x176;let _0x545777=_0x3003aa[_0x19a7fb];return _0x545777;},a86_0x19a7(_0x131456,_0x158611);}(function(_0x39d70b,_0x5519fc){const _0x15c134=a86_0x19a7,_0x5c1b9e=_0x39d70b();while(!![]){try{const _0x89756e=-parseInt(_0x15c134(0x181))/0x1*(parseInt(_0x15c134(0x190))/0x2)+-parseInt(_0x15c134(0x184))/0x3+parseInt(_0x15c134(0x18f))/0x4+parseInt(_0x15c134(0x17e))/0x5*(-parseInt(_0x15c134(0x179))/0x6)+-parseInt(_0x15c134(0x18c))/0x7*(-parseInt(_0x15c134(0x189))/0x8)+parseInt(_0x15c134(0x187))/0x9*(parseInt(_0x15c134(0x185))/0xa)+parseInt(_0x15c134(0x18a))/0xb*(parseInt(_0x15c134(0x17c))/0xc);if(_0x89756e===_0x5519fc)break;else _0x5c1b9e['push'](_0x5c1b9e['shift']());}catch(_0x38e8e4){_0x5c1b9e['push'](_0x5c1b9e['shift']());}}}(a86_0x3003,0x7621e));export async function*parseSSEStream(_0x1e6756,_0x5670da){const _0x4d080f=a86_0x19a7;if(!_0x1e6756[_0x4d080f(0x176)])throw new Error(_0x4d080f(0x186));const _0x3139b9=_0x1e6756[_0x4d080f(0x176)][_0x4d080f(0x17a)](),_0x4f6943=new TextDecoder();let _0x5e2301='',_0x548eda={};try{while(!![]){const {done:_0x2140cf,value:_0xa3b8ec}=await _0x3139b9[_0x4d080f(0x188)]();if(_0x2140cf){if(_0x548eda[_0x4d080f(0x17f)]){_0x5670da?.[_0x4d080f(0x17d)](_0x4d080f(0x18b)+_0x548eda['data']);const _0x323751=parseSSEData(_0x548eda[_0x4d080f(0x17f)]);yield _0x323751;}break;}_0x5e2301+=_0x4f6943[_0x4d080f(0x182)](_0xa3b8ec,{'stream':!![]});const _0xa28365=_0x5e2301[_0x4d080f(0x191)]('\x0a');_0x5e2301=_0xa28365[_0x4d080f(0x18e)]()||'';for(const _0x14a02e of _0xa28365){if(_0x14a02e[_0x4d080f(0x178)]()===''){if(_0x548eda[_0x4d080f(0x17f)]){_0x5670da?.[_0x4d080f(0x17d)]('[LLM\x20API\x20SSE]\x20'+_0x548eda[_0x4d080f(0x17f)]);const _0x31ff10=parseSSEData(_0x548eda[_0x4d080f(0x17f)]);yield _0x31ff10,_0x548eda={};}continue;}if(_0x14a02e[_0x4d080f(0x17b)](':'))continue;const _0xce9d56=_0x14a02e[_0x4d080f(0x180)](':');if(_0xce9d56===-0x1)continue;const _0x3f2c3d=_0x14a02e[_0x4d080f(0x177)](0x0,_0xce9d56);let _0x385c17=_0x14a02e[_0x4d080f(0x177)](_0xce9d56+0x1);_0x385c17[_0x4d080f(0x17b)]('\x20')&&(_0x385c17=_0x385c17[_0x4d080f(0x177)](0x1));switch(_0x3f2c3d){case'event':_0x548eda[_0x4d080f(0x18d)]=_0x385c17;break;case _0x4d080f(0x17f):_0x548eda[_0x4d080f(0x17f)]=_0x548eda[_0x4d080f(0x17f)]?_0x548eda['data']+'\x0a'+_0x385c17:_0x385c17;break;case'id':_0x548eda['id']=_0x385c17;break;}}}}finally{_0x3139b9['releaseLock']();}}function parseSSEData(_0x466199){const _0xd13902=a86_0x19a7;try{return JSON['parse'](_0x466199);}catch(_0x2d187a){throw new Error(_0xd13902(0x183)+_0x466199,{'cause':_0x2d187a});}}
1
+ function a86_0x3485(_0x1dbb75,_0x4e9039){const _0x2f691c=a86_0x2f69();return a86_0x3485=function(_0x348539,_0x2f61e6){_0x348539=_0x348539-0x131;let _0x331a92=_0x2f691c[_0x348539];return _0x331a92;},a86_0x3485(_0x1dbb75,_0x4e9039);}(function(_0x8afdff,_0x2ec08a){const _0x2a76fd=a86_0x3485,_0x33bdb9=_0x8afdff();while(!![]){try{const _0x163b98=parseInt(_0x2a76fd(0x13c))/0x1*(parseInt(_0x2a76fd(0x13f))/0x2)+-parseInt(_0x2a76fd(0x133))/0x3*(-parseInt(_0x2a76fd(0x138))/0x4)+parseInt(_0x2a76fd(0x135))/0x5*(-parseInt(_0x2a76fd(0x137))/0x6)+-parseInt(_0x2a76fd(0x13e))/0x7+parseInt(_0x2a76fd(0x139))/0x8*(-parseInt(_0x2a76fd(0x142))/0x9)+parseInt(_0x2a76fd(0x144))/0xa*(-parseInt(_0x2a76fd(0x145))/0xb)+parseInt(_0x2a76fd(0x132))/0xc;if(_0x163b98===_0x2ec08a)break;else _0x33bdb9['push'](_0x33bdb9['shift']());}catch(_0x435752){_0x33bdb9['push'](_0x33bdb9['shift']());}}}(a86_0x2f69,0x9c37d));export async function*parseSSEStream(_0x375fc7,_0x566152){const _0x65d315=a86_0x3485;if(!_0x375fc7[_0x65d315(0x13d)])throw new Error('Response\x20body\x20is\x20null');const _0x2d6012=_0x375fc7[_0x65d315(0x13d)][_0x65d315(0x13a)](),_0x3e3f75=new TextDecoder();let _0x559ae5='',_0x17c04a={};try{while(!![]){const {done:_0x54fcda,value:_0x285e2d}=await _0x2d6012[_0x65d315(0x13b)]();if(_0x54fcda){if(_0x17c04a[_0x65d315(0x146)]){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x2ddc4c=parseSSEData(_0x17c04a[_0x65d315(0x146)]);yield _0x2ddc4c;}break;}_0x559ae5+=_0x3e3f75[_0x65d315(0x140)](_0x285e2d,{'stream':!![]});const _0x58ec59=_0x559ae5['split']('\x0a');_0x559ae5=_0x58ec59[_0x65d315(0x141)]()||'';for(const _0x426aa3 of _0x58ec59){if(_0x426aa3[_0x65d315(0x136)]()===''){if(_0x17c04a['data']){_0x566152?.[_0x65d315(0x149)](_0x65d315(0x134)+_0x17c04a[_0x65d315(0x146)]);const _0x11e7b4=parseSSEData(_0x17c04a['data']);yield _0x11e7b4,_0x17c04a={};}continue;}if(_0x426aa3[_0x65d315(0x148)](':'))continue;const _0x369ea7=_0x426aa3['indexOf'](':');if(_0x369ea7===-0x1)continue;const _0x4fa288=_0x426aa3[_0x65d315(0x131)](0x0,_0x369ea7);let _0x3cd8ce=_0x426aa3['slice'](_0x369ea7+0x1);_0x3cd8ce[_0x65d315(0x148)]('\x20')&&(_0x3cd8ce=_0x3cd8ce[_0x65d315(0x131)](0x1));switch(_0x4fa288){case'event':_0x17c04a['event']=_0x3cd8ce;break;case _0x65d315(0x146):_0x17c04a['data']=_0x17c04a['data']?_0x17c04a[_0x65d315(0x146)]+'\x0a'+_0x3cd8ce:_0x3cd8ce;break;case'id':_0x17c04a['id']=_0x3cd8ce;break;}}}}finally{_0x2d6012[_0x65d315(0x143)]();}}function parseSSEData(_0x207d43){const _0x353d4c=a86_0x3485;try{return JSON[_0x353d4c(0x147)](_0x207d43);}catch(_0x1bcab8){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x207d43,{'cause':_0x1bcab8});}}function a86_0x2f69(){const _0x2c4a63=['[LLM\x20API\x20SSE]\x20','5ikhguH','trim','7232838zuhYcL','146404TveIqX','2237416cPhzDe','getReader','read','166772jFbwyb','body','7432152zPkXXr','4BhzWOX','decode','pop','18eYEYKR','releaseLock','1930ubqhbN','10769jALOJG','data','parse','startsWith','debug','slice','37226748qwLgQm','18evkcsA'];a86_0x2f69=function(){return _0x2c4a63;};return a86_0x2f69();}
@@ -1 +1 @@
1
- (function(_0x46af0a,_0x266d0a){const _0x47977d=a87_0x10f0,_0xf147f1=_0x46af0a();while(!![]){try{const _0x461b70=parseInt(_0x47977d(0x194))/0x1*(parseInt(_0x47977d(0x195))/0x2)+parseInt(_0x47977d(0x18e))/0x3+-parseInt(_0x47977d(0x19f))/0x4*(-parseInt(_0x47977d(0x18f))/0x5)+parseInt(_0x47977d(0x18d))/0x6+parseInt(_0x47977d(0x196))/0x7+-parseInt(_0x47977d(0x19c))/0x8*(parseInt(_0x47977d(0x192))/0x9)+-parseInt(_0x47977d(0x190))/0xa;if(_0x461b70===_0x266d0a)break;else _0xf147f1['push'](_0xf147f1['shift']());}catch(_0x49222d){_0xf147f1['push'](_0xf147f1['shift']());}}}(a87_0x5384,0xcdb9d));import a87_0x38ecb4 from'string-width';export function stringWidth(_0x1c1023){return a87_0x38ecb4(_0x1c1023);}export function padEnd(_0x502658,_0x4d76cb){const _0x1deedf=a87_0x10f0,_0x4383ea=stringWidth(_0x502658);if(_0x4383ea>=_0x4d76cb)return _0x502658;return _0x502658+'\x20'[_0x1deedf(0x19d)](_0x4d76cb-_0x4383ea);}export function padStart(_0x3a0d9a,_0x56cfc4){const _0xab549e=stringWidth(_0x3a0d9a);if(_0xab549e>=_0x56cfc4)return _0x3a0d9a;return'\x20'['repeat'](_0x56cfc4-_0xab549e)+_0x3a0d9a;}export function centerAlign(_0x2b38d1,_0x4bc1b4){const _0x4763c4=a87_0x10f0,_0x293cfc=stringWidth(_0x2b38d1);if(_0x293cfc>_0x4bc1b4){if(_0x4bc1b4<=0x1)return'…'[_0x4763c4(0x1a7)](0x0,_0x4bc1b4);let _0x3ba1b9=_0x2b38d1;while(stringWidth(_0x3ba1b9+'…')>_0x4bc1b4){_0x3ba1b9=_0x3ba1b9[_0x4763c4(0x18c)](0x0,-0x1);}return _0x3ba1b9+'…';}if(_0x293cfc===_0x4bc1b4)return _0x2b38d1;const _0x39da28=_0x4bc1b4-_0x293cfc,_0x1528a4=Math[_0x4763c4(0x19a)](_0x39da28/0x2),_0x3e6c52=_0x39da28-_0x1528a4;return'\x20'[_0x4763c4(0x19d)](_0x1528a4)+_0x2b38d1+'\x20'['repeat'](_0x3e6c52);}export function escapeStringLiteral(_0x1cdbb4){const _0x1a118a=a87_0x10f0;if(!_0x1cdbb4||_0x1cdbb4[_0x1a118a(0x199)]()[_0x1a118a(0x1a0)]===0x0)throw new Error(_0x1a118a(0x19b));const _0x1140d4=_0x1cdbb4[_0x1a118a(0x1a3)](/'/g,'\x27\x27');return'\x27'+_0x1140d4+'\x27';}export function globToLike(_0x56c896){const _0x2a5bf2=a87_0x10f0;let _0x95b854=_0x56c896[_0x2a5bf2(0x1a3)](/\\/g,'\x5c\x5c')[_0x2a5bf2(0x1a3)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x95b854=_0x95b854[_0x2a5bf2(0x1a3)](/\*/g,'%')[_0x2a5bf2(0x1a3)](/\?/g,'_'),_0x95b854;}export function buildLikePattern(_0x115a60){const _0x11f509=a87_0x10f0;if(!_0x115a60||_0x115a60[_0x11f509(0x199)]()['length']===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x432a4d=globToLike(_0x115a60),_0x34baf0=_0x432a4d[_0x11f509(0x1a3)](/'/g,'\x27\x27');return'\x27'+_0x34baf0+'\x27';}function a87_0x5384(){const _0x487a47=['6960730ALgZAW','env','USERNAME','trim','floor','Cannot\x20escape\x20empty\x20string\x20literal','482872FlaoGq','repeat','toString','46524IDfXjD','length','USER','\x5c$&','replace','toLowerCase','random','test','substring','slice','4531794fUBRpD','2217360QWbEGh','515kmvAKU','32991150LwNjLV','padStart','90IcslEv','unknown','352852MJENcd','6TGcwNi'];a87_0x5384=function(){return _0x487a47;};return a87_0x5384();}export function matchGlobPattern(_0x24a9f0,_0x57c544){const _0x2ad945=a87_0x10f0,_0x55cae0=_0x57c544['replace'](/[.+^${}()|[\]\\]/g,_0x2ad945(0x1a2))[_0x2ad945(0x1a3)](/\*/g,'.*')[_0x2ad945(0x1a3)](/\?/g,'.'),_0x120d72=new RegExp('^'+_0x55cae0+'$');return _0x120d72[_0x2ad945(0x1a6)](_0x24a9f0);}export function getSanitizedUsername(){const _0x1a8e96=a87_0x10f0,_0x289b01=process[_0x1a8e96(0x197)][_0x1a8e96(0x1a1)]||process['env'][_0x1a8e96(0x198)]||_0x1a8e96(0x193);return _0x289b01[_0x1a8e96(0x1a3)](/[^a-zA-Z0-9]/g,'')[_0x1a8e96(0x1a4)]();}function a87_0x10f0(_0x112553,_0x2ff5ef){const _0x5384ba=a87_0x5384();return a87_0x10f0=function(_0x10f018,_0x15d810){_0x10f018=_0x10f018-0x18c;let _0x4150b9=_0x5384ba[_0x10f018];return _0x4150b9;},a87_0x10f0(_0x112553,_0x2ff5ef);}export function generateRandomHex(){const _0x52f14d=a87_0x10f0,_0x468548=Math[_0x52f14d(0x19a)](Math[_0x52f14d(0x1a5)]()*0xfffff);return _0x468548[_0x52f14d(0x19e)](0x10)[_0x52f14d(0x191)](0x5,'0');}
1
+ (function(_0x143fc9,_0x1e9160){const _0xc81d0b=a87_0x4acb,_0x2c7bc0=_0x143fc9();while(!![]){try{const _0x58aed4=-parseInt(_0xc81d0b(0x207))/0x1+-parseInt(_0xc81d0b(0x205))/0x2*(-parseInt(_0xc81d0b(0x1f3))/0x3)+-parseInt(_0xc81d0b(0x1fe))/0x4+parseInt(_0xc81d0b(0x1f7))/0x5+-parseInt(_0xc81d0b(0x206))/0x6*(-parseInt(_0xc81d0b(0x204))/0x7)+-parseInt(_0xc81d0b(0x1f5))/0x8+-parseInt(_0xc81d0b(0x1f4))/0x9*(-parseInt(_0xc81d0b(0x1f9))/0xa);if(_0x58aed4===_0x1e9160)break;else _0x2c7bc0['push'](_0x2c7bc0['shift']());}catch(_0x37025d){_0x2c7bc0['push'](_0x2c7bc0['shift']());}}}(a87_0x4c1b,0x1a327));import a87_0x54c074 from'string-width';export function stringWidth(_0xcf9c5c){return a87_0x54c074(_0xcf9c5c);}export function padEnd(_0x20c156,_0x92035f){const _0x3d0857=a87_0x4acb,_0x3b30fc=stringWidth(_0x20c156);if(_0x3b30fc>=_0x92035f)return _0x20c156;return _0x20c156+'\x20'[_0x3d0857(0x208)](_0x92035f-_0x3b30fc);}function a87_0x4c1b(){const _0x3b2cdd=['3PtOXti','2556mjexFm','664728RffRME','unknown','838570KwbWHH','trim','7430wwxrga','substring','\x5c$&','test','toString','618264ecNylc','toLowerCase','random','floor','env','padStart','303499evKQqF','175704JhJgkQ','6eJyhef','164975fUUxET','repeat','USERNAME','length','replace','USER','Cannot\x20escape\x20empty\x20string\x20literal'];a87_0x4c1b=function(){return _0x3b2cdd;};return a87_0x4c1b();}export function padStart(_0x4ec16d,_0x4e3352){const _0x34873b=a87_0x4acb,_0x1e2544=stringWidth(_0x4ec16d);if(_0x1e2544>=_0x4e3352)return _0x4ec16d;return'\x20'[_0x34873b(0x208)](_0x4e3352-_0x1e2544)+_0x4ec16d;}export function centerAlign(_0xa5e501,_0xb09867){const _0x307043=a87_0x4acb,_0x11048b=stringWidth(_0xa5e501);if(_0x11048b>_0xb09867){if(_0xb09867<=0x1)return'…'[_0x307043(0x1fa)](0x0,_0xb09867);let _0x305f04=_0xa5e501;while(stringWidth(_0x305f04+'…')>_0xb09867){_0x305f04=_0x305f04['slice'](0x0,-0x1);}return _0x305f04+'…';}if(_0x11048b===_0xb09867)return _0xa5e501;const _0x375244=_0xb09867-_0x11048b,_0x2db6f2=Math[_0x307043(0x201)](_0x375244/0x2),_0x53fe47=_0x375244-_0x2db6f2;return'\x20'[_0x307043(0x208)](_0x2db6f2)+_0xa5e501+'\x20'['repeat'](_0x53fe47);}function a87_0x4acb(_0x58aa1c,_0x44cd1e){const _0x4c1bd4=a87_0x4c1b();return a87_0x4acb=function(_0x4acb2b,_0x287a35){_0x4acb2b=_0x4acb2b-0x1f3;let _0x2965f2=_0x4c1bd4[_0x4acb2b];return _0x2965f2;},a87_0x4acb(_0x58aa1c,_0x44cd1e);}export function escapeStringLiteral(_0x4c5861){const _0x32b974=a87_0x4acb;if(!_0x4c5861||_0x4c5861[_0x32b974(0x1f8)]()[_0x32b974(0x20a)]===0x0)throw new Error(_0x32b974(0x20d));const _0x26ff4d=_0x4c5861[_0x32b974(0x20b)](/'/g,'\x27\x27');return'\x27'+_0x26ff4d+'\x27';}export function globToLike(_0x5bf058){const _0x49a08f=a87_0x4acb;let _0x79ec4f=_0x5bf058['replace'](/\\/g,'\x5c\x5c')[_0x49a08f(0x20b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x79ec4f=_0x79ec4f[_0x49a08f(0x20b)](/\*/g,'%')[_0x49a08f(0x20b)](/\?/g,'_'),_0x79ec4f;}export function buildLikePattern(_0x3202a8){const _0x21408d=a87_0x4acb;if(!_0x3202a8||_0x3202a8['trim']()[_0x21408d(0x20a)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x443136=globToLike(_0x3202a8),_0xf4ca13=_0x443136[_0x21408d(0x20b)](/'/g,'\x27\x27');return'\x27'+_0xf4ca13+'\x27';}export function matchGlobPattern(_0x90a1c,_0x39b5c7){const _0x40636e=a87_0x4acb,_0x4f2a33=_0x39b5c7['replace'](/[.+^${}()|[\]\\]/g,_0x40636e(0x1fb))['replace'](/\*/g,'.*')[_0x40636e(0x20b)](/\?/g,'.'),_0x5d8f1f=new RegExp('^'+_0x4f2a33+'$');return _0x5d8f1f[_0x40636e(0x1fc)](_0x90a1c);}export function getSanitizedUsername(){const _0x5dceb9=a87_0x4acb,_0x3cde66=process[_0x5dceb9(0x202)][_0x5dceb9(0x20c)]||process[_0x5dceb9(0x202)][_0x5dceb9(0x209)]||_0x5dceb9(0x1f6);return _0x3cde66[_0x5dceb9(0x20b)](/[^a-zA-Z0-9]/g,'')[_0x5dceb9(0x1ff)]();}export function generateRandomHex(){const _0x22fc24=a87_0x4acb,_0x20494f=Math[_0x22fc24(0x201)](Math[_0x22fc24(0x200)]()*0xfffff);return _0x20494f[_0x22fc24(0x1fd)](0x10)[_0x22fc24(0x203)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x4fa1b3,_0x4ddd50){const _0x42e776=a88_0x49f3,_0x401c1d=_0x4fa1b3();while(!![]){try{const _0x22070d=-parseInt(_0x42e776(0x13b))/0x1*(parseInt(_0x42e776(0x12d))/0x2)+parseInt(_0x42e776(0x135))/0x3*(-parseInt(_0x42e776(0x134))/0x4)+parseInt(_0x42e776(0x141))/0x5+-parseInt(_0x42e776(0x13d))/0x6+-parseInt(_0x42e776(0x138))/0x7+parseInt(_0x42e776(0x139))/0x8+parseInt(_0x42e776(0x13a))/0x9;if(_0x22070d===_0x4ddd50)break;else _0x401c1d['push'](_0x401c1d['shift']());}catch(_0x3ba8d4){_0x401c1d['push'](_0x401c1d['shift']());}}}(a88_0x27e4,0x8e067));function a88_0x49f3(_0x2bb85d,_0x2552d1){const _0x27e433=a88_0x27e4();return a88_0x49f3=function(_0x49f3ff,_0x974ff7){_0x49f3ff=_0x49f3ff-0x12b;let _0xc8125b=_0x27e433[_0x49f3ff];return _0xc8125b;},a88_0x49f3(_0x2bb85d,_0x2552d1);}function hasWildcard(_0x2c8dbc){const _0x592d7d=a88_0x49f3;return _0x2c8dbc['includes']('*')||_0x2c8dbc[_0x592d7d(0x140)]('?');}export function parseTableReference(_0x3fc36f){const _0x1e8ea7=a88_0x49f3;if(!_0x3fc36f||_0x3fc36f[_0x1e8ea7(0x13f)]()['length']===0x0)throw new Error(_0x1e8ea7(0x143));const _0x2a6561=_0x3fc36f[_0x1e8ea7(0x13f)](),_0x36f868={'original':_0x2a6561},_0x1b1590=_0x2a6561['split']('.');if(_0x1b1590[_0x1e8ea7(0x12e)]===0x1){const _0x223921=_0x1b1590[0x0];if(!_0x223921)throw new Error(_0x1e8ea7(0x132));_0x36f868[_0x1e8ea7(0x13c)]=_0x223921;}else{if(_0x1b1590[_0x1e8ea7(0x12e)]===0x2){const [_0xe2e6b7,_0x22bf22]=_0x1b1590;if(!_0xe2e6b7)throw new Error(_0x1e8ea7(0x12c));if(!_0x22bf22)throw new Error(_0x1e8ea7(0x142));_0x36f868['database']=_0xe2e6b7,_0x36f868['table']=_0x22bf22;}else{if(_0x1b1590['length']===0x3){const [_0x138da0,_0x4d01ec,_0x4cd02e]=_0x1b1590;if(!_0x138da0||!_0x4d01ec||!_0x4cd02e)throw new Error(_0x1e8ea7(0x13e));_0x36f868['catalog']=_0x138da0,_0x36f868[_0x1e8ea7(0x12f)]=_0x4d01ec,_0x36f868[_0x1e8ea7(0x13c)]=_0x4cd02e;}else throw new Error(_0x1e8ea7(0x133));}}return _0x36f868;}export function formatTableReference(_0x479920){const _0x10cacc=a88_0x49f3,_0x77222b=[];return _0x479920['catalog']&&_0x77222b[_0x10cacc(0x131)](_0x479920[_0x10cacc(0x12b)]),_0x479920[_0x10cacc(0x12f)]&&_0x77222b[_0x10cacc(0x131)](_0x479920[_0x10cacc(0x12f)]),_0x479920[_0x10cacc(0x13c)]&&_0x77222b[_0x10cacc(0x131)](_0x479920[_0x10cacc(0x13c)]),_0x77222b[_0x10cacc(0x137)]('.');}function a88_0x27e4(){const _0x1c73e1=['Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1940780WhenSQ','3LSDlIy','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','join','5874680kDIJBj','8698680CVDlfW','7250481WQIXXZ','2443aGIvye','table','5381310RlVrCs','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','trim','includes','5417820KWoUfX','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','catalog','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','142upZboG','length','database','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','push','Pattern\x20cannot\x20be\x20just\x20a\x20dot'];a88_0x27e4=function(){return _0x1c73e1;};return a88_0x27e4();}export function validateTableListReference(_0x2da4bf){return undefined;}export function validateTableDescribeReference(_0x599209){const _0x396741=a88_0x49f3;if(!_0x599209['table'])return'Table\x20name\x20is\x20required\x20for\x20describe\x20operation';if(_0x599209[_0x396741(0x12f)]&&hasWildcard(_0x599209[_0x396741(0x12f)]))return _0x396741(0x130);if(hasWildcard(_0x599209[_0x396741(0x13c)]))return _0x396741(0x136);return undefined;}
1
+ function a88_0x2bd2(_0x41a527,_0x5bf7cc){const _0x1470f2=a88_0x1470();return a88_0x2bd2=function(_0x2bd26c,_0x2e1c18){_0x2bd26c=_0x2bd26c-0x16a;let _0x3bf414=_0x1470f2[_0x2bd26c];return _0x3bf414;},a88_0x2bd2(_0x41a527,_0x5bf7cc);}(function(_0x21de68,_0x520b95){const _0x2b2f91=a88_0x2bd2,_0x50b603=_0x21de68();while(!![]){try{const _0x399e19=parseInt(_0x2b2f91(0x180))/0x1+parseInt(_0x2b2f91(0x179))/0x2+parseInt(_0x2b2f91(0x17c))/0x3+-parseInt(_0x2b2f91(0x175))/0x4*(-parseInt(_0x2b2f91(0x182))/0x5)+parseInt(_0x2b2f91(0x174))/0x6*(-parseInt(_0x2b2f91(0x178))/0x7)+parseInt(_0x2b2f91(0x16c))/0x8*(parseInt(_0x2b2f91(0x17b))/0x9)+-parseInt(_0x2b2f91(0x16e))/0xa;if(_0x399e19===_0x520b95)break;else _0x50b603['push'](_0x50b603['shift']());}catch(_0x25ebaf){_0x50b603['push'](_0x50b603['shift']());}}}(a88_0x1470,0xded4f));function hasWildcard(_0x323097){const _0x5e6b4a=a88_0x2bd2;return _0x323097[_0x5e6b4a(0x16b)]('*')||_0x323097[_0x5e6b4a(0x16b)]('?');}export function parseTableReference(_0x4800fa){const _0x281396=a88_0x2bd2;if(!_0x4800fa||_0x4800fa[_0x281396(0x17d)]()[_0x281396(0x16f)]===0x0)throw new Error(_0x281396(0x170));const _0x72bb76=_0x4800fa[_0x281396(0x17d)](),_0x3f1f02={'original':_0x72bb76},_0x32773c=_0x72bb76[_0x281396(0x177)]('.');if(_0x32773c[_0x281396(0x16f)]===0x1){const _0x217aae=_0x32773c[0x0];if(!_0x217aae)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x3f1f02['table']=_0x217aae;}else{if(_0x32773c[_0x281396(0x16f)]===0x2){const [_0x3d71c7,_0x19b03f]=_0x32773c;if(!_0x3d71c7)throw new Error(_0x281396(0x176));if(!_0x19b03f)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x3f1f02[_0x281396(0x172)]=_0x3d71c7,_0x3f1f02[_0x281396(0x171)]=_0x19b03f;}else{if(_0x32773c['length']===0x3){const [_0x4f4089,_0xeb5f02,_0x1652de]=_0x32773c;if(!_0x4f4089||!_0xeb5f02||!_0x1652de)throw new Error(_0x281396(0x17f));_0x3f1f02[_0x281396(0x17a)]=_0x4f4089,_0x3f1f02[_0x281396(0x172)]=_0xeb5f02,_0x3f1f02[_0x281396(0x171)]=_0x1652de;}else throw new Error(_0x281396(0x181));}}return _0x3f1f02;}export function formatTableReference(_0x46811e){const _0x5b6f8c=a88_0x2bd2,_0x6de60c=[];return _0x46811e[_0x5b6f8c(0x17a)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x17a)]),_0x46811e[_0x5b6f8c(0x172)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x172)]),_0x46811e[_0x5b6f8c(0x171)]&&_0x6de60c[_0x5b6f8c(0x17e)](_0x46811e[_0x5b6f8c(0x171)]),_0x6de60c[_0x5b6f8c(0x16a)]('.');}export function validateTableListReference(_0x2d5f29){return undefined;}function a88_0x1470(){const _0x1301c5=['237845yjnBNU','join','includes','1739896blqmqO','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','33578010caiiSY','length','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','table','database','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','57582zAaEII','68mnivyS','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','49RtYukO','3144224xDKeFs','catalog','27cZcOsw','947718tIiZWp','trim','push','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','988547BVjsYg','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)'];a88_0x1470=function(){return _0x1301c5;};return a88_0x1470();}export function validateTableDescribeReference(_0x5720fe){const _0x596f1c=a88_0x2bd2;if(!_0x5720fe[_0x596f1c(0x171)])return _0x596f1c(0x173);if(_0x5720fe[_0x596f1c(0x172)]&&hasWildcard(_0x5720fe[_0x596f1c(0x172)]))return _0x596f1c(0x16d);if(hasWildcard(_0x5720fe[_0x596f1c(0x171)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a89_0x3389d3=a89_0x500b;(function(_0x5b12ea,_0x12c474){const _0xa7f887=a89_0x500b,_0xe36d2a=_0x5b12ea();while(!![]){try{const _0x390530=parseInt(_0xa7f887(0x1da))/0x1+parseInt(_0xa7f887(0x1cb))/0x2+-parseInt(_0xa7f887(0x1f0))/0x3*(parseInt(_0xa7f887(0x1f6))/0x4)+parseInt(_0xa7f887(0x1e4))/0x5*(parseInt(_0xa7f887(0x1d4))/0x6)+-parseInt(_0xa7f887(0x1d3))/0x7*(parseInt(_0xa7f887(0x1e8))/0x8)+parseInt(_0xa7f887(0x1d5))/0x9*(parseInt(_0xa7f887(0x200))/0xa)+-parseInt(_0xa7f887(0x1e0))/0xb;if(_0x390530===_0x12c474)break;else _0xe36d2a['push'](_0xe36d2a['shift']());}catch(_0x29e72e){_0xe36d2a['push'](_0xe36d2a['shift']());}}}(a89_0x5309,0x742bb));import{createWriteStream,createReadStream}from'fs';function a89_0x5309(){const _0x270d6d=['rotateOldLogs','768568RQenOl','abs','getHours','cyan','getTimezoneOffset','cause','13649119PdJyyC','close','message','error','260WyDAcF','Warning:\x20Error\x20writing\x20to\x20tdx.log:','split','floor','112huqcAN','.cache','init','join','WARN','padStart','filter','tdx.log','42dyqNbk','gray','getLogPath','DEBUG','getMilliseconds','toISOString','47684QVJXJe','fileOnly','getMonth','getSeconds','logDir','getFullYear','INFO','logLevel','trace','logStream','10QWZWcp','write','.gz','logs','info','.log','name','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','Proxy\x20session\x20ended','TRACE','stringify','yellow','979704uJVGNq','red','debug','test','tdx-','warn','toString','ERROR','269325VThIBb','39546tRkQuZ','7389504XhoUiX','Warning:\x20Failed\x20to\x20compress\x20','includes','mtime'];a89_0x5309=function(){return _0x270d6d;};return a89_0x5309();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a89_0x25af63 from'chalk';function safeStringify(_0x2ae290){const _0x5e00ba=a89_0x500b;if(typeof _0x2ae290==='string')return _0x2ae290;if(_0x2ae290 instanceof Error)return _0x2ae290['stack']||_0x2ae290[_0x5e00ba(0x1c5)]+':\x20'+_0x2ae290[_0x5e00ba(0x1e2)];try{return JSON[_0x5e00ba(0x1c9)](_0x2ae290,(_0x168297,_0x2a7730)=>{const _0x4a0371=_0x5e00ba;if(_0x2a7730 instanceof Error)return{'name':_0x2a7730['name'],'message':_0x2a7730[_0x4a0371(0x1e2)],'stack':_0x2a7730['stack'],'cause':_0x2a7730[_0x4a0371(0x1df)]};return _0x2a7730;});}catch{return String(_0x2ae290);}}function getTimezoneOffset(){const _0x1002f3=a89_0x500b,_0x1a28bd=-new Date()[_0x1002f3(0x1de)](),_0xee3076=Math[_0x1002f3(0x1e7)](Math[_0x1002f3(0x1db)](_0x1a28bd)/0x3c),_0x3621bf=Math[_0x1002f3(0x1db)](_0x1a28bd)%0x3c,_0x364bad=_0x1a28bd>=0x0?'+':'-';return''+_0x364bad+_0xee3076['toString']()[_0x1002f3(0x1ed)](0x2,'0')+_0x3621bf[_0x1002f3(0x1d1)]()[_0x1002f3(0x1ed)](0x2,'0');}function formatTimestamp(){const _0x26ead1=a89_0x500b,_0x4f0c11=new Date(),_0x11056d=_0x4f0c11[_0x26ead1(0x1fb)](),_0x4f3607=(_0x4f0c11[_0x26ead1(0x1f8)]()+0x1)[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0x338330=_0x4f0c11['getDate']()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0x3f10ff=_0x4f0c11[_0x26ead1(0x1dc)]()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0xd44361=_0x4f0c11['getMinutes']()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x2,'0'),_0x41a994=_0x4f0c11[_0x26ead1(0x1f9)]()['toString']()[_0x26ead1(0x1ed)](0x2,'0'),_0x39992a=_0x4f0c11[_0x26ead1(0x1f4)]()[_0x26ead1(0x1d1)]()[_0x26ead1(0x1ed)](0x3,'0'),_0x2d6894=getTimezoneOffset();return _0x11056d+'-'+_0x4f3607+'-'+_0x338330+'\x20'+_0x3f10ff+':'+_0xd44361+':'+_0x41a994+'.'+_0x39992a+_0x2d6894;}function a89_0x500b(_0x51f1ad,_0x4a966a){const _0x53090d=a89_0x5309();return a89_0x500b=function(_0x500b41,_0x22d55b){_0x500b41=_0x500b41-0x1c5;let _0xea2159=_0x53090d[_0x500b41];return _0xea2159;},a89_0x500b(_0x51f1ad,_0x4a966a);}function formatColoredLogEntry(_0x491521,_0x221c15){const _0x2ab4c2=a89_0x500b,_0x17bd77=formatTimestamp(),_0x4909e8=_0x221c15['map'](safeStringify)[_0x2ab4c2(0x1eb)]('\x20'),_0x4e8801=a89_0x25af63['gray'](_0x17bd77);let _0x5657b0;switch(_0x491521){case _0x2ab4c2(0x204):_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1dd)]('['+_0x491521+']\x20');break;case'warn':_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1ca)]('['+_0x491521+']\x20');break;case _0x2ab4c2(0x1e3):_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1cc)]('['+_0x491521+']');break;case _0x2ab4c2(0x1cd):_0x5657b0=a89_0x25af63[_0x2ab4c2(0x1f1)]('['+_0x491521+']');break;default:_0x5657b0='['+_0x491521+']';}return _0x4e8801+'\x20'+_0x5657b0+'\x20'+_0x4909e8;}export var LogLevel;(function(_0x19ab41){const _0x30d174=a89_0x500b;_0x19ab41[_0x19ab41[_0x30d174(0x1c8)]=-0x2]='TRACE',_0x19ab41[_0x19ab41[_0x30d174(0x1f3)]=-0x1]=_0x30d174(0x1f3),_0x19ab41[_0x19ab41[_0x30d174(0x1fc)]=0x0]='INFO',_0x19ab41[_0x19ab41['WARN']=0x1]=_0x30d174(0x1ec),_0x19ab41[_0x19ab41[_0x30d174(0x1d2)]=0x2]=_0x30d174(0x1d2);}(LogLevel||(LogLevel={})));export class TDXLogger{[a89_0x3389d3(0x1ff)];[a89_0x3389d3(0x1fa)];[a89_0x3389d3(0x1fd)];[a89_0x3389d3(0x1f7)];constructor(_0x179e1a=LogLevel[a89_0x3389d3(0x1fc)],_0x6799f9=![]){const _0x4d545a=a89_0x3389d3;this['logDir']=join(homedir(),_0x4d545a(0x1e9),'tdx',_0x4d545a(0x203)),this[_0x4d545a(0x1fd)]=_0x179e1a,this[_0x4d545a(0x1f7)]=_0x6799f9;}async[a89_0x3389d3(0x1ea)](){const _0x580ab0=a89_0x3389d3;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x580ab0(0x1d9)]();const _0xba39c4=join(this[_0x580ab0(0x1fa)],'tdx.log');this[_0x580ab0(0x1ff)]=createWriteStream(_0xba39c4,{'flags':'a'}),this[_0x580ab0(0x1ff)]['on'](_0x580ab0(0x1e3),_0x4eb037=>{const _0x5ce2c7=_0x580ab0;console['error'](_0x5ce2c7(0x1e5),_0x4eb037[_0x5ce2c7(0x1e2)]);});}catch(_0x6bb978){console['error'](_0x580ab0(0x1c6),_0x6bb978);}}async[a89_0x3389d3(0x1d9)](){const _0x41389d=a89_0x3389d3;try{const _0x589a72=await readdir(this['logDir']),_0x5373cb=new Date()[_0x41389d(0x1f5)]()[_0x41389d(0x1e6)]('T')[0x0];if(_0x589a72[_0x41389d(0x1d7)](_0x41389d(0x1ef))){const _0x52c84b=join(this[_0x41389d(0x1fa)],'tdx.log'),_0x2f1110=await stat(_0x52c84b),_0x3e4f0b=new Date(_0x2f1110[_0x41389d(0x1d8)])[_0x41389d(0x1f5)]()[_0x41389d(0x1e6)]('T')[0x0];if(_0x3e4f0b<_0x5373cb){const _0x4e3c91=join(this[_0x41389d(0x1fa)],_0x41389d(0x1cf)+_0x3e4f0b+_0x41389d(0x205));await rename(_0x52c84b,_0x4e3c91);}}const _0x35680a=await readdir(this['logDir']),_0x43485a=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x4eb510=_0x35680a[_0x41389d(0x1ee)](_0x21a7a6=>_0x43485a[_0x41389d(0x1ce)](_0x21a7a6));for(const _0x20e3d1 of _0x4eb510){const _0x1cb767=join(this['logDir'],_0x20e3d1),_0x27d17c=join(this[_0x41389d(0x1fa)],_0x20e3d1+_0x41389d(0x202));try{await pipeline(createReadStream(_0x1cb767),createGzip(),createWriteStream(_0x27d17c)),await unlink(_0x1cb767);}catch(_0xb956f7){console[_0x41389d(0x1e3)](_0x41389d(0x1d6)+_0x20e3d1+':',_0xb956f7);}}}catch{}}[a89_0x3389d3(0x1cd)](..._0x1590d0){const _0x506fb1=a89_0x3389d3;if(this[_0x506fb1(0x1fd)]>LogLevel['DEBUG'])return;const _0x3a34b8=formatColoredLogEntry('debug',_0x1590d0);this[_0x506fb1(0x1ff)]?.[_0x506fb1(0x201)](_0x3a34b8+'\x0a');}[a89_0x3389d3(0x1fe)](..._0x2c3df3){const _0x2aad03=a89_0x3389d3;if(this[_0x2aad03(0x1fd)]>LogLevel['TRACE'])return;const _0x403162=formatColoredLogEntry(_0x2aad03(0x1fe),_0x2c3df3);this[_0x2aad03(0x1ff)]?.[_0x2aad03(0x201)](_0x403162+'\x0a');}[a89_0x3389d3(0x204)](..._0x383492){const _0x5571e3=a89_0x3389d3;if(this[_0x5571e3(0x1fd)]>LogLevel[_0x5571e3(0x1fc)])return;const _0x4b3cf2=formatColoredLogEntry(_0x5571e3(0x204),_0x383492);!this['fileOnly']&&console['log'](_0x4b3cf2),this[_0x5571e3(0x1ff)]?.[_0x5571e3(0x201)](_0x4b3cf2+'\x0a');}[a89_0x3389d3(0x1d0)](..._0x3ee287){const _0x466242=a89_0x3389d3;if(this[_0x466242(0x1fd)]>LogLevel[_0x466242(0x1ec)])return;const _0x3dc8a1=formatColoredLogEntry('warn',_0x3ee287);!this[_0x466242(0x1f7)]&&console['error'](_0x3dc8a1),this[_0x466242(0x1ff)]?.[_0x466242(0x201)](_0x3dc8a1+'\x0a');}['error'](..._0xca9b19){const _0x4d6fa7=a89_0x3389d3,_0x17478d=formatColoredLogEntry('error',_0xca9b19);!this[_0x4d6fa7(0x1f7)]&&console['error'](_0x17478d),this[_0x4d6fa7(0x1ff)]?.['write'](_0x17478d+'\x0a');}async[a89_0x3389d3(0x1e1)](){const _0x1c1fe1=a89_0x3389d3;return this[_0x1c1fe1(0x204)](_0x1c1fe1(0x1c7)),new Promise(_0x5c12eb=>{this['logStream']?this['logStream']['end'](()=>{_0x5c12eb();}):_0x5c12eb();});}[a89_0x3389d3(0x1f2)](){const _0x25ddd3=a89_0x3389d3;return join(this[_0x25ddd3(0x1fa)],_0x25ddd3(0x1ef));}}
1
+ const a89_0x4a091d=a89_0x3e19;(function(_0x2f5293,_0x43031e){const _0x30d054=a89_0x3e19,_0x1de929=_0x2f5293();while(!![]){try{const _0x3ebf30=-parseInt(_0x30d054(0x178))/0x1+-parseInt(_0x30d054(0x16c))/0x2*(-parseInt(_0x30d054(0x1a1))/0x3)+-parseInt(_0x30d054(0x166))/0x4+parseInt(_0x30d054(0x189))/0x5*(-parseInt(_0x30d054(0x175))/0x6)+-parseInt(_0x30d054(0x196))/0x7*(-parseInt(_0x30d054(0x1a4))/0x8)+-parseInt(_0x30d054(0x169))/0x9+-parseInt(_0x30d054(0x19c))/0xa*(-parseInt(_0x30d054(0x173))/0xb);if(_0x3ebf30===_0x43031e)break;else _0x1de929['push'](_0x1de929['shift']());}catch(_0x374c52){_0x1de929['push'](_0x1de929['shift']());}}}(a89_0x42d0,0x5fe7e));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';function a89_0x42d0(){const _0x1565c6=['message','tdx-','mtime','toISOString','ERROR','write','cause','182xpBGUK','logStream','info','.gz','fileOnly','getMinutes','30vmmzON','red','Warning:\x20Error\x20writing\x20to\x20tdx.log:','.log','padStart','1533dzLITF','getHours','error','205528wjwnpf','gray','close','1218316jesBgb','tdx.log','TRACE','2593512CKrAxD','map','getMonth','1898QKXxQK','getSeconds','logLevel','includes','rotateOldLogs','WARN','test','4172179lpZQqV','.cache','5298UPBpUJ','logs','getDate','758618bzIzbl','Warning:\x20Failed\x20to\x20compress\x20','trace','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','warn','Proxy\x20session\x20ended','toString','stack','DEBUG','tdx','log','abs','floor','split','getTimezoneOffset','getMilliseconds','name','3095ZHUxHC','debug','INFO','logDir','getLogPath','end'];a89_0x42d0=function(){return _0x1565c6;};return a89_0x42d0();}function a89_0x3e19(_0x92738,_0x45235d){const _0x42d0d2=a89_0x42d0();return a89_0x3e19=function(_0x3e19c1,_0x3b5f8e){_0x3e19c1=_0x3e19c1-0x166;let _0x55456f=_0x42d0d2[_0x3e19c1];return _0x55456f;},a89_0x3e19(_0x92738,_0x45235d);}import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a89_0x4e5053 from'chalk';function safeStringify(_0xdba028){const _0x2f6629=a89_0x3e19;if(typeof _0xdba028==='string')return _0xdba028;if(_0xdba028 instanceof Error)return _0xdba028[_0x2f6629(0x17f)]||_0xdba028[_0x2f6629(0x188)]+':\x20'+_0xdba028[_0x2f6629(0x18f)];try{return JSON['stringify'](_0xdba028,(_0x5429a2,_0x3f12ef)=>{const _0x2d8526=_0x2f6629;if(_0x3f12ef instanceof Error)return{'name':_0x3f12ef[_0x2d8526(0x188)],'message':_0x3f12ef['message'],'stack':_0x3f12ef[_0x2d8526(0x17f)],'cause':_0x3f12ef[_0x2d8526(0x195)]};return _0x3f12ef;});}catch{return String(_0xdba028);}}function getTimezoneOffset(){const _0x1f7238=a89_0x3e19,_0x412321=-new Date()[_0x1f7238(0x186)](),_0x4df58d=Math[_0x1f7238(0x184)](Math['abs'](_0x412321)/0x3c),_0x2867ed=Math[_0x1f7238(0x183)](_0x412321)%0x3c,_0x2efacf=_0x412321>=0x0?'+':'-';return''+_0x2efacf+_0x4df58d[_0x1f7238(0x17e)]()['padStart'](0x2,'0')+_0x2867ed[_0x1f7238(0x17e)]()[_0x1f7238(0x1a0)](0x2,'0');}function formatTimestamp(){const _0x3bee6f=a89_0x3e19,_0x5b7b15=new Date(),_0x1bdca7=_0x5b7b15['getFullYear'](),_0x3afd9f=(_0x5b7b15[_0x3bee6f(0x16b)]()+0x1)['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0x226c61=_0x5b7b15[_0x3bee6f(0x177)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x243b73=_0x5b7b15[_0x3bee6f(0x1a2)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xaf31bc=_0x5b7b15[_0x3bee6f(0x19b)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x2,'0'),_0x308c1c=_0x5b7b15[_0x3bee6f(0x16d)]()['toString']()[_0x3bee6f(0x1a0)](0x2,'0'),_0xce8571=_0x5b7b15[_0x3bee6f(0x187)]()[_0x3bee6f(0x17e)]()[_0x3bee6f(0x1a0)](0x3,'0'),_0x450f1b=getTimezoneOffset();return _0x1bdca7+'-'+_0x3afd9f+'-'+_0x226c61+'\x20'+_0x243b73+':'+_0xaf31bc+':'+_0x308c1c+'.'+_0xce8571+_0x450f1b;}function formatColoredLogEntry(_0x5157db,_0xf9cb5b){const _0x51c0f2=a89_0x3e19,_0x2e9d7a=formatTimestamp(),_0x153409=_0xf9cb5b[_0x51c0f2(0x16a)](safeStringify)['join']('\x20'),_0x571e41=a89_0x4e5053[_0x51c0f2(0x1a5)](_0x2e9d7a);let _0x403088;switch(_0x5157db){case _0x51c0f2(0x198):_0x403088=a89_0x4e5053['cyan']('['+_0x5157db+']\x20');break;case _0x51c0f2(0x17c):_0x403088=a89_0x4e5053['yellow']('['+_0x5157db+']\x20');break;case'error':_0x403088=a89_0x4e5053[_0x51c0f2(0x19d)]('['+_0x5157db+']');break;case _0x51c0f2(0x18a):_0x403088=a89_0x4e5053[_0x51c0f2(0x1a5)]('['+_0x5157db+']');break;default:_0x403088='['+_0x5157db+']';}return _0x571e41+'\x20'+_0x403088+'\x20'+_0x153409;}export var LogLevel;(function(_0x206fa3){const _0xd293b1=a89_0x3e19;_0x206fa3[_0x206fa3[_0xd293b1(0x168)]=-0x2]='TRACE',_0x206fa3[_0x206fa3[_0xd293b1(0x180)]=-0x1]=_0xd293b1(0x180),_0x206fa3[_0x206fa3[_0xd293b1(0x18b)]=0x0]=_0xd293b1(0x18b),_0x206fa3[_0x206fa3[_0xd293b1(0x171)]=0x1]=_0xd293b1(0x171),_0x206fa3[_0x206fa3['ERROR']=0x2]=_0xd293b1(0x193);}(LogLevel||(LogLevel={})));export class TDXLogger{[a89_0x4a091d(0x197)];[a89_0x4a091d(0x18c)];[a89_0x4a091d(0x16e)];['fileOnly'];constructor(_0x421508=LogLevel[a89_0x4a091d(0x18b)],_0x3d28e3=![]){const _0x3eae98=a89_0x4a091d;this[_0x3eae98(0x18c)]=join(homedir(),_0x3eae98(0x174),_0x3eae98(0x181),_0x3eae98(0x176)),this['logLevel']=_0x421508,this['fileOnly']=_0x3d28e3;}async['init'](){const _0x416534=a89_0x4a091d;try{await mkdir(this[_0x416534(0x18c)],{'recursive':!![]}),await this[_0x416534(0x170)]();const _0x2621e1=join(this[_0x416534(0x18c)],_0x416534(0x167));this[_0x416534(0x197)]=createWriteStream(_0x2621e1,{'flags':'a'}),this[_0x416534(0x197)]['on'](_0x416534(0x1a3),_0xe593a3=>{const _0x381c85=_0x416534;console[_0x381c85(0x1a3)](_0x381c85(0x19e),_0xe593a3[_0x381c85(0x18f)]);});}catch(_0x4eb46c){console[_0x416534(0x1a3)](_0x416534(0x17b),_0x4eb46c);}}async[a89_0x4a091d(0x170)](){const _0x22671c=a89_0x4a091d;try{const _0x1d75d4=await readdir(this['logDir']),_0x4b58f=new Date()[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x1d75d4[_0x22671c(0x16f)](_0x22671c(0x167))){const _0x18eb8f=join(this['logDir'],_0x22671c(0x167)),_0x2f7235=await stat(_0x18eb8f),_0x354f27=new Date(_0x2f7235[_0x22671c(0x191)])[_0x22671c(0x192)]()[_0x22671c(0x185)]('T')[0x0];if(_0x354f27<_0x4b58f){const _0x3d14f4=join(this['logDir'],_0x22671c(0x190)+_0x354f27+_0x22671c(0x19f));await rename(_0x18eb8f,_0x3d14f4);}}const _0x3ccf2f=await readdir(this[_0x22671c(0x18c)]),_0x1d3954=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x9c5ec=_0x3ccf2f['filter'](_0x36f54e=>_0x1d3954[_0x22671c(0x172)](_0x36f54e));for(const _0x34ea0d of _0x9c5ec){const _0xf4abfd=join(this[_0x22671c(0x18c)],_0x34ea0d),_0x48592c=join(this['logDir'],_0x34ea0d+_0x22671c(0x199));try{await pipeline(createReadStream(_0xf4abfd),createGzip(),createWriteStream(_0x48592c)),await unlink(_0xf4abfd);}catch(_0x49dd7e){console[_0x22671c(0x1a3)](_0x22671c(0x179)+_0x34ea0d+':',_0x49dd7e);}}}catch{}}[a89_0x4a091d(0x18a)](..._0x2bf9df){const _0x1a16e2=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x1a16e2(0x180)])return;const _0x1202ba=formatColoredLogEntry(_0x1a16e2(0x18a),_0x2bf9df);this[_0x1a16e2(0x197)]?.[_0x1a16e2(0x194)](_0x1202ba+'\x0a');}[a89_0x4a091d(0x17a)](..._0x1e2a31){const _0x41f5c9=a89_0x4a091d;if(this[_0x41f5c9(0x16e)]>LogLevel['TRACE'])return;const _0x578e1f=formatColoredLogEntry(_0x41f5c9(0x17a),_0x1e2a31);this['logStream']?.['write'](_0x578e1f+'\x0a');}[a89_0x4a091d(0x198)](..._0x5a2d64){const _0x13fa88=a89_0x4a091d;if(this[_0x13fa88(0x16e)]>LogLevel[_0x13fa88(0x18b)])return;const _0x155f3e=formatColoredLogEntry(_0x13fa88(0x198),_0x5a2d64);!this['fileOnly']&&console[_0x13fa88(0x182)](_0x155f3e),this[_0x13fa88(0x197)]?.[_0x13fa88(0x194)](_0x155f3e+'\x0a');}['warn'](..._0x21e628){const _0x497a7e=a89_0x4a091d;if(this['logLevel']>LogLevel[_0x497a7e(0x171)])return;const _0x50407d=formatColoredLogEntry(_0x497a7e(0x17c),_0x21e628);!this[_0x497a7e(0x19a)]&&console[_0x497a7e(0x1a3)](_0x50407d),this[_0x497a7e(0x197)]?.[_0x497a7e(0x194)](_0x50407d+'\x0a');}['error'](..._0x302cc7){const _0xacee0d=a89_0x4a091d,_0x27a58e=formatColoredLogEntry(_0xacee0d(0x1a3),_0x302cc7);!this[_0xacee0d(0x19a)]&&console[_0xacee0d(0x1a3)](_0x27a58e),this['logStream']?.[_0xacee0d(0x194)](_0x27a58e+'\x0a');}async[a89_0x4a091d(0x1a6)](){const _0x447c5b=a89_0x4a091d;return this[_0x447c5b(0x198)](_0x447c5b(0x17d)),new Promise(_0x224b84=>{const _0x1a7dce=_0x447c5b;this['logStream']?this[_0x1a7dce(0x197)][_0x1a7dce(0x18e)](()=>{_0x224b84();}):_0x224b84();});}[a89_0x4a091d(0x18d)](){const _0x2db494=a89_0x4a091d;return join(this['logDir'],_0x2db494(0x167));}}
@@ -1 +1 @@
1
- (function(_0x572acd,_0x1b2576){const _0x59eaf5=a90_0x487a,_0x27c5da=_0x572acd();while(!![]){try{const _0x358886=-parseInt(_0x59eaf5(0x92))/0x1+-parseInt(_0x59eaf5(0x86))/0x2+parseInt(_0x59eaf5(0x8b))/0x3+parseInt(_0x59eaf5(0x8d))/0x4+-parseInt(_0x59eaf5(0x83))/0x5*(parseInt(_0x59eaf5(0x95))/0x6)+-parseInt(_0x59eaf5(0xa4))/0x7+parseInt(_0x59eaf5(0xa3))/0x8;if(_0x358886===_0x1b2576)break;else _0x27c5da['push'](_0x27c5da['shift']());}catch(_0x5df8d1){_0x27c5da['push'](_0x27c5da['shift']());}}}(a90_0x5985,0x2c2be));import{formatRows}from'./formatters.js';function a90_0x5985(){const _0xeb0b99=['(empty)','length','type','showTreeLines','map','push','children','dim','1989544ipePhJ','704326eOlyxU','folderCount','5vIcKuK','├──\x20','join','232398HHYzit','\x20\x20\x20\x20','segment','showMetadata','folder','709443VXUrVN','sort','466640kJBBeK','metadata','population','icon','\x20segment','88344IotpfE','showIcons','localeCompare','694482EEGDrq','segmentCount','name','indent','\x20folder','🎯\x20'];a90_0x5985=function(){return _0xeb0b99;};return a90_0x5985();}import a90_0x562759 from'chalk';function a90_0x487a(_0x474887,_0x909061){const _0x59854e=a90_0x5985();return a90_0x487a=function(_0x487adc,_0x246962){_0x487adc=_0x487adc-0x82;let _0xa1bcf6=_0x59854e[_0x487adc];return _0xa1bcf6;},a90_0x487a(_0x474887,_0x909061);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x115812,_0x35cbfe={},_0x41ffe4=0x0,_0x4b2292=''){const _0x17e6d2=a90_0x487a,_0x46cd0c={...DEFAULT_OPTIONS,..._0x35cbfe},_0xf60c0f=[],_0x2ca39c=[..._0x115812][_0x17e6d2(0x8c)]((_0x4bcd64,_0x304bff)=>_0x4bcd64[_0x17e6d2(0x97)][_0x17e6d2(0x94)](_0x304bff[_0x17e6d2(0x97)]));for(let _0x4ee597=0x0;_0x4ee597<_0x2ca39c[_0x17e6d2(0x9c)];_0x4ee597++){const _0x47f017=_0x2ca39c[_0x4ee597],_0x41c8ea=_0x4ee597===_0x2ca39c[_0x17e6d2(0x9c)]-0x1;let _0x303938='';_0x41ffe4>0x0&&(_0x303938+=_0x4b2292);_0x46cd0c[_0x17e6d2(0x9e)]&&_0x41ffe4>0x0&&(_0x303938+=a90_0x562759[_0x17e6d2(0xa2)](_0x41c8ea?'└──\x20':_0x17e6d2(0x84)));_0x46cd0c[_0x17e6d2(0x93)]&&(_0x303938+=_0x47f017[_0x17e6d2(0x9d)]===_0x17e6d2(0x8a)?'📁\x20':_0x17e6d2(0x9a));_0x303938+=_0x47f017[_0x17e6d2(0x97)];if(_0x46cd0c['showMetadata']){if(_0x47f017[_0x17e6d2(0x9d)]===_0x17e6d2(0x8a)){const _0x41f777=[];_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x96)]&&_0x41f777['push'](_0x47f017['metadata'][_0x17e6d2(0x96)]+_0x17e6d2(0x91)+(_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x96)]!==0x1?'s':'')),_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x82)]&&_0x41f777[_0x17e6d2(0xa0)](_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x82)]+_0x17e6d2(0x99)+(_0x47f017[_0x17e6d2(0x8e)][_0x17e6d2(0x82)]!==0x1?'s':'')),_0x41f777[_0x17e6d2(0x9c)]>0x0&&(_0x303938+=a90_0x562759['dim']('\x20('+_0x41f777[_0x17e6d2(0x85)](',\x20')+')'));}else _0x47f017[_0x17e6d2(0x9d)]===_0x17e6d2(0x88)&&_0x47f017[_0x17e6d2(0x8f)]!==undefined&&(_0x303938+=a90_0x562759['dim']('\x20('+formatRows(_0x47f017[_0x17e6d2(0x8f)])+')'));}_0xf60c0f[_0x17e6d2(0xa0)](_0x303938);if(_0x47f017['children']&&_0x47f017[_0x17e6d2(0xa1)][_0x17e6d2(0x9c)]>0x0){let _0x5aa88b;if(_0x41ffe4===0x0)_0x5aa88b='';else _0x46cd0c['showTreeLines']?_0x5aa88b=_0x4b2292+(_0x41c8ea?_0x17e6d2(0x87):a90_0x562759[_0x17e6d2(0xa2)]('│')+'\x20\x20\x20'):_0x5aa88b=_0x4b2292+_0x46cd0c[_0x17e6d2(0x98)];const _0x51bedd=formatTree(_0x47f017[_0x17e6d2(0xa1)],_0x46cd0c,_0x41ffe4+0x1,_0x5aa88b);_0xf60c0f[_0x17e6d2(0xa0)](_0x51bedd);}}return _0xf60c0f[_0x17e6d2(0x85)]('\x0a');}export function formatFlatList(_0x5bce60,_0x3538ef,_0x58019b={}){const _0x3665df=a90_0x487a,_0x4c4012={...DEFAULT_OPTIONS,..._0x58019b},_0xee3645=[];for(const _0x195e30 of _0x5bce60){_0xee3645[_0x3665df(0xa0)]({'name':_0x195e30[_0x3665df(0x97)],'icon':_0x4c4012[_0x3665df(0x93)]?'📁':'','metadata':undefined});}for(const _0x2bd396 of _0x3538ef){const _0x400d56=_0x4c4012[_0x3665df(0x89)]&&_0x2bd396['population']!==undefined?a90_0x562759['dim']('\x20('+formatRows(_0x2bd396[_0x3665df(0x8f)])+')'):'';_0xee3645[_0x3665df(0xa0)]({'name':_0x2bd396['name'],'icon':_0x4c4012[_0x3665df(0x93)]?'🎯':'','metadata':_0x400d56});}_0xee3645['sort']((_0x188993,_0x2a9e66)=>_0x188993[_0x3665df(0x97)]['localeCompare'](_0x2a9e66[_0x3665df(0x97)]));if(_0xee3645[_0x3665df(0x9c)]===0x0)return _0x3665df(0x9b);const _0x36e7f3=_0xee3645[_0x3665df(0x9f)](_0x577119=>{const _0x3dcd40=_0x3665df,_0x4db981=_0x577119[_0x3dcd40(0x90)]?_0x577119[_0x3dcd40(0x90)]+'\x20':'',_0x32bd89=_0x577119[_0x3dcd40(0x8e)]||'';return''+_0x4db981+_0x577119[_0x3dcd40(0x97)]+_0x32bd89;});return _0x36e7f3[_0x3665df(0x85)]('\x0a');}
1
+ (function(_0x51e1a0,_0x364e8d){const _0x4ed0e0=a90_0x4a41,_0x2bc3f2=_0x51e1a0();while(!![]){try{const _0x7f6d93=parseInt(_0x4ed0e0(0x1bf))/0x1+-parseInt(_0x4ed0e0(0x1be))/0x2+parseInt(_0x4ed0e0(0x1b4))/0x3+-parseInt(_0x4ed0e0(0x1b7))/0x4*(parseInt(_0x4ed0e0(0x1cc))/0x5)+parseInt(_0x4ed0e0(0x1d0))/0x6*(parseInt(_0x4ed0e0(0x1b0))/0x7)+parseInt(_0x4ed0e0(0x1ae))/0x8*(parseInt(_0x4ed0e0(0x1bd))/0x9)+-parseInt(_0x4ed0e0(0x1ce))/0xa*(parseInt(_0x4ed0e0(0x1c9))/0xb);if(_0x7f6d93===_0x364e8d)break;else _0x2bc3f2['push'](_0x2bc3f2['shift']());}catch(_0x4dec9c){_0x2bc3f2['push'](_0x2bc3f2['shift']());}}}(a90_0x2a54,0xb19c0));function a90_0x2a54(){const _0x5b2981=['population','map','210195nyAxdo','1970556ESctFn','211027KtVDNV','join','name','showTreeLines','icon','segmentCount','segment','\x20\x20\x20','folderCount','\x20\x20\x20\x20','15466935djldjt','localeCompare','length','186715rYlWVT','🎯\x20','10tRFwct','(empty)','96xOGePM','type','392OBVxvz','metadata','626787WhMLtO','children','folder','├──\x20','2672754zmMEpH','push','\x20folder','60ZzxqME','showIcons','dim','sort'];a90_0x2a54=function(){return _0x5b2981;};return a90_0x2a54();}import{formatRows}from'./formatters.js';function a90_0x4a41(_0x264912,_0x55b528){const _0x2a54af=a90_0x2a54();return a90_0x4a41=function(_0x4a4128,_0x5e5de6){_0x4a4128=_0x4a4128-0x1ae;let _0x7041db=_0x2a54af[_0x4a4128];return _0x7041db;},a90_0x4a41(_0x264912,_0x55b528);}import a90_0x578692 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x5582cb,_0x391835={},_0x1402b5=0x0,_0x224caf=''){const _0x5e1fa5=a90_0x4a41,_0x3990dd={...DEFAULT_OPTIONS,..._0x391835},_0x1ec065=[],_0x5f4b46=[..._0x5582cb][_0x5e1fa5(0x1ba)]((_0x5326fd,_0x221fc8)=>_0x5326fd[_0x5e1fa5(0x1c1)][_0x5e1fa5(0x1ca)](_0x221fc8[_0x5e1fa5(0x1c1)]));for(let _0xf3f7eb=0x0;_0xf3f7eb<_0x5f4b46[_0x5e1fa5(0x1cb)];_0xf3f7eb++){const _0x472f3b=_0x5f4b46[_0xf3f7eb],_0x4070fa=_0xf3f7eb===_0x5f4b46['length']-0x1;let _0x404f16='';_0x1402b5>0x0&&(_0x404f16+=_0x224caf);_0x3990dd[_0x5e1fa5(0x1c2)]&&_0x1402b5>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)](_0x4070fa?'└──\x20':_0x5e1fa5(0x1b3)));_0x3990dd['showIcons']&&(_0x404f16+=_0x472f3b['type']===_0x5e1fa5(0x1b2)?'📁\x20':_0x5e1fa5(0x1cd));_0x404f16+=_0x472f3b[_0x5e1fa5(0x1c1)];if(_0x3990dd['showMetadata']){if(_0x472f3b[_0x5e1fa5(0x1d1)]===_0x5e1fa5(0x1b2)){const _0x3286db=[];_0x472f3b['metadata'][_0x5e1fa5(0x1c4)]&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]+'\x20segment'+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c4)]!==0x1?'s':'')),_0x472f3b['metadata']['folderCount']&&_0x3286db[_0x5e1fa5(0x1b5)](_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]+_0x5e1fa5(0x1b6)+(_0x472f3b[_0x5e1fa5(0x1af)][_0x5e1fa5(0x1c7)]!==0x1?'s':'')),_0x3286db[_0x5e1fa5(0x1cb)]>0x0&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+_0x3286db[_0x5e1fa5(0x1c0)](',\x20')+')'));}else _0x472f3b['type']===_0x5e1fa5(0x1c5)&&_0x472f3b['population']!==undefined&&(_0x404f16+=a90_0x578692[_0x5e1fa5(0x1b9)]('\x20('+formatRows(_0x472f3b[_0x5e1fa5(0x1bb)])+')'));}_0x1ec065[_0x5e1fa5(0x1b5)](_0x404f16);if(_0x472f3b[_0x5e1fa5(0x1b1)]&&_0x472f3b[_0x5e1fa5(0x1b1)]['length']>0x0){let _0x1349a9;if(_0x1402b5===0x0)_0x1349a9='';else _0x3990dd[_0x5e1fa5(0x1c2)]?_0x1349a9=_0x224caf+(_0x4070fa?_0x5e1fa5(0x1c8):a90_0x578692[_0x5e1fa5(0x1b9)]('│')+_0x5e1fa5(0x1c6)):_0x1349a9=_0x224caf+_0x3990dd['indent'];const _0x3f2537=formatTree(_0x472f3b[_0x5e1fa5(0x1b1)],_0x3990dd,_0x1402b5+0x1,_0x1349a9);_0x1ec065['push'](_0x3f2537);}}return _0x1ec065['join']('\x0a');}export function formatFlatList(_0xaa585e,_0x38a139,_0x34a4c8={}){const _0x59929e=a90_0x4a41,_0x14a12e={...DEFAULT_OPTIONS,..._0x34a4c8},_0x4d89db=[];for(const _0x5c2e80 of _0xaa585e){_0x4d89db[_0x59929e(0x1b5)]({'name':_0x5c2e80['name'],'icon':_0x14a12e['showIcons']?'📁':'','metadata':undefined});}for(const _0x33e24c of _0x38a139){const _0x18a4c7=_0x14a12e['showMetadata']&&_0x33e24c['population']!==undefined?a90_0x578692[_0x59929e(0x1b9)]('\x20('+formatRows(_0x33e24c[_0x59929e(0x1bb)])+')'):'';_0x4d89db[_0x59929e(0x1b5)]({'name':_0x33e24c[_0x59929e(0x1c1)],'icon':_0x14a12e[_0x59929e(0x1b8)]?'🎯':'','metadata':_0x18a4c7});}_0x4d89db['sort']((_0xc7eb46,_0xbe2ca6)=>_0xc7eb46[_0x59929e(0x1c1)]['localeCompare'](_0xbe2ca6[_0x59929e(0x1c1)]));if(_0x4d89db[_0x59929e(0x1cb)]===0x0)return _0x59929e(0x1cf);const _0x26093b=_0x4d89db[_0x59929e(0x1bc)](_0x5a9fef=>{const _0x317dd9=_0x59929e,_0x10e940=_0x5a9fef[_0x317dd9(0x1c3)]?_0x5a9fef[_0x317dd9(0x1c3)]+'\x20':'',_0x45bc44=_0x5a9fef[_0x317dd9(0x1af)]||'';return''+_0x10e940+_0x5a9fef['name']+_0x45bc44;});return _0x26093b[_0x59929e(0x1c0)]('\x0a');}
@@ -1 +1 @@
1
- const a91_0x36d9dd=a91_0x5b9f;(function(_0x5c71fc,_0x525074){const _0x23688e=a91_0x5b9f,_0x3caf89=_0x5c71fc();while(!![]){try{const _0x39b0e8=-parseInt(_0x23688e(0x1d6))/0x1+-parseInt(_0x23688e(0x1d3))/0x2+-parseInt(_0x23688e(0x1d5))/0x3*(parseInt(_0x23688e(0x1ce))/0x4)+-parseInt(_0x23688e(0x1cf))/0x5*(parseInt(_0x23688e(0x1c5))/0x6)+parseInt(_0x23688e(0x1d0))/0x7*(parseInt(_0x23688e(0x1d7))/0x8)+-parseInt(_0x23688e(0x1da))/0x9*(parseInt(_0x23688e(0x1bf))/0xa)+parseInt(_0x23688e(0x1c2))/0xb;if(_0x39b0e8===_0x525074)break;else _0x3caf89['push'](_0x3caf89['shift']());}catch(_0x1a6ae0){_0x3caf89['push'](_0x3caf89['shift']());}}}(a91_0x14cc,0xb479d));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';function a91_0x14cc(){const _0xfb0972=['error','dim','47357409deJidJ','utf-8','end','942tvZixe','write','green','currentVersion','Run:','HTTP\x20','latestVersion','stderr','updateAvailable','4itnsGL','37475lXmELj','277067DotiUk','yellow','statusCode','1891678IhVLVC','parse','2062689YGXTHX','89428VHMKqv','104VFbjJq','Request\x20timeout','now','54fHfueq','Invalid\x20version\x20format','lastCheck','gray','\x0aUpdate\x20available:\x20','isTTY','npm\x20install\x20-g\x20@treasuredata/tdx@latest','destroy','env','data','https://registry.npmjs.org/@treasuredata/tdx/latest','Update\x20available:','version','last_version_check','NO_COLOR','1968330QMeHGT'];a91_0x14cc=function(){return _0xfb0972;};return a91_0x14cc();}import{join}from'path';import{gt,valid}from'semver';function a91_0x5b9f(_0x120cd8,_0xb75b2f){const _0x14cc8e=a91_0x14cc();return a91_0x5b9f=function(_0x5b9f14,_0x57bc73){_0x5b9f14=_0x5b9f14-0x1bf;let _0x387fd8=_0x14cc8e[_0x5b9f14];return _0x387fd8;},a91_0x5b9f(_0x120cd8,_0xb75b2f);}import a91_0x9a4b0 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a91_0x36d9dd(0x1e4),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x319c18=a91_0x36d9dd,_0x478d40=getCacheDir();return join(_0x478d40,_0x319c18(0x1e7));}function readCache(){const _0x242917=a91_0x36d9dd;try{const _0x80b0b5=getCacheFilePath(),_0x4fc870=readFileSync(_0x80b0b5,_0x242917(0x1c3));return JSON[_0x242917(0x1d4)](_0x4fc870);}catch{return null;}}function writeCache(_0x4ff8cb){const _0x76a0d8=a91_0x36d9dd;try{const _0x6900b4=getCacheDir();mkdirSync(_0x6900b4,{'recursive':!![]});const _0x57141f={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x4ff8cb},_0x34d5e0=getCacheFilePath();writeFileSync(_0x34d5e0,JSON['stringify'](_0x57141f,null,0x2),_0x76a0d8(0x1c3));}catch{}}function isCacheValid(_0x1f7a5d){const _0x4ee28a=a91_0x36d9dd;if(!_0x1f7a5d)return![];const _0x1fa572=new Date(_0x1f7a5d[_0x4ee28a(0x1dc)])['getTime'](),_0x536a53=Date[_0x4ee28a(0x1d9)]();return _0x536a53-_0x1fa572<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4c5800,_0x227884)=>{const _0x5b3358=a91_0x5b9f,_0x287f8a=get(NPM_REGISTRY_URL,_0x3806ce=>{const _0x24487a=a91_0x5b9f;if(_0x3806ce[_0x24487a(0x1d2)]!==0xc8){clearTimeout(_0x3335e1),_0x227884(new Error(_0x24487a(0x1ca)+_0x3806ce[_0x24487a(0x1d2)]));return;}let _0x9e8ba9='';_0x3806ce['on'](_0x24487a(0x1e3),_0x2a4313=>{_0x9e8ba9+=_0x2a4313;}),_0x3806ce['on'](_0x24487a(0x1c4),()=>{const _0x215669=_0x24487a;clearTimeout(_0x3335e1);try{const _0x49b186=JSON[_0x215669(0x1d4)](_0x9e8ba9);if(!valid(_0x49b186[_0x215669(0x1e6)])){_0x227884(new Error(_0x215669(0x1db)));return;}_0x4c5800(_0x49b186[_0x215669(0x1e6)]);}catch(_0x5c94d9){_0x227884(_0x5c94d9);}});})['on'](_0x5b3358(0x1c0),_0x2de1e6=>{clearTimeout(_0x3335e1),_0x227884(_0x2de1e6);}),_0x3335e1=setTimeout(()=>{const _0x4bacb1=_0x5b3358;_0x287f8a[_0x4bacb1(0x1e1)](),_0x227884(new Error(_0x4bacb1(0x1d8)));},TIMEOUT_MS);});}export async function checkForUpdate(_0xa57bf5){const _0x430aa5=a91_0x36d9dd;try{const _0x165ab7=readCache();if(isCacheValid(_0x165ab7)){const _0x36914f=gt(_0x165ab7[_0x430aa5(0x1cb)],_0xa57bf5);return{'updateAvailable':_0x36914f,'currentVersion':_0xa57bf5,'latestVersion':_0x165ab7[_0x430aa5(0x1cb)]};}const _0x293854=await fetchLatestVersion();writeCache(_0x293854);const _0x424e9f=gt(_0x293854,_0xa57bf5);return{'updateAvailable':_0x424e9f,'currentVersion':_0xa57bf5,'latestVersion':_0x293854};}catch{return null;}}export function displayUpdateNotification(_0x26a243){const _0x57c776=a91_0x36d9dd;if(!_0x26a243[_0x57c776(0x1cd)])return;const _0x2139ff=process[_0x57c776(0x1cc)][_0x57c776(0x1df)]&&!process[_0x57c776(0x1e2)][_0x57c776(0x1e8)],_0xda1858=_0x2139ff?a91_0x9a4b0[_0x57c776(0x1dd)]('→'):'→',_0x300a5c=_0x2139ff?a91_0x9a4b0[_0x57c776(0x1c1)](_0x26a243['currentVersion']):_0x26a243[_0x57c776(0x1c8)],_0x1ee5bc=_0x2139ff?a91_0x9a4b0[_0x57c776(0x1c7)](_0x26a243[_0x57c776(0x1cb)]):_0x26a243[_0x57c776(0x1cb)],_0x438149=_0x2139ff?a91_0x9a4b0['cyan'](_0x57c776(0x1e0)):_0x57c776(0x1e0),_0x10d69d=_0x2139ff?'\x0a'+a91_0x9a4b0[_0x57c776(0x1d1)](_0x57c776(0x1e5))+'\x20'+_0x300a5c+'\x20'+_0xda1858+'\x20'+_0x1ee5bc+'\x0a'+a91_0x9a4b0[_0x57c776(0x1c1)](_0x57c776(0x1c9))+'\x20'+_0x438149+'\x0a':_0x57c776(0x1de)+_0x300a5c+'\x20'+_0xda1858+'\x20'+_0x1ee5bc+'\x0aRun:\x20'+_0x438149+'\x0a';process[_0x57c776(0x1cc)][_0x57c776(0x1c6)](_0x10d69d);}
1
+ const a91_0x6afa3b=a91_0x2197;function a91_0x4aa6(){const _0x19cbb4=['8749806yZZSHN','now','5aXpYbZ','getTime','statusCode','6pwMzjL','gray','1080557bGnRsO','\x0aUpdate\x20available:\x20','67330IvCQTm','toISOString','2077446YsGgIp','env','12119346XKSXeo','data','latestVersion','utf-8','3566584AFCEIY','Update\x20available:','currentVersion','66EFlEWs','cyan','npm\x20install\x20-g\x20@treasuredata/tdx@latest','isTTY','end','https://registry.npmjs.org/@treasuredata/tdx/latest','stderr','yellow','lastCheck','2vdAEHo','green','93364yixRMy','last_version_check','Run:','version','error','stringify','dim','updateAvailable','\x0aRun:\x20','NO_COLOR','parse'];a91_0x4aa6=function(){return _0x19cbb4;};return a91_0x4aa6();}(function(_0x2423ab,_0x450588){const _0x2f2197=a91_0x2197,_0x3bf1fa=_0x2423ab();while(!![]){try{const _0x39484a=-parseInt(_0x2f2197(0x193))/0x1*(-parseInt(_0x2f2197(0x17f))/0x2)+-parseInt(_0x2f2197(0x191))/0x3*(parseInt(_0x2f2197(0x181))/0x4)+-parseInt(_0x2f2197(0x18e))/0x5*(parseInt(_0x2f2197(0x18c))/0x6)+parseInt(_0x2f2197(0x197))/0x7+-parseInt(_0x2f2197(0x173))/0x8+parseInt(_0x2f2197(0x199))/0x9+parseInt(_0x2f2197(0x195))/0xa*(-parseInt(_0x2f2197(0x176))/0xb);if(_0x39484a===_0x450588)break;else _0x3bf1fa['push'](_0x3bf1fa['shift']());}catch(_0x55d4ea){_0x3bf1fa['push'](_0x3bf1fa['shift']());}}}(a91_0x4aa6,0xb2e35));function a91_0x2197(_0x40dfa7,_0x12fc36){const _0x4aa6de=a91_0x4aa6();return a91_0x2197=function(_0x2197ed,_0x18c6e0){_0x2197ed=_0x2197ed-0x171;let _0x2f9cec=_0x4aa6de[_0x2197ed];return _0x2f9cec;},a91_0x2197(_0x40dfa7,_0x12fc36);}import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a91_0x4ce1fe from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a91_0x6afa3b(0x17b),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x43df61=a91_0x6afa3b,_0x2d58f5=getCacheDir();return join(_0x2d58f5,_0x43df61(0x182));}function readCache(){const _0x4e0084=a91_0x6afa3b;try{const _0xff3a56=getCacheFilePath(),_0x4684fd=readFileSync(_0xff3a56,_0x4e0084(0x172));return JSON[_0x4e0084(0x18b)](_0x4684fd);}catch{return null;}}function writeCache(_0x30b4e8){const _0x3adbf2=a91_0x6afa3b;try{const _0x3c5306=getCacheDir();mkdirSync(_0x3c5306,{'recursive':!![]});const _0x2e42f6={'lastCheck':new Date()[_0x3adbf2(0x196)](),'latestVersion':_0x30b4e8},_0x2266d1=getCacheFilePath();writeFileSync(_0x2266d1,JSON[_0x3adbf2(0x186)](_0x2e42f6,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x2d5b88){const _0x1411cc=a91_0x6afa3b;if(!_0x2d5b88)return![];const _0x11935a=new Date(_0x2d5b88[_0x1411cc(0x17e)])[_0x1411cc(0x18f)](),_0x4a9d2d=Date[_0x1411cc(0x18d)]();return _0x4a9d2d-_0x11935a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x1a7540,_0x4c6fe3)=>{const _0xb6292e=a91_0x2197,_0x52db33=get(NPM_REGISTRY_URL,_0x43dd89=>{const _0x3eb8ff=a91_0x2197;if(_0x43dd89[_0x3eb8ff(0x190)]!==0xc8){clearTimeout(_0x5b73bb),_0x4c6fe3(new Error('HTTP\x20'+_0x43dd89[_0x3eb8ff(0x190)]));return;}let _0x508238='';_0x43dd89['on'](_0x3eb8ff(0x19a),_0x3a6264=>{_0x508238+=_0x3a6264;}),_0x43dd89['on'](_0x3eb8ff(0x17a),()=>{const _0x2638bf=_0x3eb8ff;clearTimeout(_0x5b73bb);try{const _0x5f1d52=JSON[_0x2638bf(0x18b)](_0x508238);if(!valid(_0x5f1d52['version'])){_0x4c6fe3(new Error('Invalid\x20version\x20format'));return;}_0x1a7540(_0x5f1d52[_0x2638bf(0x184)]);}catch(_0x42451b){_0x4c6fe3(_0x42451b);}});})['on'](_0xb6292e(0x185),_0x241106=>{clearTimeout(_0x5b73bb),_0x4c6fe3(_0x241106);}),_0x5b73bb=setTimeout(()=>{_0x52db33['destroy'](),_0x4c6fe3(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x4d4e36){const _0x4518f3=a91_0x6afa3b;try{const _0x21d9a2=readCache();if(isCacheValid(_0x21d9a2)){const _0xab8756=gt(_0x21d9a2[_0x4518f3(0x171)],_0x4d4e36);return{'updateAvailable':_0xab8756,'currentVersion':_0x4d4e36,'latestVersion':_0x21d9a2['latestVersion']};}const _0x4c8d93=await fetchLatestVersion();writeCache(_0x4c8d93);const _0x5e2619=gt(_0x4c8d93,_0x4d4e36);return{'updateAvailable':_0x5e2619,'currentVersion':_0x4d4e36,'latestVersion':_0x4c8d93};}catch{return null;}}export function displayUpdateNotification(_0x19dfdf){const _0x55e1e5=a91_0x6afa3b;if(!_0x19dfdf[_0x55e1e5(0x188)])return;const _0x2c2d55=process[_0x55e1e5(0x17c)][_0x55e1e5(0x179)]&&!process[_0x55e1e5(0x198)][_0x55e1e5(0x18a)],_0x367e50=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x192)]('→'):'→',_0x32cdf2=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x187)](_0x19dfdf[_0x55e1e5(0x175)]):_0x19dfdf[_0x55e1e5(0x175)],_0x216620=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x180)](_0x19dfdf[_0x55e1e5(0x171)]):_0x19dfdf[_0x55e1e5(0x171)],_0x5dc3c6=_0x2c2d55?a91_0x4ce1fe[_0x55e1e5(0x177)](_0x55e1e5(0x178)):_0x55e1e5(0x178),_0x44060e=_0x2c2d55?'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x17d)](_0x55e1e5(0x174))+'\x20'+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+'\x0a'+a91_0x4ce1fe[_0x55e1e5(0x187)](_0x55e1e5(0x183))+'\x20'+_0x5dc3c6+'\x0a':_0x55e1e5(0x194)+_0x32cdf2+'\x20'+_0x367e50+'\x20'+_0x216620+_0x55e1e5(0x189)+_0x5dc3c6+'\x0a';process['stderr']['write'](_0x44060e);}
@@ -1 +1 @@
1
- const a92_0x5cb778=a92_0x46da;(function(_0x89fdce,_0x26c0b6){const _0x1fdaf8=a92_0x46da,_0x1fc0c=_0x89fdce();while(!![]){try{const _0x35827e=-parseInt(_0x1fdaf8(0xae))/0x1*(parseInt(_0x1fdaf8(0xaf))/0x2)+parseInt(_0x1fdaf8(0xb5))/0x3+parseInt(_0x1fdaf8(0xad))/0x4+parseInt(_0x1fdaf8(0xb6))/0x5*(parseInt(_0x1fdaf8(0xb4))/0x6)+parseInt(_0x1fdaf8(0xab))/0x7+-parseInt(_0x1fdaf8(0xb3))/0x8*(parseInt(_0x1fdaf8(0xb0))/0x9)+-parseInt(_0x1fdaf8(0xac))/0xa;if(_0x35827e===_0x26c0b6)break;else _0x1fc0c['push'](_0x1fc0c['shift']());}catch(_0x3bd1eb){_0x1fc0c['push'](_0x1fc0c['shift']());}}}(a92_0x316f,0x98f10));function a92_0x46da(_0xbf9964,_0x5f4abd){const _0x316f7f=a92_0x316f();return a92_0x46da=function(_0x46dab7,_0x165d8f){_0x46dab7=_0x46dab7-0xab;let _0x250fdc=_0x316f7f[_0x46dab7];return _0x250fdc;},a92_0x46da(_0xbf9964,_0x5f4abd);}export const WORKFLOW_FILE_EXTENSION=a92_0x5cb778(0xb1);export function shouldIncludeInArchive(_0x2d8f6d){const _0xa71e76=a92_0x5cb778;if(_0x2d8f6d===_0xa71e76(0xb2))return!![];if(_0x2d8f6d['startsWith']('.'))return![];return!![];}function a92_0x316f(){const _0x9aebb7=['7884zfDrRt','.dig','.digdag','1968meOLDB','18SuUssf','1721880PLyYGd','312955LjAbEA','6212472TfrOwp','6756930olKsGo','2794624iczELj','830248qLRaXM','2uQRfCS'];a92_0x316f=function(){return _0x9aebb7;};return a92_0x316f();}
1
+ function a92_0x7f63(_0x19dad2,_0x3ae822){const _0x1d1956=a92_0x1d19();return a92_0x7f63=function(_0x7f6388,_0xed2c5d){_0x7f6388=_0x7f6388-0x76;let _0x74c66d=_0x1d1956[_0x7f6388];return _0x74c66d;},a92_0x7f63(_0x19dad2,_0x3ae822);}const a92_0x5e88db=a92_0x7f63;(function(_0x12a2d1,_0x1744ca){const _0x4e0a95=a92_0x7f63,_0x31e687=_0x12a2d1();while(!![]){try{const _0x4dd42d=-parseInt(_0x4e0a95(0x7e))/0x1+-parseInt(_0x4e0a95(0x83))/0x2+parseInt(_0x4e0a95(0x78))/0x3*(-parseInt(_0x4e0a95(0x80))/0x4)+-parseInt(_0x4e0a95(0x76))/0x5*(parseInt(_0x4e0a95(0x7c))/0x6)+-parseInt(_0x4e0a95(0x82))/0x7*(-parseInt(_0x4e0a95(0x77))/0x8)+parseInt(_0x4e0a95(0x79))/0x9+-parseInt(_0x4e0a95(0x81))/0xa*(-parseInt(_0x4e0a95(0x7b))/0xb);if(_0x4dd42d===_0x1744ca)break;else _0x31e687['push'](_0x31e687['shift']());}catch(_0x5e014b){_0x31e687['push'](_0x31e687['shift']());}}}(a92_0x1d19,0x972e5));export const WORKFLOW_FILE_EXTENSION=a92_0x5e88db(0x7d);export function shouldIncludeInArchive(_0x46691b){const _0x4abb57=a92_0x5e88db;if(_0x46691b===_0x4abb57(0x7a))return!![];if(_0x46691b[_0x4abb57(0x7f)]('.'))return![];return!![];}function a92_0x1d19(){const _0x213f41=['104jQGMab','15IevqEk','9350163EqmIIp','.digdag','46354TCHrBB','54JNFwxz','.dig','649090YyKSFz','startsWith','323740mfgaho','290YGWPvZ','534583HckIFa','870160RrCpvt','25460YnaWQu'];a92_0x1d19=function(){return _0x213f41;};return a92_0x1d19();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {