@treasuredata/tdx 2026.3.30 → 2026.3.32

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 (303) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +2 -2
  4. package/dist/cli-categories.d.ts.map +1 -1
  5. package/dist/cli-categories.js +1 -1
  6. package/dist/cli-categories.js.map +1 -1
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +1 -1
  9. package/dist/cli.js.map +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/agent-command.js +1 -1
  12. package/dist/commands/agent-test-command.js +1 -1
  13. package/dist/commands/api-command.js +1 -1
  14. package/dist/commands/api-command.js.map +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/auth-login-command.js +1 -1
  17. package/dist/commands/cas-command.d.ts +55 -0
  18. package/dist/commands/cas-command.d.ts.map +1 -0
  19. package/dist/commands/cas-command.js +1 -0
  20. package/dist/commands/cas-command.js.map +1 -0
  21. package/dist/commands/cas-segment-command.d.ts +18 -0
  22. package/dist/commands/cas-segment-command.d.ts.map +1 -0
  23. package/dist/commands/cas-segment-command.js +1 -0
  24. package/dist/commands/cas-segment-command.js.map +1 -0
  25. package/dist/commands/chat-command.js +1 -1
  26. package/dist/commands/claude-command.js +1 -1
  27. package/dist/commands/claude-statusline-command.js +1 -1
  28. package/dist/commands/claude-usage-command.js +1 -1
  29. package/dist/commands/command.js +1 -1
  30. package/dist/commands/connection-command.js +1 -1
  31. package/dist/commands/databases.js +1 -1
  32. package/dist/commands/delivery-command.js +1 -1
  33. package/dist/commands/describe.js +1 -1
  34. package/dist/commands/engage-campaign-pull-command.js +1 -1
  35. package/dist/commands/engage-campaign-push-command.js +1 -1
  36. package/dist/commands/engage-campaign-validate-command.js +1 -1
  37. package/dist/commands/engage-command.js +1 -1
  38. package/dist/commands/engage-template-pull-command.js +1 -1
  39. package/dist/commands/engage-template-push-command.js +1 -1
  40. package/dist/commands/engage-template-validate-command.js +1 -1
  41. package/dist/commands/job-command.js +1 -1
  42. package/dist/commands/journey-command.js +1 -1
  43. package/dist/commands/journey-validate-command.js +1 -1
  44. package/dist/commands/llm-command.js +1 -1
  45. package/dist/commands/mcp-command.js +1 -1
  46. package/dist/commands/parent-segment-command.js +1 -1
  47. package/dist/commands/policy-command.js +1 -1
  48. package/dist/commands/profile-command.js +1 -1
  49. package/dist/commands/profiles-command.js +1 -1
  50. package/dist/commands/query-command.js +1 -1
  51. package/dist/commands/schedule-command.js +1 -1
  52. package/dist/commands/segment-command.js +1 -1
  53. package/dist/commands/segment-create-command.js +1 -1
  54. package/dist/commands/segment-fields-command.js +1 -1
  55. package/dist/commands/segment-pull-command.js +1 -1
  56. package/dist/commands/segment-push-command.js +1 -1
  57. package/dist/commands/segment-update-command.js +1 -1
  58. package/dist/commands/segment-use-command.js +1 -1
  59. package/dist/commands/segment-validate-command.js +1 -1
  60. package/dist/commands/segments.js +1 -1
  61. package/dist/commands/show.js +1 -1
  62. package/dist/commands/status-command.js +1 -1
  63. package/dist/commands/tables.js +1 -1
  64. package/dist/commands/unset-command.d.ts.map +1 -1
  65. package/dist/commands/unset-command.js +1 -1
  66. package/dist/commands/unset-command.js.map +1 -1
  67. package/dist/commands/upgrade-command.js +1 -1
  68. package/dist/commands/use-command.d.ts.map +1 -1
  69. package/dist/commands/use-command.js +1 -1
  70. package/dist/commands/use-command.js.map +1 -1
  71. package/dist/commands/user-command.js +1 -1
  72. package/dist/commands/work-command.d.ts +36 -0
  73. package/dist/commands/work-command.d.ts.map +1 -0
  74. package/dist/commands/work-command.js +1 -0
  75. package/dist/commands/work-command.js.map +1 -0
  76. package/dist/commands/workflow-command.js +1 -1
  77. package/dist/core/auth.js +1 -1
  78. package/dist/core/command-output.js +1 -1
  79. package/dist/core/config.js +1 -1
  80. package/dist/core/connection-cache.js +1 -1
  81. package/dist/core/constants.js +1 -1
  82. package/dist/core/credential-cache.js +1 -1
  83. package/dist/core/global-context.d.ts +1 -0
  84. package/dist/core/global-context.d.ts.map +1 -1
  85. package/dist/core/global-context.js +1 -1
  86. package/dist/core/global-context.js.map +1 -1
  87. package/dist/core/keychain.js +1 -1
  88. package/dist/core/oauth-keychain.js +1 -1
  89. package/dist/core/oauth.js +1 -1
  90. package/dist/core/profile.js +1 -1
  91. package/dist/core/project-config.d.ts +2 -0
  92. package/dist/core/project-config.d.ts.map +1 -1
  93. package/dist/core/project-config.js +1 -1
  94. package/dist/core/project-config.js.map +1 -1
  95. package/dist/core/session.d.ts +2 -1
  96. package/dist/core/session.d.ts.map +1 -1
  97. package/dist/core/session.js +1 -1
  98. package/dist/core/session.js.map +1 -1
  99. package/dist/core/user-cache.js +1 -1
  100. package/dist/core/version.js +1 -1
  101. package/dist/index.js +1 -1
  102. package/dist/mcp/server.js +1 -1
  103. package/dist/mcp/tools/index.js +1 -1
  104. package/dist/mcp/tools/tdx-run.js +1 -1
  105. package/dist/mcp/tools/tdx-search.js +1 -1
  106. package/dist/mcp/utils.js +1 -1
  107. package/dist/proxy/claude-usage-tracker.js +1 -1
  108. package/dist/proxy/passthrough-server.js +1 -1
  109. package/dist/proxy/sse-usage-parser.js +1 -1
  110. package/dist/sdk/agent/agent-config.js +1 -1
  111. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  112. package/dist/sdk/agent/agent-yaml.js +1 -1
  113. package/dist/sdk/agent/test/evaluator.js +1 -1
  114. package/dist/sdk/agent/test/executor.js +1 -1
  115. package/dist/sdk/agent/test/index.js +1 -1
  116. package/dist/sdk/agent/test/output.js +1 -1
  117. package/dist/sdk/agent/test/parser.js +1 -1
  118. package/dist/sdk/agent/tool-target-registry.js +1 -1
  119. package/dist/sdk/api.js +1 -1
  120. package/dist/sdk/cas/cas-api-client.d.ts +77 -0
  121. package/dist/sdk/cas/cas-api-client.d.ts.map +1 -0
  122. package/dist/sdk/cas/cas-api-client.js +1 -0
  123. package/dist/sdk/cas/cas-api-client.js.map +1 -0
  124. package/dist/sdk/cas/cas-audience-yaml.d.ts +32 -0
  125. package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -0
  126. package/dist/sdk/cas/cas-audience-yaml.js +1 -0
  127. package/dist/sdk/cas/cas-audience-yaml.js.map +1 -0
  128. package/dist/sdk/cas/cas-segment-yaml.d.ts +38 -0
  129. package/dist/sdk/cas/cas-segment-yaml.d.ts.map +1 -0
  130. package/dist/sdk/cas/cas-segment-yaml.js +1 -0
  131. package/dist/sdk/cas/cas-segment-yaml.js.map +1 -0
  132. package/dist/sdk/cas/index.d.ts +61 -0
  133. package/dist/sdk/cas/index.d.ts.map +1 -0
  134. package/dist/sdk/cas/index.js +1 -0
  135. package/dist/sdk/cas/index.js.map +1 -0
  136. package/dist/sdk/cas/pull-workflow.d.ts +53 -0
  137. package/dist/sdk/cas/pull-workflow.d.ts.map +1 -0
  138. package/dist/sdk/cas/pull-workflow.js +1 -0
  139. package/dist/sdk/cas/pull-workflow.js.map +1 -0
  140. package/dist/sdk/cas/push-workflow.d.ts +50 -0
  141. package/dist/sdk/cas/push-workflow.d.ts.map +1 -0
  142. package/dist/sdk/cas/push-workflow.js +1 -0
  143. package/dist/sdk/cas/push-workflow.js.map +1 -0
  144. package/dist/sdk/cas/types.d.ts +115 -0
  145. package/dist/sdk/cas/types.d.ts.map +1 -0
  146. package/dist/sdk/cas/types.js +1 -0
  147. package/dist/sdk/cas/types.js.map +1 -0
  148. package/dist/sdk/client/cdp-api-client.js +1 -1
  149. package/dist/sdk/client/delivery-api-client.js +1 -1
  150. package/dist/sdk/client/endpoints.d.ts +4 -0
  151. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  152. package/dist/sdk/client/endpoints.js +1 -1
  153. package/dist/sdk/client/endpoints.js.map +1 -1
  154. package/dist/sdk/client/engage-api-client.js +1 -1
  155. package/dist/sdk/client/http-client.js +1 -1
  156. package/dist/sdk/client/llm-api-client.js +1 -1
  157. package/dist/sdk/client/oauth-refresh.js +1 -1
  158. package/dist/sdk/client/rate-limiter.js +1 -1
  159. package/dist/sdk/client/td-api-client.js +1 -1
  160. package/dist/sdk/client/trino-api-client.js +1 -1
  161. package/dist/sdk/client/workflow-client.js +1 -1
  162. package/dist/sdk/connection-validator.js +1 -1
  163. package/dist/sdk/connection.js +1 -1
  164. package/dist/sdk/delivery.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/campaign-def.js +1 -1
  174. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  175. package/dist/sdk/engage/types/template-schema.js +1 -1
  176. package/dist/sdk/engage.js +1 -1
  177. package/dist/sdk/errors.js +1 -1
  178. package/dist/sdk/index.d.ts +7 -0
  179. package/dist/sdk/index.d.ts.map +1 -1
  180. package/dist/sdk/index.js +1 -1
  181. package/dist/sdk/index.js.map +1 -1
  182. package/dist/sdk/io/index.js +1 -1
  183. package/dist/sdk/io/node-filesystem.js +1 -1
  184. package/dist/sdk/job.js +1 -1
  185. package/dist/sdk/journey.js +1 -1
  186. package/dist/sdk/llm/chat-cache.js +1 -1
  187. package/dist/sdk/llm/index.js +1 -1
  188. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  189. package/dist/sdk/llm/model-factors.js +1 -1
  190. package/dist/sdk/personalization.js +1 -1
  191. package/dist/sdk/policy.js +1 -1
  192. package/dist/sdk/query/index.js +1 -1
  193. package/dist/sdk/query/sql-parser.js +1 -1
  194. package/dist/sdk/realtime.js +1 -1
  195. package/dist/sdk/schedule.js +1 -1
  196. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  197. package/dist/sdk/segment/fields-display.js +1 -1
  198. package/dist/sdk/segment/file-discovery.js +1 -1
  199. package/dist/sdk/segment/journey-utils.js +1 -1
  200. package/dist/sdk/segment/journey-validator.js +1 -1
  201. package/dist/sdk/segment/journey-yaml.js +1 -1
  202. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  203. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  204. package/dist/sdk/segment/pull-workflow.js +1 -1
  205. package/dist/sdk/segment/push-recovery.js +1 -1
  206. package/dist/sdk/segment/push-workflow.js +1 -1
  207. package/dist/sdk/segment/resolution-context.js +1 -1
  208. package/dist/sdk/segment/segment-path-parser.js +1 -1
  209. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  210. package/dist/sdk/segment/segment-validator.js +1 -1
  211. package/dist/sdk/segment/target-resolution.js +1 -1
  212. package/dist/sdk/segment/tdx-config.js +1 -1
  213. package/dist/sdk/segment/types/activation-schema.js +1 -1
  214. package/dist/sdk/segment/types/journey-def.js +1 -1
  215. package/dist/sdk/segment/types/journey-schema.js +1 -1
  216. package/dist/sdk/segment/types/segment-def.js +1 -1
  217. package/dist/sdk/segment/types/segment-schema.js +1 -1
  218. package/dist/sdk/segment/validate-files.js +1 -1
  219. package/dist/sdk/segment/yaml-validator.js +1 -1
  220. package/dist/sdk/segment.js +1 -1
  221. package/dist/sdk/types/cas.d.ts +242 -0
  222. package/dist/sdk/types/cas.d.ts.map +1 -0
  223. package/dist/sdk/types/cas.js +1 -0
  224. package/dist/sdk/types/cas.js.map +1 -0
  225. package/dist/sdk/types/index.d.ts +5 -1
  226. package/dist/sdk/types/index.d.ts.map +1 -1
  227. package/dist/sdk/types/index.js +1 -1
  228. package/dist/sdk/types/index.js.map +1 -1
  229. package/dist/sdk/types/progress.js +1 -1
  230. package/dist/sdk/types/workspace.d.ts +146 -0
  231. package/dist/sdk/types/workspace.d.ts.map +1 -0
  232. package/dist/sdk/types/workspace.js +1 -0
  233. package/dist/sdk/types/workspace.js.map +1 -0
  234. package/dist/sdk/user.js +1 -1
  235. package/dist/sdk/util/format-detector.js +1 -1
  236. package/dist/sdk/util/formatters.js +1 -1
  237. package/dist/sdk/util/index.js +1 -1
  238. package/dist/sdk/util/paginate.js +1 -1
  239. package/dist/sdk/util/tree-formatter.js +1 -1
  240. package/dist/sdk/workflow/archive-validation.js +1 -1
  241. package/dist/sdk/workflow/clone-workflow.js +1 -1
  242. package/dist/sdk/workflow/index.js +1 -1
  243. package/dist/sdk/workflow/pull-workflow.js +1 -1
  244. package/dist/sdk/workflow/push-workflow.js +1 -1
  245. package/dist/sdk/workflow/tdx-config.js +1 -1
  246. package/dist/sdk/workflow/workflow-utils.js +1 -1
  247. package/dist/sdk/workspace/frontmatter.d.ts +28 -0
  248. package/dist/sdk/workspace/frontmatter.d.ts.map +1 -0
  249. package/dist/sdk/workspace/frontmatter.js +1 -0
  250. package/dist/sdk/workspace/frontmatter.js.map +1 -0
  251. package/dist/sdk/workspace/git.d.ts +55 -0
  252. package/dist/sdk/workspace/git.d.ts.map +1 -0
  253. package/dist/sdk/workspace/git.js +1 -0
  254. package/dist/sdk/workspace/git.js.map +1 -0
  255. package/dist/sdk/workspace/index.d.ts +149 -0
  256. package/dist/sdk/workspace/index.d.ts.map +1 -0
  257. package/dist/sdk/workspace/index.js +1 -0
  258. package/dist/sdk/workspace/index.js.map +1 -0
  259. package/dist/sdk/workspace/skills.d.ts +34 -0
  260. package/dist/sdk/workspace/skills.d.ts.map +1 -0
  261. package/dist/sdk/workspace/skills.js +1 -0
  262. package/dist/sdk/workspace/skills.js.map +1 -0
  263. package/dist/sdk/workspace/templates.d.ts +17 -0
  264. package/dist/sdk/workspace/templates.d.ts.map +1 -0
  265. package/dist/sdk/workspace/templates.js +1 -0
  266. package/dist/sdk/workspace/templates.js.map +1 -0
  267. package/dist/sdk/workspace/wikilinks.d.ts +44 -0
  268. package/dist/sdk/workspace/wikilinks.d.ts.map +1 -0
  269. package/dist/sdk/workspace/wikilinks.js +1 -0
  270. package/dist/sdk/workspace/wikilinks.js.map +1 -0
  271. package/dist/test-utils/command-runner.js +1 -1
  272. package/dist/test-utils/factories.js +1 -1
  273. package/dist/test-utils/fixtures.js +1 -1
  274. package/dist/test-utils/http-mock.js +1 -1
  275. package/dist/test-utils/index.js +1 -1
  276. package/dist/utils/async.js +1 -1
  277. package/dist/utils/colors.js +1 -1
  278. package/dist/utils/diff.js +1 -1
  279. package/dist/utils/file-permissions.js +1 -1
  280. package/dist/utils/file-reader.js +1 -1
  281. package/dist/utils/github-releases.js +1 -1
  282. package/dist/utils/global-cache.js +1 -1
  283. package/dist/utils/json-loader.js +1 -1
  284. package/dist/utils/local-cache.js +1 -1
  285. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  286. package/dist/utils/logger/formatters/index.js +1 -1
  287. package/dist/utils/logger/handlers/console-handler.js +1 -1
  288. package/dist/utils/logger/handlers/file-handler.js +1 -1
  289. package/dist/utils/logger/handlers/index.js +1 -1
  290. package/dist/utils/logger/handlers/null-handler.js +1 -1
  291. package/dist/utils/logger/index.js +1 -1
  292. package/dist/utils/logger/logger.js +1 -1
  293. package/dist/utils/logger/types.js +1 -1
  294. package/dist/utils/option-validation.js +1 -1
  295. package/dist/utils/process.js +1 -1
  296. package/dist/utils/prompt.js +1 -1
  297. package/dist/utils/spinner.js +1 -1
  298. package/dist/utils/sse-parser.js +1 -1
  299. package/dist/utils/string-utils.js +1 -1
  300. package/dist/utils/table-ref-parser.js +1 -1
  301. package/dist/utils/tdx-logger.js +1 -1
  302. package/dist/utils/version-check.js +1 -1
  303. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x41cc8c,_0x34c4ed){const _0x1223ed=a193_0x4a6a,_0x32d6df=_0x41cc8c();while(!![]){try{const _0x494c65=-parseInt(_0x1223ed(0xa5))/0x1*(parseInt(_0x1223ed(0x9d))/0x2)+-parseInt(_0x1223ed(0x93))/0x3*(parseInt(_0x1223ed(0x9e))/0x4)+-parseInt(_0x1223ed(0x99))/0x5*(-parseInt(_0x1223ed(0x95))/0x6)+-parseInt(_0x1223ed(0x98))/0x7*(parseInt(_0x1223ed(0x8d))/0x8)+parseInt(_0x1223ed(0x8e))/0x9*(parseInt(_0x1223ed(0xa4))/0xa)+parseInt(_0x1223ed(0x92))/0xb*(-parseInt(_0x1223ed(0x8f))/0xc)+parseInt(_0x1223ed(0x8c))/0xd;if(_0x494c65===_0x34c4ed)break;else _0x32d6df['push'](_0x32d6df['shift']());}catch(_0x356f48){_0x32d6df['push'](_0x32d6df['shift']());}}}(a193_0x5c70,0x1f5a7));import*as a193_0x2cf083 from'node:fs';import*as a193_0x5c08bd from'node:path';function a193_0x4a6a(_0x372483,_0x39dac9){_0x372483=_0x372483-0x8c;const _0x5c7029=a193_0x5c70();let _0x4a6a31=_0x5c7029[_0x372483];return _0x4a6a31;}export function setSecureFilePermissions(_0x4a7429){const _0x173ae1=a193_0x4a6a;try{a193_0x2cf083[_0x173ae1(0x97)](_0x4a7429,0x180);}catch{console['warn'](_0x173ae1(0x96)+_0x4a7429);}}export function setSecureDirectoryPermissions(_0x1c8e30){const _0x50b055=a193_0x4a6a;try{a193_0x2cf083[_0x50b055(0x97)](_0x1c8e30,0x1c0);}catch{console[_0x50b055(0x9b)](_0x50b055(0x96)+_0x1c8e30);}}export function createSecureDirectory(_0x606ee3){const _0x3a6c9e=a193_0x4a6a;!a193_0x2cf083[_0x3a6c9e(0x94)](_0x606ee3)&&(a193_0x2cf083[_0x3a6c9e(0x9f)](_0x606ee3,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x606ee3));}export function validateSecureFilePermissions(_0x2f190f){const _0x431446=a193_0x4a6a;try{const _0x2343c9=a193_0x2cf083['statSync'](_0x2f190f),_0x35a8a8=_0x2343c9[_0x431446(0xa2)]&0x1ff,_0x8e53ea=(_0x35a8a8&0x3f)!==0x0;if(_0x8e53ea)return console['warn'](_0x431446(0x9c)+_0x2f190f+_0x431446(0xa3)+_0x35a8a8[_0x431446(0xa1)](0x8)+_0x431446(0x91)+_0x431446(0xa0)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xc416bc,_0x592772){const _0x48a102=a193_0x4a6a,_0x477b24=a193_0x5c08bd[_0x48a102(0x90)](_0xc416bc);createSecureDirectory(_0x477b24),a193_0x2cf083[_0x48a102(0x9a)](_0xc416bc,_0x592772,{'mode':0x180}),setSecureFilePermissions(_0xc416bc);}function a193_0x5c70(){const _0x1cfca1=['1045mpVXKe','2034IZGNwY','existsSync','209784miIWij','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','chmodSync','182UMBTSQ','10JpJkQv','writeFileSync','warn','Warning:\x20','2lRfOcR','1000xMlTeE','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','toString','mode','\x20has\x20insecure\x20permissions\x20(','638100oLbyLG','141454DDQONR','5805436iKXfkU','52144KVDuzj','27kSzCch','12516LLLhBs','dirname',').\x20'];a193_0x5c70=function(){return _0x1cfca1;};return a193_0x5c70();}
1
+ (function(_0x1b60b8,_0xb46f00){const _0x528cc1=a211_0x1909,_0x469284=_0x1b60b8();while(!![]){try{const _0x2a6e23=parseInt(_0x528cc1(0x12e))/0x1*(-parseInt(_0x528cc1(0x129))/0x2)+parseInt(_0x528cc1(0x135))/0x3*(parseInt(_0x528cc1(0x12c))/0x4)+parseInt(_0x528cc1(0x134))/0x5*(parseInt(_0x528cc1(0x12f))/0x6)+-parseInt(_0x528cc1(0x12a))/0x7+parseInt(_0x528cc1(0x131))/0x8+parseInt(_0x528cc1(0x132))/0x9+-parseInt(_0x528cc1(0x12d))/0xa;if(_0x2a6e23===_0xb46f00)break;else _0x469284['push'](_0x469284['shift']());}catch(_0x32ec0e){_0x469284['push'](_0x469284['shift']());}}}(a211_0x26ac,0xe1192));import*as a211_0x49a4b3 from'node:fs';function a211_0x26ac(){const _0xd3714f=['952lWyird','65954ZVETpH','mkdirSync','4ouuKYq','21297640sQowvT','1622hvoZud','93894AYYjLs','mode','2033296sbcpuP','16326135xRgqYw','warn','170DoZsmi','3699051bDfxUW','\x20has\x20insecure\x20permissions\x20(','Warning:\x20','toString','chmodSync','dirname'];a211_0x26ac=function(){return _0xd3714f;};return a211_0x26ac();}import*as a211_0x5c877c from'node:path';export function setSecureFilePermissions(_0x3c1c6e){const _0x646bb8=a211_0x1909;try{a211_0x49a4b3[_0x646bb8(0x127)](_0x3c1c6e,0x180);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x3c1c6e);}}export function setSecureDirectoryPermissions(_0x5ba18f){const _0xc4a0f6=a211_0x1909;try{a211_0x49a4b3[_0xc4a0f6(0x127)](_0x5ba18f,0x1c0);}catch{console[_0xc4a0f6(0x133)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x5ba18f);}}export function createSecureDirectory(_0x4ae4f6){const _0x28d465=a211_0x1909;!a211_0x49a4b3['existsSync'](_0x4ae4f6)&&(a211_0x49a4b3[_0x28d465(0x12b)](_0x4ae4f6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x4ae4f6));}function a211_0x1909(_0x23d930,_0x27496a){_0x23d930=_0x23d930-0x125;const _0x26acd6=a211_0x26ac();let _0x19099c=_0x26acd6[_0x23d930];return _0x19099c;}export function validateSecureFilePermissions(_0x4aa65d){const _0x408196=a211_0x1909;try{const _0x37837=a211_0x49a4b3['statSync'](_0x4aa65d),_0x2f639a=_0x37837[_0x408196(0x130)]&0x1ff,_0x4986fe=(_0x2f639a&0x3f)!==0x0;if(_0x4986fe)return console[_0x408196(0x133)](_0x408196(0x125)+_0x4aa65d+_0x408196(0x136)+_0x2f639a[_0x408196(0x126)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x244dbc,_0x4a3daf){const _0x114e97=a211_0x1909,_0x4c1781=a211_0x5c877c[_0x114e97(0x128)](_0x244dbc);createSecureDirectory(_0x4c1781),a211_0x49a4b3['writeFileSync'](_0x244dbc,_0x4a3daf,{'mode':0x180}),setSecureFilePermissions(_0x244dbc);}
@@ -1 +1 @@
1
- (function(_0xc15ed0,_0x3d5577){const _0x4bdb55=a194_0xf9b4,_0x3cf692=_0xc15ed0();while(!![]){try{const _0x30c55b=-parseInt(_0x4bdb55(0x1c8))/0x1+parseInt(_0x4bdb55(0x1d0))/0x2+-parseInt(_0x4bdb55(0x1cf))/0x3*(parseInt(_0x4bdb55(0x1d3))/0x4)+parseInt(_0x4bdb55(0x1cb))/0x5*(-parseInt(_0x4bdb55(0x1d2))/0x6)+-parseInt(_0x4bdb55(0x1d6))/0x7+parseInt(_0x4bdb55(0x1c9))/0x8+-parseInt(_0x4bdb55(0x1d1))/0x9*(-parseInt(_0x4bdb55(0x1c7))/0xa);if(_0x30c55b===_0x3d5577)break;else _0x3cf692['push'](_0x3cf692['shift']());}catch(_0x5b3e88){_0x3cf692['push'](_0x3cf692['shift']());}}}(a194_0x2b7f,0xea0d7));function a194_0xf9b4(_0x365831,_0x2e6746){_0x365831=_0x365831-0x1c7;const _0x2b7f6c=a194_0x2b7f();let _0xf9b4e3=_0x2b7f6c[_0x365831];return _0xf9b4e3;}function a194_0x2b7f(){const _0x26a302=['99vmGxBj','554182nHbiBP','441mlEKPp','912exHaWk','101072ujmZhA','Permission\x20denied\x20reading\x20file\x20\x27','message','9179366KGgkyl','EACCES','\x27\x20not\x20found','code','NOT_FOUND','658480hTWMUT','616108IEcWhS','6841456queArx','ENOENT','21015IQnByf','Error\x20reading\x20file\x20\x27','File\x20\x27','\x27:\x20'];a194_0x2b7f=function(){return _0x26a302;};return a194_0x2b7f();}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x4d0e41){const _0x5c0cbb=a194_0xf9b4;try{return readFileSync(_0x4d0e41,'utf-8');}catch(_0x1dcb56){const _0xe83e29=_0x1dcb56[_0x5c0cbb(0x1d9)];if(_0xe83e29===_0x5c0cbb(0x1ca))throw new SDKError(ErrorCode[_0x5c0cbb(0x1da)],_0x5c0cbb(0x1cd)+_0x4d0e41+_0x5c0cbb(0x1d8),_0x1dcb56);else{if(_0xe83e29===_0x5c0cbb(0x1d7))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x5c0cbb(0x1d4)+_0x4d0e41+'\x27',_0x1dcb56);else throw new SDKError(ErrorCode['INTERNAL'],_0x5c0cbb(0x1cc)+_0x4d0e41+_0x5c0cbb(0x1ce)+_0x1dcb56[_0x5c0cbb(0x1d5)],_0x1dcb56);}}}
1
+ (function(_0x415f7d,_0x4a164a){const _0x473108=a212_0x2d57,_0x403e29=_0x415f7d();while(!![]){try{const _0x20a14a=parseInt(_0x473108(0xba))/0x1*(parseInt(_0x473108(0xc0))/0x2)+-parseInt(_0x473108(0xb9))/0x3*(-parseInt(_0x473108(0xae))/0x4)+-parseInt(_0x473108(0xb4))/0x5+-parseInt(_0x473108(0xbf))/0x6*(-parseInt(_0x473108(0xb0))/0x7)+parseInt(_0x473108(0xaf))/0x8*(-parseInt(_0x473108(0xbd))/0x9)+-parseInt(_0x473108(0xbc))/0xa*(parseInt(_0x473108(0xb2))/0xb)+parseInt(_0x473108(0xb1))/0xc;if(_0x20a14a===_0x4a164a)break;else _0x403e29['push'](_0x403e29['shift']());}catch(_0x1a4d2c){_0x403e29['push'](_0x403e29['shift']());}}}(a212_0x59bd,0xd7449));function a212_0x2d57(_0x26e36f,_0x4cdd62){_0x26e36f=_0x26e36f-0xae;const _0x59bdbe=a212_0x59bd();let _0x2d5731=_0x59bdbe[_0x26e36f];return _0x2d5731;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a212_0x59bd(){const _0x548f23=['1163298wPmxxm','333734jNRQgJ','NOT_FOUND','utf-8','1086940HLwWSo','16uoNAHT','42tJuAjp','5856408HqUKJR','210716InwIkB','ENOENT','2992260LiDAFi','PERMISSION_DENIED','\x27\x20not\x20found','INTERNAL','message','15ixMZgd','4QoNlBK','Permission\x20denied\x20reading\x20file\x20\x27','240efAlye','7818939oLMfpl','EACCES'];a212_0x59bd=function(){return _0x548f23;};return a212_0x59bd();}export function readFileContent(_0x317f2b){const _0x24943a=a212_0x2d57;try{return readFileSync(_0x317f2b,_0x24943a(0xc2));}catch(_0x3a198e){const _0x6df81a=_0x3a198e['code'];if(_0x6df81a===_0x24943a(0xb3))throw new SDKError(ErrorCode[_0x24943a(0xc1)],'File\x20\x27'+_0x317f2b+_0x24943a(0xb6),_0x3a198e);else{if(_0x6df81a===_0x24943a(0xbe))throw new SDKError(ErrorCode[_0x24943a(0xb5)],_0x24943a(0xbb)+_0x317f2b+'\x27',_0x3a198e);else throw new SDKError(ErrorCode[_0x24943a(0xb7)],'Error\x20reading\x20file\x20\x27'+_0x317f2b+'\x27:\x20'+_0x3a198e[_0x24943a(0xb8)],_0x3a198e);}}}
@@ -1 +1 @@
1
- (function(_0x528fae,_0x202c88){const _0x2c065b=a195_0x449c,_0x4825e4=_0x528fae();while(!![]){try{const _0x100a2d=parseInt(_0x2c065b(0x1fe))/0x1*(parseInt(_0x2c065b(0x1ee))/0x2)+parseInt(_0x2c065b(0x20b))/0x3*(-parseInt(_0x2c065b(0x1f2))/0x4)+-parseInt(_0x2c065b(0x1ff))/0x5+parseInt(_0x2c065b(0x203))/0x6+-parseInt(_0x2c065b(0x200))/0x7+parseInt(_0x2c065b(0x209))/0x8+-parseInt(_0x2c065b(0x1fa))/0x9;if(_0x100a2d===_0x202c88)break;else _0x4825e4['push'](_0x4825e4['shift']());}catch(_0x4aa407){_0x4825e4['push'](_0x4825e4['shift']());}}}(a195_0x56f5,0x677f8));import*as a195_0x1598be from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a195_0x449c(_0x1b4ad5,_0x4ef470){_0x1b4ad5=_0x1b4ad5-0x1ee;const _0x56f53e=a195_0x56f5();let _0x449cb2=_0x56f53e[_0x1b4ad5];return _0x449cb2;}export function fetchGitHubReleases(_0x444302,_0x555ff9,_0x1d5f45){const _0x4089ab=a195_0x449c,_0x58461a=_0x444302+'/'+_0x555ff9,_0x312eca=cache[_0x4089ab(0x20a)](_0x58461a);if(_0x312eca&&Date[_0x4089ab(0x1fc)]()-_0x312eca[_0x4089ab(0x204)]<CACHE_TTL_MS)return Promise[_0x4089ab(0x205)](_0x312eca['releases']);return new Promise((_0x57084f,_0x3e8d4f)=>{const _0x2741a3=_0x4089ab,_0x3d2a74={'hostname':_0x2741a3(0x1fb),'path':_0x2741a3(0x1fd)+_0x444302+'/'+_0x555ff9+_0x2741a3(0x208),'headers':{'User-Agent':_0x1d5f45,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x193955=a195_0x1598be[_0x2741a3(0x20a)](_0x3d2a74,_0x4496aa=>{const _0x397e65=_0x2741a3;let _0xf5710a='';_0x4496aa['on'](_0x397e65(0x1f9),_0x29e00a=>{const _0xd3eaf2=_0x397e65;_0xf5710a+=_0x29e00a[_0xd3eaf2(0x202)]();}),_0x4496aa['on'](_0x397e65(0x1ef),()=>{const _0x13e769=_0x397e65;if(_0x4496aa[_0x13e769(0x20c)]!==0xc8){_0x3e8d4f(new Error(_0x13e769(0x1f5)+_0x4496aa['statusCode']+':\x20'+_0xf5710a[_0x13e769(0x1f3)](0x0,0xc8)));return;}try{const _0x2bf782=JSON[_0x13e769(0x1f7)](_0xf5710a);cache[_0x13e769(0x1f1)](_0x58461a,{'releases':_0x2bf782,'fetchedAt':Date[_0x13e769(0x1fc)]()}),_0x57084f(_0x2bf782);}catch(_0x398c54){_0x3e8d4f(_0x398c54);}});});_0x193955['on'](_0x2741a3(0x1f4),()=>{const _0x3b76bd=_0x2741a3;_0x193955[_0x3b76bd(0x1f8)](),_0x3e8d4f(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x193955['on'](_0x2741a3(0x206),_0x3e8d4f);});}export async function resolveReleaseTag(_0xa6ee36,_0x10cc9e,_0x10ae60,_0x4b7f66){const _0x44d989=a195_0x449c,_0x508b32=await fetchGitHubReleases(_0x10cc9e,_0x10ae60,_0x4b7f66);if(_0x508b32['length']===0x0)return null;if(_0xa6ee36===_0x44d989(0x1f6))return _0x508b32[0x0][_0x44d989(0x1f0)];const _0x4acf38=_0x508b32[_0x44d989(0x207)](_0x590ab0=>!_0x590ab0[_0x44d989(0x201)]);return _0x4acf38?_0x4acf38['tag_name']:null;}function a195_0x56f5(){const _0x1ebbf0=['/repos/','806471HyyvdT','693900TGdrkD','2794652kfKnMS','prerelease','toString','3753390NwVrSD','fetchedAt','resolve','error','find','/releases?per_page=20','4357176yqRvyg','get','1324059oojjXq','statusCode','2yVHTIq','end','tag_name','set','4McFozG','slice','timeout','GitHub\x20API\x20returned\x20','next','parse','destroy','data','5160474PwNgvT','api.github.com','now'];a195_0x56f5=function(){return _0x1ebbf0;};return a195_0x56f5();}
1
+ (function(_0x366b19,_0x385dd4){const _0x357465=a213_0x3de7,_0x4277ac=_0x366b19();while(!![]){try{const _0x13b0c8=parseInt(_0x357465(0x18f))/0x1*(parseInt(_0x357465(0x186))/0x2)+-parseInt(_0x357465(0x199))/0x3+parseInt(_0x357465(0x189))/0x4+parseInt(_0x357465(0x18c))/0x5*(parseInt(_0x357465(0x18e))/0x6)+parseInt(_0x357465(0x1a2))/0x7+-parseInt(_0x357465(0x18b))/0x8*(parseInt(_0x357465(0x185))/0x9)+parseInt(_0x357465(0x192))/0xa*(-parseInt(_0x357465(0x19d))/0xb);if(_0x13b0c8===_0x385dd4)break;else _0x4277ac['push'](_0x4277ac['shift']());}catch(_0x48f3a8){_0x4277ac['push'](_0x4277ac['shift']());}}}(a213_0x557f,0xe5ab9));import*as a213_0x236a4f from'node:https';function a213_0x557f(){const _0x9b76fb=['now','2488164MUrUlI','statusCode','/repos/','171EdlyIb','3539348wIdbSL','tag_name','/releases?per_page=20','1170928VzIuwl','get','538312LsPjZb','10FsiZoD','fetchedAt','4406622CllXtV','1jNREOM','find','end','7379290jTXecz','length','data','error','application/vnd.github+json','GitHub\x20API\x20returned\x20','resolve','2788749yAJtyv','set','toString','api.github.com','11RcSJAO','releases','next','GitHub\x20API\x20request\x20timed\x20out\x20after\x20'];a213_0x557f=function(){return _0x9b76fb;};return a213_0x557f();}function a213_0x3de7(_0x10e831,_0x1f6e67){_0x10e831=_0x10e831-0x185;const _0x557ff0=a213_0x557f();let _0x3de79c=_0x557ff0[_0x10e831];return _0x3de79c;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x2afc72,_0x25c787,_0x268fa0){const _0x505f8f=a213_0x3de7,_0x189e75=_0x2afc72+'/'+_0x25c787,_0xe29d0b=cache[_0x505f8f(0x18a)](_0x189e75);if(_0xe29d0b&&Date[_0x505f8f(0x1a1)]()-_0xe29d0b[_0x505f8f(0x18d)]<CACHE_TTL_MS)return Promise[_0x505f8f(0x198)](_0xe29d0b[_0x505f8f(0x19e)]);return new Promise((_0x1a1116,_0x78c08b)=>{const _0xaf32fd=_0x505f8f,_0x4357f7={'hostname':_0xaf32fd(0x19c),'path':_0xaf32fd(0x1a4)+_0x2afc72+'/'+_0x25c787+_0xaf32fd(0x188),'headers':{'User-Agent':_0x268fa0,'Accept':_0xaf32fd(0x196)},'timeout':REQUEST_TIMEOUT_MS},_0x43c359=a213_0x236a4f[_0xaf32fd(0x18a)](_0x4357f7,_0x194fcf=>{const _0x523723=_0xaf32fd;let _0x5e7d74='';_0x194fcf['on'](_0x523723(0x194),_0x365434=>{const _0x5a5325=_0x523723;_0x5e7d74+=_0x365434[_0x5a5325(0x19b)]();}),_0x194fcf['on'](_0x523723(0x191),()=>{const _0x2456d7=_0x523723;if(_0x194fcf[_0x2456d7(0x1a3)]!==0xc8){_0x78c08b(new Error(_0x2456d7(0x197)+_0x194fcf['statusCode']+':\x20'+_0x5e7d74['slice'](0x0,0xc8)));return;}try{const _0x3e6215=JSON['parse'](_0x5e7d74);cache[_0x2456d7(0x19a)](_0x189e75,{'releases':_0x3e6215,'fetchedAt':Date['now']()}),_0x1a1116(_0x3e6215);}catch(_0x3a88c6){_0x78c08b(_0x3a88c6);}});});_0x43c359['on']('timeout',()=>{const _0x484014=_0xaf32fd;_0x43c359['destroy'](),_0x78c08b(new Error(_0x484014(0x1a0)+REQUEST_TIMEOUT_MS+'ms'));}),_0x43c359['on'](_0xaf32fd(0x195),_0x78c08b);});}export async function resolveReleaseTag(_0x33eb0b,_0x2c8372,_0x2102e1,_0x1fbc3c){const _0xad036c=a213_0x3de7,_0x3baa70=await fetchGitHubReleases(_0x2c8372,_0x2102e1,_0x1fbc3c);if(_0x3baa70[_0xad036c(0x193)]===0x0)return null;if(_0x33eb0b===_0xad036c(0x19f))return _0x3baa70[0x0][_0xad036c(0x187)];const _0x361d19=_0x3baa70[_0xad036c(0x190)](_0x203b1b=>!_0x203b1b['prerelease']);return _0x361d19?_0x361d19[_0xad036c(0x187)]:null;}
@@ -1 +1 @@
1
- (function(_0xa935ce,_0x28a340){const _0x56a93c=a196_0x4ed7,_0x50ada3=_0xa935ce();while(!![]){try{const _0x194fcc=-parseInt(_0x56a93c(0x1a3))/0x1+parseInt(_0x56a93c(0x1b3))/0x2*(parseInt(_0x56a93c(0x1a1))/0x3)+parseInt(_0x56a93c(0x1a2))/0x4+-parseInt(_0x56a93c(0x1ad))/0x5*(parseInt(_0x56a93c(0x1a0))/0x6)+parseInt(_0x56a93c(0x1ab))/0x7*(parseInt(_0x56a93c(0x19f))/0x8)+-parseInt(_0x56a93c(0x1a5))/0x9+-parseInt(_0x56a93c(0x1ac))/0xa*(-parseInt(_0x56a93c(0x1b2))/0xb);if(_0x194fcc===_0x28a340)break;else _0x50ada3['push'](_0x50ada3['shift']());}catch(_0x11bdbe){_0x50ada3['push'](_0x50ada3['shift']());}}}(a196_0x4a7f,0x5e0a4));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x39c632=a196_0x4ed7;return process.env.TDX_CACHE_DIR||join(homedir(),_0x39c632(0x1aa),_0x39c632(0x1a9));}const registry=new Map();export function registerGlobalCacheKey(_0x501f89,_0x302b1e){const _0x209832=a196_0x4ed7,_0x30a6b1=registry[_0x209832(0x1af)](_0x501f89);if(_0x30a6b1&&_0x30a6b1!==_0x302b1e)throw new Error('Global\x20cache\x20key\x20\x22'+_0x501f89+'\x22\x20already\x20registered\x20by\x20\x22'+_0x30a6b1+_0x209832(0x1a6)+_0x302b1e+'\x22');registry[_0x209832(0x1b0)](_0x501f89,_0x302b1e);}export function getGlobalCachePath(_0x137827){return join(getGlobalCacheDir(),_0x137827);}function ensureGlobalCacheDir(){const _0x463c88=getGlobalCacheDir();!existsSync(_0x463c88)&&mkdirSync(_0x463c88,{'recursive':!![]});}function readCacheJson(_0x1b4c2f){const _0x2a5088=a196_0x4ed7,_0xa00913=getGlobalCachePath(_0x1b4c2f);if(!existsSync(_0xa00913))return undefined;try{const _0xac45f7=readFileSync(_0xa00913,_0x2a5088(0x1b1));return JSON[_0x2a5088(0x1a7)](_0xac45f7);}catch{return undefined;}}function writeCacheJson(_0x128051,_0x2b4144){const _0x120793=a196_0x4ed7;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x128051),JSON[_0x120793(0x1a8)](_0x2b4144,null,0x2),_0x120793(0x1b1));}function readCacheText(_0x3fc8c8){const _0x3f9256=a196_0x4ed7,_0x594b07=getGlobalCachePath(_0x3fc8c8);if(!existsSync(_0x594b07))return undefined;try{return readFileSync(_0x594b07,_0x3f9256(0x1b1));}catch{return undefined;}}function writeCacheText(_0x281e12,_0x22000b){const _0x8dad66=a196_0x4ed7;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x281e12),_0x22000b,_0x8dad66(0x1b1));}function a196_0x4a7f(){const _0x52dc88=['6628518IrXCiH','\x22,\x20cannot\x20register\x20for\x20\x22','parse','stringify','tdx','.cache','7LZrHVQ','410tUNYIY','43205GJbYJa','clear','get','set','utf-8','122749MYIMuu','602114zizGGP','trim','5762296yKmvWz','192VaVWdh','6SGmURG','1477740hzMKNh','751153ewzQOs','{profile}'];a196_0x4a7f=function(){return _0x52dc88;};return a196_0x4a7f();}function clearCache(_0x56636a){const _0x1f8a4f=getGlobalCachePath(_0x56636a);if(existsSync(_0x1f8a4f))try{unlinkSync(_0x1f8a4f);}catch{}}function cacheExists(_0x3b37d2){return existsSync(getGlobalCachePath(_0x3b37d2));}export function createGlobalCache(_0x55fe59,_0xcc1547){return registerGlobalCacheKey(_0x55fe59,_0xcc1547),{'read':()=>readCacheJson(_0x55fe59),'write':_0x324834=>writeCacheJson(_0x55fe59,_0x324834),'clear':()=>clearCache(_0x55fe59),'exists':()=>cacheExists(_0x55fe59),'path':()=>getGlobalCachePath(_0x55fe59)};}export function createGlobalTextCache(_0x2cd147,_0x1a49bb){const _0x20a4ac=a196_0x4ed7;return registerGlobalCacheKey(_0x2cd147,_0x1a49bb),{'read':()=>readCacheText(_0x2cd147)?.[_0x20a4ac(0x19e)]()||undefined,'write':_0xbfc30e=>writeCacheText(_0x2cd147,_0xbfc30e),'clear':()=>clearCache(_0x2cd147),'exists':()=>cacheExists(_0x2cd147),'path':()=>getGlobalCachePath(_0x2cd147)};}export function createProfileCache(_0x4382d5,_0x2d69b3){const _0x4cbf18=_0x4c08b2=>{const _0x366a33=a196_0x4ed7,_0x27701d=_0x4c08b2||'default';return _0x4382d5['replace'](_0x366a33(0x1a4),_0x27701d);};return{'read':_0x2adf74=>{const _0x487e88=_0x4cbf18(_0x2adf74);return registerGlobalCacheKey(_0x487e88,_0x2d69b3),readCacheJson(_0x487e88);},'write':(_0x51fe6f,_0x19fc48)=>{const _0x511300=_0x4cbf18(_0x51fe6f);registerGlobalCacheKey(_0x511300,_0x2d69b3),writeCacheJson(_0x511300,_0x19fc48);},'clear':_0x536ff0=>{const _0x17196e=_0x4cbf18(_0x536ff0);clearCache(_0x17196e);},'exists':_0x4304d2=>{const _0x5f57b3=_0x4cbf18(_0x4304d2);return cacheExists(_0x5f57b3);},'path':_0x4248cf=>{const _0x228370=_0x4cbf18(_0x4248cf);return getGlobalCachePath(_0x228370);}};}export function createOptionalProfileCache(_0x2844bb,_0x1acb3b,_0x52dba1={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x52dba1,_0x544933=_0x4112b7=>{return _0x4112b7?''+_0x2844bb+profileSeparator+_0x4112b7+suffix:''+_0x2844bb+suffix;};return{'read':_0xf33bc4=>{const _0x32acf3=_0x544933(_0xf33bc4);return registerGlobalCacheKey(_0x32acf3,_0x1acb3b),readCacheJson(_0x32acf3);},'write':(_0x5b08c4,_0xc78d70)=>{const _0x3d6e97=_0x544933(_0xc78d70);registerGlobalCacheKey(_0x3d6e97,_0x1acb3b),writeCacheJson(_0x3d6e97,_0x5b08c4);},'clear':_0x40cd50=>{const _0x16c5c7=_0x544933(_0x40cd50);clearCache(_0x16c5c7);},'exists':_0x41e278=>{const _0x1b2a4d=_0x544933(_0x41e278);return cacheExists(_0x1b2a4d);},'path':_0x1746ce=>{const _0x43e600=_0x544933(_0x1746ce);return getGlobalCachePath(_0x43e600);}};}function a196_0x4ed7(_0x38a0f9,_0x3c9d25){_0x38a0f9=_0x38a0f9-0x19e;const _0x4a7ff3=a196_0x4a7f();let _0x4ed78c=_0x4a7ff3[_0x38a0f9];return _0x4ed78c;}export function clearGlobalRegistry(){const _0x386c49=a196_0x4ed7;registry[_0x386c49(0x1ae)]();}
1
+ (function(_0x27504b,_0x162ed5){const _0x59225c=a214_0x3a63,_0x583e81=_0x27504b();while(!![]){try{const _0x454cd1=-parseInt(_0x59225c(0x7e))/0x1*(-parseInt(_0x59225c(0x7f))/0x2)+-parseInt(_0x59225c(0x93))/0x3*(-parseInt(_0x59225c(0x92))/0x4)+-parseInt(_0x59225c(0x85))/0x5+-parseInt(_0x59225c(0x87))/0x6*(-parseInt(_0x59225c(0x91))/0x7)+parseInt(_0x59225c(0x86))/0x8+parseInt(_0x59225c(0x8f))/0x9*(parseInt(_0x59225c(0x89))/0xa)+-parseInt(_0x59225c(0x82))/0xb;if(_0x454cd1===_0x162ed5)break;else _0x583e81['push'](_0x583e81['shift']());}catch(_0x56bdc1){_0x583e81['push'](_0x583e81['shift']());}}}(a214_0x3291,0xe2545));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x1522cb=a214_0x3a63;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1522cb(0x90),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x1f9f8c,_0x89d811){const _0x5b8ada=a214_0x3a63,_0x4ea470=registry[_0x5b8ada(0x80)](_0x1f9f8c);if(_0x4ea470&&_0x4ea470!==_0x89d811)throw new Error('Global\x20cache\x20key\x20\x22'+_0x1f9f8c+'\x22\x20already\x20registered\x20by\x20\x22'+_0x4ea470+_0x5b8ada(0x83)+_0x89d811+'\x22');registry[_0x5b8ada(0x81)](_0x1f9f8c,_0x89d811);}export function getGlobalCachePath(_0x4df249){return join(getGlobalCacheDir(),_0x4df249);}function ensureGlobalCacheDir(){const _0x5a3c83=getGlobalCacheDir();!existsSync(_0x5a3c83)&&mkdirSync(_0x5a3c83,{'recursive':!![]});}function readCacheJson(_0x2072ce){const _0x1684b3=a214_0x3a63,_0x438ad1=getGlobalCachePath(_0x2072ce);if(!existsSync(_0x438ad1))return undefined;try{const _0xd45b1c=readFileSync(_0x438ad1,_0x1684b3(0x84));return JSON[_0x1684b3(0x8a)](_0xd45b1c);}catch{return undefined;}}function writeCacheJson(_0x17d164,_0x524428){const _0x4b3196=a214_0x3a63;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x17d164),JSON[_0x4b3196(0x8e)](_0x524428,null,0x2),_0x4b3196(0x84));}function a214_0x3a63(_0x2b61a2,_0x490e94){_0x2b61a2=_0x2b61a2-0x7e;const _0x329109=a214_0x3291();let _0x3a63d4=_0x329109[_0x2b61a2];return _0x3a63d4;}function readCacheText(_0xcb1f08){const _0x5be084=a214_0x3a63,_0xde85b7=getGlobalCachePath(_0xcb1f08);if(!existsSync(_0xde85b7))return undefined;try{return readFileSync(_0xde85b7,_0x5be084(0x84));}catch{return undefined;}}function writeCacheText(_0x5295ce,_0x3e9e9f){const _0x5da91d=a214_0x3a63;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5295ce),_0x3e9e9f,_0x5da91d(0x84));}function clearCache(_0x32a39a){const _0x57e661=getGlobalCachePath(_0x32a39a);if(existsSync(_0x57e661))try{unlinkSync(_0x57e661);}catch{}}function cacheExists(_0x262fca){return existsSync(getGlobalCachePath(_0x262fca));}export function createGlobalCache(_0x30b955,_0xa4bd9c){return registerGlobalCacheKey(_0x30b955,_0xa4bd9c),{'read':()=>readCacheJson(_0x30b955),'write':_0x19755c=>writeCacheJson(_0x30b955,_0x19755c),'clear':()=>clearCache(_0x30b955),'exists':()=>cacheExists(_0x30b955),'path':()=>getGlobalCachePath(_0x30b955)};}export function createGlobalTextCache(_0x3518c9,_0x4c9f5b){const _0x47bbbe=a214_0x3a63;return registerGlobalCacheKey(_0x3518c9,_0x4c9f5b),{'read':()=>readCacheText(_0x3518c9)?.[_0x47bbbe(0x8d)]()||undefined,'write':_0x41fb88=>writeCacheText(_0x3518c9,_0x41fb88),'clear':()=>clearCache(_0x3518c9),'exists':()=>cacheExists(_0x3518c9),'path':()=>getGlobalCachePath(_0x3518c9)};}export function createProfileCache(_0x9bd9f0,_0x1e817b){const _0x170677=_0x486125=>{const _0x4e2c00=a214_0x3a63,_0x2838fb=_0x486125||_0x4e2c00(0x88);return _0x9bd9f0[_0x4e2c00(0x8b)](_0x4e2c00(0x94),_0x2838fb);};return{'read':_0x4d3d6a=>{const _0x5699e5=_0x170677(_0x4d3d6a);return registerGlobalCacheKey(_0x5699e5,_0x1e817b),readCacheJson(_0x5699e5);},'write':(_0x50592c,_0xed981f)=>{const _0x269cfa=_0x170677(_0x50592c);registerGlobalCacheKey(_0x269cfa,_0x1e817b),writeCacheJson(_0x269cfa,_0xed981f);},'clear':_0x2d41b5=>{const _0x1b31fd=_0x170677(_0x2d41b5);clearCache(_0x1b31fd);},'exists':_0x4e4863=>{const _0x22b34c=_0x170677(_0x4e4863);return cacheExists(_0x22b34c);},'path':_0xd67118=>{const _0xc8bb36=_0x170677(_0xd67118);return getGlobalCachePath(_0xc8bb36);}};}function a214_0x3291(){const _0x2d8163=['{profile}','512758bSaKuz','4glQGOc','get','set','19578504bSvsER','\x22,\x20cannot\x20register\x20for\x20\x22','utf-8','6648385IhNfKR','8071624vuJxHA','6BdEWaH','default','624110lemIEQ','parse','replace','clear','trim','stringify','180dFSLjL','.cache','3910669yZPRMa','56iColhi','41835TXmZfw'];a214_0x3291=function(){return _0x2d8163;};return a214_0x3291();}export function createOptionalProfileCache(_0x12307c,_0x44311f,_0x296997={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x296997,_0x2cf3ab=_0x38da87=>{return _0x38da87?''+_0x12307c+profileSeparator+_0x38da87+suffix:''+_0x12307c+suffix;};return{'read':_0x5f2274=>{const _0x247024=_0x2cf3ab(_0x5f2274);return registerGlobalCacheKey(_0x247024,_0x44311f),readCacheJson(_0x247024);},'write':(_0xa44d7f,_0x1728a9)=>{const _0x67d61e=_0x2cf3ab(_0x1728a9);registerGlobalCacheKey(_0x67d61e,_0x44311f),writeCacheJson(_0x67d61e,_0xa44d7f);},'clear':_0x2571ad=>{const _0x32fec3=_0x2cf3ab(_0x2571ad);clearCache(_0x32fec3);},'exists':_0x30ce7f=>{const _0x1277f9=_0x2cf3ab(_0x30ce7f);return cacheExists(_0x1277f9);},'path':_0x1c08f3=>{const _0x4e971d=_0x2cf3ab(_0x1c08f3);return getGlobalCachePath(_0x4e971d);}};}export function clearGlobalRegistry(){const _0x5b36d6=a214_0x3a63;registry[_0x5b36d6(0x8c)]();}
@@ -1 +1 @@
1
- (function(_0x4bfc71,_0x6b7edd){const _0x557c69=a197_0x9fda,_0x393aa9=_0x4bfc71();while(!![]){try{const _0x40f689=parseInt(_0x557c69(0x17c))/0x1*(parseInt(_0x557c69(0x188))/0x2)+-parseInt(_0x557c69(0x177))/0x3+parseInt(_0x557c69(0x174))/0x4+-parseInt(_0x557c69(0x18a))/0x5+-parseInt(_0x557c69(0x184))/0x6*(-parseInt(_0x557c69(0x17b))/0x7)+parseInt(_0x557c69(0x189))/0x8*(parseInt(_0x557c69(0x17a))/0x9)+-parseInt(_0x557c69(0x180))/0xa*(-parseInt(_0x557c69(0x176))/0xb);if(_0x40f689===_0x6b7edd)break;else _0x393aa9['push'](_0x393aa9['shift']());}catch(_0x538296){_0x393aa9['push'](_0x393aa9['shift']());}}}(a197_0x2a02,0x1cdd4));function a197_0x2a02(){const _0x377071=['parse','\x27:\x20','108656edRvFV','code','22efexvN','423627AckSYD','Permission\x20denied\x20reading\x20file:\x20','EACCES','15174jnMhOv','7xYPqCo','73IfSvLT','Invalid\x20JSON\x20in\x20file\x20\x27','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20string:\x20','512570NfVbEo','message','utf-8','File\x20not\x20found:\x20','713904AjeHYx','NOT_FOUND','INVALID_ARGUMENT','INTERNAL','52TWfRDR','888KnqKXF','891345RWUNBE','ENOENT'];a197_0x2a02=function(){return _0x377071;};return a197_0x2a02();}import{readFile}from'fs/promises';function a197_0x9fda(_0x542eb6,_0x2515b2){_0x542eb6=_0x542eb6-0x171;const _0x2a0288=a197_0x2a02();let _0x9fda9e=_0x2a0288[_0x542eb6];return _0x9fda9e;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x17873f,_0x4cfc03){const _0x39b652=a197_0x9fda;try{if(_0x4cfc03){const _0x46a020=await readFile(_0x17873f,_0x39b652(0x182));try{return JSON['parse'](_0x46a020);}catch(_0x2ce426){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x39b652(0x17d)+_0x17873f+_0x39b652(0x173)+(_0x2ce426 instanceof Error?_0x2ce426[_0x39b652(0x181)]:String(_0x2ce426)));}}else try{return JSON[_0x39b652(0x172)](_0x17873f);}catch(_0x120f83){throw new SDKError(ErrorCode[_0x39b652(0x186)],_0x39b652(0x17f)+(_0x120f83 instanceof Error?_0x120f83[_0x39b652(0x181)]:String(_0x120f83)));}}catch(_0x3d1acd){if(_0x3d1acd instanceof SDKError)throw _0x3d1acd;if(_0x3d1acd instanceof Error&&_0x39b652(0x175)in _0x3d1acd){const _0x447a7f=_0x3d1acd;if(_0x447a7f['code']===_0x39b652(0x171))throw new SDKError(ErrorCode[_0x39b652(0x185)],_0x39b652(0x183)+_0x17873f);else{if(_0x447a7f[_0x39b652(0x175)]===_0x39b652(0x179))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x39b652(0x178)+_0x17873f);}}throw new SDKError(ErrorCode[_0x39b652(0x187)],_0x39b652(0x17e)+(_0x3d1acd instanceof Error?_0x3d1acd[_0x39b652(0x181)]:String(_0x3d1acd)));}}export async function loadJSONFromOptions(_0x19bbcd,_0x499105){const _0x343f33=a197_0x9fda;if(_0x19bbcd&&_0x499105)throw new SDKError(ErrorCode[_0x343f33(0x186)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x19bbcd)return await loadJSON(_0x19bbcd,![]);if(_0x499105)return await loadJSON(_0x499105,!![]);return undefined;}
1
+ (function(_0x1732d5,_0xae7fea){const _0x9fe254=a215_0x4a6e,_0x56cc8d=_0x1732d5();while(!![]){try{const _0x5ae09b=parseInt(_0x9fe254(0xc5))/0x1*(parseInt(_0x9fe254(0xbf))/0x2)+parseInt(_0x9fe254(0xb7))/0x3*(-parseInt(_0x9fe254(0xb6))/0x4)+-parseInt(_0x9fe254(0xc6))/0x5+-parseInt(_0x9fe254(0xc7))/0x6+parseInt(_0x9fe254(0xbd))/0x7*(-parseInt(_0x9fe254(0xba))/0x8)+parseInt(_0x9fe254(0xc9))/0x9*(parseInt(_0x9fe254(0xc1))/0xa)+-parseInt(_0x9fe254(0xcc))/0xb*(-parseInt(_0x9fe254(0xc3))/0xc);if(_0x5ae09b===_0xae7fea)break;else _0x56cc8d['push'](_0x56cc8d['shift']());}catch(_0x220289){_0x56cc8d['push'](_0x56cc8d['shift']());}}}(a215_0x516f,0xa5676));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x516f(){const _0x321d3f=['INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','223304ypJNYG','NOT_FOUND','Permission\x20denied\x20reading\x20file:\x20','203RNcYtM','message','2vGaSYh','INTERNAL','20VgWWol','ENOENT','1956BoLyaM','\x27:\x20','69663StpjNm','5533900fQxpwj','683820UCpVws','Invalid\x20JSON\x20string:\x20','3043125YDsarD','parse','utf-8','136961mSJZCH','EACCES','PERMISSION_DENIED','4NBWBnX','203115TFcxiY'];a215_0x516f=function(){return _0x321d3f;};return a215_0x516f();}function a215_0x4a6e(_0x4ed80a,_0x2c390c){_0x4ed80a=_0x4ed80a-0xb6;const _0x516f3c=a215_0x516f();let _0x4a6e96=_0x516f3c[_0x4ed80a];return _0x4a6e96;}export async function loadJSON(_0x932904,_0xe538e6){const _0x2b39ec=a215_0x4a6e;try{if(_0xe538e6){const _0x4d263c=await readFile(_0x932904,_0x2b39ec(0xcb));try{return JSON[_0x2b39ec(0xca)](_0x4d263c);}catch(_0x4a75d6){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x932904+_0x2b39ec(0xc4)+(_0x4a75d6 instanceof Error?_0x4a75d6[_0x2b39ec(0xbe)]:String(_0x4a75d6)));}}else try{return JSON[_0x2b39ec(0xca)](_0x932904);}catch(_0x3475b0){throw new SDKError(ErrorCode[_0x2b39ec(0xb8)],_0x2b39ec(0xc8)+(_0x3475b0 instanceof Error?_0x3475b0['message']:String(_0x3475b0)));}}catch(_0x49a73e){if(_0x49a73e instanceof SDKError)throw _0x49a73e;if(_0x49a73e instanceof Error&&'code'in _0x49a73e){const _0x31e29d=_0x49a73e;if(_0x31e29d['code']===_0x2b39ec(0xc2))throw new SDKError(ErrorCode[_0x2b39ec(0xbb)],'File\x20not\x20found:\x20'+_0x932904);else{if(_0x31e29d['code']===_0x2b39ec(0xcd))throw new SDKError(ErrorCode[_0x2b39ec(0xce)],_0x2b39ec(0xbc)+_0x932904);}}throw new SDKError(ErrorCode[_0x2b39ec(0xc0)],_0x2b39ec(0xb9)+(_0x49a73e instanceof Error?_0x49a73e[_0x2b39ec(0xbe)]:String(_0x49a73e)));}}export async function loadJSONFromOptions(_0x2d4fb6,_0x22d481){const _0x40abab=a215_0x4a6e;if(_0x2d4fb6&&_0x22d481)throw new SDKError(ErrorCode[_0x40abab(0xb8)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2d4fb6)return await loadJSON(_0x2d4fb6,![]);if(_0x22d481)return await loadJSON(_0x22d481,!![]);return undefined;}
@@ -1 +1 @@
1
- const a198_0x299f7f=a198_0x16df;function a198_0x4784(){const _0x5d9148=['parse','2019936CwjNLT','\x22,\x20cannot\x20register\x20for\x20\x22','trim','324eXlVCE','5853890aqNbiS','11806tfPQXo','12258554sVWOYB','251ghXICk','21927IKrhud','\x22\x20already\x20registered\x20by\x20\x22','Cache\x20key\x20\x22','2032655qsPZaj','.cache/tdx','15280533IjWJQc','clear','6eSFTll','utf-8'];a198_0x4784=function(){return _0x5d9148;};return a198_0x4784();}(function(_0x38b713,_0x22c54a){const _0x460203=a198_0x16df,_0x328ec2=_0x38b713();while(!![]){try{const _0x53e955=parseInt(_0x460203(0x1d4))/0x1*(-parseInt(_0x460203(0x1d2))/0x2)+parseInt(_0x460203(0x1d5))/0x3*(-parseInt(_0x460203(0x1d0))/0x4)+parseInt(_0x460203(0x1d8))/0x5*(parseInt(_0x460203(0x1dc))/0x6)+parseInt(_0x460203(0x1d3))/0x7+-parseInt(_0x460203(0x1cd))/0x8+parseInt(_0x460203(0x1da))/0x9+-parseInt(_0x460203(0x1d1))/0xa;if(_0x53e955===_0x22c54a)break;else _0x328ec2['push'](_0x328ec2['shift']());}catch(_0x3cba30){_0x328ec2['push'](_0x328ec2['shift']());}}}(a198_0x4784,0xe679b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a198_0x299f7f(0x1d9),registry=new Map();export function registerCacheKey(_0x11def0,_0x3eb562){const _0x538425=a198_0x299f7f,_0x40406b=registry['get'](_0x11def0);if(_0x40406b&&_0x40406b!==_0x3eb562)throw new Error(_0x538425(0x1d7)+_0x11def0+_0x538425(0x1d6)+_0x40406b+_0x538425(0x1ce)+_0x3eb562+'\x22');registry['set'](_0x11def0,_0x3eb562);}function a198_0x16df(_0x937f24,_0x2a735f){_0x937f24=_0x937f24-0x1cd;const _0x4784ce=a198_0x4784();let _0x16df79=_0x4784ce[_0x937f24];return _0x16df79;}export function getCacheDir(){const _0x4330fe=process['cwd'](),_0x15dbae=_0x4330fe===parse(_0x4330fe)['root']?homedir():_0x4330fe;return join(_0x15dbae,LOCAL_CACHE_DIR);}export function getCachePath(_0xc97632){return join(getCacheDir(),_0xc97632);}function ensureCacheDir(){const _0x14b72d=getCacheDir();!existsSync(_0x14b72d)&&mkdirSync(_0x14b72d,{'recursive':!![]});}function readCacheJson(_0x515b60){const _0x2529e3=a198_0x299f7f,_0x5a7019=getCachePath(_0x515b60);if(!existsSync(_0x5a7019))return undefined;try{const _0x4e49e1=readFileSync(_0x5a7019,'utf-8');return JSON[_0x2529e3(0x1de)](_0x4e49e1);}catch{return undefined;}}function writeCacheJson(_0x39a5a9,_0x2549e8){const _0xa0e95d=a198_0x299f7f;ensureCacheDir(),writeFileSync(getCachePath(_0x39a5a9),JSON['stringify'](_0x2549e8,null,0x2),_0xa0e95d(0x1dd));}function readCacheText(_0x2ffb92){const _0x34e4ca=a198_0x299f7f,_0x5f509e=getCachePath(_0x2ffb92);if(!existsSync(_0x5f509e))return undefined;try{return readFileSync(_0x5f509e,_0x34e4ca(0x1dd));}catch{return undefined;}}function writeCacheText(_0x5ef8b7,_0x5c8e8c){const _0x46e8a1=a198_0x299f7f;ensureCacheDir(),writeFileSync(getCachePath(_0x5ef8b7),_0x5c8e8c,_0x46e8a1(0x1dd));}function clearCache(_0x42df3c){const _0x329bc9=getCachePath(_0x42df3c);if(existsSync(_0x329bc9))try{unlinkSync(_0x329bc9);}catch{}}function cacheExists(_0x4435ce){return existsSync(getCachePath(_0x4435ce));}export function createCache(_0x289d1c,_0x3cc1af){return registerCacheKey(_0x289d1c,_0x3cc1af),{'read':()=>readCacheJson(_0x289d1c),'write':_0x7518a6=>writeCacheJson(_0x289d1c,_0x7518a6),'clear':()=>clearCache(_0x289d1c),'exists':()=>cacheExists(_0x289d1c),'path':()=>getCachePath(_0x289d1c)};}export function createTextCache(_0x31ef77,_0x27b5c5){const _0x240092=a198_0x299f7f;return registerCacheKey(_0x31ef77,_0x27b5c5),{'read':()=>readCacheText(_0x31ef77)?.[_0x240092(0x1cf)]()||undefined,'write':_0x3738ee=>writeCacheText(_0x31ef77,_0x3738ee),'clear':()=>clearCache(_0x31ef77),'exists':()=>cacheExists(_0x31ef77),'path':()=>getCachePath(_0x31ef77)};}export function clearRegistry(){const _0x32e30b=a198_0x299f7f;registry[_0x32e30b(0x1db)]();}
1
+ function a216_0xe462(_0x32dbed,_0x58f14e){_0x32dbed=_0x32dbed-0x13f;const _0x228c6e=a216_0x228c();let _0xe4626e=_0x228c6e[_0x32dbed];return _0xe4626e;}const a216_0x2a95f2=a216_0xe462;(function(_0x431bc5,_0x56a6d6){const _0x4fbcc7=a216_0xe462,_0x13505b=_0x431bc5();while(!![]){try{const _0x6a2b1a=-parseInt(_0x4fbcc7(0x144))/0x1*(parseInt(_0x4fbcc7(0x142))/0x2)+parseInt(_0x4fbcc7(0x145))/0x3*(parseInt(_0x4fbcc7(0x14c))/0x4)+-parseInt(_0x4fbcc7(0x148))/0x5+parseInt(_0x4fbcc7(0x146))/0x6+parseInt(_0x4fbcc7(0x14b))/0x7+parseInt(_0x4fbcc7(0x152))/0x8+-parseInt(_0x4fbcc7(0x151))/0x9;if(_0x6a2b1a===_0x56a6d6)break;else _0x13505b['push'](_0x13505b['shift']());}catch(_0x385d97){_0x13505b['push'](_0x13505b['shift']());}}}(a216_0x228c,0x84d15));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0x2a95f2(0x147),registry=new Map();export function registerCacheKey(_0x26207d,_0x29cde5){const _0x50e325=a216_0x2a95f2,_0x17a4b7=registry[_0x50e325(0x140)](_0x26207d);if(_0x17a4b7&&_0x17a4b7!==_0x29cde5)throw new Error('Cache\x20key\x20\x22'+_0x26207d+_0x50e325(0x14f)+_0x17a4b7+_0x50e325(0x14e)+_0x29cde5+'\x22');registry[_0x50e325(0x141)](_0x26207d,_0x29cde5);}export function getCacheDir(){const _0x1d23a1=a216_0x2a95f2,_0x2f8e45=process['cwd'](),_0x3e9e3b=_0x2f8e45===parse(_0x2f8e45)[_0x1d23a1(0x14a)]?homedir():_0x2f8e45;return join(_0x3e9e3b,LOCAL_CACHE_DIR);}export function getCachePath(_0x2b6980){return join(getCacheDir(),_0x2b6980);}function ensureCacheDir(){const _0x1643c6=getCacheDir();!existsSync(_0x1643c6)&&mkdirSync(_0x1643c6,{'recursive':!![]});}function a216_0x228c(){const _0x59cb8b=['stringify','1819899OenNea','3816832ERCfbV','utf-8','get','set','2NBAhqp','clear','390511URKJpd','1257SEsLeF','3698838uZLdHU','.cache/tdx','2648280qZjyEl','trim','root','413896JnxMOJ','4904mdOoZr','parse','\x22,\x20cannot\x20register\x20for\x20\x22','\x22\x20already\x20registered\x20by\x20\x22'];a216_0x228c=function(){return _0x59cb8b;};return a216_0x228c();}function readCacheJson(_0x5cf62e){const _0x23415e=a216_0x2a95f2,_0x29eb36=getCachePath(_0x5cf62e);if(!existsSync(_0x29eb36))return undefined;try{const _0x4d240a=readFileSync(_0x29eb36,_0x23415e(0x13f));return JSON[_0x23415e(0x14d)](_0x4d240a);}catch{return undefined;}}function writeCacheJson(_0x333167,_0x52830d){const _0x206571=a216_0x2a95f2;ensureCacheDir(),writeFileSync(getCachePath(_0x333167),JSON[_0x206571(0x150)](_0x52830d,null,0x2),'utf-8');}function readCacheText(_0x2816f9){const _0x377a1d=a216_0x2a95f2,_0x22056e=getCachePath(_0x2816f9);if(!existsSync(_0x22056e))return undefined;try{return readFileSync(_0x22056e,_0x377a1d(0x13f));}catch{return undefined;}}function writeCacheText(_0x308fd5,_0x1a69bc){const _0x5ed9fa=a216_0x2a95f2;ensureCacheDir(),writeFileSync(getCachePath(_0x308fd5),_0x1a69bc,_0x5ed9fa(0x13f));}function clearCache(_0x9ee0b2){const _0x5f45f0=getCachePath(_0x9ee0b2);if(existsSync(_0x5f45f0))try{unlinkSync(_0x5f45f0);}catch{}}function cacheExists(_0xd9d517){return existsSync(getCachePath(_0xd9d517));}export function createCache(_0x5bdb5a,_0x17074f){return registerCacheKey(_0x5bdb5a,_0x17074f),{'read':()=>readCacheJson(_0x5bdb5a),'write':_0x1b3ba9=>writeCacheJson(_0x5bdb5a,_0x1b3ba9),'clear':()=>clearCache(_0x5bdb5a),'exists':()=>cacheExists(_0x5bdb5a),'path':()=>getCachePath(_0x5bdb5a)};}export function createTextCache(_0x5732e9,_0x163b1d){const _0x169ba7=a216_0x2a95f2;return registerCacheKey(_0x5732e9,_0x163b1d),{'read':()=>readCacheText(_0x5732e9)?.[_0x169ba7(0x149)]()||undefined,'write':_0x1e6612=>writeCacheText(_0x5732e9,_0x1e6612),'clear':()=>clearCache(_0x5732e9),'exists':()=>cacheExists(_0x5732e9),'path':()=>getCachePath(_0x5732e9)};}export function clearRegistry(){const _0x3b4c4d=a216_0x2a95f2;registry[_0x3b4c4d(0x143)]();}
@@ -1 +1 @@
1
- const a199_0x1597ba=a199_0x2cd9;(function(_0x4768c2,_0x44af22){const _0x2002b0=a199_0x2cd9,_0x3d9f9f=_0x4768c2();while(!![]){try{const _0x1f8327=parseInt(_0x2002b0(0x1fb))/0x1+parseInt(_0x2002b0(0x1e6))/0x2*(-parseInt(_0x2002b0(0x1ea))/0x3)+-parseInt(_0x2002b0(0x1f7))/0x4+parseInt(_0x2002b0(0x1ef))/0x5+parseInt(_0x2002b0(0x1e9))/0x6+parseInt(_0x2002b0(0x1ff))/0x7+-parseInt(_0x2002b0(0x1ec))/0x8*(parseInt(_0x2002b0(0x1ee))/0x9);if(_0x1f8327===_0x44af22)break;else _0x3d9f9f['push'](_0x3d9f9f['shift']());}catch(_0x4ed324){_0x3d9f9f['push'](_0x3d9f9f['shift']());}}}(a199_0x4f1c,0xad87c));function a199_0x4f1c(){const _0x20c1cf=['default','3441036aPLLbn','DEBUG','timestamp','cyan','349406aqRXxa','colors','gray','component','3538885YPBzrY','TRACE','colorLevel','566122ipsoNN','red','dim','4903212tvBOnS','3rvGsGo','level','16XbOIeQ','WARN','4665492sHaZXE','6093565YktYHe','yellow','ERROR','Chalk','chalk','format','INFO'];a199_0x4f1c=function(){return _0x20c1cf;};return a199_0x4f1c();}import a199_0x43b4eb from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a199_0x43b4eb,ChalkClass=chalkModule[a199_0x1597ba(0x1f2)]||chalkModule[a199_0x1597ba(0x1f6)]?.[a199_0x1597ba(0x1f2)];function a199_0x2cd9(_0xd1830,_0x3f4e9d){_0xd1830=_0xd1830-0x1e6;const _0x4f1c49=a199_0x4f1c();let _0x2cd9de=_0x4f1c49[_0xd1830];return _0x2cd9de;}export class DefaultLogFormatter{[a199_0x1597ba(0x1fc)];[a199_0x1597ba(0x1f3)];constructor(_0x126c33={}){const _0x562fd8=a199_0x1597ba;this['colors']=_0x126c33[_0x562fd8(0x1fc)]??![],this[_0x562fd8(0x1f3)]=_0x126c33[_0x562fd8(0x1fc)]&&ChalkClass?new ChalkClass({'level':0x3}):a199_0x43b4eb;}[a199_0x1597ba(0x1f4)](_0x21b952){const _0x4116a4=a199_0x1597ba,_0x230d0c=formatTimestamp(_0x21b952[_0x4116a4(0x1f9)]),_0x2408a5=logLevelToString(_0x21b952[_0x4116a4(0x1eb)]);if(!this[_0x4116a4(0x1fc)])return _0x230d0c+'\x20['+_0x2408a5+']\x20['+_0x21b952[_0x4116a4(0x1fe)]+']\x20'+_0x21b952['message'];const _0x7fdc9c=this[_0x4116a4(0x1f3)][_0x4116a4(0x1e8)](_0x230d0c),_0x358dc6=this[_0x4116a4(0x201)](_0x2408a5,_0x21b952[_0x4116a4(0x1eb)]),_0x1fdac0=this[_0x4116a4(0x1f3)]['blue']('['+_0x21b952[_0x4116a4(0x1fe)]+']');return _0x7fdc9c+'\x20'+_0x358dc6+'\x20'+_0x1fdac0+'\x20'+_0x21b952['message'];}[a199_0x1597ba(0x201)](_0x489d81,_0x27bb44){const _0x2afb8c=a199_0x1597ba;switch(_0x27bb44){case LogLevel[_0x2afb8c(0x200)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1fd)]('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1f8)]:return this[_0x2afb8c(0x1f3)]['green']('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1f5)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1fa)]('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1ed)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1f0)]('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1f1)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1e7)]('['+_0x489d81+']');default:return'['+_0x489d81+']';}}}
1
+ function a217_0x1c1a(_0x3aefc8,_0x3d35f4){_0x3aefc8=_0x3aefc8-0x1a8;const _0x1d9673=a217_0x1d96();let _0x1c1a66=_0x1d9673[_0x3aefc8];return _0x1c1a66;}const a217_0x332850=a217_0x1c1a;(function(_0x135b4a,_0x4f8242){const _0x24a8a8=a217_0x1c1a,_0x35cc6b=_0x135b4a();while(!![]){try{const _0x214b4f=parseInt(_0x24a8a8(0x1c3))/0x1+parseInt(_0x24a8a8(0x1b5))/0x2*(parseInt(_0x24a8a8(0x1b2))/0x3)+parseInt(_0x24a8a8(0x1b3))/0x4*(parseInt(_0x24a8a8(0x1aa))/0x5)+parseInt(_0x24a8a8(0x1b6))/0x6*(-parseInt(_0x24a8a8(0x1b0))/0x7)+parseInt(_0x24a8a8(0x1bf))/0x8+parseInt(_0x24a8a8(0x1b7))/0x9*(parseInt(_0x24a8a8(0x1c2))/0xa)+-parseInt(_0x24a8a8(0x1b9))/0xb*(parseInt(_0x24a8a8(0x1b1))/0xc);if(_0x214b4f===_0x4f8242)break;else _0x35cc6b['push'](_0x35cc6b['shift']());}catch(_0x5f0dd4){_0x35cc6b['push'](_0x35cc6b['shift']());}}}(a217_0x1d96,0x886dd));import a217_0x176ffc from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x176ffc,ChalkClass=chalkModule[a217_0x332850(0x1b4)]||chalkModule[a217_0x332850(0x1b8)]?.[a217_0x332850(0x1b4)];export class DefaultLogFormatter{[a217_0x332850(0x1bc)];[a217_0x332850(0x1be)];constructor(_0x31c344={}){const _0x501e51=a217_0x332850;this[_0x501e51(0x1bc)]=_0x31c344[_0x501e51(0x1bc)]??![],this[_0x501e51(0x1be)]=_0x31c344[_0x501e51(0x1bc)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x176ffc;}[a217_0x332850(0x1c4)](_0x1db1e1){const _0xd8c9e1=a217_0x332850,_0x472a73=formatTimestamp(_0x1db1e1['timestamp']),_0x5e7f0a=logLevelToString(_0x1db1e1[_0xd8c9e1(0x1a9)]);if(!this[_0xd8c9e1(0x1bc)])return _0x472a73+'\x20['+_0x5e7f0a+_0xd8c9e1(0x1ad)+_0x1db1e1[_0xd8c9e1(0x1bb)]+']\x20'+_0x1db1e1[_0xd8c9e1(0x1ac)];const _0x12c9a4=this[_0xd8c9e1(0x1be)][_0xd8c9e1(0x1ae)](_0x472a73),_0x221c08=this[_0xd8c9e1(0x1c5)](_0x5e7f0a,_0x1db1e1[_0xd8c9e1(0x1a9)]),_0x45c747=this[_0xd8c9e1(0x1be)][_0xd8c9e1(0x1c1)]('['+_0x1db1e1[_0xd8c9e1(0x1bb)]+']');return _0x12c9a4+'\x20'+_0x221c08+'\x20'+_0x45c747+'\x20'+_0x1db1e1[_0xd8c9e1(0x1ac)];}[a217_0x332850(0x1c5)](_0x230dda,_0x405895){const _0x18f4c4=a217_0x332850;switch(_0x405895){case LogLevel[_0x18f4c4(0x1af)]:return this[_0x18f4c4(0x1be)][_0x18f4c4(0x1c0)]('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1a8)]:return this['chalk']['green']('['+_0x230dda+']');case LogLevel['INFO']:return this[_0x18f4c4(0x1be)][_0x18f4c4(0x1ab)]('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1ba)]:return this['chalk']['yellow']('['+_0x230dda+']');case LogLevel[_0x18f4c4(0x1bd)]:return this[_0x18f4c4(0x1be)]['red']('['+_0x230dda+']');default:return'['+_0x230dda+']';}}}function a217_0x1d96(){const _0x10265c=['Chalk','1476938gKuYEv','900mxzxgr','290259NSCfpZ','default','11WfUUHm','WARN','component','colors','ERROR','chalk','7729952omOnLg','gray','blue','100VLCPWR','919457XQKUXe','format','colorLevel','DEBUG','level','83410FCAMcW','cyan','message',']\x20[','dim','TRACE','19859wsxGHG','23747988AKRPtx','3aoVCTv','4zPUTzV'];a217_0x1d96=function(){return _0x10265c;};return a217_0x1d96();}
@@ -1 +1 @@
1
- (function(_0x5635d1,_0x249de3){var _0x1e37f5=a200_0x49aa,_0x617082=_0x5635d1();while(!![]){try{var _0x5305d4=parseInt(_0x1e37f5(0x156))/0x1+parseInt(_0x1e37f5(0x152))/0x2+-parseInt(_0x1e37f5(0x155))/0x3+parseInt(_0x1e37f5(0x154))/0x4+parseInt(_0x1e37f5(0x151))/0x5*(parseInt(_0x1e37f5(0x150))/0x6)+-parseInt(_0x1e37f5(0x14e))/0x7*(parseInt(_0x1e37f5(0x153))/0x8)+parseInt(_0x1e37f5(0x14f))/0x9;if(_0x5305d4===_0x249de3)break;else _0x617082['push'](_0x617082['shift']());}catch(_0x1a20ed){_0x617082['push'](_0x617082['shift']());}}}(a200_0x3697,0x71b74));function a200_0x49aa(_0x5e1a90,_0x2fc031){_0x5e1a90=_0x5e1a90-0x14e;var _0x369776=a200_0x3697();var _0x49aa79=_0x369776[_0x5e1a90];return _0x49aa79;}export{DefaultLogFormatter}from'./default-formatter.js';function a200_0x3697(){var _0x3ec44c=['2172812XzWpaF','2569353nlZjFg','545957MYPTic','14uNSfCF','5128416DQbsPg','276RbYMYf','6505UyrqFH','458562UwFzxH','2503520MgURbz'];a200_0x3697=function(){return _0x3ec44c;};return a200_0x3697();}
1
+ function a218_0x25e5(_0x5a7702,_0x6c0b06){_0x5a7702=_0x5a7702-0x13a;var _0x406254=a218_0x4062();var _0x25e507=_0x406254[_0x5a7702];return _0x25e507;}function a218_0x4062(){var _0x489db3=['138120FGqdya','265951yxbAAM','2WPjvgk','778555MlJRlm','736868cughXK','101992KldlmR','5500980yYtmEQ','171AESvAS','42WCauob','306497fSMvvK'];a218_0x4062=function(){return _0x489db3;};return a218_0x4062();}(function(_0x2106c3,_0x1826f4){var _0x546f4a=a218_0x25e5,_0x5cd743=_0x2106c3();while(!![]){try{var _0x138e62=parseInt(_0x546f4a(0x13d))/0x1*(-parseInt(_0x546f4a(0x140))/0x2)+parseInt(_0x546f4a(0x13e))/0x3+-parseInt(_0x546f4a(0x142))/0x4+parseInt(_0x546f4a(0x141))/0x5+parseInt(_0x546f4a(0x13c))/0x6*(-parseInt(_0x546f4a(0x13f))/0x7)+parseInt(_0x546f4a(0x143))/0x8*(parseInt(_0x546f4a(0x13b))/0x9)+parseInt(_0x546f4a(0x13a))/0xa;if(_0x138e62===_0x1826f4)break;else _0x5cd743['push'](_0x5cd743['shift']());}catch(_0x35ada9){_0x5cd743['push'](_0x5cd743['shift']());}}}(a218_0x4062,0x39f67));export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- function a201_0xed33(){const _0x50f1fa=['266YPutIu','format','useStderr','handle','528520HoVahr','208989EqAXqk','68909jfclMp','80095aEyaFI','formatter','colors','2ODUExb','level','76470ezqmYr','minLevel','2196843RAhvlJ','510luXrQf','468dnKRmz','112184KTmPOZ','error'];a201_0xed33=function(){return _0x50f1fa;};return a201_0xed33();}const a201_0x1c1fc3=a201_0x39ce;(function(_0x24c02c,_0x504ac6){const _0x195e4d=a201_0x39ce,_0x1bb882=_0x24c02c();while(!![]){try{const _0x512f98=parseInt(_0x195e4d(0x14c))/0x1*(parseInt(_0x195e4d(0x150))/0x2)+parseInt(_0x195e4d(0x154))/0x3+-parseInt(_0x195e4d(0x14a))/0x4+-parseInt(_0x195e4d(0x14d))/0x5+parseInt(_0x195e4d(0x152))/0x6*(parseInt(_0x195e4d(0x159))/0x7)+parseInt(_0x195e4d(0x157))/0x8*(parseInt(_0x195e4d(0x156))/0x9)+parseInt(_0x195e4d(0x155))/0xa*(-parseInt(_0x195e4d(0x14b))/0xb);if(_0x512f98===_0x504ac6)break;else _0x1bb882['push'](_0x1bb882['shift']());}catch(_0x118e79){_0x1bb882['push'](_0x1bb882['shift']());}}}(a201_0xed33,0xdb23e));import{LogLevel as a201_0x106d4b}from'../types.js';function a201_0x39ce(_0xdb54d8,_0x367a0e){_0xdb54d8=_0xdb54d8-0x147;const _0xed3367=a201_0xed33();let _0x39ce45=_0xed3367[_0xdb54d8];return _0x39ce45;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a201_0x1c1fc3(0x153)];[a201_0x1c1fc3(0x148)];[a201_0x1c1fc3(0x14e)];constructor(_0x380d10={}){const _0x25b133=a201_0x1c1fc3;this[_0x25b133(0x153)]=_0x380d10[_0x25b133(0x153)]??a201_0x106d4b['WARN'],this['useStderr']=_0x380d10[_0x25b133(0x148)]??!![],this[_0x25b133(0x14e)]=new DefaultLogFormatter({'colors':_0x380d10[_0x25b133(0x14f)]??!![]});}[a201_0x1c1fc3(0x149)](_0x1ccd93){const _0xa37ffc=a201_0x1c1fc3;if(_0x1ccd93[_0xa37ffc(0x151)]<this[_0xa37ffc(0x153)])return;const _0xaf239d=this[_0xa37ffc(0x14e)][_0xa37ffc(0x147)](_0x1ccd93);this[_0xa37ffc(0x148)]&&_0x1ccd93['level']>=a201_0x106d4b['WARN']?console[_0xa37ffc(0x158)](_0xaf239d):console['log'](_0xaf239d);}}
1
+ function a219_0x235b(_0x589f89,_0x7fa13c){_0x589f89=_0x589f89-0x1d8;const _0x128341=a219_0x1283();let _0x235b78=_0x128341[_0x589f89];return _0x235b78;}function a219_0x1283(){const _0x2ff311=['1215734vNCkcs','useStderr','15032mQySPB','1562430edwdUT','4CKPGgc','minLevel','log','level','4599SujoLV','7060707qXWfhH','6622165rtmJHI','41894QxNajz','colors','format','12651610RAGzPj','WARN','195fRHapK','formatter'];a219_0x1283=function(){return _0x2ff311;};return a219_0x1283();}const a219_0x4c769d=a219_0x235b;(function(_0x3b7be2,_0x2aa63f){const _0x8f113a=a219_0x235b,_0x519803=_0x3b7be2();while(!![]){try{const _0xa9fec1=parseInt(_0x8f113a(0x1da))/0x1+parseInt(_0x8f113a(0x1e5))/0x2*(-parseInt(_0x8f113a(0x1d8))/0x3)+-parseInt(_0x8f113a(0x1de))/0x4*(-parseInt(_0x8f113a(0x1e4))/0x5)+parseInt(_0x8f113a(0x1dd))/0x6+-parseInt(_0x8f113a(0x1e2))/0x7*(parseInt(_0x8f113a(0x1dc))/0x8)+-parseInt(_0x8f113a(0x1e3))/0x9+parseInt(_0x8f113a(0x1e8))/0xa;if(_0xa9fec1===_0x2aa63f)break;else _0x519803['push'](_0x519803['shift']());}catch(_0x304a43){_0x519803['push'](_0x519803['shift']());}}}(a219_0x1283,0xa7460));import{LogLevel as a219_0x5b0110}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a219_0x4c769d(0x1df)];[a219_0x4c769d(0x1db)];[a219_0x4c769d(0x1d9)];constructor(_0x2fc7a2={}){const _0x45c3b2=a219_0x4c769d;this[_0x45c3b2(0x1df)]=_0x2fc7a2['minLevel']??a219_0x5b0110[_0x45c3b2(0x1e9)],this[_0x45c3b2(0x1db)]=_0x2fc7a2[_0x45c3b2(0x1db)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x2fc7a2[_0x45c3b2(0x1e6)]??!![]});}['handle'](_0x490611){const _0x290027=a219_0x4c769d;if(_0x490611[_0x290027(0x1e1)]<this[_0x290027(0x1df)])return;const _0x11fd6d=this[_0x290027(0x1d9)][_0x290027(0x1e7)](_0x490611);this[_0x290027(0x1db)]&&_0x490611[_0x290027(0x1e1)]>=a219_0x5b0110[_0x290027(0x1e9)]?console['error'](_0x11fd6d):console[_0x290027(0x1e0)](_0x11fd6d);}}
@@ -1 +1 @@
1
- const a202_0x1eded4=a202_0x67c1;function a202_0x67c1(_0x3d01e4,_0x5164ce){_0x3d01e4=_0x3d01e4-0x1c4;const _0x25b860=a202_0x25b8();let _0x67c15b=_0x25b860[_0x3d01e4];return _0x67c15b;}(function(_0xf6fc14,_0x587fce){const _0x55993a=a202_0x67c1,_0xd3386e=_0xf6fc14();while(!![]){try{const _0x912202=parseInt(_0x55993a(0x1cd))/0x1+parseInt(_0x55993a(0x1c6))/0x2*(parseInt(_0x55993a(0x1d5))/0x3)+-parseInt(_0x55993a(0x1d2))/0x4+-parseInt(_0x55993a(0x1df))/0x5*(parseInt(_0x55993a(0x1e8))/0x6)+parseInt(_0x55993a(0x1db))/0x7*(parseInt(_0x55993a(0x1e6))/0x8)+parseInt(_0x55993a(0x1e5))/0x9*(parseInt(_0x55993a(0x1d0))/0xa)+-parseInt(_0x55993a(0x1cf))/0xb;if(_0x912202===_0x587fce)break;else _0xd3386e['push'](_0xd3386e['shift']());}catch(_0x2b7992){_0xd3386e['push'](_0xd3386e['shift']());}}}(a202_0x25b8,0x9c745));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 a202_0x25b8(){const _0x5a86c9=['5530393DcIKbA','1640JGfPqp','.gz','4560388jhRQDb','handle','split','3IuFkgO','\x5c$&','logFileName','toISOString','test','tdx.log','133MUpJFl','logStream','error','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','903635aHnRrS','logPath','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','getLogPath','rotateOldLogs','Warning:\x20Error\x20writing\x20to\x20','46179rrRiiZ','29224CaCkXR','filePath','6zhTEBB','logBaseName','close','filter','1749934MWGSWJ','end','message','mtime','logDir','rotate','includes','678566aAhWyW','write'];a202_0x25b8=function(){return _0x5a86c9;};return a202_0x25b8();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a202_0x1eded4(0x1e0)];[a202_0x1eded4(0x1ca)];['logFileName'];[a202_0x1eded4(0x1e9)];[a202_0x1eded4(0x1dc)]=null;['rotate'];constructor(_0x1251e4={}){const _0x16dc57=a202_0x1eded4;this[_0x16dc57(0x1e0)]=_0x1251e4[_0x16dc57(0x1e7)]??join(getGlobalCacheDir(),'logs',_0x16dc57(0x1da)),this[_0x16dc57(0x1ca)]=dirname(this[_0x16dc57(0x1e0)]),this[_0x16dc57(0x1d7)]=basename(this[_0x16dc57(0x1e0)]),this[_0x16dc57(0x1e9)]=this[_0x16dc57(0x1d7)]['replace'](/\.log$/,''),this[_0x16dc57(0x1cb)]=_0x1251e4['rotate']??!![];}async['init'](){const _0x4f0e65=a202_0x1eded4;try{await mkdir(this[_0x4f0e65(0x1ca)],{'recursive':!![]}),this[_0x4f0e65(0x1cb)]&&await this[_0x4f0e65(0x1e3)](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x4f0e65(0x1dc)]['on'](_0x4f0e65(0x1dd),_0x4ef4a9=>{const _0x1b3d36=_0x4f0e65;console['error'](_0x1b3d36(0x1e4)+this['logFileName']+':',_0x4ef4a9[_0x1b3d36(0x1c8)]);});}catch(_0x51f887){console[_0x4f0e65(0x1dd)](_0x4f0e65(0x1e1),_0x51f887);}}[a202_0x1eded4(0x1d3)](_0x2d72a){const _0x2f179a=a202_0x1eded4;if(!this[_0x2f179a(0x1dc)])return;const _0x34dd32=Logger['format'](_0x2d72a);this['logStream'][_0x2f179a(0x1ce)](_0x34dd32+'\x0a');}async[a202_0x1eded4(0x1c4)](){return new Promise(_0x327aa1=>{const _0x28c1fd=a202_0x67c1;this[_0x28c1fd(0x1dc)]?this[_0x28c1fd(0x1dc)][_0x28c1fd(0x1c7)](()=>{this['logStream']=null,_0x327aa1();}):_0x327aa1();});}[a202_0x1eded4(0x1e2)](){return this['logPath'];}async[a202_0x1eded4(0x1e3)](){const _0x21a454=a202_0x1eded4;try{const _0x46eca8=await readdir(this['logDir']),_0x5747e4=new Date()[_0x21a454(0x1d8)]()[_0x21a454(0x1d4)]('T')[0x0];if(_0x46eca8[_0x21a454(0x1cc)](this[_0x21a454(0x1d7)])){const _0x26c3c8=join(this['logDir'],this[_0x21a454(0x1d7)]),_0x58c174=await stat(_0x26c3c8),_0xc9b81=new Date(_0x58c174[_0x21a454(0x1c9)])[_0x21a454(0x1d8)]()[_0x21a454(0x1d4)]('T')[0x0];if(_0xc9b81<_0x5747e4){const _0x3a897c=join(this['logDir'],this[_0x21a454(0x1e9)]+'-'+_0xc9b81+'.log');await rename(_0x26c3c8,_0x3a897c);}}const _0x32739e=await readdir(this[_0x21a454(0x1ca)]),_0x3f4415=this[_0x21a454(0x1e9)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x21a454(0x1d6)),_0x2d6b53=new RegExp('^'+_0x3f4415+_0x21a454(0x1de)),_0xb46cc4=_0x32739e[_0x21a454(0x1c5)](_0x4aedd3=>_0x2d6b53[_0x21a454(0x1d9)](_0x4aedd3));for(const _0x5cd1c6 of _0xb46cc4){const _0x3d0ba7=join(this[_0x21a454(0x1ca)],_0x5cd1c6),_0x33d60b=join(this[_0x21a454(0x1ca)],_0x5cd1c6+_0x21a454(0x1d1));try{await pipeline(createReadStream(_0x3d0ba7),createGzip(),createWriteStream(_0x33d60b)),await unlink(_0x3d0ba7);}catch(_0x245306){console[_0x21a454(0x1dd)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x5cd1c6+':',_0x245306);}}}catch{}}}
1
+ const a220_0x4a1d9d=a220_0x3f73;function a220_0x3f73(_0xf95b71,_0x4428be){_0xf95b71=_0xf95b71-0xec;const _0x6af836=a220_0x6af8();let _0x3f7387=_0x6af836[_0xf95b71];return _0x3f7387;}(function(_0x25bd80,_0xd72fa0){const _0x23aa1f=a220_0x3f73,_0x276079=_0x25bd80();while(!![]){try{const _0x1f2b14=-parseInt(_0x23aa1f(0xf5))/0x1+-parseInt(_0x23aa1f(0x108))/0x2*(-parseInt(_0x23aa1f(0x103))/0x3)+parseInt(_0x23aa1f(0x10c))/0x4+-parseInt(_0x23aa1f(0xec))/0x5*(parseInt(_0x23aa1f(0x102))/0x6)+-parseInt(_0x23aa1f(0xfb))/0x7*(-parseInt(_0x23aa1f(0xf2))/0x8)+-parseInt(_0x23aa1f(0x109))/0x9*(parseInt(_0x23aa1f(0x107))/0xa)+parseInt(_0x23aa1f(0x111))/0xb;if(_0x1f2b14===_0xd72fa0)break;else _0x276079['push'](_0x276079['shift']());}catch(_0x310415){_0x276079['push'](_0x276079['shift']());}}}(a220_0x6af8,0xcd88d));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';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a220_0x4a1d9d(0x106)];[a220_0x4a1d9d(0x10d)];['logBaseName'];[a220_0x4a1d9d(0xf6)]=null;[a220_0x4a1d9d(0x105)];constructor(_0x4d707e={}){const _0x4c5593=a220_0x4a1d9d;this[_0x4c5593(0xf7)]=_0x4d707e['filePath']??join(getGlobalCacheDir(),_0x4c5593(0x10e),_0x4c5593(0x10a)),this[_0x4c5593(0x106)]=dirname(this[_0x4c5593(0xf7)]),this['logFileName']=basename(this[_0x4c5593(0xf7)]),this[_0x4c5593(0xfe)]=this['logFileName'][_0x4c5593(0x112)](/\.log$/,''),this[_0x4c5593(0x105)]=_0x4d707e[_0x4c5593(0x105)]??!![];}async[a220_0x4a1d9d(0xfa)](){const _0x349885=a220_0x4a1d9d;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x349885(0x105)]&&await this[_0x349885(0xf1)](),this[_0x349885(0xf6)]=createWriteStream(this[_0x349885(0xf7)],{'flags':'a'}),this[_0x349885(0xf6)]['on']('error',_0x3f4098=>{const _0x3c85d4=_0x349885;console[_0x3c85d4(0x100)](_0x3c85d4(0xee)+this[_0x3c85d4(0x10d)]+':',_0x3f4098[_0x3c85d4(0x110)]);});}catch(_0x3a4bbb){console[_0x349885(0x100)](_0x349885(0xf4),_0x3a4bbb);}}[a220_0x4a1d9d(0xfc)](_0x96c1ba){const _0x4b8469=a220_0x4a1d9d;if(!this[_0x4b8469(0xf6)])return;const _0x257f9a=Logger[_0x4b8469(0xff)](_0x96c1ba);this[_0x4b8469(0xf6)]['write'](_0x257f9a+'\x0a');}async[a220_0x4a1d9d(0x10f)](){return new Promise(_0x1fd0e5=>{const _0x3373b6=a220_0x3f73;this['logStream']?this[_0x3373b6(0xf6)][_0x3373b6(0xf8)](()=>{this['logStream']=null,_0x1fd0e5();}):_0x1fd0e5();});}['getLogPath'](){const _0x193937=a220_0x4a1d9d;return this[_0x193937(0xf7)];}async[a220_0x4a1d9d(0xf1)](){const _0x295e14=a220_0x4a1d9d;try{const _0x379125=await readdir(this['logDir']),_0x108ecb=new Date()[_0x295e14(0x104)]()['split']('T')[0x0];if(_0x379125[_0x295e14(0xfd)](this['logFileName'])){const _0x3802b6=join(this[_0x295e14(0x106)],this[_0x295e14(0x10d)]),_0x1967b9=await stat(_0x3802b6),_0xd25b4e=new Date(_0x1967b9[_0x295e14(0x101)])[_0x295e14(0x104)]()[_0x295e14(0xf9)]('T')[0x0];if(_0xd25b4e<_0x108ecb){const _0x37f737=join(this['logDir'],this[_0x295e14(0xfe)]+'-'+_0xd25b4e+_0x295e14(0xef));await rename(_0x3802b6,_0x37f737);}}const _0x333037=await readdir(this['logDir']),_0x578f3d=this['logBaseName'][_0x295e14(0x112)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x56f326=new RegExp('^'+_0x578f3d+_0x295e14(0xf0)),_0xb111fc=_0x333037['filter'](_0x2ee89e=>_0x56f326[_0x295e14(0xf3)](_0x2ee89e));for(const _0x5c45c4 of _0xb111fc){const _0x3e736a=join(this[_0x295e14(0x106)],_0x5c45c4),_0x7f9e6=join(this[_0x295e14(0x106)],_0x5c45c4+_0x295e14(0xed));try{await pipeline(createReadStream(_0x3e736a),createGzip(),createWriteStream(_0x7f9e6)),await unlink(_0x3e736a);}catch(_0x1dc441){console['error'](_0x295e14(0x10b)+_0x5c45c4+':',_0x1dc441);}}}catch{}}}function a220_0x6af8(){const _0x4891f5=['1631FojYJJ','handle','includes','logBaseName','format','error','mtime','415320FQCwqB','93fCHtNL','toISOString','rotate','logDir','4882830HcpRXN','31026pQFmvL','27tubxJP','tdx.log','Warning:\x20Failed\x20to\x20compress\x20','1450680WhnNBl','logFileName','logs','close','message','32305119YfbUeg','replace','95aFVBCP','.gz','Warning:\x20Error\x20writing\x20to\x20','.log','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','rotateOldLogs','52344VTrZjK','test','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','1683023nSaIdE','logStream','logPath','end','split','init'];a220_0x6af8=function(){return _0x4891f5;};return a220_0x6af8();}
@@ -1 +1 @@
1
- (function(_0x475bb4,_0x5e6f4b){var _0x57b52e=a203_0x2c63,_0x459de3=_0x475bb4();while(!![]){try{var _0x4e07ec=parseInt(_0x57b52e(0x19b))/0x1+parseInt(_0x57b52e(0x19f))/0x2*(parseInt(_0x57b52e(0x1a0))/0x3)+-parseInt(_0x57b52e(0x19a))/0x4*(parseInt(_0x57b52e(0x1a2))/0x5)+-parseInt(_0x57b52e(0x19d))/0x6*(parseInt(_0x57b52e(0x1a3))/0x7)+parseInt(_0x57b52e(0x19c))/0x8*(-parseInt(_0x57b52e(0x19e))/0x9)+-parseInt(_0x57b52e(0x1a4))/0xa+parseInt(_0x57b52e(0x1a1))/0xb*(parseInt(_0x57b52e(0x1a5))/0xc);if(_0x4e07ec===_0x5e6f4b)break;else _0x459de3['push'](_0x459de3['shift']());}catch(_0x1ac4b9){_0x459de3['push'](_0x459de3['shift']());}}}(a203_0x559f,0xc0180));export{FileHandler}from'./file-handler.js';function a203_0x559f(){var _0x301154=['7503850KkmGOc','2510004ijUdsb','4IhokWM','7573AvOQlN','8gDelts','6yqIutU','1751373CaDQNg','2391604khEsoN','3wtEHmC','99CyscNO','4586525lFTRaF','3057425gFQNgW'];a203_0x559f=function(){return _0x301154;};return a203_0x559f();}function a203_0x2c63(_0x6acafa,_0x43cc44){_0x6acafa=_0x6acafa-0x19a;var _0x559f1b=a203_0x559f();var _0x2c634f=_0x559f1b[_0x6acafa];return _0x2c634f;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x4e5e49,_0x35ac73){var _0x79c186=a221_0x429e,_0x5da329=_0x4e5e49();while(!![]){try{var _0x4b453b=-parseInt(_0x79c186(0x1a0))/0x1*(parseInt(_0x79c186(0x196))/0x2)+parseInt(_0x79c186(0x19e))/0x3*(parseInt(_0x79c186(0x197))/0x4)+parseInt(_0x79c186(0x19d))/0x5*(parseInt(_0x79c186(0x19c))/0x6)+parseInt(_0x79c186(0x1a1))/0x7+-parseInt(_0x79c186(0x19f))/0x8*(-parseInt(_0x79c186(0x199))/0x9)+-parseInt(_0x79c186(0x19a))/0xa+parseInt(_0x79c186(0x198))/0xb*(-parseInt(_0x79c186(0x19b))/0xc);if(_0x4b453b===_0x35ac73)break;else _0x5da329['push'](_0x5da329['shift']());}catch(_0x1f4e6d){_0x5da329['push'](_0x5da329['shift']());}}}(a221_0x167b,0x53867));function a221_0x167b(){var _0x4996db=['7328DCAYNW','536162OjBcvm','44559nMWwFg','1660190Omjgyr','60ngMeZM','426024alZcKr','15FusNYa','354qxyOBD','568ijwJSd','388988XUFZfv','2520889KmLugr','2RwMyQr'];a221_0x167b=function(){return _0x4996db;};return a221_0x167b();}function a221_0x429e(_0x4b522a,_0x3e8a47){_0x4b522a=_0x4b522a-0x196;var _0x167b52=a221_0x167b();var _0x429e84=_0x167b52[_0x4b522a];return _0x429e84;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- var a204_0x59c016=a204_0x1b36;function a204_0x1b36(_0x181102,_0x494f72){_0x181102=_0x181102-0x1d7;var _0x91725e=a204_0x9172();var _0x1b3673=_0x91725e[_0x181102];return _0x1b3673;}(function(_0x27ae0f,_0x217ecc){var _0x5c2692=a204_0x1b36,_0x14f303=_0x27ae0f();while(!![]){try{var _0x106ba2=parseInt(_0x5c2692(0x1de))/0x1+parseInt(_0x5c2692(0x1dc))/0x2+parseInt(_0x5c2692(0x1e1))/0x3*(-parseInt(_0x5c2692(0x1d7))/0x4)+-parseInt(_0x5c2692(0x1d9))/0x5*(-parseInt(_0x5c2692(0x1db))/0x6)+-parseInt(_0x5c2692(0x1da))/0x7+-parseInt(_0x5c2692(0x1d8))/0x8*(-parseInt(_0x5c2692(0x1df))/0x9)+parseInt(_0x5c2692(0x1dd))/0xa;if(_0x106ba2===_0x217ecc)break;else _0x14f303['push'](_0x14f303['shift']());}catch(_0x4664e6){_0x14f303['push'](_0x14f303['shift']());}}}(a204_0x9172,0x82568));export class NullHandler{[a204_0x59c016(0x1e0)](_0x116f79){}}function a204_0x9172(){var _0x3b0230=['5403671cvaFLQ','3162GeAFho','1075762uChlRq','3768020WPnIvf','353010IsXFSe','63oblTFt','handle','733314Ewkick','4Dqhlcn','32024xcLmst','2415UsJBCL'];a204_0x9172=function(){return _0x3b0230;};return a204_0x9172();}
1
+ (function(_0x51db60,_0x1d8064){var _0x52063a=a222_0x1910,_0x376539=_0x51db60();while(!![]){try{var _0x6f87f=parseInt(_0x52063a(0x16d))/0x1+-parseInt(_0x52063a(0x16e))/0x2*(-parseInt(_0x52063a(0x170))/0x3)+-parseInt(_0x52063a(0x16f))/0x4*(parseInt(_0x52063a(0x16c))/0x5)+-parseInt(_0x52063a(0x16a))/0x6+parseInt(_0x52063a(0x16b))/0x7+parseInt(_0x52063a(0x168))/0x8+-parseInt(_0x52063a(0x171))/0x9*(-parseInt(_0x52063a(0x169))/0xa);if(_0x6f87f===_0x1d8064)break;else _0x376539['push'](_0x376539['shift']());}catch(_0x554ee0){_0x376539['push'](_0x376539['shift']());}}}(a222_0x39b8,0x76284));function a222_0x1910(_0x770a04,_0x459e7a){_0x770a04=_0x770a04-0x168;var _0x39b8e7=a222_0x39b8();var _0x1910f0=_0x39b8e7[_0x770a04];return _0x1910f0;}function a222_0x39b8(){var _0x2886ca=['252268QHsfoM','2884vtWCsF','2516516CFgFGd','1149VeRhTE','9tuqUHn','864088KzetIZ','2124370zPFXXK','2304546reSvOG','2605330EIyCcM','5XSDKSa'];a222_0x39b8=function(){return _0x2886ca;};return a222_0x39b8();}export class NullHandler{['handle'](_0x40f492){}}
@@ -1 +1 @@
1
- function a205_0x1b5f(_0x549280,_0x2d54ae){_0x549280=_0x549280-0x181;var _0x5e5b58=a205_0x5e5b();var _0x1b5f23=_0x5e5b58[_0x549280];return _0x1b5f23;}(function(_0x9d0924,_0x3b1005){var _0x1dfab5=a205_0x1b5f,_0x146513=_0x9d0924();while(!![]){try{var _0x2f2f42=-parseInt(_0x1dfab5(0x18a))/0x1+parseInt(_0x1dfab5(0x184))/0x2+-parseInt(_0x1dfab5(0x185))/0x3*(-parseInt(_0x1dfab5(0x189))/0x4)+parseInt(_0x1dfab5(0x182))/0x5+parseInt(_0x1dfab5(0x186))/0x6+parseInt(_0x1dfab5(0x188))/0x7*(-parseInt(_0x1dfab5(0x187))/0x8)+parseInt(_0x1dfab5(0x181))/0x9*(-parseInt(_0x1dfab5(0x183))/0xa);if(_0x2f2f42===_0x3b1005)break;else _0x146513['push'](_0x146513['shift']());}catch(_0x3da1af){_0x146513['push'](_0x146513['shift']());}}}(a205_0x5e5b,0xd1ab5));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a205_0x5e5b(){var _0x5c7af8=['9202890XwAApq','9758104LKuyuw','7yNgdoh','4YHEUFv','432261mjLJWn','27QQWvnW','6470565QxDxps','9559060QzezTD','2989900vJhgsx','3167007wHqOgM'];a205_0x5e5b=function(){return _0x5c7af8;};return a205_0x5e5b();}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x2f37a8,_0x35e0b0){var _0x2ece55=a223_0x206b,_0x3aea8f=_0x2f37a8();while(!![]){try{var _0xcbd0d=-parseInt(_0x2ece55(0xad))/0x1*(parseInt(_0x2ece55(0xac))/0x2)+-parseInt(_0x2ece55(0xae))/0x3*(parseInt(_0x2ece55(0xa9))/0x4)+parseInt(_0x2ece55(0xaa))/0x5+parseInt(_0x2ece55(0xb0))/0x6*(-parseInt(_0x2ece55(0xab))/0x7)+-parseInt(_0x2ece55(0xa8))/0x8+parseInt(_0x2ece55(0xaf))/0x9+parseInt(_0x2ece55(0xa7))/0xa*(parseInt(_0x2ece55(0xa6))/0xb);if(_0xcbd0d===_0x35e0b0)break;else _0x3aea8f['push'](_0x3aea8f['shift']());}catch(_0x2fe09f){_0x3aea8f['push'](_0x3aea8f['shift']());}}}(a223_0xb282,0xb9342));export{Logger}from'./logger.js';function a223_0x206b(_0xa7574e,_0x5f1ad4){_0xa7574e=_0xa7574e-0xa6;var _0xb282c3=a223_0xb282();var _0x206b27=_0xb282c3[_0xa7574e];return _0x206b27;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a223_0xb282(){var _0x5238dd=['23272030zMtkbl','6997536FnXrKU','195196bCuJve','5014280DkMirF','217iMiKjv','32074thQWgL','59NSVLyy','69LlgrdA','8844057iiQXNh','118236EZGHrh','11ovXyfx'];a223_0xb282=function(){return _0x5238dd;};return a223_0xb282();}
@@ -1 +1 @@
1
- const a206_0x31bc0f=a206_0x3864;(function(_0xda2bae,_0x573dc8){const _0xcd9e9d=a206_0x3864,_0x14a68f=_0xda2bae();while(!![]){try{const _0x4d36ac=-parseInt(_0xcd9e9d(0x1bc))/0x1+-parseInt(_0xcd9e9d(0x1c1))/0x2*(parseInt(_0xcd9e9d(0x1cb))/0x3)+parseInt(_0xcd9e9d(0x1a7))/0x4+parseInt(_0xcd9e9d(0x1a1))/0x5*(parseInt(_0xcd9e9d(0x1c2))/0x6)+parseInt(_0xcd9e9d(0x1cf))/0x7*(parseInt(_0xcd9e9d(0x19d))/0x8)+-parseInt(_0xcd9e9d(0x1c9))/0x9*(-parseInt(_0xcd9e9d(0x1b6))/0xa)+-parseInt(_0xcd9e9d(0x1ab))/0xb;if(_0x4d36ac===_0x573dc8)break;else _0x14a68f['push'](_0x14a68f['shift']());}catch(_0x26c407){_0x14a68f['push'](_0x14a68f['shift']());}}}(a206_0x178a,0x59f96));import{LogLevel as a206_0x366e46,logLevelToString}from'./types.js';function a206_0x178a(){const _0x181523=['getFormatter','format','handlers','slice','function','TRACE','length','push','handle','clearHandlers','43864Kbbksd','has',']\x20[','init','108525nBeUMZ','WARN','formatter','warn','pendingRecords','initialized','599200xNoivS','cause','level','clear','7626267QLFjeh','loggers','log','toISOString','INFO','addHandler','ERROR','timestamp','stack','map','reset','2360DwYumu','set','string','get','shouldLog','getEffectiveLevel','270654Wyqwfd','levelOverrides','debug','DEBUG','trace','266ySMYgy','102uEMqKE','setLogLevel','isInitialized','defaultLevel','name','info','join','25371PInzAD','close','9762vdyegG','message','component','split','742mAQuJi'];a206_0x178a=function(){return _0x181523;};return a206_0x178a();}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a206_0x366e46[a206_0x31bc0f(0x1af)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x36b454){const _0x14614b=a206_0x31bc0f;if(typeof _0x36b454===_0x14614b(0x1b8))return _0x36b454;if(_0x36b454 instanceof Error)return _0x36b454[_0x14614b(0x1b3)]||_0x36b454[_0x14614b(0x1c6)]+':\x20'+_0x36b454['message'];try{return JSON['stringify'](_0x36b454,(_0x111ac5,_0x1365d2)=>{const _0xea13dc=_0x14614b;if(_0x1365d2 instanceof Error)return{'name':_0x1365d2[_0xea13dc(0x1c6)],'message':_0x1365d2[_0xea13dc(0x1cc)],'stack':_0x1365d2[_0xea13dc(0x1b3)],'cause':_0x1365d2[_0xea13dc(0x1a8)]};return _0x1365d2;});}catch{return String(_0x36b454);}}function a206_0x3864(_0x395232,_0x341f36){_0x395232=_0x395232-0x196;const _0x178ac1=a206_0x178a();let _0x38646c=_0x178ac1[_0x395232];return _0x38646c;}export class Logger{[a206_0x31bc0f(0x1cd)];constructor(_0x63da3){const _0x2411f1=a206_0x31bc0f;this[_0x2411f1(0x1cd)]=_0x63da3;}static['of'](_0x211765){const _0x2d9bdf=a206_0x31bc0f,_0x2cb05a=typeof _0x211765==='string'?_0x211765:_0x211765[_0x2d9bdf(0x1c6)];let _0x59549d=state[_0x2d9bdf(0x1ac)]['get'](_0x2cb05a);return!_0x59549d&&(_0x59549d=new Logger(_0x2cb05a),state[_0x2d9bdf(0x1ac)][_0x2d9bdf(0x1b7)](_0x2cb05a,_0x59549d)),_0x59549d;}static async['init'](_0x9a56f0={}){const _0x56a049=a206_0x31bc0f;state[_0x56a049(0x1c5)]=_0x9a56f0[_0x56a049(0x1c5)]??a206_0x366e46[_0x56a049(0x1af)],state[_0x56a049(0x1d2)]=_0x9a56f0[_0x56a049(0x1d2)]??[],state[_0x56a049(0x1a3)]=_0x9a56f0[_0x56a049(0x1a3)]??null,state[_0x56a049(0x1bd)][_0x56a049(0x1aa)]();if(_0x9a56f0[_0x56a049(0x1bd)])for(const [_0x1b7cd1,_0x592a08]of Object['entries'](_0x9a56f0[_0x56a049(0x1bd)])){state['levelOverrides'][_0x56a049(0x1b7)](_0x1b7cd1,_0x592a08);}for(const _0x16d8c6 of state['handlers']){_0x16d8c6[_0x56a049(0x1a0)]&&await _0x16d8c6[_0x56a049(0x1a0)]();}state['initialized']=!![];for(const _0x1381a6 of state[_0x56a049(0x1a5)]){Logger['dispatch'](_0x1381a6);}state[_0x56a049(0x1a5)]=[];}static[a206_0x31bc0f(0x1c3)](_0x299e55,_0x10e233){const _0x219194=a206_0x31bc0f;state[_0x219194(0x1bd)]['set'](_0x299e55,_0x10e233);}static['setDefaultLevel'](_0x5860c0){const _0x2bb41a=a206_0x31bc0f;state[_0x2bb41a(0x1c5)]=_0x5860c0;}static[a206_0x31bc0f(0x1b0)](_0x56c6d7){const _0x5d3686=a206_0x31bc0f;state[_0x5d3686(0x1d2)][_0x5d3686(0x19a)](_0x56c6d7),state[_0x5d3686(0x1a6)]&&_0x56c6d7[_0x5d3686(0x1a0)]&&_0x56c6d7[_0x5d3686(0x1a0)]();}static[a206_0x31bc0f(0x19c)](){const _0x3924b7=a206_0x31bc0f;state[_0x3924b7(0x1d2)]=[];}static async['shutdown'](){const _0x6720c2=a206_0x31bc0f;for(const _0x2da50b of state[_0x6720c2(0x1d2)]){_0x2da50b[_0x6720c2(0x1ca)]&&await _0x2da50b[_0x6720c2(0x1ca)]();}state[_0x6720c2(0x1d2)]=[],state['initialized']=![],state['loggers'][_0x6720c2(0x1aa)](),state['pendingRecords']=[];}static[a206_0x31bc0f(0x1b5)](){const _0xd4a86f=a206_0x31bc0f;state[_0xd4a86f(0x1a6)]=![],state['defaultLevel']=a206_0x366e46[_0xd4a86f(0x1af)],state[_0xd4a86f(0x1bd)][_0xd4a86f(0x1aa)](),state[_0xd4a86f(0x1d2)]=[],state['formatter']=null,state['loggers'][_0xd4a86f(0x1aa)](),state[_0xd4a86f(0x1a5)]=[];}static[a206_0x31bc0f(0x1c4)](){const _0x58767c=a206_0x31bc0f;return state[_0x58767c(0x1a6)];}static[a206_0x31bc0f(0x1bb)](_0x1aca15){const _0x2c6871=a206_0x31bc0f;if(state['levelOverrides'][_0x2c6871(0x19e)](_0x1aca15))return state[_0x2c6871(0x1bd)][_0x2c6871(0x1b9)](_0x1aca15);const _0x445fc7=_0x1aca15[_0x2c6871(0x1ce)]('.');for(let _0x525279=_0x445fc7[_0x2c6871(0x199)]-0x1;_0x525279>0x0;_0x525279--){const _0x509f41=_0x445fc7[_0x2c6871(0x196)](0x0,_0x525279)[_0x2c6871(0x1c8)]('.');if(state[_0x2c6871(0x1bd)][_0x2c6871(0x19e)](_0x509f41))return state[_0x2c6871(0x1bd)][_0x2c6871(0x1b9)](_0x509f41);}return state[_0x2c6871(0x1c5)];}[a206_0x31bc0f(0x1ba)](_0x1c93e2){const _0x502004=a206_0x31bc0f,_0x1f36fc=Logger[_0x502004(0x1bb)](this[_0x502004(0x1cd)]);return _0x1c93e2>=_0x1f36fc;}static['dispatch'](_0x4affd8){const _0x548ae6=a206_0x31bc0f;for(const _0x44bcae of state[_0x548ae6(0x1d2)]){_0x44bcae[_0x548ae6(0x19b)](_0x4affd8);}}[a206_0x31bc0f(0x1ad)](_0x4b0a7e,_0x2a6b85){const _0x3292ac=a206_0x31bc0f;if(!this[_0x3292ac(0x1ba)](_0x4b0a7e))return;const _0x424ed5=_0x2a6b85[_0x3292ac(0x1b4)](_0x5284df=>typeof _0x5284df===_0x3292ac(0x197)?_0x5284df():_0x5284df),_0x4ff9cd=_0x424ed5[_0x3292ac(0x1b4)](safeStringify)[_0x3292ac(0x1c8)]('\x20'),_0x2a0ef2={'timestamp':new Date(),'level':_0x4b0a7e,'component':this[_0x3292ac(0x1cd)],'message':_0x4ff9cd};if(!state[_0x3292ac(0x1a6)]){state[_0x3292ac(0x1a5)][_0x3292ac(0x199)]<MAX_PENDING_RECORDS&&state[_0x3292ac(0x1a5)]['push'](_0x2a0ef2);return;}Logger['dispatch'](_0x2a0ef2);}[a206_0x31bc0f(0x1c0)](..._0x5a79bf){const _0x43e5e5=a206_0x31bc0f;this[_0x43e5e5(0x1ad)](a206_0x366e46[_0x43e5e5(0x198)],_0x5a79bf);}[a206_0x31bc0f(0x1be)](..._0x512d1e){const _0x442cbe=a206_0x31bc0f;this['log'](a206_0x366e46[_0x442cbe(0x1bf)],_0x512d1e);}[a206_0x31bc0f(0x1c7)](..._0x3b47bc){const _0x1c2140=a206_0x31bc0f;this['log'](a206_0x366e46[_0x1c2140(0x1af)],_0x3b47bc);}[a206_0x31bc0f(0x1a4)](..._0x31529a){const _0x582bbf=a206_0x31bc0f;this['log'](a206_0x366e46[_0x582bbf(0x1a2)],_0x31529a);}['error'](..._0x198c68){const _0x2c78bb=a206_0x31bc0f;this['log'](a206_0x366e46[_0x2c78bb(0x1b1)],_0x198c68);}static[a206_0x31bc0f(0x1d0)](){const _0x458c36=a206_0x31bc0f;return state[_0x458c36(0x1a3)];}static[a206_0x31bc0f(0x1d1)](_0x58f750){const _0x17541f=a206_0x31bc0f;if(state[_0x17541f(0x1a3)])return state[_0x17541f(0x1a3)][_0x17541f(0x1d1)](_0x58f750);return _0x58f750[_0x17541f(0x1b2)][_0x17541f(0x1ae)]()+'\x20['+logLevelToString(_0x58f750[_0x17541f(0x1a9)])+_0x17541f(0x19f)+_0x58f750[_0x17541f(0x1cd)]+']\x20'+_0x58f750[_0x17541f(0x1cc)];}}
1
+ const a224_0x7080da=a224_0x4694;(function(_0x615192,_0x476f8e){const _0x1dfb59=a224_0x4694,_0x1070fb=_0x615192();while(!![]){try{const _0x1200c9=parseInt(_0x1dfb59(0xb0))/0x1*(-parseInt(_0x1dfb59(0xb1))/0x2)+-parseInt(_0x1dfb59(0xc6))/0x3*(parseInt(_0x1dfb59(0x90))/0x4)+parseInt(_0x1dfb59(0xa1))/0x5*(parseInt(_0x1dfb59(0xc2))/0x6)+parseInt(_0x1dfb59(0x9a))/0x7+parseInt(_0x1dfb59(0xad))/0x8+-parseInt(_0x1dfb59(0x95))/0x9*(-parseInt(_0x1dfb59(0x96))/0xa)+-parseInt(_0x1dfb59(0xa9))/0xb;if(_0x1200c9===_0x476f8e)break;else _0x1070fb['push'](_0x1070fb['shift']());}catch(_0x248f80){_0x1070fb['push'](_0x1070fb['shift']());}}}(a224_0x304c,0x608b5));import{LogLevel as a224_0x5ecb4a,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a224_0x5ecb4a[a224_0x7080da(0xb8)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x17bc86){const _0x5d983e=a224_0x7080da;if(typeof _0x17bc86===_0x5d983e(0xca))return _0x17bc86;if(_0x17bc86 instanceof Error)return _0x17bc86[_0x5d983e(0x9c)]||_0x17bc86[_0x5d983e(0xac)]+':\x20'+_0x17bc86[_0x5d983e(0xa0)];try{return JSON[_0x5d983e(0xbc)](_0x17bc86,(_0x5c9fe3,_0x5f075c)=>{const _0x32af16=_0x5d983e;if(_0x5f075c instanceof Error)return{'name':_0x5f075c['name'],'message':_0x5f075c[_0x32af16(0xa0)],'stack':_0x5f075c[_0x32af16(0x9c)],'cause':_0x5f075c['cause']};return _0x5f075c;});}catch{return String(_0x17bc86);}}export class Logger{[a224_0x7080da(0x9b)];constructor(_0x539cef){const _0x1c43dc=a224_0x7080da;this[_0x1c43dc(0x9b)]=_0x539cef;}static['of'](_0x18b384){const _0x293410=a224_0x7080da,_0x5cd97f=typeof _0x18b384===_0x293410(0xca)?_0x18b384:_0x18b384['name'];let _0x157f4c=state[_0x293410(0xa8)]['get'](_0x5cd97f);return!_0x157f4c&&(_0x157f4c=new Logger(_0x5cd97f),state[_0x293410(0xa8)]['set'](_0x5cd97f,_0x157f4c)),_0x157f4c;}static async[a224_0x7080da(0xae)](_0x3f707c={}){const _0x31a050=a224_0x7080da;state[_0x31a050(0x93)]=_0x3f707c[_0x31a050(0x93)]??a224_0x5ecb4a[_0x31a050(0xb8)],state['handlers']=_0x3f707c[_0x31a050(0x9d)]??[],state[_0x31a050(0xa4)]=_0x3f707c[_0x31a050(0xa4)]??null,state[_0x31a050(0xc7)][_0x31a050(0xc3)]();if(_0x3f707c[_0x31a050(0xc7)])for(const [_0x23e8b7,_0x123cdb]of Object['entries'](_0x3f707c[_0x31a050(0xc7)])){state[_0x31a050(0xc7)][_0x31a050(0xc9)](_0x23e8b7,_0x123cdb);}for(const _0x4d5ed1 of state[_0x31a050(0x9d)]){_0x4d5ed1['init']&&await _0x4d5ed1[_0x31a050(0xae)]();}state[_0x31a050(0xb6)]=!![];for(const _0x5a72e8 of state[_0x31a050(0xaa)]){Logger[_0x31a050(0xc5)](_0x5a72e8);}state['pendingRecords']=[];}static[a224_0x7080da(0xc8)](_0x31af59,_0x44675f){const _0x27f167=a224_0x7080da;state['levelOverrides'][_0x27f167(0xc9)](_0x31af59,_0x44675f);}static[a224_0x7080da(0xba)](_0x4ac73d){const _0xb29586=a224_0x7080da;state[_0xb29586(0x93)]=_0x4ac73d;}static[a224_0x7080da(0xa6)](_0x5c9484){const _0x1a6afd=a224_0x7080da;state[_0x1a6afd(0x9d)][_0x1a6afd(0xb5)](_0x5c9484),state[_0x1a6afd(0xb6)]&&_0x5c9484[_0x1a6afd(0xae)]&&_0x5c9484[_0x1a6afd(0xae)]();}static[a224_0x7080da(0xbd)](){state['handlers']=[];}static async[a224_0x7080da(0xb4)](){const _0x5c430e=a224_0x7080da;for(const _0x4b9984 of state[_0x5c430e(0x9d)]){_0x4b9984[_0x5c430e(0x9e)]&&await _0x4b9984['close']();}state['handlers']=[],state[_0x5c430e(0xb6)]=![],state['loggers'][_0x5c430e(0xc3)](),state[_0x5c430e(0xaa)]=[];}static[a224_0x7080da(0xb7)](){const _0xebed47=a224_0x7080da;state[_0xebed47(0xb6)]=![],state[_0xebed47(0x93)]=a224_0x5ecb4a[_0xebed47(0xb8)],state['levelOverrides']['clear'](),state[_0xebed47(0x9d)]=[],state['formatter']=null,state[_0xebed47(0xa8)][_0xebed47(0xc3)](),state['pendingRecords']=[];}static['isInitialized'](){const _0x5c11ac=a224_0x7080da;return state[_0x5c11ac(0xb6)];}static[a224_0x7080da(0xb2)](_0x840c6c){const _0x17f2c8=a224_0x7080da;if(state[_0x17f2c8(0xc7)][_0x17f2c8(0xb3)](_0x840c6c))return state[_0x17f2c8(0xc7)][_0x17f2c8(0xab)](_0x840c6c);const _0x473562=_0x840c6c[_0x17f2c8(0xaf)]('.');for(let _0x643b20=_0x473562[_0x17f2c8(0xa2)]-0x1;_0x643b20>0x0;_0x643b20--){const _0x4e1df8=_0x473562[_0x17f2c8(0xa5)](0x0,_0x643b20)['join']('.');if(state[_0x17f2c8(0xc7)][_0x17f2c8(0xb3)](_0x4e1df8))return state['levelOverrides'][_0x17f2c8(0xab)](_0x4e1df8);}return state[_0x17f2c8(0x93)];}[a224_0x7080da(0x98)](_0x31a195){const _0x2b4a5e=Logger['getEffectiveLevel'](this['component']);return _0x31a195>=_0x2b4a5e;}static['dispatch'](_0xaeb1ea){const _0x1e8de7=a224_0x7080da;for(const _0x439a27 of state[_0x1e8de7(0x9d)]){_0x439a27['handle'](_0xaeb1ea);}}[a224_0x7080da(0xb9)](_0x327b08,_0x3736ef){const _0x4572c1=a224_0x7080da;if(!this[_0x4572c1(0x98)](_0x327b08))return;const _0x54f60f=_0x3736ef['map'](_0x135967=>typeof _0x135967===_0x4572c1(0x94)?_0x135967():_0x135967),_0x56025d=_0x54f60f['map'](safeStringify)[_0x4572c1(0xc0)]('\x20'),_0x120b72={'timestamp':new Date(),'level':_0x327b08,'component':this[_0x4572c1(0x9b)],'message':_0x56025d};if(!state[_0x4572c1(0xb6)]){state[_0x4572c1(0xaa)][_0x4572c1(0xa2)]<MAX_PENDING_RECORDS&&state[_0x4572c1(0xaa)][_0x4572c1(0xb5)](_0x120b72);return;}Logger[_0x4572c1(0xc5)](_0x120b72);}[a224_0x7080da(0xc4)](..._0x4d24aa){const _0x4e3a5a=a224_0x7080da;this[_0x4e3a5a(0xb9)](a224_0x5ecb4a[_0x4e3a5a(0x9f)],_0x4d24aa);}[a224_0x7080da(0xa7)](..._0xc205a2){const _0x24e787=a224_0x7080da;this['log'](a224_0x5ecb4a[_0x24e787(0xc1)],_0xc205a2);}[a224_0x7080da(0xa3)](..._0x1f0cd1){const _0x56d85d=a224_0x7080da;this[_0x56d85d(0xb9)](a224_0x5ecb4a[_0x56d85d(0xb8)],_0x1f0cd1);}['warn'](..._0x322973){const _0x3a0c02=a224_0x7080da;this[_0x3a0c02(0xb9)](a224_0x5ecb4a[_0x3a0c02(0xbe)],_0x322973);}[a224_0x7080da(0xbf)](..._0x3d83f2){const _0x2f9976=a224_0x7080da;this[_0x2f9976(0xb9)](a224_0x5ecb4a[_0x2f9976(0x91)],_0x3d83f2);}static['getFormatter'](){const _0x2c6a33=a224_0x7080da;return state[_0x2c6a33(0xa4)];}static[a224_0x7080da(0x92)](_0x4ad525){const _0x2eaceb=a224_0x7080da;if(state['formatter'])return state[_0x2eaceb(0xa4)][_0x2eaceb(0x92)](_0x4ad525);return _0x4ad525[_0x2eaceb(0x97)][_0x2eaceb(0x99)]()+'\x20['+logLevelToString(_0x4ad525[_0x2eaceb(0xbb)])+']\x20['+_0x4ad525[_0x2eaceb(0x9b)]+']\x20'+_0x4ad525[_0x2eaceb(0xa0)];}}function a224_0x4694(_0x7d0c,_0x3d558){_0x7d0c=_0x7d0c-0x90;const _0x304c9d=a224_0x304c();let _0x469434=_0x304c9d[_0x7d0c];return _0x469434;}function a224_0x304c(){const _0x4d99e3=['100848CnOLtV','levelOverrides','setLogLevel','set','string','32UnprWI','ERROR','format','defaultLevel','function','6855957bbvjiU','10anfBHY','timestamp','shouldLog','toISOString','1099700vSsixV','component','stack','handlers','close','TRACE','message','5HJEowa','length','info','formatter','slice','addHandler','debug','loggers','3008753wFqRiR','pendingRecords','get','name','1275568gdUmsz','init','split','8szPcLY','110378jKrhnJ','getEffectiveLevel','has','shutdown','push','initialized','reset','INFO','log','setDefaultLevel','level','stringify','clearHandlers','WARN','error','join','DEBUG','1806534DLLWDG','clear','trace','dispatch'];a224_0x304c=function(){return _0x4d99e3;};return a224_0x304c();}
@@ -1 +1 @@
1
- (function(_0x2fb6fa,_0x38305a){const _0x20fd75=a207_0x3fdf,_0x1a37ca=_0x2fb6fa();while(!![]){try{const _0x303ba3=-parseInt(_0x20fd75(0x134))/0x1+-parseInt(_0x20fd75(0x12f))/0x2*(-parseInt(_0x20fd75(0x130))/0x3)+-parseInt(_0x20fd75(0x13c))/0x4+-parseInt(_0x20fd75(0x137))/0x5+-parseInt(_0x20fd75(0x132))/0x6*(-parseInt(_0x20fd75(0x144))/0x7)+parseInt(_0x20fd75(0x13b))/0x8+-parseInt(_0x20fd75(0x133))/0x9*(-parseInt(_0x20fd75(0x143))/0xa);if(_0x303ba3===_0x38305a)break;else _0x1a37ca['push'](_0x1a37ca['shift']());}catch(_0x5c7c1a){_0x1a37ca['push'](_0x1a37ca['shift']());}}}(a207_0xc6ac,0xa3a0c));export var LogLevel;(function(_0x266429){const _0x111654=a207_0x3fdf;_0x266429[_0x266429[_0x111654(0x142)]=-0x2]=_0x111654(0x142),_0x266429[_0x266429[_0x111654(0x12c)]=-0x1]='DEBUG',_0x266429[_0x266429[_0x111654(0x131)]=0x0]=_0x111654(0x131),_0x266429[_0x266429[_0x111654(0x129)]=0x1]=_0x111654(0x129),_0x266429[_0x266429[_0x111654(0x13a)]=0x2]=_0x111654(0x13a);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0xe9ba1c){const _0x242037=a207_0x3fdf;switch(_0xe9ba1c[_0x242037(0x13d)]()){case _0x242037(0x142):return LogLevel[_0x242037(0x142)];case _0x242037(0x12c):return LogLevel[_0x242037(0x12c)];case _0x242037(0x131):return LogLevel[_0x242037(0x131)];case _0x242037(0x129):case _0x242037(0x12a):return LogLevel['WARN'];case _0x242037(0x13a):return LogLevel[_0x242037(0x13a)];default:return LogLevel[_0x242037(0x131)];}}function a207_0xc6ac(){const _0x29855c=['5576315hwnfHg','warn','debug','ERROR','8198376RiloVN','864132DqJgFX','toUpperCase','getHours','getFullYear','padStart','getMilliseconds','TRACE','11320ExmjCu','6314oQFOSR','trace','getMinutes','getSeconds','abs','getDate','WARN','WARNING','info','DEBUG','getTimezoneOffset','getMonth','554XRyLEO','8247iaglsA','INFO','4134GTCJXt','2763WQxlaG','753756cjUhCL','toString','floor'];a207_0xc6ac=function(){return _0x29855c;};return a207_0xc6ac();}export function logLevelToString(_0x316390){const _0x356ef1=a207_0x3fdf;switch(_0x316390){case LogLevel[_0x356ef1(0x142)]:return _0x356ef1(0x145);case LogLevel[_0x356ef1(0x12c)]:return _0x356ef1(0x139);case LogLevel[_0x356ef1(0x131)]:return _0x356ef1(0x12b);case LogLevel[_0x356ef1(0x129)]:return _0x356ef1(0x138);case LogLevel['ERROR']:return'error';default:return _0x356ef1(0x12b);}}function a207_0x3fdf(_0x19c3a6,_0x5a7f70){_0x19c3a6=_0x19c3a6-0x125;const _0xc6ac3a=a207_0xc6ac();let _0x3fdf3e=_0xc6ac3a[_0x19c3a6];return _0x3fdf3e;}export function formatTimestamp(_0x570489){const _0x204afa=a207_0x3fdf,_0x14554=_0x570489[_0x204afa(0x13f)](),_0x11183b=(_0x570489[_0x204afa(0x12e)]()+0x1)[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x2dec6d=_0x570489[_0x204afa(0x128)]()[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x2adefc=_0x570489[_0x204afa(0x13e)]()[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x464b23=_0x570489[_0x204afa(0x125)]()[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x37c777=_0x570489[_0x204afa(0x126)]()['toString']()[_0x204afa(0x140)](0x2,'0'),_0x302af8=_0x570489[_0x204afa(0x141)]()[_0x204afa(0x135)]()['padStart'](0x3,'0'),_0x275618=-_0x570489[_0x204afa(0x12d)](),_0x53fdda=Math[_0x204afa(0x136)](Math[_0x204afa(0x127)](_0x275618)/0x3c),_0x1b6dec=Math['abs'](_0x275618)%0x3c,_0x1d124e=_0x275618>=0x0?'+':'-',_0x32e706=''+_0x1d124e+_0x53fdda['toString']()[_0x204afa(0x140)](0x2,'0')+_0x1b6dec['toString']()[_0x204afa(0x140)](0x2,'0');return _0x14554+'-'+_0x11183b+'-'+_0x2dec6d+'\x20'+_0x2adefc+':'+_0x464b23+':'+_0x37c777+'.'+_0x302af8+_0x32e706;}
1
+ (function(_0x40db57,_0x550e2e){const _0x354c12=a225_0x14b3,_0x228d45=_0x40db57();while(!![]){try{const _0x5a7f3c=parseInt(_0x354c12(0xde))/0x1+parseInt(_0x354c12(0xcf))/0x2*(-parseInt(_0x354c12(0xe4))/0x3)+parseInt(_0x354c12(0xd1))/0x4*(parseInt(_0x354c12(0xd6))/0x5)+parseInt(_0x354c12(0xcd))/0x6*(-parseInt(_0x354c12(0xdd))/0x7)+-parseInt(_0x354c12(0xd7))/0x8+-parseInt(_0x354c12(0xc5))/0x9*(parseInt(_0x354c12(0xd2))/0xa)+parseInt(_0x354c12(0xce))/0xb*(parseInt(_0x354c12(0xd9))/0xc);if(_0x5a7f3c===_0x550e2e)break;else _0x228d45['push'](_0x228d45['shift']());}catch(_0x537b5a){_0x228d45['push'](_0x228d45['shift']());}}}(a225_0x216a,0x765d5));export var LogLevel;function a225_0x14b3(_0x29e8c3,_0x251b71){_0x29e8c3=_0x29e8c3-0xc4;const _0x216a4b=a225_0x216a();let _0x14b3d6=_0x216a4b[_0x29e8c3];return _0x14b3d6;}(function(_0x153ccd){const _0x30d650=a225_0x14b3;_0x153ccd[_0x153ccd['TRACE']=-0x2]=_0x30d650(0xe1),_0x153ccd[_0x153ccd[_0x30d650(0xc7)]=-0x1]=_0x30d650(0xc7),_0x153ccd[_0x153ccd[_0x30d650(0xc8)]=0x0]=_0x30d650(0xc8),_0x153ccd[_0x153ccd[_0x30d650(0xc6)]=0x1]=_0x30d650(0xc6),_0x153ccd[_0x153ccd[_0x30d650(0xcb)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));function a225_0x216a(){const _0x9173f7=['getMilliseconds','ERROR','padStart','717684spxzcr','220GLQeKP','56DVkmxc','getMonth','24aqrpSn','1638990WUTZga','getMinutes','getSeconds','getDate','710300IvxtOD','611704upcqRA','getHours','243396uncPms','abs','info','toString','21LQzRst','405187jbcBPF','WARNING','getTimezoneOffset','TRACE','toUpperCase','floor','26934DlONDb','trace','27qGkSDx','WARN','DEBUG','INFO','getFullYear'];a225_0x216a=function(){return _0x9173f7;};return a225_0x216a();}export function parseLogLevel(_0x5d6b40){const _0x2086c7=a225_0x14b3;switch(_0x5d6b40[_0x2086c7(0xe2)]()){case'TRACE':return LogLevel[_0x2086c7(0xe1)];case _0x2086c7(0xc7):return LogLevel[_0x2086c7(0xc7)];case _0x2086c7(0xc8):return LogLevel[_0x2086c7(0xc8)];case _0x2086c7(0xc6):case _0x2086c7(0xdf):return LogLevel[_0x2086c7(0xc6)];case _0x2086c7(0xcb):return LogLevel['ERROR'];default:return LogLevel[_0x2086c7(0xc8)];}}export function logLevelToString(_0x1020c0){const _0x8d6049=a225_0x14b3;switch(_0x1020c0){case LogLevel[_0x8d6049(0xe1)]:return _0x8d6049(0xc4);case LogLevel[_0x8d6049(0xc7)]:return'debug';case LogLevel[_0x8d6049(0xc8)]:return _0x8d6049(0xdb);case LogLevel[_0x8d6049(0xc6)]:return'warn';case LogLevel[_0x8d6049(0xcb)]:return'error';default:return'info';}}export function formatTimestamp(_0x4df8fe){const _0x171001=a225_0x14b3,_0x5625f3=_0x4df8fe[_0x171001(0xc9)](),_0x2fc918=(_0x4df8fe[_0x171001(0xd0)]()+0x1)[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0x1c89de=_0x4df8fe[_0x171001(0xd5)]()[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0xcf8cdb=_0x4df8fe[_0x171001(0xd8)]()[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0x3a6209=_0x4df8fe[_0x171001(0xd3)]()[_0x171001(0xdc)]()['padStart'](0x2,'0'),_0x52113d=_0x4df8fe[_0x171001(0xd4)]()[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0'),_0x561df1=_0x4df8fe[_0x171001(0xca)]()['toString']()[_0x171001(0xcc)](0x3,'0'),_0xb15d2b=-_0x4df8fe[_0x171001(0xe0)](),_0x2aa592=Math[_0x171001(0xe3)](Math[_0x171001(0xda)](_0xb15d2b)/0x3c),_0x341ad0=Math[_0x171001(0xda)](_0xb15d2b)%0x3c,_0x46c56b=_0xb15d2b>=0x0?'+':'-',_0x4e0f4f=''+_0x46c56b+_0x2aa592[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0')+_0x341ad0[_0x171001(0xdc)]()[_0x171001(0xcc)](0x2,'0');return _0x5625f3+'-'+_0x2fc918+'-'+_0x1c89de+'\x20'+_0xcf8cdb+':'+_0x3a6209+':'+_0x52113d+'.'+_0x561df1+_0x4e0f4f;}
@@ -1 +1 @@
1
- (function(_0x30b55d,_0x5399b1){const _0x234144=a208_0x1bc0,_0x4a36b7=_0x30b55d();while(!![]){try{const _0x1fe43=parseInt(_0x234144(0x1c8))/0x1+parseInt(_0x234144(0x1ce))/0x2*(-parseInt(_0x234144(0x1cf))/0x3)+parseInt(_0x234144(0x1cb))/0x4*(parseInt(_0x234144(0x1d6))/0x5)+-parseInt(_0x234144(0x1d0))/0x6+-parseInt(_0x234144(0x1c9))/0x7*(-parseInt(_0x234144(0x1c5))/0x8)+-parseInt(_0x234144(0x1d4))/0x9*(parseInt(_0x234144(0x1d2))/0xa)+parseInt(_0x234144(0x1cd))/0xb*(parseInt(_0x234144(0x1d5))/0xc);if(_0x1fe43===_0x5399b1)break;else _0x4a36b7['push'](_0x4a36b7['shift']());}catch(_0x27155e){_0x4a36b7['push'](_0x4a36b7['shift']());}}}(a208_0x33d5,0xb1336));function a208_0x1bc0(_0x245fae,_0x2fcdc9){_0x245fae=_0x245fae-0x1c5;const _0x33d55c=a208_0x33d5();let _0x1bc095=_0x33d55c[_0x245fae];return _0x1bc095;}function a208_0x33d5(){const _0x158859=['.\x20Must\x20be\x20a\x20positive\x20integer.','452061KfjWdK','392889awLggo','.\x20Must\x20be\x20a\x20number.','152116XCdWZH','.\x20Must\x20be\x20a\x20positive\x20number.','30569zZPqhv','2SpCgxh','3580494OdmmBC','3985254huXxzl','Invalid\x20limit\x20value:\x20','942350HJmdkV','isInteger','27YSDtOn','3864GyZbfZ','185agRKNq','16RXAwhn','Invalid\x20timeout\x20value:\x20'];a208_0x33d5=function(){return _0x158859;};return a208_0x33d5();}export function validateLimitOption(_0x2ae475){const _0x489e37=a208_0x1bc0;if(!Number[_0x489e37(0x1d3)](_0x2ae475))return{'isValid':![],'error':_0x489e37(0x1d1)+_0x2ae475+'.\x20Must\x20be\x20an\x20integer.'};if(_0x2ae475<=0x0)return{'isValid':![],'error':_0x489e37(0x1d1)+_0x2ae475+_0x489e37(0x1c7)};return{'isValid':!![],'value':_0x2ae475};}export function validateTimeoutOption(_0x52c153,_0x2252e3=0x1e){const _0x32993c=a208_0x1bc0;if(_0x52c153===undefined)return{'isValid':!![],'value':_0x2252e3};const _0x12e112=typeof _0x52c153==='number'?_0x52c153:parseFloat(_0x52c153);if(isNaN(_0x12e112))return{'isValid':![],'error':_0x32993c(0x1c6)+_0x52c153+_0x32993c(0x1ca)};if(_0x12e112<=0x0)return{'isValid':![],'error':_0x32993c(0x1c6)+_0x12e112+_0x32993c(0x1cc)};return{'isValid':!![],'value':_0x12e112};}
1
+ (function(_0x105f11,_0x1f4802){const _0xeafa60=a226_0xb10c,_0x15b50a=_0x105f11();while(!![]){try{const _0x5845f6=parseInt(_0xeafa60(0x1e2))/0x1*(parseInt(_0xeafa60(0x1eb))/0x2)+parseInt(_0xeafa60(0x1e1))/0x3+-parseInt(_0xeafa60(0x1e7))/0x4*(-parseInt(_0xeafa60(0x1e4))/0x5)+-parseInt(_0xeafa60(0x1e9))/0x6+-parseInt(_0xeafa60(0x1e5))/0x7*(parseInt(_0xeafa60(0x1e8))/0x8)+-parseInt(_0xeafa60(0x1ec))/0x9+parseInt(_0xeafa60(0x1df))/0xa;if(_0x5845f6===_0x1f4802)break;else _0x15b50a['push'](_0x15b50a['shift']());}catch(_0x2b8585){_0x15b50a['push'](_0x15b50a['shift']());}}}(a226_0x56a5,0x648e0));export function validateLimitOption(_0x3ae0da){const _0x475a36=a226_0xb10c;if(!Number[_0x475a36(0x1e6)](_0x3ae0da))return{'isValid':![],'error':_0x475a36(0x1e0)+_0x3ae0da+'.\x20Must\x20be\x20an\x20integer.'};if(_0x3ae0da<=0x0)return{'isValid':![],'error':_0x475a36(0x1e0)+_0x3ae0da+_0x475a36(0x1ea)};return{'isValid':!![],'value':_0x3ae0da};}function a226_0xb10c(_0x10c062,_0x26f2d6){_0x10c062=_0x10c062-0x1de;const _0x56a5c0=a226_0x56a5();let _0xb10cc9=_0x56a5c0[_0x10c062];return _0xb10cc9;}function a226_0x56a5(){const _0x249deb=['42Izlqag','isInteger','4876wmoWSm','415016ycpAuW','3516378nCecPu','.\x20Must\x20be\x20a\x20positive\x20integer.','790wHNBRK','5777145SDwHsL','number','9163890zApjTs','Invalid\x20limit\x20value:\x20','1215405wMyehA','523KOQUKh','Invalid\x20timeout\x20value:\x20','1735LWMdTQ'];a226_0x56a5=function(){return _0x249deb;};return a226_0x56a5();}export function validateTimeoutOption(_0x136730,_0x55b5d2=0x1e){const _0x53caa1=a226_0xb10c;if(_0x136730===undefined)return{'isValid':!![],'value':_0x55b5d2};const _0x51a01f=typeof _0x136730===_0x53caa1(0x1de)?_0x136730:parseFloat(_0x136730);if(isNaN(_0x51a01f))return{'isValid':![],'error':_0x53caa1(0x1e3)+_0x136730+'.\x20Must\x20be\x20a\x20number.'};if(_0x51a01f<=0x0)return{'isValid':![],'error':_0x53caa1(0x1e3)+_0x51a01f+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x51a01f};}
@@ -1 +1 @@
1
- const a209_0x5afdb9=a209_0x1d14;(function(_0x1efa8a,_0x19a80e){const _0xe2837b=a209_0x1d14,_0x48796c=_0x1efa8a();while(!![]){try{const _0x56c364=-parseInt(_0xe2837b(0x118))/0x1+-parseInt(_0xe2837b(0x119))/0x2*(parseInt(_0xe2837b(0x126))/0x3)+-parseInt(_0xe2837b(0x123))/0x4*(parseInt(_0xe2837b(0x145))/0x5)+parseInt(_0xe2837b(0x139))/0x6+parseInt(_0xe2837b(0x12b))/0x7*(-parseInt(_0xe2837b(0x149))/0x8)+-parseInt(_0xe2837b(0x13d))/0x9+parseInt(_0xe2837b(0x140))/0xa;if(_0x56c364===_0x19a80e)break;else _0x48796c['push'](_0x48796c['shift']());}catch(_0x28b58e){_0x48796c['push'](_0x48796c['shift']());}}}(a209_0x1864,0xc0c66));function a209_0x1864(){const _0x1f4d12=['win32','kill','darwin','http:','claude','zsh','where.exe','4zxgmpg','xonsh','test','2967fbsqMQ','Unsupported\x20protocol:\x20','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','toString','data','21259VEgYOK','fish','exit','join','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','pipe','dash','stdout','elvish','ignore','ppid','comm','pid','code','8532576eAVPZC','csh','unref','isInteger','12603321QRUGqM','protocol','ion','45140300aiqscG','error','powershell','has','platform','5821270qGnXpp','map','open','cmd.exe','1304vmpaew','ksh','cursor','replace','\x20-o\x20ppid=,comm=','split','tcsh','https:','href','Invalid\x20URL:\x20','trim','utf-8','1575553XyqkWK','1034cWUpxE','pop','xdg-open'];a209_0x1864=function(){return _0x1f4d12;};return a209_0x1864();}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a209_0x5afdb9(0x121),'sh',a209_0x5afdb9(0x12c),a209_0x5afdb9(0x14a),a209_0x5afdb9(0x112),a209_0x5afdb9(0x13a),a209_0x5afdb9(0x131),'pwsh',a209_0x5afdb9(0x142),'nu',a209_0x5afdb9(0x13f),a209_0x5afdb9(0x133),a209_0x5afdb9(0x124)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a209_0x5afdb9(0x120),a209_0x5afdb9(0x138),a209_0x5afdb9(0x14b),'electron','treasure\x20studio']);function getProcessInfoWindows(_0x2787ae){const _0x11ed9f=a209_0x5afdb9;try{if(!Number['isInteger'](_0x2787ae)||_0x2787ae<=0x0)return null;const _0x4900db=_0x11ed9f(0x128)+_0x2787ae+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x5f48a9=execSync(_0x11ed9f(0x12f)+_0x4900db+'\x22',{'encoding':_0x11ed9f(0x117),'windowsHide':!![],'stdio':['pipe',_0x11ed9f(0x130),_0x11ed9f(0x130)]})[_0x11ed9f(0x116)]();if(!_0x5f48a9)return null;const [_0x1f6ddb,..._0x3ecbdb]=_0x5f48a9[_0x11ed9f(0x14e)](','),_0x7ae7e7=parseInt(_0x1f6ddb,0xa),_0x12d200=_0x3ecbdb[_0x11ed9f(0x12e)](',')[_0x11ed9f(0x116)]();if(isNaN(_0x7ae7e7)||!_0x12d200)return null;return{'pid':_0x2787ae,'ppid':_0x7ae7e7,'comm':_0x12d200[_0x11ed9f(0x14c)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x28b823){const _0x5de24f=a209_0x5afdb9;try{const _0x535643=0x400000;if(!Number[_0x5de24f(0x13c)](_0x28b823)||_0x28b823<=0x0||_0x28b823>_0x535643)return null;const _0x6b8e9f=execSync('ps\x20-p\x20'+_0x28b823+_0x5de24f(0x14d),{'encoding':'utf-8','stdio':_0x5de24f(0x130)})[_0x5de24f(0x116)](),[_0x5306e5,..._0x5e93ba]=_0x6b8e9f[_0x5de24f(0x14e)](/\s+/),_0x13bdf3=parseInt(_0x5306e5,0xa),_0x1b6c0a=_0x5e93ba['join']('\x20');if(isNaN(_0x13bdf3))return null;return{'pid':_0x28b823,'ppid':_0x13bdf3,'comm':_0x1b6c0a};}catch{return null;}}function getProcessInfo(_0x3908a4){const _0x27a346=a209_0x5afdb9;if(process['platform']===_0x27a346(0x11c))return getProcessInfoWindows(_0x3908a4);return getProcessInfoPosix(_0x3908a4);}function getBasename(_0x2224ee){const _0x3820aa=a209_0x5afdb9;return _0x2224ee[_0x3820aa(0x14c)](/^-/,'')['split']('/')[_0x3820aa(0x11a)]()?.['toLowerCase']()||'';}function isShell(_0x31310f){const _0x4f21d3=a209_0x5afdb9;return SHELL_NAMES[_0x4f21d3(0x143)](getBasename(_0x31310f));}function isEphemeralShellSpawner(_0x58a616){const _0x497a7c=a209_0x5afdb9;return EPHEMERAL_SHELL_SPAWNERS[_0x497a7c(0x143)](getBasename(_0x58a616));}let cachedShellPID;function findShellPID(){const _0x4c1faa=a209_0x5afdb9;if(process[_0x4c1faa(0x135)]===undefined)return process[_0x4c1faa(0x137)];let _0x53c76b=process[_0x4c1faa(0x135)];const _0x4980e0=0xa;let _0x159976=0x0;while(_0x159976<_0x4980e0){const _0x2e033c=getProcessInfo(_0x53c76b);if(!_0x2e033c)break;if(isShell(_0x2e033c['comm'])){const _0x54798c=getProcessInfo(_0x2e033c[_0x4c1faa(0x135)]);if(_0x54798c&&isEphemeralShellSpawner(_0x54798c[_0x4c1faa(0x136)])){_0x53c76b=_0x2e033c[_0x4c1faa(0x135)],_0x159976++;continue;}return _0x2e033c['pid'];}if(_0x2e033c[_0x4c1faa(0x135)]===0x0||_0x2e033c[_0x4c1faa(0x135)]===0x1){if(isShell(_0x2e033c[_0x4c1faa(0x136)]))return _0x2e033c[_0x4c1faa(0x137)];break;}_0x53c76b=_0x2e033c[_0x4c1faa(0x135)],_0x159976++;}return process[_0x4c1faa(0x135)]!==undefined?process['ppid']:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x20c5b4){const _0xf3e4d0=a209_0x5afdb9;if(!Number[_0xf3e4d0(0x13c)](_0x20c5b4)||_0x20c5b4<=0x0)return![];try{return process[_0xf3e4d0(0x11d)](_0x20c5b4,0x0),!![];}catch{return![];}}export function openBrowser(_0x5cce78){const _0x36695d=a209_0x5afdb9;let _0x572985;try{_0x572985=new URL(_0x5cce78);}catch{throw new Error(_0x36695d(0x115)+_0x5cce78);}if(_0x572985[_0x36695d(0x13e)]!==_0x36695d(0x11f)&&_0x572985[_0x36695d(0x13e)]!==_0x36695d(0x113))throw new Error(_0x36695d(0x127)+_0x572985[_0x36695d(0x13e)]);const _0x5a5f92=_0x572985[_0x36695d(0x114)],_0x3cacfd=process[_0x36695d(0x144)];if(_0x3cacfd===_0x36695d(0x11c))spawn(_0x36695d(0x148),['/c','start','',_0x5a5f92],{'detached':!![],'stdio':_0x36695d(0x134)})[_0x36695d(0x13b)]();else{const _0x12a4f6=_0x3cacfd===_0x36695d(0x11e)?_0x36695d(0x147):_0x36695d(0x11b);spawn(_0x12a4f6,[_0x5a5f92],{'detached':!![],'stdio':'ignore'})[_0x36695d(0x13b)]();}}export function isWindows(){const _0x25771f=a209_0x5afdb9;return process[_0x25771f(0x144)]===_0x25771f(0x11c);}export function getCrossSpawnOptions(_0x132b5d){return{..._0x132b5d??{},'shell':isWindows()};}export function escapeWindowsArg(_0x3e1b78){const _0xa955d9=a209_0x5afdb9;if(!/[ \t"&|<>^%!`\r\n]/[_0xa955d9(0x125)](_0x3e1b78))return _0x3e1b78;const _0x406351=_0x3e1b78[_0xa955d9(0x14c)](/"/g,'\x22\x22');return'\x22'+_0x406351+'\x22';}export function crossSpawn(_0x10b327,_0x3e9a5f,_0x4a04bd){const _0x556860=a209_0x5afdb9;if(isWindows()){const _0x259b90=escapeWindowsArg(_0x10b327),_0x1c873f=_0x3e9a5f[_0x556860(0x146)](escapeWindowsArg),_0x2f07e7=[_0x259b90,..._0x1c873f][_0x556860(0x12e)]('\x20');return spawn(_0x2f07e7,[],{..._0x4a04bd,'shell':!![]});}return spawn(_0x10b327,_0x3e9a5f,{..._0x4a04bd,'shell':![]});}export function gracefulExit(_0x37dc0d=0x0){const _0x562250=a209_0x5afdb9;isWindows()?setTimeout(()=>process['exit'](_0x37dc0d),0x32):process[_0x562250(0x12d)](_0x37dc0d);}function a209_0x1d14(_0xef5501,_0x481b00){_0xef5501=_0xef5501-0x112;const _0x1864a6=a209_0x1864();let _0x1d140c=_0x1864a6[_0xef5501];return _0x1d140c;}export function findExecutable(_0x56d6db,_0x47e059=0x1388){return new Promise(_0x43e004=>{const _0x90a54f=a209_0x1d14,_0x5f59fa=isWindows()?_0x90a54f(0x122):'which';let _0x1a2234=![];const _0x244679=crossSpawn(_0x5f59fa,[_0x56d6db],{'stdio':_0x90a54f(0x130),'shell':isWindows()}),_0x2654b4=setTimeout(()=>{!_0x1a2234&&(_0x1a2234=!![],_0x244679['kill'](),_0x43e004(null));},_0x47e059);let _0x54d6e8='';_0x244679[_0x90a54f(0x132)]?.['on']('data',_0x326a54=>{const _0x411509=_0x90a54f;_0x54d6e8+=_0x326a54[_0x411509(0x129)]();}),_0x244679['stderr']?.['on'](_0x90a54f(0x12a),()=>{}),_0x244679['on'](_0x90a54f(0x12d),_0x31b9f3=>{const _0x2183c3=_0x90a54f;if(_0x1a2234)return;_0x1a2234=!![],clearTimeout(_0x2654b4);if(_0x31b9f3===0x0&&_0x54d6e8[_0x2183c3(0x116)]()){const _0x4241f7=_0x54d6e8[_0x2183c3(0x116)]()[_0x2183c3(0x14e)](/\r?\n/)[0x0];_0x43e004(_0x4241f7);}else _0x43e004(null);}),_0x244679['on'](_0x90a54f(0x141),()=>{if(_0x1a2234)return;_0x1a2234=!![],clearTimeout(_0x2654b4),_0x43e004(null);});});}
1
+ const a227_0x37d2fc=a227_0x222a;(function(_0x1be22a,_0x205675){const _0x13d49e=a227_0x222a,_0x238980=_0x1be22a();while(!![]){try{const _0x3ac2b7=parseInt(_0x13d49e(0x116))/0x1*(parseInt(_0x13d49e(0x115))/0x2)+-parseInt(_0x13d49e(0x138))/0x3*(parseInt(_0x13d49e(0x130))/0x4)+parseInt(_0x13d49e(0x119))/0x5*(-parseInt(_0x13d49e(0x135))/0x6)+-parseInt(_0x13d49e(0x13f))/0x7+-parseInt(_0x13d49e(0x11a))/0x8*(-parseInt(_0x13d49e(0x148))/0x9)+-parseInt(_0x13d49e(0x12c))/0xa*(-parseInt(_0x13d49e(0x132))/0xb)+-parseInt(_0x13d49e(0x121))/0xc*(parseInt(_0x13d49e(0x124))/0xd);if(_0x3ac2b7===_0x205675)break;else _0x238980['push'](_0x238980['shift']());}catch(_0x3444bf){_0x238980['push'](_0x238980['shift']());}}}(a227_0x4492,0xd36e4));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash','zsh','sh',a227_0x37d2fc(0x12a),a227_0x37d2fc(0x131),a227_0x37d2fc(0x140),a227_0x37d2fc(0x12f),a227_0x37d2fc(0x13c),a227_0x37d2fc(0x13a),'powershell','nu',a227_0x37d2fc(0x139),'elvish',a227_0x37d2fc(0x149)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a227_0x37d2fc(0x13d),a227_0x37d2fc(0x146),'cursor',a227_0x37d2fc(0x111),a227_0x37d2fc(0x147)]);function a227_0x4492(){const _0x470ae8=['exit','isInteger','replace','cmd.exe','252QfFhne','map','ignore','140153ZlUpVi','comm','toLowerCase','darwin','kill','split','fish','utf-8','3733290krGtyM','where.exe','xdg-open','csh','860lNbRor','ksh','33gbCstv','has','ps\x20-p\x20','106986nmKOGo','ppid','trim','19647eqntdx','ion','pwsh','unref','dash','claude','stderr','6512247sVteCV','tcsh','platform','pop','Invalid\x20URL:\x20','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','error','code','treasure\x20studio','9607581Cuyqun','xonsh','protocol','pipe','win32','electron','toString','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','pid','29038OJwFGZ','93mhyMaa','data','join','30kmBSJK','8XnNsFb','start','href'];a227_0x4492=function(){return _0x470ae8;};return a227_0x4492();}function getProcessInfoWindows(_0x356ea1){const _0x151e46=a227_0x37d2fc;try{if(!Number[_0x151e46(0x11e)](_0x356ea1)||_0x356ea1<=0x0)return null;const _0x54b061=_0x151e46(0x144)+_0x356ea1+_0x151e46(0x113),_0x20e717=execSync('powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22'+_0x54b061+'\x22',{'encoding':_0x151e46(0x12b),'windowsHide':!![],'stdio':[_0x151e46(0x10f),_0x151e46(0x10f),_0x151e46(0x10f)]})[_0x151e46(0x137)]();if(!_0x20e717)return null;const [_0x4558bf,..._0x32bbd6]=_0x20e717[_0x151e46(0x129)](','),_0x1374c7=parseInt(_0x4558bf,0xa),_0x10ccd1=_0x32bbd6[_0x151e46(0x118)](',')[_0x151e46(0x137)]();if(isNaN(_0x1374c7)||!_0x10ccd1)return null;return{'pid':_0x356ea1,'ppid':_0x1374c7,'comm':_0x10ccd1[_0x151e46(0x11f)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x292fd6){const _0x5070c9=a227_0x37d2fc;try{const _0x2f5603=0x400000;if(!Number[_0x5070c9(0x11e)](_0x292fd6)||_0x292fd6<=0x0||_0x292fd6>_0x2f5603)return null;const _0x53cc5f=execSync(_0x5070c9(0x134)+_0x292fd6+'\x20-o\x20ppid=,comm=',{'encoding':_0x5070c9(0x12b),'stdio':_0x5070c9(0x10f)})[_0x5070c9(0x137)](),[_0x28de80,..._0x399ba8]=_0x53cc5f['split'](/\s+/),_0x4c8e2b=parseInt(_0x28de80,0xa),_0x51ffad=_0x399ba8[_0x5070c9(0x118)]('\x20');if(isNaN(_0x4c8e2b))return null;return{'pid':_0x292fd6,'ppid':_0x4c8e2b,'comm':_0x51ffad};}catch{return null;}}function getProcessInfo(_0x2a8844){const _0x5f63d2=a227_0x37d2fc;if(process['platform']===_0x5f63d2(0x110))return getProcessInfoWindows(_0x2a8844);return getProcessInfoPosix(_0x2a8844);}function getBasename(_0x158420){const _0x49f1c1=a227_0x37d2fc;return _0x158420['replace'](/^-/,'')['split']('/')[_0x49f1c1(0x142)]()?.[_0x49f1c1(0x126)]()||'';}function isShell(_0x300a19){const _0x28c076=a227_0x37d2fc;return SHELL_NAMES[_0x28c076(0x133)](getBasename(_0x300a19));}function isEphemeralShellSpawner(_0x1008a8){const _0x5a8b0d=a227_0x37d2fc;return EPHEMERAL_SHELL_SPAWNERS[_0x5a8b0d(0x133)](getBasename(_0x1008a8));}let cachedShellPID;function findShellPID(){const _0x2c0a4a=a227_0x37d2fc;if(process[_0x2c0a4a(0x136)]===undefined)return process[_0x2c0a4a(0x114)];let _0x44928a=process[_0x2c0a4a(0x136)];const _0x21f417=0xa;let _0x1af871=0x0;while(_0x1af871<_0x21f417){const _0x27606c=getProcessInfo(_0x44928a);if(!_0x27606c)break;if(isShell(_0x27606c[_0x2c0a4a(0x125)])){const _0x2d1b3c=getProcessInfo(_0x27606c['ppid']);if(_0x2d1b3c&&isEphemeralShellSpawner(_0x2d1b3c[_0x2c0a4a(0x125)])){_0x44928a=_0x27606c[_0x2c0a4a(0x136)],_0x1af871++;continue;}return _0x27606c[_0x2c0a4a(0x114)];}if(_0x27606c[_0x2c0a4a(0x136)]===0x0||_0x27606c[_0x2c0a4a(0x136)]===0x1){if(isShell(_0x27606c[_0x2c0a4a(0x125)]))return _0x27606c[_0x2c0a4a(0x114)];break;}_0x44928a=_0x27606c['ppid'],_0x1af871++;}return process[_0x2c0a4a(0x136)]!==undefined?process[_0x2c0a4a(0x136)]:process[_0x2c0a4a(0x114)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4e5466){const _0x3503aa=a227_0x37d2fc;if(!Number[_0x3503aa(0x11e)](_0x4e5466)||_0x4e5466<=0x0)return![];try{return process[_0x3503aa(0x128)](_0x4e5466,0x0),!![];}catch{return![];}}export function openBrowser(_0x470168){const _0x23871b=a227_0x37d2fc;let _0xad7977;try{_0xad7977=new URL(_0x470168);}catch{throw new Error(_0x23871b(0x143)+_0x470168);}if(_0xad7977[_0x23871b(0x10e)]!=='http:'&&_0xad7977['protocol']!=='https:')throw new Error('Unsupported\x20protocol:\x20'+_0xad7977['protocol']);const _0x3af30a=_0xad7977[_0x23871b(0x11c)],_0x3e0641=process[_0x23871b(0x141)];if(_0x3e0641===_0x23871b(0x110))spawn(_0x23871b(0x120),['/c',_0x23871b(0x11b),'',_0x3af30a],{'detached':!![],'stdio':_0x23871b(0x123)})['unref']();else{const _0xb6d38e=_0x3e0641===_0x23871b(0x127)?'open':_0x23871b(0x12e);spawn(_0xb6d38e,[_0x3af30a],{'detached':!![],'stdio':_0x23871b(0x123)})[_0x23871b(0x13b)]();}}export function isWindows(){const _0x2a8164=a227_0x37d2fc;return process[_0x2a8164(0x141)]===_0x2a8164(0x110);}export function getCrossSpawnOptions(_0x5e09a3){return{..._0x5e09a3??{},'shell':isWindows()};}export function escapeWindowsArg(_0x59dd6d){const _0x4113ed=a227_0x37d2fc;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x59dd6d))return _0x59dd6d;const _0x2384da=_0x59dd6d[_0x4113ed(0x11f)](/"/g,'\x22\x22');return'\x22'+_0x2384da+'\x22';}function a227_0x222a(_0x4584b4,_0x305f7c){_0x4584b4=_0x4584b4-0x10e;const _0x449223=a227_0x4492();let _0x222a7a=_0x449223[_0x4584b4];return _0x222a7a;}export function crossSpawn(_0x1631f,_0x269def,_0xd3faa3){const _0x3f2d79=a227_0x37d2fc;if(isWindows()){const _0x3818a4=escapeWindowsArg(_0x1631f),_0x1f651d=_0x269def[_0x3f2d79(0x122)](escapeWindowsArg),_0x13ae90=[_0x3818a4,..._0x1f651d]['join']('\x20');return spawn(_0x13ae90,[],{..._0xd3faa3,'shell':!![]});}return spawn(_0x1631f,_0x269def,{..._0xd3faa3,'shell':![]});}export function gracefulExit(_0x2b3f3e=0x0){const _0x28c955=a227_0x37d2fc;isWindows()?setTimeout(()=>process[_0x28c955(0x11d)](_0x2b3f3e),0x32):process[_0x28c955(0x11d)](_0x2b3f3e);}export function findExecutable(_0x1d5f69,_0x5be3b5=0x1388){return new Promise(_0x33fd08=>{const _0x4694e0=a227_0x222a,_0x1269f0=isWindows()?_0x4694e0(0x12d):'which';let _0x367110=![];const _0x3691f3=crossSpawn(_0x1269f0,[_0x1d5f69],{'stdio':_0x4694e0(0x10f),'shell':isWindows()}),_0x38fefd=setTimeout(()=>{const _0x149b61=_0x4694e0;!_0x367110&&(_0x367110=!![],_0x3691f3[_0x149b61(0x128)](),_0x33fd08(null));},_0x5be3b5);let _0x34f3f0='';_0x3691f3['stdout']?.['on'](_0x4694e0(0x117),_0x57eaf2=>{const _0x5dd7e5=_0x4694e0;_0x34f3f0+=_0x57eaf2[_0x5dd7e5(0x112)]();}),_0x3691f3[_0x4694e0(0x13e)]?.['on'](_0x4694e0(0x117),()=>{}),_0x3691f3['on'](_0x4694e0(0x11d),_0x3dc897=>{const _0x168bed=_0x4694e0;if(_0x367110)return;_0x367110=!![],clearTimeout(_0x38fefd);if(_0x3dc897===0x0&&_0x34f3f0['trim']()){const _0x25642a=_0x34f3f0[_0x168bed(0x137)]()['split'](/\r?\n/)[0x0];_0x33fd08(_0x25642a);}else _0x33fd08(null);}),_0x3691f3['on'](_0x4694e0(0x145),()=>{if(_0x367110)return;_0x367110=!![],clearTimeout(_0x38fefd),_0x33fd08(null);});});}
@@ -1 +1 @@
1
- (function(_0xddcf5b,_0xb12bd3){const _0x6d8a62=a210_0x58df,_0x55c3b8=_0xddcf5b();while(!![]){try{const _0x577dca=-parseInt(_0x6d8a62(0x1bb))/0x1+-parseInt(_0x6d8a62(0x1bd))/0x2*(-parseInt(_0x6d8a62(0x1be))/0x3)+parseInt(_0x6d8a62(0x1b0))/0x4+parseInt(_0x6d8a62(0x1bf))/0x5+parseInt(_0x6d8a62(0x1c4))/0x6*(parseInt(_0x6d8a62(0x1bc))/0x7)+-parseInt(_0x6d8a62(0x1b6))/0x8+-parseInt(_0x6d8a62(0x1c2))/0x9;if(_0x577dca===_0xb12bd3)break;else _0x55c3b8['push'](_0x55c3b8['shift']());}catch(_0x321917){_0x55c3b8['push'](_0x55c3b8['shift']());}}}(a210_0x91c1,0xdb4ec));import*as a210_0x3c7698 from'readline';function a210_0x58df(_0x391170,_0x45dfd4){_0x391170=_0x391170-0x1ad;const _0x91c13e=a210_0x91c1();let _0x58df66=_0x91c13e[_0x391170];return _0x58df66;}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x5e4de9=a210_0x58df;return process[_0x5e4de9(0x1b8)]['isTTY']===!![];}export async function confirm(_0x427d84){const _0x4d7cfb=a210_0x58df,_0x279cd1=a210_0x3c7698[_0x4d7cfb(0x1af)]({'input':process['stdin'],'output':process[_0x4d7cfb(0x1b5)]});return new Promise(_0x2ab7b6=>{_0x279cd1['question'](_0x427d84+'\x20(y/N):\x20',_0x521871=>{const _0x3c06a0=a210_0x58df;_0x279cd1[_0x3c06a0(0x1b4)](),_0x2ab7b6(_0x521871['toLowerCase']()==='y'||_0x521871[_0x3c06a0(0x1b2)]()==='yes');});});}export async function confirmKey(_0x197960){const _0x45052c=a210_0x58df;if(!process[_0x45052c(0x1b8)]['isTTY'])return![];return process[_0x45052c(0x1ba)][_0x45052c(0x1b9)](_0x197960+_0x45052c(0x1b3)),new Promise(_0x3f0440=>{const _0x58cc91=_0x45052c,_0x539c8a=process[_0x58cc91(0x1b8)];_0x539c8a[_0x58cc91(0x1b1)](!![]),_0x539c8a[_0x58cc91(0x1c3)](),_0x539c8a[_0x58cc91(0x1ae)](_0x58cc91(0x1c1));const _0x31394a=_0x2fc757=>{const _0x314e91=_0x58cc91;_0x539c8a[_0x314e91(0x1b1)](![]),_0x539c8a[_0x314e91(0x1c0)](),_0x539c8a[_0x314e91(0x1ad)](_0x314e91(0x1b7),_0x31394a);if(_0x2fc757==='\x1b'){process[_0x314e91(0x1ba)][_0x314e91(0x1b9)]('\x0a'),_0x3f0440(![]);return;}_0x2fc757==='\x03'&&(process[_0x314e91(0x1ba)]['write']('\x0a'),gracefulExit(0x82));if(_0x2fc757[_0x314e91(0x1b2)]()==='y'){process['stderr'][_0x314e91(0x1b9)]('y\x0a'),_0x3f0440(!![]);return;}process[_0x314e91(0x1ba)][_0x314e91(0x1b9)]('\x0a'),_0x3f0440(![]);};_0x539c8a['on'](_0x58cc91(0x1b7),_0x31394a);});}function a210_0x91c1(){const _0x2b676a=['11187183LXYBtU','1107774jnkuew','3rznjUY','6516975RahyvJ','pause','utf8','22012308FylOFz','resume','6ktiEqG','removeListener','setEncoding','createInterface','1948728QCAtrW','setRawMode','toLowerCase','\x20[y/N]\x20','close','stdout','2250848VCLBQj','data','stdin','write','stderr','317181BQWSuo'];a210_0x91c1=function(){return _0x2b676a;};return a210_0x91c1();}
1
+ (function(_0xe195e,_0x5a0375){const _0x3f9d06=a228_0x6abd,_0x53835d=_0xe195e();while(!![]){try{const _0xc8df3e=-parseInt(_0x3f9d06(0x195))/0x1+-parseInt(_0x3f9d06(0x1aa))/0x2+parseInt(_0x3f9d06(0x1ab))/0x3+parseInt(_0x3f9d06(0x19e))/0x4+parseInt(_0x3f9d06(0x194))/0x5+-parseInt(_0x3f9d06(0x1a2))/0x6+-parseInt(_0x3f9d06(0x196))/0x7;if(_0xc8df3e===_0x5a0375)break;else _0x53835d['push'](_0x53835d['shift']());}catch(_0xb8b868){_0x53835d['push'](_0x53835d['shift']());}}}(a228_0x52dc,0xf27bb));import*as a228_0x162885 from'readline';function a228_0x6abd(_0x3d0634,_0x2bcc2e){_0x3d0634=_0x3d0634-0x194;const _0x52dcba=a228_0x52dc();let _0x6abd2c=_0x52dcba[_0x3d0634];return _0x6abd2c;}function a228_0x52dc(){const _0x5522d6=['437196kjljkw','yes','isTTY','utf8','createInterface','\x20(y/N):\x20','toLowerCase','question','1239284BsNIKq','5200611CJqkND','9923205znSGkA','848460ZLBVIe','19259716StUhoM','\x20[y/N]\x20','resume','close','removeListener','setRawMode','stdin','write','6269556MsGoXl','setEncoding','stderr','data'];a228_0x52dc=function(){return _0x5522d6;};return a228_0x52dc();}import{gracefulExit}from'./process.js';export function isInteractive(){return process['stdin']['isTTY']===!![];}export async function confirm(_0x649f9d){const _0x4f338e=a228_0x6abd,_0x5bb9fd=a228_0x162885[_0x4f338e(0x1a6)]({'input':process[_0x4f338e(0x19c)],'output':process['stdout']});return new Promise(_0x211ea7=>{const _0x4100ea=_0x4f338e;_0x5bb9fd[_0x4100ea(0x1a9)](_0x649f9d+_0x4100ea(0x1a7),_0x50d8f8=>{const _0x1fcac4=_0x4100ea;_0x5bb9fd[_0x1fcac4(0x199)](),_0x211ea7(_0x50d8f8[_0x1fcac4(0x1a8)]()==='y'||_0x50d8f8['toLowerCase']()===_0x1fcac4(0x1a3));});});}export async function confirmKey(_0x2bbe8f){const _0x191907=a228_0x6abd;if(!process[_0x191907(0x19c)][_0x191907(0x1a4)])return![];return process[_0x191907(0x1a0)][_0x191907(0x19d)](_0x2bbe8f+_0x191907(0x197)),new Promise(_0x34c427=>{const _0x3da9d1=_0x191907,_0x2a33f2=process[_0x3da9d1(0x19c)];_0x2a33f2[_0x3da9d1(0x19b)](!![]),_0x2a33f2[_0x3da9d1(0x198)](),_0x2a33f2[_0x3da9d1(0x19f)](_0x3da9d1(0x1a5));const _0x9cc01f=_0x5683a9=>{const _0x56b64e=_0x3da9d1;_0x2a33f2[_0x56b64e(0x19b)](![]),_0x2a33f2['pause'](),_0x2a33f2[_0x56b64e(0x19a)]('data',_0x9cc01f);if(_0x5683a9==='\x1b'){process[_0x56b64e(0x1a0)][_0x56b64e(0x19d)]('\x0a'),_0x34c427(![]);return;}_0x5683a9==='\x03'&&(process['stderr'][_0x56b64e(0x19d)]('\x0a'),gracefulExit(0x82));if(_0x5683a9[_0x56b64e(0x1a8)]()==='y'){process[_0x56b64e(0x1a0)][_0x56b64e(0x19d)]('y\x0a'),_0x34c427(!![]);return;}process[_0x56b64e(0x1a0)][_0x56b64e(0x19d)]('\x0a'),_0x34c427(![]);};_0x2a33f2['on'](_0x3da9d1(0x1a1),_0x9cc01f);});}
@@ -1 +1 @@
1
- (function(_0x1221bf,_0x231af5){const _0x520fe2=a211_0x8ae8,_0x2893e1=_0x1221bf();while(!![]){try{const _0x32a02a=parseInt(_0x520fe2(0x15d))/0x1+parseInt(_0x520fe2(0x14b))/0x2*(parseInt(_0x520fe2(0x15b))/0x3)+parseInt(_0x520fe2(0x149))/0x4+parseInt(_0x520fe2(0x14a))/0x5+-parseInt(_0x520fe2(0x145))/0x6*(parseInt(_0x520fe2(0x14d))/0x7)+-parseInt(_0x520fe2(0x15c))/0x8+-parseInt(_0x520fe2(0x148))/0x9;if(_0x32a02a===_0x231af5)break;else _0x2893e1['push'](_0x2893e1['shift']());}catch(_0x2f1c59){_0x2893e1['push'](_0x2893e1['shift']());}}}(a211_0x20bb,0xa9fa6));import a211_0x39040f from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x4a4901,_0x5360f1={}){const _0xe8c46=a211_0x8ae8,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x5360f1;return a211_0x39040f({'text':_0x4a4901,'color':_0xe8c46(0x15a),'stream':process['stderr'],'isEnabled':forceEnabled||process[_0xe8c46(0x151)][_0xe8c46(0x152)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x1259fc,_0x510707,_0xc2baeb={}){const _0x50cb67=a211_0x8ae8,_0x1ae20c=_0xc2baeb[_0x50cb67(0x150)]??(()=>Date['now']()),_0x83b840=createCommandSpinner(_0x1259fc,_0xc2baeb);_0x83b840[_0x50cb67(0x14f)]();const _0x3b922f=_0x1ae20c();try{const _0x1dac90=await _0x510707(),_0x5b8983=_0x1ae20c()-_0x3b922f;return _0x83b840[_0x50cb67(0x153)](),{'data':_0x1dac90,'elapsedMs':_0x5b8983};}catch(_0x3d795b){_0x83b840['stop']();throw _0x3d795b;}}export async function withProgressSpinner(_0x55561a,_0x370931,_0x57814d={}){const _0x850d6f=a211_0x8ae8,_0x39504d=_0x57814d[_0x850d6f(0x150)]??(()=>Date[_0x850d6f(0x14e)]()),_0x43e2f0=_0x57814d[_0x850d6f(0x146)]??setInterval,_0x1459a6=createCommandSpinner(_0x55561a,_0x57814d);_0x1459a6[_0x850d6f(0x14f)]();const _0x42d038=_0x39504d(),_0x5ac739=_0x55561a[_0x850d6f(0x154)](_0x850d6f(0x156),'')[_0x850d6f(0x159)]()||'Processing',_0x41cc3a={};let _0x32b055=_0x55561a;const _0xa0fe83=()=>{const _0x2b3a1e=_0x850d6f;if(!_0x1459a6[_0x2b3a1e(0x158)])return;const _0x39cf8b=_0x39504d()-_0x42d038,_0x491e83=formatElapsed(_0x39cf8b),_0x4df11f=_0x41cc3a['phase']?.['trim']()||_0x5ac739,_0x5262ae=_0x41cc3a[_0x2b3a1e(0x147)]?_0x2b3a1e(0x157)+_0x41cc3a[_0x2b3a1e(0x147)]+']':'',_0x12cc7a=_0x41cc3a[_0x2b3a1e(0x155)]?'\x20'+_0x41cc3a['extra']:'',_0x327813=_0x4df11f+'\x20'+_0x491e83+_0x12cc7a+_0x5262ae;_0x327813!==_0x32b055&&_0x327813[_0x2b3a1e(0x159)]()&&(_0x1459a6[_0x2b3a1e(0x144)]=_0x327813,_0x32b055=_0x327813);},_0x1f3b03=_0x43e2f0(()=>{_0xa0fe83();},0x3e8),_0x39db2b={'setPhase':_0x233187=>{const _0x428e9d=_0x850d6f;_0x41cc3a[_0x428e9d(0x14c)]=_0x233187;const _0x525ff2=_0x233187?.['trim']()||_0x5ac739,_0x55683e=_0x39504d()-_0x42d038,_0xa49796=formatElapsed(_0x55683e),_0x153ef1=_0x41cc3a[_0x428e9d(0x147)]?_0x428e9d(0x157)+_0x41cc3a[_0x428e9d(0x147)]+']':'',_0x570189=_0x41cc3a['extra']?'\x20'+_0x41cc3a[_0x428e9d(0x155)]:'',_0x4c7143=_0x525ff2+'\x20'+_0xa49796+_0x570189+_0x153ef1;_0x1459a6['isSpinning']&&_0x4c7143[_0x428e9d(0x159)]()&&(_0x1459a6[_0x428e9d(0x144)]=_0x4c7143,_0x32b055=_0x4c7143);},'setJobId':_0x3bd7fe=>{const _0x50eb4f=_0x850d6f;_0x41cc3a[_0x50eb4f(0x147)]=_0x3bd7fe,_0xa0fe83();},'setExtra':_0x363513=>{_0x41cc3a['extra']=_0x363513,_0xa0fe83();}};_0xa0fe83();try{const _0x1051e7=await _0x370931(_0x39db2b),_0x40d6b1=_0x39504d()-_0x42d038;return{'data':_0x1051e7,'elapsedMs':_0x40d6b1};}finally{clearInterval(_0x1f3b03),_0x1459a6[_0x850d6f(0x153)]();}}function a211_0x20bb(){const _0x1fa6eb=['673482mLtSTJ','intervalFactory','jobId','11323764gNWDST','3377340mexqwC','1040625UrclGQ','18354oFDwSW','phase','7aLtNDD','now','start','clock','stderr','isTTY','stop','replace','extra','...','\x20[Job\x20ID:\x20','isSpinning','trim','cyan','306GgkScu','1515600aBkgAX','267609CRTwLp','text'];a211_0x20bb=function(){return _0x1fa6eb;};return a211_0x20bb();}function a211_0x8ae8(_0x3a8dff,_0xad2a9f){_0x3a8dff=_0x3a8dff-0x144;const _0x20bb99=a211_0x20bb();let _0x8ae895=_0x20bb99[_0x3a8dff];return _0x8ae895;}export function formatElapsed(_0xdc670e){const _0xed98fe=Math['floor'](_0xdc670e/0x3e8);if(_0xed98fe<0x3c)return(_0xdc670e/0x3e8)['toFixed'](0x1)+'s';const _0x5039bd=Math['floor'](_0xed98fe/0x3c),_0x167654=_0xed98fe%0x3c;if(_0x5039bd<0x3c)return _0x5039bd+'m\x20'+_0x167654+'s';const _0x5c04c5=Math['floor'](_0x5039bd/0x3c),_0x2d85d6=_0x5039bd%0x3c;return _0x5c04c5+'h\x20'+_0x2d85d6+'m';}
1
+ (function(_0x321e6b,_0x4a8a0c){const _0x2d9da0=a229_0x43ff,_0x4e8d66=_0x321e6b();while(!![]){try{const _0x26dddb=-parseInt(_0x2d9da0(0x1d4))/0x1+parseInt(_0x2d9da0(0x1d3))/0x2+-parseInt(_0x2d9da0(0x1d5))/0x3+-parseInt(_0x2d9da0(0x1d9))/0x4*(parseInt(_0x2d9da0(0x1ce))/0x5)+parseInt(_0x2d9da0(0x1c8))/0x6+parseInt(_0x2d9da0(0x1c1))/0x7*(parseInt(_0x2d9da0(0x1c5))/0x8)+-parseInt(_0x2d9da0(0x1c4))/0x9;if(_0x26dddb===_0x4a8a0c)break;else _0x4e8d66['push'](_0x4e8d66['shift']());}catch(_0x19fd04){_0x4e8d66['push'](_0x4e8d66['shift']());}}}(a229_0x57e5,0xd0dce));function a229_0x57e5(){const _0x4cadf6=['start','\x20[Job\x20ID:\x20','extra','24005YyvYjJ','phase','intervalFactory','stderr','replace','2138044tmLXVJ','568163pcAVvJ','338685cKAkOa','Processing','...','cyan','796boHMqQ','text','jobId','isSpinning','8004752xOpHDt','floor','trim','2674656iZyuZR','8BfMqOV','stop','clock','3459510inCYya','isTTY','toFixed'];a229_0x57e5=function(){return _0x4cadf6;};return a229_0x57e5();}import a229_0x362ae3 from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x11f771,_0x90ff7e={}){const _0x50e732=a229_0x43ff,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x90ff7e;return a229_0x362ae3({'text':_0x11f771,'color':_0x50e732(0x1d8),'stream':process[_0x50e732(0x1d1)],'isEnabled':forceEnabled||process['stderr'][_0x50e732(0x1c9)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0xc38a8,_0x318930,_0x3daa42={}){const _0x5a3380=a229_0x43ff,_0x2f7b4c=_0x3daa42[_0x5a3380(0x1c7)]??(()=>Date['now']()),_0x2b1ab4=createCommandSpinner(_0xc38a8,_0x3daa42);_0x2b1ab4[_0x5a3380(0x1cb)]();const _0x834cc0=_0x2f7b4c();try{const _0x2ec66d=await _0x318930(),_0x55a599=_0x2f7b4c()-_0x834cc0;return _0x2b1ab4[_0x5a3380(0x1c6)](),{'data':_0x2ec66d,'elapsedMs':_0x55a599};}catch(_0xb732d4){_0x2b1ab4[_0x5a3380(0x1c6)]();throw _0xb732d4;}}export async function withProgressSpinner(_0x51aae9,_0x5ad36c,_0xfa7083={}){const _0x292e48=a229_0x43ff,_0x3c488a=_0xfa7083['clock']??(()=>Date['now']()),_0x1c934d=_0xfa7083[_0x292e48(0x1d0)]??setInterval,_0x49bedc=createCommandSpinner(_0x51aae9,_0xfa7083);_0x49bedc[_0x292e48(0x1cb)]();const _0x4049ae=_0x3c488a(),_0x25e79b=_0x51aae9[_0x292e48(0x1d2)](_0x292e48(0x1d7),'')['trim']()||_0x292e48(0x1d6),_0x4131af={};let _0x1bd3ae=_0x51aae9;const _0xc8d23d=()=>{const _0x66f78=_0x292e48;if(!_0x49bedc['isSpinning'])return;const _0x2110e2=_0x3c488a()-_0x4049ae,_0x12170a=formatElapsed(_0x2110e2),_0x529d01=_0x4131af[_0x66f78(0x1cf)]?.[_0x66f78(0x1c3)]()||_0x25e79b,_0x4bc4b5=_0x4131af[_0x66f78(0x1db)]?_0x66f78(0x1cc)+_0x4131af[_0x66f78(0x1db)]+']':'',_0x10971c=_0x4131af[_0x66f78(0x1cd)]?'\x20'+_0x4131af['extra']:'',_0xc41e25=_0x529d01+'\x20'+_0x12170a+_0x10971c+_0x4bc4b5;_0xc41e25!==_0x1bd3ae&&_0xc41e25[_0x66f78(0x1c3)]()&&(_0x49bedc['text']=_0xc41e25,_0x1bd3ae=_0xc41e25);},_0x254414=_0x1c934d(()=>{_0xc8d23d();},0x3e8),_0x17a69a={'setPhase':_0x123345=>{const _0x1151c6=_0x292e48;_0x4131af['phase']=_0x123345;const _0x43162a=_0x123345?.[_0x1151c6(0x1c3)]()||_0x25e79b,_0x2d143c=_0x3c488a()-_0x4049ae,_0x2b4df8=formatElapsed(_0x2d143c),_0x56ffe4=_0x4131af['jobId']?_0x1151c6(0x1cc)+_0x4131af[_0x1151c6(0x1db)]+']':'',_0x41777c=_0x4131af['extra']?'\x20'+_0x4131af[_0x1151c6(0x1cd)]:'',_0x5f29e2=_0x43162a+'\x20'+_0x2b4df8+_0x41777c+_0x56ffe4;_0x49bedc[_0x1151c6(0x1c0)]&&_0x5f29e2[_0x1151c6(0x1c3)]()&&(_0x49bedc[_0x1151c6(0x1da)]=_0x5f29e2,_0x1bd3ae=_0x5f29e2);},'setJobId':_0x2c561a=>{_0x4131af['jobId']=_0x2c561a,_0xc8d23d();},'setExtra':_0x306cc8=>{const _0x1cad28=_0x292e48;_0x4131af[_0x1cad28(0x1cd)]=_0x306cc8,_0xc8d23d();}};_0xc8d23d();try{const _0x43f0ff=await _0x5ad36c(_0x17a69a),_0xbedf34=_0x3c488a()-_0x4049ae;return{'data':_0x43f0ff,'elapsedMs':_0xbedf34};}finally{clearInterval(_0x254414),_0x49bedc['stop']();}}function a229_0x43ff(_0x33917d,_0x237df2){_0x33917d=_0x33917d-0x1c0;const _0x57e596=a229_0x57e5();let _0x43fff4=_0x57e596[_0x33917d];return _0x43fff4;}export function formatElapsed(_0xc488ca){const _0x2698db=a229_0x43ff,_0x3e0e7a=Math[_0x2698db(0x1c2)](_0xc488ca/0x3e8);if(_0x3e0e7a<0x3c)return(_0xc488ca/0x3e8)[_0x2698db(0x1ca)](0x1)+'s';const _0x2a05fd=Math[_0x2698db(0x1c2)](_0x3e0e7a/0x3c),_0x2c9869=_0x3e0e7a%0x3c;if(_0x2a05fd<0x3c)return _0x2a05fd+'m\x20'+_0x2c9869+'s';const _0x5048d9=Math[_0x2698db(0x1c2)](_0x2a05fd/0x3c),_0x18a9bd=_0x2a05fd%0x3c;return _0x5048d9+'h\x20'+_0x18a9bd+'m';}