@treasuredata/tdx 0.1.10 → 0.1.11

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 (69) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +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.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-client.js +1 -1
  8. package/dist/client/trino-client.js +1 -1
  9. package/dist/client/workflow-client.js +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts +1 -0
  14. package/dist/commands/claude-command.d.ts.map +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +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/llm-command.js +1 -1
  22. package/dist/commands/llm-proxy.js +1 -1
  23. package/dist/commands/profiles-command.js +1 -1
  24. package/dist/commands/query-command.js +1 -1
  25. package/dist/commands/segment-command.js +1 -1
  26. package/dist/commands/segments.js +1 -1
  27. package/dist/commands/show.js +1 -1
  28. package/dist/commands/tables.js +1 -1
  29. package/dist/commands/use-command.js +1 -1
  30. package/dist/commands/workflow-command.js +1 -1
  31. package/dist/core/auth.js +1 -1
  32. package/dist/core/config.js +1 -1
  33. package/dist/core/global-context.js +1 -1
  34. package/dist/core/profile.js +1 -1
  35. package/dist/core/project-config.js +1 -1
  36. package/dist/core/session.js +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/proxy/anthropic-adapter.js +1 -1
  39. package/dist/proxy/server.js +1 -1
  40. package/dist/sdk/api.js +1 -1
  41. package/dist/sdk/database.js +1 -1
  42. package/dist/sdk/errors.js +1 -1
  43. package/dist/sdk/index.js +1 -1
  44. package/dist/sdk/llm.js +1 -1
  45. package/dist/sdk/query.js +1 -1
  46. package/dist/sdk/segment.js +1 -1
  47. package/dist/sdk/table.js +1 -1
  48. package/dist/sdk/workflow.js +1 -1
  49. package/dist/types/endpoints.js +1 -1
  50. package/dist/types/index.js +1 -1
  51. package/dist/utils/agent-ref-parser.js +1 -1
  52. package/dist/utils/chat-cache.js +1 -1
  53. package/dist/utils/colors.js +1 -1
  54. package/dist/utils/command-output.js +1 -1
  55. package/dist/utils/file-permissions.js +1 -1
  56. package/dist/utils/format-detector.js +1 -1
  57. package/dist/utils/formatters.js +1 -1
  58. package/dist/utils/model-aliases.js +1 -1
  59. package/dist/utils/option-validation.js +1 -1
  60. package/dist/utils/port.js +1 -1
  61. package/dist/utils/process.js +1 -1
  62. package/dist/utils/segment-ref-parser.js +1 -1
  63. package/dist/utils/spinner.js +1 -1
  64. package/dist/utils/sql-parser.js +1 -1
  65. package/dist/utils/sse-parser.js +1 -1
  66. package/dist/utils/string-utils.js +1 -1
  67. package/dist/utils/table-ref-parser.js +1 -1
  68. package/dist/utils/workflow-utils.js +1 -1
  69. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x26730f,_0x4adea2){const _0x16e097=a51_0x513f,_0x32c6dc=_0x26730f();while(!![]){try{const _0x3c9e6c=parseInt(_0x16e097(0x1be))/0x1+parseInt(_0x16e097(0x1ad))/0x2*(parseInt(_0x16e097(0x1af))/0x3)+parseInt(_0x16e097(0x1c0))/0x4*(-parseInt(_0x16e097(0x1ab))/0x5)+parseInt(_0x16e097(0x1b6))/0x6+parseInt(_0x16e097(0x1c4))/0x7*(parseInt(_0x16e097(0x1a7))/0x8)+-parseInt(_0x16e097(0x1bc))/0x9+parseInt(_0x16e097(0x1a5))/0xa;if(_0x3c9e6c===_0x4adea2)break;else _0x32c6dc['push'](_0x32c6dc['shift']());}catch(_0x17e26f){_0x32c6dc['push'](_0x32c6dc['shift']());}}}(a51_0x2174,0xb061d));import{Chalk}from'chalk';export function shouldUseColor(_0xda6781={}){const _0x4bf3cc=a51_0x513f;if(_0xda6781[_0x4bf3cc(0x1b3)]===!![])return![];if(_0xda6781[_0x4bf3cc(0x1b2)]===!![])return!![];if(process[_0x4bf3cc(0x1b4)]['NO_COLOR']!==undefined)return![];return process[_0x4bf3cc(0x1ac)][_0x4bf3cc(0x1b9)]??![];}function a51_0x2174(){const _0x3113ee=['41196QyvXVZ','yellow','boolean','entries','7RpXupQ','3526500DFmFJR','blue','5383984HAbnUf','length','dim','object','605IXicFr','stdout','4ErrDDQ','green','543570EBROip','null','isArray','color','noColor','env','repeat','6520566pqxRbL','map','join','isTTY','number','cyan','11349387XNrfwi','string','754894YZFeFe','stringify'];a51_0x2174=function(){return _0x3113ee;};return a51_0x2174();}function getChalk(_0x509a71={}){if(shouldUseColor(_0x509a71))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x55da2b,_0x1dddf7={}){return getChalk(_0x1dddf7)['dim'](_0x55da2b);}export function colorHeader(_0x334ed9,_0x27bca6={}){const _0x37c561=a51_0x513f;return getChalk(_0x27bca6)[_0x37c561(0x1bb)](_0x334ed9);}function a51_0x513f(_0x19d5d5,_0x27ad04){const _0x217455=a51_0x2174();return a51_0x513f=function(_0x513ff1,_0x2d7b83){_0x513ff1=_0x513ff1-0x1a5;let _0x10d240=_0x217455[_0x513ff1];return _0x10d240;},a51_0x513f(_0x19d5d5,_0x27ad04);}export function colorType(_0x112c46,_0x395ac3={}){return getChalk(_0x395ac3)['dim'](_0x112c46);}export function colorJSONKey(_0x165acd,_0x431cca={}){const _0x248306=a51_0x513f;return getChalk(_0x431cca)[_0x248306(0x1a6)](_0x165acd);}export function colorJSONString(_0x422193,_0xb8ce14={}){const _0x5efb71=a51_0x513f;return getChalk(_0xb8ce14)[_0x5efb71(0x1ae)](_0x422193);}export function colorJSONNumber(_0x11ea95,_0x42cafa={}){return getChalk(_0x42cafa)['cyan'](_0x11ea95);}export function colorJSONBoolean(_0x57419a,_0x220ea3={}){const _0xab568b=a51_0x513f;return getChalk(_0x220ea3)[_0xab568b(0x1c1)](_0x57419a);}export function colorJSONNull(_0x502d60,_0x3d3cee={}){const _0x1af172=a51_0x513f;return getChalk(_0x3d3cee)[_0x1af172(0x1a9)](_0x502d60);}export function colorizeJSONCompact(_0x48b2cb,_0x1768fc={}){const _0x55d02b=a51_0x513f;if(!shouldUseColor(_0x1768fc))return JSON[_0x55d02b(0x1bf)](_0x48b2cb);if(_0x48b2cb===null)return colorJSONNull(_0x55d02b(0x1b0),_0x1768fc);if(typeof _0x48b2cb===_0x55d02b(0x1c2))return colorJSONBoolean(String(_0x48b2cb),_0x1768fc);if(typeof _0x48b2cb===_0x55d02b(0x1ba))return colorJSONNumber(String(_0x48b2cb),_0x1768fc);if(typeof _0x48b2cb==='string')return colorJSONString(JSON[_0x55d02b(0x1bf)](_0x48b2cb),_0x1768fc);if(Array[_0x55d02b(0x1b1)](_0x48b2cb)){if(_0x48b2cb[_0x55d02b(0x1a8)]===0x0)return'[]';const _0x3f90b2=_0x48b2cb[_0x55d02b(0x1b7)](_0x413bd7=>colorizeJSONCompact(_0x413bd7,_0x1768fc));return'['+_0x3f90b2[_0x55d02b(0x1b8)](',')+']';}if(typeof _0x48b2cb===_0x55d02b(0x1aa)){const _0x4befb5=Object[_0x55d02b(0x1c3)](_0x48b2cb);if(_0x4befb5['length']===0x0)return'{}';const _0x3c769c=_0x4befb5[_0x55d02b(0x1b7)](([_0x15f537,_0x44a30f])=>{const _0x462cab=_0x55d02b,_0x19b8f4=colorJSONKey(JSON[_0x462cab(0x1bf)](_0x15f537),_0x1768fc),_0x40d56b=colorizeJSONCompact(_0x44a30f,_0x1768fc);return _0x19b8f4+':'+_0x40d56b;});return'{'+_0x3c769c[_0x55d02b(0x1b8)](',')+'}';}return String(_0x48b2cb);}export function colorizeJSON(_0x1b6414,_0xb5ecc3={},_0x219bf0=0x0){const _0x2565e7=a51_0x513f;if(!shouldUseColor(_0xb5ecc3))return JSON['stringify'](_0x1b6414,null,0x2);const _0x2ac276='\x20'[_0x2565e7(0x1b5)](_0x219bf0),_0x2d0083=_0x219bf0+0x2;if(_0x1b6414===null)return colorJSONNull(_0x2565e7(0x1b0),_0xb5ecc3);if(typeof _0x1b6414===_0x2565e7(0x1c2))return colorJSONBoolean(String(_0x1b6414),_0xb5ecc3);if(typeof _0x1b6414===_0x2565e7(0x1ba))return colorJSONNumber(String(_0x1b6414),_0xb5ecc3);if(typeof _0x1b6414===_0x2565e7(0x1bd))return colorJSONString(JSON[_0x2565e7(0x1bf)](_0x1b6414),_0xb5ecc3);if(Array[_0x2565e7(0x1b1)](_0x1b6414)){if(_0x1b6414[_0x2565e7(0x1a8)]===0x0)return'[]';const _0x4fb1cd=_0x1b6414[_0x2565e7(0x1b7)](_0x28805b=>{const _0x402a45=_0x2565e7,_0x2d7f35=colorizeJSON(_0x28805b,_0xb5ecc3,_0x2d0083);return''+'\x20'[_0x402a45(0x1b5)](_0x2d0083)+_0x2d7f35;});return'[\x0a'+_0x4fb1cd[_0x2565e7(0x1b8)](',\x0a')+('\x0a'+_0x2ac276+']');}if(typeof _0x1b6414==='object'){const _0x269560=Object[_0x2565e7(0x1c3)](_0x1b6414);if(_0x269560[_0x2565e7(0x1a8)]===0x0)return'{}';const _0x25519c=_0x269560['map'](([_0x45f1dd,_0x28eabf])=>{const _0x1682fe=_0x2565e7,_0x4ea982=colorJSONKey(JSON[_0x1682fe(0x1bf)](_0x45f1dd),_0xb5ecc3),_0x232bf3=colorizeJSON(_0x28eabf,_0xb5ecc3,_0x2d0083);return''+'\x20'[_0x1682fe(0x1b5)](_0x2d0083)+_0x4ea982+':\x20'+_0x232bf3;});return'{\x0a'+_0x25519c[_0x2565e7(0x1b8)](',\x0a')+('\x0a'+_0x2ac276+'}');}return String(_0x1b6414);}
