@treasuredata/tdx 2026.6.1 → 2026.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/engage-template-pull-command.js +1 -1
  28. package/dist/commands/engage-template-push-command.js +1 -1
  29. package/dist/commands/engage-template-validate-command.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/journey-command.js +1 -1
  32. package/dist/commands/journey-validate-command.js +1 -1
  33. package/dist/commands/llm-command.js +1 -1
  34. package/dist/commands/mcp-command.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/policy-command.js +1 -1
  37. package/dist/commands/profile-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/schedule-command.js +1 -1
  41. package/dist/commands/segment-command.js +1 -1
  42. package/dist/commands/segment-create-command.js +1 -1
  43. package/dist/commands/segment-fields-command.js +1 -1
  44. package/dist/commands/segment-pull-command.js +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-update-command.js +1 -1
  47. package/dist/commands/segment-use-command.js +1 -1
  48. package/dist/commands/segment-validate-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/status-command.js +1 -1
  52. package/dist/commands/table-deleted.js +1 -1
  53. package/dist/commands/tables.js +1 -1
  54. package/dist/commands/unset-command.js +1 -1
  55. package/dist/commands/upgrade-command.js +1 -1
  56. package/dist/commands/use-command.js +1 -1
  57. package/dist/commands/user-command.js +1 -1
  58. package/dist/commands/work-command.js +1 -1
  59. package/dist/commands/workflow-command.d.ts +2 -2
  60. package/dist/commands/workflow-command.d.ts.map +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/commands/workflow-command.js.map +1 -1
  63. package/dist/core/auth.js +1 -1
  64. package/dist/core/command-output.js +1 -1
  65. package/dist/core/config.js +1 -1
  66. package/dist/core/connection-cache.js +1 -1
  67. package/dist/core/constants.js +1 -1
  68. package/dist/core/credential-cache.js +1 -1
  69. package/dist/core/global-context.js +1 -1
  70. package/dist/core/keychain.js +1 -1
  71. package/dist/core/oauth-keychain.js +1 -1
  72. package/dist/core/oauth.js +1 -1
  73. package/dist/core/profile.js +1 -1
  74. package/dist/core/project-config.js +1 -1
  75. package/dist/core/session.js +1 -1
  76. package/dist/core/user-cache.js +1 -1
  77. package/dist/core/version.js +1 -1
  78. package/dist/index.js +1 -1
  79. package/dist/mcp/server.js +1 -1
  80. package/dist/mcp/tools/index.js +1 -1
  81. package/dist/mcp/tools/tdx-run.js +1 -1
  82. package/dist/mcp/tools/tdx-search.js +1 -1
  83. package/dist/mcp/tools/work-create-item.js +1 -1
  84. package/dist/mcp/utils.js +1 -1
  85. package/dist/proxy/claude-usage-tracker.js +1 -1
  86. package/dist/proxy/passthrough-server.js +1 -1
  87. package/dist/proxy/sse-usage-parser.js +1 -1
  88. package/dist/sdk/agent/agent-config.js +1 -1
  89. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  90. package/dist/sdk/agent/agent-yaml.js +1 -1
  91. package/dist/sdk/agent/test/evaluator.js +1 -1
  92. package/dist/sdk/agent/test/executor.js +1 -1
  93. package/dist/sdk/agent/test/index.js +1 -1
  94. package/dist/sdk/agent/test/output.js +1 -1
  95. package/dist/sdk/agent/test/parser.js +1 -1
  96. package/dist/sdk/agent/tool-target-registry.js +1 -1
  97. package/dist/sdk/api.js +1 -1
  98. package/dist/sdk/cas/cas-api-client.js +1 -1
  99. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  100. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  101. package/dist/sdk/cas/index.js +1 -1
  102. package/dist/sdk/cas/pull-workflow.js +1 -1
  103. package/dist/sdk/cas/push-workflow.js +1 -1
  104. package/dist/sdk/client/cdp-api-client.js +1 -1
  105. package/dist/sdk/client/delivery-api-client.js +1 -1
  106. package/dist/sdk/client/endpoints.js +1 -1
  107. package/dist/sdk/client/engage-api-client.js +1 -1
  108. package/dist/sdk/client/http-client.js +1 -1
  109. package/dist/sdk/client/llm-api-client.js +1 -1
  110. package/dist/sdk/client/oauth-refresh.js +1 -1
  111. package/dist/sdk/client/rate-limiter.js +1 -1
  112. package/dist/sdk/client/td-api-client.js +1 -1
  113. package/dist/sdk/client/trino-api-client.js +1 -1
  114. package/dist/sdk/client/workflow-client.d.ts +23 -1
  115. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  116. package/dist/sdk/client/workflow-client.js +1 -1
  117. package/dist/sdk/client/workflow-client.js.map +1 -1
  118. package/dist/sdk/connection-validator.js +1 -1
  119. package/dist/sdk/connection.js +1 -1
  120. package/dist/sdk/delivery.js +1 -1
  121. package/dist/sdk/engage/campaign-pull.js +1 -1
  122. package/dist/sdk/engage/campaign-push.js +1 -1
  123. package/dist/sdk/engage/campaign-validator.js +1 -1
  124. package/dist/sdk/engage/campaign-yaml.js +1 -1
  125. package/dist/sdk/engage/template-pull.js +1 -1
  126. package/dist/sdk/engage/template-push.js +1 -1
  127. package/dist/sdk/engage/template-validator.js +1 -1
  128. package/dist/sdk/engage/template-yaml.js +1 -1
  129. package/dist/sdk/engage/types/campaign-def.js +1 -1
  130. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  131. package/dist/sdk/engage/types/template-schema.js +1 -1
  132. package/dist/sdk/engage.js +1 -1
  133. package/dist/sdk/errors.js +1 -1
  134. package/dist/sdk/index.js +1 -1
  135. package/dist/sdk/io/index.js +1 -1
  136. package/dist/sdk/io/node-filesystem.js +1 -1
  137. package/dist/sdk/job.js +1 -1
  138. package/dist/sdk/journey.js +1 -1
  139. package/dist/sdk/llm/chat-cache.js +1 -1
  140. package/dist/sdk/llm/index.js +1 -1
  141. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  142. package/dist/sdk/llm/model-factors.js +1 -1
  143. package/dist/sdk/llm/user-settings.js +1 -1
  144. package/dist/sdk/personalization.js +1 -1
  145. package/dist/sdk/policy.js +1 -1
  146. package/dist/sdk/query/deleted-table-validation.js +1 -1
  147. package/dist/sdk/query/index.js +1 -1
  148. package/dist/sdk/query/sql-parser.js +1 -1
  149. package/dist/sdk/realtime.js +1 -1
  150. package/dist/sdk/schedule.js +1 -1
  151. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  152. package/dist/sdk/segment/fields-display.js +1 -1
  153. package/dist/sdk/segment/file-discovery.js +1 -1
  154. package/dist/sdk/segment/journey-utils.js +1 -1
  155. package/dist/sdk/segment/journey-validator.js +1 -1
  156. package/dist/sdk/segment/journey-yaml.js +1 -1
  157. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  158. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  159. package/dist/sdk/segment/pull-workflow.js +1 -1
  160. package/dist/sdk/segment/push-recovery.js +1 -1
  161. package/dist/sdk/segment/push-workflow.js +1 -1
  162. package/dist/sdk/segment/resolution-context.js +1 -1
  163. package/dist/sdk/segment/segment-path-parser.js +1 -1
  164. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  165. package/dist/sdk/segment/segment-validator.js +1 -1
  166. package/dist/sdk/segment/target-resolution.js +1 -1
  167. package/dist/sdk/segment/tdx-config.js +1 -1
  168. package/dist/sdk/segment/types/activation-schema.js +1 -1
  169. package/dist/sdk/segment/types/journey-def.js +1 -1
  170. package/dist/sdk/segment/types/journey-schema.js +1 -1
  171. package/dist/sdk/segment/types/segment-def.js +1 -1
  172. package/dist/sdk/segment/types/segment-schema.js +1 -1
  173. package/dist/sdk/segment/validate-files.js +1 -1
  174. package/dist/sdk/segment/yaml-validator.js +1 -1
  175. package/dist/sdk/segment.js +1 -1
  176. package/dist/sdk/types/index.js +1 -1
  177. package/dist/sdk/types/progress.js +1 -1
  178. package/dist/sdk/types/workflow.d.ts +1 -1
  179. package/dist/sdk/types/workflow.d.ts.map +1 -1
  180. package/dist/sdk/types/workspace.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.d.ts +23 -2
  190. package/dist/sdk/workflow/index.d.ts.map +1 -1
  191. package/dist/sdk/workflow/index.js +1 -1
  192. package/dist/sdk/workflow/index.js.map +1 -1
  193. package/dist/sdk/workflow/pull-workflow.js +1 -1
  194. package/dist/sdk/workflow/push-workflow.d.ts +4 -0
  195. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
  196. package/dist/sdk/workflow/push-workflow.js +1 -1
  197. package/dist/sdk/workflow/push-workflow.js.map +1 -1
  198. package/dist/sdk/workflow/task-graph.js +1 -1
  199. package/dist/sdk/workflow/tdx-config.js +1 -1
  200. package/dist/sdk/workflow/workflow-utils.js +1 -1
  201. package/dist/sdk/workspace/access-tracker.js +1 -1
  202. package/dist/sdk/workspace/frontmatter.js +1 -1
  203. package/dist/sdk/workspace/git.js +1 -1
  204. package/dist/sdk/workspace/index.js +1 -1
  205. package/dist/sdk/workspace/templates.js +1 -1
  206. package/dist/sdk/workspace/weekly.js +1 -1
  207. package/dist/sdk/workspace/wikilinks.js +1 -1
  208. package/dist/test-utils/command-runner.js +1 -1
  209. package/dist/test-utils/factories.js +1 -1
  210. package/dist/test-utils/fixtures.js +1 -1
  211. package/dist/test-utils/http-mock.js +1 -1
  212. package/dist/test-utils/index.js +1 -1
  213. package/dist/utils/async.js +1 -1
  214. package/dist/utils/colors.js +1 -1
  215. package/dist/utils/diff.js +1 -1
  216. package/dist/utils/file-permissions.js +1 -1
  217. package/dist/utils/file-reader.js +1 -1
  218. package/dist/utils/github-releases.js +1 -1
  219. package/dist/utils/global-cache.js +1 -1
  220. package/dist/utils/json-loader.js +1 -1
  221. package/dist/utils/local-cache.js +1 -1
  222. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  223. package/dist/utils/logger/formatters/index.js +1 -1
  224. package/dist/utils/logger/handlers/console-handler.js +1 -1
  225. package/dist/utils/logger/handlers/file-handler.js +1 -1
  226. package/dist/utils/logger/handlers/index.js +1 -1
  227. package/dist/utils/logger/handlers/null-handler.js +1 -1
  228. package/dist/utils/logger/index.js +1 -1
  229. package/dist/utils/logger/logger.js +1 -1
  230. package/dist/utils/logger/types.js +1 -1
  231. package/dist/utils/option-validation.js +1 -1
  232. package/dist/utils/process.js +1 -1
  233. package/dist/utils/prompt.js +1 -1
  234. package/dist/utils/spinner.js +1 -1
  235. package/dist/utils/sse-parser.js +1 -1
  236. package/dist/utils/string-utils.js +1 -1
  237. package/dist/utils/table-ref-parser.js +1 -1
  238. package/dist/utils/tdx-logger.js +1 -1
  239. package/dist/utils/version-check.js +1 -1
  240. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x4d2aa1,_0x115212){const _0x316a4c=a219_0x99b9,_0x1e6162=_0x4d2aa1();while(!![]){try{const _0x56c0a0=parseInt(_0x316a4c(0x1b5))/0x1+parseInt(_0x316a4c(0x1b4))/0x2+-parseInt(_0x316a4c(0x1b3))/0x3*(-parseInt(_0x316a4c(0x1b0))/0x4)+parseInt(_0x316a4c(0x1bc))/0x5+parseInt(_0x316a4c(0x1c1))/0x6*(parseInt(_0x316a4c(0x1c3))/0x7)+parseInt(_0x316a4c(0x1bf))/0x8*(-parseInt(_0x316a4c(0x1ba))/0x9)+-parseInt(_0x316a4c(0x1c2))/0xa;if(_0x56c0a0===_0x115212)break;else _0x1e6162['push'](_0x1e6162['shift']());}catch(_0x38f0ed){_0x1e6162['push'](_0x1e6162['shift']());}}}(a219_0x5cbf,0x558d1));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x175934=a219_0x99b9;return process.env.TDX_CACHE_DIR||join(homedir(),_0x175934(0x1be),_0x175934(0x1bb));}const registry=new Map();export function registerGlobalCacheKey(_0x3969ac,_0x333690){const _0x4711ef=a219_0x99b9,_0x19c74e=registry[_0x4711ef(0x1b7)](_0x3969ac);if(_0x19c74e&&_0x19c74e!==_0x333690)throw new Error(_0x4711ef(0x1c0)+_0x3969ac+_0x4711ef(0x1b6)+_0x19c74e+_0x4711ef(0x1bd)+_0x333690+'\x22');registry[_0x4711ef(0x1b1)](_0x3969ac,_0x333690);}export function getGlobalCachePath(_0x5d0085){return join(getGlobalCacheDir(),_0x5d0085);}function ensureGlobalCacheDir(){const _0x43ddd9=getGlobalCacheDir();!existsSync(_0x43ddd9)&&mkdirSync(_0x43ddd9,{'recursive':!![]});}function readCacheJson(_0x21d756){const _0x307d56=a219_0x99b9,_0x1123ad=getGlobalCachePath(_0x21d756);if(!existsSync(_0x1123ad))return undefined;try{const _0x194879=readFileSync(_0x1123ad,_0x307d56(0x1c4));return JSON['parse'](_0x194879);}catch{return undefined;}}function a219_0x5cbf(){const _0x259b93=['Global\x20cache\x20key\x20\x22','6060iwKZGJ','13652460XjTffh','3752PANQcE','utf-8','clear','{profile}','5668IkMSAH','set','default','351BbmeKb','553324MGfTiy','652169mCmYMe','\x22\x20already\x20registered\x20by\x20\x22','get','trim','replace','82611nDbdEp','tdx','490205pqytSY','\x22,\x20cannot\x20register\x20for\x20\x22','.cache','16fCPYHW'];a219_0x5cbf=function(){return _0x259b93;};return a219_0x5cbf();}function a219_0x99b9(_0x1819b3,_0x3925a0){_0x1819b3=_0x1819b3-0x1af;const _0x5cbfd9=a219_0x5cbf();let _0x99b96c=_0x5cbfd9[_0x1819b3];return _0x99b96c;}function writeCacheJson(_0x40309b,_0x38149b){const _0x526d8c=a219_0x99b9;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x40309b),JSON['stringify'](_0x38149b,null,0x2),_0x526d8c(0x1c4));}function readCacheText(_0x2ad472){const _0x534fb1=a219_0x99b9,_0x3a6b7e=getGlobalCachePath(_0x2ad472);if(!existsSync(_0x3a6b7e))return undefined;try{return readFileSync(_0x3a6b7e,_0x534fb1(0x1c4));}catch{return undefined;}}function writeCacheText(_0x84d8ad,_0x47d126){const _0x43a991=a219_0x99b9;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x84d8ad),_0x47d126,_0x43a991(0x1c4));}function clearCache(_0x19b39c){const _0x1cf3b3=getGlobalCachePath(_0x19b39c);if(existsSync(_0x1cf3b3))try{unlinkSync(_0x1cf3b3);}catch{}}function cacheExists(_0x3229a6){return existsSync(getGlobalCachePath(_0x3229a6));}export function createGlobalCache(_0x559562,_0x34781a){return registerGlobalCacheKey(_0x559562,_0x34781a),{'read':()=>readCacheJson(_0x559562),'write':_0x269825=>writeCacheJson(_0x559562,_0x269825),'clear':()=>clearCache(_0x559562),'exists':()=>cacheExists(_0x559562),'path':()=>getGlobalCachePath(_0x559562)};}export function createGlobalTextCache(_0x1235dd,_0x3f5f1c){const _0x5eb4d2=a219_0x99b9;return registerGlobalCacheKey(_0x1235dd,_0x3f5f1c),{'read':()=>readCacheText(_0x1235dd)?.[_0x5eb4d2(0x1b8)]()||undefined,'write':_0x38291e=>writeCacheText(_0x1235dd,_0x38291e),'clear':()=>clearCache(_0x1235dd),'exists':()=>cacheExists(_0x1235dd),'path':()=>getGlobalCachePath(_0x1235dd)};}export function createProfileCache(_0x153a53,_0x5e1205){const _0x4d8846=_0x444f4e=>{const _0x591977=a219_0x99b9,_0x25ef8b=_0x444f4e||_0x591977(0x1b2);return _0x153a53[_0x591977(0x1b9)](_0x591977(0x1af),_0x25ef8b);};return{'read':_0x5df962=>{const _0x1e1b43=_0x4d8846(_0x5df962);return registerGlobalCacheKey(_0x1e1b43,_0x5e1205),readCacheJson(_0x1e1b43);},'write':(_0x5aee90,_0x33b7f5)=>{const _0x3f2225=_0x4d8846(_0x5aee90);registerGlobalCacheKey(_0x3f2225,_0x5e1205),writeCacheJson(_0x3f2225,_0x33b7f5);},'clear':_0x27e237=>{const _0x1e87de=_0x4d8846(_0x27e237);clearCache(_0x1e87de);},'exists':_0xcf7324=>{const _0x305cfb=_0x4d8846(_0xcf7324);return cacheExists(_0x305cfb);},'path':_0x125eca=>{const _0x489519=_0x4d8846(_0x125eca);return getGlobalCachePath(_0x489519);}};}export function createOptionalProfileCache(_0x4b7015,_0x36e440,_0x3d0b65={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3d0b65,_0x11d6e4=_0xd3c43d=>{return _0xd3c43d?''+_0x4b7015+profileSeparator+_0xd3c43d+suffix:''+_0x4b7015+suffix;};return{'read':_0x4f41c6=>{const _0x3a5260=_0x11d6e4(_0x4f41c6);return registerGlobalCacheKey(_0x3a5260,_0x36e440),readCacheJson(_0x3a5260);},'write':(_0x30163b,_0x16c2c3)=>{const _0xa9f838=_0x11d6e4(_0x16c2c3);registerGlobalCacheKey(_0xa9f838,_0x36e440),writeCacheJson(_0xa9f838,_0x30163b);},'clear':_0x116950=>{const _0x2b78f9=_0x11d6e4(_0x116950);clearCache(_0x2b78f9);},'exists':_0x50cac8=>{const _0x165500=_0x11d6e4(_0x50cac8);return cacheExists(_0x165500);},'path':_0x2195ba=>{const _0xb5562c=_0x11d6e4(_0x2195ba);return getGlobalCachePath(_0xb5562c);}};}export function clearGlobalRegistry(){const _0x52e31d=a219_0x99b9;registry[_0x52e31d(0x1c5)]();}
1
+ (function(_0x409c56,_0x1eeef3){const _0x1444a5=a219_0x40e0,_0x5f360d=_0x409c56();while(!![]){try{const _0x142f0a=-parseInt(_0x1444a5(0x13d))/0x1+parseInt(_0x1444a5(0x139))/0x2*(-parseInt(_0x1444a5(0x14b))/0x3)+parseInt(_0x1444a5(0x147))/0x4+-parseInt(_0x1444a5(0x138))/0x5*(-parseInt(_0x1444a5(0x137))/0x6)+parseInt(_0x1444a5(0x142))/0x7*(parseInt(_0x1444a5(0x13f))/0x8)+-parseInt(_0x1444a5(0x143))/0x9+parseInt(_0x1444a5(0x13e))/0xa;if(_0x142f0a===_0x1eeef3)break;else _0x5f360d['push'](_0x5f360d['shift']());}catch(_0x169e14){_0x5f360d['push'](_0x5f360d['shift']());}}}(a219_0x46a3,0xf03f7));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x1ad2e0=a219_0x40e0;return process.env.TDX_CACHE_DIR||join(homedir(),_0x1ad2e0(0x13b),_0x1ad2e0(0x145));}const registry=new Map();export function registerGlobalCacheKey(_0x343ade,_0x1394c0){const _0x5aaba6=a219_0x40e0,_0x3a4746=registry['get'](_0x343ade);if(_0x3a4746&&_0x3a4746!==_0x1394c0)throw new Error(_0x5aaba6(0x141)+_0x343ade+'\x22\x20already\x20registered\x20by\x20\x22'+_0x3a4746+_0x5aaba6(0x140)+_0x1394c0+'\x22');registry[_0x5aaba6(0x148)](_0x343ade,_0x1394c0);}export function getGlobalCachePath(_0x25c129){return join(getGlobalCacheDir(),_0x25c129);}function ensureGlobalCacheDir(){const _0x47e8ab=getGlobalCacheDir();!existsSync(_0x47e8ab)&&mkdirSync(_0x47e8ab,{'recursive':!![]});}function readCacheJson(_0x47e7d6){const _0x1a5457=a219_0x40e0,_0xebecb3=getGlobalCachePath(_0x47e7d6);if(!existsSync(_0xebecb3))return undefined;try{const _0x519919=readFileSync(_0xebecb3,_0x1a5457(0x149));return JSON[_0x1a5457(0x14a)](_0x519919);}catch{return undefined;}}function writeCacheJson(_0x23501f,_0xf98159){const _0x59d1a8=a219_0x40e0;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x23501f),JSON[_0x59d1a8(0x144)](_0xf98159,null,0x2),_0x59d1a8(0x149));}function readCacheText(_0x5847f9){const _0x34c6e0=getGlobalCachePath(_0x5847f9);if(!existsSync(_0x34c6e0))return undefined;try{return readFileSync(_0x34c6e0,'utf-8');}catch{return undefined;}}function writeCacheText(_0x54d68d,_0x415821){const _0x4b897d=a219_0x40e0;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x54d68d),_0x415821,_0x4b897d(0x149));}function clearCache(_0x55e914){const _0x5916c5=getGlobalCachePath(_0x55e914);if(existsSync(_0x5916c5))try{unlinkSync(_0x5916c5);}catch{}}function cacheExists(_0x48eac1){return existsSync(getGlobalCachePath(_0x48eac1));}export function createGlobalCache(_0x2a27f4,_0x4cf4bc){return registerGlobalCacheKey(_0x2a27f4,_0x4cf4bc),{'read':()=>readCacheJson(_0x2a27f4),'write':_0x31ec34=>writeCacheJson(_0x2a27f4,_0x31ec34),'clear':()=>clearCache(_0x2a27f4),'exists':()=>cacheExists(_0x2a27f4),'path':()=>getGlobalCachePath(_0x2a27f4)};}export function createGlobalTextCache(_0x19454d,_0x3b77bd){return registerGlobalCacheKey(_0x19454d,_0x3b77bd),{'read':()=>readCacheText(_0x19454d)?.['trim']()||undefined,'write':_0x200fe1=>writeCacheText(_0x19454d,_0x200fe1),'clear':()=>clearCache(_0x19454d),'exists':()=>cacheExists(_0x19454d),'path':()=>getGlobalCachePath(_0x19454d)};}function a219_0x46a3(){const _0x1a3fb9=['7GBOuRB','286335gjkWwQ','stringify','tdx','{profile}','914988InulJE','set','utf-8','parse','392940yfZdFC','3416412ULXokV','5MlZizR','10TBewuJ','replace','.cache','clear','419678AYiBWk','6518280OdeJYx','5123768buwrUo','\x22,\x20cannot\x20register\x20for\x20\x22','Global\x20cache\x20key\x20\x22'];a219_0x46a3=function(){return _0x1a3fb9;};return a219_0x46a3();}export function createProfileCache(_0x233f3f,_0x151d75){const _0x2f910a=_0x19f839=>{const _0x31b9e2=a219_0x40e0,_0x5f585a=_0x19f839||'default';return _0x233f3f[_0x31b9e2(0x13a)](_0x31b9e2(0x146),_0x5f585a);};return{'read':_0x250f88=>{const _0x1453fb=_0x2f910a(_0x250f88);return registerGlobalCacheKey(_0x1453fb,_0x151d75),readCacheJson(_0x1453fb);},'write':(_0x3e7f62,_0x435552)=>{const _0x27a159=_0x2f910a(_0x3e7f62);registerGlobalCacheKey(_0x27a159,_0x151d75),writeCacheJson(_0x27a159,_0x435552);},'clear':_0x572bf3=>{const _0x60c9da=_0x2f910a(_0x572bf3);clearCache(_0x60c9da);},'exists':_0x11745b=>{const _0x22763d=_0x2f910a(_0x11745b);return cacheExists(_0x22763d);},'path':_0x401f5d=>{const _0x3e3f92=_0x2f910a(_0x401f5d);return getGlobalCachePath(_0x3e3f92);}};}export function createOptionalProfileCache(_0x3cd8c7,_0xdae18f,_0x1bed62={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x1bed62,_0x33d5b8=_0x54c124=>{return _0x54c124?''+_0x3cd8c7+profileSeparator+_0x54c124+suffix:''+_0x3cd8c7+suffix;};return{'read':_0x35f6c1=>{const _0x6b6d1c=_0x33d5b8(_0x35f6c1);return registerGlobalCacheKey(_0x6b6d1c,_0xdae18f),readCacheJson(_0x6b6d1c);},'write':(_0x35929d,_0x1cae32)=>{const _0x551c72=_0x33d5b8(_0x1cae32);registerGlobalCacheKey(_0x551c72,_0xdae18f),writeCacheJson(_0x551c72,_0x35929d);},'clear':_0x22d5d2=>{const _0x11e97d=_0x33d5b8(_0x22d5d2);clearCache(_0x11e97d);},'exists':_0x2c71f8=>{const _0x55fbd5=_0x33d5b8(_0x2c71f8);return cacheExists(_0x55fbd5);},'path':_0x2095fa=>{const _0x3be2a8=_0x33d5b8(_0x2095fa);return getGlobalCachePath(_0x3be2a8);}};}function a219_0x40e0(_0xafa25c,_0x216fd1){_0xafa25c=_0xafa25c-0x137;const _0x46a33e=a219_0x46a3();let _0x40e093=_0x46a33e[_0xafa25c];return _0x40e093;}export function clearGlobalRegistry(){const _0x3c55aa=a219_0x40e0;registry[_0x3c55aa(0x13c)]();}
@@ -1 +1 @@
1
- (function(_0x2fa729,_0x5a9279){const _0xdfc2f0=a220_0x1dc9,_0x535f01=_0x2fa729();while(!![]){try{const _0x100cad=parseInt(_0xdfc2f0(0x106))/0x1*(parseInt(_0xdfc2f0(0xf8))/0x2)+-parseInt(_0xdfc2f0(0x104))/0x3+parseInt(_0xdfc2f0(0x102))/0x4+-parseInt(_0xdfc2f0(0x10b))/0x5*(parseInt(_0xdfc2f0(0xf7))/0x6)+parseInt(_0xdfc2f0(0xf4))/0x7*(parseInt(_0xdfc2f0(0xfa))/0x8)+parseInt(_0xdfc2f0(0xf6))/0x9+-parseInt(_0xdfc2f0(0x105))/0xa*(-parseInt(_0xdfc2f0(0x10a))/0xb);if(_0x100cad===_0x5a9279)break;else _0x535f01['push'](_0x535f01['shift']());}catch(_0x106e63){_0x535f01['push'](_0x535f01['shift']());}}}(a220_0x13a7,0x2be82));function a220_0x1dc9(_0x168021,_0x3347a2){_0x168021=_0x168021-0xf4;const _0x13a7e1=a220_0x13a7();let _0x1dc97c=_0x13a7e1[_0x168021];return _0x1dc97c;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1ecb9f,_0x34f0cf){const _0x14248f=a220_0x1dc9;try{if(_0x34f0cf){const _0xa05457=await readFile(_0x1ecb9f,'utf-8');try{return JSON[_0x14248f(0x109)](_0xa05457);}catch(_0x33f989){throw new SDKError(ErrorCode[_0x14248f(0xfb)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x1ecb9f+_0x14248f(0xff)+(_0x33f989 instanceof Error?_0x33f989[_0x14248f(0x101)]:String(_0x33f989)));}}else try{return JSON['parse'](_0x1ecb9f);}catch(_0xda535e){throw new SDKError(ErrorCode[_0x14248f(0xfb)],_0x14248f(0xfd)+(_0xda535e instanceof Error?_0xda535e[_0x14248f(0x101)]:String(_0xda535e)));}}catch(_0x4b4f45){if(_0x4b4f45 instanceof SDKError)throw _0x4b4f45;if(_0x4b4f45 instanceof Error&&_0x14248f(0xfe)in _0x4b4f45){const _0xf3819f=_0x4b4f45;if(_0xf3819f[_0x14248f(0xfe)]===_0x14248f(0x107))throw new SDKError(ErrorCode[_0x14248f(0xf9)],_0x14248f(0x100)+_0x1ecb9f);else{if(_0xf3819f['code']===_0x14248f(0x108))throw new SDKError(ErrorCode[_0x14248f(0xf5)],_0x14248f(0x103)+_0x1ecb9f);}}throw new SDKError(ErrorCode[_0x14248f(0xfc)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x4b4f45 instanceof Error?_0x4b4f45[_0x14248f(0x101)]:String(_0x4b4f45)));}}export async function loadJSONFromOptions(_0x5a5d3d,_0xc0def5){const _0x367796=a220_0x1dc9;if(_0x5a5d3d&&_0xc0def5)throw new SDKError(ErrorCode[_0x367796(0xfb)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x5a5d3d)return await loadJSON(_0x5a5d3d,![]);if(_0xc0def5)return await loadJSON(_0xc0def5,!![]);return undefined;}function a220_0x13a7(){const _0x552d38=['824ZQcBQz','INVALID_ARGUMENT','INTERNAL','Invalid\x20JSON\x20string:\x20','code','\x27:\x20','File\x20not\x20found:\x20','message','650456HfYYoH','Permission\x20denied\x20reading\x20file:\x20','625230OBXxPy','10DNqtHc','1RLaGAx','ENOENT','EACCES','parse','704121rgcvTe','5CRuYFc','16667qiyJEa','PERMISSION_DENIED','71361TkVRWh','780756gzVXyM','77162ARVyMr','NOT_FOUND'];a220_0x13a7=function(){return _0x552d38;};return a220_0x13a7();}
1
+ (function(_0xfcfd85,_0x22de0a){const _0x2b66ff=a220_0x331e,_0x29048c=_0xfcfd85();while(!![]){try{const _0x339f3a=parseInt(_0x2b66ff(0x1f7))/0x1*(parseInt(_0x2b66ff(0x1f8))/0x2)+-parseInt(_0x2b66ff(0x1f4))/0x3+parseInt(_0x2b66ff(0x1fc))/0x4+-parseInt(_0x2b66ff(0x1f5))/0x5*(parseInt(_0x2b66ff(0x1fe))/0x6)+-parseInt(_0x2b66ff(0x202))/0x7*(-parseInt(_0x2b66ff(0x205))/0x8)+-parseInt(_0x2b66ff(0x204))/0x9+parseInt(_0x2b66ff(0x1f9))/0xa;if(_0x339f3a===_0x22de0a)break;else _0x29048c['push'](_0x29048c['shift']());}catch(_0xb4ae98){_0x29048c['push'](_0x29048c['shift']());}}}(a220_0xa7b5,0xaf140));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a220_0x331e(_0x3821d7,_0x39cf68){_0x3821d7=_0x3821d7-0x1f0;const _0xa7b574=a220_0xa7b5();let _0x331ef2=_0xa7b574[_0x3821d7];return _0x331ef2;}function a220_0xa7b5(){const _0x5b9602=['2824344NUMaFA','code','90QSRVjC','ENOENT','Invalid\x20JSON\x20in\x20file\x20\x27','parse','35RIPVmf','utf-8','3095685dAefas','1047096lAXBtf','Failed\x20to\x20load\x20JSON:\x20','EACCES','message','PERMISSION_DENIED','INVALID_ARGUMENT','1940625ilbwUe','48720bIhtdi','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','2tTMtJb','95518RUinez','3980810YfVEER','INTERNAL','NOT_FOUND'];a220_0xa7b5=function(){return _0x5b9602;};return a220_0xa7b5();}export async function loadJSON(_0xf3e5cc,_0x2ffaee){const _0x368cbb=a220_0x331e;try{if(_0x2ffaee){const _0x2ba36c=await readFile(_0xf3e5cc,_0x368cbb(0x203));try{return JSON['parse'](_0x2ba36c);}catch(_0x4f0b2a){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x368cbb(0x200)+_0xf3e5cc+'\x27:\x20'+(_0x4f0b2a instanceof Error?_0x4f0b2a['message']:String(_0x4f0b2a)));}}else try{return JSON[_0x368cbb(0x201)](_0xf3e5cc);}catch(_0xc5e19d){throw new SDKError(ErrorCode[_0x368cbb(0x1f3)],'Invalid\x20JSON\x20string:\x20'+(_0xc5e19d instanceof Error?_0xc5e19d[_0x368cbb(0x1f1)]:String(_0xc5e19d)));}}catch(_0x515f70){if(_0x515f70 instanceof SDKError)throw _0x515f70;if(_0x515f70 instanceof Error&&'code'in _0x515f70){const _0xce458=_0x515f70;if(_0xce458[_0x368cbb(0x1fd)]===_0x368cbb(0x1ff))throw new SDKError(ErrorCode[_0x368cbb(0x1fb)],'File\x20not\x20found:\x20'+_0xf3e5cc);else{if(_0xce458[_0x368cbb(0x1fd)]===_0x368cbb(0x1f0))throw new SDKError(ErrorCode[_0x368cbb(0x1f2)],'Permission\x20denied\x20reading\x20file:\x20'+_0xf3e5cc);}}throw new SDKError(ErrorCode[_0x368cbb(0x1fa)],_0x368cbb(0x206)+(_0x515f70 instanceof Error?_0x515f70[_0x368cbb(0x1f1)]:String(_0x515f70)));}}export async function loadJSONFromOptions(_0x310baf,_0x2265a2){const _0x3ea542=a220_0x331e;if(_0x310baf&&_0x2265a2)throw new SDKError(ErrorCode[_0x3ea542(0x1f3)],_0x3ea542(0x1f6));if(_0x310baf)return await loadJSON(_0x310baf,![]);if(_0x2265a2)return await loadJSON(_0x2265a2,!![]);return undefined;}
@@ -1 +1 @@
1
- const a221_0x1bcc0f=a221_0x3688;(function(_0x258c42,_0x2646fb){const _0xa91b90=a221_0x3688,_0x33e39a=_0x258c42();while(!![]){try{const _0x365c98=-parseInt(_0xa91b90(0x1cb))/0x1+-parseInt(_0xa91b90(0x1c3))/0x2+parseInt(_0xa91b90(0x1c5))/0x3*(-parseInt(_0xa91b90(0x1c9))/0x4)+-parseInt(_0xa91b90(0x1cd))/0x5*(-parseInt(_0xa91b90(0x1be))/0x6)+-parseInt(_0xa91b90(0x1c8))/0x7*(parseInt(_0xa91b90(0x1c2))/0x8)+-parseInt(_0xa91b90(0x1cc))/0x9+parseInt(_0xa91b90(0x1bb))/0xa;if(_0x365c98===_0x2646fb)break;else _0x33e39a['push'](_0x33e39a['shift']());}catch(_0x2df4f2){_0x33e39a['push'](_0x33e39a['shift']());}}}(a221_0x589e,0xa346c));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';function a221_0x589e(){const _0x3e8706=['.cache/tdx','root','2149cJyHPF','804SjQvxa','trim','557928HowmzV','7968969aJKGOp','1133565lNYrcC','43593260NwPlFi','Cache\x20key\x20\x22','parse','12qKpWgn','\x22,\x20cannot\x20register\x20for\x20\x22','get','\x22\x20already\x20registered\x20by\x20\x22','21104BawaXL','2543716ccyTWU','utf-8','9237NBHLwG'];a221_0x589e=function(){return _0x3e8706;};return a221_0x589e();}import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x1bcc0f(0x1c6),registry=new Map();export function registerCacheKey(_0x42b43b,_0x2bc496){const _0x54767c=a221_0x1bcc0f,_0x6217e1=registry[_0x54767c(0x1c0)](_0x42b43b);if(_0x6217e1&&_0x6217e1!==_0x2bc496)throw new Error(_0x54767c(0x1bc)+_0x42b43b+_0x54767c(0x1c1)+_0x6217e1+_0x54767c(0x1bf)+_0x2bc496+'\x22');registry['set'](_0x42b43b,_0x2bc496);}export function getCacheDir(){const _0x271c97=a221_0x1bcc0f,_0x3700a7=process['cwd'](),_0x26d947=_0x3700a7===parse(_0x3700a7)[_0x271c97(0x1c7)]?homedir():_0x3700a7;return join(_0x26d947,LOCAL_CACHE_DIR);}export function getCachePath(_0x2fb49b){return join(getCacheDir(),_0x2fb49b);}function ensureCacheDir(){const _0x5a7c2b=getCacheDir();!existsSync(_0x5a7c2b)&&mkdirSync(_0x5a7c2b,{'recursive':!![]});}function readCacheJson(_0x46818d){const _0x5810d5=a221_0x1bcc0f,_0x327957=getCachePath(_0x46818d);if(!existsSync(_0x327957))return undefined;try{const _0x257f62=readFileSync(_0x327957,_0x5810d5(0x1c4));return JSON[_0x5810d5(0x1bd)](_0x257f62);}catch{return undefined;}}function writeCacheJson(_0x549f8b,_0x212c4f){const _0x28a7f8=a221_0x1bcc0f;ensureCacheDir(),writeFileSync(getCachePath(_0x549f8b),JSON['stringify'](_0x212c4f,null,0x2),_0x28a7f8(0x1c4));}function readCacheText(_0x38d279){const _0x5f57d5=a221_0x1bcc0f,_0x38bd68=getCachePath(_0x38d279);if(!existsSync(_0x38bd68))return undefined;try{return readFileSync(_0x38bd68,_0x5f57d5(0x1c4));}catch{return undefined;}}function writeCacheText(_0x1fbd8b,_0x112bc5){const _0x49db86=a221_0x1bcc0f;ensureCacheDir(),writeFileSync(getCachePath(_0x1fbd8b),_0x112bc5,_0x49db86(0x1c4));}function a221_0x3688(_0x35e79b,_0x154268){_0x35e79b=_0x35e79b-0x1bb;const _0x589e74=a221_0x589e();let _0x3688d4=_0x589e74[_0x35e79b];return _0x3688d4;}function clearCache(_0x13b3b1){const _0x23b045=getCachePath(_0x13b3b1);if(existsSync(_0x23b045))try{unlinkSync(_0x23b045);}catch{}}function cacheExists(_0x75732c){return existsSync(getCachePath(_0x75732c));}export function createCache(_0x753635,_0x481d84){return registerCacheKey(_0x753635,_0x481d84),{'read':()=>readCacheJson(_0x753635),'write':_0x4fc6ef=>writeCacheJson(_0x753635,_0x4fc6ef),'clear':()=>clearCache(_0x753635),'exists':()=>cacheExists(_0x753635),'path':()=>getCachePath(_0x753635)};}export function createTextCache(_0xe09635,_0x1caec2){const _0x1dd171=a221_0x1bcc0f;return registerCacheKey(_0xe09635,_0x1caec2),{'read':()=>readCacheText(_0xe09635)?.[_0x1dd171(0x1ca)]()||undefined,'write':_0x2a5076=>writeCacheText(_0xe09635,_0x2a5076),'clear':()=>clearCache(_0xe09635),'exists':()=>cacheExists(_0xe09635),'path':()=>getCachePath(_0xe09635)};}export function clearRegistry(){registry['clear']();}
1
+ const a221_0x12ff55=a221_0xced8;(function(_0x18757c,_0x4fa8cd){const _0x4a0b68=a221_0xced8,_0x5a7c23=_0x18757c();while(!![]){try{const _0x2e74c6=-parseInt(_0x4a0b68(0x119))/0x1*(parseInt(_0x4a0b68(0x122))/0x2)+parseInt(_0x4a0b68(0x11e))/0x3+-parseInt(_0x4a0b68(0x112))/0x4+parseInt(_0x4a0b68(0x11a))/0x5*(parseInt(_0x4a0b68(0x123))/0x6)+parseInt(_0x4a0b68(0x114))/0x7*(-parseInt(_0x4a0b68(0x111))/0x8)+-parseInt(_0x4a0b68(0x113))/0x9+parseInt(_0x4a0b68(0x115))/0xa*(parseInt(_0x4a0b68(0x11f))/0xb);if(_0x2e74c6===_0x4fa8cd)break;else _0x5a7c23['push'](_0x5a7c23['shift']());}catch(_0x18c90a){_0x5a7c23['push'](_0x5a7c23['shift']());}}}(a221_0x3132,0x7c6ae));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a221_0x12ff55(0x121),registry=new Map();export function registerCacheKey(_0x157f86,_0xceab38){const _0x20b0e9=a221_0x12ff55,_0x212c59=registry[_0x20b0e9(0x11c)](_0x157f86);if(_0x212c59&&_0x212c59!==_0xceab38)throw new Error(_0x20b0e9(0x124)+_0x157f86+_0x20b0e9(0x125)+_0x212c59+_0x20b0e9(0x11b)+_0xceab38+'\x22');registry[_0x20b0e9(0x118)](_0x157f86,_0xceab38);}export function getCacheDir(){const _0x3cb537=a221_0x12ff55,_0x5205e3=process['cwd'](),_0x5db694=_0x5205e3===parse(_0x5205e3)[_0x3cb537(0x116)]?homedir():_0x5205e3;return join(_0x5db694,LOCAL_CACHE_DIR);}export function getCachePath(_0x1f59c8){return join(getCacheDir(),_0x1f59c8);}function ensureCacheDir(){const _0x877c09=getCacheDir();!existsSync(_0x877c09)&&mkdirSync(_0x877c09,{'recursive':!![]});}function readCacheJson(_0x3eb102){const _0x18d716=a221_0x12ff55,_0x51ee8e=getCachePath(_0x3eb102);if(!existsSync(_0x51ee8e))return undefined;try{const _0x15d3ca=readFileSync(_0x51ee8e,_0x18d716(0x117));return JSON[_0x18d716(0x11d)](_0x15d3ca);}catch{return undefined;}}function writeCacheJson(_0x26833a,_0x5cfeaa){const _0xa19af=a221_0x12ff55;ensureCacheDir(),writeFileSync(getCachePath(_0x26833a),JSON[_0xa19af(0x120)](_0x5cfeaa,null,0x2),_0xa19af(0x117));}function readCacheText(_0x46dbef){const _0x49e187=a221_0x12ff55,_0x255bbc=getCachePath(_0x46dbef);if(!existsSync(_0x255bbc))return undefined;try{return readFileSync(_0x255bbc,_0x49e187(0x117));}catch{return undefined;}}function writeCacheText(_0x2bda83,_0x1d5b62){const _0xd5bb6f=a221_0x12ff55;ensureCacheDir(),writeFileSync(getCachePath(_0x2bda83),_0x1d5b62,_0xd5bb6f(0x117));}function clearCache(_0x1a251c){const _0x1c8db4=getCachePath(_0x1a251c);if(existsSync(_0x1c8db4))try{unlinkSync(_0x1c8db4);}catch{}}function cacheExists(_0x1f9a76){return existsSync(getCachePath(_0x1f9a76));}export function createCache(_0x15e728,_0x2bcdcf){return registerCacheKey(_0x15e728,_0x2bcdcf),{'read':()=>readCacheJson(_0x15e728),'write':_0x34db00=>writeCacheJson(_0x15e728,_0x34db00),'clear':()=>clearCache(_0x15e728),'exists':()=>cacheExists(_0x15e728),'path':()=>getCachePath(_0x15e728)};}export function createTextCache(_0x54901c,_0x106934){const _0x47900e=a221_0x12ff55;return registerCacheKey(_0x54901c,_0x106934),{'read':()=>readCacheText(_0x54901c)?.[_0x47900e(0x10f)]()||undefined,'write':_0x261ae1=>writeCacheText(_0x54901c,_0x261ae1),'clear':()=>clearCache(_0x54901c),'exists':()=>cacheExists(_0x54901c),'path':()=>getCachePath(_0x54901c)};}function a221_0xced8(_0xa3d5a6,_0x296e85){_0xa3d5a6=_0xa3d5a6-0x10f;const _0x31325f=a221_0x3132();let _0xced882=_0x31325f[_0xa3d5a6];return _0xced882;}export function clearRegistry(){const _0xc69253=a221_0x12ff55;registry[_0xc69253(0x110)]();}function a221_0x3132(){const _0x4a960b=['\x22\x20already\x20registered\x20by\x20\x22','trim','clear','8TFgcax','3161888OsNuTb','9048861cpaeQC','6199921dQjMqI','10KUFeDw','root','utf-8','set','13319fLMJbJ','9025zKroyD','\x22,\x20cannot\x20register\x20for\x20\x22','get','parse','2292936gcPJCg','35074358tXitUZ','stringify','.cache/tdx','116AyXCQk','36QzryWM','Cache\x20key\x20\x22'];a221_0x3132=function(){return _0x4a960b;};return a221_0x3132();}
@@ -1 +1 @@
1
- const a222_0x1449eb=a222_0x426c;function a222_0x3f06(){const _0xa9c8ca=['3LYFkuN','32BrzxiH','INFO','2247595zyaXfF','component','gray','message','516980iABggd','dim','green','23238050WvbGcl','level','1488382nXfGsa','blue',']\x20[','red','DEBUG','colorLevel','colors','cyan','633394phqrdO','yellow','ERROR','2brQUJN','Chalk','timestamp','792516APfuyE','243RfTfIb','210370hjgBZI','default','chalk'];a222_0x3f06=function(){return _0xa9c8ca;};return a222_0x3f06();}function a222_0x426c(_0x115f66,_0x322b59){_0x115f66=_0x115f66-0xe3;const _0x3f06a2=a222_0x3f06();let _0x426cc6=_0x3f06a2[_0x115f66];return _0x426cc6;}(function(_0x5567b4,_0x49866d){const _0x1d2fa3=a222_0x426c,_0x19c20f=_0x5567b4();while(!![]){try{const _0x461052=-parseInt(_0x1d2fa3(0xe3))/0x1*(parseInt(_0x1d2fa3(0xff))/0x2)+-parseInt(_0x1d2fa3(0xeb))/0x3*(-parseInt(_0x1d2fa3(0xf2))/0x4)+parseInt(_0x1d2fa3(0xee))/0x5+-parseInt(_0x1d2fa3(0xe6))/0x6+-parseInt(_0x1d2fa3(0xf7))/0x7*(parseInt(_0x1d2fa3(0xec))/0x8)+-parseInt(_0x1d2fa3(0xe7))/0x9*(parseInt(_0x1d2fa3(0xe8))/0xa)+parseInt(_0x1d2fa3(0xf5))/0xb;if(_0x461052===_0x49866d)break;else _0x19c20f['push'](_0x19c20f['shift']());}catch(_0x3cbd7c){_0x19c20f['push'](_0x19c20f['shift']());}}}(a222_0x3f06,0x7bdc3));import a222_0x21ab77 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a222_0x21ab77,ChalkClass=chalkModule['Chalk']||chalkModule[a222_0x1449eb(0xe9)]?.[a222_0x1449eb(0xe4)];export class DefaultLogFormatter{[a222_0x1449eb(0xfd)];[a222_0x1449eb(0xea)];constructor(_0x198188={}){const _0x3489ef=a222_0x1449eb;this[_0x3489ef(0xfd)]=_0x198188[_0x3489ef(0xfd)]??![],this[_0x3489ef(0xea)]=_0x198188['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x21ab77;}['format'](_0x52414d){const _0x31269c=a222_0x1449eb,_0x204579=formatTimestamp(_0x52414d[_0x31269c(0xe5)]),_0x1be9ba=logLevelToString(_0x52414d['level']);if(!this[_0x31269c(0xfd)])return _0x204579+'\x20['+_0x1be9ba+_0x31269c(0xf9)+_0x52414d[_0x31269c(0xef)]+']\x20'+_0x52414d[_0x31269c(0xf1)];const _0x46c552=this[_0x31269c(0xea)][_0x31269c(0xf3)](_0x204579),_0x141d73=this[_0x31269c(0xfc)](_0x1be9ba,_0x52414d[_0x31269c(0xf6)]),_0x2145f3=this[_0x31269c(0xea)][_0x31269c(0xf8)]('['+_0x52414d['component']+']');return _0x46c552+'\x20'+_0x141d73+'\x20'+_0x2145f3+'\x20'+_0x52414d['message'];}[a222_0x1449eb(0xfc)](_0x179b4a,_0x53f3e){const _0x4f0f29=a222_0x1449eb;switch(_0x53f3e){case LogLevel['TRACE']:return this[_0x4f0f29(0xea)][_0x4f0f29(0xf0)]('['+_0x179b4a+']');case LogLevel[_0x4f0f29(0xfb)]:return this[_0x4f0f29(0xea)][_0x4f0f29(0xf4)]('['+_0x179b4a+']');case LogLevel[_0x4f0f29(0xed)]:return this[_0x4f0f29(0xea)][_0x4f0f29(0xfe)]('['+_0x179b4a+']');case LogLevel['WARN']:return this['chalk'][_0x4f0f29(0x100)]('['+_0x179b4a+']');case LogLevel[_0x4f0f29(0x101)]:return this[_0x4f0f29(0xea)][_0x4f0f29(0xfa)]('['+_0x179b4a+']');default:return'['+_0x179b4a+']';}}}
1
+ function a222_0x4b24(){const _0x5b72f1=['INFO',']\x20[','3wPXbgJ','4455252dwXvtV','yellow','timestamp','776810LyJsBe','message','component','chalk','31190iNcktq','TRACE','colors','1252160bScNpn','743172JoTcto','dim','level','gray','DEBUG','44pdJkxv','WARN','colorLevel','8619611JJnLNy','cyan','774585nYBaak','default'];a222_0x4b24=function(){return _0x5b72f1;};return a222_0x4b24();}const a222_0x21b641=a222_0x4a0a;(function(_0x2183b5,_0x2809a9){const _0x406616=a222_0x4a0a,_0x26ec91=_0x2183b5();while(!![]){try{const _0x586410=parseInt(_0x406616(0x135))/0x1+parseInt(_0x406616(0x13d))/0x2*(parseInt(_0x406616(0x131))/0x3)+-parseInt(_0x406616(0x128))/0x4*(-parseInt(_0x406616(0x139))/0x5)+parseInt(_0x406616(0x132))/0x6+-parseInt(_0x406616(0x12b))/0x7+parseInt(_0x406616(0x13c))/0x8+-parseInt(_0x406616(0x12d))/0x9;if(_0x586410===_0x2809a9)break;else _0x26ec91['push'](_0x26ec91['shift']());}catch(_0x59a950){_0x26ec91['push'](_0x26ec91['shift']());}}}(a222_0x4b24,0xc2fae));function a222_0x4a0a(_0x1da31b,_0x2950c9){_0x1da31b=_0x1da31b-0x128;const _0x4b2408=a222_0x4b24();let _0x4a0a05=_0x4b2408[_0x1da31b];return _0x4a0a05;}import a222_0x4e421e from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a222_0x4e421e,ChalkClass=chalkModule['Chalk']||chalkModule[a222_0x21b641(0x12e)]?.['Chalk'];export class DefaultLogFormatter{[a222_0x21b641(0x13b)];[a222_0x21b641(0x138)];constructor(_0x58ae73={}){const _0x45d547=a222_0x21b641;this[_0x45d547(0x13b)]=_0x58ae73[_0x45d547(0x13b)]??![],this[_0x45d547(0x138)]=_0x58ae73[_0x45d547(0x13b)]&&ChalkClass?new ChalkClass({'level':0x3}):a222_0x4e421e;}['format'](_0x207c20){const _0x201bce=a222_0x21b641,_0x4ec843=formatTimestamp(_0x207c20[_0x201bce(0x134)]),_0x1e882e=logLevelToString(_0x207c20[_0x201bce(0x13f)]);if(!this[_0x201bce(0x13b)])return _0x4ec843+'\x20['+_0x1e882e+_0x201bce(0x130)+_0x207c20[_0x201bce(0x137)]+']\x20'+_0x207c20[_0x201bce(0x136)];const _0x318614=this[_0x201bce(0x138)][_0x201bce(0x13e)](_0x4ec843),_0xdecef6=this[_0x201bce(0x12a)](_0x1e882e,_0x207c20[_0x201bce(0x13f)]),_0x564c2b=this['chalk']['blue']('['+_0x207c20[_0x201bce(0x137)]+']');return _0x318614+'\x20'+_0xdecef6+'\x20'+_0x564c2b+'\x20'+_0x207c20[_0x201bce(0x136)];}['colorLevel'](_0x57c44f,_0x3b5a50){const _0x1cefa5=a222_0x21b641;switch(_0x3b5a50){case LogLevel[_0x1cefa5(0x13a)]:return this[_0x1cefa5(0x138)][_0x1cefa5(0x140)]('['+_0x57c44f+']');case LogLevel[_0x1cefa5(0x141)]:return this[_0x1cefa5(0x138)]['green']('['+_0x57c44f+']');case LogLevel[_0x1cefa5(0x12f)]:return this[_0x1cefa5(0x138)][_0x1cefa5(0x12c)]('['+_0x57c44f+']');case LogLevel[_0x1cefa5(0x129)]:return this[_0x1cefa5(0x138)][_0x1cefa5(0x133)]('['+_0x57c44f+']');case LogLevel['ERROR']:return this[_0x1cefa5(0x138)]['red']('['+_0x57c44f+']');default:return'['+_0x57c44f+']';}}}
@@ -1 +1 @@
1
- (function(_0x22609d,_0x546523){var _0x5cbe7e=a223_0x2a01,_0x42a159=_0x22609d();while(!![]){try{var _0x2c2589=-parseInt(_0x5cbe7e(0x10c))/0x1*(-parseInt(_0x5cbe7e(0x108))/0x2)+-parseInt(_0x5cbe7e(0x10a))/0x3*(-parseInt(_0x5cbe7e(0x106))/0x4)+-parseInt(_0x5cbe7e(0x102))/0x5*(parseInt(_0x5cbe7e(0x107))/0x6)+parseInt(_0x5cbe7e(0x101))/0x7+parseInt(_0x5cbe7e(0x104))/0x8*(-parseInt(_0x5cbe7e(0x109))/0x9)+-parseInt(_0x5cbe7e(0x10b))/0xa*(parseInt(_0x5cbe7e(0x103))/0xb)+-parseInt(_0x5cbe7e(0x100))/0xc*(parseInt(_0x5cbe7e(0x105))/0xd);if(_0x2c2589===_0x546523)break;else _0x42a159['push'](_0x42a159['shift']());}catch(_0x1a24d6){_0x42a159['push'](_0x42a159['shift']());}}}(a223_0x253c,0x1f72c));function a223_0x2a01(_0x3197f5,_0x3f38ce){_0x3197f5=_0x3197f5-0x100;var _0x253c98=a223_0x253c();var _0x2a0188=_0x253c98[_0x3197f5];return _0x2a0188;}export{DefaultLogFormatter}from'./default-formatter.js';function a223_0x253c(){var _0x2682e0=['568EvqZIx','903968BpuJpU','248EtwYXj','798FjEpuZ','109542XQayHe','19377LnGdBJ','10518FfgcPq','529160OyBKhF','1yjrgOA','12NNmabP','1730134OXzmnn','4330ZSHUFX','11bIBtkP'];a223_0x253c=function(){return _0x2682e0;};return a223_0x253c();}
1
+ (function(_0x314ba4,_0xdff2c9){var _0x41c378=a223_0x53df,_0x40cb53=_0x314ba4();while(!![]){try{var _0xdecefe=parseInt(_0x41c378(0x117))/0x1*(parseInt(_0x41c378(0x118))/0x2)+-parseInt(_0x41c378(0x116))/0x3*(-parseInt(_0x41c378(0x113))/0x4)+-parseInt(_0x41c378(0x111))/0x5*(parseInt(_0x41c378(0x110))/0x6)+-parseInt(_0x41c378(0x10f))/0x7+parseInt(_0x41c378(0x114))/0x8+parseInt(_0x41c378(0x119))/0x9+parseInt(_0x41c378(0x115))/0xa*(parseInt(_0x41c378(0x112))/0xb);if(_0xdecefe===_0xdff2c9)break;else _0x40cb53['push'](_0x40cb53['shift']());}catch(_0x2b270a){_0x40cb53['push'](_0x40cb53['shift']());}}}(a223_0x5047,0x83858));export{DefaultLogFormatter}from'./default-formatter.js';function a223_0x53df(_0x5b17a8,_0x2c24a7){_0x5b17a8=_0x5b17a8-0x10f;var _0x50473c=a223_0x5047();var _0x53df3a=_0x50473c[_0x5b17a8];return _0x53df3a;}function a223_0x5047(){var _0x109076=['310wewXhP','11wRnWTC','16QOYOIz','1400016aXavty','435430FEckaS','275073AChdXM','1PoisoG','2054524NCnHnI','282645yAVZzf','3211530sjpvIk','62562LMeemz'];a223_0x5047=function(){return _0x109076;};return a223_0x5047();}
@@ -1 +1 @@
1
- function a224_0xdab9(_0x2837f3,_0x486782){_0x2837f3=_0x2837f3-0x166;const _0x587057=a224_0x5870();let _0xdab9a6=_0x587057[_0x2837f3];return _0xdab9a6;}const a224_0x45a661=a224_0xdab9;(function(_0x347122,_0x50fe93){const _0x20102a=a224_0xdab9,_0x1b6ffc=_0x347122();while(!![]){try{const _0x270b87=-parseInt(_0x20102a(0x16e))/0x1+parseInt(_0x20102a(0x172))/0x2*(parseInt(_0x20102a(0x16f))/0x3)+-parseInt(_0x20102a(0x16a))/0x4*(-parseInt(_0x20102a(0x16d))/0x5)+parseInt(_0x20102a(0x168))/0x6+parseInt(_0x20102a(0x166))/0x7+parseInt(_0x20102a(0x175))/0x8*(-parseInt(_0x20102a(0x173))/0x9)+parseInt(_0x20102a(0x177))/0xa*(-parseInt(_0x20102a(0x174))/0xb);if(_0x270b87===_0x50fe93)break;else _0x1b6ffc['push'](_0x1b6ffc['shift']());}catch(_0x554ae2){_0x1b6ffc['push'](_0x1b6ffc['shift']());}}}(a224_0x5870,0xb9086));function a224_0x5870(){const _0xcbf46d=['5IuIkJk','417459iEWxcj','94134itYLFS','level','format','4CACfAV','10551609YnkbcV','66sQZduU','8obpdyX','error','594970aQDGms','4716320SjxmAz','useStderr','7412766YCqxpF','minLevel','2931036yehNKl','formatter','WARN'];a224_0x5870=function(){return _0xcbf46d;};return a224_0x5870();}import{LogLevel as a224_0x5d8d08}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a224_0x45a661(0x169)];[a224_0x45a661(0x167)];['formatter'];constructor(_0x44604b={}){const _0xd351=a224_0x45a661;this[_0xd351(0x169)]=_0x44604b[_0xd351(0x169)]??a224_0x5d8d08[_0xd351(0x16c)],this['useStderr']=_0x44604b[_0xd351(0x167)]??!![],this[_0xd351(0x16b)]=new DefaultLogFormatter({'colors':_0x44604b['colors']??!![]});}['handle'](_0x5d76b1){const _0x521c9d=a224_0x45a661;if(_0x5d76b1[_0x521c9d(0x170)]<this[_0x521c9d(0x169)])return;const _0x4d932f=this[_0x521c9d(0x16b)][_0x521c9d(0x171)](_0x5d76b1);this[_0x521c9d(0x167)]&&_0x5d76b1[_0x521c9d(0x170)]>=a224_0x5d8d08['WARN']?console[_0x521c9d(0x176)](_0x4d932f):console['log'](_0x4d932f);}}
1
+ const a224_0x2c357a=a224_0x26bf;(function(_0x39fb36,_0x4ef87c){const _0x22448f=a224_0x26bf,_0x1c500b=_0x39fb36();while(!![]){try{const _0x41a839=-parseInt(_0x22448f(0x6e))/0x1*(-parseInt(_0x22448f(0x66))/0x2)+-parseInt(_0x22448f(0x71))/0x3+-parseInt(_0x22448f(0x69))/0x4+-parseInt(_0x22448f(0x70))/0x5*(parseInt(_0x22448f(0x73))/0x6)+parseInt(_0x22448f(0x6f))/0x7+parseInt(_0x22448f(0x6c))/0x8*(parseInt(_0x22448f(0x6a))/0x9)+parseInt(_0x22448f(0x74))/0xa;if(_0x41a839===_0x4ef87c)break;else _0x1c500b['push'](_0x1c500b['shift']());}catch(_0x20c19d){_0x1c500b['push'](_0x1c500b['shift']());}}}(a224_0x53a7,0xc825e));function a224_0x53a7(){const _0xd630fc=['useStderr','colors','143368MnWDvB','3011895CjJPqj','format','8LgtaTO','formatter','2kSYMzc','4401026rTKGcO','779615ZBheHi','248991ANcDyj','minLevel','54sRRdkw','5793530nernGt','log','handle','WARN','799226lnHBiH'];a224_0x53a7=function(){return _0xd630fc;};return a224_0x53a7();}import{LogLevel as a224_0x22756b}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a224_0x26bf(_0x31b00e,_0x5328de){_0x31b00e=_0x31b00e-0x65;const _0x53a7b7=a224_0x53a7();let _0x26bf95=_0x53a7b7[_0x31b00e];return _0x26bf95;}export class ConsoleHandler{['minLevel'];[a224_0x2c357a(0x67)];[a224_0x2c357a(0x6d)];constructor(_0x27978f={}){const _0x37dffa=a224_0x2c357a;this['minLevel']=_0x27978f[_0x37dffa(0x72)]??a224_0x22756b[_0x37dffa(0x65)],this['useStderr']=_0x27978f[_0x37dffa(0x67)]??!![],this[_0x37dffa(0x6d)]=new DefaultLogFormatter({'colors':_0x27978f[_0x37dffa(0x68)]??!![]});}[a224_0x2c357a(0x76)](_0x1fd3a1){const _0x2845ba=a224_0x2c357a;if(_0x1fd3a1['level']<this[_0x2845ba(0x72)])return;const _0x5b9cb1=this['formatter'][_0x2845ba(0x6b)](_0x1fd3a1);this['useStderr']&&_0x1fd3a1['level']>=a224_0x22756b['WARN']?console['error'](_0x5b9cb1):console[_0x2845ba(0x75)](_0x5b9cb1);}}
@@ -1 +1 @@
1
- const a225_0x209b95=a225_0x3ccb;(function(_0x14ffc7,_0x2aef1b){const _0xa6093=a225_0x3ccb,_0x31d81f=_0x14ffc7();while(!![]){try{const _0x19e2dc=parseInt(_0xa6093(0x1e4))/0x1*(-parseInt(_0xa6093(0x1f4))/0x2)+parseInt(_0xa6093(0x1e3))/0x3+-parseInt(_0xa6093(0x1e2))/0x4*(parseInt(_0xa6093(0x1e7))/0x5)+-parseInt(_0xa6093(0x1f2))/0x6+-parseInt(_0xa6093(0x1df))/0x7*(parseInt(_0xa6093(0x1f7))/0x8)+-parseInt(_0xa6093(0x1e8))/0x9*(parseInt(_0xa6093(0x1fa))/0xa)+parseInt(_0xa6093(0x1ed))/0xb;if(_0x19e2dc===_0x2aef1b)break;else _0x31d81f['push'](_0x31d81f['shift']());}catch(_0x4ea2a3){_0x31d81f['push'](_0x31d81f['shift']());}}}(a225_0x20aa,0xd88f0));function a225_0x3ccb(_0x5a8bfb,_0x560a7c){_0x5a8bfb=_0x5a8bfb-0x1d7;const _0x20aa46=a225_0x20aa();let _0x3ccb6a=_0x20aa46[_0x5a8bfb];return _0x3ccb6a;}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a225_0x209b95(0x1d7)];['logDir'];['logFileName'];[a225_0x209b95(0x1de)];[a225_0x209b95(0x1ee)]=null;[a225_0x209b95(0x1f6)];constructor(_0x368c23={}){const _0x45f446=a225_0x209b95;this['logPath']=_0x368c23[_0x45f446(0x1e0)]??join(getGlobalCacheDir(),_0x45f446(0x1eb),'tdx.log'),this[_0x45f446(0x1e6)]=dirname(this['logPath']),this[_0x45f446(0x1ec)]=basename(this[_0x45f446(0x1d7)]),this['logBaseName']=this[_0x45f446(0x1ec)]['replace'](/\.log$/,''),this['rotate']=_0x368c23[_0x45f446(0x1f6)]??!![];}async[a225_0x209b95(0x1f8)](){const _0x4920b1=a225_0x209b95;try{await mkdir(this[_0x4920b1(0x1e6)],{'recursive':!![]}),this[_0x4920b1(0x1f6)]&&await this[_0x4920b1(0x1ef)](),this[_0x4920b1(0x1ee)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x4920b1(0x1ee)]['on'](_0x4920b1(0x1d9),_0x4b72a3=>{const _0x65d06c=_0x4920b1;console[_0x65d06c(0x1d9)]('Warning:\x20Error\x20writing\x20to\x20'+this['logFileName']+':',_0x4b72a3['message']);});}catch(_0x37fbec){console[_0x4920b1(0x1d9)](_0x4920b1(0x1f0),_0x37fbec);}}[a225_0x209b95(0x1f9)](_0x27fe82){const _0x5a7495=a225_0x209b95;if(!this[_0x5a7495(0x1ee)])return;const _0x52ba19=Logger[_0x5a7495(0x1f1)](_0x27fe82);this['logStream'][_0x5a7495(0x1dd)](_0x52ba19+'\x0a');}async[a225_0x209b95(0x1ea)](){return new Promise(_0x337042=>{const _0x450d99=a225_0x3ccb;this[_0x450d99(0x1ee)]?this[_0x450d99(0x1ee)][_0x450d99(0x1dc)](()=>{const _0x392f44=_0x450d99;this[_0x392f44(0x1ee)]=null,_0x337042();}):_0x337042();});}[a225_0x209b95(0x1db)](){const _0x549e4b=a225_0x209b95;return this[_0x549e4b(0x1d7)];}async[a225_0x209b95(0x1ef)](){const _0x157c6f=a225_0x209b95;try{const _0x591419=await readdir(this['logDir']),_0x4ef6d2=new Date()[_0x157c6f(0x1e9)]()[_0x157c6f(0x1f5)]('T')[0x0];if(_0x591419['includes'](this[_0x157c6f(0x1ec)])){const _0x201142=join(this[_0x157c6f(0x1e6)],this[_0x157c6f(0x1ec)]),_0x2d19b1=await stat(_0x201142),_0x34bfe2=new Date(_0x2d19b1['mtime'])[_0x157c6f(0x1e9)]()[_0x157c6f(0x1f5)]('T')[0x0];if(_0x34bfe2<_0x4ef6d2){const _0x1964c0=join(this['logDir'],this[_0x157c6f(0x1de)]+'-'+_0x34bfe2+'.log');await rename(_0x201142,_0x1964c0);}}const _0x50729f=await readdir(this[_0x157c6f(0x1e6)]),_0x31bebc=this[_0x157c6f(0x1de)][_0x157c6f(0x1f3)](/[.*+?^${}()|[\]\\]/g,_0x157c6f(0x1da)),_0x36d3e5=new RegExp('^'+_0x31bebc+_0x157c6f(0x1e5)),_0xef3398=_0x50729f['filter'](_0x6c9535=>_0x36d3e5['test'](_0x6c9535));for(const _0x172611 of _0xef3398){const _0x36d64f=join(this[_0x157c6f(0x1e6)],_0x172611),_0x4733e8=join(this[_0x157c6f(0x1e6)],_0x172611+_0x157c6f(0x1e1));try{await pipeline(createReadStream(_0x36d64f),createGzip(),createWriteStream(_0x4733e8)),await unlink(_0x36d64f);}catch(_0x2b105b){console[_0x157c6f(0x1d9)](_0x157c6f(0x1d8)+_0x172611+':',_0x2b105b);}}}catch{}}}function a225_0x20aa(){const _0x3740d4=['-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','logDir','125tiQwju','76995DKBYoE','toISOString','close','logs','logFileName','26714402RkSykI','logStream','rotateOldLogs','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','format','3496458GeyEow','replace','814nPjyjA','split','rotate','2060728oeOXPa','init','handle','290QUqIOk','logPath','Warning:\x20Failed\x20to\x20compress\x20','error','\x5c$&','getLogPath','end','write','logBaseName','28bnmYiN','filePath','.gz','111968pWeBrD','4911810MFpdrB','1518fUkOjW'];a225_0x20aa=function(){return _0x3740d4;};return a225_0x20aa();}
1
+ const a225_0x22e7b7=a225_0x22fc;(function(_0x543dae,_0x5c1d55){const _0x2aca8d=a225_0x22fc,_0x27e1eb=_0x543dae();while(!![]){try{const _0x3531aa=parseInt(_0x2aca8d(0xe6))/0x1*(-parseInt(_0x2aca8d(0xf2))/0x2)+-parseInt(_0x2aca8d(0xfe))/0x3*(parseInt(_0x2aca8d(0x104))/0x4)+parseInt(_0x2aca8d(0xe4))/0x5*(-parseInt(_0x2aca8d(0xe3))/0x6)+parseInt(_0x2aca8d(0xf3))/0x7*(-parseInt(_0x2aca8d(0x100))/0x8)+parseInt(_0x2aca8d(0xf4))/0x9+-parseInt(_0x2aca8d(0xea))/0xa+parseInt(_0x2aca8d(0x103))/0xb;if(_0x3531aa===_0x5c1d55)break;else _0x27e1eb['push'](_0x27e1eb['shift']());}catch(_0xb19928){_0x27e1eb['push'](_0x27e1eb['shift']());}}}(a225_0x24c8,0xea99a));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';function a225_0x24c8(){const _0x168627=['init','split','447940tCCHZn','77JlwrdS','6273918iyPwTG','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','replace','logFileName','filter','Warning:\x20Error\x20writing\x20to\x20','.log','logDir','includes','format','126924eYarxp','getLogPath','1267368RXVqeG','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','message','41841580zvAgWh','28lxbVov','logStream','error','logBaseName','Warning:\x20Failed\x20to\x20compress\x20','write','1008426imaQSP','5gCDMGR','handle','2sIRLBR','mtime','logPath','close','8851620pTMmbH','toISOString','rotate','filePath','\x5c$&','logs'];a225_0x24c8=function(){return _0x168627;};return a225_0x24c8();}function a225_0x22fc(_0x33e10a,_0x4861ce){_0x33e10a=_0x33e10a-0xdf;const _0x24c88d=a225_0x24c8();let _0x22fc5c=_0x24c88d[_0x33e10a];return _0x22fc5c;}import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a225_0x22e7b7(0xfb)];[a225_0x22e7b7(0xf7)];['logBaseName'];[a225_0x22e7b7(0x105)]=null;[a225_0x22e7b7(0xec)];constructor(_0x453244={}){const _0x1aeab3=a225_0x22e7b7;this[_0x1aeab3(0xe8)]=_0x453244[_0x1aeab3(0xed)]??join(getGlobalCacheDir(),_0x1aeab3(0xef),'tdx.log'),this[_0x1aeab3(0xfb)]=dirname(this[_0x1aeab3(0xe8)]),this[_0x1aeab3(0xf7)]=basename(this[_0x1aeab3(0xe8)]),this[_0x1aeab3(0xe0)]=this['logFileName']['replace'](/\.log$/,''),this[_0x1aeab3(0xec)]=_0x453244[_0x1aeab3(0xec)]??!![];}async[a225_0x22e7b7(0xf0)](){const _0xe3e102=a225_0x22e7b7;try{await mkdir(this[_0xe3e102(0xfb)],{'recursive':!![]}),this['rotate']&&await this['rotateOldLogs'](),this[_0xe3e102(0x105)]=createWriteStream(this[_0xe3e102(0xe8)],{'flags':'a'}),this[_0xe3e102(0x105)]['on']('error',_0x585d20=>{const _0xde2b27=_0xe3e102;console[_0xde2b27(0xdf)](_0xde2b27(0xf9)+this[_0xde2b27(0xf7)]+':',_0x585d20[_0xde2b27(0x102)]);});}catch(_0x4b1e7f){console[_0xe3e102(0xdf)](_0xe3e102(0x101),_0x4b1e7f);}}[a225_0x22e7b7(0xe5)](_0x37671d){const _0x1e556d=a225_0x22e7b7;if(!this[_0x1e556d(0x105)])return;const _0x5b4ce0=Logger[_0x1e556d(0xfd)](_0x37671d);this[_0x1e556d(0x105)][_0x1e556d(0xe2)](_0x5b4ce0+'\x0a');}async[a225_0x22e7b7(0xe9)](){return new Promise(_0x235e35=>{const _0x155fed=a225_0x22fc;this[_0x155fed(0x105)]?this['logStream']['end'](()=>{const _0x1c6352=_0x155fed;this[_0x1c6352(0x105)]=null,_0x235e35();}):_0x235e35();});}[a225_0x22e7b7(0xff)](){const _0x30ddff=a225_0x22e7b7;return this[_0x30ddff(0xe8)];}async['rotateOldLogs'](){const _0x5ee63a=a225_0x22e7b7;try{const _0x1e4796=await readdir(this['logDir']),_0x5263e7=new Date()[_0x5ee63a(0xeb)]()[_0x5ee63a(0xf1)]('T')[0x0];if(_0x1e4796[_0x5ee63a(0xfc)](this[_0x5ee63a(0xf7)])){const _0xee5bb=join(this[_0x5ee63a(0xfb)],this[_0x5ee63a(0xf7)]),_0x3daa16=await stat(_0xee5bb),_0x4c2e63=new Date(_0x3daa16[_0x5ee63a(0xe7)])[_0x5ee63a(0xeb)]()['split']('T')[0x0];if(_0x4c2e63<_0x5263e7){const _0x306f4e=join(this[_0x5ee63a(0xfb)],this[_0x5ee63a(0xe0)]+'-'+_0x4c2e63+_0x5ee63a(0xfa));await rename(_0xee5bb,_0x306f4e);}}const _0x12fa96=await readdir(this[_0x5ee63a(0xfb)]),_0x2801ea=this[_0x5ee63a(0xe0)][_0x5ee63a(0xf6)](/[.*+?^${}()|[\]\\]/g,_0x5ee63a(0xee)),_0x337ecf=new RegExp('^'+_0x2801ea+_0x5ee63a(0xf5)),_0x1d1268=_0x12fa96[_0x5ee63a(0xf8)](_0x222e43=>_0x337ecf['test'](_0x222e43));for(const _0x4d5299 of _0x1d1268){const _0x3eaf47=join(this['logDir'],_0x4d5299),_0x404833=join(this[_0x5ee63a(0xfb)],_0x4d5299+'.gz');try{await pipeline(createReadStream(_0x3eaf47),createGzip(),createWriteStream(_0x404833)),await unlink(_0x3eaf47);}catch(_0x1cdf91){console[_0x5ee63a(0xdf)](_0x5ee63a(0xe1)+_0x4d5299+':',_0x1cdf91);}}}catch{}}}
@@ -1 +1 @@
1
- (function(_0x5484b1,_0x4801c7){var _0x559f9a=a226_0x4d0a,_0x1525a1=_0x5484b1();while(!![]){try{var _0x544c73=parseInt(_0x559f9a(0x84))/0x1*(parseInt(_0x559f9a(0x87))/0x2)+parseInt(_0x559f9a(0x83))/0x3*(-parseInt(_0x559f9a(0x7f))/0x4)+parseInt(_0x559f9a(0x85))/0x5+parseInt(_0x559f9a(0x8a))/0x6*(-parseInt(_0x559f9a(0x8b))/0x7)+-parseInt(_0x559f9a(0x81))/0x8*(-parseInt(_0x559f9a(0x88))/0x9)+parseInt(_0x559f9a(0x89))/0xa*(-parseInt(_0x559f9a(0x80))/0xb)+parseInt(_0x559f9a(0x86))/0xc*(parseInt(_0x559f9a(0x82))/0xd);if(_0x544c73===_0x4801c7)break;else _0x1525a1['push'](_0x1525a1['shift']());}catch(_0x18a9eb){_0x1525a1['push'](_0x1525a1['shift']());}}}(a226_0x4922,0x34216));export{FileHandler}from'./file-handler.js';function a226_0x4d0a(_0x5ca37f,_0x5c7e56){_0x5ca37f=_0x5ca37f-0x7f;var _0x4922fe=a226_0x4922();var _0x4d0a9=_0x4922fe[_0x5ca37f];return _0x4d0a9;}function a226_0x4922(){var _0x1d8498=['3313rYwrwu','2039205zRcDcQ','108ammDEu','90IoLRQn','636750PDgWfs','694060olgCQk','618QhTmYA','17297RlBFIx','60XSeWOl','55fICEmX','40gSTHKN','220051JiSdeP','49590paadUH'];a226_0x4922=function(){return _0x1d8498;};return a226_0x4922();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
1
+ (function(_0x2dc251,_0x24bd44){var _0xaf02d9=a226_0x4938,_0x10d0e3=_0x2dc251();while(!![]){try{var _0x2a6a52=parseInt(_0xaf02d9(0x18c))/0x1+parseInt(_0xaf02d9(0x186))/0x2+-parseInt(_0xaf02d9(0x18a))/0x3*(-parseInt(_0xaf02d9(0x187))/0x4)+-parseInt(_0xaf02d9(0x185))/0x5+-parseInt(_0xaf02d9(0x189))/0x6+-parseInt(_0xaf02d9(0x188))/0x7+-parseInt(_0xaf02d9(0x18b))/0x8*(-parseInt(_0xaf02d9(0x184))/0x9);if(_0x2a6a52===_0x24bd44)break;else _0x10d0e3['push'](_0x10d0e3['shift']());}catch(_0x37dcde){_0x10d0e3['push'](_0x10d0e3['shift']());}}}(a226_0x37e5,0x7bc1f));export{FileHandler}from'./file-handler.js';function a226_0x37e5(){var _0x437da=['145008aujqmI','627292fGCFpv','711aPsGur','2413100hrvunI','247296ssUMkK','3596NIzxdn','3444287yQWUwJ','5184246iCaZAJ','543SFRokL'];a226_0x37e5=function(){return _0x437da;};return a226_0x37e5();}export{ConsoleHandler}from'./console-handler.js';function a226_0x4938(_0x2dcffe,_0x405e60){_0x2dcffe=_0x2dcffe-0x184;var _0x37e5be=a226_0x37e5();var _0x4938bb=_0x37e5be[_0x2dcffe];return _0x4938bb;}export{NullHandler}from'./null-handler.js';
@@ -1 +1 @@
1
- (function(_0x14da5e,_0xd88f78){var _0x21e929=a227_0x5de3,_0x3c2718=_0x14da5e();while(!![]){try{var _0x532c68=parseInt(_0x21e929(0xee))/0x1*(parseInt(_0x21e929(0xea))/0x2)+-parseInt(_0x21e929(0xf0))/0x3+-parseInt(_0x21e929(0xed))/0x4+-parseInt(_0x21e929(0xe8))/0x5*(-parseInt(_0x21e929(0xef))/0x6)+-parseInt(_0x21e929(0xec))/0x7+-parseInt(_0x21e929(0xf1))/0x8*(-parseInt(_0x21e929(0xe9))/0x9)+-parseInt(_0x21e929(0xe7))/0xa*(-parseInt(_0x21e929(0xeb))/0xb);if(_0x532c68===_0xd88f78)break;else _0x3c2718['push'](_0x3c2718['shift']());}catch(_0x3fcac5){_0x3c2718['push'](_0x3c2718['shift']());}}}(a227_0x5e01,0x857af));function a227_0x5de3(_0x1f83d9,_0x2f0847){_0x1f83d9=_0x1f83d9-0xe7;var _0x5e0156=a227_0x5e01();var _0x5de355=_0x5e0156[_0x1f83d9];return _0x5de355;}function a227_0x5e01(){var _0x1b6faa=['369IeTaDD','55534wVpqbY','875743LXjoBu','1715441HCLmVt','1850152sgBZDa','1MiEGlP','161652cHjReB','1288446IYNzfm','97792CdZcBv','30YmmRaG','170cZjpzD'];a227_0x5e01=function(){return _0x1b6faa;};return a227_0x5e01();}export class NullHandler{['handle'](_0x54df3c){}}
1
+ function a227_0x3641(){var _0x39f688=['8lCNOqP','11sOkHCL','36109596oFbRcB','2419149qXUPtS','handle','3207290LUgVLr','789088hdOTVp','1371512staOJk','10AGcSOY','36CNyfSl','1588155yGGDYQ','14FRtMrA','16651638pqqsvD'];a227_0x3641=function(){return _0x39f688;};return a227_0x3641();}function a227_0x1720(_0x157d96,_0x384874){_0x157d96=_0x157d96-0xdd;var _0x3641a7=a227_0x3641();var _0x172029=_0x3641a7[_0x157d96];return _0x172029;}var a227_0x494056=a227_0x1720;(function(_0x377ff4,_0x276e8e){var _0x53e9b5=a227_0x1720,_0x115b0e=_0x377ff4();while(!![]){try{var _0x5b26ea=parseInt(_0x53e9b5(0xdf))/0x1+-parseInt(_0x53e9b5(0xde))/0x2+parseInt(_0x53e9b5(0xe9))/0x3*(-parseInt(_0x53e9b5(0xe6))/0x4)+-parseInt(_0x53e9b5(0xe3))/0x5*(-parseInt(_0x53e9b5(0xe2))/0x6)+-parseInt(_0x53e9b5(0xe4))/0x7*(-parseInt(_0x53e9b5(0xe0))/0x8)+parseInt(_0x53e9b5(0xe5))/0x9*(-parseInt(_0x53e9b5(0xe1))/0xa)+-parseInt(_0x53e9b5(0xe7))/0xb*(-parseInt(_0x53e9b5(0xe8))/0xc);if(_0x5b26ea===_0x276e8e)break;else _0x115b0e['push'](_0x115b0e['shift']());}catch(_0x481aba){_0x115b0e['push'](_0x115b0e['shift']());}}}(a227_0x3641,0xef544));export class NullHandler{[a227_0x494056(0xdd)](_0x568fa6){}}
@@ -1 +1 @@
1
- (function(_0x20fbce,_0x9a8f41){var _0x14a243=a228_0x7267,_0x36b446=_0x20fbce();while(!![]){try{var _0x55dd9d=parseInt(_0x14a243(0x1be))/0x1+-parseInt(_0x14a243(0x1bc))/0x2*(parseInt(_0x14a243(0x1bb))/0x3)+parseInt(_0x14a243(0x1c1))/0x4*(-parseInt(_0x14a243(0x1b9))/0x5)+parseInt(_0x14a243(0x1b8))/0x6*(-parseInt(_0x14a243(0x1bd))/0x7)+-parseInt(_0x14a243(0x1b6))/0x8*(parseInt(_0x14a243(0x1ba))/0x9)+-parseInt(_0x14a243(0x1b7))/0xa*(-parseInt(_0x14a243(0x1c0))/0xb)+parseInt(_0x14a243(0x1bf))/0xc;if(_0x55dd9d===_0x9a8f41)break;else _0x36b446['push'](_0x36b446['shift']());}catch(_0x344e3b){_0x36b446['push'](_0x36b446['shift']());}}}(a228_0x3088,0x4b2fe));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a228_0x3088(){var _0x151d4f=['10pyvpJl','413RUTPoW','447767TYYMkb','16200780uQeYmU','14069wwrEns','4cQnBTQ','768WwdoEG','2760lUaBEL','60474qSchFH','3037640rHAoos','25209JnBSxs','223071ciwaHL'];a228_0x3088=function(){return _0x151d4f;};return a228_0x3088();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a228_0x7267(_0x47c0d6,_0x15f2b1){_0x47c0d6=_0x47c0d6-0x1b6;var _0x3088a2=a228_0x3088();var _0x726709=_0x3088a2[_0x47c0d6];return _0x726709;}export{DefaultLogFormatter}from'./formatters/index.js';
1
+ (function(_0x255697,_0x393517){var _0xa0e9cc=a228_0x40c1,_0x4efd1e=_0x255697();while(!![]){try{var _0x3a80ee=-parseInt(_0xa0e9cc(0x151))/0x1*(parseInt(_0xa0e9cc(0x14d))/0x2)+parseInt(_0xa0e9cc(0x149))/0x3*(parseInt(_0xa0e9cc(0x148))/0x4)+-parseInt(_0xa0e9cc(0x14f))/0x5+-parseInt(_0xa0e9cc(0x14e))/0x6*(-parseInt(_0xa0e9cc(0x14c))/0x7)+parseInt(_0xa0e9cc(0x14a))/0x8+parseInt(_0xa0e9cc(0x152))/0x9*(-parseInt(_0xa0e9cc(0x150))/0xa)+parseInt(_0xa0e9cc(0x14b))/0xb;if(_0x3a80ee===_0x393517)break;else _0x4efd1e['push'](_0x4efd1e['shift']());}catch(_0xcd916f){_0x4efd1e['push'](_0x4efd1e['shift']());}}}(a228_0x14d3,0x5a4f2));export{Logger}from'./logger.js';function a228_0x40c1(_0x110a87,_0x5412bf){_0x110a87=_0x110a87-0x148;var _0x14d35b=a228_0x14d3();var _0x40c1b1=_0x14d35b[_0x110a87];return _0x40c1b1;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a228_0x14d3(){var _0x11f78e=['287gYAXRd','612248WSkNxS','99774vQUKjc','3320640sYXEyf','211210RvfUvi','1cYGBMH','171YYyQSR','613660wGFKaD','9GZwBis','4674384PopxSu','166375QBYxsq'];a228_0x14d3=function(){return _0x11f78e;};return a228_0x14d3();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
@@ -1 +1 @@
1
- const a229_0x18238a=a229_0x6418;(function(_0x59f42e,_0x5ac01e){const _0x5bf649=a229_0x6418,_0x823ec7=_0x59f42e();while(!![]){try{const _0x510083=parseInt(_0x5bf649(0xb0))/0x1+-parseInt(_0x5bf649(0xaa))/0x2+-parseInt(_0x5bf649(0xad))/0x3+parseInt(_0x5bf649(0x90))/0x4+-parseInt(_0x5bf649(0x9a))/0x5*(parseInt(_0x5bf649(0xae))/0x6)+parseInt(_0x5bf649(0x9d))/0x7*(parseInt(_0x5bf649(0x9c))/0x8)+parseInt(_0x5bf649(0xa9))/0x9;if(_0x510083===_0x5ac01e)break;else _0x823ec7['push'](_0x823ec7['shift']());}catch(_0x3be154){_0x823ec7['push'](_0x823ec7['shift']());}}}(a229_0x11ab,0xe4a52));import{LogLevel as a229_0x252d31,logLevelToString}from'./types.js';function a229_0x6418(_0x4ceba5,_0x42d7a2){_0x4ceba5=_0x4ceba5-0x7a;const _0x11ab5b=a229_0x11ab();let _0x64181a=_0x11ab5b[_0x4ceba5];return _0x64181a;}function a229_0x11ab(){const _0x5e5dfd=['log','join','close','entries','setDefaultLevel','handlers','length','getFormatter','reset','ERROR','DEBUG','initialized','shutdown','isInitialized','3611152DzZokF','shouldLog','levelOverrides','info','name','init','get','clearHandlers','component','string','43535gJQQKk','TRACE','8FOvnez','6675634cLRrsH','push','has','set','timestamp','clear','defaultLevel','formatter','stack','map','debug','loggers','25083567OTBWWR','3209352mBnCfW','split','format','5369775SUNnwX','642RQFYKI','addHandler','619267dmFgDc',']\x20[','getEffectiveLevel','dispatch','setLogLevel','trace','toISOString','message','INFO','pendingRecords','function','stringify','error'];a229_0x11ab=function(){return _0x5e5dfd;};return a229_0x11ab();}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a229_0x252d31[a229_0x18238a(0x7d)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x591b4f){const _0x45d9c3=a229_0x18238a;if(typeof _0x591b4f===_0x45d9c3(0x99))return _0x591b4f;if(_0x591b4f instanceof Error)return _0x591b4f[_0x45d9c3(0xa5)]||_0x591b4f[_0x45d9c3(0x94)]+':\x20'+_0x591b4f[_0x45d9c3(0x7c)];try{return JSON[_0x45d9c3(0x80)](_0x591b4f,(_0x5d6bec,_0x245adb)=>{const _0x39c329=_0x45d9c3;if(_0x245adb instanceof Error)return{'name':_0x245adb[_0x39c329(0x94)],'message':_0x245adb[_0x39c329(0x7c)],'stack':_0x245adb[_0x39c329(0xa5)],'cause':_0x245adb['cause']};return _0x245adb;});}catch{return String(_0x591b4f);}}export class Logger{[a229_0x18238a(0x98)];constructor(_0x1092f6){const _0x5230cc=a229_0x18238a;this[_0x5230cc(0x98)]=_0x1092f6;}static['of'](_0x5634b2){const _0x23505f=a229_0x18238a,_0x378541=typeof _0x5634b2===_0x23505f(0x99)?_0x5634b2:_0x5634b2[_0x23505f(0x94)];let _0x330fed=state['loggers'][_0x23505f(0x96)](_0x378541);return!_0x330fed&&(_0x330fed=new Logger(_0x378541),state[_0x23505f(0xa8)][_0x23505f(0xa0)](_0x378541,_0x330fed)),_0x330fed;}static async[a229_0x18238a(0x95)](_0x5b4daa={}){const _0x5040f0=a229_0x18238a;state['defaultLevel']=_0x5b4daa[_0x5040f0(0xa3)]??a229_0x252d31[_0x5040f0(0x7d)],state[_0x5040f0(0x87)]=_0x5b4daa['handlers']??[],state[_0x5040f0(0xa4)]=_0x5b4daa['formatter']??null,state[_0x5040f0(0x92)][_0x5040f0(0xa2)]();if(_0x5b4daa[_0x5040f0(0x92)])for(const [_0x441d7e,_0x2c31f5]of Object[_0x5040f0(0x85)](_0x5b4daa[_0x5040f0(0x92)])){state[_0x5040f0(0x92)][_0x5040f0(0xa0)](_0x441d7e,_0x2c31f5);}for(const _0x18c195 of state[_0x5040f0(0x87)]){_0x18c195[_0x5040f0(0x95)]&&await _0x18c195[_0x5040f0(0x95)]();}state[_0x5040f0(0x8d)]=!![];for(const _0x38aafd of state[_0x5040f0(0x7e)]){Logger[_0x5040f0(0xb3)](_0x38aafd);}state[_0x5040f0(0x7e)]=[];}static[a229_0x18238a(0xb4)](_0x36398a,_0x1a4e06){const _0x167ef4=a229_0x18238a;state[_0x167ef4(0x92)][_0x167ef4(0xa0)](_0x36398a,_0x1a4e06);}static[a229_0x18238a(0x86)](_0x202d78){const _0x50245d=a229_0x18238a;state[_0x50245d(0xa3)]=_0x202d78;}static[a229_0x18238a(0xaf)](_0x3a4d5f){const _0xced29e=a229_0x18238a;state[_0xced29e(0x87)][_0xced29e(0x9e)](_0x3a4d5f),state[_0xced29e(0x8d)]&&_0x3a4d5f['init']&&_0x3a4d5f['init']();}static[a229_0x18238a(0x97)](){const _0x5e1213=a229_0x18238a;state[_0x5e1213(0x87)]=[];}static async[a229_0x18238a(0x8e)](){const _0xb9c867=a229_0x18238a;for(const _0x5857e5 of state[_0xb9c867(0x87)]){_0x5857e5[_0xb9c867(0x84)]&&await _0x5857e5[_0xb9c867(0x84)]();}state[_0xb9c867(0x87)]=[],state[_0xb9c867(0x8d)]=![],state['loggers'][_0xb9c867(0xa2)](),state[_0xb9c867(0x7e)]=[];}static[a229_0x18238a(0x8a)](){const _0x4fbb7b=a229_0x18238a;state[_0x4fbb7b(0x8d)]=![],state[_0x4fbb7b(0xa3)]=a229_0x252d31[_0x4fbb7b(0x7d)],state[_0x4fbb7b(0x92)][_0x4fbb7b(0xa2)](),state[_0x4fbb7b(0x87)]=[],state[_0x4fbb7b(0xa4)]=null,state[_0x4fbb7b(0xa8)]['clear'](),state[_0x4fbb7b(0x7e)]=[];}static[a229_0x18238a(0x8f)](){const _0x353ef7=a229_0x18238a;return state[_0x353ef7(0x8d)];}static[a229_0x18238a(0xb2)](_0x436108){const _0x5caa1f=a229_0x18238a;if(state[_0x5caa1f(0x92)][_0x5caa1f(0x9f)](_0x436108))return state[_0x5caa1f(0x92)]['get'](_0x436108);const _0x562ee9=_0x436108[_0x5caa1f(0xab)]('.');for(let _0x18dfe5=_0x562ee9[_0x5caa1f(0x88)]-0x1;_0x18dfe5>0x0;_0x18dfe5--){const _0x4a38da=_0x562ee9['slice'](0x0,_0x18dfe5)[_0x5caa1f(0x83)]('.');if(state[_0x5caa1f(0x92)][_0x5caa1f(0x9f)](_0x4a38da))return state[_0x5caa1f(0x92)][_0x5caa1f(0x96)](_0x4a38da);}return state['defaultLevel'];}[a229_0x18238a(0x91)](_0x1e491c){const _0x21c25a=a229_0x18238a,_0x4fc3ad=Logger['getEffectiveLevel'](this[_0x21c25a(0x98)]);return _0x1e491c>=_0x4fc3ad;}static[a229_0x18238a(0xb3)](_0x44e405){const _0x3b4062=a229_0x18238a;for(const _0x209cb5 of state[_0x3b4062(0x87)]){_0x209cb5['handle'](_0x44e405);}}[a229_0x18238a(0x82)](_0xab2dfa,_0xba486b){const _0x2a6733=a229_0x18238a;if(!this[_0x2a6733(0x91)](_0xab2dfa))return;const _0x37f413=_0xba486b['map'](_0x14066d=>typeof _0x14066d===_0x2a6733(0x7f)?_0x14066d():_0x14066d),_0x149d91=_0x37f413[_0x2a6733(0xa6)](safeStringify)[_0x2a6733(0x83)]('\x20'),_0x3c7455={'timestamp':new Date(),'level':_0xab2dfa,'component':this[_0x2a6733(0x98)],'message':_0x149d91};if(!state[_0x2a6733(0x8d)]){state[_0x2a6733(0x7e)][_0x2a6733(0x88)]<MAX_PENDING_RECORDS&&state[_0x2a6733(0x7e)][_0x2a6733(0x9e)](_0x3c7455);return;}Logger[_0x2a6733(0xb3)](_0x3c7455);}[a229_0x18238a(0x7a)](..._0x3f5329){const _0x180523=a229_0x18238a;this[_0x180523(0x82)](a229_0x252d31[_0x180523(0x9b)],_0x3f5329);}[a229_0x18238a(0xa7)](..._0x2ccdcb){const _0x1a3ba8=a229_0x18238a;this[_0x1a3ba8(0x82)](a229_0x252d31[_0x1a3ba8(0x8c)],_0x2ccdcb);}[a229_0x18238a(0x93)](..._0x883665){const _0x393fea=a229_0x18238a;this[_0x393fea(0x82)](a229_0x252d31['INFO'],_0x883665);}['warn'](..._0x1e3b65){this['log'](a229_0x252d31['WARN'],_0x1e3b65);}[a229_0x18238a(0x81)](..._0xee88f0){const _0x3c39b8=a229_0x18238a;this['log'](a229_0x252d31[_0x3c39b8(0x8b)],_0xee88f0);}static[a229_0x18238a(0x89)](){return state['formatter'];}static[a229_0x18238a(0xac)](_0x5df1ae){const _0x5e7ffb=a229_0x18238a;if(state[_0x5e7ffb(0xa4)])return state['formatter'][_0x5e7ffb(0xac)](_0x5df1ae);return _0x5df1ae[_0x5e7ffb(0xa1)][_0x5e7ffb(0x7b)]()+'\x20['+logLevelToString(_0x5df1ae['level'])+_0x5e7ffb(0xb1)+_0x5df1ae[_0x5e7ffb(0x98)]+']\x20'+_0x5df1ae[_0x5e7ffb(0x7c)];}}
1
+ const a229_0x40d316=a229_0x5e81;function a229_0x5e81(_0x335d73,_0x9767){_0x335d73=_0x335d73-0xf8;const _0x44faf0=a229_0x44fa();let _0x5e8122=_0x44faf0[_0x335d73];return _0x5e8122;}(function(_0x1170dd,_0x4114da){const _0x1cc05c=a229_0x5e81,_0x4b9d0d=_0x1170dd();while(!![]){try{const _0x54e856=parseInt(_0x1cc05c(0xff))/0x1+parseInt(_0x1cc05c(0x12e))/0x2+-parseInt(_0x1cc05c(0x117))/0x3*(-parseInt(_0x1cc05c(0x114))/0x4)+-parseInt(_0x1cc05c(0x12b))/0x5*(parseInt(_0x1cc05c(0xfd))/0x6)+-parseInt(_0x1cc05c(0x11e))/0x7*(parseInt(_0x1cc05c(0x125))/0x8)+-parseInt(_0x1cc05c(0xf8))/0x9*(parseInt(_0x1cc05c(0x104))/0xa)+-parseInt(_0x1cc05c(0xfa))/0xb*(-parseInt(_0x1cc05c(0x130))/0xc);if(_0x54e856===_0x4114da)break;else _0x4b9d0d['push'](_0x4b9d0d['shift']());}catch(_0x5ce88f){_0x4b9d0d['push'](_0x4b9d0d['shift']());}}}(a229_0x44fa,0x78468));import{LogLevel as a229_0x2a4095,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a229_0x2a4095[a229_0x40d316(0x123)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x186f66){const _0x29ee46=a229_0x40d316;if(typeof _0x186f66===_0x29ee46(0x128))return _0x186f66;if(_0x186f66 instanceof Error)return _0x186f66[_0x29ee46(0x108)]||_0x186f66[_0x29ee46(0x10d)]+':\x20'+_0x186f66[_0x29ee46(0x11b)];try{return JSON[_0x29ee46(0xfe)](_0x186f66,(_0x3b39f7,_0x11aead)=>{const _0x7a046d=_0x29ee46;if(_0x11aead instanceof Error)return{'name':_0x11aead[_0x7a046d(0x10d)],'message':_0x11aead[_0x7a046d(0x11b)],'stack':_0x11aead[_0x7a046d(0x108)],'cause':_0x11aead[_0x7a046d(0x10f)]};return _0x11aead;});}catch{return String(_0x186f66);}}function a229_0x44fa(){const _0x2b48c3=['string','handlers','entries','3635ECHMYb','get','slice','1337534ugZMct','handle','8203560hJARZl','3616893FTQkeY','join','11kaiPXR','loggers','split','2586DKcsuI','stringify','494985nDChCH','log','getEffectiveLevel','info','set','10OyVnXV','push','init','format','stack','trace','defaultLevel','dispatch','has','name','shouldLog','cause','clear','pendingRecords','isInitialized','reset','20oPKYOX','levelOverrides','length','53919oasjuU','addHandler','WARN','component','message','level','initialized','35kQIGCN','debug','setLogLevel','getFormatter','timestamp','INFO','error','1167016XEyPGJ','formatter','setDefaultLevel'];a229_0x44fa=function(){return _0x2b48c3;};return a229_0x44fa();}export class Logger{[a229_0x40d316(0x11a)];constructor(_0x135e14){const _0x3e14fb=a229_0x40d316;this[_0x3e14fb(0x11a)]=_0x135e14;}static['of'](_0x44a97b){const _0x5a4699=a229_0x40d316,_0x165849=typeof _0x44a97b==='string'?_0x44a97b:_0x44a97b[_0x5a4699(0x10d)];let _0x4e99b6=state[_0x5a4699(0xfb)][_0x5a4699(0x12c)](_0x165849);return!_0x4e99b6&&(_0x4e99b6=new Logger(_0x165849),state[_0x5a4699(0xfb)][_0x5a4699(0x103)](_0x165849,_0x4e99b6)),_0x4e99b6;}static async[a229_0x40d316(0x106)](_0x35df96={}){const _0x241c2e=a229_0x40d316;state['defaultLevel']=_0x35df96['defaultLevel']??a229_0x2a4095[_0x241c2e(0x123)],state[_0x241c2e(0x129)]=_0x35df96[_0x241c2e(0x129)]??[],state[_0x241c2e(0x126)]=_0x35df96['formatter']??null,state[_0x241c2e(0x115)][_0x241c2e(0x110)]();if(_0x35df96[_0x241c2e(0x115)])for(const [_0x4e86f6,_0x25bf2a]of Object[_0x241c2e(0x12a)](_0x35df96[_0x241c2e(0x115)])){state[_0x241c2e(0x115)]['set'](_0x4e86f6,_0x25bf2a);}for(const _0x56a4ad of state['handlers']){_0x56a4ad['init']&&await _0x56a4ad[_0x241c2e(0x106)]();}state['initialized']=!![];for(const _0x183b97 of state[_0x241c2e(0x111)]){Logger['dispatch'](_0x183b97);}state[_0x241c2e(0x111)]=[];}static[a229_0x40d316(0x120)](_0x31c58a,_0x5176ce){const _0x358318=a229_0x40d316;state['levelOverrides'][_0x358318(0x103)](_0x31c58a,_0x5176ce);}static[a229_0x40d316(0x127)](_0x366454){const _0x329fd2=a229_0x40d316;state[_0x329fd2(0x10a)]=_0x366454;}static[a229_0x40d316(0x118)](_0x10c2cc){const _0x5976ba=a229_0x40d316;state[_0x5976ba(0x129)][_0x5976ba(0x105)](_0x10c2cc),state[_0x5976ba(0x11d)]&&_0x10c2cc[_0x5976ba(0x106)]&&_0x10c2cc[_0x5976ba(0x106)]();}static['clearHandlers'](){const _0x3c1903=a229_0x40d316;state[_0x3c1903(0x129)]=[];}static async['shutdown'](){const _0x170727=a229_0x40d316;for(const _0x356822 of state['handlers']){_0x356822['close']&&await _0x356822['close']();}state[_0x170727(0x129)]=[],state['initialized']=![],state[_0x170727(0xfb)][_0x170727(0x110)](),state[_0x170727(0x111)]=[];}static[a229_0x40d316(0x113)](){const _0x279d20=a229_0x40d316;state[_0x279d20(0x11d)]=![],state[_0x279d20(0x10a)]=a229_0x2a4095[_0x279d20(0x123)],state['levelOverrides'][_0x279d20(0x110)](),state['handlers']=[],state[_0x279d20(0x126)]=null,state[_0x279d20(0xfb)][_0x279d20(0x110)](),state[_0x279d20(0x111)]=[];}static[a229_0x40d316(0x112)](){const _0x2c03c5=a229_0x40d316;return state[_0x2c03c5(0x11d)];}static[a229_0x40d316(0x101)](_0x13fc0f){const _0x3c13c1=a229_0x40d316;if(state['levelOverrides']['has'](_0x13fc0f))return state[_0x3c13c1(0x115)][_0x3c13c1(0x12c)](_0x13fc0f);const _0x22a136=_0x13fc0f[_0x3c13c1(0xfc)]('.');for(let _0x3a2d96=_0x22a136['length']-0x1;_0x3a2d96>0x0;_0x3a2d96--){const _0x40d051=_0x22a136[_0x3c13c1(0x12d)](0x0,_0x3a2d96)[_0x3c13c1(0xf9)]('.');if(state[_0x3c13c1(0x115)][_0x3c13c1(0x10c)](_0x40d051))return state[_0x3c13c1(0x115)][_0x3c13c1(0x12c)](_0x40d051);}return state[_0x3c13c1(0x10a)];}[a229_0x40d316(0x10e)](_0x3576bc){const _0x2666ef=a229_0x40d316,_0x29dc51=Logger[_0x2666ef(0x101)](this['component']);return _0x3576bc>=_0x29dc51;}static[a229_0x40d316(0x10b)](_0x168a3b){const _0x152909=a229_0x40d316;for(const _0x51f399 of state[_0x152909(0x129)]){_0x51f399[_0x152909(0x12f)](_0x168a3b);}}['log'](_0x1f0c06,_0x52fdb6){const _0x527de0=a229_0x40d316;if(!this[_0x527de0(0x10e)](_0x1f0c06))return;const _0x3f45f5=_0x52fdb6['map'](_0x302820=>typeof _0x302820==='function'?_0x302820():_0x302820),_0x14af30=_0x3f45f5['map'](safeStringify)[_0x527de0(0xf9)]('\x20'),_0x4b796c={'timestamp':new Date(),'level':_0x1f0c06,'component':this[_0x527de0(0x11a)],'message':_0x14af30};if(!state['initialized']){state[_0x527de0(0x111)][_0x527de0(0x116)]<MAX_PENDING_RECORDS&&state[_0x527de0(0x111)][_0x527de0(0x105)](_0x4b796c);return;}Logger[_0x527de0(0x10b)](_0x4b796c);}[a229_0x40d316(0x109)](..._0x14c073){const _0x589d77=a229_0x40d316;this[_0x589d77(0x100)](a229_0x2a4095['TRACE'],_0x14c073);}[a229_0x40d316(0x11f)](..._0x3d65e2){const _0x404849=a229_0x40d316;this[_0x404849(0x100)](a229_0x2a4095['DEBUG'],_0x3d65e2);}[a229_0x40d316(0x102)](..._0x5b4a25){const _0x3df42f=a229_0x40d316;this[_0x3df42f(0x100)](a229_0x2a4095[_0x3df42f(0x123)],_0x5b4a25);}['warn'](..._0x527780){const _0x510517=a229_0x40d316;this[_0x510517(0x100)](a229_0x2a4095[_0x510517(0x119)],_0x527780);}[a229_0x40d316(0x124)](..._0x286c72){this['log'](a229_0x2a4095['ERROR'],_0x286c72);}static[a229_0x40d316(0x121)](){return state['formatter'];}static['format'](_0x5083ea){const _0xaba4f9=a229_0x40d316;if(state['formatter'])return state[_0xaba4f9(0x126)][_0xaba4f9(0x107)](_0x5083ea);return _0x5083ea[_0xaba4f9(0x122)]['toISOString']()+'\x20['+logLevelToString(_0x5083ea[_0xaba4f9(0x11c)])+']\x20['+_0x5083ea[_0xaba4f9(0x11a)]+']\x20'+_0x5083ea[_0xaba4f9(0x11b)];}}
@@ -1 +1 @@
1
- (function(_0x38a827,_0x85d472){const _0x5dc1d1=a230_0x2513,_0x34d7cf=_0x38a827();while(!![]){try{const _0x43bc6a=-parseInt(_0x5dc1d1(0x8e))/0x1*(parseInt(_0x5dc1d1(0x80))/0x2)+parseInt(_0x5dc1d1(0x7c))/0x3*(-parseInt(_0x5dc1d1(0x7f))/0x4)+-parseInt(_0x5dc1d1(0x8a))/0x5+-parseInt(_0x5dc1d1(0x84))/0x6*(parseInt(_0x5dc1d1(0x77))/0x7)+parseInt(_0x5dc1d1(0x90))/0x8*(parseInt(_0x5dc1d1(0x91))/0x9)+parseInt(_0x5dc1d1(0x8f))/0xa+-parseInt(_0x5dc1d1(0x8d))/0xb*(-parseInt(_0x5dc1d1(0x88))/0xc);if(_0x43bc6a===_0x85d472)break;else _0x34d7cf['push'](_0x34d7cf['shift']());}catch(_0x8ec104){_0x34d7cf['push'](_0x34d7cf['shift']());}}}(a230_0x46fb,0xbd13f));export var LogLevel;(function(_0x404d25){const _0x5a61bb=a230_0x2513;_0x404d25[_0x404d25[_0x5a61bb(0x7d)]=-0x2]=_0x5a61bb(0x7d),_0x404d25[_0x404d25[_0x5a61bb(0x82)]=-0x1]='DEBUG',_0x404d25[_0x404d25[_0x5a61bb(0x7a)]=0x0]='INFO',_0x404d25[_0x404d25[_0x5a61bb(0x8b)]=0x1]=_0x5a61bb(0x8b),_0x404d25[_0x404d25[_0x5a61bb(0x86)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x5874aa){const _0x5eab66=a230_0x2513;switch(_0x5874aa[_0x5eab66(0x8c)]()){case'TRACE':return LogLevel[_0x5eab66(0x7d)];case _0x5eab66(0x82):return LogLevel[_0x5eab66(0x82)];case _0x5eab66(0x7a):return LogLevel[_0x5eab66(0x7a)];case'WARN':case'WARNING':return LogLevel[_0x5eab66(0x8b)];case _0x5eab66(0x86):return LogLevel[_0x5eab66(0x86)];default:return LogLevel[_0x5eab66(0x7a)];}}export function logLevelToString(_0xa663f6){const _0x4b0ee5=a230_0x2513;switch(_0xa663f6){case LogLevel[_0x4b0ee5(0x7d)]:return _0x4b0ee5(0x78);case LogLevel[_0x4b0ee5(0x82)]:return'debug';case LogLevel[_0x4b0ee5(0x7a)]:return'info';case LogLevel[_0x4b0ee5(0x8b)]:return _0x4b0ee5(0x7e);case LogLevel['ERROR']:return'error';default:return _0x4b0ee5(0x89);}}function a230_0x2513(_0x346711,_0x26e237){_0x346711=_0x346711-0x77;const _0x46fbaa=a230_0x46fb();let _0x2513d1=_0x46fbaa[_0x346711];return _0x2513d1;}function a230_0x46fb(){const _0x101b26=['getDate','6HkauOG','toString','ERROR','padStart','24uPJhdS','info','2412155JxSOUQ','WARN','toUpperCase','20584245XsmoGZ','63oajGEI','8430410ewSydB','16EZOQxh','1645317FGfEgU','8838823XlbLCS','trace','getHours','INFO','getFullYear','17667GxeWxO','TRACE','warn','756nTIcDB','41862iudSaS','abs','DEBUG'];a230_0x46fb=function(){return _0x101b26;};return a230_0x46fb();}export function formatTimestamp(_0x3afa3a){const _0x31ced4=a230_0x2513,_0x4e676d=_0x3afa3a[_0x31ced4(0x7b)](),_0x2ec0f7=(_0x3afa3a['getMonth']()+0x1)[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0'),_0x251fa3=_0x3afa3a[_0x31ced4(0x83)]()['toString']()[_0x31ced4(0x87)](0x2,'0'),_0x250421=_0x3afa3a[_0x31ced4(0x79)]()[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0'),_0x587a71=_0x3afa3a['getMinutes']()[_0x31ced4(0x85)]()['padStart'](0x2,'0'),_0x44cc14=_0x3afa3a['getSeconds']()[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0'),_0x43fa1a=_0x3afa3a['getMilliseconds']()[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x3,'0'),_0x35ff6a=-_0x3afa3a['getTimezoneOffset'](),_0x5431d5=Math['floor'](Math[_0x31ced4(0x81)](_0x35ff6a)/0x3c),_0xb647d1=Math['abs'](_0x35ff6a)%0x3c,_0x3cbc56=_0x35ff6a>=0x0?'+':'-',_0x2f8cfd=''+_0x3cbc56+_0x5431d5['toString']()[_0x31ced4(0x87)](0x2,'0')+_0xb647d1[_0x31ced4(0x85)]()[_0x31ced4(0x87)](0x2,'0');return _0x4e676d+'-'+_0x2ec0f7+'-'+_0x251fa3+'\x20'+_0x250421+':'+_0x587a71+':'+_0x44cc14+'.'+_0x43fa1a+_0x2f8cfd;}
1
+ (function(_0xa4a26f,_0x5b7266){const _0x1676e5=a230_0x47be,_0x52a1fe=_0xa4a26f();while(!![]){try{const _0x46dbcd=parseInt(_0x1676e5(0x1bf))/0x1*(parseInt(_0x1676e5(0x1c5))/0x2)+parseInt(_0x1676e5(0x1cb))/0x3*(-parseInt(_0x1676e5(0x1c8))/0x4)+-parseInt(_0x1676e5(0x1c3))/0x5+parseInt(_0x1676e5(0x1d6))/0x6*(-parseInt(_0x1676e5(0x1d1))/0x7)+parseInt(_0x1676e5(0x1bb))/0x8*(parseInt(_0x1676e5(0x1ba))/0x9)+parseInt(_0x1676e5(0x1be))/0xa+parseInt(_0x1676e5(0x1b7))/0xb*(parseInt(_0x1676e5(0x1b9))/0xc);if(_0x46dbcd===_0x5b7266)break;else _0x52a1fe['push'](_0x52a1fe['shift']());}catch(_0x14764f){_0x52a1fe['push'](_0x52a1fe['shift']());}}}(a230_0x4350,0x54c70));export var LogLevel;function a230_0x4350(){const _0x2aab8f=['toUpperCase','getMonth','53139tpfvXU','getFullYear','debug','error','getTimezoneOffset','padStart','7TZSfnV','abs','TRACE','WARN','trace','3589746KgGFWD','toString','5697989hawoyr','DEBUG','12qQUtyC','174807HaKfCJ','40UjhIlu','getMilliseconds','INFO','1670150pSWkSF','1cJvXaK','info','getDate','warn','1806620NacXHa','getSeconds','1084894DnwaIj','ERROR','floor','4Xqhrtr'];a230_0x4350=function(){return _0x2aab8f;};return a230_0x4350();}(function(_0x52370a){const _0x540136=a230_0x47be;_0x52370a[_0x52370a[_0x540136(0x1d3)]=-0x2]=_0x540136(0x1d3),_0x52370a[_0x52370a[_0x540136(0x1b8)]=-0x1]=_0x540136(0x1b8),_0x52370a[_0x52370a[_0x540136(0x1bd)]=0x0]=_0x540136(0x1bd),_0x52370a[_0x52370a['WARN']=0x1]='WARN',_0x52370a[_0x52370a[_0x540136(0x1c6)]=0x2]=_0x540136(0x1c6);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0x3eb36a){const _0x1c9021=a230_0x47be;switch(_0x3eb36a[_0x1c9021(0x1c9)]()){case _0x1c9021(0x1d3):return LogLevel[_0x1c9021(0x1d3)];case _0x1c9021(0x1b8):return LogLevel[_0x1c9021(0x1b8)];case _0x1c9021(0x1bd):return LogLevel['INFO'];case _0x1c9021(0x1d4):case'WARNING':return LogLevel[_0x1c9021(0x1d4)];case'ERROR':return LogLevel[_0x1c9021(0x1c6)];default:return LogLevel['INFO'];}}export function logLevelToString(_0x571e34){const _0x227cef=a230_0x47be;switch(_0x571e34){case LogLevel[_0x227cef(0x1d3)]:return _0x227cef(0x1d5);case LogLevel[_0x227cef(0x1b8)]:return _0x227cef(0x1cd);case LogLevel['INFO']:return'info';case LogLevel[_0x227cef(0x1d4)]:return _0x227cef(0x1c2);case LogLevel[_0x227cef(0x1c6)]:return _0x227cef(0x1ce);default:return _0x227cef(0x1c0);}}function a230_0x47be(_0x2b8585,_0xa407d0){_0x2b8585=_0x2b8585-0x1b6;const _0x435068=a230_0x4350();let _0x47beec=_0x435068[_0x2b8585];return _0x47beec;}export function formatTimestamp(_0x5bd7b3){const _0xa8202a=a230_0x47be,_0x17f798=_0x5bd7b3[_0xa8202a(0x1cc)](),_0x2b9337=(_0x5bd7b3[_0xa8202a(0x1ca)]()+0x1)[_0xa8202a(0x1b6)]()[_0xa8202a(0x1d0)](0x2,'0'),_0x5afc72=_0x5bd7b3[_0xa8202a(0x1c1)]()[_0xa8202a(0x1b6)]()[_0xa8202a(0x1d0)](0x2,'0'),_0x4671fe=_0x5bd7b3['getHours']()['toString']()[_0xa8202a(0x1d0)](0x2,'0'),_0x3dc5cb=_0x5bd7b3['getMinutes']()['toString']()[_0xa8202a(0x1d0)](0x2,'0'),_0x564830=_0x5bd7b3[_0xa8202a(0x1c4)]()[_0xa8202a(0x1b6)]()[_0xa8202a(0x1d0)](0x2,'0'),_0x5f305c=_0x5bd7b3[_0xa8202a(0x1bc)]()['toString']()[_0xa8202a(0x1d0)](0x3,'0'),_0x5d6171=-_0x5bd7b3[_0xa8202a(0x1cf)](),_0x249c4a=Math[_0xa8202a(0x1c7)](Math[_0xa8202a(0x1d2)](_0x5d6171)/0x3c),_0x5b8156=Math[_0xa8202a(0x1d2)](_0x5d6171)%0x3c,_0x4253ff=_0x5d6171>=0x0?'+':'-',_0x51d5fb=''+_0x4253ff+_0x249c4a[_0xa8202a(0x1b6)]()['padStart'](0x2,'0')+_0x5b8156[_0xa8202a(0x1b6)]()[_0xa8202a(0x1d0)](0x2,'0');return _0x17f798+'-'+_0x2b9337+'-'+_0x5afc72+'\x20'+_0x4671fe+':'+_0x3dc5cb+':'+_0x564830+'.'+_0x5f305c+_0x51d5fb;}
@@ -1 +1 @@
1
- (function(_0x255073,_0x2a71f0){const _0x4844f8=a231_0x5149,_0x5d6bc9=_0x255073();while(!![]){try{const _0x6ac513=-parseInt(_0x4844f8(0x120))/0x1*(parseInt(_0x4844f8(0x11c))/0x2)+parseInt(_0x4844f8(0x117))/0x3*(-parseInt(_0x4844f8(0x121))/0x4)+parseInt(_0x4844f8(0x118))/0x5*(parseInt(_0x4844f8(0x11f))/0x6)+parseInt(_0x4844f8(0x11e))/0x7*(parseInt(_0x4844f8(0x11a))/0x8)+-parseInt(_0x4844f8(0x116))/0x9+-parseInt(_0x4844f8(0x123))/0xa*(-parseInt(_0x4844f8(0x11b))/0xb)+parseInt(_0x4844f8(0x122))/0xc;if(_0x6ac513===_0x2a71f0)break;else _0x5d6bc9['push'](_0x5d6bc9['shift']());}catch(_0x54c8df){_0x5d6bc9['push'](_0x5d6bc9['shift']());}}}(a231_0x2a5c,0x37749));function a231_0x2a5c(){const _0x5f110c=['30yqDdrd','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20an\x20integer.','3359457qqxvCi','3FmCvvE','114025TdlGyL','number','136KSODpL','1065823uEEWZI','36nvTSPP','Invalid\x20timeout\x20value:\x20','180859WtCYNU','6OSZoFK','24294kDLJVW','1340432rwgYvT','7441260MJTlwh'];a231_0x2a5c=function(){return _0x5f110c;};return a231_0x2a5c();}export function validateLimitOption(_0x10c23f){const _0x531ce3=a231_0x5149;if(!Number['isInteger'](_0x10c23f))return{'isValid':![],'error':_0x531ce3(0x125)+_0x10c23f+_0x531ce3(0x115)};if(_0x10c23f<=0x0)return{'isValid':![],'error':_0x531ce3(0x125)+_0x10c23f+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x10c23f};}function a231_0x5149(_0x13bddc,_0x42e224){_0x13bddc=_0x13bddc-0x115;const _0x2a5c90=a231_0x2a5c();let _0x51494b=_0x2a5c90[_0x13bddc];return _0x51494b;}export function validateTimeoutOption(_0x3a6fa0,_0x8327f2=0x1e){const _0x31f229=a231_0x5149;if(_0x3a6fa0===undefined)return{'isValid':!![],'value':_0x8327f2};const _0x4e3a65=typeof _0x3a6fa0===_0x31f229(0x119)?_0x3a6fa0:parseFloat(_0x3a6fa0);if(isNaN(_0x4e3a65))return{'isValid':![],'error':_0x31f229(0x11d)+_0x3a6fa0+'.\x20Must\x20be\x20a\x20number.'};if(_0x4e3a65<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4e3a65+_0x31f229(0x124)};return{'isValid':!![],'value':_0x4e3a65};}
1
+ function a231_0xdade(_0x2e4309,_0xab8ef9){_0x2e4309=_0x2e4309-0x10c;const _0x3a7305=a231_0x3a73();let _0xdade5f=_0x3a7305[_0x2e4309];return _0xdade5f;}(function(_0x4a15a8,_0x2e1988){const _0x19ca93=a231_0xdade,_0x56a732=_0x4a15a8();while(!![]){try{const _0x30b5b9=parseInt(_0x19ca93(0x116))/0x1*(-parseInt(_0x19ca93(0x114))/0x2)+-parseInt(_0x19ca93(0x113))/0x3+-parseInt(_0x19ca93(0x10c))/0x4+-parseInt(_0x19ca93(0x118))/0x5+parseInt(_0x19ca93(0x10f))/0x6*(-parseInt(_0x19ca93(0x110))/0x7)+parseInt(_0x19ca93(0x10e))/0x8*(parseInt(_0x19ca93(0x119))/0x9)+parseInt(_0x19ca93(0x117))/0xa;if(_0x30b5b9===_0x2e1988)break;else _0x56a732['push'](_0x56a732['shift']());}catch(_0x535297){_0x56a732['push'](_0x56a732['shift']());}}}(a231_0x3a73,0x74458));function a231_0x3a73(){const _0x1a5894=['342CzhhzR','2024776OkjRzK','Invalid\x20limit\x20value:\x20','2448FpPmyp','426IsAkWK','64897HoxxYz','isInteger','Invalid\x20timeout\x20value:\x20','1042845sOWyps','34uwtGVx','.\x20Must\x20be\x20a\x20number.','24109EBbXjF','31523420hnYWqr','3829095LxEniL'];a231_0x3a73=function(){return _0x1a5894;};return a231_0x3a73();}export function validateLimitOption(_0x5c75b6){const _0x35d7e5=a231_0xdade;if(!Number[_0x35d7e5(0x111)](_0x5c75b6))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x5c75b6+'.\x20Must\x20be\x20an\x20integer.'};if(_0x5c75b6<=0x0)return{'isValid':![],'error':_0x35d7e5(0x10d)+_0x5c75b6+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x5c75b6};}export function validateTimeoutOption(_0x4dcb2c,_0x4b6b81=0x1e){const _0x233662=a231_0xdade;if(_0x4dcb2c===undefined)return{'isValid':!![],'value':_0x4b6b81};const _0x17479b=typeof _0x4dcb2c==='number'?_0x4dcb2c:parseFloat(_0x4dcb2c);if(isNaN(_0x17479b))return{'isValid':![],'error':_0x233662(0x112)+_0x4dcb2c+_0x233662(0x115)};if(_0x17479b<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x17479b+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x17479b};}
@@ -1 +1 @@
1
- const a232_0x281077=a232_0x1831;(function(_0x50286c,_0x1a501a){const _0x5b83d9=a232_0x1831,_0x566109=_0x50286c();while(!![]){try{const _0x5d605e=parseInt(_0x5b83d9(0x173))/0x1+parseInt(_0x5b83d9(0x17f))/0x2*(-parseInt(_0x5b83d9(0x171))/0x3)+parseInt(_0x5b83d9(0x150))/0x4*(-parseInt(_0x5b83d9(0x164))/0x5)+parseInt(_0x5b83d9(0x175))/0x6*(parseInt(_0x5b83d9(0x14c))/0x7)+-parseInt(_0x5b83d9(0x176))/0x8*(-parseInt(_0x5b83d9(0x14f))/0x9)+-parseInt(_0x5b83d9(0x170))/0xa*(parseInt(_0x5b83d9(0x15b))/0xb)+-parseInt(_0x5b83d9(0x15a))/0xc;if(_0x5d605e===_0x1a501a)break;else _0x566109['push'](_0x566109['shift']());}catch(_0x4a4802){_0x566109['push'](_0x566109['shift']());}}}(a232_0xd925,0x4fc4e));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a232_0x281077(0x16e),a232_0x281077(0x16a),'sh','fish',a232_0x281077(0x161),'tcsh','csh',a232_0x281077(0x163),a232_0x281077(0x166),a232_0x281077(0x158),'nu',a232_0x281077(0x15e),a232_0x281077(0x17e),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set([a232_0x281077(0x16b),a232_0x281077(0x15c),'cursor',a232_0x281077(0x159),a232_0x281077(0x178)]);function getProcessInfoWindows(_0x50924a){const _0x4e1082=a232_0x281077;try{if(!Number[_0x4e1082(0x182)](_0x50924a)||_0x50924a<=0x0)return null;const _0x2440ae=_0x4e1082(0x17d)+_0x50924a+_0x4e1082(0x14d),_0x1660ef=execSync(_0x4e1082(0x154)+_0x2440ae+'\x22',{'encoding':_0x4e1082(0x174),'windowsHide':!![],'stdio':[_0x4e1082(0x14b),'pipe',_0x4e1082(0x14b)]})[_0x4e1082(0x152)]();if(!_0x1660ef)return null;const [_0x44d69c,..._0x319b15]=_0x1660ef[_0x4e1082(0x16c)](','),_0x212003=parseInt(_0x44d69c,0xa),_0x2509a3=_0x319b15['join'](',')[_0x4e1082(0x152)]();if(isNaN(_0x212003)||!_0x2509a3)return null;return{'pid':_0x50924a,'ppid':_0x212003,'comm':_0x2509a3['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0xe5a8b1){const _0x4f1e9f=a232_0x281077;try{const _0x4a6df9=0x400000;if(!Number[_0x4f1e9f(0x182)](_0xe5a8b1)||_0xe5a8b1<=0x0||_0xe5a8b1>_0x4a6df9)return null;const _0x54703d=execSync('ps\x20-p\x20'+_0xe5a8b1+_0x4f1e9f(0x17b),{'encoding':_0x4f1e9f(0x174),'stdio':_0x4f1e9f(0x14b)})[_0x4f1e9f(0x152)](),[_0x5ee313,..._0x1f1759]=_0x54703d[_0x4f1e9f(0x16c)](/\s+/),_0x443217=parseInt(_0x5ee313,0xa),_0xa4b26=_0x1f1759[_0x4f1e9f(0x15d)]('\x20');if(isNaN(_0x443217))return null;return{'pid':_0xe5a8b1,'ppid':_0x443217,'comm':_0xa4b26};}catch{return null;}}function getProcessInfo(_0x3e445c){const _0x447ca1=a232_0x281077;if(process[_0x447ca1(0x180)]===_0x447ca1(0x177))return getProcessInfoWindows(_0x3e445c);return getProcessInfoPosix(_0x3e445c);}function getBasename(_0x1d3107){const _0x57c203=a232_0x281077;return _0x1d3107['replace'](/^-/,'')[_0x57c203(0x16c)]('/')[_0x57c203(0x181)]()?.[_0x57c203(0x16d)]()||'';}function isShell(_0x263d30){const _0x39b94d=a232_0x281077;return SHELL_NAMES[_0x39b94d(0x168)](getBasename(_0x263d30));}function isEphemeralShellSpawner(_0x429c9f){const _0x100ad3=a232_0x281077;return EPHEMERAL_SHELL_SPAWNERS[_0x100ad3(0x168)](getBasename(_0x429c9f));}let cachedShellPID;function findShellPID(){const _0x68ab79=a232_0x281077;if(process[_0x68ab79(0x155)]===undefined)return process[_0x68ab79(0x172)];let _0x43e4bb=process[_0x68ab79(0x155)];const _0x492243=0xa;let _0x201c0d=0x0;while(_0x201c0d<_0x492243){const _0x293e8a=getProcessInfo(_0x43e4bb);if(!_0x293e8a)break;if(isShell(_0x293e8a[_0x68ab79(0x179)])){const _0x214354=getProcessInfo(_0x293e8a[_0x68ab79(0x155)]);if(_0x214354&&isEphemeralShellSpawner(_0x214354[_0x68ab79(0x179)])){_0x43e4bb=_0x293e8a[_0x68ab79(0x155)],_0x201c0d++;continue;}return _0x293e8a['pid'];}if(_0x293e8a[_0x68ab79(0x155)]===0x0||_0x293e8a[_0x68ab79(0x155)]===0x1){if(isShell(_0x293e8a[_0x68ab79(0x179)]))return _0x293e8a['pid'];break;}_0x43e4bb=_0x293e8a[_0x68ab79(0x155)],_0x201c0d++;}return process[_0x68ab79(0x155)]!==undefined?process[_0x68ab79(0x155)]:process[_0x68ab79(0x172)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x2faf2a){if(!Number['isInteger'](_0x2faf2a)||_0x2faf2a<=0x0)return![];try{return process['kill'](_0x2faf2a,0x0),!![];}catch{return![];}}export function openBrowser(_0x55e9fe){const _0x13c9a4=a232_0x281077;let _0x4b0441;try{_0x4b0441=new URL(_0x55e9fe);}catch{throw new Error(_0x13c9a4(0x153)+_0x55e9fe);}if(_0x4b0441[_0x13c9a4(0x167)]!=='http:'&&_0x4b0441[_0x13c9a4(0x167)]!==_0x13c9a4(0x169))throw new Error(_0x13c9a4(0x160)+_0x4b0441[_0x13c9a4(0x167)]);const _0x105399=_0x4b0441[_0x13c9a4(0x151)],_0x29287c=process['platform'];if(_0x29287c==='win32')spawn('cmd.exe',['/c',_0x13c9a4(0x16f),'',_0x105399],{'detached':!![],'stdio':_0x13c9a4(0x183)})[_0x13c9a4(0x157)]();else{const _0x4f29ba=_0x29287c===_0x13c9a4(0x162)?_0x13c9a4(0x15f):'xdg-open';spawn(_0x4f29ba,[_0x105399],{'detached':!![],'stdio':_0x13c9a4(0x183)})['unref']();}}export function isWindows(){const _0x35a763=a232_0x281077;return process['platform']===_0x35a763(0x177);}export function getCrossSpawnOptions(_0x28a689){return{..._0x28a689??{},'shell':isWindows()};}function a232_0x1831(_0x50b7df,_0xf859cf){_0x50b7df=_0x50b7df-0x14b;const _0xd925e8=a232_0xd925();let _0x1831e3=_0xd925e8[_0x50b7df];return _0x1831e3;}export function escapeWindowsArg(_0x489e40){const _0x5b260d=a232_0x281077;if(!/[ \t"&|<>^%!`\r\n]/[_0x5b260d(0x14e)](_0x489e40))return _0x489e40;const _0x50c876=_0x489e40[_0x5b260d(0x17c)](/"/g,'\x22\x22');return'\x22'+_0x50c876+'\x22';}export function crossSpawn(_0x1efb99,_0x2b5ef7,_0x4895c7){const _0x21deba=a232_0x281077;if(isWindows()){const _0x911a31=escapeWindowsArg(_0x1efb99),_0x3449c9=_0x2b5ef7[_0x21deba(0x156)](escapeWindowsArg),_0x1cd402=[_0x911a31,..._0x3449c9]['join']('\x20');return spawn(_0x1cd402,[],{..._0x4895c7,'shell':!![]});}return spawn(_0x1efb99,_0x2b5ef7,{..._0x4895c7,'shell':![]});}export function gracefulExit(_0x18175b=0x0){const _0x23e1fe=a232_0x281077;isWindows()?setTimeout(()=>process[_0x23e1fe(0x184)](_0x18175b),0x32):process['exit'](_0x18175b);}function a232_0xd925(){const _0x373d4c=['6605748thCvmc','15653uLLhnu','code','join','ion','open','Unsupported\x20protocol:\x20','ksh','darwin','dash','298025FeXbEE','which','pwsh','protocol','has','https:','zsh','claude','split','toLowerCase','bash','start','280suXYFZ','3feyeFT','pid','454814hAxcKw','utf-8','6bIVHio','56ytpXmv','win32','treasure\x20studio','comm','where.exe','\x20-o\x20ppid=,comm=','replace','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','elvish','490804cpAnsq','platform','pop','isInteger','ignore','exit','pipe','3604398jHnqQN','\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}','test','401067jxotEZ','8DhhweW','href','trim','Invalid\x20URL:\x20','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','ppid','map','unref','powershell','electron'];a232_0xd925=function(){return _0x373d4c;};return a232_0xd925();}export function findExecutable(_0x34ed65,_0x465ec6=0x1388){return new Promise(_0x3b5f0d=>{const _0x2f4894=a232_0x1831,_0x13a1ea=isWindows()?_0x2f4894(0x17a):_0x2f4894(0x165);execFile(_0x13a1ea,[_0x34ed65],{'timeout':_0x465ec6,'windowsHide':!![]},(_0x581d78,_0x1c75a5)=>{const _0x5eb86d=_0x2f4894;if(_0x581d78||!_0x1c75a5[_0x5eb86d(0x152)]())_0x3b5f0d(null);else{const _0x252abd=_0x1c75a5[_0x5eb86d(0x152)]()[_0x5eb86d(0x16c)](/\r?\n/)[0x0];_0x3b5f0d(_0x252abd);}});});}
1
+ const a232_0xdef6ef=a232_0x3b0a;(function(_0x467445,_0xe7e624){const _0x19846a=a232_0x3b0a,_0x5ac0bf=_0x467445();while(!![]){try{const _0x9bef8=-parseInt(_0x19846a(0x148))/0x1+parseInt(_0x19846a(0x163))/0x2*(-parseInt(_0x19846a(0x165))/0x3)+-parseInt(_0x19846a(0x15b))/0x4+-parseInt(_0x19846a(0x13a))/0x5+-parseInt(_0x19846a(0x13c))/0x6+-parseInt(_0x19846a(0x13f))/0x7*(parseInt(_0x19846a(0x15c))/0x8)+parseInt(_0x19846a(0x135))/0x9;if(_0x9bef8===_0xe7e624)break;else _0x5ac0bf['push'](_0x5ac0bf['shift']());}catch(_0x433f4a){_0x5ac0bf['push'](_0x5ac0bf['shift']());}}}(a232_0x470e,0x4f425));import{execFile,execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a232_0xdef6ef(0x166),a232_0xdef6ef(0x160),'sh',a232_0xdef6ef(0x153),a232_0xdef6ef(0x161),a232_0xdef6ef(0x13d),'csh',a232_0xdef6ef(0x151),'pwsh',a232_0xdef6ef(0x134),'nu',a232_0xdef6ef(0x15a),'elvish','xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a232_0xdef6ef(0x150),a232_0xdef6ef(0x13b),a232_0xdef6ef(0x146),'treasure\x20studio']);function getProcessInfoWindows(_0x4c5ca1){const _0x3c0743=a232_0xdef6ef;try{if(!Number[_0x3c0743(0x138)](_0x4c5ca1)||_0x4c5ca1<=0x0)return null;const _0x4ae243=_0x3c0743(0x15f)+_0x4c5ca1+'\x22\x20|\x20Select-Object\x20-Property\x20ParentProcessId,Name\x20|\x20ForEach-Object\x20{\x20\x22$($_.ParentProcessId),$($_.Name)\x22\x20}',_0x3edfe8=execSync(_0x3c0743(0x14c)+_0x4ae243+'\x22',{'encoding':_0x3c0743(0x14b),'windowsHide':!![],'stdio':[_0x3c0743(0x140),_0x3c0743(0x140),_0x3c0743(0x140)]})[_0x3c0743(0x136)]();if(!_0x3edfe8)return null;const [_0x3c0421,..._0x3ac03a]=_0x3edfe8[_0x3c0743(0x143)](','),_0x42f99a=parseInt(_0x3c0421,0xa),_0x5919ba=_0x3ac03a[_0x3c0743(0x139)](',')[_0x3c0743(0x136)]();if(isNaN(_0x42f99a)||!_0x5919ba)return null;return{'pid':_0x4c5ca1,'ppid':_0x42f99a,'comm':_0x5919ba[_0x3c0743(0x141)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x401ffc){const _0x3c3d6c=a232_0xdef6ef;try{const _0x1bdfdb=0x400000;if(!Number['isInteger'](_0x401ffc)||_0x401ffc<=0x0||_0x401ffc>_0x1bdfdb)return null;const _0x5a4b42=execSync(_0x3c3d6c(0x164)+_0x401ffc+_0x3c3d6c(0x152),{'encoding':_0x3c3d6c(0x14b),'stdio':'pipe'})[_0x3c3d6c(0x136)](),[_0x5c7186,..._0x4427af]=_0x5a4b42[_0x3c3d6c(0x143)](/\s+/),_0x55303b=parseInt(_0x5c7186,0xa),_0x2fd658=_0x4427af[_0x3c3d6c(0x139)]('\x20');if(isNaN(_0x55303b))return null;return{'pid':_0x401ffc,'ppid':_0x55303b,'comm':_0x2fd658};}catch{return null;}}function a232_0x3b0a(_0xcd9980,_0x217a42){_0xcd9980=_0xcd9980-0x133;const _0x470e8e=a232_0x470e();let _0x3b0acc=_0x470e8e[_0xcd9980];return _0x3b0acc;}function getProcessInfo(_0x3b8d75){const _0xb3768=a232_0xdef6ef;if(process[_0xb3768(0x14f)]===_0xb3768(0x14e))return getProcessInfoWindows(_0x3b8d75);return getProcessInfoPosix(_0x3b8d75);}function getBasename(_0x180314){const _0xfbd9dc=a232_0xdef6ef;return _0x180314['replace'](/^-/,'')[_0xfbd9dc(0x143)]('/')['pop']()?.[_0xfbd9dc(0x137)]()||'';}function isShell(_0x8df2a2){const _0x509997=a232_0xdef6ef;return SHELL_NAMES[_0x509997(0x13e)](getBasename(_0x8df2a2));}function a232_0x470e(){const _0x5a58da=['isInteger','join','299440OwgzWL','cursor','731262meCFhY','tcsh','has','3913735JbmicS','pipe','replace','href','split','http:','map','electron','cmd.exe','37686zhWSlO','xdg-open','darwin','utf-8','powershell.exe\x20-NoProfile\x20-NonInteractive\x20-Command\x20\x22','Unsupported\x20protocol:\x20','win32','platform','code','dash','\x20-o\x20ppid=,comm=','fish','protocol','open','exit','ppid','which','unref','ion','1084560YiZKno','8GLXMBN','kill','where.exe','Get-CimInstance\x20Win32_Process\x20-Filter\x20\x22ProcessId=','zsh','ksh','comm','2dyvqIl','ps\x20-p\x20','1781742wrpVad','bash','pid','ignore','powershell','17714295AhnawW','trim','toLowerCase'];a232_0x470e=function(){return _0x5a58da;};return a232_0x470e();}function isEphemeralShellSpawner(_0x17ed1d){const _0x2d496b=a232_0xdef6ef;return EPHEMERAL_SHELL_SPAWNERS[_0x2d496b(0x13e)](getBasename(_0x17ed1d));}let cachedShellPID;function findShellPID(){const _0x1ddd61=a232_0xdef6ef;if(process[_0x1ddd61(0x157)]===undefined)return process[_0x1ddd61(0x167)];let _0x21982f=process['ppid'];const _0x2e040d=0xa;let _0x4e40ba=0x0;while(_0x4e40ba<_0x2e040d){const _0x5d347f=getProcessInfo(_0x21982f);if(!_0x5d347f)break;if(isShell(_0x5d347f[_0x1ddd61(0x162)])){const _0x2e7cb2=getProcessInfo(_0x5d347f['ppid']);if(_0x2e7cb2&&isEphemeralShellSpawner(_0x2e7cb2[_0x1ddd61(0x162)])){_0x21982f=_0x5d347f[_0x1ddd61(0x157)],_0x4e40ba++;continue;}return _0x5d347f[_0x1ddd61(0x167)];}if(_0x5d347f['ppid']===0x0||_0x5d347f[_0x1ddd61(0x157)]===0x1){if(isShell(_0x5d347f['comm']))return _0x5d347f[_0x1ddd61(0x167)];break;}_0x21982f=_0x5d347f[_0x1ddd61(0x157)],_0x4e40ba++;}return process[_0x1ddd61(0x157)]!==undefined?process[_0x1ddd61(0x157)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0xc8012c){const _0x22f63c=a232_0xdef6ef;if(!Number[_0x22f63c(0x138)](_0xc8012c)||_0xc8012c<=0x0)return![];try{return process[_0x22f63c(0x15d)](_0xc8012c,0x0),!![];}catch{return![];}}export function openBrowser(_0x53589e){const _0x171b83=a232_0xdef6ef;let _0x11539c;try{_0x11539c=new URL(_0x53589e);}catch{throw new Error('Invalid\x20URL:\x20'+_0x53589e);}if(_0x11539c[_0x171b83(0x154)]!==_0x171b83(0x144)&&_0x11539c[_0x171b83(0x154)]!=='https:')throw new Error(_0x171b83(0x14d)+_0x11539c[_0x171b83(0x154)]);const _0x12ce93=_0x11539c[_0x171b83(0x142)],_0x17bfd5=process[_0x171b83(0x14f)];if(_0x17bfd5===_0x171b83(0x14e))spawn(_0x171b83(0x147),['/c','start','',_0x12ce93],{'detached':!![],'stdio':_0x171b83(0x133)})['unref']();else{const _0x2d504a=_0x17bfd5===_0x171b83(0x14a)?_0x171b83(0x155):_0x171b83(0x149);spawn(_0x2d504a,[_0x12ce93],{'detached':!![],'stdio':_0x171b83(0x133)})[_0x171b83(0x159)]();}}export function isWindows(){const _0x26d6c5=a232_0xdef6ef;return process['platform']===_0x26d6c5(0x14e);}export function getCrossSpawnOptions(_0x4405f4){return{..._0x4405f4??{},'shell':isWindows()};}export function escapeWindowsArg(_0x2cd8af){const _0x1d2c1e=a232_0xdef6ef;if(!/[ \t"&|<>^%!`\r\n]/['test'](_0x2cd8af))return _0x2cd8af;const _0x21282f=_0x2cd8af[_0x1d2c1e(0x141)](/"/g,'\x22\x22');return'\x22'+_0x21282f+'\x22';}export function crossSpawn(_0x3c73fa,_0x2c0dc1,_0x5845f1){const _0x33d7d7=a232_0xdef6ef;if(isWindows()){const _0x5e98bf=escapeWindowsArg(_0x3c73fa),_0x1f042f=_0x2c0dc1[_0x33d7d7(0x145)](escapeWindowsArg),_0x18ce70=[_0x5e98bf,..._0x1f042f][_0x33d7d7(0x139)]('\x20');return spawn(_0x18ce70,[],{..._0x5845f1,'shell':!![]});}return spawn(_0x3c73fa,_0x2c0dc1,{..._0x5845f1,'shell':![]});}export function gracefulExit(_0x142379=0x0){const _0x45ed0e=a232_0xdef6ef;isWindows()?setTimeout(()=>process['exit'](_0x142379),0x32):process[_0x45ed0e(0x156)](_0x142379);}export function findExecutable(_0x2ac430,_0x4e8e11=0x1388){return new Promise(_0x52bcab=>{const _0x436ae1=a232_0x3b0a,_0x3f19e1=isWindows()?_0x436ae1(0x15e):_0x436ae1(0x158);execFile(_0x3f19e1,[_0x2ac430],{'timeout':_0x4e8e11,'windowsHide':!![]},(_0x2b3c96,_0x2af269)=>{const _0x35e889=_0x436ae1;if(_0x2b3c96||!_0x2af269[_0x35e889(0x136)]())_0x52bcab(null);else{const _0x1c1e1d=_0x2af269[_0x35e889(0x136)]()[_0x35e889(0x143)](/\r?\n/)[0x0];_0x52bcab(_0x1c1e1d);}});});}
@@ -1 +1 @@
1
- (function(_0x568747,_0xafae70){const _0x238924=a233_0x4fec,_0x539c6c=_0x568747();while(!![]){try{const _0x32326b=parseInt(_0x238924(0xf8))/0x1*(parseInt(_0x238924(0xfe))/0x2)+parseInt(_0x238924(0xf5))/0x3+parseInt(_0x238924(0xf6))/0x4+parseInt(_0x238924(0xf7))/0x5*(parseInt(_0x238924(0xfc))/0x6)+-parseInt(_0x238924(0xf1))/0x7+-parseInt(_0x238924(0x102))/0x8+-parseInt(_0x238924(0xfa))/0x9;if(_0x32326b===_0xafae70)break;else _0x539c6c['push'](_0x539c6c['shift']());}catch(_0xbceed){_0x539c6c['push'](_0x539c6c['shift']());}}}(a233_0x49c6,0x95479));import*as a233_0x1899bf from'readline';function a233_0x49c6(){const _0x4ff2eb=['removeListener','2fxjEZX','stdout','resume','pause','8135080ojYLem','toLowerCase','stderr','stdin','createInterface','isTTY','2991100EoqhSg','\x20[y/N]\x20','\x20(y/N):\x20','data','1751376DWCsXC','4193912qneyxq','10NyRYHT','626797fSGvbF','write','1875933DYzwQG','setEncoding','15012YDTCcT'];a233_0x49c6=function(){return _0x4ff2eb;};return a233_0x49c6();}import{gracefulExit}from'./process.js';export function isInteractive(){const _0x118931=a233_0x4fec;return process['stdin'][_0x118931(0x107)]===!![];}function a233_0x4fec(_0x501108,_0xbb8941){_0x501108=_0x501108-0xf1;const _0x49c6db=a233_0x49c6();let _0x4fec19=_0x49c6db[_0x501108];return _0x4fec19;}export async function confirm(_0x3e76a9){const _0x85fc4c=a233_0x4fec,_0x5dbe09=a233_0x1899bf[_0x85fc4c(0x106)]({'input':process[_0x85fc4c(0x105)],'output':process[_0x85fc4c(0xff)]});return new Promise(_0x332da=>{const _0x20c347=_0x85fc4c;_0x5dbe09['question'](_0x3e76a9+_0x20c347(0xf3),_0x320fc0=>{const _0x5061a4=_0x20c347;_0x5dbe09['close'](),_0x332da(_0x320fc0['toLowerCase']()==='y'||_0x320fc0[_0x5061a4(0x103)]()==='yes');});});}export async function confirmKey(_0x42a3c5){const _0x14af72=a233_0x4fec;if(!process[_0x14af72(0x105)][_0x14af72(0x107)])return![];return process[_0x14af72(0x104)][_0x14af72(0xf9)](_0x42a3c5+_0x14af72(0xf2)),new Promise(_0x30bbc8=>{const _0x98e14b=_0x14af72,_0x144506=process[_0x98e14b(0x105)];_0x144506['setRawMode'](!![]),_0x144506[_0x98e14b(0x100)](),_0x144506[_0x98e14b(0xfb)]('utf8');const _0x3f7129=_0x9fbfc0=>{const _0x1fa14a=_0x98e14b;_0x144506['setRawMode'](![]),_0x144506[_0x1fa14a(0x101)](),_0x144506[_0x1fa14a(0xfd)](_0x1fa14a(0xf4),_0x3f7129);if(_0x9fbfc0==='\x1b'){process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('\x0a'),_0x30bbc8(![]);return;}_0x9fbfc0==='\x03'&&(process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('\x0a'),gracefulExit(0x82));if(_0x9fbfc0['toLowerCase']()==='y'){process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('y\x0a'),_0x30bbc8(!![]);return;}process[_0x1fa14a(0x104)][_0x1fa14a(0xf9)]('\x0a'),_0x30bbc8(![]);};_0x144506['on'](_0x98e14b(0xf4),_0x3f7129);});}
1
+ (function(_0x5d1405,_0x3353c0){const _0x7bdb7e=a233_0x5db1,_0x3581a1=_0x5d1405();while(!![]){try{const _0x3337d9=-parseInt(_0x7bdb7e(0x129))/0x1+-parseInt(_0x7bdb7e(0x128))/0x2+-parseInt(_0x7bdb7e(0x127))/0x3+parseInt(_0x7bdb7e(0x130))/0x4+parseInt(_0x7bdb7e(0x11d))/0x5*(parseInt(_0x7bdb7e(0x123))/0x6)+-parseInt(_0x7bdb7e(0x132))/0x7+parseInt(_0x7bdb7e(0x120))/0x8*(parseInt(_0x7bdb7e(0x11e))/0x9);if(_0x3337d9===_0x3353c0)break;else _0x3581a1['push'](_0x3581a1['shift']());}catch(_0x2f750c){_0x3581a1['push'](_0x3581a1['shift']());}}}(a233_0x3237,0xef6f9));import*as a233_0x329210 from'readline';import{gracefulExit}from'./process.js';export function isInteractive(){const _0x2b7ced=a233_0x5db1;return process[_0x2b7ced(0x125)]['isTTY']===!![];}function a233_0x3237(){const _0x25dea9=['2019124myLjEJ','539272otWQWk','yes','data','\x20[y/N]\x20','stdout','toLowerCase','write','4273204ksQekt','setEncoding','2505594dfxHrH','removeListener','createInterface','5905puSuHo','9sNkQTj','setRawMode','19642832PlEOqe','\x20(y/N):\x20','utf8','6414yhqZON','stderr','stdin','isTTY','5695917TRFFrk'];a233_0x3237=function(){return _0x25dea9;};return a233_0x3237();}function a233_0x5db1(_0x5aeb68,_0x4230c8){_0x5aeb68=_0x5aeb68-0x11d;const _0x3237b6=a233_0x3237();let _0x5db1af=_0x3237b6[_0x5aeb68];return _0x5db1af;}export async function confirm(_0x120b69){const _0x4d4e86=a233_0x5db1,_0x21996a=a233_0x329210[_0x4d4e86(0x134)]({'input':process['stdin'],'output':process[_0x4d4e86(0x12d)]});return new Promise(_0x20c51a=>{const _0x2ecba7=_0x4d4e86;_0x21996a['question'](_0x120b69+_0x2ecba7(0x121),_0x361694=>{const _0x4be076=_0x2ecba7;_0x21996a['close'](),_0x20c51a(_0x361694[_0x4be076(0x12e)]()==='y'||_0x361694[_0x4be076(0x12e)]()===_0x4be076(0x12a));});});}export async function confirmKey(_0x38b647){const _0x15ce27=a233_0x5db1;if(!process['stdin'][_0x15ce27(0x126)])return![];return process['stderr'][_0x15ce27(0x12f)](_0x38b647+_0x15ce27(0x12c)),new Promise(_0xa2562d=>{const _0x54b675=_0x15ce27,_0x29dec4=process['stdin'];_0x29dec4[_0x54b675(0x11f)](!![]),_0x29dec4['resume'](),_0x29dec4[_0x54b675(0x131)](_0x54b675(0x122));const _0x305a52=_0x40ade6=>{const _0x15c4fb=_0x54b675;_0x29dec4[_0x15c4fb(0x11f)](![]),_0x29dec4['pause'](),_0x29dec4[_0x15c4fb(0x133)](_0x15c4fb(0x12b),_0x305a52);if(_0x40ade6==='\x1b'){process['stderr']['write']('\x0a'),_0xa2562d(![]);return;}_0x40ade6==='\x03'&&(process[_0x15c4fb(0x124)][_0x15c4fb(0x12f)]('\x0a'),gracefulExit(0x82));if(_0x40ade6[_0x15c4fb(0x12e)]()==='y'){process[_0x15c4fb(0x124)][_0x15c4fb(0x12f)]('y\x0a'),_0xa2562d(!![]);return;}process[_0x15c4fb(0x124)][_0x15c4fb(0x12f)]('\x0a'),_0xa2562d(![]);};_0x29dec4['on'](_0x54b675(0x12b),_0x305a52);});}
@@ -1 +1 @@
1
- (function(_0x5f5bc6,_0x168513){const _0x26c578=a234_0x33e3,_0x484645=_0x5f5bc6();while(!![]){try{const _0x2782ea=-parseInt(_0x26c578(0x1a6))/0x1*(parseInt(_0x26c578(0x1a8))/0x2)+parseInt(_0x26c578(0x1b5))/0x3+-parseInt(_0x26c578(0x1b0))/0x4*(-parseInt(_0x26c578(0x1a1))/0x5)+parseInt(_0x26c578(0x1a2))/0x6*(parseInt(_0x26c578(0x1aa))/0x7)+-parseInt(_0x26c578(0x1a9))/0x8+-parseInt(_0x26c578(0x1b6))/0x9+-parseInt(_0x26c578(0x1ad))/0xa*(-parseInt(_0x26c578(0x19e))/0xb);if(_0x2782ea===_0x168513)break;else _0x484645['push'](_0x484645['shift']());}catch(_0xd805e2){_0x484645['push'](_0x484645['shift']());}}}(a234_0x2f57,0x47c9a));import a234_0x4a5dcd from'ora';import{isWindows}from'./process.js';const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x32faab,_0x28e1c2={}){const _0x3c1bb0=a234_0x33e3,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x28e1c2;return a234_0x4a5dcd({'text':_0x32faab,'color':'cyan','stream':process[_0x3c1bb0(0x1a3)],'isEnabled':forceEnabled||process[_0x3c1bb0(0x1a3)][_0x3c1bb0(0x1a4)]&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x25935d,_0x269e65,_0x3a1dec={}){const _0x3d8048=a234_0x33e3,_0x369b61=_0x3a1dec[_0x3d8048(0x1a7)]??(()=>Date[_0x3d8048(0x1b1)]()),_0x1bee36=createCommandSpinner(_0x25935d,_0x3a1dec);_0x1bee36['start']();const _0x2fb8a4=_0x369b61();try{const _0x79a916=await _0x269e65(),_0x3c2a06=_0x369b61()-_0x2fb8a4;return _0x1bee36[_0x3d8048(0x1b8)](),{'data':_0x79a916,'elapsedMs':_0x3c2a06};}catch(_0x22b5c9){_0x1bee36[_0x3d8048(0x1b8)]();throw _0x22b5c9;}}function a234_0x2f57(){const _0x37f562=['isTTY','...','489qDnBYa','clock','1124WNkMxx','3895112WqqwYd','70RgiZmS','isSpinning','text','4045270fzWBpt','jobId','Processing','95188zRbpsU','now','trim','extra','replace','1038180uHrYtE','4638141jIBXPd','floor','stop','11qSmQzV','\x20[Job\x20ID:\x20','toFixed','115JzuDVl','163908AfcMZO','stderr'];a234_0x2f57=function(){return _0x37f562;};return a234_0x2f57();}function a234_0x33e3(_0x57b0c6,_0x3e795e){_0x57b0c6=_0x57b0c6-0x19e;const _0x2f5711=a234_0x2f57();let _0x33e365=_0x2f5711[_0x57b0c6];return _0x33e365;}export async function withProgressSpinner(_0x17242d,_0x4462e9,_0xf5ceb={}){const _0x161e15=a234_0x33e3,_0x23315b=_0xf5ceb[_0x161e15(0x1a7)]??(()=>Date[_0x161e15(0x1b1)]()),_0x15f647=_0xf5ceb['intervalFactory']??setInterval,_0x1dd800=createCommandSpinner(_0x17242d,_0xf5ceb);_0x1dd800['start']();const _0x16950a=_0x23315b(),_0x1a2b36=_0x17242d[_0x161e15(0x1b4)](_0x161e15(0x1a5),'')[_0x161e15(0x1b2)]()||_0x161e15(0x1af),_0x1ade24={};let _0x59952e=_0x17242d;const _0x4257e4=()=>{const _0x5a0a58=_0x161e15;if(!_0x1dd800[_0x5a0a58(0x1ab)])return;const _0x39f585=_0x23315b()-_0x16950a,_0x2adece=formatElapsed(_0x39f585),_0x175291=_0x1ade24['phase']?.[_0x5a0a58(0x1b2)]()||_0x1a2b36,_0x32d5d5=_0x1ade24[_0x5a0a58(0x1ae)]?_0x5a0a58(0x19f)+_0x1ade24[_0x5a0a58(0x1ae)]+']':'',_0x4a953f=_0x1ade24['extra']?'\x20'+_0x1ade24[_0x5a0a58(0x1b3)]:'',_0x422724=_0x175291+'\x20'+_0x2adece+_0x4a953f+_0x32d5d5;_0x422724!==_0x59952e&&_0x422724['trim']()&&(_0x1dd800[_0x5a0a58(0x1ac)]=_0x422724,_0x59952e=_0x422724);},_0x4b20bb=_0x15f647(()=>{_0x4257e4();},0x3e8),_0x3e01a9={'setPhase':_0x4acbca=>{const _0x191fd6=_0x161e15;_0x1ade24['phase']=_0x4acbca;const _0x20ab6f=_0x4acbca?.[_0x191fd6(0x1b2)]()||_0x1a2b36,_0x279139=_0x23315b()-_0x16950a,_0x21e800=formatElapsed(_0x279139),_0x5132fe=_0x1ade24['jobId']?_0x191fd6(0x19f)+_0x1ade24['jobId']+']':'',_0x137317=_0x1ade24[_0x191fd6(0x1b3)]?'\x20'+_0x1ade24[_0x191fd6(0x1b3)]:'',_0x370c5a=_0x20ab6f+'\x20'+_0x21e800+_0x137317+_0x5132fe;_0x1dd800[_0x191fd6(0x1ab)]&&_0x370c5a['trim']()&&(_0x1dd800[_0x191fd6(0x1ac)]=_0x370c5a,_0x59952e=_0x370c5a);},'setJobId':_0x31b1db=>{const _0x22ad24=_0x161e15;_0x1ade24[_0x22ad24(0x1ae)]=_0x31b1db,_0x4257e4();},'setExtra':_0x4e0705=>{const _0x34b2fa=_0x161e15;_0x1ade24[_0x34b2fa(0x1b3)]=_0x4e0705,_0x4257e4();}};_0x4257e4();try{const _0x4834c2=await _0x4462e9(_0x3e01a9),_0x1c8df1=_0x23315b()-_0x16950a;return{'data':_0x4834c2,'elapsedMs':_0x1c8df1};}finally{clearInterval(_0x4b20bb),_0x1dd800[_0x161e15(0x1b8)]();}}export function formatElapsed(_0x1771d3){const _0x45939b=a234_0x33e3,_0x48083c=Math['floor'](_0x1771d3/0x3e8);if(_0x48083c<0x3c)return(_0x1771d3/0x3e8)[_0x45939b(0x1a0)](0x1)+'s';const _0xed8d21=Math[_0x45939b(0x1b7)](_0x48083c/0x3c),_0x5bf0ac=_0x48083c%0x3c;if(_0xed8d21<0x3c)return _0xed8d21+'m\x20'+_0x5bf0ac+'s';const _0x2286e4=Math[_0x45939b(0x1b7)](_0xed8d21/0x3c),_0x41af84=_0xed8d21%0x3c;return _0x2286e4+'h\x20'+_0x41af84+'m';}
1
+ (function(_0x522ed7,_0x5334e7){const _0x1b093f=a234_0x9c41,_0x3bdf08=_0x522ed7();while(!![]){try{const _0x4f9690=-parseInt(_0x1b093f(0xe7))/0x1*(-parseInt(_0x1b093f(0xd2))/0x2)+-parseInt(_0x1b093f(0xec))/0x3*(-parseInt(_0x1b093f(0xe1))/0x4)+-parseInt(_0x1b093f(0xde))/0x5+-parseInt(_0x1b093f(0xeb))/0x6*(-parseInt(_0x1b093f(0xdb))/0x7)+parseInt(_0x1b093f(0xe4))/0x8*(parseInt(_0x1b093f(0xe8))/0x9)+parseInt(_0x1b093f(0xd6))/0xa+-parseInt(_0x1b093f(0xd7))/0xb;if(_0x4f9690===_0x5334e7)break;else _0x3bdf08['push'](_0x3bdf08['shift']());}catch(_0x418c41){_0x3bdf08['push'](_0x3bdf08['shift']());}}}(a234_0x4259,0xd61db));import a234_0x55a952 from'ora';import{isWindows}from'./process.js';function a234_0x9c41(_0x4f6ba7,_0x31fbc2){_0x4f6ba7=_0x4f6ba7-0xd1;const _0x42594f=a234_0x4259();let _0x9c4188=_0x42594f[_0x4f6ba7];return _0x9c4188;}const windowsSpinner={'interval':0x3e8,'frames':['•']};export function createCommandSpinner(_0x51adc4,_0x907cd5={}){const _0x4522b2=a234_0x9c41,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x907cd5;return a234_0x55a952({'text':_0x51adc4,'color':_0x4522b2(0xd1),'stream':process[_0x4522b2(0xdd)],'isEnabled':forceEnabled||process[_0x4522b2(0xdd)]['isTTY']&&!verbose,...isWindows()&&{'spinner':windowsSpinner}});}export async function withSpinner(_0x584227,_0x5e7431,_0x515a88={}){const _0x175a9a=a234_0x9c41,_0x3ccaf9=_0x515a88['clock']??(()=>Date[_0x175a9a(0xdf)]()),_0x50b0b7=createCommandSpinner(_0x584227,_0x515a88);_0x50b0b7[_0x175a9a(0xe5)]();const _0x3152fa=_0x3ccaf9();try{const _0xd12ae5=await _0x5e7431(),_0x3ecd5e=_0x3ccaf9()-_0x3152fa;return _0x50b0b7[_0x175a9a(0xe2)](),{'data':_0xd12ae5,'elapsedMs':_0x3ecd5e};}catch(_0x366e3c){_0x50b0b7[_0x175a9a(0xe2)]();throw _0x366e3c;}}function a234_0x4259(){const _0x25e348=['5sRNDdO','999IKRvgO','text','jobId','2148186UDPMZw','3989325vsuOjD','cyan','623848YAmkqw','replace','phase','trim','3981000cSxexq','43601063lcJWfK','toFixed','clock','floor','14bgaeAb','intervalFactory','stderr','2270340rddpnr','now','Processing','4EoyrcR','stop','extra','93064NRcdsT','start','isSpinning'];a234_0x4259=function(){return _0x25e348;};return a234_0x4259();}export async function withProgressSpinner(_0x2cc742,_0x3e3d1c,_0x3d4be5={}){const _0x57ec6e=a234_0x9c41,_0x261d0f=_0x3d4be5[_0x57ec6e(0xd9)]??(()=>Date[_0x57ec6e(0xdf)]()),_0xa8b754=_0x3d4be5[_0x57ec6e(0xdc)]??setInterval,_0x4ac06b=createCommandSpinner(_0x2cc742,_0x3d4be5);_0x4ac06b[_0x57ec6e(0xe5)]();const _0x24fe55=_0x261d0f(),_0x3815db=_0x2cc742[_0x57ec6e(0xd3)]('...','')[_0x57ec6e(0xd5)]()||_0x57ec6e(0xe0),_0x3632b0={};let _0x593f77=_0x2cc742;const _0x50535a=()=>{const _0x44f892=_0x57ec6e;if(!_0x4ac06b[_0x44f892(0xe6)])return;const _0x4e6127=_0x261d0f()-_0x24fe55,_0x6f7261=formatElapsed(_0x4e6127),_0x37f84f=_0x3632b0[_0x44f892(0xd4)]?.[_0x44f892(0xd5)]()||_0x3815db,_0x33c56f=_0x3632b0[_0x44f892(0xea)]?'\x20[Job\x20ID:\x20'+_0x3632b0['jobId']+']':'',_0x588387=_0x3632b0['extra']?'\x20'+_0x3632b0[_0x44f892(0xe3)]:'',_0x3f6035=_0x37f84f+'\x20'+_0x6f7261+_0x588387+_0x33c56f;_0x3f6035!==_0x593f77&&_0x3f6035[_0x44f892(0xd5)]()&&(_0x4ac06b[_0x44f892(0xe9)]=_0x3f6035,_0x593f77=_0x3f6035);},_0x25ad58=_0xa8b754(()=>{_0x50535a();},0x3e8),_0x186288={'setPhase':_0x32e83e=>{const _0xed4b96=_0x57ec6e;_0x3632b0[_0xed4b96(0xd4)]=_0x32e83e;const _0x48fc7b=_0x32e83e?.[_0xed4b96(0xd5)]()||_0x3815db,_0x1daf5c=_0x261d0f()-_0x24fe55,_0x12ee91=formatElapsed(_0x1daf5c),_0x5cc370=_0x3632b0[_0xed4b96(0xea)]?'\x20[Job\x20ID:\x20'+_0x3632b0[_0xed4b96(0xea)]+']':'',_0x59de53=_0x3632b0['extra']?'\x20'+_0x3632b0[_0xed4b96(0xe3)]:'',_0x4f9de7=_0x48fc7b+'\x20'+_0x12ee91+_0x59de53+_0x5cc370;_0x4ac06b[_0xed4b96(0xe6)]&&_0x4f9de7[_0xed4b96(0xd5)]()&&(_0x4ac06b[_0xed4b96(0xe9)]=_0x4f9de7,_0x593f77=_0x4f9de7);},'setJobId':_0x1ba2e5=>{_0x3632b0['jobId']=_0x1ba2e5,_0x50535a();},'setExtra':_0x1b940a=>{const _0xcceee6=_0x57ec6e;_0x3632b0[_0xcceee6(0xe3)]=_0x1b940a,_0x50535a();}};_0x50535a();try{const _0x63650e=await _0x3e3d1c(_0x186288),_0x8f7b1f=_0x261d0f()-_0x24fe55;return{'data':_0x63650e,'elapsedMs':_0x8f7b1f};}finally{clearInterval(_0x25ad58),_0x4ac06b['stop']();}}export function formatElapsed(_0x3920fd){const _0x4b3236=a234_0x9c41,_0x44aebc=Math[_0x4b3236(0xda)](_0x3920fd/0x3e8);if(_0x44aebc<0x3c)return(_0x3920fd/0x3e8)[_0x4b3236(0xd8)](0x1)+'s';const _0x3054e5=Math['floor'](_0x44aebc/0x3c),_0x3e8443=_0x44aebc%0x3c;if(_0x3054e5<0x3c)return _0x3054e5+'m\x20'+_0x3e8443+'s';const _0x93d399=Math[_0x4b3236(0xda)](_0x3054e5/0x3c),_0x466f0c=_0x3054e5%0x3c;return _0x93d399+'h\x20'+_0x466f0c+'m';}
@@ -1 +1 @@
1
- function a235_0x36c2(_0x3a38f8,_0x4e7d66){_0x3a38f8=_0x3a38f8-0x112;const _0x59c730=a235_0x59c7();let _0x36c2c8=_0x59c730[_0x3a38f8];return _0x36c2c8;}function a235_0x59c7(){const _0x1f6942=['27CASWUM','split','10MAIIwS','slice','2871582GUwkWu','201504umFhhZ','pop','read','3804944JDtpAi','[LLM\x20API\x20SSE]\x20','6198563McRIIN','event','459fZuRYs','Response\x20body\x20is\x20null','11578668vBSYQY','2121604bgCEFe','11PNXGBr','122070xaUmyN','getReader','debug','decode','body','data','parse','1DumaYI','indexOf','startsWith','8PeTzkB'];a235_0x59c7=function(){return _0x1f6942;};return a235_0x59c7();}(function(_0x5f4449,_0x4a1cd2){const _0x496a19=a235_0x36c2,_0x178dd4=_0x5f4449();while(!![]){try{const _0x406036=parseInt(_0x496a19(0x11d))/0x1*(-parseInt(_0x496a19(0x114))/0x2)+-parseInt(_0x496a19(0x121))/0x3*(-parseInt(_0x496a19(0x126))/0x4)+-parseInt(_0x496a19(0x123))/0x5*(-parseInt(_0x496a19(0x125))/0x6)+parseInt(_0x496a19(0x12b))/0x7*(parseInt(_0x496a19(0x120))/0x8)+parseInt(_0x496a19(0x12d))/0x9*(parseInt(_0x496a19(0x116))/0xa)+parseInt(_0x496a19(0x115))/0xb*(-parseInt(_0x496a19(0x113))/0xc)+-parseInt(_0x496a19(0x129))/0xd;if(_0x406036===_0x4a1cd2)break;else _0x178dd4['push'](_0x178dd4['shift']());}catch(_0x1fc124){_0x178dd4['push'](_0x178dd4['shift']());}}}(a235_0x59c7,0x928c9));export async function*parseSSEStream(_0x1156a7,_0x5adc1a){const _0x4b0c55=a235_0x36c2;if(!_0x1156a7[_0x4b0c55(0x11a)])throw new Error(_0x4b0c55(0x112));const _0x4952ec=_0x1156a7[_0x4b0c55(0x11a)][_0x4b0c55(0x117)](),_0x1e2687=new TextDecoder();let _0x3a8821='',_0x4edd4e={};try{while(!![]){const {done:_0x28c5a8,value:_0xd8ced3}=await _0x4952ec[_0x4b0c55(0x128)]();if(_0x28c5a8){if(_0x4edd4e[_0x4b0c55(0x11b)]){_0x5adc1a?.[_0x4b0c55(0x118)]('[LLM\x20API\x20SSE]\x20'+_0x4edd4e['data']);const _0x4dd2ba=parseSSEData(_0x4edd4e[_0x4b0c55(0x11b)]);yield _0x4dd2ba;}break;}_0x3a8821+=_0x1e2687[_0x4b0c55(0x119)](_0xd8ced3,{'stream':!![]});const _0x589409=_0x3a8821[_0x4b0c55(0x122)]('\x0a');_0x3a8821=_0x589409[_0x4b0c55(0x127)]()||'';for(const _0x516472 of _0x589409){if(_0x516472['trim']()===''){if(_0x4edd4e[_0x4b0c55(0x11b)]){_0x5adc1a?.['debug'](_0x4b0c55(0x12a)+_0x4edd4e[_0x4b0c55(0x11b)]);const _0x3ec6dc=parseSSEData(_0x4edd4e['data']);yield _0x3ec6dc,_0x4edd4e={};}continue;}if(_0x516472[_0x4b0c55(0x11f)](':'))continue;const _0xab17f9=_0x516472[_0x4b0c55(0x11e)](':');if(_0xab17f9===-0x1)continue;const _0x2f6af4=_0x516472['slice'](0x0,_0xab17f9);let _0x439629=_0x516472[_0x4b0c55(0x124)](_0xab17f9+0x1);_0x439629[_0x4b0c55(0x11f)]('\x20')&&(_0x439629=_0x439629['slice'](0x1));switch(_0x2f6af4){case _0x4b0c55(0x12c):_0x4edd4e[_0x4b0c55(0x12c)]=_0x439629;break;case'data':_0x4edd4e[_0x4b0c55(0x11b)]=_0x4edd4e[_0x4b0c55(0x11b)]?_0x4edd4e[_0x4b0c55(0x11b)]+'\x0a'+_0x439629:_0x439629;break;case'id':_0x4edd4e['id']=_0x439629;break;}}}}finally{_0x4952ec['releaseLock']();}}function parseSSEData(_0x56eb4b){const _0x27556f=a235_0x36c2;try{return JSON[_0x27556f(0x11c)](_0x56eb4b);}catch(_0x522ce5){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x56eb4b,{'cause':_0x522ce5});}}
1
+ function a235_0xa961(_0x7ae6bc,_0x5b52cd){_0x7ae6bc=_0x7ae6bc-0xf8;const _0x12901b=a235_0x1290();let _0xa961af=_0x12901b[_0x7ae6bc];return _0xa961af;}function a235_0x1290(){const _0x2800de=['debug','224KhuOSy','trim','decode','78fSUTBU','384093fHzwAF','indexOf','416846DOzYLv','112055tHzRBl','Response\x20body\x20is\x20null','pop','parse','startsWith','[LLM\x20API\x20SSE]\x20','data','releaseLock','60nIFSEV','body','22xUDQat','slice','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','1144810EfSoJR','event','137019KWvsWD','33oNyADd','29891232JomAww','259763UgYpQB'];a235_0x1290=function(){return _0x2800de;};return a235_0x1290();}(function(_0x205318,_0x4d2412){const _0x331fe3=a235_0xa961,_0x118d88=_0x205318();while(!![]){try{const _0x1432f0=-parseInt(_0x331fe3(0x102))/0x1+parseInt(_0x331fe3(0x10d))/0x2*(-parseInt(_0x331fe3(0x112))/0x3)+-parseInt(_0x331fe3(0x10b))/0x4*(parseInt(_0x331fe3(0x103))/0x5)+parseInt(_0x331fe3(0xff))/0x6*(parseInt(_0x331fe3(0xfa))/0x7)+-parseInt(_0x331fe3(0xfc))/0x8*(parseInt(_0x331fe3(0x100))/0x9)+parseInt(_0x331fe3(0x110))/0xa*(parseInt(_0x331fe3(0xf8))/0xb)+parseInt(_0x331fe3(0xf9))/0xc;if(_0x1432f0===_0x4d2412)break;else _0x118d88['push'](_0x118d88['shift']());}catch(_0x1b4876){_0x118d88['push'](_0x118d88['shift']());}}}(a235_0x1290,0xd387a));export async function*parseSSEStream(_0x170bc,_0x585577){const _0x546bf0=a235_0xa961;if(!_0x170bc[_0x546bf0(0x10c)])throw new Error(_0x546bf0(0x104));const _0x4445dc=_0x170bc[_0x546bf0(0x10c)]['getReader'](),_0x334e0a=new TextDecoder();let _0x40ec87='',_0x3ee441={};try{while(!![]){const {done:_0x57055f,value:_0x308f26}=await _0x4445dc['read']();if(_0x57055f){if(_0x3ee441[_0x546bf0(0x109)]){_0x585577?.[_0x546bf0(0xfb)](_0x546bf0(0x108)+_0x3ee441['data']);const _0x571114=parseSSEData(_0x3ee441[_0x546bf0(0x109)]);yield _0x571114;}break;}_0x40ec87+=_0x334e0a[_0x546bf0(0xfe)](_0x308f26,{'stream':!![]});const _0x2babf3=_0x40ec87['split']('\x0a');_0x40ec87=_0x2babf3[_0x546bf0(0x105)]()||'';for(const _0x1303d7 of _0x2babf3){if(_0x1303d7[_0x546bf0(0xfd)]()===''){if(_0x3ee441[_0x546bf0(0x109)]){_0x585577?.['debug']('[LLM\x20API\x20SSE]\x20'+_0x3ee441[_0x546bf0(0x109)]);const _0x3b9f8d=parseSSEData(_0x3ee441['data']);yield _0x3b9f8d,_0x3ee441={};}continue;}if(_0x1303d7[_0x546bf0(0x107)](':'))continue;const _0x43e093=_0x1303d7[_0x546bf0(0x101)](':');if(_0x43e093===-0x1)continue;const _0x3942a6=_0x1303d7['slice'](0x0,_0x43e093);let _0x441e01=_0x1303d7[_0x546bf0(0x10e)](_0x43e093+0x1);_0x441e01[_0x546bf0(0x107)]('\x20')&&(_0x441e01=_0x441e01[_0x546bf0(0x10e)](0x1));switch(_0x3942a6){case _0x546bf0(0x111):_0x3ee441[_0x546bf0(0x111)]=_0x441e01;break;case _0x546bf0(0x109):_0x3ee441['data']=_0x3ee441['data']?_0x3ee441[_0x546bf0(0x109)]+'\x0a'+_0x441e01:_0x441e01;break;case'id':_0x3ee441['id']=_0x441e01;break;}}}}finally{_0x4445dc[_0x546bf0(0x10a)]();}}function parseSSEData(_0x1ed4ca){const _0x56b4c7=a235_0xa961;try{return JSON[_0x56b4c7(0x106)](_0x1ed4ca);}catch(_0x2a08d7){throw new Error(_0x56b4c7(0x10f)+_0x1ed4ca,{'cause':_0x2a08d7});}}
@@ -1 +1 @@
1
- (function(_0xf98120,_0x41ce6f){const _0x758aad=a236_0x8d32,_0x257cfa=_0xf98120();while(!![]){try{const _0x3fc9d1=-parseInt(_0x758aad(0x1ab))/0x1*(parseInt(_0x758aad(0x1b0))/0x2)+-parseInt(_0x758aad(0x1b8))/0x3+-parseInt(_0x758aad(0x1b4))/0x4+parseInt(_0x758aad(0x1b5))/0x5*(parseInt(_0x758aad(0x1af))/0x6)+-parseInt(_0x758aad(0x1a8))/0x7*(-parseInt(_0x758aad(0x1b7))/0x8)+-parseInt(_0x758aad(0x1b1))/0x9+parseInt(_0x758aad(0x1aa))/0xa;if(_0x3fc9d1===_0x41ce6f)break;else _0x257cfa['push'](_0x257cfa['shift']());}catch(_0x1ee191){_0x257cfa['push'](_0x257cfa['shift']());}}}(a236_0x43e8,0x823b6));function a236_0x43e8(){const _0x460108=['slice','664643eIBcmT','Cannot\x20escape\x20empty\x20string\x20literal','10045170KbrDbb','1811trkpyO','random','floor','repeat','1169202TJgDya','518qPhWIl','3989916vCuhpk','toLowerCase','trim','1201084nZEgaU','25MxYOTA','replace','24YNNtVH','1552875wGhzMx','substring','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','toString','\x5c$&','length'];a236_0x43e8=function(){return _0x460108;};return a236_0x43e8();}import a236_0x2f4a85 from'string-width';export function stringWidth(_0x353d11){return a236_0x2f4a85(_0x353d11);}export function padEnd(_0x425fc5,_0x1fbe17){const _0x135ca6=a236_0x8d32,_0x2cd8c7=stringWidth(_0x425fc5);if(_0x2cd8c7>=_0x1fbe17)return _0x425fc5;return _0x425fc5+'\x20'[_0x135ca6(0x1ae)](_0x1fbe17-_0x2cd8c7);}function a236_0x8d32(_0x428a3e,_0x4bdf60){_0x428a3e=_0x428a3e-0x1a8;const _0x43e8bf=a236_0x43e8();let _0x8d328a=_0x43e8bf[_0x428a3e];return _0x8d328a;}export function padStart(_0x2927f6,_0x12cb8e){const _0x20e6b7=a236_0x8d32,_0x40867b=stringWidth(_0x2927f6);if(_0x40867b>=_0x12cb8e)return _0x2927f6;return'\x20'[_0x20e6b7(0x1ae)](_0x12cb8e-_0x40867b)+_0x2927f6;}export function centerAlign(_0x3b32fe,_0x1341a2){const _0x35bc17=a236_0x8d32,_0xc4f5f9=stringWidth(_0x3b32fe);if(_0xc4f5f9>_0x1341a2){if(_0x1341a2<=0x1)return'…'[_0x35bc17(0x1b9)](0x0,_0x1341a2);let _0x5dd459=_0x3b32fe;while(stringWidth(_0x5dd459+'…')>_0x1341a2){_0x5dd459=_0x5dd459[_0x35bc17(0x1be)](0x0,-0x1);}return _0x5dd459+'…';}if(_0xc4f5f9===_0x1341a2)return _0x3b32fe;const _0x369448=_0x1341a2-_0xc4f5f9,_0x1156f0=Math[_0x35bc17(0x1ad)](_0x369448/0x2),_0x4ad4c4=_0x369448-_0x1156f0;return'\x20'[_0x35bc17(0x1ae)](_0x1156f0)+_0x3b32fe+'\x20'[_0x35bc17(0x1ae)](_0x4ad4c4);}export function escapeStringLiteral(_0x4fde73){const _0x52008b=a236_0x8d32;if(!_0x4fde73||_0x4fde73['trim']()[_0x52008b(0x1bd)]===0x0)throw new Error(_0x52008b(0x1a9));const _0x6c8f58=_0x4fde73[_0x52008b(0x1b6)](/'/g,'\x27\x27');return'\x27'+_0x6c8f58+'\x27';}export function globToLike(_0x3cb221){const _0x3e0a26=a236_0x8d32;let _0x352d8b=_0x3cb221[_0x3e0a26(0x1b6)](/\\/g,'\x5c\x5c')[_0x3e0a26(0x1b6)](/%/g,'\x5c%')[_0x3e0a26(0x1b6)](/_/g,'\x5c_');return _0x352d8b=_0x352d8b[_0x3e0a26(0x1b6)](/\*/g,'%')[_0x3e0a26(0x1b6)](/\?/g,'_'),_0x352d8b;}export function buildLikePattern(_0xa582dc){const _0xc30344=a236_0x8d32;if(!_0xa582dc||_0xa582dc[_0xc30344(0x1b3)]()[_0xc30344(0x1bd)]===0x0)throw new Error(_0xc30344(0x1ba));const _0x331390=globToLike(_0xa582dc),_0x5734e4=_0x331390[_0xc30344(0x1b6)](/'/g,'\x27\x27');return'\x27'+_0x5734e4+'\x27';}export function matchGlobPattern(_0x33fb17,_0x105a01){const _0x4416cd=a236_0x8d32,_0x20a103=_0x105a01['replace'](/[.+^${}()|[\]\\]/g,_0x4416cd(0x1bc))[_0x4416cd(0x1b6)](/\*/g,'.*')[_0x4416cd(0x1b6)](/\?/g,'.'),_0x449eb1=new RegExp('^'+_0x20a103+'$');return _0x449eb1['test'](_0x33fb17);}export function getSanitizedUsername(){const _0x907212=a236_0x8d32,_0x3f74a6=process.env.USER||process.env.USERNAME||'unknown';return _0x3f74a6[_0x907212(0x1b6)](/[^a-zA-Z0-9]/g,'')[_0x907212(0x1b2)]();}export function generateRandomHex(){const _0x30c271=a236_0x8d32,_0x4e24b5=Math[_0x30c271(0x1ad)](Math[_0x30c271(0x1ac)]()*0xfffff);return _0x4e24b5[_0x30c271(0x1bb)](0x10)['padStart'](0x5,'0');}export function sanitizeFileName(_0x4a18eb){const _0x206ac3=a236_0x8d32;return _0x4a18eb[_0x206ac3(0x1b2)]()[_0x206ac3(0x1b6)](/[/\\:*?"<>|]/g,'-')[_0x206ac3(0x1b6)](/\s+/g,'-')[_0x206ac3(0x1b6)](/-+/g,'-')['replace'](/^-|-$/g,'');}
1
+ (function(_0x58c6b1,_0x496dc6){const _0x378c36=a236_0x15ca,_0x2ac2d9=_0x58c6b1();while(!![]){try{const _0x1d421c=-parseInt(_0x378c36(0x119))/0x1*(-parseInt(_0x378c36(0x120))/0x2)+-parseInt(_0x378c36(0x121))/0x3*(-parseInt(_0x378c36(0x12d))/0x4)+-parseInt(_0x378c36(0x122))/0x5*(parseInt(_0x378c36(0x11f))/0x6)+parseInt(_0x378c36(0x123))/0x7*(-parseInt(_0x378c36(0x11a))/0x8)+-parseInt(_0x378c36(0x128))/0x9*(parseInt(_0x378c36(0x127))/0xa)+parseInt(_0x378c36(0x12c))/0xb+parseInt(_0x378c36(0x115))/0xc*(parseInt(_0x378c36(0x11d))/0xd);if(_0x1d421c===_0x496dc6)break;else _0x2ac2d9['push'](_0x2ac2d9['shift']());}catch(_0x5ed22f){_0x2ac2d9['push'](_0x2ac2d9['shift']());}}}(a236_0x107c,0x73363));import a236_0xabb5d3 from'string-width';export function stringWidth(_0x3d84aa){return a236_0xabb5d3(_0x3d84aa);}export function padEnd(_0x48405,_0x19b61a){const _0x48317e=a236_0x15ca,_0x378fd2=stringWidth(_0x48405);if(_0x378fd2>=_0x19b61a)return _0x48405;return _0x48405+'\x20'[_0x48317e(0x11c)](_0x19b61a-_0x378fd2);}export function padStart(_0x4e4276,_0x3da38c){const _0x239b3d=a236_0x15ca,_0x15b420=stringWidth(_0x4e4276);if(_0x15b420>=_0x3da38c)return _0x4e4276;return'\x20'[_0x239b3d(0x11c)](_0x3da38c-_0x15b420)+_0x4e4276;}export function centerAlign(_0x4b0130,_0x31357d){const _0x2d2e69=a236_0x15ca,_0x15c7c2=stringWidth(_0x4b0130);if(_0x15c7c2>_0x31357d){if(_0x31357d<=0x1)return'…'['substring'](0x0,_0x31357d);let _0x368add=_0x4b0130;while(stringWidth(_0x368add+'…')>_0x31357d){_0x368add=_0x368add[_0x2d2e69(0x12b)](0x0,-0x1);}return _0x368add+'…';}if(_0x15c7c2===_0x31357d)return _0x4b0130;const _0x3a7fb1=_0x31357d-_0x15c7c2,_0x1cbd09=Math['floor'](_0x3a7fb1/0x2),_0x22cd14=_0x3a7fb1-_0x1cbd09;return'\x20'[_0x2d2e69(0x11c)](_0x1cbd09)+_0x4b0130+'\x20'[_0x2d2e69(0x11c)](_0x22cd14);}export function escapeStringLiteral(_0x34546a){const _0x599b4a=a236_0x15ca;if(!_0x34546a||_0x34546a[_0x599b4a(0x118)]()[_0x599b4a(0x11e)]===0x0)throw new Error(_0x599b4a(0x117));const _0x2c3ef5=_0x34546a['replace'](/'/g,'\x27\x27');return'\x27'+_0x2c3ef5+'\x27';}function a236_0x15ca(_0x105d78,_0x387133){_0x105d78=_0x105d78-0x113;const _0x107cf8=a236_0x107c();let _0x15cae7=_0x107cf8[_0x105d78];return _0x15cae7;}export function globToLike(_0x14af7b){const _0x444c20=a236_0x15ca;let _0xfd9f89=_0x14af7b['replace'](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0xfd9f89=_0xfd9f89[_0x444c20(0x114)](/\*/g,'%')[_0x444c20(0x114)](/\?/g,'_'),_0xfd9f89;}export function buildLikePattern(_0x2b62b5){const _0x59c491=a236_0x15ca;if(!_0x2b62b5||_0x2b62b5[_0x59c491(0x118)]()[_0x59c491(0x11e)]===0x0)throw new Error(_0x59c491(0x12a));const _0x15f454=globToLike(_0x2b62b5),_0x277082=_0x15f454[_0x59c491(0x114)](/'/g,'\x27\x27');return'\x27'+_0x277082+'\x27';}export function matchGlobPattern(_0x5c6bc9,_0x5c0203){const _0xf6b97c=a236_0x15ca,_0x46d139=_0x5c0203[_0xf6b97c(0x114)](/[.+^${}()|[\]\\]/g,_0xf6b97c(0x113))[_0xf6b97c(0x114)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x146bd4=new RegExp('^'+_0x46d139+'$');return _0x146bd4[_0xf6b97c(0x126)](_0x5c6bc9);}function a236_0x107c(){const _0x4442e8=['1859769vyVBCD','padStart','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','slice','1982673zjyyiR','97948GeXTjC','\x5c$&','replace','12EkfOBI','toLowerCase','Cannot\x20escape\x20empty\x20string\x20literal','trim','29234mpiIKv','4192WtIrGB','toString','repeat','12174019TikYDs','length','5466654tillmE','22WuJEZC','57LJhHnr','5HgKJtB','4193ipmtLG','unknown','random','test','10xBwptb'];a236_0x107c=function(){return _0x4442e8;};return a236_0x107c();}export function getSanitizedUsername(){const _0x5cdea3=a236_0x15ca,_0x1f7c89=process.env.USER||process.env.USERNAME||_0x5cdea3(0x124);return _0x1f7c89['replace'](/[^a-zA-Z0-9]/g,'')[_0x5cdea3(0x116)]();}export function generateRandomHex(){const _0xb2d102=a236_0x15ca,_0x27439a=Math['floor'](Math[_0xb2d102(0x125)]()*0xfffff);return _0x27439a[_0xb2d102(0x11b)](0x10)[_0xb2d102(0x129)](0x5,'0');}export function sanitizeFileName(_0x587d63){const _0x466bda=a236_0x15ca;return _0x587d63[_0x466bda(0x116)]()['replace'](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x466bda(0x114)](/-+/g,'-')[_0x466bda(0x114)](/^-|-$/g,'');}