@treasuredata/tdx 2026.3.8 → 2026.3.10

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 (217) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/cli.js.map +1 -1
  6. package/dist/commands/activations.js +1 -1
  7. package/dist/commands/agent-command.js +1 -1
  8. package/dist/commands/agent-test-command.js +1 -1
  9. package/dist/commands/api-command.js +1 -1
  10. package/dist/commands/auth-command.js +1 -1
  11. package/dist/commands/auth-login-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.d.ts.map +1 -1
  55. package/dist/commands/workflow-command.js +1 -1
  56. package/dist/commands/workflow-command.js.map +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.d.ts +2 -2
  67. package/dist/core/oauth.js +1 -1
  68. package/dist/core/profile.js +1 -1
  69. package/dist/core/profile.js.map +1 -1
  70. package/dist/core/project-config.js +1 -1
  71. package/dist/core/session.js +1 -1
  72. package/dist/core/user-cache.js +1 -1
  73. package/dist/core/version.js +1 -1
  74. package/dist/index.js +1 -1
  75. package/dist/mcp/server.js +1 -1
  76. package/dist/mcp/tools/index.js +1 -1
  77. package/dist/mcp/tools/tdx-run.js +1 -1
  78. package/dist/mcp/tools/tdx-search.js +1 -1
  79. package/dist/mcp/utils.js +1 -1
  80. package/dist/proxy/claude-usage-tracker.js +1 -1
  81. package/dist/proxy/passthrough-server.js +1 -1
  82. package/dist/proxy/sse-usage-parser.js +1 -1
  83. package/dist/sdk/agent/agent-config.js +1 -1
  84. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  85. package/dist/sdk/agent/agent-yaml.js +1 -1
  86. package/dist/sdk/agent/test/evaluator.js +1 -1
  87. package/dist/sdk/agent/test/executor.js +1 -1
  88. package/dist/sdk/agent/test/index.js +1 -1
  89. package/dist/sdk/agent/test/output.js +1 -1
  90. package/dist/sdk/agent/test/parser.js +1 -1
  91. package/dist/sdk/agent/tool-target-registry.js +1 -1
  92. package/dist/sdk/api.js +1 -1
  93. package/dist/sdk/client/cdp-api-client.js +1 -1
  94. package/dist/sdk/client/delivery-api-client.js +1 -1
  95. package/dist/sdk/client/endpoints.js +1 -1
  96. package/dist/sdk/client/endpoints.js.map +1 -1
  97. package/dist/sdk/client/engage-api-client.js +1 -1
  98. package/dist/sdk/client/http-client.js +1 -1
  99. package/dist/sdk/client/llm-api-client.js +1 -1
  100. package/dist/sdk/client/oauth-refresh.d.ts +1 -1
  101. package/dist/sdk/client/oauth-refresh.js +1 -1
  102. package/dist/sdk/client/rate-limiter.js +1 -1
  103. package/dist/sdk/client/td-api-client.js +1 -1
  104. package/dist/sdk/client/trino-api-client.js +1 -1
  105. package/dist/sdk/client/workflow-client.js +1 -1
  106. package/dist/sdk/connection-validator.js +1 -1
  107. package/dist/sdk/connection.js +1 -1
  108. package/dist/sdk/delivery.js +1 -1
  109. package/dist/sdk/engage/campaign-pull.js +1 -1
  110. package/dist/sdk/engage/campaign-push.js +1 -1
  111. package/dist/sdk/engage/campaign-validator.js +1 -1
  112. package/dist/sdk/engage/campaign-yaml.js +1 -1
  113. package/dist/sdk/engage/template-pull.js +1 -1
  114. package/dist/sdk/engage/template-push.js +1 -1
  115. package/dist/sdk/engage/template-validator.js +1 -1
  116. package/dist/sdk/engage/template-yaml.js +1 -1
  117. package/dist/sdk/engage/types/campaign-def.js +1 -1
  118. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  119. package/dist/sdk/engage/types/template-schema.js +1 -1
  120. package/dist/sdk/engage.js +1 -1
  121. package/dist/sdk/errors.d.ts +2 -0
  122. package/dist/sdk/errors.d.ts.map +1 -1
  123. package/dist/sdk/errors.js +1 -1
  124. package/dist/sdk/errors.js.map +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/query/index.js +1 -1
  136. package/dist/sdk/query/sql-parser.js +1 -1
  137. package/dist/sdk/realtime.js +1 -1
  138. package/dist/sdk/schedule.js +1 -1
  139. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  140. package/dist/sdk/segment/fields-display.js +1 -1
  141. package/dist/sdk/segment/file-discovery.js +1 -1
  142. package/dist/sdk/segment/journey-utils.d.ts.map +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-utils.js.map +1 -1
  145. package/dist/sdk/segment/journey-validator.js +1 -1
  146. package/dist/sdk/segment/journey-yaml.js +1 -1
  147. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  148. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  149. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  150. package/dist/sdk/segment/pull-workflow.js +1 -1
  151. package/dist/sdk/segment/push-recovery.js +1 -1
  152. package/dist/sdk/segment/push-workflow.js +1 -1
  153. package/dist/sdk/segment/resolution-context.js +1 -1
  154. package/dist/sdk/segment/segment-path-parser.js +1 -1
  155. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  156. package/dist/sdk/segment/segment-validator.js +1 -1
  157. package/dist/sdk/segment/target-resolution.js +1 -1
  158. package/dist/sdk/segment/tdx-config.js +1 -1
  159. package/dist/sdk/segment/types/activation-schema.js +1 -1
  160. package/dist/sdk/segment/types/journey-def.js +1 -1
  161. package/dist/sdk/segment/types/journey-schema.js +1 -1
  162. package/dist/sdk/segment/types/segment-def.js +1 -1
  163. package/dist/sdk/segment/types/segment-schema.js +1 -1
  164. package/dist/sdk/segment/validate-files.js +1 -1
  165. package/dist/sdk/segment/yaml-validator.js +1 -1
  166. package/dist/sdk/segment.js +1 -1
  167. package/dist/sdk/types/index.js +1 -1
  168. package/dist/sdk/types/progress.js +1 -1
  169. package/dist/sdk/user.js +1 -1
  170. package/dist/sdk/util/format-detector.js +1 -1
  171. package/dist/sdk/util/formatters.js +1 -1
  172. package/dist/sdk/util/index.js +1 -1
  173. package/dist/sdk/util/paginate.js +1 -1
  174. package/dist/sdk/util/tree-formatter.js +1 -1
  175. package/dist/sdk/workflow/archive-validation.js +1 -1
  176. package/dist/sdk/workflow/clone-workflow.js +1 -1
  177. package/dist/sdk/workflow/index.d.ts +12 -0
  178. package/dist/sdk/workflow/index.d.ts.map +1 -1
  179. package/dist/sdk/workflow/index.js +1 -1
  180. package/dist/sdk/workflow/index.js.map +1 -1
  181. package/dist/sdk/workflow/pull-workflow.js +1 -1
  182. package/dist/sdk/workflow/push-workflow.js +1 -1
  183. package/dist/sdk/workflow/tdx-config.js +1 -1
  184. package/dist/sdk/workflow/workflow-utils.js +1 -1
  185. package/dist/test-utils/command-runner.js +1 -1
  186. package/dist/test-utils/factories.js +1 -1
  187. package/dist/test-utils/fixtures.js +1 -1
  188. package/dist/test-utils/http-mock.js +1 -1
  189. package/dist/test-utils/index.js +1 -1
  190. package/dist/utils/async.js +1 -1
  191. package/dist/utils/colors.js +1 -1
  192. package/dist/utils/diff.js +1 -1
  193. package/dist/utils/file-permissions.js +1 -1
  194. package/dist/utils/file-reader.js +1 -1
  195. package/dist/utils/github-releases.js +1 -1
  196. package/dist/utils/global-cache.js +1 -1
  197. package/dist/utils/json-loader.js +1 -1
  198. package/dist/utils/local-cache.js +1 -1
  199. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  200. package/dist/utils/logger/formatters/index.js +1 -1
  201. package/dist/utils/logger/handlers/console-handler.js +1 -1
  202. package/dist/utils/logger/handlers/file-handler.js +1 -1
  203. package/dist/utils/logger/handlers/index.js +1 -1
  204. package/dist/utils/logger/handlers/null-handler.js +1 -1
  205. package/dist/utils/logger/index.js +1 -1
  206. package/dist/utils/logger/logger.js +1 -1
  207. package/dist/utils/logger/types.js +1 -1
  208. package/dist/utils/option-validation.js +1 -1
  209. package/dist/utils/process.js +1 -1
  210. package/dist/utils/prompt.js +1 -1
  211. package/dist/utils/spinner.js +1 -1
  212. package/dist/utils/sse-parser.js +1 -1
  213. package/dist/utils/string-utils.js +1 -1
  214. package/dist/utils/table-ref-parser.js +1 -1
  215. package/dist/utils/tdx-logger.js +1 -1
  216. package/dist/utils/version-check.js +1 -1
  217. package/package.json +1 -1
