@treasuredata/tdx 2026.8.2 → 2026.8.4

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 (291) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-campaign-pull-command.js +1 -1
  27. package/dist/commands/engage-campaign-push-command.js +1 -1
  28. package/dist/commands/engage-campaign-validate-command.js +1 -1
  29. package/dist/commands/engage-command.js +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.js +1 -1
  34. package/dist/commands/journey-command.js +1 -1
  35. package/dist/commands/journey-validate-command.js +1 -1
  36. package/dist/commands/llm-command.js +1 -1
  37. package/dist/commands/mcp-command.js +1 -1
  38. package/dist/commands/p13n-command.d.ts +11 -0
  39. package/dist/commands/p13n-command.d.ts.map +1 -0
  40. package/dist/commands/p13n-command.js +1 -0
  41. package/dist/commands/p13n-command.js.map +1 -0
  42. package/dist/commands/parent-segment-command.js +1 -1
  43. package/dist/commands/policy-command.js +1 -1
  44. package/dist/commands/profile-command.js +1 -1
  45. package/dist/commands/profiles-command.js +1 -1
  46. package/dist/commands/query-command.js +1 -1
  47. package/dist/commands/schedule-command.js +1 -1
  48. package/dist/commands/segment-command.js +1 -1
  49. package/dist/commands/segment-create-command.js +1 -1
  50. package/dist/commands/segment-fields-command.js +1 -1
  51. package/dist/commands/segment-move-command.js +1 -1
  52. package/dist/commands/segment-pull-command.js +1 -1
  53. package/dist/commands/segment-push-command.js +1 -1
  54. package/dist/commands/segment-update-command.js +1 -1
  55. package/dist/commands/segment-use-command.js +1 -1
  56. package/dist/commands/segment-validate-command.js +1 -1
  57. package/dist/commands/segments.js +1 -1
  58. package/dist/commands/show.js +1 -1
  59. package/dist/commands/status-command.js +1 -1
  60. package/dist/commands/table-deleted.js +1 -1
  61. package/dist/commands/tables.js +1 -1
  62. package/dist/commands/unset-command.js +1 -1
  63. package/dist/commands/upgrade-command.js +1 -1
  64. package/dist/commands/use-command.js +1 -1
  65. package/dist/commands/user-command.js +1 -1
  66. package/dist/commands/work-command.js +1 -1
  67. package/dist/commands/workflow-command.js +1 -1
  68. package/dist/core/auth.js +1 -1
  69. package/dist/core/command-output.js +1 -1
  70. package/dist/core/config.js +1 -1
  71. package/dist/core/connection-cache.js +1 -1
  72. package/dist/core/constants.js +1 -1
  73. package/dist/core/credential-cache.js +1 -1
  74. package/dist/core/global-context.d.ts.map +1 -1
  75. package/dist/core/global-context.js +1 -1
  76. package/dist/core/global-context.js.map +1 -1
  77. package/dist/core/keychain.js +1 -1
  78. package/dist/core/oauth-keychain.js +1 -1
  79. package/dist/core/oauth.d.ts +9 -1
  80. package/dist/core/oauth.d.ts.map +1 -1
  81. package/dist/core/oauth.js +1 -1
  82. package/dist/core/oauth.js.map +1 -1
  83. package/dist/core/profile.js +1 -1
  84. package/dist/core/project-config.js +1 -1
  85. package/dist/core/session.js +1 -1
  86. package/dist/core/site-mismatch.js +1 -1
  87. package/dist/core/user-cache.js +1 -1
  88. package/dist/core/version.js +1 -1
  89. package/dist/index.js +1 -1
  90. package/dist/mcp/server.js +1 -1
  91. package/dist/mcp/tools/index.js +1 -1
  92. package/dist/mcp/tools/tdx-run.js +1 -1
  93. package/dist/mcp/tools/tdx-search.js +1 -1
  94. package/dist/mcp/tools/work-create-item.js +1 -1
  95. package/dist/mcp/utils.js +1 -1
  96. package/dist/proxy/claude-usage-tracker.js +1 -1
  97. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  98. package/dist/proxy/passthrough-server.js +1 -1
  99. package/dist/proxy/passthrough-server.js.map +1 -1
  100. package/dist/proxy/sse-usage-parser.js +1 -1
  101. package/dist/sdk/agent/agent-config.js +1 -1
  102. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  103. package/dist/sdk/agent/agent-yaml.js +1 -1
  104. package/dist/sdk/agent/test/evaluator.js +1 -1
  105. package/dist/sdk/agent/test/executor.js +1 -1
  106. package/dist/sdk/agent/test/index.js +1 -1
  107. package/dist/sdk/agent/test/output.js +1 -1
  108. package/dist/sdk/agent/test/parser.js +1 -1
  109. package/dist/sdk/agent/tool-target-registry.js +1 -1
  110. package/dist/sdk/api.js +1 -1
  111. package/dist/sdk/auth-token.d.ts +42 -6
  112. package/dist/sdk/auth-token.d.ts.map +1 -1
  113. package/dist/sdk/auth-token.js +1 -1
  114. package/dist/sdk/auth-token.js.map +1 -1
  115. package/dist/sdk/cas/cas-api-client.d.ts +9 -3
  116. package/dist/sdk/cas/cas-api-client.d.ts.map +1 -1
  117. package/dist/sdk/cas/cas-api-client.js +1 -1
  118. package/dist/sdk/cas/cas-api-client.js.map +1 -1
  119. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  120. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  121. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  122. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  123. package/dist/sdk/cas/index.d.ts +10 -0
  124. package/dist/sdk/cas/index.d.ts.map +1 -1
  125. package/dist/sdk/cas/index.js +1 -1
  126. package/dist/sdk/cas/index.js.map +1 -1
  127. package/dist/sdk/cas/pull-workflow.js +1 -1
  128. package/dist/sdk/cas/push-workflow.js +1 -1
  129. package/dist/sdk/cas/validate-files.js +1 -1
  130. package/dist/sdk/client/cdp-api-client.js +1 -1
  131. package/dist/sdk/client/delivery-api-client.js +1 -1
  132. package/dist/sdk/client/endpoints.d.ts +6 -0
  133. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  134. package/dist/sdk/client/endpoints.js +1 -1
  135. package/dist/sdk/client/endpoints.js.map +1 -1
  136. package/dist/sdk/client/engage-api-client.js +1 -1
  137. package/dist/sdk/client/http-client.js +1 -1
  138. package/dist/sdk/client/llm-api-client.js +1 -1
  139. package/dist/sdk/client/oauth-refresh.d.ts +11 -2
  140. package/dist/sdk/client/oauth-refresh.d.ts.map +1 -1
  141. package/dist/sdk/client/oauth-refresh.js +1 -1
  142. package/dist/sdk/client/oauth-refresh.js.map +1 -1
  143. package/dist/sdk/client/p13n-studio-api-client.d.ts +19 -0
  144. package/dist/sdk/client/p13n-studio-api-client.d.ts.map +1 -0
  145. package/dist/sdk/client/p13n-studio-api-client.js +1 -0
  146. package/dist/sdk/client/p13n-studio-api-client.js.map +1 -0
  147. package/dist/sdk/client/rate-limiter.js +1 -1
  148. package/dist/sdk/client/td-api-client.js +1 -1
  149. package/dist/sdk/client/trino-api-client.js +1 -1
  150. package/dist/sdk/client/workflow-client.js +1 -1
  151. package/dist/sdk/connection-validator.js +1 -1
  152. package/dist/sdk/connection.js +1 -1
  153. package/dist/sdk/delivery.js +1 -1
  154. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  155. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  156. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  157. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  158. package/dist/sdk/engage/campaign-pull.js +1 -1
  159. package/dist/sdk/engage/campaign-push.js +1 -1
  160. package/dist/sdk/engage/campaign-validator.js +1 -1
  161. package/dist/sdk/engage/campaign-yaml.js +1 -1
  162. package/dist/sdk/engage/template-pull.js +1 -1
  163. package/dist/sdk/engage/template-push.js +1 -1
  164. package/dist/sdk/engage/template-validator.js +1 -1
  165. package/dist/sdk/engage/template-yaml.js +1 -1
  166. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  167. package/dist/sdk/engage/types/campaign-def.js +1 -1
  168. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  169. package/dist/sdk/engage/types/template-schema.js +1 -1
  170. package/dist/sdk/engage.js +1 -1
  171. package/dist/sdk/errors.js +1 -1
  172. package/dist/sdk/index.d.ts +6 -0
  173. package/dist/sdk/index.d.ts.map +1 -1
  174. package/dist/sdk/index.js +1 -1
  175. package/dist/sdk/index.js.map +1 -1
  176. package/dist/sdk/io/index.js +1 -1
  177. package/dist/sdk/io/node-filesystem.js +1 -1
  178. package/dist/sdk/job.js +1 -1
  179. package/dist/sdk/journey.js +1 -1
  180. package/dist/sdk/llm/chat-cache.js +1 -1
  181. package/dist/sdk/llm/index.js +1 -1
  182. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  183. package/dist/sdk/llm/model-factors.js +1 -1
  184. package/dist/sdk/llm/user-settings.js +1 -1
  185. package/dist/sdk/p13n-studio.d.ts +13 -0
  186. package/dist/sdk/p13n-studio.d.ts.map +1 -0
  187. package/dist/sdk/p13n-studio.js +1 -0
  188. package/dist/sdk/p13n-studio.js.map +1 -0
  189. package/dist/sdk/personalization.js +1 -1
  190. package/dist/sdk/policy.js +1 -1
  191. package/dist/sdk/query/deleted-table-validation.js +1 -1
  192. package/dist/sdk/query/index.js +1 -1
  193. package/dist/sdk/query/sql-parser.js +1 -1
  194. package/dist/sdk/realtime.js +1 -1
  195. package/dist/sdk/schedule.js +1 -1
  196. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  197. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  198. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  199. package/dist/sdk/segment/fields-display.js +1 -1
  200. package/dist/sdk/segment/file-discovery.js +1 -1
  201. package/dist/sdk/segment/journey-utils.js +1 -1
  202. package/dist/sdk/segment/journey-validator.js +1 -1
  203. package/dist/sdk/segment/journey-yaml.js +1 -1
  204. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  205. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  206. package/dist/sdk/segment/pull-workflow.js +1 -1
  207. package/dist/sdk/segment/push-recovery.js +1 -1
  208. package/dist/sdk/segment/push-workflow.js +1 -1
  209. package/dist/sdk/segment/resolution-context.js +1 -1
  210. package/dist/sdk/segment/segment-path-parser.js +1 -1
  211. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  212. package/dist/sdk/segment/segment-validator.js +1 -1
  213. package/dist/sdk/segment/target-resolution.js +1 -1
  214. package/dist/sdk/segment/tdx-config.js +1 -1
  215. package/dist/sdk/segment/types/activation-schema.js +1 -1
  216. package/dist/sdk/segment/types/journey-def.js +1 -1
  217. package/dist/sdk/segment/types/journey-schema.js +1 -1
  218. package/dist/sdk/segment/types/segment-def.js +1 -1
  219. package/dist/sdk/segment/types/segment-schema.d.ts.map +1 -1
  220. package/dist/sdk/segment/types/segment-schema.js +1 -1
  221. package/dist/sdk/segment/types/segment-schema.js.map +1 -1
  222. package/dist/sdk/segment/validate-files.js +1 -1
  223. package/dist/sdk/segment/yaml-validator.js +1 -1
  224. package/dist/sdk/segment.js +1 -1
  225. package/dist/sdk/types/index.d.ts +2 -1
  226. package/dist/sdk/types/index.d.ts.map +1 -1
  227. package/dist/sdk/types/index.js +1 -1
  228. package/dist/sdk/types/index.js.map +1 -1
  229. package/dist/sdk/types/p13n-studio.d.ts +18 -0
  230. package/dist/sdk/types/p13n-studio.d.ts.map +1 -0
  231. package/dist/sdk/types/p13n-studio.js +1 -0
  232. package/dist/sdk/types/p13n-studio.js.map +1 -0
  233. package/dist/sdk/types/progress.js +1 -1
  234. package/dist/sdk/types/workspace.js +1 -1
  235. package/dist/sdk/user.js +1 -1
  236. package/dist/sdk/util/format-detector.js +1 -1
  237. package/dist/sdk/util/formatters.js +1 -1
  238. package/dist/sdk/util/index.js +1 -1
  239. package/dist/sdk/util/paginate.js +1 -1
  240. package/dist/sdk/util/tree-formatter.js +1 -1
  241. package/dist/sdk/util/tree-search.js +1 -1
  242. package/dist/sdk/workflow/archive-validation.js +1 -1
  243. package/dist/sdk/workflow/clone-workflow.js +1 -1
  244. package/dist/sdk/workflow/index.js +1 -1
  245. package/dist/sdk/workflow/pull-workflow.js +1 -1
  246. package/dist/sdk/workflow/push-workflow.js +1 -1
  247. package/dist/sdk/workflow/task-graph.js +1 -1
  248. package/dist/sdk/workflow/tdx-config.js +1 -1
  249. package/dist/sdk/workflow/workflow-utils.js +1 -1
  250. package/dist/sdk/workspace/access-tracker.js +1 -1
  251. package/dist/sdk/workspace/frontmatter.js +1 -1
  252. package/dist/sdk/workspace/git.js +1 -1
  253. package/dist/sdk/workspace/index.js +1 -1
  254. package/dist/sdk/workspace/templates.js +1 -1
  255. package/dist/sdk/workspace/weekly.js +1 -1
  256. package/dist/sdk/workspace/wikilinks.js +1 -1
  257. package/dist/test-utils/command-runner.js +1 -1
  258. package/dist/test-utils/factories.js +1 -1
  259. package/dist/test-utils/fixtures.js +1 -1
  260. package/dist/test-utils/http-mock.js +1 -1
  261. package/dist/test-utils/index.js +1 -1
  262. package/dist/utils/async.js +1 -1
  263. package/dist/utils/claude-code-state.js +1 -1
  264. package/dist/utils/colors.js +1 -1
  265. package/dist/utils/diff.js +1 -1
  266. package/dist/utils/file-permissions.js +1 -1
  267. package/dist/utils/file-reader.js +1 -1
  268. package/dist/utils/github-releases.js +1 -1
  269. package/dist/utils/global-cache.js +1 -1
  270. package/dist/utils/json-loader.js +1 -1
  271. package/dist/utils/local-cache.js +1 -1
  272. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  273. package/dist/utils/logger/formatters/index.js +1 -1
  274. package/dist/utils/logger/handlers/console-handler.js +1 -1
  275. package/dist/utils/logger/handlers/file-handler.js +1 -1
  276. package/dist/utils/logger/handlers/index.js +1 -1
  277. package/dist/utils/logger/handlers/null-handler.js +1 -1
  278. package/dist/utils/logger/index.js +1 -1
  279. package/dist/utils/logger/logger.js +1 -1
  280. package/dist/utils/logger/types.js +1 -1
  281. package/dist/utils/option-validation.js +1 -1
  282. package/dist/utils/process.js +1 -1
  283. package/dist/utils/prompt.js +1 -1
  284. package/dist/utils/proxy-fetch.js +1 -1
  285. package/dist/utils/spinner.js +1 -1
  286. package/dist/utils/sse-parser.js +1 -1
  287. package/dist/utils/string-utils.js +1 -1
  288. package/dist/utils/table-ref-parser.js +1 -1
  289. package/dist/utils/tdx-logger.js +1 -1
  290. package/dist/utils/version-check.js +1 -1
  291. package/package.json +1 -1
