@lovrabet/rabetbase-cli 2.1.12-beta.0 → 2.1.12-beta.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 (200) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/nudge.js +1 -0
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -0
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +3 -2
@@ -1 +1 @@
1
- const a178_0x29289a=a178_0x382a;(function(_0x5e540d,_0x59ffae){const _0x425198=a178_0x382a,_0x2d3c54=_0x5e540d();while(!![]){try{const _0x11b865=-parseInt(_0x425198(0xfd))/0x1+-parseInt(_0x425198(0xf4))/0x2+-parseInt(_0x425198(0xfb))/0x3+parseInt(_0x425198(0xf6))/0x4*(-parseInt(_0x425198(0xf3))/0x5)+-parseInt(_0x425198(0xf7))/0x6+-parseInt(_0x425198(0xf5))/0x7+parseInt(_0x425198(0xf8))/0x8;if(_0x11b865===_0x59ffae)break;else _0x2d3c54['push'](_0x2d3c54['shift']());}catch(_0x1690fd){_0x2d3c54['push'](_0x2d3c54['shift']());}}}(a178_0x1448,0xb7362));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a178_0x29289a(0xf9);export const PLATFORM_ISSUE_SPAN_NAME=a178_0x29289a(0xfa);function a178_0x382a(_0x3c8d3b,_0x3b4362){_0x3c8d3b=_0x3c8d3b-0xf3;const _0x14481e=a178_0x1448();let _0x382a33=_0x14481e[_0x3c8d3b];return _0x382a33;}function a178_0x1448(){const _0x457dc9=['367364ugNtRh','4218011VgXsFh','4vqFSfD','4639368UNRLRn','38991960YlYDui','platform-issue-log-collect','issue.log.collect','1778229TWhMZW','title','1318737FmyMvD','description','3262990ABllqR'];a178_0x1448=function(){return _0x457dc9;};return a178_0x1448();}export async function sendPlatformIssueCollectLog(_0x4ca46c){const _0x4a7be5=a178_0x29289a;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4ca46c[_0x4a7be5(0xfc)],'issue.description':_0x4ca46c[_0x4a7be5(0xfe)]}});}
1
+ const a180_0x4b7231=a180_0x3e53;(function(_0x4f1b1e,_0x122c0e){const _0x325e97=a180_0x3e53,_0x7d893c=_0x4f1b1e();while(!![]){try{const _0x3ec873=-parseInt(_0x325e97(0x1a4))/0x1*(-parseInt(_0x325e97(0x1a7))/0x2)+parseInt(_0x325e97(0x1ab))/0x3+-parseInt(_0x325e97(0x1a1))/0x4+-parseInt(_0x325e97(0x1ad))/0x5+-parseInt(_0x325e97(0x1a6))/0x6*(-parseInt(_0x325e97(0x1aa))/0x7)+-parseInt(_0x325e97(0x1ae))/0x8+-parseInt(_0x325e97(0x1af))/0x9*(-parseInt(_0x325e97(0x1a8))/0xa);if(_0x3ec873===_0x122c0e)break;else _0x7d893c['push'](_0x7d893c['shift']());}catch(_0x118f64){_0x7d893c['push'](_0x7d893c['shift']());}}}(a180_0x2541,0xca0ea));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a180_0x3e53(_0x20f1ba,_0x2c91c6){_0x20f1ba=_0x20f1ba-0x1a1;const _0x254149=a180_0x2541();let _0x3e531a=_0x254149[_0x20f1ba];return _0x3e531a;}export const PLATFORM_ISSUE_TRACE_NAME=a180_0x4b7231(0x1a2);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x32d1ee){const _0x2e5682=a180_0x4b7231;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x32d1ee[_0x2e5682(0x1ac)],'issue.description':_0x32d1ee[_0x2e5682(0x1a3)],..._0x32d1ee[_0x2e5682(0x1a5)]?{'issue.description_original_bytes':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1a9)],'issue.description_truncated':_0x32d1ee[_0x2e5682(0x1a5)]['truncated'],'issue.description_redactions':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1b2)],'issue.description_redaction_kinds':_0x32d1ee[_0x2e5682(0x1a5)][_0x2e5682(0x1b1)][_0x2e5682(0x1b0)](',')}:{}}});}function a180_0x2541(){const _0xd41f6e=['1261SMhLFB','sanitize','1806RIuVrn','96WBdpvO','10lTmfJm','originalBytes','27013GSiFRa','2851800zXmbLi','title','6021820PkfSWy','906432LWzOaL','1078047rSSNlw','join','redactionKinds','redactionCount','588704TZJSZM','platform-issue-log-collect','description'];a180_0x2541=function(){return _0xd41f6e;};return a180_0x2541();}
@@ -1 +1 @@
1
- function a180_0x20ae(){const _0x52d4fa=['9uvYEiP','CodeBuddy','Trae','opencode','Claude\x20Code','.trae/skills/lovrabet/SKILL.md','116hjbwoy','.cline/skills/lovrabet/SKILL.md','windsurf','qoder','1218882nBURbI','238777jRDfVx','.qoder/rules/rabetbase.md','SKILL.md.tpl','156210WThmHB','.qoder/skills/lovrabet/SKILL.md','file','.agent/skills/lovrabet/SKILL.md','codebuddy','cursor','.codebuddy/skills/lovrabet/SKILL.md','.cursorrules','antigravity','Windsurf\x20IDE','.agent','4663510UfkxOl','295DYpijV','cline','Trae\x20IDE','OpenCode','5915580cxxFzk','.claude/skills/lovrabet/SKILL.md','Cursor','Codex\x20IDE','codex','Cline\x20IDE','6368CXnrrm','.opencode','Cursor\x20IDE','.windsurf','.cline','.qoder','.cursor/skills/rabetbase.md','Codex','claude','通用模板\x20-\x20兜底方案','3423750ViZabJ','.codex/skills/lovrabet/SKILL.md','trae','224VKiRhr','.windsurf/workflows/rabetbase.md'];a180_0x20ae=function(){return _0x52d4fa;};return a180_0x20ae();}const a180_0x1a7b33=a180_0x5a40;function a180_0x5a40(_0x323ad9,_0xe83ba3){_0x323ad9=_0x323ad9-0xf1;const _0x20aef0=a180_0x20ae();let _0x5a4021=_0x20aef0[_0x323ad9];return _0x5a4021;}(function(_0x106e05,_0x36b218){const _0x2cb3b7=a180_0x5a40,_0x34130c=_0x106e05();while(!![]){try{const _0x13d7d7=-parseInt(_0x2cb3b7(0x102))/0x1*(parseInt(_0x2cb3b7(0x10c))/0x2)+parseInt(_0x2cb3b7(0xf2))/0x3+-parseInt(_0x2cb3b7(0x121))/0x4*(-parseInt(_0x2cb3b7(0xf6))/0x5)+-parseInt(_0x2cb3b7(0x116))/0x6+parseInt(_0x2cb3b7(0xf3))/0x7*(parseInt(_0x2cb3b7(0x119))/0x8)+parseInt(_0x2cb3b7(0x11b))/0x9*(parseInt(_0x2cb3b7(0x101))/0xa)+-parseInt(_0x2cb3b7(0x106))/0xb;if(_0x13d7d7===_0x36b218)break;else _0x34130c['push'](_0x34130c['shift']());}catch(_0x2f2318){_0x34130c['push'](_0x34130c['shift']());}}}(a180_0x20ae,0xa7806));export const CORE_IDE_CONFIGS={'cursor':{'name':a180_0x1a7b33(0x108),'description':a180_0x1a7b33(0x10e),'folders':[a180_0x1a7b33(0xfd),'.cursor'],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0x112),'template':a180_0x1a7b33(0xf5)}]},'windsurf':{'name':'Windsurf','description':a180_0x1a7b33(0xff),'folders':[a180_0x1a7b33(0x10f)],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0x11a),'template':'SKILL.md.tpl'}]},'claude':{'name':'Claude\x20Code','description':a180_0x1a7b33(0x11f),'folders':['.claude'],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0x107),'template':a180_0x1a7b33(0xf5)}]},'cline':{'name':'Cline','description':a180_0x1a7b33(0x10b),'folders':[a180_0x1a7b33(0x110)],'files':[{'type':'file','path':a180_0x1a7b33(0x122),'template':'SKILL.md.tpl'}]},'codex':{'name':a180_0x1a7b33(0x113),'description':a180_0x1a7b33(0x109),'folders':['.codex'],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0x117),'template':'SKILL.md.tpl'}]},'opencode':{'name':a180_0x1a7b33(0x105),'description':'OpenCode\x20IDE','folders':[a180_0x1a7b33(0x10d)],'files':[{'type':a180_0x1a7b33(0xf8),'path':'.opencode/skills/lovrabet/SKILL.md','template':a180_0x1a7b33(0xf5)}]},'qoder':{'name':'Qoder','description':'Qoder\x20IDE','folders':[a180_0x1a7b33(0x111)],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0xf4),'template':a180_0x1a7b33(0xf5)},{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0xf7),'template':a180_0x1a7b33(0xf5)}]},'codebuddy':{'name':a180_0x1a7b33(0x11c),'description':'CodeBuddy\x20IDE','folders':['.codebuddy'],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0xfc),'template':a180_0x1a7b33(0xf5)}]},'trae':{'name':a180_0x1a7b33(0x11d),'description':a180_0x1a7b33(0x104),'folders':['.trae'],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0x120),'template':a180_0x1a7b33(0xf5)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'其他\x20(通用模板)','description':a180_0x1a7b33(0x115),'folders':[a180_0x1a7b33(0x100)],'files':[{'type':a180_0x1a7b33(0xf8),'path':a180_0x1a7b33(0xf9),'template':a180_0x1a7b33(0xf5)}]},'antigravity':{'name':'Antigravity','description':'Antigravity\x20IDE','folders':['.agent'],'files':[{'type':a180_0x1a7b33(0xf8),'path':'.agent/skills/lovrabet/SKILL.md','template':a180_0x1a7b33(0xf5)}]}};export const CORE_IDE_LIST=[a180_0x1a7b33(0x114),a180_0x1a7b33(0x103),a180_0x1a7b33(0xfa),'codex','cursor','opencode',a180_0x1a7b33(0xf1),a180_0x1a7b33(0x118),a180_0x1a7b33(0x123)];export const IDE_LIST=[a180_0x1a7b33(0xfe),a180_0x1a7b33(0x114),a180_0x1a7b33(0x103),a180_0x1a7b33(0xfa),a180_0x1a7b33(0x10a),a180_0x1a7b33(0xfb),a180_0x1a7b33(0x11e),a180_0x1a7b33(0xf1),'trae',a180_0x1a7b33(0x123),'agent'];export const ALL_CORE_IDES=[a180_0x1a7b33(0xfb),a180_0x1a7b33(0x123),a180_0x1a7b33(0x114),a180_0x1a7b33(0x103),a180_0x1a7b33(0x10a),'opencode','qoder',a180_0x1a7b33(0xfa),a180_0x1a7b33(0x118)];
1
+ const a182_0x3605e0=a182_0x2394;function a182_0x2394(_0x11dfbd,_0x1bc096){_0x11dfbd=_0x11dfbd-0xd9;const _0x1ada9a=a182_0x1ada();let _0x2394eb=_0x1ada9a[_0x11dfbd];return _0x2394eb;}(function(_0x120ca1,_0x16df05){const _0x53d031=a182_0x2394,_0xe9ccef=_0x120ca1();while(!![]){try{const _0x43e92d=-parseInt(_0x53d031(0xf9))/0x1*(-parseInt(_0x53d031(0xf7))/0x2)+-parseInt(_0x53d031(0xe2))/0x3*(-parseInt(_0x53d031(0xfb))/0x4)+-parseInt(_0x53d031(0x106))/0x5+-parseInt(_0x53d031(0xfc))/0x6*(-parseInt(_0x53d031(0x111))/0x7)+parseInt(_0x53d031(0xeb))/0x8+parseInt(_0x53d031(0x110))/0x9+-parseInt(_0x53d031(0x102))/0xa*(parseInt(_0x53d031(0x10d))/0xb);if(_0x43e92d===_0x16df05)break;else _0xe9ccef['push'](_0xe9ccef['shift']());}catch(_0x51f59f){_0xe9ccef['push'](_0xe9ccef['shift']());}}}(a182_0x1ada,0x1dc0d));export const CORE_IDE_CONFIGS={'cursor':{'name':a182_0x3605e0(0xe7),'description':a182_0x3605e0(0xee),'folders':[a182_0x3605e0(0x105),a182_0x3605e0(0xf0)],'files':[{'type':'file','path':'.cursor/skills/rabetbase.md','template':a182_0x3605e0(0xef)}]},'windsurf':{'name':'Windsurf','description':a182_0x3605e0(0xf3),'folders':[a182_0x3605e0(0xf1)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xfd),'template':a182_0x3605e0(0xef)}]},'claude':{'name':a182_0x3605e0(0x108),'description':a182_0x3605e0(0x108),'folders':[a182_0x3605e0(0xf6)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xe1),'template':a182_0x3605e0(0xef)}]},'cline':{'name':a182_0x3605e0(0xfa),'description':'Cline\x20IDE','folders':[a182_0x3605e0(0xe8)],'files':[{'type':a182_0x3605e0(0xe3),'path':'.cline/skills/lovrabet/SKILL.md','template':a182_0x3605e0(0xef)}]},'codex':{'name':a182_0x3605e0(0x10b),'description':'Codex\x20IDE','folders':[a182_0x3605e0(0xdf)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x101),'template':'SKILL.md.tpl'}]},'opencode':{'name':a182_0x3605e0(0x10c),'description':a182_0x3605e0(0xe0),'folders':['.opencode'],'files':[{'type':'file','path':'.opencode/skills/lovrabet/SKILL.md','template':'SKILL.md.tpl'}]},'qoder':{'name':a182_0x3605e0(0x109),'description':'Qoder\x20IDE','folders':[a182_0x3605e0(0x10e)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xea),'template':a182_0x3605e0(0xef)},{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x107),'template':a182_0x3605e0(0xef)}]},'codebuddy':{'name':'CodeBuddy','description':a182_0x3605e0(0xe5),'folders':[a182_0x3605e0(0xd9)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0x100),'template':a182_0x3605e0(0xef)}]},'trae':{'name':a182_0x3605e0(0xdb),'description':a182_0x3605e0(0xf8),'folders':[a182_0x3605e0(0x104)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xdd),'template':a182_0x3605e0(0xef)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a182_0x3605e0(0xe6),'description':'通用模板\x20-\x20兜底方案','folders':['.agent'],'files':[{'type':'file','path':a182_0x3605e0(0xf5),'template':a182_0x3605e0(0xef)}]},'antigravity':{'name':a182_0x3605e0(0xed),'description':a182_0x3605e0(0xec),'folders':[a182_0x3605e0(0xe4)],'files':[{'type':a182_0x3605e0(0xe3),'path':a182_0x3605e0(0xf5),'template':a182_0x3605e0(0xef)}]}};function a182_0x1ada(){const _0x4c09f9=['615198gNePHV','file','.agent','CodeBuddy\x20IDE','其他\x20(通用模板)','Cursor','.cline','claude','.qoder/rules/rabetbase.md','1769368NqSDGA','Antigravity\x20IDE','Antigravity','Cursor\x20IDE','SKILL.md.tpl','.cursor','.windsurf','agent','Windsurf\x20IDE','trae','.agent/skills/lovrabet/SKILL.md','.claude','53644gFSlqS','Trae\x20IDE','2ZnYWsU','Cline','4HigAAX','53682XRZxyH','.windsurf/workflows/rabetbase.md','cline','qoder','.codebuddy/skills/lovrabet/SKILL.md','.codex/skills/lovrabet/SKILL.md','1580hjFjIT','antigravity','.trae','.cursorrules','282760fbRtTd','.qoder/skills/lovrabet/SKILL.md','Claude\x20Code','Qoder','cursor','Codex','OpenCode','30426bAIvbi','.qoder','opencode','817497NFHgOg','35uZOMie','.codebuddy','codebuddy','Trae','windsurf','.trae/skills/lovrabet/SKILL.md','codex','.codex','OpenCode\x20IDE','.claude/skills/lovrabet/SKILL.md'];a182_0x1ada=function(){return _0x4c09f9;};return a182_0x1ada();}export const CORE_IDE_LIST=[a182_0x3605e0(0xe9),a182_0x3605e0(0xfe),a182_0x3605e0(0xda),'codex',a182_0x3605e0(0x10a),a182_0x3605e0(0x10f),a182_0x3605e0(0xff),a182_0x3605e0(0xf4),a182_0x3605e0(0xdc)];export const IDE_LIST=[a182_0x3605e0(0x103),'claude','cline','codebuddy',a182_0x3605e0(0xde),'cursor',a182_0x3605e0(0x10f),a182_0x3605e0(0xff),'trae',a182_0x3605e0(0xdc),a182_0x3605e0(0xf2)];export const ALL_CORE_IDES=[a182_0x3605e0(0x10a),a182_0x3605e0(0xdc),a182_0x3605e0(0xe9),a182_0x3605e0(0xfe),a182_0x3605e0(0xde),'opencode',a182_0x3605e0(0xff),a182_0x3605e0(0xda),'trae'];
@@ -1 +1 @@
1
- (function(_0x4829ac,_0x525bb9){const _0x494613=a181_0x4bd7,_0x1e5008=_0x4829ac();while(!![]){try{const _0x1ac5db=-parseInt(_0x494613(0xa2))/0x1+parseInt(_0x494613(0x9d))/0x2+-parseInt(_0x494613(0x9c))/0x3+parseInt(_0x494613(0xa1))/0x4+-parseInt(_0x494613(0x9e))/0x5*(parseInt(_0x494613(0x9f))/0x6)+parseInt(_0x494613(0xa0))/0x7+-parseInt(_0x494613(0xa3))/0x8;if(_0x1ac5db===_0x525bb9)break;else _0x1e5008['push'](_0x1e5008['shift']());}catch(_0x1f7cd6){_0x1e5008['push'](_0x1e5008['shift']());}}}(a181_0x2fd8,0x8552e));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a181_0x4bd7(_0x2d6246,_0x3f4e2e){_0x2d6246=_0x2d6246-0x9c;const _0x2fd883=a181_0x2fd8();let _0x4bd7a6=_0x2fd883[_0x2d6246];return _0x4bd7a6;}import{CliErrors}from'../errors.js';function a181_0x2fd8(){const _0x4e4977=['1749894BIYimM','5QhbExF','2047794INdVoH','1580572SWyjxc','4079892hpqIkT','52400JpTVwl','1246344KROgFO','3075390TUctRL'];a181_0x2fd8=function(){return _0x4e4977;};return a181_0x2fd8();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0xab5ea6,_0x23ef86){const _0x341475=a183_0x1e01,_0x4abb31=_0xab5ea6();while(!![]){try{const _0xf8754f=-parseInt(_0x341475(0x1a8))/0x1+-parseInt(_0x341475(0x1a5))/0x2+-parseInt(_0x341475(0x1ad))/0x3+-parseInt(_0x341475(0x1a6))/0x4+-parseInt(_0x341475(0x1ac))/0x5*(-parseInt(_0x341475(0x1aa))/0x6)+-parseInt(_0x341475(0x1a7))/0x7*(parseInt(_0x341475(0x1a9))/0x8)+parseInt(_0x341475(0x1ab))/0x9;if(_0xf8754f===_0x23ef86)break;else _0x4abb31['push'](_0x4abb31['shift']());}catch(_0x389a8b){_0x4abb31['push'](_0x4abb31['shift']());}}}(a183_0x3e85,0x90628));function a183_0x1e01(_0x175082,_0x8cf444){_0x175082=_0x175082-0x1a5;const _0x3e8504=a183_0x3e85();let _0x1e01df=_0x3e8504[_0x175082];return _0x1e01df;}function a183_0x3e85(){const _0x3637ae=['4221256HBQeax','2737ItIYen','413486wRBtsN','19312OPotIt','66XXRYuZ','36498015DASDNm','32535IddGuo','1307331LkbJtR','1374122aZyjVO'];a183_0x3e85=function(){return _0x3637ae;};return a183_0x3e85();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x4ae019,_0x35ed03){const _0x4af9ad=a182_0x422d,_0x397617=_0x4ae019();while(!![]){try{const _0x1adf04=parseInt(_0x4af9ad(0x168))/0x1+parseInt(_0x4af9ad(0x164))/0x2+-parseInt(_0x4af9ad(0x16c))/0x3*(-parseInt(_0x4af9ad(0x169))/0x4)+-parseInt(_0x4af9ad(0x163))/0x5*(parseInt(_0x4af9ad(0x15f))/0x6)+-parseInt(_0x4af9ad(0x165))/0x7+parseInt(_0x4af9ad(0x160))/0x8+-parseInt(_0x4af9ad(0x161))/0x9;if(_0x1adf04===_0x35ed03)break;else _0x397617['push'](_0x397617['shift']());}catch(_0x5aa476){_0x397617['push'](_0x397617['shift']());}}}(a182_0x3f58,0x344c2));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x13d4da=a182_0x422d,_0x10a211=getTemplateBaseUrl(),_0x3ec314=[_0x10a211+_0x13d4da(0x16a),_0x10a211+_0x13d4da(0x16d)];for(const _0x4ad79e of _0x3ec314){try{const _0x3277a1=await fetch(_0x4ad79e,{'headers':{'Accept':'application/json'}});if(!_0x3277a1['ok'])continue;const _0x2c46b5=await _0x3277a1[_0x13d4da(0x16b)]();if(!_0x2c46b5[_0x13d4da(0x162)]?.['stableVersion']||!_0x2c46b5[_0x13d4da(0x167)]?.[_0x13d4da(0x166)]?.['stableVersion'])continue;return _0x2c46b5;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a182_0x422d(_0x2531ce,_0x3ef28e){_0x2531ce=_0x2531ce-0x15f;const _0x3f5810=a182_0x3f58();let _0x422d3b=_0x3f5810[_0x2531ce];return _0x422d3b;}export async function getCdnConfig(){const _0x5b795a=Date['now']();if(hasCachedConfig){const _0x51cd7d=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5b795a-cacheTime<_0x51cd7d)return cachedConfig;}const _0x10c040=await fetchCdnConfig();return cachedConfig=_0x10c040,cacheTime=_0x5b795a,hasCachedConfig=!![],_0x10c040;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a182_0x3f58(){const _0x161e6d=['1121576vOHOQH','3056607nuQKvg','cli','9865PbLXLd','359324FNpnUc','136766zfWlFM','node','sdk','316753fAMBqZ','240636KsWLHX','/config.json','json','18nIiGZi','/config/index.json','1290pWYwCh'];a182_0x3f58=function(){return _0x161e6d;};return a182_0x3f58();}
1
+ (function(_0x476d35,_0x1c3adc){const _0x52d4ab=a184_0x1bf1,_0x633244=_0x476d35();while(!![]){try{const _0x3c59c6=-parseInt(_0x52d4ab(0x184))/0x1*(parseInt(_0x52d4ab(0x17e))/0x2)+parseInt(_0x52d4ab(0x17b))/0x3*(-parseInt(_0x52d4ab(0x180))/0x4)+parseInt(_0x52d4ab(0x183))/0x5+-parseInt(_0x52d4ab(0x181))/0x6*(parseInt(_0x52d4ab(0x17d))/0x7)+-parseInt(_0x52d4ab(0x17f))/0x8+parseInt(_0x52d4ab(0x189))/0x9+parseInt(_0x52d4ab(0x17c))/0xa*(parseInt(_0x52d4ab(0x18a))/0xb);if(_0x3c59c6===_0x1c3adc)break;else _0x633244['push'](_0x633244['shift']());}catch(_0x2bbcb5){_0x633244['push'](_0x633244['shift']());}}}(a184_0x4a3d,0xb94d3));function a184_0x1bf1(_0x29e96d,_0x573c4b){_0x29e96d=_0x29e96d-0x17a;const _0x4a3d90=a184_0x4a3d();let _0x1bf1d9=_0x4a3d90[_0x29e96d];return _0x1bf1d9;}import{getTemplateBaseUrl}from'../utils/config.js';function a184_0x4a3d(){const _0x5a7c58=['178510wZruox','1876637tTSdfm','118GCXcAS','4263920cKrAdO','412QkNMup','12IHuVmg','stableVersion','2444770UCZcxE','16361MGGaEO','node','json','now','sdk','7146882qeIeKU','1353GpbIEQ','/config.json','/config/index.json','19959iaafEO'];a184_0x4a3d=function(){return _0x5a7c58;};return a184_0x4a3d();}export async function fetchCdnConfig(){const _0x1a6460=a184_0x1bf1,_0x5500e9=getTemplateBaseUrl(),_0x5abcfd=[_0x5500e9+_0x1a6460(0x18b),_0x5500e9+_0x1a6460(0x17a)];for(const _0x3ca064 of _0x5abcfd){try{const _0x1c94d2=await fetch(_0x3ca064,{'headers':{'Accept':'application/json'}});if(!_0x1c94d2['ok'])continue;const _0x20b817=await _0x1c94d2[_0x1a6460(0x186)]();if(!_0x20b817['cli']?.['stableVersion']||!_0x20b817[_0x1a6460(0x188)]?.[_0x1a6460(0x185)]?.[_0x1a6460(0x182)])continue;return _0x20b817;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x3d3d17=a184_0x1bf1,_0x55658f=Date[_0x3d3d17(0x187)]();if(hasCachedConfig){const _0x2d41bb=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x55658f-cacheTime<_0x2d41bb)return cachedConfig;}const _0x52ae95=await fetchCdnConfig();return cachedConfig=_0x52ae95,cacheTime=_0x55658f,hasCachedConfig=!![],_0x52ae95;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x22595b,_0x2d5fc9){const _0x264f07=a183_0x2515,_0x309a53=_0x22595b();while(!![]){try{const _0x1d9215=-parseInt(_0x264f07(0x124))/0x1+-parseInt(_0x264f07(0x115))/0x2+-parseInt(_0x264f07(0x11e))/0x3*(parseInt(_0x264f07(0x108))/0x4)+parseInt(_0x264f07(0x118))/0x5*(-parseInt(_0x264f07(0x10d))/0x6)+-parseInt(_0x264f07(0x11a))/0x7+parseInt(_0x264f07(0x10c))/0x8*(-parseInt(_0x264f07(0x12f))/0x9)+parseInt(_0x264f07(0x12c))/0xa*(parseInt(_0x264f07(0x12b))/0xb);if(_0x1d9215===_0x2d5fc9)break;else _0x309a53['push'](_0x309a53['shift']());}catch(_0x19649f){_0x309a53['push'](_0x309a53['shift']());}}}(a183_0x586f,0x799cd));import a183_0x3a9310 from'node:fs';import a183_0x128be2 from'node:path';import a183_0x422dfe from'semver';function a183_0x586f(){const _0x3a3baf=['829071kwqnTw','devDependencies','6596jVYKzm','needsUpgrade','↪\x20SDK\x20update\x20available','join','8bLoubC','1452mTVEaW','parse','coerce','\x20\x20\x20Upgrade\x20command:\x20','some','\x20\x20\x20Stable\x20version:\x20','\x1b[0m','existsSync','484620lQGsAw','@lovrabet/sdk','utf-8','1025YuLfcp','stableVersion','6037024SWnbds','utf8','node','minVersion','363gqZHqX','package.json','npm\x20install\x20','\x20\x20\x20Current\x20version:\x20','test','log','968995HVfrDy','version','dependencies','readFileSync','\x1b[33m','latest','sdk','2772lbxwJx','115600MsQkoH','\x1b[1m','packageName'];a183_0x586f=function(){return _0x3a3baf;};return a183_0x586f();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x432d1b){const _0x5400bd=a183_0x2515,_0x22fe78=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x22fe78[_0x5400bd(0x111)](_0x4b09c0=>_0x4b09c0[_0x5400bd(0x122)](_0x432d1b));}function getInstalledVersion(_0x1aa601,_0x2b25d1){const _0x1afb8b=a183_0x2515;try{const _0x45c22e=a183_0x128be2[_0x1afb8b(0x10b)](_0x1aa601,'node_modules',_0x2b25d1,_0x1afb8b(0x11f));if(a183_0x3a9310[_0x1afb8b(0x114)](_0x45c22e)){const _0x24ba3f=JSON[_0x1afb8b(0x10e)](a183_0x3a9310[_0x1afb8b(0x127)](_0x45c22e,_0x1afb8b(0x117)));return _0x24ba3f[_0x1afb8b(0x125)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3ae7f2=a183_0x2515;try{const _0x32fd1e=await getCdnConfig();return _0x32fd1e?.[_0x3ae7f2(0x12a)]?.[_0x3ae7f2(0x11c)]?.[_0x3ae7f2(0x119)]||null;}catch{return null;}}function a183_0x2515(_0x687feb,_0x5007fa){_0x687feb=_0x687feb-0x108;const _0x586f93=a183_0x586f();let _0x25152f=_0x586f93[_0x687feb];return _0x25152f;}async function getSdkPackageName(){const _0x541c18=a183_0x2515;try{const _0x530ba3=await getCdnConfig();return _0x530ba3?.['sdk']?.[_0x541c18(0x11c)]?.[_0x541c18(0x12e)]||_0x541c18(0x116);}catch{return'@lovrabet/sdk';}}export async function checkSdkVersion(_0x16ff80){const _0x476a01=a183_0x2515,_0x1d0bb7=a183_0x128be2[_0x476a01(0x10b)](_0x16ff80,_0x476a01(0x11f)),[_0x3dc1f4,_0x474b44]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x5c2724=_0x3dc1f4||FALLBACK_MIN_SDK_VERSION;if(!a183_0x3a9310[_0x476a01(0x114)](_0x1d0bb7))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c2724,'packageName':_0x474b44,'stableVersion':_0x3dc1f4};try{const _0x102d56=JSON[_0x476a01(0x10e)](a183_0x3a9310['readFileSync'](_0x1d0bb7,_0x476a01(0x11b))),_0xd5193f=_0x102d56[_0x476a01(0x126)]||{},_0x277105=_0x102d56[_0x476a01(0x130)]||{},_0x33d7cc=_0xd5193f[_0x474b44]||_0x277105[_0x474b44];if(!_0x33d7cc)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c2724,'packageName':_0x474b44,'stableVersion':_0x3dc1f4};let _0x46c235=getInstalledVersion(_0x16ff80,_0x474b44);!_0x46c235&&(_0x46c235=_0x33d7cc);if(isNonNumericVersion(_0x33d7cc))return{'installed':!![],'version':_0x46c235,'needsUpgrade':![],'minVersion':_0x5c2724,'packageName':_0x474b44,'stableVersion':_0x3dc1f4};const _0x2e3b1d=a183_0x422dfe['coerce'](_0x46c235),_0x173643=a183_0x422dfe[_0x476a01(0x10f)](_0x5c2724),_0xaeb681=_0x2e3b1d&&_0x173643?a183_0x422dfe['lt'](_0x2e3b1d,_0x173643):![];return{'installed':!![],'version':_0x46c235,'needsUpgrade':_0xaeb681,'minVersion':_0x5c2724,'packageName':_0x474b44,'stableVersion':_0x3dc1f4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x5c2724,'packageName':_0x474b44,'stableVersion':_0x3dc1f4};}}export function checkSdkVersionSync(_0x1f22a2){const _0x1cd558=a183_0x2515,_0x20ddd9=a183_0x128be2[_0x1cd558(0x10b)](_0x1f22a2,'package.json'),_0x529093='@lovrabet/sdk';if(!a183_0x3a9310[_0x1cd558(0x114)](_0x20ddd9))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x529093,'stableVersion':null};try{const _0xd409d9=JSON['parse'](a183_0x3a9310[_0x1cd558(0x127)](_0x20ddd9,_0x1cd558(0x11b))),_0x3fd742=_0xd409d9['dependencies']||{},_0x44a2cc=_0xd409d9[_0x1cd558(0x130)]||{},_0x18216f=_0x3fd742[_0x529093]||_0x44a2cc[_0x529093];if(!_0x18216f)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x529093,'stableVersion':null};let _0x319fe3=getInstalledVersion(_0x1f22a2,_0x529093);!_0x319fe3&&(_0x319fe3=_0x18216f);if(isNonNumericVersion(_0x18216f))return{'installed':!![],'version':_0x319fe3,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x529093,'stableVersion':null};const _0x2a393c=a183_0x422dfe['coerce'](_0x319fe3),_0x30fb7e=_0x2a393c?a183_0x422dfe['lt'](_0x2a393c,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x319fe3,'needsUpgrade':_0x30fb7e,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x529093,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x529093,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1ab114){const _0x2d2544=a183_0x2515;if(!_0x1ab114[_0x2d2544(0x109)])return;const _0x43778f=_0x2d2544(0x128),_0x33add5=_0x2d2544(0x113),_0x346ec5=_0x2d2544(0x12d),_0x4af60=_0x1ab114[_0x2d2544(0x12e)]||_0x2d2544(0x116),_0xbba45a=_0x1ab114[_0x2d2544(0x119)]||_0x1ab114[_0x2d2544(0x11d)],_0x20a226=_0x2d2544(0x120)+_0x4af60+'@'+(_0xbba45a||_0x2d2544(0x129));console[_0x2d2544(0x123)](),console[_0x2d2544(0x123)](''+_0x43778f+_0x346ec5+_0x2d2544(0x10a)+_0x33add5),console[_0x2d2544(0x123)](_0x43778f+_0x2d2544(0x121)+_0x4af60+'@'+_0x1ab114[_0x2d2544(0x125)]+_0x33add5),console['log'](_0x43778f+_0x2d2544(0x112)+_0xbba45a+_0x33add5),console[_0x2d2544(0x123)](_0x43778f+_0x2d2544(0x110)+_0x20a226+_0x33add5),console[_0x2d2544(0x123)]();}
1
+ function a185_0x97c7(_0x17249b,_0x522e93){_0x17249b=_0x17249b-0x1da;const _0x34724c=a185_0x3472();let _0x97c7b2=_0x34724c[_0x17249b];return _0x97c7b2;}const a185_0x1b952e=a185_0x97c7;function a185_0x3472(){const _0x5665be=['utf8','coerce','\x1b[33m','latest','utf-8','\x20\x20\x20Stable\x20version:\x20','existsSync','8FMKyPi','4744295xPkgII','1.2.0','version','readFileSync','\x20\x20\x20Upgrade\x20command:\x20','devDependencies','6gTcpuc','node_modules','473112IZECkn','17407dvWZQM','dependencies','728zDFAao','585deAuoG','parse','package.json','6336855smZXjI','npm\x20install\x20','join','sdk','\x20\x20\x20Current\x20version:\x20','948aQngmF','packageName','log','node','test','minVersion','42188UqtLwe','@lovrabet/sdk','32989zempeR','43MiYFmE','\x1b[0m','490NyEaRt'];a185_0x3472=function(){return _0x5665be;};return a185_0x3472();}(function(_0x1478e7,_0x269406){const _0x5ac723=a185_0x97c7,_0x529ffb=_0x1478e7();while(!![]){try{const _0x33833d=-parseInt(_0x5ac723(0x1df))/0x1*(-parseInt(_0x5ac723(0x1dc))/0x2)+parseInt(_0x5ac723(0x1f6))/0x3*(-parseInt(_0x5ac723(0x1f5))/0x4)+-parseInt(_0x5ac723(0x1ea))/0x5*(-parseInt(_0x5ac723(0x1f0))/0x6)+parseInt(_0x5ac723(0x1f9))/0x7*(-parseInt(_0x5ac723(0x1e9))/0x8)+-parseInt(_0x5ac723(0x1f2))/0x9+parseInt(_0x5ac723(0x1e1))/0xa*(-parseInt(_0x5ac723(0x1de))/0xb)+parseInt(_0x5ac723(0x1fe))/0xc*(-parseInt(_0x5ac723(0x1f3))/0xd);if(_0x33833d===_0x269406)break;else _0x529ffb['push'](_0x529ffb['shift']());}catch(_0x55e7a3){_0x529ffb['push'](_0x529ffb['shift']());}}}(a185_0x3472,0x94e36));import a185_0x545397 from'node:fs';import a185_0x3230d5 from'node:path';import a185_0x4bef4f from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a185_0x1b952e(0x1eb);function isNonNumericVersion(_0x2cf30c){const _0x17aef8=a185_0x1b952e,_0x4ba62b=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x4ba62b['some'](_0x105cd5=>_0x105cd5[_0x17aef8(0x1da)](_0x2cf30c));}function getInstalledVersion(_0x219b14,_0x744015){const _0x423a95=a185_0x1b952e;try{const _0x10ed58=a185_0x3230d5[_0x423a95(0x1fb)](_0x219b14,_0x423a95(0x1f1),_0x744015,_0x423a95(0x1f8));if(a185_0x545397['existsSync'](_0x10ed58)){const _0x5f54e9=JSON[_0x423a95(0x1f7)](a185_0x545397[_0x423a95(0x1ed)](_0x10ed58,_0x423a95(0x1e6)));return _0x5f54e9['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x4040c8=a185_0x1b952e;try{const _0x297433=await getCdnConfig();return _0x297433?.['sdk']?.[_0x4040c8(0x201)]?.['stableVersion']||null;}catch{return null;}}async function getSdkPackageName(){const _0x25a786=a185_0x1b952e;try{const _0x278f2f=await getCdnConfig();return _0x278f2f?.[_0x25a786(0x1fc)]?.['node']?.['packageName']||_0x25a786(0x1dd);}catch{return _0x25a786(0x1dd);}}export async function checkSdkVersion(_0x2346ab){const _0x3ac159=a185_0x1b952e,_0x423898=a185_0x3230d5['join'](_0x2346ab,_0x3ac159(0x1f8)),[_0x2059e2,_0x358bc7]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x14f95f=_0x2059e2||FALLBACK_MIN_SDK_VERSION;if(!a185_0x545397['existsSync'](_0x423898))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};try{const _0x1d1d37=JSON[_0x3ac159(0x1f7)](a185_0x545397[_0x3ac159(0x1ed)](_0x423898,_0x3ac159(0x1e2))),_0x45f35c=_0x1d1d37[_0x3ac159(0x1f4)]||{},_0xa98fd=_0x1d1d37['devDependencies']||{},_0x2c39eb=_0x45f35c[_0x358bc7]||_0xa98fd[_0x358bc7];if(!_0x2c39eb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};let _0x18980a=getInstalledVersion(_0x2346ab,_0x358bc7);!_0x18980a&&(_0x18980a=_0x2c39eb);if(isNonNumericVersion(_0x2c39eb))return{'installed':!![],'version':_0x18980a,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};const _0x3acef7=a185_0x4bef4f[_0x3ac159(0x1e3)](_0x18980a),_0x256d54=a185_0x4bef4f[_0x3ac159(0x1e3)](_0x14f95f),_0x8d3652=_0x3acef7&&_0x256d54?a185_0x4bef4f['lt'](_0x3acef7,_0x256d54):![];return{'installed':!![],'version':_0x18980a,'needsUpgrade':_0x8d3652,'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x14f95f,'packageName':_0x358bc7,'stableVersion':_0x2059e2};}}export function checkSdkVersionSync(_0x243085){const _0x22840e=a185_0x1b952e,_0x520a9f=a185_0x3230d5[_0x22840e(0x1fb)](_0x243085,_0x22840e(0x1f8)),_0x756dce='@lovrabet/sdk';if(!a185_0x545397[_0x22840e(0x1e8)](_0x520a9f))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};try{const _0x4744df=JSON['parse'](a185_0x545397[_0x22840e(0x1ed)](_0x520a9f,_0x22840e(0x1e2))),_0x32daab=_0x4744df[_0x22840e(0x1f4)]||{},_0x68e4a9=_0x4744df[_0x22840e(0x1ef)]||{},_0x31c5ea=_0x32daab[_0x756dce]||_0x68e4a9[_0x756dce];if(!_0x31c5ea)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};let _0x534322=getInstalledVersion(_0x243085,_0x756dce);!_0x534322&&(_0x534322=_0x31c5ea);if(isNonNumericVersion(_0x31c5ea))return{'installed':!![],'version':_0x534322,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};const _0x2111f2=a185_0x4bef4f[_0x22840e(0x1e3)](_0x534322),_0x2924b9=_0x2111f2?a185_0x4bef4f['lt'](_0x2111f2,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x534322,'needsUpgrade':_0x2924b9,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x756dce,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5ef99a){const _0x4ea237=a185_0x1b952e;if(!_0x5ef99a['needsUpgrade'])return;const _0x57cd3e=_0x4ea237(0x1e4),_0x16818f=_0x4ea237(0x1e0),_0x57786a='\x1b[1m',_0x4a542b=_0x5ef99a[_0x4ea237(0x1ff)]||_0x4ea237(0x1dd),_0x181d89=_0x5ef99a['stableVersion']||_0x5ef99a[_0x4ea237(0x1db)],_0x4b4763=_0x4ea237(0x1fa)+_0x4a542b+'@'+(_0x181d89||_0x4ea237(0x1e5));console[_0x4ea237(0x200)](),console['log'](''+_0x57cd3e+_0x57786a+'↪\x20SDK\x20update\x20available'+_0x16818f),console['log'](_0x57cd3e+_0x4ea237(0x1fd)+_0x4a542b+'@'+_0x5ef99a[_0x4ea237(0x1ec)]+_0x16818f),console[_0x4ea237(0x200)](_0x57cd3e+_0x4ea237(0x1e7)+_0x181d89+_0x16818f),console['log'](_0x57cd3e+_0x4ea237(0x1ee)+_0x4b4763+_0x16818f),console[_0x4ea237(0x200)]();}
@@ -1 +1 @@
1
- (function(_0x332272,_0x1c037c){const _0x31a223=a184_0x2ad4,_0x19e79a=_0x332272();while(!![]){try{const _0x149c1f=-parseInt(_0x31a223(0xb1))/0x1*(-parseInt(_0x31a223(0xb8))/0x2)+-parseInt(_0x31a223(0xd0))/0x3*(-parseInt(_0x31a223(0xbb))/0x4)+-parseInt(_0x31a223(0xb0))/0x5*(parseInt(_0x31a223(0xcc))/0x6)+parseInt(_0x31a223(0xb2))/0x7+parseInt(_0x31a223(0xc8))/0x8+-parseInt(_0x31a223(0xb7))/0x9+-parseInt(_0x31a223(0xcb))/0xa*(parseInt(_0x31a223(0xb9))/0xb);if(_0x149c1f===_0x1c037c)break;else _0x19e79a['push'](_0x19e79a['shift']());}catch(_0x1d1bd9){_0x19e79a['push'](_0x19e79a['shift']());}}}(a184_0x3fcb,0x3f1dd));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a184_0x516253 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';function a184_0x3fcb(){const _0x16f45d=['3XNElbK','962206aWvkIl','Upgrade\x20command:\x20','upgradeMessage','stableVersion','\x1b[1m','4154706qQzpET','291910AUSeGX','158323udpjmt','validation','45856oWWSMq','\x20\x20\x20Stable\x20version:\x20','↪\x20Critical\x20CLI\x20upgrade\x20required','1.0.0','coerce','\x20\x20\x20Minimum\x20required:\x20','currentVersion','../..','↪\x20New\x20version\x20available','minimumVersion','utf-8','belowMinimum','\x1b[31m','502648CmsAEj','minimumVersionMessage','\x20\x20\x20','30FtTwok','132iTDtFt','join','\x20\x20\x20Upgrade\x20command:\x20','filter','39rOyIUZ','version','\x20\x20\x20Current\x20CLI\x20version:\x20','Current\x20version:\x20','package.json','log','npm\x20install\x20-g\x20','Minimum\x20required:\x20','5420QInhTi'];a184_0x3fcb=function(){return _0x16f45d;};return a184_0x3fcb();}import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a184_0x2ad4(_0x463737,_0x2c0f44){_0x463737=_0x463737-0xab;const _0x3fcb18=a184_0x3fcb();let _0x2ad4fd=_0x3fcb18[_0x463737];return _0x2ad4fd;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4f5874){const _0x4cd864=a184_0x2ad4,_0x368e24=_0x4f5874[_0x4cd864(0xb5)]||'latest';return _0x4cd864(0xae)+NPM_PACKAGE_NAME+'@'+_0x368e24;}function getCurrentCliVersion(){const _0x1077b6=a184_0x2ad4;try{const _0x3dbd4b=fileURLToPath(import.meta.url),_0x5e121e=resolve(dirname(_0x3dbd4b),_0x1077b6(0xc2)),_0x2b91bd=resolve(_0x5e121e,_0x1077b6(0xac)),_0x2c2375=JSON['parse'](readFileSync(_0x2b91bd,_0x1077b6(0xc5)));return _0x2c2375[_0x1077b6(0xd1)]||_0x1077b6(0xbe);}catch{return _0x1077b6(0xbe);}}export async function checkCliVersion(){const _0x20db25=a184_0x2ad4,_0xf75219=getCurrentCliVersion(),_0x15804c=await getCliVersionPolicy(),_0x452dcb=_0x15804c?.[_0x20db25(0xb5)]||null,_0x1c8f35=_0x15804c?.[_0x20db25(0xc4)]||null;let _0x1d2e89=![],_0x2df2a6=![];const _0x2322e1=a184_0x516253[_0x20db25(0xbf)](_0xf75219);if(_0x2322e1&&_0x452dcb)try{const _0x1dea2f=a184_0x516253[_0x20db25(0xbf)](_0x452dcb);if(_0x1dea2f)_0x1d2e89=a184_0x516253['lt'](_0x2322e1,_0x1dea2f);}catch{}if(_0x2322e1&&_0x1c8f35)try{const _0x49d059=a184_0x516253['coerce'](_0x1c8f35);if(_0x49d059)_0x2df2a6=a184_0x516253['lt'](_0x2322e1,_0x49d059);}catch{}return _0x2df2a6&&(_0x1d2e89=!![]),{'currentVersion':_0xf75219,'stableVersion':_0x452dcb,'minimumVersion':_0x1c8f35,'needsUpgrade':_0x1d2e89,'belowMinimum':_0x2df2a6,'isPreRelease':![],'upgradeMessage':_0x15804c?.[_0x20db25(0xb4)],'minimumVersionMessage':_0x15804c?.[_0x20db25(0xc9)]};}export function printCliUpgradeWarning(_0x4d49c0){const _0x395a5b=a184_0x2ad4;if(!_0x4d49c0['needsUpgrade']&&!_0x4d49c0['belowMinimum'])return;const _0x301ed8=_0x395a5b(0xc7),_0x55e3bb='\x1b[33m',_0x88990d='\x1b[0m',_0x196c99=_0x395a5b(0xb6),_0x59f07b=getCliUpgradeCommand(_0x4d49c0);console[_0x395a5b(0xad)](),_0x4d49c0[_0x395a5b(0xc6)]?(console[_0x395a5b(0xad)](''+_0x301ed8+_0x196c99+_0x395a5b(0xbd)+_0x88990d),console[_0x395a5b(0xad)](_0x301ed8+_0x395a5b(0xd2)+_0x4d49c0[_0x395a5b(0xc1)]+_0x88990d),_0x4d49c0[_0x395a5b(0xc4)]&&console[_0x395a5b(0xad)](_0x301ed8+_0x395a5b(0xc0)+_0x4d49c0['minimumVersion']+_0x88990d),_0x4d49c0['stableVersion']&&_0x4d49c0[_0x395a5b(0xb5)]!==_0x4d49c0[_0x395a5b(0xc4)]&&console['log'](_0x301ed8+'\x20\x20\x20Recommended\x20stable:\x20'+_0x4d49c0[_0x395a5b(0xb5)]+_0x88990d),_0x4d49c0['minimumVersionMessage']&&console['log'](_0x301ed8+'\x20\x20\x20'+_0x4d49c0[_0x395a5b(0xc9)]+_0x88990d),console['log'](_0x301ed8+_0x395a5b(0xce)+_0x59f07b+_0x88990d)):(console[_0x395a5b(0xad)](''+_0x55e3bb+_0x196c99+_0x395a5b(0xc3)+_0x88990d),console[_0x395a5b(0xad)](_0x55e3bb+_0x395a5b(0xd2)+_0x4d49c0[_0x395a5b(0xc1)]+_0x88990d),console['log'](_0x55e3bb+_0x395a5b(0xbc)+_0x4d49c0[_0x395a5b(0xb5)]+_0x88990d),_0x4d49c0['upgradeMessage']&&console[_0x395a5b(0xad)](_0x55e3bb+_0x395a5b(0xca)+_0x4d49c0[_0x395a5b(0xb4)]+_0x88990d),console[_0x395a5b(0xad)](_0x55e3bb+_0x395a5b(0xce)+_0x59f07b+_0x88990d)),console[_0x395a5b(0xad)]();}export function assertCliVersionSupported(_0x29846b){const _0x3e2887=a184_0x2ad4;if(!_0x29846b[_0x3e2887(0xc6)])return;const _0x3b59b1=[_0x29846b['minimumVersionMessage'],_0x3e2887(0xab)+_0x29846b[_0x3e2887(0xc1)],_0x29846b['minimumVersion']?_0x3e2887(0xaf)+_0x29846b[_0x3e2887(0xc4)]:null,_0x3e2887(0xb3)+getCliUpgradeCommand(_0x29846b)][_0x3e2887(0xcf)](Boolean)[_0x3e2887(0xcd)]('\x0a');throw CliErrors[_0x3e2887(0xba)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.',_0x3b59b1);}
1
+ (function(_0x2794cb,_0x24dc4f){const _0x289155=a186_0x3676,_0x176805=_0x2794cb();while(!![]){try{const _0x2cd980=-parseInt(_0x289155(0x81))/0x1+-parseInt(_0x289155(0x95))/0x2*(parseInt(_0x289155(0x89))/0x3)+-parseInt(_0x289155(0x93))/0x4*(-parseInt(_0x289155(0x9b))/0x5)+-parseInt(_0x289155(0xa0))/0x6*(parseInt(_0x289155(0xa3))/0x7)+parseInt(_0x289155(0x85))/0x8*(-parseInt(_0x289155(0x9e))/0x9)+parseInt(_0x289155(0x94))/0xa*(parseInt(_0x289155(0x8e))/0xb)+-parseInt(_0x289155(0x9d))/0xc*(-parseInt(_0x289155(0x82))/0xd);if(_0x2cd980===_0x24dc4f)break;else _0x176805['push'](_0x176805['shift']());}catch(_0x29de4f){_0x176805['push'](_0x176805['shift']());}}}(a186_0x16eb,0x2071e));function a186_0x3676(_0x4278cb,_0xaaec2b){_0x4278cb=_0x4278cb-0x81;const _0x16ebb9=a186_0x16eb();let _0x367655=_0x16ebb9[_0x4278cb];return _0x367655;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a186_0x15fa0a from'semver';function a186_0x16eb(){const _0x31233a=['\x20\x20\x20','1.0.0','minimumVersion','93904jCOOtE','3798470GEIMAA','version','\x1b[0m','298888HlAUCe','Upgrade\x20command:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20minimum\x20supported\x20version.','Minimum\x20required:\x20','321423ymnwUz','belowMinimum','join','stableVersion','log','7491FtrIRk','\x1b[33m','utf-8','\x1b[31m','latest','473924qkBWcg','2140pdDGcr','2EuwJCr','\x20\x20\x20Upgrade\x20command:\x20','validation','needsUpgrade','currentVersion','Current\x20version:\x20','10HwyWjA','upgradeMessage','12NrMCMX','63vTzfkD','\x20\x20\x20Current\x20CLI\x20version:\x20','6JQftbQ','↪\x20Critical\x20CLI\x20upgrade\x20required','coerce','555940BoJnfT','minimumVersionMessage'];a186_0x16eb=function(){return _0x31233a;};return a186_0x16eb();}import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x4169b1){const _0x200bca=a186_0x3676,_0x2d40a5=_0x4169b1[_0x200bca(0x8c)]||_0x200bca(0x92);return'npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x2d40a5;}function getCurrentCliVersion(){const _0x42effa=a186_0x3676;try{const _0x46ef0e=fileURLToPath(import.meta.url),_0x42966a=resolve(dirname(_0x46ef0e),'../..'),_0x288f8f=resolve(_0x42966a,'package.json'),_0x4853ee=JSON['parse'](readFileSync(_0x288f8f,_0x42effa(0x90)));return _0x4853ee[_0x42effa(0x83)]||_0x42effa(0xa6);}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x45635e=a186_0x3676,_0x2c66bb=getCurrentCliVersion(),_0x56cfdd=await getCliVersionPolicy(),_0x4f9ba4=_0x56cfdd?.[_0x45635e(0x8c)]||null,_0x4e4422=_0x56cfdd?.[_0x45635e(0xa7)]||null;let _0x1a1242=![],_0x254a3d=![];const _0x24d886=a186_0x15fa0a[_0x45635e(0xa2)](_0x2c66bb);if(_0x24d886&&_0x4f9ba4)try{const _0xa4aabf=a186_0x15fa0a[_0x45635e(0xa2)](_0x4f9ba4);if(_0xa4aabf)_0x1a1242=a186_0x15fa0a['lt'](_0x24d886,_0xa4aabf);}catch{}if(_0x24d886&&_0x4e4422)try{const _0xeabed1=a186_0x15fa0a['coerce'](_0x4e4422);if(_0xeabed1)_0x254a3d=a186_0x15fa0a['lt'](_0x24d886,_0xeabed1);}catch{}return _0x254a3d&&(_0x1a1242=!![]),{'currentVersion':_0x2c66bb,'stableVersion':_0x4f9ba4,'minimumVersion':_0x4e4422,'needsUpgrade':_0x1a1242,'belowMinimum':_0x254a3d,'isPreRelease':![],'upgradeMessage':_0x56cfdd?.[_0x45635e(0x9c)],'minimumVersionMessage':_0x56cfdd?.[_0x45635e(0xa4)]};}export function printCliUpgradeWarning(_0x15eafb){const _0x586acc=a186_0x3676;if(!_0x15eafb[_0x586acc(0x98)]&&!_0x15eafb[_0x586acc(0x8a)])return;const _0x4047a8=_0x586acc(0x91),_0x153344=_0x586acc(0x8f),_0x44e86c=_0x586acc(0x84),_0x263b2e='\x1b[1m',_0x553eed=getCliUpgradeCommand(_0x15eafb);console[_0x586acc(0x8d)](),_0x15eafb[_0x586acc(0x8a)]?(console[_0x586acc(0x8d)](''+_0x4047a8+_0x263b2e+_0x586acc(0xa1)+_0x44e86c),console['log'](_0x4047a8+_0x586acc(0x9f)+_0x15eafb[_0x586acc(0x99)]+_0x44e86c),_0x15eafb[_0x586acc(0xa7)]&&console['log'](_0x4047a8+'\x20\x20\x20Minimum\x20required:\x20'+_0x15eafb[_0x586acc(0xa7)]+_0x44e86c),_0x15eafb[_0x586acc(0x8c)]&&_0x15eafb[_0x586acc(0x8c)]!==_0x15eafb['minimumVersion']&&console[_0x586acc(0x8d)](_0x4047a8+'\x20\x20\x20Recommended\x20stable:\x20'+_0x15eafb[_0x586acc(0x8c)]+_0x44e86c),_0x15eafb['minimumVersionMessage']&&console[_0x586acc(0x8d)](_0x4047a8+_0x586acc(0xa5)+_0x15eafb[_0x586acc(0xa4)]+_0x44e86c),console[_0x586acc(0x8d)](_0x4047a8+_0x586acc(0x96)+_0x553eed+_0x44e86c)):(console['log'](''+_0x153344+_0x263b2e+'↪\x20New\x20version\x20available'+_0x44e86c),console['log'](_0x153344+_0x586acc(0x9f)+_0x15eafb[_0x586acc(0x99)]+_0x44e86c),console['log'](_0x153344+'\x20\x20\x20Stable\x20version:\x20'+_0x15eafb[_0x586acc(0x8c)]+_0x44e86c),_0x15eafb['upgradeMessage']&&console[_0x586acc(0x8d)](_0x153344+_0x586acc(0xa5)+_0x15eafb[_0x586acc(0x9c)]+_0x44e86c),console[_0x586acc(0x8d)](_0x153344+_0x586acc(0x96)+_0x553eed+_0x44e86c)),console['log']();}export function assertCliVersionSupported(_0x497dd1){const _0x1eaed6=a186_0x3676;if(!_0x497dd1[_0x1eaed6(0x8a)])return;const _0xe3b31d=[_0x497dd1['minimumVersionMessage'],_0x1eaed6(0x9a)+_0x497dd1[_0x1eaed6(0x99)],_0x497dd1[_0x1eaed6(0xa7)]?_0x1eaed6(0x88)+_0x497dd1[_0x1eaed6(0xa7)]:null,_0x1eaed6(0x86)+getCliUpgradeCommand(_0x497dd1)]['filter'](Boolean)[_0x1eaed6(0x8b)]('\x0a');throw CliErrors[_0x1eaed6(0x97)](_0x1eaed6(0x87),_0xe3b31d);}
@@ -1 +1 @@
1
- (function(_0x2735be,_0x1a2f50){const _0x144b91=a185_0x20eb,_0x44a134=_0x2735be();while(!![]){try{const _0x45fc77=-parseInt(_0x144b91(0x142))/0x1*(-parseInt(_0x144b91(0x148))/0x2)+-parseInt(_0x144b91(0x145))/0x3+-parseInt(_0x144b91(0x13f))/0x4*(-parseInt(_0x144b91(0x154))/0x5)+-parseInt(_0x144b91(0x144))/0x6*(-parseInt(_0x144b91(0x151))/0x7)+-parseInt(_0x144b91(0x14d))/0x8*(-parseInt(_0x144b91(0x146))/0x9)+-parseInt(_0x144b91(0x149))/0xa*(parseInt(_0x144b91(0x141))/0xb)+-parseInt(_0x144b91(0x13d))/0xc;if(_0x45fc77===_0x1a2f50)break;else _0x44a134['push'](_0x44a134['shift']());}catch(_0x441451){_0x44a134['push'](_0x44a134['shift']());}}}(a185_0xd124,0xd3a35));function a185_0xd124(){const _0x40b09b=['cli','10tYBpHf','917530eiGjvM','now','minVersion','minimumVersion','8RxDIZF','upgradeMessage','recommendedVersion','minimumVersionMessage','7jqMbXB','abort','latestVersion','2960840ScWoyb','json','length','object','10346736jSjQlL','trim','8EXjphz','stableVersion','11yXIfzB','255415FZzgdj','string','220686lRECVM','3274704tAfEvZ','3728034KdLjOf'];a185_0xd124=function(){return _0x40b09b;};return a185_0xd124();}import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x220ed9){const _0x23330e=a185_0x20eb;return typeof _0x220ed9===_0x23330e(0x143)&&_0x220ed9['trim']()[_0x23330e(0x156)]>0x0?_0x220ed9[_0x23330e(0x13e)]():null;}function a185_0x20eb(_0x491ace,_0x36f4bc){_0x491ace=_0x491ace-0x13c;const _0xd124e3=a185_0xd124();let _0x20eb26=_0xd124e3[_0x491ace];return _0x20eb26;}function normalizeCliVersionPolicy(_0x51260){const _0x114aba=a185_0x20eb;if(!_0x51260||typeof _0x51260!==_0x114aba(0x13c))return null;const _0xff494f=_0x51260,_0x1732a9=_0xff494f[_0x114aba(0x147)]&&typeof _0xff494f[_0x114aba(0x147)]==='object'?_0xff494f['cli']:_0xff494f,_0x2e2ebc=pickString(_0x1732a9[_0x114aba(0x140)])||pickString(_0x1732a9[_0x114aba(0x153)])||pickString(_0x1732a9[_0x114aba(0x14f)]),_0x321376=pickString(_0x1732a9[_0x114aba(0x14c)])||pickString(_0x1732a9[_0x114aba(0x14b)]);if(!_0x2e2ebc&&!_0x321376)return null;return{'stableVersion':_0x2e2ebc,'minimumVersion':_0x321376,'upgradeMessage':pickString(_0x1732a9[_0x114aba(0x14e)])||undefined,'minimumVersionMessage':pickString(_0x1732a9[_0x114aba(0x150)])||undefined};}export async function fetchCliVersionPolicy(){const _0x23caef=a185_0x20eb,_0x221846=new AbortController(),_0x6e5e8=setTimeout(()=>_0x221846[_0x23caef(0x152)](),FETCH_TIMEOUT_MS);try{const _0x42c380=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x221846['signal']});if(!_0x42c380['ok'])return null;const _0x43a412=await _0x42c380[_0x23caef(0x155)]();return normalizeCliVersionPolicy(_0x43a412);}catch{return null;}finally{clearTimeout(_0x6e5e8);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2828c9=a185_0x20eb,_0xe31442=Date[_0x2828c9(0x14a)]();if(hasCachedPolicy){const _0x196a10=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xe31442-cacheTime<_0x196a10)return cachedPolicy;}const _0x4ddd6a=await fetchCliVersionPolicy();return cachedPolicy=_0x4ddd6a,cacheTime=_0xe31442,hasCachedPolicy=!![],_0x4ddd6a;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ function a187_0x351a(){const _0x4e50d4=['cli','string','2249307CgHTpP','121664QhCfRg','latestVersion','stableVersion','1772292ZOSpaf','8ozWvgO','recommendedVersion','1762677lnZbQA','36vfluRr','now','signal','60086mEmXJk','minimumVersionMessage','abort','trim','json','minVersion','application/json','345195okPITg','object','836031HRZWwC'];a187_0x351a=function(){return _0x4e50d4;};return a187_0x351a();}(function(_0x5ed9fa,_0x3fc56c){const _0x23975a=a187_0x10d7,_0x606cd1=_0x5ed9fa();while(!![]){try{const _0x5c896e=parseInt(_0x23975a(0x1e7))/0x1+-parseInt(_0x23975a(0x1f4))/0x2+parseInt(_0x23975a(0x1f0))/0x3+-parseInt(_0x23975a(0x1f7))/0x4+-parseInt(_0x23975a(0x1ee))/0x5*(-parseInt(_0x23975a(0x1e4))/0x6)+-parseInt(_0x23975a(0x1e3))/0x7+parseInt(_0x23975a(0x1f8))/0x8*(parseInt(_0x23975a(0x1f3))/0x9);if(_0x5c896e===_0x3fc56c)break;else _0x606cd1['push'](_0x606cd1['shift']());}catch(_0x48704b){_0x606cd1['push'](_0x606cd1['shift']());}}}(a187_0x351a,0x3c5a4));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x4e31c3){const _0x10ab8c=a187_0x10d7;return typeof _0x4e31c3===_0x10ab8c(0x1f2)&&_0x4e31c3['trim']()['length']>0x0?_0x4e31c3[_0x10ab8c(0x1ea)]():null;}function normalizeCliVersionPolicy(_0x4033bb){const _0x468af1=a187_0x10d7;if(!_0x4033bb||typeof _0x4033bb!==_0x468af1(0x1ef))return null;const _0x144345=_0x4033bb,_0x5ce722=_0x144345[_0x468af1(0x1f1)]&&typeof _0x144345[_0x468af1(0x1f1)]===_0x468af1(0x1ef)?_0x144345['cli']:_0x144345,_0x2f4ac3=pickString(_0x5ce722[_0x468af1(0x1f6)])||pickString(_0x5ce722[_0x468af1(0x1f5)])||pickString(_0x5ce722[_0x468af1(0x1e2)]),_0x51d349=pickString(_0x5ce722['minimumVersion'])||pickString(_0x5ce722[_0x468af1(0x1ec)]);if(!_0x2f4ac3&&!_0x51d349)return null;return{'stableVersion':_0x2f4ac3,'minimumVersion':_0x51d349,'upgradeMessage':pickString(_0x5ce722['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x5ce722[_0x468af1(0x1e8)])||undefined};}export async function fetchCliVersionPolicy(){const _0x34e7e0=a187_0x10d7,_0x181fec=new AbortController(),_0x38b82c=setTimeout(()=>_0x181fec[_0x34e7e0(0x1e9)](),FETCH_TIMEOUT_MS);try{const _0x11b0e3=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x34e7e0(0x1ed)},'signal':_0x181fec[_0x34e7e0(0x1e6)]});if(!_0x11b0e3['ok'])return null;const _0x29fcf2=await _0x11b0e3[_0x34e7e0(0x1eb)]();return normalizeCliVersionPolicy(_0x29fcf2);}catch{return null;}finally{clearTimeout(_0x38b82c);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];function a187_0x10d7(_0x1df145,_0x4441d3){_0x1df145=_0x1df145-0x1e2;const _0x351a76=a187_0x351a();let _0x10d75d=_0x351a76[_0x1df145];return _0x10d75d;}export async function getCliVersionPolicy(){const _0x4c985e=a187_0x10d7,_0x5cc9d0=Date[_0x4c985e(0x1e5)]();if(hasCachedPolicy){const _0x1d35f9=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5cc9d0-cacheTime<_0x1d35f9)return cachedPolicy;}const _0x173458=await fetchCliVersionPolicy();return cachedPolicy=_0x173458,cacheTime=_0x5cc9d0,hasCachedPolicy=!![],_0x173458;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- function a186_0x542e(){const _0x421b76=['526EQGNQo','6363783lvnxNL','string','9074200IFwzVL','10PkmJVp','44BFcUZb','project','env','12CJPXCi','37188283FzvTum','2658019PsdNnd','4331cOrkkM','1962605TuHDwd','211623ydvDLB'];a186_0x542e=function(){return _0x421b76;};return a186_0x542e();}const a186_0x4c1583=a186_0xd205;(function(_0x52f61f,_0xc1981b){const _0x8940e9=a186_0xd205,_0x847e5a=_0x52f61f();while(!![]){try{const _0x337b41=-parseInt(_0x8940e9(0x137))/0x1*(-parseInt(_0x8940e9(0x13a))/0x2)+-parseInt(_0x8940e9(0x139))/0x3*(parseInt(_0x8940e9(0x13f))/0x4)+-parseInt(_0x8940e9(0x138))/0x5+parseInt(_0x8940e9(0x134))/0x6*(-parseInt(_0x8940e9(0x136))/0x7)+-parseInt(_0x8940e9(0x13d))/0x8+-parseInt(_0x8940e9(0x13b))/0x9+parseInt(_0x8940e9(0x13e))/0xa*(parseInt(_0x8940e9(0x135))/0xb);if(_0x337b41===_0xc1981b)break;else _0x847e5a['push'](_0x847e5a['shift']());}catch(_0x537086){_0x847e5a['push'](_0x847e5a['shift']());}}}(a186_0x542e,0xb73ca));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a186_0x5be172,getMultiAppConfigs as a186_0x30e4b5,getTemplateBaseUrl as a186_0x308e51}from'../context.js';function a186_0xd205(_0x1d3de3,_0x23d562){_0x1d3de3=_0x1d3de3-0x134;const _0x542e1a=a186_0x542e();let _0xd205a7=_0x542e1a[_0x1d3de3];return _0xd205a7;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x19d072){const _0x2062d6=a186_0xd205,_0x366312=readRawConfig(_0x19d072);return _0x366312['env']&&typeof _0x366312['env']===_0x2062d6(0x13c)&&initEnv(_0x366312[_0x2062d6(0x141)]),_0x366312;}export function getConfigAppCode(){return a186_0x5be172();}export function getMultiAppConfigs(_0x159d65=a186_0x4c1583(0x140)){return a186_0x30e4b5(_0x159d65);}export function getTemplateBaseUrl(){return a186_0x308e51();}
1
+ function a188_0x7217(){const _0x49fefd=['551710WfBMaD','3jVornc','461770XeoKmm','string','8502055iSmQsX','6vAOhmF','project','3435840wwuJSa','513nHcpQv','1142650CDoRAS','env','1894725ezsMqo','4646444zYlerQ'];a188_0x7217=function(){return _0x49fefd;};return a188_0x7217();}const a188_0x29d4e7=a188_0x4377;function a188_0x4377(_0x37d00d,_0x4a90ef){_0x37d00d=_0x37d00d-0x65;const _0x721757=a188_0x7217();let _0x43778f=_0x721757[_0x37d00d];return _0x43778f;}(function(_0x252325,_0x126fc6){const _0x69b4b1=a188_0x4377,_0x3e78dd=_0x252325();while(!![]){try{const _0x473d38=parseInt(_0x69b4b1(0x68))/0x1+parseInt(_0x69b4b1(0x6c))/0x2+-parseInt(_0x69b4b1(0x6d))/0x3*(-parseInt(_0x69b4b1(0x6b))/0x4)+parseInt(_0x69b4b1(0x70))/0x5*(parseInt(_0x69b4b1(0x71))/0x6)+-parseInt(_0x69b4b1(0x6a))/0x7+-parseInt(_0x69b4b1(0x66))/0x8+parseInt(_0x69b4b1(0x67))/0x9*(-parseInt(_0x69b4b1(0x6e))/0xa);if(_0x473d38===_0x126fc6)break;else _0x3e78dd['push'](_0x3e78dd['shift']());}catch(_0x5b768c){_0x3e78dd['push'](_0x3e78dd['shift']());}}}(a188_0x7217,0xe783b));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a188_0x23896c,getMultiAppConfigs as a188_0x55a005,getTemplateBaseUrl as a188_0x526ddb}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x21a8ae){const _0x2109fc=a188_0x4377,_0x3ae022=readRawConfig(_0x21a8ae);return _0x3ae022['env']&&typeof _0x3ae022[_0x2109fc(0x69)]===_0x2109fc(0x6f)&&initEnv(_0x3ae022['env']),_0x3ae022;}export function getConfigAppCode(){return a188_0x23896c();}export function getMultiAppConfigs(_0x2fa83b=a188_0x29d4e7(0x65)){return a188_0x55a005(_0x2fa83b);}export function getTemplateBaseUrl(){return a188_0x526ddb();}
@@ -1 +1 @@
1
- (function(_0x2a900e,_0x1cf59c){const _0x6a8933=a187_0x4ae3,_0x54d28a=_0x2a900e();while(!![]){try{const _0x56f0b5=-parseInt(_0x6a8933(0x131))/0x1*(-parseInt(_0x6a8933(0x13b))/0x2)+-parseInt(_0x6a8933(0x12d))/0x3+-parseInt(_0x6a8933(0x134))/0x4+parseInt(_0x6a8933(0x13e))/0x5*(-parseInt(_0x6a8933(0x137))/0x6)+parseInt(_0x6a8933(0x13a))/0x7+parseInt(_0x6a8933(0x130))/0x8*(parseInt(_0x6a8933(0x13c))/0x9)+parseInt(_0x6a8933(0x135))/0xa*(-parseInt(_0x6a8933(0x136))/0xb);if(_0x56f0b5===_0x1cf59c)break;else _0x54d28a['push'](_0x54d28a['shift']());}catch(_0x3b5cf8){_0x54d28a['push'](_0x54d28a['shift']());}}}(a187_0x3309,0xba56c));function a187_0x4ae3(_0x2a0527,_0x4dfdb4){_0x2a0527=_0x2a0527-0x12d;const _0x3309ea=a187_0x3309();let _0x4ae39c=_0x3309ea[_0x2a0527];return _0x4ae39c;}import a187_0x511a9a from'node:path';import a187_0x488c3a from'node:fs';export async function copyDirectory(_0x6b970,_0x11e2d1){const _0x3624f7=a187_0x4ae3;try{const _0x12a906=a187_0x488c3a[_0x3624f7(0x133)](_0x6b970,{'withFileTypes':!![]});a187_0x488c3a[_0x3624f7(0x132)](_0x11e2d1,{'recursive':!![]});for(const _0x3ac9df of _0x12a906){const _0x32864c=a187_0x511a9a[_0x3624f7(0x139)](_0x6b970,_0x3ac9df[_0x3624f7(0x12e)]),_0x1174a3=a187_0x511a9a[_0x3624f7(0x139)](_0x11e2d1,_0x3ac9df['name']);_0x3ac9df[_0x3624f7(0x13d)]()?await copyDirectory(_0x32864c,_0x1174a3):a187_0x488c3a[_0x3624f7(0x138)](_0x32864c,_0x1174a3);}}catch(_0x513258){console[_0x3624f7(0x12f)]('复制目录时出错:',_0x513258);}}function a187_0x3309(){const _0xc60cb4=['18emHOUt','isDirectory','757115ReSEiZ','1095732fDNdNV','name','error','2088272MghWGQ','138511BaogbO','mkdirSync','readdirSync','2540532pUcPXJ','370VmFNsl','35761uvaUBw','6YevCDj','copyFileSync','join','1866648EhNqdt','18oroMqm'];a187_0x3309=function(){return _0xc60cb4;};return a187_0x3309();}
1
+ function a189_0x260f(){const _0x42e0ba=['96CVwAjA','复制目录时出错:','name','4199928YkGixY','9037960hAxVwm','readdirSync','2jdLgGb','9948928cCbULI','7ShlZqO','1154311WfhwGA','1659708DFbeFy','mkdirSync','407410gvNlij','63KGbLaG','join','isDirectory','1850960RXuGFY'];a189_0x260f=function(){return _0x42e0ba;};return a189_0x260f();}(function(_0x4479fd,_0x5b9a1b){const _0x2d3b9a=a189_0x33be,_0x19fae4=_0x4479fd();while(!![]){try{const _0x4b0705=-parseInt(_0x2d3b9a(0x105))/0x1*(-parseInt(_0x2d3b9a(0x113))/0x2)+parseInt(_0x2d3b9a(0x106))/0x3+parseInt(_0x2d3b9a(0x110))/0x4+-parseInt(_0x2d3b9a(0x108))/0x5*(parseInt(_0x2d3b9a(0x10d))/0x6)+-parseInt(_0x2d3b9a(0x115))/0x7*(parseInt(_0x2d3b9a(0x111))/0x8)+parseInt(_0x2d3b9a(0x109))/0x9*(parseInt(_0x2d3b9a(0x10c))/0xa)+-parseInt(_0x2d3b9a(0x114))/0xb;if(_0x4b0705===_0x5b9a1b)break;else _0x19fae4['push'](_0x19fae4['shift']());}catch(_0x159cf5){_0x19fae4['push'](_0x19fae4['shift']());}}}(a189_0x260f,0xaea20));import a189_0x15f59b from'node:path';function a189_0x33be(_0x724e1f,_0x191848){_0x724e1f=_0x724e1f-0x105;const _0x260f90=a189_0x260f();let _0x33be13=_0x260f90[_0x724e1f];return _0x33be13;}import a189_0x33d69e from'node:fs';export async function copyDirectory(_0x130de5,_0x46befd){const _0x344dc3=a189_0x33be;try{const _0x13bb07=a189_0x33d69e[_0x344dc3(0x112)](_0x130de5,{'withFileTypes':!![]});a189_0x33d69e[_0x344dc3(0x107)](_0x46befd,{'recursive':!![]});for(const _0x2602ef of _0x13bb07){const _0x3d20cb=a189_0x15f59b[_0x344dc3(0x10a)](_0x130de5,_0x2602ef['name']),_0xce9bab=a189_0x15f59b[_0x344dc3(0x10a)](_0x46befd,_0x2602ef[_0x344dc3(0x10f)]);_0x2602ef[_0x344dc3(0x10b)]()?await copyDirectory(_0x3d20cb,_0xce9bab):a189_0x33d69e['copyFileSync'](_0x3d20cb,_0xce9bab);}}catch(_0x240dfe){console['error'](_0x344dc3(0x10e),_0x240dfe);}}
@@ -1 +1 @@
1
- function a188_0x42f6(){const _0x5876ec=['6219qlpxpT','764cCOoDb','228bPysOs','526PNmtrd','2864568dmRTcp','17809gMBhLS','object','trim','580gaQBmL','1895NzWNZC','string','isFinite','4002dwDqfX','368198buztYB','165QTjnGQ','2415AiwVtL'];a188_0x42f6=function(){return _0x5876ec;};return a188_0x42f6();}(function(_0x27c579,_0xa5bb85){const _0x1e5e81=a188_0x4366,_0xc9142c=_0x27c579();while(!![]){try{const _0x553c3a=-parseInt(_0x1e5e81(0x11f))/0x1+parseInt(_0x1e5e81(0x125))/0x2*(-parseInt(_0x1e5e81(0x120))/0x3)+-parseInt(_0x1e5e81(0x123))/0x4*(parseInt(_0x1e5e81(0x11b))/0x5)+parseInt(_0x1e5e81(0x11e))/0x6*(parseInt(_0x1e5e81(0x121))/0x7)+parseInt(_0x1e5e81(0x126))/0x8+parseInt(_0x1e5e81(0x122))/0x9*(parseInt(_0x1e5e81(0x11a))/0xa)+-parseInt(_0x1e5e81(0x117))/0xb*(-parseInt(_0x1e5e81(0x124))/0xc);if(_0x553c3a===_0xa5bb85)break;else _0xc9142c['push'](_0xc9142c['shift']());}catch(_0x5d6620){_0xc9142c['push'](_0xc9142c['shift']());}}}(a188_0x42f6,0x31cc5));function a188_0x4366(_0x2726a7,_0x4aa8ad){_0x2726a7=_0x2726a7-0x117;const _0x42f693=a188_0x42f6();let _0x43669b=_0x42f693[_0x2726a7];return _0x43669b;}function toFiniteNumber(_0x1d187c){const _0x2cf359=a188_0x4366;if(typeof _0x1d187c==='number'&&Number[_0x2cf359(0x11d)](_0x1d187c))return _0x1d187c;if(typeof _0x1d187c===_0x2cf359(0x11c)){const _0x5d5f22=_0x1d187c[_0x2cf359(0x119)]();if(!_0x5d5f22)return undefined;const _0xeadc4=Number(_0x5d5f22);if(Number[_0x2cf359(0x11d)](_0xeadc4))return _0xeadc4;}return undefined;}export function normalizeEntityWithIdResponse(_0x288f85){const _0x351e14=a188_0x4366,_0x3aabc3=toFiniteNumber(_0x288f85);if(_0x3aabc3!==undefined)return{'id':_0x3aabc3,'entity':{'id':_0x3aabc3}};if(!_0x288f85||typeof _0x288f85!==_0x351e14(0x118))return{'id':undefined,'entity':{}};const _0x337112={..._0x288f85},_0x5c4cb6=toFiniteNumber(_0x337112['id']);return _0x5c4cb6!==undefined&&(_0x337112['id']=_0x5c4cb6),{'id':_0x5c4cb6,'entity':_0x337112};}
1
+ (function(_0x26cdf8,_0x2d46fe){const _0x3b2de5=a190_0x1164,_0x4613bb=_0x26cdf8();while(!![]){try{const _0x2cc996=parseInt(_0x3b2de5(0x179))/0x1*(parseInt(_0x3b2de5(0x178))/0x2)+parseInt(_0x3b2de5(0x176))/0x3+-parseInt(_0x3b2de5(0x174))/0x4+parseInt(_0x3b2de5(0x17b))/0x5+parseInt(_0x3b2de5(0x17c))/0x6+-parseInt(_0x3b2de5(0x175))/0x7*(parseInt(_0x3b2de5(0x171))/0x8)+parseInt(_0x3b2de5(0x17e))/0x9;if(_0x2cc996===_0x2d46fe)break;else _0x4613bb['push'](_0x4613bb['shift']());}catch(_0x1b4ec0){_0x4613bb['push'](_0x4613bb['shift']());}}}(a190_0x21bb,0xcf263));function toFiniteNumber(_0x18887c){const _0xea5f89=a190_0x1164;if(typeof _0x18887c===_0xea5f89(0x17a)&&Number[_0xea5f89(0x177)](_0x18887c))return _0x18887c;if(typeof _0x18887c===_0xea5f89(0x17d)){const _0x96dd8f=_0x18887c[_0xea5f89(0x173)]();if(!_0x96dd8f)return undefined;const _0x1b6782=Number(_0x96dd8f);if(Number[_0xea5f89(0x177)](_0x1b6782))return _0x1b6782;}return undefined;}function a190_0x1164(_0x425324,_0x26db5b){_0x425324=_0x425324-0x171;const _0x21bbe8=a190_0x21bb();let _0x11644e=_0x21bbe8[_0x425324];return _0x11644e;}export function normalizeEntityWithIdResponse(_0x3598e3){const _0x18f8f2=a190_0x1164,_0xf6202d=toFiniteNumber(_0x3598e3);if(_0xf6202d!==undefined)return{'id':_0xf6202d,'entity':{'id':_0xf6202d}};if(!_0x3598e3||typeof _0x3598e3!==_0x18f8f2(0x172))return{'id':undefined,'entity':{}};const _0xf597f9={..._0x3598e3},_0x4e448b=toFiniteNumber(_0xf597f9['id']);return _0x4e448b!==undefined&&(_0xf597f9['id']=_0x4e448b),{'id':_0x4e448b,'entity':_0xf597f9};}function a190_0x21bb(){const _0x4f87c8=['number','2771940BLVOTd','4165194WNZZNE','string','3932667rAglle','4218520fGmvHE','object','trim','6239568aYwFLL','7DgGBhD','2803002kunynv','isFinite','2348ReCRXS','269WIWkhH'];a190_0x21bb=function(){return _0x4f87c8;};return a190_0x21bb();}
@@ -1 +1 @@
1
- (function(_0x115e88,_0x290a13){const _0x5dba31=a189_0x8770,_0x55a2f8=_0x115e88();while(!![]){try{const _0x138811=parseInt(_0x5dba31(0x104))/0x1*(-parseInt(_0x5dba31(0x106))/0x2)+parseInt(_0x5dba31(0x108))/0x3*(-parseInt(_0x5dba31(0x100))/0x4)+parseInt(_0x5dba31(0x107))/0x5+parseInt(_0x5dba31(0x101))/0x6+parseInt(_0x5dba31(0x109))/0x7+-parseInt(_0x5dba31(0x10b))/0x8*(parseInt(_0x5dba31(0x10a))/0x9)+parseInt(_0x5dba31(0x103))/0xa*(parseInt(_0x5dba31(0x102))/0xb);if(_0x138811===_0x290a13)break;else _0x55a2f8['push'](_0x55a2f8['shift']());}catch(_0x5bc301){_0x55a2f8['push'](_0x55a2f8['shift']());}}}(a189_0x68fc,0x7e682));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x14019c,_0x831780){const _0x3c4128=a189_0x8770,_0x40b4bf=statSync(_0x14019c);if(_0x40b4bf[_0x3c4128(0x105)]()){!existsSync(_0x831780)&&mkdirSync(_0x831780,{'recursive':!![]});const _0x2e658c=readdirSync(_0x14019c);for(const _0x21ab7e of _0x2e658c){await copyDir(join(_0x14019c,_0x21ab7e),join(_0x831780,_0x21ab7e));}}else copyFileSync(_0x14019c,_0x831780);}export function ensureDir(_0x534cd3){!existsSync(_0x534cd3)&&mkdirSync(_0x534cd3,{'recursive':!![]});}export function pathExists(_0x39b588){return existsSync(_0x39b588);}function a189_0x8770(_0x370ad7,_0x2c335a){_0x370ad7=_0x370ad7-0x100;const _0x68fcff=a189_0x68fc();let _0x8770c3=_0x68fcff[_0x370ad7];return _0x8770c3;}function a189_0x68fc(){const _0x178506=['10LMgkIG','7Gvxjxm','isDirectory','200746MYMKEY','685830HBtgLG','2467452HGfQjR','6196407WvVeLm','207rymkql','146088MhLipz','4Glasip','353460fzozIc','15197413PJHThN'];a189_0x68fc=function(){return _0x178506;};return a189_0x68fc();}
1
+ (function(_0x1c285c,_0x4a34d6){const _0x184e56=a191_0x44ad,_0x67b371=_0x1c285c();while(!![]){try{const _0x3c7042=parseInt(_0x184e56(0x1b3))/0x1+-parseInt(_0x184e56(0x1b2))/0x2+-parseInt(_0x184e56(0x1b8))/0x3+parseInt(_0x184e56(0x1b7))/0x4+-parseInt(_0x184e56(0x1b5))/0x5+parseInt(_0x184e56(0x1b6))/0x6+parseInt(_0x184e56(0x1b9))/0x7;if(_0x3c7042===_0x4a34d6)break;else _0x67b371['push'](_0x67b371['shift']());}catch(_0x3194b5){_0x67b371['push'](_0x67b371['shift']());}}}(a191_0x924d,0x30754));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x64ac95,_0x1a8148){const _0x182bc1=a191_0x44ad,_0x343dd3=statSync(_0x64ac95);if(_0x343dd3[_0x182bc1(0x1b4)]()){!existsSync(_0x1a8148)&&mkdirSync(_0x1a8148,{'recursive':!![]});const _0x3a7a70=readdirSync(_0x64ac95);for(const _0x4f7601 of _0x3a7a70){await copyDir(join(_0x64ac95,_0x4f7601),join(_0x1a8148,_0x4f7601));}}else copyFileSync(_0x64ac95,_0x1a8148);}function a191_0x924d(){const _0x360191=['22143WEEEUi','isDirectory','297465CnNETd','871656WtXfBI','1492040yfsvWS','1034331xAxmBC','1971928JNiVLb','438758scgnAG'];a191_0x924d=function(){return _0x360191;};return a191_0x924d();}function a191_0x44ad(_0x5b2701,_0x223445){_0x5b2701=_0x5b2701-0x1b2;const _0x924d05=a191_0x924d();let _0x44ad72=_0x924d05[_0x5b2701];return _0x44ad72;}export function ensureDir(_0x2eb746){!existsSync(_0x2eb746)&&mkdirSync(_0x2eb746,{'recursive':!![]});}export function pathExists(_0x4203b3){return existsSync(_0x4203b3);}
@@ -1 +1 @@
1
- const a190_0x312c10=a190_0x560f;function a190_0x1b88(){const _0x241c50=['title','840IXAMwv','extendContent','2183111kpOSLk','trimEnd','json','join','\x0a\x0a>更新时间:','entries','guides','replace','CDN\x20返回数据格式错误','664024qnEUre','object','length','262536JlQXzn','266360HrjElo','push','.md','cache','skillTemplate','342ZNiFgM','content','keys','utf-8','.lovrabet/skill/guides','1467849KzBYIU','map','.lovrabet','12PguErR','4YCSLYA','12529Urymwq','lastUpdated','statusText','7864GUWSZo','/skills/guides.json'];a190_0x1b88=function(){return _0x241c50;};return a190_0x1b88();}(function(_0x4bf1e7,_0x54e20c){const _0x272ef9=a190_0x560f,_0x4af38c=_0x4bf1e7();while(!![]){try{const _0x592942=-parseInt(_0x272ef9(0x173))/0x1+-parseInt(_0x272ef9(0x170))/0x2+-parseInt(_0x272ef9(0x17e))/0x3*(-parseInt(_0x272ef9(0x182))/0x4)+parseInt(_0x272ef9(0x174))/0x5*(parseInt(_0x272ef9(0x181))/0x6)+parseInt(_0x272ef9(0x167))/0x7+-parseInt(_0x272ef9(0x186))/0x8*(-parseInt(_0x272ef9(0x179))/0x9)+parseInt(_0x272ef9(0x189))/0xa*(-parseInt(_0x272ef9(0x183))/0xb);if(_0x592942===_0x54e20c)break;else _0x4af38c['push'](_0x4af38c['shift']());}catch(_0x1b323c){_0x4af38c['push'](_0x4af38c['shift']());}}}(a190_0x1b88,0x3e36e));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x7a7003=a190_0x560f,_0x583015=getTemplateBaseUrl();return _0x583015+_0x7a7003(0x187);}function a190_0x560f(_0x40a15b,_0x3bb569){_0x40a15b=_0x40a15b-0x166;const _0x1b88c3=a190_0x1b88();let _0x560f3f=_0x1b88c3[_0x40a15b];return _0x560f3f;}const CACHE_DIR=join(homedir(),a190_0x312c10(0x180),a190_0x312c10(0x177));export async function fetchGuidesFromCDN(){const _0x5497da=a190_0x312c10,_0x27ebbf=getGuidesCdnUrl(),_0x5c9a88=await fetch(_0x27ebbf,{'headers':{'Accept':'application/json'}});if(!_0x5c9a88['ok'])throw new Error('CDN\x20请求失败:\x20'+_0x5c9a88['status']+'\x20'+_0x5c9a88[_0x5497da(0x185)]);const _0x12b597=await _0x5c9a88[_0x5497da(0x169)]();if(!_0x12b597['guides']||typeof _0x12b597[_0x5497da(0x16d)]!==_0x5497da(0x171))throw new Error(_0x5497da(0x16f));return _0x12b597;}export function writeGuidesToProject(_0x1442e1,_0x3afd2a,_0x25811a=a190_0x312c10(0x17d),_0x41c6d5){const _0xf3d300=a190_0x312c10,_0x35f4c6=join(_0x3afd2a,_0x25811a);mkdirSync(_0x35f4c6,{'recursive':!![]});for(const [_0x132c32,_0x591661]of Object['entries'](_0x1442e1[_0xf3d300(0x16d)])){let _0x140d15=_0x591661[_0xf3d300(0x17a)];_0x591661[_0xf3d300(0x184)]&&(_0x140d15=appendUpdateTime(_0x140d15,_0x591661['lastUpdated'])),writeFileSync(join(_0x35f4c6,_0x132c32+_0xf3d300(0x176)),_0x140d15,'utf-8');}}export function appendUpdateTime(_0x479364,_0x1bef36){const _0x58d4cb=a190_0x312c10;return _0x479364=_0x479364['replace'](/\n*>更新时间:.*$/m,''),_0x479364['trimEnd']()+(_0x58d4cb(0x16b)+_0x1bef36);}export function getSkillTemplate(_0x1ae890){const _0x50302c=a190_0x312c10;return _0x1ae890[_0x50302c(0x178)]?.[_0x50302c(0x17a)]||'';}export function appendExtendContents(_0x18348d,_0x1d144b,_0x2215d1){const _0x5e40c8=a190_0x312c10,_0x9ae93b=[];for(const [,_0x1b244b]of Object[_0x5e40c8(0x16c)](_0x1d144b[_0x5e40c8(0x16d)])){_0x1b244b['extendContent']&&_0x9ae93b[_0x5e40c8(0x175)](_0x1b244b[_0x5e40c8(0x166)][_0x5e40c8(0x168)]());}if(_0x9ae93b[_0x5e40c8(0x172)]===0x0)return _0x18348d;return _0x18348d[_0x5e40c8(0x168)]()+'\x0a\x0a'+_0x9ae93b[_0x5e40c8(0x16a)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3441a4,_0x2a0ef6,_0x22b2dd){const _0x508192=a190_0x312c10,_0x340b0b=getSkillTemplate(_0x3441a4);if(!_0x340b0b)throw new Error('CDN\x20数据中缺少\x20skillTemplate');const _0x5ca258=dirname(_0x2a0ef6);mkdirSync(_0x5ca258,{'recursive':!![]});let _0x353124=_0x340b0b[_0x508192(0x16e)](/\{\{IDE_NAME\}\}/g,_0x22b2dd);_0x353124=appendExtendContents(_0x353124,_0x3441a4),_0x3441a4[_0x508192(0x178)][_0x508192(0x184)]&&(_0x353124=appendUpdateTime(_0x353124,_0x3441a4[_0x508192(0x178)][_0x508192(0x184)])),writeFileSync(_0x2a0ef6,_0x353124,_0x508192(0x17c));}export async function installGuides(_0x1fcfa6){const _0x4b2d16=a190_0x312c10,_0x3c4ba9=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3c4ba9,_0x1fcfa6),Object[_0x4b2d16(0x17b)](_0x3c4ba9['guides'])[_0x4b2d16(0x172)];}export function getGuidesSummary(_0x242d89){const _0x1a49e7=a190_0x312c10;return Object['entries'](_0x242d89[_0x1a49e7(0x16d)])[_0x1a49e7(0x17f)](([_0x4d9c7a,_0x2f3483])=>({'key':_0x4d9c7a,'title':_0x2f3483[_0x1a49e7(0x188)],'path':_0x2f3483['path']}));}
1
+ const a192_0x57cae2=a192_0xe81d;(function(_0x55782f,_0x28b66e){const _0x24eb86=a192_0xe81d,_0x4319ed=_0x55782f();while(!![]){try{const _0xac4e2e=parseInt(_0x24eb86(0xc6))/0x1+-parseInt(_0x24eb86(0xb9))/0x2+-parseInt(_0x24eb86(0xaa))/0x3*(-parseInt(_0x24eb86(0xaf))/0x4)+parseInt(_0x24eb86(0xac))/0x5+parseInt(_0x24eb86(0xae))/0x6+parseInt(_0x24eb86(0xb5))/0x7*(parseInt(_0x24eb86(0xa7))/0x8)+parseInt(_0x24eb86(0xbd))/0x9*(-parseInt(_0x24eb86(0xc2))/0xa);if(_0xac4e2e===_0x28b66e)break;else _0x4319ed['push'](_0x4319ed['shift']());}catch(_0x58cb17){_0x4319ed['push'](_0x4319ed['shift']());}}}(a192_0x236b,0xba6ec));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x5242f3=a192_0xe81d,_0x36f659=getTemplateBaseUrl();return _0x36f659+_0x5242f3(0xa4);}const CACHE_DIR=join(homedir(),'.lovrabet','cache');function a192_0x236b(){const _0x12da78=['replace','statusText','utf-8','\x0a\x0a>更新时间:','entries','7LmkxqF','status','length','application/json','826102UaXPve','keys','title','extendContent','80037DRsJHm','path','trimEnd','json','.lovrabet/skill/guides','2010VMURIv','CDN\x20数据中缺少\x20skillTemplate','CDN\x20请求失败:\x20','lastUpdated','1219830mXFySj','/skills/guides.json','skillTemplate','push','1953712qstHGS','guides','CDN\x20返回数据格式错误','147567SkVOny','object','876060WyIDEE','.md','1751682lvGdJk','84isdBBt'];a192_0x236b=function(){return _0x12da78;};return a192_0x236b();}function a192_0xe81d(_0x268255,_0x1cc342){_0x268255=_0x268255-0xa4;const _0x236b27=a192_0x236b();let _0xe81daf=_0x236b27[_0x268255];return _0xe81daf;}export async function fetchGuidesFromCDN(){const _0x18574e=a192_0xe81d,_0x427b9c=getGuidesCdnUrl(),_0x36c823=await fetch(_0x427b9c,{'headers':{'Accept':_0x18574e(0xb8)}});if(!_0x36c823['ok'])throw new Error(_0x18574e(0xc4)+_0x36c823[_0x18574e(0xb6)]+'\x20'+_0x36c823[_0x18574e(0xb1)]);const _0x5566a8=await _0x36c823[_0x18574e(0xc0)]();if(!_0x5566a8['guides']||typeof _0x5566a8[_0x18574e(0xa8)]!==_0x18574e(0xab))throw new Error(_0x18574e(0xa9));return _0x5566a8;}export function writeGuidesToProject(_0x53687d,_0x103de1,_0x151d5e=a192_0x57cae2(0xc1),_0x18f8cf){const _0xf06482=a192_0x57cae2,_0x175923=join(_0x103de1,_0x151d5e);mkdirSync(_0x175923,{'recursive':!![]});for(const [_0x1cc64a,_0x390813]of Object[_0xf06482(0xb4)](_0x53687d[_0xf06482(0xa8)])){let _0x24453e=_0x390813['content'];_0x390813[_0xf06482(0xc5)]&&(_0x24453e=appendUpdateTime(_0x24453e,_0x390813[_0xf06482(0xc5)])),writeFileSync(join(_0x175923,_0x1cc64a+_0xf06482(0xad)),_0x24453e,_0xf06482(0xb2));}}export function appendUpdateTime(_0x273d99,_0x2427f0){const _0x481278=a192_0x57cae2;return _0x273d99=_0x273d99[_0x481278(0xb0)](/\n*>更新时间:.*$/m,''),_0x273d99[_0x481278(0xbf)]()+(_0x481278(0xb3)+_0x2427f0);}export function getSkillTemplate(_0xf195bb){const _0xe9c01=a192_0x57cae2;return _0xf195bb[_0xe9c01(0xa5)]?.['content']||'';}export function appendExtendContents(_0x4227b4,_0x424bb0,_0x35f968){const _0xba0863=a192_0x57cae2,_0x3d3fc9=[];for(const [,_0xf2ad9f]of Object[_0xba0863(0xb4)](_0x424bb0['guides'])){_0xf2ad9f[_0xba0863(0xbc)]&&_0x3d3fc9[_0xba0863(0xa6)](_0xf2ad9f[_0xba0863(0xbc)][_0xba0863(0xbf)]());}if(_0x3d3fc9[_0xba0863(0xb7)]===0x0)return _0x4227b4;return _0x4227b4[_0xba0863(0xbf)]()+'\x0a\x0a'+_0x3d3fc9['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x49bfed,_0x28e345,_0x18a623){const _0x4d6d0c=a192_0x57cae2,_0x50c0f8=getSkillTemplate(_0x49bfed);if(!_0x50c0f8)throw new Error(_0x4d6d0c(0xc3));const _0x36ac61=dirname(_0x28e345);mkdirSync(_0x36ac61,{'recursive':!![]});let _0x47d0a5=_0x50c0f8[_0x4d6d0c(0xb0)](/\{\{IDE_NAME\}\}/g,_0x18a623);_0x47d0a5=appendExtendContents(_0x47d0a5,_0x49bfed),_0x49bfed[_0x4d6d0c(0xa5)]['lastUpdated']&&(_0x47d0a5=appendUpdateTime(_0x47d0a5,_0x49bfed[_0x4d6d0c(0xa5)][_0x4d6d0c(0xc5)])),writeFileSync(_0x28e345,_0x47d0a5,_0x4d6d0c(0xb2));}export async function installGuides(_0x4234f2){const _0x547205=a192_0x57cae2,_0x417663=await fetchGuidesFromCDN();return writeGuidesToProject(_0x417663,_0x4234f2),Object[_0x547205(0xba)](_0x417663[_0x547205(0xa8)])[_0x547205(0xb7)];}export function getGuidesSummary(_0x31d2cb){const _0x226163=a192_0x57cae2;return Object['entries'](_0x31d2cb[_0x226163(0xa8)])['map'](([_0x1e02b3,_0x241abf])=>({'key':_0x1e02b3,'title':_0x241abf[_0x226163(0xbb)],'path':_0x241abf[_0x226163(0xbe)]}));}
@@ -1 +1 @@
1
- (function(_0x59301a,_0x3c3162){const _0x1c4c35=a191_0x5239,_0x276138=_0x59301a();while(!![]){try{const _0x344f0e=parseInt(_0x1c4c35(0x159))/0x1*(parseInt(_0x1c4c35(0x154))/0x2)+-parseInt(_0x1c4c35(0x14b))/0x3+-parseInt(_0x1c4c35(0x150))/0x4*(-parseInt(_0x1c4c35(0x14a))/0x5)+-parseInt(_0x1c4c35(0x151))/0x6+parseInt(_0x1c4c35(0x153))/0x7*(-parseInt(_0x1c4c35(0x14f))/0x8)+-parseInt(_0x1c4c35(0x14c))/0x9*(parseInt(_0x1c4c35(0x145))/0xa)+parseInt(_0x1c4c35(0x155))/0xb;if(_0x344f0e===_0x3c3162)break;else _0x276138['push'](_0x276138['shift']());}catch(_0x2073ac){_0x276138['push'](_0x276138['shift']());}}}(a191_0x4346,0xced65));function a191_0x5239(_0x2ffaa0,_0xf0c806){_0x2ffaa0=_0x2ffaa0-0x140;const _0x434675=a191_0x4346();let _0x523917=_0x434675[_0x2ffaa0];return _0x523917;}function a191_0x4346(){const _0x7bc81b=['388gpcTUQ','7712742nMWhak','text','7HuOVna','2234506RrdkAi','28944630WCKiCj','AbortError','signal','status','1ckaRUt','ECONNRESET','ENOTFOUND','*\x20请求失败,','statusText','message','TypeError','headers','log','name','abort','10XMEhMN','includes','application/json','json','fetch','28945SfqEHi','3171744UnQqyr','1982943egYyzr','get','url','7199032UZPIwY'];a191_0x4346=function(){return _0x7bc81b;};return a191_0x4346();}export async function httpRequest(_0x3463c4,_0x2b524a={}){const _0x243b6f=a191_0x5239,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2b524a;let _0x2bb3fe=null;for(let _0x132431=0x0;_0x132431<=retries;_0x132431++){try{const _0x1a09d1=new AbortController(),_0x59a093=setTimeout(()=>_0x1a09d1[_0x243b6f(0x144)](),timeout),_0x3b00aa=await fetch(_0x3463c4,{'headers':headers,'signal':_0x1a09d1[_0x243b6f(0x157)]});clearTimeout(_0x59a093);let _0x191f96;const _0x1cbd60=_0x3b00aa[_0x243b6f(0x141)][_0x243b6f(0x14d)]('content-type');return _0x1cbd60?.[_0x243b6f(0x146)](_0x243b6f(0x147))?_0x191f96=await _0x3b00aa[_0x243b6f(0x148)]():_0x191f96=await _0x3b00aa['text'](),{'ok':_0x3b00aa['ok'],'status':_0x3b00aa[_0x243b6f(0x158)],'statusText':_0x3b00aa[_0x243b6f(0x15d)],'data':_0x191f96,'headers':_0x3b00aa[_0x243b6f(0x141)],'url':_0x3b00aa[_0x243b6f(0x14e)],'text':()=>_0x3b00aa[_0x243b6f(0x152)]()};}catch(_0x13ce7c){_0x2bb3fe=_0x13ce7c instanceof Error?_0x13ce7c:new Error(String(_0x13ce7c));if(_0x132431===retries)break;if(shouldRetry(_0x13ce7c)){console[_0x243b6f(0x142)](_0x243b6f(0x15c)+retryDelay+'ms\x20后进行第\x20'+(_0x132431+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x2bb3fe||new Error('Request\x20failed');}function shouldRetry(_0xd2d36e){const _0x3536ac=a191_0x5239;if(_0xd2d36e instanceof Error){if(_0xd2d36e[_0x3536ac(0x143)]===_0x3536ac(0x156))return![];if(_0xd2d36e[_0x3536ac(0x143)]===_0x3536ac(0x140)&&_0xd2d36e[_0x3536ac(0x15e)][_0x3536ac(0x146)](_0x3536ac(0x149)))return!![];if(_0xd2d36e[_0x3536ac(0x15e)][_0x3536ac(0x146)](_0x3536ac(0x15a)))return!![];if(_0xd2d36e['message'][_0x3536ac(0x146)](_0x3536ac(0x15b)))return![];}return![];}function sleep(_0x5efcd6){return new Promise(_0x2374de=>setTimeout(_0x2374de,_0x5efcd6));}export function validateUrl(_0x539915){try{return new URL(_0x539915),!![];}catch{return![];}}
1
+ (function(_0x49be40,_0x94e1ae){const _0x16221a=a193_0x4520,_0x4ee0e9=_0x49be40();while(!![]){try{const _0x217d6d=parseInt(_0x16221a(0x133))/0x1+parseInt(_0x16221a(0x138))/0x2*(-parseInt(_0x16221a(0x139))/0x3)+-parseInt(_0x16221a(0x141))/0x4*(-parseInt(_0x16221a(0x13f))/0x5)+parseInt(_0x16221a(0x143))/0x6+parseInt(_0x16221a(0x13c))/0x7+parseInt(_0x16221a(0x14d))/0x8+-parseInt(_0x16221a(0x145))/0x9*(parseInt(_0x16221a(0x147))/0xa);if(_0x217d6d===_0x94e1ae)break;else _0x4ee0e9['push'](_0x4ee0e9['shift']());}catch(_0x1c363f){_0x4ee0e9['push'](_0x4ee0e9['shift']());}}}(a193_0x566a,0xbe2cb));export async function httpRequest(_0xf45e76,_0x2de282={}){const _0x4e12fc=a193_0x4520,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2de282;let _0x29a0b3=null;for(let _0x466a31=0x0;_0x466a31<=retries;_0x466a31++){try{const _0x11bce0=new AbortController(),_0x3a3504=setTimeout(()=>_0x11bce0[_0x4e12fc(0x136)](),timeout),_0x3bed02=await fetch(_0xf45e76,{'headers':headers,'signal':_0x11bce0[_0x4e12fc(0x140)]});clearTimeout(_0x3a3504);let _0x5f0f4a;const _0x267027=_0x3bed02['headers'][_0x4e12fc(0x144)](_0x4e12fc(0x137));return _0x267027?.[_0x4e12fc(0x134)](_0x4e12fc(0x149))?_0x5f0f4a=await _0x3bed02[_0x4e12fc(0x13e)]():_0x5f0f4a=await _0x3bed02['text'](),{'ok':_0x3bed02['ok'],'status':_0x3bed02['status'],'statusText':_0x3bed02[_0x4e12fc(0x14c)],'data':_0x5f0f4a,'headers':_0x3bed02[_0x4e12fc(0x148)],'url':_0x3bed02['url'],'text':()=>_0x3bed02[_0x4e12fc(0x13b)]()};}catch(_0x1f45f5){_0x29a0b3=_0x1f45f5 instanceof Error?_0x1f45f5:new Error(String(_0x1f45f5));if(_0x466a31===retries)break;if(shouldRetry(_0x1f45f5)){console[_0x4e12fc(0x14a)](_0x4e12fc(0x132)+retryDelay+'ms\x20后进行第\x20'+(_0x466a31+0x1)+'\x20次重试...'),await sleep(retryDelay);continue;}else break;}}throw _0x29a0b3||new Error(_0x4e12fc(0x135));}function shouldRetry(_0x5a021f){const _0x3da45b=a193_0x4520;if(_0x5a021f instanceof Error){if(_0x5a021f[_0x3da45b(0x13a)]===_0x3da45b(0x142))return![];if(_0x5a021f[_0x3da45b(0x13a)]==='TypeError'&&_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)]('fetch'))return!![];if(_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)](_0x3da45b(0x14b)))return!![];if(_0x5a021f[_0x3da45b(0x13d)][_0x3da45b(0x134)](_0x3da45b(0x146)))return![];}return![];}function a193_0x4520(_0x26c001,_0x523ab9){_0x26c001=_0x26c001-0x132;const _0x566a4c=a193_0x566a();let _0x4520a9=_0x566a4c[_0x26c001];return _0x4520a9;}function sleep(_0x4fe753){return new Promise(_0x4a0965=>setTimeout(_0x4a0965,_0x4fe753));}function a193_0x566a(){const _0x293702=['9DDFUnj','ENOTFOUND','36652850fOcptA','headers','application/json','log','ECONNRESET','statusText','3998432FQrpPJ','*\x20请求失败,','1274707tLFHUD','includes','Request\x20failed','abort','content-type','2sarAfw','263157QtvyjP','name','text','7329112YnQpEr','message','json','242265qiQMRa','signal','56mHZMpa','AbortError','6192540csXLwB','get'];a193_0x566a=function(){return _0x293702;};return a193_0x566a();}export function validateUrl(_0x4a0044){try{return new URL(_0x4a0044),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x364fab,_0x48ec6e){const _0x2a4d5f=a192_0x5c03,_0x24f68f=_0x364fab();while(!![]){try{const _0x35bc07=-parseInt(_0x2a4d5f(0x171))/0x1*(parseInt(_0x2a4d5f(0x16a))/0x2)+-parseInt(_0x2a4d5f(0x170))/0x3+-parseInt(_0x2a4d5f(0x168))/0x4+parseInt(_0x2a4d5f(0x16d))/0x5+parseInt(_0x2a4d5f(0x167))/0x6+parseInt(_0x2a4d5f(0x169))/0x7*(parseInt(_0x2a4d5f(0x16c))/0x8)+parseInt(_0x2a4d5f(0x173))/0x9;if(_0x35bc07===_0x48ec6e)break;else _0x24f68f['push'](_0x24f68f['shift']());}catch(_0x4c52ab){_0x24f68f['push'](_0x24f68f['shift']());}}}(a192_0x4729,0xbf84e));function env(_0x459fd9){return process.env[`RABETBASE_${_0x459fd9}`]||process.env[`LOVRABET_${_0x459fd9}`]||undefined;}export function isNonInteractive(_0x49e019){const _0x26056e=a192_0x5c03;return!!(_0x49e019[_0x26056e(0x165)]||_0x49e019['ci']||env('CI')===_0x26056e(0x16e)||process.env.CI===_0x26056e(0x16e)||!process['stdout'][_0x26056e(0x166)]||!isStdinRawModeSupported());}function a192_0x5c03(_0x4d05a5,_0x2f3ebf){_0x4d05a5=_0x4d05a5-0x165;const _0x4729e9=a192_0x4729();let _0x5c03be=_0x4729e9[_0x4d05a5];return _0x5c03be;}function isStdinRawModeSupported(){const _0x21bab1=a192_0x5c03;if(!process[_0x21bab1(0x16b)]['isTTY'])return![];try{const _0x359e5b=process[_0x21bab1(0x16b)][_0x21bab1(0x172)];return process[_0x21bab1(0x16b)][_0x21bab1(0x16f)](!![]),process['stdin'][_0x21bab1(0x16f)](_0x359e5b??![]),!![];}catch{return![];}}function a192_0x4729(){const _0x57ea11=['isRaw','16286679vOgjvX','nonInteractive','isTTY','307806qiQMOd','5169232jAAeAV','70aMOUeH','6kgqbaV','stdin','44648HnmPjm','7733020aMXjlY','true','setRawMode','1689201GGZhdp','274503fPucbf'];a192_0x4729=function(){return _0x57ea11;};return a192_0x4729();}
1
+ (function(_0x4d5beb,_0x58cb54){const _0x4b7259=a194_0x24b4,_0x108b5b=_0x4d5beb();while(!![]){try{const _0x5df497=-parseInt(_0x4b7259(0x87))/0x1*(-parseInt(_0x4b7259(0x8a))/0x2)+-parseInt(_0x4b7259(0x90))/0x3+parseInt(_0x4b7259(0x84))/0x4*(-parseInt(_0x4b7259(0x86))/0x5)+parseInt(_0x4b7259(0x8d))/0x6*(-parseInt(_0x4b7259(0x8b))/0x7)+-parseInt(_0x4b7259(0x8e))/0x8+-parseInt(_0x4b7259(0x83))/0x9*(-parseInt(_0x4b7259(0x89))/0xa)+parseInt(_0x4b7259(0x81))/0xb*(parseInt(_0x4b7259(0x8f))/0xc);if(_0x5df497===_0x58cb54)break;else _0x108b5b['push'](_0x108b5b['shift']());}catch(_0xd93b2e){_0x108b5b['push'](_0x108b5b['shift']());}}}(a194_0x2b74,0xe833a));function env(_0x2a13b7){return process.env[`RABETBASE_${_0x2a13b7}`]||process.env[`LOVRABET_${_0x2a13b7}`]||undefined;}export function isNonInteractive(_0x438fbb){const _0x1f8569=a194_0x24b4;return!!(_0x438fbb[_0x1f8569(0x88)]||_0x438fbb['ci']||env('CI')==='true'||process.env.CI==='true'||!process[_0x1f8569(0x8c)][_0x1f8569(0x92)]||!isStdinRawModeSupported());}function a194_0x24b4(_0x3547f8,_0x5eef98){_0x3547f8=_0x3547f8-0x81;const _0x2b74c6=a194_0x2b74();let _0x24b43b=_0x2b74c6[_0x3547f8];return _0x24b43b;}function a194_0x2b74(){const _0x28a30c=['60159uKVyaB','stdin','74718KpMrRz','335272NappID','isRaw','15VYwxIS','1DBrdUj','nonInteractive','1130DsBDCF','2943294IDdOKF','7qplqyZ','stdout','10313334lMgDqS','5172376DlDxUs','4404FxqOlz','2546724nvXyYF','setRawMode','isTTY'];a194_0x2b74=function(){return _0x28a30c;};return a194_0x2b74();}function isStdinRawModeSupported(){const _0x26fdd3=a194_0x24b4;if(!process[_0x26fdd3(0x82)][_0x26fdd3(0x92)])return![];try{const _0x291449=process['stdin'][_0x26fdd3(0x85)];return process['stdin'][_0x26fdd3(0x91)](!![]),process['stdin'][_0x26fdd3(0x91)](_0x291449??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a193_0x4bd2(_0x4152fe,_0x243945){_0x4152fe=_0x4152fe-0xc6;const _0x2afbf4=a193_0x2afb();let _0x4bd2fd=_0x2afbf4[_0x4152fe];return _0x4bd2fd;}const a193_0x1205c1=a193_0x4bd2;(function(_0xef4a1d,_0x52beef){const _0x208a39=a193_0x4bd2,_0x154bfc=_0xef4a1d();while(!![]){try{const _0x495928=-parseInt(_0x208a39(0xdc))/0x1+parseInt(_0x208a39(0xe0))/0x2*(parseInt(_0x208a39(0xf2))/0x3)+parseInt(_0x208a39(0xf6))/0x4*(parseInt(_0x208a39(0xd8))/0x5)+parseInt(_0x208a39(0xec))/0x6*(-parseInt(_0x208a39(0xd9))/0x7)+-parseInt(_0x208a39(0xca))/0x8*(parseInt(_0x208a39(0xfc))/0x9)+-parseInt(_0x208a39(0xe3))/0xa*(-parseInt(_0x208a39(0xe7))/0xb)+-parseInt(_0x208a39(0xf1))/0xc*(-parseInt(_0x208a39(0xe9))/0xd);if(_0x495928===_0x52beef)break;else _0x154bfc['push'](_0x154bfc['shift']());}catch(_0x3a1b7c){_0x154bfc['push'](_0x154bfc['shift']());}}}(a193_0x2afb,0x71882));import a193_0x42be1c from'winston';import a193_0x2db386 from'node:fs';function a193_0x2afb(){const _0x5765d0=['warn','stringify','1657612YkyiRd','existsSync','553566YieYFk','command','yellow','18hAkLNR','Failed\x20to\x20clear\x20logs:','setRawCommand','utf8','duration','36qurSxo','7893sfNYaT','green','toISOString','initWinstonLogger','3637156XDiBko','map','createLogger','timestamp','split','currentRawCommand','6401097wAbtjx','getWinstonInstance','printf','addColors','失败:\x20','完成:\x20','blue','8XzTeKD','red','error','rawCommand','info','now','logTask','success','unknown','errors','level','winstonLogger','format','clear','5EiIXDK','1597085dftrvw','combine','message','372235oxsmZZ','clearLogs','details','logFilePath','680hhkmey','readFileSync','filter','20IRloTB','.lovrabet.log'];a193_0x2afb=function(){return _0x5765d0;};return a193_0x2afb();}import a193_0x205120 from'node:path';class Logger{[a193_0x1205c1(0xd5)];[a193_0x1205c1(0xdf)];[a193_0x1205c1(0xfb)]='';constructor(){const _0x3c1bd7=a193_0x1205c1;this[_0x3c1bd7(0xdf)]='';}[a193_0x1205c1(0xee)](_0x5edcdb){const _0x333e00=a193_0x1205c1;this[_0x333e00(0xfb)]=_0x5edcdb;}['initWinstonLogger'](){const _0x59842b=a193_0x1205c1,_0x518d56=a193_0x205120['dirname'](this[_0x59842b(0xdf)]);!a193_0x2db386['existsSync'](_0x518d56)&&a193_0x2db386['mkdirSync'](_0x518d56,{'recursive':!![]});const _0x2836ea=a193_0x42be1c['format'][_0x59842b(0xda)](a193_0x42be1c[_0x59842b(0xd6)][_0x59842b(0xf9)](),a193_0x42be1c[_0x59842b(0xd6)][_0x59842b(0xd3)]({'stack':!![]}),a193_0x42be1c[_0x59842b(0xd6)][_0x59842b(0xfe)](_0x2f02c1=>{const _0xf8df58=_0x59842b,_0x7f698b={'timestamp':_0x2f02c1[_0xf8df58(0xf9)]||new Date()[_0xf8df58(0xf4)](),'level':_0x2f02c1[_0xf8df58(0xd4)]||_0xf8df58(0xce),'command':_0x2f02c1[_0xf8df58(0xea)]||_0xf8df58(0xd2),'rawCommand':_0x2f02c1[_0xf8df58(0xcd)]||this[_0xf8df58(0xfb)]||undefined,'message':_0x2f02c1[_0xf8df58(0xdb)]||'','duration':_0x2f02c1[_0xf8df58(0xf0)]||undefined,'details':_0x2f02c1[_0xf8df58(0xde)]||undefined};return JSON[_0xf8df58(0xe6)](_0x7f698b);}));this[_0x59842b(0xd5)]=a193_0x42be1c[_0x59842b(0xf8)]({'level':_0x59842b(0xce),'format':_0x2836ea,'transports':[new a193_0x42be1c['transports']['File']({'filename':this[_0x59842b(0xdf)],'level':_0x59842b(0xce)})],'silent':![]}),a193_0x42be1c[_0x59842b(0xc6)]({'success':_0x59842b(0xf3),'error':_0x59842b(0xcb),'warn':_0x59842b(0xeb),'info':_0x59842b(0xc9)});}['setLogPath'](_0x40a463){const _0x5362f6=a193_0x1205c1;this['logFilePath']=a193_0x205120['join'](_0x40a463,_0x5362f6(0xe4)),this[_0x5362f6(0xd5)]&&this['winstonLogger'][_0x5362f6(0xd7)](),this[_0x5362f6(0xf5)]();}[a193_0x1205c1(0xce)](_0xe4355,_0x50ea51,_0x2151fb){const _0x5883f4=a193_0x1205c1;if(!this['logFilePath']||!this[_0x5883f4(0xd5)])return;this[_0x5883f4(0xd5)]['info'](_0x50ea51,{'command':_0xe4355,'details':_0x2151fb});}[a193_0x1205c1(0xd1)](_0x2c88d2,_0x2ffc67,_0x1df4c4,_0x492771){const _0x3c6f8f=a193_0x1205c1;if(!this[_0x3c6f8f(0xdf)]||!this[_0x3c6f8f(0xd5)])return;this[_0x3c6f8f(0xd5)]['log'](_0x3c6f8f(0xce),_0x2ffc67,{'level':'success','command':_0x2c88d2,'duration':_0x1df4c4,'details':_0x492771});}[a193_0x1205c1(0xcc)](_0x13bd2b,_0x3b5204,_0x2e904a){const _0x21cf6a=a193_0x1205c1;if(!this[_0x21cf6a(0xdf)]||!this['winstonLogger'])return;this[_0x21cf6a(0xd5)][_0x21cf6a(0xcc)](_0x3b5204,{'command':_0x13bd2b,'details':_0x2e904a});}[a193_0x1205c1(0xe5)](_0x3f47d2,_0x179af6,_0x5b06ae){const _0x1b3115=a193_0x1205c1;if(!this['logFilePath']||!this[_0x1b3115(0xd5)])return;this['winstonLogger'][_0x1b3115(0xe5)](_0x179af6,{'command':_0x3f47d2,'details':_0x5b06ae});}async[a193_0x1205c1(0xd0)](_0x2ec109,_0x34bb5b,_0xfa326e){const _0x364c5d=a193_0x1205c1,_0x2e9022=Date['now']();this[_0x364c5d(0xce)](_0x2ec109,'开始执行:\x20'+_0x34bb5b);try{const _0x30ff51=await _0xfa326e(),_0x53692b=Date[_0x364c5d(0xcf)]()-_0x2e9022;return this[_0x364c5d(0xd1)](_0x2ec109,_0x364c5d(0xc8)+_0x34bb5b,_0x53692b),_0x30ff51;}catch(_0x4bb31c){const _0x320562=Date['now']()-_0x2e9022;this[_0x364c5d(0xcc)](_0x2ec109,_0x364c5d(0xc7)+_0x34bb5b,{'error':_0x4bb31c instanceof Error?_0x4bb31c[_0x364c5d(0xdb)]:String(_0x4bb31c),'duration':_0x320562});throw _0x4bb31c;}}['readLogs'](){const _0x36caee=a193_0x1205c1;try{if(!a193_0x2db386['existsSync'](this[_0x36caee(0xdf)]))return[];const _0x3c7750=a193_0x2db386[_0x36caee(0xe1)](this[_0x36caee(0xdf)],_0x36caee(0xef));return _0x3c7750[_0x36caee(0xfa)]('\x0a')[_0x36caee(0xe2)](_0x5556d6=>_0x5556d6['trim']())[_0x36caee(0xf7)](_0x26cbfd=>JSON['parse'](_0x26cbfd));}catch(_0x8f7037){return console[_0x36caee(0xe5)]('Failed\x20to\x20read\x20logs:',_0x8f7037),[];}}[a193_0x1205c1(0xdd)](){const _0x289452=a193_0x1205c1;try{a193_0x2db386[_0x289452(0xe8)](this[_0x289452(0xdf)])&&a193_0x2db386['writeFileSync'](this[_0x289452(0xdf)],'','utf8');}catch(_0x100034){console[_0x289452(0xe5)](_0x289452(0xed),_0x100034);}}[a193_0x1205c1(0xfd)](){const _0x51f25a=a193_0x1205c1;return this[_0x51f25a(0xd5)];}}export const logger=new Logger();
1
+ const a195_0x239d66=a195_0x2c24;(function(_0xa8cd2a,_0x5a4071){const _0x57397d=a195_0x2c24,_0x250e54=_0xa8cd2a();while(!![]){try{const _0x3a3e6b=parseInt(_0x57397d(0x137))/0x1*(-parseInt(_0x57397d(0x10d))/0x2)+-parseInt(_0x57397d(0x11d))/0x3+parseInt(_0x57397d(0x10f))/0x4+parseInt(_0x57397d(0x142))/0x5+-parseInt(_0x57397d(0x119))/0x6*(parseInt(_0x57397d(0x13c))/0x7)+parseInt(_0x57397d(0x127))/0x8*(parseInt(_0x57397d(0x10e))/0x9)+parseInt(_0x57397d(0x141))/0xa*(parseInt(_0x57397d(0x13f))/0xb);if(_0x3a3e6b===_0x5a4071)break;else _0x250e54['push'](_0x250e54['shift']());}catch(_0x1e6528){_0x250e54['push'](_0x250e54['shift']());}}}(a195_0x64b6,0x5c5ea));import a195_0x56a72d from'winston';import a195_0x1799c9 from'node:fs';function a195_0x2c24(_0x5d56ee,_0x228e09){_0x5d56ee=_0x5d56ee-0x10c;const _0x64b6c4=a195_0x64b6();let _0x2c2401=_0x64b6c4[_0x5d56ee];return _0x2c2401;}import a195_0x14d8ae from'node:path';class Logger{[a195_0x239d66(0x130)];[a195_0x239d66(0x11e)];[a195_0x239d66(0x136)]='';constructor(){const _0x455e7f=a195_0x239d66;this[_0x455e7f(0x11e)]='';}[a195_0x239d66(0x113)](_0x188424){const _0x250ea8=a195_0x239d66;this[_0x250ea8(0x136)]=_0x188424;}[a195_0x239d66(0x135)](){const _0x4c5fc8=a195_0x239d66,_0x35b545=a195_0x14d8ae[_0x4c5fc8(0x133)](this[_0x4c5fc8(0x11e)]);!a195_0x1799c9[_0x4c5fc8(0x125)](_0x35b545)&&a195_0x1799c9['mkdirSync'](_0x35b545,{'recursive':!![]});const _0xae0f5b=a195_0x56a72d[_0x4c5fc8(0x114)][_0x4c5fc8(0x138)](a195_0x56a72d[_0x4c5fc8(0x114)][_0x4c5fc8(0x13b)](),a195_0x56a72d[_0x4c5fc8(0x114)]['errors']({'stack':!![]}),a195_0x56a72d[_0x4c5fc8(0x114)]['printf'](_0x23cd53=>{const _0x1d2d18=_0x4c5fc8,_0x586636={'timestamp':_0x23cd53['timestamp']||new Date()['toISOString'](),'level':_0x23cd53[_0x1d2d18(0x139)]||'info','command':_0x23cd53[_0x1d2d18(0x144)]||'unknown','rawCommand':_0x23cd53['rawCommand']||this[_0x1d2d18(0x136)]||undefined,'message':_0x23cd53[_0x1d2d18(0x126)]||'','duration':_0x23cd53[_0x1d2d18(0x134)]||undefined,'details':_0x23cd53[_0x1d2d18(0x13a)]||undefined};return JSON[_0x1d2d18(0x121)](_0x586636);}));this['winstonLogger']=a195_0x56a72d['createLogger']({'level':'info','format':_0xae0f5b,'transports':[new a195_0x56a72d[(_0x4c5fc8(0x12e))][(_0x4c5fc8(0x143))]({'filename':this[_0x4c5fc8(0x11e)],'level':_0x4c5fc8(0x12b)})],'silent':![]}),a195_0x56a72d[_0x4c5fc8(0x10c)]({'success':_0x4c5fc8(0x118),'error':_0x4c5fc8(0x12c),'warn':_0x4c5fc8(0x117),'info':_0x4c5fc8(0x12f)});}[a195_0x239d66(0x13d)](_0x36a058){const _0xa887f5=a195_0x239d66;this[_0xa887f5(0x11e)]=a195_0x14d8ae[_0xa887f5(0x11f)](_0x36a058,_0xa887f5(0x145)),this[_0xa887f5(0x130)]&&this['winstonLogger'][_0xa887f5(0x140)](),this[_0xa887f5(0x135)]();}['info'](_0x57e0db,_0x4c32c7,_0x3f25bd){const _0x5cb3ee=a195_0x239d66;if(!this[_0x5cb3ee(0x11e)]||!this['winstonLogger'])return;this[_0x5cb3ee(0x130)]['info'](_0x4c32c7,{'command':_0x57e0db,'details':_0x3f25bd});}[a195_0x239d66(0x11c)](_0x3e4d25,_0x2dc5b6,_0x5a3533,_0x4df7a2){const _0x4fe0f3=a195_0x239d66;if(!this[_0x4fe0f3(0x11e)]||!this['winstonLogger'])return;this[_0x4fe0f3(0x130)]['log'](_0x4fe0f3(0x12b),_0x2dc5b6,{'level':_0x4fe0f3(0x11c),'command':_0x3e4d25,'duration':_0x5a3533,'details':_0x4df7a2});}[a195_0x239d66(0x122)](_0x44a119,_0x55a6dd,_0x1428cc){const _0x116af2=a195_0x239d66;if(!this[_0x116af2(0x11e)]||!this[_0x116af2(0x130)])return;this[_0x116af2(0x130)][_0x116af2(0x122)](_0x55a6dd,{'command':_0x44a119,'details':_0x1428cc});}['warn'](_0x4f249e,_0x2d1fa4,_0x41ee27){const _0x508de3=a195_0x239d66;if(!this['logFilePath']||!this[_0x508de3(0x130)])return;this['winstonLogger'][_0x508de3(0x123)](_0x2d1fa4,{'command':_0x4f249e,'details':_0x41ee27});}async['logTask'](_0x40b806,_0x466147,_0xa203d5){const _0x55252c=a195_0x239d66,_0x5b0c16=Date[_0x55252c(0x12a)]();this[_0x55252c(0x12b)](_0x40b806,_0x55252c(0x129)+_0x466147);try{const _0x752c14=await _0xa203d5(),_0x23cb15=Date[_0x55252c(0x12a)]()-_0x5b0c16;return this[_0x55252c(0x11c)](_0x40b806,_0x55252c(0x116)+_0x466147,_0x23cb15),_0x752c14;}catch(_0x36936f){const _0x3b7007=Date[_0x55252c(0x12a)]()-_0x5b0c16;this[_0x55252c(0x122)](_0x40b806,_0x55252c(0x115)+_0x466147,{'error':_0x36936f instanceof Error?_0x36936f[_0x55252c(0x126)]:String(_0x36936f),'duration':_0x3b7007});throw _0x36936f;}}[a195_0x239d66(0x11b)](){const _0x2de577=a195_0x239d66;try{if(!a195_0x1799c9[_0x2de577(0x125)](this[_0x2de577(0x11e)]))return[];const _0x1b12d4=a195_0x1799c9[_0x2de577(0x128)](this[_0x2de577(0x11e)],_0x2de577(0x132));return _0x1b12d4[_0x2de577(0x131)]('\x0a')['filter'](_0x11aff3=>_0x11aff3[_0x2de577(0x120)]())[_0x2de577(0x111)](_0x2bb36f=>JSON[_0x2de577(0x13e)](_0x2bb36f));}catch(_0x45d55c){return console['warn'](_0x2de577(0x12d),_0x45d55c),[];}}[a195_0x239d66(0x11a)](){const _0x39d0b0=a195_0x239d66;try{a195_0x1799c9[_0x39d0b0(0x125)](this[_0x39d0b0(0x11e)])&&a195_0x1799c9[_0x39d0b0(0x110)](this[_0x39d0b0(0x11e)],'',_0x39d0b0(0x132));}catch(_0x271d28){console[_0x39d0b0(0x123)](_0x39d0b0(0x112),_0x271d28);}}[a195_0x239d66(0x124)](){const _0x3e2d64=a195_0x239d66;return this[_0x3e2d64(0x130)];}}export const logger=new Logger();function a195_0x64b6(){const _0x2c8d48=['834295KZsvxK','File','command','.lovrabet.log','addColors','2IvyUGW','9zhxEOH','1748344OnLtYV','writeFileSync','map','Failed\x20to\x20clear\x20logs:','setRawCommand','format','失败:\x20','完成:\x20','yellow','green','462LqGGDs','clearLogs','readLogs','success','1173747fjpjFA','logFilePath','join','trim','stringify','error','warn','getWinstonInstance','existsSync','message','3031696MvPGwf','readFileSync','开始执行:\x20','now','info','red','Failed\x20to\x20read\x20logs:','transports','blue','winstonLogger','split','utf8','dirname','duration','initWinstonLogger','currentRawCommand','41037JmlPYM','combine','level','details','timestamp','45003tKthTM','setLogPath','parse','41283QUhkcl','clear','860LusfvC'];a195_0x64b6=function(){return _0x2c8d48;};return a195_0x64b6();}
@@ -1 +1 @@
1
- (function(_0x3c8c8c,_0x16c4cd){const _0x144922=a194_0x2182,_0x1e9560=_0x3c8c8c();while(!![]){try{const _0x8a7086=-parseInt(_0x144922(0xbb))/0x1*(parseInt(_0x144922(0xba))/0x2)+-parseInt(_0x144922(0xc0))/0x3+-parseInt(_0x144922(0xb6))/0x4*(-parseInt(_0x144922(0xc1))/0x5)+-parseInt(_0x144922(0xb9))/0x6+parseInt(_0x144922(0xbd))/0x7*(parseInt(_0x144922(0xbe))/0x8)+parseInt(_0x144922(0xc4))/0x9*(parseInt(_0x144922(0xbc))/0xa)+-parseInt(_0x144922(0xc2))/0xb;if(_0x8a7086===_0x16c4cd)break;else _0x1e9560['push'](_0x1e9560['shift']());}catch(_0x50b162){_0x1e9560['push'](_0x1e9560['shift']());}}}(a194_0x2eca,0x3e1c5));import{CliErrors}from'../errors.js';function a194_0x2eca(){const _0x5e177b=['930783GZmdOU','24BWFvrR','parse','1010535Ugfuxc','9865pSxquE','1055549HGybdZ','Invalid\x20JSON\x20for\x20--params:\x20','43128WMofRc','--params\x20must\x20be\x20a\x20JSON\x20object','validation','796gnAHrD','object','isArray','408588OxWpvZ','36766aVpZFa','21stwgoy','730WLEXxA'];a194_0x2eca=function(){return _0x5e177b;};return a194_0x2eca();}function a194_0x2182(_0x5dabdc,_0x595a5f){_0x5dabdc=_0x5dabdc-0xb4;const _0x2ecac9=a194_0x2eca();let _0x218280=_0x2ecac9[_0x5dabdc];return _0x218280;}export function parseJsonParams(_0x8b72af){const _0x28b14f=a194_0x2182;if(!_0x8b72af)return undefined;let _0x3744c4;try{_0x3744c4=JSON[_0x28b14f(0xbf)](_0x8b72af);}catch{throw CliErrors[_0x28b14f(0xb5)](_0x28b14f(0xc3)+_0x8b72af);}if(!_0x3744c4||typeof _0x3744c4!==_0x28b14f(0xb7)||Array[_0x28b14f(0xb8)](_0x3744c4))throw CliErrors['validation'](_0x28b14f(0xb4),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x3744c4;}
1
+ function a196_0x1585(_0x17da8c,_0xd63ba6){_0x17da8c=_0x17da8c-0x106;const _0x1c1382=a196_0x1c13();let _0x1585c1=_0x1c1382[_0x17da8c];return _0x1585c1;}(function(_0x325ade,_0x399ed2){const _0xe13e39=a196_0x1585,_0x30fbfd=_0x325ade();while(!![]){try{const _0x5bd791=-parseInt(_0xe13e39(0x113))/0x1+parseInt(_0xe13e39(0x111))/0x2*(-parseInt(_0xe13e39(0x114))/0x3)+-parseInt(_0xe13e39(0x10c))/0x4+-parseInt(_0xe13e39(0x10b))/0x5*(-parseInt(_0xe13e39(0x108))/0x6)+parseInt(_0xe13e39(0x10e))/0x7+-parseInt(_0xe13e39(0x110))/0x8+parseInt(_0xe13e39(0x10d))/0x9;if(_0x5bd791===_0x399ed2)break;else _0x30fbfd['push'](_0x30fbfd['shift']());}catch(_0x4fe1b3){_0x30fbfd['push'](_0x30fbfd['shift']());}}}(a196_0x1c13,0x7c7cf));import{CliErrors}from'../errors.js';function a196_0x1c13(){const _0x456891=['3960748unpTnl','15788448fMeyql','6879271ZdLNrW','Invalid\x20JSON\x20for\x20--params:\x20','7761200gUUqES','189902mGlYeP','isArray','561924DNpvhR','21tfTLnG','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','24kFTAeX','validation','parse','1199745rpneVL'];a196_0x1c13=function(){return _0x456891;};return a196_0x1c13();}export function parseJsonParams(_0x46de90){const _0x211ac0=a196_0x1585;if(!_0x46de90)return undefined;let _0x3fa9c3;try{_0x3fa9c3=JSON[_0x211ac0(0x10a)](_0x46de90);}catch{throw CliErrors[_0x211ac0(0x109)](_0x211ac0(0x10f)+_0x46de90);}if(!_0x3fa9c3||typeof _0x3fa9c3!==_0x211ac0(0x107)||Array[_0x211ac0(0x112)](_0x3fa9c3))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object',_0x211ac0(0x106));return _0x3fa9c3;}
@@ -1 +1 @@
1
- const a195_0x4c3c5=a195_0x5584;(function(_0x23d1d4,_0x2bdd33){const _0x14f67c=a195_0x5584,_0x6449e3=_0x23d1d4();while(!![]){try{const _0x34bb33=-parseInt(_0x14f67c(0x86))/0x1+parseInt(_0x14f67c(0x8a))/0x2+-parseInt(_0x14f67c(0x85))/0x3+-parseInt(_0x14f67c(0x87))/0x4*(-parseInt(_0x14f67c(0x8d))/0x5)+-parseInt(_0x14f67c(0x8b))/0x6+parseInt(_0x14f67c(0x84))/0x7*(-parseInt(_0x14f67c(0x8c))/0x8)+parseInt(_0x14f67c(0x8e))/0x9;if(_0x34bb33===_0x2bdd33)break;else _0x6449e3['push'](_0x6449e3['shift']());}catch(_0x2a0dfa){_0x6449e3['push'](_0x6449e3['shift']());}}}(a195_0x5b97,0xa8b2a));export const isWindows=process[a195_0x4c3c5(0x89)]==='win32';function a195_0x5584(_0x17d929,_0x1b7c13){_0x17d929=_0x17d929-0x84;const _0x5b977a=a195_0x5b97();let _0x5584ea=_0x5b977a[_0x17d929];return _0x5584ea;}export function resolveNpmBin(_0x5db62e){const _0x14fbc6=a195_0x4c3c5;return isWindows?_0x5db62e+_0x14fbc6(0x88):_0x5db62e;}function a195_0x5b97(){const _0x1b2d37=['2754384bAIHma','1254166kHuCvC','5036lBGNij','.cmd','platform','1835930kzdLlo','3876828oLXIGb','152FPJJRL','5330VPjgET','23516730dFBPqR','502383PBtrBb'];a195_0x5b97=function(){return _0x1b2d37;};return a195_0x5b97();}
1
+ const a197_0x513cbc=a197_0x33b9;function a197_0x2c66(){const _0x108a43=['397543UmtkgO','.cmd','4unNymw','50mJBFvv','2ymOsKF','2999275ODfTmx','1942428pfMaZk','1588944PDecfS','1750842tgPlfI','platform','win32','1410073IFmdXe','211419GdezMI'];a197_0x2c66=function(){return _0x108a43;};return a197_0x2c66();}(function(_0x629dff,_0x45aa37){const _0x7f8bfb=a197_0x33b9,_0x5d4b86=_0x629dff();while(!![]){try{const _0x180622=-parseInt(_0x7f8bfb(0x1b3))/0x1+-parseInt(_0x7f8bfb(0x1aa))/0x2*(parseInt(_0x7f8bfb(0x1b2))/0x3)+-parseInt(_0x7f8bfb(0x1b5))/0x4*(-parseInt(_0x7f8bfb(0x1ab))/0x5)+-parseInt(_0x7f8bfb(0x1ac))/0x6+-parseInt(_0x7f8bfb(0x1b1))/0x7+-parseInt(_0x7f8bfb(0x1ad))/0x8+-parseInt(_0x7f8bfb(0x1ae))/0x9*(-parseInt(_0x7f8bfb(0x1b6))/0xa);if(_0x180622===_0x45aa37)break;else _0x5d4b86['push'](_0x5d4b86['shift']());}catch(_0x2634ac){_0x5d4b86['push'](_0x5d4b86['shift']());}}}(a197_0x2c66,0x5cf3e));export const isWindows=process[a197_0x513cbc(0x1af)]===a197_0x513cbc(0x1b0);function a197_0x33b9(_0x410281,_0x3a4972){_0x410281=_0x410281-0x1aa;const _0x2c6624=a197_0x2c66();let _0x33b984=_0x2c6624[_0x410281];return _0x33b984;}export function resolveNpmBin(_0x2a03dd){const _0x277757=a197_0x513cbc;return isWindows?_0x2a03dd+_0x277757(0x1b4):_0x2a03dd;}
@@ -1 +1 @@
1
- function a196_0x2fd4(){const _0x18b166=['status','424wDTcIS','本地模板文件不存在:\x20','599045fcWrbf','6873320UviGLc','6126vPxYeP','647368nHrKcA','78VIhCnE','agents.md','content','CDN\x20返回数据格式错误','5906860EYiwyB','1666hBkqIN','statusText','application/json','json','CDN\x20请求失败:\x20','/rules/rules.json','catch','lastUpdated','.cursor/rules','121345SwiIGg','5659209vFFPBG','utf-8','../../templates/rules/lovrabet_rules.mdc.tpl'];a196_0x2fd4=function(){return _0x18b166;};return a196_0x2fd4();}function a196_0x3107(_0x543b7a,_0x5643de){_0x543b7a=_0x543b7a-0x1c0;const _0x2fd446=a196_0x2fd4();let _0x310717=_0x2fd446[_0x543b7a];return _0x310717;}const a196_0xdba858=a196_0x3107;(function(_0x45300f,_0x1519e1){const _0x4a73eb=a196_0x3107,_0x4f546d=_0x45300f();while(!![]){try{const _0x7b94ba=-parseInt(_0x4a73eb(0x1d0))/0x1+parseInt(_0x4a73eb(0x1d6))/0x2*(parseInt(_0x4a73eb(0x1cf))/0x3)+parseInt(_0x4a73eb(0x1ce))/0x4+parseInt(_0x4a73eb(0x1cd))/0x5*(-parseInt(_0x4a73eb(0x1d1))/0x6)+-parseInt(_0x4a73eb(0x1c6))/0x7*(-parseInt(_0x4a73eb(0x1cb))/0x8)+-parseInt(_0x4a73eb(0x1c7))/0x9+-parseInt(_0x4a73eb(0x1d5))/0xa;if(_0x7b94ba===_0x1519e1)break;else _0x4f546d['push'](_0x4f546d['shift']());}catch(_0x59fb1b){_0x4f546d['push'](_0x4f546d['shift']());}}}(a196_0x2fd4,0xdf123));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x47077e=a196_0x3107,_0x4ad73c=getTemplateBaseUrl();return _0x4ad73c+_0x47077e(0x1c2);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a196_0xdba858(0x1c9));export async function fetchRulesFromCDN(){const _0x3520f8=a196_0xdba858,_0xc60b91=getRulesCdnUrl(),_0x2a8a89=await fetch(_0xc60b91,{'headers':{'Accept':_0x3520f8(0x1d8)}});if(!_0x2a8a89['ok'])throw new Error(_0x3520f8(0x1c1)+_0x2a8a89[_0x3520f8(0x1ca)]+'\x20'+_0x2a8a89[_0x3520f8(0x1d7)]);const _0x2d3cc0=await _0x2a8a89[_0x3520f8(0x1c0)]();if(!_0x2d3cc0[_0x3520f8(0x1d3)]||typeof _0x2d3cc0[_0x3520f8(0x1d3)]!=='string')throw new Error(_0x3520f8(0x1d4));return _0x2d3cc0;}export async function getRulesContent(){const _0x2f8f38=a196_0xdba858;try{const _0x42eb65=await fetchRulesFromCDN();return _0x42eb65[_0x2f8f38(0x1d3)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x413b7d=a196_0xdba858;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x413b7d(0x1c8));throw new Error(_0x413b7d(0x1cc)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x33e542){const _0x111e5b=a196_0xdba858,_0x246ef2=await fetchRulesFromCDN()[_0x111e5b(0x1c3)](()=>null);let _0x32faab;_0x246ef2?(_0x32faab=_0x246ef2['content'],_0x246ef2[_0x111e5b(0x1c4)]&&(_0x32faab=appendUpdateTime(_0x32faab,_0x246ef2[_0x111e5b(0x1c4)]))):_0x32faab=readLocalTemplate();const _0x160564=dirname(_0x33e542);!existsSync(_0x160564)&&mkdirSync(_0x160564,{'recursive':!![]}),writeFileSync(_0x33e542,_0x32faab,'utf-8');}export async function copyRulesToCursor(_0x232c99){const _0x1f11d1=a196_0xdba858,_0x4f2405=join(_0x232c99,_0x1f11d1(0x1c5)),_0x505a5e=join(_0x4f2405,'lovrabet_rules.mdc');if(existsSync(_0x505a5e))return![];return await writeRulesFile(_0x505a5e),!![];}export async function copyRulesToAgentsMd(_0x245e32){const _0x3cffd2=a196_0xdba858,_0x45cf67=join(_0x245e32,_0x3cffd2(0x1d2));if(existsSync(_0x45cf67))return![];return await writeRulesFile(_0x45cf67),!![];}
1
+ const a198_0x4732ab=a198_0x2841;(function(_0x164522,_0x3e0aea){const _0x60d4a5=a198_0x2841,_0x10d38c=_0x164522();while(!![]){try{const _0xcbf853=-parseInt(_0x60d4a5(0x103))/0x1*(-parseInt(_0x60d4a5(0xf3))/0x2)+parseInt(_0x60d4a5(0xf1))/0x3+parseInt(_0x60d4a5(0x100))/0x4*(parseInt(_0x60d4a5(0xfb))/0x5)+parseInt(_0x60d4a5(0xf6))/0x6*(-parseInt(_0x60d4a5(0xea))/0x7)+parseInt(_0x60d4a5(0xf2))/0x8*(parseInt(_0x60d4a5(0xf7))/0x9)+-parseInt(_0x60d4a5(0x102))/0xa+-parseInt(_0x60d4a5(0xe7))/0xb*(parseInt(_0x60d4a5(0xf9))/0xc);if(_0xcbf853===_0x3e0aea)break;else _0x10d38c['push'](_0x10d38c['shift']());}catch(_0x3d2795){_0x10d38c['push'](_0x10d38c['shift']());}}}(a198_0x1397,0x568d3));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{getTemplateBaseUrl}from'../utils/config.js';function a198_0x2841(_0x22bc65,_0x2d75a3){_0x22bc65=_0x22bc65-0xe7;const _0x139734=a198_0x1397();let _0x284196=_0x139734[_0x22bc65];return _0x284196;}import{appendUpdateTime}from'../utils/guides-cdn.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function getRulesCdnUrl(){const _0x11a637=a198_0x2841,_0x2e1034=getTemplateBaseUrl();return _0x2e1034+_0x11a637(0xe8);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a198_0x4732ab(0xfa));export async function fetchRulesFromCDN(){const _0x5d45b3=a198_0x4732ab,_0x35653e=getRulesCdnUrl(),_0x1da19d=await fetch(_0x35653e,{'headers':{'Accept':_0x5d45b3(0xed)}});if(!_0x1da19d['ok'])throw new Error(_0x5d45b3(0xfc)+_0x1da19d[_0x5d45b3(0xec)]+'\x20'+_0x1da19d[_0x5d45b3(0xf4)]);const _0x2a1254=await _0x1da19d[_0x5d45b3(0xfd)]();if(!_0x2a1254[_0x5d45b3(0xf0)]||typeof _0x2a1254[_0x5d45b3(0xf0)]!==_0x5d45b3(0x101))throw new Error(_0x5d45b3(0xf8));return _0x2a1254;}export async function getRulesContent(){const _0x4bbed7=a198_0x4732ab;try{const _0x919310=await fetchRulesFromCDN();return _0x919310[_0x4bbed7(0xf0)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x541470=a198_0x4732ab;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x541470(0xe9));throw new Error(_0x541470(0xfe)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0x5e9a9d){const _0x36717d=a198_0x4732ab,_0x33a6a9=await fetchRulesFromCDN()[_0x36717d(0xff)](()=>null);let _0x1a4619;_0x33a6a9?(_0x1a4619=_0x33a6a9[_0x36717d(0xf0)],_0x33a6a9['lastUpdated']&&(_0x1a4619=appendUpdateTime(_0x1a4619,_0x33a6a9[_0x36717d(0xeb)]))):_0x1a4619=readLocalTemplate();const _0x1a6f80=dirname(_0x5e9a9d);!existsSync(_0x1a6f80)&&mkdirSync(_0x1a6f80,{'recursive':!![]}),writeFileSync(_0x5e9a9d,_0x1a4619,'utf-8');}function a198_0x1397(){const _0x9c0a97=['本地模板文件不存在:\x20','catch','1404764tAesUc','string','847770fnzcfd','1wzpHFD','308rqYuAl','/rules/rules.json','utf-8','7fPToan','lastUpdated','status','application/json','.cursor/rules','agents.md','content','187569YMVLZc','369704tRvYeW','445754FRdHTh','statusText','lovrabet_rules.mdc','341094UseKlq','18ZHFhmm','CDN\x20返回数据格式错误','99804osndxd','../../templates/rules/lovrabet_rules.mdc.tpl','5OJAJCr','CDN\x20请求失败:\x20','json'];a198_0x1397=function(){return _0x9c0a97;};return a198_0x1397();}export async function copyRulesToCursor(_0x4f37c7){const _0x52820c=a198_0x4732ab,_0x2c4b15=join(_0x4f37c7,_0x52820c(0xee)),_0x56d533=join(_0x2c4b15,_0x52820c(0xf5));if(existsSync(_0x56d533))return![];return await writeRulesFile(_0x56d533),!![];}export async function copyRulesToAgentsMd(_0x5bb1a3){const _0x5acac0=a198_0x4732ab,_0x19144e=join(_0x5bb1a3,_0x5acac0(0xef));if(existsSync(_0x19144e))return![];return await writeRulesFile(_0x19144e),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x48e7b3){return new Promise(_0x479da3=>setTimeout(_0x479da3,_0x48e7b3));}
1
+ export function sleep(_0x558055){return new Promise(_0x422d13=>setTimeout(_0x422d13,_0x558055));}
@@ -1 +1 @@
1
- const a198_0x4f830a=a198_0x3944;(function(_0x21a238,_0x51067d){const _0xe248d3=a198_0x3944,_0xde353d=_0x21a238();while(!![]){try{const _0x1930a5=-parseInt(_0xe248d3(0x128))/0x1*(-parseInt(_0xe248d3(0x147))/0x2)+-parseInt(_0xe248d3(0x121))/0x3+parseInt(_0xe248d3(0x15a))/0x4+-parseInt(_0xe248d3(0x11f))/0x5+parseInt(_0xe248d3(0x130))/0x6+-parseInt(_0xe248d3(0x12d))/0x7+parseInt(_0xe248d3(0x15c))/0x8;if(_0x1930a5===_0x51067d)break;else _0xde353d['push'](_0xde353d['shift']());}catch(_0x563830){_0xde353d['push'](_0xde353d['shift']());}}}(a198_0x29e2,0x356cd));import a198_0x1afd8a from'node:fs';function a198_0x3944(_0x13a988,_0x221fe8){_0x13a988=_0x13a988-0x119;const _0x29e2e7=a198_0x29e2();let _0x39448d=_0x29e2e7[_0x13a988];return _0x39448d;}import a198_0x50ed64 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a198_0x4f830a(0x13e)](_0x10935d){const _0x5f0f88=a198_0x4f830a;return String(_0x10935d)[_0x5f0f88(0x12c)](0x2,'0');}static[a198_0x4f830a(0x158)](_0x173b66){const _0x1eb840=a198_0x4f830a,_0x42cea7=_0x173b66[_0x1eb840(0x11c)](),_0x215b4d=this[_0x1eb840(0x13e)](_0x173b66[_0x1eb840(0x14c)]()+0x1),_0x4b5d0d=this[_0x1eb840(0x13e)](_0x173b66[_0x1eb840(0x150)]()),_0x26eca1=this[_0x1eb840(0x13e)](_0x173b66[_0x1eb840(0x142)]()),_0x40e1c0=this[_0x1eb840(0x13e)](_0x173b66[_0x1eb840(0x13a)]()),_0x2dedea=this[_0x1eb840(0x13e)](_0x173b66[_0x1eb840(0x146)]());return{'createdAt':_0x42cea7+'-'+_0x215b4d+'-'+_0x4b5d0d+'\x20'+_0x26eca1+':'+_0x40e1c0+':'+_0x2dedea,'createdDate':_0x42cea7+'-'+_0x215b4d+'-'+_0x4b5d0d,'createdTime':_0x26eca1+':'+_0x40e1c0+':'+_0x2dedea};}static[a198_0x4f830a(0x13f)](_0x55248f){const _0x40b3e5=a198_0x4f830a,_0x21bfd7=_0x55248f[_0x40b3e5(0x153)]('/')['pop']()||_0x55248f;return _0x21bfd7[_0x40b3e5(0x153)]('-')[_0x40b3e5(0x15b)](_0x4eb869=>_0x4eb869[_0x40b3e5(0x132)](0x0)[_0x40b3e5(0x120)]()+_0x4eb869[_0x40b3e5(0x155)](0x1)[_0x40b3e5(0x159)]())[_0x40b3e5(0x134)]('');}static['toDisplayTitle'](_0x5490dd){const _0x18113d=a198_0x4f830a,_0x41d70c=_0x5490dd[_0x18113d(0x153)]('/')[_0x18113d(0x149)]()||_0x5490dd;return _0x41d70c['split']('-')['map'](_0x5caf5a=>_0x5caf5a['charAt'](0x0)[_0x18113d(0x120)]()+_0x5caf5a[_0x18113d(0x155)](0x1)['toLowerCase']())['join']('\x20');}static[a198_0x4f830a(0x14b)](_0x3210b6,_0x765ad4,_0x103865){const _0x5d4362=a198_0x4f830a,_0x4d9257=this[_0x5d4362(0x13f)](_0x765ad4),_0x2e8682=this[_0x5d4362(0x14f)](_0x765ad4),{createdAt:_0x49a4d6,createdDate:_0xeb365d,createdTime:_0x423b53}=this['formatLocalTimestamp'](new Date());let _0x484eb4=_0x3210b6['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x5d4362(0x125)](/\{ComponentName\}/g,_0x4d9257)[_0x5d4362(0x125)](/\{DisplayTitle\}/g,_0x2e8682)[_0x5d4362(0x125)](/\{PageName\}/g,_0x765ad4)[_0x5d4362(0x125)](/\{TemplateName\}/g,_0x103865)[_0x5d4362(0x125)](/\{CreatedAt\}/g,_0x49a4d6)[_0x5d4362(0x125)](/\{CreatedDate\}/g,_0xeb365d)[_0x5d4362(0x125)](/\{CreatedTime\}/g,_0x423b53);return _0x484eb4;}static[a198_0x4f830a(0x140)](_0xeb98ad,_0x3904d1,_0x5981f4,_0x5b6ef7,_0xb9bc4a,_0x132ed4,_0x23d5a0,_0x564c2d){const _0x14929d=a198_0x4f830a,_0x2e4309=new Date(),_0x4114db=_0x2e4309[_0x14929d(0x13c)](),_0x28095e=_0x5981f4[_0x14929d(0x15b)](_0x37d892=>{const _0x2e3782=_0x14929d,_0x2bb271=[_0x2e3782(0x148)+_0x37d892[_0x2e3782(0x136)]+'\x22','tableName:\x20\x22'+_0x37d892[_0x2e3782(0x152)]+'\x22',_0x2e3782(0x12e)+_0x37d892[_0x2e3782(0x144)]+'\x22'];return _0x37d892[_0x2e3782(0x119)]&&_0x2bb271[_0x2e3782(0x14d)](_0x2e3782(0x15f)+_0x37d892[_0x2e3782(0x119)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x2bb271[_0x2e3782(0x134)](',\x20')+_0x2e3782(0x12f);})[_0x14929d(0x134)](''),_0x1b52fe=_0x5b6ef7||_0x5981f4[0x0]?.[_0x14929d(0x119)]||_0x14929d(0x129);let _0x4f755b=_0xeb98ad['replace'](/\{AppCode\}/g,_0x3904d1)[_0x14929d(0x125)](/\{ModelConfigs\}/g,_0x28095e)[_0x14929d(0x125)](/\{ExampleModelName\}/g,_0x1b52fe)['replace'](/\{ApiFileName\}/g,_0xb9bc4a||'api')[_0x14929d(0x125)](/\{ConfigName\}/g,_0x132ed4||_0x14929d(0x11e))['replace'](/\{ClientConfigParam\}/g,_0x23d5a0||'')['replace'](/\{VarPrefix\}/g,_0x564c2d||_0x14929d(0x139))[_0x14929d(0x125)](/\{CreatedAt\}/g,_0x4114db);return _0x4f755b;}static async[a198_0x4f830a(0x13d)](_0xd1453d,_0xe0dd53,_0x270391,_0x4a676c,_0x3b033c=!![]){const _0x3e2119=a198_0x4f830a,_0x13731f=Date[_0x3e2119(0x11b)]();try{_0x3b033c&&logger['info']('template',_0x3e2119(0x11a),{'templatePath':_0xd1453d,'targetPath':_0xe0dd53,'pageName':_0x270391,'templateName':_0x4a676c});await a198_0x1afd8a[_0x3e2119(0x151)][_0x3e2119(0x12b)](_0xe0dd53,{'recursive':!![]}),await this[_0x3e2119(0x14e)](_0xd1453d,_0xe0dd53,_0x270391,_0x4a676c);if(_0x3b033c){const _0x3c8718=Date[_0x3e2119(0x11b)]()-_0x13731f;logger[_0x3e2119(0x15e)](_0x3e2119(0x11d),'模板内容替换完成',_0x3c8718,{'pageName':_0x270391,'templateName':_0x4a676c});}}catch(_0x2c374c){if(_0x3b033c){const _0x41e6fc=Date[_0x3e2119(0x11b)]()-_0x13731f;logger[_0x3e2119(0x137)](_0x3e2119(0x11d),_0x3e2119(0x13b),{'templatePath':_0xd1453d,'targetPath':_0xe0dd53,'pageName':_0x270391,'templateName':_0x4a676c,'error':_0x2c374c instanceof Error?_0x2c374c[_0x3e2119(0x15d)]:String(_0x2c374c),'duration':_0x41e6fc});}throw _0x2c374c;}}static async[a198_0x4f830a(0x14e)](_0xd7c31b,_0x4be155,_0x567cdf,_0x380e23){const _0x4c083b=a198_0x4f830a,_0x584003=await a198_0x1afd8a['promises'][_0x4c083b(0x123)](_0xd7c31b,{'withFileTypes':!![]});for(const _0x40ae78 of _0x584003){const _0x2f1381=a198_0x50ed64[_0x4c083b(0x134)](_0xd7c31b,_0x40ae78[_0x4c083b(0x144)]);let _0x369340=a198_0x50ed64[_0x4c083b(0x134)](_0x4be155,_0x40ae78['name']);_0x40ae78[_0x4c083b(0x144)][_0x4c083b(0x154)](_0x4c083b(0x122))&&(_0x369340=a198_0x50ed64[_0x4c083b(0x134)](_0x4be155,_0x40ae78[_0x4c083b(0x144)][_0x4c083b(0x125)](/\.tpl$/,'')));if(_0x40ae78[_0x4c083b(0x127)]())await a198_0x1afd8a[_0x4c083b(0x151)]['mkdir'](_0x369340,{'recursive':!![]}),await this[_0x4c083b(0x14e)](_0x2f1381,_0x369340,_0x567cdf,_0x380e23);else _0x40ae78[_0x4c083b(0x131)]()&&await this[_0x4c083b(0x12a)](_0x2f1381,_0x369340,_0x567cdf,_0x380e23);}}static async[a198_0x4f830a(0x12a)](_0x132d4b,_0x1f0bf7,_0x2b0675,_0x8d6994){const _0x2953b5=a198_0x4f830a,_0x50dbe9=a198_0x50ed64[_0x2953b5(0x14a)](_0x132d4b)[_0x2953b5(0x159)]();_0x132d4b[_0x2953b5(0x154)](_0x2953b5(0x122))&&(_0x1f0bf7=_0x1f0bf7[_0x2953b5(0x125)](/\.tpl$/,''));const _0x164515=[_0x2953b5(0x156),_0x2953b5(0x124),_0x2953b5(0x143),_0x2953b5(0x135),'.json',_0x2953b5(0x157),_0x2953b5(0x133),'.scss',_0x2953b5(0x122)];if(_0x164515['includes'](_0x50dbe9)||_0x132d4b[_0x2953b5(0x154)](_0x2953b5(0x122))){const _0x26dbab=await a198_0x1afd8a[_0x2953b5(0x151)][_0x2953b5(0x138)](_0x132d4b,_0x2953b5(0x126)),_0x1483ae=this['replaceContent'](_0x26dbab,_0x2b0675,_0x8d6994);await a198_0x1afd8a['promises'][_0x2953b5(0x145)](_0x1f0bf7,_0x1483ae,'utf8');}else await a198_0x1afd8a[_0x2953b5(0x151)][_0x2953b5(0x141)](_0x132d4b,_0x1f0bf7);}}function a198_0x29e2(){const _0x24f468=['开始处理模板内容替换','now','getFullYear','template','default','597020EXdGMB','toUpperCase','919569qxFXqO','.tpl','readdir','.ts','replace','utf8','isDirectory','127215BYwSMm','YourModel','processFile','mkdir','padStart','2103969geCJUO','name:\x20\x22','\x20},','558822SWWSQH','isFile','charAt','.css','join','.js','datasetCode','error','readFile','LOVRABET','getMinutes','模板内容替换失败','toISOString','processTemplate','pad','toComponentName','replaceApiContent','copyFile','getHours','.jsx','name','writeFile','getSeconds','4FJjNIM','datasetCode:\x20\x22','pop','extname','replaceContent','getMonth','push','processDirectory','toDisplayTitle','getDate','promises','tableName','split','endsWith','slice','.tsx','.md','formatLocalTimestamp','toLowerCase','1698424FrZkbM','map','1385200gqNkYS','message','success','alias:\x20\x22','alias'];a198_0x29e2=function(){return _0x24f468;};return a198_0x29e2();}
1
+ const a200_0x117e40=a200_0x1fc2;(function(_0x2f736e,_0x3b5b3a){const _0x5b224d=a200_0x1fc2,_0x1676fc=_0x2f736e();while(!![]){try{const _0x5c13a0=-parseInt(_0x5b224d(0xac))/0x1*(parseInt(_0x5b224d(0xc2))/0x2)+parseInt(_0x5b224d(0xc6))/0x3*(-parseInt(_0x5b224d(0x9e))/0x4)+parseInt(_0x5b224d(0x8f))/0x5+-parseInt(_0x5b224d(0xb2))/0x6+-parseInt(_0x5b224d(0xb8))/0x7*(parseInt(_0x5b224d(0xa1))/0x8)+-parseInt(_0x5b224d(0xbb))/0x9+parseInt(_0x5b224d(0xb0))/0xa;if(_0x5c13a0===_0x3b5b3a)break;else _0x1676fc['push'](_0x1676fc['shift']());}catch(_0x55cebb){_0x1676fc['push'](_0x1676fc['shift']());}}}(a200_0x1b11,0x92770));import a200_0x8f1984 from'node:fs';function a200_0x1fc2(_0x1799f0,_0x349309){_0x1799f0=_0x1799f0-0x83;const _0x1b11b5=a200_0x1b11();let _0x1fc25f=_0x1b11b5[_0x1799f0];return _0x1fc25f;}import a200_0x328432 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static['pad'](_0x3ac0df){const _0x12e631=a200_0x1fc2;return String(_0x3ac0df)[_0x12e631(0xa0)](0x2,'0');}static[a200_0x117e40(0x99)](_0x5efb03){const _0x45df4f=a200_0x117e40,_0x5f1f6e=_0x5efb03[_0x45df4f(0xbd)](),_0x3b5e70=this[_0x45df4f(0x93)](_0x5efb03[_0x45df4f(0xbe)]()+0x1),_0x37a497=this['pad'](_0x5efb03[_0x45df4f(0x83)]()),_0x3b36a0=this[_0x45df4f(0x93)](_0x5efb03['getHours']()),_0x477887=this[_0x45df4f(0x93)](_0x5efb03[_0x45df4f(0xba)]()),_0x41dd0e=this[_0x45df4f(0x93)](_0x5efb03[_0x45df4f(0x8d)]());return{'createdAt':_0x5f1f6e+'-'+_0x3b5e70+'-'+_0x37a497+'\x20'+_0x3b36a0+':'+_0x477887+':'+_0x41dd0e,'createdDate':_0x5f1f6e+'-'+_0x3b5e70+'-'+_0x37a497,'createdTime':_0x3b36a0+':'+_0x477887+':'+_0x41dd0e};}static[a200_0x117e40(0x85)](_0xdc2f97){const _0x14bc55=a200_0x117e40,_0x5ae2b6=_0xdc2f97['split']('/')[_0x14bc55(0xc7)]()||_0xdc2f97;return _0x5ae2b6[_0x14bc55(0x9d)]('-')[_0x14bc55(0xb7)](_0x2eccbe=>_0x2eccbe[_0x14bc55(0xa9)](0x0)[_0x14bc55(0x86)]()+_0x2eccbe[_0x14bc55(0x9b)](0x1)[_0x14bc55(0xab)]())[_0x14bc55(0xae)]('');}static[a200_0x117e40(0xb4)](_0x46b571){const _0x52d4dd=a200_0x117e40,_0x1404a8=_0x46b571[_0x52d4dd(0x9d)]('/')['pop']()||_0x46b571;return _0x1404a8[_0x52d4dd(0x9d)]('-')[_0x52d4dd(0xb7)](_0x5a9ed7=>_0x5a9ed7[_0x52d4dd(0xa9)](0x0)[_0x52d4dd(0x86)]()+_0x5a9ed7[_0x52d4dd(0x9b)](0x1)[_0x52d4dd(0xab)]())['join']('\x20');}static[a200_0x117e40(0x9a)](_0x241566,_0x5ebf3c,_0x175e86){const _0x31555b=a200_0x117e40,_0x139529=this[_0x31555b(0x85)](_0x5ebf3c),_0x155ecc=this[_0x31555b(0xb4)](_0x5ebf3c),{createdAt:_0x2dc046,createdDate:_0x20d535,createdTime:_0x3c905a}=this[_0x31555b(0x99)](new Date());let _0x32d8f4=_0x241566[_0x31555b(0xc4)](/\{CliVersion\}/g,CLI_VERSION)[_0x31555b(0xc4)](/\{ComponentName\}/g,_0x139529)['replace'](/\{DisplayTitle\}/g,_0x155ecc)[_0x31555b(0xc4)](/\{PageName\}/g,_0x5ebf3c)[_0x31555b(0xc4)](/\{TemplateName\}/g,_0x175e86)[_0x31555b(0xc4)](/\{CreatedAt\}/g,_0x2dc046)[_0x31555b(0xc4)](/\{CreatedDate\}/g,_0x20d535)[_0x31555b(0xc4)](/\{CreatedTime\}/g,_0x3c905a);return _0x32d8f4;}static['replaceApiContent'](_0x5a164f,_0x3f76d5,_0x5a79e2,_0x20f434,_0x56a843,_0x45e17b,_0x32377e,_0x59301a){const _0x1c783b=a200_0x117e40,_0x1e716d=new Date(),_0x30ce8d=_0x1e716d[_0x1c783b(0x8e)](),_0x5acde9=_0x5a79e2[_0x1c783b(0xb7)](_0x5a701e=>{const _0x2524f3=_0x1c783b,_0x4a4db4=[_0x2524f3(0xa6)+_0x5a701e['datasetCode']+'\x22',_0x2524f3(0x87)+_0x5a701e[_0x2524f3(0xb9)]+'\x22',_0x2524f3(0xb1)+_0x5a701e['name']+'\x22'];return _0x5a701e[_0x2524f3(0xbf)]&&_0x4a4db4[_0x2524f3(0x8a)](_0x2524f3(0x84)+_0x5a701e[_0x2524f3(0xbf)]+'\x22'),_0x2524f3(0x96)+_0x4a4db4[_0x2524f3(0xae)](',\x20')+'\x20},';})['join'](''),_0x12660b=_0x20f434||_0x5a79e2[0x0]?.[_0x1c783b(0xbf)]||'YourModel';let _0x23f62f=_0x5a164f[_0x1c783b(0xc4)](/\{AppCode\}/g,_0x3f76d5)[_0x1c783b(0xc4)](/\{ModelConfigs\}/g,_0x5acde9)[_0x1c783b(0xc4)](/\{ExampleModelName\}/g,_0x12660b)['replace'](/\{ApiFileName\}/g,_0x56a843||_0x1c783b(0x88))['replace'](/\{ConfigName\}/g,_0x45e17b||_0x1c783b(0xb5))['replace'](/\{ClientConfigParam\}/g,_0x32377e||'')['replace'](/\{VarPrefix\}/g,_0x59301a||_0x1c783b(0xa5))[_0x1c783b(0xc4)](/\{CreatedAt\}/g,_0x30ce8d);return _0x23f62f;}static async[a200_0x117e40(0x92)](_0x1be085,_0x2bee3a,_0x1d2c8d,_0x3e595c,_0x10d172=!![]){const _0x131797=a200_0x117e40,_0x20c9b9=Date[_0x131797(0xc3)]();try{_0x10d172&&logger[_0x131797(0x97)](_0x131797(0xa7),_0x131797(0xb6),{'templatePath':_0x1be085,'targetPath':_0x2bee3a,'pageName':_0x1d2c8d,'templateName':_0x3e595c});await a200_0x8f1984[_0x131797(0xa4)][_0x131797(0xa3)](_0x2bee3a,{'recursive':!![]}),await this[_0x131797(0xa2)](_0x1be085,_0x2bee3a,_0x1d2c8d,_0x3e595c);if(_0x10d172){const _0x212aee=Date[_0x131797(0xc3)]()-_0x20c9b9;logger[_0x131797(0x90)]('template',_0x131797(0x9c),_0x212aee,{'pageName':_0x1d2c8d,'templateName':_0x3e595c});}}catch(_0x286552){if(_0x10d172){const _0x13142d=Date[_0x131797(0xc3)]()-_0x20c9b9;logger['error'](_0x131797(0xa7),_0x131797(0xc0),{'templatePath':_0x1be085,'targetPath':_0x2bee3a,'pageName':_0x1d2c8d,'templateName':_0x3e595c,'error':_0x286552 instanceof Error?_0x286552['message']:String(_0x286552),'duration':_0x13142d});}throw _0x286552;}}static async[a200_0x117e40(0xa2)](_0x56694b,_0x520c3c,_0x486dd0,_0x240c64){const _0x1e1ffa=a200_0x117e40,_0x31839b=await a200_0x8f1984[_0x1e1ffa(0xa4)][_0x1e1ffa(0xbc)](_0x56694b,{'withFileTypes':!![]});for(const _0x3c98d8 of _0x31839b){const _0x473e54=a200_0x328432[_0x1e1ffa(0xae)](_0x56694b,_0x3c98d8['name']);let _0x5ef358=a200_0x328432[_0x1e1ffa(0xae)](_0x520c3c,_0x3c98d8[_0x1e1ffa(0x9f)]);_0x3c98d8[_0x1e1ffa(0x9f)][_0x1e1ffa(0xaf)](_0x1e1ffa(0x95))&&(_0x5ef358=a200_0x328432[_0x1e1ffa(0xae)](_0x520c3c,_0x3c98d8[_0x1e1ffa(0x9f)][_0x1e1ffa(0xc4)](/\.tpl$/,'')));if(_0x3c98d8[_0x1e1ffa(0x89)]())await a200_0x8f1984['promises']['mkdir'](_0x5ef358,{'recursive':!![]}),await this['processDirectory'](_0x473e54,_0x5ef358,_0x486dd0,_0x240c64);else _0x3c98d8[_0x1e1ffa(0xa8)]()&&await this[_0x1e1ffa(0xad)](_0x473e54,_0x5ef358,_0x486dd0,_0x240c64);}}static async[a200_0x117e40(0xad)](_0xfce698,_0x3d9cfd,_0x5b1558,_0x7bdbc1){const _0x1f2168=a200_0x117e40,_0x31bbd2=a200_0x328432[_0x1f2168(0x98)](_0xfce698)[_0x1f2168(0xab)]();_0xfce698[_0x1f2168(0xaf)](_0x1f2168(0x95))&&(_0x3d9cfd=_0x3d9cfd[_0x1f2168(0xc4)](/\.tpl$/,''));const _0x1a5a2b=[_0x1f2168(0x8b),'.ts',_0x1f2168(0xb3),_0x1f2168(0x94),_0x1f2168(0x91),'.md',_0x1f2168(0xc1),'.scss','.tpl'];if(_0x1a5a2b[_0x1f2168(0xaa)](_0x31bbd2)||_0xfce698[_0x1f2168(0xaf)](_0x1f2168(0x95))){const _0x26801d=await a200_0x8f1984[_0x1f2168(0xa4)][_0x1f2168(0xc5)](_0xfce698,_0x1f2168(0x8c)),_0x213860=this[_0x1f2168(0x9a)](_0x26801d,_0x5b1558,_0x7bdbc1);await a200_0x8f1984['promises']['writeFile'](_0x3d9cfd,_0x213860,_0x1f2168(0x8c));}else await a200_0x8f1984[_0x1f2168(0xa4)]['copyFile'](_0xfce698,_0x3d9cfd);}}function a200_0x1b11(){const _0x4d1ec8=['pop','getDate','alias:\x20\x22','toComponentName','toUpperCase','tableName:\x20\x22','api','isDirectory','push','.tsx','utf8','getSeconds','toISOString','1837725SQzbia','success','.json','processTemplate','pad','.js','.tpl','\x0a\x20\x20\x20\x20{\x20','info','extname','formatLocalTimestamp','replaceContent','slice','模板内容替换完成','split','576ZmtDeo','name','padStart','8609168mlExCq','processDirectory','mkdir','promises','LOVRABET','datasetCode:\x20\x22','template','isFile','charAt','includes','toLowerCase','38411fyNBbd','processFile','join','endsWith','31338880dQOkgd','name:\x20\x22','2090256rXezkt','.jsx','toDisplayTitle','default','开始处理模板内容替换','map','7GEhuxT','tableName','getMinutes','3846078dFNMfM','readdir','getFullYear','getMonth','alias','模板内容替换失败','.css','6TWqihN','now','replace','readFile','19467BWPbSU'];a200_0x1b11=function(){return _0x4d1ec8;};return a200_0x1b11();}