@treasuredata/tdx 2026.3.29 → 2026.3.31

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 (268) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.d.ts.map +1 -1
  5. package/dist/cli-categories.js +1 -1
  6. package/dist/cli-categories.js.map +1 -1
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +1 -1
  9. package/dist/cli.js.map +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/agent-command.js +1 -1
  12. package/dist/commands/agent-test-command.js +1 -1
  13. package/dist/commands/api-command.js +1 -1
  14. package/dist/commands/api-command.js.map +1 -1
  15. package/dist/commands/auth-command.js +1 -1
  16. package/dist/commands/auth-login-command.js +1 -1
  17. package/dist/commands/cas-command.d.ts +55 -0
  18. package/dist/commands/cas-command.d.ts.map +1 -0
  19. package/dist/commands/cas-command.js +1 -0
  20. package/dist/commands/cas-command.js.map +1 -0
  21. package/dist/commands/cas-segment-command.d.ts +18 -0
  22. package/dist/commands/cas-segment-command.d.ts.map +1 -0
  23. package/dist/commands/cas-segment-command.js +1 -0
  24. package/dist/commands/cas-segment-command.js.map +1 -0
  25. package/dist/commands/chat-command.js +1 -1
  26. package/dist/commands/claude-command.js +1 -1
  27. package/dist/commands/claude-statusline-command.js +1 -1
  28. package/dist/commands/claude-usage-command.js +1 -1
  29. package/dist/commands/command.js +1 -1
  30. package/dist/commands/connection-command.js +1 -1
  31. package/dist/commands/databases.js +1 -1
  32. package/dist/commands/delivery-command.js +1 -1
  33. package/dist/commands/describe.js +1 -1
  34. package/dist/commands/engage-campaign-pull-command.js +1 -1
  35. package/dist/commands/engage-campaign-push-command.js +1 -1
  36. package/dist/commands/engage-campaign-validate-command.js +1 -1
  37. package/dist/commands/engage-command.js +1 -1
  38. package/dist/commands/engage-template-pull-command.js +1 -1
  39. package/dist/commands/engage-template-push-command.js +1 -1
  40. package/dist/commands/engage-template-validate-command.js +1 -1
  41. package/dist/commands/job-command.js +1 -1
  42. package/dist/commands/journey-command.js +1 -1
  43. package/dist/commands/journey-validate-command.js +1 -1
  44. package/dist/commands/llm-command.js +1 -1
  45. package/dist/commands/mcp-command.js +1 -1
  46. package/dist/commands/parent-segment-command.js +1 -1
  47. package/dist/commands/policy-command.js +1 -1
  48. package/dist/commands/profile-command.js +1 -1
  49. package/dist/commands/profiles-command.js +1 -1
  50. package/dist/commands/query-command.js +1 -1
  51. package/dist/commands/schedule-command.js +1 -1
  52. package/dist/commands/segment-command.js +1 -1
  53. package/dist/commands/segment-create-command.js +1 -1
  54. package/dist/commands/segment-fields-command.js +1 -1
  55. package/dist/commands/segment-pull-command.js +1 -1
  56. package/dist/commands/segment-push-command.js +1 -1
  57. package/dist/commands/segment-update-command.js +1 -1
  58. package/dist/commands/segment-use-command.js +1 -1
  59. package/dist/commands/segment-validate-command.js +1 -1
  60. package/dist/commands/segments.js +1 -1
  61. package/dist/commands/show.js +1 -1
  62. package/dist/commands/status-command.js +1 -1
  63. package/dist/commands/tables.js +1 -1
  64. package/dist/commands/unset-command.d.ts.map +1 -1
  65. package/dist/commands/unset-command.js +1 -1
  66. package/dist/commands/unset-command.js.map +1 -1
  67. package/dist/commands/upgrade-command.js +1 -1
  68. package/dist/commands/use-command.d.ts.map +1 -1
  69. package/dist/commands/use-command.js +1 -1
  70. package/dist/commands/use-command.js.map +1 -1
  71. package/dist/commands/user-command.js +1 -1
  72. package/dist/commands/workflow-command.js +1 -1
  73. package/dist/core/auth.js +1 -1
  74. package/dist/core/command-output.js +1 -1
  75. package/dist/core/config.js +1 -1
  76. package/dist/core/connection-cache.js +1 -1
  77. package/dist/core/constants.js +1 -1
  78. package/dist/core/credential-cache.js +1 -1
  79. package/dist/core/global-context.d.ts +1 -0
  80. package/dist/core/global-context.d.ts.map +1 -1
  81. package/dist/core/global-context.js +1 -1
  82. package/dist/core/global-context.js.map +1 -1
  83. package/dist/core/keychain.js +1 -1
  84. package/dist/core/oauth-keychain.js +1 -1
  85. package/dist/core/oauth.js +1 -1
  86. package/dist/core/profile.js +1 -1
  87. package/dist/core/project-config.js +1 -1
  88. package/dist/core/session.d.ts +2 -1
  89. package/dist/core/session.d.ts.map +1 -1
  90. package/dist/core/session.js +1 -1
  91. package/dist/core/session.js.map +1 -1
  92. package/dist/core/user-cache.js +1 -1
  93. package/dist/core/version.js +1 -1
  94. package/dist/index.js +1 -1
  95. package/dist/mcp/server.js +1 -1
  96. package/dist/mcp/tools/index.js +1 -1
  97. package/dist/mcp/tools/tdx-run.js +1 -1
  98. package/dist/mcp/tools/tdx-search.js +1 -1
  99. package/dist/mcp/utils.js +1 -1
  100. package/dist/proxy/claude-usage-tracker.js +1 -1
  101. package/dist/proxy/passthrough-server.js +1 -1
  102. package/dist/proxy/sse-usage-parser.js +1 -1
  103. package/dist/sdk/agent/agent-config.js +1 -1
  104. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  105. package/dist/sdk/agent/agent-yaml.js +1 -1
  106. package/dist/sdk/agent/test/evaluator.js +1 -1
  107. package/dist/sdk/agent/test/executor.js +1 -1
  108. package/dist/sdk/agent/test/index.js +1 -1
  109. package/dist/sdk/agent/test/output.js +1 -1
  110. package/dist/sdk/agent/test/parser.js +1 -1
  111. package/dist/sdk/agent/tool-target-registry.js +1 -1
  112. package/dist/sdk/api.js +1 -1
  113. package/dist/sdk/cas/cas-api-client.d.ts +77 -0
  114. package/dist/sdk/cas/cas-api-client.d.ts.map +1 -0
  115. package/dist/sdk/cas/cas-api-client.js +1 -0
  116. package/dist/sdk/cas/cas-api-client.js.map +1 -0
  117. package/dist/sdk/cas/cas-audience-yaml.d.ts +32 -0
  118. package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -0
  119. package/dist/sdk/cas/cas-audience-yaml.js +1 -0
  120. package/dist/sdk/cas/cas-audience-yaml.js.map +1 -0
  121. package/dist/sdk/cas/cas-segment-yaml.d.ts +38 -0
  122. package/dist/sdk/cas/cas-segment-yaml.d.ts.map +1 -0
  123. package/dist/sdk/cas/cas-segment-yaml.js +1 -0
  124. package/dist/sdk/cas/cas-segment-yaml.js.map +1 -0
  125. package/dist/sdk/cas/index.d.ts +61 -0
  126. package/dist/sdk/cas/index.d.ts.map +1 -0
  127. package/dist/sdk/cas/index.js +1 -0
  128. package/dist/sdk/cas/index.js.map +1 -0
  129. package/dist/sdk/cas/pull-workflow.d.ts +53 -0
  130. package/dist/sdk/cas/pull-workflow.d.ts.map +1 -0
  131. package/dist/sdk/cas/pull-workflow.js +1 -0
  132. package/dist/sdk/cas/pull-workflow.js.map +1 -0
  133. package/dist/sdk/cas/push-workflow.d.ts +50 -0
  134. package/dist/sdk/cas/push-workflow.d.ts.map +1 -0
  135. package/dist/sdk/cas/push-workflow.js +1 -0
  136. package/dist/sdk/cas/push-workflow.js.map +1 -0
  137. package/dist/sdk/cas/types.d.ts +115 -0
  138. package/dist/sdk/cas/types.d.ts.map +1 -0
  139. package/dist/sdk/cas/types.js +1 -0
  140. package/dist/sdk/cas/types.js.map +1 -0
  141. package/dist/sdk/client/cdp-api-client.js +1 -1
  142. package/dist/sdk/client/delivery-api-client.js +1 -1
  143. package/dist/sdk/client/endpoints.d.ts +4 -0
  144. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  145. package/dist/sdk/client/endpoints.js +1 -1
  146. package/dist/sdk/client/endpoints.js.map +1 -1
  147. package/dist/sdk/client/engage-api-client.js +1 -1
  148. package/dist/sdk/client/http-client.js +1 -1
  149. package/dist/sdk/client/llm-api-client.js +1 -1
  150. package/dist/sdk/client/oauth-refresh.js +1 -1
  151. package/dist/sdk/client/rate-limiter.js +1 -1
  152. package/dist/sdk/client/td-api-client.js +1 -1
  153. package/dist/sdk/client/trino-api-client.js +1 -1
  154. package/dist/sdk/client/workflow-client.js +1 -1
  155. package/dist/sdk/connection-validator.js +1 -1
  156. package/dist/sdk/connection.js +1 -1
  157. package/dist/sdk/delivery.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/campaign-def.js +1 -1
  167. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  168. package/dist/sdk/engage/types/template-schema.js +1 -1
  169. package/dist/sdk/engage.js +1 -1
  170. package/dist/sdk/errors.js +1 -1
  171. package/dist/sdk/index.d.ts +6 -0
  172. package/dist/sdk/index.d.ts.map +1 -1
  173. package/dist/sdk/index.js +1 -1
  174. package/dist/sdk/index.js.map +1 -1
  175. package/dist/sdk/io/index.js +1 -1
  176. package/dist/sdk/io/node-filesystem.js +1 -1
  177. package/dist/sdk/job.js +1 -1
  178. package/dist/sdk/journey.js +1 -1
  179. package/dist/sdk/llm/chat-cache.js +1 -1
  180. package/dist/sdk/llm/index.js +1 -1
  181. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  182. package/dist/sdk/llm/model-factors.js +1 -1
  183. package/dist/sdk/personalization.js +1 -1
  184. package/dist/sdk/policy.js +1 -1
  185. package/dist/sdk/query/index.js +1 -1
  186. package/dist/sdk/query/sql-parser.js +1 -1
  187. package/dist/sdk/realtime.js +1 -1
  188. package/dist/sdk/schedule.js +1 -1
  189. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  190. package/dist/sdk/segment/fields-display.js +1 -1
  191. package/dist/sdk/segment/file-discovery.js +1 -1
  192. package/dist/sdk/segment/journey-utils.js +1 -1
  193. package/dist/sdk/segment/journey-validator.js +1 -1
  194. package/dist/sdk/segment/journey-yaml.js +1 -1
  195. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  196. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  197. package/dist/sdk/segment/pull-workflow.js +1 -1
  198. package/dist/sdk/segment/push-recovery.js +1 -1
  199. package/dist/sdk/segment/push-workflow.js +1 -1
  200. package/dist/sdk/segment/resolution-context.js +1 -1
  201. package/dist/sdk/segment/segment-path-parser.js +1 -1
  202. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  203. package/dist/sdk/segment/segment-validator.js +1 -1
  204. package/dist/sdk/segment/target-resolution.js +1 -1
  205. package/dist/sdk/segment/tdx-config.js +1 -1
  206. package/dist/sdk/segment/types/activation-schema.js +1 -1
  207. package/dist/sdk/segment/types/journey-def.js +1 -1
  208. package/dist/sdk/segment/types/journey-schema.js +1 -1
  209. package/dist/sdk/segment/types/segment-def.js +1 -1
  210. package/dist/sdk/segment/types/segment-schema.js +1 -1
  211. package/dist/sdk/segment/validate-files.js +1 -1
  212. package/dist/sdk/segment/yaml-validator.js +1 -1
  213. package/dist/sdk/segment.js +1 -1
  214. package/dist/sdk/types/cas.d.ts +242 -0
  215. package/dist/sdk/types/cas.d.ts.map +1 -0
  216. package/dist/sdk/types/cas.js +1 -0
  217. package/dist/sdk/types/cas.js.map +1 -0
  218. package/dist/sdk/types/index.d.ts +3 -1
  219. package/dist/sdk/types/index.d.ts.map +1 -1
  220. package/dist/sdk/types/index.js +1 -1
  221. package/dist/sdk/types/index.js.map +1 -1
  222. package/dist/sdk/types/progress.js +1 -1
  223. package/dist/sdk/user.js +1 -1
  224. package/dist/sdk/util/format-detector.js +1 -1
  225. package/dist/sdk/util/formatters.js +1 -1
  226. package/dist/sdk/util/index.js +1 -1
  227. package/dist/sdk/util/paginate.js +1 -1
  228. package/dist/sdk/util/tree-formatter.js +1 -1
  229. package/dist/sdk/workflow/archive-validation.js +1 -1
  230. package/dist/sdk/workflow/clone-workflow.js +1 -1
  231. package/dist/sdk/workflow/index.js +1 -1
  232. package/dist/sdk/workflow/pull-workflow.js +1 -1
  233. package/dist/sdk/workflow/push-workflow.js +1 -1
  234. package/dist/sdk/workflow/tdx-config.js +1 -1
  235. package/dist/sdk/workflow/workflow-utils.js +1 -1
  236. package/dist/test-utils/command-runner.js +1 -1
  237. package/dist/test-utils/factories.js +1 -1
  238. package/dist/test-utils/fixtures.js +1 -1
  239. package/dist/test-utils/http-mock.js +1 -1
  240. package/dist/test-utils/index.js +1 -1
  241. package/dist/utils/async.js +1 -1
  242. package/dist/utils/colors.js +1 -1
  243. package/dist/utils/diff.js +1 -1
  244. package/dist/utils/file-permissions.js +1 -1
  245. package/dist/utils/file-reader.js +1 -1
  246. package/dist/utils/github-releases.js +1 -1
  247. package/dist/utils/global-cache.js +1 -1
  248. package/dist/utils/json-loader.js +1 -1
  249. package/dist/utils/local-cache.js +1 -1
  250. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  251. package/dist/utils/logger/formatters/index.js +1 -1
  252. package/dist/utils/logger/handlers/console-handler.js +1 -1
  253. package/dist/utils/logger/handlers/file-handler.js +1 -1
  254. package/dist/utils/logger/handlers/index.js +1 -1
  255. package/dist/utils/logger/handlers/null-handler.js +1 -1
  256. package/dist/utils/logger/index.js +1 -1
  257. package/dist/utils/logger/logger.js +1 -1
  258. package/dist/utils/logger/types.js +1 -1
  259. package/dist/utils/option-validation.js +1 -1
  260. package/dist/utils/process.js +1 -1
  261. package/dist/utils/prompt.js +1 -1
  262. package/dist/utils/spinner.js +1 -1
  263. package/dist/utils/sse-parser.js +1 -1
  264. package/dist/utils/string-utils.js +1 -1
  265. package/dist/utils/table-ref-parser.js +1 -1
  266. package/dist/utils/tdx-logger.js +1 -1
  267. package/dist/utils/version-check.js +1 -1
  268. package/package.json +1 -1
