@treasuredata/tdx 2026.8.5 → 2026.8.6

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 (276) hide show
  1. package/README.md +1 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/build-info.json +3 -3
  4. package/dist/cli-categories.d.ts +1 -1
  5. package/dist/cli-categories.js +1 -1
  6. package/dist/cli-categories.js.map +1 -1
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +1 -1
  9. package/dist/cli.js.map +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/agent-command.js +1 -1
  12. package/dist/commands/agent-test-command.js +1 -1
  13. package/dist/commands/api-command.js +1 -1
  14. package/dist/commands/auth-command.js +1 -1
  15. package/dist/commands/cas-command.js +1 -1
  16. package/dist/commands/cas-segment-command.js +1 -1
  17. package/dist/commands/chat-command.js +1 -1
  18. package/dist/commands/claude-command.js +1 -1
  19. package/dist/commands/claude-statusline-command.js +1 -1
  20. package/dist/commands/claude-usage-command.js +1 -1
  21. package/dist/commands/codex-command.d.ts +51 -0
  22. package/dist/commands/codex-command.d.ts.map +1 -0
  23. package/dist/commands/codex-command.js +1 -0
  24. package/dist/commands/codex-command.js.map +1 -0
  25. package/dist/commands/command.js +1 -1
  26. package/dist/commands/connection-command.js +1 -1
  27. package/dist/commands/databases.js +1 -1
  28. package/dist/commands/delivery-command.js +1 -1
  29. package/dist/commands/describe.js +1 -1
  30. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  31. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  32. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  33. package/dist/commands/engage-campaign-pull-command.js +1 -1
  34. package/dist/commands/engage-campaign-push-command.js +1 -1
  35. package/dist/commands/engage-campaign-validate-command.js +1 -1
  36. package/dist/commands/engage-command.d.ts.map +1 -1
  37. package/dist/commands/engage-command.js +1 -1
  38. package/dist/commands/engage-command.js.map +1 -1
  39. package/dist/commands/engage-template-pull-command.js +1 -1
  40. package/dist/commands/engage-template-push-command.js +1 -1
  41. package/dist/commands/engage-template-validate-command.js +1 -1
  42. package/dist/commands/job-command.js +1 -1
  43. package/dist/commands/journey-command.js +1 -1
  44. package/dist/commands/journey-validate-command.js +1 -1
  45. package/dist/commands/llm-command.js +1 -1
  46. package/dist/commands/mcp-command.js +1 -1
  47. package/dist/commands/p13n-command.js +1 -1
  48. package/dist/commands/parent-segment-command.js +1 -1
  49. package/dist/commands/policy-command.js +1 -1
  50. package/dist/commands/profile-command.js +1 -1
  51. package/dist/commands/profiles-command.js +1 -1
  52. package/dist/commands/query-command.js +1 -1
  53. package/dist/commands/schedule-command.js +1 -1
  54. package/dist/commands/segment-command.js +1 -1
  55. package/dist/commands/segment-create-command.js +1 -1
  56. package/dist/commands/segment-fields-command.js +1 -1
  57. package/dist/commands/segment-move-command.js +1 -1
  58. package/dist/commands/segment-pull-command.js +1 -1
  59. package/dist/commands/segment-push-command.js +1 -1
  60. package/dist/commands/segment-update-command.js +1 -1
  61. package/dist/commands/segment-use-command.js +1 -1
  62. package/dist/commands/segment-validate-command.js +1 -1
  63. package/dist/commands/segments.js +1 -1
  64. package/dist/commands/show.js +1 -1
  65. package/dist/commands/status-command.js +1 -1
  66. package/dist/commands/table-deleted.js +1 -1
  67. package/dist/commands/tables.js +1 -1
  68. package/dist/commands/unset-command.js +1 -1
  69. package/dist/commands/upgrade-command.js +1 -1
  70. package/dist/commands/use-command.js +1 -1
  71. package/dist/commands/user-command.js +1 -1
  72. package/dist/commands/work-command.js +1 -1
  73. package/dist/commands/workflow-command.js +1 -1
  74. package/dist/core/auth.js +1 -1
  75. package/dist/core/command-output.js +1 -1
  76. package/dist/core/config.js +1 -1
  77. package/dist/core/connection-cache.js +1 -1
  78. package/dist/core/constants.js +1 -1
  79. package/dist/core/credential-cache.js +1 -1
  80. package/dist/core/global-context.js +1 -1
  81. package/dist/core/keychain.js +1 -1
  82. package/dist/core/oauth-keychain.js +1 -1
  83. package/dist/core/oauth.js +1 -1
  84. package/dist/core/profile.js +1 -1
  85. package/dist/core/project-config.js +1 -1
  86. package/dist/core/session.js +1 -1
  87. package/dist/core/site-mismatch.js +1 -1
  88. package/dist/core/user-cache.js +1 -1
  89. package/dist/core/version.d.ts +3 -3
  90. package/dist/core/version.d.ts.map +1 -1
  91. package/dist/core/version.js +1 -1
  92. package/dist/core/version.js.map +1 -1
  93. package/dist/index.js +1 -1
  94. package/dist/mcp/server.js +1 -1
  95. package/dist/mcp/tools/index.js +1 -1
  96. package/dist/mcp/tools/tdx-run.js +1 -1
  97. package/dist/mcp/tools/tdx-search.js +1 -1
  98. package/dist/mcp/tools/work-create-item.js +1 -1
  99. package/dist/mcp/utils.js +1 -1
  100. package/dist/proxy/claude-usage-tracker.js +1 -1
  101. package/dist/proxy/passthrough-server.js +1 -1
  102. package/dist/proxy/sse-usage-parser.js +1 -1
  103. package/dist/sdk/agent/agent-config.js +1 -1
  104. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  105. package/dist/sdk/agent/agent-yaml.js +1 -1
  106. package/dist/sdk/agent/test/evaluator.js +1 -1
  107. package/dist/sdk/agent/test/executor.js +1 -1
  108. package/dist/sdk/agent/test/index.js +1 -1
  109. package/dist/sdk/agent/test/output.js +1 -1
  110. package/dist/sdk/agent/test/parser.js +1 -1
  111. package/dist/sdk/agent/tool-target-registry.js +1 -1
  112. package/dist/sdk/api.js +1 -1
  113. package/dist/sdk/auth-token.js +1 -1
  114. package/dist/sdk/cas/cas-api-client.js +1 -1
  115. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  116. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  117. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  118. package/dist/sdk/cas/cas-segment-schema.js +1 -1
  119. package/dist/sdk/cas/cas-segment-validator.js +1 -1
  120. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  121. package/dist/sdk/cas/index.js +1 -1
  122. package/dist/sdk/cas/pull-workflow.js +1 -1
  123. package/dist/sdk/cas/push-workflow.js +1 -1
  124. package/dist/sdk/cas/validate-files.js +1 -1
  125. package/dist/sdk/client/cdp-api-client.js +1 -1
  126. package/dist/sdk/client/delivery-api-client.js +1 -1
  127. package/dist/sdk/client/endpoints.js +1 -1
  128. package/dist/sdk/client/engage-api-client.js +1 -1
  129. package/dist/sdk/client/http-client.js +1 -1
  130. package/dist/sdk/client/llm-api-client.js +1 -1
  131. package/dist/sdk/client/oauth-refresh.js +1 -1
  132. package/dist/sdk/client/p13n-studio-api-client.js +1 -1
  133. package/dist/sdk/client/rate-limiter.js +1 -1
  134. package/dist/sdk/client/td-api-client.js +1 -1
  135. package/dist/sdk/client/trino-api-client.js +1 -1
  136. package/dist/sdk/client/workflow-client.js +1 -1
  137. package/dist/sdk/connection-validator.js +1 -1
  138. package/dist/sdk/connection.js +1 -1
  139. package/dist/sdk/delivery.js +1 -1
  140. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  141. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  142. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  143. package/dist/sdk/engage/always-on-campaign-yaml.d.ts.map +1 -1
  144. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  145. package/dist/sdk/engage/always-on-campaign-yaml.js.map +1 -1
  146. package/dist/sdk/engage/campaign-pull.js +1 -1
  147. package/dist/sdk/engage/campaign-push.js +1 -1
  148. package/dist/sdk/engage/campaign-validator.js +1 -1
  149. package/dist/sdk/engage/campaign-yaml.d.ts.map +1 -1
  150. package/dist/sdk/engage/campaign-yaml.js +1 -1
  151. package/dist/sdk/engage/campaign-yaml.js.map +1 -1
  152. package/dist/sdk/engage/template-pull.js +1 -1
  153. package/dist/sdk/engage/template-push.js +1 -1
  154. package/dist/sdk/engage/template-validator.js +1 -1
  155. package/dist/sdk/engage/template-yaml.d.ts.map +1 -1
  156. package/dist/sdk/engage/template-yaml.js +1 -1
  157. package/dist/sdk/engage/template-yaml.js.map +1 -1
  158. package/dist/sdk/engage/types/always-on-campaign-schema.d.ts +1 -0
  159. package/dist/sdk/engage/types/always-on-campaign-schema.d.ts.map +1 -1
  160. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  161. package/dist/sdk/engage/types/campaign-def.js +1 -1
  162. package/dist/sdk/engage/types/campaign-schema.d.ts +2 -0
  163. package/dist/sdk/engage/types/campaign-schema.d.ts.map +1 -1
  164. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  165. package/dist/sdk/engage/types/campaign-schema.js.map +1 -1
  166. package/dist/sdk/engage/types/template-schema.d.ts +1 -0
  167. package/dist/sdk/engage/types/template-schema.d.ts.map +1 -1
  168. package/dist/sdk/engage/types/template-schema.js +1 -1
  169. package/dist/sdk/engage/types/template-schema.js.map +1 -1
  170. package/dist/sdk/engage.js +1 -1
  171. package/dist/sdk/errors.js +1 -1
  172. package/dist/sdk/index.js +1 -1
  173. package/dist/sdk/io/index.js +1 -1
  174. package/dist/sdk/io/node-filesystem.js +1 -1
  175. package/dist/sdk/job.js +1 -1
  176. package/dist/sdk/journey.js +1 -1
  177. package/dist/sdk/llm/chat-cache.js +1 -1
  178. package/dist/sdk/llm/index.js +1 -1
  179. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  180. package/dist/sdk/llm/model-factors.js +1 -1
  181. package/dist/sdk/llm/user-settings.js +1 -1
  182. package/dist/sdk/p13n-studio.js +1 -1
  183. package/dist/sdk/personalization.js +1 -1
  184. package/dist/sdk/policy.js +1 -1
  185. package/dist/sdk/query/deleted-table-validation.js +1 -1
  186. package/dist/sdk/query/index.js +1 -1
  187. package/dist/sdk/query/sql-parser.js +1 -1
  188. package/dist/sdk/realtime.js +1 -1
  189. package/dist/sdk/schedule.js +1 -1
  190. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  191. package/dist/sdk/segment/fields-display.js +1 -1
  192. package/dist/sdk/segment/file-discovery.js +1 -1
  193. package/dist/sdk/segment/journey-utils.js +1 -1
  194. package/dist/sdk/segment/journey-validator.js +1 -1
  195. package/dist/sdk/segment/journey-yaml.js +1 -1
  196. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  197. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  198. package/dist/sdk/segment/pull-workflow.js +1 -1
  199. package/dist/sdk/segment/push-recovery.js +1 -1
  200. package/dist/sdk/segment/push-workflow.js +1 -1
  201. package/dist/sdk/segment/resolution-context.js +1 -1
  202. package/dist/sdk/segment/segment-path-parser.js +1 -1
  203. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  204. package/dist/sdk/segment/segment-validator.js +1 -1
  205. package/dist/sdk/segment/target-resolution.js +1 -1
  206. package/dist/sdk/segment/tdx-config.js +1 -1
  207. package/dist/sdk/segment/types/activation-schema.js +1 -1
  208. package/dist/sdk/segment/types/journey-def.js +1 -1
  209. package/dist/sdk/segment/types/journey-schema.js +1 -1
  210. package/dist/sdk/segment/types/segment-def.js +1 -1
  211. package/dist/sdk/segment/types/segment-schema.js +1 -1
  212. package/dist/sdk/segment/validate-files.js +1 -1
  213. package/dist/sdk/segment/yaml-validator.js +1 -1
  214. package/dist/sdk/segment.js +1 -1
  215. package/dist/sdk/types/engage.d.ts +8 -0
  216. package/dist/sdk/types/engage.d.ts.map +1 -1
  217. package/dist/sdk/types/index.js +1 -1
  218. package/dist/sdk/types/progress.js +1 -1
  219. package/dist/sdk/types/workspace.js +1 -1
  220. package/dist/sdk/user.js +1 -1
  221. package/dist/sdk/util/format-detector.js +1 -1
  222. package/dist/sdk/util/formatters.js +1 -1
  223. package/dist/sdk/util/index.js +1 -1
  224. package/dist/sdk/util/paginate.js +1 -1
  225. package/dist/sdk/util/tree-formatter.js +1 -1
  226. package/dist/sdk/util/tree-search.js +1 -1
  227. package/dist/sdk/workflow/archive-validation.js +1 -1
  228. package/dist/sdk/workflow/clone-workflow.js +1 -1
  229. package/dist/sdk/workflow/index.js +1 -1
  230. package/dist/sdk/workflow/pull-workflow.js +1 -1
  231. package/dist/sdk/workflow/push-workflow.js +1 -1
  232. package/dist/sdk/workflow/task-graph.js +1 -1
  233. package/dist/sdk/workflow/tdx-config.js +1 -1
  234. package/dist/sdk/workflow/workflow-utils.js +1 -1
  235. package/dist/sdk/workspace/access-tracker.js +1 -1
  236. package/dist/sdk/workspace/frontmatter.js +1 -1
  237. package/dist/sdk/workspace/git.js +1 -1
  238. package/dist/sdk/workspace/index.js +1 -1
  239. package/dist/sdk/workspace/templates.js +1 -1
  240. package/dist/sdk/workspace/weekly.js +1 -1
  241. package/dist/sdk/workspace/wikilinks.js +1 -1
  242. package/dist/test-utils/command-runner.js +1 -1
  243. package/dist/test-utils/factories.js +1 -1
  244. package/dist/test-utils/fixtures.js +1 -1
  245. package/dist/test-utils/http-mock.js +1 -1
  246. package/dist/test-utils/index.js +1 -1
  247. package/dist/utils/async.js +1 -1
  248. package/dist/utils/claude-code-state.js +1 -1
  249. package/dist/utils/colors.js +1 -1
  250. package/dist/utils/diff.js +1 -1
  251. package/dist/utils/file-permissions.js +1 -1
  252. package/dist/utils/file-reader.js +1 -1
  253. package/dist/utils/github-releases.js +1 -1
  254. package/dist/utils/global-cache.js +1 -1
  255. package/dist/utils/json-loader.js +1 -1
  256. package/dist/utils/local-cache.js +1 -1
  257. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  258. package/dist/utils/logger/formatters/index.js +1 -1
  259. package/dist/utils/logger/handlers/console-handler.js +1 -1
  260. package/dist/utils/logger/handlers/file-handler.js +1 -1
  261. package/dist/utils/logger/handlers/index.js +1 -1
  262. package/dist/utils/logger/handlers/null-handler.js +1 -1
  263. package/dist/utils/logger/index.js +1 -1
  264. package/dist/utils/logger/logger.js +1 -1
  265. package/dist/utils/logger/types.js +1 -1
  266. package/dist/utils/option-validation.js +1 -1
  267. package/dist/utils/process.js +1 -1
  268. package/dist/utils/prompt.js +1 -1
  269. package/dist/utils/proxy-fetch.js +1 -1
  270. package/dist/utils/spinner.js +1 -1
  271. package/dist/utils/sse-parser.js +1 -1
  272. package/dist/utils/string-utils.js +1 -1
  273. package/dist/utils/table-ref-parser.js +1 -1
  274. package/dist/utils/tdx-logger.js +1 -1
  275. package/dist/utils/version-check.js +1 -1
  276. package/package.json +2 -47
