@treasuredata/tdx 0.2.8 → 0.3.0

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 (111) hide show
  1. package/README.md +71 -11
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli.js +1 -1
  4. package/dist/cli.js.map +1 -1
  5. package/dist/client/cdp-client.js +1 -1
  6. package/dist/client/http-client.js +1 -1
  7. package/dist/client/http-client.js.map +1 -1
  8. package/dist/client/llm-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-client.d.ts +9 -1
  11. package/dist/client/td-client.d.ts.map +1 -1
  12. package/dist/client/td-client.js +1 -1
  13. package/dist/client/td-client.js.map +1 -1
  14. package/dist/client/trino-client.js +1 -1
  15. package/dist/client/workflow-client.js +1 -1
  16. package/dist/commands/activations.js +1 -1
  17. package/dist/commands/api-command.js +1 -1
  18. package/dist/commands/auth-command.d.ts +23 -0
  19. package/dist/commands/auth-command.d.ts.map +1 -0
  20. package/dist/commands/auth-command.js +1 -0
  21. package/dist/commands/auth-command.js.map +1 -0
  22. package/dist/commands/chat-command.js +1 -1
  23. package/dist/commands/claude-command.js +1 -1
  24. package/dist/commands/command.d.ts.map +1 -1
  25. package/dist/commands/command.js +1 -1
  26. package/dist/commands/command.js.map +1 -1
  27. package/dist/commands/context-command.js +1 -1
  28. package/dist/commands/databases.js +1 -1
  29. package/dist/commands/describe.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pwd-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.d.ts +13 -2
  49. package/dist/core/config.d.ts.map +1 -1
  50. package/dist/core/config.js +1 -1
  51. package/dist/core/config.js.map +1 -1
  52. package/dist/core/global-context.js +1 -1
  53. package/dist/core/profile.d.ts +8 -1
  54. package/dist/core/profile.d.ts.map +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/profile.js.map +1 -1
  57. package/dist/core/project-config.js +1 -1
  58. package/dist/core/session.js +1 -1
  59. package/dist/index.js +1 -1
  60. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  61. package/dist/proxy/anthropic-adapter.js +1 -1
  62. package/dist/proxy/anthropic-adapter.js.map +1 -1
  63. package/dist/proxy/server.js +1 -1
  64. package/dist/proxy/session-cache.js +1 -1
  65. package/dist/sdk/api.js +1 -1
  66. package/dist/sdk/database.js +1 -1
  67. package/dist/sdk/errors.js +1 -1
  68. package/dist/sdk/index.d.ts +6 -5
  69. package/dist/sdk/index.d.ts.map +1 -1
  70. package/dist/sdk/index.js +1 -1
  71. package/dist/sdk/index.js.map +1 -1
  72. package/dist/sdk/job.js +1 -1
  73. package/dist/sdk/llm.js +1 -1
  74. package/dist/sdk/query.js +1 -1
  75. package/dist/sdk/segment.js +1 -1
  76. package/dist/sdk/table.js +1 -1
  77. package/dist/sdk/workflow.js +1 -1
  78. package/dist/types/endpoints.d.ts +12 -0
  79. package/dist/types/endpoints.d.ts.map +1 -1
  80. package/dist/types/endpoints.js +1 -1
  81. package/dist/types/endpoints.js.map +1 -1
  82. package/dist/types/index.d.ts +17 -0
  83. package/dist/types/index.d.ts.map +1 -1
  84. package/dist/types/index.js +1 -1
  85. package/dist/types/index.js.map +1 -1
  86. package/dist/utils/agent-ref-parser.js +1 -1
  87. package/dist/utils/chat-cache.js +1 -1
  88. package/dist/utils/colors.js +1 -1
  89. package/dist/utils/command-output.js +1 -1
  90. package/dist/utils/constants.js +1 -1
  91. package/dist/utils/file-permissions.js +1 -1
  92. package/dist/utils/format-detector.js +1 -1
  93. package/dist/utils/formatters.js +1 -1
  94. package/dist/utils/json-loader.js +1 -1
  95. package/dist/utils/model-aliases.js +1 -1
  96. package/dist/utils/option-validation.js +1 -1
  97. package/dist/utils/port.js +1 -1
  98. package/dist/utils/process.js +1 -1
  99. package/dist/utils/prompt.js +1 -1
  100. package/dist/utils/segment-path-parser.js +1 -1
  101. package/dist/utils/segment-ref-parser.js +1 -1
  102. package/dist/utils/spinner.js +1 -1
  103. package/dist/utils/sql-parser.js +1 -1
  104. package/dist/utils/sse-parser.js +1 -1
  105. package/dist/utils/string-utils.js +1 -1
  106. package/dist/utils/table-ref-parser.js +1 -1
  107. package/dist/utils/tdx-logger.js +1 -1
  108. package/dist/utils/tree-formatter.js +1 -1
  109. package/dist/utils/version-check.js +1 -1
  110. package/dist/utils/workflow-utils.js +1 -1
  111. package/package.json +3 -1
