@treasuredata/tdx 0.1.16 → 0.1.17

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 (85) hide show
  1. package/README.md +10 -0
  2. package/dist/cli.js +1 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/client/cdp-client.js +1 -1
  5. package/dist/client/http-client.js +1 -1
  6. package/dist/client/llm-client.js +1 -1
  7. package/dist/client/rate-limiter.js +1 -1
  8. package/dist/client/td-client.js +1 -1
  9. package/dist/client/trino-client.js +1 -1
  10. package/dist/client/workflow-client.js +1 -1
  11. package/dist/commands/activations.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/context-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/job-command.js +1 -1
  21. package/dist/commands/llm-command.js +1 -1
  22. package/dist/commands/llm-proxy.js +1 -1
  23. package/dist/commands/parent-segment-command.js +1 -1
  24. package/dist/commands/profiles-command.js +1 -1
  25. package/dist/commands/query-command.js +1 -1
  26. package/dist/commands/segment-command.js +1 -1
  27. package/dist/commands/segment-create-command.js +1 -1
  28. package/dist/commands/segment-fields-command.js +1 -1
  29. package/dist/commands/segment-pwd-command.js +1 -1
  30. package/dist/commands/segment-update-command.js +1 -1
  31. package/dist/commands/segment-use-command.js +1 -1
  32. package/dist/commands/segments.js +1 -1
  33. package/dist/commands/show.js +1 -1
  34. package/dist/commands/tables.js +1 -1
  35. package/dist/commands/use-command.js +1 -1
  36. package/dist/commands/workflow-command.js +1 -1
  37. package/dist/core/auth.js +1 -1
  38. package/dist/core/config.js +1 -1
  39. package/dist/core/global-context.js +1 -1
  40. package/dist/core/profile.js +1 -1
  41. package/dist/core/project-config.js +1 -1
  42. package/dist/core/session.js +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/proxy/anthropic-adapter.d.ts +20 -2
  45. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  46. package/dist/proxy/anthropic-adapter.js +1 -1
  47. package/dist/proxy/anthropic-adapter.js.map +1 -1
  48. package/dist/proxy/server.d.ts.map +1 -1
  49. package/dist/proxy/server.js +1 -1
  50. package/dist/proxy/server.js.map +1 -1
  51. package/dist/sdk/api.js +1 -1
  52. package/dist/sdk/database.js +1 -1
  53. package/dist/sdk/errors.js +1 -1
  54. package/dist/sdk/index.js +1 -1
  55. package/dist/sdk/job.js +1 -1
  56. package/dist/sdk/llm.js +1 -1
  57. package/dist/sdk/query.js +1 -1
  58. package/dist/sdk/segment.js +1 -1
  59. package/dist/sdk/table.js +1 -1
  60. package/dist/sdk/workflow.js +1 -1
  61. package/dist/types/endpoints.js +1 -1
  62. package/dist/types/index.js +1 -1
  63. package/dist/utils/agent-ref-parser.js +1 -1
  64. package/dist/utils/chat-cache.js +1 -1
  65. package/dist/utils/colors.js +1 -1
  66. package/dist/utils/command-output.js +1 -1
  67. package/dist/utils/file-permissions.js +1 -1
  68. package/dist/utils/format-detector.js +1 -1
  69. package/dist/utils/formatters.js +1 -1
  70. package/dist/utils/json-loader.js +1 -1
  71. package/dist/utils/model-aliases.js +1 -1
  72. package/dist/utils/option-validation.js +1 -1
  73. package/dist/utils/port.js +1 -1
  74. package/dist/utils/process.js +1 -1
  75. package/dist/utils/prompt.js +1 -1
  76. package/dist/utils/segment-path-parser.js +1 -1
  77. package/dist/utils/segment-ref-parser.js +1 -1
  78. package/dist/utils/spinner.js +1 -1
  79. package/dist/utils/sql-parser.js +1 -1
  80. package/dist/utils/sse-parser.js +1 -1
  81. package/dist/utils/string-utils.js +1 -1
  82. package/dist/utils/table-ref-parser.js +1 -1
  83. package/dist/utils/tree-formatter.js +1 -1
  84. package/dist/utils/workflow-utils.js +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x306428,_0x56e168){const _0x118fcb=a67_0x4260,_0x382033=_0x306428();while(!![]){try{const _0x556cc6=-parseInt(_0x118fcb(0x1ed))/0x1+-parseInt(_0x118fcb(0x1e9))/0x2+parseInt(_0x118fcb(0x1f4))/0x3*(parseInt(_0x118fcb(0x1ef))/0x4)+-parseInt(_0x118fcb(0x1e5))/0x5*(parseInt(_0x118fcb(0x1e4))/0x6)+parseInt(_0x118fcb(0x1ea))/0x7+-parseInt(_0x118fcb(0x1f0))/0x8*(parseInt(_0x118fcb(0x1f5))/0x9)+parseInt(_0x118fcb(0x1e8))/0xa*(parseInt(_0x118fcb(0x1ee))/0xb);if(_0x556cc6===_0x56e168)break;else _0x382033['push'](_0x382033['shift']());}catch(_0x20d3a1){_0x382033['push'](_0x382033['shift']());}}}(a67_0x4503,0x676c1));export function validateLimitOption(_0x29c393){const _0x348fea=a67_0x4260;if(!Number[_0x348fea(0x1f2)](_0x29c393))return{'isValid':![],'error':_0x348fea(0x1ec)+_0x29c393+_0x348fea(0x1f1)};if(_0x29c393<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x29c393+_0x348fea(0x1f3)};return{'isValid':!![],'value':_0x29c393};}function a67_0x4260(_0x1ec999,_0x15dd7a){const _0x4503da=a67_0x4503();return a67_0x4260=function(_0x426075,_0x5ed969){_0x426075=_0x426075-0x1e4;let _0x3474fb=_0x4503da[_0x426075];return _0x3474fb;},a67_0x4260(_0x1ec999,_0x15dd7a);}function a67_0x4503(){const _0x5634e8=['number','.\x20Must\x20be\x20a\x20number.','548380qtXtJl','1162908lsgRDr','3751426avWBLz','Invalid\x20timeout\x20value:\x20','Invalid\x20limit\x20value:\x20','726247tZdrWO','374dgMDpk','4EzwKnd','8HceMgX','.\x20Must\x20be\x20an\x20integer.','isInteger','.\x20Must\x20be\x20a\x20positive\x20integer.','678936fKazKL','2766159PUOECI','354dwjetV','49835fNdnqj'];a67_0x4503=function(){return _0x5634e8;};return a67_0x4503();}export function validateTimeoutOption(_0x5d7eec,_0x11e0f3=0x1e){const _0x3f96f7=a67_0x4260;if(_0x5d7eec===undefined)return{'isValid':!![],'value':_0x11e0f3};const _0x4cfce0=typeof _0x5d7eec===_0x3f96f7(0x1e6)?_0x5d7eec:parseFloat(_0x5d7eec);if(isNaN(_0x4cfce0))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5d7eec+_0x3f96f7(0x1e7)};if(_0x4cfce0<=0x0)return{'isValid':![],'error':_0x3f96f7(0x1eb)+_0x4cfce0+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4cfce0};}
