@treasuredata/tdx 0.25.7 → 0.26.0

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 (195) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/describe.js +1 -1
  18. package/dist/commands/engage-command.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-validate-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/mcp-command.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profile-command.js +1 -1
  26. package/dist/commands/profiles-command.js +1 -1
  27. package/dist/commands/query-command.js +1 -1
  28. package/dist/commands/schedule-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/status-command.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/unset-command.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/core/version.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/mcp/server.js +1 -1
  60. package/dist/mcp/tools/index.js +1 -1
  61. package/dist/mcp/tools/tdx-run.js +1 -1
  62. package/dist/mcp/tools/tdx-search.js +1 -1
  63. package/dist/mcp/utils.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/passthrough-server.js +1 -1
  66. package/dist/proxy/sse-usage-parser.js +1 -1
  67. package/dist/sdk/agent/agent-config.js +1 -1
  68. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.js +1 -1
  70. package/dist/sdk/agent/test/evaluator.js +1 -1
  71. package/dist/sdk/agent/test/executor.js +1 -1
  72. package/dist/sdk/agent/test/index.js +1 -1
  73. package/dist/sdk/agent/test/output.js +1 -1
  74. package/dist/sdk/agent/test/parser.js +1 -1
  75. package/dist/sdk/api.js +1 -1
  76. package/dist/sdk/client/cdp-api-client.d.ts +7 -0
  77. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  78. package/dist/sdk/client/cdp-api-client.js +1 -1
  79. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  80. package/dist/sdk/client/endpoints.js +1 -1
  81. package/dist/sdk/client/engage-api-client.js +1 -1
  82. package/dist/sdk/client/http-client.js +1 -1
  83. package/dist/sdk/client/llm-api-client.js +1 -1
  84. package/dist/sdk/client/rate-limiter.js +1 -1
  85. package/dist/sdk/client/td-api-client.js +1 -1
  86. package/dist/sdk/client/trino-api-client.js +1 -1
  87. package/dist/sdk/client/workflow-client.js +1 -1
  88. package/dist/sdk/connection-validator.js +1 -1
  89. package/dist/sdk/connection.js +1 -1
  90. package/dist/sdk/engage.js +1 -1
  91. package/dist/sdk/errors.js +1 -1
  92. package/dist/sdk/index.js +1 -1
  93. package/dist/sdk/io/index.js +1 -1
  94. package/dist/sdk/io/node-filesystem.js +1 -1
  95. package/dist/sdk/job.js +1 -1
  96. package/dist/sdk/journey.js +1 -1
  97. package/dist/sdk/llm/chat-cache.js +1 -1
  98. package/dist/sdk/llm/index.js +1 -1
  99. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  100. package/dist/sdk/llm/model-factors.js +1 -1
  101. package/dist/sdk/personalization.js +1 -1
  102. package/dist/sdk/query/index.js +1 -1
  103. package/dist/sdk/query/sql-parser.js +1 -1
  104. package/dist/sdk/realtime.js +1 -1
  105. package/dist/sdk/schedule.js +1 -1
  106. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  107. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  108. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  109. package/dist/sdk/segment/fields-display.js +1 -1
  110. package/dist/sdk/segment/file-discovery.js +1 -1
  111. package/dist/sdk/segment/journey-utils.js +1 -1
  112. package/dist/sdk/segment/journey-validator.d.ts +19 -0
  113. package/dist/sdk/segment/journey-validator.d.ts.map +1 -0
  114. package/dist/sdk/segment/journey-validator.js +1 -0
  115. package/dist/sdk/segment/journey-validator.js.map +1 -0
  116. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  117. package/dist/sdk/segment/journey-yaml.js +1 -1
  118. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  119. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  120. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  121. package/dist/sdk/segment/pull-workflow.js +1 -1
  122. package/dist/sdk/segment/push-recovery.d.ts +42 -0
  123. package/dist/sdk/segment/push-recovery.d.ts.map +1 -0
  124. package/dist/sdk/segment/push-recovery.js +1 -0
  125. package/dist/sdk/segment/push-recovery.js.map +1 -0
  126. package/dist/sdk/segment/push-workflow.d.ts +18 -12
  127. package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
  128. package/dist/sdk/segment/push-workflow.js +1 -1
  129. package/dist/sdk/segment/push-workflow.js.map +1 -1
  130. package/dist/sdk/segment/resolution-context.js +1 -1
  131. package/dist/sdk/segment/segment-path-parser.js +1 -1
  132. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  133. package/dist/sdk/segment/target-resolution.js +1 -1
  134. package/dist/sdk/segment/tdx-config.js +1 -1
  135. package/dist/sdk/segment/types/segment-def.d.ts +2 -0
  136. package/dist/sdk/segment/types/segment-def.d.ts.map +1 -1
  137. package/dist/sdk/segment/validate-files.d.ts.map +1 -1
  138. package/dist/sdk/segment/validate-files.js +1 -1
  139. package/dist/sdk/segment/validate-files.js.map +1 -1
  140. package/dist/sdk/segment/yaml-validator.d.ts +7 -7
  141. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  142. package/dist/sdk/segment/yaml-validator.js +1 -1
  143. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  144. package/dist/sdk/segment.d.ts +5 -0
  145. package/dist/sdk/segment.d.ts.map +1 -1
  146. package/dist/sdk/segment.js +1 -1
  147. package/dist/sdk/segment.js.map +1 -1
  148. package/dist/sdk/types/cdp.d.ts +117 -0
  149. package/dist/sdk/types/cdp.d.ts.map +1 -1
  150. package/dist/sdk/types/index.js +1 -1
  151. package/dist/sdk/types/progress.js +1 -1
  152. package/dist/sdk/user.js +1 -1
  153. package/dist/sdk/util/format-detector.js +1 -1
  154. package/dist/sdk/util/formatters.js +1 -1
  155. package/dist/sdk/util/index.js +1 -1
  156. package/dist/sdk/util/tree-formatter.js +1 -1
  157. package/dist/sdk/workflow/archive-validation.js +1 -1
  158. package/dist/sdk/workflow/clone-workflow.js +1 -1
  159. package/dist/sdk/workflow/index.js +1 -1
  160. package/dist/sdk/workflow/pull-workflow.js +1 -1
  161. package/dist/sdk/workflow/push-workflow.js +1 -1
  162. package/dist/sdk/workflow/tdx-config.js +1 -1
  163. package/dist/sdk/workflow/workflow-utils.js +1 -1
  164. package/dist/test-utils/command-runner.js +1 -1
  165. package/dist/test-utils/factories.js +1 -1
  166. package/dist/test-utils/fixtures.js +1 -1
  167. package/dist/test-utils/http-mock.js +1 -1
  168. package/dist/test-utils/index.js +1 -1
  169. package/dist/utils/async.js +1 -1
  170. package/dist/utils/colors.js +1 -1
  171. package/dist/utils/diff.js +1 -1
  172. package/dist/utils/file-permissions.js +1 -1
  173. package/dist/utils/global-cache.js +1 -1
  174. package/dist/utils/json-loader.js +1 -1
  175. package/dist/utils/local-cache.js +1 -1
  176. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  177. package/dist/utils/logger/formatters/index.js +1 -1
  178. package/dist/utils/logger/handlers/console-handler.js +1 -1
  179. package/dist/utils/logger/handlers/file-handler.js +1 -1
  180. package/dist/utils/logger/handlers/index.js +1 -1
  181. package/dist/utils/logger/handlers/null-handler.js +1 -1
  182. package/dist/utils/logger/index.js +1 -1
  183. package/dist/utils/logger/logger.js +1 -1
  184. package/dist/utils/logger/types.js +1 -1
  185. package/dist/utils/option-validation.js +1 -1
  186. package/dist/utils/port.js +1 -1
  187. package/dist/utils/process.js +1 -1
  188. package/dist/utils/prompt.js +1 -1
  189. package/dist/utils/spinner.js +1 -1
  190. package/dist/utils/sse-parser.js +1 -1
  191. package/dist/utils/string-utils.js +1 -1
  192. package/dist/utils/table-ref-parser.js +1 -1
  193. package/dist/utils/tdx-logger.js +1 -1
  194. package/dist/utils/version-check.js +1 -1
  195. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x15669d,_0x500e83){const _0x2a227f=a157_0x1486,_0x4f6ea2=_0x15669d();while(!![]){try{const _0x3b8ffa=parseInt(_0x2a227f(0x177))/0x1*(-parseInt(_0x2a227f(0x16c))/0x2)+-parseInt(_0x2a227f(0x17b))/0x3+-parseInt(_0x2a227f(0x172))/0x4*(parseInt(_0x2a227f(0x16f))/0x5)+-parseInt(_0x2a227f(0x16e))/0x6*(parseInt(_0x2a227f(0x167))/0x7)+parseInt(_0x2a227f(0x168))/0x8*(-parseInt(_0x2a227f(0x171))/0x9)+-parseInt(_0x2a227f(0x179))/0xa+parseInt(_0x2a227f(0x17a))/0xb*(parseInt(_0x2a227f(0x165))/0xc);if(_0x3b8ffa===_0x500e83)break;else _0x4f6ea2['push'](_0x4f6ea2['shift']());}catch(_0x504cd3){_0x4f6ea2['push'](_0x4f6ea2['shift']());}}}(a157_0x3ccf,0x8936f));import*as a157_0x2b8e44 from'node:fs';import*as a157_0x4a4dca from'node:path';function a157_0x1486(_0x3e4290,_0x102c9d){_0x3e4290=_0x3e4290-0x163;const _0x3ccf1f=a157_0x3ccf();let _0x148609=_0x3ccf1f[_0x3e4290];return _0x148609;}export function setSecureFilePermissions(_0x548e96){const _0x3f4921=a157_0x1486;try{a157_0x2b8e44['chmodSync'](_0x548e96,0x180);}catch{console[_0x3f4921(0x16d)](_0x3f4921(0x175)+_0x548e96);}}export function setSecureDirectoryPermissions(_0xfd58d6){const _0x3fc130=a157_0x1486;try{a157_0x2b8e44[_0x3fc130(0x176)](_0xfd58d6,0x1c0);}catch{console[_0x3fc130(0x16d)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xfd58d6);}}export function createSecureDirectory(_0x3f89c8){const _0x4c0e12=a157_0x1486;!a157_0x2b8e44['existsSync'](_0x3f89c8)&&(a157_0x2b8e44[_0x4c0e12(0x173)](_0x3f89c8,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3f89c8));}export function validateSecureFilePermissions(_0x49bccb){const _0xae9713=a157_0x1486;try{const _0x24b8b1=a157_0x2b8e44[_0xae9713(0x16a)](_0x49bccb),_0x5bf769=_0x24b8b1[_0xae9713(0x163)]&0x1ff,_0x36346b=(_0x5bf769&0x3f)!==0x0;if(_0x36346b)return console[_0xae9713(0x16d)](_0xae9713(0x178)+_0x49bccb+_0xae9713(0x170)+_0x5bf769[_0xae9713(0x16b)](0x8)+_0xae9713(0x164)+_0xae9713(0x169)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x185327,_0x111362){const _0xff9dbd=a157_0x1486,_0x2b6478=a157_0x4a4dca[_0xff9dbd(0x174)](_0x185327);createSecureDirectory(_0x2b6478),a157_0x2b8e44[_0xff9dbd(0x166)](_0x185327,_0x111362,{'mode':0x180}),setSecureFilePermissions(_0x185327);}function a157_0x3ccf(){const _0x46cf38=['mkdirSync','dirname','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','chmodSync','61wZOlOJ','Warning:\x20','2804100jJUTrf','278003FzELYP','461805woWQMO','mode',').\x20','1452vQDqbQ','writeFileSync','5586847Jsxbir','124472jZWTRa','Should\x20be\x200600\x20or\x20more\x20restrictive.','statSync','toString','24338ugRRWW','warn','6OagZtX','25195oOWNKn','\x20has\x20insecure\x20permissions\x20(','45LpUpCV','352IMHApi'];a157_0x3ccf=function(){return _0x46cf38;};return a157_0x3ccf();}
1
+ (function(_0x526a58,_0x2c59c3){const _0x3b8ab0=a159_0x521d,_0x3556ef=_0x526a58();while(!![]){try{const _0x5b2402=-parseInt(_0x3b8ab0(0x167))/0x1+parseInt(_0x3b8ab0(0x165))/0x2*(parseInt(_0x3b8ab0(0x153))/0x3)+-parseInt(_0x3b8ab0(0x157))/0x4+parseInt(_0x3b8ab0(0x15c))/0x5*(parseInt(_0x3b8ab0(0x15a))/0x6)+parseInt(_0x3b8ab0(0x155))/0x7+parseInt(_0x3b8ab0(0x15d))/0x8*(-parseInt(_0x3b8ab0(0x164))/0x9)+parseInt(_0x3b8ab0(0x15e))/0xa*(parseInt(_0x3b8ab0(0x161))/0xb);if(_0x5b2402===_0x2c59c3)break;else _0x3556ef['push'](_0x3556ef['shift']());}catch(_0x35bb82){_0x3556ef['push'](_0x3556ef['shift']());}}}(a159_0x5996,0x9a045));import*as a159_0x224266 from'node:fs';function a159_0x521d(_0x49ff63,_0x42b93c){_0x49ff63=_0x49ff63-0x152;const _0x599605=a159_0x5996();let _0x521d1b=_0x599605[_0x49ff63];return _0x521d1b;}import*as a159_0x3694a2 from'node:path';export function setSecureFilePermissions(_0x5eb5a5){const _0x2aaa54=a159_0x521d;try{a159_0x224266[_0x2aaa54(0x15b)](_0x5eb5a5,0x180);}catch{console[_0x2aaa54(0x159)](_0x2aaa54(0x156)+_0x5eb5a5);}}export function setSecureDirectoryPermissions(_0x5e9b0c){const _0x4fa010=a159_0x521d;try{a159_0x224266['chmodSync'](_0x5e9b0c,0x1c0);}catch{console[_0x4fa010(0x159)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5e9b0c);}}export function createSecureDirectory(_0xf0121a){const _0x2a76cb=a159_0x521d;!a159_0x224266[_0x2a76cb(0x158)](_0xf0121a)&&(a159_0x224266[_0x2a76cb(0x163)](_0xf0121a,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xf0121a));}export function validateSecureFilePermissions(_0x119df3){const _0x2a70df=a159_0x521d;try{const _0x3012f8=a159_0x224266['statSync'](_0x119df3),_0x21a16c=_0x3012f8[_0x2a70df(0x154)]&0x1ff,_0x3ce6c7=(_0x21a16c&0x3f)!==0x0;if(_0x3ce6c7)return console[_0x2a70df(0x159)]('Warning:\x20'+_0x119df3+_0x2a70df(0x162)+_0x21a16c[_0x2a70df(0x15f)](0x8)+').\x20'+_0x2a70df(0x166)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x5181ce,_0x52d480){const _0x3cbc06=a159_0x521d,_0x2b77d6=a159_0x3694a2[_0x3cbc06(0x152)](_0x5181ce);createSecureDirectory(_0x2b77d6),a159_0x224266[_0x3cbc06(0x160)](_0x5181ce,_0x52d480,{'mode':0x180}),setSecureFilePermissions(_0x5181ce);}function a159_0x5996(){const _0x1fb3e8=['793506lRxlvo','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1803012MrzvWQ','existsSync','warn','12bqTWee','chmodSync','2782415lnkIRT','24cemfqL','10zxWMcm','toString','writeFileSync','9143101exkZKR','\x20has\x20insecure\x20permissions\x20(','mkdirSync','450801AQLBfq','736142qUxpmB','Should\x20be\x200600\x20or\x20more\x20restrictive.','1193713gaEDLf','dirname','3OKPHdN','mode'];a159_0x5996=function(){return _0x1fb3e8;};return a159_0x5996();}
@@ -1 +1 @@
1
- (function(_0x5a0312,_0x378952){const _0x16beb6=a158_0x4fae,_0x3e277f=_0x5a0312();while(!![]){try{const _0x18e33c=parseInt(_0x16beb6(0x79))/0x1*(-parseInt(_0x16beb6(0x71))/0x2)+parseInt(_0x16beb6(0x6d))/0x3+parseInt(_0x16beb6(0x76))/0x4+-parseInt(_0x16beb6(0x6b))/0x5+parseInt(_0x16beb6(0x69))/0x6+-parseInt(_0x16beb6(0x72))/0x7*(-parseInt(_0x16beb6(0x6c))/0x8)+-parseInt(_0x16beb6(0x75))/0x9;if(_0x18e33c===_0x378952)break;else _0x3e277f['push'](_0x3e277f['shift']());}catch(_0x3c2bbe){_0x3e277f['push'](_0x3e277f['shift']());}}}(a158_0x5267,0xed219));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x111547,_0x3e7e87){const _0x51b501=a158_0x4fae,_0x1ea1df=registry[_0x51b501(0x77)](_0x111547);if(_0x1ea1df&&_0x1ea1df!==_0x3e7e87)throw new Error(_0x51b501(0x6f)+_0x111547+_0x51b501(0x70)+_0x1ea1df+_0x51b501(0x6e)+_0x3e7e87+'\x22');registry[_0x51b501(0x78)](_0x111547,_0x3e7e87);}export function getGlobalCachePath(_0x586045){return join(getGlobalCacheDir(),_0x586045);}function ensureGlobalCacheDir(){const _0x11b13f=getGlobalCacheDir();!existsSync(_0x11b13f)&&mkdirSync(_0x11b13f,{'recursive':!![]});}function a158_0x5267(){const _0x5e1ecb=['14711904TcOJbM','6235312OmXsbs','get','set','2JUPYaU','{profile}','clear','utf-8','1261278mygtKi','replace','4908170DKNbmf','7120akSeBH','1534224OfoDpY','\x22,\x20cannot\x20register\x20for\x20\x22','Global\x20cache\x20key\x20\x22','\x22\x20already\x20registered\x20by\x20\x22','196970xpeJHy','11830PuGiGl','default','parse'];a158_0x5267=function(){return _0x5e1ecb;};return a158_0x5267();}function readCacheJson(_0x206f8d){const _0x448534=a158_0x4fae,_0x13dc81=getGlobalCachePath(_0x206f8d);if(!existsSync(_0x13dc81))return undefined;try{const _0x4304e1=readFileSync(_0x13dc81,_0x448534(0x68));return JSON[_0x448534(0x74)](_0x4304e1);}catch{return undefined;}}function writeCacheJson(_0xc5e3bc,_0x16264d){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xc5e3bc),JSON['stringify'](_0x16264d,null,0x2),'utf-8');}function readCacheText(_0x52b6aa){const _0x2f8c15=a158_0x4fae,_0xb9dfdf=getGlobalCachePath(_0x52b6aa);if(!existsSync(_0xb9dfdf))return undefined;try{return readFileSync(_0xb9dfdf,_0x2f8c15(0x68));}catch{return undefined;}}function writeCacheText(_0x280f28,_0x39ee4a){const _0x412aba=a158_0x4fae;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x280f28),_0x39ee4a,_0x412aba(0x68));}function clearCache(_0x397d6b){const _0x408e14=getGlobalCachePath(_0x397d6b);if(existsSync(_0x408e14))try{unlinkSync(_0x408e14);}catch{}}function cacheExists(_0x1e5dfc){return existsSync(getGlobalCachePath(_0x1e5dfc));}export function createGlobalCache(_0xfa8ac0,_0x202640){return registerGlobalCacheKey(_0xfa8ac0,_0x202640),{'read':()=>readCacheJson(_0xfa8ac0),'write':_0x6cc963=>writeCacheJson(_0xfa8ac0,_0x6cc963),'clear':()=>clearCache(_0xfa8ac0),'exists':()=>cacheExists(_0xfa8ac0),'path':()=>getGlobalCachePath(_0xfa8ac0)};}export function createGlobalTextCache(_0x31cf0d,_0x566cb6){return registerGlobalCacheKey(_0x31cf0d,_0x566cb6),{'read':()=>readCacheText(_0x31cf0d)?.['trim']()||undefined,'write':_0x4a1d0d=>writeCacheText(_0x31cf0d,_0x4a1d0d),'clear':()=>clearCache(_0x31cf0d),'exists':()=>cacheExists(_0x31cf0d),'path':()=>getGlobalCachePath(_0x31cf0d)};}export function createProfileCache(_0x51c8d1,_0x2eab37){const _0x2896c1=_0x531e4c=>{const _0x2affbf=a158_0x4fae,_0x4dd097=_0x531e4c||_0x2affbf(0x73);return _0x51c8d1[_0x2affbf(0x6a)](_0x2affbf(0x66),_0x4dd097);};return{'read':_0x5d7051=>{const _0x1ab6ac=_0x2896c1(_0x5d7051);return registerGlobalCacheKey(_0x1ab6ac,_0x2eab37),readCacheJson(_0x1ab6ac);},'write':(_0x355ba8,_0x3852f4)=>{const _0x303f6b=_0x2896c1(_0x355ba8);registerGlobalCacheKey(_0x303f6b,_0x2eab37),writeCacheJson(_0x303f6b,_0x3852f4);},'clear':_0x41d637=>{const _0xd0784d=_0x2896c1(_0x41d637);clearCache(_0xd0784d);},'exists':_0x5eb819=>{const _0xfcc56=_0x2896c1(_0x5eb819);return cacheExists(_0xfcc56);},'path':_0x2bde85=>{const _0x199877=_0x2896c1(_0x2bde85);return getGlobalCachePath(_0x199877);}};}function a158_0x4fae(_0x5b5f8c,_0x381f12){_0x5b5f8c=_0x5b5f8c-0x66;const _0x5267d0=a158_0x5267();let _0x4fae56=_0x5267d0[_0x5b5f8c];return _0x4fae56;}export function createOptionalProfileCache(_0x59cdfc,_0x141660,_0x2da669={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2da669,_0x48c883=_0x33169e=>{return _0x33169e?''+_0x59cdfc+profileSeparator+_0x33169e+suffix:''+_0x59cdfc+suffix;};return{'read':_0xfa8501=>{const _0x5615fd=_0x48c883(_0xfa8501);return registerGlobalCacheKey(_0x5615fd,_0x141660),readCacheJson(_0x5615fd);},'write':(_0x443c59,_0x5ddf1a)=>{const _0x539dca=_0x48c883(_0x5ddf1a);registerGlobalCacheKey(_0x539dca,_0x141660),writeCacheJson(_0x539dca,_0x443c59);},'clear':_0x1d474f=>{const _0x423923=_0x48c883(_0x1d474f);clearCache(_0x423923);},'exists':_0x5ef0a7=>{const _0x38924b=_0x48c883(_0x5ef0a7);return cacheExists(_0x38924b);},'path':_0x383b2a=>{const _0x484fc1=_0x48c883(_0x383b2a);return getGlobalCachePath(_0x484fc1);}};}export function clearGlobalRegistry(){const _0x4c9f7d=a158_0x4fae;registry[_0x4c9f7d(0x67)]();}
1
+ (function(_0x3e2c06,_0x490a5d){const _0x2b3c3f=a160_0xc35c,_0x506ec3=_0x3e2c06();while(!![]){try{const _0x2c88ca=parseInt(_0x2b3c3f(0x1d3))/0x1+-parseInt(_0x2b3c3f(0x1d6))/0x2*(-parseInt(_0x2b3c3f(0x1da))/0x3)+parseInt(_0x2b3c3f(0x1d7))/0x4+-parseInt(_0x2b3c3f(0x1d8))/0x5+-parseInt(_0x2b3c3f(0x1e3))/0x6+parseInt(_0x2b3c3f(0x1e1))/0x7+parseInt(_0x2b3c3f(0x1dc))/0x8*(-parseInt(_0x2b3c3f(0x1d2))/0x9);if(_0x2c88ca===_0x490a5d)break;else _0x506ec3['push'](_0x506ec3['shift']());}catch(_0x1ea6b6){_0x506ec3['push'](_0x506ec3['shift']());}}}(a160_0x26d5,0xe91e7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x23159b=a160_0xc35c;return process.env.TDX_CACHE_DIR||join(homedir(),_0x23159b(0x1dd),_0x23159b(0x1d4));}const registry=new Map();export function registerGlobalCacheKey(_0x1ec9db,_0x596cea){const _0x5e9fe4=a160_0xc35c,_0x1fe72e=registry[_0x5e9fe4(0x1e2)](_0x1ec9db);if(_0x1fe72e&&_0x1fe72e!==_0x596cea)throw new Error('Global\x20cache\x20key\x20\x22'+_0x1ec9db+_0x5e9fe4(0x1d5)+_0x1fe72e+_0x5e9fe4(0x1de)+_0x596cea+'\x22');registry['set'](_0x1ec9db,_0x596cea);}export function getGlobalCachePath(_0x384e3e){return join(getGlobalCacheDir(),_0x384e3e);}function ensureGlobalCacheDir(){const _0xed69ce=getGlobalCacheDir();!existsSync(_0xed69ce)&&mkdirSync(_0xed69ce,{'recursive':!![]});}function readCacheJson(_0x202290){const _0x5c0b62=a160_0xc35c,_0x93b487=getGlobalCachePath(_0x202290);if(!existsSync(_0x93b487))return undefined;try{const _0x5c226e=readFileSync(_0x93b487,'utf-8');return JSON[_0x5c0b62(0x1d9)](_0x5c226e);}catch{return undefined;}}function writeCacheJson(_0x40e947,_0x1ef6be){const _0x5d7f9e=a160_0xc35c;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x40e947),JSON[_0x5d7f9e(0x1e0)](_0x1ef6be,null,0x2),'utf-8');}function a160_0x26d5(){const _0x15548=['parse','1395951dQWgeO','clear','5233384NghvJm','.cache','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','stringify','6238309xAZmZA','get','7739436dBFPDP','9xQeplI','1189008MptkQd','tdx','\x22\x20already\x20registered\x20by\x20\x22','2iBjqrg','3518404wKdOpw','2630895VKuxWv'];a160_0x26d5=function(){return _0x15548;};return a160_0x26d5();}function readCacheText(_0x2ef562){const _0x52784d=a160_0xc35c,_0x19704c=getGlobalCachePath(_0x2ef562);if(!existsSync(_0x19704c))return undefined;try{return readFileSync(_0x19704c,_0x52784d(0x1df));}catch{return undefined;}}function writeCacheText(_0x5aa701,_0x4bbb87){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5aa701),_0x4bbb87,'utf-8');}function clearCache(_0x1f6cda){const _0x513aca=getGlobalCachePath(_0x1f6cda);if(existsSync(_0x513aca))try{unlinkSync(_0x513aca);}catch{}}function cacheExists(_0x18b7b9){return existsSync(getGlobalCachePath(_0x18b7b9));}export function createGlobalCache(_0x2a5e06,_0x303452){return registerGlobalCacheKey(_0x2a5e06,_0x303452),{'read':()=>readCacheJson(_0x2a5e06),'write':_0x3f80c9=>writeCacheJson(_0x2a5e06,_0x3f80c9),'clear':()=>clearCache(_0x2a5e06),'exists':()=>cacheExists(_0x2a5e06),'path':()=>getGlobalCachePath(_0x2a5e06)};}export function createGlobalTextCache(_0x571e7f,_0x3ae59c){return registerGlobalCacheKey(_0x571e7f,_0x3ae59c),{'read':()=>readCacheText(_0x571e7f)?.['trim']()||undefined,'write':_0x1617b9=>writeCacheText(_0x571e7f,_0x1617b9),'clear':()=>clearCache(_0x571e7f),'exists':()=>cacheExists(_0x571e7f),'path':()=>getGlobalCachePath(_0x571e7f)};}function a160_0xc35c(_0x2c37d0,_0x554fa4){_0x2c37d0=_0x2c37d0-0x1d2;const _0x26d59f=a160_0x26d5();let _0xc35c5c=_0x26d59f[_0x2c37d0];return _0xc35c5c;}export function createProfileCache(_0x2d3e97,_0x1de280){const _0x2ca230=_0x92c92=>{const _0x1ff3d0=_0x92c92||'default';return _0x2d3e97['replace']('{profile}',_0x1ff3d0);};return{'read':_0x1f1257=>{const _0x504421=_0x2ca230(_0x1f1257);return registerGlobalCacheKey(_0x504421,_0x1de280),readCacheJson(_0x504421);},'write':(_0x4bef1f,_0x205c58)=>{const _0x1f338b=_0x2ca230(_0x4bef1f);registerGlobalCacheKey(_0x1f338b,_0x1de280),writeCacheJson(_0x1f338b,_0x205c58);},'clear':_0x866e8d=>{const _0x40aa8a=_0x2ca230(_0x866e8d);clearCache(_0x40aa8a);},'exists':_0x823451=>{const _0x593de0=_0x2ca230(_0x823451);return cacheExists(_0x593de0);},'path':_0x32ab3c=>{const _0x12ed88=_0x2ca230(_0x32ab3c);return getGlobalCachePath(_0x12ed88);}};}export function createOptionalProfileCache(_0x50e314,_0x472fc1,_0x2709bc={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2709bc,_0x3bdf50=_0x22d600=>{return _0x22d600?''+_0x50e314+profileSeparator+_0x22d600+suffix:''+_0x50e314+suffix;};return{'read':_0x31f6fc=>{const _0x31d573=_0x3bdf50(_0x31f6fc);return registerGlobalCacheKey(_0x31d573,_0x472fc1),readCacheJson(_0x31d573);},'write':(_0x594552,_0x54efec)=>{const _0x2a980c=_0x3bdf50(_0x54efec);registerGlobalCacheKey(_0x2a980c,_0x472fc1),writeCacheJson(_0x2a980c,_0x594552);},'clear':_0x8d55ea=>{const _0x312583=_0x3bdf50(_0x8d55ea);clearCache(_0x312583);},'exists':_0x389498=>{const _0x334f91=_0x3bdf50(_0x389498);return cacheExists(_0x334f91);},'path':_0x7bd594=>{const _0x47d856=_0x3bdf50(_0x7bd594);return getGlobalCachePath(_0x47d856);}};}export function clearGlobalRegistry(){const _0x565f79=a160_0xc35c;registry[_0x565f79(0x1db)]();}
@@ -1 +1 @@
1
- (function(_0x8a6e9b,_0x302b94){const _0x5820f6=a159_0x1e4b,_0x14e2a5=_0x8a6e9b();while(!![]){try{const _0x3ce453=-parseInt(_0x5820f6(0x77))/0x1+-parseInt(_0x5820f6(0x75))/0x2+-parseInt(_0x5820f6(0x6b))/0x3+-parseInt(_0x5820f6(0x73))/0x4*(-parseInt(_0x5820f6(0x78))/0x5)+parseInt(_0x5820f6(0x6f))/0x6+-parseInt(_0x5820f6(0x7d))/0x7+parseInt(_0x5820f6(0x7b))/0x8*(parseInt(_0x5820f6(0x7a))/0x9);if(_0x3ce453===_0x302b94)break;else _0x14e2a5['push'](_0x14e2a5['shift']());}catch(_0x4607cd){_0x14e2a5['push'](_0x14e2a5['shift']());}}}(a159_0x45f1,0x547be));import{readFile}from'fs/promises';function a159_0x45f1(){const _0x3cc767=['1205281BxBiOn','\x27:\x20','PERMISSION_DENIED','2029938IaRXAF','INTERNAL','ENOENT','File\x20not\x20found:\x20','2173602QTvKik','parse','Invalid\x20JSON\x20string:\x20','code','56060mMlOVW','NOT_FOUND','1207316EZFyNS','Invalid\x20JSON\x20in\x20file\x20\x27','548580sWeFyX','75lSRnbr','INVALID_ARGUMENT','9lbMTAH','14196968tIAkol','EACCES'];a159_0x45f1=function(){return _0x3cc767;};return a159_0x45f1();}import{SDKError,ErrorCode}from'../sdk/errors.js';function a159_0x1e4b(_0x460f74,_0x3f9047){_0x460f74=_0x460f74-0x6a;const _0x45f11a=a159_0x45f1();let _0x1e4bfd=_0x45f11a[_0x460f74];return _0x1e4bfd;}export async function loadJSON(_0xa9d1d3,_0x18b254){const _0xaa1b8b=a159_0x1e4b;try{if(_0x18b254){const _0x59e2af=await readFile(_0xa9d1d3,'utf-8');try{return JSON[_0xaa1b8b(0x70)](_0x59e2af);}catch(_0x546c22){throw new SDKError(ErrorCode[_0xaa1b8b(0x79)],_0xaa1b8b(0x76)+_0xa9d1d3+_0xaa1b8b(0x7e)+(_0x546c22 instanceof Error?_0x546c22['message']:String(_0x546c22)));}}else try{return JSON['parse'](_0xa9d1d3);}catch(_0x262be9){throw new SDKError(ErrorCode[_0xaa1b8b(0x79)],_0xaa1b8b(0x71)+(_0x262be9 instanceof Error?_0x262be9['message']:String(_0x262be9)));}}catch(_0x1006fc){if(_0x1006fc instanceof SDKError)throw _0x1006fc;if(_0x1006fc instanceof Error&&_0xaa1b8b(0x72)in _0x1006fc){const _0xf0346d=_0x1006fc;if(_0xf0346d[_0xaa1b8b(0x72)]===_0xaa1b8b(0x6d))throw new SDKError(ErrorCode[_0xaa1b8b(0x74)],_0xaa1b8b(0x6e)+_0xa9d1d3);else{if(_0xf0346d[_0xaa1b8b(0x72)]===_0xaa1b8b(0x7c))throw new SDKError(ErrorCode[_0xaa1b8b(0x6a)],'Permission\x20denied\x20reading\x20file:\x20'+_0xa9d1d3);}}throw new SDKError(ErrorCode[_0xaa1b8b(0x6c)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1006fc instanceof Error?_0x1006fc['message']:String(_0x1006fc)));}}export async function loadJSONFromOptions(_0x571b8f,_0x540274){const _0x5a43c1=a159_0x1e4b;if(_0x571b8f&&_0x540274)throw new SDKError(ErrorCode[_0x5a43c1(0x79)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x571b8f)return await loadJSON(_0x571b8f,![]);if(_0x540274)return await loadJSON(_0x540274,!![]);return undefined;}
1
+ (function(_0x580035,_0x4d746c){const _0x327456=a161_0x1498,_0x33b624=_0x580035();while(!![]){try{const _0x58c050=parseInt(_0x327456(0x75))/0x1+-parseInt(_0x327456(0x67))/0x2*(parseInt(_0x327456(0x72))/0x3)+parseInt(_0x327456(0x6e))/0x4+parseInt(_0x327456(0x78))/0x5+-parseInt(_0x327456(0x7b))/0x6*(-parseInt(_0x327456(0x6f))/0x7)+-parseInt(_0x327456(0x77))/0x8*(-parseInt(_0x327456(0x74))/0x9)+parseInt(_0x327456(0x65))/0xa*(-parseInt(_0x327456(0x7a))/0xb);if(_0x58c050===_0x4d746c)break;else _0x33b624['push'](_0x33b624['shift']());}catch(_0x1f6b47){_0x33b624['push'](_0x33b624['shift']());}}}(a161_0x6ec5,0xcefe7));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a161_0x6ec5(){const _0x3ead7d=['583308IongmJ','3886239GXMruw','code','Invalid\x20JSON\x20in\x20file\x20\x27','183wbddvr','message','63OTnegq','111585QCAeRc','parse','1048488VBYzPH','6273950mWXREv','Permission\x20denied\x20reading\x20file:\x20','4809431iFovLN','6ydcAEj','20CUCfvh','NOT_FOUND','41394uSCeUo','Failed\x20to\x20load\x20JSON:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INVALID_ARGUMENT','PERMISSION_DENIED','INTERNAL','\x27:\x20'];a161_0x6ec5=function(){return _0x3ead7d;};return a161_0x6ec5();}export async function loadJSON(_0x21841e,_0x31b91b){const _0x2d54ab=a161_0x1498;try{if(_0x31b91b){const _0x321086=await readFile(_0x21841e,'utf-8');try{return JSON[_0x2d54ab(0x76)](_0x321086);}catch(_0x6d914d){throw new SDKError(ErrorCode[_0x2d54ab(0x6a)],_0x2d54ab(0x71)+_0x21841e+_0x2d54ab(0x6d)+(_0x6d914d instanceof Error?_0x6d914d[_0x2d54ab(0x73)]:String(_0x6d914d)));}}else try{return JSON['parse'](_0x21841e);}catch(_0x4bc2bc){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20string:\x20'+(_0x4bc2bc instanceof Error?_0x4bc2bc['message']:String(_0x4bc2bc)));}}catch(_0x188274){if(_0x188274 instanceof SDKError)throw _0x188274;if(_0x188274 instanceof Error&&_0x2d54ab(0x70)in _0x188274){const _0x36aa10=_0x188274;if(_0x36aa10[_0x2d54ab(0x70)]==='ENOENT')throw new SDKError(ErrorCode[_0x2d54ab(0x66)],'File\x20not\x20found:\x20'+_0x21841e);else{if(_0x36aa10[_0x2d54ab(0x70)]==='EACCES')throw new SDKError(ErrorCode[_0x2d54ab(0x6b)],_0x2d54ab(0x79)+_0x21841e);}}throw new SDKError(ErrorCode[_0x2d54ab(0x6c)],_0x2d54ab(0x68)+(_0x188274 instanceof Error?_0x188274['message']:String(_0x188274)));}}function a161_0x1498(_0x1a2dc7,_0x12667c){_0x1a2dc7=_0x1a2dc7-0x65;const _0x6ec555=a161_0x6ec5();let _0x1498d7=_0x6ec555[_0x1a2dc7];return _0x1498d7;}export async function loadJSONFromOptions(_0x352379,_0x3ad052){const _0x548133=a161_0x1498;if(_0x352379&&_0x3ad052)throw new SDKError(ErrorCode[_0x548133(0x6a)],_0x548133(0x69));if(_0x352379)return await loadJSON(_0x352379,![]);if(_0x3ad052)return await loadJSON(_0x3ad052,!![]);return undefined;}
@@ -1 +1 @@
1
- const a160_0x29eb6b=a160_0x2929;(function(_0x572189,_0x27017c){const _0x590efb=a160_0x2929,_0x5c443f=_0x572189();while(!![]){try{const _0x35f00e=-parseInt(_0x590efb(0x109))/0x1*(parseInt(_0x590efb(0x101))/0x2)+parseInt(_0x590efb(0x107))/0x3*(parseInt(_0x590efb(0xf9))/0x4)+parseInt(_0x590efb(0xfb))/0x5*(-parseInt(_0x590efb(0x10e))/0x6)+-parseInt(_0x590efb(0x100))/0x7*(-parseInt(_0x590efb(0xfc))/0x8)+-parseInt(_0x590efb(0x106))/0x9*(parseInt(_0x590efb(0x10a))/0xa)+parseInt(_0x590efb(0x10b))/0xb+parseInt(_0x590efb(0xfd))/0xc*(parseInt(_0x590efb(0xf8))/0xd);if(_0x35f00e===_0x27017c)break;else _0x5c443f['push'](_0x5c443f['shift']());}catch(_0x3b1b6d){_0x5c443f['push'](_0x5c443f['shift']());}}}(a160_0x594d,0xd2a2d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a160_0x29eb6b(0x108),registry=new Map();export function registerCacheKey(_0x473dc3,_0x421f49){const _0x4006c2=a160_0x29eb6b,_0x17d6ab=registry['get'](_0x473dc3);if(_0x17d6ab&&_0x17d6ab!==_0x421f49)throw new Error(_0x4006c2(0x105)+_0x473dc3+_0x4006c2(0xfa)+_0x17d6ab+_0x4006c2(0x10c)+_0x421f49+'\x22');registry[_0x4006c2(0x10d)](_0x473dc3,_0x421f49);}export function getCacheDir(){const _0x9ddc21=a160_0x29eb6b;return join(process[_0x9ddc21(0x103)](),LOCAL_CACHE_DIR);}export function getCachePath(_0x69a45b){return join(getCacheDir(),_0x69a45b);}function a160_0x2929(_0x176814,_0x4408b6){_0x176814=_0x176814-0xf8;const _0x594d0e=a160_0x594d();let _0x292939=_0x594d0e[_0x176814];return _0x292939;}function ensureCacheDir(){const _0x5d326c=getCacheDir();!existsSync(_0x5d326c)&&mkdirSync(_0x5d326c,{'recursive':!![]});}function a160_0x594d(){const _0x1be74c=['2fCioIJ','stringify','cwd','trim','Cache\x20key\x20\x22','214983PIUkMr','24543BJMygS','.cache/tdx','324581OOvRXx','700OcZJsM','9616497yWxJBF','\x22,\x20cannot\x20register\x20for\x20\x22','set','30MCkBmm','65OuFhKB','576NamjuS','\x22\x20already\x20registered\x20by\x20\x22','1345165WOxutR','2648Ysdbyp','4653156jPxIDX','clear','utf-8','4515vwghip'];a160_0x594d=function(){return _0x1be74c;};return a160_0x594d();}function readCacheJson(_0x123b33){const _0x2462e3=a160_0x29eb6b,_0x4cf093=getCachePath(_0x123b33);if(!existsSync(_0x4cf093))return undefined;try{const _0x1f8af5=readFileSync(_0x4cf093,_0x2462e3(0xff));return JSON['parse'](_0x1f8af5);}catch{return undefined;}}function writeCacheJson(_0xd6c8ab,_0x2541e5){const _0x388a12=a160_0x29eb6b;ensureCacheDir(),writeFileSync(getCachePath(_0xd6c8ab),JSON[_0x388a12(0x102)](_0x2541e5,null,0x2),_0x388a12(0xff));}function readCacheText(_0x1f65ac){const _0x325e7d=a160_0x29eb6b,_0x4f7f47=getCachePath(_0x1f65ac);if(!existsSync(_0x4f7f47))return undefined;try{return readFileSync(_0x4f7f47,_0x325e7d(0xff));}catch{return undefined;}}function writeCacheText(_0x520185,_0x35a575){const _0xf93323=a160_0x29eb6b;ensureCacheDir(),writeFileSync(getCachePath(_0x520185),_0x35a575,_0xf93323(0xff));}function clearCache(_0x212b94){const _0x40f4ee=getCachePath(_0x212b94);if(existsSync(_0x40f4ee))try{unlinkSync(_0x40f4ee);}catch{}}function cacheExists(_0x4c6613){return existsSync(getCachePath(_0x4c6613));}export function createCache(_0x36b68b,_0x49e3b2){return registerCacheKey(_0x36b68b,_0x49e3b2),{'read':()=>readCacheJson(_0x36b68b),'write':_0x5735fd=>writeCacheJson(_0x36b68b,_0x5735fd),'clear':()=>clearCache(_0x36b68b),'exists':()=>cacheExists(_0x36b68b),'path':()=>getCachePath(_0x36b68b)};}export function createTextCache(_0x3ffce0,_0xd19a82){const _0x4d6a84=a160_0x29eb6b;return registerCacheKey(_0x3ffce0,_0xd19a82),{'read':()=>readCacheText(_0x3ffce0)?.[_0x4d6a84(0x104)]()||undefined,'write':_0x13a239=>writeCacheText(_0x3ffce0,_0x13a239),'clear':()=>clearCache(_0x3ffce0),'exists':()=>cacheExists(_0x3ffce0),'path':()=>getCachePath(_0x3ffce0)};}export function clearRegistry(){const _0x8c2e93=a160_0x29eb6b;registry[_0x8c2e93(0xfe)]();}
1
+ const a162_0x23f89d=a162_0x5e9d;(function(_0x309ad4,_0x5bd086){const _0x5e0fe6=a162_0x5e9d,_0x468542=_0x309ad4();while(!![]){try{const _0x580afe=-parseInt(_0x5e0fe6(0x106))/0x1+-parseInt(_0x5e0fe6(0x110))/0x2+-parseInt(_0x5e0fe6(0x112))/0x3*(-parseInt(_0x5e0fe6(0x105))/0x4)+-parseInt(_0x5e0fe6(0x102))/0x5+-parseInt(_0x5e0fe6(0x10a))/0x6*(-parseInt(_0x5e0fe6(0x113))/0x7)+-parseInt(_0x5e0fe6(0x10b))/0x8*(parseInt(_0x5e0fe6(0x108))/0x9)+parseInt(_0x5e0fe6(0x107))/0xa*(parseInt(_0x5e0fe6(0x101))/0xb);if(_0x580afe===_0x5bd086)break;else _0x468542['push'](_0x468542['shift']());}catch(_0x35d917){_0x468542['push'](_0x468542['shift']());}}}(a162_0x3858,0xbccdf));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a162_0x23f89d(0x10e),registry=new Map();function a162_0x5e9d(_0x374e91,_0x8185f8){_0x374e91=_0x374e91-0x101;const _0x3858ee=a162_0x3858();let _0x5e9d46=_0x3858ee[_0x374e91];return _0x5e9d46;}export function registerCacheKey(_0x27face,_0x2223d0){const _0x5d5675=a162_0x23f89d,_0x25d9b8=registry['get'](_0x27face);if(_0x25d9b8&&_0x25d9b8!==_0x2223d0)throw new Error(_0x5d5675(0x10c)+_0x27face+_0x5d5675(0x104)+_0x25d9b8+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x2223d0+'\x22');registry['set'](_0x27face,_0x2223d0);}export function getCacheDir(){const _0x2f1520=a162_0x23f89d;return join(process[_0x2f1520(0x114)](),LOCAL_CACHE_DIR);}export function getCachePath(_0x57790c){return join(getCacheDir(),_0x57790c);}function ensureCacheDir(){const _0x56544d=getCacheDir();!existsSync(_0x56544d)&&mkdirSync(_0x56544d,{'recursive':!![]});}function readCacheJson(_0x1d0eb7){const _0x4ae606=a162_0x23f89d,_0x551a78=getCachePath(_0x1d0eb7);if(!existsSync(_0x551a78))return undefined;try{const _0x2d9f77=readFileSync(_0x551a78,_0x4ae606(0x109));return JSON[_0x4ae606(0x103)](_0x2d9f77);}catch{return undefined;}}function writeCacheJson(_0x4bee23,_0x2d8241){const _0x8991c1=a162_0x23f89d;ensureCacheDir(),writeFileSync(getCachePath(_0x4bee23),JSON[_0x8991c1(0x10d)](_0x2d8241,null,0x2),'utf-8');}function readCacheText(_0x3bd20f){const _0x518bf2=getCachePath(_0x3bd20f);if(!existsSync(_0x518bf2))return undefined;try{return readFileSync(_0x518bf2,'utf-8');}catch{return undefined;}}function a162_0x3858(){const _0x2dcf86=['89576slTeix','Cache\x20key\x20\x22','stringify','.cache/tdx','trim','2174806bJutYg','clear','3057EwvTqp','658fGuXah','cwd','19765163ySMJkB','4423905zcUbLs','parse','\x22\x20already\x20registered\x20by\x20\x22','3492mqNelN','1027180htfadc','10nwYOBb','135YwPzOv','utf-8','80058AtQOdB'];a162_0x3858=function(){return _0x2dcf86;};return a162_0x3858();}function writeCacheText(_0x5d5f70,_0x22ef3b){const _0x1294f7=a162_0x23f89d;ensureCacheDir(),writeFileSync(getCachePath(_0x5d5f70),_0x22ef3b,_0x1294f7(0x109));}function clearCache(_0x3fe8ef){const _0x32d88a=getCachePath(_0x3fe8ef);if(existsSync(_0x32d88a))try{unlinkSync(_0x32d88a);}catch{}}function cacheExists(_0x1c1fad){return existsSync(getCachePath(_0x1c1fad));}export function createCache(_0x325871,_0x1272a8){return registerCacheKey(_0x325871,_0x1272a8),{'read':()=>readCacheJson(_0x325871),'write':_0x50d889=>writeCacheJson(_0x325871,_0x50d889),'clear':()=>clearCache(_0x325871),'exists':()=>cacheExists(_0x325871),'path':()=>getCachePath(_0x325871)};}export function createTextCache(_0x5d0b98,_0x4ff243){const _0x5db6de=a162_0x23f89d;return registerCacheKey(_0x5d0b98,_0x4ff243),{'read':()=>readCacheText(_0x5d0b98)?.[_0x5db6de(0x10f)]()||undefined,'write':_0x4bdcfb=>writeCacheText(_0x5d0b98,_0x4bdcfb),'clear':()=>clearCache(_0x5d0b98),'exists':()=>cacheExists(_0x5d0b98),'path':()=>getCachePath(_0x5d0b98)};}export function clearRegistry(){const _0x4f0ef8=a162_0x23f89d;registry[_0x4f0ef8(0x111)]();}
@@ -1 +1 @@
1
- const a161_0x52e667=a161_0x2327;(function(_0x2f9bcf,_0x196e2b){const _0x278443=a161_0x2327,_0x36a108=_0x2f9bcf();while(!![]){try{const _0x55f0ee=parseInt(_0x278443(0x1bb))/0x1+-parseInt(_0x278443(0x1ad))/0x2+-parseInt(_0x278443(0x1ba))/0x3+-parseInt(_0x278443(0x1c1))/0x4+-parseInt(_0x278443(0x1b8))/0x5+-parseInt(_0x278443(0x1b1))/0x6*(parseInt(_0x278443(0x1b0))/0x7)+parseInt(_0x278443(0x1b4))/0x8;if(_0x55f0ee===_0x196e2b)break;else _0x36a108['push'](_0x36a108['shift']());}catch(_0x5799f4){_0x36a108['push'](_0x36a108['shift']());}}}(a161_0x3dee,0x50316));import a161_0x5d5367 from'chalk';function a161_0x2327(_0x42d118,_0x339120){_0x42d118=_0x42d118-0x1ad;const _0x3deeb7=a161_0x3dee();let _0x2327e3=_0x3deeb7[_0x42d118];return _0x2327e3;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a161_0x5d5367,ChalkClass=chalkModule[a161_0x52e667(0x1c0)]||chalkModule[a161_0x52e667(0x1b7)]?.[a161_0x52e667(0x1c0)];export class DefaultLogFormatter{['colors'];[a161_0x52e667(0x1be)];constructor(_0x350845={}){const _0x5a2de9=a161_0x52e667;this['colors']=_0x350845[_0x5a2de9(0x1c4)]??![],this[_0x5a2de9(0x1be)]=_0x350845[_0x5a2de9(0x1c4)]&&ChalkClass?new ChalkClass({'level':0x3}):a161_0x5d5367;}[a161_0x52e667(0x1ae)](_0x492943){const _0x36c2c2=a161_0x52e667,_0x2aea10=formatTimestamp(_0x492943[_0x36c2c2(0x1b2)]),_0xc572c4=logLevelToString(_0x492943[_0x36c2c2(0x1c2)]);if(!this[_0x36c2c2(0x1c4)])return _0x2aea10+'\x20['+_0xc572c4+']\x20['+_0x492943[_0x36c2c2(0x1bc)]+']\x20'+_0x492943[_0x36c2c2(0x1c3)];const _0x21daf8=this[_0x36c2c2(0x1be)]['dim'](_0x2aea10),_0x3831ca=this['colorLevel'](_0xc572c4,_0x492943['level']),_0xa3a2a3=this['chalk']['blue']('['+_0x492943[_0x36c2c2(0x1bc)]+']');return _0x21daf8+'\x20'+_0x3831ca+'\x20'+_0xa3a2a3+'\x20'+_0x492943['message'];}['colorLevel'](_0x22891d,_0x5d28b7){const _0x42ffad=a161_0x52e667;switch(_0x5d28b7){case LogLevel['TRACE']:return this[_0x42ffad(0x1be)][_0x42ffad(0x1bf)]('['+_0x22891d+']');case LogLevel[_0x42ffad(0x1af)]:return this[_0x42ffad(0x1be)][_0x42ffad(0x1bd)]('['+_0x22891d+']');case LogLevel[_0x42ffad(0x1b6)]:return this[_0x42ffad(0x1be)][_0x42ffad(0x1b3)]('['+_0x22891d+']');case LogLevel['WARN']:return this['chalk'][_0x42ffad(0x1b5)]('['+_0x22891d+']');case LogLevel[_0x42ffad(0x1b9)]:return this[_0x42ffad(0x1be)]['red']('['+_0x22891d+']');default:return'['+_0x22891d+']';}}}function a161_0x3dee(){const _0x1e39a1=['2405110uZSAlE','ERROR','1950216KZOJzK','495667qfgugg','component','green','chalk','gray','Chalk','1960244IcNhFG','level','message','colors','1019756nnVgvA','format','DEBUG','7VYpuRL','3753924SYCMga','timestamp','cyan','20715920IrDiPV','yellow','INFO','default'];a161_0x3dee=function(){return _0x1e39a1;};return a161_0x3dee();}
1
+ const a163_0x21a605=a163_0x5a4d;(function(_0x4af35f,_0x414aa2){const _0x250e79=a163_0x5a4d,_0x55d4af=_0x4af35f();while(!![]){try{const _0x4fd05c=parseInt(_0x250e79(0xd7))/0x1*(parseInt(_0x250e79(0xd6))/0x2)+parseInt(_0x250e79(0xc0))/0x3*(parseInt(_0x250e79(0xcd))/0x4)+-parseInt(_0x250e79(0xd0))/0x5+-parseInt(_0x250e79(0xbe))/0x6+parseInt(_0x250e79(0xce))/0x7+-parseInt(_0x250e79(0xcb))/0x8+-parseInt(_0x250e79(0xd2))/0x9*(-parseInt(_0x250e79(0xba))/0xa);if(_0x4fd05c===_0x414aa2)break;else _0x55d4af['push'](_0x55d4af['shift']());}catch(_0x4e1251){_0x55d4af['push'](_0x55d4af['shift']());}}}(a163_0x5277,0x5bff2));function a163_0x5a4d(_0x4e9def,_0x396a6f){_0x4e9def=_0x4e9def-0xb9;const _0x52770b=a163_0x5277();let _0x5a4d27=_0x52770b[_0x4e9def];return _0x5a4d27;}import a163_0x3e9321 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a163_0x3e9321,ChalkClass=chalkModule[a163_0x21a605(0xc8)]||chalkModule['default']?.[a163_0x21a605(0xc8)];export class DefaultLogFormatter{[a163_0x21a605(0xc5)];[a163_0x21a605(0xc9)];constructor(_0x5706d0={}){const _0x37256e=a163_0x21a605;this[_0x37256e(0xc5)]=_0x5706d0[_0x37256e(0xc5)]??![],this['chalk']=_0x5706d0[_0x37256e(0xc5)]&&ChalkClass?new ChalkClass({'level':0x3}):a163_0x3e9321;}[a163_0x21a605(0xc7)](_0x3732b0){const _0x216561=a163_0x21a605,_0x3e7c69=formatTimestamp(_0x3732b0[_0x216561(0xbd)]),_0x2861ea=logLevelToString(_0x3732b0[_0x216561(0xca)]);if(!this['colors'])return _0x3e7c69+'\x20['+_0x2861ea+_0x216561(0xb9)+_0x3732b0[_0x216561(0xd4)]+']\x20'+_0x3732b0['message'];const _0x3dfa68=this[_0x216561(0xc9)][_0x216561(0xd1)](_0x3e7c69),_0x5e5be6=this[_0x216561(0xc4)](_0x2861ea,_0x3732b0[_0x216561(0xca)]),_0x1e74a0=this['chalk'][_0x216561(0xd3)]('['+_0x3732b0[_0x216561(0xd4)]+']');return _0x3dfa68+'\x20'+_0x5e5be6+'\x20'+_0x1e74a0+'\x20'+_0x3732b0[_0x216561(0xd5)];}[a163_0x21a605(0xc4)](_0x44d17e,_0xe22120){const _0x54b474=a163_0x21a605;switch(_0xe22120){case LogLevel[_0x54b474(0xc2)]:return this['chalk'][_0x54b474(0xbf)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xcc)]:return this[_0x54b474(0xc9)][_0x54b474(0xd8)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xcf)]:return this[_0x54b474(0xc9)][_0x54b474(0xc1)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xc6)]:return this[_0x54b474(0xc9)][_0x54b474(0xbc)]('['+_0x44d17e+']');case LogLevel[_0x54b474(0xc3)]:return this[_0x54b474(0xc9)][_0x54b474(0xbb)]('['+_0x44d17e+']');default:return'['+_0x44d17e+']';}}}function a163_0x5277(){const _0x49e5e2=['colorLevel','colors','WARN','format','Chalk','chalk','level','5666704JIXqDQ','DEBUG','1208kjtXlu','527296XyoIcR','INFO','2106565PueptO','dim','261lifbcT','blue','component','message','274HfxOne','608hylOrq','green',']\x20[','452130KJRbLJ','red','yellow','timestamp','1379988EUllWJ','gray','2649llAEly','cyan','TRACE','ERROR'];a163_0x5277=function(){return _0x49e5e2;};return a163_0x5277();}
@@ -1 +1 @@
1
- function a162_0x5297(_0xc58a13,_0x4045a6){_0xc58a13=_0xc58a13-0x103;var _0xcdcceb=a162_0xcdcc();var _0x5297a5=_0xcdcceb[_0xc58a13];return _0x5297a5;}function a162_0xcdcc(){var _0x59800c=['216iazclK','1532732cAFdlj','416069MGmkLu','505473PvRrwz','2322320RYWgvB','1309878SuJEvI','22KuqCLC','10PGScRw','4jzzvMA','1398570wXaDWU','174213XKnGSs'];a162_0xcdcc=function(){return _0x59800c;};return a162_0xcdcc();}(function(_0x72e3f5,_0x17a048){var _0x6aee44=a162_0x5297,_0x4cda56=_0x72e3f5();while(!![]){try{var _0x56e4f3=-parseInt(_0x6aee44(0x10b))/0x1+-parseInt(_0x6aee44(0x106))/0x2*(-parseInt(_0x6aee44(0x10c))/0x3)+parseInt(_0x6aee44(0x10a))/0x4+parseInt(_0x6aee44(0x105))/0x5*(-parseInt(_0x6aee44(0x103))/0x6)+-parseInt(_0x6aee44(0x10d))/0x7+-parseInt(_0x6aee44(0x109))/0x8*(-parseInt(_0x6aee44(0x108))/0x9)+-parseInt(_0x6aee44(0x107))/0xa*(-parseInt(_0x6aee44(0x104))/0xb);if(_0x56e4f3===_0x17a048)break;else _0x4cda56['push'](_0x4cda56['shift']());}catch(_0x2169a5){_0x4cda56['push'](_0x4cda56['shift']());}}}(a162_0xcdcc,0x5288f));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x1d6158,_0x454dad){var _0x552e83=a164_0xbbaa,_0x4c1173=_0x1d6158();while(!![]){try{var _0xede304=-parseInt(_0x552e83(0x8f))/0x1+parseInt(_0x552e83(0x8c))/0x2*(-parseInt(_0x552e83(0x90))/0x3)+parseInt(_0x552e83(0x8b))/0x4+parseInt(_0x552e83(0x8e))/0x5+-parseInt(_0x552e83(0x92))/0x6+-parseInt(_0x552e83(0x91))/0x7+parseInt(_0x552e83(0x8d))/0x8;if(_0xede304===_0x454dad)break;else _0x4c1173['push'](_0x4c1173['shift']());}catch(_0x1f6e16){_0x4c1173['push'](_0x4c1173['shift']());}}}(a164_0x1156,0xc26ed));function a164_0xbbaa(_0x20dc7b,_0x4d7288){_0x20dc7b=_0x20dc7b-0x8b;var _0x1156a3=a164_0x1156();var _0xbbaa3a=_0x1156a3[_0x20dc7b];return _0xbbaa3a;}export{DefaultLogFormatter}from'./default-formatter.js';function a164_0x1156(){var _0x39ca85=['944968tWiGIN','509559ErjKfq','5011832StbEsw','2565120DaQRVb','712772SHHWpq','2eDQivD','13421440jXvSWd','5994205ehSJGZ'];a164_0x1156=function(){return _0x39ca85;};return a164_0x1156();}
@@ -1 +1 @@
1
- function a163_0x5636(){const _0x5d2601=['colors','error','102508GPkuTX','handle','level','log','1789362AWvpRF','formatter','3afeYgl','2297197kehEdK','9519950AiopIm','6EvHjQT','useStderr','105BlWiHP','minLevel','271974nMHcXD','1515008eDwjPI','10pdJZzT','1439652xQUsdC'];a163_0x5636=function(){return _0x5d2601;};return a163_0x5636();}const a163_0x4c11ed=a163_0x29e5;(function(_0x3692b7,_0x385bf8){const _0x46fbd2=a163_0x29e5,_0x10ef01=_0x3692b7();while(!![]){try{const _0xa95f7d=-parseInt(_0x46fbd2(0x1de))/0x1+-parseInt(_0x46fbd2(0x1e1))/0x2*(-parseInt(_0x46fbd2(0x1d7))/0x3)+-parseInt(_0x46fbd2(0x1e4))/0x4*(parseInt(_0x46fbd2(0x1dc))/0x5)+parseInt(_0x46fbd2(0x1da))/0x6*(-parseInt(_0x46fbd2(0x1d8))/0x7)+parseInt(_0x46fbd2(0x1df))/0x8+parseInt(_0x46fbd2(0x1d5))/0x9*(-parseInt(_0x46fbd2(0x1e0))/0xa)+parseInt(_0x46fbd2(0x1d9))/0xb;if(_0xa95f7d===_0x385bf8)break;else _0x10ef01['push'](_0x10ef01['shift']());}catch(_0x3f85fc){_0x10ef01['push'](_0x10ef01['shift']());}}}(a163_0x5636,0x6ad12));import{LogLevel as a163_0x5a8d22}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a163_0x29e5(_0x548008,_0x209346){_0x548008=_0x548008-0x1d3;const _0x5636be=a163_0x5636();let _0x29e5f2=_0x5636be[_0x548008];return _0x29e5f2;}export class ConsoleHandler{[a163_0x4c11ed(0x1dd)];[a163_0x4c11ed(0x1db)];[a163_0x4c11ed(0x1d6)];constructor(_0x34b7f7={}){const _0x5ee890=a163_0x4c11ed;this['minLevel']=_0x34b7f7[_0x5ee890(0x1dd)]??a163_0x5a8d22['WARN'],this['useStderr']=_0x34b7f7[_0x5ee890(0x1db)]??!![],this[_0x5ee890(0x1d6)]=new DefaultLogFormatter({'colors':_0x34b7f7[_0x5ee890(0x1e2)]??!![]});}[a163_0x4c11ed(0x1e5)](_0x302d4f){const _0x4a7e25=a163_0x4c11ed;if(_0x302d4f[_0x4a7e25(0x1d3)]<this[_0x4a7e25(0x1dd)])return;const _0x3cde52=this[_0x4a7e25(0x1d6)]['format'](_0x302d4f);this[_0x4a7e25(0x1db)]&&_0x302d4f[_0x4a7e25(0x1d3)]>=a163_0x5a8d22['WARN']?console[_0x4a7e25(0x1e3)](_0x3cde52):console[_0x4a7e25(0x1d4)](_0x3cde52);}}
1
+ function a165_0x6e5d(_0x538765,_0x1e58dd){_0x538765=_0x538765-0x10d;const _0xad1e33=a165_0xad1e();let _0x6e5dcc=_0xad1e33[_0x538765];return _0x6e5dcc;}const a165_0x531c71=a165_0x6e5d;(function(_0x13df8c,_0x5bc918){const _0x59cf1a=a165_0x6e5d,_0x9de71=_0x13df8c();while(!![]){try{const _0x581d61=-parseInt(_0x59cf1a(0x115))/0x1*(parseInt(_0x59cf1a(0x117))/0x2)+-parseInt(_0x59cf1a(0x114))/0x3+parseInt(_0x59cf1a(0x10f))/0x4*(parseInt(_0x59cf1a(0x11f))/0x5)+-parseInt(_0x59cf1a(0x111))/0x6+parseInt(_0x59cf1a(0x112))/0x7+-parseInt(_0x59cf1a(0x11e))/0x8*(-parseInt(_0x59cf1a(0x11d))/0x9)+parseInt(_0x59cf1a(0x116))/0xa*(parseInt(_0x59cf1a(0x10e))/0xb);if(_0x581d61===_0x5bc918)break;else _0x9de71['push'](_0x9de71['shift']());}catch(_0x157e0b){_0x9de71['push'](_0x9de71['shift']());}}}(a165_0xad1e,0x72cd8));function a165_0xad1e(){const _0x9c2a06=['20aEQIoQ','minLevel','3003036cHNrEx','709478SCXebg','error','769488fscszH','106FGXbca','10smJweo','6328jVlNOb','useStderr','colors','WARN','level','handle','3832776ABcOIV','16KemwNX','260485PihObv','formatter','3839561AhxgIe'];a165_0xad1e=function(){return _0x9c2a06;};return a165_0xad1e();}import{LogLevel as a165_0x282936}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a165_0x531c71(0x110)];['useStderr'];[a165_0x531c71(0x10d)];constructor(_0x2c0aaa={}){const _0x253d4e=a165_0x531c71;this[_0x253d4e(0x110)]=_0x2c0aaa[_0x253d4e(0x110)]??a165_0x282936[_0x253d4e(0x11a)],this[_0x253d4e(0x118)]=_0x2c0aaa[_0x253d4e(0x118)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x2c0aaa[_0x253d4e(0x119)]??!![]});}[a165_0x531c71(0x11c)](_0x442e7c){const _0x38cd00=a165_0x531c71;if(_0x442e7c[_0x38cd00(0x11b)]<this[_0x38cd00(0x110)])return;const _0x5e11be=this['formatter']['format'](_0x442e7c);this[_0x38cd00(0x118)]&&_0x442e7c['level']>=a165_0x282936[_0x38cd00(0x11a)]?console[_0x38cd00(0x113)](_0x5e11be):console['log'](_0x5e11be);}}
@@ -1 +1 @@
1
- const a164_0x4940b7=a164_0x5850;(function(_0x580339,_0x570a10){const _0x3ed2bb=a164_0x5850,_0x5aa9e5=_0x580339();while(!![]){try{const _0x2aec0c=-parseInt(_0x3ed2bb(0x1a0))/0x1*(-parseInt(_0x3ed2bb(0x1ad))/0x2)+-parseInt(_0x3ed2bb(0x1b0))/0x3*(-parseInt(_0x3ed2bb(0x1b3))/0x4)+-parseInt(_0x3ed2bb(0x1bd))/0x5*(parseInt(_0x3ed2bb(0x1b7))/0x6)+parseInt(_0x3ed2bb(0x19f))/0x7+-parseInt(_0x3ed2bb(0x1a5))/0x8*(-parseInt(_0x3ed2bb(0x1b5))/0x9)+-parseInt(_0x3ed2bb(0x197))/0xa+-parseInt(_0x3ed2bb(0x19a))/0xb*(parseInt(_0x3ed2bb(0x1b2))/0xc);if(_0x2aec0c===_0x570a10)break;else _0x5aa9e5['push'](_0x5aa9e5['shift']());}catch(_0x2ba8a7){_0x5aa9e5['push'](_0x5aa9e5['shift']());}}}(a164_0x3a3d,0x9907e));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a164_0x5850(_0x5c7481,_0x156dd2){_0x5c7481=_0x5c7481-0x197;const _0x3a3d70=a164_0x3a3d();let _0x5850ca=_0x3a3d70[_0x5c7481];return _0x5850ca;}function a164_0x3a3d(){const _0x1f96c8=['2190535IRpgaA','handle','2207220hpaLuy','.log','filter','13021690wVENTo','rotateOldLogs','error','logStream','rotate','8373778aDTNtj','1RUWdVo','logBaseName','logs','logPath','.gz','168yvVsZE','toISOString','replace','test','includes','format','getLogPath','write','1464098Gooqbg','split','tdx.log','168249OyZAPQ','Warning:\x20Error\x20writing\x20to\x20','24wfkqYD','52AaKKAj','filePath','426789nmurYW','close','6CQGRmI','logFileName','logDir','mtime','Warning:\x20Failed\x20to\x20compress\x20','end'];a164_0x3a3d=function(){return _0x1f96c8;};return a164_0x3a3d();}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a164_0x4940b7(0x1a3)];[a164_0x4940b7(0x1b9)];[a164_0x4940b7(0x1b8)];[a164_0x4940b7(0x1a1)];[a164_0x4940b7(0x19d)]=null;['rotate'];constructor(_0x452b19={}){const _0x3d7fec=a164_0x4940b7;this['logPath']=_0x452b19[_0x3d7fec(0x1b4)]??join(getGlobalCacheDir(),_0x3d7fec(0x1a2),_0x3d7fec(0x1af)),this[_0x3d7fec(0x1b9)]=dirname(this[_0x3d7fec(0x1a3)]),this['logFileName']=basename(this[_0x3d7fec(0x1a3)]),this[_0x3d7fec(0x1a1)]=this[_0x3d7fec(0x1b8)][_0x3d7fec(0x1a7)](/\.log$/,''),this[_0x3d7fec(0x19e)]=_0x452b19[_0x3d7fec(0x19e)]??!![];}async['init'](){const _0x266260=a164_0x4940b7;try{await mkdir(this[_0x266260(0x1b9)],{'recursive':!![]}),this[_0x266260(0x19e)]&&await this['rotateOldLogs'](),this[_0x266260(0x19d)]=createWriteStream(this[_0x266260(0x1a3)],{'flags':'a'}),this[_0x266260(0x19d)]['on']('error',_0x1749a5=>{const _0x2c00ca=_0x266260;console['error'](_0x2c00ca(0x1b1)+this['logFileName']+':',_0x1749a5['message']);});}catch(_0x55971a){console[_0x266260(0x19c)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x55971a);}}[a164_0x4940b7(0x1be)](_0x24a954){const _0x429c50=a164_0x4940b7;if(!this[_0x429c50(0x19d)])return;const _0x1ad8d1=Logger[_0x429c50(0x1aa)](_0x24a954);this[_0x429c50(0x19d)][_0x429c50(0x1ac)](_0x1ad8d1+'\x0a');}async[a164_0x4940b7(0x1b6)](){return new Promise(_0x2a2d18=>{const _0x4cac14=a164_0x5850;this[_0x4cac14(0x19d)]?this[_0x4cac14(0x19d)][_0x4cac14(0x1bc)](()=>{const _0x5b4f08=_0x4cac14;this[_0x5b4f08(0x19d)]=null,_0x2a2d18();}):_0x2a2d18();});}[a164_0x4940b7(0x1ab)](){const _0x3b8e7c=a164_0x4940b7;return this[_0x3b8e7c(0x1a3)];}async[a164_0x4940b7(0x19b)](){const _0x239a33=a164_0x4940b7;try{const _0x550f64=await readdir(this[_0x239a33(0x1b9)]),_0x4473f6=new Date()[_0x239a33(0x1a6)]()[_0x239a33(0x1ae)]('T')[0x0];if(_0x550f64[_0x239a33(0x1a9)](this['logFileName'])){const _0x45dd9d=join(this[_0x239a33(0x1b9)],this[_0x239a33(0x1b8)]),_0x24f5c9=await stat(_0x45dd9d),_0x262bb2=new Date(_0x24f5c9[_0x239a33(0x1ba)])[_0x239a33(0x1a6)]()['split']('T')[0x0];if(_0x262bb2<_0x4473f6){const _0x803698=join(this[_0x239a33(0x1b9)],this[_0x239a33(0x1a1)]+'-'+_0x262bb2+_0x239a33(0x198));await rename(_0x45dd9d,_0x803698);}}const _0x2d82fc=await readdir(this['logDir']),_0x49a47f=this[_0x239a33(0x1a1)][_0x239a33(0x1a7)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x98dd10=new RegExp('^'+_0x49a47f+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x15b921=_0x2d82fc[_0x239a33(0x199)](_0x260628=>_0x98dd10[_0x239a33(0x1a8)](_0x260628));for(const _0x297a16 of _0x15b921){const _0x4a2102=join(this['logDir'],_0x297a16),_0x17a150=join(this[_0x239a33(0x1b9)],_0x297a16+_0x239a33(0x1a4));try{await pipeline(createReadStream(_0x4a2102),createGzip(),createWriteStream(_0x17a150)),await unlink(_0x4a2102);}catch(_0x57f3ff){console[_0x239a33(0x19c)](_0x239a33(0x1bb)+_0x297a16+':',_0x57f3ff);}}}catch{}}}
1
+ const a166_0x4b8168=a166_0xfb4f;(function(_0x78f6b8,_0x43504b){const _0x261845=a166_0xfb4f,_0x4a37d7=_0x78f6b8();while(!![]){try{const _0x5b17bc=parseInt(_0x261845(0x103))/0x1*(parseInt(_0x261845(0x10e))/0x2)+parseInt(_0x261845(0xeb))/0x3+-parseInt(_0x261845(0xfa))/0x4+-parseInt(_0x261845(0x10f))/0x5*(-parseInt(_0x261845(0xf4))/0x6)+-parseInt(_0x261845(0xf8))/0x7+parseInt(_0x261845(0xf6))/0x8*(parseInt(_0x261845(0xfe))/0x9)+-parseInt(_0x261845(0xed))/0xa;if(_0x5b17bc===_0x43504b)break;else _0x4a37d7['push'](_0x4a37d7['shift']());}catch(_0x23e958){_0x4a37d7['push'](_0x4a37d7['shift']());}}}(a166_0x5061,0x72139));function a166_0x5061(){const _0x520066=['214uTQont','1342905nIAeWB','924561YMrACI','write','4620800zSqupD','logStream','init','logPath','logDir','format','filter','18dWreBY','logs','2136zkRyTo','close','2072826RHTGEb','rotate','2462456uISZHi','handle','test','.log','7335uuKAeR','getLogPath','logBaseName','rotateOldLogs','mtime','4762bgbLJU','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','message','replace','toISOString','split','logFileName','error','filePath','end'];a166_0x5061=function(){return _0x520066;};return a166_0x5061();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';function a166_0xfb4f(_0x54b136,_0x9aa6dd){_0x54b136=_0x54b136-0xeb;const _0x5061ca=a166_0x5061();let _0xfb4fd6=_0x5061ca[_0x54b136];return _0xfb4fd6;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a166_0x4b8168(0xf0)];[a166_0x4b8168(0xf1)];[a166_0x4b8168(0x10a)];[a166_0x4b8168(0x100)];[a166_0x4b8168(0xee)]=null;[a166_0x4b8168(0xf9)];constructor(_0x43ed46={}){const _0x2555b3=a166_0x4b8168;this[_0x2555b3(0xf0)]=_0x43ed46[_0x2555b3(0x10c)]??join(getGlobalCacheDir(),_0x2555b3(0xf5),'tdx.log'),this[_0x2555b3(0xf1)]=dirname(this[_0x2555b3(0xf0)]),this['logFileName']=basename(this[_0x2555b3(0xf0)]),this[_0x2555b3(0x100)]=this['logFileName']['replace'](/\.log$/,''),this[_0x2555b3(0xf9)]=_0x43ed46['rotate']??!![];}async[a166_0x4b8168(0xef)](){const _0x9cd6f3=a166_0x4b8168;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x9cd6f3(0xf9)]&&await this[_0x9cd6f3(0x101)](),this[_0x9cd6f3(0xee)]=createWriteStream(this[_0x9cd6f3(0xf0)],{'flags':'a'}),this[_0x9cd6f3(0xee)]['on'](_0x9cd6f3(0x10b),_0x2e2358=>{const _0x34f9f2=_0x9cd6f3;console['error']('Warning:\x20Error\x20writing\x20to\x20'+this[_0x34f9f2(0x10a)]+':',_0x2e2358[_0x34f9f2(0x106)]);});}catch(_0x182238){console[_0x9cd6f3(0x10b)](_0x9cd6f3(0x105),_0x182238);}}[a166_0x4b8168(0xfb)](_0x42822d){const _0x17e245=a166_0x4b8168;if(!this['logStream'])return;const _0xb4e9aa=Logger[_0x17e245(0xf2)](_0x42822d);this[_0x17e245(0xee)][_0x17e245(0xec)](_0xb4e9aa+'\x0a');}async[a166_0x4b8168(0xf7)](){return new Promise(_0x39a993=>{const _0x569a45=a166_0xfb4f;this[_0x569a45(0xee)]?this['logStream'][_0x569a45(0x10d)](()=>{const _0x3c9233=_0x569a45;this[_0x3c9233(0xee)]=null,_0x39a993();}):_0x39a993();});}[a166_0x4b8168(0xff)](){return this['logPath'];}async[a166_0x4b8168(0x101)](){const _0x45b699=a166_0x4b8168;try{const _0x4dfcf6=await readdir(this['logDir']),_0x2793ad=new Date()[_0x45b699(0x108)]()[_0x45b699(0x109)]('T')[0x0];if(_0x4dfcf6['includes'](this[_0x45b699(0x10a)])){const _0x54fcc9=join(this[_0x45b699(0xf1)],this[_0x45b699(0x10a)]),_0x31b033=await stat(_0x54fcc9),_0x2bd869=new Date(_0x31b033[_0x45b699(0x102)])[_0x45b699(0x108)]()['split']('T')[0x0];if(_0x2bd869<_0x2793ad){const _0x3c91c1=join(this[_0x45b699(0xf1)],this[_0x45b699(0x100)]+'-'+_0x2bd869+_0x45b699(0xfd));await rename(_0x54fcc9,_0x3c91c1);}}const _0x1c5818=await readdir(this[_0x45b699(0xf1)]),_0x384d8f=this[_0x45b699(0x100)][_0x45b699(0x107)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x5ae9aa=new RegExp('^'+_0x384d8f+_0x45b699(0x104)),_0xce8cad=_0x1c5818[_0x45b699(0xf3)](_0xb1c0c0=>_0x5ae9aa[_0x45b699(0xfc)](_0xb1c0c0));for(const _0xb13342 of _0xce8cad){const _0x5594b6=join(this[_0x45b699(0xf1)],_0xb13342),_0x254f6a=join(this['logDir'],_0xb13342+'.gz');try{await pipeline(createReadStream(_0x5594b6),createGzip(),createWriteStream(_0x254f6a)),await unlink(_0x5594b6);}catch(_0x5c5162){console['error']('Warning:\x20Failed\x20to\x20compress\x20'+_0xb13342+':',_0x5c5162);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x11ac98,_0x14fa57){var _0xadf50=a165_0x20b5,_0x64073b=_0x11ac98();while(!![]){try{var _0x3eec65=-parseInt(_0xadf50(0x1d3))/0x1*(-parseInt(_0xadf50(0x1dc))/0x2)+parseInt(_0xadf50(0x1db))/0x3+parseInt(_0xadf50(0x1d5))/0x4*(parseInt(_0xadf50(0x1d8))/0x5)+parseInt(_0xadf50(0x1d6))/0x6+parseInt(_0xadf50(0x1d2))/0x7*(-parseInt(_0xadf50(0x1da))/0x8)+parseInt(_0xadf50(0x1d9))/0x9*(-parseInt(_0xadf50(0x1d7))/0xa)+parseInt(_0xadf50(0x1d4))/0xb;if(_0x3eec65===_0x14fa57)break;else _0x64073b['push'](_0x64073b['shift']());}catch(_0x4456e3){_0x64073b['push'](_0x64073b['shift']());}}}(a165_0x1c69,0xe20ff));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a165_0x20b5(_0x422ac4,_0x28e19c){_0x422ac4=_0x422ac4-0x1d2;var _0x1c6903=a165_0x1c69();var _0x20b5bd=_0x1c6903[_0x422ac4];return _0x20b5bd;}function a165_0x1c69(){var _0x23a49a=['5431602gCMGGM','2296KHPVWg','3092340ZeBwvL','1044640FvyDCK','11265QeyNWn','72OEKUyh','78272tJaDid','3397773umAqVe','36alGONB','1239cAPZtO','3247bZQYZC'];a165_0x1c69=function(){return _0x23a49a;};return a165_0x1c69();}
1
+ (function(_0x3a081c,_0x48b916){var _0x126ee5=a167_0x48b1,_0x5cdcf2=_0x3a081c();while(!![]){try{var _0x3225a9=parseInt(_0x126ee5(0x9b))/0x1+-parseInt(_0x126ee5(0xa0))/0x2+parseInt(_0x126ee5(0x9f))/0x3+-parseInt(_0x126ee5(0x98))/0x4*(parseInt(_0x126ee5(0x9c))/0x5)+parseInt(_0x126ee5(0x9d))/0x6*(-parseInt(_0x126ee5(0x9e))/0x7)+parseInt(_0x126ee5(0x99))/0x8*(parseInt(_0x126ee5(0x9a))/0x9)+parseInt(_0x126ee5(0x97))/0xa;if(_0x3225a9===_0x48b916)break;else _0x5cdcf2['push'](_0x5cdcf2['shift']());}catch(_0x11668f){_0x5cdcf2['push'](_0x5cdcf2['shift']());}}}(a167_0x1cf6,0x9e535));function a167_0x48b1(_0x4181a2,_0x16ce4f){_0x4181a2=_0x4181a2-0x97;var _0x1cf682=a167_0x1cf6();var _0x48b1d5=_0x1cf682[_0x4181a2];return _0x48b1d5;}export{FileHandler}from'./file-handler.js';function a167_0x1cf6(){var _0x4f3b88=['4809ebWOxK','1693770EoQtjd','2270236blgrwK','8161650OJkHIm','1516ToxjTz','8CknpJm','4103208JzqWNr','9181niaVJJ','540XgrzXN','186sgSodm'];a167_0x1cf6=function(){return _0x4f3b88;};return a167_0x1cf6();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a166_0x434f17=a166_0xb3eb;function a166_0x3b3a(){var _0x424e6e=['560dVrOqw','17815koSBbN','80tcixNb','449478hMTHBu','10miKzdT','2467036KvBDkV','3761460OwHtQF','handle','12TNuvws','14080891xRUYKR','1003524kytrku','669507rpPchc'];a166_0x3b3a=function(){return _0x424e6e;};return a166_0x3b3a();}function a166_0xb3eb(_0x567394,_0x304472){_0x567394=_0x567394-0x113;var _0x3b3a88=a166_0x3b3a();var _0xb3eb34=_0x3b3a88[_0x567394];return _0xb3eb34;}(function(_0x3d0d55,_0x581bb3){var _0x3e8626=a166_0xb3eb,_0xd8e15c=_0x3d0d55();while(!![]){try{var _0x17f210=parseInt(_0x3e8626(0x116))/0x1+parseInt(_0x3e8626(0x11c))/0x2+-parseInt(_0x3e8626(0x113))/0x3*(-parseInt(_0x3e8626(0x115))/0x4)+parseInt(_0x3e8626(0x119))/0x5*(-parseInt(_0x3e8626(0x11a))/0x6)+-parseInt(_0x3e8626(0x118))/0x7*(parseInt(_0x3e8626(0x117))/0x8)+-parseInt(_0x3e8626(0x11d))/0x9*(-parseInt(_0x3e8626(0x11b))/0xa)+-parseInt(_0x3e8626(0x114))/0xb;if(_0x17f210===_0x581bb3)break;else _0xd8e15c['push'](_0xd8e15c['shift']());}catch(_0x25ac0f){_0xd8e15c['push'](_0xd8e15c['shift']());}}}(a166_0x3b3a,0xa3002));export class NullHandler{[a166_0x434f17(0x11e)](_0x20191a){}}
1
+ var a168_0x3ae87b=a168_0x3570;(function(_0x3e5704,_0x1dbbdd){var _0x297209=a168_0x3570,_0x3f90ad=_0x3e5704();while(!![]){try{var _0x3d75f0=-parseInt(_0x297209(0x106))/0x1+-parseInt(_0x297209(0x100))/0x2+-parseInt(_0x297209(0x103))/0x3*(parseInt(_0x297209(0xfe))/0x4)+parseInt(_0x297209(0x105))/0x5+-parseInt(_0x297209(0x102))/0x6*(parseInt(_0x297209(0x104))/0x7)+parseInt(_0x297209(0x107))/0x8+parseInt(_0x297209(0x101))/0x9;if(_0x3d75f0===_0x1dbbdd)break;else _0x3f90ad['push'](_0x3f90ad['shift']());}catch(_0x39d436){_0x3f90ad['push'](_0x3f90ad['shift']());}}}(a168_0x41ab,0x964cb));function a168_0x3570(_0x516188,_0x15562d){_0x516188=_0x516188-0xfe;var _0x41abba=a168_0x41ab();var _0x3570fe=_0x41abba[_0x516188];return _0x3570fe;}function a168_0x41ab(){var _0x3cd1df=['482880zYddGC','548uHAwvm','handle','1142336VpmUwW','23008842XvIKCy','27834uYAxqK','19953MYahPz','35cYFRlM','768155JwkiUQ','649352kViSzs'];a168_0x41ab=function(){return _0x3cd1df;};return a168_0x41ab();}export class NullHandler{[a168_0x3ae87b(0xff)](_0xe857a8){}}
@@ -1 +1 @@
1
- (function(_0x6d9fc4,_0x5993eb){var _0x48793a=a167_0x2f1c,_0x209509=_0x6d9fc4();while(!![]){try{var _0x5074c5=-parseInt(_0x48793a(0x1a6))/0x1*(parseInt(_0x48793a(0x1a0))/0x2)+parseInt(_0x48793a(0x1a5))/0x3+-parseInt(_0x48793a(0x1a1))/0x4+parseInt(_0x48793a(0x1a2))/0x5+parseInt(_0x48793a(0x19f))/0x6+-parseInt(_0x48793a(0x1a4))/0x7*(-parseInt(_0x48793a(0x1a7))/0x8)+parseInt(_0x48793a(0x1a3))/0x9*(-parseInt(_0x48793a(0x1a8))/0xa);if(_0x5074c5===_0x5993eb)break;else _0x209509['push'](_0x209509['shift']());}catch(_0x259d34){_0x209509['push'](_0x209509['shift']());}}}(a167_0x55c1,0xbb89e));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a167_0x55c1(){var _0x4651b3=['22873630CtQJTR','5177352LrSzaO','2ekLBBi','947024ycTcgB','3847395WFkkvT','9BejZkO','42IbtKVa','2758728gJXLzA','155980lZspLI','1195080hakZzT'];a167_0x55c1=function(){return _0x4651b3;};return a167_0x55c1();}function a167_0x2f1c(_0x2af09e,_0x21cccf){_0x2af09e=_0x2af09e-0x19f;var _0x55c173=a167_0x55c1();var _0x2f1ccf=_0x55c173[_0x2af09e];return _0x2f1ccf;}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x9269ea,_0x4d4352){var _0x2b6e01=a169_0x54bd,_0xdb615=_0x9269ea();while(!![]){try{var _0x5600ba=parseInt(_0x2b6e01(0x140))/0x1+-parseInt(_0x2b6e01(0x143))/0x2+-parseInt(_0x2b6e01(0x13f))/0x3*(-parseInt(_0x2b6e01(0x141))/0x4)+-parseInt(_0x2b6e01(0x144))/0x5*(parseInt(_0x2b6e01(0x147))/0x6)+parseInt(_0x2b6e01(0x146))/0x7+-parseInt(_0x2b6e01(0x145))/0x8+parseInt(_0x2b6e01(0x142))/0x9;if(_0x5600ba===_0x4d4352)break;else _0xdb615['push'](_0xdb615['shift']());}catch(_0x2d6c0d){_0xdb615['push'](_0xdb615['shift']());}}}(a169_0x4603,0x3feb0));function a169_0x54bd(_0x5bc78e,_0x565b6e){_0x5bc78e=_0x5bc78e-0x13f;var _0x46039a=a169_0x4603();var _0x54bddd=_0x46039a[_0x5bc78e];return _0x54bddd;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a169_0x4603(){var _0x765487=['2884035oeJyOA','235842hsHwVY','93KLdzrD','433733igdCnv','46276wTdLaZ','468612RaNOtQ','95284rybtRn','55DfaPuK','4116944RDKzIY'];a169_0x4603=function(){return _0x765487;};return a169_0x4603();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- const a168_0x471945=a168_0x2bd4;function a168_0x2bd4(_0x14f88a,_0x5632cb){_0x14f88a=_0x14f88a-0x15f;const _0x3d5dc3=a168_0x3d5d();let _0x2bd402=_0x3d5dc3[_0x14f88a];return _0x2bd402;}(function(_0x139e6a,_0x489ec5){const _0x3d0a33=a168_0x2bd4,_0x3d4a1f=_0x139e6a();while(!![]){try{const _0x41f116=parseInt(_0x3d0a33(0x191))/0x1+-parseInt(_0x3d0a33(0x178))/0x2+-parseInt(_0x3d0a33(0x192))/0x3+-parseInt(_0x3d0a33(0x167))/0x4*(-parseInt(_0x3d0a33(0x195))/0x5)+-parseInt(_0x3d0a33(0x17a))/0x6*(-parseInt(_0x3d0a33(0x18b))/0x7)+-parseInt(_0x3d0a33(0x196))/0x8+parseInt(_0x3d0a33(0x168))/0x9*(parseInt(_0x3d0a33(0x172))/0xa);if(_0x41f116===_0x489ec5)break;else _0x3d4a1f['push'](_0x3d4a1f['shift']());}catch(_0xb6c3a4){_0x3d4a1f['push'](_0x3d4a1f['shift']());}}}(a168_0x3d5d,0xc0e3c));import{LogLevel as a168_0x17ccf5,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a168_0x17ccf5[a168_0x471945(0x179)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a168_0x3d5d(){const _0x27eb0c=['init','clearHandlers','log','warn','set','shutdown','TRACE','has','slice','entries','loggers','name','14hpDhIT','push','clear','info','component','toISOString','533084RzHJSz','1595970ZgsaZw','shouldLog','split','4637125mEiUaU','6414400IYodUe','levelOverrides','timestamp','ERROR','stack','handlers','formatter','dispatch','defaultLevel','join','4DxfqNT','45nDSoyM','close','getEffectiveLevel','message','handle','string','trace','getFormatter','error','isInitialized','128640PeTZzm','initialized','pendingRecords','get','map','length','929358mNrBjR','INFO','3191148qfxyAK','format',']\x20[','reset','WARN'];a168_0x3d5d=function(){return _0x27eb0c;};return a168_0x3d5d();}function safeStringify(_0x61d916){const _0x4898ee=a168_0x471945;if(typeof _0x61d916===_0x4898ee(0x16d))return _0x61d916;if(_0x61d916 instanceof Error)return _0x61d916[_0x4898ee(0x161)]||_0x61d916[_0x4898ee(0x18a)]+':\x20'+_0x61d916[_0x4898ee(0x16b)];try{return JSON['stringify'](_0x61d916,(_0x7cea43,_0x4aed85)=>{const _0x2adb7b=_0x4898ee;if(_0x4aed85 instanceof Error)return{'name':_0x4aed85[_0x2adb7b(0x18a)],'message':_0x4aed85[_0x2adb7b(0x16b)],'stack':_0x4aed85[_0x2adb7b(0x161)],'cause':_0x4aed85['cause']};return _0x4aed85;});}catch{return String(_0x61d916);}}export class Logger{[a168_0x471945(0x18f)];constructor(_0x3575d0){const _0x543750=a168_0x471945;this[_0x543750(0x18f)]=_0x3575d0;}static['of'](_0x2bc58f){const _0x5270d8=a168_0x471945,_0x970924=typeof _0x2bc58f===_0x5270d8(0x16d)?_0x2bc58f:_0x2bc58f[_0x5270d8(0x18a)];let _0x10dad3=state[_0x5270d8(0x189)][_0x5270d8(0x175)](_0x970924);return!_0x10dad3&&(_0x10dad3=new Logger(_0x970924),state[_0x5270d8(0x189)][_0x5270d8(0x183)](_0x970924,_0x10dad3)),_0x10dad3;}static async['init'](_0x317f32={}){const _0x4ef081=a168_0x471945;state[_0x4ef081(0x165)]=_0x317f32[_0x4ef081(0x165)]??a168_0x17ccf5[_0x4ef081(0x179)],state[_0x4ef081(0x162)]=_0x317f32['handlers']??[],state[_0x4ef081(0x163)]=_0x317f32[_0x4ef081(0x163)]??null,state[_0x4ef081(0x197)][_0x4ef081(0x18d)]();if(_0x317f32[_0x4ef081(0x197)])for(const [_0x68d4a2,_0x2b96ad]of Object[_0x4ef081(0x188)](_0x317f32[_0x4ef081(0x197)])){state[_0x4ef081(0x197)]['set'](_0x68d4a2,_0x2b96ad);}for(const _0x2e7d9c of state[_0x4ef081(0x162)]){_0x2e7d9c[_0x4ef081(0x17f)]&&await _0x2e7d9c[_0x4ef081(0x17f)]();}state[_0x4ef081(0x173)]=!![];for(const _0x1aa8e4 of state[_0x4ef081(0x174)]){Logger[_0x4ef081(0x164)](_0x1aa8e4);}state[_0x4ef081(0x174)]=[];}static['setLogLevel'](_0x3595cb,_0x1e515e){const _0x203851=a168_0x471945;state[_0x203851(0x197)]['set'](_0x3595cb,_0x1e515e);}static['setDefaultLevel'](_0x2edace){state['defaultLevel']=_0x2edace;}static['addHandler'](_0x151b01){const _0x5a5084=a168_0x471945;state[_0x5a5084(0x162)][_0x5a5084(0x18c)](_0x151b01),state['initialized']&&_0x151b01[_0x5a5084(0x17f)]&&_0x151b01[_0x5a5084(0x17f)]();}static[a168_0x471945(0x180)](){state['handlers']=[];}static async[a168_0x471945(0x184)](){const _0xa7d6d9=a168_0x471945;for(const _0x5df0e1 of state[_0xa7d6d9(0x162)]){_0x5df0e1['close']&&await _0x5df0e1[_0xa7d6d9(0x169)]();}state[_0xa7d6d9(0x162)]=[],state[_0xa7d6d9(0x173)]=![],state[_0xa7d6d9(0x189)][_0xa7d6d9(0x18d)](),state[_0xa7d6d9(0x174)]=[];}static[a168_0x471945(0x17d)](){const _0x361411=a168_0x471945;state['initialized']=![],state[_0x361411(0x165)]=a168_0x17ccf5[_0x361411(0x179)],state[_0x361411(0x197)][_0x361411(0x18d)](),state['handlers']=[],state[_0x361411(0x163)]=null,state[_0x361411(0x189)][_0x361411(0x18d)](),state[_0x361411(0x174)]=[];}static[a168_0x471945(0x171)](){return state['initialized'];}static[a168_0x471945(0x16a)](_0x4b0467){const _0x4f1083=a168_0x471945;if(state['levelOverrides'][_0x4f1083(0x186)](_0x4b0467))return state[_0x4f1083(0x197)][_0x4f1083(0x175)](_0x4b0467);const _0x12187c=_0x4b0467[_0x4f1083(0x194)]('.');for(let _0x46bc11=_0x12187c[_0x4f1083(0x177)]-0x1;_0x46bc11>0x0;_0x46bc11--){const _0x3573cf=_0x12187c[_0x4f1083(0x187)](0x0,_0x46bc11)['join']('.');if(state[_0x4f1083(0x197)]['has'](_0x3573cf))return state[_0x4f1083(0x197)][_0x4f1083(0x175)](_0x3573cf);}return state[_0x4f1083(0x165)];}[a168_0x471945(0x193)](_0x472307){const _0x75b8b1=a168_0x471945,_0x3f91a9=Logger[_0x75b8b1(0x16a)](this[_0x75b8b1(0x18f)]);return _0x472307>=_0x3f91a9;}static[a168_0x471945(0x164)](_0x2844c9){const _0x4077db=a168_0x471945;for(const _0x56a728 of state['handlers']){_0x56a728[_0x4077db(0x16c)](_0x2844c9);}}['log'](_0x3b0b2c,_0x20491b){const _0x42a843=a168_0x471945;if(!this[_0x42a843(0x193)](_0x3b0b2c))return;const _0x32d48=_0x20491b[_0x42a843(0x176)](_0x231675=>typeof _0x231675==='function'?_0x231675():_0x231675),_0x4188e7=_0x32d48[_0x42a843(0x176)](safeStringify)[_0x42a843(0x166)]('\x20'),_0x400737={'timestamp':new Date(),'level':_0x3b0b2c,'component':this[_0x42a843(0x18f)],'message':_0x4188e7};if(!state['initialized']){state[_0x42a843(0x174)]['length']<MAX_PENDING_RECORDS&&state[_0x42a843(0x174)]['push'](_0x400737);return;}Logger['dispatch'](_0x400737);}[a168_0x471945(0x16e)](..._0x2c2c3f){const _0x7a2735=a168_0x471945;this[_0x7a2735(0x181)](a168_0x17ccf5[_0x7a2735(0x185)],_0x2c2c3f);}['debug'](..._0x1b3855){this['log'](a168_0x17ccf5['DEBUG'],_0x1b3855);}[a168_0x471945(0x18e)](..._0x58434a){const _0x32dba4=a168_0x471945;this[_0x32dba4(0x181)](a168_0x17ccf5[_0x32dba4(0x179)],_0x58434a);}[a168_0x471945(0x182)](..._0x4a7692){const _0x7d4e7b=a168_0x471945;this[_0x7d4e7b(0x181)](a168_0x17ccf5[_0x7d4e7b(0x17e)],_0x4a7692);}[a168_0x471945(0x170)](..._0x28b423){const _0x38c4bf=a168_0x471945;this[_0x38c4bf(0x181)](a168_0x17ccf5[_0x38c4bf(0x160)],_0x28b423);}static[a168_0x471945(0x16f)](){return state['formatter'];}static[a168_0x471945(0x17b)](_0xb84152){const _0x55c654=a168_0x471945;if(state['formatter'])return state[_0x55c654(0x163)]['format'](_0xb84152);return _0xb84152[_0x55c654(0x15f)][_0x55c654(0x190)]()+'\x20['+logLevelToString(_0xb84152['level'])+_0x55c654(0x17c)+_0xb84152['component']+']\x20'+_0xb84152['message'];}}
1
+ const a170_0x18a8a1=a170_0xc2fe;function a170_0x4134(){const _0x24b1d2=['shutdown','debug','close','loggers','error','initialized','level','isInitialized','ERROR','stringify','name','map','pendingRecords','getFormatter','slice','toISOString','trace','message','log','init','length','INFO','defaultLevel','warn','10615YIovmZ','shouldLog','3451lfvjHK','6NOKTlS','WARN','get','clearHandlers','getEffectiveLevel','push','reset','component','formatter','split','handlers','13150044rsiqwh','join','15650BjtuHg','addHandler','setDefaultLevel','format','has','levelOverrides','3099atJZRd','2457648yKFTHe','set','function','dispatch','DEBUG','clear','1348WZVCBy','handle','634835LTJiuA','cause','6085265STlSxY','20512kDsNgy'];a170_0x4134=function(){return _0x24b1d2;};return a170_0x4134();}(function(_0x25ac55,_0x3a57f2){const _0x55de08=a170_0xc2fe,_0x304859=_0x25ac55();while(!![]){try{const _0x3046c7=-parseInt(_0x55de08(0xd1))/0x1+parseInt(_0x55de08(0xc9))/0x2+parseInt(_0x55de08(0xc8))/0x3*(parseInt(_0x55de08(0xcf))/0x4)+-parseInt(_0x55de08(0x98))/0x5*(-parseInt(_0x55de08(0xb5))/0x6)+-parseInt(_0x55de08(0xb4))/0x7*(parseInt(_0x55de08(0x99))/0x8)+-parseInt(_0x55de08(0xc0))/0x9+-parseInt(_0x55de08(0xc2))/0xa*(-parseInt(_0x55de08(0xb2))/0xb);if(_0x3046c7===_0x3a57f2)break;else _0x304859['push'](_0x304859['shift']());}catch(_0x12c4d8){_0x304859['push'](_0x304859['shift']());}}}(a170_0x4134,0xe685c));import{LogLevel as a170_0x2b2609,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a170_0x2b2609[a170_0x18a8a1(0xaf)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x1f430e){const _0xb6cd6a=a170_0x18a8a1;if(typeof _0x1f430e==='string')return _0x1f430e;if(_0x1f430e instanceof Error)return _0x1f430e['stack']||_0x1f430e[_0xb6cd6a(0xa4)]+':\x20'+_0x1f430e[_0xb6cd6a(0xab)];try{return JSON[_0xb6cd6a(0xa3)](_0x1f430e,(_0xc6d4d3,_0x52e131)=>{const _0x141f1f=_0xb6cd6a;if(_0x52e131 instanceof Error)return{'name':_0x52e131[_0x141f1f(0xa4)],'message':_0x52e131[_0x141f1f(0xab)],'stack':_0x52e131['stack'],'cause':_0x52e131[_0x141f1f(0xd2)]};return _0x52e131;});}catch{return String(_0x1f430e);}}function a170_0xc2fe(_0x4939f1,_0x1e3ee1){_0x4939f1=_0x4939f1-0x98;const _0x4134f8=a170_0x4134();let _0xc2fee=_0x4134f8[_0x4939f1];return _0xc2fee;}export class Logger{[a170_0x18a8a1(0xbc)];constructor(_0x23edbc){const _0x2e208f=a170_0x18a8a1;this[_0x2e208f(0xbc)]=_0x23edbc;}static['of'](_0x44a6dd){const _0x23cbda=a170_0x18a8a1,_0x421cb9=typeof _0x44a6dd==='string'?_0x44a6dd:_0x44a6dd[_0x23cbda(0xa4)];let _0x1ca102=state[_0x23cbda(0x9d)][_0x23cbda(0xb7)](_0x421cb9);return!_0x1ca102&&(_0x1ca102=new Logger(_0x421cb9),state['loggers'][_0x23cbda(0xca)](_0x421cb9,_0x1ca102)),_0x1ca102;}static async[a170_0x18a8a1(0xad)](_0x337878={}){const _0x1ba793=a170_0x18a8a1;state[_0x1ba793(0xb0)]=_0x337878['defaultLevel']??a170_0x2b2609['INFO'],state[_0x1ba793(0xbf)]=_0x337878[_0x1ba793(0xbf)]??[],state[_0x1ba793(0xbd)]=_0x337878[_0x1ba793(0xbd)]??null,state[_0x1ba793(0xc7)][_0x1ba793(0xce)]();if(_0x337878[_0x1ba793(0xc7)])for(const [_0x1b9110,_0xacc6c5]of Object['entries'](_0x337878[_0x1ba793(0xc7)])){state[_0x1ba793(0xc7)][_0x1ba793(0xca)](_0x1b9110,_0xacc6c5);}for(const _0x46a349 of state[_0x1ba793(0xbf)]){_0x46a349[_0x1ba793(0xad)]&&await _0x46a349[_0x1ba793(0xad)]();}state['initialized']=!![];for(const _0x5e7f4a of state[_0x1ba793(0xa6)]){Logger['dispatch'](_0x5e7f4a);}state['pendingRecords']=[];}static['setLogLevel'](_0x194ec3,_0xea34f2){const _0x3a6281=a170_0x18a8a1;state[_0x3a6281(0xc7)][_0x3a6281(0xca)](_0x194ec3,_0xea34f2);}static[a170_0x18a8a1(0xc4)](_0x4d98c5){state['defaultLevel']=_0x4d98c5;}static[a170_0x18a8a1(0xc3)](_0x2451d8){const _0x5ec6d1=a170_0x18a8a1;state[_0x5ec6d1(0xbf)][_0x5ec6d1(0xba)](_0x2451d8),state['initialized']&&_0x2451d8[_0x5ec6d1(0xad)]&&_0x2451d8[_0x5ec6d1(0xad)]();}static[a170_0x18a8a1(0xb8)](){const _0x5709ba=a170_0x18a8a1;state[_0x5709ba(0xbf)]=[];}static async[a170_0x18a8a1(0x9a)](){const _0x5caaef=a170_0x18a8a1;for(const _0x22aeec of state[_0x5caaef(0xbf)]){_0x22aeec['close']&&await _0x22aeec[_0x5caaef(0x9c)]();}state[_0x5caaef(0xbf)]=[],state['initialized']=![],state[_0x5caaef(0x9d)][_0x5caaef(0xce)](),state[_0x5caaef(0xa6)]=[];}static[a170_0x18a8a1(0xbb)](){const _0x5d355f=a170_0x18a8a1;state[_0x5d355f(0x9f)]=![],state['defaultLevel']=a170_0x2b2609[_0x5d355f(0xaf)],state[_0x5d355f(0xc7)][_0x5d355f(0xce)](),state[_0x5d355f(0xbf)]=[],state[_0x5d355f(0xbd)]=null,state[_0x5d355f(0x9d)][_0x5d355f(0xce)](),state[_0x5d355f(0xa6)]=[];}static[a170_0x18a8a1(0xa1)](){return state['initialized'];}static[a170_0x18a8a1(0xb9)](_0x42a0e5){const _0x27a60b=a170_0x18a8a1;if(state[_0x27a60b(0xc7)][_0x27a60b(0xc6)](_0x42a0e5))return state[_0x27a60b(0xc7)][_0x27a60b(0xb7)](_0x42a0e5);const _0xee68b8=_0x42a0e5[_0x27a60b(0xbe)]('.');for(let _0x2ef921=_0xee68b8['length']-0x1;_0x2ef921>0x0;_0x2ef921--){const _0xc2e458=_0xee68b8[_0x27a60b(0xa8)](0x0,_0x2ef921)['join']('.');if(state[_0x27a60b(0xc7)][_0x27a60b(0xc6)](_0xc2e458))return state[_0x27a60b(0xc7)][_0x27a60b(0xb7)](_0xc2e458);}return state[_0x27a60b(0xb0)];}[a170_0x18a8a1(0xb3)](_0x30e9d5){const _0x3e065f=Logger['getEffectiveLevel'](this['component']);return _0x30e9d5>=_0x3e065f;}static[a170_0x18a8a1(0xcc)](_0x30a786){const _0x59e292=a170_0x18a8a1;for(const _0x5dff79 of state['handlers']){_0x5dff79[_0x59e292(0xd0)](_0x30a786);}}[a170_0x18a8a1(0xac)](_0x25fe50,_0xe17e92){const _0x398c10=a170_0x18a8a1;if(!this[_0x398c10(0xb3)](_0x25fe50))return;const _0xb43e8a=_0xe17e92[_0x398c10(0xa5)](_0x44cf1c=>typeof _0x44cf1c===_0x398c10(0xcb)?_0x44cf1c():_0x44cf1c),_0x206743=_0xb43e8a[_0x398c10(0xa5)](safeStringify)[_0x398c10(0xc1)]('\x20'),_0x332548={'timestamp':new Date(),'level':_0x25fe50,'component':this[_0x398c10(0xbc)],'message':_0x206743};if(!state[_0x398c10(0x9f)]){state['pendingRecords'][_0x398c10(0xae)]<MAX_PENDING_RECORDS&&state[_0x398c10(0xa6)]['push'](_0x332548);return;}Logger[_0x398c10(0xcc)](_0x332548);}[a170_0x18a8a1(0xaa)](..._0x38bce1){const _0x5630ff=a170_0x18a8a1;this[_0x5630ff(0xac)](a170_0x2b2609['TRACE'],_0x38bce1);}[a170_0x18a8a1(0x9b)](..._0x32734d){const _0x3beb87=a170_0x18a8a1;this[_0x3beb87(0xac)](a170_0x2b2609[_0x3beb87(0xcd)],_0x32734d);}['info'](..._0x34ba45){const _0x37c465=a170_0x18a8a1;this['log'](a170_0x2b2609[_0x37c465(0xaf)],_0x34ba45);}[a170_0x18a8a1(0xb1)](..._0x520c32){const _0x12d9d0=a170_0x18a8a1;this[_0x12d9d0(0xac)](a170_0x2b2609[_0x12d9d0(0xb6)],_0x520c32);}[a170_0x18a8a1(0x9e)](..._0x330b14){const _0x2567b2=a170_0x18a8a1;this[_0x2567b2(0xac)](a170_0x2b2609[_0x2567b2(0xa2)],_0x330b14);}static[a170_0x18a8a1(0xa7)](){const _0x4c7baa=a170_0x18a8a1;return state[_0x4c7baa(0xbd)];}static[a170_0x18a8a1(0xc5)](_0x23a612){const _0x3c5929=a170_0x18a8a1;if(state[_0x3c5929(0xbd)])return state[_0x3c5929(0xbd)][_0x3c5929(0xc5)](_0x23a612);return _0x23a612['timestamp'][_0x3c5929(0xa9)]()+'\x20['+logLevelToString(_0x23a612[_0x3c5929(0xa0)])+']\x20['+_0x23a612[_0x3c5929(0xbc)]+']\x20'+_0x23a612[_0x3c5929(0xab)];}}
@@ -1 +1 @@
1
- function a169_0x4ed3(_0x125e83,_0x226854){_0x125e83=_0x125e83-0xd6;const _0xa4dbfa=a169_0xa4db();let _0x4ed3fb=_0xa4dbfa[_0x125e83];return _0x4ed3fb;}(function(_0x8a9b77,_0x14e272){const _0x48a930=a169_0x4ed3,_0x4ff339=_0x8a9b77();while(!![]){try{const _0x38069d=-parseInt(_0x48a930(0xe8))/0x1*(-parseInt(_0x48a930(0xde))/0x2)+-parseInt(_0x48a930(0xee))/0x3+-parseInt(_0x48a930(0xed))/0x4*(-parseInt(_0x48a930(0xd6))/0x5)+parseInt(_0x48a930(0xe2))/0x6*(-parseInt(_0x48a930(0xdf))/0x7)+-parseInt(_0x48a930(0xd8))/0x8+parseInt(_0x48a930(0xe4))/0x9*(-parseInt(_0x48a930(0xf0))/0xa)+parseInt(_0x48a930(0xe0))/0xb;if(_0x38069d===_0x14e272)break;else _0x4ff339['push'](_0x4ff339['shift']());}catch(_0x154a82){_0x4ff339['push'](_0x4ff339['shift']());}}}(a169_0xa4db,0x2b15b));export var LogLevel;(function(_0x18b7cc){const _0x379ff3=a169_0x4ed3;_0x18b7cc[_0x18b7cc['TRACE']=-0x2]='TRACE',_0x18b7cc[_0x18b7cc['DEBUG']=-0x1]='DEBUG',_0x18b7cc[_0x18b7cc[_0x379ff3(0xf4)]=0x0]=_0x379ff3(0xf4),_0x18b7cc[_0x18b7cc['WARN']=0x1]=_0x379ff3(0xd7),_0x18b7cc[_0x18b7cc[_0x379ff3(0xdb)]=0x2]=_0x379ff3(0xdb);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x5a9997){const _0x5237ae=a169_0x4ed3;switch(_0x5a9997[_0x5237ae(0xf5)]()){case _0x5237ae(0xd9):return LogLevel[_0x5237ae(0xd9)];case'DEBUG':return LogLevel[_0x5237ae(0xe7)];case _0x5237ae(0xf4):return LogLevel[_0x5237ae(0xf4)];case _0x5237ae(0xd7):case _0x5237ae(0xeb):return LogLevel['WARN'];case _0x5237ae(0xdb):return LogLevel[_0x5237ae(0xdb)];default:return LogLevel[_0x5237ae(0xf4)];}}export function logLevelToString(_0x81b1ac){const _0x4d68ad=a169_0x4ed3;switch(_0x81b1ac){case LogLevel['TRACE']:return'trace';case LogLevel[_0x4d68ad(0xe7)]:return _0x4d68ad(0xe5);case LogLevel[_0x4d68ad(0xf4)]:return'info';case LogLevel[_0x4d68ad(0xd7)]:return _0x4d68ad(0xef);case LogLevel[_0x4d68ad(0xdb)]:return'error';default:return _0x4d68ad(0xe9);}}function a169_0xa4db(){const _0x53c2b5=['11263MEJTAO','6607854JSbmHe','abs','738JBxOoT','getHours','1309419mLxJBi','debug','getMonth','DEBUG','49uEmoSU','info','getMinutes','WARNING','toString','4dNNGRY','897204qXpgVC','warn','10pcmYmt','getMilliseconds','getFullYear','padStart','INFO','toUpperCase','966835vzcfie','WARN','1106872AzxxGK','TRACE','getDate','ERROR','getSeconds','floor','6662VwQufn'];a169_0xa4db=function(){return _0x53c2b5;};return a169_0xa4db();}export function formatTimestamp(_0x4f505f){const _0x36873a=a169_0x4ed3,_0x58e380=_0x4f505f[_0x36873a(0xf2)](),_0x267627=(_0x4f505f[_0x36873a(0xe6)]()+0x1)[_0x36873a(0xec)]()[_0x36873a(0xf3)](0x2,'0'),_0x3ecab6=_0x4f505f[_0x36873a(0xda)]()[_0x36873a(0xec)]()['padStart'](0x2,'0'),_0x57f851=_0x4f505f[_0x36873a(0xe3)]()['toString']()[_0x36873a(0xf3)](0x2,'0'),_0x54b717=_0x4f505f[_0x36873a(0xea)]()[_0x36873a(0xec)]()[_0x36873a(0xf3)](0x2,'0'),_0x35e0ae=_0x4f505f[_0x36873a(0xdc)]()[_0x36873a(0xec)]()[_0x36873a(0xf3)](0x2,'0'),_0x164893=_0x4f505f[_0x36873a(0xf1)]()[_0x36873a(0xec)]()['padStart'](0x3,'0'),_0x5ab1d1=-_0x4f505f['getTimezoneOffset'](),_0x4bc011=Math[_0x36873a(0xdd)](Math[_0x36873a(0xe1)](_0x5ab1d1)/0x3c),_0x4f2ab8=Math[_0x36873a(0xe1)](_0x5ab1d1)%0x3c,_0x1b833d=_0x5ab1d1>=0x0?'+':'-',_0x18b17b=''+_0x1b833d+_0x4bc011[_0x36873a(0xec)]()[_0x36873a(0xf3)](0x2,'0')+_0x4f2ab8[_0x36873a(0xec)]()[_0x36873a(0xf3)](0x2,'0');return _0x58e380+'-'+_0x267627+'-'+_0x3ecab6+'\x20'+_0x57f851+':'+_0x54b717+':'+_0x35e0ae+'.'+_0x164893+_0x18b17b;}
1
+ (function(_0xba251a,_0x1d7b01){const _0x288670=a171_0x2c5f,_0x3cf0e1=_0xba251a();while(!![]){try{const _0x5bbeee=parseInt(_0x288670(0x147))/0x1+-parseInt(_0x288670(0x13f))/0x2+parseInt(_0x288670(0x14b))/0x3*(-parseInt(_0x288670(0x150))/0x4)+parseInt(_0x288670(0x135))/0x5*(parseInt(_0x288670(0x152))/0x6)+parseInt(_0x288670(0x143))/0x7+parseInt(_0x288670(0x14d))/0x8*(parseInt(_0x288670(0x136))/0x9)+-parseInt(_0x288670(0x142))/0xa*(parseInt(_0x288670(0x139))/0xb);if(_0x5bbeee===_0x1d7b01)break;else _0x3cf0e1['push'](_0x3cf0e1['shift']());}catch(_0x70dbb5){_0x3cf0e1['push'](_0x3cf0e1['shift']());}}}(a171_0x2df9,0xcfb7b));function a171_0x2c5f(_0x4409c0,_0x3c28aa){_0x4409c0=_0x4409c0-0x135;const _0x2df91d=a171_0x2df9();let _0x2c5fdb=_0x2df91d[_0x4409c0];return _0x2c5fdb;}function a171_0x2df9(){const _0x242574=['618741zWUSsx','DEBUG','getMinutes','33930391YNAkpz','toString','ERROR','WARNING','TRACE','padStart','452830DwoQnO','abs','getMilliseconds','10BEbhxw','10460765AAtWFE','WARN','toUpperCase','getMonth','994320TTJIWU','getDate','trace','INFO','277086wydQTQ','info','184dxdtYp','getFullYear','getHours','16NBOdOc','error','6tuyoHP','2306565ArQbMF'];a171_0x2df9=function(){return _0x242574;};return a171_0x2df9();}export var LogLevel;(function(_0x48c372){const _0x7c3e7d=a171_0x2c5f;_0x48c372[_0x48c372[_0x7c3e7d(0x13d)]=-0x2]=_0x7c3e7d(0x13d),_0x48c372[_0x48c372[_0x7c3e7d(0x137)]=-0x1]=_0x7c3e7d(0x137),_0x48c372[_0x48c372[_0x7c3e7d(0x14a)]=0x0]=_0x7c3e7d(0x14a),_0x48c372[_0x48c372[_0x7c3e7d(0x144)]=0x1]='WARN',_0x48c372[_0x48c372['ERROR']=0x2]=_0x7c3e7d(0x13b);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x4ef747){const _0x8eecdf=a171_0x2c5f;switch(_0x4ef747[_0x8eecdf(0x145)]()){case _0x8eecdf(0x13d):return LogLevel['TRACE'];case _0x8eecdf(0x137):return LogLevel[_0x8eecdf(0x137)];case _0x8eecdf(0x14a):return LogLevel[_0x8eecdf(0x14a)];case _0x8eecdf(0x144):case _0x8eecdf(0x13c):return LogLevel[_0x8eecdf(0x144)];case _0x8eecdf(0x13b):return LogLevel[_0x8eecdf(0x13b)];default:return LogLevel[_0x8eecdf(0x14a)];}}export function logLevelToString(_0x300c0e){const _0x52a0dc=a171_0x2c5f;switch(_0x300c0e){case LogLevel[_0x52a0dc(0x13d)]:return _0x52a0dc(0x149);case LogLevel[_0x52a0dc(0x137)]:return'debug';case LogLevel[_0x52a0dc(0x14a)]:return'info';case LogLevel[_0x52a0dc(0x144)]:return'warn';case LogLevel[_0x52a0dc(0x13b)]:return _0x52a0dc(0x151);default:return _0x52a0dc(0x14c);}}export function formatTimestamp(_0x3cfd38){const _0x40610f=a171_0x2c5f,_0x24d40f=_0x3cfd38[_0x40610f(0x14e)](),_0x52ffc0=(_0x3cfd38[_0x40610f(0x146)]()+0x1)[_0x40610f(0x13a)]()[_0x40610f(0x13e)](0x2,'0'),_0xd535e3=_0x3cfd38[_0x40610f(0x148)]()[_0x40610f(0x13a)]()[_0x40610f(0x13e)](0x2,'0'),_0x39b66c=_0x3cfd38[_0x40610f(0x14f)]()[_0x40610f(0x13a)]()[_0x40610f(0x13e)](0x2,'0'),_0x2a6adf=_0x3cfd38[_0x40610f(0x138)]()[_0x40610f(0x13a)]()[_0x40610f(0x13e)](0x2,'0'),_0x444ecd=_0x3cfd38['getSeconds']()[_0x40610f(0x13a)]()['padStart'](0x2,'0'),_0x5a1d54=_0x3cfd38[_0x40610f(0x141)]()[_0x40610f(0x13a)]()['padStart'](0x3,'0'),_0x3125a7=-_0x3cfd38['getTimezoneOffset'](),_0x20908d=Math['floor'](Math[_0x40610f(0x140)](_0x3125a7)/0x3c),_0x51791f=Math['abs'](_0x3125a7)%0x3c,_0x1e0875=_0x3125a7>=0x0?'+':'-',_0x52f3e6=''+_0x1e0875+_0x20908d[_0x40610f(0x13a)]()[_0x40610f(0x13e)](0x2,'0')+_0x51791f['toString']()[_0x40610f(0x13e)](0x2,'0');return _0x24d40f+'-'+_0x52ffc0+'-'+_0xd535e3+'\x20'+_0x39b66c+':'+_0x2a6adf+':'+_0x444ecd+'.'+_0x5a1d54+_0x52f3e6;}
@@ -1 +1 @@
1
- (function(_0xbcca65,_0xdef0eb){const _0x58e978=a170_0x546f,_0x1a5ce6=_0xbcca65();while(!![]){try{const _0x54c8c6=parseInt(_0x58e978(0xff))/0x1+parseInt(_0x58e978(0x10a))/0x2+-parseInt(_0x58e978(0x109))/0x3*(-parseInt(_0x58e978(0x101))/0x4)+-parseInt(_0x58e978(0x100))/0x5*(parseInt(_0x58e978(0xfe))/0x6)+-parseInt(_0x58e978(0x105))/0x7*(-parseInt(_0x58e978(0x107))/0x8)+parseInt(_0x58e978(0x10b))/0x9+-parseInt(_0x58e978(0x104))/0xa*(parseInt(_0x58e978(0x106))/0xb);if(_0x54c8c6===_0xdef0eb)break;else _0x1a5ce6['push'](_0x1a5ce6['shift']());}catch(_0x57d1b2){_0x1a5ce6['push'](_0x1a5ce6['shift']());}}}(a170_0x55b1,0x2fe43));export function validateLimitOption(_0x1e6963){const _0x4b3f89=a170_0x546f;if(!Number[_0x4b3f89(0x10c)](_0x1e6963))return{'isValid':![],'error':_0x4b3f89(0x108)+_0x1e6963+_0x4b3f89(0x10d)};if(_0x1e6963<=0x0)return{'isValid':![],'error':_0x4b3f89(0x108)+_0x1e6963+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x1e6963};}export function validateTimeoutOption(_0x126668,_0x2291b0=0x1e){const _0x17b923=a170_0x546f;if(_0x126668===undefined)return{'isValid':!![],'value':_0x2291b0};const _0x249dd4=typeof _0x126668==='number'?_0x126668:parseFloat(_0x126668);if(isNaN(_0x249dd4))return{'isValid':![],'error':_0x17b923(0x102)+_0x126668+'.\x20Must\x20be\x20a\x20number.'};if(_0x249dd4<=0x0)return{'isValid':![],'error':_0x17b923(0x102)+_0x249dd4+_0x17b923(0x103)};return{'isValid':!![],'value':_0x249dd4};}function a170_0x546f(_0x5630b2,_0x54413b){_0x5630b2=_0x5630b2-0xfe;const _0x55b18f=a170_0x55b1();let _0x546f02=_0x55b18f[_0x5630b2];return _0x546f02;}function a170_0x55b1(){const _0x2b09e8=['3169562OaFwSW','76824aqhzwY','Invalid\x20limit\x20value:\x20','232053lToudP','15526gAxsjd','193347LlcHRm','isInteger','.\x20Must\x20be\x20an\x20integer.','131622fkKBQK','128297VmaZsb','20KLnkev','12nsKzcB','Invalid\x20timeout\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20number.','10IUiEaC','133jfnKtF'];a170_0x55b1=function(){return _0x2b09e8;};return a170_0x55b1();}
1
+ function a172_0x3b98(_0x5a963e,_0x95c239){_0x5a963e=_0x5a963e-0xf6;const _0x2b811f=a172_0x2b81();let _0x3b98da=_0x2b811f[_0x5a963e];return _0x3b98da;}(function(_0x181529,_0x210145){const _0x4f7c66=a172_0x3b98,_0x3dd646=_0x181529();while(!![]){try{const _0x37db25=parseInt(_0x4f7c66(0x104))/0x1*(parseInt(_0x4f7c66(0xff))/0x2)+parseInt(_0x4f7c66(0xfc))/0x3*(parseInt(_0x4f7c66(0xf8))/0x4)+-parseInt(_0x4f7c66(0x100))/0x5+parseInt(_0x4f7c66(0x103))/0x6+-parseInt(_0x4f7c66(0x102))/0x7+-parseInt(_0x4f7c66(0xfe))/0x8*(parseInt(_0x4f7c66(0xfa))/0x9)+parseInt(_0x4f7c66(0xfd))/0xa;if(_0x37db25===_0x210145)break;else _0x3dd646['push'](_0x3dd646['shift']());}catch(_0x1c2cc0){_0x3dd646['push'](_0x3dd646['shift']());}}}(a172_0x2b81,0x48da4));function a172_0x2b81(){const _0x5a2b9a=['.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20a\x20positive\x20number.','1268uhPZFH','Invalid\x20timeout\x20value:\x20','45iKphkr','Invalid\x20limit\x20value:\x20','507sAgWnD','3453300JmAOKn','603720towOrp','42JKCIgE','1191870Jjjyme','.\x20Must\x20be\x20a\x20positive\x20integer.','1425039swotmg','2050206cCDUHx','17956NxCtIf','isInteger'];a172_0x2b81=function(){return _0x5a2b9a;};return a172_0x2b81();}export function validateLimitOption(_0x4bcd43){const _0x258a47=a172_0x3b98;if(!Number[_0x258a47(0x105)](_0x4bcd43))return{'isValid':![],'error':_0x258a47(0xfb)+_0x4bcd43+'.\x20Must\x20be\x20an\x20integer.'};if(_0x4bcd43<=0x0)return{'isValid':![],'error':_0x258a47(0xfb)+_0x4bcd43+_0x258a47(0x101)};return{'isValid':!![],'value':_0x4bcd43};}export function validateTimeoutOption(_0x24d242,_0x43dcc7=0x1e){const _0x1a63cd=a172_0x3b98;if(_0x24d242===undefined)return{'isValid':!![],'value':_0x43dcc7};const _0x5936cb=typeof _0x24d242==='number'?_0x24d242:parseFloat(_0x24d242);if(isNaN(_0x5936cb))return{'isValid':![],'error':_0x1a63cd(0xf9)+_0x24d242+_0x1a63cd(0xf6)};if(_0x5936cb<=0x0)return{'isValid':![],'error':_0x1a63cd(0xf9)+_0x5936cb+_0x1a63cd(0xf7)};return{'isValid':!![],'value':_0x5936cb};}
@@ -1 +1 @@
1
- (function(_0x4cd011,_0x4a90bf){const _0x3d2edf=a171_0x5032,_0xecc949=_0x4cd011();while(!![]){try{const _0x46c7d8=-parseInt(_0x3d2edf(0xb3))/0x1*(parseInt(_0x3d2edf(0xbb))/0x2)+-parseInt(_0x3d2edf(0xb7))/0x3+parseInt(_0x3d2edf(0xb4))/0x4+-parseInt(_0x3d2edf(0xb8))/0x5*(parseInt(_0x3d2edf(0xba))/0x6)+parseInt(_0x3d2edf(0xb6))/0x7+parseInt(_0x3d2edf(0xbd))/0x8+-parseInt(_0x3d2edf(0xbc))/0x9*(-parseInt(_0x3d2edf(0xc2))/0xa);if(_0x46c7d8===_0x4a90bf)break;else _0xecc949['push'](_0xecc949['shift']());}catch(_0x248d4b){_0xecc949['push'](_0xecc949['shift']());}}}(a171_0x5c99,0xea5a8));import{createServer}from'node:net';function a171_0x5c99(){const _0x271595=['\x20and\x20','2874YVJiRU','2tduDJK','578592FUCfsn','13624856DxDGnM','once','listening','No\x20available\x20port\x20found\x20between\x20','listen','10lmdWob','0.0.0.0','1783416oybDUH','4650316NTCLKG','close','10969378Pdfgpz','1591002sPxHuU','12770SnHtPS'];a171_0x5c99=function(){return _0x271595;};return a171_0x5c99();}export async function isPortAvailable(_0x1331b4){return new Promise(_0x49a088=>{const _0x3f69c1=a171_0x5032,_0x2f7d9b=createServer();_0x2f7d9b[_0x3f69c1(0xbe)]('error',_0x37f555=>{_0x37f555['code']==='EADDRINUSE'?_0x49a088(![]):_0x49a088(![]);}),_0x2f7d9b['once'](_0x3f69c1(0xbf),()=>{const _0x3f6402=_0x3f69c1;_0x2f7d9b[_0x3f6402(0xb5)](),_0x49a088(!![]);}),_0x2f7d9b[_0x3f69c1(0xc1)](_0x1331b4,_0x3f69c1(0xc3));});}function a171_0x5032(_0x1fee6e,_0x50e0ab){_0x1fee6e=_0x1fee6e-0xb3;const _0x5c9903=a171_0x5c99();let _0x503232=_0x5c9903[_0x1fee6e];return _0x503232;}export async function findAvailablePort(_0x2cd96d=0xfa0,_0x5c14a0=0x64){const _0x267ff6=a171_0x5032;for(let _0x4a18b1=0x0;_0x4a18b1<_0x5c14a0;_0x4a18b1++){const _0x174810=_0x2cd96d+_0x4a18b1;if(await isPortAvailable(_0x174810))return _0x174810;}throw new Error(_0x267ff6(0xc0)+_0x2cd96d+_0x267ff6(0xb9)+(_0x2cd96d+_0x5c14a0-0x1));}
1
+ (function(_0x324daf,_0x3ecdf7){const _0x5374ad=a173_0x10aa,_0x1bf586=_0x324daf();while(!![]){try{const _0x4d0159=parseInt(_0x5374ad(0x14e))/0x1*(-parseInt(_0x5374ad(0x159))/0x2)+parseInt(_0x5374ad(0x152))/0x3+parseInt(_0x5374ad(0x151))/0x4*(-parseInt(_0x5374ad(0x156))/0x5)+-parseInt(_0x5374ad(0x154))/0x6*(-parseInt(_0x5374ad(0x158))/0x7)+-parseInt(_0x5374ad(0x155))/0x8+parseInt(_0x5374ad(0x15a))/0x9*(parseInt(_0x5374ad(0x157))/0xa)+-parseInt(_0x5374ad(0x153))/0xb;if(_0x4d0159===_0x3ecdf7)break;else _0x1bf586['push'](_0x1bf586['shift']());}catch(_0x890d87){_0x1bf586['push'](_0x1bf586['shift']());}}}(a173_0x577b,0xe1a83));function a173_0x10aa(_0x690618,_0x54a9bc){_0x690618=_0x690618-0x14b;const _0x577bc9=a173_0x577b();let _0x10aa50=_0x577bc9[_0x690618];return _0x10aa50;}import{createServer}from'node:net';export async function isPortAvailable(_0x2d6cc7){return new Promise(_0x2d3624=>{const _0x587b71=a173_0x10aa,_0x5e8384=createServer();_0x5e8384[_0x587b71(0x150)]('error',_0x1ad4a8=>{_0x1ad4a8['code']==='EADDRINUSE'?_0x2d3624(![]):_0x2d3624(![]);}),_0x5e8384[_0x587b71(0x150)](_0x587b71(0x14b),()=>{const _0x42e408=_0x587b71;_0x5e8384[_0x42e408(0x14f)](),_0x2d3624(!![]);}),_0x5e8384[_0x587b71(0x14c)](_0x2d6cc7,_0x587b71(0x14d));});}function a173_0x577b(){const _0xa98706=['2AgpWgC','9faTycb','No\x20available\x20port\x20found\x20between\x20','\x20and\x20','listening','listen','0.0.0.0','4251Xzewlm','close','once','132ZQlkxX','2361399mVMWJA','9269733qyncPn','6SOtXOl','13074576DDyQoY','47330ZExqXh','11554820MRkXkO','12427310PAKciH'];a173_0x577b=function(){return _0xa98706;};return a173_0x577b();}export async function findAvailablePort(_0x49400e=0xfa0,_0x22d58f=0x64){const _0x1aeb4e=a173_0x10aa;for(let _0x56deae=0x0;_0x56deae<_0x22d58f;_0x56deae++){const _0x58c0e0=_0x49400e+_0x56deae;if(await isPortAvailable(_0x58c0e0))return _0x58c0e0;}throw new Error(_0x1aeb4e(0x15b)+_0x49400e+_0x1aeb4e(0x15c)+(_0x49400e+_0x22d58f-0x1));}
@@ -1 +1 @@
1
- function a172_0x2edb(_0x145c87,_0x21b531){_0x145c87=_0x145c87-0xb7;const _0x45df44=a172_0x45df();let _0x2edb3f=_0x45df44[_0x145c87];return _0x2edb3f;}const a172_0x25e43a=a172_0x2edb;(function(_0x8158cc,_0x42f567){const _0x24b48b=a172_0x2edb,_0x11f3d3=_0x8158cc();while(!![]){try{const _0xb3d28a=parseInt(_0x24b48b(0xcb))/0x1*(-parseInt(_0x24b48b(0xe8))/0x2)+parseInt(_0x24b48b(0xea))/0x3+parseInt(_0x24b48b(0xc7))/0x4+parseInt(_0x24b48b(0xbb))/0x5+-parseInt(_0x24b48b(0xdb))/0x6*(parseInt(_0x24b48b(0xce))/0x7)+-parseInt(_0x24b48b(0xe4))/0x8*(parseInt(_0x24b48b(0xc8))/0x9)+parseInt(_0x24b48b(0xe7))/0xa*(parseInt(_0x24b48b(0xc1))/0xb);if(_0xb3d28a===_0x42f567)break;else _0x11f3d3['push'](_0x11f3d3['shift']());}catch(_0x4ee247){_0x11f3d3['push'](_0x11f3d3['shift']());}}}(a172_0x45df,0x190f0));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a172_0x25e43a(0xeb),'zsh','sh',a172_0x25e43a(0xd3),a172_0x25e43a(0xc9),'tcsh',a172_0x25e43a(0xd7),a172_0x25e43a(0xe6),'pwsh',a172_0x25e43a(0xd6),'nu',a172_0x25e43a(0xcf),'elvish',a172_0x25e43a(0xbc)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude','code',a172_0x25e43a(0xbf),a172_0x25e43a(0xe0),a172_0x25e43a(0xe1)]);function getProcessInfoWindows(_0x144e96){const _0x17d163=a172_0x25e43a;try{if(!Number[_0x17d163(0xc3)](_0x144e96)||_0x144e96<=0x0)return null;const _0x12797c=_0x17d163(0xcc)+_0x144e96+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x7a62dd=execSync(_0x17d163(0xd2)+_0x12797c+'\x22',{'encoding':_0x17d163(0xd4),'windowsHide':!![],'stdio':['pipe','pipe','pipe']})[_0x17d163(0xe2)]();if(!_0x7a62dd)return null;const [_0x341ff8,..._0x13f15a]=_0x7a62dd[_0x17d163(0xc2)](','),_0x3847e7=parseInt(_0x341ff8,0xa),_0x3241b6=_0x13f15a['join'](',')[_0x17d163(0xe2)]();if(isNaN(_0x3847e7)||!_0x3241b6)return null;return{'pid':_0x144e96,'ppid':_0x3847e7,'comm':_0x3241b6[_0x17d163(0xdc)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x3c6e97){const _0x3ecaa2=a172_0x25e43a;try{const _0x3831e2=0x400000;if(!Number[_0x3ecaa2(0xc3)](_0x3c6e97)||_0x3c6e97<=0x0||_0x3c6e97>_0x3831e2)return null;const _0x1516ed=execSync('ps\x20-p\x20'+_0x3c6e97+_0x3ecaa2(0xb7),{'encoding':_0x3ecaa2(0xd4),'stdio':_0x3ecaa2(0xbd)})[_0x3ecaa2(0xe2)](),[_0x46f0c2,..._0x3aac2a]=_0x1516ed[_0x3ecaa2(0xc2)](/\s+/),_0x4270b2=parseInt(_0x46f0c2,0xa),_0x641573=_0x3aac2a[_0x3ecaa2(0xda)]('\x20');if(isNaN(_0x4270b2))return null;return{'pid':_0x3c6e97,'ppid':_0x4270b2,'comm':_0x641573};}catch{return null;}}function getProcessInfo(_0x2feab6){const _0x10ab6a=a172_0x25e43a;if(process[_0x10ab6a(0xba)]===_0x10ab6a(0xc0))return getProcessInfoWindows(_0x2feab6);return getProcessInfoPosix(_0x2feab6);}function getBasename(_0x23e734){const _0x437a35=a172_0x25e43a;return _0x23e734[_0x437a35(0xdc)](/^-/,'')['split']('/')['pop']()?.['toLowerCase']()||'';}function isShell(_0x3d780f){const _0x5088e5=a172_0x25e43a;return SHELL_NAMES[_0x5088e5(0xd0)](getBasename(_0x3d780f));}function isEphemeralShellSpawner(_0x20477d){const _0x50072a=a172_0x25e43a;return EPHEMERAL_SHELL_SPAWNERS[_0x50072a(0xd0)](getBasename(_0x20477d));}let cachedShellPID;function findShellPID(){const _0x34a620=a172_0x25e43a;if(process['ppid']===undefined)return process[_0x34a620(0xe9)];let _0x1d6dec=process[_0x34a620(0xe3)];const _0x35eee0=0xa;let _0x513d21=0x0;while(_0x513d21<_0x35eee0){const _0x198aa3=getProcessInfo(_0x1d6dec);if(!_0x198aa3)break;if(isShell(_0x198aa3[_0x34a620(0xcd)])){const _0x2c9b58=getProcessInfo(_0x198aa3[_0x34a620(0xe3)]);if(_0x2c9b58&&isEphemeralShellSpawner(_0x2c9b58[_0x34a620(0xcd)])){_0x1d6dec=_0x198aa3[_0x34a620(0xe3)],_0x513d21++;continue;}return _0x198aa3[_0x34a620(0xe9)];}if(_0x198aa3[_0x34a620(0xe3)]===0x0||_0x198aa3[_0x34a620(0xe3)]===0x1){if(isShell(_0x198aa3[_0x34a620(0xcd)]))return _0x198aa3[_0x34a620(0xe9)];break;}_0x1d6dec=_0x198aa3[_0x34a620(0xe3)],_0x513d21++;}return process[_0x34a620(0xe3)]!==undefined?process[_0x34a620(0xe3)]:process[_0x34a620(0xe9)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3836b2){const _0x1d476e=a172_0x25e43a;if(!Number[_0x1d476e(0xc3)](_0x3836b2)||_0x3836b2<=0x0)return![];try{return process['kill'](_0x3836b2,0x0),!![];}catch{return![];}}export function openBrowser(_0x4c2cb5){const _0x190754=a172_0x25e43a;let _0x54ae03;try{_0x54ae03=new URL(_0x4c2cb5);}catch{throw new Error('Invalid\x20URL:\x20'+_0x4c2cb5);}if(_0x54ae03[_0x190754(0xc6)]!=='http:'&&_0x54ae03[_0x190754(0xc6)]!=='https:')throw new Error(_0x190754(0xc5)+_0x54ae03[_0x190754(0xc6)]);const _0x2f9bef=_0x54ae03['href'],_0x1e7ad2=process[_0x190754(0xba)];if(_0x1e7ad2===_0x190754(0xc0))spawn(_0x190754(0xb8),['/c',_0x190754(0xdf),'',_0x2f9bef],{'detached':!![],'stdio':_0x190754(0xde)})[_0x190754(0xd5)]();else{const _0x20d271=_0x1e7ad2===_0x190754(0xca)?_0x190754(0xdd):_0x190754(0xb9);spawn(_0x20d271,[_0x2f9bef],{'detached':!![],'stdio':'ignore'})[_0x190754(0xd5)]();}}export function isWindows(){return process['platform']==='win32';}export function getCrossSpawnOptions(_0x5979fa){return{..._0x5979fa??{},'shell':isWindows()};}export function escapeWindowsArg(_0x4b0ed7){const _0x1716ae=a172_0x25e43a;if(!/[ \t"&|<>^%!`\r\n]/[_0x1716ae(0xbe)](_0x4b0ed7))return _0x4b0ed7;const _0xee165d=_0x4b0ed7['replace'](/"/g,'\x22\x22');return'\x22'+_0xee165d+'\x22';}function a172_0x45df(){const _0x1d0199=['unref','powershell','csh','stderr','map','join','6FtCBmJ','replace','open','ignore','start','electron','treasure\x20studio','trim','ppid','16vXmTwa','kill','dash','27640okaqLx','146044Igevjg','pid','579684GGrEzQ','bash','exit','\x20-o\x20ppid=,comm=','cmd.exe','xdg-open','platform','106240fxthUe','xonsh','pipe','test','cursor','win32','473BOQsFK','split','isInteger','where.exe','Unsupported\x20protocol:\x20','protocol','577232zRjbWS','687087iJLQhd','ksh','darwin','1piAuJe','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','comm','1045016YkpfBt','ion','has','toString','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','fish','utf-8'];a172_0x45df=function(){return _0x1d0199;};return a172_0x45df();}export function crossSpawn(_0x21f1cd,_0x14d4d7,_0x4a7366){const _0x3c6c53=a172_0x25e43a;if(isWindows()){const _0x167df1=escapeWindowsArg(_0x21f1cd),_0x5388bf=_0x14d4d7[_0x3c6c53(0xd9)](escapeWindowsArg),_0x141f03=[_0x167df1,..._0x5388bf][_0x3c6c53(0xda)]('\x20');return spawn(_0x141f03,[],{..._0x4a7366,'shell':!![]});}return spawn(_0x21f1cd,_0x14d4d7,{..._0x4a7366,'shell':![]});}export function gracefulExit(_0x29b1c8=0x0){const _0x168490=a172_0x25e43a;isWindows()?setImmediate(()=>process['exit'](_0x29b1c8)):process[_0x168490(0xec)](_0x29b1c8);}export function findExecutable(_0xb9d141,_0x5348cb=0x1388){return new Promise(_0x4b474f=>{const _0x3fb5e5=a172_0x2edb,_0x413f1b=isWindows()?_0x3fb5e5(0xc4):'which';let _0x3ffe78=![];const _0x43aaaa=crossSpawn(_0x413f1b,[_0xb9d141],{'stdio':'pipe','shell':isWindows()}),_0x57f521=setTimeout(()=>{const _0x232b6e=_0x3fb5e5;!_0x3ffe78&&(_0x3ffe78=!![],_0x43aaaa[_0x232b6e(0xe5)](),_0x4b474f(null));},_0x5348cb);let _0x2e2e40='';_0x43aaaa['stdout']?.['on']('data',_0x407210=>{const _0x1f2f8d=_0x3fb5e5;_0x2e2e40+=_0x407210[_0x1f2f8d(0xd1)]();}),_0x43aaaa[_0x3fb5e5(0xd8)]?.['on']('data',()=>{}),_0x43aaaa['on'](_0x3fb5e5(0xec),_0x54c2e5=>{const _0x4bb17e=_0x3fb5e5;if(_0x3ffe78)return;_0x3ffe78=!![],clearTimeout(_0x57f521);if(_0x54c2e5===0x0&&_0x2e2e40[_0x4bb17e(0xe2)]()){const _0x652455=_0x2e2e40['trim']()[_0x4bb17e(0xc2)](/\r?\n/)[0x0];_0x4b474f(_0x652455);}else _0x4b474f(null);}),_0x43aaaa['on']('error',()=>{if(_0x3ffe78)return;_0x3ffe78=!![],clearTimeout(_0x57f521),_0x4b474f(null);});});}
1
+ function a174_0x4709(_0x3dda39,_0x2a2241){_0x3dda39=_0x3dda39-0xe2;const _0x3cbf2b=a174_0x3cbf();let _0x470962=_0x3cbf2b[_0x3dda39];return _0x470962;}const a174_0xa86b3=a174_0x4709;(function(_0x10e1a4,_0x2e3073){const _0x1f0e20=a174_0x4709,_0xbf6000=_0x10e1a4();while(!![]){try{const _0x5ca774=-parseInt(_0x1f0e20(0x104))/0x1+-parseInt(_0x1f0e20(0xe4))/0x2*(-parseInt(_0x1f0e20(0xed))/0x3)+-parseInt(_0x1f0e20(0xe2))/0x4+-parseInt(_0x1f0e20(0x114))/0x5*(parseInt(_0x1f0e20(0x101))/0x6)+parseInt(_0x1f0e20(0xe6))/0x7*(-parseInt(_0x1f0e20(0x10d))/0x8)+parseInt(_0x1f0e20(0xe8))/0x9*(parseInt(_0x1f0e20(0x119))/0xa)+parseInt(_0x1f0e20(0x118))/0xb;if(_0x5ca774===_0x2e3073)break;else _0xbf6000['push'](_0xbf6000['shift']());}catch(_0x4adc4e){_0xbf6000['push'](_0xbf6000['shift']());}}}(a174_0x3cbf,0x93014));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a174_0xa86b3(0x102),a174_0xa86b3(0x111),'sh',a174_0xa86b3(0x110),'ksh',a174_0xa86b3(0xe3),a174_0xa86b3(0xee),a174_0xa86b3(0xf5),a174_0xa86b3(0xf1),a174_0xa86b3(0x11b),'nu','ion',a174_0xa86b3(0x109),a174_0xa86b3(0x112)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a174_0xa86b3(0xfd),'code','cursor',a174_0xa86b3(0xf8),a174_0xa86b3(0xf0)]);function getProcessInfoWindows(_0x5d440f){const _0x3ce0f0=a174_0xa86b3;try{if(!Number[_0x3ce0f0(0x11d)](_0x5d440f)||_0x5d440f<=0x0)return null;const _0x3de10b='Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId='+_0x5d440f+_0x3ce0f0(0xe7),_0x5f0ac4=execSync(_0x3ce0f0(0xe9)+_0x3de10b+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':['pipe',_0x3ce0f0(0xf2),'pipe']})[_0x3ce0f0(0xf6)]();if(!_0x5f0ac4)return null;const [_0x204fdd,..._0x3fd88e]=_0x5f0ac4[_0x3ce0f0(0xfa)](','),_0x3e7c8c=parseInt(_0x204fdd,0xa),_0x275ab0=_0x3fd88e[_0x3ce0f0(0x105)](',')[_0x3ce0f0(0xf6)]();if(isNaN(_0x3e7c8c)||!_0x275ab0)return null;return{'pid':_0x5d440f,'ppid':_0x3e7c8c,'comm':_0x275ab0[_0x3ce0f0(0xea)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x146518){const _0x592ba9=a174_0xa86b3;try{const _0x1b9ff1=0x400000;if(!Number[_0x592ba9(0x11d)](_0x146518)||_0x146518<=0x0||_0x146518>_0x1b9ff1)return null;const _0x576b5f=execSync(_0x592ba9(0x100)+_0x146518+'\x20-o\x20ppid=,comm=',{'encoding':_0x592ba9(0xec),'stdio':_0x592ba9(0xf2)})[_0x592ba9(0xf6)](),[_0x48c345,..._0x4c3f99]=_0x576b5f[_0x592ba9(0xfa)](/\s+/),_0x2430ec=parseInt(_0x48c345,0xa),_0x226b5b=_0x4c3f99['join']('\x20');if(isNaN(_0x2430ec))return null;return{'pid':_0x146518,'ppid':_0x2430ec,'comm':_0x226b5b};}catch{return null;}}function getProcessInfo(_0x3ca57c){const _0x2b92ee=a174_0xa86b3;if(process[_0x2b92ee(0x11a)]===_0x2b92ee(0xfb))return getProcessInfoWindows(_0x3ca57c);return getProcessInfoPosix(_0x3ca57c);}function getBasename(_0x3639cf){return _0x3639cf['replace'](/^-/,'')['split']('/')['pop']()?.['toLowerCase']()||'';}function a174_0x3cbf(){const _0x5604ad=['http:','exit','has','elvish','unref','kill','Unsupported\x20protocol:\x20','24khhaPf','comm','darwin','fish','zsh','xonsh','Invalid\x20URL:\x20','2495NEbLdO','toString','error','ppid','13566344lzJmKT','25540YBceCX','platform','powershell','https:','isInteger','where.exe','4172256VUQxpG','tcsh','399208YxHqKb','cmd.exe','31871nLFqim','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','3123iWIUUo','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','replace','map','utf-8','3cihFUK','csh','open','treasure\x20studio','pwsh','pipe','href','stdout','dash','trim','start','electron','pid','split','win32','data','claude','ignore','stderr','ps\x20-p\x20','4458PDGpnr','bash','protocol','289534EfsJkM','join'];a174_0x3cbf=function(){return _0x5604ad;};return a174_0x3cbf();}function isShell(_0xc627dd){const _0x366a24=a174_0xa86b3;return SHELL_NAMES[_0x366a24(0x108)](getBasename(_0xc627dd));}function isEphemeralShellSpawner(_0x49edab){const _0x29ca8f=a174_0xa86b3;return EPHEMERAL_SHELL_SPAWNERS[_0x29ca8f(0x108)](getBasename(_0x49edab));}let cachedShellPID;function findShellPID(){const _0x3e1d1e=a174_0xa86b3;if(process[_0x3e1d1e(0x117)]===undefined)return process[_0x3e1d1e(0xf9)];let _0x1d9796=process[_0x3e1d1e(0x117)];const _0x5197a4=0xa;let _0x33d40b=0x0;while(_0x33d40b<_0x5197a4){const _0x55b1cb=getProcessInfo(_0x1d9796);if(!_0x55b1cb)break;if(isShell(_0x55b1cb[_0x3e1d1e(0x10e)])){const _0x578cd9=getProcessInfo(_0x55b1cb['ppid']);if(_0x578cd9&&isEphemeralShellSpawner(_0x578cd9[_0x3e1d1e(0x10e)])){_0x1d9796=_0x55b1cb[_0x3e1d1e(0x117)],_0x33d40b++;continue;}return _0x55b1cb[_0x3e1d1e(0xf9)];}if(_0x55b1cb[_0x3e1d1e(0x117)]===0x0||_0x55b1cb['ppid']===0x1){if(isShell(_0x55b1cb[_0x3e1d1e(0x10e)]))return _0x55b1cb[_0x3e1d1e(0xf9)];break;}_0x1d9796=_0x55b1cb[_0x3e1d1e(0x117)],_0x33d40b++;}return process[_0x3e1d1e(0x117)]!==undefined?process[_0x3e1d1e(0x117)]:process[_0x3e1d1e(0xf9)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x277c23){const _0x54be20=a174_0xa86b3;if(!Number[_0x54be20(0x11d)](_0x277c23)||_0x277c23<=0x0)return![];try{return process[_0x54be20(0x10b)](_0x277c23,0x0),!![];}catch{return![];}}export function openBrowser(_0x5024c8){const _0x286d70=a174_0xa86b3;let _0x53d51f;try{_0x53d51f=new URL(_0x5024c8);}catch{throw new Error(_0x286d70(0x113)+_0x5024c8);}if(_0x53d51f[_0x286d70(0x103)]!==_0x286d70(0x106)&&_0x53d51f['protocol']!==_0x286d70(0x11c))throw new Error(_0x286d70(0x10c)+_0x53d51f[_0x286d70(0x103)]);const _0x136ea9=_0x53d51f[_0x286d70(0xf3)],_0x232d0b=process[_0x286d70(0x11a)];if(_0x232d0b===_0x286d70(0xfb))spawn(_0x286d70(0xe5),['/c',_0x286d70(0xf7),'',_0x136ea9],{'detached':!![],'stdio':_0x286d70(0xfe)})['unref']();else{const _0x26bf13=_0x232d0b===_0x286d70(0x10f)?_0x286d70(0xef):'xdg-open';spawn(_0x26bf13,[_0x136ea9],{'detached':!![],'stdio':'ignore'})[_0x286d70(0x10a)]();}}export function isWindows(){const _0x2f065e=a174_0xa86b3;return process[_0x2f065e(0x11a)]===_0x2f065e(0xfb);}export function getCrossSpawnOptions(_0x441f39){return{..._0x441f39??{},'shell':isWindows()};}export function escapeWindowsArg(_0x62e2e5){const _0x544bb3=a174_0xa86b3;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x62e2e5))return _0x62e2e5;const _0x5a4601=_0x62e2e5[_0x544bb3(0xea)](/"/g,'\x22\x22');return'\x22'+_0x5a4601+'\x22';}export function crossSpawn(_0x367849,_0x57fe41,_0x5e5c0d){const _0x5e4c90=a174_0xa86b3;if(isWindows()){const _0x295042=escapeWindowsArg(_0x367849),_0x5ec223=_0x57fe41[_0x5e4c90(0xeb)](escapeWindowsArg),_0x58c7ba=[_0x295042,..._0x5ec223][_0x5e4c90(0x105)]('\x20');return spawn(_0x58c7ba,[],{..._0x5e5c0d,'shell':!![]});}return spawn(_0x367849,_0x57fe41,{..._0x5e5c0d,'shell':![]});}export function gracefulExit(_0x203b39=0x0){const _0x3170b3=a174_0xa86b3;isWindows()?setImmediate(()=>process['exit'](_0x203b39)):process[_0x3170b3(0x107)](_0x203b39);}export function findExecutable(_0x1b7e33,_0x1d9da1=0x1388){return new Promise(_0x235f9b=>{const _0x5bf8f1=a174_0x4709,_0x2309db=isWindows()?_0x5bf8f1(0x11e):'which';let _0x109e0e=![];const _0x86d4be=crossSpawn(_0x2309db,[_0x1b7e33],{'stdio':_0x5bf8f1(0xf2),'shell':isWindows()}),_0x52224b=setTimeout(()=>{const _0x12dda7=_0x5bf8f1;!_0x109e0e&&(_0x109e0e=!![],_0x86d4be[_0x12dda7(0x10b)](),_0x235f9b(null));},_0x1d9da1);let _0x1c1274='';_0x86d4be[_0x5bf8f1(0xf4)]?.['on'](_0x5bf8f1(0xfc),_0x3f7ac2=>{const _0x393c3b=_0x5bf8f1;_0x1c1274+=_0x3f7ac2[_0x393c3b(0x115)]();}),_0x86d4be[_0x5bf8f1(0xff)]?.['on']('data',()=>{}),_0x86d4be['on']('exit',_0x371dea=>{const _0x422561=_0x5bf8f1;if(_0x109e0e)return;_0x109e0e=!![],clearTimeout(_0x52224b);if(_0x371dea===0x0&&_0x1c1274[_0x422561(0xf6)]()){const _0x3a8723=_0x1c1274['trim']()[_0x422561(0xfa)](/\r?\n/)[0x0];_0x235f9b(_0x3a8723);}else _0x235f9b(null);}),_0x86d4be['on'](_0x5bf8f1(0x116),()=>{if(_0x109e0e)return;_0x109e0e=!![],clearTimeout(_0x52224b),_0x235f9b(null);});});}
@@ -1 +1 @@
1
- (function(_0x466159,_0x470020){const _0xae778d=a173_0x502c,_0x13679f=_0x466159();while(!![]){try{const _0x13ed83=-parseInt(_0xae778d(0x172))/0x1*(-parseInt(_0xae778d(0x181))/0x2)+parseInt(_0xae778d(0x183))/0x3*(parseInt(_0xae778d(0x170))/0x4)+parseInt(_0xae778d(0x16c))/0x5+-parseInt(_0xae778d(0x173))/0x6*(-parseInt(_0xae778d(0x17e))/0x7)+-parseInt(_0xae778d(0x177))/0x8*(parseInt(_0xae778d(0x167))/0x9)+-parseInt(_0xae778d(0x182))/0xa*(parseInt(_0xae778d(0x16b))/0xb)+-parseInt(_0xae778d(0x179))/0xc*(parseInt(_0xae778d(0x16f))/0xd);if(_0x13ed83===_0x470020)break;else _0x13679f['push'](_0x13679f['shift']());}catch(_0xcf8cc){_0x13679f['push'](_0x13679f['shift']());}}}(a173_0x580c,0xae9d3));function a173_0x502c(_0x5b530d,_0x311127){_0x5b530d=_0x5b530d-0x167;const _0x580c3e=a173_0x580c();let _0x502cc6=_0x580c3e[_0x5b530d];return _0x502cc6;}import*as a173_0x80299b from'readline';export function isInteractive(){const _0x213451=a173_0x502c;return process[_0x213451(0x17b)]['isTTY']===!![];}function a173_0x580c(){const _0x5efba5=['33DPrOft','1180720wPQDad','setRawMode','question','26hPeVIM','2780648KxTuDv','utf8','135tdEEPA','4496052NIcaFb','stderr','data','\x20(y/N):\x20','144QKXriq','write','5180124nXZYHT','stdout','stdin','pause','yes','7ksWnwe','setEncoding','toLowerCase','18950VVNqRk','1609460iiwRwy','3bnAoLd','449181sXTsnm','exit','\x20[y/N]\x20','createInterface'];a173_0x580c=function(){return _0x5efba5;};return a173_0x580c();}export async function confirm(_0x45a2d3){const _0x277f9c=a173_0x502c,_0x5bf655=a173_0x80299b[_0x277f9c(0x16a)]({'input':process[_0x277f9c(0x17b)],'output':process[_0x277f9c(0x17a)]});return new Promise(_0x32ff80=>{const _0x1b6203=_0x277f9c;_0x5bf655[_0x1b6203(0x16e)](_0x45a2d3+_0x1b6203(0x176),_0x5da2f4=>{const _0x4d72df=_0x1b6203;_0x5bf655['close'](),_0x32ff80(_0x5da2f4[_0x4d72df(0x180)]()==='y'||_0x5da2f4[_0x4d72df(0x180)]()===_0x4d72df(0x17d));});});}export async function confirmKey(_0x3c07e6){const _0x14c8df=a173_0x502c;if(!process['stdin']['isTTY'])return![];return process['stderr'][_0x14c8df(0x178)](_0x3c07e6+_0x14c8df(0x169)),new Promise(_0x2a3bb7=>{const _0x18d76e=_0x14c8df,_0x59d5ef=process['stdin'];_0x59d5ef[_0x18d76e(0x16d)](!![]),_0x59d5ef['resume'](),_0x59d5ef[_0x18d76e(0x17f)](_0x18d76e(0x171));const _0x214ab1=_0x4055a1=>{const _0x25ec7f=_0x18d76e;_0x59d5ef[_0x25ec7f(0x16d)](![]),_0x59d5ef[_0x25ec7f(0x17c)](),_0x59d5ef['removeListener'](_0x25ec7f(0x175),_0x214ab1);if(_0x4055a1==='\x1b'){process[_0x25ec7f(0x174)][_0x25ec7f(0x178)]('\x0a'),_0x2a3bb7(![]);return;}_0x4055a1==='\x03'&&(process[_0x25ec7f(0x174)]['write']('\x0a'),process[_0x25ec7f(0x168)](0x82));if(_0x4055a1['toLowerCase']()==='y'){process[_0x25ec7f(0x174)][_0x25ec7f(0x178)]('y\x0a'),_0x2a3bb7(!![]);return;}process[_0x25ec7f(0x174)]['write']('\x0a'),_0x2a3bb7(![]);};_0x59d5ef['on'](_0x18d76e(0x175),_0x214ab1);});}
1
+ (function(_0x4d27d0,_0x1d6303){const _0x1c9d54=a175_0x484f,_0x1a4da5=_0x4d27d0();while(!![]){try{const _0x116553=parseInt(_0x1c9d54(0x1ec))/0x1*(parseInt(_0x1c9d54(0x207))/0x2)+-parseInt(_0x1c9d54(0x1f9))/0x3*(parseInt(_0x1c9d54(0x1f3))/0x4)+-parseInt(_0x1c9d54(0x1f5))/0x5*(parseInt(_0x1c9d54(0x1f8))/0x6)+-parseInt(_0x1c9d54(0x1eb))/0x7*(parseInt(_0x1c9d54(0x1fb))/0x8)+parseInt(_0x1c9d54(0x1fe))/0x9*(-parseInt(_0x1c9d54(0x1f4))/0xa)+parseInt(_0x1c9d54(0x1fa))/0xb*(-parseInt(_0x1c9d54(0x1ee))/0xc)+-parseInt(_0x1c9d54(0x1ed))/0xd*(-parseInt(_0x1c9d54(0x203))/0xe);if(_0x116553===_0x1d6303)break;else _0x1a4da5['push'](_0x1a4da5['shift']());}catch(_0x225b1b){_0x1a4da5['push'](_0x1a4da5['shift']());}}}(a175_0x2429,0x42b00));import*as a175_0xd8497d from'readline';function a175_0x484f(_0x414170,_0x701115){_0x414170=_0x414170-0x1ea;const _0x242931=a175_0x2429();let _0x484fbf=_0x242931[_0x414170];return _0x484fbf;}export function isInteractive(){const _0x4d9f3b=a175_0x484f;return process['stdin'][_0x4d9f3b(0x205)]===!![];}export async function confirm(_0x1ee100){const _0x55bb8c=a175_0x484f,_0x49af49=a175_0xd8497d[_0x55bb8c(0x1f7)]({'input':process[_0x55bb8c(0x1ef)],'output':process[_0x55bb8c(0x1fd)]});return new Promise(_0x560011=>{const _0x26bda6=_0x55bb8c;_0x49af49[_0x26bda6(0x1fc)](_0x1ee100+_0x26bda6(0x1ff),_0x280a5d=>{const _0x2674c7=_0x26bda6;_0x49af49[_0x2674c7(0x202)](),_0x560011(_0x280a5d[_0x2674c7(0x204)]()==='y'||_0x280a5d['toLowerCase']()==='yes');});});}export async function confirmKey(_0x3869c6){const _0x194c28=a175_0x484f;if(!process['stdin'][_0x194c28(0x205)])return![];return process[_0x194c28(0x206)][_0x194c28(0x1f1)](_0x3869c6+'\x20[y/N]\x20'),new Promise(_0x232621=>{const _0x8aea87=_0x194c28,_0xe0143b=process[_0x8aea87(0x1ef)];_0xe0143b[_0x8aea87(0x200)](!![]),_0xe0143b[_0x8aea87(0x1f0)](),_0xe0143b[_0x8aea87(0x208)]('utf8');const _0x275ca2=_0x15d3fd=>{const _0x5f4aff=_0x8aea87;_0xe0143b[_0x5f4aff(0x200)](![]),_0xe0143b[_0x5f4aff(0x1f6)](),_0xe0143b[_0x5f4aff(0x1ea)](_0x5f4aff(0x201),_0x275ca2);if(_0x15d3fd==='\x1b'){process[_0x5f4aff(0x206)][_0x5f4aff(0x1f1)]('\x0a'),_0x232621(![]);return;}_0x15d3fd==='\x03'&&(process[_0x5f4aff(0x206)]['write']('\x0a'),process[_0x5f4aff(0x1f2)](0x82));if(_0x15d3fd[_0x5f4aff(0x204)]()==='y'){process[_0x5f4aff(0x206)][_0x5f4aff(0x1f1)]('y\x0a'),_0x232621(!![]);return;}process[_0x5f4aff(0x206)][_0x5f4aff(0x1f1)]('\x0a'),_0x232621(![]);};_0xe0143b['on'](_0x8aea87(0x201),_0x275ca2);});}function a175_0x2429(){const _0x18ccb7=['3383847SlbwtK','\x20(y/N):\x20','setRawMode','data','close','24863174ffklHz','toLowerCase','isTTY','stderr','40fJbgeT','setEncoding','removeListener','904526RFTjuv','4914GVZzTu','13bYPpBg','13536AxcvHj','stdin','resume','write','exit','196124GBHLZC','10dhkFvO','1683245uCKaGl','pause','createInterface','6dOeAOq','9uPPRvJ','2189jKoKXD','32zhUfxy','question','stdout'];a175_0x2429=function(){return _0x18ccb7;};return a175_0x2429();}
@@ -1 +1 @@
1
- (function(_0x237eb1,_0x422115){const _0x170dbd=a174_0x38a9,_0x462375=_0x237eb1();while(!![]){try{const _0x28484f=-parseInt(_0x170dbd(0xe8))/0x1+parseInt(_0x170dbd(0xe7))/0x2*(-parseInt(_0x170dbd(0xdd))/0x3)+parseInt(_0x170dbd(0xdc))/0x4*(parseInt(_0x170dbd(0xd2))/0x5)+-parseInt(_0x170dbd(0xd1))/0x6+-parseInt(_0x170dbd(0xd9))/0x7*(parseInt(_0x170dbd(0xde))/0x8)+-parseInt(_0x170dbd(0xcf))/0x9+-parseInt(_0x170dbd(0xd7))/0xa*(-parseInt(_0x170dbd(0xe2))/0xb);if(_0x28484f===_0x422115)break;else _0x462375['push'](_0x462375['shift']());}catch(_0x7b2574){_0x462375['push'](_0x462375['shift']());}}}(a174_0x1e2f,0x43982));function a174_0x1e2f(){const _0x6050ac=['isSpinning','214pGSJQc','373682DbFAmc','now','intervalFactory','jobId','toFixed','3399678HudrmX','cyan','2709768iBnOdK','5yOlYdw','Processing','...','clock','stderr','170qIQQZf','trim','217EFbCaj','floor','extra','1061752zbLsTW','3051EdLPGe','109712wFtDqn','phase','isTTY','\x20[Job\x20ID:\x20','1131339LfCOjm','stop','text','start'];a174_0x1e2f=function(){return _0x6050ac;};return a174_0x1e2f();}import a174_0x14970a from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x4f64ff,_0x415e84={}){const _0xf7975a=a174_0x38a9,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x415e84;return a174_0x14970a({'text':_0x4f64ff,'color':_0xf7975a(0xd0),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0xf7975a(0xd6)][_0xf7975a(0xe0)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x2b81ac,_0x48a7ab,_0x1c0e65={}){const _0x1410eb=a174_0x38a9,_0x2e5328=_0x1c0e65[_0x1410eb(0xd5)]??(()=>Date[_0x1410eb(0xe9)]()),_0x4a2b2e=createCommandSpinner(_0x2b81ac,_0x1c0e65);_0x4a2b2e[_0x1410eb(0xe5)]();const _0x454e70=_0x2e5328();try{const _0x216dee=await _0x48a7ab(),_0xab8acd=_0x2e5328()-_0x454e70;return _0x4a2b2e[_0x1410eb(0xe3)](),{'data':_0x216dee,'elapsedMs':_0xab8acd};}catch(_0x1299af){_0x4a2b2e[_0x1410eb(0xe3)]();throw _0x1299af;}}export async function withProgressSpinner(_0x332cb6,_0x21348f,_0x7202e0={}){const _0x323f63=a174_0x38a9,_0x12c773=_0x7202e0[_0x323f63(0xd5)]??(()=>Date[_0x323f63(0xe9)]()),_0x1bb064=_0x7202e0[_0x323f63(0xea)]??setInterval,_0x52b980=createCommandSpinner(_0x332cb6,_0x7202e0);_0x52b980[_0x323f63(0xe5)]();const _0x26a332=_0x12c773(),_0x6ec762=_0x332cb6['replace'](_0x323f63(0xd4),'')['trim']()||_0x323f63(0xd3),_0x2e2369={};let _0x26e28c=_0x332cb6;const _0x121dcd=()=>{const _0x3c2a20=_0x323f63;if(!_0x52b980[_0x3c2a20(0xe6)])return;const _0x8b369a=_0x12c773()-_0x26a332,_0xaab647=formatElapsed(_0x8b369a),_0x16419d=_0x2e2369['phase']?.[_0x3c2a20(0xd8)]()||_0x6ec762,_0x339a43=_0x2e2369[_0x3c2a20(0xeb)]?_0x3c2a20(0xe1)+_0x2e2369[_0x3c2a20(0xeb)]+']':'',_0x31a0b9=_0x2e2369[_0x3c2a20(0xdb)]?'\x20'+_0x2e2369[_0x3c2a20(0xdb)]:'',_0x45462f=_0x16419d+'\x20'+_0xaab647+_0x31a0b9+_0x339a43;_0x45462f!==_0x26e28c&&_0x45462f[_0x3c2a20(0xd8)]()&&(_0x52b980['text']=_0x45462f,_0x26e28c=_0x45462f);},_0x10ee7c=_0x1bb064(()=>{_0x121dcd();},0x3e8),_0x36e5b7={'setPhase':_0x16fc75=>{const _0x3342d0=_0x323f63;_0x2e2369[_0x3342d0(0xdf)]=_0x16fc75;const _0x2e3564=_0x16fc75?.[_0x3342d0(0xd8)]()||_0x6ec762,_0x45813e=_0x12c773()-_0x26a332,_0x2a079b=formatElapsed(_0x45813e),_0x3055ca=_0x2e2369[_0x3342d0(0xeb)]?'\x20[Job\x20ID:\x20'+_0x2e2369['jobId']+']':'',_0x462b86=_0x2e2369[_0x3342d0(0xdb)]?'\x20'+_0x2e2369[_0x3342d0(0xdb)]:'',_0x30a3cb=_0x2e3564+'\x20'+_0x2a079b+_0x462b86+_0x3055ca;_0x52b980['isSpinning']&&_0x30a3cb[_0x3342d0(0xd8)]()&&(_0x52b980[_0x3342d0(0xe4)]=_0x30a3cb,_0x26e28c=_0x30a3cb);},'setJobId':_0x43582f=>{const _0x48ac66=_0x323f63;_0x2e2369[_0x48ac66(0xeb)]=_0x43582f,_0x121dcd();},'setExtra':_0x52dac9=>{const _0x433546=_0x323f63;_0x2e2369[_0x433546(0xdb)]=_0x52dac9,_0x121dcd();}};_0x121dcd();try{const _0x5093b3=await _0x21348f(_0x36e5b7),_0x1afd52=_0x12c773()-_0x26a332;return{'data':_0x5093b3,'elapsedMs':_0x1afd52};}finally{clearInterval(_0x10ee7c),_0x52b980[_0x323f63(0xe3)]();}}function a174_0x38a9(_0x650d8a,_0xa99ef3){_0x650d8a=_0x650d8a-0xce;const _0x1e2fb8=a174_0x1e2f();let _0x38a918=_0x1e2fb8[_0x650d8a];return _0x38a918;}export function formatElapsed(_0x526b2e){const _0xa7c8e3=a174_0x38a9,_0x4f492a=Math[_0xa7c8e3(0xda)](_0x526b2e/0x3e8);if(_0x4f492a<0x3c)return(_0x526b2e/0x3e8)[_0xa7c8e3(0xce)](0x1)+'s';const _0x55fe08=Math[_0xa7c8e3(0xda)](_0x4f492a/0x3c),_0xc4f964=_0x4f492a%0x3c;if(_0x55fe08<0x3c)return _0x55fe08+'m\x20'+_0xc4f964+'s';const _0x44f8ae=Math['floor'](_0x55fe08/0x3c),_0x5a6fae=_0x55fe08%0x3c;return _0x44f8ae+'h\x20'+_0x5a6fae+'m';}
1
+ function a176_0x152c(){const _0x3b12e3=['Processing','1396912orHcXg','isTTY','isSpinning','trim','text','toFixed','\x20[Job\x20ID:\x20','cyan','clock','phase','4830brwDmw','130712oOhbxq','188352dSPTdW','start','4986765RsFCMw','stop','110xnBPqx','44124otZpvH','now','stderr','30399mWBlwh','32fDeIyR','extra','jobId','floor'];a176_0x152c=function(){return _0x3b12e3;};return a176_0x152c();}(function(_0x402d3c,_0x3b67c2){const _0x456b7f=a176_0x32d4,_0x3dbf47=_0x402d3c();while(!![]){try{const _0x412e5a=-parseInt(_0x456b7f(0x195))/0x1+-parseInt(_0x456b7f(0x19e))/0x2*(parseInt(_0x456b7f(0x19d))/0x3)+-parseInt(_0x456b7f(0x194))/0x4+-parseInt(_0x456b7f(0x199))/0x5*(-parseInt(_0x456b7f(0x19a))/0x6)+parseInt(_0x456b7f(0x193))/0x7+-parseInt(_0x456b7f(0x1a3))/0x8+parseInt(_0x456b7f(0x197))/0x9;if(_0x412e5a===_0x3b67c2)break;else _0x3dbf47['push'](_0x3dbf47['shift']());}catch(_0x55f1a1){_0x3dbf47['push'](_0x3dbf47['shift']());}}}(a176_0x152c,0x26c47));function a176_0x32d4(_0x5a1670,_0x139a20){_0x5a1670=_0x5a1670-0x193;const _0x152c10=a176_0x152c();let _0x32d4f5=_0x152c10[_0x5a1670];return _0x32d4f5;}import a176_0x3ce52d from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x97290,_0x396a66={}){const _0x36f5cd=a176_0x32d4,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x396a66;return a176_0x3ce52d({'text':_0x97290,'color':_0x36f5cd(0x1aa),'stream':process[_0x36f5cd(0x19c)],'isEnabled':forceEnabled||process[_0x36f5cd(0x19c)][_0x36f5cd(0x1a4)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x33e354,_0x39adc3,_0x5bfb4c={}){const _0x58e4a0=a176_0x32d4,_0x131f90=_0x5bfb4c['clock']??(()=>Date[_0x58e4a0(0x19b)]()),_0x2b45a7=createCommandSpinner(_0x33e354,_0x5bfb4c);_0x2b45a7['start']();const _0x4ea4f8=_0x131f90();try{const _0x1ebbc3=await _0x39adc3(),_0x4465cb=_0x131f90()-_0x4ea4f8;return _0x2b45a7[_0x58e4a0(0x198)](),{'data':_0x1ebbc3,'elapsedMs':_0x4465cb};}catch(_0x422d43){_0x2b45a7['stop']();throw _0x422d43;}}export async function withProgressSpinner(_0xd9330e,_0x17cefb,_0x337d7a={}){const _0x3789da=a176_0x32d4,_0x10a403=_0x337d7a[_0x3789da(0x1ab)]??(()=>Date[_0x3789da(0x19b)]()),_0x5c51a3=_0x337d7a['intervalFactory']??setInterval,_0x204e00=createCommandSpinner(_0xd9330e,_0x337d7a);_0x204e00[_0x3789da(0x196)]();const _0x12322b=_0x10a403(),_0x5b0514=_0xd9330e['replace']('...','')[_0x3789da(0x1a6)]()||_0x3789da(0x1a2),_0x3cfabc={};let _0x4dfdb0=_0xd9330e;const _0x3c897a=()=>{const _0x199ba8=_0x3789da;if(!_0x204e00[_0x199ba8(0x1a5)])return;const _0x479f3c=_0x10a403()-_0x12322b,_0x4e4cb4=formatElapsed(_0x479f3c),_0x3abd56=_0x3cfabc[_0x199ba8(0x1ac)]?.[_0x199ba8(0x1a6)]()||_0x5b0514,_0x1e3ac6=_0x3cfabc['jobId']?_0x199ba8(0x1a9)+_0x3cfabc[_0x199ba8(0x1a0)]+']':'',_0x5257a5=_0x3cfabc[_0x199ba8(0x19f)]?'\x20'+_0x3cfabc[_0x199ba8(0x19f)]:'',_0x3fd868=_0x3abd56+'\x20'+_0x4e4cb4+_0x5257a5+_0x1e3ac6;_0x3fd868!==_0x4dfdb0&&_0x3fd868[_0x199ba8(0x1a6)]()&&(_0x204e00[_0x199ba8(0x1a7)]=_0x3fd868,_0x4dfdb0=_0x3fd868);},_0x4cc856=_0x5c51a3(()=>{_0x3c897a();},0x3e8),_0x3d1f4f={'setPhase':_0x4c6ea4=>{const _0xf7b1f4=_0x3789da;_0x3cfabc['phase']=_0x4c6ea4;const _0x3b42fc=_0x4c6ea4?.[_0xf7b1f4(0x1a6)]()||_0x5b0514,_0x259b9e=_0x10a403()-_0x12322b,_0x126cdc=formatElapsed(_0x259b9e),_0x5993cb=_0x3cfabc['jobId']?_0xf7b1f4(0x1a9)+_0x3cfabc[_0xf7b1f4(0x1a0)]+']':'',_0x2c0bec=_0x3cfabc[_0xf7b1f4(0x19f)]?'\x20'+_0x3cfabc[_0xf7b1f4(0x19f)]:'',_0x593a25=_0x3b42fc+'\x20'+_0x126cdc+_0x2c0bec+_0x5993cb;_0x204e00[_0xf7b1f4(0x1a5)]&&_0x593a25[_0xf7b1f4(0x1a6)]()&&(_0x204e00[_0xf7b1f4(0x1a7)]=_0x593a25,_0x4dfdb0=_0x593a25);},'setJobId':_0xdc2fe9=>{const _0x19ede2=_0x3789da;_0x3cfabc[_0x19ede2(0x1a0)]=_0xdc2fe9,_0x3c897a();},'setExtra':_0x21f387=>{const _0x47d23f=_0x3789da;_0x3cfabc[_0x47d23f(0x19f)]=_0x21f387,_0x3c897a();}};_0x3c897a();try{const _0x5e1279=await _0x17cefb(_0x3d1f4f),_0x1da6c8=_0x10a403()-_0x12322b;return{'data':_0x5e1279,'elapsedMs':_0x1da6c8};}finally{clearInterval(_0x4cc856),_0x204e00[_0x3789da(0x198)]();}}export function formatElapsed(_0x3440da){const _0x32e2b3=a176_0x32d4,_0x458f57=Math[_0x32e2b3(0x1a1)](_0x3440da/0x3e8);if(_0x458f57<0x3c)return(_0x3440da/0x3e8)[_0x32e2b3(0x1a8)](0x1)+'s';const _0x436b84=Math[_0x32e2b3(0x1a1)](_0x458f57/0x3c),_0x1d9f1a=_0x458f57%0x3c;if(_0x436b84<0x3c)return _0x436b84+'m\x20'+_0x1d9f1a+'s';const _0x1f0436=Math[_0x32e2b3(0x1a1)](_0x436b84/0x3c),_0x7766a9=_0x436b84%0x3c;return _0x1f0436+'h\x20'+_0x7766a9+'m';}
@@ -1 +1 @@
1
- function a175_0x3c91(_0x53ab67,_0x383d19){_0x53ab67=_0x53ab67-0x1f2;const _0xe166f2=a175_0xe166();let _0x3c9166=_0xe166f2[_0x53ab67];return _0x3c9166;}(function(_0x20a731,_0x5de99f){const _0x5bbd35=a175_0x3c91,_0x43c693=_0x20a731();while(!![]){try{const _0x4c07fe=parseInt(_0x5bbd35(0x1f9))/0x1*(-parseInt(_0x5bbd35(0x1f5))/0x2)+parseInt(_0x5bbd35(0x204))/0x3+-parseInt(_0x5bbd35(0x1f4))/0x4+-parseInt(_0x5bbd35(0x1fd))/0x5*(-parseInt(_0x5bbd35(0x1fb))/0x6)+parseInt(_0x5bbd35(0x1fc))/0x7+-parseInt(_0x5bbd35(0x1f7))/0x8*(-parseInt(_0x5bbd35(0x208))/0x9)+-parseInt(_0x5bbd35(0x1fa))/0xa;if(_0x4c07fe===_0x5de99f)break;else _0x43c693['push'](_0x43c693['shift']());}catch(_0x11e0c2){_0x43c693['push'](_0x43c693['shift']());}}}(a175_0xe166,0x7adfb));export async function*parseSSEStream(_0x3f8821,_0x25080e){const _0x192a44=a175_0x3c91;if(!_0x3f8821['body'])throw new Error(_0x192a44(0x1f2));const _0x681c7f=_0x3f8821[_0x192a44(0x20a)]['getReader'](),_0xd1e5c0=new TextDecoder();let _0x3e2286='',_0x4c8aa1={};try{while(!![]){const {done:_0x46c8a8,value:_0x244ae3}=await _0x681c7f[_0x192a44(0x1fe)]();if(_0x46c8a8){if(_0x4c8aa1[_0x192a44(0x1ff)]){_0x25080e?.['debug'](_0x192a44(0x202)+_0x4c8aa1['data']);const _0x1b23e1=parseSSEData(_0x4c8aa1[_0x192a44(0x1ff)]);yield _0x1b23e1;}break;}_0x3e2286+=_0xd1e5c0['decode'](_0x244ae3,{'stream':!![]});const _0x21e5dd=_0x3e2286[_0x192a44(0x1f8)]('\x0a');_0x3e2286=_0x21e5dd[_0x192a44(0x200)]()||'';for(const _0x20f8b4 of _0x21e5dd){if(_0x20f8b4[_0x192a44(0x209)]()===''){if(_0x4c8aa1[_0x192a44(0x1ff)]){_0x25080e?.[_0x192a44(0x1f6)](_0x192a44(0x202)+_0x4c8aa1[_0x192a44(0x1ff)]);const _0x387a51=parseSSEData(_0x4c8aa1[_0x192a44(0x1ff)]);yield _0x387a51,_0x4c8aa1={};}continue;}if(_0x20f8b4[_0x192a44(0x205)](':'))continue;const _0x55e5b9=_0x20f8b4[_0x192a44(0x207)](':');if(_0x55e5b9===-0x1)continue;const _0xd32633=_0x20f8b4['slice'](0x0,_0x55e5b9);let _0x4b06db=_0x20f8b4['slice'](_0x55e5b9+0x1);_0x4b06db[_0x192a44(0x205)]('\x20')&&(_0x4b06db=_0x4b06db[_0x192a44(0x1f3)](0x1));switch(_0xd32633){case _0x192a44(0x206):_0x4c8aa1[_0x192a44(0x206)]=_0x4b06db;break;case'data':_0x4c8aa1['data']=_0x4c8aa1['data']?_0x4c8aa1[_0x192a44(0x1ff)]+'\x0a'+_0x4b06db:_0x4b06db;break;case'id':_0x4c8aa1['id']=_0x4b06db;break;}}}}finally{_0x681c7f['releaseLock']();}}function parseSSEData(_0x27fc8e){const _0x401ac0=a175_0x3c91;try{return JSON[_0x401ac0(0x201)](_0x27fc8e);}catch(_0x143f4f){throw new Error(_0x401ac0(0x203)+_0x27fc8e,{'cause':_0x143f4f});}}function a175_0xe166(){const _0x308f33=['1133800zpLNmP','6nCXWIM','894754CfeiJj','907130mvKuKD','read','data','pop','parse','[LLM\x20API\x20SSE]\x20','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1082295JJibEt','startsWith','event','indexOf','209763hHeVpV','trim','body','Response\x20body\x20is\x20null','slice','3146488LvZlhC','2bjMTjn','debug','304BZycQL','split','152386BGPtbF'];a175_0xe166=function(){return _0x308f33;};return a175_0xe166();}
1
+ (function(_0x2aa9e5,_0x5eb03e){const _0x2eea33=a177_0x1bfc,_0x4abf70=_0x2aa9e5();while(!![]){try{const _0x1e9406=parseInt(_0x2eea33(0x104))/0x1+-parseInt(_0x2eea33(0x115))/0x2+parseInt(_0x2eea33(0x100))/0x3+-parseInt(_0x2eea33(0x114))/0x4+parseInt(_0x2eea33(0x10f))/0x5*(-parseInt(_0x2eea33(0x108))/0x6)+-parseInt(_0x2eea33(0x10a))/0x7*(-parseInt(_0x2eea33(0x117))/0x8)+-parseInt(_0x2eea33(0x118))/0x9*(parseInt(_0x2eea33(0x113))/0xa);if(_0x1e9406===_0x5eb03e)break;else _0x4abf70['push'](_0x4abf70['shift']());}catch(_0x809d93){_0x4abf70['push'](_0x4abf70['shift']());}}}(a177_0x492d,0x7fbeb));function a177_0x1bfc(_0x435bcd,_0x377b3b){_0x435bcd=_0x435bcd-0x100;const _0x492dfd=a177_0x492d();let _0x1bfcf7=_0x492dfd[_0x435bcd];return _0x1bfcf7;}export async function*parseSSEStream(_0xea04c1,_0x38b086){const _0x21b83e=a177_0x1bfc;if(!_0xea04c1['body'])throw new Error(_0x21b83e(0x111));const _0x1aaa98=_0xea04c1[_0x21b83e(0x102)]['getReader'](),_0x404bc0=new TextDecoder();let _0x4f63c0='',_0x4730d4={};try{while(!![]){const {done:_0x43f1af,value:_0x530661}=await _0x1aaa98[_0x21b83e(0x103)]();if(_0x43f1af){if(_0x4730d4['data']){_0x38b086?.[_0x21b83e(0x110)](_0x21b83e(0x109)+_0x4730d4[_0x21b83e(0x10b)]);const _0x2b2dce=parseSSEData(_0x4730d4[_0x21b83e(0x10b)]);yield _0x2b2dce;}break;}_0x4f63c0+=_0x404bc0['decode'](_0x530661,{'stream':!![]});const _0x24fb54=_0x4f63c0[_0x21b83e(0x106)]('\x0a');_0x4f63c0=_0x24fb54[_0x21b83e(0x101)]()||'';for(const _0x37d0f5 of _0x24fb54){if(_0x37d0f5[_0x21b83e(0x107)]()===''){if(_0x4730d4[_0x21b83e(0x10b)]){_0x38b086?.[_0x21b83e(0x110)](_0x21b83e(0x109)+_0x4730d4[_0x21b83e(0x10b)]);const _0x2d7b64=parseSSEData(_0x4730d4[_0x21b83e(0x10b)]);yield _0x2d7b64,_0x4730d4={};}continue;}if(_0x37d0f5[_0x21b83e(0x116)](':'))continue;const _0x4dfeb1=_0x37d0f5[_0x21b83e(0x105)](':');if(_0x4dfeb1===-0x1)continue;const _0x25415f=_0x37d0f5['slice'](0x0,_0x4dfeb1);let _0x279679=_0x37d0f5[_0x21b83e(0x10d)](_0x4dfeb1+0x1);_0x279679['startsWith']('\x20')&&(_0x279679=_0x279679['slice'](0x1));switch(_0x25415f){case'event':_0x4730d4[_0x21b83e(0x10e)]=_0x279679;break;case _0x21b83e(0x10b):_0x4730d4['data']=_0x4730d4['data']?_0x4730d4['data']+'\x0a'+_0x279679:_0x279679;break;case'id':_0x4730d4['id']=_0x279679;break;}}}}finally{_0x1aaa98[_0x21b83e(0x10c)]();}}function parseSSEData(_0x462816){const _0x9955bd=a177_0x1bfc;try{return JSON['parse'](_0x462816);}catch(_0x3a11de){throw new Error(_0x9955bd(0x112)+_0x462816,{'cause':_0x3a11de});}}function a177_0x492d(){const _0x41ffb5=['releaseLock','slice','event','1914395BKwEcY','debug','Response\x20body\x20is\x20null','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','592570TPmNrW','1078120TcwUxH','676368PetxjQ','startsWith','1665656fbdcfa','81OKYzUr','2910954jtONoj','pop','body','read','452210wcQJQW','indexOf','split','trim','6bMTUDy','[LLM\x20API\x20SSE]\x20','21AOOmdV','data'];a177_0x492d=function(){return _0x41ffb5;};return a177_0x492d();}