@@ -1 +1 @@
1
- function a62_0xe240(_0x5203d3,_0x502038){const _0x5d41f9=a62_0x5d41();return a62_0xe240=function(_0xe24071,_0x19658c){_0xe24071=_0xe24071-0x11b;let _0x1d234b=_0x5d41f9[_0xe24071];return _0x1d234b;},a62_0xe240(_0x5203d3,_0x502038);}(function(_0x155e67,_0x698dab){const _0x2a25d5=a62_0xe240,_0x28371c=_0x155e67();while(!![]){try{const _0x23ba39=-parseInt(_0x2a25d5(0x127))/0x1*(-parseInt(_0x2a25d5(0x14d))/0x2)+parseInt(_0x2a25d5(0x138))/0x3+parseInt(_0x2a25d5(0x13f))/0x4*(-parseInt(_0x2a25d5(0x12f))/0x5)+parseInt(_0x2a25d5(0x149))/0x6*(-parseInt(_0x2a25d5(0x132))/0x7)+parseInt(_0x2a25d5(0x13b))/0x8*(-parseInt(_0x2a25d5(0x122))/0x9)+-parseInt(_0x2a25d5(0x139))/0xa+parseInt(_0x2a25d5(0x11d))/0xb;if(_0x23ba39===_0x698dab)break;else _0x28371c['push'](_0x28371c['shift']());}catch(_0x8f45a3){_0x28371c['push'](_0x28371c['shift']());}}}(a62_0x5d41,0xd4377));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a62_0x26d84a from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x4c2c52){const _0x543659=a62_0xe240;return{'format':_0x4c2c52['format']||_0x543659(0x128),'output':_0x4c2c52[_0x543659(0x126)]||'','limit':_0x4c2c52[_0x543659(0x156)],'color':_0x4c2c52[_0x543659(0x148)],'noColor':_0x4c2c52[_0x543659(0x12d)]};}function convertSDKResultToQueryResult(_0x2f9a8e){const _0x387b6b=a62_0xe240,_0x5ea16c=[];if(_0x2f9a8e[_0x387b6b(0x141)]>0x0){const _0x3efe8a=_0x2f9a8e[0x0];for(const [_0x5f3b8c,_0x2a59c9]of Object[_0x387b6b(0x11f)](_0x3efe8a)){let _0x52b80f='varchar';if(typeof _0x2a59c9===_0x387b6b(0x158))_0x52b80f=Number['isInteger'](_0x2a59c9)?_0x387b6b(0x150):_0x387b6b(0x136);else{if(typeof _0x2a59c9===_0x387b6b(0x140))_0x52b80f='boolean';else _0x2a59c9===null&&(_0x52b80f=_0x387b6b(0x142));}_0x5ea16c[_0x387b6b(0x154)]({'name':_0x5f3b8c,'type':_0x52b80f});}}return{'queryId':_0x387b6b(0x12c),'columns':_0x5ea16c,'data':_0x2f9a8e,'stats':{'state':'FINISHED','queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x2f9a8e['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0xb9305,_0x20e08c){const _0x39cd1a=convertSDKResultToQueryResult(_0xb9305);return formatQueryOutput(_0x39cd1a,_0x20e08c);}export async function formatQueryOutput(_0x41f972,_0x3e535f){const _0x28cabc=a62_0xe240,{format:_0x4af690,limit:_0x27a118,output:_0x2c413e,color:_0x4ee5b3,noColor:_0x4482e8}=_0x3e535f,_0x276760=Boolean(_0x2c413e)&&!_0x4ee5b3,_0x45f744={'color':_0x4ee5b3,'noColor':_0x4482e8||_0x276760};if(_0x4af690===_0x28cabc(0x128)){const _0x40a642=shouldUseLess(_0x4af690,_0x2c413e);return formatAsTable(_0x41f972,_0x27a118,_0x40a642,_0x45f744);}else{if(_0x4af690===_0x28cabc(0x137))return formatAsJSON(_0x41f972,_0x45f744);else return _0x4af690==='jsonl'?formatAsJSONL(_0x41f972,_0x45f744):formatQueryResult(_0x41f972,_0x4af690);}}function shouldUseLess(_0x24528e,_0x3d2fc7){const _0x7abb6a=a62_0xe240;return _0x24528e==='table'&&process[_0x7abb6a(0x121)][_0x7abb6a(0x152)]&&!_0x3d2fc7;}export function resolveOutputOptions(_0x11a981){const _0x1217f8=a62_0xe240,_0x41af62=resolveOutputFormat(_0x11a981['format'],_0x11a981['output'],_0x1217f8(0x128));let _0x49593d=typeof _0x11a981['limit']===_0x1217f8(0x158)?_0x11a981[_0x1217f8(0x156)]:parseInt(_0x11a981[_0x1217f8(0x156)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x2c6d49=_0x11a981[_0x1217f8(0x126)]||'';return shouldUseLess(_0x41af62,_0x2c6d49)&&(_0x49593d=Infinity),{'format':_0x41af62,'output':_0x2c6d49,'limit':_0x49593d,'color':_0x11a981[_0x1217f8(0x148)],'noColor':_0x11a981[_0x1217f8(0x12d)]};}export function writeOutput(_0x3a40a4,_0x2a24d4,_0x293979){const _0x2afadf=a62_0xe240;return _0x2a24d4?(writeFileSync(_0x2a24d4,_0x3a40a4),console[_0x2afadf(0x12b)]('Results\x20saved\x20to\x20'+_0x2a24d4),Promise[_0x2afadf(0x144)]()):shouldUseLess(_0x293979||'','')?new Promise(_0x329d28=>{const _0x35ccdc=_0x2afadf,_0x275018=spawn('less',[_0x35ccdc(0x130)],{'stdio':[_0x35ccdc(0x13d),'inherit',_0x35ccdc(0x13c)]});let _0x2249a9=![];_0x275018['on'](_0x35ccdc(0x12b),()=>{!_0x2249a9&&(_0x2249a9=!![],console['log'](_0x3a40a4),_0x329d28());}),_0x275018['on'](_0x35ccdc(0x14f),()=>{!_0x2249a9&&(_0x2249a9=!![],_0x329d28());}),_0x275018['on']('spawn',()=>{const _0xdae971=_0x35ccdc;!_0x2249a9&&_0x275018['stdin']&&(_0x275018['stdin']['on'](_0xdae971(0x12b),()=>{}),_0x275018['stdin'][_0xdae971(0x123)](_0x3a40a4),_0x275018['stdin']['end']());}),!_0x275018[_0x35ccdc(0x146)]&&(!_0x2249a9&&(_0x2249a9=!![],console[_0x35ccdc(0x14c)](_0x3a40a4),_0x329d28()));}):(console['log'](_0x3a40a4),Promise[_0x2afadf(0x144)]());}export async function handleSDKOutput(_0x4c9d07,_0xe16ba9){const _0x20aeb6=a62_0xe240,_0x3516eb=resolveOutputOptions(_0xe16ba9),_0x10cac2=await formatSDKOutput(_0x4c9d07,_0x3516eb);await writeOutput(_0x10cac2,_0x3516eb[_0x20aeb6(0x126)]||undefined,_0x3516eb[_0x20aeb6(0x11b)]);}export async function handleQueryOutput(_0x146f20,_0x33da9e){const _0x61d7fd=a62_0xe240,_0x24cf97=resolveOutputOptions(_0x33da9e),_0x5b63e3=await formatQueryOutput(_0x146f20,_0x24cf97);await writeOutput(_0x5b63e3,_0x24cf97['output']||undefined,_0x24cf97[_0x61d7fd(0x11b)]);}function a62_0x5d41(){const _0x36454d=['[error]','limit','trim','number','format','stringify','22274989cWTdvm','query','entries','join','stdout','3501dXbBnW','write','red','split','output','774627psDUMw','table','max','string','error','sdk-result','noColor','cmdout','20OJMTAw','-FXRSn','─┴─','21YAjEKM','No\x20data','yellow','stderr','double','json','3597354ZplLwL','15724210epiFgA','map','6824uoBoIY','inherit','pipe','object','1197544CjppOz','boolean','length','varchar','─┬─','resolve','filter','stdin','repeat','color','55446iIMxVk','padEnd','forEach','log','2pJIFRH','bold','close','bigint','debug','isTTY','[Object]','push'];a62_0x5d41=function(){return _0x36454d;};return a62_0x5d41();}async function formatSingleObject(_0x41fd75,_0x5d489d){const _0xc8ef2d=a62_0xe240,{format:_0x45de33,color:_0x5118e6,noColor:_0x5d5a37}=_0x5d489d,_0x30706c={'color':_0x5118e6,'noColor':_0x5d5a37};if(_0x45de33===_0xc8ef2d(0x137)){if(shouldUseColor(_0x30706c))return colorizeJSON(_0x41fd75,_0x30706c);return JSON['stringify'](_0x41fd75,null,0x2);}else{if(_0x45de33==='jsonl'){if(shouldUseColor(_0x30706c))return colorizeJSONCompact(_0x41fd75,_0x30706c);return JSON[_0xc8ef2d(0x11c)](_0x41fd75);}else{if(_0x45de33==='tsv')return Object[_0xc8ef2d(0x11f)](_0x41fd75)['map'](([_0x47233c,_0x23d718])=>_0x47233c+'\x09'+_0x23d718)['join']('\x0a');else{const _0x52b6ec=Object[_0xc8ef2d(0x11f)](_0x41fd75);if(_0x52b6ec[_0xc8ef2d(0x141)]===0x0)return _0xc8ef2d(0x133);const _0x205bbe=_0x41fd75[_0xc8ef2d(0x151)],_0x4fef67=_0x41fd75['query'],_0x5179b8=_0x4fef67?typeof _0x4fef67===_0xc8ef2d(0x12a)?_0x4fef67:JSON[_0xc8ef2d(0x11c)](_0x4fef67,null,0x2):undefined,_0x1ea696=_0x52b6ec[_0xc8ef2d(0x145)](([_0x2fd367])=>_0x2fd367!==_0xc8ef2d(0x151)&&_0x2fd367!==_0xc8ef2d(0x11e)),_0x4479cf=Math[_0xc8ef2d(0x129)](..._0x1ea696['map'](([_0x44dd0a])=>_0x44dd0a[_0xc8ef2d(0x141)])),_0xce6ff9=Math[_0xc8ef2d(0x129)](..._0x1ea696['map'](([,_0x459d91])=>{const _0x18346d=_0xc8ef2d;try{const _0x529d88=_0x459d91===null||_0x459d91===undefined?'':typeof _0x459d91===_0x18346d(0x13e)?JSON['stringify'](_0x459d91):String(_0x459d91),_0x5300b8=_0x529d88['split']('\x0a');return Math[_0x18346d(0x129)](..._0x5300b8[_0x18346d(0x13a)](_0x111847=>_0x111847[_0x18346d(0x141)]),0x0);}catch{return 0x0;}}),0x14),_0x1a8973=[];_0x1a8973['push'](colorBorder('┌─'+'─'[_0xc8ef2d(0x147)](_0x4479cf)+_0xc8ef2d(0x143)+'─'[_0xc8ef2d(0x147)](_0xce6ff9)+'─┐',_0x30706c)),_0x1ea696[_0xc8ef2d(0x14b)](([_0x9f51c,_0x16b31d])=>{const _0x3db151=_0xc8ef2d;let _0x4b40cf;try{_0x4b40cf=_0x16b31d===null||_0x16b31d===undefined?'':typeof _0x16b31d==='object'?JSON[_0x3db151(0x11c)](_0x16b31d):String(_0x16b31d);}catch{_0x4b40cf=_0x3db151(0x153);}const _0x1fc8d7=_0x9f51c[_0x3db151(0x14a)](_0x4479cf),_0x4b6099=_0x4b40cf[_0x3db151(0x125)]('\x0a');_0x4b6099[_0x3db151(0x14b)]((_0x51874d,_0xb62ac1)=>{const _0xbdfcc6=_0x3db151,_0x2f7b0a=colorBorder('│',_0x30706c);_0xb62ac1===0x0?_0x1a8973[_0xbdfcc6(0x154)](_0x2f7b0a+'\x20'+_0x1fc8d7+'\x20'+_0x2f7b0a+'\x20'+_0x51874d[_0xbdfcc6(0x14a)](_0xce6ff9)+'\x20'+_0x2f7b0a):_0x1a8973['push'](_0x2f7b0a+'\x20'+'\x20'[_0xbdfcc6(0x147)](_0x4479cf)+'\x20'+_0x2f7b0a+'\x20'+_0x51874d[_0xbdfcc6(0x14a)](_0xce6ff9)+'\x20'+_0x2f7b0a);});}),_0x1a8973['push'](colorBorder('└─'+'─'[_0xc8ef2d(0x147)](_0x4479cf)+_0xc8ef2d(0x131)+'─'[_0xc8ef2d(0x147)](_0xce6ff9)+'─┘',_0x30706c));_0x5179b8&&(_0x1a8973[_0xc8ef2d(0x154)](''),_0x1a8973[_0xc8ef2d(0x154)](String(a62_0x26d84a[_0xc8ef2d(0x134)][_0xc8ef2d(0x14e)]('[query]'))),_0x1a8973[_0xc8ef2d(0x154)](_0x5179b8));if(_0x205bbe){if(_0x205bbe[_0xc8ef2d(0x135)]){_0x1a8973['push'](''),_0x1a8973[_0xc8ef2d(0x154)](String(a62_0x26d84a[_0xc8ef2d(0x124)]['bold'](_0xc8ef2d(0x155))));const _0x32faee=_0x205bbe['stderr'][_0xc8ef2d(0x125)]('\x0a');_0x32faee[_0xc8ef2d(0x14b)](_0x2a034f=>{const _0x78df79=_0xc8ef2d;_0x2a034f[_0x78df79(0x157)]()&&_0x1a8973['push'](_0x2a034f);});}if(_0x205bbe[_0xc8ef2d(0x12e)]){_0x1a8973[_0xc8ef2d(0x154)](''),_0x1a8973[_0xc8ef2d(0x154)](String(a62_0x26d84a['cyan'][_0xc8ef2d(0x14e)]('[logs]')));const _0x14f689=_0x205bbe[_0xc8ef2d(0x12e)]['split']('\x0a');_0x14f689[_0xc8ef2d(0x14b)](_0x19e1f3=>{const _0x5c17b7=_0xc8ef2d;_0x19e1f3[_0x5c17b7(0x157)]()&&_0x1a8973[_0x5c17b7(0x154)](_0x19e1f3);});}}return _0x1a8973[_0xc8ef2d(0x120)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x3e4cfb,_0x550913){const _0x4611f7=resolveOutputOptions(_0x550913),_0xecfb50=await formatSingleObject(_0x3e4cfb,_0x4611f7);await writeOutput(_0xecfb50,_0x4611f7['output']||undefined,_0x4611f7['format']);}
1
+ (function(_0x10a55b,_0x3b9a19){const _0x398da2=a63_0x17f6,_0x31bc08=_0x10a55b();while(!![]){try{const _0x189b12=-parseInt(_0x398da2(0xa9))/0x1+parseInt(_0x398da2(0xa4))/0x2+parseInt(_0x398da2(0x74))/0x3*(parseInt(_0x398da2(0xab))/0x4)+parseInt(_0x398da2(0x9f))/0x5+-parseInt(_0x398da2(0xa8))/0x6*(-parseInt(_0x398da2(0x7e))/0x7)+-parseInt(_0x398da2(0xaf))/0x8*(parseInt(_0x398da2(0xb1))/0x9)+-parseInt(_0x398da2(0x88))/0xa*(parseInt(_0x398da2(0x83))/0xb);if(_0x189b12===_0x3b9a19)break;else _0x31bc08['push'](_0x31bc08['shift']());}catch(_0x2e8bf3){_0x31bc08['push'](_0x31bc08['shift']());}}}(a63_0x1e64,0xe9549));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';function a63_0x1e64(){const _0x3822ef=['3392uRHYgd','debug','2124wNwHNF','forEach','stderr','26934WyomIJ','limit','entries','red','end','stringify','tsv','length','─┬─','output','1691417Cqexyq','format','yellow','noColor','object','11CrHIYi','jsonl','varchar','close','color','14432380wrXpUL','isTTY','trim','join','cmdout','bold','[logs]','stdin','number','bigint','[Object]','pipe','map','FINISHED','repeat','boolean','json','table','write','stdout','-FXRSn','resolve','query','6118245uEXrRz','split','max','push','padEnd','1052596nFxUmQ','inherit','cyan','No\x20data','42PHxNyI','1516933zRApYI','log','256VXhFac','spawn','less','error'];a63_0x1e64=function(){return _0x3822ef;};return a63_0x1e64();}import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a63_0x24c6aa from'chalk';function a63_0x17f6(_0x5617a2,_0x595595){const _0x1e64b8=a63_0x1e64();return a63_0x17f6=function(_0x17f608,_0x4365e2){_0x17f608=_0x17f608-0x73;let _0x4ccbb6=_0x1e64b8[_0x17f608];return _0x4ccbb6;},a63_0x17f6(_0x5617a2,_0x595595);}import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function parseOutputOptions(_0x5684b3){const _0x574a99=a63_0x17f6;return{'format':_0x5684b3['format']||'table','output':_0x5684b3['output']||'','limit':_0x5684b3[_0x574a99(0x75)],'color':_0x5684b3[_0x574a99(0x87)],'noColor':_0x5684b3[_0x574a99(0x81)]};}function convertSDKResultToQueryResult(_0x52c036){const _0xde561f=a63_0x17f6,_0xb40e34=[];if(_0x52c036[_0xde561f(0x7b)]>0x0){const _0x648f56=_0x52c036[0x0];for(const [_0x49df2a,_0x483ff4]of Object[_0xde561f(0x76)](_0x648f56)){let _0x41ffb6='varchar';if(typeof _0x483ff4===_0xde561f(0x90))_0x41ffb6=Number['isInteger'](_0x483ff4)?_0xde561f(0x91):'double';else{if(typeof _0x483ff4==='boolean')_0x41ffb6=_0xde561f(0x97);else _0x483ff4===null&&(_0x41ffb6=_0xde561f(0x85));}_0xb40e34[_0xde561f(0xa2)]({'name':_0x49df2a,'type':_0x41ffb6});}}return{'queryId':'sdk-result','columns':_0xb40e34,'data':_0x52c036,'stats':{'state':_0xde561f(0x95),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x52c036['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x1e5cea,_0x5887e5){const _0x1419eb=convertSDKResultToQueryResult(_0x1e5cea);return formatQueryOutput(_0x1419eb,_0x5887e5);}export async function formatQueryOutput(_0x14e90b,_0x3a5c5b){const _0x5e9763=a63_0x17f6,{format:_0x25556d,limit:_0x2edbdf,output:_0x5be10a,color:_0x39784e,noColor:_0x2f0ad6}=_0x3a5c5b,_0x59fcfe=Boolean(_0x5be10a)&&!_0x39784e,_0x587515={'color':_0x39784e,'noColor':_0x2f0ad6||_0x59fcfe};if(_0x25556d==='table'){const _0xd549c6=shouldUseLess(_0x25556d,_0x5be10a);return formatAsTable(_0x14e90b,_0x2edbdf,_0xd549c6,_0x587515);}else{if(_0x25556d===_0x5e9763(0x98))return formatAsJSON(_0x14e90b,_0x587515);else return _0x25556d===_0x5e9763(0x84)?formatAsJSONL(_0x14e90b,_0x587515):formatQueryResult(_0x14e90b,_0x25556d);}}function shouldUseLess(_0x22cc38,_0x230304){const _0x3032b0=a63_0x17f6;return _0x22cc38==='table'&&process[_0x3032b0(0x9b)][_0x3032b0(0x89)]&&!_0x230304;}export function resolveOutputOptions(_0x3f55ad){const _0x4c6168=a63_0x17f6,_0x57ebf7=resolveOutputFormat(_0x3f55ad[_0x4c6168(0x7f)],_0x3f55ad[_0x4c6168(0x7d)],_0x4c6168(0x99));let _0x23eddc=typeof _0x3f55ad['limit']===_0x4c6168(0x90)?_0x3f55ad[_0x4c6168(0x75)]:parseInt(_0x3f55ad['limit']||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x10b8ee=_0x3f55ad[_0x4c6168(0x7d)]||'';return shouldUseLess(_0x57ebf7,_0x10b8ee)&&(_0x23eddc=Infinity),{'format':_0x57ebf7,'output':_0x10b8ee,'limit':_0x23eddc,'color':_0x3f55ad[_0x4c6168(0x87)],'noColor':_0x3f55ad[_0x4c6168(0x81)]};}export function writeOutput(_0x45ac27,_0x1402ae,_0x1676d3){const _0x44b76d=a63_0x17f6;return _0x1402ae?(writeFileSync(_0x1402ae,_0x45ac27),console['error']('Results\x20saved\x20to\x20'+_0x1402ae),Promise[_0x44b76d(0x9d)]()):shouldUseLess(_0x1676d3||'','')?new Promise(_0xe68ca4=>{const _0x213261=_0x44b76d,_0x1d4188=spawn(_0x213261(0xad),[_0x213261(0x9c)],{'stdio':[_0x213261(0x93),_0x213261(0xa5),_0x213261(0xa5)]});let _0x17ebec=![];_0x1d4188['on'](_0x213261(0xae),()=>{const _0x51ed74=_0x213261;!_0x17ebec&&(_0x17ebec=!![],console[_0x51ed74(0xaa)](_0x45ac27),_0xe68ca4());}),_0x1d4188['on'](_0x213261(0x86),()=>{!_0x17ebec&&(_0x17ebec=!![],_0xe68ca4());}),_0x1d4188['on'](_0x213261(0xac),()=>{const _0x2434c8=_0x213261;!_0x17ebec&&_0x1d4188[_0x2434c8(0x8f)]&&(_0x1d4188[_0x2434c8(0x8f)]['on'](_0x2434c8(0xae),()=>{}),_0x1d4188['stdin'][_0x2434c8(0x9a)](_0x45ac27),_0x1d4188['stdin'][_0x2434c8(0x78)]());}),!_0x1d4188[_0x213261(0x8f)]&&(!_0x17ebec&&(_0x17ebec=!![],console['log'](_0x45ac27),_0xe68ca4()));}):(console['log'](_0x45ac27),Promise[_0x44b76d(0x9d)]());}export async function handleSDKOutput(_0x5e9145,_0x1df762){const _0x19b46d=a63_0x17f6,_0x38eec6=resolveOutputOptions(_0x1df762),_0x64b85d=await formatSDKOutput(_0x5e9145,_0x38eec6);await writeOutput(_0x64b85d,_0x38eec6[_0x19b46d(0x7d)]||undefined,_0x38eec6[_0x19b46d(0x7f)]);}export async function handleQueryOutput(_0x15c654,_0x20c59e){const _0x1a7978=a63_0x17f6,_0x36cf21=resolveOutputOptions(_0x20c59e),_0x423f5e=await formatQueryOutput(_0x15c654,_0x36cf21);await writeOutput(_0x423f5e,_0x36cf21[_0x1a7978(0x7d)]||undefined,_0x36cf21['format']);}async function formatSingleObject(_0x1d47fb,_0x201324){const _0x1c6ac5=a63_0x17f6,{format:_0x446cbe,color:_0xa7761c,noColor:_0x5e335f}=_0x201324,_0x124e22={'color':_0xa7761c,'noColor':_0x5e335f};if(_0x446cbe===_0x1c6ac5(0x98)){if(shouldUseColor(_0x124e22))return colorizeJSON(_0x1d47fb,_0x124e22);return JSON[_0x1c6ac5(0x79)](_0x1d47fb,null,0x2);}else{if(_0x446cbe===_0x1c6ac5(0x84)){if(shouldUseColor(_0x124e22))return colorizeJSONCompact(_0x1d47fb,_0x124e22);return JSON[_0x1c6ac5(0x79)](_0x1d47fb);}else{if(_0x446cbe===_0x1c6ac5(0x7a))return Object[_0x1c6ac5(0x76)](_0x1d47fb)['map'](([_0x1aa19a,_0x3f8e84])=>_0x1aa19a+'\x09'+_0x3f8e84)[_0x1c6ac5(0x8b)]('\x0a');else{const _0x20be59=Object['entries'](_0x1d47fb);if(_0x20be59[_0x1c6ac5(0x7b)]===0x0)return _0x1c6ac5(0xa7);const _0x39302d=_0x1d47fb[_0x1c6ac5(0xb0)],_0x27f801=_0x1d47fb['query'],_0x2967fc=_0x27f801?typeof _0x27f801==='string'?_0x27f801:JSON[_0x1c6ac5(0x79)](_0x27f801,null,0x2):undefined,_0x1bfe84=_0x20be59['filter'](([_0xf605af])=>_0xf605af!==_0x1c6ac5(0xb0)&&_0xf605af!==_0x1c6ac5(0x9e)),_0x4acbf1=Math[_0x1c6ac5(0xa1)](..._0x1bfe84['map'](([_0x4a5f3f])=>_0x4a5f3f[_0x1c6ac5(0x7b)])),_0x59cc5f=Math[_0x1c6ac5(0xa1)](..._0x1bfe84[_0x1c6ac5(0x94)](([,_0x396dd7])=>{const _0x31ef5b=_0x1c6ac5;try{const _0x57ce66=_0x396dd7===null||_0x396dd7===undefined?'':typeof _0x396dd7==='object'?JSON[_0x31ef5b(0x79)](_0x396dd7):String(_0x396dd7),_0x1382c7=_0x57ce66[_0x31ef5b(0xa0)]('\x0a');return Math[_0x31ef5b(0xa1)](..._0x1382c7['map'](_0x3f5406=>_0x3f5406[_0x31ef5b(0x7b)]),0x0);}catch{return 0x0;}}),0x14),_0x228d4f=[];_0x228d4f[_0x1c6ac5(0xa2)](colorBorder('┌─'+'─'[_0x1c6ac5(0x96)](_0x4acbf1)+_0x1c6ac5(0x7c)+'─'[_0x1c6ac5(0x96)](_0x59cc5f)+'─┐',_0x124e22)),_0x1bfe84[_0x1c6ac5(0xb2)](([_0x5d6a92,_0x2577f9])=>{const _0x3661a0=_0x1c6ac5;let _0x10db13;try{_0x10db13=_0x2577f9===null||_0x2577f9===undefined?'':typeof _0x2577f9===_0x3661a0(0x82)?JSON[_0x3661a0(0x79)](_0x2577f9):String(_0x2577f9);}catch{_0x10db13=_0x3661a0(0x92);}const _0xd518e=_0x5d6a92[_0x3661a0(0xa3)](_0x4acbf1),_0x1b3ff9=_0x10db13['split']('\x0a');_0x1b3ff9['forEach']((_0x66592c,_0x2a6fdc)=>{const _0x50fc4b=_0x3661a0,_0x5323a2=colorBorder('│',_0x124e22);_0x2a6fdc===0x0?_0x228d4f[_0x50fc4b(0xa2)](_0x5323a2+'\x20'+_0xd518e+'\x20'+_0x5323a2+'\x20'+_0x66592c[_0x50fc4b(0xa3)](_0x59cc5f)+'\x20'+_0x5323a2):_0x228d4f[_0x50fc4b(0xa2)](_0x5323a2+'\x20'+'\x20'[_0x50fc4b(0x96)](_0x4acbf1)+'\x20'+_0x5323a2+'\x20'+_0x66592c[_0x50fc4b(0xa3)](_0x59cc5f)+'\x20'+_0x5323a2);});}),_0x228d4f[_0x1c6ac5(0xa2)](colorBorder('└─'+'─'['repeat'](_0x4acbf1)+'─┴─'+'─'[_0x1c6ac5(0x96)](_0x59cc5f)+'─┘',_0x124e22));_0x2967fc&&(_0x228d4f[_0x1c6ac5(0xa2)](''),_0x228d4f[_0x1c6ac5(0xa2)](String(a63_0x24c6aa[_0x1c6ac5(0x80)][_0x1c6ac5(0x8d)]('[query]'))),_0x228d4f[_0x1c6ac5(0xa2)](_0x2967fc));if(_0x39302d){if(_0x39302d[_0x1c6ac5(0x73)]){_0x228d4f[_0x1c6ac5(0xa2)](''),_0x228d4f[_0x1c6ac5(0xa2)](String(a63_0x24c6aa[_0x1c6ac5(0x77)][_0x1c6ac5(0x8d)]('[error]')));const _0x34b7e4=_0x39302d[_0x1c6ac5(0x73)][_0x1c6ac5(0xa0)]('\x0a');_0x34b7e4[_0x1c6ac5(0xb2)](_0x562ac4=>{const _0x7bb798=_0x1c6ac5;_0x562ac4[_0x7bb798(0x8a)]()&&_0x228d4f['push'](_0x562ac4);});}if(_0x39302d[_0x1c6ac5(0x8c)]){_0x228d4f[_0x1c6ac5(0xa2)](''),_0x228d4f[_0x1c6ac5(0xa2)](String(a63_0x24c6aa[_0x1c6ac5(0xa6)][_0x1c6ac5(0x8d)](_0x1c6ac5(0x8e))));const _0x2f1e13=_0x39302d[_0x1c6ac5(0x8c)][_0x1c6ac5(0xa0)]('\x0a');_0x2f1e13['forEach'](_0x498d43=>{const _0x39711a=_0x1c6ac5;_0x498d43[_0x39711a(0x8a)]()&&_0x228d4f[_0x39711a(0xa2)](_0x498d43);});}}return _0x228d4f[_0x1c6ac5(0x8b)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x3d0613,_0x5603e5){const _0x30b0fb=a63_0x17f6,_0x310c37=resolveOutputOptions(_0x5603e5),_0x1107e2=await formatSingleObject(_0x3d0613,_0x310c37);await writeOutput(_0x1107e2,_0x310c37[_0x30b0fb(0x7d)]||undefined,_0x310c37[_0x30b0fb(0x7f)]);}
@@ -1 +1 @@
1
- (function(_0x1a7fdb,_0x39f5a9){const _0x42d601=a63_0x2314,_0x4beb34=_0x1a7fdb();while(!![]){try{const _0x3820df=-parseInt(_0x42d601(0xe8))/0x1+-parseInt(_0x42d601(0xeb))/0x2*(-parseInt(_0x42d601(0xf0))/0x3)+-parseInt(_0x42d601(0xe9))/0x4*(parseInt(_0x42d601(0xee))/0x5)+parseInt(_0x42d601(0xec))/0x6+parseInt(_0x42d601(0xe6))/0x7*(-parseInt(_0x42d601(0xe5))/0x8)+-parseInt(_0x42d601(0xe7))/0x9+-parseInt(_0x42d601(0xea))/0xa*(-parseInt(_0x42d601(0xef))/0xb);if(_0x3820df===_0x39f5a9)break;else _0x4beb34['push'](_0x4beb34['shift']());}catch(_0x4cb34b){_0x4beb34['push'](_0x4beb34['shift']());}}}(a63_0x8adb,0x18aeb));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;function a63_0x8adb(){const _0x2dc8d7=['8AzGIfP','50GWlGps','177396exWiHE','322776zypUwh','number','111745neBOqP','653664GaFCwT','3absPap','24iKVPMQ','119294SyDyqi','789750XZwKZU','154941neBOtp'];a63_0x8adb=function(){return _0x2dc8d7;};return a63_0x8adb();}function a63_0x2314(_0x5384ee,_0xf4090a){const _0x8adbe8=a63_0x8adb();return a63_0x2314=function(_0x23143e,_0x418705){_0x23143e=_0x23143e-0xe5;let _0x15d5b7=_0x8adbe8[_0x23143e];return _0x15d5b7;},a63_0x2314(_0x5384ee,_0xf4090a);}export function resolveLimit(_0x1a3948,_0x3813e2){const _0x28600d=a63_0x2314;if(_0x1a3948===undefined)return _0x3813e2;if(typeof _0x1a3948===_0x28600d(0xed))return _0x1a3948;return parseInt(_0x1a3948,0xa);}
1
+ function a64_0x58f2(){const _0x46cf11=['210815ShtnkY','507HJGgaI','67771LoGfSN','1099vqYlju','8514syiuuQ','10NsuuZI','5296ZTiGot','1579090cJeKRe','2847447kJrwew','2656752MeuxdY','10JJvNth'];a64_0x58f2=function(){return _0x46cf11;};return a64_0x58f2();}(function(_0x2de52b,_0x264840){const _0x117ca7=a64_0x5e9d,_0x135dde=_0x2de52b();while(!![]){try{const _0x51327c=parseInt(_0x117ca7(0x1b4))/0x1*(parseInt(_0x117ca7(0x1b1))/0x2)+parseInt(_0x117ca7(0x1b3))/0x3*(-parseInt(_0x117ca7(0x1ad))/0x4)+parseInt(_0x117ca7(0x1ae))/0x5+parseInt(_0x117ca7(0x1b6))/0x6*(-parseInt(_0x117ca7(0x1b5))/0x7)+-parseInt(_0x117ca7(0x1b0))/0x8+-parseInt(_0x117ca7(0x1af))/0x9*(-parseInt(_0x117ca7(0x1b7))/0xa)+parseInt(_0x117ca7(0x1b2))/0xb;if(_0x51327c===_0x264840)break;else _0x135dde['push'](_0x135dde['shift']());}catch(_0x4e3b32){_0x135dde['push'](_0x135dde['shift']());}}}(a64_0x58f2,0x33a84));function a64_0x5e9d(_0x1bf779,_0x1a8114){const _0x58f2c3=a64_0x58f2();return a64_0x5e9d=function(_0x5e9d39,_0x1e6ff2){_0x5e9d39=_0x5e9d39-0x1ad;let _0x3c83b8=_0x58f2c3[_0x5e9d39];return _0x3c83b8;},a64_0x5e9d(_0x1bf779,_0x1a8114);}export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x325126,_0x4aff05){if(_0x325126===undefined)return _0x4aff05;if(typeof _0x325126==='number')return _0x325126;return parseInt(_0x325126,0xa);}
@@ -1 +1 @@
1
- (function(_0x469fd0,_0x591d00){const _0x35c3c3=a64_0x3c89,_0x138881=_0x469fd0();while(!![]){try{const _0x58d53d=-parseInt(_0x35c3c3(0x174))/0x1*(-parseInt(_0x35c3c3(0x16b))/0x2)+parseInt(_0x35c3c3(0x176))/0x3*(parseInt(_0x35c3c3(0x169))/0x4)+parseInt(_0x35c3c3(0x165))/0x5+-parseInt(_0x35c3c3(0x170))/0x6*(-parseInt(_0x35c3c3(0x17a))/0x7)+-parseInt(_0x35c3c3(0x168))/0x8*(parseInt(_0x35c3c3(0x178))/0x9)+parseInt(_0x35c3c3(0x173))/0xa*(-parseInt(_0x35c3c3(0x172))/0xb)+-parseInt(_0x35c3c3(0x16f))/0xc;if(_0x58d53d===_0x591d00)break;else _0x138881['push'](_0x138881['shift']());}catch(_0x38e401){_0x138881['push'](_0x138881['shift']());}}}(a64_0x2079,0xcbbb4));import*as a64_0x19fe14 from'node:fs';function a64_0x3c89(_0x4ee8c5,_0x1b7143){const _0x2079c3=a64_0x2079();return a64_0x3c89=function(_0x3c896b,_0x34b85a){_0x3c896b=_0x3c896b-0x165;let _0x471423=_0x2079c3[_0x3c896b];return _0x471423;},a64_0x3c89(_0x4ee8c5,_0x1b7143);}import*as a64_0xa3d763 from'node:path';export function setSecureFilePermissions(_0x957766){const _0x1c623f=a64_0x3c89;try{a64_0x19fe14[_0x1c623f(0x166)](_0x957766,0x180);}catch{console['warn'](_0x1c623f(0x16a)+_0x957766);}}export function setSecureDirectoryPermissions(_0x575cdc){const _0x461518=a64_0x3c89;try{a64_0x19fe14[_0x461518(0x166)](_0x575cdc,0x1c0);}catch{console[_0x461518(0x16e)](_0x461518(0x16a)+_0x575cdc);}}export function createSecureDirectory(_0x540836){const _0x1efcd0=a64_0x3c89;!a64_0x19fe14[_0x1efcd0(0x171)](_0x540836)&&(a64_0x19fe14[_0x1efcd0(0x179)](_0x540836,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x540836));}export function validateSecureFilePermissions(_0x50a5aa){const _0xe99647=a64_0x3c89;try{const _0x467884=a64_0x19fe14[_0xe99647(0x175)](_0x50a5aa),_0x1eebe8=_0x467884['mode']&0x1ff,_0xabf5df=(_0x1eebe8&0x3f)!==0x0;if(_0xabf5df)return console[_0xe99647(0x16e)]('Warning:\x20'+_0x50a5aa+_0xe99647(0x177)+_0x1eebe8[_0xe99647(0x16c)](0x8)+_0xe99647(0x16d)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x32fe8,_0x46aecd){const _0x321a9a=a64_0x3c89,_0x444b65=a64_0xa3d763[_0x321a9a(0x167)](_0x32fe8);createSecureDirectory(_0x444b65),a64_0x19fe14['writeFileSync'](_0x32fe8,_0x46aecd,{'mode':0x180}),setSecureFilePermissions(_0x32fe8);}function a64_0x2079(){const _0x462dcb=['existsSync','1837RzSDIS','63210eSKHSD','1HNcVpZ','statSync','11733slurlu','\x20has\x20insecure\x20permissions\x20(','846jtIybS','mkdirSync','14ODAYhU','3107690AwpTga','chmodSync','dirname','54752FzrTKd','1324IwCfnk','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','3269784EuoyxT','toString',').\x20','warn','21686712yQCFAO','2369046EAdctE'];a64_0x2079=function(){return _0x462dcb;};return a64_0x2079();}
1
+ (function(_0x38525c,_0x2e35b1){const _0x48a762=a65_0x8e0d,_0x36a9cb=_0x38525c();while(!![]){try{const _0x3c026c=parseInt(_0x48a762(0x146))/0x1+parseInt(_0x48a762(0x13d))/0x2*(parseInt(_0x48a762(0x14b))/0x3)+-parseInt(_0x48a762(0x142))/0x4+parseInt(_0x48a762(0x147))/0x5+parseInt(_0x48a762(0x139))/0x6+-parseInt(_0x48a762(0x144))/0x7+-parseInt(_0x48a762(0x138))/0x8;if(_0x3c026c===_0x2e35b1)break;else _0x36a9cb['push'](_0x36a9cb['shift']());}catch(_0x49a6e1){_0x36a9cb['push'](_0x36a9cb['shift']());}}}(a65_0x24ed,0x7f603));import*as a65_0x3bb68a from'node:fs';function a65_0x24ed(){const _0x539198=['Warning:\x20','existsSync','1574948QuKLoD',').\x20','1536731QYEHfL','mkdirSync','16022tsGaHU','4079530DjBeNJ','chmodSync','warn','statSync','33SFnrVB','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','3407112vwKCsi','4330080qNaXtE','Should\x20be\x200600\x20or\x20more\x20restrictive.','toString','dirname','1324KhNORC','writeFileSync','mode'];a65_0x24ed=function(){return _0x539198;};return a65_0x24ed();}import*as a65_0x26220d from'node:path';export function setSecureFilePermissions(_0x44ce93){const _0x37f8cf=a65_0x8e0d;try{a65_0x3bb68a[_0x37f8cf(0x148)](_0x44ce93,0x180);}catch{console[_0x37f8cf(0x149)](_0x37f8cf(0x137)+_0x44ce93);}}export function setSecureDirectoryPermissions(_0x25c755){const _0x405bbb=a65_0x8e0d;try{a65_0x3bb68a[_0x405bbb(0x148)](_0x25c755,0x1c0);}catch{console['warn'](_0x405bbb(0x137)+_0x25c755);}}export function createSecureDirectory(_0x444e94){const _0x17d619=a65_0x8e0d;!a65_0x3bb68a[_0x17d619(0x141)](_0x444e94)&&(a65_0x3bb68a[_0x17d619(0x145)](_0x444e94,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x444e94));}function a65_0x8e0d(_0x112533,_0x3232c4){const _0x24edcd=a65_0x24ed();return a65_0x8e0d=function(_0x8e0d89,_0x200b97){_0x8e0d89=_0x8e0d89-0x137;let _0x5d9d44=_0x24edcd[_0x8e0d89];return _0x5d9d44;},a65_0x8e0d(_0x112533,_0x3232c4);}export function validateSecureFilePermissions(_0x1bef6c){const _0x583d3f=a65_0x8e0d;try{const _0xa48ae0=a65_0x3bb68a[_0x583d3f(0x14a)](_0x1bef6c),_0x55d532=_0xa48ae0[_0x583d3f(0x13f)]&0x1ff,_0x4980b3=(_0x55d532&0x3f)!==0x0;if(_0x4980b3)return console[_0x583d3f(0x149)](_0x583d3f(0x140)+_0x1bef6c+'\x20has\x20insecure\x20permissions\x20('+_0x55d532[_0x583d3f(0x13b)](0x8)+_0x583d3f(0x143)+_0x583d3f(0x13a)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x49277c,_0x35e52f){const _0x37a263=a65_0x8e0d,_0x223147=a65_0x26220d[_0x37a263(0x13c)](_0x49277c);createSecureDirectory(_0x223147),a65_0x3bb68a[_0x37a263(0x13e)](_0x49277c,_0x35e52f,{'mode':0x180}),setSecureFilePermissions(_0x49277c);}
@@ -1 +1 @@
1
- function a65_0x1e11(_0xcdfd1f,_0xcdd8cc){const _0x23f382=a65_0x23f3();return a65_0x1e11=function(_0x1e1182,_0x9a9f8f){_0x1e1182=_0x1e1182-0x11d;let _0x4d1c6e=_0x23f382[_0x1e1182];return _0x4d1c6e;},a65_0x1e11(_0xcdfd1f,_0xcdd8cc);}(function(_0x3aaaed,_0xd671a9){const _0x444c5d=a65_0x1e11,_0x3a1317=_0x3aaaed();while(!![]){try{const _0x20bb1e=-parseInt(_0x444c5d(0x125))/0x1+parseInt(_0x444c5d(0x128))/0x2*(-parseInt(_0x444c5d(0x11d))/0x3)+-parseInt(_0x444c5d(0x129))/0x4+parseInt(_0x444c5d(0x127))/0x5+parseInt(_0x444c5d(0x121))/0x6+parseInt(_0x444c5d(0x12e))/0x7+parseInt(_0x444c5d(0x12a))/0x8*(parseInt(_0x444c5d(0x11f))/0x9);if(_0x20bb1e===_0xd671a9)break;else _0x3a1317['push'](_0x3a1317['shift']());}catch(_0x167dfc){_0x3a1317['push'](_0x3a1317['shift']());}}}(a65_0x23f3,0xdc46e));export function detectFormatFromExtension(_0x1c7153){const _0x47e4c1=a65_0x1e11,_0x5bcc85=_0x1c7153[_0x47e4c1(0x126)]()[_0x47e4c1(0x12b)]('.')[_0x47e4c1(0x122)]();switch(_0x5bcc85){case'json':return _0x47e4c1(0x124);case _0x47e4c1(0x12c):return _0x47e4c1(0x12c);case _0x47e4c1(0x123):case _0x47e4c1(0x120):return _0x47e4c1(0x123);case _0x47e4c1(0x11e):case'text':return _0x47e4c1(0x12d);default:return undefined;}}function a65_0x23f3(){const _0x3d44bf=['1461050taMSCy','1048414TkGzzh','4528928hOBEpk','8RfjuGB','split','jsonl','table','7768551kLRYyR','6AoDgKZ','txt','22811499vvGwyx','tab','751710WbFcsL','pop','tsv','json','978999DRziRd','toLowerCase'];a65_0x23f3=function(){return _0x3d44bf;};return a65_0x23f3();}export function resolveOutputFormat(_0x1093a4,_0x107fdb,_0x4b783d){if(_0x1093a4)return _0x1093a4;if(_0x107fdb){const _0x44baea=detectFormatFromExtension(_0x107fdb);if(_0x44baea)return _0x44baea;}return _0x4b783d;}
1
+ function a66_0x91a4(_0xfd13ee,_0x3493b5){const _0x185bc1=a66_0x185b();return a66_0x91a4=function(_0x91a42c,_0x5ecdea){_0x91a42c=_0x91a42c-0x17b;let _0xe8682a=_0x185bc1[_0x91a42c];return _0xe8682a;},a66_0x91a4(_0xfd13ee,_0x3493b5);}(function(_0x754760,_0x55465c){const _0x4a0489=a66_0x91a4,_0x50a4a8=_0x754760();while(!![]){try{const _0x389f7c=-parseInt(_0x4a0489(0x181))/0x1*(parseInt(_0x4a0489(0x18b))/0x2)+-parseInt(_0x4a0489(0x184))/0x3*(-parseInt(_0x4a0489(0x17c))/0x4)+-parseInt(_0x4a0489(0x182))/0x5+parseInt(_0x4a0489(0x18a))/0x6+parseInt(_0x4a0489(0x185))/0x7+-parseInt(_0x4a0489(0x187))/0x8*(parseInt(_0x4a0489(0x17d))/0x9)+-parseInt(_0x4a0489(0x189))/0xa;if(_0x389f7c===_0x55465c)break;else _0x50a4a8['push'](_0x50a4a8['shift']());}catch(_0x5c7b6d){_0x50a4a8['push'](_0x50a4a8['shift']());}}}(a66_0x185b,0x4c379));export function detectFormatFromExtension(_0x75c536){const _0x3fcfaa=a66_0x91a4,_0xd2ecb3=_0x75c536['toLowerCase']()[_0x3fcfaa(0x17f)]('.')[_0x3fcfaa(0x17e)]();switch(_0xd2ecb3){case _0x3fcfaa(0x180):return _0x3fcfaa(0x180);case'jsonl':return _0x3fcfaa(0x183);case _0x3fcfaa(0x18c):case _0x3fcfaa(0x17b):return _0x3fcfaa(0x18c);case'txt':case _0x3fcfaa(0x188):return _0x3fcfaa(0x186);default:return undefined;}}function a66_0x185b(){const _0x44d3cd=['347416nmaEnM','text','3718030nLYJPo','3694290WzjOpY','184jMwaQS','tsv','tab','12xUzxnq','36kLTcux','pop','split','json','1657iXkyFh','232955qoenGy','jsonl','25977CaYsSs','2905273GbFRyS','table'];a66_0x185b=function(){return _0x44d3cd;};return a66_0x185b();}export function resolveOutputFormat(_0x4524c3,_0x32c79b,_0x489fe9){if(_0x4524c3)return _0x4524c3;if(_0x32c79b){const _0x4ad0e2=detectFormatFromExtension(_0x32c79b);if(_0x4ad0e2)return _0x4ad0e2;}return _0x489fe9;}
@@ -1 +1 @@
1
- (function(_0x231954,_0x2bf7d5){const _0xe4860=a66_0x5d31,_0x246e9d=_0x231954();while(!![]){try{const _0x405a80=parseInt(_0xe4860(0x21b))/0x1+-parseInt(_0xe4860(0x1f8))/0x2*(parseInt(_0xe4860(0x1ff))/0x3)+-parseInt(_0xe4860(0x20c))/0x4+parseInt(_0xe4860(0x1ef))/0x5*(-parseInt(_0xe4860(0x1f3))/0x6)+-parseInt(_0xe4860(0x20b))/0x7+parseInt(_0xe4860(0x217))/0x8*(-parseInt(_0xe4860(0x215))/0x9)+parseInt(_0xe4860(0x1ed))/0xa;if(_0x405a80===_0x2bf7d5)break;else _0x246e9d['push'](_0x246e9d['shift']());}catch(_0x476d49){_0x246e9d['push'](_0x246e9d['shift']());}}}(a66_0x5954,0x9df22));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a66_0x5954(){const _0x25163f=['toISOString','name','data','No\x20rows\x20returned','4yzXmTf','forEach','slice','row','\x20rows\x20(','int','length','1432536RuvfwW','pow','columns','join','replace','entries','min','floor','max','\x20shown)','bool','tsv','7265965POGzjq','3115104LfqITu','number','long','object','padEnd','date','repeat','push','\x20row','333kAekWv','string','23944WQFbMx','log','boolean','table','610995KNdymM','json','true','type','test','map','double','reduce','array','timestamp','stdout','29537880FgiZlO','stringify','58835cYANNN','false','startsWith','toFixed','18vZlnGc'];a66_0x5954=function(){return _0x25163f;};return a66_0x5954();}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x3a6058=a66_0x5d31;return process[_0x3a6058(0x1ec)][_0x3a6058(0x201)]||Infinity;}export function formatAsTable(_0x51604f,_0x207ba3=DEFAULT_MAX_DISPLAY_ROWS,_0x520586=![],_0x40fc35={}){const _0x57a501=a66_0x5d31;if(_0x51604f[_0x57a501(0x1f6)][_0x57a501(0x1fe)]===0x0)return _0x57a501(0x1f7);const _0x452949=_0x51604f[_0x57a501(0x201)][_0x57a501(0x1e7)](_0x185d16=>_0x185d16['name']),_0x5ec96e=_0x51604f[_0x57a501(0x201)][_0x57a501(0x1e7)](_0x5be26b=>simplifyType(_0x5be26b[_0x57a501(0x1e5)])),_0x38f62b=_0x51604f[_0x57a501(0x1f6)][_0x57a501(0x1fa)](0x0,_0x207ba3),_0x361a20=_0x51604f[_0x57a501(0x1f6)][_0x57a501(0x1fe)],_0x2940b4=_0x361a20>_0x207ba3,_0x44505e=[],_0x3e5640=getTerminalWidth(),_0x1a71c9=_0x3e5640!==Infinity,_0x2d4733=0x32;let _0x474df5=_0x452949[_0x57a501(0x1e7)]((_0x4bebb3,_0x6831d2)=>{const _0x3211f7=_0x57a501,_0x572ae3=stringWidth(_0x5ec96e[_0x6831d2]),_0x4aca8c=Math[_0x3211f7(0x207)](..._0x38f62b[_0x3211f7(0x1e7)](_0xef8245=>{const _0x274136=_0xef8245[_0x4bebb3];return stringWidth(formatValue(_0x274136));})),_0x2f8ec0=Math['max'](stringWidth(_0x4bebb3),_0x572ae3,_0x4aca8c);return _0x520586?_0x2f8ec0:Math[_0x3211f7(0x205)](_0x2f8ec0,_0x2d4733);});if(_0x1a71c9&&!_0x520586&&_0x452949[_0x57a501(0x1fe)]>0x0){const _0x548f9f=_0x4ad0e=>{let _0x5b6d27=0x1;for(const _0x3d2a49 of _0x4ad0e){_0x5b6d27+=_0x3d2a49+0x3;}return _0x5b6d27+0x1;};let _0x1075ba=_0x548f9f(_0x474df5);if(_0x1075ba>_0x3e5640){const _0x1ecf70=0x3;for(let _0x7493af=_0x474df5[_0x57a501(0x1fe)]-0x1;_0x7493af>=0x0;_0x7493af--){_0x1075ba=_0x548f9f(_0x474df5);if(_0x1075ba<=_0x3e5640)break;const _0x1c5c34=_0x474df5[_0x7493af],_0x31771a=_0x1075ba-_0x3e5640,_0x377100=_0x1c5c34-_0x1ecf70,_0xa78c5c=Math[_0x57a501(0x205)](_0x31771a,_0x377100);_0xa78c5c>0x0&&(_0x474df5[_0x7493af]=_0x1c5c34-_0xa78c5c);}}}const _0x1d1cd1=_0x452949,_0x46b488=_0x5ec96e,_0xe4d4fc=_0x474df5,_0x4edcc3=_0x474df5;_0x44505e['push'](colorBorder('┌'+_0x4edcc3[_0x57a501(0x1e7)](_0x12c511=>'─'[_0x57a501(0x212)](_0x12c511+0x2))[_0x57a501(0x202)]('┬')+'┐',_0x40fc35));const _0x525334=_0x1d1cd1[_0x57a501(0x1e7)]((_0x4fbcdf,_0xcf1174)=>centerAlign(_0x4fbcdf,_0xe4d4fc[_0xcf1174]));_0x44505e[_0x57a501(0x213)](colorBorder('│',_0x40fc35)+'\x20'+_0x525334['join']('\x20'+colorBorder('│',_0x40fc35)+'\x20')+'\x20'+colorBorder('│',_0x40fc35));const _0x363e9b=_0x46b488[_0x57a501(0x1e7)]((_0x593656,_0x51132e)=>colorType(centerAlign(_0x593656,_0xe4d4fc[_0x51132e]),_0x40fc35));_0x44505e[_0x57a501(0x213)](colorBorder('│',_0x40fc35)+'\x20'+_0x363e9b[_0x57a501(0x202)]('\x20'+colorBorder('│',_0x40fc35)+'\x20')+'\x20'+colorBorder('│',_0x40fc35)),_0x44505e['push'](colorBorder('├'+_0x4edcc3[_0x57a501(0x1e7)](_0x3ce3be=>'─'['repeat'](_0x3ce3be+0x2))[_0x57a501(0x202)]('┼')+'┤',_0x40fc35));const _0x5b3f6c=(_0x56c2bf,_0x49b899)=>{const _0x51162e=_0x57a501,_0x109286=stringWidth(_0x56c2bf);if(_0x109286<=_0x49b899)return _0x56c2bf;let _0x19e7fe=_0x56c2bf;while(stringWidth(_0x19e7fe+'…')>_0x49b899&&_0x19e7fe[_0x51162e(0x1fe)]>0x0){_0x19e7fe=_0x19e7fe['slice'](0x0,-0x1);}return _0x19e7fe+'…';};_0x38f62b[_0x57a501(0x1f9)](_0x6fca3e=>{const _0x18fccb=_0x57a501,_0x1022cf=_0x452949[_0x18fccb(0x1e7)]((_0x53a6f0,_0x5a4200)=>{const _0x17d478=_0x18fccb,_0x5f32a4=_0x6fca3e[_0x53a6f0],_0x389f45=formatValue(_0x5f32a4),_0x4d773e=_0xe4d4fc[_0x5a4200],_0x1186e2=_0x5b3f6c(_0x389f45,_0x4d773e),_0x5262a6=typeof _0x5f32a4==='number'||typeof _0x5f32a4===_0x17d478(0x216)&&/^-?\d+$/[_0x17d478(0x1e6)](_0x5f32a4);return _0x5262a6?padStart(_0x1186e2,_0x4d773e):padEnd(_0x1186e2,_0x4d773e);});_0x44505e['push'](colorBorder('│',_0x40fc35)+'\x20'+_0x1022cf[_0x18fccb(0x202)]('\x20'+colorBorder('│',_0x40fc35)+'\x20')+'\x20'+colorBorder('│',_0x40fc35));});const _0x42a806=_0x4edcc3[_0x57a501(0x1e9)]((_0x1f54a1,_0x48eb72)=>_0x1f54a1+_0x48eb72+0x3,-0x1);_0x44505e[_0x57a501(0x213)](colorBorder('├'+_0x4edcc3['map'](_0x55b939=>'─'[_0x57a501(0x212)](_0x55b939+0x2))[_0x57a501(0x202)]('┴')+'┤',_0x40fc35));let _0x78b5c7;_0x2940b4?_0x78b5c7=_0x361a20+_0x57a501(0x1fc)+_0x207ba3+_0x57a501(0x208):_0x78b5c7=_0x361a20+_0x57a501(0x214)+(_0x361a20===0x1?'':'s');const _0x24bba7=_0x78b5c7[_0x57a501(0x210)](_0x42a806-0x2);return _0x44505e[_0x57a501(0x213)](colorBorder('│',_0x40fc35)+'\x20'+_0x24bba7+'\x20'+colorBorder('│',_0x40fc35)),_0x44505e[_0x57a501(0x213)](colorBorder('└'+'─'['repeat'](_0x42a806)+'┘',_0x40fc35)),_0x44505e[_0x57a501(0x202)]('\x0a');}function simplifyType(_0x5484ad){const _0x220887=a66_0x5d31,_0x55ec1a={'varchar':'string','bigint':_0x220887(0x20e),'integer':_0x220887(0x1fd),'double':_0x220887(0x1e8),'boolean':_0x220887(0x209),'date':_0x220887(0x211),'timestamp':_0x220887(0x1eb),'array':_0x220887(0x1ea),'map':_0x220887(0x1e7),'row':_0x220887(0x1fb)},_0x472c43=_0x5484ad['toLowerCase']();for(const [_0x283da7,_0x15c42a]of Object[_0x220887(0x204)](_0x55ec1a)){if(_0x472c43[_0x220887(0x1f1)](_0x283da7))return _0x15c42a;}return _0x5484ad[_0x220887(0x1fe)]>0xa?_0x5484ad['substring'](0x0,0xa):_0x5484ad;}export function formatAsJSON(_0x59fef2,_0x44fe7b={}){const _0x3f8fe8=a66_0x5d31;if(_0x59fef2[_0x3f8fe8(0x1f6)][_0x3f8fe8(0x1fe)]===0x0)return'[]';if(shouldUseColor(_0x44fe7b))return colorizeJSON(_0x59fef2[_0x3f8fe8(0x1f6)],_0x44fe7b);const _0x130dd1=_0x59fef2[_0x3f8fe8(0x1f6)]['map'](_0x37084a=>'\x20\x20'+JSON[_0x3f8fe8(0x1ee)](_0x37084a));return'[\x0a'+_0x130dd1['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x119654,_0x4f1b46={}){const _0x503a2c=a66_0x5d31;if(_0x119654['data'][_0x503a2c(0x1fe)]===0x0)return'';if(shouldUseColor(_0x4f1b46))return _0x119654[_0x503a2c(0x1f6)][_0x503a2c(0x1e7)](_0x2afdda=>colorizeJSONCompact(_0x2afdda,_0x4f1b46))[_0x503a2c(0x202)]('\x0a');return _0x119654[_0x503a2c(0x1f6)]['map'](_0x260bc8=>JSON[_0x503a2c(0x1ee)](_0x260bc8))[_0x503a2c(0x202)]('\x0a');}export function formatAsTSV(_0x2ef50c){const _0x44000d=a66_0x5d31;if(_0x2ef50c[_0x44000d(0x1f6)][_0x44000d(0x1fe)]===0x0)return'';const _0x571d1a=[],_0xae3f29=_0x2ef50c[_0x44000d(0x201)]['map'](_0x1dc88f=>_0x1dc88f[_0x44000d(0x1f5)]);return _0x571d1a['push'](_0xae3f29['join']('\x09')),_0x2ef50c['data'][_0x44000d(0x1f9)](_0x54d5c4=>{const _0x255a40=_0x44000d,_0x11ee0f=_0xae3f29[_0x255a40(0x1e7)](_0x3e8209=>{const _0x29053a=_0x54d5c4[_0x3e8209];return formatValueForTSV(_0x29053a);});_0x571d1a[_0x255a40(0x213)](_0x11ee0f[_0x255a40(0x202)]('\x09'));}),_0x571d1a['join']('\x0a');}function formatValue(_0x152ce5){const _0x2584ed=a66_0x5d31;if(_0x152ce5===null||_0x152ce5===undefined)return'';if(typeof _0x152ce5==='string'){const _0x2da053=_0x152ce5['replace'](/\n/g,'\x5cn')[_0x2584ed(0x203)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x2da053;}if(typeof _0x152ce5===_0x2584ed(0x20d))return String(_0x152ce5);if(typeof _0x152ce5===_0x2584ed(0x219))return _0x152ce5?_0x2584ed(0x1e4):_0x2584ed(0x1f0);if(_0x152ce5 instanceof Date)return _0x152ce5[_0x2584ed(0x1f4)]();if(typeof _0x152ce5===_0x2584ed(0x20f))return JSON[_0x2584ed(0x1ee)](_0x152ce5);return String(_0x152ce5);}function formatValueForTSV(_0x2c6970){const _0x1e27c1=a66_0x5d31;if(_0x2c6970===null||_0x2c6970===undefined)return'';if(typeof _0x2c6970===_0x1e27c1(0x216))return _0x2c6970['replace'](/\t/g,'\x5ct')[_0x1e27c1(0x203)](/\n/g,'\x5cn');if(typeof _0x2c6970===_0x1e27c1(0x20d)||typeof _0x2c6970===_0x1e27c1(0x219))return String(_0x2c6970);if(_0x2c6970 instanceof Date)return _0x2c6970[_0x1e27c1(0x1f4)]();if(typeof _0x2c6970===_0x1e27c1(0x20f))return JSON[_0x1e27c1(0x1ee)](_0x2c6970);return String(_0x2c6970);}export function formatQueryResult(_0x923af5,_0x313956){const _0x3ea568=a66_0x5d31;switch(_0x313956){case _0x3ea568(0x21a):return formatAsTable(_0x923af5);case _0x3ea568(0x21c):return formatAsJSON(_0x923af5);case'jsonl':return formatAsJSONL(_0x923af5);case _0x3ea568(0x20a):return formatAsTSV(_0x923af5);default:return formatAsJSON(_0x923af5);}}function a66_0x5d31(_0x43b018,_0x1ad9f0){const _0x5954dc=a66_0x5954();return a66_0x5d31=function(_0x5d3195,_0x45d581){_0x5d3195=_0x5d3195-0x1e4;let _0x5e03f3=_0x5954dc[_0x5d3195];return _0x5e03f3;},a66_0x5d31(_0x43b018,_0x1ad9f0);}export function formatBytes(_0x1bb0d1){const _0x187366=a66_0x5d31;if(_0x1bb0d1===0x0)return'0\x20B';const _0x19a0e3=['B','KB','MB','GB','TB'],_0x19d308=0x400,_0x4505d1=Math[_0x187366(0x206)](Math[_0x187366(0x218)](_0x1bb0d1)/Math[_0x187366(0x218)](_0x19d308)),_0x8cd301=_0x1bb0d1/Math[_0x187366(0x200)](_0x19d308,_0x4505d1),_0x579504=_0x8cd301>=0xa?0x1:0x2;return _0x8cd301[_0x187366(0x1f2)](_0x579504)+'\x20'+_0x19a0e3[_0x4505d1];}export function formatRows(_0x42d93a){const _0x2af704=a66_0x5d31;if(_0x42d93a==null)return'-';if(_0x42d93a===0x0)return'0';if(_0x42d93a<0x3e8)return _0x42d93a['toString']();const _0x365ccf=['','K','M','B','T'],_0x2e8ea3=0x3e8,_0xf322a9=Math[_0x2af704(0x206)](Math['log'](_0x42d93a)/Math[_0x2af704(0x218)](_0x2e8ea3)),_0x3d0390=_0x42d93a/Math[_0x2af704(0x200)](_0x2e8ea3,_0xf322a9),_0x278e5b=_0x3d0390>=0xa?0x1:0x2;return''+_0x3d0390[_0x2af704(0x1f2)](_0x278e5b)+_0x365ccf[_0xf322a9];}
1
+ (function(_0x29358b,_0x213443){const _0x107951=a67_0x195e,_0x37e849=_0x29358b();while(!![]){try{const _0x3a0079=parseInt(_0x107951(0x128))/0x1*(-parseInt(_0x107951(0x122))/0x2)+-parseInt(_0x107951(0x13a))/0x3+-parseInt(_0x107951(0x125))/0x4*(parseInt(_0x107951(0x11a))/0x5)+parseInt(_0x107951(0x138))/0x6+parseInt(_0x107951(0x140))/0x7*(-parseInt(_0x107951(0x13f))/0x8)+parseInt(_0x107951(0x11e))/0x9+parseInt(_0x107951(0x147))/0xa*(parseInt(_0x107951(0x121))/0xb);if(_0x3a0079===_0x213443)break;else _0x37e849['push'](_0x37e849['shift']());}catch(_0x26a1d3){_0x37e849['push'](_0x37e849['shift']());}}}(a67_0x1967,0xe6b23));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 _0x2230e9=a67_0x195e;return process[_0x2230e9(0x11b)][_0x2230e9(0x137)]||Infinity;}export function formatAsTable(_0x21b653,_0x21f301=DEFAULT_MAX_DISPLAY_ROWS,_0x1653f2=![],_0x16298d={}){const _0x9db125=a67_0x195e;if(_0x21b653[_0x9db125(0x127)][_0x9db125(0x135)]===0x0)return _0x9db125(0x132);const _0x281bd9=_0x21b653[_0x9db125(0x137)][_0x9db125(0x123)](_0x2c57d3=>_0x2c57d3['name']),_0x1d5103=_0x21b653[_0x9db125(0x137)][_0x9db125(0x123)](_0x4d3f6b=>simplifyType(_0x4d3f6b[_0x9db125(0x119)])),_0x57b81e=_0x21b653[_0x9db125(0x127)][_0x9db125(0x13d)](0x0,_0x21f301),_0x297cfc=_0x21b653[_0x9db125(0x127)][_0x9db125(0x135)],_0x57d60c=_0x297cfc>_0x21f301,_0x36f6ec=[],_0x57d2a5=getTerminalWidth(),_0x236d34=_0x57d2a5!==Infinity,_0x2ad578=0x32;let _0x3dd988=_0x281bd9['map']((_0x132364,_0x2edca6)=>{const _0x38a7c1=_0x9db125,_0x48ba28=stringWidth(_0x1d5103[_0x2edca6]),_0x562d2b=Math[_0x38a7c1(0x134)](..._0x57b81e[_0x38a7c1(0x123)](_0x433b5a=>{const _0x59b63e=_0x433b5a[_0x132364];return stringWidth(formatValue(_0x59b63e));})),_0x409d20=Math[_0x38a7c1(0x134)](stringWidth(_0x132364),_0x48ba28,_0x562d2b);return _0x1653f2?_0x409d20:Math[_0x38a7c1(0x13e)](_0x409d20,_0x2ad578);});if(_0x236d34&&!_0x1653f2&&_0x281bd9[_0x9db125(0x135)]>0x0){const _0x4f5823=_0x1daa51=>{let _0x59a1c4=0x1;for(const _0xbf61b3 of _0x1daa51){_0x59a1c4+=_0xbf61b3+0x3;}return _0x59a1c4+0x1;};let _0x4738ba=_0x4f5823(_0x3dd988);if(_0x4738ba>_0x57d2a5){const _0x32d2ec=0x3;for(let _0x20d3bb=_0x3dd988[_0x9db125(0x135)]-0x1;_0x20d3bb>=0x0;_0x20d3bb--){_0x4738ba=_0x4f5823(_0x3dd988);if(_0x4738ba<=_0x57d2a5)break;const _0x15f3ca=_0x3dd988[_0x20d3bb],_0x52a56f=_0x4738ba-_0x57d2a5,_0x1bb821=_0x15f3ca-_0x32d2ec,_0x1ed909=Math[_0x9db125(0x13e)](_0x52a56f,_0x1bb821);_0x1ed909>0x0&&(_0x3dd988[_0x20d3bb]=_0x15f3ca-_0x1ed909);}}}const _0x5064db=_0x281bd9,_0x558a80=_0x1d5103,_0x1ca00e=_0x3dd988,_0x5c74aa=_0x3dd988;_0x36f6ec[_0x9db125(0x13b)](colorBorder('┌'+_0x5c74aa[_0x9db125(0x123)](_0x374f4b=>'─'[_0x9db125(0x11d)](_0x374f4b+0x2))[_0x9db125(0x12a)]('┬')+'┐',_0x16298d));const _0x4dda3d=_0x5064db[_0x9db125(0x123)]((_0x1157de,_0x5eb65e)=>centerAlign(_0x1157de,_0x1ca00e[_0x5eb65e]));_0x36f6ec[_0x9db125(0x13b)](colorBorder('│',_0x16298d)+'\x20'+_0x4dda3d['join']('\x20'+colorBorder('│',_0x16298d)+'\x20')+'\x20'+colorBorder('│',_0x16298d));const _0x3b313b=_0x558a80[_0x9db125(0x123)]((_0x20b869,_0x21432b)=>colorType(centerAlign(_0x20b869,_0x1ca00e[_0x21432b]),_0x16298d));_0x36f6ec['push'](colorBorder('│',_0x16298d)+'\x20'+_0x3b313b[_0x9db125(0x12a)]('\x20'+colorBorder('│',_0x16298d)+'\x20')+'\x20'+colorBorder('│',_0x16298d)),_0x36f6ec[_0x9db125(0x13b)](colorBorder('├'+_0x5c74aa[_0x9db125(0x123)](_0x39a9a7=>'─'['repeat'](_0x39a9a7+0x2))[_0x9db125(0x12a)]('┼')+'┤',_0x16298d));const _0x1e61e8=(_0x4b4f93,_0x43536a)=>{const _0x6ab6bc=_0x9db125,_0x1dbbca=stringWidth(_0x4b4f93);if(_0x1dbbca<=_0x43536a)return _0x4b4f93;let _0x351de7=_0x4b4f93;while(stringWidth(_0x351de7+'…')>_0x43536a&&_0x351de7[_0x6ab6bc(0x135)]>0x0){_0x351de7=_0x351de7[_0x6ab6bc(0x13d)](0x0,-0x1);}return _0x351de7+'…';};_0x57b81e[_0x9db125(0x11c)](_0x3b194b=>{const _0x110fb1=_0x9db125,_0x362656=_0x281bd9[_0x110fb1(0x123)]((_0xe3d9ea,_0x462760)=>{const _0x40243b=_0x110fb1,_0x1b5b20=_0x3b194b[_0xe3d9ea],_0x239f77=formatValue(_0x1b5b20),_0x2aff7a=_0x1ca00e[_0x462760],_0x2fc9fa=_0x1e61e8(_0x239f77,_0x2aff7a),_0x67d328=typeof _0x1b5b20==='number'||typeof _0x1b5b20===_0x40243b(0x12e)&&/^-?\d+$/[_0x40243b(0x126)](_0x1b5b20);return _0x67d328?padStart(_0x2fc9fa,_0x2aff7a):padEnd(_0x2fc9fa,_0x2aff7a);});_0x36f6ec[_0x110fb1(0x13b)](colorBorder('│',_0x16298d)+'\x20'+_0x362656[_0x110fb1(0x12a)]('\x20'+colorBorder('│',_0x16298d)+'\x20')+'\x20'+colorBorder('│',_0x16298d));});const _0x3ef70b=_0x5c74aa['reduce']((_0x22ad10,_0x2366dc)=>_0x22ad10+_0x2366dc+0x3,-0x1);_0x36f6ec[_0x9db125(0x13b)](colorBorder('├'+_0x5c74aa[_0x9db125(0x123)](_0x2c34d9=>'─'['repeat'](_0x2c34d9+0x2))['join']('┴')+'┤',_0x16298d));let _0x1d4aa5;_0x57d60c?_0x1d4aa5=_0x297cfc+'\x20rows\x20('+_0x21f301+_0x9db125(0x142):_0x1d4aa5=_0x297cfc+_0x9db125(0x133)+(_0x297cfc===0x1?'':'s');const _0x32484f=_0x1d4aa5['padEnd'](_0x3ef70b-0x2);return _0x36f6ec['push'](colorBorder('│',_0x16298d)+'\x20'+_0x32484f+'\x20'+colorBorder('│',_0x16298d)),_0x36f6ec[_0x9db125(0x13b)](colorBorder('└'+'─'[_0x9db125(0x11d)](_0x3ef70b)+'┘',_0x16298d)),_0x36f6ec[_0x9db125(0x12a)]('\x0a');}function a67_0x1967(){const _0xe9f8bc=['1243891CTUpaF','2NLHswV','map','table','45676UEUHxm','test','data','306363aDDMvW','object','join','date','entries','stringify','string','toFixed','tsv','double','No\x20rows\x20returned','\x20row','max','length','bool','columns','1708860hAtwPV','boolean','3918150UzZGdP','push','toISOString','slice','min','573272dkNukg','133ejhjCN','toString','\x20shown)','log','pow','floor','json','350jmKHec','0\x20B','jsonl','type','355fkXsxD','stdout','forEach','repeat','4382721pDWqXZ','replace','number'];a67_0x1967=function(){return _0xe9f8bc;};return a67_0x1967();}function simplifyType(_0x5703c2){const _0x1c48ac=a67_0x195e,_0x57cb62={'varchar':_0x1c48ac(0x12e),'bigint':'long','integer':'int','double':_0x1c48ac(0x131),'boolean':_0x1c48ac(0x136),'date':_0x1c48ac(0x12b),'timestamp':'timestamp','array':'array','map':_0x1c48ac(0x123),'row':'row'},_0x40b4b3=_0x5703c2['toLowerCase']();for(const [_0x52b669,_0x276844]of Object[_0x1c48ac(0x12c)](_0x57cb62)){if(_0x40b4b3['startsWith'](_0x52b669))return _0x276844;}return _0x5703c2[_0x1c48ac(0x135)]>0xa?_0x5703c2['substring'](0x0,0xa):_0x5703c2;}export function formatAsJSON(_0x2cbe32,_0x2029b2={}){const _0x29b7f6=a67_0x195e;if(_0x2cbe32['data'][_0x29b7f6(0x135)]===0x0)return'[]';if(shouldUseColor(_0x2029b2))return colorizeJSON(_0x2cbe32[_0x29b7f6(0x127)],_0x2029b2);const _0x4eefa7=_0x2cbe32[_0x29b7f6(0x127)][_0x29b7f6(0x123)](_0x2d87c1=>'\x20\x20'+JSON['stringify'](_0x2d87c1));return'[\x0a'+_0x4eefa7[_0x29b7f6(0x12a)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x28ea60,_0xa1e9f1={}){const _0x40e382=a67_0x195e;if(_0x28ea60[_0x40e382(0x127)][_0x40e382(0x135)]===0x0)return'';if(shouldUseColor(_0xa1e9f1))return _0x28ea60[_0x40e382(0x127)]['map'](_0x46ef67=>colorizeJSONCompact(_0x46ef67,_0xa1e9f1))[_0x40e382(0x12a)]('\x0a');return _0x28ea60[_0x40e382(0x127)][_0x40e382(0x123)](_0x5d57fc=>JSON['stringify'](_0x5d57fc))[_0x40e382(0x12a)]('\x0a');}export function formatAsTSV(_0x4b9a4d){const _0x5d95f0=a67_0x195e;if(_0x4b9a4d[_0x5d95f0(0x127)][_0x5d95f0(0x135)]===0x0)return'';const _0x2dccb0=[],_0x43cedb=_0x4b9a4d[_0x5d95f0(0x137)][_0x5d95f0(0x123)](_0x3bf252=>_0x3bf252['name']);return _0x2dccb0['push'](_0x43cedb['join']('\x09')),_0x4b9a4d[_0x5d95f0(0x127)][_0x5d95f0(0x11c)](_0x55116e=>{const _0x5def51=_0x5d95f0,_0x4a646e=_0x43cedb[_0x5def51(0x123)](_0x428afe=>{const _0xfb4dfc=_0x55116e[_0x428afe];return formatValueForTSV(_0xfb4dfc);});_0x2dccb0[_0x5def51(0x13b)](_0x4a646e[_0x5def51(0x12a)]('\x09'));}),_0x2dccb0['join']('\x0a');}function formatValue(_0xe651d){const _0x3f7503=a67_0x195e;if(_0xe651d===null||_0xe651d===undefined)return'';if(typeof _0xe651d==='string'){const _0x2c8469=_0xe651d[_0x3f7503(0x11f)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x3f7503(0x11f)](/\t/g,'\x5ct');return _0x2c8469;}if(typeof _0xe651d===_0x3f7503(0x120))return String(_0xe651d);if(typeof _0xe651d===_0x3f7503(0x139))return _0xe651d?'true':'false';if(_0xe651d instanceof Date)return _0xe651d[_0x3f7503(0x13c)]();if(typeof _0xe651d===_0x3f7503(0x129))return JSON[_0x3f7503(0x12d)](_0xe651d);return String(_0xe651d);}function a67_0x195e(_0x59c095,_0x31370c){const _0x196797=a67_0x1967();return a67_0x195e=function(_0x195e2f,_0x544e90){_0x195e2f=_0x195e2f-0x118;let _0xaa6037=_0x196797[_0x195e2f];return _0xaa6037;},a67_0x195e(_0x59c095,_0x31370c);}function formatValueForTSV(_0x10e1ff){const _0x58cd62=a67_0x195e;if(_0x10e1ff===null||_0x10e1ff===undefined)return'';if(typeof _0x10e1ff===_0x58cd62(0x12e))return _0x10e1ff[_0x58cd62(0x11f)](/\t/g,'\x5ct')[_0x58cd62(0x11f)](/\n/g,'\x5cn');if(typeof _0x10e1ff===_0x58cd62(0x120)||typeof _0x10e1ff==='boolean')return String(_0x10e1ff);if(_0x10e1ff instanceof Date)return _0x10e1ff[_0x58cd62(0x13c)]();if(typeof _0x10e1ff===_0x58cd62(0x129))return JSON[_0x58cd62(0x12d)](_0x10e1ff);return String(_0x10e1ff);}export function formatQueryResult(_0x2db357,_0x64803d){const _0x2a6118=a67_0x195e;switch(_0x64803d){case _0x2a6118(0x124):return formatAsTable(_0x2db357);case _0x2a6118(0x146):return formatAsJSON(_0x2db357);case _0x2a6118(0x118):return formatAsJSONL(_0x2db357);case _0x2a6118(0x130):return formatAsTSV(_0x2db357);default:return formatAsJSON(_0x2db357);}}export function formatBytes(_0x3a544c){const _0xe9770e=a67_0x195e;if(_0x3a544c===0x0)return _0xe9770e(0x148);const _0x4b5df3=['B','KB','MB','GB','TB'],_0x2dbd3e=0x400,_0x159662=Math[_0xe9770e(0x145)](Math['log'](_0x3a544c)/Math['log'](_0x2dbd3e)),_0xb5cbcf=_0x3a544c/Math['pow'](_0x2dbd3e,_0x159662),_0x27a5c9=_0xb5cbcf>=0xa?0x1:0x2;return _0xb5cbcf[_0xe9770e(0x12f)](_0x27a5c9)+'\x20'+_0x4b5df3[_0x159662];}export function formatRows(_0x1ba04a){const _0x24e76=a67_0x195e;if(_0x1ba04a==null)return'-';if(_0x1ba04a===0x0)return'0';if(_0x1ba04a<0x3e8)return _0x1ba04a[_0x24e76(0x141)]();const _0x5e0b38=['','K','M','B','T'],_0x45fc36=0x3e8,_0x227485=Math['floor'](Math[_0x24e76(0x143)](_0x1ba04a)/Math['log'](_0x45fc36)),_0x19eb2b=_0x1ba04a/Math[_0x24e76(0x144)](_0x45fc36,_0x227485),_0x317f22=_0x19eb2b>=0xa?0x1:0x2;return''+_0x19eb2b[_0x24e76(0x12f)](_0x317f22)+_0x5e0b38[_0x227485];}
@@ -1 +1 @@
1
- function a67_0x5bb6(_0x1998a8,_0x2a5cce){const _0x147b4e=a67_0x147b();return a67_0x5bb6=function(_0x5bb6b4,_0x59d43d){_0x5bb6b4=_0x5bb6b4-0x184;let _0x5b5c77=_0x147b4e[_0x5bb6b4];return _0x5b5c77;},a67_0x5bb6(_0x1998a8,_0x2a5cce);}function a67_0x147b(){const _0x475fc8=['INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','code','943482jBqjwb','2676236wJnwNI','Permission\x20denied\x20reading\x20file:\x20','NOT_FOUND','Invalid\x20JSON\x20string:\x20','18103250fRXTQp','468cOViru','message','1768KgaKbd','45342cCGfmi','Invalid\x20JSON\x20in\x20file\x20\x27','File\x20not\x20found:\x20','10vMcBlr','parse','EACCES','280fUMiee','5145870hGYzWG','utf-8','PERMISSION_DENIED','1857kvpomH','4613dsDIzG','INTERNAL'];a67_0x147b=function(){return _0x475fc8;};return a67_0x147b();}(function(_0x37b798,_0x5b7033){const _0xd4c1cd=a67_0x5bb6,_0x40cde7=_0x37b798();while(!![]){try{const _0x1e5ec3=-parseInt(_0xd4c1cd(0x18c))/0x1*(parseInt(_0xd4c1cd(0x198))/0x2)+parseInt(_0xd4c1cd(0x192))/0x3+parseInt(_0xd4c1cd(0x193))/0x4*(-parseInt(_0xd4c1cd(0x185))/0x5)+parseInt(_0xd4c1cd(0x189))/0x6+parseInt(_0xd4c1cd(0x18d))/0x7*(-parseInt(_0xd4c1cd(0x19a))/0x8)+-parseInt(_0xd4c1cd(0x19b))/0x9*(parseInt(_0xd4c1cd(0x188))/0xa)+parseInt(_0xd4c1cd(0x197))/0xb;if(_0x1e5ec3===_0x5b7033)break;else _0x40cde7['push'](_0x40cde7['shift']());}catch(_0x25ab1a){_0x40cde7['push'](_0x40cde7['shift']());}}}(a67_0x147b,0xb9302));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1a51d1,_0xeca0e2){const _0x10bc03=a67_0x5bb6;try{if(_0xeca0e2){const _0x17a796=await readFile(_0x1a51d1,_0x10bc03(0x18a));try{return JSON[_0x10bc03(0x186)](_0x17a796);}catch(_0x1e6b45){throw new SDKError(ErrorCode[_0x10bc03(0x18f)],_0x10bc03(0x19c)+_0x1a51d1+'\x27:\x20'+(_0x1e6b45 instanceof Error?_0x1e6b45[_0x10bc03(0x199)]:String(_0x1e6b45)));}}else try{return JSON[_0x10bc03(0x186)](_0x1a51d1);}catch(_0x4acf50){throw new SDKError(ErrorCode[_0x10bc03(0x18f)],_0x10bc03(0x196)+(_0x4acf50 instanceof Error?_0x4acf50[_0x10bc03(0x199)]:String(_0x4acf50)));}}catch(_0x45cced){if(_0x45cced instanceof SDKError)throw _0x45cced;if(_0x45cced instanceof Error&&_0x10bc03(0x191)in _0x45cced){const _0x32379e=_0x45cced;if(_0x32379e['code']==='ENOENT')throw new SDKError(ErrorCode[_0x10bc03(0x195)],_0x10bc03(0x184)+_0x1a51d1);else{if(_0x32379e[_0x10bc03(0x191)]===_0x10bc03(0x187))throw new SDKError(ErrorCode[_0x10bc03(0x18b)],_0x10bc03(0x194)+_0x1a51d1);}}throw new SDKError(ErrorCode[_0x10bc03(0x18e)],_0x10bc03(0x190)+(_0x45cced instanceof Error?_0x45cced[_0x10bc03(0x199)]:String(_0x45cced)));}}export async function loadJSONFromOptions(_0x24a9df,_0x411c67){if(_0x24a9df&&_0x411c67)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x24a9df)return await loadJSON(_0x24a9df,![]);if(_0x411c67)return await loadJSON(_0x411c67,!![]);return undefined;}
1
+ (function(_0x5f2c20,_0x3d9072){const _0x29aa77=a68_0x4963,_0x389749=_0x5f2c20();while(!![]){try{const _0x1ffe78=parseInt(_0x29aa77(0x161))/0x1+-parseInt(_0x29aa77(0x158))/0x2+-parseInt(_0x29aa77(0x163))/0x3+parseInt(_0x29aa77(0x160))/0x4*(-parseInt(_0x29aa77(0x153))/0x5)+-parseInt(_0x29aa77(0x15a))/0x6+parseInt(_0x29aa77(0x156))/0x7*(-parseInt(_0x29aa77(0x167))/0x8)+parseInt(_0x29aa77(0x152))/0x9*(parseInt(_0x29aa77(0x15e))/0xa);if(_0x1ffe78===_0x3d9072)break;else _0x389749['push'](_0x389749['shift']());}catch(_0xa151a8){_0x389749['push'](_0x389749['shift']());}}}(a68_0x1163,0x75dd4));import{readFile}from'fs/promises';function a68_0x1163(){const _0x5dbabd=['220hoUGwC','code','56JUvVgY','610769xJRYlf','Failed\x20to\x20load\x20JSON:\x20','2297817WDyyrL','Invalid\x20JSON\x20in\x20file\x20\x27','EACCES','Permission\x20denied\x20reading\x20file:\x20','296LXiqFq','message','1256238qZmIpJ','86285yNfVUw','INTERNAL','File\x20not\x20found:\x20','172662ysHMNh','parse','1405744kyXlCc','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','3454500fZYgmt','Invalid\x20JSON\x20string:\x20','PERMISSION_DENIED','INVALID_ARGUMENT'];a68_0x1163=function(){return _0x5dbabd;};return a68_0x1163();}function a68_0x4963(_0x71b0b2,_0x4904a6){const _0x1163d2=a68_0x1163();return a68_0x4963=function(_0x4963f1,_0x74ec1b){_0x4963f1=_0x4963f1-0x152;let _0x2a0727=_0x1163d2[_0x4963f1];return _0x2a0727;},a68_0x4963(_0x71b0b2,_0x4904a6);}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x491e06,_0xb398c8){const _0xe9bff1=a68_0x4963;try{if(_0xb398c8){const _0x1e1cbf=await readFile(_0x491e06,'utf-8');try{return JSON[_0xe9bff1(0x157)](_0x1e1cbf);}catch(_0xf344f4){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xe9bff1(0x164)+_0x491e06+'\x27:\x20'+(_0xf344f4 instanceof Error?_0xf344f4[_0xe9bff1(0x168)]:String(_0xf344f4)));}}else try{return JSON[_0xe9bff1(0x157)](_0x491e06);}catch(_0x4dfaab){throw new SDKError(ErrorCode[_0xe9bff1(0x15d)],_0xe9bff1(0x15b)+(_0x4dfaab instanceof Error?_0x4dfaab['message']:String(_0x4dfaab)));}}catch(_0x2071ed){if(_0x2071ed instanceof SDKError)throw _0x2071ed;if(_0x2071ed instanceof Error&&'code'in _0x2071ed){const _0xb9075b=_0x2071ed;if(_0xb9075b[_0xe9bff1(0x15f)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0xe9bff1(0x155)+_0x491e06);else{if(_0xb9075b[_0xe9bff1(0x15f)]===_0xe9bff1(0x165))throw new SDKError(ErrorCode[_0xe9bff1(0x15c)],_0xe9bff1(0x166)+_0x491e06);}}throw new SDKError(ErrorCode[_0xe9bff1(0x154)],_0xe9bff1(0x162)+(_0x2071ed instanceof Error?_0x2071ed[_0xe9bff1(0x168)]:String(_0x2071ed)));}}export async function loadJSONFromOptions(_0x58cf81,_0x1d82a2){const _0x163ae5=a68_0x4963;if(_0x58cf81&&_0x1d82a2)throw new SDKError(ErrorCode[_0x163ae5(0x15d)],_0x163ae5(0x159));if(_0x58cf81)return await loadJSON(_0x58cf81,![]);if(_0x1d82a2)return await loadJSON(_0x1d82a2,!![]);return undefined;}
@@ -1 +1 @@
1
- function a68_0x39fe(_0xaf6151,_0x440dc8){const _0x13cc09=a68_0x13cc();return a68_0x39fe=function(_0x39fe33,_0x4c642d){_0x39fe33=_0x39fe33-0xc6;let _0x3682d0=_0x13cc09[_0x39fe33];return _0x3682d0;},a68_0x39fe(_0xaf6151,_0x440dc8);}const a68_0x552e47=a68_0x39fe;(function(_0x3841d1,_0x21cc66){const _0x15a4bc=a68_0x39fe,_0x1f0f75=_0x3841d1();while(!![]){try{const _0x163791=-parseInt(_0x15a4bc(0xc7))/0x1*(-parseInt(_0x15a4bc(0xc6))/0x2)+-parseInt(_0x15a4bc(0xcc))/0x3+parseInt(_0x15a4bc(0xcb))/0x4+-parseInt(_0x15a4bc(0xd0))/0x5+-parseInt(_0x15a4bc(0xce))/0x6*(parseInt(_0x15a4bc(0xd1))/0x7)+-parseInt(_0x15a4bc(0xcd))/0x8*(parseInt(_0x15a4bc(0xc8))/0x9)+parseInt(_0x15a4bc(0xca))/0xa;if(_0x163791===_0x21cc66)break;else _0x1f0f75['push'](_0x1f0f75['shift']());}catch(_0x277dc2){_0x1f0f75['push'](_0x1f0f75['shift']());}}}(a68_0x13cc,0x35d75));const MODEL_ALIASES={'haiku':a68_0x552e47(0xc9),'sonnet':a68_0x552e47(0xcf)};export function extractModelAlias(_0x501f25){const _0x4516ba=_0x501f25['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x4516ba)return _0x4516ba[0x1]['toLowerCase']();return _0x501f25;}export function resolveModelAlias(_0x2e3e2e){return MODEL_ALIASES[_0x2e3e2e['toLowerCase']()]||_0x2e3e2e;}function a68_0x13cc(){const _0x1f081a=['225918QUtonB','claude-4.5-sonnet','841905dvaeSg','56zpUxMe','96098eHRarD','8KvpGKZ','3495861peYbIm','claude-4.5-haiku','9816880Qqmohp','407996YMjweV','1168536XmibYo','8GTrujy'];a68_0x13cc=function(){return _0x1f081a;};return a68_0x13cc();}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ function a69_0x423b(_0xaa704f,_0x3abb54){const _0x1a399f=a69_0x1a39();return a69_0x423b=function(_0x423b06,_0x5d3f29){_0x423b06=_0x423b06-0x117;let _0x514694=_0x1a399f[_0x423b06];return _0x514694;},a69_0x423b(_0xaa704f,_0x3abb54);}const a69_0x38631d=a69_0x423b;(function(_0x115627,_0x5267d3){const _0x41ccf5=a69_0x423b,_0x497e22=_0x115627();while(!![]){try{const _0x45ca25=-parseInt(_0x41ccf5(0x11e))/0x1*(parseInt(_0x41ccf5(0x11d))/0x2)+-parseInt(_0x41ccf5(0x11a))/0x3*(parseInt(_0x41ccf5(0x124))/0x4)+parseInt(_0x41ccf5(0x11f))/0x5+parseInt(_0x41ccf5(0x125))/0x6*(parseInt(_0x41ccf5(0x119))/0x7)+-parseInt(_0x41ccf5(0x122))/0x8+-parseInt(_0x41ccf5(0x120))/0x9*(-parseInt(_0x41ccf5(0x118))/0xa)+parseInt(_0x41ccf5(0x117))/0xb;if(_0x45ca25===_0x5267d3)break;else _0x497e22['push'](_0x497e22['shift']());}catch(_0x7c6f53){_0x497e22['push'](_0x497e22['shift']());}}}(a69_0x1a39,0x6e4e4));const MODEL_ALIASES={'haiku':a69_0x38631d(0x121),'sonnet':a69_0x38631d(0x123)};export function extractModelAlias(_0x8bb685){const _0x348d67=a69_0x38631d,_0x2909ce=_0x8bb685[_0x348d67(0x11c)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x2909ce)return _0x2909ce[0x1][_0x348d67(0x11b)]();return _0x8bb685;}export function resolveModelAlias(_0x1d21e6){const _0x3f1c12=a69_0x38631d;return MODEL_ALIASES[_0x1d21e6[_0x3f1c12(0x11b)]()]||_0x1d21e6;}function a69_0x1a39(){const _0x589ae8=['158033ZniqgL','4494955wctagD','3303GcrHPw','claude-4.5-haiku','4551352JeLbQk','claude-4.5-sonnet','4dEBIGI','906AoiVkf','9171481GPDayF','9200SSLwIY','4984XmlGcV','1101054jazATF','toLowerCase','match','10Lrnxhj'];a69_0x1a39=function(){return _0x589ae8;};return a69_0x1a39();}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x2ef707,_0x22aa20){const _0x2d94c7=a69_0x19a8,_0x427213=_0x2ef707();while(!![]){try{const _0x5318b6=parseInt(_0x2d94c7(0x66))/0x1+-parseInt(_0x2d94c7(0x64))/0x2*(parseInt(_0x2d94c7(0x6f))/0x3)+-parseInt(_0x2d94c7(0x67))/0x4*(-parseInt(_0x2d94c7(0x6b))/0x5)+-parseInt(_0x2d94c7(0x65))/0x6*(-parseInt(_0x2d94c7(0x68))/0x7)+-parseInt(_0x2d94c7(0x6c))/0x8+parseInt(_0x2d94c7(0x6d))/0x9+-parseInt(_0x2d94c7(0x69))/0xa;if(_0x5318b6===_0x22aa20)break;else _0x427213['push'](_0x427213['shift']());}catch(_0x14751b){_0x427213['push'](_0x427213['shift']());}}}(a69_0x4ef2,0xa135c));function a69_0x19a8(_0x59c8ac,_0x2ac52f){const _0x4ef2c3=a69_0x4ef2();return a69_0x19a8=function(_0x19a880,_0x43adb7){_0x19a880=_0x19a880-0x64;let _0x255d78=_0x4ef2c3[_0x19a880];return _0x255d78;},a69_0x19a8(_0x59c8ac,_0x2ac52f);}export function validateLimitOption(_0x3a2ba6){const _0x90088=a69_0x19a8;if(!Number['isInteger'](_0x3a2ba6))return{'isValid':![],'error':_0x90088(0x70)+_0x3a2ba6+_0x90088(0x6a)};if(_0x3a2ba6<=0x0)return{'isValid':![],'error':_0x90088(0x70)+_0x3a2ba6+_0x90088(0x71)};return{'isValid':!![],'value':_0x3a2ba6};}export function validateTimeoutOption(_0xdd287c,_0x5e2ae8=0x1e){const _0x5e62da=a69_0x19a8;if(_0xdd287c===undefined)return{'isValid':!![],'value':_0x5e2ae8};const _0xa61da1=typeof _0xdd287c==='number'?_0xdd287c:parseFloat(_0xdd287c);if(isNaN(_0xa61da1))return{'isValid':![],'error':_0x5e62da(0x72)+_0xdd287c+_0x5e62da(0x6e)};if(_0xa61da1<=0x0)return{'isValid':![],'error':_0x5e62da(0x72)+_0xa61da1+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0xa61da1};}function a69_0x4ef2(){const _0x5bb11e=['36CaxsUq','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','Invalid\x20timeout\x20value:\x20','72236nOxOzM','24CQjUqc','825571vzQOjv','104GEWinf','2301782cYtmik','21510740QHjgdN','.\x20Must\x20be\x20an\x20integer.','43620lGTntY','2383416XXeYAG','10575306QctYLC','.\x20Must\x20be\x20a\x20number.'];a69_0x4ef2=function(){return _0x5bb11e;};return a69_0x4ef2();}
1
+ function a70_0x196c(){const _0xded954=['24TglJHN','2894765yVbdkO','Invalid\x20timeout\x20value:\x20','1577832kgUhuZ','number','22136856WdzkYV','5709wNbAgH','Invalid\x20limit\x20value:\x20','isInteger','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20a\x20positive\x20number.','4776485eepQDA','723143BIfnij','5382006rDKvrs'];a70_0x196c=function(){return _0xded954;};return a70_0x196c();}function a70_0x13e1(_0x11795f,_0x5eec2d){const _0x196c57=a70_0x196c();return a70_0x13e1=function(_0x13e119,_0x133d85){_0x13e119=_0x13e119-0x114;let _0x3b7799=_0x196c57[_0x13e119];return _0x3b7799;},a70_0x13e1(_0x11795f,_0x5eec2d);}(function(_0x307d6a,_0x14c522){const _0x34a268=a70_0x13e1,_0x333544=_0x307d6a();while(!![]){try{const _0x22268b=-parseInt(_0x34a268(0x121))/0x1+parseInt(_0x34a268(0x117))/0x2+-parseInt(_0x34a268(0x11a))/0x3*(-parseInt(_0x34a268(0x114))/0x4)+-parseInt(_0x34a268(0x115))/0x5+-parseInt(_0x34a268(0x122))/0x6+-parseInt(_0x34a268(0x120))/0x7+parseInt(_0x34a268(0x119))/0x8;if(_0x22268b===_0x14c522)break;else _0x333544['push'](_0x333544['shift']());}catch(_0x42f95a){_0x333544['push'](_0x333544['shift']());}}}(a70_0x196c,0xa77a5));export function validateLimitOption(_0x3166ef){const _0x3f7b94=a70_0x13e1;if(!Number[_0x3f7b94(0x11c)](_0x3166ef))return{'isValid':![],'error':_0x3f7b94(0x11b)+_0x3166ef+_0x3f7b94(0x11d)};if(_0x3166ef<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3166ef+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x3166ef};}export function validateTimeoutOption(_0xe202af,_0x4d9934=0x1e){const _0x949c54=a70_0x13e1;if(_0xe202af===undefined)return{'isValid':!![],'value':_0x4d9934};const _0x26455d=typeof _0xe202af===_0x949c54(0x118)?_0xe202af:parseFloat(_0xe202af);if(isNaN(_0x26455d))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0xe202af+_0x949c54(0x11e)};if(_0x26455d<=0x0)return{'isValid':![],'error':_0x949c54(0x116)+_0x26455d+_0x949c54(0x11f)};return{'isValid':!![],'value':_0x26455d};}
@@ -1 +1 @@
1
- (function(_0x48fc07,_0x1e5457){const _0x1d3060=a70_0x1a16,_0x2b061c=_0x48fc07();while(!![]){try{const _0x5c234b=-parseInt(_0x1d3060(0xf9))/0x1+parseInt(_0x1d3060(0x102))/0x2+-parseInt(_0x1d3060(0xf4))/0x3*(-parseInt(_0x1d3060(0xff))/0x4)+-parseInt(_0x1d3060(0xf6))/0x5+parseInt(_0x1d3060(0x103))/0x6*(-parseInt(_0x1d3060(0xf8))/0x7)+-parseInt(_0x1d3060(0xfc))/0x8*(-parseInt(_0x1d3060(0xf7))/0x9)+parseInt(_0x1d3060(0xfd))/0xa;if(_0x5c234b===_0x1e5457)break;else _0x2b061c['push'](_0x2b061c['shift']());}catch(_0x23a9ad){_0x2b061c['push'](_0x2b061c['shift']());}}}(a70_0x56a8,0xcdbc4));import{createServer}from'node:net';export async function isPortAvailable(_0x157c1a){return new Promise(_0x57855d=>{const _0x5958f7=a70_0x1a16,_0x14b7bc=createServer();_0x14b7bc[_0x5958f7(0xf5)](_0x5958f7(0x100),_0x372b28=>{const _0x2bb252=_0x5958f7;_0x372b28['code']===_0x2bb252(0x101)?_0x57855d(![]):_0x57855d(![]);}),_0x14b7bc[_0x5958f7(0xf5)](_0x5958f7(0xfb),()=>{const _0x14ca62=_0x5958f7;_0x14b7bc[_0x14ca62(0xfa)](),_0x57855d(!![]);}),_0x14b7bc['listen'](_0x157c1a,_0x5958f7(0xfe));});}function a70_0x1a16(_0x23557c,_0x205459){const _0x56a8a7=a70_0x56a8();return a70_0x1a16=function(_0x1a169e,_0x24badb){_0x1a169e=_0x1a169e-0xf4;let _0x45eefd=_0x56a8a7[_0x1a169e];return _0x45eefd;},a70_0x1a16(_0x23557c,_0x205459);}export async function findAvailablePort(_0x4cf7c6=0xfa0,_0x21bcf2=0x64){for(let _0x3daff8=0x0;_0x3daff8<_0x21bcf2;_0x3daff8++){const _0x52a23c=_0x4cf7c6+_0x3daff8;if(await isPortAvailable(_0x52a23c))return _0x52a23c;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x4cf7c6+'\x20and\x20'+(_0x4cf7c6+_0x21bcf2-0x1));}function a70_0x56a8(){const _0x279e3a=['listening','19912aNFpiZ','12847430dDnkAt','0.0.0.0','320ctbiUa','error','EADDRINUSE','2737504zCTUeh','204552EUELBC','21402fEBZnu','once','8129595gIgJTz','1539AefNyD','77UIpyoU','806211xBCPSK','close'];a70_0x56a8=function(){return _0x279e3a;};return a70_0x56a8();}
1
+ (function(_0x1462c2,_0xb9412f){const _0x3f6752=a71_0x48b7,_0x12180b=_0x1462c2();while(!![]){try{const _0x333ea5=-parseInt(_0x3f6752(0x73))/0x1*(parseInt(_0x3f6752(0x6b))/0x2)+parseInt(_0x3f6752(0x79))/0x3*(-parseInt(_0x3f6752(0x74))/0x4)+parseInt(_0x3f6752(0x7a))/0x5+-parseInt(_0x3f6752(0x78))/0x6*(-parseInt(_0x3f6752(0x6d))/0x7)+-parseInt(_0x3f6752(0x7c))/0x8*(parseInt(_0x3f6752(0x75))/0x9)+parseInt(_0x3f6752(0x77))/0xa+parseInt(_0x3f6752(0x6a))/0xb;if(_0x333ea5===_0xb9412f)break;else _0x12180b['push'](_0x12180b['shift']());}catch(_0x3da55a){_0x12180b['push'](_0x12180b['shift']());}}}(a71_0x1b8f,0x4bedd));function a71_0x1b8f(){const _0x3d9ac7=['0.0.0.0','15112GtSakM','\x20and\x20','11439197cXOGsx','2342XeuhZI','listening','1449FwuRUZ','close','code','No\x20available\x20port\x20found\x20between\x20','once','EADDRINUSE','365WnDXtf','36lftUMk','2133LiXOBA','error','72130BTZEjl','5502DQzNbZ','126849CwhhLX','1648505CTQdfJ'];a71_0x1b8f=function(){return _0x3d9ac7;};return a71_0x1b8f();}import{createServer}from'node:net';export async function isPortAvailable(_0x76bd95){return new Promise(_0x16ada0=>{const _0x22ab32=a71_0x48b7,_0x399503=createServer();_0x399503['once'](_0x22ab32(0x76),_0x56f022=>{const _0x233f7c=_0x22ab32;_0x56f022[_0x233f7c(0x6f)]===_0x233f7c(0x72)?_0x16ada0(![]):_0x16ada0(![]);}),_0x399503[_0x22ab32(0x71)](_0x22ab32(0x6c),()=>{const _0x3458b6=_0x22ab32;_0x399503[_0x3458b6(0x6e)](),_0x16ada0(!![]);}),_0x399503['listen'](_0x76bd95,_0x22ab32(0x7b));});}function a71_0x48b7(_0x2428cb,_0x4801ec){const _0x1b8f0b=a71_0x1b8f();return a71_0x48b7=function(_0x48b7de,_0x2386f3){_0x48b7de=_0x48b7de-0x69;let _0x5588e7=_0x1b8f0b[_0x48b7de];return _0x5588e7;},a71_0x48b7(_0x2428cb,_0x4801ec);}export async function findAvailablePort(_0x72c436=0xfa0,_0x1ccd96=0x64){const _0x314303=a71_0x48b7;for(let _0x467e87=0x0;_0x467e87<_0x1ccd96;_0x467e87++){const _0x427f2b=_0x72c436+_0x467e87;if(await isPortAvailable(_0x427f2b))return _0x427f2b;}throw new Error(_0x314303(0x70)+_0x72c436+_0x314303(0x69)+(_0x72c436+_0x1ccd96-0x1));}
@@ -1 +1 @@
1
- const a71_0x3f4c84=a71_0x2315;function a71_0x13c9(){const _0x445275=['11242215PryTBr','utf-8','split','elvish','error','12EytMII','77431458GbaOSw','124350SxefJX','\x20on\x20POSIX:','tcsh','pwsh','kill','trim','replace','dash','ps\x20-p\x20','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','fish','ion','11iaBflL','toLowerCase','powershell','DEBUG','68202sNNXNa','5811110dIsimW','244llLUqG','3240826MfVQmU','platform','\x20get\x20ParentProcessId,Name\x20/format:csv','join','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','env','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','1fUyAzx','ppid','470ifnVTJ','pop','586292tvCiuq','comm','\x20-o\x20ppid=,comm=','length','csh','bash','\x20on\x20Windows:','16tickEJ','ksh','zsh',',\x20using\x20fallback','pid','filter'];a71_0x13c9=function(){return _0x445275;};return a71_0x13c9();}(function(_0x149904,_0x1d278c){const _0x347fd7=a71_0x2315,_0x3ab52c=_0x149904();while(!![]){try{const _0x628b27=-parseInt(_0x347fd7(0x172))/0x1*(-parseInt(_0x347fd7(0x16b))/0x2)+parseInt(_0x347fd7(0x168))/0x3*(parseInt(_0x347fd7(0x16a))/0x4)+parseInt(_0x347fd7(0x174))/0x5*(parseInt(_0x347fd7(0x158))/0x6)+-parseInt(_0x347fd7(0x176))/0x7*(-parseInt(_0x347fd7(0x14b))/0x8)+parseInt(_0x347fd7(0x151))/0x9+-parseInt(_0x347fd7(0x169))/0xa*(-parseInt(_0x347fd7(0x164))/0xb)+parseInt(_0x347fd7(0x156))/0xc*(-parseInt(_0x347fd7(0x157))/0xd);if(_0x628b27===_0x1d278c)break;else _0x3ab52c['push'](_0x3ab52c['shift']());}catch(_0x54f8b7){_0x3ab52c['push'](_0x3ab52c['shift']());}}}(a71_0x13c9,0xf35dd));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a71_0x3f4c84(0x149),a71_0x3f4c84(0x14d),'sh',a71_0x3f4c84(0x162),a71_0x3f4c84(0x14c),a71_0x3f4c84(0x15a),a71_0x3f4c84(0x148),a71_0x3f4c84(0x15f),a71_0x3f4c84(0x15b),a71_0x3f4c84(0x166),'nu',a71_0x3f4c84(0x163),a71_0x3f4c84(0x154),'xonsh']);function getProcessInfoWindows(_0x22d01f){const _0xe33ebf=a71_0x3f4c84;try{const _0x584457=execSync('wmic\x20process\x20where\x20ProcessId='+_0x22d01f+_0xe33ebf(0x16d),{'encoding':_0xe33ebf(0x152),'windowsHide':!![]})[_0xe33ebf(0x15d)](),_0x2a5711=_0x584457[_0xe33ebf(0x153)]('\x0a')[_0xe33ebf(0x150)](_0x40952c=>_0x40952c[_0xe33ebf(0x15d)]());if(_0x2a5711[_0xe33ebf(0x147)]<0x2)return null;const _0x2ba56e=_0x2a5711[_0x2a5711[_0xe33ebf(0x147)]-0x1][_0xe33ebf(0x153)](',');if(_0x2ba56e['length']<0x3)return null;const _0x335535=_0x2ba56e[0x1]?.[_0xe33ebf(0x15d)]()||'',_0x3bb8fe=parseInt(_0x2ba56e[0x2]?.[_0xe33ebf(0x15d)]()||'0',0xa);if(isNaN(_0x3bb8fe)||!_0x335535)return null;return{'pid':_0x22d01f,'ppid':_0x3bb8fe,'comm':_0x335535['replace'](/\.exe$/i,'')};}catch(_0x179598){return process[_0xe33ebf(0x170)][_0xe33ebf(0x167)]&&console[_0xe33ebf(0x155)](_0xe33ebf(0x171)+_0x22d01f+_0xe33ebf(0x14a),_0x179598),null;}}function getProcessInfoPosix(_0x501fd6){const _0x103e5a=a71_0x3f4c84;try{const _0x306c59=execSync(_0x103e5a(0x160)+_0x501fd6+_0x103e5a(0x146),{'encoding':'utf-8'})[_0x103e5a(0x15d)](),[_0x10f5ae,..._0x4f35fb]=_0x306c59['split'](/\s+/),_0x1f627e=parseInt(_0x10f5ae,0xa),_0x526818=_0x4f35fb[_0x103e5a(0x16e)]('\x20');if(isNaN(_0x1f627e))return null;return{'pid':_0x501fd6,'ppid':_0x1f627e,'comm':_0x526818};}catch(_0x3bdb03){return process[_0x103e5a(0x170)][_0x103e5a(0x167)]&&console[_0x103e5a(0x155)](_0x103e5a(0x171)+_0x501fd6+_0x103e5a(0x159),_0x3bdb03),null;}}function getProcessInfo(_0x24da25){const _0x2e4625=a71_0x3f4c84;if(process[_0x2e4625(0x16c)]==='win32')return getProcessInfoWindows(_0x24da25);return getProcessInfoPosix(_0x24da25);}function isShell(_0x2768b7){const _0x3439b9=a71_0x3f4c84,_0x319556=_0x2768b7[_0x3439b9(0x15e)](/^-/,'')[_0x3439b9(0x153)]('/')[_0x3439b9(0x175)]()||'';return SHELL_NAMES['has'](_0x319556[_0x3439b9(0x165)]());}let cachedShellPID;function findShellPID(){const _0x343de6=a71_0x3f4c84;let _0x23c593=process[_0x343de6(0x173)];const _0x5eed50=0xa;let _0x494ac0=0x0;while(_0x494ac0<_0x5eed50){const _0x3b9124=getProcessInfo(_0x23c593);if(!_0x3b9124){process[_0x343de6(0x170)][_0x343de6(0x167)]&&console[_0x343de6(0x155)](_0x343de6(0x16f)+_0x23c593+_0x343de6(0x14e));break;}if(isShell(_0x3b9124[_0x343de6(0x145)]))return _0x3b9124[_0x343de6(0x14f)];if(_0x3b9124[_0x343de6(0x173)]===0x0||_0x3b9124[_0x343de6(0x173)]===0x1){if(isShell(_0x3b9124[_0x343de6(0x145)]))return _0x3b9124[_0x343de6(0x14f)];break;}_0x23c593=_0x3b9124['ppid'],_0x494ac0++;}return process['env']['DEBUG']&&console[_0x343de6(0x155)](_0x343de6(0x161)),process[_0x343de6(0x173)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a71_0x2315(_0x3d94c4,_0x5bb266){const _0x13c9e4=a71_0x13c9();return a71_0x2315=function(_0x23159e,_0xe83f43){_0x23159e=_0x23159e-0x145;let _0x4cf0f3=_0x13c9e4[_0x23159e];return _0x4cf0f3;},a71_0x2315(_0x3d94c4,_0x5bb266);}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2b5926){const _0x36e57e=a71_0x3f4c84;try{return process[_0x36e57e(0x15c)](_0x2b5926,0x0),!![];}catch{return![];}}
1
+ const a72_0x416fb3=a72_0x1b81;function a72_0xb33e(){const _0x2de87f=['10DZawce','has','platform','55720SulNGG','length','trim','\x20-o\x20ppid=,comm=','3aEUzhG',',\x20using\x20fallback','91LNTbIh','2878381UDXdhi','122630BiyHou','2845296SxpQYg','replace','pid','powershell','DEBUG','ksh','win32','\x20on\x20Windows:','utf-8','comm','split','env','dash','ion','wmic\x20process\x20where\x20ProcessId=','124GdxnmT','kill','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','error','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','224724xlZBbr','csh','\x20get\x20ParentProcessId,Name\x20/format:csv','124782AozZYp','join','tcsh','toLowerCase','\x20on\x20POSIX:','ppid','xonsh','filter','pwsh','9845vQiqXF'];a72_0xb33e=function(){return _0x2de87f;};return a72_0xb33e();}(function(_0x4521f5,_0x4b3e34){const _0x422027=a72_0x1b81,_0x43f4e7=_0x4521f5();while(!![]){try{const _0x1a7359=parseInt(_0x422027(0xa9))/0x1+parseInt(_0x422027(0xbe))/0x2*(-parseInt(_0x422027(0xba))/0x3)+-parseInt(_0x422027(0xa1))/0x4*(-parseInt(_0x422027(0xb2))/0x5)+parseInt(_0x422027(0xa6))/0x6+-parseInt(_0x422027(0xbc))/0x7*(-parseInt(_0x422027(0xb6))/0x8)+parseInt(_0x422027(0xbf))/0x9*(-parseInt(_0x422027(0xb3))/0xa)+parseInt(_0x422027(0xbd))/0xb;if(_0x1a7359===_0x4b3e34)break;else _0x43f4e7['push'](_0x43f4e7['shift']());}catch(_0x2a6888){_0x43f4e7['push'](_0x43f4e7['shift']());}}}(a72_0xb33e,0x30590));import{execSync}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh','fish',a72_0x416fb3(0xc4),a72_0x416fb3(0xab),a72_0x416fb3(0xa7),a72_0x416fb3(0x9e),a72_0x416fb3(0xb1),a72_0x416fb3(0xc2),'nu',a72_0x416fb3(0x9f),'elvish',a72_0x416fb3(0xaf)]);function getProcessInfoWindows(_0x31719b){const _0x47b22b=a72_0x416fb3;try{const _0x17adc5=execSync(_0x47b22b(0xa0)+_0x31719b+_0x47b22b(0xa8),{'encoding':_0x47b22b(0x9a),'windowsHide':!![]})[_0x47b22b(0xb8)](),_0x3f0f03=_0x17adc5[_0x47b22b(0x9c)]('\x0a')[_0x47b22b(0xb0)](_0x2c7f3c=>_0x2c7f3c['trim']());if(_0x3f0f03['length']<0x2)return null;const _0x58d987=_0x3f0f03[_0x3f0f03[_0x47b22b(0xb7)]-0x1][_0x47b22b(0x9c)](',');if(_0x58d987[_0x47b22b(0xb7)]<0x3)return null;const _0x1cc686=_0x58d987[0x1]?.[_0x47b22b(0xb8)]()||'',_0xf1caf1=parseInt(_0x58d987[0x2]?.[_0x47b22b(0xb8)]()||'0',0xa);if(isNaN(_0xf1caf1)||!_0x1cc686)return null;return{'pid':_0x31719b,'ppid':_0xf1caf1,'comm':_0x1cc686[_0x47b22b(0xc0)](/\.exe$/i,'')};}catch(_0x533831){return process[_0x47b22b(0x9d)][_0x47b22b(0xc3)]&&console[_0x47b22b(0xa4)](_0x47b22b(0xa3)+_0x31719b+_0x47b22b(0x99),_0x533831),null;}}function a72_0x1b81(_0x7e5bdb,_0x1f063b){const _0xb33ec3=a72_0xb33e();return a72_0x1b81=function(_0x1b8169,_0x3cdbce){_0x1b8169=_0x1b8169-0x99;let _0x27cce5=_0xb33ec3[_0x1b8169];return _0x27cce5;},a72_0x1b81(_0x7e5bdb,_0x1f063b);}function getProcessInfoPosix(_0x545525){const _0x334dd8=a72_0x416fb3;try{const _0x1cfc5c=execSync('ps\x20-p\x20'+_0x545525+_0x334dd8(0xb9),{'encoding':_0x334dd8(0x9a)})['trim'](),[_0x31af40,..._0x112746]=_0x1cfc5c[_0x334dd8(0x9c)](/\s+/),_0x52e557=parseInt(_0x31af40,0xa),_0x1c2bb6=_0x112746[_0x334dd8(0xaa)]('\x20');if(isNaN(_0x52e557))return null;return{'pid':_0x545525,'ppid':_0x52e557,'comm':_0x1c2bb6};}catch(_0x9e6485){return process[_0x334dd8(0x9d)][_0x334dd8(0xc3)]&&console[_0x334dd8(0xa4)](_0x334dd8(0xa3)+_0x545525+_0x334dd8(0xad),_0x9e6485),null;}}function getProcessInfo(_0x52c18a){const _0x5d7606=a72_0x416fb3;if(process[_0x5d7606(0xb5)]===_0x5d7606(0xc5))return getProcessInfoWindows(_0x52c18a);return getProcessInfoPosix(_0x52c18a);}function isShell(_0x52659c){const _0x4b1330=a72_0x416fb3,_0x14b8eb=_0x52659c[_0x4b1330(0xc0)](/^-/,'')['split']('/')['pop']()||'';return SHELL_NAMES[_0x4b1330(0xb4)](_0x14b8eb[_0x4b1330(0xac)]());}let cachedShellPID;function findShellPID(){const _0x5ec2e2=a72_0x416fb3;let _0x3e2279=process[_0x5ec2e2(0xae)];const _0xfaefb=0xa;let _0x4e1f6b=0x0;while(_0x4e1f6b<_0xfaefb){const _0x37f656=getProcessInfo(_0x3e2279);if(!_0x37f656){process['env']['DEBUG']&&console[_0x5ec2e2(0xa4)](_0x5ec2e2(0xa5)+_0x3e2279+_0x5ec2e2(0xbb));break;}if(isShell(_0x37f656[_0x5ec2e2(0x9b)]))return _0x37f656[_0x5ec2e2(0xc1)];if(_0x37f656['ppid']===0x0||_0x37f656[_0x5ec2e2(0xae)]===0x1){if(isShell(_0x37f656[_0x5ec2e2(0x9b)]))return _0x37f656['pid'];break;}_0x3e2279=_0x37f656[_0x5ec2e2(0xae)],_0x4e1f6b++;}return process[_0x5ec2e2(0x9d)]['DEBUG']&&console[_0x5ec2e2(0xa4)]('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process[_0x5ec2e2(0xae)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3e0b0c){const _0x2baa12=a72_0x416fb3;try{return process[_0x2baa12(0xa2)](_0x3e0b0c,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a72_0x50b3(){const _0x280968=['toLowerCase','60cpvJNL','1490968ckWiVE','yes','12wicWSl','createInterface','99LJsjtV','18850860bsrwKV','644915qrtpGT','stdout','1003288gMuWyQ','115461escDPj','1660505QFxRjB','1694805uTXFIs'];a72_0x50b3=function(){return _0x280968;};return a72_0x50b3();}(function(_0x3ef3dd,_0x251e37){const _0x39166b=a72_0x1978,_0xf3bd85=_0x3ef3dd();while(!![]){try{const _0x3059a8=-parseInt(_0x39166b(0x99))/0x1*(-parseInt(_0x39166b(0x92))/0x2)+-parseInt(_0x39166b(0x9b))/0x3+-parseInt(_0x39166b(0x9e))/0x4+-parseInt(_0x39166b(0x96))/0x5*(-parseInt(_0x39166b(0x9d))/0x6)+parseInt(_0x39166b(0x9a))/0x7+-parseInt(_0x39166b(0x98))/0x8*(-parseInt(_0x39166b(0x94))/0x9)+-parseInt(_0x39166b(0x95))/0xa;if(_0x3059a8===_0x251e37)break;else _0xf3bd85['push'](_0xf3bd85['shift']());}catch(_0x3b07e0){_0xf3bd85['push'](_0xf3bd85['shift']());}}}(a72_0x50b3,0xbd979));function a72_0x1978(_0x2e404c,_0x19b4f1){const _0x50b3f5=a72_0x50b3();return a72_0x1978=function(_0x197862,_0x440662){_0x197862=_0x197862-0x91;let _0x215621=_0x50b3f5[_0x197862];return _0x215621;},a72_0x1978(_0x2e404c,_0x19b4f1);}import*as a72_0x9a2d4 from'readline';export async function confirm(_0x53fbd3){const _0x5b7c80=a72_0x1978,_0x10d7cd=a72_0x9a2d4[_0x5b7c80(0x93)]({'input':process['stdin'],'output':process[_0x5b7c80(0x97)]});return new Promise(_0x5a42e1=>{_0x10d7cd['question'](_0x53fbd3+'\x20(y/N):\x20',_0x357761=>{const _0x3909b3=a72_0x1978;_0x10d7cd['close'](),_0x5a42e1(_0x357761[_0x3909b3(0x9c)]()==='y'||_0x357761[_0x3909b3(0x9c)]()===_0x3909b3(0x91));});});}
1
+ (function(_0x418eed,_0x428c6){const _0xa74aa9=a73_0x37fc,_0x3997d7=_0x418eed();while(!![]){try{const _0x2cbb6b=-parseInt(_0xa74aa9(0x1e9))/0x1*(parseInt(_0xa74aa9(0x1e8))/0x2)+parseInt(_0xa74aa9(0x1f0))/0x3+parseInt(_0xa74aa9(0x1ef))/0x4*(parseInt(_0xa74aa9(0x1e7))/0x5)+-parseInt(_0xa74aa9(0x1ee))/0x6*(parseInt(_0xa74aa9(0x1f9))/0x7)+parseInt(_0xa74aa9(0x1f5))/0x8+parseInt(_0xa74aa9(0x1f8))/0x9*(parseInt(_0xa74aa9(0x1f3))/0xa)+parseInt(_0xa74aa9(0x1f7))/0xb*(-parseInt(_0xa74aa9(0x1ed))/0xc);if(_0x2cbb6b===_0x428c6)break;else _0x3997d7['push'](_0x3997d7['shift']());}catch(_0x261bc0){_0x3997d7['push'](_0x3997d7['shift']());}}}(a73_0x2d77,0x4c437));function a73_0x37fc(_0x1c12db,_0x49a30c){const _0x2d7712=a73_0x2d77();return a73_0x37fc=function(_0x37fc42,_0x95be60){_0x37fc42=_0x37fc42-0x1e7;let _0x27ab19=_0x2d7712[_0x37fc42];return _0x27ab19;},a73_0x37fc(_0x1c12db,_0x49a30c);}function a73_0x2d77(){const _0x10e433=['12heheeu','1178676JnuPqx','question','toLowerCase','775990nXpzqw','stdout','2099232AjMFmv','close','11fuEnCA','63VYVXEl','7bvRAmy','443995nriEGj','10514UVzJHu','23GHWOGG','yes','stdin','\x20(y/N):\x20','5299572HKEXsi','3539814tvDzaq'];a73_0x2d77=function(){return _0x10e433;};return a73_0x2d77();}import*as a73_0x1ecc0b from'readline';export async function confirm(_0x59f58c){const _0xbcefd9=a73_0x37fc,_0x264e07=a73_0x1ecc0b['createInterface']({'input':process[_0xbcefd9(0x1eb)],'output':process[_0xbcefd9(0x1f4)]});return new Promise(_0x1cfbea=>{const _0x462aaf=_0xbcefd9;_0x264e07[_0x462aaf(0x1f1)](_0x59f58c+_0x462aaf(0x1ec),_0xf216a1=>{const _0x5edb9b=_0x462aaf;_0x264e07[_0x5edb9b(0x1f6)](),_0x1cfbea(_0xf216a1['toLowerCase']()==='y'||_0xf216a1[_0x5edb9b(0x1f2)]()===_0x5edb9b(0x1ea));});});}
@@ -1 +1 @@
1
- (function(_0x2d6ef3,_0x177b5d){const _0x1845b4=a73_0x2edb,_0x59abb8=_0x2d6ef3();while(!![]){try{const _0x2fe7da=parseInt(_0x1845b4(0x1eb))/0x1+parseInt(_0x1845b4(0x1ee))/0x2+-parseInt(_0x1845b4(0x1d5))/0x3+-parseInt(_0x1845b4(0x1d7))/0x4+parseInt(_0x1845b4(0x1e3))/0x5*(parseInt(_0x1845b4(0x1da))/0x6)+parseInt(_0x1845b4(0x1e4))/0x7*(-parseInt(_0x1845b4(0x1d9))/0x8)+-parseInt(_0x1845b4(0x1ed))/0x9*(parseInt(_0x1845b4(0x1f0))/0xa);if(_0x2fe7da===_0x177b5d)break;else _0x59abb8['push'](_0x59abb8['shift']());}catch(_0x2e6468){_0x59abb8['push'](_0x59abb8['shift']());}}}(a73_0x1b3e,0x597e0));export function parsePath(_0x578c60){const _0x5e6870=a73_0x2edb;if(!_0x578c60||_0x578c60[_0x5e6870(0x1e0)]()==='')throw new Error(_0x5e6870(0x1db));const _0x19ef59=_0x578c60[_0x5e6870(0x1e0)]();if(_0x19ef59==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x578c60};const _0xf9140a=_0x19ef59[_0x5e6870(0x1e1)]('/')?_0x19ef59['substring'](0x1):_0x19ef59,_0x4aa584=_0xf9140a[_0x5e6870(0x1de)]('/')[_0x5e6870(0x1dc)](_0x2502c8=>_0x2502c8!=='');if(_0x4aa584[_0x5e6870(0x1e5)]===0x0)throw new Error(_0x5e6870(0x1e9));const _0x2eeae4=_0x19ef59[_0x5e6870(0x1e1)]('/')||!isRelativePathSegment(_0x4aa584[0x0]);for(const _0x41decc of _0x4aa584){validatePathSegment(_0x41decc);}return{'segments':_0x4aa584,'isAbsolute':_0x2eeae4,'raw':_0x578c60};}function isRelativePathSegment(_0x146c60){return _0x146c60==='.'||_0x146c60==='..';}function a73_0x1b3e(){const _0x911d39=['Path\x20attempts\x20to\x20navigate\x20above\x20root','join','667707czdWkF','raw','509704JeVuyd','Path\x20segment\x20cannot\x20be\x20empty','8dCWxZd','144WFnRYl','Path\x20cannot\x20be\x20empty','filter','slice','split','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','trim','startsWith','isAbsolute','150515vUQhnm','2748627ZAfZTl','length','segments','pop','push','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','Relative\x20path\x20cannot\x20be\x20empty','361828sBAQCS','Cannot\x20navigate\x20above\x20root','100071XygDvk','116546PgWqQm','Cannot\x20split\x20empty\x20path','30pWznAG','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'];a73_0x1b3e=function(){return _0x911d39;};return a73_0x1b3e();}function validatePathSegment(_0x3052a9){const _0x29195c=a73_0x2edb;if(_0x3052a9==='')throw new Error(_0x29195c(0x1d8));if(_0x3052a9==='.'||_0x3052a9==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x3052a9))throw new Error(_0x29195c(0x1d2)+_0x3052a9);if(_0x3052a9!==_0x3052a9[_0x29195c(0x1e0)]()){}}export function validatePath(_0x27911f){const _0x3cf6dc=a73_0x2edb;if(_0x27911f[_0x3cf6dc(0x1e6)][_0x3cf6dc(0x1e5)]===0x0&&!_0x27911f[_0x3cf6dc(0x1e2)])throw new Error(_0x3cf6dc(0x1ea));if(_0x27911f[_0x3cf6dc(0x1e2)]){if(_0x27911f['segments'][0x0]==='..')throw new Error(_0x3cf6dc(0x1df));let _0x5c1f93=0x0;for(const _0x59e660 of _0x27911f[_0x3cf6dc(0x1e6)]){if(_0x59e660==='..'){if(_0x5c1f93===0x0)throw new Error(_0x3cf6dc(0x1d3));_0x5c1f93--;}else _0x59e660!=='.'&&_0x5c1f93++;}}}export function joinPaths(_0x207d1d,_0x4bd3b4){const _0x4abdc1=a73_0x2edb;if(!_0x207d1d||_0x207d1d==='/')return _0x4bd3b4;if(!_0x4bd3b4||_0x4bd3b4==='.')return _0x207d1d;if(_0x4bd3b4[_0x4abdc1(0x1e1)]('/'))return _0x4bd3b4;const _0x1741ce=parsePath(_0x207d1d),_0x56660e=parsePath(_0x4bd3b4),_0x312986=[..._0x1741ce[_0x4abdc1(0x1e6)]];for(const _0x5071c2 of _0x56660e[_0x4abdc1(0x1e6)]){if(_0x5071c2==='.')continue;else{if(_0x5071c2==='..'){if(_0x312986[_0x4abdc1(0x1e5)]===0x0)throw new Error(_0x4abdc1(0x1ec));_0x312986['pop']();}else _0x312986[_0x4abdc1(0x1e8)](_0x5071c2);}}const _0x3826ad=_0x312986[_0x4abdc1(0x1d4)]('/');return _0x1741ce[_0x4abdc1(0x1d6)]['startsWith']('/')?'/'+_0x3826ad:_0x3826ad;}function a73_0x2edb(_0x24e0b3,_0x33c389){const _0x1b3e50=a73_0x1b3e();return a73_0x2edb=function(_0x2edb86,_0x5047f7){_0x2edb86=_0x2edb86-0x1d2;let _0x34145b=_0x1b3e50[_0x2edb86];return _0x34145b;},a73_0x2edb(_0x24e0b3,_0x33c389);}export function normalizePath(_0x252d3a){const _0x4f07c6=a73_0x2edb,_0x248b40=parsePath(_0x252d3a),_0x85ac58=[];for(const _0x57d51e of _0x248b40[_0x4f07c6(0x1e6)]){if(_0x57d51e==='.')continue;else{if(_0x57d51e==='..'){if(_0x85ac58[_0x4f07c6(0x1e5)]===0x0){if(_0x248b40[_0x4f07c6(0x1e2)])throw new Error(_0x4f07c6(0x1ec));_0x85ac58[_0x4f07c6(0x1e8)]('..');}else _0x85ac58[_0x85ac58['length']-0x1]==='..'?_0x85ac58[_0x4f07c6(0x1e8)]('..'):_0x85ac58[_0x4f07c6(0x1e7)]();}else _0x85ac58[_0x4f07c6(0x1e8)](_0x57d51e);}}if(_0x85ac58['length']===0x0)return _0x248b40[_0x4f07c6(0x1e2)]?'/':'.';const _0x556c2b=_0x85ac58[_0x4f07c6(0x1d4)]('/');return _0x248b40[_0x4f07c6(0x1d6)][_0x4f07c6(0x1e1)]('/')?'/'+_0x556c2b:_0x556c2b;}export function getParentPath(_0x380e83){const _0x26c328=a73_0x2edb,_0x307705=parsePath(_0x380e83);if(_0x307705[_0x26c328(0x1e6)][_0x26c328(0x1e5)]<=0x1)return'/';const _0x59eaae=_0x307705[_0x26c328(0x1e6)][_0x26c328(0x1dd)](0x0,-0x1)[_0x26c328(0x1d4)]('/');return _0x307705[_0x26c328(0x1d6)]['startsWith']('/')?'/'+_0x59eaae:_0x59eaae;}export function getBaseName(_0x2d2d4d){const _0x530b24=a73_0x2edb,_0x1b2ae6=parsePath(_0x2d2d4d);return _0x1b2ae6[_0x530b24(0x1e6)][_0x1b2ae6[_0x530b24(0x1e6)]['length']-0x1]||'';}export function isChildPath(_0x43881e,_0x2a3272){const _0x4bf48e=a73_0x2edb,_0x4655d7=parsePath(_0x43881e),_0x1b1da1=parsePath(_0x2a3272);if(_0x4655d7[_0x4bf48e(0x1e6)][_0x4bf48e(0x1e5)]<=_0x1b1da1['segments'][_0x4bf48e(0x1e5)])return![];for(let _0xc223f2=0x0;_0xc223f2<_0x1b1da1[_0x4bf48e(0x1e6)][_0x4bf48e(0x1e5)];_0xc223f2++){if(_0x4655d7[_0x4bf48e(0x1e6)][_0xc223f2]!==_0x1b1da1[_0x4bf48e(0x1e6)][_0xc223f2])return![];}return!![];}export function splitPath(_0x1d01c3){const _0x2c1423=a73_0x2edb,_0x413d3c=parsePath(_0x1d01c3);if(_0x413d3c[_0x2c1423(0x1e6)]['length']===0x0)throw new Error(_0x2c1423(0x1ef));if(_0x413d3c[_0x2c1423(0x1e6)]['length']===0x1)return{'parent':_0x413d3c[_0x2c1423(0x1e6)][0x0]};return{'parent':_0x413d3c['segments'][0x0],'child':_0x413d3c[_0x2c1423(0x1e6)][_0x2c1423(0x1dd)](0x1)[_0x2c1423(0x1d4)]('/')};}
1
+ (function(_0x2d69f1,_0x2c2589){const _0x13aece=a74_0x1f12,_0x28934f=_0x2d69f1();while(!![]){try{const _0x20bfdf=parseInt(_0x13aece(0x8c))/0x1*(parseInt(_0x13aece(0x6d))/0x2)+-parseInt(_0x13aece(0x71))/0x3+-parseInt(_0x13aece(0x7c))/0x4+-parseInt(_0x13aece(0x7e))/0x5+parseInt(_0x13aece(0x81))/0x6*(-parseInt(_0x13aece(0x84))/0x7)+-parseInt(_0x13aece(0x7a))/0x8*(-parseInt(_0x13aece(0x83))/0x9)+parseInt(_0x13aece(0x72))/0xa;if(_0x20bfdf===_0x2c2589)break;else _0x28934f['push'](_0x28934f['shift']());}catch(_0x1fdce8){_0x28934f['push'](_0x28934f['shift']());}}}(a74_0x18cd,0x1ce8f));export function parsePath(_0x5e398c){const _0x29c399=a74_0x1f12;if(!_0x5e398c||_0x5e398c['trim']()==='')throw new Error(_0x29c399(0x82));const _0x3800f9=_0x5e398c['trim']();if(_0x3800f9==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5e398c};const _0x23fe15=_0x3800f9[_0x29c399(0x6c)]('/')?_0x3800f9[_0x29c399(0x86)](0x1):_0x3800f9,_0x42b51f=_0x23fe15[_0x29c399(0x80)]('/')[_0x29c399(0x75)](_0x2ba1e6=>_0x2ba1e6!=='');if(_0x42b51f['length']===0x0)throw new Error(_0x29c399(0x88));const _0x1800cf=_0x3800f9['startsWith']('/')||!isRelativePathSegment(_0x42b51f[0x0]);for(const _0x41c088 of _0x42b51f){validatePathSegment(_0x41c088);}return{'segments':_0x42b51f,'isAbsolute':_0x1800cf,'raw':_0x5e398c};}function isRelativePathSegment(_0x4aae7c){return _0x4aae7c==='.'||_0x4aae7c==='..';}function validatePathSegment(_0xeb01a9){const _0x17181f=a74_0x1f12;if(_0xeb01a9==='')throw new Error(_0x17181f(0x8b));if(_0xeb01a9==='.'||_0xeb01a9==='..')return;if(/[\x00-\x1F\x7F]/[_0x17181f(0x89)](_0xeb01a9))throw new Error(_0x17181f(0x76)+_0xeb01a9);if(_0xeb01a9!==_0xeb01a9[_0x17181f(0x6f)]()){}}function a74_0x18cd(){const _0x200b42=['trim','join','148467PDpGrh','3430200VYnwdC','Cannot\x20split\x20empty\x20path','raw','filter','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20navigate\x20above\x20root','isAbsolute','841624NtrVVy','segments','538156ezYITF','length','988020LlRVol','push','split','21006ykBhJh','Path\x20cannot\x20be\x20empty','9hkXOex','161pKrHfv','Relative\x20path\x20cannot\x20be\x20empty','substring','Path\x20attempts\x20to\x20navigate\x20above\x20root','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','test','slice','Path\x20segment\x20cannot\x20be\x20empty','132347Mecwhu','startsWith','2IcgGjV','pop'];a74_0x18cd=function(){return _0x200b42;};return a74_0x18cd();}function a74_0x1f12(_0x4e6e5e,_0x3bfc17){const _0x18cdf2=a74_0x18cd();return a74_0x1f12=function(_0x1f123,_0x14d586){_0x1f123=_0x1f123-0x6c;let _0x2815aa=_0x18cdf2[_0x1f123];return _0x2815aa;},a74_0x1f12(_0x4e6e5e,_0x3bfc17);}export function validatePath(_0x324cc4){const _0x4235ae=a74_0x1f12;if(_0x324cc4[_0x4235ae(0x7b)]['length']===0x0&&!_0x324cc4[_0x4235ae(0x79)])throw new Error(_0x4235ae(0x85));if(_0x324cc4['isAbsolute']){if(_0x324cc4[_0x4235ae(0x7b)][0x0]==='..')throw new Error(_0x4235ae(0x77));let _0x5eea37=0x0;for(const _0x2c5407 of _0x324cc4[_0x4235ae(0x7b)]){if(_0x2c5407==='..'){if(_0x5eea37===0x0)throw new Error(_0x4235ae(0x87));_0x5eea37--;}else _0x2c5407!=='.'&&_0x5eea37++;}}}export function joinPaths(_0x4210c2,_0x4038d8){const _0x19b42d=a74_0x1f12;if(!_0x4210c2||_0x4210c2==='/')return _0x4038d8;if(!_0x4038d8||_0x4038d8==='.')return _0x4210c2;if(_0x4038d8['startsWith']('/'))return _0x4038d8;const _0x36330c=parsePath(_0x4210c2),_0xbcb585=parsePath(_0x4038d8),_0x5de55d=[..._0x36330c['segments']];for(const _0x244dbd of _0xbcb585[_0x19b42d(0x7b)]){if(_0x244dbd==='.')continue;else{if(_0x244dbd==='..'){if(_0x5de55d['length']===0x0)throw new Error(_0x19b42d(0x78));_0x5de55d[_0x19b42d(0x6e)]();}else _0x5de55d[_0x19b42d(0x7f)](_0x244dbd);}}const _0x588f86=_0x5de55d['join']('/');return _0x36330c['raw'][_0x19b42d(0x6c)]('/')?'/'+_0x588f86:_0x588f86;}export function normalizePath(_0x37ae7c){const _0xba95c5=a74_0x1f12,_0xb13d5a=parsePath(_0x37ae7c),_0x5c4ed5=[];for(const _0x22dcd7 of _0xb13d5a['segments']){if(_0x22dcd7==='.')continue;else{if(_0x22dcd7==='..'){if(_0x5c4ed5[_0xba95c5(0x7d)]===0x0){if(_0xb13d5a['isAbsolute'])throw new Error(_0xba95c5(0x78));_0x5c4ed5[_0xba95c5(0x7f)]('..');}else _0x5c4ed5[_0x5c4ed5[_0xba95c5(0x7d)]-0x1]==='..'?_0x5c4ed5['push']('..'):_0x5c4ed5[_0xba95c5(0x6e)]();}else _0x5c4ed5['push'](_0x22dcd7);}}if(_0x5c4ed5['length']===0x0)return _0xb13d5a[_0xba95c5(0x79)]?'/':'.';const _0x3c1342=_0x5c4ed5[_0xba95c5(0x70)]('/');return _0xb13d5a[_0xba95c5(0x74)]['startsWith']('/')?'/'+_0x3c1342:_0x3c1342;}export function getParentPath(_0x30016c){const _0x4548a7=a74_0x1f12,_0xe21d4e=parsePath(_0x30016c);if(_0xe21d4e['segments'][_0x4548a7(0x7d)]<=0x1)return'/';const _0x10dc38=_0xe21d4e['segments'][_0x4548a7(0x8a)](0x0,-0x1)['join']('/');return _0xe21d4e[_0x4548a7(0x74)][_0x4548a7(0x6c)]('/')?'/'+_0x10dc38:_0x10dc38;}export function getBaseName(_0x29e33e){const _0x141a00=a74_0x1f12,_0x819076=parsePath(_0x29e33e);return _0x819076[_0x141a00(0x7b)][_0x819076['segments'][_0x141a00(0x7d)]-0x1]||'';}export function isChildPath(_0x3e544e,_0x364c6c){const _0x3b25ba=a74_0x1f12,_0x49fe83=parsePath(_0x3e544e),_0x60d05=parsePath(_0x364c6c);if(_0x49fe83[_0x3b25ba(0x7b)][_0x3b25ba(0x7d)]<=_0x60d05[_0x3b25ba(0x7b)][_0x3b25ba(0x7d)])return![];for(let _0x5e7af5=0x0;_0x5e7af5<_0x60d05[_0x3b25ba(0x7b)][_0x3b25ba(0x7d)];_0x5e7af5++){if(_0x49fe83[_0x3b25ba(0x7b)][_0x5e7af5]!==_0x60d05[_0x3b25ba(0x7b)][_0x5e7af5])return![];}return!![];}export function splitPath(_0x22a66d){const _0xacaab0=a74_0x1f12,_0xbe87b4=parsePath(_0x22a66d);if(_0xbe87b4['segments'][_0xacaab0(0x7d)]===0x0)throw new Error(_0xacaab0(0x73));if(_0xbe87b4[_0xacaab0(0x7b)][_0xacaab0(0x7d)]===0x1)return{'parent':_0xbe87b4['segments'][0x0]};return{'parent':_0xbe87b4[_0xacaab0(0x7b)][0x0],'child':_0xbe87b4[_0xacaab0(0x7b)][_0xacaab0(0x8a)](0x1)[_0xacaab0(0x70)]('/')};}
@@ -1 +1 @@
1
- (function(_0x786afd,_0x21d0a2){const _0x59c13c=a74_0x25c4,_0x537db1=_0x786afd();while(!![]){try{const _0x217440=-parseInt(_0x59c13c(0x188))/0x1+parseInt(_0x59c13c(0x189))/0x2*(parseInt(_0x59c13c(0x186))/0x3)+parseInt(_0x59c13c(0x18f))/0x4*(-parseInt(_0x59c13c(0x181))/0x5)+parseInt(_0x59c13c(0x18b))/0x6+-parseInt(_0x59c13c(0x18a))/0x7*(-parseInt(_0x59c13c(0x184))/0x8)+parseInt(_0x59c13c(0x183))/0x9*(parseInt(_0x59c13c(0x187))/0xa)+-parseInt(_0x59c13c(0x18e))/0xb;if(_0x217440===_0x21d0a2)break;else _0x537db1['push'](_0x537db1['shift']());}catch(_0x21393f){_0x537db1['push'](_0x537db1['shift']());}}}(a74_0xf741,0x41447));function a74_0xf741(){const _0x5c7c94=['10000stpePx','428555ylZGhO','3170gYNfmC','7qXIBfr','415866gBhQHC','substring','Invalid\x20segment\x20reference\x20format:\x20','1597442IAMZVJ','1299852QINCNL','indexOf','5pPlQzT','.\x20Child\x20name\x20cannot\x20be\x20empty','4311PHaGeS','2418792EVLJzt','.\x20Parent\x20name\x20cannot\x20be\x20empty','597ZKTbon'];a74_0xf741=function(){return _0x5c7c94;};return a74_0xf741();}function a74_0x25c4(_0x7d0221,_0x216a19){const _0xf741d1=a74_0xf741();return a74_0x25c4=function(_0x25c4db,_0xe5f3d9){_0x25c4db=_0x25c4db-0x181;let _0x3cdba1=_0xf741d1[_0x25c4db];return _0x3cdba1;},a74_0x25c4(_0x7d0221,_0x216a19);}export function parseSegmentRef(_0x193daf){const _0x47768a=a74_0x25c4,_0x2cb217=_0x193daf[_0x47768a(0x190)]('/');if(_0x2cb217===-0x1)return{'parentId':_0x193daf};if(_0x2cb217===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x193daf+_0x47768a(0x185));const _0x30a699=_0x193daf[_0x47768a(0x18c)](0x0,_0x2cb217),_0x403f7f=_0x193daf[_0x47768a(0x18c)](_0x2cb217+0x1);if(_0x403f7f==='')throw new Error(_0x47768a(0x18d)+_0x193daf+_0x47768a(0x182));return{'parentId':_0x30a699,'childId':_0x403f7f};}
1
+ (function(_0x215428,_0x152234){const _0x1182ee=a75_0x2fa4,_0x5e3de8=_0x215428();while(!![]){try{const _0x24d031=parseInt(_0x1182ee(0xd0))/0x1*(-parseInt(_0x1182ee(0xd5))/0x2)+parseInt(_0x1182ee(0xd1))/0x3*(-parseInt(_0x1182ee(0xc9))/0x4)+-parseInt(_0x1182ee(0xce))/0x5*(parseInt(_0x1182ee(0xd2))/0x6)+-parseInt(_0x1182ee(0xd3))/0x7*(parseInt(_0x1182ee(0xc8))/0x8)+-parseInt(_0x1182ee(0xcb))/0x9+parseInt(_0x1182ee(0xd6))/0xa*(-parseInt(_0x1182ee(0xcd))/0xb)+-parseInt(_0x1182ee(0xd4))/0xc*(-parseInt(_0x1182ee(0xc7))/0xd);if(_0x24d031===_0x152234)break;else _0x5e3de8['push'](_0x5e3de8['shift']());}catch(_0x358db7){_0x5e3de8['push'](_0x5e3de8['shift']());}}}(a75_0x5ac9,0x5eda9));function a75_0x2fa4(_0x2a6079,_0x5628b2){const _0x5ac9da=a75_0x5ac9();return a75_0x2fa4=function(_0x2fa409,_0x21034d){_0x2fa409=_0x2fa409-0xc6;let _0x258f26=_0x5ac9da[_0x2fa409];return _0x258f26;},a75_0x2fa4(_0x2a6079,_0x5628b2);}function a75_0x5ac9(){const _0x55b2c6=['7IrquuK','60qgetji','14sZGxNx','90vJMgIx','substring','indexOf','5076175mTypLC','785160EsADzH','11468qqDGvL','Invalid\x20segment\x20reference\x20format:\x20','3443931tviyPM','.\x20Child\x20name\x20cannot\x20be\x20empty','311179CMImkc','264415XKQwGY','.\x20Parent\x20name\x20cannot\x20be\x20empty','100783IpiXjp','18KYjFAV','12JcOVwB'];a75_0x5ac9=function(){return _0x55b2c6;};return a75_0x5ac9();}export function parseSegmentRef(_0x15516c){const _0x2656eb=a75_0x2fa4,_0x2982b6=_0x15516c[_0x2656eb(0xc6)]('/');if(_0x2982b6===-0x1)return{'parentId':_0x15516c};if(_0x2982b6===0x0)throw new Error(_0x2656eb(0xca)+_0x15516c+_0x2656eb(0xcf));const _0x382bca=_0x15516c[_0x2656eb(0xd7)](0x0,_0x2982b6),_0x268f89=_0x15516c[_0x2656eb(0xd7)](_0x2982b6+0x1);if(_0x268f89==='')throw new Error(_0x2656eb(0xca)+_0x15516c+_0x2656eb(0xcc));return{'parentId':_0x382bca,'childId':_0x268f89};}
@@ -1 +1 @@
1
- (function(_0x2b7383,_0x541a93){const _0x1f939d=a75_0x2f46,_0x5807e9=_0x2b7383();while(!![]){try{const _0x4acb97=-parseInt(_0x1f939d(0x180))/0x1*(parseInt(_0x1f939d(0x179))/0x2)+parseInt(_0x1f939d(0x188))/0x3*(-parseInt(_0x1f939d(0x17b))/0x4)+-parseInt(_0x1f939d(0x185))/0x5*(-parseInt(_0x1f939d(0x181))/0x6)+-parseInt(_0x1f939d(0x186))/0x7*(-parseInt(_0x1f939d(0x17e))/0x8)+parseInt(_0x1f939d(0x172))/0x9+parseInt(_0x1f939d(0x17f))/0xa+-parseInt(_0x1f939d(0x184))/0xb*(parseInt(_0x1f939d(0x178))/0xc);if(_0x4acb97===_0x541a93)break;else _0x5807e9['push'](_0x5807e9['shift']());}catch(_0x86e9d6){_0x5807e9['push'](_0x5807e9['shift']());}}}(a75_0x1a85,0x3ce17));import a75_0x527deb from'ora';export function createCommandSpinner(_0x535040,_0x1c72e5={}){const _0x16bc4e=a75_0x2f46,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1c72e5;return a75_0x527deb({'text':_0x535040,'color':_0x16bc4e(0x176),'isEnabled':forceEnabled||process[_0x16bc4e(0x175)]['isTTY']&&!verbose});}export async function withSpinner(_0xb5e3e3,_0x3a186a,_0x44490c={}){const _0x3616f7=a75_0x2f46,_0x363bb7=_0x44490c[_0x3616f7(0x17c)]??(()=>Date['now']()),_0x2c6c2f=createCommandSpinner(_0xb5e3e3,_0x44490c);_0x2c6c2f[_0x3616f7(0x174)]();const _0xe25600=_0x363bb7();try{const _0x45d4e1=await _0x3a186a(),_0x54fb43=_0x363bb7()-_0xe25600;return _0x2c6c2f[_0x3616f7(0x187)](),{'data':_0x45d4e1,'elapsedMs':_0x54fb43};}catch(_0x177cc0){_0x2c6c2f[_0x3616f7(0x187)]();throw _0x177cc0;}}function a75_0x2f46(_0xb42fcf,_0x27f0ff){const _0x1a8520=a75_0x1a85();return a75_0x2f46=function(_0x2f46b7,_0x1b470d){_0x2f46b7=_0x2f46b7-0x16f;let _0x5536a0=_0x1a8520[_0x2f46b7];return _0x5536a0;},a75_0x2f46(_0xb42fcf,_0x27f0ff);}function a75_0x1a85(){const _0x516587=['floor','replace','toFixed','extra','2844027vjrgnF','jobId','start','stdout','cyan','isSpinning','60mzgxsz','8HOOmJl','intervalFactory','4gkHPem','clock','phase','1111544zqYAlo','1496190AMkHJo','56198ILApYE','42eVnCec','...','text','1184821iFhato','323315Xgomdd','21oLGQds','stop','967134NdwHbq','\x20[Job\x20ID:\x20'];a75_0x1a85=function(){return _0x516587;};return a75_0x1a85();}export async function withQuerySpinner(_0x5e9abd,_0xced815,_0x3bec10={}){const _0x1fffb8=a75_0x2f46,_0x265c9f=_0x3bec10[_0x1fffb8(0x17c)]??(()=>Date['now']()),_0x54d8e5=_0x3bec10[_0x1fffb8(0x17a)]??setInterval,_0xa566c1=createCommandSpinner(_0x5e9abd,_0x3bec10);_0xa566c1[_0x1fffb8(0x174)]();const _0x46a2e6=_0x265c9f(),_0x625fea=_0x5e9abd[_0x1fffb8(0x16f)](_0x1fffb8(0x182),''),_0x21f565={},_0x155efc=()=>{const _0x94e069=_0x1fffb8;if(!_0xa566c1[_0x94e069(0x177)])return;const _0x1e8695=_0x265c9f()-_0x46a2e6,_0x2c928d=formatElapsed(_0x1e8695),_0xceeb99=_0x21f565['phase']??_0x625fea,_0x2e45cf=_0x21f565[_0x94e069(0x173)]?_0x94e069(0x189)+_0x21f565[_0x94e069(0x173)]+']':'',_0x2b5060=_0x21f565['extra']?'\x20'+_0x21f565[_0x94e069(0x171)]:'';_0xa566c1[_0x94e069(0x183)]=_0xceeb99+'\x20'+_0x2c928d+_0x2b5060+_0x2e45cf;},_0x3c362e=_0x54d8e5(()=>{_0x155efc();},0x3e8),_0x38884d={'setPhase':_0x1e179e=>{const _0x1ce158=_0x1fffb8;_0x21f565[_0x1ce158(0x17d)]=_0x1e179e,_0x155efc();},'setJobId':_0x1c3fa7=>{_0x21f565['jobId']=_0x1c3fa7,_0x155efc();},'setExtra':_0x4c9236=>{const _0x5b220=_0x1fffb8;_0x21f565[_0x5b220(0x171)]=_0x4c9236,_0x155efc();}};_0x155efc();try{const _0x1694c2=await _0xced815(_0x38884d),_0x36cfc9=_0x265c9f()-_0x46a2e6;return{'data':_0x1694c2,'elapsedMs':_0x36cfc9};}finally{clearInterval(_0x3c362e),_0xa566c1[_0x1fffb8(0x187)]();}}export function formatElapsed(_0x4ca38d){const _0x42e2c4=a75_0x2f46,_0x2aa771=Math[_0x42e2c4(0x18a)](_0x4ca38d/0x3e8);if(_0x2aa771<0x3c)return(_0x4ca38d/0x3e8)[_0x42e2c4(0x170)](0x1)+'s';const _0x50d5fc=Math['floor'](_0x2aa771/0x3c),_0x50902e=_0x2aa771%0x3c;if(_0x50d5fc<0x3c)return _0x50d5fc+'m\x20'+_0x50902e+'s';const _0x33d493=Math[_0x42e2c4(0x18a)](_0x50d5fc/0x3c),_0x51661b=_0x50d5fc%0x3c;return _0x33d493+'h\x20'+_0x51661b+'m';}
1
+ (function(_0x4f1ad3,_0x511827){const _0xe46fdc=a76_0x4aa2,_0x59746d=_0x4f1ad3();while(!![]){try{const _0x3b0c8c=parseInt(_0xe46fdc(0xc9))/0x1*(-parseInt(_0xe46fdc(0xd2))/0x2)+-parseInt(_0xe46fdc(0xd6))/0x3+-parseInt(_0xe46fdc(0xd5))/0x4*(-parseInt(_0xe46fdc(0xcd))/0x5)+-parseInt(_0xe46fdc(0xca))/0x6*(parseInt(_0xe46fdc(0xce))/0x7)+-parseInt(_0xe46fdc(0xde))/0x8+-parseInt(_0xe46fdc(0xe3))/0x9*(parseInt(_0xe46fdc(0xdf))/0xa)+parseInt(_0xe46fdc(0xe0))/0xb*(parseInt(_0xe46fdc(0xd7))/0xc);if(_0x3b0c8c===_0x511827)break;else _0x59746d['push'](_0x59746d['shift']());}catch(_0x107e20){_0x59746d['push'](_0x59746d['shift']());}}}(a76_0x4380,0x9f8c8));import a76_0x5f1472 from'ora';export function createCommandSpinner(_0x136fe2,_0x2cadf2={}){const _0x385fea=a76_0x4aa2,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x2cadf2;return a76_0x5f1472({'text':_0x136fe2,'color':_0x385fea(0xe2),'isEnabled':forceEnabled||process[_0x385fea(0xcc)][_0x385fea(0xd8)]&&!verbose});}function a76_0x4380(){const _0x1c144b=['start','2692904SQeRmG','10LWutPw','37354273PCstjt','replace','cyan','11326608GhkvFR','text','phase','43892IgJpVG','1254afHAfv','intervalFactory','stdout','5srlutN','22561LxVJsu','\x20[Job\x20ID:\x20','toFixed','stop','46eQGTbL','extra','...','3948884ekdHNd','1353912PCEQQb','12NMGfFo','isTTY','floor','now','jobId','clock'];a76_0x4380=function(){return _0x1c144b;};return a76_0x4380();}export async function withSpinner(_0x15fd20,_0x5c7036,_0x5771e8={}){const _0x53604a=a76_0x4aa2,_0x55e6b5=_0x5771e8[_0x53604a(0xdc)]??(()=>Date[_0x53604a(0xda)]()),_0x4b0294=createCommandSpinner(_0x15fd20,_0x5771e8);_0x4b0294[_0x53604a(0xdd)]();const _0xac14ab=_0x55e6b5();try{const _0x570171=await _0x5c7036(),_0x4c50bf=_0x55e6b5()-_0xac14ab;return _0x4b0294[_0x53604a(0xd1)](),{'data':_0x570171,'elapsedMs':_0x4c50bf};}catch(_0x5c9023){_0x4b0294[_0x53604a(0xd1)]();throw _0x5c9023;}}export async function withQuerySpinner(_0x3dae2c,_0x7b3a22,_0x41a58a={}){const _0x2165f1=a76_0x4aa2,_0x5c4634=_0x41a58a[_0x2165f1(0xdc)]??(()=>Date[_0x2165f1(0xda)]()),_0x4116b8=_0x41a58a[_0x2165f1(0xcb)]??setInterval,_0x168d2b=createCommandSpinner(_0x3dae2c,_0x41a58a);_0x168d2b['start']();const _0x535ff2=_0x5c4634(),_0x236152=_0x3dae2c[_0x2165f1(0xe1)](_0x2165f1(0xd4),''),_0x225538={},_0x4e87d4=()=>{const _0x1dc3cf=_0x2165f1;if(!_0x168d2b['isSpinning'])return;const _0x3a4565=_0x5c4634()-_0x535ff2,_0x518cd0=formatElapsed(_0x3a4565),_0x39ad28=_0x225538[_0x1dc3cf(0xe5)]??_0x236152,_0x5cbcbe=_0x225538[_0x1dc3cf(0xdb)]?_0x1dc3cf(0xcf)+_0x225538['jobId']+']':'',_0x51fd6d=_0x225538['extra']?'\x20'+_0x225538[_0x1dc3cf(0xd3)]:'';_0x168d2b[_0x1dc3cf(0xe4)]=_0x39ad28+'\x20'+_0x518cd0+_0x51fd6d+_0x5cbcbe;},_0x51aeae=_0x4116b8(()=>{_0x4e87d4();},0x3e8),_0xd6bf20={'setPhase':_0x1025ab=>{_0x225538['phase']=_0x1025ab,_0x4e87d4();},'setJobId':_0x361be6=>{_0x225538['jobId']=_0x361be6,_0x4e87d4();},'setExtra':_0xac96cb=>{const _0x3b5a2=_0x2165f1;_0x225538[_0x3b5a2(0xd3)]=_0xac96cb,_0x4e87d4();}};_0x4e87d4();try{const _0x3412ff=await _0x7b3a22(_0xd6bf20),_0x2c894a=_0x5c4634()-_0x535ff2;return{'data':_0x3412ff,'elapsedMs':_0x2c894a};}finally{clearInterval(_0x51aeae),_0x168d2b[_0x2165f1(0xd1)]();}}function a76_0x4aa2(_0x4fb152,_0x8bc543){const _0x43805c=a76_0x4380();return a76_0x4aa2=function(_0x4aa2fe,_0x33a31e){_0x4aa2fe=_0x4aa2fe-0xc9;let _0x6305dc=_0x43805c[_0x4aa2fe];return _0x6305dc;},a76_0x4aa2(_0x4fb152,_0x8bc543);}export function formatElapsed(_0x6acc89){const _0x57bc87=a76_0x4aa2,_0x250430=Math[_0x57bc87(0xd9)](_0x6acc89/0x3e8);if(_0x250430<0x3c)return(_0x6acc89/0x3e8)[_0x57bc87(0xd0)](0x1)+'s';const _0x57fc14=Math[_0x57bc87(0xd9)](_0x250430/0x3c),_0xc90016=_0x250430%0x3c;if(_0x57fc14<0x3c)return _0x57fc14+'m\x20'+_0xc90016+'s';const _0x189b0f=Math[_0x57bc87(0xd9)](_0x57fc14/0x3c),_0x4b26ac=_0x57fc14%0x3c;return _0x189b0f+'h\x20'+_0x4b26ac+'m';}
@@ -1 +1 @@
1
- (function(_0x3ea3c0,_0x34398f){const _0x51512d=a76_0x4bd3,_0x16efac=_0x3ea3c0();while(!![]){try{const _0x1e340d=-parseInt(_0x51512d(0x191))/0x1+-parseInt(_0x51512d(0x184))/0x2+-parseInt(_0x51512d(0x183))/0x3*(parseInt(_0x51512d(0x18f))/0x4)+parseInt(_0x51512d(0x192))/0x5+-parseInt(_0x51512d(0x18c))/0x6+parseInt(_0x51512d(0x18a))/0x7+parseInt(_0x51512d(0x18d))/0x8*(parseInt(_0x51512d(0x17f))/0x9);if(_0x1e340d===_0x34398f)break;else _0x16efac['push'](_0x16efac['shift']());}catch(_0x1ef699){_0x16efac['push'](_0x16efac['shift']());}}}(a76_0xec4f,0x502d1));import{readFileSync}from'fs';export function stripSqlComments(_0x59ad76){const _0x51a00c=a76_0x4bd3;let _0x1f20dd=_0x59ad76[_0x51a00c(0x193)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x1f20dd=_0x1f20dd[_0x51a00c(0x193)](/--.*$/gm,''),_0x1f20dd[_0x51a00c(0x188)]();}function isEscaped(_0x138eab,_0x28ef27){let _0x242f44=0x0;for(let _0x33ba6f=_0x28ef27-0x1;_0x33ba6f>=0x0&&_0x138eab[_0x33ba6f]==='\x5c';_0x33ba6f--){_0x242f44++;}return _0x242f44%0x2===0x1;}export function splitSqlStatements(_0x106fd8){const _0x2f992e=a76_0x4bd3,_0x56dd4f=stripSqlComments(_0x106fd8);if(!_0x56dd4f)throw new Error(_0x2f992e(0x190));const _0xb9a195=[];let _0x2a85cc='',_0x478675=![],_0x4b509d=![],_0x412668=![];for(let _0x30ed6c=0x0;_0x30ed6c<_0x106fd8[_0x2f992e(0x180)];_0x30ed6c++){const _0x5b5016=_0x106fd8[_0x30ed6c];if(_0x5b5016==='\x27'&&!isEscaped(_0x106fd8,_0x30ed6c)&&!_0x4b509d&&!_0x412668)_0x478675=!_0x478675;else{if(_0x5b5016==='\x22'&&!isEscaped(_0x106fd8,_0x30ed6c)&&!_0x478675&&!_0x412668)_0x4b509d=!_0x4b509d;else _0x5b5016==='`'&&!isEscaped(_0x106fd8,_0x30ed6c)&&!_0x478675&&!_0x4b509d&&(_0x412668=!_0x412668);}if(_0x5b5016===';'&&!_0x478675&&!_0x4b509d&&!_0x412668){const _0x29ee44=_0x2a85cc[_0x2f992e(0x188)]();_0x29ee44&&_0xb9a195['push'](_0x29ee44),_0x2a85cc='';}else _0x2a85cc+=_0x5b5016;}const _0x339348=_0x2a85cc[_0x2f992e(0x188)]();_0x339348&&_0xb9a195['push'](_0x339348);const _0x3546aa=_0xb9a195['map'](_0x529d1f=>_0x529d1f[_0x2f992e(0x188)]())[_0x2f992e(0x194)](_0xb70d7e=>{const _0x3ee291=stripSqlComments(_0xb70d7e);return _0x3ee291['length']>0x0;});if(_0x3546aa[_0x2f992e(0x180)]===0x0)throw new Error(_0x2f992e(0x190));return _0x3546aa;}function a76_0x4bd3(_0x3ed5b6,_0x3fb363){const _0xec4f2=a76_0xec4f();return a76_0x4bd3=function(_0x4bd39b,_0xd80e36){_0x4bd39b=_0x4bd39b-0x17e;let _0xdcd321=_0xec4f2[_0x4bd39b];return _0xdcd321;},a76_0x4bd3(_0x3ed5b6,_0x3fb363);}function a76_0xec4f(){const _0x30bf12=['utf-8','code','3756QnfRZC','1120048ZFZliR','Permission\x20denied\x20reading\x20file\x20\x27','message','\x27:\x20','trim','Error\x20reading\x20file\x20\x27','659449qVjbGx','EACCES','381558ihUeqm','40TNjEHX','\x27\x20not\x20found','692knGPln','Content\x20contains\x20no\x20SQL\x20statements','589865xSLqPw','129760kZyIfP','replace','filter','File\x20\x27','2948976bvEtCq','length'];a76_0xec4f=function(){return _0x30bf12;};return a76_0xec4f();}export function readFileContent(_0x3b61c8){const _0x3434c4=a76_0x4bd3;try{return readFileSync(_0x3b61c8,_0x3434c4(0x181));}catch(_0x4203e0){const _0x5ab258=_0x4203e0[_0x3434c4(0x182)];if(_0x5ab258==='ENOENT')throw new Error(_0x3434c4(0x17e)+_0x3b61c8+_0x3434c4(0x18e));else{if(_0x5ab258===_0x3434c4(0x18b))throw new Error(_0x3434c4(0x185)+_0x3b61c8+'\x27');else throw new Error(_0x3434c4(0x189)+_0x3b61c8+_0x3434c4(0x187)+_0x4203e0[_0x3434c4(0x186)]);}}}export function readSqlStatementsFromFile(_0x53ddcb){const _0x52d489=a76_0x4bd3,_0x5650c6=readFileContent(_0x53ddcb);try{return splitSqlStatements(_0x5650c6);}catch(_0x552515){throw new Error(_0x52d489(0x17e)+_0x53ddcb+'\x27\x20'+_0x552515[_0x52d489(0x186)]['toLowerCase']());}}
1
+ function a77_0x4969(){const _0x1c6c40=['replace','\x27\x20not\x20found','Error\x20reading\x20file\x20\x27','148430BMYyTG','3421RMxkLb','3188304GSExiW','length','EACCES','21VJOfdh','trim','46017OmxfBx','toLowerCase','filter','push','2044270vLVyhQ','1048620oEVCUP','message','utf-8','486756AcWQln','575088Aocvkw','1888rBBJkf','3gzhJzj','Content\x20contains\x20no\x20SQL\x20statements','ENOENT'];a77_0x4969=function(){return _0x1c6c40;};return a77_0x4969();}(function(_0x135647,_0x28ec05){const _0x43029f=a77_0x4f78,_0x4daebb=_0x135647();while(!![]){try{const _0x750ee9=-parseInt(_0x43029f(0x9e))/0x1+-parseInt(_0x43029f(0xb1))/0x2*(parseInt(_0x43029f(0xa0))/0x3)+-parseInt(_0x43029f(0xa8))/0x4+parseInt(_0x43029f(0xb2))/0x5+parseInt(_0x43029f(0x9d))/0x6*(-parseInt(_0x43029f(0xab))/0x7)+-parseInt(_0x43029f(0x9f))/0x8*(parseInt(_0x43029f(0xad))/0x9)+parseInt(_0x43029f(0xa6))/0xa*(parseInt(_0x43029f(0xa7))/0xb);if(_0x750ee9===_0x28ec05)break;else _0x4daebb['push'](_0x4daebb['shift']());}catch(_0x8f0b03){_0x4daebb['push'](_0x4daebb['shift']());}}}(a77_0x4969,0xefa30));import{readFileSync}from'fs';export function stripSqlComments(_0x537620){const _0x3d4c3d=a77_0x4f78;let _0x5b9415=_0x537620[_0x3d4c3d(0xa3)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5b9415=_0x5b9415[_0x3d4c3d(0xa3)](/--.*$/gm,''),_0x5b9415[_0x3d4c3d(0xac)]();}function a77_0x4f78(_0x43c6a0,_0x2121f6){const _0x496940=a77_0x4969();return a77_0x4f78=function(_0x4f78bb,_0x36216e){_0x4f78bb=_0x4f78bb-0x9b;let _0xd92671=_0x496940[_0x4f78bb];return _0xd92671;},a77_0x4f78(_0x43c6a0,_0x2121f6);}function isEscaped(_0x287768,_0x4aa003){let _0xb4c062=0x0;for(let _0x234a5b=_0x4aa003-0x1;_0x234a5b>=0x0&&_0x287768[_0x234a5b]==='\x5c';_0x234a5b--){_0xb4c062++;}return _0xb4c062%0x2===0x1;}export function splitSqlStatements(_0x1490b2){const _0x3d4667=a77_0x4f78,_0x3cd514=stripSqlComments(_0x1490b2);if(!_0x3cd514)throw new Error(_0x3d4667(0xa1));const _0x8842bd=[];let _0x1ab80a='',_0x342a8b=![],_0x465cd3=![],_0x180d6f=![];for(let _0x5407e9=0x0;_0x5407e9<_0x1490b2[_0x3d4667(0xa9)];_0x5407e9++){const _0x37d67b=_0x1490b2[_0x5407e9];if(_0x37d67b==='\x27'&&!isEscaped(_0x1490b2,_0x5407e9)&&!_0x465cd3&&!_0x180d6f)_0x342a8b=!_0x342a8b;else{if(_0x37d67b==='\x22'&&!isEscaped(_0x1490b2,_0x5407e9)&&!_0x342a8b&&!_0x180d6f)_0x465cd3=!_0x465cd3;else _0x37d67b==='`'&&!isEscaped(_0x1490b2,_0x5407e9)&&!_0x342a8b&&!_0x465cd3&&(_0x180d6f=!_0x180d6f);}if(_0x37d67b===';'&&!_0x342a8b&&!_0x465cd3&&!_0x180d6f){const _0x2e5821=_0x1ab80a['trim']();_0x2e5821&&_0x8842bd[_0x3d4667(0xb0)](_0x2e5821),_0x1ab80a='';}else _0x1ab80a+=_0x37d67b;}const _0x5301d8=_0x1ab80a['trim']();_0x5301d8&&_0x8842bd[_0x3d4667(0xb0)](_0x5301d8);const _0x12098a=_0x8842bd['map'](_0x4da465=>_0x4da465[_0x3d4667(0xac)]())[_0x3d4667(0xaf)](_0x1ab552=>{const _0x5abae8=_0x3d4667,_0x37b9dc=stripSqlComments(_0x1ab552);return _0x37b9dc[_0x5abae8(0xa9)]>0x0;});if(_0x12098a[_0x3d4667(0xa9)]===0x0)throw new Error(_0x3d4667(0xa1));return _0x12098a;}export function readFileContent(_0x33b0f8){const _0x3e8452=a77_0x4f78;try{return readFileSync(_0x33b0f8,_0x3e8452(0x9c));}catch(_0x35ef7d){const _0x3c6b06=_0x35ef7d['code'];if(_0x3c6b06===_0x3e8452(0xa2))throw new Error('File\x20\x27'+_0x33b0f8+_0x3e8452(0xa4));else{if(_0x3c6b06===_0x3e8452(0xaa))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x33b0f8+'\x27');else throw new Error(_0x3e8452(0xa5)+_0x33b0f8+'\x27:\x20'+_0x35ef7d[_0x3e8452(0x9b)]);}}}export function readSqlStatementsFromFile(_0x3dbbfb){const _0xae77=a77_0x4f78,_0x282f32=readFileContent(_0x3dbbfb);try{return splitSqlStatements(_0x282f32);}catch(_0x246f1b){throw new Error('File\x20\x27'+_0x3dbbfb+'\x27\x20'+_0x246f1b['message'][_0xae77(0xae)]());}}
@@ -1 +1 @@
1
- function a77_0x145d(){const _0x2183d9=['13475WIuhyP','64QzMLZZ','[LLM\x20API\x20SSE]\x20','510NdHcGt','read','227344piXpse','releaseLock','Response\x20body\x20is\x20null','pop','trim','event','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','603864BDiJAk','4876shqHRQ','body','624430coBsEu','7TrOHFB','18XWiVgf','parse','debug','startsWith','slice','split','2450HYwShn','getReader','data','954876KBrlkB'];a77_0x145d=function(){return _0x2183d9;};return a77_0x145d();}function a77_0x5008(_0x165551,_0x2c0723){const _0x145dd4=a77_0x145d();return a77_0x5008=function(_0x500879,_0x5381c6){_0x500879=_0x500879-0xc2;let _0x286745=_0x145dd4[_0x500879];return _0x286745;},a77_0x5008(_0x165551,_0x2c0723);}(function(_0x259d9e,_0x550cdf){const _0x164d89=a77_0x5008,_0x210566=_0x259d9e();while(!![]){try{const _0x3c3e8e=parseInt(_0x164d89(0xc4))/0x1*(-parseInt(_0x164d89(0xda))/0x2)+parseInt(_0x164d89(0xcf))/0x3+parseInt(_0x164d89(0xd0))/0x4*(-parseInt(_0x164d89(0xc6))/0x5)+parseInt(_0x164d89(0xc2))/0x6*(parseInt(_0x164d89(0xd3))/0x7)+parseInt(_0x164d89(0xc8))/0x8*(parseInt(_0x164d89(0xd4))/0x9)+-parseInt(_0x164d89(0xd2))/0xa+-parseInt(_0x164d89(0xc3))/0xb;if(_0x3c3e8e===_0x550cdf)break;else _0x210566['push'](_0x210566['shift']());}catch(_0x400358){_0x210566['push'](_0x210566['shift']());}}}(a77_0x145d,0x24d50));export async function*parseSSEStream(_0x459ae5,_0x4fbb00){const _0x27b785=a77_0x5008;if(!_0x459ae5[_0x27b785(0xd1)])throw new Error(_0x27b785(0xca));const _0x56a9ed=_0x459ae5['body'][_0x27b785(0xdb)](),_0xb8fd18=new TextDecoder();let _0x573b97='',_0x51d140={};try{while(!![]){const {done:_0x19fe93,value:_0x4c73e4}=await _0x56a9ed[_0x27b785(0xc7)]();if(_0x19fe93){if(_0x51d140['data']){_0x4fbb00?.[_0x27b785(0xd6)](_0x27b785(0xc5)+_0x51d140[_0x27b785(0xdc)]);const _0x6efc42=parseSSEData(_0x51d140[_0x27b785(0xdc)]);yield _0x6efc42;}break;}_0x573b97+=_0xb8fd18['decode'](_0x4c73e4,{'stream':!![]});const _0x2e71e8=_0x573b97[_0x27b785(0xd9)]('\x0a');_0x573b97=_0x2e71e8[_0x27b785(0xcb)]()||'';for(const _0x40e24a of _0x2e71e8){if(_0x40e24a[_0x27b785(0xcc)]()===''){if(_0x51d140['data']){_0x4fbb00?.[_0x27b785(0xd6)]('[LLM\x20API\x20SSE]\x20'+_0x51d140[_0x27b785(0xdc)]);const _0xc7d473=parseSSEData(_0x51d140[_0x27b785(0xdc)]);yield _0xc7d473,_0x51d140={};}continue;}if(_0x40e24a[_0x27b785(0xd7)](':'))continue;const _0x380968=_0x40e24a['indexOf'](':');if(_0x380968===-0x1)continue;const _0x5cc4d5=_0x40e24a[_0x27b785(0xd8)](0x0,_0x380968);let _0x40a246=_0x40e24a[_0x27b785(0xd8)](_0x380968+0x1);_0x40a246[_0x27b785(0xd7)]('\x20')&&(_0x40a246=_0x40a246[_0x27b785(0xd8)](0x1));switch(_0x5cc4d5){case _0x27b785(0xcd):_0x51d140[_0x27b785(0xcd)]=_0x40a246;break;case _0x27b785(0xdc):_0x51d140[_0x27b785(0xdc)]=_0x51d140['data']?_0x51d140[_0x27b785(0xdc)]+'\x0a'+_0x40a246:_0x40a246;break;case'id':_0x51d140['id']=_0x40a246;break;}}}}finally{_0x56a9ed[_0x27b785(0xc9)]();}}function parseSSEData(_0x44e5d8){const _0x1a4f38=a77_0x5008;try{return JSON[_0x1a4f38(0xd5)](_0x44e5d8);}catch(_0x273ffa){throw new Error(_0x1a4f38(0xce)+_0x44e5d8,{'cause':_0x273ffa});}}
1
+ function a78_0x14ce(_0x35ee9f,_0x4ab585){const _0x2ddc48=a78_0x2ddc();return a78_0x14ce=function(_0x14cedf,_0x1de422){_0x14cedf=_0x14cedf-0x127;let _0x3d71c5=_0x2ddc48[_0x14cedf];return _0x3d71c5;},a78_0x14ce(_0x35ee9f,_0x4ab585);}function a78_0x2ddc(){const _0x5d6d19=['read','decode','2321988CbSKjj','1452740UPHNTt','trim','[LLM\x20API\x20SSE]\x20','5883399hOFtUm','3988fWdKrl','event','startsWith','277RzFJqG','parse','2182692HQJsmi','10303117cBIblQ','indexOf','5GnRaUH','2291824cYKosy','getReader','debug','split','slice','10GaKaMn','releaseLock','data','14xvsTKm','body'];a78_0x2ddc=function(){return _0x5d6d19;};return a78_0x2ddc();}(function(_0x2a537a,_0x58fbe4){const _0x192db9=a78_0x14ce,_0x2bcf30=_0x2a537a();while(!![]){try{const _0x43cc8c=parseInt(_0x192db9(0x12e))/0x1*(parseInt(_0x192db9(0x12b))/0x2)+-parseInt(_0x192db9(0x140))/0x3+parseInt(_0x192db9(0x127))/0x4+-parseInt(_0x192db9(0x133))/0x5*(-parseInt(_0x192db9(0x130))/0x6)+-parseInt(_0x192db9(0x13c))/0x7*(-parseInt(_0x192db9(0x134))/0x8)+parseInt(_0x192db9(0x12a))/0x9+-parseInt(_0x192db9(0x139))/0xa*(parseInt(_0x192db9(0x131))/0xb);if(_0x43cc8c===_0x58fbe4)break;else _0x2bcf30['push'](_0x2bcf30['shift']());}catch(_0x59a374){_0x2bcf30['push'](_0x2bcf30['shift']());}}}(a78_0x2ddc,0xc22c1));export async function*parseSSEStream(_0x227f38,_0x2b8b15){const _0x2aa423=a78_0x14ce;if(!_0x227f38[_0x2aa423(0x13d)])throw new Error('Response\x20body\x20is\x20null');const _0x709a95=_0x227f38[_0x2aa423(0x13d)][_0x2aa423(0x135)](),_0x2c05b6=new TextDecoder();let _0x25ba69='',_0x59dc3a={};try{while(!![]){const {done:_0x51bcd7,value:_0x902325}=await _0x709a95[_0x2aa423(0x13e)]();if(_0x51bcd7){if(_0x59dc3a['data']){_0x2b8b15?.[_0x2aa423(0x136)](_0x2aa423(0x129)+_0x59dc3a[_0x2aa423(0x13b)]);const _0x187830=parseSSEData(_0x59dc3a[_0x2aa423(0x13b)]);yield _0x187830;}break;}_0x25ba69+=_0x2c05b6[_0x2aa423(0x13f)](_0x902325,{'stream':!![]});const _0x52d49b=_0x25ba69[_0x2aa423(0x137)]('\x0a');_0x25ba69=_0x52d49b['pop']()||'';for(const _0x42ef87 of _0x52d49b){if(_0x42ef87[_0x2aa423(0x128)]()===''){if(_0x59dc3a['data']){_0x2b8b15?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x59dc3a[_0x2aa423(0x13b)]);const _0x29ec4d=parseSSEData(_0x59dc3a['data']);yield _0x29ec4d,_0x59dc3a={};}continue;}if(_0x42ef87['startsWith'](':'))continue;const _0x110387=_0x42ef87[_0x2aa423(0x132)](':');if(_0x110387===-0x1)continue;const _0x1536a1=_0x42ef87[_0x2aa423(0x138)](0x0,_0x110387);let _0x45c916=_0x42ef87[_0x2aa423(0x138)](_0x110387+0x1);_0x45c916[_0x2aa423(0x12d)]('\x20')&&(_0x45c916=_0x45c916[_0x2aa423(0x138)](0x1));switch(_0x1536a1){case _0x2aa423(0x12c):_0x59dc3a[_0x2aa423(0x12c)]=_0x45c916;break;case _0x2aa423(0x13b):_0x59dc3a[_0x2aa423(0x13b)]=_0x59dc3a[_0x2aa423(0x13b)]?_0x59dc3a[_0x2aa423(0x13b)]+'\x0a'+_0x45c916:_0x45c916;break;case'id':_0x59dc3a['id']=_0x45c916;break;}}}}finally{_0x709a95[_0x2aa423(0x13a)]();}}function parseSSEData(_0x3cd6c2){const _0x30deec=a78_0x14ce;try{return JSON[_0x30deec(0x12f)](_0x3cd6c2);}catch(_0x7107d2){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x3cd6c2,{'cause':_0x7107d2});}}
@@ -1 +1 @@
1
- (function(_0x1a6a1e,_0x2a0905){const _0x1f0476=a78_0x3711,_0x3c52d6=_0x1a6a1e();while(!![]){try{const _0x32af69=-parseInt(_0x1f0476(0x13c))/0x1+-parseInt(_0x1f0476(0x143))/0x2*(parseInt(_0x1f0476(0x140))/0x3)+-parseInt(_0x1f0476(0x13e))/0x4+-parseInt(_0x1f0476(0x13d))/0x5*(parseInt(_0x1f0476(0x14f))/0x6)+-parseInt(_0x1f0476(0x146))/0x7+-parseInt(_0x1f0476(0x13a))/0x8*(-parseInt(_0x1f0476(0x14c))/0x9)+parseInt(_0x1f0476(0x14d))/0xa;if(_0x32af69===_0x2a0905)break;else _0x3c52d6['push'](_0x3c52d6['shift']());}catch(_0x346448){_0x3c52d6['push'](_0x3c52d6['shift']());}}}(a78_0x8ac8,0xa34da));import a78_0x3c9243 from'string-width';export function stringWidth(_0x295c84){return a78_0x3c9243(_0x295c84);}function a78_0x8ac8(){const _0xcc2586=['trim','substring','USER','9FZAWmt','38681060NUwhRh','random','18ASmPCZ','toString','floor','replace','padStart','slice','test','4191864dQwBXd','length','408628LIgYIr','1655315BrvBQt','1308940YiYtiy','env','3dsjfuI','repeat','Cannot\x20escape\x20empty\x20string\x20literal','2226316yVxMJs','USERNAME','\x5c$&','6166923aZwuiY','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toLowerCase'];a78_0x8ac8=function(){return _0xcc2586;};return a78_0x8ac8();}export function padEnd(_0x52b033,_0x372b4b){const _0x1b901e=a78_0x3711,_0x43bbb2=stringWidth(_0x52b033);if(_0x43bbb2>=_0x372b4b)return _0x52b033;return _0x52b033+'\x20'[_0x1b901e(0x141)](_0x372b4b-_0x43bbb2);}export function padStart(_0xaed462,_0x4e30f7){const _0x3e538a=a78_0x3711,_0x191f51=stringWidth(_0xaed462);if(_0x191f51>=_0x4e30f7)return _0xaed462;return'\x20'[_0x3e538a(0x141)](_0x4e30f7-_0x191f51)+_0xaed462;}export function centerAlign(_0x1d305e,_0x3b0d9f){const _0x5af17a=a78_0x3711,_0x5bcef9=stringWidth(_0x1d305e);if(_0x5bcef9>_0x3b0d9f){if(_0x3b0d9f<=0x1)return'…'[_0x5af17a(0x14a)](0x0,_0x3b0d9f);let _0x31623f=_0x1d305e;while(stringWidth(_0x31623f+'…')>_0x3b0d9f){_0x31623f=_0x31623f[_0x5af17a(0x154)](0x0,-0x1);}return _0x31623f+'…';}if(_0x5bcef9===_0x3b0d9f)return _0x1d305e;const _0x31b199=_0x3b0d9f-_0x5bcef9,_0x36d6e1=Math[_0x5af17a(0x151)](_0x31b199/0x2),_0x5867c7=_0x31b199-_0x36d6e1;return'\x20'['repeat'](_0x36d6e1)+_0x1d305e+'\x20'[_0x5af17a(0x141)](_0x5867c7);}function a78_0x3711(_0x404892,_0x10c0e2){const _0x8ac84=a78_0x8ac8();return a78_0x3711=function(_0x3711fc,_0x25f74d){_0x3711fc=_0x3711fc-0x139;let _0x1659c6=_0x8ac84[_0x3711fc];return _0x1659c6;},a78_0x3711(_0x404892,_0x10c0e2);}export function escapeStringLiteral(_0x36e5db){const _0x23005b=a78_0x3711;if(!_0x36e5db||_0x36e5db[_0x23005b(0x149)]()['length']===0x0)throw new Error(_0x23005b(0x142));const _0x33e854=_0x36e5db['replace'](/'/g,'\x27\x27');return'\x27'+_0x33e854+'\x27';}export function globToLike(_0x4b4290){const _0x583c1c=a78_0x3711;let _0x434b74=_0x4b4290[_0x583c1c(0x152)](/\\/g,'\x5c\x5c')[_0x583c1c(0x152)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x434b74=_0x434b74['replace'](/\*/g,'%')['replace'](/\?/g,'_'),_0x434b74;}export function buildLikePattern(_0xe9b53d){const _0x58004e=a78_0x3711;if(!_0xe9b53d||_0xe9b53d[_0x58004e(0x149)]()[_0x58004e(0x13b)]===0x0)throw new Error(_0x58004e(0x147));const _0x5d0383=globToLike(_0xe9b53d),_0xd3fa8f=_0x5d0383[_0x58004e(0x152)](/'/g,'\x27\x27');return'\x27'+_0xd3fa8f+'\x27';}export function matchGlobPattern(_0x114486,_0x426cbb){const _0x21f3e2=a78_0x3711,_0x133db0=_0x426cbb[_0x21f3e2(0x152)](/[.+^${}()|[\]\\]/g,_0x21f3e2(0x145))['replace'](/\*/g,'.*')[_0x21f3e2(0x152)](/\?/g,'.'),_0x2a41e7=new RegExp('^'+_0x133db0+'$');return _0x2a41e7[_0x21f3e2(0x139)](_0x114486);}export function getSanitizedUsername(){const _0xa806e2=a78_0x3711,_0x214ec1=process[_0xa806e2(0x13f)][_0xa806e2(0x14b)]||process['env'][_0xa806e2(0x144)]||'unknown';return _0x214ec1[_0xa806e2(0x152)](/[^a-zA-Z0-9]/g,'')[_0xa806e2(0x148)]();}export function generateRandomHex(){const _0xfa07e7=a78_0x3711,_0x8a35f3=Math[_0xfa07e7(0x151)](Math[_0xfa07e7(0x14e)]()*0xfffff);return _0x8a35f3[_0xfa07e7(0x150)](0x10)[_0xfa07e7(0x153)](0x5,'0');}
1
+ (function(_0x117110,_0x45c0fd){const _0x49d3dc=a79_0x32ed,_0x524ba3=_0x117110();while(!![]){try{const _0x2f5245=-parseInt(_0x49d3dc(0x124))/0x1+-parseInt(_0x49d3dc(0x122))/0x2*(parseInt(_0x49d3dc(0x125))/0x3)+parseInt(_0x49d3dc(0x123))/0x4*(-parseInt(_0x49d3dc(0x11b))/0x5)+parseInt(_0x49d3dc(0x11a))/0x6+-parseInt(_0x49d3dc(0x120))/0x7*(parseInt(_0x49d3dc(0x112))/0x8)+parseInt(_0x49d3dc(0x118))/0x9+parseInt(_0x49d3dc(0x117))/0xa;if(_0x2f5245===_0x45c0fd)break;else _0x524ba3['push'](_0x524ba3['shift']());}catch(_0x30fb40){_0x524ba3['push'](_0x524ba3['shift']());}}}(a79_0x2e5d,0xa9287));import a79_0x15f064 from'string-width';export function stringWidth(_0x2ab5af){return a79_0x15f064(_0x2ab5af);}export function padEnd(_0x5de8bd,_0x495e09){const _0x51c8a9=a79_0x32ed,_0x1b16c2=stringWidth(_0x5de8bd);if(_0x1b16c2>=_0x495e09)return _0x5de8bd;return _0x5de8bd+'\x20'[_0x51c8a9(0x110)](_0x495e09-_0x1b16c2);}export function padStart(_0x3dde7a,_0x3938cd){const _0x458ad9=a79_0x32ed,_0x2749c9=stringWidth(_0x3dde7a);if(_0x2749c9>=_0x3938cd)return _0x3dde7a;return'\x20'[_0x458ad9(0x110)](_0x3938cd-_0x2749c9)+_0x3dde7a;}export function centerAlign(_0x80c917,_0x2a9da1){const _0x33556d=a79_0x32ed,_0xbe394d=stringWidth(_0x80c917);if(_0xbe394d>_0x2a9da1){if(_0x2a9da1<=0x1)return'…'[_0x33556d(0x116)](0x0,_0x2a9da1);let _0x16dd7e=_0x80c917;while(stringWidth(_0x16dd7e+'…')>_0x2a9da1){_0x16dd7e=_0x16dd7e[_0x33556d(0x11f)](0x0,-0x1);}return _0x16dd7e+'…';}if(_0xbe394d===_0x2a9da1)return _0x80c917;const _0x331ab9=_0x2a9da1-_0xbe394d,_0x108d48=Math[_0x33556d(0x121)](_0x331ab9/0x2),_0x5909c0=_0x331ab9-_0x108d48;return'\x20'[_0x33556d(0x110)](_0x108d48)+_0x80c917+'\x20'[_0x33556d(0x110)](_0x5909c0);}export function escapeStringLiteral(_0x4a272f){const _0x4c4e04=a79_0x32ed;if(!_0x4a272f||_0x4a272f['trim']()[_0x4c4e04(0x126)]===0x0)throw new Error(_0x4c4e04(0x114));const _0x3ff646=_0x4a272f[_0x4c4e04(0x11c)](/'/g,'\x27\x27');return'\x27'+_0x3ff646+'\x27';}export function globToLike(_0xa881b9){const _0x238ac0=a79_0x32ed;let _0x2dffcf=_0xa881b9[_0x238ac0(0x11c)](/\\/g,'\x5c\x5c')[_0x238ac0(0x11c)](/%/g,'\x5c%')[_0x238ac0(0x11c)](/_/g,'\x5c_');return _0x2dffcf=_0x2dffcf[_0x238ac0(0x11c)](/\*/g,'%')[_0x238ac0(0x11c)](/\?/g,'_'),_0x2dffcf;}export function buildLikePattern(_0x3032d9){const _0x1ba7a1=a79_0x32ed;if(!_0x3032d9||_0x3032d9[_0x1ba7a1(0x11e)]()[_0x1ba7a1(0x126)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x4ac4ed=globToLike(_0x3032d9),_0x1cb85d=_0x4ac4ed[_0x1ba7a1(0x11c)](/'/g,'\x27\x27');return'\x27'+_0x1cb85d+'\x27';}export function matchGlobPattern(_0x3f31dc,_0x2a9335){const _0x10534e=a79_0x32ed,_0x2f9fc3=_0x2a9335['replace'](/[.+^${}()|[\]\\]/g,_0x10534e(0x127))[_0x10534e(0x11c)](/\*/g,'.*')[_0x10534e(0x11c)](/\?/g,'.'),_0x1637fc=new RegExp('^'+_0x2f9fc3+'$');return _0x1637fc[_0x10534e(0x128)](_0x3f31dc);}export function getSanitizedUsername(){const _0x30f8d4=a79_0x32ed,_0x337a31=process[_0x30f8d4(0x11d)]['USER']||process[_0x30f8d4(0x11d)]['USERNAME']||_0x30f8d4(0x119);return _0x337a31[_0x30f8d4(0x11c)](/[^a-zA-Z0-9]/g,'')[_0x30f8d4(0x115)]();}function a79_0x32ed(_0x2879b4,_0x4e1cb4){const _0x2e5d1b=a79_0x2e5d();return a79_0x32ed=function(_0x32ed80,_0xd61d28){_0x32ed80=_0x32ed80-0x110;let _0x2b8726=_0x2e5d1b[_0x32ed80];return _0x2b8726;},a79_0x32ed(_0x2879b4,_0x4e1cb4);}function a79_0x2e5d(){const _0x53eb7c=['unknown','5693022gZxwOM','5uWkTsw','replace','env','trim','slice','28NFnUJg','floor','280970BcknZm','958468okotWE','1372551KaoUcN','24ajGegA','length','\x5c$&','test','repeat','random','302656HiOOVu','padStart','Cannot\x20escape\x20empty\x20string\x20literal','toLowerCase','substring','24320970DAtado','1793817vqBYSX'];a79_0x2e5d=function(){return _0x53eb7c;};return a79_0x2e5d();}export function generateRandomHex(){const _0x2dc1b3=a79_0x32ed,_0x1ef929=Math[_0x2dc1b3(0x121)](Math[_0x2dc1b3(0x111)]()*0xfffff);return _0x1ef929['toString'](0x10)[_0x2dc1b3(0x113)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x173aae,_0x598aaa){const _0x5db4e6=a79_0x15a1,_0x11cc34=_0x173aae();while(!![]){try{const _0x4ce80d=-parseInt(_0x5db4e6(0xd4))/0x1*(-parseInt(_0x5db4e6(0xc2))/0x2)+-parseInt(_0x5db4e6(0xc1))/0x3+-parseInt(_0x5db4e6(0xd7))/0x4+parseInt(_0x5db4e6(0xd8))/0x5*(parseInt(_0x5db4e6(0xca))/0x6)+-parseInt(_0x5db4e6(0xd5))/0x7*(parseInt(_0x5db4e6(0xc8))/0x8)+parseInt(_0x5db4e6(0xd6))/0x9*(-parseInt(_0x5db4e6(0xc9))/0xa)+parseInt(_0x5db4e6(0xc6))/0xb;if(_0x4ce80d===_0x598aaa)break;else _0x11cc34['push'](_0x11cc34['shift']());}catch(_0x52c936){_0x11cc34['push'](_0x11cc34['shift']());}}}(a79_0x2bfc,0xb94e2));function hasWildcard(_0x464391){const _0x25e128=a79_0x15a1;return _0x464391[_0x25e128(0xc7)]('*')||_0x464391['includes']('?');}function a79_0x15a1(_0x563f45,_0x4af6c0){const _0x2bfc33=a79_0x2bfc();return a79_0x15a1=function(_0x15a1f1,_0x1a60bf){_0x15a1f1=_0x15a1f1-0xc0;let _0x533186=_0x2bfc33[_0x15a1f1];return _0x533186;},a79_0x15a1(_0x563f45,_0x4af6c0);}function a79_0x2bfc(){const _0x397c77=['includes','2072184PKWIIN','10tBNkcl','277782tEcpQT','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','join','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','table','catalog','length','push','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','939263VoOkeQ','7hTyqSr','3855564keiLIq','5476544mCcMpb','50Beqtif','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','1784181zZwDyJ','2hItvLd','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','database','22088649WvQmHO'];a79_0x2bfc=function(){return _0x397c77;};return a79_0x2bfc();}export function parseTableReference(_0x107fa1){const _0x28c4fd=a79_0x15a1;if(!_0x107fa1||_0x107fa1['trim']()[_0x28c4fd(0xd1)]===0x0)throw new Error(_0x28c4fd(0xcc));const _0xeed240=_0x107fa1['trim'](),_0x2fd8ff={'original':_0xeed240},_0x8f476c=_0xeed240['split']('.');if(_0x8f476c['length']===0x1){const _0x55b81a=_0x8f476c[0x0];if(!_0x55b81a)throw new Error(_0x28c4fd(0xc4));_0x2fd8ff['table']=_0x55b81a;}else{if(_0x8f476c['length']===0x2){const [_0x357909,_0x41aad8]=_0x8f476c;if(!_0x357909)throw new Error(_0x28c4fd(0xc3));if(!_0x41aad8)throw new Error(_0x28c4fd(0xce));_0x2fd8ff[_0x28c4fd(0xc5)]=_0x357909,_0x2fd8ff['table']=_0x41aad8;}else{if(_0x8f476c[_0x28c4fd(0xd1)]===0x3){const [_0x539bb3,_0x4810cf,_0xd48765]=_0x8f476c;if(!_0x539bb3||!_0x4810cf||!_0xd48765)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x2fd8ff[_0x28c4fd(0xd0)]=_0x539bb3,_0x2fd8ff[_0x28c4fd(0xc5)]=_0x4810cf,_0x2fd8ff['table']=_0xd48765;}else throw new Error(_0x28c4fd(0xc0));}}return _0x2fd8ff;}export function formatTableReference(_0x2b18b8){const _0x448fb3=a79_0x15a1,_0xe4c50b=[];return _0x2b18b8[_0x448fb3(0xd0)]&&_0xe4c50b[_0x448fb3(0xd2)](_0x2b18b8[_0x448fb3(0xd0)]),_0x2b18b8[_0x448fb3(0xc5)]&&_0xe4c50b[_0x448fb3(0xd2)](_0x2b18b8['database']),_0x2b18b8[_0x448fb3(0xcf)]&&_0xe4c50b[_0x448fb3(0xd2)](_0x2b18b8[_0x448fb3(0xcf)]),_0xe4c50b[_0x448fb3(0xcd)]('.');}export function validateTableListReference(_0x5710d7){return undefined;}export function validateTableDescribeReference(_0x4fca85){const _0x2c8d7b=a79_0x15a1;if(!_0x4fca85['table'])return _0x2c8d7b(0xd3);if(_0x4fca85[_0x2c8d7b(0xc5)]&&hasWildcard(_0x4fca85['database']))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x4fca85[_0x2c8d7b(0xcf)]))return _0x2c8d7b(0xcb);return undefined;}
1
+ function a80_0x184e(_0x36fe03,_0x272139){const _0x20445f=a80_0x2044();return a80_0x184e=function(_0x184e80,_0x4436a4){_0x184e80=_0x184e80-0x12b;let _0x5d0921=_0x20445f[_0x184e80];return _0x5d0921;},a80_0x184e(_0x36fe03,_0x272139);}(function(_0x43cd59,_0x11371f){const _0x738688=a80_0x184e,_0x4e1bcd=_0x43cd59();while(!![]){try{const _0x36551d=parseInt(_0x738688(0x140))/0x1*(-parseInt(_0x738688(0x144))/0x2)+-parseInt(_0x738688(0x12f))/0x3*(-parseInt(_0x738688(0x13a))/0x4)+parseInt(_0x738688(0x136))/0x5+parseInt(_0x738688(0x130))/0x6*(parseInt(_0x738688(0x135))/0x7)+parseInt(_0x738688(0x137))/0x8+parseInt(_0x738688(0x132))/0x9+parseInt(_0x738688(0x13d))/0xa*(-parseInt(_0x738688(0x12d))/0xb);if(_0x36551d===_0x11371f)break;else _0x4e1bcd['push'](_0x4e1bcd['shift']());}catch(_0xfaff04){_0x4e1bcd['push'](_0x4e1bcd['shift']());}}}(a80_0x2044,0x47147));function hasWildcard(_0x5a5621){const _0xd51065=a80_0x184e;return _0x5a5621[_0xd51065(0x12b)]('*')||_0x5a5621[_0xd51065(0x12b)]('?');}export function parseTableReference(_0x32da31){const _0x239b23=a80_0x184e;if(!_0x32da31||_0x32da31[_0x239b23(0x13b)]()['length']===0x0)throw new Error(_0x239b23(0x138));const _0x3caacb=_0x32da31['trim'](),_0x348f61={'original':_0x3caacb},_0x2b73d9=_0x3caacb[_0x239b23(0x142)]('.');if(_0x2b73d9[_0x239b23(0x143)]===0x1){const _0x2be7da=_0x2b73d9[0x0];if(!_0x2be7da)throw new Error(_0x239b23(0x146));_0x348f61[_0x239b23(0x13f)]=_0x2be7da;}else{if(_0x2b73d9[_0x239b23(0x143)]===0x2){const [_0xb4fd74,_0x159224]=_0x2b73d9;if(!_0xb4fd74)throw new Error(_0x239b23(0x133));if(!_0x159224)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x348f61['database']=_0xb4fd74,_0x348f61[_0x239b23(0x13f)]=_0x159224;}else{if(_0x2b73d9[_0x239b23(0x143)]===0x3){const [_0x319491,_0x2a0c5a,_0x504c3c]=_0x2b73d9;if(!_0x319491||!_0x2a0c5a||!_0x504c3c)throw new Error(_0x239b23(0x145));_0x348f61[_0x239b23(0x134)]=_0x319491,_0x348f61[_0x239b23(0x12c)]=_0x2a0c5a,_0x348f61['table']=_0x504c3c;}else throw new Error(_0x239b23(0x13e));}}return _0x348f61;}export function formatTableReference(_0x16a632){const _0x339c5a=a80_0x184e,_0x443d0f=[];return _0x16a632[_0x339c5a(0x134)]&&_0x443d0f[_0x339c5a(0x131)](_0x16a632[_0x339c5a(0x134)]),_0x16a632[_0x339c5a(0x12c)]&&_0x443d0f[_0x339c5a(0x131)](_0x16a632[_0x339c5a(0x12c)]),_0x16a632[_0x339c5a(0x13f)]&&_0x443d0f[_0x339c5a(0x131)](_0x16a632[_0x339c5a(0x13f)]),_0x443d0f[_0x339c5a(0x12e)]('.');}export function validateTableListReference(_0xc248e1){return undefined;}export function validateTableDescribeReference(_0x75ead2){const _0x4af82e=a80_0x184e;if(!_0x75ead2[_0x4af82e(0x13f)])return _0x4af82e(0x13c);if(_0x75ead2['database']&&hasWildcard(_0x75ead2[_0x4af82e(0x12c)]))return _0x4af82e(0x139);if(hasWildcard(_0x75ead2[_0x4af82e(0x13f)]))return _0x4af82e(0x141);return undefined;}function a80_0x2044(){const _0x1fee16=['Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','catalog','1130927juMNbx','368885cuflro','3400512CGqpbF','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','673772vLdpXD','trim','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','20IsEEDl','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','1ogVbap','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','split','length','1106606aIVvLr','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Pattern\x20cannot\x20be\x20just\x20a\x20dot','includes','database','5902633WmVlEa','join','9YusMus','18zNgBhX','push','3859191ZrRagG'];a80_0x2044=function(){return _0x1fee16;};return a80_0x2044();}