@treasuredata/tdx 0.8.0 → 0.8.1

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 (123) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.js +1 -1
  9. package/dist/client/rate-limiter.js +1 -1
  10. package/dist/client/td-api-client.d.ts +2 -0
  11. package/dist/client/td-api-client.d.ts.map +1 -1
  12. package/dist/client/td-api-client.js +1 -1
  13. package/dist/client/td-api-client.js.map +1 -1
  14. package/dist/client/trino-api-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.js +1 -1
  19. package/dist/commands/chat-command.js +1 -1
  20. package/dist/commands/claude-command.d.ts.map +1 -1
  21. package/dist/commands/claude-command.js +1 -1
  22. package/dist/commands/claude-command.js.map +1 -1
  23. package/dist/commands/claude-statusline-command.d.ts +1 -1
  24. package/dist/commands/claude-statusline-command.d.ts.map +1 -1
  25. package/dist/commands/claude-statusline-command.js +1 -1
  26. package/dist/commands/claude-statusline-command.js.map +1 -1
  27. package/dist/commands/claude-usage-command.js +1 -1
  28. package/dist/commands/command.js +1 -1
  29. package/dist/commands/connection-command.js +1 -1
  30. package/dist/commands/context-command.js +1 -1
  31. package/dist/commands/databases.js +1 -1
  32. package/dist/commands/describe.js +1 -1
  33. package/dist/commands/engage-command.js +1 -1
  34. package/dist/commands/job-command.js +1 -1
  35. package/dist/commands/llm-command.js +1 -1
  36. package/dist/commands/llm-proxy.js +1 -1
  37. package/dist/commands/parent-segment-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/use-command.js +1 -1
  51. package/dist/commands/user-command.js +1 -1
  52. package/dist/commands/workflow-command.js +1 -1
  53. package/dist/core/auth.js +1 -1
  54. package/dist/core/config.d.ts +26 -0
  55. package/dist/core/config.d.ts.map +1 -1
  56. package/dist/core/config.js +1 -1
  57. package/dist/core/config.js.map +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/credential-cache.js +1 -1
  60. package/dist/core/global-context.js +1 -1
  61. package/dist/core/keychain.js +1 -1
  62. package/dist/core/profile.js +1 -1
  63. package/dist/core/project-config.js +1 -1
  64. package/dist/core/session.js +1 -1
  65. package/dist/core/user-cache.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/proxy/anthropic-adapter.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js +1 -1
  69. package/dist/proxy/context-signature.js +1 -1
  70. package/dist/proxy/conversation-utils.js +1 -1
  71. package/dist/proxy/server.js +1 -1
  72. package/dist/proxy/session-cache.js +1 -1
  73. package/dist/sdk/api.js +1 -1
  74. package/dist/sdk/connection.js +1 -1
  75. package/dist/sdk/engage.js +1 -1
  76. package/dist/sdk/errors.js +1 -1
  77. package/dist/sdk/index.js +1 -1
  78. package/dist/sdk/job.js +1 -1
  79. package/dist/sdk/llm.js +1 -1
  80. package/dist/sdk/query.js +1 -1
  81. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  82. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  83. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  84. package/dist/sdk/segment.js +1 -1
  85. package/dist/sdk/user.js +1 -1
  86. package/dist/sdk/workflow.js +1 -1
  87. package/dist/types/endpoints.js +1 -1
  88. package/dist/types/index.d.ts +20 -1
  89. package/dist/types/index.d.ts.map +1 -1
  90. package/dist/types/index.js +1 -1
  91. package/dist/types/index.js.map +1 -1
  92. package/dist/utils/agent-ref-parser.js +1 -1
  93. package/dist/utils/async.js +1 -1
  94. package/dist/utils/chat-cache.js +1 -1
  95. package/dist/utils/colors.js +1 -1
  96. package/dist/utils/command-output.js +1 -1
  97. package/dist/utils/constants.js +1 -1
  98. package/dist/utils/diff.js +1 -1
  99. package/dist/utils/fields-display.js +1 -1
  100. package/dist/utils/file-permissions.js +1 -1
  101. package/dist/utils/format-detector.js +1 -1
  102. package/dist/utils/formatters.js +1 -1
  103. package/dist/utils/json-loader.js +1 -1
  104. package/dist/utils/llm-backup-utils.js +1 -1
  105. package/dist/utils/model-aliases.js +1 -1
  106. package/dist/utils/model-factors.js +1 -1
  107. package/dist/utils/option-validation.js +1 -1
  108. package/dist/utils/port.js +1 -1
  109. package/dist/utils/process.js +1 -1
  110. package/dist/utils/prompt.js +1 -1
  111. package/dist/utils/segment-path-parser.js +1 -1
  112. package/dist/utils/segment-ref-parser.js +1 -1
  113. package/dist/utils/spinner.js +1 -1
  114. package/dist/utils/sql-parser.js +1 -1
  115. package/dist/utils/sse-parser.js +1 -1
  116. package/dist/utils/string-utils.js +1 -1
  117. package/dist/utils/table-ref-parser.js +1 -1
  118. package/dist/utils/tdx-config.js +1 -1
  119. package/dist/utils/tdx-logger.js +1 -1
  120. package/dist/utils/tree-formatter.js +1 -1
  121. package/dist/utils/version-check.js +1 -1
  122. package/dist/utils/workflow-utils.js +1 -1
  123. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x17b241,_0x3e686b){const _0x120016=a89_0x90d9,_0x35e87c=_0x17b241();while(!![]){try{const _0x5f0073=-parseInt(_0x120016(0xf6))/0x1*(parseInt(_0x120016(0xfc))/0x2)+-parseInt(_0x120016(0xed))/0x3+parseInt(_0x120016(0xe2))/0x4+parseInt(_0x120016(0xf9))/0x5+-parseInt(_0x120016(0x107))/0x6+parseInt(_0x120016(0x10e))/0x7*(-parseInt(_0x120016(0xe9))/0x8)+-parseInt(_0x120016(0xdf))/0x9*(-parseInt(_0x120016(0xfa))/0xa);if(_0x5f0073===_0x3e686b)break;else _0x35e87c['push'](_0x35e87c['shift']());}catch(_0x67504f){_0x35e87c['push'](_0x35e87c['shift']());}}}(a89_0x394d,0xb3458));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';function a89_0x90d9(_0x5e04c7,_0x3d305a){_0x5e04c7=_0x5e04c7-0xd2;const _0x394dd2=a89_0x394d();let _0x90d952=_0x394dd2[_0x5e04c7];return _0x90d952;}import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a89_0x3426f8 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x9823a3){const _0x4f0eb5=a89_0x90d9;return _0x9823a3[_0x4f0eb5(0xd3)]===_0x4f0eb5(0xd4)||_0x9823a3[_0x4f0eb5(0xd3)]===_0x4f0eb5(0xf1)||_0x9823a3[_0x4f0eb5(0xd3)]===_0x4f0eb5(0xe0)||_0x9823a3[_0x4f0eb5(0xd3)]===_0x4f0eb5(0xeb)||_0x9823a3[_0x4f0eb5(0xd4)]===!![]||_0x9823a3[_0x4f0eb5(0xf1)]===!![]||_0x9823a3[_0x4f0eb5(0xe0)]===!![]||_0x9823a3[_0x4f0eb5(0xeb)]===!![];}export function parseOutputOptions(_0x3e148f){const _0x5e2a4b=a89_0x90d9;return{'format':_0x3e148f['format']||_0x5e2a4b(0xeb),'output':_0x3e148f[_0x5e2a4b(0x101)]||'','limit':_0x3e148f[_0x5e2a4b(0xf7)],'color':_0x3e148f['color'],'noColor':_0x3e148f[_0x5e2a4b(0x10b)]};}function convertSDKResultToQueryResult(_0x4582aa){const _0x47ea2c=a89_0x90d9,_0x159714=[];if(_0x4582aa[_0x47ea2c(0xd9)]>0x0){const _0x1a745a=_0x4582aa[0x0];for(const [_0x27d4fd,_0x266d84]of Object[_0x47ea2c(0x112)](_0x1a745a)){let _0x3b97b0='varchar';if(typeof _0x266d84===_0x47ea2c(0x10a))_0x3b97b0=Number[_0x47ea2c(0xdd)](_0x266d84)?'bigint':_0x47ea2c(0xf5);else{if(typeof _0x266d84===_0x47ea2c(0x113))_0x3b97b0=_0x47ea2c(0x113);else _0x266d84===null&&(_0x3b97b0=_0x47ea2c(0xee));}_0x159714[_0x47ea2c(0xfd)]({'name':_0x27d4fd,'type':_0x3b97b0});}}return{'queryId':_0x47ea2c(0xf3),'columns':_0x159714,'data':_0x4582aa,'stats':{'state':_0x47ea2c(0xd8),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x4582aa['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x5dc18a,_0x5ea19a){const _0x369356=convertSDKResultToQueryResult(_0x5dc18a);return formatQueryOutput(_0x369356,_0x5ea19a);}export async function formatQueryOutput(_0x19ef96,_0x38f87a){const _0xb361fc=a89_0x90d9,{format:_0x349483,limit:_0x8787d3,output:_0x567dd5,color:_0x160555,noColor:_0x5c268d}=_0x38f87a,_0x50cf6e=Boolean(_0x567dd5)&&!_0x160555,_0x1108fd={'color':_0x160555,'noColor':_0x5c268d||_0x50cf6e};if(_0x349483===_0xb361fc(0xeb)){const _0x4aae64=shouldUseLess(_0x349483,_0x567dd5);return formatAsTable(_0x19ef96,_0x8787d3,_0x4aae64,_0x1108fd);}else{if(_0x349483===_0xb361fc(0xd4))return formatAsJSON(_0x19ef96,_0x1108fd);else return _0x349483===_0xb361fc(0xf1)?formatAsJSONL(_0x19ef96,_0x1108fd):formatQueryResult(_0x19ef96,_0x349483);}}function shouldUseLess(_0x4aec63,_0x51e8f2){const _0x38ae86=a89_0x90d9;return _0x4aec63===_0x38ae86(0xeb)&&process[_0x38ae86(0xfe)]['isTTY']&&!_0x51e8f2;}function a89_0x394d(){const _0x274157=['7rkRkEb','stdin','[params]','keys','entries','boolean','repeat','format','json','stringify','end','resolve','FINISHED','length','[Object]','pipe','join','isInteger','yellow','684louqhg','tsv','spawn','5754912VUgndl','query','error','padEnd','bold','split','trim','5111224HMZdJu','blue','table','[logs]','3908076tvDJLO','varchar','map','log','jsonl','inherit','sdk-result','─┬─','double','1333347QdQCKj','limit','max','2275870PoJBAX','335150xTHeDc','[rule]','2QNkTAF','push','stdout','object','magenta','output','-FXRSn','No\x20data','params','forEach','─┴─','2590824NVSmuL','less','red','number','noColor','stderr','rule'];a89_0x394d=function(){return _0x274157;};return a89_0x394d();}export function resolveOutputOptions(_0x5578e1){const _0x3ab300=a89_0x90d9,_0xa5636c=resolveOutputFormat(_0x5578e1['format'],_0x5578e1[_0x3ab300(0x101)],'table');let _0x431b1c=typeof _0x5578e1[_0x3ab300(0xf7)]===_0x3ab300(0x10a)?_0x5578e1[_0x3ab300(0xf7)]:parseInt(_0x5578e1[_0x3ab300(0xf7)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x3e811e=_0x5578e1['output']||'';return shouldUseLess(_0xa5636c,_0x3e811e)&&(_0x431b1c=Infinity),{'format':_0xa5636c,'output':_0x3e811e,'limit':_0x431b1c,'color':_0x5578e1['color'],'noColor':_0x5578e1[_0x3ab300(0x10b)]};}export function writeOutput(_0x1d55d1,_0x512f7f,_0x345f1f){const _0x187eb6=a89_0x90d9;return _0x512f7f?(writeFileSync(_0x512f7f,_0x1d55d1),console[_0x187eb6(0xe4)]('Results\x20saved\x20to\x20'+_0x512f7f),Promise[_0x187eb6(0xd7)]()):shouldUseLess(_0x345f1f||'','')?new Promise(_0x1c0041=>{const _0x5ad600=_0x187eb6,_0xfea196=spawn(_0x5ad600(0x108),[_0x5ad600(0x102)],{'stdio':[_0x5ad600(0xdb),_0x5ad600(0xf2),_0x5ad600(0xf2)]});let _0x228f78=![];_0xfea196['on']('error',()=>{const _0x36b175=_0x5ad600;!_0x228f78&&(_0x228f78=!![],console[_0x36b175(0xf0)](_0x1d55d1),_0x1c0041());}),_0xfea196['on']('close',()=>{!_0x228f78&&(_0x228f78=!![],_0x1c0041());}),_0xfea196['on'](_0x5ad600(0xe1),()=>{const _0x25f405=_0x5ad600;!_0x228f78&&_0xfea196['stdin']&&(_0xfea196[_0x25f405(0x10f)]['on']('error',()=>{}),_0xfea196[_0x25f405(0x10f)]['write'](_0x1d55d1),_0xfea196[_0x25f405(0x10f)][_0x25f405(0xd6)]());}),!_0xfea196[_0x5ad600(0x10f)]&&(!_0x228f78&&(_0x228f78=!![],console[_0x5ad600(0xf0)](_0x1d55d1),_0x1c0041()));}):(console[_0x187eb6(0xf0)](_0x1d55d1),Promise[_0x187eb6(0xd7)]());}export async function handleSDKOutput(_0x15c599,_0xa0f0b9){const _0x611509=a89_0x90d9,_0x207c6d=resolveOutputOptions(_0xa0f0b9),_0x1f226d=await formatSDKOutput(_0x15c599,_0x207c6d);await writeOutput(_0x1f226d,_0x207c6d['output']||undefined,_0x207c6d[_0x611509(0xd3)]);}export async function handleQueryOutput(_0x5eb1b6,_0x4fdbc8){const _0x18d9de=a89_0x90d9,_0x21fafd=resolveOutputOptions(_0x4fdbc8),_0x266eb6=await formatQueryOutput(_0x5eb1b6,_0x21fafd);await writeOutput(_0x266eb6,_0x21fafd[_0x18d9de(0x101)]||undefined,_0x21fafd[_0x18d9de(0xd3)]);}async function formatSingleObject(_0x1a126c,_0x425c75){const _0x2c95ec=a89_0x90d9,{format:_0x2fcab9,color:_0x1b5b81,noColor:_0x6668cb}=_0x425c75,_0x409e43={'color':_0x1b5b81,'noColor':_0x6668cb};if(_0x2fcab9==='json'){if(shouldUseColor(_0x409e43))return colorizeJSON(_0x1a126c,_0x409e43);return JSON['stringify'](_0x1a126c,null,0x2);}else{if(_0x2fcab9===_0x2c95ec(0xf1)){if(shouldUseColor(_0x409e43))return colorizeJSONCompact(_0x1a126c,_0x409e43);return JSON[_0x2c95ec(0xd5)](_0x1a126c);}else{if(_0x2fcab9===_0x2c95ec(0xe0))return Object[_0x2c95ec(0x112)](_0x1a126c)[_0x2c95ec(0xef)](([_0x45520d,_0x34778d])=>_0x45520d+'\x09'+_0x34778d)['join']('\x0a');else{const _0x24a8e6=Object[_0x2c95ec(0x112)](_0x1a126c);if(_0x24a8e6[_0x2c95ec(0xd9)]===0x0)return _0x2c95ec(0x103);const _0x266555=_0x1a126c['debug'],_0x52587a=_0x1a126c[_0x2c95ec(0xe3)],_0x7ecbee=_0x1a126c[_0x2c95ec(0x104)],_0x32808d=_0x1a126c[_0x2c95ec(0x10d)],_0x4bd006=_0x52587a?typeof _0x52587a==='string'?_0x52587a:JSON['stringify'](_0x52587a,null,0x2):undefined,_0x532f26=_0x7ecbee&&Object['keys'](_0x7ecbee)[_0x2c95ec(0xd9)]>0x0?JSON[_0x2c95ec(0xd5)](_0x7ecbee,null,0x2):undefined,_0x43f711=_0x32808d&&Object[_0x2c95ec(0x111)](_0x32808d)[_0x2c95ec(0xd9)]>0x0?JSON[_0x2c95ec(0xd5)](_0x32808d,null,0x2):undefined,_0x4e1fea=_0x24a8e6['filter'](([_0x44088e])=>_0x44088e!=='debug'&&_0x44088e!==_0x2c95ec(0xe3)&&_0x44088e!==_0x2c95ec(0x104)&&_0x44088e!==_0x2c95ec(0x10d)),_0xd3f674=Math[_0x2c95ec(0xf8)](..._0x4e1fea[_0x2c95ec(0xef)](([_0x223157])=>_0x223157['length'])),_0x5cee13=Math['max'](..._0x4e1fea[_0x2c95ec(0xef)](([,_0x1d9542])=>{const _0x5596f5=_0x2c95ec;try{const _0x5d6c37=_0x1d9542===null||_0x1d9542===undefined?'':typeof _0x1d9542===_0x5596f5(0xff)?JSON[_0x5596f5(0xd5)](_0x1d9542):String(_0x1d9542),_0x1d23dc=_0x5d6c37['split']('\x0a');return Math[_0x5596f5(0xf8)](..._0x1d23dc['map'](_0x178545=>_0x178545[_0x5596f5(0xd9)]),0x0);}catch{return 0x0;}}),0x14),_0x47ea24=[];_0x47ea24[_0x2c95ec(0xfd)](colorBorder('┌─'+'─'['repeat'](_0xd3f674)+_0x2c95ec(0xf4)+'─'[_0x2c95ec(0xd2)](_0x5cee13)+'─┐',_0x409e43)),_0x4e1fea[_0x2c95ec(0x105)](([_0xaeeac8,_0x53cb35])=>{const _0x5f316c=_0x2c95ec;let _0x30286c;try{_0x30286c=_0x53cb35===null||_0x53cb35===undefined?'':typeof _0x53cb35===_0x5f316c(0xff)?JSON[_0x5f316c(0xd5)](_0x53cb35):String(_0x53cb35);}catch{_0x30286c=_0x5f316c(0xda);}const _0x3c41b3=_0xaeeac8[_0x5f316c(0xe5)](_0xd3f674),_0x4e7e56=_0x30286c[_0x5f316c(0xe7)]('\x0a');_0x4e7e56[_0x5f316c(0x105)]((_0x2fb9bc,_0x1abaaa)=>{const _0x513860=_0x5f316c,_0x12002b=colorBorder('│',_0x409e43);_0x1abaaa===0x0?_0x47ea24['push'](_0x12002b+'\x20'+_0x3c41b3+'\x20'+_0x12002b+'\x20'+_0x2fb9bc[_0x513860(0xe5)](_0x5cee13)+'\x20'+_0x12002b):_0x47ea24[_0x513860(0xfd)](_0x12002b+'\x20'+'\x20'['repeat'](_0xd3f674)+'\x20'+_0x12002b+'\x20'+_0x2fb9bc[_0x513860(0xe5)](_0x5cee13)+'\x20'+_0x12002b);});}),_0x47ea24[_0x2c95ec(0xfd)](colorBorder('└─'+'─'[_0x2c95ec(0xd2)](_0xd3f674)+_0x2c95ec(0x106)+'─'['repeat'](_0x5cee13)+'─┘',_0x409e43));_0x4bd006&&(_0x47ea24[_0x2c95ec(0xfd)](''),_0x47ea24['push'](String(a89_0x3426f8[_0x2c95ec(0xde)][_0x2c95ec(0xe6)]('[query]'))),_0x47ea24[_0x2c95ec(0xfd)](_0x4bd006));_0x532f26&&(_0x47ea24['push'](''),_0x47ea24['push'](String(a89_0x3426f8[_0x2c95ec(0xea)][_0x2c95ec(0xe6)](_0x2c95ec(0x110)))),_0x47ea24[_0x2c95ec(0xfd)](_0x532f26));_0x43f711&&(_0x47ea24['push'](''),_0x47ea24[_0x2c95ec(0xfd)](String(a89_0x3426f8[_0x2c95ec(0x100)][_0x2c95ec(0xe6)](_0x2c95ec(0xfb)))),_0x47ea24['push'](_0x43f711));if(_0x266555){if(_0x266555[_0x2c95ec(0x10c)]){_0x47ea24[_0x2c95ec(0xfd)](''),_0x47ea24[_0x2c95ec(0xfd)](String(a89_0x3426f8[_0x2c95ec(0x109)][_0x2c95ec(0xe6)]('[error]')));const _0x4d262f=_0x266555[_0x2c95ec(0x10c)]['split']('\x0a');_0x4d262f[_0x2c95ec(0x105)](_0x18a4db=>{const _0xb83a17=_0x2c95ec;_0x18a4db['trim']()&&_0x47ea24[_0xb83a17(0xfd)](_0x18a4db);});}if(_0x266555['cmdout']){_0x47ea24[_0x2c95ec(0xfd)](''),_0x47ea24[_0x2c95ec(0xfd)](String(a89_0x3426f8['cyan'][_0x2c95ec(0xe6)](_0x2c95ec(0xec))));const _0x52859b=_0x266555['cmdout']['split']('\x0a');_0x52859b[_0x2c95ec(0x105)](_0x699f39=>{const _0x26270c=_0x2c95ec;_0x699f39[_0x26270c(0xe8)]()&&_0x47ea24[_0x26270c(0xfd)](_0x699f39);});}}return _0x47ea24[_0x2c95ec(0xdc)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x16aa1d,_0x4afb7e){const _0x49fe8a=a89_0x90d9;if(_0x4afb7e[_0x49fe8a(0xd3)]===_0x49fe8a(0xeb)){await handleSDKOutput([_0x16aa1d],_0x4afb7e);return;}const _0x5ec0a4=resolveOutputOptions(_0x4afb7e),_0x32962c=await formatSingleObject(_0x16aa1d,_0x5ec0a4);await writeOutput(_0x32962c,_0x5ec0a4[_0x49fe8a(0x101)]||undefined,_0x5ec0a4[_0x49fe8a(0xd3)]);}
1
+ (function(_0x4c8191,_0x1bd007){const _0x53afce=a89_0x2c77,_0x3ca615=_0x4c8191();while(!![]){try{const _0x26e2ac=parseInt(_0x53afce(0x1ef))/0x1*(-parseInt(_0x53afce(0x1e3))/0x2)+-parseInt(_0x53afce(0x1e7))/0x3+-parseInt(_0x53afce(0x1ec))/0x4+parseInt(_0x53afce(0x1ae))/0x5+-parseInt(_0x53afce(0x1df))/0x6*(parseInt(_0x53afce(0x1e2))/0x7)+parseInt(_0x53afce(0x1b5))/0x8*(parseInt(_0x53afce(0x1b1))/0x9)+-parseInt(_0x53afce(0x1cb))/0xa*(-parseInt(_0x53afce(0x1b3))/0xb);if(_0x26e2ac===_0x1bd007)break;else _0x3ca615['push'](_0x3ca615['shift']());}catch(_0xd41906){_0x3ca615['push'](_0x3ca615['shift']());}}}(a89_0x2d05,0x622eb));import{writeFileSync}from'fs';function a89_0x2c77(_0x193d26,_0x23b1db){_0x193d26=_0x193d26-0x1a9;const _0x2d05ff=a89_0x2d05();let _0x2c771d=_0x2d05ff[_0x193d26];return _0x2c771d;}import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a89_0x543509 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x1690ad){const _0x47fd22=a89_0x2c77;return _0x1690ad[_0x47fd22(0x1c8)]===_0x47fd22(0x1c5)||_0x1690ad[_0x47fd22(0x1c8)]==='jsonl'||_0x1690ad['format']===_0x47fd22(0x1da)||_0x1690ad[_0x47fd22(0x1c8)]==='table'||_0x1690ad[_0x47fd22(0x1c5)]===!![]||_0x1690ad['jsonl']===!![]||_0x1690ad[_0x47fd22(0x1da)]===!![]||_0x1690ad['table']===!![];}export function parseOutputOptions(_0x3f5b13){const _0x25bc19=a89_0x2c77;return{'format':_0x3f5b13[_0x25bc19(0x1c8)]||_0x25bc19(0x1c7),'output':_0x3f5b13[_0x25bc19(0x1b0)]||'','limit':_0x3f5b13[_0x25bc19(0x1ea)],'color':_0x3f5b13[_0x25bc19(0x1d7)],'noColor':_0x3f5b13[_0x25bc19(0x1ad)]};}function convertSDKResultToQueryResult(_0x2461bc){const _0x628a59=a89_0x2c77,_0x2af450=[];if(_0x2461bc['length']>0x0){const _0xc3c157=_0x2461bc[0x0];for(const [_0x155525,_0xa382b9]of Object[_0x628a59(0x1eb)](_0xc3c157)){let _0x4d9147=_0x628a59(0x1e6);if(typeof _0xa382b9===_0x628a59(0x1d1))_0x4d9147=Number[_0x628a59(0x1ac)](_0xa382b9)?_0x628a59(0x1b2):_0x628a59(0x1d8);else{if(typeof _0xa382b9===_0x628a59(0x1c6))_0x4d9147=_0x628a59(0x1c6);else _0xa382b9===null&&(_0x4d9147=_0x628a59(0x1e6));}_0x2af450[_0x628a59(0x1cd)]({'name':_0x155525,'type':_0x4d9147});}}return{'queryId':_0x628a59(0x1c9),'columns':_0x2af450,'data':_0x2461bc,'stats':{'state':_0x628a59(0x1f0),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x2461bc['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x2b464b,_0x16da62){const _0x18dbf7=convertSDKResultToQueryResult(_0x2b464b);return formatQueryOutput(_0x18dbf7,_0x16da62);}export async function formatQueryOutput(_0x4de2bb,_0x2f682a){const _0x28ad07=a89_0x2c77,{format:_0xef12f8,limit:_0x8e9203,output:_0xb1c8fa,color:_0x3e8a6e,noColor:_0x1c3606}=_0x2f682a,_0x4f356c=Boolean(_0xb1c8fa)&&!_0x3e8a6e,_0x1e836f={'color':_0x3e8a6e,'noColor':_0x1c3606||_0x4f356c};if(_0xef12f8===_0x28ad07(0x1c7)){const _0x5ea200=shouldUseLess(_0xef12f8,_0xb1c8fa);return formatAsTable(_0x4de2bb,_0x8e9203,_0x5ea200,_0x1e836f);}else{if(_0xef12f8===_0x28ad07(0x1c5))return formatAsJSON(_0x4de2bb,_0x1e836f);else return _0xef12f8==='jsonl'?formatAsJSONL(_0x4de2bb,_0x1e836f):formatQueryResult(_0x4de2bb,_0xef12f8);}}function shouldUseLess(_0x49aa52,_0x5cda64){const _0x2093f0=a89_0x2c77;return _0x49aa52===_0x2093f0(0x1c7)&&process[_0x2093f0(0x1ca)][_0x2093f0(0x1b9)]&&!_0x5cda64;}function a89_0x2d05(){const _0x3cb8b1=['debug','cyan','forEach','red','[query]','end','json','boolean','table','format','sdk-result','stdout','20mEyouI','padEnd','push','cmdout','[Object]','resolve','number','query','[error]','map','[params]','spawn','color','double','length','tsv','max','log','filter','keys','115932LbqYIs','jsonl','repeat','189yuAaFt','695904QXgTie','params','split','varchar','2176584oPKGFh','less','bold','limit','entries','1662748vByCgR','blue','close','1yApLYJ','FINISHED','inherit','stdin','join','isInteger','noColor','1273475SntRdn','yellow','output','1867167QcSumK','bigint','10729719gHcfJD','-FXRSn','8cAzQPj','error','stringify','No\x20data','isTTY','trim','stderr','string','rule','object'];a89_0x2d05=function(){return _0x3cb8b1;};return a89_0x2d05();}export function resolveOutputOptions(_0x360167){const _0x4fa3f6=a89_0x2c77,_0x1e51fd=resolveOutputFormat(_0x360167['format'],_0x360167['output'],_0x4fa3f6(0x1c7));let _0x4a37f9=typeof _0x360167['limit']===_0x4fa3f6(0x1d1)?_0x360167[_0x4fa3f6(0x1ea)]:parseInt(_0x360167[_0x4fa3f6(0x1ea)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x14a8ee=_0x360167[_0x4fa3f6(0x1b0)]||'';return shouldUseLess(_0x1e51fd,_0x14a8ee)&&(_0x4a37f9=Infinity),{'format':_0x1e51fd,'output':_0x14a8ee,'limit':_0x4a37f9,'color':_0x360167[_0x4fa3f6(0x1d7)],'noColor':_0x360167[_0x4fa3f6(0x1ad)]};}export function writeOutput(_0x3973d1,_0x1cf89a,_0x2a7c27){const _0x3ebe7f=a89_0x2c77;return _0x1cf89a?(writeFileSync(_0x1cf89a,_0x3973d1),console['error']('Results\x20saved\x20to\x20'+_0x1cf89a),Promise[_0x3ebe7f(0x1d0)]()):shouldUseLess(_0x2a7c27||'','')?new Promise(_0x5fbdb5=>{const _0x19f606=_0x3ebe7f,_0xe33ba=spawn(_0x19f606(0x1e8),[_0x19f606(0x1b4)],{'stdio':['pipe',_0x19f606(0x1a9),_0x19f606(0x1a9)]});let _0x2c6f63=![];_0xe33ba['on'](_0x19f606(0x1b6),()=>{const _0x1560e5=_0x19f606;!_0x2c6f63&&(_0x2c6f63=!![],console[_0x1560e5(0x1dc)](_0x3973d1),_0x5fbdb5());}),_0xe33ba['on'](_0x19f606(0x1ee),()=>{!_0x2c6f63&&(_0x2c6f63=!![],_0x5fbdb5());}),_0xe33ba['on'](_0x19f606(0x1d6),()=>{const _0x485351=_0x19f606;!_0x2c6f63&&_0xe33ba[_0x485351(0x1aa)]&&(_0xe33ba[_0x485351(0x1aa)]['on'](_0x485351(0x1b6),()=>{}),_0xe33ba[_0x485351(0x1aa)]['write'](_0x3973d1),_0xe33ba['stdin'][_0x485351(0x1c4)]());}),!_0xe33ba[_0x19f606(0x1aa)]&&(!_0x2c6f63&&(_0x2c6f63=!![],console[_0x19f606(0x1dc)](_0x3973d1),_0x5fbdb5()));}):(console[_0x3ebe7f(0x1dc)](_0x3973d1),Promise[_0x3ebe7f(0x1d0)]());}export async function handleSDKOutput(_0x340ec7,_0xc93770){const _0xf5da87=a89_0x2c77,_0x31e70d=resolveOutputOptions(_0xc93770),_0x39759=await formatSDKOutput(_0x340ec7,_0x31e70d);await writeOutput(_0x39759,_0x31e70d[_0xf5da87(0x1b0)]||undefined,_0x31e70d[_0xf5da87(0x1c8)]);}export async function handleQueryOutput(_0x6a7153,_0x2fe2c4){const _0xe0c098=a89_0x2c77,_0x5ced7c=resolveOutputOptions(_0x2fe2c4),_0x14b981=await formatQueryOutput(_0x6a7153,_0x5ced7c);await writeOutput(_0x14b981,_0x5ced7c[_0xe0c098(0x1b0)]||undefined,_0x5ced7c[_0xe0c098(0x1c8)]);}async function formatSingleObject(_0x2b71e5,_0x406390){const _0x2e05ec=a89_0x2c77,{format:_0xab1980,color:_0x2d49cf,noColor:_0x59da60}=_0x406390,_0x31dd6e={'color':_0x2d49cf,'noColor':_0x59da60};if(_0xab1980==='json'){if(shouldUseColor(_0x31dd6e))return colorizeJSON(_0x2b71e5,_0x31dd6e);return JSON[_0x2e05ec(0x1b7)](_0x2b71e5,null,0x2);}else{if(_0xab1980===_0x2e05ec(0x1e0)){if(shouldUseColor(_0x31dd6e))return colorizeJSONCompact(_0x2b71e5,_0x31dd6e);return JSON['stringify'](_0x2b71e5);}else{if(_0xab1980===_0x2e05ec(0x1da))return Object['entries'](_0x2b71e5)[_0x2e05ec(0x1d4)](([_0x3935e0,_0x42cf63])=>_0x3935e0+'\x09'+_0x42cf63)[_0x2e05ec(0x1ab)]('\x0a');else{const _0x18f648=Object[_0x2e05ec(0x1eb)](_0x2b71e5);if(_0x18f648['length']===0x0)return _0x2e05ec(0x1b8);const _0x5c5200=_0x2b71e5[_0x2e05ec(0x1bf)],_0x5a1ea3=_0x2b71e5['query'],_0x4bc969=_0x2b71e5[_0x2e05ec(0x1e4)],_0x57032b=_0x2b71e5[_0x2e05ec(0x1bd)],_0x55cd1a=_0x5a1ea3?typeof _0x5a1ea3===_0x2e05ec(0x1bc)?_0x5a1ea3:JSON[_0x2e05ec(0x1b7)](_0x5a1ea3,null,0x2):undefined,_0x21c116=_0x4bc969&&Object['keys'](_0x4bc969)[_0x2e05ec(0x1d9)]>0x0?JSON['stringify'](_0x4bc969,null,0x2):undefined,_0x3358b6=_0x57032b&&Object[_0x2e05ec(0x1de)](_0x57032b)[_0x2e05ec(0x1d9)]>0x0?JSON[_0x2e05ec(0x1b7)](_0x57032b,null,0x2):undefined,_0x52bc12=_0x18f648[_0x2e05ec(0x1dd)](([_0x7dbb6])=>_0x7dbb6!=='debug'&&_0x7dbb6!==_0x2e05ec(0x1d2)&&_0x7dbb6!==_0x2e05ec(0x1e4)&&_0x7dbb6!=='rule'),_0x25f01b=Math['max'](..._0x52bc12['map'](([_0x3df45d])=>_0x3df45d[_0x2e05ec(0x1d9)])),_0x5439ae=Math[_0x2e05ec(0x1db)](..._0x52bc12['map'](([,_0xce16b8])=>{const _0x4dde17=_0x2e05ec;try{const _0x224e95=_0xce16b8===null||_0xce16b8===undefined?'':typeof _0xce16b8===_0x4dde17(0x1be)?JSON['stringify'](_0xce16b8):String(_0xce16b8),_0x57d90e=_0x224e95[_0x4dde17(0x1e5)]('\x0a');return Math[_0x4dde17(0x1db)](..._0x57d90e['map'](_0x59023a=>_0x59023a[_0x4dde17(0x1d9)]),0x0);}catch{return 0x0;}}),0x14),_0x119a9e=[];_0x119a9e[_0x2e05ec(0x1cd)](colorBorder('┌─'+'─'['repeat'](_0x25f01b)+'─┬─'+'─'[_0x2e05ec(0x1e1)](_0x5439ae)+'─┐',_0x31dd6e)),_0x52bc12[_0x2e05ec(0x1c1)](([_0x11feb7,_0x4480f0])=>{const _0x1a2451=_0x2e05ec;let _0x4cb0f4;try{_0x4cb0f4=_0x4480f0===null||_0x4480f0===undefined?'':typeof _0x4480f0==='object'?JSON[_0x1a2451(0x1b7)](_0x4480f0):String(_0x4480f0);}catch{_0x4cb0f4=_0x1a2451(0x1cf);}const _0x12fe56=_0x11feb7[_0x1a2451(0x1cc)](_0x25f01b),_0x5efc5b=_0x4cb0f4[_0x1a2451(0x1e5)]('\x0a');_0x5efc5b[_0x1a2451(0x1c1)]((_0x3e94ad,_0x2a4c7b)=>{const _0x1294e1=_0x1a2451,_0x344ac0=colorBorder('│',_0x31dd6e);_0x2a4c7b===0x0?_0x119a9e[_0x1294e1(0x1cd)](_0x344ac0+'\x20'+_0x12fe56+'\x20'+_0x344ac0+'\x20'+_0x3e94ad[_0x1294e1(0x1cc)](_0x5439ae)+'\x20'+_0x344ac0):_0x119a9e[_0x1294e1(0x1cd)](_0x344ac0+'\x20'+'\x20'[_0x1294e1(0x1e1)](_0x25f01b)+'\x20'+_0x344ac0+'\x20'+_0x3e94ad[_0x1294e1(0x1cc)](_0x5439ae)+'\x20'+_0x344ac0);});}),_0x119a9e[_0x2e05ec(0x1cd)](colorBorder('└─'+'─'[_0x2e05ec(0x1e1)](_0x25f01b)+'─┴─'+'─'['repeat'](_0x5439ae)+'─┘',_0x31dd6e));_0x55cd1a&&(_0x119a9e[_0x2e05ec(0x1cd)](''),_0x119a9e['push'](String(a89_0x543509[_0x2e05ec(0x1af)][_0x2e05ec(0x1e9)](_0x2e05ec(0x1c3)))),_0x119a9e[_0x2e05ec(0x1cd)](_0x55cd1a));_0x21c116&&(_0x119a9e[_0x2e05ec(0x1cd)](''),_0x119a9e[_0x2e05ec(0x1cd)](String(a89_0x543509[_0x2e05ec(0x1ed)][_0x2e05ec(0x1e9)](_0x2e05ec(0x1d5)))),_0x119a9e[_0x2e05ec(0x1cd)](_0x21c116));_0x3358b6&&(_0x119a9e[_0x2e05ec(0x1cd)](''),_0x119a9e[_0x2e05ec(0x1cd)](String(a89_0x543509['magenta'][_0x2e05ec(0x1e9)]('[rule]'))),_0x119a9e[_0x2e05ec(0x1cd)](_0x3358b6));if(_0x5c5200){if(_0x5c5200[_0x2e05ec(0x1bb)]){_0x119a9e['push'](''),_0x119a9e[_0x2e05ec(0x1cd)](String(a89_0x543509[_0x2e05ec(0x1c2)]['bold'](_0x2e05ec(0x1d3))));const _0x1c96e0=_0x5c5200[_0x2e05ec(0x1bb)][_0x2e05ec(0x1e5)]('\x0a');_0x1c96e0[_0x2e05ec(0x1c1)](_0x1cb6d2=>{const _0x2fe5fc=_0x2e05ec;_0x1cb6d2[_0x2fe5fc(0x1ba)]()&&_0x119a9e[_0x2fe5fc(0x1cd)](_0x1cb6d2);});}if(_0x5c5200[_0x2e05ec(0x1ce)]){_0x119a9e[_0x2e05ec(0x1cd)](''),_0x119a9e['push'](String(a89_0x543509[_0x2e05ec(0x1c0)][_0x2e05ec(0x1e9)]('[logs]')));const _0x2c684c=_0x5c5200[_0x2e05ec(0x1ce)]['split']('\x0a');_0x2c684c[_0x2e05ec(0x1c1)](_0x1c4e86=>{const _0x2cb9bf=_0x2e05ec;_0x1c4e86[_0x2cb9bf(0x1ba)]()&&_0x119a9e[_0x2cb9bf(0x1cd)](_0x1c4e86);});}}return _0x119a9e['join']('\x0a');}}}}export async function handleSingleObjectOutput(_0x322938,_0x271241){const _0x44ea4f=a89_0x2c77;if(_0x271241[_0x44ea4f(0x1c8)]===_0x44ea4f(0x1c7)){await handleSDKOutput([_0x322938],_0x271241);return;}const _0x36ae49=resolveOutputOptions(_0x271241),_0x4564a3=await formatSingleObject(_0x322938,_0x36ae49);await writeOutput(_0x4564a3,_0x36ae49[_0x44ea4f(0x1b0)]||undefined,_0x36ae49['format']);}
@@ -1 +1 @@
1
- (function(_0x124eea,_0x2fdd94){const _0x29d36a=a90_0x5941,_0x5b1756=_0x124eea();while(!![]){try{const _0x5b5ae0=-parseInt(_0x29d36a(0x90))/0x1*(-parseInt(_0x29d36a(0x99))/0x2)+-parseInt(_0x29d36a(0x97))/0x3*(parseInt(_0x29d36a(0x95))/0x4)+parseInt(_0x29d36a(0x93))/0x5+parseInt(_0x29d36a(0x92))/0x6*(-parseInt(_0x29d36a(0x98))/0x7)+-parseInt(_0x29d36a(0x94))/0x8+parseInt(_0x29d36a(0x9a))/0x9+-parseInt(_0x29d36a(0x96))/0xa;if(_0x5b5ae0===_0x2fdd94)break;else _0x5b1756['push'](_0x5b1756['shift']());}catch(_0x4e4099){_0x5b1756['push'](_0x5b1756['shift']());}}}(a90_0x32c1,0x708b1));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;function a90_0x5941(_0x20f0b6,_0xf5a95b){_0x20f0b6=_0x20f0b6-0x90;const _0x32c191=a90_0x32c1();let _0x5941eb=_0x32c191[_0x20f0b6];return _0x5941eb;}export function resolveLimit(_0x7685d3,_0x286a7a){const _0x213478=a90_0x5941;if(_0x7685d3===undefined)return _0x286a7a;if(typeof _0x7685d3===_0x213478(0x91))return _0x7685d3;return parseInt(_0x7685d3,0xa);}function a90_0x32c1(){const _0xcf866e=['4870863kTHKHo','1GkzMFD','number','3881946mNXIee','4315125XkfwyE','2281048CKpsGQ','5068jGwlUe','7122830lxaEvb','213ZQHIuk','7bcHRnd','1582214hCwExD'];a90_0x32c1=function(){return _0xcf866e;};return a90_0x32c1();}
1
+ (function(_0x2aa645,_0x44abb9){const _0x4cd13f=a90_0x4474,_0x566788=_0x2aa645();while(!![]){try{const _0x24eab6=parseInt(_0x4cd13f(0x1e3))/0x1+-parseInt(_0x4cd13f(0x1e1))/0x2*(-parseInt(_0x4cd13f(0x1e2))/0x3)+-parseInt(_0x4cd13f(0x1dd))/0x4+-parseInt(_0x4cd13f(0x1df))/0x5*(-parseInt(_0x4cd13f(0x1e0))/0x6)+parseInt(_0x4cd13f(0x1db))/0x7*(-parseInt(_0x4cd13f(0x1da))/0x8)+parseInt(_0x4cd13f(0x1e5))/0x9+-parseInt(_0x4cd13f(0x1de))/0xa*(parseInt(_0x4cd13f(0x1dc))/0xb);if(_0x24eab6===_0x44abb9)break;else _0x566788['push'](_0x566788['shift']());}catch(_0x5b4ee0){_0x566788['push'](_0x566788['shift']());}}}(a90_0x8b61,0xa1267));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;function a90_0x4474(_0x2ef50d,_0x5cfb10){_0x2ef50d=_0x2ef50d-0x1da;const _0x8b61e4=a90_0x8b61();let _0x4474e5=_0x8b61e4[_0x2ef50d];return _0x4474e5;}export const DEFAULT_LLM_LIMIT=0x32;function a90_0x8b61(){const _0x5596db=['1583320mqtsdY','92890YFSQwH','430180QqWMFs','6jiChrG','1222968nlrXJQ','3EpkyKe','757976hFXjXP','number','113031qlCNYH','82144soNbIj','91xHBWeh','330Oseaaf'];a90_0x8b61=function(){return _0x5596db;};return a90_0x8b61();}export function resolveLimit(_0x1acea4,_0x4ba12c){const _0x4f18ca=a90_0x4474;if(_0x1acea4===undefined)return _0x4ba12c;if(typeof _0x1acea4===_0x4f18ca(0x1e4))return _0x1acea4;return parseInt(_0x1acea4,0xa);}
@@ -1 +1 @@
1
- (function(_0x32ffdd,_0x521c91){const _0x5c039a=a91_0x5c91,_0x41f07e=_0x32ffdd();while(!![]){try{const _0xe5c01b=parseInt(_0x5c039a(0x15d))/0x1*(-parseInt(_0x5c039a(0x160))/0x2)+-parseInt(_0x5c039a(0x161))/0x3*(-parseInt(_0x5c039a(0x173))/0x4)+parseInt(_0x5c039a(0x15e))/0x5*(-parseInt(_0x5c039a(0x164))/0x6)+parseInt(_0x5c039a(0x16c))/0x7+-parseInt(_0x5c039a(0x163))/0x8+-parseInt(_0x5c039a(0x152))/0x9*(-parseInt(_0x5c039a(0x15c))/0xa)+-parseInt(_0x5c039a(0x176))/0xb*(-parseInt(_0x5c039a(0x166))/0xc);if(_0xe5c01b===_0x521c91)break;else _0x41f07e['push'](_0x41f07e['shift']());}catch(_0x246219){_0x41f07e['push'](_0x41f07e['shift']());}}}(a91_0x58af,0xc48b1));import a91_0x5596e9 from'chalk';export function generateDiff(_0x113eb9,_0x152ae9){const _0x51523f=a91_0x5c91,_0x43f47e=_0x113eb9[_0x51523f(0x171)]('\x0a'),_0x55f259=_0x152ae9[_0x51523f(0x171)]('\x0a'),_0x4bd7c7=[],_0x220968=computeLCS(_0x43f47e,_0x55f259);let _0x53119e=0x0,_0x384753=0x0,_0x4d9478=0x0;while(_0x53119e<_0x43f47e['length']||_0x384753<_0x55f259[_0x51523f(0x157)]){if(_0x4d9478<_0x220968[_0x51523f(0x157)]&&_0x53119e<_0x43f47e[_0x51523f(0x157)]&&_0x43f47e[_0x53119e]===_0x220968[_0x4d9478])_0x384753<_0x55f259[_0x51523f(0x157)]&&_0x55f259[_0x384753]===_0x220968[_0x4d9478]?(_0x4bd7c7[_0x51523f(0x169)]({'type':_0x51523f(0x16e),'content':_0x43f47e[_0x53119e]}),_0x53119e++,_0x384753++,_0x4d9478++):(_0x4bd7c7[_0x51523f(0x169)]({'type':_0x51523f(0x16d),'content':_0x55f259[_0x384753]}),_0x384753++);else{if(_0x4d9478<_0x220968[_0x51523f(0x157)]&&_0x384753<_0x55f259[_0x51523f(0x157)]&&_0x55f259[_0x384753]===_0x220968[_0x4d9478])_0x4bd7c7[_0x51523f(0x169)]({'type':_0x51523f(0x162),'content':_0x43f47e[_0x53119e]}),_0x53119e++;else{if(_0x53119e<_0x43f47e['length']&&(_0x4d9478>=_0x220968[_0x51523f(0x157)]||_0x43f47e[_0x53119e]!==_0x220968[_0x4d9478]))_0x4bd7c7[_0x51523f(0x169)]({'type':_0x51523f(0x162),'content':_0x43f47e[_0x53119e]}),_0x53119e++;else _0x384753<_0x55f259[_0x51523f(0x157)]&&(_0x4bd7c7[_0x51523f(0x169)]({'type':'added','content':_0x55f259[_0x384753]}),_0x384753++);}}}return _0x4bd7c7;}function computeLCS(_0x432f95,_0x26cb2d){const _0x2387f6=a91_0x5c91,_0x3b7ec9=_0x432f95[_0x2387f6(0x157)],_0x243825=_0x26cb2d[_0x2387f6(0x157)],_0x343382=Array(_0x3b7ec9+0x1)['fill'](null)['map'](()=>Array(_0x243825+0x1)[_0x2387f6(0x156)](0x0));for(let _0x46a78f=0x1;_0x46a78f<=_0x3b7ec9;_0x46a78f++){for(let _0x25761b=0x1;_0x25761b<=_0x243825;_0x25761b++){_0x432f95[_0x46a78f-0x1]===_0x26cb2d[_0x25761b-0x1]?_0x343382[_0x46a78f][_0x25761b]=_0x343382[_0x46a78f-0x1][_0x25761b-0x1]+0x1:_0x343382[_0x46a78f][_0x25761b]=Math['max'](_0x343382[_0x46a78f-0x1][_0x25761b],_0x343382[_0x46a78f][_0x25761b-0x1]);}}const _0x5932a0=[];let _0x20f89b=_0x3b7ec9,_0x39adbd=_0x243825;while(_0x20f89b>0x0&&_0x39adbd>0x0){if(_0x432f95[_0x20f89b-0x1]===_0x26cb2d[_0x39adbd-0x1])_0x5932a0['unshift'](_0x432f95[_0x20f89b-0x1]),_0x20f89b--,_0x39adbd--;else _0x343382[_0x20f89b-0x1][_0x39adbd]>_0x343382[_0x20f89b][_0x39adbd-0x1]?_0x20f89b--:_0x39adbd--;}return _0x5932a0;}export function formatDiffWithColors(_0x40a5d5,_0x460872=0x3){const _0x4351f2=a91_0x5c91,_0x177176=new Set();_0x40a5d5['forEach']((_0x1d23f0,_0x1d93f7)=>{const _0xf5e309=a91_0x5c91;_0x1d23f0[_0xf5e309(0x154)]!==_0xf5e309(0x16e)&&_0x177176[_0xf5e309(0x172)](_0x1d93f7);});if(_0x177176[_0x4351f2(0x16b)]===0x0)return'';const _0x5781c8=new Set();for(const _0x37c996 of _0x177176){for(let _0x234fbb=Math[_0x4351f2(0x175)](0x0,_0x37c996-_0x460872);_0x234fbb<=Math[_0x4351f2(0x16a)](_0x40a5d5[_0x4351f2(0x157)]-0x1,_0x37c996+_0x460872);_0x234fbb++){_0x5781c8['add'](_0x234fbb);}}const _0xf557e7=[];let _0x2515c5=-0x1;const _0x127a8e=_0x40a5d5[_0x4351f2(0x157)],_0x16d600=Math[_0x4351f2(0x175)](0x3,String(_0x127a8e)['length']),_0x1d897d=[];let _0x2f40cb=0x0,_0x4c10e5=0x0;for(const _0x4d8dc0 of _0x40a5d5){if(_0x4d8dc0[_0x4351f2(0x154)]==='removed')_0x2f40cb++,_0x1d897d['push']({'old':_0x2f40cb,'new':0x0});else _0x4d8dc0[_0x4351f2(0x154)]==='added'?(_0x4c10e5++,_0x1d897d['push']({'old':0x0,'new':_0x4c10e5})):(_0x2f40cb++,_0x4c10e5++,_0x1d897d[_0x4351f2(0x169)]({'old':_0x2f40cb,'new':_0x4c10e5}));}for(let _0x41457a=0x0;_0x41457a<_0x40a5d5[_0x4351f2(0x157)];_0x41457a++){if(!_0x5781c8[_0x4351f2(0x165)](_0x41457a))continue;_0x2515c5!==-0x1&&_0x41457a>_0x2515c5+0x1&&_0xf557e7['push'](a91_0x5596e9[_0x4351f2(0x168)](_0x4351f2(0x167)));_0x2515c5=_0x41457a;const _0x306df3=_0x40a5d5[_0x41457a],_0x1de97f=_0x1d897d[_0x41457a],_0x54f234=_0x1de97f['old']>0x0?String(_0x1de97f['old'])[_0x4351f2(0x155)](_0x16d600):'\x20'[_0x4351f2(0x15b)](_0x16d600),_0x3f3d21=_0x1de97f[_0x4351f2(0x151)]>0x0?String(_0x1de97f['new'])[_0x4351f2(0x155)](_0x16d600):'\x20'[_0x4351f2(0x15b)](_0x16d600);switch(_0x306df3['type']){case'removed':_0xf557e7[_0x4351f2(0x169)](a91_0x5596e9['red'](_0x54f234+'\x20'+_0x3f3d21+_0x4351f2(0x158)+_0x306df3[_0x4351f2(0x153)]));break;case'added':_0xf557e7['push'](a91_0x5596e9[_0x4351f2(0x15f)](_0x54f234+'\x20'+_0x3f3d21+_0x4351f2(0x16f)+_0x306df3[_0x4351f2(0x153)]));break;default:_0xf557e7[_0x4351f2(0x169)](a91_0x5596e9[_0x4351f2(0x15a)](_0x54f234+'\x20'+_0x3f3d21+_0x4351f2(0x159)+_0x306df3[_0x4351f2(0x153)]));break;}}return _0xf557e7[_0x4351f2(0x170)]('\x0a');}function a91_0x58af(){const _0x4985bc=['type','padStart','fill','length','\x20-\x20','\x20\x20\x20','dim','repeat','64030FteWwz','73189WtgWKQ','5nBBmmk','green','34oWuvlC','3InMYWY','removed','12674208AiyZnM','6383766AZXSXo','has','16095792WPllqv','\x20\x20...','cyan','push','min','size','9184245IYYHOY','added','unchanged','\x20+\x20','join','split','add','839172qEzFyC','some','max','22UZlZgH','new','693dEWXsB','content'];a91_0x58af=function(){return _0x4985bc;};return a91_0x58af();}function a91_0x5c91(_0x598e37,_0x89e014){_0x598e37=_0x598e37-0x151;const _0x58af55=a91_0x58af();let _0x5c91a3=_0x58af55[_0x598e37];return _0x5c91a3;}export function hasChanges(_0x427a91){const _0x3bbe66=a91_0x5c91;return _0x427a91[_0x3bbe66(0x174)](_0x1055dd=>_0x1055dd['type']!==_0x3bbe66(0x16e));}
1
+ (function(_0x24756f,_0x2b6146){const _0x141032=a91_0xdcae,_0x29dce4=_0x24756f();while(!![]){try{const _0x163000=-parseInt(_0x141032(0x1f1))/0x1*(-parseInt(_0x141032(0x1e4))/0x2)+-parseInt(_0x141032(0x1d9))/0x3*(parseInt(_0x141032(0x1ed))/0x4)+-parseInt(_0x141032(0x1d5))/0x5*(-parseInt(_0x141032(0x1d3))/0x6)+parseInt(_0x141032(0x1e1))/0x7*(parseInt(_0x141032(0x1e8))/0x8)+-parseInt(_0x141032(0x1d4))/0x9+-parseInt(_0x141032(0x1db))/0xa+-parseInt(_0x141032(0x1df))/0xb;if(_0x163000===_0x2b6146)break;else _0x29dce4['push'](_0x29dce4['shift']());}catch(_0x39ad34){_0x29dce4['push'](_0x29dce4['shift']());}}}(a91_0x2e5c,0x9aa38));function a91_0xdcae(_0x463211,_0x211749){_0x463211=_0x463211-0x1cd;const _0x2e5c96=a91_0x2e5c();let _0xdcae4f=_0x2e5c96[_0x463211];return _0xdcae4f;}import a91_0x352e66 from'chalk';export function generateDiff(_0x4b439b,_0x5e857e){const _0x506cab=a91_0xdcae,_0x46eb91=_0x4b439b[_0x506cab(0x1d1)]('\x0a'),_0x191191=_0x5e857e[_0x506cab(0x1d1)]('\x0a'),_0x4f563e=[],_0xe5c9f9=computeLCS(_0x46eb91,_0x191191);let _0xee382f=0x0,_0x5cffea=0x0,_0xabb9d6=0x0;while(_0xee382f<_0x46eb91[_0x506cab(0x1f0)]||_0x5cffea<_0x191191[_0x506cab(0x1f0)]){if(_0xabb9d6<_0xe5c9f9[_0x506cab(0x1f0)]&&_0xee382f<_0x46eb91[_0x506cab(0x1f0)]&&_0x46eb91[_0xee382f]===_0xe5c9f9[_0xabb9d6])_0x5cffea<_0x191191['length']&&_0x191191[_0x5cffea]===_0xe5c9f9[_0xabb9d6]?(_0x4f563e[_0x506cab(0x1f2)]({'type':_0x506cab(0x1cf),'content':_0x46eb91[_0xee382f]}),_0xee382f++,_0x5cffea++,_0xabb9d6++):(_0x4f563e[_0x506cab(0x1f2)]({'type':_0x506cab(0x1ec),'content':_0x191191[_0x5cffea]}),_0x5cffea++);else{if(_0xabb9d6<_0xe5c9f9[_0x506cab(0x1f0)]&&_0x5cffea<_0x191191['length']&&_0x191191[_0x5cffea]===_0xe5c9f9[_0xabb9d6])_0x4f563e[_0x506cab(0x1f2)]({'type':_0x506cab(0x1d2),'content':_0x46eb91[_0xee382f]}),_0xee382f++;else{if(_0xee382f<_0x46eb91['length']&&(_0xabb9d6>=_0xe5c9f9['length']||_0x46eb91[_0xee382f]!==_0xe5c9f9[_0xabb9d6]))_0x4f563e[_0x506cab(0x1f2)]({'type':'removed','content':_0x46eb91[_0xee382f]}),_0xee382f++;else _0x5cffea<_0x191191[_0x506cab(0x1f0)]&&(_0x4f563e[_0x506cab(0x1f2)]({'type':_0x506cab(0x1ec),'content':_0x191191[_0x5cffea]}),_0x5cffea++);}}}return _0x4f563e;}function a91_0x2e5c(){const _0x4f159c=['repeat','map','11673kFWWBt','old','3030380mIbQnI','add','\x20\x20\x20','join','15413717YrxIDp','\x20\x20...','14QqljxD','padStart','content','758066kUBzjp','dim','new','some','2322456xxFkGD','max','\x20-\x20','type','added','8cIIklL','cyan','\x20+\x20','length','3WpjQiF','push','green','min','has','unchanged','fill','split','removed','24ntnjRf','4815846HdGPmc','1453560jYCxLp','red'];a91_0x2e5c=function(){return _0x4f159c;};return a91_0x2e5c();}function computeLCS(_0x12a1bb,_0x297a9e){const _0x37f23d=a91_0xdcae,_0x1cf4af=_0x12a1bb[_0x37f23d(0x1f0)],_0x58c911=_0x297a9e['length'],_0x185ee9=Array(_0x1cf4af+0x1)[_0x37f23d(0x1d0)](null)[_0x37f23d(0x1d8)](()=>Array(_0x58c911+0x1)[_0x37f23d(0x1d0)](0x0));for(let _0x15d663=0x1;_0x15d663<=_0x1cf4af;_0x15d663++){for(let _0x115fd1=0x1;_0x115fd1<=_0x58c911;_0x115fd1++){_0x12a1bb[_0x15d663-0x1]===_0x297a9e[_0x115fd1-0x1]?_0x185ee9[_0x15d663][_0x115fd1]=_0x185ee9[_0x15d663-0x1][_0x115fd1-0x1]+0x1:_0x185ee9[_0x15d663][_0x115fd1]=Math[_0x37f23d(0x1e9)](_0x185ee9[_0x15d663-0x1][_0x115fd1],_0x185ee9[_0x15d663][_0x115fd1-0x1]);}}const _0x5b1823=[];let _0x516f79=_0x1cf4af,_0x3eb68d=_0x58c911;while(_0x516f79>0x0&&_0x3eb68d>0x0){if(_0x12a1bb[_0x516f79-0x1]===_0x297a9e[_0x3eb68d-0x1])_0x5b1823['unshift'](_0x12a1bb[_0x516f79-0x1]),_0x516f79--,_0x3eb68d--;else _0x185ee9[_0x516f79-0x1][_0x3eb68d]>_0x185ee9[_0x516f79][_0x3eb68d-0x1]?_0x516f79--:_0x3eb68d--;}return _0x5b1823;}export function formatDiffWithColors(_0x2455c9,_0x5aed35=0x3){const _0x56a795=a91_0xdcae,_0x1957bb=new Set();_0x2455c9['forEach']((_0x4fc5b1,_0x52667a)=>{const _0x1d0cd0=a91_0xdcae;_0x4fc5b1[_0x1d0cd0(0x1eb)]!==_0x1d0cd0(0x1cf)&&_0x1957bb[_0x1d0cd0(0x1dc)](_0x52667a);});if(_0x1957bb['size']===0x0)return'';const _0x44f18b=new Set();for(const _0x2924b9 of _0x1957bb){for(let _0x5972d4=Math[_0x56a795(0x1e9)](0x0,_0x2924b9-_0x5aed35);_0x5972d4<=Math[_0x56a795(0x1cd)](_0x2455c9[_0x56a795(0x1f0)]-0x1,_0x2924b9+_0x5aed35);_0x5972d4++){_0x44f18b[_0x56a795(0x1dc)](_0x5972d4);}}const _0x414d65=[];let _0x4891aa=-0x1;const _0x4b8b78=_0x2455c9[_0x56a795(0x1f0)],_0x480154=Math[_0x56a795(0x1e9)](0x3,String(_0x4b8b78)[_0x56a795(0x1f0)]),_0x107b64=[];let _0x4276a6=0x0,_0x382c5d=0x0;for(const _0x42cb10 of _0x2455c9){if(_0x42cb10[_0x56a795(0x1eb)]===_0x56a795(0x1d2))_0x4276a6++,_0x107b64[_0x56a795(0x1f2)]({'old':_0x4276a6,'new':0x0});else _0x42cb10[_0x56a795(0x1eb)]==='added'?(_0x382c5d++,_0x107b64[_0x56a795(0x1f2)]({'old':0x0,'new':_0x382c5d})):(_0x4276a6++,_0x382c5d++,_0x107b64[_0x56a795(0x1f2)]({'old':_0x4276a6,'new':_0x382c5d}));}for(let _0x46c1fc=0x0;_0x46c1fc<_0x2455c9['length'];_0x46c1fc++){if(!_0x44f18b[_0x56a795(0x1ce)](_0x46c1fc))continue;_0x4891aa!==-0x1&&_0x46c1fc>_0x4891aa+0x1&&_0x414d65[_0x56a795(0x1f2)](a91_0x352e66[_0x56a795(0x1ee)](_0x56a795(0x1e0)));_0x4891aa=_0x46c1fc;const _0x5c8f85=_0x2455c9[_0x46c1fc],_0x57f2de=_0x107b64[_0x46c1fc],_0x2ee795=_0x57f2de[_0x56a795(0x1da)]>0x0?String(_0x57f2de[_0x56a795(0x1da)])[_0x56a795(0x1e2)](_0x480154):'\x20'[_0x56a795(0x1d7)](_0x480154),_0x2feb6d=_0x57f2de[_0x56a795(0x1e6)]>0x0?String(_0x57f2de[_0x56a795(0x1e6)])[_0x56a795(0x1e2)](_0x480154):'\x20'[_0x56a795(0x1d7)](_0x480154);switch(_0x5c8f85[_0x56a795(0x1eb)]){case _0x56a795(0x1d2):_0x414d65['push'](a91_0x352e66[_0x56a795(0x1d6)](_0x2ee795+'\x20'+_0x2feb6d+_0x56a795(0x1ea)+_0x5c8f85['content']));break;case _0x56a795(0x1ec):_0x414d65['push'](a91_0x352e66[_0x56a795(0x1f3)](_0x2ee795+'\x20'+_0x2feb6d+_0x56a795(0x1ef)+_0x5c8f85[_0x56a795(0x1e3)]));break;default:_0x414d65[_0x56a795(0x1f2)](a91_0x352e66[_0x56a795(0x1e5)](_0x2ee795+'\x20'+_0x2feb6d+_0x56a795(0x1dd)+_0x5c8f85['content']));break;}}return _0x414d65[_0x56a795(0x1de)]('\x0a');}export function hasChanges(_0x5702ef){const _0x4c5cef=a91_0xdcae;return _0x5702ef[_0x4c5cef(0x1e7)](_0x59f851=>_0x59f851['type']!==_0x4c5cef(0x1cf));}
@@ -1 +1 @@
1
- (function(_0x486691,_0x487276){const _0x3cc7db=a92_0x1008,_0x3d6d8f=_0x486691();while(!![]){try{const _0x279a3f=parseInt(_0x3cc7db(0xf5))/0x1*(parseInt(_0x3cc7db(0x107))/0x2)+parseInt(_0x3cc7db(0xe4))/0x3*(parseInt(_0x3cc7db(0xd7))/0x4)+-parseInt(_0x3cc7db(0xee))/0x5+-parseInt(_0x3cc7db(0xfa))/0x6+parseInt(_0x3cc7db(0xde))/0x7+-parseInt(_0x3cc7db(0xd5))/0x8+parseInt(_0x3cc7db(0xe0))/0x9;if(_0x279a3f===_0x487276)break;else _0x3d6d8f['push'](_0x3d6d8f['shift']());}catch(_0x186a98){_0x3d6d8f['push'](_0x3d6d8f['shift']());}}}(a92_0x40df,0x476f8));function a92_0x1008(_0x5bcf6c,_0x88c47c){_0x5bcf6c=_0x5bcf6c-0xd1;const _0x40dfc8=a92_0x40df();let _0x10083b=_0x40dfc8[_0x5bcf6c];return _0x10083b;}function a92_0x40df(){const _0x2b8353=['length','type','verbose','push','2232636DijRFN','entries','Fetching\x20schema...','information_schema','Attributes','startsWith','parentTableName','Unknown','YES','error','parentColumn','bold','setJobId','484492wLaybL','SELECT\x20*\x20FROM\x20(\x0a','column_type','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','Behaviors','source','2127424MDibIS','fields','2195372diMUEr','size','varchar','behavior','extra','sort','query','544915EXDCmG','columns','4444560EtwsoH','name','tableName','Schema\x20query:\x0a','3pflvto','groupingName','filter','data','null','localeCompare','dim','default','get','set','2160700EhUjDx','trim','cyan','attribute','column_name','displayName','behaviorName','1nQppNc'];a92_0x40df=function(){return _0x2b8353;};return a92_0x40df();}import a92_0x163c08 from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x107acc){const _0x3f4c9c=a92_0x1008,_0x56f823=_0x107acc[_0x3f4c9c(0xdf)]['map'](_0x49f442=>({'column_name':_0x49f442[_0x3f4c9c(0xe1)],'column_type':_0x49f442[_0x3f4c9c(0xf7)],'null':_0x3f4c9c(0x102),'key':null,'default':null,'extra':null}));return{..._0x107acc,'columns':[{'name':_0x3f4c9c(0xf2),'type':_0x3f4c9c(0xd9)},{'name':_0x3f4c9c(0xd1),'type':_0x3f4c9c(0xd9)},{'name':_0x3f4c9c(0xe8),'type':'varchar'},{'name':'key','type':_0x3f4c9c(0xd9)},{'name':_0x3f4c9c(0xeb),'type':_0x3f4c9c(0xd9)},{'name':_0x3f4c9c(0xdb),'type':_0x3f4c9c(0xd9)}],'data':_0x56f823};}export async function executeSchemaQuery(_0xfdda66,_0x4566b9,_0x24e02b){const _0x115f67=a92_0x1008,_0x2359a7=_0xfdda66[_0x115f67(0xef)]()['replace'](/;+$/,''),_0x11f747=_0x115f67(0x108)+_0x2359a7+_0x115f67(0xd2);_0x24e02b[_0x115f67(0xf8)]&&console[_0x115f67(0x103)](_0x115f67(0xe3)+_0x11f747);const _0x424f05=await withQuerySpinner(_0x115f67(0xfc),async _0x44e787=>{const _0x27c2f9=_0x115f67,_0x1f3821=await _0x4566b9[_0x27c2f9(0xdd)]['execute'](_0x11f747,{'catalog':'td','schema':_0x27c2f9(0xfd),'onJobId':_0x5313fe=>{const _0x46fe24=_0x27c2f9;_0x44e787[_0x46fe24(0x106)](_0x5313fe);}});return _0x1f3821;},{'verbose':_0x24e02b['verbose']});return buildSchemaResult(_0x424f05[_0x115f67(0xe7)]);}export function displayFieldsHumanReadable(_0x57da89,_0x290792){const _0x527600=a92_0x1008,_0x3ac9f3=_0x57da89[_0x527600(0xe6)](_0x34a644=>_0x34a644['source']===_0x527600(0xf1)),_0x499c51=_0x57da89[_0x527600(0xe6)](_0x82bdef=>_0x82bdef[_0x527600(0xd4)]===_0x527600(0xda)),_0x2d4ff2=new Map();for(const _0x2805e2 of _0x3ac9f3){const _0x55e13b=_0x2805e2[_0x527600(0xe5)]||_0x2805e2[_0x527600(0x100)]||_0x527600(0x101),_0x195cc0=_0x2d4ff2[_0x527600(0xec)](_0x55e13b);_0x195cc0?_0x195cc0[_0x527600(0xd6)][_0x527600(0xf9)](_0x2805e2):_0x2d4ff2['set'](_0x55e13b,{'displayName':_0x55e13b,'tableName':_0x2805e2[_0x527600(0x100)],'fields':[_0x2805e2]});}const _0x46f57b=new Map();for(const _0x4328e6 of _0x499c51){const _0x25885f=_0x4328e6[_0x527600(0xf4)]||_0x527600(0x101),_0x9ab5ee=_0x46f57b[_0x527600(0xec)](_0x25885f)||[];_0x9ab5ee['push'](_0x4328e6),_0x46f57b[_0x527600(0xed)](_0x25885f,_0x9ab5ee);}console[_0x527600(0x103)]('\x0a'+a92_0x163c08[_0x527600(0x105)](_0x290792));if(_0x2d4ff2[_0x527600(0xd8)]>0x0){console[_0x527600(0x103)]('\x0a'+a92_0x163c08[_0x527600(0xea)](_0x527600(0xfe)));const _0x551aad=[..._0x2d4ff2[_0x527600(0xfb)]()][_0x527600(0xdc)]((_0x577dae,_0x2e604f)=>_0x577dae[0x0][_0x527600(0xe9)](_0x2e604f[0x0]));for(const [,_0x5923d1]of _0x551aad){const _0x272b7e=_0x5923d1['tableName']&&_0x5923d1[_0x527600(0xe2)]!==_0x5923d1[_0x527600(0xf3)]?'\x20'+a92_0x163c08[_0x527600(0xea)]('('+_0x5923d1['tableName']+')'):'';console[_0x527600(0x103)]('\x20\x20'+a92_0x163c08[_0x527600(0x105)](_0x5923d1[_0x527600(0xf3)])+_0x272b7e);const _0x19a6c9=[..._0x5923d1[_0x527600(0xd6)]][_0x527600(0xdc)]((_0x998fb3,_0x21dbaa)=>_0x998fb3[_0x527600(0xe1)][_0x527600(0xe9)](_0x21dbaa[_0x527600(0xe1)]));for(const _0x1eae94 of _0x19a6c9){const _0x256ab6=_0x1eae94[_0x527600(0x104)]&&_0x1eae94['parentColumn']!==_0x1eae94['name']?'\x20'+a92_0x163c08['dim']('('+_0x1eae94['parentColumn']+')'):'';console[_0x527600(0x103)]('\x20\x20\x20\x20'+_0x1eae94[_0x527600(0xe1)]+_0x256ab6+':\x20'+a92_0x163c08['cyan'](_0x1eae94['type']));}}}if(_0x46f57b[_0x527600(0xd8)]>0x0){console['error']('\x0a'+a92_0x163c08[_0x527600(0xea)](_0x527600(0xd3)));const _0x46dc39=[..._0x46f57b['entries']()][_0x527600(0xdc)]((_0x2dc8ed,_0x236f13)=>_0x2dc8ed[0x0][_0x527600(0xe9)](_0x236f13[0x0]));for(const [_0x4633a2,_0x1a49b5]of _0x46dc39){const _0x448364=_0x1a49b5[0x0],_0x598f1b=_0x448364?.['parentTableName']||'';console[_0x527600(0x103)]('\x20\x20'+a92_0x163c08[_0x527600(0x105)](_0x4633a2)+(_0x598f1b?'\x20'+a92_0x163c08[_0x527600(0xea)]('('+_0x598f1b+')'):''));const _0x17d480=[..._0x1a49b5][_0x527600(0xdc)]((_0xc480ad,_0x71afa3)=>_0xc480ad[_0x527600(0xe1)][_0x527600(0xe9)](_0x71afa3[_0x527600(0xe1)]));for(const _0x6f7be8 of _0x17d480){const _0x2c70cb=_0x6f7be8[_0x527600(0xe1)][_0x527600(0xff)](_0x4633a2+'.')?_0x6f7be8[_0x527600(0xe1)]['slice'](_0x4633a2[_0x527600(0xf6)]+0x1):_0x6f7be8[_0x527600(0xe1)],_0x42b8a4=_0x6f7be8[_0x527600(0x104)]&&_0x6f7be8[_0x527600(0x104)]!==_0x2c70cb?'\x20'+a92_0x163c08[_0x527600(0xea)]('('+_0x6f7be8[_0x527600(0x104)]+')'):'';console[_0x527600(0x103)]('\x20\x20\x20\x20'+_0x2c70cb+_0x42b8a4+':\x20'+a92_0x163c08[_0x527600(0xf0)](_0x6f7be8[_0x527600(0xf7)]));}}}console['error']('');}
1
+ (function(_0x49d0e0,_0x3c99f4){const _0x4468de=a92_0x3573,_0x1d9732=_0x49d0e0();while(!![]){try{const _0x26cdd0=-parseInt(_0x4468de(0xb6))/0x1+parseInt(_0x4468de(0xac))/0x2*(parseInt(_0x4468de(0xba))/0x3)+parseInt(_0x4468de(0x96))/0x4*(parseInt(_0x4468de(0xb4))/0x5)+parseInt(_0x4468de(0xaf))/0x6+-parseInt(_0x4468de(0xa6))/0x7+-parseInt(_0x4468de(0xa4))/0x8*(-parseInt(_0x4468de(0xa0))/0x9)+parseInt(_0x4468de(0xb8))/0xa;if(_0x26cdd0===_0x3c99f4)break;else _0x1d9732['push'](_0x1d9732['shift']());}catch(_0x237e09){_0x1d9732['push'](_0x1d9732['shift']());}}}(a92_0x404f,0xb9dab));import a92_0x391ff6 from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x1f3e01){const _0x2af22e=a92_0x3573,_0x3d8fb7=_0x1f3e01[_0x2af22e(0x9c)][_0x2af22e(0xb0)](_0x4272e2=>({'column_name':_0x4272e2['name'],'column_type':_0x4272e2['type'],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x1f3e01,'columns':[{'name':_0x2af22e(0xc3),'type':'varchar'},{'name':_0x2af22e(0xc6),'type':_0x2af22e(0xbb)},{'name':'null','type':_0x2af22e(0xbb)},{'name':_0x2af22e(0x9d),'type':'varchar'},{'name':'default','type':_0x2af22e(0xbb)},{'name':_0x2af22e(0xc0),'type':_0x2af22e(0xbb)}],'data':_0x3d8fb7};}export async function executeSchemaQuery(_0x5237d8,_0x509d36,_0x4aac1d){const _0x153fd2=a92_0x3573,_0x19b70c=_0x5237d8[_0x153fd2(0xc1)]()[_0x153fd2(0xa9)](/;+$/,''),_0x11584d='SELECT\x20*\x20FROM\x20(\x0a'+_0x19b70c+_0x153fd2(0xaa);_0x4aac1d[_0x153fd2(0xbc)]&&console['error'](_0x153fd2(0x8e)+_0x11584d);const _0x408456=await withQuerySpinner(_0x153fd2(0xb1),async _0x17b558=>{const _0x34425f=_0x153fd2,_0x16dac4=await _0x509d36[_0x34425f(0xb2)][_0x34425f(0xad)](_0x11584d,{'catalog':'td','schema':_0x34425f(0xa5),'onJobId':_0x2e3d0f=>{const _0x5bd076=_0x34425f;_0x17b558[_0x5bd076(0x90)](_0x2e3d0f);}});return _0x16dac4;},{'verbose':_0x4aac1d[_0x153fd2(0xbc)]});return buildSchemaResult(_0x408456[_0x153fd2(0x97)]);}function a92_0x3573(_0x15ed6b,_0x4bec49){_0x15ed6b=_0x15ed6b-0x8d;const _0x404fd8=a92_0x404f();let _0x3573ae=_0x404fd8[_0x15ed6b];return _0x3573ae;}function a92_0x404f(){const _0x316d05=['information_schema','8387253XFBlqs','cyan','size','replace','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','Unknown','644ytIdfL','execute','startsWith','8357292iErfkU','map','Fetching\x20schema...','query','\x20\x20\x20\x20','2130xiOEha','slice','365305rtdIOM','error','4523760xfurAA','behaviorName','324cVFIpD','varchar','verbose','type','parentColumn','displayName','extra','trim','Attributes','column_name','source','fields','column_type','groupingName','Schema\x20query:\x0a','length','setJobId','dim','bold','behavior','parentTableName','filter','1268aRPEPN','data','tableName','push','set','localeCompare','columns','key','get','sort','2787003QksuME','entries','name','Behaviors','8rNuzaR'];a92_0x404f=function(){return _0x316d05;};return a92_0x404f();}export function displayFieldsHumanReadable(_0x2ee99c,_0x1e80fc){const _0x5f0935=a92_0x3573,_0x2a027c=_0x2ee99c[_0x5f0935(0x95)](_0x53c8c9=>_0x53c8c9[_0x5f0935(0xc4)]==='attribute'),_0x25c325=_0x2ee99c['filter'](_0x57ed60=>_0x57ed60[_0x5f0935(0xc4)]===_0x5f0935(0x93)),_0x7210a5=new Map();for(const _0x1dc1c7 of _0x2a027c){const _0x5c8258=_0x1dc1c7[_0x5f0935(0x8d)]||_0x1dc1c7['parentTableName']||_0x5f0935(0xab),_0x35d71a=_0x7210a5[_0x5f0935(0x9e)](_0x5c8258);_0x35d71a?_0x35d71a[_0x5f0935(0xc5)][_0x5f0935(0x99)](_0x1dc1c7):_0x7210a5[_0x5f0935(0x9a)](_0x5c8258,{'displayName':_0x5c8258,'tableName':_0x1dc1c7[_0x5f0935(0x94)],'fields':[_0x1dc1c7]});}const _0x490fea=new Map();for(const _0x1f698d of _0x25c325){const _0x37eec0=_0x1f698d[_0x5f0935(0xb9)]||_0x5f0935(0xab),_0xd1cf63=_0x490fea[_0x5f0935(0x9e)](_0x37eec0)||[];_0xd1cf63[_0x5f0935(0x99)](_0x1f698d),_0x490fea[_0x5f0935(0x9a)](_0x37eec0,_0xd1cf63);}console['error']('\x0a'+a92_0x391ff6['bold'](_0x1e80fc));if(_0x7210a5[_0x5f0935(0xa8)]>0x0){console[_0x5f0935(0xb7)]('\x0a'+a92_0x391ff6[_0x5f0935(0x91)](_0x5f0935(0xc2)));const _0x42e726=[..._0x7210a5['entries']()]['sort']((_0x410fea,_0x22c1e8)=>_0x410fea[0x0][_0x5f0935(0x9b)](_0x22c1e8[0x0]));for(const [,_0x5cdc9f]of _0x42e726){const _0x3c1e38=_0x5cdc9f[_0x5f0935(0x98)]&&_0x5cdc9f['tableName']!==_0x5cdc9f[_0x5f0935(0xbf)]?'\x20'+a92_0x391ff6[_0x5f0935(0x91)]('('+_0x5cdc9f['tableName']+')'):'';console[_0x5f0935(0xb7)]('\x20\x20'+a92_0x391ff6[_0x5f0935(0x92)](_0x5cdc9f[_0x5f0935(0xbf)])+_0x3c1e38);const _0x51fcbf=[..._0x5cdc9f['fields']][_0x5f0935(0x9f)]((_0xcd9080,_0x5cc711)=>_0xcd9080[_0x5f0935(0xa2)][_0x5f0935(0x9b)](_0x5cc711[_0x5f0935(0xa2)]));for(const _0x166bdf of _0x51fcbf){const _0x462994=_0x166bdf[_0x5f0935(0xbe)]&&_0x166bdf[_0x5f0935(0xbe)]!==_0x166bdf[_0x5f0935(0xa2)]?'\x20'+a92_0x391ff6[_0x5f0935(0x91)]('('+_0x166bdf[_0x5f0935(0xbe)]+')'):'';console['error'](_0x5f0935(0xb3)+_0x166bdf[_0x5f0935(0xa2)]+_0x462994+':\x20'+a92_0x391ff6['cyan'](_0x166bdf[_0x5f0935(0xbd)]));}}}if(_0x490fea['size']>0x0){console[_0x5f0935(0xb7)]('\x0a'+a92_0x391ff6['dim'](_0x5f0935(0xa3)));const _0x82c849=[..._0x490fea[_0x5f0935(0xa1)]()][_0x5f0935(0x9f)]((_0x4b9584,_0x4e8c52)=>_0x4b9584[0x0]['localeCompare'](_0x4e8c52[0x0]));for(const [_0x1d4453,_0x4f2f9d]of _0x82c849){const _0x511c17=_0x4f2f9d[0x0],_0x4f2df0=_0x511c17?.[_0x5f0935(0x94)]||'';console[_0x5f0935(0xb7)]('\x20\x20'+a92_0x391ff6[_0x5f0935(0x92)](_0x1d4453)+(_0x4f2df0?'\x20'+a92_0x391ff6[_0x5f0935(0x91)]('('+_0x4f2df0+')'):''));const _0x44e229=[..._0x4f2f9d][_0x5f0935(0x9f)]((_0x11ed07,_0x244927)=>_0x11ed07[_0x5f0935(0xa2)][_0x5f0935(0x9b)](_0x244927['name']));for(const _0x5cc06a of _0x44e229){const _0x30ba19=_0x5cc06a[_0x5f0935(0xa2)][_0x5f0935(0xae)](_0x1d4453+'.')?_0x5cc06a[_0x5f0935(0xa2)][_0x5f0935(0xb5)](_0x1d4453[_0x5f0935(0x8f)]+0x1):_0x5cc06a[_0x5f0935(0xa2)],_0x3f740b=_0x5cc06a[_0x5f0935(0xbe)]&&_0x5cc06a[_0x5f0935(0xbe)]!==_0x30ba19?'\x20'+a92_0x391ff6[_0x5f0935(0x91)]('('+_0x5cc06a['parentColumn']+')'):'';console['error']('\x20\x20\x20\x20'+_0x30ba19+_0x3f740b+':\x20'+a92_0x391ff6[_0x5f0935(0xa7)](_0x5cc06a[_0x5f0935(0xbd)]));}}}console[_0x5f0935(0xb7)]('');}
@@ -1 +1 @@
1
- function a93_0x205b(_0x278ee4,_0x31b013){_0x278ee4=_0x278ee4-0xde;const _0x6007f0=a93_0x6007();let _0x205bbe=_0x6007f0[_0x278ee4];return _0x205bbe;}(function(_0xe8c373,_0x395874){const _0x1cd129=a93_0x205b,_0x229a43=_0xe8c373();while(!![]){try{const _0x397c2d=parseInt(_0x1cd129(0xe0))/0x1+-parseInt(_0x1cd129(0xe3))/0x2+-parseInt(_0x1cd129(0xe6))/0x3+parseInt(_0x1cd129(0xf0))/0x4*(-parseInt(_0x1cd129(0xea))/0x5)+parseInt(_0x1cd129(0xed))/0x6*(parseInt(_0x1cd129(0xf1))/0x7)+-parseInt(_0x1cd129(0xdf))/0x8*(-parseInt(_0x1cd129(0xe7))/0x9)+-parseInt(_0x1cd129(0xeb))/0xa*(parseInt(_0x1cd129(0xe4))/0xb);if(_0x397c2d===_0x395874)break;else _0x229a43['push'](_0x229a43['shift']());}catch(_0x3ddaae){_0x229a43['push'](_0x229a43['shift']());}}}(a93_0x6007,0xcd4ac));import*as a93_0x2f5355 from'node:fs';import*as a93_0x25fc7d from'node:path';export function setSecureFilePermissions(_0xeb6f10){const _0x5be922=a93_0x205b;try{a93_0x2f5355[_0x5be922(0xe1)](_0xeb6f10,0x180);}catch{console['warn'](_0x5be922(0xde)+_0xeb6f10);}}export function setSecureDirectoryPermissions(_0x1c89d0){const _0x2e7c63=a93_0x205b;try{a93_0x2f5355[_0x2e7c63(0xe1)](_0x1c89d0,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1c89d0);}}function a93_0x6007(){const _0x3d4b37=['1264618BChCzF','chmodSync','dirname','546788ciXuMi','22eJrmvD','existsSync','3080598ANRTQw','9wwhOQa','writeFileSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','305vXYpBD','3024350yBmJsd',').\x20','6zwYNiq','warn','mode','30356pHocMX','7295932ksYaxm','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','7216328DDbeyJ'];a93_0x6007=function(){return _0x3d4b37;};return a93_0x6007();}export function createSecureDirectory(_0x5525bd){const _0x2a36b1=a93_0x205b;!a93_0x2f5355[_0x2a36b1(0xe5)](_0x5525bd)&&(a93_0x2f5355['mkdirSync'](_0x5525bd,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5525bd));}export function validateSecureFilePermissions(_0x5841bf){const _0xec94d2=a93_0x205b;try{const _0x32ecb8=a93_0x2f5355['statSync'](_0x5841bf),_0x6bbcb9=_0x32ecb8[_0xec94d2(0xef)]&0x1ff,_0x3a443c=(_0x6bbcb9&0x3f)!==0x0;if(_0x3a443c)return console[_0xec94d2(0xee)]('Warning:\x20'+_0x5841bf+'\x20has\x20insecure\x20permissions\x20('+_0x6bbcb9['toString'](0x8)+_0xec94d2(0xec)+_0xec94d2(0xe9)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x431916,_0x33fd13){const _0x4a6e8a=a93_0x205b,_0x210a8d=a93_0x25fc7d[_0x4a6e8a(0xe2)](_0x431916);createSecureDirectory(_0x210a8d),a93_0x2f5355[_0x4a6e8a(0xe8)](_0x431916,_0x33fd13,{'mode':0x180}),setSecureFilePermissions(_0x431916);}
1
+ (function(_0x125de2,_0x1d6656){const _0x135488=a93_0x5278,_0x25bcff=_0x125de2();while(!![]){try{const _0x4baea4=parseInt(_0x135488(0x10c))/0x1*(-parseInt(_0x135488(0x116))/0x2)+parseInt(_0x135488(0x10e))/0x3*(parseInt(_0x135488(0x117))/0x4)+-parseInt(_0x135488(0x106))/0x5+parseInt(_0x135488(0x114))/0x6*(-parseInt(_0x135488(0x111))/0x7)+-parseInt(_0x135488(0x107))/0x8+-parseInt(_0x135488(0x108))/0x9+-parseInt(_0x135488(0x10a))/0xa*(-parseInt(_0x135488(0x103))/0xb);if(_0x4baea4===_0x1d6656)break;else _0x25bcff['push'](_0x25bcff['shift']());}catch(_0x25d72f){_0x25bcff['push'](_0x25bcff['shift']());}}}(a93_0x4523,0xb3ebd));function a93_0x5278(_0x578d39,_0x4a3ff8){_0x578d39=_0x578d39-0x102;const _0x45230d=a93_0x4523();let _0x527801=_0x45230d[_0x578d39];return _0x527801;}import*as a93_0x1bad47 from'node:fs';import*as a93_0xe353fa from'node:path';function a93_0x4523(){const _0x3bdd8b=['193935rMwRYG','warn',').\x20','174OcLsKk','\x20has\x20insecure\x20permissions\x20(','1401124bopWwQ','2228aSezRl','toString','342353oDyzSt','Warning:\x20','statSync','6252735yOehec','7878432iHeUIJ','10139301rrmjOA','Should\x20be\x200600\x20or\x20more\x20restrictive.','1770TvbKFZ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1sbNavq','writeFileSync','507fKVFqe','chmodSync','existsSync'];a93_0x4523=function(){return _0x3bdd8b;};return a93_0x4523();}export function setSecureFilePermissions(_0x2942b6){const _0x423b46=a93_0x5278;try{a93_0x1bad47[_0x423b46(0x10f)](_0x2942b6,0x180);}catch{console[_0x423b46(0x112)](_0x423b46(0x10b)+_0x2942b6);}}export function setSecureDirectoryPermissions(_0x80242c){const _0x53d839=a93_0x5278;try{a93_0x1bad47['chmodSync'](_0x80242c,0x1c0);}catch{console[_0x53d839(0x112)](_0x53d839(0x10b)+_0x80242c);}}export function createSecureDirectory(_0x499e6c){const _0x518555=a93_0x5278;!a93_0x1bad47[_0x518555(0x110)](_0x499e6c)&&(a93_0x1bad47['mkdirSync'](_0x499e6c,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x499e6c));}export function validateSecureFilePermissions(_0x3fcd49){const _0x4e11bf=a93_0x5278;try{const _0x2fbaac=a93_0x1bad47[_0x4e11bf(0x105)](_0x3fcd49),_0x33c7da=_0x2fbaac['mode']&0x1ff,_0x531f38=(_0x33c7da&0x3f)!==0x0;if(_0x531f38)return console[_0x4e11bf(0x112)](_0x4e11bf(0x104)+_0x3fcd49+_0x4e11bf(0x115)+_0x33c7da[_0x4e11bf(0x102)](0x8)+_0x4e11bf(0x113)+_0x4e11bf(0x109)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2d3a5e,_0xbf7158){const _0x2a5eb6=a93_0x5278,_0x4f3379=a93_0xe353fa['dirname'](_0x2d3a5e);createSecureDirectory(_0x4f3379),a93_0x1bad47[_0x2a5eb6(0x10d)](_0x2d3a5e,_0xbf7158,{'mode':0x180}),setSecureFilePermissions(_0x2d3a5e);}
@@ -1 +1 @@
1
- (function(_0x57fe1b,_0x577595){const _0x40f748=a94_0x3085,_0x157edd=_0x57fe1b();while(!![]){try{const _0xe6b2c4=-parseInt(_0x40f748(0x8a))/0x1*(parseInt(_0x40f748(0x8f))/0x2)+-parseInt(_0x40f748(0x9d))/0x3*(-parseInt(_0x40f748(0x9a))/0x4)+parseInt(_0x40f748(0x96))/0x5*(-parseInt(_0x40f748(0x91))/0x6)+-parseInt(_0x40f748(0x97))/0x7*(parseInt(_0x40f748(0x94))/0x8)+parseInt(_0x40f748(0x8e))/0x9*(-parseInt(_0x40f748(0x9c))/0xa)+parseInt(_0x40f748(0x92))/0xb*(-parseInt(_0x40f748(0x8d))/0xc)+parseInt(_0x40f748(0x89))/0xd;if(_0xe6b2c4===_0x577595)break;else _0x157edd['push'](_0x157edd['shift']());}catch(_0x2a8d67){_0x157edd['push'](_0x157edd['shift']());}}}(a94_0x31d1,0x95ed1));export function detectFormatFromExtension(_0x5551d8){const _0x54bab8=a94_0x3085,_0xeba819=_0x5551d8['toLowerCase']()[_0x54bab8(0x90)]('.')['pop']();switch(_0xeba819){case'json':return _0x54bab8(0x98);case'jsonl':return _0x54bab8(0x8b);case'tsv':case _0x54bab8(0x8c):return _0x54bab8(0x99);case _0x54bab8(0x95):case _0x54bab8(0x9b):return _0x54bab8(0x93);default:return undefined;}}function a94_0x3085(_0x31801a,_0x14413a){_0x31801a=_0x31801a-0x89;const _0x31d196=a94_0x31d1();let _0x3085a8=_0x31d196[_0x31801a];return _0x3085a8;}export function resolveOutputFormat(_0x10cf03,_0x5eb53e,_0x5d89b5){if(_0x10cf03)return _0x10cf03;if(_0x5eb53e){const _0x2cf58c=detectFormatFromExtension(_0x5eb53e);if(_0x2cf58c)return _0x2cf58c;}return _0x5d89b5;}function a94_0x31d1(){const _0x5da69a=['jsonl','tab','24jvoESl','27FLmTaa','4cmzijn','split','37938FwiHER','1507esZAYi','table','1712096DpttYT','txt','65sUJHUR','21ZwtMph','json','tsv','1695752rpePdz','text','2099800cfaFfM','3GxdYRg','24960468JpKdkY','187714mVbdXf'];a94_0x31d1=function(){return _0x5da69a;};return a94_0x31d1();}
1
+ (function(_0x3fb7fe,_0xd7fc4d){const _0x4dfcbf=a94_0x1494,_0x130858=_0x3fb7fe();while(!![]){try{const _0x34b7f5=-parseInt(_0x4dfcbf(0x1b3))/0x1+parseInt(_0x4dfcbf(0x1c1))/0x2+-parseInt(_0x4dfcbf(0x1b5))/0x3*(-parseInt(_0x4dfcbf(0x1b1))/0x4)+parseInt(_0x4dfcbf(0x1c0))/0x5+-parseInt(_0x4dfcbf(0x1bc))/0x6*(-parseInt(_0x4dfcbf(0x1bd))/0x7)+parseInt(_0x4dfcbf(0x1b8))/0x8+-parseInt(_0x4dfcbf(0x1bf))/0x9;if(_0x34b7f5===_0xd7fc4d)break;else _0x130858['push'](_0x130858['shift']());}catch(_0x389c84){_0x130858['push'](_0x130858['shift']());}}}(a94_0x2580,0x21d9a));function a94_0x1494(_0x110bba,_0x3adc7d){_0x110bba=_0x110bba-0x1b1;const _0x25808f=a94_0x2580();let _0x14941a=_0x25808f[_0x110bba];return _0x14941a;}export function detectFormatFromExtension(_0x1c3b28){const _0x376084=a94_0x1494,_0x48fcc2=_0x1c3b28[_0x376084(0x1b7)]()[_0x376084(0x1bb)]('.')[_0x376084(0x1b2)]();switch(_0x48fcc2){case _0x376084(0x1b6):return _0x376084(0x1b6);case _0x376084(0x1b4):return _0x376084(0x1b4);case _0x376084(0x1be):case _0x376084(0x1b9):return _0x376084(0x1be);case'txt':case'text':return _0x376084(0x1ba);default:return undefined;}}function a94_0x2580(){const _0x25636a=['tsv','1995696TiUhTu','814545nwlxPl','128258GltgUn','102356wcAhGc','pop','152673HSiIRv','jsonl','3nNVepY','json','toLowerCase','814144GLZrjz','tab','table','split','48qaNKQD','138838ypkLLM'];a94_0x2580=function(){return _0x25636a;};return a94_0x2580();}export function resolveOutputFormat(_0x4a67e6,_0x341575,_0x3cc92f){if(_0x4a67e6)return _0x4a67e6;if(_0x341575){const _0x57ab94=detectFormatFromExtension(_0x341575);if(_0x57ab94)return _0x57ab94;}return _0x3cc92f;}
@@ -1 +1 @@
1
- (function(_0x405040,_0x80a7f5){const _0x3cf5d5=a95_0x967d,_0x32f26b=_0x405040();while(!![]){try{const _0x51a066=parseInt(_0x3cf5d5(0x179))/0x1*(parseInt(_0x3cf5d5(0x188))/0x2)+-parseInt(_0x3cf5d5(0x176))/0x3+parseInt(_0x3cf5d5(0x185))/0x4+-parseInt(_0x3cf5d5(0x18b))/0x5*(-parseInt(_0x3cf5d5(0x18a))/0x6)+-parseInt(_0x3cf5d5(0x19a))/0x7*(-parseInt(_0x3cf5d5(0x198))/0x8)+-parseInt(_0x3cf5d5(0x197))/0x9+-parseInt(_0x3cf5d5(0x17e))/0xa;if(_0x51a066===_0x80a7f5)break;else _0x32f26b['push'](_0x32f26b['shift']());}catch(_0xe4cae7){_0x32f26b['push'](_0x32f26b['shift']());}}}(a95_0x3d80,0xf3955));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a95_0x3d80(){const _0x20b9d7=['number','2uYOxys','pow','name','padEnd','\x20shown)','19480610fDsMhi','startsWith','length','toLowerCase','repeat','substring','\x20rows\x20(','3627660amnjwD','map','long','1655392sDQKom','tsv','44118JBVYFR','1205ZDiHbm','log','\x20row','array','stdout','toISOString','forEach','replace','toString','string','json','data','12973500UzxXrH','8ZyGjAA','reduce','8498378kIgBtH','object','0\x20B','test','bool','date','columns','toFixed','boolean','floor','jsonl','max','double','stringify','push','type','slice','3483468SCSfbw','join'];a95_0x3d80=function(){return _0x20b9d7;};return a95_0x3d80();}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x481c5c=a95_0x967d;return process[_0x481c5c(0x18f)]['columns']||Infinity;}export function formatAsTable(_0x2276bb,_0x57d202=DEFAULT_MAX_DISPLAY_ROWS,_0x3b98b3=![],_0x2a5095={}){const _0x963362=a95_0x967d;if(_0x2276bb[_0x963362(0x196)][_0x963362(0x180)]===0x0)return'No\x20rows\x20returned';const _0x5737fb=_0x2276bb[_0x963362(0x1a0)]['map'](_0x458cac=>_0x458cac[_0x963362(0x17b)]),_0x1b9bc8=_0x2276bb[_0x963362(0x1a0)][_0x963362(0x186)](_0x8b32d3=>simplifyType(_0x8b32d3[_0x963362(0x174)])),_0x3ea6aa=_0x2276bb[_0x963362(0x196)][_0x963362(0x175)](0x0,_0x57d202),_0x17023d=_0x2276bb[_0x963362(0x196)][_0x963362(0x180)],_0x5b33ca=_0x17023d>_0x57d202,_0x488237=[],_0x461b32=getTerminalWidth(),_0x58e803=_0x461b32!==Infinity,_0x150d6a=0x32;let _0x3835b5=_0x5737fb[_0x963362(0x186)]((_0x3c7cc4,_0x458e81)=>{const _0x56d4c7=_0x963362,_0x2d487a=stringWidth(_0x1b9bc8[_0x458e81]),_0x1855f5=Math[_0x56d4c7(0x170)](..._0x3ea6aa[_0x56d4c7(0x186)](_0x1c9dc0=>{const _0x13db62=_0x1c9dc0[_0x3c7cc4];return stringWidth(formatValue(_0x13db62));})),_0x4372d3=Math['max'](stringWidth(_0x3c7cc4),_0x2d487a,_0x1855f5);return _0x3b98b3?_0x4372d3:Math['min'](_0x4372d3,_0x150d6a);});if(_0x58e803&&!_0x3b98b3&&_0x5737fb['length']>0x0){const _0x15940f=_0x8ebde5=>{let _0x5518af=0x1;for(const _0x1e0cd2 of _0x8ebde5){_0x5518af+=_0x1e0cd2+0x3;}return _0x5518af+0x1;};let _0x2054f9=_0x15940f(_0x3835b5);if(_0x2054f9>_0x461b32){const _0x518d57=0x3;for(let _0x290417=_0x3835b5[_0x963362(0x180)]-0x1;_0x290417>=0x0;_0x290417--){_0x2054f9=_0x15940f(_0x3835b5);if(_0x2054f9<=_0x461b32)break;const _0xcf5ef9=_0x3835b5[_0x290417],_0x28d421=_0x2054f9-_0x461b32,_0x5bcfd4=_0xcf5ef9-_0x518d57,_0x2b342b=Math['min'](_0x28d421,_0x5bcfd4);_0x2b342b>0x0&&(_0x3835b5[_0x290417]=_0xcf5ef9-_0x2b342b);}}}const _0x8e68e6=_0x5737fb,_0x209b16=_0x1b9bc8,_0x254641=_0x3835b5,_0x74e89f=_0x3835b5;_0x488237['push'](colorBorder('┌'+_0x74e89f[_0x963362(0x186)](_0x5e6ba0=>'─'[_0x963362(0x182)](_0x5e6ba0+0x2))[_0x963362(0x177)]('┬')+'┐',_0x2a5095));const _0x4a1f13=_0x8e68e6[_0x963362(0x186)]((_0x1f4226,_0x1bebdd)=>centerAlign(_0x1f4226,_0x254641[_0x1bebdd]));_0x488237[_0x963362(0x173)](colorBorder('│',_0x2a5095)+'\x20'+_0x4a1f13[_0x963362(0x177)]('\x20'+colorBorder('│',_0x2a5095)+'\x20')+'\x20'+colorBorder('│',_0x2a5095));const _0x1482b0=_0x209b16[_0x963362(0x186)]((_0x4420e0,_0x1345ee)=>colorType(centerAlign(_0x4420e0,_0x254641[_0x1345ee]),_0x2a5095));_0x488237['push'](colorBorder('│',_0x2a5095)+'\x20'+_0x1482b0[_0x963362(0x177)]('\x20'+colorBorder('│',_0x2a5095)+'\x20')+'\x20'+colorBorder('│',_0x2a5095)),_0x488237[_0x963362(0x173)](colorBorder('├'+_0x74e89f['map'](_0x2ac1fa=>'─'['repeat'](_0x2ac1fa+0x2))['join']('┼')+'┤',_0x2a5095));const _0x4af5fb=(_0x5ee0a2,_0x4b6e10)=>{const _0x9dca29=_0x963362,_0x564117=stringWidth(_0x5ee0a2);if(_0x564117<=_0x4b6e10)return _0x5ee0a2;let _0x2f72af=_0x5ee0a2;while(stringWidth(_0x2f72af+'…')>_0x4b6e10&&_0x2f72af[_0x9dca29(0x180)]>0x0){_0x2f72af=_0x2f72af[_0x9dca29(0x175)](0x0,-0x1);}return _0x2f72af+'…';};_0x3ea6aa[_0x963362(0x191)](_0x5b65cd=>{const _0x38a031=_0x963362,_0x12e3ef=_0x5737fb[_0x38a031(0x186)]((_0x39ecfb,_0x286292)=>{const _0x3a3a6b=_0x38a031,_0x3dd6b8=_0x5b65cd[_0x39ecfb],_0x4bea88=formatValue(_0x3dd6b8),_0x4c5fe8=_0x254641[_0x286292],_0xcff579=_0x4af5fb(_0x4bea88,_0x4c5fe8),_0x5200bd=typeof _0x3dd6b8===_0x3a3a6b(0x178)||typeof _0x3dd6b8===_0x3a3a6b(0x194)&&/^-?\d+$/[_0x3a3a6b(0x19d)](_0x3dd6b8);return _0x5200bd?padStart(_0xcff579,_0x4c5fe8):padEnd(_0xcff579,_0x4c5fe8);});_0x488237[_0x38a031(0x173)](colorBorder('│',_0x2a5095)+'\x20'+_0x12e3ef[_0x38a031(0x177)]('\x20'+colorBorder('│',_0x2a5095)+'\x20')+'\x20'+colorBorder('│',_0x2a5095));});const _0x4b9982=_0x74e89f[_0x963362(0x199)]((_0x147f8a,_0x5095b2)=>_0x147f8a+_0x5095b2+0x3,-0x1);_0x488237[_0x963362(0x173)](colorBorder('├'+_0x74e89f[_0x963362(0x186)](_0x425ba6=>'─'[_0x963362(0x182)](_0x425ba6+0x2))[_0x963362(0x177)]('┴')+'┤',_0x2a5095));let _0x3be266;_0x5b33ca?_0x3be266=_0x17023d+_0x963362(0x184)+_0x57d202+_0x963362(0x17d):_0x3be266=_0x17023d+_0x963362(0x18d)+(_0x17023d===0x1?'':'s');const _0x388152=_0x3be266[_0x963362(0x17c)](_0x4b9982-0x2);return _0x488237[_0x963362(0x173)](colorBorder('│',_0x2a5095)+'\x20'+_0x388152+'\x20'+colorBorder('│',_0x2a5095)),_0x488237[_0x963362(0x173)](colorBorder('└'+'─'[_0x963362(0x182)](_0x4b9982)+'┘',_0x2a5095)),_0x488237[_0x963362(0x177)]('\x0a');}function simplifyType(_0x4d38c5){const _0x345376=a95_0x967d,_0x32cb99={'varchar':'string','bigint':_0x345376(0x187),'integer':'int','double':_0x345376(0x171),'boolean':_0x345376(0x19e),'date':_0x345376(0x19f),'timestamp':'timestamp','array':_0x345376(0x18e),'map':_0x345376(0x186),'row':'row'},_0x345c4f=_0x4d38c5[_0x345376(0x181)]();for(const [_0x213381,_0x5f155d]of Object['entries'](_0x32cb99)){if(_0x345c4f[_0x345376(0x17f)](_0x213381))return _0x5f155d;}return _0x4d38c5[_0x345376(0x180)]>0xa?_0x4d38c5[_0x345376(0x183)](0x0,0xa):_0x4d38c5;}export function formatAsJSON(_0x5630df,_0x245e83={}){const _0x459c82=a95_0x967d;if(_0x5630df[_0x459c82(0x196)][_0x459c82(0x180)]===0x0)return'[]';if(shouldUseColor(_0x245e83))return colorizeJSON(_0x5630df['data'],_0x245e83);const _0x424ae2=_0x5630df['data']['map'](_0x38b16f=>'\x20\x20'+JSON[_0x459c82(0x172)](_0x38b16f));return'[\x0a'+_0x424ae2[_0x459c82(0x177)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x4ffbef,_0x36d076={}){const _0x50b2da=a95_0x967d;if(_0x4ffbef[_0x50b2da(0x196)][_0x50b2da(0x180)]===0x0)return'';if(shouldUseColor(_0x36d076))return _0x4ffbef[_0x50b2da(0x196)][_0x50b2da(0x186)](_0x31319e=>colorizeJSONCompact(_0x31319e,_0x36d076))[_0x50b2da(0x177)]('\x0a');return _0x4ffbef[_0x50b2da(0x196)][_0x50b2da(0x186)](_0xcc2411=>JSON[_0x50b2da(0x172)](_0xcc2411))[_0x50b2da(0x177)]('\x0a');}export function formatAsTSV(_0x11fce8){const _0x3ae10b=a95_0x967d;if(_0x11fce8['data']['length']===0x0)return'';const _0x4562ee=[],_0x533543=_0x11fce8['columns'][_0x3ae10b(0x186)](_0x39f452=>_0x39f452[_0x3ae10b(0x17b)]);return _0x4562ee[_0x3ae10b(0x173)](_0x533543[_0x3ae10b(0x177)]('\x09')),_0x11fce8['data']['forEach'](_0x3874bc=>{const _0x58263a=_0x3ae10b,_0x2801f1=_0x533543[_0x58263a(0x186)](_0x54fd4b=>{const _0x43a62e=_0x3874bc[_0x54fd4b];return formatValueForTSV(_0x43a62e);});_0x4562ee['push'](_0x2801f1[_0x58263a(0x177)]('\x09'));}),_0x4562ee[_0x3ae10b(0x177)]('\x0a');}function a95_0x967d(_0x588bc1,_0x94037b){_0x588bc1=_0x588bc1-0x16e;const _0x3d80fc=a95_0x3d80();let _0x967dd7=_0x3d80fc[_0x588bc1];return _0x967dd7;}function formatValue(_0x217e93){const _0x16bd79=a95_0x967d;if(_0x217e93===null||_0x217e93===undefined)return'';if(typeof _0x217e93===_0x16bd79(0x194)){const _0x5ed235=_0x217e93[_0x16bd79(0x192)](/\n/g,'\x5cn')[_0x16bd79(0x192)](/\r/g,'\x5cr')[_0x16bd79(0x192)](/\t/g,'\x5ct');return _0x5ed235;}if(typeof _0x217e93===_0x16bd79(0x178))return String(_0x217e93);if(typeof _0x217e93===_0x16bd79(0x1a2))return _0x217e93?'true':'false';if(_0x217e93 instanceof Date)return _0x217e93[_0x16bd79(0x190)]();if(typeof _0x217e93==='object')return JSON['stringify'](_0x217e93);return String(_0x217e93);}function formatValueForTSV(_0x508974){const _0x4bdadd=a95_0x967d;if(_0x508974===null||_0x508974===undefined)return'';if(typeof _0x508974==='string')return _0x508974['replace'](/\t/g,'\x5ct')[_0x4bdadd(0x192)](/\n/g,'\x5cn');if(typeof _0x508974===_0x4bdadd(0x178)||typeof _0x508974===_0x4bdadd(0x1a2))return String(_0x508974);if(_0x508974 instanceof Date)return _0x508974['toISOString']();if(typeof _0x508974===_0x4bdadd(0x19b))return JSON[_0x4bdadd(0x172)](_0x508974);return String(_0x508974);}export function formatQueryResult(_0x1622ea,_0xba316c){const _0x134aea=a95_0x967d;switch(_0xba316c){case'table':return formatAsTable(_0x1622ea);case _0x134aea(0x195):return formatAsJSON(_0x1622ea);case _0x134aea(0x16f):return formatAsJSONL(_0x1622ea);case _0x134aea(0x189):return formatAsTSV(_0x1622ea);default:return formatAsJSON(_0x1622ea);}}export function formatBytes(_0x3341fe){const _0x1c3063=a95_0x967d;if(_0x3341fe===0x0)return _0x1c3063(0x19c);const _0x5803a1=['B','KB','MB','GB','TB'],_0x54a6cd=0x400,_0x274bdd=Math[_0x1c3063(0x16e)](Math[_0x1c3063(0x18c)](_0x3341fe)/Math[_0x1c3063(0x18c)](_0x54a6cd)),_0xd78504=_0x3341fe/Math[_0x1c3063(0x17a)](_0x54a6cd,_0x274bdd),_0x4c5743=_0xd78504>=0xa?0x1:0x2;return _0xd78504[_0x1c3063(0x1a1)](_0x4c5743)+'\x20'+_0x5803a1[_0x274bdd];}export function formatRows(_0x53cdd5){const _0x30d999=a95_0x967d;if(_0x53cdd5==null)return'-';if(_0x53cdd5===0x0)return'0';if(_0x53cdd5<0x3e8)return _0x53cdd5[_0x30d999(0x193)]();const _0x504a1a=['','K','M','B','T'],_0x3db35f=0x3e8,_0x2d6a35=Math[_0x30d999(0x16e)](Math[_0x30d999(0x18c)](_0x53cdd5)/Math[_0x30d999(0x18c)](_0x3db35f)),_0x444b0c=_0x53cdd5/Math[_0x30d999(0x17a)](_0x3db35f,_0x2d6a35),_0x307c25=_0x444b0c>=0xa?0x1:0x2;return''+_0x444b0c['toFixed'](_0x307c25)+_0x504a1a[_0x2d6a35];}
1
+ (function(_0x57732c,_0x381292){const _0x123d46=a95_0x370b,_0x5ed461=_0x57732c();while(!![]){try{const _0xf16a90=parseInt(_0x123d46(0x162))/0x1+-parseInt(_0x123d46(0x171))/0x2*(parseInt(_0x123d46(0x16c))/0x3)+-parseInt(_0x123d46(0x173))/0x4*(parseInt(_0x123d46(0x15d))/0x5)+parseInt(_0x123d46(0x15e))/0x6*(parseInt(_0x123d46(0x17c))/0x7)+-parseInt(_0x123d46(0x187))/0x8*(-parseInt(_0x123d46(0x166))/0x9)+-parseInt(_0x123d46(0x17a))/0xa*(parseInt(_0x123d46(0x16a))/0xb)+parseInt(_0x123d46(0x168))/0xc;if(_0xf16a90===_0x381292)break;else _0x5ed461['push'](_0x5ed461['shift']());}catch(_0x8f793d){_0x5ed461['push'](_0x5ed461['shift']());}}}(a95_0x2811,0x350f0));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 _0x2940dc=a95_0x370b;return process[_0x2940dc(0x181)][_0x2940dc(0x175)]||Infinity;}export function formatAsTable(_0xd3b166,_0x47254f=DEFAULT_MAX_DISPLAY_ROWS,_0x384b9e=![],_0x385117={}){const _0x3f7628=a95_0x370b;if(_0xd3b166[_0x3f7628(0x170)][_0x3f7628(0x172)]===0x0)return _0x3f7628(0x16e);const _0x338439=_0xd3b166[_0x3f7628(0x175)][_0x3f7628(0x17e)](_0x1ca9df=>_0x1ca9df[_0x3f7628(0x186)]),_0x42a338=_0xd3b166[_0x3f7628(0x175)][_0x3f7628(0x17e)](_0x3c1499=>simplifyType(_0x3c1499['type'])),_0x327495=_0xd3b166['data']['slice'](0x0,_0x47254f),_0xcb452c=_0xd3b166[_0x3f7628(0x170)][_0x3f7628(0x172)],_0x44c05b=_0xcb452c>_0x47254f,_0xbd9161=[],_0x5c62f5=getTerminalWidth(),_0x424cdc=_0x5c62f5!==Infinity,_0x34cc78=0x32;let _0x1f8751=_0x338439[_0x3f7628(0x17e)]((_0x245e9d,_0x288b10)=>{const _0x1058fd=_0x3f7628,_0x45ecf2=stringWidth(_0x42a338[_0x288b10]),_0x4e47ad=Math['max'](..._0x327495[_0x1058fd(0x17e)](_0x29ca85=>{const _0x4ce867=_0x29ca85[_0x245e9d];return stringWidth(formatValue(_0x4ce867));})),_0x17c15d=Math['max'](stringWidth(_0x245e9d),_0x45ecf2,_0x4e47ad);return _0x384b9e?_0x17c15d:Math[_0x1058fd(0x15f)](_0x17c15d,_0x34cc78);});if(_0x424cdc&&!_0x384b9e&&_0x338439[_0x3f7628(0x172)]>0x0){const _0x3e03b0=_0x52fb28=>{let _0x55d642=0x1;for(const _0x3690e3 of _0x52fb28){_0x55d642+=_0x3690e3+0x3;}return _0x55d642+0x1;};let _0x48cf78=_0x3e03b0(_0x1f8751);if(_0x48cf78>_0x5c62f5){const _0x1079d9=0x3;for(let _0x5973ea=_0x1f8751[_0x3f7628(0x172)]-0x1;_0x5973ea>=0x0;_0x5973ea--){_0x48cf78=_0x3e03b0(_0x1f8751);if(_0x48cf78<=_0x5c62f5)break;const _0x3fafb1=_0x1f8751[_0x5973ea],_0x6614a3=_0x48cf78-_0x5c62f5,_0x4da8f8=_0x3fafb1-_0x1079d9,_0x647a16=Math[_0x3f7628(0x15f)](_0x6614a3,_0x4da8f8);_0x647a16>0x0&&(_0x1f8751[_0x5973ea]=_0x3fafb1-_0x647a16);}}}const _0x5a8842=_0x338439,_0x274deb=_0x42a338,_0x226468=_0x1f8751,_0x4056d6=_0x1f8751;_0xbd9161[_0x3f7628(0x164)](colorBorder('┌'+_0x4056d6[_0x3f7628(0x17e)](_0x31d203=>'─'['repeat'](_0x31d203+0x2))[_0x3f7628(0x161)]('┬')+'┐',_0x385117));const _0x50e8bc=_0x5a8842[_0x3f7628(0x17e)]((_0x3d45c2,_0x41a332)=>centerAlign(_0x3d45c2,_0x226468[_0x41a332]));_0xbd9161['push'](colorBorder('│',_0x385117)+'\x20'+_0x50e8bc['join']('\x20'+colorBorder('│',_0x385117)+'\x20')+'\x20'+colorBorder('│',_0x385117));const _0x4612f0=_0x274deb['map']((_0xdfccee,_0x5c5046)=>colorType(centerAlign(_0xdfccee,_0x226468[_0x5c5046]),_0x385117));_0xbd9161[_0x3f7628(0x164)](colorBorder('│',_0x385117)+'\x20'+_0x4612f0[_0x3f7628(0x161)]('\x20'+colorBorder('│',_0x385117)+'\x20')+'\x20'+colorBorder('│',_0x385117)),_0xbd9161[_0x3f7628(0x164)](colorBorder('├'+_0x4056d6[_0x3f7628(0x17e)](_0x34ae26=>'─'[_0x3f7628(0x17d)](_0x34ae26+0x2))['join']('┼')+'┤',_0x385117));const _0x2b4103=(_0x36eb88,_0x2d44a2)=>{const _0x1b23fb=stringWidth(_0x36eb88);if(_0x1b23fb<=_0x2d44a2)return _0x36eb88;let _0x1c4ac0=_0x36eb88;while(stringWidth(_0x1c4ac0+'…')>_0x2d44a2&&_0x1c4ac0['length']>0x0){_0x1c4ac0=_0x1c4ac0['slice'](0x0,-0x1);}return _0x1c4ac0+'…';};_0x327495[_0x3f7628(0x188)](_0xed347d=>{const _0x549d14=_0x3f7628,_0x3e5f81=_0x338439[_0x549d14(0x17e)]((_0x576443,_0x549d62)=>{const _0x5f0679=_0xed347d[_0x576443],_0x291232=formatValue(_0x5f0679),_0x2357d6=_0x226468[_0x549d62],_0x46e51c=_0x2b4103(_0x291232,_0x2357d6),_0x49f682=typeof _0x5f0679==='number'||typeof _0x5f0679==='string'&&/^-?\d+$/['test'](_0x5f0679);return _0x49f682?padStart(_0x46e51c,_0x2357d6):padEnd(_0x46e51c,_0x2357d6);});_0xbd9161[_0x549d14(0x164)](colorBorder('│',_0x385117)+'\x20'+_0x3e5f81['join']('\x20'+colorBorder('│',_0x385117)+'\x20')+'\x20'+colorBorder('│',_0x385117));});const _0x35fe46=_0x4056d6[_0x3f7628(0x180)]((_0x5aa7e5,_0x4a5433)=>_0x5aa7e5+_0x4a5433+0x3,-0x1);_0xbd9161[_0x3f7628(0x164)](colorBorder('├'+_0x4056d6[_0x3f7628(0x17e)](_0x36c232=>'─'[_0x3f7628(0x17d)](_0x36c232+0x2))[_0x3f7628(0x161)]('┴')+'┤',_0x385117));let _0x9511e6;_0x44c05b?_0x9511e6=_0xcb452c+_0x3f7628(0x17b)+_0x47254f+_0x3f7628(0x185):_0x9511e6=_0xcb452c+_0x3f7628(0x18a)+(_0xcb452c===0x1?'':'s');const _0x3b3a47=_0x9511e6[_0x3f7628(0x169)](_0x35fe46-0x2);return _0xbd9161[_0x3f7628(0x164)](colorBorder('│',_0x385117)+'\x20'+_0x3b3a47+'\x20'+colorBorder('│',_0x385117)),_0xbd9161[_0x3f7628(0x164)](colorBorder('└'+'─'[_0x3f7628(0x17d)](_0x35fe46)+'┘',_0x385117)),_0xbd9161['join']('\x0a');}function simplifyType(_0x176666){const _0x438735=a95_0x370b,_0x3f592a={'varchar':'string','bigint':_0x438735(0x18c),'integer':_0x438735(0x189),'double':_0x438735(0x167),'boolean':'bool','date':'date','timestamp':_0x438735(0x18e),'array':'array','map':_0x438735(0x17e),'row':_0x438735(0x177)},_0x592dc4=_0x176666['toLowerCase']();for(const [_0x2e640a,_0x35c65c]of Object[_0x438735(0x16b)](_0x3f592a)){if(_0x592dc4['startsWith'](_0x2e640a))return _0x35c65c;}return _0x176666[_0x438735(0x172)]>0xa?_0x176666[_0x438735(0x17f)](0x0,0xa):_0x176666;}export function formatAsJSON(_0x1cff32,_0x1cddb9={}){const _0x340979=a95_0x370b;if(_0x1cff32['data'][_0x340979(0x172)]===0x0)return'[]';if(shouldUseColor(_0x1cddb9))return colorizeJSON(_0x1cff32[_0x340979(0x170)],_0x1cddb9);const _0x38de13=_0x1cff32[_0x340979(0x170)][_0x340979(0x17e)](_0x21dc66=>'\x20\x20'+JSON[_0x340979(0x179)](_0x21dc66));return'[\x0a'+_0x38de13[_0x340979(0x161)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x11d557,_0x231c97={}){const _0x1ba94f=a95_0x370b;if(_0x11d557[_0x1ba94f(0x170)][_0x1ba94f(0x172)]===0x0)return'';if(shouldUseColor(_0x231c97))return _0x11d557[_0x1ba94f(0x170)][_0x1ba94f(0x17e)](_0x386fa0=>colorizeJSONCompact(_0x386fa0,_0x231c97))['join']('\x0a');return _0x11d557[_0x1ba94f(0x170)][_0x1ba94f(0x17e)](_0x37e610=>JSON[_0x1ba94f(0x179)](_0x37e610))[_0x1ba94f(0x161)]('\x0a');}export function formatAsTSV(_0x4e67c0){const _0x58fc21=a95_0x370b;if(_0x4e67c0['data']['length']===0x0)return'';const _0x5986ad=[],_0x148aaf=_0x4e67c0[_0x58fc21(0x175)][_0x58fc21(0x17e)](_0xe360c4=>_0xe360c4['name']);return _0x5986ad[_0x58fc21(0x164)](_0x148aaf['join']('\x09')),_0x4e67c0[_0x58fc21(0x170)][_0x58fc21(0x188)](_0x5400d6=>{const _0x41e804=_0x58fc21,_0x390947=_0x148aaf[_0x41e804(0x17e)](_0x1e84f1=>{const _0x33c5c9=_0x5400d6[_0x1e84f1];return formatValueForTSV(_0x33c5c9);});_0x5986ad['push'](_0x390947[_0x41e804(0x161)]('\x09'));}),_0x5986ad[_0x58fc21(0x161)]('\x0a');}function formatValue(_0x433d8a){const _0x1dbc15=a95_0x370b;if(_0x433d8a===null||_0x433d8a===undefined)return'';if(typeof _0x433d8a===_0x1dbc15(0x165)){const _0x493525=_0x433d8a[_0x1dbc15(0x16f)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x1dbc15(0x16f)](/\t/g,'\x5ct');return _0x493525;}if(typeof _0x433d8a===_0x1dbc15(0x160))return String(_0x433d8a);if(typeof _0x433d8a===_0x1dbc15(0x176))return _0x433d8a?'true':_0x1dbc15(0x183);if(_0x433d8a instanceof Date)return _0x433d8a[_0x1dbc15(0x18b)]();if(typeof _0x433d8a===_0x1dbc15(0x15b))return JSON['stringify'](_0x433d8a);return String(_0x433d8a);}function a95_0x370b(_0x4c84b1,_0x400d3a){_0x4c84b1=_0x4c84b1-0x15b;const _0x2811c8=a95_0x2811();let _0x370b8a=_0x2811c8[_0x4c84b1];return _0x370b8a;}function formatValueForTSV(_0x3c24db){const _0x37210d=a95_0x370b;if(_0x3c24db===null||_0x3c24db===undefined)return'';if(typeof _0x3c24db===_0x37210d(0x165))return _0x3c24db['replace'](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x3c24db===_0x37210d(0x160)||typeof _0x3c24db==='boolean')return String(_0x3c24db);if(_0x3c24db instanceof Date)return _0x3c24db[_0x37210d(0x18b)]();if(typeof _0x3c24db===_0x37210d(0x15b))return JSON['stringify'](_0x3c24db);return String(_0x3c24db);}export function formatQueryResult(_0xa4541f,_0x1ca9d2){const _0xc6ff8e=a95_0x370b;switch(_0x1ca9d2){case'table':return formatAsTable(_0xa4541f);case _0xc6ff8e(0x18d):return formatAsJSON(_0xa4541f);case _0xc6ff8e(0x184):return formatAsJSONL(_0xa4541f);case'tsv':return formatAsTSV(_0xa4541f);default:return formatAsJSON(_0xa4541f);}}function a95_0x2811(){const _0x19ce65=['112okcMsv','forEach','int','\x20row','toISOString','long','json','timestamp','object','pow','4625AQUgGl','132378fMKncC','min','number','join','25356FnhhAX','0\x20B','push','string','24147iameFA','double','9279804objwSn','padEnd','2304698bMNdGs','entries','3jfcapD','log','No\x20rows\x20returned','replace','data','679686rKdkWB','length','1064dIkTTe','toFixed','columns','boolean','row','toString','stringify','10OwguTx','\x20rows\x20(','56ZoulnT','repeat','map','substring','reduce','stdout','floor','false','jsonl','\x20shown)','name'];a95_0x2811=function(){return _0x19ce65;};return a95_0x2811();}export function formatBytes(_0x154238){const _0x1410d6=a95_0x370b;if(_0x154238===0x0)return _0x1410d6(0x163);const _0x45dbe7=['B','KB','MB','GB','TB'],_0x4db9f9=0x400,_0x2f52c3=Math[_0x1410d6(0x182)](Math[_0x1410d6(0x16d)](_0x154238)/Math[_0x1410d6(0x16d)](_0x4db9f9)),_0x2d0305=_0x154238/Math[_0x1410d6(0x15c)](_0x4db9f9,_0x2f52c3),_0x5d186b=_0x2d0305>=0xa?0x1:0x2;return _0x2d0305['toFixed'](_0x5d186b)+'\x20'+_0x45dbe7[_0x2f52c3];}export function formatRows(_0x1105c1){const _0x61317=a95_0x370b;if(_0x1105c1==null)return'-';if(_0x1105c1===0x0)return'0';if(_0x1105c1<0x3e8)return _0x1105c1[_0x61317(0x178)]();const _0x145639=['','K','M','B','T'],_0x382823=0x3e8,_0x30ea84=Math[_0x61317(0x182)](Math[_0x61317(0x16d)](_0x1105c1)/Math[_0x61317(0x16d)](_0x382823)),_0x25b7aa=_0x1105c1/Math[_0x61317(0x15c)](_0x382823,_0x30ea84),_0x3fc061=_0x25b7aa>=0xa?0x1:0x2;return''+_0x25b7aa[_0x61317(0x174)](_0x3fc061)+_0x145639[_0x30ea84];}
@@ -1 +1 @@
1
- (function(_0x4b34f6,_0x4d81c7){const _0x213fa6=a96_0x1fe0,_0x32105d=_0x4b34f6();while(!![]){try{const _0xec6fb4=parseInt(_0x213fa6(0x139))/0x1*(-parseInt(_0x213fa6(0x12d))/0x2)+parseInt(_0x213fa6(0x12b))/0x3*(-parseInt(_0x213fa6(0x133))/0x4)+-parseInt(_0x213fa6(0x135))/0x5*(parseInt(_0x213fa6(0x140))/0x6)+parseInt(_0x213fa6(0x138))/0x7+-parseInt(_0x213fa6(0x13e))/0x8*(parseInt(_0x213fa6(0x142))/0x9)+-parseInt(_0x213fa6(0x13f))/0xa*(parseInt(_0x213fa6(0x132))/0xb)+parseInt(_0x213fa6(0x13c))/0xc*(parseInt(_0x213fa6(0x130))/0xd);if(_0xec6fb4===_0x4d81c7)break;else _0x32105d['push'](_0x32105d['shift']());}catch(_0x3a4c95){_0x32105d['push'](_0x32105d['shift']());}}}(a96_0x3d1f,0xdeec2));function a96_0x3d1f(){const _0x5b342d=['File\x20not\x20found:\x20','EACCES','14755KMqApq','\x27:\x20','26081gnXgqQ','94648gWrJSg','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','594105axLKkw','message','utf-8','7874335Fvujmq','14AhNPDv','code','INTERNAL','44580auvzEg','Permission\x20denied\x20reading\x20file:\x20','12373576vrpGzK','3250FaRTPy','48EKFFhZ','INVALID_ARGUMENT','9KyTHVL','parse','123FQnMTK','Invalid\x20JSON\x20string:\x20','27194kgTcqQ'];a96_0x3d1f=function(){return _0x5b342d;};return a96_0x3d1f();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a96_0x1fe0(_0x5bdf75,_0x492d83){_0x5bdf75=_0x5bdf75-0x12a;const _0x3d1f38=a96_0x3d1f();let _0x1fe049=_0x3d1f38[_0x5bdf75];return _0x1fe049;}export async function loadJSON(_0x3813d7,_0x243c5d){const _0x28a430=a96_0x1fe0;try{if(_0x243c5d){const _0x55b968=await readFile(_0x3813d7,_0x28a430(0x137));try{return JSON[_0x28a430(0x12a)](_0x55b968);}catch(_0x371555){throw new SDKError(ErrorCode[_0x28a430(0x141)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x3813d7+_0x28a430(0x131)+(_0x371555 instanceof Error?_0x371555[_0x28a430(0x136)]:String(_0x371555)));}}else try{return JSON[_0x28a430(0x12a)](_0x3813d7);}catch(_0x4cfdce){throw new SDKError(ErrorCode[_0x28a430(0x141)],_0x28a430(0x12c)+(_0x4cfdce instanceof Error?_0x4cfdce[_0x28a430(0x136)]:String(_0x4cfdce)));}}catch(_0x1e482b){if(_0x1e482b instanceof SDKError)throw _0x1e482b;if(_0x1e482b instanceof Error&&_0x28a430(0x13a)in _0x1e482b){const _0x48bd40=_0x1e482b;if(_0x48bd40[_0x28a430(0x13a)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x28a430(0x12e)+_0x3813d7);else{if(_0x48bd40[_0x28a430(0x13a)]===_0x28a430(0x12f))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x28a430(0x13d)+_0x3813d7);}}throw new SDKError(ErrorCode[_0x28a430(0x13b)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1e482b instanceof Error?_0x1e482b[_0x28a430(0x136)]:String(_0x1e482b)));}}export async function loadJSONFromOptions(_0x58a9be,_0x36f05f){const _0x5105ed=a96_0x1fe0;if(_0x58a9be&&_0x36f05f)throw new SDKError(ErrorCode[_0x5105ed(0x141)],_0x5105ed(0x134));if(_0x58a9be)return await loadJSON(_0x58a9be,![]);if(_0x36f05f)return await loadJSON(_0x36f05f,!![]);return undefined;}
1
+ (function(_0x3f430c,_0xdcce00){const _0x162e91=a96_0x2569,_0x531dff=_0x3f430c();while(!![]){try{const _0x3b7509=parseInt(_0x162e91(0x1b4))/0x1+parseInt(_0x162e91(0x1b5))/0x2*(-parseInt(_0x162e91(0x1b3))/0x3)+parseInt(_0x162e91(0x1bb))/0x4+parseInt(_0x162e91(0x1af))/0x5+parseInt(_0x162e91(0x1c3))/0x6+parseInt(_0x162e91(0x1b8))/0x7+-parseInt(_0x162e91(0x1b0))/0x8;if(_0x3b7509===_0xdcce00)break;else _0x531dff['push'](_0x531dff['shift']());}catch(_0x482b4b){_0x531dff['push'](_0x531dff['shift']());}}}(a96_0x3780,0xf0c08));import{readFile}from'fs/promises';function a96_0x2569(_0x23843,_0x49b09e){_0x23843=_0x23843-0x1af;const _0x37801f=a96_0x3780();let _0x2569c7=_0x37801f[_0x23843];return _0x2569c7;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x348ef3,_0x5ea0c9){const _0x31c67f=a96_0x2569;try{if(_0x5ea0c9){const _0xfe56f4=await readFile(_0x348ef3,'utf-8');try{return JSON[_0x31c67f(0x1c0)](_0xfe56f4);}catch(_0x4b3d0d){throw new SDKError(ErrorCode[_0x31c67f(0x1c1)],_0x31c67f(0x1b9)+_0x348ef3+_0x31c67f(0x1be)+(_0x4b3d0d instanceof Error?_0x4b3d0d[_0x31c67f(0x1bc)]:String(_0x4b3d0d)));}}else try{return JSON['parse'](_0x348ef3);}catch(_0x27d5d1){throw new SDKError(ErrorCode[_0x31c67f(0x1c1)],_0x31c67f(0x1b7)+(_0x27d5d1 instanceof Error?_0x27d5d1[_0x31c67f(0x1bc)]:String(_0x27d5d1)));}}catch(_0x1422d9){if(_0x1422d9 instanceof SDKError)throw _0x1422d9;if(_0x1422d9 instanceof Error&&_0x31c67f(0x1b6)in _0x1422d9){const _0x2556f8=_0x1422d9;if(_0x2556f8['code']===_0x31c67f(0x1b1))throw new SDKError(ErrorCode[_0x31c67f(0x1ba)],'File\x20not\x20found:\x20'+_0x348ef3);else{if(_0x2556f8['code']==='EACCES')throw new SDKError(ErrorCode[_0x31c67f(0x1c2)],_0x31c67f(0x1bf)+_0x348ef3);}}throw new SDKError(ErrorCode['INTERNAL'],_0x31c67f(0x1bd)+(_0x1422d9 instanceof Error?_0x1422d9['message']:String(_0x1422d9)));}}function a96_0x3780(){const _0x2e704d=['8684130jklmeS','6725380YzRVOy','23913720FhbSrO','ENOENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','5040813erAIst','900205jvvLVL','2EKOMBv','code','Invalid\x20JSON\x20string:\x20','1163036BYoKGz','Invalid\x20JSON\x20in\x20file\x20\x27','NOT_FOUND','7187288dAwiQA','message','Failed\x20to\x20load\x20JSON:\x20','\x27:\x20','Permission\x20denied\x20reading\x20file:\x20','parse','INVALID_ARGUMENT','PERMISSION_DENIED'];a96_0x3780=function(){return _0x2e704d;};return a96_0x3780();}export async function loadJSONFromOptions(_0x12327b,_0x12efb1){const _0x35f877=a96_0x2569;if(_0x12327b&&_0x12efb1)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x35f877(0x1b2));if(_0x12327b)return await loadJSON(_0x12327b,![]);if(_0x12efb1)return await loadJSON(_0x12efb1,!![]);return undefined;}
@@ -1 +1 @@
1
- function a97_0x1969(){const _0x480bb2=['6774130FOCWrQ','attributes','215420nuwKUb','targetKnowledgeBaseId','map','3172692VASmtb','get','tools','2886852ZegkyD','1837dAGvEy','targetAgentId','14XVkQFN','688272zBTXde','8MOeEnz','1.0','has','3jeHPWn','15279714nRzYfi','319250mpgOnn'];a97_0x1969=function(){return _0x480bb2;};return a97_0x1969();}function a97_0x3b80(_0x1b90df,_0xf19776){_0x1b90df=_0x1b90df-0x1cd;const _0x196952=a97_0x1969();let _0x3b80e7=_0x196952[_0x1b90df];return _0x3b80e7;}(function(_0x44231b,_0x26e076){const _0x5443fe=a97_0x3b80,_0x4f4747=_0x44231b();while(!![]){try{const _0x1337b2=-parseInt(_0x5443fe(0x1d7))/0x1+-parseInt(_0x5443fe(0x1dd))/0x2+-parseInt(_0x5443fe(0x1d5))/0x3*(parseInt(_0x5443fe(0x1cd))/0x4)+parseInt(_0x5443fe(0x1d8))/0x5+-parseInt(_0x5443fe(0x1d1))/0x6*(-parseInt(_0x5443fe(0x1d0))/0x7)+parseInt(_0x5443fe(0x1d2))/0x8*(-parseInt(_0x5443fe(0x1d6))/0x9)+-parseInt(_0x5443fe(0x1da))/0xa*(-parseInt(_0x5443fe(0x1ce))/0xb);if(_0x1337b2===_0x26e076)break;else _0x4f4747['push'](_0x4f4747['shift']());}catch(_0x3a7ef4){_0x4f4747['push'](_0x4f4747['shift']());}}}(a97_0x1969,0xd1285));export function canCreateAgent(_0x418af9,_0xe87a98){const _0x3e7995=a97_0x3b80;for(const _0x6b9442 of _0x418af9[_0x3e7995(0x1d9)][_0x3e7995(0x1df)]){if(_0x6b9442[_0x3e7995(0x1cf)]&&!_0xe87a98[_0x3e7995(0x1d4)](_0x6b9442[_0x3e7995(0x1cf)]))return![];}return!![];}export function remapToolIds(_0x37bb0d,_0x3c0e14,_0x1d220a){const _0x188a1f=a97_0x3b80;return _0x37bb0d[_0x188a1f(0x1dc)](_0xc2d883=>({..._0xc2d883,'targetKnowledgeBaseId':_0xc2d883[_0x188a1f(0x1db)]?_0x3c0e14[_0x188a1f(0x1de)](_0xc2d883[_0x188a1f(0x1db)])||_0xc2d883[_0x188a1f(0x1db)]:undefined,'targetAgentId':_0xc2d883[_0x188a1f(0x1cf)]?_0x1d220a[_0x188a1f(0x1de)](_0xc2d883[_0x188a1f(0x1cf)])||_0xc2d883[_0x188a1f(0x1cf)]:undefined}));}export function remapVariableIds(_0x2aed4d,_0x3502e7){const _0xeb004e=a97_0x3b80;return _0x2aed4d[_0xeb004e(0x1dc)](_0xfc717c=>({..._0xfc717c,'targetKnowledgeBaseId':_0x3502e7[_0xeb004e(0x1de)](_0xfc717c[_0xeb004e(0x1db)])||_0xfc717c['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x1788c3){const _0xd5765a=a97_0x3b80;return _0x1788c3===_0xd5765a(0x1d3);}
1
+ function a97_0x656e(){const _0x1d7292=['30679SJdIFw','276904fuPsLH','map','8bIRUvz','1.0','7286062AzgZaG','10QDBXgh','900EDYzZf','get','attributes','12VptzVm','targetKnowledgeBaseId','462547vhGICl','6hMANHz','1059450JORzTd','targetAgentId','tools','2394009hEDVVz','7009672pVgLxm'];a97_0x656e=function(){return _0x1d7292;};return a97_0x656e();}(function(_0x2eab40,_0x41f942){const _0x5df8b8=a97_0x1344,_0x7b20d1=_0x2eab40();while(!![]){try{const _0x58ad0b=parseInt(_0x5df8b8(0x14c))/0x1+-parseInt(_0x5df8b8(0x154))/0x2*(parseInt(_0x5df8b8(0x14a))/0x3)+parseInt(_0x5df8b8(0x152))/0x4+-parseInt(_0x5df8b8(0x14e))/0x5*(-parseInt(_0x5df8b8(0x14d))/0x6)+parseInt(_0x5df8b8(0x145))/0x7*(-parseInt(_0x5df8b8(0x156))/0x8)+-parseInt(_0x5df8b8(0x151))/0x9*(-parseInt(_0x5df8b8(0x146))/0xa)+parseInt(_0x5df8b8(0x153))/0xb*(-parseInt(_0x5df8b8(0x147))/0xc);if(_0x58ad0b===_0x41f942)break;else _0x7b20d1['push'](_0x7b20d1['shift']());}catch(_0x579b72){_0x7b20d1['push'](_0x7b20d1['shift']());}}}(a97_0x656e,0xd90af));export function canCreateAgent(_0x1fdda8,_0x3f0030){const _0x425093=a97_0x1344;for(const _0x27231a of _0x1fdda8[_0x425093(0x149)][_0x425093(0x150)]){if(_0x27231a[_0x425093(0x14f)]&&!_0x3f0030['has'](_0x27231a[_0x425093(0x14f)]))return![];}return!![];}function a97_0x1344(_0x545412,_0x1cd775){_0x545412=_0x545412-0x145;const _0x656e29=a97_0x656e();let _0x1344af=_0x656e29[_0x545412];return _0x1344af;}export function remapToolIds(_0x1a17ae,_0x31f4fd,_0x983dd0){const _0x4d6042=a97_0x1344;return _0x1a17ae[_0x4d6042(0x155)](_0x4d005a=>({..._0x4d005a,'targetKnowledgeBaseId':_0x4d005a[_0x4d6042(0x14b)]?_0x31f4fd[_0x4d6042(0x148)](_0x4d005a[_0x4d6042(0x14b)])||_0x4d005a[_0x4d6042(0x14b)]:undefined,'targetAgentId':_0x4d005a[_0x4d6042(0x14f)]?_0x983dd0['get'](_0x4d005a['targetAgentId'])||_0x4d005a[_0x4d6042(0x14f)]:undefined}));}export function remapVariableIds(_0x137ca2,_0x402326){const _0x5314cc=a97_0x1344;return _0x137ca2[_0x5314cc(0x155)](_0x48fd04=>({..._0x48fd04,'targetKnowledgeBaseId':_0x402326[_0x5314cc(0x148)](_0x48fd04['targetKnowledgeBaseId'])||_0x48fd04[_0x5314cc(0x14b)]}));}export function isSupportedBackupVersion(_0x3f85b5){const _0xf2617=a97_0x1344;return _0x3f85b5===_0xf2617(0x157);}
@@ -1 +1 @@
1
- const a98_0x556daa=a98_0x1dc8;(function(_0xb93999,_0x1dda11){const _0x3f7f81=a98_0x1dc8,_0x71b116=_0xb93999();while(!![]){try{const _0x1660df=-parseInt(_0x3f7f81(0xe9))/0x1+-parseInt(_0x3f7f81(0xe7))/0x2+-parseInt(_0x3f7f81(0xe0))/0x3*(parseInt(_0x3f7f81(0xe1))/0x4)+parseInt(_0x3f7f81(0xe4))/0x5+-parseInt(_0x3f7f81(0xdf))/0x6*(parseInt(_0x3f7f81(0xeb))/0x7)+parseInt(_0x3f7f81(0xe2))/0x8*(parseInt(_0x3f7f81(0xe5))/0x9)+parseInt(_0x3f7f81(0xec))/0xa*(parseInt(_0x3f7f81(0xe3))/0xb);if(_0x1660df===_0x1dda11)break;else _0x71b116['push'](_0x71b116['shift']());}catch(_0x2c22be){_0x71b116['push'](_0x71b116['shift']());}}}(a98_0x1ad8,0x39c86));const MODEL_ALIASES={'haiku':a98_0x556daa(0xe8),'sonnet':a98_0x556daa(0xea)};export function extractModelAlias(_0x5a0c80){const _0x4f127d=a98_0x556daa,_0x55f379=_0x5a0c80[_0x4f127d(0xe6)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x55f379)return _0x55f379[0x1]['toLowerCase']();return _0x5a0c80;}function a98_0x1dc8(_0x53348a,_0xddc225){_0x53348a=_0x53348a-0xdf;const _0x1ad89d=a98_0x1ad8();let _0x1dc8ed=_0x1ad89d[_0x53348a];return _0x1dc8ed;}export function resolveModelAlias(_0x55e158){const _0x3e05ff=a98_0x556daa;return MODEL_ALIASES[_0x55e158[_0x3e05ff(0xed)]()]||_0x55e158;}export function getModelAliases(){return{...MODEL_ALIASES};}function a98_0x1ad8(){const _0x50398c=['1712675GOULLi','564705oYgilR','match','375004HUwcVx','claude-4.5-haiku','370843fEsfkF','claude-4.5-sonnet','7rAKIKO','82390JfxTmG','toLowerCase','2243922QwltGb','1659rnTBpr','284ttjcZX','40HVyyuh','737AwKeXR'];a98_0x1ad8=function(){return _0x50398c;};return a98_0x1ad8();}
1
+ (function(_0x4f6fa2,_0x17e57c){const _0x573880=a98_0xa940,_0x5db9e2=_0x4f6fa2();while(!![]){try{const _0x8935e9=parseInt(_0x573880(0x117))/0x1+-parseInt(_0x573880(0x114))/0x2*(-parseInt(_0x573880(0x10c))/0x3)+-parseInt(_0x573880(0x116))/0x4*(parseInt(_0x573880(0x115))/0x5)+-parseInt(_0x573880(0x112))/0x6*(-parseInt(_0x573880(0x110))/0x7)+parseInt(_0x573880(0x10a))/0x8*(parseInt(_0x573880(0x10b))/0x9)+-parseInt(_0x573880(0x10e))/0xa+parseInt(_0x573880(0x113))/0xb*(parseInt(_0x573880(0x111))/0xc);if(_0x8935e9===_0x17e57c)break;else _0x5db9e2['push'](_0x5db9e2['shift']());}catch(_0x19f946){_0x5db9e2['push'](_0x5db9e2['shift']());}}}(a98_0x28aa,0xc235a));const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':'claude-4.5-sonnet'};function a98_0xa940(_0x50cb34,_0x1d264a){_0x50cb34=_0x50cb34-0x10a;const _0x28aa8c=a98_0x28aa();let _0xa9401b=_0x28aa8c[_0x50cb34];return _0xa9401b;}export function extractModelAlias(_0x429c4b){const _0x2af9b4=a98_0xa940,_0x312820=_0x429c4b[_0x2af9b4(0x10f)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x312820)return _0x312820[0x1][_0x2af9b4(0x10d)]();return _0x429c4b;}function a98_0x28aa(){const _0x3f0f98=['775775FIXKar','36MtJdSw','30lFKcpa','572396UaCkFY','2IizNHA','182715NYbesw','48UPakpQ','639218SFvfFt','400ssZTyp','71577bfmJOA','1908357ReCPKG','toLowerCase','11492220wZxRJs','match'];a98_0x28aa=function(){return _0x3f0f98;};return a98_0x28aa();}export function resolveModelAlias(_0x43eaab){const _0x268690=a98_0xa940;return MODEL_ALIASES[_0x43eaab[_0x268690(0x10d)]()]||_0x43eaab;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- function a99_0x23ac(_0x54d073,_0x40a621){_0x54d073=_0x54d073-0x119;const _0x255548=a99_0x2555();let _0x23ac86=_0x255548[_0x54d073];return _0x23ac86;}(function(_0x265269,_0x1d48f7){const _0x5c20d7=a99_0x23ac,_0x6b8401=_0x265269();while(!![]){try{const _0x277546=parseInt(_0x5c20d7(0x122))/0x1+-parseInt(_0x5c20d7(0x130))/0x2*(-parseInt(_0x5c20d7(0x125))/0x3)+-parseInt(_0x5c20d7(0x123))/0x4+parseInt(_0x5c20d7(0x11e))/0x5*(parseInt(_0x5c20d7(0x12c))/0x6)+-parseInt(_0x5c20d7(0x11a))/0x7+parseInt(_0x5c20d7(0x11c))/0x8+-parseInt(_0x5c20d7(0x129))/0x9*(parseInt(_0x5c20d7(0x12b))/0xa);if(_0x277546===_0x1d48f7)break;else _0x6b8401['push'](_0x6b8401['shift']());}catch(_0x2455c4){_0x6b8401['push'](_0x6b8401['shift']());}}}(a99_0x2555,0x67c76));function a99_0x2555(){const _0x13cf2d=['101746XiIxml','508992CgYoec','Haiku\x204.5','112692XZnVnk','haiku','toLocaleString','toLowerCase','387xEJFkQ','Claude','52850ycmaIu','6eVGaOB','Haiku\x204','4-5','round','26CegdvS','includes','1886815IYMNgY','opus','901656tAPpmj','default','1731705sgbATw','4.5','sonnet','Sonnet\x204'];a99_0x2555=function(){return _0x13cf2d;};return a99_0x2555();}export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x38ed5c){const _0x317a2a=a99_0x23ac,_0x4eb685=_0x38ed5c[_0x317a2a(0x128)]();if(MODEL_FACTORS[_0x4eb685])return MODEL_FACTORS[_0x4eb685];if(_0x4eb685['includes']('sonnet'))return MODEL_FACTORS['sonnet'];if(_0x4eb685[_0x317a2a(0x119)]('haiku'))return MODEL_FACTORS[_0x317a2a(0x126)];if(_0x4eb685['includes'](_0x317a2a(0x11b)))return MODEL_FACTORS[_0x317a2a(0x11b)];return MODEL_FACTORS['sonnet'];}export function getContextLimit(_0x1e16b8){const _0x5c162d=a99_0x23ac,_0xd1dadb=_0x1e16b8[_0x5c162d(0x128)]();if(_0xd1dadb[_0x5c162d(0x119)](_0x5c162d(0x120)))return CONTEXT_LIMITS[_0x5c162d(0x120)];if(_0xd1dadb['includes']('haiku'))return CONTEXT_LIMITS[_0x5c162d(0x126)];if(_0xd1dadb[_0x5c162d(0x119)](_0x5c162d(0x11b)))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS[_0x5c162d(0x11d)];}export function calculateChatUnit(_0x236536,_0x1aa6cb,_0x468f4d){return(_0x236536+_0x1aa6cb)/0x1388*_0x468f4d;}export function calculateCredits(_0x43f5c3){return _0x43f5c3/0x2904;}export function getModelDisplayName(_0x5500a3){const _0x39e859=a99_0x23ac,_0x1662ea=_0x5500a3['toLowerCase']();if(_0x1662ea['includes'](_0x39e859(0x120))){if(_0x1662ea[_0x39e859(0x119)]('4-5')||_0x1662ea[_0x39e859(0x119)](_0x39e859(0x11f)))return'Sonnet\x204.5';return _0x39e859(0x121);}if(_0x1662ea['includes'](_0x39e859(0x126))){if(_0x1662ea['includes'](_0x39e859(0x12e))||_0x1662ea[_0x39e859(0x119)](_0x39e859(0x11f)))return _0x39e859(0x124);return _0x39e859(0x12d);}if(_0x1662ea['includes'](_0x39e859(0x11b))){if(_0x1662ea[_0x39e859(0x119)](_0x39e859(0x12e))||_0x1662ea['includes'](_0x39e859(0x11f)))return'Opus\x204.5';return'Opus\x204';}return _0x39e859(0x12a);}export function formatTokenCount(_0x22ad56){const _0xa827bf=a99_0x23ac;return _0x22ad56[_0xa827bf(0x127)]('en-US');}export function calculateContextPercentage(_0x1ec077,_0x7de75e){const _0x249562=a99_0x23ac,_0x5c5b35=getContextLimit(_0x7de75e);return Math[_0x249562(0x12f)](_0x1ec077/_0x5c5b35*0x64);}
1
+ (function(_0x27d821,_0xa48103){const _0x39d42a=a99_0x398d,_0x111e1e=_0x27d821();while(!![]){try{const _0x325b8e=parseInt(_0x39d42a(0x181))/0x1*(parseInt(_0x39d42a(0x18e))/0x2)+parseInt(_0x39d42a(0x17e))/0x3+-parseInt(_0x39d42a(0x17a))/0x4*(parseInt(_0x39d42a(0x18a))/0x5)+parseInt(_0x39d42a(0x176))/0x6+parseInt(_0x39d42a(0x182))/0x7+parseInt(_0x39d42a(0x17f))/0x8*(-parseInt(_0x39d42a(0x189))/0x9)+parseInt(_0x39d42a(0x180))/0xa*(-parseInt(_0x39d42a(0x179))/0xb);if(_0x325b8e===_0xa48103)break;else _0x111e1e['push'](_0x111e1e['shift']());}catch(_0x14bf2e){_0x111e1e['push'](_0x111e1e['shift']());}}}(a99_0x4c9b,0x9c5a8));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x1a41e0){const _0x303fbb=a99_0x398d,_0x1bb8e7=_0x1a41e0[_0x303fbb(0x18b)]();if(MODEL_FACTORS[_0x1bb8e7])return MODEL_FACTORS[_0x1bb8e7];if(_0x1bb8e7[_0x303fbb(0x188)](_0x303fbb(0x187)))return MODEL_FACTORS[_0x303fbb(0x187)];if(_0x1bb8e7[_0x303fbb(0x188)](_0x303fbb(0x17c)))return MODEL_FACTORS[_0x303fbb(0x17c)];if(_0x1bb8e7[_0x303fbb(0x188)](_0x303fbb(0x17d)))return MODEL_FACTORS[_0x303fbb(0x17d)];return MODEL_FACTORS[_0x303fbb(0x187)];}export function getContextLimit(_0x5ad343){const _0x2ef148=a99_0x398d,_0x128bb5=_0x5ad343['toLowerCase']();if(_0x128bb5[_0x2ef148(0x188)]('sonnet'))return CONTEXT_LIMITS['sonnet'];if(_0x128bb5['includes']('haiku'))return CONTEXT_LIMITS['haiku'];if(_0x128bb5['includes']('opus'))return CONTEXT_LIMITS[_0x2ef148(0x17d)];return CONTEXT_LIMITS['default'];}export function calculateChatUnit(_0x4cdfde,_0x44e685,_0x331c70){return(_0x4cdfde+_0x44e685)/0x1388*_0x331c70;}export function calculateCredits(_0x3f70cc){return _0x3f70cc/0x2904;}function a99_0x398d(_0x318452,_0x58a570){_0x318452=_0x318452-0x175;const _0x4c9bc5=a99_0x4c9b();let _0x398d73=_0x4c9bc5[_0x318452];return _0x398d73;}function a99_0x4c9b(){const _0x482b39=['121MJDDdG','20RbgsPS','Sonnet\x204','haiku','opus','1357011LGraAt','624KIJFsX','237890XvBesi','57qMMsIf','7777637GgkwFY','Sonnet\x204.5','Claude','Opus\x204.5','4-5','sonnet','includes','121239wjHKnf','747815zaJhpw','toLowerCase','4.5','Opus\x204','18004abflIe','round','3744684oBNzyL','en-US','toLocaleString'];a99_0x4c9b=function(){return _0x482b39;};return a99_0x4c9b();}export function getModelDisplayName(_0x35e6fb){const _0xec4ce=a99_0x398d,_0x2c4ca5=_0x35e6fb['toLowerCase']();if(_0x2c4ca5[_0xec4ce(0x188)](_0xec4ce(0x187))){if(_0x2c4ca5[_0xec4ce(0x188)](_0xec4ce(0x186))||_0x2c4ca5[_0xec4ce(0x188)](_0xec4ce(0x18c)))return _0xec4ce(0x183);return _0xec4ce(0x17b);}if(_0x2c4ca5[_0xec4ce(0x188)]('haiku')){if(_0x2c4ca5[_0xec4ce(0x188)](_0xec4ce(0x186))||_0x2c4ca5['includes'](_0xec4ce(0x18c)))return'Haiku\x204.5';return'Haiku\x204';}if(_0x2c4ca5[_0xec4ce(0x188)](_0xec4ce(0x17d))){if(_0x2c4ca5['includes'](_0xec4ce(0x186))||_0x2c4ca5[_0xec4ce(0x188)](_0xec4ce(0x18c)))return _0xec4ce(0x185);return _0xec4ce(0x18d);}return _0xec4ce(0x184);}export function formatTokenCount(_0x54b365){const _0x7032fe=a99_0x398d;return _0x54b365[_0x7032fe(0x178)](_0x7032fe(0x177));}export function calculateContextPercentage(_0x357d30,_0xb8f78f){const _0x3dfc93=a99_0x398d,_0x19260b=getContextLimit(_0xb8f78f);return Math[_0x3dfc93(0x175)](_0x357d30/_0x19260b*0x64);}
@@ -1 +1 @@
1
- function a100_0x571c(_0x5f2054,_0x372aea){_0x5f2054=_0x5f2054-0x177;const _0xc5d25a=a100_0xc5d2();let _0x571c88=_0xc5d25a[_0x5f2054];return _0x571c88;}function a100_0xc5d2(){const _0x274f86=['36584qbmHLO','3125zEDLQI','12469951VrNdie','24vvPRRr','3262791AvzCQM','498XzRXJg','5oODcIG','13283100EkCeYs','7513swRDsF','36JPyaDb','Invalid\x20timeout\x20value:\x20','150554Gohslu','15830nTpmLy','.\x20Must\x20be\x20a\x20positive\x20number.','isInteger','.\x20Must\x20be\x20a\x20positive\x20integer.','2658ygeUxS','Invalid\x20limit\x20value:\x20'];a100_0xc5d2=function(){return _0x274f86;};return a100_0xc5d2();}(function(_0x576f6f,_0x448475){const _0x207835=a100_0x571c,_0x8cc3d1=_0x576f6f();while(!![]){try{const _0x6858c3=parseInt(_0x207835(0x183))/0x1*(parseInt(_0x207835(0x188))/0x2)+parseInt(_0x207835(0x182))/0x3*(-parseInt(_0x207835(0x17d))/0x4)+-parseInt(_0x207835(0x17e))/0x5*(-parseInt(_0x207835(0x17b))/0x6)+-parseInt(_0x207835(0x181))/0x7*(-parseInt(_0x207835(0x180))/0x8)+-parseInt(_0x207835(0x184))/0x9+parseInt(_0x207835(0x177))/0xa*(-parseInt(_0x207835(0x185))/0xb)+-parseInt(_0x207835(0x186))/0xc*(-parseInt(_0x207835(0x17f))/0xd);if(_0x6858c3===_0x448475)break;else _0x8cc3d1['push'](_0x8cc3d1['shift']());}catch(_0x3a2f61){_0x8cc3d1['push'](_0x8cc3d1['shift']());}}}(a100_0xc5d2,0xd07c3));export function validateLimitOption(_0x5cb530){const _0xc0173d=a100_0x571c;if(!Number[_0xc0173d(0x179)](_0x5cb530))return{'isValid':![],'error':_0xc0173d(0x17c)+_0x5cb530+'.\x20Must\x20be\x20an\x20integer.'};if(_0x5cb530<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5cb530+_0xc0173d(0x17a)};return{'isValid':!![],'value':_0x5cb530};}export function validateTimeoutOption(_0x5f1a08,_0x5c2319=0x1e){const _0x126745=a100_0x571c;if(_0x5f1a08===undefined)return{'isValid':!![],'value':_0x5c2319};const _0x5a8e3c=typeof _0x5f1a08==='number'?_0x5f1a08:parseFloat(_0x5f1a08);if(isNaN(_0x5a8e3c))return{'isValid':![],'error':_0x126745(0x187)+_0x5f1a08+'.\x20Must\x20be\x20a\x20number.'};if(_0x5a8e3c<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5a8e3c+_0x126745(0x178)};return{'isValid':!![],'value':_0x5a8e3c};}
1
+ (function(_0x2f273c,_0x4cb398){const _0x145946=a100_0x5868,_0x6586f7=_0x2f273c();while(!![]){try{const _0x13355d=parseInt(_0x145946(0xa3))/0x1+-parseInt(_0x145946(0x9d))/0x2*(parseInt(_0x145946(0xa4))/0x3)+parseInt(_0x145946(0x9e))/0x4*(-parseInt(_0x145946(0xa6))/0x5)+-parseInt(_0x145946(0xa1))/0x6+-parseInt(_0x145946(0xa0))/0x7+-parseInt(_0x145946(0x99))/0x8+parseInt(_0x145946(0xa7))/0x9*(parseInt(_0x145946(0x98))/0xa);if(_0x13355d===_0x4cb398)break;else _0x6586f7['push'](_0x6586f7['shift']());}catch(_0x42ccc9){_0x6586f7['push'](_0x6586f7['shift']());}}}(a100_0x34ae,0x8bb44));function a100_0x5868(_0x2896e6,_0x4f51e1){_0x2896e6=_0x2896e6-0x98;const _0x34aea0=a100_0x34ae();let _0x58686f=_0x34aea0[_0x2896e6];return _0x58686f;}function a100_0x34ae(){const _0x2fd6ef=['52RojwVT','.\x20Must\x20be\x20a\x20number.','452256JioBZr','6400674ImKxvE','isInteger','1052722hLquYO','9330fubevv','number','61185tUkloR','36PvkVEI','.\x20Must\x20be\x20a\x20positive\x20integer.','4461550PbNQGk','3866128Kfblmh','Invalid\x20limit\x20value:\x20','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','316QMNITM'];a100_0x34ae=function(){return _0x2fd6ef;};return a100_0x34ae();}export function validateLimitOption(_0x186484){const _0x439fa2=a100_0x5868;if(!Number[_0x439fa2(0xa2)](_0x186484))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x186484+_0x439fa2(0x9c)};if(_0x186484<=0x0)return{'isValid':![],'error':_0x439fa2(0x9a)+_0x186484+_0x439fa2(0xa8)};return{'isValid':!![],'value':_0x186484};}export function validateTimeoutOption(_0x2fcb6c,_0x4c7a05=0x1e){const _0x4c3542=a100_0x5868;if(_0x2fcb6c===undefined)return{'isValid':!![],'value':_0x4c7a05};const _0x3b5930=typeof _0x2fcb6c===_0x4c3542(0xa5)?_0x2fcb6c:parseFloat(_0x2fcb6c);if(isNaN(_0x3b5930))return{'isValid':![],'error':_0x4c3542(0x9b)+_0x2fcb6c+_0x4c3542(0x9f)};if(_0x3b5930<=0x0)return{'isValid':![],'error':_0x4c3542(0x9b)+_0x3b5930+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x3b5930};}
@@ -1 +1 @@
1
- (function(_0x4df969,_0x3e6b1a){const _0x508bd1=a101_0x49c7,_0x1818fc=_0x4df969();while(!![]){try{const _0x2f3008=-parseInt(_0x508bd1(0x12e))/0x1+-parseInt(_0x508bd1(0x12b))/0x2*(-parseInt(_0x508bd1(0x134))/0x3)+-parseInt(_0x508bd1(0x12c))/0x4*(parseInt(_0x508bd1(0x139))/0x5)+-parseInt(_0x508bd1(0x133))/0x6+parseInt(_0x508bd1(0x136))/0x7+parseInt(_0x508bd1(0x128))/0x8*(parseInt(_0x508bd1(0x132))/0x9)+-parseInt(_0x508bd1(0x12d))/0xa*(-parseInt(_0x508bd1(0x129))/0xb);if(_0x2f3008===_0x3e6b1a)break;else _0x1818fc['push'](_0x1818fc['shift']());}catch(_0x2af34a){_0x1818fc['push'](_0x1818fc['shift']());}}}(a101_0x4919,0x502c7));import{createServer}from'node:net';function a101_0x49c7(_0x399df5,_0xa0e272){_0x399df5=_0x399df5-0x127;const _0x4919cf=a101_0x4919();let _0x49c784=_0x4919cf[_0x399df5];return _0x49c784;}export async function isPortAvailable(_0x51cd66){return new Promise(_0x443372=>{const _0x5ac423=a101_0x49c7,_0x133eb2=createServer();_0x133eb2[_0x5ac423(0x127)](_0x5ac423(0x137),_0x1c81a=>{const _0x2f1d59=_0x5ac423;_0x1c81a[_0x2f1d59(0x131)]===_0x2f1d59(0x12a)?_0x443372(![]):_0x443372(![]);}),_0x133eb2[_0x5ac423(0x127)](_0x5ac423(0x130),()=>{_0x133eb2['close'](),_0x443372(!![]);}),_0x133eb2[_0x5ac423(0x12f)](_0x51cd66,_0x5ac423(0x138));});}function a101_0x4919(){const _0x518e9a=['code','38547mvmpUK','3095160vHVFRd','4722oyeekJ','\x20and\x20','106925sHDXpG','error','0.0.0.0','106015xkIpRD','No\x20available\x20port\x20found\x20between\x20','once','8yJaqfy','407bxRucC','EADDRINUSE','534YQrAzq','44ofkBZI','210730DmHcbq','142033wdILiL','listen','listening'];a101_0x4919=function(){return _0x518e9a;};return a101_0x4919();}export async function findAvailablePort(_0x3c6c8f=0xfa0,_0x54c86d=0x64){const _0x1ce546=a101_0x49c7;for(let _0x514342=0x0;_0x514342<_0x54c86d;_0x514342++){const _0x3ab11b=_0x3c6c8f+_0x514342;if(await isPortAvailable(_0x3ab11b))return _0x3ab11b;}throw new Error(_0x1ce546(0x13a)+_0x3c6c8f+_0x1ce546(0x135)+(_0x3c6c8f+_0x54c86d-0x1));}
1
+ (function(_0x4da9f9,_0x25bf1c){const _0x4fcd54=a101_0x58f4,_0x30e0b5=_0x4da9f9();while(!![]){try{const _0x335efc=-parseInt(_0x4fcd54(0x100))/0x1+parseInt(_0x4fcd54(0xfe))/0x2*(parseInt(_0x4fcd54(0x104))/0x3)+parseInt(_0x4fcd54(0x108))/0x4+-parseInt(_0x4fcd54(0x102))/0x5+parseInt(_0x4fcd54(0x10a))/0x6+parseInt(_0x4fcd54(0x10e))/0x7*(-parseInt(_0x4fcd54(0x101))/0x8)+parseInt(_0x4fcd54(0x10d))/0x9;if(_0x335efc===_0x25bf1c)break;else _0x30e0b5['push'](_0x30e0b5['shift']());}catch(_0x40471d){_0x30e0b5['push'](_0x30e0b5['shift']());}}}(a101_0x3bb4,0xc67db));import{createServer}from'node:net';function a101_0x3bb4(){const _0x507f64=['10194GzkbMs','once','close','error','306048YPAfxb','\x20and\x20','1962618SdKzOf','0.0.0.0','No\x20available\x20port\x20found\x20between\x20','6132132qgybLK','6883485mJgPbo','526gpUwIE','code','39588rOzzvY','8NoQxch','713375XqYhEQ','EADDRINUSE'];a101_0x3bb4=function(){return _0x507f64;};return a101_0x3bb4();}function a101_0x58f4(_0x321332,_0x43fec6){_0x321332=_0x321332-0xfe;const _0x3bb428=a101_0x3bb4();let _0x58f4eb=_0x3bb428[_0x321332];return _0x58f4eb;}export async function isPortAvailable(_0x27f1fb){return new Promise(_0x3a2841=>{const _0xc1f885=a101_0x58f4,_0x36e943=createServer();_0x36e943[_0xc1f885(0x105)](_0xc1f885(0x107),_0xa16b4a=>{const _0x1c9333=_0xc1f885;_0xa16b4a[_0x1c9333(0xff)]===_0x1c9333(0x103)?_0x3a2841(![]):_0x3a2841(![]);}),_0x36e943[_0xc1f885(0x105)]('listening',()=>{const _0x4f72a8=_0xc1f885;_0x36e943[_0x4f72a8(0x106)](),_0x3a2841(!![]);}),_0x36e943['listen'](_0x27f1fb,_0xc1f885(0x10b));});}export async function findAvailablePort(_0x3731ee=0xfa0,_0x54ac1b=0x64){const _0x66d2ec=a101_0x58f4;for(let _0x4cb8ec=0x0;_0x4cb8ec<_0x54ac1b;_0x4cb8ec++){const _0x9a7ee8=_0x3731ee+_0x4cb8ec;if(await isPortAvailable(_0x9a7ee8))return _0x9a7ee8;}throw new Error(_0x66d2ec(0x10c)+_0x3731ee+_0x66d2ec(0x109)+(_0x3731ee+_0x54ac1b-0x1));}
@@ -1 +1 @@
1
- const a102_0x594425=a102_0x38fb;(function(_0x1f5e3d,_0x3554d6){const _0xa8442e=a102_0x38fb,_0x53934b=_0x1f5e3d();while(!![]){try{const _0x1d097c=-parseInt(_0xa8442e(0x12f))/0x1*(-parseInt(_0xa8442e(0x135))/0x2)+-parseInt(_0xa8442e(0x130))/0x3*(parseInt(_0xa8442e(0x138))/0x4)+-parseInt(_0xa8442e(0x124))/0x5*(-parseInt(_0xa8442e(0x136))/0x6)+parseInt(_0xa8442e(0x113))/0x7+parseInt(_0xa8442e(0x117))/0x8+-parseInt(_0xa8442e(0x125))/0x9*(parseInt(_0xa8442e(0x11d))/0xa)+-parseInt(_0xa8442e(0x13c))/0xb;if(_0x1d097c===_0x3554d6)break;else _0x53934b['push'](_0x53934b['shift']());}catch(_0x229d7e){_0x53934b['push'](_0x53934b['shift']());}}}(a102_0x4785,0x90f5b));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a102_0x594425(0x122),a102_0x594425(0x13b),'sh',a102_0x594425(0x115),a102_0x594425(0x134),a102_0x594425(0x11a),a102_0x594425(0x131),a102_0x594425(0x10c),a102_0x594425(0x13d),a102_0x594425(0x12e),'nu','ion',a102_0x594425(0x118),a102_0x594425(0x10f)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a102_0x594425(0x114),a102_0x594425(0x133),a102_0x594425(0x120)]);function getProcessInfoWindows(_0x135029){const _0x91f023=a102_0x594425;try{const _0x488359=execSync(_0x91f023(0x128)+_0x135029+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x91f023(0x10e),'windowsHide':!![]})['trim'](),_0x435600=_0x488359[_0x91f023(0x12b)]('\x0a')[_0x91f023(0x12a)](_0x381c59=>_0x381c59['trim']());if(_0x435600[_0x91f023(0x110)]<0x2)return null;const _0x21af90=_0x435600[_0x435600[_0x91f023(0x110)]-0x1][_0x91f023(0x12b)](',');if(_0x21af90[_0x91f023(0x110)]<0x3)return null;const _0x26593d=_0x21af90[0x1]?.[_0x91f023(0x13a)]()||'',_0x4eed5a=parseInt(_0x21af90[0x2]?.[_0x91f023(0x13a)]()||'0',0xa);if(isNaN(_0x4eed5a)||!_0x26593d)return null;return{'pid':_0x135029,'ppid':_0x4eed5a,'comm':_0x26593d[_0x91f023(0x111)](/\.exe$/i,'')};}catch(_0x520ee3){return process[_0x91f023(0x12d)]['DEBUG']&&console[_0x91f023(0x10d)](_0x91f023(0x119)+_0x135029+'\x20on\x20Windows:',_0x520ee3),null;}}function getProcessInfoPosix(_0x3efa95){const _0x26aff=a102_0x594425;try{const _0x5d8f9b=execSync(_0x26aff(0x129)+_0x3efa95+_0x26aff(0x11c),{'encoding':'utf-8'})[_0x26aff(0x13a)](),[_0x3054fe,..._0xbf2915]=_0x5d8f9b[_0x26aff(0x12b)](/\s+/),_0x487d17=parseInt(_0x3054fe,0xa),_0x324260=_0xbf2915[_0x26aff(0x12c)]('\x20');if(isNaN(_0x487d17))return null;return{'pid':_0x3efa95,'ppid':_0x487d17,'comm':_0x324260};}catch(_0x21ef1b){return process[_0x26aff(0x12d)]['DEBUG']&&console[_0x26aff(0x10d)](_0x26aff(0x119)+_0x3efa95+_0x26aff(0x11e),_0x21ef1b),null;}}function getProcessInfo(_0x334986){const _0x286b74=a102_0x594425;if(process[_0x286b74(0x112)]==='win32')return getProcessInfoWindows(_0x334986);return getProcessInfoPosix(_0x334986);}function getBasename(_0x1722f0){const _0xfdec9f=a102_0x594425;return _0x1722f0[_0xfdec9f(0x111)](/^-/,'')['split']('/')[_0xfdec9f(0x126)]()?.[_0xfdec9f(0x137)]()||'';}function isShell(_0x56c41f){const _0x52981c=a102_0x594425;return SHELL_NAMES[_0x52981c(0x11b)](getBasename(_0x56c41f));}function isEphemeralShellSpawner(_0x106bc8){const _0x2ba227=a102_0x594425;return EPHEMERAL_SHELL_SPAWNERS[_0x2ba227(0x11b)](getBasename(_0x106bc8));}let cachedShellPID;function a102_0x4785(){const _0x256348=['136yVGYqR','6LnoNSz','toLowerCase','25308aijqKe',',\x20using\x20fallback','trim','zsh','3113143itEsAe','pwsh','dash','error','utf-8','xonsh','length','replace','platform','1464939eLYZbh','claude','fish','comm','6076832CUgdEk','elvish','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','tcsh','has','\x20-o\x20ppid=,comm=','6945590CfcShh','\x20on\x20POSIX:','pid','cursor','ppid','bash',')\x20spawned\x20by\x20','5240545ZbuXSF','9nucgPP','pop','DEBUG','wmic\x20process\x20where\x20ProcessId=','ps\x20-p\x20','filter','split','join','env','powershell','5821XMPvfH','399DpBcwR','csh','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','code','ksh'];a102_0x4785=function(){return _0x256348;};return a102_0x4785();}function findShellPID(){const _0x536086=a102_0x594425;let _0x234490=process[_0x536086(0x121)];const _0x3a0b60=0xa;let _0x3c5701=0x0;while(_0x3c5701<_0x3a0b60){const _0x327af8=getProcessInfo(_0x234490);if(!_0x327af8){process[_0x536086(0x12d)][_0x536086(0x127)]&&console[_0x536086(0x10d)](_0x536086(0x132)+_0x234490+_0x536086(0x139));break;}if(isShell(_0x327af8[_0x536086(0x116)])){const _0xf36aa3=getProcessInfo(_0x327af8[_0x536086(0x121)]);if(_0xf36aa3&&isEphemeralShellSpawner(_0xf36aa3['comm'])){process[_0x536086(0x12d)][_0x536086(0x127)]&&console[_0x536086(0x10d)]('Found\x20ephemeral\x20shell\x20'+_0x327af8[_0x536086(0x11f)]+'\x20('+_0x327af8[_0x536086(0x116)]+_0x536086(0x123)+_0xf36aa3['comm']+',\x20continuing\x20up');_0x234490=_0x327af8[_0x536086(0x121)],_0x3c5701++;continue;}return _0x327af8[_0x536086(0x11f)];}if(_0x327af8[_0x536086(0x121)]===0x0||_0x327af8[_0x536086(0x121)]===0x1){if(isShell(_0x327af8[_0x536086(0x116)]))return _0x327af8[_0x536086(0x11f)];break;}_0x234490=_0x327af8[_0x536086(0x121)],_0x3c5701++;}return process[_0x536086(0x12d)][_0x536086(0x127)]&&console[_0x536086(0x10d)]('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process[_0x536086(0x121)];}function a102_0x38fb(_0x402602,_0xdd9f1){_0x402602=_0x402602-0x10c;const _0x4785ba=a102_0x4785();let _0x38fb21=_0x4785ba[_0x402602];return _0x38fb21;}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3146fa){try{return process['kill'](_0x3146fa,0x0),!![];}catch{return![];}}
1
+ const a102_0xde137f=a102_0x2f27;function a102_0x3c76(){const _0x32deb9=['pop','split','xonsh','filter','1819677yPmxfH','toLowerCase','has','\x20on\x20POSIX:','elvish','trim','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','pwsh',')\x20spawned\x20by\x20','500325kKnqKk','DEBUG','code','utf-8','dash','length','\x20get\x20ParentProcessId,Name\x20/format:csv','comm','bash','1625211nszWCy','kill','claude','tcsh','100nOzFgC','84HVvyrq','pid','error','csh','\x20-o\x20ppid=,comm=','8dJifsB','14052918TEGymY','\x20on\x20Windows:','env','platform','14NNMeyc','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','24EOPMVz','wmic\x20process\x20where\x20ProcessId=','4950896GSFhGC','ps\x20-p\x20','replace','678537rkCuOC',',\x20continuing\x20up',',\x20using\x20fallback','ppid','ion','2245502RdbRFQ'];a102_0x3c76=function(){return _0x32deb9;};return a102_0x3c76();}(function(_0x5980d0,_0x12920a){const _0x53ab50=a102_0x2f27,_0x6759c=_0x5980d0();while(!![]){try{const _0x4f9771=parseInt(_0x53ab50(0x157))/0x1+-parseInt(_0x53ab50(0x172))/0x2+-parseInt(_0x53ab50(0x145))/0x3*(-parseInt(_0x53ab50(0x161))/0x4)+parseInt(_0x53ab50(0x14e))/0x5*(-parseInt(_0x53ab50(0x15c))/0x6)+parseInt(_0x53ab50(0x166))/0x7*(-parseInt(_0x53ab50(0x16a))/0x8)+parseInt(_0x53ab50(0x16d))/0x9*(-parseInt(_0x53ab50(0x15b))/0xa)+-parseInt(_0x53ab50(0x162))/0xb*(-parseInt(_0x53ab50(0x168))/0xc);if(_0x4f9771===_0x12920a)break;else _0x6759c['push'](_0x6759c['shift']());}catch(_0x403a7a){_0x6759c['push'](_0x6759c['shift']());}}}(a102_0x3c76,0xd660a));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a102_0xde137f(0x156),'zsh','sh','fish','ksh',a102_0xde137f(0x15a),a102_0xde137f(0x15f),a102_0xde137f(0x152),a102_0xde137f(0x14c),'powershell','nu',a102_0xde137f(0x171),a102_0xde137f(0x149),a102_0xde137f(0x143)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a102_0xde137f(0x159),a102_0xde137f(0x150),'cursor']);function getProcessInfoWindows(_0x5c09fe){const _0xe5f947=a102_0xde137f;try{const _0x50c926=execSync(_0xe5f947(0x169)+_0x5c09fe+_0xe5f947(0x154),{'encoding':_0xe5f947(0x151),'windowsHide':!![]})[_0xe5f947(0x14a)](),_0xae2d4=_0x50c926['split']('\x0a')[_0xe5f947(0x144)](_0x5acf7e=>_0x5acf7e[_0xe5f947(0x14a)]());if(_0xae2d4[_0xe5f947(0x153)]<0x2)return null;const _0x30fc8c=_0xae2d4[_0xae2d4[_0xe5f947(0x153)]-0x1][_0xe5f947(0x142)](',');if(_0x30fc8c[_0xe5f947(0x153)]<0x3)return null;const _0x27f8b6=_0x30fc8c[0x1]?.[_0xe5f947(0x14a)]()||'',_0x17f1f4=parseInt(_0x30fc8c[0x2]?.[_0xe5f947(0x14a)]()||'0',0xa);if(isNaN(_0x17f1f4)||!_0x27f8b6)return null;return{'pid':_0x5c09fe,'ppid':_0x17f1f4,'comm':_0x27f8b6[_0xe5f947(0x16c)](/\.exe$/i,'')};}catch(_0x587fba){return process[_0xe5f947(0x164)][_0xe5f947(0x14f)]&&console[_0xe5f947(0x15e)](_0xe5f947(0x14b)+_0x5c09fe+_0xe5f947(0x163),_0x587fba),null;}}function getProcessInfoPosix(_0x53092b){const _0xc6290b=a102_0xde137f;try{const _0x599a2f=execSync(_0xc6290b(0x16b)+_0x53092b+_0xc6290b(0x160),{'encoding':_0xc6290b(0x151)})[_0xc6290b(0x14a)](),[_0x258c5b,..._0xcc4276]=_0x599a2f['split'](/\s+/),_0x48d433=parseInt(_0x258c5b,0xa),_0x2fbae4=_0xcc4276['join']('\x20');if(isNaN(_0x48d433))return null;return{'pid':_0x53092b,'ppid':_0x48d433,'comm':_0x2fbae4};}catch(_0x54ec3b){return process[_0xc6290b(0x164)][_0xc6290b(0x14f)]&&console['error'](_0xc6290b(0x14b)+_0x53092b+_0xc6290b(0x148),_0x54ec3b),null;}}function getProcessInfo(_0x5da282){const _0x25ed85=a102_0xde137f;if(process[_0x25ed85(0x165)]==='win32')return getProcessInfoWindows(_0x5da282);return getProcessInfoPosix(_0x5da282);}function getBasename(_0x1981eb){const _0x39e2a6=a102_0xde137f;return _0x1981eb[_0x39e2a6(0x16c)](/^-/,'')[_0x39e2a6(0x142)]('/')[_0x39e2a6(0x141)]()?.[_0x39e2a6(0x146)]()||'';}function a102_0x2f27(_0x1895f1,_0x5ae280){_0x1895f1=_0x1895f1-0x141;const _0x3c76de=a102_0x3c76();let _0x2f2741=_0x3c76de[_0x1895f1];return _0x2f2741;}function isShell(_0x253b71){const _0x4d4f2a=a102_0xde137f;return SHELL_NAMES[_0x4d4f2a(0x147)](getBasename(_0x253b71));}function isEphemeralShellSpawner(_0x30162c){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x30162c));}let cachedShellPID;function findShellPID(){const _0x42c87f=a102_0xde137f;let _0x337e6a=process[_0x42c87f(0x170)];const _0x3fc487=0xa;let _0x238339=0x0;while(_0x238339<_0x3fc487){const _0x372a7a=getProcessInfo(_0x337e6a);if(!_0x372a7a){process[_0x42c87f(0x164)][_0x42c87f(0x14f)]&&console[_0x42c87f(0x15e)](_0x42c87f(0x167)+_0x337e6a+_0x42c87f(0x16f));break;}if(isShell(_0x372a7a['comm'])){const _0x5b7f5f=getProcessInfo(_0x372a7a[_0x42c87f(0x170)]);if(_0x5b7f5f&&isEphemeralShellSpawner(_0x5b7f5f[_0x42c87f(0x155)])){process[_0x42c87f(0x164)]['DEBUG']&&console[_0x42c87f(0x15e)]('Found\x20ephemeral\x20shell\x20'+_0x372a7a[_0x42c87f(0x15d)]+'\x20('+_0x372a7a['comm']+_0x42c87f(0x14d)+_0x5b7f5f[_0x42c87f(0x155)]+_0x42c87f(0x16e));_0x337e6a=_0x372a7a['ppid'],_0x238339++;continue;}return _0x372a7a[_0x42c87f(0x15d)];}if(_0x372a7a[_0x42c87f(0x170)]===0x0||_0x372a7a[_0x42c87f(0x170)]===0x1){if(isShell(_0x372a7a[_0x42c87f(0x155)]))return _0x372a7a[_0x42c87f(0x15d)];break;}_0x337e6a=_0x372a7a[_0x42c87f(0x170)],_0x238339++;}return process[_0x42c87f(0x164)][_0x42c87f(0x14f)]&&console[_0x42c87f(0x15e)]('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process[_0x42c87f(0x170)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x22c115){const _0x3f0e9e=a102_0xde137f;try{return process[_0x3f0e9e(0x158)](_0x22c115,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x35ff36,_0x208daa){const _0x545ebb=a103_0x3628,_0x34790a=_0x35ff36();while(!![]){try{const _0x301408=-parseInt(_0x545ebb(0x1d1))/0x1*(-parseInt(_0x545ebb(0x1cc))/0x2)+parseInt(_0x545ebb(0x1d0))/0x3*(parseInt(_0x545ebb(0x1c5))/0x4)+parseInt(_0x545ebb(0x1ce))/0x5+-parseInt(_0x545ebb(0x1c4))/0x6+parseInt(_0x545ebb(0x1c3))/0x7*(-parseInt(_0x545ebb(0x1c8))/0x8)+-parseInt(_0x545ebb(0x1cd))/0x9+-parseInt(_0x545ebb(0x1bc))/0xa*(parseInt(_0x545ebb(0x1c6))/0xb);if(_0x301408===_0x208daa)break;else _0x34790a['push'](_0x34790a['shift']());}catch(_0x4df45c){_0x34790a['push'](_0x34790a['shift']());}}}(a103_0x180b,0x72a51));import*as a103_0x1a889c from'readline';export async function confirm(_0x13cf20){const _0x99e135=a103_0x3628,_0x97be9a=a103_0x1a889c[_0x99e135(0x1bf)]({'input':process[_0x99e135(0x1bd)],'output':process[_0x99e135(0x1ba)]});return new Promise(_0x5447cd=>{const _0x555e14=_0x99e135;_0x97be9a[_0x555e14(0x1d5)](_0x13cf20+_0x555e14(0x1c0),_0x448882=>{const _0x5cd8f9=_0x555e14;_0x97be9a['close'](),_0x5447cd(_0x448882[_0x5cd8f9(0x1d4)]()==='y'||_0x448882['toLowerCase']()===_0x5cd8f9(0x1c2));});});}function a103_0x180b(){const _0x4ecc08=['8DlMKlO','pause','stderr','write','20QObGFe','1910898IFWlGS','3027565JfCKlH','\x20[y/N]\x20','507PgYNKY','73774NVknhJ','setEncoding','resume','toLowerCase','question','stdout','exit','10Tgkpno','stdin','utf8','createInterface','\x20(y/N):\x20','isTTY','yes','2199057MSTBJi','5304822RVOXht','18792VUJvxe','2827220qnUqIr','removeListener'];a103_0x180b=function(){return _0x4ecc08;};return a103_0x180b();}function a103_0x3628(_0x225634,_0x21e8d1){_0x225634=_0x225634-0x1ba;const _0x180bbc=a103_0x180b();let _0x36282a=_0x180bbc[_0x225634];return _0x36282a;}export async function confirmKey(_0x2998b9){const _0x4ccec2=a103_0x3628;if(!process[_0x4ccec2(0x1bd)][_0x4ccec2(0x1c1)])return![];return process['stderr'][_0x4ccec2(0x1cb)](_0x2998b9+_0x4ccec2(0x1cf)),new Promise(_0x1a135c=>{const _0x3497f9=_0x4ccec2,_0x1e6821=process[_0x3497f9(0x1bd)];_0x1e6821['setRawMode'](!![]),_0x1e6821[_0x3497f9(0x1d3)](),_0x1e6821[_0x3497f9(0x1d2)](_0x3497f9(0x1be));const _0xf6e66c=_0xc9a967=>{const _0x3c3991=_0x3497f9;_0x1e6821['setRawMode'](![]),_0x1e6821[_0x3c3991(0x1c9)](),_0x1e6821[_0x3c3991(0x1c7)]('data',_0xf6e66c);if(_0xc9a967==='\x1b'){process[_0x3c3991(0x1ca)][_0x3c3991(0x1cb)]('\x0a'),_0x1a135c(![]);return;}_0xc9a967==='\x03'&&(process[_0x3c3991(0x1ca)][_0x3c3991(0x1cb)]('\x0a'),process[_0x3c3991(0x1bb)](0x82));if(_0xc9a967[_0x3c3991(0x1d4)]()==='y'){process[_0x3c3991(0x1ca)][_0x3c3991(0x1cb)]('y\x0a'),_0x1a135c(!![]);return;}process['stderr']['write']('\x0a'),_0x1a135c(![]);};_0x1e6821['on']('data',_0xf6e66c);});}
1
+ function a103_0x5e27(_0x2d3410,_0x4c14a6){_0x2d3410=_0x2d3410-0x142;const _0x46b756=a103_0x46b7();let _0x5e277d=_0x46b756[_0x2d3410];return _0x5e277d;}(function(_0x6aaeb1,_0x429649){const _0x127d3d=a103_0x5e27,_0x450bd3=_0x6aaeb1();while(!![]){try{const _0x5e3405=-parseInt(_0x127d3d(0x144))/0x1*(parseInt(_0x127d3d(0x157))/0x2)+-parseInt(_0x127d3d(0x14e))/0x3+parseInt(_0x127d3d(0x14d))/0x4*(parseInt(_0x127d3d(0x15f))/0x5)+parseInt(_0x127d3d(0x152))/0x6*(parseInt(_0x127d3d(0x142))/0x7)+-parseInt(_0x127d3d(0x160))/0x8*(parseInt(_0x127d3d(0x151))/0x9)+parseInt(_0x127d3d(0x150))/0xa*(parseInt(_0x127d3d(0x14a))/0xb)+-parseInt(_0x127d3d(0x14b))/0xc*(-parseInt(_0x127d3d(0x156))/0xd);if(_0x5e3405===_0x429649)break;else _0x450bd3['push'](_0x450bd3['shift']());}catch(_0x59bf81){_0x450bd3['push'](_0x450bd3['shift']());}}}(a103_0x46b7,0x39ccb));import*as a103_0x471be0 from'readline';export async function confirm(_0x1fffde){const _0x1bc905=a103_0x5e27,_0x45b0ea=a103_0x471be0[_0x1bc905(0x153)]({'input':process[_0x1bc905(0x14f)],'output':process[_0x1bc905(0x145)]});return new Promise(_0x431088=>{const _0x172de3=_0x1bc905;_0x45b0ea[_0x172de3(0x146)](_0x1fffde+'\x20(y/N):\x20',_0x2ec3a6=>{const _0x5ac1cc=_0x172de3;_0x45b0ea[_0x5ac1cc(0x154)](),_0x431088(_0x2ec3a6[_0x5ac1cc(0x15c)]()==='y'||_0x2ec3a6[_0x5ac1cc(0x15c)]()===_0x5ac1cc(0x149));});});}function a103_0x46b7(){const _0x1de8cd=['exit','data','toLowerCase','setRawMode','isTTY','5oUFLbw','208xPGRoY','7MeYhvS','write','2MlnBLV','stdout','question','\x20[y/N]\x20','stderr','yes','1309hAyvjO','60iBhLxn','pause','1881052HEpnIV','755532ywJPBC','stdin','6980NPOgad','116064FRqTNq','1570782zinxMy','createInterface','close','setEncoding','303797hDlKHd','108080BjSXYJ','resume','removeListener'];a103_0x46b7=function(){return _0x1de8cd;};return a103_0x46b7();}export async function confirmKey(_0x3f644d){const _0x30a879=a103_0x5e27;if(!process['stdin'][_0x30a879(0x15e)])return![];return process[_0x30a879(0x148)]['write'](_0x3f644d+_0x30a879(0x147)),new Promise(_0x2fbb38=>{const _0x40f5d0=_0x30a879,_0x5f17c8=process[_0x40f5d0(0x14f)];_0x5f17c8[_0x40f5d0(0x15d)](!![]),_0x5f17c8[_0x40f5d0(0x158)](),_0x5f17c8[_0x40f5d0(0x155)]('utf8');const _0x45af61=_0x7fbd1d=>{const _0x2b8612=_0x40f5d0;_0x5f17c8[_0x2b8612(0x15d)](![]),_0x5f17c8[_0x2b8612(0x14c)](),_0x5f17c8[_0x2b8612(0x159)](_0x2b8612(0x15b),_0x45af61);if(_0x7fbd1d==='\x1b'){process['stderr']['write']('\x0a'),_0x2fbb38(![]);return;}_0x7fbd1d==='\x03'&&(process[_0x2b8612(0x148)][_0x2b8612(0x143)]('\x0a'),process[_0x2b8612(0x15a)](0x82));if(_0x7fbd1d[_0x2b8612(0x15c)]()==='y'){process[_0x2b8612(0x148)][_0x2b8612(0x143)]('y\x0a'),_0x2fbb38(!![]);return;}process['stderr']['write']('\x0a'),_0x2fbb38(![]);};_0x5f17c8['on'](_0x40f5d0(0x15b),_0x45af61);});}
@@ -1 +1 @@
1
- (function(_0x2ef391,_0x5dadda){const _0x3eeb47=a104_0x3f44,_0x245b7e=_0x2ef391();while(!![]){try{const _0x40559d=-parseInt(_0x3eeb47(0x129))/0x1*(-parseInt(_0x3eeb47(0x136))/0x2)+-parseInt(_0x3eeb47(0x134))/0x3*(-parseInt(_0x3eeb47(0x142))/0x4)+-parseInt(_0x3eeb47(0x151))/0x5*(parseInt(_0x3eeb47(0x146))/0x6)+-parseInt(_0x3eeb47(0x14b))/0x7*(-parseInt(_0x3eeb47(0x13f))/0x8)+parseInt(_0x3eeb47(0x13d))/0x9+parseInt(_0x3eeb47(0x130))/0xa+-parseInt(_0x3eeb47(0x128))/0xb;if(_0x40559d===_0x5dadda)break;else _0x245b7e['push'](_0x245b7e['shift']());}catch(_0x1d6a46){_0x245b7e['push'](_0x245b7e['shift']());}}}(a104_0x5cf9,0xed768));import{existsSync,readFileSync}from'fs';import a104_0x1a73b3 from'path';import{parse as a104_0x1678d7}from'yaml';export function parsePath(_0x490ecf){const _0x80d503=a104_0x3f44;if(!_0x490ecf||_0x490ecf[_0x80d503(0x145)]()==='')throw new Error(_0x80d503(0x147));const _0x2ed834=_0x490ecf['trim']();if(_0x2ed834==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x490ecf};const _0x479dfd=_0x2ed834[_0x80d503(0x149)]('/')?_0x2ed834[_0x80d503(0x14c)](0x1):_0x2ed834,_0x4ffe18=_0x479dfd['split']('/')['filter'](_0x489974=>_0x489974!=='');if(_0x4ffe18[_0x80d503(0x13b)]===0x0)throw new Error(_0x80d503(0x13a));const _0x3b6b17=_0x2ed834[_0x80d503(0x149)]('/')||!isRelativePathSegment(_0x4ffe18[0x0]);for(const _0x17d2dc of _0x4ffe18){validatePathSegment(_0x17d2dc);}return{'segments':_0x4ffe18,'isAbsolute':_0x3b6b17,'raw':_0x490ecf};}function isRelativePathSegment(_0x10f16e){return _0x10f16e==='.'||_0x10f16e==='..';}function a104_0x3f44(_0x563fe1,_0x1e78c6){_0x563fe1=_0x563fe1-0x127;const _0x5cf9a2=a104_0x5cf9();let _0x3f443c=_0x5cf9a2[_0x563fe1];return _0x3f443c;}function validatePathSegment(_0x595fe0){const _0x77113d=a104_0x3f44;if(_0x595fe0==='')throw new Error(_0x77113d(0x150));if(_0x595fe0==='.'||_0x595fe0==='..')return;if(/[\x00-\x1F\x7F]/[_0x77113d(0x14a)](_0x595fe0))throw new Error(_0x77113d(0x132)+_0x595fe0);if(_0x595fe0!==_0x595fe0['trim']()){}}export function validatePath(_0xca6014){const _0x566865=a104_0x3f44;if(_0xca6014[_0x566865(0x140)]['length']===0x0&&!_0xca6014[_0x566865(0x139)])throw new Error(_0x566865(0x14e));if(_0xca6014['isAbsolute']){if(_0xca6014['segments'][0x0]==='..')throw new Error(_0x566865(0x12d));let _0x23753e=0x0;for(const _0x48fd83 of _0xca6014[_0x566865(0x140)]){if(_0x48fd83==='..'){if(_0x23753e===0x0)throw new Error(_0x566865(0x143));_0x23753e--;}else _0x48fd83!=='.'&&_0x23753e++;}}}export function joinPaths(_0xeb876d,_0xc7107c){const _0x3026a9=a104_0x3f44;if(!_0xeb876d||_0xeb876d==='/')return _0xc7107c;if(!_0xc7107c||_0xc7107c==='.')return _0xeb876d;if(_0xc7107c['startsWith']('/'))return _0xc7107c;const _0x4e0bfb=parsePath(_0xeb876d),_0x59c3b1=parsePath(_0xc7107c),_0x5ae7fe=[..._0x4e0bfb['segments']];for(const _0x32e93b of _0x59c3b1[_0x3026a9(0x140)]){if(_0x32e93b==='.')continue;else{if(_0x32e93b==='..'){if(_0x5ae7fe[_0x3026a9(0x13b)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x5ae7fe[_0x3026a9(0x127)]();}else _0x5ae7fe[_0x3026a9(0x14d)](_0x32e93b);}}const _0x3ab484=_0x5ae7fe[_0x3026a9(0x141)]('/');return _0x4e0bfb[_0x3026a9(0x12f)][_0x3026a9(0x149)]('/')?'/'+_0x3ab484:_0x3ab484;}export function normalizePath(_0x344e2e){const _0x576be9=a104_0x3f44,_0x4fb173=parsePath(_0x344e2e),_0x1764ec=[];for(const _0x56ab9a of _0x4fb173[_0x576be9(0x140)]){if(_0x56ab9a==='.')continue;else{if(_0x56ab9a==='..'){if(_0x1764ec['length']===0x0){if(_0x4fb173['isAbsolute'])throw new Error(_0x576be9(0x12e));_0x1764ec[_0x576be9(0x14d)]('..');}else _0x1764ec[_0x1764ec[_0x576be9(0x13b)]-0x1]==='..'?_0x1764ec[_0x576be9(0x14d)]('..'):_0x1764ec['pop']();}else _0x1764ec[_0x576be9(0x14d)](_0x56ab9a);}}if(_0x1764ec[_0x576be9(0x13b)]===0x0)return _0x4fb173[_0x576be9(0x139)]?'/':'.';const _0x4a1f5b=_0x1764ec[_0x576be9(0x141)]('/');return _0x4fb173[_0x576be9(0x12f)]['startsWith']('/')?'/'+_0x4a1f5b:_0x4a1f5b;}export function getParentPath(_0x3d4e66){const _0x32bde4=a104_0x3f44,_0x27307b=parsePath(_0x3d4e66);if(_0x27307b[_0x32bde4(0x140)]['length']<=0x1)return'/';const _0x549457=_0x27307b[_0x32bde4(0x140)][_0x32bde4(0x12b)](0x0,-0x1)[_0x32bde4(0x141)]('/');return _0x27307b[_0x32bde4(0x12f)]['startsWith']('/')?'/'+_0x549457:_0x549457;}export function getBaseName(_0xadaba3){const _0x3e4aea=a104_0x3f44,_0x2c9bbc=parsePath(_0xadaba3);return _0x2c9bbc[_0x3e4aea(0x140)][_0x2c9bbc[_0x3e4aea(0x140)][_0x3e4aea(0x13b)]-0x1]||'';}export function isChildPath(_0x3b8a8f,_0x81accb){const _0x23de6f=a104_0x3f44,_0x3b3055=parsePath(_0x3b8a8f),_0x426626=parsePath(_0x81accb);if(_0x3b3055['segments'][_0x23de6f(0x13b)]<=_0x426626[_0x23de6f(0x140)][_0x23de6f(0x13b)])return![];for(let _0x22ff05=0x0;_0x22ff05<_0x426626[_0x23de6f(0x140)][_0x23de6f(0x13b)];_0x22ff05++){if(_0x3b3055[_0x23de6f(0x140)][_0x22ff05]!==_0x426626[_0x23de6f(0x140)][_0x22ff05])return![];}return!![];}export function splitPath(_0x1e7743){const _0x4f510d=a104_0x3f44,_0x514d4d=parsePath(_0x1e7743);if(_0x514d4d[_0x4f510d(0x140)]['length']===0x0)throw new Error(_0x4f510d(0x137));if(_0x514d4d['segments'][_0x4f510d(0x13b)]===0x1)return{'parent':_0x514d4d['segments'][0x0]};return{'parent':_0x514d4d[_0x4f510d(0x140)][0x0],'child':_0x514d4d[_0x4f510d(0x140)]['slice'](0x1)['join']('/')};}export function isYamlFilePath(_0x423bda){const _0x44eab0=a104_0x3f44;return _0x423bda[_0x44eab0(0x14f)]('.yml')||_0x423bda[_0x44eab0(0x14f)](_0x44eab0(0x152));}export function resolveYamlFilePath(_0x4e86be){const _0x5bc870=a104_0x3f44,_0x55397b=a104_0x1a73b3[_0x5bc870(0x12c)](_0x4e86be);if(!existsSync(_0x55397b))throw new Error('File\x20not\x20found:\x20'+_0x4e86be);let _0x2b40b8=a104_0x1a73b3[_0x5bc870(0x138)](_0x55397b),_0x8e3d91=null,_0x572912=null;const _0x17ac4b=a104_0x1a73b3[_0x5bc870(0x148)](_0x2b40b8)[_0x5bc870(0x12a)];while(_0x2b40b8!==_0x17ac4b){const _0x124bf4=a104_0x1a73b3[_0x5bc870(0x141)](_0x2b40b8,_0x5bc870(0x135));if(existsSync(_0x124bf4)){_0x8e3d91=_0x124bf4,_0x572912=_0x2b40b8;break;}_0x2b40b8=a104_0x1a73b3[_0x5bc870(0x138)](_0x2b40b8);}if(!_0x8e3d91||!_0x572912)throw new Error('No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4e86be);const _0x10d050=readFileSync(_0x8e3d91,_0x5bc870(0x13c)),_0x3ff8c2=JSON[_0x5bc870(0x148)](_0x10d050),_0x3840ab=_0x3ff8c2[_0x5bc870(0x13e)];if(!_0x3840ab)throw new Error(_0x5bc870(0x144));const _0x7aa8a8=readFileSync(_0x55397b,_0x5bc870(0x13c)),_0x1c6bf1=a104_0x1678d7(_0x7aa8a8),_0x5b8865=_0x1c6bf1[_0x5bc870(0x131)];if(!_0x5b8865)throw new Error(_0x5bc870(0x133)+_0x4e86be);const _0x1c2c93=a104_0x1a73b3['relative'](_0x572912,_0x55397b),_0x1a064c=a104_0x1a73b3[_0x5bc870(0x138)](_0x1c2c93),_0x4aa9a9=_0x1a064c==='.'?'':_0x1a064c['replace'](/\\/g,'/'),_0x24c446=_0x4aa9a9?_0x3840ab+'/'+_0x4aa9a9+'/'+_0x5b8865:_0x3840ab+'/'+_0x5b8865;return{'parentSegment':_0x3840ab,'segmentName':_0x5b8865,'folderPath':_0x4aa9a9,'fullPath':_0x24c446};}function a104_0x5cf9(){const _0x3d1244=['22kyomaF','Cannot\x20split\x20empty\x20path','dirname','isAbsolute','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','length','utf-8','754812thfywg','parent_segment','8WvuMgU','segments','join','2236uROQbT','Path\x20attempts\x20to\x20navigate\x20above\x20root','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','trim','6uzkmOb','Path\x20cannot\x20be\x20empty','parse','startsWith','test','7457485uDqpoa','substring','push','Relative\x20path\x20cannot\x20be\x20empty','endsWith','Path\x20segment\x20cannot\x20be\x20empty','5561605FpUgoZ','.yaml','pop','27572314wjNRbY','53401Zzquai','root','slice','resolve','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20navigate\x20above\x20root','raw','19085220aPRAgD','name','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Invalid\x20segment\x20YAML:\x20missing\x20name\x20field\x20in\x20','5079WEHmQD','tdx.json'];a104_0x5cf9=function(){return _0x3d1244;};return a104_0x5cf9();}
1
+ (function(_0x3dcd56,_0x5a64a6){const _0x4a6fdd=a104_0x3b3d,_0x268efc=_0x3dcd56();while(!![]){try{const _0x2a83f9=-parseInt(_0x4a6fdd(0x1d9))/0x1+parseInt(_0x4a6fdd(0x1e8))/0x2*(parseInt(_0x4a6fdd(0x1ea))/0x3)+-parseInt(_0x4a6fdd(0x1d8))/0x4*(-parseInt(_0x4a6fdd(0x1e1))/0x5)+-parseInt(_0x4a6fdd(0x1fc))/0x6+parseInt(_0x4a6fdd(0x1e0))/0x7+-parseInt(_0x4a6fdd(0x1d5))/0x8+-parseInt(_0x4a6fdd(0x1ec))/0x9*(-parseInt(_0x4a6fdd(0x1ef))/0xa);if(_0x2a83f9===_0x5a64a6)break;else _0x268efc['push'](_0x268efc['shift']());}catch(_0x4b2fa7){_0x268efc['push'](_0x268efc['shift']());}}}(a104_0x5910,0x9e079));import{existsSync,readFileSync}from'fs';function a104_0x5910(){const _0x2fcf49=['No\x20tdx.json\x20found\x20for\x20file:\x20','Cannot\x20navigate\x20above\x20root','Relative\x20path\x20cannot\x20be\x20empty','File\x20not\x20found:\x20','3685278ltPGHQ','filter','startsWith','slice','length','9567040KOGStG','relative','pop','89164edYqdr','1027540arpwTc','.yml','dirname','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','isAbsolute','tdx.json','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','3124352zaTwVA','85VlFUbm','utf-8','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','push','trim','endsWith','substring','100740ddhCXn','name','51sIDSnK','.yaml','16230141agprKv','segments','Path\x20segment\x20cannot\x20be\x20empty','10jncpwr','test','Invalid\x20segment\x20YAML:\x20missing\x20name\x20field\x20in\x20','parse','split','join','raw','resolve','Path\x20cannot\x20be\x20empty'];a104_0x5910=function(){return _0x2fcf49;};return a104_0x5910();}import a104_0x2ee9a4 from'path';import{parse as a104_0x718d7}from'yaml';export function parsePath(_0x5cf6c3){const _0x47740f=a104_0x3b3d;if(!_0x5cf6c3||_0x5cf6c3[_0x47740f(0x1e5)]()==='')throw new Error(_0x47740f(0x1f7));const _0xb4db1b=_0x5cf6c3[_0x47740f(0x1e5)]();if(_0xb4db1b==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x5cf6c3};const _0x18c354=_0xb4db1b[_0x47740f(0x1fe)]('/')?_0xb4db1b[_0x47740f(0x1e7)](0x1):_0xb4db1b,_0x492fee=_0x18c354[_0x47740f(0x1f3)]('/')[_0x47740f(0x1fd)](_0x11e24f=>_0x11e24f!=='');if(_0x492fee[_0x47740f(0x200)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x5356bf=_0xb4db1b['startsWith']('/')||!isRelativePathSegment(_0x492fee[0x0]);for(const _0x5b2c26 of _0x492fee){validatePathSegment(_0x5b2c26);}return{'segments':_0x492fee,'isAbsolute':_0x5356bf,'raw':_0x5cf6c3};}function isRelativePathSegment(_0xe8e7ce){return _0xe8e7ce==='.'||_0xe8e7ce==='..';}function a104_0x3b3d(_0x4ba7fb,_0xee45ab){_0x4ba7fb=_0x4ba7fb-0x1d5;const _0x59105a=a104_0x5910();let _0x3b3d17=_0x59105a[_0x4ba7fb];return _0x3b3d17;}function validatePathSegment(_0x2c7e22){const _0x4d646e=a104_0x3b3d;if(_0x2c7e22==='')throw new Error(_0x4d646e(0x1ee));if(_0x2c7e22==='.'||_0x2c7e22==='..')return;if(/[\x00-\x1F\x7F]/[_0x4d646e(0x1f0)](_0x2c7e22))throw new Error(_0x4d646e(0x1df)+_0x2c7e22);if(_0x2c7e22!==_0x2c7e22[_0x4d646e(0x1e5)]()){}}export function validatePath(_0x571f4a){const _0x16d159=a104_0x3b3d;if(_0x571f4a['segments'][_0x16d159(0x200)]===0x0&&!_0x571f4a['isAbsolute'])throw new Error(_0x16d159(0x1fa));if(_0x571f4a['isAbsolute']){if(_0x571f4a[_0x16d159(0x1ed)][0x0]==='..')throw new Error(_0x16d159(0x1e3));let _0x315b79=0x0;for(const _0x11c60b of _0x571f4a['segments']){if(_0x11c60b==='..'){if(_0x315b79===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x315b79--;}else _0x11c60b!=='.'&&_0x315b79++;}}}export function joinPaths(_0x3ec79a,_0x40b6b7){const _0x4a9ddf=a104_0x3b3d;if(!_0x3ec79a||_0x3ec79a==='/')return _0x40b6b7;if(!_0x40b6b7||_0x40b6b7==='.')return _0x3ec79a;if(_0x40b6b7[_0x4a9ddf(0x1fe)]('/'))return _0x40b6b7;const _0x3d27a6=parsePath(_0x3ec79a),_0xb3aeb6=parsePath(_0x40b6b7),_0x386ffa=[..._0x3d27a6['segments']];for(const _0x2756ac of _0xb3aeb6[_0x4a9ddf(0x1ed)]){if(_0x2756ac==='.')continue;else{if(_0x2756ac==='..'){if(_0x386ffa[_0x4a9ddf(0x200)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x386ffa[_0x4a9ddf(0x1d7)]();}else _0x386ffa[_0x4a9ddf(0x1e4)](_0x2756ac);}}const _0x25b918=_0x386ffa[_0x4a9ddf(0x1f4)]('/');return _0x3d27a6[_0x4a9ddf(0x1f5)][_0x4a9ddf(0x1fe)]('/')?'/'+_0x25b918:_0x25b918;}export function normalizePath(_0x412764){const _0x1ccc2d=a104_0x3b3d,_0x177bad=parsePath(_0x412764),_0x3eba6f=[];for(const _0x156091 of _0x177bad['segments']){if(_0x156091==='.')continue;else{if(_0x156091==='..'){if(_0x3eba6f[_0x1ccc2d(0x200)]===0x0){if(_0x177bad[_0x1ccc2d(0x1dd)])throw new Error(_0x1ccc2d(0x1f9));_0x3eba6f['push']('..');}else _0x3eba6f[_0x3eba6f[_0x1ccc2d(0x200)]-0x1]==='..'?_0x3eba6f['push']('..'):_0x3eba6f[_0x1ccc2d(0x1d7)]();}else _0x3eba6f[_0x1ccc2d(0x1e4)](_0x156091);}}if(_0x3eba6f[_0x1ccc2d(0x200)]===0x0)return _0x177bad[_0x1ccc2d(0x1dd)]?'/':'.';const _0x26ea20=_0x3eba6f[_0x1ccc2d(0x1f4)]('/');return _0x177bad['raw'][_0x1ccc2d(0x1fe)]('/')?'/'+_0x26ea20:_0x26ea20;}export function getParentPath(_0x31383e){const _0x438815=a104_0x3b3d,_0x52e35c=parsePath(_0x31383e);if(_0x52e35c[_0x438815(0x1ed)][_0x438815(0x200)]<=0x1)return'/';const _0x41f12e=_0x52e35c['segments'][_0x438815(0x1ff)](0x0,-0x1)['join']('/');return _0x52e35c[_0x438815(0x1f5)][_0x438815(0x1fe)]('/')?'/'+_0x41f12e:_0x41f12e;}export function getBaseName(_0xf725a6){const _0x15f134=a104_0x3b3d,_0x42af60=parsePath(_0xf725a6);return _0x42af60[_0x15f134(0x1ed)][_0x42af60['segments']['length']-0x1]||'';}export function isChildPath(_0x57305b,_0xff0326){const _0x5a0dec=a104_0x3b3d,_0x45ef4c=parsePath(_0x57305b),_0x54e69b=parsePath(_0xff0326);if(_0x45ef4c['segments'][_0x5a0dec(0x200)]<=_0x54e69b[_0x5a0dec(0x1ed)][_0x5a0dec(0x200)])return![];for(let _0x2de577=0x0;_0x2de577<_0x54e69b[_0x5a0dec(0x1ed)][_0x5a0dec(0x200)];_0x2de577++){if(_0x45ef4c[_0x5a0dec(0x1ed)][_0x2de577]!==_0x54e69b['segments'][_0x2de577])return![];}return!![];}export function splitPath(_0x154ed2){const _0x50c4e8=a104_0x3b3d,_0x521e64=parsePath(_0x154ed2);if(_0x521e64['segments'][_0x50c4e8(0x200)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x521e64['segments']['length']===0x1)return{'parent':_0x521e64['segments'][0x0]};return{'parent':_0x521e64['segments'][0x0],'child':_0x521e64['segments'][_0x50c4e8(0x1ff)](0x1)[_0x50c4e8(0x1f4)]('/')};}export function isYamlFilePath(_0x32bccb){const _0x545d6e=a104_0x3b3d;return _0x32bccb['endsWith'](_0x545d6e(0x1da))||_0x32bccb[_0x545d6e(0x1e6)](_0x545d6e(0x1eb));}export function resolveYamlFilePath(_0xf26e78){const _0xd23780=a104_0x3b3d,_0x2565e9=a104_0x2ee9a4[_0xd23780(0x1f6)](_0xf26e78);if(!existsSync(_0x2565e9))throw new Error(_0xd23780(0x1fb)+_0xf26e78);let _0x3fa4c7=a104_0x2ee9a4[_0xd23780(0x1db)](_0x2565e9),_0x8148d7=null,_0xfa4c43=null;const _0x4b2785=a104_0x2ee9a4[_0xd23780(0x1f2)](_0x3fa4c7)['root'];while(_0x3fa4c7!==_0x4b2785){const _0x4b2f76=a104_0x2ee9a4['join'](_0x3fa4c7,_0xd23780(0x1de));if(existsSync(_0x4b2f76)){_0x8148d7=_0x4b2f76,_0xfa4c43=_0x3fa4c7;break;}_0x3fa4c7=a104_0x2ee9a4[_0xd23780(0x1db)](_0x3fa4c7);}if(!_0x8148d7||!_0xfa4c43)throw new Error(_0xd23780(0x1f8)+_0xf26e78);const _0xd4acd1=readFileSync(_0x8148d7,_0xd23780(0x1e2)),_0x480030=JSON[_0xd23780(0x1f2)](_0xd4acd1),_0x3eecbb=_0x480030['parent_segment'];if(!_0x3eecbb)throw new Error(_0xd23780(0x1dc));const _0x482abd=readFileSync(_0x2565e9,_0xd23780(0x1e2)),_0x3eb02c=a104_0x718d7(_0x482abd),_0x5bf8ef=_0x3eb02c[_0xd23780(0x1e9)];if(!_0x5bf8ef)throw new Error(_0xd23780(0x1f1)+_0xf26e78);const _0x21f2d7=a104_0x2ee9a4[_0xd23780(0x1d6)](_0xfa4c43,_0x2565e9),_0xdb6f69=a104_0x2ee9a4[_0xd23780(0x1db)](_0x21f2d7),_0x59a661=_0xdb6f69==='.'?'':_0xdb6f69['replace'](/\\/g,'/'),_0x4250d5=_0x59a661?_0x3eecbb+'/'+_0x59a661+'/'+_0x5bf8ef:_0x3eecbb+'/'+_0x5bf8ef;return{'parentSegment':_0x3eecbb,'segmentName':_0x5bf8ef,'folderPath':_0x59a661,'fullPath':_0x4250d5};}