@treasuredata/tdx 2026.4.10 → 2026.4.11

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 (220) 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/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.js +1 -1
  14. package/dist/commands/claude-statusline-command.js +1 -1
  15. package/dist/commands/claude-usage-command.js +1 -1
  16. package/dist/commands/command.js +1 -1
  17. package/dist/commands/connection-command.js +1 -1
  18. package/dist/commands/databases.js +1 -1
  19. package/dist/commands/delivery-command.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/engage-campaign-pull-command.js +1 -1
  22. package/dist/commands/engage-campaign-push-command.js +1 -1
  23. package/dist/commands/engage-campaign-validate-command.js +1 -1
  24. package/dist/commands/engage-command.js +1 -1
  25. package/dist/commands/engage-template-pull-command.js +1 -1
  26. package/dist/commands/engage-template-push-command.js +1 -1
  27. package/dist/commands/engage-template-validate-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/journey-command.js +1 -1
  30. package/dist/commands/journey-validate-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/mcp-command.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/policy-command.js +1 -1
  35. package/dist/commands/profile-command.js +1 -1
  36. package/dist/commands/profiles-command.js +1 -1
  37. package/dist/commands/query-command.js +1 -1
  38. package/dist/commands/schedule-command.js +1 -1
  39. package/dist/commands/segment-command.js +1 -1
  40. package/dist/commands/segment-create-command.js +1 -1
  41. package/dist/commands/segment-fields-command.js +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-push-command.js +1 -1
  44. package/dist/commands/segment-update-command.js +1 -1
  45. package/dist/commands/segment-use-command.js +1 -1
  46. package/dist/commands/segment-validate-command.js +1 -1
  47. package/dist/commands/segments.js +1 -1
  48. package/dist/commands/show.js +1 -1
  49. package/dist/commands/status-command.js +1 -1
  50. package/dist/commands/tables.js +1 -1
  51. package/dist/commands/unset-command.js +1 -1
  52. package/dist/commands/upgrade-command.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/user-command.js +1 -1
  55. package/dist/commands/work-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/command-output.js +1 -1
  59. package/dist/core/config.js +1 -1
  60. package/dist/core/connection-cache.js +1 -1
  61. package/dist/core/constants.js +1 -1
  62. package/dist/core/credential-cache.js +1 -1
  63. package/dist/core/global-context.js +1 -1
  64. package/dist/core/keychain.js +1 -1
  65. package/dist/core/oauth-keychain.js +1 -1
  66. package/dist/core/oauth.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/core/version.js +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/mcp/server.js +1 -1
  74. package/dist/mcp/tools/index.js +1 -1
  75. package/dist/mcp/tools/tdx-run.js +1 -1
  76. package/dist/mcp/tools/tdx-search.js +1 -1
  77. package/dist/mcp/tools/work-create-item.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/access-tracker.js +1 -1
  182. package/dist/sdk/workspace/frontmatter.js +1 -1
  183. package/dist/sdk/workspace/git.js +1 -1
  184. package/dist/sdk/workspace/index.js +1 -1
  185. package/dist/sdk/workspace/templates.js +1 -1
  186. package/dist/sdk/workspace/weekly.js +1 -1
  187. package/dist/sdk/workspace/wikilinks.js +1 -1
  188. package/dist/test-utils/command-runner.js +1 -1
  189. package/dist/test-utils/factories.js +1 -1
  190. package/dist/test-utils/fixtures.js +1 -1
  191. package/dist/test-utils/http-mock.js +1 -1
  192. package/dist/test-utils/index.js +1 -1
  193. package/dist/utils/async.js +1 -1
  194. package/dist/utils/colors.js +1 -1
  195. package/dist/utils/diff.js +1 -1
  196. package/dist/utils/file-permissions.js +1 -1
  197. package/dist/utils/file-reader.js +1 -1
  198. package/dist/utils/github-releases.js +1 -1
  199. package/dist/utils/global-cache.js +1 -1
  200. package/dist/utils/json-loader.js +1 -1
  201. package/dist/utils/local-cache.js +1 -1
  202. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  203. package/dist/utils/logger/formatters/index.js +1 -1
  204. package/dist/utils/logger/handlers/console-handler.js +1 -1
  205. package/dist/utils/logger/handlers/file-handler.js +1 -1
  206. package/dist/utils/logger/handlers/index.js +1 -1
  207. package/dist/utils/logger/handlers/null-handler.js +1 -1
  208. package/dist/utils/logger/index.js +1 -1
  209. package/dist/utils/logger/logger.js +1 -1
  210. package/dist/utils/logger/types.js +1 -1
  211. package/dist/utils/option-validation.js +1 -1
  212. package/dist/utils/process.js +1 -1
  213. package/dist/utils/prompt.js +1 -1
  214. package/dist/utils/spinner.js +1 -1
  215. package/dist/utils/sse-parser.js +1 -1
  216. package/dist/utils/string-utils.js +1 -1
  217. package/dist/utils/table-ref-parser.js +1 -1
  218. package/dist/utils/tdx-logger.js +1 -1
  219. package/dist/utils/version-check.js +1 -1
  220. package/package.json +1 -1
