@treasuredata/tdx 0.25.1 → 0.25.2

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 (163) 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/describe.js +1 -1
  18. package/dist/commands/engage-command.js +1 -1
  19. package/dist/commands/job-command.js +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-validate-command.js +1 -1
  22. package/dist/commands/llm-command.js +1 -1
  23. package/dist/commands/mcp-command.js +1 -1
  24. package/dist/commands/parent-segment-command.js +1 -1
  25. package/dist/commands/profile-command.js +1 -1
  26. package/dist/commands/profiles-command.js +1 -1
  27. package/dist/commands/query-command.js +1 -1
  28. package/dist/commands/schedule-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-update-command.js +1 -1
  35. package/dist/commands/segment-use-command.js +1 -1
  36. package/dist/commands/segment-validate-command.js +1 -1
  37. package/dist/commands/segments.js +1 -1
  38. package/dist/commands/show.js +1 -1
  39. package/dist/commands/status-command.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/unset-command.js +1 -1
  42. package/dist/commands/use-command.js +1 -1
  43. package/dist/commands/user-command.js +1 -1
  44. package/dist/commands/workflow-command.js +1 -1
  45. package/dist/core/auth.js +1 -1
  46. package/dist/core/command-output.js +1 -1
  47. package/dist/core/config.js +1 -1
  48. package/dist/core/connection-cache.js +1 -1
  49. package/dist/core/constants.js +1 -1
  50. package/dist/core/credential-cache.js +1 -1
  51. package/dist/core/global-context.js +1 -1
  52. package/dist/core/keychain.js +1 -1
  53. package/dist/core/profile.js +1 -1
  54. package/dist/core/project-config.js +1 -1
  55. package/dist/core/session.js +1 -1
  56. package/dist/core/user-cache.js +1 -1
  57. package/dist/core/version.js +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/mcp/server.js +1 -1
  60. package/dist/mcp/tools/index.js +1 -1
  61. package/dist/mcp/tools/tdx-run.js +1 -1
  62. package/dist/mcp/tools/tdx-search.js +1 -1
  63. package/dist/mcp/utils.js +1 -1
  64. package/dist/proxy/claude-usage-tracker.js +1 -1
  65. package/dist/proxy/passthrough-server.js +1 -1
  66. package/dist/proxy/sse-usage-parser.js +1 -1
  67. package/dist/sdk/agent/agent-config.js +1 -1
  68. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  69. package/dist/sdk/agent/agent-yaml.js +1 -1
  70. package/dist/sdk/agent/test/evaluator.js +1 -1
  71. package/dist/sdk/agent/test/executor.js +1 -1
  72. package/dist/sdk/agent/test/index.js +1 -1
  73. package/dist/sdk/agent/test/output.js +1 -1
  74. package/dist/sdk/agent/test/parser.js +1 -1
  75. package/dist/sdk/api.js +1 -1
  76. package/dist/sdk/client/cdp-api-client.js +1 -1
  77. package/dist/sdk/client/endpoints.js +1 -1
  78. package/dist/sdk/client/engage-api-client.js +1 -1
  79. package/dist/sdk/client/http-client.js +1 -1
  80. package/dist/sdk/client/llm-api-client.js +1 -1
  81. package/dist/sdk/client/rate-limiter.js +1 -1
  82. package/dist/sdk/client/td-api-client.js +1 -1
  83. package/dist/sdk/client/trino-api-client.js +1 -1
  84. package/dist/sdk/client/workflow-client.js +1 -1
  85. package/dist/sdk/connection-validator.js +1 -1
  86. package/dist/sdk/connection.js +1 -1
  87. package/dist/sdk/engage.js +1 -1
  88. package/dist/sdk/errors.js +1 -1
  89. package/dist/sdk/index.js +1 -1
  90. package/dist/sdk/io/index.js +1 -1
  91. package/dist/sdk/io/node-filesystem.js +1 -1
  92. package/dist/sdk/job.js +1 -1
  93. package/dist/sdk/journey.js +1 -1
  94. package/dist/sdk/llm/chat-cache.js +1 -1
  95. package/dist/sdk/llm/index.js +1 -1
  96. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  97. package/dist/sdk/llm/model-factors.js +1 -1
  98. package/dist/sdk/query/index.js +1 -1
  99. package/dist/sdk/query/sql-parser.js +1 -1
  100. package/dist/sdk/schedule.js +1 -1
  101. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  102. package/dist/sdk/segment/fields-display.js +1 -1
  103. package/dist/sdk/segment/file-discovery.js +1 -1
  104. package/dist/sdk/segment/journey-utils.js +1 -1
  105. package/dist/sdk/segment/journey-yaml.js +1 -1
  106. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  107. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  108. package/dist/sdk/segment/pull-workflow.js +1 -1
  109. package/dist/sdk/segment/push-workflow.js +1 -1
  110. package/dist/sdk/segment/resolution-context.js +1 -1
  111. package/dist/sdk/segment/segment-path-parser.js +1 -1
  112. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  113. package/dist/sdk/segment/target-resolution.js +1 -1
  114. package/dist/sdk/segment/tdx-config.js +1 -1
  115. package/dist/sdk/segment/validate-files.js +1 -1
  116. package/dist/sdk/segment/yaml-validator.js +1 -1
  117. package/dist/sdk/segment.js +1 -1
  118. package/dist/sdk/types/index.js +1 -1
  119. package/dist/sdk/types/progress.js +1 -1
  120. package/dist/sdk/user.js +1 -1
  121. package/dist/sdk/util/format-detector.js +1 -1
  122. package/dist/sdk/util/formatters.js +1 -1
  123. package/dist/sdk/util/index.js +1 -1
  124. package/dist/sdk/util/tree-formatter.js +1 -1
  125. package/dist/sdk/workflow/archive-validation.js +1 -1
  126. package/dist/sdk/workflow/clone-workflow.js +1 -1
  127. package/dist/sdk/workflow/index.js +1 -1
  128. package/dist/sdk/workflow/pull-workflow.js +1 -1
  129. package/dist/sdk/workflow/push-workflow.js +1 -1
  130. package/dist/sdk/workflow/tdx-config.js +1 -1
  131. package/dist/sdk/workflow/workflow-utils.js +1 -1
  132. package/dist/test-utils/command-runner.js +1 -1
  133. package/dist/test-utils/factories.js +1 -1
  134. package/dist/test-utils/fixtures.js +1 -1
  135. package/dist/test-utils/http-mock.js +1 -1
  136. package/dist/test-utils/index.js +1 -1
  137. package/dist/utils/async.js +1 -1
  138. package/dist/utils/colors.js +1 -1
  139. package/dist/utils/diff.js +1 -1
  140. package/dist/utils/file-permissions.js +1 -1
  141. package/dist/utils/global-cache.js +1 -1
  142. package/dist/utils/json-loader.js +1 -1
  143. package/dist/utils/local-cache.js +1 -1
  144. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  145. package/dist/utils/logger/formatters/index.js +1 -1
  146. package/dist/utils/logger/handlers/console-handler.js +1 -1
  147. package/dist/utils/logger/handlers/file-handler.js +1 -1
  148. package/dist/utils/logger/handlers/index.js +1 -1
  149. package/dist/utils/logger/handlers/null-handler.js +1 -1
  150. package/dist/utils/logger/index.js +1 -1
  151. package/dist/utils/logger/logger.js +1 -1
  152. package/dist/utils/logger/types.js +1 -1
  153. package/dist/utils/option-validation.js +1 -1
  154. package/dist/utils/port.js +1 -1
  155. package/dist/utils/process.js +1 -1
  156. package/dist/utils/prompt.js +1 -1
  157. package/dist/utils/spinner.js +1 -1
  158. package/dist/utils/sse-parser.js +1 -1
  159. package/dist/utils/string-utils.js +1 -1
  160. package/dist/utils/table-ref-parser.js +1 -1
  161. package/dist/utils/tdx-logger.js +1 -1
  162. package/dist/utils/version-check.js +1 -1
  163. package/package.json +1 -1
