@treasuredata/tdx 0.9.0 → 0.9.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 (119) 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.js +1 -1
  11. package/dist/client/trino-api-client.js +1 -1
  12. package/dist/client/workflow-client.js +1 -1
  13. package/dist/commands/activations.js +1 -1
  14. package/dist/commands/agent-command.js +1 -1
  15. package/dist/commands/api-command.js +1 -1
  16. package/dist/commands/auth-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/command.js +1 -1
  22. package/dist/commands/connection-command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/llm-proxy.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profiles-command.js +1 -1
  33. package/dist/commands/query-command.js +1 -1
  34. package/dist/commands/segment-command.js +1 -1
  35. package/dist/commands/segment-create-command.js +1 -1
  36. package/dist/commands/segment-fields-command.js +1 -1
  37. package/dist/commands/segment-pull-command.js +1 -1
  38. package/dist/commands/segment-push-command.js +1 -1
  39. package/dist/commands/segment-update-command.js +1 -1
  40. package/dist/commands/segment-use-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/tables.js +1 -1
  44. package/dist/commands/use-command.js +1 -1
  45. package/dist/commands/user-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/connection-cache.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/proxy/anthropic-adapter.js +1 -1
  59. package/dist/proxy/claude-usage-tracker.js +1 -1
  60. package/dist/proxy/context-signature.js +1 -1
  61. package/dist/proxy/conversation-utils.js +1 -1
  62. package/dist/proxy/server.js +1 -1
  63. package/dist/proxy/session-cache.js +1 -1
  64. package/dist/sdk/agent/agent-yaml.d.ts +1 -1
  65. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  66. package/dist/sdk/agent/agent-yaml.js +1 -1
  67. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  68. package/dist/sdk/api.js +1 -1
  69. package/dist/sdk/connection.js +1 -1
  70. package/dist/sdk/engage.js +1 -1
  71. package/dist/sdk/errors.js +1 -1
  72. package/dist/sdk/index.js +1 -1
  73. package/dist/sdk/job.js +1 -1
  74. package/dist/sdk/journey.js +1 -1
  75. package/dist/sdk/llm.js +1 -1
  76. package/dist/sdk/query.js +1 -1
  77. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  78. package/dist/sdk/segment/journey-yaml.js +1 -1
  79. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  80. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  81. package/dist/sdk/segment.js +1 -1
  82. package/dist/sdk/user.js +1 -1
  83. package/dist/sdk/workflow.js +1 -1
  84. package/dist/types/endpoints.js +1 -1
  85. package/dist/types/index.js +1 -1
  86. package/dist/utils/agent-config.js +1 -1
  87. package/dist/utils/agent-ref-parser.js +1 -1
  88. package/dist/utils/async.js +1 -1
  89. package/dist/utils/chat-cache.js +1 -1
  90. package/dist/utils/colors.js +1 -1
  91. package/dist/utils/command-output.js +1 -1
  92. package/dist/utils/constants.js +1 -1
  93. package/dist/utils/diff.js +1 -1
  94. package/dist/utils/fields-display.js +1 -1
  95. package/dist/utils/file-permissions.js +1 -1
  96. package/dist/utils/format-detector.js +1 -1
  97. package/dist/utils/formatters.js +1 -1
  98. package/dist/utils/journey-utils.js +1 -1
  99. package/dist/utils/json-loader.js +1 -1
  100. package/dist/utils/llm-backup-utils.js +1 -1
  101. package/dist/utils/model-aliases.js +1 -1
  102. package/dist/utils/model-factors.js +1 -1
  103. package/dist/utils/option-validation.js +1 -1
  104. package/dist/utils/port.js +1 -1
  105. package/dist/utils/process.js +1 -1
  106. package/dist/utils/prompt.js +1 -1
  107. package/dist/utils/segment-path-parser.js +1 -1
  108. package/dist/utils/segment-ref-parser.js +1 -1
  109. package/dist/utils/spinner.js +1 -1
  110. package/dist/utils/sql-parser.js +1 -1
  111. package/dist/utils/sse-parser.js +1 -1
  112. package/dist/utils/string-utils.js +1 -1
  113. package/dist/utils/table-ref-parser.js +1 -1
  114. package/dist/utils/tdx-config.js +1 -1
  115. package/dist/utils/tdx-logger.js +1 -1
  116. package/dist/utils/tree-formatter.js +1 -1
  117. package/dist/utils/version-check.js +1 -1
  118. package/dist/utils/workflow-utils.js +1 -1
  119. package/package.json +1 -1