@@ -1 +1 @@
1
- const a184_0x2ec8cc=a184_0x5745;function a184_0x5745(_0x66b05a,_0x27f9c4){_0x66b05a=_0x66b05a-0xf6;const _0x3e0d7f=a184_0x3e0d();let _0x5745e6=_0x3e0d7f[_0x66b05a];return _0x5745e6;}(function(_0x2d85b7,_0x25b602){const _0x3d33c1=a184_0x5745,_0xd07c9e=_0x2d85b7();while(!![]){try{const _0x5b9fc6=-parseInt(_0x3d33c1(0x132))/0x1*(parseInt(_0x3d33c1(0x134))/0x2)+-parseInt(_0x3d33c1(0x102))/0x3*(-parseInt(_0x3d33c1(0x112))/0x4)+parseInt(_0x3d33c1(0x109))/0x5+-parseInt(_0x3d33c1(0x145))/0x6+parseInt(_0x3d33c1(0x141))/0x7+parseInt(_0x3d33c1(0x117))/0x8+-parseInt(_0x3d33c1(0x11a))/0x9;if(_0x5b9fc6===_0x25b602)break;else _0xd07c9e['push'](_0xd07c9e['shift']());}catch(_0x5de0d8){_0xd07c9e['push'](_0xd07c9e['shift']());}}}(a184_0x3e0d,0x8d920));export const fixtures={'database':{'basic':{'name':a184_0x2ec8cc(0x150),'count':0x5,'created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x13e),'permission':a184_0x2ec8cc(0x133)},'withTables':{'name':a184_0x2ec8cc(0x12b),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a184_0x2ec8cc(0x119),'permission':a184_0x2ec8cc(0x108)}},'table':{'basic':{'id':0x3039,'name':'users','type':a184_0x2ec8cc(0x162),'schema':JSON[a184_0x2ec8cc(0x122)]([['id','string'],[a184_0x2ec8cc(0x107),a184_0x2ec8cc(0x15a)],[a184_0x2ec8cc(0x131),a184_0x2ec8cc(0xfa)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a184_0x2ec8cc(0x13e),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a184_0x2ec8cc(0x11f),'type':a184_0x2ec8cc(0x162),'schema':JSON[a184_0x2ec8cc(0x122)]([[a184_0x2ec8cc(0x152),a184_0x2ec8cc(0xfa)],[a184_0x2ec8cc(0x107),a184_0x2ec8cc(0x15a)],[a184_0x2ec8cc(0xfd),a184_0x2ec8cc(0xfa)],[a184_0x2ec8cc(0x10d),a184_0x2ec8cc(0xfa)],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x115)}},'parentSegment':{'basic':{'id':a184_0x2ec8cc(0x13b),'name':'Test\x20Parent\x20Segment','description':a184_0x2ec8cc(0x13c),'status':a184_0x2ec8cc(0x146),'master_table':{'database':a184_0x2ec8cc(0xff),'table':a184_0x2ec8cc(0xfb)},'attributes':[{'name':a184_0x2ec8cc(0x12e),'type':a184_0x2ec8cc(0xfa),'key':!![]},{'name':a184_0x2ec8cc(0x147),'type':a184_0x2ec8cc(0xfa)},{'name':a184_0x2ec8cc(0x143),'type':a184_0x2ec8cc(0x13d)}],'created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x14a)},'withBehaviors':{'id':'ps-789012','name':a184_0x2ec8cc(0xf9),'description':a184_0x2ec8cc(0x154),'status':a184_0x2ec8cc(0x146),'master_table':{'database':a184_0x2ec8cc(0xff),'table':a184_0x2ec8cc(0x12f)},'behaviors':[{'name':'purchases','table':{'database':a184_0x2ec8cc(0x15e),'table':a184_0x2ec8cc(0xfc)},'join_key':a184_0x2ec8cc(0x12e)},{'name':a184_0x2ec8cc(0x129),'table':{'database':a184_0x2ec8cc(0x15e),'table':a184_0x2ec8cc(0x125)},'join_key':'customer_id'}],'created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x14a)}},'segment':{'basic':{'id':'cs-456789','name':a184_0x2ec8cc(0x11e),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':'ps-123456','status':'active','rules':[{'type':a184_0x2ec8cc(0x164),'field':a184_0x2ec8cc(0x165),'operator':a184_0x2ec8cc(0x14b),'value':a184_0x2ec8cc(0x14c)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x2ec8cc(0x14a)},'withMultipleRules':{'id':a184_0x2ec8cc(0x158),'name':a184_0x2ec8cc(0x100),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a184_0x2ec8cc(0x13b),'status':'active','rules':[{'type':a184_0x2ec8cc(0x164),'field':a184_0x2ec8cc(0x165),'operator':a184_0x2ec8cc(0x14b),'value':'30d'},{'type':a184_0x2ec8cc(0x164),'field':'lifetime_value','operator':a184_0x2ec8cc(0xfe),'value':0x3e8}],'count':0x5dc,'created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x14a)}},'journey':{'basic':{'id':'j-abc123','name':'Welcome\x20Journey','description':a184_0x2ec8cc(0x15c),'status':a184_0x2ec8cc(0x136),'version':0x1,'steps':[{'id':a184_0x2ec8cc(0x11c),'type':a184_0x2ec8cc(0x13f),'duration':'1d'},{'id':a184_0x2ec8cc(0x140),'type':a184_0x2ec8cc(0x15d),'activation_id':a184_0x2ec8cc(0x156)}],'created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x14a)},'withDecision':{'id':a184_0x2ec8cc(0x144),'name':a184_0x2ec8cc(0x124),'description':'Journey\x20with\x20decision\x20point','status':a184_0x2ec8cc(0x146),'version':0x2,'steps':[{'id':'step-1','type':a184_0x2ec8cc(0x106),'segment_id':a184_0x2ec8cc(0x101),'yes_path':a184_0x2ec8cc(0x140),'no_path':a184_0x2ec8cc(0x14f)},{'id':'step-2','type':a184_0x2ec8cc(0x15d),'activation_id':a184_0x2ec8cc(0xf7)},{'id':a184_0x2ec8cc(0x14f),'type':a184_0x2ec8cc(0x120)}],'created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x14a)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a184_0x2ec8cc(0x139)},{'name':a184_0x2ec8cc(0x131),'type':a184_0x2ec8cc(0x139)},{'name':a184_0x2ec8cc(0x121),'type':a184_0x2ec8cc(0x10b)}],'data':[['user-1','Alice',0x64],[a184_0x2ec8cc(0x14d),a184_0x2ec8cc(0x148),0xc8],[a184_0x2ec8cc(0x163),a184_0x2ec8cc(0x116),0x96]]},'empty':{'schema':[{'name':'id','type':a184_0x2ec8cc(0x139)},{'name':a184_0x2ec8cc(0x131),'type':a184_0x2ec8cc(0x139)}],'data':[]},'singleRow':{'schema':[{'name':a184_0x2ec8cc(0x10c),'type':a184_0x2ec8cc(0x10b)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a184_0x2ec8cc(0x13e),'updated_at':a184_0x2ec8cc(0x14a),'administrator':![]},'admin':{'id':0x1,'name':a184_0x2ec8cc(0x138),'email':'admin@example.com','created_at':a184_0x2ec8cc(0x157),'updated_at':a184_0x2ec8cc(0x14a),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a184_0x2ec8cc(0x114),'database':a184_0x2ec8cc(0x150),'status':a184_0x2ec8cc(0x126),'query':a184_0x2ec8cc(0x128),'start_at':a184_0x2ec8cc(0x15f),'end_at':a184_0x2ec8cc(0x12a),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a184_0x2ec8cc(0x114),'database':a184_0x2ec8cc(0x150),'status':a184_0x2ec8cc(0x15b),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a184_0x2ec8cc(0x149),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a184_0x2ec8cc(0x150),'status':a184_0x2ec8cc(0x105),'query':a184_0x2ec8cc(0xf8),'start_at':a184_0x2ec8cc(0x151),'end_at':a184_0x2ec8cc(0x118),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a184_0x2ec8cc(0x142),'name':'daily_etl','project':a184_0x2ec8cc(0x160),'revision':a184_0x2ec8cc(0x137),'timezone':a184_0x2ec8cc(0xf6),'schedule':{'cron':a184_0x2ec8cc(0x155)}},'withSessions':{'id':a184_0x2ec8cc(0x11d),'name':a184_0x2ec8cc(0x127),'project':a184_0x2ec8cc(0x104),'revision':a184_0x2ec8cc(0x113),'timezone':a184_0x2ec8cc(0x10f),'schedule':{'cron':a184_0x2ec8cc(0x111)},'last_session':{'id':a184_0x2ec8cc(0x166),'status':a184_0x2ec8cc(0x126),'started_at':'2024-01-15T09:00:00Z','finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':a184_0x2ec8cc(0x13a),'message':a184_0x2ec8cc(0x13a),'severity':'error','status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a184_0x2ec8cc(0x103),'severity':a184_0x2ec8cc(0x105),'status_code':0x194}},'rateLimited':{'detail':a184_0x2ec8cc(0x12d)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a184_0x2ec8cc(0x10e),'status':0x193,'detail':a184_0x2ec8cc(0x110),'instance':a184_0x2ec8cc(0x10a)}}};export function createDatabase(_0x540d2b){const _0x1a6d4b=a184_0x2ec8cc;return{...fixtures[_0x1a6d4b(0x14e)]['basic'],..._0x540d2b};}export function createTable(_0x273bf6){const _0x4b2a64=a184_0x2ec8cc;return{...fixtures['table'][_0x4b2a64(0x135)],..._0x273bf6};}export function createParentSegment(_0x17e4a2){const _0x5e317d=a184_0x2ec8cc;return{...fixtures[_0x5e317d(0x12c)][_0x5e317d(0x135)],..._0x17e4a2};}export function createSegment(_0x14c8cc){const _0x54870f=a184_0x2ec8cc;return{...fixtures[_0x54870f(0x130)][_0x54870f(0x135)],..._0x14c8cc};}export function createJourney(_0x2cc11f){const _0xbcc32f=a184_0x2ec8cc;return{...fixtures[_0xbcc32f(0x153)][_0xbcc32f(0x135)],..._0x2cc11f};}function a184_0x3e0d(){const _0x3c8941=['hourly_sync','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','page_views','2024-01-15T10:00:05Z','production_db','parentSegment','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','customer_id','customers','segment','name','9nOCqGW','administrator','242860RUPDIo','basic','draft','abc123','Admin\x20User','varchar','Invalid\x20API\x20key','ps-123456','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','timestamp','2024-01-01T00:00:00Z','wait','step-2','4392479diEnCr','wf-12345','created_at','j-def456','3559350LHQTNE','active','email','Bob','2024-01-15T10:05:00Z','2024-01-15T00:00:00Z','TimeWithinPast','30d','user-2','database','step-3','test_db','2024-01-15T10:10:00Z','event_id','journey','Parent\x20segment\x20with\x20behavioral\x20data','0\x200\x20*\x20*\x20*','act-123','2023-01-01T00:00:00Z','cs-111222','completed','long','running','Onboarding\x20journey\x20for\x20new\x20users','activation','events_db','2024-01-15T10:00:00Z','data_pipeline','job','log','user-3','attribute','last_login','sess-111','UTC','act-email','SELECT\x20*\x20FROM\x20nonexistent_table','Customers\x20with\x20Behaviors','string','unified_customers','purchases','user_id','Greater','cdp_db','High\x20Value\x20Active\x20Users','cs-456789','687IfhsRM','The\x20requested\x20resource\x20does\x20not\x20exist','data_sync','error','decision_point','time','full_access','5768405wJvKgI','/v3/database/list','bigint','total','event_type','Forbidden','America/Los_Angeles','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','0\x20*\x20*\x20*\x20*','3412JkqQns','def456','presto','2024-01-15T12:00:00Z','Charlie','3521472DByYeb','2024-01-15T10:10:01Z','2024-01-15T08:00:00Z','1356588JRHLQP','queryResult','step-1','wf-67890','Active\x20Users','events','end','count','stringify','user','Purchase\x20Reminder','pageviews','success'];a184_0x3e0d=function(){return _0x3c8941;};return a184_0x3e0d();}export function createQueryResult(_0x54f9df){const _0x15e109=a184_0x2ec8cc;return{...fixtures[_0x15e109(0x11b)]['basic'],..._0x54f9df};}export function createUser(_0x313457){const _0x1fb276=a184_0x2ec8cc;return{...fixtures[_0x1fb276(0x123)][_0x1fb276(0x135)],..._0x313457};}export function createJob(_0x26e4d9){const _0x8f316=a184_0x2ec8cc;return{...fixtures[_0x8f316(0x161)][_0x8f316(0x159)],..._0x26e4d9};}export function createWorkflow(_0x54392a){const _0x2f76eb=a184_0x2ec8cc;return{...fixtures['workflow'][_0x2f76eb(0x135)],..._0x54392a};}
1
+ function a184_0x5219(){const _0x356c84=['events_db','success','customers','act-email','The\x20requested\x20resource\x20does\x20not\x20exist','ps-123456','2024-01-15T10:05:00Z','production_db','0\x20*\x20*\x20*\x20*','cs-111222','10UUtSlZ','SELECT\x20*\x20FROM\x20nonexistent_table','log','2024-01-15T10:00:05Z','2024-01-15T10:00:00Z','Parent\x20segment\x20with\x20behavioral\x20data','sess-111','basic','unified_customers','Customers\x20with\x20Behaviors','cdp_db','2024-01-15T00:00:00Z','queryResult','2024-01-15T10:10:00Z','parentSegment','2024-01-15T09:05:00Z','event_id','6sikHew','UTC','error','completed','Greater','2255795gJBcIj','last_login','decision_point','workflow','pageviews','Charlie','def456','time','step-1','name','SELECT\x20COUNT(*)\x20FROM\x20events','activation','14101DgUStt','user-3','785979PFuMch','event_type','cs-456789','users','2024-01-15T09:00:00Z','test@example.com','30d','step-2','bigint','admin@example.com','Resource\x20not\x20found','user_id','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','attribute','stringify','2023-01-01T00:00:00Z','map<string,string>','page_views','long','user-2','step-3','abc123','end','High\x20Value\x20Active\x20Users','running','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','presto','Forbidden','total','varchar','customer_id','0\x200\x20*\x20*\x20*','user-1','2024-01-01T00:00:00Z','created_at','active','42798gMpCSX','Alice','wait','Invalid\x20API\x20key','Admin\x20User','Active\x20users\x20with\x20high\x20lifetime\x20value','/v3/database/list','wf-67890','Users\x20active\x20in\x20the\x20last\x2030\x20days','3365824LPDVJA','wf-12345','draft','j-def456','string','8qVaJWC','table','2024-01-15T10:10:01Z','job','Active\x20Users','33127611JKyhrn','j-abc123','1224TbJPZw','data_sync','TimeWithinPast','test_db','Onboarding\x20journey\x20for\x20new\x20users','America/Los_Angeles','purchases','3876054vnOTGo','https://api.treasuredata.com/errors/forbidden','Bob','administrator','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','2024-01-15T12:00:00Z'];a184_0x5219=function(){return _0x356c84;};return a184_0x5219();}const a184_0x12acc3=a184_0x48f5;(function(_0x51ec31,_0x325f35){const _0x4c2f38=a184_0x48f5,_0x1afb64=_0x51ec31();while(!![]){try{const _0x1c077a=-parseInt(_0x4c2f38(0x110))/0x1*(-parseInt(_0x4c2f38(0xd0))/0x2)+parseInt(_0x4c2f38(0xde))/0x3+parseInt(_0x4c2f38(0xcb))/0x4+-parseInt(_0x4c2f38(0x104))/0x5*(-parseInt(_0x4c2f38(0xff))/0x6)+-parseInt(_0x4c2f38(0xc2))/0x7*(-parseInt(_0x4c2f38(0xd7))/0x8)+parseInt(_0x4c2f38(0x112))/0x9*(parseInt(_0x4c2f38(0xee))/0xa)+-parseInt(_0x4c2f38(0xd5))/0xb;if(_0x1c077a===_0x325f35)break;else _0x1afb64['push'](_0x1afb64['shift']());}catch(_0x5e3d06){_0x1afb64['push'](_0x1afb64['shift']());}}}(a184_0x5219,0x9f3b1));export const fixtures={'database':{'basic':{'name':a184_0x12acc3(0xda),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x12acc3(0xbf),'permission':a184_0x12acc3(0xe1)},'withTables':{'name':a184_0x12acc3(0xeb),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a184_0x12acc3(0x115),'type':a184_0x12acc3(0xf0),'schema':JSON['stringify']([['id',a184_0x12acc3(0xcf)],[a184_0x12acc3(0x10b),a184_0x12acc3(0xb0)],['name','string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x12acc3(0xbf)},'events':{'id':0x303a,'name':'events','type':'log','schema':JSON[a184_0x12acc3(0xac)]([[a184_0x12acc3(0xfe),a184_0x12acc3(0xcf)],[a184_0x12acc3(0x10b),'long'],[a184_0x12acc3(0xa9),a184_0x12acc3(0xcf)],[a184_0x12acc3(0x113),'string'],['properties',a184_0x12acc3(0xae)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a184_0x12acc3(0xe3)}},'parentSegment':{'basic':{'id':a184_0x12acc3(0xe9),'name':'Test\x20Parent\x20Segment','description':a184_0x12acc3(0xe2),'status':a184_0x12acc3(0xc1),'master_table':{'database':a184_0x12acc3(0xf8),'table':a184_0x12acc3(0xf6)},'attributes':[{'name':a184_0x12acc3(0xbc),'type':a184_0x12acc3(0xcf),'key':!![]},{'name':'email','type':'string'},{'name':a184_0x12acc3(0xc0),'type':'timestamp'}],'created_at':a184_0x12acc3(0xbf),'updated_at':a184_0x12acc3(0xf9)},'withBehaviors':{'id':'ps-789012','name':a184_0x12acc3(0xf7),'description':a184_0x12acc3(0xf3),'status':a184_0x12acc3(0xc1),'master_table':{'database':a184_0x12acc3(0xf8),'table':a184_0x12acc3(0xe6)},'behaviors':[{'name':'purchases','table':{'database':'events_db','table':a184_0x12acc3(0xdd)},'join_key':a184_0x12acc3(0xbc)},{'name':a184_0x12acc3(0xaf),'table':{'database':a184_0x12acc3(0xe4),'table':a184_0x12acc3(0x108)},'join_key':a184_0x12acc3(0xbc)}],'created_at':a184_0x12acc3(0xbf),'updated_at':a184_0x12acc3(0xf9)}},'segment':{'basic':{'id':a184_0x12acc3(0x114),'name':a184_0x12acc3(0xd4),'description':a184_0x12acc3(0xca),'parent_segment_id':a184_0x12acc3(0xe9),'status':a184_0x12acc3(0xc1),'rules':[{'type':a184_0x12acc3(0xab),'field':a184_0x12acc3(0x105),'operator':a184_0x12acc3(0xd9),'value':'30d'}],'count':0x1388,'created_at':a184_0x12acc3(0xbf),'updated_at':a184_0x12acc3(0xf9)},'withMultipleRules':{'id':a184_0x12acc3(0xed),'name':a184_0x12acc3(0xb5),'description':a184_0x12acc3(0xc7),'parent_segment_id':a184_0x12acc3(0xe9),'status':a184_0x12acc3(0xc1),'rules':[{'type':a184_0x12acc3(0xab),'field':a184_0x12acc3(0x105),'operator':a184_0x12acc3(0xd9),'value':a184_0x12acc3(0x118)},{'type':'attribute','field':'lifetime_value','operator':a184_0x12acc3(0x103),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a184_0x12acc3(0xd6),'name':'Welcome\x20Journey','description':a184_0x12acc3(0xdb),'status':a184_0x12acc3(0xcd),'version':0x1,'steps':[{'id':a184_0x12acc3(0x10c),'type':a184_0x12acc3(0xc4),'duration':'1d'},{'id':a184_0x12acc3(0x119),'type':a184_0x12acc3(0x10f),'activation_id':'act-123'}],'created_at':a184_0x12acc3(0xbf),'updated_at':a184_0x12acc3(0xf9)},'withDecision':{'id':a184_0x12acc3(0xce),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':a184_0x12acc3(0xc1),'version':0x2,'steps':[{'id':a184_0x12acc3(0x10c),'type':a184_0x12acc3(0x106),'segment_id':a184_0x12acc3(0x114),'yes_path':a184_0x12acc3(0x119),'no_path':a184_0x12acc3(0xb2)},{'id':a184_0x12acc3(0x119),'type':a184_0x12acc3(0x10f),'activation_id':a184_0x12acc3(0xe7)},{'id':a184_0x12acc3(0xb2),'type':a184_0x12acc3(0xb4)}],'created_at':a184_0x12acc3(0xbf),'updated_at':a184_0x12acc3(0xf9)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a184_0x12acc3(0xbb)},{'name':'name','type':a184_0x12acc3(0xbb)},{'name':'count','type':a184_0x12acc3(0x11a)}],'data':[[a184_0x12acc3(0xbe),a184_0x12acc3(0xc3),0x64],[a184_0x12acc3(0xb1),a184_0x12acc3(0xe0),0xc8],[a184_0x12acc3(0x111),a184_0x12acc3(0x109),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a184_0x12acc3(0x10d),'type':a184_0x12acc3(0xbb)}],'data':[]},'singleRow':{'schema':[{'name':a184_0x12acc3(0xba),'type':a184_0x12acc3(0x11a)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a184_0x12acc3(0x117),'created_at':a184_0x12acc3(0xbf),'updated_at':a184_0x12acc3(0xf9),'administrator':![]},'admin':{'id':0x1,'name':a184_0x12acc3(0xc6),'email':a184_0x12acc3(0x11b),'created_at':a184_0x12acc3(0xad),'updated_at':a184_0x12acc3(0xf9),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a184_0x12acc3(0xb8),'database':a184_0x12acc3(0xda),'status':'success','query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':a184_0x12acc3(0xf2),'end_at':a184_0x12acc3(0xf1),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a184_0x12acc3(0xb8),'database':'test_db','status':a184_0x12acc3(0xb6),'query':a184_0x12acc3(0x10e),'start_at':a184_0x12acc3(0xea),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a184_0x12acc3(0xb8),'database':'test_db','status':'error','query':a184_0x12acc3(0xef),'start_at':a184_0x12acc3(0xfb),'end_at':a184_0x12acc3(0xd2),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a184_0x12acc3(0xcc),'name':'daily_etl','project':'data_pipeline','revision':a184_0x12acc3(0xb3),'timezone':a184_0x12acc3(0x100),'schedule':{'cron':a184_0x12acc3(0xbd)}},'withSessions':{'id':a184_0x12acc3(0xc9),'name':'hourly_sync','project':a184_0x12acc3(0xd8),'revision':a184_0x12acc3(0x10a),'timezone':a184_0x12acc3(0xdc),'schedule':{'cron':a184_0x12acc3(0xec)},'last_session':{'id':a184_0x12acc3(0xf4),'status':a184_0x12acc3(0xe5),'started_at':a184_0x12acc3(0x116),'finished_at':a184_0x12acc3(0xfd)}}},'apiError':{'unauthorized':{'errors':{'error':a184_0x12acc3(0xc5),'message':a184_0x12acc3(0xc5),'severity':a184_0x12acc3(0x101),'status_code':0x191}},'notFound':{'errors':{'error':a184_0x12acc3(0xa8),'message':a184_0x12acc3(0xe8),'severity':a184_0x12acc3(0x101),'status_code':0x194}},'rateLimited':{'detail':a184_0x12acc3(0xb7)},'rfc9457':{'type':a184_0x12acc3(0xdf),'title':a184_0x12acc3(0xb9),'status':0x193,'detail':a184_0x12acc3(0xaa),'instance':a184_0x12acc3(0xc8)}}};export function createDatabase(_0x30420d){const _0x4b27fb=a184_0x12acc3;return{...fixtures['database'][_0x4b27fb(0xf5)],..._0x30420d};}export function createTable(_0x31879d){const _0x22a2af=a184_0x12acc3;return{...fixtures[_0x22a2af(0xd1)][_0x22a2af(0xf5)],..._0x31879d};}export function createParentSegment(_0x46332f){const _0x1de677=a184_0x12acc3;return{...fixtures[_0x1de677(0xfc)][_0x1de677(0xf5)],..._0x46332f};}export function createSegment(_0x17bd4c){const _0x5810e3=a184_0x12acc3;return{...fixtures['segment'][_0x5810e3(0xf5)],..._0x17bd4c};}export function createJourney(_0x1e7dfe){const _0x418e9f=a184_0x12acc3;return{...fixtures['journey'][_0x418e9f(0xf5)],..._0x1e7dfe};}function a184_0x48f5(_0x140f65,_0x23e41a){_0x140f65=_0x140f65-0xa8;const _0x521992=a184_0x5219();let _0x48f53e=_0x521992[_0x140f65];return _0x48f53e;}export function createQueryResult(_0x18762d){const _0x34e531=a184_0x12acc3;return{...fixtures[_0x34e531(0xfa)][_0x34e531(0xf5)],..._0x18762d};}export function createUser(_0x406fce){const _0x5a3c5e=a184_0x12acc3;return{...fixtures['user'][_0x5a3c5e(0xf5)],..._0x406fce};}export function createJob(_0x35a66a){const _0x547caf=a184_0x12acc3;return{...fixtures[_0x547caf(0xd3)][_0x547caf(0x102)],..._0x35a66a};}export function createWorkflow(_0x57b86e){const _0x50f764=a184_0x12acc3;return{...fixtures[_0x50f764(0x107)]['basic'],..._0x57b86e};}
@@ -1 +1 @@
1
- const a185_0x143c2f=a185_0x1058;(function(_0xaff18a,_0x1373e8){const _0x15e115=a185_0x1058,_0xd1d711=_0xaff18a();while(!![]){try{const _0x144223=parseInt(_0x15e115(0x15b))/0x1+parseInt(_0x15e115(0x138))/0x2+parseInt(_0x15e115(0x180))/0x3*(-parseInt(_0x15e115(0x181))/0x4)+parseInt(_0x15e115(0x15d))/0x5*(parseInt(_0x15e115(0x153))/0x6)+-parseInt(_0x15e115(0x149))/0x7*(-parseInt(_0x15e115(0x16f))/0x8)+parseInt(_0x15e115(0x182))/0x9*(parseInt(_0x15e115(0x166))/0xa)+-parseInt(_0x15e115(0x147))/0xb;if(_0x144223===_0x1373e8)break;else _0xd1d711['push'](_0xd1d711['shift']());}catch(_0x3b4497){_0xd1d711['push'](_0xd1d711['shift']());}}}(a185_0x1e65,0x50da3));function a185_0x1058(_0xc54202,_0x2422b8){_0xc54202=_0xc54202-0x131;const _0x1e65b4=a185_0x1e65();let _0x10586d=_0x1e65b4[_0xc54202];return _0x10586d;}function a185_0x1e65(){const _0x186472=['includes','slice','stack','matched','url','11952zAIaxQ','232VUyxPo','27SJcbQD','join','Internal\x20Server\x20Error','body','textResponse','Unprocessable\x20Entity','Bad\x20Gateway','parseRequest','requests','652428ojgRnt','matcher','forEach','pathname','Service\x20Unavailable','function','register','string','headers','searchParams','push','Conflict','every','length','toUpperCase','13030545XLaXAL','reset','89929NgdVpl','simple','\x20\x20(none)','networkError','jsonResponseWithHeaders','rfc9457','error','REST','application/json','toLowerCase','6FmqSuB','Unauthorized','GET','fetchMock','Not\x20Found','registerWithInspector','Registered\x20stubs:\x0a','text/plain','418623YTYDAZ','matchCount','604705RbVSjS','Unmatched\x20stub','td-api','get','method','map','https://api.treasuredata.com/errors/','getRequests','\x20registered\x20at:\x0a','1951930WHPcvG','jsonResponse','split','unnamed\x20stub','isArray','No\x20stub\x20matched\x20request:\x20','entries','withHost','description','184pKBCTp','verify','test','mockImplementation','getStatusText','Too\x20Many\x20Requests','stubs','createFetch','Bad\x20Request','withQuery','fail','stringify'];a185_0x1e65=function(){return _0x186472;};return a185_0x1e65();}import{vi}from'vitest';export class HTTPMockRegistry{[a185_0x143c2f(0x175)]=[];[a185_0x143c2f(0x137)]=[];[a185_0x143c2f(0x156)]=null;[a185_0x143c2f(0x150)](_0x150546,_0x109003){return _0x11ba36=>{const _0x229cde=a185_0x1058;if(_0x11ba36[_0x229cde(0x161)][_0x229cde(0x146)]()!==_0x150546[_0x229cde(0x146)]())return![];const _0x257598=new URL(_0x11ba36[_0x229cde(0x17f)]);if(typeof _0x109003==='string')return _0x257598[_0x229cde(0x13b)]===_0x109003||_0x257598[_0x229cde(0x13b)][_0x229cde(0x17b)](_0x109003);return _0x109003['test'](_0x257598[_0x229cde(0x13b)]);};}[a185_0x143c2f(0x178)](_0x176454,_0x740638){return _0x17fe81=>{const _0x1d0e3b=a185_0x1058;if(!_0x176454(_0x17fe81))return![];const _0x43b3f9=new URL(_0x17fe81['url']);return Object[_0x1d0e3b(0x16c)](_0x740638)[_0x1d0e3b(0x144)](([_0x3afd8b,_0x317780])=>_0x43b3f9[_0x1d0e3b(0x141)][_0x1d0e3b(0x160)](_0x3afd8b)===_0x317780);};}['withBody'](_0x63355d,_0x417ac5){return _0x38ba31=>{const _0x340660=a185_0x1058;if(!_0x63355d(_0x38ba31))return![];if(typeof _0x417ac5===_0x340660(0x13d))return _0x417ac5(_0x38ba31[_0x340660(0x132)]);return JSON[_0x340660(0x17a)](_0x38ba31[_0x340660(0x132)])===JSON[_0x340660(0x17a)](_0x417ac5);};}[a185_0x143c2f(0x16d)](_0x3c853c,_0x2aade6){return _0x2e5266=>{if(!_0x3c853c(_0x2e5266))return![];const _0x1ee8c8=new URL(_0x2e5266['url']);return _0x1ee8c8['host']===_0x2aade6;};}[a185_0x143c2f(0x13e)](_0x551cff,_0x1d183b,_0x3edd72){const _0x1c95c6=a185_0x143c2f;this[_0x1c95c6(0x175)][_0x1c95c6(0x142)]({'matcher':_0x551cff,'responder':_0x1d183b,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1c95c6(0x17d)]??'','description':_0x3edd72?.['description']});}[a185_0x143c2f(0x158)](_0x3ceb35,_0x134d0c,_0x2dfec6){const _0x59b4f8=a185_0x143c2f,_0xf9578f=_0x7a9b8a=>{const _0x5a5315=a185_0x1058;return _0x2dfec6(_0x7a9b8a[_0x5a5315(0x132)],_0x7a9b8a),_0x134d0c(_0x7a9b8a);};this[_0x59b4f8(0x13e)](_0x3ceb35,_0xf9578f);}static[a185_0x143c2f(0x167)](_0x342019,_0x35dddc=0xc8){const _0x4002e9=a185_0x143c2f;return()=>new Response(JSON[_0x4002e9(0x17a)](_0x342019),{'status':_0x35dddc,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x1db1de,_0x44e9bd,_0x3aac15=a185_0x143c2f(0x14a)){return()=>{const _0x1072b0=a185_0x1058;let _0x21707f;switch(_0x3aac15){case _0x1072b0(0x15f):_0x21707f={'errors':{'error':_0x44e9bd,'message':_0x44e9bd,'severity':_0x1072b0(0x14f),'status_code':_0x1db1de}};break;case _0x1072b0(0x14e):_0x21707f={'type':_0x1072b0(0x163)+_0x1db1de,'title':HTTPMockRegistry[_0x1072b0(0x173)](_0x1db1de),'status':_0x1db1de,'detail':_0x44e9bd};break;default:_0x21707f={'error':_0x44e9bd};}return new Response(JSON[_0x1072b0(0x17a)](_0x21707f),{'status':_0x1db1de,'headers':{'Content-Type':_0x1072b0(0x151)}});};}static[a185_0x143c2f(0x14d)](_0x4ae3d9,_0x44088f,_0x518d5a=0xc8){const _0x3b7554=a185_0x143c2f;return()=>new Response(JSON[_0x3b7554(0x17a)](_0x4ae3d9),{'status':_0x518d5a,'headers':{'Content-Type':_0x3b7554(0x151),..._0x44088f}});}static[a185_0x143c2f(0x133)](_0x44241e,_0x3fdec5=0xc8){const _0xbd3f98=a185_0x143c2f;return()=>new Response(_0x44241e,{'status':_0x3fdec5,'headers':{'Content-Type':_0xbd3f98(0x15a)}});}static[a185_0x143c2f(0x14c)](_0x114655){return()=>{throw new Error(_0x114655);};}[a185_0x143c2f(0x176)](){const _0xa0d559=a185_0x143c2f;return this['fetchMock']=vi['fn']()[_0xa0d559(0x172)](async(_0x2f444c,_0x2f878c)=>{const _0x41ba76=_0xa0d559,_0x41423c=this[_0x41ba76(0x136)](_0x2f444c,_0x2f878c);this[_0x41ba76(0x137)]['push'](_0x41423c);for(const _0x5587ea of this[_0x41ba76(0x175)]){if(_0x5587ea[_0x41ba76(0x139)](_0x41423c))return _0x5587ea[_0x41ba76(0x17e)]=!![],_0x5587ea[_0x41ba76(0x15c)]++,_0x5587ea['responder'](_0x41423c);}const _0x191e51=this[_0x41ba76(0x175)][_0x41ba76(0x162)]((_0x35cf96,_0x235570)=>'\x20\x20'+(_0x235570+0x1)+'.\x20'+(_0x35cf96[_0x41ba76(0x16e)]??_0x41ba76(0x169)))[_0x41ba76(0x183)]('\x0a');throw new Error(_0x41ba76(0x16b)+_0x41423c['method']+'\x20'+_0x41423c[_0x41ba76(0x17f)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x41ba76(0x17a)](_0x41423c[_0x41ba76(0x132)])+'\x0a')+(_0x41ba76(0x159)+(_0x191e51||_0x41ba76(0x14b))));}),this[_0xa0d559(0x156)];}['parseRequest'](_0xe683f,_0x2924f3){const _0x45bf5d=a185_0x143c2f,_0x3f13e7={};if(_0x2924f3?.['headers']){if(_0x2924f3[_0x45bf5d(0x140)]instanceof Headers)_0x2924f3[_0x45bf5d(0x140)][_0x45bf5d(0x13a)]((_0x35a99d,_0x5d59fc)=>{_0x3f13e7[_0x5d59fc['toLowerCase']()]=_0x35a99d;});else{if(Array[_0x45bf5d(0x16a)](_0x2924f3[_0x45bf5d(0x140)]))for(const [_0x4fe8d4,_0x47d3b9]of _0x2924f3[_0x45bf5d(0x140)]){_0x3f13e7[_0x4fe8d4[_0x45bf5d(0x152)]()]=_0x47d3b9;}else for(const [_0x499afd,_0x34239e]of Object[_0x45bf5d(0x16c)](_0x2924f3[_0x45bf5d(0x140)])){_0x34239e!==undefined&&(_0x3f13e7[_0x499afd[_0x45bf5d(0x152)]()]=_0x34239e);}}}let _0x870242;if(_0x2924f3?.[_0x45bf5d(0x132)])try{_0x870242=JSON['parse'](_0x2924f3[_0x45bf5d(0x132)]);}catch{_0x870242=_0x2924f3['body'];}return{'method':_0x2924f3?.[_0x45bf5d(0x161)]??_0x45bf5d(0x155),'url':_0xe683f,'headers':_0x3f13e7,'body':_0x870242};}[a185_0x143c2f(0x170)](_0x3334ce){const _0x18fc7d=a185_0x143c2f,_0x476753=this[_0x18fc7d(0x175)]['filter'](_0x5811e8=>!_0x5811e8[_0x18fc7d(0x17e)]);if(_0x476753[_0x18fc7d(0x145)]>0x0){const _0x114d87=_0x476753[_0x18fc7d(0x162)](_0x13b3bd=>{const _0x208c43=_0x18fc7d,_0x2bc2ca=_0x13b3bd['description']?'\x20('+_0x13b3bd[_0x208c43(0x16e)]+')':'',_0x34e1c5=_0x13b3bd[_0x208c43(0x17d)][_0x208c43(0x168)]('\x0a')[_0x208c43(0x17c)](0x2,0x5)[_0x208c43(0x183)]('\x0a');return _0x208c43(0x15e)+_0x2bc2ca+_0x208c43(0x165)+_0x34e1c5;});_0x3334ce[_0x18fc7d(0x179)](_0x476753[_0x18fc7d(0x145)]+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x114d87[_0x18fc7d(0x183)]('\x0a\x0a'));}}[a185_0x143c2f(0x164)](){const _0x579067=a185_0x143c2f;return[...this[_0x579067(0x137)]];}['getLastRequest'](){const _0x35a427=a185_0x143c2f;return this[_0x35a427(0x137)][this[_0x35a427(0x137)][_0x35a427(0x145)]-0x1];}['wasCalled'](_0x13a90e,_0x3f0440){const _0x1bcd3f=a185_0x143c2f;return this[_0x1bcd3f(0x137)]['some'](_0x1d32bb=>{const _0x3e3216=_0x1bcd3f;if(_0x1d32bb[_0x3e3216(0x161)][_0x3e3216(0x146)]()!==_0x13a90e['toUpperCase']())return![];if(typeof _0x3f0440===_0x3e3216(0x13f))return _0x1d32bb[_0x3e3216(0x17f)][_0x3e3216(0x17b)](_0x3f0440);return _0x3f0440[_0x3e3216(0x171)](_0x1d32bb['url']);});}['getMatchCount'](_0x3a3395){const _0x64c980=a185_0x143c2f;return this['stubs'][_0x3a3395]?.[_0x64c980(0x15c)]??0x0;}[a185_0x143c2f(0x148)](){const _0x4a707f=a185_0x143c2f;this[_0x4a707f(0x175)]=[],this[_0x4a707f(0x137)]=[],this['fetchMock']=null;}static[a185_0x143c2f(0x173)](_0x511583){const _0x4cfeb1=a185_0x143c2f,_0x5a4ed0={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x4cfeb1(0x177),0x191:_0x4cfeb1(0x154),0x193:'Forbidden',0x194:_0x4cfeb1(0x157),0x199:_0x4cfeb1(0x143),0x1a6:_0x4cfeb1(0x134),0x1ad:_0x4cfeb1(0x174),0x1f4:_0x4cfeb1(0x131),0x1f6:_0x4cfeb1(0x135),0x1f7:_0x4cfeb1(0x13c)};return _0x5a4ed0[_0x511583]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a185_0x21c509=a185_0xe3b9;(function(_0x474b4c,_0x300ed1){const _0xd37641=a185_0xe3b9,_0x2bca26=_0x474b4c();while(!![]){try{const _0x3755b9=-parseInt(_0xd37641(0x14b))/0x1*(parseInt(_0xd37641(0x148))/0x2)+-parseInt(_0xd37641(0x114))/0x3+parseInt(_0xd37641(0x102))/0x4+-parseInt(_0xd37641(0x109))/0x5*(-parseInt(_0xd37641(0x120))/0x6)+-parseInt(_0xd37641(0x10c))/0x7*(-parseInt(_0xd37641(0xfe))/0x8)+-parseInt(_0xd37641(0xfb))/0x9+-parseInt(_0xd37641(0x11e))/0xa*(parseInt(_0xd37641(0x10d))/0xb);if(_0x3755b9===_0x300ed1)break;else _0x2bca26['push'](_0x2bca26['shift']());}catch(_0x4f9082){_0x2bca26['push'](_0x2bca26['shift']());}}}(a185_0x50d5,0x76c8d));import{vi}from'vitest';function a185_0xe3b9(_0x1a09af,_0xedd5c2){_0x1a09af=_0x1a09af-0xf9;const _0x50d5cd=a185_0x50d5();let _0xe3b98c=_0x50d5cd[_0x1a09af];return _0xe3b98c;}function a185_0x50d5(){const _0x4f0a3d=['getRequests','Conflict','2997700TcrHfG','length','wasCalled','application/json','body','REST','No\x20Content','2206010bleudZ','\x20\x20(none)','stubs','6194013kHMYya','1531299OpkYcl','parseRequest','some','requests','includes','map','Bad\x20Gateway','121275XBFhvJ','No\x20stub\x20matched\x20request:\x20','host','stack','matchCount','verify','test','Service\x20Unavailable','getMatchCount','withBody','10JoKaNe','description','6zFitDP','GET','error','Created','jsonResponseWithHeaders','errorResponse','parse','Registered\x20stubs:\x0a','Forbidden','pathname','Internal\x20Server\x20Error','Request\x20body:\x20','function','networkError','Too\x20Many\x20Requests','slice','push','rfc9457','createFetch','fetchMock','simple','unnamed\x20stub','responder','\x20registered\x20at:\x0a','join','filter','string','getStatusText','fail','withHost','Not\x20Found','forEach','url','every','stringify','textResponse','entries','toUpperCase','matched','matcher','34502gCAJUN','isArray','Unmatched\x20stub','53mHKFan','registerWithInspector','text/plain','split','toLowerCase','4455072WLUGUy','Unprocessable\x20Entity','get','8Ibetqx','headers'];a185_0x50d5=function(){return _0x4f0a3d;};return a185_0x50d5();}export class HTTPMockRegistry{[a185_0x21c509(0x10b)]=[];[a185_0x21c509(0x110)]=[];['fetchMock']=null;[a185_0x21c509(0x107)](_0x53cb5d,_0x5d9dfc){return _0x17790c=>{const _0x5e3336=a185_0xe3b9;if(_0x17790c['method'][_0x5e3336(0x145)]()!==_0x53cb5d[_0x5e3336(0x145)]())return![];const _0x3d503f=new URL(_0x17790c[_0x5e3336(0x140)]);if(typeof _0x5d9dfc==='string')return _0x3d503f[_0x5e3336(0x129)]===_0x5d9dfc||_0x3d503f[_0x5e3336(0x129)][_0x5e3336(0x111)](_0x5d9dfc);return _0x5d9dfc[_0x5e3336(0x11a)](_0x3d503f[_0x5e3336(0x129)]);};}['withQuery'](_0x143fb0,_0x38e238){return _0x4fabb4=>{const _0x4337b0=a185_0xe3b9;if(!_0x143fb0(_0x4fabb4))return![];const _0x411e1e=new URL(_0x4fabb4['url']);return Object['entries'](_0x38e238)[_0x4337b0(0x141)](([_0x77e18b,_0x3bc6b9])=>_0x411e1e['searchParams'][_0x4337b0(0xfd)](_0x77e18b)===_0x3bc6b9);};}[a185_0x21c509(0x11d)](_0x3fe5d8,_0x2fa939){return _0x3196bb=>{const _0x102c1=a185_0xe3b9;if(!_0x3fe5d8(_0x3196bb))return![];if(typeof _0x2fa939===_0x102c1(0x12c))return _0x2fa939(_0x3196bb[_0x102c1(0x106)]);return JSON[_0x102c1(0x142)](_0x3196bb[_0x102c1(0x106)])===JSON[_0x102c1(0x142)](_0x2fa939);};}[a185_0x21c509(0x13d)](_0x1f6652,_0x1f4367){return _0x12f497=>{const _0xf33a5f=a185_0xe3b9;if(!_0x1f6652(_0x12f497))return![];const _0x52428c=new URL(_0x12f497[_0xf33a5f(0x140)]);return _0x52428c[_0xf33a5f(0x116)]===_0x1f4367;};}['register'](_0x4090e4,_0x3a5151,_0x3ae292){const _0x58e286=a185_0x21c509;this[_0x58e286(0x10b)]['push']({'matcher':_0x4090e4,'responder':_0x3a5151,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x3ae292?.['description']});}[a185_0x21c509(0x14c)](_0x4fbb60,_0x5e1656,_0x43b4e3){const _0x43b31f=_0x4d6e8f=>{return _0x43b4e3(_0x4d6e8f['body'],_0x4d6e8f),_0x5e1656(_0x4d6e8f);};this['register'](_0x4fbb60,_0x43b31f);}static['jsonResponse'](_0x4210e4,_0x187d52=0xc8){const _0x3f1126=a185_0x21c509;return()=>new Response(JSON[_0x3f1126(0x142)](_0x4210e4),{'status':_0x187d52,'headers':{'Content-Type':'application/json'}});}static[a185_0x21c509(0x125)](_0x139952,_0x408a40,_0x2a1b18=a185_0x21c509(0x134)){return()=>{const _0x43c52c=a185_0xe3b9;let _0xf94871;switch(_0x2a1b18){case'td-api':_0xf94871={'errors':{'error':_0x408a40,'message':_0x408a40,'severity':_0x43c52c(0x122),'status_code':_0x139952}};break;case _0x43c52c(0x131):_0xf94871={'type':'https://api.treasuredata.com/errors/'+_0x139952,'title':HTTPMockRegistry[_0x43c52c(0x13b)](_0x139952),'status':_0x139952,'detail':_0x408a40};break;default:_0xf94871={'error':_0x408a40};}return new Response(JSON[_0x43c52c(0x142)](_0xf94871),{'status':_0x139952,'headers':{'Content-Type':_0x43c52c(0x105)}});};}static[a185_0x21c509(0x124)](_0x17fccc,_0x5ecfcd,_0x22c89c=0xc8){const _0x37497c=a185_0x21c509;return()=>new Response(JSON[_0x37497c(0x142)](_0x17fccc),{'status':_0x22c89c,'headers':{'Content-Type':'application/json',..._0x5ecfcd}});}static[a185_0x21c509(0x143)](_0xb04e87,_0x1055c7=0xc8){const _0x236383=a185_0x21c509;return()=>new Response(_0xb04e87,{'status':_0x1055c7,'headers':{'Content-Type':_0x236383(0x14d)}});}static[a185_0x21c509(0x12d)](_0x11cf66){return()=>{throw new Error(_0x11cf66);};}[a185_0x21c509(0x132)](){const _0x36582d=a185_0x21c509;return this['fetchMock']=vi['fn']()['mockImplementation'](async(_0x4b3970,_0x1e660d)=>{const _0x234e22=a185_0xe3b9,_0x577aa4=this[_0x234e22(0x10e)](_0x4b3970,_0x1e660d);this[_0x234e22(0x110)][_0x234e22(0x130)](_0x577aa4);for(const _0x132b68 of this[_0x234e22(0x10b)]){if(_0x132b68[_0x234e22(0x147)](_0x577aa4))return _0x132b68[_0x234e22(0x146)]=!![],_0x132b68[_0x234e22(0x118)]++,_0x132b68[_0x234e22(0x136)](_0x577aa4);}const _0x1db5a9=this[_0x234e22(0x10b)]['map']((_0x3b6005,_0x4aa383)=>'\x20\x20'+(_0x4aa383+0x1)+'.\x20'+(_0x3b6005[_0x234e22(0x11f)]??_0x234e22(0x135)))['join']('\x0a');throw new Error(_0x234e22(0x115)+_0x577aa4['method']+'\x20'+_0x577aa4['url']+'\x0a'+(_0x234e22(0x12b)+JSON[_0x234e22(0x142)](_0x577aa4[_0x234e22(0x106)])+'\x0a')+(_0x234e22(0x127)+(_0x1db5a9||_0x234e22(0x10a))));}),this[_0x36582d(0x133)];}[a185_0x21c509(0x10e)](_0x18b83e,_0x2ef67a){const _0x41b54f=a185_0x21c509,_0x35ac33={};if(_0x2ef67a?.['headers']){if(_0x2ef67a['headers']instanceof Headers)_0x2ef67a['headers'][_0x41b54f(0x13f)]((_0x3895df,_0x572892)=>{const _0x2208e5=_0x41b54f;_0x35ac33[_0x572892[_0x2208e5(0xfa)]()]=_0x3895df;});else{if(Array[_0x41b54f(0x149)](_0x2ef67a[_0x41b54f(0xff)]))for(const [_0x66c362,_0x31f0c3]of _0x2ef67a[_0x41b54f(0xff)]){_0x35ac33[_0x66c362['toLowerCase']()]=_0x31f0c3;}else for(const [_0xbe97fc,_0xa21a46]of Object[_0x41b54f(0x144)](_0x2ef67a[_0x41b54f(0xff)])){_0xa21a46!==undefined&&(_0x35ac33[_0xbe97fc[_0x41b54f(0xfa)]()]=_0xa21a46);}}}let _0x10fd22;if(_0x2ef67a?.[_0x41b54f(0x106)])try{_0x10fd22=JSON[_0x41b54f(0x126)](_0x2ef67a['body']);}catch{_0x10fd22=_0x2ef67a[_0x41b54f(0x106)];}return{'method':_0x2ef67a?.['method']??_0x41b54f(0x121),'url':_0x18b83e,'headers':_0x35ac33,'body':_0x10fd22};}[a185_0x21c509(0x119)](_0x52b152){const _0x33ef0c=a185_0x21c509,_0x1a05e2=this[_0x33ef0c(0x10b)][_0x33ef0c(0x139)](_0x370e03=>!_0x370e03[_0x33ef0c(0x146)]);if(_0x1a05e2['length']>0x0){const _0x2d074c=_0x1a05e2[_0x33ef0c(0x112)](_0x1dd32b=>{const _0x7db511=_0x33ef0c,_0x4b8dc5=_0x1dd32b[_0x7db511(0x11f)]?'\x20('+_0x1dd32b[_0x7db511(0x11f)]+')':'',_0x2d6ff2=_0x1dd32b[_0x7db511(0x117)][_0x7db511(0xf9)]('\x0a')[_0x7db511(0x12f)](0x2,0x5)['join']('\x0a');return _0x7db511(0x14a)+_0x4b8dc5+_0x7db511(0x137)+_0x2d6ff2;});_0x52b152[_0x33ef0c(0x13c)](_0x1a05e2[_0x33ef0c(0x103)]+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x2d074c[_0x33ef0c(0x138)]('\x0a\x0a'));}}[a185_0x21c509(0x100)](){return[...this['requests']];}['getLastRequest'](){const _0x48072e=a185_0x21c509;return this[_0x48072e(0x110)][this['requests'][_0x48072e(0x103)]-0x1];}[a185_0x21c509(0x104)](_0x2d25ba,_0x315c35){const _0x1a3d26=a185_0x21c509;return this[_0x1a3d26(0x110)][_0x1a3d26(0x10f)](_0x5e0409=>{const _0x251c3d=_0x1a3d26;if(_0x5e0409['method'][_0x251c3d(0x145)]()!==_0x2d25ba[_0x251c3d(0x145)]())return![];if(typeof _0x315c35===_0x251c3d(0x13a))return _0x5e0409['url'][_0x251c3d(0x111)](_0x315c35);return _0x315c35['test'](_0x5e0409['url']);});}[a185_0x21c509(0x11c)](_0x2c1bb1){const _0x57b9be=a185_0x21c509;return this[_0x57b9be(0x10b)][_0x2c1bb1]?.[_0x57b9be(0x118)]??0x0;}['reset'](){const _0x51e5bb=a185_0x21c509;this[_0x51e5bb(0x10b)]=[],this[_0x51e5bb(0x110)]=[],this['fetchMock']=null;}static[a185_0x21c509(0x13b)](_0x3fc41a){const _0x3e7c95=a185_0x21c509,_0x3c7025={0xc8:'OK',0xc9:_0x3e7c95(0x123),0xcc:_0x3e7c95(0x108),0x190:'Bad\x20Request',0x191:'Unauthorized',0x193:_0x3e7c95(0x128),0x194:_0x3e7c95(0x13e),0x199:_0x3e7c95(0x101),0x1a6:_0x3e7c95(0xfc),0x1ad:_0x3e7c95(0x12e),0x1f4:_0x3e7c95(0x12a),0x1f6:_0x3e7c95(0x113),0x1f7:_0x3e7c95(0x11b)};return _0x3c7025[_0x3fc41a]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x1d1454,_0x3de835){var _0x34b44c=a186_0x3ce1,_0x30337c=_0x1d1454();while(!![]){try{var _0x2bbc59=-parseInt(_0x34b44c(0x13b))/0x1+parseInt(_0x34b44c(0x13c))/0x2*(parseInt(_0x34b44c(0x13e))/0x3)+-parseInt(_0x34b44c(0x13a))/0x4*(-parseInt(_0x34b44c(0x136))/0x5)+-parseInt(_0x34b44c(0x139))/0x6+-parseInt(_0x34b44c(0x138))/0x7*(parseInt(_0x34b44c(0x137))/0x8)+-parseInt(_0x34b44c(0x13f))/0x9+parseInt(_0x34b44c(0x13d))/0xa*(parseInt(_0x34b44c(0x140))/0xb);if(_0x2bbc59===_0x3de835)break;else _0x30337c['push'](_0x30337c['shift']());}catch(_0x2468f8){_0x30337c['push'](_0x30337c['shift']());}}}(a186_0x362b,0xa2e64));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a186_0x3ce1(_0x469b3c,_0x58b082){_0x469b3c=_0x469b3c-0x136;var _0x362bd6=a186_0x362b();var _0x3ce1d3=_0x362bd6[_0x469b3c];return _0x3ce1d3;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';function a186_0x362b(){var _0x24568a=['10CHJbGK','3qfYeiO','5061834BegLQT','31079543GyCuRZ','10GLnXex','6212080hpKoHU','7zPEjBC','7841874bUFRrx','1037368fKsQhi','174079LeqgDs','286266UWTYrz'];a186_0x362b=function(){return _0x24568a;};return a186_0x362b();}
1
+ (function(_0x3ff0bf,_0x243368){var _0x485696=a186_0x2f58,_0x62f134=_0x3ff0bf();while(!![]){try{var _0x2ca9f9=-parseInt(_0x485696(0x137))/0x1*(-parseInt(_0x485696(0x134))/0x2)+-parseInt(_0x485696(0x135))/0x3*(-parseInt(_0x485696(0x131))/0x4)+-parseInt(_0x485696(0x132))/0x5+parseInt(_0x485696(0x12e))/0x6*(-parseInt(_0x485696(0x138))/0x7)+-parseInt(_0x485696(0x136))/0x8+-parseInt(_0x485696(0x133))/0x9*(parseInt(_0x485696(0x12f))/0xa)+parseInt(_0x485696(0x130))/0xb;if(_0x2ca9f9===_0x243368)break;else _0x62f134['push'](_0x62f134['shift']());}catch(_0x11c30c){_0x62f134['push'](_0x62f134['shift']());}}}(a186_0x146e,0x3f5d4));function a186_0x146e(){var _0x16a02a=['125485hYRfnh','220108RsWObv','60cULJCj','1050DjbhsQ','12673353kQPmst','22668DbaaLI','1954410jQhtLf','12573pnHUnd','4irXTmY','9iAQpVQ','2468376GCXQUp'];a186_0x146e=function(){return _0x16a02a;};return a186_0x146e();}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a186_0x2f58(_0x3cde88,_0x29f582){_0x3cde88=_0x3cde88-0x12e;var _0x146e6c=a186_0x146e();var _0x2f581e=_0x146e6c[_0x3cde88];return _0x2f581e;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a187_0x44d0(){const _0x31af26=['1767128Vsfuwf','length','3614215RliBEZ','all','41172HVzQxT','1940448WWcYsk','119eCGtQp','8197551nQKRZr','slice','99gpCYjF','20PzfpcM','8uduaKh','1026417kOQMDG','366968xsAqTo','map'];a187_0x44d0=function(){return _0x31af26;};return a187_0x44d0();}(function(_0x394535,_0x444a60){const _0x124337=a187_0x4d85,_0x25d3ef=_0x394535();while(!![]){try{const _0x5f01bb=parseInt(_0x124337(0x175))/0x1+parseInt(_0x124337(0x17c))/0x2*(-parseInt(_0x124337(0x172))/0x3)+parseInt(_0x124337(0x174))/0x4*(parseInt(_0x124337(0x17a))/0x5)+parseInt(_0x124337(0x17d))/0x6+parseInt(_0x124337(0x16f))/0x7*(-parseInt(_0x124337(0x176))/0x8)+-parseInt(_0x124337(0x170))/0x9+-parseInt(_0x124337(0x173))/0xa*(-parseInt(_0x124337(0x178))/0xb);if(_0x5f01bb===_0x444a60)break;else _0x25d3ef['push'](_0x25d3ef['shift']());}catch(_0x2cef2b){_0x25d3ef['push'](_0x25d3ef['shift']());}}}(a187_0x44d0,0xb6547));function a187_0x4d85(_0x351f57,_0x30cd16){_0x351f57=_0x351f57-0x16f;const _0x44d021=a187_0x44d0();let _0x4d853f=_0x44d021[_0x351f57];return _0x4d853f;}export async function batchAsync(_0xf86f8a,_0x501aec,_0x2b2c02=0xa){const _0x6b6385=a187_0x4d85,_0x522131=[];for(let _0x4d28ed=0x0;_0x4d28ed<_0xf86f8a[_0x6b6385(0x179)];_0x4d28ed+=_0x2b2c02){const _0x3acd23=_0xf86f8a[_0x6b6385(0x171)](_0x4d28ed,_0x4d28ed+_0x2b2c02),_0x551062=await Promise[_0x6b6385(0x17b)](_0x3acd23[_0x6b6385(0x177)](_0x501aec));_0x522131['push'](..._0x551062);}return _0x522131;}
1
+ function a187_0x5d16(){const _0x8c2017=['26BfIHva','6LZHUsS','8gWwxqg','1792959vfdwhR','794898cLACrc','64rVCpcN','push','11XhCZaH','all','4046505FbNbks','926778PiLULf','3407810cKoePr','length','7894284zEadyN','2XUAGxZ','768359JbChdh'];a187_0x5d16=function(){return _0x8c2017;};return a187_0x5d16();}(function(_0x185923,_0x2cd346){const _0x3772d1=a187_0x1867,_0x3c54ac=_0x185923();while(!![]){try{const _0x3ef779=-parseInt(_0x3772d1(0x19f))/0x1*(parseInt(_0x3772d1(0x19e))/0x2)+parseInt(_0x3772d1(0x19a))/0x3*(-parseInt(_0x3772d1(0x192))/0x4)+-parseInt(_0x3772d1(0x199))/0x5+parseInt(_0x3772d1(0x1a1))/0x6*(parseInt(_0x3772d1(0x193))/0x7)+parseInt(_0x3772d1(0x195))/0x8*(parseInt(_0x3772d1(0x194))/0x9)+parseInt(_0x3772d1(0x19b))/0xa*(parseInt(_0x3772d1(0x197))/0xb)+parseInt(_0x3772d1(0x19d))/0xc*(parseInt(_0x3772d1(0x1a0))/0xd);if(_0x3ef779===_0x2cd346)break;else _0x3c54ac['push'](_0x3c54ac['shift']());}catch(_0x4421c0){_0x3c54ac['push'](_0x3c54ac['shift']());}}}(a187_0x5d16,0x67710));function a187_0x1867(_0x2f9ef1,_0x5d5213){_0x2f9ef1=_0x2f9ef1-0x192;const _0x5d16bf=a187_0x5d16();let _0x1867d6=_0x5d16bf[_0x2f9ef1];return _0x1867d6;}export async function batchAsync(_0x3b8c31,_0x176ce7,_0x274b75=0xa){const _0x4b9558=a187_0x1867,_0x14c013=[];for(let _0x33ffc0=0x0;_0x33ffc0<_0x3b8c31[_0x4b9558(0x19c)];_0x33ffc0+=_0x274b75){const _0x2b4668=_0x3b8c31['slice'](_0x33ffc0,_0x33ffc0+_0x274b75),_0xe27031=await Promise[_0x4b9558(0x198)](_0x2b4668['map'](_0x176ce7));_0x14c013[_0x4b9558(0x196)](..._0xe27031);}return _0x14c013;}
@@ -1 +1 @@
1
- const a188_0x23c45e=a188_0x1eed;(function(_0x3c8c38,_0x7b4435){const _0x1b68e0=a188_0x1eed,_0x10732e=_0x3c8c38();while(!![]){try{const _0x5c45d4=parseInt(_0x1b68e0(0x94))/0x1*(parseInt(_0x1b68e0(0x7c))/0x2)+parseInt(_0x1b68e0(0x96))/0x3+-parseInt(_0x1b68e0(0x83))/0x4*(parseInt(_0x1b68e0(0x7f))/0x5)+-parseInt(_0x1b68e0(0x7d))/0x6+parseInt(_0x1b68e0(0x84))/0x7+-parseInt(_0x1b68e0(0x93))/0x8*(parseInt(_0x1b68e0(0x87))/0x9)+-parseInt(_0x1b68e0(0x91))/0xa;if(_0x5c45d4===_0x7b4435)break;else _0x10732e['push'](_0x10732e['shift']());}catch(_0x395b12){_0x10732e['push'](_0x10732e['shift']());}}}(a188_0x2dde,0x39fc8));function a188_0x2dde(){const _0x5cbce2=['Chalk','78845mnbzCj','boolean','stringify','object','76kMGXBD','3258388TcnlMm','string','repeat','1513998mOiKnc','cyan','isArray','length','number','color','green','map','null','entries','1002500MtEksA','noColor','8FTYGYd','19457nfbAKd','yellow','443121baroJn','stdout','isTTY','join','dim','28qjcqzt','479964XhyIHm'];a188_0x2dde=function(){return _0x5cbce2;};return a188_0x2dde();}import*as a188_0xdd9f80 from'chalk';const Chalk=a188_0xdd9f80[a188_0x23c45e(0x7e)];export function shouldUseColor(_0x5b8bc0={}){const _0x36968d=a188_0x23c45e;if(_0x5b8bc0[_0x36968d(0x92)]===!![])return![];if(_0x5b8bc0[_0x36968d(0x8c)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x36968d(0x97)][_0x36968d(0x79)]??![];}export function getChalk(_0x30bc04={}){if(shouldUseColor(_0x30bc04))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4583a7,_0x4eefd8={}){return getChalk(_0x4eefd8)['dim'](_0x4583a7);}export function colorHeader(_0x55ca40,_0x277b6e={}){const _0x4b1741=a188_0x23c45e;return getChalk(_0x277b6e)[_0x4b1741(0x88)](_0x55ca40);}export function colorType(_0xe2a86e,_0x40add5={}){const _0x4af455=a188_0x23c45e;return getChalk(_0x40add5)[_0x4af455(0x7b)](_0xe2a86e);}export function colorJSONKey(_0x5637af,_0x5131e6={}){return getChalk(_0x5131e6)['blue'](_0x5637af);}export function colorJSONString(_0xeb8e1c,_0x2a71c={}){const _0x4b1bce=a188_0x23c45e;return getChalk(_0x2a71c)[_0x4b1bce(0x8d)](_0xeb8e1c);}export function colorJSONNumber(_0x3f7a16,_0x3be544={}){const _0x1817a7=a188_0x23c45e;return getChalk(_0x3be544)[_0x1817a7(0x88)](_0x3f7a16);}function a188_0x1eed(_0x4cc027,_0xc0f160){_0x4cc027=_0x4cc027-0x79;const _0x2dde1d=a188_0x2dde();let _0x1eed98=_0x2dde1d[_0x4cc027];return _0x1eed98;}export function colorJSONBoolean(_0x4a5355,_0x5cf0a5={}){const _0x224fe3=a188_0x23c45e;return getChalk(_0x5cf0a5)[_0x224fe3(0x95)](_0x4a5355);}export function colorJSONNull(_0x227500,_0x137f10={}){return getChalk(_0x137f10)['dim'](_0x227500);}export function colorizeJSONCompact(_0xebb932,_0x385268={}){const _0x2bd2d4=a188_0x23c45e;if(!shouldUseColor(_0x385268))return JSON[_0x2bd2d4(0x81)](_0xebb932);if(_0xebb932===null)return colorJSONNull(_0x2bd2d4(0x8f),_0x385268);if(typeof _0xebb932==='boolean')return colorJSONBoolean(String(_0xebb932),_0x385268);if(typeof _0xebb932==='number')return colorJSONNumber(String(_0xebb932),_0x385268);if(typeof _0xebb932==='string')return colorJSONString(JSON[_0x2bd2d4(0x81)](_0xebb932),_0x385268);if(Array[_0x2bd2d4(0x89)](_0xebb932)){if(_0xebb932['length']===0x0)return'[]';const _0x4ad98b=_0xebb932[_0x2bd2d4(0x8e)](_0x2a32c1=>colorizeJSONCompact(_0x2a32c1,_0x385268));return'['+_0x4ad98b[_0x2bd2d4(0x7a)](',')+']';}if(typeof _0xebb932==='object'){const _0x250547=Object[_0x2bd2d4(0x90)](_0xebb932);if(_0x250547[_0x2bd2d4(0x8a)]===0x0)return'{}';const _0x4f69f3=_0x250547[_0x2bd2d4(0x8e)](([_0x2e624a,_0x4d635a])=>{const _0x3dc970=_0x2bd2d4,_0x114be0=colorJSONKey(JSON[_0x3dc970(0x81)](_0x2e624a),_0x385268),_0x5f08d4=colorizeJSONCompact(_0x4d635a,_0x385268);return _0x114be0+':'+_0x5f08d4;});return'{'+_0x4f69f3['join'](',')+'}';}return String(_0xebb932);}export function colorizeJSON(_0x4a4091,_0x481ec7={},_0xc00d25=0x0){const _0x2a950c=a188_0x23c45e;if(!shouldUseColor(_0x481ec7))return JSON[_0x2a950c(0x81)](_0x4a4091,null,0x2);const _0x52c8c9='\x20'[_0x2a950c(0x86)](_0xc00d25),_0x589e76=_0xc00d25+0x2;if(_0x4a4091===null)return colorJSONNull(_0x2a950c(0x8f),_0x481ec7);if(typeof _0x4a4091===_0x2a950c(0x80))return colorJSONBoolean(String(_0x4a4091),_0x481ec7);if(typeof _0x4a4091===_0x2a950c(0x8b))return colorJSONNumber(String(_0x4a4091),_0x481ec7);if(typeof _0x4a4091===_0x2a950c(0x85))return colorJSONString(JSON['stringify'](_0x4a4091),_0x481ec7);if(Array['isArray'](_0x4a4091)){if(_0x4a4091['length']===0x0)return'[]';const _0x36ecc6=_0x4a4091[_0x2a950c(0x8e)](_0x4800ba=>{const _0x1ee9b8=_0x2a950c,_0x21a699=colorizeJSON(_0x4800ba,_0x481ec7,_0x589e76);return''+'\x20'[_0x1ee9b8(0x86)](_0x589e76)+_0x21a699;});return'[\x0a'+_0x36ecc6[_0x2a950c(0x7a)](',\x0a')+('\x0a'+_0x52c8c9+']');}if(typeof _0x4a4091===_0x2a950c(0x82)){const _0x1c7c7d=Object[_0x2a950c(0x90)](_0x4a4091);if(_0x1c7c7d[_0x2a950c(0x8a)]===0x0)return'{}';const _0x7b84a=_0x1c7c7d[_0x2a950c(0x8e)](([_0x2f5ddd,_0x4bfea6])=>{const _0x5e3d5e=_0x2a950c,_0x56d180=colorJSONKey(JSON[_0x5e3d5e(0x81)](_0x2f5ddd),_0x481ec7),_0x3ec5c3=colorizeJSON(_0x4bfea6,_0x481ec7,_0x589e76);return''+'\x20'[_0x5e3d5e(0x86)](_0x589e76)+_0x56d180+':\x20'+_0x3ec5c3;});return'{\x0a'+_0x7b84a[_0x2a950c(0x7a)](',\x0a')+('\x0a'+_0x52c8c9+'}');}return String(_0x4a4091);}
1
+ const a188_0xcc5af3=a188_0x8403;(function(_0x509af4,_0x37c880){const _0x26d813=a188_0x8403,_0x21a3b5=_0x509af4();while(!![]){try{const _0x5a9ec8=parseInt(_0x26d813(0x85))/0x1+-parseInt(_0x26d813(0x9f))/0x2+-parseInt(_0x26d813(0x8f))/0x3+-parseInt(_0x26d813(0x9b))/0x4*(parseInt(_0x26d813(0x94))/0x5)+parseInt(_0x26d813(0x90))/0x6+-parseInt(_0x26d813(0x89))/0x7*(parseInt(_0x26d813(0x9d))/0x8)+parseInt(_0x26d813(0x8e))/0x9;if(_0x5a9ec8===_0x37c880)break;else _0x21a3b5['push'](_0x21a3b5['shift']());}catch(_0x4f84cd){_0x21a3b5['push'](_0x21a3b5['shift']());}}}(a188_0x2634,0x5d23e));function a188_0x2634(){const _0x3d3560=['878326JWnAGc','yellow','green','join','90125fvGdQM','number','null','stdout','398755GDYfAV','entries','boolean','cyan','length','9848700HjDScv','344124uuJRZa','2001144xNPPRM','string','object','isTTY','1488755QYclSx','repeat','map','Chalk','noColor','stringify','isArray','4fZDASz','dim','40cGFZwH','color'];a188_0x2634=function(){return _0x3d3560;};return a188_0x2634();}import*as a188_0x512a9c from'chalk';const Chalk=a188_0x512a9c[a188_0xcc5af3(0x97)];export function shouldUseColor(_0xc4a6ae={}){const _0x52e76c=a188_0xcc5af3;if(_0xc4a6ae[_0x52e76c(0x98)]===!![])return![];if(_0xc4a6ae[_0x52e76c(0x9e)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x52e76c(0x88)][_0x52e76c(0x93)]??![];}export function getChalk(_0x435478={}){if(shouldUseColor(_0x435478))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x45e49d,_0x55d56e={}){const _0x20f03a=a188_0xcc5af3;return getChalk(_0x55d56e)[_0x20f03a(0x9c)](_0x45e49d);}export function colorHeader(_0x34667e,_0x502ff9={}){return getChalk(_0x502ff9)['cyan'](_0x34667e);}export function colorType(_0x163edf,_0x17c43e={}){return getChalk(_0x17c43e)['dim'](_0x163edf);}export function colorJSONKey(_0x28bd1a,_0x380063={}){return getChalk(_0x380063)['blue'](_0x28bd1a);}export function colorJSONString(_0x4f1449,_0x25aa20={}){const _0x165f4d=a188_0xcc5af3;return getChalk(_0x25aa20)[_0x165f4d(0x83)](_0x4f1449);}function a188_0x8403(_0x54331c,_0x319e0f){_0x54331c=_0x54331c-0x83;const _0x263434=a188_0x2634();let _0x84034=_0x263434[_0x54331c];return _0x84034;}export function colorJSONNumber(_0x336835,_0x516d55={}){const _0x1d641d=a188_0xcc5af3;return getChalk(_0x516d55)[_0x1d641d(0x8c)](_0x336835);}export function colorJSONBoolean(_0xf1384b,_0x3af6d9={}){const _0x4c9c16=a188_0xcc5af3;return getChalk(_0x3af6d9)[_0x4c9c16(0xa0)](_0xf1384b);}export function colorJSONNull(_0x47ae2c,_0x499123={}){const _0x3512c2=a188_0xcc5af3;return getChalk(_0x499123)[_0x3512c2(0x9c)](_0x47ae2c);}export function colorizeJSONCompact(_0x4ef25b,_0x8dc603={}){const _0x5e478f=a188_0xcc5af3;if(!shouldUseColor(_0x8dc603))return JSON[_0x5e478f(0x99)](_0x4ef25b);if(_0x4ef25b===null)return colorJSONNull(_0x5e478f(0x87),_0x8dc603);if(typeof _0x4ef25b===_0x5e478f(0x8b))return colorJSONBoolean(String(_0x4ef25b),_0x8dc603);if(typeof _0x4ef25b===_0x5e478f(0x86))return colorJSONNumber(String(_0x4ef25b),_0x8dc603);if(typeof _0x4ef25b===_0x5e478f(0x91))return colorJSONString(JSON[_0x5e478f(0x99)](_0x4ef25b),_0x8dc603);if(Array[_0x5e478f(0x9a)](_0x4ef25b)){if(_0x4ef25b[_0x5e478f(0x8d)]===0x0)return'[]';const _0x48659a=_0x4ef25b[_0x5e478f(0x96)](_0x2b8d33=>colorizeJSONCompact(_0x2b8d33,_0x8dc603));return'['+_0x48659a[_0x5e478f(0x84)](',')+']';}if(typeof _0x4ef25b===_0x5e478f(0x92)){const _0x28c6a0=Object[_0x5e478f(0x8a)](_0x4ef25b);if(_0x28c6a0['length']===0x0)return'{}';const _0x48d4aa=_0x28c6a0[_0x5e478f(0x96)](([_0x103cd8,_0x19f6e8])=>{const _0x11445e=_0x5e478f,_0x11edad=colorJSONKey(JSON[_0x11445e(0x99)](_0x103cd8),_0x8dc603),_0x1efa5f=colorizeJSONCompact(_0x19f6e8,_0x8dc603);return _0x11edad+':'+_0x1efa5f;});return'{'+_0x48d4aa[_0x5e478f(0x84)](',')+'}';}return String(_0x4ef25b);}export function colorizeJSON(_0x43b1ab,_0x1eff5b={},_0xfa4cf3=0x0){const _0x1ddb31=a188_0xcc5af3;if(!shouldUseColor(_0x1eff5b))return JSON[_0x1ddb31(0x99)](_0x43b1ab,null,0x2);const _0x303bb9='\x20'[_0x1ddb31(0x95)](_0xfa4cf3),_0x26300b=_0xfa4cf3+0x2;if(_0x43b1ab===null)return colorJSONNull('null',_0x1eff5b);if(typeof _0x43b1ab==='boolean')return colorJSONBoolean(String(_0x43b1ab),_0x1eff5b);if(typeof _0x43b1ab===_0x1ddb31(0x86))return colorJSONNumber(String(_0x43b1ab),_0x1eff5b);if(typeof _0x43b1ab===_0x1ddb31(0x91))return colorJSONString(JSON['stringify'](_0x43b1ab),_0x1eff5b);if(Array[_0x1ddb31(0x9a)](_0x43b1ab)){if(_0x43b1ab['length']===0x0)return'[]';const _0x519961=_0x43b1ab[_0x1ddb31(0x96)](_0x22a762=>{const _0x33083a=colorizeJSON(_0x22a762,_0x1eff5b,_0x26300b);return''+'\x20'['repeat'](_0x26300b)+_0x33083a;});return'[\x0a'+_0x519961[_0x1ddb31(0x84)](',\x0a')+('\x0a'+_0x303bb9+']');}if(typeof _0x43b1ab===_0x1ddb31(0x92)){const _0x12f968=Object[_0x1ddb31(0x8a)](_0x43b1ab);if(_0x12f968['length']===0x0)return'{}';const _0x5bf4fd=_0x12f968[_0x1ddb31(0x96)](([_0x4e8e64,_0x3407d1])=>{const _0x314945=_0x1ddb31,_0x4cdb81=colorJSONKey(JSON['stringify'](_0x4e8e64),_0x1eff5b),_0x586a36=colorizeJSON(_0x3407d1,_0x1eff5b,_0x26300b);return''+'\x20'[_0x314945(0x95)](_0x26300b)+_0x4cdb81+':\x20'+_0x586a36;});return'{\x0a'+_0x5bf4fd[_0x1ddb31(0x84)](',\x0a')+('\x0a'+_0x303bb9+'}');}return String(_0x43b1ab);}
@@ -1 +1 @@
1
- function a189_0x4196(){const _0x39c964=['new','unchanged','28386TlNVMW','\x20\x20\x20','\x20-\x20','length','old','forEach','join','push','84nXFGye','\x20+\x20','327215DxaHSG','3131584HOkxFl','type','\x20\x20...','102524OYDrBe','repeat','red','80EkJJVx','added','cyan','118146tXGNDI','content','2282076TSLUaL','fill','some','unshift','removed','2666695udlkJh','padStart','dim','66MMvgOy','max','split','min','green','add'];a189_0x4196=function(){return _0x39c964;};return a189_0x4196();}(function(_0x146885,_0x5f2f6f){const _0x12e73b=a189_0x1db8,_0x39b439=_0x146885();while(!![]){try{const _0x2bf956=-parseInt(_0x12e73b(0xf3))/0x1+parseInt(_0x12e73b(0x10f))/0x2+parseInt(_0x12e73b(0x107))/0x3*(-parseInt(_0x12e73b(0xf7))/0x4)+-parseInt(_0x12e73b(0x104))/0x5+-parseInt(_0x12e73b(0xfd))/0x6*(-parseInt(_0x12e73b(0x117))/0x7)+-parseInt(_0x12e73b(0xf4))/0x8+-parseInt(_0x12e73b(0xff))/0x9*(-parseInt(_0x12e73b(0xfa))/0xa);if(_0x2bf956===_0x5f2f6f)break;else _0x39b439['push'](_0x39b439['shift']());}catch(_0x4809ec){_0x39b439['push'](_0x39b439['shift']());}}}(a189_0x4196,0x71109));import a189_0x4f13f3 from'chalk';export function generateDiff(_0x2691cc,_0x58fa27){const _0x521f13=a189_0x1db8,_0xbef3de=_0x2691cc[_0x521f13(0x109)]('\x0a'),_0x16374d=_0x58fa27[_0x521f13(0x109)]('\x0a'),_0x2ae22e=[],_0x143a66=computeLCS(_0xbef3de,_0x16374d);let _0x58f926=0x0,_0x17eb14=0x0,_0x2f442a=0x0;while(_0x58f926<_0xbef3de[_0x521f13(0x112)]||_0x17eb14<_0x16374d[_0x521f13(0x112)]){if(_0x2f442a<_0x143a66[_0x521f13(0x112)]&&_0x58f926<_0xbef3de[_0x521f13(0x112)]&&_0xbef3de[_0x58f926]===_0x143a66[_0x2f442a])_0x17eb14<_0x16374d['length']&&_0x16374d[_0x17eb14]===_0x143a66[_0x2f442a]?(_0x2ae22e['push']({'type':_0x521f13(0x10e),'content':_0xbef3de[_0x58f926]}),_0x58f926++,_0x17eb14++,_0x2f442a++):(_0x2ae22e['push']({'type':_0x521f13(0xfb),'content':_0x16374d[_0x17eb14]}),_0x17eb14++);else{if(_0x2f442a<_0x143a66[_0x521f13(0x112)]&&_0x17eb14<_0x16374d[_0x521f13(0x112)]&&_0x16374d[_0x17eb14]===_0x143a66[_0x2f442a])_0x2ae22e['push']({'type':_0x521f13(0x103),'content':_0xbef3de[_0x58f926]}),_0x58f926++;else{if(_0x58f926<_0xbef3de[_0x521f13(0x112)]&&(_0x2f442a>=_0x143a66[_0x521f13(0x112)]||_0xbef3de[_0x58f926]!==_0x143a66[_0x2f442a]))_0x2ae22e['push']({'type':'removed','content':_0xbef3de[_0x58f926]}),_0x58f926++;else _0x17eb14<_0x16374d['length']&&(_0x2ae22e[_0x521f13(0x116)]({'type':_0x521f13(0xfb),'content':_0x16374d[_0x17eb14]}),_0x17eb14++);}}}return _0x2ae22e;}function a189_0x1db8(_0x3dfd77,_0x126510){_0x3dfd77=_0x3dfd77-0xf3;const _0x41962b=a189_0x4196();let _0x1db86=_0x41962b[_0x3dfd77];return _0x1db86;}function computeLCS(_0x1b92db,_0x4a8fc4){const _0x38cd4d=a189_0x1db8,_0x426e8d=_0x1b92db[_0x38cd4d(0x112)],_0xb36309=_0x4a8fc4[_0x38cd4d(0x112)],_0x38c02c=Array(_0x426e8d+0x1)['fill'](null)['map'](()=>Array(_0xb36309+0x1)[_0x38cd4d(0x100)](0x0));for(let _0x521896=0x1;_0x521896<=_0x426e8d;_0x521896++){for(let _0x1d8398=0x1;_0x1d8398<=_0xb36309;_0x1d8398++){_0x1b92db[_0x521896-0x1]===_0x4a8fc4[_0x1d8398-0x1]?_0x38c02c[_0x521896][_0x1d8398]=_0x38c02c[_0x521896-0x1][_0x1d8398-0x1]+0x1:_0x38c02c[_0x521896][_0x1d8398]=Math[_0x38cd4d(0x108)](_0x38c02c[_0x521896-0x1][_0x1d8398],_0x38c02c[_0x521896][_0x1d8398-0x1]);}}const _0x5eede8=[];let _0xb29914=_0x426e8d,_0x1816e9=_0xb36309;while(_0xb29914>0x0&&_0x1816e9>0x0){if(_0x1b92db[_0xb29914-0x1]===_0x4a8fc4[_0x1816e9-0x1])_0x5eede8[_0x38cd4d(0x102)](_0x1b92db[_0xb29914-0x1]),_0xb29914--,_0x1816e9--;else _0x38c02c[_0xb29914-0x1][_0x1816e9]>_0x38c02c[_0xb29914][_0x1816e9-0x1]?_0xb29914--:_0x1816e9--;}return _0x5eede8;}export function formatDiffWithColors(_0x4ecdb1,_0x18c5f9=0x3){const _0x15d603=a189_0x1db8,_0x55c7b5=new Set();_0x4ecdb1[_0x15d603(0x114)]((_0x231b5c,_0x14cad8)=>{const _0x3089d9=_0x15d603;_0x231b5c[_0x3089d9(0xf5)]!==_0x3089d9(0x10e)&&_0x55c7b5['add'](_0x14cad8);});if(_0x55c7b5['size']===0x0)return'';const _0x31beae=new Set();for(const _0x25111 of _0x55c7b5){for(let _0xc0013a=Math[_0x15d603(0x108)](0x0,_0x25111-_0x18c5f9);_0xc0013a<=Math[_0x15d603(0x10a)](_0x4ecdb1['length']-0x1,_0x25111+_0x18c5f9);_0xc0013a++){_0x31beae[_0x15d603(0x10c)](_0xc0013a);}}const _0x36127c=[];let _0x113bf7=-0x1;const _0xaf6b46=_0x4ecdb1[_0x15d603(0x112)],_0x450a79=Math[_0x15d603(0x108)](0x3,String(_0xaf6b46)[_0x15d603(0x112)]),_0x5af91c=[];let _0x42b2e5=0x0,_0xc8e846=0x0;for(const _0x1ace04 of _0x4ecdb1){if(_0x1ace04[_0x15d603(0xf5)]==='removed')_0x42b2e5++,_0x5af91c[_0x15d603(0x116)]({'old':_0x42b2e5,'new':0x0});else _0x1ace04[_0x15d603(0xf5)]==='added'?(_0xc8e846++,_0x5af91c[_0x15d603(0x116)]({'old':0x0,'new':_0xc8e846})):(_0x42b2e5++,_0xc8e846++,_0x5af91c[_0x15d603(0x116)]({'old':_0x42b2e5,'new':_0xc8e846}));}for(let _0x170d22=0x0;_0x170d22<_0x4ecdb1[_0x15d603(0x112)];_0x170d22++){if(!_0x31beae['has'](_0x170d22))continue;_0x113bf7!==-0x1&&_0x170d22>_0x113bf7+0x1&&_0x36127c[_0x15d603(0x116)](a189_0x4f13f3[_0x15d603(0xfc)](_0x15d603(0xf6)));_0x113bf7=_0x170d22;const _0x186534=_0x4ecdb1[_0x170d22],_0x50af13=_0x5af91c[_0x170d22],_0x6384e0=_0x50af13[_0x15d603(0x113)]>0x0?String(_0x50af13[_0x15d603(0x113)])[_0x15d603(0x105)](_0x450a79):'\x20'[_0x15d603(0xf8)](_0x450a79),_0x867bde=_0x50af13[_0x15d603(0x10d)]>0x0?String(_0x50af13[_0x15d603(0x10d)])[_0x15d603(0x105)](_0x450a79):'\x20'['repeat'](_0x450a79);switch(_0x186534[_0x15d603(0xf5)]){case'removed':_0x36127c['push'](a189_0x4f13f3[_0x15d603(0xf9)](_0x6384e0+'\x20'+_0x867bde+_0x15d603(0x111)+_0x186534[_0x15d603(0xfe)]));break;case _0x15d603(0xfb):_0x36127c['push'](a189_0x4f13f3[_0x15d603(0x10b)](_0x6384e0+'\x20'+_0x867bde+_0x15d603(0x118)+_0x186534[_0x15d603(0xfe)]));break;default:_0x36127c['push'](a189_0x4f13f3[_0x15d603(0x106)](_0x6384e0+'\x20'+_0x867bde+_0x15d603(0x110)+_0x186534[_0x15d603(0xfe)]));break;}}return _0x36127c[_0x15d603(0x115)]('\x0a');}export function hasChanges(_0x4f6c7e){const _0x2a7754=a189_0x1db8;return _0x4f6c7e[_0x2a7754(0x101)](_0x2deabe=>_0x2deabe[_0x2a7754(0xf5)]!==_0x2a7754(0x10e));}
1
+ (function(_0xf9d000,_0x5ea6df){const _0x55dabe=a189_0x2eac,_0x2626fd=_0xf9d000();while(!![]){try{const _0xcc69dd=parseInt(_0x55dabe(0xd9))/0x1+parseInt(_0x55dabe(0xe2))/0x2*(-parseInt(_0x55dabe(0xd2))/0x3)+-parseInt(_0x55dabe(0xd4))/0x4+-parseInt(_0x55dabe(0xe0))/0x5*(-parseInt(_0x55dabe(0xd1))/0x6)+parseInt(_0x55dabe(0xdb))/0x7+parseInt(_0x55dabe(0xee))/0x8*(-parseInt(_0x55dabe(0xde))/0x9)+-parseInt(_0x55dabe(0xdd))/0xa;if(_0xcc69dd===_0x5ea6df)break;else _0x2626fd['push'](_0x2626fd['shift']());}catch(_0x20bffd){_0x2626fd['push'](_0x2626fd['shift']());}}}(a189_0x4e76,0x55f1f));import a189_0x97dc05 from'chalk';export function generateDiff(_0x383c12,_0x14c54f){const _0x3cee09=a189_0x2eac,_0x2f9d1a=_0x383c12[_0x3cee09(0xe3)]('\x0a'),_0x26b05d=_0x14c54f['split']('\x0a'),_0x49639d=[],_0x4b735b=computeLCS(_0x2f9d1a,_0x26b05d);let _0x558643=0x0,_0xdf16bc=0x0,_0x5b02fb=0x0;while(_0x558643<_0x2f9d1a['length']||_0xdf16bc<_0x26b05d[_0x3cee09(0xcf)]){if(_0x5b02fb<_0x4b735b[_0x3cee09(0xcf)]&&_0x558643<_0x2f9d1a[_0x3cee09(0xcf)]&&_0x2f9d1a[_0x558643]===_0x4b735b[_0x5b02fb])_0xdf16bc<_0x26b05d[_0x3cee09(0xcf)]&&_0x26b05d[_0xdf16bc]===_0x4b735b[_0x5b02fb]?(_0x49639d['push']({'type':_0x3cee09(0xd0),'content':_0x2f9d1a[_0x558643]}),_0x558643++,_0xdf16bc++,_0x5b02fb++):(_0x49639d[_0x3cee09(0xce)]({'type':_0x3cee09(0xe4),'content':_0x26b05d[_0xdf16bc]}),_0xdf16bc++);else{if(_0x5b02fb<_0x4b735b[_0x3cee09(0xcf)]&&_0xdf16bc<_0x26b05d['length']&&_0x26b05d[_0xdf16bc]===_0x4b735b[_0x5b02fb])_0x49639d[_0x3cee09(0xce)]({'type':_0x3cee09(0xcd),'content':_0x2f9d1a[_0x558643]}),_0x558643++;else{if(_0x558643<_0x2f9d1a[_0x3cee09(0xcf)]&&(_0x5b02fb>=_0x4b735b[_0x3cee09(0xcf)]||_0x2f9d1a[_0x558643]!==_0x4b735b[_0x5b02fb]))_0x49639d['push']({'type':_0x3cee09(0xcd),'content':_0x2f9d1a[_0x558643]}),_0x558643++;else _0xdf16bc<_0x26b05d['length']&&(_0x49639d[_0x3cee09(0xce)]({'type':_0x3cee09(0xe4),'content':_0x26b05d[_0xdf16bc]}),_0xdf16bc++);}}}return _0x49639d;}function a189_0x4e76(){const _0x4bdb2e=['\x20\x20\x20','1958691oLGeTF','\x20+\x20','1703530pYQdVR','27sXOQun','some','295vYyHem','cyan','8cKiBei','split','added','add','old','padStart','new','map','forEach','content','type','fill','785976BODLoQ','join','repeat','removed','push','length','unchanged','55344uguqWE','160713GMAEil','\x20-\x20','1199108tBkXIz','red','unshift','max','\x20\x20...','507157zCbQJc'];a189_0x4e76=function(){return _0x4bdb2e;};return a189_0x4e76();}function a189_0x2eac(_0x190074,_0x150d09){_0x190074=_0x190074-0xcd;const _0x4e7638=a189_0x4e76();let _0x2eac76=_0x4e7638[_0x190074];return _0x2eac76;}function computeLCS(_0x3a88b6,_0x2eb20e){const _0x39b20c=a189_0x2eac,_0x47887f=_0x3a88b6[_0x39b20c(0xcf)],_0x115bb2=_0x2eb20e[_0x39b20c(0xcf)],_0x153066=Array(_0x47887f+0x1)[_0x39b20c(0xed)](null)[_0x39b20c(0xe9)](()=>Array(_0x115bb2+0x1)[_0x39b20c(0xed)](0x0));for(let _0x450e2b=0x1;_0x450e2b<=_0x47887f;_0x450e2b++){for(let _0x5d6083=0x1;_0x5d6083<=_0x115bb2;_0x5d6083++){_0x3a88b6[_0x450e2b-0x1]===_0x2eb20e[_0x5d6083-0x1]?_0x153066[_0x450e2b][_0x5d6083]=_0x153066[_0x450e2b-0x1][_0x5d6083-0x1]+0x1:_0x153066[_0x450e2b][_0x5d6083]=Math[_0x39b20c(0xd7)](_0x153066[_0x450e2b-0x1][_0x5d6083],_0x153066[_0x450e2b][_0x5d6083-0x1]);}}const _0x52fae3=[];let _0x5234c7=_0x47887f,_0xaa0f=_0x115bb2;while(_0x5234c7>0x0&&_0xaa0f>0x0){if(_0x3a88b6[_0x5234c7-0x1]===_0x2eb20e[_0xaa0f-0x1])_0x52fae3[_0x39b20c(0xd6)](_0x3a88b6[_0x5234c7-0x1]),_0x5234c7--,_0xaa0f--;else _0x153066[_0x5234c7-0x1][_0xaa0f]>_0x153066[_0x5234c7][_0xaa0f-0x1]?_0x5234c7--:_0xaa0f--;}return _0x52fae3;}export function formatDiffWithColors(_0x524076,_0xff8c7f=0x3){const _0x368948=a189_0x2eac,_0x4272c6=new Set();_0x524076[_0x368948(0xea)]((_0x3b17d0,_0x510d40)=>{const _0x2fcc73=_0x368948;_0x3b17d0[_0x2fcc73(0xec)]!=='unchanged'&&_0x4272c6[_0x2fcc73(0xe5)](_0x510d40);});if(_0x4272c6['size']===0x0)return'';const _0x25b1c7=new Set();for(const _0x2ee5cd of _0x4272c6){for(let _0x5abb14=Math[_0x368948(0xd7)](0x0,_0x2ee5cd-_0xff8c7f);_0x5abb14<=Math['min'](_0x524076[_0x368948(0xcf)]-0x1,_0x2ee5cd+_0xff8c7f);_0x5abb14++){_0x25b1c7[_0x368948(0xe5)](_0x5abb14);}}const _0x20952a=[];let _0x3c8ded=-0x1;const _0x3fab5b=_0x524076[_0x368948(0xcf)],_0x392864=Math[_0x368948(0xd7)](0x3,String(_0x3fab5b)[_0x368948(0xcf)]),_0x443534=[];let _0x3f720b=0x0,_0x120eb1=0x0;for(const _0x1c0dd6 of _0x524076){if(_0x1c0dd6[_0x368948(0xec)]===_0x368948(0xcd))_0x3f720b++,_0x443534[_0x368948(0xce)]({'old':_0x3f720b,'new':0x0});else _0x1c0dd6[_0x368948(0xec)]===_0x368948(0xe4)?(_0x120eb1++,_0x443534[_0x368948(0xce)]({'old':0x0,'new':_0x120eb1})):(_0x3f720b++,_0x120eb1++,_0x443534[_0x368948(0xce)]({'old':_0x3f720b,'new':_0x120eb1}));}for(let _0x494775=0x0;_0x494775<_0x524076[_0x368948(0xcf)];_0x494775++){if(!_0x25b1c7['has'](_0x494775))continue;_0x3c8ded!==-0x1&&_0x494775>_0x3c8ded+0x1&&_0x20952a['push'](a189_0x97dc05[_0x368948(0xe1)](_0x368948(0xd8)));_0x3c8ded=_0x494775;const _0x5444e8=_0x524076[_0x494775],_0xc3319e=_0x443534[_0x494775],_0x5f0435=_0xc3319e['old']>0x0?String(_0xc3319e[_0x368948(0xe6)])[_0x368948(0xe7)](_0x392864):'\x20'[_0x368948(0xf0)](_0x392864),_0x59d9dc=_0xc3319e['new']>0x0?String(_0xc3319e[_0x368948(0xe8)])[_0x368948(0xe7)](_0x392864):'\x20'[_0x368948(0xf0)](_0x392864);switch(_0x5444e8[_0x368948(0xec)]){case'removed':_0x20952a[_0x368948(0xce)](a189_0x97dc05[_0x368948(0xd5)](_0x5f0435+'\x20'+_0x59d9dc+_0x368948(0xd3)+_0x5444e8[_0x368948(0xeb)]));break;case _0x368948(0xe4):_0x20952a[_0x368948(0xce)](a189_0x97dc05['green'](_0x5f0435+'\x20'+_0x59d9dc+_0x368948(0xdc)+_0x5444e8['content']));break;default:_0x20952a[_0x368948(0xce)](a189_0x97dc05['dim'](_0x5f0435+'\x20'+_0x59d9dc+_0x368948(0xda)+_0x5444e8[_0x368948(0xeb)]));break;}}return _0x20952a[_0x368948(0xef)]('\x0a');}export function hasChanges(_0x47d20e){const _0x25298b=a189_0x2eac;return _0x47d20e[_0x25298b(0xdf)](_0x5c0a46=>_0x5c0a46[_0x25298b(0xec)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x4ae80d,_0x3b1ac1){const _0x255fc1=a190_0x56b8,_0x47e272=_0x4ae80d();while(!![]){try{const _0x48968f=-parseInt(_0x255fc1(0x11c))/0x1*(-parseInt(_0x255fc1(0x10c))/0x2)+-parseInt(_0x255fc1(0x10f))/0x3+-parseInt(_0x255fc1(0x11d))/0x4+parseInt(_0x255fc1(0x11a))/0x5*(parseInt(_0x255fc1(0x117))/0x6)+parseInt(_0x255fc1(0x115))/0x7*(parseInt(_0x255fc1(0x113))/0x8)+-parseInt(_0x255fc1(0x10b))/0x9+parseInt(_0x255fc1(0x10a))/0xa;if(_0x48968f===_0x3b1ac1)break;else _0x47e272['push'](_0x47e272['shift']());}catch(_0xd2c809){_0x47e272['push'](_0x47e272['shift']());}}}(a190_0x5b88,0x93549));import*as a190_0x58f06a from'node:fs';import*as a190_0x43c602 from'node:path';export function setSecureFilePermissions(_0x4d783e){const _0x54119f=a190_0x56b8;try{a190_0x58f06a['chmodSync'](_0x4d783e,0x180);}catch{console[_0x54119f(0x111)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x4d783e);}}export function setSecureDirectoryPermissions(_0x3a25b0){const _0x173178=a190_0x56b8;try{a190_0x58f06a[_0x173178(0x119)](_0x3a25b0,0x1c0);}catch{console[_0x173178(0x111)](_0x173178(0x114)+_0x3a25b0);}}export function createSecureDirectory(_0x45cfc8){const _0x4f0348=a190_0x56b8;!a190_0x58f06a[_0x4f0348(0x10d)](_0x45cfc8)&&(a190_0x58f06a[_0x4f0348(0x110)](_0x45cfc8,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x45cfc8));}function a190_0x5b88(){const _0x4a1691=['writeFileSync','statSync','13455110MYRxEZ','8074593aVosun','10sgUMAP','existsSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','2894031iOZmwq','mkdirSync','warn','Warning:\x20','42784IsOpXV','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1253SjBWKM','toString','6WEnoCM','mode','chmodSync','5523355UwbiJU','dirname','21016DEzpZI','4188940hAyHdN'];a190_0x5b88=function(){return _0x4a1691;};return a190_0x5b88();}function a190_0x56b8(_0x29dbd5,_0x526485){_0x29dbd5=_0x29dbd5-0x10a;const _0x5b88a6=a190_0x5b88();let _0x56b855=_0x5b88a6[_0x29dbd5];return _0x56b855;}export function validateSecureFilePermissions(_0xa84381){const _0x21e9be=a190_0x56b8;try{const _0x2b34ab=a190_0x58f06a[_0x21e9be(0x11f)](_0xa84381),_0x39dd2=_0x2b34ab[_0x21e9be(0x118)]&0x1ff,_0x3b7c0a=(_0x39dd2&0x3f)!==0x0;if(_0x3b7c0a)return console[_0x21e9be(0x111)](_0x21e9be(0x112)+_0xa84381+'\x20has\x20insecure\x20permissions\x20('+_0x39dd2[_0x21e9be(0x116)](0x8)+').\x20'+_0x21e9be(0x10e)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x517e8c,_0x86c4e7){const _0x3f0efb=a190_0x56b8,_0x212732=a190_0x43c602[_0x3f0efb(0x11b)](_0x517e8c);createSecureDirectory(_0x212732),a190_0x58f06a[_0x3f0efb(0x11e)](_0x517e8c,_0x86c4e7,{'mode':0x180}),setSecureFilePermissions(_0x517e8c);}
1
+ (function(_0x569d7a,_0x3a51af){const _0xab7275=a190_0x532a,_0x345dd5=_0x569d7a();while(!![]){try{const _0x5790c3=parseInt(_0xab7275(0x128))/0x1+-parseInt(_0xab7275(0x122))/0x2*(-parseInt(_0xab7275(0x125))/0x3)+parseInt(_0xab7275(0x124))/0x4*(parseInt(_0xab7275(0x127))/0x5)+-parseInt(_0xab7275(0x11f))/0x6*(parseInt(_0xab7275(0x130))/0x7)+parseInt(_0xab7275(0x12a))/0x8+-parseInt(_0xab7275(0x12f))/0x9*(parseInt(_0xab7275(0x12d))/0xa)+-parseInt(_0xab7275(0x129))/0xb;if(_0x5790c3===_0x3a51af)break;else _0x345dd5['push'](_0x345dd5['shift']());}catch(_0x27fb0c){_0x345dd5['push'](_0x345dd5['shift']());}}}(a190_0x1967,0x20136));function a190_0x1967(){const _0x9c033f=['261171GvxjmW','4546850yJwbbr','1478824GMIjsQ','toString','dirname','340xWdODR','\x20has\x20insecure\x20permissions\x20(','47889yPQuUU','279608KzFrjE','writeFileSync','warn','chmodSync','12ogUFWT','mode','statSync','8uNRpcQ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','332236wuNrhb','145044umfyrF',').\x20','10rckYJX'];a190_0x1967=function(){return _0x9c033f;};return a190_0x1967();}import*as a190_0x27f3dd from'node:fs';import*as a190_0x5cbf63 from'node:path';export function setSecureFilePermissions(_0x4e6c7a){const _0x6c38c1=a190_0x532a;try{a190_0x27f3dd['chmodSync'](_0x4e6c7a,0x180);}catch{console[_0x6c38c1(0x11d)](_0x6c38c1(0x123)+_0x4e6c7a);}}function a190_0x532a(_0x2e0ae0,_0x32d6a9){_0x2e0ae0=_0x2e0ae0-0x11c;const _0x19675d=a190_0x1967();let _0x532a8d=_0x19675d[_0x2e0ae0];return _0x532a8d;}export function setSecureDirectoryPermissions(_0x55513a){const _0x442d03=a190_0x532a;try{a190_0x27f3dd[_0x442d03(0x11e)](_0x55513a,0x1c0);}catch{console[_0x442d03(0x11d)](_0x442d03(0x123)+_0x55513a);}}export function createSecureDirectory(_0x29d607){!a190_0x27f3dd['existsSync'](_0x29d607)&&(a190_0x27f3dd['mkdirSync'](_0x29d607,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x29d607));}export function validateSecureFilePermissions(_0x7c5843){const _0x48d336=a190_0x532a;try{const _0xcd66aa=a190_0x27f3dd[_0x48d336(0x121)](_0x7c5843),_0x5a4cb9=_0xcd66aa[_0x48d336(0x120)]&0x1ff,_0x83d0c7=(_0x5a4cb9&0x3f)!==0x0;if(_0x83d0c7)return console[_0x48d336(0x11d)]('Warning:\x20'+_0x7c5843+_0x48d336(0x12e)+_0x5a4cb9[_0x48d336(0x12b)](0x8)+_0x48d336(0x126)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x328a74,_0x19db5a){const _0x20485d=a190_0x532a,_0x348544=a190_0x5cbf63[_0x20485d(0x12c)](_0x328a74);createSecureDirectory(_0x348544),a190_0x27f3dd[_0x20485d(0x11c)](_0x328a74,_0x19db5a,{'mode':0x180}),setSecureFilePermissions(_0x328a74);}
@@ -1 +1 @@
1
- (function(_0x25eb8b,_0x362c12){const _0x2e394c=a191_0x4fb0,_0x16e00e=_0x25eb8b();while(!![]){try{const _0x4e5025=-parseInt(_0x2e394c(0x13e))/0x1+parseInt(_0x2e394c(0x139))/0x2+parseInt(_0x2e394c(0x12f))/0x3+-parseInt(_0x2e394c(0x13d))/0x4*(parseInt(_0x2e394c(0x13f))/0x5)+parseInt(_0x2e394c(0x132))/0x6*(parseInt(_0x2e394c(0x136))/0x7)+-parseInt(_0x2e394c(0x130))/0x8+-parseInt(_0x2e394c(0x137))/0x9*(parseInt(_0x2e394c(0x12e))/0xa);if(_0x4e5025===_0x362c12)break;else _0x16e00e['push'](_0x16e00e['shift']());}catch(_0x41bc29){_0x16e00e['push'](_0x16e00e['shift']());}}}(a191_0x3f98,0xd755b));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a191_0x4fb0(_0x215381,_0x442417){_0x215381=_0x215381-0x12e;const _0x3f98ea=a191_0x3f98();let _0x4fb05f=_0x3f98ea[_0x215381];return _0x4fb05f;}function a191_0x3f98(){const _0x24222a=['code','3520292KSfwMt','File\x20\x27','EACCES','Error\x20reading\x20file\x20\x27','4SLzWga','423822ZHswDE','2743115TBVTso','\x27\x20not\x20found','INTERNAL','\x27:\x20','18444570pLnBRj','3903510pqmmYu','6491600eeDqaF','utf-8','606aUqPDI','PERMISSION_DENIED','Permission\x20denied\x20reading\x20file\x20\x27','ENOENT','100429mToBkA','9FDvPsh'];a191_0x3f98=function(){return _0x24222a;};return a191_0x3f98();}export function readFileContent(_0x3ab1e0){const _0x17f70a=a191_0x4fb0;try{return readFileSync(_0x3ab1e0,_0x17f70a(0x131));}catch(_0x41ab66){const _0xfa6bbf=_0x41ab66[_0x17f70a(0x138)];if(_0xfa6bbf===_0x17f70a(0x135))throw new SDKError(ErrorCode['NOT_FOUND'],_0x17f70a(0x13a)+_0x3ab1e0+_0x17f70a(0x140),_0x41ab66);else{if(_0xfa6bbf===_0x17f70a(0x13b))throw new SDKError(ErrorCode[_0x17f70a(0x133)],_0x17f70a(0x134)+_0x3ab1e0+'\x27',_0x41ab66);else throw new SDKError(ErrorCode[_0x17f70a(0x141)],_0x17f70a(0x13c)+_0x3ab1e0+_0x17f70a(0x142)+_0x41ab66['message'],_0x41ab66);}}}
1
+ function a191_0x51bf(_0x3eb877,_0x5c1e1e){_0x3eb877=_0x3eb877-0xd8;const _0x3a58c3=a191_0x3a58();let _0x51bfe1=_0x3a58c3[_0x3eb877];return _0x51bfe1;}(function(_0x448cf1,_0x5a8584){const _0x4b2f67=a191_0x51bf,_0x43fce9=_0x448cf1();while(!![]){try{const _0x507918=-parseInt(_0x4b2f67(0xe3))/0x1*(parseInt(_0x4b2f67(0xdb))/0x2)+parseInt(_0x4b2f67(0xe0))/0x3+parseInt(_0x4b2f67(0xe4))/0x4*(-parseInt(_0x4b2f67(0xd8))/0x5)+-parseInt(_0x4b2f67(0xdd))/0x6+-parseInt(_0x4b2f67(0xde))/0x7+parseInt(_0x4b2f67(0xda))/0x8*(-parseInt(_0x4b2f67(0xea))/0x9)+parseInt(_0x4b2f67(0xdf))/0xa*(parseInt(_0x4b2f67(0xe9))/0xb);if(_0x507918===_0x5a8584)break;else _0x43fce9['push'](_0x43fce9['shift']());}catch(_0x5e87ee){_0x43fce9['push'](_0x43fce9['shift']());}}}(a191_0x3a58,0xbc76f));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x4a24d7){const _0x45a9cb=a191_0x51bf;try{return readFileSync(_0x4a24d7,_0x45a9cb(0xd9));}catch(_0x719470){const _0x49bbb8=_0x719470['code'];if(_0x49bbb8==='ENOENT')throw new SDKError(ErrorCode[_0x45a9cb(0xeb)],_0x45a9cb(0xe2)+_0x4a24d7+_0x45a9cb(0xe6),_0x719470);else{if(_0x49bbb8===_0x45a9cb(0xdc))throw new SDKError(ErrorCode[_0x45a9cb(0xe1)],_0x45a9cb(0xe5)+_0x4a24d7+'\x27',_0x719470);else throw new SDKError(ErrorCode['INTERNAL'],'Error\x20reading\x20file\x20\x27'+_0x4a24d7+_0x45a9cb(0xe8)+_0x719470[_0x45a9cb(0xe7)],_0x719470);}}}function a191_0x3a58(){const _0x4459e3=['9045ujjoiY','NOT_FOUND','290EFmbwn','utf-8','7312FhiWnQ','330OOqPnc','EACCES','6813378UXQPXb','9558920FuYCkH','44018500HAdgiW','3607530OntuVR','PERMISSION_DENIED','File\x20\x27','508yxVnfh','91648FATeuC','Permission\x20denied\x20reading\x20file\x20\x27','\x27\x20not\x20found','message','\x27:\x20','11qwZLgT'];a191_0x3a58=function(){return _0x4459e3;};return a191_0x3a58();}
@@ -1 +1 @@
1
- (function(_0x1718ae,_0x2f6795){const _0x3ee8b1=a192_0x409c,_0x4ed562=_0x1718ae();while(!![]){try{const _0x5ca27e=-parseInt(_0x3ee8b1(0x108))/0x1*(parseInt(_0x3ee8b1(0x10e))/0x2)+parseInt(_0x3ee8b1(0x102))/0x3+parseInt(_0x3ee8b1(0x113))/0x4+parseInt(_0x3ee8b1(0x105))/0x5*(-parseInt(_0x3ee8b1(0x112))/0x6)+-parseInt(_0x3ee8b1(0x111))/0x7*(parseInt(_0x3ee8b1(0xfc))/0x8)+-parseInt(_0x3ee8b1(0x11a))/0x9*(parseInt(_0x3ee8b1(0x100))/0xa)+parseInt(_0x3ee8b1(0x10d))/0xb;if(_0x5ca27e===_0x2f6795)break;else _0x4ed562['push'](_0x4ed562['shift']());}catch(_0x3a8f46){_0x4ed562['push'](_0x4ed562['shift']());}}}(a192_0x19ad,0xbb344));function a192_0x19ad(){const _0x23499e=['toString','/releases?per_page=20','application/vnd.github+json','timeout','4929352nBrsbT','next','fetchedAt','resolve','10fEzGTJ','set','2475753lQUtSg','prerelease','api.github.com','1545205HSOzYO','/repos/','GitHub\x20API\x20returned\x20','51fUcUaj','tag_name','slice','parse','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','28494180UQeXLl','16194uDyvlp','destroy','end','7OYdaPF','24rxzBxF','2040380dUtEvQ','get','error','find','releases','statusCode','now','8042922kcyUJn'];a192_0x19ad=function(){return _0x23499e;};return a192_0x19ad();}function a192_0x409c(_0x199641,_0x258b6a){_0x199641=_0x199641-0xf9;const _0x19ad28=a192_0x19ad();let _0x409c75=_0x19ad28[_0x199641];return _0x409c75;}import*as a192_0x127ea3 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x11902c,_0x2ed9b6,_0x2830fd){const _0x18510d=a192_0x409c,_0x3d8813=_0x11902c+'/'+_0x2ed9b6,_0xee3399=cache[_0x18510d(0x114)](_0x3d8813);if(_0xee3399&&Date[_0x18510d(0x119)]()-_0xee3399[_0x18510d(0xfe)]<CACHE_TTL_MS)return Promise[_0x18510d(0xff)](_0xee3399[_0x18510d(0x117)]);return new Promise((_0x1faa09,_0xe72463)=>{const _0x3a7c0d=_0x18510d,_0x1ab57e={'hostname':_0x3a7c0d(0x104),'path':_0x3a7c0d(0x106)+_0x11902c+'/'+_0x2ed9b6+_0x3a7c0d(0xf9),'headers':{'User-Agent':_0x2830fd,'Accept':_0x3a7c0d(0xfa)},'timeout':REQUEST_TIMEOUT_MS},_0x5c5edb=a192_0x127ea3[_0x3a7c0d(0x114)](_0x1ab57e,_0x53e10f=>{const _0x2f218a=_0x3a7c0d;let _0x38629a='';_0x53e10f['on']('data',_0x567398=>{const _0x4be49c=a192_0x409c;_0x38629a+=_0x567398[_0x4be49c(0x11b)]();}),_0x53e10f['on'](_0x2f218a(0x110),()=>{const _0x314d70=_0x2f218a;if(_0x53e10f[_0x314d70(0x118)]!==0xc8){_0xe72463(new Error(_0x314d70(0x107)+_0x53e10f[_0x314d70(0x118)]+':\x20'+_0x38629a[_0x314d70(0x10a)](0x0,0xc8)));return;}try{const _0x2dfc3a=JSON[_0x314d70(0x10b)](_0x38629a);cache[_0x314d70(0x101)](_0x3d8813,{'releases':_0x2dfc3a,'fetchedAt':Date[_0x314d70(0x119)]()}),_0x1faa09(_0x2dfc3a);}catch(_0x343f37){_0xe72463(_0x343f37);}});});_0x5c5edb['on'](_0x3a7c0d(0xfb),()=>{const _0x4fb98d=_0x3a7c0d;_0x5c5edb[_0x4fb98d(0x10f)](),_0xe72463(new Error(_0x4fb98d(0x10c)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5c5edb['on'](_0x3a7c0d(0x115),_0xe72463);});}export async function resolveReleaseTag(_0x34e5be,_0x4587ee,_0x5cd1ce,_0x24dbb0){const _0x1d488b=a192_0x409c,_0x25d7e9=await fetchGitHubReleases(_0x4587ee,_0x5cd1ce,_0x24dbb0);if(_0x25d7e9['length']===0x0)return null;if(_0x34e5be===_0x1d488b(0xfd))return _0x25d7e9[0x0][_0x1d488b(0x109)];const _0x21e7ce=_0x25d7e9[_0x1d488b(0x116)](_0xf650d2=>!_0xf650d2[_0x1d488b(0x103)]);return _0x21e7ce?_0x21e7ce['tag_name']:null;}
1
+ (function(_0x1f3a2f,_0x510368){const _0x2a5cf7=a192_0x4cd7,_0x6c70fa=_0x1f3a2f();while(!![]){try{const _0x36056a=parseInt(_0x2a5cf7(0x1d3))/0x1*(-parseInt(_0x2a5cf7(0x1dd))/0x2)+parseInt(_0x2a5cf7(0x1e7))/0x3+parseInt(_0x2a5cf7(0x1db))/0x4+-parseInt(_0x2a5cf7(0x1ed))/0x5+parseInt(_0x2a5cf7(0x1e6))/0x6+parseInt(_0x2a5cf7(0x1e3))/0x7+-parseInt(_0x2a5cf7(0x1d9))/0x8*(parseInt(_0x2a5cf7(0x1e1))/0x9);if(_0x36056a===_0x510368)break;else _0x6c70fa['push'](_0x6c70fa['shift']());}catch(_0x41e1ae){_0x6c70fa['push'](_0x6c70fa['shift']());}}}(a192_0x4952,0xa146f));import*as a192_0x523790 from'node:https';function a192_0x4cd7(_0x3d6339,_0x2b9c14){_0x3d6339=_0x3d6339-0x1d2;const _0x495291=a192_0x4952();let _0x4cd751=_0x495291[_0x3d6339];return _0x4cd751;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a192_0x4952(){const _0x3e5ff1=['api.github.com','GitHub\x20API\x20returned\x20','error','1024bZtRBl','data','712416TIRsqk','tag_name','480646ZeRdrN','prerelease','application/vnd.github+json','/repos/','40644rxsYbQ','length','8754109nFHgiS','next','toString','3674868AvgUrW','190437zmWfVW','now','fetchedAt','slice','releases','end','3128430dfgmte','set','get','find','1AlzxbS','statusCode','GitHub\x20API\x20request\x20timed\x20out\x20after\x20'];a192_0x4952=function(){return _0x3e5ff1;};return a192_0x4952();}export function fetchGitHubReleases(_0x25a44f,_0x3813c7,_0x45a1c6){const _0x309e32=a192_0x4cd7,_0x4af9dd=_0x25a44f+'/'+_0x3813c7,_0x2dcd75=cache[_0x309e32(0x1ef)](_0x4af9dd);if(_0x2dcd75&&Date[_0x309e32(0x1e8)]()-_0x2dcd75[_0x309e32(0x1e9)]<CACHE_TTL_MS)return Promise['resolve'](_0x2dcd75[_0x309e32(0x1eb)]);return new Promise((_0x354f07,_0xc9abe5)=>{const _0x23ff39=_0x309e32,_0x5196c7={'hostname':_0x23ff39(0x1d6),'path':_0x23ff39(0x1e0)+_0x25a44f+'/'+_0x3813c7+'/releases?per_page=20','headers':{'User-Agent':_0x45a1c6,'Accept':_0x23ff39(0x1df)},'timeout':REQUEST_TIMEOUT_MS},_0x320019=a192_0x523790[_0x23ff39(0x1ef)](_0x5196c7,_0x3a07a5=>{const _0x4ed48a=_0x23ff39;let _0x31e9b0='';_0x3a07a5['on'](_0x4ed48a(0x1da),_0x335212=>{const _0x20eac2=_0x4ed48a;_0x31e9b0+=_0x335212[_0x20eac2(0x1e5)]();}),_0x3a07a5['on'](_0x4ed48a(0x1ec),()=>{const _0x375816=_0x4ed48a;if(_0x3a07a5['statusCode']!==0xc8){_0xc9abe5(new Error(_0x375816(0x1d7)+_0x3a07a5[_0x375816(0x1d4)]+':\x20'+_0x31e9b0[_0x375816(0x1ea)](0x0,0xc8)));return;}try{const _0x4c12ed=JSON['parse'](_0x31e9b0);cache[_0x375816(0x1ee)](_0x4af9dd,{'releases':_0x4c12ed,'fetchedAt':Date['now']()}),_0x354f07(_0x4c12ed);}catch(_0x18ed27){_0xc9abe5(_0x18ed27);}});});_0x320019['on']('timeout',()=>{const _0x4f9442=_0x23ff39;_0x320019['destroy'](),_0xc9abe5(new Error(_0x4f9442(0x1d5)+REQUEST_TIMEOUT_MS+'ms'));}),_0x320019['on'](_0x23ff39(0x1d8),_0xc9abe5);});}export async function resolveReleaseTag(_0x5aa0a0,_0x2f60fa,_0x325ec4,_0x4a29c4){const _0x45a08c=a192_0x4cd7,_0x3dce1e=await fetchGitHubReleases(_0x2f60fa,_0x325ec4,_0x4a29c4);if(_0x3dce1e[_0x45a08c(0x1e2)]===0x0)return null;if(_0x5aa0a0===_0x45a08c(0x1e4))return _0x3dce1e[0x0]['tag_name'];const _0x595631=_0x3dce1e[_0x45a08c(0x1d2)](_0x120b1c=>!_0x120b1c[_0x45a08c(0x1de)]);return _0x595631?_0x595631[_0x45a08c(0x1dc)]:null;}
@@ -1 +1 @@
1
- (function(_0x318ee6,_0x3a2db9){const _0x1dae15=a193_0x5c6a,_0x4487c0=_0x318ee6();while(!![]){try{const _0x13da71=-parseInt(_0x1dae15(0xb4))/0x1*(parseInt(_0x1dae15(0xb1))/0x2)+parseInt(_0x1dae15(0xa9))/0x3+parseInt(_0x1dae15(0xb6))/0x4*(-parseInt(_0x1dae15(0xb5))/0x5)+-parseInt(_0x1dae15(0xb8))/0x6+-parseInt(_0x1dae15(0xb0))/0x7+-parseInt(_0x1dae15(0xaa))/0x8*(-parseInt(_0x1dae15(0xa4))/0x9)+parseInt(_0x1dae15(0xa5))/0xa*(parseInt(_0x1dae15(0xbb))/0xb);if(_0x13da71===_0x3a2db9)break;else _0x4487c0['push'](_0x4487c0['shift']());}catch(_0x56d059){_0x4487c0['push'](_0x4487c0['shift']());}}}(a193_0xe2b5,0x32aa7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a193_0x5c6a(_0x4e539d,_0x25bef4){_0x4e539d=_0x4e539d-0xa4;const _0xe2b52d=a193_0xe2b5();let _0x5c6aff=_0xe2b52d[_0x4e539d];return _0x5c6aff;}function a193_0xe2b5(){const _0x15b67a=['tdx','230NJpAzQ','23410EaEHzZ','156ODtRJo','clear','1832412DsbiaX','get','default','77BHSOtd','108nxwINE','1137930tZmsMz','Global\x20cache\x20key\x20\x22','{profile}','parse','713994jKvDWg','169384ZKFMCH','\x22,\x20cannot\x20register\x20for\x20\x22','trim','utf-8','set','\x22\x20already\x20registered\x20by\x20\x22','1733466QNSuzX','3004xqlHrl','replace'];a193_0xe2b5=function(){return _0x15b67a;};return a193_0xe2b5();}import{homedir}from'os';export function getGlobalCacheDir(){const _0x3acaa3=a193_0x5c6a;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x3acaa3(0xb3));}const registry=new Map();export function registerGlobalCacheKey(_0x4e1f28,_0x557004){const _0x3ff881=a193_0x5c6a,_0x21bce3=registry[_0x3ff881(0xb9)](_0x4e1f28);if(_0x21bce3&&_0x21bce3!==_0x557004)throw new Error(_0x3ff881(0xa6)+_0x4e1f28+_0x3ff881(0xaf)+_0x21bce3+_0x3ff881(0xab)+_0x557004+'\x22');registry[_0x3ff881(0xae)](_0x4e1f28,_0x557004);}export function getGlobalCachePath(_0x4a4f68){return join(getGlobalCacheDir(),_0x4a4f68);}function ensureGlobalCacheDir(){const _0x114711=getGlobalCacheDir();!existsSync(_0x114711)&&mkdirSync(_0x114711,{'recursive':!![]});}function readCacheJson(_0xf792b1){const _0x3d8956=a193_0x5c6a,_0xf5d438=getGlobalCachePath(_0xf792b1);if(!existsSync(_0xf5d438))return undefined;try{const _0x205386=readFileSync(_0xf5d438,'utf-8');return JSON[_0x3d8956(0xa8)](_0x205386);}catch{return undefined;}}function writeCacheJson(_0x58f5d4,_0x201876){const _0x30eb6b=a193_0x5c6a;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x58f5d4),JSON['stringify'](_0x201876,null,0x2),_0x30eb6b(0xad));}function readCacheText(_0x59a51a){const _0x7ff9f9=a193_0x5c6a,_0x22caa0=getGlobalCachePath(_0x59a51a);if(!existsSync(_0x22caa0))return undefined;try{return readFileSync(_0x22caa0,_0x7ff9f9(0xad));}catch{return undefined;}}function writeCacheText(_0x4e421d,_0xb382a7){const _0x434f33=a193_0x5c6a;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4e421d),_0xb382a7,_0x434f33(0xad));}function clearCache(_0x4dd0b9){const _0x37ebf8=getGlobalCachePath(_0x4dd0b9);if(existsSync(_0x37ebf8))try{unlinkSync(_0x37ebf8);}catch{}}function cacheExists(_0x1f40b1){return existsSync(getGlobalCachePath(_0x1f40b1));}export function createGlobalCache(_0x2105d3,_0x5b5dd7){return registerGlobalCacheKey(_0x2105d3,_0x5b5dd7),{'read':()=>readCacheJson(_0x2105d3),'write':_0x4e3d34=>writeCacheJson(_0x2105d3,_0x4e3d34),'clear':()=>clearCache(_0x2105d3),'exists':()=>cacheExists(_0x2105d3),'path':()=>getGlobalCachePath(_0x2105d3)};}export function createGlobalTextCache(_0x39b1a6,_0x596a8a){const _0x5a4d21=a193_0x5c6a;return registerGlobalCacheKey(_0x39b1a6,_0x596a8a),{'read':()=>readCacheText(_0x39b1a6)?.[_0x5a4d21(0xac)]()||undefined,'write':_0x117fe6=>writeCacheText(_0x39b1a6,_0x117fe6),'clear':()=>clearCache(_0x39b1a6),'exists':()=>cacheExists(_0x39b1a6),'path':()=>getGlobalCachePath(_0x39b1a6)};}export function createProfileCache(_0x1ec218,_0x8fc740){const _0x548a38=_0x424de1=>{const _0x39d4a5=a193_0x5c6a,_0x2f916b=_0x424de1||_0x39d4a5(0xba);return _0x1ec218[_0x39d4a5(0xb2)](_0x39d4a5(0xa7),_0x2f916b);};return{'read':_0x1d0f3e=>{const _0x40f83e=_0x548a38(_0x1d0f3e);return registerGlobalCacheKey(_0x40f83e,_0x8fc740),readCacheJson(_0x40f83e);},'write':(_0x4d6a1a,_0x229df7)=>{const _0x42bfbb=_0x548a38(_0x4d6a1a);registerGlobalCacheKey(_0x42bfbb,_0x8fc740),writeCacheJson(_0x42bfbb,_0x229df7);},'clear':_0x19c5a6=>{const _0x2a8409=_0x548a38(_0x19c5a6);clearCache(_0x2a8409);},'exists':_0x39547d=>{const _0x214554=_0x548a38(_0x39547d);return cacheExists(_0x214554);},'path':_0x1a66f6=>{const _0x434d5f=_0x548a38(_0x1a66f6);return getGlobalCachePath(_0x434d5f);}};}export function createOptionalProfileCache(_0x49d60c,_0xf0de6a,_0x2132aa={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2132aa,_0x19e04c=_0x549fae=>{return _0x549fae?''+_0x49d60c+profileSeparator+_0x549fae+suffix:''+_0x49d60c+suffix;};return{'read':_0x1aae05=>{const _0x2ac0b1=_0x19e04c(_0x1aae05);return registerGlobalCacheKey(_0x2ac0b1,_0xf0de6a),readCacheJson(_0x2ac0b1);},'write':(_0x28cc3e,_0x525592)=>{const _0x1952b8=_0x19e04c(_0x525592);registerGlobalCacheKey(_0x1952b8,_0xf0de6a),writeCacheJson(_0x1952b8,_0x28cc3e);},'clear':_0x4c6009=>{const _0x567770=_0x19e04c(_0x4c6009);clearCache(_0x567770);},'exists':_0x28b16f=>{const _0x470c94=_0x19e04c(_0x28b16f);return cacheExists(_0x470c94);},'path':_0x1cca12=>{const _0x4efd3c=_0x19e04c(_0x1cca12);return getGlobalCachePath(_0x4efd3c);}};}export function clearGlobalRegistry(){const _0x1e7020=a193_0x5c6a;registry[_0x1e7020(0xb7)]();}
1
+ (function(_0x3dee80,_0x9f6d06){const _0x2dd00f=a193_0x4d1e,_0x46bf68=_0x3dee80();while(!![]){try{const _0x393437=parseInt(_0x2dd00f(0x16a))/0x1*(-parseInt(_0x2dd00f(0x161))/0x2)+parseInt(_0x2dd00f(0x16b))/0x3*(-parseInt(_0x2dd00f(0x176))/0x4)+-parseInt(_0x2dd00f(0x177))/0x5+-parseInt(_0x2dd00f(0x179))/0x6*(parseInt(_0x2dd00f(0x162))/0x7)+parseInt(_0x2dd00f(0x16d))/0x8*(parseInt(_0x2dd00f(0x175))/0x9)+parseInt(_0x2dd00f(0x160))/0xa+parseInt(_0x2dd00f(0x168))/0xb*(parseInt(_0x2dd00f(0x173))/0xc);if(_0x393437===_0x9f6d06)break;else _0x46bf68['push'](_0x46bf68['shift']());}catch(_0x590be6){_0x46bf68['push'](_0x46bf68['shift']());}}}(a193_0xcf8a,0x7c9a0));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0xf61d6f=a193_0x4d1e;return process.env.TDX_CACHE_DIR||join(homedir(),_0xf61d6f(0x164),_0xf61d6f(0x167));}const registry=new Map();function a193_0x4d1e(_0x47d69f,_0x7e00ba){_0x47d69f=_0x47d69f-0x160;const _0xcf8ac4=a193_0xcf8a();let _0x4d1e7a=_0xcf8ac4[_0x47d69f];return _0x4d1e7a;}export function registerGlobalCacheKey(_0x4a926c,_0x2c14af){const _0x5ad86c=a193_0x4d1e,_0x52f673=registry[_0x5ad86c(0x16e)](_0x4a926c);if(_0x52f673&&_0x52f673!==_0x2c14af)throw new Error(_0x5ad86c(0x170)+_0x4a926c+_0x5ad86c(0x172)+_0x52f673+_0x5ad86c(0x16c)+_0x2c14af+'\x22');registry[_0x5ad86c(0x174)](_0x4a926c,_0x2c14af);}export function getGlobalCachePath(_0x423760){return join(getGlobalCacheDir(),_0x423760);}function ensureGlobalCacheDir(){const _0x1ab3bc=getGlobalCacheDir();!existsSync(_0x1ab3bc)&&mkdirSync(_0x1ab3bc,{'recursive':!![]});}function readCacheJson(_0x151552){const _0x5e3aba=a193_0x4d1e,_0x5c8c49=getGlobalCachePath(_0x151552);if(!existsSync(_0x5c8c49))return undefined;try{const _0x1cc097=readFileSync(_0x5c8c49,_0x5e3aba(0x169));return JSON[_0x5e3aba(0x171)](_0x1cc097);}catch{return undefined;}}function writeCacheJson(_0x5d50f8,_0x4242c6){const _0x3e88cc=a193_0x4d1e;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5d50f8),JSON[_0x3e88cc(0x178)](_0x4242c6,null,0x2),'utf-8');}function a193_0xcf8a(){const _0x5728d8=['92FrAWcf','1250105jbKsQq','stringify','354rdUWvA','3293330growGm','6338jxFaLQ','20608GxgeWn','default','.cache','clear','replace','tdx','4142171pEIPUA','utf-8','73rxIeaT','54381oZJafn','\x22,\x20cannot\x20register\x20for\x20\x22','7011592EiwlMg','get','{profile}','Global\x20cache\x20key\x20\x22','parse','\x22\x20already\x20registered\x20by\x20\x22','12nagzBJ','set','9GuSADn'];a193_0xcf8a=function(){return _0x5728d8;};return a193_0xcf8a();}function readCacheText(_0x38afc2){const _0x217dbf=a193_0x4d1e,_0x493a35=getGlobalCachePath(_0x38afc2);if(!existsSync(_0x493a35))return undefined;try{return readFileSync(_0x493a35,_0x217dbf(0x169));}catch{return undefined;}}function writeCacheText(_0x3ea620,_0x50b5c2){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3ea620),_0x50b5c2,'utf-8');}function clearCache(_0x49ac7c){const _0x39369b=getGlobalCachePath(_0x49ac7c);if(existsSync(_0x39369b))try{unlinkSync(_0x39369b);}catch{}}function cacheExists(_0x171cd6){return existsSync(getGlobalCachePath(_0x171cd6));}export function createGlobalCache(_0x58f88d,_0x2df996){return registerGlobalCacheKey(_0x58f88d,_0x2df996),{'read':()=>readCacheJson(_0x58f88d),'write':_0x1dc8af=>writeCacheJson(_0x58f88d,_0x1dc8af),'clear':()=>clearCache(_0x58f88d),'exists':()=>cacheExists(_0x58f88d),'path':()=>getGlobalCachePath(_0x58f88d)};}export function createGlobalTextCache(_0x3ab9f5,_0x33b6b1){return registerGlobalCacheKey(_0x3ab9f5,_0x33b6b1),{'read':()=>readCacheText(_0x3ab9f5)?.['trim']()||undefined,'write':_0x44ac69=>writeCacheText(_0x3ab9f5,_0x44ac69),'clear':()=>clearCache(_0x3ab9f5),'exists':()=>cacheExists(_0x3ab9f5),'path':()=>getGlobalCachePath(_0x3ab9f5)};}export function createProfileCache(_0xc2ae0f,_0x22a53a){const _0x528445=_0x5ccdf4=>{const _0x5ee27e=a193_0x4d1e,_0x5670d7=_0x5ccdf4||_0x5ee27e(0x163);return _0xc2ae0f[_0x5ee27e(0x166)](_0x5ee27e(0x16f),_0x5670d7);};return{'read':_0x25ddf9=>{const _0x393d6c=_0x528445(_0x25ddf9);return registerGlobalCacheKey(_0x393d6c,_0x22a53a),readCacheJson(_0x393d6c);},'write':(_0x10ae6c,_0x4d4bfe)=>{const _0x123623=_0x528445(_0x10ae6c);registerGlobalCacheKey(_0x123623,_0x22a53a),writeCacheJson(_0x123623,_0x4d4bfe);},'clear':_0x52676f=>{const _0x393981=_0x528445(_0x52676f);clearCache(_0x393981);},'exists':_0x19da79=>{const _0x590625=_0x528445(_0x19da79);return cacheExists(_0x590625);},'path':_0x36ec60=>{const _0x27a311=_0x528445(_0x36ec60);return getGlobalCachePath(_0x27a311);}};}export function createOptionalProfileCache(_0x53aa71,_0x213302,_0x4fc501={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4fc501,_0x11e04b=_0x677871=>{return _0x677871?''+_0x53aa71+profileSeparator+_0x677871+suffix:''+_0x53aa71+suffix;};return{'read':_0x58dca1=>{const _0x5bd91d=_0x11e04b(_0x58dca1);return registerGlobalCacheKey(_0x5bd91d,_0x213302),readCacheJson(_0x5bd91d);},'write':(_0x5bcb65,_0xfff74d)=>{const _0xf16809=_0x11e04b(_0xfff74d);registerGlobalCacheKey(_0xf16809,_0x213302),writeCacheJson(_0xf16809,_0x5bcb65);},'clear':_0x5292a8=>{const _0x4054dc=_0x11e04b(_0x5292a8);clearCache(_0x4054dc);},'exists':_0x89cb9=>{const _0x51b8ff=_0x11e04b(_0x89cb9);return cacheExists(_0x51b8ff);},'path':_0x2d69e4=>{const _0x57917b=_0x11e04b(_0x2d69e4);return getGlobalCachePath(_0x57917b);}};}export function clearGlobalRegistry(){const _0x1dc5bb=a193_0x4d1e;registry[_0x1dc5bb(0x165)]();}
@@ -1 +1 @@
1
- (function(_0x58b4e4,_0x2d956d){const _0x14df6b=a194_0x595f,_0x130179=_0x58b4e4();while(!![]){try{const _0x521083=-parseInt(_0x14df6b(0x95))/0x1+-parseInt(_0x14df6b(0x82))/0x2*(-parseInt(_0x14df6b(0x8f))/0x3)+-parseInt(_0x14df6b(0x96))/0x4+parseInt(_0x14df6b(0x92))/0x5+parseInt(_0x14df6b(0x85))/0x6*(-parseInt(_0x14df6b(0x93))/0x7)+parseInt(_0x14df6b(0x94))/0x8+parseInt(_0x14df6b(0x8c))/0x9;if(_0x521083===_0x2d956d)break;else _0x130179['push'](_0x130179['shift']());}catch(_0x392212){_0x130179['push'](_0x130179['shift']());}}}(a194_0x151e,0xd14c9));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x595f(_0x1e8576,_0x6cfbfb){_0x1e8576=_0x1e8576-0x81;const _0x151ece=a194_0x151e();let _0x595f41=_0x151ece[_0x1e8576];return _0x595f41;}export async function loadJSON(_0x1b696,_0x407faa){const _0xba05fb=a194_0x595f;try{if(_0x407faa){const _0x31f873=await readFile(_0x1b696,_0xba05fb(0x8d));try{return JSON[_0xba05fb(0x88)](_0x31f873);}catch(_0x235b32){throw new SDKError(ErrorCode[_0xba05fb(0x89)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x1b696+_0xba05fb(0x81)+(_0x235b32 instanceof Error?_0x235b32[_0xba05fb(0x8e)]:String(_0x235b32)));}}else try{return JSON[_0xba05fb(0x88)](_0x1b696);}catch(_0xf3405a){throw new SDKError(ErrorCode[_0xba05fb(0x89)],_0xba05fb(0x83)+(_0xf3405a instanceof Error?_0xf3405a[_0xba05fb(0x8e)]:String(_0xf3405a)));}}catch(_0xa5c863){if(_0xa5c863 instanceof SDKError)throw _0xa5c863;if(_0xa5c863 instanceof Error&&_0xba05fb(0x91)in _0xa5c863){const _0x442197=_0xa5c863;if(_0x442197[_0xba05fb(0x91)]===_0xba05fb(0x84))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x1b696);else{if(_0x442197[_0xba05fb(0x91)]===_0xba05fb(0x8b))throw new SDKError(ErrorCode[_0xba05fb(0x87)],_0xba05fb(0x86)+_0x1b696);}}throw new SDKError(ErrorCode[_0xba05fb(0x90)],_0xba05fb(0x8a)+(_0xa5c863 instanceof Error?_0xa5c863[_0xba05fb(0x8e)]:String(_0xa5c863)));}}export async function loadJSONFromOptions(_0x108442,_0x273dc1){const _0x3d112f=a194_0x595f;if(_0x108442&&_0x273dc1)throw new SDKError(ErrorCode[_0x3d112f(0x89)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x108442)return await loadJSON(_0x108442,![]);if(_0x273dc1)return await loadJSON(_0x273dc1,!![]);return undefined;}function a194_0x151e(){const _0x4e4cb5=['INTERNAL','code','4064010jbCBBq','1148Hfnyjp','9827688AJieph','1270865fCpCQL','1684268CKWWMu','\x27:\x20','8902XRfbVa','Invalid\x20JSON\x20string:\x20','ENOENT','18852nkvTjR','Permission\x20denied\x20reading\x20file:\x20','PERMISSION_DENIED','parse','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','EACCES','2679597JtQowm','utf-8','message','489eaJDUB'];a194_0x151e=function(){return _0x4e4cb5;};return a194_0x151e();}
1
+ (function(_0x3b56c6,_0x142980){const _0x5cf03e=a194_0x4f44,_0x3bc32b=_0x3b56c6();while(!![]){try{const _0x1a3add=parseInt(_0x5cf03e(0xb3))/0x1+-parseInt(_0x5cf03e(0xbe))/0x2*(parseInt(_0x5cf03e(0xb7))/0x3)+-parseInt(_0x5cf03e(0xbb))/0x4*(parseInt(_0x5cf03e(0xb4))/0x5)+-parseInt(_0x5cf03e(0xb5))/0x6+parseInt(_0x5cf03e(0xba))/0x7*(parseInt(_0x5cf03e(0xb9))/0x8)+-parseInt(_0x5cf03e(0xbd))/0x9+parseInt(_0x5cf03e(0xb8))/0xa;if(_0x1a3add===_0x142980)break;else _0x3bc32b['push'](_0x3bc32b['shift']());}catch(_0xf43228){_0x3bc32b['push'](_0x3bc32b['shift']());}}}(a194_0x2f8c,0x2f151));import{readFile}from'fs/promises';function a194_0x4f44(_0x324f49,_0x1a654a){_0x324f49=_0x324f49-0xb3;const _0x2f8c8f=a194_0x2f8c();let _0x4f442b=_0x2f8c8f[_0x324f49];return _0x4f442b;}function a194_0x2f8c(){const _0x43353e=['174360NktPTi','91TKXssm','145580qgLxYk','File\x20not\x20found:\x20','2592324gmqTSJ','2632IrGKSg','Failed\x20to\x20load\x20JSON:\x20','message','\x27:\x20','NOT_FOUND','ENOENT','code','parse','INVALID_ARGUMENT','211985YYsTmZ','15xErmdQ','151116zsrDSD','INTERNAL','15kKOdSU','1265160NylNxS'];a194_0x2f8c=function(){return _0x43353e;};return a194_0x2f8c();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x313359,_0x57208f){const _0x53f724=a194_0x4f44;try{if(_0x57208f){const _0x34cec0=await readFile(_0x313359,'utf-8');try{return JSON[_0x53f724(0xc5)](_0x34cec0);}catch(_0x1bab87){throw new SDKError(ErrorCode[_0x53f724(0xc6)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x313359+_0x53f724(0xc1)+(_0x1bab87 instanceof Error?_0x1bab87['message']:String(_0x1bab87)));}}else try{return JSON[_0x53f724(0xc5)](_0x313359);}catch(_0x2d7ab1){throw new SDKError(ErrorCode[_0x53f724(0xc6)],'Invalid\x20JSON\x20string:\x20'+(_0x2d7ab1 instanceof Error?_0x2d7ab1[_0x53f724(0xc0)]:String(_0x2d7ab1)));}}catch(_0x198eb2){if(_0x198eb2 instanceof SDKError)throw _0x198eb2;if(_0x198eb2 instanceof Error&&'code'in _0x198eb2){const _0x1fe162=_0x198eb2;if(_0x1fe162[_0x53f724(0xc4)]===_0x53f724(0xc3))throw new SDKError(ErrorCode[_0x53f724(0xc2)],_0x53f724(0xbc)+_0x313359);else{if(_0x1fe162[_0x53f724(0xc4)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x313359);}}throw new SDKError(ErrorCode[_0x53f724(0xb6)],_0x53f724(0xbf)+(_0x198eb2 instanceof Error?_0x198eb2[_0x53f724(0xc0)]:String(_0x198eb2)));}}export async function loadJSONFromOptions(_0x75f3a1,_0x410462){if(_0x75f3a1&&_0x410462)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x75f3a1)return await loadJSON(_0x75f3a1,![]);if(_0x410462)return await loadJSON(_0x410462,!![]);return undefined;}
@@ -1 +1 @@
1
- const a195_0x5f221a=a195_0x5711;(function(_0x1cf3dc,_0x58fc05){const _0x3d6971=a195_0x5711,_0x428037=_0x1cf3dc();while(!![]){try{const _0x540891=parseInt(_0x3d6971(0xab))/0x1+-parseInt(_0x3d6971(0xa5))/0x2*(-parseInt(_0x3d6971(0xa8))/0x3)+-parseInt(_0x3d6971(0xad))/0x4+-parseInt(_0x3d6971(0xb0))/0x5+parseInt(_0x3d6971(0xb5))/0x6+-parseInt(_0x3d6971(0xb2))/0x7*(-parseInt(_0x3d6971(0xac))/0x8)+parseInt(_0x3d6971(0xa2))/0x9*(-parseInt(_0x3d6971(0xae))/0xa);if(_0x540891===_0x58fc05)break;else _0x428037['push'](_0x428037['shift']());}catch(_0x1e9787){_0x428037['push'](_0x428037['shift']());}}}(a195_0x2bae,0xa47f6));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0x5f221a(0xb1),registry=new Map();export function registerCacheKey(_0x210a76,_0x57faf2){const _0x429b7d=a195_0x5f221a,_0x141248=registry[_0x429b7d(0xb6)](_0x210a76);if(_0x141248&&_0x141248!==_0x57faf2)throw new Error(_0x429b7d(0xa1)+_0x210a76+_0x429b7d(0xaa)+_0x141248+_0x429b7d(0xaf)+_0x57faf2+'\x22');registry[_0x429b7d(0xb4)](_0x210a76,_0x57faf2);}export function getCacheDir(){const _0x15bd17=a195_0x5f221a,_0x56c05b=process[_0x15bd17(0xa7)](),_0xcfffa2=_0x56c05b===parse(_0x56c05b)[_0x15bd17(0xb3)]?homedir():_0x56c05b;return join(_0xcfffa2,LOCAL_CACHE_DIR);}export function getCachePath(_0x41fd11){return join(getCacheDir(),_0x41fd11);}function ensureCacheDir(){const _0x4339f5=getCacheDir();!existsSync(_0x4339f5)&&mkdirSync(_0x4339f5,{'recursive':!![]});}function a195_0x2bae(){const _0x1274dc=['utf-8','40318SiPAGW','clear','cwd','192fxwmbc','stringify','\x22\x20already\x20registered\x20by\x20\x22','205139RlTVcT','24CzFcnV','1037820twIefR','110FzKKDP','\x22,\x20cannot\x20register\x20for\x20\x22','1459990AcOobg','.cache/tdx','2070369jqxrKM','root','set','3704286YnCjNL','get','Cache\x20key\x20\x22','1452078bHkCoZ','trim'];a195_0x2bae=function(){return _0x1274dc;};return a195_0x2bae();}function readCacheJson(_0xdd86a6){const _0xdcab17=a195_0x5f221a,_0x2d2a54=getCachePath(_0xdd86a6);if(!existsSync(_0x2d2a54))return undefined;try{const _0x319533=readFileSync(_0x2d2a54,_0xdcab17(0xa4));return JSON['parse'](_0x319533);}catch{return undefined;}}function a195_0x5711(_0x33ca61,_0x588054){_0x33ca61=_0x33ca61-0xa1;const _0x2bae03=a195_0x2bae();let _0x5711ea=_0x2bae03[_0x33ca61];return _0x5711ea;}function writeCacheJson(_0x1c60f6,_0x574b6f){const _0x25b669=a195_0x5f221a;ensureCacheDir(),writeFileSync(getCachePath(_0x1c60f6),JSON[_0x25b669(0xa9)](_0x574b6f,null,0x2),_0x25b669(0xa4));}function readCacheText(_0x39feb3){const _0xa1fdaf=a195_0x5f221a,_0x105328=getCachePath(_0x39feb3);if(!existsSync(_0x105328))return undefined;try{return readFileSync(_0x105328,_0xa1fdaf(0xa4));}catch{return undefined;}}function writeCacheText(_0xffb747,_0x29089f){const _0x3298bc=a195_0x5f221a;ensureCacheDir(),writeFileSync(getCachePath(_0xffb747),_0x29089f,_0x3298bc(0xa4));}function clearCache(_0xa293b){const _0x3a1cc3=getCachePath(_0xa293b);if(existsSync(_0x3a1cc3))try{unlinkSync(_0x3a1cc3);}catch{}}function cacheExists(_0x547329){return existsSync(getCachePath(_0x547329));}export function createCache(_0x5c784a,_0x137033){return registerCacheKey(_0x5c784a,_0x137033),{'read':()=>readCacheJson(_0x5c784a),'write':_0x287598=>writeCacheJson(_0x5c784a,_0x287598),'clear':()=>clearCache(_0x5c784a),'exists':()=>cacheExists(_0x5c784a),'path':()=>getCachePath(_0x5c784a)};}export function createTextCache(_0x4fb81e,_0x5e9444){const _0x375808=a195_0x5f221a;return registerCacheKey(_0x4fb81e,_0x5e9444),{'read':()=>readCacheText(_0x4fb81e)?.[_0x375808(0xa3)]()||undefined,'write':_0x376ced=>writeCacheText(_0x4fb81e,_0x376ced),'clear':()=>clearCache(_0x4fb81e),'exists':()=>cacheExists(_0x4fb81e),'path':()=>getCachePath(_0x4fb81e)};}export function clearRegistry(){const _0x20802a=a195_0x5f221a;registry[_0x20802a(0xa6)]();}
1
+ const a195_0xfe4ecb=a195_0x57b5;function a195_0x57b5(_0x47afce,_0x14c7ac){_0x47afce=_0x47afce-0x188;const _0x19523a=a195_0x1952();let _0x57b5a7=_0x19523a[_0x47afce];return _0x57b5a7;}(function(_0x1f43cb,_0x2a0c3a){const _0x3bf3f0=a195_0x57b5,_0x2dc31a=_0x1f43cb();while(!![]){try{const _0x12e6e9=parseInt(_0x3bf3f0(0x197))/0x1*(-parseInt(_0x3bf3f0(0x18f))/0x2)+-parseInt(_0x3bf3f0(0x188))/0x3*(-parseInt(_0x3bf3f0(0x194))/0x4)+parseInt(_0x3bf3f0(0x196))/0x5+parseInt(_0x3bf3f0(0x18b))/0x6+-parseInt(_0x3bf3f0(0x198))/0x7+parseInt(_0x3bf3f0(0x189))/0x8*(-parseInt(_0x3bf3f0(0x18a))/0x9)+-parseInt(_0x3bf3f0(0x193))/0xa;if(_0x12e6e9===_0x2a0c3a)break;else _0x2dc31a['push'](_0x2dc31a['shift']());}catch(_0x43bb88){_0x2dc31a['push'](_0x2dc31a['shift']());}}}(a195_0x1952,0x9e0d5));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0xfe4ecb(0x191),registry=new Map();export function registerCacheKey(_0x4236e0,_0xaffc2d){const _0x1ae7b9=a195_0xfe4ecb,_0x2716d3=registry['get'](_0x4236e0);if(_0x2716d3&&_0x2716d3!==_0xaffc2d)throw new Error(_0x1ae7b9(0x190)+_0x4236e0+_0x1ae7b9(0x192)+_0x2716d3+_0x1ae7b9(0x195)+_0xaffc2d+'\x22');registry['set'](_0x4236e0,_0xaffc2d);}export function getCacheDir(){const _0xb8de6=a195_0xfe4ecb,_0x423928=process[_0xb8de6(0x18e)](),_0x1d03fa=_0x423928===parse(_0x423928)['root']?homedir():_0x423928;return join(_0x1d03fa,LOCAL_CACHE_DIR);}function a195_0x1952(){const _0x58e562=['Cache\x20key\x20\x22','.cache/tdx','\x22\x20already\x20registered\x20by\x20\x22','5299180NNhRFy','76ORAsyR','\x22,\x20cannot\x20register\x20for\x20\x22','4868275aniRVh','128MuDaWI','1338036MrLjBq','trim','166641FsDPTe','24fmHMuY','1655991bdFRaJ','4781976BpDiEu','clear','utf-8','cwd','14150iwsGdn'];a195_0x1952=function(){return _0x58e562;};return a195_0x1952();}export function getCachePath(_0x3fcc34){return join(getCacheDir(),_0x3fcc34);}function ensureCacheDir(){const _0x50ca4c=getCacheDir();!existsSync(_0x50ca4c)&&mkdirSync(_0x50ca4c,{'recursive':!![]});}function readCacheJson(_0x533a6b){const _0x43eaf2=a195_0xfe4ecb,_0x118c9a=getCachePath(_0x533a6b);if(!existsSync(_0x118c9a))return undefined;try{const _0x31074e=readFileSync(_0x118c9a,_0x43eaf2(0x18d));return JSON['parse'](_0x31074e);}catch{return undefined;}}function writeCacheJson(_0x201295,_0x22c4c2){const _0x495883=a195_0xfe4ecb;ensureCacheDir(),writeFileSync(getCachePath(_0x201295),JSON['stringify'](_0x22c4c2,null,0x2),_0x495883(0x18d));}function readCacheText(_0x301723){const _0x243ac7=a195_0xfe4ecb,_0x2e4b63=getCachePath(_0x301723);if(!existsSync(_0x2e4b63))return undefined;try{return readFileSync(_0x2e4b63,_0x243ac7(0x18d));}catch{return undefined;}}function writeCacheText(_0x371696,_0x5e82e5){const _0x17c5de=a195_0xfe4ecb;ensureCacheDir(),writeFileSync(getCachePath(_0x371696),_0x5e82e5,_0x17c5de(0x18d));}function clearCache(_0x121772){const _0x34b9dc=getCachePath(_0x121772);if(existsSync(_0x34b9dc))try{unlinkSync(_0x34b9dc);}catch{}}function cacheExists(_0x27aa82){return existsSync(getCachePath(_0x27aa82));}export function createCache(_0x32e6e0,_0x256509){return registerCacheKey(_0x32e6e0,_0x256509),{'read':()=>readCacheJson(_0x32e6e0),'write':_0x31f118=>writeCacheJson(_0x32e6e0,_0x31f118),'clear':()=>clearCache(_0x32e6e0),'exists':()=>cacheExists(_0x32e6e0),'path':()=>getCachePath(_0x32e6e0)};}export function createTextCache(_0x3f22b8,_0x361ac6){const _0x2bc21a=a195_0xfe4ecb;return registerCacheKey(_0x3f22b8,_0x361ac6),{'read':()=>readCacheText(_0x3f22b8)?.[_0x2bc21a(0x199)]()||undefined,'write':_0x15541c=>writeCacheText(_0x3f22b8,_0x15541c),'clear':()=>clearCache(_0x3f22b8),'exists':()=>cacheExists(_0x3f22b8),'path':()=>getCachePath(_0x3f22b8)};}export function clearRegistry(){const _0x5e0d5e=a195_0xfe4ecb;registry[_0x5e0d5e(0x18c)]();}
@@ -1 +1 @@
1
- const a196_0x26d27a=a196_0x1e7e;(function(_0x4709cf,_0x2931ab){const _0x2baf14=a196_0x1e7e,_0x250274=_0x4709cf();while(!![]){try{const _0x3b1ad4=parseInt(_0x2baf14(0x11e))/0x1*(-parseInt(_0x2baf14(0x119))/0x2)+-parseInt(_0x2baf14(0x135))/0x3*(-parseInt(_0x2baf14(0x131))/0x4)+-parseInt(_0x2baf14(0x128))/0x5*(parseInt(_0x2baf14(0x12b))/0x6)+parseInt(_0x2baf14(0x12f))/0x7*(parseInt(_0x2baf14(0x11b))/0x8)+parseInt(_0x2baf14(0x126))/0x9+-parseInt(_0x2baf14(0x11f))/0xa*(parseInt(_0x2baf14(0x133))/0xb)+-parseInt(_0x2baf14(0x11c))/0xc*(parseInt(_0x2baf14(0x12c))/0xd);if(_0x3b1ad4===_0x2931ab)break;else _0x250274['push'](_0x250274['shift']());}catch(_0x3deed2){_0x250274['push'](_0x250274['shift']());}}}(a196_0x14a0,0xc3403));function a196_0x14a0(){const _0x4090da=['3310oBzhsk','cyan','colorLevel','INFO','colors','default','DEBUG','13927617ibgkUl',']\x20[','5gKAUpw','timestamp','WARN','8185224JOkTAU','2800863zcrRlu','yellow','message','5753258YCANPa','Chalk','258564WayNCk','component','21846kFxqLF','TRACE','57uMUzav','gray','format','chalk','blue','4yrIeeX','dim','8TZHUuo','12PZibmB','level','280409WKMLgE'];a196_0x14a0=function(){return _0x4090da;};return a196_0x14a0();}import a196_0x56c40e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0x56c40e,ChalkClass=chalkModule[a196_0x26d27a(0x130)]||chalkModule[a196_0x26d27a(0x124)]?.[a196_0x26d27a(0x130)];function a196_0x1e7e(_0x354874,_0x16dab5){_0x354874=_0x354874-0x118;const _0x14a08d=a196_0x14a0();let _0x1e7e03=_0x14a08d[_0x354874];return _0x1e7e03;}export class DefaultLogFormatter{[a196_0x26d27a(0x123)];['chalk'];constructor(_0x124986={}){const _0x299e64=a196_0x26d27a;this[_0x299e64(0x123)]=_0x124986['colors']??![],this[_0x299e64(0x138)]=_0x124986[_0x299e64(0x123)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x56c40e;}[a196_0x26d27a(0x137)](_0x25d096){const _0x2c1e93=a196_0x26d27a,_0x343ee0=formatTimestamp(_0x25d096[_0x2c1e93(0x129)]),_0x3bd3dd=logLevelToString(_0x25d096['level']);if(!this[_0x2c1e93(0x123)])return _0x343ee0+'\x20['+_0x3bd3dd+_0x2c1e93(0x127)+_0x25d096['component']+']\x20'+_0x25d096[_0x2c1e93(0x12e)];const _0x23852c=this[_0x2c1e93(0x138)][_0x2c1e93(0x11a)](_0x343ee0),_0x1ace2d=this['colorLevel'](_0x3bd3dd,_0x25d096[_0x2c1e93(0x11d)]),_0x49d723=this[_0x2c1e93(0x138)][_0x2c1e93(0x118)]('['+_0x25d096[_0x2c1e93(0x132)]+']');return _0x23852c+'\x20'+_0x1ace2d+'\x20'+_0x49d723+'\x20'+_0x25d096[_0x2c1e93(0x12e)];}[a196_0x26d27a(0x121)](_0x16ca1e,_0x33bd43){const _0x286de2=a196_0x26d27a;switch(_0x33bd43){case LogLevel[_0x286de2(0x134)]:return this[_0x286de2(0x138)][_0x286de2(0x136)]('['+_0x16ca1e+']');case LogLevel[_0x286de2(0x125)]:return this[_0x286de2(0x138)]['green']('['+_0x16ca1e+']');case LogLevel[_0x286de2(0x122)]:return this[_0x286de2(0x138)][_0x286de2(0x120)]('['+_0x16ca1e+']');case LogLevel[_0x286de2(0x12a)]:return this['chalk'][_0x286de2(0x12d)]('['+_0x16ca1e+']');case LogLevel['ERROR']:return this[_0x286de2(0x138)]['red']('['+_0x16ca1e+']');default:return'['+_0x16ca1e+']';}}}
1
+ const a196_0xc25508=a196_0xb7e6;function a196_0xb7e6(_0x179d4f,_0x1d67f7){_0x179d4f=_0x179d4f-0x10d;const _0x5e1145=a196_0x5e11();let _0xb7e644=_0x5e1145[_0x179d4f];return _0xb7e644;}(function(_0x3c70ab,_0x33c53d){const _0x167908=a196_0xb7e6,_0x2d95e1=_0x3c70ab();while(!![]){try{const _0x443461=-parseInt(_0x167908(0x118))/0x1*(parseInt(_0x167908(0x11f))/0x2)+-parseInt(_0x167908(0x11b))/0x3*(parseInt(_0x167908(0x121))/0x4)+parseInt(_0x167908(0x11c))/0x5*(parseInt(_0x167908(0x10e))/0x6)+-parseInt(_0x167908(0x122))/0x7+parseInt(_0x167908(0x10d))/0x8+parseInt(_0x167908(0x11a))/0x9+-parseInt(_0x167908(0x124))/0xa*(-parseInt(_0x167908(0x123))/0xb);if(_0x443461===_0x33c53d)break;else _0x2d95e1['push'](_0x2d95e1['shift']());}catch(_0x51fcf7){_0x2d95e1['push'](_0x2d95e1['shift']());}}}(a196_0x5e11,0xbf697));function a196_0x5e11(){const _0x122687=['message','Chalk',']\x20[','level','ERROR','default','cyan','6404IaggYF','colorLevel','4488246atUZaY','3kpPVpQ','5045910HVyfIR','timestamp','TRACE','64wNwBJs','chalk','5614808PSEZTs','2032548xWfxNW','1165274RpNnVQ','40BbBPmo','colors','component','6011240XzgAJd','6FyGlzc','format','blue'];a196_0x5e11=function(){return _0x122687;};return a196_0x5e11();}import a196_0xef119e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0xef119e,ChalkClass=chalkModule['Chalk']||chalkModule[a196_0xc25508(0x116)]?.[a196_0xc25508(0x112)];export class DefaultLogFormatter{['colors'];[a196_0xc25508(0x120)];constructor(_0x345e12={}){const _0x1980d8=a196_0xc25508;this[_0x1980d8(0x125)]=_0x345e12[_0x1980d8(0x125)]??![],this[_0x1980d8(0x120)]=_0x345e12[_0x1980d8(0x125)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0xef119e;}[a196_0xc25508(0x10f)](_0x52b050){const _0x47db12=a196_0xc25508,_0x91ba1b=formatTimestamp(_0x52b050[_0x47db12(0x11d)]),_0x3822cc=logLevelToString(_0x52b050[_0x47db12(0x114)]);if(!this['colors'])return _0x91ba1b+'\x20['+_0x3822cc+_0x47db12(0x113)+_0x52b050[_0x47db12(0x126)]+']\x20'+_0x52b050['message'];const _0x2b3594=this[_0x47db12(0x120)]['dim'](_0x91ba1b),_0x267bbb=this[_0x47db12(0x119)](_0x3822cc,_0x52b050[_0x47db12(0x114)]),_0x517b50=this['chalk'][_0x47db12(0x110)]('['+_0x52b050[_0x47db12(0x126)]+']');return _0x2b3594+'\x20'+_0x267bbb+'\x20'+_0x517b50+'\x20'+_0x52b050[_0x47db12(0x111)];}[a196_0xc25508(0x119)](_0x23cbcc,_0x54cdab){const _0x56e9b3=a196_0xc25508;switch(_0x54cdab){case LogLevel[_0x56e9b3(0x11e)]:return this['chalk']['gray']('['+_0x23cbcc+']');case LogLevel['DEBUG']:return this[_0x56e9b3(0x120)]['green']('['+_0x23cbcc+']');case LogLevel['INFO']:return this[_0x56e9b3(0x120)][_0x56e9b3(0x117)]('['+_0x23cbcc+']');case LogLevel['WARN']:return this[_0x56e9b3(0x120)]['yellow']('['+_0x23cbcc+']');case LogLevel[_0x56e9b3(0x115)]:return this[_0x56e9b3(0x120)]['red']('['+_0x23cbcc+']');default:return'['+_0x23cbcc+']';}}}
@@ -1 +1 @@
1
- function a197_0x458c(_0x868b17,_0x221c21){_0x868b17=_0x868b17-0x93;var _0x438485=a197_0x4384();var _0x458c19=_0x438485[_0x868b17];return _0x458c19;}(function(_0x216699,_0x18763b){var _0x240fe8=a197_0x458c,_0x3d1f7f=_0x216699();while(!![]){try{var _0x5b8a46=parseInt(_0x240fe8(0x9a))/0x1*(-parseInt(_0x240fe8(0x99))/0x2)+-parseInt(_0x240fe8(0x94))/0x3+-parseInt(_0x240fe8(0x9d))/0x4+parseInt(_0x240fe8(0x96))/0x5*(parseInt(_0x240fe8(0x93))/0x6)+-parseInt(_0x240fe8(0x98))/0x7*(-parseInt(_0x240fe8(0x9c))/0x8)+-parseInt(_0x240fe8(0x97))/0x9*(parseInt(_0x240fe8(0x95))/0xa)+parseInt(_0x240fe8(0x9b))/0xb;if(_0x5b8a46===_0x18763b)break;else _0x3d1f7f['push'](_0x3d1f7f['shift']());}catch(_0x167194){_0x3d1f7f['push'](_0x3d1f7f['shift']());}}}(a197_0x4384,0xb5042));export{DefaultLogFormatter}from'./default-formatter.js';function a197_0x4384(){var _0x20dd06=['7578999RneeVZ','75775pVAWNX','500bNMURp','4243SQguXd','37483138asNJAY','824brZUCf','5742724EewygV','19230eOmPsL','1721862CGfpLf','10FfvrnR','205DkbqBW'];a197_0x4384=function(){return _0x20dd06;};return a197_0x4384();}
1
+ (function(_0x58676a,_0x3c34f0){var _0x58844d=a197_0x4f98,_0x666448=_0x58676a();while(!![]){try{var _0x1ecca6=parseInt(_0x58844d(0xaf))/0x1+parseInt(_0x58844d(0xb5))/0x2*(parseInt(_0x58844d(0xac))/0x3)+parseInt(_0x58844d(0xb1))/0x4*(parseInt(_0x58844d(0xae))/0x5)+parseInt(_0x58844d(0xb0))/0x6+parseInt(_0x58844d(0xb6))/0x7*(parseInt(_0x58844d(0xab))/0x8)+-parseInt(_0x58844d(0xb3))/0x9*(parseInt(_0x58844d(0xb4))/0xa)+-parseInt(_0x58844d(0xb2))/0xb*(parseInt(_0x58844d(0xad))/0xc);if(_0x1ecca6===_0x3c34f0)break;else _0x666448['push'](_0x666448['shift']());}catch(_0x1d4c9f){_0x666448['push'](_0x666448['shift']());}}}(a197_0x1972,0x87ce6));export{DefaultLogFormatter}from'./default-formatter.js';function a197_0x4f98(_0x4edd8b,_0x50b6cf){_0x4edd8b=_0x4edd8b-0xab;var _0x197276=a197_0x1972();var _0x4f98a3=_0x197276[_0x4edd8b];return _0x4f98a3;}function a197_0x1972(){var _0x26fdfe=['166fpOEKo','29589xnwUQm','208bsZIXo','20982zvVeec','48IdIfoh','4395JHOLBK','884220IcisnR','2724666LiuVhz','4944sIKvPy','5015813TugJlj','45narIUw','1469970BiUGwF'];a197_0x1972=function(){return _0x26fdfe;};return a197_0x1972();}
@@ -1 +1 @@
1
- const a198_0x5c8e68=a198_0xcd01;(function(_0x2298d0,_0x58b13d){const _0x522143=a198_0xcd01,_0x2b5241=_0x2298d0();while(!![]){try{const _0x1cf8af=parseInt(_0x522143(0x1d4))/0x1+parseInt(_0x522143(0x1e1))/0x2+parseInt(_0x522143(0x1db))/0x3+parseInt(_0x522143(0x1dd))/0x4*(parseInt(_0x522143(0x1d9))/0x5)+parseInt(_0x522143(0x1e6))/0x6*(-parseInt(_0x522143(0x1d8))/0x7)+parseInt(_0x522143(0x1dc))/0x8+parseInt(_0x522143(0x1e3))/0x9*(-parseInt(_0x522143(0x1da))/0xa);if(_0x1cf8af===_0x58b13d)break;else _0x2b5241['push'](_0x2b5241['shift']());}catch(_0x3db5f4){_0x2b5241['push'](_0x2b5241['shift']());}}}(a198_0x41eb,0x8eecd));function a198_0x41eb(){const _0x5e11f6=['6NKVlFc','log','827898ztZYrt','minLevel','format','error','3488107RcdSBz','46780SQiFFv','380pgLqnY','3210414TnGrKJ','8553104NnfPQC','216mxyCBf','useStderr','WARN','handle','971744TDSgRE','colors','680814NAWmnM','level','formatter'];a198_0x41eb=function(){return _0x5e11f6;};return a198_0x41eb();}import{LogLevel as a198_0x38c8dc}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a198_0xcd01(_0x1f44eb,_0x1db998){_0x1f44eb=_0x1f44eb-0x1d4;const _0x41ebfd=a198_0x41eb();let _0xcd016=_0x41ebfd[_0x1f44eb];return _0xcd016;}export class ConsoleHandler{[a198_0x5c8e68(0x1d5)];['useStderr'];[a198_0x5c8e68(0x1e5)];constructor(_0x4f1fed={}){const _0x13c372=a198_0x5c8e68;this[_0x13c372(0x1d5)]=_0x4f1fed[_0x13c372(0x1d5)]??a198_0x38c8dc[_0x13c372(0x1df)],this[_0x13c372(0x1de)]=_0x4f1fed['useStderr']??!![],this[_0x13c372(0x1e5)]=new DefaultLogFormatter({'colors':_0x4f1fed[_0x13c372(0x1e2)]??!![]});}[a198_0x5c8e68(0x1e0)](_0x3ac4d4){const _0x423f99=a198_0x5c8e68;if(_0x3ac4d4[_0x423f99(0x1e4)]<this[_0x423f99(0x1d5)])return;const _0x232c5f=this[_0x423f99(0x1e5)][_0x423f99(0x1d6)](_0x3ac4d4);this[_0x423f99(0x1de)]&&_0x3ac4d4[_0x423f99(0x1e4)]>=a198_0x38c8dc['WARN']?console[_0x423f99(0x1d7)](_0x232c5f):console[_0x423f99(0x1e7)](_0x232c5f);}}
1
+ function a198_0x4e8f(_0x3cd7b9,_0x34c376){_0x3cd7b9=_0x3cd7b9-0x9c;const _0x262096=a198_0x2620();let _0x4e8f02=_0x262096[_0x3cd7b9];return _0x4e8f02;}function a198_0x2620(){const _0x40c606=['1809273EtgHFr','format','216711ODncnZ','3406207AblhcR','294183OjgfpW','useStderr','colors','2026915mkZhDJ','error','WARN','152bXxpxp','minLevel','formatter','290AqDGXm','level','log','894340GnoLNm','213300DgUPUa','6vkOKUJ','2lJTygy'];a198_0x2620=function(){return _0x40c606;};return a198_0x2620();}const a198_0x44b0c9=a198_0x4e8f;(function(_0x5125ed,_0x20bf99){const _0x2b1773=a198_0x4e8f,_0x59b343=_0x5125ed();while(!![]){try{const _0x31cb36=-parseInt(_0x2b1773(0xa5))/0x1*(parseInt(_0x2b1773(0xa3))/0x2)+-parseInt(_0x2b1773(0xa6))/0x3+parseInt(_0x2b1773(0xa2))/0x4+parseInt(_0x2b1773(0xad))/0x5+-parseInt(_0x2b1773(0xa4))/0x6*(-parseInt(_0x2b1773(0xa9))/0x7)+-parseInt(_0x2b1773(0x9c))/0x8*(-parseInt(_0x2b1773(0xaa))/0x9)+-parseInt(_0x2b1773(0x9f))/0xa*(parseInt(_0x2b1773(0xa8))/0xb);if(_0x31cb36===_0x20bf99)break;else _0x59b343['push'](_0x59b343['shift']());}catch(_0x3d4047){_0x59b343['push'](_0x59b343['shift']());}}}(a198_0x2620,0x552e6));import{LogLevel as a198_0x532cbc}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a198_0x44b0c9(0x9d)];[a198_0x44b0c9(0xab)];[a198_0x44b0c9(0x9e)];constructor(_0x4c467d={}){const _0x394389=a198_0x44b0c9;this[_0x394389(0x9d)]=_0x4c467d[_0x394389(0x9d)]??a198_0x532cbc[_0x394389(0xaf)],this[_0x394389(0xab)]=_0x4c467d[_0x394389(0xab)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x4c467d[_0x394389(0xac)]??!![]});}['handle'](_0x544de2){const _0x549672=a198_0x44b0c9;if(_0x544de2[_0x549672(0xa0)]<this[_0x549672(0x9d)])return;const _0x303a48=this[_0x549672(0x9e)][_0x549672(0xa7)](_0x544de2);this[_0x549672(0xab)]&&_0x544de2[_0x549672(0xa0)]>=a198_0x532cbc['WARN']?console[_0x549672(0xae)](_0x303a48):console[_0x549672(0xa1)](_0x303a48);}}
@@ -1 +1 @@
1
- const a199_0x495c61=a199_0x2673;(function(_0x5acda2,_0x194326){const _0x422ca8=a199_0x2673,_0x65ae27=_0x5acda2();while(!![]){try{const _0x4eecfd=-parseInt(_0x422ca8(0x7d))/0x1+parseInt(_0x422ca8(0x7f))/0x2*(-parseInt(_0x422ca8(0x93))/0x3)+parseInt(_0x422ca8(0x84))/0x4*(-parseInt(_0x422ca8(0x87))/0x5)+parseInt(_0x422ca8(0x94))/0x6+-parseInt(_0x422ca8(0x78))/0x7+parseInt(_0x422ca8(0x7a))/0x8+parseInt(_0x422ca8(0x8e))/0x9;if(_0x4eecfd===_0x194326)break;else _0x65ae27['push'](_0x65ae27['shift']());}catch(_0x46790e){_0x65ae27['push'](_0x65ae27['shift']());}}}(a199_0x19d3,0x56a67));function a199_0x2673(_0x543861,_0xd51b7e){_0x543861=_0x543861-0x76;const _0x19d343=a199_0x19d3();let _0x267362=_0x19d343[_0x543861];return _0x267362;}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 a199_0x19d3(){const _0x14f9c1=['mtime','9700614moIIvu','.gz','logStream','\x5c$&','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','12RQZogJ','3889008jqmemL','logFileName','logs','replace','Warning:\x20Failed\x20to\x20compress\x20','error','format','tdx.log','rotateOldLogs','2056250ZibFyJ','message','184000RpvCMo','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','getLogPath','154049ohQQPJ','handle','131394HsDSka','Warning:\x20Error\x20writing\x20to\x20','split','end','logDir','1896hMRLPk','.log','logPath','7210sdhieP','filePath','rotate','toISOString','logBaseName','close'];a199_0x19d3=function(){return _0x14f9c1;};return a199_0x19d3();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a199_0x495c61(0x86)];[a199_0x495c61(0x83)];[a199_0x495c61(0x95)];[a199_0x495c61(0x8b)];[a199_0x495c61(0x90)]=null;[a199_0x495c61(0x89)];constructor(_0xf89747={}){const _0x47a692=a199_0x495c61;this[_0x47a692(0x86)]=_0xf89747[_0x47a692(0x88)]??join(getGlobalCacheDir(),_0x47a692(0x96),_0x47a692(0x76)),this[_0x47a692(0x83)]=dirname(this[_0x47a692(0x86)]),this['logFileName']=basename(this[_0x47a692(0x86)]),this[_0x47a692(0x8b)]=this[_0x47a692(0x95)][_0x47a692(0x97)](/\.log$/,''),this['rotate']=_0xf89747[_0x47a692(0x89)]??!![];}async['init'](){const _0xf2414e=a199_0x495c61;try{await mkdir(this[_0xf2414e(0x83)],{'recursive':!![]}),this[_0xf2414e(0x89)]&&await this['rotateOldLogs'](),this[_0xf2414e(0x90)]=createWriteStream(this[_0xf2414e(0x86)],{'flags':'a'}),this['logStream']['on']('error',_0x16f596=>{const _0x1bc674=_0xf2414e;console[_0x1bc674(0x99)](_0x1bc674(0x80)+this[_0x1bc674(0x95)]+':',_0x16f596[_0x1bc674(0x79)]);});}catch(_0x379491){console[_0xf2414e(0x99)](_0xf2414e(0x92),_0x379491);}}[a199_0x495c61(0x7e)](_0x261a52){const _0x4c060b=a199_0x495c61;if(!this[_0x4c060b(0x90)])return;const _0x5a8ae5=Logger[_0x4c060b(0x9a)](_0x261a52);this['logStream']['write'](_0x5a8ae5+'\x0a');}async[a199_0x495c61(0x8c)](){return new Promise(_0x121aec=>{const _0x5c3f4e=a199_0x2673;this[_0x5c3f4e(0x90)]?this[_0x5c3f4e(0x90)][_0x5c3f4e(0x82)](()=>{const _0x4422fe=_0x5c3f4e;this[_0x4422fe(0x90)]=null,_0x121aec();}):_0x121aec();});}[a199_0x495c61(0x7c)](){const _0x3e8989=a199_0x495c61;return this[_0x3e8989(0x86)];}async[a199_0x495c61(0x77)](){const _0x5a55ad=a199_0x495c61;try{const _0x413010=await readdir(this[_0x5a55ad(0x83)]),_0x1ff3d4=new Date()[_0x5a55ad(0x8a)]()[_0x5a55ad(0x81)]('T')[0x0];if(_0x413010['includes'](this['logFileName'])){const _0x16b86b=join(this[_0x5a55ad(0x83)],this[_0x5a55ad(0x95)]),_0x4c8a69=await stat(_0x16b86b),_0x203bad=new Date(_0x4c8a69[_0x5a55ad(0x8d)])[_0x5a55ad(0x8a)]()[_0x5a55ad(0x81)]('T')[0x0];if(_0x203bad<_0x1ff3d4){const _0x382fbe=join(this[_0x5a55ad(0x83)],this['logBaseName']+'-'+_0x203bad+_0x5a55ad(0x85));await rename(_0x16b86b,_0x382fbe);}}const _0x284c32=await readdir(this[_0x5a55ad(0x83)]),_0xf05e59=this['logBaseName'][_0x5a55ad(0x97)](/[.*+?^${}()|[\]\\]/g,_0x5a55ad(0x91)),_0x34e18b=new RegExp('^'+_0xf05e59+_0x5a55ad(0x7b)),_0x58224a=_0x284c32['filter'](_0xa09b15=>_0x34e18b['test'](_0xa09b15));for(const _0x57cd2d of _0x58224a){const _0x52515d=join(this[_0x5a55ad(0x83)],_0x57cd2d),_0x299430=join(this[_0x5a55ad(0x83)],_0x57cd2d+_0x5a55ad(0x8f));try{await pipeline(createReadStream(_0x52515d),createGzip(),createWriteStream(_0x299430)),await unlink(_0x52515d);}catch(_0x4f3a0d){console['error'](_0x5a55ad(0x98)+_0x57cd2d+':',_0x4f3a0d);}}}catch{}}}
1
+ function a199_0x366b(){const _0x46357c=['6QPIJXo','logs','21otBsIr','logDir','Warning:\x20Error\x20writing\x20to\x20','test','toISOString','4840947SAmGIQ','722074oHjEBA','62004VOThAT','rotateOldLogs','12fWOsRu','close','2023144tQiwys','10964921zsHPGn','.log','message','logFileName','error','end','logPath','182364NYRxLu','8UQaQvZ','rotate','logStream','split','replace','includes','logBaseName','getLogPath','6848920guZihA','5auAOQZ','filePath','filter','.gz'];a199_0x366b=function(){return _0x46357c;};return a199_0x366b();}const a199_0x4c2254=a199_0x3b5d;(function(_0x38f85a,_0x29afcb){const _0x5281f1=a199_0x3b5d,_0x29e486=_0x38f85a();while(!![]){try{const _0x53e3f8=-parseInt(_0x5281f1(0x141))/0x1+-parseInt(_0x5281f1(0x134))/0x2*(parseInt(_0x5281f1(0x12c))/0x3)+parseInt(_0x5281f1(0x139))/0x4*(parseInt(_0x5281f1(0x128))/0x5)+parseInt(_0x5281f1(0x135))/0x6*(-parseInt(_0x5281f1(0x12e))/0x7)+-parseInt(_0x5281f1(0x142))/0x8*(-parseInt(_0x5281f1(0x133))/0x9)+-parseInt(_0x5281f1(0x127))/0xa+-parseInt(_0x5281f1(0x13a))/0xb*(-parseInt(_0x5281f1(0x137))/0xc);if(_0x53e3f8===_0x29afcb)break;else _0x29e486['push'](_0x29e486['shift']());}catch(_0x215a69){_0x29e486['push'](_0x29e486['shift']());}}}(a199_0x366b,0x66934));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a199_0x3b5d(_0x1c6229,_0x46e3fe){_0x1c6229=_0x1c6229-0x125;const _0x366bbf=a199_0x366b();let _0x3b5d58=_0x366bbf[_0x1c6229];return _0x3b5d58;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a199_0x4c2254(0x140)];['logDir'];['logFileName'];[a199_0x4c2254(0x125)];['logStream']=null;[a199_0x4c2254(0x143)];constructor(_0x1ae909={}){const _0x4e8c94=a199_0x4c2254;this[_0x4e8c94(0x140)]=_0x1ae909[_0x4e8c94(0x129)]??join(getGlobalCacheDir(),_0x4e8c94(0x12d),'tdx.log'),this[_0x4e8c94(0x12f)]=dirname(this[_0x4e8c94(0x140)]),this['logFileName']=basename(this[_0x4e8c94(0x140)]),this[_0x4e8c94(0x125)]=this[_0x4e8c94(0x13d)][_0x4e8c94(0x146)](/\.log$/,''),this[_0x4e8c94(0x143)]=_0x1ae909[_0x4e8c94(0x143)]??!![];}async['init'](){const _0x204169=a199_0x4c2254;try{await mkdir(this[_0x204169(0x12f)],{'recursive':!![]}),this[_0x204169(0x143)]&&await this[_0x204169(0x136)](),this['logStream']=createWriteStream(this[_0x204169(0x140)],{'flags':'a'}),this[_0x204169(0x144)]['on'](_0x204169(0x13e),_0x100e91=>{const _0x5606fd=_0x204169;console[_0x5606fd(0x13e)](_0x5606fd(0x130)+this['logFileName']+':',_0x100e91[_0x5606fd(0x13c)]);});}catch(_0x2a6f4c){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x2a6f4c);}}['handle'](_0x53977e){const _0x5cb549=a199_0x4c2254;if(!this[_0x5cb549(0x144)])return;const _0x2c0fb7=Logger['format'](_0x53977e);this[_0x5cb549(0x144)]['write'](_0x2c0fb7+'\x0a');}async[a199_0x4c2254(0x138)](){return new Promise(_0xec0879=>{const _0x51c00f=a199_0x3b5d;this['logStream']?this[_0x51c00f(0x144)][_0x51c00f(0x13f)](()=>{const _0x53bed0=_0x51c00f;this[_0x53bed0(0x144)]=null,_0xec0879();}):_0xec0879();});}[a199_0x4c2254(0x126)](){const _0x3cd41f=a199_0x4c2254;return this[_0x3cd41f(0x140)];}async[a199_0x4c2254(0x136)](){const _0x53dc67=a199_0x4c2254;try{const _0xb63c30=await readdir(this[_0x53dc67(0x12f)]),_0x4b4177=new Date()[_0x53dc67(0x132)]()[_0x53dc67(0x145)]('T')[0x0];if(_0xb63c30[_0x53dc67(0x147)](this[_0x53dc67(0x13d)])){const _0x2b390f=join(this[_0x53dc67(0x12f)],this[_0x53dc67(0x13d)]),_0x75761=await stat(_0x2b390f),_0x215078=new Date(_0x75761['mtime'])[_0x53dc67(0x132)]()[_0x53dc67(0x145)]('T')[0x0];if(_0x215078<_0x4b4177){const _0x5b72f1=join(this['logDir'],this['logBaseName']+'-'+_0x215078+_0x53dc67(0x13b));await rename(_0x2b390f,_0x5b72f1);}}const _0xada6b0=await readdir(this[_0x53dc67(0x12f)]),_0x54a951=this[_0x53dc67(0x125)][_0x53dc67(0x146)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x22fd80=new RegExp('^'+_0x54a951+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x25f572=_0xada6b0[_0x53dc67(0x12a)](_0x346de3=>_0x22fd80[_0x53dc67(0x131)](_0x346de3));for(const _0x5878ef of _0x25f572){const _0x3e9100=join(this[_0x53dc67(0x12f)],_0x5878ef),_0x38102a=join(this[_0x53dc67(0x12f)],_0x5878ef+_0x53dc67(0x12b));try{await pipeline(createReadStream(_0x3e9100),createGzip(),createWriteStream(_0x38102a)),await unlink(_0x3e9100);}catch(_0x5ccfb6){console[_0x53dc67(0x13e)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x5878ef+':',_0x5ccfb6);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x1646a6,_0x3aa265){var _0x2a6b2f=a200_0x2456,_0x21a6db=_0x1646a6();while(!![]){try{var _0x5d395d=-parseInt(_0x2a6b2f(0x18e))/0x1*(parseInt(_0x2a6b2f(0x18b))/0x2)+-parseInt(_0x2a6b2f(0x190))/0x3*(parseInt(_0x2a6b2f(0x18a))/0x4)+parseInt(_0x2a6b2f(0x18c))/0x5+-parseInt(_0x2a6b2f(0x18f))/0x6+parseInt(_0x2a6b2f(0x191))/0x7+-parseInt(_0x2a6b2f(0x192))/0x8*(-parseInt(_0x2a6b2f(0x18d))/0x9)+parseInt(_0x2a6b2f(0x189))/0xa*(-parseInt(_0x2a6b2f(0x193))/0xb);if(_0x5d395d===_0x3aa265)break;else _0x21a6db['push'](_0x21a6db['shift']());}catch(_0x45bf71){_0x21a6db['push'](_0x21a6db['shift']());}}}(a200_0xac2c,0xe4afe));export{FileHandler}from'./file-handler.js';function a200_0x2456(_0x5f33a5,_0x27d500){_0x5f33a5=_0x5f33a5-0x189;var _0xac2c4b=a200_0xac2c();var _0x2456fa=_0xac2c4b[_0x5f33a5];return _0x2456fa;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a200_0xac2c(){var _0x1e7583=['2367752oLJQxJ','34232aLzrNj','1390qlAAEI','4XdHQSa','3682EETlhf','6510680WoXNBc','18lZEQnv','361NhsNUl','3811638BelAcI','1905744owyWNs','9872226OzCpZO'];a200_0xac2c=function(){return _0x1e7583;};return a200_0xac2c();}
1
+ function a200_0x50c1(_0x525199,_0x3db7a9){_0x525199=_0x525199-0x81;var _0x232519=a200_0x2325();var _0x50c16a=_0x232519[_0x525199];return _0x50c16a;}(function(_0x3024ec,_0x4333c0){var _0x4f8f31=a200_0x50c1,_0x5b9f21=_0x3024ec();while(!![]){try{var _0x4ab97e=-parseInt(_0x4f8f31(0x8d))/0x1*(-parseInt(_0x4f8f31(0x8a))/0x2)+parseInt(_0x4f8f31(0x8b))/0x3+-parseInt(_0x4f8f31(0x87))/0x4*(parseInt(_0x4f8f31(0x89))/0x5)+-parseInt(_0x4f8f31(0x85))/0x6*(-parseInt(_0x4f8f31(0x88))/0x7)+parseInt(_0x4f8f31(0x86))/0x8*(-parseInt(_0x4f8f31(0x82))/0x9)+-parseInt(_0x4f8f31(0x8c))/0xa*(-parseInt(_0x4f8f31(0x83))/0xb)+parseInt(_0x4f8f31(0x84))/0xc*(parseInt(_0x4f8f31(0x81))/0xd);if(_0x4ab97e===_0x4333c0)break;else _0x5b9f21['push'](_0x5b9f21['shift']());}catch(_0x5708c1){_0x5b9f21['push'](_0x5b9f21['shift']());}}}(a200_0x2325,0x89f63));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a200_0x2325(){var _0x4c8782=['14lofXbw','4155pljTyg','22HbHCXc','2312223mXvDkp','10VLcTSR','5711xxdQwS','52UkhzvZ','1251hyhiQR','2442242DDdKab','2134644kJSiVE','330744yXIREX','50992sDawfq','2052YFeKFM'];a200_0x2325=function(){return _0x4c8782;};return a200_0x2325();}export{NullHandler}from'./null-handler.js';