1
+ (function(_0x590937,_0x5894c3){const _0x13faf8=a67_0x12c7,_0x244a67=_0x590937();while(!![]){try{const _0x5dbc85=parseInt(_0x13faf8(0x119))/0x1*(parseInt(_0x13faf8(0x125))/0x2)+-parseInt(_0x13faf8(0x11c))/0x3+-parseInt(_0x13faf8(0x11b))/0x4+parseInt(_0x13faf8(0x11a))/0x5*(parseInt(_0x13faf8(0x11f))/0x6)+-parseInt(_0x13faf8(0x121))/0x7+-parseInt(_0x13faf8(0x120))/0x8+-parseInt(_0x13faf8(0x122))/0x9*(-parseInt(_0x13faf8(0x11e))/0xa);if(_0x5dbc85===_0x5894c3)break;else _0x244a67['push'](_0x244a67['shift']());}catch(_0x376720){_0x244a67['push'](_0x244a67['shift']());}}}(a67_0x5bf1,0x5240e));export function validateLimitOption(_0x3c5174){const _0x3b99ac=a67_0x12c7;if(!Number['isInteger'](_0x3c5174))return{'isValid':![],'error':_0x3b99ac(0x11d)+_0x3c5174+_0x3b99ac(0x127)};if(_0x3c5174<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3c5174+_0x3b99ac(0x124)};return{'isValid':!![],'value':_0x3c5174};}function a67_0x5bf1(){const _0x344cdf=['Invalid\x20limit\x20value:\x20','30RDOSLj','3685296LbcwJV','1954752sieNik','2778650ONcFuZ','432261jVQFbc','.\x20Must\x20be\x20a\x20positive\x20number.','.\x20Must\x20be\x20a\x20positive\x20integer.','386NkNzQE','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','number','2454MKavKX','5maHpgB','322880CAucbQ','519003wEfIuV'];a67_0x5bf1=function(){return _0x344cdf;};return a67_0x5bf1();}function a67_0x12c7(_0x22aeca,_0x236c59){const _0x5bf17d=a67_0x5bf1();return a67_0x12c7=function(_0x12c77d,_0x2084cf){_0x12c77d=_0x12c77d-0x119;let _0x22a2fc=_0x5bf17d[_0x12c77d];return _0x22a2fc;},a67_0x12c7(_0x22aeca,_0x236c59);}export function validateTimeoutOption(_0x3a8ee2,_0x3a6a6d=0x1e){const _0x5b2443=a67_0x12c7;if(_0x3a8ee2===undefined)return{'isValid':!![],'value':_0x3a6a6d};const _0x18bcd7=typeof _0x3a8ee2===_0x5b2443(0x129)?_0x3a8ee2:parseFloat(_0x3a8ee2);if(isNaN(_0x18bcd7))return{'isValid':![],'error':_0x5b2443(0x126)+_0x3a8ee2+_0x5b2443(0x128)};if(_0x18bcd7<=0x0)return{'isValid':![],'error':_0x5b2443(0x126)+_0x18bcd7+_0x5b2443(0x123)};return{'isValid':!![],'value':_0x18bcd7};}
@@ -1 +1 @@
1
- function a68_0xab0a(_0x2f5109,_0x5e5e3a){const _0x14a592=a68_0x14a5();return a68_0xab0a=function(_0xab0a02,_0x183592){_0xab0a02=_0xab0a02-0x1ce;let _0x5c452a=_0x14a592[_0xab0a02];return _0x5c452a;},a68_0xab0a(_0x2f5109,_0x5e5e3a);}(function(_0x2242c2,_0x213e1d){const _0xee72b=a68_0xab0a,_0x47e5da=_0x2242c2();while(!![]){try{const _0x41103b=parseInt(_0xee72b(0x1de))/0x1*(-parseInt(_0xee72b(0x1e3))/0x2)+-parseInt(_0xee72b(0x1d8))/0x3+-parseInt(_0xee72b(0x1cf))/0x4*(parseInt(_0xee72b(0x1e0))/0x5)+parseInt(_0xee72b(0x1d3))/0x6*(parseInt(_0xee72b(0x1dc))/0x7)+-parseInt(_0xee72b(0x1db))/0x8*(-parseInt(_0xee72b(0x1da))/0x9)+-parseInt(_0xee72b(0x1ce))/0xa*(-parseInt(_0xee72b(0x1d6))/0xb)+parseInt(_0xee72b(0x1e2))/0xc;if(_0x41103b===_0x213e1d)break;else _0x47e5da['push'](_0x47e5da['shift']());}catch(_0x37aa29){_0x47e5da['push'](_0x47e5da['shift']());}}}(a68_0x14a5,0xea9e0));import{createServer}from'node:net';export async function isPortAvailable(_0x49fc98){return new Promise(_0x11c320=>{const _0x26f76d=a68_0xab0a,_0x5147c3=createServer();_0x5147c3[_0x26f76d(0x1d1)](_0x26f76d(0x1d4),_0x4ed6a2=>{const _0xe54f39=_0x26f76d;_0x4ed6a2[_0xe54f39(0x1d7)]===_0xe54f39(0x1d0)?_0x11c320(![]):_0x11c320(![]);}),_0x5147c3[_0x26f76d(0x1d1)](_0x26f76d(0x1d5),()=>{const _0x129d7e=_0x26f76d;_0x5147c3[_0x129d7e(0x1d9)](),_0x11c320(!![]);}),_0x5147c3[_0x26f76d(0x1d2)](_0x49fc98,_0x26f76d(0x1dd));});}function a68_0x14a5(){const _0x5f2c9b=['33099264sbpDEJ','618vXRklp','36010ORtPfW','304roQcKG','EADDRINUSE','once','listen','8832CLKuQB','error','listening','4741TRXDpX','code','4965297LgJrnn','close','3916935sRmaLz','24CtovPX','2814RDdcuD','0.0.0.0','6109JBkbRD','\x20and\x20','112100KxuTpI','No\x20available\x20port\x20found\x20between\x20'];a68_0x14a5=function(){return _0x5f2c9b;};return a68_0x14a5();}export async function findAvailablePort(_0x5ae6f1=0xfa0,_0x22f05c=0x64){const _0x2ceea7=a68_0xab0a;for(let _0x453712=0x0;_0x453712<_0x22f05c;_0x453712++){const _0xa567ad=_0x5ae6f1+_0x453712;if(await isPortAvailable(_0xa567ad))return _0xa567ad;}throw new Error(_0x2ceea7(0x1e1)+_0x5ae6f1+_0x2ceea7(0x1df)+(_0x5ae6f1+_0x22f05c-0x1));}
1
+ (function(_0x58f645,_0x2831b8){const _0x9b1897=a68_0x22aa,_0x37c644=_0x58f645();while(!![]){try{const _0x38d57e=-parseInt(_0x9b1897(0x1df))/0x1*(parseInt(_0x9b1897(0x1ea))/0x2)+parseInt(_0x9b1897(0x1dc))/0x3*(-parseInt(_0x9b1897(0x1e2))/0x4)+parseInt(_0x9b1897(0x1d9))/0x5+parseInt(_0x9b1897(0x1e4))/0x6+-parseInt(_0x9b1897(0x1e8))/0x7+-parseInt(_0x9b1897(0x1dd))/0x8+parseInt(_0x9b1897(0x1e0))/0x9*(parseInt(_0x9b1897(0x1e1))/0xa);if(_0x38d57e===_0x2831b8)break;else _0x37c644['push'](_0x37c644['shift']());}catch(_0xb821b3){_0x37c644['push'](_0x37c644['shift']());}}}(a68_0x4ddc,0x2f443));function a68_0x4ddc(){const _0x191dcf=['1OJadcl','2070XidjCN','2730ufVAin','30412jQPGCz','0.0.0.0','1518324ETDopo','once','EADDRINUSE','error','541163lPhcDT','code','367730KdqTbB','listening','1242460wlHvHL','\x20and\x20','No\x20available\x20port\x20found\x20between\x20','39MgGimG','85760noobYD','close'];a68_0x4ddc=function(){return _0x191dcf;};return a68_0x4ddc();}import{createServer}from'node:net';function a68_0x22aa(_0x371fa5,_0x372811){const _0x4ddcc6=a68_0x4ddc();return a68_0x22aa=function(_0x22aad9,_0xa5354d){_0x22aad9=_0x22aad9-0x1d9;let _0x584ba5=_0x4ddcc6[_0x22aad9];return _0x584ba5;},a68_0x22aa(_0x371fa5,_0x372811);}export async function isPortAvailable(_0x3f07c5){return new Promise(_0x3cd63c=>{const _0x2b61e8=a68_0x22aa,_0x3d358d=createServer();_0x3d358d['once'](_0x2b61e8(0x1e7),_0x21d1dc=>{const _0x21473c=_0x2b61e8;_0x21d1dc[_0x21473c(0x1e9)]===_0x21473c(0x1e6)?_0x3cd63c(![]):_0x3cd63c(![]);}),_0x3d358d[_0x2b61e8(0x1e5)](_0x2b61e8(0x1eb),()=>{const _0x387784=_0x2b61e8;_0x3d358d[_0x387784(0x1de)](),_0x3cd63c(!![]);}),_0x3d358d['listen'](_0x3f07c5,_0x2b61e8(0x1e3));});}export async function findAvailablePort(_0x1288e9=0xfa0,_0x5db9e3=0x64){const _0x153aee=a68_0x22aa;for(let _0x6277bf=0x0;_0x6277bf<_0x5db9e3;_0x6277bf++){const _0x5b3a76=_0x1288e9+_0x6277bf;if(await isPortAvailable(_0x5b3a76))return _0x5b3a76;}throw new Error(_0x153aee(0x1db)+_0x1288e9+_0x153aee(0x1da)+(_0x1288e9+_0x5db9e3-0x1));}
@@ -1 +1 @@
1
- const a69_0x4ca1c6=a69_0x1dc1;(function(_0x294da3,_0x2e549d){const _0x1926de=a69_0x1dc1,_0x1259f3=_0x294da3();while(!![]){try{const _0x113425=-parseInt(_0x1926de(0xfb))/0x1*(-parseInt(_0x1926de(0xfa))/0x2)+-parseInt(_0x1926de(0xf1))/0x3+-parseInt(_0x1926de(0xee))/0x4*(parseInt(_0x1926de(0xe9))/0x5)+parseInt(_0x1926de(0xdf))/0x6+-parseInt(_0x1926de(0xf6))/0x7*(parseInt(_0x1926de(0xf7))/0x8)+-parseInt(_0x1926de(0xec))/0x9+parseInt(_0x1926de(0xda))/0xa;if(_0x113425===_0x2e549d)break;else _0x1259f3['push'](_0x1259f3['shift']());}catch(_0x54dee9){_0x1259f3['push'](_0x1259f3['shift']());}}}(a69_0x55e0,0x54fbf));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a69_0x4ca1c6(0xd8),a69_0x4ca1c6(0xef),'sh','fish',a69_0x4ca1c6(0x103),a69_0x4ca1c6(0xea),a69_0x4ca1c6(0xe7),a69_0x4ca1c6(0xe5),a69_0x4ca1c6(0xf2),a69_0x4ca1c6(0xe6),'nu',a69_0x4ca1c6(0xdd),'elvish','xonsh']);function getProcessInfoWindows(_0x4ada8d){const _0x2d800c=a69_0x4ca1c6;try{const _0x77018f=execSync(_0x2d800c(0x102)+_0x4ada8d+_0x2d800c(0xe0),{'encoding':_0x2d800c(0xd9),'windowsHide':!![]})[_0x2d800c(0xe8)](),_0x2abd64=_0x77018f[_0x2d800c(0xdb)]('\x0a')[_0x2d800c(0xfc)](_0x2bc56c=>_0x2bc56c[_0x2d800c(0xe8)]());if(_0x2abd64[_0x2d800c(0xe2)]<0x2)return null;const _0x32ba80=_0x2abd64[_0x2abd64[_0x2d800c(0xe2)]-0x1][_0x2d800c(0xdb)](',');if(_0x32ba80[_0x2d800c(0xe2)]<0x3)return null;const _0x1b76d=_0x32ba80[0x1]?.['trim']()||'',_0x2d4036=parseInt(_0x32ba80[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x2d4036)||!_0x1b76d)return null;return{'pid':_0x4ada8d,'ppid':_0x2d4036,'comm':_0x1b76d[_0x2d800c(0xf0)](/\.exe$/i,'')};}catch(_0x446445){return process[_0x2d800c(0xe3)]['DEBUG']&&console[_0x2d800c(0xeb)](_0x2d800c(0xf8)+_0x4ada8d+'\x20on\x20Windows:',_0x446445),null;}}function getProcessInfoPosix(_0x2192df){const _0x3eb6fe=a69_0x4ca1c6;try{const _0x55fa98=execSync('ps\x20-p\x20'+_0x2192df+_0x3eb6fe(0xfe),{'encoding':_0x3eb6fe(0xd9)})['trim'](),[_0x15ef02,..._0x49c0f3]=_0x55fa98[_0x3eb6fe(0xdb)](/\s+/),_0x2ad8b4=parseInt(_0x15ef02,0xa),_0xc48447=_0x49c0f3['join']('\x20');if(isNaN(_0x2ad8b4))return null;return{'pid':_0x2192df,'ppid':_0x2ad8b4,'comm':_0xc48447};}catch(_0xe68cc7){return process['env']['DEBUG']&&console[_0x3eb6fe(0xeb)](_0x3eb6fe(0xf8)+_0x2192df+_0x3eb6fe(0xe4),_0xe68cc7),null;}}function getProcessInfo(_0x1ee9bf){const _0x4b7bd8=a69_0x4ca1c6;if(process['platform']===_0x4b7bd8(0xf5))return getProcessInfoWindows(_0x1ee9bf);return getProcessInfoPosix(_0x1ee9bf);}function isShell(_0x5a4c15){const _0x488d3f=a69_0x4ca1c6,_0x3cc093=_0x5a4c15[_0x488d3f(0xf0)](/^-/,'')[_0x488d3f(0xdb)]('/')[_0x488d3f(0xf3)]()||'';return SHELL_NAMES[_0x488d3f(0xde)](_0x3cc093[_0x488d3f(0xe1)]());}let cachedShellPID;function findShellPID(){const _0x427ca0=a69_0x4ca1c6;let _0x381a9b=process[_0x427ca0(0xed)];const _0x1acb25=0xa;let _0xc81555=0x0;while(_0xc81555<_0x1acb25){const _0x425cd0=getProcessInfo(_0x381a9b);if(!_0x425cd0){process[_0x427ca0(0xe3)][_0x427ca0(0xf4)]&&console[_0x427ca0(0xeb)](_0x427ca0(0xdc)+_0x381a9b+_0x427ca0(0xfd));break;}if(isShell(_0x425cd0[_0x427ca0(0x100)]))return _0x425cd0['pid'];if(_0x425cd0[_0x427ca0(0xed)]===0x0||_0x425cd0[_0x427ca0(0xed)]===0x1){if(isShell(_0x425cd0[_0x427ca0(0x100)]))return _0x425cd0[_0x427ca0(0xff)];break;}_0x381a9b=_0x425cd0['ppid'],_0xc81555++;}return process[_0x427ca0(0xe3)]['DEBUG']&&console[_0x427ca0(0xeb)](_0x427ca0(0x101)),process[_0x427ca0(0xed)];}function a69_0x55e0(){const _0x4f3ca2=['8vqxqcz','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','kill','134JErzSv','2742NjCUMV','filter',',\x20using\x20fallback','\x20-o\x20ppid=,comm=','pid','comm','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','wmic\x20process\x20where\x20ProcessId=','ksh','bash','utf-8','14900120vXVDVF','split','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','ion','has','1664388JXtvmr','\x20get\x20ParentProcessId,Name\x20/format:csv','toLowerCase','length','env','\x20on\x20POSIX:','dash','powershell','csh','trim','2425gCtVSE','tcsh','error','4668174MRcSur','ppid','372OfwrPA','zsh','replace','1214811QxcHSD','pwsh','pop','DEBUG','win32','4440107qcDuiO'];a69_0x55e0=function(){return _0x4f3ca2;};return a69_0x55e0();}function a69_0x1dc1(_0x4c9012,_0x5b189d){const _0x55e098=a69_0x55e0();return a69_0x1dc1=function(_0x1dc127,_0xacf461){_0x1dc127=_0x1dc127-0xd8;let _0x470463=_0x55e098[_0x1dc127];return _0x470463;},a69_0x1dc1(_0x4c9012,_0x5b189d);}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4d5e96){const _0x1b8d4f=a69_0x4ca1c6;try{return process[_0x1b8d4f(0xf9)](_0x4d5e96,0x0),!![];}catch{return![];}}
1
+ const a69_0x1d9f56=a69_0x223f;function a69_0x2e35(){const _0x469552=['Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','utf-8','fish','replace','trim','comm','ppid','csh','730dhBPKg','9504702nAaTPv','pop','35KhEijP','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','5wxOThR','DEBUG','length','pid','powershell','bash','140254OtlBpg','has','60731uzMAAC','elvish','\x20-o\x20ppid=,comm=','25wOORUK','dash','11332896Ycnbsu','filter','pwsh','split','1084cRHYWa','platform','win32',',\x20using\x20fallback','6033BgsWeM','855810fwDXvl','wmic\x20process\x20where\x20ProcessId=','zsh','kill','error','\x20on\x20POSIX:','ksh','join','614624RAvKuy','env'];a69_0x2e35=function(){return _0x469552;};return a69_0x2e35();}(function(_0x2a1047,_0x2670a8){const _0x268617=a69_0x223f,_0x88c75b=_0x2a1047();while(!![]){try{const _0x3c8a13=parseInt(_0x268617(0x84))/0x1*(parseInt(_0x268617(0x8a))/0x2)+-parseInt(_0x268617(0x99))/0x3*(parseInt(_0x268617(0x95))/0x4)+-parseInt(_0x268617(0x8f))/0x5*(-parseInt(_0x268617(0x9a))/0x6)+-parseInt(_0x268617(0x82))/0x7*(parseInt(_0x268617(0xa2))/0x8)+parseInt(_0x268617(0x80))/0x9+-parseInt(_0x268617(0xac))/0xa*(-parseInt(_0x268617(0x8c))/0xb)+-parseInt(_0x268617(0x91))/0xc;if(_0x3c8a13===_0x2670a8)break;else _0x88c75b['push'](_0x88c75b['shift']());}catch(_0xe92e31){_0x88c75b['push'](_0x88c75b['shift']());}}}(a69_0x2e35,0x9e8b0));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a69_0x1d9f56(0x89),a69_0x1d9f56(0x9c),'sh',a69_0x1d9f56(0xa6),a69_0x1d9f56(0xa0),'tcsh',a69_0x1d9f56(0xab),a69_0x1d9f56(0x90),a69_0x1d9f56(0x93),a69_0x1d9f56(0x88),'nu','ion',a69_0x1d9f56(0x8d),'xonsh']);function getProcessInfoWindows(_0x4ce5cf){const _0x1575c3=a69_0x1d9f56;try{const _0x428144=execSync(_0x1575c3(0x9b)+_0x4ce5cf+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x1575c3(0xa5),'windowsHide':!![]})[_0x1575c3(0xa8)](),_0x4c47ed=_0x428144[_0x1575c3(0x94)]('\x0a')[_0x1575c3(0x92)](_0x1c2a81=>_0x1c2a81[_0x1575c3(0xa8)]());if(_0x4c47ed[_0x1575c3(0x86)]<0x2)return null;const _0x1019f8=_0x4c47ed[_0x4c47ed[_0x1575c3(0x86)]-0x1]['split'](',');if(_0x1019f8[_0x1575c3(0x86)]<0x3)return null;const _0x3249a3=_0x1019f8[0x1]?.[_0x1575c3(0xa8)]()||'',_0x1c9f24=parseInt(_0x1019f8[0x2]?.['trim']()||'0',0xa);if(isNaN(_0x1c9f24)||!_0x3249a3)return null;return{'pid':_0x4ce5cf,'ppid':_0x1c9f24,'comm':_0x3249a3[_0x1575c3(0xa7)](/\.exe$/i,'')};}catch(_0x390c21){return process['env'][_0x1575c3(0x85)]&&console['error']('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x4ce5cf+'\x20on\x20Windows:',_0x390c21),null;}}function getProcessInfoPosix(_0x276d86){const _0x37817d=a69_0x1d9f56;try{const _0x4690de=execSync('ps\x20-p\x20'+_0x276d86+_0x37817d(0x8e),{'encoding':_0x37817d(0xa5)})[_0x37817d(0xa8)](),[_0x2f6b85,..._0x32282d]=_0x4690de['split'](/\s+/),_0x59c7a7=parseInt(_0x2f6b85,0xa),_0x2f094f=_0x32282d[_0x37817d(0xa1)]('\x20');if(isNaN(_0x59c7a7))return null;return{'pid':_0x276d86,'ppid':_0x59c7a7,'comm':_0x2f094f};}catch(_0x3616a5){return process[_0x37817d(0xa3)][_0x37817d(0x85)]&&console[_0x37817d(0x9e)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x276d86+_0x37817d(0x9f),_0x3616a5),null;}}function getProcessInfo(_0x3a7d40){const _0x26acc1=a69_0x1d9f56;if(process[_0x26acc1(0x96)]===_0x26acc1(0x97))return getProcessInfoWindows(_0x3a7d40);return getProcessInfoPosix(_0x3a7d40);}function isShell(_0x3e85ec){const _0x56cfad=a69_0x1d9f56,_0x135c04=_0x3e85ec[_0x56cfad(0xa7)](/^-/,'')[_0x56cfad(0x94)]('/')[_0x56cfad(0x81)]()||'';return SHELL_NAMES[_0x56cfad(0x8b)](_0x135c04['toLowerCase']());}let cachedShellPID;function findShellPID(){const _0x2eddc5=a69_0x1d9f56;let _0x3613fd=process['ppid'];const _0x5674e6=0xa;let _0x3cae39=0x0;while(_0x3cae39<_0x5674e6){const _0xe561eb=getProcessInfo(_0x3613fd);if(!_0xe561eb){process['env'][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0xa4)+_0x3613fd+_0x2eddc5(0x98));break;}if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];if(_0xe561eb['ppid']===0x0||_0xe561eb[_0x2eddc5(0xaa)]===0x1){if(isShell(_0xe561eb[_0x2eddc5(0xa9)]))return _0xe561eb[_0x2eddc5(0x87)];break;}_0x3613fd=_0xe561eb[_0x2eddc5(0xaa)],_0x3cae39++;}return process[_0x2eddc5(0xa3)][_0x2eddc5(0x85)]&&console[_0x2eddc5(0x9e)](_0x2eddc5(0x83)),process[_0x2eddc5(0xaa)];}function a69_0x223f(_0x236494,_0x264299){const _0x2e35ad=a69_0x2e35();return a69_0x223f=function(_0x223f93,_0x1ec415){_0x223f93=_0x223f93-0x80;let _0x4115fd=_0x2e35ad[_0x223f93];return _0x4115fd;},a69_0x223f(_0x236494,_0x264299);}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x5b81c6){const _0x11ec70=a69_0x1d9f56;try{return process[_0x11ec70(0x9d)](_0x5b81c6,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x154fc1,_0x2e84e3){const _0x2ccbae=a70_0x229c,_0x13e1d0=_0x154fc1();while(!![]){try{const _0x3d46bf=parseInt(_0x2ccbae(0xa0))/0x1*(parseInt(_0x2ccbae(0x9a))/0x2)+parseInt(_0x2ccbae(0x9c))/0x3+parseInt(_0x2ccbae(0x9e))/0x4+parseInt(_0x2ccbae(0x99))/0x5+parseInt(_0x2ccbae(0x98))/0x6*(-parseInt(_0x2ccbae(0x9b))/0x7)+parseInt(_0x2ccbae(0xa7))/0x8+-parseInt(_0x2ccbae(0xa2))/0x9;if(_0x3d46bf===_0x2e84e3)break;else _0x13e1d0['push'](_0x13e1d0['shift']());}catch(_0x252c38){_0x13e1d0['push'](_0x13e1d0['shift']());}}}(a70_0x5b59,0x85aa3));import*as a70_0x3ed06b from'readline';function a70_0x5b59(){const _0x224c3e=['2699FavlFQ','close','7193097pzDbhj','createInterface','yes','stdin','\x20(y/N):\x20','4224256UiqdkI','4210788rWlWeR','3909440XcpFyk','188asWQuX','7becENv','974229FltdRT','question','640612xoIKCb','toLowerCase'];a70_0x5b59=function(){return _0x224c3e;};return a70_0x5b59();}function a70_0x229c(_0x139d7e,_0x3459bd){const _0x5b59ae=a70_0x5b59();return a70_0x229c=function(_0x229ca5,_0x4528fd){_0x229ca5=_0x229ca5-0x98;let _0x1eb21b=_0x5b59ae[_0x229ca5];return _0x1eb21b;},a70_0x229c(_0x139d7e,_0x3459bd);}export async function confirm(_0x3ee6f4){const _0x4a91a9=a70_0x229c,_0x1ccd93=a70_0x3ed06b[_0x4a91a9(0xa3)]({'input':process[_0x4a91a9(0xa5)],'output':process['stdout']});return new Promise(_0x2d6eb1=>{const _0x5f0e9c=_0x4a91a9;_0x1ccd93[_0x5f0e9c(0x9d)](_0x3ee6f4+_0x5f0e9c(0xa6),_0x1a96ab=>{const _0x5b2b58=_0x5f0e9c;_0x1ccd93[_0x5b2b58(0xa1)](),_0x2d6eb1(_0x1a96ab['toLowerCase']()==='y'||_0x1a96ab[_0x5b2b58(0x9f)]()===_0x5b2b58(0xa4));});});}
1
+ function a70_0x2dda(_0x45fea0,_0x59897c){const _0x224e8b=a70_0x224e();return a70_0x2dda=function(_0x2dda12,_0x585493){_0x2dda12=_0x2dda12-0x1e1;let _0x59ec1c=_0x224e8b[_0x2dda12];return _0x59ec1c;},a70_0x2dda(_0x45fea0,_0x59897c);}(function(_0x30760a,_0x1a319a){const _0x224dee=a70_0x2dda,_0x52bd58=_0x30760a();while(!![]){try{const _0x2e5aff=parseInt(_0x224dee(0x1ed))/0x1*(parseInt(_0x224dee(0x1e8))/0x2)+-parseInt(_0x224dee(0x1e3))/0x3+parseInt(_0x224dee(0x1e2))/0x4+-parseInt(_0x224dee(0x1e1))/0x5+-parseInt(_0x224dee(0x1e4))/0x6*(-parseInt(_0x224dee(0x1eb))/0x7)+parseInt(_0x224dee(0x1e5))/0x8+parseInt(_0x224dee(0x1e9))/0x9*(-parseInt(_0x224dee(0x1ea))/0xa);if(_0x2e5aff===_0x1a319a)break;else _0x52bd58['push'](_0x52bd58['shift']());}catch(_0x58cee2){_0x52bd58['push'](_0x52bd58['shift']());}}}(a70_0x224e,0x6f0ab));import*as a70_0x575b38 from'readline';function a70_0x224e(){const _0x32af68=['54101sCzKcT','toLowerCase','2908100dSdxCP','783292bSpons','2201676QNQIHB','1994676bIuphg','7241712thbhjj','question','yes','16INQuAv','863568ILzyFJ','10FmIqjU','7uPvUHJ','stdout'];a70_0x224e=function(){return _0x32af68;};return a70_0x224e();}export async function confirm(_0x53a520){const _0x250cd5=a70_0x2dda,_0x340f9a=a70_0x575b38['createInterface']({'input':process['stdin'],'output':process[_0x250cd5(0x1ec)]});return new Promise(_0x34b04b=>{const _0x1e7f00=_0x250cd5;_0x340f9a[_0x1e7f00(0x1e6)](_0x53a520+'\x20(y/N):\x20',_0x6e58dc=>{const _0x54492f=_0x1e7f00;_0x340f9a['close'](),_0x34b04b(_0x6e58dc[_0x54492f(0x1ee)]()==='y'||_0x6e58dc[_0x54492f(0x1ee)]()===_0x54492f(0x1e7));});});}
@@ -1 +1 @@
1
- (function(_0x5594ae,_0x474afc){const _0x546164=a71_0x1f8e,_0x8840e7=_0x5594ae();while(!![]){try{const _0x49a2b1=parseInt(_0x546164(0x103))/0x1+-parseInt(_0x546164(0xec))/0x2*(parseInt(_0x546164(0x102))/0x3)+-parseInt(_0x546164(0xf2))/0x4+-parseInt(_0x546164(0x10a))/0x5+parseInt(_0x546164(0x10b))/0x6+-parseInt(_0x546164(0x101))/0x7*(parseInt(_0x546164(0xf5))/0x8)+-parseInt(_0x546164(0xf0))/0x9*(-parseInt(_0x546164(0xee))/0xa);if(_0x49a2b1===_0x474afc)break;else _0x8840e7['push'](_0x8840e7['shift']());}catch(_0x2be8e1){_0x8840e7['push'](_0x8840e7['shift']());}}}(a71_0x4a61,0xf0ca1));export function parsePath(_0xc2f580){const _0x352e34=a71_0x1f8e;if(!_0xc2f580||_0xc2f580[_0x352e34(0xfb)]()==='')throw new Error(_0x352e34(0xfc));const _0x205409=_0xc2f580[_0x352e34(0xfb)]();if(_0x205409==='/')return{'segments':[],'isAbsolute':!![],'raw':_0xc2f580};const _0x427dac=_0x205409['startsWith']('/')?_0x205409[_0x352e34(0xfa)](0x1):_0x205409,_0x5cac5a=_0x427dac[_0x352e34(0xf1)]('/')[_0x352e34(0xfd)](_0x427f1d=>_0x427f1d!=='');if(_0x5cac5a['length']===0x0)throw new Error(_0x352e34(0x104));const _0x2bb2e5=_0x205409[_0x352e34(0x108)]('/')||!isRelativePathSegment(_0x5cac5a[0x0]);for(const _0x16250f of _0x5cac5a){validatePathSegment(_0x16250f);}return{'segments':_0x5cac5a,'isAbsolute':_0x2bb2e5,'raw':_0xc2f580};}function isRelativePathSegment(_0xd562e2){return _0xd562e2==='.'||_0xd562e2==='..';}function validatePathSegment(_0x5bbf8a){const _0x5387ff=a71_0x1f8e;if(_0x5bbf8a==='')throw new Error(_0x5387ff(0x100));if(_0x5bbf8a==='.'||_0x5bbf8a==='..')return;if(/[\x00-\x1F\x7F]/[_0x5387ff(0xff)](_0x5bbf8a))throw new Error(_0x5387ff(0xef)+_0x5bbf8a);if(_0x5bbf8a!==_0x5bbf8a['trim']()){}}export function validatePath(_0x35d61f){const _0x17edf6=a71_0x1f8e;if(_0x35d61f[_0x17edf6(0xf6)][_0x17edf6(0x109)]===0x0&&!_0x35d61f['isAbsolute'])throw new Error(_0x17edf6(0xfe));if(_0x35d61f[_0x17edf6(0xf7)]){if(_0x35d61f[_0x17edf6(0xf6)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x1dc271=0x0;for(const _0x4a1a44 of _0x35d61f['segments']){if(_0x4a1a44==='..'){if(_0x1dc271===0x0)throw new Error(_0x17edf6(0xf9));_0x1dc271--;}else _0x4a1a44!=='.'&&_0x1dc271++;}}}export function joinPaths(_0x227b5c,_0x3bfa7a){const _0xac8d1c=a71_0x1f8e;if(!_0x227b5c||_0x227b5c==='/')return _0x3bfa7a;if(!_0x3bfa7a||_0x3bfa7a==='.')return _0x227b5c;if(_0x3bfa7a[_0xac8d1c(0x108)]('/'))return _0x3bfa7a;const _0x489737=parsePath(_0x227b5c),_0x4b874d=parsePath(_0x3bfa7a),_0x21f0a6=[..._0x489737[_0xac8d1c(0xf6)]];for(const _0x4f47eb of _0x4b874d[_0xac8d1c(0xf6)]){if(_0x4f47eb==='.')continue;else{if(_0x4f47eb==='..'){if(_0x21f0a6[_0xac8d1c(0x109)]===0x0)throw new Error(_0xac8d1c(0x106));_0x21f0a6[_0xac8d1c(0x105)]();}else _0x21f0a6['push'](_0x4f47eb);}}const _0x1b84e3=_0x21f0a6[_0xac8d1c(0xf3)]('/');return _0x489737['raw'][_0xac8d1c(0x108)]('/')?'/'+_0x1b84e3:_0x1b84e3;}function a71_0x4a61(){const _0x240df2=['Path\x20must\x20contain\x20at\x20least\x20one\x20segment','pop','Cannot\x20navigate\x20above\x20root','raw','startsWith','length','8136180QrspWK','8050272qZsYSa','2378sqKAQN','Cannot\x20split\x20empty\x20path','11890740jUdlkw','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','27ftNCof','split','1151620nDxdhr','join','slice','2088rNzNSg','segments','isAbsolute','push','Path\x20attempts\x20to\x20navigate\x20above\x20root','substring','trim','Path\x20cannot\x20be\x20empty','filter','Relative\x20path\x20cannot\x20be\x20empty','test','Path\x20segment\x20cannot\x20be\x20empty','30002NvxxsO','3579LcVuCN','529603aMRxFc'];a71_0x4a61=function(){return _0x240df2;};return a71_0x4a61();}export function normalizePath(_0x49f822){const _0x269b6c=a71_0x1f8e,_0x4c2e06=parsePath(_0x49f822),_0x36ab19=[];for(const _0x22444e of _0x4c2e06[_0x269b6c(0xf6)]){if(_0x22444e==='.')continue;else{if(_0x22444e==='..'){if(_0x36ab19[_0x269b6c(0x109)]===0x0){if(_0x4c2e06[_0x269b6c(0xf7)])throw new Error(_0x269b6c(0x106));_0x36ab19[_0x269b6c(0xf8)]('..');}else _0x36ab19[_0x36ab19['length']-0x1]==='..'?_0x36ab19[_0x269b6c(0xf8)]('..'):_0x36ab19[_0x269b6c(0x105)]();}else _0x36ab19[_0x269b6c(0xf8)](_0x22444e);}}if(_0x36ab19[_0x269b6c(0x109)]===0x0)return _0x4c2e06[_0x269b6c(0xf7)]?'/':'.';const _0x1afe1c=_0x36ab19[_0x269b6c(0xf3)]('/');return _0x4c2e06[_0x269b6c(0x107)][_0x269b6c(0x108)]('/')?'/'+_0x1afe1c:_0x1afe1c;}export function getParentPath(_0xeaa049){const _0x3c0600=a71_0x1f8e,_0x3de48b=parsePath(_0xeaa049);if(_0x3de48b[_0x3c0600(0xf6)][_0x3c0600(0x109)]<=0x1)return'/';const _0x54177f=_0x3de48b[_0x3c0600(0xf6)][_0x3c0600(0xf4)](0x0,-0x1)[_0x3c0600(0xf3)]('/');return _0x3de48b['raw'][_0x3c0600(0x108)]('/')?'/'+_0x54177f:_0x54177f;}export function getBaseName(_0x42897d){const _0x478e4e=a71_0x1f8e,_0x223081=parsePath(_0x42897d);return _0x223081[_0x478e4e(0xf6)][_0x223081[_0x478e4e(0xf6)][_0x478e4e(0x109)]-0x1]||'';}export function isChildPath(_0xb626ae,_0x286ed7){const _0x396bfc=a71_0x1f8e,_0x480ace=parsePath(_0xb626ae),_0x57e915=parsePath(_0x286ed7);if(_0x480ace[_0x396bfc(0xf6)][_0x396bfc(0x109)]<=_0x57e915[_0x396bfc(0xf6)][_0x396bfc(0x109)])return![];for(let _0x44df5e=0x0;_0x44df5e<_0x57e915[_0x396bfc(0xf6)][_0x396bfc(0x109)];_0x44df5e++){if(_0x480ace[_0x396bfc(0xf6)][_0x44df5e]!==_0x57e915[_0x396bfc(0xf6)][_0x44df5e])return![];}return!![];}function a71_0x1f8e(_0x39ab71,_0x54f1b9){const _0x4a61ab=a71_0x4a61();return a71_0x1f8e=function(_0x1f8eff,_0x22f067){_0x1f8eff=_0x1f8eff-0xec;let _0x170463=_0x4a61ab[_0x1f8eff];return _0x170463;},a71_0x1f8e(_0x39ab71,_0x54f1b9);}export function splitPath(_0x575729){const _0x33896b=a71_0x1f8e,_0x520d3e=parsePath(_0x575729);if(_0x520d3e['segments'][_0x33896b(0x109)]===0x0)throw new Error(_0x33896b(0xed));if(_0x520d3e[_0x33896b(0xf6)][_0x33896b(0x109)]===0x1)return{'parent':_0x520d3e[_0x33896b(0xf6)][0x0]};return{'parent':_0x520d3e[_0x33896b(0xf6)][0x0],'child':_0x520d3e['segments'][_0x33896b(0xf4)](0x1)['join']('/')};}
1
+ function a71_0x19cd(_0xd201cb,_0x32f908){const _0x388630=a71_0x3886();return a71_0x19cd=function(_0x19cdd5,_0x2b88c0){_0x19cdd5=_0x19cdd5-0x11d;let _0x1598fe=_0x388630[_0x19cdd5];return _0x1598fe;},a71_0x19cd(_0xd201cb,_0x32f908);}(function(_0x1e5353,_0x2fc290){const _0x1c590d=a71_0x19cd,_0x4aca7a=_0x1e5353();while(!![]){try{const _0x1678da=parseInt(_0x1c590d(0x123))/0x1*(-parseInt(_0x1c590d(0x134))/0x2)+parseInt(_0x1c590d(0x121))/0x3+-parseInt(_0x1c590d(0x12b))/0x4+-parseInt(_0x1c590d(0x11d))/0x5*(parseInt(_0x1c590d(0x131))/0x6)+-parseInt(_0x1c590d(0x12e))/0x7+-parseInt(_0x1c590d(0x132))/0x8+parseInt(_0x1c590d(0x12f))/0x9;if(_0x1678da===_0x2fc290)break;else _0x4aca7a['push'](_0x4aca7a['shift']());}catch(_0x2fcb3b){_0x4aca7a['push'](_0x4aca7a['shift']());}}}(a71_0x3886,0xe6ebb));export function parsePath(_0x3c264b){const _0x57b0b7=a71_0x19cd;if(!_0x3c264b||_0x3c264b[_0x57b0b7(0x137)]()==='')throw new Error(_0x57b0b7(0x125));const _0x42fd92=_0x3c264b[_0x57b0b7(0x137)]();if(_0x42fd92==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x3c264b};const _0x4197ec=_0x42fd92[_0x57b0b7(0x136)]('/')?_0x42fd92['substring'](0x1):_0x42fd92,_0x461ed1=_0x4197ec[_0x57b0b7(0x12a)]('/')['filter'](_0xa6559c=>_0xa6559c!=='');if(_0x461ed1[_0x57b0b7(0x128)]===0x0)throw new Error(_0x57b0b7(0x11f));const _0x2e0615=_0x42fd92[_0x57b0b7(0x136)]('/')||!isRelativePathSegment(_0x461ed1[0x0]);for(const _0x770bce of _0x461ed1){validatePathSegment(_0x770bce);}return{'segments':_0x461ed1,'isAbsolute':_0x2e0615,'raw':_0x3c264b};}function isRelativePathSegment(_0x1eb992){return _0x1eb992==='.'||_0x1eb992==='..';}function validatePathSegment(_0x200083){const _0x22744f=a71_0x19cd;if(_0x200083==='')throw new Error(_0x22744f(0x12d));if(_0x200083==='.'||_0x200083==='..')return;if(/[\x00-\x1F\x7F]/[_0x22744f(0x124)](_0x200083))throw new Error(_0x22744f(0x12c)+_0x200083);if(_0x200083!==_0x200083[_0x22744f(0x137)]()){}}export function validatePath(_0x5da5e3){const _0x144676=a71_0x19cd;if(_0x5da5e3[_0x144676(0x129)][_0x144676(0x128)]===0x0&&!_0x5da5e3['isAbsolute'])throw new Error(_0x144676(0x130));if(_0x5da5e3[_0x144676(0x11e)]){if(_0x5da5e3[_0x144676(0x129)][0x0]==='..')throw new Error(_0x144676(0x138));let _0x5a56cd=0x0;for(const _0x98d03d of _0x5da5e3[_0x144676(0x129)]){if(_0x98d03d==='..'){if(_0x5a56cd===0x0)throw new Error(_0x144676(0x122));_0x5a56cd--;}else _0x98d03d!=='.'&&_0x5a56cd++;}}}export function joinPaths(_0x5ed61b,_0x16603b){const _0x569995=a71_0x19cd;if(!_0x5ed61b||_0x5ed61b==='/')return _0x16603b;if(!_0x16603b||_0x16603b==='.')return _0x5ed61b;if(_0x16603b[_0x569995(0x136)]('/'))return _0x16603b;const _0x4cbdaf=parsePath(_0x5ed61b),_0x5b7359=parsePath(_0x16603b),_0x3da55d=[..._0x4cbdaf[_0x569995(0x129)]];for(const _0x54e8fb of _0x5b7359[_0x569995(0x129)]){if(_0x54e8fb==='.')continue;else{if(_0x54e8fb==='..'){if(_0x3da55d['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x3da55d[_0x569995(0x127)]();}else _0x3da55d[_0x569995(0x120)](_0x54e8fb);}}const _0x332b1e=_0x3da55d[_0x569995(0x126)]('/');return _0x4cbdaf['raw']['startsWith']('/')?'/'+_0x332b1e:_0x332b1e;}export function normalizePath(_0x1eae60){const _0xaf8b3b=a71_0x19cd,_0x4db3a7=parsePath(_0x1eae60),_0x4f96f6=[];for(const _0x4a1a94 of _0x4db3a7['segments']){if(_0x4a1a94==='.')continue;else{if(_0x4a1a94==='..'){if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0){if(_0x4db3a7[_0xaf8b3b(0x11e)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x4f96f6[_0xaf8b3b(0x120)]('..');}else _0x4f96f6[_0x4f96f6[_0xaf8b3b(0x128)]-0x1]==='..'?_0x4f96f6[_0xaf8b3b(0x120)]('..'):_0x4f96f6['pop']();}else _0x4f96f6[_0xaf8b3b(0x120)](_0x4a1a94);}}if(_0x4f96f6[_0xaf8b3b(0x128)]===0x0)return _0x4db3a7[_0xaf8b3b(0x11e)]?'/':'.';const _0x5c10ff=_0x4f96f6['join']('/');return _0x4db3a7[_0xaf8b3b(0x133)][_0xaf8b3b(0x136)]('/')?'/'+_0x5c10ff:_0x5c10ff;}function a71_0x3886(){const _0x55d792=['66mlDGgF','12465856bwEJvt','raw','2OTUJKR','slice','startsWith','trim','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20split\x20empty\x20path','31450TBXWKZ','isAbsolute','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','push','5610879JKrvRR','Path\x20attempts\x20to\x20navigate\x20above\x20root','227455CElAlV','test','Path\x20cannot\x20be\x20empty','join','pop','length','segments','split','4486692hIkAFs','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20segment\x20cannot\x20be\x20empty','1649284qSQKum','20589480ILMgYF','Relative\x20path\x20cannot\x20be\x20empty'];a71_0x3886=function(){return _0x55d792;};return a71_0x3886();}export function getParentPath(_0x1e650a){const _0x58f2cd=a71_0x19cd,_0x547769=parsePath(_0x1e650a);if(_0x547769[_0x58f2cd(0x129)][_0x58f2cd(0x128)]<=0x1)return'/';const _0x2063d1=_0x547769['segments']['slice'](0x0,-0x1)[_0x58f2cd(0x126)]('/');return _0x547769[_0x58f2cd(0x133)][_0x58f2cd(0x136)]('/')?'/'+_0x2063d1:_0x2063d1;}export function getBaseName(_0x447862){const _0x46462d=a71_0x19cd,_0x417ee3=parsePath(_0x447862);return _0x417ee3[_0x46462d(0x129)][_0x417ee3[_0x46462d(0x129)][_0x46462d(0x128)]-0x1]||'';}export function isChildPath(_0x12ec09,_0x41d911){const _0xa58e2b=a71_0x19cd,_0x40b303=parsePath(_0x12ec09),_0x118e2d=parsePath(_0x41d911);if(_0x40b303[_0xa58e2b(0x129)][_0xa58e2b(0x128)]<=_0x118e2d['segments'][_0xa58e2b(0x128)])return![];for(let _0x39e5bb=0x0;_0x39e5bb<_0x118e2d[_0xa58e2b(0x129)][_0xa58e2b(0x128)];_0x39e5bb++){if(_0x40b303[_0xa58e2b(0x129)][_0x39e5bb]!==_0x118e2d[_0xa58e2b(0x129)][_0x39e5bb])return![];}return!![];}export function splitPath(_0x2ea0fd){const _0xe215e=a71_0x19cd,_0x5b9f72=parsePath(_0x2ea0fd);if(_0x5b9f72[_0xe215e(0x129)]['length']===0x0)throw new Error(_0xe215e(0x139));if(_0x5b9f72['segments'][_0xe215e(0x128)]===0x1)return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0]};return{'parent':_0x5b9f72[_0xe215e(0x129)][0x0],'child':_0x5b9f72[_0xe215e(0x129)][_0xe215e(0x135)](0x1)[_0xe215e(0x126)]('/')};}
@@ -1 +1 @@
1
- function a72_0x134e(){const _0xfc50e6=['4387348NSdQYJ','625RBfMgj','2138658lzXQmw','21324941uXyHtC','indexOf','substring','102258KLRCYx','20HjQPqU','Invalid\x20segment\x20reference\x20format:\x20','1395240xDxWNC','96fyrAQs','25092fFiNku','27443CdjHQe','.\x20Parent\x20name\x20cannot\x20be\x20empty','8KuFtjz'];a72_0x134e=function(){return _0xfc50e6;};return a72_0x134e();}function a72_0x32d7(_0x5d2500,_0x438758){const _0x134e18=a72_0x134e();return a72_0x32d7=function(_0x32d7f9,_0x232481){_0x32d7f9=_0x32d7f9-0xe0;let _0x22eb5b=_0x134e18[_0x32d7f9];return _0x22eb5b;},a72_0x32d7(_0x5d2500,_0x438758);}(function(_0x2a6889,_0x30565c){const _0x473fbc=a72_0x32d7,_0x2d648d=_0x2a6889();while(!![]){try{const _0x3b6a8a=parseInt(_0x473fbc(0xe0))/0x1*(-parseInt(_0x473fbc(0xed))/0x2)+-parseInt(_0x473fbc(0xe5))/0x3+-parseInt(_0x473fbc(0xec))/0x4+-parseInt(_0x473fbc(0xe4))/0x5*(-parseInt(_0x473fbc(0xee))/0x6)+-parseInt(_0x473fbc(0xe3))/0x7*(-parseInt(_0x473fbc(0xe2))/0x8)+-parseInt(_0x473fbc(0xe9))/0x9*(parseInt(_0x473fbc(0xea))/0xa)+parseInt(_0x473fbc(0xe6))/0xb;if(_0x3b6a8a===_0x30565c)break;else _0x2d648d['push'](_0x2d648d['shift']());}catch(_0x5a1515){_0x2d648d['push'](_0x2d648d['shift']());}}}(a72_0x134e,0xa797d));export function parseSegmentRef(_0x446b26){const _0x98fc28=a72_0x32d7,_0xf9e2a6=_0x446b26[_0x98fc28(0xe7)]('/');if(_0xf9e2a6===-0x1)return{'parentId':_0x446b26};if(_0xf9e2a6===0x0)throw new Error(_0x98fc28(0xeb)+_0x446b26+_0x98fc28(0xe1));const _0x1fa39d=_0x446b26[_0x98fc28(0xe8)](0x0,_0xf9e2a6),_0xe65568=_0x446b26[_0x98fc28(0xe8)](_0xf9e2a6+0x1);if(_0xe65568==='')throw new Error(_0x98fc28(0xeb)+_0x446b26+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1fa39d,'childId':_0xe65568};}
1
+ function a72_0x1424(_0x284ecc,_0x65df83){const _0x2be138=a72_0x2be1();return a72_0x1424=function(_0x14241f,_0x193f1f){_0x14241f=_0x14241f-0x100;let _0x1aa110=_0x2be138[_0x14241f];return _0x1aa110;},a72_0x1424(_0x284ecc,_0x65df83);}function a72_0x2be1(){const _0x422d72=['5164cEkiDL','49068znHIjb','365wXSwSD','14907013Faplbb','.\x20Parent\x20name\x20cannot\x20be\x20empty','4410240EKaclT','6043EpzusL','Invalid\x20segment\x20reference\x20format:\x20','substring','81GXSZAh','12LozcvG','523229LrAeBW','518800CNaYzz','42vKtkzT','102GmSViH','indexOf'];a72_0x2be1=function(){return _0x422d72;};return a72_0x2be1();}(function(_0x5db681,_0x533bbc){const _0x3d8079=a72_0x1424,_0x418d61=_0x5db681();while(!![]){try{const _0x38e93f=-parseInt(_0x3d8079(0x107))/0x1*(-parseInt(_0x3d8079(0x10f))/0x2)+parseInt(_0x3d8079(0x102))/0x3+parseInt(_0x3d8079(0x101))/0x4*(-parseInt(_0x3d8079(0x103))/0x5)+-parseInt(_0x3d8079(0x10e))/0x6*(-parseInt(_0x3d8079(0x10c))/0x7)+parseInt(_0x3d8079(0x106))/0x8+-parseInt(_0x3d8079(0x10a))/0x9*(-parseInt(_0x3d8079(0x10d))/0xa)+parseInt(_0x3d8079(0x104))/0xb*(-parseInt(_0x3d8079(0x10b))/0xc);if(_0x38e93f===_0x533bbc)break;else _0x418d61['push'](_0x418d61['shift']());}catch(_0x1322a5){_0x418d61['push'](_0x418d61['shift']());}}}(a72_0x2be1,0x65b28));export function parseSegmentRef(_0x2c6229){const _0x6faa22=a72_0x1424,_0x2f2513=_0x2c6229[_0x6faa22(0x100)]('/');if(_0x2f2513===-0x1)return{'parentId':_0x2c6229};if(_0x2f2513===0x0)throw new Error(_0x6faa22(0x108)+_0x2c6229+_0x6faa22(0x105));const _0x1e5e39=_0x2c6229[_0x6faa22(0x109)](0x0,_0x2f2513),_0xddf23f=_0x2c6229['substring'](_0x2f2513+0x1);if(_0xddf23f==='')throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2c6229+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1e5e39,'childId':_0xddf23f};}
@@ -1 +1 @@
1
- (function(_0x5bc184,_0x671d57){const _0x227134=a73_0x4174,_0x41f2e9=_0x5bc184();while(!![]){try{const _0x16e393=parseInt(_0x227134(0x139))/0x1+parseInt(_0x227134(0x138))/0x2*(parseInt(_0x227134(0x12b))/0x3)+parseInt(_0x227134(0x133))/0x4+-parseInt(_0x227134(0x12d))/0x5+parseInt(_0x227134(0x12c))/0x6*(parseInt(_0x227134(0x142))/0x7)+parseInt(_0x227134(0x135))/0x8+-parseInt(_0x227134(0x12f))/0x9*(parseInt(_0x227134(0x134))/0xa);if(_0x16e393===_0x671d57)break;else _0x41f2e9['push'](_0x41f2e9['shift']());}catch(_0x34f575){_0x41f2e9['push'](_0x41f2e9['shift']());}}}(a73_0x4134,0xce9a3));import a73_0x13260e from'ora';export function createCommandSpinner(_0x3db584,_0x35c40c={}){const _0x4fce02=a73_0x4174,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x35c40c;return a73_0x13260e({'text':_0x3db584,'color':_0x4fce02(0x136),'isEnabled':forceEnabled||process[_0x4fce02(0x13c)]['isTTY']&&!verbose});}function a73_0x4134(){const _0x1ec80f=['2834272aKtCsc','18710MhMqgU','11147384NxABzW','cyan','intervalFactory','49506nKjOHW','596935AnRXOe','now','stop','stdout','replace','text','extra','jobId','floor','168UCPirR','start','30EHWAIs','127470oPPhTm','7231655cuyYCo','\x20[Job\x20ID:\x20','5598OptVlf','isSpinning','toFixed','phase'];a73_0x4134=function(){return _0x1ec80f;};return a73_0x4134();}export async function withSpinner(_0x369aef,_0x271135,_0x42ceed={}){const _0x5f02b5=a73_0x4174,_0x231ac9=_0x42ceed['clock']??(()=>Date['now']()),_0x27d5c9=createCommandSpinner(_0x369aef,_0x42ceed);_0x27d5c9[_0x5f02b5(0x12a)]();const _0xcdf418=_0x231ac9();try{const _0x2e4cee=await _0x271135(),_0x22400f=_0x231ac9()-_0xcdf418;return _0x27d5c9[_0x5f02b5(0x13b)](),{'data':_0x2e4cee,'elapsedMs':_0x22400f};}catch(_0x4745c6){_0x27d5c9[_0x5f02b5(0x13b)]();throw _0x4745c6;}}export async function withQuerySpinner(_0x1ee641,_0xa4e36b,_0x481d37={}){const _0x2af27b=a73_0x4174,_0x340b81=_0x481d37['clock']??(()=>Date[_0x2af27b(0x13a)]()),_0x815fc6=_0x481d37[_0x2af27b(0x137)]??setInterval,_0xbce422=createCommandSpinner(_0x1ee641,_0x481d37);_0xbce422[_0x2af27b(0x12a)]();const _0x529f1e=_0x340b81(),_0x20a812=_0x1ee641[_0x2af27b(0x13d)]('...',''),_0x545146={},_0x1e269a=()=>{const _0x13eb22=_0x2af27b;if(!_0xbce422[_0x13eb22(0x130)])return;const _0x252ed2=_0x340b81()-_0x529f1e,_0xeaa036=formatElapsed(_0x252ed2),_0x2af166=_0x545146[_0x13eb22(0x132)]??_0x20a812,_0x495dae=_0x545146[_0x13eb22(0x140)]?_0x13eb22(0x12e)+_0x545146[_0x13eb22(0x140)]+']':'',_0x525216=_0x545146[_0x13eb22(0x13f)]?'\x20'+_0x545146[_0x13eb22(0x13f)]:'';_0xbce422[_0x13eb22(0x13e)]=_0x2af166+'\x20'+_0xeaa036+_0x525216+_0x495dae;},_0x267e72=_0x815fc6(()=>{_0x1e269a();},0x3e8),_0x5a74bb={'setPhase':_0xb8cfad=>{const _0x3a604b=_0x2af27b;_0x545146[_0x3a604b(0x132)]=_0xb8cfad,_0x1e269a();},'setJobId':_0x53c390=>{const _0x3413ec=_0x2af27b;_0x545146[_0x3413ec(0x140)]=_0x53c390,_0x1e269a();},'setExtra':_0x5bf849=>{_0x545146['extra']=_0x5bf849,_0x1e269a();}};_0x1e269a();try{const _0x590064=await _0xa4e36b(_0x5a74bb),_0x42aff8=_0x340b81()-_0x529f1e;return{'data':_0x590064,'elapsedMs':_0x42aff8};}finally{clearInterval(_0x267e72),_0xbce422['stop']();}}function a73_0x4174(_0x10138e,_0x466ba7){const _0x4134d5=a73_0x4134();return a73_0x4174=function(_0x41741a,_0x1a246f){_0x41741a=_0x41741a-0x12a;let _0x3a4877=_0x4134d5[_0x41741a];return _0x3a4877;},a73_0x4174(_0x10138e,_0x466ba7);}export function formatElapsed(_0x2135e8){const _0x462780=a73_0x4174,_0x52a76d=Math[_0x462780(0x141)](_0x2135e8/0x3e8);if(_0x52a76d<0x3c)return(_0x2135e8/0x3e8)[_0x462780(0x131)](0x1)+'s';const _0x9f2eb1=Math[_0x462780(0x141)](_0x52a76d/0x3c),_0x516fdf=_0x52a76d%0x3c;if(_0x9f2eb1<0x3c)return _0x9f2eb1+'m\x20'+_0x516fdf+'s';const _0x19c214=Math['floor'](_0x9f2eb1/0x3c),_0x217196=_0x9f2eb1%0x3c;return _0x19c214+'h\x20'+_0x217196+'m';}
1
+ (function(_0x4fa166,_0xa104d9){const _0x552847=a73_0x281d,_0x540d62=_0x4fa166();while(!![]){try{const _0x18c460=parseInt(_0x552847(0x1a3))/0x1*(-parseInt(_0x552847(0x1ad))/0x2)+-parseInt(_0x552847(0x1a4))/0x3+parseInt(_0x552847(0x1a1))/0x4+parseInt(_0x552847(0x1a5))/0x5*(-parseInt(_0x552847(0x1a7))/0x6)+-parseInt(_0x552847(0x1ae))/0x7*(parseInt(_0x552847(0x1a8))/0x8)+-parseInt(_0x552847(0x19a))/0x9*(parseInt(_0x552847(0x1aa))/0xa)+parseInt(_0x552847(0x19c))/0xb;if(_0x18c460===_0xa104d9)break;else _0x540d62['push'](_0x540d62['shift']());}catch(_0x1a1d23){_0x540d62['push'](_0x540d62['shift']());}}}(a73_0x533a,0x781e4));import a73_0x3bf353 from'ora';export function createCommandSpinner(_0x3f1926,_0x13e9cd={}){const _0x5e1d23=a73_0x281d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x13e9cd;return a73_0x3bf353({'text':_0x3f1926,'color':'cyan','isEnabled':forceEnabled||process['stdout'][_0x5e1d23(0x1a9)]&&!verbose});}function a73_0x281d(_0x3e225f,_0x2eb175){const _0x533ae0=a73_0x533a();return a73_0x281d=function(_0x281d78,_0x14e497){_0x281d78=_0x281d78-0x199;let _0x510df4=_0x533ae0[_0x281d78];return _0x510df4;},a73_0x281d(_0x3e225f,_0x2eb175);}export async function withSpinner(_0x51cf4c,_0x1bdae4,_0x2ca2eb={}){const _0x5d70a4=a73_0x281d,_0x50f9f0=_0x2ca2eb[_0x5d70a4(0x1af)]??(()=>Date[_0x5d70a4(0x1b1)]()),_0x2d906d=createCommandSpinner(_0x51cf4c,_0x2ca2eb);_0x2d906d['start']();const _0x18c71=_0x50f9f0();try{const _0x188223=await _0x1bdae4(),_0x3694bc=_0x50f9f0()-_0x18c71;return _0x2d906d[_0x5d70a4(0x1a2)](),{'data':_0x188223,'elapsedMs':_0x3694bc};}catch(_0x238794){_0x2d906d['stop']();throw _0x238794;}}function a73_0x533a(){const _0xe34ff1=['\x20[Job\x20ID:\x20','64yXHaIK','139419eIPfjV','clock','isSpinning','now','jobId','9bCYbyg','intervalFactory','23558579LsysFW','phase','...','extra','start','23952fDxxtx','stop','1789vvjbJO','2553660fpChqn','253545fZgtSW','replace','48SkRByq','120TDfLyS','isTTY','427780OBhkCX','text'];a73_0x533a=function(){return _0xe34ff1;};return a73_0x533a();}export async function withQuerySpinner(_0xe84c75,_0x2116d8,_0x1d53f8={}){const _0x391a93=a73_0x281d,_0x4dcf36=_0x1d53f8['clock']??(()=>Date['now']()),_0x5efd50=_0x1d53f8[_0x391a93(0x19b)]??setInterval,_0x1bb3cd=createCommandSpinner(_0xe84c75,_0x1d53f8);_0x1bb3cd[_0x391a93(0x1a0)]();const _0x2453e0=_0x4dcf36(),_0x177b45=_0xe84c75[_0x391a93(0x1a6)](_0x391a93(0x19e),''),_0x250483={},_0x225f6f=()=>{const _0x56bfe9=_0x391a93;if(!_0x1bb3cd[_0x56bfe9(0x1b0)])return;const _0x52ff00=_0x4dcf36()-_0x2453e0,_0x197d8a=formatElapsed(_0x52ff00),_0x215dab=_0x250483[_0x56bfe9(0x19d)]??_0x177b45,_0x54cf97=_0x250483[_0x56bfe9(0x199)]?_0x56bfe9(0x1ac)+_0x250483[_0x56bfe9(0x199)]+']':'',_0x4f1964=_0x250483[_0x56bfe9(0x19f)]?'\x20'+_0x250483[_0x56bfe9(0x19f)]:'';_0x1bb3cd[_0x56bfe9(0x1ab)]=_0x215dab+'\x20'+_0x197d8a+_0x4f1964+_0x54cf97;},_0xd82f5d=_0x5efd50(()=>{_0x225f6f();},0x3e8),_0x45e3d6={'setPhase':_0x224a18=>{_0x250483['phase']=_0x224a18,_0x225f6f();},'setJobId':_0xe7f55=>{_0x250483['jobId']=_0xe7f55,_0x225f6f();},'setExtra':_0x3186c9=>{const _0x305394=_0x391a93;_0x250483[_0x305394(0x19f)]=_0x3186c9,_0x225f6f();}};_0x225f6f();try{const _0x5e36ed=await _0x2116d8(_0x45e3d6),_0x2506e3=_0x4dcf36()-_0x2453e0;return{'data':_0x5e36ed,'elapsedMs':_0x2506e3};}finally{clearInterval(_0xd82f5d),_0x1bb3cd[_0x391a93(0x1a2)]();}}export function formatElapsed(_0x2f11b6){const _0x1c2e9e=Math['floor'](_0x2f11b6/0x3e8);if(_0x1c2e9e<0x3c)return(_0x2f11b6/0x3e8)['toFixed'](0x1)+'s';const _0x3113c0=Math['floor'](_0x1c2e9e/0x3c),_0x32d611=_0x1c2e9e%0x3c;if(_0x3113c0<0x3c)return _0x3113c0+'m\x20'+_0x32d611+'s';const _0x18b5d2=Math['floor'](_0x3113c0/0x3c),_0x51ed26=_0x3113c0%0x3c;return _0x18b5d2+'h\x20'+_0x51ed26+'m';}
@@ -1 +1 @@
1
- (function(_0x36652e,_0x4e0aff){const _0x55e58e=a74_0x506a,_0x51854b=_0x36652e();while(!![]){try{const _0x344a7f=parseInt(_0x55e58e(0x1bc))/0x1+parseInt(_0x55e58e(0x1af))/0x2*(parseInt(_0x55e58e(0x1b0))/0x3)+-parseInt(_0x55e58e(0x1c3))/0x4*(parseInt(_0x55e58e(0x1b8))/0x5)+parseInt(_0x55e58e(0x1b1))/0x6+parseInt(_0x55e58e(0x1ab))/0x7*(-parseInt(_0x55e58e(0x1bd))/0x8)+-parseInt(_0x55e58e(0x1b2))/0x9*(-parseInt(_0x55e58e(0x1bb))/0xa)+-parseInt(_0x55e58e(0x1b6))/0xb;if(_0x344a7f===_0x4e0aff)break;else _0x51854b['push'](_0x51854b['shift']());}catch(_0x509cc8){_0x51854b['push'](_0x51854b['shift']());}}}(a74_0x5f1d,0xeccfe));import{readFileSync}from'fs';export function stripSqlComments(_0x5da99a){const _0x4aaf60=a74_0x506a;let _0x315cbb=_0x5da99a[_0x4aaf60(0x1c0)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x315cbb=_0x315cbb[_0x4aaf60(0x1c0)](/--.*$/gm,''),_0x315cbb[_0x4aaf60(0x1b9)]();}function a74_0x5f1d(){const _0x23b58e=['\x27:\x20','Content\x20contains\x20no\x20SQL\x20statements','utf-8','13166076WsGLSK','Error\x20reading\x20file\x20\x27','24305EmSIQo','trim','\x27\x20not\x20found','310DZyTUf','1524972NsvzqQ','2408jJnkDX','Permission\x20denied\x20reading\x20file\x20\x27','filter','replace','code','length','160zYaOcB','21987Jyrvcd','push','File\x20\x27','EACCES','222NPyqMf','24081mexxzi','2626470ucuAcs','131535LusMUl'];a74_0x5f1d=function(){return _0x23b58e;};return a74_0x5f1d();}function a74_0x506a(_0x4ddad1,_0x4050ff){const _0x5f1d25=a74_0x5f1d();return a74_0x506a=function(_0x506ae7,_0x355288){_0x506ae7=_0x506ae7-0x1ab;let _0x203ef6=_0x5f1d25[_0x506ae7];return _0x203ef6;},a74_0x506a(_0x4ddad1,_0x4050ff);}function isEscaped(_0x186f4a,_0x16bda9){let _0xe403c=0x0;for(let _0x1e1d49=_0x16bda9-0x1;_0x1e1d49>=0x0&&_0x186f4a[_0x1e1d49]==='\x5c';_0x1e1d49--){_0xe403c++;}return _0xe403c%0x2===0x1;}export function splitSqlStatements(_0x429856){const _0x419241=a74_0x506a,_0x38f82b=stripSqlComments(_0x429856);if(!_0x38f82b)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x29d8b4=[];let _0x5d251a='',_0x36837d=![],_0x28b1de=![],_0x170c4c=![];for(let _0x54012d=0x0;_0x54012d<_0x429856['length'];_0x54012d++){const _0x1503bc=_0x429856[_0x54012d];if(_0x1503bc==='\x27'&&!isEscaped(_0x429856,_0x54012d)&&!_0x28b1de&&!_0x170c4c)_0x36837d=!_0x36837d;else{if(_0x1503bc==='\x22'&&!isEscaped(_0x429856,_0x54012d)&&!_0x36837d&&!_0x170c4c)_0x28b1de=!_0x28b1de;else _0x1503bc==='`'&&!isEscaped(_0x429856,_0x54012d)&&!_0x36837d&&!_0x28b1de&&(_0x170c4c=!_0x170c4c);}if(_0x1503bc===';'&&!_0x36837d&&!_0x28b1de&&!_0x170c4c){const _0x28cb74=_0x5d251a[_0x419241(0x1b9)]();_0x28cb74&&_0x29d8b4[_0x419241(0x1ac)](_0x28cb74),_0x5d251a='';}else _0x5d251a+=_0x1503bc;}const _0x868a82=_0x5d251a['trim']();_0x868a82&&_0x29d8b4['push'](_0x868a82);const _0x4e9579=_0x29d8b4['map'](_0x4087f7=>_0x4087f7[_0x419241(0x1b9)]())[_0x419241(0x1bf)](_0x5eb54d=>{const _0x18c452=_0x419241,_0x5aa93c=stripSqlComments(_0x5eb54d);return _0x5aa93c[_0x18c452(0x1c2)]>0x0;});if(_0x4e9579['length']===0x0)throw new Error(_0x419241(0x1b4));return _0x4e9579;}export function readFileContent(_0x17d31c){const _0x21afdb=a74_0x506a;try{return readFileSync(_0x17d31c,_0x21afdb(0x1b5));}catch(_0x4a700c){const _0x47f1ab=_0x4a700c[_0x21afdb(0x1c1)];if(_0x47f1ab==='ENOENT')throw new Error('File\x20\x27'+_0x17d31c+_0x21afdb(0x1ba));else{if(_0x47f1ab===_0x21afdb(0x1ae))throw new Error(_0x21afdb(0x1be)+_0x17d31c+'\x27');else throw new Error(_0x21afdb(0x1b7)+_0x17d31c+_0x21afdb(0x1b3)+_0x4a700c['message']);}}}export function readSqlStatementsFromFile(_0x3d7898){const _0x3708ae=a74_0x506a,_0x1fed34=readFileContent(_0x3d7898);try{return splitSqlStatements(_0x1fed34);}catch(_0x569cbe){throw new Error(_0x3708ae(0x1ad)+_0x3d7898+'\x27\x20'+_0x569cbe['message']['toLowerCase']());}}
1
+ (function(_0x72603b,_0x53ab75){const _0x2de0a5=a74_0x17b0,_0x102a56=_0x72603b();while(!![]){try{const _0x38f0d3=-parseInt(_0x2de0a5(0x90))/0x1+parseInt(_0x2de0a5(0x8d))/0x2*(-parseInt(_0x2de0a5(0xa2))/0x3)+parseInt(_0x2de0a5(0x92))/0x4+parseInt(_0x2de0a5(0x9e))/0x5+-parseInt(_0x2de0a5(0x9b))/0x6+parseInt(_0x2de0a5(0x91))/0x7*(parseInt(_0x2de0a5(0x99))/0x8)+-parseInt(_0x2de0a5(0x97))/0x9*(-parseInt(_0x2de0a5(0x96))/0xa);if(_0x38f0d3===_0x53ab75)break;else _0x102a56['push'](_0x102a56['shift']());}catch(_0x314037){_0x102a56['push'](_0x102a56['shift']());}}}(a74_0x5f44,0x506ad));import{readFileSync}from'fs';export function stripSqlComments(_0x1984c8){const _0x33a2cb=a74_0x17b0;let _0x395396=_0x1984c8[_0x33a2cb(0x8f)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x395396=_0x395396[_0x33a2cb(0x8f)](/--.*$/gm,''),_0x395396[_0x33a2cb(0x9d)]();}function a74_0x17b0(_0x5787ff,_0x2e13a4){const _0x5f4448=a74_0x5f44();return a74_0x17b0=function(_0x17b0ae,_0x228e59){_0x17b0ae=_0x17b0ae-0x8d;let _0x6bbe55=_0x5f4448[_0x17b0ae];return _0x6bbe55;},a74_0x17b0(_0x5787ff,_0x2e13a4);}function isEscaped(_0x514829,_0x7ab48c){let _0x2caba9=0x0;for(let _0x195f9d=_0x7ab48c-0x1;_0x195f9d>=0x0&&_0x514829[_0x195f9d]==='\x5c';_0x195f9d--){_0x2caba9++;}return _0x2caba9%0x2===0x1;}export function splitSqlStatements(_0x4b7190){const _0x500a29=a74_0x17b0,_0x2130d9=stripSqlComments(_0x4b7190);if(!_0x2130d9)throw new Error(_0x500a29(0xa0));const _0x597cb6=[];let _0x2b5a5c='',_0x58ef50=![],_0x24178c=![],_0xec828b=![];for(let _0xc24383=0x0;_0xc24383<_0x4b7190['length'];_0xc24383++){const _0x38293a=_0x4b7190[_0xc24383];if(_0x38293a==='\x27'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x24178c&&!_0xec828b)_0x58ef50=!_0x58ef50;else{if(_0x38293a==='\x22'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0xec828b)_0x24178c=!_0x24178c;else _0x38293a==='`'&&!isEscaped(_0x4b7190,_0xc24383)&&!_0x58ef50&&!_0x24178c&&(_0xec828b=!_0xec828b);}if(_0x38293a===';'&&!_0x58ef50&&!_0x24178c&&!_0xec828b){const _0x211b75=_0x2b5a5c[_0x500a29(0x9d)]();_0x211b75&&_0x597cb6[_0x500a29(0x93)](_0x211b75),_0x2b5a5c='';}else _0x2b5a5c+=_0x38293a;}const _0x11d258=_0x2b5a5c['trim']();_0x11d258&&_0x597cb6[_0x500a29(0x93)](_0x11d258);const _0x4ef8a0=_0x597cb6[_0x500a29(0x9c)](_0x4a4b0e=>_0x4a4b0e[_0x500a29(0x9d)]())['filter'](_0x38a8c5=>{const _0x473495=_0x500a29,_0x203949=stripSqlComments(_0x38a8c5);return _0x203949[_0x473495(0x98)]>0x0;});if(_0x4ef8a0[_0x500a29(0x98)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x4ef8a0;}export function readFileContent(_0x5ab878){const _0x46c3a0=a74_0x17b0;try{return readFileSync(_0x5ab878,_0x46c3a0(0x8e));}catch(_0x18a332){const _0x5396ff=_0x18a332[_0x46c3a0(0xa1)];if(_0x5396ff==='ENOENT')throw new Error(_0x46c3a0(0xa3)+_0x5ab878+_0x46c3a0(0x9f));else{if(_0x5396ff==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x5ab878+'\x27');else throw new Error(_0x46c3a0(0x94)+_0x5ab878+_0x46c3a0(0xa4)+_0x18a332['message']);}}}export function readSqlStatementsFromFile(_0x835051){const _0x402a01=a74_0x17b0,_0x4c03ee=readFileContent(_0x835051);try{return splitSqlStatements(_0x4c03ee);}catch(_0x186ad9){throw new Error(_0x402a01(0xa3)+_0x835051+'\x27\x20'+_0x186ad9[_0x402a01(0x95)][_0x402a01(0x9a)]());}}function a74_0x5f44(){const _0x379cc8=['625221tJgVdH','2123359zLwhWU','403684ILocVy','push','Error\x20reading\x20file\x20\x27','message','470rRIaPH','115110YPLuKj','length','8nzRhBU','toLowerCase','584268qLGUTo','map','trim','1347645wAGBku','\x27\x20not\x20found','Content\x20contains\x20no\x20SQL\x20statements','code','3SoiqWJ','File\x20\x27','\x27:\x20','445858RSmxaa','utf-8','replace'];a74_0x5f44=function(){return _0x379cc8;};return a74_0x5f44();}
@@ -1 +1 @@
1
- (function(_0x59ba36,_0x2ba471){const _0xad004a=a75_0x9460,_0x27f058=_0x59ba36();while(!![]){try{const _0x1ae34e=parseInt(_0xad004a(0x9e))/0x1*(parseInt(_0xad004a(0xac))/0x2)+-parseInt(_0xad004a(0xa2))/0x3*(parseInt(_0xad004a(0xaa))/0x4)+parseInt(_0xad004a(0x9a))/0x5*(-parseInt(_0xad004a(0x9c))/0x6)+parseInt(_0xad004a(0xb0))/0x7*(-parseInt(_0xad004a(0xab))/0x8)+parseInt(_0xad004a(0xa6))/0x9+-parseInt(_0xad004a(0x9b))/0xa*(-parseInt(_0xad004a(0xa0))/0xb)+parseInt(_0xad004a(0xa4))/0xc;if(_0x1ae34e===_0x2ba471)break;else _0x27f058['push'](_0x27f058['shift']());}catch(_0x3bbedc){_0x27f058['push'](_0x27f058['shift']());}}}(a75_0x352b,0xd63ea));function a75_0x9460(_0x6cc738,_0x477e06){const _0x352b84=a75_0x352b();return a75_0x9460=function(_0x9460be,_0x1cce22){_0x9460be=_0x9460be-0x9a;let _0x30dcc2=_0x352b84[_0x9460be];return _0x30dcc2;},a75_0x9460(_0x6cc738,_0x477e06);}export async function*parseSSEStream(_0x5e887f){const _0x598774=a75_0x9460;if(!_0x5e887f[_0x598774(0xae)])throw new Error(_0x598774(0xa9));const _0x5aa17b=_0x5e887f['body'][_0x598774(0xaf)](),_0x5a48aa=new TextDecoder();let _0x150838='',_0x432d49={};try{while(!![]){const {done:_0xfe9536,value:_0x1b1053}=await _0x5aa17b['read']();if(_0xfe9536){_0x432d49['data']&&(yield parseSSEData(_0x432d49[_0x598774(0xa1)]));break;}_0x150838+=_0x5a48aa['decode'](_0x1b1053,{'stream':!![]});const _0x2444b2=_0x150838['split']('\x0a');_0x150838=_0x2444b2[_0x598774(0x9f)]()||'';for(const _0x1f00c4 of _0x2444b2){if(_0x1f00c4['trim']()===''){_0x432d49[_0x598774(0xa1)]&&(yield parseSSEData(_0x432d49[_0x598774(0xa1)]),_0x432d49={});continue;}if(_0x1f00c4['startsWith'](':'))continue;const _0x5cdbc8=_0x1f00c4[_0x598774(0xa3)](':');if(_0x5cdbc8===-0x1)continue;const _0x23d858=_0x1f00c4[_0x598774(0xa7)](0x0,_0x5cdbc8);let _0x4b6487=_0x1f00c4[_0x598774(0xa7)](_0x5cdbc8+0x1);_0x4b6487[_0x598774(0x9d)]('\x20')&&(_0x4b6487=_0x4b6487[_0x598774(0xa7)](0x1));switch(_0x23d858){case _0x598774(0xad):_0x432d49['event']=_0x4b6487;break;case _0x598774(0xa1):_0x432d49['data']=_0x432d49[_0x598774(0xa1)]?_0x432d49[_0x598774(0xa1)]+'\x0a'+_0x4b6487:_0x4b6487;break;case'id':_0x432d49['id']=_0x4b6487;break;}}}}finally{_0x5aa17b['releaseLock']();}}function parseSSEData(_0x4f7b2b){const _0x25cece=a75_0x9460;try{return JSON[_0x25cece(0xa5)](_0x4f7b2b);}catch(_0x1c350a){throw new Error(_0x25cece(0xa8)+_0x4f7b2b,{'cause':_0x1c350a});}}function a75_0x352b(){const _0xaf46c1=['9093015oBXlCs','slice','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','Response\x20body\x20is\x20null','18024uOnkOE','119656NastmR','54Tvryvw','event','body','getReader','574wZwKqA','4235045GAajKW','730zsKoHQ','6vhXxsq','startsWith','63743BgCRdr','pop','123827eopCgL','data','990Xwdhgu','indexOf','10618224qQdkWt','parse'];a75_0x352b=function(){return _0xaf46c1;};return a75_0x352b();}
1
+ function a75_0x2801(){const _0x2ec243=['slice','event','264332aFSkTO','3252520oSsTvj','10WMifZs','12681DYtddr','getReader','read','releaseLock','data','body','startsWith','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','decode','2250612BqGzXd','2395180WJmnsk','1074927nhPKns','parse','Response\x20body\x20is\x20null','2053296KFbJqm','6Gjfmak'];a75_0x2801=function(){return _0x2ec243;};return a75_0x2801();}(function(_0x46beee,_0x4f363c){const _0x313deb=a75_0x5974,_0x353d49=_0x46beee();while(!![]){try{const _0x33ae4f=parseInt(_0x313deb(0xa1))/0x1*(-parseInt(_0x313deb(0xa0))/0x2)+parseInt(_0x313deb(0xad))/0x3+parseInt(_0x313deb(0x9e))/0x4+-parseInt(_0x313deb(0xac))/0x5*(parseInt(_0x313deb(0x9b))/0x6)+parseInt(_0x313deb(0xab))/0x7+parseInt(_0x313deb(0x9f))/0x8+-parseInt(_0x313deb(0x9a))/0x9;if(_0x33ae4f===_0x4f363c)break;else _0x353d49['push'](_0x353d49['shift']());}catch(_0x248f80){_0x353d49['push'](_0x353d49['shift']());}}}(a75_0x2801,0x5d3c0));export async function*parseSSEStream(_0x58fe56){const _0x5f20da=a75_0x5974;if(!_0x58fe56[_0x5f20da(0xa6)])throw new Error(_0x5f20da(0x99));const _0x535b83=_0x58fe56[_0x5f20da(0xa6)][_0x5f20da(0xa2)](),_0x4bf576=new TextDecoder();let _0x6bed1e='',_0x5da539={};try{while(!![]){const {done:_0x1b3258,value:_0x3f6fa7}=await _0x535b83[_0x5f20da(0xa3)]();if(_0x1b3258){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]));break;}_0x6bed1e+=_0x4bf576[_0x5f20da(0xaa)](_0x3f6fa7,{'stream':!![]});const _0x4b2dd7=_0x6bed1e['split']('\x0a');_0x6bed1e=_0x4b2dd7['pop']()||'';for(const _0xf018e5 of _0x4b2dd7){if(_0xf018e5['trim']()===''){_0x5da539[_0x5f20da(0xa5)]&&(yield parseSSEData(_0x5da539[_0x5f20da(0xa5)]),_0x5da539={});continue;}if(_0xf018e5[_0x5f20da(0xa7)](':'))continue;const _0x4664fb=_0xf018e5[_0x5f20da(0xa8)](':');if(_0x4664fb===-0x1)continue;const _0x2e45a8=_0xf018e5['slice'](0x0,_0x4664fb);let _0xe33076=_0xf018e5[_0x5f20da(0x9c)](_0x4664fb+0x1);_0xe33076[_0x5f20da(0xa7)]('\x20')&&(_0xe33076=_0xe33076['slice'](0x1));switch(_0x2e45a8){case _0x5f20da(0x9d):_0x5da539[_0x5f20da(0x9d)]=_0xe33076;break;case _0x5f20da(0xa5):_0x5da539[_0x5f20da(0xa5)]=_0x5da539[_0x5f20da(0xa5)]?_0x5da539[_0x5f20da(0xa5)]+'\x0a'+_0xe33076:_0xe33076;break;case'id':_0x5da539['id']=_0xe33076;break;}}}}finally{_0x535b83[_0x5f20da(0xa4)]();}}function a75_0x5974(_0x488679,_0x28ebed){const _0x2801c3=a75_0x2801();return a75_0x5974=function(_0x59742f,_0x1d2957){_0x59742f=_0x59742f-0x98;let _0xb507e8=_0x2801c3[_0x59742f];return _0xb507e8;},a75_0x5974(_0x488679,_0x28ebed);}function parseSSEData(_0x361dd5){const _0x59f568=a75_0x5974;try{return JSON[_0x59f568(0x98)](_0x361dd5);}catch(_0x45999){throw new Error(_0x59f568(0xa9)+_0x361dd5,{'cause':_0x45999});}}
@@ -1 +1 @@
1
- function a76_0x2720(_0x2b07eb,_0x5b5f5c){const _0x510751=a76_0x5107();return a76_0x2720=function(_0x272002,_0x889f54){_0x272002=_0x272002-0x16b;let _0x2f3da0=_0x510751[_0x272002];return _0x2f3da0;},a76_0x2720(_0x2b07eb,_0x5b5f5c);}(function(_0x177b0d,_0x37dcbe){const _0x17bfba=a76_0x2720,_0x1e0f23=_0x177b0d();while(!![]){try{const _0x214528=-parseInt(_0x17bfba(0x17e))/0x1*(-parseInt(_0x17bfba(0x173))/0x2)+parseInt(_0x17bfba(0x170))/0x3+parseInt(_0x17bfba(0x178))/0x4*(-parseInt(_0x17bfba(0x181))/0x5)+parseInt(_0x17bfba(0x179))/0x6+-parseInt(_0x17bfba(0x172))/0x7*(parseInt(_0x17bfba(0x16d))/0x8)+-parseInt(_0x17bfba(0x175))/0x9+parseInt(_0x17bfba(0x171))/0xa;if(_0x214528===_0x37dcbe)break;else _0x1e0f23['push'](_0x1e0f23['shift']());}catch(_0x21b522){_0x1e0f23['push'](_0x1e0f23['shift']());}}}(a76_0x5107,0xac5f4));import a76_0x5c0ed0 from'string-width';export function stringWidth(_0x2d8980){return a76_0x5c0ed0(_0x2d8980);}export function padEnd(_0x364a10,_0x2d3036){const _0x5123e4=a76_0x2720,_0x2a4397=stringWidth(_0x364a10);if(_0x2a4397>=_0x2d3036)return _0x364a10;return _0x364a10+'\x20'[_0x5123e4(0x174)](_0x2d3036-_0x2a4397);}export function padStart(_0x17d6fa,_0x3985ae){const _0x25346c=stringWidth(_0x17d6fa);if(_0x25346c>=_0x3985ae)return _0x17d6fa;return'\x20'['repeat'](_0x3985ae-_0x25346c)+_0x17d6fa;}export function centerAlign(_0x1549ef,_0x5a3b86){const _0x14a11e=a76_0x2720,_0xa230e4=stringWidth(_0x1549ef);if(_0xa230e4>_0x5a3b86){if(_0x5a3b86<=0x1)return'…'[_0x14a11e(0x17b)](0x0,_0x5a3b86);let _0x2b97ab=_0x1549ef;while(stringWidth(_0x2b97ab+'…')>_0x5a3b86){_0x2b97ab=_0x2b97ab[_0x14a11e(0x183)](0x0,-0x1);}return _0x2b97ab+'…';}if(_0xa230e4===_0x5a3b86)return _0x1549ef;const _0x17f550=_0x5a3b86-_0xa230e4,_0x59f851=Math[_0x14a11e(0x182)](_0x17f550/0x2),_0x594496=_0x17f550-_0x59f851;return'\x20'[_0x14a11e(0x174)](_0x59f851)+_0x1549ef+'\x20'[_0x14a11e(0x174)](_0x594496);}export function escapeStringLiteral(_0xcb611e){const _0x34ee22=a76_0x2720;if(!_0xcb611e||_0xcb611e[_0x34ee22(0x176)]()[_0x34ee22(0x17a)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x2fa9ca=_0xcb611e[_0x34ee22(0x184)](/'/g,'\x27\x27');return'\x27'+_0x2fa9ca+'\x27';}function a76_0x5107(){const _0x35aaf7=['43148ZrRZJK','849612EpiGZg','length','substring','\x5c$&','test','564178DvjDLf','padStart','toLowerCase','45CiZieF','floor','slice','replace','unknown','USER','9804016kNoNHV','random','env','3881118AiyKpg','1854890AsQiMe','7jOLYEV','4sBcyCo','repeat','6484788ANVpsq','trim','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string'];a76_0x5107=function(){return _0x35aaf7;};return a76_0x5107();}export function globToLike(_0x177bcd){const _0x352012=a76_0x2720;let _0xc0c3d=_0x177bcd[_0x352012(0x184)](/\\/g,'\x5c\x5c')[_0x352012(0x184)](/%/g,'\x5c%')[_0x352012(0x184)](/_/g,'\x5c_');return _0xc0c3d=_0xc0c3d['replace'](/\*/g,'%')[_0x352012(0x184)](/\?/g,'_'),_0xc0c3d;}export function buildLikePattern(_0x3c724e){const _0x147a30=a76_0x2720;if(!_0x3c724e||_0x3c724e[_0x147a30(0x176)]()[_0x147a30(0x17a)]===0x0)throw new Error(_0x147a30(0x177));const _0x2111cd=globToLike(_0x3c724e),_0xb7f22a=_0x2111cd['replace'](/'/g,'\x27\x27');return'\x27'+_0xb7f22a+'\x27';}export function matchGlobPattern(_0x1ccf1e,_0x3c1629){const _0x3c3152=a76_0x2720,_0x5a2375=_0x3c1629[_0x3c3152(0x184)](/[.+^${}()|[\]\\]/g,_0x3c3152(0x17c))[_0x3c3152(0x184)](/\*/g,'.*')[_0x3c3152(0x184)](/\?/g,'.'),_0x18763f=new RegExp('^'+_0x5a2375+'$');return _0x18763f[_0x3c3152(0x17d)](_0x1ccf1e);}export function getSanitizedUsername(){const _0x534332=a76_0x2720,_0x23a1f9=process[_0x534332(0x16f)][_0x534332(0x16c)]||process[_0x534332(0x16f)]['USERNAME']||_0x534332(0x16b);return _0x23a1f9[_0x534332(0x184)](/[^a-zA-Z0-9]/g,'')[_0x534332(0x180)]();}export function generateRandomHex(){const _0x45e052=a76_0x2720,_0x523157=Math[_0x45e052(0x182)](Math[_0x45e052(0x16e)]()*0xfffff);return _0x523157['toString'](0x10)[_0x45e052(0x17f)](0x5,'0');}
1
+ (function(_0x4109e0,_0x3ce034){const _0x1ee8de=a76_0x422a,_0x4196f7=_0x4109e0();while(!![]){try{const _0x4ed8f3=-parseInt(_0x1ee8de(0x112))/0x1*(parseInt(_0x1ee8de(0x116))/0x2)+-parseInt(_0x1ee8de(0x10e))/0x3*(parseInt(_0x1ee8de(0x11f))/0x4)+parseInt(_0x1ee8de(0x11d))/0x5+-parseInt(_0x1ee8de(0x118))/0x6*(-parseInt(_0x1ee8de(0x10c))/0x7)+parseInt(_0x1ee8de(0x120))/0x8+parseInt(_0x1ee8de(0x119))/0x9+-parseInt(_0x1ee8de(0x111))/0xa*(-parseInt(_0x1ee8de(0x108))/0xb);if(_0x4ed8f3===_0x3ce034)break;else _0x4196f7['push'](_0x4196f7['shift']());}catch(_0xaac8f1){_0x4196f7['push'](_0x4196f7['shift']());}}}(a76_0x2a1a,0xd5204));function a76_0x2a1a(){const _0x68b356=['env','1000AeOZvT','6825768Kzxxxx','repeat','1702349MQjbZv','toString','floor','USERNAME','91ohRAnv','length','16671kczfqy','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','random','10sewAsD','2lmzPNH','padStart','toLowerCase','substring','863428HfgAHi','trim','318558nxiNcO','5487174aiAqVB','test','replace','\x5c$&','4088835DFlAZU'];a76_0x2a1a=function(){return _0x68b356;};return a76_0x2a1a();}import a76_0x34001c from'string-width';export function stringWidth(_0x309ff6){return a76_0x34001c(_0x309ff6);}export function padEnd(_0x2bb11b,_0x1eb57d){const _0x19ea94=a76_0x422a,_0x587204=stringWidth(_0x2bb11b);if(_0x587204>=_0x1eb57d)return _0x2bb11b;return _0x2bb11b+'\x20'[_0x19ea94(0x107)](_0x1eb57d-_0x587204);}export function padStart(_0xf9dfb3,_0x3b0b73){const _0x1682e6=stringWidth(_0xf9dfb3);if(_0x1682e6>=_0x3b0b73)return _0xf9dfb3;return'\x20'['repeat'](_0x3b0b73-_0x1682e6)+_0xf9dfb3;}export function centerAlign(_0xc69202,_0x8f8996){const _0x420c6e=a76_0x422a,_0x151d1a=stringWidth(_0xc69202);if(_0x151d1a>_0x8f8996){if(_0x8f8996<=0x1)return'…'[_0x420c6e(0x115)](0x0,_0x8f8996);let _0x1a013e=_0xc69202;while(stringWidth(_0x1a013e+'…')>_0x8f8996){_0x1a013e=_0x1a013e['slice'](0x0,-0x1);}return _0x1a013e+'…';}if(_0x151d1a===_0x8f8996)return _0xc69202;const _0x57135c=_0x8f8996-_0x151d1a,_0x45e6e6=Math[_0x420c6e(0x10a)](_0x57135c/0x2),_0x5793b3=_0x57135c-_0x45e6e6;return'\x20'[_0x420c6e(0x107)](_0x45e6e6)+_0xc69202+'\x20'[_0x420c6e(0x107)](_0x5793b3);}export function escapeStringLiteral(_0x542abb){const _0x437c85=a76_0x422a;if(!_0x542abb||_0x542abb[_0x437c85(0x117)]()[_0x437c85(0x10d)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x487216=_0x542abb[_0x437c85(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x487216+'\x27';}export function globToLike(_0xe2fae2){const _0x8d2fbe=a76_0x422a;let _0x8319b4=_0xe2fae2[_0x8d2fbe(0x11b)](/\\/g,'\x5c\x5c')[_0x8d2fbe(0x11b)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x8319b4=_0x8319b4['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x8319b4;}export function buildLikePattern(_0x325b36){const _0x20963c=a76_0x422a;if(!_0x325b36||_0x325b36['trim']()[_0x20963c(0x10d)]===0x0)throw new Error(_0x20963c(0x10f));const _0x498866=globToLike(_0x325b36),_0x20a3c8=_0x498866[_0x20963c(0x11b)](/'/g,'\x27\x27');return'\x27'+_0x20a3c8+'\x27';}export function matchGlobPattern(_0x65e2e0,_0x407caf){const _0x28ed75=a76_0x422a,_0x443641=_0x407caf[_0x28ed75(0x11b)](/[.+^${}()|[\]\\]/g,_0x28ed75(0x11c))[_0x28ed75(0x11b)](/\*/g,'.*')[_0x28ed75(0x11b)](/\?/g,'.'),_0x16f520=new RegExp('^'+_0x443641+'$');return _0x16f520[_0x28ed75(0x11a)](_0x65e2e0);}export function getSanitizedUsername(){const _0x327363=a76_0x422a,_0x310ab9=process['env']['USER']||process[_0x327363(0x11e)][_0x327363(0x10b)]||'unknown';return _0x310ab9[_0x327363(0x11b)](/[^a-zA-Z0-9]/g,'')[_0x327363(0x114)]();}function a76_0x422a(_0xc8d17e,_0x19573a){const _0x2a1a31=a76_0x2a1a();return a76_0x422a=function(_0x422aba,_0x2fd3e0){_0x422aba=_0x422aba-0x107;let _0x4d5d32=_0x2a1a31[_0x422aba];return _0x4d5d32;},a76_0x422a(_0xc8d17e,_0x19573a);}export function generateRandomHex(){const _0x51d0d6=a76_0x422a,_0x149b20=Math[_0x51d0d6(0x10a)](Math[_0x51d0d6(0x110)]()*0xfffff);return _0x149b20[_0x51d0d6(0x109)](0x10)[_0x51d0d6(0x113)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x1b669e,_0x3b448d){const _0x57f9a3=a77_0x5198,_0x44543d=_0x1b669e();while(!![]){try{const _0x326895=-parseInt(_0x57f9a3(0x131))/0x1*(parseInt(_0x57f9a3(0x140))/0x2)+-parseInt(_0x57f9a3(0x12e))/0x3+parseInt(_0x57f9a3(0x144))/0x4*(parseInt(_0x57f9a3(0x142))/0x5)+parseInt(_0x57f9a3(0x132))/0x6+parseInt(_0x57f9a3(0x145))/0x7*(parseInt(_0x57f9a3(0x135))/0x8)+-parseInt(_0x57f9a3(0x13d))/0x9*(-parseInt(_0x57f9a3(0x136))/0xa)+parseInt(_0x57f9a3(0x13a))/0xb*(-parseInt(_0x57f9a3(0x12f))/0xc);if(_0x326895===_0x3b448d)break;else _0x44543d['push'](_0x44543d['shift']());}catch(_0x4631f1){_0x44543d['push'](_0x44543d['shift']());}}}(a77_0x3319,0xcf5d0));function hasWildcard(_0xe1bcb4){const _0x4c32ca=a77_0x5198;return _0xe1bcb4[_0x4c32ca(0x141)]('*')||_0xe1bcb4[_0x4c32ca(0x141)]('?');}function a77_0x5198(_0x3b86cb,_0xad8233){const _0x3319a6=a77_0x3319();return a77_0x5198=function(_0x51982b,_0x50ec47){_0x51982b=_0x51982b-0x12a;let _0x589ce4=_0x3319a6[_0x51982b];return _0x589ce4;},a77_0x5198(_0x3b86cb,_0xad8233);}export function parseTableReference(_0x3ea31c){const _0x5081c9=a77_0x5198;if(!_0x3ea31c||_0x3ea31c[_0x5081c9(0x134)]()['length']===0x0)throw new Error(_0x5081c9(0x12d));const _0x5446d6=_0x3ea31c[_0x5081c9(0x134)](),_0x150e8b={'original':_0x5446d6},_0x1afe6d=_0x5446d6['split']('.');if(_0x1afe6d[_0x5081c9(0x130)]===0x1){const _0x26344f=_0x1afe6d[0x0];if(!_0x26344f)throw new Error(_0x5081c9(0x139));_0x150e8b[_0x5081c9(0x137)]=_0x26344f;}else{if(_0x1afe6d[_0x5081c9(0x130)]===0x2){const [_0x8b2e15,_0xc936b6]=_0x1afe6d;if(!_0x8b2e15)throw new Error(_0x5081c9(0x13c));if(!_0xc936b6)throw new Error(_0x5081c9(0x138));_0x150e8b[_0x5081c9(0x13e)]=_0x8b2e15,_0x150e8b[_0x5081c9(0x137)]=_0xc936b6;}else{if(_0x1afe6d['length']===0x3){const [_0x43ee17,_0x160cbe,_0x483760]=_0x1afe6d;if(!_0x43ee17||!_0x160cbe||!_0x483760)throw new Error(_0x5081c9(0x133));_0x150e8b['catalog']=_0x43ee17,_0x150e8b[_0x5081c9(0x13e)]=_0x160cbe,_0x150e8b[_0x5081c9(0x137)]=_0x483760;}else throw new Error(_0x5081c9(0x13f));}}return _0x150e8b;}export function formatTableReference(_0x3a1800){const _0x448e08=a77_0x5198,_0x2e1d46=[];return _0x3a1800[_0x448e08(0x146)]&&_0x2e1d46[_0x448e08(0x13b)](_0x3a1800[_0x448e08(0x146)]),_0x3a1800[_0x448e08(0x13e)]&&_0x2e1d46[_0x448e08(0x13b)](_0x3a1800[_0x448e08(0x13e)]),_0x3a1800[_0x448e08(0x137)]&&_0x2e1d46['push'](_0x3a1800['table']),_0x2e1d46[_0x448e08(0x143)]('.');}export function validateTableListReference(_0x466d4c){return undefined;}export function validateTableDescribeReference(_0x4d391c){const _0x34befe=a77_0x5198;if(!_0x4d391c[_0x34befe(0x137)])return _0x34befe(0x12c);if(_0x4d391c[_0x34befe(0x13e)]&&hasWildcard(_0x4d391c[_0x34befe(0x13e)]))return _0x34befe(0x12a);if(hasWildcard(_0x4d391c['table']))return _0x34befe(0x12b);return undefined;}function a77_0x3319(){const _0x1d9b58=['8604261bCPvdn','database','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','228958mFgFCe','includes','2821340DVnGKN','join','4rWqCrX','7OyoFDD','catalog','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','2164179aIBCUv','804dGfisp','length','7CLwVVM','7462356pGDtyb','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','trim','8149072jXSVvZ','10ZVVcXq','table','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','231583PXQoSI','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)'];a77_0x3319=function(){return _0x1d9b58;};return a77_0x3319();}
1
+ (function(_0x24e119,_0x259a04){const _0x4b28e5=a77_0x2618,_0x49b05d=_0x24e119();while(!![]){try{const _0x3e4c56=parseInt(_0x4b28e5(0x1da))/0x1+-parseInt(_0x4b28e5(0x1d6))/0x2+-parseInt(_0x4b28e5(0x1cd))/0x3+-parseInt(_0x4b28e5(0x1d9))/0x4+-parseInt(_0x4b28e5(0x1c6))/0x5+parseInt(_0x4b28e5(0x1d1))/0x6*(parseInt(_0x4b28e5(0x1d3))/0x7)+parseInt(_0x4b28e5(0x1db))/0x8;if(_0x3e4c56===_0x259a04)break;else _0x49b05d['push'](_0x49b05d['shift']());}catch(_0x1dbbfe){_0x49b05d['push'](_0x49b05d['shift']());}}}(a77_0x4ef6,0x8de94));function a77_0x2618(_0x109300,_0x28101d){const _0x4ef6d9=a77_0x4ef6();return a77_0x2618=function(_0x261877,_0x5c7c61){_0x261877=_0x261877-0x1c6;let _0x5cf673=_0x4ef6d9[_0x261877];return _0x5cf673;},a77_0x2618(_0x109300,_0x28101d);}function hasWildcard(_0x3f0b95){const _0x2cd9fa=a77_0x2618;return _0x3f0b95[_0x2cd9fa(0x1d0)]('*')||_0x3f0b95[_0x2cd9fa(0x1d0)]('?');}function a77_0x4ef6(){const _0x4725c5=['includes','1617162tQVZJW','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','28tuSiSP','catalog','length','504790skecgz','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','190508qOFUIn','823664MAOZuI','3388112HjoxGF','5375225SAOQWj','database','split','table','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','trim','join','1106853TUFkPQ','Pattern\x20cannot\x20be\x20just\x20a\x20dot','push'];a77_0x4ef6=function(){return _0x4725c5;};return a77_0x4ef6();}export function parseTableReference(_0x39cf8a){const _0x40efea=a77_0x2618;if(!_0x39cf8a||_0x39cf8a[_0x40efea(0x1cb)]()[_0x40efea(0x1d5)]===0x0)throw new Error(_0x40efea(0x1ca));const _0x525e22=_0x39cf8a[_0x40efea(0x1cb)](),_0x262682={'original':_0x525e22},_0x807536=_0x525e22[_0x40efea(0x1c8)]('.');if(_0x807536[_0x40efea(0x1d5)]===0x1){const _0x5eb69b=_0x807536[0x0];if(!_0x5eb69b)throw new Error(_0x40efea(0x1ce));_0x262682[_0x40efea(0x1c9)]=_0x5eb69b;}else{if(_0x807536[_0x40efea(0x1d5)]===0x2){const [_0x4ba7ab,_0x328f0a]=_0x807536;if(!_0x4ba7ab)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x328f0a)throw new Error(_0x40efea(0x1d8));_0x262682[_0x40efea(0x1c7)]=_0x4ba7ab,_0x262682[_0x40efea(0x1c9)]=_0x328f0a;}else{if(_0x807536['length']===0x3){const [_0x4045e5,_0x2d5fb9,_0x51eb87]=_0x807536;if(!_0x4045e5||!_0x2d5fb9||!_0x51eb87)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x262682[_0x40efea(0x1d4)]=_0x4045e5,_0x262682[_0x40efea(0x1c7)]=_0x2d5fb9,_0x262682[_0x40efea(0x1c9)]=_0x51eb87;}else throw new Error(_0x40efea(0x1d7));}}return _0x262682;}export function formatTableReference(_0x4899f6){const _0x2d94f2=a77_0x2618,_0x52e122=[];return _0x4899f6['catalog']&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1d4)]),_0x4899f6[_0x2d94f2(0x1c7)]&&_0x52e122[_0x2d94f2(0x1cf)](_0x4899f6[_0x2d94f2(0x1c7)]),_0x4899f6[_0x2d94f2(0x1c9)]&&_0x52e122['push'](_0x4899f6[_0x2d94f2(0x1c9)]),_0x52e122[_0x2d94f2(0x1cc)]('.');}export function validateTableListReference(_0x406e2){return undefined;}export function validateTableDescribeReference(_0x39a6a2){const _0x5a2d0f=a77_0x2618;if(!_0x39a6a2[_0x5a2d0f(0x1c9)])return _0x5a2d0f(0x1d2);if(_0x39a6a2[_0x5a2d0f(0x1c7)]&&hasWildcard(_0x39a6a2['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x39a6a2['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- function a78_0x1fe5(){const _0x42276e=['543954sOzPTu','indent','showTreeLines','showMetadata','length','5840yfrnzq','(empty)','81076fmghxe','└──\x20','\x20segment','77wYjBGF','15cTRxXj','11DKyYTT','folder','showIcons','localeCompare','5pWgVSx','27870852YRVJbe','children','11245380sZjeQY','type','push','\x20folder','\x20\x20\x20','name','icon','3511216SFxIsO','folderCount','segmentCount','dim','map','segment','metadata','├──\x20','sort','637931vanajy','join','5679KnhRPf','population','\x20\x20\x20\x20'];a78_0x1fe5=function(){return _0x42276e;};return a78_0x1fe5();}(function(_0x1625bc,_0x51c789){const _0x2d0c07=a78_0x4574,_0x12718b=_0x1625bc();while(!![]){try{const _0x1b2f9e=parseInt(_0x2d0c07(0x10a))/0x1+-parseInt(_0x2d0c07(0xee))/0x2*(-parseInt(_0x2d0c07(0xf2))/0x3)+parseInt(_0x2d0c07(0x101))/0x4*(-parseInt(_0x2d0c07(0xf7))/0x5)+-parseInt(_0x2d0c07(0xe7))/0x6*(parseInt(_0x2d0c07(0xf1))/0x7)+-parseInt(_0x2d0c07(0xec))/0x8*(-parseInt(_0x2d0c07(0x10c))/0x9)+-parseInt(_0x2d0c07(0xfa))/0xa+-parseInt(_0x2d0c07(0xf3))/0xb*(-parseInt(_0x2d0c07(0xf8))/0xc);if(_0x1b2f9e===_0x51c789)break;else _0x12718b['push'](_0x12718b['shift']());}catch(_0x474ed9){_0x12718b['push'](_0x12718b['shift']());}}}(a78_0x1fe5,0x98667));import{formatRows}from'./formatters.js';import a78_0xba8c53 from'chalk';function a78_0x4574(_0x19ddc3,_0x21f665){const _0x1fe502=a78_0x1fe5();return a78_0x4574=function(_0x4574f5,_0x4b9806){_0x4574f5=_0x4574f5-0xe6;let _0x3a02f6=_0x1fe502[_0x4574f5];return _0x3a02f6;},a78_0x4574(_0x19ddc3,_0x21f665);}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x10726e,_0x1f0f44={},_0x2601a5=0x0,_0x5cda7a=''){const _0x457988=a78_0x4574,_0x1a6ffd={...DEFAULT_OPTIONS,..._0x1f0f44},_0x3d5aca=[],_0x53efe0=[..._0x10726e][_0x457988(0x109)]((_0x2c75ab,_0xd9fd4f)=>_0x2c75ab['name']['localeCompare'](_0xd9fd4f['name']));for(let _0x35845a=0x0;_0x35845a<_0x53efe0[_0x457988(0xeb)];_0x35845a++){const _0x2c7e8b=_0x53efe0[_0x35845a],_0x281483=_0x35845a===_0x53efe0[_0x457988(0xeb)]-0x1;let _0x588795='';_0x2601a5>0x0&&(_0x588795+=_0x5cda7a);_0x1a6ffd['showTreeLines']&&_0x2601a5>0x0&&(_0x588795+=a78_0xba8c53[_0x457988(0x104)](_0x281483?_0x457988(0xef):_0x457988(0x108)));_0x1a6ffd[_0x457988(0xf5)]&&(_0x588795+=_0x2c7e8b[_0x457988(0xfb)]===_0x457988(0xf4)?'📁\x20':'🎯\x20');_0x588795+=_0x2c7e8b[_0x457988(0xff)];if(_0x1a6ffd['showMetadata']){if(_0x2c7e8b[_0x457988(0xfb)]===_0x457988(0xf4)){const _0xb2d1c0=[];_0x2c7e8b[_0x457988(0x107)][_0x457988(0x103)]&&_0xb2d1c0[_0x457988(0xfc)](_0x2c7e8b['metadata'][_0x457988(0x103)]+_0x457988(0xf0)+(_0x2c7e8b[_0x457988(0x107)][_0x457988(0x103)]!==0x1?'s':'')),_0x2c7e8b[_0x457988(0x107)][_0x457988(0x102)]&&_0xb2d1c0[_0x457988(0xfc)](_0x2c7e8b[_0x457988(0x107)][_0x457988(0x102)]+_0x457988(0xfd)+(_0x2c7e8b['metadata'][_0x457988(0x102)]!==0x1?'s':'')),_0xb2d1c0[_0x457988(0xeb)]>0x0&&(_0x588795+=a78_0xba8c53[_0x457988(0x104)]('\x20('+_0xb2d1c0[_0x457988(0x10b)](',\x20')+')'));}else _0x2c7e8b[_0x457988(0xfb)]===_0x457988(0x106)&&_0x2c7e8b[_0x457988(0x10d)]!==undefined&&(_0x588795+=a78_0xba8c53[_0x457988(0x104)]('\x20('+formatRows(_0x2c7e8b['population'])+')'));}_0x3d5aca['push'](_0x588795);if(_0x2c7e8b['children']&&_0x2c7e8b[_0x457988(0xf9)][_0x457988(0xeb)]>0x0){let _0x16e9b1;if(_0x2601a5===0x0)_0x16e9b1='';else _0x1a6ffd[_0x457988(0xe9)]?_0x16e9b1=_0x5cda7a+(_0x281483?_0x457988(0xe6):a78_0xba8c53[_0x457988(0x104)]('│')+_0x457988(0xfe)):_0x16e9b1=_0x5cda7a+_0x1a6ffd[_0x457988(0xe8)];const _0x2abec1=formatTree(_0x2c7e8b[_0x457988(0xf9)],_0x1a6ffd,_0x2601a5+0x1,_0x16e9b1);_0x3d5aca[_0x457988(0xfc)](_0x2abec1);}}return _0x3d5aca[_0x457988(0x10b)]('\x0a');}export function formatFlatList(_0x5c92d8,_0x332450,_0x5cb1ba={}){const _0x3efe=a78_0x4574,_0x36dc57={...DEFAULT_OPTIONS,..._0x5cb1ba},_0x5edd36=[];for(const _0x43d815 of _0x5c92d8){_0x5edd36[_0x3efe(0xfc)]({'name':_0x43d815[_0x3efe(0xff)],'icon':_0x36dc57[_0x3efe(0xf5)]?'📁':'','metadata':undefined});}for(const _0x4532cd of _0x332450){const _0x4bf3de=_0x36dc57[_0x3efe(0xea)]&&_0x4532cd['population']!==undefined?a78_0xba8c53[_0x3efe(0x104)]('\x20('+formatRows(_0x4532cd[_0x3efe(0x10d)])+')'):'';_0x5edd36[_0x3efe(0xfc)]({'name':_0x4532cd[_0x3efe(0xff)],'icon':_0x36dc57[_0x3efe(0xf5)]?'🎯':'','metadata':_0x4bf3de});}_0x5edd36[_0x3efe(0x109)]((_0x349e70,_0x9225a9)=>_0x349e70[_0x3efe(0xff)][_0x3efe(0xf6)](_0x9225a9[_0x3efe(0xff)]));if(_0x5edd36[_0x3efe(0xeb)]===0x0)return _0x3efe(0xed);const _0x14d2ee=_0x5edd36[_0x3efe(0x105)](_0x595b44=>{const _0x56eeab=_0x3efe,_0x5b3ff6=_0x595b44[_0x56eeab(0x100)]?_0x595b44[_0x56eeab(0x100)]+'\x20':'',_0x54b367=_0x595b44[_0x56eeab(0x107)]||'';return''+_0x5b3ff6+_0x595b44['name']+_0x54b367;});return _0x14d2ee[_0x3efe(0x10b)]('\x0a');}
1
+ function a78_0x2019(_0x4b5c87,_0x2404b0){const _0x35ac25=a78_0x35ac();return a78_0x2019=function(_0x201999,_0x42fd53){_0x201999=_0x201999-0xd8;let _0x44f20e=_0x35ac25[_0x201999];return _0x44f20e;},a78_0x2019(_0x4b5c87,_0x2404b0);}(function(_0x129435,_0x388bb6){const _0x12483e=a78_0x2019,_0x387999=_0x129435();while(!![]){try{const _0x87eef8=-parseInt(_0x12483e(0xdb))/0x1*(-parseInt(_0x12483e(0xf6))/0x2)+-parseInt(_0x12483e(0xd8))/0x3*(-parseInt(_0x12483e(0xe9))/0x4)+parseInt(_0x12483e(0xfb))/0x5*(-parseInt(_0x12483e(0xe0))/0x6)+parseInt(_0x12483e(0xf1))/0x7+parseInt(_0x12483e(0xd9))/0x8*(parseInt(_0x12483e(0xf0))/0x9)+parseInt(_0x12483e(0xf9))/0xa*(parseInt(_0x12483e(0xed))/0xb)+parseInt(_0x12483e(0xdc))/0xc*(-parseInt(_0x12483e(0xda))/0xd);if(_0x87eef8===_0x388bb6)break;else _0x387999['push'](_0x387999['shift']());}catch(_0x3a1fb8){_0x387999['push'](_0x387999['shift']());}}}(a78_0x35ac,0x806b1));import{formatRows}from'./formatters.js';import a78_0x59f03f from'chalk';function a78_0x35ac(){const _0x4beb85=['localeCompare','40zugAok','join','7235ztpHCr','type','124017ZzRGzB','1240vfMteD','3354htfWdX','178zlYsHj','76020sHZcVh','segmentCount','showTreeLines','sort','1740gxVzFt','📁\x20','(empty)','icon','🎯\x20','name','folder','length','children','68QZiHUJ','\x20folder','showIcons','folderCount','1246608zMoTZD','\x20\x20\x20','map','13869gexUUA','1486527hbJmza','population','push','indent','dim','10930pNjTiv','metadata'];a78_0x35ac=function(){return _0x4beb85;};return a78_0x35ac();}const DEFAULT_OPTIONS={'showTreeLines':!![],'showIcons':!![],'showMetadata':!![],'indent':'\x20\x20'};export function formatTree(_0x1d7e60,_0x545200={},_0x4a42d1=0x0,_0x49f7e7=''){const _0x16328f=a78_0x2019,_0x35f23d={...DEFAULT_OPTIONS,..._0x545200},_0x546dc9=[],_0x4a4681=[..._0x1d7e60][_0x16328f(0xdf)]((_0x430fe1,_0x5011c3)=>_0x430fe1[_0x16328f(0xe5)][_0x16328f(0xf8)](_0x5011c3[_0x16328f(0xe5)]));for(let _0x30e9c6=0x0;_0x30e9c6<_0x4a4681['length'];_0x30e9c6++){const _0x3da823=_0x4a4681[_0x30e9c6],_0x102be5=_0x30e9c6===_0x4a4681[_0x16328f(0xe7)]-0x1;let _0x395cc4='';_0x4a42d1>0x0&&(_0x395cc4+=_0x49f7e7);_0x35f23d['showTreeLines']&&_0x4a42d1>0x0&&(_0x395cc4+=a78_0x59f03f['dim'](_0x102be5?'└──\x20':'├──\x20'));_0x35f23d[_0x16328f(0xeb)]&&(_0x395cc4+=_0x3da823[_0x16328f(0xfc)]==='folder'?_0x16328f(0xe1):_0x16328f(0xe4));_0x395cc4+=_0x3da823[_0x16328f(0xe5)];if(_0x35f23d['showMetadata']){if(_0x3da823[_0x16328f(0xfc)]===_0x16328f(0xe6)){const _0x4d5d96=[];_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]+'\x20segment'+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xdd)]!==0x1?'s':'')),_0x3da823['metadata'][_0x16328f(0xec)]&&_0x4d5d96[_0x16328f(0xf3)](_0x3da823[_0x16328f(0xf7)]['folderCount']+_0x16328f(0xea)+(_0x3da823[_0x16328f(0xf7)][_0x16328f(0xec)]!==0x1?'s':'')),_0x4d5d96[_0x16328f(0xe7)]>0x0&&(_0x395cc4+=a78_0x59f03f['dim']('\x20('+_0x4d5d96[_0x16328f(0xfa)](',\x20')+')'));}else _0x3da823[_0x16328f(0xfc)]==='segment'&&_0x3da823[_0x16328f(0xf2)]!==undefined&&(_0x395cc4+=a78_0x59f03f[_0x16328f(0xf5)]('\x20('+formatRows(_0x3da823['population'])+')'));}_0x546dc9[_0x16328f(0xf3)](_0x395cc4);if(_0x3da823[_0x16328f(0xe8)]&&_0x3da823[_0x16328f(0xe8)][_0x16328f(0xe7)]>0x0){let _0x338a83;if(_0x4a42d1===0x0)_0x338a83='';else _0x35f23d[_0x16328f(0xde)]?_0x338a83=_0x49f7e7+(_0x102be5?'\x20\x20\x20\x20':a78_0x59f03f['dim']('│')+_0x16328f(0xee)):_0x338a83=_0x49f7e7+_0x35f23d[_0x16328f(0xf4)];const _0x593eb3=formatTree(_0x3da823[_0x16328f(0xe8)],_0x35f23d,_0x4a42d1+0x1,_0x338a83);_0x546dc9[_0x16328f(0xf3)](_0x593eb3);}}return _0x546dc9[_0x16328f(0xfa)]('\x0a');}export function formatFlatList(_0x50f851,_0x4e23f9,_0x2a7a6b={}){const _0x6f7812=a78_0x2019,_0x13b56e={...DEFAULT_OPTIONS,..._0x2a7a6b},_0x1967c1=[];for(const _0x1c7e32 of _0x50f851){_0x1967c1[_0x6f7812(0xf3)]({'name':_0x1c7e32['name'],'icon':_0x13b56e[_0x6f7812(0xeb)]?'📁':'','metadata':undefined});}for(const _0x490a90 of _0x4e23f9){const _0x2c62d6=_0x13b56e['showMetadata']&&_0x490a90['population']!==undefined?a78_0x59f03f[_0x6f7812(0xf5)]('\x20('+formatRows(_0x490a90[_0x6f7812(0xf2)])+')'):'';_0x1967c1[_0x6f7812(0xf3)]({'name':_0x490a90['name'],'icon':_0x13b56e['showIcons']?'🎯':'','metadata':_0x2c62d6});}_0x1967c1[_0x6f7812(0xdf)]((_0x7bc476,_0x47cfa3)=>_0x7bc476[_0x6f7812(0xe5)]['localeCompare'](_0x47cfa3[_0x6f7812(0xe5)]));if(_0x1967c1[_0x6f7812(0xe7)]===0x0)return _0x6f7812(0xe2);const _0x2b9176=_0x1967c1[_0x6f7812(0xef)](_0x20f41d=>{const _0x565847=_0x6f7812,_0x76c425=_0x20f41d[_0x565847(0xe3)]?_0x20f41d['icon']+'\x20':'',_0x1de8f6=_0x20f41d[_0x565847(0xf7)]||'';return''+_0x76c425+_0x20f41d[_0x565847(0xe5)]+_0x1de8f6;});return _0x2b9176[_0x6f7812(0xfa)]('\x0a');}
@@ -1 +1 @@
1
- const a79_0x578a12=a79_0x2138;function a79_0x2138(_0x589b26,_0x3b3eab){const _0x37a051=a79_0x37a0();return a79_0x2138=function(_0x2138da,_0x596997){_0x2138da=_0x2138da-0x1b2;let _0x3080d9=_0x37a051[_0x2138da];return _0x3080d9;},a79_0x2138(_0x589b26,_0x3b3eab);}(function(_0x11814e,_0x4d4bb2){const _0x48c342=a79_0x2138,_0x1eda26=_0x11814e();while(!![]){try{const _0x289a63=parseInt(_0x48c342(0x1b9))/0x1+parseInt(_0x48c342(0x1b3))/0x2+-parseInt(_0x48c342(0x1ba))/0x3+-parseInt(_0x48c342(0x1bc))/0x4+parseInt(_0x48c342(0x1b5))/0x5*(-parseInt(_0x48c342(0x1b4))/0x6)+-parseInt(_0x48c342(0x1b8))/0x7*(-parseInt(_0x48c342(0x1b7))/0x8)+-parseInt(_0x48c342(0x1bb))/0x9*(-parseInt(_0x48c342(0x1b2))/0xa);if(_0x289a63===_0x4d4bb2)break;else _0x1eda26['push'](_0x1eda26['shift']());}catch(_0x45b805){_0x1eda26['push'](_0x1eda26['shift']());}}}(a79_0x37a0,0x2c1b2));export const WORKFLOW_FILE_EXTENSION=a79_0x578a12(0x1b6);function a79_0x37a0(){const _0x5bff6c=['48eMrRzp','78835YqvayI','.dig','8qnOwts','2033066GEysWi','68449NjYzVK','401724NeBxFg','963thRCzI','1157236TveVfl','22930slkHta','251546IDBtSY'];a79_0x37a0=function(){return _0x5bff6c;};return a79_0x37a0();}export function shouldIncludeInArchive(_0x570965){if(_0x570965==='.digdag')return!![];if(_0x570965['startsWith']('.'))return![];return!![];}
1
+ (function(_0x1d6479,_0x151628){const _0x241ec1=a79_0x2afc,_0x5c9924=_0x1d6479();while(!![]){try{const _0x450834=-parseInt(_0x241ec1(0xf9))/0x1*(parseInt(_0x241ec1(0xfc))/0x2)+parseInt(_0x241ec1(0xfb))/0x3+parseInt(_0x241ec1(0xff))/0x4+parseInt(_0x241ec1(0x102))/0x5*(parseInt(_0x241ec1(0xfe))/0x6)+-parseInt(_0x241ec1(0xf8))/0x7*(-parseInt(_0x241ec1(0x101))/0x8)+-parseInt(_0x241ec1(0xfa))/0x9*(parseInt(_0x241ec1(0x103))/0xa)+parseInt(_0x241ec1(0x100))/0xb;if(_0x450834===_0x151628)break;else _0x5c9924['push'](_0x5c9924['shift']());}catch(_0x5cb4dc){_0x5c9924['push'](_0x5c9924['shift']());}}}(a79_0x23ce,0x9751a));function a79_0x2afc(_0xc3dd,_0x425024){const _0x23ce1c=a79_0x23ce();return a79_0x2afc=function(_0x2afc83,_0x2f2eb7){_0x2afc83=_0x2afc83-0xf8;let _0x317cdf=_0x23ce1c[_0x2afc83];return _0x317cdf;},a79_0x2afc(_0xc3dd,_0x425024);}export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x172411){const _0x3be1c8=a79_0x2afc;if(_0x172411==='.digdag')return!![];if(_0x172411[_0x3be1c8(0xfd)]('.'))return![];return!![];}function a79_0x23ce(){const _0x67a0b=['22833ltPnkv','992397PAhZVi','19508MREObq','startsWith','502134aCeNxg','1714060tWurZF','58828EPUgGM','128RFVukM','55lMAaGM','2990ucJCmb','62041LLubpl','46DjYcLl'];a79_0x23ce=function(){return _0x67a0b;};return a79_0x23ce();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
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": {