@treasuredata/tdx 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/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.js +1 -1
  8. package/dist/client/engage-api-client.js +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.js +1 -1
  13. package/dist/client/trino-api-client.js +1 -1
  14. package/dist/client/workflow-client.js +1 -1
  15. package/dist/commands/activations.js +1 -1
  16. package/dist/commands/api-command.js +1 -1
  17. package/dist/commands/auth-command.js +1 -1
  18. package/dist/commands/chat-command.js +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/claude-statusline-command.js +1 -1
  21. package/dist/commands/claude-usage-command.js +1 -1
  22. package/dist/commands/command.js +1 -1
  23. package/dist/commands/context-command.js +1 -1
  24. package/dist/commands/databases.js +1 -1
  25. package/dist/commands/describe.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/llm-command.js +1 -1
  29. package/dist/commands/llm-proxy.js +1 -1
  30. package/dist/commands/parent-segment-command.d.ts +5 -4
  31. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js.map +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pwd-command.js +1 -1
  40. package/dist/commands/segment-update-command.js +1 -1
  41. package/dist/commands/segment-use-command.js +1 -1
  42. package/dist/commands/segments.js +1 -1
  43. package/dist/commands/show.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/use-command.js +1 -1
  46. package/dist/commands/workflow-command.js +1 -1
  47. package/dist/core/auth.js +1 -1
  48. package/dist/core/config.js +1 -1
  49. package/dist/core/credential-cache.js +1 -1
  50. package/dist/core/global-context.js +1 -1
  51. package/dist/core/keychain.js +1 -1
  52. package/dist/core/profile.js +1 -1
  53. package/dist/core/project-config.js +1 -1
  54. package/dist/core/session.js +1 -1
  55. package/dist/index.js +1 -1
  56. package/dist/proxy/anthropic-adapter.js +1 -1
  57. package/dist/proxy/claude-usage-tracker.js +1 -1
  58. package/dist/proxy/context-signature.js +1 -1
  59. package/dist/proxy/conversation-utils.js +1 -1
  60. package/dist/proxy/server.js +1 -1
  61. package/dist/proxy/session-cache.js +1 -1
  62. package/dist/sdk/api.js +1 -1
  63. package/dist/sdk/engage.js +1 -1
  64. package/dist/sdk/errors.js +1 -1
  65. package/dist/sdk/index.js +1 -1
  66. package/dist/sdk/job.js +1 -1
  67. package/dist/sdk/llm.js +1 -1
  68. package/dist/sdk/query.js +1 -1
  69. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  70. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  71. package/dist/sdk/segment.d.ts.map +1 -1
  72. package/dist/sdk/segment.js +1 -1
  73. package/dist/sdk/segment.js.map +1 -1
  74. package/dist/sdk/workflow.js +1 -1
  75. package/dist/types/cdp.d.ts +1 -0
  76. package/dist/types/cdp.d.ts.map +1 -1
  77. package/dist/types/endpoints.js +1 -1
  78. package/dist/types/index.js +1 -1
  79. package/dist/utils/agent-ref-parser.js +1 -1
  80. package/dist/utils/chat-cache.js +1 -1
  81. package/dist/utils/colors.js +1 -1
  82. package/dist/utils/command-output.js +1 -1
  83. package/dist/utils/constants.js +1 -1
  84. package/dist/utils/diff.js +1 -1
  85. package/dist/utils/fields-display.d.ts +1 -0
  86. package/dist/utils/fields-display.d.ts.map +1 -1
  87. package/dist/utils/fields-display.js +1 -1
  88. package/dist/utils/fields-display.js.map +1 -1
  89. package/dist/utils/file-permissions.js +1 -1
  90. package/dist/utils/format-detector.js +1 -1
  91. package/dist/utils/formatters.js +1 -1
  92. package/dist/utils/json-loader.js +1 -1
  93. package/dist/utils/llm-backup-utils.js +1 -1
  94. package/dist/utils/model-aliases.js +1 -1
  95. package/dist/utils/model-factors.js +1 -1
  96. package/dist/utils/option-validation.js +1 -1
  97. package/dist/utils/port.js +1 -1
  98. package/dist/utils/process.js +1 -1
  99. package/dist/utils/prompt.js +1 -1
  100. package/dist/utils/segment-path-parser.js +1 -1
  101. package/dist/utils/segment-ref-parser.js +1 -1
  102. package/dist/utils/spinner.js +1 -1
  103. package/dist/utils/sql-parser.js +1 -1
  104. package/dist/utils/sse-parser.js +1 -1
  105. package/dist/utils/string-utils.js +1 -1
  106. package/dist/utils/table-ref-parser.js +1 -1
  107. package/dist/utils/tdx-logger.js +1 -1
  108. package/dist/utils/tree-formatter.js +1 -1
  109. package/dist/utils/version-check.js +1 -1
  110. package/dist/utils/workflow-utils.js +1 -1
  111. package/package.json +1 -1