@@ -1 +1 @@
1
- function a149_0x69b1(){const _0x2cd8fe=['user','success','/v3/database/list','2024-01-15T08:00:00Z','step-3','segment','basic','completed','draft','page_views','long','0\x20*\x20*\x20*\x20*','UTC','event_type','journey','ps-123456','hourly_sync','Journey\x20with\x20decision\x20point','admin@example.com','lifetime_value','user_id','cs-111222','daily_etl','production_db','event_id','Purchase\x20Reminder','bigint','stringify','active','4307304nXMFon','30d','7389DtgnNb','Active\x20Users','Bob','data_pipeline','Forbidden','976bwjEen','user-1','email','2024-01-15T09:05:00Z','name','varchar','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','0\x200\x20*\x20*\x20*','Welcome\x20Journey','error','Users\x20active\x20in\x20the\x20last\x2030\x20days','j-def456','2024-01-15T10:10:01Z','time','High\x20Value\x20Active\x20Users','1685837RnqVGf','Admin\x20User','job','Greater','decision_point','2023-06-15T10:30:00Z','4259360FquWbK','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2024-01-15T00:00:00Z','cdp_db','attribute','SELECT\x20*\x20FROM\x20nonexistent_table','Active\x20users\x20with\x20high\x20lifetime\x20value','queryResult','test_db','full_access','test@example.com','timestamp','presto','act-email','ps-789012','customer_id','workflow','Test\x20User','Alice','unified_customers','events_db','sess-111','https://api.treasuredata.com/errors/forbidden','2874576aGBqqo','activation','Table\x20does\x20not\x20exist:\x20nonexistent_table','wf-67890','table','Parent\x20segment\x20with\x20behavioral\x20data','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','2024-01-01T00:00:00Z','cs-456789','administrator','step-1','abc123','end','wf-12345','TimeWithinPast','7991640GdOnfi','last_login','j-abc123','step-2','properties','Invalid\x20API\x20key','total','Onboarding\x20journey\x20for\x20new\x20users','21305afmrjT','purchases','2024-01-15T10:00:05Z','def456','running','60210LQbDtU','2024-01-15T12:00:00Z','log','act-123','Customers\x20with\x20Behaviors','2024-01-15T10:10:00Z','string','12nlAMwq'];a149_0x69b1=function(){return _0x2cd8fe;};return a149_0x69b1();}const a149_0x591135=a149_0x52d6;(function(_0x91b7a,_0x17179b){const _0x31f24e=a149_0x52d6,_0x185096=_0x91b7a();while(!![]){try{const _0x265283=parseInt(_0x31f24e(0x19a))/0x1+parseInt(_0x31f24e(0x143))/0x2+parseInt(_0x31f24e(0x184))/0x3+-parseInt(_0x31f24e(0x18b))/0x4*(-parseInt(_0x31f24e(0x15a))/0x5)+parseInt(_0x31f24e(0x166))/0x6*(parseInt(_0x31f24e(0x1a0))/0x7)+-parseInt(_0x31f24e(0x152))/0x8+-parseInt(_0x31f24e(0x186))/0x9*(parseInt(_0x31f24e(0x15f))/0xa);if(_0x265283===_0x17179b)break;else _0x185096['push'](_0x185096['shift']());}catch(_0x18d90a){_0x185096['push'](_0x185096['shift']());}}}(a149_0x69b1,0xd537d));export const fixtures={'database':{'basic':{'name':a149_0x591135(0x1a8),'count':0x5,'created_at':a149_0x591135(0x14a),'updated_at':'2024-01-01T00:00:00Z','permission':a149_0x591135(0x14c)},'withTables':{'name':a149_0x591135(0x17e),'count':0x64,'created_at':a149_0x591135(0x19f),'updated_at':a149_0x591135(0x16a),'permission':a149_0x591135(0x1a9)}},'table':{'basic':{'id':0x3039,'name':'users','type':'log','schema':JSON[a149_0x591135(0x182)]([['id','string'],[a149_0x591135(0x198),a149_0x591135(0x171)],[a149_0x591135(0x18f),a149_0x591135(0x165)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a149_0x591135(0x14a),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':'events','type':a149_0x591135(0x161),'schema':JSON[a149_0x591135(0x182)]([[a149_0x591135(0x17f),a149_0x591135(0x165)],[a149_0x591135(0x198),a149_0x591135(0x171)],[a149_0x591135(0x17b),a149_0x591135(0x165)],[a149_0x591135(0x174),'string'],[a149_0x591135(0x156),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a149_0x591135(0x14a),'updated_at':a149_0x591135(0x160)}},'parentSegment':{'basic':{'id':a149_0x591135(0x176),'name':'Test\x20Parent\x20Segment','description':a149_0x591135(0x191),'status':a149_0x591135(0x183),'master_table':{'database':a149_0x591135(0x1a3),'table':a149_0x591135(0x13f)},'attributes':[{'name':'customer_id','type':'string','key':!![]},{'name':a149_0x591135(0x18d),'type':a149_0x591135(0x165)},{'name':'created_at','type':a149_0x591135(0x1ab)}],'created_at':a149_0x591135(0x14a),'updated_at':a149_0x591135(0x1a2)},'withBehaviors':{'id':a149_0x591135(0x1ae),'name':a149_0x591135(0x163),'description':a149_0x591135(0x148),'status':a149_0x591135(0x183),'master_table':{'database':'cdp_db','table':'customers'},'behaviors':[{'name':a149_0x591135(0x15b),'table':{'database':a149_0x591135(0x140),'table':a149_0x591135(0x15b)},'join_key':a149_0x591135(0x1af)},{'name':a149_0x591135(0x170),'table':{'database':'events_db','table':'pageviews'},'join_key':a149_0x591135(0x1af)}],'created_at':a149_0x591135(0x14a),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a149_0x591135(0x14b),'name':a149_0x591135(0x187),'description':a149_0x591135(0x195),'parent_segment_id':'ps-123456','status':a149_0x591135(0x183),'rules':[{'type':'attribute','field':a149_0x591135(0x153),'operator':a149_0x591135(0x151),'value':'30d'}],'count':0x1388,'created_at':a149_0x591135(0x14a),'updated_at':a149_0x591135(0x1a2)},'withMultipleRules':{'id':a149_0x591135(0x17c),'name':a149_0x591135(0x199),'description':a149_0x591135(0x1a6),'parent_segment_id':a149_0x591135(0x176),'status':a149_0x591135(0x183),'rules':[{'type':'attribute','field':a149_0x591135(0x153),'operator':a149_0x591135(0x151),'value':a149_0x591135(0x185)},{'type':a149_0x591135(0x1a4),'field':a149_0x591135(0x17a),'operator':a149_0x591135(0x19d),'value':0x3e8}],'count':0x5dc,'created_at':a149_0x591135(0x14a),'updated_at':a149_0x591135(0x1a2)}},'journey':{'basic':{'id':a149_0x591135(0x154),'name':a149_0x591135(0x193),'description':a149_0x591135(0x159),'status':a149_0x591135(0x16f),'version':0x1,'steps':[{'id':a149_0x591135(0x14d),'type':'wait','duration':'1d'},{'id':a149_0x591135(0x155),'type':a149_0x591135(0x144),'activation_id':a149_0x591135(0x162)}],'created_at':a149_0x591135(0x14a),'updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':a149_0x591135(0x196),'name':a149_0x591135(0x180),'description':a149_0x591135(0x178),'status':a149_0x591135(0x183),'version':0x2,'steps':[{'id':'step-1','type':a149_0x591135(0x19e),'segment_id':a149_0x591135(0x14b),'yes_path':'step-2','no_path':a149_0x591135(0x16b)},{'id':'step-2','type':'activation','activation_id':a149_0x591135(0x1ad)},{'id':a149_0x591135(0x16b),'type':a149_0x591135(0x14f)}],'created_at':a149_0x591135(0x14a),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a149_0x591135(0x190)},{'name':'name','type':a149_0x591135(0x190)},{'name':'count','type':a149_0x591135(0x181)}],'data':[[a149_0x591135(0x18c),a149_0x591135(0x13e),0x64],['user-2',a149_0x591135(0x188),0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a149_0x591135(0x190)},{'name':a149_0x591135(0x18f),'type':a149_0x591135(0x190)}],'data':[]},'singleRow':{'schema':[{'name':a149_0x591135(0x158),'type':a149_0x591135(0x181)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a149_0x591135(0x13d),'email':a149_0x591135(0x1aa),'created_at':a149_0x591135(0x14a),'updated_at':a149_0x591135(0x1a2),'administrator':![]},'admin':{'id':0x1,'name':a149_0x591135(0x19b),'email':a149_0x591135(0x179),'created_at':'2023-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a149_0x591135(0x1ac),'database':a149_0x591135(0x1a8),'status':a149_0x591135(0x168),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':a149_0x591135(0x15c),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x591135(0x1ac),'database':a149_0x591135(0x1a8),'status':a149_0x591135(0x15e),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a149_0x591135(0x1a8),'status':a149_0x591135(0x194),'query':a149_0x591135(0x1a5),'start_at':a149_0x591135(0x164),'end_at':a149_0x591135(0x197),'duration':0x1,'result_size':null,'error':a149_0x591135(0x145)}},'workflow':{'basic':{'id':a149_0x591135(0x150),'name':a149_0x591135(0x17d),'project':a149_0x591135(0x189),'revision':a149_0x591135(0x14e),'timezone':a149_0x591135(0x173),'schedule':{'cron':a149_0x591135(0x192)}},'withSessions':{'id':a149_0x591135(0x146),'name':a149_0x591135(0x177),'project':'data_sync','revision':a149_0x591135(0x15d),'timezone':'America/Los_Angeles','schedule':{'cron':a149_0x591135(0x172)},'last_session':{'id':a149_0x591135(0x141),'status':a149_0x591135(0x168),'started_at':'2024-01-15T09:00:00Z','finished_at':a149_0x591135(0x18e)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x591135(0x157),'message':a149_0x591135(0x157),'severity':a149_0x591135(0x194),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a149_0x591135(0x194),'status_code':0x194}},'rateLimited':{'detail':a149_0x591135(0x149)},'rfc9457':{'type':a149_0x591135(0x142),'title':a149_0x591135(0x18a),'status':0x193,'detail':a149_0x591135(0x1a1),'instance':a149_0x591135(0x169)}}};export function createDatabase(_0x3864ba){const _0x263567=a149_0x591135;return{...fixtures['database'][_0x263567(0x16d)],..._0x3864ba};}export function createTable(_0x4eba52){const _0x582823=a149_0x591135;return{...fixtures[_0x582823(0x147)][_0x582823(0x16d)],..._0x4eba52};}export function createParentSegment(_0x52d049){const _0x24d4fe=a149_0x591135;return{...fixtures['parentSegment'][_0x24d4fe(0x16d)],..._0x52d049};}export function createSegment(_0x16c103){const _0x180d30=a149_0x591135;return{...fixtures[_0x180d30(0x16c)][_0x180d30(0x16d)],..._0x16c103};}export function createJourney(_0x1e86ea){const _0x48b8a1=a149_0x591135;return{...fixtures[_0x48b8a1(0x175)][_0x48b8a1(0x16d)],..._0x1e86ea};}export function createQueryResult(_0x547f38){const _0x311f76=a149_0x591135;return{...fixtures[_0x311f76(0x1a7)][_0x311f76(0x16d)],..._0x547f38};}function a149_0x52d6(_0x486153,_0x332f90){_0x486153=_0x486153-0x13d;const _0x69b102=a149_0x69b1();let _0x52d65c=_0x69b102[_0x486153];return _0x52d65c;}export function createUser(_0x35d68){const _0x488ade=a149_0x591135;return{...fixtures[_0x488ade(0x167)][_0x488ade(0x16d)],..._0x35d68};}export function createJob(_0x332397){const _0x186dab=a149_0x591135;return{...fixtures[_0x186dab(0x19c)][_0x186dab(0x16e)],..._0x332397};}export function createWorkflow(_0x22c91c){const _0x4ba86d=a149_0x591135;return{...fixtures[_0x4ba86d(0x1b0)]['basic'],..._0x22c91c};}
1
+ const a149_0x409fdc=a149_0x1881;(function(_0x50cfbc,_0x4af1ee){const _0x4bb59e=a149_0x1881,_0x457560=_0x50cfbc();while(!![]){try{const _0x41797a=parseInt(_0x4bb59e(0xb4))/0x1*(-parseInt(_0x4bb59e(0x99))/0x2)+-parseInt(_0x4bb59e(0xe6))/0x3*(parseInt(_0x4bb59e(0xe8))/0x4)+-parseInt(_0x4bb59e(0x98))/0x5*(parseInt(_0x4bb59e(0x8b))/0x6)+parseInt(_0x4bb59e(0x89))/0x7*(parseInt(_0x4bb59e(0x7e))/0x8)+parseInt(_0x4bb59e(0xb6))/0x9+parseInt(_0x4bb59e(0x75))/0xa*(-parseInt(_0x4bb59e(0x9b))/0xb)+parseInt(_0x4bb59e(0x80))/0xc;if(_0x41797a===_0x4af1ee)break;else _0x457560['push'](_0x457560['shift']());}catch(_0x323672){_0x457560['push'](_0x457560['shift']());}}}(a149_0x4e5d,0xea377));function a149_0x4e5d(){const _0x340a85=['decision_point','running','6926965dKazTk','50vdUixu','time','22cinnwD','error','customers','sess-111','total','log','2023-01-01T00:00:00Z','user_id','act-email','step-3','activation','attribute','bigint','Forbidden','2024-01-15T09:05:00Z','job','cs-456789','events_db','step-1','properties','j-def456','customer_id','queryResult','2023-06-15T10:30:00Z','completed','76246asFzdv','varchar','10563507uANDva','def456','page_views','string','SELECT\x20*\x20FROM\x20nonexistent_table','name','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','wf-12345','pageviews','Welcome\x20Journey','timestamp','production_db','presto','parentSegment','Journey\x20with\x20decision\x20point','Table\x20does\x20not\x20exist:\x20nonexistent_table','Admin\x20User','Parent\x20segment\x20with\x20behavioral\x20data','Purchase\x20Reminder','Users\x20active\x20in\x20the\x20last\x2030\x20days','stringify','data_pipeline','ps-789012','2024-01-15T00:00:00Z','0\x200\x20*\x20*\x20*','2024-01-15T10:00:05Z','data_sync','events','admin@example.com','SELECT\x20COUNT(*)\x20FROM\x20events','Charlie','email','Test\x20Parent\x20Segment','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','test_db','2024-01-15T12:00:00Z','success','table','journey','Alice','last_login','2024-01-15T10:10:00Z','segment','administrator','purchases','/v3/database/list','full_access','America/Los_Angeles','9XoRkZA','Active\x20users\x20with\x20high\x20lifetime\x20value','2247556OoSOzb','test@example.com','Invalid\x20API\x20key','created_at','9526110ezuIOU','https://api.treasuredata.com/errors/forbidden','Greater','Customers\x20with\x20Behaviors','basic','Bob','High\x20Value\x20Active\x20Users','unified_customers','30d','10553584pXTQIG','Onboarding\x20journey\x20for\x20new\x20users','64186344skBlyq','long','UTC','TimeWithinPast','The\x20requested\x20resource\x20does\x20not\x20exist','count','database','cdp_db','step-2','7XtLbzY','user','6rXZTRg','draft','Resource\x20not\x20found','abc123','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2024-01-01T00:00:00Z','user-3','wf-67890','ps-123456','active','event_id'];a149_0x4e5d=function(){return _0x340a85;};return a149_0x4e5d();}export const fixtures={'database':{'basic':{'name':a149_0x409fdc(0xd8),'count':0x5,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0x90),'permission':a149_0x409fdc(0xe1)},'withTables':{'name':a149_0x409fdc(0xc1),'count':0x64,'created_at':a149_0x409fdc(0xb2),'updated_at':'2024-01-15T08:00:00Z','permission':a149_0x409fdc(0xe4)}},'table':{'basic':{'id':0x3039,'name':'users','type':a149_0x409fdc(0xa0),'schema':JSON[a149_0x409fdc(0xca)]([['id','string'],[a149_0x409fdc(0x9a),a149_0x409fdc(0x81)],[a149_0x409fdc(0xbb),a149_0x409fdc(0xb9)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x409fdc(0x90)},'events':{'id':0x303a,'name':a149_0x409fdc(0xd1),'type':a149_0x409fdc(0xa0),'schema':JSON[a149_0x409fdc(0xca)]([[a149_0x409fdc(0x95),a149_0x409fdc(0xb9)],[a149_0x409fdc(0x9a),a149_0x409fdc(0x81)],[a149_0x409fdc(0xa2),'string'],['event_type',a149_0x409fdc(0xb9)],[a149_0x409fdc(0xae),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xd9)}},'parentSegment':{'basic':{'id':a149_0x409fdc(0x93),'name':a149_0x409fdc(0xd6),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a149_0x409fdc(0x94),'master_table':{'database':'cdp_db','table':a149_0x409fdc(0x7c)},'attributes':[{'name':a149_0x409fdc(0xb0),'type':a149_0x409fdc(0xb9),'key':!![]},{'name':a149_0x409fdc(0xd5),'type':'string'},{'name':a149_0x409fdc(0x74),'type':a149_0x409fdc(0xc0)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x409fdc(0xcd)},'withBehaviors':{'id':a149_0x409fdc(0xcc),'name':a149_0x409fdc(0x78),'description':a149_0x409fdc(0xc7),'status':a149_0x409fdc(0x94),'master_table':{'database':a149_0x409fdc(0x87),'table':a149_0x409fdc(0x9d)},'behaviors':[{'name':a149_0x409fdc(0xe2),'table':{'database':a149_0x409fdc(0xac),'table':a149_0x409fdc(0xe2)},'join_key':a149_0x409fdc(0xb0)},{'name':a149_0x409fdc(0xb8),'table':{'database':a149_0x409fdc(0xac),'table':a149_0x409fdc(0xbe)},'join_key':a149_0x409fdc(0xb0)}],'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)}},'segment':{'basic':{'id':a149_0x409fdc(0xab),'name':'Active\x20Users','description':a149_0x409fdc(0xc9),'parent_segment_id':a149_0x409fdc(0x93),'status':a149_0x409fdc(0x94),'rules':[{'type':a149_0x409fdc(0xa6),'field':'last_login','operator':a149_0x409fdc(0x83),'value':a149_0x409fdc(0x7d)}],'count':0x1388,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)},'withMultipleRules':{'id':'cs-111222','name':a149_0x409fdc(0x7b),'description':a149_0x409fdc(0xe7),'parent_segment_id':'ps-123456','status':a149_0x409fdc(0x94),'rules':[{'type':a149_0x409fdc(0xa6),'field':a149_0x409fdc(0xde),'operator':a149_0x409fdc(0x83),'value':a149_0x409fdc(0x7d)},{'type':a149_0x409fdc(0xa6),'field':'lifetime_value','operator':a149_0x409fdc(0x77),'value':0x3e8}],'count':0x5dc,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)}},'journey':{'basic':{'id':'j-abc123','name':a149_0x409fdc(0xbf),'description':a149_0x409fdc(0x7f),'status':a149_0x409fdc(0x8c),'version':0x1,'steps':[{'id':a149_0x409fdc(0xad),'type':'wait','duration':'1d'},{'id':a149_0x409fdc(0x88),'type':'activation','activation_id':'act-123'}],'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)},'withDecision':{'id':a149_0x409fdc(0xaf),'name':a149_0x409fdc(0xc8),'description':a149_0x409fdc(0xc4),'status':'active','version':0x2,'steps':[{'id':'step-1','type':a149_0x409fdc(0x96),'segment_id':a149_0x409fdc(0xab),'yes_path':'step-2','no_path':a149_0x409fdc(0xa4)},{'id':a149_0x409fdc(0x88),'type':a149_0x409fdc(0xa5),'activation_id':a149_0x409fdc(0xa3)},{'id':a149_0x409fdc(0xa4),'type':'end'}],'created_at':a149_0x409fdc(0x90),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a149_0x409fdc(0xbb),'type':a149_0x409fdc(0xb5)},{'name':a149_0x409fdc(0x85),'type':a149_0x409fdc(0xa7)}],'data':[['user-1',a149_0x409fdc(0xdd),0x64],['user-2',a149_0x409fdc(0x7a),0xc8],[a149_0x409fdc(0x91),a149_0x409fdc(0xd4),0x96]]},'empty':{'schema':[{'name':'id','type':a149_0x409fdc(0xb5)},{'name':a149_0x409fdc(0xbb),'type':a149_0x409fdc(0xb5)}],'data':[]},'singleRow':{'schema':[{'name':a149_0x409fdc(0x9f),'type':a149_0x409fdc(0xa7)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a149_0x409fdc(0x72),'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a149_0x409fdc(0xc6),'email':a149_0x409fdc(0xd2),'created_at':a149_0x409fdc(0xa1),'updated_at':a149_0x409fdc(0xcd),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a149_0x409fdc(0xd8),'status':a149_0x409fdc(0xda),'query':a149_0x409fdc(0xd7),'start_at':'2024-01-15T10:00:00Z','end_at':a149_0x409fdc(0xcf),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x409fdc(0xc2),'database':a149_0x409fdc(0xd8),'status':a149_0x409fdc(0x97),'query':a149_0x409fdc(0xd3),'start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a149_0x409fdc(0xd8),'status':'error','query':a149_0x409fdc(0xba),'start_at':a149_0x409fdc(0xdf),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a149_0x409fdc(0xc5)}},'workflow':{'basic':{'id':a149_0x409fdc(0xbd),'name':'daily_etl','project':a149_0x409fdc(0xcb),'revision':a149_0x409fdc(0x8e),'timezone':a149_0x409fdc(0x82),'schedule':{'cron':a149_0x409fdc(0xce)}},'withSessions':{'id':a149_0x409fdc(0x92),'name':'hourly_sync','project':a149_0x409fdc(0xd0),'revision':a149_0x409fdc(0xb7),'timezone':a149_0x409fdc(0xe5),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a149_0x409fdc(0x9e),'status':a149_0x409fdc(0xda),'started_at':'2024-01-15T09:00:00Z','finished_at':a149_0x409fdc(0xa9)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x409fdc(0x73),'message':a149_0x409fdc(0x73),'severity':a149_0x409fdc(0x9c),'status_code':0x191}},'notFound':{'errors':{'error':a149_0x409fdc(0x8d),'message':a149_0x409fdc(0x84),'severity':a149_0x409fdc(0x9c),'status_code':0x194}},'rateLimited':{'detail':a149_0x409fdc(0xbc)},'rfc9457':{'type':a149_0x409fdc(0x76),'title':a149_0x409fdc(0xa8),'status':0x193,'detail':a149_0x409fdc(0x8f),'instance':a149_0x409fdc(0xe3)}}};export function createDatabase(_0x33fb64){const _0x51e918=a149_0x409fdc;return{...fixtures[_0x51e918(0x86)][_0x51e918(0x79)],..._0x33fb64};}export function createTable(_0x3bdd2e){const _0x5635fa=a149_0x409fdc;return{...fixtures[_0x5635fa(0xdb)]['basic'],..._0x3bdd2e};}export function createParentSegment(_0x201e77){const _0x6a9dde=a149_0x409fdc;return{...fixtures[_0x6a9dde(0xc3)]['basic'],..._0x201e77};}export function createSegment(_0x3f960b){const _0x2e7e79=a149_0x409fdc;return{...fixtures[_0x2e7e79(0xe0)]['basic'],..._0x3f960b};}export function createJourney(_0x58b776){const _0x5f3dee=a149_0x409fdc;return{...fixtures[_0x5f3dee(0xdc)][_0x5f3dee(0x79)],..._0x58b776};}export function createQueryResult(_0x4d9afc){const _0x12fa4b=a149_0x409fdc;return{...fixtures[_0x12fa4b(0xb1)][_0x12fa4b(0x79)],..._0x4d9afc};}export function createUser(_0x47d98a){const _0x4f0d51=a149_0x409fdc;return{...fixtures[_0x4f0d51(0x8a)][_0x4f0d51(0x79)],..._0x47d98a};}function a149_0x1881(_0x566f2a,_0xc27dec){_0x566f2a=_0x566f2a-0x72;const _0x4e5d52=a149_0x4e5d();let _0x188140=_0x4e5d52[_0x566f2a];return _0x188140;}export function createJob(_0x28248a){const _0x15df0d=a149_0x409fdc;return{...fixtures[_0x15df0d(0xaa)][_0x15df0d(0xb3)],..._0x28248a};}export function createWorkflow(_0x1fac9c){const _0x6806e5=a149_0x409fdc;return{...fixtures['workflow'][_0x6806e5(0x79)],..._0x1fac9c};}
@@ -1 +1 @@
1
- const a150_0x42eb34=a150_0x205c;function a150_0x205c(_0x206865,_0x13a19f){_0x206865=_0x206865-0xbe;const _0x50d393=a150_0x50d3();let _0x205c93=_0x50d393[_0x206865];return _0x205c93;}function a150_0x50d3(){const _0x335056=['stubs','td-api','23508590jFKjxQ','124644KEFJyL','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Bad\x20Request','3263760iojXdH','parseRequest','verify','Internal\x20Server\x20Error','stack','url','string','rfc9457','pathname','fetchMock','error','join','split','get','filter','Unknown','Forbidden','Created','wasCalled','toUpperCase','entries','Service\x20Unavailable','every','jsonResponseWithHeaders','isArray','application/json','register','body','matched','headers','unnamed\x20stub','stringify','fail','function','541576GjTUfK','matcher','Conflict','textResponse','https://api.treasuredata.com/errors/','Unmatched\x20stub','forEach','1tLIyJx','networkError','Registered\x20stubs:\x0a','test','matchCount','host','getStatusText','Not\x20Found','jsonResponse','285ucBsev','105778vUWjmT','includes','9458184QmsKDU','getLastRequest','text/plain','responder','parse','slice','69288NwEiTT','description','132RRxmRA','searchParams','requests','Unauthorized','REST','\x20registered\x20at:\x0a','mockImplementation','withBody','method','length','withHost','getMatchCount','map','reset','simple','GET','push'];a150_0x50d3=function(){return _0x335056;};return a150_0x50d3();}(function(_0x1eab81,_0x27e951){const _0x52767c=a150_0x205c,_0x93b2f5=_0x1eab81();while(!![]){try{const _0x4a20f4=-parseInt(_0x52767c(0xee))/0x1*(-parseInt(_0x52767c(0xf8))/0x2)+parseInt(_0x52767c(0x100))/0x3+parseInt(_0x52767c(0xc2))/0x4*(parseInt(_0x52767c(0xf7))/0x5)+-parseInt(_0x52767c(0x102))/0x6*(parseInt(_0x52767c(0xe7))/0x7)+-parseInt(_0x52767c(0xfa))/0x8+-parseInt(_0x52767c(0xc5))/0x9+parseInt(_0x52767c(0xc1))/0xa;if(_0x4a20f4===_0x27e951)break;else _0x93b2f5['push'](_0x93b2f5['shift']());}catch(_0x3c3601){_0x93b2f5['push'](_0x93b2f5['shift']());}}}(a150_0x50d3,0xe966c));import{vi}from'vitest';export class HTTPMockRegistry{[a150_0x42eb34(0xbf)]=[];['requests']=[];[a150_0x42eb34(0xce)]=null;[a150_0x42eb34(0x106)](_0xb8a1c5,_0x2cb356){return _0x2f18f2=>{const _0x2de383=a150_0x205c;if(_0x2f18f2['method'][_0x2de383(0xd8)]()!==_0xb8a1c5['toUpperCase']())return![];const _0x940009=new URL(_0x2f18f2[_0x2de383(0xca)]);if(typeof _0x2cb356===_0x2de383(0xcb))return _0x940009[_0x2de383(0xcd)]===_0x2cb356||_0x940009[_0x2de383(0xcd)][_0x2de383(0xf9)](_0x2cb356);return _0x2cb356[_0x2de383(0xf1)](_0x940009[_0x2de383(0xcd)]);};}['withQuery'](_0x3e6eaa,_0x20887f){return _0x232133=>{const _0x3d55f3=a150_0x205c;if(!_0x3e6eaa(_0x232133))return![];const _0x41d404=new URL(_0x232133[_0x3d55f3(0xca)]);return Object[_0x3d55f3(0xd9)](_0x20887f)[_0x3d55f3(0xdb)](([_0x2e2949,_0x3504d9])=>_0x41d404[_0x3d55f3(0x103)][_0x3d55f3(0xd2)](_0x2e2949)===_0x3504d9);};}[a150_0x42eb34(0x109)](_0x1b1290,_0x2661fb){return _0x15fd56=>{const _0x3ae8ef=a150_0x205c;if(!_0x1b1290(_0x15fd56))return![];if(typeof _0x2661fb===_0x3ae8ef(0xe6))return _0x2661fb(_0x15fd56[_0x3ae8ef(0xe0)]);return JSON[_0x3ae8ef(0xe4)](_0x15fd56[_0x3ae8ef(0xe0)])===JSON[_0x3ae8ef(0xe4)](_0x2661fb);};}[a150_0x42eb34(0x10c)](_0x18494c,_0x26b6a9){return _0x1b6c22=>{const _0x40f539=a150_0x205c;if(!_0x18494c(_0x1b6c22))return![];const _0x576ef0=new URL(_0x1b6c22['url']);return _0x576ef0[_0x40f539(0xf3)]===_0x26b6a9;};}[a150_0x42eb34(0xdf)](_0x58db03,_0x149d65,_0x11479f){const _0x1a3cd6=a150_0x42eb34;this[_0x1a3cd6(0xbf)][_0x1a3cd6(0xbe)]({'matcher':_0x58db03,'responder':_0x149d65,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1a3cd6(0xc9)]??'','description':_0x11479f?.['description']});}['registerWithInspector'](_0x4193cb,_0xff7f7,_0x1a2b20){const _0x4b8084=a150_0x42eb34,_0x280298=_0x3d9388=>{return _0x1a2b20(_0x3d9388['body'],_0x3d9388),_0xff7f7(_0x3d9388);};this[_0x4b8084(0xdf)](_0x4193cb,_0x280298);}static[a150_0x42eb34(0xf6)](_0x562f0f,_0x3ff665=0xc8){const _0x283002=a150_0x42eb34;return()=>new Response(JSON['stringify'](_0x562f0f),{'status':_0x3ff665,'headers':{'Content-Type':_0x283002(0xde)}});}static['errorResponse'](_0x4b4d5a,_0x4875b6,_0x57a319=a150_0x42eb34(0x110)){return()=>{const _0x4f4989=a150_0x205c;let _0x1a581e;switch(_0x57a319){case _0x4f4989(0xc0):_0x1a581e={'errors':{'error':_0x4875b6,'message':_0x4875b6,'severity':_0x4f4989(0xcf),'status_code':_0x4b4d5a}};break;case _0x4f4989(0xcc):_0x1a581e={'type':_0x4f4989(0xeb)+_0x4b4d5a,'title':HTTPMockRegistry['getStatusText'](_0x4b4d5a),'status':_0x4b4d5a,'detail':_0x4875b6};break;default:_0x1a581e={'error':_0x4875b6};}return new Response(JSON[_0x4f4989(0xe4)](_0x1a581e),{'status':_0x4b4d5a,'headers':{'Content-Type':_0x4f4989(0xde)}});};}static[a150_0x42eb34(0xdc)](_0x4ee5d2,_0x4f579c,_0x3455fb=0xc8){const _0x45b765=a150_0x42eb34;return()=>new Response(JSON[_0x45b765(0xe4)](_0x4ee5d2),{'status':_0x3455fb,'headers':{'Content-Type':_0x45b765(0xde),..._0x4f579c}});}static[a150_0x42eb34(0xea)](_0x36e368,_0x345c47=0xc8){const _0x46b906=a150_0x42eb34;return()=>new Response(_0x36e368,{'status':_0x345c47,'headers':{'Content-Type':_0x46b906(0xfc)}});}static[a150_0x42eb34(0xef)](_0x93d303){return()=>{throw new Error(_0x93d303);};}['createFetch'](){const _0x393df0=a150_0x42eb34;return this[_0x393df0(0xce)]=vi['fn']()[_0x393df0(0x108)](async(_0x1c2242,_0x9238ad)=>{const _0x1ce926=_0x393df0,_0x21ea2c=this[_0x1ce926(0xc6)](_0x1c2242,_0x9238ad);this[_0x1ce926(0x104)]['push'](_0x21ea2c);for(const _0x578c90 of this[_0x1ce926(0xbf)]){if(_0x578c90[_0x1ce926(0xe8)](_0x21ea2c))return _0x578c90[_0x1ce926(0xe1)]=!![],_0x578c90[_0x1ce926(0xf2)]++,_0x578c90[_0x1ce926(0xfd)](_0x21ea2c);}const _0x28542=this[_0x1ce926(0xbf)][_0x1ce926(0x10e)]((_0x4e3729,_0x5ac75c)=>'\x20\x20'+(_0x5ac75c+0x1)+'.\x20'+(_0x4e3729[_0x1ce926(0x101)]??_0x1ce926(0xe3)))['join']('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x21ea2c[_0x1ce926(0x10a)]+'\x20'+_0x21ea2c[_0x1ce926(0xca)]+'\x0a'+('Request\x20body:\x20'+JSON[_0x1ce926(0xe4)](_0x21ea2c['body'])+'\x0a')+(_0x1ce926(0xf0)+(_0x28542||'\x20\x20(none)')));}),this['fetchMock'];}[a150_0x42eb34(0xc6)](_0x2b4a14,_0x47b6f0){const _0x349519=a150_0x42eb34,_0x1a9d3b={};if(_0x47b6f0?.['headers']){if(_0x47b6f0[_0x349519(0xe2)]instanceof Headers)_0x47b6f0[_0x349519(0xe2)][_0x349519(0xed)]((_0x9b623c,_0x5f559f)=>{_0x1a9d3b[_0x5f559f['toLowerCase']()]=_0x9b623c;});else{if(Array[_0x349519(0xdd)](_0x47b6f0[_0x349519(0xe2)]))for(const [_0x16667f,_0x44daac]of _0x47b6f0[_0x349519(0xe2)]){_0x1a9d3b[_0x16667f['toLowerCase']()]=_0x44daac;}else for(const [_0x328230,_0x2a7e63]of Object['entries'](_0x47b6f0[_0x349519(0xe2)])){_0x2a7e63!==undefined&&(_0x1a9d3b[_0x328230['toLowerCase']()]=_0x2a7e63);}}}let _0x26c3c9;if(_0x47b6f0?.['body'])try{_0x26c3c9=JSON[_0x349519(0xfe)](_0x47b6f0[_0x349519(0xe0)]);}catch{_0x26c3c9=_0x47b6f0[_0x349519(0xe0)];}return{'method':_0x47b6f0?.['method']??_0x349519(0x111),'url':_0x2b4a14,'headers':_0x1a9d3b,'body':_0x26c3c9};}[a150_0x42eb34(0xc7)](_0x545866){const _0x4ec719=a150_0x42eb34,_0x360522=this[_0x4ec719(0xbf)][_0x4ec719(0xd3)](_0x449f74=>!_0x449f74['matched']);if(_0x360522[_0x4ec719(0x10b)]>0x0){const _0x27d193=_0x360522[_0x4ec719(0x10e)](_0x324380=>{const _0x54751f=_0x4ec719,_0xf97775=_0x324380['description']?'\x20('+_0x324380[_0x54751f(0x101)]+')':'',_0x1d4997=_0x324380[_0x54751f(0xc9)][_0x54751f(0xd1)]('\x0a')[_0x54751f(0xff)](0x2,0x5)[_0x54751f(0xd0)]('\x0a');return _0x54751f(0xec)+_0xf97775+_0x54751f(0x107)+_0x1d4997;});_0x545866[_0x4ec719(0xe5)](_0x360522[_0x4ec719(0x10b)]+_0x4ec719(0xc3)+_0x27d193[_0x4ec719(0xd0)]('\x0a\x0a'));}}['getRequests'](){const _0x3ba34f=a150_0x42eb34;return[...this[_0x3ba34f(0x104)]];}[a150_0x42eb34(0xfb)](){const _0x1442a7=a150_0x42eb34;return this[_0x1442a7(0x104)][this['requests'][_0x1442a7(0x10b)]-0x1];}[a150_0x42eb34(0xd7)](_0xd0bfa6,_0x4535bf){const _0x4a2804=a150_0x42eb34;return this[_0x4a2804(0x104)]['some'](_0x22b310=>{const _0x35d83e=_0x4a2804;if(_0x22b310[_0x35d83e(0x10a)]['toUpperCase']()!==_0xd0bfa6[_0x35d83e(0xd8)]())return![];if(typeof _0x4535bf==='string')return _0x22b310[_0x35d83e(0xca)][_0x35d83e(0xf9)](_0x4535bf);return _0x4535bf['test'](_0x22b310[_0x35d83e(0xca)]);});}[a150_0x42eb34(0x10d)](_0xb3f7f1){const _0x71f518=a150_0x42eb34;return this[_0x71f518(0xbf)][_0xb3f7f1]?.['matchCount']??0x0;}[a150_0x42eb34(0x10f)](){const _0xce7415=a150_0x42eb34;this[_0xce7415(0xbf)]=[],this[_0xce7415(0x104)]=[],this[_0xce7415(0xce)]=null;}static[a150_0x42eb34(0xf4)](_0x34994f){const _0x3215ea=a150_0x42eb34,_0x12d830={0xc8:'OK',0xc9:_0x3215ea(0xd6),0xcc:'No\x20Content',0x190:_0x3215ea(0xc4),0x191:_0x3215ea(0x105),0x193:_0x3215ea(0xd5),0x194:_0x3215ea(0xf5),0x199:_0x3215ea(0xe9),0x1a6:'Unprocessable\x20Entity',0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x3215ea(0xc8),0x1f6:'Bad\x20Gateway',0x1f7:_0x3215ea(0xda)};return _0x12d830[_0x34994f]??_0x3215ea(0xd4);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a150_0x11858a=a150_0x2fec;(function(_0x5c22cc,_0x1cac04){const _0x31045a=a150_0x2fec,_0x4ef9b2=_0x5c22cc();while(!![]){try{const _0xd56b1d=parseInt(_0x31045a(0xa2))/0x1*(parseInt(_0x31045a(0x8c))/0x2)+parseInt(_0x31045a(0xbd))/0x3*(-parseInt(_0x31045a(0xce))/0x4)+parseInt(_0x31045a(0xd3))/0x5*(parseInt(_0x31045a(0xac))/0x6)+-parseInt(_0x31045a(0xcc))/0x7*(-parseInt(_0x31045a(0x87))/0x8)+-parseInt(_0x31045a(0x82))/0x9*(-parseInt(_0x31045a(0xcf))/0xa)+parseInt(_0x31045a(0xca))/0xb+parseInt(_0x31045a(0xc1))/0xc*(-parseInt(_0x31045a(0xb8))/0xd);if(_0xd56b1d===_0x1cac04)break;else _0x4ef9b2['push'](_0x4ef9b2['shift']());}catch(_0x2d2010){_0x4ef9b2['push'](_0x4ef9b2['shift']());}}}(a150_0x3648,0x2a4f9));import{vi}from'vitest';function a150_0x2fec(_0x141f05,_0x3b8bf6){_0x141f05=_0x141f05-0x7f;const _0x36480d=a150_0x3648();let _0x2fecfd=_0x36480d[_0x141f05];return _0x2fecfd;}export class HTTPMockRegistry{[a150_0x11858a(0x95)]=[];[a150_0x11858a(0xb9)]=[];['fetchMock']=null;['REST'](_0x3a7b54,_0x12306f){return _0x8aa72a=>{const _0x212f95=a150_0x2fec;if(_0x8aa72a[_0x212f95(0x9a)][_0x212f95(0x93)]()!==_0x3a7b54[_0x212f95(0x93)]())return![];const _0x4b820b=new URL(_0x8aa72a[_0x212f95(0xc0)]);if(typeof _0x12306f===_0x212f95(0xad))return _0x4b820b[_0x212f95(0x89)]===_0x12306f||_0x4b820b[_0x212f95(0x89)]['includes'](_0x12306f);return _0x12306f[_0x212f95(0x8b)](_0x4b820b['pathname']);};}[a150_0x11858a(0xae)](_0x1f0178,_0x20e162){return _0x329f8b=>{const _0x1f9cac=a150_0x2fec;if(!_0x1f0178(_0x329f8b))return![];const _0x161d52=new URL(_0x329f8b['url']);return Object['entries'](_0x20e162)[_0x1f9cac(0x85)](([_0x3af0c5,_0x1f9f95])=>_0x161d52['searchParams'][_0x1f9cac(0x96)](_0x3af0c5)===_0x1f9f95);};}['withBody'](_0x43e47f,_0x2c2745){return _0x3302f=>{const _0x13211f=a150_0x2fec;if(!_0x43e47f(_0x3302f))return![];if(typeof _0x2c2745===_0x13211f(0xc8))return _0x2c2745(_0x3302f[_0x13211f(0x90)]);return JSON[_0x13211f(0xa0)](_0x3302f[_0x13211f(0x90)])===JSON[_0x13211f(0xa0)](_0x2c2745);};}[a150_0x11858a(0xcd)](_0x14d1e9,_0xd99d7d){return _0x1aceaf=>{const _0x51b479=a150_0x2fec;if(!_0x14d1e9(_0x1aceaf))return![];const _0x21b485=new URL(_0x1aceaf[_0x51b479(0xc0)]);return _0x21b485[_0x51b479(0xc9)]===_0xd99d7d;};}[a150_0x11858a(0x8a)](_0x5a23e4,_0x2e403d,_0x4b5640){const _0x41008e=a150_0x11858a;this[_0x41008e(0x95)][_0x41008e(0xd1)]({'matcher':_0x5a23e4,'responder':_0x2e403d,'matched':![],'matchCount':0x0,'stack':new Error()[_0x41008e(0xb2)]??'','description':_0x4b5640?.[_0x41008e(0xa1)]});}[a150_0x11858a(0x83)](_0x5d58f2,_0x460ad6,_0x5dd95c){const _0x412873=a150_0x11858a,_0x3318f1=_0x366fcc=>{const _0x31b6d6=a150_0x2fec;return _0x5dd95c(_0x366fcc[_0x31b6d6(0x90)],_0x366fcc),_0x460ad6(_0x366fcc);};this[_0x412873(0x8a)](_0x5d58f2,_0x3318f1);}static[a150_0x11858a(0xb1)](_0x5354df,_0x10ca95=0xc8){const _0x51966d=a150_0x11858a;return()=>new Response(JSON[_0x51966d(0xa0)](_0x5354df),{'status':_0x10ca95,'headers':{'Content-Type':_0x51966d(0x98)}});}static[a150_0x11858a(0xa6)](_0x438155,_0x4b0a96,_0x59572e=a150_0x11858a(0xc5)){return()=>{const _0xa50c4d=a150_0x2fec;let _0x3b9ccf;switch(_0x59572e){case _0xa50c4d(0x92):_0x3b9ccf={'errors':{'error':_0x4b0a96,'message':_0x4b0a96,'severity':'error','status_code':_0x438155}};break;case'rfc9457':_0x3b9ccf={'type':_0xa50c4d(0xd0)+_0x438155,'title':HTTPMockRegistry['getStatusText'](_0x438155),'status':_0x438155,'detail':_0x4b0a96};break;default:_0x3b9ccf={'error':_0x4b0a96};}return new Response(JSON['stringify'](_0x3b9ccf),{'status':_0x438155,'headers':{'Content-Type':_0xa50c4d(0x98)}});};}static['jsonResponseWithHeaders'](_0x322029,_0xcd4874,_0x5c16bf=0xc8){const _0x1e9420=a150_0x11858a;return()=>new Response(JSON['stringify'](_0x322029),{'status':_0x5c16bf,'headers':{'Content-Type':_0x1e9420(0x98),..._0xcd4874}});}static[a150_0x11858a(0xaf)](_0x59f4be,_0x522e93=0xc8){const _0x51e41f=a150_0x11858a;return()=>new Response(_0x59f4be,{'status':_0x522e93,'headers':{'Content-Type':_0x51e41f(0xc3)}});}static[a150_0x11858a(0xbf)](_0x267b19){return()=>{throw new Error(_0x267b19);};}[a150_0x11858a(0xa3)](){const _0x234a4f=a150_0x11858a;return this[_0x234a4f(0xc4)]=vi['fn']()['mockImplementation'](async(_0x2ee048,_0x3f7289)=>{const _0x36118c=_0x234a4f,_0x3c4b3c=this[_0x36118c(0xc6)](_0x2ee048,_0x3f7289);this[_0x36118c(0xb9)][_0x36118c(0xd1)](_0x3c4b3c);for(const _0x41e10b of this['stubs']){if(_0x41e10b[_0x36118c(0x91)](_0x3c4b3c))return _0x41e10b[_0x36118c(0x9c)]=!![],_0x41e10b['matchCount']++,_0x41e10b[_0x36118c(0x8d)](_0x3c4b3c);}const _0x1c4b6d=this[_0x36118c(0x95)][_0x36118c(0xbb)]((_0x445fc8,_0x261926)=>'\x20\x20'+(_0x261926+0x1)+'.\x20'+(_0x445fc8[_0x36118c(0xa1)]??_0x36118c(0x8e)))[_0x36118c(0xcb)]('\x0a');throw new Error(_0x36118c(0x7f)+_0x3c4b3c[_0x36118c(0x9a)]+'\x20'+_0x3c4b3c[_0x36118c(0xc0)]+'\x0a'+(_0x36118c(0xb0)+JSON[_0x36118c(0xa0)](_0x3c4b3c[_0x36118c(0x90)])+'\x0a')+(_0x36118c(0xb5)+(_0x1c4b6d||_0x36118c(0x86))));}),this[_0x234a4f(0xc4)];}[a150_0x11858a(0xc6)](_0x54e071,_0x53325f){const _0x3137bc=a150_0x11858a,_0x23353d={};if(_0x53325f?.[_0x3137bc(0xab)]){if(_0x53325f[_0x3137bc(0xab)]instanceof Headers)_0x53325f['headers'][_0x3137bc(0x9f)]((_0x2d6b49,_0x55a0e7)=>{const _0x14f890=_0x3137bc;_0x23353d[_0x55a0e7[_0x14f890(0x97)]()]=_0x2d6b49;});else{if(Array[_0x3137bc(0xc2)](_0x53325f[_0x3137bc(0xab)]))for(const [_0x1743ef,_0x1db21e]of _0x53325f[_0x3137bc(0xab)]){_0x23353d[_0x1743ef[_0x3137bc(0x97)]()]=_0x1db21e;}else for(const [_0x3c58d9,_0x8e9cdb]of Object[_0x3137bc(0xa4)](_0x53325f[_0x3137bc(0xab)])){_0x8e9cdb!==undefined&&(_0x23353d[_0x3c58d9[_0x3137bc(0x97)]()]=_0x8e9cdb);}}}let _0x319697;if(_0x53325f?.[_0x3137bc(0x90)])try{_0x319697=JSON[_0x3137bc(0xa7)](_0x53325f['body']);}catch{_0x319697=_0x53325f[_0x3137bc(0x90)];}return{'method':_0x53325f?.[_0x3137bc(0x9a)]??_0x3137bc(0xa8),'url':_0x54e071,'headers':_0x23353d,'body':_0x319697};}[a150_0x11858a(0x81)](_0x29c435){const _0x474519=a150_0x11858a,_0xf8802b=this[_0x474519(0x95)]['filter'](_0x269bcb=>!_0x269bcb[_0x474519(0x9c)]);if(_0xf8802b[_0x474519(0x9d)]>0x0){const _0x34e3c5=_0xf8802b[_0x474519(0xbb)](_0x37de32=>{const _0x35f243=_0x474519,_0x122636=_0x37de32[_0x35f243(0xa1)]?'\x20('+_0x37de32[_0x35f243(0xa1)]+')':'',_0x1bd420=_0x37de32['stack'][_0x35f243(0x9b)]('\x0a')[_0x35f243(0x84)](0x2,0x5)[_0x35f243(0xcb)]('\x0a');return _0x35f243(0x88)+_0x122636+_0x35f243(0x94)+_0x1bd420;});_0x29c435[_0x474519(0x9e)](_0xf8802b[_0x474519(0x9d)]+_0x474519(0x8f)+_0x34e3c5[_0x474519(0xcb)]('\x0a\x0a'));}}[a150_0x11858a(0xb4)](){const _0x429aca=a150_0x11858a;return[...this[_0x429aca(0xb9)]];}[a150_0x11858a(0xa5)](){const _0x20f356=a150_0x11858a;return this[_0x20f356(0xb9)][this[_0x20f356(0xb9)]['length']-0x1];}[a150_0x11858a(0xaa)](_0x576703,_0x392083){const _0x2606ee=a150_0x11858a;return this[_0x2606ee(0xb9)]['some'](_0x476b6a=>{const _0xb5a09a=_0x2606ee;if(_0x476b6a[_0xb5a09a(0x9a)][_0xb5a09a(0x93)]()!==_0x576703['toUpperCase']())return![];if(typeof _0x392083===_0xb5a09a(0xad))return _0x476b6a[_0xb5a09a(0xc0)][_0xb5a09a(0xa9)](_0x392083);return _0x392083[_0xb5a09a(0x8b)](_0x476b6a[_0xb5a09a(0xc0)]);});}[a150_0x11858a(0x80)](_0x20c658){const _0x3afa3e=a150_0x11858a;return this[_0x3afa3e(0x95)][_0x20c658]?.[_0x3afa3e(0xd2)]??0x0;}['reset'](){const _0x4a328b=a150_0x11858a;this[_0x4a328b(0x95)]=[],this[_0x4a328b(0xb9)]=[],this[_0x4a328b(0xc4)]=null;}static['getStatusText'](_0x591d3c){const _0x463cef=a150_0x11858a,_0x2da268={0xc8:'OK',0xc9:_0x463cef(0xb7),0xcc:_0x463cef(0xbe),0x190:_0x463cef(0x99),0x191:_0x463cef(0xba),0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x463cef(0xb6),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x463cef(0xbc),0x1f4:_0x463cef(0xc7),0x1f6:_0x463cef(0xb3),0x1f7:'Service\x20Unavailable'};return _0x2da268[_0x591d3c]??'Unknown';}}function a150_0x3648(){const _0x4949ba=['Internal\x20Server\x20Error','function','host','2864620pjbRsH','join','7fTLAjW','withHost','716hsKMoV','31910lezMfS','https://api.treasuredata.com/errors/','push','matchCount','165MNHDaz','No\x20stub\x20matched\x20request:\x20','getMatchCount','verify','9vIrHPw','registerWithInspector','slice','every','\x20\x20(none)','2044072WcqkUc','Unmatched\x20stub','pathname','register','test','6WxwnNJ','responder','unnamed\x20stub','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','body','matcher','td-api','toUpperCase','\x20registered\x20at:\x0a','stubs','get','toLowerCase','application/json','Bad\x20Request','method','split','matched','length','fail','forEach','stringify','description','18260fXksYy','createFetch','entries','getLastRequest','errorResponse','parse','GET','includes','wasCalled','headers','17934nTGYmA','string','withQuery','textResponse','Request\x20body:\x20','jsonResponse','stack','Bad\x20Gateway','getRequests','Registered\x20stubs:\x0a','Conflict','Created','4607473ltTIWT','requests','Unauthorized','map','Too\x20Many\x20Requests','2427YDUMVL','No\x20Content','networkError','url','12Zczxkj','isArray','text/plain','fetchMock','simple','parseRequest'];a150_0x3648=function(){return _0x4949ba;};return a150_0x3648();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x483dad,_0x1e5445){var _0x195889=a151_0x2aa0,_0x56dc00=_0x483dad();while(!![]){try{var _0x30c3e3=parseInt(_0x195889(0x1ad))/0x1+-parseInt(_0x195889(0x1ab))/0x2+-parseInt(_0x195889(0x1aa))/0x3*(-parseInt(_0x195889(0x1ac))/0x4)+-parseInt(_0x195889(0x1b0))/0x5*(-parseInt(_0x195889(0x1b1))/0x6)+parseInt(_0x195889(0x1a9))/0x7*(-parseInt(_0x195889(0x1af))/0x8)+-parseInt(_0x195889(0x1b2))/0x9+-parseInt(_0x195889(0x1a8))/0xa*(-parseInt(_0x195889(0x1ae))/0xb);if(_0x30c3e3===_0x1e5445)break;else _0x56dc00['push'](_0x56dc00['shift']());}catch(_0x5bae2b){_0x56dc00['push'](_0x56dc00['shift']());}}}(a151_0x3227,0xe50eb));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a151_0x2aa0(_0x59c722,_0x2dff88){_0x59c722=_0x59c722-0x1a8;var _0x322750=a151_0x3227();var _0x2aa0b8=_0x322750[_0x59c722];return _0x2aa0b8;}function a151_0x3227(){var _0xfe4bdd=['11BCVPAw','430184uTvZyF','2332525jkBnrg','18BSdmid','16186806JMXvHe','13737030ScufHH','224MynpJB','562047DyEuov','146732PVRAVc','28kgkEKV','446194pJRSKv'];a151_0x3227=function(){return _0xfe4bdd;};return a151_0x3227();}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
+ function a151_0x5d7a(_0x536f1f,_0x275775){_0x536f1f=_0x536f1f-0xd6;var _0x321c58=a151_0x321c();var _0x5d7ae1=_0x321c58[_0x536f1f];return _0x5d7ae1;}(function(_0x4567fb,_0x4fb760){var _0x2b1388=a151_0x5d7a,_0x2e67c2=_0x4567fb();while(!![]){try{var _0x166641=-parseInt(_0x2b1388(0xdb))/0x1+-parseInt(_0x2b1388(0xd6))/0x2*(-parseInt(_0x2b1388(0xd7))/0x3)+parseInt(_0x2b1388(0xde))/0x4+parseInt(_0x2b1388(0xda))/0x5*(parseInt(_0x2b1388(0xd9))/0x6)+-parseInt(_0x2b1388(0xd8))/0x7+-parseInt(_0x2b1388(0xdc))/0x8+parseInt(_0x2b1388(0xdd))/0x9;if(_0x166641===_0x4fb760)break;else _0x2e67c2['push'](_0x2e67c2['shift']());}catch(_0x2dbe70){_0x2e67c2['push'](_0x2e67c2['shift']());}}}(a151_0x321c,0xbc9d2));function a151_0x321c(){var _0x1500f4=['1230eIaFNg','1107zDyhCg','4896892oVEaGL','1842qrecrd','23155LkjMQb','43355OzuWBQ','9902520tuaHlH','4563360NBUUbJ','2390384zHEeSe'];a151_0x321c=function(){return _0x1500f4;};return a151_0x321c();}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(_0x452fc0,_0xd92b53){const _0x57f7de=a152_0x24b0,_0x174772=_0x452fc0();while(!![]){try{const _0x4fabf8=-parseInt(_0x57f7de(0x152))/0x1*(parseInt(_0x57f7de(0x157))/0x2)+parseInt(_0x57f7de(0x15a))/0x3*(parseInt(_0x57f7de(0x159))/0x4)+parseInt(_0x57f7de(0x156))/0x5+parseInt(_0x57f7de(0x155))/0x6+-parseInt(_0x57f7de(0x158))/0x7*(parseInt(_0x57f7de(0x150))/0x8)+parseInt(_0x57f7de(0x153))/0x9*(-parseInt(_0x57f7de(0x154))/0xa)+parseInt(_0x57f7de(0x15b))/0xb;if(_0x4fabf8===_0xd92b53)break;else _0x174772['push'](_0x174772['shift']());}catch(_0x3b079b){_0x174772['push'](_0x174772['shift']());}}}(a152_0x2e24,0x89288));function a152_0x2e24(){const _0x2072db=['30840MpXBbd','6234396aBwJpn','412660iZZqSb','82TxxSIh','7VrbnOV','8QxHUZC','234318vGODtu','8674864jFHzAq','push','all','length','6494896uUzlKy','slice','16596TTcHnA','36klhGrs'];a152_0x2e24=function(){return _0x2072db;};return a152_0x2e24();}function a152_0x24b0(_0x368cf8,_0x558b35){_0x368cf8=_0x368cf8-0x14e;const _0x2e2466=a152_0x2e24();let _0x24b087=_0x2e2466[_0x368cf8];return _0x24b087;}export async function batchAsync(_0x5b8f42,_0xeeaaff,_0x3d0794=0xa){const _0x10ccce=a152_0x24b0,_0x3f1723=[];for(let _0x5d1d5b=0x0;_0x5d1d5b<_0x5b8f42[_0x10ccce(0x14f)];_0x5d1d5b+=_0x3d0794){const _0x3b4732=_0x5b8f42[_0x10ccce(0x151)](_0x5d1d5b,_0x5d1d5b+_0x3d0794),_0xc00e23=await Promise[_0x10ccce(0x14e)](_0x3b4732['map'](_0xeeaaff));_0x3f1723[_0x10ccce(0x15c)](..._0xc00e23);}return _0x3f1723;}
1
+ function a152_0x4fe2(_0x403bc4,_0xe2c263){_0x403bc4=_0x403bc4-0x9f;const _0x51bef2=a152_0x51be();let _0x4fe285=_0x51bef2[_0x403bc4];return _0x4fe285;}(function(_0xd132cb,_0x48db2e){const _0x3ceb03=a152_0x4fe2,_0x26994f=_0xd132cb();while(!![]){try{const _0x498631=parseInt(_0x3ceb03(0xaa))/0x1+parseInt(_0x3ceb03(0x9f))/0x2+parseInt(_0x3ceb03(0xa6))/0x3*(parseInt(_0x3ceb03(0xa1))/0x4)+parseInt(_0x3ceb03(0xa2))/0x5+-parseInt(_0x3ceb03(0xab))/0x6*(parseInt(_0x3ceb03(0xa0))/0x7)+-parseInt(_0x3ceb03(0xa5))/0x8+-parseInt(_0x3ceb03(0xa9))/0x9;if(_0x498631===_0x48db2e)break;else _0x26994f['push'](_0x26994f['shift']());}catch(_0x4e1d15){_0x26994f['push'](_0x26994f['shift']());}}}(a152_0x51be,0x2086c));function a152_0x51be(){const _0x4f5262=['1294590zmHZTV','slice','push','1331560CXtFEx','195MXjemR','length','all','2699496khUCRB','78570JjPiQk','3456RkplKM','174664jNljbB','616nBQSGl','13876lrtvSi'];a152_0x51be=function(){return _0x4f5262;};return a152_0x51be();}export async function batchAsync(_0x273d54,_0xdf418b,_0x3b3710=0xa){const _0x107a3e=a152_0x4fe2,_0x132bea=[];for(let _0x123ce3=0x0;_0x123ce3<_0x273d54[_0x107a3e(0xa7)];_0x123ce3+=_0x3b3710){const _0x2ff779=_0x273d54[_0x107a3e(0xa3)](_0x123ce3,_0x123ce3+_0x3b3710),_0x5ab896=await Promise[_0x107a3e(0xa8)](_0x2ff779['map'](_0xdf418b));_0x132bea[_0x107a3e(0xa4)](..._0x5ab896);}return _0x132bea;}
@@ -1 +1 @@
1
- const a153_0x2d8089=a153_0x1157;(function(_0x15a0e0,_0x51bca8){const _0x32c0d7=a153_0x1157,_0x5b49dd=_0x15a0e0();while(!![]){try{const _0x24f632=parseInt(_0x32c0d7(0x18c))/0x1*(parseInt(_0x32c0d7(0x191))/0x2)+parseInt(_0x32c0d7(0x194))/0x3*(parseInt(_0x32c0d7(0x1a8))/0x4)+-parseInt(_0x32c0d7(0x19e))/0x5*(parseInt(_0x32c0d7(0x18f))/0x6)+parseInt(_0x32c0d7(0x1a5))/0x7*(-parseInt(_0x32c0d7(0x18e))/0x8)+parseInt(_0x32c0d7(0x19d))/0x9*(parseInt(_0x32c0d7(0x19b))/0xa)+-parseInt(_0x32c0d7(0x187))/0xb*(-parseInt(_0x32c0d7(0x192))/0xc)+-parseInt(_0x32c0d7(0x190))/0xd*(parseInt(_0x32c0d7(0x1a4))/0xe);if(_0x24f632===_0x51bca8)break;else _0x5b49dd['push'](_0x5b49dd['shift']());}catch(_0x3698cb){_0x5b49dd['push'](_0x5b49dd['shift']());}}}(a153_0x2b07,0x4c848));import*as a153_0xceefae from'chalk';const Chalk=a153_0xceefae[a153_0x2d8089(0x18a)];function a153_0x1157(_0x1b0769,_0x61355e){_0x1b0769=_0x1b0769-0x187;const _0x2b0770=a153_0x2b07();let _0x115722=_0x2b0770[_0x1b0769];return _0x115722;}export function shouldUseColor(_0x2fb9ce={}){const _0x220253=a153_0x2d8089;if(_0x2fb9ce[_0x220253(0x1a3)]===!![])return![];if(_0x2fb9ce[_0x220253(0x19c)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x220253(0x193)][_0x220253(0x1a1)]??![];}export function getChalk(_0x5af616={}){if(shouldUseColor(_0x5af616))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x5afe59,_0x3ec2f9={}){const _0x415cae=a153_0x2d8089;return getChalk(_0x3ec2f9)[_0x415cae(0x197)](_0x5afe59);}export function colorHeader(_0x2622ac,_0x42cea1={}){return getChalk(_0x42cea1)['cyan'](_0x2622ac);}export function colorType(_0x485544,_0x455990={}){const _0x4d319b=a153_0x2d8089;return getChalk(_0x455990)[_0x4d319b(0x197)](_0x485544);}export function colorJSONKey(_0x92aa8,_0xe3ce6c={}){return getChalk(_0xe3ce6c)['blue'](_0x92aa8);}export function colorJSONString(_0x2b5f21,_0x5c82e5={}){const _0x5bf256=a153_0x2d8089;return getChalk(_0x5c82e5)[_0x5bf256(0x1a7)](_0x2b5f21);}export function colorJSONNumber(_0x207d23,_0x2a75b5={}){return getChalk(_0x2a75b5)['cyan'](_0x207d23);}export function colorJSONBoolean(_0x5a1e3c,_0x3b680c={}){const _0x3efc99=a153_0x2d8089;return getChalk(_0x3b680c)[_0x3efc99(0x199)](_0x5a1e3c);}export function colorJSONNull(_0x1689a2,_0x196fdb={}){return getChalk(_0x196fdb)['dim'](_0x1689a2);}export function colorizeJSONCompact(_0x577755,_0x355e37={}){const _0x1cf629=a153_0x2d8089;if(!shouldUseColor(_0x355e37))return JSON[_0x1cf629(0x195)](_0x577755);if(_0x577755===null)return colorJSONNull('null',_0x355e37);if(typeof _0x577755===_0x1cf629(0x1a0))return colorJSONBoolean(String(_0x577755),_0x355e37);if(typeof _0x577755===_0x1cf629(0x18b))return colorJSONNumber(String(_0x577755),_0x355e37);if(typeof _0x577755===_0x1cf629(0x19a))return colorJSONString(JSON[_0x1cf629(0x195)](_0x577755),_0x355e37);if(Array[_0x1cf629(0x1a2)](_0x577755)){if(_0x577755[_0x1cf629(0x19f)]===0x0)return'[]';const _0x16b239=_0x577755['map'](_0x171fa2=>colorizeJSONCompact(_0x171fa2,_0x355e37));return'['+_0x16b239[_0x1cf629(0x188)](',')+']';}if(typeof _0x577755===_0x1cf629(0x196)){const _0x1598d6=Object[_0x1cf629(0x1a6)](_0x577755);if(_0x1598d6[_0x1cf629(0x19f)]===0x0)return'{}';const _0x35ffc5=_0x1598d6[_0x1cf629(0x198)](([_0x173e82,_0xec27dc])=>{const _0x3e4840=colorJSONKey(JSON['stringify'](_0x173e82),_0x355e37),_0x464af6=colorizeJSONCompact(_0xec27dc,_0x355e37);return _0x3e4840+':'+_0x464af6;});return'{'+_0x35ffc5[_0x1cf629(0x188)](',')+'}';}return String(_0x577755);}export function colorizeJSON(_0x37d53b,_0x378d2b={},_0x18a4fe=0x0){const _0x3e10bb=a153_0x2d8089;if(!shouldUseColor(_0x378d2b))return JSON[_0x3e10bb(0x195)](_0x37d53b,null,0x2);const _0x2e368c='\x20'[_0x3e10bb(0x189)](_0x18a4fe),_0x518d58=_0x18a4fe+0x2;if(_0x37d53b===null)return colorJSONNull(_0x3e10bb(0x18d),_0x378d2b);if(typeof _0x37d53b==='boolean')return colorJSONBoolean(String(_0x37d53b),_0x378d2b);if(typeof _0x37d53b===_0x3e10bb(0x18b))return colorJSONNumber(String(_0x37d53b),_0x378d2b);if(typeof _0x37d53b===_0x3e10bb(0x19a))return colorJSONString(JSON[_0x3e10bb(0x195)](_0x37d53b),_0x378d2b);if(Array[_0x3e10bb(0x1a2)](_0x37d53b)){if(_0x37d53b[_0x3e10bb(0x19f)]===0x0)return'[]';const _0x5154e1=_0x37d53b[_0x3e10bb(0x198)](_0x3e1504=>{const _0x29296a=colorizeJSON(_0x3e1504,_0x378d2b,_0x518d58);return''+'\x20'['repeat'](_0x518d58)+_0x29296a;});return'[\x0a'+_0x5154e1[_0x3e10bb(0x188)](',\x0a')+('\x0a'+_0x2e368c+']');}if(typeof _0x37d53b===_0x3e10bb(0x196)){const _0xe214ec=Object['entries'](_0x37d53b);if(_0xe214ec['length']===0x0)return'{}';const _0x391a2c=_0xe214ec[_0x3e10bb(0x198)](([_0x30df3d,_0x2db860])=>{const _0x12db9d=_0x3e10bb,_0x419daa=colorJSONKey(JSON[_0x12db9d(0x195)](_0x30df3d),_0x378d2b),_0x5b9686=colorizeJSON(_0x2db860,_0x378d2b,_0x518d58);return''+'\x20'['repeat'](_0x518d58)+_0x419daa+':\x20'+_0x5b9686;});return'{\x0a'+_0x391a2c['join'](',\x0a')+('\x0a'+_0x2e368c+'}');}return String(_0x37d53b);}function a153_0x2b07(){const _0xb3c5cf=['300244odTKcm','52549TmRcrS','entries','green','11164xqObFQ','11bPDhhK','join','repeat','Chalk','number','226887kMHAUz','null','424jklGZI','12198QESjEq','325okGtck','2cAqycZ','5718312gkCNer','stdout','603MNaWTb','stringify','object','dim','map','yellow','string','3083130orbUjD','color','9SReCpw','800WtiorT','length','boolean','isTTY','isArray','noColor'];a153_0x2b07=function(){return _0xb3c5cf;};return a153_0x2b07();}
1
+ const a153_0x5d81c7=a153_0x2aac;(function(_0x23e953,_0x187eee){const _0x246b36=a153_0x2aac,_0xb3150a=_0x23e953();while(!![]){try{const _0x132c4d=parseInt(_0x246b36(0x1dd))/0x1*(-parseInt(_0x246b36(0x1e0))/0x2)+-parseInt(_0x246b36(0x1e3))/0x3*(parseInt(_0x246b36(0x1d5))/0x4)+-parseInt(_0x246b36(0x1df))/0x5*(parseInt(_0x246b36(0x1d9))/0x6)+-parseInt(_0x246b36(0x1da))/0x7+parseInt(_0x246b36(0x1e4))/0x8+parseInt(_0x246b36(0x1d6))/0x9+parseInt(_0x246b36(0x1d8))/0xa;if(_0x132c4d===_0x187eee)break;else _0xb3150a['push'](_0xb3150a['shift']());}catch(_0x4c4c70){_0xb3150a['push'](_0xb3150a['shift']());}}}(a153_0x2b50,0x5b2d8));import*as a153_0x192923 from'chalk';const Chalk=a153_0x192923[a153_0x5d81c7(0x1d1)];export function shouldUseColor(_0x3173c6={}){const _0x3c1a9a=a153_0x5d81c7;if(_0x3173c6['noColor']===!![])return![];if(_0x3173c6[_0x3c1a9a(0x1e2)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3c1a9a(0x1d3)][_0x3c1a9a(0x1d7)]??![];}export function getChalk(_0x5a1e38={}){if(shouldUseColor(_0x5a1e38))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1c3df4,_0x2ef76d={}){const _0x114b3f=a153_0x5d81c7;return getChalk(_0x2ef76d)[_0x114b3f(0x1e1)](_0x1c3df4);}export function colorHeader(_0x431be9,_0x518f5f={}){const _0x531985=a153_0x5d81c7;return getChalk(_0x518f5f)[_0x531985(0x1d2)](_0x431be9);}export function colorType(_0x32d01f,_0x550d25={}){const _0x30c563=a153_0x5d81c7;return getChalk(_0x550d25)[_0x30c563(0x1e1)](_0x32d01f);}function a153_0x2aac(_0x498ea3,_0x1d9a07){_0x498ea3=_0x498ea3-0x1cc;const _0x2b502d=a153_0x2b50();let _0x2aac1c=_0x2b502d[_0x498ea3];return _0x2aac1c;}function a153_0x2b50(){const _0x3577f5=['10342310fTKaxr','12wEFojI','855764THnLSD','boolean','blue','19AkERcC','entries','1176585AHexGt','36346TaLQqR','dim','color','60edfRzz','1289888sLtkVx','yellow','map','string','join','green','length','number','stringify','isArray','repeat','null','Chalk','cyan','stdout','object','64BtntxE','1048410sUHBIe','isTTY'];a153_0x2b50=function(){return _0x3577f5;};return a153_0x2b50();}export function colorJSONKey(_0x457039,_0x39d2e7={}){const _0x19bb86=a153_0x5d81c7;return getChalk(_0x39d2e7)[_0x19bb86(0x1dc)](_0x457039);}export function colorJSONString(_0x4a0abc,_0x20df2f={}){const _0x5a2a3d=a153_0x5d81c7;return getChalk(_0x20df2f)[_0x5a2a3d(0x1e9)](_0x4a0abc);}export function colorJSONNumber(_0x15c87e,_0x26f4ed={}){const _0x568c68=a153_0x5d81c7;return getChalk(_0x26f4ed)[_0x568c68(0x1d2)](_0x15c87e);}export function colorJSONBoolean(_0x522604,_0x3e8062={}){const _0x5ef2c0=a153_0x5d81c7;return getChalk(_0x3e8062)[_0x5ef2c0(0x1e5)](_0x522604);}export function colorJSONNull(_0x5d2a99,_0x5f2229={}){return getChalk(_0x5f2229)['dim'](_0x5d2a99);}export function colorizeJSONCompact(_0x10097b,_0x2f64a7={}){const _0x461dc4=a153_0x5d81c7;if(!shouldUseColor(_0x2f64a7))return JSON[_0x461dc4(0x1cd)](_0x10097b);if(_0x10097b===null)return colorJSONNull(_0x461dc4(0x1d0),_0x2f64a7);if(typeof _0x10097b===_0x461dc4(0x1db))return colorJSONBoolean(String(_0x10097b),_0x2f64a7);if(typeof _0x10097b===_0x461dc4(0x1cc))return colorJSONNumber(String(_0x10097b),_0x2f64a7);if(typeof _0x10097b===_0x461dc4(0x1e7))return colorJSONString(JSON[_0x461dc4(0x1cd)](_0x10097b),_0x2f64a7);if(Array['isArray'](_0x10097b)){if(_0x10097b[_0x461dc4(0x1ea)]===0x0)return'[]';const _0x34b281=_0x10097b[_0x461dc4(0x1e6)](_0x16504c=>colorizeJSONCompact(_0x16504c,_0x2f64a7));return'['+_0x34b281['join'](',')+']';}if(typeof _0x10097b===_0x461dc4(0x1d4)){const _0x130a5e=Object[_0x461dc4(0x1de)](_0x10097b);if(_0x130a5e[_0x461dc4(0x1ea)]===0x0)return'{}';const _0x21d056=_0x130a5e[_0x461dc4(0x1e6)](([_0xd9a025,_0x37af7c])=>{const _0x14095d=colorJSONKey(JSON['stringify'](_0xd9a025),_0x2f64a7),_0x4df327=colorizeJSONCompact(_0x37af7c,_0x2f64a7);return _0x14095d+':'+_0x4df327;});return'{'+_0x21d056[_0x461dc4(0x1e8)](',')+'}';}return String(_0x10097b);}export function colorizeJSON(_0x613d45,_0x2cf05d={},_0x24cbbc=0x0){const _0x342469=a153_0x5d81c7;if(!shouldUseColor(_0x2cf05d))return JSON[_0x342469(0x1cd)](_0x613d45,null,0x2);const _0x1ae243='\x20'['repeat'](_0x24cbbc),_0x22ef20=_0x24cbbc+0x2;if(_0x613d45===null)return colorJSONNull(_0x342469(0x1d0),_0x2cf05d);if(typeof _0x613d45===_0x342469(0x1db))return colorJSONBoolean(String(_0x613d45),_0x2cf05d);if(typeof _0x613d45==='number')return colorJSONNumber(String(_0x613d45),_0x2cf05d);if(typeof _0x613d45===_0x342469(0x1e7))return colorJSONString(JSON[_0x342469(0x1cd)](_0x613d45),_0x2cf05d);if(Array[_0x342469(0x1ce)](_0x613d45)){if(_0x613d45[_0x342469(0x1ea)]===0x0)return'[]';const _0x401ba2=_0x613d45[_0x342469(0x1e6)](_0x364499=>{const _0x3b08e6=_0x342469,_0x38e707=colorizeJSON(_0x364499,_0x2cf05d,_0x22ef20);return''+'\x20'[_0x3b08e6(0x1cf)](_0x22ef20)+_0x38e707;});return'[\x0a'+_0x401ba2['join'](',\x0a')+('\x0a'+_0x1ae243+']');}if(typeof _0x613d45===_0x342469(0x1d4)){const _0x483f96=Object[_0x342469(0x1de)](_0x613d45);if(_0x483f96['length']===0x0)return'{}';const _0x54bbd7=_0x483f96[_0x342469(0x1e6)](([_0x4b89f0,_0x148253])=>{const _0x1d7f8f=_0x342469,_0x47b02a=colorJSONKey(JSON['stringify'](_0x4b89f0),_0x2cf05d),_0x398b92=colorizeJSON(_0x148253,_0x2cf05d,_0x22ef20);return''+'\x20'[_0x1d7f8f(0x1cf)](_0x22ef20)+_0x47b02a+':\x20'+_0x398b92;});return'{\x0a'+_0x54bbd7['join'](',\x0a')+('\x0a'+_0x1ae243+'}');}return String(_0x613d45);}
@@ -1 +1 @@
1
- (function(_0x2110a3,_0x21709f){const _0x47866b=a154_0x556f,_0x3eaa14=_0x2110a3();while(!![]){try{const _0x519e22=parseInt(_0x47866b(0x93))/0x1+parseInt(_0x47866b(0x8f))/0x2+parseInt(_0x47866b(0x84))/0x3+parseInt(_0x47866b(0x8e))/0x4+parseInt(_0x47866b(0x88))/0x5+parseInt(_0x47866b(0x96))/0x6+parseInt(_0x47866b(0x92))/0x7*(-parseInt(_0x47866b(0x8c))/0x8);if(_0x519e22===_0x21709f)break;else _0x3eaa14['push'](_0x3eaa14['shift']());}catch(_0x54d359){_0x3eaa14['push'](_0x3eaa14['shift']());}}}(a154_0x35c7,0xb401c));import a154_0x321f4f from'chalk';export function generateDiff(_0x5415cc,_0xf02676){const _0x578579=a154_0x556f,_0x536083=_0x5415cc[_0x578579(0x95)]('\x0a'),_0x55da08=_0xf02676[_0x578579(0x95)]('\x0a'),_0x520fde=[],_0x50d03f=computeLCS(_0x536083,_0x55da08);let _0x3e1ed1=0x0,_0x56cdf3=0x0,_0x5d5206=0x0;while(_0x3e1ed1<_0x536083[_0x578579(0xa1)]||_0x56cdf3<_0x55da08[_0x578579(0xa1)]){if(_0x5d5206<_0x50d03f[_0x578579(0xa1)]&&_0x3e1ed1<_0x536083[_0x578579(0xa1)]&&_0x536083[_0x3e1ed1]===_0x50d03f[_0x5d5206])_0x56cdf3<_0x55da08[_0x578579(0xa1)]&&_0x55da08[_0x56cdf3]===_0x50d03f[_0x5d5206]?(_0x520fde[_0x578579(0x81)]({'type':_0x578579(0xa3),'content':_0x536083[_0x3e1ed1]}),_0x3e1ed1++,_0x56cdf3++,_0x5d5206++):(_0x520fde[_0x578579(0x81)]({'type':_0x578579(0x9f),'content':_0x55da08[_0x56cdf3]}),_0x56cdf3++);else{if(_0x5d5206<_0x50d03f[_0x578579(0xa1)]&&_0x56cdf3<_0x55da08[_0x578579(0xa1)]&&_0x55da08[_0x56cdf3]===_0x50d03f[_0x5d5206])_0x520fde[_0x578579(0x81)]({'type':'removed','content':_0x536083[_0x3e1ed1]}),_0x3e1ed1++;else{if(_0x3e1ed1<_0x536083['length']&&(_0x5d5206>=_0x50d03f['length']||_0x536083[_0x3e1ed1]!==_0x50d03f[_0x5d5206]))_0x520fde[_0x578579(0x81)]({'type':_0x578579(0x9c),'content':_0x536083[_0x3e1ed1]}),_0x3e1ed1++;else _0x56cdf3<_0x55da08[_0x578579(0xa1)]&&(_0x520fde['push']({'type':_0x578579(0x9f),'content':_0x55da08[_0x56cdf3]}),_0x56cdf3++);}}}return _0x520fde;}function computeLCS(_0x1c0fd4,_0x2d0ad2){const _0x196c02=a154_0x556f,_0x14259b=_0x1c0fd4[_0x196c02(0xa1)],_0x340857=_0x2d0ad2[_0x196c02(0xa1)],_0x25bc68=Array(_0x14259b+0x1)['fill'](null)['map'](()=>Array(_0x340857+0x1)[_0x196c02(0x86)](0x0));for(let _0x53b8da=0x1;_0x53b8da<=_0x14259b;_0x53b8da++){for(let _0x2ebc5b=0x1;_0x2ebc5b<=_0x340857;_0x2ebc5b++){_0x1c0fd4[_0x53b8da-0x1]===_0x2d0ad2[_0x2ebc5b-0x1]?_0x25bc68[_0x53b8da][_0x2ebc5b]=_0x25bc68[_0x53b8da-0x1][_0x2ebc5b-0x1]+0x1:_0x25bc68[_0x53b8da][_0x2ebc5b]=Math['max'](_0x25bc68[_0x53b8da-0x1][_0x2ebc5b],_0x25bc68[_0x53b8da][_0x2ebc5b-0x1]);}}const _0x5ca5f6=[];let _0x1be453=_0x14259b,_0x4e98e4=_0x340857;while(_0x1be453>0x0&&_0x4e98e4>0x0){if(_0x1c0fd4[_0x1be453-0x1]===_0x2d0ad2[_0x4e98e4-0x1])_0x5ca5f6[_0x196c02(0x8b)](_0x1c0fd4[_0x1be453-0x1]),_0x1be453--,_0x4e98e4--;else _0x25bc68[_0x1be453-0x1][_0x4e98e4]>_0x25bc68[_0x1be453][_0x4e98e4-0x1]?_0x1be453--:_0x4e98e4--;}return _0x5ca5f6;}function a154_0x556f(_0x1bc6e5,_0x5913b3){_0x1bc6e5=_0x1bc6e5-0x7f;const _0x35c73a=a154_0x35c7();let _0x556f4f=_0x35c73a[_0x1bc6e5];return _0x556f4f;}export function formatDiffWithColors(_0x4c2e4b,_0xf70734=0x3){const _0x5514ac=a154_0x556f,_0x477e18=new Set();_0x4c2e4b[_0x5514ac(0xa0)]((_0x4ca7ea,_0x5a1e95)=>{const _0x42d09b=_0x5514ac;_0x4ca7ea['type']!==_0x42d09b(0xa3)&&_0x477e18[_0x42d09b(0x8a)](_0x5a1e95);});if(_0x477e18[_0x5514ac(0x91)]===0x0)return'';const _0x161747=new Set();for(const _0x47c2cd of _0x477e18){for(let _0x5d866d=Math['max'](0x0,_0x47c2cd-_0xf70734);_0x5d866d<=Math[_0x5514ac(0x90)](_0x4c2e4b[_0x5514ac(0xa1)]-0x1,_0x47c2cd+_0xf70734);_0x5d866d++){_0x161747[_0x5514ac(0x8a)](_0x5d866d);}}const _0x5aba22=[];let _0x1d9399=-0x1;const _0x23f0bc=_0x4c2e4b[_0x5514ac(0xa1)],_0x4e7cf4=Math['max'](0x3,String(_0x23f0bc)[_0x5514ac(0xa1)]),_0x3d10fe=[];let _0x1580ea=0x0,_0x2d48cc=0x0;for(const _0x429c3d of _0x4c2e4b){if(_0x429c3d[_0x5514ac(0x9b)]===_0x5514ac(0x9c))_0x1580ea++,_0x3d10fe[_0x5514ac(0x81)]({'old':_0x1580ea,'new':0x0});else _0x429c3d[_0x5514ac(0x9b)]===_0x5514ac(0x9f)?(_0x2d48cc++,_0x3d10fe['push']({'old':0x0,'new':_0x2d48cc})):(_0x1580ea++,_0x2d48cc++,_0x3d10fe['push']({'old':_0x1580ea,'new':_0x2d48cc}));}for(let _0x4ecedc=0x0;_0x4ecedc<_0x4c2e4b['length'];_0x4ecedc++){if(!_0x161747[_0x5514ac(0x9d)](_0x4ecedc))continue;_0x1d9399!==-0x1&&_0x4ecedc>_0x1d9399+0x1&&_0x5aba22[_0x5514ac(0x81)](a154_0x321f4f[_0x5514ac(0x85)](_0x5514ac(0x94)));_0x1d9399=_0x4ecedc;const _0x221d5a=_0x4c2e4b[_0x4ecedc],_0x4c9adc=_0x3d10fe[_0x4ecedc],_0x26f881=_0x4c9adc[_0x5514ac(0x80)]>0x0?String(_0x4c9adc[_0x5514ac(0x80)])['padStart'](_0x4e7cf4):'\x20'['repeat'](_0x4e7cf4),_0xefc3e4=_0x4c9adc[_0x5514ac(0x89)]>0x0?String(_0x4c9adc[_0x5514ac(0x89)])[_0x5514ac(0x9e)](_0x4e7cf4):'\x20'[_0x5514ac(0x82)](_0x4e7cf4);switch(_0x221d5a[_0x5514ac(0x9b)]){case _0x5514ac(0x9c):_0x5aba22[_0x5514ac(0x81)](a154_0x321f4f[_0x5514ac(0x87)](_0x26f881+'\x20'+_0xefc3e4+_0x5514ac(0x9a)+_0x221d5a[_0x5514ac(0x7f)]));break;case _0x5514ac(0x9f):_0x5aba22[_0x5514ac(0x81)](a154_0x321f4f[_0x5514ac(0x8d)](_0x26f881+'\x20'+_0xefc3e4+_0x5514ac(0x99)+_0x221d5a[_0x5514ac(0x7f)]));break;default:_0x5aba22[_0x5514ac(0x81)](a154_0x321f4f[_0x5514ac(0xa2)](_0x26f881+'\x20'+_0xefc3e4+_0x5514ac(0x98)+_0x221d5a[_0x5514ac(0x7f)]));break;}}return _0x5aba22[_0x5514ac(0x83)]('\x0a');}export function hasChanges(_0x587a61){const _0x1b2979=a154_0x556f;return _0x587a61[_0x1b2979(0x97)](_0x6be801=>_0x6be801[_0x1b2979(0x9b)]!==_0x1b2979(0xa3));}function a154_0x35c7(){const _0x3ccb07=['add','unshift','48cwuorS','green','2638028XWbeHb','1995718quyIIm','min','size','3832451sSyEqP','77273OfNjEq','\x20\x20...','split','1037604NKoQOm','some','\x20\x20\x20','\x20+\x20','\x20-\x20','type','removed','has','padStart','added','forEach','length','dim','unchanged','content','old','push','repeat','join','2509011PmpJSL','cyan','fill','red','6391780CuPdmn','new'];a154_0x35c7=function(){return _0x3ccb07;};return a154_0x35c7();}
1
+ (function(_0x463705,_0x87a39f){const _0x1433ab=a154_0x227b,_0x103f9d=_0x463705();while(!![]){try{const _0x273f63=parseInt(_0x1433ab(0xd4))/0x1*(-parseInt(_0x1433ab(0xc0))/0x2)+-parseInt(_0x1433ab(0xe0))/0x3*(parseInt(_0x1433ab(0xde))/0x4)+-parseInt(_0x1433ab(0xc8))/0x5+-parseInt(_0x1433ab(0xda))/0x6*(-parseInt(_0x1433ab(0xca))/0x7)+parseInt(_0x1433ab(0xc9))/0x8+parseInt(_0x1433ab(0xd1))/0x9*(parseInt(_0x1433ab(0xd7))/0xa)+parseInt(_0x1433ab(0xbe))/0xb;if(_0x273f63===_0x87a39f)break;else _0x103f9d['push'](_0x103f9d['shift']());}catch(_0x235bf0){_0x103f9d['push'](_0x103f9d['shift']());}}}(a154_0x221a,0xe9d1d));import a154_0x2c5182 from'chalk';function a154_0x221a(){const _0x451132=['map','add','max','\x20+\x20','unshift','added','27pFvBhi','min','repeat','70RjSlHn','fill','size','6130890geKBea','push','cyan','3987402hqyWnq','new','content','green','5313156nVEvfj','padStart','3rLfctr','removed','red','old','13148058IShjcE','dim','48628TLCuMR','unchanged','some','forEach','split','type','join','length','4909360BXZrWV','10166032kwNztU','7KSAvfd'];a154_0x221a=function(){return _0x451132;};return a154_0x221a();}export function generateDiff(_0x45cc80,_0x2656fb){const _0x2ce5cc=a154_0x227b,_0x42edd4=_0x45cc80[_0x2ce5cc(0xc4)]('\x0a'),_0x3ec838=_0x2656fb[_0x2ce5cc(0xc4)]('\x0a'),_0x2d7fe9=[],_0x20c559=computeLCS(_0x42edd4,_0x3ec838);let _0x166f9b=0x0,_0x17d5c9=0x0,_0x4dce1d=0x0;while(_0x166f9b<_0x42edd4[_0x2ce5cc(0xc7)]||_0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]){if(_0x4dce1d<_0x20c559['length']&&_0x166f9b<_0x42edd4[_0x2ce5cc(0xc7)]&&_0x42edd4[_0x166f9b]===_0x20c559[_0x4dce1d])_0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]&&_0x3ec838[_0x17d5c9]===_0x20c559[_0x4dce1d]?(_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':'unchanged','content':_0x42edd4[_0x166f9b]}),_0x166f9b++,_0x17d5c9++,_0x4dce1d++):(_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xd0),'content':_0x3ec838[_0x17d5c9]}),_0x17d5c9++);else{if(_0x4dce1d<_0x20c559[_0x2ce5cc(0xc7)]&&_0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]&&_0x3ec838[_0x17d5c9]===_0x20c559[_0x4dce1d])_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xe1),'content':_0x42edd4[_0x166f9b]}),_0x166f9b++;else{if(_0x166f9b<_0x42edd4['length']&&(_0x4dce1d>=_0x20c559[_0x2ce5cc(0xc7)]||_0x42edd4[_0x166f9b]!==_0x20c559[_0x4dce1d]))_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xe1),'content':_0x42edd4[_0x166f9b]}),_0x166f9b++;else _0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]&&(_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xd0),'content':_0x3ec838[_0x17d5c9]}),_0x17d5c9++);}}}return _0x2d7fe9;}function computeLCS(_0x3ccf23,_0x4a30d7){const _0x3e1ebc=a154_0x227b,_0x236dba=_0x3ccf23[_0x3e1ebc(0xc7)],_0x244591=_0x4a30d7[_0x3e1ebc(0xc7)],_0x35ce8b=Array(_0x236dba+0x1)[_0x3e1ebc(0xd5)](null)[_0x3e1ebc(0xcb)](()=>Array(_0x244591+0x1)[_0x3e1ebc(0xd5)](0x0));for(let _0x47fbf2=0x1;_0x47fbf2<=_0x236dba;_0x47fbf2++){for(let _0x5e8377=0x1;_0x5e8377<=_0x244591;_0x5e8377++){_0x3ccf23[_0x47fbf2-0x1]===_0x4a30d7[_0x5e8377-0x1]?_0x35ce8b[_0x47fbf2][_0x5e8377]=_0x35ce8b[_0x47fbf2-0x1][_0x5e8377-0x1]+0x1:_0x35ce8b[_0x47fbf2][_0x5e8377]=Math['max'](_0x35ce8b[_0x47fbf2-0x1][_0x5e8377],_0x35ce8b[_0x47fbf2][_0x5e8377-0x1]);}}const _0x213fdc=[];let _0x125ffd=_0x236dba,_0x2b7007=_0x244591;while(_0x125ffd>0x0&&_0x2b7007>0x0){if(_0x3ccf23[_0x125ffd-0x1]===_0x4a30d7[_0x2b7007-0x1])_0x213fdc[_0x3e1ebc(0xcf)](_0x3ccf23[_0x125ffd-0x1]),_0x125ffd--,_0x2b7007--;else _0x35ce8b[_0x125ffd-0x1][_0x2b7007]>_0x35ce8b[_0x125ffd][_0x2b7007-0x1]?_0x125ffd--:_0x2b7007--;}return _0x213fdc;}function a154_0x227b(_0x5f5a84,_0x4f2ff1){_0x5f5a84=_0x5f5a84-0xbe;const _0x221abe=a154_0x221a();let _0x227bcf=_0x221abe[_0x5f5a84];return _0x227bcf;}export function formatDiffWithColors(_0x4aa8a6,_0x259372=0x3){const _0x3f7384=a154_0x227b,_0x12d4c2=new Set();_0x4aa8a6[_0x3f7384(0xc3)]((_0x1cd1de,_0x11e406)=>{const _0x1ee351=_0x3f7384;_0x1cd1de['type']!==_0x1ee351(0xc1)&&_0x12d4c2[_0x1ee351(0xcc)](_0x11e406);});if(_0x12d4c2[_0x3f7384(0xd6)]===0x0)return'';const _0x23801e=new Set();for(const _0x5ad9d9 of _0x12d4c2){for(let _0x4aa40b=Math[_0x3f7384(0xcd)](0x0,_0x5ad9d9-_0x259372);_0x4aa40b<=Math[_0x3f7384(0xd2)](_0x4aa8a6[_0x3f7384(0xc7)]-0x1,_0x5ad9d9+_0x259372);_0x4aa40b++){_0x23801e['add'](_0x4aa40b);}}const _0x5b4d13=[];let _0x45be7c=-0x1;const _0x4f9202=_0x4aa8a6[_0x3f7384(0xc7)],_0x529ce3=Math[_0x3f7384(0xcd)](0x3,String(_0x4f9202)[_0x3f7384(0xc7)]),_0x3edb67=[];let _0x57d555=0x0,_0x34ad2e=0x0;for(const _0x150304 of _0x4aa8a6){if(_0x150304[_0x3f7384(0xc5)]===_0x3f7384(0xe1))_0x57d555++,_0x3edb67[_0x3f7384(0xd8)]({'old':_0x57d555,'new':0x0});else _0x150304[_0x3f7384(0xc5)]===_0x3f7384(0xd0)?(_0x34ad2e++,_0x3edb67[_0x3f7384(0xd8)]({'old':0x0,'new':_0x34ad2e})):(_0x57d555++,_0x34ad2e++,_0x3edb67['push']({'old':_0x57d555,'new':_0x34ad2e}));}for(let _0x9d155d=0x0;_0x9d155d<_0x4aa8a6[_0x3f7384(0xc7)];_0x9d155d++){if(!_0x23801e['has'](_0x9d155d))continue;_0x45be7c!==-0x1&&_0x9d155d>_0x45be7c+0x1&&_0x5b4d13[_0x3f7384(0xd8)](a154_0x2c5182[_0x3f7384(0xd9)]('\x20\x20...'));_0x45be7c=_0x9d155d;const _0x4dcba8=_0x4aa8a6[_0x9d155d],_0x2a1711=_0x3edb67[_0x9d155d],_0x29addc=_0x2a1711['old']>0x0?String(_0x2a1711[_0x3f7384(0xe3)])[_0x3f7384(0xdf)](_0x529ce3):'\x20'[_0x3f7384(0xd3)](_0x529ce3),_0x821f2d=_0x2a1711[_0x3f7384(0xdb)]>0x0?String(_0x2a1711[_0x3f7384(0xdb)])['padStart'](_0x529ce3):'\x20'[_0x3f7384(0xd3)](_0x529ce3);switch(_0x4dcba8['type']){case _0x3f7384(0xe1):_0x5b4d13[_0x3f7384(0xd8)](a154_0x2c5182[_0x3f7384(0xe2)](_0x29addc+'\x20'+_0x821f2d+'\x20-\x20'+_0x4dcba8['content']));break;case'added':_0x5b4d13['push'](a154_0x2c5182[_0x3f7384(0xdd)](_0x29addc+'\x20'+_0x821f2d+_0x3f7384(0xce)+_0x4dcba8[_0x3f7384(0xdc)]));break;default:_0x5b4d13[_0x3f7384(0xd8)](a154_0x2c5182[_0x3f7384(0xbf)](_0x29addc+'\x20'+_0x821f2d+'\x20\x20\x20'+_0x4dcba8['content']));break;}}return _0x5b4d13[_0x3f7384(0xc6)]('\x0a');}export function hasChanges(_0x18ae1e){const _0x1eee94=a154_0x227b;return _0x18ae1e[_0x1eee94(0xc2)](_0x2ab2af=>_0x2ab2af[_0x1eee94(0xc5)]!==_0x1eee94(0xc1));}
@@ -1 +1 @@
1
- function a155_0x447e(_0x2c4b5f,_0x257412){_0x2c4b5f=_0x2c4b5f-0x126;const _0x5334f1=a155_0x5334();let _0x447ef9=_0x5334f1[_0x2c4b5f];return _0x447ef9;}(function(_0x7c8fa3,_0xa720df){const _0x3c9607=a155_0x447e,_0x6325bf=_0x7c8fa3();while(!![]){try{const _0x56a0fa=parseInt(_0x3c9607(0x12e))/0x1+-parseInt(_0x3c9607(0x13a))/0x2*(parseInt(_0x3c9607(0x134))/0x3)+-parseInt(_0x3c9607(0x135))/0x4*(parseInt(_0x3c9607(0x139))/0x5)+parseInt(_0x3c9607(0x128))/0x6*(-parseInt(_0x3c9607(0x126))/0x7)+parseInt(_0x3c9607(0x12f))/0x8+-parseInt(_0x3c9607(0x12c))/0x9*(-parseInt(_0x3c9607(0x132))/0xa)+parseInt(_0x3c9607(0x129))/0xb;if(_0x56a0fa===_0xa720df)break;else _0x6325bf['push'](_0x6325bf['shift']());}catch(_0xb403e){_0x6325bf['push'](_0x6325bf['shift']());}}}(a155_0x5334,0x3c75a));import*as a155_0x58261 from'node:fs';import*as a155_0x3bda15 from'node:path';function a155_0x5334(){const _0x874008=['924REwjed','warn','\x20has\x20insecure\x20permissions\x20(','342kEVmxZ','statSync','140434KnmJtj','1858528AQrtUS','Should\x20be\x200600\x20or\x20more\x20restrictive.','toString','110100OjGBAG','existsSync','21YMkqCo','108rjbOig','chmodSync','writeFileSync','mkdirSync','12715sNQTxo','67094lqXfRt','14osiQXI','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','720246zuqAck'];a155_0x5334=function(){return _0x874008;};return a155_0x5334();}export function setSecureFilePermissions(_0x1f9177){const _0x234c7d=a155_0x447e;try{a155_0x58261['chmodSync'](_0x1f9177,0x180);}catch{console[_0x234c7d(0x12a)](_0x234c7d(0x127)+_0x1f9177);}}export function setSecureDirectoryPermissions(_0xe140a1){const _0x3e6832=a155_0x447e;try{a155_0x58261[_0x3e6832(0x136)](_0xe140a1,0x1c0);}catch{console[_0x3e6832(0x12a)](_0x3e6832(0x127)+_0xe140a1);}}export function createSecureDirectory(_0x702610){const _0x737af6=a155_0x447e;!a155_0x58261[_0x737af6(0x133)](_0x702610)&&(a155_0x58261[_0x737af6(0x138)](_0x702610,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x702610));}export function validateSecureFilePermissions(_0x2c5415){const _0x2fd6bd=a155_0x447e;try{const _0x263d3e=a155_0x58261[_0x2fd6bd(0x12d)](_0x2c5415),_0x640875=_0x263d3e['mode']&0x1ff,_0x5113f9=(_0x640875&0x3f)!==0x0;if(_0x5113f9)return console[_0x2fd6bd(0x12a)]('Warning:\x20'+_0x2c5415+_0x2fd6bd(0x12b)+_0x640875[_0x2fd6bd(0x131)](0x8)+').\x20'+_0x2fd6bd(0x130)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x4febdb,_0x333446){const _0x50fb9e=a155_0x447e,_0x504ae3=a155_0x3bda15['dirname'](_0x4febdb);createSecureDirectory(_0x504ae3),a155_0x58261[_0x50fb9e(0x137)](_0x4febdb,_0x333446,{'mode':0x180}),setSecureFilePermissions(_0x4febdb);}
1
+ function a155_0x2a35(){const _0x4be689=['920061GpIlPK','10433142UPIbTd','4aHuGMd','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync','6OlfzgF',').\x20','warn','Warning:\x20','1737555DYNvpQ','mode','3783052MHshUS','chmodSync','1378192glhUwW','statSync','mkdirSync','440379hleFtv','dirname','toString','478550qMHygv'];a155_0x2a35=function(){return _0x4be689;};return a155_0x2a35();}function a155_0x92e7(_0x191c40,_0x375fae){_0x191c40=_0x191c40-0x14c;const _0x2a3547=a155_0x2a35();let _0x92e75f=_0x2a3547[_0x191c40];return _0x92e75f;}(function(_0x15595a,_0x444019){const _0x2e6c07=a155_0x92e7,_0x1185c4=_0x15595a();while(!![]){try{const _0x140dd5=-parseInt(_0x2e6c07(0x153))/0x1+parseInt(_0x2e6c07(0x156))/0x2+parseInt(_0x2e6c07(0x157))/0x3*(-parseInt(_0x2e6c07(0x159))/0x4)+parseInt(_0x2e6c07(0x14c))/0x5*(parseInt(_0x2e6c07(0x15c))/0x6)+-parseInt(_0x2e6c07(0x14e))/0x7+-parseInt(_0x2e6c07(0x150))/0x8+parseInt(_0x2e6c07(0x158))/0x9;if(_0x140dd5===_0x444019)break;else _0x1185c4['push'](_0x1185c4['shift']());}catch(_0x2b5c3e){_0x1185c4['push'](_0x1185c4['shift']());}}}(a155_0x2a35,0x45e28));import*as a155_0x35ed4e from'node:fs';import*as a155_0x37e1fd from'node:path';export function setSecureFilePermissions(_0x1d199b){const _0x11c0e1=a155_0x92e7;try{a155_0x35ed4e[_0x11c0e1(0x14f)](_0x1d199b,0x180);}catch{console[_0x11c0e1(0x15e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1d199b);}}export function setSecureDirectoryPermissions(_0x54cd51){const _0x5219ff=a155_0x92e7;try{a155_0x35ed4e[_0x5219ff(0x14f)](_0x54cd51,0x1c0);}catch{console[_0x5219ff(0x15e)](_0x5219ff(0x15a)+_0x54cd51);}}export function createSecureDirectory(_0x183ced){const _0x22cd4e=a155_0x92e7;!a155_0x35ed4e['existsSync'](_0x183ced)&&(a155_0x35ed4e[_0x22cd4e(0x152)](_0x183ced,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x183ced));}export function validateSecureFilePermissions(_0x18e43b){const _0x2528cb=a155_0x92e7;try{const _0x1bd9b7=a155_0x35ed4e[_0x2528cb(0x151)](_0x18e43b),_0x685a70=_0x1bd9b7[_0x2528cb(0x14d)]&0x1ff,_0x4afc95=(_0x685a70&0x3f)!==0x0;if(_0x4afc95)return console[_0x2528cb(0x15e)](_0x2528cb(0x15f)+_0x18e43b+'\x20has\x20insecure\x20permissions\x20('+_0x685a70[_0x2528cb(0x155)](0x8)+_0x2528cb(0x15d)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xeaa24c,_0x1c5981){const _0x461f91=a155_0x92e7,_0x1c7009=a155_0x37e1fd[_0x461f91(0x154)](_0xeaa24c);createSecureDirectory(_0x1c7009),a155_0x35ed4e[_0x461f91(0x15b)](_0xeaa24c,_0x1c5981,{'mode':0x180}),setSecureFilePermissions(_0xeaa24c);}
@@ -1 +1 @@
1
- (function(_0x1c5b63,_0x18cfb6){const _0x304fe5=a156_0x1f47,_0x3cb0e1=_0x1c5b63();while(!![]){try{const _0x12ebbf=parseInt(_0x304fe5(0xe3))/0x1*(-parseInt(_0x304fe5(0xde))/0x2)+parseInt(_0x304fe5(0xcb))/0x3*(parseInt(_0x304fe5(0xd2))/0x4)+-parseInt(_0x304fe5(0xd3))/0x5*(-parseInt(_0x304fe5(0xd1))/0x6)+parseInt(_0x304fe5(0xd0))/0x7+-parseInt(_0x304fe5(0xda))/0x8*(parseInt(_0x304fe5(0xce))/0x9)+-parseInt(_0x304fe5(0xe1))/0xa+parseInt(_0x304fe5(0xcd))/0xb*(parseInt(_0x304fe5(0xd8))/0xc);if(_0x12ebbf===_0x18cfb6)break;else _0x3cb0e1['push'](_0x3cb0e1['shift']());}catch(_0x51cdcf){_0x3cb0e1['push'](_0x3cb0e1['shift']());}}}(a156_0x26d9,0xc0ce7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x26c16c=a156_0x1f47;return process.env.TDX_CACHE_DIR||join(homedir(),_0x26c16c(0xdc),_0x26c16c(0xe0));}const registry=new Map();function a156_0x26d9(){const _0x1ebe71=['418626NeOZHf','stringify','tdx','4161780vStehj','replace','3GqoqwK','\x22\x20already\x20registered\x20by\x20\x22','4354701qUFzKV','clear','869aJZspA','9DUhGKk','get','6818518ieesIu','12SxcDYH','4fOaRsg','84540IKpFvk','\x22,\x20cannot\x20register\x20for\x20\x22','set','trim','Global\x20cache\x20key\x20\x22','37560eHtaUE','utf-8','6983000vieTGn','{profile}','.cache','default'];a156_0x26d9=function(){return _0x1ebe71;};return a156_0x26d9();}export function registerGlobalCacheKey(_0x5f265b,_0x48e5c0){const _0x53aca6=a156_0x1f47,_0x42798c=registry[_0x53aca6(0xcf)](_0x5f265b);if(_0x42798c&&_0x42798c!==_0x48e5c0)throw new Error(_0x53aca6(0xd7)+_0x5f265b+_0x53aca6(0xca)+_0x42798c+_0x53aca6(0xd4)+_0x48e5c0+'\x22');registry[_0x53aca6(0xd5)](_0x5f265b,_0x48e5c0);}function a156_0x1f47(_0x3a11d5,_0x5ad019){_0x3a11d5=_0x3a11d5-0xca;const _0x26d9e8=a156_0x26d9();let _0x1f474e=_0x26d9e8[_0x3a11d5];return _0x1f474e;}export function getGlobalCachePath(_0x30f47a){return join(getGlobalCacheDir(),_0x30f47a);}function ensureGlobalCacheDir(){const _0x24ec2e=getGlobalCacheDir();!existsSync(_0x24ec2e)&&mkdirSync(_0x24ec2e,{'recursive':!![]});}function readCacheJson(_0x58f0f1){const _0x14c66c=a156_0x1f47,_0xeef3ea=getGlobalCachePath(_0x58f0f1);if(!existsSync(_0xeef3ea))return undefined;try{const _0x366700=readFileSync(_0xeef3ea,_0x14c66c(0xd9));return JSON['parse'](_0x366700);}catch{return undefined;}}function writeCacheJson(_0x3422bb,_0x201229){const _0x1b62c9=a156_0x1f47;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3422bb),JSON[_0x1b62c9(0xdf)](_0x201229,null,0x2),'utf-8');}function readCacheText(_0x81ffbe){const _0x5eb85e=a156_0x1f47,_0x4d5bfa=getGlobalCachePath(_0x81ffbe);if(!existsSync(_0x4d5bfa))return undefined;try{return readFileSync(_0x4d5bfa,_0x5eb85e(0xd9));}catch{return undefined;}}function writeCacheText(_0x3f0c58,_0x1799d8){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3f0c58),_0x1799d8,'utf-8');}function clearCache(_0xebe228){const _0x58e4da=getGlobalCachePath(_0xebe228);if(existsSync(_0x58e4da))try{unlinkSync(_0x58e4da);}catch{}}function cacheExists(_0x43bb0b){return existsSync(getGlobalCachePath(_0x43bb0b));}export function createGlobalCache(_0x46cc31,_0x4bf554){return registerGlobalCacheKey(_0x46cc31,_0x4bf554),{'read':()=>readCacheJson(_0x46cc31),'write':_0x2d1c39=>writeCacheJson(_0x46cc31,_0x2d1c39),'clear':()=>clearCache(_0x46cc31),'exists':()=>cacheExists(_0x46cc31),'path':()=>getGlobalCachePath(_0x46cc31)};}export function createGlobalTextCache(_0x11e10f,_0x56c36c){const _0x572970=a156_0x1f47;return registerGlobalCacheKey(_0x11e10f,_0x56c36c),{'read':()=>readCacheText(_0x11e10f)?.[_0x572970(0xd6)]()||undefined,'write':_0x3f3827=>writeCacheText(_0x11e10f,_0x3f3827),'clear':()=>clearCache(_0x11e10f),'exists':()=>cacheExists(_0x11e10f),'path':()=>getGlobalCachePath(_0x11e10f)};}export function createProfileCache(_0x8225c5,_0x43cbf9){const _0x19e152=_0x2d4484=>{const _0x4cac5b=a156_0x1f47,_0x200360=_0x2d4484||_0x4cac5b(0xdd);return _0x8225c5[_0x4cac5b(0xe2)](_0x4cac5b(0xdb),_0x200360);};return{'read':_0xc0db58=>{const _0x4ba1d1=_0x19e152(_0xc0db58);return registerGlobalCacheKey(_0x4ba1d1,_0x43cbf9),readCacheJson(_0x4ba1d1);},'write':(_0x549ea2,_0x6ea04)=>{const _0x742c50=_0x19e152(_0x549ea2);registerGlobalCacheKey(_0x742c50,_0x43cbf9),writeCacheJson(_0x742c50,_0x6ea04);},'clear':_0x1cef81=>{const _0x3301a3=_0x19e152(_0x1cef81);clearCache(_0x3301a3);},'exists':_0x4e4fcd=>{const _0xbcec4d=_0x19e152(_0x4e4fcd);return cacheExists(_0xbcec4d);},'path':_0x599d82=>{const _0x447fff=_0x19e152(_0x599d82);return getGlobalCachePath(_0x447fff);}};}export function createOptionalProfileCache(_0x497b0a,_0xc895f7,_0x1a2e78={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x1a2e78,_0x5f243c=_0x40480b=>{return _0x40480b?''+_0x497b0a+profileSeparator+_0x40480b+suffix:''+_0x497b0a+suffix;};return{'read':_0x1dd104=>{const _0x76133a=_0x5f243c(_0x1dd104);return registerGlobalCacheKey(_0x76133a,_0xc895f7),readCacheJson(_0x76133a);},'write':(_0x490e3a,_0x45e691)=>{const _0x2accc6=_0x5f243c(_0x45e691);registerGlobalCacheKey(_0x2accc6,_0xc895f7),writeCacheJson(_0x2accc6,_0x490e3a);},'clear':_0x1415e1=>{const _0x12dfde=_0x5f243c(_0x1415e1);clearCache(_0x12dfde);},'exists':_0x5c8e39=>{const _0x471e63=_0x5f243c(_0x5c8e39);return cacheExists(_0x471e63);},'path':_0x11af75=>{const _0xed0ca3=_0x5f243c(_0x11af75);return getGlobalCachePath(_0xed0ca3);}};}export function clearGlobalRegistry(){const _0x974cee=a156_0x1f47;registry[_0x974cee(0xcc)]();}
1
+ function a156_0x4536(_0x4afc81,_0x380a69){_0x4afc81=_0x4afc81-0x14c;const _0x4fd6a4=a156_0x4fd6();let _0x45363b=_0x4fd6a4[_0x4afc81];return _0x45363b;}(function(_0x38acf1,_0x495e85){const _0x1bf71d=a156_0x4536,_0xfa07e1=_0x38acf1();while(!![]){try{const _0x13c381=parseInt(_0x1bf71d(0x154))/0x1+-parseInt(_0x1bf71d(0x15a))/0x2+-parseInt(_0x1bf71d(0x157))/0x3+parseInt(_0x1bf71d(0x150))/0x4+-parseInt(_0x1bf71d(0x15b))/0x5*(-parseInt(_0x1bf71d(0x158))/0x6)+-parseInt(_0x1bf71d(0x15f))/0x7+parseInt(_0x1bf71d(0x15c))/0x8*(-parseInt(_0x1bf71d(0x15e))/0x9);if(_0x13c381===_0x495e85)break;else _0xfa07e1['push'](_0xfa07e1['shift']());}catch(_0x3fb5b7){_0xfa07e1['push'](_0xfa07e1['shift']());}}}(a156_0x4fd6,0x4b94f));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a156_0x4fd6(){const _0x140f1c=['619227evkmKe','get','\x22\x20already\x20registered\x20by\x20\x22','{profile}','tdx','replace','trim','.cache','108000OIirpA','Global\x20cache\x20key\x20\x22','parse','utf-8','565134FtXsFW','stringify','set','309018TLjRwq','6eKQDZd','default','443350dNPXuL','2614385oklAmZ','24wKFlOc','\x22,\x20cannot\x20register\x20for\x20\x22','1176858fwQJgd'];a156_0x4fd6=function(){return _0x140f1c;};return a156_0x4fd6();}import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x396323=a156_0x4536;return process.env.TDX_CACHE_DIR||join(homedir(),_0x396323(0x14f),_0x396323(0x14c));}const registry=new Map();export function registerGlobalCacheKey(_0x3a6437,_0x2d7579){const _0x10bd7d=a156_0x4536,_0x114052=registry[_0x10bd7d(0x160)](_0x3a6437);if(_0x114052&&_0x114052!==_0x2d7579)throw new Error(_0x10bd7d(0x151)+_0x3a6437+_0x10bd7d(0x161)+_0x114052+_0x10bd7d(0x15d)+_0x2d7579+'\x22');registry[_0x10bd7d(0x156)](_0x3a6437,_0x2d7579);}export function getGlobalCachePath(_0x5ac12d){return join(getGlobalCacheDir(),_0x5ac12d);}function ensureGlobalCacheDir(){const _0x1e5dc5=getGlobalCacheDir();!existsSync(_0x1e5dc5)&&mkdirSync(_0x1e5dc5,{'recursive':!![]});}function readCacheJson(_0x3c76fc){const _0x559160=a156_0x4536,_0x371af9=getGlobalCachePath(_0x3c76fc);if(!existsSync(_0x371af9))return undefined;try{const _0x521a80=readFileSync(_0x371af9,_0x559160(0x153));return JSON[_0x559160(0x152)](_0x521a80);}catch{return undefined;}}function writeCacheJson(_0x10c76a,_0x1ecbad){const _0x1de088=a156_0x4536;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x10c76a),JSON[_0x1de088(0x155)](_0x1ecbad,null,0x2),'utf-8');}function readCacheText(_0x3cbd4a){const _0x3542f8=a156_0x4536,_0x323092=getGlobalCachePath(_0x3cbd4a);if(!existsSync(_0x323092))return undefined;try{return readFileSync(_0x323092,_0x3542f8(0x153));}catch{return undefined;}}function writeCacheText(_0x557d66,_0x3e57fa){const _0x3df431=a156_0x4536;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x557d66),_0x3e57fa,_0x3df431(0x153));}function clearCache(_0x3aa2f9){const _0x9f2517=getGlobalCachePath(_0x3aa2f9);if(existsSync(_0x9f2517))try{unlinkSync(_0x9f2517);}catch{}}function cacheExists(_0x3dab1b){return existsSync(getGlobalCachePath(_0x3dab1b));}export function createGlobalCache(_0x573fc3,_0x28acb9){return registerGlobalCacheKey(_0x573fc3,_0x28acb9),{'read':()=>readCacheJson(_0x573fc3),'write':_0x251db2=>writeCacheJson(_0x573fc3,_0x251db2),'clear':()=>clearCache(_0x573fc3),'exists':()=>cacheExists(_0x573fc3),'path':()=>getGlobalCachePath(_0x573fc3)};}export function createGlobalTextCache(_0x19c961,_0x3f1d33){const _0x362775=a156_0x4536;return registerGlobalCacheKey(_0x19c961,_0x3f1d33),{'read':()=>readCacheText(_0x19c961)?.[_0x362775(0x14e)]()||undefined,'write':_0x17aae3=>writeCacheText(_0x19c961,_0x17aae3),'clear':()=>clearCache(_0x19c961),'exists':()=>cacheExists(_0x19c961),'path':()=>getGlobalCachePath(_0x19c961)};}export function createProfileCache(_0x240bb8,_0x26c550){const _0x4e15f3=_0x1c0fbd=>{const _0x49f0a2=a156_0x4536,_0x52be73=_0x1c0fbd||_0x49f0a2(0x159);return _0x240bb8[_0x49f0a2(0x14d)](_0x49f0a2(0x162),_0x52be73);};return{'read':_0x3ae6eb=>{const _0x10926=_0x4e15f3(_0x3ae6eb);return registerGlobalCacheKey(_0x10926,_0x26c550),readCacheJson(_0x10926);},'write':(_0x143d0a,_0x5c761a)=>{const _0x40ee36=_0x4e15f3(_0x143d0a);registerGlobalCacheKey(_0x40ee36,_0x26c550),writeCacheJson(_0x40ee36,_0x5c761a);},'clear':_0x38def3=>{const _0xa95e32=_0x4e15f3(_0x38def3);clearCache(_0xa95e32);},'exists':_0x130ed0=>{const _0x43c712=_0x4e15f3(_0x130ed0);return cacheExists(_0x43c712);},'path':_0x4a6552=>{const _0x3c30c4=_0x4e15f3(_0x4a6552);return getGlobalCachePath(_0x3c30c4);}};}export function createOptionalProfileCache(_0x2a9420,_0x5b049c,_0x400ba3={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x400ba3,_0x214c2c=_0x54e06b=>{return _0x54e06b?''+_0x2a9420+profileSeparator+_0x54e06b+suffix:''+_0x2a9420+suffix;};return{'read':_0x2d3a02=>{const _0x287b42=_0x214c2c(_0x2d3a02);return registerGlobalCacheKey(_0x287b42,_0x5b049c),readCacheJson(_0x287b42);},'write':(_0x12823b,_0x1d1076)=>{const _0x4bbf41=_0x214c2c(_0x1d1076);registerGlobalCacheKey(_0x4bbf41,_0x5b049c),writeCacheJson(_0x4bbf41,_0x12823b);},'clear':_0x394b94=>{const _0xd745f2=_0x214c2c(_0x394b94);clearCache(_0xd745f2);},'exists':_0x58d01f=>{const _0x5c8b28=_0x214c2c(_0x58d01f);return cacheExists(_0x5c8b28);},'path':_0x2827be=>{const _0x29e4cc=_0x214c2c(_0x2827be);return getGlobalCachePath(_0x29e4cc);}};}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- function a157_0x3990(){const _0x508686=['Permission\x20denied\x20reading\x20file:\x20','code','1666320FKSvOr','NOT_FOUND','7jIucGq','1084KTQLQJ','366368FDeIgG','ENOENT','INVALID_ARGUMENT','message','680949oSJMyI','756600FPelDl','INTERNAL','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','164DBkPeN','File\x20not\x20found:\x20','6326757jyCazm','utf-8','\x27:\x20','64908zWuiyQ','PERMISSION_DENIED'];a157_0x3990=function(){return _0x508686;};return a157_0x3990();}function a157_0x2ecf(_0x192cf0,_0x2ced19){_0x192cf0=_0x192cf0-0x121;const _0x3990a8=a157_0x3990();let _0x2ecf87=_0x3990a8[_0x192cf0];return _0x2ecf87;}(function(_0x3fc3c1,_0x914378){const _0xbb2511=a157_0x2ecf,_0x50dcbd=_0x3fc3c1();while(!![]){try{const _0x539124=parseInt(_0xbb2511(0x12f))/0x1*(parseInt(_0xbb2511(0x123))/0x2)+-parseInt(_0xbb2511(0x134))/0x3+-parseInt(_0xbb2511(0x128))/0x4+-parseInt(_0xbb2511(0x135))/0x5+-parseInt(_0xbb2511(0x12c))/0x6+-parseInt(_0xbb2511(0x12e))/0x7*(-parseInt(_0xbb2511(0x130))/0x8)+parseInt(_0xbb2511(0x125))/0x9;if(_0x539124===_0x914378)break;else _0x50dcbd['push'](_0x50dcbd['shift']());}catch(_0x2eab5d){_0x50dcbd['push'](_0x50dcbd['shift']());}}}(a157_0x3990,0x2861f));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0xd54364,_0x3d8a47){const _0x1da851=a157_0x2ecf;try{if(_0x3d8a47){const _0x1d11cb=await readFile(_0xd54364,_0x1da851(0x126));try{return JSON[_0x1da851(0x122)](_0x1d11cb);}catch(_0x5ea5bb){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0xd54364+_0x1da851(0x127)+(_0x5ea5bb instanceof Error?_0x5ea5bb[_0x1da851(0x133)]:String(_0x5ea5bb)));}}else try{return JSON[_0x1da851(0x122)](_0xd54364);}catch(_0x3fe479){throw new SDKError(ErrorCode[_0x1da851(0x132)],'Invalid\x20JSON\x20string:\x20'+(_0x3fe479 instanceof Error?_0x3fe479[_0x1da851(0x133)]:String(_0x3fe479)));}}catch(_0x237aaa){if(_0x237aaa instanceof SDKError)throw _0x237aaa;if(_0x237aaa instanceof Error&&_0x1da851(0x12b)in _0x237aaa){const _0x15f53a=_0x237aaa;if(_0x15f53a[_0x1da851(0x12b)]===_0x1da851(0x131))throw new SDKError(ErrorCode[_0x1da851(0x12d)],_0x1da851(0x124)+_0xd54364);else{if(_0x15f53a['code']==='EACCES')throw new SDKError(ErrorCode[_0x1da851(0x129)],_0x1da851(0x12a)+_0xd54364);}}throw new SDKError(ErrorCode[_0x1da851(0x136)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x237aaa instanceof Error?_0x237aaa[_0x1da851(0x133)]:String(_0x237aaa)));}}export async function loadJSONFromOptions(_0xad5666,_0x4007ac){const _0x30567b=a157_0x2ecf;if(_0xad5666&&_0x4007ac)throw new SDKError(ErrorCode[_0x30567b(0x132)],_0x30567b(0x121));if(_0xad5666)return await loadJSON(_0xad5666,![]);if(_0x4007ac)return await loadJSON(_0x4007ac,!![]);return undefined;}
1
+ (function(_0xe16f2e,_0x492abe){const _0x57c0ad=a157_0x5ff0,_0x58cede=_0xe16f2e();while(!![]){try{const _0x139c7c=parseInt(_0x57c0ad(0x133))/0x1+parseInt(_0x57c0ad(0x12d))/0x2+-parseInt(_0x57c0ad(0x12a))/0x3+-parseInt(_0x57c0ad(0x132))/0x4*(parseInt(_0x57c0ad(0x134))/0x5)+-parseInt(_0x57c0ad(0x12f))/0x6*(-parseInt(_0x57c0ad(0x137))/0x7)+-parseInt(_0x57c0ad(0x128))/0x8+parseInt(_0x57c0ad(0x129))/0x9;if(_0x139c7c===_0x492abe)break;else _0x58cede['push'](_0x58cede['shift']());}catch(_0x285554){_0x58cede['push'](_0x58cede['shift']());}}}(a157_0x38d3,0x37033));function a157_0x38d3(){const _0x1ee425=['\x27:\x20','utf-8','163040LztAMp','941688WKydgR','357327BZkMlE','code','parse','389032cLJgWK','Invalid\x20JSON\x20string:\x20','88518ouIJCU','INTERNAL','NOT_FOUND','1378796NWJPDR','26793nRCTFa','5xRDReC','ENOENT','Permission\x20denied\x20reading\x20file:\x20','182VaSkOF','INVALID_ARGUMENT','message','EACCES','Failed\x20to\x20load\x20JSON:\x20'];a157_0x38d3=function(){return _0x1ee425;};return a157_0x38d3();}function a157_0x5ff0(_0x31adef,_0x1d6b1a){_0x31adef=_0x31adef-0x122;const _0x38d3cc=a157_0x38d3();let _0x5ff093=_0x38d3cc[_0x31adef];return _0x5ff093;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x19babe,_0x4678a8){const _0xc9ef1a=a157_0x5ff0;try{if(_0x4678a8){const _0x688b68=await readFile(_0x19babe,_0xc9ef1a(0x127));try{return JSON['parse'](_0x688b68);}catch(_0x7857bf){throw new SDKError(ErrorCode[_0xc9ef1a(0x122)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x19babe+_0xc9ef1a(0x126)+(_0x7857bf instanceof Error?_0x7857bf[_0xc9ef1a(0x123)]:String(_0x7857bf)));}}else try{return JSON[_0xc9ef1a(0x12c)](_0x19babe);}catch(_0x5a3b9c){throw new SDKError(ErrorCode[_0xc9ef1a(0x122)],_0xc9ef1a(0x12e)+(_0x5a3b9c instanceof Error?_0x5a3b9c[_0xc9ef1a(0x123)]:String(_0x5a3b9c)));}}catch(_0x78a57c){if(_0x78a57c instanceof SDKError)throw _0x78a57c;if(_0x78a57c instanceof Error&&_0xc9ef1a(0x12b)in _0x78a57c){const _0x12c446=_0x78a57c;if(_0x12c446[_0xc9ef1a(0x12b)]===_0xc9ef1a(0x135))throw new SDKError(ErrorCode[_0xc9ef1a(0x131)],'File\x20not\x20found:\x20'+_0x19babe);else{if(_0x12c446[_0xc9ef1a(0x12b)]===_0xc9ef1a(0x124))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0xc9ef1a(0x136)+_0x19babe);}}throw new SDKError(ErrorCode[_0xc9ef1a(0x130)],_0xc9ef1a(0x125)+(_0x78a57c instanceof Error?_0x78a57c[_0xc9ef1a(0x123)]:String(_0x78a57c)));}}export async function loadJSONFromOptions(_0x2f93ef,_0x5c9c5f){const _0x2379be=a157_0x5ff0;if(_0x2f93ef&&_0x5c9c5f)throw new SDKError(ErrorCode[_0x2379be(0x122)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2f93ef)return await loadJSON(_0x2f93ef,![]);if(_0x5c9c5f)return await loadJSON(_0x5c9c5f,!![]);return undefined;}
@@ -1 +1 @@
1
- const a158_0x294f26=a158_0x1383;(function(_0x411c3f,_0x6a56a2){const _0x5cd718=a158_0x1383,_0xcf8c28=_0x411c3f();while(!![]){try{const _0x16fa04=parseInt(_0x5cd718(0xf2))/0x1+parseInt(_0x5cd718(0xf0))/0x2+-parseInt(_0x5cd718(0xed))/0x3*(parseInt(_0x5cd718(0xec))/0x4)+parseInt(_0x5cd718(0xea))/0x5+-parseInt(_0x5cd718(0xf3))/0x6*(-parseInt(_0x5cd718(0xf1))/0x7)+parseInt(_0x5cd718(0xe4))/0x8+-parseInt(_0x5cd718(0xe9))/0x9*(parseInt(_0x5cd718(0xef))/0xa);if(_0x16fa04===_0x6a56a2)break;else _0xcf8c28['push'](_0xcf8c28['shift']());}catch(_0x2246f9){_0xcf8c28['push'](_0xcf8c28['shift']());}}}(a158_0xfa08,0x4f774));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a158_0x294f26(0xe8),registry=new Map();export function registerCacheKey(_0x4046e9,_0x34c3c1){const _0x530492=a158_0x294f26,_0x449ac8=registry[_0x530492(0xee)](_0x4046e9);if(_0x449ac8&&_0x449ac8!==_0x34c3c1)throw new Error(_0x530492(0xe7)+_0x4046e9+_0x530492(0xf7)+_0x449ac8+_0x530492(0xe3)+_0x34c3c1+'\x22');registry[_0x530492(0xf6)](_0x4046e9,_0x34c3c1);}export function getCacheDir(){const _0x41e8a1=a158_0x294f26;return join(process[_0x41e8a1(0xe6)](),LOCAL_CACHE_DIR);}function a158_0xfa08(){const _0x564a05=['get','10XxKDOL','202592kKphxx','7RcmHpM','380543MLKkwO','3331212lgrBQC','trim','parse','set','\x22\x20already\x20registered\x20by\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','3422088TGFGwg','clear','cwd','Cache\x20key\x20\x22','.cache/tdx','9635103cDrdcA','2415855ICnnZl','utf-8','2207656dqTNhu','3nQAEEx'];a158_0xfa08=function(){return _0x564a05;};return a158_0xfa08();}function a158_0x1383(_0x148342,_0x3eded6){_0x148342=_0x148342-0xe3;const _0xfa0857=a158_0xfa08();let _0x1383b1=_0xfa0857[_0x148342];return _0x1383b1;}export function getCachePath(_0x3806af){return join(getCacheDir(),_0x3806af);}function ensureCacheDir(){const _0x39bfd7=getCacheDir();!existsSync(_0x39bfd7)&&mkdirSync(_0x39bfd7,{'recursive':!![]});}function readCacheJson(_0x32d285){const _0x8fbe1=a158_0x294f26,_0x5672c1=getCachePath(_0x32d285);if(!existsSync(_0x5672c1))return undefined;try{const _0x4c3f64=readFileSync(_0x5672c1,_0x8fbe1(0xeb));return JSON[_0x8fbe1(0xf5)](_0x4c3f64);}catch{return undefined;}}function writeCacheJson(_0x4bdd20,_0x2fc3a0){const _0x34e42d=a158_0x294f26;ensureCacheDir(),writeFileSync(getCachePath(_0x4bdd20),JSON['stringify'](_0x2fc3a0,null,0x2),_0x34e42d(0xeb));}function readCacheText(_0x5186c6){const _0xc00adb=a158_0x294f26,_0x4d1c87=getCachePath(_0x5186c6);if(!existsSync(_0x4d1c87))return undefined;try{return readFileSync(_0x4d1c87,_0xc00adb(0xeb));}catch{return undefined;}}function writeCacheText(_0x460f51,_0x102dc1){const _0x393994=a158_0x294f26;ensureCacheDir(),writeFileSync(getCachePath(_0x460f51),_0x102dc1,_0x393994(0xeb));}function clearCache(_0x248232){const _0x17ecf8=getCachePath(_0x248232);if(existsSync(_0x17ecf8))try{unlinkSync(_0x17ecf8);}catch{}}function cacheExists(_0x469216){return existsSync(getCachePath(_0x469216));}export function createCache(_0x159508,_0x32e548){return registerCacheKey(_0x159508,_0x32e548),{'read':()=>readCacheJson(_0x159508),'write':_0x5f30e1=>writeCacheJson(_0x159508,_0x5f30e1),'clear':()=>clearCache(_0x159508),'exists':()=>cacheExists(_0x159508),'path':()=>getCachePath(_0x159508)};}export function createTextCache(_0x215d4b,_0x42baa1){const _0x123a8d=a158_0x294f26;return registerCacheKey(_0x215d4b,_0x42baa1),{'read':()=>readCacheText(_0x215d4b)?.[_0x123a8d(0xf4)]()||undefined,'write':_0x3bcfc9=>writeCacheText(_0x215d4b,_0x3bcfc9),'clear':()=>clearCache(_0x215d4b),'exists':()=>cacheExists(_0x215d4b),'path':()=>getCachePath(_0x215d4b)};}export function clearRegistry(){const _0x3ff54b=a158_0x294f26;registry[_0x3ff54b(0xe5)]();}
1
+ const a158_0x3edf73=a158_0x1a33;(function(_0x369c94,_0x507030){const _0x551668=a158_0x1a33,_0x32ff91=_0x369c94();while(!![]){try{const _0x1c7282=parseInt(_0x551668(0x15a))/0x1+-parseInt(_0x551668(0x150))/0x2*(-parseInt(_0x551668(0x14c))/0x3)+parseInt(_0x551668(0x152))/0x4+parseInt(_0x551668(0x14f))/0x5+parseInt(_0x551668(0x157))/0x6+parseInt(_0x551668(0x14a))/0x7*(-parseInt(_0x551668(0x155))/0x8)+parseInt(_0x551668(0x154))/0x9*(-parseInt(_0x551668(0x159))/0xa);if(_0x1c7282===_0x507030)break;else _0x32ff91['push'](_0x32ff91['shift']());}catch(_0x1244f2){_0x32ff91['push'](_0x32ff91['shift']());}}}(a158_0x2c95,0x76c26));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a158_0x3edf73(0x156),registry=new Map();function a158_0x1a33(_0x2502c1,_0x4f8c86){_0x2502c1=_0x2502c1-0x149;const _0x2c95a4=a158_0x2c95();let _0x1a3394=_0x2c95a4[_0x2502c1];return _0x1a3394;}export function registerCacheKey(_0x352149,_0x30ce27){const _0x909965=a158_0x3edf73,_0x42d475=registry[_0x909965(0x153)](_0x352149);if(_0x42d475&&_0x42d475!==_0x30ce27)throw new Error('Cache\x20key\x20\x22'+_0x352149+'\x22\x20already\x20registered\x20by\x20\x22'+_0x42d475+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x30ce27+'\x22');registry[_0x909965(0x158)](_0x352149,_0x30ce27);}function a158_0x2c95(){const _0x30d917=['2GKOOrW','clear','1351740bIvetB','get','10701pHkFPv','1328520CMWYNF','.cache/tdx','2456634aEfBZg','set','10030npToih','77213yYgiKE','utf-8','parse','14KAbWIV','cwd','1702251ijYUAD','trim','stringify','3095655uMaiRa'];a158_0x2c95=function(){return _0x30d917;};return a158_0x2c95();}export function getCacheDir(){const _0x2031cd=a158_0x3edf73;return join(process[_0x2031cd(0x14b)](),LOCAL_CACHE_DIR);}export function getCachePath(_0x212eb5){return join(getCacheDir(),_0x212eb5);}function ensureCacheDir(){const _0x4d45a1=getCacheDir();!existsSync(_0x4d45a1)&&mkdirSync(_0x4d45a1,{'recursive':!![]});}function readCacheJson(_0x1722dd){const _0xa7ce16=a158_0x3edf73,_0x59f2df=getCachePath(_0x1722dd);if(!existsSync(_0x59f2df))return undefined;try{const _0x4874d7=readFileSync(_0x59f2df,_0xa7ce16(0x15b));return JSON[_0xa7ce16(0x149)](_0x4874d7);}catch{return undefined;}}function writeCacheJson(_0x28ba19,_0x4aa863){const _0x5709f4=a158_0x3edf73;ensureCacheDir(),writeFileSync(getCachePath(_0x28ba19),JSON[_0x5709f4(0x14e)](_0x4aa863,null,0x2),_0x5709f4(0x15b));}function readCacheText(_0x46850f){const _0x1f5842=a158_0x3edf73,_0xa4d6dd=getCachePath(_0x46850f);if(!existsSync(_0xa4d6dd))return undefined;try{return readFileSync(_0xa4d6dd,_0x1f5842(0x15b));}catch{return undefined;}}function writeCacheText(_0x150d7e,_0x5a74c0){ensureCacheDir(),writeFileSync(getCachePath(_0x150d7e),_0x5a74c0,'utf-8');}function clearCache(_0xe0648f){const _0x3df983=getCachePath(_0xe0648f);if(existsSync(_0x3df983))try{unlinkSync(_0x3df983);}catch{}}function cacheExists(_0x48aeab){return existsSync(getCachePath(_0x48aeab));}export function createCache(_0x5fb236,_0x4e35b7){return registerCacheKey(_0x5fb236,_0x4e35b7),{'read':()=>readCacheJson(_0x5fb236),'write':_0x2bd415=>writeCacheJson(_0x5fb236,_0x2bd415),'clear':()=>clearCache(_0x5fb236),'exists':()=>cacheExists(_0x5fb236),'path':()=>getCachePath(_0x5fb236)};}export function createTextCache(_0x2a4c68,_0x47841a){const _0x41bca8=a158_0x3edf73;return registerCacheKey(_0x2a4c68,_0x47841a),{'read':()=>readCacheText(_0x2a4c68)?.[_0x41bca8(0x14d)]()||undefined,'write':_0x8461b8=>writeCacheText(_0x2a4c68,_0x8461b8),'clear':()=>clearCache(_0x2a4c68),'exists':()=>cacheExists(_0x2a4c68),'path':()=>getCachePath(_0x2a4c68)};}export function clearRegistry(){const _0x3d84ae=a158_0x3edf73;registry[_0x3d84ae(0x151)]();}
@@ -1 +1 @@
1
- const a159_0x14d6da=a159_0x1be2;(function(_0x13dbf8,_0x42446e){const _0x14981c=a159_0x1be2,_0x3602a6=_0x13dbf8();while(!![]){try{const _0x512f9c=parseInt(_0x14981c(0x12a))/0x1+-parseInt(_0x14981c(0x132))/0x2+parseInt(_0x14981c(0x11d))/0x3*(-parseInt(_0x14981c(0x125))/0x4)+-parseInt(_0x14981c(0x12c))/0x5*(parseInt(_0x14981c(0x131))/0x6)+parseInt(_0x14981c(0x134))/0x7*(-parseInt(_0x14981c(0x129))/0x8)+parseInt(_0x14981c(0x11c))/0x9*(parseInt(_0x14981c(0x11e))/0xa)+-parseInt(_0x14981c(0x136))/0xb;if(_0x512f9c===_0x42446e)break;else _0x3602a6['push'](_0x3602a6['shift']());}catch(_0x1770bd){_0x3602a6['push'](_0x3602a6['shift']());}}}(a159_0x40f7,0xa5b21));import a159_0x5b9d3f from'chalk';function a159_0x1be2(_0x5b589b,_0x3ec5b5){_0x5b589b=_0x5b589b-0x119;const _0x40f70a=a159_0x40f7();let _0x1be217=_0x40f70a[_0x5b589b];return _0x1be217;}function a159_0x40f7(){const _0xfad3d5=['1494oBTNal','740yWTpgu','red','Chalk','INFO',']\x20[','timestamp','colors','2180Dhnrog','cyan','TRACE','DEBUG','48648IyZXYc','988541DXdDxk','dim','17665OakEVD','gray','format','default','ERROR','978JQnoek','37296VXIlpM','level','119gOiNHT','component','1026740ijqAxe','blue','chalk','message','91557KNEDRe'];a159_0x40f7=function(){return _0xfad3d5;};return a159_0x40f7();}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a159_0x5b9d3f,ChalkClass=chalkModule[a159_0x14d6da(0x120)]||chalkModule[a159_0x14d6da(0x12f)]?.[a159_0x14d6da(0x120)];export class DefaultLogFormatter{[a159_0x14d6da(0x124)];['chalk'];constructor(_0x40c43b={}){const _0x498d=a159_0x14d6da;this['colors']=_0x40c43b[_0x498d(0x124)]??![],this[_0x498d(0x11a)]=_0x40c43b['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a159_0x5b9d3f;}[a159_0x14d6da(0x12e)](_0xe47abd){const _0x3b3c9a=a159_0x14d6da,_0x3e2c04=formatTimestamp(_0xe47abd[_0x3b3c9a(0x123)]),_0x3b735=logLevelToString(_0xe47abd[_0x3b3c9a(0x133)]);if(!this['colors'])return _0x3e2c04+'\x20['+_0x3b735+_0x3b3c9a(0x122)+_0xe47abd[_0x3b3c9a(0x135)]+']\x20'+_0xe47abd[_0x3b3c9a(0x11b)];const _0x34856a=this['chalk'][_0x3b3c9a(0x12b)](_0x3e2c04),_0x28514b=this['colorLevel'](_0x3b735,_0xe47abd[_0x3b3c9a(0x133)]),_0x1233b7=this['chalk'][_0x3b3c9a(0x119)]('['+_0xe47abd[_0x3b3c9a(0x135)]+']');return _0x34856a+'\x20'+_0x28514b+'\x20'+_0x1233b7+'\x20'+_0xe47abd['message'];}['colorLevel'](_0x4fb7a5,_0x4ea01d){const _0x1c6646=a159_0x14d6da;switch(_0x4ea01d){case LogLevel[_0x1c6646(0x127)]:return this[_0x1c6646(0x11a)][_0x1c6646(0x12d)]('['+_0x4fb7a5+']');case LogLevel[_0x1c6646(0x128)]:return this[_0x1c6646(0x11a)]['green']('['+_0x4fb7a5+']');case LogLevel[_0x1c6646(0x121)]:return this[_0x1c6646(0x11a)][_0x1c6646(0x126)]('['+_0x4fb7a5+']');case LogLevel['WARN']:return this[_0x1c6646(0x11a)]['yellow']('['+_0x4fb7a5+']');case LogLevel[_0x1c6646(0x130)]:return this[_0x1c6646(0x11a)][_0x1c6646(0x11f)]('['+_0x4fb7a5+']');default:return'['+_0x4fb7a5+']';}}}
1
+ const a159_0x532057=a159_0x268b;function a159_0x42e6(){const _0x102b70=['gray','77DvOFSP','DEBUG','message','WARN','component','707544wVvcVA','4bRukWB','Chalk','220494eGoBIu','280010kawCfW','colorLevel','cyan','timestamp','2pIHEKR','chalk','771477SiBEFQ','288459rdnfju','127302VFOreK','yellow','16pnTtPn','ERROR','blue',']\x20[','default','colors','TRACE','red','level','green','25yXCyvU','313566RhsPES','dim'];a159_0x42e6=function(){return _0x102b70;};return a159_0x42e6();}function a159_0x268b(_0x2cb3a2,_0x531c1d){_0x2cb3a2=_0x2cb3a2-0x117;const _0x42e616=a159_0x42e6();let _0x268beb=_0x42e616[_0x2cb3a2];return _0x268beb;}(function(_0xc07fd3,_0x403439){const _0x795187=a159_0x268b,_0x7a90fd=_0xc07fd3();while(!![]){try{const _0x429645=-parseInt(_0x795187(0x125))/0x1*(parseInt(_0x795187(0x129))/0x2)+parseInt(_0x795187(0x136))/0x3*(parseInt(_0x795187(0x11e))/0x4)+-parseInt(_0x795187(0x135))/0x5*(parseInt(_0x795187(0x120))/0x6)+-parseInt(_0x795187(0x127))/0x7*(-parseInt(_0x795187(0x12b))/0x8)+parseInt(_0x795187(0x128))/0x9+-parseInt(_0x795187(0x121))/0xa*(-parseInt(_0x795187(0x118))/0xb)+-parseInt(_0x795187(0x11d))/0xc;if(_0x429645===_0x403439)break;else _0x7a90fd['push'](_0x7a90fd['shift']());}catch(_0x4bd523){_0x7a90fd['push'](_0x7a90fd['shift']());}}}(a159_0x42e6,0x2cad1));import a159_0x501988 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a159_0x501988,ChalkClass=chalkModule[a159_0x532057(0x11f)]||chalkModule[a159_0x532057(0x12f)]?.[a159_0x532057(0x11f)];export class DefaultLogFormatter{[a159_0x532057(0x130)];[a159_0x532057(0x126)];constructor(_0x724607={}){const _0x8d1664=a159_0x532057;this[_0x8d1664(0x130)]=_0x724607[_0x8d1664(0x130)]??![],this[_0x8d1664(0x126)]=_0x724607['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a159_0x501988;}['format'](_0x2c89b7){const _0x82e548=a159_0x532057,_0x4912c5=formatTimestamp(_0x2c89b7[_0x82e548(0x124)]),_0x1002c8=logLevelToString(_0x2c89b7[_0x82e548(0x133)]);if(!this[_0x82e548(0x130)])return _0x4912c5+'\x20['+_0x1002c8+_0x82e548(0x12e)+_0x2c89b7[_0x82e548(0x11c)]+']\x20'+_0x2c89b7[_0x82e548(0x11a)];const _0x10b330=this[_0x82e548(0x126)][_0x82e548(0x137)](_0x4912c5),_0x4967d2=this[_0x82e548(0x122)](_0x1002c8,_0x2c89b7[_0x82e548(0x133)]),_0x542379=this[_0x82e548(0x126)][_0x82e548(0x12d)]('['+_0x2c89b7[_0x82e548(0x11c)]+']');return _0x10b330+'\x20'+_0x4967d2+'\x20'+_0x542379+'\x20'+_0x2c89b7[_0x82e548(0x11a)];}[a159_0x532057(0x122)](_0x544746,_0xff074c){const _0x79971=a159_0x532057;switch(_0xff074c){case LogLevel[_0x79971(0x131)]:return this[_0x79971(0x126)][_0x79971(0x117)]('['+_0x544746+']');case LogLevel[_0x79971(0x119)]:return this[_0x79971(0x126)][_0x79971(0x134)]('['+_0x544746+']');case LogLevel['INFO']:return this[_0x79971(0x126)][_0x79971(0x123)]('['+_0x544746+']');case LogLevel[_0x79971(0x11b)]:return this[_0x79971(0x126)][_0x79971(0x12a)]('['+_0x544746+']');case LogLevel[_0x79971(0x12c)]:return this['chalk'][_0x79971(0x132)]('['+_0x544746+']');default:return'['+_0x544746+']';}}}
@@ -1 +1 @@
1
- function a160_0x2011(){var _0x21794a=['134mIgdrl','7uVJtYn','4636YxulQG','36801VHIaxo','286514KuCBEE','1724970lCgueF','4163424fAsPUJ','18ovdTCk','4405602RESMqk','11KjgCAU','590mNsDvO','28920444isOvOF'];a160_0x2011=function(){return _0x21794a;};return a160_0x2011();}function a160_0x1260(_0x360b30,_0x555351){_0x360b30=_0x360b30-0x1f2;var _0x2011c6=a160_0x2011();var _0x126024=_0x2011c6[_0x360b30];return _0x126024;}(function(_0x94930a,_0x3a3414){var _0x2a351e=a160_0x1260,_0x2f2eb2=_0x94930a();while(!![]){try{var _0xaebca2=-parseInt(_0x2a351e(0x1fd))/0x1+parseInt(_0x2a351e(0x1f9))/0x2*(-parseInt(_0x2a351e(0x1fc))/0x3)+parseInt(_0x2a351e(0x1fb))/0x4*(parseInt(_0x2a351e(0x1f7))/0x5)+parseInt(_0x2a351e(0x1f5))/0x6*(-parseInt(_0x2a351e(0x1fa))/0x7)+-parseInt(_0x2a351e(0x1f3))/0x8+-parseInt(_0x2a351e(0x1f4))/0x9*(-parseInt(_0x2a351e(0x1f2))/0xa)+parseInt(_0x2a351e(0x1f6))/0xb*(parseInt(_0x2a351e(0x1f8))/0xc);if(_0xaebca2===_0x3a3414)break;else _0x2f2eb2['push'](_0x2f2eb2['shift']());}catch(_0x382015){_0x2f2eb2['push'](_0x2f2eb2['shift']());}}}(a160_0x2011,0x81137));export{DefaultLogFormatter}from'./default-formatter.js';
1
+ (function(_0x21354b,_0xf91056){var _0xea7902=a160_0x3ed5,_0x1ac277=_0x21354b();while(!![]){try{var _0x264d5d=-parseInt(_0xea7902(0x152))/0x1+parseInt(_0xea7902(0x155))/0x2+parseInt(_0xea7902(0x14f))/0x3*(parseInt(_0xea7902(0x14e))/0x4)+parseInt(_0xea7902(0x153))/0x5*(-parseInt(_0xea7902(0x154))/0x6)+-parseInt(_0xea7902(0x14d))/0x7*(parseInt(_0xea7902(0x14c))/0x8)+parseInt(_0xea7902(0x150))/0x9+-parseInt(_0xea7902(0x151))/0xa;if(_0x264d5d===_0xf91056)break;else _0x1ac277['push'](_0x1ac277['shift']());}catch(_0x405908){_0x1ac277['push'](_0x1ac277['shift']());}}}(a160_0x5694,0xe3d61));function a160_0x3ed5(_0x3baa12,_0x297f4f){_0x3baa12=_0x3baa12-0x14c;var _0x569456=a160_0x5694();var _0x3ed5ae=_0x569456[_0x3baa12];return _0x3ed5ae;}export{DefaultLogFormatter}from'./default-formatter.js';function a160_0x5694(){var _0x18adce=['880ZgVmez','31782LgOIPX','3651170lPxxuM','16JSBchQ','2607724MtMqxB','108SQCMur','160947bTSnwP','14784633mqqBuf','17629690eFgBwI','543323wGqkTC'];a160_0x5694=function(){return _0x18adce;};return a160_0x5694();}
@@ -1 +1 @@
1
- const a161_0x694af2=a161_0x30ce;(function(_0x1594a6,_0x5024d6){const _0x11f33e=a161_0x30ce,_0x4233e2=_0x1594a6();while(!![]){try{const _0x1165d0=-parseInt(_0x11f33e(0xef))/0x1+parseInt(_0x11f33e(0xe0))/0x2+-parseInt(_0x11f33e(0xe9))/0x3*(parseInt(_0x11f33e(0xeb))/0x4)+parseInt(_0x11f33e(0xe3))/0x5+-parseInt(_0x11f33e(0xe1))/0x6+-parseInt(_0x11f33e(0xe2))/0x7*(parseInt(_0x11f33e(0xdf))/0x8)+parseInt(_0x11f33e(0xf0))/0x9;if(_0x1165d0===_0x5024d6)break;else _0x4233e2['push'](_0x4233e2['shift']());}catch(_0x4421d2){_0x4233e2['push'](_0x4233e2['shift']());}}}(a161_0x22cf,0x9c36e));import{LogLevel as a161_0x5156f6}from'../types.js';function a161_0x30ce(_0x321e41,_0x177780){_0x321e41=_0x321e41-0xdf;const _0x22cfab=a161_0x22cf();let _0x30cec9=_0x22cfab[_0x321e41];return _0x30cec9;}import{DefaultLogFormatter}from'../formatters/index.js';function a161_0x22cf(){const _0x5aeea9=['74697RzQddL','log','148WooTQh','formatter','minLevel','format','177051pvGJHP','21838077yFzwzT','handle','2968432OkFDSl','480752BVBmDP','4779654wxtfzQ','7QoHFqD','1195010IDoiES','error','useStderr','colors','level','WARN'];a161_0x22cf=function(){return _0x5aeea9;};return a161_0x22cf();}export class ConsoleHandler{['minLevel'];['useStderr'];['formatter'];constructor(_0x3152f0={}){const _0x3aa0a9=a161_0x30ce;this[_0x3aa0a9(0xed)]=_0x3152f0[_0x3aa0a9(0xed)]??a161_0x5156f6[_0x3aa0a9(0xe8)],this[_0x3aa0a9(0xe5)]=_0x3152f0[_0x3aa0a9(0xe5)]??!![],this[_0x3aa0a9(0xec)]=new DefaultLogFormatter({'colors':_0x3152f0[_0x3aa0a9(0xe6)]??!![]});}[a161_0x694af2(0xf1)](_0x2fc56f){const _0x540be9=a161_0x694af2;if(_0x2fc56f[_0x540be9(0xe7)]<this['minLevel'])return;const _0x53537f=this[_0x540be9(0xec)][_0x540be9(0xee)](_0x2fc56f);this[_0x540be9(0xe5)]&&_0x2fc56f[_0x540be9(0xe7)]>=a161_0x5156f6[_0x540be9(0xe8)]?console[_0x540be9(0xe4)](_0x53537f):console[_0x540be9(0xea)](_0x53537f);}}
1
+ const a161_0x5ca68e=a161_0x37b7;(function(_0x5cc3dc,_0x48d862){const _0x23c9f8=a161_0x37b7,_0x2cd093=_0x5cc3dc();while(!![]){try{const _0x6d9551=-parseInt(_0x23c9f8(0x7f))/0x1*(-parseInt(_0x23c9f8(0x76))/0x2)+-parseInt(_0x23c9f8(0x77))/0x3+parseInt(_0x23c9f8(0x83))/0x4+parseInt(_0x23c9f8(0x75))/0x5*(-parseInt(_0x23c9f8(0x85))/0x6)+parseInt(_0x23c9f8(0x79))/0x7*(-parseInt(_0x23c9f8(0x7b))/0x8)+-parseInt(_0x23c9f8(0x80))/0x9*(parseInt(_0x23c9f8(0x86))/0xa)+parseInt(_0x23c9f8(0x88))/0xb;if(_0x6d9551===_0x48d862)break;else _0x2cd093['push'](_0x2cd093['shift']());}catch(_0x3bb36a){_0x2cd093['push'](_0x2cd093['shift']());}}}(a161_0xbddc,0xa6ec1));import{LogLevel as a161_0x21c7ff}from'../types.js';function a161_0x37b7(_0x243d89,_0x3ffa41){_0x243d89=_0x243d89-0x75;const _0xbddc4f=a161_0xbddc();let _0x37b7d1=_0xbddc4f[_0x243d89];return _0x37b7d1;}import{DefaultLogFormatter}from'../formatters/index.js';function a161_0xbddc(){const _0x435dfe=['389352mLZHCK','952197ijCEpf','useStderr','21OVTfJA','minLevel','2035696Ddiswf','WARN','formatter','level','5udxaHv','9mZUJCo','error','colors','1905668OwVupF','handle','1788ukSzdz','4065370uJxiYq','format','18141310dBuGUT','15570wVITBn'];a161_0xbddc=function(){return _0x435dfe;};return a161_0xbddc();}export class ConsoleHandler{[a161_0x5ca68e(0x7a)];[a161_0x5ca68e(0x78)];[a161_0x5ca68e(0x7d)];constructor(_0x5b984d={}){const _0x8043e3=a161_0x5ca68e;this[_0x8043e3(0x7a)]=_0x5b984d[_0x8043e3(0x7a)]??a161_0x21c7ff[_0x8043e3(0x7c)],this[_0x8043e3(0x78)]=_0x5b984d[_0x8043e3(0x78)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x5b984d[_0x8043e3(0x82)]??!![]});}[a161_0x5ca68e(0x84)](_0x378248){const _0x1d6c09=a161_0x5ca68e;if(_0x378248[_0x1d6c09(0x7e)]<this['minLevel'])return;const _0x1e3aab=this[_0x1d6c09(0x7d)][_0x1d6c09(0x87)](_0x378248);this[_0x1d6c09(0x78)]&&_0x378248[_0x1d6c09(0x7e)]>=a161_0x21c7ff[_0x1d6c09(0x7c)]?console[_0x1d6c09(0x81)](_0x1e3aab):console['log'](_0x1e3aab);}}
@@ -1 +1 @@
1
- function a162_0x54ff(){const _0x33e1f9=['803608lrxPPc','init','rotate','format','3837281FbqumI','split','logFileName','32UZgrmg','logDir','Warning:\x20Error\x20writing\x20to\x20','\x5c$&','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','4266900zqafkZ','getLogPath','2570031ZzaTVy','1735754pwHHBs','352574SzfgBD','rotateOldLogs','toISOString','includes','logPath','message','logBaseName','error','4133148KWPJqX','replace','filePath','logStream','test'];a162_0x54ff=function(){return _0x33e1f9;};return a162_0x54ff();}const a162_0x14dd5a=a162_0x396a;(function(_0x293414,_0x20505b){const _0x337052=a162_0x396a,_0x5ee5f3=_0x293414();while(!![]){try{const _0x30717c=-parseInt(_0x337052(0xfe))/0x1+parseInt(_0x337052(0xfd))/0x2+parseInt(_0x337052(0xfc))/0x3+-parseInt(_0x337052(0xee))/0x4+parseInt(_0x337052(0xfa))/0x5+parseInt(_0x337052(0xe9))/0x6+-parseInt(_0x337052(0xf2))/0x7*(parseInt(_0x337052(0xf5))/0x8);if(_0x30717c===_0x20505b)break;else _0x5ee5f3['push'](_0x5ee5f3['shift']());}catch(_0x597fe1){_0x5ee5f3['push'](_0x5ee5f3['shift']());}}}(a162_0x54ff,0x7f188));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';function a162_0x396a(_0x23c1cb,_0x16eb88){_0x23c1cb=_0x23c1cb-0xe6;const _0x54ff2e=a162_0x54ff();let _0x396ad0=_0x54ff2e[_0x23c1cb];return _0x396ad0;}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a162_0x14dd5a(0xf6)];['logFileName'];[a162_0x14dd5a(0xe7)];[a162_0x14dd5a(0xec)]=null;[a162_0x14dd5a(0xf0)];constructor(_0xc68900={}){const _0x127cd=a162_0x14dd5a;this['logPath']=_0xc68900[_0x127cd(0xeb)]??join(getGlobalCacheDir(),'logs','tdx.log'),this[_0x127cd(0xf6)]=dirname(this[_0x127cd(0x102)]),this['logFileName']=basename(this['logPath']),this['logBaseName']=this[_0x127cd(0xf4)][_0x127cd(0xea)](/\.log$/,''),this['rotate']=_0xc68900[_0x127cd(0xf0)]??!![];}async[a162_0x14dd5a(0xef)](){const _0x254645=a162_0x14dd5a;try{await mkdir(this[_0x254645(0xf6)],{'recursive':!![]}),this[_0x254645(0xf0)]&&await this[_0x254645(0xff)](),this['logStream']=createWriteStream(this[_0x254645(0x102)],{'flags':'a'}),this[_0x254645(0xec)]['on'](_0x254645(0xe8),_0x594921=>{const _0x402f53=_0x254645;console[_0x402f53(0xe8)](_0x402f53(0xf7)+this['logFileName']+':',_0x594921[_0x402f53(0xe6)]);});}catch(_0xa24030){console[_0x254645(0xe8)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0xa24030);}}['handle'](_0x3afeb2){const _0x3c8771=a162_0x14dd5a;if(!this['logStream'])return;const _0x397c41=Logger[_0x3c8771(0xf1)](_0x3afeb2);this[_0x3c8771(0xec)]['write'](_0x397c41+'\x0a');}async['close'](){return new Promise(_0x308c53=>{const _0x43a55f=a162_0x396a;this[_0x43a55f(0xec)]?this[_0x43a55f(0xec)]['end'](()=>{const _0x4218f9=_0x43a55f;this[_0x4218f9(0xec)]=null,_0x308c53();}):_0x308c53();});}[a162_0x14dd5a(0xfb)](){const _0x226861=a162_0x14dd5a;return this[_0x226861(0x102)];}async[a162_0x14dd5a(0xff)](){const _0x851e3b=a162_0x14dd5a;try{const _0x387203=await readdir(this[_0x851e3b(0xf6)]),_0x242191=new Date()[_0x851e3b(0x100)]()['split']('T')[0x0];if(_0x387203[_0x851e3b(0x101)](this[_0x851e3b(0xf4)])){const _0x1c8cb4=join(this[_0x851e3b(0xf6)],this[_0x851e3b(0xf4)]),_0x16c3e6=await stat(_0x1c8cb4),_0x5667f5=new Date(_0x16c3e6['mtime'])[_0x851e3b(0x100)]()[_0x851e3b(0xf3)]('T')[0x0];if(_0x5667f5<_0x242191){const _0x28e5de=join(this[_0x851e3b(0xf6)],this[_0x851e3b(0xe7)]+'-'+_0x5667f5+'.log');await rename(_0x1c8cb4,_0x28e5de);}}const _0x185a19=await readdir(this['logDir']),_0x5193c2=this[_0x851e3b(0xe7)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x851e3b(0xf8)),_0x4a0947=new RegExp('^'+_0x5193c2+_0x851e3b(0xf9)),_0x35fe5f=_0x185a19['filter'](_0x52272d=>_0x4a0947[_0x851e3b(0xed)](_0x52272d));for(const _0x2e124f of _0x35fe5f){const _0x2a65ac=join(this['logDir'],_0x2e124f),_0x45997a=join(this[_0x851e3b(0xf6)],_0x2e124f+'.gz');try{await pipeline(createReadStream(_0x2a65ac),createGzip(),createWriteStream(_0x45997a)),await unlink(_0x2a65ac);}catch(_0x1e5d0f){console[_0x851e3b(0xe8)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x2e124f+':',_0x1e5d0f);}}}catch{}}}
1
+ const a162_0x199f62=a162_0x5b69;(function(_0x598871,_0x1e65c4){const _0x217dbc=a162_0x5b69,_0x3d2fa2=_0x598871();while(!![]){try{const _0x46867d=-parseInt(_0x217dbc(0x1ec))/0x1*(parseInt(_0x217dbc(0x1f7))/0x2)+parseInt(_0x217dbc(0x200))/0x3*(parseInt(_0x217dbc(0x1f1))/0x4)+parseInt(_0x217dbc(0x1eb))/0x5*(-parseInt(_0x217dbc(0x201))/0x6)+-parseInt(_0x217dbc(0x1e6))/0x7*(-parseInt(_0x217dbc(0x1e5))/0x8)+parseInt(_0x217dbc(0x205))/0x9*(parseInt(_0x217dbc(0x1f6))/0xa)+-parseInt(_0x217dbc(0x1e9))/0xb*(parseInt(_0x217dbc(0x1df))/0xc)+-parseInt(_0x217dbc(0x1e3))/0xd*(-parseInt(_0x217dbc(0x1e8))/0xe);if(_0x46867d===_0x1e65c4)break;else _0x3d2fa2['push'](_0x3d2fa2['shift']());}catch(_0x3d583e){_0x3d2fa2['push'](_0x3d2fa2['shift']());}}}(a162_0x1422,0x8a97c));function a162_0x5b69(_0x49077b,_0x493587){_0x49077b=_0x49077b-0x1df;const _0x142291=a162_0x1422();let _0x5b69ce=_0x142291[_0x49077b];return _0x5b69ce;}import{createWriteStream,createReadStream}from'fs';function a162_0x1422(){const _0x445639=['80707NGIjWP','filePath','5lCXmLw','29199wiQfgX','filter','test','Warning:\x20Error\x20writing\x20to\x20','Warning:\x20Failed\x20to\x20compress\x20','2859308WkVYpo','.log','end','split','init','10fLGjrL','44DqNFix','includes','replace','logDir','write','rotateOldLogs','close','logBaseName','logPath','3VJBJjh','2999778nOuZBd','format','rotate','.gz','9879291AGNLQk','message','handle','logStream','1116jBgbei','error','logs','logFileName','13897DgiyNU','toISOString','15136MYEoZp','231LPfDxq','tdx.log','6776ixHktj'];a162_0x1422=function(){return _0x445639;};return a162_0x1422();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a162_0x199f62(0x1ff)];[a162_0x199f62(0x1fa)];[a162_0x199f62(0x1e2)];['logBaseName'];['logStream']=null;[a162_0x199f62(0x203)];constructor(_0x8137b2={}){const _0xff9e99=a162_0x199f62;this[_0xff9e99(0x1ff)]=_0x8137b2[_0xff9e99(0x1ea)]??join(getGlobalCacheDir(),_0xff9e99(0x1e1),_0xff9e99(0x1e7)),this[_0xff9e99(0x1fa)]=dirname(this['logPath']),this[_0xff9e99(0x1e2)]=basename(this[_0xff9e99(0x1ff)]),this[_0xff9e99(0x1fe)]=this[_0xff9e99(0x1e2)][_0xff9e99(0x1f9)](/\.log$/,''),this[_0xff9e99(0x203)]=_0x8137b2[_0xff9e99(0x203)]??!![];}async[a162_0x199f62(0x1f5)](){const _0x5359e5=a162_0x199f62;try{await mkdir(this[_0x5359e5(0x1fa)],{'recursive':!![]}),this[_0x5359e5(0x203)]&&await this[_0x5359e5(0x1fc)](),this[_0x5359e5(0x208)]=createWriteStream(this[_0x5359e5(0x1ff)],{'flags':'a'}),this[_0x5359e5(0x208)]['on']('error',_0x5c65f4=>{const _0x353e05=_0x5359e5;console[_0x353e05(0x1e0)](_0x353e05(0x1ef)+this[_0x353e05(0x1e2)]+':',_0x5c65f4[_0x353e05(0x206)]);});}catch(_0x2d3142){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x2d3142);}}[a162_0x199f62(0x207)](_0x417531){const _0x492b5c=a162_0x199f62;if(!this['logStream'])return;const _0x4678cd=Logger[_0x492b5c(0x202)](_0x417531);this[_0x492b5c(0x208)][_0x492b5c(0x1fb)](_0x4678cd+'\x0a');}async[a162_0x199f62(0x1fd)](){return new Promise(_0x11371d=>{const _0x423779=a162_0x5b69;this['logStream']?this['logStream'][_0x423779(0x1f3)](()=>{const _0x543194=_0x423779;this[_0x543194(0x208)]=null,_0x11371d();}):_0x11371d();});}['getLogPath'](){const _0x431c66=a162_0x199f62;return this[_0x431c66(0x1ff)];}async[a162_0x199f62(0x1fc)](){const _0x167e76=a162_0x199f62;try{const _0x2b0c7f=await readdir(this[_0x167e76(0x1fa)]),_0x3476fa=new Date()[_0x167e76(0x1e4)]()[_0x167e76(0x1f4)]('T')[0x0];if(_0x2b0c7f[_0x167e76(0x1f8)](this[_0x167e76(0x1e2)])){const _0x1eaa0b=join(this[_0x167e76(0x1fa)],this[_0x167e76(0x1e2)]),_0xbbea8a=await stat(_0x1eaa0b),_0x10c69a=new Date(_0xbbea8a['mtime'])['toISOString']()['split']('T')[0x0];if(_0x10c69a<_0x3476fa){const _0x426520=join(this[_0x167e76(0x1fa)],this[_0x167e76(0x1fe)]+'-'+_0x10c69a+_0x167e76(0x1f2));await rename(_0x1eaa0b,_0x426520);}}const _0x3c606f=await readdir(this['logDir']),_0x39af61=this[_0x167e76(0x1fe)][_0x167e76(0x1f9)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x3497a7=new RegExp('^'+_0x39af61+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x33a84b=_0x3c606f[_0x167e76(0x1ed)](_0x2d9749=>_0x3497a7[_0x167e76(0x1ee)](_0x2d9749));for(const _0x32c5ea of _0x33a84b){const _0x38df1b=join(this[_0x167e76(0x1fa)],_0x32c5ea),_0x429085=join(this['logDir'],_0x32c5ea+_0x167e76(0x204));try{await pipeline(createReadStream(_0x38df1b),createGzip(),createWriteStream(_0x429085)),await unlink(_0x38df1b);}catch(_0x3a2e69){console[_0x167e76(0x1e0)](_0x167e76(0x1f0)+_0x32c5ea+':',_0x3a2e69);}}}catch{}}}
@@ -1 +1 @@
1
- function a163_0x2c12(){var _0x181c3a=['7975zSzAmn','2671732vxNcAf','2059000YoecfU','704166SPcoxo','239072YdMiOY','4RocHEW','15ZxmwrC','54sYNfSu','116321ScEwdz','4Jnbdkp','13116NWdfSP','968802jwKnnk'];a163_0x2c12=function(){return _0x181c3a;};return a163_0x2c12();}(function(_0x16d05a,_0x30d1d5){var _0xe57f1c=a163_0x4e60,_0x1e7add=_0x16d05a();while(!![]){try{var _0x5cb3eb=parseInt(_0xe57f1c(0xe3))/0x1*(parseInt(_0xe57f1c(0xe0))/0x2)+parseInt(_0xe57f1c(0xde))/0x3*(-parseInt(_0xe57f1c(0xe4))/0x4)+parseInt(_0xe57f1c(0xe1))/0x5*(-parseInt(_0xe57f1c(0xe6))/0x6)+parseInt(_0xe57f1c(0xe8))/0x7+parseInt(_0xe57f1c(0xdf))/0x8*(-parseInt(_0xe57f1c(0xe2))/0x9)+-parseInt(_0xe57f1c(0xdd))/0xa+parseInt(_0xe57f1c(0xe7))/0xb*(parseInt(_0xe57f1c(0xe5))/0xc);if(_0x5cb3eb===_0x30d1d5)break;else _0x1e7add['push'](_0x1e7add['shift']());}catch(_0x13ada1){_0x1e7add['push'](_0x1e7add['shift']());}}}(a163_0x2c12,0x49d50));function a163_0x4e60(_0x5f24ee,_0x5ee533){_0x5f24ee=_0x5f24ee-0xdd;var _0x2c128f=a163_0x2c12();var _0x4e600a=_0x2c128f[_0x5f24ee];return _0x4e600a;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ function a163_0x2ef8(_0xd467cb,_0x583267){_0xd467cb=_0xd467cb-0x1b5;var _0x43ab26=a163_0x43ab();var _0x2ef811=_0x43ab26[_0xd467cb];return _0x2ef811;}(function(_0x1347f5,_0x415264){var _0x4d20b1=a163_0x2ef8,_0x404650=_0x1347f5();while(!![]){try{var _0x577db9=-parseInt(_0x4d20b1(0x1ba))/0x1+parseInt(_0x4d20b1(0x1b6))/0x2+parseInt(_0x4d20b1(0x1be))/0x3*(parseInt(_0x4d20b1(0x1bd))/0x4)+parseInt(_0x4d20b1(0x1b8))/0x5*(-parseInt(_0x4d20b1(0x1b7))/0x6)+-parseInt(_0x4d20b1(0x1bc))/0x7+-parseInt(_0x4d20b1(0x1bb))/0x8*(-parseInt(_0x4d20b1(0x1b9))/0x9)+parseInt(_0x4d20b1(0x1b5))/0xa;if(_0x577db9===_0x415264)break;else _0x404650['push'](_0x404650['shift']());}catch(_0x4dab9b){_0x404650['push'](_0x404650['shift']());}}}(a163_0x43ab,0xc3637));export{FileHandler}from'./file-handler.js';function a163_0x43ab(){var _0x723584=['12333810ZpbvrO','851472AsbLxK','846iQyFQS','44980kiccOT','27lodqSs','126013KvFvzi','1329304RIqsEK','9879954pYxonT','90536cljBeq','192qJFLAN'];a163_0x43ab=function(){return _0x723584;};return a163_0x43ab();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a164_0x4a2c(_0x16c3a3,_0x59c63a){_0x16c3a3=_0x16c3a3-0xa6;var _0x96e919=a164_0x96e9();var _0x4a2c34=_0x96e919[_0x16c3a3];return _0x4a2c34;}var a164_0x34b004=a164_0x4a2c;(function(_0x28c269,_0x49b2be){var _0x5e8647=a164_0x4a2c,_0x5d34da=_0x28c269();while(!![]){try{var _0x126899=parseInt(_0x5e8647(0xab))/0x1+-parseInt(_0x5e8647(0xb0))/0x2*(parseInt(_0x5e8647(0xa9))/0x3)+-parseInt(_0x5e8647(0xad))/0x4+parseInt(_0x5e8647(0xaa))/0x5+parseInt(_0x5e8647(0xa6))/0x6*(-parseInt(_0x5e8647(0xa8))/0x7)+-parseInt(_0x5e8647(0xaf))/0x8*(-parseInt(_0x5e8647(0xae))/0x9)+parseInt(_0x5e8647(0xa7))/0xa*(parseInt(_0x5e8647(0xac))/0xb);if(_0x126899===_0x49b2be)break;else _0x5d34da['push'](_0x5d34da['shift']());}catch(_0x39c959){_0x5d34da['push'](_0x5d34da['shift']());}}}(a164_0x96e9,0xb83fa));function a164_0x96e9(){var _0x18fa62=['34692TJputJ','9JvHxre','5432800UqwUIu','1103111JQdfZC','16511Lhmabi','3331972vsXYzt','45lPHtdK','882520MGzwWr','886838IPFQyI','handle','960FzxwUk','6460syuPSR'];a164_0x96e9=function(){return _0x18fa62;};return a164_0x96e9();}export class NullHandler{[a164_0x34b004(0xb1)](_0x4335d3){}}
1
+ function a164_0x94a3(_0x3ea3e5,_0x5e3471){_0x3ea3e5=_0x3ea3e5-0x12b;var _0x5b8795=a164_0x5b87();var _0x94a3f=_0x5b8795[_0x3ea3e5];return _0x94a3f;}(function(_0x285e91,_0x2c6f09){var _0x5bb100=a164_0x94a3,_0x261133=_0x285e91();while(!![]){try{var _0x3e2a70=-parseInt(_0x5bb100(0x12d))/0x1+parseInt(_0x5bb100(0x12b))/0x2+-parseInt(_0x5bb100(0x12c))/0x3*(parseInt(_0x5bb100(0x131))/0x4)+parseInt(_0x5bb100(0x133))/0x5*(parseInt(_0x5bb100(0x12e))/0x6)+parseInt(_0x5bb100(0x130))/0x7*(parseInt(_0x5bb100(0x132))/0x8)+-parseInt(_0x5bb100(0x134))/0x9+parseInt(_0x5bb100(0x12f))/0xa;if(_0x3e2a70===_0x2c6f09)break;else _0x261133['push'](_0x261133['shift']());}catch(_0x364d06){_0x261133['push'](_0x261133['shift']());}}}(a164_0x5b87,0x5bf46));export class NullHandler{['handle'](_0x59e250){}}function a164_0x5b87(){var _0x8d76a8=['4723330WzMcZN','42jMgvIJ','1941976ExaZMD','575016fDyEGU','13705VCZtdV','2107278lgFrwD','100108MYUwaq','3RgLfAv','128726cwTfBI','594nSryrN'];a164_0x5b87=function(){return _0x8d76a8;};return a164_0x5b87();}
@@ -1 +1 @@
1
- (function(_0x3ca3af,_0x4db106){var _0x2d7ad9=a165_0x50bb,_0x1e6679=_0x3ca3af();while(!![]){try{var _0x3eab55=parseInt(_0x2d7ad9(0x1d5))/0x1*(-parseInt(_0x2d7ad9(0x1d4))/0x2)+parseInt(_0x2d7ad9(0x1d3))/0x3*(parseInt(_0x2d7ad9(0x1d8))/0x4)+-parseInt(_0x2d7ad9(0x1d1))/0x5*(parseInt(_0x2d7ad9(0x1d2))/0x6)+parseInt(_0x2d7ad9(0x1cf))/0x7+-parseInt(_0x2d7ad9(0x1d7))/0x8+parseInt(_0x2d7ad9(0x1d9))/0x9*(-parseInt(_0x2d7ad9(0x1d6))/0xa)+parseInt(_0x2d7ad9(0x1d0))/0xb;if(_0x3eab55===_0x4db106)break;else _0x1e6679['push'](_0x1e6679['shift']());}catch(_0x5648b4){_0x1e6679['push'](_0x1e6679['shift']());}}}(a165_0x22ee,0x349b8));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a165_0x22ee(){var _0x21737f=['554EavNzy','987680aTFGTZ','3047512sivjJA','106324FatRBJ','18unAnMz','2958851ysiNiS','8734407fvImMA','23510TxZYHJ','222tRuSbe','15inNtHG','1378aaPxUh'];a165_0x22ee=function(){return _0x21737f;};return a165_0x22ee();}function a165_0x50bb(_0x68225d,_0x5e622c){_0x68225d=_0x68225d-0x1cf;var _0x22eea0=a165_0x22ee();var _0x50bbf6=_0x22eea0[_0x68225d];return _0x50bbf6;}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ function a165_0x110f(){var _0xa1dd71=['1095084fUxYXC','1125320ZPvolR','3635xDyzNw','5292372YpaqHF','6HXsXUH','44260JYEBbU','8IEYWcj','118hstetF','2760865ffysGj','55omYnEY','16220BOADpI','9AmvZKN'];a165_0x110f=function(){return _0xa1dd71;};return a165_0x110f();}(function(_0x75504f,_0x42aa02){var _0x25697c=a165_0x2e09,_0x8087ce=_0x75504f();while(!![]){try{var _0x21da77=-parseInt(_0x25697c(0x8d))/0x1*(-parseInt(_0x25697c(0x92))/0x2)+parseInt(_0x25697c(0x8a))/0x3*(-parseInt(_0x25697c(0x90))/0x4)+parseInt(_0x25697c(0x93))/0x5*(-parseInt(_0x25697c(0x8f))/0x6)+-parseInt(_0x25697c(0x8c))/0x7*(-parseInt(_0x25697c(0x91))/0x8)+parseInt(_0x25697c(0x8b))/0x9+-parseInt(_0x25697c(0x95))/0xa*(parseInt(_0x25697c(0x94))/0xb)+parseInt(_0x25697c(0x8e))/0xc;if(_0x21da77===_0x42aa02)break;else _0x8087ce['push'](_0x8087ce['shift']());}catch(_0x30ef6f){_0x8087ce['push'](_0x8087ce['shift']());}}}(a165_0x110f,0x54186));export{Logger}from'./logger.js';function a165_0x2e09(_0x2ce896,_0x1b0380){_0x2ce896=_0x2ce896-0x8a;var _0x110f12=a165_0x110f();var _0x2e092f=_0x110f12[_0x2ce896];return _0x2e092f;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';