@treasuredata/tdx 2026.8.3 → 2026.8.5

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 (301) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.d.ts.map +1 -1
  14. package/dist/commands/cas-segment-command.js +1 -1
  15. package/dist/commands/cas-segment-command.js.map +1 -1
  16. package/dist/commands/chat-command.js +1 -1
  17. package/dist/commands/claude-command.js +1 -1
  18. package/dist/commands/claude-statusline-command.js +1 -1
  19. package/dist/commands/claude-usage-command.js +1 -1
  20. package/dist/commands/command.js +1 -1
  21. package/dist/commands/connection-command.js +1 -1
  22. package/dist/commands/databases.js +1 -1
  23. package/dist/commands/delivery-command.js +1 -1
  24. package/dist/commands/describe.js +1 -1
  25. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  26. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  27. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  28. package/dist/commands/engage-campaign-pull-command.js +1 -1
  29. package/dist/commands/engage-campaign-push-command.js +1 -1
  30. package/dist/commands/engage-campaign-validate-command.js +1 -1
  31. package/dist/commands/engage-command.js +1 -1
  32. package/dist/commands/engage-template-pull-command.js +1 -1
  33. package/dist/commands/engage-template-push-command.js +1 -1
  34. package/dist/commands/engage-template-validate-command.js +1 -1
  35. package/dist/commands/job-command.js +1 -1
  36. package/dist/commands/journey-command.js +1 -1
  37. package/dist/commands/journey-validate-command.js +1 -1
  38. package/dist/commands/llm-command.js +1 -1
  39. package/dist/commands/mcp-command.js +1 -1
  40. package/dist/commands/p13n-command.d.ts +11 -0
  41. package/dist/commands/p13n-command.d.ts.map +1 -0
  42. package/dist/commands/p13n-command.js +1 -0
  43. package/dist/commands/p13n-command.js.map +1 -0
  44. package/dist/commands/parent-segment-command.js +1 -1
  45. package/dist/commands/policy-command.js +1 -1
  46. package/dist/commands/profile-command.js +1 -1
  47. package/dist/commands/profiles-command.js +1 -1
  48. package/dist/commands/query-command.js +1 -1
  49. package/dist/commands/schedule-command.js +1 -1
  50. package/dist/commands/segment-command.js +1 -1
  51. package/dist/commands/segment-create-command.js +1 -1
  52. package/dist/commands/segment-fields-command.js +1 -1
  53. package/dist/commands/segment-move-command.js +1 -1
  54. package/dist/commands/segment-pull-command.js +1 -1
  55. package/dist/commands/segment-push-command.js +1 -1
  56. package/dist/commands/segment-update-command.js +1 -1
  57. package/dist/commands/segment-use-command.js +1 -1
  58. package/dist/commands/segment-validate-command.js +1 -1
  59. package/dist/commands/segments.js +1 -1
  60. package/dist/commands/show.js +1 -1
  61. package/dist/commands/status-command.js +1 -1
  62. package/dist/commands/table-deleted.js +1 -1
  63. package/dist/commands/tables.js +1 -1
  64. package/dist/commands/unset-command.js +1 -1
  65. package/dist/commands/upgrade-command.js +1 -1
  66. package/dist/commands/use-command.js +1 -1
  67. package/dist/commands/user-command.js +1 -1
  68. package/dist/commands/work-command.js +1 -1
  69. package/dist/commands/workflow-command.js +1 -1
  70. package/dist/core/auth.js +1 -1
  71. package/dist/core/command-output.js +1 -1
  72. package/dist/core/config.js +1 -1
  73. package/dist/core/connection-cache.js +1 -1
  74. package/dist/core/constants.js +1 -1
  75. package/dist/core/credential-cache.js +1 -1
  76. package/dist/core/global-context.d.ts.map +1 -1
  77. package/dist/core/global-context.js +1 -1
  78. package/dist/core/global-context.js.map +1 -1
  79. package/dist/core/keychain.js +1 -1
  80. package/dist/core/oauth-keychain.js +1 -1
  81. package/dist/core/oauth.d.ts +9 -1
  82. package/dist/core/oauth.d.ts.map +1 -1
  83. package/dist/core/oauth.js +1 -1
  84. package/dist/core/oauth.js.map +1 -1
  85. package/dist/core/profile.js +1 -1
  86. package/dist/core/project-config.js +1 -1
  87. package/dist/core/session.js +1 -1
  88. package/dist/core/site-mismatch.js +1 -1
  89. package/dist/core/user-cache.js +1 -1
  90. package/dist/core/version.js +1 -1
  91. package/dist/index.js +1 -1
  92. package/dist/mcp/server.js +1 -1
  93. package/dist/mcp/tools/index.js +1 -1
  94. package/dist/mcp/tools/tdx-run.js +1 -1
  95. package/dist/mcp/tools/tdx-search.js +1 -1
  96. package/dist/mcp/tools/work-create-item.js +1 -1
  97. package/dist/mcp/utils.js +1 -1
  98. package/dist/proxy/claude-usage-tracker.js +1 -1
  99. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  100. package/dist/proxy/passthrough-server.js +1 -1
  101. package/dist/proxy/passthrough-server.js.map +1 -1
  102. package/dist/proxy/sse-usage-parser.js +1 -1
  103. package/dist/sdk/agent/agent-config.js +1 -1
  104. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  105. package/dist/sdk/agent/agent-yaml.js +1 -1
  106. package/dist/sdk/agent/test/evaluator.js +1 -1
  107. package/dist/sdk/agent/test/executor.js +1 -1
  108. package/dist/sdk/agent/test/index.js +1 -1
  109. package/dist/sdk/agent/test/output.js +1 -1
  110. package/dist/sdk/agent/test/parser.js +1 -1
  111. package/dist/sdk/agent/tool-target-registry.js +1 -1
  112. package/dist/sdk/api.js +1 -1
  113. package/dist/sdk/auth-token.d.ts +42 -6
  114. package/dist/sdk/auth-token.d.ts.map +1 -1
  115. package/dist/sdk/auth-token.js +1 -1
  116. package/dist/sdk/auth-token.js.map +1 -1
  117. package/dist/sdk/cas/cas-api-client.js +1 -1
  118. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  119. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  120. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  121. package/dist/sdk/cas/cas-segment-schema.d.ts +63 -0
  122. package/dist/sdk/cas/cas-segment-schema.d.ts.map +1 -0
  123. package/dist/sdk/cas/cas-segment-schema.js +1 -0
  124. package/dist/sdk/cas/cas-segment-schema.js.map +1 -0
  125. package/dist/sdk/cas/cas-segment-validator.d.ts +76 -0
  126. package/dist/sdk/cas/cas-segment-validator.d.ts.map +1 -0
  127. package/dist/sdk/cas/cas-segment-validator.js +1 -0
  128. package/dist/sdk/cas/cas-segment-validator.js.map +1 -0
  129. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  130. package/dist/sdk/cas/index.js +1 -1
  131. package/dist/sdk/cas/pull-workflow.js +1 -1
  132. package/dist/sdk/cas/push-workflow.js +1 -1
  133. package/dist/sdk/cas/validate-files.d.ts +23 -6
  134. package/dist/sdk/cas/validate-files.d.ts.map +1 -1
  135. package/dist/sdk/cas/validate-files.js +1 -1
  136. package/dist/sdk/cas/validate-files.js.map +1 -1
  137. package/dist/sdk/client/cdp-api-client.js +1 -1
  138. package/dist/sdk/client/delivery-api-client.js +1 -1
  139. package/dist/sdk/client/endpoints.d.ts +6 -0
  140. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  141. package/dist/sdk/client/endpoints.js +1 -1
  142. package/dist/sdk/client/endpoints.js.map +1 -1
  143. package/dist/sdk/client/engage-api-client.js +1 -1
  144. package/dist/sdk/client/http-client.js +1 -1
  145. package/dist/sdk/client/llm-api-client.js +1 -1
  146. package/dist/sdk/client/oauth-refresh.d.ts +11 -2
  147. package/dist/sdk/client/oauth-refresh.d.ts.map +1 -1
  148. package/dist/sdk/client/oauth-refresh.js +1 -1
  149. package/dist/sdk/client/oauth-refresh.js.map +1 -1
  150. package/dist/sdk/client/p13n-studio-api-client.d.ts +19 -0
  151. package/dist/sdk/client/p13n-studio-api-client.d.ts.map +1 -0
  152. package/dist/sdk/client/p13n-studio-api-client.js +1 -0
  153. package/dist/sdk/client/p13n-studio-api-client.js.map +1 -0
  154. package/dist/sdk/client/rate-limiter.js +1 -1
  155. package/dist/sdk/client/td-api-client.js +1 -1
  156. package/dist/sdk/client/trino-api-client.js +1 -1
  157. package/dist/sdk/client/workflow-client.js +1 -1
  158. package/dist/sdk/connection-validator.js +1 -1
  159. package/dist/sdk/connection.js +1 -1
  160. package/dist/sdk/delivery.js +1 -1
  161. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  162. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  163. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  164. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  165. package/dist/sdk/engage/campaign-pull.js +1 -1
  166. package/dist/sdk/engage/campaign-push.js +1 -1
  167. package/dist/sdk/engage/campaign-validator.js +1 -1
  168. package/dist/sdk/engage/campaign-yaml.js +1 -1
  169. package/dist/sdk/engage/template-pull.js +1 -1
  170. package/dist/sdk/engage/template-push.js +1 -1
  171. package/dist/sdk/engage/template-validator.js +1 -1
  172. package/dist/sdk/engage/template-yaml.js +1 -1
  173. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  174. package/dist/sdk/engage/types/campaign-def.js +1 -1
  175. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  176. package/dist/sdk/engage/types/template-schema.js +1 -1
  177. package/dist/sdk/engage.js +1 -1
  178. package/dist/sdk/errors.js +1 -1
  179. package/dist/sdk/index.d.ts +6 -0
  180. package/dist/sdk/index.d.ts.map +1 -1
  181. package/dist/sdk/index.js +1 -1
  182. package/dist/sdk/index.js.map +1 -1
  183. package/dist/sdk/io/index.js +1 -1
  184. package/dist/sdk/io/node-filesystem.js +1 -1
  185. package/dist/sdk/job.js +1 -1
  186. package/dist/sdk/journey.js +1 -1
  187. package/dist/sdk/llm/chat-cache.js +1 -1
  188. package/dist/sdk/llm/index.js +1 -1
  189. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  190. package/dist/sdk/llm/model-factors.js +1 -1
  191. package/dist/sdk/llm/user-settings.js +1 -1
  192. package/dist/sdk/p13n-studio.d.ts +13 -0
  193. package/dist/sdk/p13n-studio.d.ts.map +1 -0
  194. package/dist/sdk/p13n-studio.js +1 -0
  195. package/dist/sdk/p13n-studio.js.map +1 -0
  196. package/dist/sdk/personalization.js +1 -1
  197. package/dist/sdk/policy.js +1 -1
  198. package/dist/sdk/query/deleted-table-validation.js +1 -1
  199. package/dist/sdk/query/index.js +1 -1
  200. package/dist/sdk/query/sql-parser.js +1 -1
  201. package/dist/sdk/realtime.js +1 -1
  202. package/dist/sdk/schedule.js +1 -1
  203. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  204. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  205. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  206. package/dist/sdk/segment/fields-display.js +1 -1
  207. package/dist/sdk/segment/file-discovery.js +1 -1
  208. package/dist/sdk/segment/journey-utils.js +1 -1
  209. package/dist/sdk/segment/journey-validator.js +1 -1
  210. package/dist/sdk/segment/journey-yaml.js +1 -1
  211. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  212. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  213. package/dist/sdk/segment/pull-workflow.js +1 -1
  214. package/dist/sdk/segment/push-recovery.js +1 -1
  215. package/dist/sdk/segment/push-workflow.js +1 -1
  216. package/dist/sdk/segment/resolution-context.js +1 -1
  217. package/dist/sdk/segment/segment-path-parser.js +1 -1
  218. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  219. package/dist/sdk/segment/segment-validator.js +1 -1
  220. package/dist/sdk/segment/target-resolution.js +1 -1
  221. package/dist/sdk/segment/tdx-config.js +1 -1
  222. package/dist/sdk/segment/types/activation-schema.js +1 -1
  223. package/dist/sdk/segment/types/journey-def.js +1 -1
  224. package/dist/sdk/segment/types/journey-schema.js +1 -1
  225. package/dist/sdk/segment/types/segment-def.js +1 -1
  226. package/dist/sdk/segment/types/segment-schema.d.ts.map +1 -1
  227. package/dist/sdk/segment/types/segment-schema.js +1 -1
  228. package/dist/sdk/segment/types/segment-schema.js.map +1 -1
  229. package/dist/sdk/segment/validate-files.js +1 -1
  230. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  231. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  232. package/dist/sdk/segment/yaml-validator.js +1 -1
  233. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  234. package/dist/sdk/segment.js +1 -1
  235. package/dist/sdk/types/index.d.ts +2 -1
  236. package/dist/sdk/types/index.d.ts.map +1 -1
  237. package/dist/sdk/types/index.js +1 -1
  238. package/dist/sdk/types/index.js.map +1 -1
  239. package/dist/sdk/types/p13n-studio.d.ts +18 -0
  240. package/dist/sdk/types/p13n-studio.d.ts.map +1 -0
  241. package/dist/sdk/types/p13n-studio.js +1 -0
  242. package/dist/sdk/types/p13n-studio.js.map +1 -0
  243. package/dist/sdk/types/progress.js +1 -1
  244. package/dist/sdk/types/workspace.js +1 -1
  245. package/dist/sdk/user.js +1 -1
  246. package/dist/sdk/util/format-detector.js +1 -1
  247. package/dist/sdk/util/formatters.js +1 -1
  248. package/dist/sdk/util/index.js +1 -1
  249. package/dist/sdk/util/paginate.js +1 -1
  250. package/dist/sdk/util/tree-formatter.js +1 -1
  251. package/dist/sdk/util/tree-search.js +1 -1
  252. package/dist/sdk/workflow/archive-validation.js +1 -1
  253. package/dist/sdk/workflow/clone-workflow.js +1 -1
  254. package/dist/sdk/workflow/index.js +1 -1
  255. package/dist/sdk/workflow/pull-workflow.js +1 -1
  256. package/dist/sdk/workflow/push-workflow.js +1 -1
  257. package/dist/sdk/workflow/task-graph.js +1 -1
  258. package/dist/sdk/workflow/tdx-config.js +1 -1
  259. package/dist/sdk/workflow/workflow-utils.js +1 -1
  260. package/dist/sdk/workspace/access-tracker.js +1 -1
  261. package/dist/sdk/workspace/frontmatter.js +1 -1
  262. package/dist/sdk/workspace/git.js +1 -1
  263. package/dist/sdk/workspace/index.js +1 -1
  264. package/dist/sdk/workspace/templates.js +1 -1
  265. package/dist/sdk/workspace/weekly.js +1 -1
  266. package/dist/sdk/workspace/wikilinks.js +1 -1
  267. package/dist/test-utils/command-runner.js +1 -1
  268. package/dist/test-utils/factories.js +1 -1
  269. package/dist/test-utils/fixtures.js +1 -1
  270. package/dist/test-utils/http-mock.js +1 -1
  271. package/dist/test-utils/index.js +1 -1
  272. package/dist/utils/async.js +1 -1
  273. package/dist/utils/claude-code-state.js +1 -1
  274. package/dist/utils/colors.js +1 -1
  275. package/dist/utils/diff.js +1 -1
  276. package/dist/utils/file-permissions.js +1 -1
  277. package/dist/utils/file-reader.js +1 -1
  278. package/dist/utils/github-releases.js +1 -1
  279. package/dist/utils/global-cache.js +1 -1
  280. package/dist/utils/json-loader.js +1 -1
  281. package/dist/utils/local-cache.js +1 -1
  282. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  283. package/dist/utils/logger/formatters/index.js +1 -1
  284. package/dist/utils/logger/handlers/console-handler.js +1 -1
  285. package/dist/utils/logger/handlers/file-handler.js +1 -1
  286. package/dist/utils/logger/handlers/index.js +1 -1
  287. package/dist/utils/logger/handlers/null-handler.js +1 -1
  288. package/dist/utils/logger/index.js +1 -1
  289. package/dist/utils/logger/logger.js +1 -1
  290. package/dist/utils/logger/types.js +1 -1
  291. package/dist/utils/option-validation.js +1 -1
  292. package/dist/utils/process.js +1 -1
  293. package/dist/utils/prompt.js +1 -1
  294. package/dist/utils/proxy-fetch.js +1 -1
  295. package/dist/utils/spinner.js +1 -1
  296. package/dist/utils/sse-parser.js +1 -1
  297. package/dist/utils/string-utils.js +1 -1
  298. package/dist/utils/table-ref-parser.js +1 -1
  299. package/dist/utils/tdx-logger.js +1 -1
  300. package/dist/utils/version-check.js +1 -1
  301. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x45b8ae,_0x55c88f){const _0x439d73=a234_0x1e37,_0x353053=_0x45b8ae();while(!![]){try{const _0x13e674=-parseInt(_0x439d73(0x1a3))/0x1*(parseInt(_0x439d73(0x1ac))/0x2)+-parseInt(_0x439d73(0x19c))/0x3*(parseInt(_0x439d73(0x197))/0x4)+parseInt(_0x439d73(0x1aa))/0x5+-parseInt(_0x439d73(0x195))/0x6+parseInt(_0x439d73(0x1a5))/0x7+-parseInt(_0x439d73(0x193))/0x8+parseInt(_0x439d73(0x1a9))/0x9;if(_0x13e674===_0x55c88f)break;else _0x353053['push'](_0x353053['shift']());}catch(_0x3ac71c){_0x353053['push'](_0x353053['shift']());}}}(a234_0x8ab2,0x89308));import*as a234_0x2ab036 from'node:https';function a234_0x1e37(_0x22c405,_0x1d9660){_0x22c405=_0x22c405-0x191;const _0x8ab246=a234_0x8ab2();let _0x1e37df=_0x8ab246[_0x22c405];return _0x1e37df;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a234_0x8ab2(){const _0x44d188=['GitHub\x20API\x20returned\x20','6463068tGLVQq','tag_name','24692aCexud','/repos/','releases','parse','destroy','66YqxXdr','end','slice','timeout','resolve','/releases?per_page=20','error','70666RWiAMq','get','4724405JaAkLO','api.github.com','application/vnd.github+json','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','3263022biOvrS','5514020oLyctP','length','6MzLFtp','now','toString','data','set','fetchedAt','1226936fQTGwg'];a234_0x8ab2=function(){return _0x44d188;};return a234_0x8ab2();}export function fetchGitHubReleases(_0x41c30b,_0x1cb355,_0xc61b1f){const _0x1917ce=a234_0x1e37,_0x21d9e6=_0x41c30b+'/'+_0x1cb355,_0x543e29=cache[_0x1917ce(0x1a4)](_0x21d9e6);if(_0x543e29&&Date[_0x1917ce(0x1ad)]()-_0x543e29[_0x1917ce(0x192)]<CACHE_TTL_MS)return Promise[_0x1917ce(0x1a0)](_0x543e29[_0x1917ce(0x199)]);return new Promise((_0x456cf1,_0x697375)=>{const _0x15ecef=_0x1917ce,_0x2d7fe4={'hostname':_0x15ecef(0x1a6),'path':_0x15ecef(0x198)+_0x41c30b+'/'+_0x1cb355+_0x15ecef(0x1a1),'headers':{'User-Agent':_0xc61b1f,'Accept':_0x15ecef(0x1a7)},'timeout':REQUEST_TIMEOUT_MS},_0x359f7f=a234_0x2ab036[_0x15ecef(0x1a4)](_0x2d7fe4,_0x4e24a9=>{const _0x126fc4=_0x15ecef;let _0x3e0bbd='';_0x4e24a9['on'](_0x126fc4(0x1af),_0x4f99f0=>{const _0x1bf1c0=_0x126fc4;_0x3e0bbd+=_0x4f99f0[_0x1bf1c0(0x1ae)]();}),_0x4e24a9['on'](_0x126fc4(0x19d),()=>{const _0x5e10c9=_0x126fc4;if(_0x4e24a9['statusCode']!==0xc8){_0x697375(new Error(_0x5e10c9(0x194)+_0x4e24a9['statusCode']+':\x20'+_0x3e0bbd[_0x5e10c9(0x19e)](0x0,0xc8)));return;}try{const _0x233311=JSON[_0x5e10c9(0x19a)](_0x3e0bbd);cache[_0x5e10c9(0x191)](_0x21d9e6,{'releases':_0x233311,'fetchedAt':Date[_0x5e10c9(0x1ad)]()}),_0x456cf1(_0x233311);}catch(_0x5ce5fe){_0x697375(_0x5ce5fe);}});});_0x359f7f['on'](_0x15ecef(0x19f),()=>{const _0x445f98=_0x15ecef;_0x359f7f[_0x445f98(0x19b)](),_0x697375(new Error(_0x445f98(0x1a8)+REQUEST_TIMEOUT_MS+'ms'));}),_0x359f7f['on'](_0x15ecef(0x1a2),_0x697375);});}export async function resolveReleaseTag(_0xe6b0a6,_0x54f8ec,_0x2b484f,_0x24f5d9){const _0x22a7ac=a234_0x1e37;if(_0xe6b0a6==='next')return null;const _0x57e93f=await fetchGitHubReleases(_0x54f8ec,_0x2b484f,_0x24f5d9);if(_0x57e93f[_0x22a7ac(0x1ab)]===0x0)return null;const _0x276596=_0x57e93f['find'](_0x590e11=>!_0x590e11['prerelease']);return _0x276596?_0x276596[_0x22a7ac(0x196)]:null;}
1
+ (function(_0x408b78,_0x2f6fe1){const _0x5ea674=a240_0x5e40,_0x46ca68=_0x408b78();while(!![]){try{const _0x1d3882=parseInt(_0x5ea674(0x1a0))/0x1+parseInt(_0x5ea674(0x193))/0x2+-parseInt(_0x5ea674(0x1a8))/0x3+parseInt(_0x5ea674(0x199))/0x4+-parseInt(_0x5ea674(0x192))/0x5+-parseInt(_0x5ea674(0x1a2))/0x6*(-parseInt(_0x5ea674(0x1a3))/0x7)+parseInt(_0x5ea674(0x1a9))/0x8*(parseInt(_0x5ea674(0x1ad))/0x9);if(_0x1d3882===_0x2f6fe1)break;else _0x46ca68['push'](_0x46ca68['shift']());}catch(_0x574287){_0x46ca68['push'](_0x46ca68['shift']());}}}(a240_0x9385,0xb5f89));import*as a240_0x3e3b95 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x58ae1d,_0x595ed0,_0x3fb711){const _0x57ccdb=a240_0x5e40,_0x20e7c7=_0x58ae1d+'/'+_0x595ed0,_0x13dd42=cache[_0x57ccdb(0x19f)](_0x20e7c7);if(_0x13dd42&&Date[_0x57ccdb(0x1ac)]()-_0x13dd42[_0x57ccdb(0x19c)]<CACHE_TTL_MS)return Promise[_0x57ccdb(0x198)](_0x13dd42['releases']);return new Promise((_0x3eaaa4,_0xdfc45b)=>{const _0x2917ce=_0x57ccdb,_0x36d44f={'hostname':_0x2917ce(0x1aa),'path':_0x2917ce(0x1a6)+_0x58ae1d+'/'+_0x595ed0+_0x2917ce(0x19a),'headers':{'User-Agent':_0x3fb711,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x2f1cb6=a240_0x3e3b95[_0x2917ce(0x19f)](_0x36d44f,_0x3191cf=>{const _0x572f13=_0x2917ce;let _0x3340e2='';_0x3191cf['on'](_0x572f13(0x19d),_0x581c85=>{const _0x43805d=_0x572f13;_0x3340e2+=_0x581c85[_0x43805d(0x196)]();}),_0x3191cf['on'](_0x572f13(0x1ab),()=>{const _0x5055ab=_0x572f13;if(_0x3191cf['statusCode']!==0xc8){_0xdfc45b(new Error(_0x5055ab(0x191)+_0x3191cf[_0x5055ab(0x19e)]+':\x20'+_0x3340e2[_0x5055ab(0x197)](0x0,0xc8)));return;}try{const _0x68bca4=JSON[_0x5055ab(0x1a5)](_0x3340e2);cache[_0x5055ab(0x19b)](_0x20e7c7,{'releases':_0x68bca4,'fetchedAt':Date['now']()}),_0x3eaaa4(_0x68bca4);}catch(_0x3b5255){_0xdfc45b(_0x3b5255);}});});_0x2f1cb6['on'](_0x2917ce(0x1a4),()=>{const _0x53731b=_0x2917ce;_0x2f1cb6[_0x53731b(0x195)](),_0xdfc45b(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x2f1cb6['on']('error',_0xdfc45b);});}function a240_0x5e40(_0x4a1756,_0x3ca886){_0x4a1756=_0x4a1756-0x190;const _0x9385b6=a240_0x9385();let _0x5e4022=_0x9385b6[_0x4a1756];return _0x5e4022;}export async function resolveReleaseTag(_0x56215c,_0x4ef01c,_0x143f0f,_0x7102c1){const _0x38bf66=a240_0x5e40;if(_0x56215c===_0x38bf66(0x1a1))return null;const _0x2cfc1b=await fetchGitHubReleases(_0x4ef01c,_0x143f0f,_0x7102c1);if(_0x2cfc1b[_0x38bf66(0x194)]===0x0)return null;const _0x64afc0=_0x2cfc1b[_0x38bf66(0x1a7)](_0x55f2ce=>!_0x55f2ce[_0x38bf66(0x190)]);return _0x64afc0?_0x64afc0['tag_name']:null;}function a240_0x9385(){const _0x3fb7d2=['/repos/','find','1301715xYicaB','97976ksAeig','api.github.com','end','now','180qCUMct','prerelease','GitHub\x20API\x20returned\x20','5181315EUIeXY','116986XcYKta','length','destroy','toString','slice','resolve','263476WzClvc','/releases?per_page=20','set','fetchedAt','data','statusCode','get','1244790gUvzdR','next','6Myglza','4210003XRszcU','timeout','parse'];a240_0x9385=function(){return _0x3fb7d2;};return a240_0x9385();}
@@ -1 +1 @@
1
- function a235_0x206e(){const _0x47a6e2=['{profile}','Global\x20cache\x20key\x20\x22','utf-8','replace','6zAKLed','4056565otXaAO','275492aKRIWg','36szjFoI','3579YbqLve','.cache','4836195fvFEPb','39qfbQfz','trim','\x22\x20already\x20registered\x20by\x20\x22','default','4589790YmpmBW','stringify','4353048RwtmTH','clear','4225396cabrET','get','parse'];a235_0x206e=function(){return _0x47a6e2;};return a235_0x206e();}(function(_0x44d9ac,_0x1fc2d8){const _0x248688=a235_0x51d1,_0x153734=_0x44d9ac();while(!![]){try{const _0x108619=-parseInt(_0x248688(0x1c2))/0x1*(parseInt(_0x248688(0x1c1))/0x2)+-parseInt(_0x248688(0x1c5))/0x3*(parseInt(_0x248688(0x1c0))/0x4)+parseInt(_0x248688(0x1bf))/0x5*(parseInt(_0x248688(0x1be))/0x6)+-parseInt(_0x248688(0x1b7))/0x7+parseInt(_0x248688(0x1cb))/0x8+parseInt(_0x248688(0x1c4))/0x9+parseInt(_0x248688(0x1c9))/0xa;if(_0x108619===_0x1fc2d8)break;else _0x153734['push'](_0x153734['shift']());}catch(_0x512995){_0x153734['push'](_0x153734['shift']());}}}(a235_0x206e,0xc079b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x10a75a=a235_0x51d1;return process.env.TDX_CACHE_DIR||join(homedir(),_0x10a75a(0x1c3),'tdx');}const registry=new Map();function a235_0x51d1(_0x3968a4,_0x46ff5f){_0x3968a4=_0x3968a4-0x1b7;const _0x206ec0=a235_0x206e();let _0x51d11c=_0x206ec0[_0x3968a4];return _0x51d11c;}export function registerGlobalCacheKey(_0xef2b3c,_0xc43132){const _0x4d904e=a235_0x51d1,_0x4225f7=registry[_0x4d904e(0x1b8)](_0xef2b3c);if(_0x4225f7&&_0x4225f7!==_0xc43132)throw new Error(_0x4d904e(0x1bb)+_0xef2b3c+_0x4d904e(0x1c7)+_0x4225f7+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0xc43132+'\x22');registry['set'](_0xef2b3c,_0xc43132);}export function getGlobalCachePath(_0x5db8c7){return join(getGlobalCacheDir(),_0x5db8c7);}function ensureGlobalCacheDir(){const _0x2fd98b=getGlobalCacheDir();!existsSync(_0x2fd98b)&&mkdirSync(_0x2fd98b,{'recursive':!![]});}function readCacheJson(_0x3893af){const _0x5057c6=a235_0x51d1,_0x244749=getGlobalCachePath(_0x3893af);if(!existsSync(_0x244749))return undefined;try{const _0x240c87=readFileSync(_0x244749,'utf-8');return JSON[_0x5057c6(0x1b9)](_0x240c87);}catch{return undefined;}}function writeCacheJson(_0x1d49f3,_0xe488d4){const _0x65a945=a235_0x51d1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1d49f3),JSON[_0x65a945(0x1ca)](_0xe488d4,null,0x2),_0x65a945(0x1bc));}function readCacheText(_0x54dc51){const _0x47fcad=a235_0x51d1,_0xcbc3d0=getGlobalCachePath(_0x54dc51);if(!existsSync(_0xcbc3d0))return undefined;try{return readFileSync(_0xcbc3d0,_0x47fcad(0x1bc));}catch{return undefined;}}function writeCacheText(_0x1b6368,_0x4205ff){const _0x2f5901=a235_0x51d1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1b6368),_0x4205ff,_0x2f5901(0x1bc));}function clearCache(_0x5bcc24){const _0x1b8368=getGlobalCachePath(_0x5bcc24);if(existsSync(_0x1b8368))try{unlinkSync(_0x1b8368);}catch{}}function cacheExists(_0x2de0a3){return existsSync(getGlobalCachePath(_0x2de0a3));}export function createGlobalCache(_0x5e4d5f,_0x22ae7e){return registerGlobalCacheKey(_0x5e4d5f,_0x22ae7e),{'read':()=>readCacheJson(_0x5e4d5f),'write':_0x5dff3d=>writeCacheJson(_0x5e4d5f,_0x5dff3d),'clear':()=>clearCache(_0x5e4d5f),'exists':()=>cacheExists(_0x5e4d5f),'path':()=>getGlobalCachePath(_0x5e4d5f)};}export function createGlobalTextCache(_0x1f143c,_0x4d59f5){const _0x3d92f0=a235_0x51d1;return registerGlobalCacheKey(_0x1f143c,_0x4d59f5),{'read':()=>readCacheText(_0x1f143c)?.[_0x3d92f0(0x1c6)]()||undefined,'write':_0x4f51ff=>writeCacheText(_0x1f143c,_0x4f51ff),'clear':()=>clearCache(_0x1f143c),'exists':()=>cacheExists(_0x1f143c),'path':()=>getGlobalCachePath(_0x1f143c)};}export function createProfileCache(_0x1fc3b0,_0x8875bc){const _0x5d31b5=_0x508b4e=>{const _0x5263b5=a235_0x51d1,_0x203e0b=_0x508b4e||_0x5263b5(0x1c8);return _0x1fc3b0[_0x5263b5(0x1bd)](_0x5263b5(0x1ba),_0x203e0b);};return{'read':_0x42c5fd=>{const _0x2e11d4=_0x5d31b5(_0x42c5fd);return registerGlobalCacheKey(_0x2e11d4,_0x8875bc),readCacheJson(_0x2e11d4);},'write':(_0x4fa839,_0x22bc90)=>{const _0x100abd=_0x5d31b5(_0x4fa839);registerGlobalCacheKey(_0x100abd,_0x8875bc),writeCacheJson(_0x100abd,_0x22bc90);},'clear':_0x1a883f=>{const _0x2777b2=_0x5d31b5(_0x1a883f);clearCache(_0x2777b2);},'exists':_0x3608ef=>{const _0x2c42f7=_0x5d31b5(_0x3608ef);return cacheExists(_0x2c42f7);},'path':_0x419569=>{const _0x2aff72=_0x5d31b5(_0x419569);return getGlobalCachePath(_0x2aff72);}};}export function createOptionalProfileCache(_0x245b70,_0x2a2a62,_0x4e60a4={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4e60a4,_0x35cbe5=_0x5d00e0=>{return _0x5d00e0?''+_0x245b70+profileSeparator+_0x5d00e0+suffix:''+_0x245b70+suffix;};return{'read':_0x58cf3f=>{const _0x872b14=_0x35cbe5(_0x58cf3f);return registerGlobalCacheKey(_0x872b14,_0x2a2a62),readCacheJson(_0x872b14);},'write':(_0x3248ac,_0xfaa95f)=>{const _0x1fe88f=_0x35cbe5(_0xfaa95f);registerGlobalCacheKey(_0x1fe88f,_0x2a2a62),writeCacheJson(_0x1fe88f,_0x3248ac);},'clear':_0x35b4e5=>{const _0x1ada9a=_0x35cbe5(_0x35b4e5);clearCache(_0x1ada9a);},'exists':_0x15d0c1=>{const _0x524689=_0x35cbe5(_0x15d0c1);return cacheExists(_0x524689);},'path':_0x854e=>{const _0x4df13f=_0x35cbe5(_0x854e);return getGlobalCachePath(_0x4df13f);}};}export function clearGlobalRegistry(){const _0x450863=a235_0x51d1;registry[_0x450863(0x1cc)]();}
1
+ (function(_0x296561,_0x210c71){const _0xf2bb03=a241_0x5535,_0x5a1dff=_0x296561();while(!![]){try{const _0x190199=parseInt(_0xf2bb03(0x142))/0x1+-parseInt(_0xf2bb03(0x140))/0x2+parseInt(_0xf2bb03(0x12d))/0x3*(parseInt(_0xf2bb03(0x135))/0x4)+parseInt(_0xf2bb03(0x137))/0x5+-parseInt(_0xf2bb03(0x139))/0x6*(-parseInt(_0xf2bb03(0x134))/0x7)+parseInt(_0xf2bb03(0x136))/0x8*(-parseInt(_0xf2bb03(0x132))/0x9)+-parseInt(_0xf2bb03(0x131))/0xa*(parseInt(_0xf2bb03(0x13d))/0xb);if(_0x190199===_0x210c71)break;else _0x5a1dff['push'](_0x5a1dff['shift']());}catch(_0x305c03){_0x5a1dff['push'](_0x5a1dff['shift']());}}}(a241_0x43ee,0x7f167));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x2be228=a241_0x5535;return process.env.TDX_CACHE_DIR||join(homedir(),_0x2be228(0x13c),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x286313,_0x22a871){const _0x4bd235=a241_0x5535,_0x591ff7=registry[_0x4bd235(0x13a)](_0x286313);if(_0x591ff7&&_0x591ff7!==_0x22a871)throw new Error(_0x4bd235(0x133)+_0x286313+_0x4bd235(0x12e)+_0x591ff7+_0x4bd235(0x13f)+_0x22a871+'\x22');registry[_0x4bd235(0x130)](_0x286313,_0x22a871);}export function getGlobalCachePath(_0x2542e3){return join(getGlobalCacheDir(),_0x2542e3);}function ensureGlobalCacheDir(){const _0x167129=getGlobalCacheDir();!existsSync(_0x167129)&&mkdirSync(_0x167129,{'recursive':!![]});}function readCacheJson(_0x3eee0c){const _0x1ccd15=getGlobalCachePath(_0x3eee0c);if(!existsSync(_0x1ccd15))return undefined;try{const _0xe4ba4e=readFileSync(_0x1ccd15,'utf-8');return JSON['parse'](_0xe4ba4e);}catch{return undefined;}}function writeCacheJson(_0x3c27e4,_0x17755e){const _0x15e264=a241_0x5535;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3c27e4),JSON['stringify'](_0x17755e,null,0x2),_0x15e264(0x13e));}function readCacheText(_0x12b0c4){const _0x22384d=getGlobalCachePath(_0x12b0c4);if(!existsSync(_0x22384d))return undefined;try{return readFileSync(_0x22384d,'utf-8');}catch{return undefined;}}function a241_0x43ee(){const _0xb23a2d=['9DNcKRg','Global\x20cache\x20key\x20\x22','2942191dNrxmA','777772yrDsYT','3948728Ckwlvq','4525845BnMVbW','default','6jQEnHB','get','{profile}','.cache','11hAzBrt','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','777834QniSyW','clear','268256OArvbM','3VPnNoa','\x22\x20already\x20registered\x20by\x20\x22','replace','set','3851220gENHBW'];a241_0x43ee=function(){return _0xb23a2d;};return a241_0x43ee();}function writeCacheText(_0x26bcad,_0x1e6392){const _0x431d6d=a241_0x5535;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x26bcad),_0x1e6392,_0x431d6d(0x13e));}function clearCache(_0x597b21){const _0x170e3d=getGlobalCachePath(_0x597b21);if(existsSync(_0x170e3d))try{unlinkSync(_0x170e3d);}catch{}}function cacheExists(_0x4467e7){return existsSync(getGlobalCachePath(_0x4467e7));}export function createGlobalCache(_0x1809f7,_0x1d3080){return registerGlobalCacheKey(_0x1809f7,_0x1d3080),{'read':()=>readCacheJson(_0x1809f7),'write':_0x3d56cf=>writeCacheJson(_0x1809f7,_0x3d56cf),'clear':()=>clearCache(_0x1809f7),'exists':()=>cacheExists(_0x1809f7),'path':()=>getGlobalCachePath(_0x1809f7)};}export function createGlobalTextCache(_0x4ad410,_0x1308b0){return registerGlobalCacheKey(_0x4ad410,_0x1308b0),{'read':()=>readCacheText(_0x4ad410)?.['trim']()||undefined,'write':_0xdb4226=>writeCacheText(_0x4ad410,_0xdb4226),'clear':()=>clearCache(_0x4ad410),'exists':()=>cacheExists(_0x4ad410),'path':()=>getGlobalCachePath(_0x4ad410)};}export function createProfileCache(_0x58652b,_0x38e353){const _0x57009b=_0x264887=>{const _0x351c4e=a241_0x5535,_0x2bbf0c=_0x264887||_0x351c4e(0x138);return _0x58652b[_0x351c4e(0x12f)](_0x351c4e(0x13b),_0x2bbf0c);};return{'read':_0x3a9644=>{const _0x4158c6=_0x57009b(_0x3a9644);return registerGlobalCacheKey(_0x4158c6,_0x38e353),readCacheJson(_0x4158c6);},'write':(_0x4a9199,_0x890364)=>{const _0x27c8f0=_0x57009b(_0x4a9199);registerGlobalCacheKey(_0x27c8f0,_0x38e353),writeCacheJson(_0x27c8f0,_0x890364);},'clear':_0x2447b5=>{const _0x344584=_0x57009b(_0x2447b5);clearCache(_0x344584);},'exists':_0x50ac22=>{const _0x5b46dc=_0x57009b(_0x50ac22);return cacheExists(_0x5b46dc);},'path':_0x26e95d=>{const _0x432e99=_0x57009b(_0x26e95d);return getGlobalCachePath(_0x432e99);}};}export function createOptionalProfileCache(_0x2533fd,_0x58001d,_0x2dc0b6={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2dc0b6,_0x3dad14=_0x3c0442=>{return _0x3c0442?''+_0x2533fd+profileSeparator+_0x3c0442+suffix:''+_0x2533fd+suffix;};return{'read':_0xf7605e=>{const _0x4b3d3f=_0x3dad14(_0xf7605e);return registerGlobalCacheKey(_0x4b3d3f,_0x58001d),readCacheJson(_0x4b3d3f);},'write':(_0x170ce6,_0x4d61e9)=>{const _0x548fa0=_0x3dad14(_0x4d61e9);registerGlobalCacheKey(_0x548fa0,_0x58001d),writeCacheJson(_0x548fa0,_0x170ce6);},'clear':_0x31e86b=>{const _0x4c947d=_0x3dad14(_0x31e86b);clearCache(_0x4c947d);},'exists':_0x7cc0e4=>{const _0x5b355a=_0x3dad14(_0x7cc0e4);return cacheExists(_0x5b355a);},'path':_0xb7a2a2=>{const _0x3bd8fa=_0x3dad14(_0xb7a2a2);return getGlobalCachePath(_0x3bd8fa);}};}function a241_0x5535(_0x2d67e6,_0x5b013c){_0x2d67e6=_0x2d67e6-0x12d;const _0x43ee93=a241_0x43ee();let _0x5535ef=_0x43ee93[_0x2d67e6];return _0x5535ef;}export function clearGlobalRegistry(){const _0x4c24ef=a241_0x5535;registry[_0x4c24ef(0x141)]();}
@@ -1 +1 @@
1
- (function(_0x402672,_0x52679c){const _0x3bc599=a236_0x45d2,_0x27d4f7=_0x402672();while(!![]){try{const _0x4ced70=-parseInt(_0x3bc599(0x117))/0x1*(-parseInt(_0x3bc599(0x11a))/0x2)+parseInt(_0x3bc599(0x11e))/0x3*(-parseInt(_0x3bc599(0x119))/0x4)+parseInt(_0x3bc599(0x11f))/0x5+-parseInt(_0x3bc599(0x11d))/0x6*(-parseInt(_0x3bc599(0x124))/0x7)+parseInt(_0x3bc599(0x128))/0x8+parseInt(_0x3bc599(0x11c))/0x9+-parseInt(_0x3bc599(0x116))/0xa;if(_0x4ced70===_0x52679c)break;else _0x27d4f7['push'](_0x27d4f7['shift']());}catch(_0x34c31b){_0x27d4f7['push'](_0x27d4f7['shift']());}}}(a236_0x1c14,0xd1d12));import{readFile}from'fs/promises';function a236_0x45d2(_0x37ce26,_0x540057){_0x37ce26=_0x37ce26-0x112;const _0x1c1476=a236_0x1c14();let _0x45d2ea=_0x1c1476[_0x37ce26];return _0x45d2ea;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0xd2b9e5,_0x1d1583){const _0x37d075=a236_0x45d2;try{if(_0x1d1583){const _0x4b4cab=await readFile(_0xd2b9e5,'utf-8');try{return JSON[_0x37d075(0x115)](_0x4b4cab);}catch(_0x36a14a){throw new SDKError(ErrorCode[_0x37d075(0x114)],_0x37d075(0x129)+_0xd2b9e5+_0x37d075(0x127)+(_0x36a14a instanceof Error?_0x36a14a[_0x37d075(0x125)]:String(_0x36a14a)));}}else try{return JSON[_0x37d075(0x115)](_0xd2b9e5);}catch(_0x37ed48){throw new SDKError(ErrorCode[_0x37d075(0x114)],'Invalid\x20JSON\x20string:\x20'+(_0x37ed48 instanceof Error?_0x37ed48[_0x37d075(0x125)]:String(_0x37ed48)));}}catch(_0x480190){if(_0x480190 instanceof SDKError)throw _0x480190;if(_0x480190 instanceof Error&&_0x37d075(0x123)in _0x480190){const _0xb19bc6=_0x480190;if(_0xb19bc6[_0x37d075(0x123)]===_0x37d075(0x11b))throw new SDKError(ErrorCode[_0x37d075(0x121)],_0x37d075(0x122)+_0xd2b9e5);else{if(_0xb19bc6['code']===_0x37d075(0x113))throw new SDKError(ErrorCode[_0x37d075(0x118)],_0x37d075(0x12a)+_0xd2b9e5);}}throw new SDKError(ErrorCode[_0x37d075(0x112)],_0x37d075(0x126)+(_0x480190 instanceof Error?_0x480190[_0x37d075(0x125)]:String(_0x480190)));}}function a236_0x1c14(){const _0x128e9d=['EACCES','INVALID_ARGUMENT','parse','14034320ybhpyY','11ApWMQi','PERMISSION_DENIED','774028NhkMzM','8348MEoiYr','ENOENT','3092148DAnGbU','930UDBAAS','3dEqWKU','3397275dBXLHY','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','NOT_FOUND','File\x20not\x20found:\x20','code','40201BBwAse','message','Failed\x20to\x20load\x20JSON:\x20','\x27:\x20','3977944RfvHcK','Invalid\x20JSON\x20in\x20file\x20\x27','Permission\x20denied\x20reading\x20file:\x20','INTERNAL'];a236_0x1c14=function(){return _0x128e9d;};return a236_0x1c14();}export async function loadJSONFromOptions(_0x62ed92,_0x2ec235){const _0x3a8341=a236_0x45d2;if(_0x62ed92&&_0x2ec235)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x3a8341(0x120));if(_0x62ed92)return await loadJSON(_0x62ed92,![]);if(_0x2ec235)return await loadJSON(_0x2ec235,!![]);return undefined;}
1
+ (function(_0x4a3228,_0x37e48e){const _0x3ae5e6=a242_0xb538,_0x312a85=_0x4a3228();while(!![]){try{const _0x5ad70a=-parseInt(_0x3ae5e6(0x1ab))/0x1+parseInt(_0x3ae5e6(0x1ae))/0x2+-parseInt(_0x3ae5e6(0x1b8))/0x3+-parseInt(_0x3ae5e6(0x1ac))/0x4+-parseInt(_0x3ae5e6(0x1af))/0x5+parseInt(_0x3ae5e6(0x1b4))/0x6+parseInt(_0x3ae5e6(0x1a7))/0x7;if(_0x5ad70a===_0x37e48e)break;else _0x312a85['push'](_0x312a85['shift']());}catch(_0x5ac478){_0x312a85['push'](_0x312a85['shift']());}}}(a242_0x34bb,0x658f3));function a242_0x34bb(){const _0x45999f=['EACCES','Invalid\x20JSON\x20in\x20file\x20\x27','1281780kuenjV','PERMISSION_DENIED','NOT_FOUND','parse','1990560mNiUCD','message','INVALID_ARGUMENT','11099102wewJfz','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','utf-8','code','186383nrhASC','1280540kGSGUU','Invalid\x20JSON\x20string:\x20','295346rHSFtJ','1804320aidamO','ENOENT','\x27:\x20'];a242_0x34bb=function(){return _0x45999f;};return a242_0x34bb();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a242_0xb538(_0x24d1a8,_0xd36b2c){_0x24d1a8=_0x24d1a8-0x1a5;const _0x34bb47=a242_0x34bb();let _0xb538da=_0x34bb47[_0x24d1a8];return _0xb538da;}export async function loadJSON(_0x549c08,_0x3ef1f1){const _0xd861d8=a242_0xb538;try{if(_0x3ef1f1){const _0x292303=await readFile(_0x549c08,_0xd861d8(0x1a9));try{return JSON[_0xd861d8(0x1b7)](_0x292303);}catch(_0x532c90){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xd861d8(0x1b3)+_0x549c08+_0xd861d8(0x1b1)+(_0x532c90 instanceof Error?_0x532c90[_0xd861d8(0x1a5)]:String(_0x532c90)));}}else try{return JSON[_0xd861d8(0x1b7)](_0x549c08);}catch(_0x4f8429){throw new SDKError(ErrorCode[_0xd861d8(0x1a6)],_0xd861d8(0x1ad)+(_0x4f8429 instanceof Error?_0x4f8429[_0xd861d8(0x1a5)]:String(_0x4f8429)));}}catch(_0x3a2721){if(_0x3a2721 instanceof SDKError)throw _0x3a2721;if(_0x3a2721 instanceof Error&&_0xd861d8(0x1aa)in _0x3a2721){const _0x1b5773=_0x3a2721;if(_0x1b5773[_0xd861d8(0x1aa)]===_0xd861d8(0x1b0))throw new SDKError(ErrorCode[_0xd861d8(0x1b6)],'File\x20not\x20found:\x20'+_0x549c08);else{if(_0x1b5773[_0xd861d8(0x1aa)]===_0xd861d8(0x1b2))throw new SDKError(ErrorCode[_0xd861d8(0x1b5)],'Permission\x20denied\x20reading\x20file:\x20'+_0x549c08);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3a2721 instanceof Error?_0x3a2721['message']:String(_0x3a2721)));}}export async function loadJSONFromOptions(_0x7002f1,_0x322c82){const _0x395477=a242_0xb538;if(_0x7002f1&&_0x322c82)throw new SDKError(ErrorCode[_0x395477(0x1a6)],_0x395477(0x1a8));if(_0x7002f1)return await loadJSON(_0x7002f1,![]);if(_0x322c82)return await loadJSON(_0x322c82,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x306bca,_0x45964){const _0x166330=a237_0xcf1c,_0x26d03e=_0x306bca();while(!![]){try{const _0x33de8b=parseInt(_0x166330(0xc6))/0x1+parseInt(_0x166330(0xc0))/0x2*(-parseInt(_0x166330(0xbb))/0x3)+parseInt(_0x166330(0xc1))/0x4*(-parseInt(_0x166330(0xb8))/0x5)+parseInt(_0x166330(0xbc))/0x6*(-parseInt(_0x166330(0xbf))/0x7)+parseInt(_0x166330(0xb7))/0x8*(-parseInt(_0x166330(0xc2))/0x9)+-parseInt(_0x166330(0xc5))/0xa+parseInt(_0x166330(0xbd))/0xb;if(_0x33de8b===_0x45964)break;else _0x26d03e['push'](_0x26d03e['shift']());}catch(_0x45cf33){_0x26d03e['push'](_0x26d03e['shift']());}}}(a237_0x5e43,0x2358d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x4e6054,_0x359612){const _0x5c48dc=a237_0xcf1c,_0x4c5e2f=registry[_0x5c48dc(0xc4)](_0x4e6054);if(_0x4c5e2f&&_0x4c5e2f!==_0x359612)throw new Error(_0x5c48dc(0xba)+_0x4e6054+_0x5c48dc(0xb9)+_0x4c5e2f+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x359612+'\x22');registry[_0x5c48dc(0xbe)](_0x4e6054,_0x359612);}export function getCacheDir(){const _0x5f27d2=process['cwd'](),_0x3f54ee=_0x5f27d2===parse(_0x5f27d2)['root']?homedir():_0x5f27d2;return join(_0x3f54ee,LOCAL_CACHE_DIR);}export function getCachePath(_0x51b661){return join(getCacheDir(),_0x51b661);}function ensureCacheDir(){const _0x2b5d59=getCacheDir();!existsSync(_0x2b5d59)&&mkdirSync(_0x2b5d59,{'recursive':!![]});}function readCacheJson(_0x3b2eeb){const _0x522178=getCachePath(_0x3b2eeb);if(!existsSync(_0x522178))return undefined;try{const _0x2507ce=readFileSync(_0x522178,'utf-8');return JSON['parse'](_0x2507ce);}catch{return undefined;}}function writeCacheJson(_0x4b3e2c,_0x27295f){const _0xd36cbd=a237_0xcf1c;ensureCacheDir(),writeFileSync(getCachePath(_0x4b3e2c),JSON['stringify'](_0x27295f,null,0x2),_0xd36cbd(0xc3));}function readCacheText(_0x345028){const _0x5b9c8f=a237_0xcf1c,_0x190296=getCachePath(_0x345028);if(!existsSync(_0x190296))return undefined;try{return readFileSync(_0x190296,_0x5b9c8f(0xc3));}catch{return undefined;}}function writeCacheText(_0x5dd8d6,_0x4d1b49){const _0x243937=a237_0xcf1c;ensureCacheDir(),writeFileSync(getCachePath(_0x5dd8d6),_0x4d1b49,_0x243937(0xc3));}function a237_0x5e43(){const _0x20bd8c=['48nhPxgZ','13194WmsZBX','13129754WSRFqh','set','259NwpEHV','30748NFONuD','10532Cywaye','18495LbWdRk','utf-8','get','2493830EkASih','8385jszCHB','784gRFxOD','530wOAHXv','\x22\x20already\x20registered\x20by\x20\x22','Cache\x20key\x20\x22'];a237_0x5e43=function(){return _0x20bd8c;};return a237_0x5e43();}function a237_0xcf1c(_0x2b1931,_0x191a39){_0x2b1931=_0x2b1931-0xb7;const _0x5e4335=a237_0x5e43();let _0xcf1c14=_0x5e4335[_0x2b1931];return _0xcf1c14;}function clearCache(_0x322441){const _0x7d4555=getCachePath(_0x322441);if(existsSync(_0x7d4555))try{unlinkSync(_0x7d4555);}catch{}}function cacheExists(_0x3eb1ed){return existsSync(getCachePath(_0x3eb1ed));}export function createCache(_0x103133,_0x465bd3){return registerCacheKey(_0x103133,_0x465bd3),{'read':()=>readCacheJson(_0x103133),'write':_0x259734=>writeCacheJson(_0x103133,_0x259734),'clear':()=>clearCache(_0x103133),'exists':()=>cacheExists(_0x103133),'path':()=>getCachePath(_0x103133)};}export function createTextCache(_0x188dbe,_0x511446){return registerCacheKey(_0x188dbe,_0x511446),{'read':()=>readCacheText(_0x188dbe)?.['trim']()||undefined,'write':_0x116496=>writeCacheText(_0x188dbe,_0x116496),'clear':()=>clearCache(_0x188dbe),'exists':()=>cacheExists(_0x188dbe),'path':()=>getCachePath(_0x188dbe)};}export function clearRegistry(){registry['clear']();}
1
+ const a243_0x1233ee=a243_0x3fa5;(function(_0x1671f9,_0x2d46c1){const _0x2cb9e5=a243_0x3fa5,_0x452f07=_0x1671f9();while(!![]){try{const _0x30f850=-parseInt(_0x2cb9e5(0x1b7))/0x1+-parseInt(_0x2cb9e5(0x1c6))/0x2*(-parseInt(_0x2cb9e5(0x1c1))/0x3)+parseInt(_0x2cb9e5(0x1cb))/0x4*(parseInt(_0x2cb9e5(0x1bb))/0x5)+parseInt(_0x2cb9e5(0x1bf))/0x6*(-parseInt(_0x2cb9e5(0x1b8))/0x7)+-parseInt(_0x2cb9e5(0x1be))/0x8*(parseInt(_0x2cb9e5(0x1b9))/0x9)+parseInt(_0x2cb9e5(0x1bd))/0xa*(parseInt(_0x2cb9e5(0x1c8))/0xb)+parseInt(_0x2cb9e5(0x1c0))/0xc;if(_0x30f850===_0x2d46c1)break;else _0x452f07['push'](_0x452f07['shift']());}catch(_0x13ae2c){_0x452f07['push'](_0x452f07['shift']());}}}(a243_0x1529,0xa983a));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a243_0x1233ee(0x1c9),registry=new Map();export function registerCacheKey(_0x2f5853,_0x1efe67){const _0x2897e5=a243_0x1233ee,_0x82223f=registry[_0x2897e5(0x1cd)](_0x2f5853);if(_0x82223f&&_0x82223f!==_0x1efe67)throw new Error('Cache\x20key\x20\x22'+_0x2f5853+_0x2897e5(0x1c5)+_0x82223f+_0x2897e5(0x1ba)+_0x1efe67+'\x22');registry[_0x2897e5(0x1c7)](_0x2f5853,_0x1efe67);}export function getCacheDir(){const _0x51d2e5=a243_0x1233ee,_0x4079d3=process[_0x51d2e5(0x1ca)](),_0x548aaf=_0x4079d3===parse(_0x4079d3)[_0x51d2e5(0x1c3)]?homedir():_0x4079d3;return join(_0x548aaf,LOCAL_CACHE_DIR);}export function getCachePath(_0x49ffc8){return join(getCacheDir(),_0x49ffc8);}function ensureCacheDir(){const _0x41b57f=getCacheDir();!existsSync(_0x41b57f)&&mkdirSync(_0x41b57f,{'recursive':!![]});}function readCacheJson(_0x56e5de){const _0xc35d86=a243_0x1233ee,_0x277362=getCachePath(_0x56e5de);if(!existsSync(_0x277362))return undefined;try{const _0x123714=readFileSync(_0x277362,_0xc35d86(0x1bc));return JSON[_0xc35d86(0x1cc)](_0x123714);}catch{return undefined;}}function writeCacheJson(_0x3de832,_0x37dac6){const _0x56f285=a243_0x1233ee;ensureCacheDir(),writeFileSync(getCachePath(_0x3de832),JSON[_0x56f285(0x1c2)](_0x37dac6,null,0x2),_0x56f285(0x1bc));}function readCacheText(_0x572075){const _0x4c33b1=a243_0x1233ee,_0x28c2e0=getCachePath(_0x572075);if(!existsSync(_0x28c2e0))return undefined;try{return readFileSync(_0x28c2e0,_0x4c33b1(0x1bc));}catch{return undefined;}}function writeCacheText(_0xb9ccc1,_0x3e257e){const _0x5ccfbe=a243_0x1233ee;ensureCacheDir(),writeFileSync(getCachePath(_0xb9ccc1),_0x3e257e,_0x5ccfbe(0x1bc));}function clearCache(_0x589d36){const _0x55bab6=getCachePath(_0x589d36);if(existsSync(_0x55bab6))try{unlinkSync(_0x55bab6);}catch{}}function cacheExists(_0x2dc128){return existsSync(getCachePath(_0x2dc128));}export function createCache(_0x1572b3,_0x5b30b7){return registerCacheKey(_0x1572b3,_0x5b30b7),{'read':()=>readCacheJson(_0x1572b3),'write':_0x1f6a43=>writeCacheJson(_0x1572b3,_0x1f6a43),'clear':()=>clearCache(_0x1572b3),'exists':()=>cacheExists(_0x1572b3),'path':()=>getCachePath(_0x1572b3)};}function a243_0x3fa5(_0x230ecb,_0x52e01b){_0x230ecb=_0x230ecb-0x1b7;const _0x1529ea=a243_0x1529();let _0x3fa5d5=_0x1529ea[_0x230ecb];return _0x3fa5d5;}export function createTextCache(_0x122072,_0x3a6b5e){return registerCacheKey(_0x122072,_0x3a6b5e),{'read':()=>readCacheText(_0x122072)?.['trim']()||undefined,'write':_0x5de716=>writeCacheText(_0x122072,_0x5de716),'clear':()=>clearCache(_0x122072),'exists':()=>cacheExists(_0x122072),'path':()=>getCachePath(_0x122072)};}export function clearRegistry(){const _0x22f023=a243_0x1233ee;registry[_0x22f023(0x1c4)]();}function a243_0x1529(){const _0x15e789=['120IrfagU','128988fzqeUF','14617764HLmrup','3378TDKsEV','stringify','root','clear','\x22\x20already\x20registered\x20by\x20\x22','1072LCsffm','set','781mUVFVl','.cache/tdx','cwd','12yUuGpc','parse','get','1318566pfrXNo','77ZiZiHy','82305NoMfdQ','\x22,\x20cannot\x20register\x20for\x20\x22','845120uvwkWL','utf-8','8140aPtuEK'];a243_0x1529=function(){return _0x15e789;};return a243_0x1529();}
@@ -1 +1 @@
1
- const a238_0x397b89=a238_0x4a90;(function(_0x3a82a1,_0xf4068){const _0x2a3be5=a238_0x4a90,_0x3679d1=_0x3a82a1();while(!![]){try{const _0x5dc716=-parseInt(_0x2a3be5(0xfb))/0x1+-parseInt(_0x2a3be5(0x10f))/0x2+parseInt(_0x2a3be5(0x104))/0x3+-parseInt(_0x2a3be5(0x110))/0x4+parseInt(_0x2a3be5(0xff))/0x5*(-parseInt(_0x2a3be5(0x10e))/0x6)+-parseInt(_0x2a3be5(0x10a))/0x7+parseInt(_0x2a3be5(0x109))/0x8;if(_0x5dc716===_0xf4068)break;else _0x3679d1['push'](_0x3679d1['shift']());}catch(_0x6fa9ad){_0x3679d1['push'](_0x3679d1['shift']());}}}(a238_0x11ea,0x5a952));function a238_0x4a90(_0x57631f,_0xe09a3b){_0x57631f=_0x57631f-0xf9;const _0x11ea44=a238_0x11ea();let _0x4a90b9=_0x11ea44[_0x57631f];return _0x4a90b9;}import a238_0x5a0f69 from'chalk';function a238_0x11ea(){const _0x22f9ca=['1961991PXEWCW','level','Chalk','yellow','INFO','10987616IhAaaQ','1341074zcLKpH','default','timestamp','component','588918npyGcn','1114430dmrKAw','1645152eFkmas','TRACE','red','chalk','colorLevel','398185aqppkr','green','colors','gray','5fjfMnu','blue','message','DEBUG','ERROR'];a238_0x11ea=function(){return _0x22f9ca;};return a238_0x11ea();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a238_0x5a0f69,ChalkClass=chalkModule[a238_0x397b89(0x106)]||chalkModule[a238_0x397b89(0x10b)]?.[a238_0x397b89(0x106)];export class DefaultLogFormatter{[a238_0x397b89(0xfd)];[a238_0x397b89(0xf9)];constructor(_0x5af8ec={}){const _0x1438e6=a238_0x397b89;this[_0x1438e6(0xfd)]=_0x5af8ec[_0x1438e6(0xfd)]??![],this[_0x1438e6(0xf9)]=_0x5af8ec[_0x1438e6(0xfd)]&&ChalkClass?new ChalkClass({'level':0x3}):a238_0x5a0f69;}['format'](_0x4954e8){const _0x54bf10=a238_0x397b89,_0xa8daa8=formatTimestamp(_0x4954e8[_0x54bf10(0x10c)]),_0x869572=logLevelToString(_0x4954e8[_0x54bf10(0x105)]);if(!this[_0x54bf10(0xfd)])return _0xa8daa8+'\x20['+_0x869572+']\x20['+_0x4954e8[_0x54bf10(0x10d)]+']\x20'+_0x4954e8[_0x54bf10(0x101)];const _0x494b7d=this[_0x54bf10(0xf9)]['dim'](_0xa8daa8),_0x5a5c99=this[_0x54bf10(0xfa)](_0x869572,_0x4954e8['level']),_0x55fcc7=this[_0x54bf10(0xf9)][_0x54bf10(0x100)]('['+_0x4954e8[_0x54bf10(0x10d)]+']');return _0x494b7d+'\x20'+_0x5a5c99+'\x20'+_0x55fcc7+'\x20'+_0x4954e8[_0x54bf10(0x101)];}[a238_0x397b89(0xfa)](_0xf0b30a,_0x448c43){const _0x3e3e3f=a238_0x397b89;switch(_0x448c43){case LogLevel[_0x3e3e3f(0x111)]:return this[_0x3e3e3f(0xf9)][_0x3e3e3f(0xfe)]('['+_0xf0b30a+']');case LogLevel[_0x3e3e3f(0x102)]:return this[_0x3e3e3f(0xf9)][_0x3e3e3f(0xfc)]('['+_0xf0b30a+']');case LogLevel[_0x3e3e3f(0x108)]:return this[_0x3e3e3f(0xf9)]['cyan']('['+_0xf0b30a+']');case LogLevel['WARN']:return this[_0x3e3e3f(0xf9)][_0x3e3e3f(0x107)]('['+_0xf0b30a+']');case LogLevel[_0x3e3e3f(0x103)]:return this['chalk'][_0x3e3e3f(0x112)]('['+_0xf0b30a+']');default:return'['+_0xf0b30a+']';}}}
1
+ const a244_0x58719a=a244_0x68eb;function a244_0x2ed3(){const _0x3bdc19=['TRACE','13xhKRBh','64982bTDaiP','5839821fshxXZ','yellow','level','gray','INFO','1509060ZDzfbd','Chalk','1339335EFPgIZ','1288336fayoIh','green','default','chalk','1952670yXKQBL','24094JUrNlU','message','red','blue','colors','colorLevel','ERROR','component','736uBognq'];a244_0x2ed3=function(){return _0x3bdc19;};return a244_0x2ed3();}(function(_0x37a5a1,_0x8db4f4){const _0x4a8c46=a244_0x68eb,_0x25f564=_0x37a5a1();while(!![]){try{const _0x44622f=-parseInt(_0x4a8c46(0x1fe))/0x1*(-parseInt(_0x4a8c46(0x1ff))/0x2)+parseInt(_0x4a8c46(0x1ee))/0x3+-parseInt(_0x4a8c46(0x1ef))/0x4+-parseInt(_0x4a8c46(0x1ec))/0x5+-parseInt(_0x4a8c46(0x1f3))/0x6+parseInt(_0x4a8c46(0x1f4))/0x7*(-parseInt(_0x4a8c46(0x1fc))/0x8)+parseInt(_0x4a8c46(0x200))/0x9;if(_0x44622f===_0x8db4f4)break;else _0x25f564['push'](_0x25f564['shift']());}catch(_0x2dcd77){_0x25f564['push'](_0x25f564['shift']());}}}(a244_0x2ed3,0x3d72c));function a244_0x68eb(_0x25fea8,_0x3594b2){_0x25fea8=_0x25fea8-0x1e9;const _0x2ed335=a244_0x2ed3();let _0x68eb07=_0x2ed335[_0x25fea8];return _0x68eb07;}import a244_0x1ea825 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a244_0x1ea825,ChalkClass=chalkModule[a244_0x58719a(0x1ed)]||chalkModule[a244_0x58719a(0x1f1)]?.[a244_0x58719a(0x1ed)];export class DefaultLogFormatter{['colors'];[a244_0x58719a(0x1f2)];constructor(_0x2f26b0={}){const _0x1a8242=a244_0x58719a;this['colors']=_0x2f26b0[_0x1a8242(0x1f8)]??![],this['chalk']=_0x2f26b0[_0x1a8242(0x1f8)]&&ChalkClass?new ChalkClass({'level':0x3}):a244_0x1ea825;}['format'](_0x534083){const _0x1c99a2=a244_0x58719a,_0x266eea=formatTimestamp(_0x534083['timestamp']),_0x2e3966=logLevelToString(_0x534083[_0x1c99a2(0x1e9)]);if(!this[_0x1c99a2(0x1f8)])return _0x266eea+'\x20['+_0x2e3966+']\x20['+_0x534083[_0x1c99a2(0x1fb)]+']\x20'+_0x534083[_0x1c99a2(0x1f5)];const _0x59bc1d=this[_0x1c99a2(0x1f2)]['dim'](_0x266eea),_0x566c60=this[_0x1c99a2(0x1f9)](_0x2e3966,_0x534083[_0x1c99a2(0x1e9)]),_0x4a309d=this['chalk'][_0x1c99a2(0x1f7)]('['+_0x534083['component']+']');return _0x59bc1d+'\x20'+_0x566c60+'\x20'+_0x4a309d+'\x20'+_0x534083[_0x1c99a2(0x1f5)];}[a244_0x58719a(0x1f9)](_0x5c2ce6,_0x585df3){const _0x167412=a244_0x58719a;switch(_0x585df3){case LogLevel[_0x167412(0x1fd)]:return this[_0x167412(0x1f2)][_0x167412(0x1ea)]('['+_0x5c2ce6+']');case LogLevel['DEBUG']:return this[_0x167412(0x1f2)][_0x167412(0x1f0)]('['+_0x5c2ce6+']');case LogLevel[_0x167412(0x1eb)]:return this[_0x167412(0x1f2)]['cyan']('['+_0x5c2ce6+']');case LogLevel['WARN']:return this[_0x167412(0x1f2)][_0x167412(0x201)]('['+_0x5c2ce6+']');case LogLevel[_0x167412(0x1fa)]:return this[_0x167412(0x1f2)][_0x167412(0x1f6)]('['+_0x5c2ce6+']');default:return'['+_0x5c2ce6+']';}}}
@@ -1 +1 @@
1
- function a239_0x79b1(){var _0x14208a=['18hWuZzf','848145KJkgMx','12gboxyt','404701EIuPBE','1725112KeGxAk','37065nEPnLg','36YmwXdC','52VIKTUk','220969mFOjam','96moBoMW','195950Xzexsh','716eWZJjw'];a239_0x79b1=function(){return _0x14208a;};return a239_0x79b1();}function a239_0x39c3(_0x258fe8,_0xfbfd7b){_0x258fe8=_0x258fe8-0x1d2;var _0x79b16a=a239_0x79b1();var _0x39c33e=_0x79b16a[_0x258fe8];return _0x39c33e;}(function(_0x1e4a86,_0x455e54){var _0x8f0447=a239_0x39c3,_0x314322=_0x1e4a86();while(!![]){try{var _0x88f25=-parseInt(_0x8f0447(0x1d5))/0x1*(-parseInt(_0x8f0447(0x1d9))/0x2)+-parseInt(_0x8f0447(0x1db))/0x3+parseInt(_0x8f0447(0x1d4))/0x4*(-parseInt(_0x8f0447(0x1d3))/0x5)+parseInt(_0x8f0447(0x1dc))/0x6*(-parseInt(_0x8f0447(0x1d6))/0x7)+parseInt(_0x8f0447(0x1d2))/0x8+-parseInt(_0x8f0447(0x1da))/0x9*(-parseInt(_0x8f0447(0x1d8))/0xa)+-parseInt(_0x8f0447(0x1dd))/0xb*(-parseInt(_0x8f0447(0x1d7))/0xc);if(_0x88f25===_0x455e54)break;else _0x314322['push'](_0x314322['shift']());}catch(_0x3f5787){_0x314322['push'](_0x314322['shift']());}}}(a239_0x79b1,0x25e47));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a245_0x8af8(_0x1a5eb5,_0x1bea39){_0x1a5eb5=_0x1a5eb5-0x98;var _0x2cf468=a245_0x2cf4();var _0x8af855=_0x2cf468[_0x1a5eb5];return _0x8af855;}(function(_0x609ef9,_0x26c99a){var _0x461c17=a245_0x8af8,_0x3d529b=_0x609ef9();while(!![]){try{var _0x500b81=parseInt(_0x461c17(0x9e))/0x1*(parseInt(_0x461c17(0xa0))/0x2)+-parseInt(_0x461c17(0x9f))/0x3*(-parseInt(_0x461c17(0x9a))/0x4)+parseInt(_0x461c17(0xa1))/0x5+parseInt(_0x461c17(0x99))/0x6*(-parseInt(_0x461c17(0x98))/0x7)+parseInt(_0x461c17(0xa2))/0x8*(-parseInt(_0x461c17(0x9c))/0x9)+parseInt(_0x461c17(0x9d))/0xa+parseInt(_0x461c17(0xa3))/0xb*(parseInt(_0x461c17(0x9b))/0xc);if(_0x500b81===_0x26c99a)break;else _0x3d529b['push'](_0x3d529b['shift']());}catch(_0x5e2c55){_0x3d529b['push'](_0x3d529b['shift']());}}}(a245_0x2cf4,0x79de5));export{DefaultLogFormatter}from'./default-formatter.js';function a245_0x2cf4(){var _0x471fef=['1GwKJQP','771UITHnF','1243810JYqfOR','867130uuadeY','1823496mcOUlP','11cbmlLg','4857587hTzebv','6dDIZuY','14540eaOEYH','133272DLnHfX','36fljEuO','3642300UAAcrP'];a245_0x2cf4=function(){return _0x471fef;};return a245_0x2cf4();}
@@ -1 +1 @@
1
- const a240_0x4872e2=a240_0x3ee2;(function(_0x2d0f03,_0x387e0e){const _0x9cd1cc=a240_0x3ee2,_0x4912c8=_0x2d0f03();while(!![]){try{const _0x5ad973=parseInt(_0x9cd1cc(0xfa))/0x1*(-parseInt(_0x9cd1cc(0x104))/0x2)+-parseInt(_0x9cd1cc(0xf9))/0x3+parseInt(_0x9cd1cc(0x102))/0x4+-parseInt(_0x9cd1cc(0x105))/0x5+parseInt(_0x9cd1cc(0xff))/0x6+parseInt(_0x9cd1cc(0xfc))/0x7+-parseInt(_0x9cd1cc(0x103))/0x8;if(_0x5ad973===_0x387e0e)break;else _0x4912c8['push'](_0x4912c8['shift']());}catch(_0x36c2fa){_0x4912c8['push'](_0x4912c8['shift']());}}}(a240_0x3642,0x70e44));function a240_0x3ee2(_0x1f1c45,_0x2b92e2){_0x1f1c45=_0x1f1c45-0xf7;const _0x3642af=a240_0x3642();let _0x3ee2a1=_0x3642af[_0x1f1c45];return _0x3ee2a1;}function a240_0x3642(){const _0x4a7466=['2061595WjdWKh','formatter','WARN','useStderr','format','314310lovmzr','359526niozwo','handle','6043905DTZKtG','colors','minLevel','1523484uYNJpl','log','level','2789096wHXZmu','3804672pHqJcC','2CUXtfD'];a240_0x3642=function(){return _0x4a7466;};return a240_0x3642();}import{LogLevel as a240_0x4a7b57}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a240_0x4872e2(0xfe)];[a240_0x4872e2(0xf7)];[a240_0x4872e2(0x106)];constructor(_0x486069={}){const _0x22c0ed=a240_0x4872e2;this['minLevel']=_0x486069['minLevel']??a240_0x4a7b57[_0x22c0ed(0x107)],this['useStderr']=_0x486069['useStderr']??!![],this[_0x22c0ed(0x106)]=new DefaultLogFormatter({'colors':_0x486069[_0x22c0ed(0xfd)]??!![]});}[a240_0x4872e2(0xfb)](_0xdb8f99){const _0x3999ef=a240_0x4872e2;if(_0xdb8f99[_0x3999ef(0x101)]<this[_0x3999ef(0xfe)])return;const _0x58d4fb=this[_0x3999ef(0x106)][_0x3999ef(0xf8)](_0xdb8f99);this[_0x3999ef(0xf7)]&&_0xdb8f99[_0x3999ef(0x101)]>=a240_0x4a7b57[_0x3999ef(0x107)]?console['error'](_0x58d4fb):console[_0x3999ef(0x100)](_0x58d4fb);}}
1
+ const a246_0xd8fd20=a246_0x3716;(function(_0x4fd97f,_0x329b0a){const _0x24583d=a246_0x3716,_0x5bba20=_0x4fd97f();while(!![]){try{const _0x114935=-parseInt(_0x24583d(0x143))/0x1*(parseInt(_0x24583d(0x140))/0x2)+parseInt(_0x24583d(0x14a))/0x3+-parseInt(_0x24583d(0x14d))/0x4*(parseInt(_0x24583d(0x14c))/0x5)+-parseInt(_0x24583d(0x148))/0x6*(-parseInt(_0x24583d(0x149))/0x7)+parseInt(_0x24583d(0x14f))/0x8*(-parseInt(_0x24583d(0x14b))/0x9)+-parseInt(_0x24583d(0x13c))/0xa+parseInt(_0x24583d(0x145))/0xb;if(_0x114935===_0x329b0a)break;else _0x5bba20['push'](_0x5bba20['shift']());}catch(_0x1c55bb){_0x5bba20['push'](_0x5bba20['shift']());}}}(a246_0x2092,0xc0a46));function a246_0x2092(){const _0x5e8408=['6XcAdgO','5407850nzCVnN','1003071qneVtZ','2935341SggZbf','1899465nngfmI','4hcKsOy','useStderr','8nAbGSb','1647930ukgoGu','colors','log','format','14896YDPAgu','formatter','level','201IlqjRx','handle','22550418JYUXlY','minLevel','WARN'];a246_0x2092=function(){return _0x5e8408;};return a246_0x2092();}function a246_0x3716(_0x2e46f4,_0x5559db){_0x2e46f4=_0x2e46f4-0x13c;const _0x20926a=a246_0x2092();let _0x37160d=_0x20926a[_0x2e46f4];return _0x37160d;}import{LogLevel as a246_0x485526}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a246_0xd8fd20(0x146)];['useStderr'];['formatter'];constructor(_0x5107ec={}){const _0x28e14c=a246_0xd8fd20;this[_0x28e14c(0x146)]=_0x5107ec[_0x28e14c(0x146)]??a246_0x485526[_0x28e14c(0x147)],this[_0x28e14c(0x14e)]=_0x5107ec[_0x28e14c(0x14e)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x5107ec[_0x28e14c(0x13d)]??!![]});}[a246_0xd8fd20(0x144)](_0x1b3f9a){const _0x2e173e=a246_0xd8fd20;if(_0x1b3f9a['level']<this[_0x2e173e(0x146)])return;const _0x1422fa=this[_0x2e173e(0x141)][_0x2e173e(0x13f)](_0x1b3f9a);this[_0x2e173e(0x14e)]&&_0x1b3f9a[_0x2e173e(0x142)]>=a246_0x485526['WARN']?console['error'](_0x1422fa):console[_0x2e173e(0x13e)](_0x1422fa);}}
@@ -1 +1 @@
1
- const a241_0x21872e=a241_0x20ba;function a241_0x20ba(_0x5c39c0,_0x5de0d9){_0x5c39c0=_0x5c39c0-0x9e;const _0x5472d6=a241_0x5472();let _0x20ba20=_0x5472d6[_0x5c39c0];return _0x20ba20;}(function(_0x5057e9,_0x17a4a2){const _0x1922a3=a241_0x20ba,_0x49a39f=_0x5057e9();while(!![]){try{const _0x3a982f=parseInt(_0x1922a3(0xa8))/0x1*(parseInt(_0x1922a3(0xa9))/0x2)+-parseInt(_0x1922a3(0xa4))/0x3+-parseInt(_0x1922a3(0xc1))/0x4*(parseInt(_0x1922a3(0xc0))/0x5)+-parseInt(_0x1922a3(0xaa))/0x6*(-parseInt(_0x1922a3(0xbd))/0x7)+-parseInt(_0x1922a3(0xad))/0x8+-parseInt(_0x1922a3(0xb1))/0x9+-parseInt(_0x1922a3(0xbc))/0xa*(-parseInt(_0x1922a3(0xb5))/0xb);if(_0x3a982f===_0x17a4a2)break;else _0x49a39f['push'](_0x49a39f['shift']());}catch(_0x592db9){_0x49a39f['push'](_0x49a39f['shift']());}}}(a241_0x5472,0x3d3bb));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';import{Logger}from'../logger.js';function a241_0x5472(){const _0x2ff7f9=['replace','mtime','Warning:\x20Failed\x20to\x20compress\x20','end','10AsLLaH','116578BjjTqN','handle','logBaseName','66695TuWUPR','4RgLTSV','rotate','message','.gz','.log','logs','logStream','logPath','\x5c$&','error','566355WhGZAV','logFileName','tdx.log','rotateOldLogs','69ckyahB','4778hPVjyY','126dennPc','close','includes','2128096FKceTa','filePath','filter','toISOString','162225sVWNZh','format','write','logDir','2446367iXbcOU','split','Warning:\x20Error\x20writing\x20to\x20'];a241_0x5472=function(){return _0x2ff7f9;};return a241_0x5472();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a241_0x21872e(0xa1)];[a241_0x21872e(0xb4)];['logFileName'];[a241_0x21872e(0xbf)];[a241_0x21872e(0xa0)]=null;[a241_0x21872e(0xc2)];constructor(_0x572cdc={}){const _0x553090=a241_0x21872e;this[_0x553090(0xa1)]=_0x572cdc[_0x553090(0xae)]??join(getGlobalCacheDir(),_0x553090(0x9f),_0x553090(0xa6)),this[_0x553090(0xb4)]=dirname(this[_0x553090(0xa1)]),this[_0x553090(0xa5)]=basename(this[_0x553090(0xa1)]),this[_0x553090(0xbf)]=this[_0x553090(0xa5)]['replace'](/\.log$/,''),this[_0x553090(0xc2)]=_0x572cdc[_0x553090(0xc2)]??!![];}async['init'](){const _0xd0403c=a241_0x21872e;try{await mkdir(this[_0xd0403c(0xb4)],{'recursive':!![]}),this[_0xd0403c(0xc2)]&&await this[_0xd0403c(0xa7)](),this[_0xd0403c(0xa0)]=createWriteStream(this['logPath'],{'flags':'a'}),this['logStream']['on'](_0xd0403c(0xa3),_0x4ee7ce=>{const _0x3b6ba3=_0xd0403c;console['error'](_0x3b6ba3(0xb7)+this['logFileName']+':',_0x4ee7ce[_0x3b6ba3(0xc3)]);});}catch(_0x27ed92){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x27ed92);}}[a241_0x21872e(0xbe)](_0x1ccb80){const _0x3495d7=a241_0x21872e;if(!this['logStream'])return;const _0xabc93=Logger[_0x3495d7(0xb2)](_0x1ccb80);this[_0x3495d7(0xa0)][_0x3495d7(0xb3)](_0xabc93+'\x0a');}async[a241_0x21872e(0xab)](){return new Promise(_0x5b3d71=>{const _0x3cca81=a241_0x20ba;this[_0x3cca81(0xa0)]?this[_0x3cca81(0xa0)][_0x3cca81(0xbb)](()=>{const _0x217a8c=_0x3cca81;this[_0x217a8c(0xa0)]=null,_0x5b3d71();}):_0x5b3d71();});}['getLogPath'](){const _0x2f9cdf=a241_0x21872e;return this[_0x2f9cdf(0xa1)];}async[a241_0x21872e(0xa7)](){const _0x1fe723=a241_0x21872e;try{const _0x7aca2=await readdir(this[_0x1fe723(0xb4)]),_0x2070d6=new Date()[_0x1fe723(0xb0)]()[_0x1fe723(0xb6)]('T')[0x0];if(_0x7aca2[_0x1fe723(0xac)](this[_0x1fe723(0xa5)])){const _0x3fa7d7=join(this[_0x1fe723(0xb4)],this['logFileName']),_0x3e3984=await stat(_0x3fa7d7),_0x5a6153=new Date(_0x3e3984[_0x1fe723(0xb9)])[_0x1fe723(0xb0)]()[_0x1fe723(0xb6)]('T')[0x0];if(_0x5a6153<_0x2070d6){const _0x31b307=join(this[_0x1fe723(0xb4)],this['logBaseName']+'-'+_0x5a6153+_0x1fe723(0x9e));await rename(_0x3fa7d7,_0x31b307);}}const _0x595b7d=await readdir(this[_0x1fe723(0xb4)]),_0xa7b38f=this[_0x1fe723(0xbf)][_0x1fe723(0xb8)](/[.*+?^${}()|[\]\\]/g,_0x1fe723(0xa2)),_0x4187e2=new RegExp('^'+_0xa7b38f+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x3e6b0a=_0x595b7d[_0x1fe723(0xaf)](_0x23efdd=>_0x4187e2['test'](_0x23efdd));for(const _0x3b72b9 of _0x3e6b0a){const _0x2f3f8e=join(this[_0x1fe723(0xb4)],_0x3b72b9),_0x5b1985=join(this[_0x1fe723(0xb4)],_0x3b72b9+_0x1fe723(0xc4));try{await pipeline(createReadStream(_0x2f3f8e),createGzip(),createWriteStream(_0x5b1985)),await unlink(_0x2f3f8e);}catch(_0x5168d6){console[_0x1fe723(0xa3)](_0x1fe723(0xba)+_0x3b72b9+':',_0x5168d6);}}}catch{}}}
1
+ const a247_0x1b5806=a247_0x3d74;(function(_0xde88af,_0x2df07e){const _0x49194b=a247_0x3d74,_0x49c436=_0xde88af();while(!![]){try{const _0x55b5e3=-parseInt(_0x49194b(0x146))/0x1+parseInt(_0x49194b(0x145))/0x2*(-parseInt(_0x49194b(0x144))/0x3)+parseInt(_0x49194b(0x140))/0x4*(parseInt(_0x49194b(0x138))/0x5)+-parseInt(_0x49194b(0x148))/0x6*(parseInt(_0x49194b(0x127))/0x7)+-parseInt(_0x49194b(0x135))/0x8*(parseInt(_0x49194b(0x13f))/0x9)+parseInt(_0x49194b(0x130))/0xa+parseInt(_0x49194b(0x134))/0xb;if(_0x55b5e3===_0x2df07e)break;else _0x49c436['push'](_0x49c436['shift']());}catch(_0x5692bb){_0x49c436['push'](_0x49c436['shift']());}}}(a247_0x2281,0xeffa1));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 a247_0x3d74(_0x4ad6b0,_0x264585){_0x4ad6b0=_0x4ad6b0-0x127;const _0x228125=a247_0x2281();let _0x3d742b=_0x228125[_0x4ad6b0];return _0x3d742b;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a247_0x1b5806(0x132)];[a247_0x1b5806(0x14b)];[a247_0x1b5806(0x136)];['logBaseName'];['logStream']=null;['rotate'];constructor(_0x462fe5={}){const _0x4cfbf7=a247_0x1b5806;this[_0x4cfbf7(0x132)]=_0x462fe5[_0x4cfbf7(0x139)]??join(getGlobalCacheDir(),_0x4cfbf7(0x133),_0x4cfbf7(0x131)),this['logDir']=dirname(this[_0x4cfbf7(0x132)]),this[_0x4cfbf7(0x136)]=basename(this[_0x4cfbf7(0x132)]),this['logBaseName']=this[_0x4cfbf7(0x136)][_0x4cfbf7(0x12b)](/\.log$/,''),this['rotate']=_0x462fe5[_0x4cfbf7(0x129)]??!![];}async[a247_0x1b5806(0x14c)](){const _0x18dcf3=a247_0x1b5806;try{await mkdir(this[_0x18dcf3(0x14b)],{'recursive':!![]}),this[_0x18dcf3(0x129)]&&await this['rotateOldLogs'](),this[_0x18dcf3(0x13c)]=createWriteStream(this[_0x18dcf3(0x132)],{'flags':'a'}),this[_0x18dcf3(0x13c)]['on'](_0x18dcf3(0x143),_0x3495d7=>{const _0x58e1bd=_0x18dcf3;console[_0x58e1bd(0x143)](_0x58e1bd(0x137)+this[_0x58e1bd(0x136)]+':',_0x3495d7[_0x58e1bd(0x13d)]);});}catch(_0x4327a8){console[_0x18dcf3(0x143)](_0x18dcf3(0x142),_0x4327a8);}}[a247_0x1b5806(0x147)](_0x401634){const _0x1b89fc=a247_0x1b5806;if(!this['logStream'])return;const _0x2aac04=Logger[_0x1b89fc(0x141)](_0x401634);this[_0x1b89fc(0x13c)]['write'](_0x2aac04+'\x0a');}async['close'](){return new Promise(_0x42cbad=>{const _0x5b326a=a247_0x3d74;this[_0x5b326a(0x13c)]?this[_0x5b326a(0x13c)][_0x5b326a(0x14a)](()=>{const _0x2ecc6b=_0x5b326a;this[_0x2ecc6b(0x13c)]=null,_0x42cbad();}):_0x42cbad();});}[a247_0x1b5806(0x12c)](){return this['logPath'];}async[a247_0x1b5806(0x12f)](){const _0x7ac24b=a247_0x1b5806;try{const _0x3e87cc=await readdir(this['logDir']),_0x56133b=new Date()[_0x7ac24b(0x14d)]()[_0x7ac24b(0x149)]('T')[0x0];if(_0x3e87cc['includes'](this[_0x7ac24b(0x136)])){const _0x2906cd=join(this['logDir'],this[_0x7ac24b(0x136)]),_0x5e9307=await stat(_0x2906cd),_0x4578f7=new Date(_0x5e9307['mtime'])[_0x7ac24b(0x14d)]()[_0x7ac24b(0x149)]('T')[0x0];if(_0x4578f7<_0x56133b){const _0x1fe9d6=join(this[_0x7ac24b(0x14b)],this[_0x7ac24b(0x13b)]+'-'+_0x4578f7+_0x7ac24b(0x13e));await rename(_0x2906cd,_0x1fe9d6);}}const _0x409b2c=await readdir(this[_0x7ac24b(0x14b)]),_0x304cee=this[_0x7ac24b(0x13b)][_0x7ac24b(0x12b)](/[.*+?^${}()|[\]\\]/g,_0x7ac24b(0x12e)),_0xa388bc=new RegExp('^'+_0x304cee+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x1824a0=_0x409b2c[_0x7ac24b(0x12d)](_0x536341=>_0xa388bc[_0x7ac24b(0x12a)](_0x536341));for(const _0x124ad3 of _0x1824a0){const _0x5e180a=join(this['logDir'],_0x124ad3),_0x41cbb1=join(this['logDir'],_0x124ad3+_0x7ac24b(0x13a));try{await pipeline(createReadStream(_0x5e180a),createGzip(),createWriteStream(_0x41cbb1)),await unlink(_0x5e180a);}catch(_0x4fc086){console['error'](_0x7ac24b(0x128)+_0x124ad3+':',_0x4fc086);}}}catch{}}}function a247_0x2281(){const _0x59f514=['tdx.log','logPath','logs','34648537fBKylI','204392IfKRFD','logFileName','Warning:\x20Error\x20writing\x20to\x20','32145ZDJsAb','filePath','.gz','logBaseName','logStream','message','.log','315SpeXYG','128fyBpGN','format','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','error','6lfLhbq','598274vbafgr','1019845MKjJQd','handle','726WcgAFG','split','end','logDir','init','toISOString','21623UcAWAc','Warning:\x20Failed\x20to\x20compress\x20','rotate','test','replace','getLogPath','filter','\x5c$&','rotateOldLogs','5134530uWlCss'];a247_0x2281=function(){return _0x59f514;};return a247_0x2281();}
@@ -1 +1 @@
1
- (function(_0x50e454,_0x5a9746){var _0x375def=a242_0x2113,_0x5d438f=_0x50e454();while(!![]){try{var _0x2f15bd=-parseInt(_0x375def(0x11c))/0x1+parseInt(_0x375def(0x11d))/0x2+parseInt(_0x375def(0x11f))/0x3*(parseInt(_0x375def(0x11b))/0x4)+-parseInt(_0x375def(0x121))/0x5+parseInt(_0x375def(0x122))/0x6+parseInt(_0x375def(0x11e))/0x7*(parseInt(_0x375def(0x120))/0x8)+-parseInt(_0x375def(0x123))/0x9;if(_0x2f15bd===_0x5a9746)break;else _0x5d438f['push'](_0x5d438f['shift']());}catch(_0x67214e){_0x5d438f['push'](_0x5d438f['shift']());}}}(a242_0xd39b,0x6ddf1));function a242_0x2113(_0x4ad49c,_0x373c20){_0x4ad49c=_0x4ad49c-0x11b;var _0xd39b9b=a242_0xd39b();var _0x21137a=_0xd39b9b[_0x4ad49c];return _0x21137a;}function a242_0xd39b(){var _0x374aa9=['599248jPxLRj','1099147JMBcfz','2577HlTmuV','40DcGqBF','336655TMAsNB','593682NsYbEI','1098342XVHrlk','940RgvLob','746139kxzxjL'];a242_0xd39b=function(){return _0x374aa9;};return a242_0xd39b();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x32b502,_0x8a8c2){var _0xdf8d7c=a248_0x164d,_0x20aac4=_0x32b502();while(!![]){try{var _0x580b72=parseInt(_0xdf8d7c(0x19f))/0x1*(-parseInt(_0xdf8d7c(0x1a1))/0x2)+-parseInt(_0xdf8d7c(0x19a))/0x3*(-parseInt(_0xdf8d7c(0x198))/0x4)+-parseInt(_0xdf8d7c(0x19b))/0x5+parseInt(_0xdf8d7c(0x1a0))/0x6*(parseInt(_0xdf8d7c(0x19c))/0x7)+parseInt(_0xdf8d7c(0x19e))/0x8+parseInt(_0xdf8d7c(0x199))/0x9+-parseInt(_0xdf8d7c(0x19d))/0xa*(parseInt(_0xdf8d7c(0x197))/0xb);if(_0x580b72===_0x8a8c2)break;else _0x20aac4['push'](_0x20aac4['shift']());}catch(_0x22ebd2){_0x20aac4['push'](_0x20aac4['shift']());}}}(a248_0x2032,0x7ea7f));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a248_0x164d(_0x3df272,_0x321f33){_0x3df272=_0x3df272-0x197;var _0x2032d5=a248_0x2032();var _0x164d21=_0x2032d5[_0x3df272];return _0x164d21;}function a248_0x2032(){var _0x14c797=['3696888nWEffw','7DMYnfE','12eGQdVo','55014RUHSWq','946xSTYQV','344nHtMws','6515577RDusGv','18228AAuNmu','784220SgMbPQ','394499OmRnKJ','110830zlMbAj'];a248_0x2032=function(){return _0x14c797;};return a248_0x2032();}
@@ -1 +1 @@
1
- (function(_0x27aeb8,_0x17a1fc){var _0x452d05=a243_0x9334,_0x12a865=_0x27aeb8();while(!![]){try{var _0x7ab107=parseInt(_0x452d05(0x1ce))/0x1*(-parseInt(_0x452d05(0x1d2))/0x2)+parseInt(_0x452d05(0x1d0))/0x3+parseInt(_0x452d05(0x1cd))/0x4+parseInt(_0x452d05(0x1cc))/0x5+-parseInt(_0x452d05(0x1d6))/0x6*(-parseInt(_0x452d05(0x1cf))/0x7)+parseInt(_0x452d05(0x1d3))/0x8*(-parseInt(_0x452d05(0x1d1))/0x9)+parseInt(_0x452d05(0x1d4))/0xa*(-parseInt(_0x452d05(0x1d5))/0xb);if(_0x7ab107===_0x17a1fc)break;else _0x12a865['push'](_0x12a865['shift']());}catch(_0x27a16c){_0x12a865['push'](_0x12a865['shift']());}}}(a243_0x4f0b,0x5b392));export class NullHandler{['handle'](_0x2fd00a){}}function a243_0x9334(_0x1144d6,_0x596d5d){_0x1144d6=_0x1144d6-0x1cc;var _0x4f0b8f=a243_0x4f0b();var _0x933488=_0x4f0b8f[_0x1144d6];return _0x933488;}function a243_0x4f0b(){var _0x53e7a9=['9yKvToF','62qMzhrW','2165816XuVASg','70JGcIqX','924957WABUTy','534ujFzSI','3162680Mflynp','1306816vCwzXh','10308Bsnrzo','41321MnAKkD','203781sDlRWz'];a243_0x4f0b=function(){return _0x53e7a9;};return a243_0x4f0b();}
1
+ function a249_0x1726(_0x1c2660,_0x47ee75){_0x1c2660=_0x1c2660-0xef;var _0x7c89c8=a249_0x7c89();var _0x17264c=_0x7c89c8[_0x1c2660];return _0x17264c;}var a249_0x40d887=a249_0x1726;function a249_0x7c89(){var _0x15b245=['168232LRWkqD','546uaDXMj','44190gCXmnV','3429LUfbVs','5TtkwrO','12xpHzAR','21mGYsvl','8909923bGXBZO','handle','524306gOGJEp','1612202wlYSIi','1065556bITqRj','4272888TDTLSb'];a249_0x7c89=function(){return _0x15b245;};return a249_0x7c89();}(function(_0x5310a2,_0x52c3bc){var _0x3fb4a3=a249_0x1726,_0x2bfc28=_0x5310a2();while(!![]){try{var _0x22830d=parseInt(_0x3fb4a3(0xf1))/0x1+parseInt(_0x3fb4a3(0xf0))/0x2*(-parseInt(_0x3fb4a3(0xfa))/0x3)+-parseInt(_0x3fb4a3(0xf2))/0x4*(parseInt(_0x3fb4a3(0xf8))/0x5)+parseInt(_0x3fb4a3(0xf3))/0x6+parseInt(_0x3fb4a3(0xf5))/0x7*(parseInt(_0x3fb4a3(0xf4))/0x8)+parseInt(_0x3fb4a3(0xf7))/0x9*(-parseInt(_0x3fb4a3(0xf6))/0xa)+-parseInt(_0x3fb4a3(0xfb))/0xb*(-parseInt(_0x3fb4a3(0xf9))/0xc);if(_0x22830d===_0x52c3bc)break;else _0x2bfc28['push'](_0x2bfc28['shift']());}catch(_0x3f0081){_0x2bfc28['push'](_0x2bfc28['shift']());}}}(a249_0x7c89,0xf1942));export class NullHandler{[a249_0x40d887(0xef)](_0x4dd84e){}}
@@ -1 +1 @@
1
- function a244_0x50b3(_0x196880,_0x36b5a0){_0x196880=_0x196880-0x18b;var _0x512ced=a244_0x512c();var _0x50b39b=_0x512ced[_0x196880];return _0x50b39b;}(function(_0x3a272d,_0x3d369f){var _0x55d864=a244_0x50b3,_0x1f3b6f=_0x3a272d();while(!![]){try{var _0x148a84=parseInt(_0x55d864(0x191))/0x1*(parseInt(_0x55d864(0x190))/0x2)+parseInt(_0x55d864(0x18d))/0x3+parseInt(_0x55d864(0x193))/0x4*(-parseInt(_0x55d864(0x192))/0x5)+-parseInt(_0x55d864(0x195))/0x6*(parseInt(_0x55d864(0x18c))/0x7)+parseInt(_0x55d864(0x18e))/0x8*(-parseInt(_0x55d864(0x18f))/0x9)+-parseInt(_0x55d864(0x194))/0xa+parseInt(_0x55d864(0x18b))/0xb;if(_0x148a84===_0x3d369f)break;else _0x1f3b6f['push'](_0x1f3b6f['shift']());}catch(_0x5b4fd2){_0x1f3b6f['push'](_0x1f3b6f['shift']());}}}(a244_0x512c,0x9ee92));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a244_0x512c(){var _0x1b573f=['59670caCodw','21602922fpAyqW','525xEXvmj','545412rsdZGu','5047304WsOPKe','9bRlKbb','289148vIEYzZ','9EOFxXT','4424980JUBmJh','4FuBBpv','5341900AadhOQ'];a244_0x512c=function(){return _0x1b573f;};return a244_0x512c();}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x406031,_0x13550b){var _0x581064=a250_0x11b6,_0x462f13=_0x406031();while(!![]){try{var _0x39ce6c=-parseInt(_0x581064(0xdc))/0x1*(parseInt(_0x581064(0xd8))/0x2)+-parseInt(_0x581064(0xd5))/0x3+-parseInt(_0x581064(0xd7))/0x4+-parseInt(_0x581064(0xdd))/0x5+-parseInt(_0x581064(0xda))/0x6+-parseInt(_0x581064(0xde))/0x7*(-parseInt(_0x581064(0xdb))/0x8)+-parseInt(_0x581064(0xd6))/0x9*(-parseInt(_0x581064(0xd9))/0xa);if(_0x39ce6c===_0x13550b)break;else _0x462f13['push'](_0x462f13['shift']());}catch(_0x3b0b52){_0x462f13['push'](_0x462f13['shift']());}}}(a250_0x3007,0x794e2));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a250_0x3007(){var _0xb68dd9=['2160066JZhBMN','6721192YHFzbF','132GCmLtb','2329930IlcBlc','7TzSePQ','2062977rzJzzL','17649qAhFxU','750672vKPQgP','5600BIVMXP','8810cFQrvB'];a250_0x3007=function(){return _0xb68dd9;};return a250_0x3007();}function a250_0x11b6(_0x2765b9,_0x54bd89){_0x2765b9=_0x2765b9-0xd5;var _0x300759=a250_0x3007();var _0x11b662=_0x300759[_0x2765b9];return _0x11b662;}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- function a245_0x3d61(_0x147f74,_0x57cbe5){_0x147f74=_0x147f74-0x149;const _0x45130b=a245_0x4513();let _0x3d6152=_0x45130b[_0x147f74];return _0x3d6152;}const a245_0x43fcda=a245_0x3d61;function a245_0x4513(){const _0x2abfdc=['dispatch','13PtPPDG','trace','debug','init','47782tbyJqe','shouldLog','error','stringify','log','getEffectiveLevel','loggers','setLogLevel','clear','cause','get','warn','message','1717512bDETgi','4sKAqCL','slice','string','pendingRecords','toISOString','has','close','5701565MksAYn','30xAEFKR','TRACE','function',']\x20[','INFO','WARN','341qQBgNi','defaultLevel','setDefaultLevel','map','767280lXmJMo','initialized','format','component','isInitialized','stack','133vcKWEf','shutdown','formatter','ERROR','timestamp','412908NXAsFQ','clearHandlers','length','DEBUG','name','3780180imbtnR','levelOverrides','reset','join','set','info','449721FyYvPE','handlers','push'];a245_0x4513=function(){return _0x2abfdc;};return a245_0x4513();}(function(_0x5d22bf,_0xbef4f0){const _0x166075=a245_0x3d61,_0x461f12=_0x5d22bf();while(!![]){try{const _0x4a5bb9=-parseInt(_0x166075(0x16f))/0x1*(parseInt(_0x166075(0x173))/0x2)+-parseInt(_0x166075(0x165))/0x3+-parseInt(_0x166075(0x181))/0x4*(parseInt(_0x166075(0x14a))/0x5)+parseInt(_0x166075(0x160))/0x6*(-parseInt(_0x166075(0x15b))/0x7)+parseInt(_0x166075(0x155))/0x8+parseInt(_0x166075(0x16b))/0x9*(parseInt(_0x166075(0x14b))/0xa)+parseInt(_0x166075(0x151))/0xb*(parseInt(_0x166075(0x180))/0xc);if(_0x4a5bb9===_0xbef4f0)break;else _0x461f12['push'](_0x461f12['shift']());}catch(_0x20c585){_0x461f12['push'](_0x461f12['shift']());}}}(a245_0x4513,0xa22a1));import{LogLevel as a245_0x4233e8,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a245_0x4233e8[a245_0x43fcda(0x14f)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x4ccc86){const _0x594a24=a245_0x43fcda;if(typeof _0x4ccc86==='string')return _0x4ccc86;if(_0x4ccc86 instanceof Error)return _0x4ccc86[_0x594a24(0x15a)]||_0x4ccc86['name']+':\x20'+_0x4ccc86[_0x594a24(0x17f)];try{return JSON[_0x594a24(0x176)](_0x4ccc86,(_0xf61e2c,_0x436973)=>{const _0x10187f=_0x594a24;if(_0x436973 instanceof Error)return{'name':_0x436973[_0x10187f(0x164)],'message':_0x436973[_0x10187f(0x17f)],'stack':_0x436973[_0x10187f(0x15a)],'cause':_0x436973[_0x10187f(0x17c)]};return _0x436973;});}catch{return String(_0x4ccc86);}}export class Logger{[a245_0x43fcda(0x158)];constructor(_0x3966f4){this['component']=_0x3966f4;}static['of'](_0x83a572){const _0x1e59cb=a245_0x43fcda,_0x50f006=typeof _0x83a572===_0x1e59cb(0x183)?_0x83a572:_0x83a572[_0x1e59cb(0x164)];let _0x37fbbe=state['loggers'][_0x1e59cb(0x17d)](_0x50f006);return!_0x37fbbe&&(_0x37fbbe=new Logger(_0x50f006),state[_0x1e59cb(0x179)]['set'](_0x50f006,_0x37fbbe)),_0x37fbbe;}static async[a245_0x43fcda(0x172)](_0x209f2f={}){const _0x16e108=a245_0x43fcda;state['defaultLevel']=_0x209f2f[_0x16e108(0x152)]??a245_0x4233e8['INFO'],state[_0x16e108(0x16c)]=_0x209f2f[_0x16e108(0x16c)]??[],state['formatter']=_0x209f2f[_0x16e108(0x15d)]??null,state['levelOverrides'][_0x16e108(0x17b)]();if(_0x209f2f['levelOverrides'])for(const [_0x8d2ece,_0x4bca4b]of Object['entries'](_0x209f2f[_0x16e108(0x166)])){state[_0x16e108(0x166)][_0x16e108(0x169)](_0x8d2ece,_0x4bca4b);}for(const _0xf7154e of state[_0x16e108(0x16c)]){_0xf7154e['init']&&await _0xf7154e['init']();}state[_0x16e108(0x156)]=!![];for(const _0x397973 of state[_0x16e108(0x184)]){Logger['dispatch'](_0x397973);}state[_0x16e108(0x184)]=[];}static[a245_0x43fcda(0x17a)](_0x573f31,_0x14cb71){const _0x28d976=a245_0x43fcda;state[_0x28d976(0x166)]['set'](_0x573f31,_0x14cb71);}static[a245_0x43fcda(0x153)](_0x4cf4a6){const _0x35e1a9=a245_0x43fcda;state[_0x35e1a9(0x152)]=_0x4cf4a6;}static['addHandler'](_0x3926f0){const _0x53b8b3=a245_0x43fcda;state[_0x53b8b3(0x16c)][_0x53b8b3(0x16d)](_0x3926f0),state[_0x53b8b3(0x156)]&&_0x3926f0['init']&&_0x3926f0['init']();}static[a245_0x43fcda(0x161)](){const _0x1abf53=a245_0x43fcda;state[_0x1abf53(0x16c)]=[];}static async[a245_0x43fcda(0x15c)](){const _0x563441=a245_0x43fcda;for(const _0x44afe3 of state[_0x563441(0x16c)]){_0x44afe3[_0x563441(0x149)]&&await _0x44afe3['close']();}state[_0x563441(0x16c)]=[],state['initialized']=![],state[_0x563441(0x179)]['clear'](),state[_0x563441(0x184)]=[];}static[a245_0x43fcda(0x167)](){const _0x1dc66e=a245_0x43fcda;state['initialized']=![],state['defaultLevel']=a245_0x4233e8[_0x1dc66e(0x14f)],state[_0x1dc66e(0x166)][_0x1dc66e(0x17b)](),state[_0x1dc66e(0x16c)]=[],state[_0x1dc66e(0x15d)]=null,state['loggers'][_0x1dc66e(0x17b)](),state['pendingRecords']=[];}static[a245_0x43fcda(0x159)](){const _0x5c0447=a245_0x43fcda;return state[_0x5c0447(0x156)];}static[a245_0x43fcda(0x178)](_0x1bb329){const _0x286d8e=a245_0x43fcda;if(state[_0x286d8e(0x166)][_0x286d8e(0x186)](_0x1bb329))return state[_0x286d8e(0x166)][_0x286d8e(0x17d)](_0x1bb329);const _0x21c7ad=_0x1bb329['split']('.');for(let _0x970418=_0x21c7ad[_0x286d8e(0x162)]-0x1;_0x970418>0x0;_0x970418--){const _0x280113=_0x21c7ad[_0x286d8e(0x182)](0x0,_0x970418)[_0x286d8e(0x168)]('.');if(state[_0x286d8e(0x166)][_0x286d8e(0x186)](_0x280113))return state[_0x286d8e(0x166)][_0x286d8e(0x17d)](_0x280113);}return state[_0x286d8e(0x152)];}[a245_0x43fcda(0x174)](_0x327af5){const _0x1ee63a=a245_0x43fcda,_0x27375d=Logger[_0x1ee63a(0x178)](this['component']);return _0x327af5>=_0x27375d;}static['dispatch'](_0x65851b){for(const _0x25e688 of state['handlers']){_0x25e688['handle'](_0x65851b);}}[a245_0x43fcda(0x177)](_0x403f7a,_0x2a2060){const _0x23c52e=a245_0x43fcda;if(!this[_0x23c52e(0x174)](_0x403f7a))return;const _0x30c3d1=_0x2a2060[_0x23c52e(0x154)](_0x485c96=>typeof _0x485c96===_0x23c52e(0x14d)?_0x485c96():_0x485c96),_0x27387f=_0x30c3d1[_0x23c52e(0x154)](safeStringify)[_0x23c52e(0x168)]('\x20'),_0x138cd7={'timestamp':new Date(),'level':_0x403f7a,'component':this[_0x23c52e(0x158)],'message':_0x27387f};if(!state[_0x23c52e(0x156)]){state['pendingRecords'][_0x23c52e(0x162)]<MAX_PENDING_RECORDS&&state[_0x23c52e(0x184)][_0x23c52e(0x16d)](_0x138cd7);return;}Logger[_0x23c52e(0x16e)](_0x138cd7);}[a245_0x43fcda(0x170)](..._0x2c949c){const _0x16bbba=a245_0x43fcda;this[_0x16bbba(0x177)](a245_0x4233e8[_0x16bbba(0x14c)],_0x2c949c);}[a245_0x43fcda(0x171)](..._0x147bea){const _0xfff1cd=a245_0x43fcda;this[_0xfff1cd(0x177)](a245_0x4233e8[_0xfff1cd(0x163)],_0x147bea);}[a245_0x43fcda(0x16a)](..._0x4b1b91){const _0x17a9be=a245_0x43fcda;this[_0x17a9be(0x177)](a245_0x4233e8[_0x17a9be(0x14f)],_0x4b1b91);}[a245_0x43fcda(0x17e)](..._0x46e6d4){const _0x3f44bf=a245_0x43fcda;this[_0x3f44bf(0x177)](a245_0x4233e8[_0x3f44bf(0x150)],_0x46e6d4);}[a245_0x43fcda(0x175)](..._0x34f57b){const _0x836ba1=a245_0x43fcda;this['log'](a245_0x4233e8[_0x836ba1(0x15e)],_0x34f57b);}static['getFormatter'](){const _0xed08da=a245_0x43fcda;return state[_0xed08da(0x15d)];}static[a245_0x43fcda(0x157)](_0x5e75e9){const _0x113ac5=a245_0x43fcda;if(state[_0x113ac5(0x15d)])return state[_0x113ac5(0x15d)][_0x113ac5(0x157)](_0x5e75e9);return _0x5e75e9[_0x113ac5(0x15f)][_0x113ac5(0x185)]()+'\x20['+logLevelToString(_0x5e75e9['level'])+_0x113ac5(0x14e)+_0x5e75e9[_0x113ac5(0x158)]+']\x20'+_0x5e75e9[_0x113ac5(0x17f)];}}
1
+ const a251_0x5ed677=a251_0x47a8;(function(_0x433de2,_0x55ff4e){const _0x2f8166=a251_0x47a8,_0x881387=_0x433de2();while(!![]){try{const _0x121cac=parseInt(_0x2f8166(0x16c))/0x1*(parseInt(_0x2f8166(0x15f))/0x2)+-parseInt(_0x2f8166(0x16a))/0x3*(-parseInt(_0x2f8166(0x186))/0x4)+-parseInt(_0x2f8166(0x185))/0x5+-parseInt(_0x2f8166(0x173))/0x6*(-parseInt(_0x2f8166(0x158))/0x7)+-parseInt(_0x2f8166(0x166))/0x8*(-parseInt(_0x2f8166(0x17e))/0x9)+-parseInt(_0x2f8166(0x18c))/0xa+parseInt(_0x2f8166(0x16d))/0xb;if(_0x121cac===_0x55ff4e)break;else _0x881387['push'](_0x881387['shift']());}catch(_0x95e34d){_0x881387['push'](_0x881387['shift']());}}}(a251_0x4c72,0xab45d));import{LogLevel as a251_0x52b22b,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a251_0x52b22b[a251_0x5ed677(0x17b)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x41e19f){const _0x1e8092=a251_0x5ed677;if(typeof _0x41e19f===_0x1e8092(0x15e))return _0x41e19f;if(_0x41e19f instanceof Error)return _0x41e19f[_0x1e8092(0x171)]||_0x41e19f[_0x1e8092(0x18b)]+':\x20'+_0x41e19f['message'];try{return JSON['stringify'](_0x41e19f,(_0x2f56d1,_0x28a024)=>{const _0x4bb992=_0x1e8092;if(_0x28a024 instanceof Error)return{'name':_0x28a024[_0x4bb992(0x18b)],'message':_0x28a024[_0x4bb992(0x161)],'stack':_0x28a024[_0x4bb992(0x171)],'cause':_0x28a024[_0x4bb992(0x164)]};return _0x28a024;});}catch{return String(_0x41e19f);}}function a251_0x47a8(_0x5705cb,_0x5990b7){_0x5705cb=_0x5705cb-0x157;const _0x4c725f=a251_0x4c72();let _0x47a8e6=_0x4c725f[_0x5705cb];return _0x47a8e6;}export class Logger{[a251_0x5ed677(0x184)];constructor(_0x3f32f1){const _0x5228fa=a251_0x5ed677;this[_0x5228fa(0x184)]=_0x3f32f1;}static['of'](_0x1c621f){const _0x379960=a251_0x5ed677,_0x55a127=typeof _0x1c621f===_0x379960(0x15e)?_0x1c621f:_0x1c621f[_0x379960(0x18b)];let _0x5a2722=state['loggers'][_0x379960(0x169)](_0x55a127);return!_0x5a2722&&(_0x5a2722=new Logger(_0x55a127),state[_0x379960(0x180)][_0x379960(0x17a)](_0x55a127,_0x5a2722)),_0x5a2722;}static async[a251_0x5ed677(0x15d)](_0x2a9c1a={}){const _0x949637=a251_0x5ed677;state['defaultLevel']=_0x2a9c1a[_0x949637(0x175)]??a251_0x52b22b[_0x949637(0x17b)],state[_0x949637(0x16e)]=_0x2a9c1a[_0x949637(0x16e)]??[],state[_0x949637(0x163)]=_0x2a9c1a[_0x949637(0x163)]??null,state[_0x949637(0x182)][_0x949637(0x176)]();if(_0x2a9c1a[_0x949637(0x182)])for(const [_0x3c13d8,_0x229164]of Object[_0x949637(0x165)](_0x2a9c1a[_0x949637(0x182)])){state[_0x949637(0x182)][_0x949637(0x17a)](_0x3c13d8,_0x229164);}for(const _0x28d808 of state[_0x949637(0x16e)]){_0x28d808[_0x949637(0x15d)]&&await _0x28d808['init']();}state[_0x949637(0x18f)]=!![];for(const _0x682f0f of state[_0x949637(0x15a)]){Logger[_0x949637(0x17d)](_0x682f0f);}state[_0x949637(0x15a)]=[];}static[a251_0x5ed677(0x160)](_0x52c194,_0x3b00b8){const _0x2c6ff3=a251_0x5ed677;state[_0x2c6ff3(0x182)][_0x2c6ff3(0x17a)](_0x52c194,_0x3b00b8);}static[a251_0x5ed677(0x189)](_0xb7f536){state['defaultLevel']=_0xb7f536;}static[a251_0x5ed677(0x190)](_0x572fb4){const _0xaee9e=a251_0x5ed677;state[_0xaee9e(0x16e)][_0xaee9e(0x181)](_0x572fb4),state[_0xaee9e(0x18f)]&&_0x572fb4[_0xaee9e(0x15d)]&&_0x572fb4[_0xaee9e(0x15d)]();}static[a251_0x5ed677(0x187)](){const _0x2dbff5=a251_0x5ed677;state[_0x2dbff5(0x16e)]=[];}static async[a251_0x5ed677(0x178)](){const _0x3a1856=a251_0x5ed677;for(const _0x5e3c00 of state['handlers']){_0x5e3c00['close']&&await _0x5e3c00[_0x3a1856(0x168)]();}state[_0x3a1856(0x16e)]=[],state['initialized']=![],state['loggers']['clear'](),state[_0x3a1856(0x15a)]=[];}static[a251_0x5ed677(0x157)](){const _0x3e23e5=a251_0x5ed677;state['initialized']=![],state['defaultLevel']=a251_0x52b22b[_0x3e23e5(0x17b)],state[_0x3e23e5(0x182)][_0x3e23e5(0x176)](),state[_0x3e23e5(0x16e)]=[],state[_0x3e23e5(0x163)]=null,state[_0x3e23e5(0x180)][_0x3e23e5(0x176)](),state[_0x3e23e5(0x15a)]=[];}static['isInitialized'](){return state['initialized'];}static[a251_0x5ed677(0x18a)](_0x138997){const _0x463bb5=a251_0x5ed677;if(state[_0x463bb5(0x182)][_0x463bb5(0x15c)](_0x138997))return state[_0x463bb5(0x182)]['get'](_0x138997);const _0x33caab=_0x138997[_0x463bb5(0x188)]('.');for(let _0x2ef486=_0x33caab[_0x463bb5(0x183)]-0x1;_0x2ef486>0x0;_0x2ef486--){const _0x2e45f3=_0x33caab[_0x463bb5(0x17f)](0x0,_0x2ef486)[_0x463bb5(0x15b)]('.');if(state[_0x463bb5(0x182)][_0x463bb5(0x15c)](_0x2e45f3))return state[_0x463bb5(0x182)][_0x463bb5(0x169)](_0x2e45f3);}return state[_0x463bb5(0x175)];}[a251_0x5ed677(0x17c)](_0x1b6090){const _0x153ad6=a251_0x5ed677,_0x114ff7=Logger[_0x153ad6(0x18a)](this[_0x153ad6(0x184)]);return _0x1b6090>=_0x114ff7;}static[a251_0x5ed677(0x17d)](_0x23e5d3){const _0x5ec5e4=a251_0x5ed677;for(const _0xf0c712 of state[_0x5ec5e4(0x16e)]){_0xf0c712['handle'](_0x23e5d3);}}['log'](_0x550fe5,_0x52b21f){const _0xcfc322=a251_0x5ed677;if(!this[_0xcfc322(0x17c)](_0x550fe5))return;const _0x1a0fce=_0x52b21f[_0xcfc322(0x170)](_0x4eb023=>typeof _0x4eb023==='function'?_0x4eb023():_0x4eb023),_0x52d2ae=_0x1a0fce['map'](safeStringify)[_0xcfc322(0x15b)]('\x20'),_0x4d6b2d={'timestamp':new Date(),'level':_0x550fe5,'component':this[_0xcfc322(0x184)],'message':_0x52d2ae};if(!state[_0xcfc322(0x18f)]){state[_0xcfc322(0x15a)][_0xcfc322(0x183)]<MAX_PENDING_RECORDS&&state[_0xcfc322(0x15a)]['push'](_0x4d6b2d);return;}Logger[_0xcfc322(0x17d)](_0x4d6b2d);}[a251_0x5ed677(0x174)](..._0x482a51){this['log'](a251_0x52b22b['TRACE'],_0x482a51);}[a251_0x5ed677(0x179)](..._0x438c92){const _0xfa6b3d=a251_0x5ed677;this[_0xfa6b3d(0x172)](a251_0x52b22b['DEBUG'],_0x438c92);}['info'](..._0x30bca4){const _0x53ba66=a251_0x5ed677;this[_0x53ba66(0x172)](a251_0x52b22b['INFO'],_0x30bca4);}['warn'](..._0x59bf7c){const _0x3f8029=a251_0x5ed677;this['log'](a251_0x52b22b[_0x3f8029(0x159)],_0x59bf7c);}[a251_0x5ed677(0x167)](..._0x2d1fce){this['log'](a251_0x52b22b['ERROR'],_0x2d1fce);}static[a251_0x5ed677(0x177)](){const _0x14a039=a251_0x5ed677;return state[_0x14a039(0x163)];}static[a251_0x5ed677(0x162)](_0x24fc99){const _0x53d2ab=a251_0x5ed677;if(state[_0x53d2ab(0x163)])return state[_0x53d2ab(0x163)][_0x53d2ab(0x162)](_0x24fc99);return _0x24fc99[_0x53d2ab(0x18e)][_0x53d2ab(0x16f)]()+'\x20['+logLevelToString(_0x24fc99[_0x53d2ab(0x18d)])+_0x53d2ab(0x16b)+_0x24fc99[_0x53d2ab(0x184)]+']\x20'+_0x24fc99['message'];}}function a251_0x4c72(){const _0x155974=['message','format','formatter','cause','entries','12184LUmgZV','error','close','get','178761sXVKRS',']\x20[','30453TxkFKj','9723285nlpIfb','handlers','toISOString','map','stack','log','1237686MDzFZm','trace','defaultLevel','clear','getFormatter','shutdown','debug','set','INFO','shouldLog','dispatch','5301UXbmwb','slice','loggers','push','levelOverrides','length','component','5034335Btvaue','8qwRQgI','clearHandlers','split','setDefaultLevel','getEffectiveLevel','name','11995980XAJjVA','level','timestamp','initialized','addHandler','reset','28hipoQO','WARN','pendingRecords','join','has','init','string','12leakRl','setLogLevel'];a251_0x4c72=function(){return _0x155974;};return a251_0x4c72();}
@@ -1 +1 @@
1
- (function(_0x1d2154,_0x3d37c){const _0x45223f=a246_0x5f06,_0x14760a=_0x1d2154();while(!![]){try{const _0x9a3a75=-parseInt(_0x45223f(0x166))/0x1*(-parseInt(_0x45223f(0x16a))/0x2)+-parseInt(_0x45223f(0x164))/0x3*(parseInt(_0x45223f(0x171))/0x4)+parseInt(_0x45223f(0x163))/0x5*(parseInt(_0x45223f(0x161))/0x6)+parseInt(_0x45223f(0x16c))/0x7+-parseInt(_0x45223f(0x15d))/0x8*(parseInt(_0x45223f(0x174))/0x9)+-parseInt(_0x45223f(0x178))/0xa+-parseInt(_0x45223f(0x17a))/0xb;if(_0x9a3a75===_0x3d37c)break;else _0x14760a['push'](_0x14760a['shift']());}catch(_0x76bea4){_0x14760a['push'](_0x14760a['shift']());}}}(a246_0x33b7,0x5360e));export var LogLevel;function a246_0x5f06(_0x43ce01,_0x22c3a9){_0x43ce01=_0x43ce01-0x15c;const _0x33b718=a246_0x33b7();let _0x5f0695=_0x33b718[_0x43ce01];return _0x5f0695;}(function(_0x6f6a91){const _0x58ce8a=a246_0x5f06;_0x6f6a91[_0x6f6a91[_0x58ce8a(0x179)]=-0x2]=_0x58ce8a(0x179),_0x6f6a91[_0x6f6a91[_0x58ce8a(0x173)]=-0x1]=_0x58ce8a(0x173),_0x6f6a91[_0x6f6a91[_0x58ce8a(0x168)]=0x0]=_0x58ce8a(0x168),_0x6f6a91[_0x6f6a91[_0x58ce8a(0x170)]=0x1]='WARN',_0x6f6a91[_0x6f6a91['ERROR']=0x2]=_0x58ce8a(0x15e);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x5c2ff9){const _0x37399d=a246_0x5f06;switch(_0x5c2ff9[_0x37399d(0x176)]()){case'TRACE':return LogLevel['TRACE'];case'DEBUG':return LogLevel[_0x37399d(0x173)];case'INFO':return LogLevel['INFO'];case _0x37399d(0x170):case _0x37399d(0x162):return LogLevel['WARN'];case _0x37399d(0x15e):return LogLevel['ERROR'];default:return LogLevel[_0x37399d(0x168)];}}function a246_0x33b7(){const _0x4469ab=['1207160FLwFPK','TRACE','29403xEcdIM','getFullYear','15512TiqcFi','ERROR','warn','toString','1049754LuReVj','WARNING','5woFYpk','87519KuIidA','getTimezoneOffset','1YcBSnk','abs','INFO','debug','117590cPljLb','getHours','4090205KYSIxn','info','getMinutes','getMonth','WARN','12TYTRCd','getMilliseconds','DEBUG','1233TQegIq','floor','toUpperCase','padStart'];a246_0x33b7=function(){return _0x4469ab;};return a246_0x33b7();}export function logLevelToString(_0x32de17){const _0x328796=a246_0x5f06;switch(_0x32de17){case LogLevel[_0x328796(0x179)]:return'trace';case LogLevel[_0x328796(0x173)]:return _0x328796(0x169);case LogLevel[_0x328796(0x168)]:return'info';case LogLevel[_0x328796(0x170)]:return _0x328796(0x15f);case LogLevel[_0x328796(0x15e)]:return'error';default:return _0x328796(0x16d);}}export function formatTimestamp(_0x14e4d3){const _0x4280b9=a246_0x5f06,_0x3ee4ac=_0x14e4d3[_0x4280b9(0x15c)](),_0x213865=(_0x14e4d3[_0x4280b9(0x16f)]()+0x1)[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x174ee7=_0x14e4d3['getDate']()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x429c05=_0x14e4d3[_0x4280b9(0x16b)]()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x512e54=_0x14e4d3[_0x4280b9(0x16e)]()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0'),_0x40860f=_0x14e4d3['getSeconds']()['toString']()[_0x4280b9(0x177)](0x2,'0'),_0xec9b76=_0x14e4d3[_0x4280b9(0x172)]()[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x3,'0'),_0x187417=-_0x14e4d3[_0x4280b9(0x165)](),_0x1d0530=Math[_0x4280b9(0x175)](Math[_0x4280b9(0x167)](_0x187417)/0x3c),_0x17bdd2=Math[_0x4280b9(0x167)](_0x187417)%0x3c,_0x8b2c1a=_0x187417>=0x0?'+':'-',_0x8f2879=''+_0x8b2c1a+_0x1d0530[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0')+_0x17bdd2[_0x4280b9(0x160)]()[_0x4280b9(0x177)](0x2,'0');return _0x3ee4ac+'-'+_0x213865+'-'+_0x174ee7+'\x20'+_0x429c05+':'+_0x512e54+':'+_0x40860f+'.'+_0xec9b76+_0x8f2879;}
1
+ function a252_0x4668(_0x81d9f6,_0xb6e892){_0x81d9f6=_0x81d9f6-0x7c;const _0x3ac7b3=a252_0x3ac7();let _0x4668bb=_0x3ac7b3[_0x81d9f6];return _0x4668bb;}function a252_0x3ac7(){const _0x59fb0f=['91ZFlRLT','DEBUG','warn','toString','error','getHours','1080821uTxnFz','getFullYear','WARNING','getSeconds','floor','5161180idzcVx','3245420NxWdeY','TRACE','abs','117704SptvtK','3qUGeiT','padStart','getMilliseconds','310238bRYDyy','info','WARN','22782546SUyLQZ','getDate','INFO','getMonth','getTimezoneOffset','1785030vvCstf','ERROR'];a252_0x3ac7=function(){return _0x59fb0f;};return a252_0x3ac7();}(function(_0x5cf220,_0x438881){const _0x5eb8b3=a252_0x4668,_0x556803=_0x5cf220();while(!![]){try{const _0x51f309=parseInt(_0x5eb8b3(0x87))/0x1+parseInt(_0x5eb8b3(0x94))/0x2+-parseInt(_0x5eb8b3(0x91))/0x3*(-parseInt(_0x5eb8b3(0x8d))/0x4)+parseInt(_0x5eb8b3(0x8c))/0x5+parseInt(_0x5eb8b3(0x7f))/0x6+parseInt(_0x5eb8b3(0x81))/0x7*(-parseInt(_0x5eb8b3(0x90))/0x8)+-parseInt(_0x5eb8b3(0x97))/0x9;if(_0x51f309===_0x438881)break;else _0x556803['push'](_0x556803['shift']());}catch(_0x51a9f3){_0x556803['push'](_0x556803['shift']());}}}(a252_0x3ac7,0x9fc25));export var LogLevel;(function(_0x4929c){const _0x20c5fe=a252_0x4668;_0x4929c[_0x4929c['TRACE']=-0x2]=_0x20c5fe(0x8e),_0x4929c[_0x4929c[_0x20c5fe(0x82)]=-0x1]='DEBUG',_0x4929c[_0x4929c[_0x20c5fe(0x7c)]=0x0]=_0x20c5fe(0x7c),_0x4929c[_0x4929c[_0x20c5fe(0x96)]=0x1]=_0x20c5fe(0x96),_0x4929c[_0x4929c['ERROR']=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x2d0a9f){const _0x254d92=a252_0x4668;switch(_0x2d0a9f['toUpperCase']()){case _0x254d92(0x8e):return LogLevel[_0x254d92(0x8e)];case _0x254d92(0x82):return LogLevel['DEBUG'];case'INFO':return LogLevel['INFO'];case _0x254d92(0x96):case _0x254d92(0x89):return LogLevel[_0x254d92(0x96)];case _0x254d92(0x80):return LogLevel[_0x254d92(0x80)];default:return LogLevel[_0x254d92(0x7c)];}}export function logLevelToString(_0x209b2d){const _0x410070=a252_0x4668;switch(_0x209b2d){case LogLevel[_0x410070(0x8e)]:return'trace';case LogLevel['DEBUG']:return'debug';case LogLevel[_0x410070(0x7c)]:return _0x410070(0x95);case LogLevel[_0x410070(0x96)]:return _0x410070(0x83);case LogLevel[_0x410070(0x80)]:return _0x410070(0x85);default:return _0x410070(0x95);}}export function formatTimestamp(_0x39049e){const _0x2a973f=a252_0x4668,_0xd8ad58=_0x39049e[_0x2a973f(0x88)](),_0x1b4dd8=(_0x39049e[_0x2a973f(0x7d)]()+0x1)[_0x2a973f(0x84)]()[_0x2a973f(0x92)](0x2,'0'),_0x3b5237=_0x39049e[_0x2a973f(0x98)]()[_0x2a973f(0x84)]()[_0x2a973f(0x92)](0x2,'0'),_0x2382ba=_0x39049e[_0x2a973f(0x86)]()['toString']()[_0x2a973f(0x92)](0x2,'0'),_0x58f404=_0x39049e['getMinutes']()[_0x2a973f(0x84)]()['padStart'](0x2,'0'),_0x597f6e=_0x39049e[_0x2a973f(0x8a)]()[_0x2a973f(0x84)]()[_0x2a973f(0x92)](0x2,'0'),_0x1b70cf=_0x39049e[_0x2a973f(0x93)]()['toString']()['padStart'](0x3,'0'),_0x39df5d=-_0x39049e[_0x2a973f(0x7e)](),_0x43eb20=Math[_0x2a973f(0x8b)](Math[_0x2a973f(0x8f)](_0x39df5d)/0x3c),_0x2a7b9b=Math[_0x2a973f(0x8f)](_0x39df5d)%0x3c,_0x2e82d4=_0x39df5d>=0x0?'+':'-',_0x4cf240=''+_0x2e82d4+_0x43eb20['toString']()[_0x2a973f(0x92)](0x2,'0')+_0x2a7b9b[_0x2a973f(0x84)]()['padStart'](0x2,'0');return _0xd8ad58+'-'+_0x1b4dd8+'-'+_0x3b5237+'\x20'+_0x2382ba+':'+_0x58f404+':'+_0x597f6e+'.'+_0x1b70cf+_0x4cf240;}
@@ -1 +1 @@
1
- function a247_0x269b(_0x254502,_0x964889){_0x254502=_0x254502-0x87;const _0x5cce6b=a247_0x5cce();let _0x269b6b=_0x5cce6b[_0x254502];return _0x269b6b;}(function(_0xd03975,_0x21f0b8){const _0x199250=a247_0x269b,_0x2de7cd=_0xd03975();while(!![]){try{const _0x51a026=-parseInt(_0x199250(0x96))/0x1*(-parseInt(_0x199250(0x97))/0x2)+-parseInt(_0x199250(0x89))/0x3+parseInt(_0x199250(0x8e))/0x4*(-parseInt(_0x199250(0x8a))/0x5)+parseInt(_0x199250(0x98))/0x6*(-parseInt(_0x199250(0x8b))/0x7)+-parseInt(_0x199250(0x8d))/0x8+parseInt(_0x199250(0x93))/0x9+-parseInt(_0x199250(0x8f))/0xa*(-parseInt(_0x199250(0x92))/0xb);if(_0x51a026===_0x21f0b8)break;else _0x2de7cd['push'](_0x2de7cd['shift']());}catch(_0x2a9900){_0x2de7cd['push'](_0x2de7cd['shift']());}}}(a247_0x5cce,0xd193c));function a247_0x5cce(){const _0x552710=['.\x20Must\x20be\x20a\x20number.','341176qUuVDF','4127756WTaqOe','6199960SlFoWS','isInteger','.\x20Must\x20be\x20an\x20integer.','33cWVGeT','1913229MHZelc','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20limit\x20value:\x20','3JgQLQC','859578zaapzH','264aupQAs','number','Invalid\x20timeout\x20value:\x20','2124606FBfGZv','5MbQhAO','114660hDvQKO'];a247_0x5cce=function(){return _0x552710;};return a247_0x5cce();}export function validateLimitOption(_0x3edadd){const _0x5f06d4=a247_0x269b;if(!Number[_0x5f06d4(0x90)](_0x3edadd))return{'isValid':![],'error':_0x5f06d4(0x95)+_0x3edadd+_0x5f06d4(0x91)};if(_0x3edadd<=0x0)return{'isValid':![],'error':_0x5f06d4(0x95)+_0x3edadd+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x3edadd};}export function validateTimeoutOption(_0x4dd695,_0x36fbe3=0x1e){const _0x2725cd=a247_0x269b;if(_0x4dd695===undefined)return{'isValid':!![],'value':_0x36fbe3};const _0x3eaadb=typeof _0x4dd695===_0x2725cd(0x87)?_0x4dd695:parseFloat(_0x4dd695);if(isNaN(_0x3eaadb))return{'isValid':![],'error':_0x2725cd(0x88)+_0x4dd695+_0x2725cd(0x8c)};if(_0x3eaadb<=0x0)return{'isValid':![],'error':_0x2725cd(0x88)+_0x3eaadb+_0x2725cd(0x94)};return{'isValid':!![],'value':_0x3eaadb};}
1
+ (function(_0x23a2dc,_0x108b64){const _0x1c301a=a253_0x2249,_0x2f1f08=_0x23a2dc();while(!![]){try{const _0x12a095=parseInt(_0x1c301a(0x151))/0x1+-parseInt(_0x1c301a(0x14d))/0x2+parseInt(_0x1c301a(0x14a))/0x3+-parseInt(_0x1c301a(0x150))/0x4*(-parseInt(_0x1c301a(0x154))/0x5)+-parseInt(_0x1c301a(0x147))/0x6+parseInt(_0x1c301a(0x146))/0x7*(parseInt(_0x1c301a(0x14c))/0x8)+-parseInt(_0x1c301a(0x14b))/0x9;if(_0x12a095===_0x108b64)break;else _0x2f1f08['push'](_0x2f1f08['shift']());}catch(_0x45678c){_0x2f1f08['push'](_0x2f1f08['shift']());}}}(a253_0x1002,0x56e37));export function validateLimitOption(_0x41adcc){const _0xd47522=a253_0x2249;if(!Number[_0xd47522(0x152)](_0x41adcc))return{'isValid':![],'error':_0xd47522(0x149)+_0x41adcc+_0xd47522(0x148)};if(_0x41adcc<=0x0)return{'isValid':![],'error':_0xd47522(0x149)+_0x41adcc+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x41adcc};}function a253_0x1002(){const _0x39b36b=['isInteger','.\x20Must\x20be\x20a\x20positive\x20number.','2515TlPoQK','54628jpiwSL','1795602JdEwzm','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','1387110AMbAgP','12714795HGPjMZ','624KREykK','265582PxsDWC','Invalid\x20timeout\x20value:\x20','number','3852HaQRBv','645237VmfIqb'];a253_0x1002=function(){return _0x39b36b;};return a253_0x1002();}function a253_0x2249(_0x3405e5,_0x1a5daa){_0x3405e5=_0x3405e5-0x146;const _0x1002b9=a253_0x1002();let _0x224902=_0x1002b9[_0x3405e5];return _0x224902;}export function validateTimeoutOption(_0x44e506,_0x517da5=0x1e){const _0x2d8d16=a253_0x2249;if(_0x44e506===undefined)return{'isValid':!![],'value':_0x517da5};const _0x2e71ec=typeof _0x44e506===_0x2d8d16(0x14f)?_0x44e506:parseFloat(_0x44e506);if(isNaN(_0x2e71ec))return{'isValid':![],'error':_0x2d8d16(0x14e)+_0x44e506+'.\x20Must\x20be\x20a\x20number.'};if(_0x2e71ec<=0x0)return{'isValid':![],'error':_0x2d8d16(0x14e)+_0x2e71ec+_0x2d8d16(0x153)};return{'isValid':!![],'value':_0x2e71ec};}
@@ -1 +1 @@
1
- const a248_0x179def=a248_0x56bb;(function(_0xea913b,_0x1abb65){const _0x531e9d=a248_0x56bb,_0x3f205e=_0xea913b();while(!![]){try{const _0x2eec79=-parseInt(_0x531e9d(0x1af))/0x1*(parseInt(_0x531e9d(0x1b0))/0x2)+parseInt(_0x531e9d(0x186))/0x3*(parseInt(_0x531e9d(0x192))/0x4)+parseInt(_0x531e9d(0x1a0))/0x5*(parseInt(_0x531e9d(0x185))/0x6)+parseInt(_0x531e9d(0x182))/0x7*(-parseInt(_0x531e9d(0x1a2))/0x8)+parseInt(_0x531e9d(0x17a))/0x9+parseInt(_0x531e9d(0x18a))/0xa+parseInt(_0x531e9d(0x17f))/0xb*(-parseInt(_0x531e9d(0x17e))/0xc);if(_0x2eec79===_0x1abb65)break;else _0x3f205e['push'](_0x3f205e['shift']());}catch(_0x286390){_0x3f205e['push'](_0x3f205e['shift']());}}}(a248_0x36a5,0x77abf));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a248_0x179def(0x179),'zsh','sh','fish','ksh',a248_0x179def(0x199),a248_0x179def(0x191),a248_0x179def(0x181),a248_0x179def(0x183),a248_0x179def(0x1a1),'nu','ion','elvish',a248_0x179def(0x187)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude','code','cursor',a248_0x179def(0x1a9),a248_0x179def(0x18f)]);function getProcessInfoWindows(_0x3538a4){const _0x2b01d9=a248_0x179def;try{if(!Number[_0x2b01d9(0x19c)](_0x3538a4)||_0x3538a4<=0x0)return null;const _0x2c0931=_0x2b01d9(0x17d)+_0x3538a4+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x210794=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x2c0931+'\x22',{'encoding':_0x2b01d9(0x17b),'windowsHide':!![],'stdio':['pipe',_0x2b01d9(0x1ad),_0x2b01d9(0x1ad)]})[_0x2b01d9(0x1a8)]();if(!_0x210794)return null;const [_0x1d5c67,..._0x4604e2]=_0x210794[_0x2b01d9(0x189)](','),_0x5f11d9=parseInt(_0x1d5c67,0xa),_0x4363d5=_0x4604e2[_0x2b01d9(0x19a)](',')['trim']();if(isNaN(_0x5f11d9)||!_0x4363d5)return null;return{'pid':_0x3538a4,'ppid':_0x5f11d9,'comm':_0x4363d5[_0x2b01d9(0x18b)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x4785c1){const _0xbf60e8=a248_0x179def;try{const _0x5c149e=0x400000;if(!Number[_0xbf60e8(0x19c)](_0x4785c1)||_0x4785c1<=0x0||_0x4785c1>_0x5c149e)return null;const _0xeda69c=execSync(_0xbf60e8(0x19f)+_0x4785c1+_0xbf60e8(0x1a7),{'encoding':_0xbf60e8(0x17b),'stdio':_0xbf60e8(0x1ad)})[_0xbf60e8(0x1a8)](),[_0x1c1596,..._0x11af8d]=_0xeda69c[_0xbf60e8(0x189)](/\s+/),_0x3658f5=parseInt(_0x1c1596,0xa),_0x296895=_0x11af8d['join']('\x20');if(isNaN(_0x3658f5))return null;return{'pid':_0x4785c1,'ppid':_0x3658f5,'comm':_0x296895};}catch{return null;}}function getProcessInfo(_0x2b6942){const _0x5003c6=a248_0x179def;if(process[_0x5003c6(0x1ae)]==='win32')return getProcessInfoWindows(_0x2b6942);return getProcessInfoPosix(_0x2b6942);}function getBasename(_0x194d1a){const _0x316d87=a248_0x179def;return _0x194d1a[_0x316d87(0x18b)](/^-/,'')['split']('/')['pop']()?.[_0x316d87(0x1a5)]()||'';}function a248_0x56bb(_0xd9ec41,_0x29f338){_0xd9ec41=_0xd9ec41-0x178;const _0x36a53d=a248_0x36a5();let _0x56bb69=_0x36a53d[_0xd9ec41];return _0x56bb69;}function isShell(_0x5a5334){const _0x103459=a248_0x179def;return SHELL_NAMES[_0x103459(0x1a4)](getBasename(_0x5a5334));}function isEphemeralShellSpawner(_0x3d8675){const _0x441759=a248_0x179def;return EPHEMERAL_SHELL_SPAWNERS[_0x441759(0x1a4)](getBasename(_0x3d8675));}let cachedShellPID;function findShellPID(){const _0xcebd31=a248_0x179def;if(process[_0xcebd31(0x197)]===undefined)return process['pid'];let _0x220d63=process['ppid'];const _0x1fcd93=0xa;let _0x33944a=0x0;while(_0x33944a<_0x1fcd93){const _0x43f85e=getProcessInfo(_0x220d63);if(!_0x43f85e)break;if(isShell(_0x43f85e[_0xcebd31(0x180)])){const _0x3194e8=getProcessInfo(_0x43f85e[_0xcebd31(0x197)]);if(_0x3194e8&&isEphemeralShellSpawner(_0x3194e8[_0xcebd31(0x180)])){_0x220d63=_0x43f85e['ppid'],_0x33944a++;continue;}return _0x43f85e[_0xcebd31(0x184)];}if(_0x43f85e[_0xcebd31(0x197)]===0x0||_0x43f85e[_0xcebd31(0x197)]===0x1){if(isShell(_0x43f85e['comm']))return _0x43f85e[_0xcebd31(0x184)];break;}_0x220d63=_0x43f85e[_0xcebd31(0x197)],_0x33944a++;}return process[_0xcebd31(0x197)]!==undefined?process['ppid']:process[_0xcebd31(0x184)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2ec270){const _0x28b745=a248_0x179def;if(!Number[_0x28b745(0x19c)](_0x2ec270)||_0x2ec270<=0x0)return![];try{return process[_0x28b745(0x194)](_0x2ec270,0x0),!![];}catch{return![];}}export function openBrowser(_0x5dda1d){const _0x2e8887=a248_0x179def;let _0x43ebe8;try{_0x43ebe8=new URL(_0x5dda1d);}catch{throw new Error(_0x2e8887(0x1a3)+_0x5dda1d);}if(_0x43ebe8[_0x2e8887(0x19b)]!==_0x2e8887(0x1ac)&&_0x43ebe8[_0x2e8887(0x19b)]!==_0x2e8887(0x1ab))throw new Error('Unsupported\x20protocol:\x20'+_0x43ebe8[_0x2e8887(0x19b)]);const _0xb55318=_0x43ebe8[_0x2e8887(0x188)],_0x544a54=process[_0x2e8887(0x1ae)];if(_0x544a54==='win32')spawn(_0x2e8887(0x195),['/c',_0x2e8887(0x193),'',_0xb55318],{'detached':!![],'stdio':_0x2e8887(0x18d)})[_0x2e8887(0x1b1)]();else{const _0x1f75b9=_0x544a54===_0x2e8887(0x19d)?'open':_0x2e8887(0x18c);spawn(_0x1f75b9,[_0xb55318],{'detached':!![],'stdio':_0x2e8887(0x18d)})[_0x2e8887(0x1b1)]();}}export function isWindows(){const _0x29a9c6=a248_0x179def;return process['platform']===_0x29a9c6(0x19e);}export function getCrossSpawnOptions(_0x597230){return{..._0x597230??{},'shell':isWindows()};}function a248_0x36a5(){const _0x5c1fc3=['stderr','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','29712DXiBqE','1452pyZikK','comm','dash','943432chgyVT','pwsh','pid','60tpFrnm','3ATeAIX','xonsh','href','split','2361640FUpeRk','replace','xdg-open','ignore','exit','treasure\x20studio','test','csh','3166796iVdoeT','start','kill','cmd.exe','which','ppid','map','tcsh','join','protocol','isInteger','darwin','win32','ps\x20-p\x20','236270qgjylf','powershell','32qNtZdF','Invalid\x20URL:\x20','has','toLowerCase','stdout','\x20-o\x20ppid=,comm=','trim','electron','where.exe','https:','http:','pipe','platform','1gazFNp','1598126jBOfTE','unref','write','bash','5892939xukzAK','utf-8'];a248_0x36a5=function(){return _0x5c1fc3;};return a248_0x36a5();}export function escapeWindowsArg(_0x4fc368){const _0x53e57f=a248_0x179def;if(!/[ \t"&|<>^%!`\r\n]/[_0x53e57f(0x190)](_0x4fc368))return _0x4fc368;const _0x3bfa3e=_0x4fc368[_0x53e57f(0x18b)](/"/g,'\x22\x22');return'\x22'+_0x3bfa3e+'\x22';}export function crossSpawn(_0x23335d,_0x5d90e7,_0x50ee94){const _0x1a5644=a248_0x179def;if(isWindows()){const _0x4bf66e=escapeWindowsArg(_0x23335d),_0x2268f2=_0x5d90e7[_0x1a5644(0x198)](escapeWindowsArg),_0x437124=[_0x4bf66e,..._0x2268f2][_0x1a5644(0x19a)]('\x20');return spawn(_0x437124,[],{..._0x50ee94,'shell':!![]});}return spawn(_0x23335d,_0x5d90e7,{..._0x50ee94,'shell':![]});}export function gracefulExit(_0x3aa051=0x0){const _0x2a252d=a248_0x179def,_0x420b25=()=>{const _0xade922=a248_0x56bb;isWindows()?setTimeout(()=>process[_0xade922(0x18e)](_0x3aa051),0x32):process[_0xade922(0x18e)](_0x3aa051);};let _0x397703=![];const _0x20aa5a=()=>{if(_0x397703)return;_0x397703=!![],_0x420b25();};let _0x284a85=0x2;const _0x1c6f6f=()=>{if(--_0x284a85===0x0)_0x20aa5a();},_0x3c592c=setTimeout(_0x20aa5a,0x7d0);if(typeof _0x3c592c[_0x2a252d(0x1b1)]==='function')_0x3c592c[_0x2a252d(0x1b1)]();process[_0x2a252d(0x1a6)][_0x2a252d(0x178)]('',_0x1c6f6f),process[_0x2a252d(0x17c)]['write']('',_0x1c6f6f);}export function findExecutable(_0x71b2b4,_0x2ec90f=0x1388){return new Promise(_0x3969fc=>{const _0x51822e=a248_0x56bb,_0x319de2=isWindows()?_0x51822e(0x1aa):_0x51822e(0x196);execFile(_0x319de2,[_0x71b2b4],{'timeout':_0x2ec90f,'windowsHide':!![]},(_0x27b588,_0x520e1e)=>{const _0x2adede=_0x51822e;if(_0x27b588||!_0x520e1e[_0x2adede(0x1a8)]())_0x3969fc(null);else{const _0xca980b=_0x520e1e['trim']()['split'](/\r?\n/)[0x0];_0x3969fc(_0xca980b);}});});}
1
+ const a254_0x40cf97=a254_0x416a;(function(_0x11ff04,_0x54038f){const _0x38b0ec=a254_0x416a,_0x25fe39=_0x11ff04();while(!![]){try{const _0x101cd0=parseInt(_0x38b0ec(0x1f5))/0x1+-parseInt(_0x38b0ec(0x200))/0x2*(-parseInt(_0x38b0ec(0x1d4))/0x3)+parseInt(_0x38b0ec(0x1f4))/0x4+-parseInt(_0x38b0ec(0x1d1))/0x5+parseInt(_0x38b0ec(0x206))/0x6+parseInt(_0x38b0ec(0x1f3))/0x7*(parseInt(_0x38b0ec(0x1cc))/0x8)+parseInt(_0x38b0ec(0x1e3))/0x9*(-parseInt(_0x38b0ec(0x201))/0xa);if(_0x101cd0===_0x54038f)break;else _0x25fe39['push'](_0x25fe39['shift']());}catch(_0x2ec1c4){_0x25fe39['push'](_0x25fe39['shift']());}}}(a254_0x4348,0xa6529));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a254_0x40cf97(0x1dd),a254_0x40cf97(0x202),'sh','fish',a254_0x40cf97(0x1ed),a254_0x40cf97(0x1f8),a254_0x40cf97(0x1e6),a254_0x40cf97(0x1fa),a254_0x40cf97(0x1de),a254_0x40cf97(0x1ee),'nu',a254_0x40cf97(0x1e5),'elvish',a254_0x40cf97(0x1f9)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a254_0x40cf97(0x205),a254_0x40cf97(0x1d8),a254_0x40cf97(0x1d9),a254_0x40cf97(0x1d5),'treasure\x20studio']);function getProcessInfoWindows(_0x3bf002){const _0x1206a9=a254_0x40cf97;try{if(!Number[_0x1206a9(0x1fc)](_0x3bf002)||_0x3bf002<=0x0)return null;const _0x3f69fa=_0x1206a9(0x1d6)+_0x3bf002+_0x1206a9(0x1ec),_0x3bb370=execSync(_0x1206a9(0x1e1)+_0x3f69fa+'\x22',{'encoding':'utf-8','windowsHide':!![],'stdio':['pipe',_0x1206a9(0x1e4),_0x1206a9(0x1e4)]})[_0x1206a9(0x1ff)]();if(!_0x3bb370)return null;const [_0xada204,..._0x1a910e]=_0x3bb370[_0x1206a9(0x1df)](','),_0x1ee64b=parseInt(_0xada204,0xa),_0x11b852=_0x1a910e['join'](',')['trim']();if(isNaN(_0x1ee64b)||!_0x11b852)return null;return{'pid':_0x3bf002,'ppid':_0x1ee64b,'comm':_0x11b852[_0x1206a9(0x1f6)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x54c7cf){const _0x1409a6=a254_0x40cf97;try{const _0x32ccf8=0x400000;if(!Number[_0x1409a6(0x1fc)](_0x54c7cf)||_0x54c7cf<=0x0||_0x54c7cf>_0x32ccf8)return null;const _0x36f8c0=execSync(_0x1409a6(0x1f1)+_0x54c7cf+_0x1409a6(0x1d3),{'encoding':_0x1409a6(0x1f0),'stdio':_0x1409a6(0x1e4)})['trim'](),[_0xf8d601,..._0x307196]=_0x36f8c0[_0x1409a6(0x1df)](/\s+/),_0x4c31ca=parseInt(_0xf8d601,0xa),_0x33bb98=_0x307196['join']('\x20');if(isNaN(_0x4c31ca))return null;return{'pid':_0x54c7cf,'ppid':_0x4c31ca,'comm':_0x33bb98};}catch{return null;}}function a254_0x416a(_0x29497f,_0x1ad8fa){_0x29497f=_0x29497f-0x1c9;const _0x4348dd=a254_0x4348();let _0x416a92=_0x4348dd[_0x29497f];return _0x416a92;}function getProcessInfo(_0x11d15d){const _0x31b8b7=a254_0x40cf97;if(process['platform']===_0x31b8b7(0x1e7))return getProcessInfoWindows(_0x11d15d);return getProcessInfoPosix(_0x11d15d);}function getBasename(_0x44c05e){const _0x2ee5d3=a254_0x40cf97;return _0x44c05e['replace'](/^-/,'')[_0x2ee5d3(0x1df)]('/')[_0x2ee5d3(0x1e9)]()?.[_0x2ee5d3(0x1cf)]()||'';}function isShell(_0x500fcd){const _0x5ce5dd=a254_0x40cf97;return SHELL_NAMES[_0x5ce5dd(0x1f2)](getBasename(_0x500fcd));}function isEphemeralShellSpawner(_0x5f3caf){const _0xcf09f8=a254_0x40cf97;return EPHEMERAL_SHELL_SPAWNERS[_0xcf09f8(0x1f2)](getBasename(_0x5f3caf));}let cachedShellPID;function findShellPID(){const _0x3a8397=a254_0x40cf97;if(process[_0x3a8397(0x1ca)]===undefined)return process[_0x3a8397(0x1ce)];let _0x3e02ed=process[_0x3a8397(0x1ca)];const _0x55bc04=0xa;let _0x5f10da=0x0;while(_0x5f10da<_0x55bc04){const _0x5314bf=getProcessInfo(_0x3e02ed);if(!_0x5314bf)break;if(isShell(_0x5314bf[_0x3a8397(0x1fb)])){const _0x1cd02f=getProcessInfo(_0x5314bf[_0x3a8397(0x1ca)]);if(_0x1cd02f&&isEphemeralShellSpawner(_0x1cd02f[_0x3a8397(0x1fb)])){_0x3e02ed=_0x5314bf[_0x3a8397(0x1ca)],_0x5f10da++;continue;}return _0x5314bf[_0x3a8397(0x1ce)];}if(_0x5314bf[_0x3a8397(0x1ca)]===0x0||_0x5314bf[_0x3a8397(0x1ca)]===0x1){if(isShell(_0x5314bf[_0x3a8397(0x1fb)]))return _0x5314bf[_0x3a8397(0x1ce)];break;}_0x3e02ed=_0x5314bf[_0x3a8397(0x1ca)],_0x5f10da++;}return process[_0x3a8397(0x1ca)]!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x598503){const _0x464c6c=a254_0x40cf97;if(!Number[_0x464c6c(0x1fc)](_0x598503)||_0x598503<=0x0)return![];try{return process[_0x464c6c(0x1d7)](_0x598503,0x0),!![];}catch{return![];}}function a254_0x4348(){const _0x43e2b7=['Unsupported\x20protocol:\x20','claude','5679840IqFgyV','open','ppid','protocol','16tKFyPx','stderr','pid','toLowerCase','https:','6426135UsHLXB','test','\x20-o\x20ppid=,comm=','2963388IvKCWi','electron','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','kill','code','cursor','map','platform','ignore','bash','pwsh','split','write','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','Invalid\x20URL:\x20','18pktzyj','pipe','ion','csh','win32','http:','pop','xdg-open','href','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','ksh','powershell','which','utf-8','ps\x20-p\x20','has','3333806fnFnHt','1435488ZcErUd','374476TWkhUJ','replace','exit','tcsh','xonsh','dash','comm','isInteger','cmd.exe','unref','trim','2JEVUVv','8269080ghHFXz','zsh','where.exe'];a254_0x4348=function(){return _0x43e2b7;};return a254_0x4348();}export function openBrowser(_0x5a4298){const _0x2777d6=a254_0x40cf97;let _0x22556f;try{_0x22556f=new URL(_0x5a4298);}catch{throw new Error(_0x2777d6(0x1e2)+_0x5a4298);}if(_0x22556f[_0x2777d6(0x1cb)]!==_0x2777d6(0x1e8)&&_0x22556f[_0x2777d6(0x1cb)]!==_0x2777d6(0x1d0))throw new Error(_0x2777d6(0x204)+_0x22556f[_0x2777d6(0x1cb)]);const _0x3ff7ab=_0x22556f[_0x2777d6(0x1eb)],_0x144765=process[_0x2777d6(0x1db)];if(_0x144765===_0x2777d6(0x1e7))spawn(_0x2777d6(0x1fd),['/c','start','',_0x3ff7ab],{'detached':!![],'stdio':_0x2777d6(0x1dc)})['unref']();else{const _0xd33e9a=_0x144765==='darwin'?_0x2777d6(0x1c9):_0x2777d6(0x1ea);spawn(_0xd33e9a,[_0x3ff7ab],{'detached':!![],'stdio':_0x2777d6(0x1dc)})[_0x2777d6(0x1fe)]();}}export function isWindows(){const _0x18e3d7=a254_0x40cf97;return process[_0x18e3d7(0x1db)]===_0x18e3d7(0x1e7);}export function getCrossSpawnOptions(_0x3eed57){return{..._0x3eed57??{},'shell':isWindows()};}export function escapeWindowsArg(_0x43f38e){const _0x30c244=a254_0x40cf97;if(!/[ \t"&|<>^%!`\r\n]/[_0x30c244(0x1d2)](_0x43f38e))return _0x43f38e;const _0x4161b4=_0x43f38e[_0x30c244(0x1f6)](/"/g,'\x22\x22');return'\x22'+_0x4161b4+'\x22';}export function crossSpawn(_0x55e407,_0x1b2d6c,_0x4c67e4){const _0x14ecd1=a254_0x40cf97;if(isWindows()){const _0x309c05=escapeWindowsArg(_0x55e407),_0x3de222=_0x1b2d6c[_0x14ecd1(0x1da)](escapeWindowsArg),_0x414cd7=[_0x309c05,..._0x3de222]['join']('\x20');return spawn(_0x414cd7,[],{..._0x4c67e4,'shell':!![]});}return spawn(_0x55e407,_0x1b2d6c,{..._0x4c67e4,'shell':![]});}export function gracefulExit(_0x4aafe9=0x0){const _0x68a894=a254_0x40cf97,_0x44b0c5=()=>{const _0x1b305e=a254_0x416a;isWindows()?setTimeout(()=>process['exit'](_0x4aafe9),0x32):process[_0x1b305e(0x1f7)](_0x4aafe9);};let _0x4f31da=![];const _0x43161a=()=>{if(_0x4f31da)return;_0x4f31da=!![],_0x44b0c5();};let _0x181938=0x2;const _0x209eaa=()=>{if(--_0x181938===0x0)_0x43161a();},_0x1cc75f=setTimeout(_0x43161a,0x7d0);if(typeof _0x1cc75f[_0x68a894(0x1fe)]==='function')_0x1cc75f['unref']();process['stdout']['write']('',_0x209eaa),process[_0x68a894(0x1cd)][_0x68a894(0x1e0)]('',_0x209eaa);}export function findExecutable(_0x3f20be,_0x48e13f=0x1388){return new Promise(_0x49ebe9=>{const _0x12e30a=a254_0x416a,_0x45ecff=isWindows()?_0x12e30a(0x203):_0x12e30a(0x1ef);execFile(_0x45ecff,[_0x3f20be],{'timeout':_0x48e13f,'windowsHide':!![]},(_0x57d2d9,_0x1fc8ba)=>{const _0x3b3457=_0x12e30a;if(_0x57d2d9||!_0x1fc8ba[_0x3b3457(0x1ff)]())_0x49ebe9(null);else{const _0x4a644e=_0x1fc8ba['trim']()[_0x3b3457(0x1df)](/\r?\n/)[0x0];_0x49ebe9(_0x4a644e);}});});}
@@ -1 +1 @@
1
- (function(_0x2e0f8a,_0x430d57){const _0x5a657d=a249_0x452e,_0x349fd8=_0x2e0f8a();while(!![]){try{const _0x2bb0f2=-parseInt(_0x5a657d(0xbf))/0x1*(-parseInt(_0x5a657d(0xc7))/0x2)+parseInt(_0x5a657d(0xce))/0x3*(parseInt(_0x5a657d(0xc8))/0x4)+-parseInt(_0x5a657d(0xbe))/0x5+-parseInt(_0x5a657d(0xb9))/0x6*(-parseInt(_0x5a657d(0xbc))/0x7)+parseInt(_0x5a657d(0xbd))/0x8+parseInt(_0x5a657d(0xc3))/0x9+parseInt(_0x5a657d(0xba))/0xa*(-parseInt(_0x5a657d(0xc2))/0xb);if(_0x2bb0f2===_0x430d57)break;else _0x349fd8['push'](_0x349fd8['shift']());}catch(_0x4ab1c6){_0x349fd8['push'](_0x349fd8['shift']());}}}(a249_0x4cfc,0xa0d45));function a249_0x452e(_0x381eb8,_0x484907){_0x381eb8=_0x381eb8-0xb9;const _0x4cfcb0=a249_0x4cfc();let _0x452eae=_0x4cfcb0[_0x381eb8];return _0x452eae;}import*as a249_0x1740b3 from'readline';function a249_0x4cfc(){const _0x3b38db=['isTTY','createInterface','write','yes','363WNYZQU','utf8','toLowerCase','stdout','removeListener','2461548tCbCGS','111570zTrcOH','stderr','7ickpaZ','4223184gCJeMg','5239955rOnfyx','17cYHCfj','data','setEncoding','1452oKQITe','4002084pnCwZo','close','stdin','setRawMode','77458VamVXI','37628eFGdpd','question'];a249_0x4cfc=function(){return _0x3b38db;};return a249_0x4cfc();}import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}export async function confirm(_0x45bec8){const _0x1fa9b9=a249_0x452e,_0x4ac9f6=a249_0x1740b3[_0x1fa9b9(0xcb)]({'input':process[_0x1fa9b9(0xc5)],'output':process[_0x1fa9b9(0xd1)]});return new Promise(_0x1009bd=>{const _0x618000=_0x1fa9b9;_0x4ac9f6[_0x618000(0xc9)](_0x45bec8+'\x20(y/N):\x20',_0x848a9d=>{const _0x297ff5=_0x618000;_0x4ac9f6[_0x297ff5(0xc4)](),_0x1009bd(_0x848a9d[_0x297ff5(0xd0)]()==='y'||_0x848a9d[_0x297ff5(0xd0)]()===_0x297ff5(0xcd));});});}export async function confirmKey(_0x3baf2c){const _0xaa266a=a249_0x452e;if(!process['stdin'][_0xaa266a(0xca)])return![];return process[_0xaa266a(0xbb)]['write'](_0x3baf2c+'\x20[y/N]\x20'),new Promise(_0x3d5042=>{const _0x4a46a7=_0xaa266a,_0x3a58ba=process[_0x4a46a7(0xc5)];_0x3a58ba[_0x4a46a7(0xc6)](!![]),_0x3a58ba['resume'](),_0x3a58ba[_0x4a46a7(0xc1)](_0x4a46a7(0xcf));const _0x2d3c00=_0xac6e5d=>{const _0x5c03c8=_0x4a46a7;_0x3a58ba[_0x5c03c8(0xc6)](![]),_0x3a58ba['pause'](),_0x3a58ba[_0x5c03c8(0xd2)]('data',_0x2d3c00);if(_0xac6e5d==='\x1b'){process[_0x5c03c8(0xbb)][_0x5c03c8(0xcc)]('\x0a'),_0x3d5042(![]);return;}_0xac6e5d==='\x03'&&(process[_0x5c03c8(0xbb)][_0x5c03c8(0xcc)]('\x0a'),gracefulExit(0x82));if(_0xac6e5d[_0x5c03c8(0xd0)]()==='y'){process[_0x5c03c8(0xbb)]['write']('y\x0a'),_0x3d5042(!![]);return;}process['stderr'][_0x5c03c8(0xcc)]('\x0a'),_0x3d5042(![]);};_0x3a58ba['on'](_0x4a46a7(0xc0),_0x2d3c00);});}
1
+ (function(_0x5cf71a,_0x5e28bd){const _0x829967=a255_0xee2d,_0x254918=_0x5cf71a();while(!![]){try{const _0x47ef48=parseInt(_0x829967(0x163))/0x1+parseInt(_0x829967(0x162))/0x2*(-parseInt(_0x829967(0x15d))/0x3)+-parseInt(_0x829967(0x158))/0x4+-parseInt(_0x829967(0x14f))/0x5*(-parseInt(_0x829967(0x14b))/0x6)+parseInt(_0x829967(0x15a))/0x7+-parseInt(_0x829967(0x152))/0x8+parseInt(_0x829967(0x160))/0x9*(parseInt(_0x829967(0x15f))/0xa);if(_0x47ef48===_0x5e28bd)break;else _0x254918['push'](_0x254918['shift']());}catch(_0x3e510c){_0x254918['push'](_0x254918['shift']());}}}(a255_0x4344,0xddbcc));import*as a255_0x5ac3da from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x462178=a255_0xee2d;return process['stdin'][_0x462178(0x156)]===!![];}function a255_0xee2d(_0x44d3ed,_0x53885f){_0x44d3ed=_0x44d3ed-0x14b;const _0x434431=a255_0x4344();let _0xee2d28=_0x434431[_0x44d3ed];return _0xee2d28;}export async function confirm(_0x3fd39f){const _0x232eac=a255_0xee2d,_0x441d70=a255_0x5ac3da[_0x232eac(0x14e)]({'input':process['stdin'],'output':process[_0x232eac(0x153)]});return new Promise(_0x24100b=>{const _0x5a034f=_0x232eac;_0x441d70[_0x5a034f(0x155)](_0x3fd39f+'\x20(y/N):\x20',_0x54596f=>{const _0x2051dc=_0x5a034f;_0x441d70[_0x2051dc(0x14d)](),_0x24100b(_0x54596f['toLowerCase']()==='y'||_0x54596f['toLowerCase']()===_0x2051dc(0x15b));});});}export async function confirmKey(_0x4ddb2c){const _0x316979=a255_0xee2d;if(!process[_0x316979(0x157)][_0x316979(0x156)])return![];return process[_0x316979(0x14c)][_0x316979(0x151)](_0x4ddb2c+_0x316979(0x164)),new Promise(_0x49687d=>{const _0x1ba563=_0x316979,_0xbf7e7d=process['stdin'];_0xbf7e7d[_0x1ba563(0x150)](!![]),_0xbf7e7d[_0x1ba563(0x15c)](),_0xbf7e7d[_0x1ba563(0x161)]('utf8');const _0x1d1aa9=_0x472865=>{const _0x55cbd0=_0x1ba563;_0xbf7e7d[_0x55cbd0(0x150)](![]),_0xbf7e7d[_0x55cbd0(0x15e)](),_0xbf7e7d[_0x55cbd0(0x165)](_0x55cbd0(0x154),_0x1d1aa9);if(_0x472865==='\x1b'){process[_0x55cbd0(0x14c)]['write']('\x0a'),_0x49687d(![]);return;}_0x472865==='\x03'&&(process[_0x55cbd0(0x14c)][_0x55cbd0(0x151)]('\x0a'),gracefulExit(0x82));if(_0x472865[_0x55cbd0(0x159)]()==='y'){process['stderr'][_0x55cbd0(0x151)]('y\x0a'),_0x49687d(!![]);return;}process[_0x55cbd0(0x14c)][_0x55cbd0(0x151)]('\x0a'),_0x49687d(![]);};_0xbf7e7d['on'](_0x1ba563(0x154),_0x1d1aa9);});}function a255_0x4344(){const _0x1f79a4=['question','isTTY','stdin','4375252PvKQJp','toLowerCase','6614097JbIzzF','yes','resume','348JTtmdN','pause','10qaDvRc','29537532LPeFXR','setEncoding','22958gGJAXo','89089zCgHiI','\x20[y/N]\x20','removeListener','2992494kzogvg','stderr','close','createInterface','5IrHvSU','setRawMode','write','11848352xQsWBa','stdout','data'];a255_0x4344=function(){return _0x1f79a4;};return a255_0x4344();}
@@ -1 +1 @@
1
- function a250_0x24ab(_0x4be891,_0x4e47bf){_0x4be891=_0x4be891-0x1b1;const _0x594e9b=a250_0x594e();let _0x24ab1c=_0x594e9b[_0x4be891];return _0x24ab1c;}function a250_0x594e(){const _0xa23935=['2493576EickgZ','12rygnvl','username','403872NsxXRi','120tEpOGe','28BkpYmj','****','639873JkUKKB','1049411cKjUec','1laIuHF','18HgRMiS','2464715EHvfjr','password','2371590UwjZMh','10509660UXaYDz','undici'];a250_0x594e=function(){return _0xa23935;};return a250_0x594e();}(function(_0x16dc5b,_0x4fb344){const _0x424c42=a250_0x24ab,_0x129921=_0x16dc5b();while(!![]){try{const _0x51d834=parseInt(_0x424c42(0x1c0))/0x1*(parseInt(_0x424c42(0x1b4))/0x2)+-parseInt(_0x424c42(0x1be))/0x3*(-parseInt(_0x424c42(0x1b8))/0x4)+-parseInt(_0x424c42(0x1b2))/0x5+-parseInt(_0x424c42(0x1ba))/0x6*(-parseInt(_0x424c42(0x1bc))/0x7)+-parseInt(_0x424c42(0x1b7))/0x8*(parseInt(_0x424c42(0x1b1))/0x9)+-parseInt(_0x424c42(0x1b5))/0xa+parseInt(_0x424c42(0x1bf))/0xb*(parseInt(_0x424c42(0x1bb))/0xc);if(_0x51d834===_0x4fb344)break;else _0x129921['push'](_0x129921['shift']());}catch(_0x1cb06a){_0x129921['push'](_0x129921['shift']());}}}(a250_0x594e,0xd73d7));export function maskProxyCredentials(_0xe49f5f){const _0x594de9=a250_0x24ab;try{const _0x2cf553=new URL(_0xe49f5f);return _0x2cf553[_0x594de9(0x1b9)]&&(_0x2cf553[_0x594de9(0x1b9)]=_0x594de9(0x1bd)),_0x2cf553[_0x594de9(0x1b3)]&&(_0x2cf553[_0x594de9(0x1b3)]=_0x594de9(0x1bd)),_0x2cf553['toString']();}catch{return _0xe49f5f;}}export async function createProxyFetch(_0x1e3c5b){const _0x2f6720=a250_0x24ab,{ProxyAgent:_0x40fa81,fetch:_0x19b298}=await import(_0x2f6720(0x1b6)),_0x28e488=new _0x40fa81(_0x1e3c5b);return(_0x20d3c8,_0x1079f5)=>_0x19b298(_0x20d3c8,{..._0x1079f5,'dispatcher':_0x28e488});}
1
+ function a256_0x123d(_0x180eca,_0x4b3faa){_0x180eca=_0x180eca-0xaa;const _0x323d40=a256_0x323d();let _0x123d94=_0x323d40[_0x180eca];return _0x123d94;}(function(_0x1899f8,_0x37c4d6){const _0x5015a1=a256_0x123d,_0x3b0779=_0x1899f8();while(!![]){try{const _0x27aded=-parseInt(_0x5015a1(0xb3))/0x1*(-parseInt(_0x5015a1(0xaf))/0x2)+-parseInt(_0x5015a1(0xad))/0x3+-parseInt(_0x5015a1(0xb6))/0x4*(-parseInt(_0x5015a1(0xac))/0x5)+-parseInt(_0x5015a1(0xb7))/0x6*(-parseInt(_0x5015a1(0xb2))/0x7)+-parseInt(_0x5015a1(0xb5))/0x8+-parseInt(_0x5015a1(0xae))/0x9*(parseInt(_0x5015a1(0xb8))/0xa)+parseInt(_0x5015a1(0xaa))/0xb;if(_0x27aded===_0x37c4d6)break;else _0x3b0779['push'](_0x3b0779['shift']());}catch(_0x5a0361){_0x3b0779['push'](_0x3b0779['shift']());}}}(a256_0x323d,0xc727f));export function maskProxyCredentials(_0x525fc7){const _0x1f536e=a256_0x123d;try{const _0x2d4389=new URL(_0x525fc7);return _0x2d4389[_0x1f536e(0xab)]&&(_0x2d4389[_0x1f536e(0xab)]=_0x1f536e(0xb1)),_0x2d4389[_0x1f536e(0xb9)]&&(_0x2d4389[_0x1f536e(0xb9)]='****'),_0x2d4389[_0x1f536e(0xb0)]();}catch{return _0x525fc7;}}export async function createProxyFetch(_0x3d4afb){const _0x2639c3=a256_0x123d,{ProxyAgent:_0x558aeb,fetch:_0x330b69}=await import(_0x2639c3(0xb4)),_0x21f4e8=new _0x558aeb(_0x3d4afb);return(_0x1f4f54,_0x318926)=>_0x330b69(_0x1f4f54,{..._0x318926,'dispatcher':_0x21f4e8});}function a256_0x323d(){const _0x7a7d83=['16814znAeUV','1093396HzdcFU','undici','3282704zctuwq','4jTVRoj','726EWTupZ','3054690eIkciK','password','19469626eKDqNr','username','5611025LdVExX','4568349OksxYD','45ximdyJ','2cSqZFu','toString','****'];a256_0x323d=function(){return _0x7a7d83;};return a256_0x323d();}
@@ -1 +1 @@
1
- (function(_0x59b9a1,_0xd37641){const _0x303e57=a251_0x18e6,_0xed0d1d=_0x59b9a1();while(!![]){try{const _0x5e9663=parseInt(_0x303e57(0x7f))/0x1+-parseInt(_0x303e57(0x7d))/0x2+parseInt(_0x303e57(0x87))/0x3+parseInt(_0x303e57(0x8f))/0x4*(-parseInt(_0x303e57(0x8d))/0x5)+-parseInt(_0x303e57(0x79))/0x6*(-parseInt(_0x303e57(0x78))/0x7)+-parseInt(_0x303e57(0x7e))/0x8+parseInt(_0x303e57(0x91))/0x9;if(_0x5e9663===_0xd37641)break;else _0xed0d1d['push'](_0xed0d1d['shift']());}catch(_0x19c48f){_0xed0d1d['push'](_0xed0d1d['shift']());}}}(a251_0x222b,0x2c7ad));import a251_0x2e8d96 from'ora';function a251_0x222b(){const _0x1dfd93=['replace','3794058PUFRDZ','stderr','isTTY','271831MksNrj','12eYjycM','phase','floor','isSpinning','393940taoLoX','2347648CTsPFh','246352LbcCPD','extra','intervalFactory','toFixed','cyan','trim','now','\x20[Job\x20ID:\x20','304818LOlVum','start','clock','stop','...','text','872855hjhGEW','jobId','4YFlOof'];a251_0x222b=function(){return _0x1dfd93;};return a251_0x222b();}function a251_0x18e6(_0x9a3133,_0x5acdd6){_0x9a3133=_0x9a3133-0x76;const _0x222b52=a251_0x222b();let _0x18e648=_0x222b52[_0x9a3133];return _0x18e648;}import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x21d9e5,_0x18ab45={}){const _0x3e785c=a251_0x18e6,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x18ab45;return a251_0x2e8d96({'text':_0x21d9e5,'color':_0x3e785c(0x83),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0x3e785c(0x76)][_0x3e785c(0x77)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x1b2571,_0xcc5fa6,_0x5305c2={}){const _0x1fd137=a251_0x18e6,_0xca7298=_0x5305c2[_0x1fd137(0x89)]??(()=>Date[_0x1fd137(0x85)]()),_0x53838b=createCommandSpinner(_0x1b2571,_0x5305c2);_0x53838b[_0x1fd137(0x88)]();const _0x375106=_0xca7298();try{const _0x33e405=await _0xcc5fa6(),_0x57d34c=_0xca7298()-_0x375106;return _0x53838b[_0x1fd137(0x8a)](),{'data':_0x33e405,'elapsedMs':_0x57d34c};}catch(_0x2bdf18){_0x53838b['stop']();throw _0x2bdf18;}}export async function withProgressSpinner(_0x2aa29d,_0x56477e,_0x37e87e={}){const _0x2b0e36=a251_0x18e6,_0x10b0bd=_0x37e87e[_0x2b0e36(0x89)]??(()=>Date[_0x2b0e36(0x85)]()),_0x5438a4=_0x37e87e[_0x2b0e36(0x81)]??setInterval,_0x1bbc59=createCommandSpinner(_0x2aa29d,_0x37e87e);_0x1bbc59[_0x2b0e36(0x88)]();const _0x2dead5=_0x10b0bd(),_0x21e22a=_0x2aa29d[_0x2b0e36(0x90)](_0x2b0e36(0x8b),'')[_0x2b0e36(0x84)]()||'Processing',_0x33c041={};let _0x2ade92=_0x2aa29d;const _0x23266f=()=>{const _0x2ba24b=_0x2b0e36;if(!_0x1bbc59[_0x2ba24b(0x7c)])return;const _0x58f9bf=_0x10b0bd()-_0x2dead5,_0x38a9ca=formatElapsed(_0x58f9bf),_0x4fec83=_0x33c041[_0x2ba24b(0x7a)]?.[_0x2ba24b(0x84)]()||_0x21e22a,_0x25914e=_0x33c041[_0x2ba24b(0x8e)]?_0x2ba24b(0x86)+_0x33c041['jobId']+']':'',_0x3443ca=_0x33c041[_0x2ba24b(0x80)]?'\x20'+_0x33c041[_0x2ba24b(0x80)]:'',_0xbb42ac=_0x4fec83+'\x20'+_0x38a9ca+_0x3443ca+_0x25914e;_0xbb42ac!==_0x2ade92&&_0xbb42ac[_0x2ba24b(0x84)]()&&(_0x1bbc59[_0x2ba24b(0x8c)]=_0xbb42ac,_0x2ade92=_0xbb42ac);},_0x4f783b=_0x5438a4(()=>{_0x23266f();},0x3e8),_0x337b2f={'setPhase':_0x46d2ec=>{const _0x502429=_0x2b0e36;_0x33c041[_0x502429(0x7a)]=_0x46d2ec;const _0x3a3236=_0x46d2ec?.['trim']()||_0x21e22a,_0x4efd27=_0x10b0bd()-_0x2dead5,_0x1bb26b=formatElapsed(_0x4efd27),_0x19e05d=_0x33c041[_0x502429(0x8e)]?_0x502429(0x86)+_0x33c041[_0x502429(0x8e)]+']':'',_0x34f6c1=_0x33c041[_0x502429(0x80)]?'\x20'+_0x33c041[_0x502429(0x80)]:'',_0x28e949=_0x3a3236+'\x20'+_0x1bb26b+_0x34f6c1+_0x19e05d;_0x1bbc59[_0x502429(0x7c)]&&_0x28e949[_0x502429(0x84)]()&&(_0x1bbc59[_0x502429(0x8c)]=_0x28e949,_0x2ade92=_0x28e949);},'setJobId':_0x4a70cf=>{const _0x24435b=_0x2b0e36;_0x33c041[_0x24435b(0x8e)]=_0x4a70cf,_0x23266f();},'setExtra':_0x3a068f=>{const _0x3445da=_0x2b0e36;_0x33c041[_0x3445da(0x80)]=_0x3a068f,_0x23266f();}};_0x23266f();try{const _0x21dbf4=await _0x56477e(_0x337b2f),_0x3e5ded=_0x10b0bd()-_0x2dead5;return{'data':_0x21dbf4,'elapsedMs':_0x3e5ded};}finally{clearInterval(_0x4f783b),_0x1bbc59[_0x2b0e36(0x8a)]();}}export function formatElapsed(_0x26139b){const _0x259921=a251_0x18e6,_0x19eec6=Math[_0x259921(0x7b)](_0x26139b/0x3e8);if(_0x19eec6<0x3c)return(_0x26139b/0x3e8)[_0x259921(0x82)](0x1)+'s';const _0x2544dc=Math[_0x259921(0x7b)](_0x19eec6/0x3c),_0x3820d2=_0x19eec6%0x3c;if(_0x2544dc<0x3c)return _0x2544dc+'m\x20'+_0x3820d2+'s';const _0x33c803=Math[_0x259921(0x7b)](_0x2544dc/0x3c),_0x59d621=_0x2544dc%0x3c;return _0x33c803+'h\x20'+_0x59d621+'m';}
1
+ (function(_0x114671,_0x1c7702){const _0x56adba=a257_0x2085,_0xd42514=_0x114671();while(!![]){try{const _0x362eae=-parseInt(_0x56adba(0x172))/0x1*(parseInt(_0x56adba(0x171))/0x2)+-parseInt(_0x56adba(0x16f))/0x3+-parseInt(_0x56adba(0x176))/0x4*(-parseInt(_0x56adba(0x177))/0x5)+-parseInt(_0x56adba(0x17b))/0x6*(-parseInt(_0x56adba(0x16a))/0x7)+parseInt(_0x56adba(0x17a))/0x8+-parseInt(_0x56adba(0x168))/0x9+parseInt(_0x56adba(0x16d))/0xa;if(_0x362eae===_0x1c7702)break;else _0xd42514['push'](_0xd42514['shift']());}catch(_0x3738d4){_0xd42514['push'](_0xd42514['shift']());}}}(a257_0x2b34,0x3f4ed));function a257_0x2085(_0x2d6d90,_0x5e93e1){_0x2d6d90=_0x2d6d90-0x165;const _0x2b34c6=a257_0x2b34();let _0x20858f=_0x2b34c6[_0x2d6d90];return _0x20858f;}function a257_0x2b34(){const _0x567dfa=['isTTY','2221580jglapw','clock','539559JhLHgU','jobId','62wyLoCD','9322NxjbXH','toFixed','floor','\x20[Job\x20ID:\x20','1730800qlNVjb','5eTQjcv','start','stderr','2448736JMsNEK','12qVDyyl','now','...','intervalFactory','extra','text','replace','2504376SVgjGU','stop','159103oYpuuP','trim'];a257_0x2b34=function(){return _0x567dfa;};return a257_0x2b34();}import a257_0x3a41eb from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x102e2d,_0x4a6fa7={}){const _0x588425=a257_0x2085,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x4a6fa7;return a257_0x3a41eb({'text':_0x102e2d,'color':'cyan','stream':process[_0x588425(0x179)],'isEnabled':forceEnabled||process[_0x588425(0x179)][_0x588425(0x16c)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x303ed4,_0x246bc7,_0x737fab={}){const _0x3cb6a2=a257_0x2085,_0x275ef0=_0x737fab[_0x3cb6a2(0x16e)]??(()=>Date['now']()),_0x3df1f0=createCommandSpinner(_0x303ed4,_0x737fab);_0x3df1f0[_0x3cb6a2(0x178)]();const _0xdc5c4b=_0x275ef0();try{const _0x366f4d=await _0x246bc7(),_0xdd8cbf=_0x275ef0()-_0xdc5c4b;return _0x3df1f0[_0x3cb6a2(0x169)](),{'data':_0x366f4d,'elapsedMs':_0xdd8cbf};}catch(_0x6e57e1){_0x3df1f0[_0x3cb6a2(0x169)]();throw _0x6e57e1;}}export async function withProgressSpinner(_0x403f07,_0x364da7,_0x4f720b={}){const _0x3f0bd6=a257_0x2085,_0x4d7940=_0x4f720b[_0x3f0bd6(0x16e)]??(()=>Date[_0x3f0bd6(0x17c)]()),_0x292dc1=_0x4f720b[_0x3f0bd6(0x17e)]??setInterval,_0x5d786f=createCommandSpinner(_0x403f07,_0x4f720b);_0x5d786f[_0x3f0bd6(0x178)]();const _0x21603=_0x4d7940(),_0x3fcded=_0x403f07[_0x3f0bd6(0x167)](_0x3f0bd6(0x17d),'')[_0x3f0bd6(0x16b)]()||'Processing',_0x4d4693={};let _0x6e0856=_0x403f07;const _0x3a17a7=()=>{const _0x4cb3ef=_0x3f0bd6;if(!_0x5d786f['isSpinning'])return;const _0x2fc52a=_0x4d7940()-_0x21603,_0x2da9bd=formatElapsed(_0x2fc52a),_0x2a3bf7=_0x4d4693['phase']?.[_0x4cb3ef(0x16b)]()||_0x3fcded,_0x391af8=_0x4d4693[_0x4cb3ef(0x170)]?'\x20[Job\x20ID:\x20'+_0x4d4693['jobId']+']':'',_0x54d7f8=_0x4d4693[_0x4cb3ef(0x165)]?'\x20'+_0x4d4693[_0x4cb3ef(0x165)]:'',_0x43e561=_0x2a3bf7+'\x20'+_0x2da9bd+_0x54d7f8+_0x391af8;_0x43e561!==_0x6e0856&&_0x43e561[_0x4cb3ef(0x16b)]()&&(_0x5d786f[_0x4cb3ef(0x166)]=_0x43e561,_0x6e0856=_0x43e561);},_0x465a85=_0x292dc1(()=>{_0x3a17a7();},0x3e8),_0xf686b8={'setPhase':_0x253258=>{const _0x46e562=_0x3f0bd6;_0x4d4693['phase']=_0x253258;const _0x1aa4f5=_0x253258?.[_0x46e562(0x16b)]()||_0x3fcded,_0xbb572f=_0x4d7940()-_0x21603,_0x82e032=formatElapsed(_0xbb572f),_0x36e3bc=_0x4d4693[_0x46e562(0x170)]?_0x46e562(0x175)+_0x4d4693[_0x46e562(0x170)]+']':'',_0x583b0d=_0x4d4693[_0x46e562(0x165)]?'\x20'+_0x4d4693['extra']:'',_0xff0885=_0x1aa4f5+'\x20'+_0x82e032+_0x583b0d+_0x36e3bc;_0x5d786f['isSpinning']&&_0xff0885['trim']()&&(_0x5d786f[_0x46e562(0x166)]=_0xff0885,_0x6e0856=_0xff0885);},'setJobId':_0x1c0708=>{_0x4d4693['jobId']=_0x1c0708,_0x3a17a7();},'setExtra':_0x4d5d97=>{const _0x4c2fe7=_0x3f0bd6;_0x4d4693[_0x4c2fe7(0x165)]=_0x4d5d97,_0x3a17a7();}};_0x3a17a7();try{const _0x26dc10=await _0x364da7(_0xf686b8),_0xc3d21=_0x4d7940()-_0x21603;return{'data':_0x26dc10,'elapsedMs':_0xc3d21};}finally{clearInterval(_0x465a85),_0x5d786f['stop']();}}export function formatElapsed(_0x8c077e){const _0x4c8658=a257_0x2085,_0x1c1298=Math['floor'](_0x8c077e/0x3e8);if(_0x1c1298<0x3c)return(_0x8c077e/0x3e8)[_0x4c8658(0x173)](0x1)+'s';const _0x25ed49=Math[_0x4c8658(0x174)](_0x1c1298/0x3c),_0x4f483d=_0x1c1298%0x3c;if(_0x25ed49<0x3c)return _0x25ed49+'m\x20'+_0x4f483d+'s';const _0x20db8a=Math['floor'](_0x25ed49/0x3c),_0x12e8a8=_0x25ed49%0x3c;return _0x20db8a+'h\x20'+_0x12e8a8+'m';}
@@ -1 +1 @@
1
- (function(_0x497da7,_0xc061d4){const _0x31d20d=a252_0x28c8,_0x13ae80=_0x497da7();while(!![]){try{const _0x4dcaa1=parseInt(_0x31d20d(0x120))/0x1+-parseInt(_0x31d20d(0x10c))/0x2+-parseInt(_0x31d20d(0x113))/0x3+-parseInt(_0x31d20d(0x110))/0x4+parseInt(_0x31d20d(0x118))/0x5*(-parseInt(_0x31d20d(0x119))/0x6)+parseInt(_0x31d20d(0x11f))/0x7*(parseInt(_0x31d20d(0x117))/0x8)+parseInt(_0x31d20d(0x11a))/0x9;if(_0x4dcaa1===_0xc061d4)break;else _0x13ae80['push'](_0x13ae80['shift']());}catch(_0x1869e1){_0x13ae80['push'](_0x13ae80['shift']());}}}(a252_0x19c2,0xc8203));export async function*parseSSEStream(_0x49cf55,_0x2ec6ac){const _0x5771a2=a252_0x28c8;if(!_0x49cf55['body'])throw new Error(_0x5771a2(0x111));const _0x1227fa=_0x49cf55[_0x5771a2(0x10f)][_0x5771a2(0x10b)](),_0x4414c9=new TextDecoder();let _0x372b78='',_0x3aafc1={};try{while(!![]){const {done:_0x2a92b6,value:_0x216d90}=await _0x1227fa[_0x5771a2(0x114)]();if(_0x2a92b6){if(_0x3aafc1['data']){_0x2ec6ac?.[_0x5771a2(0x112)](_0x5771a2(0x11e)+_0x3aafc1[_0x5771a2(0x115)]);const _0x13005d=parseSSEData(_0x3aafc1[_0x5771a2(0x115)]);yield _0x13005d;}break;}_0x372b78+=_0x4414c9[_0x5771a2(0x11c)](_0x216d90,{'stream':!![]});const _0x38092d=_0x372b78['split']('\x0a');_0x372b78=_0x38092d['pop']()||'';for(const _0x357b15 of _0x38092d){if(_0x357b15[_0x5771a2(0x116)]()===''){if(_0x3aafc1[_0x5771a2(0x115)]){_0x2ec6ac?.[_0x5771a2(0x112)](_0x5771a2(0x11e)+_0x3aafc1[_0x5771a2(0x115)]);const _0x110183=parseSSEData(_0x3aafc1['data']);yield _0x110183,_0x3aafc1={};}continue;}if(_0x357b15[_0x5771a2(0x10d)](':'))continue;const _0xbe3abf=_0x357b15[_0x5771a2(0x10e)](':');if(_0xbe3abf===-0x1)continue;const _0x573798=_0x357b15[_0x5771a2(0x11b)](0x0,_0xbe3abf);let _0x4fac27=_0x357b15['slice'](_0xbe3abf+0x1);_0x4fac27[_0x5771a2(0x10d)]('\x20')&&(_0x4fac27=_0x4fac27[_0x5771a2(0x11b)](0x1));switch(_0x573798){case _0x5771a2(0x121):_0x3aafc1[_0x5771a2(0x121)]=_0x4fac27;break;case _0x5771a2(0x115):_0x3aafc1['data']=_0x3aafc1[_0x5771a2(0x115)]?_0x3aafc1[_0x5771a2(0x115)]+'\x0a'+_0x4fac27:_0x4fac27;break;case'id':_0x3aafc1['id']=_0x4fac27;break;}}}}finally{_0x1227fa['releaseLock']();}}function a252_0x19c2(){const _0x483bf4=['indexOf','body','1515104JyXIxK','Response\x20body\x20is\x20null','debug','4349514BXBjSA','read','data','trim','7654696qxPrhQ','5068680rpfeCP','6RNSSho','27191205dAOcmx','slice','decode','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','[LLM\x20API\x20SSE]\x20','7WwmwMW','50351qyEIHQ','event','parse','getReader','732736MawKDJ','startsWith'];a252_0x19c2=function(){return _0x483bf4;};return a252_0x19c2();}function a252_0x28c8(_0x45cb87,_0x3fa010){_0x45cb87=_0x45cb87-0x10b;const _0x19c2b0=a252_0x19c2();let _0x28c839=_0x19c2b0[_0x45cb87];return _0x28c839;}function parseSSEData(_0x3ae3c1){const _0x463927=a252_0x28c8;try{return JSON[_0x463927(0x122)](_0x3ae3c1);}catch(_0x4b2868){throw new Error(_0x463927(0x11d)+_0x3ae3c1,{'cause':_0x4b2868});}}
1
+ function a258_0xa388(_0x5662ab,_0x3d05f4){_0x5662ab=_0x5662ab-0xac;const _0x326e0e=a258_0x326e();let _0xa388db=_0x326e0e[_0x5662ab];return _0xa388db;}function a258_0x326e(){const _0x401918=['10318ieSHLF','decode','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','data','pop','45JWenoI','90bwrCAy','455958BoBAbt','split','debug','6113gaxDxZ','trim','read','event','4506894unUjGV','110lAkPBm','[LLM\x20API\x20SSE]\x20','startsWith','body','releaseLock','189618fGqUNR','90248tdjcgi','parse','1743848TYAElL','slice','528UYlRNq','Response\x20body\x20is\x20null'];a258_0x326e=function(){return _0x401918;};return a258_0x326e();}(function(_0x236654,_0x52f71c){const _0x2bf9bd=a258_0xa388,_0x3eff2e=_0x236654();while(!![]){try{const _0xe9fb4c=parseInt(_0x2bf9bd(0xc4))/0x1+parseInt(_0x2bf9bd(0xba))/0x2*(parseInt(_0x2bf9bd(0xb8))/0x3)+-parseInt(_0x2bf9bd(0xb4))/0x4+parseInt(_0x2bf9bd(0xc0))/0x5*(parseInt(_0x2bf9bd(0xc1))/0x6)+-parseInt(_0x2bf9bd(0xad))/0x7+-parseInt(_0x2bf9bd(0xb6))/0x8*(parseInt(_0x2bf9bd(0xbf))/0x9)+-parseInt(_0x2bf9bd(0xae))/0xa*(-parseInt(_0x2bf9bd(0xb3))/0xb);if(_0xe9fb4c===_0x52f71c)break;else _0x3eff2e['push'](_0x3eff2e['shift']());}catch(_0x17d7b1){_0x3eff2e['push'](_0x3eff2e['shift']());}}}(a258_0x326e,0xaea10));export async function*parseSSEStream(_0x4747a3,_0x92a7f5){const _0x25ef9b=a258_0xa388;if(!_0x4747a3[_0x25ef9b(0xb1)])throw new Error(_0x25ef9b(0xb9));const _0x4348fd=_0x4747a3[_0x25ef9b(0xb1)]['getReader'](),_0x84c024=new TextDecoder();let _0xa1db4f='',_0x211c88={};try{while(!![]){const {done:_0x5f55e5,value:_0x79bd1}=await _0x4348fd[_0x25ef9b(0xc6)]();if(_0x5f55e5){if(_0x211c88[_0x25ef9b(0xbd)]){_0x92a7f5?.[_0x25ef9b(0xc3)]('[LLM\x20API\x20SSE]\x20'+_0x211c88[_0x25ef9b(0xbd)]);const _0x4af3b3=parseSSEData(_0x211c88['data']);yield _0x4af3b3;}break;}_0xa1db4f+=_0x84c024[_0x25ef9b(0xbb)](_0x79bd1,{'stream':!![]});const _0x3f8ae1=_0xa1db4f[_0x25ef9b(0xc2)]('\x0a');_0xa1db4f=_0x3f8ae1[_0x25ef9b(0xbe)]()||'';for(const _0x11b2b1 of _0x3f8ae1){if(_0x11b2b1[_0x25ef9b(0xc5)]()===''){if(_0x211c88[_0x25ef9b(0xbd)]){_0x92a7f5?.[_0x25ef9b(0xc3)](_0x25ef9b(0xaf)+_0x211c88[_0x25ef9b(0xbd)]);const _0x3a7f94=parseSSEData(_0x211c88[_0x25ef9b(0xbd)]);yield _0x3a7f94,_0x211c88={};}continue;}if(_0x11b2b1[_0x25ef9b(0xb0)](':'))continue;const _0x36d1bb=_0x11b2b1['indexOf'](':');if(_0x36d1bb===-0x1)continue;const _0x31006b=_0x11b2b1[_0x25ef9b(0xb7)](0x0,_0x36d1bb);let _0x34245f=_0x11b2b1['slice'](_0x36d1bb+0x1);_0x34245f[_0x25ef9b(0xb0)]('\x20')&&(_0x34245f=_0x34245f[_0x25ef9b(0xb7)](0x1));switch(_0x31006b){case _0x25ef9b(0xac):_0x211c88['event']=_0x34245f;break;case'data':_0x211c88['data']=_0x211c88[_0x25ef9b(0xbd)]?_0x211c88[_0x25ef9b(0xbd)]+'\x0a'+_0x34245f:_0x34245f;break;case'id':_0x211c88['id']=_0x34245f;break;}}}}finally{_0x4348fd[_0x25ef9b(0xb2)]();}}function parseSSEData(_0x13d12c){const _0x442101=a258_0xa388;try{return JSON[_0x442101(0xb5)](_0x13d12c);}catch(_0xa16d0b){throw new Error(_0x442101(0xbc)+_0x13d12c,{'cause':_0xa16d0b});}}