@@ -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(_0x3bbdab,_0x33a957){const _0x1bc697=a84_0x5df4,_0x33ffbd=_0x3bbdab();while(!![]){try{const _0x2391a5=parseInt(_0x1bc697(0x194))/0x1*(parseInt(_0x1bc697(0x18f))/0x2)+parseInt(_0x1bc697(0x18b))/0x3*(-parseInt(_0x1bc697(0x192))/0x4)+parseInt(_0x1bc697(0x196))/0x5+parseInt(_0x1bc697(0x195))/0x6+-parseInt(_0x1bc697(0x188))/0x7+parseInt(_0x1bc697(0x191))/0x8+parseInt(_0x1bc697(0x198))/0x9;if(_0x2391a5===_0x33a957)break;else _0x33ffbd['push'](_0x33ffbd['shift']());}catch(_0x1ea904){_0x33ffbd['push'](_0x33ffbd['shift']());}}}(a84_0x5416,0x5096b));function a84_0x5416(){const _0x100a05=['text','3168952ewDNKR','592EUXkNI','pop','445012DGrNab','967956eGECHC','173160ddqBRH','tsv','954126yQIgyw','split','txt','3522736TqqIGC','json','tab','6279ALMHFm','jsonl','toLowerCase','table','2eLCrax'];a84_0x5416=function(){return _0x100a05;};return a84_0x5416();}function a84_0x5df4(_0x27d5fb,_0x3cfea5){const _0x541642=a84_0x5416();return a84_0x5df4=function(_0x5df467,_0x5926ae){_0x5df467=_0x5df467-0x188;let _0x1acb8a=_0x541642[_0x5df467];return _0x1acb8a;},a84_0x5df4(_0x27d5fb,_0x3cfea5);}export function detectFormatFromExtension(_0x4a867a){const _0x3ca0f1=a84_0x5df4,_0x406799=_0x4a867a[_0x3ca0f1(0x18d)]()[_0x3ca0f1(0x199)]('.')[_0x3ca0f1(0x193)]();switch(_0x406799){case'json':return _0x3ca0f1(0x189);case'jsonl':return _0x3ca0f1(0x18c);case _0x3ca0f1(0x197):case _0x3ca0f1(0x18a):return _0x3ca0f1(0x197);case _0x3ca0f1(0x19a):case _0x3ca0f1(0x190):return _0x3ca0f1(0x18e);default:return undefined;}}export function resolveOutputFormat(_0x2f5b12,_0x24efd1,_0x5418c9){if(_0x2f5b12)return _0x2f5b12;if(_0x24efd1){const _0x28ad9e=detectFormatFromExtension(_0x24efd1);if(_0x28ad9e)return _0x28ad9e;}return _0x5418c9;}
@@ -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(_0xfcd1b7,_0x4432ab){const _0x23e166=a85_0x2fe6,_0x253f02=_0xfcd1b7();while(!![]){try{const _0x2bfbe0=parseInt(_0x23e166(0x15f))/0x1*(-parseInt(_0x23e166(0x162))/0x2)+parseInt(_0x23e166(0x176))/0x3+parseInt(_0x23e166(0x187))/0x4+-parseInt(_0x23e166(0x17e))/0x5+parseInt(_0x23e166(0x158))/0x6+-parseInt(_0x23e166(0x15e))/0x7*(-parseInt(_0x23e166(0x174))/0x8)+-parseInt(_0x23e166(0x163))/0x9*(-parseInt(_0x23e166(0x15a))/0xa);if(_0x2bfbe0===_0x4432ab)break;else _0x253f02['push'](_0x253f02['shift']());}catch(_0x52ed58){_0x253f02['push'](_0x253f02['shift']());}}}(a85_0xfcf0,0xcae5f));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 _0x1d55f0=a85_0x2fe6;return process[_0x1d55f0(0x17a)][_0x1d55f0(0x172)]||Infinity;}export function formatAsTable(_0x2bda73,_0x18a3df=DEFAULT_MAX_DISPLAY_ROWS,_0x49cb14=![],_0x45983c={}){const _0x5a2a38=a85_0x2fe6;if(_0x2bda73[_0x5a2a38(0x157)][_0x5a2a38(0x15c)]===0x0)return _0x5a2a38(0x182);const _0x16f968=_0x2bda73[_0x5a2a38(0x172)][_0x5a2a38(0x179)](_0x168c64=>_0x168c64['name']),_0x565139=_0x2bda73['columns'][_0x5a2a38(0x179)](_0x2c65d6=>simplifyType(_0x2c65d6[_0x5a2a38(0x161)])),_0x25ab34=_0x2bda73[_0x5a2a38(0x157)]['slice'](0x0,_0x18a3df),_0x4137bb=_0x2bda73['data'][_0x5a2a38(0x15c)],_0x2ef410=_0x4137bb>_0x18a3df,_0x5e3fbd=[],_0x406011=getTerminalWidth(),_0x5097ac=_0x406011!==Infinity,_0x588e8d=0x32;let _0x539e6f=_0x16f968[_0x5a2a38(0x179)]((_0x58583e,_0x39b1be)=>{const _0x4f696b=_0x5a2a38,_0x1e177a=stringWidth(_0x565139[_0x39b1be]),_0x3ae5e8=Math['max'](..._0x25ab34[_0x4f696b(0x179)](_0xd6aa7d=>{const _0x5e4105=_0xd6aa7d[_0x58583e];return stringWidth(formatValue(_0x5e4105));})),_0x2c9ba0=Math[_0x4f696b(0x175)](stringWidth(_0x58583e),_0x1e177a,_0x3ae5e8);return _0x49cb14?_0x2c9ba0:Math[_0x4f696b(0x15b)](_0x2c9ba0,_0x588e8d);});if(_0x5097ac&&!_0x49cb14&&_0x16f968[_0x5a2a38(0x15c)]>0x0){const _0x139163=_0x2fdc3f=>{let _0x7f05dd=0x1;for(const _0x2e2776 of _0x2fdc3f){_0x7f05dd+=_0x2e2776+0x3;}return _0x7f05dd+0x1;};let _0x4f0d0d=_0x139163(_0x539e6f);if(_0x4f0d0d>_0x406011){const _0x3d1e22=0x3;for(let _0x19561e=_0x539e6f['length']-0x1;_0x19561e>=0x0;_0x19561e--){_0x4f0d0d=_0x139163(_0x539e6f);if(_0x4f0d0d<=_0x406011)break;const _0x28496a=_0x539e6f[_0x19561e],_0x223bae=_0x4f0d0d-_0x406011,_0x4974f2=_0x28496a-_0x3d1e22,_0xeeb74f=Math[_0x5a2a38(0x15b)](_0x223bae,_0x4974f2);_0xeeb74f>0x0&&(_0x539e6f[_0x19561e]=_0x28496a-_0xeeb74f);}}}const _0x2ad53c=_0x16f968,_0x249dd3=_0x565139,_0x3ccd09=_0x539e6f,_0x3ca754=_0x539e6f;_0x5e3fbd[_0x5a2a38(0x189)](colorBorder('┌'+_0x3ca754[_0x5a2a38(0x179)](_0x428bdf=>'─'[_0x5a2a38(0x166)](_0x428bdf+0x2))[_0x5a2a38(0x185)]('┬')+'┐',_0x45983c));const _0x27b61f=_0x2ad53c[_0x5a2a38(0x179)]((_0x1e7154,_0x26e11e)=>centerAlign(_0x1e7154,_0x3ccd09[_0x26e11e]));_0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x27b61f[_0x5a2a38(0x185)]('\x20'+colorBorder('│',_0x45983c)+'\x20')+'\x20'+colorBorder('│',_0x45983c));const _0x154a9e=_0x249dd3[_0x5a2a38(0x179)]((_0xe5c72a,_0x10dc52)=>colorType(centerAlign(_0xe5c72a,_0x3ccd09[_0x10dc52]),_0x45983c));_0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x154a9e[_0x5a2a38(0x185)]('\x20'+colorBorder('│',_0x45983c)+'\x20')+'\x20'+colorBorder('│',_0x45983c)),_0x5e3fbd['push'](colorBorder('├'+_0x3ca754[_0x5a2a38(0x179)](_0x58dcbb=>'─'[_0x5a2a38(0x166)](_0x58dcbb+0x2))[_0x5a2a38(0x185)]('┼')+'┤',_0x45983c));const _0x11cb8d=(_0x66db84,_0x2bf798)=>{const _0x24c5fd=_0x5a2a38,_0x397269=stringWidth(_0x66db84);if(_0x397269<=_0x2bf798)return _0x66db84;let _0x50ff15=_0x66db84;while(stringWidth(_0x50ff15+'…')>_0x2bf798&&_0x50ff15['length']>0x0){_0x50ff15=_0x50ff15[_0x24c5fd(0x170)](0x0,-0x1);}return _0x50ff15+'…';};_0x25ab34[_0x5a2a38(0x17f)](_0x578579=>{const _0x27b2fa=_0x5a2a38,_0x46ddea=_0x16f968[_0x27b2fa(0x179)]((_0xdc4677,_0x30493f)=>{const _0x16a600=_0x27b2fa,_0x1463f8=_0x578579[_0xdc4677],_0x74124f=formatValue(_0x1463f8),_0x1d729c=_0x3ccd09[_0x30493f],_0x1a0bc4=_0x11cb8d(_0x74124f,_0x1d729c),_0x3533da=typeof _0x1463f8===_0x16a600(0x160)||typeof _0x1463f8==='string'&&/^-?\d+$/[_0x16a600(0x16a)](_0x1463f8);return _0x3533da?padStart(_0x1a0bc4,_0x1d729c):padEnd(_0x1a0bc4,_0x1d729c);});_0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x46ddea['join']('\x20'+colorBorder('│',_0x45983c)+'\x20')+'\x20'+colorBorder('│',_0x45983c));});const _0x23935a=_0x3ca754[_0x5a2a38(0x165)]((_0x1fd7cc,_0x4a6e7e)=>_0x1fd7cc+_0x4a6e7e+0x3,-0x1);_0x5e3fbd[_0x5a2a38(0x189)](colorBorder('├'+_0x3ca754[_0x5a2a38(0x179)](_0x2cd98a=>'─'['repeat'](_0x2cd98a+0x2))[_0x5a2a38(0x185)]('┴')+'┤',_0x45983c));let _0x47fc53;_0x2ef410?_0x47fc53=_0x4137bb+_0x5a2a38(0x173)+_0x18a3df+_0x5a2a38(0x18b):_0x47fc53=_0x4137bb+_0x5a2a38(0x16f)+(_0x4137bb===0x1?'':'s');const _0x19722a=_0x47fc53[_0x5a2a38(0x16c)](_0x23935a-0x2);return _0x5e3fbd['push'](colorBorder('│',_0x45983c)+'\x20'+_0x19722a+'\x20'+colorBorder('│',_0x45983c)),_0x5e3fbd['push'](colorBorder('└'+'─'[_0x5a2a38(0x166)](_0x23935a)+'┘',_0x45983c)),_0x5e3fbd[_0x5a2a38(0x185)]('\x0a');}function a85_0x2fe6(_0x31b267,_0x9e0301){const _0xfcf02b=a85_0xfcf0();return a85_0x2fe6=function(_0x2fe674,_0x13c3f0){_0x2fe674=_0x2fe674-0x156;let _0x5c38d1=_0xfcf02b[_0x2fe674];return _0x5c38d1;},a85_0x2fe6(_0x31b267,_0x9e0301);}function simplifyType(_0x2d663f){const _0xb3d926=a85_0x2fe6,_0x3a2ed4={'varchar':'string','bigint':_0xb3d926(0x18a),'integer':_0xb3d926(0x169),'double':_0xb3d926(0x186),'boolean':'bool','date':'date','timestamp':_0xb3d926(0x17b),'array':_0xb3d926(0x156),'map':_0xb3d926(0x179),'row':'row'},_0x4daec0=_0x2d663f[_0xb3d926(0x188)]();for(const [_0x1f3945,_0x1a3eb7]of Object[_0xb3d926(0x168)](_0x3a2ed4)){if(_0x4daec0[_0xb3d926(0x159)](_0x1f3945))return _0x1a3eb7;}return _0x2d663f[_0xb3d926(0x15c)]>0xa?_0x2d663f[_0xb3d926(0x167)](0x0,0xa):_0x2d663f;}export function formatAsJSON(_0x5a681c,_0x21421a={}){const _0x30a05d=a85_0x2fe6;if(_0x5a681c[_0x30a05d(0x157)][_0x30a05d(0x15c)]===0x0)return'[]';if(shouldUseColor(_0x21421a))return colorizeJSON(_0x5a681c[_0x30a05d(0x157)],_0x21421a);const _0x2aa82a=_0x5a681c[_0x30a05d(0x157)][_0x30a05d(0x179)](_0x2fc05d=>'\x20\x20'+JSON[_0x30a05d(0x181)](_0x2fc05d));return'[\x0a'+_0x2aa82a[_0x30a05d(0x185)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x2233da,_0x2be3cb={}){const _0x29ef45=a85_0x2fe6;if(_0x2233da['data'][_0x29ef45(0x15c)]===0x0)return'';if(shouldUseColor(_0x2be3cb))return _0x2233da[_0x29ef45(0x157)][_0x29ef45(0x179)](_0x361e3f=>colorizeJSONCompact(_0x361e3f,_0x2be3cb))[_0x29ef45(0x185)]('\x0a');return _0x2233da[_0x29ef45(0x157)]['map'](_0x1b261c=>JSON['stringify'](_0x1b261c))[_0x29ef45(0x185)]('\x0a');}export function formatAsTSV(_0x3011e6){const _0x131f2a=a85_0x2fe6;if(_0x3011e6[_0x131f2a(0x157)][_0x131f2a(0x15c)]===0x0)return'';const _0x5428d3=[],_0x466a95=_0x3011e6['columns']['map'](_0x243de6=>_0x243de6[_0x131f2a(0x164)]);return _0x5428d3[_0x131f2a(0x189)](_0x466a95[_0x131f2a(0x185)]('\x09')),_0x3011e6[_0x131f2a(0x157)][_0x131f2a(0x17f)](_0x85a6d7=>{const _0x4f90bb=_0x131f2a,_0xe019cf=_0x466a95[_0x4f90bb(0x179)](_0x56e842=>{const _0xb25e29=_0x85a6d7[_0x56e842];return formatValueForTSV(_0xb25e29);});_0x5428d3[_0x4f90bb(0x189)](_0xe019cf[_0x4f90bb(0x185)]('\x09'));}),_0x5428d3['join']('\x0a');}function formatValue(_0x504d85){const _0x1b2e8a=a85_0x2fe6;if(_0x504d85===null||_0x504d85===undefined)return'';if(typeof _0x504d85===_0x1b2e8a(0x177)){const _0x284ec4=_0x504d85[_0x1b2e8a(0x17c)](/\n/g,'\x5cn')[_0x1b2e8a(0x17c)](/\r/g,'\x5cr')[_0x1b2e8a(0x17c)](/\t/g,'\x5ct');return _0x284ec4;}if(typeof _0x504d85===_0x1b2e8a(0x160))return String(_0x504d85);if(typeof _0x504d85===_0x1b2e8a(0x180))return _0x504d85?_0x1b2e8a(0x171):'false';if(_0x504d85 instanceof Date)return _0x504d85[_0x1b2e8a(0x15d)]();if(typeof _0x504d85===_0x1b2e8a(0x16b))return JSON[_0x1b2e8a(0x181)](_0x504d85);return String(_0x504d85);}function a85_0xfcf0(){const _0x21fd0f=['2627100UQhhpk','toLowerCase','push','long','\x20shown)','array','data','203052mMXzZk','startsWith','1683970neFqcB','min','length','toISOString','2766085mXtMgN','606097BBjIkK','number','type','2BryNwd','9hVLNNP','name','reduce','repeat','substring','entries','int','test','object','padEnd','log','pow','\x20row','slice','true','columns','\x20rows\x20(','16TilJIw','max','2322888VlUdeY','string','table','map','stdout','timestamp','replace','json','4932260iigyeS','forEach','boolean','stringify','No\x20rows\x20returned','toFixed','toString','join','double'];a85_0xfcf0=function(){return _0x21fd0f;};return a85_0xfcf0();}function formatValueForTSV(_0x2b1fc1){const _0x58c26a=a85_0x2fe6;if(_0x2b1fc1===null||_0x2b1fc1===undefined)return'';if(typeof _0x2b1fc1===_0x58c26a(0x177))return _0x2b1fc1[_0x58c26a(0x17c)](/\t/g,'\x5ct')[_0x58c26a(0x17c)](/\n/g,'\x5cn');if(typeof _0x2b1fc1===_0x58c26a(0x160)||typeof _0x2b1fc1===_0x58c26a(0x180))return String(_0x2b1fc1);if(_0x2b1fc1 instanceof Date)return _0x2b1fc1[_0x58c26a(0x15d)]();if(typeof _0x2b1fc1===_0x58c26a(0x16b))return JSON[_0x58c26a(0x181)](_0x2b1fc1);return String(_0x2b1fc1);}export function formatQueryResult(_0x384663,_0x1adc58){const _0x2a1b85=a85_0x2fe6;switch(_0x1adc58){case _0x2a1b85(0x178):return formatAsTable(_0x384663);case _0x2a1b85(0x17d):return formatAsJSON(_0x384663);case'jsonl':return formatAsJSONL(_0x384663);case'tsv':return formatAsTSV(_0x384663);default:return formatAsJSON(_0x384663);}}export function formatBytes(_0x434cde){const _0x51cbda=a85_0x2fe6;if(_0x434cde===0x0)return'0\x20B';const _0xbdca67=['B','KB','MB','GB','TB'],_0x46e7a6=0x400,_0x47e72f=Math['floor'](Math['log'](_0x434cde)/Math[_0x51cbda(0x16d)](_0x46e7a6)),_0x4d4b89=_0x434cde/Math[_0x51cbda(0x16e)](_0x46e7a6,_0x47e72f),_0x1c9d68=_0x4d4b89>=0xa?0x1:0x2;return _0x4d4b89[_0x51cbda(0x183)](_0x1c9d68)+'\x20'+_0xbdca67[_0x47e72f];}export function formatRows(_0x18cdf9){const _0x1e98c2=a85_0x2fe6;if(_0x18cdf9==null)return'-';if(_0x18cdf9===0x0)return'0';if(_0x18cdf9<0x3e8)return _0x18cdf9[_0x1e98c2(0x184)]();const _0x38b678=['','K','M','B','T'],_0x547fb1=0x3e8,_0x19f59e=Math['floor'](Math[_0x1e98c2(0x16d)](_0x18cdf9)/Math['log'](_0x547fb1)),_0x128c00=_0x18cdf9/Math[_0x1e98c2(0x16e)](_0x547fb1,_0x19f59e),_0x2f79a2=_0x128c00>=0xa?0x1:0x2;return''+_0x128c00[_0x1e98c2(0x183)](_0x2f79a2)+_0x38b678[_0x19f59e];}
@@ -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(_0x43ae68,_0x369c71){const _0x30d8f1=a86_0x1453,_0x3074df=_0x43ae68();while(!![]){try{const _0x54fe9f=parseInt(_0x30d8f1(0x1e4))/0x1+parseInt(_0x30d8f1(0x1db))/0x2+parseInt(_0x30d8f1(0x1d8))/0x3+parseInt(_0x30d8f1(0x1d1))/0x4+parseInt(_0x30d8f1(0x1e5))/0x5+parseInt(_0x30d8f1(0x1e1))/0x6*(-parseInt(_0x30d8f1(0x1df))/0x7)+-parseInt(_0x30d8f1(0x1de))/0x8;if(_0x54fe9f===_0x369c71)break;else _0x3074df['push'](_0x3074df['shift']());}catch(_0x43a7d4){_0x3074df['push'](_0x3074df['shift']());}}}(a86_0x1958,0xbbaf3));import{readFile}from'fs/promises';function a86_0x1958(){const _0x2b7823=['parse','Invalid\x20JSON\x20in\x20file\x20\x27','2383106JFlUwH','Permission\x20denied\x20reading\x20file:\x20','PERMISSION_DENIED','28001568qzUwAJ','3773CwhDGP','Invalid\x20JSON\x20string:\x20','3930IBmCVW','Failed\x20to\x20load\x20JSON:\x20','ENOENT','626871rXTEGB','730825IsHjBv','4558092yJYlzN','code','utf-8','message','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','INTERNAL','4553652IePVzT'];a86_0x1958=function(){return _0x2b7823;};return a86_0x1958();}import{SDKError,ErrorCode}from'../sdk/errors.js';function a86_0x1453(_0x23d71a,_0x19359d){const _0x1958df=a86_0x1958();return a86_0x1453=function(_0x14530f,_0x1b1adf){_0x14530f=_0x14530f-0x1d1;let _0x575de5=_0x1958df[_0x14530f];return _0x575de5;},a86_0x1453(_0x23d71a,_0x19359d);}export async function loadJSON(_0x3d7d2b,_0x288ff5){const _0x3e3599=a86_0x1453;try{if(_0x288ff5){const _0x294a1a=await readFile(_0x3d7d2b,_0x3e3599(0x1d3));try{return JSON['parse'](_0x294a1a);}catch(_0x28ea29){throw new SDKError(ErrorCode[_0x3e3599(0x1d6)],_0x3e3599(0x1da)+_0x3d7d2b+'\x27:\x20'+(_0x28ea29 instanceof Error?_0x28ea29[_0x3e3599(0x1d4)]:String(_0x28ea29)));}}else try{return JSON[_0x3e3599(0x1d9)](_0x3d7d2b);}catch(_0x226b3c){throw new SDKError(ErrorCode[_0x3e3599(0x1d6)],_0x3e3599(0x1e0)+(_0x226b3c instanceof Error?_0x226b3c[_0x3e3599(0x1d4)]:String(_0x226b3c)));}}catch(_0x25df0b){if(_0x25df0b instanceof SDKError)throw _0x25df0b;if(_0x25df0b instanceof Error&&_0x3e3599(0x1d2)in _0x25df0b){const _0xbf7fbd=_0x25df0b;if(_0xbf7fbd[_0x3e3599(0x1d2)]===_0x3e3599(0x1e3))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x3d7d2b);else{if(_0xbf7fbd[_0x3e3599(0x1d2)]==='EACCES')throw new SDKError(ErrorCode[_0x3e3599(0x1dd)],_0x3e3599(0x1dc)+_0x3d7d2b);}}throw new SDKError(ErrorCode[_0x3e3599(0x1d7)],_0x3e3599(0x1e2)+(_0x25df0b instanceof Error?_0x25df0b[_0x3e3599(0x1d4)]:String(_0x25df0b)));}}export async function loadJSONFromOptions(_0x5d8bda,_0x21b2fc){const _0x1e7ea0=a86_0x1453;if(_0x5d8bda&&_0x21b2fc)throw new SDKError(ErrorCode[_0x1e7ea0(0x1d6)],_0x1e7ea0(0x1d5));if(_0x5d8bda)return await loadJSON(_0x5d8bda,![]);if(_0x21b2fc)return await loadJSON(_0x21b2fc,!![]);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(_0x450ec7,_0x2c75f8){const _0x4b7677=a87_0x3a41,_0x2d1a25=_0x450ec7();while(!![]){try{const _0x1952fd=-parseInt(_0x4b7677(0x13c))/0x1+parseInt(_0x4b7677(0x137))/0x2*(parseInt(_0x4b7677(0x132))/0x3)+-parseInt(_0x4b7677(0x138))/0x4+-parseInt(_0x4b7677(0x12f))/0x5+parseInt(_0x4b7677(0x133))/0x6*(-parseInt(_0x4b7677(0x136))/0x7)+-parseInt(_0x4b7677(0x131))/0x8+parseInt(_0x4b7677(0x13b))/0x9;if(_0x1952fd===_0x2c75f8)break;else _0x2d1a25['push'](_0x2d1a25['shift']());}catch(_0x581765){_0x2d1a25['push'](_0x2d1a25['shift']());}}}(a87_0x1cf8,0xb5048));export function canCreateAgent(_0x2e000c,_0x5eb2f9){const _0x4b0bc7=a87_0x3a41;for(const _0x175f9c of _0x2e000c['attributes'][_0x4b0bc7(0x130)]){if(_0x175f9c[_0x4b0bc7(0x13d)]&&!_0x5eb2f9[_0x4b0bc7(0x134)](_0x175f9c[_0x4b0bc7(0x13d)]))return![];}return!![];}export function remapToolIds(_0xf28abe,_0x4764ac,_0x4eb92c){const _0x1386d1=a87_0x3a41;return _0xf28abe[_0x1386d1(0x13a)](_0x4d4566=>({..._0x4d4566,'targetKnowledgeBaseId':_0x4d4566[_0x1386d1(0x13e)]?_0x4764ac[_0x1386d1(0x139)](_0x4d4566[_0x1386d1(0x13e)])||_0x4d4566['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x4d4566[_0x1386d1(0x13d)]?_0x4eb92c[_0x1386d1(0x139)](_0x4d4566[_0x1386d1(0x13d)])||_0x4d4566['targetAgentId']:undefined}));}export function remapVariableIds(_0x4a55ef,_0x3f1ec2){const _0x2b52e1=a87_0x3a41;return _0x4a55ef[_0x2b52e1(0x13a)](_0x26b0a9=>({..._0x26b0a9,'targetKnowledgeBaseId':_0x3f1ec2[_0x2b52e1(0x139)](_0x26b0a9[_0x2b52e1(0x13e)])||_0x26b0a9['targetKnowledgeBaseId']}));}function a87_0x3a41(_0xc7a9bf,_0x21c566){const _0x1cf83c=a87_0x1cf8();return a87_0x3a41=function(_0x3a415d,_0x385cd5){_0x3a415d=_0x3a415d-0x12f;let _0xdc1c85=_0x1cf83c[_0x3a415d];return _0xdc1c85;},a87_0x3a41(_0xc7a9bf,_0x21c566);}export function isSupportedBackupVersion(_0x3c3665){const _0x78f45a=a87_0x3a41;return _0x3c3665===_0x78f45a(0x135);}function a87_0x1cf8(){const _0x18cb36=['3vOcjTb','125010uAZJGj','has','1.0','7esQucw','1580182ZqsjHJ','3671232YjtKrV','get','map','28260414tEPKXY','1422138LAviuW','targetAgentId','targetKnowledgeBaseId','3913805pTWbxC','tools','361176fWuQel'];a87_0x1cf8=function(){return _0x18cb36;};return a87_0x1cf8();}
@@ -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_0xe3beb3=a88_0x83a4;(function(_0x1a3ee1,_0x9e77c9){const _0x5f4142=a88_0x83a4,_0x1ae023=_0x1a3ee1();while(!![]){try{const _0x4c9744=-parseInt(_0x5f4142(0x1ea))/0x1+parseInt(_0x5f4142(0x1eb))/0x2+parseInt(_0x5f4142(0x1ee))/0x3+-parseInt(_0x5f4142(0x1e8))/0x4*(parseInt(_0x5f4142(0x1e4))/0x5)+-parseInt(_0x5f4142(0x1e7))/0x6+-parseInt(_0x5f4142(0x1e5))/0x7*(parseInt(_0x5f4142(0x1e9))/0x8)+-parseInt(_0x5f4142(0x1e3))/0x9*(-parseInt(_0x5f4142(0x1ec))/0xa);if(_0x4c9744===_0x9e77c9)break;else _0x1ae023['push'](_0x1ae023['shift']());}catch(_0x5d29cc){_0x1ae023['push'](_0x1ae023['shift']());}}}(a88_0x3a8c,0xe5e37));const MODEL_ALIASES={'haiku':a88_0xe3beb3(0x1ef),'sonnet':a88_0xe3beb3(0x1ed)};function a88_0x83a4(_0x100973,_0x23b545){const _0x3a8ce=a88_0x3a8c();return a88_0x83a4=function(_0x83a4d2,_0x4bd1f5){_0x83a4d2=_0x83a4d2-0x1e3;let _0xcbbaa2=_0x3a8ce[_0x83a4d2];return _0xcbbaa2;},a88_0x83a4(_0x100973,_0x23b545);}export function extractModelAlias(_0x50f457){const _0x22bc76=a88_0xe3beb3,_0x46f1fa=_0x50f457[_0x22bc76(0x1e6)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x46f1fa)return _0x46f1fa[0x1]['toLowerCase']();return _0x50f457;}export function resolveModelAlias(_0x184f1c){return MODEL_ALIASES[_0x184f1c['toLowerCase']()]||_0x184f1c;}function a88_0x3a8c(){const _0x36620e=['36SRoJKL','8qmATap','1115629CysUeQ','3288980fgnyfN','30ZLgzTz','claude-4.5-sonnet','848190oVQsDg','claude-4.5-haiku','10373481fBYlqr','647255GLaIlU','8363215IKIGHO','match','5807946exSryg'];a88_0x3a8c=function(){return _0x36620e;};return a88_0x3a8c();}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(_0x2aef6a,_0x9527f5){const _0x343b8b=a89_0x2c0d,_0x4ce280=_0x2aef6a();while(!![]){try{const _0x1de80c=parseInt(_0x343b8b(0x13d))/0x1+parseInt(_0x343b8b(0x13f))/0x2+-parseInt(_0x343b8b(0x134))/0x3+-parseInt(_0x343b8b(0x138))/0x4*(parseInt(_0x343b8b(0x13b))/0x5)+-parseInt(_0x343b8b(0x140))/0x6+parseInt(_0x343b8b(0x137))/0x7*(-parseInt(_0x343b8b(0x142))/0x8)+parseInt(_0x343b8b(0x12f))/0x9;if(_0x1de80c===_0x9527f5)break;else _0x4ce280['push'](_0x4ce280['shift']());}catch(_0x4734a5){_0x4ce280['push'](_0x4ce280['shift']());}}}(a89_0x4669,0x32531));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x2b7fdb){const _0x313d8d=a89_0x2c0d,_0x2bd510=_0x2b7fdb['toLowerCase']();if(MODEL_FACTORS[_0x2bd510])return MODEL_FACTORS[_0x2bd510];if(_0x2bd510[_0x313d8d(0x13c)](_0x313d8d(0x13a)))return MODEL_FACTORS[_0x313d8d(0x13a)];if(_0x2bd510[_0x313d8d(0x13c)](_0x313d8d(0x13e)))return MODEL_FACTORS[_0x313d8d(0x13e)];if(_0x2bd510[_0x313d8d(0x13c)](_0x313d8d(0x139)))return MODEL_FACTORS[_0x313d8d(0x139)];return MODEL_FACTORS[_0x313d8d(0x13a)];}export function getContextLimit(_0xe53652){const _0x38cd56=a89_0x2c0d,_0x571199=_0xe53652[_0x38cd56(0x12e)]();if(_0x571199[_0x38cd56(0x13c)]('sonnet'))return CONTEXT_LIMITS[_0x38cd56(0x13a)];if(_0x571199[_0x38cd56(0x13c)](_0x38cd56(0x13e)))return CONTEXT_LIMITS[_0x38cd56(0x13e)];if(_0x571199[_0x38cd56(0x13c)](_0x38cd56(0x139)))return CONTEXT_LIMITS[_0x38cd56(0x139)];return CONTEXT_LIMITS[_0x38cd56(0x136)];}function a89_0x2c0d(_0x383412,_0x292f8b){const _0x4669a5=a89_0x4669();return a89_0x2c0d=function(_0x2c0dba,_0x147c51){_0x2c0dba=_0x2c0dba-0x12d;let _0xdfe1fb=_0x4669a5[_0x2c0dba];return _0xdfe1fb;},a89_0x2c0d(_0x383412,_0x292f8b);}export function calculateChatUnit(_0xd7751f,_0x4d7034,_0x152cfc){return(_0xd7751f+_0x4d7034)/0x1388*_0x152cfc;}export function calculateCredits(_0x16e6b0){return _0x16e6b0/0x2904;}function a89_0x4669(){const _0x493d49=['151708ekFJfg','1918686NdrQDS','Haiku\x204.5','8lPOQcY','en-US','Claude','Sonnet\x204.5','toLowerCase','5198769nIhLkV','round','Sonnet\x204','4-5','4.5','275658pEYExh','Opus\x204.5','default','429086VlXdRQ','4EgknmP','opus','sonnet','1609145kAoMMI','includes','347428BjjCcP','haiku'];a89_0x4669=function(){return _0x493d49;};return a89_0x4669();}export function getModelDisplayName(_0xbc738){const _0x1d56e4=a89_0x2c0d,_0x498f99=_0xbc738['toLowerCase']();if(_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x13a))){if(_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x132))||_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x133)))return _0x1d56e4(0x12d);return _0x1d56e4(0x131);}if(_0x498f99['includes'](_0x1d56e4(0x13e))){if(_0x498f99['includes']('4-5')||_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x133)))return _0x1d56e4(0x141);return'Haiku\x204';}if(_0x498f99[_0x1d56e4(0x13c)]('opus')){if(_0x498f99[_0x1d56e4(0x13c)](_0x1d56e4(0x132))||_0x498f99[_0x1d56e4(0x13c)]('4.5'))return _0x1d56e4(0x135);return'Opus\x204';}return _0x1d56e4(0x144);}export function formatTokenCount(_0x3fdeb2){const _0x3affd3=a89_0x2c0d;return _0x3fdeb2['toLocaleString'](_0x3affd3(0x143));}export function calculateContextPercentage(_0x4dbee9,_0x329c0c){const _0x486f6f=a89_0x2c0d,_0x57af0e=getContextLimit(_0x329c0c);return Math[_0x486f6f(0x130)](_0x4dbee9/_0x57af0e*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_0x32a1(_0x478299,_0x1c2c8e){const _0x4f7147=a90_0x4f71();return a90_0x32a1=function(_0x32a193,_0x2507c2){_0x32a193=_0x32a193-0xb0;let _0xc617b3=_0x4f7147[_0x32a193];return _0xc617b3;},a90_0x32a1(_0x478299,_0x1c2c8e);}function a90_0x4f71(){const _0x544ff4=['45016RbSflF','48061ZHMaGh','1668VZjdOe','.\x20Must\x20be\x20a\x20number.','3956COJdwx','672890RvofXV','742445jmWGTK','.\x20Must\x20be\x20an\x20integer.','1732929sNNRXo','19845qoZQnY','isInteger','99jjMRrz','number','Invalid\x20timeout\x20value:\x20','592nsglZs','25XOyQfu','138KGmPoV','6rNMPNw','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20limit\x20value:\x20'];a90_0x4f71=function(){return _0x544ff4;};return a90_0x4f71();}(function(_0xa71762,_0x2509ba){const _0x2118fa=a90_0x32a1,_0x7f5147=_0xa71762();while(!![]){try{const _0x16e520=-parseInt(_0x2118fa(0xc3))/0x1*(-parseInt(_0x2118fa(0xb8))/0x2)+-parseInt(_0x2118fa(0xb0))/0x3*(-parseInt(_0x2118fa(0xb4))/0x4)+-parseInt(_0x2118fa(0xba))/0x5*(-parseInt(_0x2118fa(0xb1))/0x6)+parseInt(_0x2118fa(0xbd))/0x7*(-parseInt(_0x2118fa(0xc2))/0x8)+-parseInt(_0x2118fa(0xbf))/0x9*(parseInt(_0x2118fa(0xb9))/0xa)+parseInt(_0x2118fa(0xbc))/0xb+parseInt(_0x2118fa(0xb6))/0xc*(parseInt(_0x2118fa(0xb5))/0xd);if(_0x16e520===_0x2509ba)break;else _0x7f5147['push'](_0x7f5147['shift']());}catch(_0x3e161d){_0x7f5147['push'](_0x7f5147['shift']());}}}(a90_0x4f71,0x6ab54));export function validateLimitOption(_0x46f1cc){const _0x2cb1f3=a90_0x32a1;if(!Number[_0x2cb1f3(0xbe)](_0x46f1cc))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x46f1cc+_0x2cb1f3(0xbb)};if(_0x46f1cc<=0x0)return{'isValid':![],'error':_0x2cb1f3(0xb3)+_0x46f1cc+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x46f1cc};}export function validateTimeoutOption(_0xb08602,_0x5db99b=0x1e){const _0x24822d=a90_0x32a1;if(_0xb08602===undefined)return{'isValid':!![],'value':_0x5db99b};const _0x2658fc=typeof _0xb08602===_0x24822d(0xc0)?_0xb08602:parseFloat(_0xb08602);if(isNaN(_0x2658fc))return{'isValid':![],'error':_0x24822d(0xc1)+_0xb08602+_0x24822d(0xb7)};if(_0x2658fc<=0x0)return{'isValid':![],'error':_0x24822d(0xc1)+_0x2658fc+_0x24822d(0xb2)};return{'isValid':!![],'value':_0x2658fc};}
@@ -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(_0x416cee,_0x13ff54){const _0xee090e=a91_0x4619,_0x86a7e1=_0x416cee();while(!![]){try{const _0x45b1c5=parseInt(_0xee090e(0x163))/0x1+parseInt(_0xee090e(0x169))/0x2+-parseInt(_0xee090e(0x161))/0x3*(-parseInt(_0xee090e(0x167))/0x4)+-parseInt(_0xee090e(0x168))/0x5*(-parseInt(_0xee090e(0x160))/0x6)+-parseInt(_0xee090e(0x16b))/0x7+parseInt(_0xee090e(0x16c))/0x8+-parseInt(_0xee090e(0x166))/0x9*(parseInt(_0xee090e(0x162))/0xa);if(_0x45b1c5===_0x13ff54)break;else _0x86a7e1['push'](_0x86a7e1['shift']());}catch(_0x2b62ff){_0x86a7e1['push'](_0x86a7e1['shift']());}}}(a91_0x1bb4,0x9f6df));import{createServer}from'node:net';function a91_0x1bb4(){const _0x29a66a=['9SBtumV','10940GebUHA','5mNaboX','1513644MgPqCQ','close','3088407QOElNi','10285536KBSmYN','once','\x20and\x20','No\x20available\x20port\x20found\x20between\x20','2658102wXlIbH','237UPABHV','20768390qvrxrx','469467ejCAne','listen','code'];a91_0x1bb4=function(){return _0x29a66a;};return a91_0x1bb4();}function a91_0x4619(_0x5f068a,_0x1f1f3d){const _0x1bb4f8=a91_0x1bb4();return a91_0x4619=function(_0x461970,_0x99bac4){_0x461970=_0x461970-0x160;let _0xd32c96=_0x1bb4f8[_0x461970];return _0xd32c96;},a91_0x4619(_0x5f068a,_0x1f1f3d);}export async function isPortAvailable(_0x1033c8){return new Promise(_0x5114ff=>{const _0x105a2b=a91_0x4619,_0x3e71ba=createServer();_0x3e71ba[_0x105a2b(0x16d)]('error',_0x58f5e3=>{const _0x2e5a0e=_0x105a2b;_0x58f5e3[_0x2e5a0e(0x165)]==='EADDRINUSE'?_0x5114ff(![]):_0x5114ff(![]);}),_0x3e71ba[_0x105a2b(0x16d)]('listening',()=>{const _0x43018e=_0x105a2b;_0x3e71ba[_0x43018e(0x16a)](),_0x5114ff(!![]);}),_0x3e71ba[_0x105a2b(0x164)](_0x1033c8,'0.0.0.0');});}export async function findAvailablePort(_0x5b525e=0xfa0,_0x3faa9c=0x64){const _0xf00c9e=a91_0x4619;for(let _0x2b4aa5=0x0;_0x2b4aa5<_0x3faa9c;_0x2b4aa5++){const _0x2c9288=_0x5b525e+_0x2b4aa5;if(await isPortAvailable(_0x2c9288))return _0x2c9288;}throw new Error(_0xf00c9e(0x16f)+_0x5b525e+_0xf00c9e(0x16e)+(_0x5b525e+_0x3faa9c-0x1));}
@@ -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_0x312f4f=a92_0x5ac4;(function(_0xefac87,_0xa2d936){const _0x5c7fea=a92_0x5ac4,_0x305b40=_0xefac87();while(!![]){try{const _0x4c1132=parseInt(_0x5c7fea(0xe5))/0x1+-parseInt(_0x5c7fea(0xd0))/0x2*(-parseInt(_0x5c7fea(0xd7))/0x3)+parseInt(_0x5c7fea(0xdf))/0x4*(-parseInt(_0x5c7fea(0xe6))/0x5)+parseInt(_0x5c7fea(0xe7))/0x6*(parseInt(_0x5c7fea(0xd2))/0x7)+-parseInt(_0x5c7fea(0xda))/0x8+parseInt(_0x5c7fea(0xed))/0x9+-parseInt(_0x5c7fea(0xe9))/0xa;if(_0x4c1132===_0xa2d936)break;else _0x305b40['push'](_0x305b40['shift']());}catch(_0x452a94){_0x305b40['push'](_0x305b40['shift']());}}}(a92_0xf2f6,0x206c3));import{execSync}from'node:child_process';function a92_0x5ac4(_0x225515,_0x565ac9){const _0xf2f6eb=a92_0xf2f6();return a92_0x5ac4=function(_0x5ac462,_0x58a107){_0x5ac462=_0x5ac462-0xcf;let _0x523d40=_0xf2f6eb[_0x5ac462];return _0x523d40;},a92_0x5ac4(_0x225515,_0x565ac9);}const SHELL_NAMES=new Set([a92_0x312f4f(0xcf),a92_0x312f4f(0xd8),'sh',a92_0x312f4f(0xfc),a92_0x312f4f(0xfa),a92_0x312f4f(0xef),'csh',a92_0x312f4f(0xf9),a92_0x312f4f(0xe8),a92_0x312f4f(0xdb),'nu',a92_0x312f4f(0xd3),'elvish',a92_0x312f4f(0xd1)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a92_0x312f4f(0xe1),a92_0x312f4f(0xf2)]);function getProcessInfoWindows(_0x5cc9d4){const _0x2b5b58=a92_0x312f4f;try{const _0x1d952e=execSync(_0x2b5b58(0xd5)+_0x5cc9d4+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x2b5b58(0xfb),'windowsHide':!![]})[_0x2b5b58(0xfe)](),_0x59f55b=_0x1d952e[_0x2b5b58(0xe2)]('\x0a')[_0x2b5b58(0xf8)](_0x1bf765=>_0x1bf765[_0x2b5b58(0xfe)]());if(_0x59f55b[_0x2b5b58(0xf6)]<0x2)return null;const _0x162e08=_0x59f55b[_0x59f55b[_0x2b5b58(0xf6)]-0x1][_0x2b5b58(0xe2)](',');if(_0x162e08['length']<0x3)return null;const _0x8648c5=_0x162e08[0x1]?.[_0x2b5b58(0xfe)]()||'',_0x51ee9b=parseInt(_0x162e08[0x2]?.[_0x2b5b58(0xfe)]()||'0',0xa);if(isNaN(_0x51ee9b)||!_0x8648c5)return null;return{'pid':_0x5cc9d4,'ppid':_0x51ee9b,'comm':_0x8648c5[_0x2b5b58(0xec)](/\.exe$/i,'')};}catch(_0x4d9637){return process[_0x2b5b58(0xd9)]['DEBUG']&&console['error'](_0x2b5b58(0xd6)+_0x5cc9d4+'\x20on\x20Windows:',_0x4d9637),null;}}function getProcessInfoPosix(_0x3ec2ab){const _0x35bbca=a92_0x312f4f;try{const _0x5c2bd3=execSync(_0x35bbca(0xf0)+_0x3ec2ab+_0x35bbca(0xdd),{'encoding':'utf-8'})['trim'](),[_0x14aa15,..._0x1e74e6]=_0x5c2bd3['split'](/\s+/),_0x564300=parseInt(_0x14aa15,0xa),_0x3ab415=_0x1e74e6[_0x35bbca(0xf4)]('\x20');if(isNaN(_0x564300))return null;return{'pid':_0x3ec2ab,'ppid':_0x564300,'comm':_0x3ab415};}catch(_0x350e97){return process[_0x35bbca(0xd9)][_0x35bbca(0xee)]&&console['error'](_0x35bbca(0xd6)+_0x3ec2ab+_0x35bbca(0xf7),_0x350e97),null;}}function getProcessInfo(_0x4ac7ee){if(process['platform']==='win32')return getProcessInfoWindows(_0x4ac7ee);return getProcessInfoPosix(_0x4ac7ee);}function getBasename(_0x3b110e){const _0xc6ee1c=a92_0x312f4f;return _0x3b110e[_0xc6ee1c(0xec)](/^-/,'')[_0xc6ee1c(0xe2)]('/')['pop']()?.[_0xc6ee1c(0xf3)]()||'';}function a92_0xf2f6(){const _0x541a58=['1658268CRDlNh','DEBUG','tcsh','ps\x20-p\x20','error','cursor','toLowerCase','join',',\x20using\x20fallback','length','\x20on\x20POSIX:','filter','dash','ksh','utf-8','fish',')\x20spawned\x20by\x20','trim','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','bash','34994TeiIyq','xonsh','382179hVMkhZ','ion','Found\x20ephemeral\x20shell\x20','wmic\x20process\x20where\x20ProcessId=','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','36JKVwUl','zsh','env','1696192kWHVJD','powershell','has','\x20-o\x20ppid=,comm=','ppid','4JvfFft',',\x20continuing\x20up','code','split','comm','pid','6248NsPEgP','848285jvjnum','18yeZHfP','pwsh','497710CfvYWF','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','kill','replace'];a92_0xf2f6=function(){return _0x541a58;};return a92_0xf2f6();}function isShell(_0x407aaf){const _0x3f80c4=a92_0x312f4f;return SHELL_NAMES[_0x3f80c4(0xdc)](getBasename(_0x407aaf));}function isEphemeralShellSpawner(_0x1cefc8){const _0x71fd61=a92_0x312f4f;return EPHEMERAL_SHELL_SPAWNERS[_0x71fd61(0xdc)](getBasename(_0x1cefc8));}let cachedShellPID;function findShellPID(){const _0x2c8eba=a92_0x312f4f;let _0x569aa3=process[_0x2c8eba(0xde)];const _0x213943=0xa;let _0x3b46af=0x0;while(_0x3b46af<_0x213943){const _0x31526b=getProcessInfo(_0x569aa3);if(!_0x31526b){process[_0x2c8eba(0xd9)]['DEBUG']&&console['error'](_0x2c8eba(0xea)+_0x569aa3+_0x2c8eba(0xf5));break;}if(isShell(_0x31526b['comm'])){const _0x5920bc=getProcessInfo(_0x31526b[_0x2c8eba(0xde)]);if(_0x5920bc&&isEphemeralShellSpawner(_0x5920bc[_0x2c8eba(0xe3)])){process['env'][_0x2c8eba(0xee)]&&console[_0x2c8eba(0xf1)](_0x2c8eba(0xd4)+_0x31526b['pid']+'\x20('+_0x31526b['comm']+_0x2c8eba(0xfd)+_0x5920bc[_0x2c8eba(0xe3)]+_0x2c8eba(0xe0));_0x569aa3=_0x31526b['ppid'],_0x3b46af++;continue;}return _0x31526b[_0x2c8eba(0xe4)];}if(_0x31526b['ppid']===0x0||_0x31526b[_0x2c8eba(0xde)]===0x1){if(isShell(_0x31526b[_0x2c8eba(0xe3)]))return _0x31526b[_0x2c8eba(0xe4)];break;}_0x569aa3=_0x31526b[_0x2c8eba(0xde)],_0x3b46af++;}return process[_0x2c8eba(0xd9)][_0x2c8eba(0xee)]&&console[_0x2c8eba(0xf1)](_0x2c8eba(0xff)),process['ppid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x1a7606){const _0x11ae7c=a92_0x312f4f;try{return process[_0x11ae7c(0xeb)](_0x1a7606,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(_0x335956,_0x2edcb6){const _0x2658d7=a93_0x1ab3,_0x21eb11=_0x335956();while(!![]){try{const _0x4f0440=-parseInt(_0x2658d7(0xda))/0x1*(parseInt(_0x2658d7(0xef))/0x2)+-parseInt(_0x2658d7(0xe4))/0x3*(-parseInt(_0x2658d7(0xec))/0x4)+-parseInt(_0x2658d7(0xe0))/0x5*(-parseInt(_0x2658d7(0xf4))/0x6)+parseInt(_0x2658d7(0xeb))/0x7+parseInt(_0x2658d7(0xed))/0x8+-parseInt(_0x2658d7(0xf2))/0x9*(parseInt(_0x2658d7(0xdd))/0xa)+-parseInt(_0x2658d7(0xf1))/0xb;if(_0x4f0440===_0x2edcb6)break;else _0x21eb11['push'](_0x21eb11['shift']());}catch(_0x35fc4b){_0x21eb11['push'](_0x21eb11['shift']());}}}(a93_0x514e,0xcbe30));function a93_0x1ab3(_0x5dbeee,_0x2330b8){const _0x514e33=a93_0x514e();return a93_0x1ab3=function(_0x1ab3ea,_0x5deb3a){_0x1ab3ea=_0x1ab3ea-0xda;let _0x54ee9b=_0x514e33[_0x1ab3ea];return _0x54ee9b;},a93_0x1ab3(_0x5dbeee,_0x2330b8);}function a93_0x514e(){const _0x52dd13=['stdout','402995bErrlY','close','\x20[y/N]\x20','data','102xpmYUA','stdin','setEncoding','yes','\x20(y/N):\x20','utf8','toLowerCase','897148sTUjTN','77060WgrRER','11000608Dwihkn','setRawMode','2SdIkqN','isTTY','14670007svAllC','9981vlGBaj','removeListener','78MiykYm','createInterface','pause','question','384079ApBJhQ','write','stderr','5890LHngpP','resume'];a93_0x514e=function(){return _0x52dd13;};return a93_0x514e();}import*as a93_0x2b45f1 from'readline';export async function confirm(_0x505788){const _0x278284=a93_0x1ab3,_0x4f069a=a93_0x2b45f1[_0x278284(0xf5)]({'input':process['stdin'],'output':process[_0x278284(0xdf)]});return new Promise(_0x3013ce=>{const _0x3ad719=_0x278284;_0x4f069a[_0x3ad719(0xf7)](_0x505788+_0x3ad719(0xe8),_0x10ea45=>{const _0x16cf9c=_0x3ad719;_0x4f069a[_0x16cf9c(0xe1)](),_0x3013ce(_0x10ea45[_0x16cf9c(0xea)]()==='y'||_0x10ea45[_0x16cf9c(0xea)]()===_0x16cf9c(0xe7));});});}export async function confirmKey(_0x12c600){const _0x80fc07=a93_0x1ab3;if(!process['stdin'][_0x80fc07(0xf0)])return![];return process[_0x80fc07(0xdc)][_0x80fc07(0xdb)](_0x12c600+_0x80fc07(0xe2)),new Promise(_0x54890c=>{const _0x1f51e1=_0x80fc07,_0x1647c8=process[_0x1f51e1(0xe5)];_0x1647c8[_0x1f51e1(0xee)](!![]),_0x1647c8[_0x1f51e1(0xde)](),_0x1647c8[_0x1f51e1(0xe6)](_0x1f51e1(0xe9));const _0x53ece7=_0x54618d=>{const _0x1624a6=_0x1f51e1;_0x1647c8[_0x1624a6(0xee)](![]),_0x1647c8[_0x1624a6(0xf6)](),_0x1647c8[_0x1624a6(0xf3)](_0x1624a6(0xe3),_0x53ece7);if(_0x54618d==='\x1b'){process[_0x1624a6(0xdc)][_0x1624a6(0xdb)]('\x0a'),_0x54890c(![]);return;}_0x54618d==='\x03'&&(process['stderr'][_0x1624a6(0xdb)]('\x0a'),process['exit'](0x82));if(_0x54618d[_0x1624a6(0xea)]()==='y'){process[_0x1624a6(0xdc)][_0x1624a6(0xdb)]('y\x0a'),_0x54890c(!![]);return;}process[_0x1624a6(0xdc)]['write']('\x0a'),_0x54890c(![]);};_0x1647c8['on'](_0x1f51e1(0xe3),_0x53ece7);});}
@@ -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(_0x4fa72d,_0x232a0a){const _0x2583c9=a94_0x2cfc,_0x3aebff=_0x4fa72d();while(!![]){try{const _0x281b4d=parseInt(_0x2583c9(0xa0))/0x1+-parseInt(_0x2583c9(0x99))/0x2+parseInt(_0x2583c9(0x93))/0x3+-parseInt(_0x2583c9(0x9b))/0x4*(parseInt(_0x2583c9(0xa7))/0x5)+-parseInt(_0x2583c9(0xa4))/0x6*(-parseInt(_0x2583c9(0x94))/0x7)+parseInt(_0x2583c9(0xaa))/0x8*(parseInt(_0x2583c9(0x9e))/0x9)+-parseInt(_0x2583c9(0x92))/0xa*(parseInt(_0x2583c9(0xac))/0xb);if(_0x281b4d===_0x232a0a)break;else _0x3aebff['push'](_0x3aebff['shift']());}catch(_0x4bb7e6){_0x3aebff['push'](_0x3aebff['shift']());}}}(a94_0x2457,0xdbea9));export function parsePath(_0x39483b){const _0x490f70=a94_0x2cfc;if(!_0x39483b||_0x39483b[_0x490f70(0x95)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x28b853=_0x39483b[_0x490f70(0x95)]();if(_0x28b853==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x39483b};const _0x56f52a=_0x28b853['startsWith']('/')?_0x28b853['substring'](0x1):_0x28b853,_0x965736=_0x56f52a[_0x490f70(0xa9)]('/')[_0x490f70(0x9f)](_0xe6432c=>_0xe6432c!=='');if(_0x965736[_0x490f70(0xa2)]===0x0)throw new Error(_0x490f70(0x9d));const _0x5543a1=_0x28b853[_0x490f70(0xab)]('/')||!isRelativePathSegment(_0x965736[0x0]);for(const _0x2efdb1 of _0x965736){validatePathSegment(_0x2efdb1);}return{'segments':_0x965736,'isAbsolute':_0x5543a1,'raw':_0x39483b};}function isRelativePathSegment(_0x20afd9){return _0x20afd9==='.'||_0x20afd9==='..';}function a94_0x2457(){const _0x2cf4af=['join','5BKhJDS','isAbsolute','split','4048ieqUtY','startsWith','233442hRoYjK','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','segments','slice','160ecFygv','4939341bipzwX','21JzYlQF','trim','test','pop','Path\x20segment\x20cannot\x20be\x20empty','3372022nkzQpW','push','3494916VcoOrc','Cannot\x20split\x20empty\x20path','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','3906tEzijG','filter','1399169ZACJfB','raw','length','Relative\x20path\x20cannot\x20be\x20empty','1069698ufNNnv','Cannot\x20navigate\x20above\x20root'];a94_0x2457=function(){return _0x2cf4af;};return a94_0x2457();}function validatePathSegment(_0x3bff5b){const _0x4b0839=a94_0x2cfc;if(_0x3bff5b==='')throw new Error(_0x4b0839(0x98));if(_0x3bff5b==='.'||_0x3bff5b==='..')return;if(/[\x00-\x1F\x7F]/[_0x4b0839(0x96)](_0x3bff5b))throw new Error(_0x4b0839(0xad)+_0x3bff5b);if(_0x3bff5b!==_0x3bff5b[_0x4b0839(0x95)]()){}}export function validatePath(_0x3469af){const _0x2e9836=a94_0x2cfc;if(_0x3469af[_0x2e9836(0xae)][_0x2e9836(0xa2)]===0x0&&!_0x3469af[_0x2e9836(0xa8)])throw new Error(_0x2e9836(0xa3));if(_0x3469af['isAbsolute']){if(_0x3469af['segments'][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x3273b4=0x0;for(const _0x55769b of _0x3469af[_0x2e9836(0xae)]){if(_0x55769b==='..'){if(_0x3273b4===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x3273b4--;}else _0x55769b!=='.'&&_0x3273b4++;}}}export function joinPaths(_0x12f2a6,_0x22557b){const _0x15b29b=a94_0x2cfc;if(!_0x12f2a6||_0x12f2a6==='/')return _0x22557b;if(!_0x22557b||_0x22557b==='.')return _0x12f2a6;if(_0x22557b[_0x15b29b(0xab)]('/'))return _0x22557b;const _0x464568=parsePath(_0x12f2a6),_0x275c43=parsePath(_0x22557b),_0x17e61b=[..._0x464568[_0x15b29b(0xae)]];for(const _0xdcd304 of _0x275c43[_0x15b29b(0xae)]){if(_0xdcd304==='.')continue;else{if(_0xdcd304==='..'){if(_0x17e61b[_0x15b29b(0xa2)]===0x0)throw new Error(_0x15b29b(0xa5));_0x17e61b[_0x15b29b(0x97)]();}else _0x17e61b['push'](_0xdcd304);}}const _0x43de77=_0x17e61b['join']('/');return _0x464568[_0x15b29b(0xa1)][_0x15b29b(0xab)]('/')?'/'+_0x43de77:_0x43de77;}export function normalizePath(_0x3bcc60){const _0x247fa9=a94_0x2cfc,_0x21a7cf=parsePath(_0x3bcc60),_0x301390=[];for(const _0x15e4ab of _0x21a7cf[_0x247fa9(0xae)]){if(_0x15e4ab==='.')continue;else{if(_0x15e4ab==='..'){if(_0x301390[_0x247fa9(0xa2)]===0x0){if(_0x21a7cf[_0x247fa9(0xa8)])throw new Error(_0x247fa9(0xa5));_0x301390['push']('..');}else _0x301390[_0x301390[_0x247fa9(0xa2)]-0x1]==='..'?_0x301390['push']('..'):_0x301390['pop']();}else _0x301390[_0x247fa9(0x9a)](_0x15e4ab);}}if(_0x301390[_0x247fa9(0xa2)]===0x0)return _0x21a7cf[_0x247fa9(0xa8)]?'/':'.';const _0xedee4e=_0x301390[_0x247fa9(0xa6)]('/');return _0x21a7cf['raw'][_0x247fa9(0xab)]('/')?'/'+_0xedee4e:_0xedee4e;}function a94_0x2cfc(_0x2bf3cf,_0x24a755){const _0x2457d7=a94_0x2457();return a94_0x2cfc=function(_0x2cfc42,_0x25c08d){_0x2cfc42=_0x2cfc42-0x91;let _0x502248=_0x2457d7[_0x2cfc42];return _0x502248;},a94_0x2cfc(_0x2bf3cf,_0x24a755);}export function getParentPath(_0x377556){const _0x594196=a94_0x2cfc,_0x30283e=parsePath(_0x377556);if(_0x30283e[_0x594196(0xae)][_0x594196(0xa2)]<=0x1)return'/';const _0x4d8c2c=_0x30283e['segments'][_0x594196(0x91)](0x0,-0x1)['join']('/');return _0x30283e['raw'][_0x594196(0xab)]('/')?'/'+_0x4d8c2c:_0x4d8c2c;}export function getBaseName(_0x5c4915){const _0x1f8930=a94_0x2cfc,_0xa7f722=parsePath(_0x5c4915);return _0xa7f722[_0x1f8930(0xae)][_0xa7f722[_0x1f8930(0xae)][_0x1f8930(0xa2)]-0x1]||'';}export function isChildPath(_0x3188aa,_0x50be29){const _0x3c416c=a94_0x2cfc,_0x1dc114=parsePath(_0x3188aa),_0x526cdd=parsePath(_0x50be29);if(_0x1dc114[_0x3c416c(0xae)][_0x3c416c(0xa2)]<=_0x526cdd[_0x3c416c(0xae)]['length'])return![];for(let _0x4be506=0x0;_0x4be506<_0x526cdd['segments']['length'];_0x4be506++){if(_0x1dc114[_0x3c416c(0xae)][_0x4be506]!==_0x526cdd['segments'][_0x4be506])return![];}return!![];}export function splitPath(_0x39395e){const _0xe12787=a94_0x2cfc,_0x1e97f3=parsePath(_0x39395e);if(_0x1e97f3[_0xe12787(0xae)][_0xe12787(0xa2)]===0x0)throw new Error(_0xe12787(0x9c));if(_0x1e97f3[_0xe12787(0xae)][_0xe12787(0xa2)]===0x1)return{'parent':_0x1e97f3['segments'][0x0]};return{'parent':_0x1e97f3[_0xe12787(0xae)][0x0],'child':_0x1e97f3['segments'][_0xe12787(0x91)](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(_0x3da4df,_0x47834f){const _0x2ec738=a95_0x1a0e,_0x590d57=_0x3da4df();while(!![]){try{const _0x1375ac=-parseInt(_0x2ec738(0xd6))/0x1+-parseInt(_0x2ec738(0xd7))/0x2*(-parseInt(_0x2ec738(0xdc))/0x3)+-parseInt(_0x2ec738(0xde))/0x4+parseInt(_0x2ec738(0xd9))/0x5+-parseInt(_0x2ec738(0xd8))/0x6+parseInt(_0x2ec738(0xda))/0x7*(parseInt(_0x2ec738(0xe0))/0x8)+parseInt(_0x2ec738(0xdd))/0x9*(parseInt(_0x2ec738(0xdb))/0xa);if(_0x1375ac===_0x47834f)break;else _0x590d57['push'](_0x590d57['shift']());}catch(_0x5c6794){_0x590d57['push'](_0x590d57['shift']());}}}(a95_0x2fdc,0x9ae62));function a95_0x1a0e(_0x13fdde,_0x1b9788){const _0x2fdc65=a95_0x2fdc();return a95_0x1a0e=function(_0x1a0eb4,_0x58619a){_0x1a0eb4=_0x1a0eb4-0xd6;let _0x401d6e=_0x2fdc65[_0x1a0eb4];return _0x401d6e;},a95_0x1a0e(_0x13fdde,_0x1b9788);}function a95_0x2fdc(){const _0x1c745=['Invalid\x20segment\x20reference\x20format:\x20','828131CFZAym','2QBxzMU','4508778wTnWyA','850245xZmOCL','504294EeMqeB','42110OyASvt','645501PzwLVW','2493jYSVoZ','1672932WqssyC','substring','120qDWMCr','.\x20Parent\x20name\x20cannot\x20be\x20empty'];a95_0x2fdc=function(){return _0x1c745;};return a95_0x2fdc();}export function parseSegmentRef(_0x5f53db){const _0x56a10b=a95_0x1a0e,_0x4a72b8=_0x5f53db['indexOf']('/');if(_0x4a72b8===-0x1)return{'parentId':_0x5f53db};if(_0x4a72b8===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x5f53db+_0x56a10b(0xe1));const _0x1fb3dd=_0x5f53db[_0x56a10b(0xdf)](0x0,_0x4a72b8),_0x2e3ea=_0x5f53db[_0x56a10b(0xdf)](_0x4a72b8+0x1);if(_0x2e3ea==='')throw new Error(_0x56a10b(0xe2)+_0x5f53db+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0x1fb3dd,'childId':_0x2e3ea};}
@@ -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(_0x3e2771,_0x13ee0e){const _0x5a4960=a96_0x567d,_0x409245=_0x3e2771();while(!![]){try{const _0x562e7b=parseInt(_0x5a4960(0x71))/0x1+-parseInt(_0x5a4960(0x6d))/0x2*(-parseInt(_0x5a4960(0x7f))/0x3)+parseInt(_0x5a4960(0x77))/0x4+parseInt(_0x5a4960(0x7a))/0x5+parseInt(_0x5a4960(0x6c))/0x6*(parseInt(_0x5a4960(0x79))/0x7)+parseInt(_0x5a4960(0x73))/0x8*(-parseInt(_0x5a4960(0x76))/0x9)+-parseInt(_0x5a4960(0x78))/0xa*(parseInt(_0x5a4960(0x75))/0xb);if(_0x562e7b===_0x13ee0e)break;else _0x409245['push'](_0x409245['shift']());}catch(_0xb3aa76){_0x409245['push'](_0x409245['shift']());}}}(a96_0x4e45,0x75924));function a96_0x4e45(){const _0x61ca58=['1083495KtbJat','clock','stdout','extra','19722fchQLT','2BsoJsI','cyan','jobId','phase','137053EOKpbY','start','2056zpstTw','text','3628999gdxXMf','4689lPafWX','528020GSDlII','20uLQLxC','161fWVUgE','2847315VpCiuC','isTTY','now','\x20[Job\x20ID:\x20','floor'];a96_0x4e45=function(){return _0x61ca58;};return a96_0x4e45();}import a96_0x39447b from'ora';export function createCommandSpinner(_0x5cbc1f,_0x477656={}){const _0x3af7c1=a96_0x567d,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x477656;return a96_0x39447b({'text':_0x5cbc1f,'color':_0x3af7c1(0x6e),'isEnabled':forceEnabled||process[_0x3af7c1(0x6a)][_0x3af7c1(0x7b)]&&!verbose});}export async function withSpinner(_0x37ff64,_0x35ccef,_0x3c8326={}){const _0x58d444=a96_0x567d,_0x1aeb45=_0x3c8326['clock']??(()=>Date['now']()),_0x2d9a35=createCommandSpinner(_0x37ff64,_0x3c8326);_0x2d9a35[_0x58d444(0x72)]();const _0x4bcde5=_0x1aeb45();try{const _0x380d0c=await _0x35ccef(),_0x4904a8=_0x1aeb45()-_0x4bcde5;return _0x2d9a35['stop'](),{'data':_0x380d0c,'elapsedMs':_0x4904a8};}catch(_0x164a7d){_0x2d9a35['stop']();throw _0x164a7d;}}export async function withQuerySpinner(_0x223f66,_0x35cf5d,_0x3567c7={}){const _0x2beca7=a96_0x567d,_0x1bb8c8=_0x3567c7[_0x2beca7(0x80)]??(()=>Date[_0x2beca7(0x7c)]()),_0x2dabb8=_0x3567c7['intervalFactory']??setInterval,_0x306570=createCommandSpinner(_0x223f66,_0x3567c7);_0x306570[_0x2beca7(0x72)]();const _0x7f6f6c=_0x1bb8c8(),_0xa8623d=_0x223f66['replace']('...',''),_0x33c480={},_0x4abbaa=()=>{const _0x3eda72=_0x2beca7;if(!_0x306570['isSpinning'])return;const _0x4bc08b=_0x1bb8c8()-_0x7f6f6c,_0x11f3a1=formatElapsed(_0x4bc08b),_0x3e6a0b=_0x33c480[_0x3eda72(0x70)]??_0xa8623d,_0x2e1c2f=_0x33c480[_0x3eda72(0x6f)]?_0x3eda72(0x7d)+_0x33c480[_0x3eda72(0x6f)]+']':'',_0x429948=_0x33c480[_0x3eda72(0x6b)]?'\x20'+_0x33c480[_0x3eda72(0x6b)]:'';_0x306570[_0x3eda72(0x74)]=_0x3e6a0b+'\x20'+_0x11f3a1+_0x429948+_0x2e1c2f;},_0x5c69f4=_0x2dabb8(()=>{_0x4abbaa();},0x3e8),_0x650d7a={'setPhase':_0x560639=>{const _0x2895cf=_0x2beca7;_0x33c480[_0x2895cf(0x70)]=_0x560639,_0x4abbaa();},'setJobId':_0x8a6aa3=>{const _0x22a9d6=_0x2beca7;_0x33c480[_0x22a9d6(0x6f)]=_0x8a6aa3,_0x4abbaa();},'setExtra':_0x53c48c=>{const _0x1fbad8=_0x2beca7;_0x33c480[_0x1fbad8(0x6b)]=_0x53c48c,_0x4abbaa();}};_0x4abbaa();try{const _0x57d246=await _0x35cf5d(_0x650d7a),_0x2c5f6d=_0x1bb8c8()-_0x7f6f6c;return{'data':_0x57d246,'elapsedMs':_0x2c5f6d};}finally{clearInterval(_0x5c69f4),_0x306570['stop']();}}function a96_0x567d(_0x4b3e7e,_0xc5877e){const _0x4e453e=a96_0x4e45();return a96_0x567d=function(_0x567d27,_0x57402a){_0x567d27=_0x567d27-0x6a;let _0x56c1e3=_0x4e453e[_0x567d27];return _0x56c1e3;},a96_0x567d(_0x4b3e7e,_0xc5877e);}export function formatElapsed(_0x1c133a){const _0x3e081d=a96_0x567d,_0x176584=Math[_0x3e081d(0x7e)](_0x1c133a/0x3e8);if(_0x176584<0x3c)return(_0x1c133a/0x3e8)['toFixed'](0x1)+'s';const _0xf6ce5e=Math[_0x3e081d(0x7e)](_0x176584/0x3c),_0x3e88cd=_0x176584%0x3c;if(_0xf6ce5e<0x3c)return _0xf6ce5e+'m\x20'+_0x3e88cd+'s';const _0x4f692b=Math[_0x3e081d(0x7e)](_0xf6ce5e/0x3c),_0x5d9d3d=_0xf6ce5e%0x3c;return _0x4f692b+'h\x20'+_0x5d9d3d+'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(_0x5ef2e6,_0x160d1c){const _0x4f891a=a97_0x5905,_0x137335=_0x5ef2e6();while(!![]){try{const _0x53976c=-parseInt(_0x4f891a(0x1ce))/0x1*(parseInt(_0x4f891a(0x1cf))/0x2)+parseInt(_0x4f891a(0x1d6))/0x3*(parseInt(_0x4f891a(0x1d1))/0x4)+parseInt(_0x4f891a(0x1d3))/0x5+parseInt(_0x4f891a(0x1dc))/0x6*(-parseInt(_0x4f891a(0x1c6))/0x7)+-parseInt(_0x4f891a(0x1d5))/0x8+parseInt(_0x4f891a(0x1c8))/0x9+-parseInt(_0x4f891a(0x1d0))/0xa;if(_0x53976c===_0x160d1c)break;else _0x137335['push'](_0x137335['shift']());}catch(_0x188b11){_0x137335['push'](_0x137335['shift']());}}}(a97_0x5377,0x23139));import{readFileSync}from'fs';export function stripSqlComments(_0x543547){const _0x5a6d9e=a97_0x5905;let _0x5c5c5a=_0x543547[_0x5a6d9e(0x1d8)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x5c5c5a=_0x5c5c5a[_0x5a6d9e(0x1d8)](/--.*$/gm,''),_0x5c5c5a['trim']();}function a97_0x5905(_0x58b80c,_0x499510){const _0x53775a=a97_0x5377();return a97_0x5905=function(_0x59055d,_0x305b51){_0x59055d=_0x59055d-0x1c4;let _0x2ed650=_0x53775a[_0x59055d];return _0x2ed650;},a97_0x5905(_0x58b80c,_0x499510);}function a97_0x5377(){const _0x3577e5=['trim','31003fgnasu','Error\x20reading\x20file\x20\x27','1601721cZXSCX','Content\x20contains\x20no\x20SQL\x20statements','toLowerCase','\x27\x20not\x20found','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','293vQBACK','514hEQTwx','1069120zPYmRt','10832AgfaMz','message','1206250FwdMFQ','filter','542968pohKup','276PTdkgJ','push','replace','code','File\x20\x27','EACCES','372bsdbCS','length'];a97_0x5377=function(){return _0x3577e5;};return a97_0x5377();}function isEscaped(_0x123b67,_0x3945d3){let _0x3678a3=0x0;for(let _0x4379a3=_0x3945d3-0x1;_0x4379a3>=0x0&&_0x123b67[_0x4379a3]==='\x5c';_0x4379a3--){_0x3678a3++;}return _0x3678a3%0x2===0x1;}export function splitSqlStatements(_0x594a9f){const _0x4ea164=a97_0x5905,_0xfdad1d=stripSqlComments(_0x594a9f);if(!_0xfdad1d)throw new Error(_0x4ea164(0x1c9));const _0x4af88a=[];let _0x246b0e='',_0x8b5d7a=![],_0x51eecb=![],_0x55c4d0=![];for(let _0x2cfd6c=0x0;_0x2cfd6c<_0x594a9f[_0x4ea164(0x1c4)];_0x2cfd6c++){const _0x15f33d=_0x594a9f[_0x2cfd6c];if(_0x15f33d==='\x27'&&!isEscaped(_0x594a9f,_0x2cfd6c)&&!_0x51eecb&&!_0x55c4d0)_0x8b5d7a=!_0x8b5d7a;else{if(_0x15f33d==='\x22'&&!isEscaped(_0x594a9f,_0x2cfd6c)&&!_0x8b5d7a&&!_0x55c4d0)_0x51eecb=!_0x51eecb;else _0x15f33d==='`'&&!isEscaped(_0x594a9f,_0x2cfd6c)&&!_0x8b5d7a&&!_0x51eecb&&(_0x55c4d0=!_0x55c4d0);}if(_0x15f33d===';'&&!_0x8b5d7a&&!_0x51eecb&&!_0x55c4d0){const _0x4d30c4=_0x246b0e[_0x4ea164(0x1c5)]();_0x4d30c4&&_0x4af88a[_0x4ea164(0x1d7)](_0x4d30c4),_0x246b0e='';}else _0x246b0e+=_0x15f33d;}const _0x1d6817=_0x246b0e['trim']();_0x1d6817&&_0x4af88a[_0x4ea164(0x1d7)](_0x1d6817);const _0x2fce47=_0x4af88a['map'](_0x267cd8=>_0x267cd8[_0x4ea164(0x1c5)]())[_0x4ea164(0x1d4)](_0x45b906=>{const _0x41b776=_0x4ea164,_0x1d69ee=stripSqlComments(_0x45b906);return _0x1d69ee[_0x41b776(0x1c4)]>0x0;});if(_0x2fce47[_0x4ea164(0x1c4)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x2fce47;}export function readFileContent(_0x1fbb53){const _0xeda6b4=a97_0x5905;try{return readFileSync(_0x1fbb53,'utf-8');}catch(_0x55c512){const _0x464a46=_0x55c512[_0xeda6b4(0x1d9)];if(_0x464a46===_0xeda6b4(0x1cc))throw new Error('File\x20\x27'+_0x1fbb53+_0xeda6b4(0x1cb));else{if(_0x464a46===_0xeda6b4(0x1db))throw new Error(_0xeda6b4(0x1cd)+_0x1fbb53+'\x27');else throw new Error(_0xeda6b4(0x1c7)+_0x1fbb53+'\x27:\x20'+_0x55c512[_0xeda6b4(0x1d2)]);}}}export function readSqlStatementsFromFile(_0x439190){const _0x5af490=a97_0x5905,_0x46f784=readFileContent(_0x439190);try{return splitSqlStatements(_0x46f784);}catch(_0x55a576){throw new Error(_0x5af490(0x1da)+_0x439190+'\x27\x20'+_0x55a576['message'][_0x5af490(0x1ca)]());}}
@@ -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_0x3003(_0x34a5f9,_0x5d9240){const _0x4ed599=a98_0x4ed5();return a98_0x3003=function(_0x3003c1,_0xba0fc1){_0x3003c1=_0x3003c1-0x199;let _0x380f3c=_0x4ed599[_0x3003c1];return _0x380f3c;},a98_0x3003(_0x34a5f9,_0x5d9240);}(function(_0x4904cf,_0x513473){const _0x5760a7=a98_0x3003,_0x50b951=_0x4904cf();while(!![]){try{const _0x30a1a6=parseInt(_0x5760a7(0x1ac))/0x1+parseInt(_0x5760a7(0x1a2))/0x2*(-parseInt(_0x5760a7(0x1a4))/0x3)+-parseInt(_0x5760a7(0x1aa))/0x4+parseInt(_0x5760a7(0x199))/0x5*(parseInt(_0x5760a7(0x19b))/0x6)+-parseInt(_0x5760a7(0x1a7))/0x7+-parseInt(_0x5760a7(0x1b0))/0x8*(-parseInt(_0x5760a7(0x1ad))/0x9)+parseInt(_0x5760a7(0x1a0))/0xa;if(_0x30a1a6===_0x513473)break;else _0x50b951['push'](_0x50b951['shift']());}catch(_0x523dec){_0x50b951['push'](_0x50b951['shift']());}}}(a98_0x4ed5,0xd4c0a));export async function*parseSSEStream(_0x4597d5,_0x326ba6){const _0x3c6cf5=a98_0x3003;if(!_0x4597d5[_0x3c6cf5(0x1ae)])throw new Error(_0x3c6cf5(0x19a));const _0x5b65cc=_0x4597d5[_0x3c6cf5(0x1ae)]['getReader'](),_0x4f7df6=new TextDecoder();let _0x41657f='',_0x509835={};try{while(!![]){const {done:_0x41d071,value:_0xde1204}=await _0x5b65cc[_0x3c6cf5(0x1b1)]();if(_0x41d071){if(_0x509835['data']){_0x326ba6?.[_0x3c6cf5(0x1a6)](_0x3c6cf5(0x1a9)+_0x509835[_0x3c6cf5(0x1a1)]);const _0xf2bf11=parseSSEData(_0x509835[_0x3c6cf5(0x1a1)]);yield _0xf2bf11;}break;}_0x41657f+=_0x4f7df6[_0x3c6cf5(0x1a3)](_0xde1204,{'stream':!![]});const _0x54ae1f=_0x41657f[_0x3c6cf5(0x1af)]('\x0a');_0x41657f=_0x54ae1f[_0x3c6cf5(0x1ab)]()||'';for(const _0x5b88b5 of _0x54ae1f){if(_0x5b88b5['trim']()===''){if(_0x509835['data']){_0x326ba6?.['debug'](_0x3c6cf5(0x1a9)+_0x509835[_0x3c6cf5(0x1a1)]);const _0x5257c8=parseSSEData(_0x509835['data']);yield _0x5257c8,_0x509835={};}continue;}if(_0x5b88b5[_0x3c6cf5(0x19c)](':'))continue;const _0x523da5=_0x5b88b5[_0x3c6cf5(0x19d)](':');if(_0x523da5===-0x1)continue;const _0x254521=_0x5b88b5[_0x3c6cf5(0x1a8)](0x0,_0x523da5);let _0x36781b=_0x5b88b5['slice'](_0x523da5+0x1);_0x36781b[_0x3c6cf5(0x19c)]('\x20')&&(_0x36781b=_0x36781b[_0x3c6cf5(0x1a8)](0x1));switch(_0x254521){case _0x3c6cf5(0x19e):_0x509835[_0x3c6cf5(0x19e)]=_0x36781b;break;case _0x3c6cf5(0x1a1):_0x509835[_0x3c6cf5(0x1a1)]=_0x509835[_0x3c6cf5(0x1a1)]?_0x509835[_0x3c6cf5(0x1a1)]+'\x0a'+_0x36781b:_0x36781b;break;case'id':_0x509835['id']=_0x36781b;break;}}}}finally{_0x5b65cc[_0x3c6cf5(0x1a5)]();}}function parseSSEData(_0x18be30){const _0x13e8cb=a98_0x3003;try{return JSON[_0x13e8cb(0x19f)](_0x18be30);}catch(_0x4b5ff3){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x18be30,{'cause':_0x4b5ff3});}}function a98_0x4ed5(){const _0x57fa8b=['event','parse','16410970ONoUqs','data','1284742PaEXAl','decode','3OFWvok','releaseLock','debug','10743691OHOBgG','slice','[LLM\x20API\x20SSE]\x20','4334508NJdndQ','pop','1055124eFYJLO','4000113qKJsWE','body','split','16SumdVO','read','2735550oIaPgY','Response\x20body\x20is\x20null','6oxHVmb','startsWith','indexOf'];a98_0x4ed5=function(){return _0x57fa8b;};return a98_0x4ed5();}
@@ -1 +1 @@
1
- function a99_0x3282(_0xa53d66,_0xe30f94){const _0x4fe8d6=a99_0x4fe8();return a99_0x3282=function(_0x3282e0,_0x19cfa4){_0x3282e0=_0x3282e0-0x1ec;let _0xdd1ed2=_0x4fe8d6[_0x3282e0];return _0xdd1ed2;},a99_0x3282(_0xa53d66,_0xe30f94);}(function(_0x4fc00c,_0x177bde){const _0xb755a3=a99_0x3282,_0x357c50=_0x4fc00c();while(!![]){try{const _0x110187=-parseInt(_0xb755a3(0x1ff))/0x1+parseInt(_0xb755a3(0x200))/0x2*(-parseInt(_0xb755a3(0x1fd))/0x3)+-parseInt(_0xb755a3(0x1f1))/0x4+-parseInt(_0xb755a3(0x1f4))/0x5*(parseInt(_0xb755a3(0x1f2))/0x6)+-parseInt(_0xb755a3(0x1f0))/0x7*(-parseInt(_0xb755a3(0x1fa))/0x8)+parseInt(_0xb755a3(0x1fc))/0x9*(parseInt(_0xb755a3(0x1fe))/0xa)+parseInt(_0xb755a3(0x1ed))/0xb*(parseInt(_0xb755a3(0x205))/0xc);if(_0x110187===_0x177bde)break;else _0x357c50['push'](_0x357c50['shift']());}catch(_0x2a9642){_0x357c50['push'](_0x357c50['shift']());}}}(a99_0x4fe8,0x5f9b1));import a99_0x52a274 from'string-width';export function stringWidth(_0x1c5465){return a99_0x52a274(_0x1c5465);}export function padEnd(_0x2fb7a9,_0x1d0d0f){const _0x2e3347=a99_0x3282,_0x1bb502=stringWidth(_0x2fb7a9);if(_0x1bb502>=_0x1d0d0f)return _0x2fb7a9;return _0x2fb7a9+'\x20'[_0x2e3347(0x203)](_0x1d0d0f-_0x1bb502);}export function padStart(_0x23880c,_0x2db198){const _0x4f7778=stringWidth(_0x23880c);if(_0x4f7778>=_0x2db198)return _0x23880c;return'\x20'['repeat'](_0x2db198-_0x4f7778)+_0x23880c;}export function centerAlign(_0x2d2bd2,_0x4e11c8){const _0x3de220=a99_0x3282,_0x4eca9d=stringWidth(_0x2d2bd2);if(_0x4eca9d>_0x4e11c8){if(_0x4e11c8<=0x1)return'…'[_0x3de220(0x1ef)](0x0,_0x4e11c8);let _0x4fddba=_0x2d2bd2;while(stringWidth(_0x4fddba+'…')>_0x4e11c8){_0x4fddba=_0x4fddba['slice'](0x0,-0x1);}return _0x4fddba+'…';}if(_0x4eca9d===_0x4e11c8)return _0x2d2bd2;const _0x5d4414=_0x4e11c8-_0x4eca9d,_0x2318b9=Math['floor'](_0x5d4414/0x2),_0x5eb2e3=_0x5d4414-_0x2318b9;return'\x20'[_0x3de220(0x203)](_0x2318b9)+_0x2d2bd2+'\x20'[_0x3de220(0x203)](_0x5eb2e3);}function a99_0x4fe8(){const _0x3f848f=['replace','trim','repeat','length','492RaGvrO','padStart','Cannot\x20escape\x20empty\x20string\x20literal','262427puqpyW','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','substring','77NmvDUI','945464ordaGV','150jGKuhN','floor','5315eKjnVL','USER','USERNAME','toLowerCase','\x5c$&','random','171664JmilfN','test','99pOFvRR','1506453ujxrEn','440000QogoGs','541482wRcnqj','2UXdKDA'];a99_0x4fe8=function(){return _0x3f848f;};return a99_0x4fe8();}export function escapeStringLiteral(_0x17e5f6){const _0x35dad4=a99_0x3282;if(!_0x17e5f6||_0x17e5f6['trim']()['length']===0x0)throw new Error(_0x35dad4(0x1ec));const _0x15213f=_0x17e5f6['replace'](/'/g,'\x27\x27');return'\x27'+_0x15213f+'\x27';}export function globToLike(_0x5c08a5){const _0x1c63bf=a99_0x3282;let _0x1378e7=_0x5c08a5[_0x1c63bf(0x201)](/\\/g,'\x5c\x5c')[_0x1c63bf(0x201)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x1378e7=_0x1378e7[_0x1c63bf(0x201)](/\*/g,'%')['replace'](/\?/g,'_'),_0x1378e7;}export function buildLikePattern(_0x179925){const _0x1c3657=a99_0x3282;if(!_0x179925||_0x179925[_0x1c3657(0x202)]()[_0x1c3657(0x204)]===0x0)throw new Error(_0x1c3657(0x1ee));const _0x123cb4=globToLike(_0x179925),_0x4bbb88=_0x123cb4['replace'](/'/g,'\x27\x27');return'\x27'+_0x4bbb88+'\x27';}export function matchGlobPattern(_0x16fe33,_0x222178){const _0x40cd41=a99_0x3282,_0x23ac8d=_0x222178[_0x40cd41(0x201)](/[.+^${}()|[\]\\]/g,_0x40cd41(0x1f8))[_0x40cd41(0x201)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x1fafec=new RegExp('^'+_0x23ac8d+'$');return _0x1fafec[_0x40cd41(0x1fb)](_0x16fe33);}export function getSanitizedUsername(){const _0x3dba07=a99_0x3282,_0x159951=process['env'][_0x3dba07(0x1f5)]||process['env'][_0x3dba07(0x1f6)]||'unknown';return _0x159951[_0x3dba07(0x201)](/[^a-zA-Z0-9]/g,'')[_0x3dba07(0x1f7)]();}export function generateRandomHex(){const _0x1799a4=a99_0x3282,_0x4c9199=Math[_0x1799a4(0x1f3)](Math[_0x1799a4(0x1f9)]()*0xfffff);return _0x4c9199['toString'](0x10)[_0x1799a4(0x206)](0x5,'0');}
1
+ (function(_0xcfdcee,_0x1f69ca){const _0x4d255e=a99_0x52da,_0x103f6a=_0xcfdcee();while(!![]){try{const _0x2d2874=-parseInt(_0x4d255e(0x97))/0x1*(parseInt(_0x4d255e(0x98))/0x2)+-parseInt(_0x4d255e(0x8c))/0x3*(-parseInt(_0x4d255e(0x84))/0x4)+parseInt(_0x4d255e(0x81))/0x5+-parseInt(_0x4d255e(0x8b))/0x6+parseInt(_0x4d255e(0x95))/0x7+parseInt(_0x4d255e(0x8d))/0x8+-parseInt(_0x4d255e(0x83))/0x9*(parseInt(_0x4d255e(0x8f))/0xa);if(_0x2d2874===_0x1f69ca)break;else _0x103f6a['push'](_0x103f6a['shift']());}catch(_0x13fd6d){_0x103f6a['push'](_0x103f6a['shift']());}}}(a99_0x473b,0xbfa6d));import a99_0x3662bf from'string-width';export function stringWidth(_0x11476a){return a99_0x3662bf(_0x11476a);}export function padEnd(_0xf75dda,_0x43397b){const _0x30a77a=a99_0x52da,_0x37e262=stringWidth(_0xf75dda);if(_0x37e262>=_0x43397b)return _0xf75dda;return _0xf75dda+'\x20'[_0x30a77a(0x8e)](_0x43397b-_0x37e262);}export function padStart(_0x56abf3,_0x230972){const _0x19a31f=stringWidth(_0x56abf3);if(_0x19a31f>=_0x230972)return _0x56abf3;return'\x20'['repeat'](_0x230972-_0x19a31f)+_0x56abf3;}function a99_0x52da(_0x4d7044,_0x326247){const _0x473b09=a99_0x473b();return a99_0x52da=function(_0x52dab5,_0x388e7a){_0x52dab5=_0x52dab5-0x80;let _0x384e4c=_0x473b09[_0x52dab5];return _0x384e4c;},a99_0x52da(_0x4d7044,_0x326247);}export function centerAlign(_0x52814e,_0x5675d0){const _0x82ca3b=a99_0x52da,_0x5795a7=stringWidth(_0x52814e);if(_0x5795a7>_0x5675d0){if(_0x5675d0<=0x1)return'…'[_0x82ca3b(0x87)](0x0,_0x5675d0);let _0x48d7de=_0x52814e;while(stringWidth(_0x48d7de+'…')>_0x5675d0){_0x48d7de=_0x48d7de[_0x82ca3b(0x92)](0x0,-0x1);}return _0x48d7de+'…';}if(_0x5795a7===_0x5675d0)return _0x52814e;const _0x128e4e=_0x5675d0-_0x5795a7,_0x16857f=Math[_0x82ca3b(0x94)](_0x128e4e/0x2),_0x585f68=_0x128e4e-_0x16857f;return'\x20'[_0x82ca3b(0x8e)](_0x16857f)+_0x52814e+'\x20'[_0x82ca3b(0x8e)](_0x585f68);}export function escapeStringLiteral(_0xd8dbc6){const _0x177929=a99_0x52da;if(!_0xd8dbc6||_0xd8dbc6[_0x177929(0x89)]()[_0x177929(0x85)]===0x0)throw new Error(_0x177929(0x82));const _0xa898c1=_0xd8dbc6['replace'](/'/g,'\x27\x27');return'\x27'+_0xa898c1+'\x27';}export function globToLike(_0x5511c5){const _0x3f38cc=a99_0x52da;let _0x8fc3b7=_0x5511c5[_0x3f38cc(0x88)](/\\/g,'\x5c\x5c')[_0x3f38cc(0x88)](/%/g,'\x5c%')[_0x3f38cc(0x88)](/_/g,'\x5c_');return _0x8fc3b7=_0x8fc3b7['replace'](/\*/g,'%')[_0x3f38cc(0x88)](/\?/g,'_'),_0x8fc3b7;}export function buildLikePattern(_0x9bf705){const _0x302fd9=a99_0x52da;if(!_0x9bf705||_0x9bf705['trim']()[_0x302fd9(0x85)]===0x0)throw new Error(_0x302fd9(0x96));const _0x25352c=globToLike(_0x9bf705),_0x243d34=_0x25352c[_0x302fd9(0x88)](/'/g,'\x27\x27');return'\x27'+_0x243d34+'\x27';}export function matchGlobPattern(_0x5d20c1,_0x1d8934){const _0x4b0403=a99_0x52da,_0x3435d8=_0x1d8934[_0x4b0403(0x88)](/[.+^${}()|[\]\\]/g,_0x4b0403(0x91))[_0x4b0403(0x88)](/\*/g,'.*')[_0x4b0403(0x88)](/\?/g,'.'),_0x513fbf=new RegExp('^'+_0x3435d8+'$');return _0x513fbf[_0x4b0403(0x8a)](_0x5d20c1);}export function getSanitizedUsername(){const _0x31d77d=a99_0x52da,_0x5546f0=process[_0x31d77d(0x80)][_0x31d77d(0x93)]||process[_0x31d77d(0x80)][_0x31d77d(0x86)]||'unknown';return _0x5546f0[_0x31d77d(0x88)](/[^a-zA-Z0-9]/g,'')[_0x31d77d(0x90)]();}function a99_0x473b(){const _0x13b795=['env','1842285cQQbsf','Cannot\x20escape\x20empty\x20string\x20literal','983907YTQyNb','76OtNntM','length','USERNAME','substring','replace','trim','test','5122386voJrZr','131259QTVkgK','2913976nxMfny','repeat','70UnRuWC','toLowerCase','\x5c$&','slice','USER','floor','6185984FdfkyY','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','21863vFoIOB','4DwjAno'];a99_0x473b=function(){return _0x13b795;};return a99_0x473b();}export function generateRandomHex(){const _0x3a0864=a99_0x52da,_0x266c44=Math[_0x3a0864(0x94)](Math['random']()*0xfffff);return _0x266c44['toString'](0x10)['padStart'](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x5c3277,_0x133d42){const _0x1803c8=a100_0x3f93,_0x69eee3=_0x5c3277();while(!![]){try{const _0x842c50=parseInt(_0x1803c8(0x180))/0x1+-parseInt(_0x1803c8(0x182))/0x2*(-parseInt(_0x1803c8(0x172))/0x3)+parseInt(_0x1803c8(0x16a))/0x4*(parseInt(_0x1803c8(0x17b))/0x5)+-parseInt(_0x1803c8(0x17d))/0x6*(parseInt(_0x1803c8(0x16c))/0x7)+parseInt(_0x1803c8(0x171))/0x8+parseInt(_0x1803c8(0x17a))/0x9+parseInt(_0x1803c8(0x16e))/0xa*(-parseInt(_0x1803c8(0x176))/0xb);if(_0x842c50===_0x133d42)break;else _0x69eee3['push'](_0x69eee3['shift']());}catch(_0x59c60f){_0x69eee3['push'](_0x69eee3['shift']());}}}(a100_0x34ec,0x2725b));function a100_0x3f93(_0x3e16e3,_0x439acc){const _0x34ec5d=a100_0x34ec();return a100_0x3f93=function(_0x3f93e6,_0x14785a){_0x3f93e6=_0x3f93e6-0x169;let _0x429d28=_0x34ec5d[_0x3f93e6];return _0x429d28;},a100_0x3f93(_0x3e16e3,_0x439acc);}function hasWildcard(_0x4365b7){const _0x458587=a100_0x3f93;return _0x4365b7[_0x458587(0x170)]('*')||_0x4365b7[_0x458587(0x170)]('?');}function a100_0x34ec(){const _0xd6773b=['Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','78001HfRAZP','join','2DXmVHw','length','split','331504SNcARf','Pattern\x20cannot\x20be\x20just\x20a\x20dot','21PhcYow','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','1256270tWiBLy','trim','includes','396392ldjDEz','79593lJOmLq','push','database','catalog','11zLANVQ','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','1479510DfcWTN','10KjVrAH','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','396498KeYZQl','Table\x20name\x20is\x20required\x20for\x20describe\x20operation'];a100_0x34ec=function(){return _0xd6773b;};return a100_0x34ec();}export function parseTableReference(_0x2ba750){const _0x465503=a100_0x3f93;if(!_0x2ba750||_0x2ba750[_0x465503(0x16f)]()[_0x465503(0x183)]===0x0)throw new Error(_0x465503(0x179));const _0xf6ecf5=_0x2ba750[_0x465503(0x16f)](),_0x56f3d8={'original':_0xf6ecf5},_0x1b00ce=_0xf6ecf5[_0x465503(0x169)]('.');if(_0x1b00ce[_0x465503(0x183)]===0x1){const _0x3780ae=_0x1b00ce[0x0];if(!_0x3780ae)throw new Error(_0x465503(0x16b));_0x56f3d8['table']=_0x3780ae;}else{if(_0x1b00ce[_0x465503(0x183)]===0x2){const [_0x4067f8,_0x149b8d]=_0x1b00ce;if(!_0x4067f8)throw new Error(_0x465503(0x17c));if(!_0x149b8d)throw new Error(_0x465503(0x16d));_0x56f3d8[_0x465503(0x174)]=_0x4067f8,_0x56f3d8[_0x465503(0x178)]=_0x149b8d;}else{if(_0x1b00ce[_0x465503(0x183)]===0x3){const [_0x42f446,_0x286198,_0x54adb0]=_0x1b00ce;if(!_0x42f446||!_0x286198||!_0x54adb0)throw new Error('Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty');_0x56f3d8[_0x465503(0x175)]=_0x42f446,_0x56f3d8[_0x465503(0x174)]=_0x286198,_0x56f3d8['table']=_0x54adb0;}else throw new Error(_0x465503(0x177));}}return _0x56f3d8;}export function formatTableReference(_0x25128c){const _0x2cec46=a100_0x3f93,_0x350620=[];return _0x25128c[_0x2cec46(0x175)]&&_0x350620['push'](_0x25128c[_0x2cec46(0x175)]),_0x25128c[_0x2cec46(0x174)]&&_0x350620[_0x2cec46(0x173)](_0x25128c[_0x2cec46(0x174)]),_0x25128c[_0x2cec46(0x178)]&&_0x350620[_0x2cec46(0x173)](_0x25128c['table']),_0x350620[_0x2cec46(0x181)]('.');}export function validateTableListReference(_0x580efb){return undefined;}export function validateTableDescribeReference(_0x1b682e){const _0x41b19b=a100_0x3f93;if(!_0x1b682e[_0x41b19b(0x178)])return _0x41b19b(0x17e);if(_0x1b682e[_0x41b19b(0x174)]&&hasWildcard(_0x1b682e[_0x41b19b(0x174)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x1b682e[_0x41b19b(0x178)]))return _0x41b19b(0x17f);return undefined;}
1
+ (function(_0x360d96,_0x321b34){const _0x3dc742=a100_0x46b1,_0x3c3a38=_0x360d96();while(!![]){try{const _0x5e405c=-parseInt(_0x3dc742(0x1f5))/0x1*(-parseInt(_0x3dc742(0x1f2))/0x2)+-parseInt(_0x3dc742(0x1e8))/0x3*(parseInt(_0x3dc742(0x1e7))/0x4)+-parseInt(_0x3dc742(0x1f7))/0x5+parseInt(_0x3dc742(0x1e9))/0x6+parseInt(_0x3dc742(0x1f9))/0x7*(-parseInt(_0x3dc742(0x1ea))/0x8)+-parseInt(_0x3dc742(0x1f3))/0x9+-parseInt(_0x3dc742(0x1fd))/0xa*(-parseInt(_0x3dc742(0x1f4))/0xb);if(_0x5e405c===_0x321b34)break;else _0x3c3a38['push'](_0x3c3a38['shift']());}catch(_0x4986a5){_0x3c3a38['push'](_0x3c3a38['shift']());}}}(a100_0xef45,0x8995e));function hasWildcard(_0x193a4f){return _0x193a4f['includes']('*')||_0x193a4f['includes']('?');}function a100_0x46b1(_0x26f56f,_0xa864fd){const _0xef4551=a100_0xef45();return a100_0x46b1=function(_0x46b13f,_0x536411){_0x46b13f=_0x46b13f-0x1e3;let _0x3ed92c=_0xef4551[_0x46b13f];return _0x3ed92c;},a100_0x46b1(_0x26f56f,_0xa864fd);}export function parseTableReference(_0x47ff5d){const _0x4c7b84=a100_0x46b1;if(!_0x47ff5d||_0x47ff5d['trim']()['length']===0x0)throw new Error(_0x4c7b84(0x1f1));const _0x36604b=_0x47ff5d[_0x4c7b84(0x1ed)](),_0x443d8f={'original':_0x36604b},_0x281bdc=_0x36604b[_0x4c7b84(0x1e6)]('.');if(_0x281bdc[_0x4c7b84(0x1f8)]===0x1){const _0x211ec2=_0x281bdc[0x0];if(!_0x211ec2)throw new Error(_0x4c7b84(0x1fa));_0x443d8f[_0x4c7b84(0x1fc)]=_0x211ec2;}else{if(_0x281bdc['length']===0x2){const [_0x4de7b4,_0x28dd28]=_0x281bdc;if(!_0x4de7b4)throw new Error(_0x4c7b84(0x1e5));if(!_0x28dd28)throw new Error(_0x4c7b84(0x1ef));_0x443d8f['database']=_0x4de7b4,_0x443d8f['table']=_0x28dd28;}else{if(_0x281bdc[_0x4c7b84(0x1f8)]===0x3){const [_0x11e57d,_0x598bd3,_0x4e2863]=_0x281bdc;if(!_0x11e57d||!_0x598bd3||!_0x4e2863)throw new Error(_0x4c7b84(0x1f6));_0x443d8f[_0x4c7b84(0x1f0)]=_0x11e57d,_0x443d8f[_0x4c7b84(0x1fb)]=_0x598bd3,_0x443d8f[_0x4c7b84(0x1fc)]=_0x4e2863;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x443d8f;}function a100_0xef45(){const _0x1574d0=['20120HHZoPq','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','split','684932qqjSvA','3dVTCDm','1935582WTPOwW','34288hhWFzu','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','trim','join','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','catalog','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','5844XZNIbZ','10095282OlFggY','13453LtyYXZ','101qFgUvZ','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','4266590yQcRMt','length','602oWAeRE','Pattern\x20cannot\x20be\x20just\x20a\x20dot','database','table'];a100_0xef45=function(){return _0x1574d0;};return a100_0xef45();}export function formatTableReference(_0xf3377c){const _0x513d1a=a100_0x46b1,_0x5e78f8=[];return _0xf3377c[_0x513d1a(0x1f0)]&&_0x5e78f8['push'](_0xf3377c[_0x513d1a(0x1f0)]),_0xf3377c[_0x513d1a(0x1fb)]&&_0x5e78f8[_0x513d1a(0x1eb)](_0xf3377c[_0x513d1a(0x1fb)]),_0xf3377c[_0x513d1a(0x1fc)]&&_0x5e78f8[_0x513d1a(0x1eb)](_0xf3377c[_0x513d1a(0x1fc)]),_0x5e78f8[_0x513d1a(0x1ee)]('.');}export function validateTableListReference(_0x68ac96){return undefined;}export function validateTableDescribeReference(_0xd57969){const _0x1a9181=a100_0x46b1;if(!_0xd57969['table'])return _0x1a9181(0x1e4);if(_0xd57969[_0x1a9181(0x1fb)]&&hasWildcard(_0xd57969[_0x1a9181(0x1fb)]))return _0x1a9181(0x1e3);if(hasWildcard(_0xd57969[_0x1a9181(0x1fc)]))return _0x1a9181(0x1ec);return undefined;}