@treasuredata/tdx 0.7.2 → 0.7.4

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 (116) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client/cdp-api-client.d.ts +20 -1
  8. package/dist/client/cdp-api-client.d.ts.map +1 -1
  9. package/dist/client/cdp-api-client.js +1 -1
  10. package/dist/client/cdp-api-client.js.map +1 -1
  11. package/dist/client/engage-api-client.js +1 -1
  12. package/dist/client/http-client.js +1 -1
  13. package/dist/client/llm-api-client.js +1 -1
  14. package/dist/client/rate-limiter.js +1 -1
  15. package/dist/client/td-api-client.js +1 -1
  16. package/dist/client/trino-api-client.js +1 -1
  17. package/dist/client/workflow-client.js +1 -1
  18. package/dist/commands/activations.js +1 -1
  19. package/dist/commands/api-command.js +1 -1
  20. package/dist/commands/auth-command.js +1 -1
  21. package/dist/commands/chat-command.js +1 -1
  22. package/dist/commands/claude-command.js +1 -1
  23. package/dist/commands/claude-statusline-command.js +1 -1
  24. package/dist/commands/claude-usage-command.js +1 -1
  25. package/dist/commands/command.js +1 -1
  26. package/dist/commands/context-command.js +1 -1
  27. package/dist/commands/databases.js +1 -1
  28. package/dist/commands/describe.js +1 -1
  29. package/dist/commands/engage-command.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.d.ts +5 -4
  34. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js.map +1 -1
  37. package/dist/commands/profiles-command.js +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pwd-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segments.js +1 -1
  46. package/dist/commands/show.js +1 -1
  47. package/dist/commands/tables.js +1 -1
  48. package/dist/commands/use-command.js +1 -1
  49. package/dist/commands/workflow-command.js +1 -1
  50. package/dist/core/auth.js +1 -1
  51. package/dist/core/config.js +1 -1
  52. package/dist/core/credential-cache.js +1 -1
  53. package/dist/core/global-context.js +1 -1
  54. package/dist/core/keychain.js +1 -1
  55. package/dist/core/profile.js +1 -1
  56. package/dist/core/project-config.js +1 -1
  57. package/dist/core/session.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/proxy/anthropic-adapter.js +1 -1
  60. package/dist/proxy/claude-usage-tracker.js +1 -1
  61. package/dist/proxy/context-signature.js +1 -1
  62. package/dist/proxy/conversation-utils.js +1 -1
  63. package/dist/proxy/server.js +1 -1
  64. package/dist/proxy/session-cache.js +1 -1
  65. package/dist/sdk/api.js +1 -1
  66. package/dist/sdk/engage.js +1 -1
  67. package/dist/sdk/errors.js +1 -1
  68. package/dist/sdk/index.js +1 -1
  69. package/dist/sdk/job.js +1 -1
  70. package/dist/sdk/llm.js +1 -1
  71. package/dist/sdk/query.js +1 -1
  72. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  73. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  74. package/dist/sdk/segment.d.ts.map +1 -1
  75. package/dist/sdk/segment.js +1 -1
  76. package/dist/sdk/segment.js.map +1 -1
  77. package/dist/sdk/workflow.js +1 -1
  78. package/dist/types/cdp.d.ts +59 -0
  79. package/dist/types/cdp.d.ts.map +1 -1
  80. package/dist/types/endpoints.js +1 -1
  81. package/dist/types/index.d.ts +1 -1
  82. package/dist/types/index.d.ts.map +1 -1
  83. package/dist/types/index.js +1 -1
  84. package/dist/utils/agent-ref-parser.js +1 -1
  85. package/dist/utils/chat-cache.js +1 -1
  86. package/dist/utils/colors.js +1 -1
  87. package/dist/utils/command-output.js +1 -1
  88. package/dist/utils/constants.js +1 -1
  89. package/dist/utils/diff.js +1 -1
  90. package/dist/utils/fields-display.d.ts +1 -0
  91. package/dist/utils/fields-display.d.ts.map +1 -1
  92. package/dist/utils/fields-display.js +1 -1
  93. package/dist/utils/fields-display.js.map +1 -1
  94. package/dist/utils/file-permissions.js +1 -1
  95. package/dist/utils/format-detector.js +1 -1
  96. package/dist/utils/formatters.js +1 -1
  97. package/dist/utils/json-loader.js +1 -1
  98. package/dist/utils/llm-backup-utils.js +1 -1
  99. package/dist/utils/model-aliases.js +1 -1
  100. package/dist/utils/model-factors.js +1 -1
  101. package/dist/utils/option-validation.js +1 -1
  102. package/dist/utils/port.js +1 -1
  103. package/dist/utils/process.js +1 -1
  104. package/dist/utils/prompt.js +1 -1
  105. package/dist/utils/segment-path-parser.js +1 -1
  106. package/dist/utils/segment-ref-parser.js +1 -1
  107. package/dist/utils/spinner.js +1 -1
  108. package/dist/utils/sql-parser.js +1 -1
  109. package/dist/utils/sse-parser.js +1 -1
  110. package/dist/utils/string-utils.js +1 -1
  111. package/dist/utils/table-ref-parser.js +1 -1
  112. package/dist/utils/tdx-logger.js +1 -1
  113. package/dist/utils/tree-formatter.js +1 -1
  114. package/dist/utils/version-check.js +1 -1
  115. package/dist/utils/workflow-utils.js +1 -1
  116. package/package.json +1 -1
