@treasuredata/tdx 2026.3.19 → 2026.3.21

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 (226) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/agent-command.js +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/auth-login-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.d.ts +33 -0
  38. package/dist/commands/policy-command.d.ts.map +1 -0
  39. package/dist/commands/policy-command.js +1 -0
  40. package/dist/commands/policy-command.js.map +1 -0
  41. package/dist/commands/profile-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/schedule-command.js +1 -1
  45. package/dist/commands/segment-command.js +1 -1
  46. package/dist/commands/segment-create-command.js +1 -1
  47. package/dist/commands/segment-fields-command.js +1 -1
  48. package/dist/commands/segment-pull-command.js +1 -1
  49. package/dist/commands/segment-push-command.js +1 -1
  50. package/dist/commands/segment-update-command.js +1 -1
  51. package/dist/commands/segment-use-command.js +1 -1
  52. package/dist/commands/segment-validate-command.js +1 -1
  53. package/dist/commands/segments.js +1 -1
  54. package/dist/commands/show.js +1 -1
  55. package/dist/commands/status-command.js +1 -1
  56. package/dist/commands/tables.js +1 -1
  57. package/dist/commands/unset-command.js +1 -1
  58. package/dist/commands/upgrade-command.js +1 -1
  59. package/dist/commands/use-command.js +1 -1
  60. package/dist/commands/user-command.js +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/core/auth.js +1 -1
  63. package/dist/core/command-output.js +1 -1
  64. package/dist/core/config.js +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/credential-cache.js +1 -1
  68. package/dist/core/global-context.js +1 -1
  69. package/dist/core/keychain.js +1 -1
  70. package/dist/core/oauth-keychain.js +1 -1
  71. package/dist/core/oauth.js +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/project-config.js +1 -1
  74. package/dist/core/session.js +1 -1
  75. package/dist/core/user-cache.js +1 -1
  76. package/dist/core/version.js +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/mcp/server.js +1 -1
  79. package/dist/mcp/tools/index.js +1 -1
  80. package/dist/mcp/tools/tdx-run.js +1 -1
  81. package/dist/mcp/tools/tdx-search.js +1 -1
  82. package/dist/mcp/utils.js +1 -1
  83. package/dist/proxy/claude-usage-tracker.js +1 -1
  84. package/dist/proxy/passthrough-server.js +1 -1
  85. package/dist/proxy/sse-usage-parser.js +1 -1
  86. package/dist/sdk/agent/agent-config.js +1 -1
  87. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  88. package/dist/sdk/agent/agent-yaml.js +1 -1
  89. package/dist/sdk/agent/test/evaluator.js +1 -1
  90. package/dist/sdk/agent/test/executor.js +1 -1
  91. package/dist/sdk/agent/test/index.js +1 -1
  92. package/dist/sdk/agent/test/output.js +1 -1
  93. package/dist/sdk/agent/test/parser.js +1 -1
  94. package/dist/sdk/agent/tool-target-registry.js +1 -1
  95. package/dist/sdk/api.js +1 -1
  96. package/dist/sdk/client/cdp-api-client.js +1 -1
  97. package/dist/sdk/client/delivery-api-client.js +1 -1
  98. package/dist/sdk/client/endpoints.js +1 -1
  99. package/dist/sdk/client/engage-api-client.js +1 -1
  100. package/dist/sdk/client/http-client.js +1 -1
  101. package/dist/sdk/client/llm-api-client.js +1 -1
  102. package/dist/sdk/client/oauth-refresh.js +1 -1
  103. package/dist/sdk/client/rate-limiter.js +1 -1
  104. package/dist/sdk/client/td-api-client.js +1 -1
  105. package/dist/sdk/client/trino-api-client.js +1 -1
  106. package/dist/sdk/client/workflow-client.js +1 -1
  107. package/dist/sdk/connection-validator.js +1 -1
  108. package/dist/sdk/connection.js +1 -1
  109. package/dist/sdk/delivery.js +1 -1
  110. package/dist/sdk/engage/campaign-pull.js +1 -1
  111. package/dist/sdk/engage/campaign-push.js +1 -1
  112. package/dist/sdk/engage/campaign-validator.js +1 -1
  113. package/dist/sdk/engage/campaign-yaml.js +1 -1
  114. package/dist/sdk/engage/template-pull.js +1 -1
  115. package/dist/sdk/engage/template-push.js +1 -1
  116. package/dist/sdk/engage/template-validator.js +1 -1
  117. package/dist/sdk/engage/template-yaml.js +1 -1
  118. package/dist/sdk/engage/types/campaign-def.js +1 -1
  119. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  120. package/dist/sdk/engage/types/template-schema.js +1 -1
  121. package/dist/sdk/engage.js +1 -1
  122. package/dist/sdk/errors.js +1 -1
  123. package/dist/sdk/index.d.ts +7 -0
  124. package/dist/sdk/index.d.ts.map +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/index.js.map +1 -1
  127. package/dist/sdk/io/index.js +1 -1
  128. package/dist/sdk/io/node-filesystem.js +1 -1
  129. package/dist/sdk/job.js +1 -1
  130. package/dist/sdk/journey.js +1 -1
  131. package/dist/sdk/llm/chat-cache.js +1 -1
  132. package/dist/sdk/llm/index.js +1 -1
  133. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  134. package/dist/sdk/llm/model-factors.js +1 -1
  135. package/dist/sdk/personalization.js +1 -1
  136. package/dist/sdk/policy.d.ts +41 -0
  137. package/dist/sdk/policy.d.ts.map +1 -0
  138. package/dist/sdk/policy.js +1 -0
  139. package/dist/sdk/policy.js.map +1 -0
  140. package/dist/sdk/query/index.js +1 -1
  141. package/dist/sdk/query/sql-parser.js +1 -1
  142. package/dist/sdk/realtime.js +1 -1
  143. package/dist/sdk/schedule.js +1 -1
  144. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  145. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  146. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  147. package/dist/sdk/segment/fields-display.js +1 -1
  148. package/dist/sdk/segment/file-discovery.js +1 -1
  149. package/dist/sdk/segment/journey-utils.js +1 -1
  150. package/dist/sdk/segment/journey-validator.js +1 -1
  151. package/dist/sdk/segment/journey-yaml.js +1 -1
  152. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  153. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  154. package/dist/sdk/segment/pull-workflow.js +1 -1
  155. package/dist/sdk/segment/push-recovery.js +1 -1
  156. package/dist/sdk/segment/push-workflow.js +1 -1
  157. package/dist/sdk/segment/resolution-context.js +1 -1
  158. package/dist/sdk/segment/segment-path-parser.js +1 -1
  159. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  160. package/dist/sdk/segment/segment-validator.js +1 -1
  161. package/dist/sdk/segment/segment-validator.js.map +1 -1
  162. package/dist/sdk/segment/target-resolution.js +1 -1
  163. package/dist/sdk/segment/tdx-config.js +1 -1
  164. package/dist/sdk/segment/types/activation-schema.js +1 -1
  165. package/dist/sdk/segment/types/journey-def.js +1 -1
  166. package/dist/sdk/segment/types/journey-schema.js +1 -1
  167. package/dist/sdk/segment/types/segment-def.js +1 -1
  168. package/dist/sdk/segment/types/segment-schema.js +1 -1
  169. package/dist/sdk/segment/validate-files.js +1 -1
  170. package/dist/sdk/segment/yaml-validator.js +1 -1
  171. package/dist/sdk/segment.js +1 -1
  172. package/dist/sdk/types/index.d.ts +1 -0
  173. package/dist/sdk/types/index.d.ts.map +1 -1
  174. package/dist/sdk/types/index.js +1 -1
  175. package/dist/sdk/types/index.js.map +1 -1
  176. package/dist/sdk/types/policy.d.ts +58 -0
  177. package/dist/sdk/types/policy.d.ts.map +1 -0
  178. package/dist/sdk/types/policy.js +1 -0
  179. package/dist/sdk/types/policy.js.map +1 -0
  180. package/dist/sdk/types/progress.js +1 -1
  181. package/dist/sdk/user.js +1 -1
  182. package/dist/sdk/util/format-detector.js +1 -1
  183. package/dist/sdk/util/formatters.js +1 -1
  184. package/dist/sdk/util/index.js +1 -1
  185. package/dist/sdk/util/paginate.js +1 -1
  186. package/dist/sdk/util/tree-formatter.js +1 -1
  187. package/dist/sdk/workflow/archive-validation.js +1 -1
  188. package/dist/sdk/workflow/clone-workflow.js +1 -1
  189. package/dist/sdk/workflow/index.js +1 -1
  190. package/dist/sdk/workflow/pull-workflow.js +1 -1
  191. package/dist/sdk/workflow/push-workflow.js +1 -1
  192. package/dist/sdk/workflow/tdx-config.js +1 -1
  193. package/dist/sdk/workflow/workflow-utils.js +1 -1
  194. package/dist/test-utils/command-runner.js +1 -1
  195. package/dist/test-utils/factories.js +1 -1
  196. package/dist/test-utils/fixtures.js +1 -1
  197. package/dist/test-utils/http-mock.js +1 -1
  198. package/dist/test-utils/index.js +1 -1
  199. package/dist/utils/async.js +1 -1
  200. package/dist/utils/colors.js +1 -1
  201. package/dist/utils/diff.js +1 -1
  202. package/dist/utils/file-permissions.js +1 -1
  203. package/dist/utils/file-reader.js +1 -1
  204. package/dist/utils/github-releases.js +1 -1
  205. package/dist/utils/global-cache.js +1 -1
  206. package/dist/utils/json-loader.js +1 -1
  207. package/dist/utils/local-cache.js +1 -1
  208. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  209. package/dist/utils/logger/formatters/index.js +1 -1
  210. package/dist/utils/logger/handlers/console-handler.js +1 -1
  211. package/dist/utils/logger/handlers/file-handler.js +1 -1
  212. package/dist/utils/logger/handlers/index.js +1 -1
  213. package/dist/utils/logger/handlers/null-handler.js +1 -1
  214. package/dist/utils/logger/index.js +1 -1
  215. package/dist/utils/logger/logger.js +1 -1
  216. package/dist/utils/logger/types.js +1 -1
  217. package/dist/utils/option-validation.js +1 -1
  218. package/dist/utils/process.js +1 -1
  219. package/dist/utils/prompt.js +1 -1
  220. package/dist/utils/spinner.js +1 -1
  221. package/dist/utils/sse-parser.js +1 -1
  222. package/dist/utils/string-utils.js +1 -1
  223. package/dist/utils/table-ref-parser.js +1 -1
  224. package/dist/utils/tdx-logger.js +1 -1
  225. package/dist/utils/version-check.js +1 -1
  226. package/package.json +1 -1