@@ -1 +1 @@
1
- function a95_0x5a49(){const _0x556827=['stringify','debug','log','[logs]','table','entries','object','length','isInteger','isTTY','1965640SBDIWo','7LGXWoT','─┴─','format','push','error','-FXRSn','311730rbzjXJ','magenta','131813QGtokT','close','resolve','number','1030782tqvomR','176164WbMJrN','24lCVnNv','red','rule','params','stdin','stdout','write','stderr','405374JsBtKl','bold','No\x20data','split','[Object]','FINISHED','color','end','noColor','[rule]','331897OFxRZx','json','tsv','varchar','limit','cyan','63pUNZcM','cmdout','inherit','keys','yellow','sdk-result','output','bigint','trim','join','forEach','repeat','padEnd','less','boolean','10PWMrnC','query','map','─┬─','[query]','[params]','jsonl'];a95_0x5a49=function(){return _0x556827;};return a95_0x5a49();}(function(_0xe7017b,_0x278096){const _0x160c6d=a95_0x56a4,_0x1db18d=_0xe7017b();while(!![]){try{const _0x49e85e=-parseInt(_0x160c6d(0x101))/0x1+-parseInt(_0x160c6d(0xf7))/0x2+-parseInt(_0x160c6d(0x136))/0x3*(-parseInt(_0x160c6d(0x135))/0x4)+parseInt(_0x160c6d(0x116))/0x5*(parseInt(_0x160c6d(0x134))/0x6)+parseInt(_0x160c6d(0x128))/0x7*(parseInt(_0x160c6d(0x127))/0x8)+parseInt(_0x160c6d(0x107))/0x9*(-parseInt(_0x160c6d(0x12e))/0xa)+parseInt(_0x160c6d(0x130))/0xb;if(_0x49e85e===_0x278096)break;else _0x1db18d['push'](_0x1db18d['shift']());}catch(_0x2f1819){_0x1db18d['push'](_0x1db18d['shift']());}}}(a95_0x5a49,0x3106f));import{writeFileSync}from'fs';function a95_0x56a4(_0x2af639,_0x39a2a1){_0x2af639=_0x2af639-0xf6;const _0x5a4941=a95_0x5a49();let _0x56a40a=_0x5a4941[_0x2af639];return _0x56a40a;}import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a95_0x4d2bac from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x5d6717){const _0x5914e9=a95_0x56a4;return _0x5d6717['format']==='json'||_0x5d6717['format']===_0x5914e9(0x11c)||_0x5d6717[_0x5914e9(0x12a)]===_0x5914e9(0x103)||_0x5d6717['format']===_0x5914e9(0x121)||_0x5d6717[_0x5914e9(0x102)]===!![]||_0x5d6717[_0x5914e9(0x11c)]===!![]||_0x5d6717[_0x5914e9(0x103)]===!![]||_0x5d6717[_0x5914e9(0x121)]===!![];}export function parseOutputOptions(_0x4ff839){const _0x106656=a95_0x56a4;return{'format':_0x4ff839['format']||'table','output':_0x4ff839['output']||'','limit':_0x4ff839[_0x106656(0x105)],'color':_0x4ff839[_0x106656(0xfd)],'noColor':_0x4ff839['noColor']};}function convertSDKResultToQueryResult(_0x33eeab){const _0x36aadc=a95_0x56a4,_0x459661=[];if(_0x33eeab['length']>0x0){const _0x59261d=_0x33eeab[0x0];for(const [_0x77085f,_0x3e6d45]of Object[_0x36aadc(0x122)](_0x59261d)){let _0x4c1de2=_0x36aadc(0x104);if(typeof _0x3e6d45===_0x36aadc(0x133))_0x4c1de2=Number[_0x36aadc(0x125)](_0x3e6d45)?_0x36aadc(0x10e):'double';else{if(typeof _0x3e6d45===_0x36aadc(0x115))_0x4c1de2=_0x36aadc(0x115);else _0x3e6d45===null&&(_0x4c1de2=_0x36aadc(0x104));}_0x459661['push']({'name':_0x77085f,'type':_0x4c1de2});}}return{'queryId':_0x36aadc(0x10c),'columns':_0x459661,'data':_0x33eeab,'stats':{'state':_0x36aadc(0xfc),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x33eeab['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x2868f6,_0x46bda5){const _0x40f821=convertSDKResultToQueryResult(_0x2868f6);return formatQueryOutput(_0x40f821,_0x46bda5);}export async function formatQueryOutput(_0x2169a0,_0x1cbf43){const _0x512b5b=a95_0x56a4,{format:_0x46c16e,limit:_0x2b27ac,output:_0x5a6cec,color:_0x54acc7,noColor:_0x17c38e}=_0x1cbf43,_0x4fc578=Boolean(_0x5a6cec)&&!_0x54acc7,_0x4d147e={'color':_0x54acc7,'noColor':_0x17c38e||_0x4fc578};if(_0x46c16e===_0x512b5b(0x121)){const _0x3d1b79=shouldUseLess(_0x46c16e,_0x5a6cec);return formatAsTable(_0x2169a0,_0x2b27ac,_0x3d1b79,_0x4d147e);}else{if(_0x46c16e===_0x512b5b(0x102))return formatAsJSON(_0x2169a0,_0x4d147e);else return _0x46c16e===_0x512b5b(0x11c)?formatAsJSONL(_0x2169a0,_0x4d147e):formatQueryResult(_0x2169a0,_0x46c16e);}}function shouldUseLess(_0x2f4412,_0x2a4659){const _0x51d95a=a95_0x56a4;return _0x2f4412===_0x51d95a(0x121)&&process[_0x51d95a(0x13b)][_0x51d95a(0x126)]&&!_0x2a4659;}export function resolveOutputOptions(_0x18bee0){const _0x236b72=a95_0x56a4,_0x1fd4e8=resolveOutputFormat(_0x18bee0[_0x236b72(0x12a)],_0x18bee0['output'],'table');let _0x427f32=typeof _0x18bee0['limit']===_0x236b72(0x133)?_0x18bee0[_0x236b72(0x105)]:parseInt(_0x18bee0[_0x236b72(0x105)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x4ad73d=_0x18bee0[_0x236b72(0x10d)]||'';return shouldUseLess(_0x1fd4e8,_0x4ad73d)&&(_0x427f32=Infinity),{'format':_0x1fd4e8,'output':_0x4ad73d,'limit':_0x427f32,'color':_0x18bee0['color'],'noColor':_0x18bee0[_0x236b72(0xff)]};}export function writeOutput(_0x52afb3,_0x2048f3,_0x1e9df5){const _0xe4a7bc=a95_0x56a4;return _0x2048f3?(writeFileSync(_0x2048f3,_0x52afb3),console[_0xe4a7bc(0x12c)]('Results\x20saved\x20to\x20'+_0x2048f3),Promise[_0xe4a7bc(0x132)]()):shouldUseLess(_0x1e9df5||'','')?new Promise(_0x1eb336=>{const _0x208256=_0xe4a7bc,_0x1fc928=spawn(_0x208256(0x114),[_0x208256(0x12d)],{'stdio':['pipe',_0x208256(0x109),_0x208256(0x109)]});let _0x381d53=![];_0x1fc928['on'](_0x208256(0x12c),()=>{const _0x36771c=_0x208256;!_0x381d53&&(_0x381d53=!![],console[_0x36771c(0x11f)](_0x52afb3),_0x1eb336());}),_0x1fc928['on'](_0x208256(0x131),()=>{!_0x381d53&&(_0x381d53=!![],_0x1eb336());}),_0x1fc928['on']('spawn',()=>{const _0x1c592f=_0x208256;!_0x381d53&&_0x1fc928['stdin']&&(_0x1fc928[_0x1c592f(0x13a)]['on'](_0x1c592f(0x12c),()=>{}),_0x1fc928[_0x1c592f(0x13a)][_0x1c592f(0x13c)](_0x52afb3),_0x1fc928[_0x1c592f(0x13a)][_0x1c592f(0xfe)]());}),!_0x1fc928[_0x208256(0x13a)]&&(!_0x381d53&&(_0x381d53=!![],console[_0x208256(0x11f)](_0x52afb3),_0x1eb336()));}):(console[_0xe4a7bc(0x11f)](_0x52afb3),Promise[_0xe4a7bc(0x132)]());}export async function handleSDKOutput(_0x32e3f5,_0x1a9834){const _0x5c699e=a95_0x56a4,_0x35474d=resolveOutputOptions(_0x1a9834),_0x29d01a=await formatSDKOutput(_0x32e3f5,_0x35474d);await writeOutput(_0x29d01a,_0x35474d['output']||undefined,_0x35474d[_0x5c699e(0x12a)]);}export async function handleQueryOutput(_0x2554a2,_0x398ea9){const _0x3b6d99=a95_0x56a4,_0x2d00ab=resolveOutputOptions(_0x398ea9),_0x431a57=await formatQueryOutput(_0x2554a2,_0x2d00ab);await writeOutput(_0x431a57,_0x2d00ab[_0x3b6d99(0x10d)]||undefined,_0x2d00ab['format']);}async function formatSingleObject(_0x56b0a5,_0x59e80d){const _0x454617=a95_0x56a4,{format:_0x33ca51,color:_0x1c618b,noColor:_0x46eb22}=_0x59e80d,_0x536128={'color':_0x1c618b,'noColor':_0x46eb22};if(_0x33ca51==='json'){if(shouldUseColor(_0x536128))return colorizeJSON(_0x56b0a5,_0x536128);return JSON[_0x454617(0x11d)](_0x56b0a5,null,0x2);}else{if(_0x33ca51===_0x454617(0x11c)){if(shouldUseColor(_0x536128))return colorizeJSONCompact(_0x56b0a5,_0x536128);return JSON[_0x454617(0x11d)](_0x56b0a5);}else{if(_0x33ca51===_0x454617(0x103))return Object[_0x454617(0x122)](_0x56b0a5)[_0x454617(0x118)](([_0x371718,_0x7ae54e])=>_0x371718+'\x09'+_0x7ae54e)['join']('\x0a');else{const _0x4a1e9e=Object['entries'](_0x56b0a5);if(_0x4a1e9e[_0x454617(0x124)]===0x0)return _0x454617(0xf9);const _0x478a10=_0x56b0a5[_0x454617(0x11e)],_0x5a1753=_0x56b0a5['query'],_0xc7b319=_0x56b0a5[_0x454617(0x139)],_0x4a09dc=_0x56b0a5[_0x454617(0x138)],_0x3c92c5=_0x5a1753?typeof _0x5a1753==='string'?_0x5a1753:JSON[_0x454617(0x11d)](_0x5a1753,null,0x2):undefined,_0x1d11ab=_0xc7b319&&Object['keys'](_0xc7b319)[_0x454617(0x124)]>0x0?JSON['stringify'](_0xc7b319,null,0x2):undefined,_0x240d33=_0x4a09dc&&Object[_0x454617(0x10a)](_0x4a09dc)['length']>0x0?JSON['stringify'](_0x4a09dc,null,0x2):undefined,_0x833bd6=_0x4a1e9e['filter'](([_0x4c2f02])=>_0x4c2f02!==_0x454617(0x11e)&&_0x4c2f02!==_0x454617(0x117)&&_0x4c2f02!=='params'&&_0x4c2f02!==_0x454617(0x138)),_0x5b76c8=Math['max'](..._0x833bd6[_0x454617(0x118)](([_0x5bb612])=>_0x5bb612[_0x454617(0x124)])),_0x27df73=Math['max'](..._0x833bd6[_0x454617(0x118)](([,_0x34cfd4])=>{const _0x2fae29=_0x454617;try{const _0x5c891c=_0x34cfd4===null||_0x34cfd4===undefined?'':typeof _0x34cfd4===_0x2fae29(0x123)?JSON[_0x2fae29(0x11d)](_0x34cfd4):String(_0x34cfd4),_0x381621=_0x5c891c['split']('\x0a');return Math['max'](..._0x381621[_0x2fae29(0x118)](_0xca7ff3=>_0xca7ff3[_0x2fae29(0x124)]),0x0);}catch{return 0x0;}}),0x14),_0x157751=[];_0x157751[_0x454617(0x12b)](colorBorder('┌─'+'─'[_0x454617(0x112)](_0x5b76c8)+_0x454617(0x119)+'─'['repeat'](_0x27df73)+'─┐',_0x536128)),_0x833bd6[_0x454617(0x111)](([_0x228e31,_0x492b11])=>{const _0x296d96=_0x454617;let _0x5d358c;try{_0x5d358c=_0x492b11===null||_0x492b11===undefined?'':typeof _0x492b11==='object'?JSON[_0x296d96(0x11d)](_0x492b11):String(_0x492b11);}catch{_0x5d358c=_0x296d96(0xfb);}const _0x35de16=_0x228e31[_0x296d96(0x113)](_0x5b76c8),_0x15b5c9=_0x5d358c[_0x296d96(0xfa)]('\x0a');_0x15b5c9[_0x296d96(0x111)]((_0x54f4d9,_0x576b2f)=>{const _0xfb0b68=_0x296d96,_0x300632=colorBorder('│',_0x536128);_0x576b2f===0x0?_0x157751[_0xfb0b68(0x12b)](_0x300632+'\x20'+_0x35de16+'\x20'+_0x300632+'\x20'+_0x54f4d9[_0xfb0b68(0x113)](_0x27df73)+'\x20'+_0x300632):_0x157751[_0xfb0b68(0x12b)](_0x300632+'\x20'+'\x20'[_0xfb0b68(0x112)](_0x5b76c8)+'\x20'+_0x300632+'\x20'+_0x54f4d9['padEnd'](_0x27df73)+'\x20'+_0x300632);});}),_0x157751['push'](colorBorder('└─'+'─'[_0x454617(0x112)](_0x5b76c8)+_0x454617(0x129)+'─'[_0x454617(0x112)](_0x27df73)+'─┘',_0x536128));_0x3c92c5&&(_0x157751[_0x454617(0x12b)](''),_0x157751[_0x454617(0x12b)](String(a95_0x4d2bac[_0x454617(0x10b)]['bold'](_0x454617(0x11a)))),_0x157751[_0x454617(0x12b)](_0x3c92c5));_0x1d11ab&&(_0x157751[_0x454617(0x12b)](''),_0x157751['push'](String(a95_0x4d2bac['blue'][_0x454617(0xf8)](_0x454617(0x11b)))),_0x157751[_0x454617(0x12b)](_0x1d11ab));_0x240d33&&(_0x157751['push'](''),_0x157751[_0x454617(0x12b)](String(a95_0x4d2bac[_0x454617(0x12f)][_0x454617(0xf8)](_0x454617(0x100)))),_0x157751[_0x454617(0x12b)](_0x240d33));if(_0x478a10){if(_0x478a10[_0x454617(0xf6)]){_0x157751[_0x454617(0x12b)](''),_0x157751[_0x454617(0x12b)](String(a95_0x4d2bac[_0x454617(0x137)][_0x454617(0xf8)]('[error]')));const _0xe78951=_0x478a10[_0x454617(0xf6)][_0x454617(0xfa)]('\x0a');_0xe78951['forEach'](_0x3f70bd=>{const _0x2dff11=_0x454617;_0x3f70bd[_0x2dff11(0x10f)]()&&_0x157751['push'](_0x3f70bd);});}if(_0x478a10['cmdout']){_0x157751['push'](''),_0x157751[_0x454617(0x12b)](String(a95_0x4d2bac[_0x454617(0x106)][_0x454617(0xf8)](_0x454617(0x120))));const _0x535d64=_0x478a10[_0x454617(0x108)][_0x454617(0xfa)]('\x0a');_0x535d64[_0x454617(0x111)](_0x2e614b=>{_0x2e614b['trim']()&&_0x157751['push'](_0x2e614b);});}}return _0x157751[_0x454617(0x110)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x21a85e,_0x116480){const _0x472b8c=a95_0x56a4;if(_0x116480[_0x472b8c(0x12a)]==='table'){await handleSDKOutput([_0x21a85e],_0x116480);return;}const _0x19d06c=resolveOutputOptions(_0x116480),_0x3053d8=await formatSingleObject(_0x21a85e,_0x19d06c);await writeOutput(_0x3053d8,_0x19d06c[_0x472b8c(0x10d)]||undefined,_0x19d06c[_0x472b8c(0x12a)]);}
1
+ (function(_0x500007,_0x25c1d9){const _0x24f72d=a95_0x7640,_0x126292=_0x500007();while(!![]){try{const _0x143469=parseInt(_0x24f72d(0x1fa))/0x1*(parseInt(_0x24f72d(0x202))/0x2)+parseInt(_0x24f72d(0x1fc))/0x3*(parseInt(_0x24f72d(0x1fd))/0x4)+-parseInt(_0x24f72d(0x1e7))/0x5+-parseInt(_0x24f72d(0x1c6))/0x6*(parseInt(_0x24f72d(0x1ce))/0x7)+parseInt(_0x24f72d(0x1ef))/0x8+-parseInt(_0x24f72d(0x1d1))/0x9*(-parseInt(_0x24f72d(0x1e1))/0xa)+-parseInt(_0x24f72d(0x1cb))/0xb;if(_0x143469===_0x25c1d9)break;else _0x126292['push'](_0x126292['shift']());}catch(_0x33a3d7){_0x126292['push'](_0x126292['shift']());}}}(a95_0x3cc9,0xa4204));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a95_0x3cc9(){const _0x45125e=['end','padEnd','log','error','double','10cGjyJz','rule','─┬─','Results\x20saved\x20to\x20','resolve','max','1478760hWtRBa','length','color','object','query','[rule]','No\x20data','limit','1400264XxFZog','magenta','join','less','push','isTTY','stderr','sdk-result','boolean','tsv','format','21466Fnpbru','keys','3021186jWvbtG','4YKHjrU','─┴─','[logs]','write','output','6ZjVqpN','[error]','varchar','spawn','repeat','[Object]','red','-FXRSn','split','number','cmdout','noColor','bold','entries','stdout','10632fShNHa','[params]','pipe','stringify','stdin','5713554YeEiMw','cyan','close','2471ZPZQQL','FINISHED','debug','7798041gvyyjZ','table','filter','json','yellow','[query]','inherit','map','forEach','params','jsonl'];a95_0x3cc9=function(){return _0x45125e;};return a95_0x3cc9();}import a95_0x8d083d from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x448ed3){const _0x388822=a95_0x7640;return _0x448ed3['format']===_0x388822(0x1d4)||_0x448ed3[_0x388822(0x1f9)]===_0x388822(0x1db)||_0x448ed3['format']===_0x388822(0x1f8)||_0x448ed3[_0x388822(0x1f9)]===_0x388822(0x1d2)||_0x448ed3[_0x388822(0x1d4)]===!![]||_0x448ed3[_0x388822(0x1db)]===!![]||_0x448ed3[_0x388822(0x1f8)]===!![]||_0x448ed3[_0x388822(0x1d2)]===!![];}function a95_0x7640(_0x56a77c,_0x422840){_0x56a77c=_0x56a77c-0x1c3;const _0x3cc9ba=a95_0x3cc9();let _0x764009=_0x3cc9ba[_0x56a77c];return _0x764009;}export function parseOutputOptions(_0x197c8c){const _0x52a656=a95_0x7640;return{'format':_0x197c8c[_0x52a656(0x1f9)]||_0x52a656(0x1d2),'output':_0x197c8c[_0x52a656(0x201)]||'','limit':_0x197c8c[_0x52a656(0x1ee)],'color':_0x197c8c[_0x52a656(0x1e9)],'noColor':_0x197c8c[_0x52a656(0x20d)]};}function convertSDKResultToQueryResult(_0x22e9b0){const _0x26e7f0=a95_0x7640,_0xb64f77=[];if(_0x22e9b0[_0x26e7f0(0x1e8)]>0x0){const _0x5dbd09=_0x22e9b0[0x0];for(const [_0x50e50e,_0x8bf199]of Object[_0x26e7f0(0x1c4)](_0x5dbd09)){let _0x40b233='varchar';if(typeof _0x8bf199===_0x26e7f0(0x20b))_0x40b233=Number['isInteger'](_0x8bf199)?'bigint':_0x26e7f0(0x1e0);else{if(typeof _0x8bf199==='boolean')_0x40b233=_0x26e7f0(0x1f7);else _0x8bf199===null&&(_0x40b233=_0x26e7f0(0x204));}_0xb64f77[_0x26e7f0(0x1f3)]({'name':_0x50e50e,'type':_0x40b233});}}return{'queryId':_0x26e7f0(0x1f6),'columns':_0xb64f77,'data':_0x22e9b0,'stats':{'state':_0x26e7f0(0x1cf),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x22e9b0[_0x26e7f0(0x1e8)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x15bd8f,_0x5504d1){const _0x540d07=convertSDKResultToQueryResult(_0x15bd8f);return formatQueryOutput(_0x540d07,_0x5504d1);}export async function formatQueryOutput(_0x46d5aa,_0x1cae10){const _0x19446d=a95_0x7640,{format:_0x3113a1,limit:_0x477fab,output:_0x484110,color:_0x4e662e,noColor:_0xddd6a7}=_0x1cae10,_0x506fee=Boolean(_0x484110)&&!_0x4e662e,_0x411a9b={'color':_0x4e662e,'noColor':_0xddd6a7||_0x506fee};if(_0x3113a1===_0x19446d(0x1d2)){const _0x15901f=shouldUseLess(_0x3113a1,_0x484110);return formatAsTable(_0x46d5aa,_0x477fab,_0x15901f,_0x411a9b);}else{if(_0x3113a1==='json')return formatAsJSON(_0x46d5aa,_0x411a9b);else return _0x3113a1==='jsonl'?formatAsJSONL(_0x46d5aa,_0x411a9b):formatQueryResult(_0x46d5aa,_0x3113a1);}}function shouldUseLess(_0x24bfcd,_0x5b6f75){const _0x56f65f=a95_0x7640;return _0x24bfcd===_0x56f65f(0x1d2)&&process[_0x56f65f(0x1c5)][_0x56f65f(0x1f4)]&&!_0x5b6f75;}export function resolveOutputOptions(_0x44239b){const _0x5133fb=a95_0x7640,_0x5e93e3=resolveOutputFormat(_0x44239b[_0x5133fb(0x1f9)],_0x44239b[_0x5133fb(0x201)],_0x5133fb(0x1d2));let _0x5a0cb7=typeof _0x44239b[_0x5133fb(0x1ee)]===_0x5133fb(0x20b)?_0x44239b[_0x5133fb(0x1ee)]:parseInt(_0x44239b[_0x5133fb(0x1ee)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x2c9491=_0x44239b[_0x5133fb(0x201)]||'';return shouldUseLess(_0x5e93e3,_0x2c9491)&&(_0x5a0cb7=Infinity),{'format':_0x5e93e3,'output':_0x2c9491,'limit':_0x5a0cb7,'color':_0x44239b[_0x5133fb(0x1e9)],'noColor':_0x44239b['noColor']};}export function writeOutput(_0x53266f,_0x4298c4,_0x107468){const _0x510ad6=a95_0x7640;return _0x4298c4?(writeFileSync(_0x4298c4,_0x53266f),console['error'](_0x510ad6(0x1e4)+_0x4298c4),Promise[_0x510ad6(0x1e5)]()):shouldUseLess(_0x107468||'','')?new Promise(_0x3c5a41=>{const _0x443183=_0x510ad6,_0x52940e=spawn(_0x443183(0x1f2),[_0x443183(0x209)],{'stdio':[_0x443183(0x1c8),'inherit',_0x443183(0x1d7)]});let _0x3dccab=![];_0x52940e['on'](_0x443183(0x1df),()=>{!_0x3dccab&&(_0x3dccab=!![],console['log'](_0x53266f),_0x3c5a41());}),_0x52940e['on'](_0x443183(0x1cd),()=>{!_0x3dccab&&(_0x3dccab=!![],_0x3c5a41());}),_0x52940e['on'](_0x443183(0x205),()=>{const _0x4aa57f=_0x443183;!_0x3dccab&&_0x52940e[_0x4aa57f(0x1ca)]&&(_0x52940e['stdin']['on'](_0x4aa57f(0x1df),()=>{}),_0x52940e[_0x4aa57f(0x1ca)][_0x4aa57f(0x200)](_0x53266f),_0x52940e[_0x4aa57f(0x1ca)][_0x4aa57f(0x1dc)]());}),!_0x52940e[_0x443183(0x1ca)]&&(!_0x3dccab&&(_0x3dccab=!![],console[_0x443183(0x1de)](_0x53266f),_0x3c5a41()));}):(console['log'](_0x53266f),Promise[_0x510ad6(0x1e5)]());}export async function handleSDKOutput(_0x992a2e,_0x55fd53){const _0x5d9748=a95_0x7640,_0xb21fb7=resolveOutputOptions(_0x55fd53),_0x59ebe6=await formatSDKOutput(_0x992a2e,_0xb21fb7);await writeOutput(_0x59ebe6,_0xb21fb7[_0x5d9748(0x201)]||undefined,_0xb21fb7[_0x5d9748(0x1f9)]);}export async function handleQueryOutput(_0x5431ae,_0x4f4c74){const _0x29a8ff=a95_0x7640,_0x19924f=resolveOutputOptions(_0x4f4c74),_0x15dea9=await formatQueryOutput(_0x5431ae,_0x19924f);await writeOutput(_0x15dea9,_0x19924f[_0x29a8ff(0x201)]||undefined,_0x19924f['format']);}async function formatSingleObject(_0x30766c,_0x2b518f){const _0x36a0bf=a95_0x7640,{format:_0x89892b,color:_0xac2aa1,noColor:_0x5d9548}=_0x2b518f,_0x1150a0={'color':_0xac2aa1,'noColor':_0x5d9548};if(_0x89892b===_0x36a0bf(0x1d4)){if(shouldUseColor(_0x1150a0))return colorizeJSON(_0x30766c,_0x1150a0);return JSON[_0x36a0bf(0x1c9)](_0x30766c,null,0x2);}else{if(_0x89892b===_0x36a0bf(0x1db)){if(shouldUseColor(_0x1150a0))return colorizeJSONCompact(_0x30766c,_0x1150a0);return JSON[_0x36a0bf(0x1c9)](_0x30766c);}else{if(_0x89892b===_0x36a0bf(0x1f8))return Object[_0x36a0bf(0x1c4)](_0x30766c)[_0x36a0bf(0x1d8)](([_0x2f56f0,_0xd86f50])=>_0x2f56f0+'\x09'+_0xd86f50)[_0x36a0bf(0x1f1)]('\x0a');else{const _0x3ef9ae=Object[_0x36a0bf(0x1c4)](_0x30766c);if(_0x3ef9ae['length']===0x0)return _0x36a0bf(0x1ed);const _0x113c81=_0x30766c[_0x36a0bf(0x1d0)],_0x250472=_0x30766c['query'],_0x190c5d=_0x30766c[_0x36a0bf(0x1da)],_0x262910=_0x30766c[_0x36a0bf(0x1e2)],_0x3594dc=_0x250472?typeof _0x250472==='string'?_0x250472:JSON[_0x36a0bf(0x1c9)](_0x250472,null,0x2):undefined,_0x3a9582=_0x190c5d&&Object[_0x36a0bf(0x1fb)](_0x190c5d)[_0x36a0bf(0x1e8)]>0x0?JSON['stringify'](_0x190c5d,null,0x2):undefined,_0x106dbe=_0x262910&&Object[_0x36a0bf(0x1fb)](_0x262910)['length']>0x0?JSON[_0x36a0bf(0x1c9)](_0x262910,null,0x2):undefined,_0x2579ec=_0x3ef9ae[_0x36a0bf(0x1d3)](([_0x3d1aa3])=>_0x3d1aa3!==_0x36a0bf(0x1d0)&&_0x3d1aa3!==_0x36a0bf(0x1eb)&&_0x3d1aa3!==_0x36a0bf(0x1da)&&_0x3d1aa3!=='rule'),_0x299261=Math[_0x36a0bf(0x1e6)](..._0x2579ec[_0x36a0bf(0x1d8)](([_0x1a746c])=>_0x1a746c[_0x36a0bf(0x1e8)])),_0x305f17=Math[_0x36a0bf(0x1e6)](..._0x2579ec[_0x36a0bf(0x1d8)](([,_0x6e1509])=>{const _0x1ec5e1=_0x36a0bf;try{const _0x51b55c=_0x6e1509===null||_0x6e1509===undefined?'':typeof _0x6e1509===_0x1ec5e1(0x1ea)?JSON['stringify'](_0x6e1509):String(_0x6e1509),_0x4ceeaf=_0x51b55c[_0x1ec5e1(0x20a)]('\x0a');return Math[_0x1ec5e1(0x1e6)](..._0x4ceeaf[_0x1ec5e1(0x1d8)](_0x2cfa51=>_0x2cfa51[_0x1ec5e1(0x1e8)]),0x0);}catch{return 0x0;}}),0x14),_0x56094c=[];_0x56094c[_0x36a0bf(0x1f3)](colorBorder('┌─'+'─'[_0x36a0bf(0x206)](_0x299261)+_0x36a0bf(0x1e3)+'─'[_0x36a0bf(0x206)](_0x305f17)+'─┐',_0x1150a0)),_0x2579ec['forEach'](([_0x22aad7,_0x2bf2f7])=>{const _0x3bd620=_0x36a0bf;let _0x5acf9b;try{_0x5acf9b=_0x2bf2f7===null||_0x2bf2f7===undefined?'':typeof _0x2bf2f7===_0x3bd620(0x1ea)?JSON[_0x3bd620(0x1c9)](_0x2bf2f7):String(_0x2bf2f7);}catch{_0x5acf9b=_0x3bd620(0x207);}const _0x36f2dd=_0x22aad7[_0x3bd620(0x1dd)](_0x299261),_0x352750=_0x5acf9b[_0x3bd620(0x20a)]('\x0a');_0x352750[_0x3bd620(0x1d9)]((_0x23c9ad,_0x445d82)=>{const _0x366781=_0x3bd620,_0x1b52aa=colorBorder('│',_0x1150a0);_0x445d82===0x0?_0x56094c[_0x366781(0x1f3)](_0x1b52aa+'\x20'+_0x36f2dd+'\x20'+_0x1b52aa+'\x20'+_0x23c9ad[_0x366781(0x1dd)](_0x305f17)+'\x20'+_0x1b52aa):_0x56094c['push'](_0x1b52aa+'\x20'+'\x20'['repeat'](_0x299261)+'\x20'+_0x1b52aa+'\x20'+_0x23c9ad[_0x366781(0x1dd)](_0x305f17)+'\x20'+_0x1b52aa);});}),_0x56094c['push'](colorBorder('└─'+'─'[_0x36a0bf(0x206)](_0x299261)+_0x36a0bf(0x1fe)+'─'[_0x36a0bf(0x206)](_0x305f17)+'─┘',_0x1150a0));_0x3594dc&&(_0x56094c[_0x36a0bf(0x1f3)](''),_0x56094c['push'](String(a95_0x8d083d[_0x36a0bf(0x1d5)][_0x36a0bf(0x1c3)](_0x36a0bf(0x1d6)))),_0x56094c[_0x36a0bf(0x1f3)](_0x3594dc));_0x3a9582&&(_0x56094c[_0x36a0bf(0x1f3)](''),_0x56094c[_0x36a0bf(0x1f3)](String(a95_0x8d083d['blue'][_0x36a0bf(0x1c3)](_0x36a0bf(0x1c7)))),_0x56094c[_0x36a0bf(0x1f3)](_0x3a9582));_0x106dbe&&(_0x56094c[_0x36a0bf(0x1f3)](''),_0x56094c['push'](String(a95_0x8d083d[_0x36a0bf(0x1f0)][_0x36a0bf(0x1c3)](_0x36a0bf(0x1ec)))),_0x56094c[_0x36a0bf(0x1f3)](_0x106dbe));if(_0x113c81){if(_0x113c81['stderr']){_0x56094c[_0x36a0bf(0x1f3)](''),_0x56094c['push'](String(a95_0x8d083d[_0x36a0bf(0x208)][_0x36a0bf(0x1c3)](_0x36a0bf(0x203))));const _0x252665=_0x113c81[_0x36a0bf(0x1f5)][_0x36a0bf(0x20a)]('\x0a');_0x252665[_0x36a0bf(0x1d9)](_0x494c24=>{_0x494c24['trim']()&&_0x56094c['push'](_0x494c24);});}if(_0x113c81['cmdout']){_0x56094c[_0x36a0bf(0x1f3)](''),_0x56094c[_0x36a0bf(0x1f3)](String(a95_0x8d083d[_0x36a0bf(0x1cc)][_0x36a0bf(0x1c3)](_0x36a0bf(0x1ff))));const _0x229cba=_0x113c81[_0x36a0bf(0x20c)]['split']('\x0a');_0x229cba[_0x36a0bf(0x1d9)](_0x23e102=>{const _0x18a4e2=_0x36a0bf;_0x23e102['trim']()&&_0x56094c[_0x18a4e2(0x1f3)](_0x23e102);});}}return _0x56094c[_0x36a0bf(0x1f1)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x3bc64b,_0x3de683){const _0x1214fd=a95_0x7640;if(_0x3de683[_0x1214fd(0x1f9)]===_0x1214fd(0x1d2)){await handleSDKOutput([_0x3bc64b],_0x3de683);return;}const _0x11f7c8=resolveOutputOptions(_0x3de683),_0x11696f=await formatSingleObject(_0x3bc64b,_0x11f7c8);await writeOutput(_0x11696f,_0x11f7c8[_0x1214fd(0x201)]||undefined,_0x11f7c8[_0x1214fd(0x1f9)]);}
@@ -1 +1 @@
1
- function a96_0x5427(){const _0xfc183=['30NWEvZA','1538901qVUCuq','55880mtklxa','2569456NjZWXo','number','371864dtpdlW','4453120entStg','782975aXFPyr','414897CbreEz','21fdgfQG','8bFHFLc'];a96_0x5427=function(){return _0xfc183;};return a96_0x5427();}(function(_0x409aa3,_0x5ab02e){const _0x59ddc2=a96_0x222c,_0x4c8614=_0x409aa3();while(!![]){try{const _0x57ba44=parseInt(_0x59ddc2(0x77))/0x1+-parseInt(_0x59ddc2(0x74))/0x2*(parseInt(_0x59ddc2(0x70))/0x3)+-parseInt(_0x59ddc2(0x71))/0x4*(-parseInt(_0x59ddc2(0x6e))/0x5)+-parseInt(_0x59ddc2(0x72))/0x6*(parseInt(_0x59ddc2(0x6f))/0x7)+parseInt(_0x59ddc2(0x75))/0x8+parseInt(_0x59ddc2(0x73))/0x9+-parseInt(_0x59ddc2(0x6d))/0xa;if(_0x57ba44===_0x5ab02e)break;else _0x4c8614['push'](_0x4c8614['shift']());}catch(_0x48c0db){_0x4c8614['push'](_0x4c8614['shift']());}}}(a96_0x5427,0x3a96a));export const DEFAULT_DISPLAY_LIMIT=0x28;function a96_0x222c(_0x48b1e9,_0x3694ae){_0x48b1e9=_0x48b1e9-0x6d;const _0x5427a9=a96_0x5427();let _0x222c6c=_0x5427a9[_0x48b1e9];return _0x222c6c;}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x449731,_0x3b023f){const _0x38a8dd=a96_0x222c;if(_0x449731===undefined)return _0x3b023f;if(typeof _0x449731===_0x38a8dd(0x76))return _0x449731;return parseInt(_0x449731,0xa);}
1
+ function a96_0x8632(){const _0x231ba7=['5106744nTDgfI','4486kRvBmk','18479527evCXMu','2460108OsUdiQ','1319109uDEiKy','20fnQMay','840828cDzxfT','number','4330904INNsOp','10GGmKlK','14DMXCBP','89sbiWYi'];a96_0x8632=function(){return _0x231ba7;};return a96_0x8632();}(function(_0x4446b7,_0x549e13){const _0x2db89f=a96_0x5077,_0x110eee=_0x4446b7();while(!![]){try{const _0x38ebd8=-parseInt(_0x2db89f(0x158))/0x1*(-parseInt(_0x2db89f(0x15a))/0x2)+parseInt(_0x2db89f(0x15d))/0x3+-parseInt(_0x2db89f(0x15c))/0x4+parseInt(_0x2db89f(0x15e))/0x5*(parseInt(_0x2db89f(0x15f))/0x6)+parseInt(_0x2db89f(0x157))/0x7*(parseInt(_0x2db89f(0x161))/0x8)+parseInt(_0x2db89f(0x159))/0x9*(parseInt(_0x2db89f(0x162))/0xa)+-parseInt(_0x2db89f(0x15b))/0xb;if(_0x38ebd8===_0x549e13)break;else _0x110eee['push'](_0x110eee['shift']());}catch(_0x202277){_0x110eee['push'](_0x110eee['shift']());}}}(a96_0x8632,0x87820));function a96_0x5077(_0x2c678d,_0x4ae845){_0x2c678d=_0x2c678d-0x157;const _0x8632df=a96_0x8632();let _0x50772d=_0x8632df[_0x2c678d];return _0x50772d;}export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x1eb51c,_0x394251){const _0x5542f2=a96_0x5077;if(_0x1eb51c===undefined)return _0x394251;if(typeof _0x1eb51c===_0x5542f2(0x160))return _0x1eb51c;return parseInt(_0x1eb51c,0xa);}
@@ -1 +1 @@
1
- (function(_0x34d24e,_0x25ce90){const _0x495775=a97_0x3f4d,_0xf7f165=_0x34d24e();while(!![]){try{const _0x58a2e3=parseInt(_0x495775(0x1cb))/0x1*(parseInt(_0x495775(0x1d5))/0x2)+parseInt(_0x495775(0x1bf))/0x3+parseInt(_0x495775(0x1c5))/0x4+-parseInt(_0x495775(0x1be))/0x5*(-parseInt(_0x495775(0x1c8))/0x6)+-parseInt(_0x495775(0x1cf))/0x7*(parseInt(_0x495775(0x1bc))/0x8)+-parseInt(_0x495775(0x1d7))/0x9*(parseInt(_0x495775(0x1d3))/0xa)+-parseInt(_0x495775(0x1d2))/0xb;if(_0x58a2e3===_0x25ce90)break;else _0xf7f165['push'](_0xf7f165['shift']());}catch(_0x5edd71){_0xf7f165['push'](_0xf7f165['shift']());}}}(a97_0x6d9d,0xbe430));import a97_0x45e3de from'chalk';export function generateDiff(_0x2c00fb,_0x10de8e){const _0x1b04e1=a97_0x3f4d,_0x4813b9=_0x2c00fb[_0x1b04e1(0x1da)]('\x0a'),_0x2f6989=_0x10de8e[_0x1b04e1(0x1da)]('\x0a'),_0x2c0141=[],_0x4f218f=computeLCS(_0x4813b9,_0x2f6989);let _0x1e68af=0x0,_0x2a8bae=0x0,_0x3b38db=0x0;while(_0x1e68af<_0x4813b9[_0x1b04e1(0x1d6)]||_0x2a8bae<_0x2f6989['length']){if(_0x3b38db<_0x4f218f[_0x1b04e1(0x1d6)]&&_0x1e68af<_0x4813b9[_0x1b04e1(0x1d6)]&&_0x4813b9[_0x1e68af]===_0x4f218f[_0x3b38db])_0x2a8bae<_0x2f6989['length']&&_0x2f6989[_0x2a8bae]===_0x4f218f[_0x3b38db]?(_0x2c0141['push']({'type':_0x1b04e1(0x1d0),'content':_0x4813b9[_0x1e68af]}),_0x1e68af++,_0x2a8bae++,_0x3b38db++):(_0x2c0141['push']({'type':_0x1b04e1(0x1cc),'content':_0x2f6989[_0x2a8bae]}),_0x2a8bae++);else{if(_0x3b38db<_0x4f218f[_0x1b04e1(0x1d6)]&&_0x2a8bae<_0x2f6989[_0x1b04e1(0x1d6)]&&_0x2f6989[_0x2a8bae]===_0x4f218f[_0x3b38db])_0x2c0141[_0x1b04e1(0x1c9)]({'type':'removed','content':_0x4813b9[_0x1e68af]}),_0x1e68af++;else{if(_0x1e68af<_0x4813b9[_0x1b04e1(0x1d6)]&&(_0x3b38db>=_0x4f218f['length']||_0x4813b9[_0x1e68af]!==_0x4f218f[_0x3b38db]))_0x2c0141[_0x1b04e1(0x1c9)]({'type':_0x1b04e1(0x1c6),'content':_0x4813b9[_0x1e68af]}),_0x1e68af++;else _0x2a8bae<_0x2f6989[_0x1b04e1(0x1d6)]&&(_0x2c0141[_0x1b04e1(0x1c9)]({'type':'added','content':_0x2f6989[_0x2a8bae]}),_0x2a8bae++);}}}return _0x2c0141;}function computeLCS(_0x4795b7,_0x23d9ad){const _0x2fcb69=a97_0x3f4d,_0x2388c3=_0x4795b7['length'],_0x546ca0=_0x23d9ad[_0x2fcb69(0x1d6)],_0x41a247=Array(_0x2388c3+0x1)['fill'](null)[_0x2fcb69(0x1c4)](()=>Array(_0x546ca0+0x1)['fill'](0x0));for(let _0x3558a9=0x1;_0x3558a9<=_0x2388c3;_0x3558a9++){for(let _0x514eb8=0x1;_0x514eb8<=_0x546ca0;_0x514eb8++){_0x4795b7[_0x3558a9-0x1]===_0x23d9ad[_0x514eb8-0x1]?_0x41a247[_0x3558a9][_0x514eb8]=_0x41a247[_0x3558a9-0x1][_0x514eb8-0x1]+0x1:_0x41a247[_0x3558a9][_0x514eb8]=Math[_0x2fcb69(0x1cd)](_0x41a247[_0x3558a9-0x1][_0x514eb8],_0x41a247[_0x3558a9][_0x514eb8-0x1]);}}const _0x457b2e=[];let _0x14ebab=_0x2388c3,_0x2ac359=_0x546ca0;while(_0x14ebab>0x0&&_0x2ac359>0x0){if(_0x4795b7[_0x14ebab-0x1]===_0x23d9ad[_0x2ac359-0x1])_0x457b2e['unshift'](_0x4795b7[_0x14ebab-0x1]),_0x14ebab--,_0x2ac359--;else _0x41a247[_0x14ebab-0x1][_0x2ac359]>_0x41a247[_0x14ebab][_0x2ac359-0x1]?_0x14ebab--:_0x2ac359--;}return _0x457b2e;}export function formatDiffWithColors(_0x336c06,_0x56b968=0x3){const _0xb52975=a97_0x3f4d,_0x672ef1=new Set();_0x336c06[_0xb52975(0x1c1)]((_0x24897a,_0xa9767)=>{const _0x3f1200=_0xb52975;_0x24897a[_0x3f1200(0x1ce)]!==_0x3f1200(0x1d0)&&_0x672ef1[_0x3f1200(0x1ca)](_0xa9767);});if(_0x672ef1[_0xb52975(0x1c0)]===0x0)return'';const _0x45d94a=new Set();for(const _0x245d8f of _0x672ef1){for(let _0x2e64a1=Math[_0xb52975(0x1cd)](0x0,_0x245d8f-_0x56b968);_0x2e64a1<=Math[_0xb52975(0x1db)](_0x336c06[_0xb52975(0x1d6)]-0x1,_0x245d8f+_0x56b968);_0x2e64a1++){_0x45d94a[_0xb52975(0x1ca)](_0x2e64a1);}}const _0x4ce5a8=[];let _0x33df5f=-0x1;const _0xbebf6c=_0x336c06[_0xb52975(0x1d6)],_0x449edf=Math[_0xb52975(0x1cd)](0x3,String(_0xbebf6c)[_0xb52975(0x1d6)]),_0x34a73d=[];let _0x4369fb=0x0,_0x2bfd17=0x0;for(const _0x30c099 of _0x336c06){if(_0x30c099['type']===_0xb52975(0x1c6))_0x4369fb++,_0x34a73d[_0xb52975(0x1c9)]({'old':_0x4369fb,'new':0x0});else _0x30c099[_0xb52975(0x1ce)]==='added'?(_0x2bfd17++,_0x34a73d['push']({'old':0x0,'new':_0x2bfd17})):(_0x4369fb++,_0x2bfd17++,_0x34a73d[_0xb52975(0x1c9)]({'old':_0x4369fb,'new':_0x2bfd17}));}for(let _0x13a5c=0x0;_0x13a5c<_0x336c06[_0xb52975(0x1d6)];_0x13a5c++){if(!_0x45d94a['has'](_0x13a5c))continue;_0x33df5f!==-0x1&&_0x13a5c>_0x33df5f+0x1&&_0x4ce5a8['push'](a97_0x45e3de[_0xb52975(0x1d1)]('\x20\x20...'));_0x33df5f=_0x13a5c;const _0x5b5243=_0x336c06[_0x13a5c],_0x378a19=_0x34a73d[_0x13a5c],_0x148767=_0x378a19['old']>0x0?String(_0x378a19['old'])['padStart'](_0x449edf):'\x20'[_0xb52975(0x1c3)](_0x449edf),_0x575afc=_0x378a19['new']>0x0?String(_0x378a19['new'])[_0xb52975(0x1c7)](_0x449edf):'\x20'[_0xb52975(0x1c3)](_0x449edf);switch(_0x5b5243['type']){case _0xb52975(0x1c6):_0x4ce5a8['push'](a97_0x45e3de[_0xb52975(0x1d9)](_0x148767+'\x20'+_0x575afc+'\x20-\x20'+_0x5b5243[_0xb52975(0x1c2)]));break;case _0xb52975(0x1cc):_0x4ce5a8[_0xb52975(0x1c9)](a97_0x45e3de['green'](_0x148767+'\x20'+_0x575afc+'\x20+\x20'+_0x5b5243[_0xb52975(0x1c2)]));break;default:_0x4ce5a8[_0xb52975(0x1c9)](a97_0x45e3de[_0xb52975(0x1bd)](_0x148767+'\x20'+_0x575afc+_0xb52975(0x1d4)+_0x5b5243[_0xb52975(0x1c2)]));break;}}return _0x4ce5a8['join']('\x0a');}function a97_0x3f4d(_0x1d06dd,_0x50d17c){_0x1d06dd=_0x1d06dd-0x1bc;const _0x6d9dbc=a97_0x6d9d();let _0x3f4d3b=_0x6d9dbc[_0x1d06dd];return _0x3f4d3b;}function a97_0x6d9d(){const _0x4d9811=['10QwDQkJ','\x20\x20\x20','4IrvPzw','length','4454172VAgfso','some','red','split','min','56wxBmct','dim','290Cahyow','2446560PDGhfG','size','forEach','content','repeat','map','4762620mNBubQ','removed','padStart','119862yMaFne','push','add','276143saAjzd','added','max','type','1127483pPYwRP','unchanged','cyan','14469664RSPvKa'];a97_0x6d9d=function(){return _0x4d9811;};return a97_0x6d9d();}export function hasChanges(_0x3d4fce){const _0xaa2af8=a97_0x3f4d;return _0x3d4fce[_0xaa2af8(0x1d8)](_0x12cf84=>_0x12cf84['type']!==_0xaa2af8(0x1d0));}
1
+ (function(_0xd0ef03,_0x1a1810){const _0x30c41d=a97_0x4434,_0x5ba8af=_0xd0ef03();while(!![]){try{const _0x5b0172=-parseInt(_0x30c41d(0xae))/0x1*(parseInt(_0x30c41d(0xcd))/0x2)+-parseInt(_0x30c41d(0xb9))/0x3+parseInt(_0x30c41d(0xbe))/0x4+parseInt(_0x30c41d(0xc9))/0x5*(parseInt(_0x30c41d(0xca))/0x6)+-parseInt(_0x30c41d(0xb2))/0x7*(parseInt(_0x30c41d(0xc4))/0x8)+-parseInt(_0x30c41d(0xcb))/0x9*(-parseInt(_0x30c41d(0xc0))/0xa)+parseInt(_0x30c41d(0xaa))/0xb*(parseInt(_0x30c41d(0xbd))/0xc);if(_0x5b0172===_0x1a1810)break;else _0x5ba8af['push'](_0x5ba8af['shift']());}catch(_0x5ae756){_0x5ba8af['push'](_0x5ba8af['shift']());}}}(a97_0x20be,0x862fc));function a97_0x20be(){const _0x3f66ca=['\x20\x20...','content','size','367645mGXwQf','78EhtwDU','3637134NQVGVW','min','14eSiXBI','\x20\x20\x20','removed','length','unchanged','3839ISANiC','split','map','green','11794VLDJxg','old','has','padStart','4616983hKHrHA','type','dim','\x20-\x20','add','forEach','join','2380575zmJgUS','push','some','fill','19452gjSZks','638192cmiPpn','repeat','10LCxPnC','max','new','cyan','8AGYcQK','added'];a97_0x20be=function(){return _0x3f66ca;};return a97_0x20be();}import a97_0x371e7e from'chalk';export function generateDiff(_0x19f110,_0x1359cc){const _0x29a456=a97_0x4434,_0x21dd7e=_0x19f110[_0x29a456(0xab)]('\x0a'),_0x15b0d6=_0x1359cc[_0x29a456(0xab)]('\x0a'),_0x4959ba=[],_0x45d9ce=computeLCS(_0x21dd7e,_0x15b0d6);let _0x2a4027=0x0,_0x146f26=0x0,_0x74b64e=0x0;while(_0x2a4027<_0x21dd7e[_0x29a456(0xa8)]||_0x146f26<_0x15b0d6[_0x29a456(0xa8)]){if(_0x74b64e<_0x45d9ce[_0x29a456(0xa8)]&&_0x2a4027<_0x21dd7e['length']&&_0x21dd7e[_0x2a4027]===_0x45d9ce[_0x74b64e])_0x146f26<_0x15b0d6[_0x29a456(0xa8)]&&_0x15b0d6[_0x146f26]===_0x45d9ce[_0x74b64e]?(_0x4959ba[_0x29a456(0xba)]({'type':_0x29a456(0xa9),'content':_0x21dd7e[_0x2a4027]}),_0x2a4027++,_0x146f26++,_0x74b64e++):(_0x4959ba[_0x29a456(0xba)]({'type':_0x29a456(0xc5),'content':_0x15b0d6[_0x146f26]}),_0x146f26++);else{if(_0x74b64e<_0x45d9ce[_0x29a456(0xa8)]&&_0x146f26<_0x15b0d6[_0x29a456(0xa8)]&&_0x15b0d6[_0x146f26]===_0x45d9ce[_0x74b64e])_0x4959ba['push']({'type':_0x29a456(0xa7),'content':_0x21dd7e[_0x2a4027]}),_0x2a4027++;else{if(_0x2a4027<_0x21dd7e[_0x29a456(0xa8)]&&(_0x74b64e>=_0x45d9ce[_0x29a456(0xa8)]||_0x21dd7e[_0x2a4027]!==_0x45d9ce[_0x74b64e]))_0x4959ba[_0x29a456(0xba)]({'type':_0x29a456(0xa7),'content':_0x21dd7e[_0x2a4027]}),_0x2a4027++;else _0x146f26<_0x15b0d6[_0x29a456(0xa8)]&&(_0x4959ba[_0x29a456(0xba)]({'type':_0x29a456(0xc5),'content':_0x15b0d6[_0x146f26]}),_0x146f26++);}}}return _0x4959ba;}function computeLCS(_0x3ef9b2,_0x1f8bc8){const _0x41987d=a97_0x4434,_0x52ee4f=_0x3ef9b2[_0x41987d(0xa8)],_0x2cb597=_0x1f8bc8[_0x41987d(0xa8)],_0x42b113=Array(_0x52ee4f+0x1)[_0x41987d(0xbc)](null)[_0x41987d(0xac)](()=>Array(_0x2cb597+0x1)[_0x41987d(0xbc)](0x0));for(let _0x428ff0=0x1;_0x428ff0<=_0x52ee4f;_0x428ff0++){for(let _0x248983=0x1;_0x248983<=_0x2cb597;_0x248983++){_0x3ef9b2[_0x428ff0-0x1]===_0x1f8bc8[_0x248983-0x1]?_0x42b113[_0x428ff0][_0x248983]=_0x42b113[_0x428ff0-0x1][_0x248983-0x1]+0x1:_0x42b113[_0x428ff0][_0x248983]=Math['max'](_0x42b113[_0x428ff0-0x1][_0x248983],_0x42b113[_0x428ff0][_0x248983-0x1]);}}const _0xc72da2=[];let _0x342c34=_0x52ee4f,_0x13cafb=_0x2cb597;while(_0x342c34>0x0&&_0x13cafb>0x0){if(_0x3ef9b2[_0x342c34-0x1]===_0x1f8bc8[_0x13cafb-0x1])_0xc72da2['unshift'](_0x3ef9b2[_0x342c34-0x1]),_0x342c34--,_0x13cafb--;else _0x42b113[_0x342c34-0x1][_0x13cafb]>_0x42b113[_0x342c34][_0x13cafb-0x1]?_0x342c34--:_0x13cafb--;}return _0xc72da2;}function a97_0x4434(_0x1fe483,_0x2bfa1e){_0x1fe483=_0x1fe483-0xa6;const _0x20be05=a97_0x20be();let _0x4434b9=_0x20be05[_0x1fe483];return _0x4434b9;}export function formatDiffWithColors(_0x37bec6,_0x1a8200=0x3){const _0x3158fa=a97_0x4434,_0x4a867a=new Set();_0x37bec6[_0x3158fa(0xb7)]((_0x3af477,_0x2fadbd)=>{const _0x5b2abd=_0x3158fa;_0x3af477[_0x5b2abd(0xb3)]!=='unchanged'&&_0x4a867a['add'](_0x2fadbd);});if(_0x4a867a[_0x3158fa(0xc8)]===0x0)return'';const _0x643c6b=new Set();for(const _0x59d157 of _0x4a867a){for(let _0xdcc4bf=Math[_0x3158fa(0xc1)](0x0,_0x59d157-_0x1a8200);_0xdcc4bf<=Math[_0x3158fa(0xcc)](_0x37bec6[_0x3158fa(0xa8)]-0x1,_0x59d157+_0x1a8200);_0xdcc4bf++){_0x643c6b[_0x3158fa(0xb6)](_0xdcc4bf);}}const _0x2e884a=[];let _0x13ccef=-0x1;const _0x20fadb=_0x37bec6['length'],_0x3acbe5=Math['max'](0x3,String(_0x20fadb)['length']),_0x4f1cd7=[];let _0x5a11a1=0x0,_0x4d0d5d=0x0;for(const _0x333879 of _0x37bec6){if(_0x333879[_0x3158fa(0xb3)]===_0x3158fa(0xa7))_0x5a11a1++,_0x4f1cd7['push']({'old':_0x5a11a1,'new':0x0});else _0x333879[_0x3158fa(0xb3)]===_0x3158fa(0xc5)?(_0x4d0d5d++,_0x4f1cd7[_0x3158fa(0xba)]({'old':0x0,'new':_0x4d0d5d})):(_0x5a11a1++,_0x4d0d5d++,_0x4f1cd7[_0x3158fa(0xba)]({'old':_0x5a11a1,'new':_0x4d0d5d}));}for(let _0x1ec372=0x0;_0x1ec372<_0x37bec6[_0x3158fa(0xa8)];_0x1ec372++){if(!_0x643c6b[_0x3158fa(0xb0)](_0x1ec372))continue;_0x13ccef!==-0x1&&_0x1ec372>_0x13ccef+0x1&&_0x2e884a[_0x3158fa(0xba)](a97_0x371e7e[_0x3158fa(0xc3)](_0x3158fa(0xc6)));_0x13ccef=_0x1ec372;const _0x46b26f=_0x37bec6[_0x1ec372],_0x3d5dc1=_0x4f1cd7[_0x1ec372],_0xd3b8cd=_0x3d5dc1[_0x3158fa(0xaf)]>0x0?String(_0x3d5dc1['old'])['padStart'](_0x3acbe5):'\x20'[_0x3158fa(0xbf)](_0x3acbe5),_0x529a0d=_0x3d5dc1['new']>0x0?String(_0x3d5dc1[_0x3158fa(0xc2)])[_0x3158fa(0xb1)](_0x3acbe5):'\x20'[_0x3158fa(0xbf)](_0x3acbe5);switch(_0x46b26f[_0x3158fa(0xb3)]){case _0x3158fa(0xa7):_0x2e884a[_0x3158fa(0xba)](a97_0x371e7e['red'](_0xd3b8cd+'\x20'+_0x529a0d+_0x3158fa(0xb5)+_0x46b26f[_0x3158fa(0xc7)]));break;case _0x3158fa(0xc5):_0x2e884a[_0x3158fa(0xba)](a97_0x371e7e[_0x3158fa(0xad)](_0xd3b8cd+'\x20'+_0x529a0d+'\x20+\x20'+_0x46b26f['content']));break;default:_0x2e884a[_0x3158fa(0xba)](a97_0x371e7e[_0x3158fa(0xb4)](_0xd3b8cd+'\x20'+_0x529a0d+_0x3158fa(0xa6)+_0x46b26f['content']));break;}}return _0x2e884a[_0x3158fa(0xb8)]('\x0a');}export function hasChanges(_0x515546){const _0x3747d0=a97_0x4434;return _0x515546[_0x3747d0(0xbb)](_0xc20b09=>_0xc20b09['type']!==_0x3747d0(0xa9));}
@@ -1 +1 @@
1
- (function(_0x90a751,_0x519122){const _0x49d63b=a98_0xd146,_0x3211d5=_0x90a751();while(!![]){try{const _0x21c8d0=-parseInt(_0x49d63b(0x12b))/0x1*(-parseInt(_0x49d63b(0x14e))/0x2)+-parseInt(_0x49d63b(0x125))/0x3+-parseInt(_0x49d63b(0x13c))/0x4+-parseInt(_0x49d63b(0x132))/0x5+-parseInt(_0x49d63b(0x135))/0x6+parseInt(_0x49d63b(0x138))/0x7*(-parseInt(_0x49d63b(0x12f))/0x8)+parseInt(_0x49d63b(0x139))/0x9;if(_0x21c8d0===_0x519122)break;else _0x3211d5['push'](_0x3211d5['shift']());}catch(_0x56b479){_0x3211d5['push'](_0x3211d5['shift']());}}}(a98_0x2850,0x8768c));import a98_0x5a416f from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x5f0e71){const _0x52b26c=a98_0xd146,_0x263f2e=_0x5f0e71['columns'][_0x52b26c(0x122)](_0x24a4fe=>({'column_name':_0x24a4fe[_0x52b26c(0x137)],'column_type':_0x24a4fe[_0x52b26c(0x12d)],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x5f0e71,'columns':[{'name':'column_name','type':_0x52b26c(0x11f)},{'name':_0x52b26c(0x131),'type':_0x52b26c(0x11f)},{'name':'null','type':'varchar'},{'name':_0x52b26c(0x128),'type':_0x52b26c(0x11f)},{'name':_0x52b26c(0x123),'type':_0x52b26c(0x11f)},{'name':_0x52b26c(0x14c),'type':'varchar'}],'data':_0x263f2e};}export async function executeSchemaQuery(_0x1a0684,_0x181bdb,_0x22f893){const _0x4e6811=a98_0xd146,_0x30fdbd=_0x1a0684[_0x4e6811(0x12c)]()[_0x4e6811(0x130)](/;+$/,''),_0x14bb7e=_0x4e6811(0x11c)+_0x30fdbd+_0x4e6811(0x148);_0x22f893[_0x4e6811(0x136)]&&console[_0x4e6811(0x144)](_0x4e6811(0x13f)+_0x14bb7e);const _0x25b8c2=await withQuerySpinner(_0x4e6811(0x124),async _0x201eba=>{const _0x162bb3=_0x4e6811,_0x4e4ea4=await _0x181bdb[_0x162bb3(0x151)][_0x162bb3(0x142)](_0x14bb7e,{'catalog':'td','schema':_0x162bb3(0x140),'onJobId':_0x1cf7d5=>{const _0x3fb1aa=_0x162bb3;_0x201eba[_0x3fb1aa(0x143)](_0x1cf7d5);}});return _0x4e4ea4;},{'verbose':_0x22f893[_0x4e6811(0x136)]});return buildSchemaResult(_0x25b8c2[_0x4e6811(0x141)]);}function a98_0xd146(_0x1c3b67,_0x5b6cc8){_0x1c3b67=_0x1c3b67-0x11c;const _0x28503a=a98_0x2850();let _0xd146e2=_0x28503a[_0x1c3b67];return _0xd146e2;}export function displayFieldsHumanReadable(_0x5dd050,_0x3ef835){const _0x14c327=a98_0xd146,_0x3c2673=_0x5dd050['filter'](_0xaa312a=>_0xaa312a[_0x14c327(0x14b)]==='attribute'),_0x59c63d=_0x5dd050[_0x14c327(0x14f)](_0x1ad0c0=>_0x1ad0c0[_0x14c327(0x14b)]===_0x14c327(0x13b)),_0x3fd5f5=new Map();for(const _0x43c616 of _0x3c2673){const _0x36529a=_0x43c616[_0x14c327(0x129)]||_0x43c616[_0x14c327(0x11e)]||'Unknown',_0x59801c=_0x3fd5f5['get'](_0x36529a);_0x59801c?_0x59801c[_0x14c327(0x134)][_0x14c327(0x13a)](_0x43c616):_0x3fd5f5['set'](_0x36529a,{'displayName':_0x36529a,'tableName':_0x43c616['parentTableName'],'fields':[_0x43c616]});}const _0x204c3f=new Map();for(const _0x5948cb of _0x59c63d){const _0x428975=_0x5948cb[_0x14c327(0x13d)]||_0x14c327(0x12e),_0x2b4f9c=_0x204c3f[_0x14c327(0x147)](_0x428975)||[];_0x2b4f9c[_0x14c327(0x13a)](_0x5948cb),_0x204c3f[_0x14c327(0x127)](_0x428975,_0x2b4f9c);}console[_0x14c327(0x144)]('\x0a'+a98_0x5a416f[_0x14c327(0x126)](_0x3ef835));if(_0x3fd5f5[_0x14c327(0x121)]>0x0){console[_0x14c327(0x144)]('\x0a'+a98_0x5a416f[_0x14c327(0x133)]('Attributes'));const _0x42303a=[..._0x3fd5f5[_0x14c327(0x149)]()][_0x14c327(0x150)]((_0x22b18e,_0x2d30a7)=>_0x22b18e[0x0]['localeCompare'](_0x2d30a7[0x0]));for(const [,_0x2fecb1]of _0x42303a){const _0x3d8510=_0x2fecb1['tableName']&&_0x2fecb1['tableName']!==_0x2fecb1[_0x14c327(0x12a)]?'\x20'+a98_0x5a416f[_0x14c327(0x133)]('('+_0x2fecb1['tableName']+')'):'';console[_0x14c327(0x144)]('\x20\x20'+a98_0x5a416f[_0x14c327(0x126)](_0x2fecb1[_0x14c327(0x12a)])+_0x3d8510);const _0x3725cc=[..._0x2fecb1['fields']]['sort']((_0x11150b,_0x1058bc)=>_0x11150b['name'][_0x14c327(0x11d)](_0x1058bc[_0x14c327(0x137)]));for(const _0x2923ca of _0x3725cc){const _0x1ca5bb=_0x2923ca[_0x14c327(0x13e)]&&_0x2923ca[_0x14c327(0x13e)]!==_0x2923ca['name']?'\x20'+a98_0x5a416f[_0x14c327(0x133)]('('+_0x2923ca[_0x14c327(0x13e)]+')'):'';console[_0x14c327(0x144)](_0x14c327(0x120)+_0x2923ca[_0x14c327(0x137)]+_0x1ca5bb+':\x20'+a98_0x5a416f[_0x14c327(0x145)](_0x2923ca['type']));}}}if(_0x204c3f[_0x14c327(0x121)]>0x0){console[_0x14c327(0x144)]('\x0a'+a98_0x5a416f[_0x14c327(0x133)](_0x14c327(0x14a)));const _0x36ed87=[..._0x204c3f[_0x14c327(0x149)]()][_0x14c327(0x150)]((_0x21b2fc,_0xbafa78)=>_0x21b2fc[0x0][_0x14c327(0x11d)](_0xbafa78[0x0]));for(const [_0x247d55,_0x49626a]of _0x36ed87){const _0x4e5838=_0x49626a[0x0],_0x5d03c5=_0x4e5838?.['parentTableName']||'';console['error']('\x20\x20'+a98_0x5a416f['bold'](_0x247d55)+(_0x5d03c5?'\x20'+a98_0x5a416f['dim']('('+_0x5d03c5+')'):''));const _0x16c82=[..._0x49626a][_0x14c327(0x150)]((_0x4dda83,_0x199dba)=>_0x4dda83['name']['localeCompare'](_0x199dba[_0x14c327(0x137)]));for(const _0xf38b3d of _0x16c82){const _0x25bcda=_0xf38b3d[_0x14c327(0x137)][_0x14c327(0x146)](_0x247d55+'.')?_0xf38b3d[_0x14c327(0x137)]['slice'](_0x247d55[_0x14c327(0x14d)]+0x1):_0xf38b3d[_0x14c327(0x137)],_0xa49f18=_0xf38b3d['parentColumn']&&_0xf38b3d[_0x14c327(0x13e)]!==_0x25bcda?'\x20'+a98_0x5a416f[_0x14c327(0x133)]('('+_0xf38b3d[_0x14c327(0x13e)]+')'):'';console[_0x14c327(0x144)](_0x14c327(0x120)+_0x25bcda+_0xa49f18+':\x20'+a98_0x5a416f['cyan'](_0xf38b3d['type']));}}}console['error']('');}function a98_0x2850(){const _0x11b34e=['\x20\x20\x20\x20','size','map','default','Fetching\x20schema...','2939643dOrVxw','bold','set','key','groupingName','displayName','59qEGAwM','trim','type','Unknown','3572336WgbXbs','replace','column_type','1799050RRZScl','dim','fields','3577374iqxonx','verbose','name','7MCaGYG','21126132CPescb','push','behavior','1209556tbLNsn','behaviorName','parentColumn','Schema\x20query:\x0a','information_schema','data','execute','setJobId','error','cyan','startsWith','get','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','entries','Behaviors','source','extra','length','30242wYxUkE','filter','sort','query','SELECT\x20*\x20FROM\x20(\x0a','localeCompare','parentTableName','varchar'];a98_0x2850=function(){return _0x11b34e;};return a98_0x2850();}
1
+ (function(_0x30c9c5,_0x39def9){const _0x37fd10=a98_0x19a0,_0x21d54f=_0x30c9c5();while(!![]){try{const _0x3d2312=-parseInt(_0x37fd10(0x150))/0x1*(parseInt(_0x37fd10(0x147))/0x2)+-parseInt(_0x37fd10(0x144))/0x3+-parseInt(_0x37fd10(0x116))/0x4+-parseInt(_0x37fd10(0x123))/0x5*(-parseInt(_0x37fd10(0x126))/0x6)+parseInt(_0x37fd10(0x143))/0x7*(-parseInt(_0x37fd10(0x135))/0x8)+-parseInt(_0x37fd10(0x14e))/0x9*(parseInt(_0x37fd10(0x137))/0xa)+parseInt(_0x37fd10(0x11d))/0xb*(parseInt(_0x37fd10(0x138))/0xc);if(_0x3d2312===_0x39def9)break;else _0x21d54f['push'](_0x21d54f['shift']());}catch(_0x27bfe2){_0x21d54f['push'](_0x21d54f['shift']());}}}(a98_0x3c40,0x5c3a9));import a98_0x2acdae from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x35b829){const _0x3e712f=a98_0x19a0,_0x12975b=_0x35b829[_0x3e712f(0x13b)][_0x3e712f(0x125)](_0x2a3d01=>({'column_name':_0x2a3d01[_0x3e712f(0x139)],'column_type':_0x2a3d01[_0x3e712f(0x12b)],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x35b829,'columns':[{'name':_0x3e712f(0x131),'type':_0x3e712f(0x11c)},{'name':_0x3e712f(0x142),'type':'varchar'},{'name':_0x3e712f(0x120),'type':_0x3e712f(0x11c)},{'name':_0x3e712f(0x117),'type':_0x3e712f(0x11c)},{'name':_0x3e712f(0x14d),'type':_0x3e712f(0x11c)},{'name':_0x3e712f(0x13a),'type':'varchar'}],'data':_0x12975b};}function a98_0x3c40(){const _0x17af1a=['execute','trim','10315cIMkiX','Schema\x20query:\x0a','map','1452ByjEXB','tableName','push','verbose','fields','type','cyan','parentColumn','attribute','Fetching\x20schema...','Unknown','column_name','sort','set','Behaviors','14496Jtpocx','size','392990oBDFLx','60MrHJew','name','extra','columns','displayName','data','SELECT\x20*\x20FROM\x20(\x0a','setJobId','\x20\x20\x20\x20','query','column_type','896vAIrOD','1592139QxrMGO','information_schema','Attributes','9284JINhhd','groupingName','parentTableName','entries','filter','error','default','9KanZGP','bold','64tsfRPs','2138424HKMEtH','key','startsWith','replace','source','get','varchar','3326763SITEej','behavior','dim','null'];a98_0x3c40=function(){return _0x17af1a;};return a98_0x3c40();}export async function executeSchemaQuery(_0x35c2a3,_0x58a1ac,_0x5a4e70){const _0x583256=a98_0x19a0,_0x115ffe=_0x35c2a3[_0x583256(0x122)]()[_0x583256(0x119)](/;+$/,''),_0x2e4281=_0x583256(0x13e)+_0x115ffe+'\x0a)\x20AS\x20segment_query\x20LIMIT\x200';_0x5a4e70['verbose']&&console[_0x583256(0x14c)](_0x583256(0x124)+_0x2e4281);const _0x1495bb=await withQuerySpinner(_0x583256(0x12f),async _0x2397e8=>{const _0x409e25=_0x583256,_0x405413=await _0x58a1ac[_0x409e25(0x141)][_0x409e25(0x121)](_0x2e4281,{'catalog':'td','schema':_0x409e25(0x145),'onJobId':_0x2f40bd=>{const _0x4c314f=_0x409e25;_0x2397e8[_0x4c314f(0x13f)](_0x2f40bd);}});return _0x405413;},{'verbose':_0x5a4e70[_0x583256(0x129)]});return buildSchemaResult(_0x1495bb[_0x583256(0x13d)]);}function a98_0x19a0(_0x5f3720,_0x2431ef){_0x5f3720=_0x5f3720-0x116;const _0x3c4080=a98_0x3c40();let _0x19a017=_0x3c4080[_0x5f3720];return _0x19a017;}export function displayFieldsHumanReadable(_0x32cae0,_0x226c84){const _0x540d82=a98_0x19a0,_0x2f1491=_0x32cae0[_0x540d82(0x14b)](_0x2f0408=>_0x2f0408[_0x540d82(0x11a)]===_0x540d82(0x12e)),_0x3aca3b=_0x32cae0[_0x540d82(0x14b)](_0x11ac3e=>_0x11ac3e[_0x540d82(0x11a)]===_0x540d82(0x11e)),_0x1524a3=new Map();for(const _0x2f6f49 of _0x2f1491){const _0x169c67=_0x2f6f49[_0x540d82(0x148)]||_0x2f6f49[_0x540d82(0x149)]||_0x540d82(0x130),_0x5c5c2e=_0x1524a3['get'](_0x169c67);_0x5c5c2e?_0x5c5c2e[_0x540d82(0x12a)][_0x540d82(0x128)](_0x2f6f49):_0x1524a3[_0x540d82(0x133)](_0x169c67,{'displayName':_0x169c67,'tableName':_0x2f6f49[_0x540d82(0x149)],'fields':[_0x2f6f49]});}const _0x31a66c=new Map();for(const _0x5e55d2 of _0x3aca3b){const _0xaf9e3a=_0x5e55d2['behaviorName']||_0x540d82(0x130),_0x54ae8c=_0x31a66c[_0x540d82(0x11b)](_0xaf9e3a)||[];_0x54ae8c[_0x540d82(0x128)](_0x5e55d2),_0x31a66c[_0x540d82(0x133)](_0xaf9e3a,_0x54ae8c);}console['error']('\x0a'+a98_0x2acdae[_0x540d82(0x14f)](_0x226c84));if(_0x1524a3[_0x540d82(0x136)]>0x0){console[_0x540d82(0x14c)]('\x0a'+a98_0x2acdae[_0x540d82(0x11f)](_0x540d82(0x146)));const _0x221d60=[..._0x1524a3['entries']()][_0x540d82(0x132)]((_0x589311,_0x4a9e47)=>_0x589311[0x0]['localeCompare'](_0x4a9e47[0x0]));for(const [,_0x2906d8]of _0x221d60){const _0x27ad19=_0x2906d8[_0x540d82(0x127)]&&_0x2906d8[_0x540d82(0x127)]!==_0x2906d8['displayName']?'\x20'+a98_0x2acdae[_0x540d82(0x11f)]('('+_0x2906d8[_0x540d82(0x127)]+')'):'';console['error']('\x20\x20'+a98_0x2acdae[_0x540d82(0x14f)](_0x2906d8[_0x540d82(0x13c)])+_0x27ad19);const _0x3f3b23=[..._0x2906d8['fields']][_0x540d82(0x132)]((_0x9d1ea0,_0x5af145)=>_0x9d1ea0[_0x540d82(0x139)]['localeCompare'](_0x5af145[_0x540d82(0x139)]));for(const _0x267c85 of _0x3f3b23){const _0x3aea24=_0x267c85[_0x540d82(0x12d)]&&_0x267c85[_0x540d82(0x12d)]!==_0x267c85['name']?'\x20'+a98_0x2acdae[_0x540d82(0x11f)]('('+_0x267c85[_0x540d82(0x12d)]+')'):'';console[_0x540d82(0x14c)](_0x540d82(0x140)+_0x267c85['name']+_0x3aea24+':\x20'+a98_0x2acdae[_0x540d82(0x12c)](_0x267c85[_0x540d82(0x12b)]));}}}if(_0x31a66c[_0x540d82(0x136)]>0x0){console[_0x540d82(0x14c)]('\x0a'+a98_0x2acdae['dim'](_0x540d82(0x134)));const _0xc12c4c=[..._0x31a66c[_0x540d82(0x14a)]()][_0x540d82(0x132)]((_0x406738,_0x12f0dd)=>_0x406738[0x0]['localeCompare'](_0x12f0dd[0x0]));for(const [_0x2aadad,_0x3edc4d]of _0xc12c4c){const _0x1d653f=_0x3edc4d[0x0],_0x224176=_0x1d653f?.[_0x540d82(0x149)]||'';console[_0x540d82(0x14c)]('\x20\x20'+a98_0x2acdae[_0x540d82(0x14f)](_0x2aadad)+(_0x224176?'\x20'+a98_0x2acdae[_0x540d82(0x11f)]('('+_0x224176+')'):''));const _0x5a088f=[..._0x3edc4d][_0x540d82(0x132)]((_0xa8b41b,_0x53ff90)=>_0xa8b41b['name']['localeCompare'](_0x53ff90[_0x540d82(0x139)]));for(const _0x51f559 of _0x5a088f){const _0x10c0bd=_0x51f559[_0x540d82(0x139)][_0x540d82(0x118)](_0x2aadad+'.')?_0x51f559['name']['slice'](_0x2aadad['length']+0x1):_0x51f559[_0x540d82(0x139)],_0x33548a=_0x51f559[_0x540d82(0x12d)]&&_0x51f559[_0x540d82(0x12d)]!==_0x10c0bd?'\x20'+a98_0x2acdae['dim']('('+_0x51f559[_0x540d82(0x12d)]+')'):'';console['error'](_0x540d82(0x140)+_0x10c0bd+_0x33548a+':\x20'+a98_0x2acdae[_0x540d82(0x12c)](_0x51f559['type']));}}}console[_0x540d82(0x14c)]('');}
@@ -1 +1 @@
1
- (function(_0x58e98a,_0xe88e02){const _0x5db3eb=a99_0x5b65,_0x9758df=_0x58e98a();while(!![]){try{const _0x51deed=parseInt(_0x5db3eb(0xa3))/0x1*(parseInt(_0x5db3eb(0x96))/0x2)+parseInt(_0x5db3eb(0x9a))/0x3*(parseInt(_0x5db3eb(0x97))/0x4)+-parseInt(_0x5db3eb(0x9e))/0x5+-parseInt(_0x5db3eb(0xa8))/0x6+parseInt(_0x5db3eb(0xa1))/0x7*(-parseInt(_0x5db3eb(0x9b))/0x8)+parseInt(_0x5db3eb(0xa5))/0x9*(-parseInt(_0x5db3eb(0x98))/0xa)+parseInt(_0x5db3eb(0x95))/0xb;if(_0x51deed===_0xe88e02)break;else _0x9758df['push'](_0x9758df['shift']());}catch(_0x116b79){_0x9758df['push'](_0x9758df['shift']());}}}(a99_0x5967,0x4e5c2));function a99_0x5b65(_0x2a1212,_0x298373){_0x2a1212=_0x2a1212-0x95;const _0x59677f=a99_0x5967();let _0x5b657c=_0x59677f[_0x2a1212];return _0x5b657c;}function a99_0x5967(){const _0x2e3761=['50JrVcYh','mode','201JKqgQa','88IUEeeD','dirname','existsSync','2081140GChOQL','writeFileSync','warn','46627Ipwzih','chmodSync','7HWVeng',').\x20','292761joKEpY','statSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','655944eHYzUE','1399277aIgNgG','164132oTyJUU','22732ERBXip'];a99_0x5967=function(){return _0x2e3761;};return a99_0x5967();}import*as a99_0x365fba from'node:fs';import*as a99_0x12fba9 from'node:path';export function setSecureFilePermissions(_0x337da5){const _0x32b31a=a99_0x5b65;try{a99_0x365fba[_0x32b31a(0xa2)](_0x337da5,0x180);}catch{console[_0x32b31a(0xa0)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x337da5);}}export function setSecureDirectoryPermissions(_0x39ded1){const _0x2a957c=a99_0x5b65;try{a99_0x365fba[_0x2a957c(0xa2)](_0x39ded1,0x1c0);}catch{console[_0x2a957c(0xa0)](_0x2a957c(0xa7)+_0x39ded1);}}export function createSecureDirectory(_0x5b18a7){const _0xfb2eca=a99_0x5b65;!a99_0x365fba[_0xfb2eca(0x9d)](_0x5b18a7)&&(a99_0x365fba['mkdirSync'](_0x5b18a7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5b18a7));}export function validateSecureFilePermissions(_0x5446ff){const _0x2aa23b=a99_0x5b65;try{const _0x20ba09=a99_0x365fba[_0x2aa23b(0xa6)](_0x5446ff),_0x18e6fb=_0x20ba09[_0x2aa23b(0x99)]&0x1ff,_0x5f310a=(_0x18e6fb&0x3f)!==0x0;if(_0x5f310a)return console['warn']('Warning:\x20'+_0x5446ff+'\x20has\x20insecure\x20permissions\x20('+_0x18e6fb['toString'](0x8)+_0x2aa23b(0xa4)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x5cee54,_0x4b0d2a){const _0x599485=a99_0x5b65,_0x30a18d=a99_0x12fba9[_0x599485(0x9c)](_0x5cee54);createSecureDirectory(_0x30a18d),a99_0x365fba[_0x599485(0x9f)](_0x5cee54,_0x4b0d2a,{'mode':0x180}),setSecureFilePermissions(_0x5cee54);}
1
+ (function(_0xce8b51,_0x8c73a5){const _0x209081=a99_0x4fb1,_0x7d422e=_0xce8b51();while(!![]){try{const _0x5effb6=parseInt(_0x209081(0xa5))/0x1*(-parseInt(_0x209081(0xa6))/0x2)+parseInt(_0x209081(0xa3))/0x3+-parseInt(_0x209081(0x98))/0x4*(parseInt(_0x209081(0x9f))/0x5)+-parseInt(_0x209081(0x9c))/0x6+-parseInt(_0x209081(0xa2))/0x7+parseInt(_0x209081(0x99))/0x8+parseInt(_0x209081(0xa8))/0x9;if(_0x5effb6===_0x8c73a5)break;else _0x7d422e['push'](_0x7d422e['shift']());}catch(_0x5e2363){_0x7d422e['push'](_0x7d422e['shift']());}}}(a99_0x1c17,0x28c65));import*as a99_0x21ab82 from'node:fs';import*as a99_0x5855fd from'node:path';export function setSecureFilePermissions(_0x3abac6){const _0x394e6c=a99_0x4fb1;try{a99_0x21ab82['chmodSync'](_0x3abac6,0x180);}catch{console[_0x394e6c(0xa4)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x3abac6);}}function a99_0x4fb1(_0x364a18,_0x3b49c8){_0x364a18=_0x364a18-0x97;const _0x1c17b1=a99_0x1c17();let _0x4fb157=_0x1c17b1[_0x364a18];return _0x4fb157;}export function setSecureDirectoryPermissions(_0x49c441){const _0x1db568=a99_0x4fb1;try{a99_0x21ab82[_0x1db568(0x9a)](_0x49c441,0x1c0);}catch{console[_0x1db568(0xa4)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x49c441);}}function a99_0x1c17(){const _0x1580d9=[').\x20','4777542xLfTUm','dirname','writeFileSync','9340pJNHhp','1312240wScwYE','chmodSync','mkdirSync','993930ZYiiMF','statSync','toString','355lNhsCr','Warning:\x20','mode','2317266FZxFLZ','593100ldfxjk','warn','9011goYYLf','14GesjJT'];a99_0x1c17=function(){return _0x1580d9;};return a99_0x1c17();}export function createSecureDirectory(_0x2d47d6){const _0x281808=a99_0x4fb1;!a99_0x21ab82['existsSync'](_0x2d47d6)&&(a99_0x21ab82[_0x281808(0x9b)](_0x2d47d6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2d47d6));}export function validateSecureFilePermissions(_0x242c8b){const _0x247d68=a99_0x4fb1;try{const _0x28e97c=a99_0x21ab82[_0x247d68(0x9d)](_0x242c8b),_0x2af5cc=_0x28e97c[_0x247d68(0xa1)]&0x1ff,_0x45623c=(_0x2af5cc&0x3f)!==0x0;if(_0x45623c)return console[_0x247d68(0xa4)](_0x247d68(0xa0)+_0x242c8b+'\x20has\x20insecure\x20permissions\x20('+_0x2af5cc[_0x247d68(0x9e)](0x8)+_0x247d68(0xa7)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1bc3ba,_0x3d48dd){const _0x189af6=a99_0x4fb1,_0x167e03=a99_0x5855fd[_0x189af6(0xa9)](_0x1bc3ba);createSecureDirectory(_0x167e03),a99_0x21ab82[_0x189af6(0x97)](_0x1bc3ba,_0x3d48dd,{'mode':0x180}),setSecureFilePermissions(_0x1bc3ba);}
@@ -1 +1 @@
1
- (function(_0x5d4feb,_0x2a25be){const _0x14fa74=a100_0x4595,_0x1b69e5=_0x5d4feb();while(!![]){try{const _0x251b48=-parseInt(_0x14fa74(0x193))/0x1*(-parseInt(_0x14fa74(0x18c))/0x2)+-parseInt(_0x14fa74(0x195))/0x3+parseInt(_0x14fa74(0x194))/0x4+parseInt(_0x14fa74(0x192))/0x5+parseInt(_0x14fa74(0x19c))/0x6+parseInt(_0x14fa74(0x19b))/0x7*(parseInt(_0x14fa74(0x18e))/0x8)+-parseInt(_0x14fa74(0x190))/0x9*(parseInt(_0x14fa74(0x197))/0xa);if(_0x251b48===_0x2a25be)break;else _0x1b69e5['push'](_0x1b69e5['shift']());}catch(_0x5129ab){_0x1b69e5['push'](_0x1b69e5['shift']());}}}(a100_0x14a4,0x21baf));export function detectFormatFromExtension(_0x3ab530){const _0x1fc9ac=a100_0x4595,_0x139d65=_0x3ab530[_0x1fc9ac(0x18b)]()['split']('.')[_0x1fc9ac(0x18d)]();switch(_0x139d65){case _0x1fc9ac(0x199):return _0x1fc9ac(0x199);case _0x1fc9ac(0x191):return'jsonl';case _0x1fc9ac(0x18f):case _0x1fc9ac(0x198):return _0x1fc9ac(0x18f);case _0x1fc9ac(0x196):case'text':return _0x1fc9ac(0x19a);default:return undefined;}}function a100_0x14a4(){const _0x1cceea=['pop','72lFCumR','tsv','72SfuuaQ','jsonl','538335LaNgEf','232331KYFBHz','693008exfJmP','398394ftvjRV','txt','607570lgphYM','tab','json','table','178787BhhgpJ','83364WyPexi','toLowerCase','2MXCrvd'];a100_0x14a4=function(){return _0x1cceea;};return a100_0x14a4();}function a100_0x4595(_0x49b43f,_0x3ace92){_0x49b43f=_0x49b43f-0x18b;const _0x14a451=a100_0x14a4();let _0x459526=_0x14a451[_0x49b43f];return _0x459526;}export function resolveOutputFormat(_0x4c0dd5,_0xbb3062,_0xbd1cb6){if(_0x4c0dd5)return _0x4c0dd5;if(_0xbb3062){const _0x4d31ee=detectFormatFromExtension(_0xbb3062);if(_0x4d31ee)return _0x4d31ee;}return _0xbd1cb6;}
1
+ function a100_0x5855(_0x5b8b06,_0x5b3c69){_0x5b8b06=_0x5b8b06-0xed;const _0x5559b5=a100_0x5559();let _0x5855a5=_0x5559b5[_0x5b8b06];return _0x5855a5;}(function(_0x504b95,_0x114c84){const _0x3a0e2c=a100_0x5855,_0x159053=_0x504b95();while(!![]){try{const _0x2c7e13=parseInt(_0x3a0e2c(0xee))/0x1+parseInt(_0x3a0e2c(0xf3))/0x2+parseInt(_0x3a0e2c(0xfd))/0x3+parseInt(_0x3a0e2c(0xff))/0x4*(-parseInt(_0x3a0e2c(0xf8))/0x5)+-parseInt(_0x3a0e2c(0xed))/0x6*(parseInt(_0x3a0e2c(0xf2))/0x7)+-parseInt(_0x3a0e2c(0xf0))/0x8*(-parseInt(_0x3a0e2c(0xf1))/0x9)+parseInt(_0x3a0e2c(0xf4))/0xa*(-parseInt(_0x3a0e2c(0xfc))/0xb);if(_0x2c7e13===_0x114c84)break;else _0x159053['push'](_0x159053['shift']());}catch(_0x5e131f){_0x159053['push'](_0x159053['shift']());}}}(a100_0x5559,0x6a471));export function detectFormatFromExtension(_0x500123){const _0x1cda6f=a100_0x5855,_0x108ef9=_0x500123[_0x1cda6f(0xfb)]()[_0x1cda6f(0xf7)]('.')[_0x1cda6f(0xf5)]();switch(_0x108ef9){case _0x1cda6f(0x100):return'json';case _0x1cda6f(0xfe):return _0x1cda6f(0xfe);case _0x1cda6f(0xf9):case _0x1cda6f(0xfa):return _0x1cda6f(0xf9);case _0x1cda6f(0xf6):case _0x1cda6f(0xef):return'table';default:return undefined;}}function a100_0x5559(){const _0x1e355e=['5TLltTQ','tsv','tab','toLowerCase','11nWulzI','2406858BKMkbm','jsonl','2079332UEioPr','json','30XKvRrF','616370hiyyIP','text','1383560JVDkEE','9vYyAjI','1098286WkuQqE','1041508NZwhCw','3727190OVgfub','pop','txt','split'];a100_0x5559=function(){return _0x1e355e;};return a100_0x5559();}export function resolveOutputFormat(_0x61ef6d,_0x91b0ba,_0x559518){if(_0x61ef6d)return _0x61ef6d;if(_0x91b0ba){const _0x1a542=detectFormatFromExtension(_0x91b0ba);if(_0x1a542)return _0x1a542;}return _0x559518;}
@@ -1 +1 @@
1
- (function(_0x4c4f09,_0x57c033){const _0xbc7cc6=a101_0x216d,_0x156515=_0x4c4f09();while(!![]){try{const _0x24b793=-parseInt(_0xbc7cc6(0x6b))/0x1+-parseInt(_0xbc7cc6(0x90))/0x2*(-parseInt(_0xbc7cc6(0x70))/0x3)+parseInt(_0xbc7cc6(0x84))/0x4*(-parseInt(_0xbc7cc6(0x9f))/0x5)+parseInt(_0xbc7cc6(0x98))/0x6*(-parseInt(_0xbc7cc6(0x6a))/0x7)+-parseInt(_0xbc7cc6(0x9c))/0x8*(-parseInt(_0xbc7cc6(0xa3))/0x9)+parseInt(_0xbc7cc6(0x97))/0xa+parseInt(_0xbc7cc6(0x91))/0xb;if(_0x24b793===_0x57c033)break;else _0x156515['push'](_0x156515['shift']());}catch(_0x30ca2f){_0x156515['push'](_0x156515['shift']());}}}(a101_0x501e,0x41181));function a101_0x216d(_0x6a8c03,_0x4594e){_0x6a8c03=_0x6a8c03-0x6a;const _0x501e3f=a101_0x501e();let _0x216d86=_0x501e3f[_0x6a8c03];return _0x216d86;}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 a101_0x501e(){const _0x44b0a4=['row','replace','entries','forEach','length','boolean','join','min','slice','true','int','1834pDsGzv','2463681JAWnnt','date','\x20row','stringify','toFixed','toLowerCase','2605160GWmUFl','2072598foogZG','table','padEnd','log','135368wcfLLb','stdout','json','156095PDjrfM','\x20rows\x20(','jsonl','number','36ZIybJA','7TDFgdW','170157WZtLUA','repeat','0\x20B','substring','timestamp','1059JbbnVV','toISOString','\x20shown)','columns','bool','false','pow','long','object','startsWith','name','max','string','push','map','double','No\x20rows\x20returned','tsv','data','test','12ejRrRs'];a101_0x501e=function(){return _0x44b0a4;};return a101_0x501e();}function getTerminalWidth(){const _0x3951ad=a101_0x216d;return process[_0x3951ad(0x9d)][_0x3951ad(0x73)]||Infinity;}export function formatAsTable(_0x4190d5,_0x3ec604=DEFAULT_MAX_DISPLAY_ROWS,_0x129a4a=![],_0x39e329={}){const _0x59e44d=a101_0x216d;if(_0x4190d5[_0x59e44d(0x82)][_0x59e44d(0x89)]===0x0)return _0x59e44d(0x80);const _0x280aa4=_0x4190d5['columns'][_0x59e44d(0x7e)](_0x481468=>_0x481468[_0x59e44d(0x7a)]),_0x4ac892=_0x4190d5[_0x59e44d(0x73)][_0x59e44d(0x7e)](_0x1aabbd=>simplifyType(_0x1aabbd['type'])),_0x381536=_0x4190d5[_0x59e44d(0x82)]['slice'](0x0,_0x3ec604),_0x1acdc4=_0x4190d5['data'][_0x59e44d(0x89)],_0x334cb8=_0x1acdc4>_0x3ec604,_0xaa93cb=[],_0x5a650d=getTerminalWidth(),_0x298a17=_0x5a650d!==Infinity,_0x315863=0x32;let _0x4051ba=_0x280aa4[_0x59e44d(0x7e)]((_0x3e0547,_0x592ca7)=>{const _0x1086cf=_0x59e44d,_0x51e895=stringWidth(_0x4ac892[_0x592ca7]),_0x592381=Math[_0x1086cf(0x7b)](..._0x381536['map'](_0x439b94=>{const _0xffd1a5=_0x439b94[_0x3e0547];return stringWidth(formatValue(_0xffd1a5));})),_0x1418d8=Math['max'](stringWidth(_0x3e0547),_0x51e895,_0x592381);return _0x129a4a?_0x1418d8:Math['min'](_0x1418d8,_0x315863);});if(_0x298a17&&!_0x129a4a&&_0x280aa4[_0x59e44d(0x89)]>0x0){const _0x179c90=_0x53f6d0=>{let _0x5bf2bf=0x1;for(const _0x2f6017 of _0x53f6d0){_0x5bf2bf+=_0x2f6017+0x3;}return _0x5bf2bf+0x1;};let _0x358f45=_0x179c90(_0x4051ba);if(_0x358f45>_0x5a650d){const _0x1fb6ad=0x3;for(let _0x30f986=_0x4051ba[_0x59e44d(0x89)]-0x1;_0x30f986>=0x0;_0x30f986--){_0x358f45=_0x179c90(_0x4051ba);if(_0x358f45<=_0x5a650d)break;const _0x5bf55c=_0x4051ba[_0x30f986],_0x41f153=_0x358f45-_0x5a650d,_0x530134=_0x5bf55c-_0x1fb6ad,_0x16291a=Math[_0x59e44d(0x8c)](_0x41f153,_0x530134);_0x16291a>0x0&&(_0x4051ba[_0x30f986]=_0x5bf55c-_0x16291a);}}}const _0x513e2e=_0x280aa4,_0xece605=_0x4ac892,_0x5f254d=_0x4051ba,_0x4b9649=_0x4051ba;_0xaa93cb['push'](colorBorder('┌'+_0x4b9649[_0x59e44d(0x7e)](_0x3d58c7=>'─'[_0x59e44d(0x6c)](_0x3d58c7+0x2))[_0x59e44d(0x8b)]('┬')+'┐',_0x39e329));const _0xab9686=_0x513e2e['map']((_0x3ff669,_0x5bc61b)=>centerAlign(_0x3ff669,_0x5f254d[_0x5bc61b]));_0xaa93cb[_0x59e44d(0x7d)](colorBorder('│',_0x39e329)+'\x20'+_0xab9686[_0x59e44d(0x8b)]('\x20'+colorBorder('│',_0x39e329)+'\x20')+'\x20'+colorBorder('│',_0x39e329));const _0xd8afa2=_0xece605['map']((_0x385a95,_0x133341)=>colorType(centerAlign(_0x385a95,_0x5f254d[_0x133341]),_0x39e329));_0xaa93cb[_0x59e44d(0x7d)](colorBorder('│',_0x39e329)+'\x20'+_0xd8afa2['join']('\x20'+colorBorder('│',_0x39e329)+'\x20')+'\x20'+colorBorder('│',_0x39e329)),_0xaa93cb['push'](colorBorder('├'+_0x4b9649[_0x59e44d(0x7e)](_0x1a6789=>'─'[_0x59e44d(0x6c)](_0x1a6789+0x2))[_0x59e44d(0x8b)]('┼')+'┤',_0x39e329));const _0x1dc9d0=(_0x4ef645,_0x355af7)=>{const _0x38db1d=_0x59e44d,_0xd1951d=stringWidth(_0x4ef645);if(_0xd1951d<=_0x355af7)return _0x4ef645;let _0x463313=_0x4ef645;while(stringWidth(_0x463313+'…')>_0x355af7&&_0x463313['length']>0x0){_0x463313=_0x463313[_0x38db1d(0x8d)](0x0,-0x1);}return _0x463313+'…';};_0x381536[_0x59e44d(0x88)](_0x235836=>{const _0x592789=_0x59e44d,_0x2678f8=_0x280aa4[_0x592789(0x7e)]((_0x447140,_0x4892a1)=>{const _0x1b193c=_0x592789,_0x4c62c7=_0x235836[_0x447140],_0x480b94=formatValue(_0x4c62c7),_0x407d08=_0x5f254d[_0x4892a1],_0x164dba=_0x1dc9d0(_0x480b94,_0x407d08),_0x448d01=typeof _0x4c62c7===_0x1b193c(0xa2)||typeof _0x4c62c7===_0x1b193c(0x7c)&&/^-?\d+$/[_0x1b193c(0x83)](_0x4c62c7);return _0x448d01?padStart(_0x164dba,_0x407d08):padEnd(_0x164dba,_0x407d08);});_0xaa93cb['push'](colorBorder('│',_0x39e329)+'\x20'+_0x2678f8[_0x592789(0x8b)]('\x20'+colorBorder('│',_0x39e329)+'\x20')+'\x20'+colorBorder('│',_0x39e329));});const _0x802f06=_0x4b9649['reduce']((_0x2f5f58,_0xcfad3e)=>_0x2f5f58+_0xcfad3e+0x3,-0x1);_0xaa93cb[_0x59e44d(0x7d)](colorBorder('├'+_0x4b9649['map'](_0x401090=>'─'[_0x59e44d(0x6c)](_0x401090+0x2))[_0x59e44d(0x8b)]('┴')+'┤',_0x39e329));let _0x5e0fc7;_0x334cb8?_0x5e0fc7=_0x1acdc4+_0x59e44d(0xa0)+_0x3ec604+_0x59e44d(0x72):_0x5e0fc7=_0x1acdc4+_0x59e44d(0x93)+(_0x1acdc4===0x1?'':'s');const _0x2b2802=_0x5e0fc7[_0x59e44d(0x9a)](_0x802f06-0x2);return _0xaa93cb[_0x59e44d(0x7d)](colorBorder('│',_0x39e329)+'\x20'+_0x2b2802+'\x20'+colorBorder('│',_0x39e329)),_0xaa93cb[_0x59e44d(0x7d)](colorBorder('└'+'─'['repeat'](_0x802f06)+'┘',_0x39e329)),_0xaa93cb['join']('\x0a');}function simplifyType(_0x2913d4){const _0x4fd1dc=a101_0x216d,_0x196240={'varchar':_0x4fd1dc(0x7c),'bigint':_0x4fd1dc(0x77),'integer':_0x4fd1dc(0x8f),'double':_0x4fd1dc(0x7f),'boolean':_0x4fd1dc(0x74),'date':_0x4fd1dc(0x92),'timestamp':_0x4fd1dc(0x6f),'array':'array','map':_0x4fd1dc(0x7e),'row':_0x4fd1dc(0x85)},_0x87febb=_0x2913d4[_0x4fd1dc(0x96)]();for(const [_0xbfae5a,_0x1d552e]of Object[_0x4fd1dc(0x87)](_0x196240)){if(_0x87febb[_0x4fd1dc(0x79)](_0xbfae5a))return _0x1d552e;}return _0x2913d4[_0x4fd1dc(0x89)]>0xa?_0x2913d4[_0x4fd1dc(0x6e)](0x0,0xa):_0x2913d4;}export function formatAsJSON(_0x58ba77,_0xaa4e60={}){const _0x50042a=a101_0x216d;if(_0x58ba77[_0x50042a(0x82)]['length']===0x0)return'[]';if(shouldUseColor(_0xaa4e60))return colorizeJSON(_0x58ba77['data'],_0xaa4e60);const _0x27e0c2=_0x58ba77['data'][_0x50042a(0x7e)](_0x40baa5=>'\x20\x20'+JSON[_0x50042a(0x94)](_0x40baa5));return'[\x0a'+_0x27e0c2[_0x50042a(0x8b)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x1ba517,_0x200642={}){const _0x1f0ff0=a101_0x216d;if(_0x1ba517[_0x1f0ff0(0x82)][_0x1f0ff0(0x89)]===0x0)return'';if(shouldUseColor(_0x200642))return _0x1ba517[_0x1f0ff0(0x82)][_0x1f0ff0(0x7e)](_0x650cbe=>colorizeJSONCompact(_0x650cbe,_0x200642))[_0x1f0ff0(0x8b)]('\x0a');return _0x1ba517[_0x1f0ff0(0x82)][_0x1f0ff0(0x7e)](_0x349a8e=>JSON['stringify'](_0x349a8e))['join']('\x0a');}export function formatAsTSV(_0x109c84){const _0x1e2c4c=a101_0x216d;if(_0x109c84[_0x1e2c4c(0x82)]['length']===0x0)return'';const _0x18bb5f=[],_0xbf3956=_0x109c84[_0x1e2c4c(0x73)][_0x1e2c4c(0x7e)](_0x34010e=>_0x34010e['name']);return _0x18bb5f[_0x1e2c4c(0x7d)](_0xbf3956[_0x1e2c4c(0x8b)]('\x09')),_0x109c84[_0x1e2c4c(0x82)][_0x1e2c4c(0x88)](_0x17dfd2=>{const _0x279513=_0x1e2c4c,_0x1e824c=_0xbf3956[_0x279513(0x7e)](_0x169538=>{const _0x122608=_0x17dfd2[_0x169538];return formatValueForTSV(_0x122608);});_0x18bb5f[_0x279513(0x7d)](_0x1e824c['join']('\x09'));}),_0x18bb5f['join']('\x0a');}function formatValue(_0x1eb17f){const _0x2b6984=a101_0x216d;if(_0x1eb17f===null||_0x1eb17f===undefined)return'';if(typeof _0x1eb17f===_0x2b6984(0x7c)){const _0x3a358c=_0x1eb17f['replace'](/\n/g,'\x5cn')[_0x2b6984(0x86)](/\r/g,'\x5cr')[_0x2b6984(0x86)](/\t/g,'\x5ct');return _0x3a358c;}if(typeof _0x1eb17f===_0x2b6984(0xa2))return String(_0x1eb17f);if(typeof _0x1eb17f===_0x2b6984(0x8a))return _0x1eb17f?_0x2b6984(0x8e):_0x2b6984(0x75);if(_0x1eb17f instanceof Date)return _0x1eb17f[_0x2b6984(0x71)]();if(typeof _0x1eb17f===_0x2b6984(0x78))return JSON[_0x2b6984(0x94)](_0x1eb17f);return String(_0x1eb17f);}function formatValueForTSV(_0x588872){const _0x3af77d=a101_0x216d;if(_0x588872===null||_0x588872===undefined)return'';if(typeof _0x588872==='string')return _0x588872[_0x3af77d(0x86)](/\t/g,'\x5ct')[_0x3af77d(0x86)](/\n/g,'\x5cn');if(typeof _0x588872==='number'||typeof _0x588872===_0x3af77d(0x8a))return String(_0x588872);if(_0x588872 instanceof Date)return _0x588872[_0x3af77d(0x71)]();if(typeof _0x588872===_0x3af77d(0x78))return JSON[_0x3af77d(0x94)](_0x588872);return String(_0x588872);}export function formatQueryResult(_0x2b8041,_0x420e47){const _0x445b03=a101_0x216d;switch(_0x420e47){case _0x445b03(0x99):return formatAsTable(_0x2b8041);case _0x445b03(0x9e):return formatAsJSON(_0x2b8041);case _0x445b03(0xa1):return formatAsJSONL(_0x2b8041);case _0x445b03(0x81):return formatAsTSV(_0x2b8041);default:return formatAsJSON(_0x2b8041);}}export function formatBytes(_0x48e240){const _0x225140=a101_0x216d;if(_0x48e240===0x0)return _0x225140(0x6d);const _0x41f9a7=['B','KB','MB','GB','TB'],_0x2ef3f9=0x400,_0x552c6e=Math['floor'](Math[_0x225140(0x9b)](_0x48e240)/Math[_0x225140(0x9b)](_0x2ef3f9)),_0x50d248=_0x48e240/Math[_0x225140(0x76)](_0x2ef3f9,_0x552c6e),_0x368c6d=_0x50d248>=0xa?0x1:0x2;return _0x50d248[_0x225140(0x95)](_0x368c6d)+'\x20'+_0x41f9a7[_0x552c6e];}export function formatRows(_0x53d902){const _0x38b953=a101_0x216d;if(_0x53d902==null)return'-';if(_0x53d902===0x0)return'0';if(_0x53d902<0x3e8)return _0x53d902['toString']();const _0x21c2f7=['','K','M','B','T'],_0x4a2652=0x3e8,_0x1a0cb3=Math['floor'](Math[_0x38b953(0x9b)](_0x53d902)/Math[_0x38b953(0x9b)](_0x4a2652)),_0x3fbb2e=_0x53d902/Math[_0x38b953(0x76)](_0x4a2652,_0x1a0cb3),_0x34ce9a=_0x3fbb2e>=0xa?0x1:0x2;return''+_0x3fbb2e[_0x38b953(0x95)](_0x34ce9a)+_0x21c2f7[_0x1a0cb3];}
1
+ (function(_0x2f896a,_0x2d3823){const _0xafd570=a101_0x456c,_0x50d23f=_0x2f896a();while(!![]){try{const _0x23b4a8=-parseInt(_0xafd570(0x1fc))/0x1*(-parseInt(_0xafd570(0x20b))/0x2)+parseInt(_0xafd570(0x1e9))/0x3+-parseInt(_0xafd570(0x216))/0x4*(parseInt(_0xafd570(0x1f6))/0x5)+parseInt(_0xafd570(0x1ff))/0x6*(parseInt(_0xafd570(0x1f4))/0x7)+-parseInt(_0xafd570(0x1fa))/0x8*(-parseInt(_0xafd570(0x220))/0x9)+parseInt(_0xafd570(0x1f2))/0xa+-parseInt(_0xafd570(0x208))/0xb*(parseInt(_0xafd570(0x1fe))/0xc);if(_0x23b4a8===_0x2d3823)break;else _0x50d23f['push'](_0x50d23f['shift']());}catch(_0x26f941){_0x50d23f['push'](_0x50d23f['shift']());}}}(a101_0x2636,0x980c4));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';function a101_0x2636(){const _0x3a7ff9=['bool','toString','min','log','346780dDvYMT','true','padEnd','tsv','\x20row','join','object','pow','stdout','0\x20B','1586322ySRRWB','test','double','3368646ZWsPoU','array','forEach','string','data','jsonl','row','columns','floor','8549650pjOZRE','boolean','112KtegDg','length','45iZFxRV','map','toISOString','stringify','8ZMMRAC','reduce','1dgjCfA','max','204DGTLLT','7920HRbyIt','replace','\x20rows\x20(','slice','number','type','table','push','json','786489iRFCBV','long','date','886602CvWVrI','\x20shown)','name','No\x20rows\x20returned','toFixed','repeat','timestamp'];a101_0x2636=function(){return _0x3a7ff9;};return a101_0x2636();}const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x288a07=a101_0x456c;return process[_0x288a07(0x21e)][_0x288a07(0x1f0)]||Infinity;}export function formatAsTable(_0x501fcc,_0x496308=DEFAULT_MAX_DISPLAY_ROWS,_0x16152f=![],_0x35fb9f={}){const _0x2e0e05=a101_0x456c;if(_0x501fcc[_0x2e0e05(0x1ed)][_0x2e0e05(0x1f5)]===0x0)return _0x2e0e05(0x20e);const _0x5a3113=_0x501fcc['columns'][_0x2e0e05(0x1f7)](_0x2e2a17=>_0x2e2a17[_0x2e0e05(0x20d)]),_0x77acdd=_0x501fcc[_0x2e0e05(0x1f0)][_0x2e0e05(0x1f7)](_0x356020=>simplifyType(_0x356020[_0x2e0e05(0x204)])),_0x3496da=_0x501fcc[_0x2e0e05(0x1ed)][_0x2e0e05(0x202)](0x0,_0x496308),_0x66300f=_0x501fcc[_0x2e0e05(0x1ed)][_0x2e0e05(0x1f5)],_0x6717b0=_0x66300f>_0x496308,_0x2f89b8=[],_0x281258=getTerminalWidth(),_0x2ad5e1=_0x281258!==Infinity,_0x1cdf1d=0x32;let _0x9aaacb=_0x5a3113['map']((_0x46a52c,_0x3cc039)=>{const _0x2b1797=_0x2e0e05,_0x314914=stringWidth(_0x77acdd[_0x3cc039]),_0x334707=Math['max'](..._0x3496da[_0x2b1797(0x1f7)](_0x44dd81=>{const _0x5ece98=_0x44dd81[_0x46a52c];return stringWidth(formatValue(_0x5ece98));})),_0xaa770a=Math[_0x2b1797(0x1fd)](stringWidth(_0x46a52c),_0x314914,_0x334707);return _0x16152f?_0xaa770a:Math[_0x2b1797(0x214)](_0xaa770a,_0x1cdf1d);});if(_0x2ad5e1&&!_0x16152f&&_0x5a3113[_0x2e0e05(0x1f5)]>0x0){const _0x50fc88=_0x465f8a=>{let _0x2dd7db=0x1;for(const _0x1b535f of _0x465f8a){_0x2dd7db+=_0x1b535f+0x3;}return _0x2dd7db+0x1;};let _0x15ec90=_0x50fc88(_0x9aaacb);if(_0x15ec90>_0x281258){const _0x115698=0x3;for(let _0x37f9ef=_0x9aaacb[_0x2e0e05(0x1f5)]-0x1;_0x37f9ef>=0x0;_0x37f9ef--){_0x15ec90=_0x50fc88(_0x9aaacb);if(_0x15ec90<=_0x281258)break;const _0x3b166e=_0x9aaacb[_0x37f9ef],_0x25dcc8=_0x15ec90-_0x281258,_0x59063b=_0x3b166e-_0x115698,_0x5753eb=Math[_0x2e0e05(0x214)](_0x25dcc8,_0x59063b);_0x5753eb>0x0&&(_0x9aaacb[_0x37f9ef]=_0x3b166e-_0x5753eb);}}}const _0x5bfd3e=_0x5a3113,_0x1a9b65=_0x77acdd,_0x3d7c32=_0x9aaacb,_0x2ea12c=_0x9aaacb;_0x2f89b8[_0x2e0e05(0x206)](colorBorder('┌'+_0x2ea12c[_0x2e0e05(0x1f7)](_0x794ca8=>'─'[_0x2e0e05(0x210)](_0x794ca8+0x2))[_0x2e0e05(0x21b)]('┬')+'┐',_0x35fb9f));const _0xc15be6=_0x5bfd3e[_0x2e0e05(0x1f7)]((_0x1536d5,_0x46c15b)=>centerAlign(_0x1536d5,_0x3d7c32[_0x46c15b]));_0x2f89b8['push'](colorBorder('│',_0x35fb9f)+'\x20'+_0xc15be6[_0x2e0e05(0x21b)]('\x20'+colorBorder('│',_0x35fb9f)+'\x20')+'\x20'+colorBorder('│',_0x35fb9f));const _0x50a44b=_0x1a9b65[_0x2e0e05(0x1f7)]((_0x8af4af,_0x47acdf)=>colorType(centerAlign(_0x8af4af,_0x3d7c32[_0x47acdf]),_0x35fb9f));_0x2f89b8[_0x2e0e05(0x206)](colorBorder('│',_0x35fb9f)+'\x20'+_0x50a44b[_0x2e0e05(0x21b)]('\x20'+colorBorder('│',_0x35fb9f)+'\x20')+'\x20'+colorBorder('│',_0x35fb9f)),_0x2f89b8[_0x2e0e05(0x206)](colorBorder('├'+_0x2ea12c[_0x2e0e05(0x1f7)](_0x3e0b4d=>'─'[_0x2e0e05(0x210)](_0x3e0b4d+0x2))[_0x2e0e05(0x21b)]('┼')+'┤',_0x35fb9f));const _0x47c538=(_0x4cea67,_0x2f8485)=>{const _0x2f5a81=_0x2e0e05,_0x424fec=stringWidth(_0x4cea67);if(_0x424fec<=_0x2f8485)return _0x4cea67;let _0x517e7b=_0x4cea67;while(stringWidth(_0x517e7b+'…')>_0x2f8485&&_0x517e7b['length']>0x0){_0x517e7b=_0x517e7b[_0x2f5a81(0x202)](0x0,-0x1);}return _0x517e7b+'…';};_0x3496da[_0x2e0e05(0x1eb)](_0x8f2a7c=>{const _0x10fd45=_0x2e0e05,_0x331705=_0x5a3113[_0x10fd45(0x1f7)]((_0xd9969d,_0x36005a)=>{const _0x520716=_0x10fd45,_0x500f71=_0x8f2a7c[_0xd9969d],_0x463701=formatValue(_0x500f71),_0x2520f8=_0x3d7c32[_0x36005a],_0x1773b2=_0x47c538(_0x463701,_0x2520f8),_0x510381=typeof _0x500f71===_0x520716(0x203)||typeof _0x500f71==='string'&&/^-?\d+$/[_0x520716(0x221)](_0x500f71);return _0x510381?padStart(_0x1773b2,_0x2520f8):padEnd(_0x1773b2,_0x2520f8);});_0x2f89b8[_0x10fd45(0x206)](colorBorder('│',_0x35fb9f)+'\x20'+_0x331705[_0x10fd45(0x21b)]('\x20'+colorBorder('│',_0x35fb9f)+'\x20')+'\x20'+colorBorder('│',_0x35fb9f));});const _0x3bcbd6=_0x2ea12c[_0x2e0e05(0x1fb)]((_0x3607c8,_0x323a11)=>_0x3607c8+_0x323a11+0x3,-0x1);_0x2f89b8[_0x2e0e05(0x206)](colorBorder('├'+_0x2ea12c[_0x2e0e05(0x1f7)](_0x47661d=>'─'[_0x2e0e05(0x210)](_0x47661d+0x2))[_0x2e0e05(0x21b)]('┴')+'┤',_0x35fb9f));let _0x4a14c0;_0x6717b0?_0x4a14c0=_0x66300f+_0x2e0e05(0x201)+_0x496308+_0x2e0e05(0x20c):_0x4a14c0=_0x66300f+_0x2e0e05(0x21a)+(_0x66300f===0x1?'':'s');const _0x1b53ed=_0x4a14c0[_0x2e0e05(0x218)](_0x3bcbd6-0x2);return _0x2f89b8[_0x2e0e05(0x206)](colorBorder('│',_0x35fb9f)+'\x20'+_0x1b53ed+'\x20'+colorBorder('│',_0x35fb9f)),_0x2f89b8[_0x2e0e05(0x206)](colorBorder('└'+'─'[_0x2e0e05(0x210)](_0x3bcbd6)+'┘',_0x35fb9f)),_0x2f89b8[_0x2e0e05(0x21b)]('\x0a');}function simplifyType(_0x3fd0dd){const _0x5a6bd1=a101_0x456c,_0x23f568={'varchar':_0x5a6bd1(0x1ec),'bigint':_0x5a6bd1(0x209),'integer':'int','double':_0x5a6bd1(0x222),'boolean':_0x5a6bd1(0x212),'date':_0x5a6bd1(0x20a),'timestamp':_0x5a6bd1(0x211),'array':_0x5a6bd1(0x1ea),'map':_0x5a6bd1(0x1f7),'row':_0x5a6bd1(0x1ef)},_0x5a44f1=_0x3fd0dd['toLowerCase']();for(const [_0x595e9c,_0x17147d]of Object['entries'](_0x23f568)){if(_0x5a44f1['startsWith'](_0x595e9c))return _0x17147d;}return _0x3fd0dd[_0x5a6bd1(0x1f5)]>0xa?_0x3fd0dd['substring'](0x0,0xa):_0x3fd0dd;}export function formatAsJSON(_0x24cfc5,_0x474d88={}){const _0x28a2b9=a101_0x456c;if(_0x24cfc5['data'][_0x28a2b9(0x1f5)]===0x0)return'[]';if(shouldUseColor(_0x474d88))return colorizeJSON(_0x24cfc5[_0x28a2b9(0x1ed)],_0x474d88);const _0x4f87fe=_0x24cfc5['data'][_0x28a2b9(0x1f7)](_0x39a8f6=>'\x20\x20'+JSON[_0x28a2b9(0x1f9)](_0x39a8f6));return'[\x0a'+_0x4f87fe['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x5b5e88,_0x1aca1e={}){const _0x5b1da3=a101_0x456c;if(_0x5b5e88[_0x5b1da3(0x1ed)][_0x5b1da3(0x1f5)]===0x0)return'';if(shouldUseColor(_0x1aca1e))return _0x5b5e88[_0x5b1da3(0x1ed)]['map'](_0x2b1445=>colorizeJSONCompact(_0x2b1445,_0x1aca1e))[_0x5b1da3(0x21b)]('\x0a');return _0x5b5e88[_0x5b1da3(0x1ed)][_0x5b1da3(0x1f7)](_0x27338d=>JSON[_0x5b1da3(0x1f9)](_0x27338d))[_0x5b1da3(0x21b)]('\x0a');}export function formatAsTSV(_0x1f7b79){const _0x23273e=a101_0x456c;if(_0x1f7b79[_0x23273e(0x1ed)][_0x23273e(0x1f5)]===0x0)return'';const _0x72eb00=[],_0x57f37f=_0x1f7b79['columns']['map'](_0x495086=>_0x495086['name']);return _0x72eb00[_0x23273e(0x206)](_0x57f37f[_0x23273e(0x21b)]('\x09')),_0x1f7b79[_0x23273e(0x1ed)][_0x23273e(0x1eb)](_0x22da0f=>{const _0x40a222=_0x23273e,_0x43868e=_0x57f37f[_0x40a222(0x1f7)](_0x34b204=>{const _0x1b676b=_0x22da0f[_0x34b204];return formatValueForTSV(_0x1b676b);});_0x72eb00[_0x40a222(0x206)](_0x43868e['join']('\x09'));}),_0x72eb00['join']('\x0a');}function formatValue(_0x47d59f){const _0x23022e=a101_0x456c;if(_0x47d59f===null||_0x47d59f===undefined)return'';if(typeof _0x47d59f==='string'){const _0xda554d=_0x47d59f[_0x23022e(0x200)](/\n/g,'\x5cn')[_0x23022e(0x200)](/\r/g,'\x5cr')[_0x23022e(0x200)](/\t/g,'\x5ct');return _0xda554d;}if(typeof _0x47d59f===_0x23022e(0x203))return String(_0x47d59f);if(typeof _0x47d59f===_0x23022e(0x1f3))return _0x47d59f?_0x23022e(0x217):'false';if(_0x47d59f instanceof Date)return _0x47d59f[_0x23022e(0x1f8)]();if(typeof _0x47d59f===_0x23022e(0x21c))return JSON[_0x23022e(0x1f9)](_0x47d59f);return String(_0x47d59f);}function formatValueForTSV(_0x4cf99b){const _0x59913d=a101_0x456c;if(_0x4cf99b===null||_0x4cf99b===undefined)return'';if(typeof _0x4cf99b===_0x59913d(0x1ec))return _0x4cf99b[_0x59913d(0x200)](/\t/g,'\x5ct')[_0x59913d(0x200)](/\n/g,'\x5cn');if(typeof _0x4cf99b===_0x59913d(0x203)||typeof _0x4cf99b==='boolean')return String(_0x4cf99b);if(_0x4cf99b instanceof Date)return _0x4cf99b[_0x59913d(0x1f8)]();if(typeof _0x4cf99b===_0x59913d(0x21c))return JSON[_0x59913d(0x1f9)](_0x4cf99b);return String(_0x4cf99b);}function a101_0x456c(_0x4867f3,_0x109a7c){_0x4867f3=_0x4867f3-0x1e9;const _0x2636f3=a101_0x2636();let _0x456c13=_0x2636f3[_0x4867f3];return _0x456c13;}export function formatQueryResult(_0x10a02f,_0x4c2618){const _0x43193f=a101_0x456c;switch(_0x4c2618){case _0x43193f(0x205):return formatAsTable(_0x10a02f);case _0x43193f(0x207):return formatAsJSON(_0x10a02f);case _0x43193f(0x1ee):return formatAsJSONL(_0x10a02f);case _0x43193f(0x219):return formatAsTSV(_0x10a02f);default:return formatAsJSON(_0x10a02f);}}export function formatBytes(_0x13fe15){const _0x382c82=a101_0x456c;if(_0x13fe15===0x0)return _0x382c82(0x21f);const _0x496401=['B','KB','MB','GB','TB'],_0x392911=0x400,_0x156a6a=Math[_0x382c82(0x1f1)](Math[_0x382c82(0x215)](_0x13fe15)/Math[_0x382c82(0x215)](_0x392911)),_0x45838e=_0x13fe15/Math[_0x382c82(0x21d)](_0x392911,_0x156a6a),_0x30e40a=_0x45838e>=0xa?0x1:0x2;return _0x45838e[_0x382c82(0x20f)](_0x30e40a)+'\x20'+_0x496401[_0x156a6a];}export function formatRows(_0x4eaaef){const _0x487583=a101_0x456c;if(_0x4eaaef==null)return'-';if(_0x4eaaef===0x0)return'0';if(_0x4eaaef<0x3e8)return _0x4eaaef[_0x487583(0x213)]();const _0x21e2d1=['','K','M','B','T'],_0x54825d=0x3e8,_0x3a105d=Math[_0x487583(0x1f1)](Math[_0x487583(0x215)](_0x4eaaef)/Math['log'](_0x54825d)),_0x5c5c74=_0x4eaaef/Math[_0x487583(0x21d)](_0x54825d,_0x3a105d),_0x1df84e=_0x5c5c74>=0xa?0x1:0x2;return''+_0x5c5c74[_0x487583(0x20f)](_0x1df84e)+_0x21e2d1[_0x3a105d];}
@@ -1 +1 @@
1
- (function(_0xb7f0c2,_0x3405fd){const _0x1cbbc7=a102_0x2e16,_0x5aab7c=_0xb7f0c2();while(!![]){try{const _0x3d1b80=parseInt(_0x1cbbc7(0xb2))/0x1*(parseInt(_0x1cbbc7(0xb4))/0x2)+parseInt(_0x1cbbc7(0xa4))/0x3*(parseInt(_0x1cbbc7(0xb1))/0x4)+parseInt(_0x1cbbc7(0xa2))/0x5+-parseInt(_0x1cbbc7(0xbb))/0x6+-parseInt(_0x1cbbc7(0xab))/0x7*(parseInt(_0x1cbbc7(0xc2))/0x8)+parseInt(_0x1cbbc7(0x95))/0x9+parseInt(_0x1cbbc7(0x98))/0xa*(-parseInt(_0x1cbbc7(0xa8))/0xb);if(_0x3d1b80===_0x3405fd)break;else _0x5aab7c['push'](_0x5aab7c['shift']());}catch(_0x2ad726){_0x5aab7c['push'](_0x5aab7c['shift']());}}}(a102_0x1e2c,0x3d53f));export const SEGMENT_KIND_JOURNEY=0x3;export function sanitizeYamlKey(_0x30ee2b){const _0x5bbc56=a102_0x2e16;return _0x30ee2b['toLowerCase']()['replace'](/\s+/g,'_')[_0x5bbc56(0xb6)](/[^a-z0-9_]/g,'')[_0x5bbc56(0xb6)](/_+/g,'_')[_0x5bbc56(0xb6)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x2030e9){const _0x3453e4=a102_0x2e16,_0x6f8de2=_0x2030e9[_0x3453e4(0xa0)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x6f8de2){const _0xbc407f=_0x6f8de2[0x1][_0x3453e4(0x9e)](),_0x2d3bf8=_0x6f8de2[0x2],_0x22e082=_0x2d3bf8[_0x3453e4(0xb6)](/-/g,'')[_0x3453e4(0x9f)](0x0,0x4)[_0x3453e4(0x9e)]();return _0xbc407f+'_'+_0x22e082;}return undefined;}export function consolidateActivationsByContent(_0x5ef715){const _0x2f96e7=a102_0x2e16,_0x524d33={},_0xdf1f0=new Map(),_0x4f200f=new Map();for(const _0x876604 of _0x5ef715){if(!_0x876604)continue;for(const [_0x20029f,_0x473dab]of Object[_0x2f96e7(0xb9)](_0x876604)){const _0x5dfb36=JSON[_0x2f96e7(0xb8)]({'name':_0x473dab[_0x2f96e7(0xbe)],'connection':_0x473dab['connection'],'connector_config':_0x473dab[_0x2f96e7(0xaa)]}),_0x3971aa=_0x4f200f[_0x2f96e7(0xb7)](_0x5dfb36);_0x3971aa?_0xdf1f0[_0x2f96e7(0xb3)](_0x20029f,_0x3971aa):(_0x524d33[_0x20029f]=_0x473dab,_0xdf1f0[_0x2f96e7(0xb3)](_0x20029f,_0x20029f),_0x4f200f[_0x2f96e7(0xb3)](_0x5dfb36,_0x20029f));}}return{'merged':_0x524d33,'nameMapping':_0xdf1f0};}function a102_0x1e2c(){const _0x58a194=['8amoiPF','set','75160ruYKPr','version_number','replace','get','stringify','entries','stages','3006732ueoyps','version','max','name','steps','yaml','length','305224mWInMC','latest','bundle_name','4464567ZqMjAp','segments','goal','450070mCamVH','map','item','versionNumber','with','state','toLowerCase','slice','match','type','1350205EBaYKu','activation','348LjIrND','description','journeys','draft','99jQVeDe','journey','connector_config','28SyXsfK','find','attributes','launched','keys','journeyStages','8388ohdtAx'];a102_0x1e2c=function(){return _0x58a194;};return a102_0x1e2c();}export function updateActivationReferences(_0x2f5d96,_0x45f60a){const _0x5524fb=a102_0x2e16;if(!_0x2f5d96)return;for(const _0xc32998 of _0x2f5d96){if(!_0xc32998[_0x5524fb(0xbf)])continue;for(const _0x55f16e of _0xc32998[_0x5524fb(0xbf)]){if(_0x55f16e[_0x5524fb(0xa1)]===_0x5524fb(0xa3)&&_0x55f16e[_0x5524fb(0x9c)]?.[_0x5524fb(0xa3)]){const _0x45ff26=_0x45f60a['get'](_0x55f16e[_0x5524fb(0x9c)]['activation']);_0x45ff26&&_0x45ff26!==_0x55f16e[_0x5524fb(0x9c)][_0x5524fb(0xa3)]&&(_0x55f16e[_0x5524fb(0x9c)][_0x5524fb(0xa3)]=_0x45ff26);}}}}export function buildJourneysArray(_0x2204ae){const _0x2cdfee=a102_0x2e16,_0x53ff7d=Math[_0x2cdfee(0xbd)](..._0x2204ae[_0x2cdfee(0x99)](_0x65aa63=>_0x65aa63['item'][_0x2cdfee(0x9b)]||0x0));return _0x2204ae['map'](_0x2367e1=>{const _0x43c79d=_0x2cdfee,_0x74d9e9=(_0x2367e1[_0x43c79d(0x9a)][_0x43c79d(0x9b)]||0x0)===_0x53ff7d,_0x35e662=_0x2367e1['yaml'][_0x43c79d(0xa6)]?.[0x0],_0x3776e2={'version':_0x35e662?.[_0x43c79d(0xbc)]||_0x2367e1[_0x43c79d(0xc0)][_0x43c79d(0xbc)]||_0x2367e1[_0x43c79d(0x9a)][_0x43c79d(0xbe)],'state':_0x2367e1[_0x43c79d(0x9a)][_0x43c79d(0x9d)]===_0x43c79d(0xae)?_0x43c79d(0xae):_0x43c79d(0xa7),'stages':_0x35e662?.[_0x43c79d(0xba)]||_0x2367e1[_0x43c79d(0xc0)][_0x43c79d(0xba)]||[],'id':_0x35e662?.['id']||_0x2367e1[_0x43c79d(0xc0)]['id'],'version_number':_0x35e662?.[_0x43c79d(0xb5)]||_0x2367e1[_0x43c79d(0xc0)][_0x43c79d(0xb5)]};return _0x74d9e9&&(_0x3776e2[_0x43c79d(0xc3)]=!![]),_0x3776e2;});}function a102_0x2e16(_0x499e1a,_0x4e24fa){_0x499e1a=_0x499e1a-0x94;const _0x1e2cec=a102_0x1e2c();let _0x2e16bf=_0x1e2cec[_0x499e1a];return _0x2e16bf;}export function buildMergedJourneyYaml(_0x22bab5){const _0x3ceb65=a102_0x2e16,_0x342b54=_0x22bab5[0x0][_0x3ceb65(0xc0)],_0x4ac19f=buildJourneysArray(_0x22bab5),{merged:_0x2a864f,nameMapping:_0x5355f4}=consolidateActivationsByContent(_0x22bab5[_0x3ceb65(0x99)](_0x4889fa=>_0x4889fa['yaml']['activations']));for(const _0x859b7a of _0x4ac19f){updateActivationReferences(_0x859b7a[_0x3ceb65(0xba)],_0x5355f4);}return{'type':_0x3ceb65(0xa9),'name':_0x342b54['name'],'description':_0x342b54[_0x3ceb65(0xa5)],'segments':_0x342b54[_0x3ceb65(0x96)],'activations':Object[_0x3ceb65(0xaf)](_0x2a864f)[_0x3ceb65(0xc1)]>0x0?_0x2a864f:undefined,'goal':_0x342b54[_0x3ceb65(0x97)],'reentry':_0x342b54['reentry'],'journeys':_0x4ac19f,'bundle_id':_0x342b54['bundle_id'],'bundle_name':_0x342b54[_0x3ceb65(0x94)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0xf9a105,_0x24eaf0,_0x1d829d,_0x58b643){const _0x170d88=a102_0x2e16,_0x759899=_0xf9a105+':'+_0x24eaf0,_0x39c129=_0x1d829d[_0x170d88(0xb7)](_0x759899);if(_0x39c129)return _0x39c129;const _0x4ed32a=await _0x58b643(_0xf9a105),_0x287e00=_0x4ed32a['attributes']['journeyBundleName']||_0x4ed32a['attributes'][_0x170d88(0xbe)],_0x3c0fd5=_0x4ed32a[_0x170d88(0xad)][_0x170d88(0xb0)][_0x170d88(0xac)](_0x52241b=>_0x52241b['id']===_0x24eaf0),_0x254ce3=_0x3c0fd5?.[_0x170d88(0xbe)]||_0x24eaf0,_0x3b8236={'journeyName':_0x287e00,'stageName':_0x254ce3};return _0x1d829d['set'](_0x759899,_0x3b8236),_0x3b8236;}
1
+ (function(_0xe971ef,_0x41073c){const _0x172cca=a102_0x27a1,_0x1b79b4=_0xe971ef();while(!![]){try{const _0x5b4438=-parseInt(_0x172cca(0x13c))/0x1+parseInt(_0x172cca(0x15b))/0x2*(parseInt(_0x172cca(0x152))/0x3)+parseInt(_0x172cca(0x165))/0x4+-parseInt(_0x172cca(0x15e))/0x5*(-parseInt(_0x172cca(0x154))/0x6)+parseInt(_0x172cca(0x15f))/0x7*(parseInt(_0x172cca(0x142))/0x8)+-parseInt(_0x172cca(0x149))/0x9+-parseInt(_0x172cca(0x141))/0xa*(-parseInt(_0x172cca(0x151))/0xb);if(_0x5b4438===_0x41073c)break;else _0x1b79b4['push'](_0x1b79b4['shift']());}catch(_0x46696c){_0x1b79b4['push'](_0x1b79b4['shift']());}}}(a102_0x2a51,0xe68fc));export const SEGMENT_KIND_JOURNEY=0x3;export function sanitizeYamlKey(_0x242158){const _0x4fe10d=a102_0x27a1;return _0x242158[_0x4fe10d(0x14f)]()[_0x4fe10d(0x144)](/\s+/g,'_')[_0x4fe10d(0x144)](/[^a-z0-9_]/g,'')[_0x4fe10d(0x144)](/_+/g,'_')[_0x4fe10d(0x144)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x355968){const _0x5ceee5=a102_0x27a1,_0x360774=_0x355968['match'](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x360774){const _0x3da8c3=_0x360774[0x1]['toLowerCase'](),_0x5f009e=_0x360774[0x2],_0x2d88c3=_0x5f009e[_0x5ceee5(0x144)](/-/g,'')[_0x5ceee5(0x14c)](0x0,0x4)[_0x5ceee5(0x14f)]();return _0x3da8c3+'_'+_0x2d88c3;}return undefined;}function a102_0x27a1(_0x550b64,_0xb15e53){_0x550b64=_0x550b64-0x138;const _0x2a517f=a102_0x2a51();let _0x27a17e=_0x2a517f[_0x550b64];return _0x27a17e;}export function consolidateActivationsByContent(_0x385d5a){const _0x289eb8=a102_0x27a1,_0x926f26={},_0x1671bf=new Map(),_0x52c177=new Map();for(const _0x4a6847 of _0x385d5a){if(!_0x4a6847)continue;for(const [_0x3d0caf,_0x4f78cd]of Object[_0x289eb8(0x159)](_0x4a6847)){const _0x3ba42b=JSON['stringify']({'name':_0x4f78cd[_0x289eb8(0x161)],'connection':_0x4f78cd[_0x289eb8(0x14d)],'connector_config':_0x4f78cd[_0x289eb8(0x15d)]}),_0xa7ce1b=_0x52c177[_0x289eb8(0x13f)](_0x3ba42b);_0xa7ce1b?_0x1671bf[_0x289eb8(0x13b)](_0x3d0caf,_0xa7ce1b):(_0x926f26[_0x3d0caf]=_0x4f78cd,_0x1671bf[_0x289eb8(0x13b)](_0x3d0caf,_0x3d0caf),_0x52c177[_0x289eb8(0x13b)](_0x3ba42b,_0x3d0caf));}}return{'merged':_0x926f26,'nameMapping':_0x1671bf};}export function updateActivationReferences(_0x4fa4e4,_0x3e5594){const _0x3e1871=a102_0x27a1;if(!_0x4fa4e4)return;for(const _0x120c3f of _0x4fa4e4){if(!_0x120c3f[_0x3e1871(0x163)])continue;for(const _0x297ffd of _0x120c3f[_0x3e1871(0x163)]){if(_0x297ffd[_0x3e1871(0x140)]===_0x3e1871(0x15a)&&_0x297ffd[_0x3e1871(0x13d)]?.[_0x3e1871(0x15a)]){const _0x484328=_0x3e5594[_0x3e1871(0x13f)](_0x297ffd[_0x3e1871(0x13d)][_0x3e1871(0x15a)]);_0x484328&&_0x484328!==_0x297ffd[_0x3e1871(0x13d)][_0x3e1871(0x15a)]&&(_0x297ffd['with'][_0x3e1871(0x15a)]=_0x484328);}}}}function a102_0x2a51(){const _0x1e12b6=['slice','connection','segments','toLowerCase','version','415734BHGXRT','15EcIcEu','journey','3668802MQTUBF','attributes','yaml','max','journeyBundleName','entries','activation','431288bigEBJ','length','connector_config','10miFGcb','1358pMmTXC','item','name','keys','steps','state','748432efKjnq','version_number','activations','versionNumber','set','1688809TIOSLi','with','stages','get','type','140XQFKNM','60968LpnduF','find','replace','map','journeyStages','journeys','reentry','16763967DIiPUF','launched','latest'];a102_0x2a51=function(){return _0x1e12b6;};return a102_0x2a51();}export function buildJourneysArray(_0x1e2e27){const _0x3084b4=a102_0x27a1,_0x90fdc5=Math[_0x3084b4(0x157)](..._0x1e2e27[_0x3084b4(0x145)](_0x58f675=>_0x58f675['item'][_0x3084b4(0x13a)]||0x0));return _0x1e2e27[_0x3084b4(0x145)](_0x33078e=>{const _0x5e34b3=_0x3084b4,_0xecf8b0=(_0x33078e[_0x5e34b3(0x160)][_0x5e34b3(0x13a)]||0x0)===_0x90fdc5,_0x285c3d=_0x33078e['yaml'][_0x5e34b3(0x147)]?.[0x0],_0x2ed58c={'version':_0x285c3d?.['version']||_0x33078e[_0x5e34b3(0x156)][_0x5e34b3(0x150)]||_0x33078e[_0x5e34b3(0x160)][_0x5e34b3(0x161)],'state':_0x33078e[_0x5e34b3(0x160)][_0x5e34b3(0x164)]===_0x5e34b3(0x14a)?_0x5e34b3(0x14a):'draft','stages':_0x285c3d?.[_0x5e34b3(0x13e)]||_0x33078e['yaml'][_0x5e34b3(0x13e)]||[],'id':_0x285c3d?.['id']||_0x33078e[_0x5e34b3(0x156)]['id'],'version_number':_0x285c3d?.[_0x5e34b3(0x138)]||_0x33078e['yaml'][_0x5e34b3(0x138)]};return _0xecf8b0&&(_0x2ed58c[_0x5e34b3(0x14b)]=!![]),_0x2ed58c;});}export function buildMergedJourneyYaml(_0x569fd1){const _0x3aa6e5=a102_0x27a1,_0x53407c=_0x569fd1[0x0][_0x3aa6e5(0x156)],_0x76d152=buildJourneysArray(_0x569fd1),{merged:_0x57be01,nameMapping:_0x1d8722}=consolidateActivationsByContent(_0x569fd1[_0x3aa6e5(0x145)](_0x33d6a9=>_0x33d6a9[_0x3aa6e5(0x156)][_0x3aa6e5(0x139)]));for(const _0x3d6035 of _0x76d152){updateActivationReferences(_0x3d6035[_0x3aa6e5(0x13e)],_0x1d8722);}return{'type':_0x3aa6e5(0x153),'name':_0x53407c[_0x3aa6e5(0x161)],'description':_0x53407c['description'],'segments':_0x53407c[_0x3aa6e5(0x14e)],'activations':Object[_0x3aa6e5(0x162)](_0x57be01)[_0x3aa6e5(0x15c)]>0x0?_0x57be01:undefined,'goal':_0x53407c['goal'],'reentry':_0x53407c[_0x3aa6e5(0x148)],'journeys':_0x76d152,'bundle_id':_0x53407c['bundle_id'],'bundle_name':_0x53407c['bundle_name']};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x201b0e,_0x5e5a21,_0x485d76,_0x1c3304){const _0x26b607=a102_0x27a1,_0x2d22c4=_0x201b0e+':'+_0x5e5a21,_0x12fd6b=_0x485d76[_0x26b607(0x13f)](_0x2d22c4);if(_0x12fd6b)return _0x12fd6b;const _0xaa5491=await _0x1c3304(_0x201b0e),_0x26d257=_0xaa5491[_0x26b607(0x155)][_0x26b607(0x158)]||_0xaa5491[_0x26b607(0x155)]['name'],_0x49c5c2=_0xaa5491['attributes'][_0x26b607(0x146)][_0x26b607(0x143)](_0x1ec148=>_0x1ec148['id']===_0x5e5a21),_0x72935c=_0x49c5c2?.['name']||_0x5e5a21,_0x1db511={'journeyName':_0x26d257,'stageName':_0x72935c};return _0x485d76[_0x26b607(0x13b)](_0x2d22c4,_0x1db511),_0x1db511;}
@@ -1 +1 @@
1
- (function(_0x196cea,_0x2e8448){const _0x493615=a103_0x2602,_0xe5c676=_0x196cea();while(!![]){try{const _0x60cfbd=-parseInt(_0x493615(0x136))/0x1*(parseInt(_0x493615(0x132))/0x2)+-parseInt(_0x493615(0x12e))/0x3*(-parseInt(_0x493615(0x12b))/0x4)+parseInt(_0x493615(0x13a))/0x5*(-parseInt(_0x493615(0x129))/0x6)+parseInt(_0x493615(0x12d))/0x7+parseInt(_0x493615(0x138))/0x8*(parseInt(_0x493615(0x13d))/0x9)+-parseInt(_0x493615(0x13e))/0xa*(parseInt(_0x493615(0x139))/0xb)+-parseInt(_0x493615(0x130))/0xc;if(_0x60cfbd===_0x2e8448)break;else _0xe5c676['push'](_0xe5c676['shift']());}catch(_0x53695a){_0xe5c676['push'](_0xe5c676['shift']());}}}(a103_0x32ae,0xae643));import{readFile}from'fs/promises';function a103_0x2602(_0x317a85,_0x2656d3){_0x317a85=_0x317a85-0x129;const _0x32ae88=a103_0x32ae();let _0x2602c4=_0x32ae88[_0x317a85];return _0x2602c4;}function a103_0x32ae(){const _0x333141=['72990BdMCnf','Permission\x20denied\x20reading\x20file:\x20','INVALID_ARGUMENT','67806pAoexX','Invalid\x20JSON\x20string:\x20','2975524kTyRWN','parse','8168524QzsBGQ','3FFUglD','utf-8','506544VGUUAA','Invalid\x20JSON\x20in\x20file\x20\x27','2MfxuFG','EACCES','code','message','1090481ZuCJBI','\x27:\x20','4656QCccRg','297XWQlYm','180zSYwZO','ENOENT','Failed\x20to\x20load\x20JSON:\x20','8352YDvCmr'];a103_0x32ae=function(){return _0x333141;};return a103_0x32ae();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x314e88,_0x383779){const _0x1f45f3=a103_0x2602;try{if(_0x383779){const _0x2363c0=await readFile(_0x314e88,_0x1f45f3(0x12f));try{return JSON[_0x1f45f3(0x12c)](_0x2363c0);}catch(_0x57aa90){throw new SDKError(ErrorCode[_0x1f45f3(0x140)],_0x1f45f3(0x131)+_0x314e88+_0x1f45f3(0x137)+(_0x57aa90 instanceof Error?_0x57aa90[_0x1f45f3(0x135)]:String(_0x57aa90)));}}else try{return JSON[_0x1f45f3(0x12c)](_0x314e88);}catch(_0x2c6c72){throw new SDKError(ErrorCode[_0x1f45f3(0x140)],_0x1f45f3(0x12a)+(_0x2c6c72 instanceof Error?_0x2c6c72[_0x1f45f3(0x135)]:String(_0x2c6c72)));}}catch(_0xa91804){if(_0xa91804 instanceof SDKError)throw _0xa91804;if(_0xa91804 instanceof Error&&_0x1f45f3(0x134)in _0xa91804){const _0x3efe15=_0xa91804;if(_0x3efe15['code']===_0x1f45f3(0x13b))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x314e88);else{if(_0x3efe15[_0x1f45f3(0x134)]===_0x1f45f3(0x133))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1f45f3(0x13f)+_0x314e88);}}throw new SDKError(ErrorCode['INTERNAL'],_0x1f45f3(0x13c)+(_0xa91804 instanceof Error?_0xa91804[_0x1f45f3(0x135)]:String(_0xa91804)));}}export async function loadJSONFromOptions(_0x2b2fc7,_0x18643f){if(_0x2b2fc7&&_0x18643f)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2b2fc7)return await loadJSON(_0x2b2fc7,![]);if(_0x18643f)return await loadJSON(_0x18643f,!![]);return undefined;}
1
+ (function(_0x2d1e3d,_0x306bec){const _0x47b7bd=a103_0x31ba,_0x373119=_0x2d1e3d();while(!![]){try{const _0x5310b4=-parseInt(_0x47b7bd(0xf5))/0x1*(-parseInt(_0x47b7bd(0xf3))/0x2)+-parseInt(_0x47b7bd(0xf7))/0x3*(parseInt(_0x47b7bd(0xfd))/0x4)+parseInt(_0x47b7bd(0x104))/0x5*(parseInt(_0x47b7bd(0xf2))/0x6)+parseInt(_0x47b7bd(0xff))/0x7+parseInt(_0x47b7bd(0xf9))/0x8+-parseInt(_0x47b7bd(0xf1))/0x9+parseInt(_0x47b7bd(0xed))/0xa*(-parseInt(_0x47b7bd(0x101))/0xb);if(_0x5310b4===_0x306bec)break;else _0x373119['push'](_0x373119['shift']());}catch(_0x1a49e2){_0x373119['push'](_0x373119['shift']());}}}(a103_0x38f8,0x34866));function a103_0x31ba(_0x2cf7a0,_0x28d513){_0x2cf7a0=_0x2cf7a0-0xed;const _0x38f8f0=a103_0x38f8();let _0x31bac0=_0x38f8f0[_0x2cf7a0];return _0x31bac0;}function a103_0x38f8(){const _0x2b33e8=['45419VUzhQp','message','INTERNAL','2104415KJBjik','1640wEMJpo','\x27:\x20','File\x20not\x20found:\x20','NOT_FOUND','1317915TVwMWG','6MauyRK','74gKVldT','code','9227eKRWAp','parse','277377wLxrmQ','PERMISSION_DENIED','2520840RKaeZH','utf-8','Invalid\x20JSON\x20string:\x20','INVALID_ARGUMENT','4qKhoeO','EACCES','376635dtVOnn','Invalid\x20JSON\x20in\x20file\x20\x27'];a103_0x38f8=function(){return _0x2b33e8;};return a103_0x38f8();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x313f7c,_0x4d478b){const _0x5675d0=a103_0x31ba;try{if(_0x4d478b){const _0x1eeaf9=await readFile(_0x313f7c,_0x5675d0(0xfa));try{return JSON['parse'](_0x1eeaf9);}catch(_0x5b9c98){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x5675d0(0x100)+_0x313f7c+_0x5675d0(0xee)+(_0x5b9c98 instanceof Error?_0x5b9c98[_0x5675d0(0x102)]:String(_0x5b9c98)));}}else try{return JSON[_0x5675d0(0xf6)](_0x313f7c);}catch(_0x53d51e){throw new SDKError(ErrorCode[_0x5675d0(0xfc)],_0x5675d0(0xfb)+(_0x53d51e instanceof Error?_0x53d51e[_0x5675d0(0x102)]:String(_0x53d51e)));}}catch(_0x53c433){if(_0x53c433 instanceof SDKError)throw _0x53c433;if(_0x53c433 instanceof Error&&_0x5675d0(0xf4)in _0x53c433){const _0x4c0dbc=_0x53c433;if(_0x4c0dbc['code']==='ENOENT')throw new SDKError(ErrorCode[_0x5675d0(0xf0)],_0x5675d0(0xef)+_0x313f7c);else{if(_0x4c0dbc['code']===_0x5675d0(0xfe))throw new SDKError(ErrorCode[_0x5675d0(0xf8)],'Permission\x20denied\x20reading\x20file:\x20'+_0x313f7c);}}throw new SDKError(ErrorCode[_0x5675d0(0x103)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x53c433 instanceof Error?_0x53c433[_0x5675d0(0x102)]:String(_0x53c433)));}}export async function loadJSONFromOptions(_0x322d8a,_0x54fa68){const _0x19ffbe=a103_0x31ba;if(_0x322d8a&&_0x54fa68)throw new SDKError(ErrorCode[_0x19ffbe(0xfc)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x322d8a)return await loadJSON(_0x322d8a,![]);if(_0x54fa68)return await loadJSON(_0x54fa68,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x32cc38,_0x2858ea){const _0x34d3a7=a104_0x4605,_0x50a08b=_0x32cc38();while(!![]){try{const _0x18fce3=-parseInt(_0x34d3a7(0x1ef))/0x1*(-parseInt(_0x34d3a7(0x1e3))/0x2)+-parseInt(_0x34d3a7(0x1e8))/0x3*(parseInt(_0x34d3a7(0x1e9))/0x4)+parseInt(_0x34d3a7(0x1e1))/0x5*(parseInt(_0x34d3a7(0x1f1))/0x6)+-parseInt(_0x34d3a7(0x1f3))/0x7+-parseInt(_0x34d3a7(0x1ee))/0x8*(parseInt(_0x34d3a7(0x1e4))/0x9)+-parseInt(_0x34d3a7(0x1ed))/0xa*(-parseInt(_0x34d3a7(0x1ea))/0xb)+parseInt(_0x34d3a7(0x1e7))/0xc;if(_0x18fce3===_0x2858ea)break;else _0x50a08b['push'](_0x50a08b['shift']());}catch(_0x161f3a){_0x50a08b['push'](_0x50a08b['shift']());}}}(a104_0xc16d,0x90a97));export function canCreateAgent(_0x2df93d,_0x3a3311){const _0x1ed14b=a104_0x4605;for(const _0xf301bc of _0x2df93d[_0x1ed14b(0x1e5)][_0x1ed14b(0x1ec)]){if(_0xf301bc['targetAgentId']&&!_0x3a3311[_0x1ed14b(0x1f0)](_0xf301bc[_0x1ed14b(0x1e6)]))return![];}return!![];}export function remapToolIds(_0x3859b0,_0x6accf9,_0x2145fb){const _0x5026a7=a104_0x4605;return _0x3859b0[_0x5026a7(0x1f4)](_0x20025c=>({..._0x20025c,'targetKnowledgeBaseId':_0x20025c[_0x5026a7(0x1eb)]?_0x6accf9[_0x5026a7(0x1f2)](_0x20025c[_0x5026a7(0x1eb)])||_0x20025c[_0x5026a7(0x1eb)]:undefined,'targetAgentId':_0x20025c[_0x5026a7(0x1e6)]?_0x2145fb[_0x5026a7(0x1f2)](_0x20025c['targetAgentId'])||_0x20025c[_0x5026a7(0x1e6)]:undefined}));}function a104_0xc16d(){const _0x468e83=['8gOgTgd','217577gHyisb','has','557472AtTEtN','get','6592789aIcXQZ','map','5ZcUrim','1.0','2jsDWfC','3760929NLnLxa','attributes','targetAgentId','21536844lfXVEY','6dplkHv','948376Sbgidc','11uCuzqL','targetKnowledgeBaseId','tools','3212050oeyUnm'];a104_0xc16d=function(){return _0x468e83;};return a104_0xc16d();}function a104_0x4605(_0x5f276e,_0x2a14c1){_0x5f276e=_0x5f276e-0x1e1;const _0xc16d12=a104_0xc16d();let _0x460542=_0xc16d12[_0x5f276e];return _0x460542;}export function remapVariableIds(_0x29b180,_0x6ea336){const _0x177043=a104_0x4605;return _0x29b180[_0x177043(0x1f4)](_0x2e2c1d=>({..._0x2e2c1d,'targetKnowledgeBaseId':_0x6ea336['get'](_0x2e2c1d[_0x177043(0x1eb)])||_0x2e2c1d[_0x177043(0x1eb)]}));}export function isSupportedBackupVersion(_0x34d899){const _0x378d4e=a104_0x4605;return _0x34d899===_0x378d4e(0x1e2);}
1
+ function a104_0xef70(_0x2c2dbe,_0x244031){_0x2c2dbe=_0x2c2dbe-0x105;const _0xa84d51=a104_0xa84d();let _0xef7042=_0xa84d51[_0x2c2dbe];return _0xef7042;}(function(_0x98e20a,_0x598556){const _0x383ed0=a104_0xef70,_0x371493=_0x98e20a();while(!![]){try{const _0x4f77b4=-parseInt(_0x383ed0(0x105))/0x1+parseInt(_0x383ed0(0x111))/0x2+parseInt(_0x383ed0(0x115))/0x3+parseInt(_0x383ed0(0x109))/0x4*(-parseInt(_0x383ed0(0x10c))/0x5)+parseInt(_0x383ed0(0x10b))/0x6*(parseInt(_0x383ed0(0x107))/0x7)+parseInt(_0x383ed0(0x10f))/0x8*(-parseInt(_0x383ed0(0x10d))/0x9)+parseInt(_0x383ed0(0x10e))/0xa*(parseInt(_0x383ed0(0x108))/0xb);if(_0x4f77b4===_0x598556)break;else _0x371493['push'](_0x371493['shift']());}catch(_0x2c3bde){_0x371493['push'](_0x371493['shift']());}}}(a104_0xa84d,0x70054));export function canCreateAgent(_0x342e4a,_0xabfc0c){const _0xb13e22=a104_0xef70;for(const _0x57b3f4 of _0x342e4a['attributes'][_0xb13e22(0x114)]){if(_0x57b3f4[_0xb13e22(0x110)]&&!_0xabfc0c['has'](_0x57b3f4[_0xb13e22(0x110)]))return![];}return!![];}export function remapToolIds(_0x5cca7f,_0x4fb115,_0xad024f){const _0x50cc43=a104_0xef70;return _0x5cca7f[_0x50cc43(0x106)](_0x167ba3=>({..._0x167ba3,'targetKnowledgeBaseId':_0x167ba3[_0x50cc43(0x112)]?_0x4fb115['get'](_0x167ba3[_0x50cc43(0x112)])||_0x167ba3['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x167ba3[_0x50cc43(0x110)]?_0xad024f['get'](_0x167ba3[_0x50cc43(0x110)])||_0x167ba3['targetAgentId']:undefined}));}function a104_0xa84d(){const _0x5265fd=['4538936codAiW','targetAgentId','201644siLJNf','targetKnowledgeBaseId','get','tools','534045iguryN','907119BzVwZH','map','7WuedbT','55TJTJVj','208768STNfGZ','1.0','1946628QYqMZy','70mCRFxB','9MJsdmZ','4121470OvKIUA'];a104_0xa84d=function(){return _0x5265fd;};return a104_0xa84d();}export function remapVariableIds(_0x49822a,_0x282318){const _0x3ac243=a104_0xef70;return _0x49822a['map'](_0x1a9caf=>({..._0x1a9caf,'targetKnowledgeBaseId':_0x282318[_0x3ac243(0x113)](_0x1a9caf[_0x3ac243(0x112)])||_0x1a9caf[_0x3ac243(0x112)]}));}export function isSupportedBackupVersion(_0x1b3e9a){const _0x2477ea=a104_0xef70;return _0x1b3e9a===_0x2477ea(0x10a);}
@@ -1 +1 @@
1
- const a105_0x1021cb=a105_0x10f9;(function(_0x1c3c1d,_0x3343c0){const _0x16036c=a105_0x10f9,_0x34fa84=_0x1c3c1d();while(!![]){try{const _0x356128=-parseInt(_0x16036c(0xe3))/0x1*(-parseInt(_0x16036c(0xe4))/0x2)+parseInt(_0x16036c(0xee))/0x3*(-parseInt(_0x16036c(0xe7))/0x4)+-parseInt(_0x16036c(0xe5))/0x5*(-parseInt(_0x16036c(0xf0))/0x6)+-parseInt(_0x16036c(0xeb))/0x7*(parseInt(_0x16036c(0xe0))/0x8)+-parseInt(_0x16036c(0xed))/0x9*(parseInt(_0x16036c(0xe2))/0xa)+-parseInt(_0x16036c(0xe9))/0xb+-parseInt(_0x16036c(0xec))/0xc*(-parseInt(_0x16036c(0xef))/0xd);if(_0x356128===_0x3343c0)break;else _0x34fa84['push'](_0x34fa84['shift']());}catch(_0x127e6e){_0x34fa84['push'](_0x34fa84['shift']());}}}(a105_0x2d67,0x2d192));function a105_0x2d67(){const _0x6bf829=['83bbXISv','6294ijNTJA','47990VbmvhR','claude-4.5-haiku','39868QVxVgx','match','3215080QcaVHE','claude-4.5-sonnet','2195312bCBrmc','69780dyXQqS','7569geTuMw','36rpSICi','1196KNsOIH','96TeazdQ','8lbTAIz','toLowerCase','470zqDbRP'];a105_0x2d67=function(){return _0x6bf829;};return a105_0x2d67();}const MODEL_ALIASES={'haiku':a105_0x1021cb(0xe6),'sonnet':a105_0x1021cb(0xea)};export function extractModelAlias(_0x1036ca){const _0x154ed6=a105_0x1021cb,_0xb2cb0f=_0x1036ca[_0x154ed6(0xe8)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0xb2cb0f)return _0xb2cb0f[0x1][_0x154ed6(0xe1)]();return _0x1036ca;}function a105_0x10f9(_0x4e27f7,_0x2741af){_0x4e27f7=_0x4e27f7-0xe0;const _0x2d675d=a105_0x2d67();let _0x10f991=_0x2d675d[_0x4e27f7];return _0x10f991;}export function resolveModelAlias(_0x42863e){const _0x215287=a105_0x1021cb;return MODEL_ALIASES[_0x42863e[_0x215287(0xe1)]()]||_0x42863e;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a105_0x482fb6=a105_0xf98e;(function(_0xfa2131,_0x5e15b5){const _0x5070b4=a105_0xf98e,_0x198c79=_0xfa2131();while(!![]){try{const _0x48c439=-parseInt(_0x5070b4(0xae))/0x1*(-parseInt(_0x5070b4(0xb6))/0x2)+-parseInt(_0x5070b4(0xb5))/0x3+-parseInt(_0x5070b4(0xba))/0x4+-parseInt(_0x5070b4(0xb3))/0x5*(parseInt(_0x5070b4(0xb8))/0x6)+-parseInt(_0x5070b4(0xb2))/0x7+parseInt(_0x5070b4(0xaf))/0x8*(-parseInt(_0x5070b4(0xb9))/0x9)+-parseInt(_0x5070b4(0xb0))/0xa*(-parseInt(_0x5070b4(0xb4))/0xb);if(_0x48c439===_0x5e15b5)break;else _0x198c79['push'](_0x198c79['shift']());}catch(_0x3790da){_0x198c79['push'](_0x198c79['shift']());}}}(a105_0x24fa,0x56b66));function a105_0xf98e(_0x507525,_0x28a64c){_0x507525=_0x507525-0xac;const _0x24fa7d=a105_0x24fa();let _0xf98eb1=_0x24fa7d[_0x507525];return _0xf98eb1;}const MODEL_ALIASES={'haiku':a105_0x482fb6(0xad),'sonnet':a105_0x482fb6(0xac)};function a105_0x24fa(){const _0x119b79=['match','1626474wuJmCc','1600794yQPKke','1811488eQoYay','claude-4.5-sonnet','claude-4.5-haiku','241YRZCEW','16vaAwCQ','9968110yegQIl','toLowerCase','3168417GbMCKd','10zCDFOz','22nJbZlK','339507RxaOkA','2308uibagT'];a105_0x24fa=function(){return _0x119b79;};return a105_0x24fa();}export function extractModelAlias(_0x543d4a){const _0x1e881b=a105_0x482fb6,_0xfc5a9b=_0x543d4a[_0x1e881b(0xb7)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0xfc5a9b)return _0xfc5a9b[0x1][_0x1e881b(0xb1)]();return _0x543d4a;}export function resolveModelAlias(_0x33465f){const _0x302fb6=a105_0x482fb6;return MODEL_ALIASES[_0x33465f[_0x302fb6(0xb1)]()]||_0x33465f;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x485088,_0x5e490d){const _0x42b8d4=a106_0x2589,_0x24ebcd=_0x485088();while(!![]){try{const _0x5e3245=parseInt(_0x42b8d4(0x1ec))/0x1+-parseInt(_0x42b8d4(0x1dc))/0x2+-parseInt(_0x42b8d4(0x1ea))/0x3*(parseInt(_0x42b8d4(0x1e9))/0x4)+parseInt(_0x42b8d4(0x1df))/0x5*(parseInt(_0x42b8d4(0x1e5))/0x6)+parseInt(_0x42b8d4(0x1e7))/0x7*(parseInt(_0x42b8d4(0x1eb))/0x8)+parseInt(_0x42b8d4(0x1e0))/0x9*(-parseInt(_0x42b8d4(0x1ee))/0xa)+parseInt(_0x42b8d4(0x1e8))/0xb*(parseInt(_0x42b8d4(0x1de))/0xc);if(_0x5e3245===_0x5e490d)break;else _0x24ebcd['push'](_0x24ebcd['shift']());}catch(_0x5ce875){_0x24ebcd['push'](_0x24ebcd['shift']());}}}(a106_0x562a,0x7e8cc));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(_0x16a38c){const _0x2be693=a106_0x2589,_0x2f66f4=_0x16a38c[_0x2be693(0x1e4)]();if(MODEL_FACTORS[_0x2f66f4])return MODEL_FACTORS[_0x2f66f4];if(_0x2f66f4[_0x2be693(0x1d7)]('sonnet'))return MODEL_FACTORS['sonnet'];if(_0x2f66f4[_0x2be693(0x1d7)](_0x2be693(0x1d8)))return MODEL_FACTORS[_0x2be693(0x1d8)];if(_0x2f66f4[_0x2be693(0x1d7)](_0x2be693(0x1d5)))return MODEL_FACTORS['opus'];return MODEL_FACTORS[_0x2be693(0x1d9)];}export function getContextLimit(_0x2e5148){const _0x8d4bed=a106_0x2589,_0x13534e=_0x2e5148[_0x8d4bed(0x1e4)]();if(_0x13534e[_0x8d4bed(0x1d7)](_0x8d4bed(0x1d9)))return CONTEXT_LIMITS['sonnet'];if(_0x13534e[_0x8d4bed(0x1d7)](_0x8d4bed(0x1d8)))return CONTEXT_LIMITS[_0x8d4bed(0x1d8)];if(_0x13534e['includes'](_0x8d4bed(0x1d5)))return CONTEXT_LIMITS[_0x8d4bed(0x1d5)];return CONTEXT_LIMITS[_0x8d4bed(0x1e1)];}export function calculateChatUnit(_0xe92d01,_0x4db483,_0x3fa1ac){return(_0xe92d01+_0x4db483)/0x1388*_0x3fa1ac;}export function calculateCredits(_0x1853e5){return _0x1853e5/0x2904;}function a106_0x562a(){const _0x5155d8=['1140136MtDCJs','556065DXrjsn','en-US','5532790qeYLsv','Haiku\x204','opus','4.5','includes','haiku','sonnet','4-5','Sonnet\x204.5','514646cCYhRG','Haiku\x204.5','12KKomTt','1200qdAJkm','9oCcBuL','default','Claude','round','toLowerCase','6498CXyekN','Sonnet\x204','14BClXuC','3823402JQTPqV','4QjyGex','358953Suuwxx'];a106_0x562a=function(){return _0x5155d8;};return a106_0x562a();}export function getModelDisplayName(_0x23d099){const _0x272953=a106_0x2589,_0x200632=_0x23d099['toLowerCase']();if(_0x200632[_0x272953(0x1d7)](_0x272953(0x1d9))){if(_0x200632['includes']('4-5')||_0x200632[_0x272953(0x1d7)]('4.5'))return _0x272953(0x1db);return _0x272953(0x1e6);}if(_0x200632[_0x272953(0x1d7)](_0x272953(0x1d8))){if(_0x200632[_0x272953(0x1d7)](_0x272953(0x1da))||_0x200632[_0x272953(0x1d7)](_0x272953(0x1d6)))return _0x272953(0x1dd);return _0x272953(0x1d4);}if(_0x200632[_0x272953(0x1d7)](_0x272953(0x1d5))){if(_0x200632[_0x272953(0x1d7)]('4-5')||_0x200632[_0x272953(0x1d7)](_0x272953(0x1d6)))return'Opus\x204.5';return'Opus\x204';}return _0x272953(0x1e2);}export function formatTokenCount(_0xfac510){const _0x280aea=a106_0x2589;return _0xfac510['toLocaleString'](_0x280aea(0x1ed));}function a106_0x2589(_0x5ecbfa,_0x2c30c9){_0x5ecbfa=_0x5ecbfa-0x1d4;const _0x562a75=a106_0x562a();let _0x258910=_0x562a75[_0x5ecbfa];return _0x258910;}export function calculateContextPercentage(_0xc78a10,_0x2c3f09){const _0x2ebbdc=a106_0x2589,_0x5ceb71=getContextLimit(_0x2c3f09);return Math[_0x2ebbdc(0x1e3)](_0xc78a10/_0x5ceb71*0x64);}
1
+ (function(_0x236c7f,_0x577f96){const _0x531338=a106_0x528c,_0x567793=_0x236c7f();while(!![]){try{const _0x514342=parseInt(_0x531338(0x19c))/0x1*(parseInt(_0x531338(0x192))/0x2)+-parseInt(_0x531338(0x189))/0x3*(-parseInt(_0x531338(0x193))/0x4)+parseInt(_0x531338(0x187))/0x5*(parseInt(_0x531338(0x199))/0x6)+-parseInt(_0x531338(0x18b))/0x7+parseInt(_0x531338(0x18a))/0x8+parseInt(_0x531338(0x196))/0x9+parseInt(_0x531338(0x197))/0xa*(-parseInt(_0x531338(0x198))/0xb);if(_0x514342===_0x577f96)break;else _0x567793['push'](_0x567793['shift']());}catch(_0x907321){_0x567793['push'](_0x567793['shift']());}}}(a106_0x2fa3,0x5fb23));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};function a106_0x2fa3(){const _0x4d50ab=['Sonnet\x204','6596154ZJlbrB','33290TLANYa','4950BNzxAn','42PAqwbT','default','toLocaleString','67Ttffin','sonnet','Sonnet\x204.5','Opus\x204','round','toLowerCase','457630rsMgTr','Opus\x204.5','27003kjUMdE','6027072dpudhY','4106935dvErot','4.5','opus','haiku','Haiku\x204.5','Claude','includes','4798GpEnar','84Bwgsce','4-5'];a106_0x2fa3=function(){return _0x4d50ab;};return a106_0x2fa3();}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x23418a){const _0x2ffc60=a106_0x528c,_0x3c3311=_0x23418a[_0x2ffc60(0x186)]();if(MODEL_FACTORS[_0x3c3311])return MODEL_FACTORS[_0x3c3311];if(_0x3c3311['includes'](_0x2ffc60(0x182)))return MODEL_FACTORS['sonnet'];if(_0x3c3311[_0x2ffc60(0x191)](_0x2ffc60(0x18e)))return MODEL_FACTORS[_0x2ffc60(0x18e)];if(_0x3c3311['includes'](_0x2ffc60(0x18d)))return MODEL_FACTORS['opus'];return MODEL_FACTORS[_0x2ffc60(0x182)];}export function getContextLimit(_0x58edf4){const _0x4d56bd=a106_0x528c,_0x1ea927=_0x58edf4[_0x4d56bd(0x186)]();if(_0x1ea927[_0x4d56bd(0x191)](_0x4d56bd(0x182)))return CONTEXT_LIMITS['sonnet'];if(_0x1ea927['includes'](_0x4d56bd(0x18e)))return CONTEXT_LIMITS[_0x4d56bd(0x18e)];if(_0x1ea927[_0x4d56bd(0x191)](_0x4d56bd(0x18d)))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS[_0x4d56bd(0x19a)];}function a106_0x528c(_0x147c57,_0x399c1d){_0x147c57=_0x147c57-0x182;const _0x2fa3c2=a106_0x2fa3();let _0x528c4b=_0x2fa3c2[_0x147c57];return _0x528c4b;}export function calculateChatUnit(_0x2b1182,_0x1dc42b,_0x12c02d){return(_0x2b1182+_0x1dc42b)/0x1388*_0x12c02d;}export function calculateCredits(_0x1abf9a){return _0x1abf9a/0x2904;}export function getModelDisplayName(_0x228eba){const _0x29f425=a106_0x528c,_0x3bdc9a=_0x228eba[_0x29f425(0x186)]();if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x182))){if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x194))||_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18c)))return _0x29f425(0x183);return _0x29f425(0x195);}if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18e))){if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x194))||_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18c)))return _0x29f425(0x18f);return'Haiku\x204';}if(_0x3bdc9a['includes'](_0x29f425(0x18d))){if(_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x194))||_0x3bdc9a[_0x29f425(0x191)](_0x29f425(0x18c)))return _0x29f425(0x188);return _0x29f425(0x184);}return _0x29f425(0x190);}export function formatTokenCount(_0x5a0fa4){const _0x296c65=a106_0x528c;return _0x5a0fa4[_0x296c65(0x19b)]('en-US');}export function calculateContextPercentage(_0x5c2570,_0x53e123){const _0xbe5425=a106_0x528c,_0x544a19=getContextLimit(_0x53e123);return Math[_0xbe5425(0x185)](_0x5c2570/_0x544a19*0x64);}
@@ -1 +1 @@
1
- (function(_0x338af0,_0xc15a39){const _0x56ec4f=a107_0x2f28,_0x1d9a0f=_0x338af0();while(!![]){try{const _0x26b80d=-parseInt(_0x56ec4f(0x87))/0x1+parseInt(_0x56ec4f(0x8d))/0x2+-parseInt(_0x56ec4f(0x89))/0x3*(-parseInt(_0x56ec4f(0x80))/0x4)+parseInt(_0x56ec4f(0x83))/0x5+-parseInt(_0x56ec4f(0x88))/0x6*(parseInt(_0x56ec4f(0x85))/0x7)+parseInt(_0x56ec4f(0x8c))/0x8+-parseInt(_0x56ec4f(0x8a))/0x9;if(_0x26b80d===_0xc15a39)break;else _0x1d9a0f['push'](_0x1d9a0f['shift']());}catch(_0x3b0c3c){_0x1d9a0f['push'](_0x1d9a0f['shift']());}}}(a107_0x27f2,0xd526a));function a107_0x27f2(){const _0x17f497=['11798600eEflhL','311570mRmLdQ','6618996ybuubP','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20number.','8421675thfZKQ','Invalid\x20limit\x20value:\x20','133IHauAI','.\x20Must\x20be\x20a\x20positive\x20number.','547858XcUVMj','70284apuCJj','3HmPTSZ','29935836LKhpeH','number'];a107_0x27f2=function(){return _0x17f497;};return a107_0x27f2();}function a107_0x2f28(_0x263d71,_0xb86cd3){_0x263d71=_0x263d71-0x80;const _0x27f2e3=a107_0x27f2();let _0x2f2861=_0x27f2e3[_0x263d71];return _0x2f2861;}export function validateLimitOption(_0x4f79c2){const _0x147784=a107_0x2f28;if(!Number['isInteger'](_0x4f79c2))return{'isValid':![],'error':_0x147784(0x84)+_0x4f79c2+'.\x20Must\x20be\x20an\x20integer.'};if(_0x4f79c2<=0x0)return{'isValid':![],'error':_0x147784(0x84)+_0x4f79c2+_0x147784(0x81)};return{'isValid':!![],'value':_0x4f79c2};}export function validateTimeoutOption(_0x5d2481,_0x1c7650=0x1e){const _0x5f57b9=a107_0x2f28;if(_0x5d2481===undefined)return{'isValid':!![],'value':_0x1c7650};const _0x28d21e=typeof _0x5d2481===_0x5f57b9(0x8b)?_0x5d2481:parseFloat(_0x5d2481);if(isNaN(_0x28d21e))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5d2481+_0x5f57b9(0x82)};if(_0x28d21e<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x28d21e+_0x5f57b9(0x86)};return{'isValid':!![],'value':_0x28d21e};}
1
+ (function(_0x149ee3,_0x32cdbf){const _0x2c57dc=a107_0x2ada,_0x5608ae=_0x149ee3();while(!![]){try{const _0xc4f139=-parseInt(_0x2c57dc(0x195))/0x1*(parseInt(_0x2c57dc(0x199))/0x2)+-parseInt(_0x2c57dc(0x190))/0x3+-parseInt(_0x2c57dc(0x191))/0x4*(-parseInt(_0x2c57dc(0x18e))/0x5)+-parseInt(_0x2c57dc(0x18f))/0x6+-parseInt(_0x2c57dc(0x198))/0x7*(parseInt(_0x2c57dc(0x189))/0x8)+parseInt(_0x2c57dc(0x196))/0x9*(parseInt(_0x2c57dc(0x18d))/0xa)+parseInt(_0x2c57dc(0x192))/0xb;if(_0xc4f139===_0x32cdbf)break;else _0x5608ae['push'](_0x5608ae['shift']());}catch(_0x50dd09){_0x5608ae['push'](_0x5608ae['shift']());}}}(a107_0x3a5b,0xb01a0));export function validateLimitOption(_0x35e114){const _0x537ad9=a107_0x2ada;if(!Number[_0x537ad9(0x197)](_0x35e114))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x35e114+'.\x20Must\x20be\x20an\x20integer.'};if(_0x35e114<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x35e114+_0x537ad9(0x18a)};return{'isValid':!![],'value':_0x35e114};}export function validateTimeoutOption(_0x1ab88d,_0x2ff23c=0x1e){const _0x12a98a=a107_0x2ada;if(_0x1ab88d===undefined)return{'isValid':!![],'value':_0x2ff23c};const _0x2cf78e=typeof _0x1ab88d===_0x12a98a(0x18b)?_0x1ab88d:parseFloat(_0x1ab88d);if(isNaN(_0x2cf78e))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x1ab88d+_0x12a98a(0x18c)};if(_0x2cf78e<=0x0)return{'isValid':![],'error':_0x12a98a(0x194)+_0x2cf78e+_0x12a98a(0x193)};return{'isValid':!![],'value':_0x2cf78e};}function a107_0x2ada(_0x313db3,_0x4475b3){_0x313db3=_0x313db3-0x189;const _0x3a5b69=a107_0x3a5b();let _0x2ada80=_0x3a5b69[_0x313db3];return _0x2ada80;}function a107_0x3a5b(){const _0x232a1b=['.\x20Must\x20be\x20a\x20positive\x20integer.','number','.\x20Must\x20be\x20a\x20number.','244160AdtkLU','771370zEHQkb','2820198IvmAOW','3396747AUCcjT','8mASaIU','27854563pUIetj','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','1XLcnnL','90wrVogO','isInteger','3836obGkmX','775222lRIjRi','5456MwMaLA'];a107_0x3a5b=function(){return _0x232a1b;};return a107_0x3a5b();}
@@ -1 +1 @@
1
- function a108_0xba21(_0x1164b1,_0x985dd4){_0x1164b1=_0x1164b1-0x8f;const _0x28d1d1=a108_0x28d1();let _0xba21f1=_0x28d1d1[_0x1164b1];return _0xba21f1;}(function(_0x2aeb9b,_0x19979f){const _0x22d9cc=a108_0xba21,_0x3b26ca=_0x2aeb9b();while(!![]){try{const _0x50b2eb=-parseInt(_0x22d9cc(0x92))/0x1*(parseInt(_0x22d9cc(0x95))/0x2)+-parseInt(_0x22d9cc(0x94))/0x3+-parseInt(_0x22d9cc(0x9c))/0x4+parseInt(_0x22d9cc(0x91))/0x5*(parseInt(_0x22d9cc(0x9e))/0x6)+-parseInt(_0x22d9cc(0x90))/0x7+parseInt(_0x22d9cc(0x98))/0x8+-parseInt(_0x22d9cc(0x93))/0x9*(-parseInt(_0x22d9cc(0x96))/0xa);if(_0x50b2eb===_0x19979f)break;else _0x3b26ca['push'](_0x3b26ca['shift']());}catch(_0x2c89ec){_0x3b26ca['push'](_0x3b26ca['shift']());}}}(a108_0x28d1,0x8e38a));import{createServer}from'node:net';export async function isPortAvailable(_0x3ba70b){return new Promise(_0x4188f2=>{const _0x3534b5=a108_0xba21,_0x2a8523=createServer();_0x2a8523['once']('error',_0x58300f=>{const _0x217b3b=a108_0xba21;_0x58300f[_0x217b3b(0x9b)]===_0x217b3b(0x9d)?_0x4188f2(![]):_0x4188f2(![]);}),_0x2a8523[_0x3534b5(0x8f)]('listening',()=>{const _0x1680c3=_0x3534b5;_0x2a8523[_0x1680c3(0x9f)](),_0x4188f2(!![]);}),_0x2a8523[_0x3534b5(0x97)](_0x3ba70b,_0x3534b5(0x99));});}export async function findAvailablePort(_0x34df98=0xfa0,_0x1ace5a=0x64){const _0x1d2823=a108_0xba21;for(let _0x38360c=0x0;_0x38360c<_0x1ace5a;_0x38360c++){const _0x769d96=_0x34df98+_0x38360c;if(await isPortAvailable(_0x769d96))return _0x769d96;}throw new Error(_0x1d2823(0x9a)+_0x34df98+_0x1d2823(0xa0)+(_0x34df98+_0x1ace5a-0x1));}function a108_0x28d1(){const _0xa75138=['code','2497092nDQzyZ','EADDRINUSE','18Htnyml','close','\x20and\x20','once','3520461kBNbMA','58070NNzuHU','1uMyHHR','3927978yOSxZZ','1393542JNpLBH','2157962MqRhaT','50pSDLTS','listen','8289416shATkd','0.0.0.0','No\x20available\x20port\x20found\x20between\x20'];a108_0x28d1=function(){return _0xa75138;};return a108_0x28d1();}
1
+ function a108_0x1b18(_0x5cf814,_0x11a17b){_0x5cf814=_0x5cf814-0x1d7;const _0xa60dc1=a108_0xa60d();let _0x1b182e=_0xa60dc1[_0x5cf814];return _0x1b182e;}(function(_0x27538f,_0x5d2886){const _0x40e3f1=a108_0x1b18,_0x16eeb9=_0x27538f();while(!![]){try{const _0x1a1f4f=-parseInt(_0x40e3f1(0x1e1))/0x1*(parseInt(_0x40e3f1(0x1da))/0x2)+parseInt(_0x40e3f1(0x1e5))/0x3*(-parseInt(_0x40e3f1(0x1e0))/0x4)+parseInt(_0x40e3f1(0x1e6))/0x5+-parseInt(_0x40e3f1(0x1e8))/0x6+-parseInt(_0x40e3f1(0x1db))/0x7*(parseInt(_0x40e3f1(0x1df))/0x8)+-parseInt(_0x40e3f1(0x1dc))/0x9+parseInt(_0x40e3f1(0x1d7))/0xa;if(_0x1a1f4f===_0x5d2886)break;else _0x16eeb9['push'](_0x16eeb9['shift']());}catch(_0x29f43e){_0x16eeb9['push'](_0x16eeb9['shift']());}}}(a108_0xa60d,0x2706e));function a108_0xa60d(){const _0x422506=['No\x20available\x20port\x20found\x20between\x20','\x20and\x20','15jKALiQ','1356760sPGNbP','0.0.0.0','942564akdesj','EADDRINUSE','9344780AASYvv','close','listening','66718RwEGPU','144375xwrVoV','1876770wtcKMY','listen','once','112orImhn','99784BTTNBR','8gjklVy','code'];a108_0xa60d=function(){return _0x422506;};return a108_0xa60d();}import{createServer}from'node:net';export async function isPortAvailable(_0x318c15){return new Promise(_0x3a78eb=>{const _0x557d72=a108_0x1b18,_0x2f5d2e=createServer();_0x2f5d2e['once']('error',_0x413e60=>{const _0x37195a=a108_0x1b18;_0x413e60[_0x37195a(0x1e2)]===_0x37195a(0x1e9)?_0x3a78eb(![]):_0x3a78eb(![]);}),_0x2f5d2e[_0x557d72(0x1de)](_0x557d72(0x1d9),()=>{const _0xc77d0=_0x557d72;_0x2f5d2e[_0xc77d0(0x1d8)](),_0x3a78eb(!![]);}),_0x2f5d2e[_0x557d72(0x1dd)](_0x318c15,_0x557d72(0x1e7));});}export async function findAvailablePort(_0x45da44=0xfa0,_0x34a1d0=0x64){const _0x2c5553=a108_0x1b18;for(let _0x4e114d=0x0;_0x4e114d<_0x34a1d0;_0x4e114d++){const _0x4f1f95=_0x45da44+_0x4e114d;if(await isPortAvailable(_0x4f1f95))return _0x4f1f95;}throw new Error(_0x2c5553(0x1e3)+_0x45da44+_0x2c5553(0x1e4)+(_0x45da44+_0x34a1d0-0x1));}
@@ -1 +1 @@
1
- const a109_0x44f231=a109_0x21dc;(function(_0x35af8b,_0x2ada84){const _0x120850=a109_0x21dc,_0x282c94=_0x35af8b();while(!![]){try{const _0x3d7f68=-parseInt(_0x120850(0x160))/0x1*(parseInt(_0x120850(0x14b))/0x2)+parseInt(_0x120850(0x150))/0x3+-parseInt(_0x120850(0x152))/0x4*(parseInt(_0x120850(0x151))/0x5)+parseInt(_0x120850(0x16c))/0x6+-parseInt(_0x120850(0x149))/0x7+-parseInt(_0x120850(0x143))/0x8*(-parseInt(_0x120850(0x15f))/0x9)+parseInt(_0x120850(0x168))/0xa*(parseInt(_0x120850(0x14a))/0xb);if(_0x3d7f68===_0x2ada84)break;else _0x282c94['push'](_0x282c94['shift']());}catch(_0x41e11a){_0x282c94['push'](_0x282c94['shift']());}}}(a109_0x81d6,0x77a58));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a109_0x44f231(0x14e),'sh',a109_0x44f231(0x15a),'ksh',a109_0x44f231(0x142),'csh',a109_0x44f231(0x16d),a109_0x44f231(0x167),a109_0x44f231(0x162),'nu','ion','elvish',a109_0x44f231(0x16a)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a109_0x44f231(0x15d),a109_0x44f231(0x154),a109_0x44f231(0x157)]);function getProcessInfoWindows(_0x110bfe){const _0x46463a=a109_0x44f231;try{if(!Number[_0x46463a(0x156)](_0x110bfe)||_0x110bfe<=0x0)return null;const _0x4b869b=execSync(_0x46463a(0x159)+_0x110bfe+_0x46463a(0x165),{'encoding':_0x46463a(0x15e),'windowsHide':!![]})['trim'](),_0x202af7=_0x4b869b[_0x46463a(0x148)]('\x0a')[_0x46463a(0x145)](_0x332fbb=>_0x332fbb[_0x46463a(0x14c)]());if(_0x202af7['length']<0x2)return null;const _0x46d771=_0x202af7[_0x202af7['length']-0x1][_0x46463a(0x148)](',');if(_0x46d771[_0x46463a(0x169)]<0x3)return null;const _0x975133=_0x46d771[0x1]?.['trim']()||'',_0x2c0f9d=parseInt(_0x46d771[0x2]?.[_0x46463a(0x14c)]()||'0',0xa);if(isNaN(_0x2c0f9d)||!_0x975133)return null;return{'pid':_0x110bfe,'ppid':_0x2c0f9d,'comm':_0x975133[_0x46463a(0x15c)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x5de97d){const _0x2ebac4=a109_0x44f231;try{const _0x404780=0x400000;if(!Number[_0x2ebac4(0x156)](_0x5de97d)||_0x5de97d<=0x0||_0x5de97d>_0x404780)return null;const _0x54a614=execSync('ps\x20-p\x20'+_0x5de97d+_0x2ebac4(0x15b),{'encoding':_0x2ebac4(0x15e),'stdio':_0x2ebac4(0x144)})['trim'](),[_0x279a3b,..._0x59bfaa]=_0x54a614[_0x2ebac4(0x148)](/\s+/),_0x13f413=parseInt(_0x279a3b,0xa),_0x76ee6b=_0x59bfaa[_0x2ebac4(0x147)]('\x20');if(isNaN(_0x13f413))return null;return{'pid':_0x5de97d,'ppid':_0x13f413,'comm':_0x76ee6b};}catch{return null;}}function getProcessInfo(_0x27948c){const _0x53c433=a109_0x44f231;if(process['platform']===_0x53c433(0x14d))return getProcessInfoWindows(_0x27948c);return getProcessInfoPosix(_0x27948c);}function getBasename(_0x3d7621){const _0x274ca1=a109_0x44f231;return _0x3d7621['replace'](/^-/,'')[_0x274ca1(0x148)]('/')[_0x274ca1(0x146)]()?.['toLowerCase']()||'';}function isShell(_0x1d4fcd){const _0x231095=a109_0x44f231;return SHELL_NAMES[_0x231095(0x161)](getBasename(_0x1d4fcd));}function isEphemeralShellSpawner(_0x443318){const _0x4c757c=a109_0x44f231;return EPHEMERAL_SHELL_SPAWNERS[_0x4c757c(0x161)](getBasename(_0x443318));}let cachedShellPID;function findShellPID(){const _0x25cc00=a109_0x44f231;if(process[_0x25cc00(0x141)]===undefined)return process['pid'];let _0x20708e=process[_0x25cc00(0x141)];const _0x49413f=0xa;let _0x1b849a=0x0;while(_0x1b849a<_0x49413f){const _0x42c67e=getProcessInfo(_0x20708e);if(!_0x42c67e)break;if(isShell(_0x42c67e[_0x25cc00(0x14f)])){const _0x4ab84c=getProcessInfo(_0x42c67e[_0x25cc00(0x141)]);if(_0x4ab84c&&isEphemeralShellSpawner(_0x4ab84c['comm'])){_0x20708e=_0x42c67e['ppid'],_0x1b849a++;continue;}return _0x42c67e[_0x25cc00(0x153)];}if(_0x42c67e[_0x25cc00(0x141)]===0x0||_0x42c67e[_0x25cc00(0x141)]===0x1){if(isShell(_0x42c67e[_0x25cc00(0x14f)]))return _0x42c67e[_0x25cc00(0x153)];break;}_0x20708e=_0x42c67e['ppid'],_0x1b849a++;}return process[_0x25cc00(0x141)]!==undefined?process[_0x25cc00(0x141)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}function a109_0x21dc(_0x2d18fc,_0x4c0e98){_0x2d18fc=_0x2d18fc-0x141;const _0x81d6d9=a109_0x81d6();let _0x21dcc2=_0x81d6d9[_0x2d18fc];return _0x21dcc2;}function a109_0x81d6(){const _0x393703=['pwsh','40CvlCoA','length','xonsh','darwin','3473076XtgaWc','dash','ppid','tcsh','9200XHliMl','pipe','filter','pop','join','split','6388459mTeqEo','295691NeKUVP','6YBsjil','trim','win32','zsh','comm','2774310KTfojs','1555885EPZDkG','4MOQtQS','pid','code','kill','isInteger','cursor','xdg-open','wmic\x20process\x20where\x20ProcessId=','fish','\x20-o\x20ppid=,comm=','replace','claude','utf-8','2637aKbYnb','78068bbbTOi','has','powershell','platform','start','\x20get\x20ParentProcessId,Name\x20/format:csv','ignore'];a109_0x81d6=function(){return _0x393703;};return a109_0x81d6();}export function isProcessRunning(_0x46af7d){const _0x25f19c=a109_0x44f231;if(!Number['isInteger'](_0x46af7d)||_0x46af7d<=0x0)return![];try{return process[_0x25f19c(0x155)](_0x46af7d,0x0),!![];}catch{return![];}}export function openBrowser(_0x26271d){const _0x50a23e=a109_0x44f231,_0x20c189=process[_0x50a23e(0x163)],_0x38d3af=_0x20c189===_0x50a23e(0x16b)?'open':_0x20c189===_0x50a23e(0x14d)?_0x50a23e(0x164):_0x50a23e(0x158);spawn(_0x38d3af,[_0x26271d],{'detached':!![],'stdio':_0x50a23e(0x166)})['unref']();}
1
+ const a109_0x2755fc=a109_0xc791;(function(_0x5e76a9,_0x4b1990){const _0x39eb99=a109_0xc791,_0x21e855=_0x5e76a9();while(!![]){try{const _0x3a7cbc=parseInt(_0x39eb99(0x1ec))/0x1*(parseInt(_0x39eb99(0x1e4))/0x2)+-parseInt(_0x39eb99(0x1df))/0x3+parseInt(_0x39eb99(0x1db))/0x4*(-parseInt(_0x39eb99(0x1ea))/0x5)+parseInt(_0x39eb99(0x1e1))/0x6+parseInt(_0x39eb99(0x1fe))/0x7*(parseInt(_0x39eb99(0x1ee))/0x8)+parseInt(_0x39eb99(0x1e0))/0x9*(parseInt(_0x39eb99(0x1f9))/0xa)+parseInt(_0x39eb99(0x1f8))/0xb*(-parseInt(_0x39eb99(0x1fb))/0xc);if(_0x3a7cbc===_0x4b1990)break;else _0x21e855['push'](_0x21e855['shift']());}catch(_0x3ee959){_0x21e855['push'](_0x21e855['shift']());}}}(a109_0x580e,0xd607b));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a109_0x2755fc(0x1e3),'sh',a109_0x2755fc(0x1f3),a109_0x2755fc(0x1de),a109_0x2755fc(0x1ef),a109_0x2755fc(0x1e7),'dash',a109_0x2755fc(0x205),a109_0x2755fc(0x202),'nu',a109_0x2755fc(0x1eb),a109_0x2755fc(0x1f7),a109_0x2755fc(0x1fd)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a109_0x2755fc(0x1f4),a109_0x2755fc(0x1e9)]);function getProcessInfoWindows(_0x3d29b3){const _0x27386b=a109_0x2755fc;try{if(!Number[_0x27386b(0x1ff)](_0x3d29b3)||_0x3d29b3<=0x0)return null;const _0x59795e=execSync(_0x27386b(0x1fc)+_0x3d29b3+_0x27386b(0x1d9),{'encoding':_0x27386b(0x1dc),'windowsHide':!![]})[_0x27386b(0x1e5)](),_0x218b67=_0x59795e[_0x27386b(0x1ed)]('\x0a')['filter'](_0x30bb1f=>_0x30bb1f[_0x27386b(0x1e5)]());if(_0x218b67['length']<0x2)return null;const _0x3a65c4=_0x218b67[_0x218b67[_0x27386b(0x1f1)]-0x1][_0x27386b(0x1ed)](',');if(_0x3a65c4[_0x27386b(0x1f1)]<0x3)return null;const _0x18d6bf=_0x3a65c4[0x1]?.['trim']()||'',_0x2b1a42=parseInt(_0x3a65c4[0x2]?.[_0x27386b(0x1e5)]()||'0',0xa);if(isNaN(_0x2b1a42)||!_0x18d6bf)return null;return{'pid':_0x3d29b3,'ppid':_0x2b1a42,'comm':_0x18d6bf[_0x27386b(0x1f5)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x3fea3a){const _0x30e930=a109_0x2755fc;try{const _0x32bea1=0x400000;if(!Number[_0x30e930(0x1ff)](_0x3fea3a)||_0x3fea3a<=0x0||_0x3fea3a>_0x32bea1)return null;const _0x4ea339=execSync('ps\x20-p\x20'+_0x3fea3a+'\x20-o\x20ppid=,comm=',{'encoding':_0x30e930(0x1dc),'stdio':_0x30e930(0x201)})[_0x30e930(0x1e5)](),[_0x2153e4,..._0x24a22a]=_0x4ea339[_0x30e930(0x1ed)](/\s+/),_0x356037=parseInt(_0x2153e4,0xa),_0x38e294=_0x24a22a[_0x30e930(0x200)]('\x20');if(isNaN(_0x356037))return null;return{'pid':_0x3fea3a,'ppid':_0x356037,'comm':_0x38e294};}catch{return null;}}function a109_0xc791(_0x1853aa,_0xc65ff3){_0x1853aa=_0x1853aa-0x1d8;const _0x580ebc=a109_0x580e();let _0xc7911a=_0x580ebc[_0x1853aa];return _0xc7911a;}function getProcessInfo(_0x514986){const _0x4d61a2=a109_0x2755fc;if(process[_0x4d61a2(0x1e6)]==='win32')return getProcessInfoWindows(_0x514986);return getProcessInfoPosix(_0x514986);}function getBasename(_0x54c77f){const _0xfa633=a109_0x2755fc;return _0x54c77f[_0xfa633(0x1f5)](/^-/,'')[_0xfa633(0x1ed)]('/')['pop']()?.['toLowerCase']()||'';}function a109_0x580e(){const _0x1d9eaa=['trim','platform','csh','pid','cursor','10355lXBMzz','ion','58116xKJNOf','split','388600kXOKxZ','tcsh','win32','length','ignore','fish','code','replace','unref','elvish','1342CxSHVw','3078210njBNBr','ppid','80292lUbJGv','wmic\x20process\x20where\x20ProcessId=','xonsh','56IJdRvI','isInteger','join','pipe','powershell','start','has','pwsh','darwin','\x20get\x20ParentProcessId,Name\x20/format:csv','kill','1356PCPSBE','utf-8','xdg-open','ksh','1756182goczBr','45fegNOK','5270274fongnw','comm','zsh','6Qvjbgr'];a109_0x580e=function(){return _0x1d9eaa;};return a109_0x580e();}function isShell(_0x1a4df0){const _0x5c9fed=a109_0x2755fc;return SHELL_NAMES[_0x5c9fed(0x204)](getBasename(_0x1a4df0));}function isEphemeralShellSpawner(_0xe99121){const _0x3ad8b8=a109_0x2755fc;return EPHEMERAL_SHELL_SPAWNERS[_0x3ad8b8(0x204)](getBasename(_0xe99121));}let cachedShellPID;function findShellPID(){const _0x18aeba=a109_0x2755fc;if(process[_0x18aeba(0x1fa)]===undefined)return process[_0x18aeba(0x1e8)];let _0x49fa80=process[_0x18aeba(0x1fa)];const _0x3713e4=0xa;let _0x3ef523=0x0;while(_0x3ef523<_0x3713e4){const _0x52dc98=getProcessInfo(_0x49fa80);if(!_0x52dc98)break;if(isShell(_0x52dc98[_0x18aeba(0x1e2)])){const _0x1ef691=getProcessInfo(_0x52dc98[_0x18aeba(0x1fa)]);if(_0x1ef691&&isEphemeralShellSpawner(_0x1ef691[_0x18aeba(0x1e2)])){_0x49fa80=_0x52dc98[_0x18aeba(0x1fa)],_0x3ef523++;continue;}return _0x52dc98[_0x18aeba(0x1e8)];}if(_0x52dc98['ppid']===0x0||_0x52dc98[_0x18aeba(0x1fa)]===0x1){if(isShell(_0x52dc98[_0x18aeba(0x1e2)]))return _0x52dc98[_0x18aeba(0x1e8)];break;}_0x49fa80=_0x52dc98[_0x18aeba(0x1fa)],_0x3ef523++;}return process[_0x18aeba(0x1fa)]!==undefined?process[_0x18aeba(0x1fa)]:process[_0x18aeba(0x1e8)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x296255){const _0x2e0e34=a109_0x2755fc;if(!Number[_0x2e0e34(0x1ff)](_0x296255)||_0x296255<=0x0)return![];try{return process[_0x2e0e34(0x1da)](_0x296255,0x0),!![];}catch{return![];}}export function openBrowser(_0x11ca7a){const _0x1c4943=a109_0x2755fc,_0x36b507=process['platform'],_0x19d7d5=_0x36b507===_0x1c4943(0x1d8)?'open':_0x36b507===_0x1c4943(0x1f0)?_0x1c4943(0x203):_0x1c4943(0x1dd);spawn(_0x19d7d5,[_0x11ca7a],{'detached':!![],'stdio':_0x1c4943(0x1f2)})[_0x1c4943(0x1f6)]();}
@@ -1 +1 @@
1
- (function(_0x29ead9,_0x524120){const _0x9bc044=a110_0x47c7,_0x737dd0=_0x29ead9();while(!![]){try{const _0x4d891e=parseInt(_0x9bc044(0xd8))/0x1+-parseInt(_0x9bc044(0xe3))/0x2*(-parseInt(_0x9bc044(0xe0))/0x3)+-parseInt(_0x9bc044(0xdc))/0x4+-parseInt(_0x9bc044(0xec))/0x5+parseInt(_0x9bc044(0xdf))/0x6+-parseInt(_0x9bc044(0xe9))/0x7*(-parseInt(_0x9bc044(0xd9))/0x8)+-parseInt(_0x9bc044(0xda))/0x9;if(_0x4d891e===_0x524120)break;else _0x737dd0['push'](_0x737dd0['shift']());}catch(_0x39016f){_0x737dd0['push'](_0x737dd0['shift']());}}}(a110_0x3831,0x3c2ef));function a110_0x3831(){const _0x495785=['exit','stdout','createInterface','question','setEncoding','1093232TxkSSb','resume','data','1931025laAuEp','isTTY','removeListener','stderr','425699xGebhP','8vqPtkF','167121mxdPSa','toLowerCase','1690200RmXAQp','\x20[y/N]\x20','setRawMode','376872dGcQyz','75732NOYnjm','write','stdin','34uuFuXR'];a110_0x3831=function(){return _0x495785;};return a110_0x3831();}import*as a110_0x5c4bb5 from'readline';function a110_0x47c7(_0x72d08c,_0x4aa355){_0x72d08c=_0x72d08c-0xd5;const _0x3831a8=a110_0x3831();let _0x47c7a6=_0x3831a8[_0x72d08c];return _0x47c7a6;}export async function confirm(_0x239bcf){const _0x1e3e4e=a110_0x47c7,_0x4a8750=a110_0x5c4bb5[_0x1e3e4e(0xe6)]({'input':process[_0x1e3e4e(0xe2)],'output':process[_0x1e3e4e(0xe5)]});return new Promise(_0x9e5dd1=>{const _0x1f03e0=_0x1e3e4e;_0x4a8750[_0x1f03e0(0xe7)](_0x239bcf+'\x20(y/N):\x20',_0xea56ac=>{const _0x5e1069=_0x1f03e0;_0x4a8750['close'](),_0x9e5dd1(_0xea56ac[_0x5e1069(0xdb)]()==='y'||_0xea56ac[_0x5e1069(0xdb)]()==='yes');});});}export async function confirmKey(_0x358ea9){const _0x7a6c3d=a110_0x47c7;if(!process[_0x7a6c3d(0xe2)][_0x7a6c3d(0xd5)])return![];return process['stderr']['write'](_0x358ea9+_0x7a6c3d(0xdd)),new Promise(_0x31eae9=>{const _0x29c105=_0x7a6c3d,_0x7c76be=process[_0x29c105(0xe2)];_0x7c76be[_0x29c105(0xde)](!![]),_0x7c76be[_0x29c105(0xea)](),_0x7c76be[_0x29c105(0xe8)]('utf8');const _0x4b3261=_0x71394b=>{const _0x47ecbb=_0x29c105;_0x7c76be[_0x47ecbb(0xde)](![]),_0x7c76be['pause'](),_0x7c76be[_0x47ecbb(0xd6)](_0x47ecbb(0xeb),_0x4b3261);if(_0x71394b==='\x1b'){process[_0x47ecbb(0xd7)]['write']('\x0a'),_0x31eae9(![]);return;}_0x71394b==='\x03'&&(process[_0x47ecbb(0xd7)][_0x47ecbb(0xe1)]('\x0a'),process[_0x47ecbb(0xe4)](0x82));if(_0x71394b[_0x47ecbb(0xdb)]()==='y'){process['stderr'][_0x47ecbb(0xe1)]('y\x0a'),_0x31eae9(!![]);return;}process['stderr'][_0x47ecbb(0xe1)]('\x0a'),_0x31eae9(![]);};_0x7c76be['on'](_0x29c105(0xeb),_0x4b3261);});}
1
+ (function(_0x361df0,_0x13412e){const _0x20aa6d=a110_0x428b,_0x5863e3=_0x361df0();while(!![]){try{const _0x53e6d0=-parseInt(_0x20aa6d(0xd8))/0x1+-parseInt(_0x20aa6d(0xe4))/0x2+parseInt(_0x20aa6d(0xe2))/0x3+-parseInt(_0x20aa6d(0xea))/0x4+parseInt(_0x20aa6d(0xdb))/0x5*(parseInt(_0x20aa6d(0xda))/0x6)+-parseInt(_0x20aa6d(0xe1))/0x7*(-parseInt(_0x20aa6d(0xee))/0x8)+parseInt(_0x20aa6d(0xd7))/0x9*(parseInt(_0x20aa6d(0xef))/0xa);if(_0x53e6d0===_0x13412e)break;else _0x5863e3['push'](_0x5863e3['shift']());}catch(_0x2f3bd5){_0x5863e3['push'](_0x5863e3['shift']());}}}(a110_0x2c04,0xa7ea8));function a110_0x428b(_0x5ebc2d,_0x11b38d){_0x5ebc2d=_0x5ebc2d-0xd6;const _0x2c049f=a110_0x2c04();let _0x428b04=_0x2c049f[_0x5ebc2d];return _0x428b04;}import*as a110_0x2c0e52 from'readline';export async function confirm(_0x22f930){const _0x448f2c=a110_0x428b,_0x54a5a8=a110_0x2c0e52[_0x448f2c(0xed)]({'input':process[_0x448f2c(0xe7)],'output':process[_0x448f2c(0xd9)]});return new Promise(_0x54f1ad=>{const _0x192942=_0x448f2c;_0x54a5a8[_0x192942(0xeb)](_0x22f930+_0x192942(0xec),_0x23b7ba=>{const _0x1c94f3=_0x192942;_0x54a5a8[_0x1c94f3(0xe3)](),_0x54f1ad(_0x23b7ba['toLowerCase']()==='y'||_0x23b7ba['toLowerCase']()===_0x1c94f3(0xe6));});});}export async function confirmKey(_0x51d8f4){const _0x3781f6=a110_0x428b;if(!process[_0x3781f6(0xe7)][_0x3781f6(0xe9)])return![];return process[_0x3781f6(0xdc)][_0x3781f6(0xd6)](_0x51d8f4+_0x3781f6(0xdd)),new Promise(_0x29443d=>{const _0x5b9233=_0x3781f6,_0x138f40=process[_0x5b9233(0xe7)];_0x138f40[_0x5b9233(0xde)](!![]),_0x138f40[_0x5b9233(0xe8)](),_0x138f40['setEncoding'](_0x5b9233(0xf0));const _0x350e01=_0x423804=>{const _0xff3fbe=_0x5b9233;_0x138f40[_0xff3fbe(0xde)](![]),_0x138f40[_0xff3fbe(0xdf)](),_0x138f40['removeListener'](_0xff3fbe(0xe5),_0x350e01);if(_0x423804==='\x1b'){process[_0xff3fbe(0xdc)][_0xff3fbe(0xd6)]('\x0a'),_0x29443d(![]);return;}_0x423804==='\x03'&&(process[_0xff3fbe(0xdc)][_0xff3fbe(0xd6)]('\x0a'),process['exit'](0x82));if(_0x423804[_0xff3fbe(0xe0)]()==='y'){process['stderr'][_0xff3fbe(0xd6)]('y\x0a'),_0x29443d(!![]);return;}process[_0xff3fbe(0xdc)][_0xff3fbe(0xd6)]('\x0a'),_0x29443d(![]);};_0x138f40['on'](_0x5b9233(0xe5),_0x350e01);});}function a110_0x2c04(){const _0x5d097a=['\x20[y/N]\x20','setRawMode','pause','toLowerCase','209237chHTpC','629550vkRzrt','close','669712cuOMzU','data','yes','stdin','resume','isTTY','3056596ixOUqR','question','\x20(y/N):\x20','createInterface','24sUYfMi','17735050TrjKEL','utf8','write','9gVdYjZ','891634VNxzXy','stdout','103782UgKCoS','175yCHwvR','stderr'];a110_0x2c04=function(){return _0x5d097a;};return a110_0x2c04();}