@@ -1 +1 @@
1
- function a82_0xbe4e(_0x36b0a1,_0x5b0d00){const _0xa6294e=a82_0xa629();return a82_0xbe4e=function(_0xbe4e47,_0x366d35){_0xbe4e47=_0xbe4e47-0xbf;let _0xb85ccd=_0xa6294e[_0xbe4e47];return _0xb85ccd;},a82_0xbe4e(_0x36b0a1,_0x5b0d00);}(function(_0x47b4cb,_0x38ae00){const _0x299817=a82_0xbe4e,_0x8e74df=_0x47b4cb();while(!![]){try{const _0x4f2d81=-parseInt(_0x299817(0xc7))/0x1+parseInt(_0x299817(0xc5))/0x2*(-parseInt(_0x299817(0xe5))/0x3)+-parseInt(_0x299817(0xc6))/0x4+parseInt(_0x299817(0xca))/0x5*(-parseInt(_0x299817(0xcf))/0x6)+parseInt(_0x299817(0xd9))/0x7+-parseInt(_0x299817(0xcb))/0x8+parseInt(_0x299817(0xda))/0x9;if(_0x4f2d81===_0x38ae00)break;else _0x8e74df['push'](_0x8e74df['shift']());}catch(_0x4efb00){_0x8e74df['push'](_0x8e74df['shift']());}}}(a82_0xa629,0x9d2a8));import a82_0x5a46b from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x50d54e){const _0x2768d4=a82_0xbe4e,_0x44105b=_0x50d54e['columns'][_0x2768d4(0xe1)](_0x28598b=>({'column_name':_0x28598b[_0x2768d4(0xdc)],'column_type':_0x28598b[_0x2768d4(0xde)],'null':_0x2768d4(0xd5),'key':null,'default':null,'extra':null}));return{..._0x50d54e,'columns':[{'name':_0x2768d4(0xd1),'type':_0x2768d4(0xc9)},{'name':'column_type','type':_0x2768d4(0xc9)},{'name':'null','type':_0x2768d4(0xc9)},{'name':'key','type':_0x2768d4(0xc9)},{'name':_0x2768d4(0xd4),'type':_0x2768d4(0xc9)},{'name':_0x2768d4(0xf0),'type':_0x2768d4(0xc9)}],'data':_0x44105b};}export async function executeSchemaQuery(_0x2acd60,_0x111c83,_0x20153b){const _0x1b937b=a82_0xbe4e,_0xb908e1=_0x2acd60[_0x1b937b(0xf2)]()[_0x1b937b(0xeb)](/;+$/,''),_0x4b470e=_0x1b937b(0xc3)+_0xb908e1+_0x1b937b(0xdf);_0x20153b[_0x1b937b(0xd6)]&&console[_0x1b937b(0xe6)](_0x1b937b(0xdd)+_0x4b470e);const _0x465667=await withQuerySpinner(_0x1b937b(0xc0),async _0x3d1c0d=>{const _0x1d7dc1=_0x1b937b,_0x4ea001=await _0x111c83[_0x1d7dc1(0xcd)][_0x1d7dc1(0xd3)](_0x4b470e,{'catalog':'td','schema':_0x1d7dc1(0xe9),'onJobId':_0x235657=>{const _0x178d5d=_0x1d7dc1;_0x3d1c0d[_0x178d5d(0xc4)](_0x235657);}});return _0x4ea001;},{'verbose':_0x20153b[_0x1b937b(0xd6)]});return buildSchemaResult(_0x465667[_0x1b937b(0xe3)]);}export function displayFieldsHumanReadable(_0x535e0d,_0xc955be){const _0x17425f=a82_0xbe4e,_0x5b0f26=_0x535e0d['filter'](_0x5e13aa=>_0x5e13aa[_0x17425f(0xea)]==='attribute'),_0x5bfbf9=_0x535e0d[_0x17425f(0xce)](_0x5232f2=>_0x5232f2[_0x17425f(0xea)]===_0x17425f(0xe8)),_0x359006=new Map();for(const _0x38e779 of _0x5b0f26){const _0x5723eb=_0x38e779[_0x17425f(0xf1)]||_0x17425f(0xe0),_0xcf4dbb=_0x359006[_0x17425f(0xee)](_0x5723eb)||[];_0xcf4dbb[_0x17425f(0xe2)](_0x38e779),_0x359006[_0x17425f(0xe4)](_0x5723eb,_0xcf4dbb);}const _0x277fbd=new Map();for(const _0x2e9056 of _0x5bfbf9){const _0x4aaa29=_0x2e9056[_0x17425f(0xec)]||_0x17425f(0xe0),_0x2449d0=_0x277fbd[_0x17425f(0xee)](_0x4aaa29)||[];_0x2449d0[_0x17425f(0xe2)](_0x2e9056),_0x277fbd[_0x17425f(0xe4)](_0x4aaa29,_0x2449d0);}console['error']('\x0a'+a82_0x5a46b['bold'](_0xc955be));if(_0x359006[_0x17425f(0xef)]>0x0){console[_0x17425f(0xe6)]('\x0a'+a82_0x5a46b[_0x17425f(0xbf)](_0x17425f(0xd2)));const _0x49759c=[..._0x359006[_0x17425f(0xd8)]()]['sort']((_0x51fca8,_0x5a3506)=>_0x51fca8[0x0]['localeCompare'](_0x5a3506[0x0]));for(const [_0x1617fc,_0x13c265]of _0x49759c){console[_0x17425f(0xe6)]('\x20\x20'+a82_0x5a46b[_0x17425f(0xdb)](_0x1617fc));const _0x29272b=[..._0x13c265]['sort']((_0x327241,_0x52a624)=>_0x327241['name'][_0x17425f(0xcc)](_0x52a624['name']));for(const _0x487d09 of _0x29272b){const _0x5a70be=_0x487d09[_0x17425f(0xd7)]&&_0x487d09[_0x17425f(0xd7)]!==_0x487d09[_0x17425f(0xdc)]?'\x20'+a82_0x5a46b['dim']('('+_0x487d09[_0x17425f(0xd7)]+')'):'';console[_0x17425f(0xe6)]('\x20\x20\x20\x20'+_0x487d09['name']+_0x5a70be+':\x20'+a82_0x5a46b[_0x17425f(0xc1)](_0x487d09['type']));}}}if(_0x277fbd[_0x17425f(0xef)]>0x0){console[_0x17425f(0xe6)]('\x0a'+a82_0x5a46b[_0x17425f(0xbf)](_0x17425f(0xc2)));const _0x4b0792=[..._0x277fbd[_0x17425f(0xd8)]()][_0x17425f(0xe7)]((_0x4082a5,_0x4e20f1)=>_0x4082a5[0x0][_0x17425f(0xcc)](_0x4e20f1[0x0]));for(const [_0x7cf8cf,_0x53eea0]of _0x4b0792){const _0x9cf54d=_0x53eea0[0x0],_0x1428c5=_0x9cf54d?.['parentTableName']||'';console[_0x17425f(0xe6)]('\x20\x20'+a82_0x5a46b[_0x17425f(0xdb)](_0x7cf8cf)+(_0x1428c5?'\x20'+a82_0x5a46b[_0x17425f(0xbf)]('('+_0x1428c5+')'):''));const _0x2c83b4=[..._0x53eea0][_0x17425f(0xe7)]((_0x4fddb4,_0x2045a4)=>_0x4fddb4['name'][_0x17425f(0xcc)](_0x2045a4['name']));for(const _0x19b870 of _0x2c83b4){const _0x91f637=_0x19b870[_0x17425f(0xdc)][_0x17425f(0xed)](_0x7cf8cf+'.')?_0x19b870[_0x17425f(0xdc)][_0x17425f(0xf3)](_0x7cf8cf[_0x17425f(0xd0)]+0x1):_0x19b870[_0x17425f(0xdc)],_0x4249c4=_0x19b870[_0x17425f(0xd7)]&&_0x19b870[_0x17425f(0xd7)]!==_0x91f637?'\x20'+a82_0x5a46b['dim']('('+_0x19b870[_0x17425f(0xd7)]+')'):'';console['error'](_0x17425f(0xc8)+_0x91f637+_0x4249c4+':\x20'+a82_0x5a46b['cyan'](_0x19b870[_0x17425f(0xde)]));}}}console[_0x17425f(0xe6)]('');}function a82_0xa629(){const _0x3666b0=['localeCompare','query','filter','22242lZFwMu','length','column_name','Attributes','execute','default','YES','verbose','parentColumn','entries','4662182FDoyWT','28239102lGQdgK','bold','name','Schema\x20query:\x0a','type','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','Unknown','map','push','data','set','7689mhAtGz','error','sort','behavior','information_schema','source','replace','behaviorName','startsWith','get','size','extra','parentTableName','trim','slice','dim','Fetching\x20schema...','cyan','Behaviors','SELECT\x20*\x20FROM\x20(\x0a','setJobId','226qEouxf','4450608kzvPEw','369508sFqgyW','\x20\x20\x20\x20','varchar','1120kJPdOf','4462440RYcdtW'];a82_0xa629=function(){return _0x3666b0;};return a82_0xa629();}
1
+ (function(_0x5665d2,_0x3b25b8){const _0x42efde=a82_0x4f69,_0x2c7a20=_0x5665d2();while(!![]){try{const _0x14a94=parseInt(_0x42efde(0xa3))/0x1+parseInt(_0x42efde(0xa0))/0x2+parseInt(_0x42efde(0x9e))/0x3+parseInt(_0x42efde(0x9a))/0x4*(-parseInt(_0x42efde(0x87))/0x5)+parseInt(_0x42efde(0x9c))/0x6*(-parseInt(_0x42efde(0x99))/0x7)+-parseInt(_0x42efde(0x9f))/0x8+-parseInt(_0x42efde(0x8d))/0x9*(-parseInt(_0x42efde(0x8e))/0xa);if(_0x14a94===_0x3b25b8)break;else _0x2c7a20['push'](_0x2c7a20['shift']());}catch(_0x3d4d67){_0x2c7a20['push'](_0x2c7a20['shift']());}}}(a82_0x5d0b,0xaca09));import a82_0x228448 from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x31c0ba){const _0x261b03=a82_0x4f69,_0xdf7a56=_0x31c0ba[_0x261b03(0x9b)][_0x261b03(0x92)](_0xa35d1e=>({'column_name':_0xa35d1e[_0x261b03(0xad)],'column_type':_0xa35d1e[_0x261b03(0x86)],'null':_0x261b03(0xb1),'key':null,'default':null,'extra':null}));return{..._0x31c0ba,'columns':[{'name':_0x261b03(0xaf),'type':'varchar'},{'name':_0x261b03(0xae),'type':_0x261b03(0x85)},{'name':_0x261b03(0x8b),'type':_0x261b03(0x85)},{'name':'key','type':_0x261b03(0x85)},{'name':'default','type':'varchar'},{'name':'extra','type':'varchar'}],'data':_0xdf7a56};}export async function executeSchemaQuery(_0x3790f1,_0x2390bf,_0x20a224){const _0x2c53c2=a82_0x4f69,_0x5097e7=_0x3790f1['trim']()['replace'](/;+$/,''),_0x293ba0=_0x2c53c2(0xa6)+_0x5097e7+_0x2c53c2(0xaa);_0x20a224[_0x2c53c2(0x93)]&&console[_0x2c53c2(0x96)](_0x2c53c2(0x95)+_0x293ba0);const _0x39ae34=await withQuerySpinner('Fetching\x20schema...',async _0x3e9e3a=>{const _0x5c944c=_0x2c53c2,_0x91e52d=await _0x2390bf[_0x5c944c(0xa9)][_0x5c944c(0x8c)](_0x293ba0,{'catalog':'td','schema':_0x5c944c(0x83),'onJobId':_0x384e77=>{const _0x215aef=_0x5c944c;_0x3e9e3a[_0x215aef(0x90)](_0x384e77);}});return _0x91e52d;},{'verbose':_0x20a224[_0x2c53c2(0x93)]});return buildSchemaResult(_0x39ae34[_0x2c53c2(0x84)]);}export function displayFieldsHumanReadable(_0x5bc354,_0x573152){const _0x37fbfc=a82_0x4f69,_0x5aff36=_0x5bc354['filter'](_0x1c3bf3=>_0x1c3bf3[_0x37fbfc(0x91)]==='attribute'),_0x29fabf=_0x5bc354[_0x37fbfc(0xac)](_0x4d522a=>_0x4d522a['source']===_0x37fbfc(0xa1)),_0x4d7a02=new Map();for(const _0x526196 of _0x5aff36){const _0x16cdb0=_0x526196[_0x37fbfc(0x8a)]||_0x526196[_0x37fbfc(0xa7)]||_0x37fbfc(0x98),_0x29900f=_0x4d7a02[_0x37fbfc(0xa2)](_0x16cdb0);_0x29900f?_0x29900f[_0x37fbfc(0xb2)][_0x37fbfc(0x94)](_0x526196):_0x4d7a02['set'](_0x16cdb0,{'displayName':_0x16cdb0,'tableName':_0x526196[_0x37fbfc(0xa7)],'fields':[_0x526196]});}const _0x13231f=new Map();for(const _0x28c4ed of _0x29fabf){const _0x561e75=_0x28c4ed[_0x37fbfc(0xa8)]||_0x37fbfc(0x98),_0x38a4c8=_0x13231f['get'](_0x561e75)||[];_0x38a4c8[_0x37fbfc(0x94)](_0x28c4ed),_0x13231f[_0x37fbfc(0x89)](_0x561e75,_0x38a4c8);}console[_0x37fbfc(0x96)]('\x0a'+a82_0x228448['bold'](_0x573152));if(_0x4d7a02[_0x37fbfc(0xab)]>0x0){console[_0x37fbfc(0x96)]('\x0a'+a82_0x228448['dim'](_0x37fbfc(0xa5)));const _0x2ebe56=[..._0x4d7a02[_0x37fbfc(0xa4)]()]['sort']((_0x185b3d,_0x34e51c)=>_0x185b3d[0x0][_0x37fbfc(0x8f)](_0x34e51c[0x0]));for(const [,_0x85375a]of _0x2ebe56){const _0x228230=_0x85375a[_0x37fbfc(0x97)]&&_0x85375a[_0x37fbfc(0x97)]!==_0x85375a['displayName']?'\x20'+a82_0x228448['dim']('('+_0x85375a[_0x37fbfc(0x97)]+')'):'';console['error']('\x20\x20'+a82_0x228448[_0x37fbfc(0x9d)](_0x85375a[_0x37fbfc(0xb5)])+_0x228230);const _0x90a6ef=[..._0x85375a[_0x37fbfc(0xb2)]][_0x37fbfc(0xb0)]((_0x4d8fe6,_0x1f711d)=>_0x4d8fe6[_0x37fbfc(0xad)][_0x37fbfc(0x8f)](_0x1f711d[_0x37fbfc(0xad)]));for(const _0x2c917e of _0x90a6ef){const _0x163698=_0x2c917e[_0x37fbfc(0x88)]&&_0x2c917e['parentColumn']!==_0x2c917e['name']?'\x20'+a82_0x228448['dim']('('+_0x2c917e[_0x37fbfc(0x88)]+')'):'';console[_0x37fbfc(0x96)]('\x20\x20\x20\x20'+_0x2c917e[_0x37fbfc(0xad)]+_0x163698+':\x20'+a82_0x228448[_0x37fbfc(0x81)](_0x2c917e['type']));}}}if(_0x13231f[_0x37fbfc(0xab)]>0x0){console[_0x37fbfc(0x96)]('\x0a'+a82_0x228448[_0x37fbfc(0xb3)]('Behaviors'));const _0x2085a7=[..._0x13231f[_0x37fbfc(0xa4)]()]['sort']((_0x5ebc38,_0xed9bb5)=>_0x5ebc38[0x0][_0x37fbfc(0x8f)](_0xed9bb5[0x0]));for(const [_0x49dc44,_0x40c477]of _0x2085a7){const _0x4ab01f=_0x40c477[0x0],_0x51d037=_0x4ab01f?.['parentTableName']||'';console['error']('\x20\x20'+a82_0x228448[_0x37fbfc(0x9d)](_0x49dc44)+(_0x51d037?'\x20'+a82_0x228448[_0x37fbfc(0xb3)]('('+_0x51d037+')'):''));const _0x649881=[..._0x40c477][_0x37fbfc(0xb0)]((_0x1b84ce,_0x5e9a5d)=>_0x1b84ce[_0x37fbfc(0xad)][_0x37fbfc(0x8f)](_0x5e9a5d[_0x37fbfc(0xad)]));for(const _0x201d6f of _0x649881){const _0x1df2b1=_0x201d6f[_0x37fbfc(0xad)][_0x37fbfc(0xb4)](_0x49dc44+'.')?_0x201d6f[_0x37fbfc(0xad)]['slice'](_0x49dc44[_0x37fbfc(0x82)]+0x1):_0x201d6f[_0x37fbfc(0xad)],_0x206825=_0x201d6f[_0x37fbfc(0x88)]&&_0x201d6f[_0x37fbfc(0x88)]!==_0x1df2b1?'\x20'+a82_0x228448[_0x37fbfc(0xb3)]('('+_0x201d6f['parentColumn']+')'):'';console[_0x37fbfc(0x96)]('\x20\x20\x20\x20'+_0x1df2b1+_0x206825+':\x20'+a82_0x228448[_0x37fbfc(0x81)](_0x201d6f[_0x37fbfc(0x86)]));}}}console['error']('');}function a82_0x4f69(_0x7b5bca,_0xcd92fe){const _0x5d0bfe=a82_0x5d0b();return a82_0x4f69=function(_0x4f694c,_0x5a92f8){_0x4f694c=_0x4f694c-0x81;let _0x125388=_0x5d0bfe[_0x4f694c];return _0x125388;},a82_0x4f69(_0x7b5bca,_0xcd92fe);}function a82_0x5d0b(){const _0x4bbbe5=['information_schema','data','varchar','type','25PJrWRs','parentColumn','set','groupingName','null','execute','15750LGaVXW','3640PkORzZ','localeCompare','setJobId','source','map','verbose','push','Schema\x20query:\x0a','error','tableName','Unknown','4879Nvwupv','617444mSZIBI','columns','5952TBBiHL','bold','1664589pLCfXG','2475840YlDLfa','2032748bqbbUw','behavior','get','271553sOUaik','entries','Attributes','SELECT\x20*\x20FROM\x20(\x0a','parentTableName','behaviorName','query','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','size','filter','name','column_type','column_name','sort','YES','fields','dim','startsWith','displayName','cyan','length'];a82_0x5d0b=function(){return _0x4bbbe5;};return a82_0x5d0b();}
@@ -1 +1 @@
1
- {"version":3,"file":"fields-display.js","sourceRoot":"","sources":["../../src/utils/fields-display.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"fields-display.js","sourceRoot":"","sources":["../../src/utils/fields-display.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,WAAmC;IAEnC,sDAAsD;IACtD,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAgB,EAAE,EAAE,CAAC,CAAC;QAChE,WAAW,EAAE,GAAG,CAAC,IAAI;QACrB,WAAW,EAAE,GAAG,CAAC,IAAI;QACrB,IAAI,EAAE,KAAK;QACX,GAAG,EAAE,IAAI;QACT,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC,CAAC;IAEJ,6CAA6C;IAC7C,OAAO;QACL,GAAG,WAAW;QACd,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;YACxC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;YACxC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;YACjC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE;YAChC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;YACpC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE;SACnC;QACD,IAAI,EAAE,UAAU;KACjB,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAAW,EACX,GAAQ,EACR,OAA8B;IAE9B,wEAAwE;IACxE,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACjD,MAAM,SAAS,GAAG,oBAAoB,UAAU,8BAA8B,CAAC;IAE/E,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,kBAAkB,SAAS,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,uCAAuC;IACvC,MAAM,aAAa,GAAG,MAAM,gBAAgB,CAC1C,oBAAoB,EACpB,KAAK,EAAE,UAAU,EAAE,EAAE;QACnB,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE;YAChD,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,oBAAoB;YAC5B,OAAO,EAAE,CAAC,KAAa,EAAE,EAAE;gBACzB,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC7B,CAAC;SACF,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC,EACD,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAC7B,CAAC;IAEF,2CAA2C;IAC3C,OAAO,iBAAiB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC;AAaD;;GAEG;AACH,MAAM,UAAU,0BAA0B,CAAC,MAAsB,EAAE,UAAkB;IACnF,8BAA8B;IAC9B,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC;IAClE,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC;IAEhE,wFAAwF;IACxF,MAAM,eAAe,GAAG,IAAI,GAAG,EAA+E,CAAC;IAC/G,KAAK,MAAM,KAAK,IAAI,UAAU,EAAE,CAAC;QAC/B,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,eAAe,IAAI,SAAS,CAAC;QAC9E,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACnD,IAAI,QAAQ,EAAE,CAAC;YACb,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;aAAM,CAAC;YACN,eAAe,CAAC,GAAG,CAAC,YAAY,EAAE;gBAChC,WAAW,EAAE,YAAY;gBACzB,SAAS,EAAE,KAAK,CAAC,eAAe;gBAChC,MAAM,EAAE,CAAC,KAAK,CAAC;aAChB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,mCAAmC;IACnC,MAAM,cAAc,GAAG,IAAI,GAAG,EAA0B,CAAC;IACzD,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE,CAAC;QAC9B,MAAM,SAAS,GAAG,KAAK,CAAC,YAAY,IAAI,SAAS,CAAC;QAClD,MAAM,KAAK,GAAG,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QAClD,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAClB,cAAc,CAAC,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IAE7C,qDAAqD;IACrD,IAAI,eAAe,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QAC7B,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QAC9C,MAAM,gBAAgB,GAAG,CAAC,GAAG,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjG,KAAK,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,gBAAgB,EAAE,CAAC;YACzC,qEAAqE;YACrE,MAAM,SAAS,GACb,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1G,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,SAAS,EAAE,CAAC,CAAC;YAEhE,MAAM,YAAY,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACpF,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,CAAC;gBACjC,MAAM,MAAM,GACV,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,YAAY,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC5G,OAAO,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,IAAI,GAAG,MAAM,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;IACH,CAAC;IAED,oDAAoD;IACpD,IAAI,cAAc,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAC7C,MAAM,oBAAoB,GAAG,CAAC,GAAG,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpG,KAAK,MAAM,CAAC,YAAY,EAAE,WAAW,CAAC,IAAI,oBAAoB,EAAE,CAAC;YAC/D,kCAAkC;YAClC,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAClC,MAAM,KAAK,GAAG,UAAU,EAAE,eAAe,IAAI,EAAE,CAAC;YAChD,OAAO,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAE5F,MAAM,YAAY,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACnF,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,CAAC;gBACjC,0DAA0D;gBAC1D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,YAAY,GAAG,CAAC;oBACzD,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;oBAC3C,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;gBACf,MAAM,MAAM,GACV,KAAK,CAAC,YAAY,IAAI,KAAK,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,YAAY,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3G,OAAO,CAAC,KAAK,CAAC,OAAO,SAAS,GAAG,MAAM,KAAK,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AACpB,CAAC"}
@@ -1 +1 @@
1
- (function(_0x23e4ed,_0x57471b){const _0xe5f6aa=a83_0x2e35,_0x51222c=_0x23e4ed();while(!![]){try{const _0xbcedc0=-parseInt(_0xe5f6aa(0x1a7))/0x1+-parseInt(_0xe5f6aa(0x1aa))/0x2*(-parseInt(_0xe5f6aa(0x1ac))/0x3)+-parseInt(_0xe5f6aa(0x1a8))/0x4+-parseInt(_0xe5f6aa(0x1a3))/0x5+-parseInt(_0xe5f6aa(0x19e))/0x6*(-parseInt(_0xe5f6aa(0x19a))/0x7)+-parseInt(_0xe5f6aa(0x1a5))/0x8*(-parseInt(_0xe5f6aa(0x1ab))/0x9)+parseInt(_0xe5f6aa(0x19b))/0xa*(parseInt(_0xe5f6aa(0x19f))/0xb);if(_0xbcedc0===_0x57471b)break;else _0x51222c['push'](_0x51222c['shift']());}catch(_0x3aafb5){_0x51222c['push'](_0x51222c['shift']());}}}(a83_0x1488,0xae9c6));function a83_0x1488(){const _0x2af5f0=['7216bgljyb','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','749513ehLUUA','4555848cYlnwy','Should\x20be\x200600\x20or\x20more\x20restrictive.','104582ragwnk','11322xqpszW','57zNJhRU','dirname','statSync','mkdirSync','63RbPElS','755630mHvAlr','mode','toString','309486CGaiyn','11clGlkL','existsSync','writeFileSync','chmodSync','321780FLIcKY','warn'];a83_0x1488=function(){return _0x2af5f0;};return a83_0x1488();}import*as a83_0x5df5a9 from'node:fs';import*as a83_0x21b374 from'node:path';export function setSecureFilePermissions(_0x4d6353){const _0xd4fd06=a83_0x2e35;try{a83_0x5df5a9[_0xd4fd06(0x1a2)](_0x4d6353,0x180);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4d6353);}}export function setSecureDirectoryPermissions(_0x5e6f67){const _0x51936b=a83_0x2e35;try{a83_0x5df5a9[_0x51936b(0x1a2)](_0x5e6f67,0x1c0);}catch{console[_0x51936b(0x1a4)](_0x51936b(0x1a6)+_0x5e6f67);}}export function createSecureDirectory(_0x62f084){const _0x32527e=a83_0x2e35;!a83_0x5df5a9[_0x32527e(0x1a0)](_0x62f084)&&(a83_0x5df5a9[_0x32527e(0x199)](_0x62f084,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x62f084));}function a83_0x2e35(_0x5f2e2a,_0x35816b){const _0x148822=a83_0x1488();return a83_0x2e35=function(_0x2e352e,_0x1a8447){_0x2e352e=_0x2e352e-0x198;let _0x1edda1=_0x148822[_0x2e352e];return _0x1edda1;},a83_0x2e35(_0x5f2e2a,_0x35816b);}export function validateSecureFilePermissions(_0x20c220){const _0x3e6871=a83_0x2e35;try{const _0x1779e7=a83_0x5df5a9[_0x3e6871(0x198)](_0x20c220),_0x55f02d=_0x1779e7[_0x3e6871(0x19c)]&0x1ff,_0xbb1a03=(_0x55f02d&0x3f)!==0x0;if(_0xbb1a03)return console[_0x3e6871(0x1a4)]('Warning:\x20'+_0x20c220+'\x20has\x20insecure\x20permissions\x20('+_0x55f02d[_0x3e6871(0x19d)](0x8)+').\x20'+_0x3e6871(0x1a9)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3c61af,_0x316a56){const _0x1dca9e=a83_0x2e35,_0x17261b=a83_0x21b374[_0x1dca9e(0x1ad)](_0x3c61af);createSecureDirectory(_0x17261b),a83_0x5df5a9[_0x1dca9e(0x1a1)](_0x3c61af,_0x316a56,{'mode':0x180}),setSecureFilePermissions(_0x3c61af);}
1
+ (function(_0x420a38,_0x4dc049){const _0x2bdcc5=a83_0x4c30,_0x2cc1ce=_0x420a38();while(!![]){try{const _0x59a877=parseInt(_0x2bdcc5(0x193))/0x1+parseInt(_0x2bdcc5(0x183))/0x2+parseInt(_0x2bdcc5(0x18f))/0x3+parseInt(_0x2bdcc5(0x18c))/0x4+-parseInt(_0x2bdcc5(0x18e))/0x5*(parseInt(_0x2bdcc5(0x187))/0x6)+parseInt(_0x2bdcc5(0x181))/0x7+-parseInt(_0x2bdcc5(0x192))/0x8*(parseInt(_0x2bdcc5(0x186))/0x9);if(_0x59a877===_0x4dc049)break;else _0x2cc1ce['push'](_0x2cc1ce['shift']());}catch(_0x540461){_0x2cc1ce['push'](_0x2cc1ce['shift']());}}}(a83_0x57f8,0xe3f6f));import*as a83_0xaaf060 from'node:fs';import*as a83_0x135b49 from'node:path';function a83_0x4c30(_0x3dbd2d,_0x3eede6){const _0x57f86f=a83_0x57f8();return a83_0x4c30=function(_0x4c302c,_0x559544){_0x4c302c=_0x4c302c-0x181;let _0x4edcba=_0x57f86f[_0x4c302c];return _0x4edcba;},a83_0x4c30(_0x3dbd2d,_0x3eede6);}export function setSecureFilePermissions(_0x5003d7){const _0x554bae=a83_0x4c30;try{a83_0xaaf060[_0x554bae(0x188)](_0x5003d7,0x180);}catch{console[_0x554bae(0x184)](_0x554bae(0x18b)+_0x5003d7);}}export function setSecureDirectoryPermissions(_0xdd1a72){const _0x453157=a83_0x4c30;try{a83_0xaaf060[_0x453157(0x188)](_0xdd1a72,0x1c0);}catch{console[_0x453157(0x184)](_0x453157(0x18b)+_0xdd1a72);}}function a83_0x57f8(){const _0x1e87be=['toString','Should\x20be\x200600\x20or\x20more\x20restrictive.','16ArberV','365863QwZJPM','458115efLYye','writeFileSync','1166212rcafUd','warn','statSync','2757933obgTPs','7587948oSTDvM','chmodSync','mode','\x20has\x20insecure\x20permissions\x20(','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','6449152sPyaXl',').\x20','5XCICVu','553719PXFdiJ'];a83_0x57f8=function(){return _0x1e87be;};return a83_0x57f8();}export function createSecureDirectory(_0xb654cb){!a83_0xaaf060['existsSync'](_0xb654cb)&&(a83_0xaaf060['mkdirSync'](_0xb654cb,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xb654cb));}export function validateSecureFilePermissions(_0x4328fd){const _0x44f0e3=a83_0x4c30;try{const _0x21a7f2=a83_0xaaf060[_0x44f0e3(0x185)](_0x4328fd),_0x5772ca=_0x21a7f2[_0x44f0e3(0x189)]&0x1ff,_0x1f7bd7=(_0x5772ca&0x3f)!==0x0;if(_0x1f7bd7)return console[_0x44f0e3(0x184)]('Warning:\x20'+_0x4328fd+_0x44f0e3(0x18a)+_0x5772ca[_0x44f0e3(0x190)](0x8)+_0x44f0e3(0x18d)+_0x44f0e3(0x191)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x29d3f7,_0x251d46){const _0x6ee2ad=a83_0x4c30,_0x56625a=a83_0x135b49['dirname'](_0x29d3f7);createSecureDirectory(_0x56625a),a83_0xaaf060[_0x6ee2ad(0x182)](_0x29d3f7,_0x251d46,{'mode':0x180}),setSecureFilePermissions(_0x29d3f7);}
@@ -1 +1 @@
1
- (function(_0xb7ea0e,_0x5c768e){const _0x1721a7=a84_0x338f,_0x2cd746=_0xb7ea0e();while(!![]){try{const _0x312ff3=parseInt(_0x1721a7(0x125))/0x1+-parseInt(_0x1721a7(0x132))/0x2*(-parseInt(_0x1721a7(0x12d))/0x3)+-parseInt(_0x1721a7(0x131))/0x4+-parseInt(_0x1721a7(0x133))/0x5*(-parseInt(_0x1721a7(0x12e))/0x6)+parseInt(_0x1721a7(0x126))/0x7+-parseInt(_0x1721a7(0x12a))/0x8+-parseInt(_0x1721a7(0x12f))/0x9;if(_0x312ff3===_0x5c768e)break;else _0x2cd746['push'](_0x2cd746['shift']());}catch(_0x402fba){_0x2cd746['push'](_0x2cd746['shift']());}}}(a84_0x1545,0x7cc90));function a84_0x1545(){const _0x2066d3=['5081472TOTCkD','jsonl','json','36QFFCcw','32718GtNAfo','16737516hLSAXq','split','760096KhZNyh','98944ZVzQxt','780NWliml','pop','854053PJDCFI','6283669KTnLtJ','tsv','text','table'];a84_0x1545=function(){return _0x2066d3;};return a84_0x1545();}function a84_0x338f(_0x544d21,_0x547364){const _0x1545d8=a84_0x1545();return a84_0x338f=function(_0x338ff5,_0x16deb5){_0x338ff5=_0x338ff5-0x125;let _0x55eae2=_0x1545d8[_0x338ff5];return _0x55eae2;},a84_0x338f(_0x544d21,_0x547364);}export function detectFormatFromExtension(_0x28da45){const _0x9eb1fc=a84_0x338f,_0x102750=_0x28da45['toLowerCase']()[_0x9eb1fc(0x130)]('.')[_0x9eb1fc(0x134)]();switch(_0x102750){case _0x9eb1fc(0x12c):return _0x9eb1fc(0x12c);case _0x9eb1fc(0x12b):return _0x9eb1fc(0x12b);case _0x9eb1fc(0x127):case'tab':return'tsv';case'txt':case _0x9eb1fc(0x128):return _0x9eb1fc(0x129);default:return undefined;}}export function resolveOutputFormat(_0x49d922,_0x19aecd,_0x5484bf){if(_0x49d922)return _0x49d922;if(_0x19aecd){const _0x3ec0e1=detectFormatFromExtension(_0x19aecd);if(_0x3ec0e1)return _0x3ec0e1;}return _0x5484bf;}
1
+ function a84_0x12a7(_0x20c877,_0x1abf80){const _0x146992=a84_0x1469();return a84_0x12a7=function(_0x12a790,_0xb437eb){_0x12a790=_0x12a790-0x9e;let _0x2c56a0=_0x146992[_0x12a790];return _0x2c56a0;},a84_0x12a7(_0x20c877,_0x1abf80);}(function(_0xed04d8,_0x1f3a63){const _0x4e2398=a84_0x12a7,_0x564517=_0xed04d8();while(!![]){try{const _0x397d75=parseInt(_0x4e2398(0xad))/0x1*(parseInt(_0x4e2398(0xa0))/0x2)+-parseInt(_0x4e2398(0xae))/0x3*(parseInt(_0x4e2398(0xa6))/0x4)+-parseInt(_0x4e2398(0xa4))/0x5+-parseInt(_0x4e2398(0xaa))/0x6+parseInt(_0x4e2398(0xb0))/0x7+-parseInt(_0x4e2398(0xa2))/0x8*(-parseInt(_0x4e2398(0xac))/0x9)+parseInt(_0x4e2398(0xaf))/0xa;if(_0x397d75===_0x1f3a63)break;else _0x564517['push'](_0x564517['shift']());}catch(_0x5b7ade){_0x564517['push'](_0x564517['shift']());}}}(a84_0x1469,0xcde67));export function detectFormatFromExtension(_0x5ec5ad){const _0x182450=a84_0x12a7,_0x1f7822=_0x5ec5ad[_0x182450(0xa9)]()[_0x182450(0xa7)]('.')[_0x182450(0x9f)]();switch(_0x1f7822){case _0x182450(0xa3):return _0x182450(0xa3);case _0x182450(0xa1):return _0x182450(0xa1);case _0x182450(0xa5):case _0x182450(0xab):return _0x182450(0xa5);case _0x182450(0xa8):case'text':return _0x182450(0x9e);default:return undefined;}}function a84_0x1469(){const _0x1469c2=['txt','toLowerCase','3312276cQdzZQ','tab','43695NkgfNh','472159hTfZeH','4659933yHjQUQ','14105270wFxlxT','2113538lULhSu','table','pop','6jTbCeX','jsonl','304aPPCIu','json','1823520OrnmIH','tsv','4ygnBOM','split'];a84_0x1469=function(){return _0x1469c2;};return a84_0x1469();}export function resolveOutputFormat(_0x2525d2,_0x4b5a0c,_0xcba76d){if(_0x2525d2)return _0x2525d2;if(_0x4b5a0c){const _0x548c14=detectFormatFromExtension(_0x4b5a0c);if(_0x548c14)return _0x548c14;}return _0xcba76d;}
@@ -1 +1 @@
1
- (function(_0x4662ce,_0x3e6984){const _0x342e62=a85_0x1f21,_0x41c846=_0x4662ce();while(!![]){try{const _0x4dec04=parseInt(_0x342e62(0x143))/0x1+parseInt(_0x342e62(0x11c))/0x2*(parseInt(_0x342e62(0x119))/0x3)+parseInt(_0x342e62(0x122))/0x4*(-parseInt(_0x342e62(0x130))/0x5)+-parseInt(_0x342e62(0x132))/0x6*(parseInt(_0x342e62(0x12f))/0x7)+-parseInt(_0x342e62(0x123))/0x8+parseInt(_0x342e62(0x138))/0x9*(parseInt(_0x342e62(0x113))/0xa)+parseInt(_0x342e62(0x12d))/0xb;if(_0x4dec04===_0x3e6984)break;else _0x41c846['push'](_0x41c846['shift']());}catch(_0x4ac453){_0x41c846['push'](_0x41c846['shift']());}}}(a85_0x2ae2,0x85ddf));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x47770c=a85_0x1f21;return process[_0x47770c(0x112)][_0x47770c(0x114)]||Infinity;}export function formatAsTable(_0x2c3bf1,_0xa1bd78=DEFAULT_MAX_DISPLAY_ROWS,_0x3cbb67=![],_0xecfb2a={}){const _0x596d12=a85_0x1f21;if(_0x2c3bf1[_0x596d12(0x11b)][_0x596d12(0x139)]===0x0)return'No\x20rows\x20returned';const _0x39939a=_0x2c3bf1[_0x596d12(0x114)][_0x596d12(0x136)](_0x147318=>_0x147318[_0x596d12(0x126)]),_0x26ac25=_0x2c3bf1['columns']['map'](_0x3382f9=>simplifyType(_0x3382f9['type'])),_0x5cb8ba=_0x2c3bf1[_0x596d12(0x11b)][_0x596d12(0x12e)](0x0,_0xa1bd78),_0x5c0207=_0x2c3bf1['data'][_0x596d12(0x139)],_0x37d145=_0x5c0207>_0xa1bd78,_0x1ea5bc=[],_0x419cf1=getTerminalWidth(),_0x1a4764=_0x419cf1!==Infinity,_0x413437=0x32;let _0x3710df=_0x39939a[_0x596d12(0x136)]((_0xa3ab05,_0x30bd82)=>{const _0x4cb96=_0x596d12,_0x33db57=stringWidth(_0x26ac25[_0x30bd82]),_0x2239fd=Math[_0x4cb96(0x131)](..._0x5cb8ba[_0x4cb96(0x136)](_0x580ede=>{const _0x79d4ee=_0x580ede[_0xa3ab05];return stringWidth(formatValue(_0x79d4ee));})),_0x559389=Math[_0x4cb96(0x131)](stringWidth(_0xa3ab05),_0x33db57,_0x2239fd);return _0x3cbb67?_0x559389:Math[_0x4cb96(0x115)](_0x559389,_0x413437);});if(_0x1a4764&&!_0x3cbb67&&_0x39939a[_0x596d12(0x139)]>0x0){const _0x202181=_0x1e05cc=>{let _0x57f013=0x1;for(const _0x5dd932 of _0x1e05cc){_0x57f013+=_0x5dd932+0x3;}return _0x57f013+0x1;};let _0x29fa5f=_0x202181(_0x3710df);if(_0x29fa5f>_0x419cf1){const _0x2a67af=0x3;for(let _0x3621c5=_0x3710df[_0x596d12(0x139)]-0x1;_0x3621c5>=0x0;_0x3621c5--){_0x29fa5f=_0x202181(_0x3710df);if(_0x29fa5f<=_0x419cf1)break;const _0x566c1d=_0x3710df[_0x3621c5],_0x41580a=_0x29fa5f-_0x419cf1,_0x2a1d03=_0x566c1d-_0x2a67af,_0x38e31f=Math['min'](_0x41580a,_0x2a1d03);_0x38e31f>0x0&&(_0x3710df[_0x3621c5]=_0x566c1d-_0x38e31f);}}}const _0x4f40b7=_0x39939a,_0x525f5d=_0x26ac25,_0x303923=_0x3710df,_0x7155ac=_0x3710df;_0x1ea5bc[_0x596d12(0x135)](colorBorder('┌'+_0x7155ac[_0x596d12(0x136)](_0x22a58e=>'─'[_0x596d12(0x120)](_0x22a58e+0x2))[_0x596d12(0x110)]('┬')+'┐',_0xecfb2a));const _0x8117bf=_0x4f40b7[_0x596d12(0x136)]((_0x509615,_0x43384f)=>centerAlign(_0x509615,_0x303923[_0x43384f]));_0x1ea5bc[_0x596d12(0x135)](colorBorder('│',_0xecfb2a)+'\x20'+_0x8117bf['join']('\x20'+colorBorder('│',_0xecfb2a)+'\x20')+'\x20'+colorBorder('│',_0xecfb2a));const _0x4b88c8=_0x525f5d[_0x596d12(0x136)]((_0x21a14b,_0x5d1a62)=>colorType(centerAlign(_0x21a14b,_0x303923[_0x5d1a62]),_0xecfb2a));_0x1ea5bc['push'](colorBorder('│',_0xecfb2a)+'\x20'+_0x4b88c8[_0x596d12(0x110)]('\x20'+colorBorder('│',_0xecfb2a)+'\x20')+'\x20'+colorBorder('│',_0xecfb2a)),_0x1ea5bc['push'](colorBorder('├'+_0x7155ac[_0x596d12(0x136)](_0x5413a7=>'─'['repeat'](_0x5413a7+0x2))[_0x596d12(0x110)]('┼')+'┤',_0xecfb2a));const _0x7e6605=(_0xdf01c1,_0x57a47b)=>{const _0x461fbe=_0x596d12,_0x315406=stringWidth(_0xdf01c1);if(_0x315406<=_0x57a47b)return _0xdf01c1;let _0x476900=_0xdf01c1;while(stringWidth(_0x476900+'…')>_0x57a47b&&_0x476900[_0x461fbe(0x139)]>0x0){_0x476900=_0x476900[_0x461fbe(0x12e)](0x0,-0x1);}return _0x476900+'…';};_0x5cb8ba['forEach'](_0x2fa104=>{const _0x432bab=_0x596d12,_0x3f2a49=_0x39939a['map']((_0x134914,_0x510f09)=>{const _0xff2f56=a85_0x1f21,_0x1ac984=_0x2fa104[_0x134914],_0x5cf050=formatValue(_0x1ac984),_0x5c7cb3=_0x303923[_0x510f09],_0x24e021=_0x7e6605(_0x5cf050,_0x5c7cb3),_0x1d687d=typeof _0x1ac984==='number'||typeof _0x1ac984==='string'&&/^-?\d+$/[_0xff2f56(0x13f)](_0x1ac984);return _0x1d687d?padStart(_0x24e021,_0x5c7cb3):padEnd(_0x24e021,_0x5c7cb3);});_0x1ea5bc[_0x432bab(0x135)](colorBorder('│',_0xecfb2a)+'\x20'+_0x3f2a49[_0x432bab(0x110)]('\x20'+colorBorder('│',_0xecfb2a)+'\x20')+'\x20'+colorBorder('│',_0xecfb2a));});const _0x4e57f8=_0x7155ac['reduce']((_0x3ebbca,_0x4d6380)=>_0x3ebbca+_0x4d6380+0x3,-0x1);_0x1ea5bc[_0x596d12(0x135)](colorBorder('├'+_0x7155ac[_0x596d12(0x136)](_0x405ac7=>'─'[_0x596d12(0x120)](_0x405ac7+0x2))[_0x596d12(0x110)]('┴')+'┤',_0xecfb2a));let _0x15b1dd;_0x37d145?_0x15b1dd=_0x5c0207+_0x596d12(0x140)+_0xa1bd78+'\x20shown)':_0x15b1dd=_0x5c0207+'\x20row'+(_0x5c0207===0x1?'':'s');const _0x5c7a84=_0x15b1dd['padEnd'](_0x4e57f8-0x2);return _0x1ea5bc[_0x596d12(0x135)](colorBorder('│',_0xecfb2a)+'\x20'+_0x5c7a84+'\x20'+colorBorder('│',_0xecfb2a)),_0x1ea5bc['push'](colorBorder('└'+'─'[_0x596d12(0x120)](_0x4e57f8)+'┘',_0xecfb2a)),_0x1ea5bc[_0x596d12(0x110)]('\x0a');}function a85_0x1f21(_0xb6755b,_0x41f271){const _0x2ae296=a85_0x2ae2();return a85_0x1f21=function(_0x1f2100,_0x1a8e12){_0x1f2100=_0x1f2100-0x110;let _0x1d28e7=_0x2ae296[_0x1f2100];return _0x1d28e7;},a85_0x1f21(_0xb6755b,_0x41f271);}function simplifyType(_0x4abaf4){const _0x18cc23=a85_0x1f21,_0x2738e8={'varchar':_0x18cc23(0x118),'bigint':_0x18cc23(0x124),'integer':'int','double':_0x18cc23(0x13e),'boolean':_0x18cc23(0x141),'date':'date','timestamp':'timestamp','array':'array','map':_0x18cc23(0x136),'row':_0x18cc23(0x117)},_0x49db76=_0x4abaf4[_0x18cc23(0x111)]();for(const [_0x470836,_0x1f3739]of Object[_0x18cc23(0x13c)](_0x2738e8)){if(_0x49db76[_0x18cc23(0x12c)](_0x470836))return _0x1f3739;}return _0x4abaf4['length']>0xa?_0x4abaf4[_0x18cc23(0x137)](0x0,0xa):_0x4abaf4;}export function formatAsJSON(_0x4af418,_0x1f0cf9={}){const _0x5ce23e=a85_0x1f21;if(_0x4af418['data'][_0x5ce23e(0x139)]===0x0)return'[]';if(shouldUseColor(_0x1f0cf9))return colorizeJSON(_0x4af418[_0x5ce23e(0x11b)],_0x1f0cf9);const _0x235ddc=_0x4af418['data'][_0x5ce23e(0x136)](_0x55f60a=>'\x20\x20'+JSON[_0x5ce23e(0x12b)](_0x55f60a));return'[\x0a'+_0x235ddc[_0x5ce23e(0x110)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x47a0bb,_0x3375ff={}){const _0xf9fbea=a85_0x1f21;if(_0x47a0bb[_0xf9fbea(0x11b)][_0xf9fbea(0x139)]===0x0)return'';if(shouldUseColor(_0x3375ff))return _0x47a0bb[_0xf9fbea(0x11b)][_0xf9fbea(0x136)](_0x1c232a=>colorizeJSONCompact(_0x1c232a,_0x3375ff))['join']('\x0a');return _0x47a0bb['data']['map'](_0x24d1eb=>JSON[_0xf9fbea(0x12b)](_0x24d1eb))[_0xf9fbea(0x110)]('\x0a');}export function formatAsTSV(_0x14c7df){const _0xcd8719=a85_0x1f21;if(_0x14c7df[_0xcd8719(0x11b)][_0xcd8719(0x139)]===0x0)return'';const _0x4839ed=[],_0x232d01=_0x14c7df[_0xcd8719(0x114)][_0xcd8719(0x136)](_0x189164=>_0x189164[_0xcd8719(0x126)]);return _0x4839ed[_0xcd8719(0x135)](_0x232d01[_0xcd8719(0x110)]('\x09')),_0x14c7df['data'][_0xcd8719(0x11d)](_0x387cf4=>{const _0x2294a2=_0xcd8719,_0x153c4a=_0x232d01[_0x2294a2(0x136)](_0x2c772e=>{const _0x3c6815=_0x387cf4[_0x2c772e];return formatValueForTSV(_0x3c6815);});_0x4839ed['push'](_0x153c4a[_0x2294a2(0x110)]('\x09'));}),_0x4839ed[_0xcd8719(0x110)]('\x0a');}function formatValue(_0x394f03){const _0x25fbb5=a85_0x1f21;if(_0x394f03===null||_0x394f03===undefined)return'';if(typeof _0x394f03===_0x25fbb5(0x118)){const _0x49e371=_0x394f03[_0x25fbb5(0x13b)](/\n/g,'\x5cn')[_0x25fbb5(0x13b)](/\r/g,'\x5cr')[_0x25fbb5(0x13b)](/\t/g,'\x5ct');return _0x49e371;}if(typeof _0x394f03===_0x25fbb5(0x129))return String(_0x394f03);if(typeof _0x394f03===_0x25fbb5(0x121))return _0x394f03?_0x25fbb5(0x127):_0x25fbb5(0x128);if(_0x394f03 instanceof Date)return _0x394f03[_0x25fbb5(0x12a)]();if(typeof _0x394f03===_0x25fbb5(0x13d))return JSON[_0x25fbb5(0x12b)](_0x394f03);return String(_0x394f03);}function a85_0x2ae2(){const _0x2e2bf8=['4100240sCujkq','long','toFixed','name','true','false','number','toISOString','stringify','startsWith','11184437EjXraf','slice','890911oRHqyk','593585yrVsnT','max','24FhNfBa','toString','jsonl','push','map','substring','7807545hghKux','length','0\x20B','replace','entries','object','double','test','\x20rows\x20(','bool','json','141839uGppDu','join','toLowerCase','stdout','10DwfadZ','columns','min','pow','row','string','1124547ALwUbY','log','data','2rGigHU','forEach','floor','tsv','repeat','boolean','28DPjqFS'];a85_0x2ae2=function(){return _0x2e2bf8;};return a85_0x2ae2();}function formatValueForTSV(_0xaa016e){const _0x199c56=a85_0x1f21;if(_0xaa016e===null||_0xaa016e===undefined)return'';if(typeof _0xaa016e==='string')return _0xaa016e[_0x199c56(0x13b)](/\t/g,'\x5ct')[_0x199c56(0x13b)](/\n/g,'\x5cn');if(typeof _0xaa016e==='number'||typeof _0xaa016e===_0x199c56(0x121))return String(_0xaa016e);if(_0xaa016e instanceof Date)return _0xaa016e['toISOString']();if(typeof _0xaa016e===_0x199c56(0x13d))return JSON[_0x199c56(0x12b)](_0xaa016e);return String(_0xaa016e);}export function formatQueryResult(_0x499ac3,_0x528fdc){const _0x13bb9f=a85_0x1f21;switch(_0x528fdc){case'table':return formatAsTable(_0x499ac3);case _0x13bb9f(0x142):return formatAsJSON(_0x499ac3);case _0x13bb9f(0x134):return formatAsJSONL(_0x499ac3);case _0x13bb9f(0x11f):return formatAsTSV(_0x499ac3);default:return formatAsJSON(_0x499ac3);}}export function formatBytes(_0xd4b6e1){const _0x3911bf=a85_0x1f21;if(_0xd4b6e1===0x0)return _0x3911bf(0x13a);const _0x2a0f22=['B','KB','MB','GB','TB'],_0x2e5b4a=0x400,_0x372052=Math[_0x3911bf(0x11e)](Math[_0x3911bf(0x11a)](_0xd4b6e1)/Math[_0x3911bf(0x11a)](_0x2e5b4a)),_0x2118f1=_0xd4b6e1/Math[_0x3911bf(0x116)](_0x2e5b4a,_0x372052),_0x4645dd=_0x2118f1>=0xa?0x1:0x2;return _0x2118f1[_0x3911bf(0x125)](_0x4645dd)+'\x20'+_0x2a0f22[_0x372052];}export function formatRows(_0x10d38a){const _0x4a6fbe=a85_0x1f21;if(_0x10d38a==null)return'-';if(_0x10d38a===0x0)return'0';if(_0x10d38a<0x3e8)return _0x10d38a[_0x4a6fbe(0x133)]();const _0x1452cb=['','K','M','B','T'],_0x17375a=0x3e8,_0x5a99d0=Math['floor'](Math[_0x4a6fbe(0x11a)](_0x10d38a)/Math[_0x4a6fbe(0x11a)](_0x17375a)),_0xf07e1a=_0x10d38a/Math[_0x4a6fbe(0x116)](_0x17375a,_0x5a99d0),_0x9136ea=_0xf07e1a>=0xa?0x1:0x2;return''+_0xf07e1a[_0x4a6fbe(0x125)](_0x9136ea)+_0x1452cb[_0x5a99d0];}
1
+ (function(_0x389c18,_0x5cb324){const _0x2bb74a=a85_0x2f90,_0x27df42=_0x389c18();while(!![]){try{const _0x2ad98a=parseInt(_0x2bb74a(0x1a6))/0x1+parseInt(_0x2bb74a(0x191))/0x2+parseInt(_0x2bb74a(0x1b6))/0x3*(parseInt(_0x2bb74a(0x19d))/0x4)+-parseInt(_0x2bb74a(0x1ad))/0x5*(-parseInt(_0x2bb74a(0x196))/0x6)+parseInt(_0x2bb74a(0x1b0))/0x7*(-parseInt(_0x2bb74a(0x1bc))/0x8)+parseInt(_0x2bb74a(0x19f))/0x9+-parseInt(_0x2bb74a(0x1b1))/0xa*(parseInt(_0x2bb74a(0x1a4))/0xb);if(_0x2ad98a===_0x5cb324)break;else _0x27df42['push'](_0x27df42['shift']());}catch(_0x3fa201){_0x27df42['push'](_0x27df42['shift']());}}}(a85_0x2966,0x3f8e1));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x4b43a7=a85_0x2f90;return process['stdout'][_0x4b43a7(0x19b)]||Infinity;}export function formatAsTable(_0xbe4a88,_0x31a577=DEFAULT_MAX_DISPLAY_ROWS,_0x3b60ed=![],_0x352256={}){const _0x5a1c0a=a85_0x2f90;if(_0xbe4a88[_0x5a1c0a(0x1c5)]['length']===0x0)return _0x5a1c0a(0x1a2);const _0x88a09b=_0xbe4a88[_0x5a1c0a(0x19b)][_0x5a1c0a(0x1c6)](_0x27382f=>_0x27382f[_0x5a1c0a(0x1b5)]),_0x3b0419=_0xbe4a88[_0x5a1c0a(0x19b)][_0x5a1c0a(0x1c6)](_0x2271f4=>simplifyType(_0x2271f4[_0x5a1c0a(0x1a5)])),_0x261045=_0xbe4a88['data'][_0x5a1c0a(0x193)](0x0,_0x31a577),_0x3a0934=_0xbe4a88['data'][_0x5a1c0a(0x1c2)],_0x3e1d68=_0x3a0934>_0x31a577,_0x29d311=[],_0x11fef6=getTerminalWidth(),_0xb044af=_0x11fef6!==Infinity,_0x54bf22=0x32;let _0x160c0a=_0x88a09b[_0x5a1c0a(0x1c6)]((_0x24e307,_0x74f4af)=>{const _0x269bd8=_0x5a1c0a,_0x24df90=stringWidth(_0x3b0419[_0x74f4af]),_0x2800e4=Math['max'](..._0x261045[_0x269bd8(0x1c6)](_0x5c71e3=>{const _0x38bae6=_0x5c71e3[_0x24e307];return stringWidth(formatValue(_0x38bae6));})),_0x3f3c4e=Math[_0x269bd8(0x1be)](stringWidth(_0x24e307),_0x24df90,_0x2800e4);return _0x3b60ed?_0x3f3c4e:Math[_0x269bd8(0x1a9)](_0x3f3c4e,_0x54bf22);});if(_0xb044af&&!_0x3b60ed&&_0x88a09b[_0x5a1c0a(0x1c2)]>0x0){const _0x578c08=_0x30476d=>{let _0x1023b3=0x1;for(const _0x526540 of _0x30476d){_0x1023b3+=_0x526540+0x3;}return _0x1023b3+0x1;};let _0x345a18=_0x578c08(_0x160c0a);if(_0x345a18>_0x11fef6){const _0x35a60e=0x3;for(let _0x2f3015=_0x160c0a['length']-0x1;_0x2f3015>=0x0;_0x2f3015--){_0x345a18=_0x578c08(_0x160c0a);if(_0x345a18<=_0x11fef6)break;const _0x25fbde=_0x160c0a[_0x2f3015],_0x277c21=_0x345a18-_0x11fef6,_0x20f53c=_0x25fbde-_0x35a60e,_0x6223f8=Math['min'](_0x277c21,_0x20f53c);_0x6223f8>0x0&&(_0x160c0a[_0x2f3015]=_0x25fbde-_0x6223f8);}}}const _0x47aa74=_0x88a09b,_0x65c1fb=_0x3b0419,_0x1a2767=_0x160c0a,_0xbdf30c=_0x160c0a;_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('┌'+_0xbdf30c[_0x5a1c0a(0x1c6)](_0x366413=>'─'[_0x5a1c0a(0x1a7)](_0x366413+0x2))['join']('┬')+'┐',_0x352256));const _0x173457=_0x47aa74[_0x5a1c0a(0x1c6)]((_0x2aafc2,_0x19d49b)=>centerAlign(_0x2aafc2,_0x1a2767[_0x19d49b]));_0x29d311['push'](colorBorder('│',_0x352256)+'\x20'+_0x173457[_0x5a1c0a(0x1bb)]('\x20'+colorBorder('│',_0x352256)+'\x20')+'\x20'+colorBorder('│',_0x352256));const _0x56ee23=_0x65c1fb[_0x5a1c0a(0x1c6)]((_0x3b8832,_0x1b0f7c)=>colorType(centerAlign(_0x3b8832,_0x1a2767[_0x1b0f7c]),_0x352256));_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('│',_0x352256)+'\x20'+_0x56ee23[_0x5a1c0a(0x1bb)]('\x20'+colorBorder('│',_0x352256)+'\x20')+'\x20'+colorBorder('│',_0x352256)),_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('├'+_0xbdf30c[_0x5a1c0a(0x1c6)](_0x1ba2b5=>'─'[_0x5a1c0a(0x1a7)](_0x1ba2b5+0x2))[_0x5a1c0a(0x1bb)]('┼')+'┤',_0x352256));const _0x50f6b5=(_0x176dac,_0x57c636)=>{const _0x5129ba=_0x5a1c0a,_0x540d2b=stringWidth(_0x176dac);if(_0x540d2b<=_0x57c636)return _0x176dac;let _0x30a3ca=_0x176dac;while(stringWidth(_0x30a3ca+'…')>_0x57c636&&_0x30a3ca['length']>0x0){_0x30a3ca=_0x30a3ca[_0x5129ba(0x193)](0x0,-0x1);}return _0x30a3ca+'…';};_0x261045[_0x5a1c0a(0x190)](_0x121c5f=>{const _0x31d0db=_0x5a1c0a,_0x58c637=_0x88a09b['map']((_0x1359d5,_0x30783c)=>{const _0x259595=a85_0x2f90,_0x1c82b6=_0x121c5f[_0x1359d5],_0x38624f=formatValue(_0x1c82b6),_0x39da9c=_0x1a2767[_0x30783c],_0x164e13=_0x50f6b5(_0x38624f,_0x39da9c),_0x15a483=typeof _0x1c82b6===_0x259595(0x194)||typeof _0x1c82b6===_0x259595(0x197)&&/^-?\d+$/[_0x259595(0x1ba)](_0x1c82b6);return _0x15a483?padStart(_0x164e13,_0x39da9c):padEnd(_0x164e13,_0x39da9c);});_0x29d311[_0x31d0db(0x1c3)](colorBorder('│',_0x352256)+'\x20'+_0x58c637[_0x31d0db(0x1bb)]('\x20'+colorBorder('│',_0x352256)+'\x20')+'\x20'+colorBorder('│',_0x352256));});const _0x5f43b5=_0xbdf30c[_0x5a1c0a(0x1a0)]((_0x24af2e,_0x45fd75)=>_0x24af2e+_0x45fd75+0x3,-0x1);_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('├'+_0xbdf30c[_0x5a1c0a(0x1c6)](_0x374b8f=>'─'[_0x5a1c0a(0x1a7)](_0x374b8f+0x2))['join']('┴')+'┤',_0x352256));let _0x3f53ea;_0x3e1d68?_0x3f53ea=_0x3a0934+_0x5a1c0a(0x1c0)+_0x31a577+_0x5a1c0a(0x1b8):_0x3f53ea=_0x3a0934+_0x5a1c0a(0x199)+(_0x3a0934===0x1?'':'s');const _0x16d3c2=_0x3f53ea['padEnd'](_0x5f43b5-0x2);return _0x29d311[_0x5a1c0a(0x1c3)](colorBorder('│',_0x352256)+'\x20'+_0x16d3c2+'\x20'+colorBorder('│',_0x352256)),_0x29d311[_0x5a1c0a(0x1c3)](colorBorder('└'+'─'[_0x5a1c0a(0x1a7)](_0x5f43b5)+'┘',_0x352256)),_0x29d311[_0x5a1c0a(0x1bb)]('\x0a');}function simplifyType(_0x6b94b0){const _0x584868=a85_0x2f90,_0x39f705={'varchar':'string','bigint':'long','integer':'int','double':_0x584868(0x1bd),'boolean':_0x584868(0x1c4),'date':_0x584868(0x1ac),'timestamp':'timestamp','array':_0x584868(0x198),'map':_0x584868(0x1c6),'row':_0x584868(0x1a8)},_0x1130d0=_0x6b94b0['toLowerCase']();for(const [_0x454801,_0x5bc532]of Object['entries'](_0x39f705)){if(_0x1130d0[_0x584868(0x192)](_0x454801))return _0x5bc532;}return _0x6b94b0[_0x584868(0x1c2)]>0xa?_0x6b94b0[_0x584868(0x1a1)](0x0,0xa):_0x6b94b0;}export function formatAsJSON(_0x54bd39,_0x31c6c5={}){const _0x4239e7=a85_0x2f90;if(_0x54bd39[_0x4239e7(0x1c5)][_0x4239e7(0x1c2)]===0x0)return'[]';if(shouldUseColor(_0x31c6c5))return colorizeJSON(_0x54bd39[_0x4239e7(0x1c5)],_0x31c6c5);const _0x102ade=_0x54bd39[_0x4239e7(0x1c5)]['map'](_0x3d9e37=>'\x20\x20'+JSON[_0x4239e7(0x19c)](_0x3d9e37));return'[\x0a'+_0x102ade['join'](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x515de3,_0x15824c={}){const _0x3be6f6=a85_0x2f90;if(_0x515de3[_0x3be6f6(0x1c5)]['length']===0x0)return'';if(shouldUseColor(_0x15824c))return _0x515de3[_0x3be6f6(0x1c5)]['map'](_0x3f63f4=>colorizeJSONCompact(_0x3f63f4,_0x15824c))[_0x3be6f6(0x1bb)]('\x0a');return _0x515de3[_0x3be6f6(0x1c5)][_0x3be6f6(0x1c6)](_0x4546c4=>JSON['stringify'](_0x4546c4))[_0x3be6f6(0x1bb)]('\x0a');}export function formatAsTSV(_0x3ac93f){const _0x302a63=a85_0x2f90;if(_0x3ac93f[_0x302a63(0x1c5)][_0x302a63(0x1c2)]===0x0)return'';const _0x16ecda=[],_0x1781b4=_0x3ac93f[_0x302a63(0x19b)][_0x302a63(0x1c6)](_0x58620c=>_0x58620c[_0x302a63(0x1b5)]);return _0x16ecda[_0x302a63(0x1c3)](_0x1781b4[_0x302a63(0x1bb)]('\x09')),_0x3ac93f['data'][_0x302a63(0x190)](_0x33fcbf=>{const _0x1462fa=_0x302a63,_0x1ab61f=_0x1781b4[_0x1462fa(0x1c6)](_0x81e850=>{const _0x4cb84e=_0x33fcbf[_0x81e850];return formatValueForTSV(_0x4cb84e);});_0x16ecda['push'](_0x1ab61f[_0x1462fa(0x1bb)]('\x09'));}),_0x16ecda[_0x302a63(0x1bb)]('\x0a');}function a85_0x2966(){const _0x4d04d=['toString','name','167490VVuFDf','jsonl','\x20shown)','json','test','join','826912jCUNFD','double','max','true','\x20rows\x20(','floor','length','push','bool','data','map','forEach','802488ThigeJ','startsWith','slice','number','false','1885950HVXLhQ','string','array','\x20row','log','columns','stringify','4mGSAVy','tsv','886851JOUoLP','reduce','substring','No\x20rows\x20returned','object','2038993LtQfkT','type','92566XIGPDf','repeat','row','min','0\x20B','toFixed','date','5iMiBke','replace','toISOString','35aoCVgF','10TnzNDh','pow','boolean'];a85_0x2966=function(){return _0x4d04d;};return a85_0x2966();}function formatValue(_0xccf945){const _0x4fd248=a85_0x2f90;if(_0xccf945===null||_0xccf945===undefined)return'';if(typeof _0xccf945===_0x4fd248(0x197)){const _0x39faf3=_0xccf945[_0x4fd248(0x1ae)](/\n/g,'\x5cn')[_0x4fd248(0x1ae)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x39faf3;}if(typeof _0xccf945===_0x4fd248(0x194))return String(_0xccf945);if(typeof _0xccf945===_0x4fd248(0x1b3))return _0xccf945?_0x4fd248(0x1bf):_0x4fd248(0x195);if(_0xccf945 instanceof Date)return _0xccf945[_0x4fd248(0x1af)]();if(typeof _0xccf945===_0x4fd248(0x1a3))return JSON[_0x4fd248(0x19c)](_0xccf945);return String(_0xccf945);}function formatValueForTSV(_0x223b38){const _0x2c2cfe=a85_0x2f90;if(_0x223b38===null||_0x223b38===undefined)return'';if(typeof _0x223b38===_0x2c2cfe(0x197))return _0x223b38[_0x2c2cfe(0x1ae)](/\t/g,'\x5ct')[_0x2c2cfe(0x1ae)](/\n/g,'\x5cn');if(typeof _0x223b38===_0x2c2cfe(0x194)||typeof _0x223b38===_0x2c2cfe(0x1b3))return String(_0x223b38);if(_0x223b38 instanceof Date)return _0x223b38['toISOString']();if(typeof _0x223b38==='object')return JSON[_0x2c2cfe(0x19c)](_0x223b38);return String(_0x223b38);}export function formatQueryResult(_0x2f3fec,_0x30ff53){const _0x27bd63=a85_0x2f90;switch(_0x30ff53){case'table':return formatAsTable(_0x2f3fec);case _0x27bd63(0x1b9):return formatAsJSON(_0x2f3fec);case _0x27bd63(0x1b7):return formatAsJSONL(_0x2f3fec);case _0x27bd63(0x19e):return formatAsTSV(_0x2f3fec);default:return formatAsJSON(_0x2f3fec);}}export function formatBytes(_0x40808b){const _0x22023c=a85_0x2f90;if(_0x40808b===0x0)return _0x22023c(0x1aa);const _0x1bab01=['B','KB','MB','GB','TB'],_0x21e6df=0x400,_0x24b8e7=Math[_0x22023c(0x1c1)](Math[_0x22023c(0x19a)](_0x40808b)/Math[_0x22023c(0x19a)](_0x21e6df)),_0x279e8a=_0x40808b/Math['pow'](_0x21e6df,_0x24b8e7),_0x5670b2=_0x279e8a>=0xa?0x1:0x2;return _0x279e8a[_0x22023c(0x1ab)](_0x5670b2)+'\x20'+_0x1bab01[_0x24b8e7];}function a85_0x2f90(_0x57ef93,_0x313800){const _0x296612=a85_0x2966();return a85_0x2f90=function(_0x2f9016,_0x7fcf0c){_0x2f9016=_0x2f9016-0x190;let _0x240e4f=_0x296612[_0x2f9016];return _0x240e4f;},a85_0x2f90(_0x57ef93,_0x313800);}export function formatRows(_0x4a17a3){const _0xa8ef05=a85_0x2f90;if(_0x4a17a3==null)return'-';if(_0x4a17a3===0x0)return'0';if(_0x4a17a3<0x3e8)return _0x4a17a3[_0xa8ef05(0x1b4)]();const _0x1036a1=['','K','M','B','T'],_0x4b7d90=0x3e8,_0x42aa01=Math['floor'](Math[_0xa8ef05(0x19a)](_0x4a17a3)/Math[_0xa8ef05(0x19a)](_0x4b7d90)),_0x5f44fe=_0x4a17a3/Math[_0xa8ef05(0x1b2)](_0x4b7d90,_0x42aa01),_0x42f843=_0x5f44fe>=0xa?0x1:0x2;return''+_0x5f44fe[_0xa8ef05(0x1ab)](_0x42f843)+_0x1036a1[_0x42aa01];}
@@ -1 +1 @@
1
- (function(_0x32f243,_0x544d7a){const _0x5049b7=a86_0x4bd2,_0x38d15c=_0x32f243();while(!![]){try{const _0x5ea280=parseInt(_0x5049b7(0x1a0))/0x1*(parseInt(_0x5049b7(0x1a6))/0x2)+-parseInt(_0x5049b7(0x19d))/0x3*(parseInt(_0x5049b7(0x19f))/0x4)+parseInt(_0x5049b7(0x1af))/0x5*(parseInt(_0x5049b7(0x1ac))/0x6)+-parseInt(_0x5049b7(0x1b0))/0x7+parseInt(_0x5049b7(0x1a9))/0x8*(parseInt(_0x5049b7(0x19a))/0x9)+-parseInt(_0x5049b7(0x199))/0xa+-parseInt(_0x5049b7(0x1a7))/0xb*(-parseInt(_0x5049b7(0x197))/0xc);if(_0x5ea280===_0x544d7a)break;else _0x38d15c['push'](_0x38d15c['shift']());}catch(_0x4abdcd){_0x38d15c['push'](_0x38d15c['shift']());}}}(a86_0x2c4c,0xbf0a2));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a86_0x4bd2(_0x9f0556,_0x329231){const _0x2c4cd6=a86_0x2c4c();return a86_0x4bd2=function(_0x4bd25e,_0x36b0a2){_0x4bd25e=_0x4bd25e-0x196;let _0x90e865=_0x2c4cd6[_0x4bd25e];return _0x90e865;},a86_0x4bd2(_0x9f0556,_0x329231);}function a86_0x2c4c(){const _0x4f1934=['101409wuWbyk','Invalid\x20JSON\x20string:\x20','33344OefPzk','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','message','3900870bMiFEk','ENOENT','code','5cuituG','7495572UTsTBR','NOT_FOUND','1836GOcMYp','PERMISSION_DENIED','8508670arxWFM','189CfshwL','Invalid\x20JSON\x20in\x20file\x20\x27','Failed\x20to\x20load\x20JSON:\x20','3EXNNUd','Permission\x20denied\x20reading\x20file:\x20','1140832BZwduT','841189VgGBHz','parse','EACCES','File\x20not\x20found:\x20','INVALID_ARGUMENT','INTERNAL','2bQSNhw'];a86_0x2c4c=function(){return _0x4f1934;};return a86_0x2c4c();}export async function loadJSON(_0x38cc2e,_0x2b6d27){const _0x4997ca=a86_0x4bd2;try{if(_0x2b6d27){const _0x33038d=await readFile(_0x38cc2e,'utf-8');try{return JSON[_0x4997ca(0x1a1)](_0x33038d);}catch(_0x110999){throw new SDKError(ErrorCode[_0x4997ca(0x1a4)],_0x4997ca(0x19b)+_0x38cc2e+'\x27:\x20'+(_0x110999 instanceof Error?_0x110999[_0x4997ca(0x1ab)]:String(_0x110999)));}}else try{return JSON['parse'](_0x38cc2e);}catch(_0x39c64c){throw new SDKError(ErrorCode[_0x4997ca(0x1a4)],_0x4997ca(0x1a8)+(_0x39c64c instanceof Error?_0x39c64c['message']:String(_0x39c64c)));}}catch(_0x42c548){if(_0x42c548 instanceof SDKError)throw _0x42c548;if(_0x42c548 instanceof Error&&_0x4997ca(0x1ae)in _0x42c548){const _0x48283b=_0x42c548;if(_0x48283b[_0x4997ca(0x1ae)]===_0x4997ca(0x1ad))throw new SDKError(ErrorCode[_0x4997ca(0x196)],_0x4997ca(0x1a3)+_0x38cc2e);else{if(_0x48283b['code']===_0x4997ca(0x1a2))throw new SDKError(ErrorCode[_0x4997ca(0x198)],_0x4997ca(0x19e)+_0x38cc2e);}}throw new SDKError(ErrorCode[_0x4997ca(0x1a5)],_0x4997ca(0x19c)+(_0x42c548 instanceof Error?_0x42c548[_0x4997ca(0x1ab)]:String(_0x42c548)));}}export async function loadJSONFromOptions(_0x592671,_0x2b02ce){const _0x1db25e=a86_0x4bd2;if(_0x592671&&_0x2b02ce)throw new SDKError(ErrorCode[_0x1db25e(0x1a4)],_0x1db25e(0x1aa));if(_0x592671)return await loadJSON(_0x592671,![]);if(_0x2b02ce)return await loadJSON(_0x2b02ce,!![]);return undefined;}
1
+ function a86_0x47c8(){const _0x46f84a=['7343760WAjpiz','ENOENT','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','10KgUEzd','File\x20not\x20found:\x20','940toKePg','8622680jiDKsE','2LSOAnE','\x27:\x20','4150445xaQnES','761193rjEdac','NOT_FOUND','INVALID_ARGUMENT','Invalid\x20JSON\x20string:\x20','parse','utf-8','6ltrFHe','code','Permission\x20denied\x20reading\x20file:\x20','3565345DIYQDn','951662PQHlXk','4359hiyjKk','message','PERMISSION_DENIED'];a86_0x47c8=function(){return _0x46f84a;};return a86_0x47c8();}(function(_0x143f6a,_0x4c4b38){const _0x5a6748=a86_0x2090,_0x227a11=_0x143f6a();while(!![]){try{const _0x16f6a4=-parseInt(_0x5a6748(0x1e5))/0x1*(parseInt(_0x5a6748(0x1d8))/0x2)+-parseInt(_0x5a6748(0x1d9))/0x3*(-parseInt(_0x5a6748(0x1e3))/0x4)+parseInt(_0x5a6748(0x1e7))/0x5*(parseInt(_0x5a6748(0x1d4))/0x6)+parseInt(_0x5a6748(0x1d7))/0x7+-parseInt(_0x5a6748(0x1dc))/0x8+-parseInt(_0x5a6748(0x1e8))/0x9+parseInt(_0x5a6748(0x1e1))/0xa*(parseInt(_0x5a6748(0x1e4))/0xb);if(_0x16f6a4===_0x4c4b38)break;else _0x227a11['push'](_0x227a11['shift']());}catch(_0x22ecc3){_0x227a11['push'](_0x227a11['shift']());}}}(a86_0x47c8,0x7ca56));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a86_0x2090(_0x57f714,_0x448278){const _0x47c855=a86_0x47c8();return a86_0x2090=function(_0x209058,_0x397dad){_0x209058=_0x209058-0x1d0;let _0x201c00=_0x47c855[_0x209058];return _0x201c00;},a86_0x2090(_0x57f714,_0x448278);}export async function loadJSON(_0x23c968,_0x46c8a5){const _0x2ae553=a86_0x2090;try{if(_0x46c8a5){const _0x5b2744=await readFile(_0x23c968,_0x2ae553(0x1d3));try{return JSON['parse'](_0x5b2744);}catch(_0x190b18){throw new SDKError(ErrorCode[_0x2ae553(0x1d0)],_0x2ae553(0x1df)+_0x23c968+_0x2ae553(0x1e6)+(_0x190b18 instanceof Error?_0x190b18['message']:String(_0x190b18)));}}else try{return JSON[_0x2ae553(0x1d2)](_0x23c968);}catch(_0x497391){throw new SDKError(ErrorCode[_0x2ae553(0x1d0)],_0x2ae553(0x1d1)+(_0x497391 instanceof Error?_0x497391[_0x2ae553(0x1da)]:String(_0x497391)));}}catch(_0x46c324){if(_0x46c324 instanceof SDKError)throw _0x46c324;if(_0x46c324 instanceof Error&&'code'in _0x46c324){const _0x3beeef=_0x46c324;if(_0x3beeef[_0x2ae553(0x1d5)]===_0x2ae553(0x1dd))throw new SDKError(ErrorCode[_0x2ae553(0x1e9)],_0x2ae553(0x1e2)+_0x23c968);else{if(_0x3beeef[_0x2ae553(0x1d5)]==='EACCES')throw new SDKError(ErrorCode[_0x2ae553(0x1db)],_0x2ae553(0x1d6)+_0x23c968);}}throw new SDKError(ErrorCode['INTERNAL'],_0x2ae553(0x1de)+(_0x46c324 instanceof Error?_0x46c324['message']:String(_0x46c324)));}}export async function loadJSONFromOptions(_0x2f0c9e,_0x4445a2){const _0x522a01=a86_0x2090;if(_0x2f0c9e&&_0x4445a2)throw new SDKError(ErrorCode[_0x522a01(0x1d0)],_0x522a01(0x1e0));if(_0x2f0c9e)return await loadJSON(_0x2f0c9e,![]);if(_0x4445a2)return await loadJSON(_0x4445a2,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x5cc21d,_0x9d4fd6){const _0x49b0dd=a87_0x4424,_0x36405e=_0x5cc21d();while(!![]){try{const _0x48cf22=-parseInt(_0x49b0dd(0x1b4))/0x1+parseInt(_0x49b0dd(0x1b8))/0x2*(parseInt(_0x49b0dd(0x1ba))/0x3)+-parseInt(_0x49b0dd(0x1b5))/0x4*(parseInt(_0x49b0dd(0x1c2))/0x5)+-parseInt(_0x49b0dd(0x1bd))/0x6*(-parseInt(_0x49b0dd(0x1c4))/0x7)+-parseInt(_0x49b0dd(0x1b3))/0x8*(parseInt(_0x49b0dd(0x1b2))/0x9)+parseInt(_0x49b0dd(0x1c3))/0xa*(parseInt(_0x49b0dd(0x1bb))/0xb)+parseInt(_0x49b0dd(0x1b9))/0xc*(parseInt(_0x49b0dd(0x1bf))/0xd);if(_0x48cf22===_0x9d4fd6)break;else _0x36405e['push'](_0x36405e['shift']());}catch(_0x22f367){_0x36405e['push'](_0x36405e['shift']());}}}(a87_0x2d9b,0x5b55e));function a87_0x2d9b(){const _0x40a34c=['1446gacjrl','targetAgentId','69121eJEebQ','tools','attributes','5GhGiAq','10IhMEQe','16723cLGOwW','map','has','3205143yFpaTe','16siLlgp','82311udBYLy','1784428TIyvFt','get','targetKnowledgeBaseId','1120510IbESSD','504IJNKsu','3zNwEmh','2810104ipjPMm','1.0'];a87_0x2d9b=function(){return _0x40a34c;};return a87_0x2d9b();}export function canCreateAgent(_0x1e239b,_0x5c8357){const _0x525ff1=a87_0x4424;for(const _0x424a16 of _0x1e239b[_0x525ff1(0x1c1)][_0x525ff1(0x1c0)]){if(_0x424a16[_0x525ff1(0x1be)]&&!_0x5c8357[_0x525ff1(0x1c6)](_0x424a16[_0x525ff1(0x1be)]))return![];}return!![];}export function remapToolIds(_0x219584,_0x35f9fe,_0x378122){const _0x722ef9=a87_0x4424;return _0x219584[_0x722ef9(0x1c5)](_0x525837=>({..._0x525837,'targetKnowledgeBaseId':_0x525837[_0x722ef9(0x1b7)]?_0x35f9fe[_0x722ef9(0x1b6)](_0x525837['targetKnowledgeBaseId'])||_0x525837[_0x722ef9(0x1b7)]:undefined,'targetAgentId':_0x525837['targetAgentId']?_0x378122['get'](_0x525837[_0x722ef9(0x1be)])||_0x525837[_0x722ef9(0x1be)]:undefined}));}function a87_0x4424(_0x56d3b9,_0x146298){const _0x2d9b25=a87_0x2d9b();return a87_0x4424=function(_0x4424a1,_0x92061c){_0x4424a1=_0x4424a1-0x1b2;let _0x5bc72f=_0x2d9b25[_0x4424a1];return _0x5bc72f;},a87_0x4424(_0x56d3b9,_0x146298);}export function remapVariableIds(_0x6dad84,_0x5ea9fa){const _0x2c35cf=a87_0x4424;return _0x6dad84[_0x2c35cf(0x1c5)](_0x1ec616=>({..._0x1ec616,'targetKnowledgeBaseId':_0x5ea9fa['get'](_0x1ec616['targetKnowledgeBaseId'])||_0x1ec616[_0x2c35cf(0x1b7)]}));}export function isSupportedBackupVersion(_0x58fa9d){const _0x25df7a=a87_0x4424;return _0x58fa9d===_0x25df7a(0x1bc);}
1
+ (function(_0x16ee38,_0x1277ef){const _0x15172a=a87_0x5e7e,_0x4f81ff=_0x16ee38();while(!![]){try{const _0x43f348=-parseInt(_0x15172a(0x114))/0x1+-parseInt(_0x15172a(0x110))/0x2*(parseInt(_0x15172a(0x11b))/0x3)+-parseInt(_0x15172a(0x117))/0x4*(parseInt(_0x15172a(0x10e))/0x5)+-parseInt(_0x15172a(0x11e))/0x6+parseInt(_0x15172a(0x10f))/0x7+parseInt(_0x15172a(0x119))/0x8+parseInt(_0x15172a(0x118))/0x9*(parseInt(_0x15172a(0x113))/0xa);if(_0x43f348===_0x1277ef)break;else _0x4f81ff['push'](_0x4f81ff['shift']());}catch(_0x59e7d0){_0x4f81ff['push'](_0x4f81ff['shift']());}}}(a87_0x4110,0x52d72));export function canCreateAgent(_0x3670e2,_0x409d76){const _0x22264e=a87_0x5e7e;for(const _0xc4a01f of _0x3670e2[_0x22264e(0x11a)]['tools']){if(_0xc4a01f[_0x22264e(0x11c)]&&!_0x409d76[_0x22264e(0x116)](_0xc4a01f[_0x22264e(0x11c)]))return![];}return!![];}function a87_0x5e7e(_0x33663b,_0x2f7eaa){const _0x411026=a87_0x4110();return a87_0x5e7e=function(_0x5e7e48,_0x2f2b6e){_0x5e7e48=_0x5e7e48-0x10e;let _0x200d00=_0x411026[_0x5e7e48];return _0x200d00;},a87_0x5e7e(_0x33663b,_0x2f7eaa);}function a87_0x4110(){const _0x2cc68c=['1062939hldgxP','targetAgentId','map','1636728oTaDNu','992135vUuwYU','1205533KQdSiX','2uDTFNZ','targetKnowledgeBaseId','1.0','10iRvOeB','82569LisUAs','get','has','12KRVTiU','12602241yozMjO','574376HAujog','attributes'];a87_0x4110=function(){return _0x2cc68c;};return a87_0x4110();}export function remapToolIds(_0x1387a2,_0x1d3bc5,_0x1e92df){const _0x3b9e12=a87_0x5e7e;return _0x1387a2[_0x3b9e12(0x11d)](_0x4611b3=>({..._0x4611b3,'targetKnowledgeBaseId':_0x4611b3[_0x3b9e12(0x111)]?_0x1d3bc5[_0x3b9e12(0x115)](_0x4611b3[_0x3b9e12(0x111)])||_0x4611b3[_0x3b9e12(0x111)]:undefined,'targetAgentId':_0x4611b3['targetAgentId']?_0x1e92df[_0x3b9e12(0x115)](_0x4611b3[_0x3b9e12(0x11c)])||_0x4611b3['targetAgentId']:undefined}));}export function remapVariableIds(_0x39449d,_0x486924){const _0xbce2d9=a87_0x5e7e;return _0x39449d[_0xbce2d9(0x11d)](_0x5002d8=>({..._0x5002d8,'targetKnowledgeBaseId':_0x486924[_0xbce2d9(0x115)](_0x5002d8[_0xbce2d9(0x111)])||_0x5002d8[_0xbce2d9(0x111)]}));}export function isSupportedBackupVersion(_0x115587){const _0x24811a=a87_0x5e7e;return _0x115587===_0x24811a(0x112);}
@@ -1 +1 @@
1
- const a88_0x357afb=a88_0x4791;function a88_0x1563(){const _0x45d604=['236799dUnUAx','match','claude-4.5-sonnet','2840760hJAEvt','6qtjGwv','442475DwwikD','2116VQuiQC','4589809hOnCLK','toLowerCase','5589UNYCkE','2278090dkaVRz','185683KZCmfg','176ddBCYO','6LQhTlX','claude-4.5-haiku'];a88_0x1563=function(){return _0x45d604;};return a88_0x1563();}function a88_0x4791(_0x1b05a3,_0x1701f6){const _0x156374=a88_0x1563();return a88_0x4791=function(_0x4791b0,_0x32c698){_0x4791b0=_0x4791b0-0x18f;let _0x327cff=_0x156374[_0x4791b0];return _0x327cff;},a88_0x4791(_0x1b05a3,_0x1701f6);}(function(_0x44f61f,_0x2d3442){const _0x377302=a88_0x4791,_0x465a3f=_0x44f61f();while(!![]){try{const _0x1f5b27=parseInt(_0x377302(0x191))/0x1*(parseInt(_0x377302(0x199))/0x2)+parseInt(_0x377302(0x18f))/0x3*(parseInt(_0x377302(0x19b))/0x4)+-parseInt(_0x377302(0x198))/0x5+-parseInt(_0x377302(0x193))/0x6*(parseInt(_0x377302(0x19c))/0x7)+-parseInt(_0x377302(0x192))/0x8*(-parseInt(_0x377302(0x195))/0x9)+-parseInt(_0x377302(0x190))/0xa+-parseInt(_0x377302(0x19a))/0xb;if(_0x1f5b27===_0x2d3442)break;else _0x465a3f['push'](_0x465a3f['shift']());}catch(_0x26051a){_0x465a3f['push'](_0x465a3f['shift']());}}}(a88_0x1563,0x99b29));const MODEL_ALIASES={'haiku':a88_0x357afb(0x194),'sonnet':a88_0x357afb(0x197)};export function extractModelAlias(_0x5ab37b){const _0x3cdd93=a88_0x357afb,_0x103afc=_0x5ab37b[_0x3cdd93(0x196)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x103afc)return _0x103afc[0x1][_0x3cdd93(0x19d)]();return _0x5ab37b;}export function resolveModelAlias(_0x42d08f){return MODEL_ALIASES[_0x42d08f['toLowerCase']()]||_0x42d08f;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a88_0x23dbfb=a88_0x48bd;function a88_0x48bd(_0x1c89d2,_0x20d775){const _0xed981e=a88_0xed98();return a88_0x48bd=function(_0x48bda8,_0xa9fdf){_0x48bda8=_0x48bda8-0x6e;let _0x37d218=_0xed981e[_0x48bda8];return _0x37d218;},a88_0x48bd(_0x1c89d2,_0x20d775);}(function(_0x4e5082,_0x131d6e){const _0x4f3c5d=a88_0x48bd,_0x116454=_0x4e5082();while(!![]){try{const _0x1885c8=parseInt(_0x4f3c5d(0x77))/0x1+-parseInt(_0x4f3c5d(0x6f))/0x2*(parseInt(_0x4f3c5d(0x70))/0x3)+-parseInt(_0x4f3c5d(0x79))/0x4*(parseInt(_0x4f3c5d(0x78))/0x5)+-parseInt(_0x4f3c5d(0x75))/0x6*(-parseInt(_0x4f3c5d(0x71))/0x7)+parseInt(_0x4f3c5d(0x76))/0x8+-parseInt(_0x4f3c5d(0x74))/0x9+parseInt(_0x4f3c5d(0x6e))/0xa;if(_0x1885c8===_0x131d6e)break;else _0x116454['push'](_0x116454['shift']());}catch(_0x38e447){_0x116454['push'](_0x116454['shift']());}}}(a88_0xed98,0x8d28c));const MODEL_ALIASES={'haiku':a88_0x23dbfb(0x7b),'sonnet':a88_0x23dbfb(0x7a)};function a88_0xed98(){const _0x565f3a=['14951860yFuVRH','398QsSQYt','13383JVgVzF','21HHdMRN','toLowerCase','match','2482002lsuExj','230994BCzGab','2848928lFeqnv','9094ZYeRsx','9220ATvvAJ','508mRuWOZ','claude-4.5-sonnet','claude-4.5-haiku'];a88_0xed98=function(){return _0x565f3a;};return a88_0xed98();}export function extractModelAlias(_0x39d007){const _0x2e899a=a88_0x23dbfb,_0x383532=_0x39d007[_0x2e899a(0x73)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x383532)return _0x383532[0x1][_0x2e899a(0x72)]();return _0x39d007;}export function resolveModelAlias(_0x4d449a){const _0x4b7277=a88_0x23dbfb;return MODEL_ALIASES[_0x4d449a[_0x4b7277(0x72)]()]||_0x4d449a;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x2bb756,_0x15037f){const _0x10355a=a89_0x514f,_0x55cc63=_0x2bb756();while(!![]){try{const _0x546247=parseInt(_0x10355a(0x183))/0x1*(parseInt(_0x10355a(0x187))/0x2)+-parseInt(_0x10355a(0x17d))/0x3*(-parseInt(_0x10355a(0x184))/0x4)+parseInt(_0x10355a(0x18c))/0x5+-parseInt(_0x10355a(0x186))/0x6+parseInt(_0x10355a(0x17a))/0x7*(-parseInt(_0x10355a(0x193))/0x8)+-parseInt(_0x10355a(0x190))/0x9+parseInt(_0x10355a(0x17c))/0xa*(parseInt(_0x10355a(0x185))/0xb);if(_0x546247===_0x15037f)break;else _0x55cc63['push'](_0x55cc63['shift']());}catch(_0x4f7668){_0x55cc63['push'](_0x55cc63['shift']());}}}(a89_0x5d4d,0xbc8ae));function a89_0x514f(_0x2dfcf0,_0x2fe7e7){const _0x5d4d71=a89_0x5d4d();return a89_0x514f=function(_0x514f04,_0x31799c){_0x514f04=_0x514f04-0x179;let _0x11d5ad=_0x5d4d71[_0x514f04];return _0x11d5ad;},a89_0x514f(_0x2dfcf0,_0x2fe7e7);}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 a89_0x5d4d(){const _0x4d828d=['61340OaCLxN','Haiku\x204','4.5','Haiku\x204.5','4-5','1991085OoZEGf','opus','Sonnet\x204.5','default','9266499MzKayH','includes','en-US','504DWcxcH','sonnet','167496FhYHXa','toLowerCase','56320xxFnjh','57gYpPZl','round','haiku','toLocaleString','Sonnet\x204','Opus\x204','4ZKQXYw','29584KejarP','8151qfemBc','9152328SlpkkA'];a89_0x5d4d=function(){return _0x4d828d;};return a89_0x5d4d();}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x50beeb){const _0x4f5b0b=a89_0x514f,_0x1d0c8e=_0x50beeb[_0x4f5b0b(0x17b)]();if(MODEL_FACTORS[_0x1d0c8e])return MODEL_FACTORS[_0x1d0c8e];if(_0x1d0c8e[_0x4f5b0b(0x191)](_0x4f5b0b(0x179)))return MODEL_FACTORS[_0x4f5b0b(0x179)];if(_0x1d0c8e[_0x4f5b0b(0x191)](_0x4f5b0b(0x17f)))return MODEL_FACTORS[_0x4f5b0b(0x17f)];if(_0x1d0c8e[_0x4f5b0b(0x191)](_0x4f5b0b(0x18d)))return MODEL_FACTORS[_0x4f5b0b(0x18d)];return MODEL_FACTORS[_0x4f5b0b(0x179)];}export function getContextLimit(_0x39425e){const _0x3ce5b4=a89_0x514f,_0x43ca52=_0x39425e[_0x3ce5b4(0x17b)]();if(_0x43ca52[_0x3ce5b4(0x191)](_0x3ce5b4(0x179)))return CONTEXT_LIMITS[_0x3ce5b4(0x179)];if(_0x43ca52['includes'](_0x3ce5b4(0x17f)))return CONTEXT_LIMITS['haiku'];if(_0x43ca52['includes']('opus'))return CONTEXT_LIMITS[_0x3ce5b4(0x18d)];return CONTEXT_LIMITS[_0x3ce5b4(0x18f)];}export function calculateChatUnit(_0x35acdd,_0x4e06d4,_0x3367da){return(_0x35acdd+_0x4e06d4)/0x1388*_0x3367da;}export function calculateCredits(_0x441a0a){return _0x441a0a/0x2904;}export function getModelDisplayName(_0x42dc01){const _0x1171de=a89_0x514f,_0x3610fc=_0x42dc01[_0x1171de(0x17b)]();if(_0x3610fc['includes']('sonnet')){if(_0x3610fc[_0x1171de(0x191)](_0x1171de(0x18b))||_0x3610fc[_0x1171de(0x191)](_0x1171de(0x189)))return _0x1171de(0x18e);return _0x1171de(0x181);}if(_0x3610fc[_0x1171de(0x191)]('haiku')){if(_0x3610fc['includes'](_0x1171de(0x18b))||_0x3610fc[_0x1171de(0x191)](_0x1171de(0x189)))return _0x1171de(0x18a);return _0x1171de(0x188);}if(_0x3610fc[_0x1171de(0x191)](_0x1171de(0x18d))){if(_0x3610fc[_0x1171de(0x191)]('4-5')||_0x3610fc[_0x1171de(0x191)]('4.5'))return'Opus\x204.5';return _0x1171de(0x182);}return'Claude';}export function formatTokenCount(_0x1373da){const _0x11cc4b=a89_0x514f;return _0x1373da[_0x11cc4b(0x180)](_0x11cc4b(0x192));}export function calculateContextPercentage(_0xb1509d,_0x38ffac){const _0x1dee8c=a89_0x514f,_0x1902be=getContextLimit(_0x38ffac);return Math[_0x1dee8c(0x17e)](_0xb1509d/_0x1902be*0x64);}
1
+ (function(_0x20154c,_0x3d7c0b){const _0x570d38=a89_0x4de7,_0x31801f=_0x20154c();while(!![]){try{const _0x53114f=parseInt(_0x570d38(0x16e))/0x1*(parseInt(_0x570d38(0x160))/0x2)+parseInt(_0x570d38(0x167))/0x3*(-parseInt(_0x570d38(0x176))/0x4)+parseInt(_0x570d38(0x171))/0x5+-parseInt(_0x570d38(0x170))/0x6+parseInt(_0x570d38(0x168))/0x7*(parseInt(_0x570d38(0x164))/0x8)+parseInt(_0x570d38(0x16a))/0x9+parseInt(_0x570d38(0x163))/0xa;if(_0x53114f===_0x3d7c0b)break;else _0x31801f['push'](_0x31801f['shift']());}catch(_0x160b82){_0x31801f['push'](_0x31801f['shift']());}}}(a89_0x1139,0xe92cd));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 a89_0x4de7(_0x356be2,_0x1f5e32){const _0x113921=a89_0x1139();return a89_0x4de7=function(_0x4de72e,_0x518e50){_0x4de72e=_0x4de72e-0x15e;let _0x427c86=_0x113921[_0x4de72e];return _0x427c86;},a89_0x4de7(_0x356be2,_0x1f5e32);}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x1dc585){const _0x469b98=a89_0x4de7,_0x19ff98=_0x1dc585['toLowerCase']();if(MODEL_FACTORS[_0x19ff98])return MODEL_FACTORS[_0x19ff98];if(_0x19ff98[_0x469b98(0x165)](_0x469b98(0x16b)))return MODEL_FACTORS[_0x469b98(0x16b)];if(_0x19ff98[_0x469b98(0x165)](_0x469b98(0x16d)))return MODEL_FACTORS[_0x469b98(0x16d)];if(_0x19ff98[_0x469b98(0x165)](_0x469b98(0x15e)))return MODEL_FACTORS[_0x469b98(0x15e)];return MODEL_FACTORS[_0x469b98(0x16b)];}export function getContextLimit(_0xaff797){const _0x24ff66=a89_0x4de7,_0x265f76=_0xaff797['toLowerCase']();if(_0x265f76[_0x24ff66(0x165)](_0x24ff66(0x16b)))return CONTEXT_LIMITS['sonnet'];if(_0x265f76[_0x24ff66(0x165)](_0x24ff66(0x16d)))return CONTEXT_LIMITS[_0x24ff66(0x16d)];if(_0x265f76[_0x24ff66(0x165)](_0x24ff66(0x15e)))return CONTEXT_LIMITS[_0x24ff66(0x15e)];return CONTEXT_LIMITS[_0x24ff66(0x174)];}function a89_0x1139(){const _0x124baa=['sonnet','Sonnet\x204.5','haiku','198802rYAvkl','toLowerCase','7971450CSJqhI','2742300CmLpqu','Sonnet\x204','Haiku\x204','default','toLocaleString','934220KcqIgd','opus','4.5','6hEZHne','en-US','4-5','16048820vAjBzA','22840EjlcSb','includes','Haiku\x204.5','24vQvUeJ','1260cfXyTT','Claude','7996068tQicoH'];a89_0x1139=function(){return _0x124baa;};return a89_0x1139();}export function calculateChatUnit(_0x38e2fb,_0x12e758,_0x1923c0){return(_0x38e2fb+_0x12e758)/0x1388*_0x1923c0;}export function calculateCredits(_0x398581){return _0x398581/0x2904;}export function getModelDisplayName(_0x3f8462){const _0x5b3182=a89_0x4de7,_0x1096e9=_0x3f8462[_0x5b3182(0x16f)]();if(_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x16b))){if(_0x1096e9['includes'](_0x5b3182(0x162))||_0x1096e9[_0x5b3182(0x165)]('4.5'))return _0x5b3182(0x16c);return _0x5b3182(0x172);}if(_0x1096e9['includes']('haiku')){if(_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x162))||_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x15f)))return _0x5b3182(0x166);return _0x5b3182(0x173);}if(_0x1096e9[_0x5b3182(0x165)]('opus')){if(_0x1096e9[_0x5b3182(0x165)](_0x5b3182(0x162))||_0x1096e9['includes'](_0x5b3182(0x15f)))return'Opus\x204.5';return'Opus\x204';}return _0x5b3182(0x169);}export function formatTokenCount(_0x5106a2){const _0xe2ea1c=a89_0x4de7;return _0x5106a2[_0xe2ea1c(0x175)](_0xe2ea1c(0x161));}export function calculateContextPercentage(_0x46b1ff,_0x4a015a){const _0x23e922=getContextLimit(_0x4a015a);return Math['round'](_0x46b1ff/_0x23e922*0x64);}
@@ -1 +1 @@
1
- (function(_0x43cb55,_0x21f523){const _0x17650e=a90_0x4f20,_0x4aa8b3=_0x43cb55();while(!![]){try{const _0x5b41f2=-parseInt(_0x17650e(0x1a3))/0x1*(parseInt(_0x17650e(0x19b))/0x2)+parseInt(_0x17650e(0x19a))/0x3+parseInt(_0x17650e(0x19e))/0x4+parseInt(_0x17650e(0x1a1))/0x5*(parseInt(_0x17650e(0x1a2))/0x6)+parseInt(_0x17650e(0x197))/0x7+parseInt(_0x17650e(0x198))/0x8+-parseInt(_0x17650e(0x194))/0x9*(parseInt(_0x17650e(0x19d))/0xa);if(_0x5b41f2===_0x21f523)break;else _0x4aa8b3['push'](_0x4aa8b3['shift']());}catch(_0x96c513){_0x4aa8b3['push'](_0x4aa8b3['shift']());}}}(a90_0x2af6,0x5be1f));export function validateLimitOption(_0x2de550){const _0x35df48=a90_0x4f20;if(!Number['isInteger'](_0x2de550))return{'isValid':![],'error':_0x35df48(0x199)+_0x2de550+_0x35df48(0x193)};if(_0x2de550<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2de550+_0x35df48(0x195)};return{'isValid':!![],'value':_0x2de550};}function a90_0x4f20(_0x11fca1,_0x2724ae){const _0x2af6a0=a90_0x2af6();return a90_0x4f20=function(_0x4f209d,_0x9945b){_0x4f209d=_0x4f209d-0x193;let _0x170bc4=_0x2af6a0[_0x4f209d];return _0x170bc4;},a90_0x4f20(_0x11fca1,_0x2724ae);}export function validateTimeoutOption(_0xb70ae2,_0x2b2af6=0x1e){const _0x1767ac=a90_0x4f20;if(_0xb70ae2===undefined)return{'isValid':!![],'value':_0x2b2af6};const _0x1129a8=typeof _0xb70ae2===_0x1767ac(0x196)?_0xb70ae2:parseFloat(_0xb70ae2);if(isNaN(_0x1129a8))return{'isValid':![],'error':_0x1767ac(0x19c)+_0xb70ae2+_0x1767ac(0x1a0)};if(_0x1129a8<=0x0)return{'isValid':![],'error':_0x1767ac(0x19c)+_0x1129a8+_0x1767ac(0x19f)};return{'isValid':!![],'value':_0x1129a8};}function a90_0x2af6(){const _0x8643fb=['.\x20Must\x20be\x20a\x20number.','362125rQjlpF','6aHqBUj','6uFjXXi','.\x20Must\x20be\x20an\x20integer.','9ksWWsj','.\x20Must\x20be\x20a\x20positive\x20integer.','number','1065351HBjqgZ','1795128pyJafL','Invalid\x20limit\x20value:\x20','1807884JIrFOe','23238OvMAeI','Invalid\x20timeout\x20value:\x20','9704410vtgcka','1459476cusXZN','.\x20Must\x20be\x20a\x20positive\x20number.'];a90_0x2af6=function(){return _0x8643fb;};return a90_0x2af6();}
1
+ function a90_0x2088(){const _0x64be53=['number','328782OmpGAf','.\x20Must\x20be\x20a\x20positive\x20number.','864505xeOyqK','1994536RguoZb','324720zYGQQO','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','2uCAJAg','.\x20Must\x20be\x20a\x20number.','8fqFGYA','Invalid\x20timeout\x20value:\x20','724690KljZjB','isInteger','14mCHsGf','2386464zUWFSW','5970EVCPfw','.\x20Must\x20be\x20a\x20positive\x20integer.','33ZivBOK'];a90_0x2088=function(){return _0x64be53;};return a90_0x2088();}function a90_0xee5c(_0x493616,_0x269e7c){const _0x208832=a90_0x2088();return a90_0xee5c=function(_0xee5c2e,_0x10f8c7){_0xee5c2e=_0xee5c2e-0x19b;let _0x4c30d8=_0x208832[_0xee5c2e];return _0x4c30d8;},a90_0xee5c(_0x493616,_0x269e7c);}(function(_0x269238,_0x3752d4){const _0x21a236=a90_0xee5c,_0x16042f=_0x269238();while(!![]){try{const _0x2f78d0=parseInt(_0x21a236(0x1ac))/0x1*(parseInt(_0x21a236(0x1a1))/0x2)+parseInt(_0x21a236(0x1a5))/0x3+parseInt(_0x21a236(0x19b))/0x4*(parseInt(_0x21a236(0x1a7))/0x5)+-parseInt(_0x21a236(0x1a0))/0x6+-parseInt(_0x21a236(0x19f))/0x7*(-parseInt(_0x21a236(0x1a8))/0x8)+-parseInt(_0x21a236(0x1a9))/0x9+-parseInt(_0x21a236(0x19d))/0xa*(parseInt(_0x21a236(0x1a3))/0xb);if(_0x2f78d0===_0x3752d4)break;else _0x16042f['push'](_0x16042f['shift']());}catch(_0x4a37db){_0x16042f['push'](_0x16042f['shift']());}}}(a90_0x2088,0x4b621));export function validateLimitOption(_0x1237c4){const _0x341a54=a90_0xee5c;if(!Number[_0x341a54(0x19e)](_0x1237c4))return{'isValid':![],'error':_0x341a54(0x1ab)+_0x1237c4+_0x341a54(0x1aa)};if(_0x1237c4<=0x0)return{'isValid':![],'error':_0x341a54(0x1ab)+_0x1237c4+_0x341a54(0x1a2)};return{'isValid':!![],'value':_0x1237c4};}export function validateTimeoutOption(_0x5c70ec,_0x4d4ac8=0x1e){const _0x3d4427=a90_0xee5c;if(_0x5c70ec===undefined)return{'isValid':!![],'value':_0x4d4ac8};const _0x21a607=typeof _0x5c70ec===_0x3d4427(0x1a4)?_0x5c70ec:parseFloat(_0x5c70ec);if(isNaN(_0x21a607))return{'isValid':![],'error':_0x3d4427(0x19c)+_0x5c70ec+_0x3d4427(0x1ad)};if(_0x21a607<=0x0)return{'isValid':![],'error':_0x3d4427(0x19c)+_0x21a607+_0x3d4427(0x1a6)};return{'isValid':!![],'value':_0x21a607};}
@@ -1 +1 @@
1
- (function(_0x186560,_0x309b8c){const _0x27d298=a91_0x3158,_0x232d12=_0x186560();while(!![]){try{const _0x5cec6b=-parseInt(_0x27d298(0xc9))/0x1*(parseInt(_0x27d298(0xc6))/0x2)+parseInt(_0x27d298(0xcd))/0x3+-parseInt(_0x27d298(0xc3))/0x4*(parseInt(_0x27d298(0xc0))/0x5)+parseInt(_0x27d298(0xd0))/0x6+-parseInt(_0x27d298(0xce))/0x7+-parseInt(_0x27d298(0xc5))/0x8*(-parseInt(_0x27d298(0xc8))/0x9)+parseInt(_0x27d298(0xc4))/0xa*(parseInt(_0x27d298(0xc7))/0xb);if(_0x5cec6b===_0x309b8c)break;else _0x232d12['push'](_0x232d12['shift']());}catch(_0x5e9a41){_0x232d12['push'](_0x232d12['shift']());}}}(a91_0xaf38,0xa7273));function a91_0xaf38(){const _0x2e1677=['code','once','1178433zSJKjK','9122638ZhMHxe','listening','4355970IDVrqP','50430fFmpPK','No\x20available\x20port\x20found\x20between\x20','listen','428YsuqGI','20780qqWZQO','8qeXpdf','736456pjnicq','6017WEzoeJ','10618659oVKkUz','1vFJoik','error'];a91_0xaf38=function(){return _0x2e1677;};return a91_0xaf38();}import{createServer}from'node:net';export async function isPortAvailable(_0xd85b5e){return new Promise(_0x1909e3=>{const _0x52b961=a91_0x3158,_0x50c39c=createServer();_0x50c39c[_0x52b961(0xcc)](_0x52b961(0xca),_0x125e5a=>{const _0x344134=_0x52b961;_0x125e5a[_0x344134(0xcb)]==='EADDRINUSE'?_0x1909e3(![]):_0x1909e3(![]);}),_0x50c39c[_0x52b961(0xcc)](_0x52b961(0xcf),()=>{_0x50c39c['close'](),_0x1909e3(!![]);}),_0x50c39c[_0x52b961(0xc2)](_0xd85b5e,'0.0.0.0');});}function a91_0x3158(_0xfda1ef,_0xe2be44){const _0xaf3873=a91_0xaf38();return a91_0x3158=function(_0x315802,_0x3959e6){_0x315802=_0x315802-0xc0;let _0x4e2b8c=_0xaf3873[_0x315802];return _0x4e2b8c;},a91_0x3158(_0xfda1ef,_0xe2be44);}export async function findAvailablePort(_0x90cb09=0xfa0,_0x2ba5b3=0x64){const _0x2cbf15=a91_0x3158;for(let _0x57152d=0x0;_0x57152d<_0x2ba5b3;_0x57152d++){const _0x1a7cd6=_0x90cb09+_0x57152d;if(await isPortAvailable(_0x1a7cd6))return _0x1a7cd6;}throw new Error(_0x2cbf15(0xc1)+_0x90cb09+'\x20and\x20'+(_0x90cb09+_0x2ba5b3-0x1));}
1
+ (function(_0x4757bf,_0x4c39f6){const _0x1af5d1=a91_0xda0e,_0x16b317=_0x4757bf();while(!![]){try{const _0x491959=-parseInt(_0x1af5d1(0x1cb))/0x1*(parseInt(_0x1af5d1(0x1ca))/0x2)+parseInt(_0x1af5d1(0x1cc))/0x3*(-parseInt(_0x1af5d1(0x1cf))/0x4)+parseInt(_0x1af5d1(0x1cd))/0x5+parseInt(_0x1af5d1(0x1d6))/0x6+parseInt(_0x1af5d1(0x1d1))/0x7*(-parseInt(_0x1af5d1(0x1da))/0x8)+parseInt(_0x1af5d1(0x1d0))/0x9*(parseInt(_0x1af5d1(0x1d9))/0xa)+parseInt(_0x1af5d1(0x1d4))/0xb;if(_0x491959===_0x4c39f6)break;else _0x16b317['push'](_0x16b317['shift']());}catch(_0x1964bc){_0x16b317['push'](_0x16b317['shift']());}}}(a91_0x2a5e,0x583f7));import{createServer}from'node:net';export async function isPortAvailable(_0xd31087){return new Promise(_0x100d28=>{const _0x293c61=a91_0xda0e,_0x515338=createServer();_0x515338[_0x293c61(0x1c9)](_0x293c61(0x1d8),_0x485da3=>{const _0x29b4ac=_0x293c61;_0x485da3['code']===_0x29b4ac(0x1db)?_0x100d28(![]):_0x100d28(![]);}),_0x515338['once'](_0x293c61(0x1d2),()=>{const _0xaba8f1=_0x293c61;_0x515338[_0xaba8f1(0x1ce)](),_0x100d28(!![]);}),_0x515338[_0x293c61(0x1d3)](_0xd31087,_0x293c61(0x1d7));});}export async function findAvailablePort(_0xcf9018=0xfa0,_0x5eb060=0x64){const _0x5e2fe1=a91_0xda0e;for(let _0xb19034=0x0;_0xb19034<_0x5eb060;_0xb19034++){const _0x3f5f41=_0xcf9018+_0xb19034;if(await isPortAvailable(_0x3f5f41))return _0x3f5f41;}throw new Error(_0x5e2fe1(0x1d5)+_0xcf9018+'\x20and\x20'+(_0xcf9018+_0x5eb060-0x1));}function a91_0xda0e(_0x833030,_0x34ffe0){const _0x2a5e2b=a91_0x2a5e();return a91_0xda0e=function(_0xda0e22,_0x5ca7dd){_0xda0e22=_0xda0e22-0x1c9;let _0x40e3e1=_0x2a5e2b[_0xda0e22];return _0x40e3e1;},a91_0xda0e(_0x833030,_0x34ffe0);}function a91_0x2a5e(){const _0x286524=['10pjCEaO','232RmuPRn','EADDRINUSE','once','7946WLIuEW','16gBmftZ','6oRIIfa','2579390sNMcBN','close','1154852LodhFp','1893492zzPDXf','67739lgaWqK','listening','listen','308759YfZYXW','No\x20available\x20port\x20found\x20between\x20','3172530LpjRAY','0.0.0.0','error'];a91_0x2a5e=function(){return _0x286524;};return a91_0x2a5e();}
@@ -1 +1 @@
1
- const a92_0x32f252=a92_0x1369;(function(_0x6a0e4b,_0x26fbeb){const _0x245d4b=a92_0x1369,_0x384ee6=_0x6a0e4b();while(!![]){try{const _0x182de7=-parseInt(_0x245d4b(0x18a))/0x1*(parseInt(_0x245d4b(0x178))/0x2)+-parseInt(_0x245d4b(0x180))/0x3+-parseInt(_0x245d4b(0x19f))/0x4*(parseInt(_0x245d4b(0x1a1))/0x5)+parseInt(_0x245d4b(0x1a0))/0x6+-parseInt(_0x245d4b(0x197))/0x7+parseInt(_0x245d4b(0x18b))/0x8+parseInt(_0x245d4b(0x192))/0x9;if(_0x182de7===_0x26fbeb)break;else _0x384ee6['push'](_0x384ee6['shift']());}catch(_0x358138){_0x384ee6['push'](_0x384ee6['shift']());}}}(a92_0x4f76,0x8cbaa));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x32f252(0x191),a92_0x32f252(0x174),'sh',a92_0x32f252(0x18f),a92_0x32f252(0x186),a92_0x32f252(0x198),a92_0x32f252(0x19e),a92_0x32f252(0x187),'pwsh',a92_0x32f252(0x17a),'nu',a92_0x32f252(0x196),a92_0x32f252(0x193),a92_0x32f252(0x182)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a92_0x32f252(0x173),a92_0x32f252(0x175),a92_0x32f252(0x188)]);function getProcessInfoWindows(_0x142e5c){const _0x5551b5=a92_0x32f252;try{const _0x286940=execSync(_0x5551b5(0x179)+_0x142e5c+_0x5551b5(0x18e),{'encoding':'utf-8','windowsHide':!![]})[_0x5551b5(0x199)](),_0x24b3b6=_0x286940['split']('\x0a')[_0x5551b5(0x184)](_0x2382ab=>_0x2382ab[_0x5551b5(0x199)]());if(_0x24b3b6[_0x5551b5(0x17c)]<0x2)return null;const _0x20dde7=_0x24b3b6[_0x24b3b6[_0x5551b5(0x17c)]-0x1]['split'](',');if(_0x20dde7[_0x5551b5(0x17c)]<0x3)return null;const _0x1b620c=_0x20dde7[0x1]?.[_0x5551b5(0x199)]()||'',_0x2cb076=parseInt(_0x20dde7[0x2]?.[_0x5551b5(0x199)]()||'0',0xa);if(isNaN(_0x2cb076)||!_0x1b620c)return null;return{'pid':_0x142e5c,'ppid':_0x2cb076,'comm':_0x1b620c[_0x5551b5(0x189)](/\.exe$/i,'')};}catch(_0x2979a8){return process[_0x5551b5(0x185)]['DEBUG']&&console[_0x5551b5(0x181)]('Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20'+_0x142e5c+_0x5551b5(0x19d),_0x2979a8),null;}}function getProcessInfoPosix(_0x31dfce){const _0x39252b=a92_0x32f252;try{const _0x177c89=execSync(_0x39252b(0x17f)+_0x31dfce+_0x39252b(0x19c),{'encoding':'utf-8'})[_0x39252b(0x199)](),[_0x3a0f39,..._0x388ff2]=_0x177c89['split'](/\s+/),_0x55d2fd=parseInt(_0x3a0f39,0xa),_0x29f4d3=_0x388ff2['join']('\x20');if(isNaN(_0x55d2fd))return null;return{'pid':_0x31dfce,'ppid':_0x55d2fd,'comm':_0x29f4d3};}catch(_0x45b234){return process['env']['DEBUG']&&console[_0x39252b(0x181)](_0x39252b(0x17d)+_0x31dfce+'\x20on\x20POSIX:',_0x45b234),null;}}function getProcessInfo(_0x1a84d2){const _0x477eab=a92_0x32f252;if(process[_0x477eab(0x195)]===_0x477eab(0x183))return getProcessInfoWindows(_0x1a84d2);return getProcessInfoPosix(_0x1a84d2);}function getBasename(_0x23d843){const _0x4706c6=a92_0x32f252;return _0x23d843[_0x4706c6(0x189)](/^-/,'')['split']('/')[_0x4706c6(0x19b)]()?.['toLowerCase']()||'';}function isShell(_0x4f9640){const _0x24af2b=a92_0x32f252;return SHELL_NAMES[_0x24af2b(0x17b)](getBasename(_0x4f9640));}function a92_0x1369(_0x4180a9,_0x3fcaa9){const _0x4f7636=a92_0x4f76();return a92_0x1369=function(_0x1369be,_0x2b389c){_0x1369be=_0x1369be-0x172;let _0x5b3ca7=_0x4f7636[_0x1369be];return _0x5b3ca7;},a92_0x1369(_0x4180a9,_0x3fcaa9);}function isEphemeralShellSpawner(_0x5219f2){return EPHEMERAL_SHELL_SPAWNERS['has'](getBasename(_0x5219f2));}function a92_0x4f76(){const _0xce5d88=['filter','env','ksh','dash','cursor','replace','1174HtnyhL','7109944MDnHEt','comm',')\x20spawned\x20by\x20','\x20get\x20ParentProcessId,Name\x20/format:csv','fish',',\x20using\x20fallback','bash','2823363AyTAoh','elvish','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','platform','ion','826651BAcECv','tcsh','trim','ppid','pop','\x20-o\x20ppid=,comm=','\x20on\x20Windows:','csh','572444azVOYP','6087390hRFmJO','5fIcnno','pid','claude','zsh','code','DEBUG','Found\x20ephemeral\x20shell\x20','1514TthfHM','wmic\x20process\x20where\x20ProcessId=','powershell','has','length','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','ps\x20-p\x20','1472001oJlRSO','error','xonsh','win32'];a92_0x4f76=function(){return _0xce5d88;};return a92_0x4f76();}let cachedShellPID;function findShellPID(){const _0x419914=a92_0x32f252;let _0xc7b5ba=process['ppid'];const _0x1d59e2=0xa;let _0x11f22a=0x0;while(_0x11f22a<_0x1d59e2){const _0x2eb523=getProcessInfo(_0xc7b5ba);if(!_0x2eb523){process[_0x419914(0x185)]['DEBUG']&&console[_0x419914(0x181)](_0x419914(0x194)+_0xc7b5ba+_0x419914(0x190));break;}if(isShell(_0x2eb523[_0x419914(0x18c)])){const _0x7ec7a2=getProcessInfo(_0x2eb523[_0x419914(0x19a)]);if(_0x7ec7a2&&isEphemeralShellSpawner(_0x7ec7a2[_0x419914(0x18c)])){process['env'][_0x419914(0x176)]&&console[_0x419914(0x181)](_0x419914(0x177)+_0x2eb523[_0x419914(0x172)]+'\x20('+_0x2eb523[_0x419914(0x18c)]+_0x419914(0x18d)+_0x7ec7a2[_0x419914(0x18c)]+',\x20continuing\x20up');_0xc7b5ba=_0x2eb523['ppid'],_0x11f22a++;continue;}return _0x2eb523[_0x419914(0x172)];}if(_0x2eb523[_0x419914(0x19a)]===0x0||_0x2eb523[_0x419914(0x19a)]===0x1){if(isShell(_0x2eb523[_0x419914(0x18c)]))return _0x2eb523['pid'];break;}_0xc7b5ba=_0x2eb523[_0x419914(0x19a)],_0x11f22a++;}return process[_0x419914(0x185)]['DEBUG']&&console[_0x419914(0x181)](_0x419914(0x17e)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x165e38){try{return process['kill'](_0x165e38,0x0),!![];}catch{return![];}}
1
+ const a92_0x23af8b=a92_0x50b6;(function(_0x4d419f,_0x361732){const _0x1b11f5=a92_0x50b6,_0x13b6a9=_0x4d419f();while(!![]){try{const _0x3833ce=-parseInt(_0x1b11f5(0x1d1))/0x1*(-parseInt(_0x1b11f5(0x1e6))/0x2)+-parseInt(_0x1b11f5(0x1c5))/0x3*(parseInt(_0x1b11f5(0x1ba))/0x4)+-parseInt(_0x1b11f5(0x1ce))/0x5*(-parseInt(_0x1b11f5(0x1b8))/0x6)+-parseInt(_0x1b11f5(0x1bb))/0x7*(parseInt(_0x1b11f5(0x1d4))/0x8)+parseInt(_0x1b11f5(0x1d6))/0x9*(parseInt(_0x1b11f5(0x1d8))/0xa)+parseInt(_0x1b11f5(0x1bf))/0xb*(-parseInt(_0x1b11f5(0x1c7))/0xc)+parseInt(_0x1b11f5(0x1d7))/0xd;if(_0x3833ce===_0x361732)break;else _0x13b6a9['push'](_0x13b6a9['shift']());}catch(_0x185aa6){_0x13b6a9['push'](_0x13b6a9['shift']());}}}(a92_0x2e5c,0xa94aa));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a92_0x23af8b(0x1c2),a92_0x23af8b(0x1cd),'sh',a92_0x23af8b(0x1c8),'ksh','tcsh','csh',a92_0x23af8b(0x1c9),'pwsh','powershell','nu',a92_0x23af8b(0x1b9),'elvish',a92_0x23af8b(0x1be)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a92_0x23af8b(0x1db),a92_0x23af8b(0x1e4)]);function getProcessInfoWindows(_0x452c9b){const _0x54b19b=a92_0x23af8b;try{const _0x2df535=execSync('wmic\x20process\x20where\x20ProcessId='+_0x452c9b+_0x54b19b(0x1d3),{'encoding':'utf-8','windowsHide':!![]})['trim'](),_0x1bfe30=_0x2df535[_0x54b19b(0x1dc)]('\x0a')['filter'](_0x451631=>_0x451631[_0x54b19b(0x1c0)]());if(_0x1bfe30[_0x54b19b(0x1dd)]<0x2)return null;const _0x59c5e6=_0x1bfe30[_0x1bfe30[_0x54b19b(0x1dd)]-0x1][_0x54b19b(0x1dc)](',');if(_0x59c5e6[_0x54b19b(0x1dd)]<0x3)return null;const _0x371f69=_0x59c5e6[0x1]?.['trim']()||'',_0x1f1960=parseInt(_0x59c5e6[0x2]?.[_0x54b19b(0x1c0)]()||'0',0xa);if(isNaN(_0x1f1960)||!_0x371f69)return null;return{'pid':_0x452c9b,'ppid':_0x1f1960,'comm':_0x371f69[_0x54b19b(0x1c4)](/\.exe$/i,'')};}catch(_0x1c4f28){return process[_0x54b19b(0x1bd)][_0x54b19b(0x1de)]&&console[_0x54b19b(0x1c6)](_0x54b19b(0x1c1)+_0x452c9b+_0x54b19b(0x1d0),_0x1c4f28),null;}}function getProcessInfoPosix(_0xc02130){const _0x10acf2=a92_0x23af8b;try{const _0x250bd7=execSync(_0x10acf2(0x1d5)+_0xc02130+'\x20-o\x20ppid=,comm=',{'encoding':_0x10acf2(0x1e0)})[_0x10acf2(0x1c0)](),[_0x35fb3e,..._0xc00237]=_0x250bd7[_0x10acf2(0x1dc)](/\s+/),_0x401d5f=parseInt(_0x35fb3e,0xa),_0xd19f40=_0xc00237[_0x10acf2(0x1e5)]('\x20');if(isNaN(_0x401d5f))return null;return{'pid':_0xc02130,'ppid':_0x401d5f,'comm':_0xd19f40};}catch(_0xbe60ad){return process['env'][_0x10acf2(0x1de)]&&console[_0x10acf2(0x1c6)](_0x10acf2(0x1c1)+_0xc02130+'\x20on\x20POSIX:',_0xbe60ad),null;}}function getProcessInfo(_0x833d5){const _0x3780bd=a92_0x23af8b;if(process[_0x3780bd(0x1c3)]===_0x3780bd(0x1da))return getProcessInfoWindows(_0x833d5);return getProcessInfoPosix(_0x833d5);}function getBasename(_0x2ab484){const _0x5f16f2=a92_0x23af8b;return _0x2ab484[_0x5f16f2(0x1c4)](/^-/,'')['split']('/')[_0x5f16f2(0x1ca)]()?.[_0x5f16f2(0x1d2)]()||'';}function isShell(_0x5720ae){const _0x29ce3a=a92_0x23af8b;return SHELL_NAMES[_0x29ce3a(0x1cb)](getBasename(_0x5720ae));}function a92_0x50b6(_0x366b6c,_0x2509d0){const _0x2e5c9d=a92_0x2e5c();return a92_0x50b6=function(_0x50b60b,_0x3c02fc){_0x50b60b=_0x50b60b-0x1b8;let _0x4e25bb=_0x2e5c9d[_0x50b60b];return _0x4e25bb;},a92_0x50b6(_0x366b6c,_0x2509d0);}function isEphemeralShellSpawner(_0x21af3d){const _0x22bd0e=a92_0x23af8b;return EPHEMERAL_SHELL_SPAWNERS[_0x22bd0e(0x1cb)](getBasename(_0x21af3d));}let cachedShellPID;function findShellPID(){const _0x2dfd43=a92_0x23af8b;let _0x3bc221=process[_0x2dfd43(0x1df)];const _0x25bfc3=0xa;let _0x57ce78=0x0;while(_0x57ce78<_0x25bfc3){const _0x194351=getProcessInfo(_0x3bc221);if(!_0x194351){process[_0x2dfd43(0x1bd)][_0x2dfd43(0x1de)]&&console[_0x2dfd43(0x1c6)](_0x2dfd43(0x1e3)+_0x3bc221+',\x20using\x20fallback');break;}if(isShell(_0x194351['comm'])){const _0xf4c520=getProcessInfo(_0x194351['ppid']);if(_0xf4c520&&isEphemeralShellSpawner(_0xf4c520[_0x2dfd43(0x1d9)])){process[_0x2dfd43(0x1bd)][_0x2dfd43(0x1de)]&&console[_0x2dfd43(0x1c6)](_0x2dfd43(0x1bc)+_0x194351['pid']+'\x20('+_0x194351[_0x2dfd43(0x1d9)]+_0x2dfd43(0x1e2)+_0xf4c520[_0x2dfd43(0x1d9)]+',\x20continuing\x20up');_0x3bc221=_0x194351[_0x2dfd43(0x1df)],_0x57ce78++;continue;}return _0x194351['pid'];}if(_0x194351[_0x2dfd43(0x1df)]===0x0||_0x194351[_0x2dfd43(0x1df)]===0x1){if(isShell(_0x194351[_0x2dfd43(0x1d9)]))return _0x194351[_0x2dfd43(0x1cc)];break;}_0x3bc221=_0x194351[_0x2dfd43(0x1df)],_0x57ce78++;}return process[_0x2dfd43(0x1bd)]['DEBUG']&&console[_0x2dfd43(0x1c6)](_0x2dfd43(0x1e1)),process[_0x2dfd43(0x1df)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}function a92_0x2e5c(){const _0x257156=['9757NaiZdW','trim','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','bash','platform','replace','813iIaqdp','error','4584nwnuND','fish','dash','pop','has','pid','zsh','70FLSzBa','kill','\x20on\x20Windows:','7vfEYFj','toLowerCase','\x20get\x20ParentProcessId,Name\x20/format:csv','7969448JkRqEl','ps\x20-p\x20','62640kQJYFP','9488934CvpAOc','90uRvrjn','comm','win32','code','split','length','DEBUG','ppid','utf-8','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid',')\x20spawned\x20by\x20','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','cursor','join','351602hZOTTV','457770jjUXHM','ion','15688AZhQwN','7wIdZpR','Found\x20ephemeral\x20shell\x20','env','xonsh'];a92_0x2e5c=function(){return _0x257156;};return a92_0x2e5c();}export function isProcessRunning(_0x4c3c12){const _0x2bdcb5=a92_0x23af8b;try{return process[_0x2bdcb5(0x1cf)](_0x4c3c12,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0xb87619,_0x37aafd){const _0x53da42=a93_0x2b8a,_0x3da0cb=_0xb87619();while(!![]){try{const _0x42a874=-parseInt(_0x53da42(0x9b))/0x1+-parseInt(_0x53da42(0x8f))/0x2*(parseInt(_0x53da42(0xa4))/0x3)+-parseInt(_0x53da42(0x99))/0x4*(parseInt(_0x53da42(0xa0))/0x5)+-parseInt(_0x53da42(0x90))/0x6+parseInt(_0x53da42(0xa3))/0x7*(parseInt(_0x53da42(0x9a))/0x8)+parseInt(_0x53da42(0x96))/0x9*(-parseInt(_0x53da42(0x8d))/0xa)+-parseInt(_0x53da42(0x9e))/0xb*(-parseInt(_0x53da42(0x8e))/0xc);if(_0x42a874===_0x37aafd)break;else _0x3da0cb['push'](_0x3da0cb['shift']());}catch(_0x2c8a88){_0x3da0cb['push'](_0x3da0cb['shift']());}}}(a93_0x2102,0xec2c8));import*as a93_0x450d94 from'readline';function a93_0x2102(){const _0x226154=['createInterface','\x20(y/N):\x20','removeListener','1179ISUgbH','\x20[y/N]\x20','stderr','31292VKngDW','152JhweGx','117523RtjLVR','data','stdin','2981MsMtHF','toLowerCase','410cxwyXc','question','close','315917WJKPVq','60okjzrK','resume','107140frACBW','159708fWsZRg','50342rkXNwb','4985382aWjaqN','isTTY','write'];a93_0x2102=function(){return _0x226154;};return a93_0x2102();}function a93_0x2b8a(_0x2cb0ea,_0x375a9d){const _0x2102cf=a93_0x2102();return a93_0x2b8a=function(_0x2b8ae,_0x3880c6){_0x2b8ae=_0x2b8ae-0x8c;let _0x1a116e=_0x2102cf[_0x2b8ae];return _0x1a116e;},a93_0x2b8a(_0x2cb0ea,_0x375a9d);}export async function confirm(_0x3f8067){const _0xc4f71=a93_0x2b8a,_0x2fd9fe=a93_0x450d94[_0xc4f71(0x93)]({'input':process[_0xc4f71(0x9d)],'output':process['stdout']});return new Promise(_0x32e5d5=>{const _0x2e4353=_0xc4f71;_0x2fd9fe[_0x2e4353(0xa1)](_0x3f8067+_0x2e4353(0x94),_0x2dfced=>{const _0x39396c=_0x2e4353;_0x2fd9fe[_0x39396c(0xa2)](),_0x32e5d5(_0x2dfced['toLowerCase']()==='y'||_0x2dfced[_0x39396c(0x9f)]()==='yes');});});}export async function confirmKey(_0x5c3e36){const _0x1fbb47=a93_0x2b8a;if(!process[_0x1fbb47(0x9d)][_0x1fbb47(0x91)])return![];return process['stderr'][_0x1fbb47(0x92)](_0x5c3e36+_0x1fbb47(0x97)),new Promise(_0x294c53=>{const _0x4019d6=_0x1fbb47,_0x2bc839=process[_0x4019d6(0x9d)];_0x2bc839['setRawMode'](!![]),_0x2bc839[_0x4019d6(0x8c)](),_0x2bc839['setEncoding']('utf8');const _0x23aaf7=_0x35345f=>{const _0xd6ecaa=_0x4019d6;_0x2bc839['setRawMode'](![]),_0x2bc839['pause'](),_0x2bc839[_0xd6ecaa(0x95)](_0xd6ecaa(0x9c),_0x23aaf7);if(_0x35345f==='\x1b'){process[_0xd6ecaa(0x98)]['write']('\x0a'),_0x294c53(![]);return;}_0x35345f==='\x03'&&(process[_0xd6ecaa(0x98)][_0xd6ecaa(0x92)]('\x0a'),process['exit'](0x82));if(_0x35345f[_0xd6ecaa(0x9f)]()==='y'){process[_0xd6ecaa(0x98)][_0xd6ecaa(0x92)]('y\x0a'),_0x294c53(!![]);return;}process[_0xd6ecaa(0x98)][_0xd6ecaa(0x92)]('\x0a'),_0x294c53(![]);};_0x2bc839['on'](_0x4019d6(0x9c),_0x23aaf7);});}
1
+ (function(_0x4c2dc5,_0x3383a0){const _0x298adb=a93_0x40eb,_0x30f0e3=_0x4c2dc5();while(!![]){try{const _0x870da0=-parseInt(_0x298adb(0xda))/0x1+parseInt(_0x298adb(0xe2))/0x2+parseInt(_0x298adb(0xdb))/0x3*(parseInt(_0x298adb(0xf0))/0x4)+parseInt(_0x298adb(0xf1))/0x5+-parseInt(_0x298adb(0xea))/0x6*(-parseInt(_0x298adb(0xef))/0x7)+-parseInt(_0x298adb(0xe9))/0x8*(-parseInt(_0x298adb(0xe3))/0x9)+-parseInt(_0x298adb(0xec))/0xa;if(_0x870da0===_0x3383a0)break;else _0x30f0e3['push'](_0x30f0e3['shift']());}catch(_0x59901d){_0x30f0e3['push'](_0x30f0e3['shift']());}}}(a93_0x1ab0,0x80068));import*as a93_0x369219 from'readline';export async function confirm(_0x1c036b){const _0xa94c0c=a93_0x40eb,_0x38cbe8=a93_0x369219[_0xa94c0c(0xee)]({'input':process['stdin'],'output':process[_0xa94c0c(0xe8)]});return new Promise(_0x4d57f1=>{const _0x35de32=_0xa94c0c;_0x38cbe8[_0x35de32(0xe5)](_0x1c036b+_0x35de32(0xe1),_0x1d5cd5=>{const _0x17c387=_0x35de32;_0x38cbe8[_0x17c387(0xde)](),_0x4d57f1(_0x1d5cd5[_0x17c387(0xdc)]()==='y'||_0x1d5cd5[_0x17c387(0xdc)]()===_0x17c387(0xd9));});});}export async function confirmKey(_0x3f5de1){const _0x34100a=a93_0x40eb;if(!process[_0x34100a(0xe6)][_0x34100a(0xdf)])return![];return process[_0x34100a(0xe7)]['write'](_0x3f5de1+'\x20[y/N]\x20'),new Promise(_0x3c38f2=>{const _0x1c1167=_0x34100a,_0x5e52a5=process[_0x1c1167(0xe6)];_0x5e52a5['setRawMode'](!![]),_0x5e52a5['resume'](),_0x5e52a5[_0x1c1167(0xd8)](_0x1c1167(0xe4));const _0x3bf21c=_0x45515b=>{const _0x3ea699=_0x1c1167;_0x5e52a5[_0x3ea699(0xdd)](![]),_0x5e52a5[_0x3ea699(0xeb)](),_0x5e52a5[_0x3ea699(0xd6)]('data',_0x3bf21c);if(_0x45515b==='\x1b'){process[_0x3ea699(0xe7)][_0x3ea699(0xd7)]('\x0a'),_0x3c38f2(![]);return;}_0x45515b==='\x03'&&(process[_0x3ea699(0xe7)][_0x3ea699(0xd7)]('\x0a'),process[_0x3ea699(0xe0)](0x82));if(_0x45515b[_0x3ea699(0xdc)]()==='y'){process[_0x3ea699(0xe7)][_0x3ea699(0xd7)]('y\x0a'),_0x3c38f2(!![]);return;}process['stderr'][_0x3ea699(0xd7)]('\x0a'),_0x3c38f2(![]);};_0x5e52a5['on'](_0x1c1167(0xed),_0x3bf21c);});}function a93_0x40eb(_0x38f08d,_0x1991f4){const _0x1ab036=a93_0x1ab0();return a93_0x40eb=function(_0x40ebb0,_0x24ed6d){_0x40ebb0=_0x40ebb0-0xd6;let _0x504c97=_0x1ab036[_0x40ebb0];return _0x504c97;},a93_0x40eb(_0x38f08d,_0x1991f4);}function a93_0x1ab0(){const _0xd10357=['data','createInterface','385upgGlQ','16vncyGc','3619685SSBfvp','removeListener','write','setEncoding','yes','779896siDYBO','505227tDduru','toLowerCase','setRawMode','close','isTTY','exit','\x20(y/N):\x20','1284574jnjkhy','441SIFJoX','utf8','question','stdin','stderr','stdout','128776vOboHT','15384Iisoxj','pause','16653450OpbBkI'];a93_0x1ab0=function(){return _0xd10357;};return a93_0x1ab0();}
@@ -1 +1 @@
1
- (function(_0x491302,_0x25826b){const _0x4bc78a=a94_0x518b,_0x5116c4=_0x491302();while(!![]){try{const _0x2be724=-parseInt(_0x4bc78a(0x8b))/0x1*(-parseInt(_0x4bc78a(0x87))/0x2)+-parseInt(_0x4bc78a(0x99))/0x3*(-parseInt(_0x4bc78a(0x9c))/0x4)+-parseInt(_0x4bc78a(0x98))/0x5*(parseInt(_0x4bc78a(0xa2))/0x6)+parseInt(_0x4bc78a(0x89))/0x7*(-parseInt(_0x4bc78a(0x8d))/0x8)+parseInt(_0x4bc78a(0x86))/0x9*(parseInt(_0x4bc78a(0xa5))/0xa)+parseInt(_0x4bc78a(0xa0))/0xb*(-parseInt(_0x4bc78a(0x88))/0xc)+parseInt(_0x4bc78a(0xa4))/0xd*(-parseInt(_0x4bc78a(0x92))/0xe);if(_0x2be724===_0x25826b)break;else _0x5116c4['push'](_0x5116c4['shift']());}catch(_0x404948){_0x5116c4['push'](_0x5116c4['shift']());}}}(a94_0x4415,0x49bdc));export function parsePath(_0x96c7e8){const _0x245c9b=a94_0x518b;if(!_0x96c7e8||_0x96c7e8[_0x245c9b(0x8f)]()==='')throw new Error(_0x245c9b(0x8a));const _0x318ba2=_0x96c7e8['trim']();if(_0x318ba2==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x96c7e8};const _0x3ed61f=_0x318ba2[_0x245c9b(0x91)]('/')?_0x318ba2['substring'](0x1):_0x318ba2,_0x3fb9ed=_0x3ed61f[_0x245c9b(0x9e)]('/')[_0x245c9b(0x90)](_0x1dec0a=>_0x1dec0a!=='');if(_0x3fb9ed[_0x245c9b(0x94)]===0x0)throw new Error(_0x245c9b(0x9f));const _0x3bef30=_0x318ba2['startsWith']('/')||!isRelativePathSegment(_0x3fb9ed[0x0]);for(const _0x5a76b2 of _0x3fb9ed){validatePathSegment(_0x5a76b2);}return{'segments':_0x3fb9ed,'isAbsolute':_0x3bef30,'raw':_0x96c7e8};}function a94_0x518b(_0x1efec3,_0x37a8db){const _0x44159f=a94_0x4415();return a94_0x518b=function(_0x518bf7,_0x560ffa){_0x518bf7=_0x518bf7-0x83;let _0x55b4ba=_0x44159f[_0x518bf7];return _0x55b4ba;},a94_0x518b(_0x1efec3,_0x37a8db);}function isRelativePathSegment(_0x5572a1){return _0x5572a1==='.'||_0x5572a1==='..';}function validatePathSegment(_0x561409){const _0x161022=a94_0x518b;if(_0x561409==='')throw new Error(_0x161022(0x8c));if(_0x561409==='.'||_0x561409==='..')return;if(/[\x00-\x1F\x7F]/[_0x161022(0x93)](_0x561409))throw new Error(_0x161022(0x95)+_0x561409);if(_0x561409!==_0x561409['trim']()){}}export function validatePath(_0x4ec9d4){const _0x5aa7bd=a94_0x518b;if(_0x4ec9d4[_0x5aa7bd(0x9b)][_0x5aa7bd(0x94)]===0x0&&!_0x4ec9d4[_0x5aa7bd(0x85)])throw new Error(_0x5aa7bd(0x97));if(_0x4ec9d4[_0x5aa7bd(0x85)]){if(_0x4ec9d4[_0x5aa7bd(0x9b)][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x4d6726=0x0;for(const _0x56af7d of _0x4ec9d4[_0x5aa7bd(0x9b)]){if(_0x56af7d==='..'){if(_0x4d6726===0x0)throw new Error(_0x5aa7bd(0x96));_0x4d6726--;}else _0x56af7d!=='.'&&_0x4d6726++;}}}export function joinPaths(_0x243ec8,_0x300a22){const _0x47a3a2=a94_0x518b;if(!_0x243ec8||_0x243ec8==='/')return _0x300a22;if(!_0x300a22||_0x300a22==='.')return _0x243ec8;if(_0x300a22[_0x47a3a2(0x91)]('/'))return _0x300a22;const _0x4b2b8c=parsePath(_0x243ec8),_0x438753=parsePath(_0x300a22),_0x5eb6c3=[..._0x4b2b8c[_0x47a3a2(0x9b)]];for(const _0x22aa2a of _0x438753[_0x47a3a2(0x9b)]){if(_0x22aa2a==='.')continue;else{if(_0x22aa2a==='..'){if(_0x5eb6c3['length']===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x5eb6c3[_0x47a3a2(0x9d)]();}else _0x5eb6c3[_0x47a3a2(0x8e)](_0x22aa2a);}}const _0x28f537=_0x5eb6c3['join']('/');return _0x4b2b8c['raw'][_0x47a3a2(0x91)]('/')?'/'+_0x28f537:_0x28f537;}function a94_0x4415(){const _0x5c0497=['63300zuDwrZ','14NhCUmb','Path\x20cannot\x20be\x20empty','1VFGgGu','Path\x20segment\x20cannot\x20be\x20empty','603776NxGqmV','push','trim','filter','startsWith','14orPXaK','test','length','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20attempts\x20to\x20navigate\x20above\x20root','Relative\x20path\x20cannot\x20be\x20empty','270990YhQcpo','79110BJeRnE','slice','segments','72NeFVYj','pop','split','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','275BJPtHZ','raw','66zeAidU','join','5853913dvpfBr','340wFVnVA','Cannot\x20split\x20empty\x20path','Cannot\x20navigate\x20above\x20root','isAbsolute','147834OGuChD','1196396ghjqHR'];a94_0x4415=function(){return _0x5c0497;};return a94_0x4415();}export function normalizePath(_0x413731){const _0x1438e0=a94_0x518b,_0x4cadaf=parsePath(_0x413731),_0x463e8b=[];for(const _0x3a2612 of _0x4cadaf[_0x1438e0(0x9b)]){if(_0x3a2612==='.')continue;else{if(_0x3a2612==='..'){if(_0x463e8b[_0x1438e0(0x94)]===0x0){if(_0x4cadaf[_0x1438e0(0x85)])throw new Error(_0x1438e0(0x84));_0x463e8b[_0x1438e0(0x8e)]('..');}else _0x463e8b[_0x463e8b[_0x1438e0(0x94)]-0x1]==='..'?_0x463e8b[_0x1438e0(0x8e)]('..'):_0x463e8b[_0x1438e0(0x9d)]();}else _0x463e8b[_0x1438e0(0x8e)](_0x3a2612);}}if(_0x463e8b['length']===0x0)return _0x4cadaf[_0x1438e0(0x85)]?'/':'.';const _0x1b898e=_0x463e8b[_0x1438e0(0xa3)]('/');return _0x4cadaf[_0x1438e0(0xa1)][_0x1438e0(0x91)]('/')?'/'+_0x1b898e:_0x1b898e;}export function getParentPath(_0x1cb30d){const _0x6623d=a94_0x518b,_0x24597a=parsePath(_0x1cb30d);if(_0x24597a[_0x6623d(0x9b)][_0x6623d(0x94)]<=0x1)return'/';const _0x3c6f53=_0x24597a[_0x6623d(0x9b)][_0x6623d(0x9a)](0x0,-0x1)[_0x6623d(0xa3)]('/');return _0x24597a[_0x6623d(0xa1)]['startsWith']('/')?'/'+_0x3c6f53:_0x3c6f53;}export function getBaseName(_0x285bfc){const _0x31b308=a94_0x518b,_0x427a39=parsePath(_0x285bfc);return _0x427a39[_0x31b308(0x9b)][_0x427a39['segments']['length']-0x1]||'';}export function isChildPath(_0x4af86d,_0xa8a605){const _0x3b7ba8=a94_0x518b,_0x2c57f9=parsePath(_0x4af86d),_0x4dadfb=parsePath(_0xa8a605);if(_0x2c57f9[_0x3b7ba8(0x9b)]['length']<=_0x4dadfb[_0x3b7ba8(0x9b)][_0x3b7ba8(0x94)])return![];for(let _0x329d17=0x0;_0x329d17<_0x4dadfb[_0x3b7ba8(0x9b)][_0x3b7ba8(0x94)];_0x329d17++){if(_0x2c57f9[_0x3b7ba8(0x9b)][_0x329d17]!==_0x4dadfb['segments'][_0x329d17])return![];}return!![];}export function splitPath(_0x54861e){const _0x54f0b2=a94_0x518b,_0x56e2f3=parsePath(_0x54861e);if(_0x56e2f3[_0x54f0b2(0x9b)][_0x54f0b2(0x94)]===0x0)throw new Error(_0x54f0b2(0x83));if(_0x56e2f3[_0x54f0b2(0x9b)]['length']===0x1)return{'parent':_0x56e2f3[_0x54f0b2(0x9b)][0x0]};return{'parent':_0x56e2f3[_0x54f0b2(0x9b)][0x0],'child':_0x56e2f3['segments'][_0x54f0b2(0x9a)](0x1)['join']('/')};}
1
+ (function(_0x574af3,_0x459c44){const _0x41001a=a94_0x11f0,_0x544e7c=_0x574af3();while(!![]){try{const _0x5b96ff=-parseInt(_0x41001a(0xf5))/0x1+parseInt(_0x41001a(0xf2))/0x2+parseInt(_0x41001a(0x105))/0x3*(-parseInt(_0x41001a(0x107))/0x4)+-parseInt(_0x41001a(0xf3))/0x5*(parseInt(_0x41001a(0xfa))/0x6)+parseInt(_0x41001a(0x103))/0x7*(-parseInt(_0x41001a(0xf7))/0x8)+-parseInt(_0x41001a(0xef))/0x9+parseInt(_0x41001a(0xf1))/0xa;if(_0x5b96ff===_0x459c44)break;else _0x544e7c['push'](_0x544e7c['shift']());}catch(_0x2af539){_0x544e7c['push'](_0x544e7c['shift']());}}}(a94_0x30ff,0x38a0a));export function parsePath(_0x49a0d6){const _0x521611=a94_0x11f0;if(!_0x49a0d6||_0x49a0d6[_0x521611(0x101)]()==='')throw new Error(_0x521611(0xf6));const _0x229dc2=_0x49a0d6['trim']();if(_0x229dc2==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x49a0d6};const _0x34947c=_0x229dc2[_0x521611(0xff)]('/')?_0x229dc2[_0x521611(0x104)](0x1):_0x229dc2,_0x402d51=_0x34947c[_0x521611(0xf8)]('/')['filter'](_0x10f5fc=>_0x10f5fc!=='');if(_0x402d51[_0x521611(0xfc)]===0x0)throw new Error(_0x521611(0x100));const _0x5051c0=_0x229dc2[_0x521611(0xff)]('/')||!isRelativePathSegment(_0x402d51[0x0]);for(const _0x1a0a0c of _0x402d51){validatePathSegment(_0x1a0a0c);}return{'segments':_0x402d51,'isAbsolute':_0x5051c0,'raw':_0x49a0d6};}function isRelativePathSegment(_0x2d8c5f){return _0x2d8c5f==='.'||_0x2d8c5f==='..';}function validatePathSegment(_0x324818){const _0x3708c1=a94_0x11f0;if(_0x324818==='')throw new Error(_0x3708c1(0xec));if(_0x324818==='.'||_0x324818==='..')return;if(/[\x00-\x1F\x7F]/[_0x3708c1(0xf4)](_0x324818))throw new Error(_0x3708c1(0xfd)+_0x324818);if(_0x324818!==_0x324818['trim']()){}}export function validatePath(_0x322d72){const _0x136b3e=a94_0x11f0;if(_0x322d72['segments'][_0x136b3e(0xfc)]===0x0&&!_0x322d72[_0x136b3e(0xed)])throw new Error(_0x136b3e(0x106));if(_0x322d72[_0x136b3e(0xed)]){if(_0x322d72[_0x136b3e(0xe9)][0x0]==='..')throw new Error(_0x136b3e(0xea));let _0x405872=0x0;for(const _0x2e756d of _0x322d72['segments']){if(_0x2e756d==='..'){if(_0x405872===0x0)throw new Error(_0x136b3e(0xeb));_0x405872--;}else _0x2e756d!=='.'&&_0x405872++;}}}export function joinPaths(_0x1c3e21,_0x3788ac){const _0x1facf3=a94_0x11f0;if(!_0x1c3e21||_0x1c3e21==='/')return _0x3788ac;if(!_0x3788ac||_0x3788ac==='.')return _0x1c3e21;if(_0x3788ac['startsWith']('/'))return _0x3788ac;const _0x17bb3d=parsePath(_0x1c3e21),_0x57d2d8=parsePath(_0x3788ac),_0x416d78=[..._0x17bb3d[_0x1facf3(0xe9)]];for(const _0x3a4255 of _0x57d2d8['segments']){if(_0x3a4255==='.')continue;else{if(_0x3a4255==='..'){if(_0x416d78[_0x1facf3(0xfc)]===0x0)throw new Error(_0x1facf3(0x102));_0x416d78[_0x1facf3(0xf9)]();}else _0x416d78[_0x1facf3(0xfb)](_0x3a4255);}}const _0x19fea7=_0x416d78[_0x1facf3(0xee)]('/');return _0x17bb3d[_0x1facf3(0xf0)][_0x1facf3(0xff)]('/')?'/'+_0x19fea7:_0x19fea7;}function a94_0x30ff(){const _0x20ef3d=['trim','Cannot\x20navigate\x20above\x20root','183211yLOfJx','substring','9ejyzTs','Relative\x20path\x20cannot\x20be\x20empty','203244LocozE','Cannot\x20split\x20empty\x20path','segments','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Path\x20attempts\x20to\x20navigate\x20above\x20root','Path\x20segment\x20cannot\x20be\x20empty','isAbsolute','join','89325jlTJHw','raw','10215070sdtUwp','377878EZvVMp','5bnehqK','test','256510lyMdpK','Path\x20cannot\x20be\x20empty','136LHtZOU','split','pop','688146kHVVqL','push','length','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','slice','startsWith','Path\x20must\x20contain\x20at\x20least\x20one\x20segment'];a94_0x30ff=function(){return _0x20ef3d;};return a94_0x30ff();}function a94_0x11f0(_0x21b753,_0x5d6803){const _0x30ff85=a94_0x30ff();return a94_0x11f0=function(_0x11f095,_0x2bd361){_0x11f095=_0x11f095-0xe8;let _0x4bb6a9=_0x30ff85[_0x11f095];return _0x4bb6a9;},a94_0x11f0(_0x21b753,_0x5d6803);}export function normalizePath(_0x99428f){const _0x43ea5a=a94_0x11f0,_0x12093f=parsePath(_0x99428f),_0x493f63=[];for(const _0x211425 of _0x12093f['segments']){if(_0x211425==='.')continue;else{if(_0x211425==='..'){if(_0x493f63[_0x43ea5a(0xfc)]===0x0){if(_0x12093f[_0x43ea5a(0xed)])throw new Error(_0x43ea5a(0x102));_0x493f63['push']('..');}else _0x493f63[_0x493f63[_0x43ea5a(0xfc)]-0x1]==='..'?_0x493f63[_0x43ea5a(0xfb)]('..'):_0x493f63[_0x43ea5a(0xf9)]();}else _0x493f63[_0x43ea5a(0xfb)](_0x211425);}}if(_0x493f63[_0x43ea5a(0xfc)]===0x0)return _0x12093f[_0x43ea5a(0xed)]?'/':'.';const _0x236644=_0x493f63[_0x43ea5a(0xee)]('/');return _0x12093f[_0x43ea5a(0xf0)][_0x43ea5a(0xff)]('/')?'/'+_0x236644:_0x236644;}export function getParentPath(_0x249348){const _0xd2d66d=a94_0x11f0,_0x7600d6=parsePath(_0x249348);if(_0x7600d6[_0xd2d66d(0xe9)][_0xd2d66d(0xfc)]<=0x1)return'/';const _0x73d328=_0x7600d6[_0xd2d66d(0xe9)][_0xd2d66d(0xfe)](0x0,-0x1)[_0xd2d66d(0xee)]('/');return _0x7600d6[_0xd2d66d(0xf0)][_0xd2d66d(0xff)]('/')?'/'+_0x73d328:_0x73d328;}export function getBaseName(_0x25fda2){const _0x4845b2=a94_0x11f0,_0x54a2c6=parsePath(_0x25fda2);return _0x54a2c6[_0x4845b2(0xe9)][_0x54a2c6[_0x4845b2(0xe9)]['length']-0x1]||'';}export function isChildPath(_0x43707e,_0x10d9be){const _0x4c6639=a94_0x11f0,_0x4014c6=parsePath(_0x43707e),_0x180c80=parsePath(_0x10d9be);if(_0x4014c6[_0x4c6639(0xe9)][_0x4c6639(0xfc)]<=_0x180c80[_0x4c6639(0xe9)][_0x4c6639(0xfc)])return![];for(let _0x2f7dac=0x0;_0x2f7dac<_0x180c80['segments'][_0x4c6639(0xfc)];_0x2f7dac++){if(_0x4014c6[_0x4c6639(0xe9)][_0x2f7dac]!==_0x180c80[_0x4c6639(0xe9)][_0x2f7dac])return![];}return!![];}export function splitPath(_0x15ab4d){const _0xc13f18=a94_0x11f0,_0x4356d6=parsePath(_0x15ab4d);if(_0x4356d6[_0xc13f18(0xe9)][_0xc13f18(0xfc)]===0x0)throw new Error(_0xc13f18(0xe8));if(_0x4356d6[_0xc13f18(0xe9)][_0xc13f18(0xfc)]===0x1)return{'parent':_0x4356d6[_0xc13f18(0xe9)][0x0]};return{'parent':_0x4356d6[_0xc13f18(0xe9)][0x0],'child':_0x4356d6['segments'][_0xc13f18(0xfe)](0x1)['join']('/')};}
@@ -1 +1 @@
1
- (function(_0x207adf,_0xa2af3a){const _0x2a4f67=a95_0x74c7,_0x882857=_0x207adf();while(!![]){try{const _0x5a862f=-parseInt(_0x2a4f67(0x1f3))/0x1*(parseInt(_0x2a4f67(0x1f2))/0x2)+parseInt(_0x2a4f67(0x1f6))/0x3*(parseInt(_0x2a4f67(0x1f7))/0x4)+-parseInt(_0x2a4f67(0x1f1))/0x5+parseInt(_0x2a4f67(0x1f0))/0x6+-parseInt(_0x2a4f67(0x1ef))/0x7*(-parseInt(_0x2a4f67(0x1f5))/0x8)+-parseInt(_0x2a4f67(0x1f9))/0x9+parseInt(_0x2a4f67(0x1f8))/0xa;if(_0x5a862f===_0xa2af3a)break;else _0x882857['push'](_0x882857['shift']());}catch(_0x5c5467){_0x882857['push'](_0x882857['shift']());}}}(a95_0x41f3,0xa6d9a));export function parseSegmentRef(_0x57bc82){const _0x36d64b=a95_0x74c7,_0x2bf06a=_0x57bc82['indexOf']('/');if(_0x2bf06a===-0x1)return{'parentId':_0x57bc82};if(_0x2bf06a===0x0)throw new Error(_0x36d64b(0x1ed)+_0x57bc82+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x22fd54=_0x57bc82[_0x36d64b(0x1f4)](0x0,_0x2bf06a),_0x57142b=_0x57bc82[_0x36d64b(0x1f4)](_0x2bf06a+0x1);if(_0x57142b==='')throw new Error(_0x36d64b(0x1ed)+_0x57bc82+_0x36d64b(0x1ee));return{'parentId':_0x22fd54,'childId':_0x57142b};}function a95_0x74c7(_0x5862ef,_0x90b86a){const _0x41f32c=a95_0x41f3();return a95_0x74c7=function(_0x74c76b,_0x3ed444){_0x74c76b=_0x74c76b-0x1ed;let _0x284b48=_0x41f32c[_0x74c76b];return _0x284b48;},a95_0x74c7(_0x5862ef,_0x90b86a);}function a95_0x41f3(){const _0x370554=['18400900NymRoe','4893948kMrJXo','Invalid\x20segment\x20reference\x20format:\x20','.\x20Child\x20name\x20cannot\x20be\x20empty','14FaySIw','2738376YzUWNF','4414425jKKVOY','2yxRCqr','991906OrnCTH','substring','515392mSXCpM','11871PlUDMv','684ltjJRb'];a95_0x41f3=function(){return _0x370554;};return a95_0x41f3();}
1
+ function a95_0x48c5(){const _0x2952f1=['substring','8GAxdUm','.\x20Parent\x20name\x20cannot\x20be\x20empty','49184jGXymH','5461BtTnYj','54JfCouv','11200140pJMxEb','720585KjLKbm','6666090RwNAFU','indexOf','3179070DLAGIO','.\x20Child\x20name\x20cannot\x20be\x20empty','6400541vzjnpH','4oQoifC','Invalid\x20segment\x20reference\x20format:\x20'];a95_0x48c5=function(){return _0x2952f1;};return a95_0x48c5();}(function(_0x4e64a3,_0x47c996){const _0x25319e=a95_0x1347,_0x1b56ac=_0x4e64a3();while(!![]){try{const _0x1d1e16=-parseInt(_0x25319e(0xe4))/0x1*(-parseInt(_0x25319e(0xde))/0x2)+parseInt(_0x25319e(0xdb))/0x3+parseInt(_0x25319e(0xe3))/0x4+-parseInt(_0x25319e(0xe7))/0x5*(parseInt(_0x25319e(0xe5))/0x6)+parseInt(_0x25319e(0xdd))/0x7*(-parseInt(_0x25319e(0xe1))/0x8)+parseInt(_0x25319e(0xe6))/0x9+parseInt(_0x25319e(0xe8))/0xa;if(_0x1d1e16===_0x47c996)break;else _0x1b56ac['push'](_0x1b56ac['shift']());}catch(_0x1f3155){_0x1b56ac['push'](_0x1b56ac['shift']());}}}(a95_0x48c5,0xbf0e1));function a95_0x1347(_0x368ae5,_0x5b5a53){const _0x48c535=a95_0x48c5();return a95_0x1347=function(_0x134716,_0x25c0d3){_0x134716=_0x134716-0xda;let _0x46aded=_0x48c535[_0x134716];return _0x46aded;},a95_0x1347(_0x368ae5,_0x5b5a53);}export function parseSegmentRef(_0x23429c){const _0x10f101=a95_0x1347,_0x20552c=_0x23429c[_0x10f101(0xda)]('/');if(_0x20552c===-0x1)return{'parentId':_0x23429c};if(_0x20552c===0x0)throw new Error(_0x10f101(0xdf)+_0x23429c+_0x10f101(0xe2));const _0x5df1cd=_0x23429c[_0x10f101(0xe0)](0x0,_0x20552c),_0x16e8ba=_0x23429c[_0x10f101(0xe0)](_0x20552c+0x1);if(_0x16e8ba==='')throw new Error(_0x10f101(0xdf)+_0x23429c+_0x10f101(0xdc));return{'parentId':_0x5df1cd,'childId':_0x16e8ba};}
@@ -1 +1 @@
1
- function a96_0x2603(_0x387ef0,_0x58f158){const _0x234995=a96_0x2349();return a96_0x2603=function(_0x2603c0,_0x26f05d){_0x2603c0=_0x2603c0-0x1e9;let _0x1bb1a8=_0x234995[_0x2603c0];return _0x1bb1a8;},a96_0x2603(_0x387ef0,_0x58f158);}(function(_0x492d0f,_0xc409e9){const _0x4cb976=a96_0x2603,_0x4a31db=_0x492d0f();while(!![]){try{const _0x5c55a8=-parseInt(_0x4cb976(0x1f9))/0x1*(-parseInt(_0x4cb976(0x1f8))/0x2)+parseInt(_0x4cb976(0x1e9))/0x3*(parseInt(_0x4cb976(0x1fe))/0x4)+-parseInt(_0x4cb976(0x1ec))/0x5*(-parseInt(_0x4cb976(0x1ff))/0x6)+parseInt(_0x4cb976(0x1fa))/0x7*(-parseInt(_0x4cb976(0x1f3))/0x8)+-parseInt(_0x4cb976(0x1eb))/0x9+-parseInt(_0x4cb976(0x203))/0xa+parseInt(_0x4cb976(0x1fc))/0xb*(parseInt(_0x4cb976(0x1ef))/0xc);if(_0x5c55a8===_0xc409e9)break;else _0x4a31db['push'](_0x4a31db['shift']());}catch(_0x51b7a3){_0x4a31db['push'](_0x4a31db['shift']());}}}(a96_0x2349,0xbc654));import a96_0x1702d1 from'ora';export function createCommandSpinner(_0x2a6ca3,_0x1ca1f9={}){const _0x51bc33=a96_0x2603,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x1ca1f9;return a96_0x1702d1({'text':_0x2a6ca3,'color':_0x51bc33(0x1f6),'isEnabled':forceEnabled||process[_0x51bc33(0x1f0)][_0x51bc33(0x1f4)]&&!verbose});}export async function withSpinner(_0x3792e6,_0x3649fa,_0x31214d={}){const _0x68282e=a96_0x2603,_0x136391=_0x31214d[_0x68282e(0x1f7)]??(()=>Date['now']()),_0x42feae=createCommandSpinner(_0x3792e6,_0x31214d);_0x42feae[_0x68282e(0x1f1)]();const _0x5f1051=_0x136391();try{const _0x453aaa=await _0x3649fa(),_0x963618=_0x136391()-_0x5f1051;return _0x42feae[_0x68282e(0x1ed)](),{'data':_0x453aaa,'elapsedMs':_0x963618};}catch(_0x27fc55){_0x42feae[_0x68282e(0x1ed)]();throw _0x27fc55;}}export async function withQuerySpinner(_0x497a51,_0x49c804,_0x4d364f={}){const _0xb39dc1=a96_0x2603,_0x3041b2=_0x4d364f['clock']??(()=>Date[_0xb39dc1(0x1ee)]()),_0x3d95fc=_0x4d364f['intervalFactory']??setInterval,_0x22ca8f=createCommandSpinner(_0x497a51,_0x4d364f);_0x22ca8f[_0xb39dc1(0x1f1)]();const _0x11538e=_0x3041b2(),_0x1ab0c1=_0x497a51['replace']('...',''),_0x5d85bb={},_0x530850=()=>{const _0x2e9188=_0xb39dc1;if(!_0x22ca8f[_0x2e9188(0x1f2)])return;const _0x3694d6=_0x3041b2()-_0x11538e,_0x9903ad=formatElapsed(_0x3694d6),_0x310062=_0x5d85bb[_0x2e9188(0x200)]??_0x1ab0c1,_0x8042ce=_0x5d85bb['jobId']?_0x2e9188(0x1fd)+_0x5d85bb[_0x2e9188(0x1f5)]+']':'',_0x1740e0=_0x5d85bb[_0x2e9188(0x1fb)]?'\x20'+_0x5d85bb[_0x2e9188(0x1fb)]:'';_0x22ca8f[_0x2e9188(0x201)]=_0x310062+'\x20'+_0x9903ad+_0x1740e0+_0x8042ce;},_0x10e1b5=_0x3d95fc(()=>{_0x530850();},0x3e8),_0x363748={'setPhase':_0x30f94d=>{_0x5d85bb['phase']=_0x30f94d,_0x530850();},'setJobId':_0x3a49c5=>{const _0x50a01e=_0xb39dc1;_0x5d85bb[_0x50a01e(0x1f5)]=_0x3a49c5,_0x530850();},'setExtra':_0x59189d=>{_0x5d85bb['extra']=_0x59189d,_0x530850();}};_0x530850();try{const _0x3320d4=await _0x49c804(_0x363748),_0x3c31b7=_0x3041b2()-_0x11538e;return{'data':_0x3320d4,'elapsedMs':_0x3c31b7};}finally{clearInterval(_0x10e1b5),_0x22ca8f[_0xb39dc1(0x1ed)]();}}function a96_0x2349(){const _0x25164e=['cyan','clock','82886AXeoWf','3zoplZG','938EncMDa','extra','7513LHzzde','\x20[Job\x20ID:\x20','12yvicNP','152676BPsjis','phase','text','toFixed','9841380fDkJIP','1490100IYQAbs','floor','5564646kmBXZT','270aEqLGs','stop','now','13956qOBTdv','stdout','start','isSpinning','84104YBGSwu','isTTY','jobId'];a96_0x2349=function(){return _0x25164e;};return a96_0x2349();}export function formatElapsed(_0x5cf764){const _0x541e2b=a96_0x2603,_0xd9cf1f=Math[_0x541e2b(0x1ea)](_0x5cf764/0x3e8);if(_0xd9cf1f<0x3c)return(_0x5cf764/0x3e8)[_0x541e2b(0x202)](0x1)+'s';const _0x1db4a8=Math[_0x541e2b(0x1ea)](_0xd9cf1f/0x3c),_0x396ad9=_0xd9cf1f%0x3c;if(_0x1db4a8<0x3c)return _0x1db4a8+'m\x20'+_0x396ad9+'s';const _0x5b3233=Math[_0x541e2b(0x1ea)](_0x1db4a8/0x3c),_0x2b0440=_0x1db4a8%0x3c;return _0x5b3233+'h\x20'+_0x2b0440+'m';}
1
+ function a96_0x54f0(_0x14425b,_0x4bc441){const _0x435416=a96_0x4354();return a96_0x54f0=function(_0x54f079,_0x12e670){_0x54f079=_0x54f079-0x164;let _0x451ddc=_0x435416[_0x54f079];return _0x451ddc;},a96_0x54f0(_0x14425b,_0x4bc441);}(function(_0x175b90,_0x44ad83){const _0x5e0ea8=a96_0x54f0,_0x947ea4=_0x175b90();while(!![]){try{const _0x48a91a=parseInt(_0x5e0ea8(0x175))/0x1+-parseInt(_0x5e0ea8(0x16d))/0x2+parseInt(_0x5e0ea8(0x166))/0x3*(-parseInt(_0x5e0ea8(0x164))/0x4)+parseInt(_0x5e0ea8(0x17b))/0x5+parseInt(_0x5e0ea8(0x174))/0x6*(-parseInt(_0x5e0ea8(0x178))/0x7)+parseInt(_0x5e0ea8(0x17a))/0x8*(parseInt(_0x5e0ea8(0x165))/0x9)+-parseInt(_0x5e0ea8(0x171))/0xa*(-parseInt(_0x5e0ea8(0x16e))/0xb);if(_0x48a91a===_0x44ad83)break;else _0x947ea4['push'](_0x947ea4['shift']());}catch(_0x3dffcf){_0x947ea4['push'](_0x947ea4['shift']());}}}(a96_0x4354,0xe3aac));import a96_0x118915 from'ora';export function createCommandSpinner(_0x37a66e,_0x306f5d={}){const _0x45ef96=a96_0x54f0,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x306f5d;return a96_0x118915({'text':_0x37a66e,'color':_0x45ef96(0x168),'isEnabled':forceEnabled||process['stdout'][_0x45ef96(0x169)]&&!verbose});}function a96_0x4354(){const _0x3f7c71=['jobId','8IqJutq','4373540CPlUvx','start','4ENyNyP','343773swTRzg','4345431sDdwzz','stop','cyan','isTTY','extra','replace','now','2582950smmBoW','33869OzIuNl','isSpinning','intervalFactory','10420rgNwAB','clock','floor','66PrsWbs','1233835RcFCUw','...','phase','1070734cvzpuB'];a96_0x4354=function(){return _0x3f7c71;};return a96_0x4354();}export async function withSpinner(_0x12121b,_0x4f6f1b,_0xdf725b={}){const _0x4dbe5d=a96_0x54f0,_0x30bdc9=_0xdf725b[_0x4dbe5d(0x172)]??(()=>Date[_0x4dbe5d(0x16c)]()),_0x3bca6d=createCommandSpinner(_0x12121b,_0xdf725b);_0x3bca6d['start']();const _0x43178f=_0x30bdc9();try{const _0x46ce7b=await _0x4f6f1b(),_0x4868ce=_0x30bdc9()-_0x43178f;return _0x3bca6d['stop'](),{'data':_0x46ce7b,'elapsedMs':_0x4868ce};}catch(_0x25df4b){_0x3bca6d[_0x4dbe5d(0x167)]();throw _0x25df4b;}}export async function withQuerySpinner(_0x75068a,_0x4e23b7,_0x23cbed={}){const _0x43dd55=a96_0x54f0,_0x1c99ac=_0x23cbed[_0x43dd55(0x172)]??(()=>Date[_0x43dd55(0x16c)]()),_0x12e385=_0x23cbed[_0x43dd55(0x170)]??setInterval,_0x579b65=createCommandSpinner(_0x75068a,_0x23cbed);_0x579b65[_0x43dd55(0x17c)]();const _0x1944eb=_0x1c99ac(),_0x35bac5=_0x75068a[_0x43dd55(0x16b)](_0x43dd55(0x176),''),_0x1f451f={},_0x98feae=()=>{const _0x557c6c=_0x43dd55;if(!_0x579b65[_0x557c6c(0x16f)])return;const _0x59674f=_0x1c99ac()-_0x1944eb,_0x2b8085=formatElapsed(_0x59674f),_0x41df6f=_0x1f451f[_0x557c6c(0x177)]??_0x35bac5,_0x461025=_0x1f451f[_0x557c6c(0x179)]?'\x20[Job\x20ID:\x20'+_0x1f451f[_0x557c6c(0x179)]+']':'',_0x2358cf=_0x1f451f[_0x557c6c(0x16a)]?'\x20'+_0x1f451f[_0x557c6c(0x16a)]:'';_0x579b65['text']=_0x41df6f+'\x20'+_0x2b8085+_0x2358cf+_0x461025;},_0x38e715=_0x12e385(()=>{_0x98feae();},0x3e8),_0x2fba80={'setPhase':_0x24fa38=>{_0x1f451f['phase']=_0x24fa38,_0x98feae();},'setJobId':_0x282174=>{_0x1f451f['jobId']=_0x282174,_0x98feae();},'setExtra':_0x4251aa=>{_0x1f451f['extra']=_0x4251aa,_0x98feae();}};_0x98feae();try{const _0x5e22fe=await _0x4e23b7(_0x2fba80),_0x277784=_0x1c99ac()-_0x1944eb;return{'data':_0x5e22fe,'elapsedMs':_0x277784};}finally{clearInterval(_0x38e715),_0x579b65['stop']();}}export function formatElapsed(_0x9d3cbe){const _0x564d42=a96_0x54f0,_0x5d7c8a=Math[_0x564d42(0x173)](_0x9d3cbe/0x3e8);if(_0x5d7c8a<0x3c)return(_0x9d3cbe/0x3e8)['toFixed'](0x1)+'s';const _0x33d538=Math[_0x564d42(0x173)](_0x5d7c8a/0x3c),_0xd82031=_0x5d7c8a%0x3c;if(_0x33d538<0x3c)return _0x33d538+'m\x20'+_0xd82031+'s';const _0x2665af=Math[_0x564d42(0x173)](_0x33d538/0x3c),_0x1d8fe7=_0x33d538%0x3c;return _0x2665af+'h\x20'+_0x1d8fe7+'m';}
@@ -1 +1 @@
1
- (function(_0x23ca52,_0x3f08f9){const _0x1a9501=a97_0x23b9,_0x17cd68=_0x23ca52();while(!![]){try{const _0x1c1dcc=-parseInt(_0x1a9501(0xfd))/0x1*(parseInt(_0x1a9501(0xf9))/0x2)+parseInt(_0x1a9501(0x101))/0x3+-parseInt(_0x1a9501(0x106))/0x4+parseInt(_0x1a9501(0x103))/0x5*(-parseInt(_0x1a9501(0xff))/0x6)+parseInt(_0x1a9501(0xfa))/0x7+-parseInt(_0x1a9501(0xfc))/0x8+parseInt(_0x1a9501(0xf8))/0x9*(parseInt(_0x1a9501(0xf3))/0xa);if(_0x1c1dcc===_0x3f08f9)break;else _0x17cd68['push'](_0x17cd68['shift']());}catch(_0x164a19){_0x17cd68['push'](_0x17cd68['shift']());}}}(a97_0x2ce5,0x2e8e0));import{readFileSync}from'fs';export function stripSqlComments(_0x32bfaa){const _0x50ff4e=a97_0x23b9;let _0x57d43c=_0x32bfaa[_0x50ff4e(0x102)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x57d43c=_0x57d43c[_0x50ff4e(0x102)](/--.*$/gm,''),_0x57d43c[_0x50ff4e(0x109)]();}function isEscaped(_0x166b47,_0x206e90){let _0x1a9e62=0x0;for(let _0x525ac3=_0x206e90-0x1;_0x525ac3>=0x0&&_0x166b47[_0x525ac3]==='\x5c';_0x525ac3--){_0x1a9e62++;}return _0x1a9e62%0x2===0x1;}export function splitSqlStatements(_0x437c12){const _0x2235cf=a97_0x23b9,_0x5b1ddd=stripSqlComments(_0x437c12);if(!_0x5b1ddd)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');const _0x2ca4c3=[];let _0x5b1785='',_0x4ec49f=![],_0x3bdfc5=![],_0x4e9621=![];for(let _0x3c36aa=0x0;_0x3c36aa<_0x437c12[_0x2235cf(0x104)];_0x3c36aa++){const _0x2f47a8=_0x437c12[_0x3c36aa];if(_0x2f47a8==='\x27'&&!isEscaped(_0x437c12,_0x3c36aa)&&!_0x3bdfc5&&!_0x4e9621)_0x4ec49f=!_0x4ec49f;else{if(_0x2f47a8==='\x22'&&!isEscaped(_0x437c12,_0x3c36aa)&&!_0x4ec49f&&!_0x4e9621)_0x3bdfc5=!_0x3bdfc5;else _0x2f47a8==='`'&&!isEscaped(_0x437c12,_0x3c36aa)&&!_0x4ec49f&&!_0x3bdfc5&&(_0x4e9621=!_0x4e9621);}if(_0x2f47a8===';'&&!_0x4ec49f&&!_0x3bdfc5&&!_0x4e9621){const _0xd7ba1d=_0x5b1785['trim']();_0xd7ba1d&&_0x2ca4c3['push'](_0xd7ba1d),_0x5b1785='';}else _0x5b1785+=_0x2f47a8;}const _0x226607=_0x5b1785[_0x2235cf(0x109)]();_0x226607&&_0x2ca4c3[_0x2235cf(0xf6)](_0x226607);const _0x24c8ff=_0x2ca4c3['map'](_0x265d0a=>_0x265d0a[_0x2235cf(0x109)]())['filter'](_0x5efa64=>{const _0x3136e5=stripSqlComments(_0x5efa64);return _0x3136e5['length']>0x0;});if(_0x24c8ff[_0x2235cf(0x104)]===0x0)throw new Error(_0x2235cf(0x105));return _0x24c8ff;}export function readFileContent(_0x2239e2){const _0x2aa625=a97_0x23b9;try{return readFileSync(_0x2239e2,_0x2aa625(0xf5));}catch(_0x11240e){const _0x168f65=_0x11240e[_0x2aa625(0xf7)];if(_0x168f65===_0x2aa625(0xfe))throw new Error('File\x20\x27'+_0x2239e2+_0x2aa625(0x108));else{if(_0x168f65===_0x2aa625(0x107))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x2239e2+'\x27');else throw new Error(_0x2aa625(0x10a)+_0x2239e2+'\x27:\x20'+_0x11240e[_0x2aa625(0xf4)]);}}}function a97_0x2ce5(){const _0x834c5b=['Error\x20reading\x20file\x20\x27','99530GItgJu','message','utf-8','push','code','585PgBQYM','2wGgllf','563850LFAduu','File\x20\x27','1798584xAeyim','83445XZyEeG','ENOENT','96dtOqGc','toLowerCase','435999MVifim','replace','3185KEZXWb','length','Content\x20contains\x20no\x20SQL\x20statements','1454720JNJsem','EACCES','\x27\x20not\x20found','trim'];a97_0x2ce5=function(){return _0x834c5b;};return a97_0x2ce5();}function a97_0x23b9(_0x393edf,_0x3f4e6c){const _0x2ce5f2=a97_0x2ce5();return a97_0x23b9=function(_0x23b9cf,_0x26b8a2){_0x23b9cf=_0x23b9cf-0xf3;let _0x2665cb=_0x2ce5f2[_0x23b9cf];return _0x2665cb;},a97_0x23b9(_0x393edf,_0x3f4e6c);}export function readSqlStatementsFromFile(_0x429acf){const _0x29c971=a97_0x23b9,_0x2541ea=readFileContent(_0x429acf);try{return splitSqlStatements(_0x2541ea);}catch(_0x54da84){throw new Error(_0x29c971(0xfb)+_0x429acf+'\x27\x20'+_0x54da84['message'][_0x29c971(0x100)]());}}
1
+ (function(_0x266b52,_0x48c22a){const _0x4e5ac7=a97_0x388c,_0x29342e=_0x266b52();while(!![]){try{const _0x1a2728=parseInt(_0x4e5ac7(0x133))/0x1+-parseInt(_0x4e5ac7(0x128))/0x2+-parseInt(_0x4e5ac7(0x126))/0x3+parseInt(_0x4e5ac7(0x134))/0x4+-parseInt(_0x4e5ac7(0x135))/0x5*(parseInt(_0x4e5ac7(0x131))/0x6)+parseInt(_0x4e5ac7(0x132))/0x7+-parseInt(_0x4e5ac7(0x12f))/0x8;if(_0x1a2728===_0x48c22a)break;else _0x29342e['push'](_0x29342e['shift']());}catch(_0x24fdd1){_0x29342e['push'](_0x29342e['shift']());}}}(a97_0x1f8e,0xa7f08));import{readFileSync}from'fs';export function stripSqlComments(_0x3b1c7f){const _0x13394b=a97_0x388c;let _0x4469ed=_0x3b1c7f['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x4469ed=_0x4469ed[_0x13394b(0x125)](/--.*$/gm,''),_0x4469ed[_0x13394b(0x12e)]();}function isEscaped(_0x46a056,_0x52df98){let _0x1baa68=0x0;for(let _0x1c95cf=_0x52df98-0x1;_0x1c95cf>=0x0&&_0x46a056[_0x1c95cf]==='\x5c';_0x1c95cf--){_0x1baa68++;}return _0x1baa68%0x2===0x1;}export function splitSqlStatements(_0xcb2b5e){const _0x52d4ad=a97_0x388c,_0x36a877=stripSqlComments(_0xcb2b5e);if(!_0x36a877)throw new Error(_0x52d4ad(0x127));const _0x17fd25=[];let _0x3db25a='',_0x1d05bb=![],_0x3d84c8=![],_0x359b77=![];for(let _0x7045d5=0x0;_0x7045d5<_0xcb2b5e[_0x52d4ad(0x130)];_0x7045d5++){const _0x49e0f1=_0xcb2b5e[_0x7045d5];if(_0x49e0f1==='\x27'&&!isEscaped(_0xcb2b5e,_0x7045d5)&&!_0x3d84c8&&!_0x359b77)_0x1d05bb=!_0x1d05bb;else{if(_0x49e0f1==='\x22'&&!isEscaped(_0xcb2b5e,_0x7045d5)&&!_0x1d05bb&&!_0x359b77)_0x3d84c8=!_0x3d84c8;else _0x49e0f1==='`'&&!isEscaped(_0xcb2b5e,_0x7045d5)&&!_0x1d05bb&&!_0x3d84c8&&(_0x359b77=!_0x359b77);}if(_0x49e0f1===';'&&!_0x1d05bb&&!_0x3d84c8&&!_0x359b77){const _0xb4b692=_0x3db25a[_0x52d4ad(0x12e)]();_0xb4b692&&_0x17fd25[_0x52d4ad(0x137)](_0xb4b692),_0x3db25a='';}else _0x3db25a+=_0x49e0f1;}const _0x562d1a=_0x3db25a[_0x52d4ad(0x12e)]();_0x562d1a&&_0x17fd25[_0x52d4ad(0x137)](_0x562d1a);const _0x49bd54=_0x17fd25[_0x52d4ad(0x123)](_0x305e90=>_0x305e90[_0x52d4ad(0x12e)]())[_0x52d4ad(0x129)](_0x8dc9a2=>{const _0x457911=_0x52d4ad,_0x7ceb39=stripSqlComments(_0x8dc9a2);return _0x7ceb39[_0x457911(0x130)]>0x0;});if(_0x49bd54[_0x52d4ad(0x130)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x49bd54;}function a97_0x388c(_0x503f54,_0x1b4171){const _0x1f8e6f=a97_0x1f8e();return a97_0x388c=function(_0x388c94,_0x1f92db){_0x388c94=_0x388c94-0x123;let _0x1603d8=_0x1f8e6f[_0x388c94];return _0x1603d8;},a97_0x388c(_0x503f54,_0x1b4171);}export function readFileContent(_0x2f5fd4){const _0x10156c=a97_0x388c;try{return readFileSync(_0x2f5fd4,_0x10156c(0x12c));}catch(_0x56622c){const _0x436562=_0x56622c['code'];if(_0x436562===_0x10156c(0x138))throw new Error(_0x10156c(0x124)+_0x2f5fd4+'\x27\x20not\x20found');else{if(_0x436562==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x2f5fd4+'\x27');else throw new Error(_0x10156c(0x12d)+_0x2f5fd4+_0x10156c(0x12a)+_0x56622c['message']);}}}function a97_0x1f8e(){const _0x5b53c7=['message','push','ENOENT','map','File\x20\x27','replace','176427zhejJv','Content\x20contains\x20no\x20SQL\x20statements','718572DkWGLu','filter','\x27:\x20','toLowerCase','utf-8','Error\x20reading\x20file\x20\x27','trim','935600Wewxta','length','67362dkFoke','5001192tATcLJ','501492IkOuoO','2587664UdfIGi','285NZprIY'];a97_0x1f8e=function(){return _0x5b53c7;};return a97_0x1f8e();}export function readSqlStatementsFromFile(_0x43fa74){const _0x45fd85=a97_0x388c,_0x5bbd5a=readFileContent(_0x43fa74);try{return splitSqlStatements(_0x5bbd5a);}catch(_0x5bcd3e){throw new Error(_0x45fd85(0x124)+_0x43fa74+'\x27\x20'+_0x5bcd3e[_0x45fd85(0x136)][_0x45fd85(0x12b)]());}}
@@ -1 +1 @@
1
- (function(_0x385ddd,_0x1050b4){const _0x5a7966=a98_0x27a1,_0x43ec47=_0x385ddd();while(!![]){try{const _0x2fcef1=-parseInt(_0x5a7966(0xd7))/0x1+-parseInt(_0x5a7966(0xde))/0x2*(parseInt(_0x5a7966(0xe2))/0x3)+parseInt(_0x5a7966(0xdb))/0x4+-parseInt(_0x5a7966(0xda))/0x5*(-parseInt(_0x5a7966(0xea))/0x6)+parseInt(_0x5a7966(0xdd))/0x7+parseInt(_0x5a7966(0xe5))/0x8+parseInt(_0x5a7966(0xdf))/0x9*(-parseInt(_0x5a7966(0xd8))/0xa);if(_0x2fcef1===_0x1050b4)break;else _0x43ec47['push'](_0x43ec47['shift']());}catch(_0x3c5a0e){_0x43ec47['push'](_0x43ec47['shift']());}}}(a98_0x3b3d,0x4b7c8));function a98_0x3b3d(){const _0x2450d8=['slice','trim','2066872MnyVqT','getReader','read','parse','data','8016aQLbtd','[LLM\x20API\x20SSE]\x20','Response\x20body\x20is\x20null','debug','28700auvIqV','82730ipAXIg','pop','1160XEtKwR','1931136riFNTH','split','3628408qhsyFq','65732WwCdPB','1161lYGEcn','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','body','15WVqBkJ'];a98_0x3b3d=function(){return _0x2450d8;};return a98_0x3b3d();}export async function*parseSSEStream(_0x318082,_0x1388a0){const _0x2f1407=a98_0x27a1;if(!_0x318082['body'])throw new Error(_0x2f1407(0xd5));const _0x2da892=_0x318082[_0x2f1407(0xe1)][_0x2f1407(0xe6)](),_0x4f143d=new TextDecoder();let _0x5b18fb='',_0x585bfb={};try{while(!![]){const {done:_0x325621,value:_0x4894a2}=await _0x2da892[_0x2f1407(0xe7)]();if(_0x325621){if(_0x585bfb[_0x2f1407(0xe9)]){_0x1388a0?.[_0x2f1407(0xd6)](_0x2f1407(0xd4)+_0x585bfb[_0x2f1407(0xe9)]);const _0x340f0c=parseSSEData(_0x585bfb['data']);yield _0x340f0c;}break;}_0x5b18fb+=_0x4f143d['decode'](_0x4894a2,{'stream':!![]});const _0x460877=_0x5b18fb[_0x2f1407(0xdc)]('\x0a');_0x5b18fb=_0x460877[_0x2f1407(0xd9)]()||'';for(const _0x6a11be of _0x460877){if(_0x6a11be[_0x2f1407(0xe4)]()===''){if(_0x585bfb[_0x2f1407(0xe9)]){_0x1388a0?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x585bfb[_0x2f1407(0xe9)]);const _0x240fb9=parseSSEData(_0x585bfb[_0x2f1407(0xe9)]);yield _0x240fb9,_0x585bfb={};}continue;}if(_0x6a11be['startsWith'](':'))continue;const _0x4af561=_0x6a11be['indexOf'](':');if(_0x4af561===-0x1)continue;const _0x5d471f=_0x6a11be[_0x2f1407(0xe3)](0x0,_0x4af561);let _0x51eae0=_0x6a11be['slice'](_0x4af561+0x1);_0x51eae0['startsWith']('\x20')&&(_0x51eae0=_0x51eae0[_0x2f1407(0xe3)](0x1));switch(_0x5d471f){case'event':_0x585bfb['event']=_0x51eae0;break;case _0x2f1407(0xe9):_0x585bfb[_0x2f1407(0xe9)]=_0x585bfb[_0x2f1407(0xe9)]?_0x585bfb[_0x2f1407(0xe9)]+'\x0a'+_0x51eae0:_0x51eae0;break;case'id':_0x585bfb['id']=_0x51eae0;break;}}}}finally{_0x2da892['releaseLock']();}}function a98_0x27a1(_0x4afde5,_0x5714d2){const _0x3b3d66=a98_0x3b3d();return a98_0x27a1=function(_0x27a1fb,_0x151d86){_0x27a1fb=_0x27a1fb-0xd4;let _0x238a68=_0x3b3d66[_0x27a1fb];return _0x238a68;},a98_0x27a1(_0x4afde5,_0x5714d2);}function parseSSEData(_0x45f51b){const _0x279ef3=a98_0x27a1;try{return JSON[_0x279ef3(0xe8)](_0x45f51b);}catch(_0xaaaa2c){throw new Error(_0x279ef3(0xe0)+_0x45f51b,{'cause':_0xaaaa2c});}}
1
+ function a98_0x3fa4(){const _0x376abf=['body','releaseLock','parse','418425QUVcoC','Response\x20body\x20is\x20null','2167026pxKACu','split','15PCuNeS','5837685YhSBrz','slice','indexOf','500yHvHiH','[LLM\x20API\x20SSE]\x20','12715eLYzvo','1244fcknXT','event','decode','startsWith','pop','7394824TJXIhq','trim','data','debug','getReader','30206277ASZnIj'];a98_0x3fa4=function(){return _0x376abf;};return a98_0x3fa4();}function a98_0x19f3(_0x2db417,_0x5e6710){const _0x3fa44b=a98_0x3fa4();return a98_0x19f3=function(_0x19f33b,_0x4249bf){_0x19f33b=_0x19f33b-0x1b1;let _0xce937f=_0x3fa44b[_0x19f33b];return _0xce937f;},a98_0x19f3(_0x2db417,_0x5e6710);}(function(_0x49e07b,_0x5192c4){const _0x2e931b=a98_0x19f3,_0x4664e6=_0x49e07b();while(!![]){try{const _0x3d41a7=parseInt(_0x2e931b(0x1c6))/0x1*(-parseInt(_0x2e931b(0x1b1))/0x2)+parseInt(_0x2e931b(0x1c2))/0x3+parseInt(_0x2e931b(0x1b4))/0x4*(-parseInt(_0x2e931b(0x1b3))/0x5)+-parseInt(_0x2e931b(0x1c4))/0x6+-parseInt(_0x2e931b(0x1c7))/0x7+-parseInt(_0x2e931b(0x1b9))/0x8+parseInt(_0x2e931b(0x1be))/0x9;if(_0x3d41a7===_0x5192c4)break;else _0x4664e6['push'](_0x4664e6['shift']());}catch(_0x54aebd){_0x4664e6['push'](_0x4664e6['shift']());}}}(a98_0x3fa4,0x8dffa));export async function*parseSSEStream(_0x775a50,_0x181462){const _0x460624=a98_0x19f3;if(!_0x775a50[_0x460624(0x1bf)])throw new Error(_0x460624(0x1c3));const _0x18238a=_0x775a50['body'][_0x460624(0x1bd)](),_0x40951d=new TextDecoder();let _0x2a687b='',_0x1f7fe2={};try{while(!![]){const {done:_0x1485b4,value:_0x1f8bac}=await _0x18238a['read']();if(_0x1485b4){if(_0x1f7fe2['data']){_0x181462?.[_0x460624(0x1bc)]('[LLM\x20API\x20SSE]\x20'+_0x1f7fe2[_0x460624(0x1bb)]);const _0x321c60=parseSSEData(_0x1f7fe2[_0x460624(0x1bb)]);yield _0x321c60;}break;}_0x2a687b+=_0x40951d[_0x460624(0x1b6)](_0x1f8bac,{'stream':!![]});const _0x1db4df=_0x2a687b[_0x460624(0x1c5)]('\x0a');_0x2a687b=_0x1db4df[_0x460624(0x1b8)]()||'';for(const _0x5ba1a9 of _0x1db4df){if(_0x5ba1a9[_0x460624(0x1ba)]()===''){if(_0x1f7fe2['data']){_0x181462?.[_0x460624(0x1bc)](_0x460624(0x1b2)+_0x1f7fe2[_0x460624(0x1bb)]);const _0x32ad82=parseSSEData(_0x1f7fe2[_0x460624(0x1bb)]);yield _0x32ad82,_0x1f7fe2={};}continue;}if(_0x5ba1a9[_0x460624(0x1b7)](':'))continue;const _0x38d4e3=_0x5ba1a9[_0x460624(0x1c9)](':');if(_0x38d4e3===-0x1)continue;const _0x20f388=_0x5ba1a9[_0x460624(0x1c8)](0x0,_0x38d4e3);let _0x1573d9=_0x5ba1a9['slice'](_0x38d4e3+0x1);_0x1573d9[_0x460624(0x1b7)]('\x20')&&(_0x1573d9=_0x1573d9[_0x460624(0x1c8)](0x1));switch(_0x20f388){case _0x460624(0x1b5):_0x1f7fe2[_0x460624(0x1b5)]=_0x1573d9;break;case _0x460624(0x1bb):_0x1f7fe2[_0x460624(0x1bb)]=_0x1f7fe2[_0x460624(0x1bb)]?_0x1f7fe2[_0x460624(0x1bb)]+'\x0a'+_0x1573d9:_0x1573d9;break;case'id':_0x1f7fe2['id']=_0x1573d9;break;}}}}finally{_0x18238a[_0x460624(0x1c0)]();}}function parseSSEData(_0x5988ea){const _0x50a9a8=a98_0x19f3;try{return JSON[_0x50a9a8(0x1c1)](_0x5988ea);}catch(_0x170e8b){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x5988ea,{'cause':_0x170e8b});}}