@@ -1 +1 @@
1
- const a223_0x370da5=a223_0x3933;(function(_0x462477,_0x124c8d){const _0x2ff945=a223_0x3933,_0x12ed70=_0x462477();while(!![]){try{const _0x47334b=parseInt(_0x2ff945(0x205))/0x1*(-parseInt(_0x2ff945(0x1f3))/0x2)+parseInt(_0x2ff945(0x1ea))/0x3*(-parseInt(_0x2ff945(0x1eb))/0x4)+-parseInt(_0x2ff945(0x1f0))/0x5+-parseInt(_0x2ff945(0x1f7))/0x6+-parseInt(_0x2ff945(0x200))/0x7*(-parseInt(_0x2ff945(0x1f9))/0x8)+parseInt(_0x2ff945(0x1f5))/0x9+parseInt(_0x2ff945(0x1ed))/0xa;if(_0x47334b===_0x124c8d)break;else _0x12ed70['push'](_0x12ed70['shift']());}catch(_0x2c825e){_0x12ed70['push'](_0x12ed70['shift']());}}}(a223_0x5738,0x7f95c));function a223_0x3933(_0x2397ec,_0x3b5153){_0x2397ec=_0x2397ec-0x1e8;const _0x573880=a223_0x5738();let _0x39335a=_0x573880[_0x2397ec];return _0x39335a;}function a223_0x5738(){const _0x44c76d=['map','2tfaOVP','test-api-key-id/test-api-key-secret','1829988VQxZjt','verify','882Bbckbq','http','2070776inGQlw','log','exitCode','join','ERROR','run','us01','7YywZSi','warn','error','push','originalFetch','475721baCItS','options','setup','teardown','9219WAEMQJ','484XAsmLo','fetch','10950000LpcTuU','createFetch','fail','934450XZpwDt','site'];a223_0x5738=function(){return _0x44c76d;};return a223_0x5738();}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a223_0x370da5(0x1f8)];[a223_0x370da5(0x204)];constructor(){const _0x2c941a=a223_0x370da5;this[_0x2c941a(0x1f8)]=createHTTPMock(),this[_0x2c941a(0x204)]=global[_0x2c941a(0x1ec)];}[a223_0x370da5(0x1e8)](){const _0x4aaa6c=a223_0x370da5;this[_0x4aaa6c(0x204)]=global['fetch'],global['fetch']=this['http'][_0x4aaa6c(0x1ee)]();}[a223_0x370da5(0x1e9)](_0x4394a7){const _0x4b80e0=a223_0x370da5;try{_0x4394a7?.[_0x4b80e0(0x1ef)]&&this['http'][_0x4b80e0(0x1f6)](_0x4394a7);}finally{global[_0x4b80e0(0x1ec)]=this['originalFetch'],this[_0x4b80e0(0x1f8)]['reset']();}}async[a223_0x370da5(0x1fe)](_0x434985,_0x5bad77={}){const _0x23b670=a223_0x370da5,_0x7842ae=[],_0x358d72=[],_0x30020c=console[_0x23b670(0x1fa)],_0x279613=console['error'],_0xc7107c=console['warn'];console[_0x23b670(0x1fa)]=(..._0x1efede)=>{const _0x231b97=_0x23b670;_0x7842ae[_0x231b97(0x203)](_0x1efede['map'](String)['join']('\x20'));},console[_0x23b670(0x202)]=(..._0x357b4d)=>{const _0x14273c=_0x23b670;_0x358d72['push'](_0x357b4d[_0x14273c(0x1f2)](String)['join']('\x20'));},console[_0x23b670(0x201)]=(..._0x4e70b3)=>{const _0x13aa68=_0x23b670;_0x358d72[_0x13aa68(0x203)](_0x4e70b3[_0x13aa68(0x1f2)](String)[_0x13aa68(0x1fc)]('\x20'));};try{const _0x3e6bd5=new TDX({'site':_0x5bad77[_0x23b670(0x206)]?.[_0x23b670(0x1f1)]??_0x23b670(0x1ff),'apiKey':_0x23b670(0x1f4),'logLevel':LogLevel[_0x23b670(0x1fd)]}),_0x594405={'options':createTestGlobalOptions(_0x5bad77[_0x23b670(0x206)]),'args':_0x5bad77['args']??[],'tdx':_0x3e6bd5},_0x149cf2=new _0x434985(),_0x571cd6=await _0x149cf2[_0x23b670(0x1fe)](_0x594405);return{'exitCode':_0x571cd6,'stdout':_0x7842ae,'stderr':_0x358d72};}finally{console['log']=_0x30020c,console[_0x23b670(0x202)]=_0x279613,console['warn']=_0xc7107c;}}async['runSequence'](_0x566196){const _0x182264=a223_0x370da5,_0x1557f7=[];for(const {command:_0x20b8e2,options:_0x128834}of _0x566196){const _0x51e299=await this[_0x182264(0x1fe)](_0x20b8e2,_0x128834);_0x1557f7['push'](_0x51e299);if(_0x51e299[_0x182264(0x1fb)]!==0x0)break;}return _0x1557f7;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a227_0x148e55=a227_0x329d;(function(_0x1f807d,_0x2a2c5){const _0xb223ce=a227_0x329d,_0x4bab71=_0x1f807d();while(!![]){try{const _0x5352ab=-parseInt(_0xb223ce(0x16f))/0x1+parseInt(_0xb223ce(0x170))/0x2+-parseInt(_0xb223ce(0x16b))/0x3+parseInt(_0xb223ce(0x16e))/0x4+-parseInt(_0xb223ce(0x171))/0x5+-parseInt(_0xb223ce(0x16a))/0x6*(parseInt(_0xb223ce(0x15c))/0x7)+parseInt(_0xb223ce(0x165))/0x8*(parseInt(_0xb223ce(0x169))/0x9);if(_0x5352ab===_0x2a2c5)break;else _0x4bab71['push'](_0x4bab71['shift']());}catch(_0x1a8652){_0x4bab71['push'](_0x4bab71['shift']());}}}(a227_0x1d7b,0xf170e));function a227_0x329d(_0x4e15db,_0x433a41){_0x4e15db=_0x4e15db-0x158;const _0x1d7bdd=a227_0x1d7b();let _0x329dfa=_0x1d7bdd[_0x4e15db];return _0x329dfa;}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a227_0x1d7b(){const _0x4d5d8a=['join','warn','createFetch','originalFetch','reset','runSequence','8VHhIAC','test-api-key-id/test-api-key-secret','setup','teardown','12667797VJOFoZ','4962jlwbuZ','319944VXodKI','map','push','6765084nMVGEa','754672HEZmIp','610012EAslGR','3988350DKUryc','run','fetch','exitCode','fail','us01','options','args','http','6398xdZBwd','log','error'];a227_0x1d7b=function(){return _0x4d5d8a;};return a227_0x1d7b();}export class CommandRunner{[a227_0x148e55(0x15b)];['originalFetch'];constructor(){const _0x269e3b=a227_0x148e55;this['http']=createHTTPMock(),this[_0x269e3b(0x162)]=global['fetch'];}[a227_0x148e55(0x167)](){const _0x2f697f=a227_0x148e55;this[_0x2f697f(0x162)]=global[_0x2f697f(0x173)],global[_0x2f697f(0x173)]=this[_0x2f697f(0x15b)][_0x2f697f(0x161)]();}[a227_0x148e55(0x168)](_0x4196e7){const _0x38a165=a227_0x148e55;try{_0x4196e7?.[_0x38a165(0x175)]&&this['http']['verify'](_0x4196e7);}finally{global[_0x38a165(0x173)]=this[_0x38a165(0x162)],this['http'][_0x38a165(0x163)]();}}async[a227_0x148e55(0x172)](_0x251492,_0x87a1d={}){const _0x33c760=a227_0x148e55,_0x198fa1=[],_0x452194=[],_0x1f249f=console['log'],_0x41d0b6=console[_0x33c760(0x15e)],_0x431cf2=console['warn'];console[_0x33c760(0x15d)]=(..._0x3459ab)=>{const _0x20460c=_0x33c760;_0x198fa1[_0x20460c(0x16d)](_0x3459ab[_0x20460c(0x16c)](String)[_0x20460c(0x15f)]('\x20'));},console['error']=(..._0xc737b3)=>{const _0x56b424=_0x33c760;_0x452194[_0x56b424(0x16d)](_0xc737b3[_0x56b424(0x16c)](String)[_0x56b424(0x15f)]('\x20'));},console[_0x33c760(0x160)]=(..._0x248caa)=>{const _0x1b5352=_0x33c760;_0x452194[_0x1b5352(0x16d)](_0x248caa[_0x1b5352(0x16c)](String)[_0x1b5352(0x15f)]('\x20'));};try{const _0x1107f1=new TDX({'site':_0x87a1d[_0x33c760(0x159)]?.['site']??_0x33c760(0x158),'apiKey':_0x33c760(0x166),'logLevel':LogLevel['ERROR']}),_0x48e8ef={'options':createTestGlobalOptions(_0x87a1d[_0x33c760(0x159)]),'args':_0x87a1d[_0x33c760(0x15a)]??[],'tdx':_0x1107f1},_0x218782=new _0x251492(),_0x382a10=await _0x218782[_0x33c760(0x172)](_0x48e8ef);return{'exitCode':_0x382a10,'stdout':_0x198fa1,'stderr':_0x452194};}finally{console[_0x33c760(0x15d)]=_0x1f249f,console[_0x33c760(0x15e)]=_0x41d0b6,console[_0x33c760(0x160)]=_0x431cf2;}}async[a227_0x148e55(0x164)](_0x1556f6){const _0x3a3c58=a227_0x148e55,_0x1c0223=[];for(const {command:_0x382eae,options:_0x56c560}of _0x1556f6){const _0x50deea=await this[_0x3a3c58(0x172)](_0x382eae,_0x56c560);_0x1c0223[_0x3a3c58(0x16d)](_0x50deea);if(_0x50deea[_0x3a3c58(0x174)]!==0x0)break;}return _0x1c0223;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0xf0cb61,_0x3e28ee){const _0xa3ef34=a224_0x4a37,_0x2597df=_0xf0cb61();while(!![]){try{const _0x129266=-parseInt(_0xa3ef34(0x204))/0x1*(-parseInt(_0xa3ef34(0x201))/0x2)+-parseInt(_0xa3ef34(0x217))/0x3*(-parseInt(_0xa3ef34(0x1f3))/0x4)+-parseInt(_0xa3ef34(0x1fd))/0x5*(-parseInt(_0xa3ef34(0x212))/0x6)+parseInt(_0xa3ef34(0x216))/0x7*(parseInt(_0xa3ef34(0x206))/0x8)+parseInt(_0xa3ef34(0x20e))/0x9*(-parseInt(_0xa3ef34(0x20c))/0xa)+-parseInt(_0xa3ef34(0x1fe))/0xb*(parseInt(_0xa3ef34(0x211))/0xc)+parseInt(_0xa3ef34(0x202))/0xd*(-parseInt(_0xa3ef34(0x203))/0xe);if(_0x129266===_0x3e28ee)break;else _0x2597df['push'](_0x2597df['shift']());}catch(_0x56d46a){_0x2597df['push'](_0x2597df['shift']());}}}(a224_0x5afe,0x54dac));import{vi}from'vitest';import a224_0x233c57 from'fs';import{join}from'path';function a224_0x4a37(_0x4544ab,_0x56a4f0){_0x4544ab=_0x4544ab-0x1f2;const _0x5afe40=a224_0x5afe();let _0x4a373f=_0x5afe40[_0x4544ab];return _0x4a373f;}import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x13f79a){const _0x1bf28a=a224_0x4a37;return{'site':_0x1bf28a(0x1f9),'apiKey':_0x1bf28a(0x215),'logLevel':LogLevel[_0x1bf28a(0x207)],..._0x13f79a};}export function createTestGlobalOptions(_0x3fca2d){const _0x43b68b=a224_0x4a37;return{'site':_0x43b68b(0x1f9),'format':'table','noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x43b68b(0x1f6),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x43b68b(0x207)],..._0x3fca2d};}export async function initTestLogger(){const _0x2f0cdf=a224_0x4a37;Logger['reset']();const _0x28f9e6=join(getGlobalCacheDir(),_0x2f0cdf(0x1f4),_0x2f0cdf(0x1f8));await Logger[_0x2f0cdf(0x20d)]({'defaultLevel':LogLevel[_0x2f0cdf(0x210)],'handlers':[new FileHandler({'filePath':_0x28f9e6,'rotate':![]})]});}export function resetTestLogger(){const _0x27ca4d=a224_0x4a37;Logger[_0x27ca4d(0x213)]();}export function createMockTDX(_0x4ca439){const _0x175060=a224_0x4a37;return{'context':{'site':'us01','apiKey':_0x175060(0x1f5),'logLevel':LogLevel[_0x175060(0x207)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x4ca439?.[_0x175060(0x1fc)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4ca439?.[_0x175060(0x1ff)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4ca439?.[_0x175060(0x205)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x4ca439?.[_0x175060(0x200)]},'user':{'show':vi['fn'](),..._0x4ca439?.['user']},'api':{'request':vi['fn'](),..._0x4ca439?.[_0x175060(0x208)]},..._0x4ca439};}export function createTestCommandContext(_0xaa8443){const _0x1bd112=a224_0x4a37,_0x53daf8=createTestGlobalOptions(_0xaa8443?.[_0x1bd112(0x20a)]),_0x1a12a7=_0xaa8443?.[_0x1bd112(0x1fb)]??createMockTDX();return{'options':_0x53daf8,'args':_0xaa8443?.['args']??[],'tdx':_0x1a12a7};}function a224_0x5afe(){const _0x11bfa3=['13kfmUFf','journey','3086488QTvhXA','ERROR','api','push','options','map','50DcPkWz','init','1164015HFRrRN','error','DEBUG','660YGusXy','26718WCdvkf','reset','log','test-api-key-id/test-api-key-secret','7GdzntI','14898brryUQ','warn','228GwGPoq','logs','test-api-key','30000','join','tdx-test.log','us01','tdx.json','tdx','query','505dOqJVI','29029ThnTgs','segment','workflow','73446FdJpjY','5936333ptzEOi','14eoKujM'];a224_0x5afe=function(){return _0x11bfa3;};return a224_0x5afe();}export function captureConsole(){const _0x4ad738=a224_0x4a37,_0x367988=[],_0x39a7e1=[],_0x342c84=console[_0x4ad738(0x214)],_0x551751=console[_0x4ad738(0x20f)],_0x441d94=console[_0x4ad738(0x1f2)];return console[_0x4ad738(0x214)]=(..._0x2637a9)=>{const _0x25b20d=_0x4ad738;_0x367988[_0x25b20d(0x209)](_0x2637a9[_0x25b20d(0x20b)](String)['join']('\x20'));},console['error']=(..._0x1f2bef)=>{const _0x5d0a11=_0x4ad738;_0x39a7e1['push'](_0x1f2bef['map'](String)[_0x5d0a11(0x1f7)]('\x20'));},console['warn']=(..._0x2c4630)=>{const _0x5ce3c2=_0x4ad738;_0x39a7e1[_0x5ce3c2(0x209)](_0x2c4630[_0x5ce3c2(0x20b)](String)[_0x5ce3c2(0x1f7)]('\x20'));},{'stdout':_0x367988,'stderr':_0x39a7e1,'restore':()=>{const _0xac6c26=_0x4ad738;console[_0xac6c26(0x214)]=_0x342c84,console[_0xac6c26(0x20f)]=_0x551751,console[_0xac6c26(0x1f2)]=_0x441d94;}};}export function writeTestProfile(_0x31a855,_0x4926fc){const _0x1bb45c=a224_0x4a37,_0x40c986=process.env.TDX_CONFIG_DIR;if(!_0x40c986)throw new Error('writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set');a224_0x233c57['writeFileSync'](join(_0x40c986,_0x1bb45c(0x1fa)),JSON['stringify']({'profiles':{[_0x31a855]:_0x4926fc}},null,0x2));}
1
+ (function(_0x3ed55b,_0x20c943){const _0x57ca11=a228_0x43a8,_0x2ac6ad=_0x3ed55b();while(!![]){try{const _0x4a9372=-parseInt(_0x57ca11(0x166))/0x1*(-parseInt(_0x57ca11(0x15e))/0x2)+parseInt(_0x57ca11(0x144))/0x3*(-parseInt(_0x57ca11(0x15b))/0x4)+-parseInt(_0x57ca11(0x148))/0x5*(parseInt(_0x57ca11(0x146))/0x6)+-parseInt(_0x57ca11(0x14a))/0x7*(parseInt(_0x57ca11(0x147))/0x8)+-parseInt(_0x57ca11(0x164))/0x9*(-parseInt(_0x57ca11(0x143))/0xa)+-parseInt(_0x57ca11(0x15c))/0xb+-parseInt(_0x57ca11(0x152))/0xc*(-parseInt(_0x57ca11(0x157))/0xd);if(_0x4a9372===_0x20c943)break;else _0x2ac6ad['push'](_0x2ac6ad['shift']());}catch(_0x33b736){_0x2ac6ad['push'](_0x2ac6ad['shift']());}}}(a228_0x29f2,0xa2840));import{vi}from'vitest';import a228_0x1d4b13 from'fs';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';function a228_0x43a8(_0x5f052b,_0x382843){_0x5f052b=_0x5f052b-0x142;const _0x29f240=a228_0x29f2();let _0x43a80d=_0x29f240[_0x5f052b];return _0x43a80d;}export function createTestSDKContext(_0x343b4a){const _0x53548c=a228_0x43a8;return{'site':_0x53548c(0x159),'apiKey':_0x53548c(0x150),'logLevel':LogLevel['ERROR'],..._0x343b4a};}export function createTestGlobalOptions(_0x1abe33){const _0x4c0fcb=a228_0x43a8;return{'site':_0x4c0fcb(0x159),'format':_0x4c0fcb(0x145),'noColor':!![],'limit':0x64,'verbose':![],'timeout':'30000','dryRun':![],'yes':![],'logLevel':LogLevel[_0x4c0fcb(0x14f)],..._0x1abe33};}function a228_0x29f2(){const _0x49d638=['559669OAUJLM','journey','2zyiZXO','tdx','segment','warn','writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set','log','1251ciGLQP','stringify','256537zIAATH','join','workflow','9470FetBHN','15303jyFNAb','table','2826rWKCMA','448016IhFScS','9585qoLnAl','map','21tATsPP','error','push','args','api','ERROR','test-api-key-id/test-api-key-secret','tdx-test.log','13231464ufwZBo','options','reset','user','test-api-key','26UejwCc','tdx.json','us01','query','632JxBEYV'];a228_0x29f2=function(){return _0x49d638;};return a228_0x29f2();}export async function initTestLogger(){const _0x2bfefd=a228_0x43a8;Logger['reset']();const _0x5be516=join(getGlobalCacheDir(),'logs',_0x2bfefd(0x151));await Logger['init']({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x5be516,'rotate':![]})]});}export function resetTestLogger(){const _0x375a39=a228_0x43a8;Logger[_0x375a39(0x154)]();}export function createMockTDX(_0x5734c6){const _0x13a011=a228_0x43a8;return{'context':{'site':_0x13a011(0x159),'apiKey':_0x13a011(0x156),'logLevel':LogLevel[_0x13a011(0x14f)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x5734c6?.[_0x13a011(0x15a)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5734c6?.[_0x13a011(0x160)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5734c6?.[_0x13a011(0x15d)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x5734c6?.[_0x13a011(0x142)]},'user':{'show':vi['fn'](),..._0x5734c6?.[_0x13a011(0x155)]},'api':{'request':vi['fn'](),..._0x5734c6?.[_0x13a011(0x14e)]},..._0x5734c6};}export function createTestCommandContext(_0x284a2e){const _0x334138=a228_0x43a8,_0x27a931=createTestGlobalOptions(_0x284a2e?.[_0x334138(0x153)]),_0x6f3c4b=_0x284a2e?.[_0x334138(0x15f)]??createMockTDX();return{'options':_0x27a931,'args':_0x284a2e?.[_0x334138(0x14d)]??[],'tdx':_0x6f3c4b};}export function captureConsole(){const _0x79f5a4=a228_0x43a8,_0x108b63=[],_0x396c68=[],_0x459dc3=console[_0x79f5a4(0x163)],_0x31cace=console[_0x79f5a4(0x14b)],_0x28925d=console[_0x79f5a4(0x161)];return console[_0x79f5a4(0x163)]=(..._0x537ed1)=>{const _0x5e6788=_0x79f5a4;_0x108b63[_0x5e6788(0x14c)](_0x537ed1[_0x5e6788(0x149)](String)[_0x5e6788(0x167)]('\x20'));},console[_0x79f5a4(0x14b)]=(..._0x1bcb97)=>{const _0x1970fd=_0x79f5a4;_0x396c68[_0x1970fd(0x14c)](_0x1bcb97[_0x1970fd(0x149)](String)['join']('\x20'));},console['warn']=(..._0x363c3d)=>{const _0x66514c=_0x79f5a4;_0x396c68[_0x66514c(0x14c)](_0x363c3d[_0x66514c(0x149)](String)[_0x66514c(0x167)]('\x20'));},{'stdout':_0x108b63,'stderr':_0x396c68,'restore':()=>{const _0x490bd8=_0x79f5a4;console[_0x490bd8(0x163)]=_0x459dc3,console[_0x490bd8(0x14b)]=_0x31cace,console['warn']=_0x28925d;}};}export function writeTestProfile(_0x502931,_0xeaf260){const _0x1df913=a228_0x43a8,_0x7dec57=process.env.TDX_CONFIG_DIR;if(!_0x7dec57)throw new Error(_0x1df913(0x162));a228_0x1d4b13['writeFileSync'](join(_0x7dec57,_0x1df913(0x158)),JSON[_0x1df913(0x165)]({'profiles':{[_0x502931]:_0xeaf260}},null,0x2));}
@@ -1 +1 @@
1
- const a225_0x285963=a225_0x454d;(function(_0xba67fc,_0x2b870c){const _0x536786=a225_0x454d,_0x3f3fe4=_0xba67fc();while(!![]){try{const _0x5359a5=parseInt(_0x536786(0x110))/0x1+-parseInt(_0x536786(0x155))/0x2*(parseInt(_0x536786(0xfa))/0x3)+parseInt(_0x536786(0x13c))/0x4+-parseInt(_0x536786(0x129))/0x5+-parseInt(_0x536786(0x137))/0x6+-parseInt(_0x536786(0x102))/0x7+-parseInt(_0x536786(0x131))/0x8*(-parseInt(_0x536786(0xf6))/0x9);if(_0x5359a5===_0x2b870c)break;else _0x3f3fe4['push'](_0x3f3fe4['shift']());}catch(_0x4c7e26){_0x3f3fe4['push'](_0x3f3fe4['shift']());}}}(a225_0x1ace,0x73cb8));export const fixtures={'database':{'basic':{'name':a225_0x285963(0x107),'count':0x5,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x13f),'permission':'administrator'},'withTables':{'name':a225_0x285963(0xf7),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':'users','type':a225_0x285963(0x11f),'schema':JSON[a225_0x285963(0x156)]([['id',a225_0x285963(0x12e)],[a225_0x285963(0x13d),a225_0x285963(0x128)],[a225_0x285963(0x14b),a225_0x285963(0x12e)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x13f)},'events':{'id':0x303a,'name':a225_0x285963(0x10c),'type':a225_0x285963(0x11f),'schema':JSON[a225_0x285963(0x156)]([[a225_0x285963(0x134),a225_0x285963(0x12e)],[a225_0x285963(0x13d),a225_0x285963(0x128)],[a225_0x285963(0x11c),a225_0x285963(0x12e)],[a225_0x285963(0x101),a225_0x285963(0x12e)],[a225_0x285963(0x133),a225_0x285963(0x115)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a225_0x285963(0x13f),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a225_0x285963(0x151),'name':a225_0x285963(0x160),'description':a225_0x285963(0x111),'status':a225_0x285963(0x132),'master_table':{'database':a225_0x285963(0x120),'table':'unified_customers'},'attributes':[{'name':a225_0x285963(0xfb),'type':a225_0x285963(0x12e),'key':!![]},{'name':a225_0x285963(0x154),'type':a225_0x285963(0x12e)},{'name':a225_0x285963(0xf8),'type':a225_0x285963(0x15a)}],'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)},'withBehaviors':{'id':a225_0x285963(0x12f),'name':a225_0x285963(0x113),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a225_0x285963(0x132),'master_table':{'database':'cdp_db','table':a225_0x285963(0x106)},'behaviors':[{'name':a225_0x285963(0x14c),'table':{'database':a225_0x285963(0x158),'table':a225_0x285963(0x14c)},'join_key':'customer_id'},{'name':a225_0x285963(0x12a),'table':{'database':'events_db','table':a225_0x285963(0x150)},'join_key':a225_0x285963(0xfb)}],'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)}},'segment':{'basic':{'id':a225_0x285963(0x15d),'name':a225_0x285963(0xf5),'description':a225_0x285963(0xfc),'parent_segment_id':a225_0x285963(0x151),'status':a225_0x285963(0x132),'rules':[{'type':'attribute','field':'last_login','operator':a225_0x285963(0x14d),'value':a225_0x285963(0x125)}],'count':0x1388,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)},'withMultipleRules':{'id':a225_0x285963(0x10a),'name':a225_0x285963(0x15b),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a225_0x285963(0x151),'status':a225_0x285963(0x132),'rules':[{'type':a225_0x285963(0x159),'field':a225_0x285963(0x109),'operator':'TimeWithinPast','value':a225_0x285963(0x125)},{'type':a225_0x285963(0x159),'field':a225_0x285963(0x12c),'operator':a225_0x285963(0x15e),'value':0x3e8}],'count':0x5dc,'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)}},'journey':{'basic':{'id':a225_0x285963(0x116),'name':'Welcome\x20Journey','description':a225_0x285963(0x15f),'status':a225_0x285963(0xf4),'version':0x1,'steps':[{'id':'step-1','type':a225_0x285963(0x114),'duration':'1d'},{'id':'step-2','type':a225_0x285963(0x10e),'activation_id':a225_0x285963(0x11d)}],'created_at':a225_0x285963(0x13f),'updated_at':a225_0x285963(0x112)},'withDecision':{'id':a225_0x285963(0x104),'name':'Purchase\x20Reminder','description':a225_0x285963(0x11b),'status':a225_0x285963(0x132),'version':0x2,'steps':[{'id':'step-1','type':'decision_point','segment_id':a225_0x285963(0x15d),'yes_path':a225_0x285963(0x146),'no_path':'step-3'},{'id':a225_0x285963(0x146),'type':'activation','activation_id':'act-email'},{'id':'step-3','type':a225_0x285963(0x142)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a225_0x285963(0x112)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a225_0x285963(0x135)},{'name':a225_0x285963(0x14b),'type':'varchar'},{'name':a225_0x285963(0x126),'type':a225_0x285963(0x123)}],'data':[[a225_0x285963(0x108),'Alice',0x64],[a225_0x285963(0x11a),a225_0x285963(0x145),0xc8],['user-3',a225_0x285963(0x117),0x96]]},'empty':{'schema':[{'name':'id','type':a225_0x285963(0x135)},{'name':a225_0x285963(0x14b),'type':a225_0x285963(0x135)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a225_0x285963(0x123)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a225_0x285963(0x144),'email':a225_0x285963(0x12b),'created_at':a225_0x285963(0x13f),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a225_0x285963(0xff),'created_at':'2023-01-01T00:00:00Z','updated_at':a225_0x285963(0x112),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a225_0x285963(0x143),'database':a225_0x285963(0x107),'status':a225_0x285963(0xf2),'query':a225_0x285963(0x139),'start_at':a225_0x285963(0x149),'end_at':a225_0x285963(0x13e),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a225_0x285963(0x107),'status':a225_0x285963(0x130),'query':a225_0x285963(0xfe),'start_at':a225_0x285963(0x153),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':'test_db','status':'error','query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a225_0x285963(0x14e),'end_at':a225_0x285963(0x157),'duration':0x1,'result_size':null,'error':a225_0x285963(0x14a)}},'workflow':{'basic':{'id':a225_0x285963(0x122),'name':a225_0x285963(0x138),'project':'data_pipeline','revision':'abc123','timezone':a225_0x285963(0x141),'schedule':{'cron':a225_0x285963(0x100)}},'withSessions':{'id':a225_0x285963(0x13b),'name':a225_0x285963(0x103),'project':a225_0x285963(0xfd),'revision':'def456','timezone':a225_0x285963(0x10d),'schedule':{'cron':a225_0x285963(0x11e)},'last_session':{'id':a225_0x285963(0x124),'status':'success','started_at':a225_0x285963(0x119),'finished_at':a225_0x285963(0x136)}}},'apiError':{'unauthorized':{'errors':{'error':a225_0x285963(0x140),'message':a225_0x285963(0x140),'severity':a225_0x285963(0x14f),'status_code':0x191}},'notFound':{'errors':{'error':a225_0x285963(0x127),'message':a225_0x285963(0x118),'severity':a225_0x285963(0x14f),'status_code':0x194}},'rateLimited':{'detail':a225_0x285963(0xf9)},'rfc9457':{'type':a225_0x285963(0x10b),'title':'Forbidden','status':0x193,'detail':a225_0x285963(0x148),'instance':a225_0x285963(0x152)}}};export function createDatabase(_0x550325){const _0x4d5cce=a225_0x285963;return{...fixtures[_0x4d5cce(0xf1)]['basic'],..._0x550325};}function a225_0x1ace(){const _0x19ab55=['log','cdp_db','segment','wf-12345','bigint','sess-111','30d','count','Resource\x20not\x20found','long','1177550BFaSUW','page_views','test@example.com','lifetime_value','basic','string','ps-789012','running','1576ldugiO','active','properties','event_id','varchar','2024-01-15T09:05:00Z','5005884DHhtrW','daily_etl','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','journey','wf-67890','2140800DGJXlU','time','2024-01-15T10:00:05Z','2024-01-01T00:00:00Z','Invalid\x20API\x20key','UTC','end','presto','Test\x20User','Bob','step-2','job','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2024-01-15T10:00:00Z','Table\x20does\x20not\x20exist:\x20nonexistent_table','name','purchases','TimeWithinPast','2024-01-15T10:10:00Z','error','pageviews','ps-123456','/v3/database/list','2024-01-15T10:05:00Z','email','2MacKMO','stringify','2024-01-15T10:10:01Z','events_db','attribute','timestamp','High\x20Value\x20Active\x20Users','queryResult','cs-456789','Greater','Onboarding\x20journey\x20for\x20new\x20users','Test\x20Parent\x20Segment','database','success','parentSegment','draft','Active\x20Users','32013AnQSxX','production_db','created_at','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','192243NpJWoN','customer_id','Users\x20active\x20in\x20the\x20last\x2030\x20days','data_sync','SELECT\x20COUNT(*)\x20FROM\x20events','admin@example.com','0\x200\x20*\x20*\x20*','event_type','467663CugpcF','hourly_sync','j-def456','workflow','customers','test_db','user-1','last_login','cs-111222','https://api.treasuredata.com/errors/forbidden','events','America/Los_Angeles','activation','user','439081nTVhAC','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','2024-01-15T00:00:00Z','Customers\x20with\x20Behaviors','wait','map<string,string>','j-abc123','Charlie','The\x20requested\x20resource\x20does\x20not\x20exist','2024-01-15T09:00:00Z','user-2','Journey\x20with\x20decision\x20point','user_id','act-123','0\x20*\x20*\x20*\x20*'];a225_0x1ace=function(){return _0x19ab55;};return a225_0x1ace();}export function createTable(_0x1dbbb9){const _0x21cedc=a225_0x285963;return{...fixtures['table'][_0x21cedc(0x12d)],..._0x1dbbb9};}export function createParentSegment(_0x4a011d){const _0x41f3f8=a225_0x285963;return{...fixtures[_0x41f3f8(0xf3)][_0x41f3f8(0x12d)],..._0x4a011d};}export function createSegment(_0x92c269){const _0x535229=a225_0x285963;return{...fixtures[_0x535229(0x121)]['basic'],..._0x92c269};}export function createJourney(_0x222155){const _0x288408=a225_0x285963;return{...fixtures[_0x288408(0x13a)][_0x288408(0x12d)],..._0x222155};}function a225_0x454d(_0x2c6eb7,_0x26bea8){_0x2c6eb7=_0x2c6eb7-0xf1;const _0x1acea9=a225_0x1ace();let _0x454deb=_0x1acea9[_0x2c6eb7];return _0x454deb;}export function createQueryResult(_0x14171c){const _0x38962a=a225_0x285963;return{...fixtures[_0x38962a(0x15c)][_0x38962a(0x12d)],..._0x14171c};}export function createUser(_0x47e32e){const _0x1c82f7=a225_0x285963;return{...fixtures[_0x1c82f7(0x10f)]['basic'],..._0x47e32e};}export function createJob(_0x34c016){const _0x30be5f=a225_0x285963;return{...fixtures[_0x30be5f(0x147)]['completed'],..._0x34c016};}export function createWorkflow(_0x7ba46e){const _0x424406=a225_0x285963;return{...fixtures[_0x424406(0x105)]['basic'],..._0x7ba46e};}
1
+ function a229_0x2010(){const _0x22bba5=['unified_customers','test_db','Active\x20Users','ps-789012','events_db','activation','administrator','purchases','SELECT\x20COUNT(*)\x20FROM\x20events','table','Test\x20Parent\x20Segment','Greater','111280aIsQum','2024-01-15T10:00:00Z','user_id','j-abc123','2023-06-15T10:30:00Z','user-1','users','properties','Welcome\x20Journey','2024-01-01T00:00:00Z','error','2024-01-15T10:00:05Z','Admin\x20User','cs-111222','basic','completed','2024-01-15T09:00:00Z','TimeWithinPast','production_db','varchar','string','draft','Alice','5496180JCiJpV','cs-456789','30d','parentSegment','wf-67890','active','lifetime_value','event_id','cdp_db','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','371Mdbqvy','Parent\x20segment\x20with\x20behavioral\x20data','data_sync','created_at','2024-01-15T10:10:00Z','running','segment','abc123','email','3500940EGvZlK','2024-01-15T00:00:00Z','long','count','admin@example.com','https://api.treasuredata.com/errors/forbidden','632784ZhFBGw','event_type','High\x20Value\x20Active\x20Users','4852RNHIGk','Users\x20active\x20in\x20the\x20last\x2030\x20days','hourly_sync','last_login','2024-01-15T10:05:00Z','Onboarding\x20journey\x20for\x20new\x20users','j-def456','daily_etl','Customers\x20with\x20Behaviors','step-3','name','ps-123456','presto','events','Charlie','queryResult','33IlTqGb','Bob','0\x200\x20*\x20*\x20*','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','full_access','sess-111','Forbidden','success','timestamp','total','5cYfJJU','map<string,string>','attribute','def456','600417CaFRQB','customer_id','step-2','2023-01-01T00:00:00Z','wait','281DBAFch','SELECT\x20*\x20FROM\x20nonexistent_table','workflow','log','Resource\x20not\x20found','pageviews','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','bigint','user-2','stringify','act-123','2024-01-15T08:00:00Z','2024-01-15T10:10:01Z','customers','Invalid\x20API\x20key','step-1','1446000kgHpCp','Purchase\x20Reminder','job','page_views','end','UTC'];a229_0x2010=function(){return _0x22bba5;};return a229_0x2010();}const a229_0x399ff2=a229_0x4df1;(function(_0x4c4e7f,_0xe522ec){const _0x2eae54=a229_0x4df1,_0x1918b0=_0x4c4e7f();while(!![]){try{const _0x4aedb3=-parseInt(_0x2eae54(0xad))/0x1*(-parseInt(_0x2eae54(0x102))/0x2)+-parseInt(_0x2eae54(0xff))/0x3+-parseInt(_0x2eae54(0xbd))/0x4*(-parseInt(_0x2eae54(0xa4))/0x5)+parseInt(_0x2eae54(0xf9))/0x6+-parseInt(_0x2eae54(0xf0))/0x7*(-parseInt(_0x2eae54(0xcf))/0x8)+-parseInt(_0x2eae54(0xa8))/0x9+parseInt(_0x2eae54(0xe6))/0xa*(-parseInt(_0x2eae54(0x112))/0xb);if(_0x4aedb3===_0xe522ec)break;else _0x1918b0['push'](_0x1918b0['shift']());}catch(_0x4c112e){_0x1918b0['push'](_0x1918b0['shift']());}}}(a229_0x2010,0x6acb7));export const fixtures={'database':{'basic':{'name':a229_0x399ff2(0xc4),'count':0x5,'created_at':a229_0x399ff2(0xd8),'updated_at':'2024-01-01T00:00:00Z','permission':a229_0x399ff2(0xc9)},'withTables':{'name':a229_0x399ff2(0xe1),'count':0x64,'created_at':a229_0x399ff2(0xd3),'updated_at':a229_0x399ff2(0xb8),'permission':a229_0x399ff2(0x116)}},'table':{'basic':{'id':0x3039,'name':a229_0x399ff2(0xd5),'type':a229_0x399ff2(0xb0),'schema':JSON['stringify']([['id',a229_0x399ff2(0xe3)],['time',a229_0x399ff2(0xfb)],[a229_0x399ff2(0x10c),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a229_0x399ff2(0xd8)},'events':{'id':0x303a,'name':a229_0x399ff2(0x10f),'type':a229_0x399ff2(0xb0),'schema':JSON[a229_0x399ff2(0xb6)]([[a229_0x399ff2(0xed),a229_0x399ff2(0xe3)],['time',a229_0x399ff2(0xfb)],[a229_0x399ff2(0xd1),a229_0x399ff2(0xe3)],[a229_0x399ff2(0x100),a229_0x399ff2(0xe3)],[a229_0x399ff2(0xd6),a229_0x399ff2(0xa5)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a229_0x399ff2(0x10d),'name':a229_0x399ff2(0xcd),'description':a229_0x399ff2(0xef),'status':a229_0x399ff2(0xeb),'master_table':{'database':a229_0x399ff2(0xee),'table':a229_0x399ff2(0xc3)},'attributes':[{'name':a229_0x399ff2(0xa9),'type':'string','key':!![]},{'name':a229_0x399ff2(0xf8),'type':a229_0x399ff2(0xe3)},{'name':a229_0x399ff2(0xf3),'type':a229_0x399ff2(0xa2)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a229_0x399ff2(0xfa)},'withBehaviors':{'id':a229_0x399ff2(0xc6),'name':a229_0x399ff2(0x10a),'description':a229_0x399ff2(0xf1),'status':a229_0x399ff2(0xeb),'master_table':{'database':a229_0x399ff2(0xee),'table':a229_0x399ff2(0xba)},'behaviors':[{'name':a229_0x399ff2(0xca),'table':{'database':'events_db','table':a229_0x399ff2(0xca)},'join_key':'customer_id'},{'name':a229_0x399ff2(0xc0),'table':{'database':a229_0x399ff2(0xc7),'table':a229_0x399ff2(0xb2)},'join_key':a229_0x399ff2(0xa9)}],'created_at':a229_0x399ff2(0xd8),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a229_0x399ff2(0xe7),'name':a229_0x399ff2(0xc5),'description':a229_0x399ff2(0x103),'parent_segment_id':a229_0x399ff2(0x10d),'status':'active','rules':[{'type':'attribute','field':a229_0x399ff2(0x105),'operator':a229_0x399ff2(0xe0),'value':a229_0x399ff2(0xe8)}],'count':0x1388,'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)},'withMultipleRules':{'id':a229_0x399ff2(0xdc),'name':a229_0x399ff2(0x101),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a229_0x399ff2(0x10d),'status':a229_0x399ff2(0xeb),'rules':[{'type':a229_0x399ff2(0xa6),'field':a229_0x399ff2(0x105),'operator':'TimeWithinPast','value':a229_0x399ff2(0xe8)},{'type':'attribute','field':a229_0x399ff2(0xec),'operator':a229_0x399ff2(0xce),'value':0x3e8}],'count':0x5dc,'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)}},'journey':{'basic':{'id':a229_0x399ff2(0xd2),'name':a229_0x399ff2(0xd7),'description':a229_0x399ff2(0x107),'status':a229_0x399ff2(0xe4),'version':0x1,'steps':[{'id':a229_0x399ff2(0xbc),'type':a229_0x399ff2(0xac),'duration':'1d'},{'id':'step-2','type':a229_0x399ff2(0xc8),'activation_id':a229_0x399ff2(0xb7)}],'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)},'withDecision':{'id':a229_0x399ff2(0x108),'name':a229_0x399ff2(0xbe),'description':'Journey\x20with\x20decision\x20point','status':a229_0x399ff2(0xeb),'version':0x2,'steps':[{'id':'step-1','type':'decision_point','segment_id':'cs-456789','yes_path':a229_0x399ff2(0xaa),'no_path':'step-3'},{'id':a229_0x399ff2(0xaa),'type':a229_0x399ff2(0xc8),'activation_id':'act-email'},{'id':a229_0x399ff2(0x10b),'type':a229_0x399ff2(0xc1)}],'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a229_0x399ff2(0xe2)},{'name':a229_0x399ff2(0x10c),'type':'varchar'},{'name':a229_0x399ff2(0xfc),'type':a229_0x399ff2(0xb4)}],'data':[[a229_0x399ff2(0xd4),a229_0x399ff2(0xe5),0x64],[a229_0x399ff2(0xb5),a229_0x399ff2(0x113),0xc8],['user-3',a229_0x399ff2(0x110),0x96]]},'empty':{'schema':[{'name':'id','type':a229_0x399ff2(0xe2)},{'name':a229_0x399ff2(0x10c),'type':a229_0x399ff2(0xe2)}],'data':[]},'singleRow':{'schema':[{'name':a229_0x399ff2(0xa3),'type':a229_0x399ff2(0xb4)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa),'administrator':![]},'admin':{'id':0x1,'name':a229_0x399ff2(0xdb),'email':a229_0x399ff2(0xfd),'created_at':a229_0x399ff2(0xab),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a229_0x399ff2(0x10e),'database':a229_0x399ff2(0xc4),'status':a229_0x399ff2(0x119),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':a229_0x399ff2(0xd0),'end_at':a229_0x399ff2(0xda),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a229_0x399ff2(0x10e),'database':a229_0x399ff2(0xc4),'status':a229_0x399ff2(0xf5),'query':a229_0x399ff2(0xcb),'start_at':a229_0x399ff2(0x106),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a229_0x399ff2(0x10e),'database':a229_0x399ff2(0xc4),'status':a229_0x399ff2(0xd9),'query':a229_0x399ff2(0xae),'start_at':a229_0x399ff2(0xf4),'end_at':a229_0x399ff2(0xb9),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':'wf-12345','name':a229_0x399ff2(0x109),'project':'data_pipeline','revision':a229_0x399ff2(0xf7),'timezone':a229_0x399ff2(0xc2),'schedule':{'cron':a229_0x399ff2(0x114)}},'withSessions':{'id':a229_0x399ff2(0xea),'name':a229_0x399ff2(0x104),'project':a229_0x399ff2(0xf2),'revision':a229_0x399ff2(0xa7),'timezone':'America/Los_Angeles','schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a229_0x399ff2(0x117),'status':a229_0x399ff2(0x119),'started_at':a229_0x399ff2(0xdf),'finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':a229_0x399ff2(0xbb),'message':a229_0x399ff2(0xbb),'severity':a229_0x399ff2(0xd9),'status_code':0x191}},'notFound':{'errors':{'error':a229_0x399ff2(0xb1),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a229_0x399ff2(0xd9),'status_code':0x194}},'rateLimited':{'detail':a229_0x399ff2(0x115)},'rfc9457':{'type':a229_0x399ff2(0xfe),'title':a229_0x399ff2(0x118),'status':0x193,'detail':a229_0x399ff2(0xb3),'instance':'/v3/database/list'}}};export function createDatabase(_0x5093c8){const _0x2f8d8c=a229_0x399ff2;return{...fixtures['database'][_0x2f8d8c(0xdd)],..._0x5093c8};}export function createTable(_0xde837d){const _0x572892=a229_0x399ff2;return{...fixtures[_0x572892(0xcc)][_0x572892(0xdd)],..._0xde837d};}export function createParentSegment(_0x11c5cf){const _0x3acdbb=a229_0x399ff2;return{...fixtures[_0x3acdbb(0xe9)][_0x3acdbb(0xdd)],..._0x11c5cf};}export function createSegment(_0x55f39a){const _0x27bf64=a229_0x399ff2;return{...fixtures[_0x27bf64(0xf6)][_0x27bf64(0xdd)],..._0x55f39a};}export function createJourney(_0x385f63){const _0x22b239=a229_0x399ff2;return{...fixtures['journey'][_0x22b239(0xdd)],..._0x385f63};}function a229_0x4df1(_0x5716cc,_0x1c69a5){_0x5716cc=_0x5716cc-0xa2;const _0x2010bc=a229_0x2010();let _0x4df134=_0x2010bc[_0x5716cc];return _0x4df134;}export function createQueryResult(_0x30551f){const _0x1966e5=a229_0x399ff2;return{...fixtures[_0x1966e5(0x111)][_0x1966e5(0xdd)],..._0x30551f};}export function createUser(_0x33e659){const _0x151ff1=a229_0x399ff2;return{...fixtures['user'][_0x151ff1(0xdd)],..._0x33e659};}export function createJob(_0x27067c){const _0x91423f=a229_0x399ff2;return{...fixtures[_0x91423f(0xbf)][_0x91423f(0xde)],..._0x27067c};}export function createWorkflow(_0x2bda2a){const _0x4cacd4=a229_0x399ff2;return{...fixtures[_0x4cacd4(0xaf)][_0x4cacd4(0xdd)],..._0x2bda2a};}
@@ -1 +1 @@
1
- const a226_0x4cdb6b=a226_0x2620;(function(_0x11a085,_0x3100cd){const _0x53ebf7=a226_0x2620,_0x568fe3=_0x11a085();while(!![]){try{const _0x26c2a9=-parseInt(_0x53ebf7(0x15a))/0x1+-parseInt(_0x53ebf7(0x120))/0x2+parseInt(_0x53ebf7(0x130))/0x3+parseInt(_0x53ebf7(0x15b))/0x4+-parseInt(_0x53ebf7(0x151))/0x5*(-parseInt(_0x53ebf7(0x156))/0x6)+-parseInt(_0x53ebf7(0x124))/0x7*(parseInt(_0x53ebf7(0x13c))/0x8)+-parseInt(_0x53ebf7(0x118))/0x9;if(_0x26c2a9===_0x3100cd)break;else _0x568fe3['push'](_0x568fe3['shift']());}catch(_0xedcb7d){_0x568fe3['push'](_0x568fe3['shift']());}}}(a226_0x3402,0x38cca));import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];[a226_0x4cdb6b(0x12d)]=[];[a226_0x4cdb6b(0x133)]=null;['REST'](_0x4b44d8,_0x2d0046){return _0xaf5f3b=>{const _0x82809c=a226_0x2620;if(_0xaf5f3b[_0x82809c(0x111)][_0x82809c(0x152)]()!==_0x4b44d8[_0x82809c(0x152)]())return![];const _0x41cc1a=new URL(_0xaf5f3b[_0x82809c(0x11c)]);if(typeof _0x2d0046===_0x82809c(0x13e))return _0x41cc1a['pathname']===_0x2d0046||_0x41cc1a[_0x82809c(0x14b)][_0x82809c(0x138)](_0x2d0046);return _0x2d0046[_0x82809c(0x145)](_0x41cc1a[_0x82809c(0x14b)]);};}[a226_0x4cdb6b(0x12b)](_0x4f6e81,_0x301729){return _0x5d29d3=>{const _0x4c201b=a226_0x2620;if(!_0x4f6e81(_0x5d29d3))return![];const _0x547aea=new URL(_0x5d29d3[_0x4c201b(0x11c)]);return Object[_0x4c201b(0x135)](_0x301729)['every'](([_0x5787c0,_0x40892b])=>_0x547aea[_0x4c201b(0x116)]['get'](_0x5787c0)===_0x40892b);};}[a226_0x4cdb6b(0x10d)](_0x549ba0,_0x42fe55){return _0x61575a=>{const _0xbbbee8=a226_0x2620;if(!_0x549ba0(_0x61575a))return![];if(typeof _0x42fe55===_0xbbbee8(0x128))return _0x42fe55(_0x61575a[_0xbbbee8(0x157)]);return JSON[_0xbbbee8(0x137)](_0x61575a[_0xbbbee8(0x157)])===JSON['stringify'](_0x42fe55);};}[a226_0x4cdb6b(0x117)](_0x36fb9f,_0x225aeb){return _0x2a9fbd=>{const _0x3cb916=a226_0x2620;if(!_0x36fb9f(_0x2a9fbd))return![];const _0x3dbdac=new URL(_0x2a9fbd['url']);return _0x3dbdac[_0x3cb916(0x115)]===_0x225aeb;};}['register'](_0x859792,_0x446cd7,_0x24124f){const _0x459f6b=a226_0x4cdb6b;this[_0x459f6b(0x14e)][_0x459f6b(0x150)]({'matcher':_0x859792,'responder':_0x446cd7,'matched':![],'matchCount':0x0,'stack':new Error()[_0x459f6b(0x141)]??'','description':_0x24124f?.[_0x459f6b(0x112)]});}[a226_0x4cdb6b(0x132)](_0x2142b0,_0x422437,_0x24176c){const _0xff1e82=a226_0x4cdb6b,_0x512da0=_0x29c28c=>{const _0x3a5575=a226_0x2620;return _0x24176c(_0x29c28c[_0x3a5575(0x157)],_0x29c28c),_0x422437(_0x29c28c);};this[_0xff1e82(0x143)](_0x2142b0,_0x512da0);}static[a226_0x4cdb6b(0x136)](_0x12b0bd,_0x4e0512=0xc8){const _0x28422c=a226_0x4cdb6b;return()=>new Response(JSON[_0x28422c(0x137)](_0x12b0bd),{'status':_0x4e0512,'headers':{'Content-Type':_0x28422c(0x12e)}});}static[a226_0x4cdb6b(0x144)](_0x4165f4,_0x4efc4b,_0x190aad=a226_0x4cdb6b(0x134)){return()=>{const _0x1dd52c=a226_0x2620;let _0x3e4c6b;switch(_0x190aad){case _0x1dd52c(0x12f):_0x3e4c6b={'errors':{'error':_0x4efc4b,'message':_0x4efc4b,'severity':'error','status_code':_0x4165f4}};break;case _0x1dd52c(0x142):_0x3e4c6b={'type':_0x1dd52c(0x114)+_0x4165f4,'title':HTTPMockRegistry[_0x1dd52c(0x11f)](_0x4165f4),'status':_0x4165f4,'detail':_0x4efc4b};break;default:_0x3e4c6b={'error':_0x4efc4b};}return new Response(JSON['stringify'](_0x3e4c6b),{'status':_0x4165f4,'headers':{'Content-Type':'application/json'}});};}static[a226_0x4cdb6b(0x126)](_0x172697,_0x4c285f,_0x666f2f=0xc8){const _0x444cf0=a226_0x4cdb6b;return()=>new Response(JSON[_0x444cf0(0x137)](_0x172697),{'status':_0x666f2f,'headers':{'Content-Type':'application/json',..._0x4c285f}});}static[a226_0x4cdb6b(0x154)](_0x1e3984,_0x16e598=0xc8){return()=>new Response(_0x1e3984,{'status':_0x16e598,'headers':{'Content-Type':'text/plain'}});}static[a226_0x4cdb6b(0x146)](_0xef8dd){return()=>{throw new Error(_0xef8dd);};}['createFetch'](){const _0x50c775=a226_0x4cdb6b;return this[_0x50c775(0x133)]=vi['fn']()[_0x50c775(0x10e)](async(_0x2dbe83,_0x37e66b)=>{const _0x48515f=_0x50c775,_0x2cb6c9=this[_0x48515f(0x110)](_0x2dbe83,_0x37e66b);this[_0x48515f(0x12d)][_0x48515f(0x150)](_0x2cb6c9);for(const _0x513b4c of this[_0x48515f(0x14e)]){if(_0x513b4c[_0x48515f(0x149)](_0x2cb6c9))return _0x513b4c[_0x48515f(0x10f)]=!![],_0x513b4c[_0x48515f(0x14d)]++,_0x513b4c[_0x48515f(0x13f)](_0x2cb6c9);}const _0x2d3bfc=this[_0x48515f(0x14e)][_0x48515f(0x129)]((_0x185829,_0x1bd0f9)=>'\x20\x20'+(_0x1bd0f9+0x1)+'.\x20'+(_0x185829[_0x48515f(0x112)]??'unnamed\x20stub'))[_0x48515f(0x125)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x2cb6c9[_0x48515f(0x111)]+'\x20'+_0x2cb6c9[_0x48515f(0x11c)]+'\x0a'+(_0x48515f(0x11a)+JSON['stringify'](_0x2cb6c9[_0x48515f(0x157)])+'\x0a')+(_0x48515f(0x155)+(_0x2d3bfc||_0x48515f(0x119))));}),this[_0x50c775(0x133)];}[a226_0x4cdb6b(0x110)](_0x25fd03,_0x35bd3f){const _0x1317ec=a226_0x4cdb6b,_0x1e98e5={};if(_0x35bd3f?.['headers']){if(_0x35bd3f[_0x1317ec(0x12c)]instanceof Headers)_0x35bd3f[_0x1317ec(0x12c)]['forEach']((_0x548204,_0x3688b1)=>{const _0x7c9517=_0x1317ec;_0x1e98e5[_0x3688b1[_0x7c9517(0x147)]()]=_0x548204;});else{if(Array[_0x1317ec(0x121)](_0x35bd3f[_0x1317ec(0x12c)]))for(const [_0x174146,_0x96a3f]of _0x35bd3f[_0x1317ec(0x12c)]){_0x1e98e5[_0x174146[_0x1317ec(0x147)]()]=_0x96a3f;}else for(const [_0x5c721b,_0x34d5ae]of Object['entries'](_0x35bd3f[_0x1317ec(0x12c)])){_0x34d5ae!==undefined&&(_0x1e98e5[_0x5c721b['toLowerCase']()]=_0x34d5ae);}}}let _0x2c3aaa;if(_0x35bd3f?.[_0x1317ec(0x157)])try{_0x2c3aaa=JSON['parse'](_0x35bd3f['body']);}catch{_0x2c3aaa=_0x35bd3f[_0x1317ec(0x157)];}return{'method':_0x35bd3f?.['method']??_0x1317ec(0x140),'url':_0x25fd03,'headers':_0x1e98e5,'body':_0x2c3aaa};}['verify'](_0x125c33){const _0x53b383=a226_0x4cdb6b,_0x242985=this[_0x53b383(0x14e)][_0x53b383(0x13a)](_0x38fa4d=>!_0x38fa4d['matched']);if(_0x242985[_0x53b383(0x10c)]>0x0){const _0x1e8e92=_0x242985[_0x53b383(0x129)](_0xf4bf43=>{const _0x5e0e47=_0x53b383,_0x53ab2c=_0xf4bf43[_0x5e0e47(0x112)]?'\x20('+_0xf4bf43['description']+')':'',_0x442d0c=_0xf4bf43[_0x5e0e47(0x141)]['split']('\x0a')[_0x5e0e47(0x13b)](0x2,0x5)[_0x5e0e47(0x125)]('\x0a');return _0x5e0e47(0x14f)+_0x53ab2c+_0x5e0e47(0x139)+_0x442d0c;});_0x125c33[_0x53b383(0x11d)](_0x242985[_0x53b383(0x10c)]+_0x53b383(0x11e)+_0x1e8e92[_0x53b383(0x125)]('\x0a\x0a'));}}[a226_0x4cdb6b(0x14c)](){const _0x36aac5=a226_0x4cdb6b;return[...this[_0x36aac5(0x12d)]];}[a226_0x4cdb6b(0x153)](){const _0x23cf94=a226_0x4cdb6b;return this[_0x23cf94(0x12d)][this[_0x23cf94(0x12d)][_0x23cf94(0x10c)]-0x1];}[a226_0x4cdb6b(0x12a)](_0x4a77fa,_0x27ea18){const _0x936178=a226_0x4cdb6b;return this[_0x936178(0x12d)][_0x936178(0x113)](_0x5d5271=>{const _0xa1188f=_0x936178;if(_0x5d5271[_0xa1188f(0x111)]['toUpperCase']()!==_0x4a77fa['toUpperCase']())return![];if(typeof _0x27ea18===_0xa1188f(0x13e))return _0x5d5271[_0xa1188f(0x11c)][_0xa1188f(0x138)](_0x27ea18);return _0x27ea18[_0xa1188f(0x145)](_0x5d5271[_0xa1188f(0x11c)]);});}['getMatchCount'](_0xb76d9a){const _0x506b87=a226_0x4cdb6b;return this[_0x506b87(0x14e)][_0xb76d9a]?.[_0x506b87(0x14d)]??0x0;}['reset'](){const _0x57f67c=a226_0x4cdb6b;this['stubs']=[],this[_0x57f67c(0x12d)]=[],this[_0x57f67c(0x133)]=null;}static[a226_0x4cdb6b(0x11f)](_0x49dcce){const _0x3c98c0=a226_0x4cdb6b,_0x3a1cf4={0xc8:'OK',0xc9:_0x3c98c0(0x11b),0xcc:_0x3c98c0(0x127),0x190:'Bad\x20Request',0x191:_0x3c98c0(0x14a),0x193:'Forbidden',0x194:_0x3c98c0(0x148),0x199:_0x3c98c0(0x158),0x1a6:_0x3c98c0(0x13d),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x3c98c0(0x122),0x1f6:_0x3c98c0(0x159),0x1f7:_0x3c98c0(0x131)};return _0x3a1cf4[_0x49dcce]??_0x3c98c0(0x123);}}function a226_0x2620(_0x268014,_0x9152da){_0x268014=_0x268014-0x10c;const _0x340240=a226_0x3402();let _0x26201d=_0x340240[_0x268014];return _0x26201d;}function a226_0x3402(){const _0x3eddc6=['join','jsonResponseWithHeaders','No\x20Content','function','map','wasCalled','withQuery','headers','requests','application/json','td-api','1221522cHQGOz','Service\x20Unavailable','registerWithInspector','fetchMock','simple','entries','jsonResponse','stringify','includes','\x20registered\x20at:\x0a','filter','slice','634232LHOVaP','Unprocessable\x20Entity','string','responder','GET','stack','rfc9457','register','errorResponse','test','networkError','toLowerCase','Not\x20Found','matcher','Unauthorized','pathname','getRequests','matchCount','stubs','Unmatched\x20stub','push','39815JmwkNR','toUpperCase','getLastRequest','textResponse','Registered\x20stubs:\x0a','198epyDPq','body','Conflict','Bad\x20Gateway','313152nOqMqA','335592MTKioC','length','withBody','mockImplementation','matched','parseRequest','method','description','some','https://api.treasuredata.com/errors/','host','searchParams','withHost','931482AvdXOH','\x20\x20(none)','Request\x20body:\x20','Created','url','fail','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','getStatusText','50544eKUMHy','isArray','Internal\x20Server\x20Error','Unknown','7iYibCN'];a226_0x3402=function(){return _0x3eddc6;};return a226_0x3402();}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a230_0xeca665=a230_0x306e;(function(_0x305ff0,_0x2b3acd){const _0x474fb6=a230_0x306e,_0x59d798=_0x305ff0();while(!![]){try{const _0x1b2628=parseInt(_0x474fb6(0x15e))/0x1+-parseInt(_0x474fb6(0x165))/0x2+-parseInt(_0x474fb6(0x17a))/0x3+parseInt(_0x474fb6(0x16d))/0x4+parseInt(_0x474fb6(0x154))/0x5*(-parseInt(_0x474fb6(0x162))/0x6)+parseInt(_0x474fb6(0x15b))/0x7*(parseInt(_0x474fb6(0x131))/0x8)+parseInt(_0x474fb6(0x126))/0x9*(parseInt(_0x474fb6(0x161))/0xa);if(_0x1b2628===_0x2b3acd)break;else _0x59d798['push'](_0x59d798['shift']());}catch(_0x419c39){_0x59d798['push'](_0x59d798['shift']());}}}(a230_0x2c60,0x21868));function a230_0x306e(_0x5a3d79,_0x5523e7){_0x5a3d79=_0x5a3d79-0x124;const _0x2c6062=a230_0x2c60();let _0x306e21=_0x2c6062[_0x5a3d79];return _0x306e21;}import{vi}from'vitest';function a230_0x2c60(){const _0xd4f40=['textResponse','Unmatched\x20stub','Conflict','body','matched','requests','reset','networkError','getMatchCount','isArray','createFetch','description','map','method','getStatusText','Unknown','matcher','join','Not\x20Found','responder','length','unnamed\x20stub','matchCount','jsonResponseWithHeaders','url','getLastRequest','parse','entries','mockImplementation','text/plain','slice','GET','forEach','5tOgwOg','No\x20stub\x20matched\x20request:\x20','jsonResponse','toLowerCase','Request\x20body:\x20','Created','application/json','98315jprBEO','Service\x20Unavailable','registerWithInspector','170023GXNpXl','function','Bad\x20Request','168110yjrQia','1110036Vdhkxj','Registered\x20stubs:\x0a','searchParams','434090NpyQZr','parseRequest','getRequests','wasCalled','filter','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Unauthorized','simple','876908XNeVvs','stack','fetchMock','stubs','test','string','Bad\x20Gateway','withHost','rfc9457','push','errorResponse','stringify','headers','642567VVXKKE','register','\x20\x20(none)','toUpperCase','180ZtGhRW','every','REST','pathname','includes','Unprocessable\x20Entity','error','\x20registered\x20at:\x0a','td-api','Too\x20Many\x20Requests','https://api.treasuredata.com/errors/','16binJlM','host'];a230_0x2c60=function(){return _0xd4f40;};return a230_0x2c60();}export class HTTPMockRegistry{[a230_0xeca665(0x170)]=[];[a230_0xeca665(0x138)]=[];[a230_0xeca665(0x16f)]=null;[a230_0xeca665(0x128)](_0x1c7b06,_0x4dd21c){return _0xaa8c41=>{const _0x201dc9=a230_0x306e;if(_0xaa8c41[_0x201dc9(0x140)]['toUpperCase']()!==_0x1c7b06[_0x201dc9(0x125)]())return![];const _0x88e9b2=new URL(_0xaa8c41[_0x201dc9(0x14b)]);if(typeof _0x4dd21c===_0x201dc9(0x172))return _0x88e9b2[_0x201dc9(0x129)]===_0x4dd21c||_0x88e9b2[_0x201dc9(0x129)][_0x201dc9(0x12a)](_0x4dd21c);return _0x4dd21c['test'](_0x88e9b2['pathname']);};}['withQuery'](_0x118fdc,_0x4b98a2){return _0x299c82=>{const _0x373711=a230_0x306e;if(!_0x118fdc(_0x299c82))return![];const _0x11d580=new URL(_0x299c82[_0x373711(0x14b)]);return Object['entries'](_0x4b98a2)[_0x373711(0x127)](([_0x211538,_0x17983d])=>_0x11d580[_0x373711(0x164)]['get'](_0x211538)===_0x17983d);};}['withBody'](_0x3a08cd,_0x464c08){return _0x53e34a=>{const _0x58bcaf=a230_0x306e;if(!_0x3a08cd(_0x53e34a))return![];if(typeof _0x464c08===_0x58bcaf(0x15f))return _0x464c08(_0x53e34a['body']);return JSON[_0x58bcaf(0x178)](_0x53e34a[_0x58bcaf(0x136)])===JSON['stringify'](_0x464c08);};}[a230_0xeca665(0x174)](_0x356e34,_0x4cee56){return _0x4b82a2=>{const _0x10e390=a230_0x306e;if(!_0x356e34(_0x4b82a2))return![];const _0x397a64=new URL(_0x4b82a2[_0x10e390(0x14b)]);return _0x397a64[_0x10e390(0x132)]===_0x4cee56;};}[a230_0xeca665(0x17b)](_0x55ec69,_0x467bac,_0x126a2f){const _0x24aaaf=a230_0xeca665;this['stubs']['push']({'matcher':_0x55ec69,'responder':_0x467bac,'matched':![],'matchCount':0x0,'stack':new Error()[_0x24aaaf(0x16e)]??'','description':_0x126a2f?.[_0x24aaaf(0x13e)]});}[a230_0xeca665(0x15d)](_0xa782f3,_0x5c7cbb,_0x1f1a9d){const _0x5885e4=_0x54a3fd=>{const _0x113fdd=a230_0x306e;return _0x1f1a9d(_0x54a3fd[_0x113fdd(0x136)],_0x54a3fd),_0x5c7cbb(_0x54a3fd);};this['register'](_0xa782f3,_0x5885e4);}static[a230_0xeca665(0x156)](_0x240a5a,_0x263930=0xc8){const _0x45cf16=a230_0xeca665;return()=>new Response(JSON[_0x45cf16(0x178)](_0x240a5a),{'status':_0x263930,'headers':{'Content-Type':_0x45cf16(0x15a)}});}static[a230_0xeca665(0x177)](_0x1d74d8,_0x38072b,_0x980675=a230_0xeca665(0x16c)){return()=>{const _0x2cf11e=a230_0x306e;let _0x3e2045;switch(_0x980675){case _0x2cf11e(0x12e):_0x3e2045={'errors':{'error':_0x38072b,'message':_0x38072b,'severity':_0x2cf11e(0x12c),'status_code':_0x1d74d8}};break;case _0x2cf11e(0x175):_0x3e2045={'type':_0x2cf11e(0x130)+_0x1d74d8,'title':HTTPMockRegistry[_0x2cf11e(0x141)](_0x1d74d8),'status':_0x1d74d8,'detail':_0x38072b};break;default:_0x3e2045={'error':_0x38072b};}return new Response(JSON['stringify'](_0x3e2045),{'status':_0x1d74d8,'headers':{'Content-Type':_0x2cf11e(0x15a)}});};}static[a230_0xeca665(0x14a)](_0x6ba6f5,_0x4816b0,_0x337d98=0xc8){const _0x2a9fd4=a230_0xeca665;return()=>new Response(JSON[_0x2a9fd4(0x178)](_0x6ba6f5),{'status':_0x337d98,'headers':{'Content-Type':_0x2a9fd4(0x15a),..._0x4816b0}});}static[a230_0xeca665(0x133)](_0x4c9c6d,_0x57b597=0xc8){const _0x560f36=a230_0xeca665;return()=>new Response(_0x4c9c6d,{'status':_0x57b597,'headers':{'Content-Type':_0x560f36(0x150)}});}static[a230_0xeca665(0x13a)](_0x2920e6){return()=>{throw new Error(_0x2920e6);};}[a230_0xeca665(0x13d)](){const _0x3387f6=a230_0xeca665;return this[_0x3387f6(0x16f)]=vi['fn']()[_0x3387f6(0x14f)](async(_0x1c3041,_0x3542b6)=>{const _0x2e3089=_0x3387f6,_0x2af61f=this[_0x2e3089(0x166)](_0x1c3041,_0x3542b6);this['requests'][_0x2e3089(0x176)](_0x2af61f);for(const _0x345f8b of this[_0x2e3089(0x170)]){if(_0x345f8b[_0x2e3089(0x143)](_0x2af61f))return _0x345f8b['matched']=!![],_0x345f8b['matchCount']++,_0x345f8b[_0x2e3089(0x146)](_0x2af61f);}const _0x390c27=this['stubs'][_0x2e3089(0x13f)]((_0x4d3d35,_0x974b7c)=>'\x20\x20'+(_0x974b7c+0x1)+'.\x20'+(_0x4d3d35[_0x2e3089(0x13e)]??_0x2e3089(0x148)))['join']('\x0a');throw new Error(_0x2e3089(0x155)+_0x2af61f[_0x2e3089(0x140)]+'\x20'+_0x2af61f[_0x2e3089(0x14b)]+'\x0a'+(_0x2e3089(0x158)+JSON[_0x2e3089(0x178)](_0x2af61f[_0x2e3089(0x136)])+'\x0a')+(_0x2e3089(0x163)+(_0x390c27||_0x2e3089(0x124))));}),this[_0x3387f6(0x16f)];}[a230_0xeca665(0x166)](_0x3cfb7b,_0x20310d){const _0x3bf009=a230_0xeca665,_0x5cc0d6={};if(_0x20310d?.[_0x3bf009(0x179)]){if(_0x20310d[_0x3bf009(0x179)]instanceof Headers)_0x20310d[_0x3bf009(0x179)][_0x3bf009(0x153)]((_0x476273,_0x3c0f89)=>{const _0x89e501=_0x3bf009;_0x5cc0d6[_0x3c0f89[_0x89e501(0x157)]()]=_0x476273;});else{if(Array[_0x3bf009(0x13c)](_0x20310d[_0x3bf009(0x179)]))for(const [_0x1fa27e,_0xc757ec]of _0x20310d[_0x3bf009(0x179)]){_0x5cc0d6[_0x1fa27e[_0x3bf009(0x157)]()]=_0xc757ec;}else for(const [_0x2d5429,_0x34662a]of Object[_0x3bf009(0x14e)](_0x20310d[_0x3bf009(0x179)])){_0x34662a!==undefined&&(_0x5cc0d6[_0x2d5429[_0x3bf009(0x157)]()]=_0x34662a);}}}let _0x4063d7;if(_0x20310d?.['body'])try{_0x4063d7=JSON[_0x3bf009(0x14d)](_0x20310d[_0x3bf009(0x136)]);}catch{_0x4063d7=_0x20310d[_0x3bf009(0x136)];}return{'method':_0x20310d?.['method']??_0x3bf009(0x152),'url':_0x3cfb7b,'headers':_0x5cc0d6,'body':_0x4063d7};}['verify'](_0x46ce78){const _0x1d7e43=a230_0xeca665,_0x2c6472=this['stubs'][_0x1d7e43(0x169)](_0x5c6e5e=>!_0x5c6e5e[_0x1d7e43(0x137)]);if(_0x2c6472[_0x1d7e43(0x147)]>0x0){const _0x271fca=_0x2c6472[_0x1d7e43(0x13f)](_0xf4e49e=>{const _0x5c9543=_0x1d7e43,_0x590cde=_0xf4e49e['description']?'\x20('+_0xf4e49e['description']+')':'',_0x38793a=_0xf4e49e[_0x5c9543(0x16e)]['split']('\x0a')[_0x5c9543(0x151)](0x2,0x5)[_0x5c9543(0x144)]('\x0a');return _0x5c9543(0x134)+_0x590cde+_0x5c9543(0x12d)+_0x38793a;});_0x46ce78['fail'](_0x2c6472[_0x1d7e43(0x147)]+_0x1d7e43(0x16a)+_0x271fca[_0x1d7e43(0x144)]('\x0a\x0a'));}}[a230_0xeca665(0x167)](){return[...this['requests']];}[a230_0xeca665(0x14c)](){const _0x45f3c0=a230_0xeca665;return this[_0x45f3c0(0x138)][this[_0x45f3c0(0x138)][_0x45f3c0(0x147)]-0x1];}[a230_0xeca665(0x168)](_0x10f2ea,_0x321ea1){const _0x4efe32=a230_0xeca665;return this[_0x4efe32(0x138)]['some'](_0x7c6719=>{const _0x56b1ec=_0x4efe32;if(_0x7c6719['method'][_0x56b1ec(0x125)]()!==_0x10f2ea[_0x56b1ec(0x125)]())return![];if(typeof _0x321ea1===_0x56b1ec(0x172))return _0x7c6719[_0x56b1ec(0x14b)][_0x56b1ec(0x12a)](_0x321ea1);return _0x321ea1[_0x56b1ec(0x171)](_0x7c6719[_0x56b1ec(0x14b)]);});}[a230_0xeca665(0x13b)](_0x1a0bac){const _0x1174d4=a230_0xeca665;return this[_0x1174d4(0x170)][_0x1a0bac]?.[_0x1174d4(0x149)]??0x0;}[a230_0xeca665(0x139)](){const _0x4137b1=a230_0xeca665;this[_0x4137b1(0x170)]=[],this['requests']=[],this[_0x4137b1(0x16f)]=null;}static[a230_0xeca665(0x141)](_0xf4390f){const _0xd7a7fa=a230_0xeca665,_0xc291e4={0xc8:'OK',0xc9:_0xd7a7fa(0x159),0xcc:'No\x20Content',0x190:_0xd7a7fa(0x160),0x191:_0xd7a7fa(0x16b),0x193:'Forbidden',0x194:_0xd7a7fa(0x145),0x199:_0xd7a7fa(0x135),0x1a6:_0xd7a7fa(0x12b),0x1ad:_0xd7a7fa(0x12f),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0xd7a7fa(0x173),0x1f7:_0xd7a7fa(0x15c)};return _0xc291e4[_0xf4390f]??_0xd7a7fa(0x142);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x4d2d4e,_0x4af21d){var _0x3b14f9=a227_0x1855,_0x111a15=_0x4d2d4e();while(!![]){try{var _0x40c910=-parseInt(_0x3b14f9(0x12c))/0x1+-parseInt(_0x3b14f9(0x12f))/0x2+parseInt(_0x3b14f9(0x128))/0x3+parseInt(_0x3b14f9(0x12d))/0x4+-parseInt(_0x3b14f9(0x12a))/0x5+parseInt(_0x3b14f9(0x12b))/0x6+parseInt(_0x3b14f9(0x12e))/0x7*(parseInt(_0x3b14f9(0x129))/0x8);if(_0x40c910===_0x4af21d)break;else _0x111a15['push'](_0x111a15['shift']());}catch(_0x5be08d){_0x111a15['push'](_0x111a15['shift']());}}}(a227_0x3fbe,0xceff1));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a227_0x3fbe(){var _0x4fc59d=['3112086LmpCNb','822346ojInHy','4791208hFBgLr','135639bWONVt','639334EiPGcX','1873989UBiovm','104hkXpry','3015885jlpZsG'];a227_0x3fbe=function(){return _0x4fc59d;};return a227_0x3fbe();}function a227_0x1855(_0x3439a8,_0x5b0dcd){_0x3439a8=_0x3439a8-0x128;var _0x3fbe7d=a227_0x3fbe();var _0x18559c=_0x3fbe7d[_0x3439a8];return _0x18559c;}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(_0x1e746b,_0x1a56ca){var _0x22dff0=a231_0x9e70,_0x2b9c11=_0x1e746b();while(!![]){try{var _0x20748d=-parseInt(_0x22dff0(0x1c2))/0x1+parseInt(_0x22dff0(0x1c5))/0x2*(parseInt(_0x22dff0(0x1c3))/0x3)+-parseInt(_0x22dff0(0x1c6))/0x4*(-parseInt(_0x22dff0(0x1c9))/0x5)+parseInt(_0x22dff0(0x1c4))/0x6+-parseInt(_0x22dff0(0x1c7))/0x7+parseInt(_0x22dff0(0x1c8))/0x8+-parseInt(_0x22dff0(0x1c1))/0x9;if(_0x20748d===_0x1a56ca)break;else _0x2b9c11['push'](_0x2b9c11['shift']());}catch(_0x32f998){_0x2b9c11['push'](_0x2b9c11['shift']());}}}(a231_0x24b2,0xd4252));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a231_0x24b2(){var _0x5ce7cb=['7261120zFUIpS','15yGUveN','6085143XZweLg','1365331qhmtXG','12qbaKrn','4457892GAGZBY','204090ZrbRzh','1979756YQefcJ','4432505CgOXfO'];a231_0x24b2=function(){return _0x5ce7cb;};return a231_0x24b2();}function a231_0x9e70(_0x41270f,_0x47a7ce){_0x41270f=_0x41270f-0x1c1;var _0x24b26e=a231_0x24b2();var _0x9e70b1=_0x24b26e[_0x41270f];return _0x9e70b1;}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 a228_0x330a(_0x3030ae,_0x546040){_0x3030ae=_0x3030ae-0x1e8;const _0x3b3fb6=a228_0x3b3f();let _0x330a43=_0x3b3fb6[_0x3030ae];return _0x330a43;}(function(_0x40be9d,_0xc5d146){const _0x27fd7e=a228_0x330a,_0x1a6fc9=_0x40be9d();while(!![]){try{const _0xdf5194=parseInt(_0x27fd7e(0x1eb))/0x1*(parseInt(_0x27fd7e(0x1ec))/0x2)+parseInt(_0x27fd7e(0x1e9))/0x3*(-parseInt(_0x27fd7e(0x1ed))/0x4)+-parseInt(_0x27fd7e(0x1e8))/0x5+-parseInt(_0x27fd7e(0x1ee))/0x6*(parseInt(_0x27fd7e(0x1ea))/0x7)+-parseInt(_0x27fd7e(0x1f2))/0x8+parseInt(_0x27fd7e(0x1ef))/0x9+parseInt(_0x27fd7e(0x1f0))/0xa;if(_0xdf5194===_0xc5d146)break;else _0x1a6fc9['push'](_0x1a6fc9['shift']());}catch(_0x200431){_0x1a6fc9['push'](_0x1a6fc9['shift']());}}}(a228_0x3b3f,0x9132e));export async function batchAsync(_0x4579cc,_0x3f0d2e,_0x34a6dc=0xa){const _0x40e7d8=a228_0x330a,_0x4fb661=[];for(let _0x2ba91f=0x0;_0x2ba91f<_0x4579cc['length'];_0x2ba91f+=_0x34a6dc){const _0x5871eb=_0x4579cc['slice'](_0x2ba91f,_0x2ba91f+_0x34a6dc),_0x8c7416=await Promise['all'](_0x5871eb[_0x40e7d8(0x1f1)](_0x3f0d2e));_0x4fb661['push'](..._0x8c7416);}return _0x4fb661;}function a228_0x3b3f(){const _0x3280f1=['25968870qHBrrw','map','7467880IMUxuT','5667365suxraD','126465MLceBo','7857626WFcWeg','52979YZISBg','30tEnVed','24kclpeS','6gXXKxc','5810112BPDZvu'];a228_0x3b3f=function(){return _0x3280f1;};return a228_0x3b3f();}
1
+ function a232_0x3c61(_0x1bf5ce,_0x5609fe){_0x1bf5ce=_0x1bf5ce-0x1a7;const _0xbee738=a232_0xbee7();let _0x3c6189=_0xbee738[_0x1bf5ce];return _0x3c6189;}function a232_0xbee7(){const _0x5eaa58=['12Ddgwrk','slice','196loaNmW','length','14316xzmqLh','all','15046570YykMre','3712665KSbeMr','4lPBxVn','6853608liRoag','519633GACXPS','13545423IhKgEe','push','2680090ZQGSWB'];a232_0xbee7=function(){return _0x5eaa58;};return a232_0xbee7();}(function(_0x264b46,_0x580faa){const _0x3e4da2=a232_0x3c61,_0xd05d28=_0x264b46();while(!![]){try{const _0x18454c=-parseInt(_0x3e4da2(0x1aa))/0x1*(parseInt(_0x3e4da2(0x1ac))/0x2)+-parseInt(_0x3e4da2(0x1b2))/0x3*(parseInt(_0x3e4da2(0x1b0))/0x4)+parseInt(_0x3e4da2(0x1af))/0x5+parseInt(_0x3e4da2(0x1a8))/0x6*(parseInt(_0x3e4da2(0x1a7))/0x7)+parseInt(_0x3e4da2(0x1b1))/0x8+parseInt(_0x3e4da2(0x1b3))/0x9+-parseInt(_0x3e4da2(0x1ae))/0xa;if(_0x18454c===_0x580faa)break;else _0xd05d28['push'](_0xd05d28['shift']());}catch(_0x591f3f){_0xd05d28['push'](_0xd05d28['shift']());}}}(a232_0xbee7,0xc0ac1));export async function batchAsync(_0x2e1945,_0x3b299c,_0x4510f3=0xa){const _0x3a0e9a=a232_0x3c61,_0x3a63f3=[];for(let _0x55f969=0x0;_0x55f969<_0x2e1945[_0x3a0e9a(0x1ab)];_0x55f969+=_0x4510f3){const _0x4ccba7=_0x2e1945[_0x3a0e9a(0x1a9)](_0x55f969,_0x55f969+_0x4510f3),_0x3306db=await Promise[_0x3a0e9a(0x1ad)](_0x4ccba7['map'](_0x3b299c));_0x3a63f3[_0x3a0e9a(0x1b4)](..._0x3306db);}return _0x3a63f3;}
@@ -1 +1 @@
1
- (function(_0x2f3505,_0x50e570){const _0x480411=a229_0x37ed,_0x352b7b=_0x2f3505();while(!![]){try{const _0x30fc84=parseInt(_0x480411(0x14f))/0x1+parseInt(_0x480411(0x15e))/0x2*(parseInt(_0x480411(0x153))/0x3)+parseInt(_0x480411(0x167))/0x4*(-parseInt(_0x480411(0x161))/0x5)+-parseInt(_0x480411(0x168))/0x6+-parseInt(_0x480411(0x16d))/0x7*(parseInt(_0x480411(0x155))/0x8)+parseInt(_0x480411(0x14e))/0x9+parseInt(_0x480411(0x16b))/0xa*(parseInt(_0x480411(0x160))/0xb);if(_0x30fc84===_0x50e570)break;else _0x352b7b['push'](_0x352b7b['shift']());}catch(_0xba0e39){_0x352b7b['push'](_0x352b7b['shift']());}}}(a229_0x500e,0x73898));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){const _0x51718b=a229_0x37ed;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x51718b(0x165));}function a229_0x500e(){const _0x691414=['https://github.com/','200qNxyRX','known_marketplaces.json','projects','installed_plugins.json','isArray','.claude.json','replace','parse','trim','72026ibICfD','utf-8','1771odxXFG','6445QCdlBx','.json','.mcp.json','source','.claude','object','648TbuxMn','1289748cBPPXh','mcpServers','repo','45190KNeeqc','string','163891jolnoL','1535328ugUFHy','332099qfGEfh','plugins','toLowerCase','url','21LIBjoZ'];a229_0x500e=function(){return _0x691414;};return a229_0x500e();}function getClaudeJsonPath(){const _0x27d547=a229_0x37ed,_0x2bd2dc=getClaudeConfigDir(),_0x477649=join(_0x2bd2dc,_0x27d547(0x15a));return existsSync(_0x477649)?_0x477649:_0x2bd2dc+_0x27d547(0x162);}function readJsonFile(_0x2417bb){const _0x6b9042=a229_0x37ed;if(!existsSync(_0x2417bb))return undefined;try{return JSON[_0x6b9042(0x15c)](readFileSync(_0x2417bb,_0x6b9042(0x15f)));}catch{return undefined;}}function asRecord(_0xf2b888){const _0x33af5b=a229_0x37ed;return typeof _0xf2b888===_0x33af5b(0x166)&&_0xf2b888!==null&&!Array[_0x33af5b(0x159)](_0xf2b888)?_0xf2b888:undefined;}function a229_0x37ed(_0x346f54,_0x2c2c61){_0x346f54=_0x346f54-0x14e;const _0x500e47=a229_0x500e();let _0x37ed16=_0x500e47[_0x346f54];return _0x37ed16;}function mcpServerUrl(_0x3b0d35,_0x2be5f6){const _0x5b3b4e=a229_0x37ed,_0x4e94c4=asRecord(asRecord(_0x3b0d35)?.[_0x2be5f6]);return typeof _0x4e94c4?.[_0x5b3b4e(0x152)]===_0x5b3b4e(0x16c)?_0x4e94c4['url']:undefined;}export function findMcpServerUrl(_0x3fce80,_0x15b193){const _0x2745ce=a229_0x37ed,_0x5a3611=asRecord(readJsonFile(getClaudeJsonPath())),_0x2210f4=asRecord(asRecord(_0x5a3611?.[_0x2745ce(0x157)])?.[_0x15b193]),_0x50ce33=mcpServerUrl(_0x2210f4?.[_0x2745ce(0x169)],_0x3fce80);if(_0x50ce33)return _0x50ce33;const _0x570624=mcpServerUrl(_0x5a3611?.[_0x2745ce(0x169)],_0x3fce80);if(_0x570624)return _0x570624;return mcpServerUrl(asRecord(readJsonFile(join(_0x15b193,_0x2745ce(0x163))))?.[_0x2745ce(0x169)],_0x3fce80);}export function normalizeRepoUrl(_0x2e6d51){const _0x22f53d=a229_0x37ed;return _0x2e6d51[_0x22f53d(0x15d)]()[_0x22f53d(0x151)]()['replace'](/\.git$/,'')[_0x22f53d(0x15b)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x3ba384){const _0x5a7db7=a229_0x37ed,_0xe1263d=join(getClaudeConfigDir(),'plugins',_0x5a7db7(0x156)),_0x14a548=asRecord(asRecord(readJsonFile(_0xe1263d))?.[_0x3ba384])?.[_0x5a7db7(0x164)],_0x4667a6=asRecord(_0x14a548);if(!_0x4667a6)return undefined;if(typeof _0x4667a6[_0x5a7db7(0x152)]==='string')return normalizeRepoUrl(_0x4667a6[_0x5a7db7(0x152)]);if(typeof _0x4667a6[_0x5a7db7(0x16a)]===_0x5a7db7(0x16c))return normalizeRepoUrl(_0x5a7db7(0x154)+_0x4667a6['repo']);return undefined;}export function isPluginInstalled(_0x329fd0,_0xbe01a3){const _0x5b41d0=a229_0x37ed,_0x37360b=join(getClaudeConfigDir(),_0x5b41d0(0x150),_0x5b41d0(0x158)),_0x36797f=readJsonFile(_0x37360b),_0x3ea824=_0x36797f?.[_0x5b41d0(0x150)]?.[_0x329fd0+'@'+_0xbe01a3];return Array[_0x5b41d0(0x159)](_0x3ea824)&&_0x3ea824['length']>0x0;}
1
+ (function(_0x2eb7c3,_0x8781fc){const _0x19d31a=a233_0xeadc,_0x498d00=_0x2eb7c3();while(!![]){try{const _0x5f0a66=parseInt(_0x19d31a(0xec))/0x1+-parseInt(_0x19d31a(0xf3))/0x2+parseInt(_0x19d31a(0xfa))/0x3+parseInt(_0x19d31a(0xff))/0x4*(-parseInt(_0x19d31a(0x104))/0x5)+-parseInt(_0x19d31a(0xfe))/0x6*(-parseInt(_0x19d31a(0xf7))/0x7)+parseInt(_0x19d31a(0xf6))/0x8*(-parseInt(_0x19d31a(0x101))/0x9)+parseInt(_0x19d31a(0xf1))/0xa;if(_0x5f0a66===_0x8781fc)break;else _0x498d00['push'](_0x498d00['shift']());}catch(_0x5a384c){_0x498d00['push'](_0x498d00['shift']());}}}(a233_0x24ec,0x9e745));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a233_0xeadc(_0x43e09d,_0x4b204c){_0x43e09d=_0x43e09d-0xec;const _0x24ec59=a233_0x24ec();let _0xeadcbd=_0x24ec59[_0x43e09d];return _0xeadcbd;}export function getClaudeConfigDir(){const _0x3502de=a233_0xeadc;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x3502de(0xfb));}function a233_0x24ec(){const _0x1dd625=['isArray','2553090iRDlqa','plugins','mcpServers','8VXUUmk','7MsoKxh','utf-8','known_marketplaces.json','2711547ytAMOs','.claude','string','url','3162114gKWrUG','8lrZdgK','trim','2080962gZIouO','https://github.com/','replace','1022665PAQkaP','installed_plugins.json','object','1010616nRnIiJ','.json','parse','repo','.claude.json','1243740WhXXiI'];a233_0x24ec=function(){return _0x1dd625;};return a233_0x24ec();}function getClaudeJsonPath(){const _0xe719ab=a233_0xeadc,_0x56cbfd=getClaudeConfigDir(),_0x10c184=join(_0x56cbfd,_0xe719ab(0xf0));return existsSync(_0x10c184)?_0x10c184:_0x56cbfd+_0xe719ab(0xed);}function readJsonFile(_0x2b1d7d){const _0x4bcce8=a233_0xeadc;if(!existsSync(_0x2b1d7d))return undefined;try{return JSON[_0x4bcce8(0xee)](readFileSync(_0x2b1d7d,_0x4bcce8(0xf8)));}catch{return undefined;}}function asRecord(_0x5d8273){const _0x4798e1=a233_0xeadc;return typeof _0x5d8273===_0x4798e1(0x106)&&_0x5d8273!==null&&!Array[_0x4798e1(0xf2)](_0x5d8273)?_0x5d8273:undefined;}function mcpServerUrl(_0xe80805,_0x5374c4){const _0x526cec=a233_0xeadc,_0x3e98d3=asRecord(asRecord(_0xe80805)?.[_0x5374c4]);return typeof _0x3e98d3?.[_0x526cec(0xfd)]===_0x526cec(0xfc)?_0x3e98d3[_0x526cec(0xfd)]:undefined;}export function findMcpServerUrl(_0x285aff,_0xcd3440){const _0x50e153=a233_0xeadc,_0x236bb=asRecord(readJsonFile(getClaudeJsonPath())),_0x336b78=asRecord(asRecord(_0x236bb?.['projects'])?.[_0xcd3440]),_0x4ea9fd=mcpServerUrl(_0x336b78?.[_0x50e153(0xf5)],_0x285aff);if(_0x4ea9fd)return _0x4ea9fd;const _0x42992f=mcpServerUrl(_0x236bb?.[_0x50e153(0xf5)],_0x285aff);if(_0x42992f)return _0x42992f;return mcpServerUrl(asRecord(readJsonFile(join(_0xcd3440,'.mcp.json')))?.[_0x50e153(0xf5)],_0x285aff);}export function normalizeRepoUrl(_0x3b6b9c){const _0x394e92=a233_0xeadc;return _0x3b6b9c[_0x394e92(0x100)]()['toLowerCase']()[_0x394e92(0x103)](/\.git$/,'')[_0x394e92(0x103)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x1ba5f6){const _0x46db74=a233_0xeadc,_0x51a2c3=join(getClaudeConfigDir(),_0x46db74(0xf4),_0x46db74(0xf9)),_0x55b7a3=asRecord(asRecord(readJsonFile(_0x51a2c3))?.[_0x1ba5f6])?.['source'],_0x287816=asRecord(_0x55b7a3);if(!_0x287816)return undefined;if(typeof _0x287816[_0x46db74(0xfd)]===_0x46db74(0xfc))return normalizeRepoUrl(_0x287816[_0x46db74(0xfd)]);if(typeof _0x287816[_0x46db74(0xef)]===_0x46db74(0xfc))return normalizeRepoUrl(_0x46db74(0x102)+_0x287816['repo']);return undefined;}export function isPluginInstalled(_0x2c751b,_0x1882a1){const _0x508009=a233_0xeadc,_0x15feb8=join(getClaudeConfigDir(),_0x508009(0xf4),_0x508009(0x105)),_0x501c5b=readJsonFile(_0x15feb8),_0x5bdd6b=_0x501c5b?.['plugins']?.[_0x2c751b+'@'+_0x1882a1];return Array[_0x508009(0xf2)](_0x5bdd6b)&&_0x5bdd6b['length']>0x0;}
@@ -1 +1 @@
1
- const a230_0x40d0c2=a230_0x2c81;(function(_0x195355,_0x51e805){const _0x33fd1a=a230_0x2c81,_0x54dca6=_0x195355();while(!![]){try{const _0xd5e04b=parseInt(_0x33fd1a(0x1d8))/0x1+parseInt(_0x33fd1a(0x1c8))/0x2+parseInt(_0x33fd1a(0x1c6))/0x3*(parseInt(_0x33fd1a(0x1c7))/0x4)+-parseInt(_0x33fd1a(0x1c3))/0x5+parseInt(_0x33fd1a(0x1d6))/0x6+parseInt(_0x33fd1a(0x1dc))/0x7+parseInt(_0x33fd1a(0x1d4))/0x8*(-parseInt(_0x33fd1a(0x1d2))/0x9);if(_0xd5e04b===_0x51e805)break;else _0x54dca6['push'](_0x54dca6['shift']());}catch(_0x4a7328){_0x54dca6['push'](_0x54dca6['shift']());}}}(a230_0x5d3a,0xc013b));import*as a230_0x29f875 from'chalk';const Chalk=a230_0x29f875[a230_0x40d0c2(0x1c4)];export function shouldUseColor(_0x456427={}){const _0x595e9f=a230_0x40d0c2;if(_0x456427[_0x595e9f(0x1d1)]===!![])return![];if(_0x456427[_0x595e9f(0x1dd)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x595e9f(0x1df)][_0x595e9f(0x1de)]??![];}function a230_0x2c81(_0x3c3858,_0x3aeea5){_0x3c3858=_0x3c3858-0x1c2;const _0x5d3aea=a230_0x5d3a();let _0x2c81d5=_0x5d3aea[_0x3c3858];return _0x2c81d5;}export function getChalk(_0x47e709={}){if(shouldUseColor(_0x47e709))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}function a230_0x5d3a(){const _0x579d6d=['9799342mGIYby','color','isTTY','stdout','null','join','3537320ZWoNQV','Chalk','map','417ZrNafV','15216itOwFp','103408KKwOOE','green','object','length','repeat','yellow','dim','boolean','entries','noColor','6358509jCxgSv','string','24CNCsyb','isArray','2456460TVniGK','stringify','1223938uLGrXL','number','blue','cyan'];a230_0x5d3a=function(){return _0x579d6d;};return a230_0x5d3a();}export function colorBorder(_0x4eaff7,_0x1d889f={}){return getChalk(_0x1d889f)['dim'](_0x4eaff7);}export function colorHeader(_0x2b8b31,_0xe76019={}){const _0x4de1e5=a230_0x40d0c2;return getChalk(_0xe76019)[_0x4de1e5(0x1db)](_0x2b8b31);}export function colorType(_0x3e7bdb,_0x404944={}){const _0x2cf606=a230_0x40d0c2;return getChalk(_0x404944)[_0x2cf606(0x1ce)](_0x3e7bdb);}export function colorJSONKey(_0x4242e1,_0x112351={}){const _0x5d64b9=a230_0x40d0c2;return getChalk(_0x112351)[_0x5d64b9(0x1da)](_0x4242e1);}export function colorJSONString(_0x789f38,_0x3dfb0a={}){const _0x1cbcd3=a230_0x40d0c2;return getChalk(_0x3dfb0a)[_0x1cbcd3(0x1c9)](_0x789f38);}export function colorJSONNumber(_0xea8322,_0x1b0db3={}){const _0xaddbd0=a230_0x40d0c2;return getChalk(_0x1b0db3)[_0xaddbd0(0x1db)](_0xea8322);}export function colorJSONBoolean(_0xd2f12b,_0x12cdb8={}){const _0x43beb4=a230_0x40d0c2;return getChalk(_0x12cdb8)[_0x43beb4(0x1cd)](_0xd2f12b);}export function colorJSONNull(_0x59fbff,_0x5bb29f={}){const _0x343aa4=a230_0x40d0c2;return getChalk(_0x5bb29f)[_0x343aa4(0x1ce)](_0x59fbff);}export function colorizeJSONCompact(_0x16d564,_0xe8cca3={}){const _0x251412=a230_0x40d0c2;if(!shouldUseColor(_0xe8cca3))return JSON[_0x251412(0x1d7)](_0x16d564);if(_0x16d564===null)return colorJSONNull(_0x251412(0x1e0),_0xe8cca3);if(typeof _0x16d564==='boolean')return colorJSONBoolean(String(_0x16d564),_0xe8cca3);if(typeof _0x16d564==='number')return colorJSONNumber(String(_0x16d564),_0xe8cca3);if(typeof _0x16d564===_0x251412(0x1d3))return colorJSONString(JSON[_0x251412(0x1d7)](_0x16d564),_0xe8cca3);if(Array[_0x251412(0x1d5)](_0x16d564)){if(_0x16d564[_0x251412(0x1cb)]===0x0)return'[]';const _0x1f87b5=_0x16d564[_0x251412(0x1c5)](_0x2dcd2f=>colorizeJSONCompact(_0x2dcd2f,_0xe8cca3));return'['+_0x1f87b5[_0x251412(0x1c2)](',')+']';}if(typeof _0x16d564===_0x251412(0x1ca)){const _0x6911e=Object[_0x251412(0x1d0)](_0x16d564);if(_0x6911e['length']===0x0)return'{}';const _0x1723cc=_0x6911e[_0x251412(0x1c5)](([_0x27b8c0,_0x20445d])=>{const _0x31fe12=_0x251412,_0x58a946=colorJSONKey(JSON[_0x31fe12(0x1d7)](_0x27b8c0),_0xe8cca3),_0x4d4974=colorizeJSONCompact(_0x20445d,_0xe8cca3);return _0x58a946+':'+_0x4d4974;});return'{'+_0x1723cc['join'](',')+'}';}return String(_0x16d564);}export function colorizeJSON(_0xfa6fc4,_0x279ad1={},_0x3a3562=0x0){const _0x339cf8=a230_0x40d0c2;if(!shouldUseColor(_0x279ad1))return JSON['stringify'](_0xfa6fc4,null,0x2);const _0x1da926='\x20'[_0x339cf8(0x1cc)](_0x3a3562),_0x224533=_0x3a3562+0x2;if(_0xfa6fc4===null)return colorJSONNull(_0x339cf8(0x1e0),_0x279ad1);if(typeof _0xfa6fc4===_0x339cf8(0x1cf))return colorJSONBoolean(String(_0xfa6fc4),_0x279ad1);if(typeof _0xfa6fc4===_0x339cf8(0x1d9))return colorJSONNumber(String(_0xfa6fc4),_0x279ad1);if(typeof _0xfa6fc4==='string')return colorJSONString(JSON[_0x339cf8(0x1d7)](_0xfa6fc4),_0x279ad1);if(Array[_0x339cf8(0x1d5)](_0xfa6fc4)){if(_0xfa6fc4[_0x339cf8(0x1cb)]===0x0)return'[]';const _0x3cfff6=_0xfa6fc4['map'](_0x28098f=>{const _0x4af7ce=_0x339cf8,_0x2a8a65=colorizeJSON(_0x28098f,_0x279ad1,_0x224533);return''+'\x20'[_0x4af7ce(0x1cc)](_0x224533)+_0x2a8a65;});return'[\x0a'+_0x3cfff6[_0x339cf8(0x1c2)](',\x0a')+('\x0a'+_0x1da926+']');}if(typeof _0xfa6fc4==='object'){const _0x32ea18=Object['entries'](_0xfa6fc4);if(_0x32ea18[_0x339cf8(0x1cb)]===0x0)return'{}';const _0x1c4264=_0x32ea18[_0x339cf8(0x1c5)](([_0x40e620,_0x16e78f])=>{const _0x8dab25=_0x339cf8,_0x3890f2=colorJSONKey(JSON[_0x8dab25(0x1d7)](_0x40e620),_0x279ad1),_0x313404=colorizeJSON(_0x16e78f,_0x279ad1,_0x224533);return''+'\x20'[_0x8dab25(0x1cc)](_0x224533)+_0x3890f2+':\x20'+_0x313404;});return'{\x0a'+_0x1c4264[_0x339cf8(0x1c2)](',\x0a')+('\x0a'+_0x1da926+'}');}return String(_0xfa6fc4);}
1
+ const a234_0x240c7c=a234_0x376a;(function(_0x4d60a2,_0x208e47){const _0x57379e=a234_0x376a,_0xc8bb25=_0x4d60a2();while(!![]){try{const _0x34f0de=-parseInt(_0x57379e(0x148))/0x1*(parseInt(_0x57379e(0x15b))/0x2)+-parseInt(_0x57379e(0x13f))/0x3*(-parseInt(_0x57379e(0x149))/0x4)+-parseInt(_0x57379e(0x159))/0x5+parseInt(_0x57379e(0x14d))/0x6*(parseInt(_0x57379e(0x155))/0x7)+-parseInt(_0x57379e(0x145))/0x8*(-parseInt(_0x57379e(0x157))/0x9)+parseInt(_0x57379e(0x146))/0xa*(parseInt(_0x57379e(0x156))/0xb)+parseInt(_0x57379e(0x14e))/0xc;if(_0x34f0de===_0x208e47)break;else _0xc8bb25['push'](_0xc8bb25['shift']());}catch(_0x586ebc){_0xc8bb25['push'](_0xc8bb25['shift']());}}}(a234_0x2e4e,0x8383d));import*as a234_0x81317a from'chalk';const Chalk=a234_0x81317a[a234_0x240c7c(0x153)];export function shouldUseColor(_0x5a6b12={}){const _0x3fca03=a234_0x240c7c;if(_0x5a6b12[_0x3fca03(0x15a)]===!![])return![];if(_0x5a6b12[_0x3fca03(0x141)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3fca03(0x144)][_0x3fca03(0x143)]??![];}export function getChalk(_0x1e01bb={}){if(shouldUseColor(_0x1e01bb))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x352c5d,_0x369bda={}){const _0x5bc8a4=a234_0x240c7c;return getChalk(_0x369bda)[_0x5bc8a4(0x152)](_0x352c5d);}export function colorHeader(_0x16461d,_0x3c28f5={}){const _0x3348ef=a234_0x240c7c;return getChalk(_0x3c28f5)[_0x3348ef(0x158)](_0x16461d);}export function colorType(_0x499277,_0x3bc6c0={}){return getChalk(_0x3bc6c0)['dim'](_0x499277);}export function colorJSONKey(_0x2e68ec,_0x6e579f={}){return getChalk(_0x6e579f)['blue'](_0x2e68ec);}function a234_0x2e4e(){const _0x15eba8=['isArray','dim','Chalk','object','38451ZDOHgU','1075382sZgMVH','1212291FLLdYy','cyan','234170SWbSJG','noColor','121812zRaHJv','repeat','entries','75078yXelcf','boolean','color','map','isTTY','stdout','16FJPAqY','50HRchJi','join','13QDCkEy','20tQmAOp','number','null','yellow','354kACIbk','2038464mgKvma','length','stringify'];a234_0x2e4e=function(){return _0x15eba8;};return a234_0x2e4e();}function a234_0x376a(_0x23ff34,_0x482523){_0x23ff34=_0x23ff34-0x13d;const _0x2e4ef6=a234_0x2e4e();let _0x376a71=_0x2e4ef6[_0x23ff34];return _0x376a71;}export function colorJSONString(_0x2dd43b,_0x1e9e84={}){return getChalk(_0x1e9e84)['green'](_0x2dd43b);}export function colorJSONNumber(_0x684871,_0x56ffcd={}){const _0x1ec65a=a234_0x240c7c;return getChalk(_0x56ffcd)[_0x1ec65a(0x158)](_0x684871);}export function colorJSONBoolean(_0x5c90b7,_0x1cb0e6={}){const _0x7234b5=a234_0x240c7c;return getChalk(_0x1cb0e6)[_0x7234b5(0x14c)](_0x5c90b7);}export function colorJSONNull(_0x6dc56e,_0x3eaa9c={}){const _0x566df6=a234_0x240c7c;return getChalk(_0x3eaa9c)[_0x566df6(0x152)](_0x6dc56e);}export function colorizeJSONCompact(_0x276ee6,_0x350386={}){const _0x583bc3=a234_0x240c7c;if(!shouldUseColor(_0x350386))return JSON['stringify'](_0x276ee6);if(_0x276ee6===null)return colorJSONNull(_0x583bc3(0x14b),_0x350386);if(typeof _0x276ee6===_0x583bc3(0x140))return colorJSONBoolean(String(_0x276ee6),_0x350386);if(typeof _0x276ee6===_0x583bc3(0x14a))return colorJSONNumber(String(_0x276ee6),_0x350386);if(typeof _0x276ee6==='string')return colorJSONString(JSON[_0x583bc3(0x150)](_0x276ee6),_0x350386);if(Array[_0x583bc3(0x151)](_0x276ee6)){if(_0x276ee6[_0x583bc3(0x14f)]===0x0)return'[]';const _0x3f603a=_0x276ee6[_0x583bc3(0x142)](_0x2008c2=>colorizeJSONCompact(_0x2008c2,_0x350386));return'['+_0x3f603a[_0x583bc3(0x147)](',')+']';}if(typeof _0x276ee6==='object'){const _0x2fc974=Object[_0x583bc3(0x13e)](_0x276ee6);if(_0x2fc974[_0x583bc3(0x14f)]===0x0)return'{}';const _0x277f91=_0x2fc974[_0x583bc3(0x142)](([_0x5ce489,_0x4bf4da])=>{const _0xe3dbe=colorJSONKey(JSON['stringify'](_0x5ce489),_0x350386),_0x257ef8=colorizeJSONCompact(_0x4bf4da,_0x350386);return _0xe3dbe+':'+_0x257ef8;});return'{'+_0x277f91['join'](',')+'}';}return String(_0x276ee6);}export function colorizeJSON(_0x170f2f,_0x1bd861={},_0x2a1097=0x0){const _0x294c88=a234_0x240c7c;if(!shouldUseColor(_0x1bd861))return JSON[_0x294c88(0x150)](_0x170f2f,null,0x2);const _0x57db6f='\x20'[_0x294c88(0x13d)](_0x2a1097),_0x531d92=_0x2a1097+0x2;if(_0x170f2f===null)return colorJSONNull(_0x294c88(0x14b),_0x1bd861);if(typeof _0x170f2f===_0x294c88(0x140))return colorJSONBoolean(String(_0x170f2f),_0x1bd861);if(typeof _0x170f2f===_0x294c88(0x14a))return colorJSONNumber(String(_0x170f2f),_0x1bd861);if(typeof _0x170f2f==='string')return colorJSONString(JSON[_0x294c88(0x150)](_0x170f2f),_0x1bd861);if(Array[_0x294c88(0x151)](_0x170f2f)){if(_0x170f2f['length']===0x0)return'[]';const _0x279eb5=_0x170f2f[_0x294c88(0x142)](_0x1b38d3=>{const _0x1dd015=_0x294c88,_0x5b691b=colorizeJSON(_0x1b38d3,_0x1bd861,_0x531d92);return''+'\x20'[_0x1dd015(0x13d)](_0x531d92)+_0x5b691b;});return'[\x0a'+_0x279eb5[_0x294c88(0x147)](',\x0a')+('\x0a'+_0x57db6f+']');}if(typeof _0x170f2f===_0x294c88(0x154)){const _0x30b1f9=Object[_0x294c88(0x13e)](_0x170f2f);if(_0x30b1f9[_0x294c88(0x14f)]===0x0)return'{}';const _0x216011=_0x30b1f9['map'](([_0x5261cc,_0x20033c])=>{const _0x5274fd=_0x294c88,_0x12e97e=colorJSONKey(JSON[_0x5274fd(0x150)](_0x5261cc),_0x1bd861),_0x24d34d=colorizeJSON(_0x20033c,_0x1bd861,_0x531d92);return''+'\x20'[_0x5274fd(0x13d)](_0x531d92)+_0x12e97e+':\x20'+_0x24d34d;});return'{\x0a'+_0x216011[_0x294c88(0x147)](',\x0a')+('\x0a'+_0x57db6f+'}');}return String(_0x170f2f);}
@@ -1 +1 @@
1
- (function(_0x22f0a2,_0x8d6b20){const _0x5b0703=a231_0x5e83,_0x33d1be=_0x22f0a2();while(!![]){try{const _0x2053ff=-parseInt(_0x5b0703(0x187))/0x1*(-parseInt(_0x5b0703(0x18a))/0x2)+parseInt(_0x5b0703(0x19a))/0x3*(-parseInt(_0x5b0703(0x19b))/0x4)+-parseInt(_0x5b0703(0x18b))/0x5*(-parseInt(_0x5b0703(0x188))/0x6)+parseInt(_0x5b0703(0x1a0))/0x7*(-parseInt(_0x5b0703(0x194))/0x8)+parseInt(_0x5b0703(0x184))/0x9+-parseInt(_0x5b0703(0x18f))/0xa+-parseInt(_0x5b0703(0x189))/0xb*(-parseInt(_0x5b0703(0x17f))/0xc);if(_0x2053ff===_0x8d6b20)break;else _0x33d1be['push'](_0x33d1be['shift']());}catch(_0x189082){_0x33d1be['push'](_0x33d1be['shift']());}}}(a231_0x113c,0x58bc7));import a231_0xfdc140 from'chalk';export function generateDiff(_0xd58e80,_0x190936){const _0x5b91d9=a231_0x5e83,_0x7d1e94=_0xd58e80[_0x5b91d9(0x183)]('\x0a'),_0x22e04f=_0x190936['split']('\x0a'),_0x3ccfbf=[],_0x4683ad=computeLCS(_0x7d1e94,_0x22e04f);let _0x25553b=0x0,_0x5d2d59=0x0,_0x3d2b10=0x0;while(_0x25553b<_0x7d1e94['length']||_0x5d2d59<_0x22e04f[_0x5b91d9(0x193)]){if(_0x3d2b10<_0x4683ad[_0x5b91d9(0x193)]&&_0x25553b<_0x7d1e94['length']&&_0x7d1e94[_0x25553b]===_0x4683ad[_0x3d2b10])_0x5d2d59<_0x22e04f['length']&&_0x22e04f[_0x5d2d59]===_0x4683ad[_0x3d2b10]?(_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x18c),'content':_0x7d1e94[_0x25553b]}),_0x25553b++,_0x5d2d59++,_0x3d2b10++):(_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x1a2),'content':_0x22e04f[_0x5d2d59]}),_0x5d2d59++);else{if(_0x3d2b10<_0x4683ad['length']&&_0x5d2d59<_0x22e04f[_0x5b91d9(0x193)]&&_0x22e04f[_0x5d2d59]===_0x4683ad[_0x3d2b10])_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':'removed','content':_0x7d1e94[_0x25553b]}),_0x25553b++;else{if(_0x25553b<_0x7d1e94[_0x5b91d9(0x193)]&&(_0x3d2b10>=_0x4683ad[_0x5b91d9(0x193)]||_0x7d1e94[_0x25553b]!==_0x4683ad[_0x3d2b10]))_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x191),'content':_0x7d1e94[_0x25553b]}),_0x25553b++;else _0x5d2d59<_0x22e04f[_0x5b91d9(0x193)]&&(_0x3ccfbf[_0x5b91d9(0x1a3)]({'type':_0x5b91d9(0x1a2),'content':_0x22e04f[_0x5d2d59]}),_0x5d2d59++);}}}return _0x3ccfbf;}function computeLCS(_0x3e752d,_0x60b033){const _0x5668ef=a231_0x5e83,_0x14ca68=_0x3e752d[_0x5668ef(0x193)],_0x96a11=_0x60b033[_0x5668ef(0x193)],_0x23f48d=Array(_0x14ca68+0x1)[_0x5668ef(0x181)](null)['map'](()=>Array(_0x96a11+0x1)['fill'](0x0));for(let _0x32395a=0x1;_0x32395a<=_0x14ca68;_0x32395a++){for(let _0x315769=0x1;_0x315769<=_0x96a11;_0x315769++){_0x3e752d[_0x32395a-0x1]===_0x60b033[_0x315769-0x1]?_0x23f48d[_0x32395a][_0x315769]=_0x23f48d[_0x32395a-0x1][_0x315769-0x1]+0x1:_0x23f48d[_0x32395a][_0x315769]=Math[_0x5668ef(0x19c)](_0x23f48d[_0x32395a-0x1][_0x315769],_0x23f48d[_0x32395a][_0x315769-0x1]);}}const _0x5c5dd5=[];let _0x5ec971=_0x14ca68,_0x5690b6=_0x96a11;while(_0x5ec971>0x0&&_0x5690b6>0x0){if(_0x3e752d[_0x5ec971-0x1]===_0x60b033[_0x5690b6-0x1])_0x5c5dd5[_0x5668ef(0x180)](_0x3e752d[_0x5ec971-0x1]),_0x5ec971--,_0x5690b6--;else _0x23f48d[_0x5ec971-0x1][_0x5690b6]>_0x23f48d[_0x5ec971][_0x5690b6-0x1]?_0x5ec971--:_0x5690b6--;}return _0x5c5dd5;}export function formatDiffWithColors(_0x560367,_0x2b7c4d=0x3){const _0x2e6543=a231_0x5e83,_0x2c902e=new Set();_0x560367[_0x2e6543(0x182)]((_0x235517,_0x599637)=>{const _0x51cb1e=_0x2e6543;_0x235517['type']!==_0x51cb1e(0x18c)&&_0x2c902e[_0x51cb1e(0x18e)](_0x599637);});if(_0x2c902e[_0x2e6543(0x198)]===0x0)return'';const _0x42623e=new Set();for(const _0x19a112 of _0x2c902e){for(let _0xf43e8e=Math[_0x2e6543(0x19c)](0x0,_0x19a112-_0x2b7c4d);_0xf43e8e<=Math[_0x2e6543(0x190)](_0x560367['length']-0x1,_0x19a112+_0x2b7c4d);_0xf43e8e++){_0x42623e[_0x2e6543(0x18e)](_0xf43e8e);}}const _0x3bde1e=[];let _0x258efd=-0x1;const _0x2e99a4=_0x560367[_0x2e6543(0x193)],_0x255ebe=Math[_0x2e6543(0x19c)](0x3,String(_0x2e99a4)['length']),_0x5aa4fa=[];let _0x2aa0d4=0x0,_0x4be919=0x0;for(const _0x485cab of _0x560367){if(_0x485cab[_0x2e6543(0x199)]===_0x2e6543(0x191))_0x2aa0d4++,_0x5aa4fa[_0x2e6543(0x1a3)]({'old':_0x2aa0d4,'new':0x0});else _0x485cab[_0x2e6543(0x199)]===_0x2e6543(0x1a2)?(_0x4be919++,_0x5aa4fa[_0x2e6543(0x1a3)]({'old':0x0,'new':_0x4be919})):(_0x2aa0d4++,_0x4be919++,_0x5aa4fa[_0x2e6543(0x1a3)]({'old':_0x2aa0d4,'new':_0x4be919}));}for(let _0x25619f=0x0;_0x25619f<_0x560367[_0x2e6543(0x193)];_0x25619f++){if(!_0x42623e[_0x2e6543(0x186)](_0x25619f))continue;_0x258efd!==-0x1&&_0x25619f>_0x258efd+0x1&&_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140[_0x2e6543(0x196)](_0x2e6543(0x192)));_0x258efd=_0x25619f;const _0x95700f=_0x560367[_0x25619f],_0x296038=_0x5aa4fa[_0x25619f],_0x25dca5=_0x296038[_0x2e6543(0x17e)]>0x0?String(_0x296038[_0x2e6543(0x17e)])[_0x2e6543(0x19e)](_0x255ebe):'\x20'['repeat'](_0x255ebe),_0x10f7c7=_0x296038[_0x2e6543(0x197)]>0x0?String(_0x296038[_0x2e6543(0x197)])[_0x2e6543(0x19e)](_0x255ebe):'\x20'[_0x2e6543(0x1a1)](_0x255ebe);switch(_0x95700f[_0x2e6543(0x199)]){case _0x2e6543(0x191):_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140[_0x2e6543(0x18d)](_0x25dca5+'\x20'+_0x10f7c7+_0x2e6543(0x19d)+_0x95700f[_0x2e6543(0x195)]));break;case _0x2e6543(0x1a2):_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140[_0x2e6543(0x19f)](_0x25dca5+'\x20'+_0x10f7c7+_0x2e6543(0x185)+_0x95700f[_0x2e6543(0x195)]));break;default:_0x3bde1e[_0x2e6543(0x1a3)](a231_0xfdc140['dim'](_0x25dca5+'\x20'+_0x10f7c7+_0x2e6543(0x17c)+_0x95700f['content']));break;}}return _0x3bde1e[_0x2e6543(0x17d)]('\x0a');}function a231_0x5e83(_0x4eb8ab,_0x40306c){_0x4eb8ab=_0x4eb8ab-0x17c;const _0x113c6c=a231_0x113c();let _0x5e83f6=_0x113c6c[_0x4eb8ab];return _0x5e83f6;}export function hasChanges(_0x529d5b){const _0x4cd7e5=a231_0x5e83;return _0x529d5b['some'](_0x4acab8=>_0x4acab8[_0x4cd7e5(0x199)]!=='unchanged');}function a231_0x113c(){const _0x4a6f68=['min','removed','\x20\x20...','length','1120040WkqZDp','content','cyan','new','size','type','215340JXXoiW','32neGKjd','max','\x20-\x20','padStart','green','28YAObGz','repeat','added','push','\x20\x20\x20','join','old','19860hPIGNH','unshift','fill','forEach','split','1434231TqnBCw','\x20+\x20','has','59195KRtwXt','12kDeMHx','4906ZnZYDi','18qEiwaM','805925QtVSOw','unchanged','red','add','2548910EbNQzy'];a231_0x113c=function(){return _0x4a6f68;};return a231_0x113c();}
1
+ (function(_0x8a9866,_0x273af8){const _0x106c2c=a235_0x1de3,_0x3bb87d=_0x8a9866();while(!![]){try{const _0x3be64f=parseInt(_0x106c2c(0x95))/0x1+-parseInt(_0x106c2c(0x97))/0x2+parseInt(_0x106c2c(0x90))/0x3*(parseInt(_0x106c2c(0x9d))/0x4)+parseInt(_0x106c2c(0x87))/0x5*(parseInt(_0x106c2c(0x89))/0x6)+parseInt(_0x106c2c(0x85))/0x7+-parseInt(_0x106c2c(0x98))/0x8+-parseInt(_0x106c2c(0x88))/0x9*(-parseInt(_0x106c2c(0x9a))/0xa);if(_0x3be64f===_0x273af8)break;else _0x3bb87d['push'](_0x3bb87d['shift']());}catch(_0x4660c7){_0x3bb87d['push'](_0x3bb87d['shift']());}}}(a235_0x2f3c,0xddac7));function a235_0x1de3(_0x42779f,_0x37eb0c){_0x42779f=_0x42779f-0x83;const _0x2f3cd8=a235_0x2f3c();let _0x1de35f=_0x2f3cd8[_0x42779f];return _0x1de35f;}import a235_0x3186cf from'chalk';function a235_0x2f3c(){const _0x4fdf56=['size','\x20-\x20','\x20+\x20','min','11249588wZvrmN','map','5KLPBIc','1684341vtCZOI','2461842QruKGR','length','split','repeat','added','red','padStart','12882PmVEBH','removed','has','type','new','4533wsRoaF','max','3499176TypsuB','7230184CqWVnx','fill','60cyYNxV','unshift','join','388eCTyqP','old','unchanged','content','push','add'];a235_0x2f3c=function(){return _0x4fdf56;};return a235_0x2f3c();}export function generateDiff(_0x1cfc12,_0x52c857){const _0x33df43=a235_0x1de3,_0x21e44c=_0x1cfc12[_0x33df43(0x8b)]('\x0a'),_0x1a574b=_0x52c857[_0x33df43(0x8b)]('\x0a'),_0xd5925a=[],_0x13158c=computeLCS(_0x21e44c,_0x1a574b);let _0x38b43f=0x0,_0x14c728=0x0,_0x34081f=0x0;while(_0x38b43f<_0x21e44c['length']||_0x14c728<_0x1a574b[_0x33df43(0x8a)]){if(_0x34081f<_0x13158c[_0x33df43(0x8a)]&&_0x38b43f<_0x21e44c['length']&&_0x21e44c[_0x38b43f]===_0x13158c[_0x34081f])_0x14c728<_0x1a574b['length']&&_0x1a574b[_0x14c728]===_0x13158c[_0x34081f]?(_0xd5925a[_0x33df43(0xa1)]({'type':_0x33df43(0x9f),'content':_0x21e44c[_0x38b43f]}),_0x38b43f++,_0x14c728++,_0x34081f++):(_0xd5925a[_0x33df43(0xa1)]({'type':_0x33df43(0x8d),'content':_0x1a574b[_0x14c728]}),_0x14c728++);else{if(_0x34081f<_0x13158c[_0x33df43(0x8a)]&&_0x14c728<_0x1a574b[_0x33df43(0x8a)]&&_0x1a574b[_0x14c728]===_0x13158c[_0x34081f])_0xd5925a[_0x33df43(0xa1)]({'type':'removed','content':_0x21e44c[_0x38b43f]}),_0x38b43f++;else{if(_0x38b43f<_0x21e44c[_0x33df43(0x8a)]&&(_0x34081f>=_0x13158c[_0x33df43(0x8a)]||_0x21e44c[_0x38b43f]!==_0x13158c[_0x34081f]))_0xd5925a['push']({'type':'removed','content':_0x21e44c[_0x38b43f]}),_0x38b43f++;else _0x14c728<_0x1a574b[_0x33df43(0x8a)]&&(_0xd5925a[_0x33df43(0xa1)]({'type':_0x33df43(0x8d),'content':_0x1a574b[_0x14c728]}),_0x14c728++);}}}return _0xd5925a;}function computeLCS(_0x33133a,_0x10a0e5){const _0x14ac5e=a235_0x1de3,_0x35734c=_0x33133a['length'],_0x28e197=_0x10a0e5[_0x14ac5e(0x8a)],_0x4ff82a=Array(_0x35734c+0x1)[_0x14ac5e(0x99)](null)[_0x14ac5e(0x86)](()=>Array(_0x28e197+0x1)['fill'](0x0));for(let _0x2982a2=0x1;_0x2982a2<=_0x35734c;_0x2982a2++){for(let _0x1cd8bb=0x1;_0x1cd8bb<=_0x28e197;_0x1cd8bb++){_0x33133a[_0x2982a2-0x1]===_0x10a0e5[_0x1cd8bb-0x1]?_0x4ff82a[_0x2982a2][_0x1cd8bb]=_0x4ff82a[_0x2982a2-0x1][_0x1cd8bb-0x1]+0x1:_0x4ff82a[_0x2982a2][_0x1cd8bb]=Math['max'](_0x4ff82a[_0x2982a2-0x1][_0x1cd8bb],_0x4ff82a[_0x2982a2][_0x1cd8bb-0x1]);}}const _0x4e253e=[];let _0x2c611d=_0x35734c,_0x593f61=_0x28e197;while(_0x2c611d>0x0&&_0x593f61>0x0){if(_0x33133a[_0x2c611d-0x1]===_0x10a0e5[_0x593f61-0x1])_0x4e253e[_0x14ac5e(0x9b)](_0x33133a[_0x2c611d-0x1]),_0x2c611d--,_0x593f61--;else _0x4ff82a[_0x2c611d-0x1][_0x593f61]>_0x4ff82a[_0x2c611d][_0x593f61-0x1]?_0x2c611d--:_0x593f61--;}return _0x4e253e;}export function formatDiffWithColors(_0xfa09f7,_0x473df0=0x3){const _0x16fb49=a235_0x1de3,_0x2b3ba1=new Set();_0xfa09f7['forEach']((_0x15527c,_0x27535d)=>{const _0x54552d=a235_0x1de3;_0x15527c[_0x54552d(0x93)]!=='unchanged'&&_0x2b3ba1['add'](_0x27535d);});if(_0x2b3ba1[_0x16fb49(0xa3)]===0x0)return'';const _0x6094ca=new Set();for(const _0x7a4b17 of _0x2b3ba1){for(let _0x4cb275=Math[_0x16fb49(0x96)](0x0,_0x7a4b17-_0x473df0);_0x4cb275<=Math[_0x16fb49(0x84)](_0xfa09f7[_0x16fb49(0x8a)]-0x1,_0x7a4b17+_0x473df0);_0x4cb275++){_0x6094ca[_0x16fb49(0xa2)](_0x4cb275);}}const _0x5beaee=[];let _0x872d80=-0x1;const _0x2899ea=_0xfa09f7['length'],_0xfc3056=Math[_0x16fb49(0x96)](0x3,String(_0x2899ea)[_0x16fb49(0x8a)]),_0x19a9e1=[];let _0x54fffd=0x0,_0x35e6de=0x0;for(const _0x4c7aa0 of _0xfa09f7){if(_0x4c7aa0[_0x16fb49(0x93)]===_0x16fb49(0x91))_0x54fffd++,_0x19a9e1[_0x16fb49(0xa1)]({'old':_0x54fffd,'new':0x0});else _0x4c7aa0[_0x16fb49(0x93)]===_0x16fb49(0x8d)?(_0x35e6de++,_0x19a9e1[_0x16fb49(0xa1)]({'old':0x0,'new':_0x35e6de})):(_0x54fffd++,_0x35e6de++,_0x19a9e1['push']({'old':_0x54fffd,'new':_0x35e6de}));}for(let _0x5648b6=0x0;_0x5648b6<_0xfa09f7['length'];_0x5648b6++){if(!_0x6094ca[_0x16fb49(0x92)](_0x5648b6))continue;_0x872d80!==-0x1&&_0x5648b6>_0x872d80+0x1&&_0x5beaee[_0x16fb49(0xa1)](a235_0x3186cf['cyan']('\x20\x20...'));_0x872d80=_0x5648b6;const _0x1a6258=_0xfa09f7[_0x5648b6],_0x5076ee=_0x19a9e1[_0x5648b6],_0x26e23e=_0x5076ee[_0x16fb49(0x9e)]>0x0?String(_0x5076ee[_0x16fb49(0x9e)])['padStart'](_0xfc3056):'\x20'[_0x16fb49(0x8c)](_0xfc3056),_0x2bff43=_0x5076ee[_0x16fb49(0x94)]>0x0?String(_0x5076ee[_0x16fb49(0x94)])[_0x16fb49(0x8f)](_0xfc3056):'\x20'['repeat'](_0xfc3056);switch(_0x1a6258[_0x16fb49(0x93)]){case _0x16fb49(0x91):_0x5beaee['push'](a235_0x3186cf[_0x16fb49(0x8e)](_0x26e23e+'\x20'+_0x2bff43+_0x16fb49(0xa4)+_0x1a6258[_0x16fb49(0xa0)]));break;case'added':_0x5beaee[_0x16fb49(0xa1)](a235_0x3186cf['green'](_0x26e23e+'\x20'+_0x2bff43+_0x16fb49(0x83)+_0x1a6258[_0x16fb49(0xa0)]));break;default:_0x5beaee[_0x16fb49(0xa1)](a235_0x3186cf['dim'](_0x26e23e+'\x20'+_0x2bff43+'\x20\x20\x20'+_0x1a6258[_0x16fb49(0xa0)]));break;}}return _0x5beaee[_0x16fb49(0x9c)]('\x0a');}export function hasChanges(_0x333a08){const _0x451ed9=a235_0x1de3;return _0x333a08['some'](_0x40fdde=>_0x40fdde['type']!==_0x451ed9(0x9f));}
@@ -1 +1 @@
1
- (function(_0x532425,_0x7aaa65){const _0xa87882=a232_0x17fa,_0x1f0a82=_0x532425();while(!![]){try{const _0x435098=-parseInt(_0xa87882(0x158))/0x1*(-parseInt(_0xa87882(0x156))/0x2)+parseInt(_0xa87882(0x14f))/0x3+-parseInt(_0xa87882(0x15c))/0x4+-parseInt(_0xa87882(0x151))/0x5+-parseInt(_0xa87882(0x155))/0x6*(-parseInt(_0xa87882(0x15e))/0x7)+-parseInt(_0xa87882(0x14c))/0x8+parseInt(_0xa87882(0x14e))/0x9;if(_0x435098===_0x7aaa65)break;else _0x1f0a82['push'](_0x1f0a82['shift']());}catch(_0x12543d){_0x1f0a82['push'](_0x1f0a82['shift']());}}}(a232_0x39d9,0x77039));import*as a232_0x2c744e from'node:fs';import*as a232_0x4fd7ad from'node:path';export function setSecureFilePermissions(_0x1634c2){const _0x30bb50=a232_0x17fa;try{a232_0x2c744e['chmodSync'](_0x1634c2,0x180);}catch{console[_0x30bb50(0x15b)](_0x30bb50(0x14d)+_0x1634c2);}}function a232_0x17fa(_0x148db1,_0x4e1038){_0x148db1=_0x148db1-0x14b;const _0x39d982=a232_0x39d9();let _0x17faed=_0x39d982[_0x148db1];return _0x17faed;}export function setSecureDirectoryPermissions(_0x2df0a2){const _0x47307c=a232_0x17fa;try{a232_0x2c744e['chmodSync'](_0x2df0a2,0x1c0);}catch{console['warn'](_0x47307c(0x14d)+_0x2df0a2);}}export function createSecureDirectory(_0x2d063e){const _0x595ebc=a232_0x17fa;!a232_0x2c744e[_0x595ebc(0x15a)](_0x2d063e)&&(a232_0x2c744e[_0x595ebc(0x153)](_0x2d063e,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2d063e));}export function validateSecureFilePermissions(_0x4a75cc){const _0x3bf020=a232_0x17fa;try{const _0x5355be=a232_0x2c744e[_0x3bf020(0x150)](_0x4a75cc),_0x3b2dc5=_0x5355be[_0x3bf020(0x14b)]&0x1ff,_0x1d2845=(_0x3b2dc5&0x3f)!==0x0;if(_0x1d2845)return console['warn'](_0x3bf020(0x152)+_0x4a75cc+_0x3bf020(0x15d)+_0x3b2dc5[_0x3bf020(0x154)](0x8)+').\x20'+_0x3bf020(0x157)),![];return!![];}catch{return!![];}}function a232_0x39d9(){const _0x4c5eac=['Warning:\x20','mkdirSync','toString','6MnirKy','156aUAXzm','Should\x20be\x200600\x20or\x20more\x20restrictive.','2891TyFyXx','dirname','existsSync','warn','1975696OsqjIt','\x20has\x20insecure\x20permissions\x20(','6412vsGVYL','mode','3973984AEFSyA','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','7290828fyftHl','2152485glQewP','statSync','1379240HGPuoC'];a232_0x39d9=function(){return _0x4c5eac;};return a232_0x39d9();}export function writeSecureFile(_0x29b0cb,_0x1cc444){const _0x28c2c8=a232_0x17fa,_0x599cb6=a232_0x4fd7ad[_0x28c2c8(0x159)](_0x29b0cb);createSecureDirectory(_0x599cb6),a232_0x2c744e['writeFileSync'](_0x29b0cb,_0x1cc444,{'mode':0x180}),setSecureFilePermissions(_0x29b0cb);}
1
+ (function(_0x1c5c61,_0x148b3b){const _0x2fe88f=a236_0x2a93,_0x13990a=_0x1c5c61();while(!![]){try{const _0x53e989=parseInt(_0x2fe88f(0x1c1))/0x1*(parseInt(_0x2fe88f(0x1b8))/0x2)+-parseInt(_0x2fe88f(0x1be))/0x3*(-parseInt(_0x2fe88f(0x1b1))/0x4)+-parseInt(_0x2fe88f(0x1bf))/0x5+parseInt(_0x2fe88f(0x1c0))/0x6*(parseInt(_0x2fe88f(0x1b0))/0x7)+-parseInt(_0x2fe88f(0x1b3))/0x8+-parseInt(_0x2fe88f(0x1af))/0x9*(-parseInt(_0x2fe88f(0x1ba))/0xa)+-parseInt(_0x2fe88f(0x1b6))/0xb;if(_0x53e989===_0x148b3b)break;else _0x13990a['push'](_0x13990a['shift']());}catch(_0x366514){_0x13990a['push'](_0x13990a['shift']());}}}(a236_0x27bd,0x79bbb));import*as a236_0x527daf from'node:fs';import*as a236_0x7e5a48 from'node:path';export function setSecureFilePermissions(_0x1ff52b){const _0x4a3d5e=a236_0x2a93;try{a236_0x527daf[_0x4a3d5e(0x1ae)](_0x1ff52b,0x180);}catch{console[_0x4a3d5e(0x1bd)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1ff52b);}}export function setSecureDirectoryPermissions(_0x297a71){const _0x47d9a6=a236_0x2a93;try{a236_0x527daf[_0x47d9a6(0x1ae)](_0x297a71,0x1c0);}catch{console[_0x47d9a6(0x1bd)](_0x47d9a6(0x1bb)+_0x297a71);}}export function createSecureDirectory(_0x2ca36f){const _0x396a1f=a236_0x2a93;!a236_0x527daf[_0x396a1f(0x1b5)](_0x2ca36f)&&(a236_0x527daf[_0x396a1f(0x1b4)](_0x2ca36f,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2ca36f));}export function validateSecureFilePermissions(_0x1416a6){const _0x45bf15=a236_0x2a93;try{const _0x4666f9=a236_0x527daf['statSync'](_0x1416a6),_0x4c5b45=_0x4666f9[_0x45bf15(0x1b2)]&0x1ff,_0x10f136=(_0x4c5b45&0x3f)!==0x0;if(_0x10f136)return console['warn'](_0x45bf15(0x1b9)+_0x1416a6+'\x20has\x20insecure\x20permissions\x20('+_0x4c5b45[_0x45bf15(0x1b7)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3c903c,_0x52ba15){const _0x38b8cf=a236_0x2a93,_0x2fd5f8=a236_0x7e5a48[_0x38b8cf(0x1bc)](_0x3c903c);createSecureDirectory(_0x2fd5f8),a236_0x527daf['writeFileSync'](_0x3c903c,_0x52ba15,{'mode':0x180}),setSecureFilePermissions(_0x3c903c);}function a236_0x2a93(_0x27e10c,_0x3eb5ab){_0x27e10c=_0x27e10c-0x1ae;const _0x27bd06=a236_0x27bd();let _0x2a93ae=_0x27bd06[_0x27e10c];return _0x2a93ae;}function a236_0x27bd(){const _0xdfab45=['351mGjBhB','4283900rLCXoJ','6lJrRcv','1WdpluT','chmodSync','477NCQaEl','6200159zuAxVQ','2764iuBiIs','mode','468432JaOhFe','mkdirSync','existsSync','2432793sblXwi','toString','426842XhZBEr','Warning:\x20','85870RkGSTJ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','dirname','warn'];a236_0x27bd=function(){return _0xdfab45;};return a236_0x27bd();}
@@ -1 +1 @@
1
- (function(_0x36acc0,_0x1b4721){const _0xec82cb=a233_0x189f,_0x5b2a95=_0x36acc0();while(!![]){try{const _0x539689=parseInt(_0xec82cb(0xa5))/0x1*(-parseInt(_0xec82cb(0xa0))/0x2)+-parseInt(_0xec82cb(0x98))/0x3*(parseInt(_0xec82cb(0xa1))/0x4)+-parseInt(_0xec82cb(0xa6))/0x5*(-parseInt(_0xec82cb(0x91))/0x6)+parseInt(_0xec82cb(0x9e))/0x7*(-parseInt(_0xec82cb(0x97))/0x8)+parseInt(_0xec82cb(0x9c))/0x9+parseInt(_0xec82cb(0xa4))/0xa*(-parseInt(_0xec82cb(0x9d))/0xb)+-parseInt(_0xec82cb(0x99))/0xc*(-parseInt(_0xec82cb(0x9a))/0xd);if(_0x539689===_0x1b4721)break;else _0x5b2a95['push'](_0x5b2a95['shift']());}catch(_0x407639){_0x5b2a95['push'](_0x5b2a95['shift']());}}}(a233_0x2f16,0x8cc62));function a233_0x2f16(){const _0x21d258=['9VUiDEv','4047756kDqKON','65gyEpZF','NOT_FOUND','5722947srJHLM','352IrDjDG','6153vNDghk','Permission\x20denied\x20reading\x20file\x20\x27','22790ZPFVfk','1292828AGcQaQ','utf-8','message','74660gXitql','74YURUCf','95pCvhzJ','300906VTarPw','Error\x20reading\x20file\x20\x27','INTERNAL','PERMISSION_DENIED','ENOENT','code','5888RpPgDY'];a233_0x2f16=function(){return _0x21d258;};return a233_0x2f16();}function a233_0x189f(_0x26fb25,_0x1e3ef2){_0x26fb25=_0x26fb25-0x91;const _0x2f165b=a233_0x2f16();let _0x189ffe=_0x2f165b[_0x26fb25];return _0x189ffe;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x1cfcf6){const _0x3e5042=a233_0x189f;try{return readFileSync(_0x1cfcf6,_0x3e5042(0xa2));}catch(_0x3ddf9b){const _0x364276=_0x3ddf9b[_0x3e5042(0x96)];if(_0x364276===_0x3e5042(0x95))throw new SDKError(ErrorCode[_0x3e5042(0x9b)],'File\x20\x27'+_0x1cfcf6+'\x27\x20not\x20found',_0x3ddf9b);else{if(_0x364276==='EACCES')throw new SDKError(ErrorCode[_0x3e5042(0x94)],_0x3e5042(0x9f)+_0x1cfcf6+'\x27',_0x3ddf9b);else throw new SDKError(ErrorCode[_0x3e5042(0x93)],_0x3e5042(0x92)+_0x1cfcf6+'\x27:\x20'+_0x3ddf9b[_0x3e5042(0xa3)],_0x3ddf9b);}}}
1
+ function a237_0x5cb9(_0x2c79f9,_0x5dc1f4){_0x2c79f9=_0x2c79f9-0x1a8;const _0x5ae3fe=a237_0x5ae3();let _0x5cb96a=_0x5ae3fe[_0x2c79f9];return _0x5cb96a;}(function(_0x13d597,_0x280e4c){const _0x2bc27e=a237_0x5cb9,_0x13f891=_0x13d597();while(!![]){try{const _0x4cbc68=parseInt(_0x2bc27e(0x1b8))/0x1*(-parseInt(_0x2bc27e(0x1b6))/0x2)+-parseInt(_0x2bc27e(0x1ae))/0x3*(-parseInt(_0x2bc27e(0x1b1))/0x4)+parseInt(_0x2bc27e(0x1b5))/0x5+-parseInt(_0x2bc27e(0x1bb))/0x6*(-parseInt(_0x2bc27e(0x1b7))/0x7)+parseInt(_0x2bc27e(0x1a8))/0x8+-parseInt(_0x2bc27e(0x1ac))/0x9+-parseInt(_0x2bc27e(0x1aa))/0xa;if(_0x4cbc68===_0x280e4c)break;else _0x13f891['push'](_0x13f891['shift']());}catch(_0x35d646){_0x13f891['push'](_0x13f891['shift']());}}}(a237_0x5ae3,0xbeb6f));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a237_0x5ae3(){const _0x66c20f=['4109410WDLbWM','891130OUQGtq','189ZEqTjr','3vIgrbV','ENOENT','\x27:\x20','337686sxxDmJ','1205472GDEcdr','Permission\x20denied\x20reading\x20file\x20\x27','11142090oMtWNt','File\x20\x27','6656220fwSSMb','EACCES','1479498gaKtab','code','message','12JAPNXB','\x27\x20not\x20found','PERMISSION_DENIED','NOT_FOUND'];a237_0x5ae3=function(){return _0x66c20f;};return a237_0x5ae3();}export function readFileContent(_0x31611e){const _0x2c436b=a237_0x5cb9;try{return readFileSync(_0x31611e,'utf-8');}catch(_0x3065da){const _0x41a398=_0x3065da[_0x2c436b(0x1af)];if(_0x41a398===_0x2c436b(0x1b9))throw new SDKError(ErrorCode[_0x2c436b(0x1b4)],_0x2c436b(0x1ab)+_0x31611e+_0x2c436b(0x1b2),_0x3065da);else{if(_0x41a398===_0x2c436b(0x1ad))throw new SDKError(ErrorCode[_0x2c436b(0x1b3)],_0x2c436b(0x1a9)+_0x31611e+'\x27',_0x3065da);else throw new SDKError(ErrorCode['INTERNAL'],'Error\x20reading\x20file\x20\x27'+_0x31611e+_0x2c436b(0x1ba)+_0x3065da[_0x2c436b(0x1b0)],_0x3065da);}}}
@@ -1 +1 @@
1
- function a234_0x51ac(_0x4ccc9e,_0x40b6ba){_0x4ccc9e=_0x4ccc9e-0x1e1;const _0xba1627=a234_0xba16();let _0x51ac35=_0xba1627[_0x4ccc9e];return _0x51ac35;}(function(_0x5c3c06,_0x13be8d){const _0x5b69af=a234_0x51ac,_0x3a9b05=_0x5c3c06();while(!![]){try{const _0x904ff9=parseInt(_0x5b69af(0x1ed))/0x1*(-parseInt(_0x5b69af(0x1e9))/0x2)+parseInt(_0x5b69af(0x1e8))/0x3+-parseInt(_0x5b69af(0x1e2))/0x4+-parseInt(_0x5b69af(0x1ee))/0x5+-parseInt(_0x5b69af(0x1ec))/0x6*(-parseInt(_0x5b69af(0x1ef))/0x7)+parseInt(_0x5b69af(0x1f5))/0x8*(-parseInt(_0x5b69af(0x1f3))/0x9)+parseInt(_0x5b69af(0x1f4))/0xa;if(_0x904ff9===_0x13be8d)break;else _0x3a9b05['push'](_0x3a9b05['shift']());}catch(_0x412501){_0x3a9b05['push'](_0x3a9b05['shift']());}}}(a234_0xba16,0xb7a82));import*as a234_0x2fb40b from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x51796a,_0x573eac,_0xd27a8c){const _0x587fe7=a234_0x51ac,_0x5375ea=_0x51796a+'/'+_0x573eac,_0x5d212d=cache[_0x587fe7(0x1e4)](_0x5375ea);if(_0x5d212d&&Date['now']()-_0x5d212d['fetchedAt']<CACHE_TTL_MS)return Promise[_0x587fe7(0x1e5)](_0x5d212d[_0x587fe7(0x1f9)]);return new Promise((_0x4c173c,_0x3ed566)=>{const _0x198f79=_0x587fe7,_0x24d1a7={'hostname':_0x198f79(0x1fc),'path':_0x198f79(0x1e6)+_0x51796a+'/'+_0x573eac+_0x198f79(0x1e1),'headers':{'User-Agent':_0xd27a8c,'Accept':_0x198f79(0x1f6)},'timeout':REQUEST_TIMEOUT_MS},_0x5f82b7=a234_0x2fb40b[_0x198f79(0x1e4)](_0x24d1a7,_0x517baf=>{let _0x316610='';_0x517baf['on']('data',_0x557eea=>{const _0x3e90b0=a234_0x51ac;_0x316610+=_0x557eea[_0x3e90b0(0x1eb)]();}),_0x517baf['on']('end',()=>{const _0x27970a=a234_0x51ac;if(_0x517baf[_0x27970a(0x1ea)]!==0xc8){_0x3ed566(new Error(_0x27970a(0x1e7)+_0x517baf[_0x27970a(0x1ea)]+':\x20'+_0x316610['slice'](0x0,0xc8)));return;}try{const _0x23ac6b=JSON[_0x27970a(0x1f7)](_0x316610);cache[_0x27970a(0x1f0)](_0x5375ea,{'releases':_0x23ac6b,'fetchedAt':Date[_0x27970a(0x1f1)]()}),_0x4c173c(_0x23ac6b);}catch(_0x343720){_0x3ed566(_0x343720);}});});_0x5f82b7['on'](_0x198f79(0x1f2),()=>{const _0x133677=_0x198f79;_0x5f82b7[_0x133677(0x1fb)](),_0x3ed566(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x5f82b7['on'](_0x198f79(0x1fd),_0x3ed566);});}export async function resolveReleaseTag(_0xc0dc8f,_0x45ae34,_0x54e5c8,_0x1b15ef){const _0x1f45db=a234_0x51ac;if(_0xc0dc8f===_0x1f45db(0x1e3))return null;const _0x2f0448=await fetchGitHubReleases(_0x45ae34,_0x54e5c8,_0x1b15ef);if(_0x2f0448[_0x1f45db(0x1fa)]===0x0)return null;const _0x1e7eab=_0x2f0448[_0x1f45db(0x1f8)](_0x3a18e5=>!_0x3a18e5['prerelease']);return _0x1e7eab?_0x1e7eab['tag_name']:null;}function a234_0xba16(){const _0x6c52a3=['find','releases','length','destroy','api.github.com','error','/releases?per_page=20','4026744nsMYSU','next','get','resolve','/repos/','GitHub\x20API\x20returned\x20','4481055cozIpn','54OhwUxO','statusCode','toString','892770tRZqBE','46103TzXYmy','874390uKNjQS','70tUIYUT','set','now','timeout','1553346iSQyZO','7147500JvpszG','24dqALtV','application/vnd.github+json','parse'];a234_0xba16=function(){return _0x6c52a3;};return a234_0xba16();}
1
+ function a238_0x2239(_0x4cf8a4,_0x4a75d1){_0x4cf8a4=_0x4cf8a4-0x174;const _0x37907b=a238_0x3790();let _0x223989=_0x37907b[_0x4cf8a4];return _0x223989;}(function(_0x48942d,_0x4bb658){const _0x581859=a238_0x2239,_0x41d6f7=_0x48942d();while(!![]){try{const _0x312e9b=-parseInt(_0x581859(0x17b))/0x1+-parseInt(_0x581859(0x190))/0x2+-parseInt(_0x581859(0x189))/0x3*(parseInt(_0x581859(0x18e))/0x4)+-parseInt(_0x581859(0x186))/0x5+parseInt(_0x581859(0x188))/0x6+parseInt(_0x581859(0x18d))/0x7*(parseInt(_0x581859(0x17e))/0x8)+-parseInt(_0x581859(0x18f))/0x9*(-parseInt(_0x581859(0x17c))/0xa);if(_0x312e9b===_0x4bb658)break;else _0x41d6f7['push'](_0x41d6f7['shift']());}catch(_0x4d8e60){_0x41d6f7['push'](_0x41d6f7['shift']());}}}(a238_0x3790,0xba774));import*as a238_0x593ffc from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x593b6a,_0xcf1268,_0x498a0b){const _0x42e4a2=a238_0x2239,_0x171758=_0x593b6a+'/'+_0xcf1268,_0x57f3be=cache[_0x42e4a2(0x18a)](_0x171758);if(_0x57f3be&&Date[_0x42e4a2(0x18c)]()-_0x57f3be[_0x42e4a2(0x17d)]<CACHE_TTL_MS)return Promise[_0x42e4a2(0x185)](_0x57f3be[_0x42e4a2(0x175)]);return new Promise((_0x5a2f91,_0x46030c)=>{const _0x202306=_0x42e4a2,_0x2d9326={'hostname':_0x202306(0x176),'path':'/repos/'+_0x593b6a+'/'+_0xcf1268+_0x202306(0x181),'headers':{'User-Agent':_0x498a0b,'Accept':_0x202306(0x187)},'timeout':REQUEST_TIMEOUT_MS},_0x3b950a=a238_0x593ffc[_0x202306(0x18a)](_0x2d9326,_0x334d5b=>{const _0xe402c1=_0x202306;let _0x225900='';_0x334d5b['on']('data',_0x1feb4d=>{const _0x33806b=a238_0x2239;_0x225900+=_0x1feb4d[_0x33806b(0x178)]();}),_0x334d5b['on'](_0xe402c1(0x17a),()=>{const _0x5d7f5c=_0xe402c1;if(_0x334d5b[_0x5d7f5c(0x177)]!==0xc8){_0x46030c(new Error(_0x5d7f5c(0x191)+_0x334d5b[_0x5d7f5c(0x177)]+':\x20'+_0x225900[_0x5d7f5c(0x18b)](0x0,0xc8)));return;}try{const _0xfeb14d=JSON['parse'](_0x225900);cache[_0x5d7f5c(0x174)](_0x171758,{'releases':_0xfeb14d,'fetchedAt':Date[_0x5d7f5c(0x18c)]()}),_0x5a2f91(_0xfeb14d);}catch(_0x481cb0){_0x46030c(_0x481cb0);}});});_0x3b950a['on'](_0x202306(0x180),()=>{const _0x7f1275=_0x202306;_0x3b950a[_0x7f1275(0x183)](),_0x46030c(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x3b950a['on'](_0x202306(0x179),_0x46030c);});}function a238_0x3790(){const _0x3c6546=['4360LpmTjP','fetchedAt','4464pVngHB','length','timeout','/releases?per_page=20','tag_name','destroy','next','resolve','3045210SFpCre','application/vnd.github+json','2973294cKAPtE','8406VKuaec','get','slice','now','4228oWeZmR','1864TxZpIo','65502RvkfeW','1513806ImebFz','GitHub\x20API\x20returned\x20','set','releases','api.github.com','statusCode','toString','error','end','570348GFvXvu'];a238_0x3790=function(){return _0x3c6546;};return a238_0x3790();}export async function resolveReleaseTag(_0x23bd2c,_0x2d175a,_0x2a81cb,_0x430e02){const _0x966d7b=a238_0x2239;if(_0x23bd2c===_0x966d7b(0x184))return null;const _0x1c9c75=await fetchGitHubReleases(_0x2d175a,_0x2a81cb,_0x430e02);if(_0x1c9c75[_0x966d7b(0x17f)]===0x0)return null;const _0x1fc672=_0x1c9c75['find'](_0x33b1f8=>!_0x33b1f8['prerelease']);return _0x1fc672?_0x1fc672[_0x966d7b(0x182)]:null;}
@@ -1 +1 @@
1
- (function(_0x2330c9,_0x1ceda0){const _0x37706c=a235_0x330d,_0x1f469a=_0x2330c9();while(!![]){try{const _0xda7941=-parseInt(_0x37706c(0x16d))/0x1+parseInt(_0x37706c(0x168))/0x2+parseInt(_0x37706c(0x178))/0x3*(-parseInt(_0x37706c(0x17a))/0x4)+parseInt(_0x37706c(0x173))/0x5+parseInt(_0x37706c(0x176))/0x6*(-parseInt(_0x37706c(0x175))/0x7)+-parseInt(_0x37706c(0x177))/0x8*(parseInt(_0x37706c(0x167))/0x9)+parseInt(_0x37706c(0x16b))/0xa*(parseInt(_0x37706c(0x174))/0xb);if(_0xda7941===_0x1ceda0)break;else _0x1f469a['push'](_0x1f469a['shift']());}catch(_0x3b099a){_0x1f469a['push'](_0x1f469a['shift']());}}}(a235_0x5916,0x62055));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x36d045=a235_0x330d;return process.env.TDX_CACHE_DIR||join(homedir(),_0x36d045(0x16e),_0x36d045(0x170));}const registry=new Map();export function registerGlobalCacheKey(_0x40bd3b,_0x27f553){const _0x1d04a9=a235_0x330d,_0x5353f6=registry['get'](_0x40bd3b);if(_0x5353f6&&_0x5353f6!==_0x27f553)throw new Error(_0x1d04a9(0x166)+_0x40bd3b+'\x22\x20already\x20registered\x20by\x20\x22'+_0x5353f6+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x27f553+'\x22');registry[_0x1d04a9(0x179)](_0x40bd3b,_0x27f553);}export function getGlobalCachePath(_0x281d7e){return join(getGlobalCacheDir(),_0x281d7e);}function ensureGlobalCacheDir(){const _0x2faac8=getGlobalCacheDir();!existsSync(_0x2faac8)&&mkdirSync(_0x2faac8,{'recursive':!![]});}function readCacheJson(_0x34114f){const _0x266d18=a235_0x330d,_0x2b005d=getGlobalCachePath(_0x34114f);if(!existsSync(_0x2b005d))return undefined;try{const _0x2fa7e5=readFileSync(_0x2b005d,'utf-8');return JSON[_0x266d18(0x16c)](_0x2fa7e5);}catch{return undefined;}}function writeCacheJson(_0x4d62a9,_0x3b0577){const _0x1f5109=a235_0x330d;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4d62a9),JSON[_0x1f5109(0x172)](_0x3b0577,null,0x2),_0x1f5109(0x16f));}function readCacheText(_0x41caff){const _0x344ca6=a235_0x330d,_0x4d162d=getGlobalCachePath(_0x41caff);if(!existsSync(_0x4d162d))return undefined;try{return readFileSync(_0x4d162d,_0x344ca6(0x16f));}catch{return undefined;}}function writeCacheText(_0x6d8f49,_0x5c49e9){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x6d8f49),_0x5c49e9,'utf-8');}function clearCache(_0x49d782){const _0x547df5=getGlobalCachePath(_0x49d782);if(existsSync(_0x547df5))try{unlinkSync(_0x547df5);}catch{}}function a235_0x5916(){const _0x57f974=['parse','320987ReKcNT','.cache','utf-8','tdx','replace','stringify','1797410EvlzAl','11uYKqZB','2161005OBwvTD','6fpwKWx','30568HtrpQl','6fXjEwH','set','689232cTyYAX','trim','Global\x20cache\x20key\x20\x22','1503ZGYdxK','876774MhLzBr','{profile}','clear','12160490SEBLdq'];a235_0x5916=function(){return _0x57f974;};return a235_0x5916();}function cacheExists(_0x128172){return existsSync(getGlobalCachePath(_0x128172));}function a235_0x330d(_0x5defd9,_0x8f6dd6){_0x5defd9=_0x5defd9-0x166;const _0x59163d=a235_0x5916();let _0x330d12=_0x59163d[_0x5defd9];return _0x330d12;}export function createGlobalCache(_0x2f54ff,_0x532558){return registerGlobalCacheKey(_0x2f54ff,_0x532558),{'read':()=>readCacheJson(_0x2f54ff),'write':_0x50211c=>writeCacheJson(_0x2f54ff,_0x50211c),'clear':()=>clearCache(_0x2f54ff),'exists':()=>cacheExists(_0x2f54ff),'path':()=>getGlobalCachePath(_0x2f54ff)};}export function createGlobalTextCache(_0x3ea379,_0x2a3f47){const _0xa920c0=a235_0x330d;return registerGlobalCacheKey(_0x3ea379,_0x2a3f47),{'read':()=>readCacheText(_0x3ea379)?.[_0xa920c0(0x17b)]()||undefined,'write':_0x5e089d=>writeCacheText(_0x3ea379,_0x5e089d),'clear':()=>clearCache(_0x3ea379),'exists':()=>cacheExists(_0x3ea379),'path':()=>getGlobalCachePath(_0x3ea379)};}export function createProfileCache(_0x1b29cc,_0x5aa2f6){const _0x46d2e6=_0x144641=>{const _0x240c14=a235_0x330d,_0x97de2a=_0x144641||'default';return _0x1b29cc[_0x240c14(0x171)](_0x240c14(0x169),_0x97de2a);};return{'read':_0x132032=>{const _0x34faa5=_0x46d2e6(_0x132032);return registerGlobalCacheKey(_0x34faa5,_0x5aa2f6),readCacheJson(_0x34faa5);},'write':(_0x1a18fe,_0x31e4a0)=>{const _0xd54ea1=_0x46d2e6(_0x1a18fe);registerGlobalCacheKey(_0xd54ea1,_0x5aa2f6),writeCacheJson(_0xd54ea1,_0x31e4a0);},'clear':_0x16efd2=>{const _0x1a9a27=_0x46d2e6(_0x16efd2);clearCache(_0x1a9a27);},'exists':_0x48d702=>{const _0x4444cc=_0x46d2e6(_0x48d702);return cacheExists(_0x4444cc);},'path':_0x34b205=>{const _0x23c88e=_0x46d2e6(_0x34b205);return getGlobalCachePath(_0x23c88e);}};}export function createOptionalProfileCache(_0x288e79,_0x5d592b,_0x2de42c={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2de42c,_0x583f1b=_0x15ea43=>{return _0x15ea43?''+_0x288e79+profileSeparator+_0x15ea43+suffix:''+_0x288e79+suffix;};return{'read':_0x49585c=>{const _0x51ccaa=_0x583f1b(_0x49585c);return registerGlobalCacheKey(_0x51ccaa,_0x5d592b),readCacheJson(_0x51ccaa);},'write':(_0x41ac45,_0x516ce4)=>{const _0x4420ae=_0x583f1b(_0x516ce4);registerGlobalCacheKey(_0x4420ae,_0x5d592b),writeCacheJson(_0x4420ae,_0x41ac45);},'clear':_0x427d2b=>{const _0x11dbdf=_0x583f1b(_0x427d2b);clearCache(_0x11dbdf);},'exists':_0x302aae=>{const _0x48ba80=_0x583f1b(_0x302aae);return cacheExists(_0x48ba80);},'path':_0x417377=>{const _0x45531c=_0x583f1b(_0x417377);return getGlobalCachePath(_0x45531c);}};}export function clearGlobalRegistry(){const _0x5d7761=a235_0x330d;registry[_0x5d7761(0x16a)]();}
1
+ (function(_0x2b7ea1,_0x251e4c){const _0x446339=a239_0x2aa5,_0xc6e4de=_0x2b7ea1();while(!![]){try{const _0x28c55a=-parseInt(_0x446339(0x10f))/0x1+-parseInt(_0x446339(0x117))/0x2+-parseInt(_0x446339(0x11a))/0x3*(-parseInt(_0x446339(0x110))/0x4)+-parseInt(_0x446339(0x116))/0x5+parseInt(_0x446339(0x115))/0x6+-parseInt(_0x446339(0x111))/0x7+parseInt(_0x446339(0x114))/0x8*(parseInt(_0x446339(0x10d))/0x9);if(_0x28c55a===_0x251e4c)break;else _0xc6e4de['push'](_0xc6e4de['shift']());}catch(_0x517f36){_0xc6e4de['push'](_0xc6e4de['shift']());}}}(a239_0xa094,0xbba26));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x4267d4=a239_0x2aa5;return process.env.TDX_CACHE_DIR||join(homedir(),_0x4267d4(0x11d),_0x4267d4(0x11b));}const registry=new Map();export function registerGlobalCacheKey(_0x1ca752,_0xaec207){const _0x4593f5=a239_0x2aa5,_0x1b8bbb=registry[_0x4593f5(0x112)](_0x1ca752);if(_0x1b8bbb&&_0x1b8bbb!==_0xaec207)throw new Error(_0x4593f5(0x119)+_0x1ca752+_0x4593f5(0x10c)+_0x1b8bbb+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0xaec207+'\x22');registry[_0x4593f5(0x121)](_0x1ca752,_0xaec207);}export function getGlobalCachePath(_0x228a04){return join(getGlobalCacheDir(),_0x228a04);}function ensureGlobalCacheDir(){const _0x28d4af=getGlobalCacheDir();!existsSync(_0x28d4af)&&mkdirSync(_0x28d4af,{'recursive':!![]});}function a239_0xa094(){const _0x24482e=['trim','88AjHCaE','5545266dUHEzU','395390uPlkSH','2471374zwNqJI','utf-8','Global\x20cache\x20key\x20\x22','3IyRGjW','tdx','stringify','.cache','default','replace','{profile}','set','\x22\x20already\x20registered\x20by\x20\x22','1954890nwaCkF','clear','989734pJfnDb','1734152tnyYrM','4718070jgNrim','get'];a239_0xa094=function(){return _0x24482e;};return a239_0xa094();}function a239_0x2aa5(_0x86902a,_0x10c238){_0x86902a=_0x86902a-0x10c;const _0xa094c=a239_0xa094();let _0x2aa53f=_0xa094c[_0x86902a];return _0x2aa53f;}function readCacheJson(_0x5aa925){const _0x357dca=a239_0x2aa5,_0x15b440=getGlobalCachePath(_0x5aa925);if(!existsSync(_0x15b440))return undefined;try{const _0x1c31ad=readFileSync(_0x15b440,_0x357dca(0x118));return JSON['parse'](_0x1c31ad);}catch{return undefined;}}function writeCacheJson(_0x5c6a18,_0x2f6b88){const _0x9f7751=a239_0x2aa5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5c6a18),JSON[_0x9f7751(0x11c)](_0x2f6b88,null,0x2),_0x9f7751(0x118));}function readCacheText(_0xccb598){const _0x423b7e=a239_0x2aa5,_0x5c3a46=getGlobalCachePath(_0xccb598);if(!existsSync(_0x5c3a46))return undefined;try{return readFileSync(_0x5c3a46,_0x423b7e(0x118));}catch{return undefined;}}function writeCacheText(_0x1dbb86,_0x107ef2){const _0x105d18=a239_0x2aa5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1dbb86),_0x107ef2,_0x105d18(0x118));}function clearCache(_0x525304){const _0x20da69=getGlobalCachePath(_0x525304);if(existsSync(_0x20da69))try{unlinkSync(_0x20da69);}catch{}}function cacheExists(_0x3b14d3){return existsSync(getGlobalCachePath(_0x3b14d3));}export function createGlobalCache(_0x2cdf93,_0x84acc1){return registerGlobalCacheKey(_0x2cdf93,_0x84acc1),{'read':()=>readCacheJson(_0x2cdf93),'write':_0x522500=>writeCacheJson(_0x2cdf93,_0x522500),'clear':()=>clearCache(_0x2cdf93),'exists':()=>cacheExists(_0x2cdf93),'path':()=>getGlobalCachePath(_0x2cdf93)};}export function createGlobalTextCache(_0x5459c3,_0x16e164){const _0x56faf8=a239_0x2aa5;return registerGlobalCacheKey(_0x5459c3,_0x16e164),{'read':()=>readCacheText(_0x5459c3)?.[_0x56faf8(0x113)]()||undefined,'write':_0x426675=>writeCacheText(_0x5459c3,_0x426675),'clear':()=>clearCache(_0x5459c3),'exists':()=>cacheExists(_0x5459c3),'path':()=>getGlobalCachePath(_0x5459c3)};}export function createProfileCache(_0x49186c,_0x46c5ac){const _0x45d1b5=_0x3a2f1d=>{const _0x3c8ea5=a239_0x2aa5,_0x590023=_0x3a2f1d||_0x3c8ea5(0x11e);return _0x49186c[_0x3c8ea5(0x11f)](_0x3c8ea5(0x120),_0x590023);};return{'read':_0x5b5ff6=>{const _0x2ca5d3=_0x45d1b5(_0x5b5ff6);return registerGlobalCacheKey(_0x2ca5d3,_0x46c5ac),readCacheJson(_0x2ca5d3);},'write':(_0x573af2,_0x4f50f8)=>{const _0x595a83=_0x45d1b5(_0x573af2);registerGlobalCacheKey(_0x595a83,_0x46c5ac),writeCacheJson(_0x595a83,_0x4f50f8);},'clear':_0x2ab4ae=>{const _0x51f1f2=_0x45d1b5(_0x2ab4ae);clearCache(_0x51f1f2);},'exists':_0x45c6ab=>{const _0x59f42f=_0x45d1b5(_0x45c6ab);return cacheExists(_0x59f42f);},'path':_0x4ec11c=>{const _0x328941=_0x45d1b5(_0x4ec11c);return getGlobalCachePath(_0x328941);}};}export function createOptionalProfileCache(_0x1ebe10,_0x27b27d,_0x3da1e7={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3da1e7,_0x39b0ba=_0x2d485d=>{return _0x2d485d?''+_0x1ebe10+profileSeparator+_0x2d485d+suffix:''+_0x1ebe10+suffix;};return{'read':_0x515483=>{const _0x5813d5=_0x39b0ba(_0x515483);return registerGlobalCacheKey(_0x5813d5,_0x27b27d),readCacheJson(_0x5813d5);},'write':(_0x3a3c83,_0x28a51f)=>{const _0x4387a5=_0x39b0ba(_0x28a51f);registerGlobalCacheKey(_0x4387a5,_0x27b27d),writeCacheJson(_0x4387a5,_0x3a3c83);},'clear':_0x2a92b0=>{const _0x95bfff=_0x39b0ba(_0x2a92b0);clearCache(_0x95bfff);},'exists':_0x28a9b6=>{const _0x1c41a6=_0x39b0ba(_0x28a9b6);return cacheExists(_0x1c41a6);},'path':_0x462d60=>{const _0x22a3ac=_0x39b0ba(_0x462d60);return getGlobalCachePath(_0x22a3ac);}};}export function clearGlobalRegistry(){const _0x50783a=a239_0x2aa5;registry[_0x50783a(0x10e)]();}
@@ -1 +1 @@
1
- function a236_0x2123(){const _0x11b449=['ENOENT','parse','PERMISSION_DENIED','3475176oqMcFb','1747712QCAJxE','7045017ZmrpSV','1xhubWr','INTERNAL','8wwhKcH','15106256REBQTd','EACCES','775179dJkdPF','Invalid\x20JSON\x20string:\x20','Permission\x20denied\x20reading\x20file:\x20','1910754IUDmEB','INVALID_ARGUMENT','5wFXGcV','1865274okMIVZ','message','code','Invalid\x20JSON\x20in\x20file\x20\x27','40ugdtsE','File\x20not\x20found:\x20'];a236_0x2123=function(){return _0x11b449;};return a236_0x2123();}function a236_0x49a9(_0xb8a81e,_0x439be0){_0xb8a81e=_0xb8a81e-0x1dd;const _0x2123af=a236_0x2123();let _0x49a92d=_0x2123af[_0xb8a81e];return _0x49a92d;}(function(_0x2aa4dc,_0x5d87b2){const _0x55c63e=a236_0x49a9,_0x5cda69=_0x2aa4dc();while(!![]){try{const _0x3e17a6=parseInt(_0x55c63e(0x1e7))/0x1*(-parseInt(_0x55c63e(0x1ef))/0x2)+-parseInt(_0x55c63e(0x1f2))/0x3+-parseInt(_0x55c63e(0x1e5))/0x4+-parseInt(_0x55c63e(0x1f1))/0x5*(-parseInt(_0x55c63e(0x1e4))/0x6)+-parseInt(_0x55c63e(0x1e6))/0x7*(-parseInt(_0x55c63e(0x1e9))/0x8)+-parseInt(_0x55c63e(0x1ec))/0x9*(parseInt(_0x55c63e(0x1df))/0xa)+parseInt(_0x55c63e(0x1ea))/0xb;if(_0x3e17a6===_0x5d87b2)break;else _0x5cda69['push'](_0x5cda69['shift']());}catch(_0x3bd8c4){_0x5cda69['push'](_0x5cda69['shift']());}}}(a236_0x2123,0x92910));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2e6045,_0x2fbd67){const _0x2c250a=a236_0x49a9;try{if(_0x2fbd67){const _0x1d56ab=await readFile(_0x2e6045,'utf-8');try{return JSON['parse'](_0x1d56ab);}catch(_0xdcffa7){throw new SDKError(ErrorCode[_0x2c250a(0x1f0)],_0x2c250a(0x1de)+_0x2e6045+'\x27:\x20'+(_0xdcffa7 instanceof Error?_0xdcffa7[_0x2c250a(0x1f3)]:String(_0xdcffa7)));}}else try{return JSON[_0x2c250a(0x1e2)](_0x2e6045);}catch(_0x1b4a0c){throw new SDKError(ErrorCode[_0x2c250a(0x1f0)],_0x2c250a(0x1ed)+(_0x1b4a0c instanceof Error?_0x1b4a0c['message']:String(_0x1b4a0c)));}}catch(_0x2cb185){if(_0x2cb185 instanceof SDKError)throw _0x2cb185;if(_0x2cb185 instanceof Error&&_0x2c250a(0x1dd)in _0x2cb185){const _0x14d173=_0x2cb185;if(_0x14d173[_0x2c250a(0x1dd)]===_0x2c250a(0x1e1))throw new SDKError(ErrorCode['NOT_FOUND'],_0x2c250a(0x1e0)+_0x2e6045);else{if(_0x14d173[_0x2c250a(0x1dd)]===_0x2c250a(0x1eb))throw new SDKError(ErrorCode[_0x2c250a(0x1e3)],_0x2c250a(0x1ee)+_0x2e6045);}}throw new SDKError(ErrorCode[_0x2c250a(0x1e8)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x2cb185 instanceof Error?_0x2cb185[_0x2c250a(0x1f3)]:String(_0x2cb185)));}}export async function loadJSONFromOptions(_0x13a44e,_0x3b53a2){if(_0x13a44e&&_0x3b53a2)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x13a44e)return await loadJSON(_0x13a44e,![]);if(_0x3b53a2)return await loadJSON(_0x3b53a2,!![]);return undefined;}
1
+ (function(_0x135601,_0x40cbaa){const _0x1b3af6=a240_0x269c,_0xe6b1f8=_0x135601();while(!![]){try{const _0x51fc0c=-parseInt(_0x1b3af6(0x14a))/0x1*(parseInt(_0x1b3af6(0x141))/0x2)+parseInt(_0x1b3af6(0x149))/0x3*(parseInt(_0x1b3af6(0x135))/0x4)+parseInt(_0x1b3af6(0x133))/0x5+parseInt(_0x1b3af6(0x13e))/0x6+parseInt(_0x1b3af6(0x13d))/0x7*(-parseInt(_0x1b3af6(0x132))/0x8)+-parseInt(_0x1b3af6(0x14b))/0x9*(parseInt(_0x1b3af6(0x13b))/0xa)+-parseInt(_0x1b3af6(0x138))/0xb*(-parseInt(_0x1b3af6(0x130))/0xc);if(_0x51fc0c===_0x40cbaa)break;else _0xe6b1f8['push'](_0xe6b1f8['shift']());}catch(_0x401d16){_0xe6b1f8['push'](_0xe6b1f8['shift']());}}}(a240_0x45a4,0x21a8b));import{readFile}from'fs/promises';function a240_0x269c(_0x285546,_0x14aa49){_0x285546=_0x285546-0x130;const _0x45a42f=a240_0x45a4();let _0x269c4b=_0x45a42f[_0x285546];return _0x269c4b;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x56a5b0,_0x4a6464){const _0x54a20d=a240_0x269c;try{if(_0x4a6464){const _0x1c5253=await readFile(_0x56a5b0,_0x54a20d(0x147));try{return JSON[_0x54a20d(0x137)](_0x1c5253);}catch(_0x489f9e){throw new SDKError(ErrorCode[_0x54a20d(0x13a)],_0x54a20d(0x146)+_0x56a5b0+_0x54a20d(0x134)+(_0x489f9e instanceof Error?_0x489f9e[_0x54a20d(0x143)]:String(_0x489f9e)));}}else try{return JSON[_0x54a20d(0x137)](_0x56a5b0);}catch(_0x3f0bb6){throw new SDKError(ErrorCode[_0x54a20d(0x13a)],_0x54a20d(0x13c)+(_0x3f0bb6 instanceof Error?_0x3f0bb6[_0x54a20d(0x143)]:String(_0x3f0bb6)));}}catch(_0x20fb09){if(_0x20fb09 instanceof SDKError)throw _0x20fb09;if(_0x20fb09 instanceof Error&&_0x54a20d(0x145)in _0x20fb09){const _0x5446ab=_0x20fb09;if(_0x5446ab[_0x54a20d(0x145)]===_0x54a20d(0x140))throw new SDKError(ErrorCode[_0x54a20d(0x14c)],_0x54a20d(0x142)+_0x56a5b0);else{if(_0x5446ab[_0x54a20d(0x145)]===_0x54a20d(0x136))throw new SDKError(ErrorCode[_0x54a20d(0x13f)],_0x54a20d(0x139)+_0x56a5b0);}}throw new SDKError(ErrorCode[_0x54a20d(0x131)],_0x54a20d(0x144)+(_0x20fb09 instanceof Error?_0x20fb09[_0x54a20d(0x143)]:String(_0x20fb09)));}}export async function loadJSONFromOptions(_0x4955df,_0x38a025){const _0x27ce4d=a240_0x269c;if(_0x4955df&&_0x38a025)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x27ce4d(0x148));if(_0x4955df)return await loadJSON(_0x4955df,![]);if(_0x38a025)return await loadJSON(_0x38a025,!![]);return undefined;}function a240_0x45a4(){const _0x4898dd=['NOT_FOUND','34584gGImtD','INTERNAL','1643536JcVinu','407275cwuWLb','\x27:\x20','73532ZLniKg','EACCES','parse','1243XLxRBM','Permission\x20denied\x20reading\x20file:\x20','INVALID_ARGUMENT','10HwDrQu','Invalid\x20JSON\x20string:\x20','7iFPtCU','1530762yDjzcp','PERMISSION_DENIED','ENOENT','6066TjkymY','File\x20not\x20found:\x20','message','Failed\x20to\x20load\x20JSON:\x20','code','Invalid\x20JSON\x20in\x20file\x20\x27','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','15yVmxiq','84thFgAS','1404738klsNWa'];a240_0x45a4=function(){return _0x4898dd;};return a240_0x45a4();}
@@ -1 +1 @@
1
- function a237_0x36a2(){const _0x205fb7=['443010Pdlxco','1172250ZmiaVQ','2izqclY','64SWDtLL','\x22,\x20cannot\x20register\x20for\x20\x22','8277030weGrAo','stringify','33UqDYPN','utf-8','666938cGIiHY','12944490GQlhTW','\x22\x20already\x20registered\x20by\x20\x22','577124OVsVJC','14ApisvY','set','79729694mrtZLQ','root','clear','Cache\x20key\x20\x22','trim','cwd','parse'];a237_0x36a2=function(){return _0x205fb7;};return a237_0x36a2();}(function(_0x5a7e19,_0x3cb13c){const _0x217c5a=a237_0x541d,_0x50dfab=_0x5a7e19();while(!![]){try{const _0x177775=parseInt(_0x217c5a(0xc4))/0x1*(-parseInt(_0x217c5a(0xcb))/0x2)+parseInt(_0x217c5a(0xc9))/0x3*(-parseInt(_0x217c5a(0xce))/0x4)+-parseInt(_0x217c5a(0xc7))/0x5+-parseInt(_0x217c5a(0xc2))/0x6*(parseInt(_0x217c5a(0xcf))/0x7)+-parseInt(_0x217c5a(0xc5))/0x8*(parseInt(_0x217c5a(0xc3))/0x9)+-parseInt(_0x217c5a(0xcc))/0xa+parseInt(_0x217c5a(0xd1))/0xb;if(_0x177775===_0x3cb13c)break;else _0x50dfab['push'](_0x50dfab['shift']());}catch(_0x46cd9e){_0x50dfab['push'](_0x50dfab['shift']());}}}(a237_0x36a2,0xd0a48));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x198277,_0x365418){const _0x3b7621=a237_0x541d,_0x2efa1c=registry['get'](_0x198277);if(_0x2efa1c&&_0x2efa1c!==_0x365418)throw new Error(_0x3b7621(0xd4)+_0x198277+_0x3b7621(0xcd)+_0x2efa1c+_0x3b7621(0xc6)+_0x365418+'\x22');registry[_0x3b7621(0xd0)](_0x198277,_0x365418);}function a237_0x541d(_0x4aff28,_0x5d7793){_0x4aff28=_0x4aff28-0xc2;const _0x36a281=a237_0x36a2();let _0x541d95=_0x36a281[_0x4aff28];return _0x541d95;}export function getCacheDir(){const _0x3b06ad=a237_0x541d,_0x14cc38=process[_0x3b06ad(0xd6)](),_0x537d5e=_0x14cc38===parse(_0x14cc38)[_0x3b06ad(0xd2)]?homedir():_0x14cc38;return join(_0x537d5e,LOCAL_CACHE_DIR);}export function getCachePath(_0x2166f8){return join(getCacheDir(),_0x2166f8);}function ensureCacheDir(){const _0x34db41=getCacheDir();!existsSync(_0x34db41)&&mkdirSync(_0x34db41,{'recursive':!![]});}function readCacheJson(_0x48cf9f){const _0x49ba20=a237_0x541d,_0x7906b=getCachePath(_0x48cf9f);if(!existsSync(_0x7906b))return undefined;try{const _0xc5a6da=readFileSync(_0x7906b,'utf-8');return JSON[_0x49ba20(0xd7)](_0xc5a6da);}catch{return undefined;}}function writeCacheJson(_0x3d7ba6,_0x453c00){const _0x5bf518=a237_0x541d;ensureCacheDir(),writeFileSync(getCachePath(_0x3d7ba6),JSON[_0x5bf518(0xc8)](_0x453c00,null,0x2),_0x5bf518(0xca));}function readCacheText(_0x4fbf8f){const _0x1e6d3f=a237_0x541d,_0x2a2fb7=getCachePath(_0x4fbf8f);if(!existsSync(_0x2a2fb7))return undefined;try{return readFileSync(_0x2a2fb7,_0x1e6d3f(0xca));}catch{return undefined;}}function writeCacheText(_0x5acaa8,_0x15c9ab){const _0x22e1d0=a237_0x541d;ensureCacheDir(),writeFileSync(getCachePath(_0x5acaa8),_0x15c9ab,_0x22e1d0(0xca));}function clearCache(_0x1d0013){const _0x2e69ab=getCachePath(_0x1d0013);if(existsSync(_0x2e69ab))try{unlinkSync(_0x2e69ab);}catch{}}function cacheExists(_0x30e94b){return existsSync(getCachePath(_0x30e94b));}export function createCache(_0xb3dad,_0x3a57a8){return registerCacheKey(_0xb3dad,_0x3a57a8),{'read':()=>readCacheJson(_0xb3dad),'write':_0xe35f16=>writeCacheJson(_0xb3dad,_0xe35f16),'clear':()=>clearCache(_0xb3dad),'exists':()=>cacheExists(_0xb3dad),'path':()=>getCachePath(_0xb3dad)};}export function createTextCache(_0x1f0733,_0x12aa7b){const _0x144c77=a237_0x541d;return registerCacheKey(_0x1f0733,_0x12aa7b),{'read':()=>readCacheText(_0x1f0733)?.[_0x144c77(0xd5)]()||undefined,'write':_0x251716=>writeCacheText(_0x1f0733,_0x251716),'clear':()=>clearCache(_0x1f0733),'exists':()=>cacheExists(_0x1f0733),'path':()=>getCachePath(_0x1f0733)};}export function clearRegistry(){const _0x125b26=a237_0x541d;registry[_0x125b26(0xd3)]();}
1
+ const a241_0x523223=a241_0x317b;(function(_0x1fc3f2,_0x385f5b){const _0x272e5b=a241_0x317b,_0x3802a4=_0x1fc3f2();while(!![]){try{const _0x5aa832=-parseInt(_0x272e5b(0x1a4))/0x1*(parseInt(_0x272e5b(0x1ac))/0x2)+parseInt(_0x272e5b(0x1aa))/0x3+parseInt(_0x272e5b(0x1a2))/0x4*(-parseInt(_0x272e5b(0x1ae))/0x5)+-parseInt(_0x272e5b(0x1ad))/0x6*(parseInt(_0x272e5b(0x1b0))/0x7)+parseInt(_0x272e5b(0x1a6))/0x8+parseInt(_0x272e5b(0x1b5))/0x9+parseInt(_0x272e5b(0x1a5))/0xa*(parseInt(_0x272e5b(0x1b1))/0xb);if(_0x5aa832===_0x385f5b)break;else _0x3802a4['push'](_0x3802a4['shift']());}catch(_0x2e2eb8){_0x3802a4['push'](_0x3802a4['shift']());}}}(a241_0x3b1d,0x26057));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a241_0x523223(0x1b2),registry=new Map();export function registerCacheKey(_0x6207ac,_0xaaa9a1){const _0xb6f69f=a241_0x523223,_0x2e3d78=registry[_0xb6f69f(0x1b4)](_0x6207ac);if(_0x2e3d78&&_0x2e3d78!==_0xaaa9a1)throw new Error(_0xb6f69f(0x1b3)+_0x6207ac+_0xb6f69f(0x1ab)+_0x2e3d78+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0xaaa9a1+'\x22');registry[_0xb6f69f(0x1a7)](_0x6207ac,_0xaaa9a1);}function a241_0x3b1d(){const _0xe6a35e=['set','cwd','stringify','275271HtzZbv','\x22\x20already\x20registered\x20by\x20\x22','2586yzmsFY','278940dusMwl','851315xyMYNO','utf-8','21MccDEB','33NMnyGe','.cache/tdx','Cache\x20key\x20\x22','get','114543FRKMvQ','4WiFiYP','clear','97KJslkw','1073690upjGUd','1314384yNBPqp'];a241_0x3b1d=function(){return _0xe6a35e;};return a241_0x3b1d();}export function getCacheDir(){const _0x388f3d=a241_0x523223,_0x940a38=process[_0x388f3d(0x1a8)](),_0x527ae7=_0x940a38===parse(_0x940a38)['root']?homedir():_0x940a38;return join(_0x527ae7,LOCAL_CACHE_DIR);}export function getCachePath(_0x272e96){return join(getCacheDir(),_0x272e96);}function ensureCacheDir(){const _0x2342bb=getCacheDir();!existsSync(_0x2342bb)&&mkdirSync(_0x2342bb,{'recursive':!![]});}function readCacheJson(_0x465bcb){const _0x3f79d4=getCachePath(_0x465bcb);if(!existsSync(_0x3f79d4))return undefined;try{const _0x2c4d64=readFileSync(_0x3f79d4,'utf-8');return JSON['parse'](_0x2c4d64);}catch{return undefined;}}function writeCacheJson(_0x685259,_0x11abca){const _0x4eebc5=a241_0x523223;ensureCacheDir(),writeFileSync(getCachePath(_0x685259),JSON[_0x4eebc5(0x1a9)](_0x11abca,null,0x2),_0x4eebc5(0x1af));}function a241_0x317b(_0xcb88ad,_0x552fa8){_0xcb88ad=_0xcb88ad-0x1a2;const _0x3b1dec=a241_0x3b1d();let _0x317b47=_0x3b1dec[_0xcb88ad];return _0x317b47;}function readCacheText(_0x17c872){const _0x46afe3=a241_0x523223,_0x290fe7=getCachePath(_0x17c872);if(!existsSync(_0x290fe7))return undefined;try{return readFileSync(_0x290fe7,_0x46afe3(0x1af));}catch{return undefined;}}function writeCacheText(_0x5f99d0,_0x597956){const _0x347ac4=a241_0x523223;ensureCacheDir(),writeFileSync(getCachePath(_0x5f99d0),_0x597956,_0x347ac4(0x1af));}function clearCache(_0x36b06b){const _0x5c7b01=getCachePath(_0x36b06b);if(existsSync(_0x5c7b01))try{unlinkSync(_0x5c7b01);}catch{}}function cacheExists(_0x33532a){return existsSync(getCachePath(_0x33532a));}export function createCache(_0x36e6d5,_0x5e71d6){return registerCacheKey(_0x36e6d5,_0x5e71d6),{'read':()=>readCacheJson(_0x36e6d5),'write':_0x3b5037=>writeCacheJson(_0x36e6d5,_0x3b5037),'clear':()=>clearCache(_0x36e6d5),'exists':()=>cacheExists(_0x36e6d5),'path':()=>getCachePath(_0x36e6d5)};}export function createTextCache(_0x2b1198,_0x4dde0d){return registerCacheKey(_0x2b1198,_0x4dde0d),{'read':()=>readCacheText(_0x2b1198)?.['trim']()||undefined,'write':_0x559c6d=>writeCacheText(_0x2b1198,_0x559c6d),'clear':()=>clearCache(_0x2b1198),'exists':()=>cacheExists(_0x2b1198),'path':()=>getCachePath(_0x2b1198)};}export function clearRegistry(){const _0x2483e3=a241_0x523223;registry[_0x2483e3(0x1a3)]();}