@treasuredata/tdx 0.28.0 → 0.28.1

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 (182) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/chat-command.js +1 -1
  11. package/dist/commands/claude-command.js +1 -1
  12. package/dist/commands/claude-statusline-command.js +1 -1
  13. package/dist/commands/claude-usage-command.js +1 -1
  14. package/dist/commands/command.js +1 -1
  15. package/dist/commands/connection-command.js +1 -1
  16. package/dist/commands/databases.js +1 -1
  17. package/dist/commands/delivery-command.js +1 -1
  18. package/dist/commands/describe.js +1 -1
  19. package/dist/commands/engage-campaign-pull-command.js +1 -1
  20. package/dist/commands/engage-campaign-push-command.js +1 -1
  21. package/dist/commands/engage-campaign-validate-command.js +1 -1
  22. package/dist/commands/engage-command.js +1 -1
  23. package/dist/commands/job-command.js +1 -1
  24. package/dist/commands/journey-command.js +1 -1
  25. package/dist/commands/journey-validate-command.js +1 -1
  26. package/dist/commands/llm-command.js +1 -1
  27. package/dist/commands/mcp-command.js +1 -1
  28. package/dist/commands/parent-segment-command.js +1 -1
  29. package/dist/commands/profile-command.js +1 -1
  30. package/dist/commands/profiles-command.js +1 -1
  31. package/dist/commands/query-command.js +1 -1
  32. package/dist/commands/schedule-command.js +1 -1
  33. package/dist/commands/segment-command.js +1 -1
  34. package/dist/commands/segment-create-command.js +1 -1
  35. package/dist/commands/segment-fields-command.js +1 -1
  36. package/dist/commands/segment-pull-command.js +1 -1
  37. package/dist/commands/segment-push-command.js +1 -1
  38. package/dist/commands/segment-update-command.js +1 -1
  39. package/dist/commands/segment-use-command.js +1 -1
  40. package/dist/commands/segment-validate-command.js +1 -1
  41. package/dist/commands/segments.js +1 -1
  42. package/dist/commands/show.js +1 -1
  43. package/dist/commands/status-command.js +1 -1
  44. package/dist/commands/tables.js +1 -1
  45. package/dist/commands/unset-command.js +1 -1
  46. package/dist/commands/use-command.js +1 -1
  47. package/dist/commands/user-command.js +1 -1
  48. package/dist/commands/workflow-command.js +1 -1
  49. package/dist/core/auth.js +1 -1
  50. package/dist/core/command-output.js +1 -1
  51. package/dist/core/config.js +1 -1
  52. package/dist/core/connection-cache.js +1 -1
  53. package/dist/core/constants.js +1 -1
  54. package/dist/core/credential-cache.js +1 -1
  55. package/dist/core/global-context.js +1 -1
  56. package/dist/core/keychain.js +1 -1
  57. package/dist/core/profile.js +1 -1
  58. package/dist/core/project-config.js +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/user-cache.js +1 -1
  61. package/dist/core/version.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/mcp/server.js +1 -1
  64. package/dist/mcp/tools/index.js +1 -1
  65. package/dist/mcp/tools/tdx-run.js +1 -1
  66. package/dist/mcp/tools/tdx-search.js +1 -1
  67. package/dist/mcp/utils.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.js +1 -1
  69. package/dist/proxy/passthrough-server.js +1 -1
  70. package/dist/proxy/sse-usage-parser.js +1 -1
  71. package/dist/sdk/agent/agent-config.js +1 -1
  72. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  73. package/dist/sdk/agent/agent-yaml.js +1 -1
  74. package/dist/sdk/agent/test/evaluator.js +1 -1
  75. package/dist/sdk/agent/test/executor.js +1 -1
  76. package/dist/sdk/agent/test/index.js +1 -1
  77. package/dist/sdk/agent/test/output.js +1 -1
  78. package/dist/sdk/agent/test/parser.js +1 -1
  79. package/dist/sdk/agent/tool-target-registry.js +1 -1
  80. package/dist/sdk/api.js +1 -1
  81. package/dist/sdk/client/cdp-api-client.js +1 -1
  82. package/dist/sdk/client/delivery-api-client.js +1 -1
  83. package/dist/sdk/client/endpoints.js +1 -1
  84. package/dist/sdk/client/engage-api-client.js +1 -1
  85. package/dist/sdk/client/http-client.js +1 -1
  86. package/dist/sdk/client/llm-api-client.js +1 -1
  87. package/dist/sdk/client/rate-limiter.js +1 -1
  88. package/dist/sdk/client/td-api-client.js +1 -1
  89. package/dist/sdk/client/trino-api-client.js +1 -1
  90. package/dist/sdk/client/workflow-client.js +1 -1
  91. package/dist/sdk/connection-validator.js +1 -1
  92. package/dist/sdk/connection.js +1 -1
  93. package/dist/sdk/delivery.js +1 -1
  94. package/dist/sdk/engage/campaign-pull.js +1 -1
  95. package/dist/sdk/engage/campaign-push.js +1 -1
  96. package/dist/sdk/engage/campaign-validator.js +1 -1
  97. package/dist/sdk/engage/campaign-yaml.js +1 -1
  98. package/dist/sdk/engage/types/campaign-def.js +1 -1
  99. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  100. package/dist/sdk/engage.js +1 -1
  101. package/dist/sdk/errors.js +1 -1
  102. package/dist/sdk/index.js +1 -1
  103. package/dist/sdk/io/index.js +1 -1
  104. package/dist/sdk/io/node-filesystem.js +1 -1
  105. package/dist/sdk/job.js +1 -1
  106. package/dist/sdk/journey.js +1 -1
  107. package/dist/sdk/llm/chat-cache.js +1 -1
  108. package/dist/sdk/llm/index.js +1 -1
  109. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  110. package/dist/sdk/llm/model-factors.d.ts +6 -0
  111. package/dist/sdk/llm/model-factors.d.ts.map +1 -1
  112. package/dist/sdk/llm/model-factors.js +1 -1
  113. package/dist/sdk/llm/model-factors.js.map +1 -1
  114. package/dist/sdk/personalization.js +1 -1
  115. package/dist/sdk/query/index.js +1 -1
  116. package/dist/sdk/query/sql-parser.js +1 -1
  117. package/dist/sdk/realtime.js +1 -1
  118. package/dist/sdk/schedule.js +1 -1
  119. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  120. package/dist/sdk/segment/fields-display.js +1 -1
  121. package/dist/sdk/segment/file-discovery.js +1 -1
  122. package/dist/sdk/segment/journey-utils.js +1 -1
  123. package/dist/sdk/segment/journey-validator.js +1 -1
  124. package/dist/sdk/segment/journey-yaml.js +1 -1
  125. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  126. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  127. package/dist/sdk/segment/pull-workflow.js +1 -1
  128. package/dist/sdk/segment/push-recovery.js +1 -1
  129. package/dist/sdk/segment/push-workflow.js +1 -1
  130. package/dist/sdk/segment/resolution-context.js +1 -1
  131. package/dist/sdk/segment/segment-path-parser.js +1 -1
  132. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  133. package/dist/sdk/segment/target-resolution.js +1 -1
  134. package/dist/sdk/segment/tdx-config.js +1 -1
  135. package/dist/sdk/segment/validate-files.js +1 -1
  136. package/dist/sdk/segment/yaml-validator.js +1 -1
  137. package/dist/sdk/segment.js +1 -1
  138. package/dist/sdk/types/index.js +1 -1
  139. package/dist/sdk/types/progress.js +1 -1
  140. package/dist/sdk/user.js +1 -1
  141. package/dist/sdk/util/format-detector.js +1 -1
  142. package/dist/sdk/util/formatters.js +1 -1
  143. package/dist/sdk/util/index.js +1 -1
  144. package/dist/sdk/util/tree-formatter.js +1 -1
  145. package/dist/sdk/workflow/archive-validation.js +1 -1
  146. package/dist/sdk/workflow/clone-workflow.js +1 -1
  147. package/dist/sdk/workflow/index.js +1 -1
  148. package/dist/sdk/workflow/pull-workflow.js +1 -1
  149. package/dist/sdk/workflow/push-workflow.js +1 -1
  150. package/dist/sdk/workflow/tdx-config.js +1 -1
  151. package/dist/sdk/workflow/workflow-utils.js +1 -1
  152. package/dist/test-utils/command-runner.js +1 -1
  153. package/dist/test-utils/factories.js +1 -1
  154. package/dist/test-utils/fixtures.js +1 -1
  155. package/dist/test-utils/http-mock.js +1 -1
  156. package/dist/test-utils/index.js +1 -1
  157. package/dist/utils/async.js +1 -1
  158. package/dist/utils/colors.js +1 -1
  159. package/dist/utils/diff.js +1 -1
  160. package/dist/utils/file-permissions.js +1 -1
  161. package/dist/utils/global-cache.js +1 -1
  162. package/dist/utils/json-loader.js +1 -1
  163. package/dist/utils/local-cache.js +1 -1
  164. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  165. package/dist/utils/logger/formatters/index.js +1 -1
  166. package/dist/utils/logger/handlers/console-handler.js +1 -1
  167. package/dist/utils/logger/handlers/file-handler.js +1 -1
  168. package/dist/utils/logger/handlers/index.js +1 -1
  169. package/dist/utils/logger/handlers/null-handler.js +1 -1
  170. package/dist/utils/logger/index.js +1 -1
  171. package/dist/utils/logger/logger.js +1 -1
  172. package/dist/utils/logger/types.js +1 -1
  173. package/dist/utils/option-validation.js +1 -1
  174. package/dist/utils/process.js +1 -1
  175. package/dist/utils/prompt.js +1 -1
  176. package/dist/utils/spinner.js +1 -1
  177. package/dist/utils/sse-parser.js +1 -1
  178. package/dist/utils/string-utils.js +1 -1
  179. package/dist/utils/table-ref-parser.js +1 -1
  180. package/dist/utils/tdx-logger.js +1 -1
  181. package/dist/utils/version-check.js +1 -1
  182. package/package.json +1 -1
