@treasuredata/tdx 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/build-info.json +2 -2
  2. package/dist/cli.js +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.d.ts +1 -0
  6. package/dist/client/llm-client.d.ts.map +1 -1
  7. package/dist/client/llm-client.js +1 -1
  8. package/dist/client/llm-client.js.map +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-client.js +1 -1
  11. package/dist/client/trino-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/api-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/context-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/job-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/llm-proxy.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profiles-command.js +1 -1
  26. package/dist/commands/query-command.js +1 -1
  27. package/dist/commands/segment-command.js +1 -1
  28. package/dist/commands/segment-create-command.js +1 -1
  29. package/dist/commands/segment-fields-command.js +1 -1
  30. package/dist/commands/segment-pwd-command.js +1 -1
  31. package/dist/commands/segment-update-command.js +1 -1
  32. package/dist/commands/segment-use-command.js +1 -1
  33. package/dist/commands/segments.js +1 -1
  34. package/dist/commands/show.js +1 -1
  35. package/dist/commands/tables.js +1 -1
  36. package/dist/commands/use-command.js +1 -1
  37. package/dist/commands/workflow-command.js +1 -1
  38. package/dist/core/auth.js +1 -1
  39. package/dist/core/config.js +1 -1
  40. package/dist/core/global-context.js +1 -1
  41. package/dist/core/profile.js +1 -1
  42. package/dist/core/project-config.js +1 -1
  43. package/dist/core/session.js +1 -1
  44. package/dist/index.js +1 -1
  45. package/dist/proxy/anthropic-adapter.d.ts +1 -1
  46. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  47. package/dist/proxy/anthropic-adapter.js +1 -1
  48. package/dist/proxy/anthropic-adapter.js.map +1 -1
  49. package/dist/proxy/server.d.ts.map +1 -1
  50. package/dist/proxy/server.js +1 -1
  51. package/dist/proxy/server.js.map +1 -1
  52. package/dist/proxy/session-cache.js +1 -1
  53. package/dist/sdk/api.js +1 -1
  54. package/dist/sdk/database.js +1 -1
  55. package/dist/sdk/errors.js +1 -1
  56. package/dist/sdk/index.js +1 -1
  57. package/dist/sdk/job.js +1 -1
  58. package/dist/sdk/llm.js +1 -1
  59. package/dist/sdk/query.js +1 -1
  60. package/dist/sdk/segment.js +1 -1
  61. package/dist/sdk/table.js +1 -1
  62. package/dist/sdk/workflow.js +1 -1
  63. package/dist/types/anthropic.d.ts +3 -2
  64. package/dist/types/anthropic.d.ts.map +1 -1
  65. package/dist/types/endpoints.js +1 -1
  66. package/dist/types/index.js +1 -1
  67. package/dist/utils/agent-ref-parser.js +1 -1
  68. package/dist/utils/chat-cache.js +1 -1
  69. package/dist/utils/colors.js +1 -1
  70. package/dist/utils/command-output.js +1 -1
  71. package/dist/utils/constants.js +1 -1
  72. package/dist/utils/file-permissions.js +1 -1
  73. package/dist/utils/format-detector.js +1 -1
  74. package/dist/utils/formatters.js +1 -1
  75. package/dist/utils/json-loader.js +1 -1
  76. package/dist/utils/model-aliases.js +1 -1
  77. package/dist/utils/option-validation.js +1 -1
  78. package/dist/utils/port.js +1 -1
  79. package/dist/utils/process.js +1 -1
  80. package/dist/utils/prompt.js +1 -1
  81. package/dist/utils/segment-path-parser.js +1 -1
  82. package/dist/utils/segment-ref-parser.js +1 -1
  83. package/dist/utils/spinner.js +1 -1
  84. package/dist/utils/sql-parser.js +1 -1
  85. package/dist/utils/sse-parser.js +1 -1
  86. package/dist/utils/string-utils.js +1 -1
  87. package/dist/utils/table-ref-parser.js +1 -1
  88. package/dist/utils/tdx-logger.js +1 -1
  89. package/dist/utils/tree-formatter.js +1 -1
  90. package/dist/utils/version-check.js +1 -1
  91. package/dist/utils/workflow-utils.js +1 -1
  92. package/package.json +1 -1
