@treasuredata/tdx 2026.3.50 → 2026.3.51

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 (228) 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.d.ts.map +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/engage-template-pull-command.js +1 -1
  28. package/dist/commands/engage-template-push-command.js +1 -1
  29. package/dist/commands/engage-template-validate-command.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/journey-command.js +1 -1
  32. package/dist/commands/journey-validate-command.js +1 -1
  33. package/dist/commands/llm-command.js +1 -1
  34. package/dist/commands/mcp-command.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/policy-command.js +1 -1
  37. package/dist/commands/profile-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/schedule-command.js +1 -1
  41. package/dist/commands/segment-command.js +1 -1
  42. package/dist/commands/segment-create-command.js +1 -1
  43. package/dist/commands/segment-fields-command.js +1 -1
  44. package/dist/commands/segment-pull-command.js +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-update-command.js +1 -1
  47. package/dist/commands/segment-use-command.js +1 -1
  48. package/dist/commands/segment-validate-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/status-command.js +1 -1
  52. package/dist/commands/tables.js +1 -1
  53. package/dist/commands/unset-command.js +1 -1
  54. package/dist/commands/upgrade-command.js +1 -1
  55. package/dist/commands/use-command.js +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/work-command.js +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.d.ts.map +1 -1
  66. package/dist/core/global-context.js +1 -1
  67. package/dist/core/global-context.js.map +1 -1
  68. package/dist/core/keychain.js +1 -1
  69. package/dist/core/oauth-keychain.js +1 -1
  70. package/dist/core/oauth.d.ts +1 -0
  71. package/dist/core/oauth.d.ts.map +1 -1
  72. package/dist/core/oauth.js +1 -1
  73. package/dist/core/oauth.js.map +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/utils.js +1 -1
  85. package/dist/proxy/claude-usage-tracker.js +1 -1
  86. package/dist/proxy/passthrough-server.d.ts +21 -4
  87. package/dist/proxy/passthrough-server.d.ts.map +1 -1
  88. package/dist/proxy/passthrough-server.js +1 -1
  89. package/dist/proxy/passthrough-server.js.map +1 -1
  90. package/dist/proxy/sse-usage-parser.js +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  93. package/dist/sdk/agent/agent-yaml.js +1 -1
  94. package/dist/sdk/agent/test/evaluator.js +1 -1
  95. package/dist/sdk/agent/test/executor.js +1 -1
  96. package/dist/sdk/agent/test/index.js +1 -1
  97. package/dist/sdk/agent/test/output.js +1 -1
  98. package/dist/sdk/agent/test/parser.js +1 -1
  99. package/dist/sdk/agent/tool-target-registry.js +1 -1
  100. package/dist/sdk/api.js +1 -1
  101. package/dist/sdk/cas/cas-api-client.js +1 -1
  102. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  103. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  104. package/dist/sdk/cas/index.js +1 -1
  105. package/dist/sdk/cas/pull-workflow.js +1 -1
  106. package/dist/sdk/cas/push-workflow.js +1 -1
  107. package/dist/sdk/client/cdp-api-client.js +1 -1
  108. package/dist/sdk/client/delivery-api-client.js +1 -1
  109. package/dist/sdk/client/endpoints.js +1 -1
  110. package/dist/sdk/client/engage-api-client.js +1 -1
  111. package/dist/sdk/client/http-client.js +1 -1
  112. package/dist/sdk/client/llm-api-client.js +1 -1
  113. package/dist/sdk/client/oauth-refresh.js +1 -1
  114. package/dist/sdk/client/rate-limiter.js +1 -1
  115. package/dist/sdk/client/td-api-client.js +1 -1
  116. package/dist/sdk/client/trino-api-client.js +1 -1
  117. package/dist/sdk/client/workflow-client.js +1 -1
  118. package/dist/sdk/connection-validator.js +1 -1
  119. package/dist/sdk/connection.js +1 -1
  120. package/dist/sdk/delivery.js +1 -1
  121. package/dist/sdk/engage/campaign-pull.js +1 -1
  122. package/dist/sdk/engage/campaign-push.js +1 -1
  123. package/dist/sdk/engage/campaign-validator.js +1 -1
  124. package/dist/sdk/engage/campaign-yaml.js +1 -1
  125. package/dist/sdk/engage/template-pull.js +1 -1
  126. package/dist/sdk/engage/template-push.js +1 -1
  127. package/dist/sdk/engage/template-validator.js +1 -1
  128. package/dist/sdk/engage/template-yaml.js +1 -1
  129. package/dist/sdk/engage/types/campaign-def.js +1 -1
  130. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  131. package/dist/sdk/engage/types/template-schema.js +1 -1
  132. package/dist/sdk/engage.js +1 -1
  133. package/dist/sdk/errors.js +1 -1
  134. package/dist/sdk/index.js +1 -1
  135. package/dist/sdk/io/index.js +1 -1
  136. package/dist/sdk/io/node-filesystem.js +1 -1
  137. package/dist/sdk/job.js +1 -1
  138. package/dist/sdk/journey.js +1 -1
  139. package/dist/sdk/llm/chat-cache.js +1 -1
  140. package/dist/sdk/llm/index.js +1 -1
  141. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  142. package/dist/sdk/llm/model-factors.js +1 -1
  143. package/dist/sdk/personalization.js +1 -1
  144. package/dist/sdk/policy.js +1 -1
  145. package/dist/sdk/query/index.js +1 -1
  146. package/dist/sdk/query/sql-parser.js +1 -1
  147. package/dist/sdk/realtime.js +1 -1
  148. package/dist/sdk/schedule.js +1 -1
  149. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  150. package/dist/sdk/segment/fields-display.js +1 -1
  151. package/dist/sdk/segment/file-discovery.js +1 -1
  152. package/dist/sdk/segment/journey-utils.js +1 -1
  153. package/dist/sdk/segment/journey-validator.js +1 -1
  154. package/dist/sdk/segment/journey-yaml.js +1 -1
  155. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  156. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  157. package/dist/sdk/segment/pull-workflow.js +1 -1
  158. package/dist/sdk/segment/push-recovery.js +1 -1
  159. package/dist/sdk/segment/push-workflow.js +1 -1
  160. package/dist/sdk/segment/resolution-context.js +1 -1
  161. package/dist/sdk/segment/segment-path-parser.js +1 -1
  162. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  163. package/dist/sdk/segment/segment-validator.js +1 -1
  164. package/dist/sdk/segment/target-resolution.js +1 -1
  165. package/dist/sdk/segment/tdx-config.js +1 -1
  166. package/dist/sdk/segment/types/activation-schema.js +1 -1
  167. package/dist/sdk/segment/types/journey-def.js +1 -1
  168. package/dist/sdk/segment/types/journey-schema.js +1 -1
  169. package/dist/sdk/segment/types/segment-def.js +1 -1
  170. package/dist/sdk/segment/types/segment-schema.js +1 -1
  171. package/dist/sdk/segment/validate-files.js +1 -1
  172. package/dist/sdk/segment/yaml-validator.js +1 -1
  173. package/dist/sdk/segment.js +1 -1
  174. package/dist/sdk/types/index.js +1 -1
  175. package/dist/sdk/types/progress.js +1 -1
  176. package/dist/sdk/types/workspace.js +1 -1
  177. package/dist/sdk/user.js +1 -1
  178. package/dist/sdk/util/format-detector.js +1 -1
  179. package/dist/sdk/util/formatters.js +1 -1
  180. package/dist/sdk/util/index.js +1 -1
  181. package/dist/sdk/util/paginate.js +1 -1
  182. package/dist/sdk/util/tree-formatter.js +1 -1
  183. package/dist/sdk/workflow/archive-validation.js +1 -1
  184. package/dist/sdk/workflow/clone-workflow.js +1 -1
  185. package/dist/sdk/workflow/index.js +1 -1
  186. package/dist/sdk/workflow/pull-workflow.js +1 -1
  187. package/dist/sdk/workflow/push-workflow.js +1 -1
  188. package/dist/sdk/workflow/tdx-config.js +1 -1
  189. package/dist/sdk/workflow/workflow-utils.js +1 -1
  190. package/dist/sdk/workspace/frontmatter.js +1 -1
  191. package/dist/sdk/workspace/git.js +1 -1
  192. package/dist/sdk/workspace/index.js +1 -1
  193. package/dist/sdk/workspace/templates.js +1 -1
  194. package/dist/sdk/workspace/weekly.js +1 -1
  195. package/dist/sdk/workspace/wikilinks.js +1 -1
  196. package/dist/test-utils/command-runner.js +1 -1
  197. package/dist/test-utils/factories.js +1 -1
  198. package/dist/test-utils/fixtures.js +1 -1
  199. package/dist/test-utils/http-mock.js +1 -1
  200. package/dist/test-utils/index.js +1 -1
  201. package/dist/utils/async.js +1 -1
  202. package/dist/utils/colors.js +1 -1
  203. package/dist/utils/diff.js +1 -1
  204. package/dist/utils/file-permissions.js +1 -1
  205. package/dist/utils/file-reader.js +1 -1
  206. package/dist/utils/github-releases.js +1 -1
  207. package/dist/utils/global-cache.js +1 -1
  208. package/dist/utils/json-loader.js +1 -1
  209. package/dist/utils/local-cache.js +1 -1
  210. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  211. package/dist/utils/logger/formatters/index.js +1 -1
  212. package/dist/utils/logger/handlers/console-handler.js +1 -1
  213. package/dist/utils/logger/handlers/file-handler.js +1 -1
  214. package/dist/utils/logger/handlers/index.js +1 -1
  215. package/dist/utils/logger/handlers/null-handler.js +1 -1
  216. package/dist/utils/logger/index.js +1 -1
  217. package/dist/utils/logger/logger.js +1 -1
  218. package/dist/utils/logger/types.js +1 -1
  219. package/dist/utils/option-validation.js +1 -1
  220. package/dist/utils/process.js +1 -1
  221. package/dist/utils/prompt.js +1 -1
  222. package/dist/utils/spinner.js +1 -1
  223. package/dist/utils/sse-parser.js +1 -1
  224. package/dist/utils/string-utils.js +1 -1
  225. package/dist/utils/table-ref-parser.js +1 -1
  226. package/dist/utils/tdx-logger.js +1 -1
  227. package/dist/utils/version-check.js +1 -1
  228. package/package.json +1 -1