@@ -1 +1 @@
1
- const a185_0x2f013e=a185_0x1387;(function(_0x47c7b0,_0x22d4a0){const _0x459932=a185_0x1387,_0x3ccdd2=_0x47c7b0();while(!![]){try{const _0x2eb072=parseInt(_0x459932(0x1d5))/0x1+parseInt(_0x459932(0x193))/0x2*(parseInt(_0x459932(0x1df))/0x3)+parseInt(_0x459932(0x1e0))/0x4+-parseInt(_0x459932(0x1c6))/0x5*(-parseInt(_0x459932(0x1d6))/0x6)+parseInt(_0x459932(0x1cd))/0x7*(-parseInt(_0x459932(0x1d2))/0x8)+-parseInt(_0x459932(0x1ab))/0x9*(parseInt(_0x459932(0x1b0))/0xa)+parseInt(_0x459932(0x195))/0xb*(parseInt(_0x459932(0x1d1))/0xc);if(_0x2eb072===_0x22d4a0)break;else _0x3ccdd2['push'](_0x3ccdd2['shift']());}catch(_0x4ccb76){_0x3ccdd2['push'](_0x3ccdd2['shift']());}}}(a185_0x544b,0x9505e));function a185_0x1387(_0x1024c2,_0x2f3b65){_0x1024c2=_0x1024c2-0x190;const _0x544b88=a185_0x544b();let _0x13873a=_0x544b88[_0x1024c2];return _0x13873a;}import{vi}from'vitest';export class HTTPMockRegistry{[a185_0x2f013e(0x1a9)]=[];[a185_0x2f013e(0x191)]=[];['fetchMock']=null;[a185_0x2f013e(0x19f)](_0x3f0222,_0x35e6e5){return _0x2b6500=>{const _0x5bac25=a185_0x1387;if(_0x2b6500[_0x5bac25(0x1b9)][_0x5bac25(0x1a2)]()!==_0x3f0222['toUpperCase']())return![];const _0x322e2c=new URL(_0x2b6500['url']);if(typeof _0x35e6e5==='string')return _0x322e2c[_0x5bac25(0x1bc)]===_0x35e6e5||_0x322e2c['pathname'][_0x5bac25(0x1b1)](_0x35e6e5);return _0x35e6e5[_0x5bac25(0x197)](_0x322e2c['pathname']);};}[a185_0x2f013e(0x1b7)](_0x307953,_0x3f6ad1){return _0x5e34cd=>{const _0x10455d=a185_0x1387;if(!_0x307953(_0x5e34cd))return![];const _0x458148=new URL(_0x5e34cd[_0x10455d(0x1d4)]);return Object['entries'](_0x3f6ad1)[_0x10455d(0x19b)](([_0xe57d19,_0x1d691b])=>_0x458148['searchParams']['get'](_0xe57d19)===_0x1d691b);};}['withBody'](_0x235e27,_0x562d33){return _0x20aa28=>{const _0x35e1ff=a185_0x1387;if(!_0x235e27(_0x20aa28))return![];if(typeof _0x562d33===_0x35e1ff(0x1bb))return _0x562d33(_0x20aa28[_0x35e1ff(0x1a0)]);return JSON[_0x35e1ff(0x1d3)](_0x20aa28['body'])===JSON[_0x35e1ff(0x1d3)](_0x562d33);};}['withHost'](_0x3dbb54,_0x30da28){return _0x2a33ec=>{const _0x5ac5ff=a185_0x1387;if(!_0x3dbb54(_0x2a33ec))return![];const _0x54800=new URL(_0x2a33ec[_0x5ac5ff(0x1d4)]);return _0x54800[_0x5ac5ff(0x190)]===_0x30da28;};}[a185_0x2f013e(0x196)](_0x40200b,_0x596094,_0x11d245){const _0x275dcd=a185_0x2f013e;this[_0x275dcd(0x1a9)]['push']({'matcher':_0x40200b,'responder':_0x596094,'matched':![],'matchCount':0x0,'stack':new Error()[_0x275dcd(0x1b8)]??'','description':_0x11d245?.[_0x275dcd(0x1dc)]});}[a185_0x2f013e(0x19c)](_0x4b7c17,_0x454cf7,_0x4571af){const _0x37803c=a185_0x2f013e,_0x585422=_0x43c19f=>{return _0x4571af(_0x43c19f['body'],_0x43c19f),_0x454cf7(_0x43c19f);};this[_0x37803c(0x196)](_0x4b7c17,_0x585422);}static[a185_0x2f013e(0x194)](_0x5bb615,_0x3de991=0xc8){const _0x1bed28=a185_0x2f013e;return()=>new Response(JSON[_0x1bed28(0x1d3)](_0x5bb615),{'status':_0x3de991,'headers':{'Content-Type':_0x1bed28(0x1d0)}});}static[a185_0x2f013e(0x1bd)](_0x14c796,_0x4b40fa,_0xafa61e='simple'){return()=>{const _0x3c6f98=a185_0x1387;let _0x18ec90;switch(_0xafa61e){case'td-api':_0x18ec90={'errors':{'error':_0x4b40fa,'message':_0x4b40fa,'severity':_0x3c6f98(0x1a6),'status_code':_0x14c796}};break;case'rfc9457':_0x18ec90={'type':_0x3c6f98(0x1b6)+_0x14c796,'title':HTTPMockRegistry[_0x3c6f98(0x1ae)](_0x14c796),'status':_0x14c796,'detail':_0x4b40fa};break;default:_0x18ec90={'error':_0x4b40fa};}return new Response(JSON[_0x3c6f98(0x1d3)](_0x18ec90),{'status':_0x14c796,'headers':{'Content-Type':'application/json'}});};}static[a185_0x2f013e(0x1ce)](_0x5e30dd,_0x18acf8,_0x5ed996=0xc8){const _0x852160=a185_0x2f013e;return()=>new Response(JSON[_0x852160(0x1d3)](_0x5e30dd),{'status':_0x5ed996,'headers':{'Content-Type':_0x852160(0x1d0),..._0x18acf8}});}static['textResponse'](_0x51bb91,_0xd128a5=0xc8){return()=>new Response(_0x51bb91,{'status':_0xd128a5,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0x412b90){return()=>{throw new Error(_0x412b90);};}[a185_0x2f013e(0x1c8)](){const _0xc7e66b=a185_0x2f013e;return this[_0xc7e66b(0x1c7)]=vi['fn']()[_0xc7e66b(0x198)](async(_0x460632,_0x302793)=>{const _0x52c373=_0xc7e66b,_0x4a04d3=this[_0x52c373(0x1aa)](_0x460632,_0x302793);this['requests']['push'](_0x4a04d3);for(const _0x4e3ee3 of this['stubs']){if(_0x4e3ee3[_0x52c373(0x1de)](_0x4a04d3))return _0x4e3ee3[_0x52c373(0x1d9)]=!![],_0x4e3ee3[_0x52c373(0x1ac)]++,_0x4e3ee3['responder'](_0x4a04d3);}const _0xd10b79=this[_0x52c373(0x1a9)]['map']((_0x411dcd,_0x3047ff)=>'\x20\x20'+(_0x3047ff+0x1)+'.\x20'+(_0x411dcd[_0x52c373(0x1dc)]??_0x52c373(0x199)))[_0x52c373(0x1da)]('\x0a');throw new Error(_0x52c373(0x1cb)+_0x4a04d3['method']+'\x20'+_0x4a04d3[_0x52c373(0x1d4)]+'\x0a'+(_0x52c373(0x19a)+JSON['stringify'](_0x4a04d3[_0x52c373(0x1a0)])+'\x0a')+(_0x52c373(0x1dd)+(_0xd10b79||_0x52c373(0x1c4))));}),this['fetchMock'];}[a185_0x2f013e(0x1aa)](_0x5b3251,_0x489d5b){const _0x327b19=a185_0x2f013e,_0x168b53={};if(_0x489d5b?.[_0x327b19(0x1c1)]){if(_0x489d5b[_0x327b19(0x1c1)]instanceof Headers)_0x489d5b[_0x327b19(0x1c1)][_0x327b19(0x1b3)]((_0x114f44,_0xfed06)=>{const _0x58b0c1=_0x327b19;_0x168b53[_0xfed06[_0x58b0c1(0x1c3)]()]=_0x114f44;});else{if(Array['isArray'](_0x489d5b[_0x327b19(0x1c1)]))for(const [_0x25b9c0,_0x4fa305]of _0x489d5b['headers']){_0x168b53[_0x25b9c0[_0x327b19(0x1c3)]()]=_0x4fa305;}else for(const [_0x4a0c33,_0x462d36]of Object['entries'](_0x489d5b['headers'])){_0x462d36!==undefined&&(_0x168b53[_0x4a0c33[_0x327b19(0x1c3)]()]=_0x462d36);}}}let _0x1f9ebb;if(_0x489d5b?.[_0x327b19(0x1a0)])try{_0x1f9ebb=JSON['parse'](_0x489d5b['body']);}catch{_0x1f9ebb=_0x489d5b['body'];}return{'method':_0x489d5b?.['method']??_0x327b19(0x192),'url':_0x5b3251,'headers':_0x168b53,'body':_0x1f9ebb};}[a185_0x2f013e(0x19d)](_0x1e0dc2){const _0x3dab24=a185_0x2f013e,_0x290399=this['stubs'][_0x3dab24(0x1b2)](_0x13dc35=>!_0x13dc35[_0x3dab24(0x1d9)]);if(_0x290399[_0x3dab24(0x1a5)]>0x0){const _0x3f405c=_0x290399[_0x3dab24(0x1c5)](_0x296aa8=>{const _0x4f8636=_0x3dab24,_0x4f68dd=_0x296aa8['description']?'\x20('+_0x296aa8['description']+')':'',_0x1f6576=_0x296aa8[_0x4f8636(0x1b8)][_0x4f8636(0x1d8)]('\x0a')[_0x4f8636(0x1a8)](0x2,0x5)[_0x4f8636(0x1da)]('\x0a');return _0x4f8636(0x19e)+_0x4f68dd+_0x4f8636(0x1bf)+_0x1f6576;});_0x1e0dc2[_0x3dab24(0x1c9)](_0x290399[_0x3dab24(0x1a5)]+_0x3dab24(0x1b5)+_0x3f405c[_0x3dab24(0x1da)]('\x0a\x0a'));}}[a185_0x2f013e(0x1af)](){const _0x37e202=a185_0x2f013e;return[...this[_0x37e202(0x191)]];}[a185_0x2f013e(0x1e1)](){const _0x4d766d=a185_0x2f013e;return this[_0x4d766d(0x191)][this[_0x4d766d(0x191)][_0x4d766d(0x1a5)]-0x1];}[a185_0x2f013e(0x1a4)](_0x38c828,_0x2c7d82){const _0x31c17b=a185_0x2f013e;return this[_0x31c17b(0x191)][_0x31c17b(0x1a1)](_0x10c986=>{const _0x529ef1=_0x31c17b;if(_0x10c986[_0x529ef1(0x1b9)][_0x529ef1(0x1a2)]()!==_0x38c828[_0x529ef1(0x1a2)]())return![];if(typeof _0x2c7d82===_0x529ef1(0x1b4))return _0x10c986['url']['includes'](_0x2c7d82);return _0x2c7d82[_0x529ef1(0x197)](_0x10c986[_0x529ef1(0x1d4)]);});}[a185_0x2f013e(0x1cf)](_0x5bd52c){const _0x13a991=a185_0x2f013e;return this[_0x13a991(0x1a9)][_0x5bd52c]?.[_0x13a991(0x1ac)]??0x0;}[a185_0x2f013e(0x1ca)](){const _0xe57948=a185_0x2f013e;this[_0xe57948(0x1a9)]=[],this[_0xe57948(0x191)]=[],this[_0xe57948(0x1c7)]=null;}static[a185_0x2f013e(0x1ae)](_0x34f700){const _0x23dcde=a185_0x2f013e,_0x5dabeb={0xc8:'OK',0xc9:_0x23dcde(0x1ad),0xcc:_0x23dcde(0x1a7),0x190:_0x23dcde(0x1d7),0x191:_0x23dcde(0x1be),0x193:_0x23dcde(0x1cc),0x194:_0x23dcde(0x1c2),0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:_0x23dcde(0x1c0),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x23dcde(0x1db),0x1f7:_0x23dcde(0x1ba)};return _0x5dabeb[_0x34f700]??_0x23dcde(0x1a3);}}function a185_0x544b(){const _0x1067be=['Created','getStatusText','getRequests','809810vkKiSK','includes','filter','forEach','string','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','https://api.treasuredata.com/errors/','withQuery','stack','method','Service\x20Unavailable','function','pathname','errorResponse','Unauthorized','\x20registered\x20at:\x0a','Too\x20Many\x20Requests','headers','Not\x20Found','toLowerCase','\x20\x20(none)','map','45DFhIhr','fetchMock','createFetch','fail','reset','No\x20stub\x20matched\x20request:\x20','Forbidden','34769bryEhr','jsonResponseWithHeaders','getMatchCount','application/json','12HjIIpc','1416DGslCt','stringify','url','562569BLQcwg','260124qAHXyb','Bad\x20Request','split','matched','join','Bad\x20Gateway','description','Registered\x20stubs:\x0a','matcher','672762BONHyc','446816osMYnn','getLastRequest','host','requests','GET','2zTHFEg','jsonResponse','8444821UfLJlv','register','test','mockImplementation','unnamed\x20stub','Request\x20body:\x20','every','registerWithInspector','verify','Unmatched\x20stub','REST','body','some','toUpperCase','Unknown','wasCalled','length','error','No\x20Content','slice','stubs','parseRequest','63XyVdJY','matchCount'];a185_0x544b=function(){return _0x1067be;};return a185_0x544b();}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a188_0x32b9fe=a188_0x2a51;(function(_0x525747,_0x1e0f06){const _0x1f0364=a188_0x2a51,_0x3d0fe9=_0x525747();while(!![]){try{const _0x5f00ba=-parseInt(_0x1f0364(0x11c))/0x1+parseInt(_0x1f0364(0x138))/0x2+parseInt(_0x1f0364(0x114))/0x3+-parseInt(_0x1f0364(0x136))/0x4*(parseInt(_0x1f0364(0x147))/0x5)+parseInt(_0x1f0364(0x162))/0x6*(-parseInt(_0x1f0364(0x14a))/0x7)+-parseInt(_0x1f0364(0x140))/0x8*(parseInt(_0x1f0364(0x11d))/0x9)+-parseInt(_0x1f0364(0x15f))/0xa*(-parseInt(_0x1f0364(0x14c))/0xb);if(_0x5f00ba===_0x1e0f06)break;else _0x3d0fe9['push'](_0x3d0fe9['shift']());}catch(_0x2f8231){_0x3d0fe9['push'](_0x3d0fe9['shift']());}}}(a188_0x16ac,0x893f9));import{vi}from'vitest';export class HTTPMockRegistry{[a188_0x32b9fe(0x128)]=[];[a188_0x32b9fe(0x11e)]=[];[a188_0x32b9fe(0x165)]=null;[a188_0x32b9fe(0x12d)](_0x25fbd9,_0x60c6c){return _0x4c0965=>{const _0x294f73=a188_0x2a51;if(_0x4c0965['method'][_0x294f73(0x152)]()!==_0x25fbd9['toUpperCase']())return![];const _0x520f0e=new URL(_0x4c0965[_0x294f73(0x168)]);if(typeof _0x60c6c==='string')return _0x520f0e[_0x294f73(0x166)]===_0x60c6c||_0x520f0e['pathname']['includes'](_0x60c6c);return _0x60c6c[_0x294f73(0x116)](_0x520f0e[_0x294f73(0x166)]);};}[a188_0x32b9fe(0x124)](_0x3a1bd0,_0x1bb3c6){return _0x561a9d=>{const _0xf44a61=a188_0x2a51;if(!_0x3a1bd0(_0x561a9d))return![];const _0x382236=new URL(_0x561a9d[_0xf44a61(0x168)]);return Object[_0xf44a61(0x160)](_0x1bb3c6)[_0xf44a61(0x134)](([_0x22a1ba,_0x49251c])=>_0x382236[_0xf44a61(0x12a)][_0xf44a61(0x118)](_0x22a1ba)===_0x49251c);};}[a188_0x32b9fe(0x154)](_0x46dc4e,_0x2414a7){return _0x1be6a5=>{const _0x9864ee=a188_0x2a51;if(!_0x46dc4e(_0x1be6a5))return![];if(typeof _0x2414a7===_0x9864ee(0x13f))return _0x2414a7(_0x1be6a5[_0x9864ee(0x144)]);return JSON[_0x9864ee(0x122)](_0x1be6a5[_0x9864ee(0x144)])===JSON[_0x9864ee(0x122)](_0x2414a7);};}[a188_0x32b9fe(0x121)](_0x1e2a23,_0x4e7a1c){return _0x2cb9ad=>{const _0x56a36c=a188_0x2a51;if(!_0x1e2a23(_0x2cb9ad))return![];const _0x11e4de=new URL(_0x2cb9ad[_0x56a36c(0x168)]);return _0x11e4de[_0x56a36c(0x117)]===_0x4e7a1c;};}['register'](_0x3636bd,_0x4b7a90,_0x33cf7f){const _0x2e8c64=a188_0x32b9fe;this[_0x2e8c64(0x128)][_0x2e8c64(0x12f)]({'matcher':_0x3636bd,'responder':_0x4b7a90,'matched':![],'matchCount':0x0,'stack':new Error()[_0x2e8c64(0x13a)]??'','description':_0x33cf7f?.[_0x2e8c64(0x149)]});}[a188_0x32b9fe(0x155)](_0x544ed0,_0x34fa3a,_0x5cab9e){const _0x2b7763=_0x9f8fd=>{const _0x4c910e=a188_0x2a51;return _0x5cab9e(_0x9f8fd[_0x4c910e(0x144)],_0x9f8fd),_0x34fa3a(_0x9f8fd);};this['register'](_0x544ed0,_0x2b7763);}static[a188_0x32b9fe(0x14b)](_0x3f7849,_0x347915=0xc8){const _0x3d2b40=a188_0x32b9fe;return()=>new Response(JSON[_0x3d2b40(0x122)](_0x3f7849),{'status':_0x347915,'headers':{'Content-Type':_0x3d2b40(0x151)}});}static[a188_0x32b9fe(0x137)](_0x28a4c7,_0x22aac7,_0x13aae4='simple'){return()=>{const _0x756546=a188_0x2a51;let _0x293746;switch(_0x13aae4){case _0x756546(0x130):_0x293746={'errors':{'error':_0x22aac7,'message':_0x22aac7,'severity':_0x756546(0x15d),'status_code':_0x28a4c7}};break;case _0x756546(0x141):_0x293746={'type':_0x756546(0x167)+_0x28a4c7,'title':HTTPMockRegistry[_0x756546(0x12e)](_0x28a4c7),'status':_0x28a4c7,'detail':_0x22aac7};break;default:_0x293746={'error':_0x22aac7};}return new Response(JSON[_0x756546(0x122)](_0x293746),{'status':_0x28a4c7,'headers':{'Content-Type':_0x756546(0x151)}});};}static[a188_0x32b9fe(0x135)](_0x152bbe,_0x49eae7,_0x36a984=0xc8){const _0x4bdf07=a188_0x32b9fe;return()=>new Response(JSON[_0x4bdf07(0x122)](_0x152bbe),{'status':_0x36a984,'headers':{'Content-Type':_0x4bdf07(0x151),..._0x49eae7}});}static['textResponse'](_0x52ffb3,_0xbcbc50=0xc8){const _0x2c2313=a188_0x32b9fe;return()=>new Response(_0x52ffb3,{'status':_0xbcbc50,'headers':{'Content-Type':_0x2c2313(0x127)}});}static[a188_0x32b9fe(0x12c)](_0x1b0bc5){return()=>{throw new Error(_0x1b0bc5);};}['createFetch'](){const _0x37e4b7=a188_0x32b9fe;return this['fetchMock']=vi['fn']()[_0x37e4b7(0x13e)](async(_0x30991d,_0x52289e)=>{const _0x1ebb65=_0x37e4b7,_0x304979=this['parseRequest'](_0x30991d,_0x52289e);this[_0x1ebb65(0x11e)][_0x1ebb65(0x12f)](_0x304979);for(const _0x2a62c4 of this[_0x1ebb65(0x128)]){if(_0x2a62c4[_0x1ebb65(0x142)](_0x304979))return _0x2a62c4[_0x1ebb65(0x123)]=!![],_0x2a62c4['matchCount']++,_0x2a62c4[_0x1ebb65(0x15b)](_0x304979);}const _0x401ab0=this[_0x1ebb65(0x128)][_0x1ebb65(0x15a)]((_0x1a07de,_0x186d01)=>'\x20\x20'+(_0x186d01+0x1)+'.\x20'+(_0x1a07de[_0x1ebb65(0x149)]??_0x1ebb65(0x157)))[_0x1ebb65(0x145)]('\x0a');throw new Error(_0x1ebb65(0x148)+_0x304979['method']+'\x20'+_0x304979[_0x1ebb65(0x168)]+'\x0a'+('Request\x20body:\x20'+JSON['stringify'](_0x304979['body'])+'\x0a')+(_0x1ebb65(0x132)+(_0x401ab0||_0x1ebb65(0x125))));}),this[_0x37e4b7(0x165)];}['parseRequest'](_0x15b963,_0x46b0b9){const _0x1ab077=a188_0x32b9fe,_0x140dca={};if(_0x46b0b9?.[_0x1ab077(0x14d)]){if(_0x46b0b9[_0x1ab077(0x14d)]instanceof Headers)_0x46b0b9[_0x1ab077(0x14d)]['forEach']((_0x288949,_0x97ad18)=>{const _0x2e19ce=_0x1ab077;_0x140dca[_0x97ad18[_0x2e19ce(0x156)]()]=_0x288949;});else{if(Array['isArray'](_0x46b0b9[_0x1ab077(0x14d)]))for(const [_0x4fada1,_0x544642]of _0x46b0b9[_0x1ab077(0x14d)]){_0x140dca[_0x4fada1[_0x1ab077(0x156)]()]=_0x544642;}else for(const [_0x49b98c,_0x340ea8]of Object[_0x1ab077(0x160)](_0x46b0b9['headers'])){_0x340ea8!==undefined&&(_0x140dca[_0x49b98c[_0x1ab077(0x156)]()]=_0x340ea8);}}}let _0x3fe399;if(_0x46b0b9?.[_0x1ab077(0x144)])try{_0x3fe399=JSON[_0x1ab077(0x164)](_0x46b0b9[_0x1ab077(0x144)]);}catch{_0x3fe399=_0x46b0b9[_0x1ab077(0x144)];}return{'method':_0x46b0b9?.['method']??'GET','url':_0x15b963,'headers':_0x140dca,'body':_0x3fe399};}['verify'](_0x470536){const _0x32ec1d=a188_0x32b9fe,_0x52ed93=this['stubs'][_0x32ec1d(0x15e)](_0x29fc2e=>!_0x29fc2e['matched']);if(_0x52ed93[_0x32ec1d(0x159)]>0x0){const _0x54324e=_0x52ed93[_0x32ec1d(0x15a)](_0x2d84fc=>{const _0x76b224=_0x32ec1d,_0x2bbb9a=_0x2d84fc['description']?'\x20('+_0x2d84fc['description']+')':'',_0x36c578=_0x2d84fc[_0x76b224(0x13a)][_0x76b224(0x11a)]('\x0a')[_0x76b224(0x129)](0x2,0x5)[_0x76b224(0x145)]('\x0a');return'Unmatched\x20stub'+_0x2bbb9a+_0x76b224(0x153)+_0x36c578;});_0x470536[_0x32ec1d(0x14f)](_0x52ed93[_0x32ec1d(0x159)]+_0x32ec1d(0x161)+_0x54324e[_0x32ec1d(0x145)]('\x0a\x0a'));}}[a188_0x32b9fe(0x119)](){const _0x47526c=a188_0x32b9fe;return[...this[_0x47526c(0x11e)]];}[a188_0x32b9fe(0x131)](){const _0x5ed4c5=a188_0x32b9fe;return this[_0x5ed4c5(0x11e)][this[_0x5ed4c5(0x11e)][_0x5ed4c5(0x159)]-0x1];}[a188_0x32b9fe(0x120)](_0x3d6efa,_0x47607e){const _0x42f1dc=a188_0x32b9fe;return this[_0x42f1dc(0x11e)]['some'](_0x4a4130=>{const _0x369f69=_0x42f1dc;if(_0x4a4130[_0x369f69(0x143)][_0x369f69(0x152)]()!==_0x3d6efa[_0x369f69(0x152)]())return![];if(typeof _0x47607e===_0x369f69(0x11f))return _0x4a4130['url'][_0x369f69(0x12b)](_0x47607e);return _0x47607e[_0x369f69(0x116)](_0x4a4130[_0x369f69(0x168)]);});}[a188_0x32b9fe(0x126)](_0x406e5b){const _0x4e0227=a188_0x32b9fe;return this[_0x4e0227(0x128)][_0x406e5b]?.[_0x4e0227(0x13b)]??0x0;}[a188_0x32b9fe(0x139)](){const _0x243e5c=a188_0x32b9fe;this[_0x243e5c(0x128)]=[],this['requests']=[],this['fetchMock']=null;}static['getStatusText'](_0x44495f){const _0x395a3d=a188_0x32b9fe,_0x19b922={0xc8:'OK',0xc9:_0x395a3d(0x13d),0xcc:_0x395a3d(0x158),0x190:_0x395a3d(0x115),0x191:_0x395a3d(0x13c),0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x395a3d(0x133),0x1a6:_0x395a3d(0x11b),0x1ad:_0x395a3d(0x150),0x1f4:_0x395a3d(0x163),0x1f6:_0x395a3d(0x146),0x1f7:_0x395a3d(0x15c)};return _0x19b922[_0x44495f]??_0x395a3d(0x14e);}}function a188_0x2a51(_0x46e20c,_0x4da583){_0x46e20c=_0x46e20c-0x114;const _0x16acdb=a188_0x16ac();let _0x2a51f6=_0x16acdb[_0x46e20c];return _0x2a51f6;}function a188_0x16ac(){const _0xa7b05b=['function','24872DbXlMS','rfc9457','matcher','method','body','join','Bad\x20Gateway','1321440zGiETz','No\x20stub\x20matched\x20request:\x20','description','4858qxFzQq','jsonResponse','44SBrACA','headers','Unknown','fail','Too\x20Many\x20Requests','application/json','toUpperCase','\x20registered\x20at:\x0a','withBody','registerWithInspector','toLowerCase','unnamed\x20stub','No\x20Content','length','map','responder','Service\x20Unavailable','error','filter','3983680CghqTj','entries','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','5142lLeXLv','Internal\x20Server\x20Error','parse','fetchMock','pathname','https://api.treasuredata.com/errors/','url','2065830SEikaI','Bad\x20Request','test','host','get','getRequests','split','Unprocessable\x20Entity','946986mnqRwE','927XvAGyu','requests','string','wasCalled','withHost','stringify','matched','withQuery','\x20\x20(none)','getMatchCount','text/plain','stubs','slice','searchParams','includes','networkError','REST','getStatusText','push','td-api','getLastRequest','Registered\x20stubs:\x0a','Conflict','every','jsonResponseWithHeaders','12lnwebQ','errorResponse','1869844xodNnb','reset','stack','matchCount','Unauthorized','Created','mockImplementation'];a188_0x16ac=function(){return _0xa7b05b;};return a188_0x16ac();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x288907,_0x86ada1){var _0x10601c=a186_0x4852,_0x1fe436=_0x288907();while(!![]){try{var _0x3879a1=-parseInt(_0x10601c(0x88))/0x1*(-parseInt(_0x10601c(0x82))/0x2)+parseInt(_0x10601c(0x87))/0x3*(parseInt(_0x10601c(0x86))/0x4)+parseInt(_0x10601c(0x85))/0x5+parseInt(_0x10601c(0x83))/0x6+-parseInt(_0x10601c(0x80))/0x7+-parseInt(_0x10601c(0x84))/0x8*(parseInt(_0x10601c(0x81))/0x9)+parseInt(_0x10601c(0x89))/0xa;if(_0x3879a1===_0x86ada1)break;else _0x1fe436['push'](_0x1fe436['shift']());}catch(_0x359822){_0x1fe436['push'](_0x1fe436['shift']());}}}(a186_0x5ac3,0x37985));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a186_0x4852(_0x43f760,_0x375c62){_0x43f760=_0x43f760-0x80;var _0x5ac35d=a186_0x5ac3();var _0x48529e=_0x5ac35d[_0x43f760];return _0x48529e;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a186_0x5ac3(){var _0x5d10c4=['2997554GgAWmh','9dFhTZR','2grcrCu','1078044ifACRv','2954048PXBxfC','563460TJBBmm','4lLwPsz','1174899xbyMqm','194559yGXICH','1466370mSGGMP'];a186_0x5ac3=function(){return _0x5d10c4;};return a186_0x5ac3();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a189_0x455a(){var _0x3bd2d2=['181297EuzBfA','3711018OgSWan','3930664NPGCVw','63YrWqwE','1941270QQriZk','597vhBJgi','5VdbyOS','1454732ZzpJUs','1494bUFzMn','3761240BzMiSR'];a189_0x455a=function(){return _0x3bd2d2;};return a189_0x455a();}(function(_0xdfae1f,_0x65f882){var _0x37c280=a189_0x37c2,_0x12c742=_0xdfae1f();while(!![]){try{var _0x3cb665=-parseInt(_0x37c280(0x1d7))/0x1+parseInt(_0x37c280(0x1d5))/0x2*(-parseInt(_0x37c280(0x1d2))/0x3)+-parseInt(_0x37c280(0x1d4))/0x4*(-parseInt(_0x37c280(0x1d3))/0x5)+parseInt(_0x37c280(0x1d8))/0x6+parseInt(_0x37c280(0x1d6))/0x7+parseInt(_0x37c280(0x1cf))/0x8+-parseInt(_0x37c280(0x1d0))/0x9*(parseInt(_0x37c280(0x1d1))/0xa);if(_0x3cb665===_0x65f882)break;else _0x12c742['push'](_0x12c742['shift']());}catch(_0x2c685f){_0x12c742['push'](_0x12c742['shift']());}}}(a189_0x455a,0x4e9d0));function a189_0x37c2(_0x49496f,_0x59f364){_0x49496f=_0x49496f-0x1cf;var _0x455a09=a189_0x455a();var _0x37c2d2=_0x455a09[_0x49496f];return _0x37c2d2;}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a187_0x5600(_0x736312,_0x1e6325){_0x736312=_0x736312-0x88;const _0x48bc26=a187_0x48bc();let _0x56003f=_0x48bc26[_0x736312];return _0x56003f;}(function(_0x55fd15,_0x1dd0ef){const _0x586403=a187_0x5600,_0x40cc4d=_0x55fd15();while(!![]){try{const _0x406e20=-parseInt(_0x586403(0x93))/0x1+parseInt(_0x586403(0x8f))/0x2*(-parseInt(_0x586403(0x89))/0x3)+parseInt(_0x586403(0x88))/0x4*(-parseInt(_0x586403(0x8e))/0x5)+-parseInt(_0x586403(0x91))/0x6*(-parseInt(_0x586403(0x8c))/0x7)+parseInt(_0x586403(0x8b))/0x8+parseInt(_0x586403(0x92))/0x9+parseInt(_0x586403(0x8a))/0xa;if(_0x406e20===_0x1dd0ef)break;else _0x40cc4d['push'](_0x40cc4d['shift']());}catch(_0x4b6ba6){_0x40cc4d['push'](_0x40cc4d['shift']());}}}(a187_0x48bc,0x90461));function a187_0x48bc(){const _0xbf1ecf=['15923810vWIxYM','8015328iBdyPZ','23443rDqgaj','map','108505GeFpfG','1094wOdvup','slice','180vyFett','188901OCCusR','1058787cxNUeV','push','124HuiZDO','2157zgzcGB'];a187_0x48bc=function(){return _0xbf1ecf;};return a187_0x48bc();}export async function batchAsync(_0x13415b,_0x4bba6b,_0xd58f5c=0xa){const _0x50a620=a187_0x5600,_0x58353f=[];for(let _0x337b55=0x0;_0x337b55<_0x13415b['length'];_0x337b55+=_0xd58f5c){const _0x129411=_0x13415b[_0x50a620(0x90)](_0x337b55,_0x337b55+_0xd58f5c),_0x26e781=await Promise['all'](_0x129411[_0x50a620(0x8d)](_0x4bba6b));_0x58353f[_0x50a620(0x94)](..._0x26e781);}return _0x58353f;}
1
+ (function(_0xeba57,_0x13cc64){const _0x21d6b9=a190_0x1098,_0x45a84e=_0xeba57();while(!![]){try{const _0x3c9e58=-parseInt(_0x21d6b9(0x7d))/0x1*(-parseInt(_0x21d6b9(0x79))/0x2)+-parseInt(_0x21d6b9(0x83))/0x3+parseInt(_0x21d6b9(0x7c))/0x4*(parseInt(_0x21d6b9(0x7e))/0x5)+-parseInt(_0x21d6b9(0x81))/0x6+parseInt(_0x21d6b9(0x7f))/0x7*(-parseInt(_0x21d6b9(0x77))/0x8)+parseInt(_0x21d6b9(0x75))/0x9+parseInt(_0x21d6b9(0x7a))/0xa*(parseInt(_0x21d6b9(0x78))/0xb);if(_0x3c9e58===_0x13cc64)break;else _0x45a84e['push'](_0x45a84e['shift']());}catch(_0x488984){_0x45a84e['push'](_0x45a84e['shift']());}}}(a190_0x120a,0x57e4d));function a190_0x1098(_0x1f18b2,_0x1d8b2a){_0x1f18b2=_0x1f18b2-0x75;const _0x120aab=a190_0x120a();let _0x109831=_0x120aab[_0x1f18b2];return _0x109831;}export async function batchAsync(_0x4780de,_0x3b9cb1,_0x35f2fc=0xa){const _0x59795d=a190_0x1098,_0x3e5390=[];for(let _0x4d326f=0x0;_0x4d326f<_0x4780de[_0x59795d(0x80)];_0x4d326f+=_0x35f2fc){const _0x44b822=_0x4780de[_0x59795d(0x82)](_0x4d326f,_0x4d326f+_0x35f2fc),_0x33e671=await Promise[_0x59795d(0x76)](_0x44b822[_0x59795d(0x7b)](_0x3b9cb1));_0x3e5390['push'](..._0x33e671);}return _0x3e5390;}function a190_0x120a(){const _0x171554=['81319AJQzSA','length','3220188EQWXoR','slice','656397nAfnIB','238167irjuji','all','360uhNuKL','8514407nOdTwe','2FUscVp','10PHWBnF','map','101848dbOdsy','404921zQkZat','85wwkziU'];a190_0x120a=function(){return _0x171554;};return a190_0x120a();}
@@ -1 +1 @@
1
- function a188_0x3310(_0x3ea167,_0x1e1c8c){_0x3ea167=_0x3ea167-0x83;const _0x58ce3d=a188_0x58ce();let _0x33109d=_0x58ce3d[_0x3ea167];return _0x33109d;}(function(_0x1dc701,_0xa13441){const _0x5af8a9=a188_0x3310,_0x331839=_0x1dc701();while(!![]){try{const _0x3aa0d6=parseInt(_0x5af8a9(0x91))/0x1+parseInt(_0x5af8a9(0x99))/0x2*(parseInt(_0x5af8a9(0x86))/0x3)+-parseInt(_0x5af8a9(0x93))/0x4+parseInt(_0x5af8a9(0x8d))/0x5*(parseInt(_0x5af8a9(0x8b))/0x6)+-parseInt(_0x5af8a9(0x87))/0x7*(-parseInt(_0x5af8a9(0x83))/0x8)+-parseInt(_0x5af8a9(0x96))/0x9+parseInt(_0x5af8a9(0x95))/0xa*(parseInt(_0x5af8a9(0x89))/0xb);if(_0x3aa0d6===_0xa13441)break;else _0x331839['push'](_0x331839['shift']());}catch(_0xd1d372){_0x331839['push'](_0x331839['shift']());}}}(a188_0x58ce,0x21be9));import*as a188_0x10eff0 from'chalk';const Chalk=a188_0x10eff0['Chalk'];function a188_0x58ce(){const _0x3109bd=['repeat','object','noColor','map','111032wxtRuw','string','color','6JYIZEH','14aMUHpD','green','358391fAUANI','join','24966oBTCgu','isArray','35ypontf','null','stdout','length','26581zMkgjQ','number','194620AQfoNj','entries','10ubDGWd','482445KYLWuq','yellow','boolean','124430CkgqxL','stringify','isTTY','blue'];a188_0x58ce=function(){return _0x3109bd;};return a188_0x58ce();}export function shouldUseColor(_0x7ce193={}){const _0x36211b=a188_0x3310;if(_0x7ce193[_0x36211b(0x9f)]===!![])return![];if(_0x7ce193[_0x36211b(0x85)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x36211b(0x8f)][_0x36211b(0x9b)]??![];}export function getChalk(_0x34c58b={}){if(shouldUseColor(_0x34c58b))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xc1f9e9,_0x5562a3={}){return getChalk(_0x5562a3)['dim'](_0xc1f9e9);}export function colorHeader(_0x5b0825,_0x477f18={}){return getChalk(_0x477f18)['cyan'](_0x5b0825);}export function colorType(_0x20ebcd,_0x2295aa={}){return getChalk(_0x2295aa)['dim'](_0x20ebcd);}export function colorJSONKey(_0x3d5262,_0x50ffcb={}){const _0x48ba4c=a188_0x3310;return getChalk(_0x50ffcb)[_0x48ba4c(0x9c)](_0x3d5262);}export function colorJSONString(_0x1d6a65,_0x53ca0e={}){const _0x5489c6=a188_0x3310;return getChalk(_0x53ca0e)[_0x5489c6(0x88)](_0x1d6a65);}export function colorJSONNumber(_0x51e56c,_0x4709a9={}){return getChalk(_0x4709a9)['cyan'](_0x51e56c);}export function colorJSONBoolean(_0x48f2f3,_0x483876={}){const _0x1d4b27=a188_0x3310;return getChalk(_0x483876)[_0x1d4b27(0x97)](_0x48f2f3);}export function colorJSONNull(_0xaa26de,_0x22bc25={}){return getChalk(_0x22bc25)['dim'](_0xaa26de);}export function colorizeJSONCompact(_0x33c02b,_0x42017f={}){const _0x553b8c=a188_0x3310;if(!shouldUseColor(_0x42017f))return JSON['stringify'](_0x33c02b);if(_0x33c02b===null)return colorJSONNull(_0x553b8c(0x8e),_0x42017f);if(typeof _0x33c02b===_0x553b8c(0x98))return colorJSONBoolean(String(_0x33c02b),_0x42017f);if(typeof _0x33c02b===_0x553b8c(0x92))return colorJSONNumber(String(_0x33c02b),_0x42017f);if(typeof _0x33c02b===_0x553b8c(0x84))return colorJSONString(JSON[_0x553b8c(0x9a)](_0x33c02b),_0x42017f);if(Array['isArray'](_0x33c02b)){if(_0x33c02b[_0x553b8c(0x90)]===0x0)return'[]';const _0x4bc0b7=_0x33c02b['map'](_0x2e1a72=>colorizeJSONCompact(_0x2e1a72,_0x42017f));return'['+_0x4bc0b7[_0x553b8c(0x8a)](',')+']';}if(typeof _0x33c02b===_0x553b8c(0x9e)){const _0x4c2b0f=Object[_0x553b8c(0x94)](_0x33c02b);if(_0x4c2b0f[_0x553b8c(0x90)]===0x0)return'{}';const _0x2a125e=_0x4c2b0f['map'](([_0x2a69bb,_0x4d8402])=>{const _0x12e9d3=_0x553b8c,_0x594945=colorJSONKey(JSON[_0x12e9d3(0x9a)](_0x2a69bb),_0x42017f),_0x461231=colorizeJSONCompact(_0x4d8402,_0x42017f);return _0x594945+':'+_0x461231;});return'{'+_0x2a125e['join'](',')+'}';}return String(_0x33c02b);}export function colorizeJSON(_0x36e83d,_0xe04eb5={},_0x20a0e4=0x0){const _0x162a43=a188_0x3310;if(!shouldUseColor(_0xe04eb5))return JSON['stringify'](_0x36e83d,null,0x2);const _0xb9eb3f='\x20'[_0x162a43(0x9d)](_0x20a0e4),_0x28b444=_0x20a0e4+0x2;if(_0x36e83d===null)return colorJSONNull(_0x162a43(0x8e),_0xe04eb5);if(typeof _0x36e83d===_0x162a43(0x98))return colorJSONBoolean(String(_0x36e83d),_0xe04eb5);if(typeof _0x36e83d===_0x162a43(0x92))return colorJSONNumber(String(_0x36e83d),_0xe04eb5);if(typeof _0x36e83d===_0x162a43(0x84))return colorJSONString(JSON[_0x162a43(0x9a)](_0x36e83d),_0xe04eb5);if(Array[_0x162a43(0x8c)](_0x36e83d)){if(_0x36e83d['length']===0x0)return'[]';const _0x6f629a=_0x36e83d['map'](_0x884440=>{const _0x4d86d2=_0x162a43,_0x542385=colorizeJSON(_0x884440,_0xe04eb5,_0x28b444);return''+'\x20'[_0x4d86d2(0x9d)](_0x28b444)+_0x542385;});return'[\x0a'+_0x6f629a[_0x162a43(0x8a)](',\x0a')+('\x0a'+_0xb9eb3f+']');}if(typeof _0x36e83d===_0x162a43(0x9e)){const _0x193bff=Object[_0x162a43(0x94)](_0x36e83d);if(_0x193bff[_0x162a43(0x90)]===0x0)return'{}';const _0x8e71b5=_0x193bff[_0x162a43(0xa0)](([_0x5b51e4,_0x3ee648])=>{const _0x1c587d=_0x162a43,_0x30cbfa=colorJSONKey(JSON[_0x1c587d(0x9a)](_0x5b51e4),_0xe04eb5),_0x1483b2=colorizeJSON(_0x3ee648,_0xe04eb5,_0x28b444);return''+'\x20'[_0x1c587d(0x9d)](_0x28b444)+_0x30cbfa+':\x20'+_0x1483b2;});return'{\x0a'+_0x8e71b5[_0x162a43(0x8a)](',\x0a')+('\x0a'+_0xb9eb3f+'}');}return String(_0x36e83d);}
1
+ const a191_0x68d00b=a191_0x59ec;(function(_0x14bf40,_0xc39958){const _0x6f6893=a191_0x59ec,_0x31686a=_0x14bf40();while(!![]){try{const _0x6ebeaf=-parseInt(_0x6f6893(0xe0))/0x1*(parseInt(_0x6f6893(0xf2))/0x2)+-parseInt(_0x6f6893(0xe3))/0x3+parseInt(_0x6f6893(0xe8))/0x4*(parseInt(_0x6f6893(0xf5))/0x5)+parseInt(_0x6f6893(0xf7))/0x6*(-parseInt(_0x6f6893(0xec))/0x7)+-parseInt(_0x6f6893(0xf3))/0x8+-parseInt(_0x6f6893(0xe5))/0x9*(-parseInt(_0x6f6893(0xee))/0xa)+parseInt(_0x6f6893(0xe6))/0xb*(parseInt(_0x6f6893(0xed))/0xc);if(_0x6ebeaf===_0xc39958)break;else _0x31686a['push'](_0x31686a['shift']());}catch(_0x118760){_0x31686a['push'](_0x31686a['shift']());}}}(a191_0x1931,0xaefa0));function a191_0x1931(){const _0x4dad80=['2200604TwDDcF','852TBXuJs','1558740gQIPZl','map','stringify','object','2EUvjyz','3970968wofkEb','cyan','3743485bivZQy','repeat','24ANoHvw','boolean','noColor','yellow','Chalk','number','join','32348ZRMLHJ','string','entries','3097530eYPMVB','blue','36ejOUpI','335148xVolcp','length','4WIcsqN','null','dim','isArray'];a191_0x1931=function(){return _0x4dad80;};return a191_0x1931();}import*as a191_0x52a902 from'chalk';const Chalk=a191_0x52a902[a191_0x68d00b(0xdd)];export function shouldUseColor(_0x1b8b6f={}){const _0x233353=a191_0x68d00b;if(_0x1b8b6f[_0x233353(0xdb)]===!![])return![];if(_0x1b8b6f['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout']['isTTY']??![];}export function getChalk(_0x360278={}){if(shouldUseColor(_0x360278))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2bf076,_0x5dd514={}){const _0x3df489=a191_0x68d00b;return getChalk(_0x5dd514)[_0x3df489(0xea)](_0x2bf076);}export function colorHeader(_0x59b2db,_0xc25584={}){return getChalk(_0xc25584)['cyan'](_0x59b2db);}export function colorType(_0x2a60db,_0x414636={}){return getChalk(_0x414636)['dim'](_0x2a60db);}export function colorJSONKey(_0xe09a2e,_0xb5603={}){const _0x1e4386=a191_0x68d00b;return getChalk(_0xb5603)[_0x1e4386(0xe4)](_0xe09a2e);}export function colorJSONString(_0x442d41,_0x3a952f={}){return getChalk(_0x3a952f)['green'](_0x442d41);}export function colorJSONNumber(_0x4f2930,_0x30a72e={}){const _0x285989=a191_0x68d00b;return getChalk(_0x30a72e)[_0x285989(0xf4)](_0x4f2930);}export function colorJSONBoolean(_0x5d4f75,_0x478c06={}){const _0x51911b=a191_0x68d00b;return getChalk(_0x478c06)[_0x51911b(0xdc)](_0x5d4f75);}export function colorJSONNull(_0x2f0071,_0x40d853={}){const _0x4ec17e=a191_0x68d00b;return getChalk(_0x40d853)[_0x4ec17e(0xea)](_0x2f0071);}export function colorizeJSONCompact(_0xa9a679,_0x2bd8f8={}){const _0x6005e4=a191_0x68d00b;if(!shouldUseColor(_0x2bd8f8))return JSON[_0x6005e4(0xf0)](_0xa9a679);if(_0xa9a679===null)return colorJSONNull(_0x6005e4(0xe9),_0x2bd8f8);if(typeof _0xa9a679===_0x6005e4(0xda))return colorJSONBoolean(String(_0xa9a679),_0x2bd8f8);if(typeof _0xa9a679===_0x6005e4(0xde))return colorJSONNumber(String(_0xa9a679),_0x2bd8f8);if(typeof _0xa9a679===_0x6005e4(0xe1))return colorJSONString(JSON[_0x6005e4(0xf0)](_0xa9a679),_0x2bd8f8);if(Array[_0x6005e4(0xeb)](_0xa9a679)){if(_0xa9a679[_0x6005e4(0xe7)]===0x0)return'[]';const _0x2031c4=_0xa9a679[_0x6005e4(0xef)](_0x3486ad=>colorizeJSONCompact(_0x3486ad,_0x2bd8f8));return'['+_0x2031c4[_0x6005e4(0xdf)](',')+']';}if(typeof _0xa9a679===_0x6005e4(0xf1)){const _0x283f97=Object[_0x6005e4(0xe2)](_0xa9a679);if(_0x283f97['length']===0x0)return'{}';const _0xebc180=_0x283f97[_0x6005e4(0xef)](([_0x51413d,_0x94b1a8])=>{const _0x444e34=_0x6005e4,_0x37e533=colorJSONKey(JSON[_0x444e34(0xf0)](_0x51413d),_0x2bd8f8),_0x1950ca=colorizeJSONCompact(_0x94b1a8,_0x2bd8f8);return _0x37e533+':'+_0x1950ca;});return'{'+_0xebc180['join'](',')+'}';}return String(_0xa9a679);}function a191_0x59ec(_0x5d242a,_0x36b1f5){_0x5d242a=_0x5d242a-0xda;const _0x19318d=a191_0x1931();let _0x59ec99=_0x19318d[_0x5d242a];return _0x59ec99;}export function colorizeJSON(_0x1cfad9,_0x5c31b4={},_0x5512e8=0x0){const _0x463df1=a191_0x68d00b;if(!shouldUseColor(_0x5c31b4))return JSON[_0x463df1(0xf0)](_0x1cfad9,null,0x2);const _0x95f1c0='\x20'[_0x463df1(0xf6)](_0x5512e8),_0x442359=_0x5512e8+0x2;if(_0x1cfad9===null)return colorJSONNull(_0x463df1(0xe9),_0x5c31b4);if(typeof _0x1cfad9==='boolean')return colorJSONBoolean(String(_0x1cfad9),_0x5c31b4);if(typeof _0x1cfad9===_0x463df1(0xde))return colorJSONNumber(String(_0x1cfad9),_0x5c31b4);if(typeof _0x1cfad9===_0x463df1(0xe1))return colorJSONString(JSON[_0x463df1(0xf0)](_0x1cfad9),_0x5c31b4);if(Array['isArray'](_0x1cfad9)){if(_0x1cfad9[_0x463df1(0xe7)]===0x0)return'[]';const _0x1e2cb9=_0x1cfad9[_0x463df1(0xef)](_0x7198a5=>{const _0x425ebb=_0x463df1,_0x479c09=colorizeJSON(_0x7198a5,_0x5c31b4,_0x442359);return''+'\x20'[_0x425ebb(0xf6)](_0x442359)+_0x479c09;});return'[\x0a'+_0x1e2cb9[_0x463df1(0xdf)](',\x0a')+('\x0a'+_0x95f1c0+']');}if(typeof _0x1cfad9===_0x463df1(0xf1)){const _0x4a9688=Object[_0x463df1(0xe2)](_0x1cfad9);if(_0x4a9688[_0x463df1(0xe7)]===0x0)return'{}';const _0x4743b2=_0x4a9688[_0x463df1(0xef)](([_0x992293,_0xd777e7])=>{const _0xff9dde=_0x463df1,_0x86dedf=colorJSONKey(JSON[_0xff9dde(0xf0)](_0x992293),_0x5c31b4),_0x5b2b11=colorizeJSON(_0xd777e7,_0x5c31b4,_0x442359);return''+'\x20'[_0xff9dde(0xf6)](_0x442359)+_0x86dedf+':\x20'+_0x5b2b11;});return'{\x0a'+_0x4743b2['join'](',\x0a')+('\x0a'+_0x95f1c0+'}');}return String(_0x1cfad9);}
@@ -1 +1 @@
1
- (function(_0x2e1ef1,_0x3d009e){const _0x32972e=a189_0x513a,_0x3e77c2=_0x2e1ef1();while(!![]){try{const _0x1cb128=parseInt(_0x32972e(0x116))/0x1+parseInt(_0x32972e(0x119))/0x2*(-parseInt(_0x32972e(0x127))/0x3)+parseInt(_0x32972e(0x10e))/0x4+-parseInt(_0x32972e(0x11a))/0x5*(parseInt(_0x32972e(0x10d))/0x6)+parseInt(_0x32972e(0x118))/0x7+-parseInt(_0x32972e(0x121))/0x8+-parseInt(_0x32972e(0x11b))/0x9*(-parseInt(_0x32972e(0x125))/0xa);if(_0x1cb128===_0x3d009e)break;else _0x3e77c2['push'](_0x3e77c2['shift']());}catch(_0x81780c){_0x3e77c2['push'](_0x3e77c2['shift']());}}}(a189_0x1a2d,0xc76de));function a189_0x1a2d(){const _0x2b284b=['2HmYZww','125fTgISN','9JmiCYM','add','unshift','\x20-\x20','dim','new','697448NQpUJJ','type','max','unchanged','7709290hJiifd','removed','3821643uQobxt','size','cyan','join','map','repeat','green','forEach','old','content','push','148134jpALZZ','5677100fRbRjW','added','min','length','padStart','\x20+\x20','fill','split','23523QAZYTq','\x20\x20\x20','4069954thoQRy'];a189_0x1a2d=function(){return _0x2b284b;};return a189_0x1a2d();}function a189_0x513a(_0x6ee27c,_0x318337){_0x6ee27c=_0x6ee27c-0x108;const _0x1a2dcd=a189_0x1a2d();let _0x513a18=_0x1a2dcd[_0x6ee27c];return _0x513a18;}import a189_0x535dc7 from'chalk';export function generateDiff(_0x1b2fa1,_0xb6519d){const _0x201e34=a189_0x513a,_0x18e422=_0x1b2fa1['split']('\x0a'),_0x36b725=_0xb6519d[_0x201e34(0x115)]('\x0a'),_0x28a80d=[],_0x1b660e=computeLCS(_0x18e422,_0x36b725);let _0x318b44=0x0,_0x2139de=0x0,_0x1433eb=0x0;while(_0x318b44<_0x18e422[_0x201e34(0x111)]||_0x2139de<_0x36b725[_0x201e34(0x111)]){if(_0x1433eb<_0x1b660e[_0x201e34(0x111)]&&_0x318b44<_0x18e422[_0x201e34(0x111)]&&_0x18e422[_0x318b44]===_0x1b660e[_0x1433eb])_0x2139de<_0x36b725[_0x201e34(0x111)]&&_0x36b725[_0x2139de]===_0x1b660e[_0x1433eb]?(_0x28a80d[_0x201e34(0x10c)]({'type':_0x201e34(0x124),'content':_0x18e422[_0x318b44]}),_0x318b44++,_0x2139de++,_0x1433eb++):(_0x28a80d[_0x201e34(0x10c)]({'type':_0x201e34(0x10f),'content':_0x36b725[_0x2139de]}),_0x2139de++);else{if(_0x1433eb<_0x1b660e[_0x201e34(0x111)]&&_0x2139de<_0x36b725[_0x201e34(0x111)]&&_0x36b725[_0x2139de]===_0x1b660e[_0x1433eb])_0x28a80d[_0x201e34(0x10c)]({'type':_0x201e34(0x126),'content':_0x18e422[_0x318b44]}),_0x318b44++;else{if(_0x318b44<_0x18e422[_0x201e34(0x111)]&&(_0x1433eb>=_0x1b660e['length']||_0x18e422[_0x318b44]!==_0x1b660e[_0x1433eb]))_0x28a80d[_0x201e34(0x10c)]({'type':'removed','content':_0x18e422[_0x318b44]}),_0x318b44++;else _0x2139de<_0x36b725[_0x201e34(0x111)]&&(_0x28a80d[_0x201e34(0x10c)]({'type':_0x201e34(0x10f),'content':_0x36b725[_0x2139de]}),_0x2139de++);}}}return _0x28a80d;}function computeLCS(_0x453be1,_0x824fd2){const _0x13f2a2=a189_0x513a,_0x26cede=_0x453be1[_0x13f2a2(0x111)],_0x12d2dc=_0x824fd2[_0x13f2a2(0x111)],_0x3f4355=Array(_0x26cede+0x1)[_0x13f2a2(0x114)](null)[_0x13f2a2(0x12b)](()=>Array(_0x12d2dc+0x1)[_0x13f2a2(0x114)](0x0));for(let _0x1852ec=0x1;_0x1852ec<=_0x26cede;_0x1852ec++){for(let _0x37d4d7=0x1;_0x37d4d7<=_0x12d2dc;_0x37d4d7++){_0x453be1[_0x1852ec-0x1]===_0x824fd2[_0x37d4d7-0x1]?_0x3f4355[_0x1852ec][_0x37d4d7]=_0x3f4355[_0x1852ec-0x1][_0x37d4d7-0x1]+0x1:_0x3f4355[_0x1852ec][_0x37d4d7]=Math[_0x13f2a2(0x123)](_0x3f4355[_0x1852ec-0x1][_0x37d4d7],_0x3f4355[_0x1852ec][_0x37d4d7-0x1]);}}const _0x529d11=[];let _0x5c4cf1=_0x26cede,_0x50feb1=_0x12d2dc;while(_0x5c4cf1>0x0&&_0x50feb1>0x0){if(_0x453be1[_0x5c4cf1-0x1]===_0x824fd2[_0x50feb1-0x1])_0x529d11[_0x13f2a2(0x11d)](_0x453be1[_0x5c4cf1-0x1]),_0x5c4cf1--,_0x50feb1--;else _0x3f4355[_0x5c4cf1-0x1][_0x50feb1]>_0x3f4355[_0x5c4cf1][_0x50feb1-0x1]?_0x5c4cf1--:_0x50feb1--;}return _0x529d11;}export function formatDiffWithColors(_0x35cf5c,_0x278129=0x3){const _0x230077=a189_0x513a,_0x2ecfd6=new Set();_0x35cf5c[_0x230077(0x109)]((_0xf9adb,_0x4a42dc)=>{const _0x339a1c=_0x230077;_0xf9adb[_0x339a1c(0x122)]!==_0x339a1c(0x124)&&_0x2ecfd6[_0x339a1c(0x11c)](_0x4a42dc);});if(_0x2ecfd6[_0x230077(0x128)]===0x0)return'';const _0xc3ec83=new Set();for(const _0xf3e0d of _0x2ecfd6){for(let _0x3c3351=Math[_0x230077(0x123)](0x0,_0xf3e0d-_0x278129);_0x3c3351<=Math[_0x230077(0x110)](_0x35cf5c[_0x230077(0x111)]-0x1,_0xf3e0d+_0x278129);_0x3c3351++){_0xc3ec83[_0x230077(0x11c)](_0x3c3351);}}const _0x423050=[];let _0x1c7646=-0x1;const _0x1c02a0=_0x35cf5c[_0x230077(0x111)],_0x3731bb=Math[_0x230077(0x123)](0x3,String(_0x1c02a0)['length']),_0x3c1f08=[];let _0x2dd2d4=0x0,_0x50c5ae=0x0;for(const _0x48ebbf of _0x35cf5c){if(_0x48ebbf[_0x230077(0x122)]===_0x230077(0x126))_0x2dd2d4++,_0x3c1f08[_0x230077(0x10c)]({'old':_0x2dd2d4,'new':0x0});else _0x48ebbf[_0x230077(0x122)]===_0x230077(0x10f)?(_0x50c5ae++,_0x3c1f08[_0x230077(0x10c)]({'old':0x0,'new':_0x50c5ae})):(_0x2dd2d4++,_0x50c5ae++,_0x3c1f08[_0x230077(0x10c)]({'old':_0x2dd2d4,'new':_0x50c5ae}));}for(let _0x45ad35=0x0;_0x45ad35<_0x35cf5c[_0x230077(0x111)];_0x45ad35++){if(!_0xc3ec83['has'](_0x45ad35))continue;_0x1c7646!==-0x1&&_0x45ad35>_0x1c7646+0x1&&_0x423050['push'](a189_0x535dc7[_0x230077(0x129)]('\x20\x20...'));_0x1c7646=_0x45ad35;const _0x50474b=_0x35cf5c[_0x45ad35],_0x1ac121=_0x3c1f08[_0x45ad35],_0x35aaec=_0x1ac121[_0x230077(0x10a)]>0x0?String(_0x1ac121['old'])[_0x230077(0x112)](_0x3731bb):'\x20'[_0x230077(0x12c)](_0x3731bb),_0x173f29=_0x1ac121[_0x230077(0x120)]>0x0?String(_0x1ac121[_0x230077(0x120)])['padStart'](_0x3731bb):'\x20'[_0x230077(0x12c)](_0x3731bb);switch(_0x50474b[_0x230077(0x122)]){case _0x230077(0x126):_0x423050[_0x230077(0x10c)](a189_0x535dc7['red'](_0x35aaec+'\x20'+_0x173f29+_0x230077(0x11e)+_0x50474b[_0x230077(0x10b)]));break;case'added':_0x423050[_0x230077(0x10c)](a189_0x535dc7[_0x230077(0x108)](_0x35aaec+'\x20'+_0x173f29+_0x230077(0x113)+_0x50474b[_0x230077(0x10b)]));break;default:_0x423050[_0x230077(0x10c)](a189_0x535dc7[_0x230077(0x11f)](_0x35aaec+'\x20'+_0x173f29+_0x230077(0x117)+_0x50474b[_0x230077(0x10b)]));break;}}return _0x423050[_0x230077(0x12a)]('\x0a');}export function hasChanges(_0x4591ff){const _0x2dafeb=a189_0x513a;return _0x4591ff['some'](_0x50d02e=>_0x50d02e[_0x2dafeb(0x122)]!==_0x2dafeb(0x124));}
1
+ (function(_0xcff623,_0x478ba8){const _0x9b9b3=a192_0x596f,_0x916932=_0xcff623();while(!![]){try{const _0xe7b96b=-parseInt(_0x9b9b3(0xd3))/0x1+parseInt(_0x9b9b3(0xd5))/0x2*(parseInt(_0x9b9b3(0xc7))/0x3)+parseInt(_0x9b9b3(0xdb))/0x4+parseInt(_0x9b9b3(0xe4))/0x5+-parseInt(_0x9b9b3(0xd8))/0x6*(parseInt(_0x9b9b3(0xda))/0x7)+-parseInt(_0x9b9b3(0xdd))/0x8+parseInt(_0x9b9b3(0xd6))/0x9;if(_0xe7b96b===_0x478ba8)break;else _0x916932['push'](_0x916932['shift']());}catch(_0xa933ae){_0x916932['push'](_0x916932['shift']());}}}(a192_0x428e,0xef5d3));function a192_0x596f(_0x3e45ed,_0x364b1e){_0x3e45ed=_0x3e45ed-0xc2;const _0x428eef=a192_0x428e();let _0x596f44=_0x428eef[_0x3e45ed];return _0x596f44;}import a192_0x858ea6 from'chalk';function a192_0x428e(){const _0x10a13d=['added','add','1695048VpAACd','new','1527536BaJPCL','11810817vDoEAp','\x20\x20...','10190676DNujeN','forEach','7NwhkfB','5059296IxsCHu','content','7242568zKbXsl','max','push','unshift','type','split','map','9691725aNNWcN','unchanged','removed','\x20-\x20','cyan','\x20\x20\x20','3GUqMCq','fill','length','red','padStart','repeat','old','dim','size','join'];a192_0x428e=function(){return _0x10a13d;};return a192_0x428e();}export function generateDiff(_0x42d4d1,_0x1a2fe9){const _0x4f0d6a=a192_0x596f,_0xf1fdf3=_0x42d4d1[_0x4f0d6a(0xe2)]('\x0a'),_0x552fcc=_0x1a2fe9['split']('\x0a'),_0x2aaf50=[],_0x175342=computeLCS(_0xf1fdf3,_0x552fcc);let _0x5dbba3=0x0,_0x269cb6=0x0,_0x2040ff=0x0;while(_0x5dbba3<_0xf1fdf3[_0x4f0d6a(0xc9)]||_0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]){if(_0x2040ff<_0x175342[_0x4f0d6a(0xc9)]&&_0x5dbba3<_0xf1fdf3[_0x4f0d6a(0xc9)]&&_0xf1fdf3[_0x5dbba3]===_0x175342[_0x2040ff])_0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]&&_0x552fcc[_0x269cb6]===_0x175342[_0x2040ff]?(_0x2aaf50['push']({'type':_0x4f0d6a(0xc2),'content':_0xf1fdf3[_0x5dbba3]}),_0x5dbba3++,_0x269cb6++,_0x2040ff++):(_0x2aaf50[_0x4f0d6a(0xdf)]({'type':_0x4f0d6a(0xd1),'content':_0x552fcc[_0x269cb6]}),_0x269cb6++);else{if(_0x2040ff<_0x175342[_0x4f0d6a(0xc9)]&&_0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]&&_0x552fcc[_0x269cb6]===_0x175342[_0x2040ff])_0x2aaf50[_0x4f0d6a(0xdf)]({'type':_0x4f0d6a(0xc3),'content':_0xf1fdf3[_0x5dbba3]}),_0x5dbba3++;else{if(_0x5dbba3<_0xf1fdf3[_0x4f0d6a(0xc9)]&&(_0x2040ff>=_0x175342['length']||_0xf1fdf3[_0x5dbba3]!==_0x175342[_0x2040ff]))_0x2aaf50[_0x4f0d6a(0xdf)]({'type':'removed','content':_0xf1fdf3[_0x5dbba3]}),_0x5dbba3++;else _0x269cb6<_0x552fcc[_0x4f0d6a(0xc9)]&&(_0x2aaf50[_0x4f0d6a(0xdf)]({'type':_0x4f0d6a(0xd1),'content':_0x552fcc[_0x269cb6]}),_0x269cb6++);}}}return _0x2aaf50;}function computeLCS(_0x3ab093,_0x582304){const _0x4118d3=a192_0x596f,_0x58041c=_0x3ab093[_0x4118d3(0xc9)],_0xf4d59=_0x582304[_0x4118d3(0xc9)],_0x523ed4=Array(_0x58041c+0x1)[_0x4118d3(0xc8)](null)[_0x4118d3(0xe3)](()=>Array(_0xf4d59+0x1)['fill'](0x0));for(let _0x268bcd=0x1;_0x268bcd<=_0x58041c;_0x268bcd++){for(let _0x5be182=0x1;_0x5be182<=_0xf4d59;_0x5be182++){_0x3ab093[_0x268bcd-0x1]===_0x582304[_0x5be182-0x1]?_0x523ed4[_0x268bcd][_0x5be182]=_0x523ed4[_0x268bcd-0x1][_0x5be182-0x1]+0x1:_0x523ed4[_0x268bcd][_0x5be182]=Math[_0x4118d3(0xde)](_0x523ed4[_0x268bcd-0x1][_0x5be182],_0x523ed4[_0x268bcd][_0x5be182-0x1]);}}const _0x33d897=[];let _0x4553bd=_0x58041c,_0x369cd7=_0xf4d59;while(_0x4553bd>0x0&&_0x369cd7>0x0){if(_0x3ab093[_0x4553bd-0x1]===_0x582304[_0x369cd7-0x1])_0x33d897[_0x4118d3(0xe0)](_0x3ab093[_0x4553bd-0x1]),_0x4553bd--,_0x369cd7--;else _0x523ed4[_0x4553bd-0x1][_0x369cd7]>_0x523ed4[_0x4553bd][_0x369cd7-0x1]?_0x4553bd--:_0x369cd7--;}return _0x33d897;}export function formatDiffWithColors(_0x797ba5,_0x5cfb77=0x3){const _0x2d5215=a192_0x596f,_0x161fad=new Set();_0x797ba5[_0x2d5215(0xd9)]((_0x2ad025,_0x1ccc54)=>{const _0x406d2a=_0x2d5215;_0x2ad025[_0x406d2a(0xe1)]!==_0x406d2a(0xc2)&&_0x161fad[_0x406d2a(0xd2)](_0x1ccc54);});if(_0x161fad[_0x2d5215(0xcf)]===0x0)return'';const _0x947d19=new Set();for(const _0x4b3384 of _0x161fad){for(let _0x26af99=Math['max'](0x0,_0x4b3384-_0x5cfb77);_0x26af99<=Math['min'](_0x797ba5[_0x2d5215(0xc9)]-0x1,_0x4b3384+_0x5cfb77);_0x26af99++){_0x947d19[_0x2d5215(0xd2)](_0x26af99);}}const _0x359b73=[];let _0x4b07aa=-0x1;const _0x4ffd22=_0x797ba5[_0x2d5215(0xc9)],_0x235b0c=Math[_0x2d5215(0xde)](0x3,String(_0x4ffd22)['length']),_0x2a8216=[];let _0x335bcf=0x0,_0x1c7169=0x0;for(const _0x1dc2b0 of _0x797ba5){if(_0x1dc2b0[_0x2d5215(0xe1)]===_0x2d5215(0xc3))_0x335bcf++,_0x2a8216[_0x2d5215(0xdf)]({'old':_0x335bcf,'new':0x0});else _0x1dc2b0[_0x2d5215(0xe1)]===_0x2d5215(0xd1)?(_0x1c7169++,_0x2a8216[_0x2d5215(0xdf)]({'old':0x0,'new':_0x1c7169})):(_0x335bcf++,_0x1c7169++,_0x2a8216[_0x2d5215(0xdf)]({'old':_0x335bcf,'new':_0x1c7169}));}for(let _0x298ceb=0x0;_0x298ceb<_0x797ba5[_0x2d5215(0xc9)];_0x298ceb++){if(!_0x947d19['has'](_0x298ceb))continue;_0x4b07aa!==-0x1&&_0x298ceb>_0x4b07aa+0x1&&_0x359b73[_0x2d5215(0xdf)](a192_0x858ea6[_0x2d5215(0xc5)](_0x2d5215(0xd7)));_0x4b07aa=_0x298ceb;const _0x2650eb=_0x797ba5[_0x298ceb],_0x1a07ed=_0x2a8216[_0x298ceb],_0x4b7c85=_0x1a07ed[_0x2d5215(0xcd)]>0x0?String(_0x1a07ed[_0x2d5215(0xcd)])[_0x2d5215(0xcb)](_0x235b0c):'\x20'[_0x2d5215(0xcc)](_0x235b0c),_0x38ce7e=_0x1a07ed[_0x2d5215(0xd4)]>0x0?String(_0x1a07ed[_0x2d5215(0xd4)])[_0x2d5215(0xcb)](_0x235b0c):'\x20'[_0x2d5215(0xcc)](_0x235b0c);switch(_0x2650eb[_0x2d5215(0xe1)]){case _0x2d5215(0xc3):_0x359b73['push'](a192_0x858ea6[_0x2d5215(0xca)](_0x4b7c85+'\x20'+_0x38ce7e+_0x2d5215(0xc4)+_0x2650eb[_0x2d5215(0xdc)]));break;case _0x2d5215(0xd1):_0x359b73['push'](a192_0x858ea6['green'](_0x4b7c85+'\x20'+_0x38ce7e+'\x20+\x20'+_0x2650eb['content']));break;default:_0x359b73['push'](a192_0x858ea6[_0x2d5215(0xce)](_0x4b7c85+'\x20'+_0x38ce7e+_0x2d5215(0xc6)+_0x2650eb[_0x2d5215(0xdc)]));break;}}return _0x359b73[_0x2d5215(0xd0)]('\x0a');}export function hasChanges(_0x525ecb){const _0x20dc44=a192_0x596f;return _0x525ecb['some'](_0x40fe56=>_0x40fe56[_0x20dc44(0xe1)]!==_0x20dc44(0xc2));}
@@ -1 +1 @@
1
- (function(_0x39708e,_0x544c82){const _0x5340c2=a190_0x1d2e,_0x1f67c5=_0x39708e();while(!![]){try{const _0x48357e=-parseInt(_0x5340c2(0x1dd))/0x1+-parseInt(_0x5340c2(0x1e8))/0x2+-parseInt(_0x5340c2(0x1e3))/0x3*(parseInt(_0x5340c2(0x1e1))/0x4)+parseInt(_0x5340c2(0x1ea))/0x5+parseInt(_0x5340c2(0x1e0))/0x6+-parseInt(_0x5340c2(0x1da))/0x7+parseInt(_0x5340c2(0x1dc))/0x8*(parseInt(_0x5340c2(0x1ec))/0x9);if(_0x48357e===_0x544c82)break;else _0x1f67c5['push'](_0x1f67c5['shift']());}catch(_0x2d4903){_0x1f67c5['push'](_0x1f67c5['shift']());}}}(a190_0x1b8a,0xe19c5));import*as a190_0x47cec8 from'node:fs';import*as a190_0x25493a from'node:path';function a190_0x1b8a(){const _0x28c4c6=['1366542wBABPy','\x20has\x20insecure\x20permissions\x20(','5884185sBKSXM','chmodSync','8603667NTuPrm','Warning:\x20','toString','810824BUwtIb','mode','24dmCEsh','1032602uVdVXo','warn','mkdirSync','56772azHpMV','865588jjPSnN','writeFileSync','18eysiPi',').\x20','existsSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'];a190_0x1b8a=function(){return _0x28c4c6;};return a190_0x1b8a();}function a190_0x1d2e(_0x2cb0ea,_0x2d8caa){_0x2cb0ea=_0x2cb0ea-0x1da;const _0x1b8a59=a190_0x1b8a();let _0x1d2e56=_0x1b8a59[_0x2cb0ea];return _0x1d2e56;}export function setSecureFilePermissions(_0x1e82b9){const _0x17fd6d=a190_0x1d2e;try{a190_0x47cec8[_0x17fd6d(0x1eb)](_0x1e82b9,0x180);}catch{console[_0x17fd6d(0x1de)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1e82b9);}}export function setSecureDirectoryPermissions(_0x2f83db){const _0x2994c9=a190_0x1d2e;try{a190_0x47cec8[_0x2994c9(0x1eb)](_0x2f83db,0x1c0);}catch{console['warn'](_0x2994c9(0x1e7)+_0x2f83db);}}export function createSecureDirectory(_0x49c7a5){const _0x5959a2=a190_0x1d2e;!a190_0x47cec8[_0x5959a2(0x1e5)](_0x49c7a5)&&(a190_0x47cec8[_0x5959a2(0x1df)](_0x49c7a5,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x49c7a5));}export function validateSecureFilePermissions(_0x487402){const _0x2c91fb=a190_0x1d2e;try{const _0x1d3d14=a190_0x47cec8['statSync'](_0x487402),_0x49dfb8=_0x1d3d14[_0x2c91fb(0x1db)]&0x1ff,_0x48925f=(_0x49dfb8&0x3f)!==0x0;if(_0x48925f)return console[_0x2c91fb(0x1de)](_0x2c91fb(0x1ed)+_0x487402+_0x2c91fb(0x1e9)+_0x49dfb8[_0x2c91fb(0x1ee)](0x8)+_0x2c91fb(0x1e4)+_0x2c91fb(0x1e6)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2d0b1d,_0x2f0d30){const _0x3f8529=a190_0x1d2e,_0x3ace57=a190_0x25493a['dirname'](_0x2d0b1d);createSecureDirectory(_0x3ace57),a190_0x47cec8[_0x3f8529(0x1e2)](_0x2d0b1d,_0x2f0d30,{'mode':0x180}),setSecureFilePermissions(_0x2d0b1d);}
1
+ (function(_0x56226e,_0x4208ee){const _0x4084be=a193_0x55bd,_0x4df58b=_0x56226e();while(!![]){try{const _0x5111ae=-parseInt(_0x4084be(0x75))/0x1*(parseInt(_0x4084be(0x7a))/0x2)+-parseInt(_0x4084be(0x72))/0x3*(parseInt(_0x4084be(0x6f))/0x4)+-parseInt(_0x4084be(0x7d))/0x5+-parseInt(_0x4084be(0x77))/0x6*(parseInt(_0x4084be(0x6e))/0x7)+parseInt(_0x4084be(0x74))/0x8*(parseInt(_0x4084be(0x79))/0x9)+parseInt(_0x4084be(0x7f))/0xa+-parseInt(_0x4084be(0x6d))/0xb*(-parseInt(_0x4084be(0x78))/0xc);if(_0x5111ae===_0x4208ee)break;else _0x4df58b['push'](_0x4df58b['shift']());}catch(_0x32384b){_0x4df58b['push'](_0x4df58b['shift']());}}}(a193_0x2f50,0x3a25d));import*as a193_0x49d281 from'node:fs';import*as a193_0x514164 from'node:path';function a193_0x55bd(_0x1643be,_0x27a593){_0x1643be=_0x1643be-0x6d;const _0x2f5021=a193_0x2f50();let _0x55bde9=_0x2f5021[_0x1643be];return _0x55bde9;}export function setSecureFilePermissions(_0x1afef8){const _0x49646b=a193_0x55bd;try{a193_0x49d281[_0x49646b(0x76)](_0x1afef8,0x180);}catch{console[_0x49646b(0x73)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1afef8);}}function a193_0x2f50(){const _0x440f5e=['Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','2107585YjYiLT','statSync','356820HgvKbe','11ItuJts','10864zIFKwa','212828PVTWdd','Warning:\x20','dirname','15RVspZV','warn','17400mPmzbF','59tRzVbY','chmodSync','1746wxtseS','14002572WoScdc','1818QTmnoJ','8968BmYdHA','mkdirSync'];a193_0x2f50=function(){return _0x440f5e;};return a193_0x2f50();}export function setSecureDirectoryPermissions(_0x271463){const _0x48d15d=a193_0x55bd;try{a193_0x49d281[_0x48d15d(0x76)](_0x271463,0x1c0);}catch{console['warn'](_0x48d15d(0x7c)+_0x271463);}}export function createSecureDirectory(_0x3e6409){const _0x41f375=a193_0x55bd;!a193_0x49d281['existsSync'](_0x3e6409)&&(a193_0x49d281[_0x41f375(0x7b)](_0x3e6409,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3e6409));}export function validateSecureFilePermissions(_0x4d15f2){const _0x40084b=a193_0x55bd;try{const _0x524e2f=a193_0x49d281[_0x40084b(0x7e)](_0x4d15f2),_0x4232a7=_0x524e2f['mode']&0x1ff,_0x524e25=(_0x4232a7&0x3f)!==0x0;if(_0x524e25)return console[_0x40084b(0x73)](_0x40084b(0x70)+_0x4d15f2+'\x20has\x20insecure\x20permissions\x20('+_0x4232a7['toString'](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x124d85,_0x263893){const _0x28bc10=a193_0x55bd,_0x7de294=a193_0x514164[_0x28bc10(0x71)](_0x124d85);createSecureDirectory(_0x7de294),a193_0x49d281['writeFileSync'](_0x124d85,_0x263893,{'mode':0x180}),setSecureFilePermissions(_0x124d85);}
@@ -1 +1 @@
1
- (function(_0x33d56a,_0x392fbf){const _0x4a955f=a191_0x53f4,_0x47cc09=_0x33d56a();while(!![]){try{const _0x58195b=-parseInt(_0x4a955f(0x9a))/0x1*(parseInt(_0x4a955f(0xa4))/0x2)+parseInt(_0x4a955f(0x9c))/0x3*(parseInt(_0x4a955f(0x9e))/0x4)+parseInt(_0x4a955f(0x95))/0x5+-parseInt(_0x4a955f(0xa2))/0x6+parseInt(_0x4a955f(0x93))/0x7+-parseInt(_0x4a955f(0xa1))/0x8+parseInt(_0x4a955f(0x9d))/0x9;if(_0x58195b===_0x392fbf)break;else _0x47cc09['push'](_0x47cc09['shift']());}catch(_0xb13131){_0x47cc09['push'](_0x47cc09['shift']());}}}(a191_0x899d,0xd3b92));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a191_0x899d(){const _0x33d6ba=['EACCES','10258264XEYNnA','9232554zbdihQ','\x27:\x20','410588CvGLJm','10572268eqrmlX','utf-8','7100225nEPVtu','\x27\x20not\x20found','PERMISSION_DENIED','File\x20\x27','Error\x20reading\x20file\x20\x27','7bltkVy','code','6HlXgjn','19257759TCzwQI','110396XwIssh','NOT_FOUND'];a191_0x899d=function(){return _0x33d6ba;};return a191_0x899d();}function a191_0x53f4(_0x38f2f0,_0x43da51){_0x38f2f0=_0x38f2f0-0x93;const _0x899d3e=a191_0x899d();let _0x53f466=_0x899d3e[_0x38f2f0];return _0x53f466;}export function readFileContent(_0x5675b6){const _0x1c6fc1=a191_0x53f4;try{return readFileSync(_0x5675b6,_0x1c6fc1(0x94));}catch(_0x4bcf7b){const _0x248336=_0x4bcf7b[_0x1c6fc1(0x9b)];if(_0x248336==='ENOENT')throw new SDKError(ErrorCode[_0x1c6fc1(0x9f)],_0x1c6fc1(0x98)+_0x5675b6+_0x1c6fc1(0x96),_0x4bcf7b);else{if(_0x248336===_0x1c6fc1(0xa0))throw new SDKError(ErrorCode[_0x1c6fc1(0x97)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x5675b6+'\x27',_0x4bcf7b);else throw new SDKError(ErrorCode['INTERNAL'],_0x1c6fc1(0x99)+_0x5675b6+_0x1c6fc1(0xa3)+_0x4bcf7b['message'],_0x4bcf7b);}}}
1
+ (function(_0x8224a4,_0x14dab5){const _0x3eb9a6=a194_0x4e4b,_0x1131e2=_0x8224a4();while(!![]){try{const _0x20e973=-parseInt(_0x3eb9a6(0xd7))/0x1*(-parseInt(_0x3eb9a6(0xd6))/0x2)+-parseInt(_0x3eb9a6(0xd3))/0x3*(parseInt(_0x3eb9a6(0xe2))/0x4)+-parseInt(_0x3eb9a6(0xde))/0x5*(parseInt(_0x3eb9a6(0xe8))/0x6)+parseInt(_0x3eb9a6(0xdf))/0x7*(-parseInt(_0x3eb9a6(0xe3))/0x8)+parseInt(_0x3eb9a6(0xd8))/0x9*(-parseInt(_0x3eb9a6(0xe7))/0xa)+-parseInt(_0x3eb9a6(0xdc))/0xb+parseInt(_0x3eb9a6(0xe9))/0xc;if(_0x20e973===_0x14dab5)break;else _0x1131e2['push'](_0x1131e2['shift']());}catch(_0x690cdc){_0x1131e2['push'](_0x1131e2['shift']());}}}(a194_0x2212,0x809c9));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x2212(){const _0x4e94ed=['Error\x20reading\x20file\x20\x27','9163030ssGTCw','1015884klzmGb','50800212HdvQXI','INTERNAL','3VVAwoF','\x27:\x20','ENOENT','2414ncaYNC','171bimCWH','9uBmGsl','File\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','utf-8','6807570lfaOfe','NOT_FOUND','20lUiNzO','5539583tDWWvi','\x27\x20not\x20found','message','3636628vxCpWb','8EyfdFz','code','EACCES'];a194_0x2212=function(){return _0x4e94ed;};return a194_0x2212();}function a194_0x4e4b(_0x235a87,_0x271529){_0x235a87=_0x235a87-0xd3;const _0x22129a=a194_0x2212();let _0x4e4bc3=_0x22129a[_0x235a87];return _0x4e4bc3;}export function readFileContent(_0x5eb18e){const _0x1b6ec7=a194_0x4e4b;try{return readFileSync(_0x5eb18e,_0x1b6ec7(0xdb));}catch(_0x216c2b){const _0x2e7aaf=_0x216c2b[_0x1b6ec7(0xe4)];if(_0x2e7aaf===_0x1b6ec7(0xd5))throw new SDKError(ErrorCode[_0x1b6ec7(0xdd)],_0x1b6ec7(0xd9)+_0x5eb18e+_0x1b6ec7(0xe0),_0x216c2b);else{if(_0x2e7aaf===_0x1b6ec7(0xe5))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1b6ec7(0xda)+_0x5eb18e+'\x27',_0x216c2b);else throw new SDKError(ErrorCode[_0x1b6ec7(0xea)],_0x1b6ec7(0xe6)+_0x5eb18e+_0x1b6ec7(0xd4)+_0x216c2b[_0x1b6ec7(0xe1)],_0x216c2b);}}}
@@ -1 +1 @@
1
- (function(_0x56007b,_0x16a4da){const _0x3db7d4=a192_0x30dd,_0x2f69d9=_0x56007b();while(!![]){try{const _0x64d5fb=-parseInt(_0x3db7d4(0x16a))/0x1+-parseInt(_0x3db7d4(0x168))/0x2*(-parseInt(_0x3db7d4(0x165))/0x3)+parseInt(_0x3db7d4(0x16e))/0x4+-parseInt(_0x3db7d4(0x160))/0x5*(-parseInt(_0x3db7d4(0x163))/0x6)+-parseInt(_0x3db7d4(0x15d))/0x7*(parseInt(_0x3db7d4(0x158))/0x8)+parseInt(_0x3db7d4(0x161))/0x9+-parseInt(_0x3db7d4(0x151))/0xa*(parseInt(_0x3db7d4(0x16d))/0xb);if(_0x64d5fb===_0x16a4da)break;else _0x2f69d9['push'](_0x2f69d9['shift']());}catch(_0x8a1e23){_0x2f69d9['push'](_0x2f69d9['shift']());}}}(a192_0x32d1,0x32c69));import*as a192_0x52518d from'node:https';function a192_0x30dd(_0x54cc66,_0x2d6382){_0x54cc66=_0x54cc66-0x150;const _0x32d1e6=a192_0x32d1();let _0x30dd98=_0x32d1e6[_0x54cc66];return _0x30dd98;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x4e9512,_0x19587d,_0x137dd1){const _0x2dc35f=a192_0x30dd,_0x566b32=_0x4e9512+'/'+_0x19587d,_0xecafb9=cache[_0x2dc35f(0x157)](_0x566b32);if(_0xecafb9&&Date['now']()-_0xecafb9[_0x2dc35f(0x152)]<CACHE_TTL_MS)return Promise[_0x2dc35f(0x16b)](_0xecafb9[_0x2dc35f(0x162)]);return new Promise((_0x3260a0,_0x40a4fa)=>{const _0x198eb5=_0x2dc35f,_0x5a5433={'hostname':_0x198eb5(0x150),'path':_0x198eb5(0x15f)+_0x4e9512+'/'+_0x19587d+_0x198eb5(0x155),'headers':{'User-Agent':_0x137dd1,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x350005=a192_0x52518d['get'](_0x5a5433,_0x1963da=>{const _0x4fb73e=_0x198eb5;let _0x14744f='';_0x1963da['on']('data',_0x4115a8=>{_0x14744f+=_0x4115a8['toString']();}),_0x1963da['on'](_0x4fb73e(0x159),()=>{const _0x37475c=_0x4fb73e;if(_0x1963da[_0x37475c(0x166)]!==0xc8){_0x40a4fa(new Error(_0x37475c(0x15b)+_0x1963da[_0x37475c(0x166)]+':\x20'+_0x14744f[_0x37475c(0x167)](0x0,0xc8)));return;}try{const _0x1b6df3=JSON[_0x37475c(0x156)](_0x14744f);cache[_0x37475c(0x16f)](_0x566b32,{'releases':_0x1b6df3,'fetchedAt':Date['now']()}),_0x3260a0(_0x1b6df3);}catch(_0x3cb1cb){_0x40a4fa(_0x3cb1cb);}});});_0x350005['on'](_0x198eb5(0x153),()=>{const _0x51e31a=_0x198eb5;_0x350005[_0x51e31a(0x15c)](),_0x40a4fa(new Error(_0x51e31a(0x169)+REQUEST_TIMEOUT_MS+'ms'));}),_0x350005['on'](_0x198eb5(0x164),_0x40a4fa);});}export async function resolveReleaseTag(_0x47d9e0,_0x203ad4,_0x39d716,_0x227fc4){const _0x43111e=a192_0x30dd,_0x1cf53b=await fetchGitHubReleases(_0x203ad4,_0x39d716,_0x227fc4);if(_0x1cf53b[_0x43111e(0x154)]===0x0)return null;if(_0x47d9e0===_0x43111e(0x15e))return _0x1cf53b[0x0][_0x43111e(0x15a)];const _0x57392e=_0x1cf53b[_0x43111e(0x16c)](_0x57df8d=>!_0x57df8d['prerelease']);return _0x57392e?_0x57392e[_0x43111e(0x15a)]:null;}function a192_0x32d1(){const _0x59cf91=['error','49143WjmCpf','statusCode','slice','30BzlEKg','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','31409vbndXJ','resolve','find','11gkfKvl','283472AeQOwK','set','api.github.com','1161430wEurtr','fetchedAt','timeout','length','/releases?per_page=20','parse','get','8DRNQXC','end','tag_name','GitHub\x20API\x20returned\x20','destroy','899780iHCJIa','next','/repos/','10qEzKOy','736866ZTfKbW','releases','256836vaUIhN'];a192_0x32d1=function(){return _0x59cf91;};return a192_0x32d1();}
1
+ (function(_0x2327ab,_0x355126){const _0x223500=a195_0x18cd,_0x17e8bb=_0x2327ab();while(!![]){try{const _0x55cb6f=-parseInt(_0x223500(0xdf))/0x1*(-parseInt(_0x223500(0xca))/0x2)+-parseInt(_0x223500(0xd0))/0x3*(parseInt(_0x223500(0xc7))/0x4)+-parseInt(_0x223500(0xd1))/0x5+-parseInt(_0x223500(0xc8))/0x6*(parseInt(_0x223500(0xda))/0x7)+-parseInt(_0x223500(0xc6))/0x8+parseInt(_0x223500(0xc9))/0x9+-parseInt(_0x223500(0xd8))/0xa*(-parseInt(_0x223500(0xde))/0xb);if(_0x55cb6f===_0x355126)break;else _0x17e8bb['push'](_0x17e8bb['shift']());}catch(_0x507b81){_0x17e8bb['push'](_0x17e8bb['shift']());}}}(a195_0x123b,0x480eb));import*as a195_0xdd47af from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a195_0x123b(){const _0x4d56d2=['set','tag_name','application/vnd.github+json','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','123IgNMEj','364185PkPLLU','/releases?per_page=20','toString','fetchedAt','destroy','timeout','statusCode','20bJAxyG','error','74326RBwpGn','parse','/repos/','end','5052652JuEPGf','1XPumMC','get','now','3433144yYUzzE','14052QHSmZp','264TzDZTG','1608471OHVuEf','621938GRnfHj','next'];a195_0x123b=function(){return _0x4d56d2;};return a195_0x123b();}export function fetchGitHubReleases(_0x539a7f,_0x39f4f9,_0x49745a){const _0x8c73a3=a195_0x18cd,_0x45a9f9=_0x539a7f+'/'+_0x39f4f9,_0x126943=cache[_0x8c73a3(0xe0)](_0x45a9f9);if(_0x126943&&Date[_0x8c73a3(0xe1)]()-_0x126943[_0x8c73a3(0xd4)]<CACHE_TTL_MS)return Promise['resolve'](_0x126943['releases']);return new Promise((_0x1c8562,_0x4f81f3)=>{const _0x34391b=_0x8c73a3,_0x3d9c09={'hostname':'api.github.com','path':_0x34391b(0xdc)+_0x539a7f+'/'+_0x39f4f9+_0x34391b(0xd2),'headers':{'User-Agent':_0x49745a,'Accept':_0x34391b(0xce)},'timeout':REQUEST_TIMEOUT_MS},_0x56bc33=a195_0xdd47af[_0x34391b(0xe0)](_0x3d9c09,_0xda9d=>{const _0x578e3a=_0x34391b;let _0x53ff40='';_0xda9d['on']('data',_0x5edf9a=>{const _0x28e068=a195_0x18cd;_0x53ff40+=_0x5edf9a[_0x28e068(0xd3)]();}),_0xda9d['on'](_0x578e3a(0xdd),()=>{const _0x3ec000=_0x578e3a;if(_0xda9d[_0x3ec000(0xd7)]!==0xc8){_0x4f81f3(new Error('GitHub\x20API\x20returned\x20'+_0xda9d[_0x3ec000(0xd7)]+':\x20'+_0x53ff40['slice'](0x0,0xc8)));return;}try{const _0x127890=JSON[_0x3ec000(0xdb)](_0x53ff40);cache[_0x3ec000(0xcc)](_0x45a9f9,{'releases':_0x127890,'fetchedAt':Date[_0x3ec000(0xe1)]()}),_0x1c8562(_0x127890);}catch(_0x17a795){_0x4f81f3(_0x17a795);}});});_0x56bc33['on'](_0x34391b(0xd6),()=>{const _0x2892e4=_0x34391b;_0x56bc33[_0x2892e4(0xd5)](),_0x4f81f3(new Error(_0x2892e4(0xcf)+REQUEST_TIMEOUT_MS+'ms'));}),_0x56bc33['on'](_0x34391b(0xd9),_0x4f81f3);});}function a195_0x18cd(_0x124b1b,_0x2ba6e3){_0x124b1b=_0x124b1b-0xc6;const _0x123b83=a195_0x123b();let _0x18cde8=_0x123b83[_0x124b1b];return _0x18cde8;}export async function resolveReleaseTag(_0x1caf53,_0x498fd3,_0x342038,_0x455c52){const _0x1b773b=a195_0x18cd,_0x2aa646=await fetchGitHubReleases(_0x498fd3,_0x342038,_0x455c52);if(_0x2aa646['length']===0x0)return null;if(_0x1caf53===_0x1b773b(0xcb))return _0x2aa646[0x0]['tag_name'];const _0x12e54b=_0x2aa646['find'](_0x2d535c=>!_0x2d535c['prerelease']);return _0x12e54b?_0x12e54b[_0x1b773b(0xcd)]:null;}
@@ -1 +1 @@
1
- (function(_0x21205e,_0x3e4047){const _0x2381af=a193_0x4d47,_0x2e87a7=_0x21205e();while(!![]){try{const _0x121268=-parseInt(_0x2381af(0x84))/0x1*(-parseInt(_0x2381af(0x7b))/0x2)+-parseInt(_0x2381af(0x75))/0x3*(parseInt(_0x2381af(0x81))/0x4)+-parseInt(_0x2381af(0x72))/0x5*(-parseInt(_0x2381af(0x71))/0x6)+-parseInt(_0x2381af(0x80))/0x7*(-parseInt(_0x2381af(0x7a))/0x8)+-parseInt(_0x2381af(0x74))/0x9+-parseInt(_0x2381af(0x85))/0xa*(-parseInt(_0x2381af(0x83))/0xb)+-parseInt(_0x2381af(0x7d))/0xc;if(_0x121268===_0x3e4047)break;else _0x2e87a7['push'](_0x2e87a7['shift']());}catch(_0x34764f){_0x2e87a7['push'](_0x2e87a7['shift']());}}}(a193_0x42ee,0x19169));function a193_0x42ee(){const _0x13e525=['default','147WUYjNW','310672prAhtW','set','77EWVOtC','9302CNlgNI','196040crWnri','parse','get','36HmGKMs','150710SlbQvH','{profile}','898218iUeWZi','3ViwCJT','.cache','replace','tdx','trim','66928ssmDje','18DVURJF','\x22,\x20cannot\x20register\x20for\x20\x22','3567036OCYZTg','utf-8'];a193_0x42ee=function(){return _0x13e525;};return a193_0x42ee();}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';function a193_0x4d47(_0x25840b,_0x5c4a74){_0x25840b=_0x25840b-0x70;const _0x42ee0e=a193_0x42ee();let _0x4d478b=_0x42ee0e[_0x25840b];return _0x4d478b;}export function getGlobalCacheDir(){const _0x1d4d5a=a193_0x4d47;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1d4d5a(0x76),_0x1d4d5a(0x78));}const registry=new Map();export function registerGlobalCacheKey(_0x525f05,_0x2e5697){const _0x3d5258=a193_0x4d47,_0x5dee73=registry[_0x3d5258(0x70)](_0x525f05);if(_0x5dee73&&_0x5dee73!==_0x2e5697)throw new Error('Global\x20cache\x20key\x20\x22'+_0x525f05+'\x22\x20already\x20registered\x20by\x20\x22'+_0x5dee73+_0x3d5258(0x7c)+_0x2e5697+'\x22');registry[_0x3d5258(0x82)](_0x525f05,_0x2e5697);}export function getGlobalCachePath(_0x3ea063){return join(getGlobalCacheDir(),_0x3ea063);}function ensureGlobalCacheDir(){const _0x27558c=getGlobalCacheDir();!existsSync(_0x27558c)&&mkdirSync(_0x27558c,{'recursive':!![]});}function readCacheJson(_0x59f80c){const _0x5e55d4=a193_0x4d47,_0x1c5f1f=getGlobalCachePath(_0x59f80c);if(!existsSync(_0x1c5f1f))return undefined;try{const _0x563379=readFileSync(_0x1c5f1f,'utf-8');return JSON[_0x5e55d4(0x86)](_0x563379);}catch{return undefined;}}function writeCacheJson(_0x54a877,_0x256aa9){const _0x35e339=a193_0x4d47;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x54a877),JSON['stringify'](_0x256aa9,null,0x2),_0x35e339(0x7e));}function readCacheText(_0x194a36){const _0x5a213a=a193_0x4d47,_0x4351d9=getGlobalCachePath(_0x194a36);if(!existsSync(_0x4351d9))return undefined;try{return readFileSync(_0x4351d9,_0x5a213a(0x7e));}catch{return undefined;}}function writeCacheText(_0x1c22ad,_0x5b67f8){const _0x127f46=a193_0x4d47;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1c22ad),_0x5b67f8,_0x127f46(0x7e));}function clearCache(_0x541cae){const _0x99fb16=getGlobalCachePath(_0x541cae);if(existsSync(_0x99fb16))try{unlinkSync(_0x99fb16);}catch{}}function cacheExists(_0xf77ecf){return existsSync(getGlobalCachePath(_0xf77ecf));}export function createGlobalCache(_0x123f73,_0x48e560){return registerGlobalCacheKey(_0x123f73,_0x48e560),{'read':()=>readCacheJson(_0x123f73),'write':_0x28efb6=>writeCacheJson(_0x123f73,_0x28efb6),'clear':()=>clearCache(_0x123f73),'exists':()=>cacheExists(_0x123f73),'path':()=>getGlobalCachePath(_0x123f73)};}export function createGlobalTextCache(_0x335b82,_0x17693e){const _0x338367=a193_0x4d47;return registerGlobalCacheKey(_0x335b82,_0x17693e),{'read':()=>readCacheText(_0x335b82)?.[_0x338367(0x79)]()||undefined,'write':_0x5eea43=>writeCacheText(_0x335b82,_0x5eea43),'clear':()=>clearCache(_0x335b82),'exists':()=>cacheExists(_0x335b82),'path':()=>getGlobalCachePath(_0x335b82)};}export function createProfileCache(_0x44679c,_0x40d6ee){const _0x401a61=_0x345905=>{const _0x3e8011=a193_0x4d47,_0x3ebb2a=_0x345905||_0x3e8011(0x7f);return _0x44679c[_0x3e8011(0x77)](_0x3e8011(0x73),_0x3ebb2a);};return{'read':_0xb8a359=>{const _0x245316=_0x401a61(_0xb8a359);return registerGlobalCacheKey(_0x245316,_0x40d6ee),readCacheJson(_0x245316);},'write':(_0x4eee2b,_0x4166b2)=>{const _0x8c9792=_0x401a61(_0x4eee2b);registerGlobalCacheKey(_0x8c9792,_0x40d6ee),writeCacheJson(_0x8c9792,_0x4166b2);},'clear':_0x231456=>{const _0x24cb44=_0x401a61(_0x231456);clearCache(_0x24cb44);},'exists':_0x5dc8b3=>{const _0x5b2dc6=_0x401a61(_0x5dc8b3);return cacheExists(_0x5b2dc6);},'path':_0x3b5c56=>{const _0x1b941d=_0x401a61(_0x3b5c56);return getGlobalCachePath(_0x1b941d);}};}export function createOptionalProfileCache(_0x503520,_0x2a581d,_0x14cf77={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x14cf77,_0x58061e=_0x1ce404=>{return _0x1ce404?''+_0x503520+profileSeparator+_0x1ce404+suffix:''+_0x503520+suffix;};return{'read':_0x5409ec=>{const _0x40f9f0=_0x58061e(_0x5409ec);return registerGlobalCacheKey(_0x40f9f0,_0x2a581d),readCacheJson(_0x40f9f0);},'write':(_0x456ded,_0x4960cd)=>{const _0x3b376e=_0x58061e(_0x4960cd);registerGlobalCacheKey(_0x3b376e,_0x2a581d),writeCacheJson(_0x3b376e,_0x456ded);},'clear':_0x1dd05e=>{const _0x4d9de7=_0x58061e(_0x1dd05e);clearCache(_0x4d9de7);},'exists':_0x13d09a=>{const _0x419a0c=_0x58061e(_0x13d09a);return cacheExists(_0x419a0c);},'path':_0x122d0c=>{const _0x3948fb=_0x58061e(_0x122d0c);return getGlobalCachePath(_0x3948fb);}};}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x1f5925,_0x11bfed){const _0x47330d=a196_0x2e51,_0x5cf038=_0x1f5925();while(!![]){try{const _0x545772=-parseInt(_0x47330d(0x12a))/0x1+-parseInt(_0x47330d(0x131))/0x2*(-parseInt(_0x47330d(0x134))/0x3)+-parseInt(_0x47330d(0x132))/0x4+parseInt(_0x47330d(0x130))/0x5+parseInt(_0x47330d(0x128))/0x6*(parseInt(_0x47330d(0x12b))/0x7)+-parseInt(_0x47330d(0x127))/0x8+parseInt(_0x47330d(0x123))/0x9*(parseInt(_0x47330d(0x122))/0xa);if(_0x545772===_0x11bfed)break;else _0x5cf038['push'](_0x5cf038['shift']());}catch(_0x1517ff){_0x5cf038['push'](_0x5cf038['shift']());}}}(a196_0x9f9e,0x26831));function a196_0x2e51(_0xf9cfec,_0x90a4a9){_0xf9cfec=_0xf9cfec-0x120;const _0x9f9e74=a196_0x9f9e();let _0x2e51e9=_0x9f9e74[_0xf9cfec];return _0x2e51e9;}import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a196_0x9f9e(){const _0x56394e=['536710AcFAgy','132gJifQL','984808YhDDzv','utf-8','7434iGlTxr','set','parse','stringify','30QNgcXu','604917OGNHPT','{profile}','trim','Global\x20cache\x20key\x20\x22','350104zrVBvt','6XlAhGu','get','47992FeJJOM','162211GSyafe','\x22\x20already\x20registered\x20by\x20\x22','\x22,\x20cannot\x20register\x20for\x20\x22','replace','clear'];a196_0x9f9e=function(){return _0x56394e;};return a196_0x9f9e();}import{homedir}from'os';export function getGlobalCacheDir(){return process.env.TDX_CACHE_DIR||join(homedir(),'.cache','tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x2400ea,_0x1a91bb){const _0x1e24d6=a196_0x2e51,_0x8ff754=registry[_0x1e24d6(0x129)](_0x2400ea);if(_0x8ff754&&_0x8ff754!==_0x1a91bb)throw new Error(_0x1e24d6(0x126)+_0x2400ea+_0x1e24d6(0x12c)+_0x8ff754+_0x1e24d6(0x12d)+_0x1a91bb+'\x22');registry[_0x1e24d6(0x135)](_0x2400ea,_0x1a91bb);}export function getGlobalCachePath(_0xd8cf10){return join(getGlobalCacheDir(),_0xd8cf10);}function ensureGlobalCacheDir(){const _0x1cff99=getGlobalCacheDir();!existsSync(_0x1cff99)&&mkdirSync(_0x1cff99,{'recursive':!![]});}function readCacheJson(_0x4c5477){const _0x1aa2ea=a196_0x2e51,_0x53f13c=getGlobalCachePath(_0x4c5477);if(!existsSync(_0x53f13c))return undefined;try{const _0x206e35=readFileSync(_0x53f13c,_0x1aa2ea(0x133));return JSON[_0x1aa2ea(0x120)](_0x206e35);}catch{return undefined;}}function writeCacheJson(_0x5b0721,_0x1e8346){const _0xe4982b=a196_0x2e51;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5b0721),JSON[_0xe4982b(0x121)](_0x1e8346,null,0x2),'utf-8');}function readCacheText(_0x251025){const _0x615de1=a196_0x2e51,_0xf6cd98=getGlobalCachePath(_0x251025);if(!existsSync(_0xf6cd98))return undefined;try{return readFileSync(_0xf6cd98,_0x615de1(0x133));}catch{return undefined;}}function writeCacheText(_0x1fda85,_0xa625ec){const _0x64c6ef=a196_0x2e51;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1fda85),_0xa625ec,_0x64c6ef(0x133));}function clearCache(_0x45f2f6){const _0x11ff88=getGlobalCachePath(_0x45f2f6);if(existsSync(_0x11ff88))try{unlinkSync(_0x11ff88);}catch{}}function cacheExists(_0xf7b486){return existsSync(getGlobalCachePath(_0xf7b486));}export function createGlobalCache(_0x3120b5,_0x65f9bf){return registerGlobalCacheKey(_0x3120b5,_0x65f9bf),{'read':()=>readCacheJson(_0x3120b5),'write':_0x4bc723=>writeCacheJson(_0x3120b5,_0x4bc723),'clear':()=>clearCache(_0x3120b5),'exists':()=>cacheExists(_0x3120b5),'path':()=>getGlobalCachePath(_0x3120b5)};}export function createGlobalTextCache(_0x231b4f,_0x420e60){const _0x3f7c56=a196_0x2e51;return registerGlobalCacheKey(_0x231b4f,_0x420e60),{'read':()=>readCacheText(_0x231b4f)?.[_0x3f7c56(0x125)]()||undefined,'write':_0x3a1c80=>writeCacheText(_0x231b4f,_0x3a1c80),'clear':()=>clearCache(_0x231b4f),'exists':()=>cacheExists(_0x231b4f),'path':()=>getGlobalCachePath(_0x231b4f)};}export function createProfileCache(_0x11eb04,_0x100062){const _0x1a9181=_0x359575=>{const _0x383ffe=a196_0x2e51,_0x10ee48=_0x359575||'default';return _0x11eb04[_0x383ffe(0x12e)](_0x383ffe(0x124),_0x10ee48);};return{'read':_0x3d6ea1=>{const _0x4ce77b=_0x1a9181(_0x3d6ea1);return registerGlobalCacheKey(_0x4ce77b,_0x100062),readCacheJson(_0x4ce77b);},'write':(_0x453d67,_0x53c6ec)=>{const _0x443069=_0x1a9181(_0x453d67);registerGlobalCacheKey(_0x443069,_0x100062),writeCacheJson(_0x443069,_0x53c6ec);},'clear':_0x927238=>{const _0x17b474=_0x1a9181(_0x927238);clearCache(_0x17b474);},'exists':_0x2fe027=>{const _0x36844d=_0x1a9181(_0x2fe027);return cacheExists(_0x36844d);},'path':_0x24ccf5=>{const _0x494783=_0x1a9181(_0x24ccf5);return getGlobalCachePath(_0x494783);}};}export function createOptionalProfileCache(_0xd97d5e,_0x357f0f,_0x14b54c={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x14b54c,_0x4970be=_0xc832a4=>{return _0xc832a4?''+_0xd97d5e+profileSeparator+_0xc832a4+suffix:''+_0xd97d5e+suffix;};return{'read':_0x480719=>{const _0x3d2ab7=_0x4970be(_0x480719);return registerGlobalCacheKey(_0x3d2ab7,_0x357f0f),readCacheJson(_0x3d2ab7);},'write':(_0x171fea,_0x174d86)=>{const _0x470f43=_0x4970be(_0x174d86);registerGlobalCacheKey(_0x470f43,_0x357f0f),writeCacheJson(_0x470f43,_0x171fea);},'clear':_0x576e17=>{const _0xb82425=_0x4970be(_0x576e17);clearCache(_0xb82425);},'exists':_0x269473=>{const _0x4bf9a1=_0x4970be(_0x269473);return cacheExists(_0x4bf9a1);},'path':_0x165e0a=>{const _0x1837f0=_0x4970be(_0x165e0a);return getGlobalCachePath(_0x1837f0);}};}export function clearGlobalRegistry(){const _0x1b5a19=a196_0x2e51;registry[_0x1b5a19(0x12f)]();}
@@ -1 +1 @@
1
- (function(_0xab2d68,_0x5056a6){const _0x4e4da9=a194_0x5a6d,_0x3320d6=_0xab2d68();while(!![]){try{const _0xd79631=-parseInt(_0x4e4da9(0x16c))/0x1*(parseInt(_0x4e4da9(0x160))/0x2)+-parseInt(_0x4e4da9(0x174))/0x3+parseInt(_0x4e4da9(0x168))/0x4*(-parseInt(_0x4e4da9(0x170))/0x5)+parseInt(_0x4e4da9(0x162))/0x6*(-parseInt(_0x4e4da9(0x164))/0x7)+-parseInt(_0x4e4da9(0x16a))/0x8+parseInt(_0x4e4da9(0x166))/0x9*(parseInt(_0x4e4da9(0x161))/0xa)+parseInt(_0x4e4da9(0x16d))/0xb;if(_0xd79631===_0x5056a6)break;else _0x3320d6['push'](_0x3320d6['shift']());}catch(_0x413789){_0x3320d6['push'](_0x3320d6['shift']());}}}(a194_0x3fcd,0xf09b5));function a194_0x3fcd(){const _0x5e74e8=['Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','ENOENT','INVALID_ARGUMENT','3383877dZWCmm','message','Invalid\x20JSON\x20string:\x20','EACCES','parse','code','INTERNAL','26LYvMIm','290kjveFe','6RzlfFb','NOT_FOUND','12639907KEiWNJ','utf-8','440073qzdVsJ','Permission\x20denied\x20reading\x20file:\x20','1176CurGkO','PERMISSION_DENIED','9205840REpPdH','\x27:\x20','2654fIZWSc','46762958oOxwtn','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','9605NDsHLz'];a194_0x3fcd=function(){return _0x5e74e8;};return a194_0x3fcd();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x5a6d(_0x40c1e1,_0x32a69d){_0x40c1e1=_0x40c1e1-0x15f;const _0x3fcdbb=a194_0x3fcd();let _0x5a6daf=_0x3fcdbb[_0x40c1e1];return _0x5a6daf;}export async function loadJSON(_0x143db4,_0x4b519e){const _0x5c5998=a194_0x5a6d;try{if(_0x4b519e){const _0x217040=await readFile(_0x143db4,_0x5c5998(0x165));try{return JSON[_0x5c5998(0x178)](_0x217040);}catch(_0x4ac525){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x5c5998(0x16f)+_0x143db4+_0x5c5998(0x16b)+(_0x4ac525 instanceof Error?_0x4ac525['message']:String(_0x4ac525)));}}else try{return JSON[_0x5c5998(0x178)](_0x143db4);}catch(_0x902021){throw new SDKError(ErrorCode[_0x5c5998(0x173)],_0x5c5998(0x176)+(_0x902021 instanceof Error?_0x902021[_0x5c5998(0x175)]:String(_0x902021)));}}catch(_0x3e95a0){if(_0x3e95a0 instanceof SDKError)throw _0x3e95a0;if(_0x3e95a0 instanceof Error&&_0x5c5998(0x179)in _0x3e95a0){const _0x371be8=_0x3e95a0;if(_0x371be8[_0x5c5998(0x179)]===_0x5c5998(0x172))throw new SDKError(ErrorCode[_0x5c5998(0x163)],'File\x20not\x20found:\x20'+_0x143db4);else{if(_0x371be8[_0x5c5998(0x179)]===_0x5c5998(0x177))throw new SDKError(ErrorCode[_0x5c5998(0x169)],_0x5c5998(0x167)+_0x143db4);}}throw new SDKError(ErrorCode[_0x5c5998(0x15f)],_0x5c5998(0x16e)+(_0x3e95a0 instanceof Error?_0x3e95a0[_0x5c5998(0x175)]:String(_0x3e95a0)));}}export async function loadJSONFromOptions(_0x418c05,_0x150109){const _0x3807ed=a194_0x5a6d;if(_0x418c05&&_0x150109)throw new SDKError(ErrorCode[_0x3807ed(0x173)],_0x3807ed(0x171));if(_0x418c05)return await loadJSON(_0x418c05,![]);if(_0x150109)return await loadJSON(_0x150109,!![]);return undefined;}
1
+ function a197_0x5be6(){const _0x626cfe=['3868038BcEcZK','NOT_FOUND','34644gDkQfu','INVALID_ARGUMENT','INTERNAL','message','90zJTilW','187528uojFIK','110712MeuDSy','Invalid\x20JSON\x20in\x20file\x20\x27','Permission\x20denied\x20reading\x20file:\x20','365Psztbw','22AnlYNw','Failed\x20to\x20load\x20JSON:\x20','File\x20not\x20found:\x20','code','Invalid\x20JSON\x20string:\x20','ENOENT','600054dTRCWB','parse','54497LDmvlB','2466770OyvLgL','\x27:\x20'];a197_0x5be6=function(){return _0x626cfe;};return a197_0x5be6();}function a197_0x629b(_0x598040,_0x5708c7){_0x598040=_0x598040-0xf2;const _0x5be68c=a197_0x5be6();let _0x629b6a=_0x5be68c[_0x598040];return _0x629b6a;}(function(_0x55abad,_0x1bc1cb){const _0x41353e=a197_0x629b,_0x21a7b1=_0x55abad();while(!![]){try{const _0x29359b=-parseInt(_0x41353e(0xf5))/0x1*(-parseInt(_0x41353e(0x104))/0x2)+-parseInt(_0x41353e(0x100))/0x3+parseInt(_0x41353e(0xfa))/0x4*(-parseInt(_0x41353e(0x103))/0x5)+parseInt(_0x41353e(0xf8))/0x6+-parseInt(_0x41353e(0xf3))/0x7+-parseInt(_0x41353e(0xff))/0x8*(parseInt(_0x41353e(0xfe))/0x9)+parseInt(_0x41353e(0xf6))/0xa;if(_0x29359b===_0x1bc1cb)break;else _0x21a7b1['push'](_0x21a7b1['shift']());}catch(_0x395a85){_0x21a7b1['push'](_0x21a7b1['shift']());}}}(a197_0x5be6,0x7a718));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x29702f,_0x4a0e96){const _0x384e70=a197_0x629b;try{if(_0x4a0e96){const _0x55d08b=await readFile(_0x29702f,'utf-8');try{return JSON['parse'](_0x55d08b);}catch(_0x53fb0e){throw new SDKError(ErrorCode[_0x384e70(0xfb)],_0x384e70(0x101)+_0x29702f+_0x384e70(0xf7)+(_0x53fb0e instanceof Error?_0x53fb0e[_0x384e70(0xfd)]:String(_0x53fb0e)));}}else try{return JSON[_0x384e70(0xf4)](_0x29702f);}catch(_0x417f3c){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x384e70(0x108)+(_0x417f3c instanceof Error?_0x417f3c[_0x384e70(0xfd)]:String(_0x417f3c)));}}catch(_0x2a1356){if(_0x2a1356 instanceof SDKError)throw _0x2a1356;if(_0x2a1356 instanceof Error&&'code'in _0x2a1356){const _0x582433=_0x2a1356;if(_0x582433[_0x384e70(0x107)]===_0x384e70(0xf2))throw new SDKError(ErrorCode[_0x384e70(0xf9)],_0x384e70(0x106)+_0x29702f);else{if(_0x582433[_0x384e70(0x107)]==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x384e70(0x102)+_0x29702f);}}throw new SDKError(ErrorCode[_0x384e70(0xfc)],_0x384e70(0x105)+(_0x2a1356 instanceof Error?_0x2a1356[_0x384e70(0xfd)]:String(_0x2a1356)));}}export async function loadJSONFromOptions(_0x380b8d,_0x4e0d03){const _0x4a51c4=a197_0x629b;if(_0x380b8d&&_0x4e0d03)throw new SDKError(ErrorCode[_0x4a51c4(0xfb)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x380b8d)return await loadJSON(_0x380b8d,![]);if(_0x4e0d03)return await loadJSON(_0x4e0d03,!![]);return undefined;}
@@ -1 +1 @@
1
- const a195_0x2fef94=a195_0x758c;(function(_0x264131,_0x496079){const _0x13a47c=a195_0x758c,_0x5e793f=_0x264131();while(!![]){try{const _0x33a7c4=-parseInt(_0x13a47c(0x1f1))/0x1*(-parseInt(_0x13a47c(0x1ec))/0x2)+parseInt(_0x13a47c(0x1f8))/0x3*(parseInt(_0x13a47c(0x1f3))/0x4)+-parseInt(_0x13a47c(0x1f7))/0x5+parseInt(_0x13a47c(0x1f0))/0x6*(-parseInt(_0x13a47c(0x1ef))/0x7)+parseInt(_0x13a47c(0x1fa))/0x8+parseInt(_0x13a47c(0x1f4))/0x9*(parseInt(_0x13a47c(0x1f5))/0xa)+-parseInt(_0x13a47c(0x1ee))/0xb*(parseInt(_0x13a47c(0x1ed))/0xc);if(_0x33a7c4===_0x496079)break;else _0x5e793f['push'](_0x5e793f['shift']());}catch(_0x1f8ae0){_0x5e793f['push'](_0x5e793f['shift']());}}}(a195_0x4d15,0xc6601));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a195_0x758c(_0x174cc8,_0x16bd28){_0x174cc8=_0x174cc8-0x1ea;const _0x4d15d0=a195_0x4d15();let _0x758c0f=_0x4d15d0[_0x174cc8];return _0x758c0f;}import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0x2fef94(0x1f2),registry=new Map();export function registerCacheKey(_0x35757d,_0x520768){const _0xb8823e=a195_0x2fef94,_0x1cef07=registry[_0xb8823e(0x1eb)](_0x35757d);if(_0x1cef07&&_0x1cef07!==_0x520768)throw new Error(_0xb8823e(0x1fd)+_0x35757d+_0xb8823e(0x1fb)+_0x1cef07+_0xb8823e(0x1ff)+_0x520768+'\x22');registry[_0xb8823e(0x1f6)](_0x35757d,_0x520768);}export function getCacheDir(){const _0x53678c=a195_0x2fef94,_0x4be9b9=process[_0x53678c(0x200)](),_0x245ac8=_0x4be9b9===parse(_0x4be9b9)[_0x53678c(0x1fc)]?homedir():_0x4be9b9;return join(_0x245ac8,LOCAL_CACHE_DIR);}export function getCachePath(_0x3896ae){return join(getCacheDir(),_0x3896ae);}function ensureCacheDir(){const _0x3b03e4=getCacheDir();!existsSync(_0x3b03e4)&&mkdirSync(_0x3b03e4,{'recursive':!![]});}function readCacheJson(_0x46abe5){const _0x5b03fb=a195_0x2fef94,_0x1a40ef=getCachePath(_0x46abe5);if(!existsSync(_0x1a40ef))return undefined;try{const _0x31f301=readFileSync(_0x1a40ef,_0x5b03fb(0x1f9));return JSON[_0x5b03fb(0x1ea)](_0x31f301);}catch{return undefined;}}function writeCacheJson(_0xe5bddf,_0x575707){const _0x48099d=a195_0x2fef94;ensureCacheDir(),writeFileSync(getCachePath(_0xe5bddf),JSON['stringify'](_0x575707,null,0x2),_0x48099d(0x1f9));}function readCacheText(_0x444567){const _0x5c3a0b=a195_0x2fef94,_0x543c66=getCachePath(_0x444567);if(!existsSync(_0x543c66))return undefined;try{return readFileSync(_0x543c66,_0x5c3a0b(0x1f9));}catch{return undefined;}}function a195_0x4d15(){const _0x105d4e=['564xltCTO','9tHnIML','15459110smBFAr','set','4819475XOuEiU','13467Zegejt','utf-8','5122720bhycpB','\x22\x20already\x20registered\x20by\x20\x22','root','Cache\x20key\x20\x22','clear','\x22,\x20cannot\x20register\x20for\x20\x22','cwd','parse','get','164AveaKU','6506448ZLtgQY','11dfdUpm','4534222AAgsIi','6zoUSRd','1795DUgVkQ','.cache/tdx'];a195_0x4d15=function(){return _0x105d4e;};return a195_0x4d15();}function writeCacheText(_0x359ee8,_0xcba9dc){const _0x40e460=a195_0x2fef94;ensureCacheDir(),writeFileSync(getCachePath(_0x359ee8),_0xcba9dc,_0x40e460(0x1f9));}function clearCache(_0x41b3ed){const _0x221d6f=getCachePath(_0x41b3ed);if(existsSync(_0x221d6f))try{unlinkSync(_0x221d6f);}catch{}}function cacheExists(_0xf4e5cc){return existsSync(getCachePath(_0xf4e5cc));}export function createCache(_0xa4db3d,_0x38679a){return registerCacheKey(_0xa4db3d,_0x38679a),{'read':()=>readCacheJson(_0xa4db3d),'write':_0x3a3f07=>writeCacheJson(_0xa4db3d,_0x3a3f07),'clear':()=>clearCache(_0xa4db3d),'exists':()=>cacheExists(_0xa4db3d),'path':()=>getCachePath(_0xa4db3d)};}export function createTextCache(_0x4d2a17,_0xc13eda){return registerCacheKey(_0x4d2a17,_0xc13eda),{'read':()=>readCacheText(_0x4d2a17)?.['trim']()||undefined,'write':_0x2e1b5b=>writeCacheText(_0x4d2a17,_0x2e1b5b),'clear':()=>clearCache(_0x4d2a17),'exists':()=>cacheExists(_0x4d2a17),'path':()=>getCachePath(_0x4d2a17)};}export function clearRegistry(){const _0x2c1894=a195_0x2fef94;registry[_0x2c1894(0x1fe)]();}
1
+ (function(_0x370493,_0x3ffc6c){const _0x5ea40f=a198_0x4cff,_0x2d6fe8=_0x370493();while(!![]){try{const _0x1d28e1=-parseInt(_0x5ea40f(0x1f8))/0x1+-parseInt(_0x5ea40f(0x1e6))/0x2*(-parseInt(_0x5ea40f(0x1e9))/0x3)+-parseInt(_0x5ea40f(0x1f1))/0x4*(parseInt(_0x5ea40f(0x1ee))/0x5)+-parseInt(_0x5ea40f(0x1ed))/0x6*(-parseInt(_0x5ea40f(0x1e4))/0x7)+parseInt(_0x5ea40f(0x1e2))/0x8*(-parseInt(_0x5ea40f(0x1e8))/0x9)+-parseInt(_0x5ea40f(0x1f7))/0xa*(parseInt(_0x5ea40f(0x1e3))/0xb)+parseInt(_0x5ea40f(0x1f3))/0xc;if(_0x1d28e1===_0x3ffc6c)break;else _0x2d6fe8['push'](_0x2d6fe8['shift']());}catch(_0x50abb9){_0x2d6fe8['push'](_0x2d6fe8['shift']());}}}(a198_0x4de7,0xca3a3));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR='.cache/tdx',registry=new Map();function a198_0x4de7(){const _0x10b464=['parse','29783184mrIVZR','\x22,\x20cannot\x20register\x20for\x20\x22','Cache\x20key\x20\x22','set','24340MetdFl','563900zHyNAD','16RyYMyE','1012YCOPyx','2181851mNcKXn','root','6lylMVr','utf-8','6416343tKBiXx','63834eACsoR','trim','cwd','\x22\x20already\x20registered\x20by\x20\x22','18nzoNRP','690hKkjKR','get','clear','12720LFFkfM'];a198_0x4de7=function(){return _0x10b464;};return a198_0x4de7();}export function registerCacheKey(_0x39adf7,_0x141abd){const _0x1bb07c=a198_0x4cff,_0x1a670e=registry[_0x1bb07c(0x1ef)](_0x39adf7);if(_0x1a670e&&_0x1a670e!==_0x141abd)throw new Error(_0x1bb07c(0x1f5)+_0x39adf7+_0x1bb07c(0x1ec)+_0x1a670e+_0x1bb07c(0x1f4)+_0x141abd+'\x22');registry[_0x1bb07c(0x1f6)](_0x39adf7,_0x141abd);}export function getCacheDir(){const _0x3e133e=a198_0x4cff,_0x1abc3f=process[_0x3e133e(0x1eb)](),_0x920b8d=_0x1abc3f===parse(_0x1abc3f)[_0x3e133e(0x1e5)]?homedir():_0x1abc3f;return join(_0x920b8d,LOCAL_CACHE_DIR);}export function getCachePath(_0x529867){return join(getCacheDir(),_0x529867);}function ensureCacheDir(){const _0x160124=getCacheDir();!existsSync(_0x160124)&&mkdirSync(_0x160124,{'recursive':!![]});}function readCacheJson(_0x2e4d0b){const _0x2984a0=a198_0x4cff,_0x2d62f2=getCachePath(_0x2e4d0b);if(!existsSync(_0x2d62f2))return undefined;try{const _0x4a46e2=readFileSync(_0x2d62f2,'utf-8');return JSON[_0x2984a0(0x1f2)](_0x4a46e2);}catch{return undefined;}}function writeCacheJson(_0x55bd6a,_0x50cbfc){ensureCacheDir(),writeFileSync(getCachePath(_0x55bd6a),JSON['stringify'](_0x50cbfc,null,0x2),'utf-8');}function readCacheText(_0xfc49d4){const _0x9b8448=a198_0x4cff,_0x4be1fb=getCachePath(_0xfc49d4);if(!existsSync(_0x4be1fb))return undefined;try{return readFileSync(_0x4be1fb,_0x9b8448(0x1e7));}catch{return undefined;}}function writeCacheText(_0x46f816,_0x4f9528){ensureCacheDir(),writeFileSync(getCachePath(_0x46f816),_0x4f9528,'utf-8');}function clearCache(_0x5686e5){const _0x263779=getCachePath(_0x5686e5);if(existsSync(_0x263779))try{unlinkSync(_0x263779);}catch{}}function a198_0x4cff(_0x27ea91,_0xa5b434){_0x27ea91=_0x27ea91-0x1e2;const _0x4de74d=a198_0x4de7();let _0x4cff3f=_0x4de74d[_0x27ea91];return _0x4cff3f;}function cacheExists(_0x30f7d4){return existsSync(getCachePath(_0x30f7d4));}export function createCache(_0x6e8969,_0x15badb){return registerCacheKey(_0x6e8969,_0x15badb),{'read':()=>readCacheJson(_0x6e8969),'write':_0x3d26bf=>writeCacheJson(_0x6e8969,_0x3d26bf),'clear':()=>clearCache(_0x6e8969),'exists':()=>cacheExists(_0x6e8969),'path':()=>getCachePath(_0x6e8969)};}export function createTextCache(_0x4f126a,_0x31d73e){const _0x32615b=a198_0x4cff;return registerCacheKey(_0x4f126a,_0x31d73e),{'read':()=>readCacheText(_0x4f126a)?.[_0x32615b(0x1ea)]()||undefined,'write':_0x38150a=>writeCacheText(_0x4f126a,_0x38150a),'clear':()=>clearCache(_0x4f126a),'exists':()=>cacheExists(_0x4f126a),'path':()=>getCachePath(_0x4f126a)};}export function clearRegistry(){const _0x510998=a198_0x4cff;registry[_0x510998(0x1f0)]();}
@@ -1 +1 @@
1
- const a196_0x2100ef=a196_0x3c1a;function a196_0x49fe(){const _0x4b1d29=['default','message','11553fgutFO',']\x20[','chalk','29255cDZWpt','colorLevel','DEBUG','WARN','2842155UcJlXv','Chalk','blue','component','colors','34okJoFN','370860Vntfrj','401883oFIbsj','level','28ZHoPrS','format','INFO','98144aIngbQ','444uCkBiU','dim','red','57442JnmUzH','TRACE','gray','1600xrgPPt','yellow'];a196_0x49fe=function(){return _0x4b1d29;};return a196_0x49fe();}(function(_0x26a144,_0x5a0277){const _0x519ae1=a196_0x3c1a,_0x37b71b=_0x26a144();while(!![]){try{const _0x449000=parseInt(_0x519ae1(0x123))/0x1+parseInt(_0x519ae1(0x121))/0x2*(-parseInt(_0x519ae1(0x133))/0x3)+parseInt(_0x519ae1(0x122))/0x4+-parseInt(_0x519ae1(0x136))/0x5*(-parseInt(_0x519ae1(0x129))/0x6)+parseInt(_0x519ae1(0x125))/0x7*(-parseInt(_0x519ae1(0x128))/0x8)+parseInt(_0x519ae1(0x13a))/0x9+-parseInt(_0x519ae1(0x12f))/0xa*(parseInt(_0x519ae1(0x12c))/0xb);if(_0x449000===_0x5a0277)break;else _0x37b71b['push'](_0x37b71b['shift']());}catch(_0x35c5bb){_0x37b71b['push'](_0x37b71b['shift']());}}}(a196_0x49fe,0x479bc));import a196_0x24f1cd from'chalk';function a196_0x3c1a(_0x1e5e52,_0x130081){_0x1e5e52=_0x1e5e52-0x120;const _0x49fecb=a196_0x49fe();let _0x3c1a4d=_0x49fecb[_0x1e5e52];return _0x3c1a4d;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0x24f1cd,ChalkClass=chalkModule[a196_0x2100ef(0x13b)]||chalkModule[a196_0x2100ef(0x131)]?.[a196_0x2100ef(0x13b)];export class DefaultLogFormatter{[a196_0x2100ef(0x120)];['chalk'];constructor(_0x3233f9={}){const _0x4ad734=a196_0x2100ef;this[_0x4ad734(0x120)]=_0x3233f9[_0x4ad734(0x120)]??![],this[_0x4ad734(0x135)]=_0x3233f9[_0x4ad734(0x120)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x24f1cd;}[a196_0x2100ef(0x126)](_0x5cc670){const _0x2dc3ee=a196_0x2100ef,_0x2cbd9b=formatTimestamp(_0x5cc670['timestamp']),_0x2f53d8=logLevelToString(_0x5cc670[_0x2dc3ee(0x124)]);if(!this[_0x2dc3ee(0x120)])return _0x2cbd9b+'\x20['+_0x2f53d8+_0x2dc3ee(0x134)+_0x5cc670[_0x2dc3ee(0x13d)]+']\x20'+_0x5cc670[_0x2dc3ee(0x132)];const _0x1ecd37=this['chalk'][_0x2dc3ee(0x12a)](_0x2cbd9b),_0x299299=this['colorLevel'](_0x2f53d8,_0x5cc670[_0x2dc3ee(0x124)]),_0x64f294=this[_0x2dc3ee(0x135)][_0x2dc3ee(0x13c)]('['+_0x5cc670['component']+']');return _0x1ecd37+'\x20'+_0x299299+'\x20'+_0x64f294+'\x20'+_0x5cc670['message'];}[a196_0x2100ef(0x137)](_0x14e034,_0x5e2b04){const _0x1ed077=a196_0x2100ef;switch(_0x5e2b04){case LogLevel[_0x1ed077(0x12d)]:return this['chalk'][_0x1ed077(0x12e)]('['+_0x14e034+']');case LogLevel[_0x1ed077(0x138)]:return this[_0x1ed077(0x135)]['green']('['+_0x14e034+']');case LogLevel[_0x1ed077(0x127)]:return this[_0x1ed077(0x135)]['cyan']('['+_0x14e034+']');case LogLevel[_0x1ed077(0x139)]:return this[_0x1ed077(0x135)][_0x1ed077(0x130)]('['+_0x14e034+']');case LogLevel['ERROR']:return this['chalk'][_0x1ed077(0x12b)]('['+_0x14e034+']');default:return'['+_0x14e034+']';}}}
1
+ const a199_0x4aebad=a199_0x5443;function a199_0x5443(_0x48867a,_0x35b1e4){_0x48867a=_0x48867a-0x8b;const _0x65b9b4=a199_0x65b9();let _0x5443d6=_0x65b9b4[_0x48867a];return _0x5443d6;}(function(_0x85502e,_0x4d2ff2){const _0x2c580d=a199_0x5443,_0x10df76=_0x85502e();while(!![]){try{const _0x4bbece=parseInt(_0x2c580d(0x97))/0x1+parseInt(_0x2c580d(0x96))/0x2*(-parseInt(_0x2c580d(0x9b))/0x3)+-parseInt(_0x2c580d(0xa2))/0x4*(-parseInt(_0x2c580d(0x92))/0x5)+-parseInt(_0x2c580d(0xa0))/0x6+-parseInt(_0x2c580d(0x8e))/0x7+parseInt(_0x2c580d(0x98))/0x8*(parseInt(_0x2c580d(0x94))/0x9)+parseInt(_0x2c580d(0xa6))/0xa;if(_0x4bbece===_0x4d2ff2)break;else _0x10df76['push'](_0x10df76['shift']());}catch(_0x3ff8bc){_0x10df76['push'](_0x10df76['shift']());}}}(a199_0x65b9,0x5b1e8));import a199_0x185202 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a199_0x185202,ChalkClass=chalkModule[a199_0x4aebad(0x95)]||chalkModule[a199_0x4aebad(0xa3)]?.['Chalk'];function a199_0x65b9(){const _0x2f7341=['INFO','5WnbLBA','colorLevel','5954076kUTTGs','Chalk','2DipUWu','267454mkSAFI','8MAfTvx','DEBUG','green','938850ZojHkB','red',']\x20[','colors','level','4269240dqeSPk','timestamp','1140948dIZVxY','default','yellow','dim','6328540qvjdyX','TRACE','format','WARN','gray','3145765TTYXXc','chalk','message'];a199_0x65b9=function(){return _0x2f7341;};return a199_0x65b9();}export class DefaultLogFormatter{[a199_0x4aebad(0x9e)];[a199_0x4aebad(0x8f)];constructor(_0x585eeb={}){const _0x374ada=a199_0x4aebad;this[_0x374ada(0x9e)]=_0x585eeb[_0x374ada(0x9e)]??![],this[_0x374ada(0x8f)]=_0x585eeb[_0x374ada(0x9e)]&&ChalkClass?new ChalkClass({'level':0x3}):a199_0x185202;}[a199_0x4aebad(0x8b)](_0x372d93){const _0x115b12=a199_0x4aebad,_0x22e05b=formatTimestamp(_0x372d93[_0x115b12(0xa1)]),_0x1f0721=logLevelToString(_0x372d93[_0x115b12(0x9f)]);if(!this[_0x115b12(0x9e)])return _0x22e05b+'\x20['+_0x1f0721+_0x115b12(0x9d)+_0x372d93['component']+']\x20'+_0x372d93[_0x115b12(0x90)];const _0xa4eef8=this[_0x115b12(0x8f)][_0x115b12(0xa5)](_0x22e05b),_0x3f92f4=this[_0x115b12(0x93)](_0x1f0721,_0x372d93['level']),_0x3a0029=this[_0x115b12(0x8f)]['blue']('['+_0x372d93['component']+']');return _0xa4eef8+'\x20'+_0x3f92f4+'\x20'+_0x3a0029+'\x20'+_0x372d93['message'];}['colorLevel'](_0x111753,_0x18517f){const _0x10a1c5=a199_0x4aebad;switch(_0x18517f){case LogLevel[_0x10a1c5(0xa7)]:return this[_0x10a1c5(0x8f)][_0x10a1c5(0x8d)]('['+_0x111753+']');case LogLevel[_0x10a1c5(0x99)]:return this[_0x10a1c5(0x8f)][_0x10a1c5(0x9a)]('['+_0x111753+']');case LogLevel[_0x10a1c5(0x91)]:return this[_0x10a1c5(0x8f)]['cyan']('['+_0x111753+']');case LogLevel[_0x10a1c5(0x8c)]:return this[_0x10a1c5(0x8f)][_0x10a1c5(0xa4)]('['+_0x111753+']');case LogLevel['ERROR']:return this[_0x10a1c5(0x8f)][_0x10a1c5(0x9c)]('['+_0x111753+']');default:return'['+_0x111753+']';}}}
@@ -1 +1 @@
1
- function a197_0x42e5(_0x520935,_0x59f5fd){_0x520935=_0x520935-0x1c6;var _0x54bba7=a197_0x54bb();var _0x42e54e=_0x54bba7[_0x520935];return _0x42e54e;}(function(_0x19cd09,_0x52fb25){var _0x130c09=a197_0x42e5,_0x136db9=_0x19cd09();while(!![]){try{var _0x59753b=-parseInt(_0x130c09(0x1cf))/0x1*(parseInt(_0x130c09(0x1cb))/0x2)+-parseInt(_0x130c09(0x1c7))/0x3*(-parseInt(_0x130c09(0x1cc))/0x4)+parseInt(_0x130c09(0x1d0))/0x5+-parseInt(_0x130c09(0x1c8))/0x6*(-parseInt(_0x130c09(0x1c9))/0x7)+-parseInt(_0x130c09(0x1ce))/0x8*(parseInt(_0x130c09(0x1d1))/0x9)+-parseInt(_0x130c09(0x1ca))/0xa+parseInt(_0x130c09(0x1c6))/0xb*(parseInt(_0x130c09(0x1cd))/0xc);if(_0x59753b===_0x52fb25)break;else _0x136db9['push'](_0x136db9['shift']());}catch(_0x317c24){_0x136db9['push'](_0x136db9['shift']());}}}(a197_0x54bb,0x3bfdb));function a197_0x54bb(){var _0x225d28=['84wsjJkI','24bBASBp','20NwvgLD','574045PWTtQj','1448847caVCQP','178937bwyqrl','1361949iiEJac','113502xQkEfs','63brhyAd','629820lWeJcc','6126OcCrZM','4JCctWV'];a197_0x54bb=function(){return _0x225d28;};return a197_0x54bb();}export{DefaultLogFormatter}from'./default-formatter.js';
1
+ function a200_0x3f1f(){var _0x430a30=['2VQizlS','169935KfLPRA','119tMHoNQ','230zBUUmR','1632708rPXTtC','40nnlhdw','432508bpmDHu','3560328CyipxF','122771yIiWad','405020hhALbQ','120468AHnCOs'];a200_0x3f1f=function(){return _0x430a30;};return a200_0x3f1f();}function a200_0x5e65(_0x19aeb2,_0x1a458a){_0x19aeb2=_0x19aeb2-0xd9;var _0x3f1ffb=a200_0x3f1f();var _0x5e6560=_0x3f1ffb[_0x19aeb2];return _0x5e6560;}(function(_0x5159ca,_0x2e92e6){var _0x296830=a200_0x5e65,_0x3b82b6=_0x5159ca();while(!![]){try{var _0x139a38=-parseInt(_0x296830(0xe1))/0x1*(-parseInt(_0x296830(0xdb))/0x2)+-parseInt(_0x296830(0xdc))/0x3*(parseInt(_0x296830(0xe0))/0x4)+-parseInt(_0x296830(0xd9))/0x5+-parseInt(_0x296830(0xda))/0x6*(parseInt(_0x296830(0xdd))/0x7)+parseInt(_0x296830(0xe2))/0x8+parseInt(_0x296830(0xdf))/0x9+parseInt(_0x296830(0xde))/0xa*(parseInt(_0x296830(0xe3))/0xb);if(_0x139a38===_0x2e92e6)break;else _0x3b82b6['push'](_0x3b82b6['shift']());}catch(_0x5ef66e){_0x3b82b6['push'](_0x3b82b6['shift']());}}}(a200_0x3f1f,0x4fce4));export{DefaultLogFormatter}from'./default-formatter.js';
@@ -1 +1 @@
1
- const a198_0x5b84bf=a198_0x324d;(function(_0x55f71a,_0x3ba205){const _0x2fb5c9=a198_0x324d,_0x12f37c=_0x55f71a();while(!![]){try{const _0x10a189=-parseInt(_0x2fb5c9(0x97))/0x1+-parseInt(_0x2fb5c9(0xa3))/0x2+-parseInt(_0x2fb5c9(0x94))/0x3*(-parseInt(_0x2fb5c9(0x9f))/0x4)+-parseInt(_0x2fb5c9(0x9c))/0x5+parseInt(_0x2fb5c9(0x9e))/0x6+parseInt(_0x2fb5c9(0x95))/0x7*(parseInt(_0x2fb5c9(0x99))/0x8)+-parseInt(_0x2fb5c9(0x98))/0x9*(parseInt(_0x2fb5c9(0xa1))/0xa);if(_0x10a189===_0x3ba205)break;else _0x12f37c['push'](_0x12f37c['shift']());}catch(_0x12a649){_0x12f37c['push'](_0x12f37c['shift']());}}}(a198_0x1587,0x25091));function a198_0x1587(){const _0x4994be=['66870ozAOSd','minLevel','108312gGEFCX','13242QgCtEs','791mITxkd','useStderr','92125ASpfpt','99XLPfux','3688waAmSI','format','level','706810ewHnSp','colors','1573044ovMHFn','180QeYkWZ','formatter'];a198_0x1587=function(){return _0x4994be;};return a198_0x1587();}import{LogLevel as a198_0x3e3902}from'../types.js';function a198_0x324d(_0x50710b,_0x5a9803){_0x50710b=_0x50710b-0x94;const _0x158779=a198_0x1587();let _0x324d7e=_0x158779[_0x50710b];return _0x324d7e;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a198_0x5b84bf(0xa2)];['useStderr'];['formatter'];constructor(_0x284b2d={}){const _0x227f31=a198_0x5b84bf;this[_0x227f31(0xa2)]=_0x284b2d[_0x227f31(0xa2)]??a198_0x3e3902['WARN'],this[_0x227f31(0x96)]=_0x284b2d['useStderr']??!![],this[_0x227f31(0xa0)]=new DefaultLogFormatter({'colors':_0x284b2d[_0x227f31(0x9d)]??!![]});}['handle'](_0x3536d3){const _0x2162d1=a198_0x5b84bf;if(_0x3536d3[_0x2162d1(0x9b)]<this[_0x2162d1(0xa2)])return;const _0x3db405=this['formatter'][_0x2162d1(0x9a)](_0x3536d3);this[_0x2162d1(0x96)]&&_0x3536d3[_0x2162d1(0x9b)]>=a198_0x3e3902['WARN']?console['error'](_0x3db405):console['log'](_0x3db405);}}
1
+ function a201_0x1744(){const _0xeb9472=['6BDxWnp','2946820hjTkWu','1KxngII','format','2071811AVakTc','log','3372312bRiRAt','125504LUYsxX','WARN','minLevel','handle','level','9180080UGIfEN','1402545tBxkjK','formatter','useStderr','9gJjmEW','colors','1334588MdiAKQ'];a201_0x1744=function(){return _0xeb9472;};return a201_0x1744();}const a201_0x2c30a2=a201_0x3cf8;(function(_0x987700,_0x2bb151){const _0x4c8fe5=a201_0x3cf8,_0x467ee2=_0x987700();while(!![]){try{const _0x2118e6=-parseInt(_0x4c8fe5(0x1c2))/0x1*(-parseInt(_0x4c8fe5(0x1bf))/0x2)+parseInt(_0x4c8fe5(0x1cd))/0x3+parseInt(_0x4c8fe5(0x1c7))/0x4+-parseInt(_0x4c8fe5(0x1c1))/0x5+-parseInt(_0x4c8fe5(0x1c0))/0x6*(-parseInt(_0x4c8fe5(0x1c4))/0x7)+-parseInt(_0x4c8fe5(0x1c6))/0x8*(-parseInt(_0x4c8fe5(0x1d0))/0x9)+-parseInt(_0x4c8fe5(0x1cc))/0xa;if(_0x2118e6===_0x2bb151)break;else _0x467ee2['push'](_0x467ee2['shift']());}catch(_0x47fc3c){_0x467ee2['push'](_0x467ee2['shift']());}}}(a201_0x1744,0x5be05));import{LogLevel as a201_0x21845e}from'../types.js';function a201_0x3cf8(_0x330b0c,_0x1489d5){_0x330b0c=_0x330b0c-0x1bf;const _0x1744f1=a201_0x1744();let _0x3cf839=_0x1744f1[_0x330b0c];return _0x3cf839;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a201_0x2c30a2(0x1c9)];[a201_0x2c30a2(0x1cf)];['formatter'];constructor(_0x3cc97c={}){const _0x24bf20=a201_0x2c30a2;this[_0x24bf20(0x1c9)]=_0x3cc97c[_0x24bf20(0x1c9)]??a201_0x21845e['WARN'],this[_0x24bf20(0x1cf)]=_0x3cc97c[_0x24bf20(0x1cf)]??!![],this[_0x24bf20(0x1ce)]=new DefaultLogFormatter({'colors':_0x3cc97c[_0x24bf20(0x1d1)]??!![]});}[a201_0x2c30a2(0x1ca)](_0x46a53b){const _0x257b3f=a201_0x2c30a2;if(_0x46a53b[_0x257b3f(0x1cb)]<this[_0x257b3f(0x1c9)])return;const _0x1f5352=this[_0x257b3f(0x1ce)][_0x257b3f(0x1c3)](_0x46a53b);this[_0x257b3f(0x1cf)]&&_0x46a53b['level']>=a201_0x21845e[_0x257b3f(0x1c8)]?console['error'](_0x1f5352):console[_0x257b3f(0x1c5)](_0x1f5352);}}
@@ -1 +1 @@
1
- const a199_0x44f650=a199_0x3302;(function(_0x42c65c,_0x4f286f){const _0x41f163=a199_0x3302,_0x42931d=_0x42c65c();while(!![]){try{const _0x3534c5=-parseInt(_0x41f163(0x138))/0x1*(parseInt(_0x41f163(0x135))/0x2)+-parseInt(_0x41f163(0x11e))/0x3*(-parseInt(_0x41f163(0x139))/0x4)+-parseInt(_0x41f163(0x124))/0x5*(parseInt(_0x41f163(0x129))/0x6)+parseInt(_0x41f163(0x11f))/0x7+-parseInt(_0x41f163(0x12b))/0x8*(-parseInt(_0x41f163(0x11d))/0x9)+parseInt(_0x41f163(0x118))/0xa+parseInt(_0x41f163(0x11a))/0xb*(parseInt(_0x41f163(0x126))/0xc);if(_0x3534c5===_0x4f286f)break;else _0x42931d['push'](_0x42931d['shift']());}catch(_0x3023d1){_0x42931d['push'](_0x42931d['shift']());}}}(a199_0x4e46,0x98933));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';function a199_0x3302(_0x246937,_0x20d1b6){_0x246937=_0x246937-0x114;const _0x4e46a9=a199_0x4e46();let _0x330252=_0x4e46a9[_0x246937];return _0x330252;}import{pipeline}from'stream/promises';function a199_0x4e46(){const _0x11abb8=['-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','1003079jexIyI','split','rotate','2061msuZjh','26709aQMqoP','4597026RzUDff','toISOString','logFileName','getLogPath','logStream','5219255YvrVSA','logBaseName','12fcHwVm','logPath','logDir','6NXytBH','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','6560yFZMBh','test','replace','error','message','write','.log','Warning:\x20Failed\x20to\x20compress\x20','filter','mtime','10ZUuqwC','logs','handle','136167iwOOLN','444wuPKyK','Warning:\x20Error\x20writing\x20to\x20','includes','rotateOldLogs','filePath','4257130qzNXnb'];a199_0x4e46=function(){return _0x11abb8;};return a199_0x4e46();}import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a199_0x44f650(0x127)];[a199_0x44f650(0x128)];[a199_0x44f650(0x121)];[a199_0x44f650(0x125)];[a199_0x44f650(0x123)]=null;[a199_0x44f650(0x11c)];constructor(_0x57dd05={}){const _0x410aae=a199_0x44f650;this[_0x410aae(0x127)]=_0x57dd05[_0x410aae(0x117)]??join(getGlobalCacheDir(),_0x410aae(0x136),'tdx.log'),this[_0x410aae(0x128)]=dirname(this[_0x410aae(0x127)]),this['logFileName']=basename(this[_0x410aae(0x127)]),this[_0x410aae(0x125)]=this[_0x410aae(0x121)][_0x410aae(0x12d)](/\.log$/,''),this[_0x410aae(0x11c)]=_0x57dd05[_0x410aae(0x11c)]??!![];}async['init'](){const _0x36c636=a199_0x44f650;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x36c636(0x11c)]&&await this[_0x36c636(0x116)](),this['logStream']=createWriteStream(this[_0x36c636(0x127)],{'flags':'a'}),this[_0x36c636(0x123)]['on'](_0x36c636(0x12e),_0x5695b2=>{const _0x15e68d=_0x36c636;console[_0x15e68d(0x12e)](_0x15e68d(0x114)+this[_0x15e68d(0x121)]+':',_0x5695b2[_0x15e68d(0x12f)]);});}catch(_0x21007f){console['error'](_0x36c636(0x12a),_0x21007f);}}[a199_0x44f650(0x137)](_0x36d559){const _0x2370ed=a199_0x44f650;if(!this['logStream'])return;const _0x5f07a0=Logger['format'](_0x36d559);this[_0x2370ed(0x123)][_0x2370ed(0x130)](_0x5f07a0+'\x0a');}async['close'](){return new Promise(_0x466f28=>{const _0x1410de=a199_0x3302;this[_0x1410de(0x123)]?this[_0x1410de(0x123)]['end'](()=>{const _0x2677fe=_0x1410de;this[_0x2677fe(0x123)]=null,_0x466f28();}):_0x466f28();});}[a199_0x44f650(0x122)](){const _0x29e045=a199_0x44f650;return this[_0x29e045(0x127)];}async[a199_0x44f650(0x116)](){const _0x5181f8=a199_0x44f650;try{const _0x10e951=await readdir(this[_0x5181f8(0x128)]),_0x481ed4=new Date()['toISOString']()[_0x5181f8(0x11b)]('T')[0x0];if(_0x10e951[_0x5181f8(0x115)](this[_0x5181f8(0x121)])){const _0x13fbb0=join(this['logDir'],this[_0x5181f8(0x121)]),_0x24ca52=await stat(_0x13fbb0),_0x246125=new Date(_0x24ca52[_0x5181f8(0x134)])[_0x5181f8(0x120)]()[_0x5181f8(0x11b)]('T')[0x0];if(_0x246125<_0x481ed4){const _0x1558fc=join(this[_0x5181f8(0x128)],this[_0x5181f8(0x125)]+'-'+_0x246125+_0x5181f8(0x131));await rename(_0x13fbb0,_0x1558fc);}}const _0x3ef9b7=await readdir(this[_0x5181f8(0x128)]),_0x2ebe7d=this[_0x5181f8(0x125)][_0x5181f8(0x12d)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x284e61=new RegExp('^'+_0x2ebe7d+_0x5181f8(0x119)),_0x32df71=_0x3ef9b7[_0x5181f8(0x133)](_0x39ffe5=>_0x284e61[_0x5181f8(0x12c)](_0x39ffe5));for(const _0x1f5108 of _0x32df71){const _0x516c3e=join(this[_0x5181f8(0x128)],_0x1f5108),_0x2df105=join(this[_0x5181f8(0x128)],_0x1f5108+'.gz');try{await pipeline(createReadStream(_0x516c3e),createGzip(),createWriteStream(_0x2df105)),await unlink(_0x516c3e);}catch(_0x1485e8){console[_0x5181f8(0x12e)](_0x5181f8(0x132)+_0x1f5108+':',_0x1485e8);}}}catch{}}}
1
+ const a202_0x5c6283=a202_0x3b1e;(function(_0x1fde81,_0x4d303c){const _0x14acb0=a202_0x3b1e,_0xe4a104=_0x1fde81();while(!![]){try{const _0x2db5b1=parseInt(_0x14acb0(0xb5))/0x1*(-parseInt(_0x14acb0(0xb7))/0x2)+-parseInt(_0x14acb0(0xac))/0x3*(-parseInt(_0x14acb0(0xba))/0x4)+parseInt(_0x14acb0(0xb0))/0x5+parseInt(_0x14acb0(0xb9))/0x6*(-parseInt(_0x14acb0(0xbc))/0x7)+-parseInt(_0x14acb0(0xbf))/0x8+-parseInt(_0x14acb0(0xa4))/0x9+parseInt(_0x14acb0(0xa8))/0xa;if(_0x2db5b1===_0x4d303c)break;else _0xe4a104['push'](_0xe4a104['shift']());}catch(_0x53a254){_0xe4a104['push'](_0xe4a104['shift']());}}}(a202_0xa0c9,0xdf960));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a202_0xa0c9(){const _0x27ef15=['logBaseName','mtime','init','message','2593lJsmOX','rotateOldLogs','806ULtbJS','logPath','36RJaKgw','51120fEtPfr','logStream','2036923iyftKE','.log','Warning:\x20Error\x20writing\x20to\x20','2422048hnvokg','error','logDir','format','tdx.log','filter','includes','split','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','12652803AQPAqM','toISOString','filePath','replace','35269470ToPprH','end','logFileName','.gz','51rJmwSk','test','rotate','logs','8355685beaRyD'];a202_0xa0c9=function(){return _0x27ef15;};return a202_0xa0c9();}import{join,dirname,basename}from'path';function a202_0x3b1e(_0x5d1206,_0x55ef4c){_0x5d1206=_0x5d1206-0xa4;const _0xa0c9fc=a202_0xa0c9();let _0x3b1e94=_0xa0c9fc[_0x5d1206];return _0x3b1e94;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a202_0x5c6283(0xc1)];[a202_0x5c6283(0xaa)];[a202_0x5c6283(0xb1)];[a202_0x5c6283(0xbb)]=null;[a202_0x5c6283(0xae)];constructor(_0x5f1d7f={}){const _0x1e331b=a202_0x5c6283;this[_0x1e331b(0xb8)]=_0x5f1d7f[_0x1e331b(0xa6)]??join(getGlobalCacheDir(),_0x1e331b(0xaf),_0x1e331b(0xc3)),this[_0x1e331b(0xc1)]=dirname(this[_0x1e331b(0xb8)]),this[_0x1e331b(0xaa)]=basename(this[_0x1e331b(0xb8)]),this[_0x1e331b(0xb1)]=this['logFileName'][_0x1e331b(0xa7)](/\.log$/,''),this[_0x1e331b(0xae)]=_0x5f1d7f[_0x1e331b(0xae)]??!![];}async[a202_0x5c6283(0xb3)](){const _0x2c7346=a202_0x5c6283;try{await mkdir(this[_0x2c7346(0xc1)],{'recursive':!![]}),this[_0x2c7346(0xae)]&&await this[_0x2c7346(0xb6)](),this[_0x2c7346(0xbb)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x2c7346(0xbb)]['on']('error',_0x569637=>{const _0x2e438f=_0x2c7346;console[_0x2e438f(0xc0)](_0x2e438f(0xbe)+this[_0x2e438f(0xaa)]+':',_0x569637[_0x2e438f(0xb4)]);});}catch(_0xf8a722){console[_0x2c7346(0xc0)](_0x2c7346(0xc7),_0xf8a722);}}['handle'](_0x553228){const _0x4a66e2=a202_0x5c6283;if(!this[_0x4a66e2(0xbb)])return;const _0x3fc8f5=Logger[_0x4a66e2(0xc2)](_0x553228);this[_0x4a66e2(0xbb)]['write'](_0x3fc8f5+'\x0a');}async['close'](){return new Promise(_0x14fb0f=>{const _0x3eac04=a202_0x3b1e;this[_0x3eac04(0xbb)]?this[_0x3eac04(0xbb)][_0x3eac04(0xa9)](()=>{const _0x3be95c=_0x3eac04;this[_0x3be95c(0xbb)]=null,_0x14fb0f();}):_0x14fb0f();});}['getLogPath'](){const _0x794491=a202_0x5c6283;return this[_0x794491(0xb8)];}async[a202_0x5c6283(0xb6)](){const _0x35000a=a202_0x5c6283;try{const _0x305f17=await readdir(this[_0x35000a(0xc1)]),_0x24341e=new Date()[_0x35000a(0xa5)]()[_0x35000a(0xc6)]('T')[0x0];if(_0x305f17[_0x35000a(0xc5)](this['logFileName'])){const _0x484403=join(this[_0x35000a(0xc1)],this[_0x35000a(0xaa)]),_0x2ddd7e=await stat(_0x484403),_0x5eb99b=new Date(_0x2ddd7e[_0x35000a(0xb2)])[_0x35000a(0xa5)]()['split']('T')[0x0];if(_0x5eb99b<_0x24341e){const _0x6818da=join(this['logDir'],this[_0x35000a(0xb1)]+'-'+_0x5eb99b+_0x35000a(0xbd));await rename(_0x484403,_0x6818da);}}const _0x4ff2e5=await readdir(this['logDir']),_0xc40ed6=this[_0x35000a(0xb1)][_0x35000a(0xa7)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x56f4dc=new RegExp('^'+_0xc40ed6+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x117c7b=_0x4ff2e5[_0x35000a(0xc4)](_0x3168e0=>_0x56f4dc[_0x35000a(0xad)](_0x3168e0));for(const _0xbb6849 of _0x117c7b){const _0x5b85ea=join(this[_0x35000a(0xc1)],_0xbb6849),_0x58b7cd=join(this['logDir'],_0xbb6849+_0x35000a(0xab));try{await pipeline(createReadStream(_0x5b85ea),createGzip(),createWriteStream(_0x58b7cd)),await unlink(_0x5b85ea);}catch(_0x3cbca2){console[_0x35000a(0xc0)]('Warning:\x20Failed\x20to\x20compress\x20'+_0xbb6849+':',_0x3cbca2);}}}catch{}}}
@@ -1 +1 @@
1
- function a200_0x4cef(){var _0x3fc51b=['5CRpSTu','2266602jyAftB','21aYuEHs','2XUsJKj','2608330WWTZin','3696093knAhhc','11cRkJfv','3886648JDOpJR','532304NRXsbm','5998077uYrUUZ','220104bsmBTR'];a200_0x4cef=function(){return _0x3fc51b;};return a200_0x4cef();}(function(_0x30ed2a,_0x4ee843){var _0x28a3c5=a200_0x4293,_0x11b735=_0x30ed2a();while(!![]){try{var _0x110151=parseInt(_0x28a3c5(0x13f))/0x1+-parseInt(_0x28a3c5(0x13a))/0x2*(-parseInt(_0x28a3c5(0x13c))/0x3)+-parseInt(_0x28a3c5(0x136))/0x4*(parseInt(_0x28a3c5(0x137))/0x5)+-parseInt(_0x28a3c5(0x138))/0x6*(parseInt(_0x28a3c5(0x139))/0x7)+parseInt(_0x28a3c5(0x13e))/0x8+-parseInt(_0x28a3c5(0x135))/0x9+-parseInt(_0x28a3c5(0x13b))/0xa*(-parseInt(_0x28a3c5(0x13d))/0xb);if(_0x110151===_0x4ee843)break;else _0x11b735['push'](_0x11b735['shift']());}catch(_0x3d4b63){_0x11b735['push'](_0x11b735['shift']());}}}(a200_0x4cef,0xa035b));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a200_0x4293(_0x447eb8,_0x1fe6d0){_0x447eb8=_0x447eb8-0x135;var _0x4cefda=a200_0x4cef();var _0x4293c9=_0x4cefda[_0x447eb8];return _0x4293c9;}export{NullHandler}from'./null-handler.js';
1
+ function a203_0x3358(_0x771213,_0x2cba59){_0x771213=_0x771213-0xce;var _0x592415=a203_0x5924();var _0x33589b=_0x592415[_0x771213];return _0x33589b;}(function(_0x5ebf15,_0x2283c0){var _0x26fd76=a203_0x3358,_0x14e696=_0x5ebf15();while(!![]){try{var _0x2f6828=parseInt(_0x26fd76(0xd6))/0x1*(-parseInt(_0x26fd76(0xd8))/0x2)+parseInt(_0x26fd76(0xd4))/0x3*(-parseInt(_0x26fd76(0xd0))/0x4)+parseInt(_0x26fd76(0xd1))/0x5+parseInt(_0x26fd76(0xd2))/0x6+-parseInt(_0x26fd76(0xd5))/0x7*(parseInt(_0x26fd76(0xd3))/0x8)+-parseInt(_0x26fd76(0xcf))/0x9+parseInt(_0x26fd76(0xce))/0xa*(parseInt(_0x26fd76(0xd7))/0xb);if(_0x2f6828===_0x2283c0)break;else _0x14e696['push'](_0x14e696['shift']());}catch(_0x27851a){_0x14e696['push'](_0x14e696['shift']());}}}(a203_0x5924,0x4e5b2));function a203_0x5924(){var _0x17b4a5=['983048ExsMMf','174QAKngE','21gfcxrl','640821MrOUYD','121qNNkXB','2TmZShe','1129810CFgWFo','880317NTromI','17184VxHoDF','666005OlfQfO','1808394yYYXYj'];a203_0x5924=function(){return _0x17b4a5;};return a203_0x5924();}export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- function a201_0x2105(){var _0x10967b=['911820HJzQAc','2952184KNSlON','1066632lUPzcq','4814IROuPb','10EqtkVq','2316645EjEQaQ','35kEuibo','250sNWqRe','128884iOLufd','8372187jMNvYe'];a201_0x2105=function(){return _0x10967b;};return a201_0x2105();}(function(_0x2d0a19,_0xc8618c){var _0x128924=a201_0x2b9c,_0x8edd57=_0x2d0a19();while(!![]){try{var _0x547fd4=-parseInt(_0x128924(0x168))/0x1*(parseInt(_0x128924(0x16e))/0x2)+parseInt(_0x128924(0x16d))/0x3+-parseInt(_0x128924(0x169))/0x4+parseInt(_0x128924(0x166))/0x5+-parseInt(_0x128924(0x16b))/0x6*(-parseInt(_0x128924(0x167))/0x7)+parseInt(_0x128924(0x16c))/0x8+-parseInt(_0x128924(0x16a))/0x9*(parseInt(_0x128924(0x165))/0xa);if(_0x547fd4===_0xc8618c)break;else _0x8edd57['push'](_0x8edd57['shift']());}catch(_0x674d49){_0x8edd57['push'](_0x8edd57['shift']());}}}(a201_0x2105,0x5da2c));function a201_0x2b9c(_0x1ac33d,_0x3c9fde){_0x1ac33d=_0x1ac33d-0x165;var _0x21052a=a201_0x2105();var _0x2b9ce1=_0x21052a[_0x1ac33d];return _0x2b9ce1;}export class NullHandler{['handle'](_0x274f07){}}
1
+ (function(_0x29a19c,_0x57f71a){var _0x485f60=a204_0x55f2,_0x2a2de8=_0x29a19c();while(!![]){try{var _0x25e75e=-parseInt(_0x485f60(0x18c))/0x1+parseInt(_0x485f60(0x187))/0x2+parseInt(_0x485f60(0x18b))/0x3*(parseInt(_0x485f60(0x188))/0x4)+-parseInt(_0x485f60(0x18a))/0x5+-parseInt(_0x485f60(0x185))/0x6*(-parseInt(_0x485f60(0x18d))/0x7)+-parseInt(_0x485f60(0x189))/0x8*(parseInt(_0x485f60(0x186))/0x9)+parseInt(_0x485f60(0x18e))/0xa;if(_0x25e75e===_0x57f71a)break;else _0x2a2de8['push'](_0x2a2de8['shift']());}catch(_0x9938eb){_0x2a2de8['push'](_0x2a2de8['shift']());}}}(a204_0x4c6d,0xd0d5f));function a204_0x55f2(_0x2ea5a6,_0x2a854d){_0x2ea5a6=_0x2ea5a6-0x185;var _0x4c6de4=a204_0x4c6d();var _0x55f27b=_0x4c6de4[_0x2ea5a6];return _0x55f27b;}export class NullHandler{['handle'](_0x26f9d1){}}function a204_0x4c6d(){var _0x4a73c4=['14136ujoVlf','1901435YqLogY','1338hKBUwJ','977520KPaIww','6424985ugnfGP','8307280mRoJLN','6ZNYtTW','5931PLKUtK','176276zZBCCE','13820gEcOxF'];a204_0x4c6d=function(){return _0x4a73c4;};return a204_0x4c6d();}
@@ -1 +1 @@
1
- (function(_0x2dcc52,_0x2083dc){var _0x1dedf5=a202_0xb4c6,_0x1575db=_0x2dcc52();while(!![]){try{var _0x4677b3=parseInt(_0x1dedf5(0x19b))/0x1*(parseInt(_0x1dedf5(0x195))/0x2)+parseInt(_0x1dedf5(0x196))/0x3+-parseInt(_0x1dedf5(0x190))/0x4+-parseInt(_0x1dedf5(0x194))/0x5*(-parseInt(_0x1dedf5(0x192))/0x6)+-parseInt(_0x1dedf5(0x19a))/0x7*(parseInt(_0x1dedf5(0x198))/0x8)+-parseInt(_0x1dedf5(0x193))/0x9*(-parseInt(_0x1dedf5(0x191))/0xa)+-parseInt(_0x1dedf5(0x197))/0xb*(parseInt(_0x1dedf5(0x199))/0xc);if(_0x4677b3===_0x2083dc)break;else _0x1575db['push'](_0x1575db['shift']());}catch(_0x4cd0dc){_0x1575db['push'](_0x1575db['shift']());}}}(a202_0x551d,0x6b1bb));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a202_0x551d(){var _0xee5174=['2004QgJAfi','7yedDUD','2779BpSNvu','698120LHEJBq','10IGWEQO','6xUzWni','5271219DePifr','308380EksJyN','472gAeHNq','998574uqKNqP','32087NBlLFO','4285480SelUEL'];a202_0x551d=function(){return _0xee5174;};return a202_0x551d();}function a202_0xb4c6(_0x3c3cfa,_0x35f17b){_0x3c3cfa=_0x3c3cfa-0x190;var _0x551d8a=a202_0x551d();var _0xb4c637=_0x551d8a[_0x3c3cfa];return _0xb4c637;}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x32e8bd,_0x4c5edc){var _0x3d06cf=a205_0x2216,_0x715761=_0x32e8bd();while(!![]){try{var _0x417186=parseInt(_0x3d06cf(0x18b))/0x1*(-parseInt(_0x3d06cf(0x191))/0x2)+parseInt(_0x3d06cf(0x190))/0x3+parseInt(_0x3d06cf(0x18a))/0x4+parseInt(_0x3d06cf(0x194))/0x5*(-parseInt(_0x3d06cf(0x18f))/0x6)+-parseInt(_0x3d06cf(0x18d))/0x7+parseInt(_0x3d06cf(0x193))/0x8*(-parseInt(_0x3d06cf(0x18e))/0x9)+parseInt(_0x3d06cf(0x18c))/0xa*(parseInt(_0x3d06cf(0x192))/0xb);if(_0x417186===_0x4c5edc)break;else _0x715761['push'](_0x715761['shift']());}catch(_0x1eb4b5){_0x715761['push'](_0x715761['shift']());}}}(a205_0x11e1,0xa2086));function a205_0x2216(_0x4a4326,_0x2422dc){_0x4a4326=_0x4a4326-0x18a;var _0x11e1db=a205_0x11e1();var _0x2216b6=_0x11e1db[_0x4a4326];return _0x2216b6;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';function a205_0x11e1(){var _0x21e04f=['2ZpgBgB','28346320RFzymb','1196895RxjVzT','763488SSNVQi','51126nOeInc','3064896aJLBmV','1005506DwkPmB','11uIjgJX','104RxQIsQ','680KTiwjj','982340JUqhfH'];a205_0x11e1=function(){return _0x21e04f;};return a205_0x11e1();}