@@ -1 +1 @@
1
- const a229_0x3c2e02=a229_0x30cd;(function(_0x28c8c5,_0x2cb908){const _0x629f81=a229_0x30cd,_0x1e78b3=_0x28c8c5();while(!![]){try{const _0x355edc=parseInt(_0x629f81(0x1cd))/0x1*(-parseInt(_0x629f81(0x1e2))/0x2)+parseInt(_0x629f81(0x1e1))/0x3+parseInt(_0x629f81(0x1cc))/0x4*(-parseInt(_0x629f81(0x1db))/0x5)+parseInt(_0x629f81(0x1da))/0x6+-parseInt(_0x629f81(0x1d6))/0x7+parseInt(_0x629f81(0x1cb))/0x8*(-parseInt(_0x629f81(0x1d9))/0x9)+parseInt(_0x629f81(0x1d1))/0xa;if(_0x355edc===_0x2cb908)break;else _0x1e78b3['push'](_0x1e78b3['shift']());}catch(_0x7ca36b){_0x1e78b3['push'](_0x1e78b3['shift']());}}}(a229_0x80f5,0xf12de));function a229_0x80f5(){const _0x5d6543=['2639745TxhjNO','1126796ajVPgy','fetch','map','join','createFetch','13328AzPTSJ','1897724jQQJov','3WaUnFK','http','error','run','21543710zVZurj','log','us01','exitCode','setup','1507191nDLDqN','warn','push','2664kXsyAL','10653120yePBsS','15GxGWZL','ERROR','verify','originalFetch','fail','site'];a229_0x80f5=function(){return _0x5d6543;};return a229_0x80f5();}import{TDX,LogLevel}from'../sdk/index.js';function a229_0x30cd(_0x131796,_0x27cc59){_0x131796=_0x131796-0x1ca;const _0x80f516=a229_0x80f5();let _0x30cd6a=_0x80f516[_0x131796];return _0x30cd6a;}import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a229_0x3c2e02(0x1ce)];[a229_0x3c2e02(0x1de)];constructor(){const _0xbef9da=a229_0x3c2e02;this[_0xbef9da(0x1ce)]=createHTTPMock(),this[_0xbef9da(0x1de)]=global[_0xbef9da(0x1e3)];}[a229_0x3c2e02(0x1d5)](){const _0x1264ed=a229_0x3c2e02;this[_0x1264ed(0x1de)]=global[_0x1264ed(0x1e3)],global['fetch']=this['http'][_0x1264ed(0x1ca)]();}['teardown'](_0x52161b){const _0x2302e4=a229_0x3c2e02;try{_0x52161b?.[_0x2302e4(0x1df)]&&this[_0x2302e4(0x1ce)][_0x2302e4(0x1dd)](_0x52161b);}finally{global[_0x2302e4(0x1e3)]=this[_0x2302e4(0x1de)],this['http']['reset']();}}async['run'](_0x3c38e5,_0x3d45ee={}){const _0x27477c=a229_0x3c2e02,_0x325f17=[],_0x15ef21=[],_0x30af7f=console['log'],_0x4beb44=console[_0x27477c(0x1cf)],_0x17d960=console[_0x27477c(0x1d7)];console[_0x27477c(0x1d2)]=(..._0x148772)=>{const _0x275312=_0x27477c;_0x325f17['push'](_0x148772['map'](String)[_0x275312(0x1e5)]('\x20'));},console['error']=(..._0xd887e9)=>{const _0x5813a2=_0x27477c;_0x15ef21[_0x5813a2(0x1d8)](_0xd887e9['map'](String)[_0x5813a2(0x1e5)]('\x20'));},console['warn']=(..._0x194fdd)=>{const _0x3bc030=_0x27477c;_0x15ef21[_0x3bc030(0x1d8)](_0x194fdd[_0x3bc030(0x1e4)](String)[_0x3bc030(0x1e5)]('\x20'));};try{const _0x267200=new TDX({'site':_0x3d45ee['options']?.[_0x27477c(0x1e0)]??_0x27477c(0x1d3),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x27477c(0x1dc)]}),_0x3f2ca1={'options':createTestGlobalOptions(_0x3d45ee['options']),'args':_0x3d45ee['args']??[],'tdx':_0x267200},_0x1a099f=new _0x3c38e5(),_0x30db08=await _0x1a099f[_0x27477c(0x1d0)](_0x3f2ca1);return{'exitCode':_0x30db08,'stdout':_0x325f17,'stderr':_0x15ef21};}finally{console[_0x27477c(0x1d2)]=_0x30af7f,console[_0x27477c(0x1cf)]=_0x4beb44,console[_0x27477c(0x1d7)]=_0x17d960;}}async['runSequence'](_0x427818){const _0x26137c=a229_0x3c2e02,_0x2f05cf=[];for(const {command:_0x22fc70,options:_0x162418}of _0x427818){const _0x62e5b0=await this[_0x26137c(0x1d0)](_0x22fc70,_0x162418);_0x2f05cf[_0x26137c(0x1d8)](_0x62e5b0);if(_0x62e5b0[_0x26137c(0x1d4)]!==0x0)break;}return _0x2f05cf;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a230_0x79cd7e=a230_0x4c57;(function(_0x1860ac,_0x1dfd26){const _0x403cf5=a230_0x4c57,_0x24c3b8=_0x1860ac();while(!![]){try{const _0x2efc7d=-parseInt(_0x403cf5(0x153))/0x1+-parseInt(_0x403cf5(0x157))/0x2*(parseInt(_0x403cf5(0x149))/0x3)+parseInt(_0x403cf5(0x146))/0x4+-parseInt(_0x403cf5(0x15e))/0x5*(parseInt(_0x403cf5(0x159))/0x6)+parseInt(_0x403cf5(0x160))/0x7+parseInt(_0x403cf5(0x14f))/0x8+parseInt(_0x403cf5(0x145))/0x9;if(_0x2efc7d===_0x1dfd26)break;else _0x24c3b8['push'](_0x24c3b8['shift']());}catch(_0x213ec6){_0x24c3b8['push'](_0x24c3b8['shift']());}}}(a230_0x146c,0x28c0c));import{TDX,LogLevel}from'../sdk/index.js';function a230_0x4c57(_0x21a57e,_0xcd7e96){_0x21a57e=_0x21a57e-0x145;const _0x146cf4=a230_0x146c();let _0x4c5751=_0x146cf4[_0x21a57e];return _0x4c5751;}import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a230_0x79cd7e(0x163)];['originalFetch'];constructor(){const _0x4b2710=a230_0x79cd7e;this['http']=createHTTPMock(),this[_0x4b2710(0x162)]=global[_0x4b2710(0x151)];}[a230_0x79cd7e(0x152)](){const _0x1bc0f9=a230_0x79cd7e;this[_0x1bc0f9(0x162)]=global[_0x1bc0f9(0x151)],global['fetch']=this[_0x1bc0f9(0x163)][_0x1bc0f9(0x15f)]();}[a230_0x79cd7e(0x148)](_0x562ef7){const _0x5b5bfd=a230_0x79cd7e;try{_0x562ef7?.['fail']&&this[_0x5b5bfd(0x163)]['verify'](_0x562ef7);}finally{global[_0x5b5bfd(0x151)]=this[_0x5b5bfd(0x162)],this['http'][_0x5b5bfd(0x155)]();}}async['run'](_0x5ea813,_0x457be0={}){const _0x2d2a83=a230_0x79cd7e,_0x32db7b=[],_0x3907c8=[],_0x291605=console['log'],_0x1e119f=console[_0x2d2a83(0x150)],_0x1fbc02=console[_0x2d2a83(0x161)];console[_0x2d2a83(0x14a)]=(..._0x17f259)=>{const _0xd89856=_0x2d2a83;_0x32db7b[_0xd89856(0x15d)](_0x17f259[_0xd89856(0x15c)](String)[_0xd89856(0x14b)]('\x20'));},console['error']=(..._0x137923)=>{const _0x3d9c0b=_0x2d2a83;_0x3907c8[_0x3d9c0b(0x15d)](_0x137923['map'](String)[_0x3d9c0b(0x14b)]('\x20'));},console[_0x2d2a83(0x161)]=(..._0xf2a9dd)=>{const _0x1a7e26=_0x2d2a83;_0x3907c8['push'](_0xf2a9dd['map'](String)[_0x1a7e26(0x14b)]('\x20'));};try{const _0x1c848e=new TDX({'site':_0x457be0[_0x2d2a83(0x14d)]?.[_0x2d2a83(0x14c)]??_0x2d2a83(0x15a),'apiKey':_0x2d2a83(0x14e),'logLevel':LogLevel[_0x2d2a83(0x15b)]}),_0x47c4a0={'options':createTestGlobalOptions(_0x457be0[_0x2d2a83(0x14d)]),'args':_0x457be0[_0x2d2a83(0x147)]??[],'tdx':_0x1c848e},_0x4acc5a=new _0x5ea813(),_0x325b19=await _0x4acc5a[_0x2d2a83(0x154)](_0x47c4a0);return{'exitCode':_0x325b19,'stdout':_0x32db7b,'stderr':_0x3907c8};}finally{console[_0x2d2a83(0x14a)]=_0x291605,console['error']=_0x1e119f,console[_0x2d2a83(0x161)]=_0x1fbc02;}}async[a230_0x79cd7e(0x156)](_0x32efa3){const _0x42687e=a230_0x79cd7e,_0x1f721c=[];for(const {command:_0x5aa6a0,options:_0xe8bc02}of _0x32efa3){const _0x4f5ba5=await this[_0x42687e(0x154)](_0x5aa6a0,_0xe8bc02);_0x1f721c['push'](_0x4f5ba5);if(_0x4f5ba5[_0x42687e(0x158)]!==0x0)break;}return _0x1f721c;}}function a230_0x146c(){const _0x2c2b30=['setup','117017pZCMKb','run','reset','runSequence','130SYvgCJ','exitCode','6xrouVa','us01','ERROR','map','push','1104995bnQkWf','createFetch','50071drowCM','warn','originalFetch','http','4675707zZspuP','277096TasTVZ','args','teardown','5052JYkRuF','log','join','site','options','test-api-key-id/test-api-key-secret','147600yzBPSX','error','fetch'];a230_0x146c=function(){return _0x2c2b30;};return a230_0x146c();}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x1e066d,_0x467582){const _0x56b7a3=a230_0x5e8b,_0x8d522b=_0x1e066d();while(!![]){try{const _0x20fa5c=parseInt(_0x56b7a3(0xcf))/0x1+-parseInt(_0x56b7a3(0xea))/0x2*(-parseInt(_0x56b7a3(0xd7))/0x3)+-parseInt(_0x56b7a3(0xe9))/0x4+parseInt(_0x56b7a3(0xd2))/0x5+parseInt(_0x56b7a3(0xee))/0x6+-parseInt(_0x56b7a3(0xdb))/0x7*(-parseInt(_0x56b7a3(0xe8))/0x8)+-parseInt(_0x56b7a3(0xe1))/0x9*(parseInt(_0x56b7a3(0xce))/0xa);if(_0x20fa5c===_0x467582)break;else _0x8d522b['push'](_0x8d522b['shift']());}catch(_0x4e840c){_0x8d522b['push'](_0x8d522b['shift']());}}}(a230_0x4fb1,0x7ee91));import{vi}from'vitest';import a230_0x17a606 from'fs';function a230_0x5e8b(_0x70474c,_0x547b4c){_0x70474c=_0x70474c-0xce;const _0x4fb16c=a230_0x4fb1();let _0x5e8bc8=_0x4fb16c[_0x70474c];return _0x5e8bc8;}import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x335d57){const _0x286d36=a230_0x5e8b;return{'site':_0x286d36(0xe7),'apiKey':_0x286d36(0xd0),'logLevel':LogLevel[_0x286d36(0xd9)],..._0x335d57};}function a230_0x4fb1(){const _0xfd72e7=['error','push','tdx.json','log','6883119UhnqnD','map','args','30000','logs','user','us01','5784KupSqZ','2172376YkPczK','80398DNsqyj','query','init','join','2581914mwSkkX','tdx','30wCleaQ','336186zXIjus','test-api-key-id/test-api-key-secret','workflow','4274295NXOnnA','writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set','writeFileSync','segment','test-api-key','75NktIld','warn','ERROR','table','7077bZwCWB','api'];a230_0x4fb1=function(){return _0xfd72e7;};return a230_0x4fb1();}export function createTestGlobalOptions(_0x5dba70){const _0x4d653a=a230_0x5e8b;return{'site':_0x4d653a(0xe7),'format':_0x4d653a(0xda),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x4d653a(0xe4),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x4d653a(0xd9)],..._0x5dba70};}export async function initTestLogger(){const _0xffee0a=a230_0x5e8b;Logger['reset']();const _0x1b8c77=join(getGlobalCacheDir(),_0xffee0a(0xe5),'tdx-test.log');await Logger[_0xffee0a(0xec)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x1b8c77,'rotate':![]})]});}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x5ade69){const _0x41deb9=a230_0x5e8b;return{'context':{'site':_0x41deb9(0xe7),'apiKey':_0x41deb9(0xd6),'logLevel':LogLevel[_0x41deb9(0xd9)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xeb)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xd5)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5ade69?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xd1)]},'user':{'show':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xe6)]},'api':{'request':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xdc)]},..._0x5ade69};}export function createTestCommandContext(_0x170b8b){const _0x4bfb70=a230_0x5e8b,_0x4552bf=createTestGlobalOptions(_0x170b8b?.['options']),_0x5e0f96=_0x170b8b?.[_0x4bfb70(0xef)]??createMockTDX();return{'options':_0x4552bf,'args':_0x170b8b?.[_0x4bfb70(0xe3)]??[],'tdx':_0x5e0f96};}export function captureConsole(){const _0x1c4305=a230_0x5e8b,_0x5a8c70=[],_0x43aaba=[],_0x9819fd=console[_0x1c4305(0xe0)],_0x213a33=console['error'],_0x4cedc2=console[_0x1c4305(0xd8)];return console['log']=(..._0x881129)=>{const _0x4bb83c=_0x1c4305;_0x5a8c70[_0x4bb83c(0xde)](_0x881129[_0x4bb83c(0xe2)](String)[_0x4bb83c(0xed)]('\x20'));},console[_0x1c4305(0xdd)]=(..._0x5a6f93)=>{const _0x30bb88=_0x1c4305;_0x43aaba[_0x30bb88(0xde)](_0x5a6f93['map'](String)['join']('\x20'));},console[_0x1c4305(0xd8)]=(..._0x59d71d)=>{const _0x20b730=_0x1c4305;_0x43aaba[_0x20b730(0xde)](_0x59d71d[_0x20b730(0xe2)](String)['join']('\x20'));},{'stdout':_0x5a8c70,'stderr':_0x43aaba,'restore':()=>{const _0x2a6208=_0x1c4305;console[_0x2a6208(0xe0)]=_0x9819fd,console[_0x2a6208(0xdd)]=_0x213a33,console[_0x2a6208(0xd8)]=_0x4cedc2;}};}export function writeTestProfile(_0x287aef,_0x54f2a0){const _0x95cd63=a230_0x5e8b,_0x4a1c4c=process.env.TDX_CONFIG_DIR;if(!_0x4a1c4c)throw new Error(_0x95cd63(0xd3));a230_0x17a606[_0x95cd63(0xd4)](join(_0x4a1c4c,_0x95cd63(0xdf)),JSON['stringify']({'profiles':{[_0x287aef]:_0x54f2a0}},null,0x2));}
1
+ (function(_0x119b1f,_0x418aeb){const _0x42b9dd=a231_0x4f78,_0x2aa774=_0x119b1f();while(!![]){try{const _0x26b9b8=parseInt(_0x42b9dd(0x172))/0x1*(parseInt(_0x42b9dd(0x17f))/0x2)+parseInt(_0x42b9dd(0x171))/0x3*(parseInt(_0x42b9dd(0x176))/0x4)+parseInt(_0x42b9dd(0x17a))/0x5+parseInt(_0x42b9dd(0x175))/0x6*(-parseInt(_0x42b9dd(0x184))/0x7)+-parseInt(_0x42b9dd(0x173))/0x8*(parseInt(_0x42b9dd(0x185))/0x9)+parseInt(_0x42b9dd(0x174))/0xa*(parseInt(_0x42b9dd(0x178))/0xb)+parseInt(_0x42b9dd(0x17d))/0xc;if(_0x26b9b8===_0x418aeb)break;else _0x2aa774['push'](_0x2aa774['shift']());}catch(_0x271306){_0x2aa774['push'](_0x2aa774['shift']());}}}(a231_0x5da8,0xeb210));import{vi}from'vitest';import a231_0x350643 from'fs';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';function a231_0x5da8(){const _0x1b7cbd=['args','10640364FkCfuj','join','97732PKKrkm','user','us01','log','query','7488649ZSKZSW','8996301uehXFw','warn','workflow','map','error','push','tdx-test.log','options','init','ERROR','writeFileSync','30000','writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set','16266qeGmwJ','9bqYFLj','8jUbBqe','3786890zzGMdg','6ObnrPJ','16Odqfgy','tdx.json','33NuTQLD','tdx','2741190Ruzhqt','reset'];a231_0x5da8=function(){return _0x1b7cbd;};return a231_0x5da8();}export function createTestSDKContext(_0x4470e6){const _0x36a36c=a231_0x4f78;return{'site':_0x36a36c(0x181),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel['ERROR'],..._0x4470e6};}function a231_0x4f78(_0x2a68a2,_0x2fce50){_0x2a68a2=_0x2a68a2-0x16e;const _0x5da83f=a231_0x5da8();let _0x4f788d=_0x5da83f[_0x2a68a2];return _0x4f788d;}export function createTestGlobalOptions(_0x508070){const _0x52364c=a231_0x4f78;return{'site':'us01','format':'table','noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x52364c(0x16f),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x52364c(0x18e)],..._0x508070};}export async function initTestLogger(){const _0x2dd095=a231_0x4f78;Logger[_0x2dd095(0x17b)]();const _0x31e6b6=join(getGlobalCacheDir(),'logs',_0x2dd095(0x18b));await Logger[_0x2dd095(0x18d)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x31e6b6,'rotate':![]})]});}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x4f0890){const _0x3569ae=a231_0x4f78;return{'context':{'site':_0x3569ae(0x181),'apiKey':'test-api-key','logLevel':LogLevel[_0x3569ae(0x18e)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x4f0890?.[_0x3569ae(0x183)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4f0890?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4f0890?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x4f0890?.[_0x3569ae(0x187)]},'user':{'show':vi['fn'](),..._0x4f0890?.[_0x3569ae(0x180)]},'api':{'request':vi['fn'](),..._0x4f0890?.['api']},..._0x4f0890};}export function createTestCommandContext(_0xc44443){const _0x4e0500=a231_0x4f78,_0x51704d=createTestGlobalOptions(_0xc44443?.[_0x4e0500(0x18c)]),_0xcdbd17=_0xc44443?.[_0x4e0500(0x179)]??createMockTDX();return{'options':_0x51704d,'args':_0xc44443?.[_0x4e0500(0x17c)]??[],'tdx':_0xcdbd17};}export function captureConsole(){const _0x4cf633=a231_0x4f78,_0x83e69=[],_0x619e1=[],_0x23dea4=console[_0x4cf633(0x182)],_0x4a2b0a=console[_0x4cf633(0x189)],_0x41eb3a=console['warn'];return console[_0x4cf633(0x182)]=(..._0x1ec56d)=>{const _0x234381=_0x4cf633;_0x83e69[_0x234381(0x18a)](_0x1ec56d[_0x234381(0x188)](String)[_0x234381(0x17e)]('\x20'));},console['error']=(..._0x50f448)=>{const _0x5848b3=_0x4cf633;_0x619e1[_0x5848b3(0x18a)](_0x50f448['map'](String)['join']('\x20'));},console['warn']=(..._0x5d0db1)=>{const _0xe40b34=_0x4cf633;_0x619e1['push'](_0x5d0db1[_0xe40b34(0x188)](String)[_0xe40b34(0x17e)]('\x20'));},{'stdout':_0x83e69,'stderr':_0x619e1,'restore':()=>{const _0xa26cd3=_0x4cf633;console[_0xa26cd3(0x182)]=_0x23dea4,console['error']=_0x4a2b0a,console[_0xa26cd3(0x186)]=_0x41eb3a;}};}export function writeTestProfile(_0x1926fa,_0x4560ad){const _0x552680=a231_0x4f78,_0x51b791=process.env.TDX_CONFIG_DIR;if(!_0x51b791)throw new Error(_0x552680(0x170));a231_0x350643[_0x552680(0x16e)](join(_0x51b791,_0x552680(0x177)),JSON['stringify']({'profiles':{[_0x1926fa]:_0x4560ad}},null,0x2));}
@@ -1 +1 @@
1
- const a231_0x12663e=a231_0x354b;(function(_0x51682d,_0x5b9d0c){const _0x157f97=a231_0x354b,_0x2fae1f=_0x51682d();while(!![]){try{const _0x171c66=-parseInt(_0x157f97(0x16e))/0x1+-parseInt(_0x157f97(0x10d))/0x2*(-parseInt(_0x157f97(0x15e))/0x3)+-parseInt(_0x157f97(0x14b))/0x4*(-parseInt(_0x157f97(0x158))/0x5)+-parseInt(_0x157f97(0x13a))/0x6*(parseInt(_0x157f97(0x16b))/0x7)+parseInt(_0x157f97(0x155))/0x8+parseInt(_0x157f97(0x171))/0x9*(parseInt(_0x157f97(0x149))/0xa)+-parseInt(_0x157f97(0x109))/0xb*(parseInt(_0x157f97(0x11e))/0xc);if(_0x171c66===_0x5b9d0c)break;else _0x2fae1f['push'](_0x2fae1f['shift']());}catch(_0x300205){_0x2fae1f['push'](_0x2fae1f['shift']());}}}(a231_0x15fe,0x5c8e1));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-01T00:00:00Z','permission':a231_0x12663e(0x148)},'withTables':{'name':a231_0x12663e(0x10b),'count':0x64,'created_at':a231_0x12663e(0x126),'updated_at':a231_0x12663e(0x16a),'permission':a231_0x12663e(0x124)}},'table':{'basic':{'id':0x3039,'name':'users','type':a231_0x12663e(0x12a),'schema':JSON[a231_0x12663e(0x147)]([['id',a231_0x12663e(0x108)],[a231_0x12663e(0x170),a231_0x12663e(0x15c)],['name',a231_0x12663e(0x108)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x140)},'events':{'id':0x303a,'name':a231_0x12663e(0x150),'type':a231_0x12663e(0x12a),'schema':JSON['stringify']([['event_id',a231_0x12663e(0x108)],[a231_0x12663e(0x170),a231_0x12663e(0x15c)],['user_id',a231_0x12663e(0x108)],[a231_0x12663e(0x127),'string'],['properties',a231_0x12663e(0x145)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':'ps-123456','name':a231_0x12663e(0x122),'description':a231_0x12663e(0x118),'status':a231_0x12663e(0x132),'master_table':{'database':a231_0x12663e(0x11b),'table':'unified_customers'},'attributes':[{'name':a231_0x12663e(0x107),'type':a231_0x12663e(0x108),'key':!![]},{'name':'email','type':a231_0x12663e(0x108)},{'name':a231_0x12663e(0x138),'type':'timestamp'}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withBehaviors':{'id':a231_0x12663e(0x131),'name':a231_0x12663e(0x165),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a231_0x12663e(0x132),'master_table':{'database':a231_0x12663e(0x11b),'table':a231_0x12663e(0x105)},'behaviors':[{'name':a231_0x12663e(0x162),'table':{'database':a231_0x12663e(0x151),'table':a231_0x12663e(0x162)},'join_key':a231_0x12663e(0x107)},{'name':'page_views','table':{'database':a231_0x12663e(0x151),'table':a231_0x12663e(0x123)},'join_key':'customer_id'}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)}},'segment':{'basic':{'id':a231_0x12663e(0x104),'name':a231_0x12663e(0x135),'description':a231_0x12663e(0x11a),'parent_segment_id':a231_0x12663e(0x10f),'status':a231_0x12663e(0x132),'rules':[{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x141),'operator':a231_0x12663e(0x102),'value':a231_0x12663e(0x112)}],'count':0x1388,'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withMultipleRules':{'id':a231_0x12663e(0x125),'name':a231_0x12663e(0x115),'description':a231_0x12663e(0x164),'parent_segment_id':a231_0x12663e(0x10f),'status':a231_0x12663e(0x132),'rules':[{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x141),'operator':a231_0x12663e(0x102),'value':a231_0x12663e(0x112)},{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x119),'operator':a231_0x12663e(0x163),'value':0x3e8}],'count':0x5dc,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a231_0x12663e(0x168),'name':a231_0x12663e(0x139),'description':a231_0x12663e(0x142),'status':a231_0x12663e(0x159),'version':0x1,'steps':[{'id':a231_0x12663e(0x15a),'type':'wait','duration':'1d'},{'id':a231_0x12663e(0x12f),'type':a231_0x12663e(0x15b),'activation_id':a231_0x12663e(0x113)}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withDecision':{'id':a231_0x12663e(0x152),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':a231_0x12663e(0x132),'version':0x2,'steps':[{'id':'step-1','type':a231_0x12663e(0x12e),'segment_id':a231_0x12663e(0x104),'yes_path':'step-2','no_path':'step-3'},{'id':a231_0x12663e(0x12f),'type':a231_0x12663e(0x15b),'activation_id':a231_0x12663e(0x137)},{'id':'step-3','type':a231_0x12663e(0x15d)}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a231_0x12663e(0x14c)},{'name':'name','type':'varchar'},{'name':a231_0x12663e(0x16c),'type':'bigint'}],'data':[[a231_0x12663e(0x111),a231_0x12663e(0x114),0x64],[a231_0x12663e(0x121),a231_0x12663e(0x13c),0xc8],[a231_0x12663e(0x154),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a231_0x12663e(0x172),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a231_0x12663e(0x117),'type':a231_0x12663e(0x13e)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a231_0x12663e(0x110),'email':a231_0x12663e(0x16d),'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a231_0x12663e(0x136),'email':'admin@example.com','created_at':a231_0x12663e(0x161),'updated_at':a231_0x12663e(0x116),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a231_0x12663e(0x146),'database':a231_0x12663e(0x153),'status':a231_0x12663e(0x157),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':a231_0x12663e(0x14f),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a231_0x12663e(0x146),'database':a231_0x12663e(0x153),'status':a231_0x12663e(0x11d),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a231_0x12663e(0x153),'status':a231_0x12663e(0x106),'query':a231_0x12663e(0x12c),'start_at':a231_0x12663e(0x120),'end_at':a231_0x12663e(0x12d),'duration':0x1,'result_size':null,'error':a231_0x12663e(0x167)}},'workflow':{'basic':{'id':a231_0x12663e(0x14a),'name':a231_0x12663e(0x143),'project':'data_pipeline','revision':a231_0x12663e(0x13f),'timezone':a231_0x12663e(0x14e),'schedule':{'cron':a231_0x12663e(0x10c)}},'withSessions':{'id':a231_0x12663e(0x144),'name':a231_0x12663e(0x130),'project':a231_0x12663e(0x166),'revision':a231_0x12663e(0x156),'timezone':a231_0x12663e(0x16f),'schedule':{'cron':a231_0x12663e(0x160)},'last_session':{'id':a231_0x12663e(0x11c),'status':a231_0x12663e(0x157),'started_at':'2024-01-15T09:00:00Z','finished_at':a231_0x12663e(0x11f)}}},'apiError':{'unauthorized':{'errors':{'error':a231_0x12663e(0x10a),'message':a231_0x12663e(0x10a),'severity':a231_0x12663e(0x106),'status_code':0x191}},'notFound':{'errors':{'error':a231_0x12663e(0x14d),'message':a231_0x12663e(0x100),'severity':a231_0x12663e(0x106),'status_code':0x194}},'rateLimited':{'detail':a231_0x12663e(0x12b)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a231_0x12663e(0x128),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a231_0x12663e(0x101)}}};export function createDatabase(_0x23e80d){const _0x750014=a231_0x12663e;return{...fixtures[_0x750014(0x15f)][_0x750014(0x13d)],..._0x23e80d};}export function createTable(_0x4f050d){const _0x1ac144=a231_0x12663e;return{...fixtures[_0x1ac144(0x10e)][_0x1ac144(0x13d)],..._0x4f050d};}export function createParentSegment(_0x1d6251){const _0x2da222=a231_0x12663e;return{...fixtures[_0x2da222(0x129)][_0x2da222(0x13d)],..._0x1d6251};}function a231_0x354b(_0x38879a,_0x32c2fe){_0x38879a=_0x38879a-0x100;const _0x15fe13=a231_0x15fe();let _0x354b87=_0x15fe13[_0x38879a];return _0x354b87;}export function createSegment(_0x4c1ae3){const _0x3a542d=a231_0x12663e;return{...fixtures['segment'][_0x3a542d(0x13d)],..._0x4c1ae3};}export function createJourney(_0x3e6ba6){return{...fixtures['journey']['basic'],..._0x3e6ba6};}export function createQueryResult(_0x3d7c83){const _0x115dc1=a231_0x12663e;return{...fixtures[_0x115dc1(0x13b)][_0x115dc1(0x13d)],..._0x3d7c83};}export function createUser(_0x392dfb){const _0x4161b8=a231_0x12663e;return{...fixtures[_0x4161b8(0x103)][_0x4161b8(0x13d)],..._0x392dfb};}function a231_0x15fe(){const _0x436824=['Alice','High\x20Value\x20Active\x20Users','2024-01-15T00:00:00Z','total','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','lifetime_value','Users\x20active\x20in\x20the\x20last\x2030\x20days','cdp_db','sess-111','running','84vSlTTs','2024-01-15T09:05:00Z','2024-01-15T10:10:00Z','user-2','Test\x20Parent\x20Segment','pageviews','full_access','cs-111222','2023-06-15T10:30:00Z','event_type','Forbidden','parentSegment','log','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','SELECT\x20*\x20FROM\x20nonexistent_table','2024-01-15T10:10:01Z','decision_point','step-2','hourly_sync','ps-789012','active','completed','job','Active\x20Users','Admin\x20User','act-email','created_at','Welcome\x20Journey','6FXmFnQ','queryResult','Bob','basic','bigint','abc123','2024-01-01T00:00:00Z','last_login','Onboarding\x20journey\x20for\x20new\x20users','daily_etl','wf-67890','map<string,string>','presto','stringify','administrator','490430VeLVqK','wf-12345','148OSMlri','varchar','Resource\x20not\x20found','UTC','2024-01-15T10:00:05Z','events','events_db','j-def456','test_db','user-3','3952752fBQNlD','def456','success','51915TEUvHH','draft','step-1','activation','long','end','3sARTaU','database','0\x20*\x20*\x20*\x20*','2023-01-01T00:00:00Z','purchases','Greater','Active\x20users\x20with\x20high\x20lifetime\x20value','Customers\x20with\x20Behaviors','data_sync','Table\x20does\x20not\x20exist:\x20nonexistent_table','j-abc123','attribute','2024-01-15T08:00:00Z','2487065kmnOEc','count','test@example.com','341893qXCxnJ','America/Los_Angeles','time','135mweFIo','name','The\x20requested\x20resource\x20does\x20not\x20exist','/v3/database/list','TimeWithinPast','user','cs-456789','customers','error','customer_id','string','1511477GtRGKa','Invalid\x20API\x20key','production_db','0\x200\x20*\x20*\x20*','848464sXTwLV','table','ps-123456','Test\x20User','user-1','30d','act-123'];a231_0x15fe=function(){return _0x436824;};return a231_0x15fe();}export function createJob(_0x1869bf){const _0x2bb4d2=a231_0x12663e;return{...fixtures[_0x2bb4d2(0x134)][_0x2bb4d2(0x133)],..._0x1869bf};}export function createWorkflow(_0x507aed){return{...fixtures['workflow']['basic'],..._0x507aed};}
1
+ const a232_0x1e4e2f=a232_0x436e;function a232_0x436e(_0x2dd844,_0x118e26){_0x2dd844=_0x2dd844-0x10e;const _0x358965=a232_0x3589();let _0x436e59=_0x358965[_0x2dd844];return _0x436e59;}function a232_0x3589(){const _0x5c1298=['full_access','Forbidden','name','j-def456','created_at','success','workflow','Users\x20active\x20in\x20the\x20last\x2030\x20days','basic','Active\x20users\x20with\x20high\x20lifetime\x20value','2024-01-15T00:00:00Z','SELECT\x20*\x20FROM\x20nonexistent_table','varchar','queryResult','presto','TimeWithinPast','purchases','data_pipeline','database','event_id','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','admin@example.com','string','cs-111222','events_db','High\x20Value\x20Active\x20Users','daily_etl','0\x200\x20*\x20*\x20*','2024-01-15T12:00:00Z','Purchase\x20Reminder','America/Los_Angeles','event_type','map<string,string>','Greater','act-123','Alice','Table\x20does\x20not\x20exist:\x20nonexistent_table','1484073aBSRnp','Invalid\x20API\x20key','2024-01-15T10:00:00Z','lifetime_value','wait','2381070OCTaXS','2024-01-01T00:00:00Z','def456','page_views','user-3','1170918rxbnVg','segment','2024-01-15T09:05:00Z','user-1','Onboarding\x20journey\x20for\x20new\x20users','timestamp','sess-111','30d','unified_customers','2023-06-15T10:30:00Z','2024-01-15T10:00:05Z','Parent\x20segment\x20with\x20behavioral\x20data','bigint','running','2024-01-15T10:10:01Z','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','The\x20requested\x20resource\x20does\x20not\x20exist','draft','last_login','log','total','Charlie','Test\x20User','289RIPKHd','active','job','abc123','3178nGIIUw','j-abc123','completed','attribute','activation','error','UTC','time','journey','2024-01-15T10:10:00Z','customer_id','2044625DjjTYH','ps-123456','28544djXwBJ','users','cs-456789','administrator','2024-01-15T08:00:00Z','https://api.treasuredata.com/errors/forbidden','Resource\x20not\x20found','test_db','132045WqFaFZ','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','step-3','207QzoXLU','wf-12345','count','2024-01-15T10:05:00Z','events','cdp_db','Journey\x20with\x20decision\x20point','decision_point','properties','wf-67890','pageviews','4tXBNVF','stringify','parentSegment','Active\x20Users','step-1','2023-01-01T00:00:00Z','7oMFMdr','step-2','long','test@example.com','ps-789012','hourly_sync','user-2','Welcome\x20Journey'];a232_0x3589=function(){return _0x5c1298;};return a232_0x3589();}(function(_0x2e5ff9,_0x2f896e){const _0xca9c7e=a232_0x436e,_0x358193=_0x2e5ff9();while(!![]){try{const _0x22b5de=-parseInt(_0xca9c7e(0x15a))/0x1*(-parseInt(_0xca9c7e(0x15e))/0x2)+parseInt(_0xca9c7e(0x139))/0x3*(parseInt(_0xca9c7e(0x181))/0x4)+parseInt(_0xca9c7e(0x173))/0x5+-parseInt(_0xca9c7e(0x143))/0x6*(parseInt(_0xca9c7e(0x187))/0x7)+parseInt(_0xca9c7e(0x16b))/0x8*(-parseInt(_0xca9c7e(0x176))/0x9)+-parseInt(_0xca9c7e(0x13e))/0xa+-parseInt(_0xca9c7e(0x169))/0xb;if(_0x22b5de===_0x2f896e)break;else _0x358193['push'](_0x358193['shift']());}catch(_0x58a696){_0x358193['push'](_0x358193['shift']());}}}(a232_0x3589,0x44252));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a232_0x1e4e2f(0x13f),'updated_at':a232_0x1e4e2f(0x13f),'permission':a232_0x1e4e2f(0x16e)},'withTables':{'name':'production_db','count':0x64,'created_at':a232_0x1e4e2f(0x14c),'updated_at':a232_0x1e4e2f(0x16f),'permission':a232_0x1e4e2f(0x114)}},'table':{'basic':{'id':0x3039,'name':a232_0x1e4e2f(0x16c),'type':a232_0x1e4e2f(0x156),'schema':JSON['stringify']([['id',a232_0x1e4e2f(0x12a)],[a232_0x1e4e2f(0x165),'long'],[a232_0x1e4e2f(0x116),a232_0x1e4e2f(0x12a)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a232_0x1e4e2f(0x13f)},'events':{'id':0x303a,'name':a232_0x1e4e2f(0x17a),'type':'log','schema':JSON[a232_0x1e4e2f(0x182)]([[a232_0x1e4e2f(0x127),a232_0x1e4e2f(0x12a)],[a232_0x1e4e2f(0x165),a232_0x1e4e2f(0x10e)],['user_id','string'],[a232_0x1e4e2f(0x133),a232_0x1e4e2f(0x12a)],[a232_0x1e4e2f(0x17e),a232_0x1e4e2f(0x134)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a232_0x1e4e2f(0x130)}},'parentSegment':{'basic':{'id':a232_0x1e4e2f(0x16a),'name':'Test\x20Parent\x20Segment','description':a232_0x1e4e2f(0x128),'status':a232_0x1e4e2f(0x15b),'master_table':{'database':'cdp_db','table':a232_0x1e4e2f(0x14b)},'attributes':[{'name':a232_0x1e4e2f(0x168),'type':'string','key':!![]},{'name':'email','type':a232_0x1e4e2f(0x12a)},{'name':a232_0x1e4e2f(0x118),'type':a232_0x1e4e2f(0x148)}],'created_at':a232_0x1e4e2f(0x13f),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a232_0x1e4e2f(0x110),'name':'Customers\x20with\x20Behaviors','description':a232_0x1e4e2f(0x14e),'status':'active','master_table':{'database':a232_0x1e4e2f(0x17b),'table':'customers'},'behaviors':[{'name':a232_0x1e4e2f(0x124),'table':{'database':a232_0x1e4e2f(0x12c),'table':a232_0x1e4e2f(0x124)},'join_key':a232_0x1e4e2f(0x168)},{'name':a232_0x1e4e2f(0x141),'table':{'database':a232_0x1e4e2f(0x12c),'table':a232_0x1e4e2f(0x180)},'join_key':a232_0x1e4e2f(0x168)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a232_0x1e4e2f(0x11e)}},'segment':{'basic':{'id':a232_0x1e4e2f(0x16d),'name':a232_0x1e4e2f(0x184),'description':a232_0x1e4e2f(0x11b),'parent_segment_id':a232_0x1e4e2f(0x16a),'status':a232_0x1e4e2f(0x15b),'rules':[{'type':a232_0x1e4e2f(0x161),'field':a232_0x1e4e2f(0x155),'operator':a232_0x1e4e2f(0x123),'value':a232_0x1e4e2f(0x14a)}],'count':0x1388,'created_at':a232_0x1e4e2f(0x13f),'updated_at':a232_0x1e4e2f(0x11e)},'withMultipleRules':{'id':a232_0x1e4e2f(0x12b),'name':a232_0x1e4e2f(0x12d),'description':a232_0x1e4e2f(0x11d),'parent_segment_id':a232_0x1e4e2f(0x16a),'status':a232_0x1e4e2f(0x15b),'rules':[{'type':'attribute','field':a232_0x1e4e2f(0x155),'operator':a232_0x1e4e2f(0x123),'value':a232_0x1e4e2f(0x14a)},{'type':a232_0x1e4e2f(0x161),'field':a232_0x1e4e2f(0x13c),'operator':a232_0x1e4e2f(0x135),'value':0x3e8}],'count':0x5dc,'created_at':a232_0x1e4e2f(0x13f),'updated_at':a232_0x1e4e2f(0x11e)}},'journey':{'basic':{'id':a232_0x1e4e2f(0x15f),'name':a232_0x1e4e2f(0x113),'description':a232_0x1e4e2f(0x147),'status':a232_0x1e4e2f(0x154),'version':0x1,'steps':[{'id':a232_0x1e4e2f(0x185),'type':a232_0x1e4e2f(0x13d),'duration':'1d'},{'id':'step-2','type':'activation','activation_id':a232_0x1e4e2f(0x136)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a232_0x1e4e2f(0x11e)},'withDecision':{'id':a232_0x1e4e2f(0x117),'name':a232_0x1e4e2f(0x131),'description':a232_0x1e4e2f(0x17c),'status':a232_0x1e4e2f(0x15b),'version':0x2,'steps':[{'id':'step-1','type':a232_0x1e4e2f(0x17d),'segment_id':'cs-456789','yes_path':a232_0x1e4e2f(0x188),'no_path':a232_0x1e4e2f(0x175)},{'id':'step-2','type':a232_0x1e4e2f(0x162),'activation_id':'act-email'},{'id':'step-3','type':'end'}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a232_0x1e4e2f(0x120)},{'name':a232_0x1e4e2f(0x116),'type':a232_0x1e4e2f(0x120)},{'name':a232_0x1e4e2f(0x178),'type':a232_0x1e4e2f(0x14f)}],'data':[[a232_0x1e4e2f(0x146),a232_0x1e4e2f(0x137),0x64],[a232_0x1e4e2f(0x112),'Bob',0xc8],[a232_0x1e4e2f(0x142),a232_0x1e4e2f(0x158),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':a232_0x1e4e2f(0x120)}],'data':[]},'singleRow':{'schema':[{'name':a232_0x1e4e2f(0x157),'type':a232_0x1e4e2f(0x14f)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a232_0x1e4e2f(0x159),'email':a232_0x1e4e2f(0x10f),'created_at':a232_0x1e4e2f(0x13f),'updated_at':a232_0x1e4e2f(0x11e),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a232_0x1e4e2f(0x129),'created_at':a232_0x1e4e2f(0x186),'updated_at':a232_0x1e4e2f(0x11e),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a232_0x1e4e2f(0x122),'database':a232_0x1e4e2f(0x172),'status':a232_0x1e4e2f(0x119),'query':a232_0x1e4e2f(0x152),'start_at':a232_0x1e4e2f(0x13b),'end_at':a232_0x1e4e2f(0x14d),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a232_0x1e4e2f(0x172),'status':a232_0x1e4e2f(0x150),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a232_0x1e4e2f(0x179),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a232_0x1e4e2f(0x122),'database':a232_0x1e4e2f(0x172),'status':a232_0x1e4e2f(0x163),'query':a232_0x1e4e2f(0x11f),'start_at':a232_0x1e4e2f(0x167),'end_at':a232_0x1e4e2f(0x151),'duration':0x1,'result_size':null,'error':a232_0x1e4e2f(0x138)}},'workflow':{'basic':{'id':a232_0x1e4e2f(0x177),'name':a232_0x1e4e2f(0x12e),'project':a232_0x1e4e2f(0x125),'revision':a232_0x1e4e2f(0x15d),'timezone':a232_0x1e4e2f(0x164),'schedule':{'cron':a232_0x1e4e2f(0x12f)}},'withSessions':{'id':a232_0x1e4e2f(0x17f),'name':a232_0x1e4e2f(0x111),'project':'data_sync','revision':a232_0x1e4e2f(0x140),'timezone':a232_0x1e4e2f(0x132),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a232_0x1e4e2f(0x149),'status':a232_0x1e4e2f(0x119),'started_at':'2024-01-15T09:00:00Z','finished_at':a232_0x1e4e2f(0x145)}}},'apiError':{'unauthorized':{'errors':{'error':a232_0x1e4e2f(0x13a),'message':a232_0x1e4e2f(0x13a),'severity':a232_0x1e4e2f(0x163),'status_code':0x191}},'notFound':{'errors':{'error':a232_0x1e4e2f(0x171),'message':a232_0x1e4e2f(0x153),'severity':'error','status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a232_0x1e4e2f(0x170),'title':a232_0x1e4e2f(0x115),'status':0x193,'detail':a232_0x1e4e2f(0x174),'instance':'/v3/database/list'}}};export function createDatabase(_0x3b41f4){const _0x417dc9=a232_0x1e4e2f;return{...fixtures[_0x417dc9(0x126)][_0x417dc9(0x11c)],..._0x3b41f4};}export function createTable(_0x2ba8da){const _0x3fce78=a232_0x1e4e2f;return{...fixtures['table'][_0x3fce78(0x11c)],..._0x2ba8da};}export function createParentSegment(_0x5dac9e){const _0x36d94c=a232_0x1e4e2f;return{...fixtures[_0x36d94c(0x183)][_0x36d94c(0x11c)],..._0x5dac9e};}export function createSegment(_0x5b25e1){const _0x262fae=a232_0x1e4e2f;return{...fixtures[_0x262fae(0x144)][_0x262fae(0x11c)],..._0x5b25e1};}export function createJourney(_0x263e88){const _0x5b6c51=a232_0x1e4e2f;return{...fixtures[_0x5b6c51(0x166)][_0x5b6c51(0x11c)],..._0x263e88};}export function createQueryResult(_0x3b498b){const _0x7abfe=a232_0x1e4e2f;return{...fixtures[_0x7abfe(0x121)]['basic'],..._0x3b498b};}export function createUser(_0x1ebb90){const _0x456c42=a232_0x1e4e2f;return{...fixtures['user'][_0x456c42(0x11c)],..._0x1ebb90};}export function createJob(_0x300fa4){const _0x332c71=a232_0x1e4e2f;return{...fixtures[_0x332c71(0x15c)][_0x332c71(0x160)],..._0x300fa4};}export function createWorkflow(_0x469113){const _0x13381f=a232_0x1e4e2f;return{...fixtures[_0x13381f(0x11a)]['basic'],..._0x469113};}
@@ -1 +1 @@
1
- const a232_0x2e5256=a232_0x2eea;(function(_0xd1987d,_0x20d3b0){const _0x48c093=a232_0x2eea,_0x1b50d6=_0xd1987d();while(!![]){try{const _0x339050=parseInt(_0x48c093(0x1bb))/0x1+-parseInt(_0x48c093(0x191))/0x2+-parseInt(_0x48c093(0x1c3))/0x3*(-parseInt(_0x48c093(0x1dc))/0x4)+-parseInt(_0x48c093(0x18e))/0x5*(-parseInt(_0x48c093(0x1d6))/0x6)+parseInt(_0x48c093(0x1cf))/0x7*(parseInt(_0x48c093(0x1e1))/0x8)+parseInt(_0x48c093(0x1ab))/0x9*(-parseInt(_0x48c093(0x1ba))/0xa)+parseInt(_0x48c093(0x1d4))/0xb;if(_0x339050===_0x20d3b0)break;else _0x1b50d6['push'](_0x1b50d6['shift']());}catch(_0x332e46){_0x1b50d6['push'](_0x1b50d6['shift']());}}}(a232_0x1250,0x1b84e));function a232_0x1250(){const _0x3b94f9=['withBody','toLowerCase','12SrdOyA','toUpperCase','getStatusText','responder','mockImplementation','16SHtUKD','register','60370PMmSAr','withQuery','jsonResponse','249976GwwOdB','Forbidden','\x20registered\x20at:\x0a','fetchMock','GET','split','pathname','host','Created','error','entries','getRequests','simple','matched','reset','rfc9457','Not\x20Found','string','url','description','No\x20stub\x20matched\x20request:\x20','Bad\x20Request','text/plain','Request\x20body:\x20','requests','stubs','18EDcxMg','some','push','No\x20Content','createFetch','isArray','length','every','join','application/json','https://api.treasuredata.com/errors/','errorResponse','wasCalled','Too\x20Many\x20Requests','get','846050NDqOiE','133961oudJHx','Internal\x20Server\x20Error','filter','body','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','test','parse','map','2067uUTdEt','jsonResponseWithHeaders','method','matchCount','networkError','getLastRequest','headers','REST','Unprocessable\x20Entity','matcher','forEach','Registered\x20stubs:\x0a','252581mwHWji','Unknown','getMatchCount','includes','registerWithInspector','326546lDevNh','withHost','84MKxEOK','stringify','function','Bad\x20Gateway'];a232_0x1250=function(){return _0x3b94f9;};return a232_0x1250();}function a232_0x2eea(_0x266218,_0xffc68c){_0x266218=_0x266218-0x18d;const _0x1250a6=a232_0x1250();let _0x2eea76=_0x1250a6[_0x266218];return _0x2eea76;}import{vi}from'vitest';export class HTTPMockRegistry{[a232_0x2e5256(0x1aa)]=[];[a232_0x2e5256(0x1a9)]=[];[a232_0x2e5256(0x194)]=null;[a232_0x2e5256(0x1ca)](_0x21bbca,_0x2272fa){return _0x47cecd=>{const _0x1ca611=a232_0x2eea;if(_0x47cecd[_0x1ca611(0x1c5)]['toUpperCase']()!==_0x21bbca[_0x1ca611(0x1dd)]())return![];const _0x59e6a2=new URL(_0x47cecd['url']);if(typeof _0x2272fa===_0x1ca611(0x1a2))return _0x59e6a2[_0x1ca611(0x197)]===_0x2272fa||_0x59e6a2[_0x1ca611(0x197)][_0x1ca611(0x1d2)](_0x2272fa);return _0x2272fa[_0x1ca611(0x1c0)](_0x59e6a2['pathname']);};}[a232_0x2e5256(0x18f)](_0x354631,_0x72c0fb){return _0x44114b=>{const _0x2f598d=a232_0x2eea;if(!_0x354631(_0x44114b))return![];const _0xd7fcef=new URL(_0x44114b[_0x2f598d(0x1a3)]);return Object[_0x2f598d(0x19b)](_0x72c0fb)[_0x2f598d(0x1b2)](([_0x3ac93e,_0x3e960a])=>_0xd7fcef['searchParams'][_0x2f598d(0x1b9)](_0x3ac93e)===_0x3e960a);};}[a232_0x2e5256(0x1da)](_0x2300a3,_0x27e324){return _0x231170=>{const _0x438a04=a232_0x2eea;if(!_0x2300a3(_0x231170))return![];if(typeof _0x27e324===_0x438a04(0x1d8))return _0x27e324(_0x231170[_0x438a04(0x1be)]);return JSON['stringify'](_0x231170[_0x438a04(0x1be)])===JSON[_0x438a04(0x1d7)](_0x27e324);};}[a232_0x2e5256(0x1d5)](_0x21e867,_0x4fccfd){return _0x419b49=>{const _0x215973=a232_0x2eea;if(!_0x21e867(_0x419b49))return![];const _0x22e41d=new URL(_0x419b49[_0x215973(0x1a3)]);return _0x22e41d[_0x215973(0x198)]===_0x4fccfd;};}[a232_0x2e5256(0x18d)](_0x116202,_0x2c94be,_0x21bea7){const _0x5316ac=a232_0x2e5256;this[_0x5316ac(0x1aa)][_0x5316ac(0x1ad)]({'matcher':_0x116202,'responder':_0x2c94be,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x21bea7?.['description']});}[a232_0x2e5256(0x1d3)](_0x3a3ddb,_0x27ccc7,_0x32974f){const _0x3c1023=a232_0x2e5256,_0x21dff6=_0x5f1bf3=>{const _0x2c151e=a232_0x2eea;return _0x32974f(_0x5f1bf3[_0x2c151e(0x1be)],_0x5f1bf3),_0x27ccc7(_0x5f1bf3);};this[_0x3c1023(0x18d)](_0x3a3ddb,_0x21dff6);}static[a232_0x2e5256(0x190)](_0x2a4996,_0x1baa7f=0xc8){const _0x41f52c=a232_0x2e5256;return()=>new Response(JSON['stringify'](_0x2a4996),{'status':_0x1baa7f,'headers':{'Content-Type':_0x41f52c(0x1b4)}});}static[a232_0x2e5256(0x1b6)](_0x1a0e6b,_0x4ad0a5,_0x1a2194=a232_0x2e5256(0x19d)){return()=>{const _0x2ae612=a232_0x2eea;let _0x1e302a;switch(_0x1a2194){case'td-api':_0x1e302a={'errors':{'error':_0x4ad0a5,'message':_0x4ad0a5,'severity':_0x2ae612(0x19a),'status_code':_0x1a0e6b}};break;case _0x2ae612(0x1a0):_0x1e302a={'type':_0x2ae612(0x1b5)+_0x1a0e6b,'title':HTTPMockRegistry[_0x2ae612(0x1de)](_0x1a0e6b),'status':_0x1a0e6b,'detail':_0x4ad0a5};break;default:_0x1e302a={'error':_0x4ad0a5};}return new Response(JSON[_0x2ae612(0x1d7)](_0x1e302a),{'status':_0x1a0e6b,'headers':{'Content-Type':_0x2ae612(0x1b4)}});};}static[a232_0x2e5256(0x1c4)](_0x52d48a,_0x533372,_0x3b8a81=0xc8){const _0x1f4f33=a232_0x2e5256;return()=>new Response(JSON['stringify'](_0x52d48a),{'status':_0x3b8a81,'headers':{'Content-Type':_0x1f4f33(0x1b4),..._0x533372}});}static['textResponse'](_0x4bb7b7,_0x454d0b=0xc8){const _0x316009=a232_0x2e5256;return()=>new Response(_0x4bb7b7,{'status':_0x454d0b,'headers':{'Content-Type':_0x316009(0x1a7)}});}static[a232_0x2e5256(0x1c7)](_0x193cea){return()=>{throw new Error(_0x193cea);};}[a232_0x2e5256(0x1af)](){const _0x50692f=a232_0x2e5256;return this[_0x50692f(0x194)]=vi['fn']()[_0x50692f(0x1e0)](async(_0x5d950a,_0x299df9)=>{const _0x1c6e1a=_0x50692f,_0x99a0df=this['parseRequest'](_0x5d950a,_0x299df9);this[_0x1c6e1a(0x1a9)][_0x1c6e1a(0x1ad)](_0x99a0df);for(const _0x4ddb7e of this[_0x1c6e1a(0x1aa)]){if(_0x4ddb7e[_0x1c6e1a(0x1cc)](_0x99a0df))return _0x4ddb7e['matched']=!![],_0x4ddb7e['matchCount']++,_0x4ddb7e[_0x1c6e1a(0x1df)](_0x99a0df);}const _0x561d70=this[_0x1c6e1a(0x1aa)][_0x1c6e1a(0x1c2)]((_0x30890d,_0x462f87)=>'\x20\x20'+(_0x462f87+0x1)+'.\x20'+(_0x30890d['description']??'unnamed\x20stub'))[_0x1c6e1a(0x1b3)]('\x0a');throw new Error(_0x1c6e1a(0x1a5)+_0x99a0df[_0x1c6e1a(0x1c5)]+'\x20'+_0x99a0df[_0x1c6e1a(0x1a3)]+'\x0a'+(_0x1c6e1a(0x1a8)+JSON[_0x1c6e1a(0x1d7)](_0x99a0df[_0x1c6e1a(0x1be)])+'\x0a')+(_0x1c6e1a(0x1ce)+(_0x561d70||'\x20\x20(none)')));}),this[_0x50692f(0x194)];}['parseRequest'](_0x25e733,_0x220519){const _0x180bf5=a232_0x2e5256,_0x452d9e={};if(_0x220519?.[_0x180bf5(0x1c9)]){if(_0x220519[_0x180bf5(0x1c9)]instanceof Headers)_0x220519[_0x180bf5(0x1c9)][_0x180bf5(0x1cd)]((_0x4cf5e0,_0xc6718b)=>{const _0x32d370=_0x180bf5;_0x452d9e[_0xc6718b[_0x32d370(0x1db)]()]=_0x4cf5e0;});else{if(Array[_0x180bf5(0x1b0)](_0x220519[_0x180bf5(0x1c9)]))for(const [_0x1baef4,_0x38abd8]of _0x220519[_0x180bf5(0x1c9)]){_0x452d9e[_0x1baef4['toLowerCase']()]=_0x38abd8;}else for(const [_0x144f65,_0x394bda]of Object['entries'](_0x220519[_0x180bf5(0x1c9)])){_0x394bda!==undefined&&(_0x452d9e[_0x144f65[_0x180bf5(0x1db)]()]=_0x394bda);}}}let _0x50f5e4;if(_0x220519?.[_0x180bf5(0x1be)])try{_0x50f5e4=JSON[_0x180bf5(0x1c1)](_0x220519[_0x180bf5(0x1be)]);}catch{_0x50f5e4=_0x220519[_0x180bf5(0x1be)];}return{'method':_0x220519?.[_0x180bf5(0x1c5)]??_0x180bf5(0x195),'url':_0x25e733,'headers':_0x452d9e,'body':_0x50f5e4};}['verify'](_0x213744){const _0xf99a84=a232_0x2e5256,_0x7eb785=this['stubs'][_0xf99a84(0x1bd)](_0x498031=>!_0x498031[_0xf99a84(0x19e)]);if(_0x7eb785[_0xf99a84(0x1b1)]>0x0){const _0x4f03ef=_0x7eb785[_0xf99a84(0x1c2)](_0x384d99=>{const _0x37b60b=_0xf99a84,_0x51677b=_0x384d99[_0x37b60b(0x1a4)]?'\x20('+_0x384d99['description']+')':'',_0x3ac882=_0x384d99['stack'][_0x37b60b(0x196)]('\x0a')['slice'](0x2,0x5)[_0x37b60b(0x1b3)]('\x0a');return'Unmatched\x20stub'+_0x51677b+_0x37b60b(0x193)+_0x3ac882;});_0x213744['fail'](_0x7eb785[_0xf99a84(0x1b1)]+_0xf99a84(0x1bf)+_0x4f03ef['join']('\x0a\x0a'));}}[a232_0x2e5256(0x19c)](){const _0x1dd922=a232_0x2e5256;return[...this[_0x1dd922(0x1a9)]];}[a232_0x2e5256(0x1c8)](){const _0x25c74a=a232_0x2e5256;return this[_0x25c74a(0x1a9)][this[_0x25c74a(0x1a9)][_0x25c74a(0x1b1)]-0x1];}[a232_0x2e5256(0x1b7)](_0x31db09,_0x3a25ef){const _0x419f3f=a232_0x2e5256;return this[_0x419f3f(0x1a9)][_0x419f3f(0x1ac)](_0x4b46be=>{const _0x2be381=_0x419f3f;if(_0x4b46be[_0x2be381(0x1c5)]['toUpperCase']()!==_0x31db09['toUpperCase']())return![];if(typeof _0x3a25ef===_0x2be381(0x1a2))return _0x4b46be['url']['includes'](_0x3a25ef);return _0x3a25ef['test'](_0x4b46be['url']);});}[a232_0x2e5256(0x1d1)](_0x4a5439){const _0x1dd9e2=a232_0x2e5256;return this['stubs'][_0x4a5439]?.[_0x1dd9e2(0x1c6)]??0x0;}[a232_0x2e5256(0x19f)](){const _0x15f48b=a232_0x2e5256;this[_0x15f48b(0x1aa)]=[],this[_0x15f48b(0x1a9)]=[],this[_0x15f48b(0x194)]=null;}static[a232_0x2e5256(0x1de)](_0x47e0d6){const _0x26e0fa=a232_0x2e5256,_0x526349={0xc8:'OK',0xc9:_0x26e0fa(0x199),0xcc:_0x26e0fa(0x1ae),0x190:_0x26e0fa(0x1a6),0x191:'Unauthorized',0x193:_0x26e0fa(0x192),0x194:_0x26e0fa(0x1a1),0x199:'Conflict',0x1a6:_0x26e0fa(0x1cb),0x1ad:_0x26e0fa(0x1b8),0x1f4:_0x26e0fa(0x1bc),0x1f6:_0x26e0fa(0x1d9),0x1f7:'Service\x20Unavailable'};return _0x526349[_0x47e0d6]??_0x26e0fa(0x1d0);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a233_0x368e54=a233_0xb4f0;(function(_0x39951f,_0x42d16e){const _0xf9dcbe=a233_0xb4f0,_0x589eaa=_0x39951f();while(!![]){try{const _0x686a9a=-parseInt(_0xf9dcbe(0x8e))/0x1+parseInt(_0xf9dcbe(0x98))/0x2+-parseInt(_0xf9dcbe(0xa2))/0x3*(-parseInt(_0xf9dcbe(0x8b))/0x4)+parseInt(_0xf9dcbe(0xd5))/0x5+parseInt(_0xf9dcbe(0xd0))/0x6+parseInt(_0xf9dcbe(0xbe))/0x7*(parseInt(_0xf9dcbe(0xa4))/0x8)+-parseInt(_0xf9dcbe(0xd3))/0x9;if(_0x686a9a===_0x42d16e)break;else _0x589eaa['push'](_0x589eaa['shift']());}catch(_0x4d3afa){_0x589eaa['push'](_0x589eaa['shift']());}}}(a233_0x5b68,0x781f7));import{vi}from'vitest';export class HTTPMockRegistry{[a233_0x368e54(0xba)]=[];['requests']=[];[a233_0x368e54(0xc3)]=null;[a233_0x368e54(0x99)](_0x5a41e9,_0x295bba){return _0xac40fc=>{const _0x545f43=a233_0xb4f0;if(_0xac40fc['method'][_0x545f43(0xb5)]()!==_0x5a41e9[_0x545f43(0xb5)]())return![];const _0x18127f=new URL(_0xac40fc[_0x545f43(0xb6)]);if(typeof _0x295bba===_0x545f43(0xaa))return _0x18127f['pathname']===_0x295bba||_0x18127f[_0x545f43(0xb9)][_0x545f43(0xca)](_0x295bba);return _0x295bba[_0x545f43(0xaf)](_0x18127f[_0x545f43(0xb9)]);};}['withQuery'](_0x4cbc74,_0x2566cd){return _0xd46bb9=>{const _0x2d62e3=a233_0xb4f0;if(!_0x4cbc74(_0xd46bb9))return![];const _0x297da2=new URL(_0xd46bb9[_0x2d62e3(0xb6)]);return Object[_0x2d62e3(0xd7)](_0x2566cd)['every'](([_0x4c30b7,_0x446526])=>_0x297da2[_0x2d62e3(0x97)][_0x2d62e3(0xd2)](_0x4c30b7)===_0x446526);};}['withBody'](_0x4ba698,_0xaee4c1){return _0x368200=>{const _0x5e3dce=a233_0xb4f0;if(!_0x4ba698(_0x368200))return![];if(typeof _0xaee4c1===_0x5e3dce(0xab))return _0xaee4c1(_0x368200['body']);return JSON[_0x5e3dce(0xc9)](_0x368200['body'])===JSON[_0x5e3dce(0xc9)](_0xaee4c1);};}['withHost'](_0x363586,_0x4de34a){return _0x391850=>{const _0x520f5f=a233_0xb4f0;if(!_0x363586(_0x391850))return![];const _0x2b5ef4=new URL(_0x391850['url']);return _0x2b5ef4[_0x520f5f(0xbc)]===_0x4de34a;};}[a233_0x368e54(0xb0)](_0x12f752,_0xcaf1f4,_0x289c0e){const _0x1402e9=a233_0x368e54;this[_0x1402e9(0xba)][_0x1402e9(0xb4)]({'matcher':_0x12f752,'responder':_0xcaf1f4,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1402e9(0x93)]??'','description':_0x289c0e?.[_0x1402e9(0x8a)]});}[a233_0x368e54(0x8c)](_0xcca71e,_0x4c74b7,_0x681a8){const _0x3ce2d4=a233_0x368e54,_0x443e64=_0x247411=>{const _0x41dfce=a233_0xb4f0;return _0x681a8(_0x247411[_0x41dfce(0xa0)],_0x247411),_0x4c74b7(_0x247411);};this[_0x3ce2d4(0xb0)](_0xcca71e,_0x443e64);}static[a233_0x368e54(0x8d)](_0x295a0f,_0x32df47=0xc8){const _0x1f8d61=a233_0x368e54;return()=>new Response(JSON[_0x1f8d61(0xc9)](_0x295a0f),{'status':_0x32df47,'headers':{'Content-Type':_0x1f8d61(0xa1)}});}static[a233_0x368e54(0xb7)](_0x5c1516,_0x42ba6a,_0x2d1072='simple'){return()=>{const _0x4e7a93=a233_0xb4f0;let _0x4701c0;switch(_0x2d1072){case _0x4e7a93(0xc4):_0x4701c0={'errors':{'error':_0x42ba6a,'message':_0x42ba6a,'severity':'error','status_code':_0x5c1516}};break;case _0x4e7a93(0x9c):_0x4701c0={'type':_0x4e7a93(0xd8)+_0x5c1516,'title':HTTPMockRegistry[_0x4e7a93(0xc0)](_0x5c1516),'status':_0x5c1516,'detail':_0x42ba6a};break;default:_0x4701c0={'error':_0x42ba6a};}return new Response(JSON['stringify'](_0x4701c0),{'status':_0x5c1516,'headers':{'Content-Type':_0x4e7a93(0xa1)}});};}static[a233_0x368e54(0xac)](_0x338dca,_0x5bc878,_0x4c4a39=0xc8){const _0x45c9b4=a233_0x368e54;return()=>new Response(JSON['stringify'](_0x338dca),{'status':_0x4c4a39,'headers':{'Content-Type':_0x45c9b4(0xa1),..._0x5bc878}});}static[a233_0x368e54(0xbf)](_0x53c730,_0x3ca177=0xc8){const _0xccffef=a233_0x368e54;return()=>new Response(_0x53c730,{'status':_0x3ca177,'headers':{'Content-Type':_0xccffef(0x91)}});}static[a233_0x368e54(0xa5)](_0x52fdb1){return()=>{throw new Error(_0x52fdb1);};}[a233_0x368e54(0xd1)](){const _0x2e214e=a233_0x368e54;return this[_0x2e214e(0xc3)]=vi['fn']()['mockImplementation'](async(_0x57b63d,_0xb97be2)=>{const _0x2da410=_0x2e214e,_0x175fbc=this[_0x2da410(0x96)](_0x57b63d,_0xb97be2);this['requests']['push'](_0x175fbc);for(const _0x113838 of this['stubs']){if(_0x113838[_0x2da410(0x90)](_0x175fbc))return _0x113838[_0x2da410(0xbd)]=!![],_0x113838[_0x2da410(0x92)]++,_0x113838[_0x2da410(0xc6)](_0x175fbc);}const _0x5e922d=this[_0x2da410(0xba)][_0x2da410(0xad)]((_0x345c2f,_0x254dc2)=>'\x20\x20'+(_0x254dc2+0x1)+'.\x20'+(_0x345c2f[_0x2da410(0x8a)]??_0x2da410(0xb8)))[_0x2da410(0x9a)]('\x0a');throw new Error(_0x2da410(0x8f)+_0x175fbc['method']+'\x20'+_0x175fbc[_0x2da410(0xb6)]+'\x0a'+(_0x2da410(0xa3)+JSON[_0x2da410(0xc9)](_0x175fbc[_0x2da410(0xa0)])+'\x0a')+(_0x2da410(0xb3)+(_0x5e922d||_0x2da410(0x87))));}),this['fetchMock'];}[a233_0x368e54(0x96)](_0x5648da,_0x391846){const _0x49bbbd=a233_0x368e54,_0x26866c={};if(_0x391846?.[_0x49bbbd(0xcc)]){if(_0x391846[_0x49bbbd(0xcc)]instanceof Headers)_0x391846['headers'][_0x49bbbd(0xb2)]((_0x5b03e5,_0x24c8b9)=>{const _0x7e7a0d=_0x49bbbd;_0x26866c[_0x24c8b9[_0x7e7a0d(0xcf)]()]=_0x5b03e5;});else{if(Array[_0x49bbbd(0xcb)](_0x391846['headers']))for(const [_0x1f91f7,_0x1a3255]of _0x391846['headers']){_0x26866c[_0x1f91f7[_0x49bbbd(0xcf)]()]=_0x1a3255;}else for(const [_0x59807f,_0x36a3f7]of Object[_0x49bbbd(0xd7)](_0x391846[_0x49bbbd(0xcc)])){_0x36a3f7!==undefined&&(_0x26866c[_0x59807f['toLowerCase']()]=_0x36a3f7);}}}let _0x586371;if(_0x391846?.[_0x49bbbd(0xa0)])try{_0x586371=JSON[_0x49bbbd(0xc1)](_0x391846['body']);}catch{_0x586371=_0x391846[_0x49bbbd(0xa0)];}return{'method':_0x391846?.[_0x49bbbd(0x94)]??_0x49bbbd(0xd4),'url':_0x5648da,'headers':_0x26866c,'body':_0x586371};}[a233_0x368e54(0xbb)](_0x24fecf){const _0x182376=a233_0x368e54,_0x27ca03=this[_0x182376(0xba)][_0x182376(0xcd)](_0x37e8d4=>!_0x37e8d4[_0x182376(0xbd)]);if(_0x27ca03[_0x182376(0x9f)]>0x0){const _0xcd5f74=_0x27ca03[_0x182376(0xad)](_0x30ebef=>{const _0x4eae61=_0x182376,_0x2619e6=_0x30ebef[_0x4eae61(0x8a)]?'\x20('+_0x30ebef[_0x4eae61(0x8a)]+')':'',_0x32c82d=_0x30ebef[_0x4eae61(0x93)][_0x4eae61(0xd6)]('\x0a')['slice'](0x2,0x5)[_0x4eae61(0x9a)]('\x0a');return'Unmatched\x20stub'+_0x2619e6+_0x4eae61(0x9b)+_0x32c82d;});_0x24fecf[_0x182376(0xd9)](_0x27ca03[_0x182376(0x9f)]+_0x182376(0x89)+_0xcd5f74[_0x182376(0x9a)]('\x0a\x0a'));}}[a233_0x368e54(0xc7)](){return[...this['requests']];}[a233_0x368e54(0xae)](){const _0x4620ff=a233_0x368e54;return this[_0x4620ff(0x9d)][this['requests'][_0x4620ff(0x9f)]-0x1];}['wasCalled'](_0x1d644f,_0x26fdb2){const _0x66d1c8=a233_0x368e54;return this['requests'][_0x66d1c8(0xa8)](_0x1e4c14=>{const _0x7b6120=_0x66d1c8;if(_0x1e4c14[_0x7b6120(0x94)][_0x7b6120(0xb5)]()!==_0x1d644f[_0x7b6120(0xb5)]())return![];if(typeof _0x26fdb2==='string')return _0x1e4c14[_0x7b6120(0xb6)][_0x7b6120(0xca)](_0x26fdb2);return _0x26fdb2[_0x7b6120(0xaf)](_0x1e4c14[_0x7b6120(0xb6)]);});}['getMatchCount'](_0x9b5844){const _0x302677=a233_0x368e54;return this[_0x302677(0xba)][_0x9b5844]?.[_0x302677(0x92)]??0x0;}[a233_0x368e54(0xb1)](){const _0x43bddb=a233_0x368e54;this[_0x43bddb(0xba)]=[],this[_0x43bddb(0x9d)]=[],this['fetchMock']=null;}static[a233_0x368e54(0xc0)](_0x5c5d7b){const _0x49b379=a233_0x368e54,_0x2c7c7f={0xc8:'OK',0xc9:'Created',0xcc:_0x49b379(0xa9),0x190:_0x49b379(0xa7),0x191:_0x49b379(0xc2),0x193:_0x49b379(0xa6),0x194:_0x49b379(0x9e),0x199:_0x49b379(0x95),0x1a6:_0x49b379(0xc5),0x1ad:_0x49b379(0xce),0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0x49b379(0x88)};return _0x2c7c7f[_0x5c5d7b]??_0x49b379(0xc8);}}function a233_0xb4f0(_0x11cf06,_0x573d35){_0x11cf06=_0x11cf06-0x87;const _0x5b6888=a233_0x5b68();let _0xb4f07b=_0x5b6888[_0x11cf06];return _0xb4f07b;}export function createHTTPMock(){return new HTTPMockRegistry();}function a233_0x5b68(){const _0x3229e5=['join','\x20registered\x20at:\x0a','rfc9457','requests','Not\x20Found','length','body','application/json','63wXtYwW','Request\x20body:\x20','16EWmFKm','networkError','Forbidden','Bad\x20Request','some','No\x20Content','string','function','jsonResponseWithHeaders','map','getLastRequest','test','register','reset','forEach','Registered\x20stubs:\x0a','push','toUpperCase','url','errorResponse','unnamed\x20stub','pathname','stubs','verify','host','matched','2881081tzgnUw','textResponse','getStatusText','parse','Unauthorized','fetchMock','td-api','Unprocessable\x20Entity','responder','getRequests','Unknown','stringify','includes','isArray','headers','filter','Too\x20Many\x20Requests','toLowerCase','4213524ORJYti','createFetch','get','15969222ckxukq','GET','396870vhAZzr','split','entries','https://api.treasuredata.com/errors/','fail','\x20\x20(none)','Service\x20Unavailable','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','description','97508PHNWLP','registerWithInspector','jsonResponse','640232iyetag','No\x20stub\x20matched\x20request:\x20','matcher','text/plain','matchCount','stack','method','Conflict','parseRequest','searchParams','1579804NPmCSa','REST'];a233_0x5b68=function(){return _0x3229e5;};return a233_0x5b68();}
@@ -1 +1 @@
1
- (function(_0x5df374,_0x18f817){var _0x42c3b0=a233_0x2b59,_0xa5cbb0=_0x5df374();while(!![]){try{var _0x5e175f=parseInt(_0x42c3b0(0x1b1))/0x1+-parseInt(_0x42c3b0(0x1a9))/0x2+-parseInt(_0x42c3b0(0x1af))/0x3*(-parseInt(_0x42c3b0(0x1ad))/0x4)+parseInt(_0x42c3b0(0x1ac))/0x5*(parseInt(_0x42c3b0(0x1ab))/0x6)+-parseInt(_0x42c3b0(0x1aa))/0x7*(-parseInt(_0x42c3b0(0x1b3))/0x8)+parseInt(_0x42c3b0(0x1b0))/0x9+-parseInt(_0x42c3b0(0x1b2))/0xa*(parseInt(_0x42c3b0(0x1ae))/0xb);if(_0x5e175f===_0x18f817)break;else _0xa5cbb0['push'](_0xa5cbb0['shift']());}catch(_0x2e2d9c){_0xa5cbb0['push'](_0xa5cbb0['shift']());}}}(a233_0xee8a,0x8a5d3));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a233_0x2b59(_0x414e66,_0xda6092){_0x414e66=_0x414e66-0x1a9;var _0xee8ad4=a233_0xee8a();var _0x2b5921=_0xee8ad4[_0x414e66];return _0x2b5921;}function a233_0xee8a(){var _0x1dfc5a=['148562QvcgGC','411754tJydQY','1155318YeWavH','20iwhDMC','4401832BMsdwE','146641iVsvTz','3nqIuIQ','1662822vVRtEs','796882UuBDjU','2100UISrgh','80CEVPed'];a233_0xee8a=function(){return _0x1dfc5a;};return a233_0xee8a();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}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
+ function a234_0x4153(_0x42b83a,_0x97509a){_0x42b83a=_0x42b83a-0xc9;var _0x4f6f60=a234_0x4f6f();var _0x4153f1=_0x4f6f60[_0x42b83a];return _0x4153f1;}function a234_0x4f6f(){var _0x55f711=['1767676OsiWWh','11148aLqknk','798bYvvbS','2294395UOIJYG','16384uVGyiS','10237350WWIxxP','8KmLfEp','715tMBkNJ','171sgVRBm','278004eqdZtg','170276szIpNS','3OLAqyV'];a234_0x4f6f=function(){return _0x55f711;};return a234_0x4f6f();}(function(_0x144591,_0x24b19f){var _0x317c22=a234_0x4153,_0x1a913d=_0x144591();while(!![]){try{var _0x71ef0a=-parseInt(_0x317c22(0xce))/0x1*(-parseInt(_0x317c22(0xca))/0x2)+-parseInt(_0x317c22(0xcf))/0x3*(parseInt(_0x317c22(0xd0))/0x4)+-parseInt(_0x317c22(0xd3))/0x5+-parseInt(_0x317c22(0xd1))/0x6*(-parseInt(_0x317c22(0xd2))/0x7)+parseInt(_0x317c22(0xd4))/0x8*(parseInt(_0x317c22(0xcc))/0x9)+-parseInt(_0x317c22(0xc9))/0xa+-parseInt(_0x317c22(0xcb))/0xb*(-parseInt(_0x317c22(0xcd))/0xc);if(_0x71ef0a===_0x24b19f)break;else _0x1a913d['push'](_0x1a913d['shift']());}catch(_0x5d93dc){_0x1a913d['push'](_0x1a913d['shift']());}}}(a234_0x4f6f,0x7d47e));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}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(_0x2bed97,_0x47b21e){const _0x1d405b=a234_0x1a98,_0x580578=_0x2bed97();while(!![]){try{const _0xa66d60=-parseInt(_0x1d405b(0x125))/0x1+-parseInt(_0x1d405b(0x12a))/0x2+parseInt(_0x1d405b(0x121))/0x3*(parseInt(_0x1d405b(0x122))/0x4)+parseInt(_0x1d405b(0x128))/0x5+-parseInt(_0x1d405b(0x126))/0x6*(-parseInt(_0x1d405b(0x12b))/0x7)+parseInt(_0x1d405b(0x129))/0x8+parseInt(_0x1d405b(0x127))/0x9;if(_0xa66d60===_0x47b21e)break;else _0x580578['push'](_0x580578['shift']());}catch(_0x3a718b){_0x580578['push'](_0x580578['shift']());}}}(a234_0x5690,0xbfea4));export async function batchAsync(_0x3bb98e,_0x31ea4d,_0x1272e3=0xa){const _0x1b667b=a234_0x1a98,_0x256829=[];for(let _0x5f3a8f=0x0;_0x5f3a8f<_0x3bb98e[_0x1b667b(0x124)];_0x5f3a8f+=_0x1272e3){const _0x2bcf11=_0x3bb98e['slice'](_0x5f3a8f,_0x5f3a8f+_0x1272e3),_0x49d743=await Promise[_0x1b667b(0x12c)](_0x2bcf11[_0x1b667b(0x123)](_0x31ea4d));_0x256829['push'](..._0x49d743);}return _0x256829;}function a234_0x1a98(_0x4befde,_0x4574b9){_0x4befde=_0x4befde-0x121;const _0x5690fd=a234_0x5690();let _0x1a9838=_0x5690fd[_0x4befde];return _0x1a9838;}function a234_0x5690(){const _0x388f45=['630819qyusTY','146210zDiWJg','11463728IrlXjA','1800344jDLfoe','9527FOCdEh','all','1362081TmpagV','8mfCqAB','map','length','1555726yDiZDT','3534HaXDzF'];a234_0x5690=function(){return _0x388f45;};return a234_0x5690();}
1
+ function a235_0x4751(_0x18693e,_0x39e04d){_0x18693e=_0x18693e-0xf7;const _0x51e4d8=a235_0x51e4();let _0x47511b=_0x51e4d8[_0x18693e];return _0x47511b;}(function(_0x3735cf,_0x12dc88){const _0x524314=a235_0x4751,_0x4e4c9a=_0x3735cf();while(!![]){try{const _0x2f7300=parseInt(_0x524314(0xfe))/0x1*(-parseInt(_0x524314(0x100))/0x2)+-parseInt(_0x524314(0x104))/0x3+-parseInt(_0x524314(0xfd))/0x4*(-parseInt(_0x524314(0x103))/0x5)+-parseInt(_0x524314(0xfb))/0x6+-parseInt(_0x524314(0x105))/0x7*(parseInt(_0x524314(0x101))/0x8)+parseInt(_0x524314(0xfc))/0x9*(-parseInt(_0x524314(0xf9))/0xa)+parseInt(_0x524314(0xfa))/0xb;if(_0x2f7300===_0x12dc88)break;else _0x4e4c9a['push'](_0x4e4c9a['shift']());}catch(_0x44ecf3){_0x4e4c9a['push'](_0x4e4c9a['shift']());}}}(a235_0x51e4,0x23417));export async function batchAsync(_0x51d3b1,_0x7ceb81,_0x183ff3=0xa){const _0x42ec0a=a235_0x4751,_0x2d55df=[];for(let _0x3353c5=0x0;_0x3353c5<_0x51d3b1[_0x42ec0a(0x102)];_0x3353c5+=_0x183ff3){const _0x4b16d8=_0x51d3b1[_0x42ec0a(0xf7)](_0x3353c5,_0x3353c5+_0x183ff3),_0x574780=await Promise['all'](_0x4b16d8[_0x42ec0a(0xf8)](_0x7ceb81));_0x2d55df[_0x42ec0a(0xff)](..._0x574780);}return _0x2d55df;}function a235_0x51e4(){const _0x437c4f=['884RCoRNK','1MjQFRo','push','161794vncBkv','2253712lqtADY','length','4990enhVwM','421791NfbZMO','7XhCMPd','slice','map','13750NoAiDo','6728040edRfpf','472248nKcKYO','693qaYJzw'];a235_0x51e4=function(){return _0x437c4f;};return a235_0x51e4();}
@@ -1 +1 @@
1
- (function(_0x2cbd14,_0x53005b){const _0x144081=a235_0x1d7a,_0x3de9dd=_0x2cbd14();while(!![]){try{const _0x399a88=parseInt(_0x144081(0xc9))/0x1+-parseInt(_0x144081(0xc5))/0x2+-parseInt(_0x144081(0xb6))/0x3+parseInt(_0x144081(0xb7))/0x4+-parseInt(_0x144081(0xbc))/0x5+-parseInt(_0x144081(0xba))/0x6+parseInt(_0x144081(0xbf))/0x7;if(_0x399a88===_0x53005b)break;else _0x3de9dd['push'](_0x3de9dd['shift']());}catch(_0x427171){_0x3de9dd['push'](_0x3de9dd['shift']());}}}(a235_0x92e0,0x605df));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){const _0x1bbf10=a235_0x1d7a;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x1bbf10(0xb9));}function getClaudeJsonPath(){const _0x363be6=a235_0x1d7a,_0x3e5626=getClaudeConfigDir(),_0x4565e4=join(_0x3e5626,'.claude.json');return existsSync(_0x4565e4)?_0x4565e4:_0x3e5626+_0x363be6(0xc2);}function a235_0x92e0(){const _0x1f4ed9=['projects','3321975jQBCzH','trim','mcpServers','7454573iMUkUn','string','plugins','.json','.mcp.json','source','106400TDOwIL','replace','known_marketplaces.json','isArray','389054PHVAEn','repo','object','url','installed_plugins.json','https://github.com/','1713471IDZYQT','2648632HTohBq','length','.claude','2596080zkpWzZ'];a235_0x92e0=function(){return _0x1f4ed9;};return a235_0x92e0();}function a235_0x1d7a(_0x32535c,_0x24c58a){_0x32535c=_0x32535c-0xb3;const _0x92e0e4=a235_0x92e0();let _0x1d7a47=_0x92e0e4[_0x32535c];return _0x1d7a47;}function readJsonFile(_0x519573){if(!existsSync(_0x519573))return undefined;try{return JSON['parse'](readFileSync(_0x519573,'utf-8'));}catch{return undefined;}}function asRecord(_0x3dea36){const _0x8cbac4=a235_0x1d7a;return typeof _0x3dea36===_0x8cbac4(0xcb)&&_0x3dea36!==null&&!Array[_0x8cbac4(0xc8)](_0x3dea36)?_0x3dea36:undefined;}function mcpServerUrl(_0x34539e,_0x455171){const _0x2fb53b=a235_0x1d7a,_0x529acc=asRecord(asRecord(_0x34539e)?.[_0x455171]);return typeof _0x529acc?.[_0x2fb53b(0xb3)]===_0x2fb53b(0xc0)?_0x529acc[_0x2fb53b(0xb3)]:undefined;}export function findMcpServerUrl(_0x4d73e2,_0x284317){const _0x3e67bd=a235_0x1d7a,_0x570a13=asRecord(readJsonFile(getClaudeJsonPath())),_0x28fc43=asRecord(asRecord(_0x570a13?.[_0x3e67bd(0xbb)])?.[_0x284317]),_0x3e9ca7=mcpServerUrl(_0x28fc43?.['mcpServers'],_0x4d73e2);if(_0x3e9ca7)return _0x3e9ca7;const _0x45a486=mcpServerUrl(_0x570a13?.[_0x3e67bd(0xbe)],_0x4d73e2);if(_0x45a486)return _0x45a486;return mcpServerUrl(asRecord(readJsonFile(join(_0x284317,_0x3e67bd(0xc3))))?.[_0x3e67bd(0xbe)],_0x4d73e2);}export function normalizeRepoUrl(_0x447b5a){const _0x3e18b5=a235_0x1d7a;return _0x447b5a[_0x3e18b5(0xbd)]()['toLowerCase']()[_0x3e18b5(0xc6)](/\.git$/,'')[_0x3e18b5(0xc6)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x3076d7){const _0x25faa6=a235_0x1d7a,_0x5dc371=join(getClaudeConfigDir(),'plugins',_0x25faa6(0xc7)),_0x18c3da=asRecord(asRecord(readJsonFile(_0x5dc371))?.[_0x3076d7])?.[_0x25faa6(0xc4)],_0x50620f=asRecord(_0x18c3da);if(!_0x50620f)return undefined;if(typeof _0x50620f['url']===_0x25faa6(0xc0))return normalizeRepoUrl(_0x50620f[_0x25faa6(0xb3)]);if(typeof _0x50620f[_0x25faa6(0xca)]===_0x25faa6(0xc0))return normalizeRepoUrl(_0x25faa6(0xb5)+_0x50620f[_0x25faa6(0xca)]);return undefined;}export function isPluginInstalled(_0x4c2822,_0x12c7b3){const _0x8c7fce=a235_0x1d7a,_0x36be4b=join(getClaudeConfigDir(),_0x8c7fce(0xc1),_0x8c7fce(0xb4)),_0x4c920b=readJsonFile(_0x36be4b),_0x2a67dd=_0x4c920b?.['plugins']?.[_0x4c2822+'@'+_0x12c7b3];return Array['isArray'](_0x2a67dd)&&_0x2a67dd[_0x8c7fce(0xb8)]>0x0;}
1
+ (function(_0x1ced04,_0x20e8d0){const _0x3abc16=a236_0x5379,_0x318334=_0x1ced04();while(!![]){try{const _0x2bc54a=-parseInt(_0x3abc16(0xf6))/0x1+-parseInt(_0x3abc16(0xf8))/0x2+-parseInt(_0x3abc16(0xea))/0x3+parseInt(_0x3abc16(0xf4))/0x4+parseInt(_0x3abc16(0xe8))/0x5*(-parseInt(_0x3abc16(0xf0))/0x6)+parseInt(_0x3abc16(0xe4))/0x7*(-parseInt(_0x3abc16(0xe7))/0x8)+-parseInt(_0x3abc16(0xeb))/0x9*(-parseInt(_0x3abc16(0xf9))/0xa);if(_0x2bc54a===_0x20e8d0)break;else _0x318334['push'](_0x318334['shift']());}catch(_0x1f1379){_0x318334['push'](_0x318334['shift']());}}}(a236_0x20f5,0x2c343));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a236_0x5379(_0x52d9ea,_0x3860cf){_0x52d9ea=_0x52d9ea-0xe3;const _0x20f5c5=a236_0x20f5();let _0x5379b3=_0x20f5c5[_0x52d9ea];return _0x5379b3;}export function getClaudeConfigDir(){return process.env.CLAUDE_CONFIG_DIR||join(homedir(),'.claude');}function getClaudeJsonPath(){const _0x370967=a236_0x5379,_0x332557=getClaudeConfigDir(),_0x222d07=join(_0x332557,'.claude.json');return existsSync(_0x222d07)?_0x222d07:_0x332557+_0x370967(0xee);}function readJsonFile(_0xad5d9a){const _0x418ded=a236_0x5379;if(!existsSync(_0xad5d9a))return undefined;try{return JSON[_0x418ded(0xfb)](readFileSync(_0xad5d9a,_0x418ded(0xef)));}catch{return undefined;}}function asRecord(_0x2d14a0){const _0x4f11df=a236_0x5379;return typeof _0x2d14a0==='object'&&_0x2d14a0!==null&&!Array[_0x4f11df(0xf2)](_0x2d14a0)?_0x2d14a0:undefined;}function mcpServerUrl(_0x3fa153,_0x11d364){const _0x44d179=a236_0x5379,_0x1922ae=asRecord(asRecord(_0x3fa153)?.[_0x11d364]);return typeof _0x1922ae?.[_0x44d179(0xec)]===_0x44d179(0xfd)?_0x1922ae[_0x44d179(0xec)]:undefined;}function a236_0x20f5(){const _0x5e7879=['plugins','509436jUhAkI','7481043bcByIV','url','.mcp.json','.json','utf-8','30MFTKyv','mcpServers','isArray','toLowerCase','1151932scWVHn','https://github.com/','142238glVBxT','known_marketplaces.json','340044blwuYn','10pXDRUc','replace','parse','installed_plugins.json','string','repo','projects','820169AMlnfd','trim','source','16mSONSk','221745tdbFeC'];a236_0x20f5=function(){return _0x5e7879;};return a236_0x20f5();}export function findMcpServerUrl(_0x146c96,_0x2e142d){const _0x3cc5d2=a236_0x5379,_0x39461c=asRecord(readJsonFile(getClaudeJsonPath())),_0x3dc2e5=asRecord(asRecord(_0x39461c?.[_0x3cc5d2(0xe3)])?.[_0x2e142d]),_0x8e94f8=mcpServerUrl(_0x3dc2e5?.[_0x3cc5d2(0xf1)],_0x146c96);if(_0x8e94f8)return _0x8e94f8;const _0x498551=mcpServerUrl(_0x39461c?.[_0x3cc5d2(0xf1)],_0x146c96);if(_0x498551)return _0x498551;return mcpServerUrl(asRecord(readJsonFile(join(_0x2e142d,_0x3cc5d2(0xed))))?.['mcpServers'],_0x146c96);}export function normalizeRepoUrl(_0x4861ca){const _0x3b5d66=a236_0x5379;return _0x4861ca[_0x3b5d66(0xe5)]()[_0x3b5d66(0xf3)]()[_0x3b5d66(0xfa)](/\.git$/,'')[_0x3b5d66(0xfa)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x1a048e){const _0x174c87=a236_0x5379,_0x4cae91=join(getClaudeConfigDir(),'plugins',_0x174c87(0xf7)),_0x4d192b=asRecord(asRecord(readJsonFile(_0x4cae91))?.[_0x1a048e])?.[_0x174c87(0xe6)],_0x19dc1a=asRecord(_0x4d192b);if(!_0x19dc1a)return undefined;if(typeof _0x19dc1a['url']===_0x174c87(0xfd))return normalizeRepoUrl(_0x19dc1a[_0x174c87(0xec)]);if(typeof _0x19dc1a[_0x174c87(0xfe)]===_0x174c87(0xfd))return normalizeRepoUrl(_0x174c87(0xf5)+_0x19dc1a[_0x174c87(0xfe)]);return undefined;}export function isPluginInstalled(_0x4dd0cc,_0x64a35f){const _0x32dab0=a236_0x5379,_0x35c696=join(getClaudeConfigDir(),_0x32dab0(0xe9),_0x32dab0(0xfc)),_0x115986=readJsonFile(_0x35c696),_0x337190=_0x115986?.[_0x32dab0(0xe9)]?.[_0x4dd0cc+'@'+_0x64a35f];return Array[_0x32dab0(0xf2)](_0x337190)&&_0x337190['length']>0x0;}
@@ -1 +1 @@
1
- const a236_0x4628ba=a236_0x342d;function a236_0x342d(_0x1e9468,_0x3d0526){_0x1e9468=_0x1e9468-0x85;const _0xdcbe82=a236_0xdcbe();let _0x342d41=_0xdcbe82[_0x1e9468];return _0x342d41;}(function(_0x233c41,_0x204b5d){const _0x16cf68=a236_0x342d,_0x2e7e65=_0x233c41();while(!![]){try{const _0x2a103b=-parseInt(_0x16cf68(0x8d))/0x1+parseInt(_0x16cf68(0xa0))/0x2*(parseInt(_0x16cf68(0x92))/0x3)+parseInt(_0x16cf68(0x8e))/0x4+-parseInt(_0x16cf68(0x8f))/0x5+parseInt(_0x16cf68(0x8c))/0x6*(parseInt(_0x16cf68(0x8b))/0x7)+-parseInt(_0x16cf68(0x9b))/0x8*(parseInt(_0x16cf68(0x9c))/0x9)+-parseInt(_0x16cf68(0x85))/0xa*(parseInt(_0x16cf68(0x9f))/0xb);if(_0x2a103b===_0x204b5d)break;else _0x2e7e65['push'](_0x2e7e65['shift']());}catch(_0x827db0){_0x2e7e65['push'](_0x2e7e65['shift']());}}}(a236_0xdcbe,0xecc32));import*as a236_0x217595 from'chalk';const Chalk=a236_0x217595[a236_0x4628ba(0x93)];export function shouldUseColor(_0x138626={}){const _0x71f18d=a236_0x4628ba;if(_0x138626[_0x71f18d(0x98)]===!![])return![];if(_0x138626[_0x71f18d(0x95)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x71f18d(0x8a)][_0x71f18d(0xa2)]??![];}export function getChalk(_0x59b733={}){if(shouldUseColor(_0x59b733))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xebc469,_0x1b76f4={}){const _0x4b816b=a236_0x4628ba;return getChalk(_0x1b76f4)[_0x4b816b(0x97)](_0xebc469);}export function colorHeader(_0x1542c3,_0x823c09={}){const _0xf47789=a236_0x4628ba;return getChalk(_0x823c09)[_0xf47789(0x99)](_0x1542c3);}export function colorType(_0x45ebf4,_0x5074f2={}){return getChalk(_0x5074f2)['dim'](_0x45ebf4);}export function colorJSONKey(_0x473f88,_0x420b99={}){return getChalk(_0x420b99)['blue'](_0x473f88);}export function colorJSONString(_0x127614,_0x357f72={}){const _0x4e73fd=a236_0x4628ba;return getChalk(_0x357f72)[_0x4e73fd(0x96)](_0x127614);}function a236_0xdcbe(){const _0x4f2510=['repeat','8716873IINDTT','562NhCmhH','string','isTTY','boolean','10eIlthx','length','isArray','join','object','stdout','35wTplCX','1449738YfxoLk','230489xfmpwQ','5422780EgBTbh','2815180AOqqqH','map','entries','18822nDoLDp','Chalk','null','color','green','dim','noColor','cyan','stringify','14168464zoruAI','9VgTLrZ','number'];a236_0xdcbe=function(){return _0x4f2510;};return a236_0xdcbe();}export function colorJSONNumber(_0x3e11f2,_0xa546ee={}){const _0x519fdc=a236_0x4628ba;return getChalk(_0xa546ee)[_0x519fdc(0x99)](_0x3e11f2);}export function colorJSONBoolean(_0x1cc5c5,_0x27315c={}){return getChalk(_0x27315c)['yellow'](_0x1cc5c5);}export function colorJSONNull(_0x4b5c9e,_0x38a242={}){const _0x139006=a236_0x4628ba;return getChalk(_0x38a242)[_0x139006(0x97)](_0x4b5c9e);}export function colorizeJSONCompact(_0x4259f8,_0x55044f={}){const _0xe4e1f9=a236_0x4628ba;if(!shouldUseColor(_0x55044f))return JSON[_0xe4e1f9(0x9a)](_0x4259f8);if(_0x4259f8===null)return colorJSONNull(_0xe4e1f9(0x94),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0xa3))return colorJSONBoolean(String(_0x4259f8),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0x9d))return colorJSONNumber(String(_0x4259f8),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0xa1))return colorJSONString(JSON['stringify'](_0x4259f8),_0x55044f);if(Array[_0xe4e1f9(0x87)](_0x4259f8)){if(_0x4259f8[_0xe4e1f9(0x86)]===0x0)return'[]';const _0x29cb77=_0x4259f8[_0xe4e1f9(0x90)](_0xd4febc=>colorizeJSONCompact(_0xd4febc,_0x55044f));return'['+_0x29cb77[_0xe4e1f9(0x88)](',')+']';}if(typeof _0x4259f8===_0xe4e1f9(0x89)){const _0x433603=Object[_0xe4e1f9(0x91)](_0x4259f8);if(_0x433603[_0xe4e1f9(0x86)]===0x0)return'{}';const _0x461027=_0x433603[_0xe4e1f9(0x90)](([_0x57f221,_0xdb59f0])=>{const _0x12b4c1=_0xe4e1f9,_0xd336fa=colorJSONKey(JSON[_0x12b4c1(0x9a)](_0x57f221),_0x55044f),_0x375201=colorizeJSONCompact(_0xdb59f0,_0x55044f);return _0xd336fa+':'+_0x375201;});return'{'+_0x461027[_0xe4e1f9(0x88)](',')+'}';}return String(_0x4259f8);}export function colorizeJSON(_0x29dd60,_0x304bf6={},_0x117b51=0x0){const _0x21792f=a236_0x4628ba;if(!shouldUseColor(_0x304bf6))return JSON[_0x21792f(0x9a)](_0x29dd60,null,0x2);const _0x3f7ee7='\x20'[_0x21792f(0x9e)](_0x117b51),_0x510da0=_0x117b51+0x2;if(_0x29dd60===null)return colorJSONNull('null',_0x304bf6);if(typeof _0x29dd60==='boolean')return colorJSONBoolean(String(_0x29dd60),_0x304bf6);if(typeof _0x29dd60===_0x21792f(0x9d))return colorJSONNumber(String(_0x29dd60),_0x304bf6);if(typeof _0x29dd60==='string')return colorJSONString(JSON[_0x21792f(0x9a)](_0x29dd60),_0x304bf6);if(Array[_0x21792f(0x87)](_0x29dd60)){if(_0x29dd60['length']===0x0)return'[]';const _0x2a29f7=_0x29dd60[_0x21792f(0x90)](_0x958cf5=>{const _0xf7c11f=colorizeJSON(_0x958cf5,_0x304bf6,_0x510da0);return''+'\x20'['repeat'](_0x510da0)+_0xf7c11f;});return'[\x0a'+_0x2a29f7[_0x21792f(0x88)](',\x0a')+('\x0a'+_0x3f7ee7+']');}if(typeof _0x29dd60===_0x21792f(0x89)){const _0x56268e=Object['entries'](_0x29dd60);if(_0x56268e[_0x21792f(0x86)]===0x0)return'{}';const _0x25a4cf=_0x56268e[_0x21792f(0x90)](([_0x18ca20,_0x3345df])=>{const _0x5b1dd2=colorJSONKey(JSON['stringify'](_0x18ca20),_0x304bf6),_0x26437a=colorizeJSON(_0x3345df,_0x304bf6,_0x510da0);return''+'\x20'['repeat'](_0x510da0)+_0x5b1dd2+':\x20'+_0x26437a;});return'{\x0a'+_0x25a4cf['join'](',\x0a')+('\x0a'+_0x3f7ee7+'}');}return String(_0x29dd60);}
1
+ function a237_0x2bba(){const _0x2e0444=['null','cyan','64380IzqIfe','boolean','map','stdout','209802IytFcV','stringify','number','repeat','4064736EeVapd','blue','isTTY','Chalk','3156LfEfIt','1421195kKWNNR','1859175kELJXj','object','string','length','join','entries','948514amltHZ','40pakolB','green','dim','1776TVwTZx','yellow'];a237_0x2bba=function(){return _0x2e0444;};return a237_0x2bba();}const a237_0x47755d=a237_0xcd3c;(function(_0x968006,_0x46a298){const _0x4fe476=a237_0xcd3c,_0xa6337b=_0x968006();while(!![]){try{const _0x46b086=parseInt(_0x4fe476(0x1b1))/0x1+-parseInt(_0x4fe476(0x1b5))/0x2+-parseInt(_0x4fe476(0x1a1))/0x3*(-parseInt(_0x4fe476(0x1ad))/0x4)+-parseInt(_0x4fe476(0x1a2))/0x5+-parseInt(_0x4fe476(0x1b9))/0x6+-parseInt(_0x4fe476(0x1a9))/0x7+-parseInt(_0x4fe476(0x1aa))/0x8*(-parseInt(_0x4fe476(0x1a3))/0x9);if(_0x46b086===_0x46a298)break;else _0xa6337b['push'](_0xa6337b['shift']());}catch(_0x1408c9){_0xa6337b['push'](_0xa6337b['shift']());}}}(a237_0x2bba,0x58705));import*as a237_0x571c08 from'chalk';const Chalk=a237_0x571c08[a237_0x47755d(0x1a0)];export function shouldUseColor(_0x8fce56={}){const _0x33dc2f=a237_0x47755d;if(_0x8fce56['noColor']===!![])return![];if(_0x8fce56['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x33dc2f(0x1b4)][_0x33dc2f(0x1bb)]??![];}export function getChalk(_0x3b7479={}){if(shouldUseColor(_0x3b7479))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x6ef350,_0x39837c={}){return getChalk(_0x39837c)['dim'](_0x6ef350);}export function colorHeader(_0x523989,_0x3c69e0={}){const _0x34cfd4=a237_0x47755d;return getChalk(_0x3c69e0)[_0x34cfd4(0x1b0)](_0x523989);}export function colorType(_0x1e3c0a,_0x103417={}){const _0xd4bc8b=a237_0x47755d;return getChalk(_0x103417)[_0xd4bc8b(0x1ac)](_0x1e3c0a);}function a237_0xcd3c(_0x3dc95b,_0x1c917c){_0x3dc95b=_0x3dc95b-0x1a0;const _0x2bba16=a237_0x2bba();let _0xcd3c77=_0x2bba16[_0x3dc95b];return _0xcd3c77;}export function colorJSONKey(_0x58a7b8,_0x40e483={}){const _0x2170eb=a237_0x47755d;return getChalk(_0x40e483)[_0x2170eb(0x1ba)](_0x58a7b8);}export function colorJSONString(_0xe32fc9,_0x17a1f8={}){const _0x4ca80c=a237_0x47755d;return getChalk(_0x17a1f8)[_0x4ca80c(0x1ab)](_0xe32fc9);}export function colorJSONNumber(_0x26855d,_0x2dde42={}){const _0x262398=a237_0x47755d;return getChalk(_0x2dde42)[_0x262398(0x1b0)](_0x26855d);}export function colorJSONBoolean(_0x1efbd6,_0x3324a0={}){const _0x59d1a5=a237_0x47755d;return getChalk(_0x3324a0)[_0x59d1a5(0x1ae)](_0x1efbd6);}export function colorJSONNull(_0x3d8ba1,_0x29ef5a={}){return getChalk(_0x29ef5a)['dim'](_0x3d8ba1);}export function colorizeJSONCompact(_0x221709,_0x3c42fb={}){const _0x3b62b3=a237_0x47755d;if(!shouldUseColor(_0x3c42fb))return JSON['stringify'](_0x221709);if(_0x221709===null)return colorJSONNull(_0x3b62b3(0x1af),_0x3c42fb);if(typeof _0x221709===_0x3b62b3(0x1b2))return colorJSONBoolean(String(_0x221709),_0x3c42fb);if(typeof _0x221709===_0x3b62b3(0x1b7))return colorJSONNumber(String(_0x221709),_0x3c42fb);if(typeof _0x221709===_0x3b62b3(0x1a5))return colorJSONString(JSON[_0x3b62b3(0x1b6)](_0x221709),_0x3c42fb);if(Array['isArray'](_0x221709)){if(_0x221709[_0x3b62b3(0x1a6)]===0x0)return'[]';const _0x44219f=_0x221709['map'](_0x200ec2=>colorizeJSONCompact(_0x200ec2,_0x3c42fb));return'['+_0x44219f[_0x3b62b3(0x1a7)](',')+']';}if(typeof _0x221709===_0x3b62b3(0x1a4)){const _0x872893=Object[_0x3b62b3(0x1a8)](_0x221709);if(_0x872893[_0x3b62b3(0x1a6)]===0x0)return'{}';const _0x2072fd=_0x872893[_0x3b62b3(0x1b3)](([_0x3e4018,_0x1b8882])=>{const _0x1ade38=_0x3b62b3,_0xb11ab3=colorJSONKey(JSON[_0x1ade38(0x1b6)](_0x3e4018),_0x3c42fb),_0x2adde1=colorizeJSONCompact(_0x1b8882,_0x3c42fb);return _0xb11ab3+':'+_0x2adde1;});return'{'+_0x2072fd[_0x3b62b3(0x1a7)](',')+'}';}return String(_0x221709);}export function colorizeJSON(_0x2c6324,_0x1d4a6={},_0x178d0a=0x0){const _0x579a37=a237_0x47755d;if(!shouldUseColor(_0x1d4a6))return JSON[_0x579a37(0x1b6)](_0x2c6324,null,0x2);const _0x248662='\x20'[_0x579a37(0x1b8)](_0x178d0a),_0x1ec6b9=_0x178d0a+0x2;if(_0x2c6324===null)return colorJSONNull(_0x579a37(0x1af),_0x1d4a6);if(typeof _0x2c6324==='boolean')return colorJSONBoolean(String(_0x2c6324),_0x1d4a6);if(typeof _0x2c6324===_0x579a37(0x1b7))return colorJSONNumber(String(_0x2c6324),_0x1d4a6);if(typeof _0x2c6324===_0x579a37(0x1a5))return colorJSONString(JSON[_0x579a37(0x1b6)](_0x2c6324),_0x1d4a6);if(Array['isArray'](_0x2c6324)){if(_0x2c6324[_0x579a37(0x1a6)]===0x0)return'[]';const _0x5a7c4f=_0x2c6324[_0x579a37(0x1b3)](_0x3bc7d4=>{const _0x26c098=_0x579a37,_0x56094d=colorizeJSON(_0x3bc7d4,_0x1d4a6,_0x1ec6b9);return''+'\x20'[_0x26c098(0x1b8)](_0x1ec6b9)+_0x56094d;});return'[\x0a'+_0x5a7c4f['join'](',\x0a')+('\x0a'+_0x248662+']');}if(typeof _0x2c6324==='object'){const _0xca8e29=Object[_0x579a37(0x1a8)](_0x2c6324);if(_0xca8e29['length']===0x0)return'{}';const _0x424f38=_0xca8e29['map'](([_0x1d0df,_0x197f26])=>{const _0x1a8b0a=_0x579a37,_0x11e718=colorJSONKey(JSON[_0x1a8b0a(0x1b6)](_0x1d0df),_0x1d4a6),_0x426803=colorizeJSON(_0x197f26,_0x1d4a6,_0x1ec6b9);return''+'\x20'[_0x1a8b0a(0x1b8)](_0x1ec6b9)+_0x11e718+':\x20'+_0x426803;});return'{\x0a'+_0x424f38[_0x579a37(0x1a7)](',\x0a')+('\x0a'+_0x248662+'}');}return String(_0x2c6324);}
@@ -1 +1 @@
1
- function a237_0x2355(){const _0x38c3d1=['map','content','\x20\x20\x20','padStart','2885004iwcWmK','2397132oKMpVy','max','some','repeat','min','640808tvDCrI','green','has','added','removed','join','fill','34GSxcOr','cyan','1034939EzeIww','forEach','old','161fOGJYE','size','split','312483VJtsHC','\x20+\x20','unshift','push','60czoNzS','\x20-\x20','2444840rEEUNg','length','red','new','856465TvbgrB','unchanged','add','type'];a237_0x2355=function(){return _0x38c3d1;};return a237_0x2355();}(function(_0x1d0ae4,_0x4aee98){const _0x278342=a237_0xbe63,_0x49b3f1=_0x1d0ae4();while(!![]){try{const _0x68b871=-parseInt(_0x278342(0x1a3))/0x1+parseInt(_0x278342(0x1a1))/0x2*(-parseInt(_0x278342(0x1a9))/0x3)+parseInt(_0x278342(0x1bb))/0x4+parseInt(_0x278342(0x1b3))/0x5*(parseInt(_0x278342(0x1ad))/0x6)+-parseInt(_0x278342(0x1a6))/0x7*(-parseInt(_0x278342(0x19a))/0x8)+-parseInt(_0x278342(0x1bc))/0x9+-parseInt(_0x278342(0x1af))/0xa;if(_0x68b871===_0x4aee98)break;else _0x49b3f1['push'](_0x49b3f1['shift']());}catch(_0x7ec7ad){_0x49b3f1['push'](_0x49b3f1['shift']());}}}(a237_0x2355,0xea5fc));import a237_0x56d619 from'chalk';export function generateDiff(_0x514be4,_0x433d77){const _0xd0ac10=a237_0xbe63,_0x58ca76=_0x514be4[_0xd0ac10(0x1a8)]('\x0a'),_0x4acf7d=_0x433d77['split']('\x0a'),_0x1bfe8f=[],_0x18971d=computeLCS(_0x58ca76,_0x4acf7d);let _0x29e3c6=0x0,_0x13d30f=0x0,_0x10e9ba=0x0;while(_0x29e3c6<_0x58ca76[_0xd0ac10(0x1b0)]||_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]){if(_0x10e9ba<_0x18971d[_0xd0ac10(0x1b0)]&&_0x29e3c6<_0x58ca76['length']&&_0x58ca76[_0x29e3c6]===_0x18971d[_0x10e9ba])_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]&&_0x4acf7d[_0x13d30f]===_0x18971d[_0x10e9ba]?(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x1b4),'content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++,_0x13d30f++,_0x10e9ba++):(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x19d),'content':_0x4acf7d[_0x13d30f]}),_0x13d30f++);else{if(_0x10e9ba<_0x18971d[_0xd0ac10(0x1b0)]&&_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]&&_0x4acf7d[_0x13d30f]===_0x18971d[_0x10e9ba])_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':'removed','content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++;else{if(_0x29e3c6<_0x58ca76[_0xd0ac10(0x1b0)]&&(_0x10e9ba>=_0x18971d[_0xd0ac10(0x1b0)]||_0x58ca76[_0x29e3c6]!==_0x18971d[_0x10e9ba]))_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':'removed','content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++;else _0x13d30f<_0x4acf7d['length']&&(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x19d),'content':_0x4acf7d[_0x13d30f]}),_0x13d30f++);}}}return _0x1bfe8f;}function computeLCS(_0x2db862,_0x51ead3){const _0xae9b49=a237_0xbe63,_0x28caba=_0x2db862[_0xae9b49(0x1b0)],_0x4b19f4=_0x51ead3[_0xae9b49(0x1b0)],_0x5a7aa7=Array(_0x28caba+0x1)['fill'](null)[_0xae9b49(0x1b7)](()=>Array(_0x4b19f4+0x1)[_0xae9b49(0x1a0)](0x0));for(let _0x5e23e5=0x1;_0x5e23e5<=_0x28caba;_0x5e23e5++){for(let _0xd552f7=0x1;_0xd552f7<=_0x4b19f4;_0xd552f7++){_0x2db862[_0x5e23e5-0x1]===_0x51ead3[_0xd552f7-0x1]?_0x5a7aa7[_0x5e23e5][_0xd552f7]=_0x5a7aa7[_0x5e23e5-0x1][_0xd552f7-0x1]+0x1:_0x5a7aa7[_0x5e23e5][_0xd552f7]=Math['max'](_0x5a7aa7[_0x5e23e5-0x1][_0xd552f7],_0x5a7aa7[_0x5e23e5][_0xd552f7-0x1]);}}const _0x411bcb=[];let _0x4bd89a=_0x28caba,_0x3ef8b4=_0x4b19f4;while(_0x4bd89a>0x0&&_0x3ef8b4>0x0){if(_0x2db862[_0x4bd89a-0x1]===_0x51ead3[_0x3ef8b4-0x1])_0x411bcb[_0xae9b49(0x1ab)](_0x2db862[_0x4bd89a-0x1]),_0x4bd89a--,_0x3ef8b4--;else _0x5a7aa7[_0x4bd89a-0x1][_0x3ef8b4]>_0x5a7aa7[_0x4bd89a][_0x3ef8b4-0x1]?_0x4bd89a--:_0x3ef8b4--;}return _0x411bcb;}function a237_0xbe63(_0x5e00d8,_0x5dd1a3){_0x5e00d8=_0x5e00d8-0x19a;const _0x235530=a237_0x2355();let _0xbe636a=_0x235530[_0x5e00d8];return _0xbe636a;}export function formatDiffWithColors(_0x2457ba,_0x46b89f=0x3){const _0x443f09=a237_0xbe63,_0x46ce11=new Set();_0x2457ba[_0x443f09(0x1a4)]((_0x54cf16,_0x1fd9fb)=>{const _0x4925e0=_0x443f09;_0x54cf16[_0x4925e0(0x1b6)]!=='unchanged'&&_0x46ce11['add'](_0x1fd9fb);});if(_0x46ce11[_0x443f09(0x1a7)]===0x0)return'';const _0x14eb56=new Set();for(const _0x38f309 of _0x46ce11){for(let _0x1f2d31=Math[_0x443f09(0x1bd)](0x0,_0x38f309-_0x46b89f);_0x1f2d31<=Math[_0x443f09(0x1c0)](_0x2457ba[_0x443f09(0x1b0)]-0x1,_0x38f309+_0x46b89f);_0x1f2d31++){_0x14eb56[_0x443f09(0x1b5)](_0x1f2d31);}}const _0xf56ee8=[];let _0x1e69c7=-0x1;const _0x4365e5=_0x2457ba['length'],_0x2adf22=Math['max'](0x3,String(_0x4365e5)[_0x443f09(0x1b0)]),_0x27afe2=[];let _0x238985=0x0,_0x2a9cf1=0x0;for(const _0x4a85fc of _0x2457ba){if(_0x4a85fc['type']==='removed')_0x238985++,_0x27afe2[_0x443f09(0x1ac)]({'old':_0x238985,'new':0x0});else _0x4a85fc['type']===_0x443f09(0x19d)?(_0x2a9cf1++,_0x27afe2[_0x443f09(0x1ac)]({'old':0x0,'new':_0x2a9cf1})):(_0x238985++,_0x2a9cf1++,_0x27afe2['push']({'old':_0x238985,'new':_0x2a9cf1}));}for(let _0x197c5e=0x0;_0x197c5e<_0x2457ba[_0x443f09(0x1b0)];_0x197c5e++){if(!_0x14eb56[_0x443f09(0x19c)](_0x197c5e))continue;_0x1e69c7!==-0x1&&_0x197c5e>_0x1e69c7+0x1&&_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x1a2)]('\x20\x20...'));_0x1e69c7=_0x197c5e;const _0xe8146a=_0x2457ba[_0x197c5e],_0x302d22=_0x27afe2[_0x197c5e],_0x433b4d=_0x302d22[_0x443f09(0x1a5)]>0x0?String(_0x302d22[_0x443f09(0x1a5)])[_0x443f09(0x1ba)](_0x2adf22):'\x20'['repeat'](_0x2adf22),_0x97280a=_0x302d22[_0x443f09(0x1b2)]>0x0?String(_0x302d22[_0x443f09(0x1b2)])[_0x443f09(0x1ba)](_0x2adf22):'\x20'[_0x443f09(0x1bf)](_0x2adf22);switch(_0xe8146a[_0x443f09(0x1b6)]){case _0x443f09(0x19e):_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x1b1)](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1ae)+_0xe8146a[_0x443f09(0x1b8)]));break;case _0x443f09(0x19d):_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x19b)](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1aa)+_0xe8146a[_0x443f09(0x1b8)]));break;default:_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619['dim'](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1b9)+_0xe8146a[_0x443f09(0x1b8)]));break;}}return _0xf56ee8[_0x443f09(0x19f)]('\x0a');}export function hasChanges(_0x3523f0){const _0x5bf639=a237_0xbe63;return _0x3523f0[_0x5bf639(0x1be)](_0x5161f7=>_0x5161f7[_0x5bf639(0x1b6)]!=='unchanged');}
1
+ (function(_0xf47f1e,_0x5b5007){const _0x58d3a1=a238_0xdf3e,_0x1781d7=_0xf47f1e();while(!![]){try{const _0x2f88a1=-parseInt(_0x58d3a1(0xde))/0x1+-parseInt(_0x58d3a1(0xdf))/0x2*(-parseInt(_0x58d3a1(0xc3))/0x3)+parseInt(_0x58d3a1(0xcf))/0x4*(parseInt(_0x58d3a1(0xca))/0x5)+parseInt(_0x58d3a1(0xcb))/0x6*(parseInt(_0x58d3a1(0xe5))/0x7)+-parseInt(_0x58d3a1(0xcc))/0x8+parseInt(_0x58d3a1(0xdd))/0x9*(parseInt(_0x58d3a1(0xda))/0xa)+-parseInt(_0x58d3a1(0xd9))/0xb;if(_0x2f88a1===_0x5b5007)break;else _0x1781d7['push'](_0x1781d7['shift']());}catch(_0x284a53){_0x1781d7['push'](_0x1781d7['shift']());}}}(a238_0x1bda,0xd5ff8));import a238_0x26ce0b from'chalk';function a238_0x1bda(){const _0x3c647b=['38096333AvZrce','9120rwFphO','length','min','13302RRNTzW','726856qSvyXS','4vzVyLI','new','push','has','unshift','\x20\x20\x20','14aDSUEY','added','unchanged','1068363vGJxAq','\x20\x20...','removed','padStart','repeat','map','cyan','12505VDoZGD','4455366KXYzNA','934080yozCAs','content','max','2620ColzFq','fill','type','add','old','forEach','size','\x20+\x20','green','split'];a238_0x1bda=function(){return _0x3c647b;};return a238_0x1bda();}export function generateDiff(_0x2e5b18,_0x328485){const _0x25e52e=a238_0xdf3e,_0xc60394=_0x2e5b18['split']('\x0a'),_0x3729d6=_0x328485[_0x25e52e(0xd8)]('\x0a'),_0x3ab7eb=[],_0x4e03ed=computeLCS(_0xc60394,_0x3729d6);let _0x965898=0x0,_0x5c3d0e=0x0,_0x60d8b4=0x0;while(_0x965898<_0xc60394[_0x25e52e(0xdb)]||_0x5c3d0e<_0x3729d6['length']){if(_0x60d8b4<_0x4e03ed[_0x25e52e(0xdb)]&&_0x965898<_0xc60394[_0x25e52e(0xdb)]&&_0xc60394[_0x965898]===_0x4e03ed[_0x60d8b4])_0x5c3d0e<_0x3729d6[_0x25e52e(0xdb)]&&_0x3729d6[_0x5c3d0e]===_0x4e03ed[_0x60d8b4]?(_0x3ab7eb[_0x25e52e(0xe1)]({'type':_0x25e52e(0xc2),'content':_0xc60394[_0x965898]}),_0x965898++,_0x5c3d0e++,_0x60d8b4++):(_0x3ab7eb[_0x25e52e(0xe1)]({'type':'added','content':_0x3729d6[_0x5c3d0e]}),_0x5c3d0e++);else{if(_0x60d8b4<_0x4e03ed[_0x25e52e(0xdb)]&&_0x5c3d0e<_0x3729d6['length']&&_0x3729d6[_0x5c3d0e]===_0x4e03ed[_0x60d8b4])_0x3ab7eb[_0x25e52e(0xe1)]({'type':_0x25e52e(0xc5),'content':_0xc60394[_0x965898]}),_0x965898++;else{if(_0x965898<_0xc60394[_0x25e52e(0xdb)]&&(_0x60d8b4>=_0x4e03ed[_0x25e52e(0xdb)]||_0xc60394[_0x965898]!==_0x4e03ed[_0x60d8b4]))_0x3ab7eb['push']({'type':_0x25e52e(0xc5),'content':_0xc60394[_0x965898]}),_0x965898++;else _0x5c3d0e<_0x3729d6[_0x25e52e(0xdb)]&&(_0x3ab7eb[_0x25e52e(0xe1)]({'type':_0x25e52e(0xc1),'content':_0x3729d6[_0x5c3d0e]}),_0x5c3d0e++);}}}return _0x3ab7eb;}function computeLCS(_0x2acbc6,_0x2cb3e8){const _0xfd511a=a238_0xdf3e,_0xdc9210=_0x2acbc6['length'],_0x165840=_0x2cb3e8[_0xfd511a(0xdb)],_0x33c194=Array(_0xdc9210+0x1)['fill'](null)[_0xfd511a(0xc8)](()=>Array(_0x165840+0x1)[_0xfd511a(0xd0)](0x0));for(let _0x53b8dc=0x1;_0x53b8dc<=_0xdc9210;_0x53b8dc++){for(let _0x320434=0x1;_0x320434<=_0x165840;_0x320434++){_0x2acbc6[_0x53b8dc-0x1]===_0x2cb3e8[_0x320434-0x1]?_0x33c194[_0x53b8dc][_0x320434]=_0x33c194[_0x53b8dc-0x1][_0x320434-0x1]+0x1:_0x33c194[_0x53b8dc][_0x320434]=Math[_0xfd511a(0xce)](_0x33c194[_0x53b8dc-0x1][_0x320434],_0x33c194[_0x53b8dc][_0x320434-0x1]);}}const _0x2ca143=[];let _0x1931b4=_0xdc9210,_0x19ab50=_0x165840;while(_0x1931b4>0x0&&_0x19ab50>0x0){if(_0x2acbc6[_0x1931b4-0x1]===_0x2cb3e8[_0x19ab50-0x1])_0x2ca143[_0xfd511a(0xe3)](_0x2acbc6[_0x1931b4-0x1]),_0x1931b4--,_0x19ab50--;else _0x33c194[_0x1931b4-0x1][_0x19ab50]>_0x33c194[_0x1931b4][_0x19ab50-0x1]?_0x1931b4--:_0x19ab50--;}return _0x2ca143;}function a238_0xdf3e(_0x27eb22,_0x1f90ca){_0x27eb22=_0x27eb22-0xc1;const _0x1bdad6=a238_0x1bda();let _0xdf3ef0=_0x1bdad6[_0x27eb22];return _0xdf3ef0;}export function formatDiffWithColors(_0x327bc7,_0x4e2f31=0x3){const _0x527517=a238_0xdf3e,_0x31dfb7=new Set();_0x327bc7[_0x527517(0xd4)]((_0x361b2c,_0x51683b)=>{const _0x1c3f7b=_0x527517;_0x361b2c[_0x1c3f7b(0xd1)]!==_0x1c3f7b(0xc2)&&_0x31dfb7[_0x1c3f7b(0xd2)](_0x51683b);});if(_0x31dfb7[_0x527517(0xd5)]===0x0)return'';const _0x24d30f=new Set();for(const _0x2ad53b of _0x31dfb7){for(let _0x3096b9=Math['max'](0x0,_0x2ad53b-_0x4e2f31);_0x3096b9<=Math[_0x527517(0xdc)](_0x327bc7[_0x527517(0xdb)]-0x1,_0x2ad53b+_0x4e2f31);_0x3096b9++){_0x24d30f[_0x527517(0xd2)](_0x3096b9);}}const _0x119a24=[];let _0x128801=-0x1;const _0x5e2322=_0x327bc7[_0x527517(0xdb)],_0x234f8b=Math['max'](0x3,String(_0x5e2322)['length']),_0x5ee538=[];let _0x3e737a=0x0,_0x137c7f=0x0;for(const _0x59a936 of _0x327bc7){if(_0x59a936[_0x527517(0xd1)]===_0x527517(0xc5))_0x3e737a++,_0x5ee538[_0x527517(0xe1)]({'old':_0x3e737a,'new':0x0});else _0x59a936[_0x527517(0xd1)]===_0x527517(0xc1)?(_0x137c7f++,_0x5ee538[_0x527517(0xe1)]({'old':0x0,'new':_0x137c7f})):(_0x3e737a++,_0x137c7f++,_0x5ee538['push']({'old':_0x3e737a,'new':_0x137c7f}));}for(let _0x4ceaf6=0x0;_0x4ceaf6<_0x327bc7['length'];_0x4ceaf6++){if(!_0x24d30f[_0x527517(0xe2)](_0x4ceaf6))continue;_0x128801!==-0x1&&_0x4ceaf6>_0x128801+0x1&&_0x119a24[_0x527517(0xe1)](a238_0x26ce0b[_0x527517(0xc9)](_0x527517(0xc4)));_0x128801=_0x4ceaf6;const _0x342b55=_0x327bc7[_0x4ceaf6],_0x4670a1=_0x5ee538[_0x4ceaf6],_0x4832c2=_0x4670a1[_0x527517(0xd3)]>0x0?String(_0x4670a1[_0x527517(0xd3)])['padStart'](_0x234f8b):'\x20'['repeat'](_0x234f8b),_0x4106b4=_0x4670a1[_0x527517(0xe0)]>0x0?String(_0x4670a1[_0x527517(0xe0)])[_0x527517(0xc6)](_0x234f8b):'\x20'[_0x527517(0xc7)](_0x234f8b);switch(_0x342b55[_0x527517(0xd1)]){case _0x527517(0xc5):_0x119a24[_0x527517(0xe1)](a238_0x26ce0b['red'](_0x4832c2+'\x20'+_0x4106b4+'\x20-\x20'+_0x342b55[_0x527517(0xcd)]));break;case _0x527517(0xc1):_0x119a24[_0x527517(0xe1)](a238_0x26ce0b[_0x527517(0xd7)](_0x4832c2+'\x20'+_0x4106b4+_0x527517(0xd6)+_0x342b55[_0x527517(0xcd)]));break;default:_0x119a24[_0x527517(0xe1)](a238_0x26ce0b['dim'](_0x4832c2+'\x20'+_0x4106b4+_0x527517(0xe4)+_0x342b55[_0x527517(0xcd)]));break;}}return _0x119a24['join']('\x0a');}export function hasChanges(_0x33a10a){const _0x5ad542=a238_0xdf3e;return _0x33a10a['some'](_0x11c247=>_0x11c247[_0x5ad542(0xd1)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x56852e,_0x56472f){const _0x7f35e6=a238_0x15ad,_0x3a1bd5=_0x56852e();while(!![]){try{const _0x4bd7ba=-parseInt(_0x7f35e6(0x19a))/0x1*(-parseInt(_0x7f35e6(0x1a6))/0x2)+-parseInt(_0x7f35e6(0x19e))/0x3*(parseInt(_0x7f35e6(0x1a5))/0x4)+parseInt(_0x7f35e6(0x1a2))/0x5+-parseInt(_0x7f35e6(0x199))/0x6*(parseInt(_0x7f35e6(0x1a8))/0x7)+-parseInt(_0x7f35e6(0x19c))/0x8+-parseInt(_0x7f35e6(0x1a9))/0x9*(-parseInt(_0x7f35e6(0x19f))/0xa)+parseInt(_0x7f35e6(0x197))/0xb;if(_0x4bd7ba===_0x56472f)break;else _0x3a1bd5['push'](_0x3a1bd5['shift']());}catch(_0x562baf){_0x3a1bd5['push'](_0x3a1bd5['shift']());}}}(a238_0x2f35,0x9bd86));import*as a238_0x34742d from'node:fs';import*as a238_0x441a6a from'node:path';function a238_0x15ad(_0x13d5f4,_0x5dbe9a){_0x13d5f4=_0x13d5f4-0x196;const _0x2f355c=a238_0x2f35();let _0x15ad78=_0x2f355c[_0x13d5f4];return _0x15ad78;}export function setSecureFilePermissions(_0x2a5921){const _0x55c886=a238_0x15ad;try{a238_0x34742d[_0x55c886(0x198)](_0x2a5921,0x180);}catch{console[_0x55c886(0x19b)](_0x55c886(0x1ab)+_0x2a5921);}}function a238_0x2f35(){const _0x409e6b=['existsSync','11420761cMYhLl','chmodSync','12GcPjgG','211431VvYTcE','warn','7731312aqmPvq',').\x20','27GXDtcu','50620TYoCTk','toString','dirname','5397100ofGLzb','statSync','\x20has\x20insecure\x20permissions\x20(','514844joyYwt','4grAAth','Warning:\x20','1151976GiTzfv','981WYWutA','Should\x20be\x200600\x20or\x20more\x20restrictive.','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync'];a238_0x2f35=function(){return _0x409e6b;};return a238_0x2f35();}export function setSecureDirectoryPermissions(_0x37fe74){const _0x5d6c7f=a238_0x15ad;try{a238_0x34742d[_0x5d6c7f(0x198)](_0x37fe74,0x1c0);}catch{console['warn'](_0x5d6c7f(0x1ab)+_0x37fe74);}}export function createSecureDirectory(_0x1d2fa7){const _0x14b427=a238_0x15ad;!a238_0x34742d[_0x14b427(0x196)](_0x1d2fa7)&&(a238_0x34742d['mkdirSync'](_0x1d2fa7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1d2fa7));}export function validateSecureFilePermissions(_0x183117){const _0x5916a5=a238_0x15ad;try{const _0x8c301a=a238_0x34742d[_0x5916a5(0x1a3)](_0x183117),_0x4ee861=_0x8c301a['mode']&0x1ff,_0x21437b=(_0x4ee861&0x3f)!==0x0;if(_0x21437b)return console[_0x5916a5(0x19b)](_0x5916a5(0x1a7)+_0x183117+_0x5916a5(0x1a4)+_0x4ee861[_0x5916a5(0x1a0)](0x8)+_0x5916a5(0x19d)+_0x5916a5(0x1aa)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x50c6e7,_0x5350ea){const _0xfaf5f3=a238_0x15ad,_0x2c5f97=a238_0x441a6a[_0xfaf5f3(0x1a1)](_0x50c6e7);createSecureDirectory(_0x2c5f97),a238_0x34742d[_0xfaf5f3(0x1ac)](_0x50c6e7,_0x5350ea,{'mode':0x180}),setSecureFilePermissions(_0x50c6e7);}
1
+ function a239_0x22b5(_0x567a07,_0x32b494){_0x567a07=_0x567a07-0x19a;const _0x2f3101=a239_0x2f31();let _0x22b5b9=_0x2f3101[_0x567a07];return _0x22b5b9;}(function(_0xb79578,_0x427762){const _0x5e4108=a239_0x22b5,_0x15ca6a=_0xb79578();while(!![]){try{const _0x27bb2d=-parseInt(_0x5e4108(0x19d))/0x1*(parseInt(_0x5e4108(0x1a3))/0x2)+-parseInt(_0x5e4108(0x1ad))/0x3+-parseInt(_0x5e4108(0x1a0))/0x4*(parseInt(_0x5e4108(0x1a1))/0x5)+parseInt(_0x5e4108(0x19f))/0x6+parseInt(_0x5e4108(0x1a7))/0x7+-parseInt(_0x5e4108(0x1a8))/0x8+parseInt(_0x5e4108(0x1a2))/0x9*(parseInt(_0x5e4108(0x1a9))/0xa);if(_0x27bb2d===_0x427762)break;else _0x15ca6a['push'](_0x15ca6a['shift']());}catch(_0x4aac22){_0x15ca6a['push'](_0x15ca6a['shift']());}}}(a239_0x2f31,0x38604));function a239_0x2f31(){const _0x2a06a4=[').\x20','\x20has\x20insecure\x20permissions\x20(','157202UQKwwT','mode','2163246EoHcOh','4kQtQYF','1944760ABOsLI','234oZTKNh','4lkMvGh','chmodSync','warn','writeFileSync','1136765zvnTOw','3397832JJWfYY','426980dwugAT','mkdirSync','statSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','822249hRzIuP','dirname','Should\x20be\x200600\x20or\x20more\x20restrictive.'];a239_0x2f31=function(){return _0x2a06a4;};return a239_0x2f31();}import*as a239_0xd1101c from'node:fs';import*as a239_0x3558fa from'node:path';export function setSecureFilePermissions(_0x1fda07){const _0x23ee7f=a239_0x22b5;try{a239_0xd1101c[_0x23ee7f(0x1a4)](_0x1fda07,0x180);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1fda07);}}export function setSecureDirectoryPermissions(_0x597cfa){const _0x252132=a239_0x22b5;try{a239_0xd1101c[_0x252132(0x1a4)](_0x597cfa,0x1c0);}catch{console[_0x252132(0x1a5)](_0x252132(0x1ac)+_0x597cfa);}}export function createSecureDirectory(_0x3388e5){const _0x4b7116=a239_0x22b5;!a239_0xd1101c['existsSync'](_0x3388e5)&&(a239_0xd1101c[_0x4b7116(0x1aa)](_0x3388e5,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3388e5));}export function validateSecureFilePermissions(_0x2364e0){const _0x11f356=a239_0x22b5;try{const _0x194a3d=a239_0xd1101c[_0x11f356(0x1ab)](_0x2364e0),_0x404319=_0x194a3d[_0x11f356(0x19e)]&0x1ff,_0x52bcb2=(_0x404319&0x3f)!==0x0;if(_0x52bcb2)return console[_0x11f356(0x1a5)]('Warning:\x20'+_0x2364e0+_0x11f356(0x19c)+_0x404319['toString'](0x8)+_0x11f356(0x19b)+_0x11f356(0x19a)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x382644,_0x3d8441){const _0x793d51=a239_0x22b5,_0x474a6e=a239_0x3558fa[_0x793d51(0x1ae)](_0x382644);createSecureDirectory(_0x474a6e),a239_0xd1101c[_0x793d51(0x1a6)](_0x382644,_0x3d8441,{'mode':0x180}),setSecureFilePermissions(_0x382644);}
@@ -1 +1 @@
1
- function a239_0x17d8(){const _0x18068e=['3847656XeTUZx','7HxZbHE','468215kdNwyH','INTERNAL','message','EACCES','2107551XhrgRv','NOT_FOUND','\x27\x20not\x20found','1509230nGnwHG','utf-8','Error\x20reading\x20file\x20\x27','11517050UnfmAv','\x27:\x20','9257280jjWERy','1439081LwyRHe','ENOENT','9WQyNZa','4BUsnPu'];a239_0x17d8=function(){return _0x18068e;};return a239_0x17d8();}(function(_0x36b9cb,_0x38ef71){const _0x45e026=a239_0x384f,_0x4fde33=_0x36b9cb();while(!![]){try{const _0x5b3cd1=parseInt(_0x45e026(0x16c))/0x1+parseInt(_0x45e026(0x179))/0x2+parseInt(_0x45e026(0x176))/0x3*(parseInt(_0x45e026(0x16f))/0x4)+parseInt(_0x45e026(0x172))/0x5+-parseInt(_0x45e026(0x17e))/0x6+-parseInt(_0x45e026(0x171))/0x7*(-parseInt(_0x45e026(0x170))/0x8)+-parseInt(_0x45e026(0x16e))/0x9*(parseInt(_0x45e026(0x17c))/0xa);if(_0x5b3cd1===_0x38ef71)break;else _0x4fde33['push'](_0x4fde33['shift']());}catch(_0x336b81){_0x4fde33['push'](_0x4fde33['shift']());}}}(a239_0x17d8,0xbd824));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a239_0x384f(_0x54195f,_0x4b58d3){_0x54195f=_0x54195f-0x16c;const _0x17d8b2=a239_0x17d8();let _0x384f35=_0x17d8b2[_0x54195f];return _0x384f35;}export function readFileContent(_0x3a4371){const _0x1eb8e6=a239_0x384f;try{return readFileSync(_0x3a4371,_0x1eb8e6(0x17a));}catch(_0x2c44d7){const _0x4e10c0=_0x2c44d7['code'];if(_0x4e10c0===_0x1eb8e6(0x16d))throw new SDKError(ErrorCode[_0x1eb8e6(0x177)],'File\x20\x27'+_0x3a4371+_0x1eb8e6(0x178),_0x2c44d7);else{if(_0x4e10c0===_0x1eb8e6(0x175))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x3a4371+'\x27',_0x2c44d7);else throw new SDKError(ErrorCode[_0x1eb8e6(0x173)],_0x1eb8e6(0x17b)+_0x3a4371+_0x1eb8e6(0x17d)+_0x2c44d7[_0x1eb8e6(0x174)],_0x2c44d7);}}}
1
+ (function(_0x3fc6ba,_0x1525a9){const _0x287fea=a240_0x4b70,_0x5a16cf=_0x3fc6ba();while(!![]){try{const _0x187a50=-parseInt(_0x287fea(0x7d))/0x1+parseInt(_0x287fea(0x86))/0x2+parseInt(_0x287fea(0x80))/0x3+parseInt(_0x287fea(0x79))/0x4+parseInt(_0x287fea(0x78))/0x5+-parseInt(_0x287fea(0x7f))/0x6+-parseInt(_0x287fea(0x82))/0x7;if(_0x187a50===_0x1525a9)break;else _0x5a16cf['push'](_0x5a16cf['shift']());}catch(_0x3f9ebe){_0x5a16cf['push'](_0x5a16cf['shift']());}}}(a240_0x5228,0x30ae7));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a240_0x4b70(_0x362287,_0x37ae2a){_0x362287=_0x362287-0x76;const _0x52288b=a240_0x5228();let _0x4b70af=_0x52288b[_0x362287];return _0x4b70af;}function a240_0x5228(){const _0x4b0c58=['472344obegfp','219972CbBywE','\x27:\x20','1262471xovDDg','Error\x20reading\x20file\x20\x27','INTERNAL','code','664698ngudSd','EACCES','Permission\x20denied\x20reading\x20file\x20\x27','1531595Dwmuul','296900DmVXob','ENOENT','NOT_FOUND','PERMISSION_DENIED','327741RWHXAt','utf-8'];a240_0x5228=function(){return _0x4b0c58;};return a240_0x5228();}export function readFileContent(_0x412859){const _0xa5509b=a240_0x4b70;try{return readFileSync(_0x412859,_0xa5509b(0x7e));}catch(_0x166107){const _0x2cb759=_0x166107[_0xa5509b(0x85)];if(_0x2cb759===_0xa5509b(0x7a))throw new SDKError(ErrorCode[_0xa5509b(0x7b)],'File\x20\x27'+_0x412859+'\x27\x20not\x20found',_0x166107);else{if(_0x2cb759===_0xa5509b(0x76))throw new SDKError(ErrorCode[_0xa5509b(0x7c)],_0xa5509b(0x77)+_0x412859+'\x27',_0x166107);else throw new SDKError(ErrorCode[_0xa5509b(0x84)],_0xa5509b(0x83)+_0x412859+_0xa5509b(0x81)+_0x166107['message'],_0x166107);}}}
@@ -1 +1 @@
1
- (function(_0x408b78,_0x2f6fe1){const _0x5ea674=a240_0x5e40,_0x46ca68=_0x408b78();while(!![]){try{const _0x1d3882=parseInt(_0x5ea674(0x1a0))/0x1+parseInt(_0x5ea674(0x193))/0x2+-parseInt(_0x5ea674(0x1a8))/0x3+parseInt(_0x5ea674(0x199))/0x4+-parseInt(_0x5ea674(0x192))/0x5+-parseInt(_0x5ea674(0x1a2))/0x6*(-parseInt(_0x5ea674(0x1a3))/0x7)+parseInt(_0x5ea674(0x1a9))/0x8*(parseInt(_0x5ea674(0x1ad))/0x9);if(_0x1d3882===_0x2f6fe1)break;else _0x46ca68['push'](_0x46ca68['shift']());}catch(_0x574287){_0x46ca68['push'](_0x46ca68['shift']());}}}(a240_0x9385,0xb5f89));import*as a240_0x3e3b95 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x58ae1d,_0x595ed0,_0x3fb711){const _0x57ccdb=a240_0x5e40,_0x20e7c7=_0x58ae1d+'/'+_0x595ed0,_0x13dd42=cache[_0x57ccdb(0x19f)](_0x20e7c7);if(_0x13dd42&&Date[_0x57ccdb(0x1ac)]()-_0x13dd42[_0x57ccdb(0x19c)]<CACHE_TTL_MS)return Promise[_0x57ccdb(0x198)](_0x13dd42['releases']);return new Promise((_0x3eaaa4,_0xdfc45b)=>{const _0x2917ce=_0x57ccdb,_0x36d44f={'hostname':_0x2917ce(0x1aa),'path':_0x2917ce(0x1a6)+_0x58ae1d+'/'+_0x595ed0+_0x2917ce(0x19a),'headers':{'User-Agent':_0x3fb711,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x2f1cb6=a240_0x3e3b95[_0x2917ce(0x19f)](_0x36d44f,_0x3191cf=>{const _0x572f13=_0x2917ce;let _0x3340e2='';_0x3191cf['on'](_0x572f13(0x19d),_0x581c85=>{const _0x43805d=_0x572f13;_0x3340e2+=_0x581c85[_0x43805d(0x196)]();}),_0x3191cf['on'](_0x572f13(0x1ab),()=>{const _0x5055ab=_0x572f13;if(_0x3191cf['statusCode']!==0xc8){_0xdfc45b(new Error(_0x5055ab(0x191)+_0x3191cf[_0x5055ab(0x19e)]+':\x20'+_0x3340e2[_0x5055ab(0x197)](0x0,0xc8)));return;}try{const _0x68bca4=JSON[_0x5055ab(0x1a5)](_0x3340e2);cache[_0x5055ab(0x19b)](_0x20e7c7,{'releases':_0x68bca4,'fetchedAt':Date['now']()}),_0x3eaaa4(_0x68bca4);}catch(_0x3b5255){_0xdfc45b(_0x3b5255);}});});_0x2f1cb6['on'](_0x2917ce(0x1a4),()=>{const _0x53731b=_0x2917ce;_0x2f1cb6[_0x53731b(0x195)](),_0xdfc45b(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x2f1cb6['on']('error',_0xdfc45b);});}function a240_0x5e40(_0x4a1756,_0x3ca886){_0x4a1756=_0x4a1756-0x190;const _0x9385b6=a240_0x9385();let _0x5e4022=_0x9385b6[_0x4a1756];return _0x5e4022;}export async function resolveReleaseTag(_0x56215c,_0x4ef01c,_0x143f0f,_0x7102c1){const _0x38bf66=a240_0x5e40;if(_0x56215c===_0x38bf66(0x1a1))return null;const _0x2cfc1b=await fetchGitHubReleases(_0x4ef01c,_0x143f0f,_0x7102c1);if(_0x2cfc1b[_0x38bf66(0x194)]===0x0)return null;const _0x64afc0=_0x2cfc1b[_0x38bf66(0x1a7)](_0x55f2ce=>!_0x55f2ce[_0x38bf66(0x190)]);return _0x64afc0?_0x64afc0['tag_name']:null;}function a240_0x9385(){const _0x3fb7d2=['/repos/','find','1301715xYicaB','97976ksAeig','api.github.com','end','now','180qCUMct','prerelease','GitHub\x20API\x20returned\x20','5181315EUIeXY','116986XcYKta','length','destroy','toString','slice','resolve','263476WzClvc','/releases?per_page=20','set','fetchedAt','data','statusCode','get','1244790gUvzdR','next','6Myglza','4210003XRszcU','timeout','parse'];a240_0x9385=function(){return _0x3fb7d2;};return a240_0x9385();}
1
+ (function(_0xfeb550,_0x2aa520){const _0x5a219a=a241_0x54e0,_0x1fc1fb=_0xfeb550();while(!![]){try{const _0x5021a9=-parseInt(_0x5a219a(0xc7))/0x1*(parseInt(_0x5a219a(0xd5))/0x2)+parseInt(_0x5a219a(0xd7))/0x3*(-parseInt(_0x5a219a(0xc9))/0x4)+parseInt(_0x5a219a(0xce))/0x5+-parseInt(_0x5a219a(0xc8))/0x6+-parseInt(_0x5a219a(0xcd))/0x7+-parseInt(_0x5a219a(0xd4))/0x8*(-parseInt(_0x5a219a(0xcf))/0x9)+parseInt(_0x5a219a(0xd9))/0xa;if(_0x5021a9===_0x2aa520)break;else _0x1fc1fb['push'](_0x1fc1fb['shift']());}catch(_0x5a4661){_0x1fc1fb['push'](_0x1fc1fb['shift']());}}}(a241_0x3efd,0x56e06));import*as a241_0x482514 from'node:https';function a241_0x54e0(_0x48f1e9,_0x48f7c6){_0x48f1e9=_0x48f1e9-0xc2;const _0x3efd94=a241_0x3efd();let _0x54e0c6=_0x3efd94[_0x48f1e9];return _0x54e0c6;}function a241_0x3efd(){const _0x3f3374=['error','get','prerelease','480zuLUBe','3576438PaPFCx','1536552HlAMTg','data','tag_name','now','4878531JsrAjT','2123510yGpsCA','2145375nRYCle','slice','statusCode','destroy','length','8uXusKr','2612obQoga','resolve','3SFpPQL','api.github.com','19967930VpVaeR','releases','fetchedAt','/releases?per_page=20','next','parse','GitHub\x20API\x20returned\x20','/repos/'];a241_0x3efd=function(){return _0x3f3374;};return a241_0x3efd();}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x2e2a24,_0x51bfa1,_0x2ce490){const _0x38b851=a241_0x54e0,_0x26e727=_0x2e2a24+'/'+_0x51bfa1,_0x519c7f=cache[_0x38b851(0xc5)](_0x26e727);if(_0x519c7f&&Date['now']()-_0x519c7f[_0x38b851(0xdb)]<CACHE_TTL_MS)return Promise[_0x38b851(0xd6)](_0x519c7f[_0x38b851(0xda)]);return new Promise((_0x521257,_0x4e6426)=>{const _0x3befa5=_0x38b851,_0x1dfb71={'hostname':_0x3befa5(0xd8),'path':_0x3befa5(0xc3)+_0x2e2a24+'/'+_0x51bfa1+_0x3befa5(0xdc),'headers':{'User-Agent':_0x2ce490,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x3fb3d8=a241_0x482514[_0x3befa5(0xc5)](_0x1dfb71,_0x49e863=>{const _0xf05c05=_0x3befa5;let _0x15e89c='';_0x49e863['on'](_0xf05c05(0xca),_0x550df9=>{_0x15e89c+=_0x550df9['toString']();}),_0x49e863['on']('end',()=>{const _0x4d2dd2=_0xf05c05;if(_0x49e863['statusCode']!==0xc8){_0x4e6426(new Error(_0x4d2dd2(0xc2)+_0x49e863[_0x4d2dd2(0xd1)]+':\x20'+_0x15e89c[_0x4d2dd2(0xd0)](0x0,0xc8)));return;}try{const _0x5cf7ff=JSON[_0x4d2dd2(0xde)](_0x15e89c);cache['set'](_0x26e727,{'releases':_0x5cf7ff,'fetchedAt':Date[_0x4d2dd2(0xcc)]()}),_0x521257(_0x5cf7ff);}catch(_0x53f44e){_0x4e6426(_0x53f44e);}});});_0x3fb3d8['on']('timeout',()=>{const _0x2443f4=_0x3befa5;_0x3fb3d8[_0x2443f4(0xd2)](),_0x4e6426(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x3fb3d8['on'](_0x3befa5(0xc4),_0x4e6426);});}export async function resolveReleaseTag(_0x5ef787,_0x17e8f2,_0x21e698,_0x273e57){const _0x1fa082=a241_0x54e0;if(_0x5ef787===_0x1fa082(0xdd))return null;const _0x343808=await fetchGitHubReleases(_0x17e8f2,_0x21e698,_0x273e57);if(_0x343808[_0x1fa082(0xd3)]===0x0)return null;const _0x8a474=_0x343808['find'](_0x1f5913=>!_0x1f5913[_0x1fa082(0xc6)]);return _0x8a474?_0x8a474[_0x1fa082(0xcb)]:null;}
@@ -1 +1 @@
1
- (function(_0x296561,_0x210c71){const _0xf2bb03=a241_0x5535,_0x5a1dff=_0x296561();while(!![]){try{const _0x190199=parseInt(_0xf2bb03(0x142))/0x1+-parseInt(_0xf2bb03(0x140))/0x2+parseInt(_0xf2bb03(0x12d))/0x3*(parseInt(_0xf2bb03(0x135))/0x4)+parseInt(_0xf2bb03(0x137))/0x5+-parseInt(_0xf2bb03(0x139))/0x6*(-parseInt(_0xf2bb03(0x134))/0x7)+parseInt(_0xf2bb03(0x136))/0x8*(-parseInt(_0xf2bb03(0x132))/0x9)+-parseInt(_0xf2bb03(0x131))/0xa*(parseInt(_0xf2bb03(0x13d))/0xb);if(_0x190199===_0x210c71)break;else _0x5a1dff['push'](_0x5a1dff['shift']());}catch(_0x305c03){_0x5a1dff['push'](_0x5a1dff['shift']());}}}(a241_0x43ee,0x7f167));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x2be228=a241_0x5535;return process.env.TDX_CACHE_DIR||join(homedir(),_0x2be228(0x13c),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x286313,_0x22a871){const _0x4bd235=a241_0x5535,_0x591ff7=registry[_0x4bd235(0x13a)](_0x286313);if(_0x591ff7&&_0x591ff7!==_0x22a871)throw new Error(_0x4bd235(0x133)+_0x286313+_0x4bd235(0x12e)+_0x591ff7+_0x4bd235(0x13f)+_0x22a871+'\x22');registry[_0x4bd235(0x130)](_0x286313,_0x22a871);}export function getGlobalCachePath(_0x2542e3){return join(getGlobalCacheDir(),_0x2542e3);}function ensureGlobalCacheDir(){const _0x167129=getGlobalCacheDir();!existsSync(_0x167129)&&mkdirSync(_0x167129,{'recursive':!![]});}function readCacheJson(_0x3eee0c){const _0x1ccd15=getGlobalCachePath(_0x3eee0c);if(!existsSync(_0x1ccd15))return undefined;try{const _0xe4ba4e=readFileSync(_0x1ccd15,'utf-8');return JSON['parse'](_0xe4ba4e);}catch{return undefined;}}function writeCacheJson(_0x3c27e4,_0x17755e){const _0x15e264=a241_0x5535;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3c27e4),JSON['stringify'](_0x17755e,null,0x2),_0x15e264(0x13e));}function readCacheText(_0x12b0c4){const _0x22384d=getGlobalCachePath(_0x12b0c4);if(!existsSync(_0x22384d))return undefined;try{return readFileSync(_0x22384d,'utf-8');}catch{return undefined;}}function a241_0x43ee(){const _0xb23a2d=['9DNcKRg','Global\x20cache\x20key\x20\x22','2942191dNrxmA','777772yrDsYT','3948728Ckwlvq','4525845BnMVbW','default','6jQEnHB','get','{profile}','.cache','11hAzBrt','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','777834QniSyW','clear','268256OArvbM','3VPnNoa','\x22\x20already\x20registered\x20by\x20\x22','replace','set','3851220gENHBW'];a241_0x43ee=function(){return _0xb23a2d;};return a241_0x43ee();}function writeCacheText(_0x26bcad,_0x1e6392){const _0x431d6d=a241_0x5535;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x26bcad),_0x1e6392,_0x431d6d(0x13e));}function clearCache(_0x597b21){const _0x170e3d=getGlobalCachePath(_0x597b21);if(existsSync(_0x170e3d))try{unlinkSync(_0x170e3d);}catch{}}function cacheExists(_0x4467e7){return existsSync(getGlobalCachePath(_0x4467e7));}export function createGlobalCache(_0x1809f7,_0x1d3080){return registerGlobalCacheKey(_0x1809f7,_0x1d3080),{'read':()=>readCacheJson(_0x1809f7),'write':_0x3d56cf=>writeCacheJson(_0x1809f7,_0x3d56cf),'clear':()=>clearCache(_0x1809f7),'exists':()=>cacheExists(_0x1809f7),'path':()=>getGlobalCachePath(_0x1809f7)};}export function createGlobalTextCache(_0x4ad410,_0x1308b0){return registerGlobalCacheKey(_0x4ad410,_0x1308b0),{'read':()=>readCacheText(_0x4ad410)?.['trim']()||undefined,'write':_0xdb4226=>writeCacheText(_0x4ad410,_0xdb4226),'clear':()=>clearCache(_0x4ad410),'exists':()=>cacheExists(_0x4ad410),'path':()=>getGlobalCachePath(_0x4ad410)};}export function createProfileCache(_0x58652b,_0x38e353){const _0x57009b=_0x264887=>{const _0x351c4e=a241_0x5535,_0x2bbf0c=_0x264887||_0x351c4e(0x138);return _0x58652b[_0x351c4e(0x12f)](_0x351c4e(0x13b),_0x2bbf0c);};return{'read':_0x3a9644=>{const _0x4158c6=_0x57009b(_0x3a9644);return registerGlobalCacheKey(_0x4158c6,_0x38e353),readCacheJson(_0x4158c6);},'write':(_0x4a9199,_0x890364)=>{const _0x27c8f0=_0x57009b(_0x4a9199);registerGlobalCacheKey(_0x27c8f0,_0x38e353),writeCacheJson(_0x27c8f0,_0x890364);},'clear':_0x2447b5=>{const _0x344584=_0x57009b(_0x2447b5);clearCache(_0x344584);},'exists':_0x50ac22=>{const _0x5b46dc=_0x57009b(_0x50ac22);return cacheExists(_0x5b46dc);},'path':_0x26e95d=>{const _0x432e99=_0x57009b(_0x26e95d);return getGlobalCachePath(_0x432e99);}};}export function createOptionalProfileCache(_0x2533fd,_0x58001d,_0x2dc0b6={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2dc0b6,_0x3dad14=_0x3c0442=>{return _0x3c0442?''+_0x2533fd+profileSeparator+_0x3c0442+suffix:''+_0x2533fd+suffix;};return{'read':_0xf7605e=>{const _0x4b3d3f=_0x3dad14(_0xf7605e);return registerGlobalCacheKey(_0x4b3d3f,_0x58001d),readCacheJson(_0x4b3d3f);},'write':(_0x170ce6,_0x4d61e9)=>{const _0x548fa0=_0x3dad14(_0x4d61e9);registerGlobalCacheKey(_0x548fa0,_0x58001d),writeCacheJson(_0x548fa0,_0x170ce6);},'clear':_0x31e86b=>{const _0x4c947d=_0x3dad14(_0x31e86b);clearCache(_0x4c947d);},'exists':_0x7cc0e4=>{const _0x5b355a=_0x3dad14(_0x7cc0e4);return cacheExists(_0x5b355a);},'path':_0xb7a2a2=>{const _0x3bd8fa=_0x3dad14(_0xb7a2a2);return getGlobalCachePath(_0x3bd8fa);}};}function a241_0x5535(_0x2d67e6,_0x5b013c){_0x2d67e6=_0x2d67e6-0x12d;const _0x43ee93=a241_0x43ee();let _0x5535ef=_0x43ee93[_0x2d67e6];return _0x5535ef;}export function clearGlobalRegistry(){const _0x4c24ef=a241_0x5535;registry[_0x4c24ef(0x141)]();}
1
+ (function(_0x57989b,_0x6026db){const _0x46292f=a242_0x3026,_0x3e1703=_0x57989b();while(!![]){try{const _0x25635d=-parseInt(_0x46292f(0x103))/0x1+-parseInt(_0x46292f(0x112))/0x2+parseInt(_0x46292f(0x100))/0x3*(parseInt(_0x46292f(0x107))/0x4)+parseInt(_0x46292f(0x105))/0x5*(parseInt(_0x46292f(0x101))/0x6)+-parseInt(_0x46292f(0x111))/0x7*(parseInt(_0x46292f(0x10e))/0x8)+-parseInt(_0x46292f(0x108))/0x9+-parseInt(_0x46292f(0x109))/0xa*(-parseInt(_0x46292f(0xff))/0xb);if(_0x25635d===_0x6026db)break;else _0x3e1703['push'](_0x3e1703['shift']());}catch(_0xc7f5a8){_0x3e1703['push'](_0x3e1703['shift']());}}}(a242_0x54c9,0xd30ab));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x5059c9=a242_0x3026;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5059c9(0x10a),_0x5059c9(0x106));}const registry=new Map();export function registerGlobalCacheKey(_0x3d0f1d,_0x2585e8){const _0x46184b=a242_0x3026,_0x539667=registry[_0x46184b(0x10d)](_0x3d0f1d);if(_0x539667&&_0x539667!==_0x2585e8)throw new Error(_0x46184b(0x114)+_0x3d0f1d+'\x22\x20already\x20registered\x20by\x20\x22'+_0x539667+_0x46184b(0x110)+_0x2585e8+'\x22');registry['set'](_0x3d0f1d,_0x2585e8);}export function getGlobalCachePath(_0x28761e){return join(getGlobalCacheDir(),_0x28761e);}function a242_0x3026(_0x22d7df,_0x3ca241){_0x22d7df=_0x22d7df-0xff;const _0x54c99f=a242_0x54c9();let _0x3026d3=_0x54c99f[_0x22d7df];return _0x3026d3;}function ensureGlobalCacheDir(){const _0x776875=getGlobalCacheDir();!existsSync(_0x776875)&&mkdirSync(_0x776875,{'recursive':!![]});}function a242_0x54c9(){const _0x1be454=['\x22,\x20cannot\x20register\x20for\x20\x22','133hSBaau','2148718Yxqfff','utf-8','Global\x20cache\x20key\x20\x22','121033Fbjtre','1266JNGMXG','599106yzMlov','trim','815377cCnaAH','replace','85ggNjiP','tdx','7404tVPrPD','9831357vPOBOz','2680bJHqyX','.cache','clear','default','get','665624eAxiuL','{profile}'];a242_0x54c9=function(){return _0x1be454;};return a242_0x54c9();}function readCacheJson(_0x2de6fd){const _0x3a1774=a242_0x3026,_0x582257=getGlobalCachePath(_0x2de6fd);if(!existsSync(_0x582257))return undefined;try{const _0x2868e0=readFileSync(_0x582257,_0x3a1774(0x113));return JSON['parse'](_0x2868e0);}catch{return undefined;}}function writeCacheJson(_0x2213e2,_0xc9ef){const _0x46f12e=a242_0x3026;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2213e2),JSON['stringify'](_0xc9ef,null,0x2),_0x46f12e(0x113));}function readCacheText(_0x38a017){const _0x2e5b6b=a242_0x3026,_0x35c909=getGlobalCachePath(_0x38a017);if(!existsSync(_0x35c909))return undefined;try{return readFileSync(_0x35c909,_0x2e5b6b(0x113));}catch{return undefined;}}function writeCacheText(_0x21b0c0,_0x400a60){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x21b0c0),_0x400a60,'utf-8');}function clearCache(_0x500b28){const _0x2e9fb3=getGlobalCachePath(_0x500b28);if(existsSync(_0x2e9fb3))try{unlinkSync(_0x2e9fb3);}catch{}}function cacheExists(_0x2931f5){return existsSync(getGlobalCachePath(_0x2931f5));}export function createGlobalCache(_0x2c1276,_0x3dc26a){return registerGlobalCacheKey(_0x2c1276,_0x3dc26a),{'read':()=>readCacheJson(_0x2c1276),'write':_0x5acace=>writeCacheJson(_0x2c1276,_0x5acace),'clear':()=>clearCache(_0x2c1276),'exists':()=>cacheExists(_0x2c1276),'path':()=>getGlobalCachePath(_0x2c1276)};}export function createGlobalTextCache(_0x434215,_0x5a5c22){const _0x1f0da6=a242_0x3026;return registerGlobalCacheKey(_0x434215,_0x5a5c22),{'read':()=>readCacheText(_0x434215)?.[_0x1f0da6(0x102)]()||undefined,'write':_0x33ea5b=>writeCacheText(_0x434215,_0x33ea5b),'clear':()=>clearCache(_0x434215),'exists':()=>cacheExists(_0x434215),'path':()=>getGlobalCachePath(_0x434215)};}export function createProfileCache(_0x34f37e,_0x429420){const _0x3f0d9f=_0x2faaaf=>{const _0x2d764b=a242_0x3026,_0x29da90=_0x2faaaf||_0x2d764b(0x10c);return _0x34f37e[_0x2d764b(0x104)](_0x2d764b(0x10f),_0x29da90);};return{'read':_0x42cf1e=>{const _0x385bd3=_0x3f0d9f(_0x42cf1e);return registerGlobalCacheKey(_0x385bd3,_0x429420),readCacheJson(_0x385bd3);},'write':(_0x23ccd3,_0x5639f3)=>{const _0x46ddc4=_0x3f0d9f(_0x23ccd3);registerGlobalCacheKey(_0x46ddc4,_0x429420),writeCacheJson(_0x46ddc4,_0x5639f3);},'clear':_0x3c5155=>{const _0x2d88e1=_0x3f0d9f(_0x3c5155);clearCache(_0x2d88e1);},'exists':_0x27c796=>{const _0x35a9c8=_0x3f0d9f(_0x27c796);return cacheExists(_0x35a9c8);},'path':_0x415431=>{const _0x34e2dc=_0x3f0d9f(_0x415431);return getGlobalCachePath(_0x34e2dc);}};}export function createOptionalProfileCache(_0x4451b4,_0x4d2a3c,_0x186f9e={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x186f9e,_0x5edd60=_0x3c740a=>{return _0x3c740a?''+_0x4451b4+profileSeparator+_0x3c740a+suffix:''+_0x4451b4+suffix;};return{'read':_0x45ddac=>{const _0x4d8e95=_0x5edd60(_0x45ddac);return registerGlobalCacheKey(_0x4d8e95,_0x4d2a3c),readCacheJson(_0x4d8e95);},'write':(_0x3368fd,_0x49aa87)=>{const _0x1fc427=_0x5edd60(_0x49aa87);registerGlobalCacheKey(_0x1fc427,_0x4d2a3c),writeCacheJson(_0x1fc427,_0x3368fd);},'clear':_0x3f5a34=>{const _0x56752c=_0x5edd60(_0x3f5a34);clearCache(_0x56752c);},'exists':_0x18b7b5=>{const _0x20d3c6=_0x5edd60(_0x18b7b5);return cacheExists(_0x20d3c6);},'path':_0x1a08a4=>{const _0x491b47=_0x5edd60(_0x1a08a4);return getGlobalCachePath(_0x491b47);}};}export function clearGlobalRegistry(){const _0x5d06f9=a242_0x3026;registry[_0x5d06f9(0x10b)]();}
@@ -1 +1 @@
1
- (function(_0x4a3228,_0x37e48e){const _0x3ae5e6=a242_0xb538,_0x312a85=_0x4a3228();while(!![]){try{const _0x5ad70a=-parseInt(_0x3ae5e6(0x1ab))/0x1+parseInt(_0x3ae5e6(0x1ae))/0x2+-parseInt(_0x3ae5e6(0x1b8))/0x3+-parseInt(_0x3ae5e6(0x1ac))/0x4+-parseInt(_0x3ae5e6(0x1af))/0x5+parseInt(_0x3ae5e6(0x1b4))/0x6+parseInt(_0x3ae5e6(0x1a7))/0x7;if(_0x5ad70a===_0x37e48e)break;else _0x312a85['push'](_0x312a85['shift']());}catch(_0x5ac478){_0x312a85['push'](_0x312a85['shift']());}}}(a242_0x34bb,0x658f3));function a242_0x34bb(){const _0x45999f=['EACCES','Invalid\x20JSON\x20in\x20file\x20\x27','1281780kuenjV','PERMISSION_DENIED','NOT_FOUND','parse','1990560mNiUCD','message','INVALID_ARGUMENT','11099102wewJfz','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','utf-8','code','186383nrhASC','1280540kGSGUU','Invalid\x20JSON\x20string:\x20','295346rHSFtJ','1804320aidamO','ENOENT','\x27:\x20'];a242_0x34bb=function(){return _0x45999f;};return a242_0x34bb();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a242_0xb538(_0x24d1a8,_0xd36b2c){_0x24d1a8=_0x24d1a8-0x1a5;const _0x34bb47=a242_0x34bb();let _0xb538da=_0x34bb47[_0x24d1a8];return _0xb538da;}export async function loadJSON(_0x549c08,_0x3ef1f1){const _0xd861d8=a242_0xb538;try{if(_0x3ef1f1){const _0x292303=await readFile(_0x549c08,_0xd861d8(0x1a9));try{return JSON[_0xd861d8(0x1b7)](_0x292303);}catch(_0x532c90){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xd861d8(0x1b3)+_0x549c08+_0xd861d8(0x1b1)+(_0x532c90 instanceof Error?_0x532c90[_0xd861d8(0x1a5)]:String(_0x532c90)));}}else try{return JSON[_0xd861d8(0x1b7)](_0x549c08);}catch(_0x4f8429){throw new SDKError(ErrorCode[_0xd861d8(0x1a6)],_0xd861d8(0x1ad)+(_0x4f8429 instanceof Error?_0x4f8429[_0xd861d8(0x1a5)]:String(_0x4f8429)));}}catch(_0x3a2721){if(_0x3a2721 instanceof SDKError)throw _0x3a2721;if(_0x3a2721 instanceof Error&&_0xd861d8(0x1aa)in _0x3a2721){const _0x1b5773=_0x3a2721;if(_0x1b5773[_0xd861d8(0x1aa)]===_0xd861d8(0x1b0))throw new SDKError(ErrorCode[_0xd861d8(0x1b6)],'File\x20not\x20found:\x20'+_0x549c08);else{if(_0x1b5773[_0xd861d8(0x1aa)]===_0xd861d8(0x1b2))throw new SDKError(ErrorCode[_0xd861d8(0x1b5)],'Permission\x20denied\x20reading\x20file:\x20'+_0x549c08);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3a2721 instanceof Error?_0x3a2721['message']:String(_0x3a2721)));}}export async function loadJSONFromOptions(_0x7002f1,_0x322c82){const _0x395477=a242_0xb538;if(_0x7002f1&&_0x322c82)throw new SDKError(ErrorCode[_0x395477(0x1a6)],_0x395477(0x1a8));if(_0x7002f1)return await loadJSON(_0x7002f1,![]);if(_0x322c82)return await loadJSON(_0x322c82,!![]);return undefined;}
1
+ function a243_0x23ee(){const _0x60f1ff=['code','34283OaXDOW','INVALID_ARGUMENT','2893jBXKaZ','772dETrJh','267348lLSqvM','650EJNNtC','6wuspof','message','1715570wjWlwe','EACCES','1398355wVbQZM','35073xUayaS','\x27:\x20','parse','NOT_FOUND','utf-8','856WjCHsS','ENOENT','2zvBMZi','Invalid\x20JSON\x20in\x20file\x20\x27','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2169CQMMry','11090BjoNRu','INTERNAL','Failed\x20to\x20load\x20JSON:\x20'];a243_0x23ee=function(){return _0x60f1ff;};return a243_0x23ee();}(function(_0x578eb0,_0x51a225){const _0x29f31a=a243_0x17b5,_0x502e37=_0x578eb0();while(!![]){try{const _0xa7ee7a=-parseInt(_0x29f31a(0x118))/0x1*(parseInt(_0x29f31a(0x12a))/0x2)+parseInt(_0x29f31a(0x12d))/0x3*(-parseInt(_0x29f31a(0x11b))/0x4)+-parseInt(_0x29f31a(0x120))/0x5*(parseInt(_0x29f31a(0x11e))/0x6)+-parseInt(_0x29f31a(0x122))/0x7+parseInt(_0x29f31a(0x128))/0x8*(-parseInt(_0x29f31a(0x123))/0x9)+-parseInt(_0x29f31a(0x114))/0xa*(-parseInt(_0x29f31a(0x11a))/0xb)+parseInt(_0x29f31a(0x11c))/0xc*(parseInt(_0x29f31a(0x11d))/0xd);if(_0xa7ee7a===_0x51a225)break;else _0x502e37['push'](_0x502e37['shift']());}catch(_0x492b33){_0x502e37['push'](_0x502e37['shift']());}}}(a243_0x23ee,0x42641));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a243_0x17b5(_0x33e874,_0x540294){_0x33e874=_0x33e874-0x114;const _0x23eef8=a243_0x23ee();let _0x17b59c=_0x23eef8[_0x33e874];return _0x17b59c;}export async function loadJSON(_0x59415a,_0x2e7cbe){const _0x541bc0=a243_0x17b5;try{if(_0x2e7cbe){const _0x2a3b17=await readFile(_0x59415a,_0x541bc0(0x127));try{return JSON['parse'](_0x2a3b17);}catch(_0xa484dd){throw new SDKError(ErrorCode[_0x541bc0(0x119)],_0x541bc0(0x12b)+_0x59415a+_0x541bc0(0x124)+(_0xa484dd instanceof Error?_0xa484dd[_0x541bc0(0x11f)]:String(_0xa484dd)));}}else try{return JSON[_0x541bc0(0x125)](_0x59415a);}catch(_0x14e79b){throw new SDKError(ErrorCode[_0x541bc0(0x119)],'Invalid\x20JSON\x20string:\x20'+(_0x14e79b instanceof Error?_0x14e79b[_0x541bc0(0x11f)]:String(_0x14e79b)));}}catch(_0x4e97ac){if(_0x4e97ac instanceof SDKError)throw _0x4e97ac;if(_0x4e97ac instanceof Error&&_0x541bc0(0x117)in _0x4e97ac){const _0x512e4a=_0x4e97ac;if(_0x512e4a[_0x541bc0(0x117)]===_0x541bc0(0x129))throw new SDKError(ErrorCode[_0x541bc0(0x126)],'File\x20not\x20found:\x20'+_0x59415a);else{if(_0x512e4a[_0x541bc0(0x117)]===_0x541bc0(0x121))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file:\x20'+_0x59415a);}}throw new SDKError(ErrorCode[_0x541bc0(0x115)],_0x541bc0(0x116)+(_0x4e97ac instanceof Error?_0x4e97ac[_0x541bc0(0x11f)]:String(_0x4e97ac)));}}export async function loadJSONFromOptions(_0x3ec0fb,_0x41086b){const _0x1b9418=a243_0x17b5;if(_0x3ec0fb&&_0x41086b)throw new SDKError(ErrorCode[_0x1b9418(0x119)],_0x1b9418(0x12c));if(_0x3ec0fb)return await loadJSON(_0x3ec0fb,![]);if(_0x41086b)return await loadJSON(_0x41086b,!![]);return undefined;}
@@ -1 +1 @@
1
- const a243_0x1233ee=a243_0x3fa5;(function(_0x1671f9,_0x2d46c1){const _0x2cb9e5=a243_0x3fa5,_0x452f07=_0x1671f9();while(!![]){try{const _0x30f850=-parseInt(_0x2cb9e5(0x1b7))/0x1+-parseInt(_0x2cb9e5(0x1c6))/0x2*(-parseInt(_0x2cb9e5(0x1c1))/0x3)+parseInt(_0x2cb9e5(0x1cb))/0x4*(parseInt(_0x2cb9e5(0x1bb))/0x5)+parseInt(_0x2cb9e5(0x1bf))/0x6*(-parseInt(_0x2cb9e5(0x1b8))/0x7)+-parseInt(_0x2cb9e5(0x1be))/0x8*(parseInt(_0x2cb9e5(0x1b9))/0x9)+parseInt(_0x2cb9e5(0x1bd))/0xa*(parseInt(_0x2cb9e5(0x1c8))/0xb)+parseInt(_0x2cb9e5(0x1c0))/0xc;if(_0x30f850===_0x2d46c1)break;else _0x452f07['push'](_0x452f07['shift']());}catch(_0x13ae2c){_0x452f07['push'](_0x452f07['shift']());}}}(a243_0x1529,0xa983a));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a243_0x1233ee(0x1c9),registry=new Map();export function registerCacheKey(_0x2f5853,_0x1efe67){const _0x2897e5=a243_0x1233ee,_0x82223f=registry[_0x2897e5(0x1cd)](_0x2f5853);if(_0x82223f&&_0x82223f!==_0x1efe67)throw new Error('Cache\x20key\x20\x22'+_0x2f5853+_0x2897e5(0x1c5)+_0x82223f+_0x2897e5(0x1ba)+_0x1efe67+'\x22');registry[_0x2897e5(0x1c7)](_0x2f5853,_0x1efe67);}export function getCacheDir(){const _0x51d2e5=a243_0x1233ee,_0x4079d3=process[_0x51d2e5(0x1ca)](),_0x548aaf=_0x4079d3===parse(_0x4079d3)[_0x51d2e5(0x1c3)]?homedir():_0x4079d3;return join(_0x548aaf,LOCAL_CACHE_DIR);}export function getCachePath(_0x49ffc8){return join(getCacheDir(),_0x49ffc8);}function ensureCacheDir(){const _0x41b57f=getCacheDir();!existsSync(_0x41b57f)&&mkdirSync(_0x41b57f,{'recursive':!![]});}function readCacheJson(_0x56e5de){const _0xc35d86=a243_0x1233ee,_0x277362=getCachePath(_0x56e5de);if(!existsSync(_0x277362))return undefined;try{const _0x123714=readFileSync(_0x277362,_0xc35d86(0x1bc));return JSON[_0xc35d86(0x1cc)](_0x123714);}catch{return undefined;}}function writeCacheJson(_0x3de832,_0x37dac6){const _0x56f285=a243_0x1233ee;ensureCacheDir(),writeFileSync(getCachePath(_0x3de832),JSON[_0x56f285(0x1c2)](_0x37dac6,null,0x2),_0x56f285(0x1bc));}function readCacheText(_0x572075){const _0x4c33b1=a243_0x1233ee,_0x28c2e0=getCachePath(_0x572075);if(!existsSync(_0x28c2e0))return undefined;try{return readFileSync(_0x28c2e0,_0x4c33b1(0x1bc));}catch{return undefined;}}function writeCacheText(_0xb9ccc1,_0x3e257e){const _0x5ccfbe=a243_0x1233ee;ensureCacheDir(),writeFileSync(getCachePath(_0xb9ccc1),_0x3e257e,_0x5ccfbe(0x1bc));}function clearCache(_0x589d36){const _0x55bab6=getCachePath(_0x589d36);if(existsSync(_0x55bab6))try{unlinkSync(_0x55bab6);}catch{}}function cacheExists(_0x2dc128){return existsSync(getCachePath(_0x2dc128));}export function createCache(_0x1572b3,_0x5b30b7){return registerCacheKey(_0x1572b3,_0x5b30b7),{'read':()=>readCacheJson(_0x1572b3),'write':_0x1f6a43=>writeCacheJson(_0x1572b3,_0x1f6a43),'clear':()=>clearCache(_0x1572b3),'exists':()=>cacheExists(_0x1572b3),'path':()=>getCachePath(_0x1572b3)};}function a243_0x3fa5(_0x230ecb,_0x52e01b){_0x230ecb=_0x230ecb-0x1b7;const _0x1529ea=a243_0x1529();let _0x3fa5d5=_0x1529ea[_0x230ecb];return _0x3fa5d5;}export function createTextCache(_0x122072,_0x3a6b5e){return registerCacheKey(_0x122072,_0x3a6b5e),{'read':()=>readCacheText(_0x122072)?.['trim']()||undefined,'write':_0x5de716=>writeCacheText(_0x122072,_0x5de716),'clear':()=>clearCache(_0x122072),'exists':()=>cacheExists(_0x122072),'path':()=>getCachePath(_0x122072)};}export function clearRegistry(){const _0x22f023=a243_0x1233ee;registry[_0x22f023(0x1c4)]();}function a243_0x1529(){const _0x15e789=['120IrfagU','128988fzqeUF','14617764HLmrup','3378TDKsEV','stringify','root','clear','\x22\x20already\x20registered\x20by\x20\x22','1072LCsffm','set','781mUVFVl','.cache/tdx','cwd','12yUuGpc','parse','get','1318566pfrXNo','77ZiZiHy','82305NoMfdQ','\x22,\x20cannot\x20register\x20for\x20\x22','845120uvwkWL','utf-8','8140aPtuEK'];a243_0x1529=function(){return _0x15e789;};return a243_0x1529();}
1
+ const a244_0x46841d=a244_0x3d4f;(function(_0x570fa1,_0x4bb53d){const _0x4be6f0=a244_0x3d4f,_0x4ca912=_0x570fa1();while(!![]){try{const _0x333719=parseInt(_0x4be6f0(0x82))/0x1*(parseInt(_0x4be6f0(0x80))/0x2)+-parseInt(_0x4be6f0(0x73))/0x3+-parseInt(_0x4be6f0(0x7e))/0x4*(parseInt(_0x4be6f0(0x76))/0x5)+-parseInt(_0x4be6f0(0x86))/0x6*(-parseInt(_0x4be6f0(0x7d))/0x7)+parseInt(_0x4be6f0(0x7f))/0x8*(parseInt(_0x4be6f0(0x7c))/0x9)+-parseInt(_0x4be6f0(0x85))/0xa+parseInt(_0x4be6f0(0x84))/0xb;if(_0x333719===_0x4bb53d)break;else _0x4ca912['push'](_0x4ca912['shift']());}catch(_0x42ecae){_0x4ca912['push'](_0x4ca912['shift']());}}}(a244_0x326e,0xc04d4));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a244_0x3d4f(_0x479dc3,_0x2b7042){_0x479dc3=_0x479dc3-0x73;const _0x326ed4=a244_0x326e();let _0x3d4f0e=_0x326ed4[_0x479dc3];return _0x3d4f0e;}import{homedir}from'os';const LOCAL_CACHE_DIR=a244_0x46841d(0x78),registry=new Map();export function registerCacheKey(_0x5e9d95,_0x48db95){const _0x315193=a244_0x46841d,_0x25aafd=registry[_0x315193(0x77)](_0x5e9d95);if(_0x25aafd&&_0x25aafd!==_0x48db95)throw new Error(_0x315193(0x89)+_0x5e9d95+_0x315193(0x83)+_0x25aafd+_0x315193(0x88)+_0x48db95+'\x22');registry[_0x315193(0x7a)](_0x5e9d95,_0x48db95);}function a244_0x326e(){const _0x1077f0=['11367340fyBsxi','389622vUPKWc','clear','\x22,\x20cannot\x20register\x20for\x20\x22','Cache\x20key\x20\x22','root','4621638OINpUn','trim','stringify','445dwyqtQ','get','.cache/tdx','utf-8','set','cwd','297HaZFEf','7uBBbDq','33964acHsWd','248072fJMEdT','1520562WYpRmr','parse','1hTpAAi','\x22\x20already\x20registered\x20by\x20\x22','26093452DaiGzz'];a244_0x326e=function(){return _0x1077f0;};return a244_0x326e();}export function getCacheDir(){const _0x1ee21a=a244_0x46841d,_0xbdb870=process[_0x1ee21a(0x7b)](),_0x367008=_0xbdb870===parse(_0xbdb870)[_0x1ee21a(0x8a)]?homedir():_0xbdb870;return join(_0x367008,LOCAL_CACHE_DIR);}export function getCachePath(_0x27532b){return join(getCacheDir(),_0x27532b);}function ensureCacheDir(){const _0x497893=getCacheDir();!existsSync(_0x497893)&&mkdirSync(_0x497893,{'recursive':!![]});}function readCacheJson(_0x1df64b){const _0x547c4e=a244_0x46841d,_0x413885=getCachePath(_0x1df64b);if(!existsSync(_0x413885))return undefined;try{const _0x209752=readFileSync(_0x413885,_0x547c4e(0x79));return JSON[_0x547c4e(0x81)](_0x209752);}catch{return undefined;}}function writeCacheJson(_0x38f768,_0x268d39){const _0x154ad3=a244_0x46841d;ensureCacheDir(),writeFileSync(getCachePath(_0x38f768),JSON[_0x154ad3(0x75)](_0x268d39,null,0x2),_0x154ad3(0x79));}function readCacheText(_0x48f4ab){const _0xae620e=a244_0x46841d,_0x292a48=getCachePath(_0x48f4ab);if(!existsSync(_0x292a48))return undefined;try{return readFileSync(_0x292a48,_0xae620e(0x79));}catch{return undefined;}}function writeCacheText(_0x1a4065,_0x48275e){const _0xb66d3f=a244_0x46841d;ensureCacheDir(),writeFileSync(getCachePath(_0x1a4065),_0x48275e,_0xb66d3f(0x79));}function clearCache(_0x5b49fe){const _0x46e565=getCachePath(_0x5b49fe);if(existsSync(_0x46e565))try{unlinkSync(_0x46e565);}catch{}}function cacheExists(_0x58c03a){return existsSync(getCachePath(_0x58c03a));}export function createCache(_0x3369a7,_0x8e349b){return registerCacheKey(_0x3369a7,_0x8e349b),{'read':()=>readCacheJson(_0x3369a7),'write':_0x1d1d6f=>writeCacheJson(_0x3369a7,_0x1d1d6f),'clear':()=>clearCache(_0x3369a7),'exists':()=>cacheExists(_0x3369a7),'path':()=>getCachePath(_0x3369a7)};}export function createTextCache(_0x5616b6,_0x51021b){const _0x469368=a244_0x46841d;return registerCacheKey(_0x5616b6,_0x51021b),{'read':()=>readCacheText(_0x5616b6)?.[_0x469368(0x74)]()||undefined,'write':_0x137f1a=>writeCacheText(_0x5616b6,_0x137f1a),'clear':()=>clearCache(_0x5616b6),'exists':()=>cacheExists(_0x5616b6),'path':()=>getCachePath(_0x5616b6)};}export function clearRegistry(){const _0x194130=a244_0x46841d;registry[_0x194130(0x87)]();}