@@ -1 +1 @@
1
- function a67_0x3b6b(){const _0x14461b=['287xxPWOa','626298uYOnPq','message','code','utf-8','Failed\x20to\x20load\x20JSON:\x20','299272iIZeLG','8airIbg','File\x20not\x20found:\x20','\x27:\x20','190cIEuly','NOT_FOUND','ENOENT','1888146bDUsqD','1130MGdJuW','parse','54681lcxfuZ','EACCES','335790dxYTkx','PERMISSION_DENIED','INTERNAL','772ZncURT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','41970ZopTfu','INVALID_ARGUMENT'];a67_0x3b6b=function(){return _0x14461b;};return a67_0x3b6b();}(function(_0x399103,_0x1ffc82){const _0x172935=a67_0x2905,_0x5919c9=_0x399103();while(!![]){try{const _0x336a60=-parseInt(_0x172935(0x132))/0x1*(parseInt(_0x172935(0x12e))/0x2)+parseInt(_0x172935(0x133))/0x3+-parseInt(_0x172935(0x138))/0x4+parseInt(_0x172935(0x13c))/0x5*(-parseInt(_0x172935(0x130))/0x6)+parseInt(_0x172935(0x12b))/0x7+-parseInt(_0x172935(0x139))/0x8*(parseInt(_0x172935(0x13f))/0x9)+-parseInt(_0x172935(0x140))/0xa*(-parseInt(_0x172935(0x129))/0xb);if(_0x336a60===_0x1ffc82)break;else _0x5919c9['push'](_0x5919c9['shift']());}catch(_0x1e7768){_0x5919c9['push'](_0x5919c9['shift']());}}}(a67_0x3b6b,0x26647));import{readFile}from'fs/promises';function a67_0x2905(_0x2e3b99,_0x21b48e){const _0x3b6bdd=a67_0x3b6b();return a67_0x2905=function(_0x290559,_0x4a36bc){_0x290559=_0x290559-0x129;let _0x1fe970=_0x3b6bdd[_0x290559];return _0x1fe970;},a67_0x2905(_0x2e3b99,_0x21b48e);}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x25e261,_0x3b0889){const _0x145da9=a67_0x2905;try{if(_0x3b0889){const _0x402f2e=await readFile(_0x25e261,_0x145da9(0x136));try{return JSON[_0x145da9(0x141)](_0x402f2e);}catch(_0x4de53e){throw new SDKError(ErrorCode[_0x145da9(0x131)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x25e261+_0x145da9(0x13b)+(_0x4de53e instanceof Error?_0x4de53e[_0x145da9(0x134)]:String(_0x4de53e)));}}else try{return JSON[_0x145da9(0x141)](_0x25e261);}catch(_0x507d3d){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x507d3d instanceof Error?_0x507d3d[_0x145da9(0x134)]:String(_0x507d3d)));}}catch(_0x5c64fa){if(_0x5c64fa instanceof SDKError)throw _0x5c64fa;if(_0x5c64fa instanceof Error&&'code'in _0x5c64fa){const _0x353419=_0x5c64fa;if(_0x353419[_0x145da9(0x135)]===_0x145da9(0x13e))throw new SDKError(ErrorCode[_0x145da9(0x13d)],_0x145da9(0x13a)+_0x25e261);else{if(_0x353419[_0x145da9(0x135)]===_0x145da9(0x12a))throw new SDKError(ErrorCode[_0x145da9(0x12c)],'Permission\x20denied\x20reading\x20file:\x20'+_0x25e261);}}throw new SDKError(ErrorCode[_0x145da9(0x12d)],_0x145da9(0x137)+(_0x5c64fa instanceof Error?_0x5c64fa[_0x145da9(0x134)]:String(_0x5c64fa)));}}export async function loadJSONFromOptions(_0x3692cf,_0x2014de){const _0x523064=a67_0x2905;if(_0x3692cf&&_0x2014de)throw new SDKError(ErrorCode[_0x523064(0x131)],_0x523064(0x12f));if(_0x3692cf)return await loadJSON(_0x3692cf,![]);if(_0x2014de)return await loadJSON(_0x2014de,!![]);return undefined;}
1
+ (function(_0x1a952e,_0x3b1881){const _0x459369=a67_0x55e4,_0x477a55=_0x1a952e();while(!![]){try{const _0xaaedbc=parseInt(_0x459369(0x7b))/0x1*(-parseInt(_0x459369(0x7f))/0x2)+-parseInt(_0x459369(0x74))/0x3+-parseInt(_0x459369(0x71))/0x4+parseInt(_0x459369(0x6d))/0x5*(parseInt(_0x459369(0x81))/0x6)+parseInt(_0x459369(0x80))/0x7+-parseInt(_0x459369(0x7a))/0x8+parseInt(_0x459369(0x7e))/0x9;if(_0xaaedbc===_0x3b1881)break;else _0x477a55['push'](_0x477a55['shift']());}catch(_0x5b1fe8){_0x477a55['push'](_0x477a55['shift']());}}}(a67_0x3e5c,0x1e467));import{readFile}from'fs/promises';function a67_0x3e5c(){const _0x5e4384=['INTERNAL','Failed\x20to\x20load\x20JSON:\x20','Permission\x20denied\x20reading\x20file:\x20','565RePMBU','File\x20not\x20found:\x20','Invalid\x20JSON\x20string:\x20','NOT_FOUND','337392hphWKu','Invalid\x20JSON\x20in\x20file\x20\x27','ENOENT','499554AwtLwc','code','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','EACCES','1059928lXKzwh','165343KJKJXE','message','parse','4096242gQrrXb','2NendQj','709835mPCRFK','6168XCdQbY'];a67_0x3e5c=function(){return _0x5e4384;};return a67_0x3e5c();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x203435,_0x4974fa){const _0x4acd60=a67_0x55e4;try{if(_0x4974fa){const _0x58cea6=await readFile(_0x203435,_0x4acd60(0x76));try{return JSON[_0x4acd60(0x7d)](_0x58cea6);}catch(_0x5a545b){throw new SDKError(ErrorCode[_0x4acd60(0x78)],_0x4acd60(0x72)+_0x203435+'\x27:\x20'+(_0x5a545b instanceof Error?_0x5a545b['message']:String(_0x5a545b)));}}else try{return JSON[_0x4acd60(0x7d)](_0x203435);}catch(_0x3cbb16){throw new SDKError(ErrorCode[_0x4acd60(0x78)],_0x4acd60(0x6f)+(_0x3cbb16 instanceof Error?_0x3cbb16[_0x4acd60(0x7c)]:String(_0x3cbb16)));}}catch(_0x5ee554){if(_0x5ee554 instanceof SDKError)throw _0x5ee554;if(_0x5ee554 instanceof Error&&_0x4acd60(0x75)in _0x5ee554){const _0x457d78=_0x5ee554;if(_0x457d78['code']===_0x4acd60(0x73))throw new SDKError(ErrorCode[_0x4acd60(0x70)],_0x4acd60(0x6e)+_0x203435);else{if(_0x457d78['code']===_0x4acd60(0x79))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x4acd60(0x6c)+_0x203435);}}throw new SDKError(ErrorCode[_0x4acd60(0x6a)],_0x4acd60(0x6b)+(_0x5ee554 instanceof Error?_0x5ee554[_0x4acd60(0x7c)]:String(_0x5ee554)));}}function a67_0x55e4(_0x5e2933,_0x22d5cf){const _0x3e5ce0=a67_0x3e5c();return a67_0x55e4=function(_0x55e4c7,_0x367719){_0x55e4c7=_0x55e4c7-0x6a;let _0x206df7=_0x3e5ce0[_0x55e4c7];return _0x206df7;},a67_0x55e4(_0x5e2933,_0x22d5cf);}export async function loadJSONFromOptions(_0x5f37bb,_0x381ac5){const _0x340ae4=a67_0x55e4;if(_0x5f37bb&&_0x381ac5)throw new SDKError(ErrorCode[_0x340ae4(0x78)],_0x340ae4(0x77));if(_0x5f37bb)return await loadJSON(_0x5f37bb,![]);if(_0x381ac5)return await loadJSON(_0x381ac5,!![]);return undefined;}
@@ -1 +1 @@
1
- const a68_0x480721=a68_0x4225;(function(_0x4cc833,_0x211398){const _0x18449a=a68_0x4225,_0x113ba3=_0x4cc833();while(!![]){try{const _0x5a423c=-parseInt(_0x18449a(0x129))/0x1+-parseInt(_0x18449a(0x123))/0x2+-parseInt(_0x18449a(0x12b))/0x3*(-parseInt(_0x18449a(0x12a))/0x4)+parseInt(_0x18449a(0x126))/0x5*(-parseInt(_0x18449a(0x12c))/0x6)+parseInt(_0x18449a(0x122))/0x7+-parseInt(_0x18449a(0x121))/0x8*(-parseInt(_0x18449a(0x124))/0x9)+parseInt(_0x18449a(0x128))/0xa;if(_0x5a423c===_0x211398)break;else _0x113ba3['push'](_0x113ba3['shift']());}catch(_0x353620){_0x113ba3['push'](_0x113ba3['shift']());}}}(a68_0x3526,0x88b2d));const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a68_0x480721(0x125)};export function extractModelAlias(_0x29c62b){const _0x5b2115=a68_0x480721,_0x1d8848=_0x29c62b[_0x5b2115(0x127)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x1d8848)return _0x1d8848[0x1][_0x5b2115(0x12d)]();return _0x29c62b;}export function resolveModelAlias(_0x41b356){const _0x48c71a=a68_0x480721;return MODEL_ALIASES[_0x41b356[_0x48c71a(0x12d)]()]||_0x41b356;}function a68_0x4225(_0x351a8d,_0x445064){const _0x352678=a68_0x3526();return a68_0x4225=function(_0x422516,_0x2b87ba){_0x422516=_0x422516-0x121;let _0x5318d1=_0x352678[_0x422516];return _0x5318d1;},a68_0x4225(_0x351a8d,_0x445064);}export function getModelAliases(){return{...MODEL_ALIASES};}function a68_0x3526(){const _0x1f4a80=['toLowerCase','392944fMNqRx','6253282kmgwSp','1807914qTQBIR','9JrYmNE','claude-4.5-sonnet','120srWGsW','match','16458050DhavAe','1020143PTcGcg','24MNNBuy','488496xixogv','270306EZngOJ'];a68_0x3526=function(){return _0x1f4a80;};return a68_0x3526();}
1
+ const a68_0xc9e844=a68_0x289f;(function(_0xb93442,_0x3f0e61){const _0x545e43=a68_0x289f,_0x59692d=_0xb93442();while(!![]){try{const _0x352c26=parseInt(_0x545e43(0xd6))/0x1+-parseInt(_0x545e43(0xd3))/0x2+parseInt(_0x545e43(0xd1))/0x3*(-parseInt(_0x545e43(0xcf))/0x4)+-parseInt(_0x545e43(0xca))/0x5*(parseInt(_0x545e43(0xd0))/0x6)+-parseInt(_0x545e43(0xce))/0x7*(parseInt(_0x545e43(0xd5))/0x8)+parseInt(_0x545e43(0xcd))/0x9+parseInt(_0x545e43(0xd4))/0xa;if(_0x352c26===_0x3f0e61)break;else _0x59692d['push'](_0x59692d['shift']());}catch(_0x3f4700){_0x59692d['push'](_0x59692d['shift']());}}}(a68_0x1b0e,0xe0e97));const MODEL_ALIASES={'haiku':a68_0xc9e844(0xcb),'sonnet':a68_0xc9e844(0xcc)};function a68_0x1b0e(){const _0x9f690b=['match','15wumEyK','claude-4.5-haiku','claude-4.5-sonnet','6181083IpHcmf','35AFrgTa','26656eBsFyb','1807710bLVWjj','759mcJGjU','toLowerCase','2402070GFemBD','41512310lBCMyq','851432BaPEej','406248HnskqH'];a68_0x1b0e=function(){return _0x9f690b;};return a68_0x1b0e();}export function extractModelAlias(_0x1d8522){const _0x2ebafe=a68_0xc9e844,_0x41ef5b=_0x1d8522[_0x2ebafe(0xc9)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x41ef5b)return _0x41ef5b[0x1][_0x2ebafe(0xd2)]();return _0x1d8522;}export function resolveModelAlias(_0x29858b){const _0x33e20e=a68_0xc9e844;return MODEL_ALIASES[_0x29858b[_0x33e20e(0xd2)]()]||_0x29858b;}function a68_0x289f(_0x3724af,_0xbe65b5){const _0x1b0e70=a68_0x1b0e();return a68_0x289f=function(_0x289f50,_0xdb1fbc){_0x289f50=_0x289f50-0xc9;let _0x3fef17=_0x1b0e70[_0x289f50];return _0x3fef17;},a68_0x289f(_0x3724af,_0xbe65b5);}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0xabd6d1,_0x5b2ad5){const _0x474d25=a69_0x240a,_0x5c4d13=_0xabd6d1();while(!![]){try{const _0x5bbe0e=parseInt(_0x474d25(0xda))/0x1+parseInt(_0x474d25(0xe0))/0x2*(parseInt(_0x474d25(0xe6))/0x3)+-parseInt(_0x474d25(0xea))/0x4*(-parseInt(_0x474d25(0xde))/0x5)+-parseInt(_0x474d25(0xe4))/0x6*(-parseInt(_0x474d25(0xe1))/0x7)+-parseInt(_0x474d25(0xdc))/0x8+parseInt(_0x474d25(0xdb))/0x9+-parseInt(_0x474d25(0xe9))/0xa*(parseInt(_0x474d25(0xe3))/0xb);if(_0x5bbe0e===_0x5b2ad5)break;else _0x5c4d13['push'](_0x5c4d13['shift']());}catch(_0x208445){_0x5c4d13['push'](_0x5c4d13['shift']());}}}(a69_0x3bdb,0xa3501));function a69_0x3bdb(){const _0x44015e=['1963880QCDTWd','isInteger','5DWCmmM','.\x20Must\x20be\x20a\x20number.','46giTpEN','21XZukJJ','Invalid\x20limit\x20value:\x20','22epubKJ','2635368BVGmMn','Invalid\x20timeout\x20value:\x20','102AjFSZV','.\x20Must\x20be\x20a\x20positive\x20number.','number','10085170dmWZlD','1146916fzTgAY','.\x20Must\x20be\x20an\x20integer.','1294243znXcdH','288090EqTZLz'];a69_0x3bdb=function(){return _0x44015e;};return a69_0x3bdb();}function a69_0x240a(_0x1335a5,_0x220569){const _0x3bdbf3=a69_0x3bdb();return a69_0x240a=function(_0x240a29,_0xadd990){_0x240a29=_0x240a29-0xd9;let _0x519df9=_0x3bdbf3[_0x240a29];return _0x519df9;},a69_0x240a(_0x1335a5,_0x220569);}export function validateLimitOption(_0x126655){const _0x426185=a69_0x240a;if(!Number[_0x426185(0xdd)](_0x126655))return{'isValid':![],'error':_0x426185(0xe2)+_0x126655+_0x426185(0xd9)};if(_0x126655<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x126655+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x126655};}export function validateTimeoutOption(_0x1ac8b3,_0x16bcc4=0x1e){const _0x253689=a69_0x240a;if(_0x1ac8b3===undefined)return{'isValid':!![],'value':_0x16bcc4};const _0x8d80cd=typeof _0x1ac8b3===_0x253689(0xe8)?_0x1ac8b3:parseFloat(_0x1ac8b3);if(isNaN(_0x8d80cd))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1ac8b3+_0x253689(0xdf)};if(_0x8d80cd<=0x0)return{'isValid':![],'error':_0x253689(0xe5)+_0x8d80cd+_0x253689(0xe7)};return{'isValid':!![],'value':_0x8d80cd};}
1
+ function a69_0x3c3e(_0x1424a0,_0x287b29){const _0x5499ac=a69_0x5499();return a69_0x3c3e=function(_0x3c3e2f,_0x31b496){_0x3c3e2f=_0x3c3e2f-0x16b;let _0x13a415=_0x5499ac[_0x3c3e2f];return _0x13a415;},a69_0x3c3e(_0x1424a0,_0x287b29);}(function(_0x29849e,_0x183ce6){const _0x189a5d=a69_0x3c3e,_0x36fb27=_0x29849e();while(!![]){try{const _0x4b0337=-parseInt(_0x189a5d(0x170))/0x1+-parseInt(_0x189a5d(0x173))/0x2*(parseInt(_0x189a5d(0x171))/0x3)+-parseInt(_0x189a5d(0x174))/0x4*(-parseInt(_0x189a5d(0x16f))/0x5)+-parseInt(_0x189a5d(0x178))/0x6*(-parseInt(_0x189a5d(0x175))/0x7)+-parseInt(_0x189a5d(0x16b))/0x8+parseInt(_0x189a5d(0x17b))/0x9+-parseInt(_0x189a5d(0x16d))/0xa*(-parseInt(_0x189a5d(0x16c))/0xb);if(_0x4b0337===_0x183ce6)break;else _0x36fb27['push'](_0x36fb27['shift']());}catch(_0x1320ee){_0x36fb27['push'](_0x36fb27['shift']());}}}(a69_0x5499,0x970ee));function a69_0x5499(){const _0x483111=['13620uFoZCy','100646dSiUXs','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','516tmDVKE','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20positive\x20number.','6653862Sepiby','5151512HsmGtr','11wnxTmC','2056690PnPiYp','number','675gdEVUO','858943lGsFwF','42126MUGuvk','.\x20Must\x20be\x20a\x20number.','74AnxMtY'];a69_0x5499=function(){return _0x483111;};return a69_0x5499();}export function validateLimitOption(_0x5f163f){const _0x537bdd=a69_0x3c3e;if(!Number['isInteger'](_0x5f163f))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5f163f+_0x537bdd(0x177)};if(_0x5f163f<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5f163f+_0x537bdd(0x179)};return{'isValid':!![],'value':_0x5f163f};}export function validateTimeoutOption(_0x52772c,_0x22a230=0x1e){const _0x468716=a69_0x3c3e;if(_0x52772c===undefined)return{'isValid':!![],'value':_0x22a230};const _0x3b2ce2=typeof _0x52772c===_0x468716(0x16e)?_0x52772c:parseFloat(_0x52772c);if(isNaN(_0x3b2ce2))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x52772c+_0x468716(0x172)};if(_0x3b2ce2<=0x0)return{'isValid':![],'error':_0x468716(0x176)+_0x3b2ce2+_0x468716(0x17a)};return{'isValid':!![],'value':_0x3b2ce2};}
@@ -1 +1 @@
1
- (function(_0x1c7685,_0x4c6da8){const _0x5cb5c2=a70_0x750f,_0x4c1e7a=_0x1c7685();while(!![]){try{const _0x3c861f=-parseInt(_0x5cb5c2(0x106))/0x1+parseInt(_0x5cb5c2(0x111))/0x2*(parseInt(_0x5cb5c2(0x102))/0x3)+parseInt(_0x5cb5c2(0x10b))/0x4+-parseInt(_0x5cb5c2(0x10c))/0x5*(-parseInt(_0x5cb5c2(0x10d))/0x6)+parseInt(_0x5cb5c2(0x107))/0x7*(-parseInt(_0x5cb5c2(0x10a))/0x8)+-parseInt(_0x5cb5c2(0x105))/0x9*(parseInt(_0x5cb5c2(0x10f))/0xa)+parseInt(_0x5cb5c2(0x109))/0xb*(-parseInt(_0x5cb5c2(0x108))/0xc);if(_0x3c861f===_0x4c6da8)break;else _0x4c1e7a['push'](_0x4c1e7a['shift']());}catch(_0x611ee6){_0x4c1e7a['push'](_0x4c1e7a['shift']());}}}(a70_0xdd43,0x2e0e8));import{createServer}from'node:net';function a70_0xdd43(){const _0x54ffdf=['listen','2xXpkaE','close','933159Izwgjf','listening','No\x20available\x20port\x20found\x20between\x20','9biZDTK','25475fuLSiH','133QRHnPl','516iSBKoo','42658dnpgRb','110056sAKEoF','887884tlbjCD','5MITHUy','1898934aPQbHo','\x20and\x20','2072530JnzEiR'];a70_0xdd43=function(){return _0x54ffdf;};return a70_0xdd43();}function a70_0x750f(_0x2c205d,_0xdeb6e9){const _0xdd4310=a70_0xdd43();return a70_0x750f=function(_0x750f92,_0x22c120){_0x750f92=_0x750f92-0x101;let _0x4ec427=_0xdd4310[_0x750f92];return _0x4ec427;},a70_0x750f(_0x2c205d,_0xdeb6e9);}export async function isPortAvailable(_0x25236b){return new Promise(_0xab9b3f=>{const _0x3e5390=a70_0x750f,_0x408d75=createServer();_0x408d75['once']('error',_0x34c613=>{_0x34c613['code']==='EADDRINUSE'?_0xab9b3f(![]):_0xab9b3f(![]);}),_0x408d75['once'](_0x3e5390(0x103),()=>{const _0x3d6f51=_0x3e5390;_0x408d75[_0x3d6f51(0x101)](),_0xab9b3f(!![]);}),_0x408d75[_0x3e5390(0x110)](_0x25236b,'0.0.0.0');});}export async function findAvailablePort(_0x2ca7ff=0xfa0,_0x4c8492=0x64){const _0x60a7a0=a70_0x750f;for(let _0x1e6a3e=0x0;_0x1e6a3e<_0x4c8492;_0x1e6a3e++){const _0x6245dc=_0x2ca7ff+_0x1e6a3e;if(await isPortAvailable(_0x6245dc))return _0x6245dc;}throw new Error(_0x60a7a0(0x104)+_0x2ca7ff+_0x60a7a0(0x10e)+(_0x2ca7ff+_0x4c8492-0x1));}
1
+ function a70_0x29ba(){const _0x121047=['EADDRINUSE','\x20and\x20','10259253aXnUAu','listen','516105eOYvtE','0.0.0.0','code','122167wPRynh','once','2376591mfNBys','listening','12gZMhKs','1554772AzJTsf','1202463MuutuE','close','1135440tLFbIn','4NnDzfC'];a70_0x29ba=function(){return _0x121047;};return a70_0x29ba();}(function(_0x3bb59f,_0x44c393){const _0x1aea97=a70_0x572d,_0x174a06=_0x3bb59f();while(!![]){try{const _0x5157ae=-parseInt(_0x1aea97(0x184))/0x1*(parseInt(_0x1aea97(0x17c))/0x2)+parseInt(_0x1aea97(0x179))/0x3+-parseInt(_0x1aea97(0x178))/0x4+-parseInt(_0x1aea97(0x181))/0x5*(parseInt(_0x1aea97(0x177))/0x6)+-parseInt(_0x1aea97(0x175))/0x7+-parseInt(_0x1aea97(0x17b))/0x8+parseInt(_0x1aea97(0x17f))/0x9;if(_0x5157ae===_0x44c393)break;else _0x174a06['push'](_0x174a06['shift']());}catch(_0x18c76d){_0x174a06['push'](_0x174a06['shift']());}}}(a70_0x29ba,0x35ab2));function a70_0x572d(_0x21e261,_0x5e184d){const _0x29ba76=a70_0x29ba();return a70_0x572d=function(_0x572d6f,_0x38e9c2){_0x572d6f=_0x572d6f-0x174;let _0x1331ca=_0x29ba76[_0x572d6f];return _0x1331ca;},a70_0x572d(_0x21e261,_0x5e184d);}import{createServer}from'node:net';export async function isPortAvailable(_0x4b3258){return new Promise(_0x1b6ec6=>{const _0x5a6e21=a70_0x572d,_0x554c23=createServer();_0x554c23[_0x5a6e21(0x174)]('error',_0x2e4471=>{const _0x549795=_0x5a6e21;_0x2e4471[_0x549795(0x183)]===_0x549795(0x17d)?_0x1b6ec6(![]):_0x1b6ec6(![]);}),_0x554c23['once'](_0x5a6e21(0x176),()=>{const _0x18a15d=_0x5a6e21;_0x554c23[_0x18a15d(0x17a)](),_0x1b6ec6(!![]);}),_0x554c23[_0x5a6e21(0x180)](_0x4b3258,_0x5a6e21(0x182));});}export async function findAvailablePort(_0x24d94d=0xfa0,_0x2fece2=0x64){const _0x2cf609=a70_0x572d;for(let _0x235354=0x0;_0x235354<_0x2fece2;_0x235354++){const _0x535d6d=_0x24d94d+_0x235354;if(await isPortAvailable(_0x535d6d))return _0x535d6d;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x24d94d+_0x2cf609(0x17e)+(_0x24d94d+_0x2fece2-0x1));}
@@ -1 +1 @@
1
- const a71_0x5f2dec=a71_0x5f04;function a71_0x5f04(_0x237d41,_0x558eec){const _0x30b121=a71_0x30b1();return a71_0x5f04=function(_0x5f040d,_0x59544c){_0x5f040d=_0x5f040d-0xdc;let _0x2a834c=_0x30b121[_0x5f040d];return _0x2a834c;},a71_0x5f04(_0x237d41,_0x558eec);}(function(_0x5c5a80,_0x22dc43){const _0x1fa96e=a71_0x5f04,_0xf0db97=_0x5c5a80();while(!![]){try{const _0x364330=-parseInt(_0x1fa96e(0xe8))/0x1*(-parseInt(_0x1fa96e(0xe9))/0x2)+parseInt(_0x1fa96e(0xf0))/0x3*(parseInt(_0x1fa96e(0xe1))/0x4)+parseInt(_0x1fa96e(0xec))/0x5*(parseInt(_0x1fa96e(0xef))/0x6)+parseInt(_0x1fa96e(0xf5))/0x7+parseInt(_0x1fa96e(0xe5))/0x8+parseInt(_0x1fa96e(0xed))/0x9*(parseInt(_0x1fa96e(0xf3))/0xa)+-parseInt(_0x1fa96e(0x102))/0xb;if(_0x364330===_0x22dc43)break;else _0xf0db97['push'](_0xf0db97['shift']());}catch(_0x59850b){_0xf0db97['push'](_0xf0db97['shift']());}}}(a71_0x30b1,0xdfe4d));import{execSync}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh',a71_0x5f2dec(0x101),a71_0x5f2dec(0xeb),a71_0x5f2dec(0xea),'csh','dash',a71_0x5f2dec(0xe7),a71_0x5f2dec(0xfd),'nu',a71_0x5f2dec(0xf8),'elvish',a71_0x5f2dec(0xe2)]);function getProcessInfoWindows(_0x52622c){const _0x75a9ce=a71_0x5f2dec;try{const _0x58c163=execSync(_0x75a9ce(0xf9)+_0x52622c+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x75a9ce(0xfe),'windowsHide':!![]})[_0x75a9ce(0xdc)](),_0x296b69=_0x58c163[_0x75a9ce(0xf2)]('\x0a')['filter'](_0x1f0faf=>_0x1f0faf[_0x75a9ce(0xdc)]());if(_0x296b69[_0x75a9ce(0xe0)]<0x2)return null;const _0x571e20=_0x296b69[_0x296b69[_0x75a9ce(0xe0)]-0x1]['split'](',');if(_0x571e20['length']<0x3)return null;const _0x204dab=_0x571e20[0x1]?.['trim']()||'',_0x14f718=parseInt(_0x571e20[0x2]?.[_0x75a9ce(0xdc)]()||'0',0xa);if(isNaN(_0x14f718)||!_0x204dab)return null;return{'pid':_0x52622c,'ppid':_0x14f718,'comm':_0x204dab[_0x75a9ce(0x100)](/\.exe$/i,'')};}catch(_0x57a380){return process[_0x75a9ce(0xe3)][_0x75a9ce(0xf7)]&&console[_0x75a9ce(0xe4)](_0x75a9ce(0xee)+_0x52622c+_0x75a9ce(0xfc),_0x57a380),null;}}function getProcessInfoPosix(_0x4eed0b){const _0x21d57a=a71_0x5f2dec;try{const _0x1695df=execSync('ps\x20-p\x20'+_0x4eed0b+_0x21d57a(0xf6),{'encoding':_0x21d57a(0xfe)})['trim'](),[_0x51b3c1,..._0x1a3871]=_0x1695df[_0x21d57a(0xf2)](/\s+/),_0x536661=parseInt(_0x51b3c1,0xa),_0x440897=_0x1a3871[_0x21d57a(0xdf)]('\x20');if(isNaN(_0x536661))return null;return{'pid':_0x4eed0b,'ppid':_0x536661,'comm':_0x440897};}catch(_0x1345ea){return process[_0x21d57a(0xe3)][_0x21d57a(0xf7)]&&console[_0x21d57a(0xe4)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4eed0b+_0x21d57a(0xfb),_0x1345ea),null;}}function getProcessInfo(_0xe6c011){const _0x5b0cc1=a71_0x5f2dec;if(process[_0x5b0cc1(0xdd)]==='win32')return getProcessInfoWindows(_0xe6c011);return getProcessInfoPosix(_0xe6c011);}function isShell(_0x5d3ff3){const _0x442c04=a71_0x5f2dec,_0x3beda9=_0x5d3ff3['replace'](/^-/,'')[_0x442c04(0xf2)]('/')[_0x442c04(0xf4)]()||'';return SHELL_NAMES[_0x442c04(0xe6)](_0x3beda9['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x392c65=a71_0x5f2dec;let _0x5bb661=process[_0x392c65(0xf1)];const _0x460b00=0xa;let _0x51efe4=0x0;while(_0x51efe4<_0x460b00){const _0x3d78f3=getProcessInfo(_0x5bb661);if(!_0x3d78f3){process[_0x392c65(0xe3)][_0x392c65(0xf7)]&&console[_0x392c65(0xe4)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x5bb661+_0x392c65(0xfa));break;}if(isShell(_0x3d78f3[_0x392c65(0xde)]))return _0x3d78f3[_0x392c65(0xff)];if(_0x3d78f3[_0x392c65(0xf1)]===0x0||_0x3d78f3[_0x392c65(0xf1)]===0x1){if(isShell(_0x3d78f3[_0x392c65(0xde)]))return _0x3d78f3[_0x392c65(0xff)];break;}_0x5bb661=_0x3d78f3['ppid'],_0x51efe4++;}return process['env']['DEBUG']&&console[_0x392c65(0xe4)](_0x392c65(0x103)),process[_0x392c65(0xf1)];}function a71_0x30b1(){const _0x5e7479=['join','length','668zAQsfg','xonsh','env','error','11483976qwUEIE','has','pwsh','1141OZHLmU','414kEKafK','tcsh','ksh','5JUOCgI','14994deBhIw','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','7562154BNvfXJ','19374ZXqmVB','ppid','split','5180NgeEOu','pop','10299170ieSnxo','\x20-o\x20ppid=,comm=','DEBUG','ion','wmic\x20process\x20where\x20ProcessId=',',\x20using\x20fallback','\x20on\x20POSIX:','\x20on\x20Windows:','powershell','utf-8','pid','replace','fish','59705338JeFEvC','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','trim','platform','comm'];a71_0x30b1=function(){return _0x5e7479;};return a71_0x30b1();}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3003af){try{return process['kill'](_0x3003af,0x0),!![];}catch{return![];}}
1
+ const a71_0x506108=a71_0x4e4d;(function(_0xd1b3f9,_0x316089){const _0x40cb4a=a71_0x4e4d,_0x22e6c9=_0xd1b3f9();while(!![]){try{const _0x8d2390=parseInt(_0x40cb4a(0x8e))/0x1+parseInt(_0x40cb4a(0x94))/0x2+-parseInt(_0x40cb4a(0x8a))/0x3*(parseInt(_0x40cb4a(0x81))/0x4)+-parseInt(_0x40cb4a(0x70))/0x5*(parseInt(_0x40cb4a(0x92))/0x6)+parseInt(_0x40cb4a(0x87))/0x7*(-parseInt(_0x40cb4a(0x78))/0x8)+parseInt(_0x40cb4a(0x75))/0x9*(-parseInt(_0x40cb4a(0x7d))/0xa)+parseInt(_0x40cb4a(0x6e))/0xb;if(_0x8d2390===_0x316089)break;else _0x22e6c9['push'](_0x22e6c9['shift']());}catch(_0x6a9b87){_0x22e6c9['push'](_0x22e6c9['shift']());}}}(a71_0x3edc,0x201d3));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a71_0x506108(0x6c),a71_0x506108(0x7a),'sh',a71_0x506108(0x80),a71_0x506108(0x79),a71_0x506108(0x72),'csh','dash',a71_0x506108(0x6f),'powershell','nu',a71_0x506108(0x8c),a71_0x506108(0x85),a71_0x506108(0x8d)]);function getProcessInfoWindows(_0x31d0a6){const _0x1ed43c=a71_0x506108;try{const _0x570452=execSync(_0x1ed43c(0x8f)+_0x31d0a6+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x1ed43c(0x7e),'windowsHide':!![]})[_0x1ed43c(0x7f)](),_0x175909=_0x570452[_0x1ed43c(0x73)]('\x0a')[_0x1ed43c(0x7b)](_0x5bc49f=>_0x5bc49f[_0x1ed43c(0x7f)]());if(_0x175909[_0x1ed43c(0x89)]<0x2)return null;const _0x16e0c3=_0x175909[_0x175909[_0x1ed43c(0x89)]-0x1][_0x1ed43c(0x73)](',');if(_0x16e0c3[_0x1ed43c(0x89)]<0x3)return null;const _0x94ba9=_0x16e0c3[0x1]?.[_0x1ed43c(0x7f)]()||'',_0x4c8037=parseInt(_0x16e0c3[0x2]?.[_0x1ed43c(0x7f)]()||'0',0xa);if(isNaN(_0x4c8037)||!_0x94ba9)return null;return{'pid':_0x31d0a6,'ppid':_0x4c8037,'comm':_0x94ba9[_0x1ed43c(0x76)](/\.exe$/i,'')};}catch(_0x546178){return process['env'][_0x1ed43c(0x84)]&&console[_0x1ed43c(0x74)](_0x1ed43c(0x83)+_0x31d0a6+_0x1ed43c(0x90),_0x546178),null;}}function getProcessInfoPosix(_0x4a7c85){const _0x3142cd=a71_0x506108;try{const _0x5146da=execSync('ps\x20-p\x20'+_0x4a7c85+'\x20-o\x20ppid=,comm=',{'encoding':_0x3142cd(0x7e)})[_0x3142cd(0x7f)](),[_0x331e3f,..._0x1ce93c]=_0x5146da[_0x3142cd(0x73)](/\s+/),_0x1c5f0b=parseInt(_0x331e3f,0xa),_0x321271=_0x1ce93c[_0x3142cd(0x71)]('\x20');if(isNaN(_0x1c5f0b))return null;return{'pid':_0x4a7c85,'ppid':_0x1c5f0b,'comm':_0x321271};}catch(_0x126c80){return process[_0x3142cd(0x86)][_0x3142cd(0x84)]&&console['error'](_0x3142cd(0x83)+_0x4a7c85+_0x3142cd(0x6a),_0x126c80),null;}}function getProcessInfo(_0x549ecb){const _0x4cafe6=a71_0x506108;if(process[_0x4cafe6(0x93)]===_0x4cafe6(0x82))return getProcessInfoWindows(_0x549ecb);return getProcessInfoPosix(_0x549ecb);}function isShell(_0x21b048){const _0x51f43d=a71_0x506108,_0x5620c3=_0x21b048[_0x51f43d(0x76)](/^-/,'')['split']('/')[_0x51f43d(0x88)]()||'';return SHELL_NAMES[_0x51f43d(0x6d)](_0x5620c3['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x4fbb41=a71_0x506108;let _0x1dbddc=process[_0x4fbb41(0x77)];const _0x2604d8=0xa;let _0x3737d8=0x0;while(_0x3737d8<_0x2604d8){const _0x3fdfd5=getProcessInfo(_0x1dbddc);if(!_0x3fdfd5){process[_0x4fbb41(0x86)][_0x4fbb41(0x84)]&&console[_0x4fbb41(0x74)]('Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20'+_0x1dbddc+_0x4fbb41(0x7c));break;}if(isShell(_0x3fdfd5[_0x4fbb41(0x91)]))return _0x3fdfd5[_0x4fbb41(0x8b)];if(_0x3fdfd5[_0x4fbb41(0x77)]===0x0||_0x3fdfd5[_0x4fbb41(0x77)]===0x1){if(isShell(_0x3fdfd5[_0x4fbb41(0x91)]))return _0x3fdfd5['pid'];break;}_0x1dbddc=_0x3fdfd5[_0x4fbb41(0x77)],_0x3737d8++;}return process['env']['DEBUG']&&console['error'](_0x4fbb41(0x6b)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x48a5d9){try{return process['kill'](_0x48a5d9,0x0),!![];}catch{return![];}}function a71_0x4e4d(_0x328766,_0x53915a){const _0x3edc44=a71_0x3edc();return a71_0x4e4d=function(_0x4e4d96,_0xc3614){_0x4e4d96=_0x4e4d96-0x6a;let _0x27cbde=_0x3edc44[_0x4e4d96];return _0x27cbde;},a71_0x4e4d(_0x328766,_0x53915a);}function a71_0x3edc(){const _0x35947f=['31880tbDsYh','wmic\x20process\x20where\x20ProcessId=','\x20on\x20Windows:','comm','254418PuqbeX','platform','236466sDaxow','\x20on\x20POSIX:','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','bash','has','6291384GUoKdq','pwsh','15nTOulZ','join','tcsh','split','error','445761hthzDt','replace','ppid','61816zVkxwh','ksh','zsh','filter',',\x20using\x20fallback','10ZpirIm','utf-8','trim','fish','232324OaiLdx','win32','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','DEBUG','elvish','env','217HFMNhT','pop','length','9SSgvqY','pid','ion','xonsh'];a71_0x3edc=function(){return _0x35947f;};return a71_0x3edc();}
@@ -1 +1 @@
1
- (function(_0xc30db7,_0xfd336a){const _0x3350fd=a72_0x5118,_0x4896d5=_0xc30db7();while(!![]){try{const _0x9c0157=parseInt(_0x3350fd(0x1b3))/0x1*(parseInt(_0x3350fd(0x1ad))/0x2)+parseInt(_0x3350fd(0x1b7))/0x3*(-parseInt(_0x3350fd(0x1a7))/0x4)+-parseInt(_0x3350fd(0x1b8))/0x5*(parseInt(_0x3350fd(0x1b2))/0x6)+parseInt(_0x3350fd(0x1ab))/0x7+parseInt(_0x3350fd(0x1ac))/0x8+-parseInt(_0x3350fd(0x1a9))/0x9+-parseInt(_0x3350fd(0x1aa))/0xa*(-parseInt(_0x3350fd(0x1ae))/0xb);if(_0x9c0157===_0xfd336a)break;else _0x4896d5['push'](_0x4896d5['shift']());}catch(_0x55709e){_0x4896d5['push'](_0x4896d5['shift']());}}}(a72_0x561e,0x8f0f7));import*as a72_0x1eeb4a from'readline';function a72_0x5118(_0x48b8ea,_0x2523eb){const _0x561eb9=a72_0x561e();return a72_0x5118=function(_0x5118f6,_0x4f37b4){_0x5118f6=_0x5118f6-0x1a7;let _0x148be4=_0x561eb9[_0x5118f6];return _0x148be4;},a72_0x5118(_0x48b8ea,_0x2523eb);}export async function confirm(_0x420b4c){const _0x46b9fe=a72_0x5118,_0x4c18bc=a72_0x1eeb4a[_0x46b9fe(0x1af)]({'input':process[_0x46b9fe(0x1a8)],'output':process[_0x46b9fe(0x1b1)]});return new Promise(_0x5aecf6=>{const _0x411814=_0x46b9fe;_0x4c18bc['question'](_0x420b4c+_0x411814(0x1b5),_0x4b7624=>{const _0xa6534b=_0x411814;_0x4c18bc[_0xa6534b(0x1b6)](),_0x5aecf6(_0x4b7624[_0xa6534b(0x1b4)]()==='y'||_0x4b7624[_0xa6534b(0x1b4)]()===_0xa6534b(0x1b0));});});}function a72_0x561e(){const _0x22bf00=['9361629FCVQOJ','2722730sKsGGl','1845529cxEngF','6447864kAjNdq','16CakXBO','11XfHsle','createInterface','yes','stdout','402mZlhGg','103804ARLxXz','toLowerCase','\x20(y/N):\x20','close','3171iMNllG','31925cXEyMd','448MhjYfF','stdin'];a72_0x561e=function(){return _0x22bf00;};return a72_0x561e();}
1
+ (function(_0x2978a6,_0x1466ba){const _0x4aa64b=a72_0x4faf,_0x5acd59=_0x2978a6();while(!![]){try{const _0x5cadd9=-parseInt(_0x4aa64b(0x98))/0x1*(-parseInt(_0x4aa64b(0x9b))/0x2)+parseInt(_0x4aa64b(0x91))/0x3*(parseInt(_0x4aa64b(0x92))/0x4)+-parseInt(_0x4aa64b(0x9a))/0x5+parseInt(_0x4aa64b(0x99))/0x6+-parseInt(_0x4aa64b(0x97))/0x7+parseInt(_0x4aa64b(0x90))/0x8+parseInt(_0x4aa64b(0x96))/0x9*(-parseInt(_0x4aa64b(0x8e))/0xa);if(_0x5cadd9===_0x1466ba)break;else _0x5acd59['push'](_0x5acd59['shift']());}catch(_0x5a376a){_0x5acd59['push'](_0x5acd59['shift']());}}}(a72_0x3289,0xc9cec));function a72_0x4faf(_0xb44861,_0x2247a8){const _0x32890f=a72_0x3289();return a72_0x4faf=function(_0x4faf07,_0x8dfc50){_0x4faf07=_0x4faf07-0x8e;let _0x4d4f88=_0x32890f[_0x4faf07];return _0x4d4f88;},a72_0x4faf(_0xb44861,_0x2247a8);}import*as a72_0x2d1431 from'readline';export async function confirm(_0x7dbf01){const _0x5b0623=a72_0x4faf,_0x74b553=a72_0x2d1431[_0x5b0623(0x94)]({'input':process[_0x5b0623(0x8f)],'output':process[_0x5b0623(0x9d)]});return new Promise(_0xe97291=>{const _0x4ba731=_0x5b0623;_0x74b553[_0x4ba731(0x93)](_0x7dbf01+_0x4ba731(0x9c),_0x598be8=>{const _0x17dac7=_0x4ba731;_0x74b553['close'](),_0xe97291(_0x598be8[_0x17dac7(0x95)]()==='y'||_0x598be8['toLowerCase']()===_0x17dac7(0x9e));});});}function a72_0x3289(){const _0x1fbb71=['2936439BBDSOg','5553100PGrocz','263401pHzhWL','8078292uXlGKj','1062555ziXEOZ','2lhSxBP','\x20(y/N):\x20','stdout','yes','40kLwJbz','stdin','11138256bxxBcx','203151bvyBwD','8noCvnZ','question','createInterface','toLowerCase'];a72_0x3289=function(){return _0x1fbb71;};return a72_0x3289();}
@@ -1 +1 @@
1
- (function(_0x456cc3,_0xf74c5){const _0x573ca9=a73_0x291c,_0x4d5539=_0x456cc3();while(!![]){try{const _0xcdcb2e=-parseInt(_0x573ca9(0x168))/0x1*(parseInt(_0x573ca9(0x16c))/0x2)+-parseInt(_0x573ca9(0x161))/0x3+-parseInt(_0x573ca9(0x164))/0x4*(-parseInt(_0x573ca9(0x162))/0x5)+-parseInt(_0x573ca9(0x15d))/0x6+parseInt(_0x573ca9(0x166))/0x7*(-parseInt(_0x573ca9(0x154))/0x8)+-parseInt(_0x573ca9(0x15c))/0x9*(parseInt(_0x573ca9(0x16e))/0xa)+parseInt(_0x573ca9(0x155))/0xb;if(_0xcdcb2e===_0xf74c5)break;else _0x4d5539['push'](_0x4d5539['shift']());}catch(_0x4a3ebc){_0x4d5539['push'](_0x4d5539['shift']());}}}(a73_0x2a1d,0x8a5a0));export function parsePath(_0x5b46eb){const _0x4c737=a73_0x291c;if(!_0x5b46eb||_0x5b46eb[_0x4c737(0x16a)]()==='')throw new Error(_0x4c737(0x165));const _0x44a423=_0x5b46eb[_0x4c737(0x16a)]();if(_0x44a423==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5b46eb};const _0x2f0496=_0x44a423[_0x4c737(0x172)]('/')?_0x44a423[_0x4c737(0x157)](0x1):_0x44a423,_0x4e1d8f=_0x2f0496[_0x4c737(0x169)]('/')[_0x4c737(0x16d)](_0x5bec5c=>_0x5bec5c!=='');if(_0x4e1d8f['length']===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x43c3e7=_0x44a423['startsWith']('/')||!isRelativePathSegment(_0x4e1d8f[0x0]);for(const _0x3894d4 of _0x4e1d8f){validatePathSegment(_0x3894d4);}return{'segments':_0x4e1d8f,'isAbsolute':_0x43c3e7,'raw':_0x5b46eb};}function isRelativePathSegment(_0x5cc45b){return _0x5cc45b==='.'||_0x5cc45b==='..';}function validatePathSegment(_0x29a6fc){const _0x86b387=a73_0x291c;if(_0x29a6fc==='')throw new Error(_0x86b387(0x15f));if(_0x29a6fc==='.'||_0x29a6fc==='..')return;if(/[\x00-\x1F\x7F]/[_0x86b387(0x170)](_0x29a6fc))throw new Error(_0x86b387(0x156)+_0x29a6fc);if(_0x29a6fc!==_0x29a6fc[_0x86b387(0x16a)]()){}}export function validatePath(_0x22cbe9){const _0x10c5c8=a73_0x291c;if(_0x22cbe9[_0x10c5c8(0x167)][_0x10c5c8(0x15e)]===0x0&&!_0x22cbe9[_0x10c5c8(0x159)])throw new Error(_0x10c5c8(0x15a));if(_0x22cbe9[_0x10c5c8(0x159)]){if(_0x22cbe9[_0x10c5c8(0x167)][0x0]==='..')throw new Error(_0x10c5c8(0x16b));let _0x136022=0x0;for(const _0x20281c of _0x22cbe9['segments']){if(_0x20281c==='..'){if(_0x136022===0x0)throw new Error(_0x10c5c8(0x163));_0x136022--;}else _0x20281c!=='.'&&_0x136022++;}}}function a73_0x291c(_0x5434ac,_0x1e82d3){const _0x2a1d4a=a73_0x2a1d();return a73_0x291c=function(_0x291ce3,_0x1786cf){_0x291ce3=_0x291ce3-0x153;let _0x25bb01=_0x2a1d4a[_0x291ce3];return _0x25bb01;},a73_0x291c(_0x5434ac,_0x1e82d3);}export function joinPaths(_0x4ea564,_0x209974){const _0xeb4ead=a73_0x291c;if(!_0x4ea564||_0x4ea564==='/')return _0x209974;if(!_0x209974||_0x209974==='.')return _0x4ea564;if(_0x209974[_0xeb4ead(0x172)]('/'))return _0x209974;const _0x23003d=parsePath(_0x4ea564),_0x447624=parsePath(_0x209974),_0x1bb2aa=[..._0x23003d[_0xeb4ead(0x167)]];for(const _0x272690 of _0x447624[_0xeb4ead(0x167)]){if(_0x272690==='.')continue;else{if(_0x272690==='..'){if(_0x1bb2aa[_0xeb4ead(0x15e)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb2aa[_0xeb4ead(0x15b)]();}else _0x1bb2aa[_0xeb4ead(0x158)](_0x272690);}}const _0x50c5f8=_0x1bb2aa[_0xeb4ead(0x171)]('/');return _0x23003d[_0xeb4ead(0x16f)]['startsWith']('/')?'/'+_0x50c5f8:_0x50c5f8;}export function normalizePath(_0x2ae544){const _0x3d77b0=a73_0x291c,_0x9e0226=parsePath(_0x2ae544),_0x1bb04c=[];for(const _0x1e3cd5 of _0x9e0226[_0x3d77b0(0x167)]){if(_0x1e3cd5==='.')continue;else{if(_0x1e3cd5==='..'){if(_0x1bb04c['length']===0x0){if(_0x9e0226[_0x3d77b0(0x159)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x1bb04c['push']('..');}else _0x1bb04c[_0x1bb04c[_0x3d77b0(0x15e)]-0x1]==='..'?_0x1bb04c[_0x3d77b0(0x158)]('..'):_0x1bb04c[_0x3d77b0(0x15b)]();}else _0x1bb04c[_0x3d77b0(0x158)](_0x1e3cd5);}}if(_0x1bb04c[_0x3d77b0(0x15e)]===0x0)return _0x9e0226[_0x3d77b0(0x159)]?'/':'.';const _0x1d56b0=_0x1bb04c[_0x3d77b0(0x171)]('/');return _0x9e0226[_0x3d77b0(0x16f)][_0x3d77b0(0x172)]('/')?'/'+_0x1d56b0:_0x1d56b0;}export function getParentPath(_0x2594c5){const _0x230310=a73_0x291c,_0x3f5196=parsePath(_0x2594c5);if(_0x3f5196['segments'][_0x230310(0x15e)]<=0x1)return'/';const _0x21e58f=_0x3f5196[_0x230310(0x167)]['slice'](0x0,-0x1)[_0x230310(0x171)]('/');return _0x3f5196[_0x230310(0x16f)][_0x230310(0x172)]('/')?'/'+_0x21e58f:_0x21e58f;}function a73_0x2a1d(){const _0x4cd999=['Relative\x20path\x20cannot\x20be\x20empty','pop','81QcFsTj','58344PrDPNX','length','Path\x20segment\x20cannot\x20be\x20empty','slice','347340WXpQdX','141070brUpFP','Path\x20attempts\x20to\x20navigate\x20above\x20root','56zbVoLk','Path\x20cannot\x20be\x20empty','169421XqAbJt','segments','164yGhOoQ','split','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','12374GdNfVB','filter','1223090mcmFht','raw','test','join','startsWith','Cannot\x20split\x20empty\x20path','64VmPoeJ','28668959KnGfdH','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','substring','push','isAbsolute'];a73_0x2a1d=function(){return _0x4cd999;};return a73_0x2a1d();}export function getBaseName(_0x346fea){const _0x2a672c=a73_0x291c,_0x1228c7=parsePath(_0x346fea);return _0x1228c7['segments'][_0x1228c7['segments'][_0x2a672c(0x15e)]-0x1]||'';}export function isChildPath(_0x2aed87,_0x71f647){const _0x31ed8f=a73_0x291c,_0x57f5b5=parsePath(_0x2aed87),_0x5d20eb=parsePath(_0x71f647);if(_0x57f5b5['segments'][_0x31ed8f(0x15e)]<=_0x5d20eb['segments'][_0x31ed8f(0x15e)])return![];for(let _0xb7a176=0x0;_0xb7a176<_0x5d20eb[_0x31ed8f(0x167)][_0x31ed8f(0x15e)];_0xb7a176++){if(_0x57f5b5[_0x31ed8f(0x167)][_0xb7a176]!==_0x5d20eb[_0x31ed8f(0x167)][_0xb7a176])return![];}return!![];}export function splitPath(_0x4b982f){const _0x29f88d=a73_0x291c,_0x1f409d=parsePath(_0x4b982f);if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x0)throw new Error(_0x29f88d(0x153));if(_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x15e)]===0x1)return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0]};return{'parent':_0x1f409d[_0x29f88d(0x167)][0x0],'child':_0x1f409d[_0x29f88d(0x167)][_0x29f88d(0x160)](0x1)['join']('/')};}
1
+ (function(_0x584de4,_0xbd7395){const _0x563563=a73_0x30bb,_0x18854f=_0x584de4();while(!![]){try{const _0x5e7f8c=parseInt(_0x563563(0x13b))/0x1*(parseInt(_0x563563(0x125))/0x2)+parseInt(_0x563563(0x129))/0x3+parseInt(_0x563563(0x134))/0x4+-parseInt(_0x563563(0x13a))/0x5*(-parseInt(_0x563563(0x12a))/0x6)+-parseInt(_0x563563(0x13d))/0x7+-parseInt(_0x563563(0x13c))/0x8*(-parseInt(_0x563563(0x122))/0x9)+-parseInt(_0x563563(0x136))/0xa;if(_0x5e7f8c===_0xbd7395)break;else _0x18854f['push'](_0x18854f['shift']());}catch(_0x17e043){_0x18854f['push'](_0x18854f['shift']());}}}(a73_0x5935,0xecfd7));function a73_0x5935(){const _0x3edad7=['length','join','split','220225jWOVGR','137120jyrJas','2216LEjkys','4328513fXufdK','Path\x20cannot\x20be\x20empty','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','58563JcJHYH','filter','substring','4veEjim','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','slice','segments','27912WCwrua','30CxPsvv','startsWith','raw','trim','Cannot\x20navigate\x20above\x20root','Path\x20attempts\x20to\x20navigate\x20above\x20root','Relative\x20path\x20cannot\x20be\x20empty','push','isAbsolute','test','2306352VwSJcW','pop','12937260XHpxyM'];a73_0x5935=function(){return _0x3edad7;};return a73_0x5935();}export function parsePath(_0x14157a){const _0xe4491=a73_0x30bb;if(!_0x14157a||_0x14157a[_0xe4491(0x12d)]()==='')throw new Error(_0xe4491(0x120));const _0x1cec25=_0x14157a[_0xe4491(0x12d)]();if(_0x1cec25==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x14157a};const _0x381b29=_0x1cec25[_0xe4491(0x12b)]('/')?_0x1cec25[_0xe4491(0x124)](0x1):_0x1cec25,_0x696150=_0x381b29[_0xe4491(0x139)]('/')[_0xe4491(0x123)](_0x1248a3=>_0x1248a3!=='');if(_0x696150[_0xe4491(0x137)]===0x0)throw new Error(_0xe4491(0x126));const _0x3c809e=_0x1cec25['startsWith']('/')||!isRelativePathSegment(_0x696150[0x0]);for(const _0x1276a2 of _0x696150){validatePathSegment(_0x1276a2);}return{'segments':_0x696150,'isAbsolute':_0x3c809e,'raw':_0x14157a};}function isRelativePathSegment(_0x59ce41){return _0x59ce41==='.'||_0x59ce41==='..';}function validatePathSegment(_0x21a9e4){const _0x299a72=a73_0x30bb;if(_0x21a9e4==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x21a9e4==='.'||_0x21a9e4==='..')return;if(/[\x00-\x1F\x7F]/[_0x299a72(0x133)](_0x21a9e4))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x21a9e4);if(_0x21a9e4!==_0x21a9e4[_0x299a72(0x12d)]()){}}export function validatePath(_0x36bab5){const _0x4a7bcf=a73_0x30bb;if(_0x36bab5[_0x4a7bcf(0x128)][_0x4a7bcf(0x137)]===0x0&&!_0x36bab5['isAbsolute'])throw new Error(_0x4a7bcf(0x130));if(_0x36bab5[_0x4a7bcf(0x132)]){if(_0x36bab5[_0x4a7bcf(0x128)][0x0]==='..')throw new Error(_0x4a7bcf(0x121));let _0x5ab442=0x0;for(const _0x455887 of _0x36bab5[_0x4a7bcf(0x128)]){if(_0x455887==='..'){if(_0x5ab442===0x0)throw new Error(_0x4a7bcf(0x12f));_0x5ab442--;}else _0x455887!=='.'&&_0x5ab442++;}}}export function joinPaths(_0x573f48,_0x2af79b){const _0x4aaea7=a73_0x30bb;if(!_0x573f48||_0x573f48==='/')return _0x2af79b;if(!_0x2af79b||_0x2af79b==='.')return _0x573f48;if(_0x2af79b[_0x4aaea7(0x12b)]('/'))return _0x2af79b;const _0x11fcc2=parsePath(_0x573f48),_0x4c6344=parsePath(_0x2af79b),_0x467721=[..._0x11fcc2[_0x4aaea7(0x128)]];for(const _0x4fb5e9 of _0x4c6344[_0x4aaea7(0x128)]){if(_0x4fb5e9==='.')continue;else{if(_0x4fb5e9==='..'){if(_0x467721[_0x4aaea7(0x137)]===0x0)throw new Error(_0x4aaea7(0x12e));_0x467721[_0x4aaea7(0x135)]();}else _0x467721[_0x4aaea7(0x131)](_0x4fb5e9);}}const _0x2be123=_0x467721[_0x4aaea7(0x138)]('/');return _0x11fcc2['raw'][_0x4aaea7(0x12b)]('/')?'/'+_0x2be123:_0x2be123;}export function normalizePath(_0x3fa8af){const _0xecedd5=a73_0x30bb,_0x1b5a16=parsePath(_0x3fa8af),_0x3de508=[];for(const _0x568fb1 of _0x1b5a16[_0xecedd5(0x128)]){if(_0x568fb1==='.')continue;else{if(_0x568fb1==='..'){if(_0x3de508[_0xecedd5(0x137)]===0x0){if(_0x1b5a16['isAbsolute'])throw new Error(_0xecedd5(0x12e));_0x3de508[_0xecedd5(0x131)]('..');}else _0x3de508[_0x3de508[_0xecedd5(0x137)]-0x1]==='..'?_0x3de508[_0xecedd5(0x131)]('..'):_0x3de508[_0xecedd5(0x135)]();}else _0x3de508[_0xecedd5(0x131)](_0x568fb1);}}if(_0x3de508[_0xecedd5(0x137)]===0x0)return _0x1b5a16[_0xecedd5(0x132)]?'/':'.';const _0xfb2aee=_0x3de508[_0xecedd5(0x138)]('/');return _0x1b5a16[_0xecedd5(0x12c)]['startsWith']('/')?'/'+_0xfb2aee:_0xfb2aee;}export function getParentPath(_0xd0b9af){const _0x809a03=a73_0x30bb,_0x1d516c=parsePath(_0xd0b9af);if(_0x1d516c['segments'][_0x809a03(0x137)]<=0x1)return'/';const _0x248d54=_0x1d516c[_0x809a03(0x128)][_0x809a03(0x127)](0x0,-0x1)[_0x809a03(0x138)]('/');return _0x1d516c['raw'][_0x809a03(0x12b)]('/')?'/'+_0x248d54:_0x248d54;}function a73_0x30bb(_0x1f62c3,_0x243b33){const _0x5935f6=a73_0x5935();return a73_0x30bb=function(_0x30bb35,_0x249d7e){_0x30bb35=_0x30bb35-0x120;let _0x378115=_0x5935f6[_0x30bb35];return _0x378115;},a73_0x30bb(_0x1f62c3,_0x243b33);}export function getBaseName(_0x5a9a54){const _0x170d42=a73_0x30bb,_0x2ac0a9=parsePath(_0x5a9a54);return _0x2ac0a9[_0x170d42(0x128)][_0x2ac0a9[_0x170d42(0x128)][_0x170d42(0x137)]-0x1]||'';}export function isChildPath(_0xfb2d3a,_0x18cf37){const _0x35bd58=a73_0x30bb,_0x62a427=parsePath(_0xfb2d3a),_0x1be19d=parsePath(_0x18cf37);if(_0x62a427[_0x35bd58(0x128)]['length']<=_0x1be19d[_0x35bd58(0x128)]['length'])return![];for(let _0x212fd8=0x0;_0x212fd8<_0x1be19d[_0x35bd58(0x128)][_0x35bd58(0x137)];_0x212fd8++){if(_0x62a427[_0x35bd58(0x128)][_0x212fd8]!==_0x1be19d[_0x35bd58(0x128)][_0x212fd8])return![];}return!![];}export function splitPath(_0x155faf){const _0x4b2026=a73_0x30bb,_0x54bd25=parsePath(_0x155faf);if(_0x54bd25[_0x4b2026(0x128)][_0x4b2026(0x137)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x54bd25[_0x4b2026(0x128)][_0x4b2026(0x137)]===0x1)return{'parent':_0x54bd25[_0x4b2026(0x128)][0x0]};return{'parent':_0x54bd25[_0x4b2026(0x128)][0x0],'child':_0x54bd25[_0x4b2026(0x128)][_0x4b2026(0x127)](0x1)[_0x4b2026(0x138)]('/')};}
@@ -1 +1 @@
1
- (function(_0x3b879b,_0x1b06d7){const _0xf4c4a9=a74_0x54f7,_0x85072c=_0x3b879b();while(!![]){try{const _0x268e79=-parseInt(_0xf4c4a9(0x18a))/0x1*(-parseInt(_0xf4c4a9(0x18d))/0x2)+-parseInt(_0xf4c4a9(0x187))/0x3+parseInt(_0xf4c4a9(0x18f))/0x4*(parseInt(_0xf4c4a9(0x188))/0x5)+parseInt(_0xf4c4a9(0x193))/0x6+-parseInt(_0xf4c4a9(0x186))/0x7+-parseInt(_0xf4c4a9(0x18b))/0x8+-parseInt(_0xf4c4a9(0x18e))/0x9*(parseInt(_0xf4c4a9(0x189))/0xa);if(_0x268e79===_0x1b06d7)break;else _0x85072c['push'](_0x85072c['shift']());}catch(_0x68d79a){_0x85072c['push'](_0x85072c['shift']());}}}(a74_0xc1a6,0x99b37));function a74_0x54f7(_0x2dd3bd,_0x5ed58e){const _0xc1a622=a74_0xc1a6();return a74_0x54f7=function(_0x54f78b,_0x4dc9fb){_0x54f78b=_0x54f78b-0x186;let _0x2948d5=_0xc1a622[_0x54f78b];return _0x2948d5;},a74_0x54f7(_0x2dd3bd,_0x5ed58e);}export function parseSegmentRef(_0x580feb){const _0x1d0c9e=a74_0x54f7,_0x1418b3=_0x580feb[_0x1d0c9e(0x18c)]('/');if(_0x1418b3===-0x1)return{'parentId':_0x580feb};if(_0x1418b3===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x580feb+_0x1d0c9e(0x191));const _0x367e5a=_0x580feb[_0x1d0c9e(0x192)](0x0,_0x1418b3),_0x5a2942=_0x580feb['substring'](_0x1418b3+0x1);if(_0x5a2942==='')throw new Error(_0x1d0c9e(0x190)+_0x580feb+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x367e5a,'childId':_0x5a2942};}function a74_0xc1a6(){const _0x397948=['13865oyJDgO','40DksHfq','9493ogHRQR','8167704EfQWhS','indexOf','138YzCWiP','45855FzQFep','916eAzBDl','Invalid\x20segment\x20reference\x20format:\x20','.\x20Parent\x20name\x20cannot\x20be\x20empty','substring','6547128AkOGdM','2880360regavO','896520LqxMcP'];a74_0xc1a6=function(){return _0x397948;};return a74_0xc1a6();}
1
+ (function(_0x1cc894,_0x377f58){const _0x1d2c9f=a74_0x4bda,_0x16772f=_0x1cc894();while(!![]){try{const _0xa9fb66=parseInt(_0x1d2c9f(0x82))/0x1+parseInt(_0x1d2c9f(0x7d))/0x2*(parseInt(_0x1d2c9f(0x81))/0x3)+-parseInt(_0x1d2c9f(0x7e))/0x4*(-parseInt(_0x1d2c9f(0x83))/0x5)+-parseInt(_0x1d2c9f(0x79))/0x6+-parseInt(_0x1d2c9f(0x78))/0x7+-parseInt(_0x1d2c9f(0x7b))/0x8+parseInt(_0x1d2c9f(0x84))/0x9*(parseInt(_0x1d2c9f(0x7a))/0xa);if(_0xa9fb66===_0x377f58)break;else _0x16772f['push'](_0x16772f['shift']());}catch(_0x42f0a5){_0x16772f['push'](_0x16772f['shift']());}}}(a74_0x56d2,0x33659));function a74_0x4bda(_0x446b1b,_0x49f7f2){const _0x56d2d9=a74_0x56d2();return a74_0x4bda=function(_0x4bda84,_0x50a943){_0x4bda84=_0x4bda84-0x76;let _0x2f9e08=_0x56d2d9[_0x4bda84];return _0x2f9e08;},a74_0x4bda(_0x446b1b,_0x49f7f2);}export function parseSegmentRef(_0x451447){const _0x1450f8=a74_0x4bda,_0x2a13e6=_0x451447[_0x1450f8(0x7f)]('/');if(_0x2a13e6===-0x1)return{'parentId':_0x451447};if(_0x2a13e6===0x0)throw new Error(_0x1450f8(0x76)+_0x451447+_0x1450f8(0x7c));const _0x5bed85=_0x451447[_0x1450f8(0x77)](0x0,_0x2a13e6),_0x257f55=_0x451447[_0x1450f8(0x77)](_0x2a13e6+0x1);if(_0x257f55==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x451447+_0x1450f8(0x80));return{'parentId':_0x5bed85,'childId':_0x257f55};}function a74_0x56d2(){const _0x3f9b37=['214137CTtmQe','3455SShKrp','450eQQSJB','Invalid\x20segment\x20reference\x20format:\x20','substring','1165318pZJOsj','1400490TZkjEf','1570dYjEXA','420928WyiAEj','.\x20Parent\x20name\x20cannot\x20be\x20empty','22QRaASx','2168aGZsdg','indexOf','.\x20Child\x20name\x20cannot\x20be\x20empty','18141xQazbf'];a74_0x56d2=function(){return _0x3f9b37;};return a74_0x56d2();}
@@ -1 +1 @@
1
- (function(_0x28d5cc,_0x40a9c6){const _0x3be618=a75_0xbdaf,_0x2f0658=_0x28d5cc();while(!![]){try{const _0x89dd2=parseInt(_0x3be618(0x69))/0x1+-parseInt(_0x3be618(0x7c))/0x2*(-parseInt(_0x3be618(0x65))/0x3)+parseInt(_0x3be618(0x76))/0x4*(parseInt(_0x3be618(0x78))/0x5)+parseInt(_0x3be618(0x79))/0x6+parseInt(_0x3be618(0x72))/0x7+parseInt(_0x3be618(0x68))/0x8*(-parseInt(_0x3be618(0x71))/0x9)+-parseInt(_0x3be618(0x6e))/0xa;if(_0x89dd2===_0x40a9c6)break;else _0x2f0658['push'](_0x2f0658['shift']());}catch(_0x3798df){_0x2f0658['push'](_0x2f0658['shift']());}}}(a75_0x6e75,0xeaf81));function a75_0xbdaf(_0x44fc2e,_0x3e22e4){const _0x6e758c=a75_0x6e75();return a75_0xbdaf=function(_0xbdaf45,_0x20e374){_0xbdaf45=_0xbdaf45-0x65;let _0x19cbbc=_0x6e758c[_0xbdaf45];return _0x19cbbc;},a75_0xbdaf(_0x44fc2e,_0x3e22e4);}import a75_0x240c2b from'ora';export function createCommandSpinner(_0x25ffef,_0x5761db={}){const _0x5325fd=a75_0xbdaf,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5761db;return a75_0x240c2b({'text':_0x25ffef,'color':'cyan','isEnabled':forceEnabled||process[_0x5325fd(0x7b)][_0x5325fd(0x6b)]&&!verbose});}function a75_0x6e75(){const _0x155135=['phase','isTTY','clock','floor','15118380VxRWFC','text','...','27AWpvJD','7516418rVNnBO','start','\x20[Job\x20ID:\x20','now','4QrjQkV','jobId','4367690wPUwPi','2390160QseYmg','extra','stdout','2gMdKPo','1891035LRhGgM','stop','isSpinning','1897904mhwvRb','209968kTiKdK'];a75_0x6e75=function(){return _0x155135;};return a75_0x6e75();}export async function withSpinner(_0x3941ab,_0x358c88,_0x4d1f75={}){const _0x5dc16f=a75_0xbdaf,_0x5ceca3=_0x4d1f75[_0x5dc16f(0x6c)]??(()=>Date['now']()),_0x3aeb05=createCommandSpinner(_0x3941ab,_0x4d1f75);_0x3aeb05['start']();const _0x443feb=_0x5ceca3();try{const _0x1436a1=await _0x358c88(),_0x540b99=_0x5ceca3()-_0x443feb;return _0x3aeb05[_0x5dc16f(0x66)](),{'data':_0x1436a1,'elapsedMs':_0x540b99};}catch(_0x10c89c){_0x3aeb05[_0x5dc16f(0x66)]();throw _0x10c89c;}}export async function withQuerySpinner(_0x3c623e,_0x3139b7,_0x1a9aca={}){const _0x12a7e1=a75_0xbdaf,_0xb4d8e9=_0x1a9aca[_0x12a7e1(0x6c)]??(()=>Date[_0x12a7e1(0x75)]()),_0x1a2938=_0x1a9aca['intervalFactory']??setInterval,_0x111e0=createCommandSpinner(_0x3c623e,_0x1a9aca);_0x111e0[_0x12a7e1(0x73)]();const _0xf65ea8=_0xb4d8e9(),_0x365aab=_0x3c623e['replace'](_0x12a7e1(0x70),''),_0x1129a4={},_0x1b76c9=()=>{const _0x413a41=_0x12a7e1;if(!_0x111e0[_0x413a41(0x67)])return;const _0x504b34=_0xb4d8e9()-_0xf65ea8,_0x44f14c=formatElapsed(_0x504b34),_0x5b466e=_0x1129a4[_0x413a41(0x6a)]??_0x365aab,_0x3ab660=_0x1129a4[_0x413a41(0x77)]?_0x413a41(0x74)+_0x1129a4[_0x413a41(0x77)]+']':'',_0xa8e139=_0x1129a4[_0x413a41(0x7a)]?'\x20'+_0x1129a4[_0x413a41(0x7a)]:'';_0x111e0[_0x413a41(0x6f)]=_0x5b466e+'\x20'+_0x44f14c+_0xa8e139+_0x3ab660;},_0x33398f=_0x1a2938(()=>{_0x1b76c9();},0x3e8),_0x1bfecc={'setPhase':_0x14395d=>{const _0x396abf=_0x12a7e1;_0x1129a4[_0x396abf(0x6a)]=_0x14395d,_0x1b76c9();},'setJobId':_0x5da096=>{_0x1129a4['jobId']=_0x5da096,_0x1b76c9();},'setExtra':_0x4d864e=>{const _0x24bb6e=_0x12a7e1;_0x1129a4[_0x24bb6e(0x7a)]=_0x4d864e,_0x1b76c9();}};_0x1b76c9();try{const _0x1cf208=await _0x3139b7(_0x1bfecc),_0x1abefd=_0xb4d8e9()-_0xf65ea8;return{'data':_0x1cf208,'elapsedMs':_0x1abefd};}finally{clearInterval(_0x33398f),_0x111e0[_0x12a7e1(0x66)]();}}export function formatElapsed(_0x3704fe){const _0x52fcb6=a75_0xbdaf,_0x40429a=Math[_0x52fcb6(0x6d)](_0x3704fe/0x3e8);if(_0x40429a<0x3c)return(_0x3704fe/0x3e8)['toFixed'](0x1)+'s';const _0x448fdb=Math['floor'](_0x40429a/0x3c),_0x398919=_0x40429a%0x3c;if(_0x448fdb<0x3c)return _0x448fdb+'m\x20'+_0x398919+'s';const _0x2cfb71=Math['floor'](_0x448fdb/0x3c),_0x4f5bef=_0x448fdb%0x3c;return _0x2cfb71+'h\x20'+_0x4f5bef+'m';}
1
+ (function(_0x35a9b0,_0x63ebe3){const _0x547cec=a75_0x1992,_0x3e09a3=_0x35a9b0();while(!![]){try{const _0x5aaad5=parseInt(_0x547cec(0x96))/0x1*(parseInt(_0x547cec(0xa6))/0x2)+parseInt(_0x547cec(0xaf))/0x3*(-parseInt(_0x547cec(0x9e))/0x4)+parseInt(_0x547cec(0xac))/0x5+parseInt(_0x547cec(0xa0))/0x6*(parseInt(_0x547cec(0xa1))/0x7)+-parseInt(_0x547cec(0x98))/0x8*(-parseInt(_0x547cec(0xa9))/0x9)+parseInt(_0x547cec(0x9b))/0xa*(parseInt(_0x547cec(0x9d))/0xb)+-parseInt(_0x547cec(0xab))/0xc*(parseInt(_0x547cec(0x9c))/0xd);if(_0x5aaad5===_0x63ebe3)break;else _0x3e09a3['push'](_0x3e09a3['shift']());}catch(_0x232225){_0x3e09a3['push'](_0x3e09a3['shift']());}}}(a75_0x5464,0x887e4));import a75_0xaf086c from'ora';export function createCommandSpinner(_0x12496c,_0x551b78={}){const _0x50a304=a75_0x1992,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x551b78;return a75_0xaf086c({'text':_0x12496c,'color':_0x50a304(0x99),'isEnabled':forceEnabled||process['stdout'][_0x50a304(0xa8)]&&!verbose});}function a75_0x1992(_0x466617,_0x33a299){const _0x546415=a75_0x5464();return a75_0x1992=function(_0x199287,_0x28d8ec){_0x199287=_0x199287-0x93;let _0x391b1=_0x546415[_0x199287];return _0x391b1;},a75_0x1992(_0x466617,_0x33a299);}function a75_0x5464(){const _0x5b0e32=['phase','6WzUtYg','6246583YPmxXH','\x20[Job\x20ID:\x20','now','stop','text','3030uCvEgX','intervalFactory','isTTY','36bahOFK','isSpinning','12bSLCUA','2939095UDwxFi','toFixed','floor','1847091GFQtzh','...','clock','jobId','extra','131TiBrYQ','replace','673768SByBHi','cyan','start','1322630szPawl','22965865sSgnag','77ctaXwi','4TxLTdk'];a75_0x5464=function(){return _0x5b0e32;};return a75_0x5464();}export async function withSpinner(_0x245ced,_0x20df26,_0x1aa763={}){const _0xb19f58=a75_0x1992,_0x4f9ade=_0x1aa763[_0xb19f58(0x93)]??(()=>Date[_0xb19f58(0xa3)]()),_0x46b421=createCommandSpinner(_0x245ced,_0x1aa763);_0x46b421[_0xb19f58(0x9a)]();const _0x7772cc=_0x4f9ade();try{const _0x2dff25=await _0x20df26(),_0x1afad0=_0x4f9ade()-_0x7772cc;return _0x46b421['stop'](),{'data':_0x2dff25,'elapsedMs':_0x1afad0};}catch(_0xb32620){_0x46b421['stop']();throw _0xb32620;}}export async function withQuerySpinner(_0x3eac9f,_0x4065d0,_0x15e9e8={}){const _0x4aed72=a75_0x1992,_0x12f528=_0x15e9e8['clock']??(()=>Date['now']()),_0x88ed9a=_0x15e9e8[_0x4aed72(0xa7)]??setInterval,_0x131ac8=createCommandSpinner(_0x3eac9f,_0x15e9e8);_0x131ac8['start']();const _0x432d0b=_0x12f528(),_0x52b3a9=_0x3eac9f[_0x4aed72(0x97)](_0x4aed72(0xb0),''),_0x1e6254={},_0x4266e1=()=>{const _0x27dce2=_0x4aed72;if(!_0x131ac8[_0x27dce2(0xaa)])return;const _0x2c3ab0=_0x12f528()-_0x432d0b,_0x116410=formatElapsed(_0x2c3ab0),_0x476a3b=_0x1e6254[_0x27dce2(0x9f)]??_0x52b3a9,_0x3ecf95=_0x1e6254[_0x27dce2(0x94)]?_0x27dce2(0xa2)+_0x1e6254[_0x27dce2(0x94)]+']':'',_0x393559=_0x1e6254[_0x27dce2(0x95)]?'\x20'+_0x1e6254[_0x27dce2(0x95)]:'';_0x131ac8[_0x27dce2(0xa5)]=_0x476a3b+'\x20'+_0x116410+_0x393559+_0x3ecf95;},_0x130c10=_0x88ed9a(()=>{_0x4266e1();},0x3e8),_0x577fe9={'setPhase':_0x391428=>{const _0xef37=_0x4aed72;_0x1e6254[_0xef37(0x9f)]=_0x391428,_0x4266e1();},'setJobId':_0x58c78f=>{const _0x54dd36=_0x4aed72;_0x1e6254[_0x54dd36(0x94)]=_0x58c78f,_0x4266e1();},'setExtra':_0x56f38e=>{_0x1e6254['extra']=_0x56f38e,_0x4266e1();}};_0x4266e1();try{const _0x5b787f=await _0x4065d0(_0x577fe9),_0x3545fb=_0x12f528()-_0x432d0b;return{'data':_0x5b787f,'elapsedMs':_0x3545fb};}finally{clearInterval(_0x130c10),_0x131ac8[_0x4aed72(0xa4)]();}}export function formatElapsed(_0x3d9beb){const _0x243cdb=a75_0x1992,_0x108a51=Math[_0x243cdb(0xae)](_0x3d9beb/0x3e8);if(_0x108a51<0x3c)return(_0x3d9beb/0x3e8)[_0x243cdb(0xad)](0x1)+'s';const _0xeae545=Math[_0x243cdb(0xae)](_0x108a51/0x3c),_0x3eb4fd=_0x108a51%0x3c;if(_0xeae545<0x3c)return _0xeae545+'m\x20'+_0x3eb4fd+'s';const _0x2a7fbd=Math[_0x243cdb(0xae)](_0xeae545/0x3c),_0x4abd29=_0xeae545%0x3c;return _0x2a7fbd+'h\x20'+_0x4abd29+'m';}
@@ -1 +1 @@
1
- (function(_0x52c632,_0x4e898f){const _0x24f267=a76_0x2c9c,_0x293264=_0x52c632();while(!![]){try{const _0x412f35=-parseInt(_0x24f267(0x13a))/0x1*(-parseInt(_0x24f267(0x136))/0x2)+-parseInt(_0x24f267(0x145))/0x3+-parseInt(_0x24f267(0x140))/0x4+parseInt(_0x24f267(0x146))/0x5*(-parseInt(_0x24f267(0x131))/0x6)+-parseInt(_0x24f267(0x141))/0x7*(parseInt(_0x24f267(0x138))/0x8)+-parseInt(_0x24f267(0x144))/0x9*(parseInt(_0x24f267(0x135))/0xa)+-parseInt(_0x24f267(0x137))/0xb*(-parseInt(_0x24f267(0x133))/0xc);if(_0x412f35===_0x4e898f)break;else _0x293264['push'](_0x293264['shift']());}catch(_0x1a4b0f){_0x293264['push'](_0x293264['shift']());}}}(a76_0x5bfc,0x507d6));import{readFileSync}from'fs';export function stripSqlComments(_0x26ba60){const _0x266b28=a76_0x2c9c;let _0x5add19=_0x26ba60[_0x266b28(0x139)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5add19=_0x5add19[_0x266b28(0x139)](/--.*$/gm,''),_0x5add19[_0x266b28(0x13c)]();}function isEscaped(_0x3a1b26,_0x3b277e){let _0x2966bf=0x0;for(let _0x27255b=_0x3b277e-0x1;_0x27255b>=0x0&&_0x3a1b26[_0x27255b]==='\x5c';_0x27255b--){_0x2966bf++;}return _0x2966bf%0x2===0x1;}export function splitSqlStatements(_0x2aa4e4){const _0x459008=a76_0x2c9c,_0x41de76=stripSqlComments(_0x2aa4e4);if(!_0x41de76)throw new Error(_0x459008(0x143));const _0xb97a5b=[];let _0x2685bb='',_0x1494c2=![],_0x2aed84=![],_0xdc8826=![];for(let _0x5dbcd2=0x0;_0x5dbcd2<_0x2aa4e4['length'];_0x5dbcd2++){const _0x464a14=_0x2aa4e4[_0x5dbcd2];if(_0x464a14==='\x27'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x2aed84&&!_0xdc8826)_0x1494c2=!_0x1494c2;else{if(_0x464a14==='\x22'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0xdc8826)_0x2aed84=!_0x2aed84;else _0x464a14==='`'&&!isEscaped(_0x2aa4e4,_0x5dbcd2)&&!_0x1494c2&&!_0x2aed84&&(_0xdc8826=!_0xdc8826);}if(_0x464a14===';'&&!_0x1494c2&&!_0x2aed84&&!_0xdc8826){const _0x364494=_0x2685bb[_0x459008(0x13c)]();_0x364494&&_0xb97a5b[_0x459008(0x147)](_0x364494),_0x2685bb='';}else _0x2685bb+=_0x464a14;}const _0x35c80e=_0x2685bb[_0x459008(0x13c)]();_0x35c80e&&_0xb97a5b[_0x459008(0x147)](_0x35c80e);const _0x4582b6=_0xb97a5b['map'](_0x4c4399=>_0x4c4399[_0x459008(0x13c)]())[_0x459008(0x13b)](_0x57e6d4=>{const _0x463ed7=_0x459008,_0x3f639e=stripSqlComments(_0x57e6d4);return _0x3f639e[_0x463ed7(0x13e)]>0x0;});if(_0x4582b6['length']===0x0)throw new Error(_0x459008(0x143));return _0x4582b6;}export function readFileContent(_0x44007e){const _0x1773df=a76_0x2c9c;try{return readFileSync(_0x44007e,_0x1773df(0x13f));}catch(_0x52d722){const _0x4efd6e=_0x52d722['code'];if(_0x4efd6e===_0x1773df(0x130))throw new Error(_0x1773df(0x132)+_0x44007e+'\x27\x20not\x20found');else{if(_0x4efd6e===_0x1773df(0x142))throw new Error(_0x1773df(0x134)+_0x44007e+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x44007e+'\x27:\x20'+_0x52d722['message']);}}}export function readSqlStatementsFromFile(_0x481c12){const _0x25f701=a76_0x2c9c,_0x349e84=readFileContent(_0x481c12);try{return splitSqlStatements(_0x349e84);}catch(_0xf1e090){throw new Error(_0x25f701(0x132)+_0x481c12+'\x27\x20'+_0xf1e090['message'][_0x25f701(0x13d)]());}}function a76_0x2c9c(_0x107978,_0x457b1c){const _0x5bfc63=a76_0x5bfc();return a76_0x2c9c=function(_0x2c9c8d,_0x2961df){_0x2c9c8d=_0x2c9c8d-0x130;let _0x12c829=_0x5bfc63[_0x2c9c8d];return _0x12c829;},a76_0x2c9c(_0x107978,_0x457b1c);}function a76_0x5bfc(){const _0x16431a=['452PByBLX','filter','trim','toLowerCase','length','utf-8','1572928aGHVdb','560cDmBDd','EACCES','Content\x20contains\x20no\x20SQL\x20statements','9uVRzXh','610398UhQSVE','14365fxFkoa','push','ENOENT','1002dmsKDK','File\x20\x27','1056TMnqWc','Permission\x20denied\x20reading\x20file\x20\x27','6150050iChkeS','2198aiszMH','248644zEKjPJ','46472owqNzA','replace'];a76_0x5bfc=function(){return _0x16431a;};return a76_0x5bfc();}
1
+ (function(_0x523766,_0x2fc82a){const _0x57a181=a76_0x1787,_0x435d87=_0x523766();while(!![]){try{const _0x3936d8=-parseInt(_0x57a181(0x110))/0x1*(parseInt(_0x57a181(0x100))/0x2)+parseInt(_0x57a181(0x10f))/0x3*(parseInt(_0x57a181(0x113))/0x4)+parseInt(_0x57a181(0x102))/0x5+-parseInt(_0x57a181(0x103))/0x6+parseInt(_0x57a181(0x109))/0x7*(parseInt(_0x57a181(0x104))/0x8)+parseInt(_0x57a181(0x10e))/0x9*(parseInt(_0x57a181(0xff))/0xa)+-parseInt(_0x57a181(0x111))/0xb;if(_0x3936d8===_0x2fc82a)break;else _0x435d87['push'](_0x435d87['shift']());}catch(_0x35a76d){_0x435d87['push'](_0x435d87['shift']());}}}(a76_0x2134,0x3b4f1));function a76_0x2134(){const _0x31aab8=['toLowerCase','755440wpMjys','2238498rLqQZJ','16beVpdA','Error\x20reading\x20file\x20\x27','replace','Permission\x20denied\x20reading\x20file\x20\x27','length','1482544XqLLlv','\x27\x20not\x20found','map','message','ENOENT','36ZsjRFf','1118244nDuncV','377233bpzNFM','1292797AJQpCa','trim','4ZeNrKo','Content\x20contains\x20no\x20SQL\x20statements','push','408380wcdKQf','2GhbqxW'];a76_0x2134=function(){return _0x31aab8;};return a76_0x2134();}import{readFileSync}from'fs';export function stripSqlComments(_0x398154){const _0x257291=a76_0x1787;let _0x2645c7=_0x398154[_0x257291(0x106)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x2645c7=_0x2645c7[_0x257291(0x106)](/--.*$/gm,''),_0x2645c7[_0x257291(0x112)]();}function a76_0x1787(_0x92511c,_0x2c5e6c){const _0x2134d0=a76_0x2134();return a76_0x1787=function(_0x1787b2,_0x3e0a68){_0x1787b2=_0x1787b2-0xff;let _0xbc73c5=_0x2134d0[_0x1787b2];return _0xbc73c5;},a76_0x1787(_0x92511c,_0x2c5e6c);}function isEscaped(_0xe383fa,_0x2f2569){let _0xcf3628=0x0;for(let _0x31cebe=_0x2f2569-0x1;_0x31cebe>=0x0&&_0xe383fa[_0x31cebe]==='\x5c';_0x31cebe--){_0xcf3628++;}return _0xcf3628%0x2===0x1;}export function splitSqlStatements(_0x3e69ac){const _0xd1d0a=a76_0x1787,_0x3c259d=stripSqlComments(_0x3e69ac);if(!_0x3c259d)throw new Error(_0xd1d0a(0x114));const _0x15104b=[];let _0x37fbb4='',_0x5ef33f=![],_0x33d231=![],_0x53bf0a=![];for(let _0x1b4446=0x0;_0x1b4446<_0x3e69ac['length'];_0x1b4446++){const _0x891ddf=_0x3e69ac[_0x1b4446];if(_0x891ddf==='\x27'&&!isEscaped(_0x3e69ac,_0x1b4446)&&!_0x33d231&&!_0x53bf0a)_0x5ef33f=!_0x5ef33f;else{if(_0x891ddf==='\x22'&&!isEscaped(_0x3e69ac,_0x1b4446)&&!_0x5ef33f&&!_0x53bf0a)_0x33d231=!_0x33d231;else _0x891ddf==='`'&&!isEscaped(_0x3e69ac,_0x1b4446)&&!_0x5ef33f&&!_0x33d231&&(_0x53bf0a=!_0x53bf0a);}if(_0x891ddf===';'&&!_0x5ef33f&&!_0x33d231&&!_0x53bf0a){const _0x1b8c8b=_0x37fbb4[_0xd1d0a(0x112)]();_0x1b8c8b&&_0x15104b[_0xd1d0a(0x115)](_0x1b8c8b),_0x37fbb4='';}else _0x37fbb4+=_0x891ddf;}const _0x444875=_0x37fbb4[_0xd1d0a(0x112)]();_0x444875&&_0x15104b[_0xd1d0a(0x115)](_0x444875);const _0x5e0308=_0x15104b[_0xd1d0a(0x10b)](_0x28ab27=>_0x28ab27[_0xd1d0a(0x112)]())['filter'](_0xfad35=>{const _0x111474=_0xd1d0a,_0x5357d9=stripSqlComments(_0xfad35);return _0x5357d9[_0x111474(0x108)]>0x0;});if(_0x5e0308['length']===0x0)throw new Error(_0xd1d0a(0x114));return _0x5e0308;}export function readFileContent(_0x2661cf){const _0x53c5d9=a76_0x1787;try{return readFileSync(_0x2661cf,'utf-8');}catch(_0x582842){const _0x87653c=_0x582842['code'];if(_0x87653c===_0x53c5d9(0x10d))throw new Error('File\x20\x27'+_0x2661cf+_0x53c5d9(0x10a));else{if(_0x87653c==='EACCES')throw new Error(_0x53c5d9(0x107)+_0x2661cf+'\x27');else throw new Error(_0x53c5d9(0x105)+_0x2661cf+'\x27:\x20'+_0x582842[_0x53c5d9(0x10c)]);}}}export function readSqlStatementsFromFile(_0x1b01b0){const _0xac8a1c=a76_0x1787,_0x29e65a=readFileContent(_0x1b01b0);try{return splitSqlStatements(_0x29e65a);}catch(_0x1f0dd9){throw new Error('File\x20\x27'+_0x1b01b0+'\x27\x20'+_0x1f0dd9[_0xac8a1c(0x10c)][_0xac8a1c(0x101)]());}}
@@ -1 +1 @@
1
- (function(_0xed512b,_0x37b51f){const _0x3c2c98=a77_0x574e,_0x47919b=_0xed512b();while(!![]){try{const _0x262f83=parseInt(_0x3c2c98(0xd1))/0x1+-parseInt(_0x3c2c98(0xdc))/0x2*(-parseInt(_0x3c2c98(0xd0))/0x3)+-parseInt(_0x3c2c98(0xcf))/0x4+parseInt(_0x3c2c98(0xdb))/0x5*(parseInt(_0x3c2c98(0xd9))/0x6)+-parseInt(_0x3c2c98(0xc9))/0x7+parseInt(_0x3c2c98(0xd5))/0x8+-parseInt(_0x3c2c98(0xda))/0x9;if(_0x262f83===_0x37b51f)break;else _0x47919b['push'](_0x47919b['shift']());}catch(_0x4d6402){_0x47919b['push'](_0x47919b['shift']());}}}(a77_0x2df3,0x670b0));export async function*parseSSEStream(_0x5f0493){const _0x5c756b=a77_0x574e;if(!_0x5f0493['body'])throw new Error(_0x5c756b(0xd3));const _0x5afe79=_0x5f0493['body'][_0x5c756b(0xd7)](),_0x38582e=new TextDecoder();let _0x2e433c='',_0x358d4b={};try{while(!![]){const {done:_0x56efe0,value:_0x254c88}=await _0x5afe79['read']();if(_0x56efe0){_0x358d4b[_0x5c756b(0xce)]&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]));break;}_0x2e433c+=_0x38582e['decode'](_0x254c88,{'stream':!![]});const _0x3724cc=_0x2e433c[_0x5c756b(0xd8)]('\x0a');_0x2e433c=_0x3724cc[_0x5c756b(0xdd)]()||'';for(const _0x4e5f63 of _0x3724cc){if(_0x4e5f63['trim']()===''){_0x358d4b['data']&&(yield parseSSEData(_0x358d4b[_0x5c756b(0xce)]),_0x358d4b={});continue;}if(_0x4e5f63[_0x5c756b(0xca)](':'))continue;const _0xc7304d=_0x4e5f63[_0x5c756b(0xd4)](':');if(_0xc7304d===-0x1)continue;const _0x3b1890=_0x4e5f63[_0x5c756b(0xcc)](0x0,_0xc7304d);let _0x23a815=_0x4e5f63[_0x5c756b(0xcc)](_0xc7304d+0x1);_0x23a815['startsWith']('\x20')&&(_0x23a815=_0x23a815['slice'](0x1));switch(_0x3b1890){case _0x5c756b(0xd2):_0x358d4b[_0x5c756b(0xd2)]=_0x23a815;break;case _0x5c756b(0xce):_0x358d4b[_0x5c756b(0xce)]=_0x358d4b[_0x5c756b(0xce)]?_0x358d4b[_0x5c756b(0xce)]+'\x0a'+_0x23a815:_0x23a815;break;case'id':_0x358d4b['id']=_0x23a815;break;}}}}finally{_0x5afe79[_0x5c756b(0xcd)]();}}function a77_0x2df3(){const _0x5f81d3=['getReader','split','2479140VATHAW','13223187MVoKzh','10uFcBQZ','4zRXGbq','pop','493311zmGNWJ','startsWith','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','slice','releaseLock','data','203332LscEHg','636117EipMjc','41597KpIOae','event','Response\x20body\x20is\x20null','indexOf','5764464CntUwv','parse'];a77_0x2df3=function(){return _0x5f81d3;};return a77_0x2df3();}function a77_0x574e(_0x2ce473,_0x4c4746){const _0x2df30e=a77_0x2df3();return a77_0x574e=function(_0x574e90,_0x35f4ce){_0x574e90=_0x574e90-0xc9;let _0x1aa03f=_0x2df30e[_0x574e90];return _0x1aa03f;},a77_0x574e(_0x2ce473,_0x4c4746);}function parseSSEData(_0x33e120){const _0x5c4ad7=a77_0x574e;try{return JSON[_0x5c4ad7(0xd6)](_0x33e120);}catch(_0x3e1fa7){throw new Error(_0x5c4ad7(0xcb)+_0x33e120,{'cause':_0x3e1fa7});}}
1
+ (function(_0x416648,_0x45b421){const _0x344f1d=a77_0x50da,_0xa273d9=_0x416648();while(!![]){try{const _0x2cc8d1=parseInt(_0x344f1d(0x154))/0x1+parseInt(_0x344f1d(0x15c))/0x2+parseInt(_0x344f1d(0x150))/0x3+-parseInt(_0x344f1d(0x14c))/0x4+parseInt(_0x344f1d(0x153))/0x5*(parseInt(_0x344f1d(0x155))/0x6)+-parseInt(_0x344f1d(0x14f))/0x7+-parseInt(_0x344f1d(0x159))/0x8*(parseInt(_0x344f1d(0x14e))/0x9);if(_0x2cc8d1===_0x45b421)break;else _0xa273d9['push'](_0xa273d9['shift']());}catch(_0x54c4a0){_0xa273d9['push'](_0xa273d9['shift']());}}}(a77_0x357d,0x39cc9));function a77_0x357d(){const _0x297af6=['indexOf','getReader','startsWith','slice','Response\x20body\x20is\x20null','805060tYblrG','parse','117bZRlwq','419930wjuekw','30579sVNARW','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','70055SkgkyU','193702UnYIQF','102gOdNWa','body','data','releaseLock','944BHIHww','event','decode','114904DqAFxD'];a77_0x357d=function(){return _0x297af6;};return a77_0x357d();}export async function*parseSSEStream(_0x11d68b){const _0x566054=a77_0x50da;if(!_0x11d68b[_0x566054(0x156)])throw new Error(_0x566054(0x14b));const _0x513f37=_0x11d68b[_0x566054(0x156)][_0x566054(0x15e)](),_0x10a724=new TextDecoder();let _0x17f2d1='',_0x25a83={};try{while(!![]){const {done:_0x1d0762,value:_0x52d62a}=await _0x513f37['read']();if(_0x1d0762){_0x25a83[_0x566054(0x157)]&&(yield parseSSEData(_0x25a83[_0x566054(0x157)]));break;}_0x17f2d1+=_0x10a724[_0x566054(0x15b)](_0x52d62a,{'stream':!![]});const _0x3a7253=_0x17f2d1[_0x566054(0x152)]('\x0a');_0x17f2d1=_0x3a7253['pop']()||'';for(const _0x25975b of _0x3a7253){if(_0x25975b['trim']()===''){_0x25a83[_0x566054(0x157)]&&(yield parseSSEData(_0x25a83[_0x566054(0x157)]),_0x25a83={});continue;}if(_0x25975b[_0x566054(0x149)](':'))continue;const _0xf8dd6b=_0x25975b[_0x566054(0x15d)](':');if(_0xf8dd6b===-0x1)continue;const _0x2f0cd6=_0x25975b[_0x566054(0x14a)](0x0,_0xf8dd6b);let _0x4b632b=_0x25975b[_0x566054(0x14a)](_0xf8dd6b+0x1);_0x4b632b[_0x566054(0x149)]('\x20')&&(_0x4b632b=_0x4b632b[_0x566054(0x14a)](0x1));switch(_0x2f0cd6){case'event':_0x25a83[_0x566054(0x15a)]=_0x4b632b;break;case _0x566054(0x157):_0x25a83[_0x566054(0x157)]=_0x25a83['data']?_0x25a83[_0x566054(0x157)]+'\x0a'+_0x4b632b:_0x4b632b;break;case'id':_0x25a83['id']=_0x4b632b;break;}}}}finally{_0x513f37[_0x566054(0x158)]();}}function a77_0x50da(_0x53744d,_0x221129){const _0x357d6d=a77_0x357d();return a77_0x50da=function(_0x50dadf,_0x281633){_0x50dadf=_0x50dadf-0x149;let _0x476e14=_0x357d6d[_0x50dadf];return _0x476e14;},a77_0x50da(_0x53744d,_0x221129);}function parseSSEData(_0x5742e4){const _0x139c71=a77_0x50da;try{return JSON[_0x139c71(0x14d)](_0x5742e4);}catch(_0x3b4fa2){throw new Error(_0x139c71(0x151)+_0x5742e4,{'cause':_0x3b4fa2});}}
@@ -1 +1 @@
1
- (function(_0x5d375f,_0x2cec03){const _0x448d7f=a78_0x3aa4,_0x3ec483=_0x5d375f();while(!![]){try{const _0x195467=-parseInt(_0x448d7f(0x1c3))/0x1*(-parseInt(_0x448d7f(0x1d2))/0x2)+parseInt(_0x448d7f(0x1c6))/0x3*(parseInt(_0x448d7f(0x1d7))/0x4)+parseInt(_0x448d7f(0x1c0))/0x5+parseInt(_0x448d7f(0x1d8))/0x6*(-parseInt(_0x448d7f(0x1d4))/0x7)+-parseInt(_0x448d7f(0x1c4))/0x8*(-parseInt(_0x448d7f(0x1cc))/0x9)+parseInt(_0x448d7f(0x1d5))/0xa*(-parseInt(_0x448d7f(0x1c1))/0xb)+parseInt(_0x448d7f(0x1c2))/0xc;if(_0x195467===_0x2cec03)break;else _0x3ec483['push'](_0x3ec483['shift']());}catch(_0x5001b9){_0x3ec483['push'](_0x3ec483['shift']());}}}(a78_0x338a,0x736b8));import a78_0x424a51 from'string-width';export function stringWidth(_0x189c82){return a78_0x424a51(_0x189c82);}export function padEnd(_0x3f03ef,_0x56ec29){const _0x4e13ee=a78_0x3aa4,_0x490534=stringWidth(_0x3f03ef);if(_0x490534>=_0x56ec29)return _0x3f03ef;return _0x3f03ef+'\x20'[_0x4e13ee(0x1c8)](_0x56ec29-_0x490534);}function a78_0x3aa4(_0x5b45be,_0x2abf5e){const _0x338a3f=a78_0x338a();return a78_0x3aa4=function(_0x3aa4ed,_0x24aef2){_0x3aa4ed=_0x3aa4ed-0x1c0;let _0x3b138f=_0x338a3f[_0x3aa4ed];return _0x3b138f;},a78_0x3aa4(_0x5b45be,_0x2abf5e);}export function padStart(_0x622700,_0x2276d4){const _0x1294c4=a78_0x3aa4,_0x46a74b=stringWidth(_0x622700);if(_0x46a74b>=_0x2276d4)return _0x622700;return'\x20'[_0x1294c4(0x1c8)](_0x2276d4-_0x46a74b)+_0x622700;}export function centerAlign(_0x2a79fd,_0x4698c0){const _0x45e226=a78_0x3aa4,_0x26f817=stringWidth(_0x2a79fd);if(_0x26f817>_0x4698c0){if(_0x4698c0<=0x1)return'…'[_0x45e226(0x1da)](0x0,_0x4698c0);let _0xeee4fc=_0x2a79fd;while(stringWidth(_0xeee4fc+'…')>_0x4698c0){_0xeee4fc=_0xeee4fc[_0x45e226(0x1cd)](0x0,-0x1);}return _0xeee4fc+'…';}if(_0x26f817===_0x4698c0)return _0x2a79fd;const _0x4b7f5e=_0x4698c0-_0x26f817,_0x13cd24=Math[_0x45e226(0x1d6)](_0x4b7f5e/0x2),_0x2e5b93=_0x4b7f5e-_0x13cd24;return'\x20'['repeat'](_0x13cd24)+_0x2a79fd+'\x20'[_0x45e226(0x1c8)](_0x2e5b93);}function a78_0x338a(){const _0xd02b06=['1288072Jpwgwt','trim','19533BVAEGH','toString','repeat','\x5c$&','USERNAME','random','45hUkrIx','slice','replace','env','length','toLowerCase','14604ZfNleU','Cannot\x20escape\x20empty\x20string\x20literal','295183iSSCDu','87110NEMAin','floor','328QLmYmB','66NGdHbf','USER','substring','unknown','test','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','628490zBHSyE','979VUbeNW','1565052KmFzGa','16BuwifL'];a78_0x338a=function(){return _0xd02b06;};return a78_0x338a();}export function escapeStringLiteral(_0x26457e){const _0x438d2a=a78_0x3aa4;if(!_0x26457e||_0x26457e[_0x438d2a(0x1c5)]()[_0x438d2a(0x1d0)]===0x0)throw new Error(_0x438d2a(0x1d3));const _0x59ba7e=_0x26457e['replace'](/'/g,'\x27\x27');return'\x27'+_0x59ba7e+'\x27';}export function globToLike(_0x2cba50){const _0x3d03e6=a78_0x3aa4;let _0x45de41=_0x2cba50['replace'](/\\/g,'\x5c\x5c')[_0x3d03e6(0x1ce)](/%/g,'\x5c%')[_0x3d03e6(0x1ce)](/_/g,'\x5c_');return _0x45de41=_0x45de41[_0x3d03e6(0x1ce)](/\*/g,'%')['replace'](/\?/g,'_'),_0x45de41;}export function buildLikePattern(_0x4796d5){const _0xd679cf=a78_0x3aa4;if(!_0x4796d5||_0x4796d5[_0xd679cf(0x1c5)]()[_0xd679cf(0x1d0)]===0x0)throw new Error(_0xd679cf(0x1dd));const _0x2a2778=globToLike(_0x4796d5),_0x2c8b87=_0x2a2778[_0xd679cf(0x1ce)](/'/g,'\x27\x27');return'\x27'+_0x2c8b87+'\x27';}export function matchGlobPattern(_0x2f4e47,_0x39c135){const _0x31beb8=a78_0x3aa4,_0x4dee1e=_0x39c135[_0x31beb8(0x1ce)](/[.+^${}()|[\]\\]/g,_0x31beb8(0x1c9))[_0x31beb8(0x1ce)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x57a44d=new RegExp('^'+_0x4dee1e+'$');return _0x57a44d[_0x31beb8(0x1dc)](_0x2f4e47);}export function getSanitizedUsername(){const _0x334281=a78_0x3aa4,_0x32ebb7=process['env'][_0x334281(0x1d9)]||process[_0x334281(0x1cf)][_0x334281(0x1ca)]||_0x334281(0x1db);return _0x32ebb7[_0x334281(0x1ce)](/[^a-zA-Z0-9]/g,'')[_0x334281(0x1d1)]();}export function generateRandomHex(){const _0x353323=a78_0x3aa4,_0x5561e3=Math['floor'](Math[_0x353323(0x1cb)]()*0xfffff);return _0x5561e3[_0x353323(0x1c7)](0x10)['padStart'](0x5,'0');}
1
+ (function(_0x465aab,_0x11f87){const _0x2f6f73=a78_0x462f,_0xd0f8e9=_0x465aab();while(!![]){try{const _0x39c617=-parseInt(_0x2f6f73(0x156))/0x1+parseInt(_0x2f6f73(0x15e))/0x2+-parseInt(_0x2f6f73(0x166))/0x3+-parseInt(_0x2f6f73(0x164))/0x4*(-parseInt(_0x2f6f73(0x151))/0x5)+parseInt(_0x2f6f73(0x162))/0x6*(-parseInt(_0x2f6f73(0x153))/0x7)+parseInt(_0x2f6f73(0x165))/0x8+parseInt(_0x2f6f73(0x167))/0x9*(parseInt(_0x2f6f73(0x161))/0xa);if(_0x39c617===_0x11f87)break;else _0xd0f8e9['push'](_0xd0f8e9['shift']());}catch(_0x33febb){_0xd0f8e9['push'](_0xd0f8e9['shift']());}}}(a78_0x1870,0xa1e2d));import a78_0x32a293 from'string-width';function a78_0x462f(_0x200ee7,_0x4942df){const _0x187078=a78_0x1870();return a78_0x462f=function(_0x462fc7,_0x2001a9){_0x462fc7=_0x462fc7-0x151;let _0x26fb95=_0x187078[_0x462fc7];return _0x26fb95;},a78_0x462f(_0x200ee7,_0x4942df);}export function stringWidth(_0x55feff){return a78_0x32a293(_0x55feff);}export function padEnd(_0x4e00df,_0x197f3a){const _0x126361=a78_0x462f,_0x3c5da5=stringWidth(_0x4e00df);if(_0x3c5da5>=_0x197f3a)return _0x4e00df;return _0x4e00df+'\x20'[_0x126361(0x152)](_0x197f3a-_0x3c5da5);}export function padStart(_0x57b4d8,_0x177f79){const _0x4525fe=a78_0x462f,_0x1515ad=stringWidth(_0x57b4d8);if(_0x1515ad>=_0x177f79)return _0x57b4d8;return'\x20'[_0x4525fe(0x152)](_0x177f79-_0x1515ad)+_0x57b4d8;}export function centerAlign(_0x4916ae,_0x39d247){const _0x19a7c7=a78_0x462f,_0x149ea3=stringWidth(_0x4916ae);if(_0x149ea3>_0x39d247){if(_0x39d247<=0x1)return'…'[_0x19a7c7(0x155)](0x0,_0x39d247);let _0x228ec9=_0x4916ae;while(stringWidth(_0x228ec9+'…')>_0x39d247){_0x228ec9=_0x228ec9[_0x19a7c7(0x15f)](0x0,-0x1);}return _0x228ec9+'…';}if(_0x149ea3===_0x39d247)return _0x4916ae;const _0x23e8e8=_0x39d247-_0x149ea3,_0x1a96a8=Math[_0x19a7c7(0x15b)](_0x23e8e8/0x2),_0x518f9c=_0x23e8e8-_0x1a96a8;return'\x20'[_0x19a7c7(0x152)](_0x1a96a8)+_0x4916ae+'\x20'[_0x19a7c7(0x152)](_0x518f9c);}export function escapeStringLiteral(_0xb3a471){const _0x138970=a78_0x462f;if(!_0xb3a471||_0xb3a471[_0x138970(0x168)]()[_0x138970(0x159)]===0x0)throw new Error(_0x138970(0x163));const _0x3a10ab=_0xb3a471[_0x138970(0x15a)](/'/g,'\x27\x27');return'\x27'+_0x3a10ab+'\x27';}function a78_0x1870(){const _0x1a2cb3=['80136hoVymW','slice','unknown','12030YfahqW','118878iysoUj','Cannot\x20escape\x20empty\x20string\x20literal','20XwvMWY','8777552VELevv','3743757QzPMyI','11538aPgZUz','trim','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','441955UMjiJg','repeat','329cMapVz','padStart','substring','279248HxhxXR','toString','env','length','replace','floor','\x5c$&','USERNAME'];a78_0x1870=function(){return _0x1a2cb3;};return a78_0x1870();}export function globToLike(_0x3d54f6){const _0x47a30f=a78_0x462f;let _0x273bf2=_0x3d54f6[_0x47a30f(0x15a)](/\\/g,'\x5c\x5c')[_0x47a30f(0x15a)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x273bf2=_0x273bf2[_0x47a30f(0x15a)](/\*/g,'%')['replace'](/\?/g,'_'),_0x273bf2;}export function buildLikePattern(_0x27b9fd){const _0x74de87=a78_0x462f;if(!_0x27b9fd||_0x27b9fd[_0x74de87(0x168)]()[_0x74de87(0x159)]===0x0)throw new Error(_0x74de87(0x169));const _0x56b744=globToLike(_0x27b9fd),_0x1c4e3c=_0x56b744['replace'](/'/g,'\x27\x27');return'\x27'+_0x1c4e3c+'\x27';}export function matchGlobPattern(_0x5f39cc,_0x232c02){const _0x56f6c4=a78_0x462f,_0x4cc3bd=_0x232c02[_0x56f6c4(0x15a)](/[.+^${}()|[\]\\]/g,_0x56f6c4(0x15c))[_0x56f6c4(0x15a)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x52e9d1=new RegExp('^'+_0x4cc3bd+'$');return _0x52e9d1['test'](_0x5f39cc);}export function getSanitizedUsername(){const _0x5792fa=a78_0x462f,_0x4ce3a2=process['env']['USER']||process[_0x5792fa(0x158)][_0x5792fa(0x15d)]||_0x5792fa(0x160);return _0x4ce3a2['replace'](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x424d5b=a78_0x462f,_0x400f61=Math['floor'](Math['random']()*0xfffff);return _0x400f61[_0x424d5b(0x157)](0x10)[_0x424d5b(0x154)](0x5,'0');}
@@ -1 +1 @@
1
- function a79_0x3bc1(_0x2e0485,_0x381de6){const _0x51ba77=a79_0x51ba();return a79_0x3bc1=function(_0x3bc102,_0x4112ce){_0x3bc102=_0x3bc102-0xb3;let _0x4ab172=_0x51ba77[_0x3bc102];return _0x4ab172;},a79_0x3bc1(_0x2e0485,_0x381de6);}(function(_0x33674f,_0x5437dc){const _0x2beec8=a79_0x3bc1,_0x2db93f=_0x33674f();while(!![]){try{const _0x3e1412=-parseInt(_0x2beec8(0xb4))/0x1*(-parseInt(_0x2beec8(0xc5))/0x2)+parseInt(_0x2beec8(0xc0))/0x3+parseInt(_0x2beec8(0xbb))/0x4+-parseInt(_0x2beec8(0xc8))/0x5*(parseInt(_0x2beec8(0xb5))/0x6)+parseInt(_0x2beec8(0xc9))/0x7*(-parseInt(_0x2beec8(0xc3))/0x8)+-parseInt(_0x2beec8(0xb8))/0x9+parseInt(_0x2beec8(0xc7))/0xa;if(_0x3e1412===_0x5437dc)break;else _0x2db93f['push'](_0x2db93f['shift']());}catch(_0x59c6e6){_0x2db93f['push'](_0x2db93f['shift']());}}}(a79_0x51ba,0xddb8e));function hasWildcard(_0x2d5aa8){const _0x49ee31=a79_0x3bc1;return _0x2d5aa8[_0x49ee31(0xbe)]('*')||_0x2d5aa8[_0x49ee31(0xbe)]('?');}export function parseTableReference(_0x28430b){const _0x182211=a79_0x3bc1;if(!_0x28430b||_0x28430b['trim']()[_0x182211(0xb6)]===0x0)throw new Error(_0x182211(0xc6));const _0x3e0041=_0x28430b[_0x182211(0xbd)](),_0x34e34c={'original':_0x3e0041},_0x56737a=_0x3e0041['split']('.');if(_0x56737a['length']===0x1){const _0x445f4a=_0x56737a[0x0];if(!_0x445f4a)throw new Error(_0x182211(0xb3));_0x34e34c[_0x182211(0xc1)]=_0x445f4a;}else{if(_0x56737a[_0x182211(0xb6)]===0x2){const [_0x2535a4,_0x5e82de]=_0x56737a;if(!_0x2535a4)throw new Error(_0x182211(0xb9));if(!_0x5e82de)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x34e34c[_0x182211(0xc2)]=_0x2535a4,_0x34e34c[_0x182211(0xc1)]=_0x5e82de;}else{if(_0x56737a[_0x182211(0xb6)]===0x3){const [_0x4ab168,_0xb1836c,_0x16999c]=_0x56737a;if(!_0x4ab168||!_0xb1836c||!_0x16999c)throw new Error(_0x182211(0xbf));_0x34e34c['catalog']=_0x4ab168,_0x34e34c[_0x182211(0xc2)]=_0xb1836c,_0x34e34c[_0x182211(0xc1)]=_0x16999c;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x34e34c;}function a79_0x51ba(){const _0x35e24c=['Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','1813606sLTrmk','6eDcMtj','length','push','13221738fdKmBX','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','4835028dxezpg','catalog','trim','includes','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','95427WSbVzQ','table','database','8QIPEfo','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','2uKoyuO','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','20139820MtJgGu','8914090RkeIaG','6356560rNzkFr'];a79_0x51ba=function(){return _0x35e24c;};return a79_0x51ba();}export function formatTableReference(_0x358b5d){const _0x82264d=a79_0x3bc1,_0x446918=[];return _0x358b5d[_0x82264d(0xbc)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d['catalog']),_0x358b5d[_0x82264d(0xc2)]&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc2)]),_0x358b5d['table']&&_0x446918[_0x82264d(0xb7)](_0x358b5d[_0x82264d(0xc1)]),_0x446918['join']('.');}export function validateTableListReference(_0xa903b0){return undefined;}export function validateTableDescribeReference(_0x3e81df){const _0x54b77f=a79_0x3bc1;if(!_0x3e81df['table'])return _0x54b77f(0xba);if(_0x3e81df[_0x54b77f(0xc2)]&&hasWildcard(_0x3e81df[_0x54b77f(0xc2)]))return _0x54b77f(0xca);if(hasWildcard(_0x3e81df['table']))return _0x54b77f(0xc4);return undefined;}
1
+ (function(_0x343eab,_0x3c43d1){const _0x83880d=a79_0x25d1,_0x4b1f53=_0x343eab();while(!![]){try{const _0x38bf55=parseInt(_0x83880d(0x1fc))/0x1+parseInt(_0x83880d(0x203))/0x2+parseInt(_0x83880d(0x1f3))/0x3*(parseInt(_0x83880d(0x1f1))/0x4)+-parseInt(_0x83880d(0x1ef))/0x5+-parseInt(_0x83880d(0x202))/0x6+-parseInt(_0x83880d(0x1fb))/0x7+parseInt(_0x83880d(0x1fa))/0x8;if(_0x38bf55===_0x3c43d1)break;else _0x4b1f53['push'](_0x4b1f53['shift']());}catch(_0xfbf096){_0x4b1f53['push'](_0x4b1f53['shift']());}}}(a79_0x3342,0x1fced));function a79_0x3342(){const _0x4bcd20=['trim','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','push','863808qxjAJV','236096YakPbu','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1048510PvHnoE','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','120cFCwvM','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','4203tDvbxt','database','table','catalog','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','1551264vBMNMw','502117gGqBCE','201700lkQMpQ','includes','length'];a79_0x3342=function(){return _0x4bcd20;};return a79_0x3342();}function hasWildcard(_0x18a504){const _0x59fd68=a79_0x25d1;return _0x18a504[_0x59fd68(0x1fd)]('*')||_0x18a504[_0x59fd68(0x1fd)]('?');}export function parseTableReference(_0x4c6e01){const _0x339e47=a79_0x25d1;if(!_0x4c6e01||_0x4c6e01[_0x339e47(0x1ff)]()[_0x339e47(0x1fe)]===0x0)throw new Error(_0x339e47(0x1f9));const _0x26f09c=_0x4c6e01[_0x339e47(0x1ff)](),_0x2921fb={'original':_0x26f09c},_0x12a68f=_0x26f09c['split']('.');if(_0x12a68f[_0x339e47(0x1fe)]===0x1){const _0x240730=_0x12a68f[0x0];if(!_0x240730)throw new Error(_0x339e47(0x1f8));_0x2921fb[_0x339e47(0x1f5)]=_0x240730;}else{if(_0x12a68f['length']===0x2){const [_0x12c2c6,_0x9eea58]=_0x12a68f;if(!_0x12c2c6)throw new Error(_0x339e47(0x1f2));if(!_0x9eea58)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x2921fb[_0x339e47(0x1f4)]=_0x12c2c6,_0x2921fb[_0x339e47(0x1f5)]=_0x9eea58;}else{if(_0x12a68f[_0x339e47(0x1fe)]===0x3){const [_0x4a9d84,_0x42a29a,_0x48693d]=_0x12a68f;if(!_0x4a9d84||!_0x42a29a||!_0x48693d)throw new Error(_0x339e47(0x1f0));_0x2921fb[_0x339e47(0x1f6)]=_0x4a9d84,_0x2921fb[_0x339e47(0x1f4)]=_0x42a29a,_0x2921fb['table']=_0x48693d;}else throw new Error(_0x339e47(0x204));}}return _0x2921fb;}export function formatTableReference(_0x15e63b){const _0x1f02ec=a79_0x25d1,_0x4221be=[];return _0x15e63b['catalog']&&_0x4221be['push'](_0x15e63b[_0x1f02ec(0x1f6)]),_0x15e63b[_0x1f02ec(0x1f4)]&&_0x4221be[_0x1f02ec(0x201)](_0x15e63b[_0x1f02ec(0x1f4)]),_0x15e63b[_0x1f02ec(0x1f5)]&&_0x4221be[_0x1f02ec(0x201)](_0x15e63b[_0x1f02ec(0x1f5)]),_0x4221be['join']('.');}function a79_0x25d1(_0x1a9923,_0x1ee608){const _0x334279=a79_0x3342();return a79_0x25d1=function(_0x25d1aa,_0x27c81f){_0x25d1aa=_0x25d1aa-0x1ef;let _0x5e8cf0=_0x334279[_0x25d1aa];return _0x5e8cf0;},a79_0x25d1(_0x1a9923,_0x1ee608);}export function validateTableListReference(_0xa2b75d){return undefined;}export function validateTableDescribeReference(_0x13dadb){const _0x5e4337=a79_0x25d1;if(!_0x13dadb[_0x5e4337(0x1f5)])return _0x5e4337(0x200);if(_0x13dadb[_0x5e4337(0x1f4)]&&hasWildcard(_0x13dadb[_0x5e4337(0x1f4)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x13dadb[_0x5e4337(0x1f5)]))return _0x5e4337(0x1f7);return undefined;}
@@ -1 +1 @@
1
- const a80_0x3aa41f=a80_0x307d;(function(_0x3b92f2,_0x4930ec){const _0x247c63=a80_0x307d,_0x35db6e=_0x3b92f2();while(!![]){try{const _0x3b6bc3=-parseInt(_0x247c63(0xc2))/0x1+parseInt(_0x247c63(0xc7))/0x2*(parseInt(_0x247c63(0xc3))/0x3)+parseInt(_0x247c63(0xc6))/0x4*(parseInt(_0x247c63(0xc1))/0x5)+parseInt(_0x247c63(0xf2))/0x6*(parseInt(_0x247c63(0xec))/0x7)+-parseInt(_0x247c63(0xcf))/0x8*(-parseInt(_0x247c63(0xe1))/0x9)+-parseInt(_0x247c63(0xc5))/0xa*(-parseInt(_0x247c63(0xcc))/0xb)+-parseInt(_0x247c63(0xde))/0xc*(parseInt(_0x247c63(0xf3))/0xd);if(_0x3b6bc3===_0x4930ec)break;else _0x35db6e['push'](_0x35db6e['shift']());}catch(_0x32f3e6){_0x35db6e['push'](_0x35db6e['shift']());}}}(a80_0x45c1,0x4f3d9));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a80_0x307d(_0x161aca,_0x2efe13){const _0x45c176=a80_0x45c1();return a80_0x307d=function(_0x307d43,_0x378358){_0x307d43=_0x307d43-0xc1;let _0x54208d=_0x45c176[_0x307d43];return _0x54208d;},a80_0x307d(_0x161aca,_0x2efe13);}import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x20199d from'chalk';function safeStringify(_0x3da47c){const _0x4ceba4=a80_0x307d;if(typeof _0x3da47c===_0x4ceba4(0xdd))return _0x3da47c;if(_0x3da47c instanceof Error)return _0x3da47c[_0x4ceba4(0xf9)]||_0x3da47c[_0x4ceba4(0xe6)]+':\x20'+_0x3da47c['message'];try{return JSON['stringify'](_0x3da47c,(_0x2f7b92,_0x4147d9)=>{const _0xcb0f14=_0x4ceba4;if(_0x4147d9 instanceof Error)return{'name':_0x4147d9[_0xcb0f14(0xe6)],'message':_0x4147d9[_0xcb0f14(0xd9)],'stack':_0x4147d9[_0xcb0f14(0xf9)],'cause':_0x4147d9[_0xcb0f14(0xd3)]};return _0x4147d9;});}catch{return String(_0x3da47c);}}function getTimezoneOffset(){const _0x43d7cf=a80_0x307d,_0xbb5f3a=-new Date()[_0x43d7cf(0xc4)](),_0x4d82a7=Math['floor'](Math[_0x43d7cf(0xf7)](_0xbb5f3a)/0x3c),_0x1117a2=Math[_0x43d7cf(0xf7)](_0xbb5f3a)%0x3c,_0x412add=_0xbb5f3a>=0x0?'+':'-';return''+_0x412add+_0x4d82a7[_0x43d7cf(0xdf)]()[_0x43d7cf(0xd5)](0x2,'0')+_0x1117a2[_0x43d7cf(0xdf)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x269ede=a80_0x307d,_0x1ac33f=new Date(),_0x4232e1=_0x1ac33f[_0x269ede(0xcd)](),_0x3a45f9=(_0x1ac33f[_0x269ede(0xdc)]()+0x1)[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x3b29f6=_0x1ac33f['getDate']()[_0x269ede(0xdf)]()['padStart'](0x2,'0'),_0x6807bd=_0x1ac33f[_0x269ede(0xe9)]()['toString']()[_0x269ede(0xd5)](0x2,'0'),_0x571fd4=_0x1ac33f['getMinutes']()['toString']()['padStart'](0x2,'0'),_0x147ada=_0x1ac33f['getSeconds']()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x2,'0'),_0x430391=_0x1ac33f[_0x269ede(0x100)]()[_0x269ede(0xdf)]()[_0x269ede(0xd5)](0x3,'0'),_0x4a0d2c=getTimezoneOffset();return _0x4232e1+'-'+_0x3a45f9+'-'+_0x3b29f6+'\x20'+_0x6807bd+':'+_0x571fd4+':'+_0x147ada+'.'+_0x430391+_0x4a0d2c;}function formatColoredLogEntry(_0x844e09,_0x3a66d6){const _0x4bcd9e=a80_0x307d,_0x1f7384=formatTimestamp(),_0x40e602=_0x3a66d6[_0x4bcd9e(0xfe)](safeStringify)[_0x4bcd9e(0xc9)]('\x20'),_0x4cab00=a80_0x20199d[_0x4bcd9e(0xe8)](_0x1f7384);let _0x29973f;switch(_0x844e09){case _0x4bcd9e(0xfb):_0x29973f=a80_0x20199d[_0x4bcd9e(0xd8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfd):_0x29973f=a80_0x20199d[_0x4bcd9e(0xc8)]('['+_0x844e09+']\x20');break;case _0x4bcd9e(0xfc):_0x29973f=a80_0x20199d[_0x4bcd9e(0xea)]('['+_0x844e09+']');break;case _0x4bcd9e(0xda):_0x29973f=a80_0x20199d[_0x4bcd9e(0xe8)]('['+_0x844e09+']');break;default:_0x29973f='['+_0x844e09+']';}return _0x4cab00+'\x20'+_0x29973f+'\x20'+_0x40e602;}export var LogLevel;function a80_0x45c1(){const _0xe163c3=['12XlGVld','1752569UvzpFL','filter','mtime','Proxy\x20session\x20ended','abs','Proxy\x20server\x20started','stack','logs','info','error','warn','map','TRACE','getMilliseconds','2507025KmXMuJ','241363xdEPTH','66lfMeez','getTimezoneOffset','590KhSnMt','4qsANwv','57606NtQyNB','yellow','join','init','INFO','8107KZIvvm','getFullYear','DEBUG','8jhVgpr','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','getLogPath','proxy.log','cause','ERROR','padStart','end','WARN','cyan','message','debug','logLevel','getMonth','string','60PBHaLc','toString','write','506295FSFuXc','split','proxy-','.cache','.log','name','rotateOldLogs','gray','getHours','red','tdx','18158tcqWEX','logDir','trace','fileOnly','Warning:\x20Error\x20writing\x20to\x20proxy.log:','logStream'];a80_0x45c1=function(){return _0xe163c3;};return a80_0x45c1();}(function(_0x528c9b){const _0x5d8726=a80_0x307d;_0x528c9b[_0x528c9b[_0x5d8726(0xff)]=-0x2]=_0x5d8726(0xff),_0x528c9b[_0x528c9b['DEBUG']=-0x1]=_0x5d8726(0xce),_0x528c9b[_0x528c9b['INFO']=0x0]='INFO',_0x528c9b[_0x528c9b[_0x5d8726(0xd7)]=0x1]=_0x5d8726(0xd7),_0x528c9b[_0x528c9b[_0x5d8726(0xd4)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a80_0x3aa41f(0xf1)];[a80_0x3aa41f(0xed)];['logLevel'];[a80_0x3aa41f(0xef)];constructor(_0x1d59db=LogLevel[a80_0x3aa41f(0xcb)],_0x4da62c=![]){const _0x5da9be=a80_0x3aa41f;this['logDir']=join(homedir(),_0x5da9be(0xe4),_0x5da9be(0xeb),_0x5da9be(0xfa)),this[_0x5da9be(0xdb)]=_0x1d59db,this[_0x5da9be(0xef)]=_0x4da62c;}async[a80_0x3aa41f(0xca)](){const _0x27d772=a80_0x3aa41f;try{await mkdir(this[_0x27d772(0xed)],{'recursive':!![]}),await this[_0x27d772(0xe7)]();const _0x2b826c=join(this[_0x27d772(0xed)],_0x27d772(0xd2));this[_0x27d772(0xf1)]=createWriteStream(_0x2b826c,{'flags':'a'}),this[_0x27d772(0xf1)]['on'](_0x27d772(0xfc),_0x1ff279=>{const _0x4b6ff4=_0x27d772;console['error'](_0x4b6ff4(0xf0),_0x1ff279[_0x4b6ff4(0xd9)]);}),this['info'](_0x27d772(0xf8));}catch(_0x473068){console['error'](_0x27d772(0xd0),_0x473068);}}async[a80_0x3aa41f(0xe7)](){const _0xb77364=a80_0x3aa41f;try{const _0x4c231f=await readdir(this['logDir']),_0x51133e=new Date()['toISOString']()['split']('T')[0x0];if(_0x4c231f['includes']('proxy.log')){const _0x80628b=join(this[_0xb77364(0xed)],_0xb77364(0xd2)),_0x20682f=await stat(_0x80628b),_0x3458e9=new Date(_0x20682f[_0xb77364(0xf5)])['toISOString']()[_0xb77364(0xe2)]('T')[0x0];if(_0x3458e9<_0x51133e){const _0x44f6df=join(this['logDir'],_0xb77364(0xe3)+_0x3458e9+_0xb77364(0xe5));await rename(_0x80628b,_0x44f6df);}}const _0x213c81=await readdir(this[_0xb77364(0xed)]),_0x1e7255=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x521585=_0x213c81[_0xb77364(0xf4)](_0x54b9ad=>_0x1e7255['test'](_0x54b9ad));for(const _0x87c6fa of _0x521585){const _0x3d6c94=join(this['logDir'],_0x87c6fa),_0x5dc235=join(this['logDir'],_0x87c6fa+'.gz');try{await pipeline(createReadStream(_0x3d6c94),createGzip(),createWriteStream(_0x5dc235)),await unlink(_0x3d6c94);}catch(_0x2f89f3){console[_0xb77364(0xfc)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x87c6fa+':',_0x2f89f3);}}}catch{}}[a80_0x3aa41f(0xda)](..._0x50132a){const _0x20b25f=a80_0x3aa41f;if(this['logLevel']>LogLevel['DEBUG'])return;const _0x91836=formatColoredLogEntry(_0x20b25f(0xda),_0x50132a);this['logStream']?.[_0x20b25f(0xe0)](_0x91836+'\x0a');}[a80_0x3aa41f(0xee)](..._0x26430d){const _0x3fa6c0=a80_0x3aa41f;if(this[_0x3fa6c0(0xdb)]>LogLevel[_0x3fa6c0(0xff)])return;const _0xfed187=formatColoredLogEntry(_0x3fa6c0(0xee),_0x26430d);this[_0x3fa6c0(0xf1)]?.[_0x3fa6c0(0xe0)](_0xfed187+'\x0a');}[a80_0x3aa41f(0xfb)](..._0x4dc37d){const _0x599cb6=a80_0x3aa41f;if(this[_0x599cb6(0xdb)]>LogLevel[_0x599cb6(0xcb)])return;const _0xa1a645=formatColoredLogEntry(_0x599cb6(0xfb),_0x4dc37d);!this[_0x599cb6(0xef)]&&console['log'](_0xa1a645),this[_0x599cb6(0xf1)]?.[_0x599cb6(0xe0)](_0xa1a645+'\x0a');}[a80_0x3aa41f(0xfd)](..._0x1484c4){const _0x4b2b48=a80_0x3aa41f;if(this[_0x4b2b48(0xdb)]>LogLevel[_0x4b2b48(0xd7)])return;const _0x104f60=formatColoredLogEntry(_0x4b2b48(0xfd),_0x1484c4);!this[_0x4b2b48(0xef)]&&console['error'](_0x104f60),this[_0x4b2b48(0xf1)]?.[_0x4b2b48(0xe0)](_0x104f60+'\x0a');}[a80_0x3aa41f(0xfc)](..._0x168dc4){const _0x551100=a80_0x3aa41f,_0xbd0c7a=formatColoredLogEntry(_0x551100(0xfc),_0x168dc4);!this[_0x551100(0xef)]&&console['error'](_0xbd0c7a),this[_0x551100(0xf1)]?.[_0x551100(0xe0)](_0xbd0c7a+'\x0a');}async['close'](){const _0x42cd90=a80_0x3aa41f;return this[_0x42cd90(0xfb)](_0x42cd90(0xf6)),new Promise(_0x4090c9=>{const _0x29d587=_0x42cd90;this[_0x29d587(0xf1)]?this[_0x29d587(0xf1)][_0x29d587(0xd6)](()=>{_0x4090c9();}):_0x4090c9();});}[a80_0x3aa41f(0xd1)](){const _0x13e191=a80_0x3aa41f;return join(this[_0x13e191(0xed)],_0x13e191(0xd2));}}
1
+ const a80_0x50fafb=a80_0xdd7a;(function(_0x79cdd6,_0x5f1bf1){const _0x453b9e=a80_0xdd7a,_0x5f2f01=_0x79cdd6();while(!![]){try{const _0x2da780=parseInt(_0x453b9e(0x130))/0x1+parseInt(_0x453b9e(0x168))/0x2*(-parseInt(_0x453b9e(0x134))/0x3)+parseInt(_0x453b9e(0x167))/0x4*(-parseInt(_0x453b9e(0x169))/0x5)+-parseInt(_0x453b9e(0x15e))/0x6+-parseInt(_0x453b9e(0x14e))/0x7+-parseInt(_0x453b9e(0x14a))/0x8+parseInt(_0x453b9e(0x161))/0x9*(parseInt(_0x453b9e(0x12c))/0xa);if(_0x2da780===_0x5f1bf1)break;else _0x5f2f01['push'](_0x5f2f01['shift']());}catch(_0x41c49f){_0x5f2f01['push'](_0x5f2f01['shift']());}}}(a80_0x12dd,0x5b0c1));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';function a80_0xdd7a(_0x1a9e29,_0x47aa25){const _0x12dd34=a80_0x12dd();return a80_0xdd7a=function(_0xdd7a5c,_0xfa776b){_0xdd7a5c=_0xdd7a5c-0x12b;let _0x5de272=_0x12dd34[_0xdd7a5c];return _0x5de272;},a80_0xdd7a(_0x1a9e29,_0x47aa25);}function a80_0x12dd(){const _0x55e7ed=['write','DEBUG','20IdpJjh','stringify','logs','getTimezoneOffset','70531IKtCqe','getMonth','INFO','getLogPath','788667ZtoLXQ','logStream','string','rotateOldLogs','Warning:\x20Failed\x20to\x20compress\x20','.gz','TRACE','proxy-','gray','split','.log','floor','test','abs','padStart','getFullYear','logLevel','ERROR','info','log','name','Warning:\x20Error\x20writing\x20to\x20proxy.log:','3373208prPQEM','init','yellow','getHours','4137588joOfkM','error','stack','mtime','getMilliseconds','message','warn','toISOString','getSeconds','Warning:\x20Failed\x20to\x20initialize\x20proxy\x20log\x20files:','getMinutes','logDir','WARN','debug','map','fileOnly','1964322CKGulZ','end','Proxy\x20server\x20started','10225557AYzisT','filter','includes','proxy.log','close','toString','50612tKPgYO','2bGdWzs','145tUKarB','cyan','Proxy\x20session\x20ended'];a80_0x12dd=function(){return _0x55e7ed;};return a80_0x12dd();}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a80_0x2ab0e8 from'chalk';function safeStringify(_0x301026){const _0x13ad01=a80_0xdd7a;if(typeof _0x301026===_0x13ad01(0x136))return _0x301026;if(_0x301026 instanceof Error)return _0x301026['stack']||_0x301026[_0x13ad01(0x148)]+':\x20'+_0x301026[_0x13ad01(0x153)];try{return JSON[_0x13ad01(0x12d)](_0x301026,(_0x3d47e9,_0x5d5d0d)=>{const _0x535ee1=_0x13ad01;if(_0x5d5d0d instanceof Error)return{'name':_0x5d5d0d['name'],'message':_0x5d5d0d[_0x535ee1(0x153)],'stack':_0x5d5d0d[_0x535ee1(0x150)],'cause':_0x5d5d0d['cause']};return _0x5d5d0d;});}catch{return String(_0x301026);}}function getTimezoneOffset(){const _0x3feca7=a80_0xdd7a,_0x45c836=-new Date()[_0x3feca7(0x12f)](),_0xd61502=Math[_0x3feca7(0x13f)](Math[_0x3feca7(0x141)](_0x45c836)/0x3c),_0x14daa2=Math[_0x3feca7(0x141)](_0x45c836)%0x3c,_0x2cd9ac=_0x45c836>=0x0?'+':'-';return''+_0x2cd9ac+_0xd61502['toString']()['padStart'](0x2,'0')+_0x14daa2[_0x3feca7(0x166)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x1e95f1=a80_0xdd7a,_0xba0eb4=new Date(),_0x3e13a8=_0xba0eb4[_0x1e95f1(0x143)](),_0x597cb1=(_0xba0eb4[_0x1e95f1(0x131)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x5e919b=_0xba0eb4['getDate']()[_0x1e95f1(0x166)]()[_0x1e95f1(0x142)](0x2,'0'),_0xc23eb1=_0xba0eb4[_0x1e95f1(0x14d)]()[_0x1e95f1(0x166)]()[_0x1e95f1(0x142)](0x2,'0'),_0x32be74=_0xba0eb4[_0x1e95f1(0x158)]()[_0x1e95f1(0x166)]()[_0x1e95f1(0x142)](0x2,'0'),_0x117380=_0xba0eb4[_0x1e95f1(0x156)]()['toString']()['padStart'](0x2,'0'),_0x4bcfc2=_0xba0eb4[_0x1e95f1(0x152)]()[_0x1e95f1(0x166)]()[_0x1e95f1(0x142)](0x3,'0'),_0x59c5f4=getTimezoneOffset();return _0x3e13a8+'-'+_0x597cb1+'-'+_0x5e919b+'\x20'+_0xc23eb1+':'+_0x32be74+':'+_0x117380+'.'+_0x4bcfc2+_0x59c5f4;}function formatColoredLogEntry(_0x508b2c,_0x267b39){const _0x24d1fb=a80_0xdd7a,_0x4042cb=formatTimestamp(),_0x2f8b48=_0x267b39[_0x24d1fb(0x15c)](safeStringify)['join']('\x20'),_0x2578f4=a80_0x2ab0e8[_0x24d1fb(0x13c)](_0x4042cb);let _0x3cde30;switch(_0x508b2c){case _0x24d1fb(0x146):_0x3cde30=a80_0x2ab0e8[_0x24d1fb(0x16a)]('['+_0x508b2c+']\x20');break;case _0x24d1fb(0x154):_0x3cde30=a80_0x2ab0e8[_0x24d1fb(0x14c)]('['+_0x508b2c+']\x20');break;case _0x24d1fb(0x14f):_0x3cde30=a80_0x2ab0e8['red']('['+_0x508b2c+']');break;case _0x24d1fb(0x15b):_0x3cde30=a80_0x2ab0e8[_0x24d1fb(0x13c)]('['+_0x508b2c+']');break;default:_0x3cde30='['+_0x508b2c+']';}return _0x2578f4+'\x20'+_0x3cde30+'\x20'+_0x2f8b48;}export var LogLevel;(function(_0x10817b){const _0x3596ec=a80_0xdd7a;_0x10817b[_0x10817b[_0x3596ec(0x13a)]=-0x2]=_0x3596ec(0x13a),_0x10817b[_0x10817b['DEBUG']=-0x1]=_0x3596ec(0x12b),_0x10817b[_0x10817b[_0x3596ec(0x132)]=0x0]='INFO',_0x10817b[_0x10817b[_0x3596ec(0x15a)]=0x1]=_0x3596ec(0x15a),_0x10817b[_0x10817b['ERROR']=0x2]=_0x3596ec(0x145);}(LogLevel||(LogLevel={})));export class TDXLogger{['logStream'];['logDir'];[a80_0x50fafb(0x144)];[a80_0x50fafb(0x15d)];constructor(_0x39d7be=LogLevel[a80_0x50fafb(0x132)],_0x4590cf=![]){const _0x1bac62=a80_0x50fafb;this[_0x1bac62(0x159)]=join(homedir(),'.cache','tdx',_0x1bac62(0x12e)),this[_0x1bac62(0x144)]=_0x39d7be,this[_0x1bac62(0x15d)]=_0x4590cf;}async[a80_0x50fafb(0x14b)](){const _0xad01ed=a80_0x50fafb;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0xad01ed(0x137)]();const _0x4aa18b=join(this['logDir'],_0xad01ed(0x164));this[_0xad01ed(0x135)]=createWriteStream(_0x4aa18b,{'flags':'a'}),this[_0xad01ed(0x135)]['on'](_0xad01ed(0x14f),_0x50de6a=>{const _0x2e41f3=_0xad01ed;console[_0x2e41f3(0x14f)](_0x2e41f3(0x149),_0x50de6a[_0x2e41f3(0x153)]);}),this[_0xad01ed(0x146)](_0xad01ed(0x160));}catch(_0x4dbfa1){console[_0xad01ed(0x14f)](_0xad01ed(0x157),_0x4dbfa1);}}async['rotateOldLogs'](){const _0x55250e=a80_0x50fafb;try{const _0x425ccf=await readdir(this[_0x55250e(0x159)]),_0x2f148a=new Date()[_0x55250e(0x155)]()[_0x55250e(0x13d)]('T')[0x0];if(_0x425ccf[_0x55250e(0x163)](_0x55250e(0x164))){const _0x29e8cf=join(this['logDir'],_0x55250e(0x164)),_0x48c004=await stat(_0x29e8cf),_0xdfb56a=new Date(_0x48c004[_0x55250e(0x151)])[_0x55250e(0x155)]()[_0x55250e(0x13d)]('T')[0x0];if(_0xdfb56a<_0x2f148a){const _0xcfc6e1=join(this[_0x55250e(0x159)],_0x55250e(0x13b)+_0xdfb56a+_0x55250e(0x13e));await rename(_0x29e8cf,_0xcfc6e1);}}const _0x233a35=await readdir(this['logDir']),_0x2f221b=/^proxy-(\d{4}-\d{2}-\d{2})\.log$/,_0x310ac6=_0x233a35[_0x55250e(0x162)](_0x4c08f6=>_0x2f221b[_0x55250e(0x140)](_0x4c08f6));for(const _0x320cbe of _0x310ac6){const _0x343d15=join(this[_0x55250e(0x159)],_0x320cbe),_0x1bf2d7=join(this['logDir'],_0x320cbe+_0x55250e(0x139));try{await pipeline(createReadStream(_0x343d15),createGzip(),createWriteStream(_0x1bf2d7)),await unlink(_0x343d15);}catch(_0x411595){console[_0x55250e(0x14f)](_0x55250e(0x138)+_0x320cbe+':',_0x411595);}}}catch{}}[a80_0x50fafb(0x15b)](..._0x4efcdd){const _0x9fa668=a80_0x50fafb;if(this[_0x9fa668(0x144)]>LogLevel[_0x9fa668(0x12b)])return;const _0x11981e=formatColoredLogEntry(_0x9fa668(0x15b),_0x4efcdd);this[_0x9fa668(0x135)]?.[_0x9fa668(0x16c)](_0x11981e+'\x0a');}['trace'](..._0x446564){const _0x3c07ff=a80_0x50fafb;if(this[_0x3c07ff(0x144)]>LogLevel[_0x3c07ff(0x13a)])return;const _0x4cc4e2=formatColoredLogEntry('trace',_0x446564);this[_0x3c07ff(0x135)]?.['write'](_0x4cc4e2+'\x0a');}[a80_0x50fafb(0x146)](..._0x50389a){const _0x464183=a80_0x50fafb;if(this[_0x464183(0x144)]>LogLevel[_0x464183(0x132)])return;const _0x33d273=formatColoredLogEntry(_0x464183(0x146),_0x50389a);!this[_0x464183(0x15d)]&&console[_0x464183(0x147)](_0x33d273),this[_0x464183(0x135)]?.[_0x464183(0x16c)](_0x33d273+'\x0a');}[a80_0x50fafb(0x154)](..._0x46f9b0){const _0x258c8c=a80_0x50fafb;if(this[_0x258c8c(0x144)]>LogLevel['WARN'])return;const _0x179a6c=formatColoredLogEntry('warn',_0x46f9b0);!this['fileOnly']&&console[_0x258c8c(0x14f)](_0x179a6c),this['logStream']?.['write'](_0x179a6c+'\x0a');}[a80_0x50fafb(0x14f)](..._0x3b01f8){const _0x5423ce=a80_0x50fafb,_0x21047e=formatColoredLogEntry(_0x5423ce(0x14f),_0x3b01f8);!this[_0x5423ce(0x15d)]&&console[_0x5423ce(0x14f)](_0x21047e),this[_0x5423ce(0x135)]?.[_0x5423ce(0x16c)](_0x21047e+'\x0a');}async[a80_0x50fafb(0x165)](){const _0x5f559f=a80_0x50fafb;return this['info'](_0x5f559f(0x16b)),new Promise(_0x135657=>{const _0x554e20=_0x5f559f;this[_0x554e20(0x135)]?this[_0x554e20(0x135)][_0x554e20(0x15f)](()=>{_0x135657();}):_0x135657();});}[a80_0x50fafb(0x133)](){const _0x384ec7=a80_0x50fafb;return join(this[_0x384ec7(0x159)],_0x384ec7(0x164));}}
@@ -1 +1 @@
1
- (function(_0x59ddbc,_0x62b989){const _0x4c63fd=a81_0x4a0b,_0x20f387=_0x59ddbc();while(!![]){try{const _0x572380=-parseInt(_0x4c63fd(0x16f))/0x1+parseInt(_0x4c63fd(0x16b))/0x2*(parseInt(_0x4c63fd(0x17e))/0x3)+-parseInt(_0x4c63fd(0x17d))/0x4+-parseInt(_0x4c63fd(0x18b))/0x5*(parseInt(_0x4c63fd(0x176))/0x6)+-parseInt(_0x4c63fd(0x179))/0x7*(-parseInt(_0x4c63fd(0x181))/0x8)+-parseInt(_0x4c63fd(0x16e))/0x9+parseInt(_0x4c63fd(0x18c))/0xa;if(_0x572380===_0x62b989)break;else _0x20f387['push'](_0x20f387['shift']());}catch(_0x91f30d){_0x20f387['push'](_0x20f387['shift']());}}}(a81_0x2b5a,0xf065c));import{formatRows}from'./formatters.js';import a81_0x63b894 from'chalk';function a81_0x2b5a(){const _0x2142f7=['sort','3676752owwCHV','segment','showMetadata','5670297eDyRvO','812047rXzvfR','\x20\x20\x20\x20','localeCompare','name','length','population','folderCount','1782WLzLYm','dim','metadata','7tPfCAH','children','indent','join','446992MRTqvo','3UsITSn','folder','type','3577176opJQqR','showIcons','📁\x20','segmentCount','push','showTreeLines','icon','\x20\x20\x20','\x20segment','\x20folder','20595SPtVXv','14763160NFVKBr','🎯\x20'];a81_0x2b5a=function(){return _0x2142f7;};return a81_0x2b5a();}function a81_0x4a0b(_0x1cb937,_0x384648){const _0x2b5ac0=a81_0x2b5a();return a81_0x4a0b=function(_0x4a0b1b,_0x3a68d0){_0x4a0b1b=_0x4a0b1b-0x16a;let _0x4cb081=_0x2b5ac0[_0x4a0b1b];return _0x4cb081;},a81_0x4a0b(_0x1cb937,_0x384648);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x20cf24,_0x330867={},_0x2fc3fe=0x0,_0x4cb7c2=''){const _0x3075e0=a81_0x4a0b,_0x1ef595={...DEFAULT_OPTIONS,..._0x330867},_0x52ab82=[],_0x3871d8=[..._0x20cf24][_0x3075e0(0x16a)]((_0x10e1bd,_0x357785)=>_0x10e1bd[_0x3075e0(0x172)][_0x3075e0(0x171)](_0x357785['name']));for(let _0x3ceb5c=0x0;_0x3ceb5c<_0x3871d8['length'];_0x3ceb5c++){const _0x367497=_0x3871d8[_0x3ceb5c],_0x517be1=_0x3ceb5c===_0x3871d8[_0x3075e0(0x173)]-0x1;let _0x2258cd='';_0x2fc3fe>0x0&&(_0x2258cd+=_0x4cb7c2);_0x1ef595[_0x3075e0(0x186)]&&_0x2fc3fe>0x0&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)](_0x517be1?'└──\x20':'├──\x20'));_0x1ef595[_0x3075e0(0x182)]&&(_0x2258cd+=_0x367497[_0x3075e0(0x180)]==='folder'?_0x3075e0(0x183):_0x3075e0(0x18d));_0x2258cd+=_0x367497['name'];if(_0x1ef595[_0x3075e0(0x16d)]){if(_0x367497['type']===_0x3075e0(0x17f)){const _0x3f8f78=[];_0x367497['metadata'][_0x3075e0(0x184)]&&_0x3f8f78['push'](_0x367497['metadata']['segmentCount']+_0x3075e0(0x189)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x184)]!==0x1?'s':'')),_0x367497['metadata'][_0x3075e0(0x175)]&&_0x3f8f78[_0x3075e0(0x185)](_0x367497[_0x3075e0(0x178)]['folderCount']+_0x3075e0(0x18a)+(_0x367497[_0x3075e0(0x178)][_0x3075e0(0x175)]!==0x1?'s':'')),_0x3f8f78['length']>0x0&&(_0x2258cd+=a81_0x63b894['dim']('\x20('+_0x3f8f78[_0x3075e0(0x17c)](',\x20')+')'));}else _0x367497[_0x3075e0(0x180)]===_0x3075e0(0x16c)&&_0x367497[_0x3075e0(0x174)]!==undefined&&(_0x2258cd+=a81_0x63b894[_0x3075e0(0x177)]('\x20('+formatRows(_0x367497[_0x3075e0(0x174)])+')'));}_0x52ab82[_0x3075e0(0x185)](_0x2258cd);if(_0x367497[_0x3075e0(0x17a)]&&_0x367497[_0x3075e0(0x17a)]['length']>0x0){let _0x1099df;if(_0x2fc3fe===0x0)_0x1099df='';else _0x1ef595[_0x3075e0(0x186)]?_0x1099df=_0x4cb7c2+(_0x517be1?_0x3075e0(0x170):a81_0x63b894[_0x3075e0(0x177)]('│')+_0x3075e0(0x188)):_0x1099df=_0x4cb7c2+_0x1ef595[_0x3075e0(0x17b)];const _0x5e7f26=formatTree(_0x367497[_0x3075e0(0x17a)],_0x1ef595,_0x2fc3fe+0x1,_0x1099df);_0x52ab82['push'](_0x5e7f26);}}return _0x52ab82['join']('\x0a');}export function formatFlatList(_0x4e776f,_0x88d516,_0x14fec5={}){const _0x74ca57=a81_0x4a0b,_0x412cbb={...DEFAULT_OPTIONS,..._0x14fec5},_0x273155=[];for(const _0x3f9b6a of _0x4e776f){_0x273155[_0x74ca57(0x185)]({'name':_0x3f9b6a[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'📁':'','metadata':undefined});}for(const _0x401c77 of _0x88d516){const _0x186755=_0x412cbb[_0x74ca57(0x16d)]&&_0x401c77[_0x74ca57(0x174)]!==undefined?a81_0x63b894['dim']('\x20('+formatRows(_0x401c77[_0x74ca57(0x174)])+')'):'';_0x273155['push']({'name':_0x401c77[_0x74ca57(0x172)],'icon':_0x412cbb[_0x74ca57(0x182)]?'🎯':'','metadata':_0x186755});}_0x273155[_0x74ca57(0x16a)]((_0x1aa4bd,_0x1291ff)=>_0x1aa4bd[_0x74ca57(0x172)][_0x74ca57(0x171)](_0x1291ff[_0x74ca57(0x172)]));if(_0x273155[_0x74ca57(0x173)]===0x0)return'(empty)';const _0x21d73f=_0x273155['map'](_0x44b2ce=>{const _0x393ffa=_0x74ca57,_0x5b6571=_0x44b2ce['icon']?_0x44b2ce[_0x393ffa(0x187)]+'\x20':'',_0x38f943=_0x44b2ce[_0x393ffa(0x178)]||'';return''+_0x5b6571+_0x44b2ce[_0x393ffa(0x172)]+_0x38f943;});return _0x21d73f[_0x74ca57(0x17c)]('\x0a');}
1
+ (function(_0x4f2b3d,_0x5b1913){const _0xad8624=a81_0x514a,_0x166ba3=_0x4f2b3d();while(!![]){try{const _0x336d26=-parseInt(_0xad8624(0xce))/0x1+-parseInt(_0xad8624(0xdf))/0x2*(parseInt(_0xad8624(0xee))/0x3)+parseInt(_0xad8624(0xe5))/0x4+-parseInt(_0xad8624(0xd6))/0x5*(-parseInt(_0xad8624(0xe1))/0x6)+-parseInt(_0xad8624(0xd9))/0x7*(-parseInt(_0xad8624(0xe4))/0x8)+-parseInt(_0xad8624(0xe7))/0x9+parseInt(_0xad8624(0xdb))/0xa;if(_0x336d26===_0x5b1913)break;else _0x166ba3['push'](_0x166ba3['shift']());}catch(_0x5a6c38){_0x166ba3['push'](_0x166ba3['shift']());}}}(a81_0x541e,0x488f2));import{formatRows}from'./formatters.js';import a81_0x5c6417 from'chalk';const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};function a81_0x514a(_0x4c2017,_0x2e263d){const _0x541ecb=a81_0x541e();return a81_0x514a=function(_0x514a8a,_0x547df4){_0x514a8a=_0x514a8a-0xcb;let _0x2847ee=_0x541ecb[_0x514a8a];return _0x2847ee;},a81_0x514a(_0x4c2017,_0x2e263d);}export function formatTree(_0x2357d6,_0x3a3e6f={},_0x21a563=0x0,_0x51a491=''){const _0x42470e=a81_0x514a,_0x22133c={...DEFAULT_OPTIONS,..._0x3a3e6f},_0x130a0d=[],_0x5e2c65=[..._0x2357d6][_0x42470e(0xcd)]((_0xfc837d,_0xf2cff)=>_0xfc837d[_0x42470e(0xde)][_0x42470e(0xd3)](_0xf2cff['name']));for(let _0x353883=0x0;_0x353883<_0x5e2c65[_0x42470e(0xd7)];_0x353883++){const _0x3a7a12=_0x5e2c65[_0x353883],_0x13e45d=_0x353883===_0x5e2c65[_0x42470e(0xd7)]-0x1;let _0x4778fa='';_0x21a563>0x0&&(_0x4778fa+=_0x51a491);_0x22133c[_0x42470e(0xcb)]&&_0x21a563>0x0&&(_0x4778fa+=a81_0x5c6417[_0x42470e(0xd5)](_0x13e45d?'└──\x20':'├──\x20'));_0x22133c[_0x42470e(0xd2)]&&(_0x4778fa+=_0x3a7a12['type']===_0x42470e(0xd1)?_0x42470e(0xe9):_0x42470e(0xe6));_0x4778fa+=_0x3a7a12['name'];if(_0x22133c[_0x42470e(0xe2)]){if(_0x3a7a12[_0x42470e(0xdd)]===_0x42470e(0xd1)){const _0x3c7947=[];_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xe0)]&&_0x3c7947[_0x42470e(0xec)](_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xe0)]+_0x42470e(0xe3)+(_0x3a7a12[_0x42470e(0xe8)]['segmentCount']!==0x1?'s':'')),_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xd0)]&&_0x3c7947[_0x42470e(0xec)](_0x3a7a12[_0x42470e(0xe8)][_0x42470e(0xd0)]+_0x42470e(0xcc)+(_0x3a7a12['metadata'][_0x42470e(0xd0)]!==0x1?'s':'')),_0x3c7947[_0x42470e(0xd7)]>0x0&&(_0x4778fa+=a81_0x5c6417[_0x42470e(0xd5)]('\x20('+_0x3c7947[_0x42470e(0xda)](',\x20')+')'));}else _0x3a7a12['type']===_0x42470e(0xcf)&&_0x3a7a12[_0x42470e(0xeb)]!==undefined&&(_0x4778fa+=a81_0x5c6417[_0x42470e(0xd5)]('\x20('+formatRows(_0x3a7a12[_0x42470e(0xeb)])+')'));}_0x130a0d[_0x42470e(0xec)](_0x4778fa);if(_0x3a7a12[_0x42470e(0xd4)]&&_0x3a7a12[_0x42470e(0xd4)][_0x42470e(0xd7)]>0x0){let _0x259a62;if(_0x21a563===0x0)_0x259a62='';else _0x22133c[_0x42470e(0xcb)]?_0x259a62=_0x51a491+(_0x13e45d?_0x42470e(0xea):a81_0x5c6417[_0x42470e(0xd5)]('│')+'\x20\x20\x20'):_0x259a62=_0x51a491+_0x22133c[_0x42470e(0xef)];const _0x2f416d=formatTree(_0x3a7a12[_0x42470e(0xd4)],_0x22133c,_0x21a563+0x1,_0x259a62);_0x130a0d[_0x42470e(0xec)](_0x2f416d);}}return _0x130a0d[_0x42470e(0xda)]('\x0a');}function a81_0x541e(){const _0x1f135d=['\x20segment','432pTabLP','1345424ViaSGl','🎯\x20','5298147jYcbtN','metadata','📁\x20','\x20\x20\x20\x20','population','push','map','1177890ItMlzm','indent','showTreeLines','\x20folder','sort','442238WcxOtf','segment','folderCount','folder','showIcons','localeCompare','children','dim','160phVcva','length','(empty)','52262CSdLKQ','join','8878890zykcTj','icon','type','name','2cfZdkP','segmentCount','17502tFgtFi','showMetadata'];a81_0x541e=function(){return _0x1f135d;};return a81_0x541e();}export function formatFlatList(_0x167928,_0x13fa5c,_0x294bdb={}){const _0x237e0b=a81_0x514a,_0x4e41bd={...DEFAULT_OPTIONS,..._0x294bdb},_0x2e8cc3=[];for(const _0x4959c6 of _0x167928){_0x2e8cc3[_0x237e0b(0xec)]({'name':_0x4959c6[_0x237e0b(0xde)],'icon':_0x4e41bd[_0x237e0b(0xd2)]?'📁':'','metadata':undefined});}for(const _0x3a4bd5 of _0x13fa5c){const _0x47bac6=_0x4e41bd[_0x237e0b(0xe2)]&&_0x3a4bd5[_0x237e0b(0xeb)]!==undefined?a81_0x5c6417[_0x237e0b(0xd5)]('\x20('+formatRows(_0x3a4bd5[_0x237e0b(0xeb)])+')'):'';_0x2e8cc3[_0x237e0b(0xec)]({'name':_0x3a4bd5[_0x237e0b(0xde)],'icon':_0x4e41bd[_0x237e0b(0xd2)]?'🎯':'','metadata':_0x47bac6});}_0x2e8cc3['sort']((_0x259f6c,_0x1cdb1f)=>_0x259f6c['name'][_0x237e0b(0xd3)](_0x1cdb1f['name']));if(_0x2e8cc3[_0x237e0b(0xd7)]===0x0)return _0x237e0b(0xd8);const _0x246c57=_0x2e8cc3[_0x237e0b(0xed)](_0x2dc5d5=>{const _0x2ec892=_0x237e0b,_0x641b50=_0x2dc5d5[_0x2ec892(0xdc)]?_0x2dc5d5[_0x2ec892(0xdc)]+'\x20':'',_0x1ed90e=_0x2dc5d5['metadata']||'';return''+_0x641b50+_0x2dc5d5[_0x2ec892(0xde)]+_0x1ed90e;});return _0x246c57[_0x237e0b(0xda)]('\x0a');}
@@ -1 +1 @@
1
- const a82_0x19f9cb=a82_0x2831;(function(_0x26969f,_0x511fc3){const _0x1df863=a82_0x2831,_0x5f111c=_0x26969f();while(!![]){try{const _0x1c97df=-parseInt(_0x1df863(0x198))/0x1*(parseInt(_0x1df863(0x1a4))/0x2)+parseInt(_0x1df863(0x1aa))/0x3*(parseInt(_0x1df863(0x1a2))/0x4)+parseInt(_0x1df863(0x1b4))/0x5+parseInt(_0x1df863(0x1b7))/0x6*(-parseInt(_0x1df863(0x1a1))/0x7)+-parseInt(_0x1df863(0x1b1))/0x8*(-parseInt(_0x1df863(0x1b8))/0x9)+parseInt(_0x1df863(0x1ba))/0xa*(-parseInt(_0x1df863(0x1ac))/0xb)+-parseInt(_0x1df863(0x1b9))/0xc*(-parseInt(_0x1df863(0x19b))/0xd);if(_0x1c97df===_0x511fc3)break;else _0x5f111c['push'](_0x5f111c['shift']());}catch(_0x55432e){_0x5f111c['push'](_0x5f111c['shift']());}}}(a82_0x2de9,0x31c7f));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';function a82_0x2831(_0x1da793,_0xa0e9d){const _0x2de911=a82_0x2de9();return a82_0x2831=function(_0x2831e2,_0x1d316c){_0x2831e2=_0x2831e2-0x196;let _0x286b6d=_0x2de911[_0x2831e2];return _0x286b6d;},a82_0x2831(_0x1da793,_0xa0e9d);}import{join}from'path';import{gt,valid}from'semver';import a82_0x1eb4b7 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x19f9cb(0x19c),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x1cdcf7=a82_0x19f9cb,_0x53aa4e=getCacheDir();return join(_0x53aa4e,_0x1cdcf7(0x1bc));}function readCache(){const _0x3dabd7=a82_0x19f9cb;try{const _0x46889f=getCacheFilePath(),_0x536634=readFileSync(_0x46889f,_0x3dabd7(0x1b5));return JSON[_0x3dabd7(0x1ae)](_0x536634);}catch{return null;}}function writeCache(_0x2787f8){const _0x5205a4=a82_0x19f9cb;try{const _0x558c2a=getCacheDir();mkdirSync(_0x558c2a,{'recursive':!![]});const _0x49aada={'lastCheck':new Date()['toISOString'](),'latestVersion':_0x2787f8},_0x59ed5f=getCacheFilePath();writeFileSync(_0x59ed5f,JSON[_0x5205a4(0x1a7)](_0x49aada,null,0x2),_0x5205a4(0x1b5));}catch{}}function isCacheValid(_0x332765){const _0x116559=a82_0x19f9cb;if(!_0x332765)return![];const _0x108eff=new Date(_0x332765['lastCheck'])[_0x116559(0x197)](),_0x2494f6=Date[_0x116559(0x1b0)]();return _0x2494f6-_0x108eff<CACHE_DURATION_MS;}function a82_0x2de9(){const _0x776bfc=['gray','3QKtIBp','yellow','4763wLsJBj','npm\x20install\x20-g\x20@treasuredata/tdx@latest','parse','currentVersion','now','232EYgFNp','stderr','statusCode','520525yqImbQ','utf-8','updateAvailable','6OlxyKT','3015uOQuDp','13644gpLJiX','1780aXPgPN','env','last_version_check','Request\x20timeout','cyan','getTime','172RKREHZ','Run:','NO_COLOR','2561ModDCp','https://registry.npmjs.org/@treasuredata/tdx/latest','end','version','error','green','1610231KSIDwt','1255588cDtPBK','dim','1636UQaYLo','data','\x0aRun:\x20','stringify','latestVersion'];a82_0x2de9=function(){return _0x776bfc;};return a82_0x2de9();}function fetchLatestVersion(){return new Promise((_0x359c09,_0x357f02)=>{const _0x56eb95=a82_0x2831,_0x1fd372=get(NPM_REGISTRY_URL,_0x989ec9=>{const _0xbad4e2=a82_0x2831;if(_0x989ec9[_0xbad4e2(0x1b3)]!==0xc8){clearTimeout(_0x50225f),_0x357f02(new Error('HTTP\x20'+_0x989ec9[_0xbad4e2(0x1b3)]));return;}let _0x189239='';_0x989ec9['on'](_0xbad4e2(0x1a5),_0x5aea3c=>{_0x189239+=_0x5aea3c;}),_0x989ec9['on'](_0xbad4e2(0x19d),()=>{const _0x4e7492=_0xbad4e2;clearTimeout(_0x50225f);try{const _0x5d0da0=JSON[_0x4e7492(0x1ae)](_0x189239);if(!valid(_0x5d0da0[_0x4e7492(0x19e)])){_0x357f02(new Error('Invalid\x20version\x20format'));return;}_0x359c09(_0x5d0da0[_0x4e7492(0x19e)]);}catch(_0x13f057){_0x357f02(_0x13f057);}});})['on'](_0x56eb95(0x19f),_0x2baf59=>{clearTimeout(_0x50225f),_0x357f02(_0x2baf59);}),_0x50225f=setTimeout(()=>{const _0x20dc9d=_0x56eb95;_0x1fd372['destroy'](),_0x357f02(new Error(_0x20dc9d(0x1bd)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x1fe808){const _0xe79d91=a82_0x19f9cb;try{const _0x36d5a4=readCache();if(isCacheValid(_0x36d5a4)){const _0x4a2d91=gt(_0x36d5a4['latestVersion'],_0x1fe808);return{'updateAvailable':_0x4a2d91,'currentVersion':_0x1fe808,'latestVersion':_0x36d5a4[_0xe79d91(0x1a8)]};}const _0x905a4=await fetchLatestVersion();writeCache(_0x905a4);const _0x900d4e=gt(_0x905a4,_0x1fe808);return{'updateAvailable':_0x900d4e,'currentVersion':_0x1fe808,'latestVersion':_0x905a4};}catch{return null;}}export function displayUpdateNotification(_0x2e01e7){const _0x1a7440=a82_0x19f9cb;if(!_0x2e01e7[_0x1a7440(0x1b6)])return;const _0x3e61b3=process[_0x1a7440(0x1b2)]['isTTY']&&!process[_0x1a7440(0x1bb)][_0x1a7440(0x19a)],_0x2d8189=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a9)]('→'):'→',_0x1ebc86=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x2e01e7[_0x1a7440(0x1af)]):_0x2e01e7[_0x1a7440(0x1af)],_0x4272fd=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x1a0)](_0x2e01e7['latestVersion']):_0x2e01e7[_0x1a7440(0x1a8)],_0x1bbcca=_0x3e61b3?a82_0x1eb4b7[_0x1a7440(0x196)](_0x1a7440(0x1ad)):_0x1a7440(0x1ad),_0x326569=_0x3e61b3?'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1ab)]('Update\x20available:')+'\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+'\x0a'+a82_0x1eb4b7[_0x1a7440(0x1a3)](_0x1a7440(0x199))+'\x20'+_0x1bbcca+'\x0a':'\x0aUpdate\x20available:\x20'+_0x1ebc86+'\x20'+_0x2d8189+'\x20'+_0x4272fd+_0x1a7440(0x1a6)+_0x1bbcca+'\x0a';process[_0x1a7440(0x1b2)]['write'](_0x326569);}
1
+ function a82_0x1dd7(){const _0x586237=['yellow','3881084IHYTZB','latestVersion','end','lastCheck','HTTP\x20','14344TfRfPy','npm\x20install\x20-g\x20@treasuredata/tdx@latest','utf-8','\x0aUpdate\x20available:\x20','177UzzsUK','\x0aRun:\x20','Update\x20available:','stringify','toISOString','https://registry.npmjs.org/@treasuredata/tdx/latest','parse','env','17329560edaEus','Invalid\x20version\x20format','getTime','dim','cyan','isTTY','5644341aaWIbF','337719yuLZKO','5602626znkOks','data','Run:','destroy','Request\x20timeout','gray','statusCode','updateAvailable','currentVersion','version','error','green','3332UjaWEy','5TpAtZv','now','10538ZhlFPa'];a82_0x1dd7=function(){return _0x586237;};return a82_0x1dd7();}const a82_0x2e3e81=a82_0x2ee3;(function(_0x51129b,_0x5b9658){const _0x3f881a=a82_0x2ee3,_0x445c6c=_0x51129b();while(!![]){try{const _0x223819=parseInt(_0x3f881a(0x114))/0x1+parseInt(_0x3f881a(0x124))/0x2*(parseInt(_0x3f881a(0x105))/0x3)+parseInt(_0x3f881a(0x126))/0x4+-parseInt(_0x3f881a(0x122))/0x5*(-parseInt(_0x3f881a(0x115))/0x6)+-parseInt(_0x3f881a(0x121))/0x7*(parseInt(_0x3f881a(0x101))/0x8)+parseInt(_0x3f881a(0x113))/0x9+-parseInt(_0x3f881a(0x10d))/0xa;if(_0x223819===_0x5b9658)break;else _0x445c6c['push'](_0x445c6c['shift']());}catch(_0x4d532f){_0x445c6c['push'](_0x445c6c['shift']());}}}(a82_0x1dd7,0x90dcd));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';function a82_0x2ee3(_0x2efc65,_0x4c0d80){const _0x1dd788=a82_0x1dd7();return a82_0x2ee3=function(_0x2ee322,_0x4ed94d){_0x2ee322=_0x2ee322-0xff;let _0x3134fc=_0x1dd788[_0x2ee322];return _0x3134fc;},a82_0x2ee3(_0x2efc65,_0x4c0d80);}import{gt,valid}from'semver';import a82_0x4a85e0 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a82_0x2e3e81(0x10a),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x365860=getCacheDir();return join(_0x365860,'last_version_check');}function readCache(){const _0x73cf82=a82_0x2e3e81;try{const _0x1ab203=getCacheFilePath(),_0x50baa3=readFileSync(_0x1ab203,_0x73cf82(0x103));return JSON[_0x73cf82(0x10b)](_0x50baa3);}catch{return null;}}function writeCache(_0x18922f){const _0x3cd36a=a82_0x2e3e81;try{const _0x19fda2=getCacheDir();mkdirSync(_0x19fda2,{'recursive':!![]});const _0x5bdca7={'lastCheck':new Date()[_0x3cd36a(0x109)](),'latestVersion':_0x18922f},_0x1ac4d8=getCacheFilePath();writeFileSync(_0x1ac4d8,JSON[_0x3cd36a(0x108)](_0x5bdca7,null,0x2),'utf-8');}catch{}}function isCacheValid(_0x38d7cf){const _0x37bb25=a82_0x2e3e81;if(!_0x38d7cf)return![];const _0x3a365a=new Date(_0x38d7cf[_0x37bb25(0xff)])[_0x37bb25(0x10f)](),_0x356020=Date[_0x37bb25(0x123)]();return _0x356020-_0x3a365a<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x239829,_0xc99e66)=>{const _0x4e80c3=a82_0x2ee3,_0x2c57be=get(NPM_REGISTRY_URL,_0x5ad36d=>{const _0x3a1a23=a82_0x2ee3;if(_0x5ad36d['statusCode']!==0xc8){clearTimeout(_0x2f81ff),_0xc99e66(new Error(_0x3a1a23(0x100)+_0x5ad36d[_0x3a1a23(0x11b)]));return;}let _0x1c6a0c='';_0x5ad36d['on'](_0x3a1a23(0x116),_0x10ac37=>{_0x1c6a0c+=_0x10ac37;}),_0x5ad36d['on'](_0x3a1a23(0x128),()=>{const _0x3b0642=_0x3a1a23;clearTimeout(_0x2f81ff);try{const _0x5aa87d=JSON[_0x3b0642(0x10b)](_0x1c6a0c);if(!valid(_0x5aa87d['version'])){_0xc99e66(new Error(_0x3b0642(0x10e)));return;}_0x239829(_0x5aa87d[_0x3b0642(0x11e)]);}catch(_0x334368){_0xc99e66(_0x334368);}});})['on'](_0x4e80c3(0x11f),_0x152bd1=>{clearTimeout(_0x2f81ff),_0xc99e66(_0x152bd1);}),_0x2f81ff=setTimeout(()=>{const _0x168091=_0x4e80c3;_0x2c57be[_0x168091(0x118)](),_0xc99e66(new Error(_0x168091(0x119)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x14fc9d){const _0x4b097d=a82_0x2e3e81;try{const _0x2ac364=readCache();if(isCacheValid(_0x2ac364)){const _0x4de1ae=gt(_0x2ac364[_0x4b097d(0x127)],_0x14fc9d);return{'updateAvailable':_0x4de1ae,'currentVersion':_0x14fc9d,'latestVersion':_0x2ac364['latestVersion']};}const _0x41d2b2=await fetchLatestVersion();writeCache(_0x41d2b2);const _0x46dc7f=gt(_0x41d2b2,_0x14fc9d);return{'updateAvailable':_0x46dc7f,'currentVersion':_0x14fc9d,'latestVersion':_0x41d2b2};}catch{return null;}}export function displayUpdateNotification(_0x2fd2d1){const _0x404fa5=a82_0x2e3e81;if(!_0x2fd2d1[_0x404fa5(0x11c)])return;const _0x16d7c5=process['stderr'][_0x404fa5(0x112)]&&!process[_0x404fa5(0x10c)]['NO_COLOR'],_0x22aad6=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x11a)]('→'):'→',_0x40b29f=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x110)](_0x2fd2d1[_0x404fa5(0x11d)]):_0x2fd2d1[_0x404fa5(0x11d)],_0x5a335b=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x120)](_0x2fd2d1[_0x404fa5(0x127)]):_0x2fd2d1[_0x404fa5(0x127)],_0x521796=_0x16d7c5?a82_0x4a85e0[_0x404fa5(0x111)](_0x404fa5(0x102)):_0x404fa5(0x102),_0x2e8c1c=_0x16d7c5?'\x0a'+a82_0x4a85e0[_0x404fa5(0x125)](_0x404fa5(0x107))+'\x20'+_0x40b29f+'\x20'+_0x22aad6+'\x20'+_0x5a335b+'\x0a'+a82_0x4a85e0[_0x404fa5(0x110)](_0x404fa5(0x117))+'\x20'+_0x521796+'\x0a':_0x404fa5(0x104)+_0x40b29f+'\x20'+_0x22aad6+'\x20'+_0x5a335b+_0x404fa5(0x106)+_0x521796+'\x0a';process['stderr']['write'](_0x2e8c1c);}
@@ -1 +1 @@
1
- function a83_0xfa44(){const _0xbc2973=['8960544yWpHNZ','5320104CazQmy','3585195kQYdwt','2wsnfxe','1193196nhMWWM','4611204fERofl','startsWith','1892107RhioAO','932142vSksjP','8wNehpc'];a83_0xfa44=function(){return _0xbc2973;};return a83_0xfa44();}(function(_0x3e011e,_0x2ea95a){const _0x1b1e77=a83_0x4c03,_0x546851=_0x3e011e();while(!![]){try{const _0x453b76=parseInt(_0x1b1e77(0x1da))/0x1*(-parseInt(_0x1b1e77(0x1df))/0x2)+-parseInt(_0x1b1e77(0x1db))/0x3+parseInt(_0x1b1e77(0x1e2))/0x4+parseInt(_0x1b1e77(0x1e3))/0x5+-parseInt(_0x1b1e77(0x1dc))/0x6+-parseInt(_0x1b1e77(0x1de))/0x7+-parseInt(_0x1b1e77(0x1e0))/0x8*(-parseInt(_0x1b1e77(0x1e1))/0x9);if(_0x453b76===_0x2ea95a)break;else _0x546851['push'](_0x546851['shift']());}catch(_0x3b38ec){_0x546851['push'](_0x546851['shift']());}}}(a83_0xfa44,0xa48b4));function a83_0x4c03(_0x185a52,_0x1a4851){const _0xfa4465=a83_0xfa44();return a83_0x4c03=function(_0x4c031e,_0x57d91c){_0x4c031e=_0x4c031e-0x1da;let _0x38e25b=_0xfa4465[_0x4c031e];return _0x38e25b;},a83_0x4c03(_0x185a52,_0x1a4851);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1f2f7e){const _0x3c4f46=a83_0x4c03;if(_0x1f2f7e==='.digdag')return!![];if(_0x1f2f7e[_0x3c4f46(0x1dd)]('.'))return![];return!![];}
1
+ (function(_0x2510c7,_0x14074e){const _0x1a950d=a83_0x2de6,_0x252a83=_0x2510c7();while(!![]){try{const _0x158cd2=parseInt(_0x1a950d(0x112))/0x1+-parseInt(_0x1a950d(0x116))/0x2*(-parseInt(_0x1a950d(0x110))/0x3)+-parseInt(_0x1a950d(0x113))/0x4+-parseInt(_0x1a950d(0x119))/0x5*(parseInt(_0x1a950d(0x11c))/0x6)+parseInt(_0x1a950d(0x111))/0x7*(-parseInt(_0x1a950d(0x117))/0x8)+parseInt(_0x1a950d(0x11b))/0x9+parseInt(_0x1a950d(0x114))/0xa*(parseInt(_0x1a950d(0x115))/0xb);if(_0x158cd2===_0x14074e)break;else _0x252a83['push'](_0x252a83['shift']());}catch(_0x42701a){_0x252a83['push'](_0x252a83['shift']());}}}(a83_0x20b3,0x352c2));export const WORKFLOW_FILE_EXTENSION='.dig';function a83_0x20b3(){const _0x58734d=['8YQJHzl','startsWith','714205esTMqU','.digdag','1274985rkGlMK','6rCAdNP','6BfWBVq','1137941EWkKhA','271907WpoGfO','1375436dIMzfC','2397310UkiaKC','11eRVLRc','213754EpkHaS'];a83_0x20b3=function(){return _0x58734d;};return a83_0x20b3();}function a83_0x2de6(_0x16143a,_0x3befca){const _0x20b325=a83_0x20b3();return a83_0x2de6=function(_0x2de6b1,_0xa9a329){_0x2de6b1=_0x2de6b1-0x110;let _0x2b003c=_0x20b325[_0x2de6b1];return _0x2b003c;},a83_0x2de6(_0x16143a,_0x3befca);}export function shouldIncludeInArchive(_0x3b65e5){const _0x4ab36c=a83_0x2de6;if(_0x3b65e5===_0x4ab36c(0x11a))return!![];if(_0x3b65e5[_0x4ab36c(0x118)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
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": {