@@ -1 +1 @@
1
- const a205_0x277be3=a205_0x4cf5;function a205_0x521c(){const _0x2006a1=['152UHCdgF','test','Not\x20Found','register','application/json','map','mockImplementation','Forbidden','parse','length','get','toLowerCase','requests','Bad\x20Gateway','getRequests','stubs','withQuery','https://api.treasuredata.com/errors/','885zCoWSR','string','Bad\x20Request','34752MwFmwm','textResponse','jsonResponseWithHeaders','matchCount','getStatusText','errorResponse','Request\x20body:\x20','Unmatched\x20stub','forEach','3731LqriUu','Too\x20Many\x20Requests','toUpperCase','pathname','28dsMzLD','fail','text/plain','No\x20stub\x20matched\x20request:\x20','function','every','method','REST','isArray','GET','1hlvuOZ','some','description','reset','parseRequest','td-api','stringify','6561269elRdMk','4048fRiAvR','339566ifKJEU','headers','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Internal\x20Server\x20Error','slice','join','\x20\x20(none)','body','stack','wasCalled','Service\x20Unavailable','fetchMock','url','Registered\x20stubs:\x0a','9XmNyiC','4765470BlbYYU','withHost','unnamed\x20stub','2959YBkRGz','Unauthorized','12318XAfzvL','matched','push','entries','includes','split','responder','Conflict','verify','createFetch','filter','4524wvONoc'];a205_0x521c=function(){return _0x2006a1;};return a205_0x521c();}(function(_0x4821f6,_0x1cbe01){const _0x122154=a205_0x4cf5,_0x9c10dc=_0x4821f6();while(!![]){try{const _0x25f2aa=-parseInt(_0x122154(0xb3))/0x1*(-parseInt(_0x122154(0xbc))/0x2)+parseInt(_0x122154(0x9c))/0x3*(-parseInt(_0x122154(0x87))/0x4)+parseInt(_0x122154(0x99))/0x5*(parseInt(_0x122154(0x7b))/0x6)+parseInt(_0x122154(0xa5))/0x7*(-parseInt(_0x122154(0xbb))/0x8)+parseInt(_0x122154(0x75))/0x9*(-parseInt(_0x122154(0x76))/0xa)+-parseInt(_0x122154(0x79))/0xb*(parseInt(_0x122154(0x86))/0xc)+parseInt(_0x122154(0xba))/0xd*(parseInt(_0x122154(0xa9))/0xe);if(_0x25f2aa===_0x1cbe01)break;else _0x9c10dc['push'](_0x9c10dc['shift']());}catch(_0x515417){_0x9c10dc['push'](_0x9c10dc['shift']());}}}(a205_0x521c,0x3e314));function a205_0x4cf5(_0x38c478,_0x5eb0d7){_0x38c478=_0x38c478-0x73;const _0x521cd9=a205_0x521c();let _0x4cf584=_0x521cd9[_0x38c478];return _0x4cf584;}import{vi}from'vitest';export class HTTPMockRegistry{[a205_0x277be3(0x96)]=[];['requests']=[];[a205_0x277be3(0xc7)]=null;[a205_0x277be3(0xb0)](_0xa9dfdc,_0x296808){return _0x4588d1=>{const _0x3ab66f=a205_0x4cf5;if(_0x4588d1[_0x3ab66f(0xaf)][_0x3ab66f(0xa7)]()!==_0xa9dfdc[_0x3ab66f(0xa7)]())return![];const _0x41c466=new URL(_0x4588d1['url']);if(typeof _0x296808===_0x3ab66f(0x9a))return _0x41c466[_0x3ab66f(0xa8)]===_0x296808||_0x41c466[_0x3ab66f(0xa8)][_0x3ab66f(0x7f)](_0x296808);return _0x296808[_0x3ab66f(0x88)](_0x41c466[_0x3ab66f(0xa8)]);};}[a205_0x277be3(0x97)](_0x18fa4a,_0x1e5cc6){return _0x595ef5=>{const _0x1e8513=a205_0x4cf5;if(!_0x18fa4a(_0x595ef5))return![];const _0x474d12=new URL(_0x595ef5['url']);return Object[_0x1e8513(0x7e)](_0x1e5cc6)[_0x1e8513(0xae)](([_0x562756,_0x332df7])=>_0x474d12['searchParams'][_0x1e8513(0x91)](_0x562756)===_0x332df7);};}['withBody'](_0x136255,_0x2b03ac){return _0x27b78d=>{const _0x4b6bf5=a205_0x4cf5;if(!_0x136255(_0x27b78d))return![];if(typeof _0x2b03ac===_0x4b6bf5(0xad))return _0x2b03ac(_0x27b78d['body']);return JSON[_0x4b6bf5(0xb9)](_0x27b78d[_0x4b6bf5(0xc3)])===JSON[_0x4b6bf5(0xb9)](_0x2b03ac);};}[a205_0x277be3(0x77)](_0x47cde2,_0x3fe7c0){return _0x5ad4f7=>{const _0x123223=a205_0x4cf5;if(!_0x47cde2(_0x5ad4f7))return![];const _0xba9a7a=new URL(_0x5ad4f7[_0x123223(0x73)]);return _0xba9a7a['host']===_0x3fe7c0;};}[a205_0x277be3(0x8a)](_0xf21bae,_0x5c1356,_0xc0889b){const _0x544708=a205_0x277be3;this[_0x544708(0x96)][_0x544708(0x7d)]({'matcher':_0xf21bae,'responder':_0x5c1356,'matched':![],'matchCount':0x0,'stack':new Error()[_0x544708(0xc4)]??'','description':_0xc0889b?.[_0x544708(0xb5)]});}['registerWithInspector'](_0x1e6279,_0x45978e,_0x27bc02){const _0x1fe221=a205_0x277be3,_0x4ddc0d=_0x21eabb=>{const _0x5a5eed=a205_0x4cf5;return _0x27bc02(_0x21eabb[_0x5a5eed(0xc3)],_0x21eabb),_0x45978e(_0x21eabb);};this[_0x1fe221(0x8a)](_0x1e6279,_0x4ddc0d);}static['jsonResponse'](_0x2360b7,_0x31d71d=0xc8){const _0x52d7ad=a205_0x277be3;return()=>new Response(JSON[_0x52d7ad(0xb9)](_0x2360b7),{'status':_0x31d71d,'headers':{'Content-Type':_0x52d7ad(0x8b)}});}static[a205_0x277be3(0xa1)](_0x52a01c,_0x40bd99,_0x1f173a='simple'){return()=>{const _0x446b2a=a205_0x4cf5;let _0x37e63b;switch(_0x1f173a){case _0x446b2a(0xb8):_0x37e63b={'errors':{'error':_0x40bd99,'message':_0x40bd99,'severity':'error','status_code':_0x52a01c}};break;case'rfc9457':_0x37e63b={'type':_0x446b2a(0x98)+_0x52a01c,'title':HTTPMockRegistry[_0x446b2a(0xa0)](_0x52a01c),'status':_0x52a01c,'detail':_0x40bd99};break;default:_0x37e63b={'error':_0x40bd99};}return new Response(JSON[_0x446b2a(0xb9)](_0x37e63b),{'status':_0x52a01c,'headers':{'Content-Type':_0x446b2a(0x8b)}});};}static[a205_0x277be3(0x9e)](_0x474dc4,_0x35f562,_0x3a5e9a=0xc8){const _0x37a5d6=a205_0x277be3;return()=>new Response(JSON[_0x37a5d6(0xb9)](_0x474dc4),{'status':_0x3a5e9a,'headers':{'Content-Type':_0x37a5d6(0x8b),..._0x35f562}});}static[a205_0x277be3(0x9d)](_0x9e32d4,_0x149ebd=0xc8){const _0x5bc542=a205_0x277be3;return()=>new Response(_0x9e32d4,{'status':_0x149ebd,'headers':{'Content-Type':_0x5bc542(0xab)}});}static['networkError'](_0x1bd490){return()=>{throw new Error(_0x1bd490);};}[a205_0x277be3(0x84)](){const _0x1d452e=a205_0x277be3;return this[_0x1d452e(0xc7)]=vi['fn']()[_0x1d452e(0x8d)](async(_0x79a2b5,_0x4da816)=>{const _0x449afa=_0x1d452e,_0x37a8d7=this[_0x449afa(0xb7)](_0x79a2b5,_0x4da816);this['requests']['push'](_0x37a8d7);for(const _0x23b1d1 of this['stubs']){if(_0x23b1d1['matcher'](_0x37a8d7))return _0x23b1d1[_0x449afa(0x7c)]=!![],_0x23b1d1[_0x449afa(0x9f)]++,_0x23b1d1[_0x449afa(0x81)](_0x37a8d7);}const _0x9367d0=this[_0x449afa(0x96)][_0x449afa(0x8c)]((_0x57f3f5,_0x26aadc)=>'\x20\x20'+(_0x26aadc+0x1)+'.\x20'+(_0x57f3f5['description']??_0x449afa(0x78)))[_0x449afa(0xc1)]('\x0a');throw new Error(_0x449afa(0xac)+_0x37a8d7[_0x449afa(0xaf)]+'\x20'+_0x37a8d7['url']+'\x0a'+(_0x449afa(0xa2)+JSON[_0x449afa(0xb9)](_0x37a8d7['body'])+'\x0a')+(_0x449afa(0x74)+(_0x9367d0||_0x449afa(0xc2))));}),this[_0x1d452e(0xc7)];}['parseRequest'](_0x4fbde5,_0x3fef3c){const _0x31ac74=a205_0x277be3,_0x5aa8b0={};if(_0x3fef3c?.[_0x31ac74(0xbd)]){if(_0x3fef3c['headers']instanceof Headers)_0x3fef3c[_0x31ac74(0xbd)][_0x31ac74(0xa4)]((_0x75fe1c,_0x7f0673)=>{const _0x5aeefe=_0x31ac74;_0x5aa8b0[_0x7f0673[_0x5aeefe(0x92)]()]=_0x75fe1c;});else{if(Array[_0x31ac74(0xb1)](_0x3fef3c[_0x31ac74(0xbd)]))for(const [_0x1e4512,_0x113d33]of _0x3fef3c[_0x31ac74(0xbd)]){_0x5aa8b0[_0x1e4512['toLowerCase']()]=_0x113d33;}else for(const [_0x538734,_0x407d9b]of Object[_0x31ac74(0x7e)](_0x3fef3c[_0x31ac74(0xbd)])){_0x407d9b!==undefined&&(_0x5aa8b0[_0x538734['toLowerCase']()]=_0x407d9b);}}}let _0x3a908d;if(_0x3fef3c?.[_0x31ac74(0xc3)])try{_0x3a908d=JSON[_0x31ac74(0x8f)](_0x3fef3c[_0x31ac74(0xc3)]);}catch{_0x3a908d=_0x3fef3c['body'];}return{'method':_0x3fef3c?.[_0x31ac74(0xaf)]??_0x31ac74(0xb2),'url':_0x4fbde5,'headers':_0x5aa8b0,'body':_0x3a908d};}[a205_0x277be3(0x83)](_0x58810b){const _0x590d30=a205_0x277be3,_0x31b8bf=this[_0x590d30(0x96)][_0x590d30(0x85)](_0x779b54=>!_0x779b54[_0x590d30(0x7c)]);if(_0x31b8bf[_0x590d30(0x90)]>0x0){const _0x56e30b=_0x31b8bf[_0x590d30(0x8c)](_0x18ae4c=>{const _0xad3e4b=_0x590d30,_0x3e3e17=_0x18ae4c[_0xad3e4b(0xb5)]?'\x20('+_0x18ae4c[_0xad3e4b(0xb5)]+')':'',_0x2cd4e=_0x18ae4c[_0xad3e4b(0xc4)][_0xad3e4b(0x80)]('\x0a')[_0xad3e4b(0xc0)](0x2,0x5)['join']('\x0a');return _0xad3e4b(0xa3)+_0x3e3e17+'\x20registered\x20at:\x0a'+_0x2cd4e;});_0x58810b[_0x590d30(0xaa)](_0x31b8bf[_0x590d30(0x90)]+_0x590d30(0xbe)+_0x56e30b['join']('\x0a\x0a'));}}[a205_0x277be3(0x95)](){const _0x37ac15=a205_0x277be3;return[...this[_0x37ac15(0x93)]];}['getLastRequest'](){const _0x17c0f7=a205_0x277be3;return this[_0x17c0f7(0x93)][this[_0x17c0f7(0x93)][_0x17c0f7(0x90)]-0x1];}[a205_0x277be3(0xc5)](_0x5021b4,_0x1c76dd){const _0x170c80=a205_0x277be3;return this['requests'][_0x170c80(0xb4)](_0x13177b=>{const _0x202d4f=_0x170c80;if(_0x13177b[_0x202d4f(0xaf)]['toUpperCase']()!==_0x5021b4['toUpperCase']())return![];if(typeof _0x1c76dd==='string')return _0x13177b[_0x202d4f(0x73)][_0x202d4f(0x7f)](_0x1c76dd);return _0x1c76dd['test'](_0x13177b['url']);});}['getMatchCount'](_0x54b0ad){const _0x3c5008=a205_0x277be3;return this[_0x3c5008(0x96)][_0x54b0ad]?.[_0x3c5008(0x9f)]??0x0;}[a205_0x277be3(0xb6)](){const _0x5ae072=a205_0x277be3;this[_0x5ae072(0x96)]=[],this[_0x5ae072(0x93)]=[],this['fetchMock']=null;}static[a205_0x277be3(0xa0)](_0x430088){const _0x7be7fb=a205_0x277be3,_0x50d859={0xc8:'OK',0xc9:'Created',0xcc:'No\x20Content',0x190:_0x7be7fb(0x9b),0x191:_0x7be7fb(0x7a),0x193:_0x7be7fb(0x8e),0x194:_0x7be7fb(0x89),0x199:_0x7be7fb(0x82),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x7be7fb(0xa6),0x1f4:_0x7be7fb(0xbf),0x1f6:_0x7be7fb(0x94),0x1f7:_0x7be7fb(0xc6)};return _0x50d859[_0x430088]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ function a205_0x3eed(){const _0x34dca5=['application/json','parseRequest','Unmatched\x20stub','Bad\x20Gateway','forEach','Too\x20Many\x20Requests','fetchMock','slice','string','toLowerCase','description','8OjxjAJ','461696KGGSoP','No\x20stub\x20matched\x20request:\x20','11ZOXZkE','8620jKRNsy','Unknown','4241724DUOOlQ','30IoFDeC','host','isArray','push','mockImplementation','length','pathname','verify','Internal\x20Server\x20Error','every','jsonResponseWithHeaders','stubs','some','networkError','getStatusText','fail','Request\x20body:\x20','registerWithInspector','51365olDevl','withQuery','27poJseV','stack','Service\x20Unavailable','test','209594WhSJVy','unnamed\x20stub','body','requests','163094BgaGYj','split','parse','map','toUpperCase','wasCalled','rfc9457','stringify','No\x20Content','method','getLastRequest','textResponse','Bad\x20Request','join','searchParams','7420400KFdzjl','includes','headers','Forbidden','Created','responder','11565MwCseY','simple','errorResponse','GET','entries','matchCount','matcher','jsonResponse','td-api','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','url','filter','withBody','Registered\x20stubs:\x0a','getRequests'];a205_0x3eed=function(){return _0x34dca5;};return a205_0x3eed();}const a205_0x179897=a205_0x32be;(function(_0x3cead9,_0x33b5b0){const _0x28ab91=a205_0x32be,_0x11d0e0=_0x3cead9();while(!![]){try{const _0xcb9faa=-parseInt(_0x28ab91(0xba))/0x1+parseInt(_0x28ab91(0xdc))/0x2*(-parseInt(_0x28ab91(0xd4))/0x3)+parseInt(_0x28ab91(0xb9))/0x4*(parseInt(_0x28ab91(0xd2))/0x5)+-parseInt(_0x28ab91(0xc0))/0x6*(-parseInt(_0x28ab91(0xd8))/0x7)+parseInt(_0x28ab91(0xeb))/0x8+-parseInt(_0x28ab91(0xf1))/0x9*(-parseInt(_0x28ab91(0xbd))/0xa)+-parseInt(_0x28ab91(0xbc))/0xb*(parseInt(_0x28ab91(0xbf))/0xc);if(_0xcb9faa===_0x33b5b0)break;else _0x11d0e0['push'](_0x11d0e0['shift']());}catch(_0x25fcf5){_0x11d0e0['push'](_0x11d0e0['shift']());}}}(a205_0x3eed,0xa03fc));import{vi}from'vitest';export class HTTPMockRegistry{[a205_0x179897(0xcb)]=[];[a205_0x179897(0xdb)]=[];[a205_0x179897(0xb4)]=null;['REST'](_0x37fb44,_0xaa3112){return _0x4efbe7=>{const _0x4d2491=a205_0x32be;if(_0x4efbe7[_0x4d2491(0xe5)][_0x4d2491(0xe0)]()!==_0x37fb44['toUpperCase']())return![];const _0x1b47f6=new URL(_0x4efbe7[_0x4d2491(0xa9)]);if(typeof _0xaa3112==='string')return _0x1b47f6[_0x4d2491(0xc6)]===_0xaa3112||_0x1b47f6['pathname']['includes'](_0xaa3112);return _0xaa3112[_0x4d2491(0xd7)](_0x1b47f6[_0x4d2491(0xc6)]);};}[a205_0x179897(0xd3)](_0xf0d2f6,_0xacfd93){return _0x459a13=>{const _0x3d7f05=a205_0x32be;if(!_0xf0d2f6(_0x459a13))return![];const _0x80495a=new URL(_0x459a13[_0x3d7f05(0xa9)]);return Object[_0x3d7f05(0xa3)](_0xacfd93)[_0x3d7f05(0xc9)](([_0xd50ff5,_0x1c5c31])=>_0x80495a[_0x3d7f05(0xea)]['get'](_0xd50ff5)===_0x1c5c31);};}[a205_0x179897(0xab)](_0x1cadce,_0x5bfe5e){return _0x3f6a45=>{const _0x13588d=a205_0x32be;if(!_0x1cadce(_0x3f6a45))return![];if(typeof _0x5bfe5e==='function')return _0x5bfe5e(_0x3f6a45[_0x13588d(0xda)]);return JSON[_0x13588d(0xe3)](_0x3f6a45[_0x13588d(0xda)])===JSON[_0x13588d(0xe3)](_0x5bfe5e);};}['withHost'](_0x3c9fb1,_0x4433e0){return _0x14f1c8=>{const _0x3fd6a3=a205_0x32be;if(!_0x3c9fb1(_0x14f1c8))return![];const _0x43887e=new URL(_0x14f1c8[_0x3fd6a3(0xa9)]);return _0x43887e[_0x3fd6a3(0xc1)]===_0x4433e0;};}['register'](_0x18a0a4,_0x51d566,_0x2955ba){const _0x58c890=a205_0x179897;this[_0x58c890(0xcb)][_0x58c890(0xc3)]({'matcher':_0x18a0a4,'responder':_0x51d566,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x2955ba?.[_0x58c890(0xb8)]});}[a205_0x179897(0xd1)](_0x648341,_0x52b793,_0x42c569){const _0x284421=_0x42b989=>{return _0x42c569(_0x42b989['body'],_0x42b989),_0x52b793(_0x42b989);};this['register'](_0x648341,_0x284421);}static[a205_0x179897(0xa6)](_0x3742c3,_0x551c01=0xc8){const _0x546b48=a205_0x179897;return()=>new Response(JSON[_0x546b48(0xe3)](_0x3742c3),{'status':_0x551c01,'headers':{'Content-Type':_0x546b48(0xae)}});}static[a205_0x179897(0xa1)](_0x37f601,_0x2329da,_0x2c4e08=a205_0x179897(0xa0)){return()=>{const _0x71606e=a205_0x32be;let _0x4e3036;switch(_0x2c4e08){case _0x71606e(0xa7):_0x4e3036={'errors':{'error':_0x2329da,'message':_0x2329da,'severity':'error','status_code':_0x37f601}};break;case _0x71606e(0xe2):_0x4e3036={'type':'https://api.treasuredata.com/errors/'+_0x37f601,'title':HTTPMockRegistry[_0x71606e(0xce)](_0x37f601),'status':_0x37f601,'detail':_0x2329da};break;default:_0x4e3036={'error':_0x2329da};}return new Response(JSON[_0x71606e(0xe3)](_0x4e3036),{'status':_0x37f601,'headers':{'Content-Type':_0x71606e(0xae)}});};}static[a205_0x179897(0xca)](_0x495b62,_0x459654,_0x3eb6cc=0xc8){const _0x782f17=a205_0x179897;return()=>new Response(JSON[_0x782f17(0xe3)](_0x495b62),{'status':_0x3eb6cc,'headers':{'Content-Type':_0x782f17(0xae),..._0x459654}});}static[a205_0x179897(0xe7)](_0x5dbc3d,_0x3e4da5=0xc8){return()=>new Response(_0x5dbc3d,{'status':_0x3e4da5,'headers':{'Content-Type':'text/plain'}});}static[a205_0x179897(0xcd)](_0x62f169){return()=>{throw new Error(_0x62f169);};}['createFetch'](){const _0x76e4df=a205_0x179897;return this[_0x76e4df(0xb4)]=vi['fn']()[_0x76e4df(0xc4)](async(_0x3cfef9,_0x6700aa)=>{const _0x415a0f=_0x76e4df,_0x519e9f=this[_0x415a0f(0xaf)](_0x3cfef9,_0x6700aa);this[_0x415a0f(0xdb)]['push'](_0x519e9f);for(const _0x3d4ee0 of this[_0x415a0f(0xcb)]){if(_0x3d4ee0[_0x415a0f(0xa5)](_0x519e9f))return _0x3d4ee0['matched']=!![],_0x3d4ee0[_0x415a0f(0xa4)]++,_0x3d4ee0[_0x415a0f(0xf0)](_0x519e9f);}const _0x49062d=this['stubs'][_0x415a0f(0xdf)]((_0x4b7381,_0x6a7053)=>'\x20\x20'+(_0x6a7053+0x1)+'.\x20'+(_0x4b7381['description']??_0x415a0f(0xd9)))[_0x415a0f(0xe9)]('\x0a');throw new Error(_0x415a0f(0xbb)+_0x519e9f[_0x415a0f(0xe5)]+'\x20'+_0x519e9f[_0x415a0f(0xa9)]+'\x0a'+(_0x415a0f(0xd0)+JSON[_0x415a0f(0xe3)](_0x519e9f[_0x415a0f(0xda)])+'\x0a')+(_0x415a0f(0xac)+(_0x49062d||'\x20\x20(none)')));}),this[_0x76e4df(0xb4)];}[a205_0x179897(0xaf)](_0x1ad903,_0x17d087){const _0x478e9d=a205_0x179897,_0x5711ba={};if(_0x17d087?.[_0x478e9d(0xed)]){if(_0x17d087[_0x478e9d(0xed)]instanceof Headers)_0x17d087['headers'][_0x478e9d(0xb2)]((_0x299183,_0x1a7895)=>{const _0x59ae81=_0x478e9d;_0x5711ba[_0x1a7895[_0x59ae81(0xb7)]()]=_0x299183;});else{if(Array[_0x478e9d(0xc2)](_0x17d087[_0x478e9d(0xed)]))for(const [_0x313fd6,_0x269046]of _0x17d087[_0x478e9d(0xed)]){_0x5711ba[_0x313fd6[_0x478e9d(0xb7)]()]=_0x269046;}else for(const [_0x7c3be8,_0x9ca51f]of Object[_0x478e9d(0xa3)](_0x17d087['headers'])){_0x9ca51f!==undefined&&(_0x5711ba[_0x7c3be8[_0x478e9d(0xb7)]()]=_0x9ca51f);}}}let _0x200556;if(_0x17d087?.[_0x478e9d(0xda)])try{_0x200556=JSON[_0x478e9d(0xde)](_0x17d087[_0x478e9d(0xda)]);}catch{_0x200556=_0x17d087[_0x478e9d(0xda)];}return{'method':_0x17d087?.[_0x478e9d(0xe5)]??_0x478e9d(0xa2),'url':_0x1ad903,'headers':_0x5711ba,'body':_0x200556};}[a205_0x179897(0xc7)](_0x21132f){const _0x542d83=a205_0x179897,_0x2fa9e6=this[_0x542d83(0xcb)][_0x542d83(0xaa)](_0x2ebbae=>!_0x2ebbae['matched']);if(_0x2fa9e6[_0x542d83(0xc5)]>0x0){const _0x36e9e7=_0x2fa9e6['map'](_0x1bfe25=>{const _0x36d859=_0x542d83,_0x450769=_0x1bfe25[_0x36d859(0xb8)]?'\x20('+_0x1bfe25[_0x36d859(0xb8)]+')':'',_0x3c0986=_0x1bfe25[_0x36d859(0xd5)][_0x36d859(0xdd)]('\x0a')[_0x36d859(0xb5)](0x2,0x5)[_0x36d859(0xe9)]('\x0a');return _0x36d859(0xb0)+_0x450769+'\x20registered\x20at:\x0a'+_0x3c0986;});_0x21132f[_0x542d83(0xcf)](_0x2fa9e6['length']+_0x542d83(0xa8)+_0x36e9e7[_0x542d83(0xe9)]('\x0a\x0a'));}}[a205_0x179897(0xad)](){const _0x2c77e1=a205_0x179897;return[...this[_0x2c77e1(0xdb)]];}[a205_0x179897(0xe6)](){const _0x54172d=a205_0x179897;return this[_0x54172d(0xdb)][this[_0x54172d(0xdb)][_0x54172d(0xc5)]-0x1];}[a205_0x179897(0xe1)](_0x36a15e,_0xb4db83){const _0x1fa610=a205_0x179897;return this[_0x1fa610(0xdb)][_0x1fa610(0xcc)](_0x441e5d=>{const _0x3854c9=_0x1fa610;if(_0x441e5d[_0x3854c9(0xe5)]['toUpperCase']()!==_0x36a15e[_0x3854c9(0xe0)]())return![];if(typeof _0xb4db83===_0x3854c9(0xb6))return _0x441e5d['url'][_0x3854c9(0xec)](_0xb4db83);return _0xb4db83[_0x3854c9(0xd7)](_0x441e5d[_0x3854c9(0xa9)]);});}['getMatchCount'](_0x14ad84){const _0xa9d6d8=a205_0x179897;return this[_0xa9d6d8(0xcb)][_0x14ad84]?.[_0xa9d6d8(0xa4)]??0x0;}['reset'](){const _0xedac82=a205_0x179897;this[_0xedac82(0xcb)]=[],this[_0xedac82(0xdb)]=[],this['fetchMock']=null;}static[a205_0x179897(0xce)](_0x5d1238){const _0x14ca94=a205_0x179897,_0x1d885b={0xc8:'OK',0xc9:_0x14ca94(0xef),0xcc:_0x14ca94(0xe4),0x190:_0x14ca94(0xe8),0x191:'Unauthorized',0x193:_0x14ca94(0xee),0x194:'Not\x20Found',0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:_0x14ca94(0xb3),0x1f4:_0x14ca94(0xc8),0x1f6:_0x14ca94(0xb1),0x1f7:_0x14ca94(0xd6)};return _0x1d885b[_0x5d1238]??_0x14ca94(0xbe);}}function a205_0x32be(_0x48e9b1,_0x4069d5){_0x48e9b1=_0x48e9b1-0xa0;const _0x3eed94=a205_0x3eed();let _0x32be12=_0x3eed94[_0x48e9b1];return _0x32be12;}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x5dd6b6,_0x32ab77){var _0x38fc05=a206_0xeae4,_0x5d9171=_0x5dd6b6();while(!![]){try{var _0x3dbc08=-parseInt(_0x38fc05(0xd1))/0x1*(parseInt(_0x38fc05(0xd4))/0x2)+parseInt(_0x38fc05(0xd5))/0x3*(parseInt(_0x38fc05(0xd7))/0x4)+parseInt(_0x38fc05(0xd2))/0x5+parseInt(_0x38fc05(0xda))/0x6*(-parseInt(_0x38fc05(0xd6))/0x7)+-parseInt(_0x38fc05(0xd3))/0x8+parseInt(_0x38fc05(0xd9))/0x9+parseInt(_0x38fc05(0xd8))/0xa*(parseInt(_0x38fc05(0xdb))/0xb);if(_0x3dbc08===_0x32ab77)break;else _0x5d9171['push'](_0x5d9171['shift']());}catch(_0x132a63){_0x5d9171['push'](_0x5d9171['shift']());}}}(a206_0x4bb9,0x4b4f7));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a206_0xeae4(_0x4cecf8,_0x3e48ec){_0x4cecf8=_0x4cecf8-0xd1;var _0x4bb9ad=a206_0x4bb9();var _0xeae423=_0x4bb9ad[_0x4cecf8];return _0xeae423;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a206_0x4bb9(){var _0x4fd6e6=['6CYEFIW','21hAJCQy','168PZDIwD','274940LElwYx','90siaERH','2346750TmMScW','142038YeTpNM','955207LderSf','157086kXxXnC','1987400mYziNj','4584216dpdJkH'];a206_0x4bb9=function(){return _0x4fd6e6;};return a206_0x4bb9();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a206_0x4263(){var _0x4f5740=['2516652pEmkcb','422002WjJhtk','80EICsea','215618Zzepyq','5010510hsxlty','68988jBYUtz','10wdyUrl','275014lkoeBT','15018309jMvMsj'];a206_0x4263=function(){return _0x4f5740;};return a206_0x4263();}(function(_0x5b1b67,_0x38670f){var _0xfbba04=a206_0x3c4f,_0x5c7aed=_0x5b1b67();while(!![]){try{var _0x38b85f=-parseInt(_0xfbba04(0x185))/0x1+parseInt(_0xfbba04(0x189))/0x2+-parseInt(_0xfbba04(0x18b))/0x3+-parseInt(_0xfbba04(0x187))/0x4*(parseInt(_0xfbba04(0x188))/0x5)+-parseInt(_0xfbba04(0x186))/0x6+-parseInt(_0xfbba04(0x18c))/0x7*(-parseInt(_0xfbba04(0x184))/0x8)+parseInt(_0xfbba04(0x18a))/0x9;if(_0x38b85f===_0x38670f)break;else _0x5c7aed['push'](_0x5c7aed['shift']());}catch(_0x4f6c9f){_0x5c7aed['push'](_0x5c7aed['shift']());}}}(a206_0x4263,0x7667b));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a206_0x3c4f(_0x45697e,_0x30f191){_0x45697e=_0x45697e-0x184;var _0x426370=a206_0x4263();var _0x3c4fac=_0x426370[_0x45697e];return _0x3c4fac;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- (function(_0xefa1a0,_0x4514d7){const _0x4ee278=a207_0x338f,_0x4500d8=_0xefa1a0();while(!![]){try{const _0x32851e=parseInt(_0x4ee278(0x134))/0x1*(-parseInt(_0x4ee278(0x13d))/0x2)+-parseInt(_0x4ee278(0x13a))/0x3*(parseInt(_0x4ee278(0x133))/0x4)+parseInt(_0x4ee278(0x13c))/0x5+parseInt(_0x4ee278(0x132))/0x6+parseInt(_0x4ee278(0x135))/0x7+-parseInt(_0x4ee278(0x136))/0x8+parseInt(_0x4ee278(0x13b))/0x9;if(_0x32851e===_0x4514d7)break;else _0x4500d8['push'](_0x4500d8['shift']());}catch(_0x3e509f){_0x4500d8['push'](_0x4500d8['shift']());}}}(a207_0x1470,0xb2250));function a207_0x338f(_0x3f1b6b,_0x4faa0b){_0x3f1b6b=_0x3f1b6b-0x132;const _0x14704e=a207_0x1470();let _0x338f35=_0x14704e[_0x3f1b6b];return _0x338f35;}function a207_0x1470(){const _0x3616f8=['22654674tbYBrJ','2053510UnNdGr','8uTXvxG','336684lEzplF','11992UnTvYu','287939DoDSeJ','297346nLnMul','8248960YVmuPE','push','all','map','114RStczo'];a207_0x1470=function(){return _0x3616f8;};return a207_0x1470();}export async function batchAsync(_0x39a8fb,_0x561707,_0x53d1bd=0xa){const _0x144ee5=a207_0x338f,_0x29d498=[];for(let _0x493f3b=0x0;_0x493f3b<_0x39a8fb['length'];_0x493f3b+=_0x53d1bd){const _0x6f600d=_0x39a8fb['slice'](_0x493f3b,_0x493f3b+_0x53d1bd),_0x3be97c=await Promise[_0x144ee5(0x138)](_0x6f600d[_0x144ee5(0x139)](_0x561707));_0x29d498[_0x144ee5(0x137)](..._0x3be97c);}return _0x29d498;}
1
+ (function(_0x4ce6cb,_0x4179e9){const _0x483d11=a207_0x39d7,_0x364739=_0x4ce6cb();while(!![]){try{const _0x2e939f=-parseInt(_0x483d11(0x11d))/0x1*(parseInt(_0x483d11(0x120))/0x2)+-parseInt(_0x483d11(0x12d))/0x3*(parseInt(_0x483d11(0x121))/0x4)+parseInt(_0x483d11(0x12a))/0x5*(-parseInt(_0x483d11(0x12c))/0x6)+-parseInt(_0x483d11(0x125))/0x7+parseInt(_0x483d11(0x127))/0x8+-parseInt(_0x483d11(0x12b))/0x9*(-parseInt(_0x483d11(0x129))/0xa)+parseInt(_0x483d11(0x124))/0xb*(parseInt(_0x483d11(0x122))/0xc);if(_0x2e939f===_0x4179e9)break;else _0x364739['push'](_0x364739['shift']());}catch(_0x6aced2){_0x364739['push'](_0x364739['shift']());}}}(a207_0x1fd8,0xa103b));function a207_0x39d7(_0x43e107,_0x26e023){_0x43e107=_0x43e107-0x11d;const _0x1fd80a=a207_0x1fd8();let _0x39d7ae=_0x1fd80a[_0x43e107];return _0x39d7ae;}function a207_0x1fd8(){const _0x3550a9=['30QPTYNt','274115AjAqiE','582651wVFcwR','12yXBxLd','9sbzsnq','5etVvaH','push','slice','275054RJDtYS','825992AAapSF','4540164TCLqsI','map','77fraefz','5574037FiYrFQ','all','239480ikxSpN','length'];a207_0x1fd8=function(){return _0x3550a9;};return a207_0x1fd8();}export async function batchAsync(_0x2fe8e5,_0x1d050f,_0x5ecf98=0xa){const _0x386d3a=a207_0x39d7,_0x1b21cc=[];for(let _0x391dc9=0x0;_0x391dc9<_0x2fe8e5[_0x386d3a(0x128)];_0x391dc9+=_0x5ecf98){const _0x5ee063=_0x2fe8e5[_0x386d3a(0x11f)](_0x391dc9,_0x391dc9+_0x5ecf98),_0x5d6880=await Promise[_0x386d3a(0x126)](_0x5ee063[_0x386d3a(0x123)](_0x1d050f));_0x1b21cc[_0x386d3a(0x11e)](..._0x5d6880);}return _0x1b21cc;}
@@ -1 +1 @@
1
- const a208_0x3a9c33=a208_0xf455;function a208_0xf455(_0x439475,_0x2371bc){_0x439475=_0x439475-0xab;const _0x3d1593=a208_0x3d15();let _0xf45572=_0x3d1593[_0x439475];return _0xf45572;}(function(_0x346595,_0xa8b3c1){const _0x5a4b47=a208_0xf455,_0x5bb791=_0x346595();while(!![]){try{const _0x283254=parseInt(_0x5a4b47(0xac))/0x1*(parseInt(_0x5a4b47(0xc6))/0x2)+-parseInt(_0x5a4b47(0xba))/0x3+parseInt(_0x5a4b47(0xae))/0x4*(-parseInt(_0x5a4b47(0xc7))/0x5)+-parseInt(_0x5a4b47(0xad))/0x6+-parseInt(_0x5a4b47(0xb5))/0x7+parseInt(_0x5a4b47(0xc2))/0x8+-parseInt(_0x5a4b47(0xab))/0x9*(-parseInt(_0x5a4b47(0xc8))/0xa);if(_0x283254===_0xa8b3c1)break;else _0x5bb791['push'](_0x5bb791['shift']());}catch(_0x500cd5){_0x5bb791['push'](_0x5bb791['shift']());}}}(a208_0x3d15,0x34aae));import*as a208_0x5e2643 from'chalk';const Chalk=a208_0x5e2643[a208_0x3a9c33(0xb7)];export function shouldUseColor(_0x2ebca7={}){const _0x433eda=a208_0x3a9c33;if(_0x2ebca7[_0x433eda(0xc4)]===!![])return![];if(_0x2ebca7[_0x433eda(0xbe)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x433eda(0xb8)][_0x433eda(0xbd)]??![];}export function getChalk(_0x8de7e4={}){if(shouldUseColor(_0x8de7e4))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4b3aab,_0x5ec889={}){const _0x1d5c2f=a208_0x3a9c33;return getChalk(_0x5ec889)[_0x1d5c2f(0xb1)](_0x4b3aab);}function a208_0x3d15(){const _0x4dc9ff=['1170wujwsE','2779690ziJKfk','map','entries','9tARjiA','77769XAZyMK','831564hRTgqj','3784znQYap','number','object','dim','cyan','length','join','876932ezJDGS','null','Chalk','stdout','green','482319xuxLRU','boolean','blue','isTTY','color','isArray','repeat','yellow','2803656tCsudg','string','noColor','stringify','6DFNtdc'];a208_0x3d15=function(){return _0x4dc9ff;};return a208_0x3d15();}export function colorHeader(_0x492724,_0x1ce4a0={}){const _0x587d64=a208_0x3a9c33;return getChalk(_0x1ce4a0)[_0x587d64(0xb2)](_0x492724);}export function colorType(_0x72cd3d,_0x3bf1a5={}){return getChalk(_0x3bf1a5)['dim'](_0x72cd3d);}export function colorJSONKey(_0x3a71ef,_0x1e1da0={}){const _0x324d94=a208_0x3a9c33;return getChalk(_0x1e1da0)[_0x324d94(0xbc)](_0x3a71ef);}export function colorJSONString(_0x36babc,_0x4e599b={}){const _0x55535f=a208_0x3a9c33;return getChalk(_0x4e599b)[_0x55535f(0xb9)](_0x36babc);}export function colorJSONNumber(_0x572592,_0x3fd382={}){return getChalk(_0x3fd382)['cyan'](_0x572592);}export function colorJSONBoolean(_0x4b1136,_0x1039ef={}){const _0xb9002c=a208_0x3a9c33;return getChalk(_0x1039ef)[_0xb9002c(0xc1)](_0x4b1136);}export function colorJSONNull(_0x1fbe71,_0x22a863={}){const _0x183dab=a208_0x3a9c33;return getChalk(_0x22a863)[_0x183dab(0xb1)](_0x1fbe71);}export function colorizeJSONCompact(_0x1c9332,_0x373ec0={}){const _0x29d62c=a208_0x3a9c33;if(!shouldUseColor(_0x373ec0))return JSON[_0x29d62c(0xc5)](_0x1c9332);if(_0x1c9332===null)return colorJSONNull(_0x29d62c(0xb6),_0x373ec0);if(typeof _0x1c9332===_0x29d62c(0xbb))return colorJSONBoolean(String(_0x1c9332),_0x373ec0);if(typeof _0x1c9332===_0x29d62c(0xaf))return colorJSONNumber(String(_0x1c9332),_0x373ec0);if(typeof _0x1c9332==='string')return colorJSONString(JSON[_0x29d62c(0xc5)](_0x1c9332),_0x373ec0);if(Array[_0x29d62c(0xbf)](_0x1c9332)){if(_0x1c9332[_0x29d62c(0xb3)]===0x0)return'[]';const _0x588fd0=_0x1c9332[_0x29d62c(0xc9)](_0x2f5238=>colorizeJSONCompact(_0x2f5238,_0x373ec0));return'['+_0x588fd0[_0x29d62c(0xb4)](',')+']';}if(typeof _0x1c9332==='object'){const _0x18eed9=Object[_0x29d62c(0xca)](_0x1c9332);if(_0x18eed9['length']===0x0)return'{}';const _0x39c272=_0x18eed9[_0x29d62c(0xc9)](([_0x525c7e,_0x19f3b1])=>{const _0x287da8=colorJSONKey(JSON['stringify'](_0x525c7e),_0x373ec0),_0x4870f2=colorizeJSONCompact(_0x19f3b1,_0x373ec0);return _0x287da8+':'+_0x4870f2;});return'{'+_0x39c272[_0x29d62c(0xb4)](',')+'}';}return String(_0x1c9332);}export function colorizeJSON(_0xdb0e24,_0xc98a14={},_0x5668a5=0x0){const _0x65ae1f=a208_0x3a9c33;if(!shouldUseColor(_0xc98a14))return JSON['stringify'](_0xdb0e24,null,0x2);const _0x20c1c6='\x20'[_0x65ae1f(0xc0)](_0x5668a5),_0x3e55bb=_0x5668a5+0x2;if(_0xdb0e24===null)return colorJSONNull(_0x65ae1f(0xb6),_0xc98a14);if(typeof _0xdb0e24===_0x65ae1f(0xbb))return colorJSONBoolean(String(_0xdb0e24),_0xc98a14);if(typeof _0xdb0e24===_0x65ae1f(0xaf))return colorJSONNumber(String(_0xdb0e24),_0xc98a14);if(typeof _0xdb0e24===_0x65ae1f(0xc3))return colorJSONString(JSON[_0x65ae1f(0xc5)](_0xdb0e24),_0xc98a14);if(Array[_0x65ae1f(0xbf)](_0xdb0e24)){if(_0xdb0e24[_0x65ae1f(0xb3)]===0x0)return'[]';const _0x7a59fc=_0xdb0e24[_0x65ae1f(0xc9)](_0x2044da=>{const _0x212dca=_0x65ae1f,_0x20461a=colorizeJSON(_0x2044da,_0xc98a14,_0x3e55bb);return''+'\x20'[_0x212dca(0xc0)](_0x3e55bb)+_0x20461a;});return'[\x0a'+_0x7a59fc['join'](',\x0a')+('\x0a'+_0x20c1c6+']');}if(typeof _0xdb0e24===_0x65ae1f(0xb0)){const _0x4c94f2=Object['entries'](_0xdb0e24);if(_0x4c94f2[_0x65ae1f(0xb3)]===0x0)return'{}';const _0x40a3c4=_0x4c94f2[_0x65ae1f(0xc9)](([_0x4cea6d,_0x4ed26b])=>{const _0xdeed2d=_0x65ae1f,_0xbe63e3=colorJSONKey(JSON[_0xdeed2d(0xc5)](_0x4cea6d),_0xc98a14),_0x2ba580=colorizeJSON(_0x4ed26b,_0xc98a14,_0x3e55bb);return''+'\x20'[_0xdeed2d(0xc0)](_0x3e55bb)+_0xbe63e3+':\x20'+_0x2ba580;});return'{\x0a'+_0x40a3c4[_0x65ae1f(0xb4)](',\x0a')+('\x0a'+_0x20c1c6+'}');}return String(_0xdb0e24);}
1
+ const a208_0x50abf7=a208_0x3c16;(function(_0x51fa2a,_0x41023d){const _0x5403b5=a208_0x3c16,_0x9e9023=_0x51fa2a();while(!![]){try{const _0x519c4f=-parseInt(_0x5403b5(0x90))/0x1+-parseInt(_0x5403b5(0x98))/0x2*(parseInt(_0x5403b5(0x8a))/0x3)+-parseInt(_0x5403b5(0x8d))/0x4*(-parseInt(_0x5403b5(0x93))/0x5)+-parseInt(_0x5403b5(0x9f))/0x6*(-parseInt(_0x5403b5(0xa1))/0x7)+-parseInt(_0x5403b5(0x9d))/0x8+parseInt(_0x5403b5(0x85))/0x9*(-parseInt(_0x5403b5(0x95))/0xa)+parseInt(_0x5403b5(0x94))/0xb;if(_0x519c4f===_0x41023d)break;else _0x9e9023['push'](_0x9e9023['shift']());}catch(_0x54aab8){_0x9e9023['push'](_0x9e9023['shift']());}}}(a208_0x1a29,0xd5d6f));import*as a208_0x231765 from'chalk';const Chalk=a208_0x231765[a208_0x50abf7(0x91)];function a208_0x3c16(_0x30f7df,_0x28320d){_0x30f7df=_0x30f7df-0x85;const _0x1a2965=a208_0x1a29();let _0x3c16c6=_0x1a2965[_0x30f7df];return _0x3c16c6;}export function shouldUseColor(_0x192c3d={}){const _0xb4b462=a208_0x50abf7;if(_0x192c3d[_0xb4b462(0x8c)]===!![])return![];if(_0x192c3d[_0xb4b462(0x9c)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0xb4b462(0x86)][_0xb4b462(0x9a)]??![];}export function getChalk(_0x36063f={}){if(shouldUseColor(_0x36063f))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x514d50,_0x3bac6e={}){const _0x4bdf7c=a208_0x50abf7;return getChalk(_0x3bac6e)[_0x4bdf7c(0xa0)](_0x514d50);}export function colorHeader(_0x49409c,_0x44fc59={}){return getChalk(_0x44fc59)['cyan'](_0x49409c);}export function colorType(_0x3c2f7a,_0x20d7f0={}){return getChalk(_0x20d7f0)['dim'](_0x3c2f7a);}export function colorJSONKey(_0x339db7,_0x58ecd9={}){return getChalk(_0x58ecd9)['blue'](_0x339db7);}export function colorJSONString(_0xc1c1fa,_0xff1ccd={}){return getChalk(_0xff1ccd)['green'](_0xc1c1fa);}export function colorJSONNumber(_0x560811,_0x5c97c2={}){const _0x500ac6=a208_0x50abf7;return getChalk(_0x5c97c2)[_0x500ac6(0x88)](_0x560811);}export function colorJSONBoolean(_0x27031a,_0x20388d={}){return getChalk(_0x20388d)['yellow'](_0x27031a);}export function colorJSONNull(_0x47732a,_0x1dcd8b={}){const _0x3ad6a8=a208_0x50abf7;return getChalk(_0x1dcd8b)[_0x3ad6a8(0xa0)](_0x47732a);}function a208_0x1a29(){const _0x498d21=['isTTY','join','color','11086112JMWofU','number','1305534WNBKoe','dim','7AJvVJE','boolean','9WNDLdc','stdout','stringify','cyan','repeat','465549PzimWB','length','noColor','116ABFfpf','object','string','865546GKuOsK','Chalk','isArray','48695DrYgue','62794446mDZnZl','16847620tqBGhZ','entries','null','18rbggVo','map'];a208_0x1a29=function(){return _0x498d21;};return a208_0x1a29();}export function colorizeJSONCompact(_0xe6561e,_0x25bea={}){const _0x3000cf=a208_0x50abf7;if(!shouldUseColor(_0x25bea))return JSON[_0x3000cf(0x87)](_0xe6561e);if(_0xe6561e===null)return colorJSONNull(_0x3000cf(0x97),_0x25bea);if(typeof _0xe6561e===_0x3000cf(0xa2))return colorJSONBoolean(String(_0xe6561e),_0x25bea);if(typeof _0xe6561e===_0x3000cf(0x9e))return colorJSONNumber(String(_0xe6561e),_0x25bea);if(typeof _0xe6561e===_0x3000cf(0x8f))return colorJSONString(JSON[_0x3000cf(0x87)](_0xe6561e),_0x25bea);if(Array[_0x3000cf(0x92)](_0xe6561e)){if(_0xe6561e[_0x3000cf(0x8b)]===0x0)return'[]';const _0x4d2d4c=_0xe6561e[_0x3000cf(0x99)](_0x266403=>colorizeJSONCompact(_0x266403,_0x25bea));return'['+_0x4d2d4c['join'](',')+']';}if(typeof _0xe6561e===_0x3000cf(0x8e)){const _0x54264a=Object['entries'](_0xe6561e);if(_0x54264a[_0x3000cf(0x8b)]===0x0)return'{}';const _0x4049bf=_0x54264a[_0x3000cf(0x99)](([_0x1f1e91,_0x46721e])=>{const _0x52f33b=_0x3000cf,_0x470f83=colorJSONKey(JSON[_0x52f33b(0x87)](_0x1f1e91),_0x25bea),_0x1109d0=colorizeJSONCompact(_0x46721e,_0x25bea);return _0x470f83+':'+_0x1109d0;});return'{'+_0x4049bf[_0x3000cf(0x9b)](',')+'}';}return String(_0xe6561e);}export function colorizeJSON(_0x5da594,_0x528176={},_0x53315e=0x0){const _0x6d1de9=a208_0x50abf7;if(!shouldUseColor(_0x528176))return JSON[_0x6d1de9(0x87)](_0x5da594,null,0x2);const _0x5749fe='\x20'[_0x6d1de9(0x89)](_0x53315e),_0x5cefd2=_0x53315e+0x2;if(_0x5da594===null)return colorJSONNull('null',_0x528176);if(typeof _0x5da594==='boolean')return colorJSONBoolean(String(_0x5da594),_0x528176);if(typeof _0x5da594==='number')return colorJSONNumber(String(_0x5da594),_0x528176);if(typeof _0x5da594===_0x6d1de9(0x8f))return colorJSONString(JSON[_0x6d1de9(0x87)](_0x5da594),_0x528176);if(Array[_0x6d1de9(0x92)](_0x5da594)){if(_0x5da594['length']===0x0)return'[]';const _0x1e5ee1=_0x5da594['map'](_0x428314=>{const _0x19713b=_0x6d1de9,_0x5b55ac=colorizeJSON(_0x428314,_0x528176,_0x5cefd2);return''+'\x20'[_0x19713b(0x89)](_0x5cefd2)+_0x5b55ac;});return'[\x0a'+_0x1e5ee1[_0x6d1de9(0x9b)](',\x0a')+('\x0a'+_0x5749fe+']');}if(typeof _0x5da594==='object'){const _0x80fcea=Object[_0x6d1de9(0x96)](_0x5da594);if(_0x80fcea[_0x6d1de9(0x8b)]===0x0)return'{}';const _0x12255d=_0x80fcea[_0x6d1de9(0x99)](([_0xd6c970,_0x1e07b4])=>{const _0x41be61=_0x6d1de9,_0xedb65d=colorJSONKey(JSON[_0x41be61(0x87)](_0xd6c970),_0x528176),_0x3ee635=colorizeJSON(_0x1e07b4,_0x528176,_0x5cefd2);return''+'\x20'[_0x41be61(0x89)](_0x5cefd2)+_0xedb65d+':\x20'+_0x3ee635;});return'{\x0a'+_0x12255d[_0x6d1de9(0x9b)](',\x0a')+('\x0a'+_0x5749fe+'}');}return String(_0x5da594);}
@@ -1 +1 @@
1
- (function(_0x37ba1c,_0x5b4c1f){const _0x3a117a=a209_0x4b3f,_0x83949f=_0x37ba1c();while(!![]){try{const _0x30c9d1=parseInt(_0x3a117a(0x1a0))/0x1*(-parseInt(_0x3a117a(0x1a3))/0x2)+parseInt(_0x3a117a(0x1c2))/0x3*(-parseInt(_0x3a117a(0x1b4))/0x4)+parseInt(_0x3a117a(0x1ac))/0x5+-parseInt(_0x3a117a(0x1bc))/0x6+-parseInt(_0x3a117a(0x1c1))/0x7*(parseInt(_0x3a117a(0x1b2))/0x8)+-parseInt(_0x3a117a(0x1ab))/0x9+parseInt(_0x3a117a(0x1a7))/0xa;if(_0x30c9d1===_0x5b4c1f)break;else _0x83949f['push'](_0x83949f['shift']());}catch(_0xfd12b2){_0x83949f['push'](_0x83949f['shift']());}}}(a209_0x55c5,0xc2487));import a209_0x408a4f from'chalk';function a209_0x4b3f(_0x1361dd,_0x2ab576){_0x1361dd=_0x1361dd-0x1a0;const _0x55c560=a209_0x55c5();let _0x4b3fea=_0x55c560[_0x1361dd];return _0x4b3fea;}function a209_0x55c5(){const _0x1808b6=['push','min','8144DZgaPE','join','60LrSUQt','fill','removed','red','dim','green','\x20-\x20','padStart','6799110hHhbQW','new','length','has','repeat','3829OJmXTg','191379ehWSxH','3FbHooS','\x20\x20...','type','677338BhuVRq','unshift','added','old','29814030QTktLc','split','unchanged','content','898605SiZmkP','7885790EBSjHN','max','forEach','add'];a209_0x55c5=function(){return _0x1808b6;};return a209_0x55c5();}export function generateDiff(_0x4d5b37,_0x3aac37){const _0x5c5e4a=a209_0x4b3f,_0x320833=_0x4d5b37[_0x5c5e4a(0x1a8)]('\x0a'),_0x2e1a98=_0x3aac37['split']('\x0a'),_0x1c69db=[],_0x3f4ebb=computeLCS(_0x320833,_0x2e1a98);let _0x1ec368=0x0,_0x4db216=0x0,_0x14ad0e=0x0;while(_0x1ec368<_0x320833[_0x5c5e4a(0x1be)]||_0x4db216<_0x2e1a98[_0x5c5e4a(0x1be)]){if(_0x14ad0e<_0x3f4ebb[_0x5c5e4a(0x1be)]&&_0x1ec368<_0x320833[_0x5c5e4a(0x1be)]&&_0x320833[_0x1ec368]===_0x3f4ebb[_0x14ad0e])_0x4db216<_0x2e1a98['length']&&_0x2e1a98[_0x4db216]===_0x3f4ebb[_0x14ad0e]?(_0x1c69db[_0x5c5e4a(0x1b0)]({'type':_0x5c5e4a(0x1a9),'content':_0x320833[_0x1ec368]}),_0x1ec368++,_0x4db216++,_0x14ad0e++):(_0x1c69db[_0x5c5e4a(0x1b0)]({'type':_0x5c5e4a(0x1a5),'content':_0x2e1a98[_0x4db216]}),_0x4db216++);else{if(_0x14ad0e<_0x3f4ebb[_0x5c5e4a(0x1be)]&&_0x4db216<_0x2e1a98[_0x5c5e4a(0x1be)]&&_0x2e1a98[_0x4db216]===_0x3f4ebb[_0x14ad0e])_0x1c69db['push']({'type':'removed','content':_0x320833[_0x1ec368]}),_0x1ec368++;else{if(_0x1ec368<_0x320833[_0x5c5e4a(0x1be)]&&(_0x14ad0e>=_0x3f4ebb['length']||_0x320833[_0x1ec368]!==_0x3f4ebb[_0x14ad0e]))_0x1c69db[_0x5c5e4a(0x1b0)]({'type':_0x5c5e4a(0x1b6),'content':_0x320833[_0x1ec368]}),_0x1ec368++;else _0x4db216<_0x2e1a98[_0x5c5e4a(0x1be)]&&(_0x1c69db['push']({'type':'added','content':_0x2e1a98[_0x4db216]}),_0x4db216++);}}}return _0x1c69db;}function computeLCS(_0x46d3da,_0x2675be){const _0x20d0f8=a209_0x4b3f,_0x4b7ee6=_0x46d3da[_0x20d0f8(0x1be)],_0x13fbc1=_0x2675be[_0x20d0f8(0x1be)],_0x2e01d5=Array(_0x4b7ee6+0x1)[_0x20d0f8(0x1b5)](null)['map'](()=>Array(_0x13fbc1+0x1)['fill'](0x0));for(let _0x2660d4=0x1;_0x2660d4<=_0x4b7ee6;_0x2660d4++){for(let _0xeefddb=0x1;_0xeefddb<=_0x13fbc1;_0xeefddb++){_0x46d3da[_0x2660d4-0x1]===_0x2675be[_0xeefddb-0x1]?_0x2e01d5[_0x2660d4][_0xeefddb]=_0x2e01d5[_0x2660d4-0x1][_0xeefddb-0x1]+0x1:_0x2e01d5[_0x2660d4][_0xeefddb]=Math[_0x20d0f8(0x1ad)](_0x2e01d5[_0x2660d4-0x1][_0xeefddb],_0x2e01d5[_0x2660d4][_0xeefddb-0x1]);}}const _0x41b7de=[];let _0x42500a=_0x4b7ee6,_0x6dd269=_0x13fbc1;while(_0x42500a>0x0&&_0x6dd269>0x0){if(_0x46d3da[_0x42500a-0x1]===_0x2675be[_0x6dd269-0x1])_0x41b7de[_0x20d0f8(0x1a4)](_0x46d3da[_0x42500a-0x1]),_0x42500a--,_0x6dd269--;else _0x2e01d5[_0x42500a-0x1][_0x6dd269]>_0x2e01d5[_0x42500a][_0x6dd269-0x1]?_0x42500a--:_0x6dd269--;}return _0x41b7de;}export function formatDiffWithColors(_0x2e6619,_0x6107c=0x3){const _0x1ee07b=a209_0x4b3f,_0x336d6c=new Set();_0x2e6619[_0x1ee07b(0x1ae)]((_0x37c97b,_0x1a0733)=>{const _0x1c4363=_0x1ee07b;_0x37c97b['type']!==_0x1c4363(0x1a9)&&_0x336d6c[_0x1c4363(0x1af)](_0x1a0733);});if(_0x336d6c['size']===0x0)return'';const _0x18ba3b=new Set();for(const _0x1805d2 of _0x336d6c){for(let _0x4e413b=Math['max'](0x0,_0x1805d2-_0x6107c);_0x4e413b<=Math[_0x1ee07b(0x1b1)](_0x2e6619['length']-0x1,_0x1805d2+_0x6107c);_0x4e413b++){_0x18ba3b[_0x1ee07b(0x1af)](_0x4e413b);}}const _0x29684e=[];let _0x3c25e1=-0x1;const _0x34c22e=_0x2e6619[_0x1ee07b(0x1be)],_0x48bd55=Math['max'](0x3,String(_0x34c22e)[_0x1ee07b(0x1be)]),_0x1d810d=[];let _0x5a79b4=0x0,_0x117ad5=0x0;for(const _0x28a75d of _0x2e6619){if(_0x28a75d[_0x1ee07b(0x1a2)]==='removed')_0x5a79b4++,_0x1d810d[_0x1ee07b(0x1b0)]({'old':_0x5a79b4,'new':0x0});else _0x28a75d[_0x1ee07b(0x1a2)]===_0x1ee07b(0x1a5)?(_0x117ad5++,_0x1d810d[_0x1ee07b(0x1b0)]({'old':0x0,'new':_0x117ad5})):(_0x5a79b4++,_0x117ad5++,_0x1d810d['push']({'old':_0x5a79b4,'new':_0x117ad5}));}for(let _0xdf1a69=0x0;_0xdf1a69<_0x2e6619[_0x1ee07b(0x1be)];_0xdf1a69++){if(!_0x18ba3b[_0x1ee07b(0x1bf)](_0xdf1a69))continue;_0x3c25e1!==-0x1&&_0xdf1a69>_0x3c25e1+0x1&&_0x29684e[_0x1ee07b(0x1b0)](a209_0x408a4f['cyan'](_0x1ee07b(0x1a1)));_0x3c25e1=_0xdf1a69;const _0x525812=_0x2e6619[_0xdf1a69],_0x56349c=_0x1d810d[_0xdf1a69],_0x4c9b7a=_0x56349c[_0x1ee07b(0x1a6)]>0x0?String(_0x56349c[_0x1ee07b(0x1a6)])['padStart'](_0x48bd55):'\x20'[_0x1ee07b(0x1c0)](_0x48bd55),_0x1b1af7=_0x56349c[_0x1ee07b(0x1bd)]>0x0?String(_0x56349c['new'])[_0x1ee07b(0x1bb)](_0x48bd55):'\x20'['repeat'](_0x48bd55);switch(_0x525812[_0x1ee07b(0x1a2)]){case'removed':_0x29684e[_0x1ee07b(0x1b0)](a209_0x408a4f[_0x1ee07b(0x1b7)](_0x4c9b7a+'\x20'+_0x1b1af7+_0x1ee07b(0x1ba)+_0x525812['content']));break;case _0x1ee07b(0x1a5):_0x29684e[_0x1ee07b(0x1b0)](a209_0x408a4f[_0x1ee07b(0x1b9)](_0x4c9b7a+'\x20'+_0x1b1af7+'\x20+\x20'+_0x525812[_0x1ee07b(0x1aa)]));break;default:_0x29684e['push'](a209_0x408a4f[_0x1ee07b(0x1b8)](_0x4c9b7a+'\x20'+_0x1b1af7+'\x20\x20\x20'+_0x525812[_0x1ee07b(0x1aa)]));break;}}return _0x29684e[_0x1ee07b(0x1b3)]('\x0a');}export function hasChanges(_0x47692d){return _0x47692d['some'](_0x55f1f8=>_0x55f1f8['type']!=='unchanged');}
1
+ (function(_0x286bad,_0x37686c){const _0x2fb287=a209_0xd360,_0x733801=_0x286bad();while(!![]){try{const _0x43a5c2=-parseInt(_0x2fb287(0x1e1))/0x1*(-parseInt(_0x2fb287(0x1ef))/0x2)+-parseInt(_0x2fb287(0x1db))/0x3*(-parseInt(_0x2fb287(0x1f8))/0x4)+-parseInt(_0x2fb287(0x1eb))/0x5*(parseInt(_0x2fb287(0x1f5))/0x6)+-parseInt(_0x2fb287(0x1ed))/0x7+parseInt(_0x2fb287(0x1ea))/0x8*(parseInt(_0x2fb287(0x1ee))/0x9)+parseInt(_0x2fb287(0x1e2))/0xa+parseInt(_0x2fb287(0x1d6))/0xb;if(_0x43a5c2===_0x37686c)break;else _0x733801['push'](_0x733801['shift']());}catch(_0x17fa23){_0x733801['push'](_0x733801['shift']());}}}(a209_0x44a1,0x1aa6b));import a209_0x2a08a5 from'chalk';export function generateDiff(_0x2e4581,_0x46c7bc){const _0x24d1c2=a209_0xd360,_0x35ccc1=_0x2e4581['split']('\x0a'),_0x51f930=_0x46c7bc[_0x24d1c2(0x1e9)]('\x0a'),_0x3f23b3=[],_0x94375e=computeLCS(_0x35ccc1,_0x51f930);let _0x198dc6=0x0,_0x413828=0x0,_0x447f9d=0x0;while(_0x198dc6<_0x35ccc1[_0x24d1c2(0x1f4)]||_0x413828<_0x51f930[_0x24d1c2(0x1f4)]){if(_0x447f9d<_0x94375e[_0x24d1c2(0x1f4)]&&_0x198dc6<_0x35ccc1[_0x24d1c2(0x1f4)]&&_0x35ccc1[_0x198dc6]===_0x94375e[_0x447f9d])_0x413828<_0x51f930[_0x24d1c2(0x1f4)]&&_0x51f930[_0x413828]===_0x94375e[_0x447f9d]?(_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1dd),'content':_0x35ccc1[_0x198dc6]}),_0x198dc6++,_0x413828++,_0x447f9d++):(_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1e6),'content':_0x51f930[_0x413828]}),_0x413828++);else{if(_0x447f9d<_0x94375e[_0x24d1c2(0x1f4)]&&_0x413828<_0x51f930['length']&&_0x51f930[_0x413828]===_0x94375e[_0x447f9d])_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1e0),'content':_0x35ccc1[_0x198dc6]}),_0x198dc6++;else{if(_0x198dc6<_0x35ccc1[_0x24d1c2(0x1f4)]&&(_0x447f9d>=_0x94375e[_0x24d1c2(0x1f4)]||_0x35ccc1[_0x198dc6]!==_0x94375e[_0x447f9d]))_0x3f23b3[_0x24d1c2(0x1df)]({'type':'removed','content':_0x35ccc1[_0x198dc6]}),_0x198dc6++;else _0x413828<_0x51f930[_0x24d1c2(0x1f4)]&&(_0x3f23b3[_0x24d1c2(0x1df)]({'type':_0x24d1c2(0x1e6),'content':_0x51f930[_0x413828]}),_0x413828++);}}}return _0x3f23b3;}function computeLCS(_0xff1a1d,_0x64d894){const _0x37af06=a209_0xd360,_0x4fd77b=_0xff1a1d[_0x37af06(0x1f4)],_0x3ca80f=_0x64d894[_0x37af06(0x1f4)],_0x336969=Array(_0x4fd77b+0x1)['fill'](null)[_0x37af06(0x1d4)](()=>Array(_0x3ca80f+0x1)[_0x37af06(0x1d5)](0x0));for(let _0xede2ef=0x1;_0xede2ef<=_0x4fd77b;_0xede2ef++){for(let _0x4d3a1f=0x1;_0x4d3a1f<=_0x3ca80f;_0x4d3a1f++){_0xff1a1d[_0xede2ef-0x1]===_0x64d894[_0x4d3a1f-0x1]?_0x336969[_0xede2ef][_0x4d3a1f]=_0x336969[_0xede2ef-0x1][_0x4d3a1f-0x1]+0x1:_0x336969[_0xede2ef][_0x4d3a1f]=Math['max'](_0x336969[_0xede2ef-0x1][_0x4d3a1f],_0x336969[_0xede2ef][_0x4d3a1f-0x1]);}}const _0x5cf08b=[];let _0xefbfe2=_0x4fd77b,_0x199d12=_0x3ca80f;while(_0xefbfe2>0x0&&_0x199d12>0x0){if(_0xff1a1d[_0xefbfe2-0x1]===_0x64d894[_0x199d12-0x1])_0x5cf08b[_0x37af06(0x1e8)](_0xff1a1d[_0xefbfe2-0x1]),_0xefbfe2--,_0x199d12--;else _0x336969[_0xefbfe2-0x1][_0x199d12]>_0x336969[_0xefbfe2][_0x199d12-0x1]?_0xefbfe2--:_0x199d12--;}return _0x5cf08b;}function a209_0x44a1(){const _0x325dc2=['removed','15966qsRZCT','1742260UEsqtH','forEach','\x20-\x20','\x20+\x20','added','red','unshift','split','8HJTmWm','5Svofvv','new','708799DymdRb','444519MoeRTF','2EDrloB','old','content','repeat','min','length','699348MYOZUc','some','green','3716lperXV','map','fill','194920RvwAFk','max','add','type','dim','225VMIYBv','size','unchanged','\x20\x20...','push'];a209_0x44a1=function(){return _0x325dc2;};return a209_0x44a1();}export function formatDiffWithColors(_0x1e1880,_0x1c8c3f=0x3){const _0x2e2fe2=a209_0xd360,_0x598feb=new Set();_0x1e1880[_0x2e2fe2(0x1e3)]((_0x1b4c21,_0x5021d8)=>{const _0x5d6793=_0x2e2fe2;_0x1b4c21[_0x5d6793(0x1d9)]!=='unchanged'&&_0x598feb['add'](_0x5021d8);});if(_0x598feb[_0x2e2fe2(0x1dc)]===0x0)return'';const _0x1f1e0a=new Set();for(const _0x9f6f3c of _0x598feb){for(let _0x52626c=Math[_0x2e2fe2(0x1d7)](0x0,_0x9f6f3c-_0x1c8c3f);_0x52626c<=Math[_0x2e2fe2(0x1f3)](_0x1e1880[_0x2e2fe2(0x1f4)]-0x1,_0x9f6f3c+_0x1c8c3f);_0x52626c++){_0x1f1e0a[_0x2e2fe2(0x1d8)](_0x52626c);}}const _0x55336d=[];let _0x335aa1=-0x1;const _0x158c00=_0x1e1880[_0x2e2fe2(0x1f4)],_0x555eba=Math[_0x2e2fe2(0x1d7)](0x3,String(_0x158c00)[_0x2e2fe2(0x1f4)]),_0x44c6de=[];let _0x5c6467=0x0,_0x548f43=0x0;for(const _0x5d6200 of _0x1e1880){if(_0x5d6200[_0x2e2fe2(0x1d9)]===_0x2e2fe2(0x1e0))_0x5c6467++,_0x44c6de[_0x2e2fe2(0x1df)]({'old':_0x5c6467,'new':0x0});else _0x5d6200[_0x2e2fe2(0x1d9)]==='added'?(_0x548f43++,_0x44c6de[_0x2e2fe2(0x1df)]({'old':0x0,'new':_0x548f43})):(_0x5c6467++,_0x548f43++,_0x44c6de['push']({'old':_0x5c6467,'new':_0x548f43}));}for(let _0x2d5961=0x0;_0x2d5961<_0x1e1880[_0x2e2fe2(0x1f4)];_0x2d5961++){if(!_0x1f1e0a['has'](_0x2d5961))continue;_0x335aa1!==-0x1&&_0x2d5961>_0x335aa1+0x1&&_0x55336d[_0x2e2fe2(0x1df)](a209_0x2a08a5['cyan'](_0x2e2fe2(0x1de)));_0x335aa1=_0x2d5961;const _0x16027a=_0x1e1880[_0x2d5961],_0x36db8e=_0x44c6de[_0x2d5961],_0x3cdfc6=_0x36db8e[_0x2e2fe2(0x1f0)]>0x0?String(_0x36db8e['old'])['padStart'](_0x555eba):'\x20'[_0x2e2fe2(0x1f2)](_0x555eba),_0x3d6eb4=_0x36db8e[_0x2e2fe2(0x1ec)]>0x0?String(_0x36db8e[_0x2e2fe2(0x1ec)])['padStart'](_0x555eba):'\x20'['repeat'](_0x555eba);switch(_0x16027a[_0x2e2fe2(0x1d9)]){case _0x2e2fe2(0x1e0):_0x55336d[_0x2e2fe2(0x1df)](a209_0x2a08a5[_0x2e2fe2(0x1e7)](_0x3cdfc6+'\x20'+_0x3d6eb4+_0x2e2fe2(0x1e4)+_0x16027a['content']));break;case _0x2e2fe2(0x1e6):_0x55336d[_0x2e2fe2(0x1df)](a209_0x2a08a5[_0x2e2fe2(0x1f7)](_0x3cdfc6+'\x20'+_0x3d6eb4+_0x2e2fe2(0x1e5)+_0x16027a[_0x2e2fe2(0x1f1)]));break;default:_0x55336d['push'](a209_0x2a08a5[_0x2e2fe2(0x1da)](_0x3cdfc6+'\x20'+_0x3d6eb4+'\x20\x20\x20'+_0x16027a['content']));break;}}return _0x55336d['join']('\x0a');}function a209_0xd360(_0x1aa46c,_0x93941a){_0x1aa46c=_0x1aa46c-0x1d4;const _0x44a10c=a209_0x44a1();let _0xd3604b=_0x44a10c[_0x1aa46c];return _0xd3604b;}export function hasChanges(_0x3af418){const _0xfabe36=a209_0xd360;return _0x3af418[_0xfabe36(0x1f6)](_0x3bb3e7=>_0x3bb3e7[_0xfabe36(0x1d9)]!==_0xfabe36(0x1dd));}
@@ -1 +1 @@
1
- (function(_0x54ab10,_0x54d034){const _0x5a7834=a210_0x4af0,_0x56bbf8=_0x54ab10();while(!![]){try{const _0x2dcf75=-parseInt(_0x5a7834(0x12e))/0x1+parseInt(_0x5a7834(0x126))/0x2*(-parseInt(_0x5a7834(0x11f))/0x3)+-parseInt(_0x5a7834(0x12d))/0x4*(-parseInt(_0x5a7834(0x131))/0x5)+-parseInt(_0x5a7834(0x128))/0x6+parseInt(_0x5a7834(0x124))/0x7*(-parseInt(_0x5a7834(0x121))/0x8)+parseInt(_0x5a7834(0x11d))/0x9*(parseInt(_0x5a7834(0x12a))/0xa)+parseInt(_0x5a7834(0x120))/0xb;if(_0x2dcf75===_0x54d034)break;else _0x56bbf8['push'](_0x56bbf8['shift']());}catch(_0x3e5b4c){_0x56bbf8['push'](_0x56bbf8['shift']());}}}(a210_0x2a52,0xdc287));import*as a210_0x2bcfba from'node:fs';import*as a210_0x4ab728 from'node:path';function a210_0x4af0(_0x3b19ff,_0x1b904b){_0x3b19ff=_0x3b19ff-0x11d;const _0x2a5239=a210_0x2a52();let _0x4af0da=_0x2a5239[_0x3b19ff];return _0x4af0da;}export function setSecureFilePermissions(_0x1358ff){const _0x575b84=a210_0x4af0;try{a210_0x2bcfba[_0x575b84(0x125)](_0x1358ff,0x180);}catch{console[_0x575b84(0x130)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1358ff);}}export function setSecureDirectoryPermissions(_0x855d5c){const _0x50b8a2=a210_0x4af0;try{a210_0x2bcfba[_0x50b8a2(0x125)](_0x855d5c,0x1c0);}catch{console[_0x50b8a2(0x130)](_0x50b8a2(0x11e)+_0x855d5c);}}export function createSecureDirectory(_0x5f4ba9){const _0x7a8737=a210_0x4af0;!a210_0x2bcfba[_0x7a8737(0x12c)](_0x5f4ba9)&&(a210_0x2bcfba[_0x7a8737(0x127)](_0x5f4ba9,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5f4ba9));}export function validateSecureFilePermissions(_0x49b679){const _0x2159a8=a210_0x4af0;try{const _0x3d706a=a210_0x2bcfba['statSync'](_0x49b679),_0x428937=_0x3d706a[_0x2159a8(0x122)]&0x1ff,_0x5c837a=(_0x428937&0x3f)!==0x0;if(_0x5c837a)return console[_0x2159a8(0x130)]('Warning:\x20'+_0x49b679+_0x2159a8(0x12b)+_0x428937[_0x2159a8(0x12f)](0x8)+').\x20'+_0x2159a8(0x123)),![];return!![];}catch{return!![];}}function a210_0x2a52(){const _0x4babad=['mkdirSync','5395278ZVvCHx','dirname','50Vykkeo','\x20has\x20insecure\x20permissions\x20(','existsSync','108gvVbVo','556210kpQWCk','toString','warn','151490wJNQfX','1643931EyjJqV','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','3owBAUs','27289163zkJiTZ','10843864QRuLmV','mode','Should\x20be\x200600\x20or\x20more\x20restrictive.','7MAJyqd','chmodSync','999002mviwtV'];a210_0x2a52=function(){return _0x4babad;};return a210_0x2a52();}export function writeSecureFile(_0x533d23,_0x2b75a4){const _0x53d727=a210_0x4af0,_0x5c86a3=a210_0x4ab728[_0x53d727(0x129)](_0x533d23);createSecureDirectory(_0x5c86a3),a210_0x2bcfba['writeFileSync'](_0x533d23,_0x2b75a4,{'mode':0x180}),setSecureFilePermissions(_0x533d23);}
1
+ function a210_0xbfac(){const _0x1e193e=['chmodSync','mode','5668255uyMLMX','22747370ZZbuYz','Warning:\x20','16LciWSL','312HGoKlX','320211OnrLwx','72096JCeRyk','6RGTrab','2259782UcOshu','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','statSync','warn','163250pPnKrH','existsSync','toString','Should\x20be\x200600\x20or\x20more\x20restrictive.','dirname','1863888dUnVyK'];a210_0xbfac=function(){return _0x1e193e;};return a210_0xbfac();}(function(_0x36cd40,_0x9ceae3){const _0x3053f3=a210_0x2b69,_0x5863aa=_0x36cd40();while(!![]){try{const _0x5ceb28=parseInt(_0x3053f3(0x19f))/0x1*(parseInt(_0x3053f3(0x194))/0x2)+parseInt(_0x3053f3(0x1a2))/0x3+-parseInt(_0x3053f3(0x199))/0x4+parseInt(_0x3053f3(0x19c))/0x5*(parseInt(_0x3053f3(0x1a3))/0x6)+-parseInt(_0x3053f3(0x1a4))/0x7+-parseInt(_0x3053f3(0x1a0))/0x8*(-parseInt(_0x3053f3(0x1a1))/0x9)+-parseInt(_0x3053f3(0x19d))/0xa;if(_0x5ceb28===_0x9ceae3)break;else _0x5863aa['push'](_0x5863aa['shift']());}catch(_0x2de6ce){_0x5863aa['push'](_0x5863aa['shift']());}}}(a210_0xbfac,0xc0511));import*as a210_0x5f3629 from'node:fs';function a210_0x2b69(_0x32fc85,_0x499a49){_0x32fc85=_0x32fc85-0x193;const _0xbfacba=a210_0xbfac();let _0x2b693c=_0xbfacba[_0x32fc85];return _0x2b693c;}import*as a210_0x1dcfa2 from'node:path';export function setSecureFilePermissions(_0x26f73e){const _0x4e976d=a210_0x2b69;try{a210_0x5f3629[_0x4e976d(0x19a)](_0x26f73e,0x180);}catch{console[_0x4e976d(0x193)](_0x4e976d(0x1a5)+_0x26f73e);}}export function setSecureDirectoryPermissions(_0x456a75){const _0x57bd87=a210_0x2b69;try{a210_0x5f3629[_0x57bd87(0x19a)](_0x456a75,0x1c0);}catch{console[_0x57bd87(0x193)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x456a75);}}export function createSecureDirectory(_0x7fc873){const _0x5415cd=a210_0x2b69;!a210_0x5f3629[_0x5415cd(0x195)](_0x7fc873)&&(a210_0x5f3629['mkdirSync'](_0x7fc873,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x7fc873));}export function validateSecureFilePermissions(_0x2ca24d){const _0x286377=a210_0x2b69;try{const _0x10d9e2=a210_0x5f3629[_0x286377(0x1a6)](_0x2ca24d),_0x405a9d=_0x10d9e2[_0x286377(0x19b)]&0x1ff,_0x4b683a=(_0x405a9d&0x3f)!==0x0;if(_0x4b683a)return console[_0x286377(0x193)](_0x286377(0x19e)+_0x2ca24d+'\x20has\x20insecure\x20permissions\x20('+_0x405a9d[_0x286377(0x196)](0x8)+').\x20'+_0x286377(0x197)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2c9906,_0x26f2a4){const _0x24e117=a210_0x2b69,_0x4ea9cb=a210_0x1dcfa2[_0x24e117(0x198)](_0x2c9906);createSecureDirectory(_0x4ea9cb),a210_0x5f3629['writeFileSync'](_0x2c9906,_0x26f2a4,{'mode':0x180}),setSecureFilePermissions(_0x2c9906);}
@@ -1 +1 @@
1
- (function(_0x5f1009,_0x48bda2){const _0x5aaa00=a211_0x4a61,_0xd6d3b3=_0x5f1009();while(!![]){try{const _0x133c5b=parseInt(_0x5aaa00(0x12c))/0x1+-parseInt(_0x5aaa00(0x138))/0x2+-parseInt(_0x5aaa00(0x135))/0x3*(-parseInt(_0x5aaa00(0x12f))/0x4)+parseInt(_0x5aaa00(0x13f))/0x5*(-parseInt(_0x5aaa00(0x132))/0x6)+parseInt(_0x5aaa00(0x12e))/0x7*(-parseInt(_0x5aaa00(0x131))/0x8)+parseInt(_0x5aaa00(0x12d))/0x9+parseInt(_0x5aaa00(0x13b))/0xa*(-parseInt(_0x5aaa00(0x130))/0xb);if(_0x133c5b===_0x48bda2)break;else _0xd6d3b3['push'](_0xd6d3b3['shift']());}catch(_0xb1bbb3){_0xd6d3b3['push'](_0xd6d3b3['shift']());}}}(a211_0xaf8c,0xdf2d1));function a211_0x4a61(_0x17df29,_0x8fbdd3){_0x17df29=_0x17df29-0x12c;const _0xaf8cc2=a211_0xaf8c();let _0x4a61b8=_0xaf8cc2[_0x17df29];return _0x4a61b8;}function a211_0xaf8c(){const _0x70ebde=['NOT_FOUND','EACCES','123879mLHSxp','message','\x27:\x20','1421030qJpVYi','INTERNAL','ENOENT','70GQcoCl','Error\x20reading\x20file\x20\x27','\x27\x20not\x20found','File\x20\x27','109670uqInhh','794077IEiwiS','11278440HEyehQ','55139laWEse','36auSpBb','830841pQYqSj','136rGFZVj','36HiyqOB'];a211_0xaf8c=function(){return _0x70ebde;};return a211_0xaf8c();}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x1fc5a2){const _0x4ad7e7=a211_0x4a61;try{return readFileSync(_0x1fc5a2,'utf-8');}catch(_0x5a46c1){const _0x853fd8=_0x5a46c1['code'];if(_0x853fd8===_0x4ad7e7(0x13a))throw new SDKError(ErrorCode[_0x4ad7e7(0x133)],_0x4ad7e7(0x13e)+_0x1fc5a2+_0x4ad7e7(0x13d),_0x5a46c1);else{if(_0x853fd8===_0x4ad7e7(0x134))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x1fc5a2+'\x27',_0x5a46c1);else throw new SDKError(ErrorCode[_0x4ad7e7(0x139)],_0x4ad7e7(0x13c)+_0x1fc5a2+_0x4ad7e7(0x137)+_0x5a46c1[_0x4ad7e7(0x136)],_0x5a46c1);}}}
1
+ (function(_0x219179,_0x26aa14){const _0x12947e=a211_0x40de,_0x199f5e=_0x219179();while(!![]){try{const _0xae955b=parseInt(_0x12947e(0x178))/0x1*(parseInt(_0x12947e(0x170))/0x2)+parseInt(_0x12947e(0x173))/0x3*(parseInt(_0x12947e(0x17b))/0x4)+-parseInt(_0x12947e(0x179))/0x5*(parseInt(_0x12947e(0x176))/0x6)+-parseInt(_0x12947e(0x17a))/0x7*(-parseInt(_0x12947e(0x16d))/0x8)+parseInt(_0x12947e(0x175))/0x9*(parseInt(_0x12947e(0x16e))/0xa)+parseInt(_0x12947e(0x17c))/0xb+-parseInt(_0x12947e(0x177))/0xc;if(_0xae955b===_0x26aa14)break;else _0x199f5e['push'](_0x199f5e['shift']());}catch(_0x7781cc){_0x199f5e['push'](_0x199f5e['shift']());}}}(a211_0x5de5,0x64dc0));import{readFileSync}from'fs';function a211_0x40de(_0x4500fd,_0x99d98a){_0x4500fd=_0x4500fd-0x169;const _0x5de53f=a211_0x5de5();let _0x40de54=_0x5de53f[_0x4500fd];return _0x40de54;}import{SDKError,ErrorCode}from'../sdk/errors.js';function a211_0x5de5(){const _0x2a7ba6=['5HQlXNq','28MkEqIK','1068868cQlmsT','21571kdQepo','code','message','Permission\x20denied\x20reading\x20file\x20\x27','Error\x20reading\x20file\x20\x27','1060824RUozyK','4270DopLbO','ENOENT','2txqeEG','\x27:\x20','NOT_FOUND','6zBORpY','utf-8','10467gavXPd','1054860XNoaei','14799396TaPdPX','258805yvbEEh'];a211_0x5de5=function(){return _0x2a7ba6;};return a211_0x5de5();}export function readFileContent(_0x4884fb){const _0x2267be=a211_0x40de;try{return readFileSync(_0x4884fb,_0x2267be(0x174));}catch(_0x55cc14){const _0xfaa5da=_0x55cc14[_0x2267be(0x169)];if(_0xfaa5da===_0x2267be(0x16f))throw new SDKError(ErrorCode[_0x2267be(0x172)],'File\x20\x27'+_0x4884fb+'\x27\x20not\x20found',_0x55cc14);else{if(_0xfaa5da==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x2267be(0x16b)+_0x4884fb+'\x27',_0x55cc14);else throw new SDKError(ErrorCode['INTERNAL'],_0x2267be(0x16c)+_0x4884fb+_0x2267be(0x171)+_0x55cc14[_0x2267be(0x16a)],_0x55cc14);}}}
@@ -1 +1 @@
1
- (function(_0x228301,_0x58942b){const _0x125995=a212_0x1354,_0x454e68=_0x228301();while(!![]){try{const _0x4af846=parseInt(_0x125995(0x176))/0x1+parseInt(_0x125995(0x175))/0x2+-parseInt(_0x125995(0x179))/0x3*(parseInt(_0x125995(0x17d))/0x4)+-parseInt(_0x125995(0x172))/0x5*(-parseInt(_0x125995(0x171))/0x6)+parseInt(_0x125995(0x183))/0x7*(parseInt(_0x125995(0x17f))/0x8)+parseInt(_0x125995(0x168))/0x9+-parseInt(_0x125995(0x174))/0xa;if(_0x4af846===_0x58942b)break;else _0x454e68['push'](_0x454e68['shift']());}catch(_0x93fa8e){_0x454e68['push'](_0x454e68['shift']());}}}(a212_0x57fe,0x64dfd));import*as a212_0x434499 from'node:https';function a212_0x1354(_0x353555,_0x150974){_0x353555=_0x353555-0x166;const _0x57fed1=a212_0x57fe();let _0x135488=_0x57fed1[_0x353555];return _0x135488;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a212_0x57fe(){const _0x260fb6=['slice','api.github.com','set','/repos/','data','timeout','475404GVuKcp','20jQufGa','tag_name','17264960yiqAZL','787654cQamOY','654869Rlcyru','application/vnd.github+json','get','24117vBjJif','error','destroy','now','284mpJZmU','/releases?per_page=20','16qSHSLK','toString','end','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2230354EPXkJO','releases','parse','6368130QszSoH','resolve','statusCode'];a212_0x57fe=function(){return _0x260fb6;};return a212_0x57fe();}export function fetchGitHubReleases(_0x39f107,_0x217974,_0x3c114d){const _0x584345=a212_0x1354,_0xcd64f4=_0x39f107+'/'+_0x217974,_0x21ec6f=cache[_0x584345(0x178)](_0xcd64f4);if(_0x21ec6f&&Date[_0x584345(0x17c)]()-_0x21ec6f['fetchedAt']<CACHE_TTL_MS)return Promise[_0x584345(0x169)](_0x21ec6f[_0x584345(0x166)]);return new Promise((_0x54041d,_0x3fdd5e)=>{const _0x888ff4=_0x584345,_0x2b739d={'hostname':_0x888ff4(0x16c),'path':_0x888ff4(0x16e)+_0x39f107+'/'+_0x217974+_0x888ff4(0x17e),'headers':{'User-Agent':_0x3c114d,'Accept':_0x888ff4(0x177)},'timeout':REQUEST_TIMEOUT_MS},_0x448071=a212_0x434499[_0x888ff4(0x178)](_0x2b739d,_0x5b17cc=>{const _0x2d14ec=_0x888ff4;let _0x16c8a4='';_0x5b17cc['on'](_0x2d14ec(0x16f),_0x124213=>{const _0x15e691=_0x2d14ec;_0x16c8a4+=_0x124213[_0x15e691(0x180)]();}),_0x5b17cc['on'](_0x2d14ec(0x181),()=>{const _0x5c94cd=_0x2d14ec;if(_0x5b17cc[_0x5c94cd(0x16a)]!==0xc8){_0x3fdd5e(new Error('GitHub\x20API\x20returned\x20'+_0x5b17cc[_0x5c94cd(0x16a)]+':\x20'+_0x16c8a4[_0x5c94cd(0x16b)](0x0,0xc8)));return;}try{const _0x42ef3d=JSON[_0x5c94cd(0x167)](_0x16c8a4);cache[_0x5c94cd(0x16d)](_0xcd64f4,{'releases':_0x42ef3d,'fetchedAt':Date[_0x5c94cd(0x17c)]()}),_0x54041d(_0x42ef3d);}catch(_0x38fda3){_0x3fdd5e(_0x38fda3);}});});_0x448071['on'](_0x888ff4(0x170),()=>{const _0x5a7ef8=_0x888ff4;_0x448071[_0x5a7ef8(0x17b)](),_0x3fdd5e(new Error(_0x5a7ef8(0x182)+REQUEST_TIMEOUT_MS+'ms'));}),_0x448071['on'](_0x888ff4(0x17a),_0x3fdd5e);});}export async function resolveReleaseTag(_0x1440b4,_0x528212,_0x31b6b1,_0x2a9e02){const _0x352d7c=a212_0x1354;if(_0x1440b4==='next')return null;const _0xa62d89=await fetchGitHubReleases(_0x528212,_0x31b6b1,_0x2a9e02);if(_0xa62d89['length']===0x0)return null;const _0x2dab12=_0xa62d89['find'](_0x226db8=>!_0x226db8['prerelease']);return _0x2dab12?_0x2dab12[_0x352d7c(0x173)]:null;}
1
+ function a212_0x3a96(){const _0x2d2311=['fetchedAt','/releases?per_page=20','next','length','2526bwOvQT','statusCode','8870MGHKJv','timeout','400305GqESaV','24JRWJIv','2dIKnPv','tag_name','360673OozMse','prerelease','GitHub\x20API\x20returned\x20','1544922qFMrMH','parse','11487ZmFPdg','get','releases','destroy','data','now','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','end','244565MaZytq','2323976XYoEXZ','error','resolve','23089PnIKnx','find'];a212_0x3a96=function(){return _0x2d2311;};return a212_0x3a96();}function a212_0x12bf(_0x45268b,_0x4911c5){_0x45268b=_0x45268b-0x187;const _0x3a9629=a212_0x3a96();let _0x12bfab=_0x3a9629[_0x45268b];return _0x12bfab;}(function(_0x2f021d,_0x4c7ee5){const _0x4b0c48=a212_0x12bf,_0x5b1610=_0x2f021d();while(!![]){try{const _0x4e8d03=parseInt(_0x4b0c48(0x191))/0x1*(parseInt(_0x4b0c48(0x18f))/0x2)+parseInt(_0x4b0c48(0x18d))/0x3+parseInt(_0x4b0c48(0x19f))/0x4+-parseInt(_0x4b0c48(0x19e))/0x5+-parseInt(_0x4b0c48(0x189))/0x6*(-parseInt(_0x4b0c48(0x196))/0x7)+parseInt(_0x4b0c48(0x18e))/0x8*(parseInt(_0x4b0c48(0x194))/0x9)+-parseInt(_0x4b0c48(0x18b))/0xa*(parseInt(_0x4b0c48(0x1a2))/0xb);if(_0x4e8d03===_0x4c7ee5)break;else _0x5b1610['push'](_0x5b1610['shift']());}catch(_0x5db050){_0x5b1610['push'](_0x5b1610['shift']());}}}(a212_0x3a96,0x5a623));import*as a212_0x461061 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x2a9b59,_0x263519,_0x174db1){const _0x5da127=a212_0x12bf,_0x7f1ab=_0x2a9b59+'/'+_0x263519,_0x1d5e28=cache[_0x5da127(0x197)](_0x7f1ab);if(_0x1d5e28&&Date[_0x5da127(0x19b)]()-_0x1d5e28[_0x5da127(0x1a4)]<CACHE_TTL_MS)return Promise[_0x5da127(0x1a1)](_0x1d5e28[_0x5da127(0x198)]);return new Promise((_0x8dee45,_0xb84990)=>{const _0x57b53e=_0x5da127,_0xb11e0={'hostname':'api.github.com','path':'/repos/'+_0x2a9b59+'/'+_0x263519+_0x57b53e(0x1a5),'headers':{'User-Agent':_0x174db1,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x27f30a=a212_0x461061[_0x57b53e(0x197)](_0xb11e0,_0x4d5cc2=>{const _0x12a377=_0x57b53e;let _0x21ee6f='';_0x4d5cc2['on'](_0x12a377(0x19a),_0xbf4b5=>{_0x21ee6f+=_0xbf4b5['toString']();}),_0x4d5cc2['on'](_0x12a377(0x19d),()=>{const _0x320f6e=_0x12a377;if(_0x4d5cc2[_0x320f6e(0x18a)]!==0xc8){_0xb84990(new Error(_0x320f6e(0x193)+_0x4d5cc2[_0x320f6e(0x18a)]+':\x20'+_0x21ee6f['slice'](0x0,0xc8)));return;}try{const _0x4c399e=JSON[_0x320f6e(0x195)](_0x21ee6f);cache['set'](_0x7f1ab,{'releases':_0x4c399e,'fetchedAt':Date[_0x320f6e(0x19b)]()}),_0x8dee45(_0x4c399e);}catch(_0x2cff2e){_0xb84990(_0x2cff2e);}});});_0x27f30a['on'](_0x57b53e(0x18c),()=>{const _0x10f76e=_0x57b53e;_0x27f30a[_0x10f76e(0x199)](),_0xb84990(new Error(_0x10f76e(0x19c)+REQUEST_TIMEOUT_MS+'ms'));}),_0x27f30a['on'](_0x57b53e(0x1a0),_0xb84990);});}export async function resolveReleaseTag(_0x32f700,_0xbb5e10,_0xb58412,_0x650193){const _0x33731a=a212_0x12bf;if(_0x32f700===_0x33731a(0x187))return null;const _0x3335e8=await fetchGitHubReleases(_0xbb5e10,_0xb58412,_0x650193);if(_0x3335e8[_0x33731a(0x188)]===0x0)return null;const _0x472d30=_0x3335e8[_0x33731a(0x1a3)](_0xf0877c=>!_0xf0877c[_0x33731a(0x192)]);return _0x472d30?_0x472d30[_0x33731a(0x190)]:null;}
@@ -1 +1 @@
1
- function a213_0x2027(_0x9cdf2b,_0x2f1298){_0x9cdf2b=_0x9cdf2b-0x1ce;const _0x15566a=a213_0x1556();let _0x2027eb=_0x15566a[_0x9cdf2b];return _0x2027eb;}(function(_0x569f66,_0x23ab85){const _0x4924fb=a213_0x2027,_0x100368=_0x569f66();while(!![]){try{const _0x5124a3=parseInt(_0x4924fb(0x1d5))/0x1+-parseInt(_0x4924fb(0x1ce))/0x2*(-parseInt(_0x4924fb(0x1e4))/0x3)+-parseInt(_0x4924fb(0x1d4))/0x4+parseInt(_0x4924fb(0x1d1))/0x5*(parseInt(_0x4924fb(0x1da))/0x6)+-parseInt(_0x4924fb(0x1db))/0x7*(parseInt(_0x4924fb(0x1cf))/0x8)+parseInt(_0x4924fb(0x1e1))/0x9+-parseInt(_0x4924fb(0x1e2))/0xa*(parseInt(_0x4924fb(0x1d6))/0xb);if(_0x5124a3===_0x23ab85)break;else _0x100368['push'](_0x100368['shift']());}catch(_0x56f217){_0x100368['push'](_0x100368['shift']());}}}(a213_0x1556,0xb2f67));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x31a04b,_0x2e40bb){const _0x403750=a213_0x2027,_0x4470a5=registry[_0x403750(0x1d3)](_0x31a04b);if(_0x4470a5&&_0x4470a5!==_0x2e40bb)throw new Error(_0x403750(0x1dc)+_0x31a04b+_0x403750(0x1df)+_0x4470a5+_0x403750(0x1d7)+_0x2e40bb+'\x22');registry[_0x403750(0x1dd)](_0x31a04b,_0x2e40bb);}function a213_0x1556(){const _0x11870f=['319SfLhUc','\x22,\x20cannot\x20register\x20for\x20\x22','default','replace','1566qklWCk','556199UAbEAs','Global\x20cache\x20key\x20\x22','set','trim','\x22\x20already\x20registered\x20by\x20\x22','utf-8','12985893PrPiXG','222770UCZiot','parse','1665147rMUZwG','stringify','2tqiybH','128xnXbZO','{profile}','26555SWKLtR','clear','get','4182904CjYXcf','312005ypMzcJ'];a213_0x1556=function(){return _0x11870f;};return a213_0x1556();}export function getGlobalCachePath(_0x2b98ab){return join(getGlobalCacheDir(),_0x2b98ab);}function ensureGlobalCacheDir(){const _0x2bce9e=getGlobalCacheDir();!existsSync(_0x2bce9e)&&mkdirSync(_0x2bce9e,{'recursive':!![]});}function readCacheJson(_0x2a0701){const _0x531b6b=a213_0x2027,_0x7c85ab=getGlobalCachePath(_0x2a0701);if(!existsSync(_0x7c85ab))return undefined;try{const _0x2b915c=readFileSync(_0x7c85ab,_0x531b6b(0x1e0));return JSON[_0x531b6b(0x1e3)](_0x2b915c);}catch{return undefined;}}function writeCacheJson(_0x5732e9,_0x14b23b){const _0x245c11=a213_0x2027;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5732e9),JSON[_0x245c11(0x1e5)](_0x14b23b,null,0x2),'utf-8');}function readCacheText(_0x3ac4cb){const _0x11a8f3=a213_0x2027,_0xf2f0a5=getGlobalCachePath(_0x3ac4cb);if(!existsSync(_0xf2f0a5))return undefined;try{return readFileSync(_0xf2f0a5,_0x11a8f3(0x1e0));}catch{return undefined;}}function writeCacheText(_0x5a52f1,_0x2407f5){const _0x2a0933=a213_0x2027;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5a52f1),_0x2407f5,_0x2a0933(0x1e0));}function clearCache(_0x421f28){const _0x4e2194=getGlobalCachePath(_0x421f28);if(existsSync(_0x4e2194))try{unlinkSync(_0x4e2194);}catch{}}function cacheExists(_0x31c505){return existsSync(getGlobalCachePath(_0x31c505));}export function createGlobalCache(_0x4bacfa,_0x3d86f3){return registerGlobalCacheKey(_0x4bacfa,_0x3d86f3),{'read':()=>readCacheJson(_0x4bacfa),'write':_0x539c78=>writeCacheJson(_0x4bacfa,_0x539c78),'clear':()=>clearCache(_0x4bacfa),'exists':()=>cacheExists(_0x4bacfa),'path':()=>getGlobalCachePath(_0x4bacfa)};}export function createGlobalTextCache(_0x5e1653,_0x29d705){const _0xd97d47=a213_0x2027;return registerGlobalCacheKey(_0x5e1653,_0x29d705),{'read':()=>readCacheText(_0x5e1653)?.[_0xd97d47(0x1de)]()||undefined,'write':_0x332e91=>writeCacheText(_0x5e1653,_0x332e91),'clear':()=>clearCache(_0x5e1653),'exists':()=>cacheExists(_0x5e1653),'path':()=>getGlobalCachePath(_0x5e1653)};}export function createProfileCache(_0x3a224c,_0x187b35){const _0x299db5=_0x3fb5cb=>{const _0x2656be=a213_0x2027,_0x4f0c6e=_0x3fb5cb||_0x2656be(0x1d8);return _0x3a224c[_0x2656be(0x1d9)](_0x2656be(0x1d0),_0x4f0c6e);};return{'read':_0x4df78e=>{const _0x23578e=_0x299db5(_0x4df78e);return registerGlobalCacheKey(_0x23578e,_0x187b35),readCacheJson(_0x23578e);},'write':(_0x57a659,_0xcdd501)=>{const _0xa84a79=_0x299db5(_0x57a659);registerGlobalCacheKey(_0xa84a79,_0x187b35),writeCacheJson(_0xa84a79,_0xcdd501);},'clear':_0x23122a=>{const _0x38adad=_0x299db5(_0x23122a);clearCache(_0x38adad);},'exists':_0x2bf105=>{const _0x158c37=_0x299db5(_0x2bf105);return cacheExists(_0x158c37);},'path':_0x5f023e=>{const _0x2e785c=_0x299db5(_0x5f023e);return getGlobalCachePath(_0x2e785c);}};}export function createOptionalProfileCache(_0x181def,_0x58c634,_0x39366b={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x39366b,_0x5a772e=_0x3c5bce=>{return _0x3c5bce?''+_0x181def+profileSeparator+_0x3c5bce+suffix:''+_0x181def+suffix;};return{'read':_0x324e7d=>{const _0x2fa62c=_0x5a772e(_0x324e7d);return registerGlobalCacheKey(_0x2fa62c,_0x58c634),readCacheJson(_0x2fa62c);},'write':(_0x1f28a4,_0x5c6040)=>{const _0x1ae0f3=_0x5a772e(_0x5c6040);registerGlobalCacheKey(_0x1ae0f3,_0x58c634),writeCacheJson(_0x1ae0f3,_0x1f28a4);},'clear':_0x490ccf=>{const _0x3442c0=_0x5a772e(_0x490ccf);clearCache(_0x3442c0);},'exists':_0x456988=>{const _0x9ca879=_0x5a772e(_0x456988);return cacheExists(_0x9ca879);},'path':_0x32defa=>{const _0xe6d641=_0x5a772e(_0x32defa);return getGlobalCachePath(_0xe6d641);}};}export function clearGlobalRegistry(){const _0x3df87e=a213_0x2027;registry[_0x3df87e(0x1d2)]();}
1
+ (function(_0x11cd82,_0x10499e){const _0x258456=a213_0x521e,_0x1ea227=_0x11cd82();while(!![]){try{const _0x2b6fc2=parseInt(_0x258456(0x10b))/0x1+-parseInt(_0x258456(0x104))/0x2*(-parseInt(_0x258456(0x105))/0x3)+parseInt(_0x258456(0x101))/0x4+-parseInt(_0x258456(0x107))/0x5+parseInt(_0x258456(0x102))/0x6*(-parseInt(_0x258456(0x106))/0x7)+-parseInt(_0x258456(0x10d))/0x8+parseInt(_0x258456(0xff))/0x9;if(_0x2b6fc2===_0x10499e)break;else _0x1ea227['push'](_0x1ea227['shift']());}catch(_0x1cf1cc){_0x1ea227['push'](_0x1ea227['shift']());}}}(a213_0x1bd1,0x80a0b));function a213_0x521e(_0x170a69,_0x3f4ff5){_0x170a69=_0x170a69-0xfb;const _0x1bd146=a213_0x1bd1();let _0x521e12=_0x1bd146[_0x170a69];return _0x521e12;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x325732=a213_0x521e;return process.env.TDX_CACHE_DIR||join(homedir(),_0x325732(0xfe),_0x325732(0xfd));}const registry=new Map();export function registerGlobalCacheKey(_0x3cc453,_0x43e5a9){const _0x1b2f4e=a213_0x521e,_0x2c8679=registry[_0x1b2f4e(0xfc)](_0x3cc453);if(_0x2c8679&&_0x2c8679!==_0x43e5a9)throw new Error(_0x1b2f4e(0x109)+_0x3cc453+'\x22\x20already\x20registered\x20by\x20\x22'+_0x2c8679+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x43e5a9+'\x22');registry[_0x1b2f4e(0xfb)](_0x3cc453,_0x43e5a9);}export function getGlobalCachePath(_0x124aea){return join(getGlobalCacheDir(),_0x124aea);}function ensureGlobalCacheDir(){const _0x47f627=getGlobalCacheDir();!existsSync(_0x47f627)&&mkdirSync(_0x47f627,{'recursive':!![]});}function readCacheJson(_0x4dc5f4){const _0x1fcd99=a213_0x521e,_0x56e4a6=getGlobalCachePath(_0x4dc5f4);if(!existsSync(_0x56e4a6))return undefined;try{const _0x52755e=readFileSync(_0x56e4a6,'utf-8');return JSON[_0x1fcd99(0x103)](_0x52755e);}catch{return undefined;}}function writeCacheJson(_0x1dc61a,_0x48ca64){const _0x23f0b3=a213_0x521e;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1dc61a),JSON['stringify'](_0x48ca64,null,0x2),_0x23f0b3(0x10a));}function readCacheText(_0x37fad0){const _0x1ecdac=a213_0x521e,_0x11c61c=getGlobalCachePath(_0x37fad0);if(!existsSync(_0x11c61c))return undefined;try{return readFileSync(_0x11c61c,_0x1ecdac(0x10a));}catch{return undefined;}}function writeCacheText(_0x215264,_0x24fffd){const _0x5c5399=a213_0x521e;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x215264),_0x24fffd,_0x5c5399(0x10a));}function clearCache(_0x12295c){const _0x12310d=getGlobalCachePath(_0x12295c);if(existsSync(_0x12310d))try{unlinkSync(_0x12310d);}catch{}}function cacheExists(_0x2941b0){return existsSync(getGlobalCachePath(_0x2941b0));}export function createGlobalCache(_0x38f3d8,_0x17affe){return registerGlobalCacheKey(_0x38f3d8,_0x17affe),{'read':()=>readCacheJson(_0x38f3d8),'write':_0x8f07cb=>writeCacheJson(_0x38f3d8,_0x8f07cb),'clear':()=>clearCache(_0x38f3d8),'exists':()=>cacheExists(_0x38f3d8),'path':()=>getGlobalCachePath(_0x38f3d8)};}export function createGlobalTextCache(_0x1000f2,_0x2887e7){const _0x59e0ce=a213_0x521e;return registerGlobalCacheKey(_0x1000f2,_0x2887e7),{'read':()=>readCacheText(_0x1000f2)?.[_0x59e0ce(0x108)]()||undefined,'write':_0x4ad476=>writeCacheText(_0x1000f2,_0x4ad476),'clear':()=>clearCache(_0x1000f2),'exists':()=>cacheExists(_0x1000f2),'path':()=>getGlobalCachePath(_0x1000f2)};}export function createProfileCache(_0x22e694,_0x3e75e3){const _0xcb7704=_0x21ec62=>{const _0x3f63e3=a213_0x521e,_0x23770d=_0x21ec62||_0x3f63e3(0x10c);return _0x22e694['replace'](_0x3f63e3(0x100),_0x23770d);};return{'read':_0x4e7bdf=>{const _0x39d4f3=_0xcb7704(_0x4e7bdf);return registerGlobalCacheKey(_0x39d4f3,_0x3e75e3),readCacheJson(_0x39d4f3);},'write':(_0x38ce14,_0x5ca78b)=>{const _0x274c57=_0xcb7704(_0x38ce14);registerGlobalCacheKey(_0x274c57,_0x3e75e3),writeCacheJson(_0x274c57,_0x5ca78b);},'clear':_0x1d9968=>{const _0x2ccc0e=_0xcb7704(_0x1d9968);clearCache(_0x2ccc0e);},'exists':_0xb34329=>{const _0xcecb4a=_0xcb7704(_0xb34329);return cacheExists(_0xcecb4a);},'path':_0x2b127b=>{const _0x1da7c4=_0xcb7704(_0x2b127b);return getGlobalCachePath(_0x1da7c4);}};}export function createOptionalProfileCache(_0x42d8b6,_0x123a64,_0x4a145a={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4a145a,_0x4f3680=_0x4dc967=>{return _0x4dc967?''+_0x42d8b6+profileSeparator+_0x4dc967+suffix:''+_0x42d8b6+suffix;};return{'read':_0x12f9fe=>{const _0x3e9870=_0x4f3680(_0x12f9fe);return registerGlobalCacheKey(_0x3e9870,_0x123a64),readCacheJson(_0x3e9870);},'write':(_0x49078b,_0x5c260b)=>{const _0x361ae0=_0x4f3680(_0x5c260b);registerGlobalCacheKey(_0x361ae0,_0x123a64),writeCacheJson(_0x361ae0,_0x49078b);},'clear':_0x368dd8=>{const _0x26bc2e=_0x4f3680(_0x368dd8);clearCache(_0x26bc2e);},'exists':_0x145238=>{const _0x120bf0=_0x4f3680(_0x145238);return cacheExists(_0x120bf0);},'path':_0x4255b8=>{const _0x3ba2e1=_0x4f3680(_0x4255b8);return getGlobalCachePath(_0x3ba2e1);}};}function a213_0x1bd1(){const _0x53ca51=['get','tdx','.cache','1629009VfZdCk','{profile}','3595568DxelBg','1182954oTzrqE','parse','332738dDQYyy','9pECgyX','21HdVHJK','2858555RNBxDC','trim','Global\x20cache\x20key\x20\x22','utf-8','1037833dpDqMV','default','7414288oCXfxe','set'];a213_0x1bd1=function(){return _0x53ca51;};return a213_0x1bd1();}export function clearGlobalRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- function a214_0x2a47(_0x44f7a2,_0x1d983c){_0x44f7a2=_0x44f7a2-0x6b;const _0x584bad=a214_0x584b();let _0x2a4790=_0x584bad[_0x44f7a2];return _0x2a4790;}(function(_0x14133a,_0x575e0a){const _0x17fc87=a214_0x2a47,_0x3ff7a3=_0x14133a();while(!![]){try{const _0xc07a2a=parseInt(_0x17fc87(0x77))/0x1*(parseInt(_0x17fc87(0x82))/0x2)+-parseInt(_0x17fc87(0x6b))/0x3+parseInt(_0x17fc87(0x7d))/0x4*(-parseInt(_0x17fc87(0x80))/0x5)+-parseInt(_0x17fc87(0x81))/0x6*(parseInt(_0x17fc87(0x6e))/0x7)+parseInt(_0x17fc87(0x75))/0x8+parseInt(_0x17fc87(0x7f))/0x9*(-parseInt(_0x17fc87(0x73))/0xa)+parseInt(_0x17fc87(0x83))/0xb;if(_0xc07a2a===_0x575e0a)break;else _0x3ff7a3['push'](_0x3ff7a3['shift']());}catch(_0x24d9b5){_0x3ff7a3['push'](_0x3ff7a3['shift']());}}}(a214_0x584b,0xc058a));import{readFile}from'fs/promises';function a214_0x584b(){const _0x50a004=['ENOENT','File\x20not\x20found:\x20','message','Permission\x20denied\x20reading\x20file:\x20','1244RGiYRi','code','3579921wunHXJ','12515pBwsSN','190338UwNvqc','1334llfPTL','28700023CfwKQw','PERMISSION_DENIED','utf-8','3516495jHFKYw','parse','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','245dWVUZj','INVALID_ARGUMENT','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','Invalid\x20JSON\x20string:\x20','10KneHLq','EACCES','7880824OAgQUq','INTERNAL','978BtUpAF','NOT_FOUND'];a214_0x584b=function(){return _0x50a004;};return a214_0x584b();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x4929dd,_0x377506){const _0x3d8419=a214_0x2a47;try{if(_0x377506){const _0x3d4bbb=await readFile(_0x4929dd,_0x3d8419(0x85));try{return JSON[_0x3d8419(0x6c)](_0x3d4bbb);}catch(_0x2f0b34){throw new SDKError(ErrorCode[_0x3d8419(0x6f)],_0x3d8419(0x71)+_0x4929dd+'\x27:\x20'+(_0x2f0b34 instanceof Error?_0x2f0b34[_0x3d8419(0x7b)]:String(_0x2f0b34)));}}else try{return JSON[_0x3d8419(0x6c)](_0x4929dd);}catch(_0x3317df){throw new SDKError(ErrorCode[_0x3d8419(0x6f)],_0x3d8419(0x72)+(_0x3317df instanceof Error?_0x3317df[_0x3d8419(0x7b)]:String(_0x3317df)));}}catch(_0x139293){if(_0x139293 instanceof SDKError)throw _0x139293;if(_0x139293 instanceof Error&&'code'in _0x139293){const _0x37cf7f=_0x139293;if(_0x37cf7f['code']===_0x3d8419(0x79))throw new SDKError(ErrorCode[_0x3d8419(0x78)],_0x3d8419(0x7a)+_0x4929dd);else{if(_0x37cf7f[_0x3d8419(0x7e)]===_0x3d8419(0x74))throw new SDKError(ErrorCode[_0x3d8419(0x84)],_0x3d8419(0x7c)+_0x4929dd);}}throw new SDKError(ErrorCode[_0x3d8419(0x76)],_0x3d8419(0x70)+(_0x139293 instanceof Error?_0x139293[_0x3d8419(0x7b)]:String(_0x139293)));}}export async function loadJSONFromOptions(_0x3a8ede,_0x2b1f39){const _0x350a7d=a214_0x2a47;if(_0x3a8ede&&_0x2b1f39)throw new SDKError(ErrorCode[_0x350a7d(0x6f)],_0x350a7d(0x6d));if(_0x3a8ede)return await loadJSON(_0x3a8ede,![]);if(_0x2b1f39)return await loadJSON(_0x2b1f39,!![]);return undefined;}
1
+ (function(_0x1a2a9d,_0x4de263){const _0xba5ac2=a214_0x1c43,_0xa6df36=_0x1a2a9d();while(!![]){try{const _0x4b930a=-parseInt(_0xba5ac2(0x1c0))/0x1*(-parseInt(_0xba5ac2(0x1d2))/0x2)+parseInt(_0xba5ac2(0x1ca))/0x3*(-parseInt(_0xba5ac2(0x1d0))/0x4)+-parseInt(_0xba5ac2(0x1c4))/0x5+-parseInt(_0xba5ac2(0x1c3))/0x6+-parseInt(_0xba5ac2(0x1be))/0x7+parseInt(_0xba5ac2(0x1cc))/0x8*(parseInt(_0xba5ac2(0x1bb))/0x9)+parseInt(_0xba5ac2(0x1c1))/0xa*(parseInt(_0xba5ac2(0x1bf))/0xb);if(_0x4b930a===_0x4de263)break;else _0xa6df36['push'](_0xa6df36['shift']());}catch(_0x4fead4){_0xa6df36['push'](_0xa6df36['shift']());}}}(a214_0x37d2,0x21de3));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x57eb7b,_0x51d44f){const _0x34bdf6=a214_0x1c43;try{if(_0x51d44f){const _0x395f71=await readFile(_0x57eb7b,'utf-8');try{return JSON[_0x34bdf6(0x1c5)](_0x395f71);}catch(_0x371714){throw new SDKError(ErrorCode[_0x34bdf6(0x1c2)],_0x34bdf6(0x1d1)+_0x57eb7b+_0x34bdf6(0x1c7)+(_0x371714 instanceof Error?_0x371714[_0x34bdf6(0x1c9)]:String(_0x371714)));}}else try{return JSON[_0x34bdf6(0x1c5)](_0x57eb7b);}catch(_0x9c8d24){throw new SDKError(ErrorCode[_0x34bdf6(0x1c2)],_0x34bdf6(0x1cd)+(_0x9c8d24 instanceof Error?_0x9c8d24[_0x34bdf6(0x1c9)]:String(_0x9c8d24)));}}catch(_0x1fd0d0){if(_0x1fd0d0 instanceof SDKError)throw _0x1fd0d0;if(_0x1fd0d0 instanceof Error&&_0x34bdf6(0x1cf)in _0x1fd0d0){const _0x5e527b=_0x1fd0d0;if(_0x5e527b[_0x34bdf6(0x1cf)]===_0x34bdf6(0x1c8))throw new SDKError(ErrorCode[_0x34bdf6(0x1bc)],_0x34bdf6(0x1bd)+_0x57eb7b);else{if(_0x5e527b[_0x34bdf6(0x1cf)]===_0x34bdf6(0x1ce))throw new SDKError(ErrorCode[_0x34bdf6(0x1c6)],'Permission\x20denied\x20reading\x20file:\x20'+_0x57eb7b);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x1fd0d0 instanceof Error?_0x1fd0d0[_0x34bdf6(0x1c9)]:String(_0x1fd0d0)));}}export async function loadJSONFromOptions(_0x4a6c61,_0x4e15d8){const _0x2312a2=a214_0x1c43;if(_0x4a6c61&&_0x4e15d8)throw new SDKError(ErrorCode[_0x2312a2(0x1c2)],_0x2312a2(0x1cb));if(_0x4a6c61)return await loadJSON(_0x4a6c61,![]);if(_0x4e15d8)return await loadJSON(_0x4e15d8,!![]);return undefined;}function a214_0x1c43(_0x3921a1,_0x304d3e){_0x3921a1=_0x3921a1-0x1bb;const _0x37d291=a214_0x37d2();let _0x1c430b=_0x37d291[_0x3921a1];return _0x1c430b;}function a214_0x37d2(){const _0x4b8f9a=['File\x20not\x20found:\x20','1069432bxylcf','88hhrAOl','1QXjqix','58930jQjQhF','INVALID_ARGUMENT','129738GVXVMP','233280ZSexkU','parse','PERMISSION_DENIED','\x27:\x20','ENOENT','message','476481BueXoT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','1026184hdUuey','Invalid\x20JSON\x20string:\x20','EACCES','code','4ZGOfuC','Invalid\x20JSON\x20in\x20file\x20\x27','429830BKjMCd','18wClzzQ','NOT_FOUND'];a214_0x37d2=function(){return _0x4b8f9a;};return a214_0x37d2();}
@@ -1 +1 @@
1
- const a215_0x5a69a4=a215_0x175d;function a215_0x175d(_0x5d794e,_0x575059){_0x5d794e=_0x5d794e-0x6c;const _0x34ac31=a215_0x34ac();let _0x175d14=_0x34ac31[_0x5d794e];return _0x175d14;}(function(_0x49c5c9,_0x14ceec){const _0x2bf881=a215_0x175d,_0x1c4edd=_0x49c5c9();while(!![]){try{const _0x1f3493=-parseInt(_0x2bf881(0x72))/0x1+parseInt(_0x2bf881(0x74))/0x2+-parseInt(_0x2bf881(0x6e))/0x3*(-parseInt(_0x2bf881(0x73))/0x4)+parseInt(_0x2bf881(0x77))/0x5+-parseInt(_0x2bf881(0x7c))/0x6+parseInt(_0x2bf881(0x79))/0x7+-parseInt(_0x2bf881(0x6f))/0x8;if(_0x1f3493===_0x14ceec)break;else _0x1c4edd['push'](_0x1c4edd['shift']());}catch(_0xb0c69f){_0x1c4edd['push'](_0x1c4edd['shift']());}}}(a215_0x34ac,0x6e89f));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a215_0x5a69a4(0x7a),registry=new Map();export function registerCacheKey(_0x1a4d78,_0x106458){const _0x10ecaf=a215_0x5a69a4,_0x5519f2=registry[_0x10ecaf(0x7b)](_0x1a4d78);if(_0x5519f2&&_0x5519f2!==_0x106458)throw new Error(_0x10ecaf(0x78)+_0x1a4d78+_0x10ecaf(0x6c)+_0x5519f2+_0x10ecaf(0x7d)+_0x106458+'\x22');registry['set'](_0x1a4d78,_0x106458);}export function getCacheDir(){const _0xfc1feb=a215_0x5a69a4,_0x1c0153=process['cwd'](),_0x1386fe=_0x1c0153===parse(_0x1c0153)[_0xfc1feb(0x75)]?homedir():_0x1c0153;return join(_0x1386fe,LOCAL_CACHE_DIR);}export function getCachePath(_0x114358){return join(getCacheDir(),_0x114358);}function ensureCacheDir(){const _0x953cc7=getCacheDir();!existsSync(_0x953cc7)&&mkdirSync(_0x953cc7,{'recursive':!![]});}function a215_0x34ac(){const _0x255e9c=['root','utf-8','2386815mIdAaN','Cache\x20key\x20\x22','2072112yxgOke','.cache/tdx','get','2842554UzVyHO','\x22,\x20cannot\x20register\x20for\x20\x22','\x22\x20already\x20registered\x20by\x20\x22','stringify','123cJBkLI','4801992xcsDqs','trim','clear','354398jdUAeg','23356NBShRn','1736790KsrLvV'];a215_0x34ac=function(){return _0x255e9c;};return a215_0x34ac();}function readCacheJson(_0x11782c){const _0x4f14a8=a215_0x5a69a4,_0x5667d3=getCachePath(_0x11782c);if(!existsSync(_0x5667d3))return undefined;try{const _0x1ca667=readFileSync(_0x5667d3,_0x4f14a8(0x76));return JSON['parse'](_0x1ca667);}catch{return undefined;}}function writeCacheJson(_0x4a1aa7,_0x485139){const _0x2b158f=a215_0x5a69a4;ensureCacheDir(),writeFileSync(getCachePath(_0x4a1aa7),JSON[_0x2b158f(0x6d)](_0x485139,null,0x2),'utf-8');}function readCacheText(_0x1f9647){const _0x1b1ee1=a215_0x5a69a4,_0x174f10=getCachePath(_0x1f9647);if(!existsSync(_0x174f10))return undefined;try{return readFileSync(_0x174f10,_0x1b1ee1(0x76));}catch{return undefined;}}function writeCacheText(_0x7bade8,_0x586069){ensureCacheDir(),writeFileSync(getCachePath(_0x7bade8),_0x586069,'utf-8');}function clearCache(_0x13f06a){const _0x34f273=getCachePath(_0x13f06a);if(existsSync(_0x34f273))try{unlinkSync(_0x34f273);}catch{}}function cacheExists(_0x13039d){return existsSync(getCachePath(_0x13039d));}export function createCache(_0x4ca1b7,_0x57aa66){return registerCacheKey(_0x4ca1b7,_0x57aa66),{'read':()=>readCacheJson(_0x4ca1b7),'write':_0x5d43ba=>writeCacheJson(_0x4ca1b7,_0x5d43ba),'clear':()=>clearCache(_0x4ca1b7),'exists':()=>cacheExists(_0x4ca1b7),'path':()=>getCachePath(_0x4ca1b7)};}export function createTextCache(_0x7ac1a7,_0x4f2473){const _0x1df42a=a215_0x5a69a4;return registerCacheKey(_0x7ac1a7,_0x4f2473),{'read':()=>readCacheText(_0x7ac1a7)?.[_0x1df42a(0x70)]()||undefined,'write':_0x596e31=>writeCacheText(_0x7ac1a7,_0x596e31),'clear':()=>clearCache(_0x7ac1a7),'exists':()=>cacheExists(_0x7ac1a7),'path':()=>getCachePath(_0x7ac1a7)};}export function clearRegistry(){const _0x10098f=a215_0x5a69a4;registry[_0x10098f(0x71)]();}
1
+ (function(_0x465c0c,_0x507fec){const _0x18718c=a215_0x59e6,_0x471db2=_0x465c0c();while(!![]){try{const _0x3ae8d6=-parseInt(_0x18718c(0xd8))/0x1*(-parseInt(_0x18718c(0xce))/0x2)+parseInt(_0x18718c(0xcb))/0x3+parseInt(_0x18718c(0xd9))/0x4*(parseInt(_0x18718c(0xd1))/0x5)+-parseInt(_0x18718c(0xdc))/0x6*(-parseInt(_0x18718c(0xde))/0x7)+-parseInt(_0x18718c(0xcd))/0x8+-parseInt(_0x18718c(0xcf))/0x9+-parseInt(_0x18718c(0xd6))/0xa;if(_0x3ae8d6===_0x507fec)break;else _0x471db2['push'](_0x471db2['shift']());}catch(_0x3fdf85){_0x471db2['push'](_0x471db2['shift']());}}}(a215_0x443c,0x5dec9));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';function a215_0x443c(){const _0x40852a=['\x22\x20already\x20registered\x20by\x20\x22','49ZYEsPo','parse','1644741VvISGU','stringify','4756008DzcPIi','2QauFfK','2384649GLmJLo','utf-8','15lPgYhN','root','get','cwd','set','8670230hBtfUN','Cache\x20key\x20\x22','523737XPzarV','995700NdHGpX','trim','\x22,\x20cannot\x20register\x20for\x20\x22','250662YCZzwm'];a215_0x443c=function(){return _0x40852a;};return a215_0x443c();}const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();export function registerCacheKey(_0x5d2689,_0x1cb3ed){const _0x7fd78a=a215_0x59e6,_0x148a90=registry[_0x7fd78a(0xd3)](_0x5d2689);if(_0x148a90&&_0x148a90!==_0x1cb3ed)throw new Error(_0x7fd78a(0xd7)+_0x5d2689+_0x7fd78a(0xdd)+_0x148a90+_0x7fd78a(0xdb)+_0x1cb3ed+'\x22');registry[_0x7fd78a(0xd5)](_0x5d2689,_0x1cb3ed);}export function getCacheDir(){const _0x49d29d=a215_0x59e6,_0x48e7fb=process[_0x49d29d(0xd4)](),_0x23a67e=_0x48e7fb===parse(_0x48e7fb)[_0x49d29d(0xd2)]?homedir():_0x48e7fb;return join(_0x23a67e,LOCAL_CACHE_DIR);}export function getCachePath(_0x47950c){return join(getCacheDir(),_0x47950c);}function ensureCacheDir(){const _0x229310=getCacheDir();!existsSync(_0x229310)&&mkdirSync(_0x229310,{'recursive':!![]});}function a215_0x59e6(_0x95cb88,_0x252598){_0x95cb88=_0x95cb88-0xca;const _0x443cf2=a215_0x443c();let _0x59e6f1=_0x443cf2[_0x95cb88];return _0x59e6f1;}function readCacheJson(_0x5d6e5a){const _0x542b97=a215_0x59e6,_0xcaa79f=getCachePath(_0x5d6e5a);if(!existsSync(_0xcaa79f))return undefined;try{const _0x3794e9=readFileSync(_0xcaa79f,_0x542b97(0xd0));return JSON[_0x542b97(0xca)](_0x3794e9);}catch{return undefined;}}function writeCacheJson(_0x42619f,_0x3178ee){const _0x38f91e=a215_0x59e6;ensureCacheDir(),writeFileSync(getCachePath(_0x42619f),JSON[_0x38f91e(0xcc)](_0x3178ee,null,0x2),_0x38f91e(0xd0));}function readCacheText(_0xedec11){const _0x3c9f52=a215_0x59e6,_0x407eb7=getCachePath(_0xedec11);if(!existsSync(_0x407eb7))return undefined;try{return readFileSync(_0x407eb7,_0x3c9f52(0xd0));}catch{return undefined;}}function writeCacheText(_0x21c3ae,_0x25f5b3){const _0x18a9cb=a215_0x59e6;ensureCacheDir(),writeFileSync(getCachePath(_0x21c3ae),_0x25f5b3,_0x18a9cb(0xd0));}function clearCache(_0x485534){const _0x8ef6=getCachePath(_0x485534);if(existsSync(_0x8ef6))try{unlinkSync(_0x8ef6);}catch{}}function cacheExists(_0x1678b4){return existsSync(getCachePath(_0x1678b4));}export function createCache(_0x466de6,_0x3ce3c2){return registerCacheKey(_0x466de6,_0x3ce3c2),{'read':()=>readCacheJson(_0x466de6),'write':_0x426617=>writeCacheJson(_0x466de6,_0x426617),'clear':()=>clearCache(_0x466de6),'exists':()=>cacheExists(_0x466de6),'path':()=>getCachePath(_0x466de6)};}export function createTextCache(_0xf8cb15,_0x374653){const _0x2acd98=a215_0x59e6;return registerCacheKey(_0xf8cb15,_0x374653),{'read':()=>readCacheText(_0xf8cb15)?.[_0x2acd98(0xda)]()||undefined,'write':_0x4012af=>writeCacheText(_0xf8cb15,_0x4012af),'clear':()=>clearCache(_0xf8cb15),'exists':()=>cacheExists(_0xf8cb15),'path':()=>getCachePath(_0xf8cb15)};}export function clearRegistry(){registry['clear']();}
@@ -1 +1 @@
1
- const a216_0x1e3489=a216_0x1633;(function(_0x39619c,_0x7a9325){const _0x47a2ba=a216_0x1633,_0x5755ed=_0x39619c();while(!![]){try{const _0x4d7a8a=-parseInt(_0x47a2ba(0x1ca))/0x1*(-parseInt(_0x47a2ba(0x1cc))/0x2)+parseInt(_0x47a2ba(0x1c2))/0x3*(parseInt(_0x47a2ba(0x1d1))/0x4)+-parseInt(_0x47a2ba(0x1b6))/0x5+-parseInt(_0x47a2ba(0x1b7))/0x6*(parseInt(_0x47a2ba(0x1ba))/0x7)+-parseInt(_0x47a2ba(0x1c1))/0x8+parseInt(_0x47a2ba(0x1be))/0x9+-parseInt(_0x47a2ba(0x1b4))/0xa;if(_0x4d7a8a===_0x7a9325)break;else _0x5755ed['push'](_0x5755ed['shift']());}catch(_0x5cec69){_0x5755ed['push'](_0x5755ed['shift']());}}}(a216_0x1aed,0x1c9ea));import a216_0x2ac7de from'chalk';function a216_0x1633(_0xde5d7,_0x5f55b7){_0xde5d7=_0xde5d7-0x1b4;const _0x1aedf8=a216_0x1aed();let _0x1633b3=_0x1aedf8[_0xde5d7];return _0x1633b3;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a216_0x1aed(){const _0x50d73d=['timestamp','620330vALXbt','12XpSezU','DEBUG','WARN','8351HNYTUi','Chalk','TRACE','gray','870984raVSKn','cyan','format','624248Zthndz','27609WJgNKC','colors','message','dim','yellow','ERROR','blue','chalk','162623MkSjdT','level','2eBYHfj','component','INFO','green','default','76nNzVFk','red','1125470ZlwifS'];a216_0x1aed=function(){return _0x50d73d;};return a216_0x1aed();}const chalkModule=a216_0x2ac7de,ChalkClass=chalkModule[a216_0x1e3489(0x1bb)]||chalkModule[a216_0x1e3489(0x1d0)]?.['Chalk'];export class DefaultLogFormatter{['colors'];[a216_0x1e3489(0x1c9)];constructor(_0x1c68be={}){const _0x3a7c7f=a216_0x1e3489;this[_0x3a7c7f(0x1c3)]=_0x1c68be[_0x3a7c7f(0x1c3)]??![],this[_0x3a7c7f(0x1c9)]=_0x1c68be[_0x3a7c7f(0x1c3)]&&ChalkClass?new ChalkClass({'level':0x3}):a216_0x2ac7de;}[a216_0x1e3489(0x1c0)](_0x180cec){const _0x42eaec=a216_0x1e3489,_0x334145=formatTimestamp(_0x180cec[_0x42eaec(0x1b5)]),_0x48d9cf=logLevelToString(_0x180cec[_0x42eaec(0x1cb)]);if(!this['colors'])return _0x334145+'\x20['+_0x48d9cf+']\x20['+_0x180cec[_0x42eaec(0x1cd)]+']\x20'+_0x180cec[_0x42eaec(0x1c4)];const _0x8f2c32=this[_0x42eaec(0x1c9)][_0x42eaec(0x1c5)](_0x334145),_0x15b416=this['colorLevel'](_0x48d9cf,_0x180cec['level']),_0x1ba20c=this[_0x42eaec(0x1c9)][_0x42eaec(0x1c8)]('['+_0x180cec[_0x42eaec(0x1cd)]+']');return _0x8f2c32+'\x20'+_0x15b416+'\x20'+_0x1ba20c+'\x20'+_0x180cec[_0x42eaec(0x1c4)];}['colorLevel'](_0x51f39e,_0x106a20){const _0x248b70=a216_0x1e3489;switch(_0x106a20){case LogLevel[_0x248b70(0x1bc)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1bd)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1b8)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1cf)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1ce)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1bf)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1b9)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1c6)]('['+_0x51f39e+']');case LogLevel[_0x248b70(0x1c7)]:return this[_0x248b70(0x1c9)][_0x248b70(0x1d2)]('['+_0x51f39e+']');default:return'['+_0x51f39e+']';}}}
1
+ function a216_0x5026(){const _0x59a934=['colors','558SapLPA','yellow','25Lgfzds','3215499WrMetN','12UntNJO','gray','2478174SJhZBk','level','154026SEviEp',']\x20[','format','Chalk','3108900YYfeFt','default','362476ZEhxWS','green','colorLevel','ERROR','INFO','114967wSkIyJ','message','timestamp','dim','component','4320XColUw','chalk','red'];a216_0x5026=function(){return _0x59a934;};return a216_0x5026();}const a216_0x3afbfc=a216_0x8acf;(function(_0xefb36e,_0x29de6d){const _0x680173=a216_0x8acf,_0xb12947=_0xefb36e();while(!![]){try{const _0x24d75d=-parseInt(_0x680173(0x157))/0x1+parseInt(_0x680173(0x164))/0x2*(parseInt(_0x680173(0x168))/0x3)+-parseInt(_0x680173(0x16e))/0x4*(-parseInt(_0x680173(0x162))/0x5)+parseInt(_0x680173(0x166))/0x6+-parseInt(_0x680173(0x163))/0x7+parseInt(_0x680173(0x15c))/0x8*(-parseInt(_0x680173(0x160))/0x9)+-parseInt(_0x680173(0x16c))/0xa;if(_0x24d75d===_0x29de6d)break;else _0xb12947['push'](_0xb12947['shift']());}catch(_0x2c19dc){_0xb12947['push'](_0xb12947['shift']());}}}(a216_0x5026,0x3e5fa));import a216_0x2fa438 from'chalk';function a216_0x8acf(_0x575b29,_0x2eea7c){_0x575b29=_0x575b29-0x156;const _0x5026e2=a216_0x5026();let _0x8acf0c=_0x5026e2[_0x575b29];return _0x8acf0c;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a216_0x2fa438,ChalkClass=chalkModule[a216_0x3afbfc(0x16b)]||chalkModule[a216_0x3afbfc(0x16d)]?.[a216_0x3afbfc(0x16b)];export class DefaultLogFormatter{[a216_0x3afbfc(0x15f)];['chalk'];constructor(_0x5c0b44={}){const _0x38e611=a216_0x3afbfc;this[_0x38e611(0x15f)]=_0x5c0b44['colors']??![],this[_0x38e611(0x15d)]=_0x5c0b44['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a216_0x2fa438;}[a216_0x3afbfc(0x16a)](_0x33a1de){const _0x212b61=a216_0x3afbfc,_0xff737=formatTimestamp(_0x33a1de[_0x212b61(0x159)]),_0x1511ef=logLevelToString(_0x33a1de[_0x212b61(0x167)]);if(!this[_0x212b61(0x15f)])return _0xff737+'\x20['+_0x1511ef+_0x212b61(0x169)+_0x33a1de[_0x212b61(0x15b)]+']\x20'+_0x33a1de['message'];const _0x209337=this[_0x212b61(0x15d)][_0x212b61(0x15a)](_0xff737),_0x19f265=this[_0x212b61(0x170)](_0x1511ef,_0x33a1de['level']),_0x15d8a6=this['chalk']['blue']('['+_0x33a1de['component']+']');return _0x209337+'\x20'+_0x19f265+'\x20'+_0x15d8a6+'\x20'+_0x33a1de[_0x212b61(0x158)];}[a216_0x3afbfc(0x170)](_0x4ba463,_0x1493bc){const _0x18aab0=a216_0x3afbfc;switch(_0x1493bc){case LogLevel['TRACE']:return this[_0x18aab0(0x15d)][_0x18aab0(0x165)]('['+_0x4ba463+']');case LogLevel['DEBUG']:return this['chalk'][_0x18aab0(0x16f)]('['+_0x4ba463+']');case LogLevel[_0x18aab0(0x156)]:return this[_0x18aab0(0x15d)]['cyan']('['+_0x4ba463+']');case LogLevel['WARN']:return this[_0x18aab0(0x15d)][_0x18aab0(0x161)]('['+_0x4ba463+']');case LogLevel[_0x18aab0(0x171)]:return this[_0x18aab0(0x15d)][_0x18aab0(0x15e)]('['+_0x4ba463+']');default:return'['+_0x4ba463+']';}}}
@@ -1 +1 @@
1
- (function(_0x49f473,_0x5aca6c){var _0x14eb89=a217_0x464a,_0x3fb7b3=_0x49f473();while(!![]){try{var _0x1e9245=-parseInt(_0x14eb89(0x132))/0x1*(parseInt(_0x14eb89(0x130))/0x2)+parseInt(_0x14eb89(0x12a))/0x3+parseInt(_0x14eb89(0x12b))/0x4+parseInt(_0x14eb89(0x131))/0x5+parseInt(_0x14eb89(0x12c))/0x6*(parseInt(_0x14eb89(0x12e))/0x7)+parseInt(_0x14eb89(0x12f))/0x8*(parseInt(_0x14eb89(0x133))/0x9)+-parseInt(_0x14eb89(0x12d))/0xa;if(_0x1e9245===_0x5aca6c)break;else _0x3fb7b3['push'](_0x3fb7b3['shift']());}catch(_0x303069){_0x3fb7b3['push'](_0x3fb7b3['shift']());}}}(a217_0x3a2c,0x7b0cb));function a217_0x464a(_0x2f79f3,_0xf91d8f){_0x2f79f3=_0x2f79f3-0x12a;var _0x3a2cd9=a217_0x3a2c();var _0x464af1=_0x3a2cd9[_0x2f79f3];return _0x464af1;}export{DefaultLogFormatter}from'./default-formatter.js';function a217_0x3a2c(){var _0x2e0bdf=['80958RTNfUr','19251230iBMMRc','98uQiWyz','239376mSoXrI','26qZoSRw','3633030OLhMxn','34631UCyhou','153zbxnjV','1877919hCOCdU','3316728UViPSb'];a217_0x3a2c=function(){return _0x2e0bdf;};return a217_0x3a2c();}
1
+ function a217_0x1116(){var _0x1fe98e=['805662aUjlmL','3302240wTnqxw','11hFybsQ','76527LvRrhn','14tbbzyf','5BgluKF','45oHmKOf','290504WfhhOc','18808164TJLQRm','1802356UIEZHu','7hvHKwy','767202LzLwOW'];a217_0x1116=function(){return _0x1fe98e;};return a217_0x1116();}(function(_0x215bc4,_0x141688){var _0x4ab8c2=a217_0x12bd,_0x2234bd=_0x215bc4();while(!![]){try{var _0x49eb89=-parseInt(_0x4ab8c2(0x1c6))/0x1+-parseInt(_0x4ab8c2(0x1ca))/0x2*(-parseInt(_0x4ab8c2(0x1c9))/0x3)+parseInt(_0x4ab8c2(0x1c3))/0x4*(parseInt(_0x4ab8c2(0x1cb))/0x5)+-parseInt(_0x4ab8c2(0x1c5))/0x6*(parseInt(_0x4ab8c2(0x1c4))/0x7)+parseInt(_0x4ab8c2(0x1cd))/0x8*(-parseInt(_0x4ab8c2(0x1cc))/0x9)+-parseInt(_0x4ab8c2(0x1c7))/0xa+parseInt(_0x4ab8c2(0x1c8))/0xb*(parseInt(_0x4ab8c2(0x1c2))/0xc);if(_0x49eb89===_0x141688)break;else _0x2234bd['push'](_0x2234bd['shift']());}catch(_0x5f2997){_0x2234bd['push'](_0x2234bd['shift']());}}}(a217_0x1116,0xb764d));function a217_0x12bd(_0x3fcd33,_0x4e7a63){_0x3fcd33=_0x3fcd33-0x1c2;var _0x1116a8=a217_0x1116();var _0x12bd18=_0x1116a8[_0x3fcd33];return _0x12bd18;}export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a218_0x4fa88f=a218_0x2b5a;(function(_0x5898b5,_0x24490b){const _0x461273=a218_0x2b5a,_0xbf2547=_0x5898b5();while(!![]){try{const _0xd0b581=parseInt(_0x461273(0xe8))/0x1+parseInt(_0x461273(0xf4))/0x2+parseInt(_0x461273(0xed))/0x3*(-parseInt(_0x461273(0xec))/0x4)+-parseInt(_0x461273(0xef))/0x5*(parseInt(_0x461273(0xf1))/0x6)+-parseInt(_0x461273(0xea))/0x7+parseInt(_0x461273(0xeb))/0x8*(-parseInt(_0x461273(0xe9))/0x9)+-parseInt(_0x461273(0xf0))/0xa*(-parseInt(_0x461273(0xe4))/0xb);if(_0xd0b581===_0x24490b)break;else _0xbf2547['push'](_0xbf2547['shift']());}catch(_0x572ff5){_0xbf2547['push'](_0xbf2547['shift']());}}}(a218_0x546e,0x68e4f));function a218_0x546e(){const _0x4c0308=['colors','error','443558WUqMEi','171ByOVxU','5264203LQWadB','111392QnLFvx','1192888hzVpxF','6eeMpNd','handle','40720YnzNNt','2620XJJQkD','96aNIdvi','log','formatter','97384DciVnG','format','useStderr','WARN','minLevel','70565uhIEBZ','level'];a218_0x546e=function(){return _0x4c0308;};return a218_0x546e();}function a218_0x2b5a(_0x240213,_0x2ca4ec){_0x240213=_0x240213-0xe1;const _0x546e35=a218_0x546e();let _0x2b5a8d=_0x546e35[_0x240213];return _0x2b5a8d;}import{LogLevel as a218_0x4b8c47}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a218_0x4fa88f(0xe3)];[a218_0x4fa88f(0xe1)];[a218_0x4fa88f(0xf3)];constructor(_0x257ee5={}){const _0x244d24=a218_0x4fa88f;this['minLevel']=_0x257ee5['minLevel']??a218_0x4b8c47['WARN'],this[_0x244d24(0xe1)]=_0x257ee5['useStderr']??!![],this[_0x244d24(0xf3)]=new DefaultLogFormatter({'colors':_0x257ee5[_0x244d24(0xe6)]??!![]});}[a218_0x4fa88f(0xee)](_0x5dbb32){const _0x463b18=a218_0x4fa88f;if(_0x5dbb32[_0x463b18(0xe5)]<this[_0x463b18(0xe3)])return;const _0x13cc6c=this['formatter'][_0x463b18(0xf5)](_0x5dbb32);this[_0x463b18(0xe1)]&&_0x5dbb32['level']>=a218_0x4b8c47[_0x463b18(0xe2)]?console[_0x463b18(0xe7)](_0x13cc6c):console[_0x463b18(0xf2)](_0x13cc6c);}}
1
+ const a218_0xf76478=a218_0x3f89;(function(_0x438495,_0x127f34){const _0x139984=a218_0x3f89,_0x118051=_0x438495();while(!![]){try{const _0x26163e=-parseInt(_0x139984(0x119))/0x1*(parseInt(_0x139984(0x113))/0x2)+parseInt(_0x139984(0x107))/0x3*(parseInt(_0x139984(0x10a))/0x4)+-parseInt(_0x139984(0x111))/0x5*(parseInt(_0x139984(0x10c))/0x6)+-parseInt(_0x139984(0x112))/0x7+-parseInt(_0x139984(0x10b))/0x8+-parseInt(_0x139984(0x10d))/0x9*(-parseInt(_0x139984(0x10e))/0xa)+-parseInt(_0x139984(0x115))/0xb*(-parseInt(_0x139984(0x106))/0xc);if(_0x26163e===_0x127f34)break;else _0x118051['push'](_0x118051['shift']());}catch(_0x3a04eb){_0x118051['push'](_0x118051['shift']());}}}(a218_0x4a83,0x6539c));import{LogLevel as a218_0x939526}from'../types.js';function a218_0x3f89(_0xa175f0,_0x131651){_0xa175f0=_0xa175f0-0x104;const _0x4a83e1=a218_0x4a83();let _0x3f893e=_0x4a83e1[_0xa175f0];return _0x3f893e;}function a218_0x4a83(){const _0x16584c=['3080924uSoYEw','2kfKzsl','minLevel','33oVCPuN','log','useStderr','handle','126026YqTCGW','colors','formatter','6459564hKDLvb','87IyFwTF','error','format','25292Ckjzrs','4903632AIIuHi','24wDMtiJ','45itYSZC','1217340jNzSBu','level','WARN','1016495GOHNqZ'];a218_0x4a83=function(){return _0x16584c;};return a218_0x4a83();}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a218_0xf76478(0x114)];[a218_0xf76478(0x117)];['formatter'];constructor(_0x2bf29e={}){const _0x515b4e=a218_0xf76478;this['minLevel']=_0x2bf29e['minLevel']??a218_0x939526[_0x515b4e(0x110)],this[_0x515b4e(0x117)]=_0x2bf29e[_0x515b4e(0x117)]??!![],this[_0x515b4e(0x105)]=new DefaultLogFormatter({'colors':_0x2bf29e[_0x515b4e(0x104)]??!![]});}[a218_0xf76478(0x118)](_0x5f4fb2){const _0x1b0874=a218_0xf76478;if(_0x5f4fb2[_0x1b0874(0x10f)]<this['minLevel'])return;const _0x105c51=this[_0x1b0874(0x105)][_0x1b0874(0x109)](_0x5f4fb2);this[_0x1b0874(0x117)]&&_0x5f4fb2['level']>=a218_0x939526['WARN']?console[_0x1b0874(0x108)](_0x105c51):console[_0x1b0874(0x116)](_0x105c51);}}
@@ -1 +1 @@
1
- const a219_0x667590=a219_0x4188;(function(_0x3b8ec4,_0xbdeb53){const _0x497ac8=a219_0x4188,_0x326e12=_0x3b8ec4();while(!![]){try{const _0x192611=-parseInt(_0x497ac8(0x157))/0x1+-parseInt(_0x497ac8(0x142))/0x2*(-parseInt(_0x497ac8(0x132))/0x3)+parseInt(_0x497ac8(0x148))/0x4+-parseInt(_0x497ac8(0x133))/0x5+parseInt(_0x497ac8(0x153))/0x6+-parseInt(_0x497ac8(0x151))/0x7*(parseInt(_0x497ac8(0x144))/0x8)+parseInt(_0x497ac8(0x136))/0x9;if(_0x192611===_0xbdeb53)break;else _0x326e12['push'](_0x326e12['shift']());}catch(_0x12f19c){_0x326e12['push'](_0x326e12['shift']());}}}(a219_0x2534,0xeb0c1));import{createWriteStream,createReadStream}from'fs';function a219_0x2534(){const _0x5836c6=['1588722GNqhzw','end','logDir','rotate','269100BBXqDj','33882RxSubl','8479305cHfmfi','error','Warning:\x20Error\x20writing\x20to\x20','16061067AnMYOM','logPath','write','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','test','.log','init','close','Warning:\x20Failed\x20to\x20compress\x20','filePath','logs','logStream','214CxDHGE','mtime','44920zUdVVg','\x5c$&','message','filter','4990884SRCjOi','split','rotateOldLogs','.gz','toISOString','replace','logBaseName','getLogPath','logFileName','1967SZISpp','handle'];a219_0x2534=function(){return _0x5836c6;};return a219_0x2534();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a219_0x4188(_0x1adf07,_0x1aeb30){_0x1adf07=_0x1adf07-0x132;const _0x253408=a219_0x2534();let _0x418823=_0x253408[_0x1adf07];return _0x418823;}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a219_0x667590(0x137)];['logDir'];[a219_0x667590(0x150)];[a219_0x667590(0x14e)];[a219_0x667590(0x141)]=null;[a219_0x667590(0x156)];constructor(_0x1393dd={}){const _0x4903a2=a219_0x667590;this[_0x4903a2(0x137)]=_0x1393dd[_0x4903a2(0x13f)]??join(getGlobalCacheDir(),_0x4903a2(0x140),'tdx.log'),this[_0x4903a2(0x155)]=dirname(this[_0x4903a2(0x137)]),this['logFileName']=basename(this[_0x4903a2(0x137)]),this['logBaseName']=this[_0x4903a2(0x150)][_0x4903a2(0x14d)](/\.log$/,''),this['rotate']=_0x1393dd[_0x4903a2(0x156)]??!![];}async[a219_0x667590(0x13c)](){const _0x3a3d94=a219_0x667590;try{await mkdir(this[_0x3a3d94(0x155)],{'recursive':!![]}),this[_0x3a3d94(0x156)]&&await this[_0x3a3d94(0x14a)](),this[_0x3a3d94(0x141)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x3a3d94(0x141)]['on'](_0x3a3d94(0x134),_0x5a0f8f=>{const _0x3243c0=_0x3a3d94;console[_0x3243c0(0x134)](_0x3243c0(0x135)+this['logFileName']+':',_0x5a0f8f[_0x3243c0(0x146)]);});}catch(_0x392ecf){console[_0x3a3d94(0x134)](_0x3a3d94(0x139),_0x392ecf);}}[a219_0x667590(0x152)](_0x33a858){const _0xf548d9=a219_0x667590;if(!this[_0xf548d9(0x141)])return;const _0x5e5773=Logger['format'](_0x33a858);this['logStream'][_0xf548d9(0x138)](_0x5e5773+'\x0a');}async[a219_0x667590(0x13d)](){return new Promise(_0x4b762e=>{const _0x429faa=a219_0x4188;this[_0x429faa(0x141)]?this['logStream'][_0x429faa(0x154)](()=>{this['logStream']=null,_0x4b762e();}):_0x4b762e();});}[a219_0x667590(0x14f)](){const _0x3d833f=a219_0x667590;return this[_0x3d833f(0x137)];}async['rotateOldLogs'](){const _0x5812aa=a219_0x667590;try{const _0x85a29e=await readdir(this[_0x5812aa(0x155)]),_0x22acf2=new Date()[_0x5812aa(0x14c)]()[_0x5812aa(0x149)]('T')[0x0];if(_0x85a29e['includes'](this[_0x5812aa(0x150)])){const _0x310298=join(this[_0x5812aa(0x155)],this[_0x5812aa(0x150)]),_0x1e4e62=await stat(_0x310298),_0x579da1=new Date(_0x1e4e62[_0x5812aa(0x143)])[_0x5812aa(0x14c)]()[_0x5812aa(0x149)]('T')[0x0];if(_0x579da1<_0x22acf2){const _0x4ad436=join(this[_0x5812aa(0x155)],this[_0x5812aa(0x14e)]+'-'+_0x579da1+_0x5812aa(0x13b));await rename(_0x310298,_0x4ad436);}}const _0xa7cf55=await readdir(this[_0x5812aa(0x155)]),_0x1d940b=this[_0x5812aa(0x14e)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x5812aa(0x145)),_0x3eda49=new RegExp('^'+_0x1d940b+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x483c62=_0xa7cf55[_0x5812aa(0x147)](_0x224f8d=>_0x3eda49[_0x5812aa(0x13a)](_0x224f8d));for(const _0x180cd3 of _0x483c62){const _0x265fcd=join(this[_0x5812aa(0x155)],_0x180cd3),_0x1de5e5=join(this[_0x5812aa(0x155)],_0x180cd3+_0x5812aa(0x14b));try{await pipeline(createReadStream(_0x265fcd),createGzip(),createWriteStream(_0x1de5e5)),await unlink(_0x265fcd);}catch(_0x563af4){console[_0x5812aa(0x134)](_0x5812aa(0x13e)+_0x180cd3+':',_0x563af4);}}}catch{}}}
1
+ const a219_0x49d7f7=a219_0x2d25;(function(_0x570519,_0x546d5e){const _0x21142d=a219_0x2d25,_0x429260=_0x570519();while(!![]){try{const _0x57e167=parseInt(_0x21142d(0x14a))/0x1*(parseInt(_0x21142d(0x140))/0x2)+parseInt(_0x21142d(0x150))/0x3+parseInt(_0x21142d(0x141))/0x4*(parseInt(_0x21142d(0x148))/0x5)+-parseInt(_0x21142d(0x15f))/0x6*(parseInt(_0x21142d(0x15c))/0x7)+-parseInt(_0x21142d(0x152))/0x8+-parseInt(_0x21142d(0x153))/0x9+parseInt(_0x21142d(0x14f))/0xa;if(_0x57e167===_0x546d5e)break;else _0x429260['push'](_0x429260['shift']());}catch(_0x2e17fa){_0x429260['push'](_0x429260['shift']());}}}(a219_0x4551,0x5122c));function a219_0x4551(){const _0x5da32e=['close','rotateOldLogs','133889OmdtpK','logPath','logDir','162ADYwWg','Warning:\x20Failed\x20to\x20compress\x20','message','mtime','filter','rotate','278OuOTgR','844amTUGC','error','write','.log','replace','logFileName','includes','11720DmBmqg','test','421bOahBW','init','filePath','.gz','logBaseName','896010IsRtfa','878394ZizlGk','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','256408tCyOex','492210SFAfuV','split','end','logStream','\x5c$&','tdx.log','toISOString'];a219_0x4551=function(){return _0x5da32e;};return a219_0x4551();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a219_0x2d25(_0x238bd1,_0x69d727){_0x238bd1=_0x238bd1-0x13b;const _0x45515e=a219_0x4551();let _0x2d252d=_0x45515e[_0x238bd1];return _0x2d252d;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a219_0x49d7f7(0x15d)];['logDir'];[a219_0x49d7f7(0x146)];[a219_0x49d7f7(0x14e)];[a219_0x49d7f7(0x156)]=null;['rotate'];constructor(_0x187062={}){const _0x3b9ab9=a219_0x49d7f7;this[_0x3b9ab9(0x15d)]=_0x187062[_0x3b9ab9(0x14c)]??join(getGlobalCacheDir(),'logs',_0x3b9ab9(0x158)),this['logDir']=dirname(this[_0x3b9ab9(0x15d)]),this[_0x3b9ab9(0x146)]=basename(this[_0x3b9ab9(0x15d)]),this[_0x3b9ab9(0x14e)]=this['logFileName'][_0x3b9ab9(0x145)](/\.log$/,''),this[_0x3b9ab9(0x13f)]=_0x187062[_0x3b9ab9(0x13f)]??!![];}async[a219_0x49d7f7(0x14b)](){const _0x421a19=a219_0x49d7f7;try{await mkdir(this[_0x421a19(0x15e)],{'recursive':!![]}),this['rotate']&&await this[_0x421a19(0x15b)](),this[_0x421a19(0x156)]=createWriteStream(this[_0x421a19(0x15d)],{'flags':'a'}),this['logStream']['on'](_0x421a19(0x142),_0x29f832=>{const _0x157288=_0x421a19;console[_0x157288(0x142)]('Warning:\x20Error\x20writing\x20to\x20'+this[_0x157288(0x146)]+':',_0x29f832[_0x157288(0x13c)]);});}catch(_0x4ecdb6){console[_0x421a19(0x142)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x4ecdb6);}}['handle'](_0x15543e){const _0x1b3588=a219_0x49d7f7;if(!this[_0x1b3588(0x156)])return;const _0x149e16=Logger['format'](_0x15543e);this[_0x1b3588(0x156)][_0x1b3588(0x143)](_0x149e16+'\x0a');}async[a219_0x49d7f7(0x15a)](){return new Promise(_0x2200ab=>{const _0x1f60bb=a219_0x2d25;this[_0x1f60bb(0x156)]?this[_0x1f60bb(0x156)][_0x1f60bb(0x155)](()=>{this['logStream']=null,_0x2200ab();}):_0x2200ab();});}['getLogPath'](){return this['logPath'];}async[a219_0x49d7f7(0x15b)](){const _0x340a0a=a219_0x49d7f7;try{const _0x24ea07=await readdir(this[_0x340a0a(0x15e)]),_0xc84691=new Date()[_0x340a0a(0x159)]()['split']('T')[0x0];if(_0x24ea07[_0x340a0a(0x147)](this[_0x340a0a(0x146)])){const _0x523651=join(this[_0x340a0a(0x15e)],this['logFileName']),_0x459fe3=await stat(_0x523651),_0x2bd2ba=new Date(_0x459fe3[_0x340a0a(0x13d)])[_0x340a0a(0x159)]()[_0x340a0a(0x154)]('T')[0x0];if(_0x2bd2ba<_0xc84691){const _0x4715e2=join(this['logDir'],this[_0x340a0a(0x14e)]+'-'+_0x2bd2ba+_0x340a0a(0x144));await rename(_0x523651,_0x4715e2);}}const _0xabb272=await readdir(this[_0x340a0a(0x15e)]),_0x9b652b=this[_0x340a0a(0x14e)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x340a0a(0x157)),_0x59d684=new RegExp('^'+_0x9b652b+_0x340a0a(0x151)),_0x4f2ab7=_0xabb272[_0x340a0a(0x13e)](_0x1d9c25=>_0x59d684[_0x340a0a(0x149)](_0x1d9c25));for(const _0x43b35f of _0x4f2ab7){const _0x1bed58=join(this[_0x340a0a(0x15e)],_0x43b35f),_0x28d315=join(this[_0x340a0a(0x15e)],_0x43b35f+_0x340a0a(0x14d));try{await pipeline(createReadStream(_0x1bed58),createGzip(),createWriteStream(_0x28d315)),await unlink(_0x1bed58);}catch(_0x4cc86c){console[_0x340a0a(0x142)](_0x340a0a(0x13b)+_0x43b35f+':',_0x4cc86c);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x5912ea,_0x2b3332){var _0x864336=a220_0x2f98,_0x40eb40=_0x5912ea();while(!![]){try{var _0x5914cc=-parseInt(_0x864336(0x1c8))/0x1*(parseInt(_0x864336(0x1c2))/0x2)+parseInt(_0x864336(0x1c9))/0x3*(-parseInt(_0x864336(0x1cb))/0x4)+-parseInt(_0x864336(0x1c5))/0x5*(-parseInt(_0x864336(0x1c7))/0x6)+-parseInt(_0x864336(0x1c3))/0x7+parseInt(_0x864336(0x1c6))/0x8+parseInt(_0x864336(0x1c4))/0x9+parseInt(_0x864336(0x1ca))/0xa;if(_0x5914cc===_0x2b3332)break;else _0x40eb40['push'](_0x40eb40['shift']());}catch(_0x2ff7cb){_0x40eb40['push'](_0x40eb40['shift']());}}}(a220_0x2b60,0x70eba));export{FileHandler}from'./file-handler.js';function a220_0x2f98(_0x461ef2,_0x35ed16){_0x461ef2=_0x461ef2-0x1c2;var _0x2b6012=a220_0x2b60();var _0x2f983e=_0x2b6012[_0x461ef2];return _0x2f983e;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a220_0x2b60(){var _0x127967=['5VlyvuD','355056aexQtc','3999882SNlXmF','101rHNXZm','222666LMWeMm','4182830NBMMZj','20YRUgCI','11806ZhHyCB','3033695ICzYFd','6605172pLsaOY'];a220_0x2b60=function(){return _0x127967;};return a220_0x2b60();}
1
+ function a220_0x59f1(){var _0x2cd91a=['6qjnzEj','3992324PeNFZe','16017888AfdrOd','3119768Gyoyew','2335788kSRTxd','1632634wlIDin','1ksAZsD','68NdRWEI','20QPpFfK','272470kQWpiy','11ALdUSv','2869671FscYIj'];a220_0x59f1=function(){return _0x2cd91a;};return a220_0x59f1();}function a220_0x2f40(_0x5c897b,_0x37c3e9){_0x5c897b=_0x5c897b-0x132;var _0x59f13a=a220_0x59f1();var _0x2f4061=_0x59f13a[_0x5c897b];return _0x2f4061;}(function(_0x3c90f3,_0xb4063f){var _0xf9448a=a220_0x2f40,_0x1e7cfc=_0x3c90f3();while(!![]){try{var _0x2fe6be=parseInt(_0xf9448a(0x132))/0x1*(parseInt(_0xf9448a(0x13d))/0x2)+-parseInt(_0xf9448a(0x137))/0x3+-parseInt(_0xf9448a(0x133))/0x4*(-parseInt(_0xf9448a(0x135))/0x5)+parseInt(_0xf9448a(0x138))/0x6*(-parseInt(_0xf9448a(0x139))/0x7)+-parseInt(_0xf9448a(0x13b))/0x8+-parseInt(_0xf9448a(0x13c))/0x9*(parseInt(_0xf9448a(0x134))/0xa)+-parseInt(_0xf9448a(0x136))/0xb*(-parseInt(_0xf9448a(0x13a))/0xc);if(_0x2fe6be===_0xb4063f)break;else _0x1e7cfc['push'](_0x1e7cfc['shift']());}catch(_0x3c17f4){_0x1e7cfc['push'](_0x1e7cfc['shift']());}}}(a220_0x59f1,0x9ca4f));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a221_0x5ee8(_0xab3751,_0x16e13e){_0xab3751=_0xab3751-0x182;var _0x10b7b9=a221_0x10b7();var _0x5ee875=_0x10b7b9[_0xab3751];return _0x5ee875;}(function(_0x394569,_0x1f4ec1){var _0x2ef523=a221_0x5ee8,_0x572c5e=_0x394569();while(!![]){try{var _0x1a3f58=-parseInt(_0x2ef523(0x182))/0x1*(parseInt(_0x2ef523(0x18b))/0x2)+parseInt(_0x2ef523(0x189))/0x3*(-parseInt(_0x2ef523(0x187))/0x4)+parseInt(_0x2ef523(0x185))/0x5*(-parseInt(_0x2ef523(0x18a))/0x6)+parseInt(_0x2ef523(0x18c))/0x7+-parseInt(_0x2ef523(0x184))/0x8+parseInt(_0x2ef523(0x183))/0x9*(-parseInt(_0x2ef523(0x186))/0xa)+parseInt(_0x2ef523(0x188))/0xb;if(_0x1a3f58===_0x1f4ec1)break;else _0x572c5e['push'](_0x572c5e['shift']());}catch(_0x1ae57a){_0x572c5e['push'](_0x572c5e['shift']());}}}(a221_0x10b7,0x29ff4));export class NullHandler{['handle'](_0x1e146d){}}function a221_0x10b7(){var _0x49d872=['3041676bbGCDp','1896192MzNouA','20xmsZsb','10BlCDhm','32bJNxrA','13626932DWMNsQ','20823ilgspW','492432sdhjrp','2098nVfAwV','316162TmnDQR','146MWNJvl'];a221_0x10b7=function(){return _0x49d872;};return a221_0x10b7();}
1
+ (function(_0x48cc6b,_0x167d98){var _0x48773d=a221_0x42c4,_0x10f909=_0x48cc6b();while(!![]){try{var _0x471cac=-parseInt(_0x48773d(0x115))/0x1+-parseInt(_0x48773d(0x112))/0x2*(-parseInt(_0x48773d(0x111))/0x3)+-parseInt(_0x48773d(0x11b))/0x4+-parseInt(_0x48773d(0x117))/0x5+parseInt(_0x48773d(0x113))/0x6*(-parseInt(_0x48773d(0x119))/0x7)+parseInt(_0x48773d(0x118))/0x8*(-parseInt(_0x48773d(0x116))/0x9)+parseInt(_0x48773d(0x11a))/0xa*(parseInt(_0x48773d(0x114))/0xb);if(_0x471cac===_0x167d98)break;else _0x10f909['push'](_0x10f909['shift']());}catch(_0x5946ca){_0x10f909['push'](_0x10f909['shift']());}}}(a221_0x18ec,0xe7db2));export class NullHandler{['handle'](_0x576cf5){}}function a221_0x42c4(_0x3f3f7a,_0x215f57){_0x3f3f7a=_0x3f3f7a-0x111;var _0x18ecd7=a221_0x18ec();var _0x42c4f6=_0x18ecd7[_0x3f3f7a];return _0x42c4f6;}function a221_0x18ec(){var _0x1ce8e7=['3JkQbGr','3034596sjScLw','21642yTWelw','11zUCrZs','629824dCbWGe','170253SGzjuQ','7446795hlOaYi','344meCylp','3010UjpECT','49738270RmKsEG','4231276fuYALb'];a221_0x18ec=function(){return _0x1ce8e7;};return a221_0x18ec();}
@@ -1 +1 @@
1
- (function(_0xb8cc6d,_0x49baab){var _0x8d62a7=a222_0x12be,_0x47c1e0=_0xb8cc6d();while(!![]){try{var _0x40e95b=parseInt(_0x8d62a7(0x18a))/0x1+-parseInt(_0x8d62a7(0x187))/0x2*(parseInt(_0x8d62a7(0x186))/0x3)+-parseInt(_0x8d62a7(0x185))/0x4+parseInt(_0x8d62a7(0x189))/0x5+parseInt(_0x8d62a7(0x18c))/0x6*(parseInt(_0x8d62a7(0x18b))/0x7)+-parseInt(_0x8d62a7(0x183))/0x8*(parseInt(_0x8d62a7(0x184))/0x9)+parseInt(_0x8d62a7(0x188))/0xa;if(_0x40e95b===_0x49baab)break;else _0x47c1e0['push'](_0x47c1e0['shift']());}catch(_0x59ca5a){_0x47c1e0['push'](_0x47c1e0['shift']());}}}(a222_0x31c6,0x8e86f));function a222_0x31c6(){var _0x54d8cd=['359097tVkbrB','6COCbgZ','15696540JjYOQU','4673575ZULzaD','265802cZRZFe','116179JnKyJC','42feDFmh','152VLvhuc','462807EEbRHq','3865700bnGpiK'];a222_0x31c6=function(){return _0x54d8cd;};return a222_0x31c6();}export{Logger}from'./logger.js';function a222_0x12be(_0x4f186e,_0xb0e49d){_0x4f186e=_0x4f186e-0x183;var _0x31c6b6=a222_0x31c6();var _0x12bef7=_0x31c6b6[_0x4f186e];return _0x12bef7;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x1828a8,_0x450b4e){var _0x5e6664=a222_0x2d05,_0x491f07=_0x1828a8();while(!![]){try{var _0x1967db=parseInt(_0x5e6664(0x148))/0x1*(-parseInt(_0x5e6664(0x14f))/0x2)+-parseInt(_0x5e6664(0x14e))/0x3+parseInt(_0x5e6664(0x14d))/0x4*(-parseInt(_0x5e6664(0x150))/0x5)+parseInt(_0x5e6664(0x14c))/0x6*(parseInt(_0x5e6664(0x14a))/0x7)+-parseInt(_0x5e6664(0x14b))/0x8+-parseInt(_0x5e6664(0x149))/0x9+parseInt(_0x5e6664(0x151))/0xa;if(_0x1967db===_0x450b4e)break;else _0x491f07['push'](_0x491f07['shift']());}catch(_0x2f0602){_0x491f07['push'](_0x491f07['shift']());}}}(a222_0x55ca,0x2f0d6));export{Logger}from'./logger.js';function a222_0x2d05(_0x580d4c,_0x31e5a8){_0x580d4c=_0x580d4c-0x148;var _0x55caa8=a222_0x55ca();var _0x2d0597=_0x55caa8[_0x580d4c];return _0x2d0597;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a222_0x55ca(){var _0x27ecb2=['65040BmFPXP','3185379PFcmDV','1032430TmMlAl','1923856rWFcWz','6TOUprE','721380IfLFXc','50229ibAcMi','2cBpymG','10nFOJXJ','10821220JgMBaw'];a222_0x55ca=function(){return _0x27ecb2;};return a222_0x55ca();}