@@ -1 +1 @@
1
- const a183_0x37f446=a183_0x5a09;(function(_0x49354f,_0x4bd336){const _0x526304=a183_0x5a09,_0x567bc7=_0x49354f();while(!![]){try{const _0x2e9e95=-parseInt(_0x526304(0x170))/0x1+-parseInt(_0x526304(0x164))/0x2*(-parseInt(_0x526304(0x15e))/0x3)+parseInt(_0x526304(0x171))/0x4+parseInt(_0x526304(0x16d))/0x5*(parseInt(_0x526304(0x16e))/0x6)+parseInt(_0x526304(0x160))/0x7+parseInt(_0x526304(0x166))/0x8*(parseInt(_0x526304(0x175))/0x9)+-parseInt(_0x526304(0x16b))/0xa*(parseInt(_0x526304(0x176))/0xb);if(_0x2e9e95===_0x4bd336)break;else _0x567bc7['push'](_0x567bc7['shift']());}catch(_0x39614e){_0x567bc7['push'](_0x567bc7['shift']());}}}(a183_0x121e,0x4fce5));import{existsSync,readFileSync,writeFileSync}from'fs';import a183_0x3e3286 from'path';const TDX_CONFIG_FILE=a183_0x37f446(0x174),WORKFLOWS_DIR='workflows';export function findWorkflowTdxConfigPath(_0x226e65=process[a183_0x37f446(0x16a)]()){const _0x46ad59=a183_0x37f446;let _0x306e88=a183_0x3e3286[_0x46ad59(0x17b)](_0x226e65);const _0x531277=a183_0x3e3286[_0x46ad59(0x17a)](_0x306e88)[_0x46ad59(0x178)];while(_0x306e88!==_0x531277){const _0x124ceb=a183_0x3e3286[_0x46ad59(0x15f)](_0x306e88,TDX_CONFIG_FILE);if(existsSync(_0x124ceb))try{const _0x4426f8=readFileSync(_0x124ceb,_0x46ad59(0x168)),_0x358459=JSON['parse'](_0x4426f8);if(_0x358459&&typeof _0x358459===_0x46ad59(0x161)&&'workflow_project'in _0x358459)return _0x124ceb;}catch{}_0x306e88=a183_0x3e3286[_0x46ad59(0x163)](_0x306e88);}return null;}export function loadWorkflowTdxConfig(_0x509f78){const _0x52d4ca=a183_0x37f446,_0x1278cb=readFileSync(_0x509f78,_0x52d4ca(0x168));let _0x196ba0;try{_0x196ba0=JSON[_0x52d4ca(0x17a)](_0x1278cb);}catch{throw new Error(_0x52d4ca(0x165)+_0x509f78);}if(!_0x196ba0||typeof _0x196ba0!==_0x52d4ca(0x161))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x546415=_0x196ba0;if(!_0x546415[_0x52d4ca(0x169)]||typeof _0x546415[_0x52d4ca(0x169)]!==_0x52d4ca(0x16f))throw new Error('Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27workflow_project\x27\x20field');return{'workflow_project':_0x546415[_0x52d4ca(0x169)],'workflow_project_id':typeof _0x546415[_0x52d4ca(0x16c)]===_0x52d4ca(0x16f)?_0x546415[_0x52d4ca(0x16c)]:undefined,'last_pulled_revision':typeof _0x546415[_0x52d4ca(0x173)]===_0x52d4ca(0x16f)?_0x546415[_0x52d4ca(0x173)]:undefined,'last_pulled_at':typeof _0x546415[_0x52d4ca(0x179)]==='string'?_0x546415[_0x52d4ca(0x179)]:undefined,'last_pushed_revision':typeof _0x546415[_0x52d4ca(0x172)]===_0x52d4ca(0x16f)?_0x546415['last_pushed_revision']:undefined,'last_pushed_at':typeof _0x546415['last_pushed_at']===_0x52d4ca(0x16f)?_0x546415[_0x52d4ca(0x177)]:undefined};}export function findWorkflowTdxConfig(_0x40c7e=process['cwd']()){const _0x2c5559=a183_0x37f446,_0x25471d=findWorkflowTdxConfigPath(_0x40c7e);if(!_0x25471d)throw new Error(_0x2c5559(0x15d));const _0x15f09e=loadWorkflowTdxConfig(_0x25471d),_0x46e34c=a183_0x3e3286['dirname'](_0x25471d);return{'config':_0x15f09e,'configPath':_0x25471d,'configDir':_0x46e34c};}export function tryFindWorkflowTdxConfig(_0xec2ce0){try{return findWorkflowTdxConfig(_0xec2ce0);}catch{return null;}}function a183_0x5a09(_0x5d30d4,_0x3c1f4b){_0x5d30d4=_0x5d30d4-0x15d;const _0x121e39=a183_0x121e();let _0x5a098a=_0x121e39[_0x5d30d4];return _0x5a098a;}export function getWorkflowProjectDir(_0x38e1c0,_0x23a96b=process[a183_0x37f446(0x16a)]()){return a183_0x3e3286['join'](_0x23a96b,WORKFLOWS_DIR,_0x38e1c0);}export function getWorkflowTdxConfigPath(_0x3a07f2,_0x3a2221=process[a183_0x37f446(0x16a)]()){return a183_0x3e3286['join'](getWorkflowProjectDir(_0x3a07f2,_0x3a2221),TDX_CONFIG_FILE);}export function createWorkflowTdxConfigContent(_0x33e28f,_0x5080c7,_0x3cdac4){const _0x570546=a183_0x37f446,_0x2a67fa={'workflow_project':_0x33e28f,..._0x5080c7&&{'workflow_project_id':_0x5080c7},..._0x3cdac4&&{'last_pulled_revision':_0x3cdac4},'last_pulled_at':new Date()[_0x570546(0x162)]()};return JSON[_0x570546(0x167)](_0x2a67fa,null,0x2)+'\x0a';}export function saveWorkflowTdxConfig(_0x4a1e22,_0x571b9f){const _0x4d8bd5=a183_0x37f446,_0x14f409=JSON['stringify'](_0x571b9f,null,0x2)+'\x0a';writeFileSync(_0x4a1e22,_0x14f409,_0x4d8bd5(0x168));}export function updateWorkflowTdxConfig(_0x38baaf,_0x416fa8){const _0x196910=loadWorkflowTdxConfig(_0x38baaf),_0x20390={..._0x196910,..._0x416fa8};saveWorkflowTdxConfig(_0x38baaf,_0x20390);}function a183_0x121e(){const _0xe3e27d=['2279672ntRaOB','last_pushed_revision','last_pulled_revision','tdx.json','9zmMMBw','18784799aHGMbG','last_pushed_at','root','last_pulled_at','parse','resolve','No\x20workflow\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20wf\x20pull\x20<project>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','3054qPpvAA','join','3518732JKrqiE','object','toISOString','dirname','1236IVoJVq','Invalid\x20JSON\x20in\x20','4415432aMlhQp','stringify','utf-8','workflow_project','cwd','10KUPJdr','workflow_project_id','38820pRHtCQ','54psRIFF','string','288929KmpKFN'];a183_0x121e=function(){return _0xe3e27d;};return a183_0x121e();}
1
+ function a193_0x4a47(){const _0x4f425f=['last_pulled_revision','last_pushed_revision','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27workflow_project\x27\x20field','1252VXzNYL','last_pulled_at','596358GaDbYQ','91drRWeU','27wOBQPN','903625HsDxpx','string','object','8lomRoF','11JQpFuL','resolve','No\x20workflow\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20wf\x20pull\x20<project>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','2TzyrGA','workflow_project','last_pushed_at','1402121sImOmn','515180funcUi','12ucqkHu','tdx.json','stringify','root','utf-8','dirname','13693TqGtYb','workflow_project_id','cwd','807960JXrIuP','Invalid\x20tdx.json:\x20expected\x20object','join','1731JXeFep','workflows','parse','toISOString'];a193_0x4a47=function(){return _0x4f425f;};return a193_0x4a47();}function a193_0x1c3f(_0x3ffd94,_0x4e655a){_0x3ffd94=_0x3ffd94-0x107;const _0x4a47bd=a193_0x4a47();let _0x1c3fe8=_0x4a47bd[_0x3ffd94];return _0x1c3fe8;}const a193_0x4c7597=a193_0x1c3f;(function(_0x4b8761,_0x46e7e3){const _0x50b0af=a193_0x1c3f,_0x38ef7a=_0x4b8761();while(!![]){try{const _0x53ed64=-parseInt(_0x50b0af(0x10e))/0x1*(-parseInt(_0x50b0af(0x127))/0x2)+parseInt(_0x50b0af(0x114))/0x3*(-parseInt(_0x50b0af(0x11b))/0x4)+-parseInt(_0x50b0af(0x120))/0x5*(-parseInt(_0x50b0af(0x108))/0x6)+-parseInt(_0x50b0af(0x12a))/0x7*(-parseInt(_0x50b0af(0x123))/0x8)+-parseInt(_0x50b0af(0x11f))/0x9*(-parseInt(_0x50b0af(0x107))/0xa)+-parseInt(_0x50b0af(0x124))/0xb*(-parseInt(_0x50b0af(0x111))/0xc)+-parseInt(_0x50b0af(0x11e))/0xd*(parseInt(_0x50b0af(0x11d))/0xe);if(_0x53ed64===_0x46e7e3)break;else _0x38ef7a['push'](_0x38ef7a['shift']());}catch(_0x510009){_0x38ef7a['push'](_0x38ef7a['shift']());}}}(a193_0x4a47,0x4dc56));import{existsSync,readFileSync,writeFileSync}from'fs';import a193_0x495c02 from'path';const TDX_CONFIG_FILE=a193_0x4c7597(0x109),WORKFLOWS_DIR=a193_0x4c7597(0x115);export function findWorkflowTdxConfigPath(_0x17f0fb=process[a193_0x4c7597(0x110)]()){const _0x378424=a193_0x4c7597;let _0x59105d=a193_0x495c02[_0x378424(0x125)](_0x17f0fb);const _0x2fc24b=a193_0x495c02[_0x378424(0x116)](_0x59105d)[_0x378424(0x10b)];while(_0x59105d!==_0x2fc24b){const _0x219052=a193_0x495c02['join'](_0x59105d,TDX_CONFIG_FILE);if(existsSync(_0x219052))try{const _0x56bfad=readFileSync(_0x219052,'utf-8'),_0x2b545c=JSON[_0x378424(0x116)](_0x56bfad);if(_0x2b545c&&typeof _0x2b545c==='object'&&_0x378424(0x128)in _0x2b545c)return _0x219052;}catch{}_0x59105d=a193_0x495c02[_0x378424(0x10d)](_0x59105d);}return null;}export function loadWorkflowTdxConfig(_0x2f4f03){const _0x4e0e56=a193_0x4c7597,_0x1eaf71=readFileSync(_0x2f4f03,'utf-8');let _0xe084e6;try{_0xe084e6=JSON[_0x4e0e56(0x116)](_0x1eaf71);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x2f4f03);}if(!_0xe084e6||typeof _0xe084e6!==_0x4e0e56(0x122))throw new Error(_0x4e0e56(0x112));const _0x454030=_0xe084e6;if(!_0x454030[_0x4e0e56(0x128)]||typeof _0x454030[_0x4e0e56(0x128)]!==_0x4e0e56(0x121))throw new Error(_0x4e0e56(0x11a));return{'workflow_project':_0x454030['workflow_project'],'workflow_project_id':typeof _0x454030[_0x4e0e56(0x10f)]===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x10f)]:undefined,'last_pulled_revision':typeof _0x454030[_0x4e0e56(0x118)]===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x118)]:undefined,'last_pulled_at':typeof _0x454030[_0x4e0e56(0x11c)]===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x11c)]:undefined,'last_pushed_revision':typeof _0x454030['last_pushed_revision']===_0x4e0e56(0x121)?_0x454030[_0x4e0e56(0x119)]:undefined,'last_pushed_at':typeof _0x454030[_0x4e0e56(0x129)]==='string'?_0x454030['last_pushed_at']:undefined};}export function findWorkflowTdxConfig(_0x4e8f9f=process[a193_0x4c7597(0x110)]()){const _0x35b6c0=a193_0x4c7597,_0x152e38=findWorkflowTdxConfigPath(_0x4e8f9f);if(!_0x152e38)throw new Error(_0x35b6c0(0x126));const _0x3f64d9=loadWorkflowTdxConfig(_0x152e38),_0x4fffbc=a193_0x495c02['dirname'](_0x152e38);return{'config':_0x3f64d9,'configPath':_0x152e38,'configDir':_0x4fffbc};}export function tryFindWorkflowTdxConfig(_0x6751dc){try{return findWorkflowTdxConfig(_0x6751dc);}catch{return null;}}export function getWorkflowProjectDir(_0x3132a0,_0x3e9acb=process[a193_0x4c7597(0x110)]()){const _0x2b24ee=a193_0x4c7597;return a193_0x495c02[_0x2b24ee(0x113)](_0x3e9acb,WORKFLOWS_DIR,_0x3132a0);}export function getWorkflowTdxConfigPath(_0x10015d,_0xb3f7f1=process['cwd']()){const _0x4d7db7=a193_0x4c7597;return a193_0x495c02[_0x4d7db7(0x113)](getWorkflowProjectDir(_0x10015d,_0xb3f7f1),TDX_CONFIG_FILE);}export function createWorkflowTdxConfigContent(_0x255525,_0x3579bd,_0x5861f5){const _0x1424ea=a193_0x4c7597,_0x467977={'workflow_project':_0x255525,..._0x3579bd&&{'workflow_project_id':_0x3579bd},..._0x5861f5&&{'last_pulled_revision':_0x5861f5},'last_pulled_at':new Date()[_0x1424ea(0x117)]()};return JSON['stringify'](_0x467977,null,0x2)+'\x0a';}export function saveWorkflowTdxConfig(_0x1ffd13,_0x2eb74f){const _0x31a2f6=a193_0x4c7597,_0x5490eb=JSON[_0x31a2f6(0x10a)](_0x2eb74f,null,0x2)+'\x0a';writeFileSync(_0x1ffd13,_0x5490eb,_0x31a2f6(0x10c));}export function updateWorkflowTdxConfig(_0x5c258e,_0x2be6c4){const _0x26d600=loadWorkflowTdxConfig(_0x5c258e),_0x676bf6={..._0x26d600,..._0x2be6c4};saveWorkflowTdxConfig(_0x5c258e,_0x676bf6);}
@@ -1 +1 @@
1
- function a184_0x4e4f(_0x40a68c,_0x254e35){_0x40a68c=_0x40a68c-0x1a3;const _0x5e9266=a184_0x5e92();let _0x4e4fa3=_0x5e9266[_0x40a68c];return _0x4e4fa3;}const a184_0x3c94b6=a184_0x4e4f;(function(_0x2ed06c,_0x6b4cf0){const _0x4915c1=a184_0x4e4f,_0x12c961=_0x2ed06c();while(!![]){try{const _0x5eba32=parseInt(_0x4915c1(0x1b6))/0x1+parseInt(_0x4915c1(0x1ad))/0x2*(-parseInt(_0x4915c1(0x1a8))/0x3)+parseInt(_0x4915c1(0x1a5))/0x4+-parseInt(_0x4915c1(0x1b4))/0x5*(parseInt(_0x4915c1(0x1ba))/0x6)+-parseInt(_0x4915c1(0x1b2))/0x7*(parseInt(_0x4915c1(0x1b3))/0x8)+parseInt(_0x4915c1(0x1ac))/0x9*(parseInt(_0x4915c1(0x1aa))/0xa)+parseInt(_0x4915c1(0x1af))/0xb;if(_0x5eba32===_0x6b4cf0)break;else _0x12c961['push'](_0x12c961['shift']());}catch(_0x206f2e){_0x12c961['push'](_0x12c961['shift']());}}}(a184_0x5e92,0x59640));import{promises as a184_0x33a09b}from'fs';import a184_0x16f4b4 from'path';import a184_0x4fbd16 from'ignore';export const WORKFLOW_FILE_EXTENSION=a184_0x3c94b6(0x1a7);export function shouldIncludeInArchive(_0x2fc2ac){const _0x4557b7=a184_0x3c94b6;if(_0x2fc2ac===_0x4557b7(0x1bb))return!![];if(_0x2fc2ac[_0x4557b7(0x1b5)]('.'))return![];if(_0x2fc2ac[_0x4557b7(0x1b8)]('~'))return![];if(_0x2fc2ac===_0x4557b7(0x1a9)||_0x2fc2ac===_0x4557b7(0x1b1))return![];return!![];}export function parseDigdagignore(_0x5a7689){const _0x33ede0=a184_0x3c94b6;return _0x5a7689[_0x33ede0(0x1b0)]('\x0a')[_0x33ede0(0x1b7)](_0x3dd9d3=>_0x3dd9d3['trim']())['filter'](_0x1c2ad0=>_0x1c2ad0[_0x33ede0(0x1a4)]>0x0&&!_0x1c2ad0[_0x33ede0(0x1b5)]('#'));}export async function loadDigdagignore(_0x694800){const _0x25fb73=a184_0x3c94b6,_0x4d411e=a184_0x16f4b4[_0x25fb73(0x1b9)](_0x694800,'.digdagignore');try{const _0x117d77=await a184_0x33a09b['readFile'](_0x4d411e,'utf-8');return parseDigdagignore(_0x117d77);}catch(_0x17bb30){if(_0x17bb30[_0x25fb73(0x1a6)]==='ENOENT')return null;throw _0x17bb30;}}export function createIgnoreInstance(_0xdefcc6){const _0x522fd6=a184_0x3c94b6,_0x46da81=a184_0x4fbd16();return _0xdefcc6&&_0xdefcc6[_0x522fd6(0x1a4)]>0x0&&_0x46da81['add'](_0xdefcc6),_0x46da81;}export function addScopedPatterns(_0x479157,_0x548444,_0x307969){const _0x2eca1a=a184_0x3c94b6,_0xd88aa9=_0x548444[_0x2eca1a(0x1b7)](_0x313ec6=>{const _0x3b9490=_0x2eca1a;if(_0x313ec6['startsWith']('!')){const _0x51f26c=_0x313ec6[_0x3b9490(0x1ae)](0x1);if(_0x51f26c[_0x3b9490(0x1b5)]('/'))return'!'+_0x307969+_0x51f26c;return'!'+_0x307969+'/'+_0x51f26c;}if(_0x313ec6['startsWith']('/'))return''+_0x307969+_0x313ec6;return _0x307969+'/'+_0x313ec6;});return _0x479157[_0x2eca1a(0x1a3)](_0xd88aa9),_0x479157;}function a184_0x5e92(){const _0x4af4a4=['59121oqZWPs','map','endsWith','join','108DBoGtC','.digdag','add','length','986684aoIcxG','code','.dig','10803MHMmRV','Thumbs.db','2606270uJiyMG','replace','9jfPtzI','156NBturH','slice','2559007GfNFQi','split','.DS_Store','42WsoQPG','136184EUFwjD','13860AXFlUb','startsWith'];a184_0x5e92=function(){return _0x4af4a4;};return a184_0x5e92();}export function shouldIgnoreWithInstance(_0x287650,_0x56cc2b,_0x5a7983){const _0x248cb6=a184_0x3c94b6,_0x4c40c7=_0x56cc2b[_0x248cb6(0x1ab)](/\\/g,'/'),_0x251e77=_0x5a7983?_0x4c40c7+'/':_0x4c40c7;return _0x287650['ignores'](_0x251e77);}
1
+ const a194_0x505fd5=a194_0x4b29;(function(_0x3f3ba5,_0x9f5eee){const _0x22cdb5=a194_0x4b29,_0x5814d7=_0x3f3ba5();while(!![]){try{const _0x54c5cd=-parseInt(_0x22cdb5(0x121))/0x1*(-parseInt(_0x22cdb5(0x132))/0x2)+parseInt(_0x22cdb5(0x124))/0x3+-parseInt(_0x22cdb5(0x11f))/0x4*(-parseInt(_0x22cdb5(0x130))/0x5)+-parseInt(_0x22cdb5(0x129))/0x6*(parseInt(_0x22cdb5(0x138))/0x7)+parseInt(_0x22cdb5(0x12e))/0x8*(-parseInt(_0x22cdb5(0x12f))/0x9)+parseInt(_0x22cdb5(0x131))/0xa*(-parseInt(_0x22cdb5(0x11e))/0xb)+-parseInt(_0x22cdb5(0x125))/0xc*(-parseInt(_0x22cdb5(0x120))/0xd);if(_0x54c5cd===_0x9f5eee)break;else _0x5814d7['push'](_0x5814d7['shift']());}catch(_0x25e61d){_0x5814d7['push'](_0x5814d7['shift']());}}}(a194_0x2fa5,0x5aa21));import{promises as a194_0x6bae9b}from'fs';import a194_0x4b2b99 from'path';import a194_0x373a15 from'ignore';export const WORKFLOW_FILE_EXTENSION=a194_0x505fd5(0x133);function a194_0x4b29(_0x36812c,_0x3156ec){_0x36812c=_0x36812c-0x11c;const _0x2fa549=a194_0x2fa5();let _0x4b299e=_0x2fa549[_0x36812c];return _0x4b299e;}export function shouldIncludeInArchive(_0x28d4ca){const _0x15129b=a194_0x505fd5;if(_0x28d4ca===_0x15129b(0x136))return!![];if(_0x28d4ca['startsWith']('.'))return![];if(_0x28d4ca[_0x15129b(0x126)]('~'))return![];if(_0x28d4ca===_0x15129b(0x12b)||_0x28d4ca===_0x15129b(0x11d))return![];return!![];}export function parseDigdagignore(_0x463ee9){const _0x2931cd=a194_0x505fd5;return _0x463ee9[_0x2931cd(0x12c)]('\x0a')['map'](_0x14c237=>_0x14c237[_0x2931cd(0x127)]())['filter'](_0x4e2699=>_0x4e2699[_0x2931cd(0x128)]>0x0&&!_0x4e2699[_0x2931cd(0x11c)]('#'));}export async function loadDigdagignore(_0x2555ad){const _0x365775=a194_0x505fd5,_0x1fbc44=a194_0x4b2b99[_0x365775(0x139)](_0x2555ad,'.digdagignore');try{const _0x4446f8=await a194_0x6bae9b[_0x365775(0x12a)](_0x1fbc44,_0x365775(0x137));return parseDigdagignore(_0x4446f8);}catch(_0x59edf2){if(_0x59edf2[_0x365775(0x123)]===_0x365775(0x135))return null;throw _0x59edf2;}}function a194_0x2fa5(){const _0x12652a=['1092819UPUhEk','3459444ISdBrL','endsWith','trim','length','5448FlmoJv','readFile','Thumbs.db','split','slice','111248ElPRUS','9iolTce','5wTeGyY','4390070VjiTWO','2hFZllx','.dig','map','ENOENT','.digdag','utf-8','3521vkhmgP','join','startsWith','.DS_Store','11vSvVHw','2347676WsrZXe','13xJVeUu','41391Mbqzpt','add','code'];a194_0x2fa5=function(){return _0x12652a;};return a194_0x2fa5();}export function createIgnoreInstance(_0x8b8326){const _0x2d4c5a=a194_0x505fd5,_0x25eb4c=a194_0x373a15();return _0x8b8326&&_0x8b8326['length']>0x0&&_0x25eb4c[_0x2d4c5a(0x122)](_0x8b8326),_0x25eb4c;}export function addScopedPatterns(_0x1378b9,_0x498866,_0x3dc0fb){const _0x45c4d8=a194_0x505fd5,_0x58acb4=_0x498866[_0x45c4d8(0x134)](_0x4a4131=>{const _0x59ecfc=_0x45c4d8;if(_0x4a4131[_0x59ecfc(0x11c)]('!')){const _0x64109c=_0x4a4131[_0x59ecfc(0x12d)](0x1);if(_0x64109c['startsWith']('/'))return'!'+_0x3dc0fb+_0x64109c;return'!'+_0x3dc0fb+'/'+_0x64109c;}if(_0x4a4131[_0x59ecfc(0x11c)]('/'))return''+_0x3dc0fb+_0x4a4131;return _0x3dc0fb+'/'+_0x4a4131;});return _0x1378b9[_0x45c4d8(0x122)](_0x58acb4),_0x1378b9;}export function shouldIgnoreWithInstance(_0x174e28,_0x4e77df,_0xf22b4){const _0x590833=_0x4e77df['replace'](/\\/g,'/'),_0x4b85d3=_0xf22b4?_0x590833+'/':_0x590833;return _0x174e28['ignores'](_0x4b85d3);}
@@ -1 +1 @@
1
- function a185_0x3c30(_0x79c2ab,_0x1290b2){_0x79c2ab=_0x79c2ab-0x1a5;const _0x314e94=a185_0x314e();let _0x3c30f7=_0x314e94[_0x79c2ab];return _0x3c30f7;}const a185_0x143bd6=a185_0x3c30;(function(_0x411f0a,_0x21267c){const _0x4fa073=a185_0x3c30,_0x3de236=_0x411f0a();while(!![]){try{const _0xdbc860=-parseInt(_0x4fa073(0x1b1))/0x1*(-parseInt(_0x4fa073(0x1b8))/0x2)+parseInt(_0x4fa073(0x1b2))/0x3+parseInt(_0x4fa073(0x1b7))/0x4*(-parseInt(_0x4fa073(0x1ac))/0x5)+parseInt(_0x4fa073(0x1c0))/0x6+-parseInt(_0x4fa073(0x1a7))/0x7+parseInt(_0x4fa073(0x1b3))/0x8*(parseInt(_0x4fa073(0x1ad))/0x9)+parseInt(_0x4fa073(0x1b9))/0xa;if(_0xdbc860===_0x21267c)break;else _0x3de236['push'](_0x3de236['shift']());}catch(_0x15c2de){_0x3de236['push'](_0x3de236['shift']());}}}(a185_0x314e,0xe6664));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a185_0x314e(){const _0x146a02=['originalFetch','1716436hIWUsa','9302KSiEnR','1200690QLRlrX','run','map','push','options','createFetch','http','3537012xYqYar','verify','fetch','warn','1309840WTFLIr','args','ERROR','join','site','10sqqfNs','27kUBomp','log','fail','runSequence','37yeNBfa','1038717bNTqWk','2029752QopKxh','error','test-api-key-id/test-api-key-secret'];a185_0x314e=function(){return _0x146a02;};return a185_0x314e();}export class CommandRunner{['http'];[a185_0x143bd6(0x1b6)];constructor(){const _0x3afc09=a185_0x143bd6;this[_0x3afc09(0x1bf)]=createHTTPMock(),this[_0x3afc09(0x1b6)]=global[_0x3afc09(0x1a5)];}['setup'](){const _0x15ed33=a185_0x143bd6;this[_0x15ed33(0x1b6)]=global['fetch'],global[_0x15ed33(0x1a5)]=this[_0x15ed33(0x1bf)][_0x15ed33(0x1be)]();}['teardown'](_0x190041){const _0x57238c=a185_0x143bd6;try{_0x190041?.[_0x57238c(0x1af)]&&this['http'][_0x57238c(0x1c1)](_0x190041);}finally{global['fetch']=this['originalFetch'],this[_0x57238c(0x1bf)]['reset']();}}async[a185_0x143bd6(0x1ba)](_0x9de4a4,_0x5386fc={}){const _0x1fd4ff=a185_0x143bd6,_0x3de68a=[],_0x348d58=[],_0x229ba3=console[_0x1fd4ff(0x1ae)],_0x52ee02=console['error'],_0x2f1089=console[_0x1fd4ff(0x1a6)];console['log']=(..._0x4523ba)=>{const _0x2d8ad=_0x1fd4ff;_0x3de68a[_0x2d8ad(0x1bc)](_0x4523ba[_0x2d8ad(0x1bb)](String)['join']('\x20'));},console[_0x1fd4ff(0x1b4)]=(..._0xc468c7)=>{const _0x1bf474=_0x1fd4ff;_0x348d58[_0x1bf474(0x1bc)](_0xc468c7[_0x1bf474(0x1bb)](String)['join']('\x20'));},console[_0x1fd4ff(0x1a6)]=(..._0x2a93d9)=>{const _0x51e24e=_0x1fd4ff;_0x348d58[_0x51e24e(0x1bc)](_0x2a93d9['map'](String)[_0x51e24e(0x1aa)]('\x20'));};try{const _0x50e967=new TDX({'site':_0x5386fc[_0x1fd4ff(0x1bd)]?.[_0x1fd4ff(0x1ab)]??'us01','apiKey':_0x1fd4ff(0x1b5),'logLevel':LogLevel[_0x1fd4ff(0x1a9)]}),_0x584a1c={'options':createTestGlobalOptions(_0x5386fc['options']),'args':_0x5386fc[_0x1fd4ff(0x1a8)]??[],'tdx':_0x50e967},_0x360b11=new _0x9de4a4(),_0x393641=await _0x360b11[_0x1fd4ff(0x1ba)](_0x584a1c);return{'exitCode':_0x393641,'stdout':_0x3de68a,'stderr':_0x348d58};}finally{console[_0x1fd4ff(0x1ae)]=_0x229ba3,console[_0x1fd4ff(0x1b4)]=_0x52ee02,console[_0x1fd4ff(0x1a6)]=_0x2f1089;}}async[a185_0x143bd6(0x1b0)](_0x1e120d){const _0x25b650=a185_0x143bd6,_0x3b05d5=[];for(const {command:_0x279192,options:_0x156b45}of _0x1e120d){const _0x57840e=await this[_0x25b650(0x1ba)](_0x279192,_0x156b45);_0x3b05d5['push'](_0x57840e);if(_0x57840e['exitCode']!==0x0)break;}return _0x3b05d5;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a195_0x41c3f9=a195_0x424b;function a195_0x4c3d(){const _0x2bf186=['http','1051298rWryBR','test-api-key-id/test-api-key-secret','createFetch','2VFCTUJ','teardown','warn','11777778DLSTeV','args','run','originalFetch','map','fetch','options','8WqesOu','1218340AWjpQs','ERROR','fail','site','push','error','log','3386568IcFZaT','70LlgnHB','5zLybtA','reset','join','3730139JYIVKk','3666243wLqikP','us01','3363371UrvswK'];a195_0x4c3d=function(){return _0x2bf186;};return a195_0x4c3d();}(function(_0x5f0491,_0x12c38f){const _0x3e7253=a195_0x424b,_0x521a7f=_0x5f0491();while(!![]){try{const _0x4dfd5e=parseInt(_0x3e7253(0x1f6))/0x1+-parseInt(_0x3e7253(0x1f9))/0x2*(parseInt(_0x3e7253(0x1f2))/0x3)+parseInt(_0x3e7253(0x204))/0x4+parseInt(_0x3e7253(0x20d))/0x5*(-parseInt(_0x3e7253(0x20b))/0x6)+parseInt(_0x3e7253(0x1f1))/0x7+-parseInt(_0x3e7253(0x203))/0x8*(parseInt(_0x3e7253(0x1fc))/0x9)+-parseInt(_0x3e7253(0x20c))/0xa*(-parseInt(_0x3e7253(0x1f4))/0xb);if(_0x4dfd5e===_0x12c38f)break;else _0x521a7f['push'](_0x521a7f['shift']());}catch(_0x26252f){_0x521a7f['push'](_0x521a7f['shift']());}}}(a195_0x4c3d,0xe4030));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a195_0x424b(_0x10e5f8,_0x96e95c){_0x10e5f8=_0x10e5f8-0x1ef;const _0x4c3d59=a195_0x4c3d();let _0x424bd3=_0x4c3d59[_0x10e5f8];return _0x424bd3;}export class CommandRunner{[a195_0x41c3f9(0x1f5)];[a195_0x41c3f9(0x1ff)];constructor(){const _0x579a0=a195_0x41c3f9;this['http']=createHTTPMock(),this[_0x579a0(0x1ff)]=global[_0x579a0(0x201)];}['setup'](){const _0x150a1e=a195_0x41c3f9;this[_0x150a1e(0x1ff)]=global[_0x150a1e(0x201)],global[_0x150a1e(0x201)]=this[_0x150a1e(0x1f5)][_0x150a1e(0x1f8)]();}[a195_0x41c3f9(0x1fa)](_0x44557d){const _0xb1adc7=a195_0x41c3f9;try{_0x44557d?.[_0xb1adc7(0x206)]&&this['http']['verify'](_0x44557d);}finally{global[_0xb1adc7(0x201)]=this[_0xb1adc7(0x1ff)],this[_0xb1adc7(0x1f5)][_0xb1adc7(0x1ef)]();}}async[a195_0x41c3f9(0x1fe)](_0x43d700,_0x2ae76f={}){const _0x3d3487=a195_0x41c3f9,_0x5d79f3=[],_0x3c1933=[],_0x33302e=console[_0x3d3487(0x20a)],_0x4a9939=console[_0x3d3487(0x209)],_0x30a7fd=console[_0x3d3487(0x1fb)];console[_0x3d3487(0x20a)]=(..._0x721556)=>{const _0xd0720f=_0x3d3487;_0x5d79f3[_0xd0720f(0x208)](_0x721556[_0xd0720f(0x200)](String)[_0xd0720f(0x1f0)]('\x20'));},console[_0x3d3487(0x209)]=(..._0x3db78d)=>{const _0x3042b1=_0x3d3487;_0x3c1933['push'](_0x3db78d[_0x3042b1(0x200)](String)['join']('\x20'));},console[_0x3d3487(0x1fb)]=(..._0x869b29)=>{const _0xb11f6c=_0x3d3487;_0x3c1933['push'](_0x869b29['map'](String)[_0xb11f6c(0x1f0)]('\x20'));};try{const _0x4004c4=new TDX({'site':_0x2ae76f[_0x3d3487(0x202)]?.[_0x3d3487(0x207)]??_0x3d3487(0x1f3),'apiKey':_0x3d3487(0x1f7),'logLevel':LogLevel[_0x3d3487(0x205)]}),_0x55a56d={'options':createTestGlobalOptions(_0x2ae76f[_0x3d3487(0x202)]),'args':_0x2ae76f[_0x3d3487(0x1fd)]??[],'tdx':_0x4004c4},_0x24c5e6=new _0x43d700(),_0x179be7=await _0x24c5e6[_0x3d3487(0x1fe)](_0x55a56d);return{'exitCode':_0x179be7,'stdout':_0x5d79f3,'stderr':_0x3c1933};}finally{console[_0x3d3487(0x20a)]=_0x33302e,console[_0x3d3487(0x209)]=_0x4a9939,console[_0x3d3487(0x1fb)]=_0x30a7fd;}}async['runSequence'](_0x2da01a){const _0x123c7e=a195_0x41c3f9,_0x230573=[];for(const {command:_0x362ed4,options:_0x453cbd}of _0x2da01a){const _0x328295=await this[_0x123c7e(0x1fe)](_0x362ed4,_0x453cbd);_0x230573['push'](_0x328295);if(_0x328295['exitCode']!==0x0)break;}return _0x230573;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x39ddd3,_0x1f258a){const _0x5edc9b=a186_0x5b83,_0x205faa=_0x39ddd3();while(!![]){try{const _0x48e7b7=parseInt(_0x5edc9b(0x1af))/0x1*(parseInt(_0x5edc9b(0x1a4))/0x2)+parseInt(_0x5edc9b(0x1aa))/0x3+parseInt(_0x5edc9b(0x1b0))/0x4+parseInt(_0x5edc9b(0x1bd))/0x5+parseInt(_0x5edc9b(0x1a7))/0x6+parseInt(_0x5edc9b(0x1b6))/0x7+-parseInt(_0x5edc9b(0x1a5))/0x8;if(_0x48e7b7===_0x1f258a)break;else _0x205faa['push'](_0x205faa['shift']());}catch(_0x2475c3){_0x205faa['push'](_0x205faa['shift']());}}}(a186_0x4689,0x3e0a8));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';function a186_0x4689(){const _0x95adcc=['user','log','options','test-api-key-id/test-api-key-secret','3198748gOXHHD','join','warn','logs','us01','query','ERROR','2493735NnbQMl','args','error','reset','9458oKsgmF','13588624stuqQD','tdx','728856jhXiWm','30000','push','1183827LXkaaI','table','init','workflow','test-api-key','13fbleFh','1677700NiKskS','map'];a186_0x4689=function(){return _0x95adcc;};return a186_0x4689();}import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x3e234e){const _0x46a5b7=a186_0x5b83;return{'site':_0x46a5b7(0x1ba),'apiKey':_0x46a5b7(0x1b5),'logLevel':LogLevel[_0x46a5b7(0x1bc)],..._0x3e234e};}export function createTestGlobalOptions(_0x38d526){const _0x43085e=a186_0x5b83;return{'site':_0x43085e(0x1ba),'format':_0x43085e(0x1ab),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x43085e(0x1a8),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x43085e(0x1bc)],..._0x38d526};}export async function initTestLogger(){const _0x2993ff=a186_0x5b83;Logger[_0x2993ff(0x1c0)]();const _0xb16403=join(getGlobalCacheDir(),_0x2993ff(0x1b9),'tdx-test.log');await Logger[_0x2993ff(0x1ac)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0xb16403,'rotate':![]})]});}function a186_0x5b83(_0x509eda,_0x40ccb3){_0x509eda=_0x509eda-0x1a4;const _0x468964=a186_0x4689();let _0x5b83ca=_0x468964[_0x509eda];return _0x5b83ca;}export function resetTestLogger(){const _0xccb8ec=a186_0x5b83;Logger[_0xccb8ec(0x1c0)]();}export function createMockTDX(_0x55373f){const _0x3fff5b=a186_0x5b83;return{'context':{'site':_0x3fff5b(0x1ba),'apiKey':_0x3fff5b(0x1ae),'logLevel':LogLevel[_0x3fff5b(0x1bc)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x55373f?.[_0x3fff5b(0x1bb)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x55373f?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x55373f?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x55373f?.[_0x3fff5b(0x1ad)]},'user':{'show':vi['fn'](),..._0x55373f?.[_0x3fff5b(0x1b2)]},'api':{'request':vi['fn'](),..._0x55373f?.['api']},..._0x55373f};}export function createTestCommandContext(_0x2e87a4){const _0x4cf5cd=a186_0x5b83,_0x27092c=createTestGlobalOptions(_0x2e87a4?.[_0x4cf5cd(0x1b4)]),_0x80c40d=_0x2e87a4?.[_0x4cf5cd(0x1a6)]??createMockTDX();return{'options':_0x27092c,'args':_0x2e87a4?.[_0x4cf5cd(0x1be)]??[],'tdx':_0x80c40d};}export function captureConsole(){const _0x2f8b35=a186_0x5b83,_0x215b72=[],_0x470bb0=[],_0x551041=console['log'],_0x26cbca=console[_0x2f8b35(0x1bf)],_0x15c76c=console['warn'];return console[_0x2f8b35(0x1b3)]=(..._0x57cd88)=>{const _0x3cae06=_0x2f8b35;_0x215b72[_0x3cae06(0x1a9)](_0x57cd88[_0x3cae06(0x1b1)](String)[_0x3cae06(0x1b7)]('\x20'));},console[_0x2f8b35(0x1bf)]=(..._0x158d66)=>{const _0x4b5391=_0x2f8b35;_0x470bb0[_0x4b5391(0x1a9)](_0x158d66[_0x4b5391(0x1b1)](String)[_0x4b5391(0x1b7)]('\x20'));},console[_0x2f8b35(0x1b8)]=(..._0x3d0a69)=>{const _0xaa4390=_0x2f8b35;_0x470bb0[_0xaa4390(0x1a9)](_0x3d0a69['map'](String)[_0xaa4390(0x1b7)]('\x20'));},{'stdout':_0x215b72,'stderr':_0x470bb0,'restore':()=>{const _0x4f29d5=_0x2f8b35;console[_0x4f29d5(0x1b3)]=_0x551041,console[_0x4f29d5(0x1bf)]=_0x26cbca,console[_0x4f29d5(0x1b8)]=_0x15c76c;}};}
1
+ (function(_0x5c746d,_0x52bf31){const _0x203fcb=a196_0x34f5,_0x381ec7=_0x5c746d();while(!![]){try{const _0x384805=parseInt(_0x203fcb(0x82))/0x1+parseInt(_0x203fcb(0x7b))/0x2*(-parseInt(_0x203fcb(0x7e))/0x3)+-parseInt(_0x203fcb(0x6a))/0x4+parseInt(_0x203fcb(0x70))/0x5+-parseInt(_0x203fcb(0x78))/0x6+parseInt(_0x203fcb(0x74))/0x7+parseInt(_0x203fcb(0x7d))/0x8*(-parseInt(_0x203fcb(0x6b))/0x9);if(_0x384805===_0x52bf31)break;else _0x381ec7['push'](_0x381ec7['shift']());}catch(_0x12dd9e){_0x381ec7['push'](_0x381ec7['shift']());}}}(a196_0x4165,0xc7559));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';function a196_0x34f5(_0x149407,_0x315ddc){_0x149407=_0x149407-0x67;const _0x416558=a196_0x4165();let _0x34f5f9=_0x416558[_0x149407];return _0x34f5f9;}export function createTestSDKContext(_0x557e9b){const _0x491f2f=a196_0x34f5;return{'site':_0x491f2f(0x7f),'apiKey':_0x491f2f(0x79),'logLevel':LogLevel[_0x491f2f(0x72)],..._0x557e9b};}export function createTestGlobalOptions(_0x4f5e4f){const _0x16a6fe=a196_0x34f5;return{'site':_0x16a6fe(0x7f),'format':_0x16a6fe(0x7a),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x16a6fe(0x68),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x16a6fe(0x72)],..._0x4f5e4f};}function a196_0x4165(){const _0x5b5a23=['query','test-api-key','211107IJKhkj','segment','error','30000','init','2938388WtVUBR','18oQcsrW','log','logs','push','join','2140185eqkwaZ','map','ERROR','DEBUG','10631607MkIhkh','user','journey','reset','632310LReFra','test-api-key-id/test-api-key-secret','table','8EhvClx','warn','844328HcCTti','217806GpVHvT','us01'];a196_0x4165=function(){return _0x5b5a23;};return a196_0x4165();}export async function initTestLogger(){const _0x39f038=a196_0x34f5;Logger['reset']();const _0x3b486e=join(getGlobalCacheDir(),_0x39f038(0x6d),'tdx-test.log');await Logger[_0x39f038(0x69)]({'defaultLevel':LogLevel[_0x39f038(0x73)],'handlers':[new FileHandler({'filePath':_0x3b486e,'rotate':![]})]});}export function resetTestLogger(){const _0xe146d2=a196_0x34f5;Logger[_0xe146d2(0x77)]();}export function createMockTDX(_0x46cf99){const _0x55df00=a196_0x34f5;return{'context':{'site':'us01','apiKey':_0x55df00(0x81),'logLevel':LogLevel[_0x55df00(0x72)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x46cf99?.[_0x55df00(0x80)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x46cf99?.[_0x55df00(0x83)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x46cf99?.[_0x55df00(0x76)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x46cf99?.['workflow']},'user':{'show':vi['fn'](),..._0x46cf99?.[_0x55df00(0x75)]},'api':{'request':vi['fn'](),..._0x46cf99?.['api']},..._0x46cf99};}export function createTestCommandContext(_0x2e6396){const _0x4b1cbe=createTestGlobalOptions(_0x2e6396?.['options']),_0x3c6a00=_0x2e6396?.['tdx']??createMockTDX();return{'options':_0x4b1cbe,'args':_0x2e6396?.['args']??[],'tdx':_0x3c6a00};}export function captureConsole(){const _0x151ac9=a196_0x34f5,_0x2fc35c=[],_0x384fcf=[],_0x9c9d9=console['log'],_0x2a5af9=console[_0x151ac9(0x67)],_0x27cbd7=console[_0x151ac9(0x7c)];return console[_0x151ac9(0x6c)]=(..._0xbe03a0)=>{_0x2fc35c['push'](_0xbe03a0['map'](String)['join']('\x20'));},console['error']=(..._0x3b4618)=>{const _0x904369=_0x151ac9;_0x384fcf[_0x904369(0x6e)](_0x3b4618[_0x904369(0x71)](String)[_0x904369(0x6f)]('\x20'));},console['warn']=(..._0x3fdf49)=>{const _0x4356ec=_0x151ac9;_0x384fcf['push'](_0x3fdf49[_0x4356ec(0x71)](String)[_0x4356ec(0x6f)]('\x20'));},{'stdout':_0x2fc35c,'stderr':_0x384fcf,'restore':()=>{const _0x413d39=_0x151ac9;console[_0x413d39(0x6c)]=_0x9c9d9,console['error']=_0x2a5af9,console[_0x413d39(0x7c)]=_0x27cbd7;}};}
@@ -1 +1 @@
1
- const a187_0x69793a=a187_0x4f70;(function(_0x324c8d,_0x2c936d){const _0x6642cc=a187_0x4f70,_0xfb54f9=_0x324c8d();while(!![]){try{const _0x27fe83=parseInt(_0x6642cc(0xb6))/0x1+parseInt(_0x6642cc(0xc2))/0x2+-parseInt(_0x6642cc(0xf1))/0x3*(-parseInt(_0x6642cc(0x8e))/0x4)+parseInt(_0x6642cc(0xc3))/0x5+-parseInt(_0x6642cc(0xe9))/0x6*(parseInt(_0x6642cc(0xbe))/0x7)+parseInt(_0x6642cc(0xb1))/0x8+-parseInt(_0x6642cc(0xa4))/0x9;if(_0x27fe83===_0x2c936d)break;else _0xfb54f9['push'](_0xfb54f9['shift']());}catch(_0x93afdf){_0xfb54f9['push'](_0xfb54f9['shift']());}}}(a187_0x3408,0x4bd50));export const fixtures={'database':{'basic':{'name':a187_0x69793a(0xad),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-01T00:00:00Z','permission':a187_0x69793a(0xd2)},'withTables':{'name':a187_0x69793a(0xab),'count':0x64,'created_at':a187_0x69793a(0xb8),'updated_at':a187_0x69793a(0xa8),'permission':a187_0x69793a(0xd6)}},'table':{'basic':{'id':0x3039,'name':a187_0x69793a(0xd9),'type':a187_0x69793a(0x91),'schema':JSON[a187_0x69793a(0xaf)]([['id',a187_0x69793a(0xc4)],[a187_0x69793a(0x9c),a187_0x69793a(0x8f)],[a187_0x69793a(0xa6),a187_0x69793a(0xc4)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0x93)},'events':{'id':0x303a,'name':'events','type':a187_0x69793a(0x91),'schema':JSON[a187_0x69793a(0xaf)]([[a187_0x69793a(0xb2),a187_0x69793a(0xc4)],[a187_0x69793a(0x9c),'long'],[a187_0x69793a(0xf9),a187_0x69793a(0xc4)],[a187_0x69793a(0x9e),a187_0x69793a(0xc4)],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a187_0x69793a(0x93),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a187_0x69793a(0xb7),'name':a187_0x69793a(0xe8),'description':a187_0x69793a(0xf7),'status':a187_0x69793a(0x8d),'master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a187_0x69793a(0xe6),'type':'string','key':!![]},{'name':a187_0x69793a(0xbc),'type':a187_0x69793a(0xc4)},{'name':a187_0x69793a(0xe1),'type':'timestamp'}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withBehaviors':{'id':'ps-789012','name':a187_0x69793a(0xd0),'description':a187_0x69793a(0xf6),'status':a187_0x69793a(0x8d),'master_table':{'database':a187_0x69793a(0xd7),'table':a187_0x69793a(0xdb)},'behaviors':[{'name':a187_0x69793a(0xc5),'table':{'database':'events_db','table':a187_0x69793a(0xc5)},'join_key':a187_0x69793a(0xe6)},{'name':a187_0x69793a(0xec),'table':{'database':a187_0x69793a(0xf3),'table':a187_0x69793a(0xa9)},'join_key':a187_0x69793a(0xe6)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x69793a(0xfa)}},'segment':{'basic':{'id':a187_0x69793a(0xb9),'name':a187_0x69793a(0xed),'description':a187_0x69793a(0x98),'parent_segment_id':a187_0x69793a(0xb7),'status':a187_0x69793a(0x8d),'rules':[{'type':a187_0x69793a(0x97),'field':a187_0x69793a(0x94),'operator':a187_0x69793a(0x99),'value':'30d'}],'count':0x1388,'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withMultipleRules':{'id':a187_0x69793a(0xf4),'name':a187_0x69793a(0xe7),'description':a187_0x69793a(0x9d),'parent_segment_id':a187_0x69793a(0xb7),'status':a187_0x69793a(0x8d),'rules':[{'type':a187_0x69793a(0x97),'field':'last_login','operator':a187_0x69793a(0x99),'value':a187_0x69793a(0xb0)},{'type':'attribute','field':a187_0x69793a(0xd1),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x69793a(0xfa)}},'journey':{'basic':{'id':a187_0x69793a(0xa1),'name':a187_0x69793a(0xfd),'description':a187_0x69793a(0xc6),'status':'draft','version':0x1,'steps':[{'id':a187_0x69793a(0xcc),'type':'wait','duration':'1d'},{'id':a187_0x69793a(0xc1),'type':a187_0x69793a(0xf5),'activation_id':a187_0x69793a(0xfb)}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withDecision':{'id':a187_0x69793a(0xd4),'name':a187_0x69793a(0xaa),'description':a187_0x69793a(0xa7),'status':'active','version':0x2,'steps':[{'id':a187_0x69793a(0xcc),'type':a187_0x69793a(0x96),'segment_id':a187_0x69793a(0xb9),'yes_path':a187_0x69793a(0xc1),'no_path':a187_0x69793a(0xd8)},{'id':a187_0x69793a(0xc1),'type':a187_0x69793a(0xf5),'activation_id':a187_0x69793a(0xcb)},{'id':a187_0x69793a(0xd8),'type':'end'}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a187_0x69793a(0xc8)},{'name':'name','type':'varchar'},{'name':a187_0x69793a(0xea),'type':a187_0x69793a(0xef)}],'data':[[a187_0x69793a(0xa0),a187_0x69793a(0xc0),0x64],[a187_0x69793a(0x9b),'Bob',0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a187_0x69793a(0xc8)},{'name':a187_0x69793a(0xa6),'type':a187_0x69793a(0xc8)}],'data':[]},'singleRow':{'schema':[{'name':a187_0x69793a(0xcf),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a187_0x69793a(0x93),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a187_0x69793a(0xd5),'created_at':a187_0x69793a(0xee),'updated_at':a187_0x69793a(0xfa),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a187_0x69793a(0xa5),'database':a187_0x69793a(0xad),'status':a187_0x69793a(0xca),'query':a187_0x69793a(0xae),'start_at':a187_0x69793a(0xd3),'end_at':a187_0x69793a(0x95),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a187_0x69793a(0xa5),'database':'test_db','status':a187_0x69793a(0xf8),'query':a187_0x69793a(0xe2),'start_at':a187_0x69793a(0xa2),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a187_0x69793a(0xad),'status':a187_0x69793a(0xc9),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a187_0x69793a(0xce),'end_at':a187_0x69793a(0xbb),'duration':0x1,'result_size':null,'error':a187_0x69793a(0xfc)}},'workflow':{'basic':{'id':'wf-12345','name':a187_0x69793a(0xf2),'project':a187_0x69793a(0xc7),'revision':a187_0x69793a(0xb4),'timezone':a187_0x69793a(0xdf),'schedule':{'cron':a187_0x69793a(0xac)}},'withSessions':{'id':'wf-67890','name':'hourly_sync','project':a187_0x69793a(0x9a),'revision':a187_0x69793a(0xbd),'timezone':a187_0x69793a(0xba),'schedule':{'cron':a187_0x69793a(0xa3)},'last_session':{'id':a187_0x69793a(0xde),'status':a187_0x69793a(0xca),'started_at':a187_0x69793a(0xda),'finished_at':a187_0x69793a(0xb3)}}},'apiError':{'unauthorized':{'errors':{'error':a187_0x69793a(0xdc),'message':a187_0x69793a(0xdc),'severity':a187_0x69793a(0xc9),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a187_0x69793a(0xe5),'severity':a187_0x69793a(0xc9),'status_code':0x194}},'rateLimited':{'detail':a187_0x69793a(0xe0)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a187_0x69793a(0xe3),'status':0x193,'detail':a187_0x69793a(0xf0),'instance':a187_0x69793a(0x90)}}};export function createDatabase(_0x592af1){const _0x3fffc2=a187_0x69793a;return{...fixtures['database'][_0x3fffc2(0xbf)],..._0x592af1};}export function createTable(_0x3e0fdd){const _0x12f70d=a187_0x69793a;return{...fixtures[_0x12f70d(0xdd)][_0x12f70d(0xbf)],..._0x3e0fdd};}export function createParentSegment(_0x302a21){const _0x5ac965=a187_0x69793a;return{...fixtures[_0x5ac965(0x9f)][_0x5ac965(0xbf)],..._0x302a21};}export function createSegment(_0x1316d8){const _0x47336d=a187_0x69793a;return{...fixtures[_0x47336d(0xe4)][_0x47336d(0xbf)],..._0x1316d8};}function a187_0x3408(){const _0x43024e=['long','/v3/database/list','log','job','2024-01-01T00:00:00Z','last_login','2024-01-15T10:00:05Z','decision_point','attribute','Users\x20active\x20in\x20the\x20last\x2030\x20days','TimeWithinPast','data_sync','user-2','time','Active\x20users\x20with\x20high\x20lifetime\x20value','event_type','parentSegment','user-1','j-abc123','2024-01-15T10:05:00Z','0\x20*\x20*\x20*\x20*','4771656ZSyyck','presto','name','Journey\x20with\x20decision\x20point','2024-01-15T08:00:00Z','pageviews','Purchase\x20Reminder','production_db','0\x200\x20*\x20*\x20*','test_db','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','stringify','30d','2281264ybOAzv','event_id','2024-01-15T09:05:00Z','abc123','queryResult','181981LUrvWk','ps-123456','2023-06-15T10:30:00Z','cs-456789','America/Los_Angeles','2024-01-15T10:10:01Z','email','def456','1043rVFJAY','basic','Alice','step-2','669196Gsvbhc','1399260Hsglyk','string','purchases','Onboarding\x20journey\x20for\x20new\x20users','data_pipeline','varchar','error','success','act-email','step-1','journey','2024-01-15T10:10:00Z','total','Customers\x20with\x20Behaviors','lifetime_value','administrator','2024-01-15T10:00:00Z','j-def456','admin@example.com','full_access','cdp_db','step-3','users','2024-01-15T09:00:00Z','customers','Invalid\x20API\x20key','table','sess-111','UTC','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','created_at','SELECT\x20COUNT(*)\x20FROM\x20events','Forbidden','segment','The\x20requested\x20resource\x20does\x20not\x20exist','customer_id','High\x20Value\x20Active\x20Users','Test\x20Parent\x20Segment','17094VHdyXX','count','user','page_views','Active\x20Users','2023-01-01T00:00:00Z','bigint','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','275556YEXsJG','daily_etl','events_db','cs-111222','activation','Parent\x20segment\x20with\x20behavioral\x20data','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','running','user_id','2024-01-15T00:00:00Z','act-123','Table\x20does\x20not\x20exist:\x20nonexistent_table','Welcome\x20Journey','active','8EWdgsL'];a187_0x3408=function(){return _0x43024e;};return a187_0x3408();}export function createJourney(_0x3c88b0){const _0x4d55b7=a187_0x69793a;return{...fixtures[_0x4d55b7(0xcd)]['basic'],..._0x3c88b0};}function a187_0x4f70(_0x5988ba,_0x1aa0bf){_0x5988ba=_0x5988ba-0x8d;const _0x3408cf=a187_0x3408();let _0x4f70fd=_0x3408cf[_0x5988ba];return _0x4f70fd;}export function createQueryResult(_0x5aab52){const _0x85e706=a187_0x69793a;return{...fixtures[_0x85e706(0xb5)][_0x85e706(0xbf)],..._0x5aab52};}export function createUser(_0x1ff2f3){const _0x376fda=a187_0x69793a;return{...fixtures[_0x376fda(0xeb)][_0x376fda(0xbf)],..._0x1ff2f3};}export function createJob(_0xfd17e2){const _0x1a826b=a187_0x69793a;return{...fixtures[_0x1a826b(0x92)]['completed'],..._0xfd17e2};}export function createWorkflow(_0x3cdd59){return{...fixtures['workflow']['basic'],..._0x3cdd59};}
1
+ const a197_0xde0ba3=a197_0x3a59;function a197_0x3a59(_0x1e421b,_0x1cc331){_0x1e421b=_0x1e421b-0x1c4;const _0x240290=a197_0x2402();let _0x3a5927=_0x240290[_0x1e421b];return _0x3a5927;}(function(_0x5b4e79,_0x1d39b3){const _0x4c6d55=a197_0x3a59,_0x276ba3=_0x5b4e79();while(!![]){try{const _0x294ed9=-parseInt(_0x4c6d55(0x20d))/0x1*(parseInt(_0x4c6d55(0x227))/0x2)+parseInt(_0x4c6d55(0x203))/0x3+parseInt(_0x4c6d55(0x1c6))/0x4+parseInt(_0x4c6d55(0x1db))/0x5*(parseInt(_0x4c6d55(0x1eb))/0x6)+parseInt(_0x4c6d55(0x1df))/0x7+-parseInt(_0x4c6d55(0x1e1))/0x8+-parseInt(_0x4c6d55(0x1f6))/0x9;if(_0x294ed9===_0x1d39b3)break;else _0x276ba3['push'](_0x276ba3['shift']());}catch(_0x260204){_0x276ba3['push'](_0x276ba3['shift']());}}}(a197_0x2402,0x90a4d));export const fixtures={'database':{'basic':{'name':a197_0xde0ba3(0x229),'count':0x5,'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x207),'permission':a197_0xde0ba3(0x1f0)},'withTables':{'name':a197_0xde0ba3(0x20e),'count':0x64,'created_at':a197_0xde0ba3(0x225),'updated_at':a197_0xde0ba3(0x1f8),'permission':a197_0xde0ba3(0x1ec)}},'table':{'basic':{'id':0x3039,'name':'users','type':a197_0xde0ba3(0x1da),'schema':JSON['stringify']([['id',a197_0xde0ba3(0x1fb)],['time',a197_0xde0ba3(0x1d9)],[a197_0xde0ba3(0x1ff),a197_0xde0ba3(0x1fb)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x207)},'events':{'id':0x303a,'name':'events','type':a197_0xde0ba3(0x1da),'schema':JSON[a197_0xde0ba3(0x1f4)]([[a197_0xde0ba3(0x1e2),a197_0xde0ba3(0x1fb)],['time',a197_0xde0ba3(0x1d9)],['user_id','string'],[a197_0xde0ba3(0x1c4),a197_0xde0ba3(0x1fb)],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a197_0xde0ba3(0x220),'name':'Test\x20Parent\x20Segment','description':a197_0xde0ba3(0x1ef),'status':'active','master_table':{'database':a197_0xde0ba3(0x210),'table':a197_0xde0ba3(0x1d2)},'attributes':[{'name':a197_0xde0ba3(0x1d6),'type':a197_0xde0ba3(0x1fb),'key':!![]},{'name':a197_0xde0ba3(0x22a),'type':a197_0xde0ba3(0x1fb)},{'name':a197_0xde0ba3(0x1fd),'type':a197_0xde0ba3(0x204)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a197_0xde0ba3(0x214)},'withBehaviors':{'id':a197_0xde0ba3(0x209),'name':a197_0xde0ba3(0x230),'description':a197_0xde0ba3(0x1f9),'status':'active','master_table':{'database':'cdp_db','table':a197_0xde0ba3(0x212)},'behaviors':[{'name':a197_0xde0ba3(0x1fc),'table':{'database':a197_0xde0ba3(0x21a),'table':a197_0xde0ba3(0x1fc)},'join_key':a197_0xde0ba3(0x1d6)},{'name':a197_0xde0ba3(0x1ea),'table':{'database':a197_0xde0ba3(0x21a),'table':a197_0xde0ba3(0x20a)},'join_key':a197_0xde0ba3(0x1d6)}],'created_at':a197_0xde0ba3(0x207),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':'cs-456789','name':a197_0xde0ba3(0x1e3),'description':a197_0xde0ba3(0x219),'parent_segment_id':a197_0xde0ba3(0x220),'status':a197_0xde0ba3(0x215),'rules':[{'type':a197_0xde0ba3(0x1e9),'field':a197_0xde0ba3(0x231),'operator':a197_0xde0ba3(0x1e0),'value':a197_0xde0ba3(0x21c)}],'count':0x1388,'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214)},'withMultipleRules':{'id':a197_0xde0ba3(0x20b),'name':a197_0xde0ba3(0x1f3),'description':a197_0xde0ba3(0x1d1),'parent_segment_id':'ps-123456','status':a197_0xde0ba3(0x215),'rules':[{'type':a197_0xde0ba3(0x1e9),'field':a197_0xde0ba3(0x231),'operator':a197_0xde0ba3(0x1e0),'value':a197_0xde0ba3(0x21c)},{'type':a197_0xde0ba3(0x1e9),'field':'lifetime_value','operator':a197_0xde0ba3(0x1d8),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a197_0xde0ba3(0x214)}},'journey':{'basic':{'id':a197_0xde0ba3(0x22b),'name':'Welcome\x20Journey','description':a197_0xde0ba3(0x1c7),'status':a197_0xde0ba3(0x213),'version':0x1,'steps':[{'id':a197_0xde0ba3(0x1d0),'type':'wait','duration':'1d'},{'id':a197_0xde0ba3(0x21b),'type':a197_0xde0ba3(0x211),'activation_id':a197_0xde0ba3(0x222)}],'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214)},'withDecision':{'id':a197_0xde0ba3(0x21e),'name':'Purchase\x20Reminder','description':a197_0xde0ba3(0x1ed),'status':a197_0xde0ba3(0x215),'version':0x2,'steps':[{'id':'step-1','type':'decision_point','segment_id':a197_0xde0ba3(0x1ca),'yes_path':a197_0xde0ba3(0x21b),'no_path':a197_0xde0ba3(0x1d5)},{'id':a197_0xde0ba3(0x21b),'type':'activation','activation_id':a197_0xde0ba3(0x1e5)},{'id':a197_0xde0ba3(0x1d5),'type':a197_0xde0ba3(0x1ce)}],'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a197_0xde0ba3(0x1cb)},{'name':a197_0xde0ba3(0x1ff),'type':'varchar'},{'name':a197_0xde0ba3(0x1d3),'type':a197_0xde0ba3(0x1f5)}],'data':[['user-1',a197_0xde0ba3(0x1dd),0x64],[a197_0xde0ba3(0x1fa),a197_0xde0ba3(0x216),0xc8],[a197_0xde0ba3(0x223),a197_0xde0ba3(0x217),0x96]]},'empty':{'schema':[{'name':'id','type':a197_0xde0ba3(0x1cb)},{'name':a197_0xde0ba3(0x1ff),'type':a197_0xde0ba3(0x1cb)}],'data':[]},'singleRow':{'schema':[{'name':a197_0xde0ba3(0x1cf),'type':a197_0xde0ba3(0x1f5)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a197_0xde0ba3(0x1d4),'email':a197_0xde0ba3(0x1c8),'created_at':a197_0xde0ba3(0x207),'updated_at':a197_0xde0ba3(0x214),'administrator':![]},'admin':{'id':0x1,'name':a197_0xde0ba3(0x201),'email':'admin@example.com','created_at':a197_0xde0ba3(0x21d),'updated_at':a197_0xde0ba3(0x214),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a197_0xde0ba3(0x1cd),'database':a197_0xde0ba3(0x229),'status':a197_0xde0ba3(0x1f1),'query':a197_0xde0ba3(0x1c5),'start_at':a197_0xde0ba3(0x202),'end_at':a197_0xde0ba3(0x20c),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a197_0xde0ba3(0x1cd),'database':a197_0xde0ba3(0x229),'status':a197_0xde0ba3(0x221),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a197_0xde0ba3(0x1dc),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a197_0xde0ba3(0x1cd),'database':a197_0xde0ba3(0x229),'status':a197_0xde0ba3(0x1d7),'query':a197_0xde0ba3(0x1cc),'start_at':'2024-01-15T10:10:00Z','end_at':a197_0xde0ba3(0x21f),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a197_0xde0ba3(0x218),'name':'daily_etl','project':a197_0xde0ba3(0x205),'revision':'abc123','timezone':a197_0xde0ba3(0x22f),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':'wf-67890','name':'hourly_sync','project':a197_0xde0ba3(0x1c9),'revision':a197_0xde0ba3(0x1e8),'timezone':a197_0xde0ba3(0x20f),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a197_0xde0ba3(0x22c),'status':a197_0xde0ba3(0x1f1),'started_at':'2024-01-15T09:00:00Z','finished_at':a197_0xde0ba3(0x22e)}}},'apiError':{'unauthorized':{'errors':{'error':a197_0xde0ba3(0x22d),'message':a197_0xde0ba3(0x22d),'severity':a197_0xde0ba3(0x1d7),'status_code':0x191}},'notFound':{'errors':{'error':a197_0xde0ba3(0x200),'message':a197_0xde0ba3(0x224),'severity':a197_0xde0ba3(0x1d7),'status_code':0x194}},'rateLimited':{'detail':a197_0xde0ba3(0x1f2)},'rfc9457':{'type':a197_0xde0ba3(0x1e6),'title':a197_0xde0ba3(0x1e7),'status':0x193,'detail':a197_0xde0ba3(0x1de),'instance':a197_0xde0ba3(0x1e4)}}};export function createDatabase(_0x1b99e1){const _0x635e17=a197_0xde0ba3;return{...fixtures[_0x635e17(0x1fe)][_0x635e17(0x226)],..._0x1b99e1};}function a197_0x2402(){const _0x1fc01e=['4880043UrkhiT','journey','2024-01-15T08:00:00Z','Parent\x20segment\x20with\x20behavioral\x20data','user-2','string','purchases','created_at','database','name','Resource\x20not\x20found','Admin\x20User','2024-01-15T10:00:00Z','425139DBtJlC','timestamp','data_pipeline','job','2024-01-01T00:00:00Z','user','ps-789012','pageviews','cs-111222','2024-01-15T10:00:05Z','554pMKjTZ','production_db','America/Los_Angeles','cdp_db','activation','customers','draft','2024-01-15T00:00:00Z','active','Bob','Charlie','wf-12345','Users\x20active\x20in\x20the\x20last\x2030\x20days','events_db','step-2','30d','2023-01-01T00:00:00Z','j-def456','2024-01-15T10:10:01Z','ps-123456','running','act-123','user-3','The\x20requested\x20resource\x20does\x20not\x20exist','2023-06-15T10:30:00Z','basic','4ovFdQF','parentSegment','test_db','email','j-abc123','sess-111','Invalid\x20API\x20key','2024-01-15T09:05:00Z','UTC','Customers\x20with\x20Behaviors','last_login','event_type','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','2080444TKZaOg','Onboarding\x20journey\x20for\x20new\x20users','test@example.com','data_sync','cs-456789','varchar','SELECT\x20*\x20FROM\x20nonexistent_table','presto','end','total','step-1','Active\x20users\x20with\x20high\x20lifetime\x20value','unified_customers','count','Test\x20User','step-3','customer_id','error','Greater','long','log','328385WDRtvW','2024-01-15T10:05:00Z','Alice','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2066337UxgGIE','TimeWithinPast','1722248oPxbwb','event_id','Active\x20Users','/v3/database/list','act-email','https://api.treasuredata.com/errors/forbidden','Forbidden','def456','attribute','page_views','36vwgXAq','full_access','Journey\x20with\x20decision\x20point','segment','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','administrator','success','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','High\x20Value\x20Active\x20Users','stringify','bigint'];a197_0x2402=function(){return _0x1fc01e;};return a197_0x2402();}export function createTable(_0x4ecb44){const _0x35755b=a197_0xde0ba3;return{...fixtures['table'][_0x35755b(0x226)],..._0x4ecb44};}export function createParentSegment(_0x176990){const _0x5a61d3=a197_0xde0ba3;return{...fixtures[_0x5a61d3(0x228)][_0x5a61d3(0x226)],..._0x176990};}export function createSegment(_0x4f8e52){const _0x3fff21=a197_0xde0ba3;return{...fixtures[_0x3fff21(0x1ee)]['basic'],..._0x4f8e52};}export function createJourney(_0x1b6a78){const _0x22038e=a197_0xde0ba3;return{...fixtures[_0x22038e(0x1f7)]['basic'],..._0x1b6a78};}export function createQueryResult(_0x55fbe6){const _0x5f9e26=a197_0xde0ba3;return{...fixtures['queryResult'][_0x5f9e26(0x226)],..._0x55fbe6};}export function createUser(_0x2cf39f){const _0x26efc0=a197_0xde0ba3;return{...fixtures[_0x26efc0(0x208)][_0x26efc0(0x226)],..._0x2cf39f};}export function createJob(_0xd3c594){const _0x394d30=a197_0xde0ba3;return{...fixtures[_0x394d30(0x206)]['completed'],..._0xd3c594};}export function createWorkflow(_0x25edbe){return{...fixtures['workflow']['basic'],..._0x25edbe};}
@@ -1 +1 @@
1
- const a188_0x53ad8c=a188_0x424a;function a188_0x424a(_0x535a01,_0x121423){_0x535a01=_0x535a01-0x134;const _0x11cedf=a188_0x11ce();let _0x424ab0=_0x11cedf[_0x535a01];return _0x424ab0;}(function(_0x36bbaf,_0x1ff122){const _0x5a09c4=a188_0x424a,_0x4a45e8=_0x36bbaf();while(!![]){try{const _0x365dcb=-parseInt(_0x5a09c4(0x17d))/0x1*(parseInt(_0x5a09c4(0x177))/0x2)+parseInt(_0x5a09c4(0x134))/0x3+parseInt(_0x5a09c4(0x174))/0x4*(parseInt(_0x5a09c4(0x147))/0x5)+parseInt(_0x5a09c4(0x172))/0x6+parseInt(_0x5a09c4(0x16d))/0x7+-parseInt(_0x5a09c4(0x15d))/0x8+parseInt(_0x5a09c4(0x155))/0x9;if(_0x365dcb===_0x1ff122)break;else _0x4a45e8['push'](_0x4a45e8['shift']());}catch(_0x11907d){_0x4a45e8['push'](_0x4a45e8['shift']());}}}(a188_0x11ce,0x5e6d4));import{vi}from'vitest';function a188_0x11ce(){const _0x1de40b=['headers','No\x20Content','REST','stubs','split','function','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','parseRequest','errorResponse','688015YOvkfh','getLastRequest','includes','registerWithInspector','Forbidden','mockImplementation','forEach','Unknown','entries','description','body','Request\x20body:\x20','method','jsonResponse','252207sDOTyJ','td-api','networkError','responder','Unauthorized','join','rfc9457','stringify','2410464Khmcpt','\x20\x20(none)','every','Service\x20Unavailable','toUpperCase','Created','application/json','Bad\x20Request','length','register','some','simple','string','getRequests','matched','text/plain','1459143HWpgLy','matchCount','requests','withQuery','fetchMock','2080512LcqZEU','Unprocessable\x20Entity','12qadNzw','get','getMatchCount','100970mzjFqh','test','url','push','getStatusText','stack','15LVdgaT','isArray','jsonResponseWithHeaders','pathname','toLowerCase','1347966qTHGCi','map','Not\x20Found','unnamed\x20stub','Conflict','wasCalled','createFetch','Registered\x20stubs:\x0a','textResponse','https://api.treasuredata.com/errors/'];a188_0x11ce=function(){return _0x1de40b;};return a188_0x11ce();}export class HTTPMockRegistry{[a188_0x53ad8c(0x141)]=[];[a188_0x53ad8c(0x16f)]=[];[a188_0x53ad8c(0x171)]=null;[a188_0x53ad8c(0x140)](_0x2e7e8e,_0x4172ae){return _0xa94f0e=>{const _0x1c7030=a188_0x424a;if(_0xa94f0e[_0x1c7030(0x153)][_0x1c7030(0x161)]()!==_0x2e7e8e[_0x1c7030(0x161)]())return![];const _0x1a6524=new URL(_0xa94f0e['url']);if(typeof _0x4172ae===_0x1c7030(0x169))return _0x1a6524[_0x1c7030(0x180)]===_0x4172ae||_0x1a6524[_0x1c7030(0x180)][_0x1c7030(0x149)](_0x4172ae);return _0x4172ae[_0x1c7030(0x178)](_0x1a6524[_0x1c7030(0x180)]);};}[a188_0x53ad8c(0x170)](_0x1ccf82,_0x3e4950){return _0x1c1c60=>{const _0x57a19a=a188_0x424a;if(!_0x1ccf82(_0x1c1c60))return![];const _0x28da04=new URL(_0x1c1c60[_0x57a19a(0x179)]);return Object[_0x57a19a(0x14f)](_0x3e4950)[_0x57a19a(0x15f)](([_0x19248,_0x2037de])=>_0x28da04['searchParams'][_0x57a19a(0x175)](_0x19248)===_0x2037de);};}['withBody'](_0x8ac582,_0xbdb7c5){return _0x2e7929=>{const _0x509ee7=a188_0x424a;if(!_0x8ac582(_0x2e7929))return![];if(typeof _0xbdb7c5===_0x509ee7(0x143))return _0xbdb7c5(_0x2e7929[_0x509ee7(0x151)]);return JSON[_0x509ee7(0x15c)](_0x2e7929[_0x509ee7(0x151)])===JSON['stringify'](_0xbdb7c5);};}['withHost'](_0x35f89c,_0x491395){return _0x16d7a5=>{const _0x3951a4=a188_0x424a;if(!_0x35f89c(_0x16d7a5))return![];const _0x385689=new URL(_0x16d7a5[_0x3951a4(0x179)]);return _0x385689['host']===_0x491395;};}[a188_0x53ad8c(0x166)](_0x2e7f19,_0x1463a6,_0xe4aa13){const _0x54e2b6=a188_0x53ad8c;this['stubs']['push']({'matcher':_0x2e7f19,'responder':_0x1463a6,'matched':![],'matchCount':0x0,'stack':new Error()[_0x54e2b6(0x17c)]??'','description':_0xe4aa13?.['description']});}[a188_0x53ad8c(0x14a)](_0x2df7f6,_0x12b182,_0x183920){const _0x9e4ecd=a188_0x53ad8c,_0x297670=_0x5f5c20=>{const _0x5638bd=a188_0x424a;return _0x183920(_0x5f5c20[_0x5638bd(0x151)],_0x5f5c20),_0x12b182(_0x5f5c20);};this[_0x9e4ecd(0x166)](_0x2df7f6,_0x297670);}static[a188_0x53ad8c(0x154)](_0xd874d5,_0xdc0cac=0xc8){const _0x4132bb=a188_0x53ad8c;return()=>new Response(JSON[_0x4132bb(0x15c)](_0xd874d5),{'status':_0xdc0cac,'headers':{'Content-Type':_0x4132bb(0x163)}});}static[a188_0x53ad8c(0x146)](_0x226a96,_0x391153,_0x1fa698=a188_0x53ad8c(0x168)){return()=>{const _0x4bc508=a188_0x424a;let _0x2b10a0;switch(_0x1fa698){case _0x4bc508(0x156):_0x2b10a0={'errors':{'error':_0x391153,'message':_0x391153,'severity':'error','status_code':_0x226a96}};break;case _0x4bc508(0x15b):_0x2b10a0={'type':_0x4bc508(0x13d)+_0x226a96,'title':HTTPMockRegistry[_0x4bc508(0x17b)](_0x226a96),'status':_0x226a96,'detail':_0x391153};break;default:_0x2b10a0={'error':_0x391153};}return new Response(JSON[_0x4bc508(0x15c)](_0x2b10a0),{'status':_0x226a96,'headers':{'Content-Type':_0x4bc508(0x163)}});};}static[a188_0x53ad8c(0x17f)](_0x476541,_0x572eb0,_0x3588fe=0xc8){const _0x1109f7=a188_0x53ad8c;return()=>new Response(JSON['stringify'](_0x476541),{'status':_0x3588fe,'headers':{'Content-Type':_0x1109f7(0x163),..._0x572eb0}});}static[a188_0x53ad8c(0x13c)](_0x506584,_0x3904ca=0xc8){const _0x257d99=a188_0x53ad8c;return()=>new Response(_0x506584,{'status':_0x3904ca,'headers':{'Content-Type':_0x257d99(0x16c)}});}static[a188_0x53ad8c(0x157)](_0xa73040){return()=>{throw new Error(_0xa73040);};}[a188_0x53ad8c(0x13a)](){const _0x19199a=a188_0x53ad8c;return this['fetchMock']=vi['fn']()[_0x19199a(0x14c)](async(_0x41babc,_0x287227)=>{const _0x134d65=_0x19199a,_0x304f7e=this[_0x134d65(0x145)](_0x41babc,_0x287227);this['requests'][_0x134d65(0x17a)](_0x304f7e);for(const _0x3863be of this['stubs']){if(_0x3863be['matcher'](_0x304f7e))return _0x3863be[_0x134d65(0x16b)]=!![],_0x3863be[_0x134d65(0x16e)]++,_0x3863be[_0x134d65(0x158)](_0x304f7e);}const _0x4c4ecd=this[_0x134d65(0x141)][_0x134d65(0x135)]((_0xe1daae,_0x49d92e)=>'\x20\x20'+(_0x49d92e+0x1)+'.\x20'+(_0xe1daae[_0x134d65(0x150)]??_0x134d65(0x137)))[_0x134d65(0x15a)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x304f7e[_0x134d65(0x153)]+'\x20'+_0x304f7e['url']+'\x0a'+(_0x134d65(0x152)+JSON[_0x134d65(0x15c)](_0x304f7e[_0x134d65(0x151)])+'\x0a')+(_0x134d65(0x13b)+(_0x4c4ecd||_0x134d65(0x15e))));}),this[_0x19199a(0x171)];}[a188_0x53ad8c(0x145)](_0x23cd41,_0x12476b){const _0x54d550=a188_0x53ad8c,_0x558c5c={};if(_0x12476b?.[_0x54d550(0x13e)]){if(_0x12476b[_0x54d550(0x13e)]instanceof Headers)_0x12476b[_0x54d550(0x13e)][_0x54d550(0x14d)]((_0x66b956,_0x2236c1)=>{const _0x872d4b=_0x54d550;_0x558c5c[_0x2236c1[_0x872d4b(0x181)]()]=_0x66b956;});else{if(Array[_0x54d550(0x17e)](_0x12476b[_0x54d550(0x13e)]))for(const [_0x168da9,_0x2dbf35]of _0x12476b['headers']){_0x558c5c[_0x168da9['toLowerCase']()]=_0x2dbf35;}else for(const [_0x456864,_0x4787e1]of Object[_0x54d550(0x14f)](_0x12476b['headers'])){_0x4787e1!==undefined&&(_0x558c5c[_0x456864['toLowerCase']()]=_0x4787e1);}}}let _0x2201b5;if(_0x12476b?.['body'])try{_0x2201b5=JSON['parse'](_0x12476b[_0x54d550(0x151)]);}catch{_0x2201b5=_0x12476b['body'];}return{'method':_0x12476b?.[_0x54d550(0x153)]??'GET','url':_0x23cd41,'headers':_0x558c5c,'body':_0x2201b5};}['verify'](_0x210aa5){const _0x166def=a188_0x53ad8c,_0x9e1878=this['stubs']['filter'](_0x19f098=>!_0x19f098[_0x166def(0x16b)]);if(_0x9e1878[_0x166def(0x165)]>0x0){const _0x4db4be=_0x9e1878['map'](_0x429174=>{const _0x3cc3f2=_0x166def,_0x285e83=_0x429174[_0x3cc3f2(0x150)]?'\x20('+_0x429174[_0x3cc3f2(0x150)]+')':'',_0x1461db=_0x429174[_0x3cc3f2(0x17c)][_0x3cc3f2(0x142)]('\x0a')['slice'](0x2,0x5)[_0x3cc3f2(0x15a)]('\x0a');return'Unmatched\x20stub'+_0x285e83+'\x20registered\x20at:\x0a'+_0x1461db;});_0x210aa5['fail'](_0x9e1878[_0x166def(0x165)]+_0x166def(0x144)+_0x4db4be[_0x166def(0x15a)]('\x0a\x0a'));}}[a188_0x53ad8c(0x16a)](){const _0x256286=a188_0x53ad8c;return[...this[_0x256286(0x16f)]];}[a188_0x53ad8c(0x148)](){const _0x4cbc67=a188_0x53ad8c;return this[_0x4cbc67(0x16f)][this[_0x4cbc67(0x16f)]['length']-0x1];}[a188_0x53ad8c(0x139)](_0x34dfa1,_0x487d67){const _0x3f5c5b=a188_0x53ad8c;return this[_0x3f5c5b(0x16f)][_0x3f5c5b(0x167)](_0x13c134=>{const _0x563255=_0x3f5c5b;if(_0x13c134[_0x563255(0x153)][_0x563255(0x161)]()!==_0x34dfa1['toUpperCase']())return![];if(typeof _0x487d67===_0x563255(0x169))return _0x13c134[_0x563255(0x179)][_0x563255(0x149)](_0x487d67);return _0x487d67[_0x563255(0x178)](_0x13c134['url']);});}[a188_0x53ad8c(0x176)](_0x59d279){const _0x30e3e4=a188_0x53ad8c;return this[_0x30e3e4(0x141)][_0x59d279]?.[_0x30e3e4(0x16e)]??0x0;}['reset'](){const _0x22059a=a188_0x53ad8c;this[_0x22059a(0x141)]=[],this['requests']=[],this[_0x22059a(0x171)]=null;}static[a188_0x53ad8c(0x17b)](_0x3d6397){const _0xec2852=a188_0x53ad8c,_0x365119={0xc8:'OK',0xc9:_0xec2852(0x162),0xcc:_0xec2852(0x13f),0x190:_0xec2852(0x164),0x191:_0xec2852(0x159),0x193:_0xec2852(0x14b),0x194:_0xec2852(0x136),0x199:_0xec2852(0x138),0x1a6:_0xec2852(0x173),0x1ad:'Too\x20Many\x20Requests',0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0xec2852(0x160)};return _0x365119[_0x3d6397]??_0xec2852(0x14e);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a198_0x2f5059=a198_0xeab7;(function(_0xde7995,_0x154f9e){const _0x65a830=a198_0xeab7,_0xee7209=_0xde7995();while(!![]){try{const _0x10e9d1=-parseInt(_0x65a830(0x202))/0x1+parseInt(_0x65a830(0x1e6))/0x2+-parseInt(_0x65a830(0x1e1))/0x3*(-parseInt(_0x65a830(0x20c))/0x4)+-parseInt(_0x65a830(0x1fd))/0x5+parseInt(_0x65a830(0x1d0))/0x6*(parseInt(_0x65a830(0x1f9))/0x7)+-parseInt(_0x65a830(0x1f3))/0x8+parseInt(_0x65a830(0x1ea))/0x9*(-parseInt(_0x65a830(0x1d4))/0xa);if(_0x10e9d1===_0x154f9e)break;else _0xee7209['push'](_0xee7209['shift']());}catch(_0x53f591){_0xee7209['push'](_0xee7209['shift']());}}}(a198_0x3367,0x1ac3e));import{vi}from'vitest';function a198_0x3367(){const _0x2b21b5=['6104xrCgyz','responder','string','every','136125KXAnva','Internal\x20Server\x20Error','getLastRequest','matcher','filter','36112hvciYL','body','networkError','stringify','get','isArray','fail','searchParams','parseRequest','register','16TNeLJQ','length','pathname','No\x20stub\x20matched\x20request:\x20','reset','jsonResponseWithHeaders','Unmatched\x20stub','mockImplementation','REST','test','getRequests','slice','includes','toLowerCase','text/plain','simple','Too\x20Many\x20Requests','1050OIXNtn','join','matchCount','entries','117640jmLQdF','parse','stubs','map','fetchMock','td-api','error','wasCalled','Unknown','push','unnamed\x20stub','withBody','getMatchCount','30417MUFptb','withHost','rfc9457','Unprocessable\x20Entity','url','432726CTFuHW','toUpperCase','description','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','27kIphAr','Not\x20Found','https://api.treasuredata.com/errors/','host','verify','requests','matched','application/json','function','1610080PwVhFE','stack','getStatusText','headers','Request\x20body:\x20','method'];a198_0x3367=function(){return _0x2b21b5;};return a198_0x3367();}function a198_0xeab7(_0x5dbaa9,_0x415d80){_0x5dbaa9=_0x5dbaa9-0x1cc;const _0x33678b=a198_0x3367();let _0xeab745=_0x33678b[_0x5dbaa9];return _0xeab745;}export class HTTPMockRegistry{[a198_0x2f5059(0x1d6)]=[];[a198_0x2f5059(0x1ef)]=[];[a198_0x2f5059(0x1d8)]=null;[a198_0x2f5059(0x214)](_0x3f7fc6,_0x2b916d){return _0x34d212=>{const _0x29fc66=a198_0xeab7;if(_0x34d212[_0x29fc66(0x1f8)][_0x29fc66(0x1e7)]()!==_0x3f7fc6[_0x29fc66(0x1e7)]())return![];const _0x15541d=new URL(_0x34d212[_0x29fc66(0x1e5)]);if(typeof _0x2b916d===_0x29fc66(0x1fb))return _0x15541d[_0x29fc66(0x20e)]===_0x2b916d||_0x15541d['pathname'][_0x29fc66(0x218)](_0x2b916d);return _0x2b916d[_0x29fc66(0x215)](_0x15541d[_0x29fc66(0x20e)]);};}['withQuery'](_0x295f52,_0x2151be){return _0x4f017c=>{const _0x12dfc3=a198_0xeab7;if(!_0x295f52(_0x4f017c))return![];const _0x2f69f3=new URL(_0x4f017c['url']);return Object['entries'](_0x2151be)[_0x12dfc3(0x1fc)](([_0x29d9f7,_0x23fade])=>_0x2f69f3[_0x12dfc3(0x209)][_0x12dfc3(0x206)](_0x29d9f7)===_0x23fade);};}[a198_0x2f5059(0x1df)](_0x4cf339,_0xb04981){return _0x3667e5=>{const _0xfded79=a198_0xeab7;if(!_0x4cf339(_0x3667e5))return![];if(typeof _0xb04981===_0xfded79(0x1f2))return _0xb04981(_0x3667e5['body']);return JSON[_0xfded79(0x205)](_0x3667e5[_0xfded79(0x203)])===JSON[_0xfded79(0x205)](_0xb04981);};}[a198_0x2f5059(0x1e2)](_0x21871d,_0x13b1ae){return _0x191356=>{const _0x5ed845=a198_0xeab7;if(!_0x21871d(_0x191356))return![];const _0xf1ca88=new URL(_0x191356[_0x5ed845(0x1e5)]);return _0xf1ca88[_0x5ed845(0x1ed)]===_0x13b1ae;};}[a198_0x2f5059(0x20b)](_0x1b6138,_0x3d2a86,_0x3b5255){const _0x7d014d=a198_0x2f5059;this[_0x7d014d(0x1d6)][_0x7d014d(0x1dd)]({'matcher':_0x1b6138,'responder':_0x3d2a86,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x3b5255?.['description']});}['registerWithInspector'](_0xf1675d,_0x439e31,_0x2da44e){const _0x89e8d4=a198_0x2f5059,_0xde063b=_0x33896f=>{const _0x2fe25c=a198_0xeab7;return _0x2da44e(_0x33896f[_0x2fe25c(0x203)],_0x33896f),_0x439e31(_0x33896f);};this[_0x89e8d4(0x20b)](_0xf1675d,_0xde063b);}static['jsonResponse'](_0x17a1b0,_0x41f50a=0xc8){const _0x5e709b=a198_0x2f5059;return()=>new Response(JSON[_0x5e709b(0x205)](_0x17a1b0),{'status':_0x41f50a,'headers':{'Content-Type':'application/json'}});}static['errorResponse'](_0x1bf5a7,_0x3060cf,_0x2425f1=a198_0x2f5059(0x1ce)){return()=>{const _0x5182aa=a198_0xeab7;let _0x20ef6d;switch(_0x2425f1){case _0x5182aa(0x1d9):_0x20ef6d={'errors':{'error':_0x3060cf,'message':_0x3060cf,'severity':_0x5182aa(0x1da),'status_code':_0x1bf5a7}};break;case _0x5182aa(0x1e3):_0x20ef6d={'type':_0x5182aa(0x1ec)+_0x1bf5a7,'title':HTTPMockRegistry[_0x5182aa(0x1f5)](_0x1bf5a7),'status':_0x1bf5a7,'detail':_0x3060cf};break;default:_0x20ef6d={'error':_0x3060cf};}return new Response(JSON[_0x5182aa(0x205)](_0x20ef6d),{'status':_0x1bf5a7,'headers':{'Content-Type':_0x5182aa(0x1f1)}});};}static[a198_0x2f5059(0x211)](_0x137754,_0x3e13c6,_0x4b8c4e=0xc8){const _0x1971d6=a198_0x2f5059;return()=>new Response(JSON[_0x1971d6(0x205)](_0x137754),{'status':_0x4b8c4e,'headers':{'Content-Type':_0x1971d6(0x1f1),..._0x3e13c6}});}static['textResponse'](_0x18045a,_0x3d9c70=0xc8){const _0x3fc9fa=a198_0x2f5059;return()=>new Response(_0x18045a,{'status':_0x3d9c70,'headers':{'Content-Type':_0x3fc9fa(0x1cd)}});}static[a198_0x2f5059(0x204)](_0x272b7e){return()=>{throw new Error(_0x272b7e);};}['createFetch'](){const _0x37b0c7=a198_0x2f5059;return this[_0x37b0c7(0x1d8)]=vi['fn']()[_0x37b0c7(0x213)](async(_0x101e88,_0x67dfd5)=>{const _0x29d412=_0x37b0c7,_0x581a97=this[_0x29d412(0x20a)](_0x101e88,_0x67dfd5);this[_0x29d412(0x1ef)]['push'](_0x581a97);for(const _0x4e9fef of this[_0x29d412(0x1d6)]){if(_0x4e9fef[_0x29d412(0x200)](_0x581a97))return _0x4e9fef['matched']=!![],_0x4e9fef[_0x29d412(0x1d2)]++,_0x4e9fef[_0x29d412(0x1fa)](_0x581a97);}const _0x22a3a9=this[_0x29d412(0x1d6)][_0x29d412(0x1d7)]((_0xf5801c,_0x411101)=>'\x20\x20'+(_0x411101+0x1)+'.\x20'+(_0xf5801c[_0x29d412(0x1e8)]??_0x29d412(0x1de)))[_0x29d412(0x1d1)]('\x0a');throw new Error(_0x29d412(0x20f)+_0x581a97[_0x29d412(0x1f8)]+'\x20'+_0x581a97['url']+'\x0a'+(_0x29d412(0x1f7)+JSON['stringify'](_0x581a97[_0x29d412(0x203)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x22a3a9||'\x20\x20(none)')));}),this[_0x37b0c7(0x1d8)];}['parseRequest'](_0x219c05,_0x13cb2e){const _0x42e431=a198_0x2f5059,_0x2a1dff={};if(_0x13cb2e?.['headers']){if(_0x13cb2e[_0x42e431(0x1f6)]instanceof Headers)_0x13cb2e['headers']['forEach']((_0x1c9cd0,_0x5b088d)=>{const _0x164eb1=_0x42e431;_0x2a1dff[_0x5b088d[_0x164eb1(0x1cc)]()]=_0x1c9cd0;});else{if(Array[_0x42e431(0x207)](_0x13cb2e[_0x42e431(0x1f6)]))for(const [_0x344dce,_0x3a8a77]of _0x13cb2e[_0x42e431(0x1f6)]){_0x2a1dff[_0x344dce['toLowerCase']()]=_0x3a8a77;}else for(const [_0x405f6,_0x4ba4da]of Object[_0x42e431(0x1d3)](_0x13cb2e[_0x42e431(0x1f6)])){_0x4ba4da!==undefined&&(_0x2a1dff[_0x405f6['toLowerCase']()]=_0x4ba4da);}}}let _0x2def58;if(_0x13cb2e?.[_0x42e431(0x203)])try{_0x2def58=JSON[_0x42e431(0x1d5)](_0x13cb2e[_0x42e431(0x203)]);}catch{_0x2def58=_0x13cb2e['body'];}return{'method':_0x13cb2e?.[_0x42e431(0x1f8)]??'GET','url':_0x219c05,'headers':_0x2a1dff,'body':_0x2def58};}[a198_0x2f5059(0x1ee)](_0x978a7d){const _0x37fffa=a198_0x2f5059,_0x166ebf=this['stubs'][_0x37fffa(0x201)](_0x28199d=>!_0x28199d[_0x37fffa(0x1f0)]);if(_0x166ebf[_0x37fffa(0x20d)]>0x0){const _0x6af6fc=_0x166ebf[_0x37fffa(0x1d7)](_0x48b5cc=>{const _0x283e92=_0x37fffa,_0x374541=_0x48b5cc[_0x283e92(0x1e8)]?'\x20('+_0x48b5cc['description']+')':'',_0x220cb3=_0x48b5cc[_0x283e92(0x1f4)]['split']('\x0a')[_0x283e92(0x217)](0x2,0x5)[_0x283e92(0x1d1)]('\x0a');return _0x283e92(0x212)+_0x374541+'\x20registered\x20at:\x0a'+_0x220cb3;});_0x978a7d[_0x37fffa(0x208)](_0x166ebf[_0x37fffa(0x20d)]+_0x37fffa(0x1e9)+_0x6af6fc[_0x37fffa(0x1d1)]('\x0a\x0a'));}}[a198_0x2f5059(0x216)](){const _0x55a8c0=a198_0x2f5059;return[...this[_0x55a8c0(0x1ef)]];}[a198_0x2f5059(0x1ff)](){const _0xaccdd6=a198_0x2f5059;return this['requests'][this[_0xaccdd6(0x1ef)][_0xaccdd6(0x20d)]-0x1];}[a198_0x2f5059(0x1db)](_0x508ddc,_0x13795e){return this['requests']['some'](_0x526a0c=>{const _0x12356a=a198_0xeab7;if(_0x526a0c[_0x12356a(0x1f8)][_0x12356a(0x1e7)]()!==_0x508ddc[_0x12356a(0x1e7)]())return![];if(typeof _0x13795e===_0x12356a(0x1fb))return _0x526a0c[_0x12356a(0x1e5)]['includes'](_0x13795e);return _0x13795e[_0x12356a(0x215)](_0x526a0c['url']);});}[a198_0x2f5059(0x1e0)](_0x1a9364){const _0x2fc3c7=a198_0x2f5059;return this[_0x2fc3c7(0x1d6)][_0x1a9364]?.[_0x2fc3c7(0x1d2)]??0x0;}[a198_0x2f5059(0x210)](){const _0x3fc4c5=a198_0x2f5059;this[_0x3fc4c5(0x1d6)]=[],this[_0x3fc4c5(0x1ef)]=[],this[_0x3fc4c5(0x1d8)]=null;}static[a198_0x2f5059(0x1f5)](_0x1a7767){const _0xdbf6c9=a198_0x2f5059,_0xe96c4c={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:'Bad\x20Request',0x191:'Unauthorized',0x193:'Forbidden',0x194:_0xdbf6c9(0x1eb),0x199:'Conflict',0x1a6:_0xdbf6c9(0x1e4),0x1ad:_0xdbf6c9(0x1cf),0x1f4:_0xdbf6c9(0x1fe),0x1f6:'Bad\x20Gateway',0x1f7:'Service\x20Unavailable'};return _0xe96c4c[_0x1a7767]??_0xdbf6c9(0x1dc);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x298064,_0x259625){var _0x54c1a0=a189_0x2eea,_0xf1e0ea=_0x298064();while(!![]){try{var _0x236e47=parseInt(_0x54c1a0(0x13a))/0x1*(parseInt(_0x54c1a0(0x139))/0x2)+parseInt(_0x54c1a0(0x132))/0x3*(parseInt(_0x54c1a0(0x134))/0x4)+parseInt(_0x54c1a0(0x136))/0x5*(parseInt(_0x54c1a0(0x13b))/0x6)+parseInt(_0x54c1a0(0x135))/0x7+-parseInt(_0x54c1a0(0x138))/0x8+-parseInt(_0x54c1a0(0x137))/0x9+-parseInt(_0x54c1a0(0x133))/0xa;if(_0x236e47===_0x259625)break;else _0xf1e0ea['push'](_0xf1e0ea['shift']());}catch(_0x444755){_0xf1e0ea['push'](_0xf1e0ea['shift']());}}}(a189_0x32e7,0x23fe5));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a189_0x32e7(){var _0x28b5a4=['12WTKuaL','4087WRUCyx','6KdwrZC','993NwrWcx','1793230EBdkIS','3184SKwEWF','1879395JbuDMW','380470AbmrBq','1202580deEoSF','1377640xcRWXp'];a189_0x32e7=function(){return _0x28b5a4;};return a189_0x32e7();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a189_0x2eea(_0x1c2d93,_0x2250d0){_0x1c2d93=_0x1c2d93-0x132;var _0x32e7e0=a189_0x32e7();var _0x2eeab5=_0x32e7e0[_0x1c2d93];return _0x2eeab5;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x44d145,_0x3c1aec){var _0x5aa481=a199_0xf1a7,_0x5ba0b7=_0x44d145();while(!![]){try{var _0x739a92=parseInt(_0x5aa481(0xee))/0x1+parseInt(_0x5aa481(0xf5))/0x2+-parseInt(_0x5aa481(0xf4))/0x3+-parseInt(_0x5aa481(0xf3))/0x4*(parseInt(_0x5aa481(0xf6))/0x5)+parseInt(_0x5aa481(0xf0))/0x6*(-parseInt(_0x5aa481(0xf2))/0x7)+-parseInt(_0x5aa481(0xf7))/0x8*(parseInt(_0x5aa481(0xed))/0x9)+-parseInt(_0x5aa481(0xef))/0xa*(-parseInt(_0x5aa481(0xf1))/0xb);if(_0x739a92===_0x3c1aec)break;else _0x5ba0b7['push'](_0x5ba0b7['shift']());}catch(_0x3793fd){_0x5ba0b7['push'](_0x5ba0b7['shift']());}}}(a199_0x2aaa,0x71640));function a199_0xf1a7(_0x5cf489,_0x595edf){_0x5cf489=_0x5cf489-0xed;var _0x2aaaef=a199_0x2aaa();var _0xf1a76=_0x2aaaef[_0x5cf489];return _0xf1a76;}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a199_0x2aaa(){var _0x3a0953=['1506252rJmLOG','4493215eJmgHH','7024ZaSPct','7182nUgnVO','598733dDtOmf','425690qitxEr','4486578ZZFKob','517xzFuwj','7QVRCiK','4OEfkuy','1623312fLnKIn'];a199_0x2aaa=function(){return _0x3a0953;};return a199_0x2aaa();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a190_0x130d(){const _0xfd8663=['415032oclzlN','push','452uavLnT','10llqDON','slice','6579108rQTFbE','1832678JgDmyo','map','9159asAVhy','length','all','5145899IrTObs','16ArcLQm','1nxMCVG','10PXzZmn','15441384HrwKcI','2081387XiqBdm'];a190_0x130d=function(){return _0xfd8663;};return a190_0x130d();}function a190_0x2528(_0x4febeb,_0x2861e2){_0x4febeb=_0x4febeb-0x14f;const _0x130dcc=a190_0x130d();let _0x2528b1=_0x130dcc[_0x4febeb];return _0x2528b1;}(function(_0x2892cd,_0x46de4e){const _0xf7dc16=a190_0x2528,_0x57b683=_0x2892cd();while(!![]){try{const _0x3dba28=-parseInt(_0xf7dc16(0x14f))/0x1*(parseInt(_0xf7dc16(0x159))/0x2)+parseInt(_0xf7dc16(0x15b))/0x3*(-parseInt(_0xf7dc16(0x155))/0x4)+parseInt(_0xf7dc16(0x156))/0x5*(parseInt(_0xf7dc16(0x153))/0x6)+-parseInt(_0xf7dc16(0x152))/0x7*(-parseInt(_0xf7dc16(0x15f))/0x8)+-parseInt(_0xf7dc16(0x158))/0x9+-parseInt(_0xf7dc16(0x150))/0xa*(-parseInt(_0xf7dc16(0x15e))/0xb)+parseInt(_0xf7dc16(0x151))/0xc;if(_0x3dba28===_0x46de4e)break;else _0x57b683['push'](_0x57b683['shift']());}catch(_0x48c9d3){_0x57b683['push'](_0x57b683['shift']());}}}(a190_0x130d,0x78ead));export async function batchAsync(_0x5c930b,_0x5d83ef,_0x428e4f=0xa){const _0x2c1b64=a190_0x2528,_0x540f21=[];for(let _0x45c776=0x0;_0x45c776<_0x5c930b[_0x2c1b64(0x15c)];_0x45c776+=_0x428e4f){const _0x4d10ff=_0x5c930b[_0x2c1b64(0x157)](_0x45c776,_0x45c776+_0x428e4f),_0x20c3e1=await Promise[_0x2c1b64(0x15d)](_0x4d10ff[_0x2c1b64(0x15a)](_0x5d83ef));_0x540f21[_0x2c1b64(0x154)](..._0x20c3e1);}return _0x540f21;}
1
+ function a200_0x95ca(){const _0xd937e5=['slice','1732804wWnyQJ','10aKvmST','9mXQYne','5605464AqKmic','map','2957676IpDxJg','43968HwqjTD','28374730OZQWPY','935343JmdVDn','70664bqgGQS','238BzeowN'];a200_0x95ca=function(){return _0xd937e5;};return a200_0x95ca();}function a200_0x196a(_0x2b2527,_0x26a394){_0x2b2527=_0x2b2527-0x118;const _0x95ca4=a200_0x95ca();let _0x196aad=_0x95ca4[_0x2b2527];return _0x196aad;}(function(_0x45754d,_0x4cf114){const _0xa43372=a200_0x196a,_0x46b376=_0x45754d();while(!![]){try{const _0x587561=parseInt(_0xa43372(0x118))/0x1+-parseInt(_0xa43372(0x122))/0x2+parseInt(_0xa43372(0x121))/0x3+parseInt(_0xa43372(0x11c))/0x4*(parseInt(_0xa43372(0x11d))/0x5)+parseInt(_0xa43372(0x11f))/0x6+-parseInt(_0xa43372(0x11a))/0x7*(parseInt(_0xa43372(0x119))/0x8)+parseInt(_0xa43372(0x11e))/0x9*(-parseInt(_0xa43372(0x123))/0xa);if(_0x587561===_0x4cf114)break;else _0x46b376['push'](_0x46b376['shift']());}catch(_0x4521d2){_0x46b376['push'](_0x46b376['shift']());}}}(a200_0x95ca,0x893b6));export async function batchAsync(_0x206811,_0x4868aa,_0x1795ce=0xa){const _0x518172=a200_0x196a,_0x4a6c0c=[];for(let _0x284dfe=0x0;_0x284dfe<_0x206811['length'];_0x284dfe+=_0x1795ce){const _0x3b1c7e=_0x206811[_0x518172(0x11b)](_0x284dfe,_0x284dfe+_0x1795ce),_0x5b8dfa=await Promise['all'](_0x3b1c7e[_0x518172(0x120)](_0x4868aa));_0x4a6c0c['push'](..._0x5b8dfa);}return _0x4a6c0c;}
@@ -1 +1 @@
1
- const a191_0x42b677=a191_0xce9a;(function(_0x4b3720,_0x1b8790){const _0x4e42be=a191_0xce9a,_0x95f68a=_0x4b3720();while(!![]){try{const _0x245c66=parseInt(_0x4e42be(0x6d))/0x1+-parseInt(_0x4e42be(0x67))/0x2+-parseInt(_0x4e42be(0x6f))/0x3+parseInt(_0x4e42be(0x7f))/0x4+parseInt(_0x4e42be(0x71))/0x5*(parseInt(_0x4e42be(0x7d))/0x6)+parseInt(_0x4e42be(0x7a))/0x7*(-parseInt(_0x4e42be(0x6b))/0x8)+-parseInt(_0x4e42be(0x81))/0x9;if(_0x245c66===_0x1b8790)break;else _0x95f68a['push'](_0x95f68a['shift']());}catch(_0x42e726){_0x95f68a['push'](_0x95f68a['shift']());}}}(a191_0xb558,0x498f1));import*as a191_0x5e4b9e from'chalk';const Chalk=a191_0x5e4b9e[a191_0x42b677(0x75)];export function shouldUseColor(_0x463e71={}){const _0x2bb557=a191_0x42b677;if(_0x463e71[_0x2bb557(0x83)]===!![])return![];if(_0x463e71[_0x2bb557(0x70)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2bb557(0x78)]['isTTY']??![];}function a191_0xb558(){const _0x1faaaf=['length','4018tnsvxA','string','join','3126ZZNbMW','stringify','736756HcGRdK','isArray','620235RIINMh','number','noColor','262716eBfIQz','repeat','map','cyan','5024WJlWrb','blue','547313eETICt','entries','191379AzIpVA','color','1865LQVnpp','green','null','dim','Chalk','boolean','object','stdout'];a191_0xb558=function(){return _0x1faaaf;};return a191_0xb558();}export function getChalk(_0x50f15d={}){if(shouldUseColor(_0x50f15d))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4312d0,_0x424eab={}){const _0x3176e0=a191_0x42b677;return getChalk(_0x424eab)[_0x3176e0(0x74)](_0x4312d0);}export function colorHeader(_0x1db542,_0x32885b={}){const _0x186bd0=a191_0x42b677;return getChalk(_0x32885b)[_0x186bd0(0x6a)](_0x1db542);}export function colorType(_0x2bd244,_0xca7a33={}){const _0x2b3b1f=a191_0x42b677;return getChalk(_0xca7a33)[_0x2b3b1f(0x74)](_0x2bd244);}export function colorJSONKey(_0x57dd40,_0x1355f1={}){const _0x17b870=a191_0x42b677;return getChalk(_0x1355f1)[_0x17b870(0x6c)](_0x57dd40);}export function colorJSONString(_0x413f6b,_0x4ba35b={}){const _0x152641=a191_0x42b677;return getChalk(_0x4ba35b)[_0x152641(0x72)](_0x413f6b);}export function colorJSONNumber(_0x4ba93c,_0x411d15={}){const _0x31ed6d=a191_0x42b677;return getChalk(_0x411d15)[_0x31ed6d(0x6a)](_0x4ba93c);}function a191_0xce9a(_0x46927b,_0x444946){_0x46927b=_0x46927b-0x67;const _0xb55823=a191_0xb558();let _0xce9a3a=_0xb55823[_0x46927b];return _0xce9a3a;}export function colorJSONBoolean(_0x152a6f,_0x1f04e9={}){return getChalk(_0x1f04e9)['yellow'](_0x152a6f);}export function colorJSONNull(_0x269c2f,_0x647bfc={}){const _0x49da89=a191_0x42b677;return getChalk(_0x647bfc)[_0x49da89(0x74)](_0x269c2f);}export function colorizeJSONCompact(_0x14fc69,_0xa0c334={}){const _0x25ac83=a191_0x42b677;if(!shouldUseColor(_0xa0c334))return JSON['stringify'](_0x14fc69);if(_0x14fc69===null)return colorJSONNull(_0x25ac83(0x73),_0xa0c334);if(typeof _0x14fc69===_0x25ac83(0x76))return colorJSONBoolean(String(_0x14fc69),_0xa0c334);if(typeof _0x14fc69===_0x25ac83(0x82))return colorJSONNumber(String(_0x14fc69),_0xa0c334);if(typeof _0x14fc69==='string')return colorJSONString(JSON[_0x25ac83(0x7e)](_0x14fc69),_0xa0c334);if(Array['isArray'](_0x14fc69)){if(_0x14fc69[_0x25ac83(0x79)]===0x0)return'[]';const _0x81c58b=_0x14fc69[_0x25ac83(0x69)](_0x51f0e7=>colorizeJSONCompact(_0x51f0e7,_0xa0c334));return'['+_0x81c58b[_0x25ac83(0x7c)](',')+']';}if(typeof _0x14fc69===_0x25ac83(0x77)){const _0x59347f=Object[_0x25ac83(0x6e)](_0x14fc69);if(_0x59347f[_0x25ac83(0x79)]===0x0)return'{}';const _0x25512c=_0x59347f[_0x25ac83(0x69)](([_0xd13922,_0x4db74b])=>{const _0x497435=_0x25ac83,_0x24a977=colorJSONKey(JSON[_0x497435(0x7e)](_0xd13922),_0xa0c334),_0x1e5815=colorizeJSONCompact(_0x4db74b,_0xa0c334);return _0x24a977+':'+_0x1e5815;});return'{'+_0x25512c[_0x25ac83(0x7c)](',')+'}';}return String(_0x14fc69);}export function colorizeJSON(_0x141806,_0x49d191={},_0x117d9f=0x0){const _0x402ee8=a191_0x42b677;if(!shouldUseColor(_0x49d191))return JSON[_0x402ee8(0x7e)](_0x141806,null,0x2);const _0x55192e='\x20'[_0x402ee8(0x68)](_0x117d9f),_0x301db2=_0x117d9f+0x2;if(_0x141806===null)return colorJSONNull(_0x402ee8(0x73),_0x49d191);if(typeof _0x141806===_0x402ee8(0x76))return colorJSONBoolean(String(_0x141806),_0x49d191);if(typeof _0x141806==='number')return colorJSONNumber(String(_0x141806),_0x49d191);if(typeof _0x141806===_0x402ee8(0x7b))return colorJSONString(JSON[_0x402ee8(0x7e)](_0x141806),_0x49d191);if(Array[_0x402ee8(0x80)](_0x141806)){if(_0x141806[_0x402ee8(0x79)]===0x0)return'[]';const _0x491002=_0x141806['map'](_0x319381=>{const _0x53f198=_0x402ee8,_0x5b8559=colorizeJSON(_0x319381,_0x49d191,_0x301db2);return''+'\x20'[_0x53f198(0x68)](_0x301db2)+_0x5b8559;});return'[\x0a'+_0x491002[_0x402ee8(0x7c)](',\x0a')+('\x0a'+_0x55192e+']');}if(typeof _0x141806===_0x402ee8(0x77)){const _0x36ef06=Object[_0x402ee8(0x6e)](_0x141806);if(_0x36ef06[_0x402ee8(0x79)]===0x0)return'{}';const _0x1be840=_0x36ef06[_0x402ee8(0x69)](([_0x1b0f12,_0x53f864])=>{const _0x564976=_0x402ee8,_0x429ba1=colorJSONKey(JSON[_0x564976(0x7e)](_0x1b0f12),_0x49d191),_0x25adb7=colorizeJSON(_0x53f864,_0x49d191,_0x301db2);return''+'\x20'[_0x564976(0x68)](_0x301db2)+_0x429ba1+':\x20'+_0x25adb7;});return'{\x0a'+_0x1be840[_0x402ee8(0x7c)](',\x0a')+('\x0a'+_0x55192e+'}');}return String(_0x141806);}
1
+ const a201_0x22b967=a201_0x42a8;(function(_0x622bfa,_0x10e83f){const _0x317aac=a201_0x42a8,_0x8b1148=_0x622bfa();while(!![]){try{const _0xa32779=parseInt(_0x317aac(0x131))/0x1*(parseInt(_0x317aac(0x13e))/0x2)+parseInt(_0x317aac(0x144))/0x3+parseInt(_0x317aac(0x140))/0x4*(-parseInt(_0x317aac(0x130))/0x5)+parseInt(_0x317aac(0x14b))/0x6*(parseInt(_0x317aac(0x147))/0x7)+parseInt(_0x317aac(0x135))/0x8*(-parseInt(_0x317aac(0x13d))/0x9)+-parseInt(_0x317aac(0x139))/0xa+-parseInt(_0x317aac(0x13c))/0xb*(-parseInt(_0x317aac(0x12e))/0xc);if(_0xa32779===_0x10e83f)break;else _0x8b1148['push'](_0x8b1148['shift']());}catch(_0x551396){_0x8b1148['push'](_0x8b1148['shift']());}}}(a201_0x3c8d,0x56c24));import*as a201_0x4c5a07 from'chalk';const Chalk=a201_0x4c5a07[a201_0x22b967(0x148)];export function shouldUseColor(_0x2ea51a={}){const _0x114911=a201_0x22b967;if(_0x2ea51a['noColor']===!![])return![];if(_0x2ea51a[_0x114911(0x132)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x114911(0x145)][_0x114911(0x133)]??![];}export function getChalk(_0x1c109b={}){if(shouldUseColor(_0x1c109b))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2e9a6c,_0x22ef75={}){return getChalk(_0x22ef75)['dim'](_0x2e9a6c);}function a201_0x42a8(_0x434f30,_0x3fb220){_0x434f30=_0x434f30-0x12e;const _0x3c8dc0=a201_0x3c8d();let _0x42a820=_0x3c8dc0[_0x434f30];return _0x42a820;}export function colorHeader(_0x337afd,_0x2db460={}){const _0x4920d3=a201_0x22b967;return getChalk(_0x2db460)[_0x4920d3(0x13f)](_0x337afd);}export function colorType(_0x4a6293,_0x382a57={}){return getChalk(_0x382a57)['dim'](_0x4a6293);}export function colorJSONKey(_0x11a89c,_0x3a5c00={}){const _0x2b95b4=a201_0x22b967;return getChalk(_0x3a5c00)[_0x2b95b4(0x14a)](_0x11a89c);}function a201_0x3c8d(){const _0x36a351=['length','137203pNQytd','585ovBxyk','10dOPlLM','cyan','427388puLsPO','stringify','boolean','map','432882TSYewx','stdout','object','133FXXHey','Chalk','green','blue','129384ICzYSG','264tNRxUc','number','30GODKyf','80603dsxrGo','color','isTTY','yellow','7664noOQBw','null','repeat','string','1727150YrkUKf','join'];a201_0x3c8d=function(){return _0x36a351;};return a201_0x3c8d();}export function colorJSONString(_0x22e4d4,_0x3d3e80={}){const _0x30c45b=a201_0x22b967;return getChalk(_0x3d3e80)[_0x30c45b(0x149)](_0x22e4d4);}export function colorJSONNumber(_0x347048,_0x4e88d4={}){const _0x4d218f=a201_0x22b967;return getChalk(_0x4e88d4)[_0x4d218f(0x13f)](_0x347048);}export function colorJSONBoolean(_0x16d759,_0x4114d3={}){const _0xdc030f=a201_0x22b967;return getChalk(_0x4114d3)[_0xdc030f(0x134)](_0x16d759);}export function colorJSONNull(_0x438a49,_0x27889c={}){return getChalk(_0x27889c)['dim'](_0x438a49);}export function colorizeJSONCompact(_0x49c828,_0x17875b={}){const _0x1cdd24=a201_0x22b967;if(!shouldUseColor(_0x17875b))return JSON[_0x1cdd24(0x141)](_0x49c828);if(_0x49c828===null)return colorJSONNull(_0x1cdd24(0x136),_0x17875b);if(typeof _0x49c828===_0x1cdd24(0x142))return colorJSONBoolean(String(_0x49c828),_0x17875b);if(typeof _0x49c828===_0x1cdd24(0x12f))return colorJSONNumber(String(_0x49c828),_0x17875b);if(typeof _0x49c828===_0x1cdd24(0x138))return colorJSONString(JSON[_0x1cdd24(0x141)](_0x49c828),_0x17875b);if(Array['isArray'](_0x49c828)){if(_0x49c828[_0x1cdd24(0x13b)]===0x0)return'[]';const _0x237006=_0x49c828['map'](_0x2ed144=>colorizeJSONCompact(_0x2ed144,_0x17875b));return'['+_0x237006[_0x1cdd24(0x13a)](',')+']';}if(typeof _0x49c828==='object'){const _0x5bffef=Object['entries'](_0x49c828);if(_0x5bffef[_0x1cdd24(0x13b)]===0x0)return'{}';const _0x38486e=_0x5bffef[_0x1cdd24(0x143)](([_0x4dc474,_0x316c86])=>{const _0x1f8fd3=_0x1cdd24,_0x4a2718=colorJSONKey(JSON[_0x1f8fd3(0x141)](_0x4dc474),_0x17875b),_0xd0b2cc=colorizeJSONCompact(_0x316c86,_0x17875b);return _0x4a2718+':'+_0xd0b2cc;});return'{'+_0x38486e['join'](',')+'}';}return String(_0x49c828);}export function colorizeJSON(_0x374c87,_0x1cc443={},_0x4987dc=0x0){const _0x4f42e4=a201_0x22b967;if(!shouldUseColor(_0x1cc443))return JSON[_0x4f42e4(0x141)](_0x374c87,null,0x2);const _0x98d857='\x20'[_0x4f42e4(0x137)](_0x4987dc),_0x2721c5=_0x4987dc+0x2;if(_0x374c87===null)return colorJSONNull(_0x4f42e4(0x136),_0x1cc443);if(typeof _0x374c87===_0x4f42e4(0x142))return colorJSONBoolean(String(_0x374c87),_0x1cc443);if(typeof _0x374c87===_0x4f42e4(0x12f))return colorJSONNumber(String(_0x374c87),_0x1cc443);if(typeof _0x374c87===_0x4f42e4(0x138))return colorJSONString(JSON[_0x4f42e4(0x141)](_0x374c87),_0x1cc443);if(Array['isArray'](_0x374c87)){if(_0x374c87[_0x4f42e4(0x13b)]===0x0)return'[]';const _0x183094=_0x374c87[_0x4f42e4(0x143)](_0x7cb88e=>{const _0x38c4b9=_0x4f42e4,_0x12628b=colorizeJSON(_0x7cb88e,_0x1cc443,_0x2721c5);return''+'\x20'[_0x38c4b9(0x137)](_0x2721c5)+_0x12628b;});return'[\x0a'+_0x183094[_0x4f42e4(0x13a)](',\x0a')+('\x0a'+_0x98d857+']');}if(typeof _0x374c87===_0x4f42e4(0x146)){const _0x50b9b8=Object['entries'](_0x374c87);if(_0x50b9b8[_0x4f42e4(0x13b)]===0x0)return'{}';const _0x570e4d=_0x50b9b8['map'](([_0x5c57a3,_0x2360e5])=>{const _0x2cc895=_0x4f42e4,_0x153826=colorJSONKey(JSON[_0x2cc895(0x141)](_0x5c57a3),_0x1cc443),_0x2bb81c=colorizeJSON(_0x2360e5,_0x1cc443,_0x2721c5);return''+'\x20'[_0x2cc895(0x137)](_0x2721c5)+_0x153826+':\x20'+_0x2bb81c;});return'{\x0a'+_0x570e4d[_0x4f42e4(0x13a)](',\x0a')+('\x0a'+_0x98d857+'}');}return String(_0x374c87);}
@@ -1 +1 @@
1
- function a192_0x5184(){const _0x3faa38=['old','\x20\x20...','red','removed','12vOypcf','fill','min','forEach','808192kgCeoC','added','split','dim','has','unchanged','max','new','push','repeat','2560635RDuyfT','content','unshift','type','1555230TIYjeb','\x20\x20\x20','3380090DKJDzr','size','153500hAjydH','6PenSij','1248178WIZusB','add','length','join','\x20+\x20','16vBebyD','3487527oNZxpV','padStart'];a192_0x5184=function(){return _0x3faa38;};return a192_0x5184();}(function(_0x19844f,_0x5d9bc1){const _0x3e17b7=a192_0x44a7,_0x51094c=_0x19844f();while(!![]){try{const _0x589419=-parseInt(_0x3e17b7(0x142))/0x1+-parseInt(_0x3e17b7(0x132))/0x2+-parseInt(_0x3e17b7(0x131))/0x3*(parseInt(_0x3e17b7(0x130))/0x4)+parseInt(_0x3e17b7(0x12e))/0x5+-parseInt(_0x3e17b7(0x13e))/0x6*(-parseInt(_0x3e17b7(0x14c))/0x7)+-parseInt(_0x3e17b7(0x137))/0x8*(-parseInt(_0x3e17b7(0x138))/0x9)+-parseInt(_0x3e17b7(0x12c))/0xa;if(_0x589419===_0x5d9bc1)break;else _0x51094c['push'](_0x51094c['shift']());}catch(_0xa1f913){_0x51094c['push'](_0x51094c['shift']());}}}(a192_0x5184,0x7e7c0));import a192_0x57ba9d from'chalk';export function generateDiff(_0x39b1dc,_0x7ee587){const _0x24bbbc=a192_0x44a7,_0x519e07=_0x39b1dc[_0x24bbbc(0x144)]('\x0a'),_0x4f4621=_0x7ee587[_0x24bbbc(0x144)]('\x0a'),_0x188b39=[],_0x30025e=computeLCS(_0x519e07,_0x4f4621);let _0x3f8ab4=0x0,_0x53065b=0x0,_0x366e12=0x0;while(_0x3f8ab4<_0x519e07['length']||_0x53065b<_0x4f4621[_0x24bbbc(0x134)]){if(_0x366e12<_0x30025e[_0x24bbbc(0x134)]&&_0x3f8ab4<_0x519e07[_0x24bbbc(0x134)]&&_0x519e07[_0x3f8ab4]===_0x30025e[_0x366e12])_0x53065b<_0x4f4621[_0x24bbbc(0x134)]&&_0x4f4621[_0x53065b]===_0x30025e[_0x366e12]?(_0x188b39[_0x24bbbc(0x14a)]({'type':_0x24bbbc(0x147),'content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++,_0x53065b++,_0x366e12++):(_0x188b39[_0x24bbbc(0x14a)]({'type':'added','content':_0x4f4621[_0x53065b]}),_0x53065b++);else{if(_0x366e12<_0x30025e[_0x24bbbc(0x134)]&&_0x53065b<_0x4f4621[_0x24bbbc(0x134)]&&_0x4f4621[_0x53065b]===_0x30025e[_0x366e12])_0x188b39[_0x24bbbc(0x14a)]({'type':_0x24bbbc(0x13d),'content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++;else{if(_0x3f8ab4<_0x519e07['length']&&(_0x366e12>=_0x30025e[_0x24bbbc(0x134)]||_0x519e07[_0x3f8ab4]!==_0x30025e[_0x366e12]))_0x188b39[_0x24bbbc(0x14a)]({'type':'removed','content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++;else _0x53065b<_0x4f4621['length']&&(_0x188b39[_0x24bbbc(0x14a)]({'type':'added','content':_0x4f4621[_0x53065b]}),_0x53065b++);}}}return _0x188b39;}function computeLCS(_0x1b84ea,_0x5726eb){const _0x5a0029=a192_0x44a7,_0x208e33=_0x1b84ea['length'],_0x373ff1=_0x5726eb[_0x5a0029(0x134)],_0x12864f=Array(_0x208e33+0x1)['fill'](null)['map'](()=>Array(_0x373ff1+0x1)[_0x5a0029(0x13f)](0x0));for(let _0xfb53d=0x1;_0xfb53d<=_0x208e33;_0xfb53d++){for(let _0x10c4ba=0x1;_0x10c4ba<=_0x373ff1;_0x10c4ba++){_0x1b84ea[_0xfb53d-0x1]===_0x5726eb[_0x10c4ba-0x1]?_0x12864f[_0xfb53d][_0x10c4ba]=_0x12864f[_0xfb53d-0x1][_0x10c4ba-0x1]+0x1:_0x12864f[_0xfb53d][_0x10c4ba]=Math[_0x5a0029(0x148)](_0x12864f[_0xfb53d-0x1][_0x10c4ba],_0x12864f[_0xfb53d][_0x10c4ba-0x1]);}}const _0x170a82=[];let _0x3686a6=_0x208e33,_0x238414=_0x373ff1;while(_0x3686a6>0x0&&_0x238414>0x0){if(_0x1b84ea[_0x3686a6-0x1]===_0x5726eb[_0x238414-0x1])_0x170a82[_0x5a0029(0x12a)](_0x1b84ea[_0x3686a6-0x1]),_0x3686a6--,_0x238414--;else _0x12864f[_0x3686a6-0x1][_0x238414]>_0x12864f[_0x3686a6][_0x238414-0x1]?_0x3686a6--:_0x238414--;}return _0x170a82;}function a192_0x44a7(_0x9b778b,_0x2abe2c){_0x9b778b=_0x9b778b-0x12a;const _0x518463=a192_0x5184();let _0x44a78b=_0x518463[_0x9b778b];return _0x44a78b;}export function formatDiffWithColors(_0xd6fda0,_0x27ff21=0x3){const _0x235f80=a192_0x44a7,_0x3ec8a8=new Set();_0xd6fda0[_0x235f80(0x141)]((_0x1233b4,_0x4f9848)=>{const _0x58255b=_0x235f80;_0x1233b4[_0x58255b(0x12b)]!==_0x58255b(0x147)&&_0x3ec8a8[_0x58255b(0x133)](_0x4f9848);});if(_0x3ec8a8[_0x235f80(0x12f)]===0x0)return'';const _0x1f2d12=new Set();for(const _0x601874 of _0x3ec8a8){for(let _0xc1aa2=Math[_0x235f80(0x148)](0x0,_0x601874-_0x27ff21);_0xc1aa2<=Math[_0x235f80(0x140)](_0xd6fda0[_0x235f80(0x134)]-0x1,_0x601874+_0x27ff21);_0xc1aa2++){_0x1f2d12[_0x235f80(0x133)](_0xc1aa2);}}const _0x5cb6ec=[];let _0x2baa0d=-0x1;const _0x1f6898=_0xd6fda0['length'],_0x45ccff=Math['max'](0x3,String(_0x1f6898)['length']),_0x25aa71=[];let _0x2056fd=0x0,_0x406a69=0x0;for(const _0x54bc3b of _0xd6fda0){if(_0x54bc3b[_0x235f80(0x12b)]===_0x235f80(0x13d))_0x2056fd++,_0x25aa71[_0x235f80(0x14a)]({'old':_0x2056fd,'new':0x0});else _0x54bc3b[_0x235f80(0x12b)]===_0x235f80(0x143)?(_0x406a69++,_0x25aa71['push']({'old':0x0,'new':_0x406a69})):(_0x2056fd++,_0x406a69++,_0x25aa71[_0x235f80(0x14a)]({'old':_0x2056fd,'new':_0x406a69}));}for(let _0x5eda7b=0x0;_0x5eda7b<_0xd6fda0['length'];_0x5eda7b++){if(!_0x1f2d12[_0x235f80(0x146)](_0x5eda7b))continue;_0x2baa0d!==-0x1&&_0x5eda7b>_0x2baa0d+0x1&&_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d['cyan'](_0x235f80(0x13b)));_0x2baa0d=_0x5eda7b;const _0x50b757=_0xd6fda0[_0x5eda7b],_0x1ef1eb=_0x25aa71[_0x5eda7b],_0x1a742e=_0x1ef1eb['old']>0x0?String(_0x1ef1eb[_0x235f80(0x13a)])[_0x235f80(0x139)](_0x45ccff):'\x20'[_0x235f80(0x14b)](_0x45ccff),_0x171f7d=_0x1ef1eb[_0x235f80(0x149)]>0x0?String(_0x1ef1eb['new'])[_0x235f80(0x139)](_0x45ccff):'\x20'['repeat'](_0x45ccff);switch(_0x50b757['type']){case _0x235f80(0x13d):_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d[_0x235f80(0x13c)](_0x1a742e+'\x20'+_0x171f7d+'\x20-\x20'+_0x50b757[_0x235f80(0x14d)]));break;case _0x235f80(0x143):_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d['green'](_0x1a742e+'\x20'+_0x171f7d+_0x235f80(0x136)+_0x50b757[_0x235f80(0x14d)]));break;default:_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d[_0x235f80(0x145)](_0x1a742e+'\x20'+_0x171f7d+_0x235f80(0x12d)+_0x50b757[_0x235f80(0x14d)]));break;}}return _0x5cb6ec[_0x235f80(0x135)]('\x0a');}export function hasChanges(_0x298401){const _0x4c306d=a192_0x44a7;return _0x298401['some'](_0x48be5f=>_0x48be5f[_0x4c306d(0x12b)]!==_0x4c306d(0x147));}
1
+ (function(_0x795ff6,_0x13954a){const _0x27343f=a202_0x1ec9,_0x5d4a48=_0x795ff6();while(!![]){try{const _0xd6ee9b=-parseInt(_0x27343f(0x1a8))/0x1*(parseInt(_0x27343f(0x1b0))/0x2)+parseInt(_0x27343f(0x1ad))/0x3+-parseInt(_0x27343f(0x194))/0x4*(parseInt(_0x27343f(0x18d))/0x5)+parseInt(_0x27343f(0x1a5))/0x6*(-parseInt(_0x27343f(0x19f))/0x7)+-parseInt(_0x27343f(0x193))/0x8+parseInt(_0x27343f(0x1ae))/0x9+parseInt(_0x27343f(0x1aa))/0xa;if(_0xd6ee9b===_0x13954a)break;else _0x5d4a48['push'](_0x5d4a48['shift']());}catch(_0x3a74d1){_0x5d4a48['push'](_0x5d4a48['shift']());}}}(a202_0x2b92,0xdecfa));import a202_0x37b7a7 from'chalk';export function generateDiff(_0x3e0d27,_0xa22fd2){const _0x43a0bf=a202_0x1ec9,_0x3a17c9=_0x3e0d27[_0x43a0bf(0x19c)]('\x0a'),_0x1b883a=_0xa22fd2[_0x43a0bf(0x19c)]('\x0a'),_0x223efd=[],_0x20a655=computeLCS(_0x3a17c9,_0x1b883a);let _0x1a5e89=0x0,_0x49e873=0x0,_0x5267a3=0x0;while(_0x1a5e89<_0x3a17c9[_0x43a0bf(0x19d)]||_0x49e873<_0x1b883a['length']){if(_0x5267a3<_0x20a655['length']&&_0x1a5e89<_0x3a17c9[_0x43a0bf(0x19d)]&&_0x3a17c9[_0x1a5e89]===_0x20a655[_0x5267a3])_0x49e873<_0x1b883a['length']&&_0x1b883a[_0x49e873]===_0x20a655[_0x5267a3]?(_0x223efd[_0x43a0bf(0x1ab)]({'type':_0x43a0bf(0x1ac),'content':_0x3a17c9[_0x1a5e89]}),_0x1a5e89++,_0x49e873++,_0x5267a3++):(_0x223efd['push']({'type':'added','content':_0x1b883a[_0x49e873]}),_0x49e873++);else{if(_0x5267a3<_0x20a655[_0x43a0bf(0x19d)]&&_0x49e873<_0x1b883a[_0x43a0bf(0x19d)]&&_0x1b883a[_0x49e873]===_0x20a655[_0x5267a3])_0x223efd['push']({'type':_0x43a0bf(0x1a7),'content':_0x3a17c9[_0x1a5e89]}),_0x1a5e89++;else{if(_0x1a5e89<_0x3a17c9[_0x43a0bf(0x19d)]&&(_0x5267a3>=_0x20a655[_0x43a0bf(0x19d)]||_0x3a17c9[_0x1a5e89]!==_0x20a655[_0x5267a3]))_0x223efd[_0x43a0bf(0x1ab)]({'type':_0x43a0bf(0x1a7),'content':_0x3a17c9[_0x1a5e89]}),_0x1a5e89++;else _0x49e873<_0x1b883a['length']&&(_0x223efd[_0x43a0bf(0x1ab)]({'type':_0x43a0bf(0x18f),'content':_0x1b883a[_0x49e873]}),_0x49e873++);}}}return _0x223efd;}function computeLCS(_0x597bb1,_0x4dcd57){const _0x5f1ef5=a202_0x1ec9,_0x34282d=_0x597bb1['length'],_0x465bd0=_0x4dcd57[_0x5f1ef5(0x19d)],_0x29a66f=Array(_0x34282d+0x1)[_0x5f1ef5(0x1a3)](null)[_0x5f1ef5(0x1a2)](()=>Array(_0x465bd0+0x1)[_0x5f1ef5(0x1a3)](0x0));for(let _0x531d4b=0x1;_0x531d4b<=_0x34282d;_0x531d4b++){for(let _0x4aa2ff=0x1;_0x4aa2ff<=_0x465bd0;_0x4aa2ff++){_0x597bb1[_0x531d4b-0x1]===_0x4dcd57[_0x4aa2ff-0x1]?_0x29a66f[_0x531d4b][_0x4aa2ff]=_0x29a66f[_0x531d4b-0x1][_0x4aa2ff-0x1]+0x1:_0x29a66f[_0x531d4b][_0x4aa2ff]=Math[_0x5f1ef5(0x191)](_0x29a66f[_0x531d4b-0x1][_0x4aa2ff],_0x29a66f[_0x531d4b][_0x4aa2ff-0x1]);}}const _0x511bae=[];let _0x465dce=_0x34282d,_0x207736=_0x465bd0;while(_0x465dce>0x0&&_0x207736>0x0){if(_0x597bb1[_0x465dce-0x1]===_0x4dcd57[_0x207736-0x1])_0x511bae[_0x5f1ef5(0x1b1)](_0x597bb1[_0x465dce-0x1]),_0x465dce--,_0x207736--;else _0x29a66f[_0x465dce-0x1][_0x207736]>_0x29a66f[_0x465dce][_0x207736-0x1]?_0x465dce--:_0x207736--;}return _0x511bae;}export function formatDiffWithColors(_0x37ae3a,_0x2f75b2=0x3){const _0x1e5d4d=a202_0x1ec9,_0x25cded=new Set();_0x37ae3a[_0x1e5d4d(0x19b)]((_0x266860,_0x5ab023)=>{const _0x36e94d=_0x1e5d4d;_0x266860[_0x36e94d(0x199)]!=='unchanged'&&_0x25cded[_0x36e94d(0x195)](_0x5ab023);});if(_0x25cded[_0x1e5d4d(0x197)]===0x0)return'';const _0x4a0201=new Set();for(const _0x5c17c0 of _0x25cded){for(let _0x871425=Math['max'](0x0,_0x5c17c0-_0x2f75b2);_0x871425<=Math[_0x1e5d4d(0x19e)](_0x37ae3a[_0x1e5d4d(0x19d)]-0x1,_0x5c17c0+_0x2f75b2);_0x871425++){_0x4a0201['add'](_0x871425);}}const _0x42381b=[];let _0x168205=-0x1;const _0x55aa20=_0x37ae3a[_0x1e5d4d(0x19d)],_0x4b8507=Math[_0x1e5d4d(0x191)](0x3,String(_0x55aa20)[_0x1e5d4d(0x19d)]),_0xe2031=[];let _0x3e2f8c=0x0,_0x441dcf=0x0;for(const _0x320488 of _0x37ae3a){if(_0x320488['type']===_0x1e5d4d(0x1a7))_0x3e2f8c++,_0xe2031['push']({'old':_0x3e2f8c,'new':0x0});else _0x320488['type']===_0x1e5d4d(0x18f)?(_0x441dcf++,_0xe2031['push']({'old':0x0,'new':_0x441dcf})):(_0x3e2f8c++,_0x441dcf++,_0xe2031[_0x1e5d4d(0x1ab)]({'old':_0x3e2f8c,'new':_0x441dcf}));}for(let _0x389131=0x0;_0x389131<_0x37ae3a['length'];_0x389131++){if(!_0x4a0201[_0x1e5d4d(0x196)](_0x389131))continue;_0x168205!==-0x1&&_0x389131>_0x168205+0x1&&_0x42381b[_0x1e5d4d(0x1ab)](a202_0x37b7a7[_0x1e5d4d(0x1a1)]('\x20\x20...'));_0x168205=_0x389131;const _0x30d006=_0x37ae3a[_0x389131],_0x436f60=_0xe2031[_0x389131],_0x171761=_0x436f60[_0x1e5d4d(0x198)]>0x0?String(_0x436f60[_0x1e5d4d(0x198)])[_0x1e5d4d(0x1af)](_0x4b8507):'\x20'[_0x1e5d4d(0x1a9)](_0x4b8507),_0x123f1b=_0x436f60[_0x1e5d4d(0x1a0)]>0x0?String(_0x436f60[_0x1e5d4d(0x1a0)])[_0x1e5d4d(0x1af)](_0x4b8507):'\x20'[_0x1e5d4d(0x1a9)](_0x4b8507);switch(_0x30d006[_0x1e5d4d(0x199)]){case _0x1e5d4d(0x1a7):_0x42381b[_0x1e5d4d(0x1ab)](a202_0x37b7a7['red'](_0x171761+'\x20'+_0x123f1b+_0x1e5d4d(0x192)+_0x30d006[_0x1e5d4d(0x1a6)]));break;case _0x1e5d4d(0x18f):_0x42381b[_0x1e5d4d(0x1ab)](a202_0x37b7a7[_0x1e5d4d(0x18e)](_0x171761+'\x20'+_0x123f1b+_0x1e5d4d(0x19a)+_0x30d006[_0x1e5d4d(0x1a6)]));break;default:_0x42381b['push'](a202_0x37b7a7['dim'](_0x171761+'\x20'+_0x123f1b+_0x1e5d4d(0x190)+_0x30d006[_0x1e5d4d(0x1a6)]));break;}}return _0x42381b[_0x1e5d4d(0x1b2)]('\x0a');}export function hasChanges(_0x5b0ca1){const _0x4e4235=a202_0x1ec9;return _0x5b0ca1[_0x4e4235(0x1a4)](_0x3490c1=>_0x3490c1[_0x4e4235(0x199)]!==_0x4e4235(0x1ac));}function a202_0x1ec9(_0x5a13fc,_0x2b7e75){_0x5a13fc=_0x5a13fc-0x18d;const _0x2b92fc=a202_0x2b92();let _0x1ec915=_0x2b92fc[_0x5a13fc];return _0x1ec915;}function a202_0x2b92(){const _0x157556=['size','old','type','\x20+\x20','forEach','split','length','min','7jcsZNt','new','cyan','map','fill','some','632976cVpXug','content','removed','1riBLNe','repeat','20873020dSyrFw','push','unchanged','568851mlkxww','3608307yfuJHq','padStart','821566HjXqPx','unshift','join','5310SdLDwS','green','added','\x20\x20\x20','max','\x20-\x20','9948952cdpXHc','20zxhAuR','add','has'];a202_0x2b92=function(){return _0x157556;};return a202_0x2b92();}
@@ -1 +1 @@
1
- (function(_0x235abb,_0x38c1e2){const _0x26ff20=a193_0xacba,_0x26db4f=_0x235abb();while(!![]){try{const _0x2c1f03=-parseInt(_0x26ff20(0xb3))/0x1*(parseInt(_0x26ff20(0xbd))/0x2)+-parseInt(_0x26ff20(0xc0))/0x3+-parseInt(_0x26ff20(0xc3))/0x4+parseInt(_0x26ff20(0xb8))/0x5*(-parseInt(_0x26ff20(0xb5))/0x6)+-parseInt(_0x26ff20(0xc2))/0x7*(-parseInt(_0x26ff20(0xbe))/0x8)+parseInt(_0x26ff20(0xbb))/0x9+parseInt(_0x26ff20(0xb2))/0xa*(parseInt(_0x26ff20(0xc4))/0xb);if(_0x2c1f03===_0x38c1e2)break;else _0x26db4f['push'](_0x26db4f['shift']());}catch(_0x47b8d5){_0x26db4f['push'](_0x26db4f['shift']());}}}(a193_0xc08a,0x655a6));import*as a193_0x49de12 from'node:fs';import*as a193_0x4f68f0 from'node:path';export function setSecureFilePermissions(_0xf46df6){const _0x4d3920=a193_0xacba;try{a193_0x49de12[_0x4d3920(0xb4)](_0xf46df6,0x180);}catch{console[_0x4d3920(0xbf)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xf46df6);}}export function setSecureDirectoryPermissions(_0x4be1e3){const _0x4f4c74=a193_0xacba;try{a193_0x49de12[_0x4f4c74(0xb4)](_0x4be1e3,0x1c0);}catch{console[_0x4f4c74(0xbf)](_0x4f4c74(0xba)+_0x4be1e3);}}export function createSecureDirectory(_0x1b3d35){const _0x1f6aef=a193_0xacba;!a193_0x49de12[_0x1f6aef(0xb1)](_0x1b3d35)&&(a193_0x49de12['mkdirSync'](_0x1b3d35,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1b3d35));}export function validateSecureFilePermissions(_0x50e538){const _0x5e8ac5=a193_0xacba;try{const _0x1da699=a193_0x49de12[_0x5e8ac5(0xb7)](_0x50e538),_0x3decf4=_0x1da699[_0x5e8ac5(0xaf)]&0x1ff,_0x3a0e25=(_0x3decf4&0x3f)!==0x0;if(_0x3a0e25)return console[_0x5e8ac5(0xbf)](_0x5e8ac5(0xc1)+_0x50e538+_0x5e8ac5(0xbc)+_0x3decf4[_0x5e8ac5(0xb9)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a193_0xacba(_0xd2bd2f,_0x456480){_0xd2bd2f=_0xd2bd2f-0xaf;const _0xc08ab4=a193_0xc08a();let _0xacbab5=_0xc08ab4[_0xd2bd2f];return _0xacbab5;}export function writeSecureFile(_0x355053,_0x3dd0e7){const _0x259b3b=a193_0xacba,_0x2d35e5=a193_0x4f68f0[_0x259b3b(0xb0)](_0x355053);createSecureDirectory(_0x2d35e5),a193_0x49de12[_0x259b3b(0xb6)](_0x355053,_0x3dd0e7,{'mode':0x180}),setSecureFilePermissions(_0x355053);}function a193_0xc08a(){const _0x485133=['Warning:\x20','52437TMJMUK','3108540oaHNpD','33sfQaxB','mode','dirname','existsSync','6968050dFuKga','777581bCIoQC','chmodSync','6zalJDC','writeFileSync','statSync','961355jMkPBt','toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','788922rpZdOs','\x20has\x20insecure\x20permissions\x20(','2ILQnaR','616pEtkIY','warn','1778253UgbRtE'];a193_0xc08a=function(){return _0x485133;};return a193_0xc08a();}
1
+ function a203_0x4d77(_0x5c4d01,_0x3cfcfc){_0x5c4d01=_0x5c4d01-0x1ed;const _0x2b8fde=a203_0x2b8f();let _0x4d77a4=_0x2b8fde[_0x5c4d01];return _0x4d77a4;}function a203_0x2b8f(){const _0x3c7eb8=['toString','existsSync','1341kDfgNM','2568xOFmSV','chmodSync','writeFileSync','290160DKHQAB','mkdirSync','215387AaQTsO','Warning:\x20','statSync','warn','2GTazYH','\x20has\x20insecure\x20permissions\x20(','mode','1104790ZEctyM','7ShfmtL','640848BAuivA','444285NOOzbR','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','106140fDuWqq'];a203_0x2b8f=function(){return _0x3c7eb8;};return a203_0x2b8f();}(function(_0x389c5b,_0x4d8299){const _0x742e56=a203_0x4d77,_0x1d087c=_0x389c5b();while(!![]){try{const _0x46af7a=-parseInt(_0x742e56(0x1f8))/0x1*(-parseInt(_0x742e56(0x1fc))/0x2)+-parseInt(_0x742e56(0x1f6))/0x3+-parseInt(_0x742e56(0x201))/0x4+parseInt(_0x742e56(0x1ed))/0x5+-parseInt(_0x742e56(0x1ef))/0x6*(-parseInt(_0x742e56(0x200))/0x7)+-parseInt(_0x742e56(0x1f3))/0x8*(parseInt(_0x742e56(0x1f2))/0x9)+parseInt(_0x742e56(0x1ff))/0xa;if(_0x46af7a===_0x4d8299)break;else _0x1d087c['push'](_0x1d087c['shift']());}catch(_0x4de79d){_0x1d087c['push'](_0x1d087c['shift']());}}}(a203_0x2b8f,0x1f2a4));import*as a203_0x41f26f from'node:fs';import*as a203_0x5e09a3 from'node:path';export function setSecureFilePermissions(_0x3720ef){const _0x4f8a9a=a203_0x4d77;try{a203_0x41f26f[_0x4f8a9a(0x1f4)](_0x3720ef,0x180);}catch{console[_0x4f8a9a(0x1fb)](_0x4f8a9a(0x1ee)+_0x3720ef);}}export function setSecureDirectoryPermissions(_0x56d427){const _0x2ab6ba=a203_0x4d77;try{a203_0x41f26f[_0x2ab6ba(0x1f4)](_0x56d427,0x1c0);}catch{console[_0x2ab6ba(0x1fb)](_0x2ab6ba(0x1ee)+_0x56d427);}}export function createSecureDirectory(_0x1f8d6d){const _0xd10c49=a203_0x4d77;!a203_0x41f26f[_0xd10c49(0x1f1)](_0x1f8d6d)&&(a203_0x41f26f[_0xd10c49(0x1f7)](_0x1f8d6d,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1f8d6d));}export function validateSecureFilePermissions(_0x444662){const _0x269681=a203_0x4d77;try{const _0x3381dc=a203_0x41f26f[_0x269681(0x1fa)](_0x444662),_0x14db84=_0x3381dc[_0x269681(0x1fe)]&0x1ff,_0x35ef02=(_0x14db84&0x3f)!==0x0;if(_0x35ef02)return console['warn'](_0x269681(0x1f9)+_0x444662+_0x269681(0x1fd)+_0x14db84[_0x269681(0x1f0)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x16d3dc,_0x2e3149){const _0x406f79=a203_0x4d77,_0x4ab2cc=a203_0x5e09a3['dirname'](_0x16d3dc);createSecureDirectory(_0x4ab2cc),a203_0x41f26f[_0x406f79(0x1f5)](_0x16d3dc,_0x2e3149,{'mode':0x180}),setSecureFilePermissions(_0x16d3dc);}
@@ -1 +1 @@
1
- (function(_0x1dd4cc,_0x21c6cb){const _0x411131=a194_0x5472,_0x39ecf9=_0x1dd4cc();while(!![]){try{const _0x4c4878=-parseInt(_0x411131(0x1f5))/0x1+-parseInt(_0x411131(0x1fd))/0x2+-parseInt(_0x411131(0x1f7))/0x3*(parseInt(_0x411131(0x1ff))/0x4)+-parseInt(_0x411131(0x1f4))/0x5+-parseInt(_0x411131(0x1f9))/0x6+-parseInt(_0x411131(0x202))/0x7+parseInt(_0x411131(0x201))/0x8;if(_0x4c4878===_0x21c6cb)break;else _0x39ecf9['push'](_0x39ecf9['shift']());}catch(_0x5f1d10){_0x39ecf9['push'](_0x39ecf9['shift']());}}}(a194_0x3092,0x557a4));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x5472(_0x5e09d5,_0x19e92b){_0x5e09d5=_0x5e09d5-0x1f4;const _0x3092fe=a194_0x3092();let _0x5472e6=_0x3092fe[_0x5e09d5];return _0x5472e6;}function a194_0x3092(){const _0x26fa89=['32168LisXgs','ENOENT','12942736dhUwkg','427609oWjzcx','utf-8','NOT_FOUND','File\x20\x27','504025WztNEV','643776DAPHpO','EACCES','99BBvcOe','PERMISSION_DENIED','943842iTLtRS','\x27\x20not\x20found','Permission\x20denied\x20reading\x20file\x20\x27','INTERNAL','78730sufRCE','Error\x20reading\x20file\x20\x27'];a194_0x3092=function(){return _0x26fa89;};return a194_0x3092();}export function readFileContent(_0x39f55a){const _0x1bb939=a194_0x5472;try{return readFileSync(_0x39f55a,_0x1bb939(0x203));}catch(_0x519159){const _0x56b3f2=_0x519159['code'];if(_0x56b3f2===_0x1bb939(0x200))throw new SDKError(ErrorCode[_0x1bb939(0x204)],_0x1bb939(0x205)+_0x39f55a+_0x1bb939(0x1fa),_0x519159);else{if(_0x56b3f2===_0x1bb939(0x1f6))throw new SDKError(ErrorCode[_0x1bb939(0x1f8)],_0x1bb939(0x1fb)+_0x39f55a+'\x27',_0x519159);else throw new SDKError(ErrorCode[_0x1bb939(0x1fc)],_0x1bb939(0x1fe)+_0x39f55a+'\x27:\x20'+_0x519159['message'],_0x519159);}}}
1
+ function a204_0x2006(_0x2c97ba,_0xd1cf2){_0x2c97ba=_0x2c97ba-0x11c;const _0x4dd9b4=a204_0x4dd9();let _0x2006c9=_0x4dd9b4[_0x2c97ba];return _0x2006c9;}(function(_0x25fcc2,_0x48dfff){const _0x1ead09=a204_0x2006,_0x25426c=_0x25fcc2();while(!![]){try{const _0x85f92e=parseInt(_0x1ead09(0x124))/0x1*(parseInt(_0x1ead09(0x11f))/0x2)+-parseInt(_0x1ead09(0x12d))/0x3+parseInt(_0x1ead09(0x125))/0x4+-parseInt(_0x1ead09(0x12e))/0x5+-parseInt(_0x1ead09(0x12c))/0x6+parseInt(_0x1ead09(0x127))/0x7+parseInt(_0x1ead09(0x12b))/0x8*(parseInt(_0x1ead09(0x129))/0x9);if(_0x85f92e===_0x48dfff)break;else _0x25426c['push'](_0x25426c['shift']());}catch(_0x5c5c65){_0x25426c['push'](_0x25426c['shift']());}}}(a204_0x4dd9,0x49aa4));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a204_0x4dd9(){const _0x2b3755=['1111124bUXZVZ','message','51786QfmIne','File\x20\x27','584qUpViM','576012BdpMUm','614379cospgN','2556845udFHnG','EACCES','\x27\x20not\x20found','utf-8','217132bIEKrE','code','NOT_FOUND','INTERNAL','Error\x20reading\x20file\x20\x27','4WrpJby','403432bBtPZk','ENOENT'];a204_0x4dd9=function(){return _0x2b3755;};return a204_0x4dd9();}export function readFileContent(_0x545d59){const _0x991b44=a204_0x2006;try{return readFileSync(_0x545d59,_0x991b44(0x11e));}catch(_0x4b3324){const _0x1b9660=_0x4b3324[_0x991b44(0x120)];if(_0x1b9660===_0x991b44(0x126))throw new SDKError(ErrorCode[_0x991b44(0x121)],_0x991b44(0x12a)+_0x545d59+_0x991b44(0x11d),_0x4b3324);else{if(_0x1b9660===_0x991b44(0x11c))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x545d59+'\x27',_0x4b3324);else throw new SDKError(ErrorCode[_0x991b44(0x122)],_0x991b44(0x123)+_0x545d59+'\x27:\x20'+_0x4b3324[_0x991b44(0x128)],_0x4b3324);}}}
@@ -1 +1 @@
1
- (function(_0x5cc2d0,_0x226760){const _0x3b191f=a195_0x3804,_0x71f15d=_0x5cc2d0();while(!![]){try{const _0x90ab4b=parseInt(_0x3b191f(0x1d3))/0x1+parseInt(_0x3b191f(0x1d7))/0x2+-parseInt(_0x3b191f(0x1c9))/0x3+-parseInt(_0x3b191f(0x1e0))/0x4+-parseInt(_0x3b191f(0x1d9))/0x5*(-parseInt(_0x3b191f(0x1c5))/0x6)+parseInt(_0x3b191f(0x1d1))/0x7*(-parseInt(_0x3b191f(0x1df))/0x8)+parseInt(_0x3b191f(0x1db))/0x9;if(_0x90ab4b===_0x226760)break;else _0x71f15d['push'](_0x71f15d['shift']());}catch(_0x3ff118){_0x71f15d['push'](_0x71f15d['shift']());}}}(a195_0x2780,0x47b5e));import*as a195_0x479f5b from'node:https';function a195_0x3804(_0x542406,_0x4024da){_0x542406=_0x542406-0x1c5;const _0x2780f8=a195_0x2780();let _0x38040f=_0x2780f8[_0x542406];return _0x38040f;}function a195_0x2780(){const _0x5e5bd4=['releases','1160415UEyqhg','timeout','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','set','prerelease','find','toString','GitHub\x20API\x20returned\x20','7gxPuoF','api.github.com','127435rsypIr','statusCode','error','end','900410kJyBOt','now','2344015qWpruj','data','3900402cYVkAC','length','next','tag_name','2694232BLUrLt','1850044CbLfgY','fetchedAt','6cDOPmF','resolve','slice'];a195_0x2780=function(){return _0x5e5bd4;};return a195_0x2780();}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x3c66a0,_0x384515,_0x794077){const _0x3a6e7d=a195_0x3804,_0xd207bd=_0x3c66a0+'/'+_0x384515,_0x3b3e07=cache['get'](_0xd207bd);if(_0x3b3e07&&Date[_0x3a6e7d(0x1d8)]()-_0x3b3e07[_0x3a6e7d(0x1e1)]<CACHE_TTL_MS)return Promise[_0x3a6e7d(0x1c6)](_0x3b3e07[_0x3a6e7d(0x1c8)]);return new Promise((_0x5afb01,_0x47df09)=>{const _0x40f420=_0x3a6e7d,_0x2f677b={'hostname':_0x40f420(0x1d2),'path':'/repos/'+_0x3c66a0+'/'+_0x384515+'/releases?per_page=20','headers':{'User-Agent':_0x794077,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x3c0819=a195_0x479f5b['get'](_0x2f677b,_0x23aeee=>{const _0x5bce4f=_0x40f420;let _0x58bb26='';_0x23aeee['on'](_0x5bce4f(0x1da),_0x9b8387=>{const _0x4e52ca=_0x5bce4f;_0x58bb26+=_0x9b8387[_0x4e52ca(0x1cf)]();}),_0x23aeee['on'](_0x5bce4f(0x1d6),()=>{const _0x45557c=_0x5bce4f;if(_0x23aeee['statusCode']!==0xc8){_0x47df09(new Error(_0x45557c(0x1d0)+_0x23aeee[_0x45557c(0x1d4)]+':\x20'+_0x58bb26[_0x45557c(0x1c7)](0x0,0xc8)));return;}try{const _0x3569ff=JSON['parse'](_0x58bb26);cache[_0x45557c(0x1cc)](_0xd207bd,{'releases':_0x3569ff,'fetchedAt':Date[_0x45557c(0x1d8)]()}),_0x5afb01(_0x3569ff);}catch(_0xd3508f){_0x47df09(_0xd3508f);}});});_0x3c0819['on'](_0x40f420(0x1ca),()=>{const _0x6f4db8=_0x40f420;_0x3c0819['destroy'](),_0x47df09(new Error(_0x6f4db8(0x1cb)+REQUEST_TIMEOUT_MS+'ms'));}),_0x3c0819['on'](_0x40f420(0x1d5),_0x47df09);});}export async function resolveReleaseTag(_0x523bca,_0x3be073,_0x3c5ae9,_0x401038){const _0x5a7881=a195_0x3804,_0xd925a8=await fetchGitHubReleases(_0x3be073,_0x3c5ae9,_0x401038);if(_0xd925a8[_0x5a7881(0x1dc)]===0x0)return null;if(_0x523bca===_0x5a7881(0x1dd))return _0xd925a8[0x0]['tag_name'];const _0x2f3ba1=_0xd925a8[_0x5a7881(0x1ce)](_0xa21c9=>!_0xa21c9[_0x5a7881(0x1cd)]);return _0x2f3ba1?_0x2f3ba1[_0x5a7881(0x1de)]:null;}
1
+ (function(_0x517d94,_0x119130){const _0x27b9db=a205_0x57a9,_0x3e0957=_0x517d94();while(!![]){try{const _0xe2d282=parseInt(_0x27b9db(0x1e0))/0x1*(parseInt(_0x27b9db(0x1d7))/0x2)+parseInt(_0x27b9db(0x1e4))/0x3+-parseInt(_0x27b9db(0x1e2))/0x4*(-parseInt(_0x27b9db(0x1d1))/0x5)+parseInt(_0x27b9db(0x1cf))/0x6*(-parseInt(_0x27b9db(0x1dc))/0x7)+parseInt(_0x27b9db(0x1da))/0x8+parseInt(_0x27b9db(0x1cb))/0x9+-parseInt(_0x27b9db(0x1d5))/0xa;if(_0xe2d282===_0x119130)break;else _0x3e0957['push'](_0x3e0957['shift']());}catch(_0x1e764f){_0x3e0957['push'](_0x3e0957['shift']());}}}(a205_0x3611,0x3cf6a));import*as a205_0x5d2b00 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x5439be,_0x1096cb,_0x47aec1){const _0x3ea0d8=a205_0x57a9,_0x184bdd=_0x5439be+'/'+_0x1096cb,_0x496bc9=cache[_0x3ea0d8(0x1ca)](_0x184bdd);if(_0x496bc9&&Date[_0x3ea0d8(0x1cc)]()-_0x496bc9[_0x3ea0d8(0x1ce)]<CACHE_TTL_MS)return Promise[_0x3ea0d8(0x1d0)](_0x496bc9[_0x3ea0d8(0x1de)]);return new Promise((_0x340717,_0x1e7d84)=>{const _0x7361bb=_0x3ea0d8,_0x295981={'hostname':_0x7361bb(0x1d3),'path':_0x7361bb(0x1cd)+_0x5439be+'/'+_0x1096cb+_0x7361bb(0x1d4),'headers':{'User-Agent':_0x47aec1,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x17e281=a205_0x5d2b00[_0x7361bb(0x1ca)](_0x295981,_0x295b98=>{let _0xa73faa='';_0x295b98['on']('data',_0x671797=>{const _0x2c7bbb=a205_0x57a9;_0xa73faa+=_0x671797[_0x2c7bbb(0x1e3)]();}),_0x295b98['on']('end',()=>{const _0x13fa5d=a205_0x57a9;if(_0x295b98[_0x13fa5d(0x1db)]!==0xc8){_0x1e7d84(new Error(_0x13fa5d(0x1df)+_0x295b98[_0x13fa5d(0x1db)]+':\x20'+_0xa73faa[_0x13fa5d(0x1d8)](0x0,0xc8)));return;}try{const _0x874531=JSON[_0x13fa5d(0x1e1)](_0xa73faa);cache['set'](_0x184bdd,{'releases':_0x874531,'fetchedAt':Date[_0x13fa5d(0x1cc)]()}),_0x340717(_0x874531);}catch(_0x26dd84){_0x1e7d84(_0x26dd84);}});});_0x17e281['on']('timeout',()=>{const _0x1b39a3=_0x7361bb;_0x17e281[_0x1b39a3(0x1d2)](),_0x1e7d84(new Error(_0x1b39a3(0x1dd)+REQUEST_TIMEOUT_MS+'ms'));}),_0x17e281['on'](_0x7361bb(0x1c9),_0x1e7d84);});}function a205_0x57a9(_0x5dedb4,_0x38bb8b){_0x5dedb4=_0x5dedb4-0x1c8;const _0x361193=a205_0x3611();let _0x57a9fa=_0x361193[_0x5dedb4];return _0x57a9fa;}function a205_0x3611(){const _0x195b3b=['statusCode','7EtMZUG','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','releases','GitHub\x20API\x20returned\x20','2Bwylpm','parse','208vbmXFK','toString','152190XNoPhi','length','error','get','3477510nttpSk','now','/repos/','fetchedAt','2021766dHGXyj','resolve','1735PlZvVr','destroy','api.github.com','/releases?per_page=20','1924980KMzAJY','tag_name','205628IJxhSa','slice','find','946984MXtAPv'];a205_0x3611=function(){return _0x195b3b;};return a205_0x3611();}export async function resolveReleaseTag(_0x208e36,_0x254959,_0x520aa0,_0xb25ca){const _0x144057=a205_0x57a9,_0x5d9ea7=await fetchGitHubReleases(_0x254959,_0x520aa0,_0xb25ca);if(_0x5d9ea7[_0x144057(0x1c8)]===0x0)return null;if(_0x208e36==='next')return _0x5d9ea7[0x0][_0x144057(0x1d6)];const _0x124084=_0x5d9ea7[_0x144057(0x1d9)](_0x4ca6e8=>!_0x4ca6e8['prerelease']);return _0x124084?_0x124084['tag_name']:null;}
@@ -1 +1 @@
1
- (function(_0x5161a5,_0x1ac207){const _0x1f5010=a196_0x3df8,_0x59e71b=_0x5161a5();while(!![]){try{const _0x3be785=-parseInt(_0x1f5010(0x117))/0x1*(-parseInt(_0x1f5010(0x10b))/0x2)+parseInt(_0x1f5010(0x106))/0x3+-parseInt(_0x1f5010(0x116))/0x4*(-parseInt(_0x1f5010(0x112))/0x5)+parseInt(_0x1f5010(0x103))/0x6*(parseInt(_0x1f5010(0x114))/0x7)+-parseInt(_0x1f5010(0x113))/0x8*(parseInt(_0x1f5010(0x10c))/0x9)+-parseInt(_0x1f5010(0x10e))/0xa*(-parseInt(_0x1f5010(0x111))/0xb)+-parseInt(_0x1f5010(0x102))/0xc;if(_0x3be785===_0x1ac207)break;else _0x59e71b['push'](_0x59e71b['shift']());}catch(_0x1a4d36){_0x59e71b['push'](_0x59e71b['shift']());}}}(a196_0x2b2d,0x41872));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x9cfe85=a196_0x3df8;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x9cfe85(0x104));}const registry=new Map();export function registerGlobalCacheKey(_0x27140e,_0x3cb25e){const _0x306634=a196_0x3df8,_0x163962=registry[_0x306634(0x108)](_0x27140e);if(_0x163962&&_0x163962!==_0x3cb25e)throw new Error(_0x306634(0x118)+_0x27140e+_0x306634(0x10d)+_0x163962+_0x306634(0x115)+_0x3cb25e+'\x22');registry[_0x306634(0x107)](_0x27140e,_0x3cb25e);}export function getGlobalCachePath(_0x15a5a0){return join(getGlobalCacheDir(),_0x15a5a0);}function a196_0x2b2d(){const _0x140b18=['\x22\x20already\x20registered\x20by\x20\x22','850YeUOsH','default','parse','4708AWnXPe','10JYtikr','1240mFmdIU','883442vZUziK','\x22,\x20cannot\x20register\x20for\x20\x22','1548odBiOm','5APvjJl','Global\x20cache\x20key\x20\x22','594936WbRFCv','12sZMgwL','tdx','replace','91992XVtcgi','set','get','stringify','utf-8','5734LaePKB','963IuhYEh'];a196_0x2b2d=function(){return _0x140b18;};return a196_0x2b2d();}function ensureGlobalCacheDir(){const _0x4d69ef=getGlobalCacheDir();!existsSync(_0x4d69ef)&&mkdirSync(_0x4d69ef,{'recursive':!![]});}function readCacheJson(_0x17d198){const _0x5c6f53=a196_0x3df8,_0xff69bb=getGlobalCachePath(_0x17d198);if(!existsSync(_0xff69bb))return undefined;try{const _0x4a660a=readFileSync(_0xff69bb,_0x5c6f53(0x10a));return JSON[_0x5c6f53(0x110)](_0x4a660a);}catch{return undefined;}}function a196_0x3df8(_0x370ca7,_0x29d340){_0x370ca7=_0x370ca7-0x102;const _0x2b2d14=a196_0x2b2d();let _0x3df858=_0x2b2d14[_0x370ca7];return _0x3df858;}function writeCacheJson(_0x28d1b0,_0x9f1169){const _0x5ba153=a196_0x3df8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x28d1b0),JSON[_0x5ba153(0x109)](_0x9f1169,null,0x2),'utf-8');}function readCacheText(_0x4c3682){const _0x4799bc=getGlobalCachePath(_0x4c3682);if(!existsSync(_0x4799bc))return undefined;try{return readFileSync(_0x4799bc,'utf-8');}catch{return undefined;}}function writeCacheText(_0xb0a634,_0x533db9){const _0x128725=a196_0x3df8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xb0a634),_0x533db9,_0x128725(0x10a));}function clearCache(_0x3205d2){const _0x2d6f54=getGlobalCachePath(_0x3205d2);if(existsSync(_0x2d6f54))try{unlinkSync(_0x2d6f54);}catch{}}function cacheExists(_0x532691){return existsSync(getGlobalCachePath(_0x532691));}export function createGlobalCache(_0x280410,_0x478c7b){return registerGlobalCacheKey(_0x280410,_0x478c7b),{'read':()=>readCacheJson(_0x280410),'write':_0x361a8d=>writeCacheJson(_0x280410,_0x361a8d),'clear':()=>clearCache(_0x280410),'exists':()=>cacheExists(_0x280410),'path':()=>getGlobalCachePath(_0x280410)};}export function createGlobalTextCache(_0x478a37,_0x1f3f8d){return registerGlobalCacheKey(_0x478a37,_0x1f3f8d),{'read':()=>readCacheText(_0x478a37)?.['trim']()||undefined,'write':_0x16ebfa=>writeCacheText(_0x478a37,_0x16ebfa),'clear':()=>clearCache(_0x478a37),'exists':()=>cacheExists(_0x478a37),'path':()=>getGlobalCachePath(_0x478a37)};}export function createProfileCache(_0x24e370,_0x431f6d){const _0x35e611=_0x41ec99=>{const _0x50ee86=a196_0x3df8,_0x6286d2=_0x41ec99||_0x50ee86(0x10f);return _0x24e370[_0x50ee86(0x105)]('{profile}',_0x6286d2);};return{'read':_0x28a6fe=>{const _0x5f2158=_0x35e611(_0x28a6fe);return registerGlobalCacheKey(_0x5f2158,_0x431f6d),readCacheJson(_0x5f2158);},'write':(_0x17bdf1,_0x36ad40)=>{const _0x30ce60=_0x35e611(_0x17bdf1);registerGlobalCacheKey(_0x30ce60,_0x431f6d),writeCacheJson(_0x30ce60,_0x36ad40);},'clear':_0x250ea6=>{const _0x550636=_0x35e611(_0x250ea6);clearCache(_0x550636);},'exists':_0x37e7d4=>{const _0x1c663f=_0x35e611(_0x37e7d4);return cacheExists(_0x1c663f);},'path':_0x1c9902=>{const _0xbcf41c=_0x35e611(_0x1c9902);return getGlobalCachePath(_0xbcf41c);}};}export function createOptionalProfileCache(_0xa50d79,_0x2fde5e,_0x2dbc44={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2dbc44,_0x1535fb=_0x336958=>{return _0x336958?''+_0xa50d79+profileSeparator+_0x336958+suffix:''+_0xa50d79+suffix;};return{'read':_0x5e4963=>{const _0x182582=_0x1535fb(_0x5e4963);return registerGlobalCacheKey(_0x182582,_0x2fde5e),readCacheJson(_0x182582);},'write':(_0x39e1c8,_0xbacf3e)=>{const _0x22de33=_0x1535fb(_0xbacf3e);registerGlobalCacheKey(_0x22de33,_0x2fde5e),writeCacheJson(_0x22de33,_0x39e1c8);},'clear':_0x13910e=>{const _0x256438=_0x1535fb(_0x13910e);clearCache(_0x256438);},'exists':_0x3d2390=>{const _0x498c15=_0x1535fb(_0x3d2390);return cacheExists(_0x498c15);},'path':_0x2a232d=>{const _0x2c14b7=_0x1535fb(_0x2a232d);return getGlobalCachePath(_0x2c14b7);}};}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x393d67,_0x23789e){const _0x4fc116=a206_0x1ef4,_0xbe784f=_0x393d67();while(!![]){try{const _0x4a9b70=-parseInt(_0x4fc116(0x17f))/0x1+parseInt(_0x4fc116(0x172))/0x2+parseInt(_0x4fc116(0x170))/0x3+-parseInt(_0x4fc116(0x179))/0x4+parseInt(_0x4fc116(0x178))/0x5*(parseInt(_0x4fc116(0x16f))/0x6)+-parseInt(_0x4fc116(0x177))/0x7*(-parseInt(_0x4fc116(0x176))/0x8)+-parseInt(_0x4fc116(0x17a))/0x9;if(_0x4a9b70===_0x23789e)break;else _0xbe784f['push'](_0xbe784f['shift']());}catch(_0x2e16f4){_0xbe784f['push'](_0xbe784f['shift']());}}}(a206_0x250f,0x9da14));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x32d196=a206_0x1ef4;return process.env.TDX_CACHE_DIR||join(homedir(),_0x32d196(0x175),_0x32d196(0x17b));}const registry=new Map();export function registerGlobalCacheKey(_0x315541,_0x5d3829){const _0x596e1c=a206_0x1ef4,_0x57f3be=registry['get'](_0x315541);if(_0x57f3be&&_0x57f3be!==_0x5d3829)throw new Error('Global\x20cache\x20key\x20\x22'+_0x315541+_0x596e1c(0x180)+_0x57f3be+_0x596e1c(0x17c)+_0x5d3829+'\x22');registry[_0x596e1c(0x17d)](_0x315541,_0x5d3829);}export function getGlobalCachePath(_0x5e2e97){return join(getGlobalCacheDir(),_0x5e2e97);}function ensureGlobalCacheDir(){const _0x5014bf=getGlobalCacheDir();!existsSync(_0x5014bf)&&mkdirSync(_0x5014bf,{'recursive':!![]});}function readCacheJson(_0x45bd3e){const _0x24e5d1=a206_0x1ef4,_0x495ffb=getGlobalCachePath(_0x45bd3e);if(!existsSync(_0x495ffb))return undefined;try{const _0x20cdb1=readFileSync(_0x495ffb,'utf-8');return JSON[_0x24e5d1(0x173)](_0x20cdb1);}catch{return undefined;}}function writeCacheJson(_0x45bffc,_0x43076d){const _0x2deb98=a206_0x1ef4;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x45bffc),JSON[_0x2deb98(0x16e)](_0x43076d,null,0x2),'utf-8');}function readCacheText(_0x2b2796){const _0x5eadd9=a206_0x1ef4,_0x55abf1=getGlobalCachePath(_0x2b2796);if(!existsSync(_0x55abf1))return undefined;try{return readFileSync(_0x55abf1,_0x5eadd9(0x17e));}catch{return undefined;}}function writeCacheText(_0x4999cf,_0x5238c4){const _0x4104c2=a206_0x1ef4;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4999cf),_0x5238c4,_0x4104c2(0x17e));}function clearCache(_0x4b28f2){const _0x44dfe0=getGlobalCachePath(_0x4b28f2);if(existsSync(_0x44dfe0))try{unlinkSync(_0x44dfe0);}catch{}}function cacheExists(_0x5a2d09){return existsSync(getGlobalCachePath(_0x5a2d09));}export function createGlobalCache(_0x1c8e16,_0x597934){return registerGlobalCacheKey(_0x1c8e16,_0x597934),{'read':()=>readCacheJson(_0x1c8e16),'write':_0x4eef72=>writeCacheJson(_0x1c8e16,_0x4eef72),'clear':()=>clearCache(_0x1c8e16),'exists':()=>cacheExists(_0x1c8e16),'path':()=>getGlobalCachePath(_0x1c8e16)};}function a206_0x1ef4(_0xf685e7,_0x2b8330){_0xf685e7=_0xf685e7-0x16e;const _0x250f1d=a206_0x250f();let _0x1ef4c7=_0x250f1d[_0xf685e7];return _0x1ef4c7;}export function createGlobalTextCache(_0x4d82be,_0x4a10e6){return registerGlobalCacheKey(_0x4d82be,_0x4a10e6),{'read':()=>readCacheText(_0x4d82be)?.['trim']()||undefined,'write':_0xe61a81=>writeCacheText(_0x4d82be,_0xe61a81),'clear':()=>clearCache(_0x4d82be),'exists':()=>cacheExists(_0x4d82be),'path':()=>getGlobalCachePath(_0x4d82be)};}export function createProfileCache(_0x51a810,_0x8f309b){const _0x3d090f=_0x371ea3=>{const _0x203aff=a206_0x1ef4,_0x5d656b=_0x371ea3||'default';return _0x51a810['replace'](_0x203aff(0x174),_0x5d656b);};return{'read':_0x154b47=>{const _0xeb9cb=_0x3d090f(_0x154b47);return registerGlobalCacheKey(_0xeb9cb,_0x8f309b),readCacheJson(_0xeb9cb);},'write':(_0xf2fba7,_0x320c62)=>{const _0x433607=_0x3d090f(_0xf2fba7);registerGlobalCacheKey(_0x433607,_0x8f309b),writeCacheJson(_0x433607,_0x320c62);},'clear':_0x32ca9e=>{const _0x12935e=_0x3d090f(_0x32ca9e);clearCache(_0x12935e);},'exists':_0x27feef=>{const _0x505892=_0x3d090f(_0x27feef);return cacheExists(_0x505892);},'path':_0x32f2dd=>{const _0x1e8260=_0x3d090f(_0x32f2dd);return getGlobalCachePath(_0x1e8260);}};}function a206_0x250f(){const _0x4effa8=['345426KicwsH','1801236QzcaLa','clear','1418528ocaihV','parse','{profile}','.cache','8wjYXen','2569889THZFzo','50gymfyZ','3127840WYgktk','540639TryBTn','tdx','\x22,\x20cannot\x20register\x20for\x20\x22','set','utf-8','764830EVWanm','\x22\x20already\x20registered\x20by\x20\x22','stringify'];a206_0x250f=function(){return _0x4effa8;};return a206_0x250f();}export function createOptionalProfileCache(_0x7b1be8,_0x347f76,_0x2af500={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2af500,_0x33719a=_0x2daf7f=>{return _0x2daf7f?''+_0x7b1be8+profileSeparator+_0x2daf7f+suffix:''+_0x7b1be8+suffix;};return{'read':_0x232a82=>{const _0x4c3886=_0x33719a(_0x232a82);return registerGlobalCacheKey(_0x4c3886,_0x347f76),readCacheJson(_0x4c3886);},'write':(_0x5fc246,_0x50c1a4)=>{const _0x30a45a=_0x33719a(_0x50c1a4);registerGlobalCacheKey(_0x30a45a,_0x347f76),writeCacheJson(_0x30a45a,_0x5fc246);},'clear':_0x2abca1=>{const _0x4cdc82=_0x33719a(_0x2abca1);clearCache(_0x4cdc82);},'exists':_0x2682a9=>{const _0x5aae13=_0x33719a(_0x2682a9);return cacheExists(_0x5aae13);},'path':_0x3d5a62=>{const _0x1de78a=_0x33719a(_0x3d5a62);return getGlobalCachePath(_0x1de78a);}};}export function clearGlobalRegistry(){const _0x4d0e32=a206_0x1ef4;registry[_0x4d0e32(0x171)]();}
@@ -1 +1 @@
1
- function a197_0x139f(_0x379dbc,_0x5883b4){_0x379dbc=_0x379dbc-0x7d;const _0x9c06ed=a197_0x9c06();let _0x139fe9=_0x9c06ed[_0x379dbc];return _0x139fe9;}(function(_0x5dc485,_0x9e4dbc){const _0x309cc4=a197_0x139f,_0x526407=_0x5dc485();while(!![]){try{const _0x498410=parseInt(_0x309cc4(0x81))/0x1+-parseInt(_0x309cc4(0x8c))/0x2+-parseInt(_0x309cc4(0x88))/0x3+parseInt(_0x309cc4(0x7e))/0x4*(-parseInt(_0x309cc4(0x82))/0x5)+parseInt(_0x309cc4(0x80))/0x6*(-parseInt(_0x309cc4(0x8d))/0x7)+parseInt(_0x309cc4(0x86))/0x8+parseInt(_0x309cc4(0x8b))/0x9;if(_0x498410===_0x9e4dbc)break;else _0x526407['push'](_0x526407['shift']());}catch(_0x33717b){_0x526407['push'](_0x526407['shift']());}}}(a197_0x9c06,0x7d9be));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x35a594,_0x4b628f){const _0x2c5b6a=a197_0x139f;try{if(_0x4b628f){const _0x25b465=await readFile(_0x35a594,_0x2c5b6a(0x8e));try{return JSON[_0x2c5b6a(0x89)](_0x25b465);}catch(_0x4b7648){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x35a594+_0x2c5b6a(0x83)+(_0x4b7648 instanceof Error?_0x4b7648['message']:String(_0x4b7648)));}}else try{return JSON[_0x2c5b6a(0x89)](_0x35a594);}catch(_0x5a64a5){throw new SDKError(ErrorCode[_0x2c5b6a(0x8f)],'Invalid\x20JSON\x20string:\x20'+(_0x5a64a5 instanceof Error?_0x5a64a5[_0x2c5b6a(0x7f)]:String(_0x5a64a5)));}}catch(_0x209bb3){if(_0x209bb3 instanceof SDKError)throw _0x209bb3;if(_0x209bb3 instanceof Error&&'code'in _0x209bb3){const _0x500906=_0x209bb3;if(_0x500906['code']==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x2c5b6a(0x87)+_0x35a594);else{if(_0x500906[_0x2c5b6a(0x85)]==='EACCES')throw new SDKError(ErrorCode[_0x2c5b6a(0x8a)],_0x2c5b6a(0x90)+_0x35a594);}}throw new SDKError(ErrorCode[_0x2c5b6a(0x84)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x209bb3 instanceof Error?_0x209bb3['message']:String(_0x209bb3)));}}export async function loadJSONFromOptions(_0x3a72a6,_0x141eea){const _0x354de6=a197_0x139f;if(_0x3a72a6&&_0x141eea)throw new SDKError(ErrorCode[_0x354de6(0x8f)],_0x354de6(0x7d));if(_0x3a72a6)return await loadJSON(_0x3a72a6,![]);if(_0x141eea)return await loadJSON(_0x141eea,!![]);return undefined;}function a197_0x9c06(){const _0x2e129d=['message','22278xGFaQn','669592HCfLSq','80690bztAZr','\x27:\x20','INTERNAL','code','1768392dmnRTN','File\x20not\x20found:\x20','2365461wbyfFq','parse','PERMISSION_DENIED','8222220dThnJY','249012NcIKug','406ffRQsn','utf-8','INVALID_ARGUMENT','Permission\x20denied\x20reading\x20file:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','40AeWAXM'];a197_0x9c06=function(){return _0x2e129d;};return a197_0x9c06();}
1
+ (function(_0x5545c3,_0x5de93a){const _0x42f14f=a207_0x39c1,_0x3a7326=_0x5545c3();while(!![]){try{const _0x59e322=parseInt(_0x42f14f(0x16e))/0x1+-parseInt(_0x42f14f(0x178))/0x2+-parseInt(_0x42f14f(0x170))/0x3*(parseInt(_0x42f14f(0x16f))/0x4)+parseInt(_0x42f14f(0x166))/0x5+parseInt(_0x42f14f(0x16b))/0x6+parseInt(_0x42f14f(0x179))/0x7*(parseInt(_0x42f14f(0x177))/0x8)+parseInt(_0x42f14f(0x168))/0x9;if(_0x59e322===_0x5de93a)break;else _0x3a7326['push'](_0x3a7326['shift']());}catch(_0x19e3ec){_0x3a7326['push'](_0x3a7326['shift']());}}}(a207_0x3132,0x43407));function a207_0x3132(){const _0x5b3647=['INVALID_ARGUMENT','code','NOT_FOUND','ENOENT','24ylGSUM','816766NPKyhp','770147JGymUp','\x27:\x20','Failed\x20to\x20load\x20JSON:\x20','516805jtSkIB','message','273447CDEorv','utf-8','PERMISSION_DENIED','1091442LKlWRY','File\x20not\x20found:\x20','INTERNAL','473856zGgmXv','8rJWBIQ','653586vqgcHt','Permission\x20denied\x20reading\x20file:\x20','parse'];a207_0x3132=function(){return _0x5b3647;};return a207_0x3132();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x174625,_0x520726){const _0x1f10d1=a207_0x39c1;try{if(_0x520726){const _0x26b0c9=await readFile(_0x174625,_0x1f10d1(0x169));try{return JSON[_0x1f10d1(0x172)](_0x26b0c9);}catch(_0x2c5193){throw new SDKError(ErrorCode[_0x1f10d1(0x173)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x174625+_0x1f10d1(0x17a)+(_0x2c5193 instanceof Error?_0x2c5193[_0x1f10d1(0x167)]:String(_0x2c5193)));}}else try{return JSON['parse'](_0x174625);}catch(_0x1f3d81){throw new SDKError(ErrorCode[_0x1f10d1(0x173)],'Invalid\x20JSON\x20string:\x20'+(_0x1f3d81 instanceof Error?_0x1f3d81[_0x1f10d1(0x167)]:String(_0x1f3d81)));}}catch(_0x564117){if(_0x564117 instanceof SDKError)throw _0x564117;if(_0x564117 instanceof Error&&_0x1f10d1(0x174)in _0x564117){const _0x3d09b5=_0x564117;if(_0x3d09b5[_0x1f10d1(0x174)]===_0x1f10d1(0x176))throw new SDKError(ErrorCode[_0x1f10d1(0x175)],_0x1f10d1(0x16c)+_0x174625);else{if(_0x3d09b5[_0x1f10d1(0x174)]==='EACCES')throw new SDKError(ErrorCode[_0x1f10d1(0x16a)],_0x1f10d1(0x171)+_0x174625);}}throw new SDKError(ErrorCode[_0x1f10d1(0x16d)],_0x1f10d1(0x165)+(_0x564117 instanceof Error?_0x564117[_0x1f10d1(0x167)]:String(_0x564117)));}}function a207_0x39c1(_0x47bbe1,_0x3c364e){_0x47bbe1=_0x47bbe1-0x165;const _0x3132a9=a207_0x3132();let _0x39c1cb=_0x3132a9[_0x47bbe1];return _0x39c1cb;}export async function loadJSONFromOptions(_0x2fcac3,_0x48d05f){const _0x4a8e8e=a207_0x39c1;if(_0x2fcac3&&_0x48d05f)throw new SDKError(ErrorCode[_0x4a8e8e(0x173)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2fcac3)return await loadJSON(_0x2fcac3,![]);if(_0x48d05f)return await loadJSON(_0x48d05f,!![]);return undefined;}