@@ -1 +1 @@
1
- const a207_0x568a93=a207_0xf17f;(function(_0x425c07,_0x341ac2){const _0x388b05=a207_0xf17f,_0x4cd80a=_0x425c07();while(!![]){try{const _0x46f3d5=parseInt(_0x388b05(0x201))/0x1+parseInt(_0x388b05(0x222))/0x2+-parseInt(_0x388b05(0x223))/0x3*(-parseInt(_0x388b05(0x1eb))/0x4)+-parseInt(_0x388b05(0x1f8))/0x5*(-parseInt(_0x388b05(0x20b))/0x6)+-parseInt(_0x388b05(0x237))/0x7*(-parseInt(_0x388b05(0x21f))/0x8)+-parseInt(_0x388b05(0x1ff))/0x9+-parseInt(_0x388b05(0x22b))/0xa*(parseInt(_0x388b05(0x20f))/0xb);if(_0x46f3d5===_0x341ac2)break;else _0x4cd80a['push'](_0x4cd80a['shift']());}catch(_0x182f5a){_0x4cd80a['push'](_0x4cd80a['shift']());}}}(a207_0x1a5c,0x326c3));import{vi}from'vitest';function a207_0xf17f(_0x45e0cf,_0x1f1a56){_0x45e0cf=_0x45e0cf-0x1eb;const _0x1a5c81=a207_0x1a5c();let _0xf17f41=_0x1a5c81[_0x45e0cf];return _0xf17f41;}function a207_0x1a5c(){const _0x1aa987=['Unknown','Service\x20Unavailable','getRequests','Bad\x20Request','https://api.treasuredata.com/errors/','requests','url','includes','errorResponse','getStatusText','No\x20Content','getMatchCount','toLowerCase','headers','jsonResponse','8oWCSVq','\x20\x20(none)','parse','810130HuOWVL','21XYfNaz','withBody','some','length','Registered\x20stubs:\x0a','wasCalled','Unauthorized','every','30jZJoSF','error','stack','mockImplementation','parseRequest','Unmatched\x20stub','Too\x20Many\x20Requests','registerWithInspector','searchParams','slice','\x20registered\x20at:\x0a','No\x20stub\x20matched\x20request:\x20','2814343fMlaDD','verify','Not\x20Found','td-api','matcher','matched','pathname','body','158116izUOSn','REST','textResponse','filter','Internal\x20Server\x20Error','createFetch','test','method','withQuery','host','fetchMock','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','GET','5mTVzOI','string','Conflict','map','Bad\x20Gateway','application/json','Unprocessable\x20Entity','1397763bnpYlY','reset','275009YbPsTh','isArray','unnamed\x20stub','getLastRequest','stubs','register','push','join','matchCount','stringify','1926318eqNcsm','description','fail','toUpperCase','4832817BTGYeD'];a207_0x1a5c=function(){return _0x1aa987;};return a207_0x1a5c();}export class HTTPMockRegistry{[a207_0x568a93(0x205)]=[];['requests']=[];['fetchMock']=null;[a207_0x568a93(0x1ec)](_0x488287,_0x4e43dc){return _0x2ce9f4=>{const _0x58fe58=a207_0xf17f;if(_0x2ce9f4[_0x58fe58(0x1f2)][_0x58fe58(0x20e)]()!==_0x488287['toUpperCase']())return![];const _0x5ee21d=new URL(_0x2ce9f4['url']);if(typeof _0x4e43dc===_0x58fe58(0x1f9))return _0x5ee21d[_0x58fe58(0x23d)]===_0x4e43dc||_0x5ee21d[_0x58fe58(0x23d)][_0x58fe58(0x217)](_0x4e43dc);return _0x4e43dc[_0x58fe58(0x1f1)](_0x5ee21d['pathname']);};}[a207_0x568a93(0x1f3)](_0x15a50c,_0x2ac3ad){return _0x528d2f=>{const _0x53d092=a207_0xf17f;if(!_0x15a50c(_0x528d2f))return![];const _0x42bff4=new URL(_0x528d2f['url']);return Object['entries'](_0x2ac3ad)[_0x53d092(0x22a)](([_0x404ceb,_0xbcbcea])=>_0x42bff4[_0x53d092(0x233)]['get'](_0x404ceb)===_0xbcbcea);};}[a207_0x568a93(0x224)](_0x531357,_0x3d2be6){return _0x3d9867=>{const _0x44f83d=a207_0xf17f;if(!_0x531357(_0x3d9867))return![];if(typeof _0x3d2be6==='function')return _0x3d2be6(_0x3d9867['body']);return JSON[_0x44f83d(0x20a)](_0x3d9867[_0x44f83d(0x23e)])===JSON['stringify'](_0x3d2be6);};}['withHost'](_0x1a90fb,_0xbab5b8){return _0x352738=>{const _0x458a21=a207_0xf17f;if(!_0x1a90fb(_0x352738))return![];const _0x12b6f3=new URL(_0x352738['url']);return _0x12b6f3[_0x458a21(0x1f4)]===_0xbab5b8;};}[a207_0x568a93(0x206)](_0xe5dbd7,_0x140f44,_0x8adc5c){const _0x2e1c8d=a207_0x568a93;this[_0x2e1c8d(0x205)][_0x2e1c8d(0x207)]({'matcher':_0xe5dbd7,'responder':_0x140f44,'matched':![],'matchCount':0x0,'stack':new Error()[_0x2e1c8d(0x22d)]??'','description':_0x8adc5c?.['description']});}[a207_0x568a93(0x232)](_0x4a8ca9,_0x1abc91,_0x41f2c7){const _0x2c05d2=_0x3f71ea=>{const _0x1452a3=a207_0xf17f;return _0x41f2c7(_0x3f71ea[_0x1452a3(0x23e)],_0x3f71ea),_0x1abc91(_0x3f71ea);};this['register'](_0x4a8ca9,_0x2c05d2);}static[a207_0x568a93(0x21e)](_0x3fa4f1,_0x211a49=0xc8){const _0x28a08a=a207_0x568a93;return()=>new Response(JSON['stringify'](_0x3fa4f1),{'status':_0x211a49,'headers':{'Content-Type':_0x28a08a(0x1fd)}});}static[a207_0x568a93(0x218)](_0x90a915,_0x10b6ed,_0x10ce99='simple'){return()=>{const _0x4e32a9=a207_0xf17f;let _0x2a0849;switch(_0x10ce99){case _0x4e32a9(0x23a):_0x2a0849={'errors':{'error':_0x10b6ed,'message':_0x10b6ed,'severity':_0x4e32a9(0x22c),'status_code':_0x90a915}};break;case'rfc9457':_0x2a0849={'type':_0x4e32a9(0x214)+_0x90a915,'title':HTTPMockRegistry[_0x4e32a9(0x219)](_0x90a915),'status':_0x90a915,'detail':_0x10b6ed};break;default:_0x2a0849={'error':_0x10b6ed};}return new Response(JSON[_0x4e32a9(0x20a)](_0x2a0849),{'status':_0x90a915,'headers':{'Content-Type':'application/json'}});};}static['jsonResponseWithHeaders'](_0x535e84,_0x742f99,_0x4bc77e=0xc8){const _0x2e9896=a207_0x568a93;return()=>new Response(JSON['stringify'](_0x535e84),{'status':_0x4bc77e,'headers':{'Content-Type':_0x2e9896(0x1fd),..._0x742f99}});}static[a207_0x568a93(0x1ed)](_0x13255c,_0x443fc0=0xc8){return()=>new Response(_0x13255c,{'status':_0x443fc0,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0xf6f36a){return()=>{throw new Error(_0xf6f36a);};}[a207_0x568a93(0x1f0)](){const _0x57bb8c=a207_0x568a93;return this[_0x57bb8c(0x1f5)]=vi['fn']()[_0x57bb8c(0x22e)](async(_0x2ee143,_0x5d9561)=>{const _0x4afe54=_0x57bb8c,_0x3130f1=this[_0x4afe54(0x22f)](_0x2ee143,_0x5d9561);this[_0x4afe54(0x215)]['push'](_0x3130f1);for(const _0x555927 of this['stubs']){if(_0x555927[_0x4afe54(0x23b)](_0x3130f1))return _0x555927[_0x4afe54(0x23c)]=!![],_0x555927['matchCount']++,_0x555927['responder'](_0x3130f1);}const _0x1d8b40=this[_0x4afe54(0x205)][_0x4afe54(0x1fb)]((_0x591394,_0x450dd7)=>'\x20\x20'+(_0x450dd7+0x1)+'.\x20'+(_0x591394[_0x4afe54(0x20c)]??_0x4afe54(0x203)))[_0x4afe54(0x208)]('\x0a');throw new Error(_0x4afe54(0x236)+_0x3130f1['method']+'\x20'+_0x3130f1[_0x4afe54(0x216)]+'\x0a'+('Request\x20body:\x20'+JSON['stringify'](_0x3130f1[_0x4afe54(0x23e)])+'\x0a')+(_0x4afe54(0x227)+(_0x1d8b40||_0x4afe54(0x220))));}),this['fetchMock'];}[a207_0x568a93(0x22f)](_0x409f60,_0x3bb7cb){const _0x18acb9=a207_0x568a93,_0x13b2a0={};if(_0x3bb7cb?.[_0x18acb9(0x21d)]){if(_0x3bb7cb[_0x18acb9(0x21d)]instanceof Headers)_0x3bb7cb[_0x18acb9(0x21d)]['forEach']((_0x1e0e0b,_0x8cff34)=>{const _0x221723=_0x18acb9;_0x13b2a0[_0x8cff34[_0x221723(0x21c)]()]=_0x1e0e0b;});else{if(Array[_0x18acb9(0x202)](_0x3bb7cb['headers']))for(const [_0xc8fb6d,_0x957380]of _0x3bb7cb['headers']){_0x13b2a0[_0xc8fb6d[_0x18acb9(0x21c)]()]=_0x957380;}else for(const [_0xe8a5dc,_0x5dc1f9]of Object['entries'](_0x3bb7cb[_0x18acb9(0x21d)])){_0x5dc1f9!==undefined&&(_0x13b2a0[_0xe8a5dc['toLowerCase']()]=_0x5dc1f9);}}}let _0x4f76e2;if(_0x3bb7cb?.[_0x18acb9(0x23e)])try{_0x4f76e2=JSON[_0x18acb9(0x221)](_0x3bb7cb['body']);}catch{_0x4f76e2=_0x3bb7cb['body'];}return{'method':_0x3bb7cb?.['method']??_0x18acb9(0x1f7),'url':_0x409f60,'headers':_0x13b2a0,'body':_0x4f76e2};}[a207_0x568a93(0x238)](_0x270c89){const _0x351c7e=a207_0x568a93,_0x504e0e=this[_0x351c7e(0x205)][_0x351c7e(0x1ee)](_0x3f437a=>!_0x3f437a[_0x351c7e(0x23c)]);if(_0x504e0e[_0x351c7e(0x226)]>0x0){const _0x1819cf=_0x504e0e[_0x351c7e(0x1fb)](_0x47ceac=>{const _0x4ba339=_0x351c7e,_0x11c4de=_0x47ceac[_0x4ba339(0x20c)]?'\x20('+_0x47ceac[_0x4ba339(0x20c)]+')':'',_0x22ceb8=_0x47ceac['stack']['split']('\x0a')[_0x4ba339(0x234)](0x2,0x5)[_0x4ba339(0x208)]('\x0a');return _0x4ba339(0x230)+_0x11c4de+_0x4ba339(0x235)+_0x22ceb8;});_0x270c89[_0x351c7e(0x20d)](_0x504e0e[_0x351c7e(0x226)]+_0x351c7e(0x1f6)+_0x1819cf[_0x351c7e(0x208)]('\x0a\x0a'));}}[a207_0x568a93(0x212)](){return[...this['requests']];}[a207_0x568a93(0x204)](){const _0x49c954=a207_0x568a93;return this[_0x49c954(0x215)][this['requests']['length']-0x1];}[a207_0x568a93(0x228)](_0x4df8c3,_0x49aef3){const _0x5e171b=a207_0x568a93;return this[_0x5e171b(0x215)][_0x5e171b(0x225)](_0x8071bb=>{const _0x358a62=_0x5e171b;if(_0x8071bb[_0x358a62(0x1f2)][_0x358a62(0x20e)]()!==_0x4df8c3[_0x358a62(0x20e)]())return![];if(typeof _0x49aef3===_0x358a62(0x1f9))return _0x8071bb[_0x358a62(0x216)][_0x358a62(0x217)](_0x49aef3);return _0x49aef3[_0x358a62(0x1f1)](_0x8071bb[_0x358a62(0x216)]);});}[a207_0x568a93(0x21b)](_0x4a225a){const _0x409aea=a207_0x568a93;return this['stubs'][_0x4a225a]?.[_0x409aea(0x209)]??0x0;}[a207_0x568a93(0x200)](){const _0x369946=a207_0x568a93;this[_0x369946(0x205)]=[],this['requests']=[],this[_0x369946(0x1f5)]=null;}static[a207_0x568a93(0x219)](_0xa894d8){const _0x1ecc9f=a207_0x568a93,_0x55d5f9={0xc8:'OK',0xc9:'Created',0xcc:_0x1ecc9f(0x21a),0x190:_0x1ecc9f(0x213),0x191:_0x1ecc9f(0x229),0x193:'Forbidden',0x194:_0x1ecc9f(0x239),0x199:_0x1ecc9f(0x1fa),0x1a6:_0x1ecc9f(0x1fe),0x1ad:_0x1ecc9f(0x231),0x1f4:_0x1ecc9f(0x1ef),0x1f6:_0x1ecc9f(0x1fc),0x1f7:_0x1ecc9f(0x211)};return _0x55d5f9[_0xa894d8]??_0x1ecc9f(0x210);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a207_0x46d778=a207_0x3ce8;(function(_0x3349a2,_0x527041){const _0x29e9bd=a207_0x3ce8,_0x70812f=_0x3349a2();while(!![]){try{const _0x2b298e=-parseInt(_0x29e9bd(0xa6))/0x1*(parseInt(_0x29e9bd(0x8a))/0x2)+parseInt(_0x29e9bd(0xa5))/0x3+parseInt(_0x29e9bd(0x85))/0x4*(parseInt(_0x29e9bd(0xbe))/0x5)+-parseInt(_0x29e9bd(0xd3))/0x6+parseInt(_0x29e9bd(0x87))/0x7*(-parseInt(_0x29e9bd(0xc6))/0x8)+parseInt(_0x29e9bd(0xb6))/0x9+-parseInt(_0x29e9bd(0xce))/0xa*(-parseInt(_0x29e9bd(0xac))/0xb);if(_0x2b298e===_0x527041)break;else _0x70812f['push'](_0x70812f['shift']());}catch(_0x396cd7){_0x70812f['push'](_0x70812f['shift']());}}}(a207_0xd22f,0x2af5d));import{vi}from'vitest';function a207_0x3ce8(_0x8c8c3b,_0x3ee575){_0x8c8c3b=_0x8c8c3b-0x84;const _0xd22fc5=a207_0xd22f();let _0x3ce826=_0xd22fc5[_0x8c8c3b];return _0x3ce826;}export class HTTPMockRegistry{[a207_0x46d778(0xb0)]=[];['requests']=[];['fetchMock']=null;[a207_0x46d778(0xa4)](_0x12c1ac,_0x4aa939){return _0x18a1c4=>{const _0x448785=a207_0x3ce8;if(_0x18a1c4[_0x448785(0xd4)][_0x448785(0x90)]()!==_0x12c1ac[_0x448785(0x90)]())return![];const _0x110959=new URL(_0x18a1c4[_0x448785(0x88)]);if(typeof _0x4aa939===_0x448785(0xab))return _0x110959[_0x448785(0x84)]===_0x4aa939||_0x110959[_0x448785(0x84)][_0x448785(0xa8)](_0x4aa939);return _0x4aa939[_0x448785(0x86)](_0x110959['pathname']);};}['withQuery'](_0x4da4ca,_0xa96422){return _0x50e19e=>{const _0x59fca4=a207_0x3ce8;if(!_0x4da4ca(_0x50e19e))return![];const _0x3b7e11=new URL(_0x50e19e[_0x59fca4(0x88)]);return Object[_0x59fca4(0xa3)](_0xa96422)[_0x59fca4(0xaa)](([_0x536808,_0x11c524])=>_0x3b7e11[_0x59fca4(0xb7)][_0x59fca4(0x89)](_0x536808)===_0x11c524);};}['withBody'](_0x1224c3,_0x475175){return _0x37e169=>{const _0x129ef4=a207_0x3ce8;if(!_0x1224c3(_0x37e169))return![];if(typeof _0x475175===_0x129ef4(0xb3))return _0x475175(_0x37e169[_0x129ef4(0xc5)]);return JSON['stringify'](_0x37e169[_0x129ef4(0xc5)])===JSON['stringify'](_0x475175);};}[a207_0x46d778(0xa7)](_0x5b49df,_0x56a448){return _0x3e8952=>{const _0x2a3a01=a207_0x3ce8;if(!_0x5b49df(_0x3e8952))return![];const _0x35fae3=new URL(_0x3e8952[_0x2a3a01(0x88)]);return _0x35fae3['host']===_0x56a448;};}['register'](_0x44078a,_0x284370,_0x32896e){const _0x5e54aa=a207_0x46d778;this[_0x5e54aa(0xb0)][_0x5e54aa(0x99)]({'matcher':_0x44078a,'responder':_0x284370,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5e54aa(0xb1)]??'','description':_0x32896e?.[_0x5e54aa(0xbd)]});}['registerWithInspector'](_0x16c82d,_0x1d3302,_0x30bb79){const _0x2ca160=a207_0x46d778,_0x255ed1=_0x1d518a=>{return _0x30bb79(_0x1d518a['body'],_0x1d518a),_0x1d3302(_0x1d518a);};this[_0x2ca160(0xa2)](_0x16c82d,_0x255ed1);}static[a207_0x46d778(0xb9)](_0x4ed88e,_0x5c5b0f=0xc8){const _0x26195b=a207_0x46d778;return()=>new Response(JSON[_0x26195b(0xd0)](_0x4ed88e),{'status':_0x5c5b0f,'headers':{'Content-Type':_0x26195b(0xb8)}});}static[a207_0x46d778(0xc0)](_0xa4af02,_0x4b3367,_0x22382f='simple'){return()=>{const _0x5c56a5=a207_0x3ce8;let _0x8346cf;switch(_0x22382f){case _0x5c56a5(0xcf):_0x8346cf={'errors':{'error':_0x4b3367,'message':_0x4b3367,'severity':_0x5c56a5(0xc2),'status_code':_0xa4af02}};break;case _0x5c56a5(0xaf):_0x8346cf={'type':'https://api.treasuredata.com/errors/'+_0xa4af02,'title':HTTPMockRegistry[_0x5c56a5(0xae)](_0xa4af02),'status':_0xa4af02,'detail':_0x4b3367};break;default:_0x8346cf={'error':_0x4b3367};}return new Response(JSON[_0x5c56a5(0xd0)](_0x8346cf),{'status':_0xa4af02,'headers':{'Content-Type':_0x5c56a5(0xb8)}});};}static[a207_0x46d778(0xd1)](_0x5b4f6d,_0x20a58e,_0x598798=0xc8){const _0x5c503b=a207_0x46d778;return()=>new Response(JSON[_0x5c503b(0xd0)](_0x5b4f6d),{'status':_0x598798,'headers':{'Content-Type':_0x5c503b(0xb8),..._0x20a58e}});}static[a207_0x46d778(0x8d)](_0x2448dc,_0x4da91d=0xc8){const _0x3f65aa=a207_0x46d778;return()=>new Response(_0x2448dc,{'status':_0x4da91d,'headers':{'Content-Type':_0x3f65aa(0x94)}});}static[a207_0x46d778(0x96)](_0x4337d1){return()=>{throw new Error(_0x4337d1);};}[a207_0x46d778(0x91)](){const _0x265f9c=a207_0x46d778;return this[_0x265f9c(0x8c)]=vi['fn']()['mockImplementation'](async(_0x3aa583,_0xaababc)=>{const _0x17fcdd=_0x265f9c,_0xee2765=this[_0x17fcdd(0xc9)](_0x3aa583,_0xaababc);this[_0x17fcdd(0xc7)][_0x17fcdd(0x99)](_0xee2765);for(const _0x51eaa3 of this[_0x17fcdd(0xb0)]){if(_0x51eaa3['matcher'](_0xee2765))return _0x51eaa3[_0x17fcdd(0x9d)]=!![],_0x51eaa3[_0x17fcdd(0xba)]++,_0x51eaa3['responder'](_0xee2765);}const _0x1bdfbf=this[_0x17fcdd(0xb0)][_0x17fcdd(0x8f)]((_0x5a965b,_0x550ba5)=>'\x20\x20'+(_0x550ba5+0x1)+'.\x20'+(_0x5a965b[_0x17fcdd(0xbd)]??_0x17fcdd(0xc4)))[_0x17fcdd(0xb4)]('\x0a');throw new Error(_0x17fcdd(0xc3)+_0xee2765[_0x17fcdd(0xd4)]+'\x20'+_0xee2765[_0x17fcdd(0x88)]+'\x0a'+(_0x17fcdd(0x95)+JSON[_0x17fcdd(0xd0)](_0xee2765[_0x17fcdd(0xc5)])+'\x0a')+(_0x17fcdd(0xb2)+(_0x1bdfbf||_0x17fcdd(0xcb))));}),this[_0x265f9c(0x8c)];}[a207_0x46d778(0xc9)](_0xe445b1,_0xdc158e){const _0x27d19e=a207_0x46d778,_0x21fc68={};if(_0xdc158e?.[_0x27d19e(0xbb)]){if(_0xdc158e[_0x27d19e(0xbb)]instanceof Headers)_0xdc158e['headers']['forEach']((_0x6b321a,_0x2a7e9c)=>{const _0x421a75=_0x27d19e;_0x21fc68[_0x2a7e9c[_0x421a75(0x8e)]()]=_0x6b321a;});else{if(Array[_0x27d19e(0xa9)](_0xdc158e[_0x27d19e(0xbb)]))for(const [_0x33a80c,_0x285246]of _0xdc158e[_0x27d19e(0xbb)]){_0x21fc68[_0x33a80c[_0x27d19e(0x8e)]()]=_0x285246;}else for(const [_0x47858f,_0x1ea57d]of Object['entries'](_0xdc158e[_0x27d19e(0xbb)])){_0x1ea57d!==undefined&&(_0x21fc68[_0x47858f[_0x27d19e(0x8e)]()]=_0x1ea57d);}}}let _0x731284;if(_0xdc158e?.[_0x27d19e(0xc5)])try{_0x731284=JSON[_0x27d19e(0xb5)](_0xdc158e['body']);}catch{_0x731284=_0xdc158e['body'];}return{'method':_0xdc158e?.[_0x27d19e(0xd4)]??'GET','url':_0xe445b1,'headers':_0x21fc68,'body':_0x731284};}[a207_0x46d778(0xbc)](_0x241699){const _0x427695=a207_0x46d778,_0x16873d=this['stubs'][_0x427695(0x9e)](_0x55cc73=>!_0x55cc73['matched']);if(_0x16873d[_0x427695(0x9f)]>0x0){const _0x2ed6d3=_0x16873d[_0x427695(0x8f)](_0x3c9c67=>{const _0x12913d=_0x427695,_0x4d19f8=_0x3c9c67[_0x12913d(0xbd)]?'\x20('+_0x3c9c67['description']+')':'',_0x56a09c=_0x3c9c67[_0x12913d(0xb1)][_0x12913d(0x98)]('\x0a')['slice'](0x2,0x5)[_0x12913d(0xb4)]('\x0a');return _0x12913d(0xd2)+_0x4d19f8+_0x12913d(0x92)+_0x56a09c;});_0x241699[_0x427695(0xcd)](_0x16873d['length']+_0x427695(0xca)+_0x2ed6d3[_0x427695(0xb4)]('\x0a\x0a'));}}[a207_0x46d778(0xa1)](){const _0x23a28a=a207_0x46d778;return[...this[_0x23a28a(0xc7)]];}['getLastRequest'](){const _0x33da6b=a207_0x46d778;return this[_0x33da6b(0xc7)][this['requests'][_0x33da6b(0x9f)]-0x1];}[a207_0x46d778(0x93)](_0xc854a8,_0x2a47e8){const _0x536032=a207_0x46d778;return this[_0x536032(0xc7)]['some'](_0x5051e5=>{const _0x157fd7=_0x536032;if(_0x5051e5['method'][_0x157fd7(0x90)]()!==_0xc854a8['toUpperCase']())return![];if(typeof _0x2a47e8===_0x157fd7(0xab))return _0x5051e5[_0x157fd7(0x88)]['includes'](_0x2a47e8);return _0x2a47e8[_0x157fd7(0x86)](_0x5051e5[_0x157fd7(0x88)]);});}[a207_0x46d778(0xbf)](_0x5cf80){const _0x5a5625=a207_0x46d778;return this['stubs'][_0x5cf80]?.[_0x5a5625(0xba)]??0x0;}[a207_0x46d778(0x8b)](){const _0x13b443=a207_0x46d778;this['stubs']=[],this[_0x13b443(0xc7)]=[],this['fetchMock']=null;}static['getStatusText'](_0x34aa3b){const _0x39d341=a207_0x46d778,_0x226ecf={0xc8:'OK',0xc9:_0x39d341(0xcc),0xcc:_0x39d341(0xad),0x190:_0x39d341(0x9c),0x191:'Unauthorized',0x193:_0x39d341(0x9b),0x194:_0x39d341(0xc8),0x199:_0x39d341(0x9a),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x39d341(0xa0),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x39d341(0x97),0x1f7:_0x39d341(0xc1)};return _0x226ecf[_0x34aa3b]??'Unknown';}}function a207_0xd22f(){const _0x275611=['join','parse','547119hsFvWP','searchParams','application/json','jsonResponse','matchCount','headers','verify','description','3035rZZMhB','getMatchCount','errorResponse','Service\x20Unavailable','error','No\x20stub\x20matched\x20request:\x20','unnamed\x20stub','body','656SkktYs','requests','Not\x20Found','parseRequest','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','\x20\x20(none)','Created','fail','60790tRXfSL','td-api','stringify','jsonResponseWithHeaders','Unmatched\x20stub','2099556wAtcdN','method','pathname','148cAyWFV','test','19663FWzwwt','url','get','4MAZFmH','reset','fetchMock','textResponse','toLowerCase','map','toUpperCase','createFetch','\x20registered\x20at:\x0a','wasCalled','text/plain','Request\x20body:\x20','networkError','Bad\x20Gateway','split','push','Conflict','Forbidden','Bad\x20Request','matched','filter','length','Too\x20Many\x20Requests','getRequests','register','entries','REST','687987qSasQd','155073uMSoSo','withHost','includes','isArray','every','string','1364pbPMQM','No\x20Content','getStatusText','rfc9457','stubs','stack','Registered\x20stubs:\x0a','function'];a207_0xd22f=function(){return _0x275611;};return a207_0xd22f();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- function a208_0xcd23(_0x4804d1,_0x4fc6ac){_0x4804d1=_0x4804d1-0x177;var _0x511803=a208_0x5118();var _0xcd2392=_0x511803[_0x4804d1];return _0xcd2392;}function a208_0x5118(){var _0x320a26=['66uRAsYt','33AkWvNS','952IeGYIQ','48bGDLKv','562764AtnzxN','608110seXOtw','24732HyIOvh','124704QAeMcM','25855kgcUIR','50136eNZYdS','2139949BsZNEh'];a208_0x5118=function(){return _0x320a26;};return a208_0x5118();}(function(_0x1555d4,_0xeb2c07){var _0x1249ad=a208_0xcd23,_0x29cf09=_0x1555d4();while(!![]){try{var _0x4381b7=parseInt(_0x1249ad(0x17a))/0x1+-parseInt(_0x1249ad(0x17c))/0x2*(-parseInt(_0x1249ad(0x17f))/0x3)+-parseInt(_0x1249ad(0x181))/0x4*(parseInt(_0x1249ad(0x17b))/0x5)+parseInt(_0x1249ad(0x177))/0x6+-parseInt(_0x1249ad(0x17d))/0x7+-parseInt(_0x1249ad(0x180))/0x8*(parseInt(_0x1249ad(0x179))/0x9)+-parseInt(_0x1249ad(0x178))/0xa*(-parseInt(_0x1249ad(0x17e))/0xb);if(_0x4381b7===_0xeb2c07)break;else _0x29cf09['push'](_0x29cf09['shift']());}catch(_0x20dc8d){_0x29cf09['push'](_0x29cf09['shift']());}}}(a208_0x5118,0x281f5));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
+ function a208_0xad5a(_0xb4e420,_0x114ad7){_0xb4e420=_0xb4e420-0x190;var _0x4a8f4c=a208_0x4a8f();var _0xad5a1d=_0x4a8f4c[_0xb4e420];return _0xad5a1d;}(function(_0x32b192,_0x3270b0){var _0x31736a=a208_0xad5a,_0x103d84=_0x32b192();while(!![]){try{var _0x18ba0f=parseInt(_0x31736a(0x193))/0x1*(-parseInt(_0x31736a(0x197))/0x2)+-parseInt(_0x31736a(0x190))/0x3*(parseInt(_0x31736a(0x196))/0x4)+-parseInt(_0x31736a(0x199))/0x5+parseInt(_0x31736a(0x194))/0x6+-parseInt(_0x31736a(0x198))/0x7+-parseInt(_0x31736a(0x19a))/0x8*(parseInt(_0x31736a(0x191))/0x9)+parseInt(_0x31736a(0x192))/0xa*(parseInt(_0x31736a(0x195))/0xb);if(_0x18ba0f===_0x3270b0)break;else _0x103d84['push'](_0x103d84['shift']());}catch(_0x162333){_0x103d84['push'](_0x103d84['shift']());}}}(a208_0x4a8f,0x29ce5));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a208_0x4a8f(){var _0x5d1a98=['121599qOLDGk','10vDPNwQ','107IfLvse','128790EIZKNx','13488673RyDVGM','172fLrZwE','5244ttjGfe','2337734GaiHXR','274960SJBpMz','48OKidMy','22737LFVDlJ'];a208_0x4a8f=function(){return _0x5d1a98;};return a208_0x4a8f();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0x598618,_0x15ac25){const _0x26b1aa=a209_0x592c,_0x264767=_0x598618();while(!![]){try{const _0x4ed0c5=-parseInt(_0x26b1aa(0xbb))/0x1*(-parseInt(_0x26b1aa(0xb9))/0x2)+-parseInt(_0x26b1aa(0xb4))/0x3+parseInt(_0x26b1aa(0xb7))/0x4+-parseInt(_0x26b1aa(0xb3))/0x5+-parseInt(_0x26b1aa(0xb2))/0x6+parseInt(_0x26b1aa(0xb8))/0x7+parseInt(_0x26b1aa(0xba))/0x8;if(_0x4ed0c5===_0x15ac25)break;else _0x264767['push'](_0x264767['shift']());}catch(_0x4c938a){_0x264767['push'](_0x264767['shift']());}}}(a209_0x5f18,0x22196));export async function batchAsync(_0x13431d,_0xb37ec8,_0x7f0d41=0xa){const _0x5b1e42=a209_0x592c,_0x2392bb=[];for(let _0x5ca8aa=0x0;_0x5ca8aa<_0x13431d[_0x5b1e42(0xb1)];_0x5ca8aa+=_0x7f0d41){const _0x4be0d2=_0x13431d[_0x5b1e42(0xb5)](_0x5ca8aa,_0x5ca8aa+_0x7f0d41),_0x2452e3=await Promise[_0x5b1e42(0xb0)](_0x4be0d2['map'](_0xb37ec8));_0x2392bb[_0x5b1e42(0xb6)](..._0x2452e3);}return _0x2392bb;}function a209_0x592c(_0x3c3c92,_0xf0782b){_0x3c3c92=_0x3c3c92-0xb0;const _0x5f1858=a209_0x5f18();let _0x592c86=_0x5f1858[_0x3c3c92];return _0x592c86;}function a209_0x5f18(){const _0x24953e=['489465aMxvHD','629961qdXRPk','slice','push','16220bVKehj','1633016FGsQyM','85958ePSbZt','866440vpffuJ','6BGduws','all','length','935832GxJdjo'];a209_0x5f18=function(){return _0x24953e;};return a209_0x5f18();}
1
+ function a209_0x5998(){const _0xda3a06=['925PAPoaK','all','8946clQmLh','3003750EbOrZU','12vDYZrl','36174wyQvHx','map','length','7954287RTGslx','86563hGbPYE','1686440QAYpDT','32YgUsaL','1184bXXuTq','4586444DTnntB','9tRkrWo'];a209_0x5998=function(){return _0xda3a06;};return a209_0x5998();}function a209_0x4e09(_0x533741,_0x59ad4a){_0x533741=_0x533741-0x118;const _0x5998d1=a209_0x5998();let _0x4e09e9=_0x5998d1[_0x533741];return _0x4e09e9;}(function(_0x30f4f4,_0x142728){const _0x53fe84=a209_0x4e09,_0x59159c=_0x30f4f4();while(!![]){try{const _0x317cf0=parseInt(_0x53fe84(0x123))/0x1*(-parseInt(_0x53fe84(0x125))/0x2)+parseInt(_0x53fe84(0x11d))/0x3+parseInt(_0x53fe84(0x118))/0x4+-parseInt(_0x53fe84(0x11a))/0x5*(-parseInt(_0x53fe84(0x11f))/0x6)+parseInt(_0x53fe84(0x11c))/0x7*(-parseInt(_0x53fe84(0x126))/0x8)+-parseInt(_0x53fe84(0x119))/0x9*(parseInt(_0x53fe84(0x124))/0xa)+-parseInt(_0x53fe84(0x122))/0xb*(parseInt(_0x53fe84(0x11e))/0xc);if(_0x317cf0===_0x142728)break;else _0x59159c['push'](_0x59159c['shift']());}catch(_0x3fb998){_0x59159c['push'](_0x59159c['shift']());}}}(a209_0x5998,0xc2a81));export async function batchAsync(_0x9df239,_0x2b14ec,_0x2e565d=0xa){const _0x4a0ce3=a209_0x4e09,_0x284ab6=[];for(let _0x4533f4=0x0;_0x4533f4<_0x9df239[_0x4a0ce3(0x121)];_0x4533f4+=_0x2e565d){const _0x5f2d32=_0x9df239['slice'](_0x4533f4,_0x4533f4+_0x2e565d),_0x3f92d1=await Promise[_0x4a0ce3(0x11b)](_0x5f2d32[_0x4a0ce3(0x120)](_0x2b14ec));_0x284ab6['push'](..._0x3f92d1);}return _0x284ab6;}
@@ -1 +1 @@
1
- (function(_0xca83e8,_0x1ff56c){const _0x338563=a210_0x2502,_0x1ed424=_0xca83e8();while(!![]){try{const _0x424767=parseInt(_0x338563(0x187))/0x1*(-parseInt(_0x338563(0x174))/0x2)+parseInt(_0x338563(0x184))/0x3*(-parseInt(_0x338563(0x17b))/0x4)+-parseInt(_0x338563(0x173))/0x5*(parseInt(_0x338563(0x176))/0x6)+-parseInt(_0x338563(0x16c))/0x7*(parseInt(_0x338563(0x182))/0x8)+parseInt(_0x338563(0x17e))/0x9+-parseInt(_0x338563(0x180))/0xa*(parseInt(_0x338563(0x16e))/0xb)+-parseInt(_0x338563(0x17f))/0xc*(-parseInt(_0x338563(0x170))/0xd);if(_0x424767===_0x1ff56c)break;else _0x1ed424['push'](_0x1ed424['shift']());}catch(_0x3f60d4){_0x1ed424['push'](_0x1ed424['shift']());}}}(a210_0x4cb2,0xeb769));function a210_0x4cb2(){const _0x51cf22=['yellow','green','12395403MLbOlg','62724NEVHam','63790cRIGfh','boolean','13064uNEIeJ','number','3ayHnAc','stdout','isArray','1227977neVSRV','join','dim','null','stringify','1435ShJaiQ','noColor','2948KDXzOW','entries','9815jnbcax','object','map','10qgdIaF','2gIWXxX','length','581142CqNzsw','isTTY','cyan','repeat','string','3572668ROCjrW'];a210_0x4cb2=function(){return _0x51cf22;};return a210_0x4cb2();}import*as a210_0xd3cd60 from'chalk';const Chalk=a210_0xd3cd60['Chalk'];export function shouldUseColor(_0xf42b45={}){const _0x3214cb=a210_0x2502;if(_0xf42b45[_0x3214cb(0x16d)]===!![])return![];if(_0xf42b45['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3214cb(0x185)][_0x3214cb(0x177)]??![];}export function getChalk(_0xa2feb7={}){if(shouldUseColor(_0xa2feb7))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4e91a9,_0x58c2fa={}){return getChalk(_0x58c2fa)['dim'](_0x4e91a9);}export function colorHeader(_0x4284f4,_0x24105e={}){const _0x16f151=a210_0x2502;return getChalk(_0x24105e)[_0x16f151(0x178)](_0x4284f4);}function a210_0x2502(_0xc33bda,_0x5cd56c){_0xc33bda=_0xc33bda-0x169;const _0x4cb242=a210_0x4cb2();let _0x2502b0=_0x4cb242[_0xc33bda];return _0x2502b0;}export function colorType(_0x596314,_0x297c59={}){const _0x5ca4d3=a210_0x2502;return getChalk(_0x297c59)[_0x5ca4d3(0x169)](_0x596314);}export function colorJSONKey(_0x17ceb8,_0x15c3a7={}){return getChalk(_0x15c3a7)['blue'](_0x17ceb8);}export function colorJSONString(_0x42c05c,_0x21dfbd={}){const _0x1c6be3=a210_0x2502;return getChalk(_0x21dfbd)[_0x1c6be3(0x17d)](_0x42c05c);}export function colorJSONNumber(_0x2d06bb,_0x4945ad={}){const _0x27ef77=a210_0x2502;return getChalk(_0x4945ad)[_0x27ef77(0x178)](_0x2d06bb);}export function colorJSONBoolean(_0x46a514,_0x2136c5={}){const _0x495715=a210_0x2502;return getChalk(_0x2136c5)[_0x495715(0x17c)](_0x46a514);}export function colorJSONNull(_0x17620d,_0xdcdee5={}){const _0x350539=a210_0x2502;return getChalk(_0xdcdee5)[_0x350539(0x169)](_0x17620d);}export function colorizeJSONCompact(_0x5d3ce9,_0x6bc1e9={}){const _0x4269e1=a210_0x2502;if(!shouldUseColor(_0x6bc1e9))return JSON['stringify'](_0x5d3ce9);if(_0x5d3ce9===null)return colorJSONNull(_0x4269e1(0x16a),_0x6bc1e9);if(typeof _0x5d3ce9===_0x4269e1(0x181))return colorJSONBoolean(String(_0x5d3ce9),_0x6bc1e9);if(typeof _0x5d3ce9==='number')return colorJSONNumber(String(_0x5d3ce9),_0x6bc1e9);if(typeof _0x5d3ce9==='string')return colorJSONString(JSON[_0x4269e1(0x16b)](_0x5d3ce9),_0x6bc1e9);if(Array[_0x4269e1(0x186)](_0x5d3ce9)){if(_0x5d3ce9[_0x4269e1(0x175)]===0x0)return'[]';const _0x199ee8=_0x5d3ce9[_0x4269e1(0x172)](_0x56f20e=>colorizeJSONCompact(_0x56f20e,_0x6bc1e9));return'['+_0x199ee8[_0x4269e1(0x188)](',')+']';}if(typeof _0x5d3ce9==='object'){const _0x158edc=Object[_0x4269e1(0x16f)](_0x5d3ce9);if(_0x158edc[_0x4269e1(0x175)]===0x0)return'{}';const _0x593127=_0x158edc[_0x4269e1(0x172)](([_0x24336b,_0x9e7e36])=>{const _0x12ff12=_0x4269e1,_0x497deb=colorJSONKey(JSON[_0x12ff12(0x16b)](_0x24336b),_0x6bc1e9),_0x53416e=colorizeJSONCompact(_0x9e7e36,_0x6bc1e9);return _0x497deb+':'+_0x53416e;});return'{'+_0x593127[_0x4269e1(0x188)](',')+'}';}return String(_0x5d3ce9);}export function colorizeJSON(_0x274d5c,_0x53dc03={},_0x559756=0x0){const _0x5179e7=a210_0x2502;if(!shouldUseColor(_0x53dc03))return JSON[_0x5179e7(0x16b)](_0x274d5c,null,0x2);const _0x11f6bf='\x20'[_0x5179e7(0x179)](_0x559756),_0x52c0f5=_0x559756+0x2;if(_0x274d5c===null)return colorJSONNull(_0x5179e7(0x16a),_0x53dc03);if(typeof _0x274d5c===_0x5179e7(0x181))return colorJSONBoolean(String(_0x274d5c),_0x53dc03);if(typeof _0x274d5c===_0x5179e7(0x183))return colorJSONNumber(String(_0x274d5c),_0x53dc03);if(typeof _0x274d5c===_0x5179e7(0x17a))return colorJSONString(JSON[_0x5179e7(0x16b)](_0x274d5c),_0x53dc03);if(Array[_0x5179e7(0x186)](_0x274d5c)){if(_0x274d5c[_0x5179e7(0x175)]===0x0)return'[]';const _0x5656d5=_0x274d5c[_0x5179e7(0x172)](_0x5884ce=>{const _0x36e089=_0x5179e7,_0x15624d=colorizeJSON(_0x5884ce,_0x53dc03,_0x52c0f5);return''+'\x20'[_0x36e089(0x179)](_0x52c0f5)+_0x15624d;});return'[\x0a'+_0x5656d5[_0x5179e7(0x188)](',\x0a')+('\x0a'+_0x11f6bf+']');}if(typeof _0x274d5c===_0x5179e7(0x171)){const _0x36bf44=Object[_0x5179e7(0x16f)](_0x274d5c);if(_0x36bf44[_0x5179e7(0x175)]===0x0)return'{}';const _0x2dc9ef=_0x36bf44[_0x5179e7(0x172)](([_0x374886,_0x11f66b])=>{const _0x1251f0=colorJSONKey(JSON['stringify'](_0x374886),_0x53dc03),_0x24ddf1=colorizeJSON(_0x11f66b,_0x53dc03,_0x52c0f5);return''+'\x20'['repeat'](_0x52c0f5)+_0x1251f0+':\x20'+_0x24ddf1;});return'{\x0a'+_0x2dc9ef[_0x5179e7(0x188)](',\x0a')+('\x0a'+_0x11f6bf+'}');}return String(_0x274d5c);}
1
+ const a210_0x5e3692=a210_0x3140;function a210_0x76fc(){const _0x2d49fa=['number','101555kemaev','stringify','isTTY','object','88uwtpDk','406XdWrMJ','101656eVzfre','1749222KbRPDF','Chalk','2075116XCPQjK','join','null','length','4598790UiLySn','entries','dim','yellow','string','cyan','blue','map','stdout','3322194SlxLrt','isArray','20OSgMsd','repeat','1565649LFPXoJ','boolean'];a210_0x76fc=function(){return _0x2d49fa;};return a210_0x76fc();}(function(_0x4a9762,_0x30c070){const _0x5ea3ff=a210_0x3140,_0x4d641c=_0x4a9762();while(!![]){try{const _0x1fe774=parseInt(_0x5ea3ff(0x1ad))/0x1+parseInt(_0x5ea3ff(0x19c))/0x2+-parseInt(_0x5ea3ff(0x1a9))/0x3+-parseInt(_0x5ea3ff(0x197))/0x4*(-parseInt(_0x5ea3ff(0x193))/0x5)+-parseInt(_0x5ea3ff(0x1a0))/0x6+parseInt(_0x5ea3ff(0x198))/0x7*(-parseInt(_0x5ea3ff(0x199))/0x8)+parseInt(_0x5ea3ff(0x19a))/0x9*(parseInt(_0x5ea3ff(0x1ab))/0xa);if(_0x1fe774===_0x30c070)break;else _0x4d641c['push'](_0x4d641c['shift']());}catch(_0x7fdc29){_0x4d641c['push'](_0x4d641c['shift']());}}}(a210_0x76fc,0xca1f8));import*as a210_0x4f80ee from'chalk';const Chalk=a210_0x4f80ee[a210_0x5e3692(0x19b)];export function shouldUseColor(_0x24c995={}){const _0x3b86c3=a210_0x5e3692;if(_0x24c995['noColor']===!![])return![];if(_0x24c995['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3b86c3(0x1a8)][_0x3b86c3(0x195)]??![];}export function getChalk(_0x5afe05={}){if(shouldUseColor(_0x5afe05))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x36b976,_0x567813={}){const _0x28d05a=a210_0x5e3692;return getChalk(_0x567813)[_0x28d05a(0x1a2)](_0x36b976);}export function colorHeader(_0x309159,_0x578023={}){const _0x51c342=a210_0x5e3692;return getChalk(_0x578023)[_0x51c342(0x1a5)](_0x309159);}export function colorType(_0x32568d,_0x2e1dd3={}){return getChalk(_0x2e1dd3)['dim'](_0x32568d);}export function colorJSONKey(_0x1d3145,_0x501a4c={}){const _0x332d3e=a210_0x5e3692;return getChalk(_0x501a4c)[_0x332d3e(0x1a6)](_0x1d3145);}export function colorJSONString(_0x1b5659,_0x45a87b={}){return getChalk(_0x45a87b)['green'](_0x1b5659);}export function colorJSONNumber(_0xf2efff,_0x5caab4={}){const _0x306fdb=a210_0x5e3692;return getChalk(_0x5caab4)[_0x306fdb(0x1a5)](_0xf2efff);}export function colorJSONBoolean(_0x2fcd80,_0x53282e={}){const _0x57a60b=a210_0x5e3692;return getChalk(_0x53282e)[_0x57a60b(0x1a3)](_0x2fcd80);}export function colorJSONNull(_0x2fb8ea,_0x143ebb={}){const _0x30eab8=a210_0x5e3692;return getChalk(_0x143ebb)[_0x30eab8(0x1a2)](_0x2fb8ea);}function a210_0x3140(_0x51d0e2,_0x2ce981){_0x51d0e2=_0x51d0e2-0x192;const _0x76fc97=a210_0x76fc();let _0x3140fe=_0x76fc97[_0x51d0e2];return _0x3140fe;}export function colorizeJSONCompact(_0x145674,_0xed479d={}){const _0x1beaf4=a210_0x5e3692;if(!shouldUseColor(_0xed479d))return JSON[_0x1beaf4(0x194)](_0x145674);if(_0x145674===null)return colorJSONNull(_0x1beaf4(0x19e),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x1ae))return colorJSONBoolean(String(_0x145674),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x192))return colorJSONNumber(String(_0x145674),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x1a4))return colorJSONString(JSON['stringify'](_0x145674),_0xed479d);if(Array[_0x1beaf4(0x1aa)](_0x145674)){if(_0x145674[_0x1beaf4(0x19f)]===0x0)return'[]';const _0x437511=_0x145674[_0x1beaf4(0x1a7)](_0x3517f4=>colorizeJSONCompact(_0x3517f4,_0xed479d));return'['+_0x437511['join'](',')+']';}if(typeof _0x145674===_0x1beaf4(0x196)){const _0x4dc80d=Object['entries'](_0x145674);if(_0x4dc80d['length']===0x0)return'{}';const _0x17436f=_0x4dc80d[_0x1beaf4(0x1a7)](([_0x593193,_0x5f1c69])=>{const _0x458693=_0x1beaf4,_0x2e3fd2=colorJSONKey(JSON[_0x458693(0x194)](_0x593193),_0xed479d),_0x21bdf3=colorizeJSONCompact(_0x5f1c69,_0xed479d);return _0x2e3fd2+':'+_0x21bdf3;});return'{'+_0x17436f[_0x1beaf4(0x19d)](',')+'}';}return String(_0x145674);}export function colorizeJSON(_0x589468,_0xb4f296={},_0x563dc5=0x0){const _0x35f332=a210_0x5e3692;if(!shouldUseColor(_0xb4f296))return JSON[_0x35f332(0x194)](_0x589468,null,0x2);const _0x4f2328='\x20'[_0x35f332(0x1ac)](_0x563dc5),_0x4004b3=_0x563dc5+0x2;if(_0x589468===null)return colorJSONNull(_0x35f332(0x19e),_0xb4f296);if(typeof _0x589468===_0x35f332(0x1ae))return colorJSONBoolean(String(_0x589468),_0xb4f296);if(typeof _0x589468===_0x35f332(0x192))return colorJSONNumber(String(_0x589468),_0xb4f296);if(typeof _0x589468===_0x35f332(0x1a4))return colorJSONString(JSON[_0x35f332(0x194)](_0x589468),_0xb4f296);if(Array['isArray'](_0x589468)){if(_0x589468['length']===0x0)return'[]';const _0x6e6627=_0x589468[_0x35f332(0x1a7)](_0x523bf6=>{const _0x47b0e7=_0x35f332,_0x36f463=colorizeJSON(_0x523bf6,_0xb4f296,_0x4004b3);return''+'\x20'[_0x47b0e7(0x1ac)](_0x4004b3)+_0x36f463;});return'[\x0a'+_0x6e6627[_0x35f332(0x19d)](',\x0a')+('\x0a'+_0x4f2328+']');}if(typeof _0x589468===_0x35f332(0x196)){const _0x2c50d2=Object[_0x35f332(0x1a1)](_0x589468);if(_0x2c50d2[_0x35f332(0x19f)]===0x0)return'{}';const _0x3a66dc=_0x2c50d2['map'](([_0x329ae0,_0x4b7d53])=>{const _0x570ffc=_0x35f332,_0x1b41fb=colorJSONKey(JSON['stringify'](_0x329ae0),_0xb4f296),_0x3d8244=colorizeJSON(_0x4b7d53,_0xb4f296,_0x4004b3);return''+'\x20'[_0x570ffc(0x1ac)](_0x4004b3)+_0x1b41fb+':\x20'+_0x3d8244;});return'{\x0a'+_0x3a66dc[_0x35f332(0x19d)](',\x0a')+('\x0a'+_0x4f2328+'}');}return String(_0x589468);}
@@ -1 +1 @@
1
- (function(_0x49d220,_0x5f4573){const _0x350f65=a211_0x9da8,_0x3e3373=_0x49d220();while(!![]){try{const _0xbc57f2=-parseInt(_0x350f65(0x188))/0x1+parseInt(_0x350f65(0x1a4))/0x2+-parseInt(_0x350f65(0x19b))/0x3*(-parseInt(_0x350f65(0x1a3))/0x4)+parseInt(_0x350f65(0x1a8))/0x5*(parseInt(_0x350f65(0x186))/0x6)+parseInt(_0x350f65(0x190))/0x7*(-parseInt(_0x350f65(0x196))/0x8)+parseInt(_0x350f65(0x192))/0x9*(parseInt(_0x350f65(0x198))/0xa)+-parseInt(_0x350f65(0x19f))/0xb;if(_0xbc57f2===_0x5f4573)break;else _0x3e3373['push'](_0x3e3373['shift']());}catch(_0x374677){_0x3e3373['push'](_0x3e3373['shift']());}}}(a211_0x2f73,0x8fe57));import a211_0x4d461f from'chalk';function a211_0x9da8(_0x4a6a5a,_0x1ba82b){_0x4a6a5a=_0x4a6a5a-0x186;const _0x2f73e7=a211_0x2f73();let _0x9da8b=_0x2f73e7[_0x4a6a5a];return _0x9da8b;}export function generateDiff(_0x3fccca,_0x38321a){const _0x1193d3=a211_0x9da8,_0x3e4626=_0x3fccca['split']('\x0a'),_0x3f9768=_0x38321a['split']('\x0a'),_0x18eea7=[],_0x1b9c0f=computeLCS(_0x3e4626,_0x3f9768);let _0x2022e2=0x0,_0x38d516=0x0,_0x5e654d=0x0;while(_0x2022e2<_0x3e4626['length']||_0x38d516<_0x3f9768[_0x1193d3(0x1a1)]){if(_0x5e654d<_0x1b9c0f[_0x1193d3(0x1a1)]&&_0x2022e2<_0x3e4626[_0x1193d3(0x1a1)]&&_0x3e4626[_0x2022e2]===_0x1b9c0f[_0x5e654d])_0x38d516<_0x3f9768[_0x1193d3(0x1a1)]&&_0x3f9768[_0x38d516]===_0x1b9c0f[_0x5e654d]?(_0x18eea7[_0x1193d3(0x1a7)]({'type':_0x1193d3(0x18a),'content':_0x3e4626[_0x2022e2]}),_0x2022e2++,_0x38d516++,_0x5e654d++):(_0x18eea7[_0x1193d3(0x1a7)]({'type':_0x1193d3(0x1a6),'content':_0x3f9768[_0x38d516]}),_0x38d516++);else{if(_0x5e654d<_0x1b9c0f['length']&&_0x38d516<_0x3f9768[_0x1193d3(0x1a1)]&&_0x3f9768[_0x38d516]===_0x1b9c0f[_0x5e654d])_0x18eea7['push']({'type':_0x1193d3(0x18f),'content':_0x3e4626[_0x2022e2]}),_0x2022e2++;else{if(_0x2022e2<_0x3e4626['length']&&(_0x5e654d>=_0x1b9c0f['length']||_0x3e4626[_0x2022e2]!==_0x1b9c0f[_0x5e654d]))_0x18eea7[_0x1193d3(0x1a7)]({'type':_0x1193d3(0x18f),'content':_0x3e4626[_0x2022e2]}),_0x2022e2++;else _0x38d516<_0x3f9768[_0x1193d3(0x1a1)]&&(_0x18eea7[_0x1193d3(0x1a7)]({'type':_0x1193d3(0x1a6),'content':_0x3f9768[_0x38d516]}),_0x38d516++);}}}return _0x18eea7;}function computeLCS(_0x173f2b,_0xdd4134){const _0x3ffb38=a211_0x9da8,_0x1a6d40=_0x173f2b[_0x3ffb38(0x1a1)],_0x3af044=_0xdd4134[_0x3ffb38(0x1a1)],_0x4dac95=Array(_0x1a6d40+0x1)['fill'](null)[_0x3ffb38(0x191)](()=>Array(_0x3af044+0x1)[_0x3ffb38(0x18b)](0x0));for(let _0x5db784=0x1;_0x5db784<=_0x1a6d40;_0x5db784++){for(let _0x58cf04=0x1;_0x58cf04<=_0x3af044;_0x58cf04++){_0x173f2b[_0x5db784-0x1]===_0xdd4134[_0x58cf04-0x1]?_0x4dac95[_0x5db784][_0x58cf04]=_0x4dac95[_0x5db784-0x1][_0x58cf04-0x1]+0x1:_0x4dac95[_0x5db784][_0x58cf04]=Math['max'](_0x4dac95[_0x5db784-0x1][_0x58cf04],_0x4dac95[_0x5db784][_0x58cf04-0x1]);}}const _0x58bf2b=[];let _0x9e4e72=_0x1a6d40,_0x2d7133=_0x3af044;while(_0x9e4e72>0x0&&_0x2d7133>0x0){if(_0x173f2b[_0x9e4e72-0x1]===_0xdd4134[_0x2d7133-0x1])_0x58bf2b[_0x3ffb38(0x18d)](_0x173f2b[_0x9e4e72-0x1]),_0x9e4e72--,_0x2d7133--;else _0x4dac95[_0x9e4e72-0x1][_0x2d7133]>_0x4dac95[_0x9e4e72][_0x2d7133-0x1]?_0x9e4e72--:_0x2d7133--;}return _0x58bf2b;}export function formatDiffWithColors(_0x5e76be,_0x349885=0x3){const _0x1ccd4d=a211_0x9da8,_0x1d0a1a=new Set();_0x5e76be[_0x1ccd4d(0x19d)]((_0x41c797,_0x30f34f)=>{const _0x406207=_0x1ccd4d;_0x41c797[_0x406207(0x19a)]!==_0x406207(0x18a)&&_0x1d0a1a[_0x406207(0x189)](_0x30f34f);});if(_0x1d0a1a['size']===0x0)return'';const _0x415128=new Set();for(const _0x27092a of _0x1d0a1a){for(let _0x41859c=Math[_0x1ccd4d(0x194)](0x0,_0x27092a-_0x349885);_0x41859c<=Math[_0x1ccd4d(0x187)](_0x5e76be['length']-0x1,_0x27092a+_0x349885);_0x41859c++){_0x415128['add'](_0x41859c);}}const _0x3f16bb=[];let _0x21d712=-0x1;const _0x4f926d=_0x5e76be[_0x1ccd4d(0x1a1)],_0x35a8a6=Math[_0x1ccd4d(0x194)](0x3,String(_0x4f926d)[_0x1ccd4d(0x1a1)]),_0x4ac0e6=[];let _0x209ca9=0x0,_0x4d3c9f=0x0;for(const _0x39a1bb of _0x5e76be){if(_0x39a1bb[_0x1ccd4d(0x19a)]===_0x1ccd4d(0x18f))_0x209ca9++,_0x4ac0e6[_0x1ccd4d(0x1a7)]({'old':_0x209ca9,'new':0x0});else _0x39a1bb['type']===_0x1ccd4d(0x1a6)?(_0x4d3c9f++,_0x4ac0e6['push']({'old':0x0,'new':_0x4d3c9f})):(_0x209ca9++,_0x4d3c9f++,_0x4ac0e6[_0x1ccd4d(0x1a7)]({'old':_0x209ca9,'new':_0x4d3c9f}));}for(let _0x1d2475=0x0;_0x1d2475<_0x5e76be[_0x1ccd4d(0x1a1)];_0x1d2475++){if(!_0x415128['has'](_0x1d2475))continue;_0x21d712!==-0x1&&_0x1d2475>_0x21d712+0x1&&_0x3f16bb['push'](a211_0x4d461f['cyan']('\x20\x20...'));_0x21d712=_0x1d2475;const _0x5bcb35=_0x5e76be[_0x1d2475],_0x9f74a3=_0x4ac0e6[_0x1d2475],_0x13f932=_0x9f74a3[_0x1ccd4d(0x19c)]>0x0?String(_0x9f74a3[_0x1ccd4d(0x19c)])['padStart'](_0x35a8a6):'\x20'[_0x1ccd4d(0x18e)](_0x35a8a6),_0x52d4c8=_0x9f74a3[_0x1ccd4d(0x1a0)]>0x0?String(_0x9f74a3[_0x1ccd4d(0x1a0)])[_0x1ccd4d(0x1a9)](_0x35a8a6):'\x20'[_0x1ccd4d(0x18e)](_0x35a8a6);switch(_0x5bcb35[_0x1ccd4d(0x19a)]){case _0x1ccd4d(0x18f):_0x3f16bb[_0x1ccd4d(0x1a7)](a211_0x4d461f[_0x1ccd4d(0x1a2)](_0x13f932+'\x20'+_0x52d4c8+_0x1ccd4d(0x199)+_0x5bcb35[_0x1ccd4d(0x1a5)]));break;case _0x1ccd4d(0x1a6):_0x3f16bb[_0x1ccd4d(0x1a7)](a211_0x4d461f[_0x1ccd4d(0x197)](_0x13f932+'\x20'+_0x52d4c8+'\x20+\x20'+_0x5bcb35[_0x1ccd4d(0x1a5)]));break;default:_0x3f16bb[_0x1ccd4d(0x1a7)](a211_0x4d461f[_0x1ccd4d(0x193)](_0x13f932+'\x20'+_0x52d4c8+_0x1ccd4d(0x195)+_0x5bcb35[_0x1ccd4d(0x1a5)]));break;}}return _0x3f16bb[_0x1ccd4d(0x19e)]('\x0a');}export function hasChanges(_0x24e99d){const _0xe73a13=a211_0x9da8;return _0x24e99d[_0xe73a13(0x18c)](_0x116970=>_0x116970[_0xe73a13(0x19a)]!==_0xe73a13(0x18a));}function a211_0x2f73(){const _0x51af85=['1545242QZUSZy','content','added','push','4734645UbBvys','padStart','6XyUrZC','min','636388hiyRqJ','add','unchanged','fill','some','unshift','repeat','removed','161ommlMc','map','315bjzMRU','dim','max','\x20\x20\x20','67432uLmxuV','green','226910UEVKeh','\x20-\x20','type','164001OPYKzU','old','forEach','join','16845587RGSHdM','new','length','red','32aPnhRe'];a211_0x2f73=function(){return _0x51af85;};return a211_0x2f73();}
1
+ (function(_0x46276d,_0x949595){const _0xacfd46=a211_0x2136,_0x3cc6d1=_0x46276d();while(!![]){try{const _0x3247e3=parseInt(_0xacfd46(0x1a0))/0x1*(parseInt(_0xacfd46(0x1a1))/0x2)+parseInt(_0xacfd46(0x1b7))/0x3*(parseInt(_0xacfd46(0x1ab))/0x4)+parseInt(_0xacfd46(0x195))/0x5+parseInt(_0xacfd46(0x1a7))/0x6+parseInt(_0xacfd46(0x1b0))/0x7*(-parseInt(_0xacfd46(0x1b8))/0x8)+parseInt(_0xacfd46(0x1a3))/0x9+-parseInt(_0xacfd46(0x1ba))/0xa*(parseInt(_0xacfd46(0x19f))/0xb);if(_0x3247e3===_0x949595)break;else _0x3cc6d1['push'](_0x3cc6d1['shift']());}catch(_0x5e923f){_0x3cc6d1['push'](_0x3cc6d1['shift']());}}}(a211_0x17c9,0xa5508));import a211_0x43b408 from'chalk';export function generateDiff(_0x172833,_0x275b7b){const _0x46985a=a211_0x2136,_0x1cea66=_0x172833[_0x46985a(0x1aa)]('\x0a'),_0x4509b3=_0x275b7b[_0x46985a(0x1aa)]('\x0a'),_0x1896b6=[],_0x5f23ec=computeLCS(_0x1cea66,_0x4509b3);let _0xb7f515=0x0,_0xa86983=0x0,_0x394456=0x0;while(_0xb7f515<_0x1cea66[_0x46985a(0x19d)]||_0xa86983<_0x4509b3[_0x46985a(0x19d)]){if(_0x394456<_0x5f23ec['length']&&_0xb7f515<_0x1cea66[_0x46985a(0x19d)]&&_0x1cea66[_0xb7f515]===_0x5f23ec[_0x394456])_0xa86983<_0x4509b3[_0x46985a(0x19d)]&&_0x4509b3[_0xa86983]===_0x5f23ec[_0x394456]?(_0x1896b6[_0x46985a(0x1b2)]({'type':'unchanged','content':_0x1cea66[_0xb7f515]}),_0xb7f515++,_0xa86983++,_0x394456++):(_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x1b5),'content':_0x4509b3[_0xa86983]}),_0xa86983++);else{if(_0x394456<_0x5f23ec[_0x46985a(0x19d)]&&_0xa86983<_0x4509b3[_0x46985a(0x19d)]&&_0x4509b3[_0xa86983]===_0x5f23ec[_0x394456])_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x19a),'content':_0x1cea66[_0xb7f515]}),_0xb7f515++;else{if(_0xb7f515<_0x1cea66[_0x46985a(0x19d)]&&(_0x394456>=_0x5f23ec[_0x46985a(0x19d)]||_0x1cea66[_0xb7f515]!==_0x5f23ec[_0x394456]))_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x19a),'content':_0x1cea66[_0xb7f515]}),_0xb7f515++;else _0xa86983<_0x4509b3[_0x46985a(0x19d)]&&(_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x1b5),'content':_0x4509b3[_0xa86983]}),_0xa86983++);}}}return _0x1896b6;}function computeLCS(_0x265851,_0x17f9f1){const _0x1fd089=a211_0x2136,_0xa1b89c=_0x265851[_0x1fd089(0x19d)],_0x2c08f5=_0x17f9f1[_0x1fd089(0x19d)],_0x4c8c9c=Array(_0xa1b89c+0x1)['fill'](null)[_0x1fd089(0x198)](()=>Array(_0x2c08f5+0x1)['fill'](0x0));for(let _0x553e42=0x1;_0x553e42<=_0xa1b89c;_0x553e42++){for(let _0xd749e3=0x1;_0xd749e3<=_0x2c08f5;_0xd749e3++){_0x265851[_0x553e42-0x1]===_0x17f9f1[_0xd749e3-0x1]?_0x4c8c9c[_0x553e42][_0xd749e3]=_0x4c8c9c[_0x553e42-0x1][_0xd749e3-0x1]+0x1:_0x4c8c9c[_0x553e42][_0xd749e3]=Math[_0x1fd089(0x1b3)](_0x4c8c9c[_0x553e42-0x1][_0xd749e3],_0x4c8c9c[_0x553e42][_0xd749e3-0x1]);}}const _0x3fb695=[];let _0x28652a=_0xa1b89c,_0x1f7476=_0x2c08f5;while(_0x28652a>0x0&&_0x1f7476>0x0){if(_0x265851[_0x28652a-0x1]===_0x17f9f1[_0x1f7476-0x1])_0x3fb695[_0x1fd089(0x199)](_0x265851[_0x28652a-0x1]),_0x28652a--,_0x1f7476--;else _0x4c8c9c[_0x28652a-0x1][_0x1f7476]>_0x4c8c9c[_0x28652a][_0x1f7476-0x1]?_0x28652a--:_0x1f7476--;}return _0x3fb695;}export function formatDiffWithColors(_0x4a7368,_0x710d7c=0x3){const _0x1bf418=a211_0x2136,_0x3bc17e=new Set();_0x4a7368[_0x1bf418(0x1ac)]((_0x203405,_0xdc90a4)=>{const _0x189ed1=_0x1bf418;_0x203405[_0x189ed1(0x1b1)]!==_0x189ed1(0x1a2)&&_0x3bc17e[_0x189ed1(0x1b4)](_0xdc90a4);});if(_0x3bc17e[_0x1bf418(0x1bb)]===0x0)return'';const _0x349e72=new Set();for(const _0x4c51d5 of _0x3bc17e){for(let _0x3a580e=Math['max'](0x0,_0x4c51d5-_0x710d7c);_0x3a580e<=Math[_0x1bf418(0x1b6)](_0x4a7368['length']-0x1,_0x4c51d5+_0x710d7c);_0x3a580e++){_0x349e72[_0x1bf418(0x1b4)](_0x3a580e);}}const _0x21bef5=[];let _0x236c1b=-0x1;const _0x2e6776=_0x4a7368[_0x1bf418(0x19d)],_0x6ee767=Math['max'](0x3,String(_0x2e6776)[_0x1bf418(0x19d)]),_0x2aa6a7=[];let _0x59dff0=0x0,_0x56cf4b=0x0;for(const _0x7f7cb of _0x4a7368){if(_0x7f7cb['type']==='removed')_0x59dff0++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':_0x59dff0,'new':0x0});else _0x7f7cb['type']==='added'?(_0x56cf4b++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':0x0,'new':_0x56cf4b})):(_0x59dff0++,_0x56cf4b++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':_0x59dff0,'new':_0x56cf4b}));}for(let _0x5cafea=0x0;_0x5cafea<_0x4a7368[_0x1bf418(0x19d)];_0x5cafea++){if(!_0x349e72[_0x1bf418(0x1a6)](_0x5cafea))continue;_0x236c1b!==-0x1&&_0x5cafea>_0x236c1b+0x1&&_0x21bef5[_0x1bf418(0x1b2)](a211_0x43b408[_0x1bf418(0x1a9)](_0x1bf418(0x1a5)));_0x236c1b=_0x5cafea;const _0x59850a=_0x4a7368[_0x5cafea],_0x30efc5=_0x2aa6a7[_0x5cafea],_0x5e2c4b=_0x30efc5['old']>0x0?String(_0x30efc5[_0x1bf418(0x197)])['padStart'](_0x6ee767):'\x20'[_0x1bf418(0x1ad)](_0x6ee767),_0x358d65=_0x30efc5[_0x1bf418(0x19b)]>0x0?String(_0x30efc5[_0x1bf418(0x19b)])[_0x1bf418(0x1b9)](_0x6ee767):'\x20'[_0x1bf418(0x1ad)](_0x6ee767);switch(_0x59850a[_0x1bf418(0x1b1)]){case _0x1bf418(0x19a):_0x21bef5['push'](a211_0x43b408[_0x1bf418(0x1a4)](_0x5e2c4b+'\x20'+_0x358d65+_0x1bf418(0x19e)+_0x59850a[_0x1bf418(0x1a8)]));break;case _0x1bf418(0x1b5):_0x21bef5[_0x1bf418(0x1b2)](a211_0x43b408['green'](_0x5e2c4b+'\x20'+_0x358d65+_0x1bf418(0x19c)+_0x59850a[_0x1bf418(0x1a8)]));break;default:_0x21bef5['push'](a211_0x43b408[_0x1bf418(0x1af)](_0x5e2c4b+'\x20'+_0x358d65+'\x20\x20\x20'+_0x59850a[_0x1bf418(0x1a8)]));break;}}return _0x21bef5[_0x1bf418(0x196)]('\x0a');}function a211_0x2136(_0x1d396d,_0x148847){_0x1d396d=_0x1d396d-0x195;const _0x17c9e5=a211_0x17c9();let _0x21367b=_0x17c9e5[_0x1d396d];return _0x21367b;}function a211_0x17c9(){const _0x3ddc0c=['push','max','add','added','min','11967QtfdsV','4808CsqYUW','padStart','8739950EKnpCA','size','6032855eoRxkJ','join','old','map','unshift','removed','new','\x20+\x20','length','\x20-\x20','33BXXxmQ','7jLtXee','276812QlOEMb','unchanged','4704741IcpqaI','red','\x20\x20...','has','3118350fYqSMy','content','cyan','split','1068FZNvXB','forEach','repeat','some','dim','11459ysMmMf','type'];a211_0x17c9=function(){return _0x3ddc0c;};return a211_0x17c9();}export function hasChanges(_0x4f042d){const _0xeebbd9=a211_0x2136;return _0x4f042d[_0xeebbd9(0x1ae)](_0x587522=>_0x587522[_0xeebbd9(0x1b1)]!==_0xeebbd9(0x1a2));}
@@ -1 +1 @@
1
- (function(_0x453c75,_0x1438b1){const _0xb34a30=a212_0x49f1,_0x3eb7a2=_0x453c75();while(!![]){try{const _0x15ff88=-parseInt(_0xb34a30(0x1a4))/0x1+parseInt(_0xb34a30(0x1a3))/0x2+parseInt(_0xb34a30(0x19d))/0x3*(-parseInt(_0xb34a30(0x19f))/0x4)+-parseInt(_0xb34a30(0x19a))/0x5+parseInt(_0xb34a30(0x193))/0x6+parseInt(_0xb34a30(0x191))/0x7*(-parseInt(_0xb34a30(0x196))/0x8)+parseInt(_0xb34a30(0x19c))/0x9;if(_0x15ff88===_0x1438b1)break;else _0x3eb7a2['push'](_0x3eb7a2['shift']());}catch(_0xb897c5){_0x3eb7a2['push'](_0x3eb7a2['shift']());}}}(a212_0x427e,0x98176));import*as a212_0x237e3f from'node:fs';function a212_0x427e(){const _0xd0dc9b=['\x20has\x20insecure\x20permissions\x20(','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','839354cJOTHL','496346GnRmOq','15330yKbgLI','Warning:\x20','1747296FZNqpk','mkdirSync','toString','3824VTdKdZ','chmodSync',').\x20','writeFileSync','4285955ndHiay','warn','24104133XHTdVw','39TLiEkm','mode','112556LzkXmG'];a212_0x427e=function(){return _0xd0dc9b;};return a212_0x427e();}import*as a212_0x3201d0 from'node:path';export function setSecureFilePermissions(_0x1b5b3c){const _0x335941=a212_0x49f1;try{a212_0x237e3f[_0x335941(0x197)](_0x1b5b3c,0x180);}catch{console[_0x335941(0x19b)](_0x335941(0x1a2)+_0x1b5b3c);}}function a212_0x49f1(_0x5add46,_0x578519){_0x5add46=_0x5add46-0x191;const _0x427e9f=a212_0x427e();let _0x49f1ea=_0x427e9f[_0x5add46];return _0x49f1ea;}export function setSecureDirectoryPermissions(_0x28f912){const _0x3e0315=a212_0x49f1;try{a212_0x237e3f['chmodSync'](_0x28f912,0x1c0);}catch{console[_0x3e0315(0x19b)](_0x3e0315(0x1a2)+_0x28f912);}}export function createSecureDirectory(_0x2a43f0){const _0x11d703=a212_0x49f1;!a212_0x237e3f[_0x11d703(0x1a1)](_0x2a43f0)&&(a212_0x237e3f[_0x11d703(0x194)](_0x2a43f0,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2a43f0));}export function validateSecureFilePermissions(_0x4c783f){const _0x1bc2ed=a212_0x49f1;try{const _0x530bdb=a212_0x237e3f['statSync'](_0x4c783f),_0x76a13a=_0x530bdb[_0x1bc2ed(0x19e)]&0x1ff,_0x438493=(_0x76a13a&0x3f)!==0x0;if(_0x438493)return console[_0x1bc2ed(0x19b)](_0x1bc2ed(0x192)+_0x4c783f+_0x1bc2ed(0x1a0)+_0x76a13a[_0x1bc2ed(0x195)](0x8)+_0x1bc2ed(0x198)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x836898,_0x23df08){const _0x3a68b9=a212_0x49f1,_0x38ec7c=a212_0x3201d0['dirname'](_0x836898);createSecureDirectory(_0x38ec7c),a212_0x237e3f[_0x3a68b9(0x199)](_0x836898,_0x23df08,{'mode':0x180}),setSecureFilePermissions(_0x836898);}
1
+ (function(_0x35e3b9,_0x5edbf2){const _0x48991a=a212_0x5b3d,_0x407834=_0x35e3b9();while(!![]){try{const _0x152b31=parseInt(_0x48991a(0xad))/0x1*(-parseInt(_0x48991a(0xb6))/0x2)+-parseInt(_0x48991a(0xbd))/0x3+parseInt(_0x48991a(0xb9))/0x4+parseInt(_0x48991a(0xb4))/0x5*(parseInt(_0x48991a(0xb1))/0x6)+parseInt(_0x48991a(0xb2))/0x7*(-parseInt(_0x48991a(0xaa))/0x8)+parseInt(_0x48991a(0xb5))/0x9+parseInt(_0x48991a(0xbc))/0xa*(parseInt(_0x48991a(0xbb))/0xb);if(_0x152b31===_0x5edbf2)break;else _0x407834['push'](_0x407834['shift']());}catch(_0x169169){_0x407834['push'](_0x407834['shift']());}}}(a212_0x1d16,0x90008));function a212_0x5b3d(_0x152c9c,_0x1cf231){_0x152c9c=_0x152c9c-0xaa;const _0x1d168b=a212_0x1d16();let _0x5b3d90=_0x1d168b[_0x152c9c];return _0x5b3d90;}function a212_0x1d16(){const _0x320c16=['mkdirSync','toString','1553106oAOdzQ','3696763dYeUGn','mode','5zYxRiZ','4528359lhCduN','362kZqDlJ','warn','Should\x20be\x200600\x20or\x20more\x20restrictive.','2042388MjYDMe',').\x20','16496689KVJcMM','10OjVhGr','2695107lOGdrz','Warning:\x20','chmodSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','16zPjPTz','writeFileSync','existsSync','1259xUcdIl','dirname'];a212_0x1d16=function(){return _0x320c16;};return a212_0x1d16();}import*as a212_0x4dfc0a from'node:fs';import*as a212_0x4259e1 from'node:path';export function setSecureFilePermissions(_0x1c4ada){const _0x4f0d7d=a212_0x5b3d;try{a212_0x4dfc0a[_0x4f0d7d(0xbf)](_0x1c4ada,0x180);}catch{console[_0x4f0d7d(0xb7)](_0x4f0d7d(0xc0)+_0x1c4ada);}}export function setSecureDirectoryPermissions(_0x197700){const _0x3a95a3=a212_0x5b3d;try{a212_0x4dfc0a['chmodSync'](_0x197700,0x1c0);}catch{console[_0x3a95a3(0xb7)](_0x3a95a3(0xc0)+_0x197700);}}export function createSecureDirectory(_0x26ca35){const _0x56b613=a212_0x5b3d;!a212_0x4dfc0a[_0x56b613(0xac)](_0x26ca35)&&(a212_0x4dfc0a[_0x56b613(0xaf)](_0x26ca35,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x26ca35));}export function validateSecureFilePermissions(_0x5113b4){const _0x3a43ec=a212_0x5b3d;try{const _0x500432=a212_0x4dfc0a['statSync'](_0x5113b4),_0x592dd2=_0x500432[_0x3a43ec(0xb3)]&0x1ff,_0xd886f2=(_0x592dd2&0x3f)!==0x0;if(_0xd886f2)return console[_0x3a43ec(0xb7)](_0x3a43ec(0xbe)+_0x5113b4+'\x20has\x20insecure\x20permissions\x20('+_0x592dd2[_0x3a43ec(0xb0)](0x8)+_0x3a43ec(0xba)+_0x3a43ec(0xb8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x13c547,_0x253157){const _0x2f1217=a212_0x5b3d,_0x25c292=a212_0x4259e1[_0x2f1217(0xae)](_0x13c547);createSecureDirectory(_0x25c292),a212_0x4dfc0a[_0x2f1217(0xab)](_0x13c547,_0x253157,{'mode':0x180}),setSecureFilePermissions(_0x13c547);}
@@ -1 +1 @@
1
- (function(_0x5538b3,_0xf92a8f){const _0x2b2384=a213_0x5ab5,_0x4bfa45=_0x5538b3();while(!![]){try{const _0x59a913=parseInt(_0x2b2384(0x175))/0x1*(parseInt(_0x2b2384(0x181))/0x2)+-parseInt(_0x2b2384(0x16e))/0x3+parseInt(_0x2b2384(0x173))/0x4*(-parseInt(_0x2b2384(0x174))/0x5)+parseInt(_0x2b2384(0x178))/0x6+parseInt(_0x2b2384(0x17f))/0x7*(-parseInt(_0x2b2384(0x17e))/0x8)+parseInt(_0x2b2384(0x16f))/0x9*(-parseInt(_0x2b2384(0x17d))/0xa)+parseInt(_0x2b2384(0x17c))/0xb;if(_0x59a913===_0xf92a8f)break;else _0x4bfa45['push'](_0x4bfa45['shift']());}catch(_0x53a601){_0x4bfa45['push'](_0x4bfa45['shift']());}}}(a213_0x8335,0x22f41));function a213_0x8335(){const _0x26e363=['39681qAfAkg','message','INTERNAL','code','36308WERegD','145wBbtdo','236rUXplY','\x27\x20not\x20found','Permission\x20denied\x20reading\x20file\x20\x27','210456BGVVkF','File\x20\x27','\x27:\x20','EACCES','7050439gTnmRE','40Wnilrj','16cqoIQd','934192hZUWIk','PERMISSION_DENIED','1228apRImr','ENOENT','NOT_FOUND','389937EVgEXU'];a213_0x8335=function(){return _0x26e363;};return a213_0x8335();}import{readFileSync}from'fs';function a213_0x5ab5(_0x486c7a,_0x46b1e7){_0x486c7a=_0x486c7a-0x16e;const _0x8335de=a213_0x8335();let _0x5ab5c8=_0x8335de[_0x486c7a];return _0x5ab5c8;}import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x9b2504){const _0x46ca2b=a213_0x5ab5;try{return readFileSync(_0x9b2504,'utf-8');}catch(_0x52351a){const _0x32ca95=_0x52351a[_0x46ca2b(0x172)];if(_0x32ca95===_0x46ca2b(0x182))throw new SDKError(ErrorCode[_0x46ca2b(0x183)],_0x46ca2b(0x179)+_0x9b2504+_0x46ca2b(0x176),_0x52351a);else{if(_0x32ca95===_0x46ca2b(0x17b))throw new SDKError(ErrorCode[_0x46ca2b(0x180)],_0x46ca2b(0x177)+_0x9b2504+'\x27',_0x52351a);else throw new SDKError(ErrorCode[_0x46ca2b(0x171)],'Error\x20reading\x20file\x20\x27'+_0x9b2504+_0x46ca2b(0x17a)+_0x52351a[_0x46ca2b(0x170)],_0x52351a);}}}
1
+ function a213_0x4a59(){const _0x36e2e6=['12NjQnBd','4768621nRWofA','4645936NQgfnG','\x27\x20not\x20found','14631TsCnMd','Error\x20reading\x20file\x20\x27','message','5929xHXrNz','4292289EItPWi','INTERNAL','EACCES','File\x20\x27','ENOENT','2088180WbiMPo','utf-8','NOT_FOUND','712SrWHGl','\x27:\x20','10YovRZE','66TeIjfd','2307536BRaxhD'];a213_0x4a59=function(){return _0x36e2e6;};return a213_0x4a59();}function a213_0x4e96(_0x28fcd0,_0x4dd8df){_0x28fcd0=_0x28fcd0-0x1da;const _0x4a5999=a213_0x4a59();let _0x4e96e4=_0x4a5999[_0x28fcd0];return _0x4e96e4;}(function(_0x2d936d,_0xdfa9db){const _0x1c540b=a213_0x4e96,_0x58ebd2=_0x2d936d();while(!![]){try{const _0xcda9e4=-parseInt(_0x1c540b(0x1e8))/0x1*(-parseInt(_0x1c540b(0x1df))/0x2)+parseInt(_0x1c540b(0x1e5))/0x3*(parseInt(_0x1c540b(0x1dc))/0x4)+parseInt(_0x1c540b(0x1ee))/0x5*(-parseInt(_0x1c540b(0x1e1))/0x6)+-parseInt(_0x1c540b(0x1e0))/0x7+parseInt(_0x1c540b(0x1e3))/0x8+-parseInt(_0x1c540b(0x1e9))/0x9*(-parseInt(_0x1c540b(0x1de))/0xa)+-parseInt(_0x1c540b(0x1e2))/0xb;if(_0xcda9e4===_0xdfa9db)break;else _0x58ebd2['push'](_0x58ebd2['shift']());}catch(_0x375247){_0x58ebd2['push'](_0x58ebd2['shift']());}}}(a213_0x4a59,0x7faf3));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x42f668){const _0x26327d=a213_0x4e96;try{return readFileSync(_0x42f668,_0x26327d(0x1da));}catch(_0x1caa9a){const _0x4dd77a=_0x1caa9a['code'];if(_0x4dd77a===_0x26327d(0x1ed))throw new SDKError(ErrorCode[_0x26327d(0x1db)],_0x26327d(0x1ec)+_0x42f668+_0x26327d(0x1e4),_0x1caa9a);else{if(_0x4dd77a===_0x26327d(0x1eb))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x42f668+'\x27',_0x1caa9a);else throw new SDKError(ErrorCode[_0x26327d(0x1ea)],_0x26327d(0x1e6)+_0x42f668+_0x26327d(0x1dd)+_0x1caa9a[_0x26327d(0x1e7)],_0x1caa9a);}}}
@@ -1 +1 @@
1
- (function(_0x23aef1,_0x5822f0){const _0x165dd0=a214_0x1c20,_0x32a67c=_0x23aef1();while(!![]){try{const _0x56d891=parseInt(_0x165dd0(0x168))/0x1*(parseInt(_0x165dd0(0x176))/0x2)+-parseInt(_0x165dd0(0x17c))/0x3*(parseInt(_0x165dd0(0x175))/0x4)+parseInt(_0x165dd0(0x162))/0x5+-parseInt(_0x165dd0(0x16d))/0x6*(parseInt(_0x165dd0(0x15f))/0x7)+parseInt(_0x165dd0(0x17b))/0x8+parseInt(_0x165dd0(0x16c))/0x9+-parseInt(_0x165dd0(0x16a))/0xa;if(_0x56d891===_0x5822f0)break;else _0x32a67c['push'](_0x32a67c['shift']());}catch(_0x4818cf){_0x32a67c['push'](_0x32a67c['shift']());}}}(a214_0x4110,0xf088a));import*as a214_0x4f3353 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a214_0x1c20(_0x21cab3,_0x15b7d2){_0x21cab3=_0x21cab3-0x15a;const _0x411088=a214_0x4110();let _0x1c2076=_0x411088[_0x21cab3];return _0x1c2076;}export function fetchGitHubReleases(_0x28f864,_0x153bed,_0x1587fa){const _0x1b2d26=a214_0x1c20,_0x451844=_0x28f864+'/'+_0x153bed,_0x47518a=cache[_0x1b2d26(0x15a)](_0x451844);if(_0x47518a&&Date[_0x1b2d26(0x179)]()-_0x47518a[_0x1b2d26(0x17a)]<CACHE_TTL_MS)return Promise[_0x1b2d26(0x165)](_0x47518a[_0x1b2d26(0x166)]);return new Promise((_0xf96069,_0x5a1517)=>{const _0xfdedf3=_0x1b2d26,_0x39e9da={'hostname':_0xfdedf3(0x15d),'path':_0xfdedf3(0x163)+_0x28f864+'/'+_0x153bed+_0xfdedf3(0x167),'headers':{'User-Agent':_0x1587fa,'Accept':_0xfdedf3(0x16e)},'timeout':REQUEST_TIMEOUT_MS},_0x161b4b=a214_0x4f3353['get'](_0x39e9da,_0x1d394a=>{const _0x314d6b=_0xfdedf3;let _0x321d9f='';_0x1d394a['on'](_0x314d6b(0x174),_0x114f33=>{const _0x1741ca=_0x314d6b;_0x321d9f+=_0x114f33[_0x1741ca(0x170)]();}),_0x1d394a['on'](_0x314d6b(0x16b),()=>{const _0x3ddc61=_0x314d6b;if(_0x1d394a[_0x3ddc61(0x171)]!==0xc8){_0x5a1517(new Error(_0x3ddc61(0x15c)+_0x1d394a[_0x3ddc61(0x171)]+':\x20'+_0x321d9f[_0x3ddc61(0x161)](0x0,0xc8)));return;}try{const _0x3c5e4d=JSON[_0x3ddc61(0x173)](_0x321d9f);cache[_0x3ddc61(0x160)](_0x451844,{'releases':_0x3c5e4d,'fetchedAt':Date['now']()}),_0xf96069(_0x3c5e4d);}catch(_0xe310ee){_0x5a1517(_0xe310ee);}});});_0x161b4b['on'](_0xfdedf3(0x172),()=>{const _0x580a38=_0xfdedf3;_0x161b4b['destroy'](),_0x5a1517(new Error(_0x580a38(0x164)+REQUEST_TIMEOUT_MS+'ms'));}),_0x161b4b['on'](_0xfdedf3(0x16f),_0x5a1517);});}export async function resolveReleaseTag(_0x173937,_0x171b92,_0x44c903,_0x1b1c79){const _0x3cc072=a214_0x1c20;if(_0x173937===_0x3cc072(0x178))return null;const _0x374501=await fetchGitHubReleases(_0x171b92,_0x44c903,_0x1b1c79);if(_0x374501[_0x3cc072(0x177)]===0x0)return null;const _0x39b9a0=_0x374501[_0x3cc072(0x15e)](_0x5e96f8=>!_0x5e96f8[_0x3cc072(0x15b)]);return _0x39b9a0?_0x39b9a0[_0x3cc072(0x169)]:null;}function a214_0x4110(){const _0x3ccc56=['statusCode','timeout','parse','data','24MZQHUv','8174ouvWLG','length','next','now','fetchedAt','2792248nAXIwL','183444FKLdfH','get','prerelease','GitHub\x20API\x20returned\x20','api.github.com','find','35tBCZuL','set','slice','6785190kUlQkK','/repos/','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','resolve','releases','/releases?per_page=20','229eJfbUT','tag_name','12121030BOZHyE','end','16601490YjXeuf','2306862WVIqzG','application/vnd.github+json','error','toString'];a214_0x4110=function(){return _0x3ccc56;};return a214_0x4110();}
1
+ function a214_0x57e9(_0x5161ed,_0x200aa0){_0x5161ed=_0x5161ed-0x1e1;const _0x4a46b1=a214_0x4a46();let _0x57e9fa=_0x4a46b1[_0x5161ed];return _0x57e9fa;}(function(_0x27d371,_0x2cb465){const _0xfb7c5f=a214_0x57e9,_0x58e5c1=_0x27d371();while(!![]){try{const _0x562fb9=-parseInt(_0xfb7c5f(0x1f8))/0x1*(parseInt(_0xfb7c5f(0x1e9))/0x2)+parseInt(_0xfb7c5f(0x1e6))/0x3*(parseInt(_0xfb7c5f(0x1f7))/0x4)+parseInt(_0xfb7c5f(0x1ef))/0x5+parseInt(_0xfb7c5f(0x1e3))/0x6+parseInt(_0xfb7c5f(0x1f4))/0x7+-parseInt(_0xfb7c5f(0x1e2))/0x8*(-parseInt(_0xfb7c5f(0x1f9))/0x9)+-parseInt(_0xfb7c5f(0x1e1))/0xa;if(_0x562fb9===_0x2cb465)break;else _0x58e5c1['push'](_0x58e5c1['shift']());}catch(_0x53dc7c){_0x58e5c1['push'](_0x58e5c1['shift']());}}}(a214_0x4a46,0xc7d1c));import*as a214_0x5bf953 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x373d69,_0x2de0c8,_0x380790){const _0xd38af8=a214_0x57e9,_0x13f852=_0x373d69+'/'+_0x2de0c8,_0x199079=cache[_0xd38af8(0x1ea)](_0x13f852);if(_0x199079&&Date['now']()-_0x199079['fetchedAt']<CACHE_TTL_MS)return Promise[_0xd38af8(0x1e7)](_0x199079['releases']);return new Promise((_0x45408e,_0x2aeebb)=>{const _0x203272=_0xd38af8,_0x409383={'hostname':'api.github.com','path':_0x203272(0x1eb)+_0x373d69+'/'+_0x2de0c8+'/releases?per_page=20','headers':{'User-Agent':_0x380790,'Accept':_0x203272(0x1ed)},'timeout':REQUEST_TIMEOUT_MS},_0x2e61fe=a214_0x5bf953[_0x203272(0x1ea)](_0x409383,_0x5c5ce9=>{const _0x494d24=_0x203272;let _0x7b7cbe='';_0x5c5ce9['on'](_0x494d24(0x1f6),_0x12e1ed=>{const _0x2d7e91=_0x494d24;_0x7b7cbe+=_0x12e1ed[_0x2d7e91(0x1f2)]();}),_0x5c5ce9['on']('end',()=>{const _0xcb1d6f=_0x494d24;if(_0x5c5ce9[_0xcb1d6f(0x1f3)]!==0xc8){_0x2aeebb(new Error(_0xcb1d6f(0x1f5)+_0x5c5ce9[_0xcb1d6f(0x1f3)]+':\x20'+_0x7b7cbe[_0xcb1d6f(0x1ee)](0x0,0xc8)));return;}try{const _0x3b8b94=JSON[_0xcb1d6f(0x1ec)](_0x7b7cbe);cache[_0xcb1d6f(0x1e4)](_0x13f852,{'releases':_0x3b8b94,'fetchedAt':Date['now']()}),_0x45408e(_0x3b8b94);}catch(_0x56a509){_0x2aeebb(_0x56a509);}});});_0x2e61fe['on']('timeout',()=>{const _0x4f4351=_0x203272;_0x2e61fe['destroy'](),_0x2aeebb(new Error(_0x4f4351(0x1e8)+REQUEST_TIMEOUT_MS+'ms'));}),_0x2e61fe['on'](_0x203272(0x1f0),_0x2aeebb);});}export async function resolveReleaseTag(_0x1f77f1,_0xe65036,_0x4183ad,_0x16fa66){const _0x2c6360=a214_0x57e9;if(_0x1f77f1===_0x2c6360(0x1f1))return null;const _0x4848b8=await fetchGitHubReleases(_0xe65036,_0x4183ad,_0x16fa66);if(_0x4848b8['length']===0x0)return null;const _0x48a1e5=_0x4848b8[_0x2c6360(0x1e5)](_0xfe6b66=>!_0xfe6b66['prerelease']);return _0x48a1e5?_0x48a1e5['tag_name']:null;}function a214_0x4a46(){const _0x300f43=['error','next','toString','statusCode','10630417lNjbKM','GitHub\x20API\x20returned\x20','data','17444rQPkND','1OtBwYK','429237IlBrSh','21364920lOahkd','152FHheTu','475386gQwWqb','set','find','597smpjCR','resolve','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2127742RbWDVV','get','/repos/','parse','application/vnd.github+json','slice','3234775Pwhiac'];a214_0x4a46=function(){return _0x300f43;};return a214_0x4a46();}
@@ -1 +1 @@
1
- function a215_0x5b26(_0x3489d5,_0x2a7790){_0x3489d5=_0x3489d5-0xdf;const _0x38b33b=a215_0x38b3();let _0x5b26fa=_0x38b33b[_0x3489d5];return _0x5b26fa;}(function(_0x266508,_0x4c8cff){const _0x218a11=a215_0x5b26,_0xcf0ba=_0x266508();while(!![]){try{const _0x9099a2=parseInt(_0x218a11(0xe7))/0x1+-parseInt(_0x218a11(0xe3))/0x2*(parseInt(_0x218a11(0xe9))/0x3)+parseInt(_0x218a11(0xe8))/0x4*(parseInt(_0x218a11(0xf6))/0x5)+-parseInt(_0x218a11(0xe0))/0x6*(parseInt(_0x218a11(0xea))/0x7)+parseInt(_0x218a11(0xed))/0x8*(-parseInt(_0x218a11(0xf0))/0x9)+parseInt(_0x218a11(0xe1))/0xa*(parseInt(_0x218a11(0xf7))/0xb)+parseInt(_0x218a11(0xf2))/0xc;if(_0x9099a2===_0x4c8cff)break;else _0xcf0ba['push'](_0xcf0ba['shift']());}catch(_0x2d623e){_0xcf0ba['push'](_0xcf0ba['shift']());}}}(a215_0x38b3,0x78168));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x4772a1=a215_0x5b26;return process.env.TDX_CACHE_DIR||join(homedir(),_0x4772a1(0xef),_0x4772a1(0xf4));}const registry=new Map();export function registerGlobalCacheKey(_0x25b564,_0x37e4f1){const _0x3bb5e0=a215_0x5b26,_0x54f1f6=registry['get'](_0x25b564);if(_0x54f1f6&&_0x54f1f6!==_0x37e4f1)throw new Error(_0x3bb5e0(0xf5)+_0x25b564+_0x3bb5e0(0xe2)+_0x54f1f6+_0x3bb5e0(0xe5)+_0x37e4f1+'\x22');registry[_0x3bb5e0(0xe4)](_0x25b564,_0x37e4f1);}export function getGlobalCachePath(_0x2adc02){return join(getGlobalCacheDir(),_0x2adc02);}function ensureGlobalCacheDir(){const _0x846fcf=getGlobalCacheDir();!existsSync(_0x846fcf)&&mkdirSync(_0x846fcf,{'recursive':!![]});}function readCacheJson(_0xf9981){const _0x389dfa=a215_0x5b26,_0x2de2a9=getGlobalCachePath(_0xf9981);if(!existsSync(_0x2de2a9))return undefined;try{const _0x20a1fa=readFileSync(_0x2de2a9,_0x389dfa(0xee));return JSON['parse'](_0x20a1fa);}catch{return undefined;}}function writeCacheJson(_0x316a2f,_0x81ddcf){const _0x1654da=a215_0x5b26;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x316a2f),JSON[_0x1654da(0xe6)](_0x81ddcf,null,0x2),_0x1654da(0xee));}function readCacheText(_0xe3b5d2){const _0x332f03=a215_0x5b26,_0x417010=getGlobalCachePath(_0xe3b5d2);if(!existsSync(_0x417010))return undefined;try{return readFileSync(_0x417010,_0x332f03(0xee));}catch{return undefined;}}function writeCacheText(_0x2befe4,_0x7b42a1){const _0x2817bf=a215_0x5b26;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x2befe4),_0x7b42a1,_0x2817bf(0xee));}function a215_0x38b3(){const _0x31a0cb=['Global\x20cache\x20key\x20\x22','495745ZmOPgK','8662313htHXcu','trim','12lHgMlc','10UGGGku','\x22\x20already\x20registered\x20by\x20\x22','10IVqjmp','set','\x22,\x20cannot\x20register\x20for\x20\x22','stringify','500489QmWomP','12oPHmbT','317103caoUmY','2577407hKrYuH','{profile}','replace','64jQvLnw','utf-8','.cache','501867PWdGEL','default','7409664yPxgiF','clear','tdx'];a215_0x38b3=function(){return _0x31a0cb;};return a215_0x38b3();}function clearCache(_0x53ac68){const _0x40bc12=getGlobalCachePath(_0x53ac68);if(existsSync(_0x40bc12))try{unlinkSync(_0x40bc12);}catch{}}function cacheExists(_0x3bd4d1){return existsSync(getGlobalCachePath(_0x3bd4d1));}export function createGlobalCache(_0x1bcbe4,_0x5617f2){return registerGlobalCacheKey(_0x1bcbe4,_0x5617f2),{'read':()=>readCacheJson(_0x1bcbe4),'write':_0x40999a=>writeCacheJson(_0x1bcbe4,_0x40999a),'clear':()=>clearCache(_0x1bcbe4),'exists':()=>cacheExists(_0x1bcbe4),'path':()=>getGlobalCachePath(_0x1bcbe4)};}export function createGlobalTextCache(_0x2a4cc5,_0x5f2ce3){const _0x484d3e=a215_0x5b26;return registerGlobalCacheKey(_0x2a4cc5,_0x5f2ce3),{'read':()=>readCacheText(_0x2a4cc5)?.[_0x484d3e(0xdf)]()||undefined,'write':_0x40d428=>writeCacheText(_0x2a4cc5,_0x40d428),'clear':()=>clearCache(_0x2a4cc5),'exists':()=>cacheExists(_0x2a4cc5),'path':()=>getGlobalCachePath(_0x2a4cc5)};}export function createProfileCache(_0x239006,_0x1d8a02){const _0x3a0c03=_0xc29602=>{const _0x55009d=a215_0x5b26,_0x5d598c=_0xc29602||_0x55009d(0xf1);return _0x239006[_0x55009d(0xec)](_0x55009d(0xeb),_0x5d598c);};return{'read':_0x56abfd=>{const _0x3174f9=_0x3a0c03(_0x56abfd);return registerGlobalCacheKey(_0x3174f9,_0x1d8a02),readCacheJson(_0x3174f9);},'write':(_0x540ec6,_0x336a55)=>{const _0x23bc27=_0x3a0c03(_0x540ec6);registerGlobalCacheKey(_0x23bc27,_0x1d8a02),writeCacheJson(_0x23bc27,_0x336a55);},'clear':_0x913838=>{const _0x3bb096=_0x3a0c03(_0x913838);clearCache(_0x3bb096);},'exists':_0x3a13a3=>{const _0x2d9b2c=_0x3a0c03(_0x3a13a3);return cacheExists(_0x2d9b2c);},'path':_0x18a3e3=>{const _0x38bbe4=_0x3a0c03(_0x18a3e3);return getGlobalCachePath(_0x38bbe4);}};}export function createOptionalProfileCache(_0x46d94a,_0x3918d2,_0x1300c0={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x1300c0,_0xa3f460=_0x2c039f=>{return _0x2c039f?''+_0x46d94a+profileSeparator+_0x2c039f+suffix:''+_0x46d94a+suffix;};return{'read':_0x2960ca=>{const _0x5a702b=_0xa3f460(_0x2960ca);return registerGlobalCacheKey(_0x5a702b,_0x3918d2),readCacheJson(_0x5a702b);},'write':(_0x3c2572,_0x408313)=>{const _0x2d7f1a=_0xa3f460(_0x408313);registerGlobalCacheKey(_0x2d7f1a,_0x3918d2),writeCacheJson(_0x2d7f1a,_0x3c2572);},'clear':_0x43d04e=>{const _0x4e7fd9=_0xa3f460(_0x43d04e);clearCache(_0x4e7fd9);},'exists':_0x1d7dff=>{const _0x5f3b31=_0xa3f460(_0x1d7dff);return cacheExists(_0x5f3b31);},'path':_0x281afa=>{const _0x4cd62c=_0xa3f460(_0x281afa);return getGlobalCachePath(_0x4cd62c);}};}export function clearGlobalRegistry(){const _0x4ae2bd=a215_0x5b26;registry[_0x4ae2bd(0xf3)]();}
1
+ (function(_0x1290b6,_0x4dafa0){const _0x248b8d=a215_0x2752,_0x2462f4=_0x1290b6();while(!![]){try{const _0x4e8a20=-parseInt(_0x248b8d(0x1d2))/0x1*(parseInt(_0x248b8d(0x1c5))/0x2)+parseInt(_0x248b8d(0x1cc))/0x3+parseInt(_0x248b8d(0x1d1))/0x4+parseInt(_0x248b8d(0x1cf))/0x5+-parseInt(_0x248b8d(0x1c1))/0x6+parseInt(_0x248b8d(0x1c9))/0x7*(parseInt(_0x248b8d(0x1d5))/0x8)+parseInt(_0x248b8d(0x1cb))/0x9;if(_0x4e8a20===_0x4dafa0)break;else _0x2462f4['push'](_0x2462f4['shift']());}catch(_0x4c1fb9){_0x2462f4['push'](_0x2462f4['shift']());}}}(a215_0x546e,0xa29a2));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x3160ec=a215_0x2752;return process.env.TDX_CACHE_DIR||join(homedir(),_0x3160ec(0x1c6),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x42df98,_0x58ec66){const _0x1e1a4d=a215_0x2752,_0x467a4c=registry[_0x1e1a4d(0x1c2)](_0x42df98);if(_0x467a4c&&_0x467a4c!==_0x58ec66)throw new Error(_0x1e1a4d(0x1d0)+_0x42df98+_0x1e1a4d(0x1c0)+_0x467a4c+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x58ec66+'\x22');registry[_0x1e1a4d(0x1ca)](_0x42df98,_0x58ec66);}export function getGlobalCachePath(_0x189daf){return join(getGlobalCacheDir(),_0x189daf);}function ensureGlobalCacheDir(){const _0x29b4a3=getGlobalCacheDir();!existsSync(_0x29b4a3)&&mkdirSync(_0x29b4a3,{'recursive':!![]});}function readCacheJson(_0x3e2592){const _0x2a2c4a=a215_0x2752,_0x282895=getGlobalCachePath(_0x3e2592);if(!existsSync(_0x282895))return undefined;try{const _0x3cf582=readFileSync(_0x282895,_0x2a2c4a(0x1c8));return JSON[_0x2a2c4a(0x1c4)](_0x3cf582);}catch{return undefined;}}function writeCacheJson(_0x46d9de,_0x320708){const _0xb98f33=a215_0x2752;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x46d9de),JSON[_0xb98f33(0x1ce)](_0x320708,null,0x2),_0xb98f33(0x1c8));}function readCacheText(_0x43561b){const _0x3b4883=getGlobalCachePath(_0x43561b);if(!existsSync(_0x3b4883))return undefined;try{return readFileSync(_0x3b4883,'utf-8');}catch{return undefined;}}function writeCacheText(_0x4ed4fc,_0x421b19){const _0x45e78a=a215_0x2752;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4ed4fc),_0x421b19,_0x45e78a(0x1c8));}function clearCache(_0x5871bf){const _0x180fee=getGlobalCachePath(_0x5871bf);if(existsSync(_0x180fee))try{unlinkSync(_0x180fee);}catch{}}function cacheExists(_0x4b1c0e){return existsSync(getGlobalCachePath(_0x4b1c0e));}export function createGlobalCache(_0x561508,_0x3c93b1){return registerGlobalCacheKey(_0x561508,_0x3c93b1),{'read':()=>readCacheJson(_0x561508),'write':_0x9a0dc8=>writeCacheJson(_0x561508,_0x9a0dc8),'clear':()=>clearCache(_0x561508),'exists':()=>cacheExists(_0x561508),'path':()=>getGlobalCachePath(_0x561508)};}function a215_0x2752(_0x283c38,_0x40fa03){_0x283c38=_0x283c38-0x1c0;const _0x546eed=a215_0x546e();let _0x2752a9=_0x546eed[_0x283c38];return _0x2752a9;}export function createGlobalTextCache(_0x8cce83,_0x55bed7){const _0x14d35b=a215_0x2752;return registerGlobalCacheKey(_0x8cce83,_0x55bed7),{'read':()=>readCacheText(_0x8cce83)?.[_0x14d35b(0x1cd)]()||undefined,'write':_0x315ca1=>writeCacheText(_0x8cce83,_0x315ca1),'clear':()=>clearCache(_0x8cce83),'exists':()=>cacheExists(_0x8cce83),'path':()=>getGlobalCachePath(_0x8cce83)};}export function createProfileCache(_0x42f332,_0x16bb5f){const _0x2adbe4=_0x55af4b=>{const _0x4b20f4=a215_0x2752,_0x12c699=_0x55af4b||_0x4b20f4(0x1d3);return _0x42f332[_0x4b20f4(0x1d4)](_0x4b20f4(0x1c3),_0x12c699);};return{'read':_0x3c65f3=>{const _0x18a934=_0x2adbe4(_0x3c65f3);return registerGlobalCacheKey(_0x18a934,_0x16bb5f),readCacheJson(_0x18a934);},'write':(_0x20df2c,_0x4f9807)=>{const _0x2a87ef=_0x2adbe4(_0x20df2c);registerGlobalCacheKey(_0x2a87ef,_0x16bb5f),writeCacheJson(_0x2a87ef,_0x4f9807);},'clear':_0x37b981=>{const _0xb3247e=_0x2adbe4(_0x37b981);clearCache(_0xb3247e);},'exists':_0x448def=>{const _0x3c99d3=_0x2adbe4(_0x448def);return cacheExists(_0x3c99d3);},'path':_0x3babd7=>{const _0x1afd48=_0x2adbe4(_0x3babd7);return getGlobalCachePath(_0x1afd48);}};}export function createOptionalProfileCache(_0x9c2a58,_0x3640c3,_0x2833be={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2833be,_0x6efb51=_0x4b1a21=>{return _0x4b1a21?''+_0x9c2a58+profileSeparator+_0x4b1a21+suffix:''+_0x9c2a58+suffix;};return{'read':_0x3db107=>{const _0x493e7c=_0x6efb51(_0x3db107);return registerGlobalCacheKey(_0x493e7c,_0x3640c3),readCacheJson(_0x493e7c);},'write':(_0x1fe598,_0x480981)=>{const _0x2517e3=_0x6efb51(_0x480981);registerGlobalCacheKey(_0x2517e3,_0x3640c3),writeCacheJson(_0x2517e3,_0x1fe598);},'clear':_0x1f9a8d=>{const _0x16ddb1=_0x6efb51(_0x1f9a8d);clearCache(_0x16ddb1);},'exists':_0x2757d3=>{const _0x18a28c=_0x6efb51(_0x2757d3);return cacheExists(_0x18a28c);},'path':_0x40bad9=>{const _0x1a4324=_0x6efb51(_0x40bad9);return getGlobalCachePath(_0x1a4324);}};}export function clearGlobalRegistry(){const _0x2ee5eb=a215_0x2752;registry[_0x2ee5eb(0x1c7)]();}function a215_0x546e(){const _0xb7dd30=['51296gXDaLE','set','12052161BltwCS','1324272pxeJSb','trim','stringify','6078820FOmSHe','Global\x20cache\x20key\x20\x22','756836CsUnRo','16222rrHUUV','default','replace','16onizyp','\x22\x20already\x20registered\x20by\x20\x22','7515756TqDlBQ','get','{profile}','parse','158NAszkw','.cache','clear','utf-8'];a215_0x546e=function(){return _0xb7dd30;};return a215_0x546e();}
@@ -1 +1 @@
1
- function a216_0x2c38(_0x18a78a,_0x5533f7){_0x18a78a=_0x18a78a-0x113;const _0x5ec5a9=a216_0x5ec5();let _0x2c3889=_0x5ec5a9[_0x18a78a];return _0x2c3889;}(function(_0xbd4661,_0x44a7cb){const _0x195daf=a216_0x2c38,_0x40957e=_0xbd4661();while(!![]){try{const _0x293615=parseInt(_0x195daf(0x124))/0x1+parseInt(_0x195daf(0x123))/0x2+-parseInt(_0x195daf(0x125))/0x3+-parseInt(_0x195daf(0x121))/0x4+-parseInt(_0x195daf(0x117))/0x5+parseInt(_0x195daf(0x116))/0x6+parseInt(_0x195daf(0x115))/0x7;if(_0x293615===_0x44a7cb)break;else _0x40957e['push'](_0x40957e['shift']());}catch(_0xa63bc1){_0x40957e['push'](_0x40957e['shift']());}}}(a216_0x5ec5,0xa8ad6));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x27f487,_0x45938e){const _0x540c1b=a216_0x2c38;try{if(_0x45938e){const _0x3868b2=await readFile(_0x27f487,_0x540c1b(0x120));try{return JSON['parse'](_0x3868b2);}catch(_0x50368d){throw new SDKError(ErrorCode[_0x540c1b(0x11b)],_0x540c1b(0x11d)+_0x27f487+_0x540c1b(0x11e)+(_0x50368d instanceof Error?_0x50368d['message']:String(_0x50368d)));}}else try{return JSON['parse'](_0x27f487);}catch(_0x12f2fe){throw new SDKError(ErrorCode[_0x540c1b(0x11b)],_0x540c1b(0x114)+(_0x12f2fe instanceof Error?_0x12f2fe[_0x540c1b(0x118)]:String(_0x12f2fe)));}}catch(_0x2bd0c4){if(_0x2bd0c4 instanceof SDKError)throw _0x2bd0c4;if(_0x2bd0c4 instanceof Error&&_0x540c1b(0x11c)in _0x2bd0c4){const _0x25e5f2=_0x2bd0c4;if(_0x25e5f2[_0x540c1b(0x11c)]===_0x540c1b(0x11f))throw new SDKError(ErrorCode[_0x540c1b(0x122)],'File\x20not\x20found:\x20'+_0x27f487);else{if(_0x25e5f2[_0x540c1b(0x11c)]===_0x540c1b(0x113))throw new SDKError(ErrorCode[_0x540c1b(0x11a)],'Permission\x20denied\x20reading\x20file:\x20'+_0x27f487);}}throw new SDKError(ErrorCode['INTERNAL'],_0x540c1b(0x126)+(_0x2bd0c4 instanceof Error?_0x2bd0c4[_0x540c1b(0x118)]:String(_0x2bd0c4)));}}function a216_0x5ec5(){const _0x58d800=['1185962kLkURh','110882LSlpEb','2986458AOOmJr','Failed\x20to\x20load\x20JSON:\x20','EACCES','Invalid\x20JSON\x20string:\x20','20605627NtFteD','4560456mIaiOx','6773680kGbmRW','message','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','PERMISSION_DENIED','INVALID_ARGUMENT','code','Invalid\x20JSON\x20in\x20file\x20\x27','\x27:\x20','ENOENT','utf-8','5465904ECgIyx','NOT_FOUND'];a216_0x5ec5=function(){return _0x58d800;};return a216_0x5ec5();}export async function loadJSONFromOptions(_0x306325,_0x53715a){const _0x20aff5=a216_0x2c38;if(_0x306325&&_0x53715a)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x20aff5(0x119));if(_0x306325)return await loadJSON(_0x306325,![]);if(_0x53715a)return await loadJSON(_0x53715a,!![]);return undefined;}
1
+ (function(_0x36f8bf,_0x56bbca){const _0x1432ee=a216_0x342a,_0x2aaf09=_0x36f8bf();while(!![]){try{const _0x380718=-parseInt(_0x1432ee(0x1dc))/0x1+-parseInt(_0x1432ee(0x1e2))/0x2+parseInt(_0x1432ee(0x1db))/0x3+parseInt(_0x1432ee(0x1ea))/0x4*(parseInt(_0x1432ee(0x1d8))/0x5)+parseInt(_0x1432ee(0x1e9))/0x6+-parseInt(_0x1432ee(0x1e5))/0x7+-parseInt(_0x1432ee(0x1e3))/0x8;if(_0x380718===_0x56bbca)break;else _0x2aaf09['push'](_0x2aaf09['shift']());}catch(_0x2816af){_0x2aaf09['push'](_0x2aaf09['shift']());}}}(a216_0x3738,0x9991a));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a216_0x342a(_0x1e23e2,_0x555e9a){_0x1e23e2=_0x1e23e2-0x1d5;const _0x3738d0=a216_0x3738();let _0x342ab4=_0x3738d0[_0x1e23e2];return _0x342ab4;}export async function loadJSON(_0x53372b,_0x279ca6){const _0x14360d=a216_0x342a;try{if(_0x279ca6){const _0x592263=await readFile(_0x53372b,_0x14360d(0x1da));try{return JSON[_0x14360d(0x1d9)](_0x592263);}catch(_0x59638f){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x53372b+'\x27:\x20'+(_0x59638f instanceof Error?_0x59638f['message']:String(_0x59638f)));}}else try{return JSON[_0x14360d(0x1d9)](_0x53372b);}catch(_0x1e5f0f){throw new SDKError(ErrorCode[_0x14360d(0x1e7)],'Invalid\x20JSON\x20string:\x20'+(_0x1e5f0f instanceof Error?_0x1e5f0f[_0x14360d(0x1e4)]:String(_0x1e5f0f)));}}catch(_0x215d72){if(_0x215d72 instanceof SDKError)throw _0x215d72;if(_0x215d72 instanceof Error&&_0x14360d(0x1d7)in _0x215d72){const _0x240314=_0x215d72;if(_0x240314[_0x14360d(0x1d7)]===_0x14360d(0x1dd))throw new SDKError(ErrorCode[_0x14360d(0x1e8)],_0x14360d(0x1de)+_0x53372b);else{if(_0x240314[_0x14360d(0x1d7)]===_0x14360d(0x1d6))throw new SDKError(ErrorCode[_0x14360d(0x1e1)],_0x14360d(0x1d5)+_0x53372b);}}throw new SDKError(ErrorCode[_0x14360d(0x1e0)],_0x14360d(0x1e6)+(_0x215d72 instanceof Error?_0x215d72[_0x14360d(0x1e4)]:String(_0x215d72)));}}export async function loadJSONFromOptions(_0x599766,_0x31f670){const _0x44d37d=a216_0x342a;if(_0x599766&&_0x31f670)throw new SDKError(ErrorCode[_0x44d37d(0x1e7)],_0x44d37d(0x1df));if(_0x599766)return await loadJSON(_0x599766,![]);if(_0x31f670)return await loadJSON(_0x31f670,!![]);return undefined;}function a216_0x3738(){const _0x39da9a=['File\x20not\x20found:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INTERNAL','PERMISSION_DENIED','1007294ethXtu','5723816PoafHg','message','5303123SlrEQK','Failed\x20to\x20load\x20JSON:\x20','INVALID_ARGUMENT','NOT_FOUND','4421646KAacaO','4758788OloUpa','Permission\x20denied\x20reading\x20file:\x20','EACCES','code','5VDeCFY','parse','utf-8','3251841IgAVFu','404854OCgDfv','ENOENT'];a216_0x3738=function(){return _0x39da9a;};return a216_0x3738();}
@@ -1 +1 @@
1
- const a217_0x11ac52=a217_0x3841;(function(_0x558680,_0x1fc5b2){const _0x453fc8=a217_0x3841,_0x4f5f03=_0x558680();while(!![]){try{const _0x1bc825=parseInt(_0x453fc8(0xe2))/0x1+parseInt(_0x453fc8(0xd9))/0x2+parseInt(_0x453fc8(0xe5))/0x3+-parseInt(_0x453fc8(0xde))/0x4*(parseInt(_0x453fc8(0xd8))/0x5)+parseInt(_0x453fc8(0xdf))/0x6+-parseInt(_0x453fc8(0xe4))/0x7*(-parseInt(_0x453fc8(0xe1))/0x8)+-parseInt(_0x453fc8(0xda))/0x9;if(_0x1bc825===_0x1fc5b2)break;else _0x4f5f03['push'](_0x4f5f03['shift']());}catch(_0xdbd9d){_0x4f5f03['push'](_0x4f5f03['shift']());}}}(a217_0x13e1,0x8d030));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a217_0x11ac52(0xe3),registry=new Map();export function registerCacheKey(_0x5ca821,_0x3a6e3b){const _0x2108f9=a217_0x11ac52,_0x5f4b1a=registry[_0x2108f9(0xe7)](_0x5ca821);if(_0x5f4b1a&&_0x5f4b1a!==_0x3a6e3b)throw new Error('Cache\x20key\x20\x22'+_0x5ca821+_0x2108f9(0xdc)+_0x5f4b1a+_0x2108f9(0xdd)+_0x3a6e3b+'\x22');registry[_0x2108f9(0xe8)](_0x5ca821,_0x3a6e3b);}export function getCacheDir(){const _0x53f119=a217_0x11ac52,_0x34e90b=process[_0x53f119(0xe9)](),_0x384f8c=_0x34e90b===parse(_0x34e90b)[_0x53f119(0xd6)]?homedir():_0x34e90b;return join(_0x384f8c,LOCAL_CACHE_DIR);}function a217_0x3841(_0xb28556,_0x42c9b0){_0xb28556=_0xb28556-0xd5;const _0x13e11c=a217_0x13e1();let _0x384191=_0x13e11c[_0xb28556];return _0x384191;}export function getCachePath(_0x56b9c7){return join(getCacheDir(),_0x56b9c7);}function ensureCacheDir(){const _0x413f88=getCacheDir();!existsSync(_0x413f88)&&mkdirSync(_0x413f88,{'recursive':!![]});}function readCacheJson(_0x1dd577){const _0xb05632=a217_0x11ac52,_0x10c6ce=getCachePath(_0x1dd577);if(!existsSync(_0x10c6ce))return undefined;try{const _0x580051=readFileSync(_0x10c6ce,_0xb05632(0xe0));return JSON[_0xb05632(0xdb)](_0x580051);}catch{return undefined;}}function writeCacheJson(_0x1f66a6,_0x1148b6){const _0x2de9db=a217_0x11ac52;ensureCacheDir(),writeFileSync(getCachePath(_0x1f66a6),JSON[_0x2de9db(0xd7)](_0x1148b6,null,0x2),_0x2de9db(0xe0));}function readCacheText(_0x37b963){const _0xe1a1da=a217_0x11ac52,_0x1c57ed=getCachePath(_0x37b963);if(!existsSync(_0x1c57ed))return undefined;try{return readFileSync(_0x1c57ed,_0xe1a1da(0xe0));}catch{return undefined;}}function writeCacheText(_0x2d2879,_0x2b73e3){const _0x9b450c=a217_0x11ac52;ensureCacheDir(),writeFileSync(getCachePath(_0x2d2879),_0x2b73e3,_0x9b450c(0xe0));}function a217_0x13e1(){const _0xeade45=['cwd','clear','root','stringify','5jmxvfZ','1191606rXXXRC','10968453ipsJig','parse','\x22\x20already\x20registered\x20by\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','2811516zlacqW','1479438FFUAvE','utf-8','48eHTrTm','684023MGABAT','.cache/tdx','465374qyuMVL','1721667BjxLtC','trim','get','set'];a217_0x13e1=function(){return _0xeade45;};return a217_0x13e1();}function clearCache(_0x43ce60){const _0x1313a1=getCachePath(_0x43ce60);if(existsSync(_0x1313a1))try{unlinkSync(_0x1313a1);}catch{}}function cacheExists(_0x2f89a8){return existsSync(getCachePath(_0x2f89a8));}export function createCache(_0x126319,_0x5eebf8){return registerCacheKey(_0x126319,_0x5eebf8),{'read':()=>readCacheJson(_0x126319),'write':_0x1a258f=>writeCacheJson(_0x126319,_0x1a258f),'clear':()=>clearCache(_0x126319),'exists':()=>cacheExists(_0x126319),'path':()=>getCachePath(_0x126319)};}export function createTextCache(_0x17ce37,_0x2431c5){const _0x3520c9=a217_0x11ac52;return registerCacheKey(_0x17ce37,_0x2431c5),{'read':()=>readCacheText(_0x17ce37)?.[_0x3520c9(0xe6)]()||undefined,'write':_0x51d2e3=>writeCacheText(_0x17ce37,_0x51d2e3),'clear':()=>clearCache(_0x17ce37),'exists':()=>cacheExists(_0x17ce37),'path':()=>getCachePath(_0x17ce37)};}export function clearRegistry(){const _0x4bdbb3=a217_0x11ac52;registry[_0x4bdbb3(0xd5)]();}
1
+ (function(_0x2b1da9,_0x3c8ae7){const _0x4a717e=a217_0x5cf5,_0x2943dc=_0x2b1da9();while(!![]){try{const _0x193eb9=parseInt(_0x4a717e(0xd6))/0x1*(parseInt(_0x4a717e(0xd1))/0x2)+parseInt(_0x4a717e(0xe3))/0x3*(-parseInt(_0x4a717e(0xd2))/0x4)+-parseInt(_0x4a717e(0xcf))/0x5*(parseInt(_0x4a717e(0xdf))/0x6)+parseInt(_0x4a717e(0xe0))/0x7*(parseInt(_0x4a717e(0xd4))/0x8)+-parseInt(_0x4a717e(0xdb))/0x9+parseInt(_0x4a717e(0xcd))/0xa+-parseInt(_0x4a717e(0xd3))/0xb*(parseInt(_0x4a717e(0xda))/0xc);if(_0x193eb9===_0x3c8ae7)break;else _0x2943dc['push'](_0x2943dc['shift']());}catch(_0x4e3d8c){_0x2943dc['push'](_0x2943dc['shift']());}}}(a217_0x5bfb,0x477d7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x4910ca,_0x2f7c6b){const _0x213d31=a217_0x5cf5,_0x4bebea=registry[_0x213d31(0xd7)](_0x4910ca);if(_0x4bebea&&_0x4bebea!==_0x2f7c6b)throw new Error(_0x213d31(0xde)+_0x4910ca+_0x213d31(0xe2)+_0x4bebea+_0x213d31(0xd9)+_0x2f7c6b+'\x22');registry[_0x213d31(0xd0)](_0x4910ca,_0x2f7c6b);}function a217_0x5bfb(){const _0x2dddf2=['1355nxVIKX','set','14aPDQmG','143932vsMnKI','7403nydoub','224bRkMwL','stringify','77523iyDgSr','get','cwd','\x22,\x20cannot\x20register\x20for\x20\x22','4188keQIjq','3492810HVBeYU','trim','utf-8','Cache\x20key\x20\x22','858PZuHux','131859iCHKYn','root','\x22\x20already\x20registered\x20by\x20\x22','36sLuUKc','parse','3162420qNtQjm','clear'];a217_0x5bfb=function(){return _0x2dddf2;};return a217_0x5bfb();}export function getCacheDir(){const _0x527f2f=a217_0x5cf5,_0x563a18=process[_0x527f2f(0xd8)](),_0x1dc5f9=_0x563a18===parse(_0x563a18)[_0x527f2f(0xe1)]?homedir():_0x563a18;return join(_0x1dc5f9,LOCAL_CACHE_DIR);}export function getCachePath(_0x40f54d){return join(getCacheDir(),_0x40f54d);}function ensureCacheDir(){const _0xb409b8=getCacheDir();!existsSync(_0xb409b8)&&mkdirSync(_0xb409b8,{'recursive':!![]});}function readCacheJson(_0x2101f5){const _0x5eb86c=a217_0x5cf5,_0x523b95=getCachePath(_0x2101f5);if(!existsSync(_0x523b95))return undefined;try{const _0x240762=readFileSync(_0x523b95,'utf-8');return JSON[_0x5eb86c(0xe4)](_0x240762);}catch{return undefined;}}function writeCacheJson(_0x49d44c,_0x3992e0){const _0xb91ebe=a217_0x5cf5;ensureCacheDir(),writeFileSync(getCachePath(_0x49d44c),JSON[_0xb91ebe(0xd5)](_0x3992e0,null,0x2),'utf-8');}function readCacheText(_0x26f9c0){const _0x53e831=getCachePath(_0x26f9c0);if(!existsSync(_0x53e831))return undefined;try{return readFileSync(_0x53e831,'utf-8');}catch{return undefined;}}function writeCacheText(_0x16ad9b,_0x55337a){const _0x5e9cd4=a217_0x5cf5;ensureCacheDir(),writeFileSync(getCachePath(_0x16ad9b),_0x55337a,_0x5e9cd4(0xdd));}function a217_0x5cf5(_0xf49d8,_0x5b7bcc){_0xf49d8=_0xf49d8-0xcd;const _0x5bfb95=a217_0x5bfb();let _0x5cf579=_0x5bfb95[_0xf49d8];return _0x5cf579;}function clearCache(_0x4a1e81){const _0x26aa14=getCachePath(_0x4a1e81);if(existsSync(_0x26aa14))try{unlinkSync(_0x26aa14);}catch{}}function cacheExists(_0x48c887){return existsSync(getCachePath(_0x48c887));}export function createCache(_0x208029,_0x3efc4c){return registerCacheKey(_0x208029,_0x3efc4c),{'read':()=>readCacheJson(_0x208029),'write':_0x1c9451=>writeCacheJson(_0x208029,_0x1c9451),'clear':()=>clearCache(_0x208029),'exists':()=>cacheExists(_0x208029),'path':()=>getCachePath(_0x208029)};}export function createTextCache(_0x35d237,_0x14a6c1){const _0x259cf4=a217_0x5cf5;return registerCacheKey(_0x35d237,_0x14a6c1),{'read':()=>readCacheText(_0x35d237)?.[_0x259cf4(0xdc)]()||undefined,'write':_0x22db5e=>writeCacheText(_0x35d237,_0x22db5e),'clear':()=>clearCache(_0x35d237),'exists':()=>cacheExists(_0x35d237),'path':()=>getCachePath(_0x35d237)};}export function clearRegistry(){const _0x3ed924=a217_0x5cf5;registry[_0x3ed924(0xce)]();}
@@ -1 +1 @@
1
- const a218_0x2b7dd1=a218_0x22c4;(function(_0x16f405,_0x233845){const _0x3aaee8=a218_0x22c4,_0x59ef9c=_0x16f405();while(!![]){try{const _0x2cb75b=parseInt(_0x3aaee8(0x10e))/0x1*(parseInt(_0x3aaee8(0xff))/0x2)+-parseInt(_0x3aaee8(0x105))/0x3+-parseInt(_0x3aaee8(0x10f))/0x4+-parseInt(_0x3aaee8(0x106))/0x5*(-parseInt(_0x3aaee8(0x112))/0x6)+parseInt(_0x3aaee8(0x111))/0x7*(-parseInt(_0x3aaee8(0x110))/0x8)+-parseInt(_0x3aaee8(0x101))/0x9*(-parseInt(_0x3aaee8(0xf6))/0xa)+-parseInt(_0x3aaee8(0x102))/0xb*(-parseInt(_0x3aaee8(0x10a))/0xc);if(_0x2cb75b===_0x233845)break;else _0x59ef9c['push'](_0x59ef9c['shift']());}catch(_0x5e5858){_0x59ef9c['push'](_0x59ef9c['shift']());}}}(a218_0x2e4a,0x5a7f8));function a218_0x22c4(_0x525807,_0x26cb38){_0x525807=_0x525807-0xf6;const _0x2e4a37=a218_0x2e4a();let _0x22c45d=_0x2e4a37[_0x525807];return _0x22c45d;}import a218_0x47033e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x47033e,ChalkClass=chalkModule['Chalk']||chalkModule[a218_0x2b7dd1(0x104)]?.[a218_0x2b7dd1(0x108)];function a218_0x2e4a(){const _0x1d49e4=['timestamp','15324VhIEdb','WARN','chalk','green','12632FOHIEF','1999732XCGjam','904DGTILW','40733cffHIx','6mKteRy','13910TlVBgd','gray','message','colorLevel','blue','format','colors','INFO','component','92QvMoBI','DEBUG','333VBagDb','10505pLXgHu','yellow','default','1675404YEDhSt','1172770hUzBiC','level','Chalk'];a218_0x2e4a=function(){return _0x1d49e4;};return a218_0x2e4a();}export class DefaultLogFormatter{[a218_0x2b7dd1(0xfc)];[a218_0x2b7dd1(0x10c)];constructor(_0x40a676={}){const _0x23f08b=a218_0x2b7dd1;this[_0x23f08b(0xfc)]=_0x40a676[_0x23f08b(0xfc)]??![],this[_0x23f08b(0x10c)]=_0x40a676[_0x23f08b(0xfc)]&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x47033e;}[a218_0x2b7dd1(0xfb)](_0x3bfb35){const _0x58267b=a218_0x2b7dd1,_0x3e256f=formatTimestamp(_0x3bfb35[_0x58267b(0x109)]),_0x1458a6=logLevelToString(_0x3bfb35['level']);if(!this[_0x58267b(0xfc)])return _0x3e256f+'\x20['+_0x1458a6+']\x20['+_0x3bfb35['component']+']\x20'+_0x3bfb35[_0x58267b(0xf8)];const _0x2b52e1=this[_0x58267b(0x10c)]['dim'](_0x3e256f),_0xd885b4=this[_0x58267b(0xf9)](_0x1458a6,_0x3bfb35[_0x58267b(0x107)]),_0x386777=this[_0x58267b(0x10c)][_0x58267b(0xfa)]('['+_0x3bfb35[_0x58267b(0xfe)]+']');return _0x2b52e1+'\x20'+_0xd885b4+'\x20'+_0x386777+'\x20'+_0x3bfb35[_0x58267b(0xf8)];}[a218_0x2b7dd1(0xf9)](_0x637f8d,_0x37898f){const _0x215165=a218_0x2b7dd1;switch(_0x37898f){case LogLevel['TRACE']:return this[_0x215165(0x10c)][_0x215165(0xf7)]('['+_0x637f8d+']');case LogLevel[_0x215165(0x100)]:return this[_0x215165(0x10c)][_0x215165(0x10d)]('['+_0x637f8d+']');case LogLevel[_0x215165(0xfd)]:return this[_0x215165(0x10c)]['cyan']('['+_0x637f8d+']');case LogLevel[_0x215165(0x10b)]:return this[_0x215165(0x10c)][_0x215165(0x103)]('['+_0x637f8d+']');case LogLevel['ERROR']:return this[_0x215165(0x10c)]['red']('['+_0x637f8d+']');default:return'['+_0x637f8d+']';}}}
1
+ const a218_0x847efb=a218_0x59cd;(function(_0x12bd86,_0x180fbf){const _0x216d5b=a218_0x59cd,_0x5914c7=_0x12bd86();while(!![]){try{const _0x14650f=-parseInt(_0x216d5b(0xb0))/0x1+parseInt(_0x216d5b(0xb5))/0x2+-parseInt(_0x216d5b(0xad))/0x3+parseInt(_0x216d5b(0xaf))/0x4+-parseInt(_0x216d5b(0xc4))/0x5+-parseInt(_0x216d5b(0xc1))/0x6+parseInt(_0x216d5b(0xba))/0x7;if(_0x14650f===_0x180fbf)break;else _0x5914c7['push'](_0x5914c7['shift']());}catch(_0x289fdc){_0x5914c7['push'](_0x5914c7['shift']());}}}(a218_0x4f92,0x3f347));function a218_0x59cd(_0xd57a8e,_0x9dd1bc){_0xd57a8e=_0xd57a8e-0xad;const _0x4f9254=a218_0x4f92();let _0x59cd6b=_0x4f9254[_0xd57a8e];return _0x59cd6b;}import a218_0x3207d0 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a218_0x3207d0,ChalkClass=chalkModule['Chalk']||chalkModule[a218_0x847efb(0xc0)]?.[a218_0x847efb(0xbe)];export class DefaultLogFormatter{[a218_0x847efb(0xb1)];[a218_0x847efb(0xbf)];constructor(_0x293561={}){this['colors']=_0x293561['colors']??![],this['chalk']=_0x293561['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a218_0x3207d0;}['format'](_0x531195){const _0x536277=a218_0x847efb,_0x4b0fea=formatTimestamp(_0x531195[_0x536277(0xb4)]),_0x170ec3=logLevelToString(_0x531195[_0x536277(0xae)]);if(!this['colors'])return _0x4b0fea+'\x20['+_0x170ec3+_0x536277(0xb2)+_0x531195['component']+']\x20'+_0x531195[_0x536277(0xbc)];const _0x28c67f=this[_0x536277(0xbf)]['dim'](_0x4b0fea),_0x40e606=this['colorLevel'](_0x170ec3,_0x531195[_0x536277(0xae)]),_0x4e438e=this[_0x536277(0xbf)]['blue']('['+_0x531195[_0x536277(0xc6)]+']');return _0x28c67f+'\x20'+_0x40e606+'\x20'+_0x4e438e+'\x20'+_0x531195[_0x536277(0xbc)];}[a218_0x847efb(0xb6)](_0x465c4a,_0x56acbd){const _0x30bfa3=a218_0x847efb;switch(_0x56acbd){case LogLevel[_0x30bfa3(0xbd)]:return this['chalk'][_0x30bfa3(0xc5)]('['+_0x465c4a+']');case LogLevel[_0x30bfa3(0xb3)]:return this[_0x30bfa3(0xbf)][_0x30bfa3(0xbb)]('['+_0x465c4a+']');case LogLevel[_0x30bfa3(0xb9)]:return this['chalk'][_0x30bfa3(0xc3)]('['+_0x465c4a+']');case LogLevel[_0x30bfa3(0xb8)]:return this['chalk'][_0x30bfa3(0xc2)]('['+_0x465c4a+']');case LogLevel[_0x30bfa3(0xb7)]:return this[_0x30bfa3(0xbf)]['red']('['+_0x465c4a+']');default:return'['+_0x465c4a+']';}}}function a218_0x4f92(){const _0x5c6170=['DEBUG','timestamp','738286MJaHnY','colorLevel','ERROR','WARN','INFO','8319549OwIyTv','green','message','TRACE','Chalk','chalk','default','2911488fmKYjn','yellow','cyan','686565owZrbY','gray','component','567321zLrbJj','level','13432XpNnOz','490453UasAMr','colors',']\x20['];a218_0x4f92=function(){return _0x5c6170;};return a218_0x4f92();}
@@ -1 +1 @@
1
- function a219_0x1724(_0x25c52c,_0x595e66){_0x25c52c=_0x25c52c-0x79;var _0x353e62=a219_0x353e();var _0x17240f=_0x353e62[_0x25c52c];return _0x17240f;}(function(_0x5b2a0f,_0x33c2dc){var _0xe36866=a219_0x1724,_0x26bfd7=_0x5b2a0f();while(!![]){try{var _0x1f3fa8=parseInt(_0xe36866(0x7b))/0x1*(parseInt(_0xe36866(0x79))/0x2)+-parseInt(_0xe36866(0x82))/0x3*(parseInt(_0xe36866(0x7d))/0x4)+parseInt(_0xe36866(0x7a))/0x5+parseInt(_0xe36866(0x7f))/0x6*(parseInt(_0xe36866(0x81))/0x7)+-parseInt(_0xe36866(0x7e))/0x8+-parseInt(_0xe36866(0x83))/0x9*(parseInt(_0xe36866(0x80))/0xa)+parseInt(_0xe36866(0x7c))/0xb;if(_0x1f3fa8===_0x33c2dc)break;else _0x26bfd7['push'](_0x26bfd7['shift']());}catch(_0x3d7b1f){_0x26bfd7['push'](_0x26bfd7['shift']());}}}(a219_0x353e,0x7917a));export{DefaultLogFormatter}from'./default-formatter.js';function a219_0x353e(){var _0x3bf87a=['138rkgoSK','7764290qeZnOA','149303NErjVp','1447683kVkhTm','9EUmEki','16754LZCIHf','4509305WnWJlL','33DSsZbK','3094102naRnnQ','4LZKFrl','1561336gcCKAB'];a219_0x353e=function(){return _0x3bf87a;};return a219_0x353e();}
1
+ function a219_0xe186(){var _0x434608=['4960550VsZFCw','7XsTzzK','232710AlLodX','184840TXjuHF','488516QWOhKY','608265HqeFer','759310FgehLc','88289dPMAbG','18TClXCI','14ZtJFfk'];a219_0xe186=function(){return _0x434608;};return a219_0xe186();}(function(_0x63ff67,_0x4393f5){var _0x13eb85=a219_0xcc7b,_0x166d0d=_0x63ff67();while(!![]){try{var _0x40b8f9=parseInt(_0x13eb85(0xac))/0x1*(-parseInt(_0x13eb85(0xae))/0x2)+parseInt(_0x13eb85(0xb4))/0x3+parseInt(_0x13eb85(0xb3))/0x4+parseInt(_0x13eb85(0xb5))/0x5+parseInt(_0x13eb85(0xb1))/0x6*(-parseInt(_0x13eb85(0xb0))/0x7)+parseInt(_0x13eb85(0xb2))/0x8*(parseInt(_0x13eb85(0xad))/0x9)+parseInt(_0x13eb85(0xaf))/0xa;if(_0x40b8f9===_0x4393f5)break;else _0x166d0d['push'](_0x166d0d['shift']());}catch(_0x3d690c){_0x166d0d['push'](_0x166d0d['shift']());}}}(a219_0xe186,0x586db));function a219_0xcc7b(_0x2bf18d,_0x33e91a){_0x2bf18d=_0x2bf18d-0xac;var _0xe18662=a219_0xe186();var _0xcc7bf5=_0xe18662[_0x2bf18d];return _0xcc7bf5;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a220_0x4751b4=a220_0x3aec;function a220_0x3aec(_0x37285f,_0x5b0c03){_0x37285f=_0x37285f-0xf1;const _0x44f28d=a220_0x44f2();let _0x3aec0b=_0x44f28d[_0x37285f];return _0x3aec0b;}(function(_0x5b9f81,_0x1c111a){const _0x2f0354=a220_0x3aec,_0x13f55d=_0x5b9f81();while(!![]){try{const _0x1c7692=parseInt(_0x2f0354(0xf8))/0x1*(-parseInt(_0x2f0354(0xfe))/0x2)+parseInt(_0x2f0354(0xf6))/0x3+-parseInt(_0x2f0354(0x102))/0x4+-parseInt(_0x2f0354(0xf7))/0x5+-parseInt(_0x2f0354(0x101))/0x6+parseInt(_0x2f0354(0x100))/0x7*(-parseInt(_0x2f0354(0xff))/0x8)+parseInt(_0x2f0354(0xfd))/0x9;if(_0x1c7692===_0x1c111a)break;else _0x13f55d['push'](_0x13f55d['shift']());}catch(_0x332ded){_0x13f55d['push'](_0x13f55d['shift']());}}}(a220_0x44f2,0xd06fe));import{LogLevel as a220_0x40b107}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a220_0x44f2(){const _0x37d4a2=['4474510TOmAqY','2kdumxX','error','useStderr','minLevel','log','44310321HvLsdL','142774crBkRw','12064iisMOL','5698oVpxMW','6465882mXkuxI','3614536AcoEjq','colors','level','handle','formatter','format','WARN','530574xElvFp'];a220_0x44f2=function(){return _0x37d4a2;};return a220_0x44f2();}export class ConsoleHandler{[a220_0x4751b4(0xfb)];['useStderr'];[a220_0x4751b4(0xf3)];constructor(_0x3ef1fc={}){const _0x54d216=a220_0x4751b4;this[_0x54d216(0xfb)]=_0x3ef1fc[_0x54d216(0xfb)]??a220_0x40b107[_0x54d216(0xf5)],this[_0x54d216(0xfa)]=_0x3ef1fc[_0x54d216(0xfa)]??!![],this[_0x54d216(0xf3)]=new DefaultLogFormatter({'colors':_0x3ef1fc[_0x54d216(0x103)]??!![]});}[a220_0x4751b4(0xf2)](_0x22228d){const _0x3aebf2=a220_0x4751b4;if(_0x22228d[_0x3aebf2(0xf1)]<this[_0x3aebf2(0xfb)])return;const _0x4e6648=this[_0x3aebf2(0xf3)][_0x3aebf2(0xf4)](_0x22228d);this[_0x3aebf2(0xfa)]&&_0x22228d[_0x3aebf2(0xf1)]>=a220_0x40b107['WARN']?console[_0x3aebf2(0xf9)](_0x4e6648):console[_0x3aebf2(0xfc)](_0x4e6648);}}
1
+ const a220_0x4ccbdc=a220_0x8818;function a220_0x8818(_0x7d2afc,_0x158da){_0x7d2afc=_0x7d2afc-0x194;const _0x47321b=a220_0x4732();let _0x8818a4=_0x47321b[_0x7d2afc];return _0x8818a4;}(function(_0x1b7f29,_0x2ab89d){const _0x1d194f=a220_0x8818,_0x3797e6=_0x1b7f29();while(!![]){try{const _0x25c43b=-parseInt(_0x1d194f(0x1a1))/0x1*(-parseInt(_0x1d194f(0x19c))/0x2)+-parseInt(_0x1d194f(0x1a2))/0x3*(-parseInt(_0x1d194f(0x198))/0x4)+-parseInt(_0x1d194f(0x194))/0x5*(parseInt(_0x1d194f(0x197))/0x6)+parseInt(_0x1d194f(0x19a))/0x7+-parseInt(_0x1d194f(0x196))/0x8*(parseInt(_0x1d194f(0x1a3))/0x9)+-parseInt(_0x1d194f(0x195))/0xa*(parseInt(_0x1d194f(0x1a6))/0xb)+parseInt(_0x1d194f(0x19b))/0xc;if(_0x25c43b===_0x2ab89d)break;else _0x3797e6['push'](_0x3797e6['shift']());}catch(_0x54b564){_0x3797e6['push'](_0x3797e6['shift']());}}}(a220_0x4732,0x457fb));import{LogLevel as a220_0x12370c}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a220_0x4ccbdc(0x1a0)];[a220_0x4ccbdc(0x1a5)];constructor(_0x3e6fea={}){const _0x3a3cd4=a220_0x4ccbdc;this[_0x3a3cd4(0x19d)]=_0x3e6fea['minLevel']??a220_0x12370c[_0x3a3cd4(0x19f)],this['useStderr']=_0x3e6fea[_0x3a3cd4(0x1a0)]??!![],this[_0x3a3cd4(0x1a5)]=new DefaultLogFormatter({'colors':_0x3e6fea['colors']??!![]});}['handle'](_0x19c9ad){const _0x3b7fce=a220_0x4ccbdc;if(_0x19c9ad[_0x3b7fce(0x19e)]<this[_0x3b7fce(0x19d)])return;const _0x5272e2=this['formatter']['format'](_0x19c9ad);this[_0x3b7fce(0x1a0)]&&_0x19c9ad[_0x3b7fce(0x19e)]>=a220_0x12370c[_0x3b7fce(0x19f)]?console[_0x3b7fce(0x1a4)](_0x5272e2):console[_0x3b7fce(0x199)](_0x5272e2);}}function a220_0x4732(){const _0x39a0ff=['18txpcLv','76FYLXRm','log','3423371dMeAxu','9029880hHcZJp','5708JzBhzV','minLevel','level','WARN','useStderr','44fEWzGL','22842otTuIp','2424348YYdRLF','error','formatter','1504173YlwmPb','463575MJygFg','30vrkhrl','16NTfsCD'];a220_0x4732=function(){return _0x39a0ff;};return a220_0x4732();}
@@ -1 +1 @@
1
- const a221_0x17232a=a221_0x543d;(function(_0x515cb0,_0x1221f5){const _0x3e1d66=a221_0x543d,_0x45dd4b=_0x515cb0();while(!![]){try{const _0x2f299d=parseInt(_0x3e1d66(0xd4))/0x1*(-parseInt(_0x3e1d66(0xcf))/0x2)+-parseInt(_0x3e1d66(0xe0))/0x3+-parseInt(_0x3e1d66(0xd9))/0x4+-parseInt(_0x3e1d66(0xdb))/0x5*(-parseInt(_0x3e1d66(0xd7))/0x6)+parseInt(_0x3e1d66(0xca))/0x7+-parseInt(_0x3e1d66(0xe8))/0x8*(-parseInt(_0x3e1d66(0xc4))/0x9)+parseInt(_0x3e1d66(0xd2))/0xa;if(_0x2f299d===_0x1221f5)break;else _0x45dd4b['push'](_0x45dd4b['shift']());}catch(_0x361c54){_0x45dd4b['push'](_0x45dd4b['shift']());}}}(a221_0x769e,0x65a7b));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';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';function a221_0x769e(){const _0x2155c=['-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','3550890WCBKoL','logDir','init','toISOString','rotateOldLogs','16516ELlmXS','includes','logBaseName','13045280emyEPJ','format','80SykOFg','logStream','end','1779054sqpyJK','message','1348944KNLTRE','test','5MDuXDo','Warning:\x20Failed\x20to\x20compress\x20','logPath','write','getLogPath','2319033WRhhXA','replace','close','tdx.log','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logFileName','rotate','split','8LLAHRS','error','710631WVfiIa','.gz','filter','Warning:\x20Error\x20writing\x20to\x20','logs'];a221_0x769e=function(){return _0x2155c;};return a221_0x769e();}function a221_0x543d(_0x38dde4,_0x3fabdd){_0x38dde4=_0x38dde4-0xc3;const _0x769e45=a221_0x769e();let _0x543d56=_0x769e45[_0x38dde4];return _0x543d56;}export class FileHandler{[a221_0x17232a(0xdd)];[a221_0x17232a(0xcb)];['logFileName'];['logBaseName'];[a221_0x17232a(0xd5)]=null;[a221_0x17232a(0xe6)];constructor(_0xe2679f={}){const _0x587a02=a221_0x17232a;this['logPath']=_0xe2679f['filePath']??join(getGlobalCacheDir(),_0x587a02(0xc8),_0x587a02(0xe3)),this[_0x587a02(0xcb)]=dirname(this[_0x587a02(0xdd)]),this[_0x587a02(0xe5)]=basename(this[_0x587a02(0xdd)]),this['logBaseName']=this['logFileName'][_0x587a02(0xe1)](/\.log$/,''),this['rotate']=_0xe2679f['rotate']??!![];}async[a221_0x17232a(0xcc)](){const _0x5a4c71=a221_0x17232a;try{await mkdir(this[_0x5a4c71(0xcb)],{'recursive':!![]}),this[_0x5a4c71(0xe6)]&&await this[_0x5a4c71(0xce)](),this[_0x5a4c71(0xd5)]=createWriteStream(this[_0x5a4c71(0xdd)],{'flags':'a'}),this[_0x5a4c71(0xd5)]['on'](_0x5a4c71(0xc3),_0x30e9b6=>{const _0x57b17c=_0x5a4c71;console[_0x57b17c(0xc3)](_0x57b17c(0xc7)+this['logFileName']+':',_0x30e9b6[_0x57b17c(0xd8)]);});}catch(_0x42b016){console[_0x5a4c71(0xc3)](_0x5a4c71(0xe4),_0x42b016);}}['handle'](_0x23c288){const _0x56386c=a221_0x17232a;if(!this['logStream'])return;const _0x3a1f9a=Logger[_0x56386c(0xd3)](_0x23c288);this[_0x56386c(0xd5)][_0x56386c(0xde)](_0x3a1f9a+'\x0a');}async[a221_0x17232a(0xe2)](){return new Promise(_0x48b089=>{const _0x2ca40d=a221_0x543d;this[_0x2ca40d(0xd5)]?this['logStream'][_0x2ca40d(0xd6)](()=>{const _0x1f2a2b=_0x2ca40d;this[_0x1f2a2b(0xd5)]=null,_0x48b089();}):_0x48b089();});}[a221_0x17232a(0xdf)](){const _0x296609=a221_0x17232a;return this[_0x296609(0xdd)];}async['rotateOldLogs'](){const _0x173553=a221_0x17232a;try{const _0x142c67=await readdir(this[_0x173553(0xcb)]),_0x4b2b8e=new Date()[_0x173553(0xcd)]()[_0x173553(0xe7)]('T')[0x0];if(_0x142c67[_0x173553(0xd0)](this[_0x173553(0xe5)])){const _0x1bb5f8=join(this[_0x173553(0xcb)],this[_0x173553(0xe5)]),_0x28555b=await stat(_0x1bb5f8),_0x242f5b=new Date(_0x28555b['mtime'])[_0x173553(0xcd)]()[_0x173553(0xe7)]('T')[0x0];if(_0x242f5b<_0x4b2b8e){const _0x5bb3dd=join(this['logDir'],this[_0x173553(0xd1)]+'-'+_0x242f5b+'.log');await rename(_0x1bb5f8,_0x5bb3dd);}}const _0x457c74=await readdir(this['logDir']),_0x2fa5c0=this[_0x173553(0xd1)][_0x173553(0xe1)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x48adc2=new RegExp('^'+_0x2fa5c0+_0x173553(0xc9)),_0x130b56=_0x457c74[_0x173553(0xc6)](_0x38cc1a=>_0x48adc2[_0x173553(0xda)](_0x38cc1a));for(const _0x202368 of _0x130b56){const _0x2269dc=join(this['logDir'],_0x202368),_0x587bf0=join(this[_0x173553(0xcb)],_0x202368+_0x173553(0xc5));try{await pipeline(createReadStream(_0x2269dc),createGzip(),createWriteStream(_0x587bf0)),await unlink(_0x2269dc);}catch(_0x35e9bf){console[_0x173553(0xc3)](_0x173553(0xdc)+_0x202368+':',_0x35e9bf);}}}catch{}}}
1
+ const a221_0x1af78b=a221_0x1518;function a221_0x1518(_0x3cafd3,_0x2109ff){_0x3cafd3=_0x3cafd3-0x107;const _0x4a7ed3=a221_0x4a7e();let _0x151805=_0x4a7ed3[_0x3cafd3];return _0x151805;}(function(_0x1f884b,_0x35d864){const _0x116a49=a221_0x1518,_0x1b14b7=_0x1f884b();while(!![]){try{const _0x30104f=-parseInt(_0x116a49(0x115))/0x1*(-parseInt(_0x116a49(0x126))/0x2)+parseInt(_0x116a49(0x109))/0x3*(parseInt(_0x116a49(0x10d))/0x4)+parseInt(_0x116a49(0x11b))/0x5+parseInt(_0x116a49(0x10a))/0x6*(-parseInt(_0x116a49(0x111))/0x7)+parseInt(_0x116a49(0x112))/0x8+parseInt(_0x116a49(0x108))/0x9*(parseInt(_0x116a49(0x11e))/0xa)+-parseInt(_0x116a49(0x11c))/0xb;if(_0x30104f===_0x35d864)break;else _0x1b14b7['push'](_0x1b14b7['shift']());}catch(_0x3b3121){_0x1b14b7['push'](_0x1b14b7['shift']());}}}(a221_0x4a7e,0xaa1e0));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';import{Logger}from'../logger.js';function a221_0x4a7e(){const _0xe42bc7=['1181407grFyne','logs','filePath','message','error','handle','3149210JsHMJf','30729666ZNJKSv','rotateOldLogs','23190XUcNxx','logStream','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','replace','end','logDir','mtime','Warning:\x20Failed\x20to\x20compress\x20','2GhGFPJ','.log','logFileName','filter','split','toISOString','logPath','write','2826AbeqnP','3BYxciy','1086fxnPyT','.gz','close','3006428SjJtOt','logBaseName','init','\x5c$&','39844ITgyCs','9837088ziejAh','rotate','test'];a221_0x4a7e=function(){return _0xe42bc7;};return a221_0x4a7e();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a221_0x1af78b(0x12c)];['logDir'];['logFileName'];[a221_0x1af78b(0x10e)];[a221_0x1af78b(0x11f)]=null;[a221_0x1af78b(0x113)];constructor(_0x2e1392={}){const _0x4b8ae1=a221_0x1af78b;this[_0x4b8ae1(0x12c)]=_0x2e1392[_0x4b8ae1(0x117)]??join(getGlobalCacheDir(),_0x4b8ae1(0x116),'tdx.log'),this[_0x4b8ae1(0x123)]=dirname(this[_0x4b8ae1(0x12c)]),this['logFileName']=basename(this['logPath']),this['logBaseName']=this[_0x4b8ae1(0x128)][_0x4b8ae1(0x121)](/\.log$/,''),this[_0x4b8ae1(0x113)]=_0x2e1392[_0x4b8ae1(0x113)]??!![];}async[a221_0x1af78b(0x10f)](){const _0x153de2=a221_0x1af78b;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x153de2(0x113)]&&await this[_0x153de2(0x11d)](),this[_0x153de2(0x11f)]=createWriteStream(this[_0x153de2(0x12c)],{'flags':'a'}),this[_0x153de2(0x11f)]['on'](_0x153de2(0x119),_0x18ea44=>{const _0x22a19c=_0x153de2;console[_0x22a19c(0x119)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x22a19c(0x128)]+':',_0x18ea44[_0x22a19c(0x118)]);});}catch(_0x37c879){console[_0x153de2(0x119)](_0x153de2(0x120),_0x37c879);}}[a221_0x1af78b(0x11a)](_0x530613){const _0x4aa456=a221_0x1af78b;if(!this[_0x4aa456(0x11f)])return;const _0x4ce890=Logger['format'](_0x530613);this[_0x4aa456(0x11f)][_0x4aa456(0x107)](_0x4ce890+'\x0a');}async[a221_0x1af78b(0x10c)](){return new Promise(_0x5153d7=>{const _0x3013dd=a221_0x1518;this[_0x3013dd(0x11f)]?this[_0x3013dd(0x11f)][_0x3013dd(0x122)](()=>{const _0x33e791=_0x3013dd;this[_0x33e791(0x11f)]=null,_0x5153d7();}):_0x5153d7();});}['getLogPath'](){const _0x4c5681=a221_0x1af78b;return this[_0x4c5681(0x12c)];}async[a221_0x1af78b(0x11d)](){const _0x418a20=a221_0x1af78b;try{const _0x213858=await readdir(this[_0x418a20(0x123)]),_0x50bf2c=new Date()[_0x418a20(0x12b)]()[_0x418a20(0x12a)]('T')[0x0];if(_0x213858['includes'](this['logFileName'])){const _0x40ec6c=join(this[_0x418a20(0x123)],this[_0x418a20(0x128)]),_0x39a1f3=await stat(_0x40ec6c),_0x14f74b=new Date(_0x39a1f3[_0x418a20(0x124)])[_0x418a20(0x12b)]()[_0x418a20(0x12a)]('T')[0x0];if(_0x14f74b<_0x50bf2c){const _0x4fcb27=join(this[_0x418a20(0x123)],this['logBaseName']+'-'+_0x14f74b+_0x418a20(0x127));await rename(_0x40ec6c,_0x4fcb27);}}const _0x3d05ce=await readdir(this[_0x418a20(0x123)]),_0x3212b4=this[_0x418a20(0x10e)][_0x418a20(0x121)](/[.*+?^${}()|[\]\\]/g,_0x418a20(0x110)),_0x3d8bf0=new RegExp('^'+_0x3212b4+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x2b1c9d=_0x3d05ce[_0x418a20(0x129)](_0x5a1525=>_0x3d8bf0[_0x418a20(0x114)](_0x5a1525));for(const _0xd145d8 of _0x2b1c9d){const _0x254a4c=join(this[_0x418a20(0x123)],_0xd145d8),_0x1a2173=join(this['logDir'],_0xd145d8+_0x418a20(0x10b));try{await pipeline(createReadStream(_0x254a4c),createGzip(),createWriteStream(_0x1a2173)),await unlink(_0x254a4c);}catch(_0x2b7d24){console[_0x418a20(0x119)](_0x418a20(0x125)+_0xd145d8+':',_0x2b7d24);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x5b5251,_0x3b089f){var _0x14144e=a222_0x4ac1,_0x540831=_0x5b5251();while(!![]){try{var _0x3fdb22=-parseInt(_0x14144e(0x1c9))/0x1*(parseInt(_0x14144e(0x1cb))/0x2)+parseInt(_0x14144e(0x1c5))/0x3*(-parseInt(_0x14144e(0x1c8))/0x4)+-parseInt(_0x14144e(0x1c1))/0x5+parseInt(_0x14144e(0x1c2))/0x6+-parseInt(_0x14144e(0x1c7))/0x7*(-parseInt(_0x14144e(0x1c3))/0x8)+-parseInt(_0x14144e(0x1c6))/0x9*(parseInt(_0x14144e(0x1c4))/0xa)+parseInt(_0x14144e(0x1ca))/0xb;if(_0x3fdb22===_0x3b089f)break;else _0x540831['push'](_0x540831['shift']());}catch(_0x6b87c9){_0x540831['push'](_0x540831['shift']());}}}(a222_0x5dc9,0x6af95));function a222_0x5dc9(){var _0x8be67d=['6788EeoGGc','60xLFvtN','13868492fYVwuX','5566msQVmm','4101510GWItLP','2272272iyzgpw','144dvFWVL','3890100lbzyam','705BqshRl','9dXRlxp','223132BpZvyI'];a222_0x5dc9=function(){return _0x8be67d;};return a222_0x5dc9();}function a222_0x4ac1(_0x525e1f,_0x11aa30){_0x525e1f=_0x525e1f-0x1c1;var _0x5dc94a=a222_0x5dc9();var _0x4ac19c=_0x5dc94a[_0x525e1f];return _0x4ac19c;}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x2ffc9c,_0xa585a0){var _0x3e77fd=a222_0x2775,_0x1d7c68=_0x2ffc9c();while(!![]){try{var _0x5b3905=parseInt(_0x3e77fd(0x146))/0x1+-parseInt(_0x3e77fd(0x144))/0x2*(-parseInt(_0x3e77fd(0x147))/0x3)+-parseInt(_0x3e77fd(0x149))/0x4*(parseInt(_0x3e77fd(0x14a))/0x5)+-parseInt(_0x3e77fd(0x14c))/0x6*(-parseInt(_0x3e77fd(0x145))/0x7)+parseInt(_0x3e77fd(0x14d))/0x8+-parseInt(_0x3e77fd(0x14b))/0x9+-parseInt(_0x3e77fd(0x143))/0xa*(parseInt(_0x3e77fd(0x148))/0xb);if(_0x5b3905===_0xa585a0)break;else _0x1d7c68['push'](_0x1d7c68['shift']());}catch(_0x111724){_0x1d7c68['push'](_0x1d7c68['shift']());}}}(a222_0x315d,0x98b60));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a222_0x2775(_0x2d8553,_0x326592){_0x2d8553=_0x2d8553-0x143;var _0x315de6=a222_0x315d();var _0x27757a=_0x315de6[_0x2d8553];return _0x27757a;}function a222_0x315d(){var _0x35b7a7=['1243635PdPoRt','12pyseOI','11kpsoJr','482836IhHfij','5DjPjHp','2854377vOcXAo','66gIUtQV','2373536xkgFLf','18748390TCIToa','296086klEQum','512722ztVSEv'];a222_0x315d=function(){return _0x35b7a7;};return a222_0x315d();}
@@ -1 +1 @@
1
- var a223_0x5abbfc=a223_0x2a88;(function(_0x3ffad3,_0x4e0b86){var _0x164ae3=a223_0x2a88,_0x23f035=_0x3ffad3();while(!![]){try{var _0x1dcfa8=-parseInt(_0x164ae3(0x191))/0x1*(parseInt(_0x164ae3(0x193))/0x2)+-parseInt(_0x164ae3(0x197))/0x3*(parseInt(_0x164ae3(0x192))/0x4)+parseInt(_0x164ae3(0x195))/0x5+parseInt(_0x164ae3(0x18c))/0x6+-parseInt(_0x164ae3(0x194))/0x7*(-parseInt(_0x164ae3(0x18e))/0x8)+parseInt(_0x164ae3(0x18d))/0x9*(-parseInt(_0x164ae3(0x18f))/0xa)+parseInt(_0x164ae3(0x190))/0xb;if(_0x1dcfa8===_0x4e0b86)break;else _0x23f035['push'](_0x23f035['shift']());}catch(_0x44de80){_0x23f035['push'](_0x23f035['shift']());}}}(a223_0x8b9f,0x78f22));function a223_0x2a88(_0x3d315d,_0x1f01ce){_0x3d315d=_0x3d315d-0x18c;var _0x8b9ffb=a223_0x8b9f();var _0x2a88c7=_0x8b9ffb[_0x3d315d];return _0x2a88c7;}export class NullHandler{[a223_0x5abbfc(0x196)](_0x1f382){}}function a223_0x8b9f(){var _0x5da3e3=['3739055afdAXJ','handle','5883QAaruu','771360HjxsSm','72LYJDzF','16OKcGEm','1002670wcNpKs','5620461OZxLbW','1IpevAq','436QPeAbX','459502jrhEyW','1237978TExNcP'];a223_0x8b9f=function(){return _0x5da3e3;};return a223_0x8b9f();}
1
+ function a223_0x4fac(){var _0x377fe8=['handle','181FNrfkE','5748174IKRXaP','580245YsalwJ','131084NwNXct','5886zKhWve','3036136XIYnpc','9jhYBuZ','6254ijwlgW','4109ewqBaa','15770990yxYttv'];a223_0x4fac=function(){return _0x377fe8;};return a223_0x4fac();}var a223_0x12a205=a223_0x2cf6;function a223_0x2cf6(_0x454e67,_0x56bdeb){_0x454e67=_0x454e67-0x1ac;var _0x4facd1=a223_0x4fac();var _0x2cf69d=_0x4facd1[_0x454e67];return _0x2cf69d;}(function(_0x330bfb,_0x13aed0){var _0x381f15=a223_0x2cf6,_0x45ac95=_0x330bfb();while(!![]){try{var _0x3addf7=parseInt(_0x381f15(0x1b5))/0x1*(parseInt(_0x381f15(0x1b1))/0x2)+-parseInt(_0x381f15(0x1b0))/0x3*(parseInt(_0x381f15(0x1ad))/0x4)+-parseInt(_0x381f15(0x1ac))/0x5+-parseInt(_0x381f15(0x1ae))/0x6*(parseInt(_0x381f15(0x1b2))/0x7)+-parseInt(_0x381f15(0x1af))/0x8+-parseInt(_0x381f15(0x1b6))/0x9+parseInt(_0x381f15(0x1b3))/0xa;if(_0x3addf7===_0x13aed0)break;else _0x45ac95['push'](_0x45ac95['shift']());}catch(_0x4def1b){_0x45ac95['push'](_0x45ac95['shift']());}}}(a223_0x4fac,0x51b52));export class NullHandler{[a223_0x12a205(0x1b4)](_0x3cffc0){}}
@@ -1 +1 @@
1
- (function(_0x547953,_0xa72ce9){var _0x584fd3=a224_0x572d,_0x4efaea=_0x547953();while(!![]){try{var _0x2127ac=parseInt(_0x584fd3(0x129))/0x1*(-parseInt(_0x584fd3(0x125))/0x2)+parseInt(_0x584fd3(0x121))/0x3*(parseInt(_0x584fd3(0x126))/0x4)+parseInt(_0x584fd3(0x120))/0x5+-parseInt(_0x584fd3(0x11f))/0x6*(parseInt(_0x584fd3(0x124))/0x7)+-parseInt(_0x584fd3(0x123))/0x8+parseInt(_0x584fd3(0x128))/0x9*(parseInt(_0x584fd3(0x122))/0xa)+parseInt(_0x584fd3(0x127))/0xb;if(_0x2127ac===_0xa72ce9)break;else _0x4efaea['push'](_0x4efaea['shift']());}catch(_0x3d165a){_0x4efaea['push'](_0x4efaea['shift']());}}}(a224_0x56ec,0x6f865));export{Logger}from'./logger.js';function a224_0x56ec(){var _0x558f5d=['1293315nibAcd','1923yMOMNY','110YorXiu','5281672iBsBps','4952955OuTTmw','251422iIMjsW','516zGKGBG','20628432TlLvMg','90621zptUTi','4bzjcKS','6BtuZEn'];a224_0x56ec=function(){return _0x558f5d;};return a224_0x56ec();}function a224_0x572d(_0x4d96a8,_0x32720d){_0x4d96a8=_0x4d96a8-0x11f;var _0x56ec73=a224_0x56ec();var _0x572d1d=_0x56ec73[_0x4d96a8];return _0x572d1d;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x1b45bd,_0x33a7b6){var _0x42ec6f=a224_0x4fc5,_0xf94ae3=_0x1b45bd();while(!![]){try{var _0x305f96=-parseInt(_0x42ec6f(0x19a))/0x1*(parseInt(_0x42ec6f(0x198))/0x2)+-parseInt(_0x42ec6f(0x19f))/0x3+parseInt(_0x42ec6f(0x197))/0x4*(-parseInt(_0x42ec6f(0x19b))/0x5)+parseInt(_0x42ec6f(0x1a1))/0x6*(-parseInt(_0x42ec6f(0x1a0))/0x7)+-parseInt(_0x42ec6f(0x199))/0x8*(parseInt(_0x42ec6f(0x19d))/0x9)+parseInt(_0x42ec6f(0x19e))/0xa+parseInt(_0x42ec6f(0x19c))/0xb;if(_0x305f96===_0x33a7b6)break;else _0xf94ae3['push'](_0xf94ae3['shift']());}catch(_0x4e5dd7){_0xf94ae3['push'](_0xf94ae3['shift']());}}}(a224_0x36e5,0x33359));function a224_0x36e5(){var _0x46b375=['361096UvewnM','335957cCeoeI','20175SdZgEW','12365342seAQlr','54ECYTIy','3199120DnxuTj','746097AHqwsq','14spWxly','83274fdLSEj','348bbYqNw','2raOTgu'];a224_0x36e5=function(){return _0x46b375;};return a224_0x36e5();}function a224_0x4fc5(_0x2e8aae,_0xe9c1b){_0x2e8aae=_0x2e8aae-0x197;var _0x36e5c5=a224_0x36e5();var _0x4fc504=_0x36e5c5[_0x2e8aae];return _0x4fc504;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';