@treasuredata/tdx 0.9.2 → 0.9.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 (130) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.js +1 -1
  6. package/dist/client/engage-api-client.js +1 -1
  7. package/dist/client/http-client.js +1 -1
  8. package/dist/client/llm-api-client.d.ts +35 -1
  9. package/dist/client/llm-api-client.d.ts.map +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/llm-api-client.js.map +1 -1
  12. package/dist/client/rate-limiter.js +1 -1
  13. package/dist/client/td-api-client.js +1 -1
  14. package/dist/client/trino-api-client.js +1 -1
  15. package/dist/client/workflow-client.js +1 -1
  16. package/dist/commands/activations.js +1 -1
  17. package/dist/commands/agent-command.d.ts.map +1 -1
  18. package/dist/commands/agent-command.js +1 -1
  19. package/dist/commands/agent-command.js.map +1 -1
  20. package/dist/commands/api-command.js +1 -1
  21. package/dist/commands/auth-command.js +1 -1
  22. package/dist/commands/chat-command.js +1 -1
  23. package/dist/commands/claude-command.js +1 -1
  24. package/dist/commands/claude-statusline-command.js +1 -1
  25. package/dist/commands/claude-usage-command.js +1 -1
  26. package/dist/commands/command.js +1 -1
  27. package/dist/commands/connection-command.js +1 -1
  28. package/dist/commands/context-command.js +1 -1
  29. package/dist/commands/databases.js +1 -1
  30. package/dist/commands/describe.js +1 -1
  31. package/dist/commands/engage-command.js +1 -1
  32. package/dist/commands/job-command.js +1 -1
  33. package/dist/commands/journey-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/llm-proxy.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/profiles-command.js +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/tables.js +1 -1
  49. package/dist/commands/use-command.js +1 -1
  50. package/dist/commands/user-command.js +1 -1
  51. package/dist/commands/workflow-command.js +1 -1
  52. package/dist/core/auth.js +1 -1
  53. package/dist/core/config.js +1 -1
  54. package/dist/core/connection-cache.js +1 -1
  55. package/dist/core/credential-cache.js +1 -1
  56. package/dist/core/global-context.js +1 -1
  57. package/dist/core/keychain.js +1 -1
  58. package/dist/core/profile.js +1 -1
  59. package/dist/core/project-config.js +1 -1
  60. package/dist/core/session.js +1 -1
  61. package/dist/core/user-cache.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/proxy/anthropic-adapter.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/context-signature.js +1 -1
  66. package/dist/proxy/conversation-utils.js +1 -1
  67. package/dist/proxy/server.js +1 -1
  68. package/dist/proxy/session-cache.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.d.ts +45 -1
  70. package/dist/sdk/agent/agent-yaml.d.ts.map +1 -1
  71. package/dist/sdk/agent/agent-yaml.js +1 -1
  72. package/dist/sdk/agent/agent-yaml.js.map +1 -1
  73. package/dist/sdk/api.js +1 -1
  74. package/dist/sdk/connection.js +1 -1
  75. package/dist/sdk/engage.js +1 -1
  76. package/dist/sdk/errors.js +1 -1
  77. package/dist/sdk/index.js +1 -1
  78. package/dist/sdk/job.js +1 -1
  79. package/dist/sdk/journey.js +1 -1
  80. package/dist/sdk/llm.d.ts.map +1 -1
  81. package/dist/sdk/llm.js +1 -1
  82. package/dist/sdk/llm.js.map +1 -1
  83. package/dist/sdk/query.js +1 -1
  84. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  85. package/dist/sdk/segment/journey-yaml.js +1 -1
  86. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  87. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  88. package/dist/sdk/segment.js +1 -1
  89. package/dist/sdk/user.js +1 -1
  90. package/dist/sdk/workflow.js +1 -1
  91. package/dist/types/endpoints.js +1 -1
  92. package/dist/types/index.d.ts +1 -1
  93. package/dist/types/index.d.ts.map +1 -1
  94. package/dist/types/index.js +1 -1
  95. package/dist/types/llm.d.ts +80 -4
  96. package/dist/types/llm.d.ts.map +1 -1
  97. package/dist/utils/agent-config.js +1 -1
  98. package/dist/utils/agent-ref-parser.js +1 -1
  99. package/dist/utils/async.js +1 -1
  100. package/dist/utils/chat-cache.js +1 -1
  101. package/dist/utils/colors.js +1 -1
  102. package/dist/utils/command-output.js +1 -1
  103. package/dist/utils/constants.js +1 -1
  104. package/dist/utils/diff.js +1 -1
  105. package/dist/utils/fields-display.js +1 -1
  106. package/dist/utils/file-permissions.js +1 -1
  107. package/dist/utils/format-detector.js +1 -1
  108. package/dist/utils/formatters.js +1 -1
  109. package/dist/utils/journey-utils.js +1 -1
  110. package/dist/utils/json-loader.js +1 -1
  111. package/dist/utils/llm-backup-utils.js +1 -1
  112. package/dist/utils/model-aliases.js +1 -1
  113. package/dist/utils/model-factors.js +1 -1
  114. package/dist/utils/option-validation.js +1 -1
  115. package/dist/utils/port.js +1 -1
  116. package/dist/utils/process.js +1 -1
  117. package/dist/utils/prompt.js +1 -1
  118. package/dist/utils/segment-path-parser.js +1 -1
  119. package/dist/utils/segment-ref-parser.js +1 -1
  120. package/dist/utils/spinner.js +1 -1
  121. package/dist/utils/sql-parser.js +1 -1
  122. package/dist/utils/sse-parser.js +1 -1
  123. package/dist/utils/string-utils.js +1 -1
  124. package/dist/utils/table-ref-parser.js +1 -1
  125. package/dist/utils/tdx-config.js +1 -1
  126. package/dist/utils/tdx-logger.js +1 -1
  127. package/dist/utils/tree-formatter.js +1 -1
  128. package/dist/utils/version-check.js +1 -1
  129. package/dist/utils/workflow-utils.js +1 -1
  130. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xc72eb6,_0x6df402){const _0x4eed6c=a104_0xba45,_0x124a7a=_0xc72eb6();while(!![]){try{const _0xfce4a0=-parseInt(_0x4eed6c(0x90))/0x1*(parseInt(_0x4eed6c(0x8a))/0x2)+parseInt(_0x4eed6c(0x8d))/0x3+parseInt(_0x4eed6c(0x8b))/0x4+-parseInt(_0x4eed6c(0x86))/0x5+parseInt(_0x4eed6c(0x8c))/0x6+parseInt(_0x4eed6c(0x87))/0x7+-parseInt(_0x4eed6c(0x8e))/0x8*(parseInt(_0x4eed6c(0x94))/0x9);if(_0xfce4a0===_0x6df402)break;else _0x124a7a['push'](_0x124a7a['shift']());}catch(_0x5533ba){_0x124a7a['push'](_0x124a7a['shift']());}}}(a104_0x434d,0x24395));export function canCreateAgent(_0x15f518,_0x500ecb){const _0x25b8e6=a104_0xba45;for(const _0x4d3ba1 of _0x15f518[_0x25b8e6(0x91)][_0x25b8e6(0x8f)]){if(_0x4d3ba1[_0x25b8e6(0x88)]&&!_0x500ecb[_0x25b8e6(0x92)](_0x4d3ba1[_0x25b8e6(0x88)]))return![];}return!![];}export function remapToolIds(_0x1ac314,_0x2bafd9,_0x5a9c00){const _0x5f35ce=a104_0xba45;return _0x1ac314[_0x5f35ce(0x93)](_0x249417=>({..._0x249417,'targetKnowledgeBaseId':_0x249417[_0x5f35ce(0x85)]?_0x2bafd9[_0x5f35ce(0x89)](_0x249417['targetKnowledgeBaseId'])||_0x249417['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x249417[_0x5f35ce(0x88)]?_0x5a9c00[_0x5f35ce(0x89)](_0x249417['targetAgentId'])||_0x249417['targetAgentId']:undefined}));}function a104_0x434d(){const _0x6caa55=['attributes','has','map','9ZYyTPK','targetKnowledgeBaseId','1447775ZBzfal','1153453qUJZIO','targetAgentId','get','9240vnoxcX','685968eTXSut','1117014jQHUtf','681828wollHp','1496384RKocVt','tools','27AwWxoo'];a104_0x434d=function(){return _0x6caa55;};return a104_0x434d();}function a104_0xba45(_0x56dca6,_0x394ec7){_0x56dca6=_0x56dca6-0x85;const _0x434d48=a104_0x434d();let _0xba457=_0x434d48[_0x56dca6];return _0xba457;}export function remapVariableIds(_0x40184d,_0x32482c){const _0x33c841=a104_0xba45;return _0x40184d[_0x33c841(0x93)](_0x14df65=>({..._0x14df65,'targetKnowledgeBaseId':_0x32482c[_0x33c841(0x89)](_0x14df65[_0x33c841(0x85)])||_0x14df65[_0x33c841(0x85)]}));}export function isSupportedBackupVersion(_0x25fcaa){return _0x25fcaa==='1.0';}
1
+ (function(_0x322503,_0x196ff6){const _0x4261bc=a104_0x152b,_0x516706=_0x322503();while(!![]){try{const _0x2e16c5=parseInt(_0x4261bc(0x1b6))/0x1*(-parseInt(_0x4261bc(0x1b9))/0x2)+-parseInt(_0x4261bc(0x1b0))/0x3*(parseInt(_0x4261bc(0x1b5))/0x4)+parseInt(_0x4261bc(0x1c1))/0x5+parseInt(_0x4261bc(0x1af))/0x6*(-parseInt(_0x4261bc(0x1ae))/0x7)+parseInt(_0x4261bc(0x1bb))/0x8*(parseInt(_0x4261bc(0x1b1))/0x9)+parseInt(_0x4261bc(0x1c0))/0xa*(-parseInt(_0x4261bc(0x1bd))/0xb)+parseInt(_0x4261bc(0x1bf))/0xc;if(_0x2e16c5===_0x196ff6)break;else _0x516706['push'](_0x516706['shift']());}catch(_0x538a5b){_0x516706['push'](_0x516706['shift']());}}}(a104_0x247e,0xb8b8a));export function canCreateAgent(_0x287964,_0x5799c5){const _0xcae0fc=a104_0x152b;for(const _0xa28320 of _0x287964[_0xcae0fc(0x1b8)][_0xcae0fc(0x1b7)]){if(_0xa28320[_0xcae0fc(0x1b2)]&&!_0x5799c5[_0xcae0fc(0x1b3)](_0xa28320[_0xcae0fc(0x1b2)]))return![];}return!![];}export function remapToolIds(_0xaf1e7,_0xa4d887,_0x108325){const _0x18a1c1=a104_0x152b;return _0xaf1e7[_0x18a1c1(0x1ba)](_0x1a70ba=>({..._0x1a70ba,'targetKnowledgeBaseId':_0x1a70ba['targetKnowledgeBaseId']?_0xa4d887['get'](_0x1a70ba[_0x18a1c1(0x1b4)])||_0x1a70ba[_0x18a1c1(0x1b4)]:undefined,'targetAgentId':_0x1a70ba[_0x18a1c1(0x1b2)]?_0x108325[_0x18a1c1(0x1bc)](_0x1a70ba['targetAgentId'])||_0x1a70ba[_0x18a1c1(0x1b2)]:undefined}));}function a104_0x247e(){const _0x31c8d4=['18230LGxiQm','3324950sapbfw','56dWdtGq','929364jXYQfg','33MjdYhJ','1917117PscIER','targetAgentId','has','targetKnowledgeBaseId','517652aHjPbu','1SwdJKy','tools','attributes','2283942MWUMfp','map','56ESVfRh','get','8074AafUsz','1.0','44919420ZtuPTG'];a104_0x247e=function(){return _0x31c8d4;};return a104_0x247e();}function a104_0x152b(_0x31712f,_0x12eb68){_0x31712f=_0x31712f-0x1ae;const _0x247ee3=a104_0x247e();let _0x152b1e=_0x247ee3[_0x31712f];return _0x152b1e;}export function remapVariableIds(_0x257990,_0x913711){const _0x23798e=a104_0x152b;return _0x257990['map'](_0x18bd57=>({..._0x18bd57,'targetKnowledgeBaseId':_0x913711[_0x23798e(0x1bc)](_0x18bd57[_0x23798e(0x1b4)])||_0x18bd57[_0x23798e(0x1b4)]}));}export function isSupportedBackupVersion(_0x1e9d5c){const _0x4a2707=a104_0x152b;return _0x1e9d5c===_0x4a2707(0x1be);}
@@ -1 +1 @@
1
- const a105_0xe6434a=a105_0x298f;(function(_0x4b8c3f,_0x3d0392){const _0x1e3e70=a105_0x298f,_0x1474ab=_0x4b8c3f();while(!![]){try{const _0x4ab8dd=-parseInt(_0x1e3e70(0xb1))/0x1*(-parseInt(_0x1e3e70(0xae))/0x2)+parseInt(_0x1e3e70(0xab))/0x3+parseInt(_0x1e3e70(0xaa))/0x4+parseInt(_0x1e3e70(0xa4))/0x5*(parseInt(_0x1e3e70(0xac))/0x6)+parseInt(_0x1e3e70(0xa6))/0x7*(parseInt(_0x1e3e70(0xa9))/0x8)+parseInt(_0x1e3e70(0xa7))/0x9*(parseInt(_0x1e3e70(0xb0))/0xa)+-parseInt(_0x1e3e70(0xa8))/0xb;if(_0x4ab8dd===_0x3d0392)break;else _0x1474ab['push'](_0x1474ab['shift']());}catch(_0x4571b5){_0x1474ab['push'](_0x1474ab['shift']());}}}(a105_0x2373,0x5f5cf));function a105_0x2373(){const _0x2a788=['496316zfbKsx','2083215cVPukz','18wBHPIJ','match','154136ldQrsB','claude-4.5-haiku','217510Winsne','2pnAlMV','664140Hvthej','toLowerCase','459977GdZIrh','189xSMauI','20146874ebgFBb','48cNjCCk'];a105_0x2373=function(){return _0x2a788;};return a105_0x2373();}const MODEL_ALIASES={'haiku':a105_0xe6434a(0xaf),'sonnet':'claude-4.5-sonnet'};export function extractModelAlias(_0x587dbf){const _0x3f06cd=a105_0xe6434a,_0x2b1133=_0x587dbf[_0x3f06cd(0xad)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x2b1133)return _0x2b1133[0x1]['toLowerCase']();return _0x587dbf;}export function resolveModelAlias(_0x1ed7a8){const _0x36ddb8=a105_0xe6434a;return MODEL_ALIASES[_0x1ed7a8[_0x36ddb8(0xa5)]()]||_0x1ed7a8;}function a105_0x298f(_0x2e4289,_0x3733db){_0x2e4289=_0x2e4289-0xa4;const _0x237387=a105_0x2373();let _0x298f1a=_0x237387[_0x2e4289];return _0x298f1a;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a105_0x52be9a=a105_0x89ca;(function(_0x55f005,_0x242745){const _0x483dab=a105_0x89ca,_0x2f011f=_0x55f005();while(!![]){try{const _0x44a68a=parseInt(_0x483dab(0x83))/0x1*(parseInt(_0x483dab(0x7d))/0x2)+parseInt(_0x483dab(0x7c))/0x3*(-parseInt(_0x483dab(0x79))/0x4)+-parseInt(_0x483dab(0x77))/0x5+-parseInt(_0x483dab(0x7b))/0x6*(parseInt(_0x483dab(0x78))/0x7)+-parseInt(_0x483dab(0x7f))/0x8+-parseInt(_0x483dab(0x7a))/0x9+-parseInt(_0x483dab(0x7e))/0xa*(-parseInt(_0x483dab(0x82))/0xb);if(_0x44a68a===_0x242745)break;else _0x2f011f['push'](_0x2f011f['shift']());}catch(_0x5e6726){_0x2f011f['push'](_0x2f011f['shift']());}}}(a105_0x4f30,0xcf757));const MODEL_ALIASES={'haiku':a105_0x52be9a(0x80),'sonnet':'claude-4.5-sonnet'};function a105_0x4f30(){const _0x21508f=['claude-4.5-haiku','toLowerCase','143eyKZPz','32125JZqlbG','5653855XVuNwG','7iBuZdp','12KUfdrt','4813722FijhVh','4220286ZyFUEa','423210jGjsPR','4rRGSjE','3017990mVEnVV','2765328qHbybg'];a105_0x4f30=function(){return _0x21508f;};return a105_0x4f30();}export function extractModelAlias(_0x1b3ff4){const _0x43896d=_0x1b3ff4['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x43896d)return _0x43896d[0x1]['toLowerCase']();return _0x1b3ff4;}export function resolveModelAlias(_0x52aadb){const _0x1155ab=a105_0x52be9a;return MODEL_ALIASES[_0x52aadb[_0x1155ab(0x81)]()]||_0x52aadb;}function a105_0x89ca(_0x56a524,_0x4c8afb){_0x56a524=_0x56a524-0x77;const _0x4f3055=a105_0x4f30();let _0x89ca24=_0x4f3055[_0x56a524];return _0x89ca24;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x596dc4,_0xe9af0d){const _0x511b86=a106_0x533d,_0x90ac86=_0x596dc4();while(!![]){try{const _0x548f3d=-parseInt(_0x511b86(0x169))/0x1*(-parseInt(_0x511b86(0x16b))/0x2)+-parseInt(_0x511b86(0x17b))/0x3+-parseInt(_0x511b86(0x168))/0x4+-parseInt(_0x511b86(0x181))/0x5*(-parseInt(_0x511b86(0x16f))/0x6)+-parseInt(_0x511b86(0x178))/0x7*(parseInt(_0x511b86(0x177))/0x8)+-parseInt(_0x511b86(0x173))/0x9*(-parseInt(_0x511b86(0x179))/0xa)+-parseInt(_0x511b86(0x17e))/0xb*(-parseInt(_0x511b86(0x183))/0xc);if(_0x548f3d===_0xe9af0d)break;else _0x90ac86['push'](_0x90ac86['shift']());}catch(_0x3e683e){_0x90ac86['push'](_0x90ac86['shift']());}}}(a106_0x169c,0x2a71b));function a106_0x169c(){const _0x3bd07a=['opus','243okFbgB','Claude','default','Opus\x204.5','27528viOpSs','217QpENPC','39370ItprtE','round','796896AnyePL','Opus\x204','4.5','6653515RFasgy','4-5','Haiku\x204','80xKONtS','toLowerCase','12DjOkms','1299464pQKbmS','16336CbRZUE','includes','16VpRDMO','sonnet','Sonnet\x204','Sonnet\x204.5','10938LplDwi','haiku','en-US'];a106_0x169c=function(){return _0x3bd07a;};return a106_0x169c();}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};function a106_0x533d(_0x25082b,_0x2b460a){_0x25082b=_0x25082b-0x168;const _0x169c04=a106_0x169c();let _0x533d5e=_0x169c04[_0x25082b];return _0x533d5e;}export function getModelFactor(_0xe3459){const _0x2c7eda=a106_0x533d,_0x5ebe2b=_0xe3459[_0x2c7eda(0x182)]();if(MODEL_FACTORS[_0x5ebe2b])return MODEL_FACTORS[_0x5ebe2b];if(_0x5ebe2b[_0x2c7eda(0x16a)](_0x2c7eda(0x16c)))return MODEL_FACTORS[_0x2c7eda(0x16c)];if(_0x5ebe2b[_0x2c7eda(0x16a)](_0x2c7eda(0x170)))return MODEL_FACTORS[_0x2c7eda(0x170)];if(_0x5ebe2b[_0x2c7eda(0x16a)](_0x2c7eda(0x172)))return MODEL_FACTORS[_0x2c7eda(0x172)];return MODEL_FACTORS[_0x2c7eda(0x16c)];}export function getContextLimit(_0x4554e1){const _0x1cc037=a106_0x533d,_0x370631=_0x4554e1[_0x1cc037(0x182)]();if(_0x370631['includes']('sonnet'))return CONTEXT_LIMITS[_0x1cc037(0x16c)];if(_0x370631[_0x1cc037(0x16a)](_0x1cc037(0x170)))return CONTEXT_LIMITS[_0x1cc037(0x170)];if(_0x370631[_0x1cc037(0x16a)](_0x1cc037(0x172)))return CONTEXT_LIMITS[_0x1cc037(0x172)];return CONTEXT_LIMITS[_0x1cc037(0x175)];}export function calculateChatUnit(_0x42d3d5,_0xeaddc8,_0xe26bc6){return(_0x42d3d5+_0xeaddc8)/0x1388*_0xe26bc6;}export function calculateCredits(_0x1b0b82){return _0x1b0b82/0x2904;}export function getModelDisplayName(_0x37380e){const _0x496284=a106_0x533d,_0x4200e8=_0x37380e['toLowerCase']();if(_0x4200e8[_0x496284(0x16a)]('sonnet')){if(_0x4200e8[_0x496284(0x16a)]('4-5')||_0x4200e8[_0x496284(0x16a)](_0x496284(0x17d)))return _0x496284(0x16e);return _0x496284(0x16d);}if(_0x4200e8[_0x496284(0x16a)](_0x496284(0x170))){if(_0x4200e8[_0x496284(0x16a)]('4-5')||_0x4200e8[_0x496284(0x16a)]('4.5'))return'Haiku\x204.5';return _0x496284(0x180);}if(_0x4200e8['includes']('opus')){if(_0x4200e8[_0x496284(0x16a)](_0x496284(0x17f))||_0x4200e8['includes']('4.5'))return _0x496284(0x176);return _0x496284(0x17c);}return _0x496284(0x174);}export function formatTokenCount(_0x4e4ac3){const _0x25d6e9=a106_0x533d;return _0x4e4ac3['toLocaleString'](_0x25d6e9(0x171));}export function calculateContextPercentage(_0x3b329e,_0x2813d0){const _0x52143b=a106_0x533d,_0x15cca1=getContextLimit(_0x2813d0);return Math[_0x52143b(0x17a)](_0x3b329e/_0x15cca1*0x64);}
1
+ (function(_0x46496b,_0xf37096){const _0x424ae0=a106_0x1463,_0xbfa32b=_0x46496b();while(!![]){try{const _0x2144b6=parseInt(_0x424ae0(0xfb))/0x1*(-parseInt(_0x424ae0(0xff))/0x2)+parseInt(_0x424ae0(0xf5))/0x3*(-parseInt(_0x424ae0(0x100))/0x4)+-parseInt(_0x424ae0(0xfd))/0x5*(parseInt(_0x424ae0(0xfc))/0x6)+parseInt(_0x424ae0(0xee))/0x7+-parseInt(_0x424ae0(0x106))/0x8+parseInt(_0x424ae0(0x105))/0x9*(parseInt(_0x424ae0(0xed))/0xa)+parseInt(_0x424ae0(0x102))/0xb*(parseInt(_0x424ae0(0xf1))/0xc);if(_0x2144b6===_0xf37096)break;else _0xbfa32b['push'](_0xbfa32b['shift']());}catch(_0x4cbb83){_0xbfa32b['push'](_0xbfa32b['shift']());}}}(a106_0x4771,0x94d0e));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};function a106_0x1463(_0x4613ed,_0x23c484){_0x4613ed=_0x4613ed-0xed;const _0x47717b=a106_0x4771();let _0x146352=_0x47717b[_0x4613ed];return _0x146352;}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x10ea9d){const _0x2299f9=a106_0x1463,_0x5c285e=_0x10ea9d['toLowerCase']();if(MODEL_FACTORS[_0x5c285e])return MODEL_FACTORS[_0x5c285e];if(_0x5c285e[_0x2299f9(0x101)]('sonnet'))return MODEL_FACTORS['sonnet'];if(_0x5c285e['includes']('haiku'))return MODEL_FACTORS[_0x2299f9(0xf4)];if(_0x5c285e[_0x2299f9(0x101)]('opus'))return MODEL_FACTORS['opus'];return MODEL_FACTORS['sonnet'];}export function getContextLimit(_0x280978){const _0x3d2564=a106_0x1463,_0x1ed733=_0x280978['toLowerCase']();if(_0x1ed733['includes'](_0x3d2564(0xf9)))return CONTEXT_LIMITS[_0x3d2564(0xf9)];if(_0x1ed733['includes'](_0x3d2564(0xf4)))return CONTEXT_LIMITS[_0x3d2564(0xf4)];if(_0x1ed733[_0x3d2564(0x101)](_0x3d2564(0xef)))return CONTEXT_LIMITS[_0x3d2564(0xef)];return CONTEXT_LIMITS['default'];}export function calculateChatUnit(_0x2cc17d,_0x5de302,_0x1ca91f){return(_0x2cc17d+_0x5de302)/0x1388*_0x1ca91f;}export function calculateCredits(_0x2f8c00){return _0x2f8c00/0x2904;}export function getModelDisplayName(_0x3814de){const _0x1ba4bd=a106_0x1463,_0x41df43=_0x3814de['toLowerCase']();if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf9))){if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf8))||_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf6)))return _0x1ba4bd(0xf3);return _0x1ba4bd(0xfa);}if(_0x41df43['includes']('haiku')){if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf8))||_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf6)))return'Haiku\x204.5';return _0x1ba4bd(0x103);}if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xef))){if(_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf8))||_0x41df43[_0x1ba4bd(0x101)](_0x1ba4bd(0xf6)))return _0x1ba4bd(0xf7);return _0x1ba4bd(0x104);}return _0x1ba4bd(0xf2);}function a106_0x4771(){const _0x19a4ca=['haiku','3nZloln','4.5','Opus\x204.5','4-5','sonnet','Sonnet\x204','629vLvBcL','216buBUHX','90445ipvMHj','round','914BZJvKN','2769872tEXALc','includes','1973279FRGeBH','Haiku\x204','Opus\x204','18WxlGpw','5202704IxEcvc','2542640TLpxmt','352996NCCjue','opus','toLocaleString','156LrwGIQ','Claude','Sonnet\x204.5'];a106_0x4771=function(){return _0x19a4ca;};return a106_0x4771();}export function formatTokenCount(_0x18a1f0){const _0x54352e=a106_0x1463;return _0x18a1f0[_0x54352e(0xf0)]('en-US');}export function calculateContextPercentage(_0x116294,_0x3de268){const _0x40d3ee=a106_0x1463,_0x14168d=getContextLimit(_0x3de268);return Math[_0x40d3ee(0xfe)](_0x116294/_0x14168d*0x64);}
@@ -1 +1 @@
1
- function a107_0x4cc6(){const _0x3d5322=['108bNAvuf','.\x20Must\x20be\x20a\x20positive\x20integer.','2462978JJdMbj','isInteger','9246870TSTrHj','5167526PurueX','number','.\x20Must\x20be\x20a\x20positive\x20number.','1569024suIZBw','155448HcIXqX','.\x20Must\x20be\x20a\x20number.','1530810gRHYzD','Invalid\x20limit\x20value:\x20','158904uyTZTZ','Invalid\x20timeout\x20value:\x20','2007uOfxrN'];a107_0x4cc6=function(){return _0x3d5322;};return a107_0x4cc6();}function a107_0x4c94(_0x279ca6,_0x5aec4){_0x279ca6=_0x279ca6-0x13e;const _0x4cc667=a107_0x4cc6();let _0x4c94db=_0x4cc667[_0x279ca6];return _0x4c94db;}(function(_0x843e9a,_0x3ebe25){const _0x33058c=a107_0x4c94,_0x181f87=_0x843e9a();while(!![]){try{const _0x11d663=parseInt(_0x33058c(0x148))/0x1+parseInt(_0x33058c(0x142))/0x2+parseInt(_0x33058c(0x140))/0x3*(parseInt(_0x33058c(0x149))/0x4)+parseInt(_0x33058c(0x14b))/0x5+parseInt(_0x33058c(0x144))/0x6+-parseInt(_0x33058c(0x145))/0x7+parseInt(_0x33058c(0x14d))/0x8*(-parseInt(_0x33058c(0x13f))/0x9);if(_0x11d663===_0x3ebe25)break;else _0x181f87['push'](_0x181f87['shift']());}catch(_0xc0d470){_0x181f87['push'](_0x181f87['shift']());}}}(a107_0x4cc6,0xd6a51));export function validateLimitOption(_0x16a73b){const _0x5eb682=a107_0x4c94;if(!Number[_0x5eb682(0x143)](_0x16a73b))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x16a73b+'.\x20Must\x20be\x20an\x20integer.'};if(_0x16a73b<=0x0)return{'isValid':![],'error':_0x5eb682(0x14c)+_0x16a73b+_0x5eb682(0x141)};return{'isValid':!![],'value':_0x16a73b};}export function validateTimeoutOption(_0x345683,_0x555eee=0x1e){const _0x4363bd=a107_0x4c94;if(_0x345683===undefined)return{'isValid':!![],'value':_0x555eee};const _0x3cbbe3=typeof _0x345683===_0x4363bd(0x146)?_0x345683:parseFloat(_0x345683);if(isNaN(_0x3cbbe3))return{'isValid':![],'error':_0x4363bd(0x13e)+_0x345683+_0x4363bd(0x14a)};if(_0x3cbbe3<=0x0)return{'isValid':![],'error':_0x4363bd(0x13e)+_0x3cbbe3+_0x4363bd(0x147)};return{'isValid':!![],'value':_0x3cbbe3};}
1
+ (function(_0x12f2dd,_0x1fad9e){const _0xdbdba7=a107_0x3f01,_0x54fc49=_0x12f2dd();while(!![]){try{const _0x59fb34=-parseInt(_0xdbdba7(0x137))/0x1*(parseInt(_0xdbdba7(0x138))/0x2)+-parseInt(_0xdbdba7(0x136))/0x3+parseInt(_0xdbdba7(0x145))/0x4+-parseInt(_0xdbdba7(0x140))/0x5*(-parseInt(_0xdbdba7(0x13f))/0x6)+-parseInt(_0xdbdba7(0x143))/0x7*(-parseInt(_0xdbdba7(0x13c))/0x8)+-parseInt(_0xdbdba7(0x141))/0x9*(-parseInt(_0xdbdba7(0x144))/0xa)+-parseInt(_0xdbdba7(0x139))/0xb;if(_0x59fb34===_0x1fad9e)break;else _0x54fc49['push'](_0x54fc49['shift']());}catch(_0x29993f){_0x54fc49['push'](_0x54fc49['shift']());}}}(a107_0x371e,0x9eea0));export function validateLimitOption(_0x575e80){const _0x2b6494=a107_0x3f01;if(!Number[_0x2b6494(0x135)](_0x575e80))return{'isValid':![],'error':_0x2b6494(0x13b)+_0x575e80+'.\x20Must\x20be\x20an\x20integer.'};if(_0x575e80<=0x0)return{'isValid':![],'error':_0x2b6494(0x13b)+_0x575e80+_0x2b6494(0x142)};return{'isValid':!![],'value':_0x575e80};}function a107_0x3f01(_0x2118b9,_0x60f031){_0x2118b9=_0x2118b9-0x135;const _0x371eaf=a107_0x371e();let _0x3f01e9=_0x371eaf[_0x2118b9];return _0x3f01e9;}export function validateTimeoutOption(_0x1e12c6,_0x29bd32=0x1e){const _0x1431c3=a107_0x3f01;if(_0x1e12c6===undefined)return{'isValid':!![],'value':_0x29bd32};const _0x90b0a6=typeof _0x1e12c6==='number'?_0x1e12c6:parseFloat(_0x1e12c6);if(isNaN(_0x90b0a6))return{'isValid':![],'error':_0x1431c3(0x13e)+_0x1e12c6+_0x1431c3(0x13a)};if(_0x90b0a6<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x90b0a6+_0x1431c3(0x13d)};return{'isValid':!![],'value':_0x90b0a6};}function a107_0x371e(){const _0x43cb6d=['150AnVGUK','1208524VNOHtG','isInteger','848013hoxrJm','44483oVNohn','2CZcYiH','11399058lGoETR','.\x20Must\x20be\x20a\x20number.','Invalid\x20limit\x20value:\x20','1521048GztZOA','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','6qdAaTi','6187960nYhJnD','170694MkJTng','.\x20Must\x20be\x20a\x20positive\x20integer.','7Arnnor'];a107_0x371e=function(){return _0x43cb6d;};return a107_0x371e();}
@@ -1 +1 @@
1
- function a108_0x61d4(_0x2a6558,_0x45e550){_0x2a6558=_0x2a6558-0x1ec;const _0x5b38a2=a108_0x5b38();let _0x61d4a0=_0x5b38a2[_0x2a6558];return _0x61d4a0;}function a108_0x5b38(){const _0x432b22=['close','153018WwbLeB','listen','EADDRINUSE','167690ghtIkF','once','554562iLNqMq','4039EWQGje','\x20and\x20','695aNqdzr','0.0.0.0','1416660fSxDmS','listening','264kAMwOp','800GmLgnE','711746IywZMd','error','3tmkdlm'];a108_0x5b38=function(){return _0x432b22;};return a108_0x5b38();}(function(_0x56b7c4,_0x58d0ca){const _0x23d18a=a108_0x61d4,_0x11f988=_0x56b7c4();while(!![]){try{const _0x521150=-parseInt(_0x23d18a(0x1f5))/0x1+parseInt(_0x23d18a(0x1ee))/0x2*(parseInt(_0x23d18a(0x1f0))/0x3)+parseInt(_0x23d18a(0x1ec))/0x4*(-parseInt(_0x23d18a(0x1fa))/0x5)+parseInt(_0x23d18a(0x1f2))/0x6+-parseInt(_0x23d18a(0x1f8))/0x7*(-parseInt(_0x23d18a(0x1ed))/0x8)+parseInt(_0x23d18a(0x1f7))/0x9+-parseInt(_0x23d18a(0x1fc))/0xa;if(_0x521150===_0x58d0ca)break;else _0x11f988['push'](_0x11f988['shift']());}catch(_0x4ffa68){_0x11f988['push'](_0x11f988['shift']());}}}(a108_0x5b38,0x2c794));import{createServer}from'node:net';export async function isPortAvailable(_0x4026b6){return new Promise(_0xc734ea=>{const _0x5b090b=a108_0x61d4,_0x41406b=createServer();_0x41406b[_0x5b090b(0x1f6)](_0x5b090b(0x1ef),_0x435cbb=>{const _0xf3196c=_0x5b090b;_0x435cbb['code']===_0xf3196c(0x1f4)?_0xc734ea(![]):_0xc734ea(![]);}),_0x41406b[_0x5b090b(0x1f6)](_0x5b090b(0x1fd),()=>{const _0x3bdc5d=_0x5b090b;_0x41406b[_0x3bdc5d(0x1f1)](),_0xc734ea(!![]);}),_0x41406b[_0x5b090b(0x1f3)](_0x4026b6,_0x5b090b(0x1fb));});}export async function findAvailablePort(_0x127023=0xfa0,_0x524077=0x64){const _0xd853d3=a108_0x61d4;for(let _0xbfe55b=0x0;_0xbfe55b<_0x524077;_0xbfe55b++){const _0x4256fb=_0x127023+_0xbfe55b;if(await isPortAvailable(_0x4256fb))return _0x4256fb;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x127023+_0xd853d3(0x1f9)+(_0x127023+_0x524077-0x1));}
1
+ (function(_0x34a7df,_0x257c02){const _0x458291=a108_0x263d,_0x569369=_0x34a7df();while(!![]){try{const _0x3bcb64=parseInt(_0x458291(0xa3))/0x1*(parseInt(_0x458291(0x99))/0x2)+-parseInt(_0x458291(0x92))/0x3*(-parseInt(_0x458291(0x9a))/0x4)+-parseInt(_0x458291(0x9c))/0x5*(-parseInt(_0x458291(0xa1))/0x6)+-parseInt(_0x458291(0x96))/0x7*(-parseInt(_0x458291(0x9d))/0x8)+parseInt(_0x458291(0x93))/0x9+parseInt(_0x458291(0x97))/0xa+parseInt(_0x458291(0xa5))/0xb*(-parseInt(_0x458291(0x98))/0xc);if(_0x3bcb64===_0x257c02)break;else _0x569369['push'](_0x569369['shift']());}catch(_0x2c56fc){_0x569369['push'](_0x569369['shift']());}}}(a108_0x4c04,0x3e73b));import{createServer}from'node:net';function a108_0x4c04(){const _0x4b0d98=['4128192WYiflo','close','once','3163783uQfvAC','3618330kpDsaM','933456Bvsnks','324814ctTEaJ','8eazzIq','No\x20available\x20port\x20found\x20between\x20','10lcOgVz','8PYQBaZ','listening','EADDRINUSE','0.0.0.0','997866spRogU','\x20and\x20','3RMhEZh','code','330addTtB','listen','745665VzjdZM'];a108_0x4c04=function(){return _0x4b0d98;};return a108_0x4c04();}function a108_0x263d(_0x2f5464,_0x393bd4){_0x2f5464=_0x2f5464-0x91;const _0x4c0432=a108_0x4c04();let _0x263d76=_0x4c0432[_0x2f5464];return _0x263d76;}export async function isPortAvailable(_0x3d05be){return new Promise(_0x5393f6=>{const _0xf29e95=a108_0x263d,_0x21007c=createServer();_0x21007c[_0xf29e95(0x95)]('error',_0x25f664=>{const _0x343b59=_0xf29e95;_0x25f664[_0x343b59(0xa4)]===_0x343b59(0x9f)?_0x5393f6(![]):_0x5393f6(![]);}),_0x21007c[_0xf29e95(0x95)](_0xf29e95(0x9e),()=>{const _0x55ffb0=_0xf29e95;_0x21007c[_0x55ffb0(0x94)](),_0x5393f6(!![]);}),_0x21007c[_0xf29e95(0x91)](_0x3d05be,_0xf29e95(0xa0));});}export async function findAvailablePort(_0x410ec7=0xfa0,_0x84fa29=0x64){const _0x272426=a108_0x263d;for(let _0x3aa1ad=0x0;_0x3aa1ad<_0x84fa29;_0x3aa1ad++){const _0x1e8f06=_0x410ec7+_0x3aa1ad;if(await isPortAvailable(_0x1e8f06))return _0x1e8f06;}throw new Error(_0x272426(0x9b)+_0x410ec7+_0x272426(0xa2)+(_0x410ec7+_0x84fa29-0x1));}
@@ -1 +1 @@
1
- const a109_0x8603d3=a109_0x297c;function a109_0x297c(_0x406bd7,_0x4bb61e){_0x406bd7=_0x406bd7-0xdc;const _0x5ce910=a109_0x5ce9();let _0x297c44=_0x5ce910[_0x406bd7];return _0x297c44;}(function(_0x3395a9,_0x537104){const _0x1095c0=a109_0x297c,_0x3d45a2=_0x3395a9();while(!![]){try{const _0x27467a=-parseInt(_0x1095c0(0xfe))/0x1*(parseInt(_0x1095c0(0x106))/0x2)+-parseInt(_0x1095c0(0xf5))/0x3*(-parseInt(_0x1095c0(0x10c))/0x4)+-parseInt(_0x1095c0(0xdf))/0x5*(parseInt(_0x1095c0(0x104))/0x6)+parseInt(_0x1095c0(0xe5))/0x7+-parseInt(_0x1095c0(0xf1))/0x8+-parseInt(_0x1095c0(0x101))/0x9*(parseInt(_0x1095c0(0xef))/0xa)+parseInt(_0x1095c0(0x100))/0xb;if(_0x27467a===_0x537104)break;else _0x3d45a2['push'](_0x3d45a2['shift']());}catch(_0x3908b7){_0x3d45a2['push'](_0x3d45a2['shift']());}}}(a109_0x5ce9,0x9fe74));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a109_0x8603d3(0xfc),a109_0x8603d3(0xff),'sh',a109_0x8603d3(0xe7),a109_0x8603d3(0xf7),a109_0x8603d3(0x105),a109_0x8603d3(0xe1),a109_0x8603d3(0xe3),a109_0x8603d3(0xe4),a109_0x8603d3(0x10b),'nu','ion',a109_0x8603d3(0xeb),a109_0x8603d3(0xdc)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a109_0x8603d3(0xec),a109_0x8603d3(0xf6),a109_0x8603d3(0xf0)]);function getProcessInfoWindows(_0x55c1e3){const _0x5259ab=a109_0x8603d3;try{if(!Number[_0x5259ab(0xf9)](_0x55c1e3)||_0x55c1e3<=0x0)return null;const _0x3925ab=execSync(_0x5259ab(0xf8)+_0x55c1e3+_0x5259ab(0x103),{'encoding':_0x5259ab(0x10a),'windowsHide':!![]})[_0x5259ab(0xe6)](),_0xc116bd=_0x3925ab[_0x5259ab(0xe0)]('\x0a')[_0x5259ab(0x109)](_0x11770d=>_0x11770d['trim']());if(_0xc116bd['length']<0x2)return null;const _0x105f4a=_0xc116bd[_0xc116bd['length']-0x1][_0x5259ab(0xe0)](',');if(_0x105f4a['length']<0x3)return null;const _0x489f95=_0x105f4a[0x1]?.[_0x5259ab(0xe6)]()||'',_0x2a5169=parseInt(_0x105f4a[0x2]?.[_0x5259ab(0xe6)]()||'0',0xa);if(isNaN(_0x2a5169)||!_0x489f95)return null;return{'pid':_0x55c1e3,'ppid':_0x2a5169,'comm':_0x489f95['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x528686){const _0x445ce3=a109_0x8603d3;try{const _0x3a6c55=0x400000;if(!Number[_0x445ce3(0xf9)](_0x528686)||_0x528686<=0x0||_0x528686>_0x3a6c55)return null;const _0xd7fd81=execSync(_0x445ce3(0xfa)+_0x528686+_0x445ce3(0xdd),{'encoding':_0x445ce3(0x10a),'stdio':'pipe'})[_0x445ce3(0xe6)](),[_0x5d4478,..._0x2a0cdf]=_0xd7fd81[_0x445ce3(0xe0)](/\s+/),_0xd2af93=parseInt(_0x5d4478,0xa),_0x106a38=_0x2a0cdf['join']('\x20');if(isNaN(_0xd2af93))return null;return{'pid':_0x528686,'ppid':_0xd2af93,'comm':_0x106a38};}catch{return null;}}function getProcessInfo(_0x2f918e){const _0x5d9d34=a109_0x8603d3;if(process[_0x5d9d34(0x102)]===_0x5d9d34(0xea))return getProcessInfoWindows(_0x2f918e);return getProcessInfoPosix(_0x2f918e);}function getBasename(_0x355390){const _0x302523=a109_0x8603d3;return _0x355390[_0x302523(0xee)](/^-/,'')[_0x302523(0xe0)]('/')['pop']()?.[_0x302523(0x107)]()||'';}function isShell(_0x9467e3){const _0x43dcb0=a109_0x8603d3;return SHELL_NAMES[_0x43dcb0(0xf3)](getBasename(_0x9467e3));}function isEphemeralShellSpawner(_0x17dcd6){const _0x26c202=a109_0x8603d3;return EPHEMERAL_SHELL_SPAWNERS[_0x26c202(0xf3)](getBasename(_0x17dcd6));}let cachedShellPID;function findShellPID(){const _0x561182=a109_0x8603d3;if(process[_0x561182(0xde)]===undefined)return process['pid'];let _0x57b803=process[_0x561182(0xde)];const _0x20d718=0xa;let _0x2728f0=0x0;while(_0x2728f0<_0x20d718){const _0x125d6a=getProcessInfo(_0x57b803);if(!_0x125d6a)break;if(isShell(_0x125d6a['comm'])){const _0x5d5c3c=getProcessInfo(_0x125d6a[_0x561182(0xde)]);if(_0x5d5c3c&&isEphemeralShellSpawner(_0x5d5c3c['comm'])){_0x57b803=_0x125d6a[_0x561182(0xde)],_0x2728f0++;continue;}return _0x125d6a[_0x561182(0x108)];}if(_0x125d6a['ppid']===0x0||_0x125d6a[_0x561182(0xde)]===0x1){if(isShell(_0x125d6a[_0x561182(0xf4)]))return _0x125d6a[_0x561182(0x108)];break;}_0x57b803=_0x125d6a[_0x561182(0xde)],_0x2728f0++;}return process[_0x561182(0xde)]!==undefined?process[_0x561182(0xde)]:process[_0x561182(0x108)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a109_0x5ce9(){const _0xeb64cf=['darwin','start','win32','elvish','claude','ignore','replace','10vcRURP','cursor','7929328sXyjdR','unref','has','comm','45dnsFjZ','code','ksh','wmic\x20process\x20where\x20ProcessId=','isInteger','ps\x20-p\x20','xdg-open','bash','open','28802euEFoS','zsh','28795019Vphwes','10982331JVfDlG','platform','\x20get\x20ParentProcessId,Name\x20/format:csv','2211966WmkcMS','tcsh','12FFcCfl','toLowerCase','pid','filter','utf-8','powershell','224564cLXmtf','xonsh','\x20-o\x20ppid=,comm=','ppid','15tofIYV','split','csh','kill','dash','pwsh','4797380ESKwdH','trim','fish'];a109_0x5ce9=function(){return _0xeb64cf;};return a109_0x5ce9();}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x562fcb){const _0x285970=a109_0x8603d3;if(!Number[_0x285970(0xf9)](_0x562fcb)||_0x562fcb<=0x0)return![];try{return process[_0x285970(0xe2)](_0x562fcb,0x0),!![];}catch{return![];}}export function openBrowser(_0x5a2556){const _0x48166b=a109_0x8603d3,_0x6745a7=process[_0x48166b(0x102)],_0x3f4227=_0x6745a7===_0x48166b(0xe8)?_0x48166b(0xfd):_0x6745a7===_0x48166b(0xea)?_0x48166b(0xe9):_0x48166b(0xfb);spawn(_0x3f4227,[_0x5a2556],{'detached':!![],'stdio':_0x48166b(0xed)})[_0x48166b(0xf2)]();}
1
+ const a109_0x5628c2=a109_0x1913;(function(_0x69042c,_0x554bf6){const _0x1c165b=a109_0x1913,_0x35f332=_0x69042c();while(!![]){try{const _0x2fdbfd=parseInt(_0x1c165b(0x15d))/0x1+-parseInt(_0x1c165b(0x14f))/0x2*(parseInt(_0x1c165b(0x153))/0x3)+-parseInt(_0x1c165b(0x164))/0x4+-parseInt(_0x1c165b(0x16b))/0x5*(parseInt(_0x1c165b(0x155))/0x6)+-parseInt(_0x1c165b(0x16e))/0x7*(-parseInt(_0x1c165b(0x152))/0x8)+-parseInt(_0x1c165b(0x169))/0x9+parseInt(_0x1c165b(0x168))/0xa;if(_0x2fdbfd===_0x554bf6)break;else _0x35f332['push'](_0x35f332['shift']());}catch(_0x3132e3){_0x35f332['push'](_0x35f332['shift']());}}}(a109_0x38b5,0xbc8f2));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a109_0x5628c2(0x173),'zsh','sh',a109_0x5628c2(0x162),a109_0x5628c2(0x15e),a109_0x5628c2(0x14c),'csh',a109_0x5628c2(0x16a),'pwsh',a109_0x5628c2(0x161),'nu','ion',a109_0x5628c2(0x16c),a109_0x5628c2(0x14e)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a109_0x5628c2(0x163),a109_0x5628c2(0x170),'cursor']);function getProcessInfoWindows(_0x393ebd){const _0x4debb7=a109_0x5628c2;try{if(!Number['isInteger'](_0x393ebd)||_0x393ebd<=0x0)return null;const _0x3d2301=execSync(_0x4debb7(0x159)+_0x393ebd+_0x4debb7(0x160),{'encoding':_0x4debb7(0x175),'windowsHide':!![]})['trim'](),_0x401d86=_0x3d2301[_0x4debb7(0x157)]('\x0a')[_0x4debb7(0x16f)](_0x53f784=>_0x53f784['trim']());if(_0x401d86[_0x4debb7(0x154)]<0x2)return null;const _0x19e2da=_0x401d86[_0x401d86[_0x4debb7(0x154)]-0x1][_0x4debb7(0x157)](',');if(_0x19e2da[_0x4debb7(0x154)]<0x3)return null;const _0x1f2078=_0x19e2da[0x1]?.[_0x4debb7(0x166)]()||'',_0x4c14b1=parseInt(_0x19e2da[0x2]?.[_0x4debb7(0x166)]()||'0',0xa);if(isNaN(_0x4c14b1)||!_0x1f2078)return null;return{'pid':_0x393ebd,'ppid':_0x4c14b1,'comm':_0x1f2078[_0x4debb7(0x172)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x5e3274){const _0x23c943=a109_0x5628c2;try{const _0x1c70bc=0x400000;if(!Number[_0x23c943(0x15f)](_0x5e3274)||_0x5e3274<=0x0||_0x5e3274>_0x1c70bc)return null;const _0x5be7fe=execSync(_0x23c943(0x151)+_0x5e3274+'\x20-o\x20ppid=,comm=',{'encoding':_0x23c943(0x175),'stdio':'pipe'})[_0x23c943(0x166)](),[_0x1c5533,..._0x5af6c7]=_0x5be7fe[_0x23c943(0x157)](/\s+/),_0x441844=parseInt(_0x1c5533,0xa),_0x3dda2f=_0x5af6c7[_0x23c943(0x14d)]('\x20');if(isNaN(_0x441844))return null;return{'pid':_0x5e3274,'ppid':_0x441844,'comm':_0x3dda2f};}catch{return null;}}function getProcessInfo(_0x5edc64){const _0x32b427=a109_0x5628c2;if(process['platform']===_0x32b427(0x15b))return getProcessInfoWindows(_0x5edc64);return getProcessInfoPosix(_0x5edc64);}function getBasename(_0x5ab559){const _0x43bb45=a109_0x5628c2;return _0x5ab559[_0x43bb45(0x172)](/^-/,'')[_0x43bb45(0x157)]('/')[_0x43bb45(0x167)]()?.['toLowerCase']()||'';}function isShell(_0x577fdb){const _0x2e5364=a109_0x5628c2;return SHELL_NAMES[_0x2e5364(0x171)](getBasename(_0x577fdb));}function a109_0x38b5(){const _0x12c170=['powershell','fish','claude','5542728nFRYXR','unref','trim','pop','41290870hgVXeV','10076913IhJdhG','dash','2237485iNmPQy','elvish','platform','778351LWTkET','filter','code','has','replace','bash','xdg-open','utf-8','open','tcsh','join','xonsh','1475374PcFhhG','kill','ps\x20-p\x20','8YaIIAi','3RtWTWA','length','12hdLgwd','pid','split','ppid','wmic\x20process\x20where\x20ProcessId=','start','win32','comm','670078DFwVmu','ksh','isInteger','\x20get\x20ParentProcessId,Name\x20/format:csv'];a109_0x38b5=function(){return _0x12c170;};return a109_0x38b5();}function isEphemeralShellSpawner(_0x5ef261){const _0x3db12e=a109_0x5628c2;return EPHEMERAL_SHELL_SPAWNERS[_0x3db12e(0x171)](getBasename(_0x5ef261));}let cachedShellPID;function findShellPID(){const _0x7cf823=a109_0x5628c2;if(process[_0x7cf823(0x158)]===undefined)return process[_0x7cf823(0x156)];let _0x234135=process[_0x7cf823(0x158)];const _0x5c7e0c=0xa;let _0x321e2b=0x0;while(_0x321e2b<_0x5c7e0c){const _0x5456b7=getProcessInfo(_0x234135);if(!_0x5456b7)break;if(isShell(_0x5456b7['comm'])){const _0x178322=getProcessInfo(_0x5456b7['ppid']);if(_0x178322&&isEphemeralShellSpawner(_0x178322[_0x7cf823(0x15c)])){_0x234135=_0x5456b7[_0x7cf823(0x158)],_0x321e2b++;continue;}return _0x5456b7[_0x7cf823(0x156)];}if(_0x5456b7[_0x7cf823(0x158)]===0x0||_0x5456b7[_0x7cf823(0x158)]===0x1){if(isShell(_0x5456b7[_0x7cf823(0x15c)]))return _0x5456b7[_0x7cf823(0x156)];break;}_0x234135=_0x5456b7[_0x7cf823(0x158)],_0x321e2b++;}return process[_0x7cf823(0x158)]!==undefined?process['ppid']:process[_0x7cf823(0x156)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x356ab7){const _0x161503=a109_0x5628c2;if(!Number[_0x161503(0x15f)](_0x356ab7)||_0x356ab7<=0x0)return![];try{return process[_0x161503(0x150)](_0x356ab7,0x0),!![];}catch{return![];}}function a109_0x1913(_0x43e6e6,_0x1f63a6){_0x43e6e6=_0x43e6e6-0x14c;const _0x38b5f5=a109_0x38b5();let _0x1913dc=_0x38b5f5[_0x43e6e6];return _0x1913dc;}export function openBrowser(_0x15312f){const _0x323126=a109_0x5628c2,_0x5191c4=process[_0x323126(0x16d)],_0x512c83=_0x5191c4==='darwin'?_0x323126(0x176):_0x5191c4==='win32'?_0x323126(0x15a):_0x323126(0x174);spawn(_0x512c83,[_0x15312f],{'detached':!![],'stdio':'ignore'})[_0x323126(0x165)]();}
@@ -1 +1 @@
1
- (function(_0x32e01d,_0x5cec2b){const _0x3c904c=a110_0x5737,_0x4b0016=_0x32e01d();while(!![]){try{const _0x167c18=-parseInt(_0x3c904c(0x106))/0x1*(parseInt(_0x3c904c(0x10e))/0x2)+-parseInt(_0x3c904c(0x114))/0x3+-parseInt(_0x3c904c(0x10c))/0x4+parseInt(_0x3c904c(0x103))/0x5+-parseInt(_0x3c904c(0x115))/0x6*(parseInt(_0x3c904c(0x10f))/0x7)+parseInt(_0x3c904c(0x102))/0x8+-parseInt(_0x3c904c(0x10a))/0x9*(-parseInt(_0x3c904c(0x111))/0xa);if(_0x167c18===_0x5cec2b)break;else _0x4b0016['push'](_0x4b0016['shift']());}catch(_0x531e01){_0x4b0016['push'](_0x4b0016['shift']());}}}(a110_0x25c8,0x8316e));import*as a110_0x2f74f8 from'readline';export async function confirm(_0x19e3aa){const _0x2339b1=a110_0x5737,_0x1d9c43=a110_0x2f74f8['createInterface']({'input':process['stdin'],'output':process[_0x2339b1(0x116)]});return new Promise(_0x9df20c=>{const _0x1fcaec=_0x2339b1;_0x1d9c43[_0x1fcaec(0x10d)](_0x19e3aa+_0x1fcaec(0x118),_0x54034d=>{const _0x2c6bfa=_0x1fcaec;_0x1d9c43[_0x2c6bfa(0x105)](),_0x9df20c(_0x54034d[_0x2c6bfa(0x11d)]()==='y'||_0x54034d['toLowerCase']()===_0x2c6bfa(0x110));});});}function a110_0x5737(_0x23e5c2,_0x3dec33){_0x23e5c2=_0x23e5c2-0x102;const _0x25c815=a110_0x25c8();let _0x5737c0=_0x25c815[_0x23e5c2];return _0x5737c0;}function a110_0x25c8(){const _0x4525c9=['stderr','write','data','resume','toLowerCase','7936776zJHGny','2837400KMXdom','\x20[y/N]\x20','close','52bEezAP','isTTY','pause','setEncoding','40419etivxw','stdin','3075620aNWNSG','question','30688bsryzO','1876ylVNvr','yes','3750eENKsK','setRawMode','exit','3218097jKMlzx','1506WLqXgy','stdout','utf8','\x20(y/N):\x20'];a110_0x25c8=function(){return _0x4525c9;};return a110_0x25c8();}export async function confirmKey(_0x431fba){const _0x3cafeb=a110_0x5737;if(!process[_0x3cafeb(0x10b)][_0x3cafeb(0x107)])return![];return process[_0x3cafeb(0x119)]['write'](_0x431fba+_0x3cafeb(0x104)),new Promise(_0x1da02e=>{const _0x54fcff=_0x3cafeb,_0xf846f5=process[_0x54fcff(0x10b)];_0xf846f5[_0x54fcff(0x112)](!![]),_0xf846f5[_0x54fcff(0x11c)](),_0xf846f5[_0x54fcff(0x109)](_0x54fcff(0x117));const _0x5436d3=_0x59847b=>{const _0x278b9c=_0x54fcff;_0xf846f5[_0x278b9c(0x112)](![]),_0xf846f5[_0x278b9c(0x108)](),_0xf846f5['removeListener'](_0x278b9c(0x11b),_0x5436d3);if(_0x59847b==='\x1b'){process[_0x278b9c(0x119)]['write']('\x0a'),_0x1da02e(![]);return;}_0x59847b==='\x03'&&(process[_0x278b9c(0x119)][_0x278b9c(0x11a)]('\x0a'),process[_0x278b9c(0x113)](0x82));if(_0x59847b[_0x278b9c(0x11d)]()==='y'){process[_0x278b9c(0x119)][_0x278b9c(0x11a)]('y\x0a'),_0x1da02e(!![]);return;}process['stderr']['write']('\x0a'),_0x1da02e(![]);};_0xf846f5['on'](_0x54fcff(0x11b),_0x5436d3);});}
1
+ (function(_0x22e7e1,_0xe9ec71){const _0x39f55d=a110_0x538e,_0x1dd978=_0x22e7e1();while(!![]){try{const _0x5abec6=parseInt(_0x39f55d(0x1b7))/0x1+parseInt(_0x39f55d(0x1b2))/0x2+-parseInt(_0x39f55d(0x1bc))/0x3+-parseInt(_0x39f55d(0x1b9))/0x4+-parseInt(_0x39f55d(0x1a8))/0x5+parseInt(_0x39f55d(0x1b3))/0x6+-parseInt(_0x39f55d(0x1a9))/0x7*(parseInt(_0x39f55d(0x1ad))/0x8);if(_0x5abec6===_0xe9ec71)break;else _0x1dd978['push'](_0x1dd978['shift']());}catch(_0xa4f1dc){_0x1dd978['push'](_0x1dd978['shift']());}}}(a110_0x539e,0x1a940));function a110_0x539e(){const _0x359319=['\x20[y/N]\x20','797412GLqMlc','setRawMode','exit','281838uzfpFv','resume','setEncoding','170840HYNnau','1050yuReRr','data','createInterface','\x20(y/N):\x20','1064qfGzIF','write','toLowerCase','isTTY','stdin','348542mXzrEh','745218DkfZcM','pause','close','stderr','157807NFwYXA'];a110_0x539e=function(){return _0x359319;};return a110_0x539e();}function a110_0x538e(_0x53d7b7,_0x4609e8){_0x53d7b7=_0x53d7b7-0x1a6;const _0x539e9f=a110_0x539e();let _0x538e52=_0x539e9f[_0x53d7b7];return _0x538e52;}import*as a110_0x467a7d from'readline';export async function confirm(_0x42943c){const _0x1cae53=a110_0x538e,_0x1d732f=a110_0x467a7d[_0x1cae53(0x1ab)]({'input':process[_0x1cae53(0x1b1)],'output':process['stdout']});return new Promise(_0x322d45=>{const _0x3b4c7c=_0x1cae53;_0x1d732f['question'](_0x42943c+_0x3b4c7c(0x1ac),_0x4b4b87=>{const _0x10dc66=_0x3b4c7c;_0x1d732f[_0x10dc66(0x1b5)](),_0x322d45(_0x4b4b87[_0x10dc66(0x1af)]()==='y'||_0x4b4b87[_0x10dc66(0x1af)]()==='yes');});});}export async function confirmKey(_0x4ce6ab){const _0xd848e2=a110_0x538e;if(!process[_0xd848e2(0x1b1)][_0xd848e2(0x1b0)])return![];return process['stderr'][_0xd848e2(0x1ae)](_0x4ce6ab+_0xd848e2(0x1b8)),new Promise(_0x47dfb0=>{const _0x256fe3=_0xd848e2,_0xc72d48=process['stdin'];_0xc72d48[_0x256fe3(0x1ba)](!![]),_0xc72d48[_0x256fe3(0x1a6)](),_0xc72d48[_0x256fe3(0x1a7)]('utf8');const _0x45cb62=_0xb23583=>{const _0x5c8281=_0x256fe3;_0xc72d48[_0x5c8281(0x1ba)](![]),_0xc72d48[_0x5c8281(0x1b4)](),_0xc72d48['removeListener'](_0x5c8281(0x1aa),_0x45cb62);if(_0xb23583==='\x1b'){process[_0x5c8281(0x1b6)]['write']('\x0a'),_0x47dfb0(![]);return;}_0xb23583==='\x03'&&(process['stderr']['write']('\x0a'),process[_0x5c8281(0x1bb)](0x82));if(_0xb23583[_0x5c8281(0x1af)]()==='y'){process['stderr']['write']('y\x0a'),_0x47dfb0(!![]);return;}process[_0x5c8281(0x1b6)][_0x5c8281(0x1ae)]('\x0a'),_0x47dfb0(![]);};_0xc72d48['on'](_0x256fe3(0x1aa),_0x45cb62);});}
@@ -1 +1 @@
1
- (function(_0x501219,_0x23cd5e){const _0x76b70f=a111_0x4804,_0x138996=_0x501219();while(!![]){try{const _0x1bba95=-parseInt(_0x76b70f(0x18a))/0x1*(-parseInt(_0x76b70f(0x184))/0x2)+-parseInt(_0x76b70f(0x182))/0x3*(-parseInt(_0x76b70f(0x185))/0x4)+-parseInt(_0x76b70f(0x16f))/0x5*(-parseInt(_0x76b70f(0x174))/0x6)+-parseInt(_0x76b70f(0x16d))/0x7+parseInt(_0x76b70f(0x170))/0x8*(parseInt(_0x76b70f(0x164))/0x9)+parseInt(_0x76b70f(0x17f))/0xa+-parseInt(_0x76b70f(0x17b))/0xb;if(_0x1bba95===_0x23cd5e)break;else _0x138996['push'](_0x138996['shift']());}catch(_0x17c8df){_0x138996['push'](_0x138996['shift']());}}}(a111_0x8c01,0xaaea6));import{existsSync,readFileSync}from'fs';import a111_0xa72ae0 from'path';import{parse as a111_0x1f6881}from'yaml';export function parsePath(_0x32ccfd){const _0x3ea306=a111_0x4804;if(!_0x32ccfd||_0x32ccfd[_0x3ea306(0x16c)]()==='')throw new Error(_0x3ea306(0x160));const _0x2239ca=_0x32ccfd['trim']();if(_0x2239ca==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x32ccfd};const _0x1f8b22=_0x2239ca[_0x3ea306(0x171)]('/')?_0x2239ca[_0x3ea306(0x189)](0x1):_0x2239ca,_0x4d6575=_0x1f8b22[_0x3ea306(0x18b)]('/')['filter'](_0x14a197=>_0x14a197!=='');if(_0x4d6575[_0x3ea306(0x169)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x130f14=_0x2239ca[_0x3ea306(0x171)]('/')||!isRelativePathSegment(_0x4d6575[0x0]);for(const _0x41d72c of _0x4d6575){validatePathSegment(_0x41d72c);}return{'segments':_0x4d6575,'isAbsolute':_0x130f14,'raw':_0x32ccfd};}function a111_0x4804(_0x2a793e,_0x2ec6fd){_0x2a793e=_0x2a793e-0x160;const _0x8c015f=a111_0x8c01();let _0x4804a9=_0x8c015f[_0x2a793e];return _0x4804a9;}function isRelativePathSegment(_0x2f77b1){return _0x2f77b1==='.'||_0x2f77b1==='..';}function validatePathSegment(_0x330a96){const _0x2b8953=a111_0x4804;if(_0x330a96==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x330a96==='.'||_0x330a96==='..')return;if(/[\x00-\x1F\x7F]/[_0x2b8953(0x17e)](_0x330a96))throw new Error(_0x2b8953(0x16a)+_0x330a96);if(_0x330a96!==_0x330a96[_0x2b8953(0x16c)]()){}}export function validatePath(_0x32d942){const _0xe5c81=a111_0x4804;if(_0x32d942[_0xe5c81(0x161)][_0xe5c81(0x169)]===0x0&&!_0x32d942[_0xe5c81(0x175)])throw new Error(_0xe5c81(0x188));if(_0x32d942[_0xe5c81(0x175)]){if(_0x32d942[_0xe5c81(0x161)][0x0]==='..')throw new Error(_0xe5c81(0x165));let _0x347026=0x0;for(const _0x5e9d33 of _0x32d942['segments']){if(_0x5e9d33==='..'){if(_0x347026===0x0)throw new Error(_0xe5c81(0x16b));_0x347026--;}else _0x5e9d33!=='.'&&_0x347026++;}}}export function joinPaths(_0x6fee11,_0x112074){const _0x551bb2=a111_0x4804;if(!_0x6fee11||_0x6fee11==='/')return _0x112074;if(!_0x112074||_0x112074==='.')return _0x6fee11;if(_0x112074[_0x551bb2(0x171)]('/'))return _0x112074;const _0x2fa51e=parsePath(_0x6fee11),_0x1da591=parsePath(_0x112074),_0x481840=[..._0x2fa51e[_0x551bb2(0x161)]];for(const _0x2896fa of _0x1da591[_0x551bb2(0x161)]){if(_0x2896fa==='.')continue;else{if(_0x2896fa==='..'){if(_0x481840[_0x551bb2(0x169)]===0x0)throw new Error(_0x551bb2(0x181));_0x481840['pop']();}else _0x481840['push'](_0x2896fa);}}const _0x3b1c0e=_0x481840[_0x551bb2(0x177)]('/');return _0x2fa51e[_0x551bb2(0x173)][_0x551bb2(0x171)]('/')?'/'+_0x3b1c0e:_0x3b1c0e;}export function normalizePath(_0xc55d7f){const _0x36e43b=a111_0x4804,_0x11e928=parsePath(_0xc55d7f),_0x3935fa=[];for(const _0x4118b5 of _0x11e928[_0x36e43b(0x161)]){if(_0x4118b5==='.')continue;else{if(_0x4118b5==='..'){if(_0x3935fa[_0x36e43b(0x169)]===0x0){if(_0x11e928[_0x36e43b(0x175)])throw new Error('Cannot\x20navigate\x20above\x20root');_0x3935fa[_0x36e43b(0x172)]('..');}else _0x3935fa[_0x3935fa[_0x36e43b(0x169)]-0x1]==='..'?_0x3935fa[_0x36e43b(0x172)]('..'):_0x3935fa[_0x36e43b(0x16e)]();}else _0x3935fa[_0x36e43b(0x172)](_0x4118b5);}}if(_0x3935fa['length']===0x0)return _0x11e928['isAbsolute']?'/':'.';const _0x5d0515=_0x3935fa[_0x36e43b(0x177)]('/');return _0x11e928['raw'][_0x36e43b(0x171)]('/')?'/'+_0x5d0515:_0x5d0515;}export function getParentPath(_0x193c0a){const _0x12fa0c=a111_0x4804,_0x3fa03d=parsePath(_0x193c0a);if(_0x3fa03d[_0x12fa0c(0x161)][_0x12fa0c(0x169)]<=0x1)return'/';const _0x42110c=_0x3fa03d['segments'][_0x12fa0c(0x176)](0x0,-0x1)[_0x12fa0c(0x177)]('/');return _0x3fa03d[_0x12fa0c(0x173)][_0x12fa0c(0x171)]('/')?'/'+_0x42110c:_0x42110c;}export function getBaseName(_0x385f2d){const _0x5afb89=a111_0x4804,_0x7ccef5=parsePath(_0x385f2d);return _0x7ccef5['segments'][_0x7ccef5[_0x5afb89(0x161)][_0x5afb89(0x169)]-0x1]||'';}export function isChildPath(_0x3da17d,_0x48bd46){const _0x3eea61=a111_0x4804,_0x49c09d=parsePath(_0x3da17d),_0x1c8786=parsePath(_0x48bd46);if(_0x49c09d[_0x3eea61(0x161)]['length']<=_0x1c8786[_0x3eea61(0x161)]['length'])return![];for(let _0x507dec=0x0;_0x507dec<_0x1c8786[_0x3eea61(0x161)][_0x3eea61(0x169)];_0x507dec++){if(_0x49c09d[_0x3eea61(0x161)][_0x507dec]!==_0x1c8786[_0x3eea61(0x161)][_0x507dec])return![];}return!![];}function a111_0x8c01(){const _0x433c0f=['pop','1780xoUqak','320NPvyvm','startsWith','push','raw','12918IVYewV','isAbsolute','slice','join','.yml','tdx.json','dirname','26483281YDVzVH','.yaml','parse','test','6869700ERdmnR','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','Cannot\x20navigate\x20above\x20root','1348149zMYEWw','No\x20tdx.json\x20found\x20for\x20file:\x20','3768ziCABY','8HZEfFK','name','utf-8','Relative\x20path\x20cannot\x20be\x20empty','substring','118pHmlbE','split','parent_segment','Path\x20cannot\x20be\x20empty','segments','relative','Cannot\x20split\x20empty\x20path','197982GeNqlR','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','type','endsWith','journey','length','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','Path\x20attempts\x20to\x20navigate\x20above\x20root','trim','2427565FBjAWL'];a111_0x8c01=function(){return _0x433c0f;};return a111_0x8c01();}export function splitPath(_0x49344c){const _0x56f078=a111_0x4804,_0x4aa206=parsePath(_0x49344c);if(_0x4aa206[_0x56f078(0x161)][_0x56f078(0x169)]===0x0)throw new Error(_0x56f078(0x163));if(_0x4aa206['segments'][_0x56f078(0x169)]===0x1)return{'parent':_0x4aa206[_0x56f078(0x161)][0x0]};return{'parent':_0x4aa206[_0x56f078(0x161)][0x0],'child':_0x4aa206[_0x56f078(0x161)][_0x56f078(0x176)](0x1)[_0x56f078(0x177)]('/')};}export function isYamlFilePath(_0x49efe0){const _0x3ff319=a111_0x4804;return _0x49efe0[_0x3ff319(0x167)](_0x3ff319(0x178))||_0x49efe0['endsWith'](_0x3ff319(0x17c));}export function resolveYamlFilePath(_0x22b7fa){const _0x301e32=a111_0x4804,_0x414a25=a111_0xa72ae0['resolve'](_0x22b7fa);if(!existsSync(_0x414a25))throw new Error('File\x20not\x20found:\x20'+_0x22b7fa);let _0x25fefe=a111_0xa72ae0[_0x301e32(0x17a)](_0x414a25),_0x1ccd33=null,_0x2e0bad=null;const _0x38e3f5=a111_0xa72ae0[_0x301e32(0x17d)](_0x25fefe)['root'];while(_0x25fefe!==_0x38e3f5){const _0x21acb0=a111_0xa72ae0[_0x301e32(0x177)](_0x25fefe,_0x301e32(0x179));if(existsSync(_0x21acb0)){_0x1ccd33=_0x21acb0,_0x2e0bad=_0x25fefe;break;}_0x25fefe=a111_0xa72ae0['dirname'](_0x25fefe);}if(!_0x1ccd33||!_0x2e0bad)throw new Error(_0x301e32(0x183)+_0x22b7fa);const _0x1cd736=readFileSync(_0x1ccd33,_0x301e32(0x187)),_0x1d27f1=JSON[_0x301e32(0x17d)](_0x1cd736),_0x7e605b=_0x1d27f1[_0x301e32(0x18c)];if(!_0x7e605b)throw new Error(_0x301e32(0x180));const _0x20d04c=readFileSync(_0x414a25,_0x301e32(0x187)),_0x5e14fe=a111_0x1f6881(_0x20d04c),_0xf015b1=_0x5e14fe[_0x301e32(0x186)];if(!_0xf015b1)throw new Error('Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20'+_0x22b7fa);const _0x5073ab=_0x5e14fe[_0x301e32(0x166)]===_0x301e32(0x168)?'journey':'segment',_0x4f2e32=a111_0xa72ae0[_0x301e32(0x162)](_0x2e0bad,_0x414a25),_0x39440d=a111_0xa72ae0[_0x301e32(0x17a)](_0x4f2e32),_0x58eb2b=_0x39440d==='.'?'':_0x39440d['replace'](/\\/g,'/'),_0xc1f58d=_0x58eb2b?_0x7e605b+'/'+_0x58eb2b+'/'+_0xf015b1:_0x7e605b+'/'+_0xf015b1;return{'parentSegment':_0x7e605b,'segmentName':_0xf015b1,'folderPath':_0x58eb2b,'fullPath':_0xc1f58d,'resourceType':_0x5073ab};}
1
+ (function(_0x52723e,_0x236c3e){const _0x348a34=a111_0x2fa4,_0x48d1cc=_0x52723e();while(!![]){try{const _0xa05dc4=-parseInt(_0x348a34(0xd8))/0x1+-parseInt(_0x348a34(0xbb))/0x2*(parseInt(_0x348a34(0xd9))/0x3)+parseInt(_0x348a34(0xb9))/0x4+parseInt(_0x348a34(0xbe))/0x5+parseInt(_0x348a34(0xc0))/0x6*(parseInt(_0x348a34(0xd1))/0x7)+parseInt(_0x348a34(0xd0))/0x8*(-parseInt(_0x348a34(0xcc))/0x9)+parseInt(_0x348a34(0xc2))/0xa;if(_0xa05dc4===_0x236c3e)break;else _0x48d1cc['push'](_0x48d1cc['shift']());}catch(_0x370c53){_0x48d1cc['push'](_0x48d1cc['shift']());}}}(a111_0x2973,0xdff04));import{existsSync,readFileSync}from'fs';import a111_0x551058 from'path';import{parse as a111_0x3ac2db}from'yaml';export function parsePath(_0x287e1b){const _0x3bc1a3=a111_0x2fa4;if(!_0x287e1b||_0x287e1b[_0x3bc1a3(0xc1)]()==='')throw new Error(_0x3bc1a3(0xce));const _0x2d74ec=_0x287e1b[_0x3bc1a3(0xc1)]();if(_0x2d74ec==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x287e1b};const _0x1a975c=_0x2d74ec[_0x3bc1a3(0xdf)]('/')?_0x2d74ec[_0x3bc1a3(0xbc)](0x1):_0x2d74ec,_0x449cde=_0x1a975c['split']('/')['filter'](_0x268e13=>_0x268e13!=='');if(_0x449cde[_0x3bc1a3(0xda)]===0x0)throw new Error(_0x3bc1a3(0xd5));const _0x1a0489=_0x2d74ec[_0x3bc1a3(0xdf)]('/')||!isRelativePathSegment(_0x449cde[0x0]);for(const _0x5a0d4d of _0x449cde){validatePathSegment(_0x5a0d4d);}return{'segments':_0x449cde,'isAbsolute':_0x1a0489,'raw':_0x287e1b};}function isRelativePathSegment(_0xb06d28){return _0xb06d28==='.'||_0xb06d28==='..';}function validatePathSegment(_0x13ad0c){const _0x578d6c=a111_0x2fa4;if(_0x13ad0c==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x13ad0c==='.'||_0x13ad0c==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x13ad0c))throw new Error(_0x578d6c(0xb7)+_0x13ad0c);if(_0x13ad0c!==_0x13ad0c[_0x578d6c(0xc1)]()){}}export function validatePath(_0x36fbaf){const _0xc4cbd9=a111_0x2fa4;if(_0x36fbaf['segments']['length']===0x0&&!_0x36fbaf['isAbsolute'])throw new Error(_0xc4cbd9(0xdd));if(_0x36fbaf[_0xc4cbd9(0xdc)]){if(_0x36fbaf['segments'][0x0]==='..')throw new Error('Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22');let _0x27d9b9=0x0;for(const _0x23943f of _0x36fbaf[_0xc4cbd9(0xd7)]){if(_0x23943f==='..'){if(_0x27d9b9===0x0)throw new Error(_0xc4cbd9(0xca));_0x27d9b9--;}else _0x23943f!=='.'&&_0x27d9b9++;}}}export function joinPaths(_0x354397,_0x39167e){const _0x1f72ed=a111_0x2fa4;if(!_0x354397||_0x354397==='/')return _0x39167e;if(!_0x39167e||_0x39167e==='.')return _0x354397;if(_0x39167e[_0x1f72ed(0xdf)]('/'))return _0x39167e;const _0x2ece9f=parsePath(_0x354397),_0x3a255a=parsePath(_0x39167e),_0x20fbd3=[..._0x2ece9f['segments']];for(const _0x249f9c of _0x3a255a[_0x1f72ed(0xd7)]){if(_0x249f9c==='.')continue;else{if(_0x249f9c==='..'){if(_0x20fbd3[_0x1f72ed(0xda)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x20fbd3[_0x1f72ed(0xc6)]();}else _0x20fbd3['push'](_0x249f9c);}}const _0x17761e=_0x20fbd3[_0x1f72ed(0xc4)]('/');return _0x2ece9f[_0x1f72ed(0xd2)][_0x1f72ed(0xdf)]('/')?'/'+_0x17761e:_0x17761e;}function a111_0x2973(){const _0x222328=['Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','36SfUYEa','.yaml','Path\x20cannot\x20be\x20empty','push','990048wxWQqn','509341bygRjT','raw','type','journey','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','replace','segments','1453454YWyzNk','21LcqdDH','length','.yml','isAbsolute','Relative\x20path\x20cannot\x20be\x20empty','parent_segment','startsWith','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','root','1718416ByYsNB','segment','364130BIxAcz','substring','dirname','8014340LwwXZY','parse','12vOtUNO','trim','19621870aKtFmJ','tdx.json','join','File\x20not\x20found:\x20','pop','Cannot\x20navigate\x20above\x20root','slice','utf-8','Path\x20attempts\x20to\x20navigate\x20above\x20root'];a111_0x2973=function(){return _0x222328;};return a111_0x2973();}export function normalizePath(_0x5022bd){const _0xbf3ad2=a111_0x2fa4,_0x18d3b6=parsePath(_0x5022bd),_0x491839=[];for(const _0xd68a3a of _0x18d3b6[_0xbf3ad2(0xd7)]){if(_0xd68a3a==='.')continue;else{if(_0xd68a3a==='..'){if(_0x491839[_0xbf3ad2(0xda)]===0x0){if(_0x18d3b6[_0xbf3ad2(0xdc)])throw new Error(_0xbf3ad2(0xc7));_0x491839[_0xbf3ad2(0xcf)]('..');}else _0x491839[_0x491839[_0xbf3ad2(0xda)]-0x1]==='..'?_0x491839[_0xbf3ad2(0xcf)]('..'):_0x491839[_0xbf3ad2(0xc6)]();}else _0x491839[_0xbf3ad2(0xcf)](_0xd68a3a);}}if(_0x491839[_0xbf3ad2(0xda)]===0x0)return _0x18d3b6[_0xbf3ad2(0xdc)]?'/':'.';const _0x359b4b=_0x491839['join']('/');return _0x18d3b6[_0xbf3ad2(0xd2)]['startsWith']('/')?'/'+_0x359b4b:_0x359b4b;}function a111_0x2fa4(_0x5d8790,_0x222a24){_0x5d8790=_0x5d8790-0xb6;const _0x2973c8=a111_0x2973();let _0x2fa4d1=_0x2973c8[_0x5d8790];return _0x2fa4d1;}export function getParentPath(_0x67075b){const _0x43da0f=a111_0x2fa4,_0x565e70=parsePath(_0x67075b);if(_0x565e70[_0x43da0f(0xd7)][_0x43da0f(0xda)]<=0x1)return'/';const _0x190199=_0x565e70[_0x43da0f(0xd7)][_0x43da0f(0xc8)](0x0,-0x1)[_0x43da0f(0xc4)]('/');return _0x565e70[_0x43da0f(0xd2)][_0x43da0f(0xdf)]('/')?'/'+_0x190199:_0x190199;}export function getBaseName(_0x991fa6){const _0x4de5e8=a111_0x2fa4,_0xd3ae09=parsePath(_0x991fa6);return _0xd3ae09[_0x4de5e8(0xd7)][_0xd3ae09['segments'][_0x4de5e8(0xda)]-0x1]||'';}export function isChildPath(_0x2545ac,_0x2aa8e1){const _0x4a7f2a=a111_0x2fa4,_0x5437f6=parsePath(_0x2545ac),_0x2e4983=parsePath(_0x2aa8e1);if(_0x5437f6[_0x4a7f2a(0xd7)][_0x4a7f2a(0xda)]<=_0x2e4983[_0x4a7f2a(0xd7)][_0x4a7f2a(0xda)])return![];for(let _0x3d88a0=0x0;_0x3d88a0<_0x2e4983[_0x4a7f2a(0xd7)][_0x4a7f2a(0xda)];_0x3d88a0++){if(_0x5437f6['segments'][_0x3d88a0]!==_0x2e4983['segments'][_0x3d88a0])return![];}return!![];}export function splitPath(_0x5dbcce){const _0x3dad05=a111_0x2fa4,_0x3dc2ed=parsePath(_0x5dbcce);if(_0x3dc2ed[_0x3dad05(0xd7)][_0x3dad05(0xda)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x3dc2ed[_0x3dad05(0xd7)][_0x3dad05(0xda)]===0x1)return{'parent':_0x3dc2ed[_0x3dad05(0xd7)][0x0]};return{'parent':_0x3dc2ed['segments'][0x0],'child':_0x3dc2ed[_0x3dad05(0xd7)]['slice'](0x1)[_0x3dad05(0xc4)]('/')};}export function isYamlFilePath(_0x47c316){const _0x1729ba=a111_0x2fa4;return _0x47c316['endsWith'](_0x1729ba(0xdb))||_0x47c316['endsWith'](_0x1729ba(0xcd));}export function resolveYamlFilePath(_0x249fe0){const _0x252920=a111_0x2fa4,_0x25d85a=a111_0x551058['resolve'](_0x249fe0);if(!existsSync(_0x25d85a))throw new Error(_0x252920(0xc5)+_0x249fe0);let _0x476f2d=a111_0x551058[_0x252920(0xbd)](_0x25d85a),_0x2ebbfe=null,_0x57a969=null;const _0x449329=a111_0x551058[_0x252920(0xbf)](_0x476f2d)[_0x252920(0xb8)];while(_0x476f2d!==_0x449329){const _0x33beb6=a111_0x551058[_0x252920(0xc4)](_0x476f2d,_0x252920(0xc3));if(existsSync(_0x33beb6)){_0x2ebbfe=_0x33beb6,_0x57a969=_0x476f2d;break;}_0x476f2d=a111_0x551058[_0x252920(0xbd)](_0x476f2d);}if(!_0x2ebbfe||!_0x57a969)throw new Error('No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x249fe0);const _0xeb855a=readFileSync(_0x2ebbfe,_0x252920(0xc9)),_0x3ba4f8=JSON[_0x252920(0xbf)](_0xeb855a),_0x3258ef=_0x3ba4f8[_0x252920(0xde)];if(!_0x3258ef)throw new Error(_0x252920(0xcb));const _0x18c69d=readFileSync(_0x25d85a,'utf-8'),_0x430ab1=a111_0x3ac2db(_0x18c69d),_0x59c7a7=_0x430ab1['name'];if(!_0x59c7a7)throw new Error(_0x252920(0xb6)+_0x249fe0);const _0x58d45e=_0x430ab1[_0x252920(0xd3)]===_0x252920(0xd4)?_0x252920(0xd4):_0x252920(0xba),_0x5ad934=a111_0x551058['relative'](_0x57a969,_0x25d85a),_0x1c9c0c=a111_0x551058[_0x252920(0xbd)](_0x5ad934),_0x4f9931=_0x1c9c0c==='.'?'':_0x1c9c0c[_0x252920(0xd6)](/\\/g,'/'),_0x1fcd58=_0x4f9931?_0x3258ef+'/'+_0x4f9931+'/'+_0x59c7a7:_0x3258ef+'/'+_0x59c7a7;return{'parentSegment':_0x3258ef,'segmentName':_0x59c7a7,'folderPath':_0x4f9931,'fullPath':_0x1fcd58,'resourceType':_0x58d45e};}
@@ -1 +1 @@
1
- function a112_0x2c48(_0x578b50,_0x122856){_0x578b50=_0x578b50-0x191;const _0x3e64f6=a112_0x3e64();let _0x2c48cf=_0x3e64f6[_0x578b50];return _0x2c48cf;}(function(_0xe9d699,_0xc5ae35){const _0x9633a2=a112_0x2c48,_0x16d032=_0xe9d699();while(!![]){try{const _0x56c82e=parseInt(_0x9633a2(0x19f))/0x1*(parseInt(_0x9633a2(0x199))/0x2)+-parseInt(_0x9633a2(0x1a0))/0x3+parseInt(_0x9633a2(0x198))/0x4*(parseInt(_0x9633a2(0x191))/0x5)+parseInt(_0x9633a2(0x196))/0x6*(-parseInt(_0x9633a2(0x19e))/0x7)+parseInt(_0x9633a2(0x195))/0x8*(-parseInt(_0x9633a2(0x19b))/0x9)+parseInt(_0x9633a2(0x19c))/0xa*(-parseInt(_0x9633a2(0x197))/0xb)+parseInt(_0x9633a2(0x194))/0xc;if(_0x56c82e===_0xc5ae35)break;else _0x16d032['push'](_0x16d032['shift']());}catch(_0x25952){_0x16d032['push'](_0x16d032['shift']());}}}(a112_0x3e64,0x7d7cd));export function parseSegmentRef(_0x2ecb8c){const _0x219ab9=a112_0x2c48,_0x4c7d7d=_0x2ecb8c['indexOf']('/');if(_0x4c7d7d===-0x1)return{'parentId':_0x2ecb8c};if(_0x4c7d7d===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x2ecb8c+_0x219ab9(0x193));const _0x711ad8=_0x2ecb8c[_0x219ab9(0x19d)](0x0,_0x4c7d7d),_0x1404a6=_0x2ecb8c['substring'](_0x4c7d7d+0x1);if(_0x1404a6==='')throw new Error(_0x219ab9(0x192)+_0x2ecb8c+_0x219ab9(0x19a));return{'parentId':_0x711ad8,'childId':_0x1404a6};}function a112_0x3e64(){const _0x3ad746=['.\x20Parent\x20name\x20cannot\x20be\x20empty','19370736NijbnB','95120tKntbf','2320062uigOir','157839RhGJjw','569140soHvjD','2JTtriy','.\x20Child\x20name\x20cannot\x20be\x20empty','198DfAIWW','610lUVnwX','substring','14mSgYng','729127aifymS','611115jQHtvN','10dtmDFP','Invalid\x20segment\x20reference\x20format:\x20'];a112_0x3e64=function(){return _0x3ad746;};return a112_0x3e64();}
1
+ function a112_0x5b24(){const _0x1c602a=['4041836KrFgPn','171KsbsFj','2342895VnTnqv','2552463AROdOv','6309177xemybG','28866igcuEF','substring','685356xyiyCs','.\x20Parent\x20name\x20cannot\x20be\x20empty','2148408qvqHFq','Invalid\x20segment\x20reference\x20format:\x20','8RDvfsk'];a112_0x5b24=function(){return _0x1c602a;};return a112_0x5b24();}function a112_0x4ff4(_0x4da2da,_0x4fe92d){_0x4da2da=_0x4da2da-0xf7;const _0x5b2439=a112_0x5b24();let _0x4ff416=_0x5b2439[_0x4da2da];return _0x4ff416;}(function(_0x3190b4,_0x28a6f7){const _0x2d5428=a112_0x4ff4,_0x4c8a99=_0x3190b4();while(!![]){try{const _0x478b02=parseInt(_0x2d5428(0xf7))/0x1+-parseInt(_0x2d5428(0x101))/0x2*(-parseInt(_0x2d5428(0xfd))/0x3)+parseInt(_0x2d5428(0xfc))/0x4+-parseInt(_0x2d5428(0xfe))/0x5+-parseInt(_0x2d5428(0xf9))/0x6+-parseInt(_0x2d5428(0x100))/0x7+-parseInt(_0x2d5428(0xfb))/0x8*(parseInt(_0x2d5428(0xff))/0x9);if(_0x478b02===_0x28a6f7)break;else _0x4c8a99['push'](_0x4c8a99['shift']());}catch(_0x6327ce){_0x4c8a99['push'](_0x4c8a99['shift']());}}}(a112_0x5b24,0x7bc33));export function parseSegmentRef(_0x11d655){const _0x5df280=a112_0x4ff4,_0x1b7ae1=_0x11d655['indexOf']('/');if(_0x1b7ae1===-0x1)return{'parentId':_0x11d655};if(_0x1b7ae1===0x0)throw new Error(_0x5df280(0xfa)+_0x11d655+_0x5df280(0xf8));const _0xb2dc37=_0x11d655['substring'](0x0,_0x1b7ae1),_0x4fd9c2=_0x11d655[_0x5df280(0x102)](_0x1b7ae1+0x1);if(_0x4fd9c2==='')throw new Error(_0x5df280(0xfa)+_0x11d655+'.\x20Child\x20name\x20cannot\x20be\x20empty');return{'parentId':_0xb2dc37,'childId':_0x4fd9c2};}
@@ -1 +1 @@
1
- function a113_0x4c1c(_0xc03c24,_0x3c8832){_0xc03c24=_0xc03c24-0x74;const _0x441b44=a113_0x441b();let _0x4c1c18=_0x441b44[_0xc03c24];return _0x4c1c18;}(function(_0x484b97,_0x350b02){const _0x31e93a=a113_0x4c1c,_0x4852c9=_0x484b97();while(!![]){try{const _0x53698a=parseInt(_0x31e93a(0x78))/0x1*(-parseInt(_0x31e93a(0x87))/0x2)+-parseInt(_0x31e93a(0x7d))/0x3+-parseInt(_0x31e93a(0x88))/0x4+-parseInt(_0x31e93a(0x83))/0x5+parseInt(_0x31e93a(0x82))/0x6*(parseInt(_0x31e93a(0x76))/0x7)+-parseInt(_0x31e93a(0x7a))/0x8*(-parseInt(_0x31e93a(0x7c))/0x9)+-parseInt(_0x31e93a(0x89))/0xa*(-parseInt(_0x31e93a(0x84))/0xb);if(_0x53698a===_0x350b02)break;else _0x4852c9['push'](_0x4852c9['shift']());}catch(_0x35c41c){_0x4852c9['push'](_0x4852c9['shift']());}}}(a113_0x441b,0x931e9));import a113_0x5aaaf3 from'ora';export function createCommandSpinner(_0xf40490,_0x2bc67f={}){const _0x108253=a113_0x4c1c,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x2bc67f;return a113_0x5aaaf3({'text':_0xf40490,'color':_0x108253(0x8d),'isEnabled':forceEnabled||process[_0x108253(0x74)][_0x108253(0x86)]&&!verbose});}export async function withSpinner(_0x3ae917,_0x5242b8,_0x3d8d46={}){const _0x2016b8=a113_0x4c1c,_0x47f6fa=_0x3d8d46['clock']??(()=>Date['now']()),_0x1419dd=createCommandSpinner(_0x3ae917,_0x3d8d46);_0x1419dd[_0x2016b8(0x7b)]();const _0x5a2ef8=_0x47f6fa();try{const _0x2c4709=await _0x5242b8(),_0x4b0e13=_0x47f6fa()-_0x5a2ef8;return _0x1419dd[_0x2016b8(0x8b)](),{'data':_0x2c4709,'elapsedMs':_0x4b0e13};}catch(_0x263b19){_0x1419dd[_0x2016b8(0x8b)]();throw _0x263b19;}}function a113_0x441b(){const _0x2d85d1=['269631XdVQmG','3430068kaKFUN','floor','isSpinning','jobId','\x20[Job\x20ID:\x20','470658DOGSQj','3155585PncbJV','34393656opLOAP','intervalFactory','isTTY','4IaDSjF','4186504axhRnV','10XLJrxn','clock','stop','now','cyan','stdout','phase','7KZVYfT','extra','295166wjZsuI','text','216Yutadb','start'];a113_0x441b=function(){return _0x2d85d1;};return a113_0x441b();}export async function withQuerySpinner(_0x54d400,_0x589d29,_0x1cb8a3={}){const _0x5d693e=a113_0x4c1c,_0x2360d3=_0x1cb8a3[_0x5d693e(0x8a)]??(()=>Date[_0x5d693e(0x8c)]()),_0x39c600=_0x1cb8a3[_0x5d693e(0x85)]??setInterval,_0x32217e=createCommandSpinner(_0x54d400,_0x1cb8a3);_0x32217e[_0x5d693e(0x7b)]();const _0x492317=_0x2360d3(),_0x1a8093=_0x54d400['replace']('...',''),_0x51843d={},_0x701121=()=>{const _0x1020ec=_0x5d693e;if(!_0x32217e[_0x1020ec(0x7f)])return;const _0x49108d=_0x2360d3()-_0x492317,_0x391ac5=formatElapsed(_0x49108d),_0x22fccb=_0x51843d[_0x1020ec(0x75)]??_0x1a8093,_0x13d62a=_0x51843d[_0x1020ec(0x80)]?_0x1020ec(0x81)+_0x51843d[_0x1020ec(0x80)]+']':'',_0x21bff8=_0x51843d[_0x1020ec(0x77)]?'\x20'+_0x51843d[_0x1020ec(0x77)]:'';_0x32217e[_0x1020ec(0x79)]=_0x22fccb+'\x20'+_0x391ac5+_0x21bff8+_0x13d62a;},_0x29f837=_0x39c600(()=>{_0x701121();},0x3e8),_0xdd8897={'setPhase':_0x85a015=>{const _0x15bebc=_0x5d693e;_0x51843d[_0x15bebc(0x75)]=_0x85a015,_0x701121();},'setJobId':_0x21c826=>{const _0x16d023=_0x5d693e;_0x51843d[_0x16d023(0x80)]=_0x21c826,_0x701121();},'setExtra':_0x3826c1=>{const _0x62ab87=_0x5d693e;_0x51843d[_0x62ab87(0x77)]=_0x3826c1,_0x701121();}};_0x701121();try{const _0x42d700=await _0x589d29(_0xdd8897),_0xa997e7=_0x2360d3()-_0x492317;return{'data':_0x42d700,'elapsedMs':_0xa997e7};}finally{clearInterval(_0x29f837),_0x32217e['stop']();}}export function formatElapsed(_0xbc8e0f){const _0x4b3520=a113_0x4c1c,_0x104071=Math[_0x4b3520(0x7e)](_0xbc8e0f/0x3e8);if(_0x104071<0x3c)return(_0xbc8e0f/0x3e8)['toFixed'](0x1)+'s';const _0x4e56ce=Math[_0x4b3520(0x7e)](_0x104071/0x3c),_0x59ab68=_0x104071%0x3c;if(_0x4e56ce<0x3c)return _0x4e56ce+'m\x20'+_0x59ab68+'s';const _0x42e21e=Math['floor'](_0x4e56ce/0x3c),_0x34011e=_0x4e56ce%0x3c;return _0x42e21e+'h\x20'+_0x34011e+'m';}
1
+ (function(_0xfb440a,_0x335443){const _0x3ff3a3=a113_0x2d8f,_0x58ccfb=_0xfb440a();while(!![]){try{const _0x3409dc=-parseInt(_0x3ff3a3(0x1ba))/0x1+parseInt(_0x3ff3a3(0x1b9))/0x2+-parseInt(_0x3ff3a3(0x1b5))/0x3*(-parseInt(_0x3ff3a3(0x1c9))/0x4)+parseInt(_0x3ff3a3(0x1bb))/0x5*(parseInt(_0x3ff3a3(0x1bc))/0x6)+parseInt(_0x3ff3a3(0x1b4))/0x7*(-parseInt(_0x3ff3a3(0x1c0))/0x8)+-parseInt(_0x3ff3a3(0x1bf))/0x9*(-parseInt(_0x3ff3a3(0x1c4))/0xa)+-parseInt(_0x3ff3a3(0x1c2))/0xb*(parseInt(_0x3ff3a3(0x1cc))/0xc);if(_0x3409dc===_0x335443)break;else _0x58ccfb['push'](_0x58ccfb['shift']());}catch(_0x5c57b6){_0x58ccfb['push'](_0x58ccfb['shift']());}}}(a113_0x1e24,0xda86f));function a113_0x2d8f(_0x28ff17,_0x22822a){_0x28ff17=_0x28ff17-0x1b4;const _0x1e24f4=a113_0x1e24();let _0x2d8fbd=_0x1e24f4[_0x28ff17];return _0x2d8fbd;}import a113_0x37d79 from'ora';export function createCommandSpinner(_0x35611c,_0x359e51={}){const _0x5d7c1e=a113_0x2d8f,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x359e51;return a113_0x37d79({'text':_0x35611c,'color':'cyan','isEnabled':forceEnabled||process[_0x5d7c1e(0x1ca)]['isTTY']&&!verbose});}export async function withSpinner(_0x27c108,_0x45892f,_0x393684={}){const _0x3657db=a113_0x2d8f,_0x3626e5=_0x393684[_0x3657db(0x1b6)]??(()=>Date['now']()),_0x7c728d=createCommandSpinner(_0x27c108,_0x393684);_0x7c728d[_0x3657db(0x1c7)]();const _0x4bf996=_0x3626e5();try{const _0x8e099=await _0x45892f(),_0x30f10a=_0x3626e5()-_0x4bf996;return _0x7c728d[_0x3657db(0x1c1)](),{'data':_0x8e099,'elapsedMs':_0x30f10a};}catch(_0x5e0643){_0x7c728d[_0x3657db(0x1c1)]();throw _0x5e0643;}}export async function withQuerySpinner(_0x12f893,_0x5f5b82,_0xea8927={}){const _0x1223eb=a113_0x2d8f,_0x58b08b=_0xea8927['clock']??(()=>Date[_0x1223eb(0x1be)]()),_0x50dadc=_0xea8927[_0x1223eb(0x1c3)]??setInterval,_0x3b348e=createCommandSpinner(_0x12f893,_0xea8927);_0x3b348e[_0x1223eb(0x1c7)]();const _0x438fa8=_0x58b08b(),_0x3e3249=_0x12f893['replace'](_0x1223eb(0x1cb),''),_0x44acac={},_0x1989a8=()=>{const _0x1ca09d=_0x1223eb;if(!_0x3b348e[_0x1ca09d(0x1b7)])return;const _0x1c64dc=_0x58b08b()-_0x438fa8,_0x476548=formatElapsed(_0x1c64dc),_0xff205d=_0x44acac[_0x1ca09d(0x1c6)]??_0x3e3249,_0x5ae481=_0x44acac[_0x1ca09d(0x1c5)]?'\x20[Job\x20ID:\x20'+_0x44acac[_0x1ca09d(0x1c5)]+']':'',_0x425f3c=_0x44acac[_0x1ca09d(0x1b8)]?'\x20'+_0x44acac[_0x1ca09d(0x1b8)]:'';_0x3b348e['text']=_0xff205d+'\x20'+_0x476548+_0x425f3c+_0x5ae481;},_0x916c9c=_0x50dadc(()=>{_0x1989a8();},0x3e8),_0x1992cf={'setPhase':_0x2a03be=>{const _0x172869=_0x1223eb;_0x44acac[_0x172869(0x1c6)]=_0x2a03be,_0x1989a8();},'setJobId':_0x433080=>{const _0x1f3c03=_0x1223eb;_0x44acac[_0x1f3c03(0x1c5)]=_0x433080,_0x1989a8();},'setExtra':_0x2467af=>{const _0x2600d7=_0x1223eb;_0x44acac[_0x2600d7(0x1b8)]=_0x2467af,_0x1989a8();}};_0x1989a8();try{const _0x41e860=await _0x5f5b82(_0x1992cf),_0x1fe06a=_0x58b08b()-_0x438fa8;return{'data':_0x41e860,'elapsedMs':_0x1fe06a};}finally{clearInterval(_0x916c9c),_0x3b348e[_0x1223eb(0x1c1)]();}}function a113_0x1e24(){const _0x339599=['1572541ZTdZix','180VZkpTu','77778cotPAd','toFixed','now','945414gHWCyJ','8DGLcov','stop','1661ygxMmd','intervalFactory','100BGKPwV','jobId','phase','start','floor','7004184BUUskz','stdout','...','83796DOAhUJ','5582927yaNdbU','3KyneKc','clock','isSpinning','extra','2102896DfizcP'];a113_0x1e24=function(){return _0x339599;};return a113_0x1e24();}export function formatElapsed(_0x315887){const _0x1aea2f=a113_0x2d8f,_0x53395e=Math[_0x1aea2f(0x1c8)](_0x315887/0x3e8);if(_0x53395e<0x3c)return(_0x315887/0x3e8)[_0x1aea2f(0x1bd)](0x1)+'s';const _0x405123=Math[_0x1aea2f(0x1c8)](_0x53395e/0x3c),_0x43f6d4=_0x53395e%0x3c;if(_0x405123<0x3c)return _0x405123+'m\x20'+_0x43f6d4+'s';const _0x589291=Math[_0x1aea2f(0x1c8)](_0x405123/0x3c),_0x340048=_0x405123%0x3c;return _0x589291+'h\x20'+_0x340048+'m';}
@@ -1 +1 @@
1
- (function(_0xb7d40e,_0x166a67){const _0x1dd348=a114_0x5115,_0xb3359e=_0xb7d40e();while(!![]){try{const _0x21d9cd=parseInt(_0x1dd348(0x173))/0x1+parseInt(_0x1dd348(0x181))/0x2*(-parseInt(_0x1dd348(0x183))/0x3)+parseInt(_0x1dd348(0x178))/0x4*(-parseInt(_0x1dd348(0x17e))/0x5)+-parseInt(_0x1dd348(0x16b))/0x6+-parseInt(_0x1dd348(0x170))/0x7+-parseInt(_0x1dd348(0x186))/0x8+parseInt(_0x1dd348(0x172))/0x9;if(_0x21d9cd===_0x166a67)break;else _0xb3359e['push'](_0xb3359e['shift']());}catch(_0x4ae626){_0xb3359e['push'](_0xb3359e['shift']());}}}(a114_0x2f15,0x2ce30));import{readFileSync}from'fs';import{createInterface}from'readline';function a114_0x2f15(){const _0x2c22ac=['Content\x20contains\x20no\x20SQL\x20statements','map','EACCES','error','5bPuqdJ','message','No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-','2ExfAhK','Error\x20reading\x20from\x20stdin:\x20','821865EqNcTd','trim','File\x20\x27','2669080cQnVvG','toLowerCase','length','\x27\x20not\x20found','line','895548DjLDWr','push','replace','isTTY','join','476882fUaUCT','filter','9497502VOzgOx','282333YQOQKQ','code','close','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','1315124mCvxMo','stdin\x20'];a114_0x2f15=function(){return _0x2c22ac;};return a114_0x2f15();}export function stripSqlComments(_0x2fa379){const _0x19b063=a114_0x5115;let _0x3dfd51=_0x2fa379[_0x19b063(0x16d)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3dfd51=_0x3dfd51['replace'](/--.*$/gm,''),_0x3dfd51[_0x19b063(0x184)]();}function isEscaped(_0x207b61,_0x2428f0){let _0x55b24d=0x0;for(let _0x5b12dd=_0x2428f0-0x1;_0x5b12dd>=0x0&&_0x207b61[_0x5b12dd]==='\x5c';_0x5b12dd--){_0x55b24d++;}return _0x55b24d%0x2===0x1;}export function splitSqlStatements(_0x23d1ba){const _0x199828=a114_0x5115,_0x19666c=stripSqlComments(_0x23d1ba);if(!_0x19666c)throw new Error(_0x199828(0x17a));const _0x11fa72=[];let _0x508a58='',_0x4e12d2=![],_0x2d19d3=![],_0x16348e=![];for(let _0x15726d=0x0;_0x15726d<_0x23d1ba[_0x199828(0x188)];_0x15726d++){const _0x5cdfa7=_0x23d1ba[_0x15726d];if(_0x5cdfa7==='\x27'&&!isEscaped(_0x23d1ba,_0x15726d)&&!_0x2d19d3&&!_0x16348e)_0x4e12d2=!_0x4e12d2;else{if(_0x5cdfa7==='\x22'&&!isEscaped(_0x23d1ba,_0x15726d)&&!_0x4e12d2&&!_0x16348e)_0x2d19d3=!_0x2d19d3;else _0x5cdfa7==='`'&&!isEscaped(_0x23d1ba,_0x15726d)&&!_0x4e12d2&&!_0x2d19d3&&(_0x16348e=!_0x16348e);}if(_0x5cdfa7===';'&&!_0x4e12d2&&!_0x2d19d3&&!_0x16348e){const _0x1ed657=_0x508a58[_0x199828(0x184)]();_0x1ed657&&_0x11fa72[_0x199828(0x16c)](_0x1ed657),_0x508a58='';}else _0x508a58+=_0x5cdfa7;}const _0x460732=_0x508a58[_0x199828(0x184)]();_0x460732&&_0x11fa72[_0x199828(0x16c)](_0x460732);const _0x429483=_0x11fa72[_0x199828(0x17b)](_0x4c7b71=>_0x4c7b71[_0x199828(0x184)]())[_0x199828(0x171)](_0x2c1431=>{const _0x50f189=_0x199828,_0x47753f=stripSqlComments(_0x2c1431);return _0x47753f[_0x50f189(0x188)]>0x0;});if(_0x429483[_0x199828(0x188)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x429483;}export function readFileContent(_0x536654){const _0x5552f6=a114_0x5115;try{return readFileSync(_0x536654,_0x5552f6(0x177));}catch(_0x20a0b3){const _0x21a6d6=_0x20a0b3[_0x5552f6(0x174)];if(_0x21a6d6==='ENOENT')throw new Error('File\x20\x27'+_0x536654+_0x5552f6(0x169));else{if(_0x21a6d6===_0x5552f6(0x17c))throw new Error(_0x5552f6(0x176)+_0x536654+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x536654+'\x27:\x20'+_0x20a0b3[_0x5552f6(0x17f)]);}}}export function readSqlStatementsFromFile(_0x4a0c69){const _0x548067=a114_0x5115,_0x39c480=readFileContent(_0x4a0c69);try{return splitSqlStatements(_0x39c480);}catch(_0x81d7f6){throw new Error(_0x548067(0x185)+_0x4a0c69+'\x27\x20'+_0x81d7f6[_0x548067(0x17f)][_0x548067(0x187)]());}}function a114_0x5115(_0x3ca215,_0x2a8c4d){_0x3ca215=_0x3ca215-0x169;const _0x2f15dd=a114_0x2f15();let _0x511505=_0x2f15dd[_0x3ca215];return _0x511505;}export async function readStdinContent(){const _0x2af1b1=a114_0x5115;if(process['stdin'][_0x2af1b1(0x16e)])throw new Error(_0x2af1b1(0x180));return new Promise((_0x1a6671,_0x188ac8)=>{const _0x5253da=_0x2af1b1,_0x50e90b=[],_0x1b3010=createInterface({'input':process['stdin'],'terminal':![]});_0x1b3010['on'](_0x5253da(0x16a),_0x1e17fa=>{const _0x45e185=_0x5253da;_0x50e90b[_0x45e185(0x16c)](_0x1e17fa);}),_0x1b3010['on'](_0x5253da(0x175),()=>{const _0x231441=_0x5253da;_0x1a6671(_0x50e90b[_0x231441(0x16f)]('\x0a'));}),_0x1b3010['on'](_0x5253da(0x17d),_0x420bb2=>{const _0x1b8821=_0x5253da;_0x1b3010[_0x1b8821(0x175)](),_0x188ac8(new Error(_0x1b8821(0x182)+_0x420bb2[_0x1b8821(0x17f)]));});});}export async function readSqlStatementsFromStdin(){const _0x385cef=a114_0x5115,_0x363777=await readStdinContent();try{return splitSqlStatements(_0x363777);}catch(_0x3a89b8){throw new Error(_0x385cef(0x179)+_0x3a89b8[_0x385cef(0x17f)][_0x385cef(0x187)]());}}export function isSqlFilePath(_0x100908){return/\w\.sql$/['test'](_0x100908);}
1
+ (function(_0x880061,_0x5c8e43){const _0x1250d3=a114_0x3b12,_0x3e881c=_0x880061();while(!![]){try{const _0x524906=-parseInt(_0x1250d3(0x151))/0x1*(-parseInt(_0x1250d3(0x154))/0x2)+-parseInt(_0x1250d3(0x156))/0x3+parseInt(_0x1250d3(0x165))/0x4*(-parseInt(_0x1250d3(0x14a))/0x5)+-parseInt(_0x1250d3(0x164))/0x6+-parseInt(_0x1250d3(0x161))/0x7+-parseInt(_0x1250d3(0x163))/0x8*(-parseInt(_0x1250d3(0x167))/0x9)+-parseInt(_0x1250d3(0x15e))/0xa*(-parseInt(_0x1250d3(0x155))/0xb);if(_0x524906===_0x5c8e43)break;else _0x3e881c['push'](_0x3e881c['shift']());}catch(_0x5e733b){_0x3e881c['push'](_0x3e881c['shift']());}}}(a114_0x1537,0x8f331));function a114_0x1537(){const _0x2eff98=['toLowerCase','408185WeEyBe','close','\x27:\x20','filter','replace','line','File\x20\x27','271cvfEyc','trim','Error\x20reading\x20from\x20stdin:\x20','8396NiiUkP','44jqMCcE','985008daikRS','code','map','stdin','isTTY','length','ENOENT','Error\x20reading\x20file\x20\x27','2169430bkHDjN','\x27\x20not\x20found','message','6427288sKuohv','stdin\x20','171776yKCKmW','1059696zLHmvO','4jzUftR','test','36LAGvlH','Content\x20contains\x20no\x20SQL\x20statements','join','No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-','EACCES','push'];a114_0x1537=function(){return _0x2eff98;};return a114_0x1537();}import{readFileSync}from'fs';import{createInterface}from'readline';export function stripSqlComments(_0x5632a3){const _0x1a8485=a114_0x3b12;let _0x1f7f35=_0x5632a3['replace'](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x1f7f35=_0x1f7f35[_0x1a8485(0x14e)](/--.*$/gm,''),_0x1f7f35[_0x1a8485(0x152)]();}function a114_0x3b12(_0x40f5a9,_0x52e01f){_0x40f5a9=_0x40f5a9-0x147;const _0x15371c=a114_0x1537();let _0x3b124f=_0x15371c[_0x40f5a9];return _0x3b124f;}function isEscaped(_0x195642,_0x2999ef){let _0x215033=0x0;for(let _0x26280b=_0x2999ef-0x1;_0x26280b>=0x0&&_0x195642[_0x26280b]==='\x5c';_0x26280b--){_0x215033++;}return _0x215033%0x2===0x1;}export function splitSqlStatements(_0x272b27){const _0x40a08f=a114_0x3b12,_0x2fd3e3=stripSqlComments(_0x272b27);if(!_0x2fd3e3)throw new Error(_0x40a08f(0x168));const _0x4a3851=[];let _0x5cd149='',_0x1f7fd5=![],_0x96a312=![],_0x496dc8=![];for(let _0x332457=0x0;_0x332457<_0x272b27[_0x40a08f(0x15b)];_0x332457++){const _0x584256=_0x272b27[_0x332457];if(_0x584256==='\x27'&&!isEscaped(_0x272b27,_0x332457)&&!_0x96a312&&!_0x496dc8)_0x1f7fd5=!_0x1f7fd5;else{if(_0x584256==='\x22'&&!isEscaped(_0x272b27,_0x332457)&&!_0x1f7fd5&&!_0x496dc8)_0x96a312=!_0x96a312;else _0x584256==='`'&&!isEscaped(_0x272b27,_0x332457)&&!_0x1f7fd5&&!_0x96a312&&(_0x496dc8=!_0x496dc8);}if(_0x584256===';'&&!_0x1f7fd5&&!_0x96a312&&!_0x496dc8){const _0x4ea9a7=_0x5cd149[_0x40a08f(0x152)]();_0x4ea9a7&&_0x4a3851[_0x40a08f(0x148)](_0x4ea9a7),_0x5cd149='';}else _0x5cd149+=_0x584256;}const _0x1eca63=_0x5cd149['trim']();_0x1eca63&&_0x4a3851['push'](_0x1eca63);const _0x5b024f=_0x4a3851[_0x40a08f(0x158)](_0x4af045=>_0x4af045[_0x40a08f(0x152)]())[_0x40a08f(0x14d)](_0x111fc4=>{const _0x51e6cf=_0x40a08f,_0x5a0618=stripSqlComments(_0x111fc4);return _0x5a0618[_0x51e6cf(0x15b)]>0x0;});if(_0x5b024f['length']===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0x5b024f;}export function readFileContent(_0x47b05e){const _0xa24f53=a114_0x3b12;try{return readFileSync(_0x47b05e,'utf-8');}catch(_0x66494b){const _0x2cb251=_0x66494b[_0xa24f53(0x157)];if(_0x2cb251===_0xa24f53(0x15c))throw new Error(_0xa24f53(0x150)+_0x47b05e+_0xa24f53(0x15f));else{if(_0x2cb251===_0xa24f53(0x147))throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x47b05e+'\x27');else throw new Error(_0xa24f53(0x15d)+_0x47b05e+_0xa24f53(0x14c)+_0x66494b[_0xa24f53(0x160)]);}}}export function readSqlStatementsFromFile(_0x373728){const _0x2b4493=a114_0x3b12,_0xa3b2fa=readFileContent(_0x373728);try{return splitSqlStatements(_0xa3b2fa);}catch(_0xb21c9b){throw new Error('File\x20\x27'+_0x373728+'\x27\x20'+_0xb21c9b[_0x2b4493(0x160)][_0x2b4493(0x149)]());}}export async function readStdinContent(){const _0x28e2e9=a114_0x3b12;if(process[_0x28e2e9(0x159)][_0x28e2e9(0x15a)])throw new Error(_0x28e2e9(0x16a));return new Promise((_0x2558de,_0x516ffd)=>{const _0x375bb4=_0x28e2e9,_0x28b591=[],_0xb48b94=createInterface({'input':process[_0x375bb4(0x159)],'terminal':![]});_0xb48b94['on'](_0x375bb4(0x14f),_0x3b4b02=>{const _0x5e25e5=_0x375bb4;_0x28b591[_0x5e25e5(0x148)](_0x3b4b02);}),_0xb48b94['on'](_0x375bb4(0x14b),()=>{const _0x53a7c1=_0x375bb4;_0x2558de(_0x28b591[_0x53a7c1(0x169)]('\x0a'));}),_0xb48b94['on']('error',_0x3c3fb0=>{const _0x3dbe88=_0x375bb4;_0xb48b94[_0x3dbe88(0x14b)](),_0x516ffd(new Error(_0x3dbe88(0x153)+_0x3c3fb0[_0x3dbe88(0x160)]));});});}export async function readSqlStatementsFromStdin(){const _0x2accaf=a114_0x3b12,_0x4e9012=await readStdinContent();try{return splitSqlStatements(_0x4e9012);}catch(_0x40b0bb){throw new Error(_0x2accaf(0x162)+_0x40b0bb[_0x2accaf(0x160)][_0x2accaf(0x149)]());}}export function isSqlFilePath(_0x31a7d8){const _0x8c8674=a114_0x3b12;return/\w\.sql$/[_0x8c8674(0x166)](_0x31a7d8);}
@@ -1 +1 @@
1
- (function(_0x30c1df,_0x38037c){const _0x50fcf7=a115_0x39db,_0xf14f53=_0x30c1df();while(!![]){try{const _0x37e6a6=parseInt(_0x50fcf7(0x1e7))/0x1*(parseInt(_0x50fcf7(0x1d9))/0x2)+-parseInt(_0x50fcf7(0x1e2))/0x3*(-parseInt(_0x50fcf7(0x1e1))/0x4)+-parseInt(_0x50fcf7(0x1e8))/0x5*(parseInt(_0x50fcf7(0x1db))/0x6)+-parseInt(_0x50fcf7(0x1d3))/0x7*(parseInt(_0x50fcf7(0x1d4))/0x8)+parseInt(_0x50fcf7(0x1e5))/0x9*(-parseInt(_0x50fcf7(0x1e0))/0xa)+parseInt(_0x50fcf7(0x1e9))/0xb+-parseInt(_0x50fcf7(0x1dd))/0xc*(parseInt(_0x50fcf7(0x1d1))/0xd);if(_0x37e6a6===_0x38037c)break;else _0xf14f53['push'](_0xf14f53['shift']());}catch(_0x39a701){_0xf14f53['push'](_0xf14f53['shift']());}}}(a115_0x42f8,0x19e49));export async function*parseSSEStream(_0x2316b5,_0x2cfa55){const _0x26fcfc=a115_0x39db;if(!_0x2316b5[_0x26fcfc(0x1e6)])throw new Error('Response\x20body\x20is\x20null');const _0x4b07f9=_0x2316b5[_0x26fcfc(0x1e6)][_0x26fcfc(0x1da)](),_0x33d10d=new TextDecoder();let _0x48181f='',_0x3f65d0={};try{while(!![]){const {done:_0x4e28fc,value:_0xfefe39}=await _0x4b07f9['read']();if(_0x4e28fc){if(_0x3f65d0[_0x26fcfc(0x1d5)]){_0x2cfa55?.[_0x26fcfc(0x1d8)]('[LLM\x20API\x20SSE]\x20'+_0x3f65d0[_0x26fcfc(0x1d5)]);const _0xb6374a=parseSSEData(_0x3f65d0[_0x26fcfc(0x1d5)]);yield _0xb6374a;}break;}_0x48181f+=_0x33d10d[_0x26fcfc(0x1ea)](_0xfefe39,{'stream':!![]});const _0x1b91fa=_0x48181f['split']('\x0a');_0x48181f=_0x1b91fa[_0x26fcfc(0x1e4)]()||'';for(const _0x594b66 of _0x1b91fa){if(_0x594b66[_0x26fcfc(0x1de)]()===''){if(_0x3f65d0[_0x26fcfc(0x1d5)]){_0x2cfa55?.[_0x26fcfc(0x1d8)]('[LLM\x20API\x20SSE]\x20'+_0x3f65d0['data']);const _0x1ac1f7=parseSSEData(_0x3f65d0[_0x26fcfc(0x1d5)]);yield _0x1ac1f7,_0x3f65d0={};}continue;}if(_0x594b66[_0x26fcfc(0x1df)](':'))continue;const _0x6d600c=_0x594b66['indexOf'](':');if(_0x6d600c===-0x1)continue;const _0x4bf007=_0x594b66['slice'](0x0,_0x6d600c);let _0x1a0895=_0x594b66['slice'](_0x6d600c+0x1);_0x1a0895['startsWith']('\x20')&&(_0x1a0895=_0x1a0895[_0x26fcfc(0x1d2)](0x1));switch(_0x4bf007){case _0x26fcfc(0x1d6):_0x3f65d0['event']=_0x1a0895;break;case _0x26fcfc(0x1d5):_0x3f65d0[_0x26fcfc(0x1d5)]=_0x3f65d0[_0x26fcfc(0x1d5)]?_0x3f65d0[_0x26fcfc(0x1d5)]+'\x0a'+_0x1a0895:_0x1a0895;break;case'id':_0x3f65d0['id']=_0x1a0895;break;}}}}finally{_0x4b07f9[_0x26fcfc(0x1d7)]();}}function a115_0x39db(_0x2b1f8f,_0x3f18f6){_0x2b1f8f=_0x2b1f8f-0x1d1;const _0x42f8f3=a115_0x42f8();let _0x39db60=_0x42f8f3[_0x2b1f8f];return _0x39db60;}function a115_0x42f8(){const _0x5ee75f=['data','event','releaseLock','debug','4550vIDXOp','getReader','6pcbBmF','parse','411588oTjQvY','trim','startsWith','26890mdMcZi','276QwUGlF','8094RNOVsC','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','pop','279sntHiQ','body','71rXztmD','26570mEceBJ','558525rPgvwJ','decode','13UgHnTn','slice','1477TchPMz','6424SlykAW'];a115_0x42f8=function(){return _0x5ee75f;};return a115_0x42f8();}function parseSSEData(_0x541b6e){const _0x3bfa26=a115_0x39db;try{return JSON[_0x3bfa26(0x1dc)](_0x541b6e);}catch(_0x3599e9){throw new Error(_0x3bfa26(0x1e3)+_0x541b6e,{'cause':_0x3599e9});}}
1
+ function a115_0x29f5(){const _0x3e3019=['10945396rrvjdI','99QwzYcO','541wPMGBB','event','body','parse','indexOf','4460214pucgig','slice','debug','read','4714NyDERw','Response\x20body\x20is\x20null','data','94340gFkCLr','[LLM\x20API\x20SSE]\x20','decode','getReader','5467645NHwOkb','split','1549976ilFbwU','startsWith','4oLdXYa','3665070YMjIpf'];a115_0x29f5=function(){return _0x3e3019;};return a115_0x29f5();}(function(_0x4cd8df,_0x44c51d){const _0xf0d77e=a115_0x39fb,_0x3b4986=_0x4cd8df();while(!![]){try{const _0x21ed47=parseInt(_0xf0d77e(0x1df))/0x1*(parseInt(_0xf0d77e(0x1e8))/0x2)+-parseInt(_0xf0d77e(0x1e4))/0x3+parseInt(_0xf0d77e(0x1db))/0x4*(-parseInt(_0xf0d77e(0x1d7))/0x5)+parseInt(_0xf0d77e(0x1dc))/0x6+parseInt(_0xf0d77e(0x1dd))/0x7+parseInt(_0xf0d77e(0x1d9))/0x8+parseInt(_0xf0d77e(0x1de))/0x9*(-parseInt(_0xf0d77e(0x1eb))/0xa);if(_0x21ed47===_0x44c51d)break;else _0x3b4986['push'](_0x3b4986['shift']());}catch(_0x7048ad){_0x3b4986['push'](_0x3b4986['shift']());}}}(a115_0x29f5,0xea354));export async function*parseSSEStream(_0x3837ea,_0x5493ef){const _0x1d2acd=a115_0x39fb;if(!_0x3837ea[_0x1d2acd(0x1e1)])throw new Error(_0x1d2acd(0x1e9));const _0x46dfb7=_0x3837ea[_0x1d2acd(0x1e1)][_0x1d2acd(0x1d6)](),_0x1e3628=new TextDecoder();let _0x130dd1='',_0x413de3={};try{while(!![]){const {done:_0x339aa0,value:_0x377b01}=await _0x46dfb7[_0x1d2acd(0x1e7)]();if(_0x339aa0){if(_0x413de3[_0x1d2acd(0x1ea)]){_0x5493ef?.[_0x1d2acd(0x1e6)]('[LLM\x20API\x20SSE]\x20'+_0x413de3[_0x1d2acd(0x1ea)]);const _0x2022ce=parseSSEData(_0x413de3[_0x1d2acd(0x1ea)]);yield _0x2022ce;}break;}_0x130dd1+=_0x1e3628[_0x1d2acd(0x1d5)](_0x377b01,{'stream':!![]});const _0x443fda=_0x130dd1[_0x1d2acd(0x1d8)]('\x0a');_0x130dd1=_0x443fda['pop']()||'';for(const _0x22c328 of _0x443fda){if(_0x22c328['trim']()===''){if(_0x413de3[_0x1d2acd(0x1ea)]){_0x5493ef?.[_0x1d2acd(0x1e6)](_0x1d2acd(0x1ec)+_0x413de3[_0x1d2acd(0x1ea)]);const _0x1acbd7=parseSSEData(_0x413de3[_0x1d2acd(0x1ea)]);yield _0x1acbd7,_0x413de3={};}continue;}if(_0x22c328['startsWith'](':'))continue;const _0x4f648a=_0x22c328[_0x1d2acd(0x1e3)](':');if(_0x4f648a===-0x1)continue;const _0xb885b0=_0x22c328[_0x1d2acd(0x1e5)](0x0,_0x4f648a);let _0x445013=_0x22c328[_0x1d2acd(0x1e5)](_0x4f648a+0x1);_0x445013[_0x1d2acd(0x1da)]('\x20')&&(_0x445013=_0x445013[_0x1d2acd(0x1e5)](0x1));switch(_0xb885b0){case _0x1d2acd(0x1e0):_0x413de3[_0x1d2acd(0x1e0)]=_0x445013;break;case _0x1d2acd(0x1ea):_0x413de3[_0x1d2acd(0x1ea)]=_0x413de3[_0x1d2acd(0x1ea)]?_0x413de3[_0x1d2acd(0x1ea)]+'\x0a'+_0x445013:_0x445013;break;case'id':_0x413de3['id']=_0x445013;break;}}}}finally{_0x46dfb7['releaseLock']();}}function a115_0x39fb(_0x30f461,_0x4fc7c2){_0x30f461=_0x30f461-0x1d5;const _0x29f5b2=a115_0x29f5();let _0x39fb7f=_0x29f5b2[_0x30f461];return _0x39fb7f;}function parseSSEData(_0x244cea){const _0x304254=a115_0x39fb;try{return JSON[_0x304254(0x1e2)](_0x244cea);}catch(_0x1c037c){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x244cea,{'cause':_0x1c037c});}}
@@ -1 +1 @@
1
- (function(_0x1fb4f3,_0x3d3713){const _0x438f98=a116_0x3e06,_0x6dd051=_0x1fb4f3();while(!![]){try{const _0x35078c=-parseInt(_0x438f98(0x200))/0x1+-parseInt(_0x438f98(0x1ef))/0x2*(-parseInt(_0x438f98(0x1f9))/0x3)+-parseInt(_0x438f98(0x1fc))/0x4+-parseInt(_0x438f98(0x1fa))/0x5*(-parseInt(_0x438f98(0x1ee))/0x6)+parseInt(_0x438f98(0x1f1))/0x7+parseInt(_0x438f98(0x202))/0x8*(-parseInt(_0x438f98(0x1fe))/0x9)+parseInt(_0x438f98(0x1f7))/0xa;if(_0x35078c===_0x3d3713)break;else _0x6dd051['push'](_0x6dd051['shift']());}catch(_0x12a33b){_0x6dd051['push'](_0x6dd051['shift']());}}}(a116_0x3d66,0x2c3f5));import a116_0x50a890 from'string-width';export function stringWidth(_0x2e51f8){return a116_0x50a890(_0x2e51f8);}export function padEnd(_0x4bdd65,_0x23e827){const _0xc99565=a116_0x3e06,_0x51ab92=stringWidth(_0x4bdd65);if(_0x51ab92>=_0x23e827)return _0x4bdd65;return _0x4bdd65+'\x20'[_0xc99565(0x1f2)](_0x23e827-_0x51ab92);}export function padStart(_0x3cab8d,_0x17728d){const _0x3d6f9f=stringWidth(_0x3cab8d);if(_0x3d6f9f>=_0x17728d)return _0x3cab8d;return'\x20'['repeat'](_0x17728d-_0x3d6f9f)+_0x3cab8d;}export function centerAlign(_0x28cfcf,_0x1fe254){const _0x4f3351=a116_0x3e06,_0x135509=stringWidth(_0x28cfcf);if(_0x135509>_0x1fe254){if(_0x1fe254<=0x1)return'…'[_0x4f3351(0x1ec)](0x0,_0x1fe254);let _0x426ec2=_0x28cfcf;while(stringWidth(_0x426ec2+'…')>_0x1fe254){_0x426ec2=_0x426ec2[_0x4f3351(0x1ed)](0x0,-0x1);}return _0x426ec2+'…';}if(_0x135509===_0x1fe254)return _0x28cfcf;const _0x34d41c=_0x1fe254-_0x135509,_0x17de2d=Math[_0x4f3351(0x201)](_0x34d41c/0x2),_0xe66da1=_0x34d41c-_0x17de2d;return'\x20'[_0x4f3351(0x1f2)](_0x17de2d)+_0x28cfcf+'\x20'[_0x4f3351(0x1f2)](_0xe66da1);}export function escapeStringLiteral(_0x378a08){const _0x24609e=a116_0x3e06;if(!_0x378a08||_0x378a08[_0x24609e(0x1f3)]()[_0x24609e(0x204)]===0x0)throw new Error(_0x24609e(0x1fb));const _0x3414f3=_0x378a08['replace'](/'/g,'\x27\x27');return'\x27'+_0x3414f3+'\x27';}export function globToLike(_0x2afc47){const _0x2fe750=a116_0x3e06;let _0x27a6a7=_0x2afc47[_0x2fe750(0x1f4)](/\\/g,'\x5c\x5c')[_0x2fe750(0x1f4)](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x27a6a7=_0x27a6a7['replace'](/\*/g,'%')[_0x2fe750(0x1f4)](/\?/g,'_'),_0x27a6a7;}export function buildLikePattern(_0x3042cb){const _0x41f65d=a116_0x3e06;if(!_0x3042cb||_0x3042cb[_0x41f65d(0x1f3)]()[_0x41f65d(0x204)]===0x0)throw new Error(_0x41f65d(0x1f6));const _0x509313=globToLike(_0x3042cb),_0x265855=_0x509313['replace'](/'/g,'\x27\x27');return'\x27'+_0x265855+'\x27';}function a116_0x3e06(_0x75f124,_0x39ea5e){_0x75f124=_0x75f124-0x1ec;const _0x3d669b=a116_0x3d66();let _0x3e065e=_0x3d669b[_0x75f124];return _0x3e065e;}function a116_0x3d66(){const _0x573dd1=['602700EqXpov','unknown','3OABSRB','10ACZqDM','Cannot\x20escape\x20empty\x20string\x20literal','101372AOGfZC','toLowerCase','1032390hLYflK','env','42622SeDkfB','floor','24qNbpPI','toString','length','USER','substring','slice','885594DwzDzs','129494zpmDdT','\x5c$&','1211819ugZeCq','repeat','trim','replace','random','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string'];a116_0x3d66=function(){return _0x573dd1;};return a116_0x3d66();}export function matchGlobPattern(_0x16896c,_0x399ab8){const _0x55474e=a116_0x3e06,_0xf2ae9c=_0x399ab8[_0x55474e(0x1f4)](/[.+^${}()|[\]\\]/g,_0x55474e(0x1f0))[_0x55474e(0x1f4)](/\*/g,'.*')[_0x55474e(0x1f4)](/\?/g,'.'),_0x1d8948=new RegExp('^'+_0xf2ae9c+'$');return _0x1d8948['test'](_0x16896c);}export function getSanitizedUsername(){const _0x44f79a=a116_0x3e06,_0x45f9ee=process[_0x44f79a(0x1ff)][_0x44f79a(0x205)]||process['env']['USERNAME']||_0x44f79a(0x1f8);return _0x45f9ee[_0x44f79a(0x1f4)](/[^a-zA-Z0-9]/g,'')[_0x44f79a(0x1fd)]();}export function generateRandomHex(){const _0x10e8b3=a116_0x3e06,_0x23c0e0=Math['floor'](Math[_0x10e8b3(0x1f5)]()*0xfffff);return _0x23c0e0[_0x10e8b3(0x203)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x1554cc){const _0xd5b2e2=a116_0x3e06;return _0x1554cc[_0xd5b2e2(0x1fd)]()[_0xd5b2e2(0x1f4)](/[/\\:*?"<>|]/g,'-')[_0xd5b2e2(0x1f4)](/\s+/g,'-')['replace'](/-+/g,'-')[_0xd5b2e2(0x1f4)](/^-|-$/g,'');}
1
+ (function(_0x66d8f2,_0x58bce4){const _0x35b125=a116_0x45fa,_0x964aac=_0x66d8f2();while(!![]){try{const _0x1638b6=-parseInt(_0x35b125(0x6d))/0x1+-parseInt(_0x35b125(0x78))/0x2+-parseInt(_0x35b125(0x82))/0x3*(parseInt(_0x35b125(0x7f))/0x4)+parseInt(_0x35b125(0x74))/0x5*(-parseInt(_0x35b125(0x77))/0x6)+-parseInt(_0x35b125(0x6b))/0x7*(-parseInt(_0x35b125(0x72))/0x8)+parseInt(_0x35b125(0x70))/0x9+-parseInt(_0x35b125(0x7e))/0xa*(-parseInt(_0x35b125(0x7d))/0xb);if(_0x1638b6===_0x58bce4)break;else _0x964aac['push'](_0x964aac['shift']());}catch(_0x543d9c){_0x964aac['push'](_0x964aac['shift']());}}}(a116_0x493a,0x78bbf));import a116_0x1da8f5 from'string-width';export function stringWidth(_0x4fe3b3){return a116_0x1da8f5(_0x4fe3b3);}export function padEnd(_0xbc2248,_0x327bef){const _0x47ba9f=a116_0x45fa,_0x211c42=stringWidth(_0xbc2248);if(_0x211c42>=_0x327bef)return _0xbc2248;return _0xbc2248+'\x20'[_0x47ba9f(0x69)](_0x327bef-_0x211c42);}export function padStart(_0x19daad,_0x18b7c8){const _0x107c53=a116_0x45fa,_0x43b5cb=stringWidth(_0x19daad);if(_0x43b5cb>=_0x18b7c8)return _0x19daad;return'\x20'[_0x107c53(0x69)](_0x18b7c8-_0x43b5cb)+_0x19daad;}export function centerAlign(_0x44d7c1,_0x21153b){const _0x40ef87=a116_0x45fa,_0x117a16=stringWidth(_0x44d7c1);if(_0x117a16>_0x21153b){if(_0x21153b<=0x1)return'…'[_0x40ef87(0x7a)](0x0,_0x21153b);let _0x1905e3=_0x44d7c1;while(stringWidth(_0x1905e3+'…')>_0x21153b){_0x1905e3=_0x1905e3[_0x40ef87(0x81)](0x0,-0x1);}return _0x1905e3+'…';}if(_0x117a16===_0x21153b)return _0x44d7c1;const _0x13c3ba=_0x21153b-_0x117a16,_0x61d9d4=Math[_0x40ef87(0x6e)](_0x13c3ba/0x2),_0x36cf28=_0x13c3ba-_0x61d9d4;return'\x20'['repeat'](_0x61d9d4)+_0x44d7c1+'\x20'['repeat'](_0x36cf28);}export function escapeStringLiteral(_0x1706d0){const _0xae19d=a116_0x45fa;if(!_0x1706d0||_0x1706d0[_0xae19d(0x7c)]()['length']===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x480a7b=_0x1706d0[_0xae19d(0x6f)](/'/g,'\x27\x27');return'\x27'+_0x480a7b+'\x27';}export function globToLike(_0x3164ab){const _0x4e49da=a116_0x45fa;let _0x2e3e7e=_0x3164ab[_0x4e49da(0x6f)](/\\/g,'\x5c\x5c')[_0x4e49da(0x6f)](/%/g,'\x5c%')[_0x4e49da(0x6f)](/_/g,'\x5c_');return _0x2e3e7e=_0x2e3e7e[_0x4e49da(0x6f)](/\*/g,'%')['replace'](/\?/g,'_'),_0x2e3e7e;}export function buildLikePattern(_0xbb6a36){const _0x2e595d=a116_0x45fa;if(!_0xbb6a36||_0xbb6a36['trim']()[_0x2e595d(0x79)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x28988d=globToLike(_0xbb6a36),_0x5bc405=_0x28988d[_0x2e595d(0x6f)](/'/g,'\x27\x27');return'\x27'+_0x5bc405+'\x27';}function a116_0x493a(){const _0xb22c75=['\x5c$&','365401kisuqh','floor','replace','8775720NbCSjV','random','10888TouJgh','padStart','5uacmJP','unknown','env','4986222BOadnr','1046842EQVweP','length','substring','USERNAME','trim','1309xriDno','95560sfzzhH','8eHHMVz','USER','slice','785877EWLtsQ','test','repeat','toLowerCase','3220wiwBVR'];a116_0x493a=function(){return _0xb22c75;};return a116_0x493a();}export function matchGlobPattern(_0x49f7a5,_0x596c2d){const _0x5a18cf=a116_0x45fa,_0x6c166c=_0x596c2d['replace'](/[.+^${}()|[\]\\]/g,_0x5a18cf(0x6c))[_0x5a18cf(0x6f)](/\*/g,'.*')[_0x5a18cf(0x6f)](/\?/g,'.'),_0x485111=new RegExp('^'+_0x6c166c+'$');return _0x485111[_0x5a18cf(0x83)](_0x49f7a5);}function a116_0x45fa(_0x265aba,_0x488168){_0x265aba=_0x265aba-0x69;const _0x493a78=a116_0x493a();let _0x45fa05=_0x493a78[_0x265aba];return _0x45fa05;}export function getSanitizedUsername(){const _0x3c8228=a116_0x45fa,_0xa4e9c6=process[_0x3c8228(0x76)][_0x3c8228(0x80)]||process[_0x3c8228(0x76)][_0x3c8228(0x7b)]||_0x3c8228(0x75);return _0xa4e9c6[_0x3c8228(0x6f)](/[^a-zA-Z0-9]/g,'')[_0x3c8228(0x6a)]();}export function generateRandomHex(){const _0xf8a38b=a116_0x45fa,_0x7cda0a=Math[_0xf8a38b(0x6e)](Math[_0xf8a38b(0x71)]()*0xfffff);return _0x7cda0a['toString'](0x10)[_0xf8a38b(0x73)](0x5,'0');}export function sanitizeFileName(_0x220bba){const _0x5c22aa=a116_0x45fa;return _0x220bba[_0x5c22aa(0x6a)]()[_0x5c22aa(0x6f)](/[/\\:*?"<>|]/g,'-')[_0x5c22aa(0x6f)](/\s+/g,'-')[_0x5c22aa(0x6f)](/-+/g,'-')[_0x5c22aa(0x6f)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x58cd41,_0x413cd8){const _0x4865f7=a117_0x4963,_0x1d5d06=_0x58cd41();while(!![]){try{const _0x16b445=-parseInt(_0x4865f7(0x175))/0x1+-parseInt(_0x4865f7(0x176))/0x2*(-parseInt(_0x4865f7(0x167))/0x3)+-parseInt(_0x4865f7(0x15d))/0x4*(-parseInt(_0x4865f7(0x15f))/0x5)+-parseInt(_0x4865f7(0x16c))/0x6+parseInt(_0x4865f7(0x173))/0x7+-parseInt(_0x4865f7(0x162))/0x8*(-parseInt(_0x4865f7(0x161))/0x9)+-parseInt(_0x4865f7(0x170))/0xa;if(_0x16b445===_0x413cd8)break;else _0x1d5d06['push'](_0x1d5d06['shift']());}catch(_0x47d1f7){_0x1d5d06['push'](_0x1d5d06['shift']());}}}(a117_0x44ad,0x4324f));function a117_0x4963(_0x373e96,_0x17fe78){_0x373e96=_0x373e96-0x15d;const _0x44ad91=a117_0x44ad();let _0x49636a=_0x44ad91[_0x373e96];return _0x49636a;}function hasWildcard(_0x513999){const _0x1b7fb0=a117_0x4963;return _0x513999[_0x1b7fb0(0x160)]('*')||_0x513999[_0x1b7fb0(0x160)]('?');}export function parseTableReference(_0x3195d4){const _0xa2eb09=a117_0x4963;if(!_0x3195d4||_0x3195d4['trim']()[_0xa2eb09(0x16d)]===0x0)throw new Error(_0xa2eb09(0x15e));const _0x388813=_0x3195d4[_0xa2eb09(0x172)](),_0x1ab95f={'original':_0x388813},_0x504b41=_0x388813[_0xa2eb09(0x178)]('.');if(_0x504b41[_0xa2eb09(0x16d)]===0x1){const _0x24d20f=_0x504b41[0x0];if(!_0x24d20f)throw new Error(_0xa2eb09(0x174));_0x1ab95f[_0xa2eb09(0x171)]=_0x24d20f;}else{if(_0x504b41[_0xa2eb09(0x16d)]===0x2){const [_0x451d71,_0x301cf4]=_0x504b41;if(!_0x451d71)throw new Error(_0xa2eb09(0x163));if(!_0x301cf4)throw new Error(_0xa2eb09(0x16a));_0x1ab95f[_0xa2eb09(0x165)]=_0x451d71,_0x1ab95f[_0xa2eb09(0x171)]=_0x301cf4;}else{if(_0x504b41[_0xa2eb09(0x16d)]===0x3){const [_0x3cffad,_0x16f817,_0x1c671c]=_0x504b41;if(!_0x3cffad||!_0x16f817||!_0x1c671c)throw new Error(_0xa2eb09(0x16e));_0x1ab95f[_0xa2eb09(0x177)]=_0x3cffad,_0x1ab95f[_0xa2eb09(0x165)]=_0x16f817,_0x1ab95f[_0xa2eb09(0x171)]=_0x1c671c;}else throw new Error(_0xa2eb09(0x16b));}}return _0x1ab95f;}export function formatTableReference(_0x228eeb){const _0x349a9f=a117_0x4963,_0x496624=[];return _0x228eeb[_0x349a9f(0x177)]&&_0x496624['push'](_0x228eeb[_0x349a9f(0x177)]),_0x228eeb[_0x349a9f(0x165)]&&_0x496624[_0x349a9f(0x168)](_0x228eeb[_0x349a9f(0x165)]),_0x228eeb[_0x349a9f(0x171)]&&_0x496624[_0x349a9f(0x168)](_0x228eeb['table']),_0x496624[_0x349a9f(0x169)]('.');}export function validateTableListReference(_0x5cdca5){return undefined;}export function validateTableDescribeReference(_0x1db3c5){const _0x558bb1=a117_0x4963;if(!_0x1db3c5['table'])return _0x558bb1(0x166);if(_0x1db3c5[_0x558bb1(0x165)]&&hasWildcard(_0x1db3c5[_0x558bb1(0x165)]))return _0x558bb1(0x164);if(hasWildcard(_0x1db3c5[_0x558bb1(0x171)]))return _0x558bb1(0x16f);return undefined;}function a117_0x44ad(){const _0x2e9463=['12MyGtSB','push','join','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','2062770joWSzK','length','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','2244740zLVnIF','table','trim','2550723pqbqWS','Pattern\x20cannot\x20be\x20just\x20a\x20dot','88903AJSZFn','43178zQiRZR','catalog','split','4CLETqv','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','2033855RFguPN','includes','99urShiI','54312kWKPGw','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','Table\x20name\x20is\x20required\x20for\x20describe\x20operation'];a117_0x44ad=function(){return _0x2e9463;};return a117_0x44ad();}
1
+ (function(_0x5d179a,_0x5a7031){const _0x3f6a8b=a117_0x467c,_0x132bdd=_0x5d179a();while(!![]){try{const _0x4ee91c=-parseInt(_0x3f6a8b(0xfb))/0x1+-parseInt(_0x3f6a8b(0xed))/0x2*(parseInt(_0x3f6a8b(0xf2))/0x3)+parseInt(_0x3f6a8b(0xf1))/0x4+parseInt(_0x3f6a8b(0xef))/0x5+-parseInt(_0x3f6a8b(0xf7))/0x6*(-parseInt(_0x3f6a8b(0xf8))/0x7)+parseInt(_0x3f6a8b(0xf5))/0x8+parseInt(_0x3f6a8b(0x100))/0x9*(-parseInt(_0x3f6a8b(0xf6))/0xa);if(_0x4ee91c===_0x5a7031)break;else _0x132bdd['push'](_0x132bdd['shift']());}catch(_0x3da1c6){_0x132bdd['push'](_0x132bdd['shift']());}}}(a117_0x20b7,0xa35a9));function hasWildcard(_0x7293b8){const _0x52e5d2=a117_0x467c;return _0x7293b8['includes']('*')||_0x7293b8[_0x52e5d2(0xee)]('?');}export function parseTableReference(_0x35737c){const _0x5a2d9b=a117_0x467c;if(!_0x35737c||_0x35737c['trim']()[_0x5a2d9b(0xf0)]===0x0)throw new Error(_0x5a2d9b(0xf4));const _0x811268=_0x35737c[_0x5a2d9b(0xfd)](),_0x3af573={'original':_0x811268},_0xd85407=_0x811268[_0x5a2d9b(0xe9)]('.');if(_0xd85407[_0x5a2d9b(0xf0)]===0x1){const _0x4f2ba7=_0xd85407[0x0];if(!_0x4f2ba7)throw new Error(_0x5a2d9b(0xfa));_0x3af573[_0x5a2d9b(0xff)]=_0x4f2ba7;}else{if(_0xd85407[_0x5a2d9b(0xf0)]===0x2){const [_0xca440a,_0x41a31c]=_0xd85407;if(!_0xca440a)throw new Error(_0x5a2d9b(0xec));if(!_0x41a31c)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x3af573[_0x5a2d9b(0xe8)]=_0xca440a,_0x3af573[_0x5a2d9b(0xff)]=_0x41a31c;}else{if(_0xd85407[_0x5a2d9b(0xf0)]===0x3){const [_0x70bd94,_0x162d8e,_0x268499]=_0xd85407;if(!_0x70bd94||!_0x162d8e||!_0x268499)throw new Error(_0x5a2d9b(0xf3));_0x3af573[_0x5a2d9b(0xfc)]=_0x70bd94,_0x3af573['database']=_0x162d8e,_0x3af573['table']=_0x268499;}else throw new Error('Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)');}}return _0x3af573;}export function formatTableReference(_0x656507){const _0x1b1963=a117_0x467c,_0x4bcefa=[];return _0x656507[_0x1b1963(0xfc)]&&_0x4bcefa['push'](_0x656507[_0x1b1963(0xfc)]),_0x656507[_0x1b1963(0xe8)]&&_0x4bcefa[_0x1b1963(0xeb)](_0x656507[_0x1b1963(0xe8)]),_0x656507[_0x1b1963(0xff)]&&_0x4bcefa[_0x1b1963(0xeb)](_0x656507[_0x1b1963(0xff)]),_0x4bcefa['join']('.');}function a117_0x467c(_0x16ce52,_0x354807){_0x16ce52=_0x16ce52-0xe8;const _0x20b791=a117_0x20b7();let _0x467c6f=_0x20b791[_0x16ce52];return _0x467c6f;}export function validateTableListReference(_0x235d5e){return undefined;}function a117_0x20b7(){const _0xbe59f0=['Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','8875352VpYRcK','10mNPsUp','6QVoOjj','2811403fyVXMe','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','1024827EYALTc','catalog','trim','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','902574YzZdKd','database','split','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','32392cICoIO','includes','2783845CJojRI','length','3634804xQVftj','219QlTVJX','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty'];a117_0x20b7=function(){return _0xbe59f0;};return a117_0x20b7();}export function validateTableDescribeReference(_0x133720){const _0x5ed4ae=a117_0x467c;if(!_0x133720[_0x5ed4ae(0xff)])return _0x5ed4ae(0xea);if(_0x133720[_0x5ed4ae(0xe8)]&&hasWildcard(_0x133720[_0x5ed4ae(0xe8)]))return _0x5ed4ae(0xfe);if(hasWildcard(_0x133720['table']))return _0x5ed4ae(0xf9);return undefined;}
@@ -1 +1 @@
1
- const a118_0x5f9ae8=a118_0x5cea;(function(_0x37c6c2,_0x483eb2){const _0x2a79a1=a118_0x5cea,_0x59ad64=_0x37c6c2();while(!![]){try{const _0x2bb812=parseInt(_0x2a79a1(0x139))/0x1+parseInt(_0x2a79a1(0x13c))/0x2+-parseInt(_0x2a79a1(0x137))/0x3*(parseInt(_0x2a79a1(0x12f))/0x4)+parseInt(_0x2a79a1(0x136))/0x5+-parseInt(_0x2a79a1(0x12e))/0x6*(parseInt(_0x2a79a1(0x131))/0x7)+parseInt(_0x2a79a1(0x134))/0x8*(parseInt(_0x2a79a1(0x146))/0x9)+-parseInt(_0x2a79a1(0x13f))/0xa;if(_0x2bb812===_0x483eb2)break;else _0x59ad64['push'](_0x59ad64['shift']());}catch(_0xcc5b13){_0x59ad64['push'](_0x59ad64['shift']());}}}(a118_0x394a,0x27599));import{existsSync,readFileSync}from'fs';import a118_0x1ea36a from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a118_0x5f9ae8(0x135);export function findTdxConfigPath(_0x1f246b=process[a118_0x5f9ae8(0x142)]()){const _0x2bf4ce=a118_0x5f9ae8;let _0x7220fc=a118_0x1ea36a[_0x2bf4ce(0x138)](_0x1f246b);const _0x530a82=a118_0x1ea36a['parse'](_0x7220fc)[_0x2bf4ce(0x132)];while(_0x7220fc!==_0x530a82){const _0x57df20=a118_0x1ea36a[_0x2bf4ce(0x145)](_0x7220fc,TDX_CONFIG_FILE);if(existsSync(_0x57df20))return _0x57df20;_0x7220fc=a118_0x1ea36a['dirname'](_0x7220fc);}return null;}function a118_0x394a(){const _0x2e7d38=['44DZkjSu','dirname','37170ZDAjks','root','parse','48sgvzmL','segments','1598645kdGEpk','82437hGDfTH','resolve','179134VxEYbt','object','replace','582080KThXuO','parent_segment','stringify','2603250PPXJXv','startsWith','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','cwd','Invalid\x20tdx.json:\x20expected\x20object','utf-8','join','131787cmbnQy','string','174jrceSw'];a118_0x394a=function(){return _0x2e7d38;};return a118_0x394a();}export function loadTdxConfig(_0x242649){const _0x320a2c=a118_0x5f9ae8,_0x4d8b70=readFileSync(_0x242649,_0x320a2c(0x144));let _0x1aedcb;try{_0x1aedcb=JSON[_0x320a2c(0x133)](_0x4d8b70);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x242649);}if(!_0x1aedcb||typeof _0x1aedcb!==_0x320a2c(0x13a))throw new Error(_0x320a2c(0x143));const _0x17803b=_0x1aedcb;if(!_0x17803b[_0x320a2c(0x13d)]||typeof _0x17803b[_0x320a2c(0x13d)]!==_0x320a2c(0x12d))throw new Error('Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field');return{'parent_segment':_0x17803b[_0x320a2c(0x13d)]};}export function findTdxConfig(_0x2d18ff=process['cwd']()){const _0x5ae16e=a118_0x5f9ae8,_0x455b04=findTdxConfigPath(_0x2d18ff);if(!_0x455b04)throw new Error(_0x5ae16e(0x141));const _0x1fadde=loadTdxConfig(_0x455b04),_0xa21f98=a118_0x1ea36a[_0x5ae16e(0x130)](_0x455b04);return{'config':_0x1fadde,'configPath':_0x455b04,'configDir':_0xa21f98};}export function getSegmentRootDir(_0x484c8b,_0x1e7a70=process['cwd']()){const _0x2fa45f=a118_0x5f9ae8;return a118_0x1ea36a[_0x2fa45f(0x145)](_0x1e7a70,SEGMENTS_DIR,_0x484c8b);}export function getTdxConfigPath(_0x485b4c,_0x134cde=process['cwd']()){const _0x2c8c20=a118_0x5f9ae8;return a118_0x1ea36a[_0x2c8c20(0x145)](getSegmentRootDir(_0x485b4c,_0x134cde),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x450233,_0x209ead){const _0x486087=a118_0x5f9ae8,_0x55c359=a118_0x1ea36a[_0x486087(0x138)](_0x450233),_0x29505d=a118_0x1ea36a['relative'](_0x209ead,_0x55c359);if(_0x29505d[_0x486087(0x140)]('..'))return'';return _0x29505d;}function a118_0x5cea(_0x3912e5,_0x14f096){_0x3912e5=_0x3912e5-0x12d;const _0x394aab=a118_0x394a();let _0x5ceaa4=_0x394aab[_0x3912e5];return _0x5ceaa4;}export function localPathToTdFolderPath(_0x21fc4b){const _0x94f1c7=a118_0x5f9ae8,_0x319b0c=a118_0x1ea36a[_0x94f1c7(0x130)](_0x21fc4b);if(_0x319b0c==='.'||_0x319b0c==='')return'';return _0x319b0c[_0x94f1c7(0x13b)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x4c4ddf,_0x43336a){const _0x15828a=a118_0x5f9ae8;if(!_0x4c4ddf)return _0x43336a;return a118_0x1ea36a[_0x15828a(0x145)](_0x43336a,_0x4c4ddf);}export function createTdxConfigContent(_0x3040c2){const _0xb526bd=a118_0x5f9ae8,_0x292854={'parent_segment':_0x3040c2};return JSON[_0xb526bd(0x13e)](_0x292854,null,0x2)+'\x0a';}
1
+ const a118_0x559e9b=a118_0x12bf;function a118_0x3195(){const _0x3b72cb=['5652140eScRcT','dirname','utf-8','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','segments','24QzzmMi','resolve','685123hBTeKb','2246288MxYxqQ','Invalid\x20JSON\x20in\x20','Invalid\x20tdx.json:\x20expected\x20object','2028702HoxqXY','join','297695zjKqdO','replace','678958CzqGXp','parse','6KxkNqF','object','stringify','cwd','root','parent_segment','11174472jdelZd','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','string','4rastnH'];a118_0x3195=function(){return _0x3b72cb;};return a118_0x3195();}(function(_0x327ee5,_0x5d0e8e){const _0x2e0b69=a118_0x12bf,_0x14cf57=_0x327ee5();while(!![]){try{const _0x1f5fa4=parseInt(_0x2e0b69(0x10e))/0x1*(-parseInt(_0x2e0b69(0x121))/0x2)+parseInt(_0x2e0b69(0x112))/0x3+-parseInt(_0x2e0b69(0x10f))/0x4+-parseInt(_0x2e0b69(0x114))/0x5*(parseInt(_0x2e0b69(0x118))/0x6)+parseInt(_0x2e0b69(0x116))/0x7*(parseInt(_0x2e0b69(0x10c))/0x8)+parseInt(_0x2e0b69(0x11e))/0x9+parseInt(_0x2e0b69(0x122))/0xa;if(_0x1f5fa4===_0x5d0e8e)break;else _0x14cf57['push'](_0x14cf57['shift']());}catch(_0x5e2384){_0x14cf57['push'](_0x14cf57['shift']());}}}(a118_0x3195,0xbf159));import{existsSync,readFileSync}from'fs';import a118_0x3ce395 from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a118_0x559e9b(0x126);export function findTdxConfigPath(_0x40c38c=process[a118_0x559e9b(0x11b)]()){const _0x53344c=a118_0x559e9b;let _0x4ec54b=a118_0x3ce395['resolve'](_0x40c38c);const _0x2698fc=a118_0x3ce395[_0x53344c(0x117)](_0x4ec54b)[_0x53344c(0x11c)];while(_0x4ec54b!==_0x2698fc){const _0xd48ed1=a118_0x3ce395['join'](_0x4ec54b,TDX_CONFIG_FILE);if(existsSync(_0xd48ed1))return _0xd48ed1;_0x4ec54b=a118_0x3ce395[_0x53344c(0x123)](_0x4ec54b);}return null;}export function loadTdxConfig(_0x5793eb){const _0x384066=a118_0x559e9b,_0x4107e6=readFileSync(_0x5793eb,_0x384066(0x124));let _0x16994f;try{_0x16994f=JSON[_0x384066(0x117)](_0x4107e6);}catch{throw new Error(_0x384066(0x110)+_0x5793eb);}if(!_0x16994f||typeof _0x16994f!==_0x384066(0x119))throw new Error(_0x384066(0x111));const _0xa9ddf6=_0x16994f;if(!_0xa9ddf6[_0x384066(0x11d)]||typeof _0xa9ddf6[_0x384066(0x11d)]!==_0x384066(0x120))throw new Error(_0x384066(0x125));return{'parent_segment':_0xa9ddf6[_0x384066(0x11d)]};}export function findTdxConfig(_0x3d77e6=process['cwd']()){const _0x1f49e0=a118_0x559e9b,_0x2e91bf=findTdxConfigPath(_0x3d77e6);if(!_0x2e91bf)throw new Error(_0x1f49e0(0x11f));const _0x2947a6=loadTdxConfig(_0x2e91bf),_0x231648=a118_0x3ce395[_0x1f49e0(0x123)](_0x2e91bf);return{'config':_0x2947a6,'configPath':_0x2e91bf,'configDir':_0x231648};}export function getSegmentRootDir(_0x1e1c5b,_0x563849=process[a118_0x559e9b(0x11b)]()){const _0x5d6970=a118_0x559e9b;return a118_0x3ce395[_0x5d6970(0x113)](_0x563849,SEGMENTS_DIR,_0x1e1c5b);}export function getTdxConfigPath(_0x507252,_0x5f2185=process[a118_0x559e9b(0x11b)]()){const _0xde421b=a118_0x559e9b;return a118_0x3ce395[_0xde421b(0x113)](getSegmentRootDir(_0x507252,_0x5f2185),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x505aaf,_0x41eef0){const _0xcf254d=a118_0x559e9b,_0x47a681=a118_0x3ce395[_0xcf254d(0x10d)](_0x505aaf),_0x50907d=a118_0x3ce395['relative'](_0x41eef0,_0x47a681);if(_0x50907d['startsWith']('..'))return'';return _0x50907d;}function a118_0x12bf(_0x3e7bd1,_0x262e0a){_0x3e7bd1=_0x3e7bd1-0x10c;const _0x3195c0=a118_0x3195();let _0x12bfb9=_0x3195c0[_0x3e7bd1];return _0x12bfb9;}export function localPathToTdFolderPath(_0x44f4dc){const _0x470ca0=a118_0x559e9b,_0x39f15e=a118_0x3ce395[_0x470ca0(0x123)](_0x44f4dc);if(_0x39f15e==='.'||_0x39f15e==='')return'';return _0x39f15e[_0x470ca0(0x115)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x56d0c9,_0x40ecb4){const _0x4987ee=a118_0x559e9b;if(!_0x56d0c9)return _0x40ecb4;return a118_0x3ce395[_0x4987ee(0x113)](_0x40ecb4,_0x56d0c9);}export function createTdxConfigContent(_0x5bef61){const _0x3430fe=a118_0x559e9b,_0x2e8893={'parent_segment':_0x5bef61};return JSON[_0x3430fe(0x11a)](_0x2e8893,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a119_0x2f2064=a119_0x558b;(function(_0x27c103,_0x301c7f){const _0x1d896e=a119_0x558b,_0x3973e8=_0x27c103();while(!![]){try{const _0x1e126e=-parseInt(_0x1d896e(0x202))/0x1*(-parseInt(_0x1d896e(0x1e8))/0x2)+parseInt(_0x1d896e(0x1f4))/0x3*(-parseInt(_0x1d896e(0x1fe))/0x4)+-parseInt(_0x1d896e(0x1ff))/0x5*(-parseInt(_0x1d896e(0x1f7))/0x6)+parseInt(_0x1d896e(0x1ca))/0x7+-parseInt(_0x1d896e(0x1df))/0x8*(parseInt(_0x1d896e(0x1f0))/0x9)+-parseInt(_0x1d896e(0x1d1))/0xa+-parseInt(_0x1d896e(0x1fb))/0xb;if(_0x1e126e===_0x301c7f)break;else _0x3973e8['push'](_0x3973e8['shift']());}catch(_0x5b7c6c){_0x3973e8['push'](_0x3973e8['shift']());}}}(a119_0x1a3b,0xac4cf));import{createWriteStream,createReadStream}from'fs';function a119_0x1a3b(){const _0x388dca=['.gz','2561049WezqyG','join','toString','init','33nKlMnl','stack','end','18YnEuDF','abs','rotateOldLogs','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','5939274ASGHaY','getLogPath','getSeconds','66428fpxYwQ','2061345iTFKHg','string','getMilliseconds','10259wbrnQg','fileOnly','split','message','floor','log','logDir','red','debug','Warning:\x20Error\x20writing\x20to\x20tdx.log:','2347051DShLEl','ERROR','error','getFullYear','trace','toISOString','test','951420SrISPj','WARN','.cache','padStart','filter','cause','getTimezoneOffset','.log','getMonth','INFO','write','mtime','Warning:\x20Failed\x20to\x20compress\x20','TRACE','8WxYhVa','warn','logStream','tdx-','logLevel','Proxy\x20session\x20ended','info','getMinutes','name','46ukFHqI','tdx.log','logs','DEBUG','map','gray','tdx'];a119_0x1a3b=function(){return _0x388dca;};return a119_0x1a3b();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';function a119_0x558b(_0x4811de,_0x2d7792){_0x4811de=_0x4811de-0x1c6;const _0x1a3bef=a119_0x1a3b();let _0x558bc9=_0x1a3bef[_0x4811de];return _0x558bc9;}import{pipeline}from'stream/promises';import a119_0x3b0935 from'chalk';function safeStringify(_0x46e60d){const _0x16c068=a119_0x558b;if(typeof _0x46e60d===_0x16c068(0x200))return _0x46e60d;if(_0x46e60d instanceof Error)return _0x46e60d[_0x16c068(0x1f5)]||_0x46e60d[_0x16c068(0x1e7)]+':\x20'+_0x46e60d[_0x16c068(0x205)];try{return JSON['stringify'](_0x46e60d,(_0x84381a,_0x409fd1)=>{const _0x180e73=_0x16c068;if(_0x409fd1 instanceof Error)return{'name':_0x409fd1[_0x180e73(0x1e7)],'message':_0x409fd1[_0x180e73(0x205)],'stack':_0x409fd1[_0x180e73(0x1f5)],'cause':_0x409fd1[_0x180e73(0x1d6)]};return _0x409fd1;});}catch{return String(_0x46e60d);}}function getTimezoneOffset(){const _0xf6713c=a119_0x558b,_0x3015ae=-new Date()[_0xf6713c(0x1d7)](),_0x13e9b1=Math[_0xf6713c(0x206)](Math[_0xf6713c(0x1f8)](_0x3015ae)/0x3c),_0x51cf0e=Math[_0xf6713c(0x1f8)](_0x3015ae)%0x3c,_0x257fc4=_0x3015ae>=0x0?'+':'-';return''+_0x257fc4+_0x13e9b1['toString']()[_0xf6713c(0x1d4)](0x2,'0')+_0x51cf0e[_0xf6713c(0x1f2)]()['padStart'](0x2,'0');}function formatTimestamp(){const _0x1b2895=a119_0x558b,_0x3d4363=new Date(),_0x1e22e9=_0x3d4363[_0x1b2895(0x1cd)](),_0x1f1e07=(_0x3d4363[_0x1b2895(0x1d9)]()+0x1)['toString']()['padStart'](0x2,'0'),_0x3d0dea=_0x3d4363['getDate']()[_0x1b2895(0x1f2)]()[_0x1b2895(0x1d4)](0x2,'0'),_0x350ab7=_0x3d4363['getHours']()[_0x1b2895(0x1f2)]()['padStart'](0x2,'0'),_0x2fa5a9=_0x3d4363[_0x1b2895(0x1e6)]()['toString']()['padStart'](0x2,'0'),_0x1a7443=_0x3d4363[_0x1b2895(0x1fd)]()['toString']()[_0x1b2895(0x1d4)](0x2,'0'),_0x26006f=_0x3d4363[_0x1b2895(0x201)]()[_0x1b2895(0x1f2)]()[_0x1b2895(0x1d4)](0x3,'0'),_0x1874d2=getTimezoneOffset();return _0x1e22e9+'-'+_0x1f1e07+'-'+_0x3d0dea+'\x20'+_0x350ab7+':'+_0x2fa5a9+':'+_0x1a7443+'.'+_0x26006f+_0x1874d2;}function formatColoredLogEntry(_0x12b8a6,_0x461b7e){const _0x58356d=a119_0x558b,_0x21f2ac=formatTimestamp(),_0x40147e=_0x461b7e[_0x58356d(0x1ec)](safeStringify)[_0x58356d(0x1f1)]('\x20'),_0x593ee8=a119_0x3b0935[_0x58356d(0x1ed)](_0x21f2ac);let _0x28ea8f;switch(_0x12b8a6){case'info':_0x28ea8f=a119_0x3b0935['cyan']('['+_0x12b8a6+']\x20');break;case _0x58356d(0x1e0):_0x28ea8f=a119_0x3b0935['yellow']('['+_0x12b8a6+']\x20');break;case'error':_0x28ea8f=a119_0x3b0935[_0x58356d(0x1c7)]('['+_0x12b8a6+']');break;case _0x58356d(0x1c8):_0x28ea8f=a119_0x3b0935[_0x58356d(0x1ed)]('['+_0x12b8a6+']');break;default:_0x28ea8f='['+_0x12b8a6+']';}return _0x593ee8+'\x20'+_0x28ea8f+'\x20'+_0x40147e;}export var LogLevel;(function(_0x4dbb53){const _0x210dcf=a119_0x558b;_0x4dbb53[_0x4dbb53[_0x210dcf(0x1de)]=-0x2]='TRACE',_0x4dbb53[_0x4dbb53[_0x210dcf(0x1eb)]=-0x1]=_0x210dcf(0x1eb),_0x4dbb53[_0x4dbb53[_0x210dcf(0x1da)]=0x0]=_0x210dcf(0x1da),_0x4dbb53[_0x4dbb53[_0x210dcf(0x1d2)]=0x1]='WARN',_0x4dbb53[_0x4dbb53[_0x210dcf(0x1cb)]=0x2]=_0x210dcf(0x1cb);}(LogLevel||(LogLevel={})));export class TDXLogger{['logStream'];['logDir'];['logLevel'];[a119_0x2f2064(0x203)];constructor(_0x2d393c=LogLevel['INFO'],_0x4e86c3=![]){const _0x445ef4=a119_0x2f2064;this['logDir']=join(homedir(),_0x445ef4(0x1d3),_0x445ef4(0x1ee),_0x445ef4(0x1ea)),this[_0x445ef4(0x1e3)]=_0x2d393c,this[_0x445ef4(0x203)]=_0x4e86c3;}async[a119_0x2f2064(0x1f3)](){const _0x2cce11=a119_0x2f2064;try{await mkdir(this[_0x2cce11(0x1c6)],{'recursive':!![]}),await this[_0x2cce11(0x1f9)]();const _0x373c5c=join(this['logDir'],'tdx.log');this[_0x2cce11(0x1e1)]=createWriteStream(_0x373c5c,{'flags':'a'}),this[_0x2cce11(0x1e1)]['on'](_0x2cce11(0x1cc),_0x5e06a2=>{const _0x497cd8=_0x2cce11;console[_0x497cd8(0x1cc)](_0x497cd8(0x1c9),_0x5e06a2['message']);});}catch(_0x20b266){console[_0x2cce11(0x1cc)](_0x2cce11(0x1fa),_0x20b266);}}async['rotateOldLogs'](){const _0x314d5e=a119_0x2f2064;try{const _0x47af36=await readdir(this[_0x314d5e(0x1c6)]),_0x5ee456=new Date()[_0x314d5e(0x1cf)]()[_0x314d5e(0x204)]('T')[0x0];if(_0x47af36['includes'](_0x314d5e(0x1e9))){const _0x203f4f=join(this[_0x314d5e(0x1c6)],_0x314d5e(0x1e9)),_0x1bf7e8=await stat(_0x203f4f),_0x2a4f52=new Date(_0x1bf7e8[_0x314d5e(0x1dc)])[_0x314d5e(0x1cf)]()[_0x314d5e(0x204)]('T')[0x0];if(_0x2a4f52<_0x5ee456){const _0x2cafab=join(this[_0x314d5e(0x1c6)],_0x314d5e(0x1e2)+_0x2a4f52+_0x314d5e(0x1d8));await rename(_0x203f4f,_0x2cafab);}}const _0x43193a=await readdir(this[_0x314d5e(0x1c6)]),_0x3d61a6=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x304f9b=_0x43193a[_0x314d5e(0x1d5)](_0x2ab0c8=>_0x3d61a6[_0x314d5e(0x1d0)](_0x2ab0c8));for(const _0x412075 of _0x304f9b){const _0x329a43=join(this[_0x314d5e(0x1c6)],_0x412075),_0x105a07=join(this[_0x314d5e(0x1c6)],_0x412075+_0x314d5e(0x1ef));try{await pipeline(createReadStream(_0x329a43),createGzip(),createWriteStream(_0x105a07)),await unlink(_0x329a43);}catch(_0x499aa8){console[_0x314d5e(0x1cc)](_0x314d5e(0x1dd)+_0x412075+':',_0x499aa8);}}}catch{}}[a119_0x2f2064(0x1c8)](..._0x230f38){const _0x4ad192=a119_0x2f2064;if(this[_0x4ad192(0x1e3)]>LogLevel[_0x4ad192(0x1eb)])return;const _0x1ae2a2=formatColoredLogEntry(_0x4ad192(0x1c8),_0x230f38);this[_0x4ad192(0x1e1)]?.['write'](_0x1ae2a2+'\x0a');}[a119_0x2f2064(0x1ce)](..._0x9de2e3){const _0x4c1040=a119_0x2f2064;if(this[_0x4c1040(0x1e3)]>LogLevel[_0x4c1040(0x1de)])return;const _0x51e428=formatColoredLogEntry('trace',_0x9de2e3);this[_0x4c1040(0x1e1)]?.[_0x4c1040(0x1db)](_0x51e428+'\x0a');}['info'](..._0x11682e){const _0xd199cd=a119_0x2f2064;if(this['logLevel']>LogLevel[_0xd199cd(0x1da)])return;const _0x1fc02f=formatColoredLogEntry('info',_0x11682e);!this['fileOnly']&&console[_0xd199cd(0x207)](_0x1fc02f),this[_0xd199cd(0x1e1)]?.['write'](_0x1fc02f+'\x0a');}['warn'](..._0x5f0630){const _0x1031c0=a119_0x2f2064;if(this['logLevel']>LogLevel[_0x1031c0(0x1d2)])return;const _0x44f260=formatColoredLogEntry('warn',_0x5f0630);!this['fileOnly']&&console[_0x1031c0(0x1cc)](_0x44f260),this[_0x1031c0(0x1e1)]?.[_0x1031c0(0x1db)](_0x44f260+'\x0a');}[a119_0x2f2064(0x1cc)](..._0x248829){const _0x2a807b=a119_0x2f2064,_0xafd278=formatColoredLogEntry(_0x2a807b(0x1cc),_0x248829);!this[_0x2a807b(0x203)]&&console[_0x2a807b(0x1cc)](_0xafd278),this[_0x2a807b(0x1e1)]?.[_0x2a807b(0x1db)](_0xafd278+'\x0a');}async['close'](){const _0xc4cd52=a119_0x2f2064;return this[_0xc4cd52(0x1e5)](_0xc4cd52(0x1e4)),new Promise(_0x6df869=>{const _0x4ae0dd=_0xc4cd52;this[_0x4ae0dd(0x1e1)]?this[_0x4ae0dd(0x1e1)][_0x4ae0dd(0x1f6)](()=>{_0x6df869();}):_0x6df869();});}[a119_0x2f2064(0x1fc)](){const _0x4a2cee=a119_0x2f2064;return join(this[_0x4a2cee(0x1c6)],_0x4a2cee(0x1e9));}}
1
+ const a119_0x4a0191=a119_0xa22d;(function(_0x50d676,_0x48a211){const _0x4c58bd=a119_0xa22d,_0x1add09=_0x50d676();while(!![]){try{const _0x350d76=parseInt(_0x4c58bd(0x178))/0x1+-parseInt(_0x4c58bd(0x17d))/0x2*(parseInt(_0x4c58bd(0x18a))/0x3)+parseInt(_0x4c58bd(0x186))/0x4+-parseInt(_0x4c58bd(0x169))/0x5+-parseInt(_0x4c58bd(0x158))/0x6*(parseInt(_0x4c58bd(0x161))/0x7)+parseInt(_0x4c58bd(0x15d))/0x8*(-parseInt(_0x4c58bd(0x181))/0x9)+-parseInt(_0x4c58bd(0x157))/0xa*(-parseInt(_0x4c58bd(0x184))/0xb);if(_0x350d76===_0x48a211)break;else _0x1add09['push'](_0x1add09['shift']());}catch(_0xd94238){_0x1add09['push'](_0x1add09['shift']());}}}(a119_0x3e55,0x9674a));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a119_0xa22d(_0x456639,_0x4b972f){_0x456639=_0x456639-0x155;const _0x3e557c=a119_0x3e55();let _0xa22dea=_0x3e557c[_0x456639];return _0xa22dea;}import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a119_0x2a0447 from'chalk';function safeStringify(_0x39b1cc){const _0x5ed401=a119_0xa22d;if(typeof _0x39b1cc===_0x5ed401(0x16e))return _0x39b1cc;if(_0x39b1cc instanceof Error)return _0x39b1cc[_0x5ed401(0x179)]||_0x39b1cc['name']+':\x20'+_0x39b1cc[_0x5ed401(0x15e)];try{return JSON[_0x5ed401(0x17f)](_0x39b1cc,(_0xa19c08,_0x199742)=>{const _0x545e0a=_0x5ed401;if(_0x199742 instanceof Error)return{'name':_0x199742['name'],'message':_0x199742[_0x545e0a(0x15e)],'stack':_0x199742['stack'],'cause':_0x199742[_0x545e0a(0x188)]};return _0x199742;});}catch{return String(_0x39b1cc);}}function a119_0x3e55(){const _0x46976d=['getHours','tdx.log','getMonth','filter','DEBUG','close','padStart','logLevel','9554070tpLpSj','126306IvBQAq','log','getMinutes','init','ERROR','3936232GeAsYk','message','cyan','logDir','224gPGxDf','split','warn','info','map','join','trace','test','3627275eVJKOW','write','toString','rotateOldLogs','fileOnly','string','toISOString','getFullYear','Proxy\x20session\x20ended','gray','logStream','getDate','mtime','yellow','debug','888564xJAjfM','stack','WARN','red','end','10IENwnt','TRACE','stringify','getSeconds','9fvAHFQ','includes','error','11SiRsyT','abs','3571904NALePb','.gz','cause','Warning:\x20Failed\x20to\x20compress\x20','137739XGPfsd','.log'];a119_0x3e55=function(){return _0x46976d;};return a119_0x3e55();}function getTimezoneOffset(){const _0x1b33e7=a119_0xa22d,_0xf4af5a=-new Date()['getTimezoneOffset'](),_0x3b69ce=Math['floor'](Math[_0x1b33e7(0x185)](_0xf4af5a)/0x3c),_0x518bac=Math[_0x1b33e7(0x185)](_0xf4af5a)%0x3c,_0x2e11d9=_0xf4af5a>=0x0?'+':'-';return''+_0x2e11d9+_0x3b69ce[_0x1b33e7(0x16b)]()[_0x1b33e7(0x155)](0x2,'0')+_0x518bac[_0x1b33e7(0x16b)]()[_0x1b33e7(0x155)](0x2,'0');}function formatTimestamp(){const _0x1644d9=a119_0xa22d,_0x5e24ad=new Date(),_0x280226=_0x5e24ad[_0x1644d9(0x170)](),_0x58d07a=(_0x5e24ad[_0x1644d9(0x18e)]()+0x1)[_0x1644d9(0x16b)]()[_0x1644d9(0x155)](0x2,'0'),_0x5c5339=_0x5e24ad[_0x1644d9(0x174)]()[_0x1644d9(0x16b)]()['padStart'](0x2,'0'),_0x114b4b=_0x5e24ad[_0x1644d9(0x18c)]()['toString']()[_0x1644d9(0x155)](0x2,'0'),_0x440655=_0x5e24ad[_0x1644d9(0x15a)]()['toString']()['padStart'](0x2,'0'),_0x265866=_0x5e24ad[_0x1644d9(0x180)]()[_0x1644d9(0x16b)]()[_0x1644d9(0x155)](0x2,'0'),_0x13b39e=_0x5e24ad['getMilliseconds']()[_0x1644d9(0x16b)]()[_0x1644d9(0x155)](0x3,'0'),_0x2bdcdd=getTimezoneOffset();return _0x280226+'-'+_0x58d07a+'-'+_0x5c5339+'\x20'+_0x114b4b+':'+_0x440655+':'+_0x265866+'.'+_0x13b39e+_0x2bdcdd;}function formatColoredLogEntry(_0x177254,_0x27a212){const _0x5e6e19=a119_0xa22d,_0x1ba861=formatTimestamp(),_0x7efeb9=_0x27a212[_0x5e6e19(0x165)](safeStringify)[_0x5e6e19(0x166)]('\x20'),_0x5545b9=a119_0x2a0447[_0x5e6e19(0x172)](_0x1ba861);let _0x49cc19;switch(_0x177254){case _0x5e6e19(0x164):_0x49cc19=a119_0x2a0447[_0x5e6e19(0x15f)]('['+_0x177254+']\x20');break;case'warn':_0x49cc19=a119_0x2a0447[_0x5e6e19(0x176)]('['+_0x177254+']\x20');break;case _0x5e6e19(0x183):_0x49cc19=a119_0x2a0447[_0x5e6e19(0x17b)]('['+_0x177254+']');break;case _0x5e6e19(0x177):_0x49cc19=a119_0x2a0447[_0x5e6e19(0x172)]('['+_0x177254+']');break;default:_0x49cc19='['+_0x177254+']';}return _0x5545b9+'\x20'+_0x49cc19+'\x20'+_0x7efeb9;}export var LogLevel;(function(_0x3b9f12){const _0x34abc0=a119_0xa22d;_0x3b9f12[_0x3b9f12[_0x34abc0(0x17e)]=-0x2]=_0x34abc0(0x17e),_0x3b9f12[_0x3b9f12[_0x34abc0(0x190)]=-0x1]=_0x34abc0(0x190),_0x3b9f12[_0x3b9f12['INFO']=0x0]='INFO',_0x3b9f12[_0x3b9f12[_0x34abc0(0x17a)]=0x1]=_0x34abc0(0x17a),_0x3b9f12[_0x3b9f12[_0x34abc0(0x15c)]=0x2]=_0x34abc0(0x15c);}(LogLevel||(LogLevel={})));export class TDXLogger{['logStream'];[a119_0x4a0191(0x160)];['logLevel'];[a119_0x4a0191(0x16d)];constructor(_0x4154bd=LogLevel['INFO'],_0xf36c7e=![]){const _0x174aa6=a119_0x4a0191;this[_0x174aa6(0x160)]=join(homedir(),'.cache','tdx','logs'),this[_0x174aa6(0x156)]=_0x4154bd,this['fileOnly']=_0xf36c7e;}async[a119_0x4a0191(0x15b)](){const _0xbb357c=a119_0x4a0191;try{await mkdir(this[_0xbb357c(0x160)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x420509=join(this[_0xbb357c(0x160)],_0xbb357c(0x18d));this[_0xbb357c(0x173)]=createWriteStream(_0x420509,{'flags':'a'}),this['logStream']['on'](_0xbb357c(0x183),_0x3e8b82=>{const _0x37629a=_0xbb357c;console[_0x37629a(0x183)]('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x3e8b82['message']);});}catch(_0x53eaee){console[_0xbb357c(0x183)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20files:',_0x53eaee);}}async[a119_0x4a0191(0x16c)](){const _0x45a342=a119_0x4a0191;try{const _0xca6a0=await readdir(this['logDir']),_0x71466e=new Date()['toISOString']()[_0x45a342(0x162)]('T')[0x0];if(_0xca6a0[_0x45a342(0x182)]('tdx.log')){const _0x1f72cb=join(this[_0x45a342(0x160)],_0x45a342(0x18d)),_0x2254ec=await stat(_0x1f72cb),_0xdc85f6=new Date(_0x2254ec[_0x45a342(0x175)])[_0x45a342(0x16f)]()[_0x45a342(0x162)]('T')[0x0];if(_0xdc85f6<_0x71466e){const _0x2a306a=join(this[_0x45a342(0x160)],'tdx-'+_0xdc85f6+_0x45a342(0x18b));await rename(_0x1f72cb,_0x2a306a);}}const _0x328a0c=await readdir(this[_0x45a342(0x160)]),_0x1c293b=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x443a=_0x328a0c[_0x45a342(0x18f)](_0x10d94c=>_0x1c293b[_0x45a342(0x168)](_0x10d94c));for(const _0x1a6797 of _0x443a){const _0x4a7666=join(this[_0x45a342(0x160)],_0x1a6797),_0x35a33e=join(this['logDir'],_0x1a6797+_0x45a342(0x187));try{await pipeline(createReadStream(_0x4a7666),createGzip(),createWriteStream(_0x35a33e)),await unlink(_0x4a7666);}catch(_0x1ef189){console[_0x45a342(0x183)](_0x45a342(0x189)+_0x1a6797+':',_0x1ef189);}}}catch{}}[a119_0x4a0191(0x177)](..._0x5b937b){const _0x1a48ff=a119_0x4a0191;if(this[_0x1a48ff(0x156)]>LogLevel['DEBUG'])return;const _0x491e64=formatColoredLogEntry(_0x1a48ff(0x177),_0x5b937b);this[_0x1a48ff(0x173)]?.[_0x1a48ff(0x16a)](_0x491e64+'\x0a');}[a119_0x4a0191(0x167)](..._0x5a07d6){const _0x5d4a97=a119_0x4a0191;if(this[_0x5d4a97(0x156)]>LogLevel[_0x5d4a97(0x17e)])return;const _0x2b466e=formatColoredLogEntry(_0x5d4a97(0x167),_0x5a07d6);this[_0x5d4a97(0x173)]?.['write'](_0x2b466e+'\x0a');}[a119_0x4a0191(0x164)](..._0x1a479d){const _0x58df04=a119_0x4a0191;if(this['logLevel']>LogLevel['INFO'])return;const _0x5a499b=formatColoredLogEntry(_0x58df04(0x164),_0x1a479d);!this[_0x58df04(0x16d)]&&console[_0x58df04(0x159)](_0x5a499b),this['logStream']?.[_0x58df04(0x16a)](_0x5a499b+'\x0a');}[a119_0x4a0191(0x163)](..._0x4e4bca){const _0x56f326=a119_0x4a0191;if(this['logLevel']>LogLevel[_0x56f326(0x17a)])return;const _0x28b2c1=formatColoredLogEntry('warn',_0x4e4bca);!this[_0x56f326(0x16d)]&&console[_0x56f326(0x183)](_0x28b2c1),this['logStream']?.[_0x56f326(0x16a)](_0x28b2c1+'\x0a');}[a119_0x4a0191(0x183)](..._0x23dbdc){const _0x2c7ca8=a119_0x4a0191,_0x365972=formatColoredLogEntry(_0x2c7ca8(0x183),_0x23dbdc);!this[_0x2c7ca8(0x16d)]&&console[_0x2c7ca8(0x183)](_0x365972),this[_0x2c7ca8(0x173)]?.[_0x2c7ca8(0x16a)](_0x365972+'\x0a');}async[a119_0x4a0191(0x191)](){const _0xa4ccee=a119_0x4a0191;return this['info'](_0xa4ccee(0x171)),new Promise(_0x4dd8a0=>{const _0x38f395=_0xa4ccee;this['logStream']?this[_0x38f395(0x173)][_0x38f395(0x17c)](()=>{_0x4dd8a0();}):_0x4dd8a0();});}['getLogPath'](){const _0x4880b4=a119_0x4a0191;return join(this['logDir'],_0x4880b4(0x18d));}}