@@ -1 +1 @@
1
- const a163_0x27d6fc=a163_0x1867;(function(_0x6a9785,_0x44144a){const _0x433bda=a163_0x1867,_0x861b21=_0x6a9785();while(!![]){try{const _0x2aea9b=parseInt(_0x433bda(0x18f))/0x1+parseInt(_0x433bda(0x197))/0x2+parseInt(_0x433bda(0x180))/0x3*(-parseInt(_0x433bda(0x18e))/0x4)+-parseInt(_0x433bda(0x184))/0x5+-parseInt(_0x433bda(0x182))/0x6+-parseInt(_0x433bda(0x183))/0x7*(-parseInt(_0x433bda(0x18a))/0x8)+-parseInt(_0x433bda(0x185))/0x9*(-parseInt(_0x433bda(0x18c))/0xa);if(_0x2aea9b===_0x44144a)break;else _0x861b21['push'](_0x861b21['shift']());}catch(_0x1fb5fd){_0x861b21['push'](_0x861b21['shift']());}}}(a163_0x4cf6,0xab31d));function a163_0x1867(_0x596b15,_0x4dde92){_0x596b15=_0x596b15-0x180;const _0x4cf603=a163_0x4cf6();let _0x18670e=_0x4cf603[_0x596b15];return _0x18670e;}import{promises as a163_0xea20e6}from'fs';function a163_0x4cf6(){const _0x3627b5=['split','ENOENT','.digdag','utf-8','code','1145082NNVZOr','add','.digdagignore','endsWith','.dig','3820209NkIiGa','.DS_Store','4775244wJOugK','9095947HGqtel','391505JXrIDr','99zLoIJn','startsWith','readFile','join','Thumbs.db','8lTXbCE','map','723710YPgrVq','replace','4dcYIxs','180748VRAGlN','ignores','length'];a163_0x4cf6=function(){return _0x3627b5;};return a163_0x4cf6();}import a163_0x4bb05a from'path';import a163_0x565a9c from'ignore';export const WORKFLOW_FILE_EXTENSION=a163_0x27d6fc(0x19b);export function shouldIncludeInArchive(_0x228fa3){const _0x3a147e=a163_0x27d6fc;if(_0x228fa3===_0x3a147e(0x194))return!![];if(_0x228fa3[_0x3a147e(0x186)]('.'))return![];if(_0x228fa3[_0x3a147e(0x19a)]('~'))return![];if(_0x228fa3===_0x3a147e(0x189)||_0x228fa3===_0x3a147e(0x181))return![];return!![];}export function parseDigdagignore(_0x1c54d8){const _0xed87a8=a163_0x27d6fc;return _0x1c54d8[_0xed87a8(0x192)]('\x0a')[_0xed87a8(0x18b)](_0x1b1717=>_0x1b1717['trim']())['filter'](_0x3c7f70=>_0x3c7f70[_0xed87a8(0x191)]>0x0&&!_0x3c7f70[_0xed87a8(0x186)]('#'));}export async function loadDigdagignore(_0x2fd0ee){const _0x3dbdca=a163_0x27d6fc,_0x5424e2=a163_0x4bb05a[_0x3dbdca(0x188)](_0x2fd0ee,_0x3dbdca(0x199));try{const _0x5f53a6=await a163_0xea20e6[_0x3dbdca(0x187)](_0x5424e2,_0x3dbdca(0x195));return parseDigdagignore(_0x5f53a6);}catch(_0x526b98){if(_0x526b98[_0x3dbdca(0x196)]===_0x3dbdca(0x193))return null;throw _0x526b98;}}export function createIgnoreInstance(_0x2c3f71){const _0x29dc9e=a163_0x27d6fc,_0x16c37c=a163_0x565a9c();return _0x2c3f71&&_0x2c3f71[_0x29dc9e(0x191)]>0x0&&_0x16c37c[_0x29dc9e(0x198)](_0x2c3f71),_0x16c37c;}export function addScopedPatterns(_0x5cbae5,_0x3aca8f,_0x19130a){const _0x73cc22=a163_0x27d6fc,_0x2ed200=_0x3aca8f[_0x73cc22(0x18b)](_0x300435=>{const _0x235985=_0x73cc22;if(_0x300435[_0x235985(0x186)]('!')){const _0x309536=_0x300435['slice'](0x1);if(_0x309536[_0x235985(0x186)]('/'))return'!'+_0x19130a+_0x309536;return'!'+_0x19130a+'/'+_0x309536;}if(_0x300435[_0x235985(0x186)]('/'))return''+_0x19130a+_0x300435;return _0x19130a+'/'+_0x300435;});return _0x5cbae5[_0x73cc22(0x198)](_0x2ed200),_0x5cbae5;}export function shouldIgnoreWithInstance(_0x9a6c84,_0x54cfd3,_0x219ea2){const _0x45c3a2=a163_0x27d6fc,_0x43dd12=_0x54cfd3[_0x45c3a2(0x18d)](/\\/g,'/'),_0x220969=_0x219ea2?_0x43dd12+'/':_0x43dd12;return _0x9a6c84[_0x45c3a2(0x190)](_0x220969);}
1
+ const a163_0x1fde0c=a163_0x9f95;(function(_0xcaf536,_0x1c2805){const _0x117dd5=a163_0x9f95,_0x40a63d=_0xcaf536();while(!![]){try{const _0x2d2837=parseInt(_0x117dd5(0x1da))/0x1+parseInt(_0x117dd5(0x1d1))/0x2+parseInt(_0x117dd5(0x1e5))/0x3*(parseInt(_0x117dd5(0x1db))/0x4)+-parseInt(_0x117dd5(0x1dd))/0x5+parseInt(_0x117dd5(0x1d2))/0x6*(parseInt(_0x117dd5(0x1e2))/0x7)+parseInt(_0x117dd5(0x1e7))/0x8+parseInt(_0x117dd5(0x1cd))/0x9*(-parseInt(_0x117dd5(0x1d9))/0xa);if(_0x2d2837===_0x1c2805)break;else _0x40a63d['push'](_0x40a63d['shift']());}catch(_0x5be6b9){_0x40a63d['push'](_0x40a63d['shift']());}}}(a163_0x5261,0xc3b92));function a163_0x5261(){const _0x581903=['ignores','split','ENOENT','2396264sFeBhn','1578dsdIVR','readFile','endsWith','.dig','length','filter','startsWith','10vbwSnU','414429GsPvdL','677108hmXQVY','add','3825905VtetNJ','.digdag','join','map','slice','17241wbUoCy','Thumbs.db','trim','12LgBsrd','.digdagignore','8625184HRIixo','utf-8','22038507umEamU'];a163_0x5261=function(){return _0x581903;};return a163_0x5261();}import{promises as a163_0x1ce12b}from'fs';import a163_0x25ca9 from'path';import a163_0x2aa8dd from'ignore';function a163_0x9f95(_0x2c32ed,_0x57d02c){_0x2c32ed=_0x2c32ed-0x1cd;const _0x52615a=a163_0x5261();let _0x9f95b2=_0x52615a[_0x2c32ed];return _0x9f95b2;}export const WORKFLOW_FILE_EXTENSION=a163_0x1fde0c(0x1d5);export function shouldIncludeInArchive(_0x9418a6){const _0x5c7460=a163_0x1fde0c;if(_0x9418a6===_0x5c7460(0x1de))return!![];if(_0x9418a6[_0x5c7460(0x1d8)]('.'))return![];if(_0x9418a6[_0x5c7460(0x1d4)]('~'))return![];if(_0x9418a6===_0x5c7460(0x1e3)||_0x9418a6==='.DS_Store')return![];return!![];}export function parseDigdagignore(_0x14a973){const _0x36f191=a163_0x1fde0c;return _0x14a973[_0x36f191(0x1cf)]('\x0a')[_0x36f191(0x1e0)](_0x3d6435=>_0x3d6435[_0x36f191(0x1e4)]())[_0x36f191(0x1d7)](_0x21b6e0=>_0x21b6e0[_0x36f191(0x1d6)]>0x0&&!_0x21b6e0[_0x36f191(0x1d8)]('#'));}export async function loadDigdagignore(_0x11976e){const _0x12c665=a163_0x1fde0c,_0x568350=a163_0x25ca9[_0x12c665(0x1df)](_0x11976e,_0x12c665(0x1e6));try{const _0x533e5d=await a163_0x1ce12b[_0x12c665(0x1d3)](_0x568350,_0x12c665(0x1e8));return parseDigdagignore(_0x533e5d);}catch(_0x5099ed){if(_0x5099ed['code']===_0x12c665(0x1d0))return null;throw _0x5099ed;}}export function createIgnoreInstance(_0x8c2e6e){const _0x56d5d4=a163_0x1fde0c,_0x142022=a163_0x2aa8dd();return _0x8c2e6e&&_0x8c2e6e[_0x56d5d4(0x1d6)]>0x0&&_0x142022[_0x56d5d4(0x1dc)](_0x8c2e6e),_0x142022;}export function addScopedPatterns(_0x9e8121,_0x50550f,_0x999ede){const _0x118766=a163_0x1fde0c,_0x4b454e=_0x50550f[_0x118766(0x1e0)](_0x4cab73=>{const _0x10fde0=_0x118766;if(_0x4cab73['startsWith']('!')){const _0x52f7ce=_0x4cab73[_0x10fde0(0x1e1)](0x1);if(_0x52f7ce[_0x10fde0(0x1d8)]('/'))return'!'+_0x999ede+_0x52f7ce;return'!'+_0x999ede+'/'+_0x52f7ce;}if(_0x4cab73['startsWith']('/'))return''+_0x999ede+_0x4cab73;return _0x999ede+'/'+_0x4cab73;});return _0x9e8121['add'](_0x4b454e),_0x9e8121;}export function shouldIgnoreWithInstance(_0x3cbdfd,_0x3d2f79,_0x1b717b){const _0x19bfcd=a163_0x1fde0c,_0x52af67=_0x3d2f79['replace'](/\\/g,'/'),_0xf8a6a9=_0x1b717b?_0x52af67+'/':_0x52af67;return _0x3cbdfd[_0x19bfcd(0x1ce)](_0xf8a6a9);}
@@ -1 +1 @@
1
- const a164_0x589556=a164_0x15ba;(function(_0x155a2e,_0x428c58){const _0x3b9e62=a164_0x15ba,_0x90632e=_0x155a2e();while(!![]){try{const _0x3f7fff=-parseInt(_0x3b9e62(0x1ff))/0x1*(parseInt(_0x3b9e62(0x1e9))/0x2)+parseInt(_0x3b9e62(0x1fe))/0x3*(parseInt(_0x3b9e62(0x1fb))/0x4)+-parseInt(_0x3b9e62(0x1f7))/0x5*(-parseInt(_0x3b9e62(0x204))/0x6)+-parseInt(_0x3b9e62(0x1f0))/0x7+parseInt(_0x3b9e62(0x1eb))/0x8+-parseInt(_0x3b9e62(0x1f2))/0x9*(parseInt(_0x3b9e62(0x1ef))/0xa)+parseInt(_0x3b9e62(0x200))/0xb;if(_0x3f7fff===_0x428c58)break;else _0x90632e['push'](_0x90632e['shift']());}catch(_0x4f5c25){_0x90632e['push'](_0x90632e['shift']());}}}(a164_0x33fe,0x7e1b5));function a164_0x33fe(){const _0x12ea92=['78bUzrNt','http','join','teardown','158hiBnBk','args','2733936rMMuzo','runSequence','warn','reset','4480220hqQKdl','5895288JwzvXh','map','18OHAudp','verify','originalFetch','log','error','396745ljIdmw','setup','createFetch','fetch','827896eTWKLo','run','push','12mCWSWC','7133qDZbue','6788023fhhmZJ','options','test-api-key-id/test-api-key-secret','exitCode'];a164_0x33fe=function(){return _0x12ea92;};return a164_0x33fe();}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a164_0x15ba(_0x4f5df2,_0x3e0270){_0x4f5df2=_0x4f5df2-0x1e9;const _0x33fed3=a164_0x33fe();let _0x15bae5=_0x33fed3[_0x4f5df2];return _0x15bae5;}export class CommandRunner{['http'];['originalFetch'];constructor(){const _0x4d7b9d=a164_0x15ba;this[_0x4d7b9d(0x205)]=createHTTPMock(),this['originalFetch']=global[_0x4d7b9d(0x1fa)];}[a164_0x589556(0x1f8)](){const _0x58c300=a164_0x589556;this[_0x58c300(0x1f4)]=global[_0x58c300(0x1fa)],global[_0x58c300(0x1fa)]=this['http'][_0x58c300(0x1f9)]();}[a164_0x589556(0x207)](_0x3cecb9){const _0x595957=a164_0x589556;try{_0x3cecb9?.['fail']&&this['http'][_0x595957(0x1f3)](_0x3cecb9);}finally{global[_0x595957(0x1fa)]=this[_0x595957(0x1f4)],this[_0x595957(0x205)][_0x595957(0x1ee)]();}}async['run'](_0x30dbd5,_0x4264f5={}){const _0x499673=a164_0x589556,_0x8d75ec=[],_0x4b4ff3=[],_0xe2b723=console[_0x499673(0x1f5)],_0x3a1505=console[_0x499673(0x1f6)],_0x2d72f6=console['warn'];console['log']=(..._0x858ee7)=>{const _0x1ef09f=_0x499673;_0x8d75ec[_0x1ef09f(0x1fd)](_0x858ee7[_0x1ef09f(0x1f1)](String)[_0x1ef09f(0x206)]('\x20'));},console[_0x499673(0x1f6)]=(..._0x2335dd)=>{const _0x18a3d7=_0x499673;_0x4b4ff3[_0x18a3d7(0x1fd)](_0x2335dd[_0x18a3d7(0x1f1)](String)[_0x18a3d7(0x206)]('\x20'));},console['warn']=(..._0x4ecaeb)=>{const _0x4dd8db=_0x499673;_0x4b4ff3[_0x4dd8db(0x1fd)](_0x4ecaeb[_0x4dd8db(0x1f1)](String)['join']('\x20'));};try{const _0x39d20f=new TDX({'site':_0x4264f5[_0x499673(0x201)]?.['site']??'us01','apiKey':_0x499673(0x202),'logLevel':LogLevel['ERROR']}),_0x2224de={'options':createTestGlobalOptions(_0x4264f5[_0x499673(0x201)]),'args':_0x4264f5[_0x499673(0x1ea)]??[],'tdx':_0x39d20f},_0x26a0b9=new _0x30dbd5(),_0x4b73b6=await _0x26a0b9['run'](_0x2224de);return{'exitCode':_0x4b73b6,'stdout':_0x8d75ec,'stderr':_0x4b4ff3};}finally{console[_0x499673(0x1f5)]=_0xe2b723,console[_0x499673(0x1f6)]=_0x3a1505,console[_0x499673(0x1ed)]=_0x2d72f6;}}async[a164_0x589556(0x1ec)](_0x171299){const _0x5f06b5=a164_0x589556,_0x2cc322=[];for(const {command:_0x2170ac,options:_0x310e6a}of _0x171299){const _0x3bb120=await this[_0x5f06b5(0x1fc)](_0x2170ac,_0x310e6a);_0x2cc322['push'](_0x3bb120);if(_0x3bb120[_0x5f06b5(0x203)]!==0x0)break;}return _0x2cc322;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a164_0x582b12=a164_0x10ee;(function(_0x34ae36,_0x1c0f18){const _0x4f2ae6=a164_0x10ee,_0x38f727=_0x34ae36();while(!![]){try{const _0x481428=-parseInt(_0x4f2ae6(0x115))/0x1+parseInt(_0x4f2ae6(0x121))/0x2+parseInt(_0x4f2ae6(0x114))/0x3+parseInt(_0x4f2ae6(0x122))/0x4*(-parseInt(_0x4f2ae6(0x126))/0x5)+parseInt(_0x4f2ae6(0x118))/0x6+-parseInt(_0x4f2ae6(0x127))/0x7+parseInt(_0x4f2ae6(0x128))/0x8*(parseInt(_0x4f2ae6(0x11e))/0x9);if(_0x481428===_0x1c0f18)break;else _0x38f727['push'](_0x38f727['shift']());}catch(_0x415527){_0x38f727['push'](_0x38f727['shift']());}}}(a164_0x3f5a,0x7b1e4));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';function a164_0x3f5a(){const _0x26d865=['935524PNvSId','setup','fail','log','5mtTkyb','3751377oSSZqt','16cutPfT','fetch','run','options','warn','ERROR','http','verify','2659734NwuXza','296830cepPxy','exitCode','join','486204tCjPLQ','error','originalFetch','map','test-api-key-id/test-api-key-secret','push','1739277VqoMgT','args','createFetch','433592VCypjB'];a164_0x3f5a=function(){return _0x26d865;};return a164_0x3f5a();}import{createTestGlobalOptions}from'./factories.js';function a164_0x10ee(_0x348822,_0x255a8d){_0x348822=_0x348822-0x10f;const _0x3f5a47=a164_0x3f5a();let _0x10ee12=_0x3f5a47[_0x348822];return _0x10ee12;}export class CommandRunner{[a164_0x582b12(0x112)];[a164_0x582b12(0x11a)];constructor(){const _0x39091b=a164_0x582b12;this[_0x39091b(0x112)]=createHTTPMock(),this[_0x39091b(0x11a)]=global[_0x39091b(0x129)];}[a164_0x582b12(0x123)](){const _0x3e5495=a164_0x582b12;this[_0x3e5495(0x11a)]=global['fetch'],global['fetch']=this['http'][_0x3e5495(0x120)]();}['teardown'](_0x239896){const _0x4f2c9c=a164_0x582b12;try{_0x239896?.[_0x4f2c9c(0x124)]&&this[_0x4f2c9c(0x112)][_0x4f2c9c(0x113)](_0x239896);}finally{global[_0x4f2c9c(0x129)]=this[_0x4f2c9c(0x11a)],this[_0x4f2c9c(0x112)]['reset']();}}async[a164_0x582b12(0x12a)](_0x248abb,_0x14c026={}){const _0x265f26=a164_0x582b12,_0x2fed5e=[],_0x4812f8=[],_0x1fa18a=console[_0x265f26(0x125)],_0x555a14=console[_0x265f26(0x119)],_0x14e016=console[_0x265f26(0x110)];console['log']=(..._0xcc7dd5)=>{const _0x404c79=_0x265f26;_0x2fed5e['push'](_0xcc7dd5[_0x404c79(0x11b)](String)['join']('\x20'));},console[_0x265f26(0x119)]=(..._0x2077be)=>{const _0x40fe55=_0x265f26;_0x4812f8['push'](_0x2077be[_0x40fe55(0x11b)](String)['join']('\x20'));},console[_0x265f26(0x110)]=(..._0x16ca40)=>{const _0x5f5d03=_0x265f26;_0x4812f8[_0x5f5d03(0x11d)](_0x16ca40[_0x5f5d03(0x11b)](String)[_0x5f5d03(0x117)]('\x20'));};try{const _0x8307ef=new TDX({'site':_0x14c026[_0x265f26(0x10f)]?.['site']??'us01','apiKey':_0x265f26(0x11c),'logLevel':LogLevel[_0x265f26(0x111)]}),_0x146c32={'options':createTestGlobalOptions(_0x14c026[_0x265f26(0x10f)]),'args':_0x14c026[_0x265f26(0x11f)]??[],'tdx':_0x8307ef},_0x2e0bb3=new _0x248abb(),_0x3392a1=await _0x2e0bb3['run'](_0x146c32);return{'exitCode':_0x3392a1,'stdout':_0x2fed5e,'stderr':_0x4812f8};}finally{console['log']=_0x1fa18a,console['error']=_0x555a14,console['warn']=_0x14e016;}}async['runSequence'](_0x4e6b02){const _0x130215=a164_0x582b12,_0x3bf230=[];for(const {command:_0x191f84,options:_0x3f4ba8}of _0x4e6b02){const _0x2482ae=await this['run'](_0x191f84,_0x3f4ba8);_0x3bf230['push'](_0x2482ae);if(_0x2482ae[_0x130215(0x116)]!==0x0)break;}return _0x3bf230;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x37a30e,_0xd36869){const _0x45db9a=a165_0x5eb3,_0xbb34c1=_0x37a30e();while(!![]){try{const _0x3e31ec=parseInt(_0x45db9a(0x18a))/0x1+-parseInt(_0x45db9a(0x18c))/0x2+-parseInt(_0x45db9a(0x18d))/0x3*(parseInt(_0x45db9a(0x187))/0x4)+-parseInt(_0x45db9a(0x196))/0x5*(parseInt(_0x45db9a(0x18f))/0x6)+-parseInt(_0x45db9a(0x189))/0x7+parseInt(_0x45db9a(0x199))/0x8+parseInt(_0x45db9a(0x19e))/0x9*(parseInt(_0x45db9a(0x182))/0xa);if(_0x3e31ec===_0xd36869)break;else _0xbb34c1['push'](_0xbb34c1['shift']());}catch(_0x52eb89){_0xbb34c1['push'](_0xbb34c1['shift']());}}}(a165_0x50fd,0xb550c));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 a165_0x5eb3(_0x237209,_0x41208d){_0x237209=_0x237209-0x181;const _0x50fd0c=a165_0x50fd();let _0x5eb358=_0x50fd0c[_0x237209];return _0x5eb358;}export function createTestSDKContext(_0x42c3b1){const _0x37e86b=a165_0x5eb3;return{'site':_0x37e86b(0x18e),'apiKey':_0x37e86b(0x185),'logLevel':LogLevel[_0x37e86b(0x191)],..._0x42c3b1};}export function createTestGlobalOptions(_0x1aa145){const _0x38df95=a165_0x5eb3;return{'site':_0x38df95(0x18e),'format':'table','noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x38df95(0x19c),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x38df95(0x191)],..._0x1aa145};}export async function initTestLogger(){const _0x14e465=a165_0x5eb3;Logger['reset']();const _0x2e5dd7=join(getGlobalCacheDir(),_0x14e465(0x190),_0x14e465(0x198));await Logger['init']({'defaultLevel':LogLevel[_0x14e465(0x183)],'handlers':[new FileHandler({'filePath':_0x2e5dd7,'rotate':![]})]});}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x4a6965){const _0x430f43=a165_0x5eb3;return{'context':{'site':_0x430f43(0x18e),'apiKey':_0x430f43(0x197),'logLevel':LogLevel[_0x430f43(0x191)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x4a6965?.['query']},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4a6965?.[_0x430f43(0x19a)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4a6965?.[_0x430f43(0x192)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x4a6965?.[_0x430f43(0x194)]},'user':{'show':vi['fn'](),..._0x4a6965?.['user']},'api':{'request':vi['fn'](),..._0x4a6965?.[_0x430f43(0x19d)]},..._0x4a6965};}function a165_0x50fd(){const _0x477ab9=['journey','join','workflow','log','5OAKaxH','test-api-key','tdx-test.log','10029168BhVKhM','segment','error','30000','api','874593doDkMj','tdx','220NkMJUc','DEBUG','push','test-api-key-id/test-api-key-secret','map','6068Fffkfp','args','5986841rBDaRQ','1188465SQJntI','warn','2809628KTsLbc','1389oTnqIE','us01','5249334IXqGEj','logs','ERROR'];a165_0x50fd=function(){return _0x477ab9;};return a165_0x50fd();}export function createTestCommandContext(_0x3dd120){const _0x5621eb=a165_0x5eb3,_0x328794=createTestGlobalOptions(_0x3dd120?.['options']),_0x44ffd9=_0x3dd120?.[_0x5621eb(0x181)]??createMockTDX();return{'options':_0x328794,'args':_0x3dd120?.[_0x5621eb(0x188)]??[],'tdx':_0x44ffd9};}export function captureConsole(){const _0x172a97=a165_0x5eb3,_0xb3fc6b=[],_0x45c547=[],_0x2dd6=console['log'],_0x5272ff=console[_0x172a97(0x19b)],_0x49f008=console[_0x172a97(0x18b)];return console[_0x172a97(0x195)]=(..._0x23e9c1)=>{const _0x1f5e2b=_0x172a97;_0xb3fc6b[_0x1f5e2b(0x184)](_0x23e9c1['map'](String)[_0x1f5e2b(0x193)]('\x20'));},console[_0x172a97(0x19b)]=(..._0x4d67f7)=>{const _0x213cbe=_0x172a97;_0x45c547[_0x213cbe(0x184)](_0x4d67f7[_0x213cbe(0x186)](String)['join']('\x20'));},console['warn']=(..._0xac7e35)=>{const _0x2bb470=_0x172a97;_0x45c547[_0x2bb470(0x184)](_0xac7e35[_0x2bb470(0x186)](String)['join']('\x20'));},{'stdout':_0xb3fc6b,'stderr':_0x45c547,'restore':()=>{console['log']=_0x2dd6,console['error']=_0x5272ff,console['warn']=_0x49f008;}};}
1
+ (function(_0x1d2a9b,_0x51df78){const _0x5f0090=a165_0x3021,_0x1e6166=_0x1d2a9b();while(!![]){try{const _0x3fde95=-parseInt(_0x5f0090(0x13f))/0x1+parseInt(_0x5f0090(0x12c))/0x2+parseInt(_0x5f0090(0x140))/0x3*(parseInt(_0x5f0090(0x130))/0x4)+-parseInt(_0x5f0090(0x141))/0x5+-parseInt(_0x5f0090(0x131))/0x6*(-parseInt(_0x5f0090(0x135))/0x7)+-parseInt(_0x5f0090(0x125))/0x8+-parseInt(_0x5f0090(0x126))/0x9*(-parseInt(_0x5f0090(0x13a))/0xa);if(_0x3fde95===_0x51df78)break;else _0x1e6166['push'](_0x1e6166['shift']());}catch(_0x4f3c1f){_0x1e6166['push'](_0x1e6166['shift']());}}}(a165_0x48cf,0x8a4cd));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x16109f){const _0x38cb8a=a165_0x3021;return{'site':_0x38cb8a(0x12e),'apiKey':_0x38cb8a(0x12a),'logLevel':LogLevel['ERROR'],..._0x16109f};}export function createTestGlobalOptions(_0x1e2371){const _0x2af4d9=a165_0x3021;return{'site':_0x2af4d9(0x12e),'format':'table','noColor':!![],'limit':0x64,'verbose':![],'timeout':'30000','dryRun':![],'yes':![],'logLevel':LogLevel[_0x2af4d9(0x134)],..._0x1e2371};}export async function initTestLogger(){const _0x5452ef=a165_0x3021;Logger[_0x5452ef(0x13d)]();const _0x2ed0dd=join(getGlobalCacheDir(),'logs',_0x5452ef(0x136));await Logger[_0x5452ef(0x133)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x2ed0dd,'rotate':![]})]});}export function resetTestLogger(){const _0xc7c61d=a165_0x3021;Logger[_0xc7c61d(0x13d)]();}export function createMockTDX(_0x27dc0f){const _0x475558=a165_0x3021;return{'context':{'site':_0x475558(0x12e),'apiKey':_0x475558(0x138),'logLevel':LogLevel[_0x475558(0x134)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x27dc0f?.[_0x475558(0x12d)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x27dc0f?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x27dc0f?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x27dc0f?.[_0x475558(0x12b)]},'user':{'show':vi['fn'](),..._0x27dc0f?.[_0x475558(0x137)]},'api':{'request':vi['fn'](),..._0x27dc0f?.[_0x475558(0x13b)]},..._0x27dc0f};}export function createTestCommandContext(_0x51204a){const _0x58d519=a165_0x3021,_0x524340=createTestGlobalOptions(_0x51204a?.['options']),_0x281578=_0x51204a?.[_0x58d519(0x127)]??createMockTDX();return{'options':_0x524340,'args':_0x51204a?.[_0x58d519(0x139)]??[],'tdx':_0x281578};}function a165_0x3021(_0x12ce5d,_0x1fb87b){_0x12ce5d=_0x12ce5d-0x125;const _0x48cf6f=a165_0x48cf();let _0x3021ce=_0x48cf6f[_0x12ce5d];return _0x3021ce;}function a165_0x48cf(){const _0x725a1a=['8097376bCBcbf','7428393XDnsAX','tdx','log','map','test-api-key-id/test-api-key-secret','workflow','510634VRYuAO','query','us01','warn','8ZKAehf','125952iirbmn','push','init','ERROR','42meKrXg','tdx-test.log','user','test-api-key','args','10iAtMQs','api','error','reset','join','190452eOseJi','1281633CVHADy','1459835VXudlh'];a165_0x48cf=function(){return _0x725a1a;};return a165_0x48cf();}export function captureConsole(){const _0x36dd05=a165_0x3021,_0x5ebb4e=[],_0x857ea9=[],_0x30e26c=console[_0x36dd05(0x128)],_0x86b040=console[_0x36dd05(0x13c)],_0x57e534=console[_0x36dd05(0x12f)];return console[_0x36dd05(0x128)]=(..._0x2d6f6c)=>{const _0x2218ae=_0x36dd05;_0x5ebb4e[_0x2218ae(0x132)](_0x2d6f6c['map'](String)[_0x2218ae(0x13e)]('\x20'));},console[_0x36dd05(0x13c)]=(..._0x4aabe1)=>{const _0x269a35=_0x36dd05;_0x857ea9[_0x269a35(0x132)](_0x4aabe1[_0x269a35(0x129)](String)['join']('\x20'));},console[_0x36dd05(0x12f)]=(..._0x278244)=>{const _0x21f7c9=_0x36dd05;_0x857ea9['push'](_0x278244[_0x21f7c9(0x129)](String)['join']('\x20'));},{'stdout':_0x5ebb4e,'stderr':_0x857ea9,'restore':()=>{const _0x20ba79=_0x36dd05;console['log']=_0x30e26c,console[_0x20ba79(0x13c)]=_0x86b040,console[_0x20ba79(0x12f)]=_0x57e534;}};}
@@ -1 +1 @@
1
- function a166_0x338d(){const _0x2ebdaf=['TimeWithinPast','Active\x20users\x20with\x20high\x20lifetime\x20value','65524UIwcQK','America/Los_Angeles','production_db','database','step-3','Charlie','Table\x20does\x20not\x20exist:\x20nonexistent_table','running','basic','8HuldPV','cs-111222','purchases','event_type','Active\x20Users','bigint','abc123','2024-01-15T10:10:01Z','completed','228lVwgyl','695961iqVtvJ','wf-12345','Purchase\x20Reminder','email','j-def456','job','Forbidden','cs-456789','cdp_db','wf-67890','2024-01-15T10:00:05Z','Onboarding\x20journey\x20for\x20new\x20users','93xLvrPo','created_at','properties','presto','events','event_id','journey','2024-01-01T00:00:00Z','admin@example.com','2696640YZoRFj','count','log','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','def456','2024-01-15T00:00:00Z','customers','The\x20requested\x20resource\x20does\x20not\x20exist','Test\x20User','segment','customer_id','High\x20Value\x20Active\x20Users','lifetime_value','Admin\x20User','parentSegment','ps-789012','Journey\x20with\x20decision\x20point','active','varchar','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','2214737GBdjmp','data_sync','activation','user','Resource\x20not\x20found','attribute','user-2','2023-01-01T00:00:00Z','last_login','5188931vRyXer','https://api.treasuredata.com/errors/forbidden','2024-01-15T12:00:00Z','user-1','full_access','pageviews','UTC','long','users','j-abc123','timestamp','total','667HeBUTW','Parent\x20segment\x20with\x20behavioral\x20data','page_views','180lYinbv','wait','success','24910VlMJTH','error','step-2','act-email','act-123','sess-111','2024-01-15T09:05:00Z','hourly_sync','string','stringify','user-3','events_db','daily_etl','Alice','SELECT\x20*\x20FROM\x20nonexistent_table','Welcome\x20Journey','administrator','name','time','2024-01-15T09:00:00Z','30d','ps-123456'];a166_0x338d=function(){return _0x2ebdaf;};return a166_0x338d();}const a166_0xdf5d43=a166_0x156f;(function(_0x57c863,_0x16f72d){const _0x57c916=a166_0x156f,_0x4dae4b=_0x57c863();while(!![]){try{const _0x54f992=-parseInt(_0x57c916(0x138))/0x1*(parseInt(_0x57c916(0x13b))/0x2)+-parseInt(_0x57c916(0x106))/0x3*(-parseInt(_0x57c916(0xe7))/0x4)+parseInt(_0x57c916(0xcf))/0x5*(parseInt(_0x57c916(0xf9))/0x6)+-parseInt(_0x57c916(0x123))/0x7*(-parseInt(_0x57c916(0xf0))/0x8)+parseInt(_0x57c916(0xfa))/0x9+-parseInt(_0x57c916(0x10f))/0xa+-parseInt(_0x57c916(0x12c))/0xb;if(_0x54f992===_0x16f72d)break;else _0x4dae4b['push'](_0x4dae4b['shift']());}catch(_0x4e855a){_0x4dae4b['push'](_0x4dae4b['shift']());}}}(a166_0x338d,0x46a98));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a166_0xdf5d43(0x10d),'updated_at':a166_0xdf5d43(0x10d),'permission':a166_0xdf5d43(0xdf)},'withTables':{'name':a166_0xdf5d43(0xe9),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':a166_0xdf5d43(0x130)}},'table':{'basic':{'id':0x3039,'name':a166_0xdf5d43(0x134),'type':a166_0xdf5d43(0x111),'schema':JSON[a166_0xdf5d43(0xd8)]([['id',a166_0xdf5d43(0xd7)],[a166_0xdf5d43(0xe1),a166_0xdf5d43(0x133)],[a166_0xdf5d43(0xe0),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a166_0xdf5d43(0x10d)},'events':{'id':0x303a,'name':a166_0xdf5d43(0x10a),'type':'log','schema':JSON[a166_0xdf5d43(0xd8)]([[a166_0xdf5d43(0x10b),a166_0xdf5d43(0xd7)],[a166_0xdf5d43(0xe1),a166_0xdf5d43(0x133)],['user_id',a166_0xdf5d43(0xd7)],[a166_0xdf5d43(0xf3),'string'],[a166_0xdf5d43(0x108),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a166_0xdf5d43(0x12e)}},'parentSegment':{'basic':{'id':a166_0xdf5d43(0xe4),'name':'Test\x20Parent\x20Segment','description':a166_0xdf5d43(0x112),'status':a166_0xdf5d43(0x120),'master_table':{'database':a166_0xdf5d43(0x102),'table':'unified_customers'},'attributes':[{'name':a166_0xdf5d43(0x119),'type':'string','key':!![]},{'name':a166_0xdf5d43(0xfd),'type':a166_0xdf5d43(0xd7)},{'name':a166_0xdf5d43(0x107),'type':a166_0xdf5d43(0x136)}],'created_at':a166_0xdf5d43(0x10d),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a166_0xdf5d43(0x11e),'name':'Customers\x20with\x20Behaviors','description':a166_0xdf5d43(0x139),'status':a166_0xdf5d43(0x120),'master_table':{'database':'cdp_db','table':a166_0xdf5d43(0x115)},'behaviors':[{'name':a166_0xdf5d43(0xf2),'table':{'database':a166_0xdf5d43(0xda),'table':'purchases'},'join_key':'customer_id'},{'name':a166_0xdf5d43(0x13a),'table':{'database':'events_db','table':a166_0xdf5d43(0x131)},'join_key':a166_0xdf5d43(0x119)}],'created_at':a166_0xdf5d43(0x10d),'updated_at':a166_0xdf5d43(0x114)}},'segment':{'basic':{'id':a166_0xdf5d43(0x101),'name':a166_0xdf5d43(0xf4),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':'ps-123456','status':a166_0xdf5d43(0x120),'rules':[{'type':a166_0xdf5d43(0x128),'field':'last_login','operator':a166_0xdf5d43(0xe5),'value':a166_0xdf5d43(0xe3)}],'count':0x1388,'created_at':a166_0xdf5d43(0x10d),'updated_at':a166_0xdf5d43(0x114)},'withMultipleRules':{'id':a166_0xdf5d43(0xf1),'name':a166_0xdf5d43(0x11a),'description':a166_0xdf5d43(0xe6),'parent_segment_id':'ps-123456','status':a166_0xdf5d43(0x120),'rules':[{'type':a166_0xdf5d43(0x128),'field':a166_0xdf5d43(0x12b),'operator':a166_0xdf5d43(0xe5),'value':'30d'},{'type':a166_0xdf5d43(0x128),'field':a166_0xdf5d43(0x11b),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a166_0xdf5d43(0x10d),'updated_at':a166_0xdf5d43(0x114)}},'journey':{'basic':{'id':a166_0xdf5d43(0x135),'name':a166_0xdf5d43(0xde),'description':a166_0xdf5d43(0x105),'status':'draft','version':0x1,'steps':[{'id':'step-1','type':a166_0xdf5d43(0x13c),'duration':'1d'},{'id':'step-2','type':'activation','activation_id':a166_0xdf5d43(0xd3)}],'created_at':a166_0xdf5d43(0x10d),'updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':a166_0xdf5d43(0xfe),'name':a166_0xdf5d43(0xfc),'description':a166_0xdf5d43(0x11f),'status':'active','version':0x2,'steps':[{'id':'step-1','type':'decision_point','segment_id':a166_0xdf5d43(0x101),'yes_path':a166_0xdf5d43(0xd1),'no_path':a166_0xdf5d43(0xeb)},{'id':a166_0xdf5d43(0xd1),'type':a166_0xdf5d43(0x125),'activation_id':a166_0xdf5d43(0xd2)},{'id':a166_0xdf5d43(0xeb),'type':'end'}],'created_at':a166_0xdf5d43(0x10d),'updated_at':a166_0xdf5d43(0x114)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a166_0xdf5d43(0xe0),'type':a166_0xdf5d43(0x121)},{'name':a166_0xdf5d43(0x110),'type':a166_0xdf5d43(0xf5)}],'data':[[a166_0xdf5d43(0x12f),a166_0xdf5d43(0xdc),0x64],[a166_0xdf5d43(0x129),'Bob',0xc8],[a166_0xdf5d43(0xd9),a166_0xdf5d43(0xec),0x96]]},'empty':{'schema':[{'name':'id','type':a166_0xdf5d43(0x121)},{'name':a166_0xdf5d43(0xe0),'type':a166_0xdf5d43(0x121)}],'data':[]},'singleRow':{'schema':[{'name':a166_0xdf5d43(0x137),'type':a166_0xdf5d43(0xf5)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a166_0xdf5d43(0x117),'email':'test@example.com','created_at':a166_0xdf5d43(0x10d),'updated_at':a166_0xdf5d43(0x114),'administrator':![]},'admin':{'id':0x1,'name':a166_0xdf5d43(0x11c),'email':a166_0xdf5d43(0x10e),'created_at':a166_0xdf5d43(0x12a),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a166_0xdf5d43(0x109),'database':'test_db','status':'success','query':a166_0xdf5d43(0x122),'start_at':'2024-01-15T10:00:00Z','end_at':a166_0xdf5d43(0x104),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a166_0xdf5d43(0x109),'database':'test_db','status':a166_0xdf5d43(0xee),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a166_0xdf5d43(0x109),'database':'test_db','status':a166_0xdf5d43(0xd0),'query':a166_0xdf5d43(0xdd),'start_at':'2024-01-15T10:10:00Z','end_at':a166_0xdf5d43(0xf7),'duration':0x1,'result_size':null,'error':a166_0xdf5d43(0xed)}},'workflow':{'basic':{'id':a166_0xdf5d43(0xfb),'name':a166_0xdf5d43(0xdb),'project':'data_pipeline','revision':a166_0xdf5d43(0xf6),'timezone':a166_0xdf5d43(0x132),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a166_0xdf5d43(0x103),'name':a166_0xdf5d43(0xd6),'project':a166_0xdf5d43(0x124),'revision':a166_0xdf5d43(0x113),'timezone':a166_0xdf5d43(0xe8),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a166_0xdf5d43(0xd4),'status':a166_0xdf5d43(0xce),'started_at':a166_0xdf5d43(0xe2),'finished_at':a166_0xdf5d43(0xd5)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':'Invalid\x20API\x20key','severity':a166_0xdf5d43(0xd0),'status_code':0x191}},'notFound':{'errors':{'error':a166_0xdf5d43(0x127),'message':a166_0xdf5d43(0x116),'severity':'error','status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a166_0xdf5d43(0x12d),'title':a166_0xdf5d43(0x100),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':'/v3/database/list'}}};export function createDatabase(_0x13051f){const _0x22e45d=a166_0xdf5d43;return{...fixtures[_0x22e45d(0xea)][_0x22e45d(0xef)],..._0x13051f};}function a166_0x156f(_0x714716,_0x4b6eeb){_0x714716=_0x714716-0xce;const _0x338d02=a166_0x338d();let _0x156fbc=_0x338d02[_0x714716];return _0x156fbc;}export function createTable(_0x3cf38f){return{...fixtures['table']['basic'],..._0x3cf38f};}export function createParentSegment(_0x5ae973){const _0x5c43d0=a166_0xdf5d43;return{...fixtures[_0x5c43d0(0x11d)][_0x5c43d0(0xef)],..._0x5ae973};}export function createSegment(_0xd2c895){const _0x276422=a166_0xdf5d43;return{...fixtures[_0x276422(0x118)][_0x276422(0xef)],..._0xd2c895};}export function createJourney(_0x4a731c){const _0x2a9f2e=a166_0xdf5d43;return{...fixtures[_0x2a9f2e(0x10c)][_0x2a9f2e(0xef)],..._0x4a731c};}export function createQueryResult(_0x1b04f5){const _0x1e7692=a166_0xdf5d43;return{...fixtures['queryResult'][_0x1e7692(0xef)],..._0x1b04f5};}export function createUser(_0x264b0a){const _0xe3e3c6=a166_0xdf5d43;return{...fixtures[_0xe3e3c6(0x126)][_0xe3e3c6(0xef)],..._0x264b0a};}export function createJob(_0x36de45){const _0x17a48b=a166_0xdf5d43;return{...fixtures[_0x17a48b(0xff)][_0x17a48b(0xf8)],..._0x36de45};}export function createWorkflow(_0x262e3c){const _0x3aa54e=a166_0xdf5d43;return{...fixtures['workflow'][_0x3aa54e(0xef)],..._0x262e3c};}
1
+ const a166_0x2f1d79=a166_0x522f;(function(_0x27bb39,_0x4e7bbe){const _0x1aba6a=a166_0x522f,_0x5c4b35=_0x27bb39();while(!![]){try{const _0xd762a4=-parseInt(_0x1aba6a(0x175))/0x1*(-parseInt(_0x1aba6a(0x192))/0x2)+parseInt(_0x1aba6a(0x1c7))/0x3*(-parseInt(_0x1aba6a(0x1a2))/0x4)+-parseInt(_0x1aba6a(0x187))/0x5+-parseInt(_0x1aba6a(0x1a6))/0x6+-parseInt(_0x1aba6a(0x173))/0x7*(parseInt(_0x1aba6a(0x18d))/0x8)+parseInt(_0x1aba6a(0x17c))/0x9*(-parseInt(_0x1aba6a(0x19b))/0xa)+parseInt(_0x1aba6a(0x1bc))/0xb*(parseInt(_0x1aba6a(0x1be))/0xc);if(_0xd762a4===_0x4e7bbe)break;else _0x5c4b35['push'](_0x5c4b35['shift']());}catch(_0x4349a3){_0x5c4b35['push'](_0x5c4b35['shift']());}}}(a166_0x3890,0x89d24));export const fixtures={'database':{'basic':{'name':a166_0x2f1d79(0x1a1),'count':0x5,'created_at':a166_0x2f1d79(0x1c5),'updated_at':a166_0x2f1d79(0x1c5),'permission':a166_0x2f1d79(0x179)},'withTables':{'name':'production_db','count':0x64,'created_at':a166_0x2f1d79(0x178),'updated_at':a166_0x2f1d79(0x1b3),'permission':a166_0x2f1d79(0x18c)}},'table':{'basic':{'id':0x3039,'name':'users','type':a166_0x2f1d79(0x1a4),'schema':JSON['stringify']([['id',a166_0x2f1d79(0x17f)],[a166_0x2f1d79(0x1c0),a166_0x2f1d79(0x188)],[a166_0x2f1d79(0x1a8),a166_0x2f1d79(0x17f)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a166_0x2f1d79(0x1c5),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':'events','type':'log','schema':JSON[a166_0x2f1d79(0x1c1)]([[a166_0x2f1d79(0x1ab),'string'],[a166_0x2f1d79(0x1c0),'long'],[a166_0x2f1d79(0x1cd),a166_0x2f1d79(0x17f)],['event_type','string'],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a166_0x2f1d79(0x1c5),'updated_at':a166_0x2f1d79(0x1cf)}},'parentSegment':{'basic':{'id':'ps-123456','name':a166_0x2f1d79(0x1b0),'description':a166_0x2f1d79(0x1d3),'status':'active','master_table':{'database':a166_0x2f1d79(0x1bb),'table':'unified_customers'},'attributes':[{'name':'customer_id','type':a166_0x2f1d79(0x17f),'key':!![]},{'name':a166_0x2f1d79(0x1b5),'type':a166_0x2f1d79(0x17f)},{'name':a166_0x2f1d79(0x1a0),'type':a166_0x2f1d79(0x172)}],'created_at':a166_0x2f1d79(0x1c5),'updated_at':a166_0x2f1d79(0x1c2)},'withBehaviors':{'id':a166_0x2f1d79(0x1ad),'name':a166_0x2f1d79(0x1af),'description':a166_0x2f1d79(0x1a9),'status':a166_0x2f1d79(0x18b),'master_table':{'database':a166_0x2f1d79(0x1bb),'table':a166_0x2f1d79(0x1a3)},'behaviors':[{'name':a166_0x2f1d79(0x1dd),'table':{'database':a166_0x2f1d79(0x189),'table':'purchases'},'join_key':a166_0x2f1d79(0x1a5)},{'name':a166_0x2f1d79(0x17e),'table':{'database':a166_0x2f1d79(0x189),'table':a166_0x2f1d79(0x1b2)},'join_key':a166_0x2f1d79(0x1a5)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a166_0x2f1d79(0x19d),'name':a166_0x2f1d79(0x1b1),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':'ps-123456','status':a166_0x2f1d79(0x18b),'rules':[{'type':a166_0x2f1d79(0x1cc),'field':a166_0x2f1d79(0x17a),'operator':a166_0x2f1d79(0x1ca),'value':a166_0x2f1d79(0x1db)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':a166_0x2f1d79(0x1c2)},'withMultipleRules':{'id':'cs-111222','name':a166_0x2f1d79(0x19c),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a166_0x2f1d79(0x1c9),'status':a166_0x2f1d79(0x18b),'rules':[{'type':a166_0x2f1d79(0x1cc),'field':a166_0x2f1d79(0x17a),'operator':a166_0x2f1d79(0x1ca),'value':'30d'},{'type':a166_0x2f1d79(0x1cc),'field':a166_0x2f1d79(0x191),'operator':a166_0x2f1d79(0x1b4),'value':0x3e8}],'count':0x5dc,'created_at':a166_0x2f1d79(0x1c5),'updated_at':a166_0x2f1d79(0x1c2)}},'journey':{'basic':{'id':'j-abc123','name':'Welcome\x20Journey','description':'Onboarding\x20journey\x20for\x20new\x20users','status':a166_0x2f1d79(0x174),'version':0x1,'steps':[{'id':a166_0x2f1d79(0x1cb),'type':a166_0x2f1d79(0x17b),'duration':'1d'},{'id':a166_0x2f1d79(0x1bd),'type':a166_0x2f1d79(0x1c3),'activation_id':a166_0x2f1d79(0x177)}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':'j-def456','name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':a166_0x2f1d79(0x18b),'version':0x2,'steps':[{'id':a166_0x2f1d79(0x1cb),'type':a166_0x2f1d79(0x176),'segment_id':a166_0x2f1d79(0x19d),'yes_path':a166_0x2f1d79(0x1bd),'no_path':a166_0x2f1d79(0x196)},{'id':a166_0x2f1d79(0x1bd),'type':a166_0x2f1d79(0x1c3),'activation_id':a166_0x2f1d79(0x183)},{'id':a166_0x2f1d79(0x196),'type':'end'}],'created_at':'2024-01-01T00:00:00Z','updated_at':a166_0x2f1d79(0x1c2)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a166_0x2f1d79(0x1d9)},{'name':a166_0x2f1d79(0x1a8),'type':'varchar'},{'name':a166_0x2f1d79(0x1ac),'type':a166_0x2f1d79(0x185)}],'data':[[a166_0x2f1d79(0x1d4),a166_0x2f1d79(0x1a7),0x64],['user-2',a166_0x2f1d79(0x19e),0xc8],['user-3',a166_0x2f1d79(0x184),0x96]]},'empty':{'schema':[{'name':'id','type':a166_0x2f1d79(0x1d9)},{'name':a166_0x2f1d79(0x1a8),'type':a166_0x2f1d79(0x1d9)}],'data':[]},'singleRow':{'schema':[{'name':a166_0x2f1d79(0x197),'type':a166_0x2f1d79(0x185)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a166_0x2f1d79(0x1d8),'created_at':'2024-01-01T00:00:00Z','updated_at':a166_0x2f1d79(0x1c2),'administrator':![]},'admin':{'id':0x1,'name':a166_0x2f1d79(0x180),'email':a166_0x2f1d79(0x1d0),'created_at':a166_0x2f1d79(0x1d7),'updated_at':a166_0x2f1d79(0x1c2),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a166_0x2f1d79(0x198),'database':'test_db','status':'success','query':a166_0x2f1d79(0x1d5),'start_at':a166_0x2f1d79(0x1d2),'end_at':a166_0x2f1d79(0x1d1),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a166_0x2f1d79(0x198),'database':a166_0x2f1d79(0x1a1),'status':a166_0x2f1d79(0x1b7),'query':a166_0x2f1d79(0x195),'start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a166_0x2f1d79(0x198),'database':a166_0x2f1d79(0x1a1),'status':a166_0x2f1d79(0x171),'query':a166_0x2f1d79(0x1b9),'start_at':a166_0x2f1d79(0x1ce),'end_at':a166_0x2f1d79(0x1ba),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a166_0x2f1d79(0x186),'name':'daily_etl','project':'data_pipeline','revision':a166_0x2f1d79(0x1c8),'timezone':a166_0x2f1d79(0x1dc),'schedule':{'cron':a166_0x2f1d79(0x1bf)}},'withSessions':{'id':'wf-67890','name':a166_0x2f1d79(0x1da),'project':a166_0x2f1d79(0x1b6),'revision':'def456','timezone':'America/Los_Angeles','schedule':{'cron':a166_0x2f1d79(0x19f)},'last_session':{'id':'sess-111','status':a166_0x2f1d79(0x18e),'started_at':a166_0x2f1d79(0x18a),'finished_at':a166_0x2f1d79(0x193)}}},'apiError':{'unauthorized':{'errors':{'error':a166_0x2f1d79(0x181),'message':'Invalid\x20API\x20key','severity':a166_0x2f1d79(0x171),'status_code':0x191}},'notFound':{'errors':{'error':a166_0x2f1d79(0x170),'message':a166_0x2f1d79(0x17d),'severity':'error','status_code':0x194}},'rateLimited':{'detail':a166_0x2f1d79(0x199)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a166_0x2f1d79(0x1d6),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a166_0x2f1d79(0x1b8)}}};export function createDatabase(_0x167f7c){const _0x56290c=a166_0x2f1d79;return{...fixtures[_0x56290c(0x194)]['basic'],..._0x167f7c};}export function createTable(_0x327de5){return{...fixtures['table']['basic'],..._0x327de5};}export function createParentSegment(_0x203d61){const _0x594bc2=a166_0x2f1d79;return{...fixtures[_0x594bc2(0x19a)][_0x594bc2(0x1ae)],..._0x203d61};}export function createSegment(_0x2afb7b){const _0x612009=a166_0x2f1d79;return{...fixtures[_0x612009(0x18f)]['basic'],..._0x2afb7b};}function a166_0x3890(){const _0x4284d4=['act-123','2023-06-15T10:30:00Z','administrator','last_login','wait','541881CEwLID','The\x20requested\x20resource\x20does\x20not\x20exist','page_views','string','Admin\x20User','Invalid\x20API\x20key','queryResult','act-email','Charlie','bigint','wf-12345','1424515dUjXPg','long','events_db','2024-01-15T09:00:00Z','active','full_access','84824rzmAea','success','segment','job','lifetime_value','565738PoOJzI','2024-01-15T09:05:00Z','database','SELECT\x20COUNT(*)\x20FROM\x20events','step-3','total','presto','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','parentSegment','30QGoqUc','High\x20Value\x20Active\x20Users','cs-456789','Bob','0\x20*\x20*\x20*\x20*','created_at','test_db','7460SVPqjC','customers','log','customer_id','4203996lIVToa','Alice','name','Parent\x20segment\x20with\x20behavioral\x20data','workflow','event_id','count','ps-789012','basic','Customers\x20with\x20Behaviors','Test\x20Parent\x20Segment','Active\x20Users','pageviews','2024-01-15T08:00:00Z','Greater','email','data_sync','running','/v3/database/list','SELECT\x20*\x20FROM\x20nonexistent_table','2024-01-15T10:10:01Z','cdp_db','1221CnEOzt','step-2','270108QcYesz','0\x200\x20*\x20*\x20*','time','stringify','2024-01-15T00:00:00Z','activation','journey','2024-01-01T00:00:00Z','completed','1059NGaHNm','abc123','ps-123456','TimeWithinPast','step-1','attribute','user_id','2024-01-15T10:10:00Z','2024-01-15T12:00:00Z','admin@example.com','2024-01-15T10:00:05Z','2024-01-15T10:00:00Z','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','user-1','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','Forbidden','2023-01-01T00:00:00Z','test@example.com','varchar','hourly_sync','30d','UTC','purchases','Resource\x20not\x20found','error','timestamp','259owYSmN','draft','1gtvIwe','decision_point'];a166_0x3890=function(){return _0x4284d4;};return a166_0x3890();}export function createJourney(_0x3e3bb0){const _0x30d6d5=a166_0x2f1d79;return{...fixtures[_0x30d6d5(0x1c4)]['basic'],..._0x3e3bb0};}export function createQueryResult(_0x1cbaf0){const _0x148a72=a166_0x2f1d79;return{...fixtures[_0x148a72(0x182)]['basic'],..._0x1cbaf0};}export function createUser(_0x1819e5){const _0x599363=a166_0x2f1d79;return{...fixtures['user'][_0x599363(0x1ae)],..._0x1819e5};}export function createJob(_0x199919){const _0x1e78b7=a166_0x2f1d79;return{...fixtures[_0x1e78b7(0x190)][_0x1e78b7(0x1c6)],..._0x199919};}function a166_0x522f(_0x379dda,_0x201421){_0x379dda=_0x379dda-0x170;const _0x3890d7=a166_0x3890();let _0x522ff9=_0x3890d7[_0x379dda];return _0x522ff9;}export function createWorkflow(_0x3bd225){const _0x4dc390=a166_0x2f1d79;return{...fixtures[_0x4dc390(0x1aa)]['basic'],..._0x3bd225};}
@@ -1 +1 @@
1
- const a167_0x4f79c9=a167_0x46ea;function a167_0x46ea(_0x1ecdc1,_0x4e5203){_0x1ecdc1=_0x1ecdc1-0xe1;const _0x31eecd=a167_0x31ee();let _0x46ea3d=_0x31eecd[_0x1ecdc1];return _0x46ea3d;}(function(_0x456026,_0x5d579f){const _0x29e93f=a167_0x46ea,_0x19df85=_0x456026();while(!![]){try{const _0x5a171e=-parseInt(_0x29e93f(0x11e))/0x1+parseInt(_0x29e93f(0x122))/0x2*(-parseInt(_0x29e93f(0x105))/0x3)+-parseInt(_0x29e93f(0xf2))/0x4+-parseInt(_0x29e93f(0x115))/0x5+-parseInt(_0x29e93f(0x108))/0x6+parseInt(_0x29e93f(0x103))/0x7*(parseInt(_0x29e93f(0x11c))/0x8)+parseInt(_0x29e93f(0xec))/0x9;if(_0x5a171e===_0x5d579f)break;else _0x19df85['push'](_0x19df85['shift']());}catch(_0x25f81d){_0x19df85['push'](_0x19df85['shift']());}}}(a167_0x31ee,0x9fdbf));function a167_0x31ee(){const _0x4b45aa=['No\x20Content','forEach','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Unknown','withQuery','402095LFDYeG','map','getStatusText','string','split','Unmatched\x20stub','https://api.treasuredata.com/errors/','1122424ZvKQkj','fail','60598KXHfKT','method','stubs','toUpperCase','1866fECtjr','Unprocessable\x20Entity','function','register','stringify','withBody','jsonResponse','pathname','matcher','Unauthorized','errorResponse','Not\x20Found','test','REST','\x20\x20(none)','getRequests','rfc9457','some','Bad\x20Request','reset','withHost','textResponse','networkError','stack','25837020WrWzyK','Created','wasCalled','toLowerCase','join','text/plain','3846916TPuOvA','description','td-api','requests','No\x20stub\x20matched\x20request:\x20','includes','Too\x20Many\x20Requests','simple','application/json','headers','filter','Registered\x20stubs:\x0a','searchParams','Bad\x20Gateway','matched','GET','parseRequest','7VDgrWv','entries','729cgNHJt','url','push','6161010GlfjgK','body','parse','length','Internal\x20Server\x20Error','Service\x20Unavailable','registerWithInspector','fetchMock'];a167_0x31ee=function(){return _0x4b45aa;};return a167_0x31ee();}import{vi}from'vitest';export class HTTPMockRegistry{[a167_0x4f79c9(0x120)]=[];[a167_0x4f79c9(0xf5)]=[];[a167_0x4f79c9(0x10f)]=null;[a167_0x4f79c9(0xe1)](_0x4ca1e3,_0x23af8c){return _0x56b900=>{const _0x5643d4=a167_0x46ea;if(_0x56b900[_0x5643d4(0x11f)][_0x5643d4(0x121)]()!==_0x4ca1e3['toUpperCase']())return![];const _0x83aa1b=new URL(_0x56b900[_0x5643d4(0x106)]);if(typeof _0x23af8c===_0x5643d4(0x118))return _0x83aa1b['pathname']===_0x23af8c||_0x83aa1b[_0x5643d4(0x129)]['includes'](_0x23af8c);return _0x23af8c[_0x5643d4(0x12e)](_0x83aa1b[_0x5643d4(0x129)]);};}[a167_0x4f79c9(0x114)](_0x2d0c58,_0x737fcb){return _0x1a1ec3=>{const _0x5b1078=a167_0x46ea;if(!_0x2d0c58(_0x1a1ec3))return![];const _0x43e7fb=new URL(_0x1a1ec3['url']);return Object[_0x5b1078(0x104)](_0x737fcb)['every'](([_0x501524,_0x2bee0e])=>_0x43e7fb[_0x5b1078(0xfe)]['get'](_0x501524)===_0x2bee0e);};}[a167_0x4f79c9(0x127)](_0x3cf580,_0x5ccf4d){return _0x37f333=>{const _0x546c27=a167_0x46ea;if(!_0x3cf580(_0x37f333))return![];if(typeof _0x5ccf4d===_0x546c27(0x124))return _0x5ccf4d(_0x37f333[_0x546c27(0x109)]);return JSON[_0x546c27(0x126)](_0x37f333['body'])===JSON[_0x546c27(0x126)](_0x5ccf4d);};}[a167_0x4f79c9(0xe8)](_0x763a8c,_0x23aa82){return _0x2e79b8=>{const _0xba7860=a167_0x46ea;if(!_0x763a8c(_0x2e79b8))return![];const _0xabe06=new URL(_0x2e79b8[_0xba7860(0x106)]);return _0xabe06['host']===_0x23aa82;};}['register'](_0x4225a9,_0x8fa8e4,_0x245adf){const _0x4ea6c3=a167_0x4f79c9;this['stubs'][_0x4ea6c3(0x107)]({'matcher':_0x4225a9,'responder':_0x8fa8e4,'matched':![],'matchCount':0x0,'stack':new Error()[_0x4ea6c3(0xeb)]??'','description':_0x245adf?.[_0x4ea6c3(0xf3)]});}[a167_0x4f79c9(0x10e)](_0x334979,_0x3c470c,_0x5d3431){const _0x1d6366=a167_0x4f79c9,_0x23085d=_0x52571e=>{const _0x1f56de=a167_0x46ea;return _0x5d3431(_0x52571e[_0x1f56de(0x109)],_0x52571e),_0x3c470c(_0x52571e);};this[_0x1d6366(0x125)](_0x334979,_0x23085d);}static[a167_0x4f79c9(0x128)](_0x1fce20,_0x941d47=0xc8){const _0x4c94f3=a167_0x4f79c9;return()=>new Response(JSON[_0x4c94f3(0x126)](_0x1fce20),{'status':_0x941d47,'headers':{'Content-Type':_0x4c94f3(0xfa)}});}static[a167_0x4f79c9(0x12c)](_0x242728,_0x245eb4,_0x470b8c=a167_0x4f79c9(0xf9)){return()=>{const _0x45592e=a167_0x46ea;let _0xa020d6;switch(_0x470b8c){case _0x45592e(0xf4):_0xa020d6={'errors':{'error':_0x245eb4,'message':_0x245eb4,'severity':'error','status_code':_0x242728}};break;case _0x45592e(0xe4):_0xa020d6={'type':_0x45592e(0x11b)+_0x242728,'title':HTTPMockRegistry[_0x45592e(0x117)](_0x242728),'status':_0x242728,'detail':_0x245eb4};break;default:_0xa020d6={'error':_0x245eb4};}return new Response(JSON[_0x45592e(0x126)](_0xa020d6),{'status':_0x242728,'headers':{'Content-Type':_0x45592e(0xfa)}});};}static['jsonResponseWithHeaders'](_0xbc441f,_0x2c381f,_0x2cce7c=0xc8){const _0x10d318=a167_0x4f79c9;return()=>new Response(JSON[_0x10d318(0x126)](_0xbc441f),{'status':_0x2cce7c,'headers':{'Content-Type':_0x10d318(0xfa),..._0x2c381f}});}static[a167_0x4f79c9(0xe9)](_0x27e214,_0x16920e=0xc8){const _0x327827=a167_0x4f79c9;return()=>new Response(_0x27e214,{'status':_0x16920e,'headers':{'Content-Type':_0x327827(0xf1)}});}static[a167_0x4f79c9(0xea)](_0x4b0450){return()=>{throw new Error(_0x4b0450);};}['createFetch'](){const _0xf02ed7=a167_0x4f79c9;return this['fetchMock']=vi['fn']()['mockImplementation'](async(_0x2b36a7,_0x5981ef)=>{const _0x42a727=a167_0x46ea,_0x4f561b=this[_0x42a727(0x102)](_0x2b36a7,_0x5981ef);this[_0x42a727(0xf5)][_0x42a727(0x107)](_0x4f561b);for(const _0x3a4eb2 of this[_0x42a727(0x120)]){if(_0x3a4eb2[_0x42a727(0x12a)](_0x4f561b))return _0x3a4eb2[_0x42a727(0x100)]=!![],_0x3a4eb2['matchCount']++,_0x3a4eb2['responder'](_0x4f561b);}const _0x575038=this[_0x42a727(0x120)][_0x42a727(0x116)]((_0x168139,_0x3ff686)=>'\x20\x20'+(_0x3ff686+0x1)+'.\x20'+(_0x168139[_0x42a727(0xf3)]??'unnamed\x20stub'))[_0x42a727(0xf0)]('\x0a');throw new Error(_0x42a727(0xf6)+_0x4f561b[_0x42a727(0x11f)]+'\x20'+_0x4f561b[_0x42a727(0x106)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x42a727(0x126)](_0x4f561b[_0x42a727(0x109)])+'\x0a')+(_0x42a727(0xfd)+(_0x575038||_0x42a727(0xe2))));}),this[_0xf02ed7(0x10f)];}[a167_0x4f79c9(0x102)](_0x22b5b7,_0x82580e){const _0x3c0740=a167_0x4f79c9,_0x479e8e={};if(_0x82580e?.['headers']){if(_0x82580e[_0x3c0740(0xfb)]instanceof Headers)_0x82580e[_0x3c0740(0xfb)][_0x3c0740(0x111)]((_0x44d4f1,_0x182060)=>{_0x479e8e[_0x182060['toLowerCase']()]=_0x44d4f1;});else{if(Array['isArray'](_0x82580e[_0x3c0740(0xfb)]))for(const [_0x209cd8,_0x5ec2af]of _0x82580e[_0x3c0740(0xfb)]){_0x479e8e[_0x209cd8[_0x3c0740(0xef)]()]=_0x5ec2af;}else for(const [_0x5a98d9,_0x227a2f]of Object['entries'](_0x82580e[_0x3c0740(0xfb)])){_0x227a2f!==undefined&&(_0x479e8e[_0x5a98d9[_0x3c0740(0xef)]()]=_0x227a2f);}}}let _0x51d86c;if(_0x82580e?.[_0x3c0740(0x109)])try{_0x51d86c=JSON[_0x3c0740(0x10a)](_0x82580e[_0x3c0740(0x109)]);}catch{_0x51d86c=_0x82580e[_0x3c0740(0x109)];}return{'method':_0x82580e?.[_0x3c0740(0x11f)]??_0x3c0740(0x101),'url':_0x22b5b7,'headers':_0x479e8e,'body':_0x51d86c};}['verify'](_0x5891bc){const _0xdf4d29=a167_0x4f79c9,_0x2097d5=this[_0xdf4d29(0x120)][_0xdf4d29(0xfc)](_0x4c0df4=>!_0x4c0df4[_0xdf4d29(0x100)]);if(_0x2097d5[_0xdf4d29(0x10b)]>0x0){const _0xd0e280=_0x2097d5[_0xdf4d29(0x116)](_0x2024a8=>{const _0x5b826b=_0xdf4d29,_0x137b23=_0x2024a8[_0x5b826b(0xf3)]?'\x20('+_0x2024a8['description']+')':'',_0x1cd2ab=_0x2024a8[_0x5b826b(0xeb)][_0x5b826b(0x119)]('\x0a')['slice'](0x2,0x5)[_0x5b826b(0xf0)]('\x0a');return _0x5b826b(0x11a)+_0x137b23+'\x20registered\x20at:\x0a'+_0x1cd2ab;});_0x5891bc[_0xdf4d29(0x11d)](_0x2097d5[_0xdf4d29(0x10b)]+_0xdf4d29(0x112)+_0xd0e280[_0xdf4d29(0xf0)]('\x0a\x0a'));}}[a167_0x4f79c9(0xe3)](){const _0x5e1176=a167_0x4f79c9;return[...this[_0x5e1176(0xf5)]];}['getLastRequest'](){const _0x5effb5=a167_0x4f79c9;return this[_0x5effb5(0xf5)][this[_0x5effb5(0xf5)][_0x5effb5(0x10b)]-0x1];}[a167_0x4f79c9(0xee)](_0x50a518,_0x1685e9){const _0x4a47d9=a167_0x4f79c9;return this[_0x4a47d9(0xf5)][_0x4a47d9(0xe5)](_0x128239=>{const _0x32f632=_0x4a47d9;if(_0x128239[_0x32f632(0x11f)][_0x32f632(0x121)]()!==_0x50a518[_0x32f632(0x121)]())return![];if(typeof _0x1685e9===_0x32f632(0x118))return _0x128239['url'][_0x32f632(0xf7)](_0x1685e9);return _0x1685e9['test'](_0x128239[_0x32f632(0x106)]);});}['getMatchCount'](_0x1335e6){const _0x599dca=a167_0x4f79c9;return this[_0x599dca(0x120)][_0x1335e6]?.['matchCount']??0x0;}[a167_0x4f79c9(0xe7)](){const _0x3561af=a167_0x4f79c9;this['stubs']=[],this[_0x3561af(0xf5)]=[],this[_0x3561af(0x10f)]=null;}static[a167_0x4f79c9(0x117)](_0x4a30c2){const _0x18e0ea=a167_0x4f79c9,_0x30d827={0xc8:'OK',0xc9:_0x18e0ea(0xed),0xcc:_0x18e0ea(0x110),0x190:_0x18e0ea(0xe6),0x191:_0x18e0ea(0x12b),0x193:'Forbidden',0x194:_0x18e0ea(0x12d),0x199:'Conflict',0x1a6:_0x18e0ea(0x123),0x1ad:_0x18e0ea(0xf8),0x1f4:_0x18e0ea(0x10c),0x1f6:_0x18e0ea(0xff),0x1f7:_0x18e0ea(0x10d)};return _0x30d827[_0x4a30c2]??_0x18e0ea(0x113);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a167_0x5d4d5d=a167_0xd950;(function(_0x58e224,_0x1f7702){const _0x4f1e17=a167_0xd950,_0x42bf08=_0x58e224();while(!![]){try{const _0x597dfd=-parseInt(_0x4f1e17(0xb9))/0x1+-parseInt(_0x4f1e17(0xc0))/0x2*(-parseInt(_0x4f1e17(0xd3))/0x3)+-parseInt(_0x4f1e17(0xc3))/0x4*(-parseInt(_0x4f1e17(0xb4))/0x5)+-parseInt(_0x4f1e17(0xe3))/0x6*(-parseInt(_0x4f1e17(0xb2))/0x7)+parseInt(_0x4f1e17(0xea))/0x8+parseInt(_0x4f1e17(0xac))/0x9+-parseInt(_0x4f1e17(0xb7))/0xa;if(_0x597dfd===_0x1f7702)break;else _0x42bf08['push'](_0x42bf08['shift']());}catch(_0x223a89){_0x42bf08['push'](_0x42bf08['shift']());}}}(a167_0x163b,0x598a7));import{vi}from'vitest';export class HTTPMockRegistry{[a167_0x5d4d5d(0xd1)]=[];[a167_0x5d4d5d(0xfb)]=[];[a167_0x5d4d5d(0xcd)]=null;[a167_0x5d4d5d(0xd2)](_0x151597,_0x446730){return _0x1d683a=>{const _0x4bf4dd=a167_0xd950;if(_0x1d683a['method'][_0x4bf4dd(0xf2)]()!==_0x151597['toUpperCase']())return![];const _0x29e5b5=new URL(_0x1d683a[_0x4bf4dd(0xcf)]);if(typeof _0x446730===_0x4bf4dd(0xe1))return _0x29e5b5[_0x4bf4dd(0xab)]===_0x446730||_0x29e5b5[_0x4bf4dd(0xab)][_0x4bf4dd(0xd4)](_0x446730);return _0x446730[_0x4bf4dd(0xe0)](_0x29e5b5['pathname']);};}[a167_0x5d4d5d(0xfc)](_0x51a3b4,_0x1f2dc1){return _0x418a8f=>{const _0x501955=a167_0xd950;if(!_0x51a3b4(_0x418a8f))return![];const _0x2ab15f=new URL(_0x418a8f[_0x501955(0xcf)]);return Object['entries'](_0x1f2dc1)[_0x501955(0xe9)](([_0x2bed33,_0x34b444])=>_0x2ab15f['searchParams'][_0x501955(0xc6)](_0x2bed33)===_0x34b444);};}[a167_0x5d4d5d(0xcc)](_0x4e353b,_0x18941c){return _0x2303f4=>{const _0x39d9e0=a167_0xd950;if(!_0x4e353b(_0x2303f4))return![];if(typeof _0x18941c===_0x39d9e0(0xbf))return _0x18941c(_0x2303f4[_0x39d9e0(0xe6)]);return JSON[_0x39d9e0(0xd5)](_0x2303f4[_0x39d9e0(0xe6)])===JSON[_0x39d9e0(0xd5)](_0x18941c);};}[a167_0x5d4d5d(0xe5)](_0x4a149e,_0x517fce){return _0x88c588=>{const _0x22fa57=a167_0xd950;if(!_0x4a149e(_0x88c588))return![];const _0x3f6796=new URL(_0x88c588[_0x22fa57(0xcf)]);return _0x3f6796['host']===_0x517fce;};}[a167_0x5d4d5d(0xb6)](_0x41a249,_0x29d554,_0x1724af){const _0x3ea30c=a167_0x5d4d5d;this['stubs'][_0x3ea30c(0xdf)]({'matcher':_0x41a249,'responder':_0x29d554,'matched':![],'matchCount':0x0,'stack':new Error()[_0x3ea30c(0xf1)]??'','description':_0x1724af?.[_0x3ea30c(0xdc)]});}[a167_0x5d4d5d(0xeb)](_0x5c1718,_0x446e50,_0x879e48){const _0x279c0a=a167_0x5d4d5d,_0x4fe4d1=_0x432d11=>{const _0x5e99f6=a167_0xd950;return _0x879e48(_0x432d11[_0x5e99f6(0xe6)],_0x432d11),_0x446e50(_0x432d11);};this[_0x279c0a(0xb6)](_0x5c1718,_0x4fe4d1);}static[a167_0x5d4d5d(0xb3)](_0x112b26,_0x5ee5ce=0xc8){const _0x4c93b1=a167_0x5d4d5d;return()=>new Response(JSON[_0x4c93b1(0xd5)](_0x112b26),{'status':_0x5ee5ce,'headers':{'Content-Type':_0x4c93b1(0xd8)}});}static['errorResponse'](_0x184c00,_0x3ac37a,_0x561966=a167_0x5d4d5d(0xe7)){return()=>{const _0x54823c=a167_0xd950;let _0x365bbb;switch(_0x561966){case _0x54823c(0xaa):_0x365bbb={'errors':{'error':_0x3ac37a,'message':_0x3ac37a,'severity':'error','status_code':_0x184c00}};break;case'rfc9457':_0x365bbb={'type':_0x54823c(0xf6)+_0x184c00,'title':HTTPMockRegistry[_0x54823c(0xe4)](_0x184c00),'status':_0x184c00,'detail':_0x3ac37a};break;default:_0x365bbb={'error':_0x3ac37a};}return new Response(JSON[_0x54823c(0xd5)](_0x365bbb),{'status':_0x184c00,'headers':{'Content-Type':_0x54823c(0xd8)}});};}static[a167_0x5d4d5d(0xc8)](_0x57a1b5,_0x37830d,_0x13bfa6=0xc8){const _0x11049f=a167_0x5d4d5d;return()=>new Response(JSON[_0x11049f(0xd5)](_0x57a1b5),{'status':_0x13bfa6,'headers':{'Content-Type':_0x11049f(0xd8),..._0x37830d}});}static[a167_0x5d4d5d(0xf8)](_0x457c21,_0x50ea5c=0xc8){return()=>new Response(_0x457c21,{'status':_0x50ea5c,'headers':{'Content-Type':'text/plain'}});}static[a167_0x5d4d5d(0xda)](_0x2ef7a7){return()=>{throw new Error(_0x2ef7a7);};}[a167_0x5d4d5d(0xad)](){const _0x3ec9f8=a167_0x5d4d5d;return this[_0x3ec9f8(0xcd)]=vi['fn']()[_0x3ec9f8(0xee)](async(_0x2fcd78,_0x3cae88)=>{const _0x331c5b=_0x3ec9f8,_0x3a29aa=this[_0x331c5b(0xe8)](_0x2fcd78,_0x3cae88);this[_0x331c5b(0xfb)][_0x331c5b(0xdf)](_0x3a29aa);for(const _0x503164 of this['stubs']){if(_0x503164[_0x331c5b(0xc5)](_0x3a29aa))return _0x503164[_0x331c5b(0xce)]=!![],_0x503164[_0x331c5b(0xfa)]++,_0x503164[_0x331c5b(0xf4)](_0x3a29aa);}const _0x55d0a=this['stubs'][_0x331c5b(0xc4)]((_0x42b8c4,_0x316e9a)=>'\x20\x20'+(_0x316e9a+0x1)+'.\x20'+(_0x42b8c4[_0x331c5b(0xdc)]??_0x331c5b(0xca)))[_0x331c5b(0xba)]('\x0a');throw new Error(_0x331c5b(0xd9)+_0x3a29aa[_0x331c5b(0xae)]+'\x20'+_0x3a29aa[_0x331c5b(0xcf)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x331c5b(0xd5)](_0x3a29aa['body'])+'\x0a')+(_0x331c5b(0xbd)+(_0x55d0a||_0x331c5b(0xc9))));}),this[_0x3ec9f8(0xcd)];}[a167_0x5d4d5d(0xe8)](_0x461ada,_0x447213){const _0x39a024=a167_0x5d4d5d,_0x1de0a9={};if(_0x447213?.[_0x39a024(0xbb)]){if(_0x447213[_0x39a024(0xbb)]instanceof Headers)_0x447213['headers'][_0x39a024(0xd7)]((_0x2804c9,_0x25bace)=>{const _0x5677de=_0x39a024;_0x1de0a9[_0x25bace[_0x5677de(0xc7)]()]=_0x2804c9;});else{if(Array[_0x39a024(0xcb)](_0x447213['headers']))for(const [_0xc4f0e9,_0x283dac]of _0x447213['headers']){_0x1de0a9[_0xc4f0e9[_0x39a024(0xc7)]()]=_0x283dac;}else for(const [_0x567235,_0x279ec7]of Object[_0x39a024(0xaf)](_0x447213['headers'])){_0x279ec7!==undefined&&(_0x1de0a9[_0x567235[_0x39a024(0xc7)]()]=_0x279ec7);}}}let _0x5b15ca;if(_0x447213?.[_0x39a024(0xe6)])try{_0x5b15ca=JSON[_0x39a024(0xf7)](_0x447213[_0x39a024(0xe6)]);}catch{_0x5b15ca=_0x447213[_0x39a024(0xe6)];}return{'method':_0x447213?.[_0x39a024(0xae)]??_0x39a024(0xfd),'url':_0x461ada,'headers':_0x1de0a9,'body':_0x5b15ca};}[a167_0x5d4d5d(0xb0)](_0x44f13b){const _0x5ef220=a167_0x5d4d5d,_0x2d337f=this[_0x5ef220(0xd1)][_0x5ef220(0xef)](_0x3525db=>!_0x3525db['matched']);if(_0x2d337f[_0x5ef220(0xfe)]>0x0){const _0x32dd31=_0x2d337f[_0x5ef220(0xc4)](_0x4f7f6f=>{const _0x2b95ac=_0x5ef220,_0x91ffa7=_0x4f7f6f[_0x2b95ac(0xdc)]?'\x20('+_0x4f7f6f[_0x2b95ac(0xdc)]+')':'',_0x507125=_0x4f7f6f[_0x2b95ac(0xf1)][_0x2b95ac(0xc2)]('\x0a')[_0x2b95ac(0xf0)](0x2,0x5)[_0x2b95ac(0xba)]('\x0a');return _0x2b95ac(0xb1)+_0x91ffa7+'\x20registered\x20at:\x0a'+_0x507125;});_0x44f13b[_0x5ef220(0xf5)](_0x2d337f[_0x5ef220(0xfe)]+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x32dd31[_0x5ef220(0xba)]('\x0a\x0a'));}}[a167_0x5d4d5d(0xb8)](){const _0x18673f=a167_0x5d4d5d;return[...this[_0x18673f(0xfb)]];}[a167_0x5d4d5d(0xdd)](){const _0x138279=a167_0x5d4d5d;return this[_0x138279(0xfb)][this[_0x138279(0xfb)][_0x138279(0xfe)]-0x1];}['wasCalled'](_0x17807b,_0x133f75){const _0x5bac6b=a167_0x5d4d5d;return this[_0x5bac6b(0xfb)][_0x5bac6b(0xbe)](_0x1f5001=>{const _0x2b4ce9=_0x5bac6b;if(_0x1f5001[_0x2b4ce9(0xae)][_0x2b4ce9(0xf2)]()!==_0x17807b[_0x2b4ce9(0xf2)]())return![];if(typeof _0x133f75==='string')return _0x1f5001[_0x2b4ce9(0xcf)][_0x2b4ce9(0xd4)](_0x133f75);return _0x133f75['test'](_0x1f5001[_0x2b4ce9(0xcf)]);});}[a167_0x5d4d5d(0xed)](_0x26855e){const _0x463381=a167_0x5d4d5d;return this[_0x463381(0xd1)][_0x26855e]?.[_0x463381(0xfa)]??0x0;}[a167_0x5d4d5d(0xc1)](){const _0x264585=a167_0x5d4d5d;this['stubs']=[],this[_0x264585(0xfb)]=[],this[_0x264585(0xcd)]=null;}static[a167_0x5d4d5d(0xe4)](_0x32729b){const _0x3e6ff9=a167_0x5d4d5d,_0x4ae131={0xc8:'OK',0xc9:_0x3e6ff9(0xa9),0xcc:_0x3e6ff9(0xd6),0x190:_0x3e6ff9(0xf3),0x191:'Unauthorized',0x193:_0x3e6ff9(0xdb),0x194:_0x3e6ff9(0xe2),0x199:_0x3e6ff9(0xf9),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x3e6ff9(0xd0),0x1f4:_0x3e6ff9(0xec),0x1f6:_0x3e6ff9(0xde),0x1f7:_0x3e6ff9(0xbc)};return _0x4ae131[_0x32729b]??_0x3e6ff9(0xb5);}}function a167_0xd950(_0x1dd68c,_0x44a4e3){_0x1dd68c=_0x1dd68c-0xa9;const _0x163b6a=a167_0x163b();let _0xd95001=_0x163b6a[_0x1dd68c];return _0xd95001;}export function createHTTPMock(){return new HTTPMockRegistry();}function a167_0x163b(){const _0xba9e9d=['includes','stringify','No\x20Content','forEach','application/json','No\x20stub\x20matched\x20request:\x20','networkError','Forbidden','description','getLastRequest','Bad\x20Gateway','push','test','string','Not\x20Found','6sJDcrw','getStatusText','withHost','body','simple','parseRequest','every','2982176RnuuGq','registerWithInspector','Internal\x20Server\x20Error','getMatchCount','mockImplementation','filter','slice','stack','toUpperCase','Bad\x20Request','responder','fail','https://api.treasuredata.com/errors/','parse','textResponse','Conflict','matchCount','requests','withQuery','GET','length','Created','td-api','pathname','1245294VVXNAp','createFetch','method','entries','verify','Unmatched\x20stub','1474844PyIXDh','jsonResponse','299655pbcuCT','Unknown','register','2067970XLpukE','getRequests','680322gYzmrH','join','headers','Service\x20Unavailable','Registered\x20stubs:\x0a','some','function','86bWQuFB','reset','split','28NRURnd','map','matcher','get','toLowerCase','jsonResponseWithHeaders','\x20\x20(none)','unnamed\x20stub','isArray','withBody','fetchMock','matched','url','Too\x20Many\x20Requests','stubs','REST','7851xrJpSl'];a167_0x163b=function(){return _0xba9e9d;};return a167_0x163b();}
@@ -1 +1 @@
1
- function a168_0xfb7c(_0x1d7a7b,_0x5513e0){_0x1d7a7b=_0x1d7a7b-0x1e2;var _0x28906f=a168_0x2890();var _0xfb7c5a=_0x28906f[_0x1d7a7b];return _0xfb7c5a;}(function(_0x4611d1,_0x544117){var _0x150da1=a168_0xfb7c,_0x772b53=_0x4611d1();while(!![]){try{var _0x522fcd=parseInt(_0x150da1(0x1e2))/0x1+-parseInt(_0x150da1(0x1eb))/0x2*(-parseInt(_0x150da1(0x1e6))/0x3)+-parseInt(_0x150da1(0x1ea))/0x4+-parseInt(_0x150da1(0x1e8))/0x5+parseInt(_0x150da1(0x1ec))/0x6*(-parseInt(_0x150da1(0x1e7))/0x7)+parseInt(_0x150da1(0x1e5))/0x8*(-parseInt(_0x150da1(0x1e9))/0x9)+-parseInt(_0x150da1(0x1e3))/0xa*(-parseInt(_0x150da1(0x1e4))/0xb);if(_0x522fcd===_0x544117)break;else _0x772b53['push'](_0x772b53['shift']());}catch(_0x27dca2){_0x772b53['push'](_0x772b53['shift']());}}}(a168_0x2890,0x2449d));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';export{CommandRunner,createCommandRunner}from'./command-runner.js';function a168_0x2890(){var _0x5449ff=['135016walJbp','3303WXzKWd','49UxttmO','1000730NBIFRZ','45QZpooL','1131048tGQlbl','328YyMftF','127104Gdctyi','140724xYNmax','542930fXHvuF','110CkHZpL'];a168_0x2890=function(){return _0x5449ff;};return a168_0x2890();}
1
+ (function(_0x5592b4,_0xccf316){var _0x1d9bf6=a168_0x5d5f,_0x3caf78=_0x5592b4();while(!![]){try{var _0xd0ca7f=parseInt(_0x1d9bf6(0x81))/0x1+-parseInt(_0x1d9bf6(0x7e))/0x2+-parseInt(_0x1d9bf6(0x83))/0x3+-parseInt(_0x1d9bf6(0x7f))/0x4*(-parseInt(_0x1d9bf6(0x84))/0x5)+parseInt(_0x1d9bf6(0x82))/0x6*(parseInt(_0x1d9bf6(0x85))/0x7)+-parseInt(_0x1d9bf6(0x7d))/0x8+parseInt(_0x1d9bf6(0x80))/0x9;if(_0xd0ca7f===_0xccf316)break;else _0x3caf78['push'](_0x3caf78['shift']());}catch(_0x219ce6){_0x3caf78['push'](_0x3caf78['shift']());}}}(a168_0x6922,0xac066));function a168_0x5d5f(_0x4577e7,_0x31947b){_0x4577e7=_0x4577e7-0x7d;var _0x692286=a168_0x6922();var _0x5d5f5a=_0x692286[_0x4577e7];return _0x5d5f5a;}function a168_0x6922(){var _0x1595d8=['4811124HxCSeX','5169942BvortJ','630537vgOqwG','42mzUcIQ','1020363PVWGXc','5zshQnI','271243DnPvOy','7807872uhIHUh','1316560FmIZWH'];a168_0x6922=function(){return _0x1595d8;};return a168_0x6922();}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';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a169_0x4003(_0x2207f1,_0xb50a4b){_0x2207f1=_0x2207f1-0xc8;const _0x309de6=a169_0x309d();let _0x4003cd=_0x309de6[_0x2207f1];return _0x4003cd;}(function(_0x95a9c4,_0x4960b4){const _0x4170e1=a169_0x4003,_0xd81fe0=_0x95a9c4();while(!![]){try{const _0x21bfa6=parseInt(_0x4170e1(0xcd))/0x1*(parseInt(_0x4170e1(0xcc))/0x2)+-parseInt(_0x4170e1(0xca))/0x3+parseInt(_0x4170e1(0xd2))/0x4*(-parseInt(_0x4170e1(0xce))/0x5)+-parseInt(_0x4170e1(0xd0))/0x6*(parseInt(_0x4170e1(0xcf))/0x7)+-parseInt(_0x4170e1(0xcb))/0x8*(-parseInt(_0x4170e1(0xc9))/0x9)+-parseInt(_0x4170e1(0xd4))/0xa+parseInt(_0x4170e1(0xc8))/0xb;if(_0x21bfa6===_0x4960b4)break;else _0xd81fe0['push'](_0xd81fe0['shift']());}catch(_0x192b15){_0xd81fe0['push'](_0xd81fe0['shift']());}}}(a169_0x309d,0x99f7f));export async function batchAsync(_0x24564d,_0x118a43,_0x3a446c=0xa){const _0x4c3e0a=a169_0x4003,_0x2c4f90=[];for(let _0xb08135=0x0;_0xb08135<_0x24564d[_0x4c3e0a(0xd3)];_0xb08135+=_0x3a446c){const _0x3db0aa=_0x24564d['slice'](_0xb08135,_0xb08135+_0x3a446c),_0x375562=await Promise[_0x4c3e0a(0xd5)](_0x3db0aa['map'](_0x118a43));_0x2c4f90[_0x4c3e0a(0xd1)](..._0x375562);}return _0x2c4f90;}function a169_0x309d(){const _0xdfad06=['6744akMhjv','6xtGRGz','96357Hochff','215045YvmABC','3100139rurOpH','6XtuoBg','push','112oddrsH','length','11610200KzgDAx','all','27531031zyKniV','9333AzsDRP','681837cfJnam'];a169_0x309d=function(){return _0xdfad06;};return a169_0x309d();}
1
+ function a169_0x391b(_0x530097,_0x1a45c5){_0x530097=_0x530097-0x81;const _0x471f07=a169_0x471f();let _0x391b21=_0x471f07[_0x530097];return _0x391b21;}(function(_0x471470,_0x56fd7d){const _0x262b6d=a169_0x391b,_0x2693e0=_0x471470();while(!![]){try{const _0x30d746=-parseInt(_0x262b6d(0x84))/0x1+-parseInt(_0x262b6d(0x85))/0x2+parseInt(_0x262b6d(0x8b))/0x3*(-parseInt(_0x262b6d(0x8a))/0x4)+-parseInt(_0x262b6d(0x87))/0x5*(-parseInt(_0x262b6d(0x90))/0x6)+parseInt(_0x262b6d(0x89))/0x7*(parseInt(_0x262b6d(0x88))/0x8)+parseInt(_0x262b6d(0x81))/0x9*(-parseInt(_0x262b6d(0x82))/0xa)+parseInt(_0x262b6d(0x8e))/0xb*(parseInt(_0x262b6d(0x8f))/0xc);if(_0x30d746===_0x56fd7d)break;else _0x2693e0['push'](_0x2693e0['shift']());}catch(_0x23e612){_0x2693e0['push'](_0x2693e0['shift']());}}}(a169_0x471f,0xeed94));export async function batchAsync(_0x33a8dd,_0x44eb9c,_0x37e971=0xa){const _0x4cf978=a169_0x391b,_0x390f0e=[];for(let _0x3b5961=0x0;_0x3b5961<_0x33a8dd['length'];_0x3b5961+=_0x37e971){const _0x481bf9=_0x33a8dd[_0x4cf978(0x83)](_0x3b5961,_0x3b5961+_0x37e971),_0x2b0371=await Promise[_0x4cf978(0x8c)](_0x481bf9[_0x4cf978(0x8d)](_0x44eb9c));_0x390f0e[_0x4cf978(0x86)](..._0x2b0371);}return _0x390f0e;}function a169_0x471f(){const _0x3b4116=['map','73271GfqIQb','8292qEYgmP','18GIGiKH','16771302qCZBYv','10bKjnll','slice','859759RRtJrF','3402872xwNcBQ','push','2434655eNtmDv','2077288ICNWHh','14HUcDNX','4elwgCS','3539607GDjngS','all'];a169_0x471f=function(){return _0x3b4116;};return a169_0x471f();}
@@ -1 +1 @@
1
- const a170_0x4a6ac0=a170_0x9780;(function(_0x26017e,_0xe1d36d){const _0x1258fa=a170_0x9780,_0x5a8dce=_0x26017e();while(!![]){try{const _0x2152ac=parseInt(_0x1258fa(0x128))/0x1*(parseInt(_0x1258fa(0x133))/0x2)+-parseInt(_0x1258fa(0x137))/0x3+-parseInt(_0x1258fa(0x125))/0x4*(parseInt(_0x1258fa(0x129))/0x5)+parseInt(_0x1258fa(0x122))/0x6*(parseInt(_0x1258fa(0x124))/0x7)+-parseInt(_0x1258fa(0x13c))/0x8*(-parseInt(_0x1258fa(0x121))/0x9)+-parseInt(_0x1258fa(0x12b))/0xa+-parseInt(_0x1258fa(0x13e))/0xb*(-parseInt(_0x1258fa(0x135))/0xc);if(_0x2152ac===_0xe1d36d)break;else _0x5a8dce['push'](_0x5a8dce['shift']());}catch(_0x547f5a){_0x5a8dce['push'](_0x5a8dce['shift']());}}}(a170_0xc8b3,0xe7ff3));import*as a170_0x4ab8d9 from'chalk';const Chalk=a170_0x4ab8d9[a170_0x4a6ac0(0x132)];function a170_0xc8b3(){const _0x167cef=['164559FalLcr','5zAKhql','blue','6694610SHjjwa','null','boolean','object','yellow','color','dim','Chalk','4BjnFZB','join','3890676nRgrjc','length','456255RIfMzW','string','green','number','noColor','9512VcyNHR','isTTY','66tPigTb','entries','isArray','stringify','1935hhKCWp','4539378ubwFmN','repeat','7NCgTDI','6059396fTAIaH','cyan','map'];a170_0xc8b3=function(){return _0x167cef;};return a170_0xc8b3();}function a170_0x9780(_0x157620,_0x3d0bf5){_0x157620=_0x157620-0x11f;const _0xc8b319=a170_0xc8b3();let _0x9780d6=_0xc8b319[_0x157620];return _0x9780d6;}export function shouldUseColor(_0x155547={}){const _0x5833e9=a170_0x4a6ac0;if(_0x155547[_0x5833e9(0x13b)]===!![])return![];if(_0x155547[_0x5833e9(0x130)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x5833e9(0x13d)]??![];}export function getChalk(_0x24f89e={}){if(shouldUseColor(_0x24f89e))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1943d6,_0x2f42fe={}){const _0x17dd55=a170_0x4a6ac0;return getChalk(_0x2f42fe)[_0x17dd55(0x131)](_0x1943d6);}export function colorHeader(_0x502753,_0x598258={}){const _0x2bddb9=a170_0x4a6ac0;return getChalk(_0x598258)[_0x2bddb9(0x126)](_0x502753);}export function colorType(_0x4aa6d8,_0x1d0e42={}){const _0x13d050=a170_0x4a6ac0;return getChalk(_0x1d0e42)[_0x13d050(0x131)](_0x4aa6d8);}export function colorJSONKey(_0x453dcf,_0x1faca0={}){const _0x27d6f5=a170_0x4a6ac0;return getChalk(_0x1faca0)[_0x27d6f5(0x12a)](_0x453dcf);}export function colorJSONString(_0x37c663,_0x1e7568={}){const _0x148488=a170_0x4a6ac0;return getChalk(_0x1e7568)[_0x148488(0x139)](_0x37c663);}export function colorJSONNumber(_0xec209b,_0x4f8c39={}){return getChalk(_0x4f8c39)['cyan'](_0xec209b);}export function colorJSONBoolean(_0x46723a,_0x1bf976={}){const _0x396576=a170_0x4a6ac0;return getChalk(_0x1bf976)[_0x396576(0x12f)](_0x46723a);}export function colorJSONNull(_0x5b9319,_0x21e5d9={}){return getChalk(_0x21e5d9)['dim'](_0x5b9319);}export function colorizeJSONCompact(_0x256335,_0x132c08={}){const _0x5d64d0=a170_0x4a6ac0;if(!shouldUseColor(_0x132c08))return JSON[_0x5d64d0(0x120)](_0x256335);if(_0x256335===null)return colorJSONNull(_0x5d64d0(0x12c),_0x132c08);if(typeof _0x256335===_0x5d64d0(0x12d))return colorJSONBoolean(String(_0x256335),_0x132c08);if(typeof _0x256335===_0x5d64d0(0x13a))return colorJSONNumber(String(_0x256335),_0x132c08);if(typeof _0x256335===_0x5d64d0(0x138))return colorJSONString(JSON['stringify'](_0x256335),_0x132c08);if(Array['isArray'](_0x256335)){if(_0x256335[_0x5d64d0(0x136)]===0x0)return'[]';const _0x43f89a=_0x256335['map'](_0x411115=>colorizeJSONCompact(_0x411115,_0x132c08));return'['+_0x43f89a[_0x5d64d0(0x134)](',')+']';}if(typeof _0x256335==='object'){const _0x3d53b8=Object[_0x5d64d0(0x13f)](_0x256335);if(_0x3d53b8[_0x5d64d0(0x136)]===0x0)return'{}';const _0xebd350=_0x3d53b8[_0x5d64d0(0x127)](([_0x3fb6fc,_0x5e9e28])=>{const _0x4c3317=_0x5d64d0,_0xf8f9f0=colorJSONKey(JSON[_0x4c3317(0x120)](_0x3fb6fc),_0x132c08),_0x54ab3a=colorizeJSONCompact(_0x5e9e28,_0x132c08);return _0xf8f9f0+':'+_0x54ab3a;});return'{'+_0xebd350[_0x5d64d0(0x134)](',')+'}';}return String(_0x256335);}export function colorizeJSON(_0x395d55,_0x554bb8={},_0x2593aa=0x0){const _0x5779cd=a170_0x4a6ac0;if(!shouldUseColor(_0x554bb8))return JSON[_0x5779cd(0x120)](_0x395d55,null,0x2);const _0x45cb3a='\x20'[_0x5779cd(0x123)](_0x2593aa),_0x5eb725=_0x2593aa+0x2;if(_0x395d55===null)return colorJSONNull(_0x5779cd(0x12c),_0x554bb8);if(typeof _0x395d55===_0x5779cd(0x12d))return colorJSONBoolean(String(_0x395d55),_0x554bb8);if(typeof _0x395d55===_0x5779cd(0x13a))return colorJSONNumber(String(_0x395d55),_0x554bb8);if(typeof _0x395d55===_0x5779cd(0x138))return colorJSONString(JSON['stringify'](_0x395d55),_0x554bb8);if(Array[_0x5779cd(0x11f)](_0x395d55)){if(_0x395d55[_0x5779cd(0x136)]===0x0)return'[]';const _0x3e119e=_0x395d55['map'](_0x3a2bcf=>{const _0x353972=colorizeJSON(_0x3a2bcf,_0x554bb8,_0x5eb725);return''+'\x20'['repeat'](_0x5eb725)+_0x353972;});return'[\x0a'+_0x3e119e['join'](',\x0a')+('\x0a'+_0x45cb3a+']');}if(typeof _0x395d55===_0x5779cd(0x12e)){const _0x58d0bd=Object[_0x5779cd(0x13f)](_0x395d55);if(_0x58d0bd['length']===0x0)return'{}';const _0x4e45c4=_0x58d0bd['map'](([_0x11d782,_0x2d736b])=>{const _0x5a35b5=_0x5779cd,_0x4834b1=colorJSONKey(JSON[_0x5a35b5(0x120)](_0x11d782),_0x554bb8),_0x3465b5=colorizeJSON(_0x2d736b,_0x554bb8,_0x5eb725);return''+'\x20'[_0x5a35b5(0x123)](_0x5eb725)+_0x4834b1+':\x20'+_0x3465b5;});return'{\x0a'+_0x4e45c4[_0x5779cd(0x134)](',\x0a')+('\x0a'+_0x45cb3a+'}');}return String(_0x395d55);}
1
+ const a170_0x3b0146=a170_0x423e;(function(_0x1373c4,_0x28016f){const _0x4a1b58=a170_0x423e,_0x5cb417=_0x1373c4();while(!![]){try{const _0x1e1c59=-parseInt(_0x4a1b58(0x71))/0x1*(parseInt(_0x4a1b58(0x88))/0x2)+-parseInt(_0x4a1b58(0x82))/0x3+parseInt(_0x4a1b58(0x6c))/0x4+parseInt(_0x4a1b58(0x7b))/0x5*(parseInt(_0x4a1b58(0x6f))/0x6)+parseInt(_0x4a1b58(0x84))/0x7*(parseInt(_0x4a1b58(0x86))/0x8)+-parseInt(_0x4a1b58(0x7f))/0x9*(-parseInt(_0x4a1b58(0x74))/0xa)+-parseInt(_0x4a1b58(0x75))/0xb;if(_0x1e1c59===_0x28016f)break;else _0x5cb417['push'](_0x5cb417['shift']());}catch(_0x37f9a6){_0x5cb417['push'](_0x5cb417['shift']());}}}(a170_0x199e,0x73a57));import*as a170_0x4c3ec9 from'chalk';function a170_0x423e(_0x5b400f,_0xd74045){_0x5b400f=_0x5b400f-0x6c;const _0x199ef2=a170_0x199e();let _0x423e27=_0x199ef2[_0x5b400f];return _0x423e27;}const Chalk=a170_0x4c3ec9[a170_0x3b0146(0x76)];export function shouldUseColor(_0x16fda0={}){const _0x50607f=a170_0x3b0146;if(_0x16fda0[_0x50607f(0x7c)]===!![])return![];if(_0x16fda0['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x50607f(0x7a)]['isTTY']??![];}function a170_0x199e(){const _0x266746=['dim','2317038yAQfdV','object','20069CCXQmG','entries','1712ObBFhB','length','10kEyogk','stringify','yellow','653812kJIWso','null','join','8460SQkIsb','map','27911lqSSsp','number','boolean','175550EiYqTk','3557763anlTyx','Chalk','green','isArray','cyan','stdout','815BrnSES','noColor','string','repeat','360zYOySN','blue'];a170_0x199e=function(){return _0x266746;};return a170_0x199e();}export function getChalk(_0x2e04bd={}){if(shouldUseColor(_0x2e04bd))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x32e741,_0x59ff07={}){const _0x3837bc=a170_0x3b0146;return getChalk(_0x59ff07)[_0x3837bc(0x81)](_0x32e741);}export function colorHeader(_0x144146,_0x40341b={}){const _0x31cddd=a170_0x3b0146;return getChalk(_0x40341b)[_0x31cddd(0x79)](_0x144146);}export function colorType(_0x4eb2c7,_0x3922d9={}){return getChalk(_0x3922d9)['dim'](_0x4eb2c7);}export function colorJSONKey(_0x32154f,_0x40736c={}){const _0x5aca99=a170_0x3b0146;return getChalk(_0x40736c)[_0x5aca99(0x80)](_0x32154f);}export function colorJSONString(_0x25d774,_0x10a608={}){const _0x54e8c9=a170_0x3b0146;return getChalk(_0x10a608)[_0x54e8c9(0x77)](_0x25d774);}export function colorJSONNumber(_0x21e58b,_0x2e359e={}){return getChalk(_0x2e359e)['cyan'](_0x21e58b);}export function colorJSONBoolean(_0x59ef92,_0x51c19c={}){const _0x45ba31=a170_0x3b0146;return getChalk(_0x51c19c)[_0x45ba31(0x8a)](_0x59ef92);}export function colorJSONNull(_0x4e8f01,_0x1c9d87={}){const _0x11f902=a170_0x3b0146;return getChalk(_0x1c9d87)[_0x11f902(0x81)](_0x4e8f01);}export function colorizeJSONCompact(_0x441f38,_0x4871e1={}){const _0x5acb4f=a170_0x3b0146;if(!shouldUseColor(_0x4871e1))return JSON['stringify'](_0x441f38);if(_0x441f38===null)return colorJSONNull(_0x5acb4f(0x6d),_0x4871e1);if(typeof _0x441f38===_0x5acb4f(0x73))return colorJSONBoolean(String(_0x441f38),_0x4871e1);if(typeof _0x441f38===_0x5acb4f(0x72))return colorJSONNumber(String(_0x441f38),_0x4871e1);if(typeof _0x441f38==='string')return colorJSONString(JSON[_0x5acb4f(0x89)](_0x441f38),_0x4871e1);if(Array[_0x5acb4f(0x78)](_0x441f38)){if(_0x441f38[_0x5acb4f(0x87)]===0x0)return'[]';const _0x3c564b=_0x441f38[_0x5acb4f(0x70)](_0xaa8ccb=>colorizeJSONCompact(_0xaa8ccb,_0x4871e1));return'['+_0x3c564b['join'](',')+']';}if(typeof _0x441f38===_0x5acb4f(0x83)){const _0xd5bf18=Object[_0x5acb4f(0x85)](_0x441f38);if(_0xd5bf18['length']===0x0)return'{}';const _0x5569dd=_0xd5bf18[_0x5acb4f(0x70)](([_0x22ae76,_0x1f59f9])=>{const _0x2a118f=_0x5acb4f,_0x25f799=colorJSONKey(JSON[_0x2a118f(0x89)](_0x22ae76),_0x4871e1),_0x7be29d=colorizeJSONCompact(_0x1f59f9,_0x4871e1);return _0x25f799+':'+_0x7be29d;});return'{'+_0x5569dd['join'](',')+'}';}return String(_0x441f38);}export function colorizeJSON(_0x3e2eae,_0xb81962={},_0x2734eb=0x0){const _0x1e31e2=a170_0x3b0146;if(!shouldUseColor(_0xb81962))return JSON['stringify'](_0x3e2eae,null,0x2);const _0x57e57c='\x20'['repeat'](_0x2734eb),_0x2a5315=_0x2734eb+0x2;if(_0x3e2eae===null)return colorJSONNull(_0x1e31e2(0x6d),_0xb81962);if(typeof _0x3e2eae===_0x1e31e2(0x73))return colorJSONBoolean(String(_0x3e2eae),_0xb81962);if(typeof _0x3e2eae===_0x1e31e2(0x72))return colorJSONNumber(String(_0x3e2eae),_0xb81962);if(typeof _0x3e2eae===_0x1e31e2(0x7d))return colorJSONString(JSON[_0x1e31e2(0x89)](_0x3e2eae),_0xb81962);if(Array['isArray'](_0x3e2eae)){if(_0x3e2eae['length']===0x0)return'[]';const _0x437572=_0x3e2eae['map'](_0x4dbf2a=>{const _0x59bdde=_0x1e31e2,_0x2f61df=colorizeJSON(_0x4dbf2a,_0xb81962,_0x2a5315);return''+'\x20'[_0x59bdde(0x7e)](_0x2a5315)+_0x2f61df;});return'[\x0a'+_0x437572[_0x1e31e2(0x6e)](',\x0a')+('\x0a'+_0x57e57c+']');}if(typeof _0x3e2eae===_0x1e31e2(0x83)){const _0x10c2e0=Object[_0x1e31e2(0x85)](_0x3e2eae);if(_0x10c2e0[_0x1e31e2(0x87)]===0x0)return'{}';const _0x382afd=_0x10c2e0[_0x1e31e2(0x70)](([_0x4e32e0,_0x43f4da])=>{const _0x3e65c0=_0x1e31e2,_0x371ce0=colorJSONKey(JSON[_0x3e65c0(0x89)](_0x4e32e0),_0xb81962),_0x5aace8=colorizeJSON(_0x43f4da,_0xb81962,_0x2a5315);return''+'\x20'['repeat'](_0x2a5315)+_0x371ce0+':\x20'+_0x5aace8;});return'{\x0a'+_0x382afd[_0x1e31e2(0x6e)](',\x0a')+('\x0a'+_0x57e57c+'}');}return String(_0x3e2eae);}
@@ -1 +1 @@
1
- function a171_0x4396(_0x13db92,_0x4eaf3e){_0x13db92=_0x13db92-0x1b3;const _0x4bdd31=a171_0x4bdd();let _0x4396dc=_0x4bdd31[_0x13db92];return _0x4396dc;}(function(_0x1a1690,_0x15f22c){const _0x4efd6e=a171_0x4396,_0x383dae=_0x1a1690();while(!![]){try{const _0x2a2749=parseInt(_0x4efd6e(0x1c8))/0x1*(-parseInt(_0x4efd6e(0x1c7))/0x2)+parseInt(_0x4efd6e(0x1c1))/0x3+parseInt(_0x4efd6e(0x1b7))/0x4+-parseInt(_0x4efd6e(0x1cf))/0x5+parseInt(_0x4efd6e(0x1b3))/0x6+parseInt(_0x4efd6e(0x1ca))/0x7*(-parseInt(_0x4efd6e(0x1c2))/0x8)+parseInt(_0x4efd6e(0x1b9))/0x9;if(_0x2a2749===_0x15f22c)break;else _0x383dae['push'](_0x383dae['shift']());}catch(_0x492d2b){_0x383dae['push'](_0x383dae['shift']());}}}(a171_0x4bdd,0x2ae2e));import a171_0x5b009b from'chalk';export function generateDiff(_0x1e067c,_0x2bc04a){const _0x3bcdf4=a171_0x4396,_0x4b2f24=_0x1e067c['split']('\x0a'),_0x260dab=_0x2bc04a[_0x3bcdf4(0x1d3)]('\x0a'),_0x35a206=[],_0x58320d=computeLCS(_0x4b2f24,_0x260dab);let _0x3e87b2=0x0,_0x1848ee=0x0,_0x148b5d=0x0;while(_0x3e87b2<_0x4b2f24[_0x3bcdf4(0x1d2)]||_0x1848ee<_0x260dab['length']){if(_0x148b5d<_0x58320d['length']&&_0x3e87b2<_0x4b2f24[_0x3bcdf4(0x1d2)]&&_0x4b2f24[_0x3e87b2]===_0x58320d[_0x148b5d])_0x1848ee<_0x260dab['length']&&_0x260dab[_0x1848ee]===_0x58320d[_0x148b5d]?(_0x35a206[_0x3bcdf4(0x1ba)]({'type':_0x3bcdf4(0x1cd),'content':_0x4b2f24[_0x3e87b2]}),_0x3e87b2++,_0x1848ee++,_0x148b5d++):(_0x35a206[_0x3bcdf4(0x1ba)]({'type':_0x3bcdf4(0x1c9),'content':_0x260dab[_0x1848ee]}),_0x1848ee++);else{if(_0x148b5d<_0x58320d[_0x3bcdf4(0x1d2)]&&_0x1848ee<_0x260dab[_0x3bcdf4(0x1d2)]&&_0x260dab[_0x1848ee]===_0x58320d[_0x148b5d])_0x35a206['push']({'type':_0x3bcdf4(0x1d0),'content':_0x4b2f24[_0x3e87b2]}),_0x3e87b2++;else{if(_0x3e87b2<_0x4b2f24['length']&&(_0x148b5d>=_0x58320d['length']||_0x4b2f24[_0x3e87b2]!==_0x58320d[_0x148b5d]))_0x35a206[_0x3bcdf4(0x1ba)]({'type':_0x3bcdf4(0x1d0),'content':_0x4b2f24[_0x3e87b2]}),_0x3e87b2++;else _0x1848ee<_0x260dab['length']&&(_0x35a206['push']({'type':_0x3bcdf4(0x1c9),'content':_0x260dab[_0x1848ee]}),_0x1848ee++);}}}return _0x35a206;}function a171_0x4bdd(){const _0x89158d=['56ulllSU','new','content','unchanged','max','639970lCVaVz','removed','green','length','split','red','\x20\x20\x20','old','968826fupdWT','padStart','unshift','forEach','892848ZilRna','\x20-\x20','965295egwCDx','push','dim','repeat','fill','map','cyan','add','810015DDnqkY','233176YZkXeT','\x20+\x20','type','min','some','6YADmMp','75037UVThpW','added'];a171_0x4bdd=function(){return _0x89158d;};return a171_0x4bdd();}function computeLCS(_0x597767,_0x62c6a5){const _0x21ce4c=a171_0x4396,_0x2450ce=_0x597767[_0x21ce4c(0x1d2)],_0x520918=_0x62c6a5[_0x21ce4c(0x1d2)],_0x33ab2a=Array(_0x2450ce+0x1)[_0x21ce4c(0x1bd)](null)[_0x21ce4c(0x1be)](()=>Array(_0x520918+0x1)[_0x21ce4c(0x1bd)](0x0));for(let _0x3006a5=0x1;_0x3006a5<=_0x2450ce;_0x3006a5++){for(let _0x47a876=0x1;_0x47a876<=_0x520918;_0x47a876++){_0x597767[_0x3006a5-0x1]===_0x62c6a5[_0x47a876-0x1]?_0x33ab2a[_0x3006a5][_0x47a876]=_0x33ab2a[_0x3006a5-0x1][_0x47a876-0x1]+0x1:_0x33ab2a[_0x3006a5][_0x47a876]=Math[_0x21ce4c(0x1ce)](_0x33ab2a[_0x3006a5-0x1][_0x47a876],_0x33ab2a[_0x3006a5][_0x47a876-0x1]);}}const _0x4c942d=[];let _0x55de0a=_0x2450ce,_0xf5a0ac=_0x520918;while(_0x55de0a>0x0&&_0xf5a0ac>0x0){if(_0x597767[_0x55de0a-0x1]===_0x62c6a5[_0xf5a0ac-0x1])_0x4c942d[_0x21ce4c(0x1b5)](_0x597767[_0x55de0a-0x1]),_0x55de0a--,_0xf5a0ac--;else _0x33ab2a[_0x55de0a-0x1][_0xf5a0ac]>_0x33ab2a[_0x55de0a][_0xf5a0ac-0x1]?_0x55de0a--:_0xf5a0ac--;}return _0x4c942d;}export function formatDiffWithColors(_0x4f9ec4,_0x14b7c4=0x3){const _0x4f70c5=a171_0x4396,_0x46fd9c=new Set();_0x4f9ec4[_0x4f70c5(0x1b6)]((_0xcc76a8,_0x28e5d8)=>{const _0x2f92aa=_0x4f70c5;_0xcc76a8[_0x2f92aa(0x1c4)]!==_0x2f92aa(0x1cd)&&_0x46fd9c['add'](_0x28e5d8);});if(_0x46fd9c['size']===0x0)return'';const _0x20093b=new Set();for(const _0x1a4332 of _0x46fd9c){for(let _0xd66c49=Math[_0x4f70c5(0x1ce)](0x0,_0x1a4332-_0x14b7c4);_0xd66c49<=Math[_0x4f70c5(0x1c5)](_0x4f9ec4[_0x4f70c5(0x1d2)]-0x1,_0x1a4332+_0x14b7c4);_0xd66c49++){_0x20093b[_0x4f70c5(0x1c0)](_0xd66c49);}}const _0x38d807=[];let _0x1945ee=-0x1;const _0x5970f0=_0x4f9ec4[_0x4f70c5(0x1d2)],_0x53695c=Math[_0x4f70c5(0x1ce)](0x3,String(_0x5970f0)[_0x4f70c5(0x1d2)]),_0x217e07=[];let _0x16d6ac=0x0,_0x1c7d59=0x0;for(const _0x2e8814 of _0x4f9ec4){if(_0x2e8814[_0x4f70c5(0x1c4)]===_0x4f70c5(0x1d0))_0x16d6ac++,_0x217e07[_0x4f70c5(0x1ba)]({'old':_0x16d6ac,'new':0x0});else _0x2e8814[_0x4f70c5(0x1c4)]==='added'?(_0x1c7d59++,_0x217e07[_0x4f70c5(0x1ba)]({'old':0x0,'new':_0x1c7d59})):(_0x16d6ac++,_0x1c7d59++,_0x217e07['push']({'old':_0x16d6ac,'new':_0x1c7d59}));}for(let _0x5e1860=0x0;_0x5e1860<_0x4f9ec4[_0x4f70c5(0x1d2)];_0x5e1860++){if(!_0x20093b['has'](_0x5e1860))continue;_0x1945ee!==-0x1&&_0x5e1860>_0x1945ee+0x1&&_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1bf)]('\x20\x20...'));_0x1945ee=_0x5e1860;const _0x49f9ad=_0x4f9ec4[_0x5e1860],_0x131249=_0x217e07[_0x5e1860],_0x3d65aa=_0x131249[_0x4f70c5(0x1d6)]>0x0?String(_0x131249['old'])[_0x4f70c5(0x1b4)](_0x53695c):'\x20'[_0x4f70c5(0x1bc)](_0x53695c),_0x50b75b=_0x131249[_0x4f70c5(0x1cb)]>0x0?String(_0x131249[_0x4f70c5(0x1cb)])[_0x4f70c5(0x1b4)](_0x53695c):'\x20'['repeat'](_0x53695c);switch(_0x49f9ad[_0x4f70c5(0x1c4)]){case _0x4f70c5(0x1d0):_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1d4)](_0x3d65aa+'\x20'+_0x50b75b+_0x4f70c5(0x1b8)+_0x49f9ad[_0x4f70c5(0x1cc)]));break;case _0x4f70c5(0x1c9):_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1d1)](_0x3d65aa+'\x20'+_0x50b75b+_0x4f70c5(0x1c3)+_0x49f9ad['content']));break;default:_0x38d807[_0x4f70c5(0x1ba)](a171_0x5b009b[_0x4f70c5(0x1bb)](_0x3d65aa+'\x20'+_0x50b75b+_0x4f70c5(0x1d5)+_0x49f9ad[_0x4f70c5(0x1cc)]));break;}}return _0x38d807['join']('\x0a');}export function hasChanges(_0x5ac630){const _0x31e50b=a171_0x4396;return _0x5ac630[_0x31e50b(0x1c6)](_0x44aad9=>_0x44aad9[_0x31e50b(0x1c4)]!==_0x31e50b(0x1cd));}
1
+ (function(_0xcf0a70,_0x101c26){const _0x30fde2=a171_0x2586,_0x11c62b=_0xcf0a70();while(!![]){try{const _0x59cc6f=-parseInt(_0x30fde2(0x1ea))/0x1+-parseInt(_0x30fde2(0x200))/0x2+-parseInt(_0x30fde2(0x1e2))/0x3*(-parseInt(_0x30fde2(0x1e5))/0x4)+-parseInt(_0x30fde2(0x1ed))/0x5*(parseInt(_0x30fde2(0x201))/0x6)+-parseInt(_0x30fde2(0x1e3))/0x7+-parseInt(_0x30fde2(0x202))/0x8+-parseInt(_0x30fde2(0x1fb))/0x9*(-parseInt(_0x30fde2(0x1e6))/0xa);if(_0x59cc6f===_0x101c26)break;else _0x11c62b['push'](_0x11c62b['shift']());}catch(_0x54c91f){_0x11c62b['push'](_0x11c62b['shift']());}}}(a171_0x17ba,0xf1af4));import a171_0x515541 from'chalk';export function generateDiff(_0x2f3fb4,_0x259530){const _0x254dfd=a171_0x2586,_0x516562=_0x2f3fb4[_0x254dfd(0x1f1)]('\x0a'),_0xf2c5db=_0x259530[_0x254dfd(0x1f1)]('\x0a'),_0xc927a4=[],_0x7ce667=computeLCS(_0x516562,_0xf2c5db);let _0x1abe7a=0x0,_0x3950d3=0x0,_0x1b58cb=0x0;while(_0x1abe7a<_0x516562[_0x254dfd(0x1e0)]||_0x3950d3<_0xf2c5db[_0x254dfd(0x1e0)]){if(_0x1b58cb<_0x7ce667[_0x254dfd(0x1e0)]&&_0x1abe7a<_0x516562[_0x254dfd(0x1e0)]&&_0x516562[_0x1abe7a]===_0x7ce667[_0x1b58cb])_0x3950d3<_0xf2c5db[_0x254dfd(0x1e0)]&&_0xf2c5db[_0x3950d3]===_0x7ce667[_0x1b58cb]?(_0xc927a4['push']({'type':_0x254dfd(0x1ee),'content':_0x516562[_0x1abe7a]}),_0x1abe7a++,_0x3950d3++,_0x1b58cb++):(_0xc927a4[_0x254dfd(0x1f4)]({'type':_0x254dfd(0x1ef),'content':_0xf2c5db[_0x3950d3]}),_0x3950d3++);else{if(_0x1b58cb<_0x7ce667[_0x254dfd(0x1e0)]&&_0x3950d3<_0xf2c5db[_0x254dfd(0x1e0)]&&_0xf2c5db[_0x3950d3]===_0x7ce667[_0x1b58cb])_0xc927a4[_0x254dfd(0x1f4)]({'type':_0x254dfd(0x1e8),'content':_0x516562[_0x1abe7a]}),_0x1abe7a++;else{if(_0x1abe7a<_0x516562[_0x254dfd(0x1e0)]&&(_0x1b58cb>=_0x7ce667[_0x254dfd(0x1e0)]||_0x516562[_0x1abe7a]!==_0x7ce667[_0x1b58cb]))_0xc927a4[_0x254dfd(0x1f4)]({'type':'removed','content':_0x516562[_0x1abe7a]}),_0x1abe7a++;else _0x3950d3<_0xf2c5db[_0x254dfd(0x1e0)]&&(_0xc927a4['push']({'type':_0x254dfd(0x1ef),'content':_0xf2c5db[_0x3950d3]}),_0x3950d3++);}}}return _0xc927a4;}function computeLCS(_0x309fb1,_0x1283c7){const _0x4b24d2=a171_0x2586,_0x5eb92e=_0x309fb1[_0x4b24d2(0x1e0)],_0xcc4cc9=_0x1283c7[_0x4b24d2(0x1e0)],_0x15b6d2=Array(_0x5eb92e+0x1)[_0x4b24d2(0x1f6)](null)[_0x4b24d2(0x1e4)](()=>Array(_0xcc4cc9+0x1)[_0x4b24d2(0x1f6)](0x0));for(let _0x4133ac=0x1;_0x4133ac<=_0x5eb92e;_0x4133ac++){for(let _0x195c1e=0x1;_0x195c1e<=_0xcc4cc9;_0x195c1e++){_0x309fb1[_0x4133ac-0x1]===_0x1283c7[_0x195c1e-0x1]?_0x15b6d2[_0x4133ac][_0x195c1e]=_0x15b6d2[_0x4133ac-0x1][_0x195c1e-0x1]+0x1:_0x15b6d2[_0x4133ac][_0x195c1e]=Math[_0x4b24d2(0x1f0)](_0x15b6d2[_0x4133ac-0x1][_0x195c1e],_0x15b6d2[_0x4133ac][_0x195c1e-0x1]);}}const _0xec12cd=[];let _0x4a7306=_0x5eb92e,_0x69f583=_0xcc4cc9;while(_0x4a7306>0x0&&_0x69f583>0x0){if(_0x309fb1[_0x4a7306-0x1]===_0x1283c7[_0x69f583-0x1])_0xec12cd[_0x4b24d2(0x1fe)](_0x309fb1[_0x4a7306-0x1]),_0x4a7306--,_0x69f583--;else _0x15b6d2[_0x4a7306-0x1][_0x69f583]>_0x15b6d2[_0x4a7306][_0x69f583-0x1]?_0x4a7306--:_0x69f583--;}return _0xec12cd;}export function formatDiffWithColors(_0x4e18df,_0xf789e3=0x3){const _0x25ee8c=a171_0x2586,_0x208fdd=new Set();_0x4e18df[_0x25ee8c(0x1ff)]((_0x4f63f5,_0x2ca4d2)=>{const _0x4cf713=_0x25ee8c;_0x4f63f5[_0x4cf713(0x1ec)]!=='unchanged'&&_0x208fdd['add'](_0x2ca4d2);});if(_0x208fdd[_0x25ee8c(0x1fc)]===0x0)return'';const _0x3277c=new Set();for(const _0x520a28 of _0x208fdd){for(let _0x4c7f6f=Math[_0x25ee8c(0x1f0)](0x0,_0x520a28-_0xf789e3);_0x4c7f6f<=Math['min'](_0x4e18df[_0x25ee8c(0x1e0)]-0x1,_0x520a28+_0xf789e3);_0x4c7f6f++){_0x3277c['add'](_0x4c7f6f);}}const _0x9325f8=[];let _0x2ce94e=-0x1;const _0x3f0377=_0x4e18df[_0x25ee8c(0x1e0)],_0x1357ad=Math[_0x25ee8c(0x1f0)](0x3,String(_0x3f0377)[_0x25ee8c(0x1e0)]),_0xda2562=[];let _0x147354=0x0,_0x1baa5a=0x0;for(const _0x276ef5 of _0x4e18df){if(_0x276ef5[_0x25ee8c(0x1ec)]===_0x25ee8c(0x1e8))_0x147354++,_0xda2562[_0x25ee8c(0x1f4)]({'old':_0x147354,'new':0x0});else _0x276ef5[_0x25ee8c(0x1ec)]==='added'?(_0x1baa5a++,_0xda2562[_0x25ee8c(0x1f4)]({'old':0x0,'new':_0x1baa5a})):(_0x147354++,_0x1baa5a++,_0xda2562[_0x25ee8c(0x1f4)]({'old':_0x147354,'new':_0x1baa5a}));}for(let _0x55d3fb=0x0;_0x55d3fb<_0x4e18df[_0x25ee8c(0x1e0)];_0x55d3fb++){if(!_0x3277c[_0x25ee8c(0x1f8)](_0x55d3fb))continue;_0x2ce94e!==-0x1&&_0x55d3fb>_0x2ce94e+0x1&&_0x9325f8[_0x25ee8c(0x1f4)](a171_0x515541[_0x25ee8c(0x1de)](_0x25ee8c(0x1f3)));_0x2ce94e=_0x55d3fb;const _0x427603=_0x4e18df[_0x55d3fb],_0x36e57e=_0xda2562[_0x55d3fb],_0x1028a4=_0x36e57e[_0x25ee8c(0x1eb)]>0x0?String(_0x36e57e[_0x25ee8c(0x1eb)])[_0x25ee8c(0x1f7)](_0x1357ad):'\x20'['repeat'](_0x1357ad),_0x12444d=_0x36e57e['new']>0x0?String(_0x36e57e['new'])[_0x25ee8c(0x1f7)](_0x1357ad):'\x20'[_0x25ee8c(0x1e7)](_0x1357ad);switch(_0x427603[_0x25ee8c(0x1ec)]){case _0x25ee8c(0x1e8):_0x9325f8[_0x25ee8c(0x1f4)](a171_0x515541[_0x25ee8c(0x1f2)](_0x1028a4+'\x20'+_0x12444d+_0x25ee8c(0x1fa)+_0x427603['content']));break;case'added':_0x9325f8[_0x25ee8c(0x1f4)](a171_0x515541['green'](_0x1028a4+'\x20'+_0x12444d+_0x25ee8c(0x1e9)+_0x427603[_0x25ee8c(0x1df)]));break;default:_0x9325f8[_0x25ee8c(0x1f4)](a171_0x515541[_0x25ee8c(0x1fd)](_0x1028a4+'\x20'+_0x12444d+_0x25ee8c(0x1f5)+_0x427603[_0x25ee8c(0x1df)]));break;}}return _0x9325f8[_0x25ee8c(0x1e1)]('\x0a');}function a171_0x2586(_0x29d594,_0x55166e){_0x29d594=_0x29d594-0x1de;const _0x17ba00=a171_0x17ba();let _0x258624=_0x17ba00[_0x29d594];return _0x258624;}export function hasChanges(_0x3adda8){const _0x37a8bf=a171_0x2586;return _0x3adda8[_0x37a8bf(0x1f9)](_0x5d8c52=>_0x5d8c52[_0x37a8bf(0x1ec)]!==_0x37a8bf(0x1ee));}function a171_0x17ba(){const _0x15e8c8=['90rQIUMt','repeat','removed','\x20+\x20','1609493qbEodJ','old','type','28430TsnPdo','unchanged','added','max','split','red','\x20\x20...','push','\x20\x20\x20','fill','padStart','has','some','\x20-\x20','6006267vFkaBt','size','dim','unshift','forEach','2213476gHLvqk','354vWBhxw','8674928yjxwcV','cyan','content','length','join','16518xBSQID','12752474VaongB','map','684QIQhoS'];a171_0x17ba=function(){return _0x15e8c8;};return a171_0x17ba();}
@@ -1 +1 @@
1
- function a172_0x4b94(){const _0x725c06=['warn','8pHGJjn','Warning:\x20','dirname','writeFileSync','804332qgwgXF',').\x20','mkdirSync','\x20has\x20insecure\x20permissions\x20(','256649LmmfPK','toString','16eWiIQO','3965544jQvWnU','existsSync','mode','chmodSync','1969446vRfNHO','Should\x20be\x200600\x20or\x20more\x20restrictive.','911065fyGfsE','1156246yYBEnk','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1231578oXLXVc','statSync'];a172_0x4b94=function(){return _0x725c06;};return a172_0x4b94();}(function(_0xff15a6,_0x48f4a3){const _0x569002=a172_0xe2c6,_0x53afe7=_0xff15a6();while(!![]){try{const _0x4a01a5=-parseInt(_0x569002(0x121))/0x1+-parseInt(_0x569002(0x11d))/0x2+parseInt(_0x569002(0x128))/0x3+-parseInt(_0x569002(0x123))/0x4*(-parseInt(_0x569002(0x12a))/0x5)+-parseInt(_0x569002(0x124))/0x6+-parseInt(_0x569002(0x12b))/0x7*(-parseInt(_0x569002(0x130))/0x8)+parseInt(_0x569002(0x12d))/0x9;if(_0x4a01a5===_0x48f4a3)break;else _0x53afe7['push'](_0x53afe7['shift']());}catch(_0x2adee3){_0x53afe7['push'](_0x53afe7['shift']());}}}(a172_0x4b94,0x59bff));import*as a172_0x3b0918 from'node:fs';import*as a172_0x162fa6 from'node:path';export function setSecureFilePermissions(_0x496d33){const _0x22a609=a172_0xe2c6;try{a172_0x3b0918[_0x22a609(0x127)](_0x496d33,0x180);}catch{console['warn'](_0x22a609(0x12c)+_0x496d33);}}export function setSecureDirectoryPermissions(_0x57f03e){const _0x1e8217=a172_0xe2c6;try{a172_0x3b0918['chmodSync'](_0x57f03e,0x1c0);}catch{console['warn'](_0x1e8217(0x12c)+_0x57f03e);}}function a172_0xe2c6(_0x533b5c,_0x1f1107){_0x533b5c=_0x533b5c-0x11a;const _0x4b94a9=a172_0x4b94();let _0xe2c65f=_0x4b94a9[_0x533b5c];return _0xe2c65f;}export function createSecureDirectory(_0x2956c6){const _0x557806=a172_0xe2c6;!a172_0x3b0918[_0x557806(0x125)](_0x2956c6)&&(a172_0x3b0918[_0x557806(0x11f)](_0x2956c6,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2956c6));}export function validateSecureFilePermissions(_0x47523b){const _0x42630b=a172_0xe2c6;try{const _0x24e4a8=a172_0x3b0918[_0x42630b(0x12e)](_0x47523b),_0x15dcd6=_0x24e4a8[_0x42630b(0x126)]&0x1ff,_0x56c01a=(_0x15dcd6&0x3f)!==0x0;if(_0x56c01a)return console[_0x42630b(0x12f)](_0x42630b(0x11a)+_0x47523b+_0x42630b(0x120)+_0x15dcd6[_0x42630b(0x122)](0x8)+_0x42630b(0x11e)+_0x42630b(0x129)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x356c59,_0x1a4340){const _0x211a28=a172_0xe2c6,_0x5ad299=a172_0x162fa6[_0x211a28(0x11b)](_0x356c59);createSecureDirectory(_0x5ad299),a172_0x3b0918[_0x211a28(0x11c)](_0x356c59,_0x1a4340,{'mode':0x180}),setSecureFilePermissions(_0x356c59);}
1
+ (function(_0x25dd44,_0x1d7d99){const _0x359081=a172_0x31aa,_0x556f0c=_0x25dd44();while(!![]){try{const _0x56721f=-parseInt(_0x359081(0x1ba))/0x1*(-parseInt(_0x359081(0x1b7))/0x2)+-parseInt(_0x359081(0x1bb))/0x3*(-parseInt(_0x359081(0x1c6))/0x4)+-parseInt(_0x359081(0x1c2))/0x5+-parseInt(_0x359081(0x1bc))/0x6+-parseInt(_0x359081(0x1c8))/0x7*(-parseInt(_0x359081(0x1c7))/0x8)+parseInt(_0x359081(0x1c5))/0x9*(-parseInt(_0x359081(0x1cc))/0xa)+parseInt(_0x359081(0x1b9))/0xb*(parseInt(_0x359081(0x1bf))/0xc);if(_0x56721f===_0x1d7d99)break;else _0x556f0c['push'](_0x556f0c['shift']());}catch(_0x30f137){_0x556f0c['push'](_0x556f0c['shift']());}}}(a172_0x62ac,0xdd16c));import*as a172_0x5b16e5 from'node:fs';import*as a172_0x1b3825 from'node:path';export function setSecureFilePermissions(_0x5994ad){const _0x4353dd=a172_0x31aa;try{a172_0x5b16e5[_0x4353dd(0x1b8)](_0x5994ad,0x180);}catch{console['warn'](_0x4353dd(0x1b6)+_0x5994ad);}}export function setSecureDirectoryPermissions(_0x23f4d5){const _0x474d77=a172_0x31aa;try{a172_0x5b16e5[_0x474d77(0x1b8)](_0x23f4d5,0x1c0);}catch{console['warn'](_0x474d77(0x1b6)+_0x23f4d5);}}export function createSecureDirectory(_0x1f4f69){const _0x1ecf68=a172_0x31aa;!a172_0x5b16e5[_0x1ecf68(0x1cb)](_0x1f4f69)&&(a172_0x5b16e5[_0x1ecf68(0x1b5)](_0x1f4f69,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1f4f69));}export function validateSecureFilePermissions(_0x276776){const _0x5ad695=a172_0x31aa;try{const _0x46e1a9=a172_0x5b16e5[_0x5ad695(0x1bd)](_0x276776),_0x4d23b8=_0x46e1a9[_0x5ad695(0x1c4)]&0x1ff,_0xbc2f79=(_0x4d23b8&0x3f)!==0x0;if(_0xbc2f79)return console[_0x5ad695(0x1c3)](_0x5ad695(0x1c1)+_0x276776+_0x5ad695(0x1c0)+_0x4d23b8[_0x5ad695(0x1b4)](0x8)+_0x5ad695(0x1be)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3705e2,_0x29a387){const _0x22d063=a172_0x31aa,_0x1ca39f=a172_0x1b3825[_0x22d063(0x1ca)](_0x3705e2);createSecureDirectory(_0x1ca39f),a172_0x5b16e5[_0x22d063(0x1c9)](_0x3705e2,_0x29a387,{'mode':0x180}),setSecureFilePermissions(_0x3705e2);}function a172_0x31aa(_0x53d562,_0x2f968c){_0x53d562=_0x53d562-0x1b4;const _0x62ac1c=a172_0x62ac();let _0x31aa57=_0x62ac1c[_0x53d562];return _0x31aa57;}function a172_0x62ac(){const _0x281e41=['warn','mode','45geejJy','9332wzaYIm','8QjirBG','5378583awtAyl','writeFileSync','dirname','existsSync','2578790HMHKij','toString','mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','8wamaLa','chmodSync','11NiZlHZ','118984VbdOoN','591GJvtrl','4856538ZjHDRJ','statSync',').\x20','28909644xqDVAb','\x20has\x20insecure\x20permissions\x20(','Warning:\x20','5543225HvozFi'];a172_0x62ac=function(){return _0x281e41;};return a172_0x62ac();}
@@ -1 +1 @@
1
- (function(_0x50c3ca,_0x21d0f3){const _0x572cc2=a173_0x43a1,_0x564831=_0x50c3ca();while(!![]){try{const _0x38c9f2=parseInt(_0x572cc2(0xde))/0x1*(parseInt(_0x572cc2(0xdd))/0x2)+-parseInt(_0x572cc2(0xda))/0x3*(parseInt(_0x572cc2(0xd6))/0x4)+parseInt(_0x572cc2(0xd5))/0x5*(-parseInt(_0x572cc2(0xd4))/0x6)+parseInt(_0x572cc2(0xd9))/0x7+parseInt(_0x572cc2(0xd3))/0x8*(parseInt(_0x572cc2(0xdf))/0x9)+parseInt(_0x572cc2(0xdb))/0xa+-parseInt(_0x572cc2(0xe3))/0xb;if(_0x38c9f2===_0x21d0f3)break;else _0x564831['push'](_0x564831['shift']());}catch(_0x3e2e3f){_0x564831['push'](_0x564831['shift']());}}}(a173_0x1572,0x9e05c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';function a173_0x1572(){const _0x2af628=['9451340dszmem','replace','24582ryVypI','43PTekdM','1053eTohZQ','\x22\x20already\x20registered\x20by\x20\x22','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','15604094rgJrdT','Global\x20cache\x20key\x20\x22','.cache','14704veBQsg','6VGsCMg','1796025rwAahC','116OaFdeg','{profile}','stringify','6976613HtrNKb','26931ERTeYG'];a173_0x1572=function(){return _0x2af628;};return a173_0x1572();}export function getGlobalCacheDir(){const _0x3242a1=a173_0x43a1;return process.env.TDX_CACHE_DIR||join(homedir(),_0x3242a1(0xd2),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x5d26e0,_0x54a57b){const _0x29d260=a173_0x43a1,_0x3c6e88=registry['get'](_0x5d26e0);if(_0x3c6e88&&_0x3c6e88!==_0x54a57b)throw new Error(_0x29d260(0xe4)+_0x5d26e0+_0x29d260(0xe0)+_0x3c6e88+_0x29d260(0xe2)+_0x54a57b+'\x22');registry['set'](_0x5d26e0,_0x54a57b);}function a173_0x43a1(_0x1cb0c4,_0xf40ef3){_0x1cb0c4=_0x1cb0c4-0xd2;const _0x1572a7=a173_0x1572();let _0x43a1fe=_0x1572a7[_0x1cb0c4];return _0x43a1fe;}export function getGlobalCachePath(_0x1eeeca){return join(getGlobalCacheDir(),_0x1eeeca);}function ensureGlobalCacheDir(){const _0x5a426f=getGlobalCacheDir();!existsSync(_0x5a426f)&&mkdirSync(_0x5a426f,{'recursive':!![]});}function readCacheJson(_0x3c96b6){const _0x5cb775=a173_0x43a1,_0x4fe0fc=getGlobalCachePath(_0x3c96b6);if(!existsSync(_0x4fe0fc))return undefined;try{const _0x25d49c=readFileSync(_0x4fe0fc,_0x5cb775(0xe1));return JSON['parse'](_0x25d49c);}catch{return undefined;}}function writeCacheJson(_0x1964ed,_0x270d9b){const _0x1cdd81=a173_0x43a1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1964ed),JSON[_0x1cdd81(0xd8)](_0x270d9b,null,0x2),_0x1cdd81(0xe1));}function readCacheText(_0x2d214e){const _0x59bbbd=a173_0x43a1,_0x59f22b=getGlobalCachePath(_0x2d214e);if(!existsSync(_0x59f22b))return undefined;try{return readFileSync(_0x59f22b,_0x59bbbd(0xe1));}catch{return undefined;}}function writeCacheText(_0x2891e,_0x135b7a){const _0x1030be=a173_0x43a1;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2891e),_0x135b7a,_0x1030be(0xe1));}function clearCache(_0x1679ad){const _0x246c69=getGlobalCachePath(_0x1679ad);if(existsSync(_0x246c69))try{unlinkSync(_0x246c69);}catch{}}function cacheExists(_0xff8c25){return existsSync(getGlobalCachePath(_0xff8c25));}export function createGlobalCache(_0x29c581,_0x54cebd){return registerGlobalCacheKey(_0x29c581,_0x54cebd),{'read':()=>readCacheJson(_0x29c581),'write':_0x5cb544=>writeCacheJson(_0x29c581,_0x5cb544),'clear':()=>clearCache(_0x29c581),'exists':()=>cacheExists(_0x29c581),'path':()=>getGlobalCachePath(_0x29c581)};}export function createGlobalTextCache(_0xb483bb,_0x5a7502){return registerGlobalCacheKey(_0xb483bb,_0x5a7502),{'read':()=>readCacheText(_0xb483bb)?.['trim']()||undefined,'write':_0x1d73c6=>writeCacheText(_0xb483bb,_0x1d73c6),'clear':()=>clearCache(_0xb483bb),'exists':()=>cacheExists(_0xb483bb),'path':()=>getGlobalCachePath(_0xb483bb)};}export function createProfileCache(_0x3eedb8,_0x378f7f){const _0x21be11=_0x4ba086=>{const _0x12e11b=a173_0x43a1,_0x162cc3=_0x4ba086||'default';return _0x3eedb8[_0x12e11b(0xdc)](_0x12e11b(0xd7),_0x162cc3);};return{'read':_0x4f4eb5=>{const _0x41e4c1=_0x21be11(_0x4f4eb5);return registerGlobalCacheKey(_0x41e4c1,_0x378f7f),readCacheJson(_0x41e4c1);},'write':(_0x19fc7f,_0x429888)=>{const _0x15e1de=_0x21be11(_0x19fc7f);registerGlobalCacheKey(_0x15e1de,_0x378f7f),writeCacheJson(_0x15e1de,_0x429888);},'clear':_0x5f09cf=>{const _0x36e820=_0x21be11(_0x5f09cf);clearCache(_0x36e820);},'exists':_0x1a4278=>{const _0x22082c=_0x21be11(_0x1a4278);return cacheExists(_0x22082c);},'path':_0x53e1dd=>{const _0x36e25c=_0x21be11(_0x53e1dd);return getGlobalCachePath(_0x36e25c);}};}export function createOptionalProfileCache(_0x1f510b,_0x3f0a0f,_0x367eaf={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x367eaf,_0x28d389=_0x572a69=>{return _0x572a69?''+_0x1f510b+profileSeparator+_0x572a69+suffix:''+_0x1f510b+suffix;};return{'read':_0x36c0dc=>{const _0x4f3dac=_0x28d389(_0x36c0dc);return registerGlobalCacheKey(_0x4f3dac,_0x3f0a0f),readCacheJson(_0x4f3dac);},'write':(_0x49d991,_0x3299f4)=>{const _0x397271=_0x28d389(_0x3299f4);registerGlobalCacheKey(_0x397271,_0x3f0a0f),writeCacheJson(_0x397271,_0x49d991);},'clear':_0x5842e3=>{const _0x2b6786=_0x28d389(_0x5842e3);clearCache(_0x2b6786);},'exists':_0x4642c0=>{const _0x24c9d1=_0x28d389(_0x4642c0);return cacheExists(_0x24c9d1);},'path':_0x52731a=>{const _0x16d85d=_0x28d389(_0x52731a);return getGlobalCachePath(_0x16d85d);}};}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x1cc4ef,_0x3acd33){const _0x5ce8a5=a173_0x4f41,_0x8247a5=_0x1cc4ef();while(!![]){try{const _0x58f1f1=-parseInt(_0x5ce8a5(0xcc))/0x1*(parseInt(_0x5ce8a5(0xc5))/0x2)+-parseInt(_0x5ce8a5(0xc2))/0x3*(parseInt(_0x5ce8a5(0xca))/0x4)+parseInt(_0x5ce8a5(0xd0))/0x5*(parseInt(_0x5ce8a5(0xd2))/0x6)+-parseInt(_0x5ce8a5(0xc6))/0x7+-parseInt(_0x5ce8a5(0xc9))/0x8+-parseInt(_0x5ce8a5(0xcb))/0x9+parseInt(_0x5ce8a5(0xc4))/0xa;if(_0x58f1f1===_0x3acd33)break;else _0x8247a5['push'](_0x8247a5['shift']());}catch(_0x4480eb){_0x8247a5['push'](_0x8247a5['shift']());}}}(a173_0x5ab9,0x3a166));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';function a173_0x4f41(_0x5afd3d,_0x27857a){_0x5afd3d=_0x5afd3d-0xc2;const _0x5ab9d9=a173_0x5ab9();let _0x4f41b8=_0x5ab9d9[_0x5afd3d];return _0x4f41b8;}export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x197fdf,_0x4ce92e){const _0x44d9b3=a173_0x4f41,_0x534f03=registry[_0x44d9b3(0xc3)](_0x197fdf);if(_0x534f03&&_0x534f03!==_0x4ce92e)throw new Error(_0x44d9b3(0xcd)+_0x197fdf+'\x22\x20already\x20registered\x20by\x20\x22'+_0x534f03+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x4ce92e+'\x22');registry[_0x44d9b3(0xc7)](_0x197fdf,_0x4ce92e);}export function getGlobalCachePath(_0x4947e3){return join(getGlobalCacheDir(),_0x4947e3);}function ensureGlobalCacheDir(){const _0x3b14c6=getGlobalCacheDir();!existsSync(_0x3b14c6)&&mkdirSync(_0x3b14c6,{'recursive':!![]});}function readCacheJson(_0x149cba){const _0x5b0668=a173_0x4f41,_0x2361a1=getGlobalCachePath(_0x149cba);if(!existsSync(_0x2361a1))return undefined;try{const _0x36f2ad=readFileSync(_0x2361a1,'utf-8');return JSON[_0x5b0668(0xc8)](_0x36f2ad);}catch{return undefined;}}function writeCacheJson(_0xb21db7,_0x276dc8){const _0x2c4156=a173_0x4f41;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xb21db7),JSON['stringify'](_0x276dc8,null,0x2),_0x2c4156(0xcf));}function a173_0x5ab9(){const _0x39a25f=['parse','1039576icINeV','36436BfQhky','3233700WtZbfG','237dsdRbE','Global\x20cache\x20key\x20\x22','{profile}','utf-8','5BxNVFk','default','1972914OzoQpT','57yjjuao','get','14122210okRzGD','3494nGKwEc','2987299Xbxdme','set'];a173_0x5ab9=function(){return _0x39a25f;};return a173_0x5ab9();}function readCacheText(_0x145f74){const _0x2789ce=a173_0x4f41,_0x39a6fa=getGlobalCachePath(_0x145f74);if(!existsSync(_0x39a6fa))return undefined;try{return readFileSync(_0x39a6fa,_0x2789ce(0xcf));}catch{return undefined;}}function writeCacheText(_0x5117b8,_0x31cd1c){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5117b8),_0x31cd1c,'utf-8');}function clearCache(_0x1f2720){const _0x365365=getGlobalCachePath(_0x1f2720);if(existsSync(_0x365365))try{unlinkSync(_0x365365);}catch{}}function cacheExists(_0x27527a){return existsSync(getGlobalCachePath(_0x27527a));}export function createGlobalCache(_0x501fb5,_0x3abdcd){return registerGlobalCacheKey(_0x501fb5,_0x3abdcd),{'read':()=>readCacheJson(_0x501fb5),'write':_0x172c18=>writeCacheJson(_0x501fb5,_0x172c18),'clear':()=>clearCache(_0x501fb5),'exists':()=>cacheExists(_0x501fb5),'path':()=>getGlobalCachePath(_0x501fb5)};}export function createGlobalTextCache(_0x1976d2,_0x5948d8){return registerGlobalCacheKey(_0x1976d2,_0x5948d8),{'read':()=>readCacheText(_0x1976d2)?.['trim']()||undefined,'write':_0x1313ca=>writeCacheText(_0x1976d2,_0x1313ca),'clear':()=>clearCache(_0x1976d2),'exists':()=>cacheExists(_0x1976d2),'path':()=>getGlobalCachePath(_0x1976d2)};}export function createProfileCache(_0x4a28b6,_0x112d9b){const _0x3b04e6=_0x451578=>{const _0x4e42a9=a173_0x4f41,_0x5e8ade=_0x451578||_0x4e42a9(0xd1);return _0x4a28b6['replace'](_0x4e42a9(0xce),_0x5e8ade);};return{'read':_0x3927f2=>{const _0x24e6d6=_0x3b04e6(_0x3927f2);return registerGlobalCacheKey(_0x24e6d6,_0x112d9b),readCacheJson(_0x24e6d6);},'write':(_0x529389,_0x230290)=>{const _0x1c3736=_0x3b04e6(_0x529389);registerGlobalCacheKey(_0x1c3736,_0x112d9b),writeCacheJson(_0x1c3736,_0x230290);},'clear':_0x33a9c8=>{const _0x294ab7=_0x3b04e6(_0x33a9c8);clearCache(_0x294ab7);},'exists':_0x44ba0d=>{const _0x236550=_0x3b04e6(_0x44ba0d);return cacheExists(_0x236550);},'path':_0x5d9e8a=>{const _0x5c1ff8=_0x3b04e6(_0x5d9e8a);return getGlobalCachePath(_0x5c1ff8);}};}export function createOptionalProfileCache(_0xc61195,_0x4b9651,_0x5a2eec={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x5a2eec,_0x5474ef=_0x1c5183=>{return _0x1c5183?''+_0xc61195+profileSeparator+_0x1c5183+suffix:''+_0xc61195+suffix;};return{'read':_0x4f2442=>{const _0x3c3c20=_0x5474ef(_0x4f2442);return registerGlobalCacheKey(_0x3c3c20,_0x4b9651),readCacheJson(_0x3c3c20);},'write':(_0x246b24,_0x2cdfbf)=>{const _0x14c114=_0x5474ef(_0x2cdfbf);registerGlobalCacheKey(_0x14c114,_0x4b9651),writeCacheJson(_0x14c114,_0x246b24);},'clear':_0x54aa45=>{const _0x33fb39=_0x5474ef(_0x54aa45);clearCache(_0x33fb39);},'exists':_0x26a2b4=>{const _0x211b3c=_0x5474ef(_0x26a2b4);return cacheExists(_0x211b3c);},'path':_0x5ad50a=>{const _0x4524f0=_0x5474ef(_0x5ad50a);return getGlobalCachePath(_0x4524f0);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- function a174_0x3a8c(_0x48dfc9,_0x54cfc3){_0x48dfc9=_0x48dfc9-0x1b2;const _0x544276=a174_0x5442();let _0x3a8ccc=_0x544276[_0x48dfc9];return _0x3a8ccc;}function a174_0x5442(){const _0x398f4b=['INTERNAL','EACCES','21uAsrmo','File\x20not\x20found:\x20','INVALID_ARGUMENT','3022EwPtTc','Permission\x20denied\x20reading\x20file:\x20','57080zrrbMY','828919PMOMVu','message','1793040YWGLOB','PERMISSION_DENIED','10TPaUzr','6394255ZyFbhr','code','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','utf-8','parse','\x27:\x20','20324043VkkCaW','ENOENT','Invalid\x20JSON\x20string:\x20','NOT_FOUND','910752NvJYsy','Invalid\x20JSON\x20in\x20file\x20\x27'];a174_0x5442=function(){return _0x398f4b;};return a174_0x5442();}(function(_0x339785,_0x43ac76){const _0x1da31c=a174_0x3a8c,_0x38dbdb=_0x339785();while(!![]){try{const _0x515763=-parseInt(_0x1da31c(0x1c9))/0x1+parseInt(_0x1da31c(0x1c6))/0x2*(-parseInt(_0x1da31c(0x1c3))/0x3)+parseInt(_0x1da31c(0x1c8))/0x4*(parseInt(_0x1da31c(0x1b4))/0x5)+-parseInt(_0x1da31c(0x1bf))/0x6+-parseInt(_0x1da31c(0x1b5))/0x7+parseInt(_0x1da31c(0x1b2))/0x8+parseInt(_0x1da31c(0x1bb))/0x9;if(_0x515763===_0x43ac76)break;else _0x38dbdb['push'](_0x38dbdb['shift']());}catch(_0x1717a1){_0x38dbdb['push'](_0x38dbdb['shift']());}}}(a174_0x5442,0x93fc0));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2cdf58,_0x1e9d85){const _0xdd7feb=a174_0x3a8c;try{if(_0x1e9d85){const _0x2959c5=await readFile(_0x2cdf58,_0xdd7feb(0x1b8));try{return JSON[_0xdd7feb(0x1b9)](_0x2959c5);}catch(_0x11a30e){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xdd7feb(0x1c0)+_0x2cdf58+_0xdd7feb(0x1ba)+(_0x11a30e instanceof Error?_0x11a30e[_0xdd7feb(0x1ca)]:String(_0x11a30e)));}}else try{return JSON[_0xdd7feb(0x1b9)](_0x2cdf58);}catch(_0x4b90c4){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xdd7feb(0x1bd)+(_0x4b90c4 instanceof Error?_0x4b90c4['message']:String(_0x4b90c4)));}}catch(_0x3036db){if(_0x3036db instanceof SDKError)throw _0x3036db;if(_0x3036db instanceof Error&&_0xdd7feb(0x1b6)in _0x3036db){const _0x3baf15=_0x3036db;if(_0x3baf15[_0xdd7feb(0x1b6)]===_0xdd7feb(0x1bc))throw new SDKError(ErrorCode[_0xdd7feb(0x1be)],_0xdd7feb(0x1c4)+_0x2cdf58);else{if(_0x3baf15[_0xdd7feb(0x1b6)]===_0xdd7feb(0x1c2))throw new SDKError(ErrorCode[_0xdd7feb(0x1b3)],_0xdd7feb(0x1c7)+_0x2cdf58);}}throw new SDKError(ErrorCode[_0xdd7feb(0x1c1)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3036db instanceof Error?_0x3036db[_0xdd7feb(0x1ca)]:String(_0x3036db)));}}export async function loadJSONFromOptions(_0xa5588a,_0x274b52){const _0xbe40d4=a174_0x3a8c;if(_0xa5588a&&_0x274b52)throw new SDKError(ErrorCode[_0xbe40d4(0x1c5)],_0xbe40d4(0x1b7));if(_0xa5588a)return await loadJSON(_0xa5588a,![]);if(_0x274b52)return await loadJSON(_0x274b52,!![]);return undefined;}
1
+ (function(_0x41a1b2,_0x3e5e3e){const _0x1923ee=a174_0x58c4,_0x5e5917=_0x41a1b2();while(!![]){try{const _0x186831=-parseInt(_0x1923ee(0x130))/0x1+parseInt(_0x1923ee(0x137))/0x2*(-parseInt(_0x1923ee(0x128))/0x3)+-parseInt(_0x1923ee(0x139))/0x4*(-parseInt(_0x1923ee(0x13b))/0x5)+parseInt(_0x1923ee(0x138))/0x6+parseInt(_0x1923ee(0x126))/0x7+parseInt(_0x1923ee(0x132))/0x8*(parseInt(_0x1923ee(0x136))/0x9)+-parseInt(_0x1923ee(0x13a))/0xa;if(_0x186831===_0x3e5e3e)break;else _0x5e5917['push'](_0x5e5917['shift']());}catch(_0x2489b9){_0x5e5917['push'](_0x5e5917['shift']());}}}(a174_0x720c,0x356a4));function a174_0x720c(){const _0x503b14=['978018GhaAtv','4CuECcJ','2944000SeXlmM','1564815ZrQBVx','NOT_FOUND','\x27:\x20','1958110jzdvLw','EACCES','3tbuCCN','message','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','parse','utf-8','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20string:\x20','320385mEzjZQ','ENOENT','2464KjLZlb','INVALID_ARGUMENT','PERMISSION_DENIED','INTERNAL','5490mutCyF','220006sGrpMQ'];a174_0x720c=function(){return _0x503b14;};return a174_0x720c();}function a174_0x58c4(_0x298dc6,_0x1add83){_0x298dc6=_0x298dc6-0x124;const _0x720c50=a174_0x720c();let _0x58c4d8=_0x720c50[_0x298dc6];return _0x58c4d8;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2ec0e1,_0xf43cf1){const _0x1c9826=a174_0x58c4;try{if(_0xf43cf1){const _0xbb4644=await readFile(_0x2ec0e1,_0x1c9826(0x12d));try{return JSON[_0x1c9826(0x12c)](_0xbb4644);}catch(_0x536d57){throw new SDKError(ErrorCode[_0x1c9826(0x133)],_0x1c9826(0x12b)+_0x2ec0e1+_0x1c9826(0x125)+(_0x536d57 instanceof Error?_0x536d57[_0x1c9826(0x129)]:String(_0x536d57)));}}else try{return JSON['parse'](_0x2ec0e1);}catch(_0x41ad79){throw new SDKError(ErrorCode[_0x1c9826(0x133)],_0x1c9826(0x12f)+(_0x41ad79 instanceof Error?_0x41ad79[_0x1c9826(0x129)]:String(_0x41ad79)));}}catch(_0x4db443){if(_0x4db443 instanceof SDKError)throw _0x4db443;if(_0x4db443 instanceof Error&&'code'in _0x4db443){const _0x433630=_0x4db443;if(_0x433630['code']===_0x1c9826(0x131))throw new SDKError(ErrorCode[_0x1c9826(0x124)],'File\x20not\x20found:\x20'+_0x2ec0e1);else{if(_0x433630['code']===_0x1c9826(0x127))throw new SDKError(ErrorCode[_0x1c9826(0x134)],_0x1c9826(0x12a)+_0x2ec0e1);}}throw new SDKError(ErrorCode[_0x1c9826(0x135)],_0x1c9826(0x12e)+(_0x4db443 instanceof Error?_0x4db443[_0x1c9826(0x129)]:String(_0x4db443)));}}export async function loadJSONFromOptions(_0x4baf55,_0x34c7b6){const _0x4937b3=a174_0x58c4;if(_0x4baf55&&_0x34c7b6)throw new SDKError(ErrorCode[_0x4937b3(0x133)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x4baf55)return await loadJSON(_0x4baf55,![]);if(_0x34c7b6)return await loadJSON(_0x34c7b6,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x233dfb,_0x27c748){const _0x235b5d=a175_0x279b,_0x56372f=_0x233dfb();while(!![]){try{const _0x419e9c=parseInt(_0x235b5d(0x1b3))/0x1+-parseInt(_0x235b5d(0x1b1))/0x2+-parseInt(_0x235b5d(0x1a5))/0x3+parseInt(_0x235b5d(0x1ac))/0x4+-parseInt(_0x235b5d(0x1af))/0x5*(parseInt(_0x235b5d(0x1ab))/0x6)+parseInt(_0x235b5d(0x1aa))/0x7*(-parseInt(_0x235b5d(0x1a8))/0x8)+parseInt(_0x235b5d(0x1ae))/0x9*(parseInt(_0x235b5d(0x1a7))/0xa);if(_0x419e9c===_0x27c748)break;else _0x56372f['push'](_0x56372f['shift']());}catch(_0x12d677){_0x56372f['push'](_0x56372f['shift']());}}}(a175_0x1aeb,0x27c9b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a175_0x1aeb(){const _0x501a4=['cwd','utf-8','41604CpmlQU','get','1920790pJHsNk','199736EdFVvr','Cache\x20key\x20\x22','56cusaIU','89358vWMULq','788052zyKhkB','stringify','18XOmGWG','20zJmYIZ','set','360564EATgxf','parse','35258WgZibg'];a175_0x1aeb=function(){return _0x501a4;};return a175_0x1aeb();}import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();function a175_0x279b(_0x5b9d8a,_0x1457e9){_0x5b9d8a=_0x5b9d8a-0x1a4;const _0x1aeb91=a175_0x1aeb();let _0x279b55=_0x1aeb91[_0x5b9d8a];return _0x279b55;}export function registerCacheKey(_0x219d4d,_0x23d641){const _0x350c89=a175_0x279b,_0x3333a7=registry[_0x350c89(0x1a6)](_0x219d4d);if(_0x3333a7&&_0x3333a7!==_0x23d641)throw new Error(_0x350c89(0x1a9)+_0x219d4d+'\x22\x20already\x20registered\x20by\x20\x22'+_0x3333a7+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x23d641+'\x22');registry[_0x350c89(0x1b0)](_0x219d4d,_0x23d641);}export function getCacheDir(){const _0x538075=a175_0x279b,_0x207a8c=process[_0x538075(0x1b4)](),_0x293710=_0x207a8c===parse(_0x207a8c)['root']?homedir():_0x207a8c;return join(_0x293710,LOCAL_CACHE_DIR);}export function getCachePath(_0x462543){return join(getCacheDir(),_0x462543);}function ensureCacheDir(){const _0x365f95=getCacheDir();!existsSync(_0x365f95)&&mkdirSync(_0x365f95,{'recursive':!![]});}function readCacheJson(_0x3ea81f){const _0x586b2a=a175_0x279b,_0x3a5fb7=getCachePath(_0x3ea81f);if(!existsSync(_0x3a5fb7))return undefined;try{const _0x6a852a=readFileSync(_0x3a5fb7,_0x586b2a(0x1a4));return JSON[_0x586b2a(0x1b2)](_0x6a852a);}catch{return undefined;}}function writeCacheJson(_0x2813e1,_0x52798b){const _0x2417fa=a175_0x279b;ensureCacheDir(),writeFileSync(getCachePath(_0x2813e1),JSON[_0x2417fa(0x1ad)](_0x52798b,null,0x2),_0x2417fa(0x1a4));}function readCacheText(_0x3fb55c){const _0x34167=a175_0x279b,_0x3757b1=getCachePath(_0x3fb55c);if(!existsSync(_0x3757b1))return undefined;try{return readFileSync(_0x3757b1,_0x34167(0x1a4));}catch{return undefined;}}function writeCacheText(_0x35d2c9,_0x10b4da){const _0x24058f=a175_0x279b;ensureCacheDir(),writeFileSync(getCachePath(_0x35d2c9),_0x10b4da,_0x24058f(0x1a4));}function clearCache(_0x3c8a26){const _0x1675ba=getCachePath(_0x3c8a26);if(existsSync(_0x1675ba))try{unlinkSync(_0x1675ba);}catch{}}function cacheExists(_0x17728d){return existsSync(getCachePath(_0x17728d));}export function createCache(_0x146d6d,_0x4fedff){return registerCacheKey(_0x146d6d,_0x4fedff),{'read':()=>readCacheJson(_0x146d6d),'write':_0x307833=>writeCacheJson(_0x146d6d,_0x307833),'clear':()=>clearCache(_0x146d6d),'exists':()=>cacheExists(_0x146d6d),'path':()=>getCachePath(_0x146d6d)};}export function createTextCache(_0x20f3d7,_0x2973b9){return registerCacheKey(_0x20f3d7,_0x2973b9),{'read':()=>readCacheText(_0x20f3d7)?.['trim']()||undefined,'write':_0x1ce84b=>writeCacheText(_0x20f3d7,_0x1ce84b),'clear':()=>clearCache(_0x20f3d7),'exists':()=>cacheExists(_0x20f3d7),'path':()=>getCachePath(_0x20f3d7)};}export function clearRegistry(){registry['clear']();}
1
+ const a175_0x260938=a175_0x110b;function a175_0x110b(_0x5e87e7,_0x57eff2){_0x5e87e7=_0x5e87e7-0x8b;const _0x170c40=a175_0x170c();let _0x110b64=_0x170c40[_0x5e87e7];return _0x110b64;}(function(_0x2060d0,_0x2c75ec){const _0x4405d9=a175_0x110b,_0x4a97e3=_0x2060d0();while(!![]){try{const _0x4c0c53=parseInt(_0x4405d9(0x90))/0x1*(-parseInt(_0x4405d9(0x94))/0x2)+parseInt(_0x4405d9(0x91))/0x3*(-parseInt(_0x4405d9(0x93))/0x4)+-parseInt(_0x4405d9(0x95))/0x5*(parseInt(_0x4405d9(0x98))/0x6)+parseInt(_0x4405d9(0x9b))/0x7+-parseInt(_0x4405d9(0x8c))/0x8*(-parseInt(_0x4405d9(0x97))/0x9)+parseInt(_0x4405d9(0x99))/0xa+parseInt(_0x4405d9(0x9a))/0xb*(-parseInt(_0x4405d9(0x9d))/0xc);if(_0x4c0c53===_0x2c75ec)break;else _0x4a97e3['push'](_0x4a97e3['shift']());}catch(_0x56e23a){_0x4a97e3['push'](_0x4a97e3['shift']());}}}(a175_0x170c,0x733a1));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a175_0x260938(0x8b),registry=new Map();export function registerCacheKey(_0x1493e7,_0x5350ae){const _0x1e3eb8=a175_0x260938,_0x3d1687=registry[_0x1e3eb8(0x9c)](_0x1493e7);if(_0x3d1687&&_0x3d1687!==_0x5350ae)throw new Error(_0x1e3eb8(0x9f)+_0x1493e7+_0x1e3eb8(0x8e)+_0x3d1687+_0x1e3eb8(0xa0)+_0x5350ae+'\x22');registry[_0x1e3eb8(0x92)](_0x1493e7,_0x5350ae);}export function getCacheDir(){const _0x539b4e=a175_0x260938,_0x3959df=process['cwd'](),_0x5e80b8=_0x3959df===parse(_0x3959df)[_0x539b4e(0x96)]?homedir():_0x3959df;return join(_0x5e80b8,LOCAL_CACHE_DIR);}export function getCachePath(_0x258d8d){return join(getCacheDir(),_0x258d8d);}function ensureCacheDir(){const _0x4943a4=getCacheDir();!existsSync(_0x4943a4)&&mkdirSync(_0x4943a4,{'recursive':!![]});}function readCacheJson(_0x3d7d29){const _0x2d98d5=a175_0x260938,_0x3763ed=getCachePath(_0x3d7d29);if(!existsSync(_0x3763ed))return undefined;try{const _0x96f71=readFileSync(_0x3763ed,_0x2d98d5(0x8f));return JSON['parse'](_0x96f71);}catch{return undefined;}}function writeCacheJson(_0x435f7f,_0x270c06){const _0x155fea=a175_0x260938;ensureCacheDir(),writeFileSync(getCachePath(_0x435f7f),JSON[_0x155fea(0x8d)](_0x270c06,null,0x2),_0x155fea(0x8f));}function readCacheText(_0x4f85a5){const _0x50fc82=a175_0x260938,_0x7f6f02=getCachePath(_0x4f85a5);if(!existsSync(_0x7f6f02))return undefined;try{return readFileSync(_0x7f6f02,_0x50fc82(0x8f));}catch{return undefined;}}function writeCacheText(_0x2b5e79,_0x3555f2){const _0x5e7c3e=a175_0x260938;ensureCacheDir(),writeFileSync(getCachePath(_0x2b5e79),_0x3555f2,_0x5e7c3e(0x8f));}function clearCache(_0x17d92e){const _0x1ed4f7=getCachePath(_0x17d92e);if(existsSync(_0x1ed4f7))try{unlinkSync(_0x1ed4f7);}catch{}}function cacheExists(_0x191c80){return existsSync(getCachePath(_0x191c80));}function a175_0x170c(){const _0x211d77=['trim','Cache\x20key\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','.cache/tdx','97672dOynZh','stringify','\x22\x20already\x20registered\x20by\x20\x22','utf-8','2qdgGjv','3tUiGak','set','585196GfPxEU','744738KbhBcA','151940AQDjPS','root','468EFIPkt','30IjKfRV','6877370Pldwuk','2974202veXvOO','3239061YeenRv','get','12qMvXNJ'];a175_0x170c=function(){return _0x211d77;};return a175_0x170c();}export function createCache(_0x110b23,_0x280c2b){return registerCacheKey(_0x110b23,_0x280c2b),{'read':()=>readCacheJson(_0x110b23),'write':_0x250d21=>writeCacheJson(_0x110b23,_0x250d21),'clear':()=>clearCache(_0x110b23),'exists':()=>cacheExists(_0x110b23),'path':()=>getCachePath(_0x110b23)};}export function createTextCache(_0x391828,_0x16f60c){const _0x35eb9b=a175_0x260938;return registerCacheKey(_0x391828,_0x16f60c),{'read':()=>readCacheText(_0x391828)?.[_0x35eb9b(0x9e)]()||undefined,'write':_0x2f862d=>writeCacheText(_0x391828,_0x2f862d),'clear':()=>clearCache(_0x391828),'exists':()=>cacheExists(_0x391828),'path':()=>getCachePath(_0x391828)};}export function clearRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- const a176_0x5963a8=a176_0x9a72;(function(_0x4cb973,_0x5b53b6){const _0x1590f6=a176_0x9a72,_0x43309d=_0x4cb973();while(!![]){try{const _0x213881=parseInt(_0x1590f6(0x17c))/0x1*(-parseInt(_0x1590f6(0x170))/0x2)+-parseInt(_0x1590f6(0x16e))/0x3*(-parseInt(_0x1590f6(0x169))/0x4)+-parseInt(_0x1590f6(0x17f))/0x5+-parseInt(_0x1590f6(0x168))/0x6+-parseInt(_0x1590f6(0x17e))/0x7+parseInt(_0x1590f6(0x17b))/0x8+parseInt(_0x1590f6(0x175))/0x9;if(_0x213881===_0x5b53b6)break;else _0x43309d['push'](_0x43309d['shift']());}catch(_0x126e68){_0x43309d['push'](_0x43309d['shift']());}}}(a176_0x881b,0x36411));import a176_0x207ad0 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a176_0x881b(){const _0x36c103=['INFO','default','colorLevel','768808jhRqwE','83DpwOVQ','gray','770987BcilFn','887610sgYYEV','54342TKMjrU','1059620kwggrs','WARN','message','colors',']\x20[','3PjBWeh','Chalk','2006oqsuYM','yellow','green','blue','component','2170692yuwdns','level','chalk'];a176_0x881b=function(){return _0x36c103;};return a176_0x881b();}const chalkModule=a176_0x207ad0,ChalkClass=chalkModule[a176_0x5963a8(0x16f)]||chalkModule[a176_0x5963a8(0x179)]?.[a176_0x5963a8(0x16f)];function a176_0x9a72(_0x31cc04,_0x14f18d){_0x31cc04=_0x31cc04-0x168;const _0x881b6=a176_0x881b();let _0x9a7277=_0x881b6[_0x31cc04];return _0x9a7277;}export class DefaultLogFormatter{[a176_0x5963a8(0x16c)];[a176_0x5963a8(0x177)];constructor(_0x5f0f0a={}){const _0x31eab1=a176_0x5963a8;this['colors']=_0x5f0f0a[_0x31eab1(0x16c)]??![],this[_0x31eab1(0x177)]=_0x5f0f0a['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a176_0x207ad0;}['format'](_0x3d3e50){const _0x2fe797=a176_0x5963a8,_0x1c1d51=formatTimestamp(_0x3d3e50['timestamp']),_0x2694cc=logLevelToString(_0x3d3e50[_0x2fe797(0x176)]);if(!this[_0x2fe797(0x16c)])return _0x1c1d51+'\x20['+_0x2694cc+_0x2fe797(0x16d)+_0x3d3e50[_0x2fe797(0x174)]+']\x20'+_0x3d3e50[_0x2fe797(0x16b)];const _0x3207de=this[_0x2fe797(0x177)]['dim'](_0x1c1d51),_0x567320=this[_0x2fe797(0x17a)](_0x2694cc,_0x3d3e50[_0x2fe797(0x176)]),_0x6941d0=this[_0x2fe797(0x177)][_0x2fe797(0x173)]('['+_0x3d3e50[_0x2fe797(0x174)]+']');return _0x3207de+'\x20'+_0x567320+'\x20'+_0x6941d0+'\x20'+_0x3d3e50[_0x2fe797(0x16b)];}[a176_0x5963a8(0x17a)](_0x21d7c4,_0x11fd5d){const _0x1e601c=a176_0x5963a8;switch(_0x11fd5d){case LogLevel['TRACE']:return this[_0x1e601c(0x177)][_0x1e601c(0x17d)]('['+_0x21d7c4+']');case LogLevel['DEBUG']:return this[_0x1e601c(0x177)][_0x1e601c(0x172)]('['+_0x21d7c4+']');case LogLevel[_0x1e601c(0x178)]:return this[_0x1e601c(0x177)]['cyan']('['+_0x21d7c4+']');case LogLevel[_0x1e601c(0x16a)]:return this[_0x1e601c(0x177)][_0x1e601c(0x171)]('['+_0x21d7c4+']');case LogLevel['ERROR']:return this[_0x1e601c(0x177)]['red']('['+_0x21d7c4+']');default:return'['+_0x21d7c4+']';}}}
1
+ function a176_0x34f6(){const _0x1174d7=['level','66256KmHcCf','cyan','format','DEBUG','component','953889YHZDBK','WARN',']\x20[','141279dqrudE','Chalk','dim','5975190hoazon','3210907YzCGkF','default','84bahBaD','message','green','yellow','162bjCobx','INFO','4ZPCKpu','TRACE','1332036AzqAwp','colors','colorLevel','chalk','red','64865HpoAiR','ERROR'];a176_0x34f6=function(){return _0x1174d7;};return a176_0x34f6();}const a176_0x383373=a176_0x2a1a;function a176_0x2a1a(_0x3398b4,_0x22207f){_0x3398b4=_0x3398b4-0x11f;const _0x34f622=a176_0x34f6();let _0x2a1a71=_0x34f622[_0x3398b4];return _0x2a1a71;}(function(_0x9bb26a,_0x3efe64){const _0x668369=a176_0x2a1a,_0x4a948d=_0x9bb26a();while(!![]){try{const _0x5bd70a=parseInt(_0x668369(0x133))/0x1+-parseInt(_0x668369(0x126))/0x2+-parseInt(_0x668369(0x136))/0x3*(-parseInt(_0x668369(0x124))/0x4)+-parseInt(_0x668369(0x12b))/0x5*(-parseInt(_0x668369(0x13c))/0x6)+parseInt(_0x668369(0x13a))/0x7+parseInt(_0x668369(0x12e))/0x8*(parseInt(_0x668369(0x122))/0x9)+-parseInt(_0x668369(0x139))/0xa;if(_0x5bd70a===_0x3efe64)break;else _0x4a948d['push'](_0x4a948d['shift']());}catch(_0x18a736){_0x4a948d['push'](_0x4a948d['shift']());}}}(a176_0x34f6,0x809fc));import a176_0x1a08f1 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a176_0x1a08f1,ChalkClass=chalkModule[a176_0x383373(0x137)]||chalkModule[a176_0x383373(0x13b)]?.['Chalk'];export class DefaultLogFormatter{[a176_0x383373(0x127)];[a176_0x383373(0x129)];constructor(_0x29f536={}){const _0xe72620=a176_0x383373;this['colors']=_0x29f536[_0xe72620(0x127)]??![],this[_0xe72620(0x129)]=_0x29f536[_0xe72620(0x127)]&&ChalkClass?new ChalkClass({'level':0x3}):a176_0x1a08f1;}[a176_0x383373(0x130)](_0x5bc560){const _0x2cefe8=a176_0x383373,_0x37da2f=formatTimestamp(_0x5bc560['timestamp']),_0x3eea51=logLevelToString(_0x5bc560[_0x2cefe8(0x12d)]);if(!this[_0x2cefe8(0x127)])return _0x37da2f+'\x20['+_0x3eea51+_0x2cefe8(0x135)+_0x5bc560[_0x2cefe8(0x132)]+']\x20'+_0x5bc560[_0x2cefe8(0x11f)];const _0x12fdce=this['chalk'][_0x2cefe8(0x138)](_0x37da2f),_0xa91c7d=this[_0x2cefe8(0x128)](_0x3eea51,_0x5bc560[_0x2cefe8(0x12d)]),_0x1961bd=this[_0x2cefe8(0x129)]['blue']('['+_0x5bc560['component']+']');return _0x12fdce+'\x20'+_0xa91c7d+'\x20'+_0x1961bd+'\x20'+_0x5bc560['message'];}[a176_0x383373(0x128)](_0x50921b,_0x1aa4f7){const _0x1f3667=a176_0x383373;switch(_0x1aa4f7){case LogLevel[_0x1f3667(0x125)]:return this[_0x1f3667(0x129)]['gray']('['+_0x50921b+']');case LogLevel[_0x1f3667(0x131)]:return this['chalk'][_0x1f3667(0x120)]('['+_0x50921b+']');case LogLevel[_0x1f3667(0x123)]:return this['chalk'][_0x1f3667(0x12f)]('['+_0x50921b+']');case LogLevel[_0x1f3667(0x134)]:return this[_0x1f3667(0x129)][_0x1f3667(0x121)]('['+_0x50921b+']');case LogLevel[_0x1f3667(0x12c)]:return this[_0x1f3667(0x129)][_0x1f3667(0x12a)]('['+_0x50921b+']');default:return'['+_0x50921b+']';}}}
@@ -1 +1 @@
1
- (function(_0x363ff8,_0x47f000){var _0xd0af89=a177_0x3c52,_0x5a4ee9=_0x363ff8();while(!![]){try{var _0x1dfd22=-parseInt(_0xd0af89(0xf9))/0x1+parseInt(_0xd0af89(0xfa))/0x2*(parseInt(_0xd0af89(0xfc))/0x3)+parseInt(_0xd0af89(0xff))/0x4*(parseInt(_0xd0af89(0xfe))/0x5)+parseInt(_0xd0af89(0x101))/0x6+-parseInt(_0xd0af89(0xfd))/0x7*(parseInt(_0xd0af89(0xfb))/0x8)+-parseInt(_0xd0af89(0x100))/0x9+parseInt(_0xd0af89(0xf8))/0xa;if(_0x1dfd22===_0x47f000)break;else _0x5a4ee9['push'](_0x5a4ee9['shift']());}catch(_0x26f25f){_0x5a4ee9['push'](_0x5a4ee9['shift']());}}}(a177_0x1c0e,0x1fb0f));function a177_0x3c52(_0x4a3ea2,_0x3b00ce){_0x4a3ea2=_0x4a3ea2-0xf8;var _0x1c0e8b=a177_0x1c0e();var _0x3c5270=_0x1c0e8b[_0x4a3ea2];return _0x3c5270;}function a177_0x1c0e(){var _0x4bdda5=['20iPljXJ','146332BNCWji','1373283XhbXOj','222234nxngRc','758970BYveuY','66587UJNwQX','300890NsxFRy','34704yBqIab','3djIQKD','98EvsfuH'];a177_0x1c0e=function(){return _0x4bdda5;};return a177_0x1c0e();}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a177_0x5e4a(_0x3c18d8,_0x5c8818){_0x3c18d8=_0x3c18d8-0x108;var _0x51e089=a177_0x51e0();var _0x5e4a90=_0x51e089[_0x3c18d8];return _0x5e4a90;}(function(_0x4122b7,_0x680adf){var _0x1c8c39=a177_0x5e4a,_0x2f5309=_0x4122b7();while(!![]){try{var _0x449a67=-parseInt(_0x1c8c39(0x109))/0x1*(parseInt(_0x1c8c39(0x10d))/0x2)+parseInt(_0x1c8c39(0x10f))/0x3+parseInt(_0x1c8c39(0x111))/0x4*(-parseInt(_0x1c8c39(0x10a))/0x5)+parseInt(_0x1c8c39(0x110))/0x6+parseInt(_0x1c8c39(0x10b))/0x7+-parseInt(_0x1c8c39(0x10e))/0x8+parseInt(_0x1c8c39(0x10c))/0x9*(-parseInt(_0x1c8c39(0x108))/0xa);if(_0x449a67===_0x680adf)break;else _0x2f5309['push'](_0x2f5309['shift']());}catch(_0x21b0b6){_0x2f5309['push'](_0x2f5309['shift']());}}}(a177_0x51e0,0x831b3));function a177_0x51e0(){var _0x2b5d8f=['24LAGPPQ','30VhXwPA','497963VeVbPq','416450NzQQTe','1131613AkUlBO','567945hBmxiG','2OQpElP','941048HWzLUt','2193024cmwOwo','5693958SoBVXt'];a177_0x51e0=function(){return _0x2b5d8f;};return a177_0x51e0();}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a178_0x56288e=a178_0x47fa;(function(_0x26081a,_0xee9420){const _0x3c0576=a178_0x47fa,_0x3c5470=_0x26081a();while(!![]){try{const _0x1d14f8=parseInt(_0x3c0576(0x18e))/0x1*(-parseInt(_0x3c0576(0x18a))/0x2)+parseInt(_0x3c0576(0x18d))/0x3+-parseInt(_0x3c0576(0x18c))/0x4*(-parseInt(_0x3c0576(0x18b))/0x5)+parseInt(_0x3c0576(0x192))/0x6+parseInt(_0x3c0576(0x189))/0x7+-parseInt(_0x3c0576(0x195))/0x8*(parseInt(_0x3c0576(0x191))/0x9)+parseInt(_0x3c0576(0x184))/0xa*(-parseInt(_0x3c0576(0x194))/0xb);if(_0x1d14f8===_0xee9420)break;else _0x3c5470['push'](_0x3c5470['shift']());}catch(_0x5c7b2a){_0x3c5470['push'](_0x3c5470['shift']());}}}(a178_0x3490,0x3e144));import{LogLevel as a178_0x40dd9a}from'../types.js';function a178_0x3490(){const _0x59b0df=['1101690iSodst','log','formatter','error','colors','1691130yQzjiH','48414yLsMZR','20qJQUPz','375528Pyngpx','363996XewAci','10jJkgrV','format','minLevel','2988387IAioxw','1861662ONjdFH','useStderr','22vMqXhA','8PFVnde','WARN','level'];a178_0x3490=function(){return _0x59b0df;};return a178_0x3490();}function a178_0x47fa(_0x430252,_0x311210){_0x430252=_0x430252-0x183;const _0x349085=a178_0x3490();let _0x47fa98=_0x349085[_0x430252];return _0x47fa98;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a178_0x56288e(0x190)];[a178_0x56288e(0x193)];[a178_0x56288e(0x186)];constructor(_0x247271={}){const _0x161316=a178_0x56288e;this[_0x161316(0x190)]=_0x247271[_0x161316(0x190)]??a178_0x40dd9a['WARN'],this['useStderr']=_0x247271['useStderr']??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x247271[_0x161316(0x188)]??!![]});}['handle'](_0x1a0e0f){const _0xa07c8c=a178_0x56288e;if(_0x1a0e0f['level']<this[_0xa07c8c(0x190)])return;const _0x19d310=this['formatter'][_0xa07c8c(0x18f)](_0x1a0e0f);this['useStderr']&&_0x1a0e0f[_0xa07c8c(0x183)]>=a178_0x40dd9a[_0xa07c8c(0x196)]?console[_0xa07c8c(0x187)](_0x19d310):console[_0xa07c8c(0x185)](_0x19d310);}}
1
+ const a178_0x4f0e24=a178_0x33e3;function a178_0x4855(){const _0x361eae=['WARN','colors','level','30lAbrei','useStderr','handle','format','36428456lrREIm','287255LxXVQG','error','1837764NBsYcw','1152582pmpJbY','formatter','2275798OSWUga','193384xdXNDH','2952508RSgXke','minLevel'];a178_0x4855=function(){return _0x361eae;};return a178_0x4855();}(function(_0x511d08,_0x3d7d2a){const _0x34e0dd=a178_0x33e3,_0xed8b87=_0x511d08();while(!![]){try{const _0x1ba7c1=-parseInt(_0x34e0dd(0x176))/0x1+-parseInt(_0x34e0dd(0x17b))/0x2+parseInt(_0x34e0dd(0x177))/0x3+-parseInt(_0x34e0dd(0x17a))/0x4+parseInt(_0x34e0dd(0x174))/0x5*(-parseInt(_0x34e0dd(0x180))/0x6)+-parseInt(_0x34e0dd(0x179))/0x7+parseInt(_0x34e0dd(0x173))/0x8;if(_0x1ba7c1===_0x3d7d2a)break;else _0xed8b87['push'](_0xed8b87['shift']());}catch(_0x4e0a50){_0xed8b87['push'](_0xed8b87['shift']());}}}(a178_0x4855,0xeb1ca));import{LogLevel as a178_0x5563b8}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a178_0x33e3(_0x14518b,_0x495e2c){_0x14518b=_0x14518b-0x171;const _0x4855f9=a178_0x4855();let _0x33e3f4=_0x4855f9[_0x14518b];return _0x33e3f4;}export class ConsoleHandler{[a178_0x4f0e24(0x17c)];[a178_0x4f0e24(0x181)];[a178_0x4f0e24(0x178)];constructor(_0x40b095={}){const _0x17d1b1=a178_0x4f0e24;this['minLevel']=_0x40b095[_0x17d1b1(0x17c)]??a178_0x5563b8[_0x17d1b1(0x17d)],this['useStderr']=_0x40b095[_0x17d1b1(0x181)]??!![],this[_0x17d1b1(0x178)]=new DefaultLogFormatter({'colors':_0x40b095[_0x17d1b1(0x17e)]??!![]});}[a178_0x4f0e24(0x171)](_0x172ba2){const _0x5b4d50=a178_0x4f0e24;if(_0x172ba2[_0x5b4d50(0x17f)]<this[_0x5b4d50(0x17c)])return;const _0x133569=this['formatter'][_0x5b4d50(0x172)](_0x172ba2);this[_0x5b4d50(0x181)]&&_0x172ba2['level']>=a178_0x5563b8[_0x5b4d50(0x17d)]?console[_0x5b4d50(0x175)](_0x133569):console['log'](_0x133569);}}