1
+ (function(_0x40485a,_0x453465){const _0xaee46b=a51_0xc1c4,_0x3bd385=_0x40485a();while(!![]){try{const _0x107395=-parseInt(_0xaee46b(0x1d6))/0x1*(parseInt(_0xaee46b(0x1d3))/0x2)+-parseInt(_0xaee46b(0x1d1))/0x3*(-parseInt(_0xaee46b(0x1ec))/0x4)+-parseInt(_0xaee46b(0x1ce))/0x5*(-parseInt(_0xaee46b(0x1d5))/0x6)+-parseInt(_0xaee46b(0x1e6))/0x7+parseInt(_0xaee46b(0x1df))/0x8+parseInt(_0xaee46b(0x1da))/0x9+parseInt(_0xaee46b(0x1ea))/0xa*(-parseInt(_0xaee46b(0x1d8))/0xb);if(_0x107395===_0x453465)break;else _0x3bd385['push'](_0x3bd385['shift']());}catch(_0x543c6f){_0x3bd385['push'](_0x3bd385['shift']());}}}(a51_0x4b1c,0xeddbb));import{Chalk}from'chalk';function a51_0xc1c4(_0x44a84e,_0x4e3857){const _0x4b1c0a=a51_0x4b1c();return a51_0xc1c4=function(_0xc1c4a9,_0x1df223){_0xc1c4a9=_0xc1c4a9-0x1ce;let _0x26fdd=_0x4b1c0a[_0xc1c4a9];return _0x26fdd;},a51_0xc1c4(_0x44a84e,_0x4e3857);}export function shouldUseColor(_0x364f3e={}){const _0x460de8=a51_0xc1c4;if(_0x364f3e[_0x460de8(0x1ee)]===!![])return![];if(_0x364f3e[_0x460de8(0x1dd)]===!![])return!![];if(process[_0x460de8(0x1d7)][_0x460de8(0x1d2)]!==undefined)return![];return process[_0x460de8(0x1cf)][_0x460de8(0x1db)]??![];}function getChalk(_0x2b4198={}){if(shouldUseColor(_0x2b4198))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x7dbddd,_0x34a59e={}){return getChalk(_0x34a59e)['dim'](_0x7dbddd);}export function colorHeader(_0xdc1185,_0x193ff8={}){const _0x90a802=a51_0xc1c4;return getChalk(_0x193ff8)[_0x90a802(0x1e4)](_0xdc1185);}export function colorType(_0x4ef2a6,_0x7faf85={}){const _0x2f98af=a51_0xc1c4;return getChalk(_0x7faf85)[_0x2f98af(0x1d9)](_0x4ef2a6);}export function colorJSONKey(_0x21d980,_0xd735ac={}){const _0x44a1b6=a51_0xc1c4;return getChalk(_0xd735ac)[_0x44a1b6(0x1e9)](_0x21d980);}export function colorJSONString(_0x27cd15,_0x200ce2={}){return getChalk(_0x200ce2)['green'](_0x27cd15);}function a51_0x4b1c(){const _0x4ee759=['noColor','1224095oQwCVy','stdout','length','3sAYpNd','NO_COLOR','19662TZozeY','boolean','42tFHstf','135IRUrcq','env','399784PzimzR','dim','8855352dYfbqK','isTTY','yellow','color','stringify','6175704fQZBNn','null','isArray','number','entries','cyan','join','13509797GnPqZv','repeat','string','blue','260QdXank','map','6826972LgOiMB','object'];a51_0x4b1c=function(){return _0x4ee759;};return a51_0x4b1c();}export function colorJSONNumber(_0x53fb27,_0x401e87={}){return getChalk(_0x401e87)['cyan'](_0x53fb27);}export function colorJSONBoolean(_0xc3ed08,_0x12db0c={}){const _0x243b23=a51_0xc1c4;return getChalk(_0x12db0c)[_0x243b23(0x1dc)](_0xc3ed08);}export function colorJSONNull(_0x5f3dda,_0x466bac={}){const _0x123850=a51_0xc1c4;return getChalk(_0x466bac)[_0x123850(0x1d9)](_0x5f3dda);}export function colorizeJSONCompact(_0x3c3eaa,_0x59ed3e={}){const _0x113d88=a51_0xc1c4;if(!shouldUseColor(_0x59ed3e))return JSON[_0x113d88(0x1de)](_0x3c3eaa);if(_0x3c3eaa===null)return colorJSONNull(_0x113d88(0x1e0),_0x59ed3e);if(typeof _0x3c3eaa===_0x113d88(0x1d4))return colorJSONBoolean(String(_0x3c3eaa),_0x59ed3e);if(typeof _0x3c3eaa===_0x113d88(0x1e2))return colorJSONNumber(String(_0x3c3eaa),_0x59ed3e);if(typeof _0x3c3eaa===_0x113d88(0x1e8))return colorJSONString(JSON[_0x113d88(0x1de)](_0x3c3eaa),_0x59ed3e);if(Array['isArray'](_0x3c3eaa)){if(_0x3c3eaa[_0x113d88(0x1d0)]===0x0)return'[]';const _0x8286a3=_0x3c3eaa[_0x113d88(0x1eb)](_0x1b16b2=>colorizeJSONCompact(_0x1b16b2,_0x59ed3e));return'['+_0x8286a3[_0x113d88(0x1e5)](',')+']';}if(typeof _0x3c3eaa===_0x113d88(0x1ed)){const _0x2b31f4=Object[_0x113d88(0x1e3)](_0x3c3eaa);if(_0x2b31f4[_0x113d88(0x1d0)]===0x0)return'{}';const _0x21c190=_0x2b31f4[_0x113d88(0x1eb)](([_0x1f5477,_0x3df32b])=>{const _0xc7226a=_0x113d88,_0x35916b=colorJSONKey(JSON[_0xc7226a(0x1de)](_0x1f5477),_0x59ed3e),_0x3ecc2d=colorizeJSONCompact(_0x3df32b,_0x59ed3e);return _0x35916b+':'+_0x3ecc2d;});return'{'+_0x21c190['join'](',')+'}';}return String(_0x3c3eaa);}export function colorizeJSON(_0x4e2f10,_0x300edd={},_0x42d4b2=0x0){const _0x2f53e1=a51_0xc1c4;if(!shouldUseColor(_0x300edd))return JSON[_0x2f53e1(0x1de)](_0x4e2f10,null,0x2);const _0x446612='\x20'['repeat'](_0x42d4b2),_0x2abbf2=_0x42d4b2+0x2;if(_0x4e2f10===null)return colorJSONNull(_0x2f53e1(0x1e0),_0x300edd);if(typeof _0x4e2f10===_0x2f53e1(0x1d4))return colorJSONBoolean(String(_0x4e2f10),_0x300edd);if(typeof _0x4e2f10===_0x2f53e1(0x1e2))return colorJSONNumber(String(_0x4e2f10),_0x300edd);if(typeof _0x4e2f10==='string')return colorJSONString(JSON[_0x2f53e1(0x1de)](_0x4e2f10),_0x300edd);if(Array[_0x2f53e1(0x1e1)](_0x4e2f10)){if(_0x4e2f10[_0x2f53e1(0x1d0)]===0x0)return'[]';const _0x134ed7=_0x4e2f10[_0x2f53e1(0x1eb)](_0x903809=>{const _0x459ef5=_0x2f53e1,_0x1913f3=colorizeJSON(_0x903809,_0x300edd,_0x2abbf2);return''+'\x20'[_0x459ef5(0x1e7)](_0x2abbf2)+_0x1913f3;});return'[\x0a'+_0x134ed7['join'](',\x0a')+('\x0a'+_0x446612+']');}if(typeof _0x4e2f10===_0x2f53e1(0x1ed)){const _0x319ef6=Object['entries'](_0x4e2f10);if(_0x319ef6[_0x2f53e1(0x1d0)]===0x0)return'{}';const _0x5e9578=_0x319ef6['map'](([_0x136da8,_0x106725])=>{const _0x1f9f30=_0x2f53e1,_0x21bc75=colorJSONKey(JSON[_0x1f9f30(0x1de)](_0x136da8),_0x300edd),_0x1f7e62=colorizeJSON(_0x106725,_0x300edd,_0x2abbf2);return''+'\x20'[_0x1f9f30(0x1e7)](_0x2abbf2)+_0x21bc75+':\x20'+_0x1f7e62;});return'{\x0a'+_0x5e9578['join'](',\x0a')+('\x0a'+_0x446612+'}');}return String(_0x4e2f10);}
@@ -1 +1 @@
1
- (function(_0xe21fc8,_0x8c71b4){const _0x586d41=a52_0x13cb,_0x5662be=_0xe21fc8();while(!![]){try{const _0x156924=-parseInt(_0x586d41(0x8a))/0x1+parseInt(_0x586d41(0x6a))/0x2*(parseInt(_0x586d41(0x6b))/0x3)+parseInt(_0x586d41(0x7f))/0x4+-parseInt(_0x586d41(0x73))/0x5*(-parseInt(_0x586d41(0x69))/0x6)+parseInt(_0x586d41(0x6f))/0x7*(-parseInt(_0x586d41(0x77))/0x8)+parseInt(_0x586d41(0x7b))/0x9+parseInt(_0x586d41(0x7a))/0xa*(parseInt(_0x586d41(0x88))/0xb);if(_0x156924===_0x8c71b4)break;else _0x5662be['push'](_0x5662be['shift']());}catch(_0x2c5ac6){_0x5662be['push'](_0x5662be['shift']());}}}(a52_0x8361,0x36524));import{writeFileSync}from'fs';function a52_0x13cb(_0x555cc6,_0x1b4257){const _0x836143=a52_0x8361();return a52_0x13cb=function(_0x13cbbf,_0x4ee391){_0x13cbbf=_0x13cbbf-0x69;let _0x10fcfc=_0x836143[_0x13cbbf];return _0x10fcfc;},a52_0x13cb(_0x555cc6,_0x1b4257);}import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';export function parseOutputOptions(_0x366bfd){const _0x2b1da4=a52_0x13cb;return{'format':_0x366bfd[_0x2b1da4(0x80)]||_0x2b1da4(0x81),'output':_0x366bfd[_0x2b1da4(0x83)]||'','limit':_0x366bfd['limit'],'color':_0x366bfd[_0x2b1da4(0x76)],'noColor':_0x366bfd['noColor']};}function convertSDKResultToQueryResult(_0x45edf2){const _0x1a256f=a52_0x13cb,_0x3a9cbb=[];if(_0x45edf2['length']>0x0){const _0x194c6d=_0x45edf2[0x0];for(const [_0x41b9d2,_0x53b32a]of Object[_0x1a256f(0x86)](_0x194c6d)){let _0x21f163=_0x1a256f(0x84);if(typeof _0x53b32a===_0x1a256f(0x8d))_0x21f163=Number[_0x1a256f(0x6e)](_0x53b32a)?_0x1a256f(0x6d):'double';else{if(typeof _0x53b32a==='boolean')_0x21f163=_0x1a256f(0x75);else _0x53b32a===null&&(_0x21f163=_0x1a256f(0x84));}_0x3a9cbb['push']({'name':_0x41b9d2,'type':_0x21f163});}}return{'queryId':_0x1a256f(0x74),'columns':_0x3a9cbb,'data':_0x45edf2,'stats':{'state':'FINISHED','queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x45edf2[_0x1a256f(0x71)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x61d580,_0x314544){const _0x598dac=convertSDKResultToQueryResult(_0x61d580);return formatQueryOutput(_0x598dac,_0x314544);}export async function formatQueryOutput(_0x4edb51,_0x516272){const _0x2857cf=a52_0x13cb,{format:_0x2c07b4,limit:_0x550263,output:_0x5c53af,color:_0x349b6a,noColor:_0x436e68}=_0x516272,_0x21d641=Boolean(_0x5c53af)&&!_0x349b6a,_0x1191b1={'color':_0x349b6a,'noColor':_0x436e68||_0x21d641};if(_0x2c07b4===_0x2857cf(0x81)){const {formatAsTable:_0x59affd}=await import(_0x2857cf(0x7c)),_0x525f36=shouldUseLess(_0x2c07b4,_0x5c53af);return _0x59affd(_0x4edb51,_0x550263,_0x525f36,_0x1191b1);}else{if(_0x2c07b4===_0x2857cf(0x7d)){const {formatAsJSON:_0x1e5aff}=await import(_0x2857cf(0x7c));return _0x1e5aff(_0x4edb51,_0x1191b1);}else{if(_0x2c07b4===_0x2857cf(0x79)){const {formatAsJSONL:_0x1ed22e}=await import(_0x2857cf(0x7c));return _0x1ed22e(_0x4edb51,_0x1191b1);}else{const {formatQueryResult:_0x121326}=await import(_0x2857cf(0x7c));return _0x121326(_0x4edb51,_0x2c07b4);}}}}function shouldUseLess(_0x44a7f0,_0x576b92){const _0x492276=a52_0x13cb;return _0x44a7f0==='table'&&process['stdout'][_0x492276(0x87)]&&!_0x576b92;}function a52_0x8361(){const _0x267b4b=['sdk-result','boolean','color','3448VIjjVQ','stdin','jsonl','910EYfQyL','1905921XCSczx','./formatters.js','json','resolve','129688keLPhV','format','table','error','output','varchar','log','entries','isTTY','8657QljGBs','write','163207cETpuM','inherit','limit','number','pipe','146238JqfVqT','140540LshaXQ','6BUfClj','noColor','bigint','isInteger','1939MImKaR','close','length','Results\x20saved\x20to\x20','10YkPmNm'];a52_0x8361=function(){return _0x267b4b;};return a52_0x8361();}export function resolveOutputOptions(_0xa9a26){const _0x506f76=a52_0x13cb,_0x3b7e9c=resolveOutputFormat(_0xa9a26[_0x506f76(0x80)],_0xa9a26['output'],_0x506f76(0x81));let _0x74c7f9=typeof _0xa9a26[_0x506f76(0x8c)]==='number'?_0xa9a26[_0x506f76(0x8c)]:parseInt(_0xa9a26[_0x506f76(0x8c)]||'40',0xa);const _0x45ba29=_0xa9a26[_0x506f76(0x83)]||'';return shouldUseLess(_0x3b7e9c,_0x45ba29)&&(_0x74c7f9=Infinity),{'format':_0x3b7e9c,'output':_0x45ba29,'limit':_0x74c7f9,'color':_0xa9a26[_0x506f76(0x76)],'noColor':_0xa9a26[_0x506f76(0x6c)]};}export function writeOutput(_0xee09b,_0x44801c,_0x1ca26f){const _0x30f4b2=a52_0x13cb;return _0x44801c?(writeFileSync(_0x44801c,_0xee09b),console[_0x30f4b2(0x82)](_0x30f4b2(0x72)+_0x44801c),Promise[_0x30f4b2(0x7e)]()):shouldUseLess(_0x1ca26f||'','')?new Promise(_0x30a712=>{const _0xd0a4c0=_0x30f4b2,_0x26388c=spawn('less',['-FXRSn'],{'stdio':[_0xd0a4c0(0x8e),_0xd0a4c0(0x8b),'inherit']});let _0x201123=![];_0x26388c['on'](_0xd0a4c0(0x82),()=>{const _0x28e481=_0xd0a4c0;!_0x201123&&(_0x201123=!![],console[_0x28e481(0x85)](_0xee09b),_0x30a712());}),_0x26388c['on'](_0xd0a4c0(0x70),()=>{!_0x201123&&(_0x201123=!![],_0x30a712());}),_0x26388c['on']('spawn',()=>{const _0x433260=_0xd0a4c0;!_0x201123&&_0x26388c[_0x433260(0x78)]&&(_0x26388c[_0x433260(0x78)]['on'](_0x433260(0x82),()=>{}),_0x26388c[_0x433260(0x78)][_0x433260(0x89)](_0xee09b),_0x26388c[_0x433260(0x78)]['end']());}),!_0x26388c[_0xd0a4c0(0x78)]&&(!_0x201123&&(_0x201123=!![],console[_0xd0a4c0(0x85)](_0xee09b),_0x30a712()));}):(console[_0x30f4b2(0x85)](_0xee09b),Promise['resolve']());}export async function handleSDKOutput(_0x1648c0,_0x26457b){const _0x38c286=resolveOutputOptions(_0x26457b),_0x536b2b=await formatSDKOutput(_0x1648c0,_0x38c286);await writeOutput(_0x536b2b,_0x38c286['output']||undefined,_0x38c286['format']);}export async function handleQueryOutput(_0x920040,_0x424705){const _0x246653=a52_0x13cb,_0x21d21e=resolveOutputOptions(_0x424705),_0x1d146c=await formatQueryOutput(_0x920040,_0x21d21e);await writeOutput(_0x1d146c,_0x21d21e[_0x246653(0x83)]||undefined,_0x21d21e[_0x246653(0x80)]);}
1
+ (function(_0x42c0f0,_0x42bbc3){const _0xb65c76=a52_0x4ee4,_0x380003=_0x42c0f0();while(!![]){try{const _0x46a396=-parseInt(_0xb65c76(0x92))/0x1+parseInt(_0xb65c76(0xaf))/0x2+parseInt(_0xb65c76(0x93))/0x3+-parseInt(_0xb65c76(0xa4))/0x4+parseInt(_0xb65c76(0xa5))/0x5*(parseInt(_0xb65c76(0xa1))/0x6)+parseInt(_0xb65c76(0x96))/0x7*(parseInt(_0xb65c76(0xa3))/0x8)+-parseInt(_0xb65c76(0x9f))/0x9;if(_0x46a396===_0x42bbc3)break;else _0x380003['push'](_0x380003['shift']());}catch(_0x204061){_0x380003['push'](_0x380003['shift']());}}}(a52_0x1c06,0xe4daf));import{writeFileSync}from'fs';function a52_0x4ee4(_0x185586,_0x30e239){const _0x1c067c=a52_0x1c06();return a52_0x4ee4=function(_0x4ee4ee,_0x20263a){_0x4ee4ee=_0x4ee4ee-0x89;let _0x4708ac=_0x1c067c[_0x4ee4ee];return _0x4708ac;},a52_0x4ee4(_0x185586,_0x30e239);}import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';export function parseOutputOptions(_0x4505d2){const _0x4eb6d7=a52_0x4ee4;return{'format':_0x4505d2[_0x4eb6d7(0x9b)]||_0x4eb6d7(0xae),'output':_0x4505d2[_0x4eb6d7(0xac)]||'','limit':_0x4505d2[_0x4eb6d7(0x9d)],'color':_0x4505d2['color'],'noColor':_0x4505d2[_0x4eb6d7(0xad)]};}function convertSDKResultToQueryResult(_0x4d8a48){const _0x3672a4=a52_0x4ee4,_0x42c934=[];if(_0x4d8a48[_0x3672a4(0xb0)]>0x0){const _0x9babf9=_0x4d8a48[0x0];for(const [_0x450c38,_0x2e5c87]of Object[_0x3672a4(0x9c)](_0x9babf9)){let _0x1ab3b7=_0x3672a4(0x8e);if(typeof _0x2e5c87===_0x3672a4(0xa0))_0x1ab3b7=Number[_0x3672a4(0x99)](_0x2e5c87)?'bigint':_0x3672a4(0x89);else{if(typeof _0x2e5c87===_0x3672a4(0xb1))_0x1ab3b7=_0x3672a4(0xb1);else _0x2e5c87===null&&(_0x1ab3b7=_0x3672a4(0x8e));}_0x42c934[_0x3672a4(0x91)]({'name':_0x450c38,'type':_0x1ab3b7});}}return{'queryId':_0x3672a4(0x97),'columns':_0x42c934,'data':_0x4d8a48,'stats':{'state':_0x3672a4(0x8a),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x4d8a48['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x3483b5,_0x195232){const _0xb7ae57=convertSDKResultToQueryResult(_0x3483b5);return formatQueryOutput(_0xb7ae57,_0x195232);}export async function formatQueryOutput(_0x3a7600,_0x50ccff){const _0x55d156=a52_0x4ee4,{format:_0x2e54ce,limit:_0x22058d,output:_0x2787b8,color:_0x152d07,noColor:_0x88b603}=_0x50ccff,_0x1e4dee=Boolean(_0x2787b8)&&!_0x152d07,_0x4de1a0={'color':_0x152d07,'noColor':_0x88b603||_0x1e4dee};if(_0x2e54ce===_0x55d156(0xae)){const {formatAsTable:_0x51aeaa}=await import('./formatters.js'),_0xedeae=shouldUseLess(_0x2e54ce,_0x2787b8);return _0x51aeaa(_0x3a7600,_0x22058d,_0xedeae,_0x4de1a0);}else{if(_0x2e54ce==='json'){const {formatAsJSON:_0x3991fa}=await import('./formatters.js');return _0x3991fa(_0x3a7600,_0x4de1a0);}else{if(_0x2e54ce===_0x55d156(0x8c)){const {formatAsJSONL:_0xe12250}=await import(_0x55d156(0x9e));return _0xe12250(_0x3a7600,_0x4de1a0);}else{const {formatQueryResult:_0x576897}=await import(_0x55d156(0x9e));return _0x576897(_0x3a7600,_0x2e54ce);}}}}function shouldUseLess(_0x59a553,_0x828a23){const _0x6c615c=a52_0x4ee4;return _0x59a553===_0x6c615c(0xae)&&process[_0x6c615c(0xa9)]['isTTY']&&!_0x828a23;}export function resolveOutputOptions(_0x2eaaff){const _0x430ab8=a52_0x4ee4,_0x44acc0=resolveOutputFormat(_0x2eaaff[_0x430ab8(0x9b)],_0x2eaaff[_0x430ab8(0xac)],_0x430ab8(0xae));let _0x1d1693=typeof _0x2eaaff[_0x430ab8(0x9d)]===_0x430ab8(0xa0)?_0x2eaaff[_0x430ab8(0x9d)]:parseInt(_0x2eaaff[_0x430ab8(0x9d)]||'40',0xa);const _0x3e57a2=_0x2eaaff[_0x430ab8(0xac)]||'';return shouldUseLess(_0x44acc0,_0x3e57a2)&&(_0x1d1693=Infinity),{'format':_0x44acc0,'output':_0x3e57a2,'limit':_0x1d1693,'color':_0x2eaaff[_0x430ab8(0xaa)],'noColor':_0x2eaaff['noColor']};}function a52_0x1c06(){const _0x57f92e=['table','2730320iACvlv','length','boolean','double','FINISHED','-FXRSn','jsonl','write','varchar','spawn','pipe','push','1202818TjEcMI','621642HcbpzZ','close','stdin','959630KbbXJl','sdk-result','log','isInteger','end','format','entries','limit','./formatters.js','1374993lWeyjK','number','3018tojaIe','resolve','80ybjDbl','3719824ENPWLj','2780lOBJTb','error','Results\x20saved\x20to\x20','inherit','stdout','color','less','output','noColor'];a52_0x1c06=function(){return _0x57f92e;};return a52_0x1c06();}export function writeOutput(_0x1923fc,_0x339033,_0x370bad){const _0xc3e532=a52_0x4ee4;return _0x339033?(writeFileSync(_0x339033,_0x1923fc),console['error'](_0xc3e532(0xa7)+_0x339033),Promise[_0xc3e532(0xa2)]()):shouldUseLess(_0x370bad||'','')?new Promise(_0x472add=>{const _0x2d1d6a=_0xc3e532,_0x25eac8=spawn(_0x2d1d6a(0xab),[_0x2d1d6a(0x8b)],{'stdio':[_0x2d1d6a(0x90),_0x2d1d6a(0xa8),_0x2d1d6a(0xa8)]});let _0x49a0d1=![];_0x25eac8['on'](_0x2d1d6a(0xa6),()=>{const _0x583d25=_0x2d1d6a;!_0x49a0d1&&(_0x49a0d1=!![],console[_0x583d25(0x98)](_0x1923fc),_0x472add());}),_0x25eac8['on'](_0x2d1d6a(0x94),()=>{!_0x49a0d1&&(_0x49a0d1=!![],_0x472add());}),_0x25eac8['on'](_0x2d1d6a(0x8f),()=>{const _0xe5e9f6=_0x2d1d6a;!_0x49a0d1&&_0x25eac8['stdin']&&(_0x25eac8[_0xe5e9f6(0x95)]['on'](_0xe5e9f6(0xa6),()=>{}),_0x25eac8[_0xe5e9f6(0x95)][_0xe5e9f6(0x8d)](_0x1923fc),_0x25eac8['stdin'][_0xe5e9f6(0x9a)]());}),!_0x25eac8[_0x2d1d6a(0x95)]&&(!_0x49a0d1&&(_0x49a0d1=!![],console[_0x2d1d6a(0x98)](_0x1923fc),_0x472add()));}):(console['log'](_0x1923fc),Promise[_0xc3e532(0xa2)]());}export async function handleSDKOutput(_0x34ffff,_0x3df066){const _0x182e9f=a52_0x4ee4,_0x3b8dba=resolveOutputOptions(_0x3df066),_0x8955ba=await formatSDKOutput(_0x34ffff,_0x3b8dba);await writeOutput(_0x8955ba,_0x3b8dba['output']||undefined,_0x3b8dba[_0x182e9f(0x9b)]);}export async function handleQueryOutput(_0x2aba44,_0x21a4e3){const _0x59f64e=a52_0x4ee4,_0x5e0a5c=resolveOutputOptions(_0x21a4e3),_0x28c72e=await formatQueryOutput(_0x2aba44,_0x5e0a5c);await writeOutput(_0x28c72e,_0x5e0a5c['output']||undefined,_0x5e0a5c[_0x59f64e(0x9b)]);}
@@ -1 +1 @@
1
- (function(_0x1e42cc,_0x45910f){const _0x18389d=a53_0x20e0,_0x31a55a=_0x1e42cc();while(!![]){try{const _0x20c0fb=-parseInt(_0x18389d(0xe2))/0x1+-parseInt(_0x18389d(0xdb))/0x2*(-parseInt(_0x18389d(0xdd))/0x3)+-parseInt(_0x18389d(0xdf))/0x4*(-parseInt(_0x18389d(0xde))/0x5)+-parseInt(_0x18389d(0xe6))/0x6+parseInt(_0x18389d(0xe9))/0x7*(-parseInt(_0x18389d(0xda))/0x8)+-parseInt(_0x18389d(0xe4))/0x9+parseInt(_0x18389d(0xe3))/0xa*(parseInt(_0x18389d(0xd8))/0xb);if(_0x20c0fb===_0x45910f)break;else _0x31a55a['push'](_0x31a55a['shift']());}catch(_0x46bdc3){_0x31a55a['push'](_0x31a55a['shift']());}}}(a53_0x5165,0xebe03));import*as a53_0x395f9d from'node:fs';import*as a53_0x3b3ec8 from'node:path';function a53_0x20e0(_0x21eefc,_0xadd3e0){const _0x5165b3=a53_0x5165();return a53_0x20e0=function(_0x20e0eb,_0x523032){_0x20e0eb=_0x20e0eb-0xd8;let _0x140710=_0x5165b3[_0x20e0eb];return _0x140710;},a53_0x20e0(_0x21eefc,_0xadd3e0);}export function setSecureFilePermissions(_0x37d36d){const _0x189def=a53_0x20e0;try{a53_0x395f9d[_0x189def(0xea)](_0x37d36d,0x180);}catch{console[_0x189def(0xef)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x37d36d);}}function a53_0x5165(){const _0x3a72e1=['mkdirSync','mode','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','toString','warn','11LxiFvt','existsSync','125992ukHDPN','20oYyGKM','writeFileSync','429153parEth','12300dyUfOz','1044XUoYPx',').\x20','\x20has\x20insecure\x20permissions\x20(','938583LjKHtU','35607610cRNbQH','15305283heNJoL','Warning:\x20','8860794rBcFRe','Should\x20be\x200600\x20or\x20more\x20restrictive.','statSync','245LgFRfE','chmodSync'];a53_0x5165=function(){return _0x3a72e1;};return a53_0x5165();}export function setSecureDirectoryPermissions(_0x5ac832){const _0x5b0b2b=a53_0x20e0;try{a53_0x395f9d['chmodSync'](_0x5ac832,0x1c0);}catch{console[_0x5b0b2b(0xef)](_0x5b0b2b(0xed)+_0x5ac832);}}export function createSecureDirectory(_0xb27aa7){const _0xdfd899=a53_0x20e0;!a53_0x395f9d[_0xdfd899(0xd9)](_0xb27aa7)&&(a53_0x395f9d[_0xdfd899(0xeb)](_0xb27aa7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xb27aa7));}export function validateSecureFilePermissions(_0x49268d){const _0x3775b2=a53_0x20e0;try{const _0x3a24f9=a53_0x395f9d[_0x3775b2(0xe8)](_0x49268d),_0x54047d=_0x3a24f9[_0x3775b2(0xec)]&0x1ff,_0x4cd5a1=(_0x54047d&0x3f)!==0x0;if(_0x4cd5a1)return console[_0x3775b2(0xef)](_0x3775b2(0xe5)+_0x49268d+_0x3775b2(0xe1)+_0x54047d[_0x3775b2(0xee)](0x8)+_0x3775b2(0xe0)+_0x3775b2(0xe7)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x118c64,_0x3dcfbe){const _0x1c0bf6=a53_0x20e0,_0x594f22=a53_0x3b3ec8['dirname'](_0x118c64);createSecureDirectory(_0x594f22),a53_0x395f9d[_0x1c0bf6(0xdc)](_0x118c64,_0x3dcfbe,{'mode':0x180}),setSecureFilePermissions(_0x118c64);}
1
+ (function(_0x2031aa,_0x5cad44){const _0x45f4e3=a53_0x2be4,_0xfed5d1=_0x2031aa();while(!![]){try{const _0x2fe4c6=parseInt(_0x45f4e3(0xf0))/0x1*(-parseInt(_0x45f4e3(0xf1))/0x2)+-parseInt(_0x45f4e3(0xed))/0x3+-parseInt(_0x45f4e3(0xe6))/0x4*(-parseInt(_0x45f4e3(0xe9))/0x5)+-parseInt(_0x45f4e3(0xf7))/0x6*(-parseInt(_0x45f4e3(0xe8))/0x7)+parseInt(_0x45f4e3(0xeb))/0x8+parseInt(_0x45f4e3(0xfc))/0x9*(-parseInt(_0x45f4e3(0xfd))/0xa)+parseInt(_0x45f4e3(0xea))/0xb;if(_0x2fe4c6===_0x5cad44)break;else _0xfed5d1['push'](_0xfed5d1['shift']());}catch(_0x22b089){_0xfed5d1['push'](_0xfed5d1['shift']());}}}(a53_0x197f,0xb966a));import*as a53_0xbe58c5 from'node:fs';function a53_0x2be4(_0x2f81ab,_0xce7793){const _0x197f1c=a53_0x197f();return a53_0x2be4=function(_0x2be4c7,_0x2344bf){_0x2be4c7=_0x2be4c7-0xe6;let _0x3a6057=_0x197f1c[_0x2be4c7];return _0x3a6057;},a53_0x2be4(_0x2f81ab,_0xce7793);}import*as a53_0x32e344 from'node:path';export function setSecureFilePermissions(_0x12a1f0){const _0x1b79ca=a53_0x2be4;try{a53_0xbe58c5[_0x1b79ca(0xf4)](_0x12a1f0,0x180);}catch{console[_0x1b79ca(0xf8)](_0x1b79ca(0xf3)+_0x12a1f0);}}export function setSecureDirectoryPermissions(_0x5d837e){const _0x21ef49=a53_0x2be4;try{a53_0xbe58c5[_0x21ef49(0xf4)](_0x5d837e,0x1c0);}catch{console[_0x21ef49(0xf8)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5d837e);}}export function createSecureDirectory(_0x5a3b96){const _0x329214=a53_0x2be4;!a53_0xbe58c5['existsSync'](_0x5a3b96)&&(a53_0xbe58c5[_0x329214(0xf9)](_0x5a3b96,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5a3b96));}export function validateSecureFilePermissions(_0x3c7f6e){const _0x307f9f=a53_0x2be4;try{const _0x50d7d1=a53_0xbe58c5[_0x307f9f(0xfa)](_0x3c7f6e),_0x44f7a6=_0x50d7d1[_0x307f9f(0xfb)]&0x1ff,_0x38ec7b=(_0x44f7a6&0x3f)!==0x0;if(_0x38ec7b)return console[_0x307f9f(0xf8)](_0x307f9f(0xee)+_0x3c7f6e+_0x307f9f(0xec)+_0x44f7a6[_0x307f9f(0xf2)](0x8)+_0x307f9f(0xe7)+_0x307f9f(0xef)),![];return!![];}catch{return!![];}}function a53_0x197f(){const _0x1d4412=['1028965kTInFS','35KuMAFh','14102165EoTdpo','9543592LlyqJH','\x20has\x20insecure\x20permissions\x20(','3908043bKASiQ','Warning:\x20','Should\x20be\x200600\x20or\x20more\x20restrictive.','3VjXoEb','667578VfAPFz','toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','chmodSync','dirname','writeFileSync','6wNUJSj','warn','mkdirSync','statSync','mode','746289meltjK','80OhGJGY','631348JayrnE',').\x20'];a53_0x197f=function(){return _0x1d4412;};return a53_0x197f();}export function writeSecureFile(_0x2ed9ce,_0xae0942){const _0x484d5b=a53_0x2be4,_0x287ca7=a53_0x32e344[_0x484d5b(0xf5)](_0x2ed9ce);createSecureDirectory(_0x287ca7),a53_0xbe58c5[_0x484d5b(0xf6)](_0x2ed9ce,_0xae0942,{'mode':0x180}),setSecureFilePermissions(_0x2ed9ce);}
@@ -1 +1 @@
1
- (function(_0x4e4bf2,_0x1c77b7){const _0x3997be=a54_0x29ef,_0xa2ee5f=_0x4e4bf2();while(!![]){try{const _0x4e88de=parseInt(_0x3997be(0x1d0))/0x1+-parseInt(_0x3997be(0x1de))/0x2+parseInt(_0x3997be(0x1dc))/0x3+parseInt(_0x3997be(0x1e0))/0x4*(parseInt(_0x3997be(0x1d4))/0x5)+parseInt(_0x3997be(0x1cf))/0x6+-parseInt(_0x3997be(0x1d1))/0x7*(-parseInt(_0x3997be(0x1d3))/0x8)+-parseInt(_0x3997be(0x1dd))/0x9;if(_0x4e88de===_0x1c77b7)break;else _0xa2ee5f['push'](_0xa2ee5f['shift']());}catch(_0xc6468e){_0xa2ee5f['push'](_0xa2ee5f['shift']());}}}(a54_0x1a04,0x5b860));function a54_0x1a04(){const _0x3c8d41=['tsv','40dyLDnF','20eGhZCr','table','pop','toLowerCase','split','text','jsonl','txt','2151921fuxiad','16390269xgPcoY','86654AypBjA','json','284296KIJjdI','1368930gkxZfK','737885VMObdL','380387aYMEiD'];a54_0x1a04=function(){return _0x3c8d41;};return a54_0x1a04();}function a54_0x29ef(_0x123332,_0x1778e0){const _0x1a0467=a54_0x1a04();return a54_0x29ef=function(_0x29efd4,_0x580a07){_0x29efd4=_0x29efd4-0x1cf;let _0x4a8d91=_0x1a0467[_0x29efd4];return _0x4a8d91;},a54_0x29ef(_0x123332,_0x1778e0);}export function detectFormatFromExtension(_0x18cfe7){const _0x57c592=a54_0x29ef,_0x101952=_0x18cfe7[_0x57c592(0x1d7)]()[_0x57c592(0x1d8)]('.')[_0x57c592(0x1d6)]();switch(_0x101952){case _0x57c592(0x1df):return _0x57c592(0x1df);case _0x57c592(0x1da):return _0x57c592(0x1da);case _0x57c592(0x1d2):case'tab':return'tsv';case _0x57c592(0x1db):case _0x57c592(0x1d9):return _0x57c592(0x1d5);default:return undefined;}}export function resolveOutputFormat(_0xc8f8a7,_0x4e06bd,_0x473ba3){if(_0xc8f8a7)return _0xc8f8a7;if(_0x4e06bd){const _0x52ce2d=detectFormatFromExtension(_0x4e06bd);if(_0x52ce2d)return _0x52ce2d;}return _0x473ba3;}
1
+ function a54_0x1eab(_0x2db34b,_0x1c54ff){const _0x573f29=a54_0x573f();return a54_0x1eab=function(_0x1eab42,_0x44cb5e){_0x1eab42=_0x1eab42-0xa7;let _0x2b1269=_0x573f29[_0x1eab42];return _0x2b1269;},a54_0x1eab(_0x2db34b,_0x1c54ff);}(function(_0x351407,_0x58d50a){const _0x45fb91=a54_0x1eab,_0x1a9ff7=_0x351407();while(!![]){try{const _0xabfbe=parseInt(_0x45fb91(0xac))/0x1+parseInt(_0x45fb91(0xb1))/0x2*(-parseInt(_0x45fb91(0xaa))/0x3)+parseInt(_0x45fb91(0xb5))/0x4+-parseInt(_0x45fb91(0xae))/0x5*(parseInt(_0x45fb91(0xb3))/0x6)+parseInt(_0x45fb91(0xb2))/0x7+parseInt(_0x45fb91(0xab))/0x8+-parseInt(_0x45fb91(0xb4))/0x9;if(_0xabfbe===_0x58d50a)break;else _0x1a9ff7['push'](_0x1a9ff7['shift']());}catch(_0x4b801b){_0x1a9ff7['push'](_0x1a9ff7['shift']());}}}(a54_0x573f,0x43c02));function a54_0x573f(){const _0x39217d=['381399GjALPz','pop','5jFWKpt','tab','json','992QwDZMT','2378670PVTmXP','2233614IkxaGr','4868163zOtxjn','689652jEwFBu','text','tsv','table','jsonl','split','txt','1197TUiDtN','3959712YHqDgk'];a54_0x573f=function(){return _0x39217d;};return a54_0x573f();}export function detectFormatFromExtension(_0x4a9b7a){const _0x19b691=a54_0x1eab,_0x519089=_0x4a9b7a['toLowerCase']()[_0x19b691(0xa8)]('.')[_0x19b691(0xad)]();switch(_0x519089){case _0x19b691(0xb0):return _0x19b691(0xb0);case'jsonl':return _0x19b691(0xa7);case _0x19b691(0xb7):case _0x19b691(0xaf):return _0x19b691(0xb7);case _0x19b691(0xa9):case _0x19b691(0xb6):return _0x19b691(0xb8);default:return undefined;}}export function resolveOutputFormat(_0x5746cf,_0x783b6d,_0xdab938){if(_0x5746cf)return _0x5746cf;if(_0x783b6d){const _0x4940bd=detectFormatFromExtension(_0x783b6d);if(_0x4940bd)return _0x4940bd;}return _0xdab938;}
@@ -1 +1 @@
1
- (function(_0x7df93d,_0x1af07f){const _0x5bf42b=a55_0x5ee5,_0x1d5891=_0x7df93d();while(!![]){try{const _0x424862=-parseInt(_0x5bf42b(0x1ac))/0x1+-parseInt(_0x5bf42b(0x1b1))/0x2+-parseInt(_0x5bf42b(0x1dd))/0x3+parseInt(_0x5bf42b(0x1ba))/0x4+-parseInt(_0x5bf42b(0x1de))/0x5*(parseInt(_0x5bf42b(0x1b3))/0x6)+parseInt(_0x5bf42b(0x1c3))/0x7*(parseInt(_0x5bf42b(0x1c0))/0x8)+parseInt(_0x5bf42b(0x1ce))/0x9*(parseInt(_0x5bf42b(0x1c5))/0xa);if(_0x424862===_0x1af07f)break;else _0x1d5891['push'](_0x1d5891['shift']());}catch(_0x5e4411){_0x1d5891['push'](_0x1d5891['shift']());}}}(a55_0x33ee,0x44440));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x52001f=a55_0x5ee5;return process[_0x52001f(0x1d7)][_0x52001f(0x1cd)]||Infinity;}export function formatAsTable(_0x18b017,_0x342afa=DEFAULT_MAX_DISPLAY_ROWS,_0x132c66=![],_0xca2e1d={}){const _0x19f733=a55_0x5ee5;if(_0x18b017[_0x19f733(0x1ad)][_0x19f733(0x1d8)]===0x0)return _0x19f733(0x1c4);const _0x554adf=_0x18b017['columns'][_0x19f733(0x1b8)](_0x2bfb15=>_0x2bfb15['name']),_0xdee0c4=_0x18b017[_0x19f733(0x1cd)][_0x19f733(0x1b8)](_0x580dff=>simplifyType(_0x580dff[_0x19f733(0x1dc)])),_0x78d383=_0x18b017[_0x19f733(0x1ad)][_0x19f733(0x1d0)](0x0,_0x342afa),_0x72cf0a=_0x18b017[_0x19f733(0x1ad)]['length'],_0x3a740a=_0x72cf0a>_0x342afa,_0x14b284=[],_0x37ab35=getTerminalWidth(),_0x3dbfc9=_0x37ab35!==Infinity,_0x3b5184=0x32;let _0x1933d3=_0x554adf['map']((_0x3499e4,_0x3dc90f)=>{const _0x50dc66=_0x19f733,_0xda4010=stringWidth(_0xdee0c4[_0x3dc90f]),_0x5b40bd=Math[_0x50dc66(0x1d1)](..._0x78d383['map'](_0x27d981=>{const _0x4e5ae1=_0x27d981[_0x3499e4];return stringWidth(formatValue(_0x4e5ae1));})),_0x3df918=Math['max'](stringWidth(_0x3499e4),_0xda4010,_0x5b40bd);return _0x132c66?_0x3df918:Math['min'](_0x3df918,_0x3b5184);});if(_0x3dbfc9&&!_0x132c66&&_0x554adf[_0x19f733(0x1d8)]>0x0){const _0x409440=_0x203e73=>{let _0x5d546a=0x1;for(const _0x2460a2 of _0x203e73){_0x5d546a+=_0x2460a2+0x3;}return _0x5d546a+0x1;};let _0x446d0b=_0x409440(_0x1933d3);if(_0x446d0b>_0x37ab35){const _0x2d9e6b=0x3;for(let _0x1446a8=_0x1933d3[_0x19f733(0x1d8)]-0x1;_0x1446a8>=0x0;_0x1446a8--){_0x446d0b=_0x409440(_0x1933d3);if(_0x446d0b<=_0x37ab35)break;const _0x32a3f6=_0x1933d3[_0x1446a8],_0x5b2ee2=_0x446d0b-_0x37ab35,_0x1d8df6=_0x32a3f6-_0x2d9e6b,_0x4dc8f4=Math[_0x19f733(0x1ae)](_0x5b2ee2,_0x1d8df6);_0x4dc8f4>0x0&&(_0x1933d3[_0x1446a8]=_0x32a3f6-_0x4dc8f4);}}}const _0x3fe685=_0x554adf,_0x3f75fa=_0xdee0c4,_0x2e136c=_0x1933d3,_0x39fc54=_0x1933d3;_0x14b284[_0x19f733(0x1bd)](colorBorder('┌'+_0x39fc54[_0x19f733(0x1b8)](_0x322707=>'─'[_0x19f733(0x1bb)](_0x322707+0x2))[_0x19f733(0x1ca)]('┬')+'┐',_0xca2e1d));const _0x5c62d7=_0x3fe685['map']((_0x1f4b24,_0x1b1ee3)=>centerAlign(_0x1f4b24,_0x2e136c[_0x1b1ee3]));_0x14b284[_0x19f733(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x5c62d7['join']('\x20'+colorBorder('│',_0xca2e1d)+'\x20')+'\x20'+colorBorder('│',_0xca2e1d));const _0x53915d=_0x3f75fa[_0x19f733(0x1b8)]((_0x4fcb00,_0x2702dd)=>colorType(centerAlign(_0x4fcb00,_0x2e136c[_0x2702dd]),_0xca2e1d));_0x14b284[_0x19f733(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x53915d['join']('\x20'+colorBorder('│',_0xca2e1d)+'\x20')+'\x20'+colorBorder('│',_0xca2e1d)),_0x14b284[_0x19f733(0x1bd)](colorBorder('├'+_0x39fc54['map'](_0x5b5be4=>'─'['repeat'](_0x5b5be4+0x2))['join']('┼')+'┤',_0xca2e1d));const _0x5ef017=(_0x1c9de5,_0x86f23a)=>{const _0x25d199=_0x19f733,_0x52e1fc=stringWidth(_0x1c9de5);if(_0x52e1fc<=_0x86f23a)return _0x1c9de5;let _0x147498=_0x1c9de5;while(stringWidth(_0x147498+'…')>_0x86f23a&&_0x147498[_0x25d199(0x1d8)]>0x0){_0x147498=_0x147498[_0x25d199(0x1d0)](0x0,-0x1);}return _0x147498+'…';};_0x78d383[_0x19f733(0x1cf)](_0x7a88d4=>{const _0x4b562c=_0x19f733,_0x5548b4=_0x554adf[_0x4b562c(0x1b8)]((_0x173d78,_0x2021b0)=>{const _0x5928c3=_0x4b562c,_0x3665ad=_0x7a88d4[_0x173d78],_0x4f5519=formatValue(_0x3665ad),_0x5cff55=_0x2e136c[_0x2021b0],_0x201661=_0x5ef017(_0x4f5519,_0x5cff55),_0x4dba7c=typeof _0x3665ad===_0x5928c3(0x1b2)||typeof _0x3665ad==='string'&&/^-?\d+$/[_0x5928c3(0x1be)](_0x3665ad);return _0x4dba7c?padStart(_0x201661,_0x5cff55):padEnd(_0x201661,_0x5cff55);});_0x14b284[_0x4b562c(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x5548b4[_0x4b562c(0x1ca)]('\x20'+colorBorder('│',_0xca2e1d)+'\x20')+'\x20'+colorBorder('│',_0xca2e1d));});const _0x5b41eb=_0x39fc54[_0x19f733(0x1b4)]((_0x3f104c,_0x1ef5c5)=>_0x3f104c+_0x1ef5c5+0x3,-0x1);_0x14b284[_0x19f733(0x1bd)](colorBorder('├'+_0x39fc54[_0x19f733(0x1b8)](_0x186ffa=>'─'[_0x19f733(0x1bb)](_0x186ffa+0x2))[_0x19f733(0x1ca)]('┴')+'┤',_0xca2e1d));let _0x503a49;_0x3a740a?_0x503a49=_0x72cf0a+_0x19f733(0x1db)+_0x342afa+_0x19f733(0x1c6):_0x503a49=_0x72cf0a+_0x19f733(0x1d2)+(_0x72cf0a===0x1?'':'s');const _0x485c47=_0x503a49['padEnd'](_0x5b41eb-0x2);return _0x14b284[_0x19f733(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x485c47+'\x20'+colorBorder('│',_0xca2e1d)),_0x14b284[_0x19f733(0x1bd)](colorBorder('└'+'─'[_0x19f733(0x1bb)](_0x5b41eb)+'┘',_0xca2e1d)),_0x14b284[_0x19f733(0x1ca)]('\x0a');}function simplifyType(_0xe43492){const _0x932896=a55_0x5ee5,_0x100205={'varchar':_0x932896(0x1d6),'bigint':_0x932896(0x1c7),'integer':_0x932896(0x1b0),'double':_0x932896(0x1b5),'boolean':_0x932896(0x1d3),'date':_0x932896(0x1c8),'timestamp':'timestamp','array':'array','map':_0x932896(0x1b8),'row':_0x932896(0x1bf)},_0x3c8e85=_0xe43492[_0x932896(0x1c1)]();for(const [_0x46c4da,_0x50cfad]of Object[_0x932896(0x1af)](_0x100205)){if(_0x3c8e85[_0x932896(0x1d9)](_0x46c4da))return _0x50cfad;}return _0xe43492[_0x932896(0x1d8)]>0xa?_0xe43492[_0x932896(0x1b7)](0x0,0xa):_0xe43492;}function a55_0x5ee5(_0x37abb8,_0x285326){const _0x33eee8=a55_0x33ee();return a55_0x5ee5=function(_0x5ee535,_0x2e46c0){_0x5ee535=_0x5ee535-0x1ac;let _0x1c4763=_0x33eee8[_0x5ee535];return _0x1c4763;},a55_0x5ee5(_0x37abb8,_0x285326);}function a55_0x33ee(){const _0x22a011=['forEach','slice','max','\x20row','bool','table','name','string','stdout','length','startsWith','false','\x20rows\x20(','type','779898ZmKMEf','15160LXlfZB','478739SmjGPk','data','min','entries','int','974012aVqgoF','number','1068CgfmGA','reduce','double','jsonl','substring','map','toISOString','892824WhfRRi','repeat','true','push','test','row','8WBgfDn','toLowerCase','boolean','2503529siEzeM','No\x20rows\x20returned','100AdgVep','\x20shown)','long','date','json','join','stringify','replace','columns','1317753cvXHaB'];a55_0x33ee=function(){return _0x22a011;};return a55_0x33ee();}export function formatAsJSON(_0x3d080a,_0x5f26db={}){const _0x4dc815=a55_0x5ee5;if(_0x3d080a['data']['length']===0x0)return'[]';if(shouldUseColor(_0x5f26db))return colorizeJSON(_0x3d080a['data'],_0x5f26db);const _0x71405b=_0x3d080a[_0x4dc815(0x1ad)]['map'](_0x598b57=>'\x20\x20'+JSON[_0x4dc815(0x1cb)](_0x598b57));return'[\x0a'+_0x71405b[_0x4dc815(0x1ca)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x551df7,_0x2fbe7a={}){const _0x3ce969=a55_0x5ee5;if(_0x551df7[_0x3ce969(0x1ad)]['length']===0x0)return'';if(shouldUseColor(_0x2fbe7a))return _0x551df7['data'][_0x3ce969(0x1b8)](_0x244ceb=>colorizeJSONCompact(_0x244ceb,_0x2fbe7a))[_0x3ce969(0x1ca)]('\x0a');return _0x551df7[_0x3ce969(0x1ad)][_0x3ce969(0x1b8)](_0x3a5d98=>JSON[_0x3ce969(0x1cb)](_0x3a5d98))[_0x3ce969(0x1ca)]('\x0a');}export function formatAsTSV(_0x12a141){const _0x4ddd6d=a55_0x5ee5;if(_0x12a141[_0x4ddd6d(0x1ad)][_0x4ddd6d(0x1d8)]===0x0)return'';const _0x2fb361=[],_0x2409bc=_0x12a141[_0x4ddd6d(0x1cd)][_0x4ddd6d(0x1b8)](_0x1bf7d3=>_0x1bf7d3[_0x4ddd6d(0x1d5)]);return _0x2fb361['push'](_0x2409bc[_0x4ddd6d(0x1ca)]('\x09')),_0x12a141[_0x4ddd6d(0x1ad)][_0x4ddd6d(0x1cf)](_0x5be85e=>{const _0x3c0f72=_0x4ddd6d,_0x16573e=_0x2409bc['map'](_0x26c2b0=>{const _0x56be13=_0x5be85e[_0x26c2b0];return formatValueForTSV(_0x56be13);});_0x2fb361[_0x3c0f72(0x1bd)](_0x16573e[_0x3c0f72(0x1ca)]('\x09'));}),_0x2fb361[_0x4ddd6d(0x1ca)]('\x0a');}function formatValue(_0x21f72e){const _0x9b51da=a55_0x5ee5;if(_0x21f72e===null||_0x21f72e===undefined)return'';if(typeof _0x21f72e===_0x9b51da(0x1d6)){const _0x31b571=_0x21f72e[_0x9b51da(0x1cc)](/\n/g,'\x5cn')[_0x9b51da(0x1cc)](/\r/g,'\x5cr')[_0x9b51da(0x1cc)](/\t/g,'\x5ct');return _0x31b571;}if(typeof _0x21f72e==='number')return String(_0x21f72e);if(typeof _0x21f72e==='boolean')return _0x21f72e?_0x9b51da(0x1bc):_0x9b51da(0x1da);if(_0x21f72e instanceof Date)return _0x21f72e[_0x9b51da(0x1b9)]();if(typeof _0x21f72e==='object')return JSON[_0x9b51da(0x1cb)](_0x21f72e);return String(_0x21f72e);}function formatValueForTSV(_0x1bb6c5){const _0x1bf751=a55_0x5ee5;if(_0x1bb6c5===null||_0x1bb6c5===undefined)return'';if(typeof _0x1bb6c5===_0x1bf751(0x1d6))return _0x1bb6c5['replace'](/\t/g,'\x5ct')[_0x1bf751(0x1cc)](/\n/g,'\x5cn');if(typeof _0x1bb6c5===_0x1bf751(0x1b2)||typeof _0x1bb6c5===_0x1bf751(0x1c2))return String(_0x1bb6c5);if(_0x1bb6c5 instanceof Date)return _0x1bb6c5[_0x1bf751(0x1b9)]();if(typeof _0x1bb6c5==='object')return JSON[_0x1bf751(0x1cb)](_0x1bb6c5);return String(_0x1bb6c5);}export function formatQueryResult(_0x39299c,_0x7e9f0e){const _0x9e38d5=a55_0x5ee5;switch(_0x7e9f0e){case _0x9e38d5(0x1d4):return formatAsTable(_0x39299c);case _0x9e38d5(0x1c9):return formatAsJSON(_0x39299c);case _0x9e38d5(0x1b6):return formatAsJSONL(_0x39299c);case'tsv':return formatAsTSV(_0x39299c);default:return formatAsJSON(_0x39299c);}}
1
+ (function(_0x5b4a4e,_0x30318c){const _0x39a2a9=a55_0x4211,_0x1bde05=_0x5b4a4e();while(!![]){try{const _0x2ef9e3=-parseInt(_0x39a2a9(0x84))/0x1*(parseInt(_0x39a2a9(0x70))/0x2)+parseInt(_0x39a2a9(0x88))/0x3*(-parseInt(_0x39a2a9(0x7a))/0x4)+-parseInt(_0x39a2a9(0x98))/0x5+parseInt(_0x39a2a9(0x80))/0x6*(parseInt(_0x39a2a9(0x6d))/0x7)+parseInt(_0x39a2a9(0x93))/0x8*(-parseInt(_0x39a2a9(0x97))/0x9)+-parseInt(_0x39a2a9(0x8f))/0xa*(parseInt(_0x39a2a9(0x8c))/0xb)+parseInt(_0x39a2a9(0x79))/0xc;if(_0x2ef9e3===_0x30318c)break;else _0x1bde05['push'](_0x1bde05['shift']());}catch(_0x38d239){_0x1bde05['push'](_0x1bde05['shift']());}}}(a55_0x5fd6,0x3d977));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function a55_0x5fd6(){const _0x1de468=['20334576OXzMtH','4gvDgoK','string','json','date','forEach','entries','323106LxdVPK','jsonl','\x20shown)','timestamp','159nVwBOg','boolean','test','number','1297713PqZaLC','\x20rows\x20(','repeat','stringify','11wYkOUa','stdout','\x20row','4079890LYNwZz','bool','row','array','32wICqzq','push','type','false','182799MqtLon','1651005wkXoBk','columns','min','replace','max','data','long','length','14OCfsTW','table','startsWith','3748OBBnzP','true','reduce','slice','name','tsv','toLowerCase','join','map'];a55_0x5fd6=function(){return _0x1de468;};return a55_0x5fd6();}function getTerminalWidth(){const _0x2c3bc9=a55_0x4211;return process[_0x2c3bc9(0x8d)][_0x2c3bc9(0x99)]||Infinity;}export function formatAsTable(_0xa884b8,_0x462106=DEFAULT_MAX_DISPLAY_ROWS,_0x155acd=![],_0x395e53={}){const _0x1278ea=a55_0x4211;if(_0xa884b8[_0x1278ea(0x9d)][_0x1278ea(0x6c)]===0x0)return'No\x20rows\x20returned';const _0x364e08=_0xa884b8['columns']['map'](_0x12b6b5=>_0x12b6b5[_0x1278ea(0x74)]),_0xf18acb=_0xa884b8[_0x1278ea(0x99)][_0x1278ea(0x78)](_0x1770c0=>simplifyType(_0x1770c0[_0x1278ea(0x95)])),_0x1411f5=_0xa884b8[_0x1278ea(0x9d)][_0x1278ea(0x73)](0x0,_0x462106),_0x31d1ba=_0xa884b8[_0x1278ea(0x9d)]['length'],_0x4837af=_0x31d1ba>_0x462106,_0x4cb32c=[],_0x5692a8=getTerminalWidth(),_0x57ab73=_0x5692a8!==Infinity,_0x5ceeb3=0x32;let _0x4d5eb7=_0x364e08['map']((_0x72ae91,_0x412673)=>{const _0x53a3be=_0x1278ea,_0x6a2d48=stringWidth(_0xf18acb[_0x412673]),_0x4c44f8=Math[_0x53a3be(0x9c)](..._0x1411f5[_0x53a3be(0x78)](_0x272e53=>{const _0x356ecd=_0x272e53[_0x72ae91];return stringWidth(formatValue(_0x356ecd));})),_0x2ada67=Math[_0x53a3be(0x9c)](stringWidth(_0x72ae91),_0x6a2d48,_0x4c44f8);return _0x155acd?_0x2ada67:Math[_0x53a3be(0x9a)](_0x2ada67,_0x5ceeb3);});if(_0x57ab73&&!_0x155acd&&_0x364e08[_0x1278ea(0x6c)]>0x0){const _0x4a3ab6=_0x2ea706=>{let _0xfb904e=0x1;for(const _0xb0972c of _0x2ea706){_0xfb904e+=_0xb0972c+0x3;}return _0xfb904e+0x1;};let _0x1ee9e5=_0x4a3ab6(_0x4d5eb7);if(_0x1ee9e5>_0x5692a8){const _0x463e90=0x3;for(let _0x309046=_0x4d5eb7[_0x1278ea(0x6c)]-0x1;_0x309046>=0x0;_0x309046--){_0x1ee9e5=_0x4a3ab6(_0x4d5eb7);if(_0x1ee9e5<=_0x5692a8)break;const _0x8421de=_0x4d5eb7[_0x309046],_0x2ce148=_0x1ee9e5-_0x5692a8,_0xd1af02=_0x8421de-_0x463e90,_0x27671f=Math['min'](_0x2ce148,_0xd1af02);_0x27671f>0x0&&(_0x4d5eb7[_0x309046]=_0x8421de-_0x27671f);}}}const _0x1a5aec=_0x364e08,_0x3f35c0=_0xf18acb,_0xf28bb6=_0x4d5eb7,_0x48262d=_0x4d5eb7;_0x4cb32c[_0x1278ea(0x94)](colorBorder('┌'+_0x48262d[_0x1278ea(0x78)](_0x4aad98=>'─'[_0x1278ea(0x8a)](_0x4aad98+0x2))['join']('┬')+'┐',_0x395e53));const _0x2f3618=_0x1a5aec[_0x1278ea(0x78)]((_0x20c0a5,_0x805515)=>centerAlign(_0x20c0a5,_0xf28bb6[_0x805515]));_0x4cb32c[_0x1278ea(0x94)](colorBorder('│',_0x395e53)+'\x20'+_0x2f3618[_0x1278ea(0x77)]('\x20'+colorBorder('│',_0x395e53)+'\x20')+'\x20'+colorBorder('│',_0x395e53));const _0x4b948b=_0x3f35c0[_0x1278ea(0x78)]((_0x4a201a,_0x3ff570)=>colorType(centerAlign(_0x4a201a,_0xf28bb6[_0x3ff570]),_0x395e53));_0x4cb32c['push'](colorBorder('│',_0x395e53)+'\x20'+_0x4b948b[_0x1278ea(0x77)]('\x20'+colorBorder('│',_0x395e53)+'\x20')+'\x20'+colorBorder('│',_0x395e53)),_0x4cb32c[_0x1278ea(0x94)](colorBorder('├'+_0x48262d[_0x1278ea(0x78)](_0x254945=>'─'['repeat'](_0x254945+0x2))[_0x1278ea(0x77)]('┼')+'┤',_0x395e53));const _0x55f950=(_0x26ed18,_0xc39fe4)=>{const _0x24f484=_0x1278ea,_0x18851a=stringWidth(_0x26ed18);if(_0x18851a<=_0xc39fe4)return _0x26ed18;let _0x3ce88f=_0x26ed18;while(stringWidth(_0x3ce88f+'…')>_0xc39fe4&&_0x3ce88f['length']>0x0){_0x3ce88f=_0x3ce88f[_0x24f484(0x73)](0x0,-0x1);}return _0x3ce88f+'…';};_0x1411f5[_0x1278ea(0x7e)](_0x8e2924=>{const _0x356e75=_0x1278ea,_0x4186bb=_0x364e08[_0x356e75(0x78)]((_0x49dbb0,_0x2a50cb)=>{const _0x44975f=_0x356e75,_0x9960c6=_0x8e2924[_0x49dbb0],_0x5f3215=formatValue(_0x9960c6),_0x54915b=_0xf28bb6[_0x2a50cb],_0x45cf62=_0x55f950(_0x5f3215,_0x54915b),_0x2735ab=typeof _0x9960c6==='number'||typeof _0x9960c6===_0x44975f(0x7b)&&/^-?\d+$/[_0x44975f(0x86)](_0x9960c6);return _0x2735ab?padStart(_0x45cf62,_0x54915b):padEnd(_0x45cf62,_0x54915b);});_0x4cb32c[_0x356e75(0x94)](colorBorder('│',_0x395e53)+'\x20'+_0x4186bb[_0x356e75(0x77)]('\x20'+colorBorder('│',_0x395e53)+'\x20')+'\x20'+colorBorder('│',_0x395e53));});const _0x3f4ba6=_0x48262d[_0x1278ea(0x72)]((_0x450188,_0x25b5ee)=>_0x450188+_0x25b5ee+0x3,-0x1);_0x4cb32c[_0x1278ea(0x94)](colorBorder('├'+_0x48262d[_0x1278ea(0x78)](_0x3868f3=>'─'[_0x1278ea(0x8a)](_0x3868f3+0x2))[_0x1278ea(0x77)]('┴')+'┤',_0x395e53));let _0x99c26b;_0x4837af?_0x99c26b=_0x31d1ba+_0x1278ea(0x89)+_0x462106+_0x1278ea(0x82):_0x99c26b=_0x31d1ba+_0x1278ea(0x8e)+(_0x31d1ba===0x1?'':'s');const _0x2d46f1=_0x99c26b['padEnd'](_0x3f4ba6-0x2);return _0x4cb32c[_0x1278ea(0x94)](colorBorder('│',_0x395e53)+'\x20'+_0x2d46f1+'\x20'+colorBorder('│',_0x395e53)),_0x4cb32c[_0x1278ea(0x94)](colorBorder('└'+'─'['repeat'](_0x3f4ba6)+'┘',_0x395e53)),_0x4cb32c['join']('\x0a');}function simplifyType(_0x3e3381){const _0x1dcbd5=a55_0x4211,_0x35443f={'varchar':_0x1dcbd5(0x7b),'bigint':_0x1dcbd5(0x9e),'integer':'int','double':'double','boolean':_0x1dcbd5(0x90),'date':_0x1dcbd5(0x7d),'timestamp':_0x1dcbd5(0x83),'array':_0x1dcbd5(0x92),'map':'map','row':_0x1dcbd5(0x91)},_0x46d92b=_0x3e3381[_0x1dcbd5(0x76)]();for(const [_0x3f770d,_0x28bfb8]of Object[_0x1dcbd5(0x7f)](_0x35443f)){if(_0x46d92b[_0x1dcbd5(0x6f)](_0x3f770d))return _0x28bfb8;}return _0x3e3381[_0x1dcbd5(0x6c)]>0xa?_0x3e3381['substring'](0x0,0xa):_0x3e3381;}export function formatAsJSON(_0xec01f2,_0x2c0ee8={}){const _0x47e08e=a55_0x4211;if(_0xec01f2[_0x47e08e(0x9d)][_0x47e08e(0x6c)]===0x0)return'[]';if(shouldUseColor(_0x2c0ee8))return colorizeJSON(_0xec01f2[_0x47e08e(0x9d)],_0x2c0ee8);const _0x271cea=_0xec01f2[_0x47e08e(0x9d)][_0x47e08e(0x78)](_0x1c2d56=>'\x20\x20'+JSON[_0x47e08e(0x8b)](_0x1c2d56));return'[\x0a'+_0x271cea[_0x47e08e(0x77)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x20189,_0x12f67c={}){const _0x270125=a55_0x4211;if(_0x20189[_0x270125(0x9d)][_0x270125(0x6c)]===0x0)return'';if(shouldUseColor(_0x12f67c))return _0x20189[_0x270125(0x9d)][_0x270125(0x78)](_0x225850=>colorizeJSONCompact(_0x225850,_0x12f67c))[_0x270125(0x77)]('\x0a');return _0x20189['data'][_0x270125(0x78)](_0x51023f=>JSON['stringify'](_0x51023f))[_0x270125(0x77)]('\x0a');}export function formatAsTSV(_0x5e457e){const _0x25b5f0=a55_0x4211;if(_0x5e457e[_0x25b5f0(0x9d)][_0x25b5f0(0x6c)]===0x0)return'';const _0xfdb790=[],_0xa58b6b=_0x5e457e[_0x25b5f0(0x99)][_0x25b5f0(0x78)](_0xfce829=>_0xfce829[_0x25b5f0(0x74)]);return _0xfdb790[_0x25b5f0(0x94)](_0xa58b6b[_0x25b5f0(0x77)]('\x09')),_0x5e457e[_0x25b5f0(0x9d)][_0x25b5f0(0x7e)](_0x599b08=>{const _0x25341a=_0x25b5f0,_0xed6e14=_0xa58b6b[_0x25341a(0x78)](_0x29d85b=>{const _0x432e22=_0x599b08[_0x29d85b];return formatValueForTSV(_0x432e22);});_0xfdb790[_0x25341a(0x94)](_0xed6e14[_0x25341a(0x77)]('\x09'));}),_0xfdb790[_0x25b5f0(0x77)]('\x0a');}function formatValue(_0x36db89){const _0x43d124=a55_0x4211;if(_0x36db89===null||_0x36db89===undefined)return'';if(typeof _0x36db89===_0x43d124(0x7b)){const _0x6e49f2=_0x36db89['replace'](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x43d124(0x9b)](/\t/g,'\x5ct');return _0x6e49f2;}if(typeof _0x36db89==='number')return String(_0x36db89);if(typeof _0x36db89===_0x43d124(0x85))return _0x36db89?_0x43d124(0x71):_0x43d124(0x96);if(_0x36db89 instanceof Date)return _0x36db89['toISOString']();if(typeof _0x36db89==='object')return JSON['stringify'](_0x36db89);return String(_0x36db89);}function formatValueForTSV(_0x3f27cc){const _0x8942bd=a55_0x4211;if(_0x3f27cc===null||_0x3f27cc===undefined)return'';if(typeof _0x3f27cc===_0x8942bd(0x7b))return _0x3f27cc[_0x8942bd(0x9b)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x3f27cc===_0x8942bd(0x87)||typeof _0x3f27cc===_0x8942bd(0x85))return String(_0x3f27cc);if(_0x3f27cc instanceof Date)return _0x3f27cc['toISOString']();if(typeof _0x3f27cc==='object')return JSON[_0x8942bd(0x8b)](_0x3f27cc);return String(_0x3f27cc);}function a55_0x4211(_0x5c0386,_0x4bdd2d){const _0x5fd6ce=a55_0x5fd6();return a55_0x4211=function(_0x421123,_0x140ee1){_0x421123=_0x421123-0x6c;let _0x54abd6=_0x5fd6ce[_0x421123];return _0x54abd6;},a55_0x4211(_0x5c0386,_0x4bdd2d);}export function formatQueryResult(_0x3ec975,_0x3e4200){const _0xd4f5e5=a55_0x4211;switch(_0x3e4200){case _0xd4f5e5(0x6e):return formatAsTable(_0x3ec975);case _0xd4f5e5(0x7c):return formatAsJSON(_0x3ec975);case _0xd4f5e5(0x81):return formatAsJSONL(_0x3ec975);case _0xd4f5e5(0x75):return formatAsTSV(_0x3ec975);default:return formatAsJSON(_0x3ec975);}}
@@ -1 +1 @@
1
- function a56_0x25e5(_0x5c1089,_0x584756){const _0x917455=a56_0x9174();return a56_0x25e5=function(_0x25e52d,_0x2f2d7c){_0x25e52d=_0x25e52d-0x76;let _0x382107=_0x917455[_0x25e52d];return _0x382107;},a56_0x25e5(_0x5c1089,_0x584756);}const a56_0x43bd6c=a56_0x25e5;function a56_0x9174(){const _0xee3670=['toLowerCase','1347126gqxIru','2476605IyMbVK','1022802dPluVe','claude-4.5-haiku','11843258OZeXAB','214420tjtkDG','530188qymqnN','921114tqcniR'];a56_0x9174=function(){return _0xee3670;};return a56_0x9174();}(function(_0x589c6a,_0x253e72){const _0x19878f=a56_0x25e5,_0xa876dd=_0x589c6a();while(!![]){try{const _0x30e148=-parseInt(_0x19878f(0x79))/0x1+-parseInt(_0x19878f(0x7c))/0x2+parseInt(_0x19878f(0x77))/0x3+-parseInt(_0x19878f(0x7d))/0x4+-parseInt(_0x19878f(0x78))/0x5+parseInt(_0x19878f(0x7e))/0x6+parseInt(_0x19878f(0x7b))/0x7;if(_0x30e148===_0x253e72)break;else _0xa876dd['push'](_0xa876dd['shift']());}catch(_0x912cbb){_0xa876dd['push'](_0xa876dd['shift']());}}}(a56_0x9174,0x82fff));const MODEL_ALIASES={'haiku':a56_0x43bd6c(0x7a),'sonnet':'claude-4.5-sonnet'};export function resolveModelAlias(_0x3df291){const _0x20f8d5=a56_0x43bd6c;return MODEL_ALIASES[_0x3df291[_0x20f8d5(0x76)]()]||_0x3df291;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a56_0x23365e=a56_0x2dbe;(function(_0x230f6b,_0x4a82de){const _0x3eec1f=a56_0x2dbe,_0x1062e4=_0x230f6b();while(!![]){try{const _0x521737=parseInt(_0x3eec1f(0x10f))/0x1*(parseInt(_0x3eec1f(0x10a))/0x2)+-parseInt(_0x3eec1f(0x104))/0x3+parseInt(_0x3eec1f(0x103))/0x4+-parseInt(_0x3eec1f(0x106))/0x5+parseInt(_0x3eec1f(0x109))/0x6*(-parseInt(_0x3eec1f(0x10e))/0x7)+-parseInt(_0x3eec1f(0x10d))/0x8*(-parseInt(_0x3eec1f(0x105))/0x9)+parseInt(_0x3eec1f(0x10c))/0xa;if(_0x521737===_0x4a82de)break;else _0x1062e4['push'](_0x1062e4['shift']());}catch(_0x2f7d2a){_0x1062e4['push'](_0x1062e4['shift']());}}}(a56_0xfb5c,0x825cf));const MODEL_ALIASES={'haiku':a56_0x23365e(0x107),'sonnet':a56_0x23365e(0x108)};export function resolveModelAlias(_0x28d61a){const _0x1f27fc=a56_0x23365e;return MODEL_ALIASES[_0x28d61a[_0x1f27fc(0x10b)]()]||_0x28d61a;}function a56_0x2dbe(_0x4248b1,_0x9125d7){const _0xfb5cae=a56_0xfb5c();return a56_0x2dbe=function(_0x2dbec7,_0x22db21){_0x2dbec7=_0x2dbec7-0x103;let _0x3d4de4=_0xfb5cae[_0x2dbec7];return _0x3d4de4;},a56_0x2dbe(_0x4248b1,_0x9125d7);}function a56_0xfb5c(){const _0x18d02d=['1CsgYaw','3337752UMybvH','1476369oJrKTi','8256744LIpzPn','1116715fdXlrs','claude-4.5-haiku','claude-4.5-sonnet','157704nJucet','591388ybssNl','toLowerCase','1743930WDtkrj','8LpKRdj','259tbubHp'];a56_0xfb5c=function(){return _0x18d02d;};return a56_0xfb5c();}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x3402d3,_0x56b87f){const _0x5ce0e9=a57_0x47c8,_0xed3c3a=_0x3402d3();while(!![]){try{const _0x5e4ac4=parseInt(_0x5ce0e9(0xe3))/0x1*(-parseInt(_0x5ce0e9(0xda))/0x2)+parseInt(_0x5ce0e9(0xe2))/0x3+parseInt(_0x5ce0e9(0xd8))/0x4*(parseInt(_0x5ce0e9(0xe1))/0x5)+-parseInt(_0x5ce0e9(0xe5))/0x6+-parseInt(_0x5ce0e9(0xdf))/0x7*(-parseInt(_0x5ce0e9(0xe7))/0x8)+parseInt(_0x5ce0e9(0xd9))/0x9+-parseInt(_0x5ce0e9(0xdb))/0xa;if(_0x5e4ac4===_0x56b87f)break;else _0xed3c3a['push'](_0xed3c3a['shift']());}catch(_0x4a8d97){_0xed3c3a['push'](_0xed3c3a['shift']());}}}(a57_0x3987,0x23665));export function validateLimitOption(_0x3d3aff){const _0x4d6cd8=a57_0x47c8;if(!Number[_0x4d6cd8(0xde)](_0x3d3aff))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3d3aff+_0x4d6cd8(0xe8)};if(_0x3d3aff<=0x0)return{'isValid':![],'error':_0x4d6cd8(0xdd)+_0x3d3aff+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x3d3aff};}export function validateTimeoutOption(_0x27f63d,_0x3a7003=0x1e){const _0xc3d52c=a57_0x47c8;if(_0x27f63d===undefined)return{'isValid':!![],'value':_0x3a7003};const _0x36c9b8=typeof _0x27f63d===_0xc3d52c(0xe6)?_0x27f63d:parseFloat(_0x27f63d);if(isNaN(_0x36c9b8))return{'isValid':![],'error':_0xc3d52c(0xdc)+_0x27f63d+_0xc3d52c(0xe4)};if(_0x36c9b8<=0x0)return{'isValid':![],'error':_0xc3d52c(0xdc)+_0x36c9b8+_0xc3d52c(0xe0)};return{'isValid':!![],'value':_0x36c9b8};}function a57_0x47c8(_0x560a4d,_0x52422d){const _0x3987f8=a57_0x3987();return a57_0x47c8=function(_0x47c8ae,_0x31852e){_0x47c8ae=_0x47c8ae-0xd8;let _0x970a28=_0x3987f8[_0x47c8ae];return _0x970a28;},a57_0x47c8(_0x560a4d,_0x52422d);}function a57_0x3987(){const _0x5be484=['1526481UMKNGQ','114BVqFNx','4370750GibPtb','Invalid\x20timeout\x20value:\x20','Invalid\x20limit\x20value:\x20','isInteger','253855kaGSMB','.\x20Must\x20be\x20a\x20positive\x20number.','7420fWgKEN','862251JXgbaa','139weLYio','.\x20Must\x20be\x20a\x20number.','983532RGYbrJ','number','56ZeOlEK','.\x20Must\x20be\x20an\x20integer.','116lUqevh'];a57_0x3987=function(){return _0x5be484;};return a57_0x3987();}
1
+ (function(_0x4c9736,_0x2cacb1){const _0x524a11=a57_0x5287,_0xe53b07=_0x4c9736();while(!![]){try{const _0x338728=-parseInt(_0x524a11(0x1c2))/0x1+parseInt(_0x524a11(0x1c8))/0x2+parseInt(_0x524a11(0x1cf))/0x3+-parseInt(_0x524a11(0x1cc))/0x4+parseInt(_0x524a11(0x1cb))/0x5*(parseInt(_0x524a11(0x1ca))/0x6)+-parseInt(_0x524a11(0x1c5))/0x7+-parseInt(_0x524a11(0x1c4))/0x8*(parseInt(_0x524a11(0x1c7))/0x9);if(_0x338728===_0x2cacb1)break;else _0xe53b07['push'](_0xe53b07['shift']());}catch(_0x5aa9fa){_0xe53b07['push'](_0xe53b07['shift']());}}}(a57_0x208a,0x2d5ce));function a57_0x208a(){const _0xed8fd4=['647455aFIZTZ','1040288bWobHv','number','.\x20Must\x20be\x20a\x20positive\x20number.','892245eIEqIr','.\x20Must\x20be\x20a\x20number.','125616Oljeuz','Invalid\x20timeout\x20value:\x20','8BruNiz','1175650JVMKKM','isInteger','252603lLDIXC','422228NwcUcT','.\x20Must\x20be\x20an\x20integer.','12oqWcYh'];a57_0x208a=function(){return _0xed8fd4;};return a57_0x208a();}function a57_0x5287(_0x1ee3c5,_0x51a089){const _0x208acb=a57_0x208a();return a57_0x5287=function(_0x528779,_0x4b7c87){_0x528779=_0x528779-0x1c2;let _0xaade7e=_0x208acb[_0x528779];return _0xaade7e;},a57_0x5287(_0x1ee3c5,_0x51a089);}export function validateLimitOption(_0x2776ba){const _0x47d996=a57_0x5287;if(!Number[_0x47d996(0x1c6)](_0x2776ba))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2776ba+_0x47d996(0x1c9)};if(_0x2776ba<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2776ba+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x2776ba};}export function validateTimeoutOption(_0x2a8247,_0x48e0d9=0x1e){const _0x4afc41=a57_0x5287;if(_0x2a8247===undefined)return{'isValid':!![],'value':_0x48e0d9};const _0x4886b6=typeof _0x2a8247===_0x4afc41(0x1cd)?_0x2a8247:parseFloat(_0x2a8247);if(isNaN(_0x4886b6))return{'isValid':![],'error':_0x4afc41(0x1c3)+_0x2a8247+_0x4afc41(0x1d0)};if(_0x4886b6<=0x0)return{'isValid':![],'error':_0x4afc41(0x1c3)+_0x4886b6+_0x4afc41(0x1ce)};return{'isValid':!![],'value':_0x4886b6};}
@@ -1 +1 @@
1
- (function(_0x3c2e95,_0x34d37b){const _0x2ce412=a58_0x5111,_0x27b2ff=_0x3c2e95();while(!![]){try{const _0xaf899c=parseInt(_0x2ce412(0x9f))/0x1*(parseInt(_0x2ce412(0x95))/0x2)+parseInt(_0x2ce412(0x9b))/0x3*(-parseInt(_0x2ce412(0x90))/0x4)+parseInt(_0x2ce412(0x93))/0x5*(parseInt(_0x2ce412(0x92))/0x6)+-parseInt(_0x2ce412(0xa1))/0x7+-parseInt(_0x2ce412(0xa0))/0x8*(parseInt(_0x2ce412(0x9c))/0x9)+-parseInt(_0x2ce412(0x9e))/0xa*(parseInt(_0x2ce412(0x96))/0xb)+-parseInt(_0x2ce412(0x9a))/0xc*(-parseInt(_0x2ce412(0xa2))/0xd);if(_0xaf899c===_0x34d37b)break;else _0x27b2ff['push'](_0x27b2ff['shift']());}catch(_0x4f7cc1){_0x27b2ff['push'](_0x27b2ff['shift']());}}}(a58_0x159a,0xcd6b6));import{createServer}from'node:net';export async function isPortAvailable(_0x2d433e){return new Promise(_0x4106c4=>{const _0x4832f5=a58_0x5111,_0x2dc646=createServer();_0x2dc646[_0x4832f5(0x98)](_0x4832f5(0xa4),_0x3edcfc=>{const _0x4c18c4=_0x4832f5;_0x3edcfc['code']===_0x4c18c4(0xa3)?_0x4106c4(![]):_0x4106c4(![]);}),_0x2dc646[_0x4832f5(0x98)](_0x4832f5(0x9d),()=>{_0x2dc646['close'](),_0x4106c4(!![]);}),_0x2dc646[_0x4832f5(0x94)](_0x2d433e,_0x4832f5(0x99));});}export async function findAvailablePort(_0x1d74d6=0xfa0,_0x54cdea=0x64){const _0x4e3570=a58_0x5111;for(let _0x46284f=0x0;_0x46284f<_0x54cdea;_0x46284f++){const _0x34c718=_0x1d74d6+_0x46284f;if(await isPortAvailable(_0x34c718))return _0x34c718;}throw new Error(_0x4e3570(0x91)+_0x1d74d6+_0x4e3570(0x97)+(_0x1d74d6+_0x54cdea-0x1));}function a58_0x5111(_0x19316e,_0x471496){const _0x159ae6=a58_0x159a();return a58_0x5111=function(_0x511178,_0xaa62bb){_0x511178=_0x511178-0x90;let _0xb0335a=_0x159ae6[_0x511178];return _0xb0335a;},a58_0x5111(_0x19316e,_0x471496);}function a58_0x159a(){const _0xce146=['127.0.0.1','15699300ThrEPt','69978aXxFZP','45jKkJul','listening','817780tVSgLB','783ICFwav','509848wRjDEm','8650558CgmkuP','13lhrNJE','EADDRINUSE','error','140flLDML','No\x20available\x20port\x20found\x20between\x20','6rrlhGp','5908915IujNiz','listen','3098VblnLi','66DOusSm','\x20and\x20','once'];a58_0x159a=function(){return _0xce146;};return a58_0x159a();}
1
+ (function(_0x4ef085,_0x2f212b){const _0x5e5d6c=a58_0xfb12,_0x37c031=_0x4ef085();while(!![]){try{const _0x5027ad=parseInt(_0x5e5d6c(0xf0))/0x1+-parseInt(_0x5e5d6c(0xec))/0x2*(parseInt(_0x5e5d6c(0xef))/0x3)+-parseInt(_0x5e5d6c(0xf3))/0x4+parseInt(_0x5e5d6c(0xee))/0x5+-parseInt(_0x5e5d6c(0xe7))/0x6+-parseInt(_0x5e5d6c(0xea))/0x7*(parseInt(_0x5e5d6c(0xed))/0x8)+-parseInt(_0x5e5d6c(0xe9))/0x9*(-parseInt(_0x5e5d6c(0xf2))/0xa);if(_0x5027ad===_0x2f212b)break;else _0x37c031['push'](_0x37c031['shift']());}catch(_0x2df83d){_0x37c031['push'](_0x37c031['shift']());}}}(a58_0x3b0a,0x82adf));function a58_0xfb12(_0x3ac74d,_0x4a1853){const _0x3b0a42=a58_0x3b0a();return a58_0xfb12=function(_0xfb1251,_0x4fa723){_0xfb1251=_0xfb1251-0xe5;let _0x41a9e6=_0x3b0a42[_0xfb1251];return _0x41a9e6;},a58_0xfb12(_0x3ac74d,_0x4a1853);}import{createServer}from'node:net';export async function isPortAvailable(_0x43e632){return new Promise(_0x3327dd=>{const _0x105b12=a58_0xfb12,_0xfcdc95=createServer();_0xfcdc95['once'](_0x105b12(0xf1),_0xaaa364=>{const _0x550d54=_0x105b12;_0xaaa364[_0x550d54(0xe6)]==='EADDRINUSE'?_0x3327dd(![]):_0x3327dd(![]);}),_0xfcdc95['once'](_0x105b12(0xe8),()=>{const _0x3020e8=_0x105b12;_0xfcdc95[_0x3020e8(0xeb)](),_0x3327dd(!![]);}),_0xfcdc95[_0x105b12(0xe5)](_0x43e632,'127.0.0.1');});}export async function findAvailablePort(_0x2820dc=0xfa0,_0x3987aa=0x64){for(let _0x33be6b=0x0;_0x33be6b<_0x3987aa;_0x33be6b++){const _0x120b2a=_0x2820dc+_0x33be6b;if(await isPortAvailable(_0x120b2a))return _0x120b2a;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x2820dc+'\x20and\x20'+(_0x2820dc+_0x3987aa-0x1));}function a58_0x3b0a(){const _0x45176d=['31146DbwYnc','28952FrNNlH','507500qRyZuT','129TLMDOk','916433KQXhWW','error','1990eQJmck','2288748bNSYwe','listen','code','4279308lWWWKG','listening','71991iptRhZ','231Rdftca','close'];a58_0x3b0a=function(){return _0x45176d;};return a58_0x3b0a();}
@@ -1 +1 @@
1
- (function(_0x26d175,_0x467267){var _0x550a9e=a59_0x3b5d,_0x3e9ac8=_0x26d175();while(!![]){try{var _0x58639f=-parseInt(_0x550a9e(0x1d4))/0x1*(parseInt(_0x550a9e(0x1d5))/0x2)+parseInt(_0x550a9e(0x1dc))/0x3+parseInt(_0x550a9e(0x1db))/0x4*(-parseInt(_0x550a9e(0x1d2))/0x5)+parseInt(_0x550a9e(0x1da))/0x6*(-parseInt(_0x550a9e(0x1d7))/0x7)+-parseInt(_0x550a9e(0x1d6))/0x8+-parseInt(_0x550a9e(0x1d8))/0x9*(-parseInt(_0x550a9e(0x1d3))/0xa)+parseInt(_0x550a9e(0x1d0))/0xb;if(_0x58639f===_0x467267)break;else _0x3e9ac8['push'](_0x3e9ac8['shift']());}catch(_0x508dfe){_0x3e9ac8['push'](_0x3e9ac8['shift']());}}}(a59_0x3afe,0xec98c));export function getPPID(){var _0x232652=a59_0x3b5d;return process[_0x232652(0x1d9)];}function a59_0x3b5d(_0x4399bf,_0x77498f){var _0x3afe6e=a59_0x3afe();return a59_0x3b5d=function(_0x3b5daa,_0x1696b6){_0x3b5daa=_0x3b5daa-0x1d0;var _0x289aa3=_0x3afe6e[_0x3b5daa];return _0x289aa3;},a59_0x3b5d(_0x4399bf,_0x77498f);}export function isProcessRunning(_0x5f4355){var _0x362eb8=a59_0x3b5d;try{return process[_0x362eb8(0x1d1)](_0x5f4355,0x0),!![];}catch{return![];}}function a59_0x3afe(){var _0x21a924=['26333340fIKrTp','kill','215MZiJhB','110BMMAvy','1615443awDFcS','2uSzObi','3882200AdrWXs','57197fhkZRq','433071yfWCzV','ppid','1146vKNhch','4612ykmdUP','5270427bLqwkP'];a59_0x3afe=function(){return _0x21a924;};return a59_0x3afe();}
1
+ (function(_0x1ecb9a,_0x26b916){var _0x46a5ec=a59_0x5b87,_0x5583ed=_0x1ecb9a();while(!![]){try{var _0x3edd85=parseInt(_0x46a5ec(0x16d))/0x1+-parseInt(_0x46a5ec(0x16f))/0x2+parseInt(_0x46a5ec(0x173))/0x3*(-parseInt(_0x46a5ec(0x16e))/0x4)+parseInt(_0x46a5ec(0x170))/0x5+-parseInt(_0x46a5ec(0x16a))/0x6*(parseInt(_0x46a5ec(0x16c))/0x7)+-parseInt(_0x46a5ec(0x171))/0x8+parseInt(_0x46a5ec(0x174))/0x9*(parseInt(_0x46a5ec(0x16b))/0xa);if(_0x3edd85===_0x26b916)break;else _0x5583ed['push'](_0x5583ed['shift']());}catch(_0xe46a8){_0x5583ed['push'](_0x5583ed['shift']());}}}(a59_0x2b0a,0x9e1ce));export function getPPID(){return process['ppid'];}function a59_0x5b87(_0x106965,_0x51edc1){var _0x2b0a9c=a59_0x2b0a();return a59_0x5b87=function(_0x5b87c9,_0x40a098){_0x5b87c9=_0x5b87c9-0x16a;var _0x519060=_0x2b0a9c[_0x5b87c9];return _0x519060;},a59_0x5b87(_0x106965,_0x51edc1);}function a59_0x2b0a(){var _0x418bb0=['710754cKhRBC','3123610kndutU','3182336ZFYHID','kill','111aYwCEh','9245214cKBmMe','4187532kWSBcD','20ytCheA','7kUUVEM','610796PbAQUB','128788OIPFzR'];a59_0x2b0a=function(){return _0x418bb0;};return a59_0x2b0a();}export function isProcessRunning(_0x2e6395){var _0x51d34d=a59_0x5b87;try{return process[_0x51d34d(0x172)](_0x2e6395,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a60_0x29db(){const _0xf99c87=['indexOf','3985712hlsesu','1233355vWaahj','2418yQhCLw','.\x20Child\x20name\x20cannot\x20be\x20empty','5291285xoAToq','8239kZVSEo','2818410oxnITO','substring','1615612IVHnlE','1701498VsqPNT','4uLLwDK','Invalid\x20segment\x20reference\x20format:\x20','9eKXXgf'];a60_0x29db=function(){return _0xf99c87;};return a60_0x29db();}(function(_0x590ab8,_0x35a29d){const _0x5b312b=a60_0xe8e4,_0x5123d6=_0x590ab8();while(!![]){try{const _0x3a89f7=-parseInt(_0x5b312b(0x1dc))/0x1+-parseInt(_0x5b312b(0x1d5))/0x2+parseInt(_0x5b312b(0x1d6))/0x3+parseInt(_0x5b312b(0x1d7))/0x4*(parseInt(_0x5b312b(0x1df))/0x5)+parseInt(_0x5b312b(0x1dd))/0x6*(parseInt(_0x5b312b(0x1d2))/0x7)+-parseInt(_0x5b312b(0x1db))/0x8*(-parseInt(_0x5b312b(0x1d9))/0x9)+parseInt(_0x5b312b(0x1d3))/0xa;if(_0x3a89f7===_0x35a29d)break;else _0x5123d6['push'](_0x5123d6['shift']());}catch(_0x42f549){_0x5123d6['push'](_0x5123d6['shift']());}}}(a60_0x29db,0xccbf8));function a60_0xe8e4(_0xd089a4,_0x2ebabe){const _0x29dbc2=a60_0x29db();return a60_0xe8e4=function(_0xe8e4b9,_0x5a8262){_0xe8e4b9=_0xe8e4b9-0x1d2;let _0x16351a=_0x29dbc2[_0xe8e4b9];return _0x16351a;},a60_0xe8e4(_0xd089a4,_0x2ebabe);}export function parseSegmentRef(_0x1caf1e){const _0x3b02ea=a60_0xe8e4,_0x36d970=_0x1caf1e[_0x3b02ea(0x1da)]('/');if(_0x36d970===-0x1)return{'parentId':_0x1caf1e};if(_0x36d970===0x0)throw new Error(_0x3b02ea(0x1d8)+_0x1caf1e+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x3a81b1=_0x1caf1e['substring'](0x0,_0x36d970),_0x44c3d3=_0x1caf1e[_0x3b02ea(0x1d4)](_0x36d970+0x1);if(_0x44c3d3==='')throw new Error(_0x3b02ea(0x1d8)+_0x1caf1e+_0x3b02ea(0x1de));return{'parentId':_0x3a81b1,'childId':_0x44c3d3};}
1
+ (function(_0x411433,_0x3ece76){const _0x276720=a60_0x6f3e,_0x1c2e0d=_0x411433();while(!![]){try{const _0x11613b=-parseInt(_0x276720(0xd4))/0x1+-parseInt(_0x276720(0xd2))/0x2*(-parseInt(_0x276720(0xd5))/0x3)+-parseInt(_0x276720(0xd9))/0x4+parseInt(_0x276720(0xdb))/0x5*(-parseInt(_0x276720(0xd1))/0x6)+parseInt(_0x276720(0xcf))/0x7*(parseInt(_0x276720(0xd3))/0x8)+parseInt(_0x276720(0xd7))/0x9+parseInt(_0x276720(0xd0))/0xa;if(_0x11613b===_0x3ece76)break;else _0x1c2e0d['push'](_0x1c2e0d['shift']());}catch(_0x3891da){_0x1c2e0d['push'](_0x1c2e0d['shift']());}}}(a60_0x4410,0xc3585));function a60_0x6f3e(_0xa75fa4,_0x3abc05){const _0x441096=a60_0x4410();return a60_0x6f3e=function(_0x6f3e9e,_0x7ad157){_0x6f3e9e=_0x6f3e9e-0xcf;let _0x79d286=_0x441096[_0x6f3e9e];return _0x79d286;},a60_0x6f3e(_0xa75fa4,_0x3abc05);}function a60_0x4410(){const _0x73cb0=['81080zlUUBl','165957iIHFjA','443829zIbaHX','.\x20Child\x20name\x20cannot\x20be\x20empty','13062879CggnHQ','Invalid\x20segment\x20reference\x20format:\x20','5864360wCeNHP','substring','2621470jzSXDF','indexOf','98YWMWqG','7039030FJEglD','12iTZAtX','16BTYeQI'];a60_0x4410=function(){return _0x73cb0;};return a60_0x4410();}export function parseSegmentRef(_0x3fbd06){const _0x4cb51d=a60_0x6f3e,_0x185349=_0x3fbd06[_0x4cb51d(0xdc)]('/');if(_0x185349===-0x1)return{'parentId':_0x3fbd06};if(_0x185349===0x0)throw new Error(_0x4cb51d(0xd8)+_0x3fbd06+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x27e614=_0x3fbd06[_0x4cb51d(0xda)](0x0,_0x185349),_0x315315=_0x3fbd06['substring'](_0x185349+0x1);if(_0x315315==='')throw new Error(_0x4cb51d(0xd8)+_0x3fbd06+_0x4cb51d(0xd6));return{'parentId':_0x27e614,'childId':_0x315315};}
@@ -1 +1 @@
1
- (function(_0x1ea661,_0x2a3938){const _0x1af6cc=a61_0x4c19,_0x49cb21=_0x1ea661();while(!![]){try{const _0x20c9a0=-parseInt(_0x1af6cc(0x1b1))/0x1+-parseInt(_0x1af6cc(0x1b2))/0x2*(-parseInt(_0x1af6cc(0x1bc))/0x3)+parseInt(_0x1af6cc(0x1b0))/0x4*(parseInt(_0x1af6cc(0x1b3))/0x5)+-parseInt(_0x1af6cc(0x1ae))/0x6*(parseInt(_0x1af6cc(0x1b5))/0x7)+parseInt(_0x1af6cc(0x1b6))/0x8*(-parseInt(_0x1af6cc(0x1c0))/0x9)+parseInt(_0x1af6cc(0x1bf))/0xa*(-parseInt(_0x1af6cc(0x1bd))/0xb)+parseInt(_0x1af6cc(0x1c4))/0xc;if(_0x20c9a0===_0x2a3938)break;else _0x49cb21['push'](_0x49cb21['shift']());}catch(_0x524d36){_0x49cb21['push'](_0x49cb21['shift']());}}}(a61_0x363e,0x922da));import a61_0x51e41c from'ora';export function createCommandSpinner(_0x518fff,_0xf3d863={}){const _0x1b5fd8=a61_0x4c19,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xf3d863;return a61_0x51e41c({'text':_0x518fff,'color':'cyan','isEnabled':forceEnabled||process[_0x1b5fd8(0x1bb)]['isTTY']&&!verbose});}export async function withSpinner(_0x3089b6,_0x3a66cb,_0x4e6b5e={}){const _0x10197=a61_0x4c19,_0x32c974=_0x4e6b5e[_0x10197(0x1af)]??(()=>Date[_0x10197(0x1b8)]()),_0x21ed44=createCommandSpinner(_0x3089b6,_0x4e6b5e);_0x21ed44[_0x10197(0x1ba)]();const _0x1b32d5=_0x32c974();try{const _0x2e3794=await _0x3a66cb(),_0x15b69d=_0x32c974()-_0x1b32d5;return _0x21ed44[_0x10197(0x1c1)](),{'data':_0x2e3794,'elapsedMs':_0x15b69d};}catch(_0x1c7b3b){_0x21ed44[_0x10197(0x1c1)]();throw _0x1c7b3b;}}function a61_0x4c19(_0x596179,_0x4ce355){const _0x363e38=a61_0x363e();return a61_0x4c19=function(_0x4c195e,_0x533074){_0x4c195e=_0x4c195e-0x1ae;let _0x238ac5=_0x363e38[_0x4c195e];return _0x238ac5;},a61_0x4c19(_0x596179,_0x4ce355);}export async function withQuerySpinner(_0xbd417f,_0x3b6071,_0x2bcf12={}){const _0x2eebf2=a61_0x4c19,_0x400d45=_0x2bcf12['clock']??(()=>Date[_0x2eebf2(0x1b8)]()),_0x5ee16c=_0x2bcf12[_0x2eebf2(0x1b9)]??setInterval,_0x21c002=createCommandSpinner(_0xbd417f,_0x2bcf12);_0x21c002[_0x2eebf2(0x1ba)]();const _0x449429=_0x400d45(),_0x32e9fc=_0xbd417f['replace'](_0x2eebf2(0x1c2),''),_0x351796={},_0x591c2d=()=>{const _0x21da69=_0x2eebf2;if(!_0x21c002['isSpinning'])return;const _0x4deba9=((_0x400d45()-_0x449429)/0x3e8)['toFixed'](0x1),_0x384011=_0x351796[_0x21da69(0x1b4)]??_0x32e9fc,_0x17bf33=_0x351796[_0x21da69(0x1be)]?_0x21da69(0x1b7)+_0x351796['jobId']+']':'',_0x4fba3e=_0x351796[_0x21da69(0x1c3)]?'\x20'+_0x351796[_0x21da69(0x1c3)]:'';_0x21c002['text']=_0x384011+'\x20('+_0x4deba9+'s)'+_0x4fba3e+_0x17bf33;},_0x818d65=_0x5ee16c(()=>{_0x591c2d();},0x3e8),_0x316cd8={'setPhase':_0x4c4cca=>{const _0x1a7a23=_0x2eebf2;_0x351796[_0x1a7a23(0x1b4)]=_0x4c4cca,_0x591c2d();},'setJobId':_0x22a4ff=>{const _0x3ce163=_0x2eebf2;_0x351796[_0x3ce163(0x1be)]=_0x22a4ff,_0x591c2d();},'setExtra':_0x4551d2=>{const _0x2f8513=_0x2eebf2;_0x351796[_0x2f8513(0x1c3)]=_0x4551d2,_0x591c2d();}};_0x591c2d();try{const _0x29eaee=await _0x3b6071(_0x316cd8),_0x371f02=_0x400d45()-_0x449429;return{'data':_0x29eaee,'elapsedMs':_0x371f02};}finally{clearInterval(_0x818d65),_0x21c002['stop']();}}export function formatElapsed(_0x105127){return(_0x105127/0x3e8)['toFixed'](0x2)+'s';}function a61_0x363e(){const _0x13a355=['649810MtdhFt','2CVvIKV','315AOmlEG','phase','7lrrgaN','8xExIMU','\x20[Job\x20ID:\x20','now','intervalFactory','start','stdout','801018DeUGou','1408583ZadRYv','jobId','30GOUPcZ','6956811PWsfxf','stop','...','extra','30663456vmWIux','4478052VcegzT','clock','20936XXiQUG'];a61_0x363e=function(){return _0x13a355;};return a61_0x363e();}
1
+ (function(_0x429848,_0xafc38d){const _0x596440=a61_0x2a15,_0x463ec8=_0x429848();while(!![]){try{const _0x595441=parseInt(_0x596440(0x19b))/0x1*(parseInt(_0x596440(0x1a4))/0x2)+-parseInt(_0x596440(0x193))/0x3*(parseInt(_0x596440(0x1a8))/0x4)+-parseInt(_0x596440(0x192))/0x5*(-parseInt(_0x596440(0x1a1))/0x6)+-parseInt(_0x596440(0x196))/0x7+-parseInt(_0x596440(0x19c))/0x8+-parseInt(_0x596440(0x191))/0x9*(-parseInt(_0x596440(0x19d))/0xa)+-parseInt(_0x596440(0x197))/0xb*(-parseInt(_0x596440(0x19a))/0xc);if(_0x595441===_0xafc38d)break;else _0x463ec8['push'](_0x463ec8['shift']());}catch(_0x2fd0e8){_0x463ec8['push'](_0x463ec8['shift']());}}}(a61_0x3156,0xb42d4));function a61_0x3156(){const _0x556759=['extra','1538184FaqWwn','stdout','5949HnXvaL','65xLUXTj','6HkvUeE','isSpinning','now','334523iCjLSj','1485ofsKGI','clock','start','2124eXyMwT','7TAsUOp','6041456yrRmlB','13900KidbKF','cyan','stop','jobId','474294BuSrPT','phase','replace','97070YdGmFI','...','toFixed'];a61_0x3156=function(){return _0x556759;};return a61_0x3156();}import a61_0x59adaa from'ora';function a61_0x2a15(_0x1fc10d,_0x2e570e){const _0x315608=a61_0x3156();return a61_0x2a15=function(_0x2a15f0,_0x5870c4){_0x2a15f0=_0x2a15f0-0x191;let _0x2dae6a=_0x315608[_0x2a15f0];return _0x2dae6a;},a61_0x2a15(_0x1fc10d,_0x2e570e);}export function createCommandSpinner(_0x1a8b72,_0x39afdc={}){const _0x4ad8d2=a61_0x2a15,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x39afdc;return a61_0x59adaa({'text':_0x1a8b72,'color':_0x4ad8d2(0x19e),'isEnabled':forceEnabled||process[_0x4ad8d2(0x1a9)]['isTTY']&&!verbose});}export async function withSpinner(_0x3606af,_0x1746db,_0x1b278b={}){const _0x1227dc=a61_0x2a15,_0x4ec56e=_0x1b278b[_0x1227dc(0x198)]??(()=>Date[_0x1227dc(0x195)]()),_0x545ada=createCommandSpinner(_0x3606af,_0x1b278b);_0x545ada[_0x1227dc(0x199)]();const _0x320611=_0x4ec56e();try{const _0xe074e4=await _0x1746db(),_0x2b659b=_0x4ec56e()-_0x320611;return _0x545ada[_0x1227dc(0x19f)](),{'data':_0xe074e4,'elapsedMs':_0x2b659b};}catch(_0x3b749c){_0x545ada[_0x1227dc(0x19f)]();throw _0x3b749c;}}export async function withQuerySpinner(_0x1a806e,_0xf33241,_0xb79864={}){const _0x551384=a61_0x2a15,_0x3171e1=_0xb79864[_0x551384(0x198)]??(()=>Date[_0x551384(0x195)]()),_0x40d289=_0xb79864['intervalFactory']??setInterval,_0x318949=createCommandSpinner(_0x1a806e,_0xb79864);_0x318949[_0x551384(0x199)]();const _0x1e59e1=_0x3171e1(),_0x37164f=_0x1a806e[_0x551384(0x1a3)](_0x551384(0x1a5),''),_0x3faf58={},_0x51bbd4=()=>{const _0x8692c9=_0x551384;if(!_0x318949[_0x8692c9(0x194)])return;const _0x313a55=((_0x3171e1()-_0x1e59e1)/0x3e8)[_0x8692c9(0x1a6)](0x1),_0x50d448=_0x3faf58['phase']??_0x37164f,_0x4569a0=_0x3faf58[_0x8692c9(0x1a0)]?'\x20[Job\x20ID:\x20'+_0x3faf58[_0x8692c9(0x1a0)]+']':'',_0xbe17be=_0x3faf58['extra']?'\x20'+_0x3faf58[_0x8692c9(0x1a7)]:'';_0x318949['text']=_0x50d448+'\x20('+_0x313a55+'s)'+_0xbe17be+_0x4569a0;},_0x5a10c8=_0x40d289(()=>{_0x51bbd4();},0x3e8),_0x9269ca={'setPhase':_0x37f1bd=>{const _0x444897=_0x551384;_0x3faf58[_0x444897(0x1a2)]=_0x37f1bd,_0x51bbd4();},'setJobId':_0x5c8c5a=>{const _0x45371a=_0x551384;_0x3faf58[_0x45371a(0x1a0)]=_0x5c8c5a,_0x51bbd4();},'setExtra':_0x269e4f=>{const _0x1bfd9c=_0x551384;_0x3faf58[_0x1bfd9c(0x1a7)]=_0x269e4f,_0x51bbd4();}};_0x51bbd4();try{const _0x3f1d94=await _0xf33241(_0x9269ca),_0x3a31b2=_0x3171e1()-_0x1e59e1;return{'data':_0x3f1d94,'elapsedMs':_0x3a31b2};}finally{clearInterval(_0x5a10c8),_0x318949[_0x551384(0x19f)]();}}export function formatElapsed(_0x27d099){return(_0x27d099/0x3e8)['toFixed'](0x2)+'s';}
@@ -1 +1 @@
1
- (function(_0x5ec5a2,_0x141149){const _0x2ce370=a62_0x3dae,_0xe4ec0=_0x5ec5a2();while(!![]){try{const _0xc7f05d=-parseInt(_0x2ce370(0xd2))/0x1+-parseInt(_0x2ce370(0xd1))/0x2+parseInt(_0x2ce370(0xd9))/0x3+parseInt(_0x2ce370(0xc8))/0x4*(-parseInt(_0x2ce370(0xdf))/0x5)+parseInt(_0x2ce370(0xd3))/0x6*(-parseInt(_0x2ce370(0xd0))/0x7)+-parseInt(_0x2ce370(0xce))/0x8+parseInt(_0x2ce370(0xdd))/0x9;if(_0xc7f05d===_0x141149)break;else _0xe4ec0['push'](_0xe4ec0['shift']());}catch(_0x1980e5){_0xe4ec0['push'](_0xe4ec0['shift']());}}}(a62_0x6b4c,0x64bb5));import{readFileSync}from'fs';function a62_0x3dae(_0x1099f4,_0x321ee0){const _0x6b4c78=a62_0x6b4c();return a62_0x3dae=function(_0x3dae9e,_0x163698){_0x3dae9e=_0x3dae9e-0xc8;let _0x1131f3=_0x6b4c78[_0x3dae9e];return _0x1131f3;},a62_0x3dae(_0x1099f4,_0x321ee0);}export function stripSqlComments(_0x3a6405){const _0x2a8965=a62_0x3dae;let _0x3c332e=_0x3a6405[_0x2a8965(0xca)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3c332e=_0x3c332e['replace'](/--.*$/gm,''),_0x3c332e['trim']();}function isEscaped(_0x5d9b40,_0x445f2d){let _0x5553aa=0x0;for(let _0x139e33=_0x445f2d-0x1;_0x139e33>=0x0&&_0x5d9b40[_0x139e33]==='\x5c';_0x139e33--){_0x5553aa++;}return _0x5553aa%0x2===0x1;}function a62_0x6b4c(){const _0x41ea0e=['Content\x20contains\x20no\x20SQL\x20statements','1330896bdZoEt','map','381500DNYuiA','1126646vgaHEV','485926pEkQXm','6Wznnnp','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','filter','utf-8','trim','1056015umVHYi','\x27\x20not\x20found','code','length','14574483Mzdqlv','Error\x20reading\x20file\x20\x27','270hDjXzb','File\x20\x27','21384yPAGiI','EACCES','replace','\x27:\x20','push'];a62_0x6b4c=function(){return _0x41ea0e;};return a62_0x6b4c();}export function splitSqlStatements(_0x509891){const _0x2e8677=a62_0x3dae,_0x2e32e4=stripSqlComments(_0x509891);if(!_0x2e32e4)throw new Error(_0x2e8677(0xcd));const _0x18b104=[];let _0x5d71c4='',_0x227a80=![],_0x1b23bd=![],_0x5d951d=![];for(let _0x7dfb0d=0x0;_0x7dfb0d<_0x509891[_0x2e8677(0xdc)];_0x7dfb0d++){const _0x29d0d1=_0x509891[_0x7dfb0d];if(_0x29d0d1==='\x27'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x1b23bd&&!_0x5d951d)_0x227a80=!_0x227a80;else{if(_0x29d0d1==='\x22'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x5d951d)_0x1b23bd=!_0x1b23bd;else _0x29d0d1==='`'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x1b23bd&&(_0x5d951d=!_0x5d951d);}if(_0x29d0d1===';'&&!_0x227a80&&!_0x1b23bd&&!_0x5d951d){const _0x199568=_0x5d71c4[_0x2e8677(0xd8)]();_0x199568&&_0x18b104[_0x2e8677(0xcc)](_0x199568),_0x5d71c4='';}else _0x5d71c4+=_0x29d0d1;}const _0x434ae4=_0x5d71c4['trim']();_0x434ae4&&_0x18b104[_0x2e8677(0xcc)](_0x434ae4);const _0x2e79a9=_0x18b104[_0x2e8677(0xcf)](_0x5b9ff1=>_0x5b9ff1[_0x2e8677(0xd8)]())[_0x2e8677(0xd6)](_0x109912=>{const _0x3dc3d9=stripSqlComments(_0x109912);return _0x3dc3d9['length']>0x0;});if(_0x2e79a9[_0x2e8677(0xdc)]===0x0)throw new Error(_0x2e8677(0xcd));return _0x2e79a9;}export function readFileContent(_0x359c9d){const _0x5728c0=a62_0x3dae;try{return readFileSync(_0x359c9d,_0x5728c0(0xd7));}catch(_0x23c791){const _0x3bce94=_0x23c791[_0x5728c0(0xdb)];if(_0x3bce94===_0x5728c0(0xd4))throw new Error(_0x5728c0(0xe0)+_0x359c9d+_0x5728c0(0xda));else{if(_0x3bce94===_0x5728c0(0xc9))throw new Error(_0x5728c0(0xd5)+_0x359c9d+'\x27');else throw new Error(_0x5728c0(0xde)+_0x359c9d+_0x5728c0(0xcb)+_0x23c791['message']);}}}export function readSqlStatementsFromFile(_0xc38489){const _0x4ff0e9=a62_0x3dae,_0x411f3=readFileContent(_0xc38489);try{return splitSqlStatements(_0x411f3);}catch(_0x4824da){throw new Error(_0x4ff0e9(0xe0)+_0xc38489+'\x27\x20'+_0x4824da['message']['toLowerCase']());}}
1
+ function a62_0xb9e2(_0x173b4e,_0x5548fb){const _0x15b1d0=a62_0x15b1();return a62_0xb9e2=function(_0xb9e2db,_0x302f52){_0xb9e2db=_0xb9e2db-0x1e5;let _0x5acf2d=_0x15b1d0[_0xb9e2db];return _0x5acf2d;},a62_0xb9e2(_0x173b4e,_0x5548fb);}(function(_0x191d87,_0x74cd1b){const _0x1a2c6f=a62_0xb9e2,_0x4cc8b2=_0x191d87();while(!![]){try{const _0x3585c0=parseInt(_0x1a2c6f(0x1ef))/0x1+parseInt(_0x1a2c6f(0x1e8))/0x2+-parseInt(_0x1a2c6f(0x1f9))/0x3*(parseInt(_0x1a2c6f(0x1fa))/0x4)+-parseInt(_0x1a2c6f(0x1ed))/0x5+parseInt(_0x1a2c6f(0x1f4))/0x6*(-parseInt(_0x1a2c6f(0x1ec))/0x7)+parseInt(_0x1a2c6f(0x1eb))/0x8+-parseInt(_0x1a2c6f(0x1f5))/0x9*(-parseInt(_0x1a2c6f(0x1e9))/0xa);if(_0x3585c0===_0x74cd1b)break;else _0x4cc8b2['push'](_0x4cc8b2['shift']());}catch(_0x1c36dc){_0x4cc8b2['push'](_0x4cc8b2['shift']());}}}(a62_0x15b1,0xec670));import{readFileSync}from'fs';export function stripSqlComments(_0xeb8948){const _0x5b1cf1=a62_0xb9e2;let _0x3501f1=_0xeb8948[_0x5b1cf1(0x1f6)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3501f1=_0x3501f1[_0x5b1cf1(0x1f6)](/--.*$/gm,''),_0x3501f1[_0x5b1cf1(0x1e5)]();}function isEscaped(_0x57e5d6,_0x333dc0){let _0x369d9f=0x0;for(let _0x51e756=_0x333dc0-0x1;_0x51e756>=0x0&&_0x57e5d6[_0x51e756]==='\x5c';_0x51e756--){_0x369d9f++;}return _0x369d9f%0x2===0x1;}export function splitSqlStatements(_0x4c77d6){const _0x3e96fe=a62_0xb9e2,_0x380ec5=stripSqlComments(_0x4c77d6);if(!_0x380ec5)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x5384f0=[];let _0x5c19f8='',_0x511e85=![],_0xb38465=![],_0x580713=![];for(let _0x5c915f=0x0;_0x5c915f<_0x4c77d6['length'];_0x5c915f++){const _0x339b6c=_0x4c77d6[_0x5c915f];if(_0x339b6c==='\x27'&&!isEscaped(_0x4c77d6,_0x5c915f)&&!_0xb38465&&!_0x580713)_0x511e85=!_0x511e85;else{if(_0x339b6c==='\x22'&&!isEscaped(_0x4c77d6,_0x5c915f)&&!_0x511e85&&!_0x580713)_0xb38465=!_0xb38465;else _0x339b6c==='`'&&!isEscaped(_0x4c77d6,_0x5c915f)&&!_0x511e85&&!_0xb38465&&(_0x580713=!_0x580713);}if(_0x339b6c===';'&&!_0x511e85&&!_0xb38465&&!_0x580713){const _0x503538=_0x5c19f8[_0x3e96fe(0x1e5)]();_0x503538&&_0x5384f0[_0x3e96fe(0x1f1)](_0x503538),_0x5c19f8='';}else _0x5c19f8+=_0x339b6c;}const _0x3a5a99=_0x5c19f8[_0x3e96fe(0x1e5)]();_0x3a5a99&&_0x5384f0[_0x3e96fe(0x1f1)](_0x3a5a99);const _0x3d317e=_0x5384f0['map'](_0x3c0bcb=>_0x3c0bcb[_0x3e96fe(0x1e5)]())['filter'](_0x1bd0a3=>{const _0x5d97da=_0x3e96fe,_0x175b7b=stripSqlComments(_0x1bd0a3);return _0x175b7b[_0x5d97da(0x1f7)]>0x0;});if(_0x3d317e[_0x3e96fe(0x1f7)]===0x0)throw new Error(_0x3e96fe(0x1ea));return _0x3d317e;}function a62_0x15b1(){const _0x2680e1=['toLowerCase','EACCES','1832872LeqlVo','1770HxEFrK','Content\x20contains\x20no\x20SQL\x20statements','10006056tPwPjJ','1449oMRIwt','2462855IHlHbe','ENOENT','978910zfbdSx','message','push','Permission\x20denied\x20reading\x20file\x20\x27','File\x20\x27','53406orjPjp','74484hCwifn','replace','length','utf-8','69PQFewv','227404gyJxSx','trim'];a62_0x15b1=function(){return _0x2680e1;};return a62_0x15b1();}export function readFileContent(_0x5e0e54){const _0x7bce5=a62_0xb9e2;try{return readFileSync(_0x5e0e54,_0x7bce5(0x1f8));}catch(_0x5c1ba6){const _0x327d96=_0x5c1ba6['code'];if(_0x327d96===_0x7bce5(0x1ee))throw new Error(_0x7bce5(0x1f3)+_0x5e0e54+'\x27\x20not\x20found');else{if(_0x327d96===_0x7bce5(0x1e7))throw new Error(_0x7bce5(0x1f2)+_0x5e0e54+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x5e0e54+'\x27:\x20'+_0x5c1ba6[_0x7bce5(0x1f0)]);}}}export function readSqlStatementsFromFile(_0x3de3ca){const _0x1c7b27=a62_0xb9e2,_0x3477f9=readFileContent(_0x3de3ca);try{return splitSqlStatements(_0x3477f9);}catch(_0x3eca1a){throw new Error('File\x20\x27'+_0x3de3ca+'\x27\x20'+_0x3eca1a[_0x1c7b27(0x1f0)][_0x1c7b27(0x1e6)]());}}
@@ -1 +1 @@
1
- function a63_0x41ff(){const _0x41c717=['814737GHoBPj','trim','Response\x20body\x20is\x20null','releaseLock','data','event','2345136nCzMiO','51650EVeyYo','decode','12OmgWzu','78572bCmqif','slice','5662300YRUUcu','997650LbBsNa','split','1509RKQPJe','startsWith','body','pop','524lMVtmY','40AWJPUE','read','parse'];a63_0x41ff=function(){return _0x41c717;};return a63_0x41ff();}(function(_0x4c44e6,_0x52c48d){const _0x35125a=a63_0x3b51,_0x20c835=_0x4c44e6();while(!![]){try{const _0x4f71b1=parseInt(_0x35125a(0x119))/0x1+parseInt(_0x35125a(0x125))/0x2*(-parseInt(_0x35125a(0x121))/0x3)+-parseInt(_0x35125a(0x11c))/0x4*(parseInt(_0x35125a(0x126))/0x5)+-parseInt(_0x35125a(0x11b))/0x6*(-parseInt(_0x35125a(0x129))/0x7)+-parseInt(_0x35125a(0x118))/0x8+-parseInt(_0x35125a(0x11f))/0x9+parseInt(_0x35125a(0x11e))/0xa;if(_0x4f71b1===_0x52c48d)break;else _0x20c835['push'](_0x20c835['shift']());}catch(_0x4b61d8){_0x20c835['push'](_0x20c835['shift']());}}}(a63_0x41ff,0x2682c));export async function*parseSSEStream(_0x35a735){const _0x3e755f=a63_0x3b51;if(!_0x35a735['body'])throw new Error(_0x3e755f(0x12b));const _0x2550df=_0x35a735[_0x3e755f(0x123)]['getReader'](),_0x23b05a=new TextDecoder();let _0x2d3e66='',_0xe288da={};try{while(!![]){const {done:_0x16246e,value:_0x4a7280}=await _0x2550df[_0x3e755f(0x127)]();if(_0x16246e){_0xe288da[_0x3e755f(0x12d)]&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]));break;}_0x2d3e66+=_0x23b05a[_0x3e755f(0x11a)](_0x4a7280,{'stream':!![]});const _0x5d0aef=_0x2d3e66[_0x3e755f(0x120)]('\x0a');_0x2d3e66=_0x5d0aef[_0x3e755f(0x124)]()||'';for(const _0x1c60ea of _0x5d0aef){if(_0x1c60ea[_0x3e755f(0x12a)]()===''){_0xe288da['data']&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]),_0xe288da={});continue;}if(_0x1c60ea[_0x3e755f(0x122)](':'))continue;const _0x5f3e1a=_0x1c60ea['indexOf'](':');if(_0x5f3e1a===-0x1)continue;const _0x1719b6=_0x1c60ea[_0x3e755f(0x11d)](0x0,_0x5f3e1a);let _0x48c392=_0x1c60ea[_0x3e755f(0x11d)](_0x5f3e1a+0x1);_0x48c392['startsWith']('\x20')&&(_0x48c392=_0x48c392[_0x3e755f(0x11d)](0x1));switch(_0x1719b6){case _0x3e755f(0x117):_0xe288da['event']=_0x48c392;break;case _0x3e755f(0x12d):_0xe288da['data']=_0xe288da[_0x3e755f(0x12d)]?_0xe288da[_0x3e755f(0x12d)]+'\x0a'+_0x48c392:_0x48c392;break;case'id':_0xe288da['id']=_0x48c392;break;}}}}finally{_0x2550df[_0x3e755f(0x12c)]();}}function a63_0x3b51(_0x5665d1,_0xc95071){const _0x41ffa5=a63_0x41ff();return a63_0x3b51=function(_0x3b51f1,_0x5e8735){_0x3b51f1=_0x3b51f1-0x117;let _0x4ad385=_0x41ffa5[_0x3b51f1];return _0x4ad385;},a63_0x3b51(_0x5665d1,_0xc95071);}function parseSSEData(_0x4b3ab7){const _0x833b43=a63_0x3b51;try{return JSON[_0x833b43(0x128)](_0x4b3ab7);}catch(_0x130dd5){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x4b3ab7,{'cause':_0x130dd5});}}
1
+ function a63_0x3333(){const _0x3cf30c=['4595805VzGCcl','444160ACmXle','data','trim','74804NmVnmY','startsWith','Response\x20body\x20is\x20null','2407944asRwZz','33380dsBfGg','874300olRGBe','8heaaAq','39SSVzoy','getReader','decode','slice','484392KUBPCl','event','body','split'];a63_0x3333=function(){return _0x3cf30c;};return a63_0x3333();}function a63_0x38bf(_0x4d3dc8,_0xc5a083){const _0x333315=a63_0x3333();return a63_0x38bf=function(_0x38bf3a,_0x613cac){_0x38bf3a=_0x38bf3a-0x11b;let _0x8d6afd=_0x333315[_0x38bf3a];return _0x8d6afd;},a63_0x38bf(_0x4d3dc8,_0xc5a083);}(function(_0x2334e9,_0x5e09b0){const _0x18c866=a63_0x38bf,_0x466317=_0x2334e9();while(!![]){try{const _0x521f1a=-parseInt(_0x18c866(0x11b))/0x1*(-parseInt(_0x18c866(0x128))/0x2)+-parseInt(_0x18c866(0x11c))/0x3*(-parseInt(_0x18c866(0x12c))/0x4)+-parseInt(_0x18c866(0x12d))/0x5+parseInt(_0x18c866(0x120))/0x6+parseInt(_0x18c866(0x12b))/0x7+parseInt(_0x18c866(0x125))/0x8+-parseInt(_0x18c866(0x124))/0x9;if(_0x521f1a===_0x5e09b0)break;else _0x466317['push'](_0x466317['shift']());}catch(_0x543041){_0x466317['push'](_0x466317['shift']());}}}(a63_0x3333,0x316c8));export async function*parseSSEStream(_0x42030e){const _0x290739=a63_0x38bf;if(!_0x42030e['body'])throw new Error(_0x290739(0x12a));const _0x2cb104=_0x42030e[_0x290739(0x122)][_0x290739(0x11d)](),_0x6dee17=new TextDecoder();let _0x3e749d='',_0x416d69={};try{while(!![]){const {done:_0x258c36,value:_0x5aea24}=await _0x2cb104['read']();if(_0x258c36){_0x416d69[_0x290739(0x126)]&&(yield parseSSEData(_0x416d69['data']));break;}_0x3e749d+=_0x6dee17[_0x290739(0x11e)](_0x5aea24,{'stream':!![]});const _0x409680=_0x3e749d[_0x290739(0x123)]('\x0a');_0x3e749d=_0x409680['pop']()||'';for(const _0x507755 of _0x409680){if(_0x507755[_0x290739(0x127)]()===''){_0x416d69[_0x290739(0x126)]&&(yield parseSSEData(_0x416d69['data']),_0x416d69={});continue;}if(_0x507755[_0x290739(0x129)](':'))continue;const _0x245c80=_0x507755['indexOf'](':');if(_0x245c80===-0x1)continue;const _0x1acd5a=_0x507755['slice'](0x0,_0x245c80);let _0x921d64=_0x507755[_0x290739(0x11f)](_0x245c80+0x1);_0x921d64[_0x290739(0x129)]('\x20')&&(_0x921d64=_0x921d64[_0x290739(0x11f)](0x1));switch(_0x1acd5a){case _0x290739(0x121):_0x416d69[_0x290739(0x121)]=_0x921d64;break;case _0x290739(0x126):_0x416d69[_0x290739(0x126)]=_0x416d69[_0x290739(0x126)]?_0x416d69[_0x290739(0x126)]+'\x0a'+_0x921d64:_0x921d64;break;case'id':_0x416d69['id']=_0x921d64;break;}}}}finally{_0x2cb104['releaseLock']();}}function parseSSEData(_0x428055){try{return JSON['parse'](_0x428055);}catch(_0x4c7059){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x428055,{'cause':_0x4c7059});}}
@@ -1 +1 @@
1
- (function(_0x12e14e,_0x491923){const _0x50beed=a64_0x45d6,_0x1fa30c=_0x12e14e();while(!![]){try{const _0x31be64=parseInt(_0x50beed(0xe9))/0x1*(-parseInt(_0x50beed(0xf6))/0x2)+parseInt(_0x50beed(0xec))/0x3+parseInt(_0x50beed(0xf4))/0x4+-parseInt(_0x50beed(0xe5))/0x5+parseInt(_0x50beed(0xf0))/0x6*(parseInt(_0x50beed(0xe3))/0x7)+-parseInt(_0x50beed(0xe8))/0x8*(-parseInt(_0x50beed(0xf7))/0x9)+-parseInt(_0x50beed(0xf1))/0xa;if(_0x31be64===_0x491923)break;else _0x1fa30c['push'](_0x1fa30c['shift']());}catch(_0x48e592){_0x1fa30c['push'](_0x1fa30c['shift']());}}}(a64_0x7fe1,0x6bbcb));import a64_0x29fce1 from'string-width';export function stringWidth(_0xc75a94){return a64_0x29fce1(_0xc75a94);}export function padEnd(_0x8995c,_0x40b663){const _0x1edd8e=a64_0x45d6,_0x3f90d7=stringWidth(_0x8995c);if(_0x3f90d7>=_0x40b663)return _0x8995c;return _0x8995c+'\x20'[_0x1edd8e(0xeb)](_0x40b663-_0x3f90d7);}export function padStart(_0x7cf8e6,_0x521608){const _0x429a30=a64_0x45d6,_0x459256=stringWidth(_0x7cf8e6);if(_0x459256>=_0x521608)return _0x7cf8e6;return'\x20'[_0x429a30(0xeb)](_0x521608-_0x459256)+_0x7cf8e6;}export function centerAlign(_0xf5783b,_0x257bdc){const _0x539f15=a64_0x45d6,_0x5a8824=stringWidth(_0xf5783b);if(_0x5a8824>_0x257bdc){if(_0x257bdc<=0x1)return'…'[_0x539f15(0xe7)](0x0,_0x257bdc);let _0x3c6e29=_0xf5783b;while(stringWidth(_0x3c6e29+'…')>_0x257bdc){_0x3c6e29=_0x3c6e29[_0x539f15(0xed)](0x0,-0x1);}return _0x3c6e29+'…';}if(_0x5a8824===_0x257bdc)return _0xf5783b;const _0x258cba=_0x257bdc-_0x5a8824,_0xdc2970=Math[_0x539f15(0xf5)](_0x258cba/0x2),_0x3125d9=_0x258cba-_0xdc2970;return'\x20'[_0x539f15(0xeb)](_0xdc2970)+_0xf5783b+'\x20'[_0x539f15(0xeb)](_0x3125d9);}export function escapeStringLiteral(_0xbe962c){const _0x3a2013=a64_0x45d6;if(!_0xbe962c||_0xbe962c[_0x3a2013(0xf2)]()[_0x3a2013(0xe6)]===0x0)throw new Error(_0x3a2013(0xea));const _0x216fe4=_0xbe962c['replace'](/'/g,'\x27\x27');return'\x27'+_0x216fe4+'\x27';}export function globToLike(_0x6bc07f){const _0xf101cd=a64_0x45d6;let _0x1a2f74=_0x6bc07f[_0xf101cd(0xef)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0xf101cd(0xef)](/_/g,'\x5c_');return _0x1a2f74=_0x1a2f74['replace'](/\*/g,'%')[_0xf101cd(0xef)](/\?/g,'_'),_0x1a2f74;}function a64_0x45d6(_0x23113c,_0x2423ab){const _0x7fe1a3=a64_0x7fe1();return a64_0x45d6=function(_0x45d6ba,_0x1c4991){_0x45d6ba=_0x45d6ba-0xe2;let _0x35a38c=_0x7fe1a3[_0x45d6ba];return _0x35a38c;},a64_0x45d6(_0x23113c,_0x2423ab);}export function buildLikePattern(_0x392da0){const _0x5243c2=a64_0x45d6;if(!_0x392da0||_0x392da0[_0x5243c2(0xf2)]()[_0x5243c2(0xe6)]===0x0)throw new Error(_0x5243c2(0xf9));const _0xba0ec8=globToLike(_0x392da0),_0x1cc0af=_0xba0ec8[_0x5243c2(0xef)](/'/g,'\x27\x27');return'\x27'+_0x1cc0af+'\x27';}function a64_0x7fe1(){const _0x9f092c=['3269zfTlIG','unknown','1855515BkcYmY','length','substring','14480NNkEPq','1pnFnGE','Cannot\x20escape\x20empty\x20string\x20literal','repeat','801870SqaKzl','slice','USER','replace','1050UbppUZ','2645590FcnEoV','trim','toLowerCase','2382112UQnQWr','floor','173200yQNAVU','1089NDUjHa','toString','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','\x5c$&','env','random'];a64_0x7fe1=function(){return _0x9f092c;};return a64_0x7fe1();}export function matchGlobPattern(_0x12fc7f,_0x47aefa){const _0x88265e=a64_0x45d6,_0x9d6619=_0x47aefa['replace'](/[.+^${}()|[\]\\]/g,_0x88265e(0xfa))[_0x88265e(0xef)](/\*/g,'.*')[_0x88265e(0xef)](/\?/g,'.'),_0x4c7738=new RegExp('^'+_0x9d6619+'$');return _0x4c7738['test'](_0x12fc7f);}export function getSanitizedUsername(){const _0x47f6e7=a64_0x45d6,_0x2f6e61=process[_0x47f6e7(0xfb)][_0x47f6e7(0xee)]||process[_0x47f6e7(0xfb)]['USERNAME']||_0x47f6e7(0xe4);return _0x2f6e61['replace'](/[^a-zA-Z0-9]/g,'')[_0x47f6e7(0xf3)]();}export function generateRandomHex(){const _0x1441ec=a64_0x45d6,_0x59885f=Math[_0x1441ec(0xf5)](Math[_0x1441ec(0xe2)]()*0xfffff);return _0x59885f[_0x1441ec(0xf8)](0x10)['padStart'](0x5,'0');}
1
+ (function(_0x2fc60e,_0x37a191){const _0x583eb2=a64_0x11b4,_0x574df2=_0x2fc60e();while(!![]){try{const _0x3088b6=-parseInt(_0x583eb2(0xc5))/0x1*(parseInt(_0x583eb2(0xc7))/0x2)+parseInt(_0x583eb2(0xbc))/0x3*(-parseInt(_0x583eb2(0xbf))/0x4)+-parseInt(_0x583eb2(0xc2))/0x5*(-parseInt(_0x583eb2(0xcc))/0x6)+parseInt(_0x583eb2(0xc9))/0x7+parseInt(_0x583eb2(0xb3))/0x8+-parseInt(_0x583eb2(0xc6))/0x9+-parseInt(_0x583eb2(0xcb))/0xa*(parseInt(_0x583eb2(0xbb))/0xb);if(_0x3088b6===_0x37a191)break;else _0x574df2['push'](_0x574df2['shift']());}catch(_0x46fc3f){_0x574df2['push'](_0x574df2['shift']());}}}(a64_0x5d8b,0xc7f80));import a64_0x48f2fb from'string-width';export function stringWidth(_0x48290c){return a64_0x48f2fb(_0x48290c);}function a64_0x11b4(_0x3f4daa,_0x3339ed){const _0x5d8bd6=a64_0x5d8b();return a64_0x11b4=function(_0x11b4e8,_0x20e4e1){_0x11b4e8=_0x11b4e8-0xb3;let _0x3f7e62=_0x5d8bd6[_0x11b4e8];return _0x3f7e62;},a64_0x11b4(_0x3f4daa,_0x3339ed);}export function padEnd(_0x23f144,_0x28376b){const _0x5275f6=a64_0x11b4,_0x2e23e8=stringWidth(_0x23f144);if(_0x2e23e8>=_0x28376b)return _0x23f144;return _0x23f144+'\x20'[_0x5275f6(0xbe)](_0x28376b-_0x2e23e8);}export function padStart(_0x1d9b0b,_0x376058){const _0x195ada=a64_0x11b4,_0x4cf4e5=stringWidth(_0x1d9b0b);if(_0x4cf4e5>=_0x376058)return _0x1d9b0b;return'\x20'[_0x195ada(0xbe)](_0x376058-_0x4cf4e5)+_0x1d9b0b;}function a64_0x5d8b(){const _0x27352f=['unknown','padStart','replace','toString','11gtXHRf','78153REVFKu','env','repeat','152aenhTF','USERNAME','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','5HRLCOw','random','\x5c$&','230wXgRJo','305046GsCjEs','4038ivdFAv','test','7832223EiCYSU','USER','15764410KPAcBH','8334486DjcpnB','floor','11005960KCcrWw','trim','substring','length'];a64_0x5d8b=function(){return _0x27352f;};return a64_0x5d8b();}export function centerAlign(_0x4b6c45,_0xe3a707){const _0x44e86a=a64_0x11b4,_0x4d0fb0=stringWidth(_0x4b6c45);if(_0x4d0fb0>_0xe3a707){if(_0xe3a707<=0x1)return'…'[_0x44e86a(0xb5)](0x0,_0xe3a707);let _0x15e8f7=_0x4b6c45;while(stringWidth(_0x15e8f7+'…')>_0xe3a707){_0x15e8f7=_0x15e8f7['slice'](0x0,-0x1);}return _0x15e8f7+'…';}if(_0x4d0fb0===_0xe3a707)return _0x4b6c45;const _0x2aa90d=_0xe3a707-_0x4d0fb0,_0x160df3=Math[_0x44e86a(0xcd)](_0x2aa90d/0x2),_0x2fe523=_0x2aa90d-_0x160df3;return'\x20'[_0x44e86a(0xbe)](_0x160df3)+_0x4b6c45+'\x20'[_0x44e86a(0xbe)](_0x2fe523);}export function escapeStringLiteral(_0x4fded5){const _0xd1201e=a64_0x11b4;if(!_0x4fded5||_0x4fded5[_0xd1201e(0xb4)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x12b8be=_0x4fded5[_0xd1201e(0xb9)](/'/g,'\x27\x27');return'\x27'+_0x12b8be+'\x27';}export function globToLike(_0x18658f){const _0x20afd0=a64_0x11b4;let _0x4eb844=_0x18658f[_0x20afd0(0xb9)](/\\/g,'\x5c\x5c')[_0x20afd0(0xb9)](/%/g,'\x5c%')[_0x20afd0(0xb9)](/_/g,'\x5c_');return _0x4eb844=_0x4eb844[_0x20afd0(0xb9)](/\*/g,'%')['replace'](/\?/g,'_'),_0x4eb844;}export function buildLikePattern(_0x9379ee){const _0x46bfe9=a64_0x11b4;if(!_0x9379ee||_0x9379ee[_0x46bfe9(0xb4)]()[_0x46bfe9(0xb6)]===0x0)throw new Error(_0x46bfe9(0xc1));const _0x570403=globToLike(_0x9379ee),_0x3f9c1a=_0x570403[_0x46bfe9(0xb9)](/'/g,'\x27\x27');return'\x27'+_0x3f9c1a+'\x27';}export function matchGlobPattern(_0x2af1ee,_0x3b9d62){const _0x5a5a03=a64_0x11b4,_0x244b00=_0x3b9d62[_0x5a5a03(0xb9)](/[.+^${}()|[\]\\]/g,_0x5a5a03(0xc4))['replace'](/\*/g,'.*')['replace'](/\?/g,'.'),_0x429acc=new RegExp('^'+_0x244b00+'$');return _0x429acc[_0x5a5a03(0xc8)](_0x2af1ee);}export function getSanitizedUsername(){const _0x4327e7=a64_0x11b4,_0x5c1f0f=process['env'][_0x4327e7(0xca)]||process[_0x4327e7(0xbd)][_0x4327e7(0xc0)]||_0x4327e7(0xb7);return _0x5c1f0f[_0x4327e7(0xb9)](/[^a-zA-Z0-9]/g,'')['toLowerCase']();}export function generateRandomHex(){const _0x4c66a6=a64_0x11b4,_0x15e601=Math[_0x4c66a6(0xcd)](Math[_0x4c66a6(0xc3)]()*0xfffff);return _0x15e601[_0x4c66a6(0xba)](0x10)[_0x4c66a6(0xb8)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x718f2e,_0x55812d){const _0x2ec364=a65_0x3688,_0x1d25fe=_0x718f2e();while(!![]){try{const _0x294ce2=parseInt(_0x2ec364(0xdc))/0x1+parseInt(_0x2ec364(0xf1))/0x2+-parseInt(_0x2ec364(0xea))/0x3*(-parseInt(_0x2ec364(0xe7))/0x4)+parseInt(_0x2ec364(0xdb))/0x5*(-parseInt(_0x2ec364(0xe9))/0x6)+parseInt(_0x2ec364(0xde))/0x7*(parseInt(_0x2ec364(0xe0))/0x8)+-parseInt(_0x2ec364(0xe8))/0x9*(-parseInt(_0x2ec364(0xef))/0xa)+parseInt(_0x2ec364(0xe6))/0xb*(-parseInt(_0x2ec364(0xd9))/0xc);if(_0x294ce2===_0x55812d)break;else _0x1d25fe['push'](_0x1d25fe['shift']());}catch(_0x563f83){_0x1d25fe['push'](_0x1d25fe['shift']());}}}(a65_0x14ee,0xa819f));function hasWildcard(_0x4998dd){const _0x2fe276=a65_0x3688;return _0x4998dd['includes']('*')||_0x4998dd[_0x2fe276(0xeb)]('?');}export function parseTableReference(_0x1f49f1){const _0x90239c=a65_0x3688;if(!_0x1f49f1||_0x1f49f1['trim']()[_0x90239c(0xf4)]===0x0)throw new Error(_0x90239c(0xf3));const _0x407f25=_0x1f49f1[_0x90239c(0xe5)](),_0x31b174={'original':_0x407f25},_0x457ef7=_0x407f25['split']('.');if(_0x457ef7[_0x90239c(0xf4)]===0x1){const _0x49e94c=_0x457ef7[0x0];if(!_0x49e94c)throw new Error(_0x90239c(0xe3));_0x31b174[_0x90239c(0xe2)]=_0x49e94c;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x2){const [_0x3df38d,_0x8de70b]=_0x457ef7;if(!_0x3df38d)throw new Error(_0x90239c(0xdf));if(!_0x8de70b)throw new Error(_0x90239c(0xe4));_0x31b174[_0x90239c(0xec)]=_0x3df38d,_0x31b174['table']=_0x8de70b;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x3){const [_0x2d29f4,_0x56dfbd,_0x961bb8]=_0x457ef7;if(!_0x2d29f4||!_0x56dfbd||!_0x961bb8)throw new Error(_0x90239c(0xf2));_0x31b174[_0x90239c(0xf0)]=_0x2d29f4,_0x31b174[_0x90239c(0xec)]=_0x56dfbd,_0x31b174[_0x90239c(0xe2)]=_0x961bb8;}else throw new Error(_0x90239c(0xe1));}}return _0x31b174;}function a65_0x14ee(){const _0x174759=['Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','24uYlNnV','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','trim','1969aYrpGl','2596NSXuCA','520290BJjLnO','1332RckWme','6213hdecVx','includes','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','push','180hCLlcu','catalog','1870702UTTgFV','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','194316NvLCMB','join','15475mDxjZe','639371aFALEU','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','734531GyQCrk'];a65_0x14ee=function(){return _0x174759;};return a65_0x14ee();}function a65_0x3688(_0xc15304,_0x230ce7){const _0x14ee85=a65_0x14ee();return a65_0x3688=function(_0x3688fb,_0x50e550){_0x3688fb=_0x3688fb-0xd9;let _0x5bf910=_0x14ee85[_0x3688fb];return _0x5bf910;},a65_0x3688(_0xc15304,_0x230ce7);}export function formatTableReference(_0x56189f){const _0x5e055b=a65_0x3688,_0x30aad8=[];return _0x56189f[_0x5e055b(0xf0)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xf0)]),_0x56189f[_0x5e055b(0xec)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f['database']),_0x56189f['table']&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xe2)]),_0x30aad8[_0x5e055b(0xda)]('.');}export function validateTableListReference(_0x3a6255){return undefined;}export function validateTableDescribeReference(_0x14d490){const _0xbfb86c=a65_0x3688;if(!_0x14d490['table'])return _0xbfb86c(0xdd);if(_0x14d490[_0xbfb86c(0xec)]&&hasWildcard(_0x14d490[_0xbfb86c(0xec)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x14d490[_0xbfb86c(0xe2)]))return _0xbfb86c(0xed);return undefined;}
1
+ function a65_0x23ad(){const _0x3a9b32=['Table\x20name\x20is\x20required\x20for\x20describe\x20operation','419811Avwpvj','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','includes','414fEHRpd','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1276448ePfMlO','1660582lndsiH','47830owaZDt','5ogMDhL','length','split','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','6035232GohmXy','catalog','126cpfAja','769CHQlHX','48zWLkyQ','trim','66WlvJvx','613104mTGmeQ','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','push','database','join'];a65_0x23ad=function(){return _0x3a9b32;};return a65_0x23ad();}(function(_0x8f4e9a,_0x2021eb){const _0xfaa035=a65_0x432e,_0x5a7cc8=_0x8f4e9a();while(!![]){try{const _0x16e0de=parseInt(_0xfaa035(0xfd))/0x1*(-parseInt(_0xfaa035(0xfc))/0x2)+-parseInt(_0xfaa035(0x101))/0x3+parseInt(_0xfaa035(0x10d))/0x4*(-parseInt(_0xfaa035(0xf6))/0x5)+parseInt(_0xfaa035(0x100))/0x6*(parseInt(_0xfaa035(0x107))/0x7)+parseInt(_0xfaa035(0xfa))/0x8+parseInt(_0xfaa035(0x10b))/0x9*(parseInt(_0xfaa035(0xf5))/0xa)+parseInt(_0xfaa035(0xf4))/0xb*(-parseInt(_0xfaa035(0xfe))/0xc);if(_0x16e0de===_0x2021eb)break;else _0x5a7cc8['push'](_0x5a7cc8['shift']());}catch(_0x8a7513){_0x5a7cc8['push'](_0x5a7cc8['shift']());}}}(a65_0x23ad,0x6fe6e));function hasWildcard(_0x2a9992){const _0x40b651=a65_0x432e;return _0x2a9992[_0x40b651(0x10a)]('*')||_0x2a9992[_0x40b651(0x10a)]('?');}export function parseTableReference(_0x5856b8){const _0x46918d=a65_0x432e;if(!_0x5856b8||_0x5856b8[_0x46918d(0xff)]()[_0x46918d(0xf7)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x538c8b=_0x5856b8[_0x46918d(0xff)](),_0x1b096a={'original':_0x538c8b},_0x20f669=_0x538c8b[_0x46918d(0xf8)]('.');if(_0x20f669[_0x46918d(0xf7)]===0x1){const _0x21e9e3=_0x20f669[0x0];if(!_0x21e9e3)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x1b096a['table']=_0x21e9e3;}else{if(_0x20f669[_0x46918d(0xf7)]===0x2){const [_0x5e1220,_0x1573d7]=_0x20f669;if(!_0x5e1220)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x1573d7)throw new Error(_0x46918d(0xf9));_0x1b096a['database']=_0x5e1220,_0x1b096a[_0x46918d(0x109)]=_0x1573d7;}else{if(_0x20f669[_0x46918d(0xf7)]===0x3){const [_0x4da1de,_0x5a672c,_0x27df9d]=_0x20f669;if(!_0x4da1de||!_0x5a672c||!_0x27df9d)throw new Error(_0x46918d(0x102));_0x1b096a[_0x46918d(0xfb)]=_0x4da1de,_0x1b096a[_0x46918d(0x104)]=_0x5a672c,_0x1b096a[_0x46918d(0x109)]=_0x27df9d;}else throw new Error(_0x46918d(0x10c));}}return _0x1b096a;}export function formatTableReference(_0x20687a){const _0x3b749b=a65_0x432e,_0x83ecd9=[];return _0x20687a[_0x3b749b(0xfb)]&&_0x83ecd9['push'](_0x20687a['catalog']),_0x20687a[_0x3b749b(0x104)]&&_0x83ecd9[_0x3b749b(0x103)](_0x20687a[_0x3b749b(0x104)]),_0x20687a['table']&&_0x83ecd9[_0x3b749b(0x103)](_0x20687a[_0x3b749b(0x109)]),_0x83ecd9[_0x3b749b(0x105)]('.');}function a65_0x432e(_0x2e7e2c,_0x5693e6){const _0x23ad27=a65_0x23ad();return a65_0x432e=function(_0x432ea6,_0x51e944){_0x432ea6=_0x432ea6-0xf4;let _0x5ea0f0=_0x23ad27[_0x432ea6];return _0x5ea0f0;},a65_0x432e(_0x2e7e2c,_0x5693e6);}export function validateTableListReference(_0x373e4d){return undefined;}export function validateTableDescribeReference(_0x9df721){const _0x5953da=a65_0x432e;if(!_0x9df721[_0x5953da(0x109)])return _0x5953da(0x106);if(_0x9df721[_0x5953da(0x104)]&&hasWildcard(_0x9df721[_0x5953da(0x104)]))return _0x5953da(0x108);if(hasWildcard(_0x9df721['table']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a66_0x13b7ad=a66_0x143d;function a66_0x1f00(){const _0x527cf2=['3383394pNuSxu','9098376JqfUYE','19583775sbOSFV','6493040IcOgFd','.digdag','8QucgKd','6405203piOPRr','50443nTjCqF','.dig','startsWith','5AbVCKr','4878556AHdUCX'];a66_0x1f00=function(){return _0x527cf2;};return a66_0x1f00();}(function(_0x5385d5,_0x1c160b){const _0x35e0b6=a66_0x143d,_0x457fb0=_0x5385d5();while(!![]){try{const _0x372095=-parseInt(_0x35e0b6(0x1c8))/0x1*(parseInt(_0x35e0b6(0x1c6))/0x2)+parseInt(_0x35e0b6(0x1c1))/0x3+parseInt(_0x35e0b6(0x1c0))/0x4*(-parseInt(_0x35e0b6(0x1cb))/0x5)+parseInt(_0x35e0b6(0x1c2))/0x6+parseInt(_0x35e0b6(0x1c7))/0x7+parseInt(_0x35e0b6(0x1c4))/0x8+-parseInt(_0x35e0b6(0x1c3))/0x9;if(_0x372095===_0x1c160b)break;else _0x457fb0['push'](_0x457fb0['shift']());}catch(_0x20e176){_0x457fb0['push'](_0x457fb0['shift']());}}}(a66_0x1f00,0xbcd5b));export const WORKFLOW_FILE_EXTENSION=a66_0x13b7ad(0x1c9);function a66_0x143d(_0x59547d,_0x1da59d){const _0x1f00e0=a66_0x1f00();return a66_0x143d=function(_0x143d9c,_0x1894f3){_0x143d9c=_0x143d9c-0x1c0;let _0x4fa255=_0x1f00e0[_0x143d9c];return _0x4fa255;},a66_0x143d(_0x59547d,_0x1da59d);}export function shouldIncludeInArchive(_0x4f35a1){const _0x2ffc83=a66_0x13b7ad;if(_0x4f35a1===_0x2ffc83(0x1c5))return!![];if(_0x4f35a1[_0x2ffc83(0x1ca)]('.'))return![];return!![];}
1
+ function a66_0x1df1(_0x1b0384,_0x2868e2){const _0x1253e0=a66_0x1253();return a66_0x1df1=function(_0x1df12e,_0xd381ac){_0x1df12e=_0x1df12e-0xd0;let _0x2e5f21=_0x1253e0[_0x1df12e];return _0x2e5f21;},a66_0x1df1(_0x1b0384,_0x2868e2);}function a66_0x1253(){const _0x4e4577=['8ZYwkcB','startsWith','50RtYmlS','24686DGGMCJ','8808821SOdZfK','2174368NkkFQY','2184876yeGtrn','78oAIsOv','.digdag','3414771rZWbZT','2449320Yvnubn','1302282kQkIId'];a66_0x1253=function(){return _0x4e4577;};return a66_0x1253();}(function(_0x91c9c5,_0x2907e1){const _0xcb2b8=a66_0x1df1,_0x223c3c=_0x91c9c5();while(!![]){try{const _0x5d1fe1=parseInt(_0xcb2b8(0xd5))/0x1+-parseInt(_0xcb2b8(0xd9))/0x2*(-parseInt(_0xcb2b8(0xd1))/0x3)+-parseInt(_0xcb2b8(0xdb))/0x4+-parseInt(_0xcb2b8(0xd4))/0x5+-parseInt(_0xcb2b8(0xd0))/0x6+parseInt(_0xcb2b8(0xda))/0x7*(-parseInt(_0xcb2b8(0xd6))/0x8)+-parseInt(_0xcb2b8(0xd3))/0x9*(-parseInt(_0xcb2b8(0xd8))/0xa);if(_0x5d1fe1===_0x2907e1)break;else _0x223c3c['push'](_0x223c3c['shift']());}catch(_0x196f36){_0x223c3c['push'](_0x223c3c['shift']());}}}(a66_0x1253,0xd3022));export const WORKFLOW_FILE_EXTENSION='.dig';export function shouldIncludeInArchive(_0x1fdba1){const _0x40ebc2=a66_0x1df1;if(_0x1fdba1===_0x40ebc2(0xd2))return!![];if(_0x1fdba1[_0x40ebc2(0xd7)]('.'))return![];return!![];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
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": {