@lovrabet/rabetbase-cli 2.3.7 → 2.3.8

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 (245) 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/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.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-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/notification/config-list.js +1 -1
  115. package/lib/commands/notification/index.js +1 -1
  116. package/lib/commands/page/generate-start.js +1 -1
  117. package/lib/commands/page/generate-status.js +1 -1
  118. package/lib/commands/page/index.js +1 -1
  119. package/lib/commands/page/pull.js +1 -1
  120. package/lib/commands/page/push.js +1 -1
  121. package/lib/commands/page/relation-audit.js +1 -1
  122. package/lib/commands/page/shared.js +1 -1
  123. package/lib/commands/page/standard-page-status.js +1 -1
  124. package/lib/commands/page/sync.js +1 -1
  125. package/lib/commands/permit/index.js +1 -1
  126. package/lib/commands/permit/page-get.js +1 -1
  127. package/lib/commands/permit/page-set.js +1 -1
  128. package/lib/commands/permit/role-apis-set.js +1 -1
  129. package/lib/commands/permit/role-menus-set.js +1 -1
  130. package/lib/commands/permit/role-menus.js +1 -1
  131. package/lib/commands/permit/shared.js +1 -1
  132. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  133. package/lib/commands/project/create/format-elapsed.js +1 -1
  134. package/lib/commands/project/create/main.js +1 -1
  135. package/lib/commands/project/create/non-interactive.js +1 -1
  136. package/lib/commands/project/create/project-template-path.js +1 -1
  137. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  138. package/lib/commands/project/create/use-format-code.js +1 -1
  139. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  140. package/lib/commands/project/index.js +1 -1
  141. package/lib/commands/project/init.js +1 -1
  142. package/lib/commands/project/upgrade.js +1 -1
  143. package/lib/commands/registry.js +1 -1
  144. package/lib/commands/role/create.js +1 -1
  145. package/lib/commands/role/delete.js +1 -1
  146. package/lib/commands/role/detail.js +1 -1
  147. package/lib/commands/role/index.js +1 -1
  148. package/lib/commands/role/list.js +1 -1
  149. package/lib/commands/role/shared.js +1 -1
  150. package/lib/commands/role/update.js +1 -1
  151. package/lib/commands/role/user-add.js +1 -1
  152. package/lib/commands/role/user-remove.js +1 -1
  153. package/lib/commands/role/user-resolve.js +1 -1
  154. package/lib/commands/run/index.js +1 -1
  155. package/lib/commands/schema.js +1 -1
  156. package/lib/commands/sql/create.js +1 -1
  157. package/lib/commands/sql/delete.js +1 -1
  158. package/lib/commands/sql/detail.js +1 -1
  159. package/lib/commands/sql/exec.js +1 -1
  160. package/lib/commands/sql/index.js +1 -1
  161. package/lib/commands/sql/list.js +1 -1
  162. package/lib/commands/sql/pull.js +1 -1
  163. package/lib/commands/sql/push.js +1 -1
  164. package/lib/commands/sql/save.js +1 -1
  165. package/lib/commands/sql/shared.js +1 -1
  166. package/lib/commands/sql/status.js +1 -1
  167. package/lib/commands/sql/validate.js +1 -1
  168. package/lib/commands/workspace/add.js +1 -1
  169. package/lib/commands/workspace/index.js +1 -1
  170. package/lib/commands/workspace/remove.js +1 -1
  171. package/lib/config/schema.js +1 -1
  172. package/lib/constant/cdn.js +1 -1
  173. package/lib/constant/cli.js +1 -1
  174. package/lib/constant/defaults.js +1 -1
  175. package/lib/constant/domain.js +1 -1
  176. package/lib/constant/env.js +1 -1
  177. package/lib/constant/output.js +1 -1
  178. package/lib/constant/paths.js +1 -1
  179. package/lib/constant/risk.js +1 -1
  180. package/lib/context/app-resolver.js +1 -1
  181. package/lib/context/auth-resolver.js +1 -1
  182. package/lib/context/config-loader.js +1 -1
  183. package/lib/context.js +1 -1
  184. package/lib/core/alias-resolver.js +1 -1
  185. package/lib/core/api-client.js +1 -1
  186. package/lib/core/bff/config.js +1 -1
  187. package/lib/core/bff/file-system.js +1 -1
  188. package/lib/core/bff/hash.js +1 -1
  189. package/lib/core/bff/lock.js +1 -1
  190. package/lib/core/bff/utils.js +1 -1
  191. package/lib/core/db-resolver.js +1 -1
  192. package/lib/core/page/file-system.js +1 -1
  193. package/lib/core/page/hash.js +1 -1
  194. package/lib/core/page/lock.js +1 -1
  195. package/lib/core/sql-sync/config.js +1 -1
  196. package/lib/core/sql-sync/file-system.js +1 -1
  197. package/lib/core/sql-sync/hash.js +1 -1
  198. package/lib/core/sql-sync/lock.js +1 -1
  199. package/lib/core/sql-sync/utils.js +1 -1
  200. package/lib/core/sql-validator.js +1 -1
  201. package/lib/errors.js +1 -1
  202. package/lib/framework/build-all-flags.js +1 -1
  203. package/lib/framework/flags.js +1 -1
  204. package/lib/framework/help.js +1 -1
  205. package/lib/framework/index.js +1 -1
  206. package/lib/framework/output.js +1 -1
  207. package/lib/framework/response.js +1 -1
  208. package/lib/framework/runner-alias.js +1 -1
  209. package/lib/framework/runner.js +1 -1
  210. package/lib/framework/schema-export.js +1 -1
  211. package/lib/framework/types.js +1 -1
  212. package/lib/generated/build-info.js +1 -1
  213. package/lib/help.js +1 -1
  214. package/lib/skills/main.js +1 -1
  215. package/lib/skills/npx-skills-add.js +1 -1
  216. package/lib/telemetry/cli-command-trace.js +1 -1
  217. package/lib/telemetry/cli-help-trace.js +1 -1
  218. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  219. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  220. package/lib/telemetry/send-cli-trace-log.js +1 -1
  221. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  222. package/lib/utils/ai_config.js +1 -1
  223. package/lib/utils/apply-jq-filter.js +1 -1
  224. package/lib/utils/cdn-config.js +1 -1
  225. package/lib/utils/check-sdk-version.js +1 -1
  226. package/lib/utils/cli-version-check.js +1 -1
  227. package/lib/utils/cli-version-policy.js +1 -1
  228. package/lib/utils/config.js +1 -1
  229. package/lib/utils/copy-directory.js +1 -1
  230. package/lib/utils/entity-with-id.js +1 -1
  231. package/lib/utils/file-utils.js +1 -1
  232. package/lib/utils/guides-cdn.js +1 -1
  233. package/lib/utils/http-client.js +1 -1
  234. package/lib/utils/is-non-interactive.js +1 -1
  235. package/lib/utils/logger.js +1 -1
  236. package/lib/utils/params.js +1 -1
  237. package/lib/utils/platform.js +1 -1
  238. package/lib/utils/rules-cdn.js +1 -1
  239. package/lib/utils/sleep.js +1 -1
  240. package/lib/utils/template-replacer.js +1 -1
  241. package/lib/utils/update-notice.js +1 -1
  242. package/lib/utils/version.js +1 -1
  243. package/lib/utils/with-active-cookie.js +1 -1
  244. package/lib/utils/write-cli-side-channel.js +1 -1
  245. package/package.json +1 -1
@@ -1 +1 @@
1
- function a227_0xa31a(){const _0x466d9c=['465644bPToCY','4252068OfYdvA','5rFoGhq','620256tXwPHi','8JcmfRx','2870CUFjVo','3641NmNCUz','810CNoItP','9747qUcZFn','19644pVTYwi','310gjmKTA','4503359AIySZH'];a227_0xa31a=function(){return _0x466d9c;};return a227_0xa31a();}(function(_0x4928f8,_0x459c70){const _0x31005d=a227_0x5f15,_0x1aa4a5=_0x4928f8();while(!![]){try{const _0x52dc19=-parseInt(_0x31005d(0x87))/0x1+parseInt(_0x31005d(0x8e))/0x2*(parseInt(_0x31005d(0x8c))/0x3)+-parseInt(_0x31005d(0x84))/0x4*(-parseInt(_0x31005d(0x86))/0x5)+-parseInt(_0x31005d(0x85))/0x6+parseInt(_0x31005d(0x83))/0x7*(parseInt(_0x31005d(0x88))/0x8)+-parseInt(_0x31005d(0x8b))/0x9*(parseInt(_0x31005d(0x89))/0xa)+-parseInt(_0x31005d(0x8a))/0xb*(-parseInt(_0x31005d(0x8d))/0xc);if(_0x52dc19===_0x459c70)break;else _0x1aa4a5['push'](_0x1aa4a5['shift']());}catch(_0x501702){_0x1aa4a5['push'](_0x1aa4a5['shift']());}}}(a227_0xa31a,0x6df7a));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a227_0x5f15(_0x1e66a2,_0x56ce4e){_0x1e66a2=_0x1e66a2-0x83;const _0xa31ad2=a227_0xa31a();let _0x5f154f=_0xa31ad2[_0x1e66a2];return _0x5f154f;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0xa26818,_0x55df42){const _0x5b7744=a227_0x6f1d,_0xddeea=_0xa26818();while(!![]){try{const _0xdfe4b9=parseInt(_0x5b7744(0xab))/0x1+parseInt(_0x5b7744(0xad))/0x2+parseInt(_0x5b7744(0xaf))/0x3+parseInt(_0x5b7744(0xa7))/0x4*(parseInt(_0x5b7744(0xb0))/0x5)+-parseInt(_0x5b7744(0xac))/0x6*(-parseInt(_0x5b7744(0xaa))/0x7)+-parseInt(_0x5b7744(0xa9))/0x8+parseInt(_0x5b7744(0xa8))/0x9*(-parseInt(_0x5b7744(0xae))/0xa);if(_0xdfe4b9===_0x55df42)break;else _0xddeea['push'](_0xddeea['shift']());}catch(_0x240186){_0xddeea['push'](_0xddeea['shift']());}}}(a227_0x3787,0xc25e3));function a227_0x3787(){const _0x2eff30=['10208151XfITAS','5686528Vzyxra','105xCeHUm','152277YQjZFx','50088shsGGZ','1017512XJFhID','10bhldFa','2782263yVoiik','40PqLZZP','463756zrZDUN'];a227_0x3787=function(){return _0x2eff30;};return a227_0x3787();}function a227_0x6f1d(_0xceff1,_0x51ce92){_0xceff1=_0xceff1-0xa7;const _0x3787e8=a227_0x3787();let _0x6f1de3=_0x3787e8[_0xceff1];return _0x6f1de3;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- function a228_0x42c3(){const _0xf03b6a=['3zTDxGu','1936828vPjliw','application/json','now','2199445gbVfvc','/config/index.json','node','sdk','/config.json','1861636KkjHWv','6971790zrwidx','8RLVIQW','stableVersion','733747pKjCFV','1996548lifOIp','144KCPAtG','json','cli','670040bbpQzY'];a228_0x42c3=function(){return _0xf03b6a;};return a228_0x42c3();}(function(_0x115350,_0x509ea9){const _0x206ede=a228_0xdaea,_0x481218=_0x115350();while(!![]){try{const _0x5af383=-parseInt(_0x206ede(0x144))/0x1+parseInt(_0x206ede(0x140))/0x2+parseInt(_0x206ede(0x14a))/0x3*(parseInt(_0x206ede(0x14b))/0x4)+-parseInt(_0x206ede(0x13b))/0x5+parseInt(_0x206ede(0x145))/0x6+-parseInt(_0x206ede(0x141))/0x7*(-parseInt(_0x206ede(0x142))/0x8)+parseInt(_0x206ede(0x146))/0x9*(-parseInt(_0x206ede(0x149))/0xa);if(_0x5af383===_0x509ea9)break;else _0x481218['push'](_0x481218['shift']());}catch(_0xd64875){_0x481218['push'](_0x481218['shift']());}}}(a228_0x42c3,0x79985));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2e5acd=a228_0xdaea,_0x4fd676=getTemplateBaseUrl(),_0x19da4a=[_0x4fd676+_0x2e5acd(0x13f),_0x4fd676+_0x2e5acd(0x13c)];for(const _0x19a8c8 of _0x19da4a){try{const _0x5da65f=await fetch(_0x19a8c8,{'headers':{'Accept':_0x2e5acd(0x139)}});if(!_0x5da65f['ok'])continue;const _0x482ff5=await _0x5da65f[_0x2e5acd(0x147)]();if(!_0x482ff5[_0x2e5acd(0x148)]?.[_0x2e5acd(0x143)]||!_0x482ff5[_0x2e5acd(0x13e)]?.[_0x2e5acd(0x13d)]?.[_0x2e5acd(0x143)])continue;return _0x482ff5;}catch{}}return null;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];function a228_0xdaea(_0x55a63c,_0x566e86){_0x55a63c=_0x55a63c-0x139;const _0x42c364=a228_0x42c3();let _0xdaea37=_0x42c364[_0x55a63c];return _0xdaea37;}export async function getCdnConfig(){const _0xce01f1=a228_0xdaea,_0x73559b=Date[_0xce01f1(0x13a)]();if(hasCachedConfig){const _0x212c0e=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x73559b-cacheTime<_0x212c0e)return cachedConfig;}const _0x1f1f03=await fetchCdnConfig();return cachedConfig=_0x1f1f03,cacheTime=_0x73559b,hasCachedConfig=!![],_0x1f1f03;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x58cef1,_0x4ce7af){const _0x443c9d=a228_0x30ac,_0x34c0fa=_0x58cef1();while(!![]){try{const _0x4a346d=parseInt(_0x443c9d(0x183))/0x1*(-parseInt(_0x443c9d(0x182))/0x2)+-parseInt(_0x443c9d(0x190))/0x3*(-parseInt(_0x443c9d(0x185))/0x4)+-parseInt(_0x443c9d(0x189))/0x5*(-parseInt(_0x443c9d(0x18e))/0x6)+parseInt(_0x443c9d(0x192))/0x7*(-parseInt(_0x443c9d(0x191))/0x8)+-parseInt(_0x443c9d(0x188))/0x9+-parseInt(_0x443c9d(0x186))/0xa*(-parseInt(_0x443c9d(0x18d))/0xb)+parseInt(_0x443c9d(0x187))/0xc;if(_0x4a346d===_0x4ce7af)break;else _0x34c0fa['push'](_0x34c0fa['shift']());}catch(_0x2078ca){_0x34c0fa['push'](_0x34c0fa['shift']());}}}(a228_0x4543,0xdd7e1));function a228_0x30ac(_0x56f5bd,_0x1a040b){_0x56f5bd=_0x56f5bd-0x182;const _0x454383=a228_0x4543();let _0x30ac99=_0x454383[_0x56f5bd];return _0x30ac99;}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x719001=a228_0x30ac,_0x6fbc71=getTemplateBaseUrl(),_0x4dabe4=[_0x6fbc71+_0x719001(0x18a),_0x6fbc71+_0x719001(0x184)];for(const _0x278c46 of _0x4dabe4){try{const _0x50a5d6=await fetch(_0x278c46,{'headers':{'Accept':_0x719001(0x18f)}});if(!_0x50a5d6['ok'])continue;const _0x2c3bb8=await _0x50a5d6[_0x719001(0x18c)]();if(!_0x2c3bb8['cli']?.['stableVersion']||!_0x2c3bb8['sdk']?.['node']?.[_0x719001(0x18b)])continue;return _0x2c3bb8;}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 _0xdc35be=Date['now']();if(hasCachedConfig){const _0x558dbe=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xdc35be-cacheTime<_0x558dbe)return cachedConfig;}const _0x79e086=await fetchCdnConfig();return cachedConfig=_0x79e086,cacheTime=_0xdc35be,hasCachedConfig=!![],_0x79e086;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a228_0x4543(){const _0x1dd29f=['stableVersion','json','11gPkqXM','3102366vuyEmy','application/json','15zvYVtp','8SXUNoV','11573961krPKxj','49684UknFFM','43kroqIe','/config/index.json','873636eCjqTv','9354910slIlFV','18719352ctFEbA','4281129SywNAf','5SBGgmu','/config.json'];a228_0x4543=function(){return _0x1dd29f;};return a228_0x4543();}
@@ -1 +1 @@
1
- (function(_0x29569f,_0x42ed9e){const _0xb9728a=a229_0x5d43,_0x5ef3d9=_0x29569f();while(!![]){try{const _0x46ce2a=-parseInt(_0xb9728a(0xe9))/0x1+parseInt(_0xb9728a(0xf1))/0x2+parseInt(_0xb9728a(0xe3))/0x3+-parseInt(_0xb9728a(0xec))/0x4+parseInt(_0xb9728a(0xe2))/0x5*(-parseInt(_0xb9728a(0xe0))/0x6)+-parseInt(_0xb9728a(0xeb))/0x7*(parseInt(_0xb9728a(0xf5))/0x8)+parseInt(_0xb9728a(0xfb))/0x9;if(_0x46ce2a===_0x42ed9e)break;else _0x5ef3d9['push'](_0x5ef3d9['shift']());}catch(_0x2cd868){_0x5ef3d9['push'](_0x5ef3d9['shift']());}}}(a229_0x12da,0xbf90e));import a229_0xdf5e5e from'node:fs';import a229_0x1668d5 from'node:path';import a229_0x11fa6d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x47f15c){const _0xd9957d=a229_0x5d43,_0xd522da=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0xd522da[_0xd9957d(0xff)](_0x1b22ed=>_0x1b22ed['test'](_0x47f15c));}function a229_0x5d43(_0x5661a8,_0x19de9b){_0x5661a8=_0x5661a8-0xdd;const _0x12daaa=a229_0x12da();let _0x5d437b=_0x12daaa[_0x5661a8];return _0x5d437b;}function getInstalledVersion(_0x5597c6,_0x47c751){const _0x5df1fa=a229_0x5d43;try{const _0x55221c=a229_0x1668d5[_0x5df1fa(0xe1)](_0x5597c6,_0x5df1fa(0xdf),_0x47c751,_0x5df1fa(0xfc));if(a229_0xdf5e5e[_0x5df1fa(0xe5)](_0x55221c)){const _0x18e5cc=JSON['parse'](a229_0xdf5e5e['readFileSync'](_0x55221c,_0x5df1fa(0xde)));return _0x18e5cc[_0x5df1fa(0x101)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x21b4d4=a229_0x5d43;try{const _0x33cc34=await getCdnConfig();return _0x33cc34?.[_0x21b4d4(0x102)]?.[_0x21b4d4(0xe6)]?.[_0x21b4d4(0xf4)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x28c261=a229_0x5d43;try{const _0xe4bed0=await getCdnConfig();return _0xe4bed0?.[_0x28c261(0x102)]?.[_0x28c261(0xe6)]?.[_0x28c261(0xea)]||_0x28c261(0x103);}catch{return _0x28c261(0x103);}}export async function checkSdkVersion(_0x3e42a5){const _0x4177bc=a229_0x5d43,_0x574dc6=a229_0x1668d5[_0x4177bc(0xe1)](_0x3e42a5,'package.json'),[_0x27e8f4,_0x5441c2]=await Promise[_0x4177bc(0xfd)]([getSdkStableVersion(),getSdkPackageName()]),_0x496e53=_0x27e8f4||FALLBACK_MIN_SDK_VERSION;if(!a229_0xdf5e5e[_0x4177bc(0xe5)](_0x574dc6))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};try{const _0x1530b1=JSON[_0x4177bc(0xee)](a229_0xdf5e5e[_0x4177bc(0xf3)](_0x574dc6,_0x4177bc(0xfa))),_0x2c25c1=_0x1530b1['dependencies']||{},_0x2319dc=_0x1530b1['devDependencies']||{},_0x4965a3=_0x2c25c1[_0x5441c2]||_0x2319dc[_0x5441c2];if(!_0x4965a3)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};let _0x169f8c=getInstalledVersion(_0x3e42a5,_0x5441c2);!_0x169f8c&&(_0x169f8c=_0x4965a3);if(isNonNumericVersion(_0x4965a3))return{'installed':!![],'version':_0x169f8c,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};const _0x5ca9a5=a229_0x11fa6d[_0x4177bc(0xdd)](_0x169f8c),_0x269b67=a229_0x11fa6d[_0x4177bc(0xdd)](_0x496e53),_0x33be79=_0x5ca9a5&&_0x269b67?a229_0x11fa6d['lt'](_0x5ca9a5,_0x269b67):![];return{'installed':!![],'version':_0x169f8c,'needsUpgrade':_0x33be79,'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x496e53,'packageName':_0x5441c2,'stableVersion':_0x27e8f4};}}export function checkSdkVersionSync(_0x2d1f78){const _0x146500=a229_0x5d43,_0x1e14d2=a229_0x1668d5[_0x146500(0xe1)](_0x2d1f78,_0x146500(0xfc)),_0x1ec4fc='@lovrabet/sdk';if(!a229_0xdf5e5e[_0x146500(0xe5)](_0x1e14d2))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};try{const _0x393bf2=JSON[_0x146500(0xee)](a229_0xdf5e5e[_0x146500(0xf3)](_0x1e14d2,_0x146500(0xfa))),_0x452107=_0x393bf2[_0x146500(0xe7)]||{},_0x23c47d=_0x393bf2['devDependencies']||{},_0x4ac560=_0x452107[_0x1ec4fc]||_0x23c47d[_0x1ec4fc];if(!_0x4ac560)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};let _0x3f2c07=getInstalledVersion(_0x2d1f78,_0x1ec4fc);!_0x3f2c07&&(_0x3f2c07=_0x4ac560);if(isNonNumericVersion(_0x4ac560))return{'installed':!![],'version':_0x3f2c07,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};const _0x459caa=a229_0x11fa6d[_0x146500(0xdd)](_0x3f2c07),_0x1fb5d0=_0x459caa?a229_0x11fa6d['lt'](_0x459caa,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x3f2c07,'needsUpgrade':_0x1fb5d0,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1ec4fc,'stableVersion':null};}}function a229_0x12da(){const _0x456156=['utf-8','node_modules','1756110hgAxiX','join','10ItUmgS','1052706YsRUDi','latest','existsSync','node','dependencies','npm\x20install\x20','1129178sGnarM','packageName','5404eOorTf','3186740PPfbIc','\x1b[1m','parse','\x1b[0m','needsUpgrade','2317560cgsGlv','\x20\x20\x20Stable\x20version:\x20','readFileSync','stableVersion','4016JNHrVL','\x20\x20\x20Upgrade\x20command:\x20','\x1b[33m','minVersion','↪\x20SDK\x20update\x20available','utf8','19563741thvDCv','package.json','all','log','some','\x20\x20\x20Current\x20version:\x20','version','sdk','@lovrabet/sdk','coerce'];a229_0x12da=function(){return _0x456156;};return a229_0x12da();}export function printSdkUpgradeWarning(_0x464bb5){const _0x961bc4=a229_0x5d43;if(!_0x464bb5[_0x961bc4(0xf0)])return;const _0x137e66=_0x961bc4(0xf7),_0x5712cf=_0x961bc4(0xef),_0x4f5c5d=_0x961bc4(0xed),_0x20b2ec=_0x464bb5[_0x961bc4(0xea)]||'@lovrabet/sdk',_0x49b5fd=_0x464bb5[_0x961bc4(0xf4)]||_0x464bb5[_0x961bc4(0xf8)],_0x327b29=_0x961bc4(0xe8)+_0x20b2ec+'@'+(_0x49b5fd||_0x961bc4(0xe4));console['log'](),console[_0x961bc4(0xfe)](''+_0x137e66+_0x4f5c5d+_0x961bc4(0xf9)+_0x5712cf),console[_0x961bc4(0xfe)](_0x137e66+_0x961bc4(0x100)+_0x20b2ec+'@'+_0x464bb5[_0x961bc4(0x101)]+_0x5712cf),console[_0x961bc4(0xfe)](_0x137e66+_0x961bc4(0xf2)+_0x49b5fd+_0x5712cf),console[_0x961bc4(0xfe)](_0x137e66+_0x961bc4(0xf6)+_0x327b29+_0x5712cf),console[_0x961bc4(0xfe)]();}
1
+ const a229_0x516ee1=a229_0x20d2;(function(_0x33d520,_0xa8043e){const _0x222fc2=a229_0x20d2,_0x21568f=_0x33d520();while(!![]){try{const _0x3450c8=-parseInt(_0x222fc2(0xd3))/0x1*(parseInt(_0x222fc2(0xc1))/0x2)+-parseInt(_0x222fc2(0xbf))/0x3*(parseInt(_0x222fc2(0xca))/0x4)+-parseInt(_0x222fc2(0xb9))/0x5+parseInt(_0x222fc2(0xc9))/0x6+parseInt(_0x222fc2(0xc0))/0x7*(-parseInt(_0x222fc2(0xc6))/0x8)+-parseInt(_0x222fc2(0xb8))/0x9+parseInt(_0x222fc2(0xce))/0xa;if(_0x3450c8===_0xa8043e)break;else _0x21568f['push'](_0x21568f['shift']());}catch(_0x7e1a36){_0x21568f['push'](_0x21568f['shift']());}}}(a229_0x59fe,0x36ca7));import a229_0x315299 from'node:fs';import a229_0x4c2dbe from'node:path';import a229_0x1be680 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a229_0x59fe(){const _0x56627f=['all','log','coerce','packageName','npm\x20install\x20','3471507dgIzLu','2099445PMBOeA','needsUpgrade','utf8','\x1b[1m','1.2.0','readFileSync','6zMmxlO','1033466vUAznW','215812tducQy','\x1b[33m','package.json','existsSync','stableVersion','8OMqMKV','dependencies','↪\x20SDK\x20update\x20available','2054952wwQYet','119984ZLidcQ','devDependencies','node','parse','12188910FpMDVw','\x20\x20\x20Stable\x20version:\x20','@lovrabet/sdk','\x20\x20\x20Upgrade\x20command:\x20','version','3FVrkZF','minVersion','sdk','join','test'];a229_0x59fe=function(){return _0x56627f;};return a229_0x59fe();}const FALLBACK_MIN_SDK_VERSION=a229_0x516ee1(0xbd);function isNonNumericVersion(_0x2309ea){const _0x27dc20=a229_0x516ee1,_0x5b5b18=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5b5b18['some'](_0x1008b4=>_0x1008b4[_0x27dc20(0xb2)](_0x2309ea));}function getInstalledVersion(_0x3c3998,_0x28b3a2){const _0x309f4b=a229_0x516ee1;try{const _0x533b29=a229_0x4c2dbe[_0x309f4b(0xb1)](_0x3c3998,'node_modules',_0x28b3a2,'package.json');if(a229_0x315299[_0x309f4b(0xc4)](_0x533b29)){const _0x2203dc=JSON[_0x309f4b(0xcd)](a229_0x315299[_0x309f4b(0xbe)](_0x533b29,'utf-8'));return _0x2203dc['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x6c335e=a229_0x516ee1;try{const _0x9c4678=await getCdnConfig();return _0x9c4678?.[_0x6c335e(0xb0)]?.[_0x6c335e(0xcc)]?.[_0x6c335e(0xc5)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x18bd0a=a229_0x516ee1;try{const _0x1a4c52=await getCdnConfig();return _0x1a4c52?.[_0x18bd0a(0xb0)]?.['node']?.['packageName']||'@lovrabet/sdk';}catch{return _0x18bd0a(0xd0);}}export async function checkSdkVersion(_0x140f39){const _0x273c0f=a229_0x516ee1,_0x5d63af=a229_0x4c2dbe[_0x273c0f(0xb1)](_0x140f39,_0x273c0f(0xc3)),[_0x121194,_0x5066ef]=await Promise[_0x273c0f(0xb3)]([getSdkStableVersion(),getSdkPackageName()]),_0x1559d4=_0x121194||FALLBACK_MIN_SDK_VERSION;if(!a229_0x315299[_0x273c0f(0xc4)](_0x5d63af))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1559d4,'packageName':_0x5066ef,'stableVersion':_0x121194};try{const _0x2b4ee4=JSON[_0x273c0f(0xcd)](a229_0x315299[_0x273c0f(0xbe)](_0x5d63af,'utf8')),_0x404e79=_0x2b4ee4[_0x273c0f(0xc7)]||{},_0x598f87=_0x2b4ee4[_0x273c0f(0xcb)]||{},_0x3bc690=_0x404e79[_0x5066ef]||_0x598f87[_0x5066ef];if(!_0x3bc690)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1559d4,'packageName':_0x5066ef,'stableVersion':_0x121194};let _0x4432f4=getInstalledVersion(_0x140f39,_0x5066ef);!_0x4432f4&&(_0x4432f4=_0x3bc690);if(isNonNumericVersion(_0x3bc690))return{'installed':!![],'version':_0x4432f4,'needsUpgrade':![],'minVersion':_0x1559d4,'packageName':_0x5066ef,'stableVersion':_0x121194};const _0x5baae6=a229_0x1be680[_0x273c0f(0xb5)](_0x4432f4),_0x1d6129=a229_0x1be680[_0x273c0f(0xb5)](_0x1559d4),_0x41ec2c=_0x5baae6&&_0x1d6129?a229_0x1be680['lt'](_0x5baae6,_0x1d6129):![];return{'installed':!![],'version':_0x4432f4,'needsUpgrade':_0x41ec2c,'minVersion':_0x1559d4,'packageName':_0x5066ef,'stableVersion':_0x121194};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x1559d4,'packageName':_0x5066ef,'stableVersion':_0x121194};}}function a229_0x20d2(_0x350482,_0x3100ac){_0x350482=_0x350482-0xaf;const _0x59fef6=a229_0x59fe();let _0x20d237=_0x59fef6[_0x350482];return _0x20d237;}export function checkSdkVersionSync(_0x37815d){const _0x4bb739=a229_0x516ee1,_0x453b73=a229_0x4c2dbe['join'](_0x37815d,_0x4bb739(0xc3)),_0x3c7bde=_0x4bb739(0xd0);if(!a229_0x315299[_0x4bb739(0xc4)](_0x453b73))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3c7bde,'stableVersion':null};try{const _0xacfa00=JSON[_0x4bb739(0xcd)](a229_0x315299['readFileSync'](_0x453b73,_0x4bb739(0xbb))),_0x49629e=_0xacfa00[_0x4bb739(0xc7)]||{},_0x1764a6=_0xacfa00[_0x4bb739(0xcb)]||{},_0xe3fb43=_0x49629e[_0x3c7bde]||_0x1764a6[_0x3c7bde];if(!_0xe3fb43)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3c7bde,'stableVersion':null};let _0x238bff=getInstalledVersion(_0x37815d,_0x3c7bde);!_0x238bff&&(_0x238bff=_0xe3fb43);if(isNonNumericVersion(_0xe3fb43))return{'installed':!![],'version':_0x238bff,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3c7bde,'stableVersion':null};const _0x355c8a=a229_0x1be680[_0x4bb739(0xb5)](_0x238bff),_0x16dfea=_0x355c8a?a229_0x1be680['lt'](_0x355c8a,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x238bff,'needsUpgrade':_0x16dfea,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3c7bde,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3c7bde,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x407e42){const _0x3b8f9d=a229_0x516ee1;if(!_0x407e42[_0x3b8f9d(0xba)])return;const _0x250ebc=_0x3b8f9d(0xc2),_0x5c8ed1='\x1b[0m',_0x107521=_0x3b8f9d(0xbc),_0x2233f3=_0x407e42[_0x3b8f9d(0xb6)]||_0x3b8f9d(0xd0),_0x293c60=_0x407e42[_0x3b8f9d(0xc5)]||_0x407e42[_0x3b8f9d(0xaf)],_0x17d396=_0x3b8f9d(0xb7)+_0x2233f3+'@'+(_0x293c60||'latest');console['log'](),console['log'](''+_0x250ebc+_0x107521+_0x3b8f9d(0xc8)+_0x5c8ed1),console[_0x3b8f9d(0xb4)](_0x250ebc+'\x20\x20\x20Current\x20version:\x20'+_0x2233f3+'@'+_0x407e42[_0x3b8f9d(0xd2)]+_0x5c8ed1),console[_0x3b8f9d(0xb4)](_0x250ebc+_0x3b8f9d(0xcf)+_0x293c60+_0x5c8ed1),console[_0x3b8f9d(0xb4)](_0x250ebc+_0x3b8f9d(0xd1)+_0x17d396+_0x5c8ed1),console['log']();}
@@ -1 +1 @@
1
- function a230_0x4be4(){const _0x2de996=['stableVersion','19077SLpWym','\x20\x20\x20Recommended\x20stable:\x20','npm\x20install\x20-g\x20','\x20\x20\x20Minimum\x20supported:\x20','\x1b[31m','parse','validation','1976508uKmXIL','upgradeMessage','↪\x20New\x20version\x20available','../..','1.0.0','log','version','coerce','utf-8','152GvxYif','42745FsIdaa','\x20\x20\x20Current\x20CLI\x20version:\x20','Minimum\x20supported:\x20','Upgrade\x20command:\x20','12827691aeYddJ','\x1b[1m','4492UxXpzi','join','currentVersion','minimumVersionMessage','filter','\x20\x20\x20Stable\x20version:\x20','10ZebRBB','\x20\x20\x20Upgrade\x20command:\x20','belowMinimum','package.json','\x20\x20\x20','1946160kdsTOr','\x1b[33m','minimumVersion','1720432uPzrku','1285kqkRDI'];a230_0x4be4=function(){return _0x2de996;};return a230_0x4be4();}(function(_0x3e6305,_0x5befc4){const _0x87f883=a230_0x5e59,_0x580a7a=_0x3e6305();while(!![]){try{const _0x535a77=-parseInt(_0x87f883(0x1b8))/0x1+parseInt(_0x87f883(0x1b7))/0x2*(-parseInt(_0x87f883(0x1cf))/0x3)+-parseInt(_0x87f883(0x1be))/0x4*(parseInt(_0x87f883(0x1cd))/0x5)+-parseInt(_0x87f883(0x1d6))/0x6+parseInt(_0x87f883(0x1cc))/0x7+-parseInt(_0x87f883(0x1c9))/0x8+parseInt(_0x87f883(0x1bc))/0x9*(parseInt(_0x87f883(0x1c4))/0xa);if(_0x535a77===_0x5befc4)break;else _0x580a7a['push'](_0x580a7a['shift']());}catch(_0x129e44){_0x580a7a['push'](_0x580a7a['shift']());}}}(a230_0x4be4,0x45463));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a230_0x204c33 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x421157){const _0x230b59=a230_0x5e59,_0x1307cc=_0x421157[_0x230b59(0x1ce)]||'latest';return _0x230b59(0x1d1)+NPM_PACKAGE_NAME+'@'+_0x1307cc;}function getCurrentCliVersion(){const _0x70356e=a230_0x5e59;try{const _0x41944=fileURLToPath(import.meta.url),_0x7551c2=resolve(dirname(_0x41944),_0x70356e(0x1d9)),_0x40d216=resolve(_0x7551c2,_0x70356e(0x1c7)),_0xf82d5e=JSON[_0x70356e(0x1d4)](readFileSync(_0x40d216,_0x70356e(0x1b6)));return _0xf82d5e[_0x70356e(0x1dc)]||_0x70356e(0x1da);}catch{return _0x70356e(0x1da);}}export async function checkCliVersion(){const _0x139bac=a230_0x5e59,_0x4c7a5f=getCurrentCliVersion(),_0x7713ce=await getCliVersionPolicy(),_0x57de12=_0x7713ce?.[_0x139bac(0x1ce)]||null,_0x383f31=_0x7713ce?.['minimumVersion']||null;let _0x31eb31=![],_0x324be7=![];const _0x240315=a230_0x204c33['coerce'](_0x4c7a5f);if(_0x240315&&_0x57de12)try{const _0x18f25c=a230_0x204c33[_0x139bac(0x1dd)](_0x57de12);if(_0x18f25c)_0x31eb31=a230_0x204c33['lt'](_0x240315,_0x18f25c);}catch{}if(_0x240315&&_0x383f31)try{const _0x5e41c7=a230_0x204c33[_0x139bac(0x1dd)](_0x383f31);if(_0x5e41c7)_0x324be7=a230_0x204c33['lt'](_0x240315,_0x5e41c7);}catch{}return _0x324be7&&(_0x31eb31=!![]),{'currentVersion':_0x4c7a5f,'stableVersion':_0x57de12,'minimumVersion':_0x383f31,'needsUpgrade':_0x31eb31,'belowMinimum':_0x324be7,'isPreRelease':![],'upgradeMessage':_0x7713ce?.[_0x139bac(0x1d7)],'minimumVersionMessage':_0x7713ce?.[_0x139bac(0x1c1)]};}export function printCliUpgradeWarning(_0x5c2912){const _0x3e0a2c=a230_0x5e59;if(!_0x5c2912['needsUpgrade']&&!_0x5c2912[_0x3e0a2c(0x1c6)])return;const _0x6f0211=_0x3e0a2c(0x1d3),_0x1872c2=_0x3e0a2c(0x1ca),_0x42a364='\x1b[0m',_0x27f5b2=_0x3e0a2c(0x1bd),_0x1ce091=getCliUpgradeCommand(_0x5c2912);console[_0x3e0a2c(0x1db)](),_0x5c2912[_0x3e0a2c(0x1c6)]?(console[_0x3e0a2c(0x1db)](''+_0x6f0211+_0x27f5b2+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x42a364),console[_0x3e0a2c(0x1db)](_0x6f0211+_0x3e0a2c(0x1b9)+_0x5c2912[_0x3e0a2c(0x1c0)]+_0x42a364),_0x5c2912[_0x3e0a2c(0x1cb)]&&console[_0x3e0a2c(0x1db)](_0x6f0211+_0x3e0a2c(0x1d2)+_0x5c2912['minimumVersion']+_0x42a364),_0x5c2912['stableVersion']&&_0x5c2912['stableVersion']!==_0x5c2912[_0x3e0a2c(0x1cb)]&&console['log'](_0x6f0211+_0x3e0a2c(0x1d0)+_0x5c2912[_0x3e0a2c(0x1ce)]+_0x42a364),_0x5c2912[_0x3e0a2c(0x1c1)]&&console[_0x3e0a2c(0x1db)](_0x6f0211+'\x20\x20\x20'+_0x5c2912[_0x3e0a2c(0x1c1)]+_0x42a364),console['log'](_0x6f0211+_0x3e0a2c(0x1c5)+_0x1ce091+_0x42a364)):(console[_0x3e0a2c(0x1db)](''+_0x1872c2+_0x27f5b2+_0x3e0a2c(0x1d8)+_0x42a364),console[_0x3e0a2c(0x1db)](_0x1872c2+_0x3e0a2c(0x1b9)+_0x5c2912[_0x3e0a2c(0x1c0)]+_0x42a364),console['log'](_0x1872c2+_0x3e0a2c(0x1c3)+_0x5c2912[_0x3e0a2c(0x1ce)]+_0x42a364),_0x5c2912[_0x3e0a2c(0x1d7)]&&console[_0x3e0a2c(0x1db)](_0x1872c2+_0x3e0a2c(0x1c8)+_0x5c2912['upgradeMessage']+_0x42a364),console[_0x3e0a2c(0x1db)](_0x1872c2+_0x3e0a2c(0x1c5)+_0x1ce091+_0x42a364)),console['log']();}function a230_0x5e59(_0x1c0b42,_0x1d8a8c){_0x1c0b42=_0x1c0b42-0x1b6;const _0x4be458=a230_0x4be4();let _0x5e5984=_0x4be458[_0x1c0b42];return _0x5e5984;}export function assertCliVersionSupported(_0x12df76){const _0x4a07bc=a230_0x5e59;if(!_0x12df76[_0x4a07bc(0x1c6)])return;const _0x4b88a9=[_0x12df76[_0x4a07bc(0x1c1)],'Current\x20version:\x20'+_0x12df76['currentVersion'],_0x12df76[_0x4a07bc(0x1cb)]?_0x4a07bc(0x1ba)+_0x12df76['minimumVersion']:null,_0x4a07bc(0x1bb)+getCliUpgradeCommand(_0x12df76)][_0x4a07bc(0x1c2)](Boolean)[_0x4a07bc(0x1bf)]('\x0a');throw CliErrors[_0x4a07bc(0x1d5)]('Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.',_0x4b88a9);}
1
+ (function(_0xff8a0d,_0x557378){const _0x1018ff=a230_0x4759,_0x1c15b8=_0xff8a0d();while(!![]){try{const _0x494cb4=-parseInt(_0x1018ff(0x14a))/0x1+parseInt(_0x1018ff(0x159))/0x2+parseInt(_0x1018ff(0x160))/0x3*(parseInt(_0x1018ff(0x15b))/0x4)+parseInt(_0x1018ff(0x151))/0x5+-parseInt(_0x1018ff(0x148))/0x6+-parseInt(_0x1018ff(0x156))/0x7+parseInt(_0x1018ff(0x147))/0x8;if(_0x494cb4===_0x557378)break;else _0x1c15b8['push'](_0x1c15b8['shift']());}catch(_0x4b6299){_0x1c15b8['push'](_0x1c15b8['shift']());}}}(a230_0x2bf3,0xf33cf));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a230_0x4759(_0x31efa6,_0x55eabd){_0x31efa6=_0x31efa6-0x147;const _0x2bf35c=a230_0x2bf3();let _0x4759ce=_0x2bf35c[_0x31efa6];return _0x4759ce;}import a230_0x278c6b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a230_0x2bf3(){const _0x510d9f=['stableVersion','log','\x1b[33m','needsUpgrade','13359087GfPanV','1.0.0','↪\x20New\x20version\x20available','1382640ARTcrH','../..','515828dRvuNt','\x20\x20\x20Current\x20CLI\x20version:\x20','\x20\x20\x20Minimum\x20supported:\x20','belowMinimum','\x1b[0m','15BZJPNO','version','npm\x20install\x20-g\x20','filter','parse','minimumVersion','\x20\x20\x20Upgrade\x20command:\x20','\x1b[31m','\x20\x20\x20Recommended\x20stable:\x20','coerce','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Minimum\x20supported:\x20','23233368UaMbdK','5987352WuoTkk','validation','1107893hBVhhm','upgradeMessage','\x20\x20\x20','currentVersion','\x1b[1m','latest','minimumVersionMessage','3851265NaSjjW'];a230_0x2bf3=function(){return _0x510d9f;};return a230_0x2bf3();}export function getCliUpgradeCommand(_0x1efad0){const _0x38f77e=a230_0x4759,_0xdb1bed=_0x1efad0['stableVersion']||_0x38f77e(0x14f);return _0x38f77e(0x162)+NPM_PACKAGE_NAME+'@'+_0xdb1bed;}function getCurrentCliVersion(){const _0x2706bd=a230_0x4759;try{const _0x159ac=fileURLToPath(import.meta.url),_0xa09052=resolve(dirname(_0x159ac),_0x2706bd(0x15a)),_0x503e89=resolve(_0xa09052,'package.json'),_0x16fba1=JSON[_0x2706bd(0x164)](readFileSync(_0x503e89,'utf-8'));return _0x16fba1[_0x2706bd(0x161)]||_0x2706bd(0x157);}catch{return _0x2706bd(0x157);}}export async function checkCliVersion(){const _0x15e878=a230_0x4759,_0x25aa54=getCurrentCliVersion(),_0x5c72de=await getCliVersionPolicy(),_0x3eb995=_0x5c72de?.['stableVersion']||null,_0x2c1ee4=_0x5c72de?.[_0x15e878(0x165)]||null;let _0x18624b=![],_0x1cbe0d=![];const _0x41c569=a230_0x278c6b['coerce'](_0x25aa54);if(_0x41c569&&_0x3eb995)try{const _0x2c7d61=a230_0x278c6b['coerce'](_0x3eb995);if(_0x2c7d61)_0x18624b=a230_0x278c6b['lt'](_0x41c569,_0x2c7d61);}catch{}if(_0x41c569&&_0x2c1ee4)try{const _0x2ad3ba=a230_0x278c6b[_0x15e878(0x169)](_0x2c1ee4);if(_0x2ad3ba)_0x1cbe0d=a230_0x278c6b['lt'](_0x41c569,_0x2ad3ba);}catch{}return _0x1cbe0d&&(_0x18624b=!![]),{'currentVersion':_0x25aa54,'stableVersion':_0x3eb995,'minimumVersion':_0x2c1ee4,'needsUpgrade':_0x18624b,'belowMinimum':_0x1cbe0d,'isPreRelease':![],'upgradeMessage':_0x5c72de?.[_0x15e878(0x14b)],'minimumVersionMessage':_0x5c72de?.[_0x15e878(0x150)]};}export function printCliUpgradeWarning(_0x4d6885){const _0x3945cc=a230_0x4759;if(!_0x4d6885[_0x3945cc(0x155)]&&!_0x4d6885[_0x3945cc(0x15e)])return;const _0x51bb4a=_0x3945cc(0x167),_0x1a2da3=_0x3945cc(0x154),_0x28fb93=_0x3945cc(0x15f),_0x24a5f0=_0x3945cc(0x14e),_0x7e2a75=getCliUpgradeCommand(_0x4d6885);console[_0x3945cc(0x153)](),_0x4d6885[_0x3945cc(0x15e)]?(console[_0x3945cc(0x153)](''+_0x51bb4a+_0x24a5f0+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x28fb93),console['log'](_0x51bb4a+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x4d6885['currentVersion']+_0x28fb93),_0x4d6885[_0x3945cc(0x165)]&&console['log'](_0x51bb4a+_0x3945cc(0x15d)+_0x4d6885[_0x3945cc(0x165)]+_0x28fb93),_0x4d6885[_0x3945cc(0x152)]&&_0x4d6885['stableVersion']!==_0x4d6885[_0x3945cc(0x165)]&&console[_0x3945cc(0x153)](_0x51bb4a+_0x3945cc(0x168)+_0x4d6885['stableVersion']+_0x28fb93),_0x4d6885['minimumVersionMessage']&&console[_0x3945cc(0x153)](_0x51bb4a+_0x3945cc(0x14c)+_0x4d6885[_0x3945cc(0x150)]+_0x28fb93),console[_0x3945cc(0x153)](_0x51bb4a+_0x3945cc(0x166)+_0x7e2a75+_0x28fb93)):(console['log'](''+_0x1a2da3+_0x24a5f0+_0x3945cc(0x158)+_0x28fb93),console[_0x3945cc(0x153)](_0x1a2da3+_0x3945cc(0x15c)+_0x4d6885[_0x3945cc(0x14d)]+_0x28fb93),console['log'](_0x1a2da3+'\x20\x20\x20Stable\x20version:\x20'+_0x4d6885['stableVersion']+_0x28fb93),_0x4d6885[_0x3945cc(0x14b)]&&console['log'](_0x1a2da3+_0x3945cc(0x14c)+_0x4d6885[_0x3945cc(0x14b)]+_0x28fb93),console[_0x3945cc(0x153)](_0x1a2da3+'\x20\x20\x20Upgrade\x20command:\x20'+_0x7e2a75+_0x28fb93)),console[_0x3945cc(0x153)]();}export function assertCliVersionSupported(_0x598acd){const _0xd6def0=a230_0x4759;if(!_0x598acd['belowMinimum'])return;const _0x4fc7b1=[_0x598acd['minimumVersionMessage'],'Current\x20version:\x20'+_0x598acd['currentVersion'],_0x598acd[_0xd6def0(0x165)]?_0xd6def0(0x16b)+_0x598acd['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x598acd)][_0xd6def0(0x163)](Boolean)['join']('\x0a');throw CliErrors[_0xd6def0(0x149)](_0xd6def0(0x16a),_0x4fc7b1);}
@@ -1 +1 @@
1
- (function(_0x54d331,_0x3d643e){const _0x5d1240=a231_0xe521,_0x691ce9=_0x54d331();while(!![]){try{const _0x27adfe=-parseInt(_0x5d1240(0x151))/0x1+-parseInt(_0x5d1240(0x157))/0x2*(-parseInt(_0x5d1240(0x15a))/0x3)+-parseInt(_0x5d1240(0x14f))/0x4*(parseInt(_0x5d1240(0x153))/0x5)+parseInt(_0x5d1240(0x14e))/0x6+parseInt(_0x5d1240(0x15c))/0x7+parseInt(_0x5d1240(0x14c))/0x8+-parseInt(_0x5d1240(0x152))/0x9;if(_0x27adfe===_0x3d643e)break;else _0x691ce9['push'](_0x691ce9['shift']());}catch(_0x25e322){_0x691ce9['push'](_0x691ce9['shift']());}}}(a231_0x6b5b,0xa2b01));import{CLI_VERSION_POLICY_URL}from'../constant/cdn.js';function a231_0xe521(_0x327694,_0x56e87b){_0x327694=_0x327694-0x14c;const _0x6b5be7=a231_0x6b5b();let _0xe5215=_0x6b5be7[_0x327694];return _0xe5215;}const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8,FETCH_TIMEOUT_MS=0xbb8;function pickString(_0x4ac0a7){const _0x16dfc8=a231_0xe521;return typeof _0x4ac0a7===_0x16dfc8(0x150)&&_0x4ac0a7['trim']()[_0x16dfc8(0x159)]>0x0?_0x4ac0a7[_0x16dfc8(0x156)]():null;}function normalizeCliVersionPolicy(_0x3aa8d1){const _0x40f725=a231_0xe521;if(!_0x3aa8d1||typeof _0x3aa8d1!=='object')return null;const _0x49e00b=_0x3aa8d1,_0x1334c3=_0x49e00b['cli']&&typeof _0x49e00b[_0x40f725(0x15e)]==='object'?_0x49e00b['cli']:_0x49e00b,_0x52f48c=pickString(_0x1334c3[_0x40f725(0x15d)])||pickString(_0x1334c3[_0x40f725(0x14d)])||pickString(_0x1334c3['recommendedVersion']),_0x27f652=pickString(_0x1334c3['minimumVersion'])||pickString(_0x1334c3[_0x40f725(0x154)]);if(!_0x52f48c&&!_0x27f652)return null;return{'stableVersion':_0x52f48c,'minimumVersion':_0x27f652,'upgradeMessage':pickString(_0x1334c3[_0x40f725(0x158)])||undefined,'minimumVersionMessage':pickString(_0x1334c3['minimumVersionMessage'])||undefined};}export async function fetchCliVersionPolicy(){const _0x1b1efb=a231_0xe521,_0x16c521=new AbortController(),_0x1cd436=setTimeout(()=>_0x16c521[_0x1b1efb(0x155)](),FETCH_TIMEOUT_MS);try{const _0x47ca69=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x16c521[_0x1b1efb(0x15b)]});if(!_0x47ca69['ok'])return null;const _0xb4099c=await _0x47ca69['json']();return normalizeCliVersionPolicy(_0xb4099c);}catch{return null;}finally{clearTimeout(_0x1cd436);}}function a231_0x6b5b(){const _0x60889f=['upgradeMessage','length','910419CpMGEH','signal','4456977QXvCks','stableVersion','cli','now','4160984uRXxIV','latestVersion','3464802KRrblH','330492SkMATL','string','1049471VJXATu','1910628bbpRHY','25lSAdTp','minVersion','abort','trim','4BoPkra'];a231_0x6b5b=function(){return _0x60889f;};return a231_0x6b5b();}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x2f0aff=a231_0xe521,_0x2bec10=Date[_0x2f0aff(0x15f)]();if(hasCachedPolicy){const _0xaef133=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x2bec10-cacheTime<_0xaef133)return cachedPolicy;}const _0x50ad4e=await fetchCliVersionPolicy();return cachedPolicy=_0x50ad4e,cacheTime=_0x2bec10,hasCachedPolicy=!![],_0x50ad4e;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
1
+ (function(_0x14bf63,_0xfcb7a2){const _0x575432=a231_0x35ae,_0x976d2=_0x14bf63();while(!![]){try{const _0x227d10=-parseInt(_0x575432(0x1b8))/0x1+parseInt(_0x575432(0x1b0))/0x2+-parseInt(_0x575432(0x1ba))/0x3*(-parseInt(_0x575432(0x1b1))/0x4)+parseInt(_0x575432(0x1bd))/0x5+parseInt(_0x575432(0x1aa))/0x6*(-parseInt(_0x575432(0x1b4))/0x7)+-parseInt(_0x575432(0x1b6))/0x8*(-parseInt(_0x575432(0x1be))/0x9)+-parseInt(_0x575432(0x1ae))/0xa;if(_0x227d10===_0xfcb7a2)break;else _0x976d2['push'](_0x976d2['shift']());}catch(_0x37cee3){_0x976d2['push'](_0x976d2['shift']());}}}(a231_0x5864,0x711e1));function a231_0x35ae(_0x2e2406,_0x355e20){_0x2e2406=_0x2e2406-0x1a9;const _0x586415=a231_0x5864();let _0x35ae66=_0x586415[_0x2e2406];return _0x35ae66;}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(_0x5e6c73){const _0x399c44=a231_0x35ae;return typeof _0x5e6c73===_0x399c44(0x1bb)&&_0x5e6c73[_0x399c44(0x1b7)]()[_0x399c44(0x1af)]>0x0?_0x5e6c73[_0x399c44(0x1b7)]():null;}function a231_0x5864(){const _0x267bd6=['stableVersion','minimumVersionMessage','now','12228930hvwVey','length','1573148dStFBf','744frQgCu','minVersion','upgradeMessage','980koWdEf','minimumVersion','409776sUXIha','trim','256233baNrxl','signal','14400NWagQY','string','object','1033935yZbRcx','63vDJxln','cli','12954xKPpCC'];a231_0x5864=function(){return _0x267bd6;};return a231_0x5864();}function normalizeCliVersionPolicy(_0x2ed55f){const _0x5139c8=a231_0x35ae;if(!_0x2ed55f||typeof _0x2ed55f!==_0x5139c8(0x1bc))return null;const _0x1a46db=_0x2ed55f,_0x881d02=_0x1a46db[_0x5139c8(0x1a9)]&&typeof _0x1a46db[_0x5139c8(0x1a9)]===_0x5139c8(0x1bc)?_0x1a46db[_0x5139c8(0x1a9)]:_0x1a46db,_0x1486bc=pickString(_0x881d02[_0x5139c8(0x1ab)])||pickString(_0x881d02['latestVersion'])||pickString(_0x881d02['recommendedVersion']),_0x34139c=pickString(_0x881d02[_0x5139c8(0x1b5)])||pickString(_0x881d02[_0x5139c8(0x1b2)]);if(!_0x1486bc&&!_0x34139c)return null;return{'stableVersion':_0x1486bc,'minimumVersion':_0x34139c,'upgradeMessage':pickString(_0x881d02[_0x5139c8(0x1b3)])||undefined,'minimumVersionMessage':pickString(_0x881d02[_0x5139c8(0x1ac)])||undefined};}export async function fetchCliVersionPolicy(){const _0x13229a=a231_0x35ae,_0x32b40e=new AbortController(),_0x37c019=setTimeout(()=>_0x32b40e['abort'](),FETCH_TIMEOUT_MS);try{const _0x3af4a8=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x32b40e[_0x13229a(0x1b9)]});if(!_0x3af4a8['ok'])return null;const _0x172b8f=await _0x3af4a8['json']();return normalizeCliVersionPolicy(_0x172b8f);}catch{return null;}finally{clearTimeout(_0x37c019);}}let cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];export async function getCliVersionPolicy(){const _0x45c61f=a231_0x35ae,_0x4e3597=Date[_0x45c61f(0x1ad)]();if(hasCachedPolicy){const _0x33fabd=cachedPolicy?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x4e3597-cacheTime<_0x33fabd)return cachedPolicy;}const _0x57d4b3=await fetchCliVersionPolicy();return cachedPolicy=_0x57d4b3,cacheTime=_0x4e3597,hasCachedPolicy=!![],_0x57d4b3;}export function clearCliVersionPolicyCache(){cachedPolicy=null,cacheTime=0x0,hasCachedPolicy=![];}
@@ -1 +1 @@
1
- const a232_0x71a28d=a232_0x1e5a;(function(_0x10c1d6,_0x28a7dd){const _0x2fdee4=a232_0x1e5a,_0x3ca33b=_0x10c1d6();while(!![]){try{const _0x4f498a=-parseInt(_0x2fdee4(0x1e1))/0x1*(parseInt(_0x2fdee4(0x1e3))/0x2)+-parseInt(_0x2fdee4(0x1da))/0x3*(parseInt(_0x2fdee4(0x1dc))/0x4)+parseInt(_0x2fdee4(0x1d7))/0x5*(parseInt(_0x2fdee4(0x1e0))/0x6)+parseInt(_0x2fdee4(0x1e2))/0x7*(parseInt(_0x2fdee4(0x1db))/0x8)+-parseInt(_0x2fdee4(0x1d8))/0x9+parseInt(_0x2fdee4(0x1dd))/0xa+-parseInt(_0x2fdee4(0x1d9))/0xb;if(_0x4f498a===_0x28a7dd)break;else _0x3ca33b['push'](_0x3ca33b['shift']());}catch(_0x53b026){_0x3ca33b['push'](_0x3ca33b['shift']());}}}(a232_0xa537,0x90b3b));function a232_0x1e5a(_0x39ddb0,_0x30500f){_0x39ddb0=_0x39ddb0-0x1d6;const _0xa5375=a232_0xa537();let _0x1e5a28=_0xa5375[_0x39ddb0];return _0x1e5a28;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x39f5e0,getMultiAppConfigs as a232_0x53ad19,getTemplateBaseUrl as a232_0x1a0d0d}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x5dec7c){const _0x1fd748=a232_0x1e5a,_0x3f6614=readRawConfig(_0x5dec7c);return _0x3f6614[_0x1fd748(0x1df)]&&typeof _0x3f6614[_0x1fd748(0x1df)]===_0x1fd748(0x1d6)&&initEnv(_0x3f6614[_0x1fd748(0x1df)]),_0x3f6614;}export function getConfigAppCode(){return a232_0x39f5e0();}function a232_0xa537(){const _0x16be3f=['823535INzVsK','3736845mjbAnF','11500665nPyNYk','12vRHPdg','1177736lhMspc','172904PVgoxK','5260100SHSFGj','project','env','42wvKnnu','5bqxPfC','49WZdojU','193262WVeOJZ','string'];a232_0xa537=function(){return _0x16be3f;};return a232_0xa537();}export function getMultiAppConfigs(_0x45dce3=a232_0x71a28d(0x1de)){return a232_0x53ad19(_0x45dce3);}export function getTemplateBaseUrl(){return a232_0x1a0d0d();}
1
+ function a232_0x1aae(_0x5b38d8,_0x3e3785){_0x5b38d8=_0x5b38d8-0xb6;const _0x4057e6=a232_0x4057();let _0x1aae0e=_0x4057e6[_0x5b38d8];return _0x1aae0e;}const a232_0x48c16b=a232_0x1aae;(function(_0x3105fd,_0x4a0d80){const _0x3283bb=a232_0x1aae,_0x3b5b84=_0x3105fd();while(!![]){try{const _0x5e9767=-parseInt(_0x3283bb(0xbe))/0x1*(parseInt(_0x3283bb(0xb6))/0x2)+parseInt(_0x3283bb(0xb7))/0x3+-parseInt(_0x3283bb(0xb9))/0x4+-parseInt(_0x3283bb(0xbb))/0x5+-parseInt(_0x3283bb(0xc0))/0x6*(parseInt(_0x3283bb(0xc1))/0x7)+-parseInt(_0x3283bb(0xba))/0x8*(-parseInt(_0x3283bb(0xbc))/0x9)+parseInt(_0x3283bb(0xbd))/0xa;if(_0x5e9767===_0x4a0d80)break;else _0x3b5b84['push'](_0x3b5b84['shift']());}catch(_0x2edc98){_0x3b5b84['push'](_0x3b5b84['shift']());}}}(a232_0x4057,0xb4952));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a232_0x137162,getMultiAppConfigs as a232_0x78c97e,getTemplateBaseUrl as a232_0x542ee4}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x3d81e8){const _0x36e387=a232_0x1aae,_0xd5315c=readRawConfig(_0x3d81e8);return _0xd5315c[_0x36e387(0xb8)]&&typeof _0xd5315c[_0x36e387(0xb8)]===_0x36e387(0xbf)&&initEnv(_0xd5315c[_0x36e387(0xb8)]),_0xd5315c;}export function getConfigAppCode(){return a232_0x137162();}export function getMultiAppConfigs(_0x4f9578=a232_0x48c16b(0xc2)){return a232_0x78c97e(_0x4f9578);}export function getTemplateBaseUrl(){return a232_0x542ee4();}function a232_0x4057(){const _0x3958cc=['85876tyHKIc','project','2ZLEWby','1287324GzOizC','env','2201060kgyzjw','112ROwEeC','7043270OkkWuC','786474iUSOet','23673390RSNuNg','1100442JPIMSJ','string','108zapBRp'];a232_0x4057=function(){return _0x3958cc;};return a232_0x4057();}
@@ -1 +1 @@
1
- function a233_0x57f7(_0x90f002,_0x24029c){_0x90f002=_0x90f002-0x6e;const _0x27e01a=a233_0x27e0();let _0x57f782=_0x27e01a[_0x90f002];return _0x57f782;}(function(_0x43e68a,_0xb6ec7d){const _0xaf2c87=a233_0x57f7,_0x11ed01=_0x43e68a();while(!![]){try{const _0x49328f=parseInt(_0xaf2c87(0x6f))/0x1+-parseInt(_0xaf2c87(0x74))/0x2+parseInt(_0xaf2c87(0x7d))/0x3*(-parseInt(_0xaf2c87(0x76))/0x4)+parseInt(_0xaf2c87(0x79))/0x5*(parseInt(_0xaf2c87(0x70))/0x6)+-parseInt(_0xaf2c87(0x72))/0x7+parseInt(_0xaf2c87(0x78))/0x8*(parseInt(_0xaf2c87(0x7b))/0x9)+parseInt(_0xaf2c87(0x75))/0xa;if(_0x49328f===_0xb6ec7d)break;else _0x11ed01['push'](_0x11ed01['shift']());}catch(_0x26d0ae){_0x11ed01['push'](_0x11ed01['shift']());}}}(a233_0x27e0,0xb24b5));import a233_0x224cf3 from'node:path';function a233_0x27e0(){const _0xbe3e78=['56616sNHIDI','40MLcxfO','join','315zSXOfo','name','3LoAnrt','readdirSync','1020714Xpgzza','1278QxMhwg','复制目录时出错:','1446753iqGzZz','isDirectory','114780UaBiei','3706600OKThMJ','2585644DKmwRv','error'];a233_0x27e0=function(){return _0xbe3e78;};return a233_0x27e0();}import a233_0x17e06b from'node:fs';export async function copyDirectory(_0x229fb8,_0x314ff1){const _0x37650d=a233_0x57f7;try{const _0xa5db77=a233_0x17e06b[_0x37650d(0x6e)](_0x229fb8,{'withFileTypes':!![]});a233_0x17e06b['mkdirSync'](_0x314ff1,{'recursive':!![]});for(const _0x28491d of _0xa5db77){const _0x55043c=a233_0x224cf3[_0x37650d(0x7a)](_0x229fb8,_0x28491d[_0x37650d(0x7c)]),_0x420bc3=a233_0x224cf3['join'](_0x314ff1,_0x28491d[_0x37650d(0x7c)]);_0x28491d[_0x37650d(0x73)]()?await copyDirectory(_0x55043c,_0x420bc3):a233_0x17e06b['copyFileSync'](_0x55043c,_0x420bc3);}}catch(_0x13973c){console[_0x37650d(0x77)](_0x37650d(0x71),_0x13973c);}}
1
+ (function(_0x503ada,_0x47499e){const _0x5d89fd=a233_0x305d,_0x44fa54=_0x503ada();while(!![]){try{const _0x117ffa=-parseInt(_0x5d89fd(0x7e))/0x1+-parseInt(_0x5d89fd(0x72))/0x2+parseInt(_0x5d89fd(0x75))/0x3*(-parseInt(_0x5d89fd(0x77))/0x4)+-parseInt(_0x5d89fd(0x7c))/0x5*(-parseInt(_0x5d89fd(0x7f))/0x6)+-parseInt(_0x5d89fd(0x73))/0x7+parseInt(_0x5d89fd(0x70))/0x8*(parseInt(_0x5d89fd(0x74))/0x9)+parseInt(_0x5d89fd(0x80))/0xa;if(_0x117ffa===_0x47499e)break;else _0x44fa54['push'](_0x44fa54['shift']());}catch(_0x59cb39){_0x44fa54['push'](_0x44fa54['shift']());}}}(a233_0x481b,0x6ff8a));function a233_0x305d(_0x1f8d64,_0x1f8426){_0x1f8d64=_0x1f8d64-0x70;const _0x481b05=a233_0x481b();let _0x305df6=_0x481b05[_0x1f8d64];return _0x305df6;}function a233_0x481b(){const _0x413f98=['274310jRYuUt','3024eZfgNy','5454430OXsDYZ','1198776AHnnYR','join','415458WKKFwd','563486PCDFRm','9gPgrRm','11637lgkMFb','name','324mSOLMn','isDirectory','copyFileSync','readdirSync','mkdirSync','6350zxcWgk','error'];a233_0x481b=function(){return _0x413f98;};return a233_0x481b();}import a233_0x49c27b from'node:path';import a233_0x458237 from'node:fs';export async function copyDirectory(_0x9f782f,_0x2ec65e){const _0x448640=a233_0x305d;try{const _0x5afab1=a233_0x458237[_0x448640(0x7a)](_0x9f782f,{'withFileTypes':!![]});a233_0x458237[_0x448640(0x7b)](_0x2ec65e,{'recursive':!![]});for(const _0x1102bf of _0x5afab1){const _0x20f8e5=a233_0x49c27b[_0x448640(0x71)](_0x9f782f,_0x1102bf[_0x448640(0x76)]),_0x120ee3=a233_0x49c27b[_0x448640(0x71)](_0x2ec65e,_0x1102bf[_0x448640(0x76)]);_0x1102bf[_0x448640(0x78)]()?await copyDirectory(_0x20f8e5,_0x120ee3):a233_0x458237[_0x448640(0x79)](_0x20f8e5,_0x120ee3);}}catch(_0x318df0){console[_0x448640(0x7d)]('复制目录时出错:',_0x318df0);}}
@@ -1 +1 @@
1
- (function(_0xa16ac4,_0x48d552){const _0x302be4=a234_0x3b83,_0x3b5b7b=_0xa16ac4();while(!![]){try{const _0x366330=-parseInt(_0x302be4(0x193))/0x1+parseInt(_0x302be4(0x194))/0x2*(-parseInt(_0x302be4(0x190))/0x3)+-parseInt(_0x302be4(0x191))/0x4+parseInt(_0x302be4(0x18e))/0x5*(parseInt(_0x302be4(0x196))/0x6)+parseInt(_0x302be4(0x18c))/0x7+parseInt(_0x302be4(0x18d))/0x8*(parseInt(_0x302be4(0x195))/0x9)+parseInt(_0x302be4(0x192))/0xa;if(_0x366330===_0x48d552)break;else _0x3b5b7b['push'](_0x3b5b7b['shift']());}catch(_0x42b68c){_0x3b5b7b['push'](_0x3b5b7b['shift']());}}}(a234_0x13e7,0x6d6dc));function toFiniteNumber(_0xabcdaa){const _0x3e818d=a234_0x3b83;if(typeof _0xabcdaa===_0x3e818d(0x18f)&&Number[_0x3e818d(0x189)](_0xabcdaa))return _0xabcdaa;if(typeof _0xabcdaa==='string'){const _0x5bbd89=_0xabcdaa[_0x3e818d(0x18a)]();if(!_0x5bbd89)return undefined;const _0x2921e4=Number(_0x5bbd89);if(Number['isFinite'](_0x2921e4))return _0x2921e4;}return undefined;}export function normalizeEntityWithIdResponse(_0x4aaacb){const _0x4b4288=a234_0x3b83,_0x502d18=toFiniteNumber(_0x4aaacb);if(_0x502d18!==undefined)return{'id':_0x502d18,'entity':{'id':_0x502d18}};if(!_0x4aaacb||typeof _0x4aaacb!==_0x4b4288(0x18b))return{'id':undefined,'entity':{}};const _0x30070d={..._0x4aaacb},_0x4f7d20=toFiniteNumber(_0x30070d['id']);return _0x4f7d20!==undefined&&(_0x30070d['id']=_0x4f7d20),{'id':_0x4f7d20,'entity':_0x30070d};}function a234_0x3b83(_0x16d75a,_0x50de8c){_0x16d75a=_0x16d75a-0x189;const _0x13e7b3=a234_0x13e7();let _0x3b83d5=_0x13e7b3[_0x16d75a];return _0x3b83d5;}function a234_0x13e7(){const _0x2a463e=['5195827ovrzIJ','8jXFrQq','44105qyhDgR','number','741525xPnaWA','1454432ghvAbu','5681690FkXSiU','407039hQkzUU','6WxNres','3706155LCEieZ','162zkqkdt','isFinite','trim','object'];a234_0x13e7=function(){return _0x2a463e;};return a234_0x13e7();}
1
+ (function(_0xfc0fb2,_0x1d966e){const _0x1b8bbb=a234_0x2fa3,_0x34a54d=_0xfc0fb2();while(!![]){try{const _0x149f6b=-parseInt(_0x1b8bbb(0x1cf))/0x1*(-parseInt(_0x1b8bbb(0x1c9))/0x2)+-parseInt(_0x1b8bbb(0x1cb))/0x3+parseInt(_0x1b8bbb(0x1cc))/0x4+parseInt(_0x1b8bbb(0x1d1))/0x5*(-parseInt(_0x1b8bbb(0x1ca))/0x6)+parseInt(_0x1b8bbb(0x1d0))/0x7+parseInt(_0x1b8bbb(0x1c7))/0x8+-parseInt(_0x1b8bbb(0x1c5))/0x9;if(_0x149f6b===_0x1d966e)break;else _0x34a54d['push'](_0x34a54d['shift']());}catch(_0x111c67){_0x34a54d['push'](_0x34a54d['shift']());}}}(a234_0x3c26,0xd0fb3));function a234_0x2fa3(_0x5556d3,_0x5cc3a2){_0x5556d3=_0x5556d3-0x1c5;const _0x3c26b4=a234_0x3c26();let _0x2fa37b=_0x3c26b4[_0x5556d3];return _0x2fa37b;}function toFiniteNumber(_0x14ee3a){const _0xaaa06d=a234_0x2fa3;if(typeof _0x14ee3a===_0xaaa06d(0x1cd)&&Number['isFinite'](_0x14ee3a))return _0x14ee3a;if(typeof _0x14ee3a===_0xaaa06d(0x1d2)){const _0x5ca3d5=_0x14ee3a[_0xaaa06d(0x1c8)]();if(!_0x5ca3d5)return undefined;const _0x24cd1a=Number(_0x5ca3d5);if(Number[_0xaaa06d(0x1c6)](_0x24cd1a))return _0x24cd1a;}return undefined;}function a234_0x3c26(){const _0x461694=['99089whVyGC','7364266VTGYHW','330vDWRAo','string','760923uUospA','isFinite','4325280EBbXEF','trim','34EkZkFG','134958oZoUYm','4765719QPlZKl','2945736ICeSuN','number','object'];a234_0x3c26=function(){return _0x461694;};return a234_0x3c26();}export function normalizeEntityWithIdResponse(_0x3bbdf3){const _0x5c7fe8=a234_0x2fa3,_0xdcadfb=toFiniteNumber(_0x3bbdf3);if(_0xdcadfb!==undefined)return{'id':_0xdcadfb,'entity':{'id':_0xdcadfb}};if(!_0x3bbdf3||typeof _0x3bbdf3!==_0x5c7fe8(0x1ce))return{'id':undefined,'entity':{}};const _0x43f273={..._0x3bbdf3},_0x262823=toFiniteNumber(_0x43f273['id']);return _0x262823!==undefined&&(_0x43f273['id']=_0x262823),{'id':_0x262823,'entity':_0x43f273};}
@@ -1 +1 @@
1
- (function(_0x96c144,_0x3fc2f0){const _0x40fd46=a235_0x4efd,_0x2782a6=_0x96c144();while(!![]){try{const _0x385505=-parseInt(_0x40fd46(0x137))/0x1+parseInt(_0x40fd46(0x133))/0x2*(parseInt(_0x40fd46(0x132))/0x3)+parseInt(_0x40fd46(0x136))/0x4*(parseInt(_0x40fd46(0x130))/0x5)+parseInt(_0x40fd46(0x135))/0x6+parseInt(_0x40fd46(0x131))/0x7+-parseInt(_0x40fd46(0x138))/0x8*(-parseInt(_0x40fd46(0x13a))/0x9)+-parseInt(_0x40fd46(0x134))/0xa;if(_0x385505===_0x3fc2f0)break;else _0x2782a6['push'](_0x2782a6['shift']());}catch(_0x3a603e){_0x2782a6['push'](_0x2782a6['shift']());}}}(a235_0x56eb,0xeb2aa));function a235_0x56eb(){const _0x2f02ab=['6185592tlTzTN','5240769ugVzoM','2bEViTc','18360350cslKSq','7111044RYfqSM','12hOjMSF','1521850FhXmJk','2043336GcqwVH','isDirectory','9sAEsbZ','416595UWGyJH'];a235_0x56eb=function(){return _0x2f02ab;};return a235_0x56eb();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3e0bff,_0x1cd5de){const _0x1852cb=a235_0x4efd,_0x20dcea=statSync(_0x3e0bff);if(_0x20dcea[_0x1852cb(0x139)]()){!existsSync(_0x1cd5de)&&mkdirSync(_0x1cd5de,{'recursive':!![]});const _0x5a8745=readdirSync(_0x3e0bff);for(const _0x292687 of _0x5a8745){await copyDir(join(_0x3e0bff,_0x292687),join(_0x1cd5de,_0x292687));}}else copyFileSync(_0x3e0bff,_0x1cd5de);}export function ensureDir(_0x2b6c15){!existsSync(_0x2b6c15)&&mkdirSync(_0x2b6c15,{'recursive':!![]});}function a235_0x4efd(_0xcc56fa,_0x417570){_0xcc56fa=_0xcc56fa-0x130;const _0x56ebc7=a235_0x56eb();let _0x4efd04=_0x56ebc7[_0xcc56fa];return _0x4efd04;}export function pathExists(_0x446f1f){return existsSync(_0x446f1f);}
1
+ (function(_0x35fa8c,_0xe47721){const _0x102b89=a235_0x38d5,_0x4da995=_0x35fa8c();while(!![]){try{const _0x48a4c5=-parseInt(_0x102b89(0x1bf))/0x1*(parseInt(_0x102b89(0x1c2))/0x2)+-parseInt(_0x102b89(0x1bb))/0x3*(parseInt(_0x102b89(0x1c3))/0x4)+-parseInt(_0x102b89(0x1bc))/0x5+-parseInt(_0x102b89(0x1ba))/0x6+-parseInt(_0x102b89(0x1be))/0x7*(parseInt(_0x102b89(0x1c4))/0x8)+-parseInt(_0x102b89(0x1c1))/0x9*(parseInt(_0x102b89(0x1c0))/0xa)+parseInt(_0x102b89(0x1bd))/0xb;if(_0x48a4c5===_0xe47721)break;else _0x4da995['push'](_0x4da995['shift']());}catch(_0x2122cd){_0x4da995['push'](_0x4da995['shift']());}}}(a235_0x1e4a,0xf1ae5));function a235_0x1e4a(){const _0x12c805=['32854pRekRY','196GVEFvU','15090248rmpTmZ','5302950xYkybS','76761zKcnby','7069895MatnaX','71101118kMDwGl','7KIeFBi','2gRriCa','170oALCuC','1647qLuLkk'];a235_0x1e4a=function(){return _0x12c805;};return a235_0x1e4a();}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x330b42,_0x4bd205){const _0x271393=statSync(_0x330b42);if(_0x271393['isDirectory']()){!existsSync(_0x4bd205)&&mkdirSync(_0x4bd205,{'recursive':!![]});const _0x21f406=readdirSync(_0x330b42);for(const _0x12c92c of _0x21f406){await copyDir(join(_0x330b42,_0x12c92c),join(_0x4bd205,_0x12c92c));}}else copyFileSync(_0x330b42,_0x4bd205);}function a235_0x38d5(_0x28f673,_0x51bf1f){_0x28f673=_0x28f673-0x1ba;const _0x1e4a42=a235_0x1e4a();let _0x38d5e0=_0x1e4a42[_0x28f673];return _0x38d5e0;}export function ensureDir(_0x354c7b){!existsSync(_0x354c7b)&&mkdirSync(_0x354c7b,{'recursive':!![]});}export function pathExists(_0x34180d){return existsSync(_0x34180d);}
@@ -1 +1 @@
1
- function a236_0x2e4b(){const _0x4cb54b=['2CNUKiF','guides','skillTemplate','cache','3400998lzUrie','utf-8','5288adZyUF','statusText','13306698hBiqhi','lastUpdated','path','object','24636KbvrfJ','content','push','extendContent','/skills/guides.json','359384cVSWLi','trimEnd','7282060gcqxcQ','entries','6671hCAosf','CDN\x20返回数据格式错误','\x0a\x0a>更新时间:','5373045wITiqo','length','replace','20kYLAUM','keys','CDN\x20请求失败:\x20','CDN\x20数据中缺少\x20skillTemplate','application/json','map','.lovrabet/skill/guides'];a236_0x2e4b=function(){return _0x4cb54b;};return a236_0x2e4b();}const a236_0xc486b2=a236_0x5871;(function(_0x305e24,_0x5800e3){const _0x554dbf=a236_0x5871,_0x35a1a2=_0x305e24();while(!![]){try{const _0x2b8326=parseInt(_0x554dbf(0xec))/0x1*(parseInt(_0x554dbf(0xdb))/0x2)+parseInt(_0x554dbf(0xe7))/0x3*(parseInt(_0x554dbf(0xd4))/0x4)+parseInt(_0x554dbf(0xf3))/0x5+-parseInt(_0x554dbf(0xdf))/0x6+-parseInt(_0x554dbf(0xf0))/0x7*(-parseInt(_0x554dbf(0xe1))/0x8)+-parseInt(_0x554dbf(0xe3))/0x9+parseInt(_0x554dbf(0xee))/0xa;if(_0x2b8326===_0x5800e3)break;else _0x35a1a2['push'](_0x35a1a2['shift']());}catch(_0x44359b){_0x35a1a2['push'](_0x35a1a2['shift']());}}}(a236_0x2e4b,0xc057d));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 _0x4e3cfd=a236_0x5871,_0x111336=getTemplateBaseUrl();return _0x111336+_0x4e3cfd(0xeb);}const CACHE_DIR=join(homedir(),'.lovrabet',a236_0xc486b2(0xde));export async function fetchGuidesFromCDN(){const _0x4ec4ca=a236_0xc486b2,_0x1634f1=getGuidesCdnUrl(),_0x197565=await fetch(_0x1634f1,{'headers':{'Accept':_0x4ec4ca(0xd8)}});if(!_0x197565['ok'])throw new Error(_0x4ec4ca(0xd6)+_0x197565['status']+'\x20'+_0x197565[_0x4ec4ca(0xe2)]);const _0x42a8f3=await _0x197565['json']();if(!_0x42a8f3[_0x4ec4ca(0xdc)]||typeof _0x42a8f3['guides']!==_0x4ec4ca(0xe6))throw new Error(_0x4ec4ca(0xf1));return _0x42a8f3;}function a236_0x5871(_0x16cec4,_0x4d2a6a){_0x16cec4=_0x16cec4-0xd4;const _0x2e4b57=a236_0x2e4b();let _0x587174=_0x2e4b57[_0x16cec4];return _0x587174;}export function writeGuidesToProject(_0x35f426,_0x327c9a,_0x320878=a236_0xc486b2(0xda),_0x1e5807){const _0x3b42a1=a236_0xc486b2,_0x436c1d=join(_0x327c9a,_0x320878);mkdirSync(_0x436c1d,{'recursive':!![]});for(const [_0x1a1e3e,_0x4032ba]of Object[_0x3b42a1(0xef)](_0x35f426[_0x3b42a1(0xdc)])){let _0x5c9bd1=_0x4032ba[_0x3b42a1(0xe8)];_0x4032ba['lastUpdated']&&(_0x5c9bd1=appendUpdateTime(_0x5c9bd1,_0x4032ba[_0x3b42a1(0xe4)])),writeFileSync(join(_0x436c1d,_0x1a1e3e+'.md'),_0x5c9bd1,_0x3b42a1(0xe0));}}export function appendUpdateTime(_0x25bdf,_0x989955){const _0x4eded8=a236_0xc486b2;return _0x25bdf=_0x25bdf[_0x4eded8(0xf5)](/\n*>更新时间:.*$/m,''),_0x25bdf[_0x4eded8(0xed)]()+(_0x4eded8(0xf2)+_0x989955);}export function getSkillTemplate(_0x33b98d){const _0x320482=a236_0xc486b2;return _0x33b98d[_0x320482(0xdd)]?.[_0x320482(0xe8)]||'';}export function appendExtendContents(_0x4e8ede,_0x2728e2,_0x540c56){const _0x5538a7=a236_0xc486b2,_0x3da16d=[];for(const [,_0x218e4a]of Object[_0x5538a7(0xef)](_0x2728e2[_0x5538a7(0xdc)])){_0x218e4a[_0x5538a7(0xea)]&&_0x3da16d[_0x5538a7(0xe9)](_0x218e4a['extendContent'][_0x5538a7(0xed)]());}if(_0x3da16d[_0x5538a7(0xf4)]===0x0)return _0x4e8ede;return _0x4e8ede[_0x5538a7(0xed)]()+'\x0a\x0a'+_0x3da16d['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x27ff5d,_0x1eafbf,_0x53efd5){const _0x3f45ef=a236_0xc486b2,_0x16f295=getSkillTemplate(_0x27ff5d);if(!_0x16f295)throw new Error(_0x3f45ef(0xd7));const _0x47b42f=dirname(_0x1eafbf);mkdirSync(_0x47b42f,{'recursive':!![]});let _0x2e7a74=_0x16f295[_0x3f45ef(0xf5)](/\{\{IDE_NAME\}\}/g,_0x53efd5);_0x2e7a74=appendExtendContents(_0x2e7a74,_0x27ff5d),_0x27ff5d[_0x3f45ef(0xdd)][_0x3f45ef(0xe4)]&&(_0x2e7a74=appendUpdateTime(_0x2e7a74,_0x27ff5d[_0x3f45ef(0xdd)][_0x3f45ef(0xe4)])),writeFileSync(_0x1eafbf,_0x2e7a74,_0x3f45ef(0xe0));}export async function installGuides(_0x583677){const _0x432678=a236_0xc486b2,_0x59a82f=await fetchGuidesFromCDN();return writeGuidesToProject(_0x59a82f,_0x583677),Object[_0x432678(0xd5)](_0x59a82f[_0x432678(0xdc)])['length'];}export function getGuidesSummary(_0x331d2f){const _0x2be2eb=a236_0xc486b2;return Object[_0x2be2eb(0xef)](_0x331d2f[_0x2be2eb(0xdc)])[_0x2be2eb(0xd9)](([_0x49f17d,_0x31fefc])=>({'key':_0x49f17d,'title':_0x31fefc['title'],'path':_0x31fefc[_0x2be2eb(0xe5)]}));}
1
+ function a236_0x3f8d(_0x2058f8,_0x3eb2bf){_0x2058f8=_0x2058f8-0x195;const _0x123102=a236_0x1231();let _0x3f8d32=_0x123102[_0x2058f8];return _0x3f8d32;}const a236_0x2423de=a236_0x3f8d;(function(_0x3c3938,_0x562286){const _0x35c4da=a236_0x3f8d,_0x25f9e=_0x3c3938();while(!![]){try{const _0x30147d=-parseInt(_0x35c4da(0x1b3))/0x1+-parseInt(_0x35c4da(0x1a0))/0x2+parseInt(_0x35c4da(0x19c))/0x3*(-parseInt(_0x35c4da(0x1a4))/0x4)+parseInt(_0x35c4da(0x19e))/0x5*(-parseInt(_0x35c4da(0x198))/0x6)+parseInt(_0x35c4da(0x1b2))/0x7*(-parseInt(_0x35c4da(0x1af))/0x8)+parseInt(_0x35c4da(0x19b))/0x9+parseInt(_0x35c4da(0x197))/0xa*(parseInt(_0x35c4da(0x19a))/0xb);if(_0x30147d===_0x562286)break;else _0x25f9e['push'](_0x25f9e['shift']());}catch(_0x13474a){_0x25f9e['push'](_0x25f9e['shift']());}}}(a236_0x1231,0x65172));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 _0x23614c=a236_0x3f8d,_0x4a8bf2=getTemplateBaseUrl();return _0x4a8bf2+_0x23614c(0x196);}const CACHE_DIR=join(homedir(),'.lovrabet',a236_0x2423de(0x1b1));export async function fetchGuidesFromCDN(){const _0x5f1bba=a236_0x2423de,_0x13e439=getGuidesCdnUrl(),_0x35df4f=await fetch(_0x13e439,{'headers':{'Accept':_0x5f1bba(0x1ad)}});if(!_0x35df4f['ok'])throw new Error(_0x5f1bba(0x1b5)+_0x35df4f['status']+'\x20'+_0x35df4f[_0x5f1bba(0x1a9)]);const _0x1deec5=await _0x35df4f[_0x5f1bba(0x1b4)]();if(!_0x1deec5[_0x5f1bba(0x1ac)]||typeof _0x1deec5[_0x5f1bba(0x1ac)]!=='object')throw new Error(_0x5f1bba(0x1a1));return _0x1deec5;}export function writeGuidesToProject(_0x5bd27e,_0x522db0,_0x3c2407=a236_0x2423de(0x1a8),_0xd48b46){const _0x2c83a3=a236_0x2423de,_0x1062a2=join(_0x522db0,_0x3c2407);mkdirSync(_0x1062a2,{'recursive':!![]});for(const [_0x544420,_0x5f4daf]of Object[_0x2c83a3(0x19f)](_0x5bd27e[_0x2c83a3(0x1ac)])){let _0x436a8d=_0x5f4daf[_0x2c83a3(0x1a7)];_0x5f4daf[_0x2c83a3(0x1ae)]&&(_0x436a8d=appendUpdateTime(_0x436a8d,_0x5f4daf[_0x2c83a3(0x1ae)])),writeFileSync(join(_0x1062a2,_0x544420+_0x2c83a3(0x1a3)),_0x436a8d,_0x2c83a3(0x19d));}}export function appendUpdateTime(_0x5696df,_0x448fb5){const _0x16bc1f=a236_0x2423de;return _0x5696df=_0x5696df[_0x16bc1f(0x1b6)](/\n*>更新时间:.*$/m,''),_0x5696df[_0x16bc1f(0x1ab)]()+('\x0a\x0a>更新时间:'+_0x448fb5);}export function getSkillTemplate(_0x3a4587){const _0x4606e4=a236_0x2423de;return _0x3a4587['skillTemplate']?.[_0x4606e4(0x1a7)]||'';}function a236_0x1231(){const _0x1130f1=['9bshAcK','utf-8','1924385AHWkyx','entries','1303758cKrFjW','CDN\x20返回数据格式错误','length','.md','36832EZgFbn','CDN\x20数据中缺少\x20skillTemplate','extendContent','content','.lovrabet/skill/guides','statusText','path','trimEnd','guides','application/json','lastUpdated','2248JzAotG','skillTemplate','cache','3430cjAeKg','13585GXDGuL','json','CDN\x20请求失败:\x20','replace','keys','/skills/guides.json','20BnRgAx','6CfLFqK','title','6066071dtykaT','4741191kJXFUl'];a236_0x1231=function(){return _0x1130f1;};return a236_0x1231();}export function appendExtendContents(_0xc15638,_0x1a2a78,_0x1e8b89){const _0x30a1e6=a236_0x2423de,_0x514322=[];for(const [,_0x3ec2e1]of Object['entries'](_0x1a2a78[_0x30a1e6(0x1ac)])){_0x3ec2e1[_0x30a1e6(0x1a6)]&&_0x514322['push'](_0x3ec2e1['extendContent'][_0x30a1e6(0x1ab)]());}if(_0x514322[_0x30a1e6(0x1a2)]===0x0)return _0xc15638;return _0xc15638['trimEnd']()+'\x0a\x0a'+_0x514322['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x3289c3,_0x22b3b,_0x49aa12){const _0x2cf8ba=a236_0x2423de,_0x18daa9=getSkillTemplate(_0x3289c3);if(!_0x18daa9)throw new Error(_0x2cf8ba(0x1a5));const _0x41690d=dirname(_0x22b3b);mkdirSync(_0x41690d,{'recursive':!![]});let _0x24e74c=_0x18daa9[_0x2cf8ba(0x1b6)](/\{\{IDE_NAME\}\}/g,_0x49aa12);_0x24e74c=appendExtendContents(_0x24e74c,_0x3289c3),_0x3289c3[_0x2cf8ba(0x1b0)][_0x2cf8ba(0x1ae)]&&(_0x24e74c=appendUpdateTime(_0x24e74c,_0x3289c3[_0x2cf8ba(0x1b0)][_0x2cf8ba(0x1ae)])),writeFileSync(_0x22b3b,_0x24e74c,_0x2cf8ba(0x19d));}export async function installGuides(_0x508f88){const _0x3ab0ae=a236_0x2423de,_0x25bc7c=await fetchGuidesFromCDN();return writeGuidesToProject(_0x25bc7c,_0x508f88),Object[_0x3ab0ae(0x195)](_0x25bc7c['guides'])[_0x3ab0ae(0x1a2)];}export function getGuidesSummary(_0x53c236){const _0x243a99=a236_0x2423de;return Object['entries'](_0x53c236[_0x243a99(0x1ac)])['map'](([_0x41cbee,_0x54b873])=>({'key':_0x41cbee,'title':_0x54b873[_0x243a99(0x199)],'path':_0x54b873[_0x243a99(0x1aa)]}));}
@@ -1 +1 @@
1
- function a237_0xc244(){const _0x3fdbab=['ENOTFOUND','ms\x20后进行第\x20','1411908xVliex','705213EMfUyI','19237930TRZkSU','TypeError','application/json','5JlygXu','410661dZNoXX','message','fetch','text','headers','Request\x20failed','signal','get','8146824yHCpCf','url','name','8475000QbpPrC','includes','1088300qxpIyJ','content-type','*\x20请求失败,','1nkFUOC','56krpsXR','status','\x20次重试...','log'];a237_0xc244=function(){return _0x3fdbab;};return a237_0xc244();}(function(_0x1ae346,_0x47f9fd){const _0x36f9a2=a237_0x3b27,_0x250ce6=_0x1ae346();while(!![]){try{const _0x5c9153=-parseInt(_0x36f9a2(0x91))/0x1*(parseInt(_0x36f9a2(0x7b))/0x2)+parseInt(_0x36f9a2(0x7c))/0x3+-parseInt(_0x36f9a2(0x8e))/0x4*(-parseInt(_0x36f9a2(0x80))/0x5)+parseInt(_0x36f9a2(0x8c))/0x6+parseInt(_0x36f9a2(0x89))/0x7+parseInt(_0x36f9a2(0x75))/0x8*(parseInt(_0x36f9a2(0x81))/0x9)+-parseInt(_0x36f9a2(0x7d))/0xa;if(_0x5c9153===_0x47f9fd)break;else _0x250ce6['push'](_0x250ce6['shift']());}catch(_0x1d2d60){_0x250ce6['push'](_0x250ce6['shift']());}}}(a237_0xc244,0xbcc0e));export async function httpRequest(_0x590b68,_0x10dd5d={}){const _0x2817b3=a237_0x3b27,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x10dd5d;let _0x3cd198=null;for(let _0x3086c3=0x0;_0x3086c3<=retries;_0x3086c3++){try{const _0x11e2c0=new AbortController(),_0x2bcfd8=setTimeout(()=>_0x11e2c0['abort'](),timeout),_0x1b81e6=await fetch(_0x590b68,{'headers':headers,'signal':_0x11e2c0[_0x2817b3(0x87)]});clearTimeout(_0x2bcfd8);let _0x44f3f1;const _0x5b13e2=_0x1b81e6['headers'][_0x2817b3(0x88)](_0x2817b3(0x8f));return _0x5b13e2?.[_0x2817b3(0x8d)](_0x2817b3(0x7f))?_0x44f3f1=await _0x1b81e6['json']():_0x44f3f1=await _0x1b81e6['text'](),{'ok':_0x1b81e6['ok'],'status':_0x1b81e6[_0x2817b3(0x76)],'statusText':_0x1b81e6['statusText'],'data':_0x44f3f1,'headers':_0x1b81e6[_0x2817b3(0x85)],'url':_0x1b81e6[_0x2817b3(0x8a)],'text':()=>_0x1b81e6[_0x2817b3(0x84)]()};}catch(_0x1516c0){_0x3cd198=_0x1516c0 instanceof Error?_0x1516c0:new Error(String(_0x1516c0));if(_0x3086c3===retries)break;if(shouldRetry(_0x1516c0)){console[_0x2817b3(0x78)](_0x2817b3(0x90)+retryDelay+_0x2817b3(0x7a)+(_0x3086c3+0x1)+_0x2817b3(0x77)),await sleep(retryDelay);continue;}else break;}}throw _0x3cd198||new Error(_0x2817b3(0x86));}function shouldRetry(_0x3415e1){const _0x4b31b7=a237_0x3b27;if(_0x3415e1 instanceof Error){if(_0x3415e1['name']==='AbortError')return![];if(_0x3415e1[_0x4b31b7(0x8b)]===_0x4b31b7(0x7e)&&_0x3415e1[_0x4b31b7(0x82)][_0x4b31b7(0x8d)](_0x4b31b7(0x83)))return!![];if(_0x3415e1['message']['includes']('ECONNRESET'))return!![];if(_0x3415e1[_0x4b31b7(0x82)][_0x4b31b7(0x8d)](_0x4b31b7(0x79)))return![];}return![];}function sleep(_0x19704a){return new Promise(_0x27b014=>setTimeout(_0x27b014,_0x19704a));}function a237_0x3b27(_0x3ef082,_0x7a7961){_0x3ef082=_0x3ef082-0x75;const _0xc244a8=a237_0xc244();let _0x3b2711=_0xc244a8[_0x3ef082];return _0x3b2711;}export function validateUrl(_0x4494ee){try{return new URL(_0x4494ee),!![];}catch{return![];}}
1
+ (function(_0x31c20b,_0x11b51a){const _0x2109a5=a237_0x2b05,_0x4cfe9c=_0x31c20b();while(!![]){try{const _0x5a3696=parseInt(_0x2109a5(0xe7))/0x1*(-parseInt(_0x2109a5(0xd5))/0x2)+parseInt(_0x2109a5(0xe5))/0x3+parseInt(_0x2109a5(0xce))/0x4+parseInt(_0x2109a5(0xe1))/0x5*(-parseInt(_0x2109a5(0xe4))/0x6)+parseInt(_0x2109a5(0xd6))/0x7*(-parseInt(_0x2109a5(0xd8))/0x8)+parseInt(_0x2109a5(0xc8))/0x9*(-parseInt(_0x2109a5(0xda))/0xa)+parseInt(_0x2109a5(0xc7))/0xb;if(_0x5a3696===_0x11b51a)break;else _0x4cfe9c['push'](_0x4cfe9c['shift']());}catch(_0x50f538){_0x4cfe9c['push'](_0x4cfe9c['shift']());}}}(a237_0x1906,0x4354f));function a237_0x2b05(_0x20a13b,_0x38c4eb){_0x20a13b=_0x20a13b-0xc7;const _0x1906b0=a237_0x1906();let _0x2b05ac=_0x1906b0[_0x20a13b];return _0x2b05ac;}function a237_0x1906(){const _0x3c9e68=['includes','abort','*\x20请求失败,','message','178qByXMi','7SWDESq','log','1448136EUFLpJ','fetch','510SWvJII','text','signal','name','Request\x20failed','statusText','TypeError','145JjIedJ','ECONNRESET','status','48738dEeHmp','134898qOQguV','ENOTFOUND','5043AmzaSK','12061753iDhdPh','59022kWhaWe','json','headers','ms\x20后进行第\x20','content-type','url','1336684yplwRY','get','\x20次重试...'];a237_0x1906=function(){return _0x3c9e68;};return a237_0x1906();}export async function httpRequest(_0x1dd84b,_0x4f3558={}){const _0x3d716b=a237_0x2b05,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x4f3558;let _0x334a30=null;for(let _0xe2783f=0x0;_0xe2783f<=retries;_0xe2783f++){try{const _0x17a6ff=new AbortController(),_0x1d4bc1=setTimeout(()=>_0x17a6ff[_0x3d716b(0xd2)](),timeout),_0x3e6fcf=await fetch(_0x1dd84b,{'headers':headers,'signal':_0x17a6ff[_0x3d716b(0xdc)]});clearTimeout(_0x1d4bc1);let _0x21b015;const _0x58f0d1=_0x3e6fcf[_0x3d716b(0xca)][_0x3d716b(0xcf)](_0x3d716b(0xcc));return _0x58f0d1?.[_0x3d716b(0xd1)]('application/json')?_0x21b015=await _0x3e6fcf[_0x3d716b(0xc9)]():_0x21b015=await _0x3e6fcf[_0x3d716b(0xdb)](),{'ok':_0x3e6fcf['ok'],'status':_0x3e6fcf[_0x3d716b(0xe3)],'statusText':_0x3e6fcf[_0x3d716b(0xdf)],'data':_0x21b015,'headers':_0x3e6fcf[_0x3d716b(0xca)],'url':_0x3e6fcf[_0x3d716b(0xcd)],'text':()=>_0x3e6fcf[_0x3d716b(0xdb)]()};}catch(_0x5baf0e){_0x334a30=_0x5baf0e instanceof Error?_0x5baf0e:new Error(String(_0x5baf0e));if(_0xe2783f===retries)break;if(shouldRetry(_0x5baf0e)){console[_0x3d716b(0xd7)](_0x3d716b(0xd3)+retryDelay+_0x3d716b(0xcb)+(_0xe2783f+0x1)+_0x3d716b(0xd0)),await sleep(retryDelay);continue;}else break;}}throw _0x334a30||new Error(_0x3d716b(0xde));}function shouldRetry(_0x497e7e){const _0x49352b=a237_0x2b05;if(_0x497e7e instanceof Error){if(_0x497e7e[_0x49352b(0xdd)]==='AbortError')return![];if(_0x497e7e['name']===_0x49352b(0xe0)&&_0x497e7e[_0x49352b(0xd4)][_0x49352b(0xd1)](_0x49352b(0xd9)))return!![];if(_0x497e7e[_0x49352b(0xd4)][_0x49352b(0xd1)](_0x49352b(0xe2)))return!![];if(_0x497e7e['message'][_0x49352b(0xd1)](_0x49352b(0xe6)))return![];}return![];}function sleep(_0x95144f){return new Promise(_0x1482e3=>setTimeout(_0x1482e3,_0x95144f));}export function validateUrl(_0x4b0f71){try{return new URL(_0x4b0f71),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x418487,_0x56ef5e){const _0x1ac2da=a238_0x4127,_0x3b7f62=_0x418487();while(!![]){try{const _0x2faf0d=parseInt(_0x1ac2da(0xa2))/0x1*(parseInt(_0x1ac2da(0x9f))/0x2)+parseInt(_0x1ac2da(0x9b))/0x3*(-parseInt(_0x1ac2da(0xa3))/0x4)+parseInt(_0x1ac2da(0x96))/0x5*(parseInt(_0x1ac2da(0x9d))/0x6)+-parseInt(_0x1ac2da(0x9a))/0x7+parseInt(_0x1ac2da(0x94))/0x8*(parseInt(_0x1ac2da(0x98))/0x9)+parseInt(_0x1ac2da(0x97))/0xa+parseInt(_0x1ac2da(0x9e))/0xb*(-parseInt(_0x1ac2da(0x9c))/0xc);if(_0x2faf0d===_0x56ef5e)break;else _0x3b7f62['push'](_0x3b7f62['shift']());}catch(_0x29ad7d){_0x3b7f62['push'](_0x3b7f62['shift']());}}}(a238_0x1473,0xb57ad));function env(_0x32d598){return process.env[`RABETBASE_${_0x32d598}`]||process.env[`LOVRABET_${_0x32d598}`]||undefined;}export function isNonInteractive(_0x262b26){const _0x5cc80e=a238_0x4127;return!!(_0x262b26['nonInteractive']||_0x262b26['ci']||env('CI')===_0x5cc80e(0x95)||process.env.CI===_0x5cc80e(0x95)||!process[_0x5cc80e(0x99)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x199273=a238_0x4127;if(!process[_0x199273(0x92)][_0x199273(0xa1)])return![];try{const _0xa8314a=process[_0x199273(0x92)][_0x199273(0xa0)];return process[_0x199273(0x92)]['setRawMode'](!![]),process[_0x199273(0x92)][_0x199273(0x93)](_0xa8314a??![]),!![];}catch{return![];}}function a238_0x4127(_0x1fc597,_0x1ad6a3){_0x1fc597=_0x1fc597-0x92;const _0x1473de=a238_0x1473();let _0x412750=_0x1473de[_0x1fc597];return _0x412750;}function a238_0x1473(){const _0x21a3ee=['isRaw','isTTY','1034203DMrAkC','4XzTcTB','stdin','setRawMode','7792EXrKhg','true','145PEipfb','884430OOIrCN','9603IIraUq','stdout','904694YIRIAJ','2951769nTLjrx','20256NdCMME','56604gsWzUr','3773deVJLK','2chTgUQ'];a238_0x1473=function(){return _0x21a3ee;};return a238_0x1473();}
1
+ (function(_0x3cb1a4,_0x1298b1){const _0x5833ca=a238_0x327e,_0x1f1b9e=_0x3cb1a4();while(!![]){try{const _0x147294=-parseInt(_0x5833ca(0xd3))/0x1*(parseInt(_0x5833ca(0xcc))/0x2)+-parseInt(_0x5833ca(0xc5))/0x3*(parseInt(_0x5833ca(0xc3))/0x4)+parseInt(_0x5833ca(0xc6))/0x5+parseInt(_0x5833ca(0xd2))/0x6*(-parseInt(_0x5833ca(0xc8))/0x7)+-parseInt(_0x5833ca(0xd0))/0x8+parseInt(_0x5833ca(0xc7))/0x9*(parseInt(_0x5833ca(0xc4))/0xa)+parseInt(_0x5833ca(0xd4))/0xb;if(_0x147294===_0x1298b1)break;else _0x1f1b9e['push'](_0x1f1b9e['shift']());}catch(_0x383b21){_0x1f1b9e['push'](_0x1f1b9e['shift']());}}}(a238_0x3fc2,0xc1622));function env(_0xf35319){return process.env[`RABETBASE_${_0xf35319}`]||process.env[`LOVRABET_${_0xf35319}`]||undefined;}export function isNonInteractive(_0x34b115){const _0x4061ba=a238_0x327e;return!!(_0x34b115[_0x4061ba(0xce)]||_0x34b115['ci']||env('CI')==='true'||process.env.CI===_0x4061ba(0xc9)||!process[_0x4061ba(0xca)][_0x4061ba(0xcd)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x444709=a238_0x327e;if(!process[_0x444709(0xcb)]['isTTY'])return![];try{const _0x216b9a=process[_0x444709(0xcb)][_0x444709(0xcf)];return process[_0x444709(0xcb)][_0x444709(0xd1)](!![]),process[_0x444709(0xcb)]['setRawMode'](_0x216b9a??![]),!![];}catch{return![];}}function a238_0x327e(_0x2eb88b,_0x5d7cac){_0x2eb88b=_0x2eb88b-0xc3;const _0x3fc2c0=a238_0x3fc2();let _0x327e35=_0x3fc2c0[_0x2eb88b];return _0x327e35;}function a238_0x3fc2(){const _0x3dff1f=['2Slqigt','isTTY','nonInteractive','isRaw','2952328iRWFZH','setRawMode','4437030CyClmj','1397797fbyahd','36089779gUmrde','1910024nKnmkP','580bAcVMK','9KpSmry','5789910cakxIB','45324JePDwY','7YtWYPm','true','stdout','stdin'];a238_0x3fc2=function(){return _0x3dff1f;};return a238_0x3fc2();}
@@ -1 +1 @@
1
- const a239_0x500d5c=a239_0x3a1b;(function(_0x3d1d4d,_0x45f04b){const _0x48c1f7=a239_0x3a1b,_0x2011b3=_0x3d1d4d();while(!![]){try{const _0x1a0c64=-parseInt(_0x48c1f7(0x1be))/0x1+-parseInt(_0x48c1f7(0x198))/0x2*(parseInt(_0x48c1f7(0x1b8))/0x3)+-parseInt(_0x48c1f7(0x1ac))/0x4+-parseInt(_0x48c1f7(0x19c))/0x5+parseInt(_0x48c1f7(0x190))/0x6*(-parseInt(_0x48c1f7(0x192))/0x7)+parseInt(_0x48c1f7(0x1b4))/0x8+parseInt(_0x48c1f7(0x1bd))/0x9*(parseInt(_0x48c1f7(0x1b5))/0xa);if(_0x1a0c64===_0x45f04b)break;else _0x2011b3['push'](_0x2011b3['shift']());}catch(_0xed4d01){_0x2011b3['push'](_0x2011b3['shift']());}}}(a239_0x37ae,0xe8925));import a239_0x69b7b3 from'winston';import a239_0x51b12d from'node:fs';import a239_0x27af72 from'node:path';function a239_0x3a1b(_0x456037,_0x5f5aaa){_0x456037=_0x456037-0x187;const _0x37aef3=a239_0x37ae();let _0x3a1ba1=_0x37aef3[_0x456037];return _0x3a1ba1;}class Logger{[a239_0x500d5c(0x18f)];[a239_0x500d5c(0x188)];[a239_0x500d5c(0x18e)]='';constructor(){const _0x4c76e7=a239_0x500d5c;this[_0x4c76e7(0x188)]='';}[a239_0x500d5c(0x199)](_0x2a9af5){const _0x56fb36=a239_0x500d5c;this[_0x56fb36(0x18e)]=_0x2a9af5;}[a239_0x500d5c(0x18a)](){const _0x39694c=a239_0x500d5c,_0x47ba17=a239_0x27af72[_0x39694c(0x1ad)](this[_0x39694c(0x188)]);!a239_0x51b12d[_0x39694c(0x1aa)](_0x47ba17)&&a239_0x51b12d[_0x39694c(0x196)](_0x47ba17,{'recursive':!![]});const _0x21f681=a239_0x69b7b3[_0x39694c(0x19f)][_0x39694c(0x1af)](a239_0x69b7b3[_0x39694c(0x19f)][_0x39694c(0x1ba)](),a239_0x69b7b3[_0x39694c(0x19f)][_0x39694c(0x19a)]({'stack':!![]}),a239_0x69b7b3['format'][_0x39694c(0x1b2)](_0x575b31=>{const _0x580f9c=_0x39694c,_0x4dd74e={'timestamp':_0x575b31[_0x580f9c(0x1ba)]||new Date()[_0x580f9c(0x1bf)](),'level':_0x575b31[_0x580f9c(0x18c)]||_0x580f9c(0x1a6),'command':_0x575b31[_0x580f9c(0x18b)]||_0x580f9c(0x1a7),'rawCommand':_0x575b31['rawCommand']||this[_0x580f9c(0x18e)]||undefined,'message':_0x575b31[_0x580f9c(0x1a4)]||'','duration':_0x575b31[_0x580f9c(0x1b3)]||undefined,'details':_0x575b31[_0x580f9c(0x1bb)]||undefined};return JSON[_0x580f9c(0x19b)](_0x4dd74e);}));this[_0x39694c(0x18f)]=a239_0x69b7b3[_0x39694c(0x1a1)]({'level':_0x39694c(0x1a6),'format':_0x21f681,'transports':[new a239_0x69b7b3['transports'][(_0x39694c(0x194))]({'filename':this[_0x39694c(0x188)],'level':_0x39694c(0x1a6)})],'silent':![]}),a239_0x69b7b3[_0x39694c(0x193)]({'success':_0x39694c(0x1a5),'error':_0x39694c(0x19e),'warn':_0x39694c(0x1b6),'info':_0x39694c(0x1ab)});}['setLogPath'](_0x1c43ef){const _0x52f260=a239_0x500d5c;this[_0x52f260(0x188)]=a239_0x27af72['join'](_0x1c43ef,'.lovrabet.log'),this[_0x52f260(0x18f)]&&this['winstonLogger']['clear'](),this[_0x52f260(0x18a)]();}[a239_0x500d5c(0x1a6)](_0xc4e56f,_0x2ad6f8,_0x4cbe34){const _0x417f44=a239_0x500d5c;if(!this[_0x417f44(0x188)]||!this[_0x417f44(0x18f)])return;this['winstonLogger'][_0x417f44(0x1a6)](_0x2ad6f8,{'command':_0xc4e56f,'details':_0x4cbe34});}['success'](_0x24c7d2,_0x55091c,_0x57f0d2,_0x568a19){const _0x109e31=a239_0x500d5c;if(!this[_0x109e31(0x188)]||!this[_0x109e31(0x18f)])return;this['winstonLogger'][_0x109e31(0x1a3)](_0x109e31(0x1a6),_0x55091c,{'level':_0x109e31(0x191),'command':_0x24c7d2,'duration':_0x57f0d2,'details':_0x568a19});}[a239_0x500d5c(0x1ae)](_0x5e356b,_0x10d9ba,_0x449470){const _0x5cd8a8=a239_0x500d5c;if(!this[_0x5cd8a8(0x188)]||!this['winstonLogger'])return;this['winstonLogger'][_0x5cd8a8(0x1ae)](_0x10d9ba,{'command':_0x5e356b,'details':_0x449470});}[a239_0x500d5c(0x1b0)](_0x531e80,_0x3fbc3a,_0x287135){const _0x5d0ed6=a239_0x500d5c;if(!this['logFilePath']||!this[_0x5d0ed6(0x18f)])return;this[_0x5d0ed6(0x18f)][_0x5d0ed6(0x1b0)](_0x3fbc3a,{'command':_0x531e80,'details':_0x287135});}async[a239_0x500d5c(0x1bc)](_0x2150c0,_0x59df09,_0x1352b3){const _0x41dc2b=a239_0x500d5c,_0x4807e2=Date[_0x41dc2b(0x1a2)]();this[_0x41dc2b(0x1a6)](_0x2150c0,_0x41dc2b(0x1b1)+_0x59df09);try{const _0x25439d=await _0x1352b3(),_0x2523a7=Date[_0x41dc2b(0x1a2)]()-_0x4807e2;return this[_0x41dc2b(0x191)](_0x2150c0,_0x41dc2b(0x1a8)+_0x59df09,_0x2523a7),_0x25439d;}catch(_0x4b843b){const _0x5ebe2e=Date['now']()-_0x4807e2;this[_0x41dc2b(0x1ae)](_0x2150c0,_0x41dc2b(0x19d)+_0x59df09,{'error':_0x4b843b instanceof Error?_0x4b843b[_0x41dc2b(0x1a4)]:String(_0x4b843b),'duration':_0x5ebe2e});throw _0x4b843b;}}['readLogs'](){const _0x9d9fec=a239_0x500d5c;try{if(!a239_0x51b12d[_0x9d9fec(0x1aa)](this[_0x9d9fec(0x188)]))return[];const _0x2592e7=a239_0x51b12d['readFileSync'](this[_0x9d9fec(0x188)],_0x9d9fec(0x189));return _0x2592e7['split']('\x0a')[_0x9d9fec(0x1a0)](_0x63ed79=>_0x63ed79[_0x9d9fec(0x197)]())[_0x9d9fec(0x1b7)](_0x212551=>JSON['parse'](_0x212551));}catch(_0xa76ff3){return console['warn'](_0x9d9fec(0x1a9),_0xa76ff3),[];}}[a239_0x500d5c(0x18d)](){const _0x3cc06e=a239_0x500d5c;try{a239_0x51b12d[_0x3cc06e(0x1aa)](this[_0x3cc06e(0x188)])&&a239_0x51b12d[_0x3cc06e(0x187)](this[_0x3cc06e(0x188)],'',_0x3cc06e(0x189));}catch(_0x3df65f){console[_0x3cc06e(0x1b0)](_0x3cc06e(0x195),_0x3df65f);}}[a239_0x500d5c(0x1b9)](){const _0x2bf14d=a239_0x500d5c;return this[_0x2bf14d(0x18f)];}}export const logger=new Logger();function a239_0x37ae(){const _0x5f0401=['format','filter','createLogger','now','log','message','green','info','unknown','完成:\x20','Failed\x20to\x20read\x20logs:','existsSync','blue','2628376YZnVXs','dirname','error','combine','warn','开始执行:\x20','printf','duration','9521360KbMBvd','143140JKJxsX','yellow','map','618279tVwGar','getWinstonInstance','timestamp','details','logTask','3204kJOexf','1830148LUalSm','toISOString','writeFileSync','logFilePath','utf8','initWinstonLogger','command','level','clearLogs','currentRawCommand','winstonLogger','36HzAyPw','success','1369914MjGahe','addColors','File','Failed\x20to\x20clear\x20logs:','mkdirSync','trim','2ptagav','setRawCommand','errors','stringify','7328970sDWXFu','失败:\x20','red'];a239_0x37ae=function(){return _0x5f0401;};return a239_0x37ae();}
1
+ function a239_0x39e6(_0x345b33,_0x363273){_0x345b33=_0x345b33-0x130;const _0x2c2445=a239_0x2c24();let _0x39e616=_0x2c2445[_0x345b33];return _0x39e616;}const a239_0x4b2929=a239_0x39e6;(function(_0x1eecad,_0x427909){const _0x2af423=a239_0x39e6,_0x5d9220=_0x1eecad();while(!![]){try{const _0x57f5b8=-parseInt(_0x2af423(0x167))/0x1+-parseInt(_0x2af423(0x15a))/0x2+-parseInt(_0x2af423(0x146))/0x3*(-parseInt(_0x2af423(0x166))/0x4)+-parseInt(_0x2af423(0x160))/0x5*(parseInt(_0x2af423(0x13e))/0x6)+parseInt(_0x2af423(0x134))/0x7*(parseInt(_0x2af423(0x131))/0x8)+-parseInt(_0x2af423(0x135))/0x9+parseInt(_0x2af423(0x142))/0xa*(parseInt(_0x2af423(0x155))/0xb);if(_0x57f5b8===_0x427909)break;else _0x5d9220['push'](_0x5d9220['shift']());}catch(_0x47669b){_0x5d9220['push'](_0x5d9220['shift']());}}}(a239_0x2c24,0xad3fe));import a239_0x37ec1e from'winston';import a239_0x6333dc from'node:fs';import a239_0x284185 from'node:path';function a239_0x2c24(){const _0x6f009d=['warn','setRawCommand','getWinstonInstance','success','error','errors','开始执行:\x20','363tmqZdC','green','map','timestamp','readFileSync','2431508cNzYMC','trim','currentRawCommand','existsSync','utf8','filter','663690JqMdPC','addColors','info','message','winstonLogger','完成:\x20','6812zGBACT','694943lIrYqr','combine','336YSWJlY','red','printf','25179LvDTDF','11042136wWnHZl','initWinstonLogger','command','logFilePath','format','blue','level','clearLogs','unknown','18xzfpfK','dirname','stringify','parse','1236590gpycRN','now','details','yellow','24qCOTWb','失败:\x20','clear','duration','logTask','writeFileSync','mkdirSync','Failed\x20to\x20read\x20logs:'];a239_0x2c24=function(){return _0x6f009d;};return a239_0x2c24();}class Logger{[a239_0x4b2929(0x164)];[a239_0x4b2929(0x138)];[a239_0x4b2929(0x15c)]='';constructor(){this['logFilePath']='';}[a239_0x4b2929(0x14f)](_0x1fdffb){const _0x5007d2=a239_0x4b2929;this[_0x5007d2(0x15c)]=_0x1fdffb;}[a239_0x4b2929(0x136)](){const _0x205146=a239_0x4b2929,_0x548443=a239_0x284185[_0x205146(0x13f)](this['logFilePath']);!a239_0x6333dc[_0x205146(0x15d)](_0x548443)&&a239_0x6333dc[_0x205146(0x14c)](_0x548443,{'recursive':!![]});const _0x404ddd=a239_0x37ec1e[_0x205146(0x139)][_0x205146(0x130)](a239_0x37ec1e[_0x205146(0x139)][_0x205146(0x158)](),a239_0x37ec1e['format'][_0x205146(0x153)]({'stack':!![]}),a239_0x37ec1e[_0x205146(0x139)][_0x205146(0x133)](_0x3537a4=>{const _0x25a219=_0x205146,_0xf0bf35={'timestamp':_0x3537a4[_0x25a219(0x158)]||new Date()['toISOString'](),'level':_0x3537a4[_0x25a219(0x13b)]||_0x25a219(0x162),'command':_0x3537a4[_0x25a219(0x137)]||_0x25a219(0x13d),'rawCommand':_0x3537a4['rawCommand']||this[_0x25a219(0x15c)]||undefined,'message':_0x3537a4[_0x25a219(0x163)]||'','duration':_0x3537a4[_0x25a219(0x149)]||undefined,'details':_0x3537a4[_0x25a219(0x144)]||undefined};return JSON[_0x25a219(0x140)](_0xf0bf35);}));this[_0x205146(0x164)]=a239_0x37ec1e['createLogger']({'level':_0x205146(0x162),'format':_0x404ddd,'transports':[new a239_0x37ec1e['transports']['File']({'filename':this[_0x205146(0x138)],'level':_0x205146(0x162)})],'silent':![]}),a239_0x37ec1e[_0x205146(0x161)]({'success':_0x205146(0x156),'error':_0x205146(0x132),'warn':_0x205146(0x145),'info':_0x205146(0x13a)});}['setLogPath'](_0x189512){const _0x5f2972=a239_0x4b2929;this[_0x5f2972(0x138)]=a239_0x284185['join'](_0x189512,'.lovrabet.log'),this['winstonLogger']&&this[_0x5f2972(0x164)][_0x5f2972(0x148)](),this['initWinstonLogger']();}[a239_0x4b2929(0x162)](_0x188840,_0x23e255,_0x15f077){const _0x2e18cb=a239_0x4b2929;if(!this['logFilePath']||!this[_0x2e18cb(0x164)])return;this[_0x2e18cb(0x164)]['info'](_0x23e255,{'command':_0x188840,'details':_0x15f077});}[a239_0x4b2929(0x151)](_0x33bb1e,_0x25179b,_0x4ee572,_0x25afae){const _0x18fe10=a239_0x4b2929;if(!this[_0x18fe10(0x138)]||!this['winstonLogger'])return;this['winstonLogger']['log'](_0x18fe10(0x162),_0x25179b,{'level':_0x18fe10(0x151),'command':_0x33bb1e,'duration':_0x4ee572,'details':_0x25afae});}['error'](_0x35e640,_0x3bd55c,_0x25e498){const _0x116cdc=a239_0x4b2929;if(!this[_0x116cdc(0x138)]||!this[_0x116cdc(0x164)])return;this['winstonLogger'][_0x116cdc(0x152)](_0x3bd55c,{'command':_0x35e640,'details':_0x25e498});}[a239_0x4b2929(0x14e)](_0x2054d0,_0x38d818,_0x26ff73){const _0xe74d66=a239_0x4b2929;if(!this[_0xe74d66(0x138)]||!this[_0xe74d66(0x164)])return;this[_0xe74d66(0x164)]['warn'](_0x38d818,{'command':_0x2054d0,'details':_0x26ff73});}async[a239_0x4b2929(0x14a)](_0x29c686,_0x129696,_0x4a5211){const _0x199526=a239_0x4b2929,_0xa7393a=Date[_0x199526(0x143)]();this['info'](_0x29c686,_0x199526(0x154)+_0x129696);try{const _0x25b576=await _0x4a5211(),_0x1792b3=Date[_0x199526(0x143)]()-_0xa7393a;return this[_0x199526(0x151)](_0x29c686,_0x199526(0x165)+_0x129696,_0x1792b3),_0x25b576;}catch(_0x4f8b5d){const _0x16452f=Date[_0x199526(0x143)]()-_0xa7393a;this[_0x199526(0x152)](_0x29c686,_0x199526(0x147)+_0x129696,{'error':_0x4f8b5d instanceof Error?_0x4f8b5d[_0x199526(0x163)]:String(_0x4f8b5d),'duration':_0x16452f});throw _0x4f8b5d;}}['readLogs'](){const _0x3c4f19=a239_0x4b2929;try{if(!a239_0x6333dc[_0x3c4f19(0x15d)](this['logFilePath']))return[];const _0xf7a375=a239_0x6333dc[_0x3c4f19(0x159)](this[_0x3c4f19(0x138)],_0x3c4f19(0x15e));return _0xf7a375['split']('\x0a')[_0x3c4f19(0x15f)](_0x22b4cc=>_0x22b4cc[_0x3c4f19(0x15b)]())[_0x3c4f19(0x157)](_0x5055f3=>JSON[_0x3c4f19(0x141)](_0x5055f3));}catch(_0x3c603f){return console['warn'](_0x3c4f19(0x14d),_0x3c603f),[];}}[a239_0x4b2929(0x13c)](){const _0xc3d7af=a239_0x4b2929;try{a239_0x6333dc['existsSync'](this[_0xc3d7af(0x138)])&&a239_0x6333dc[_0xc3d7af(0x14b)](this['logFilePath'],'',_0xc3d7af(0x15e));}catch(_0x11fe63){console[_0xc3d7af(0x14e)]('Failed\x20to\x20clear\x20logs:',_0x11fe63);}}[a239_0x4b2929(0x150)](){const _0x502376=a239_0x4b2929;return this[_0x502376(0x164)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3b3550,_0x6a5fea){const _0x411389=a240_0x17fc,_0x555211=_0x3b3550();while(!![]){try{const _0x154812=parseInt(_0x411389(0x99))/0x1*(parseInt(_0x411389(0x9b))/0x2)+parseInt(_0x411389(0x91))/0x3+-parseInt(_0x411389(0x92))/0x4*(parseInt(_0x411389(0x94))/0x5)+parseInt(_0x411389(0x90))/0x6+-parseInt(_0x411389(0x8e))/0x7+-parseInt(_0x411389(0x93))/0x8+-parseInt(_0x411389(0x9c))/0x9;if(_0x154812===_0x6a5fea)break;else _0x555211['push'](_0x555211['shift']());}catch(_0x549318){_0x555211['push'](_0x555211['shift']());}}}(a240_0x4475,0x73aae));import{CliErrors}from'../errors.js';function a240_0x17fc(_0x3adc59,_0x1bb191){_0x3adc59=_0x3adc59-0x8e;const _0x447562=a240_0x4475();let _0x17fc73=_0x447562[_0x3adc59];return _0x17fc73;}function a240_0x4475(){const _0x3036da=['parse','Invalid\x20JSON\x20for\x20--params:\x20','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','object','1FAJdOb','validation','1720174irkaSF','13635864fsYsRp','204813hffSGP','--params\x20must\x20be\x20a\x20JSON\x20object','4669896iaVBtH','2534439PPoPsh','8VgoMIK','3488840LlOgye','72455LlksmS'];a240_0x4475=function(){return _0x3036da;};return a240_0x4475();}export function parseJsonParams(_0x47095a){const _0x12583c=a240_0x17fc;if(!_0x47095a)return undefined;let _0x1f0a98;try{_0x1f0a98=JSON[_0x12583c(0x95)](_0x47095a);}catch{throw CliErrors[_0x12583c(0x9a)](_0x12583c(0x96)+_0x47095a);}if(!_0x1f0a98||typeof _0x1f0a98!==_0x12583c(0x98)||Array['isArray'](_0x1f0a98))throw CliErrors['validation'](_0x12583c(0x8f),_0x12583c(0x97));return _0x1f0a98;}
1
+ (function(_0x4ea208,_0xc09ddc){const _0x2784cf=a240_0x1c90,_0x3c0be0=_0x4ea208();while(!![]){try{const _0x15e803=-parseInt(_0x2784cf(0x1ae))/0x1*(parseInt(_0x2784cf(0x1ac))/0x2)+-parseInt(_0x2784cf(0x1a6))/0x3*(-parseInt(_0x2784cf(0x1a9))/0x4)+parseInt(_0x2784cf(0x1a5))/0x5+-parseInt(_0x2784cf(0x1a1))/0x6*(-parseInt(_0x2784cf(0x1a3))/0x7)+parseInt(_0x2784cf(0x1ad))/0x8*(-parseInt(_0x2784cf(0x1a2))/0x9)+parseInt(_0x2784cf(0x1af))/0xa+-parseInt(_0x2784cf(0x1aa))/0xb;if(_0x15e803===_0xc09ddc)break;else _0x3c0be0['push'](_0x3c0be0['shift']());}catch(_0xfdb371){_0x3c0be0['push'](_0x3c0be0['shift']());}}}(a240_0x1174,0xf4126));function a240_0x1c90(_0x2131e2,_0x48599a){_0x2131e2=_0x2131e2-0x1a1;const _0x117463=a240_0x1174();let _0x1c9066=_0x117463[_0x2131e2];return _0x1c9066;}function a240_0x1174(){const _0x534da7=['36XxzZFz','parse','validation','66476FiWlNT','575784OaTEWh','isArray','86044MDqZdx','822056OmJkmN','13BgLXUG','14499600wVKqUD','object','5097210XNbNru','81VPnEyU','7dielrp','Invalid\x20JSON\x20for\x20--params:\x20','186190NAZNYZ'];a240_0x1174=function(){return _0x534da7;};return a240_0x1174();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x396a46){const _0x2026c6=a240_0x1c90;if(!_0x396a46)return undefined;let _0x4de590;try{_0x4de590=JSON[_0x2026c6(0x1a7)](_0x396a46);}catch{throw CliErrors[_0x2026c6(0x1a8)](_0x2026c6(0x1a4)+_0x396a46);}if(!_0x4de590||typeof _0x4de590!==_0x2026c6(0x1b0)||Array[_0x2026c6(0x1ab)](_0x4de590))throw CliErrors['validation']('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x4de590;}
@@ -1 +1 @@
1
- const a241_0x35346c=a241_0x8616;(function(_0x1aa298,_0x58d1d9){const _0x31c701=a241_0x8616,_0x581d2a=_0x1aa298();while(!![]){try{const _0x4284eb=-parseInt(_0x31c701(0xce))/0x1*(parseInt(_0x31c701(0xca))/0x2)+-parseInt(_0x31c701(0xd0))/0x3+-parseInt(_0x31c701(0xd4))/0x4+-parseInt(_0x31c701(0xcf))/0x5*(parseInt(_0x31c701(0xd3))/0x6)+-parseInt(_0x31c701(0xd2))/0x7*(-parseInt(_0x31c701(0xcb))/0x8)+parseInt(_0x31c701(0xc8))/0x9*(-parseInt(_0x31c701(0xcc))/0xa)+parseInt(_0x31c701(0xc9))/0xb;if(_0x4284eb===_0x58d1d9)break;else _0x581d2a['push'](_0x581d2a['shift']());}catch(_0x366c3c){_0x581d2a['push'](_0x581d2a['shift']());}}}(a241_0x22e4,0xdba64));function a241_0x8616(_0x2e5160,_0x3b9d50){_0x2e5160=_0x2e5160-0xc8;const _0x22e479=a241_0x22e4();let _0x861634=_0x22e479[_0x2e5160];return _0x861634;}export const isWindows=process[a241_0x35346c(0xcd)]==='win32';function a241_0x22e4(){const _0x113b06=['.cmd','91jiKwEB','63582ZLSYyd','6217800sRaglu','51318bhLnzb','81738745YREOnr','1942914gjhnuY','147512dZQcDn','2530JKbiMY','platform','1wRBZfH','795dEvzDH','3352146tVqedA'];a241_0x22e4=function(){return _0x113b06;};return a241_0x22e4();}export function resolveNpmBin(_0x230fb4){const _0x598bd4=a241_0x35346c;return isWindows?_0x230fb4+_0x598bd4(0xd1):_0x230fb4;}
1
+ const a241_0x36f530=a241_0x2e96;function a241_0x2e96(_0x489c85,_0x5a4593){_0x489c85=_0x489c85-0x1f2;const _0x96c544=a241_0x96c5();let _0x2e9686=_0x96c544[_0x489c85];return _0x2e9686;}(function(_0x2b184c,_0x16be82){const _0x3379bd=a241_0x2e96,_0x2982cc=_0x2b184c();while(!![]){try{const _0x5b570b=parseInt(_0x3379bd(0x1f8))/0x1+parseInt(_0x3379bd(0x1fe))/0x2+parseInt(_0x3379bd(0x1fa))/0x3+parseInt(_0x3379bd(0x1f4))/0x4*(-parseInt(_0x3379bd(0x1f7))/0x5)+parseInt(_0x3379bd(0x1f6))/0x6*(-parseInt(_0x3379bd(0x1fd))/0x7)+parseInt(_0x3379bd(0x1f3))/0x8+-parseInt(_0x3379bd(0x1f9))/0x9*(-parseInt(_0x3379bd(0x1f5))/0xa);if(_0x5b570b===_0x16be82)break;else _0x2982cc['push'](_0x2982cc['shift']());}catch(_0x237cc3){_0x2982cc['push'](_0x2982cc['shift']());}}}(a241_0x96c5,0xa491f));export const isWindows=process[a241_0x36f530(0x1fc)]===a241_0x36f530(0x1f2);function a241_0x96c5(){const _0x1e76d5=['5Xvmfiy','657999DVNCrV','77031LYguaA','1913946jnzpEu','.cmd','platform','84ZCcpDE','223526vOGXXo','win32','9437272OrisYz','3422192qRgTMw','80RgdpnB','563124aIabvK'];a241_0x96c5=function(){return _0x1e76d5;};return a241_0x96c5();}export function resolveNpmBin(_0x3011a9){const _0x129575=a241_0x36f530;return isWindows?_0x3011a9+_0x129575(0x1fb):_0x3011a9;}
@@ -1 +1 @@
1
- const a242_0x15b872=a242_0x30fd;(function(_0x521bfc,_0x5f3df0){const _0xea297a=a242_0x30fd,_0xffcfca=_0x521bfc();while(!![]){try{const _0x4f4248=parseInt(_0xea297a(0x19c))/0x1*(parseInt(_0xea297a(0x1af))/0x2)+-parseInt(_0xea297a(0x1a9))/0x3*(-parseInt(_0xea297a(0x1ae))/0x4)+-parseInt(_0xea297a(0x1a2))/0x5*(parseInt(_0xea297a(0x197))/0x6)+parseInt(_0xea297a(0x1aa))/0x7*(parseInt(_0xea297a(0x1ad))/0x8)+parseInt(_0xea297a(0x19f))/0x9*(parseInt(_0xea297a(0x1a5))/0xa)+parseInt(_0xea297a(0x19a))/0xb*(-parseInt(_0xea297a(0x19e))/0xc)+-parseInt(_0xea297a(0x199))/0xd;if(_0x4f4248===_0x5f3df0)break;else _0xffcfca['push'](_0xffcfca['shift']());}catch(_0x192071){_0xffcfca['push'](_0xffcfca['shift']());}}}(a242_0x4c98,0xd13f1));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';function a242_0x30fd(_0x4e29bf,_0x156ff1){_0x4e29bf=_0x4e29bf-0x196;const _0x4c9877=a242_0x4c98();let _0x30fd69=_0x4c9877[_0x4e29bf];return _0x30fd69;}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 _0x25e7ce=a242_0x30fd,_0x2c35df=getTemplateBaseUrl();return _0x2c35df+_0x25e7ce(0x1a0);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a242_0x15b872(0x1a1));export async function fetchRulesFromCDN(){const _0x587e00=a242_0x15b872,_0x2cc380=getRulesCdnUrl(),_0x1676ec=await fetch(_0x2cc380,{'headers':{'Accept':_0x587e00(0x1a4)}});if(!_0x1676ec['ok'])throw new Error(_0x587e00(0x196)+_0x1676ec[_0x587e00(0x1b0)]+'\x20'+_0x1676ec[_0x587e00(0x1b1)]);const _0x28bd7f=await _0x1676ec[_0x587e00(0x19d)]();if(!_0x28bd7f[_0x587e00(0x1a3)]||typeof _0x28bd7f[_0x587e00(0x1a3)]!==_0x587e00(0x1ac))throw new Error(_0x587e00(0x1a7));return _0x28bd7f;}export async function getRulesContent(){try{const _0x4c4d58=await fetchRulesFromCDN();return _0x4c4d58['content'];}catch{return readLocalTemplate();}}function a242_0x4c98(){const _0x3e3cf1=['26JWLCXX','status','statusText','CDN\x20请求失败:\x20','4182IASoTy','utf-8','15281032APmPPm','88RQBvWU','lastUpdated','68464UKOJAD','json','1160364yrULuS','1901259sacVft','/rules/rules.json','../../templates/rules/lovrabet_rules.mdc.tpl','6455dJmFIj','content','application/json','30xigLKK','本地模板文件不存在:\x20','CDN\x20返回数据格式错误','lovrabet_rules.mdc','57BUGCQE','721QmOQSb','agents.md','string','51704LRKEvr','319256ffRTlS'];a242_0x4c98=function(){return _0x3e3cf1;};return a242_0x4c98();}export function readLocalTemplate(){const _0x13b686=a242_0x15b872;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x13b686(0x198));throw new Error(_0x13b686(0x1a6)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xd3bc88){const _0x401837=a242_0x15b872,_0x4eebe2=await fetchRulesFromCDN()['catch'](()=>null);let _0x3a65c3;_0x4eebe2?(_0x3a65c3=_0x4eebe2[_0x401837(0x1a3)],_0x4eebe2['lastUpdated']&&(_0x3a65c3=appendUpdateTime(_0x3a65c3,_0x4eebe2[_0x401837(0x19b)]))):_0x3a65c3=readLocalTemplate();const _0x44a740=dirname(_0xd3bc88);!existsSync(_0x44a740)&&mkdirSync(_0x44a740,{'recursive':!![]}),writeFileSync(_0xd3bc88,_0x3a65c3,'utf-8');}export async function copyRulesToCursor(_0x1258a7){const _0x2290a6=a242_0x15b872,_0x9070b4=join(_0x1258a7,'.cursor/rules'),_0x540c53=join(_0x9070b4,_0x2290a6(0x1a8));if(existsSync(_0x540c53))return![];return await writeRulesFile(_0x540c53),!![];}export async function copyRulesToAgentsMd(_0xa7ce86){const _0x447dde=a242_0x15b872,_0x3cbfe4=join(_0xa7ce86,_0x447dde(0x1ab));if(existsSync(_0x3cbfe4))return![];return await writeRulesFile(_0x3cbfe4),!![];}
1
+ const a242_0x3382fe=a242_0x44b7;(function(_0xbfb6c7,_0x401ba8){const _0x5941a4=a242_0x44b7,_0xa60f7a=_0xbfb6c7();while(!![]){try{const _0x587910=parseInt(_0x5941a4(0x12d))/0x1*(-parseInt(_0x5941a4(0x12a))/0x2)+parseInt(_0x5941a4(0x127))/0x3+-parseInt(_0x5941a4(0x126))/0x4*(parseInt(_0x5941a4(0x121))/0x5)+-parseInt(_0x5941a4(0x12f))/0x6+-parseInt(_0x5941a4(0x132))/0x7+-parseInt(_0x5941a4(0x133))/0x8*(parseInt(_0x5941a4(0x123))/0x9)+parseInt(_0x5941a4(0x136))/0xa;if(_0x587910===_0x401ba8)break;else _0xa60f7a['push'](_0xa60f7a['shift']());}catch(_0x286f4d){_0xa60f7a['push'](_0xa60f7a['shift']());}}}(a242_0x332f,0x7c22e));function a242_0x44b7(_0x29f1bd,_0x35da9d){_0x29f1bd=_0x29f1bd-0x121;const _0x332f73=a242_0x332f();let _0x44b7c9=_0x332f73[_0x29f1bd];return _0x44b7c9;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'node:fs';import{dirname,join,resolve}from'node:path';function a242_0x332f(){const _0x5eacb4=['2xLClpT','application/json','4576926VZwiBv','string','CDN\x20返回数据格式错误','3190572BEkwQQ','85664UAltRE','agents.md','utf-8','29978970vMeaHI','lastUpdated','996755HxuXYy','../../templates/rules/lovrabet_rules.mdc.tpl','684KCngWU','lovrabet_rules.mdc','content','4dWVIeN','2009877OIyEcL','CDN\x20请求失败:\x20','json','927618aVJkvN','本地模板文件不存在:\x20','/rules/rules.json'];a242_0x332f=function(){return _0x5eacb4;};return a242_0x332f();}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 _0x9e2866=a242_0x44b7,_0x4677cd=getTemplateBaseUrl();return _0x4677cd+_0x9e2866(0x12c);}const LOCAL_TEMPLATE_PATH=resolve(__dirname,a242_0x3382fe(0x122));export async function fetchRulesFromCDN(){const _0xb69049=a242_0x3382fe,_0x4a5c4b=getRulesCdnUrl(),_0x45758b=await fetch(_0x4a5c4b,{'headers':{'Accept':_0xb69049(0x12e)}});if(!_0x45758b['ok'])throw new Error(_0xb69049(0x128)+_0x45758b['status']+'\x20'+_0x45758b['statusText']);const _0x7c3f9=await _0x45758b[_0xb69049(0x129)]();if(!_0x7c3f9[_0xb69049(0x125)]||typeof _0x7c3f9[_0xb69049(0x125)]!==_0xb69049(0x130))throw new Error(_0xb69049(0x131));return _0x7c3f9;}export async function getRulesContent(){const _0x4e56f4=a242_0x3382fe;try{const _0x3cc56d=await fetchRulesFromCDN();return _0x3cc56d[_0x4e56f4(0x125)];}catch{return readLocalTemplate();}}export function readLocalTemplate(){const _0x2cade6=a242_0x3382fe;if(existsSync(LOCAL_TEMPLATE_PATH))return readFileSync(LOCAL_TEMPLATE_PATH,_0x2cade6(0x135));throw new Error(_0x2cade6(0x12b)+LOCAL_TEMPLATE_PATH);}export async function writeRulesFile(_0xfb5a0a){const _0x437bc6=a242_0x3382fe,_0x4be1b9=await fetchRulesFromCDN()['catch'](()=>null);let _0x1dd8d0;_0x4be1b9?(_0x1dd8d0=_0x4be1b9['content'],_0x4be1b9[_0x437bc6(0x137)]&&(_0x1dd8d0=appendUpdateTime(_0x1dd8d0,_0x4be1b9['lastUpdated']))):_0x1dd8d0=readLocalTemplate();const _0x358b81=dirname(_0xfb5a0a);!existsSync(_0x358b81)&&mkdirSync(_0x358b81,{'recursive':!![]}),writeFileSync(_0xfb5a0a,_0x1dd8d0,_0x437bc6(0x135));}export async function copyRulesToCursor(_0x207b16){const _0x16ee12=a242_0x3382fe,_0x2bc7ca=join(_0x207b16,'.cursor/rules'),_0x3b2533=join(_0x2bc7ca,_0x16ee12(0x124));if(existsSync(_0x3b2533))return![];return await writeRulesFile(_0x3b2533),!![];}export async function copyRulesToAgentsMd(_0x58ac5c){const _0x4b5f1b=a242_0x3382fe,_0x2b2db6=join(_0x58ac5c,_0x4b5f1b(0x134));if(existsSync(_0x2b2db6))return![];return await writeRulesFile(_0x2b2db6),!![];}
@@ -1 +1 @@
1
- export function sleep(_0x2cc736){return new Promise(_0x28f963=>setTimeout(_0x28f963,_0x2cc736));}
1
+ export function sleep(_0x1eae98){return new Promise(_0x42bf28=>setTimeout(_0x42bf28,_0x1eae98));}
@@ -1 +1 @@
1
- function a244_0x1da7(_0x35473,_0x43e891){_0x35473=_0x35473-0x149;const _0x521a7c=a244_0x521a();let _0x1da796=_0x521a7c[_0x35473];return _0x1da796;}const a244_0x42481c=a244_0x1da7;(function(_0x4e8328,_0x385664){const _0x4fea3e=a244_0x1da7,_0x4dda52=_0x4e8328();while(!![]){try{const _0x4fb881=-parseInt(_0x4fea3e(0x179))/0x1+-parseInt(_0x4fea3e(0x180))/0x2+-parseInt(_0x4fea3e(0x176))/0x3+parseInt(_0x4fea3e(0x15e))/0x4+-parseInt(_0x4fea3e(0x151))/0x5*(parseInt(_0x4fea3e(0x157))/0x6)+parseInt(_0x4fea3e(0x186))/0x7*(parseInt(_0x4fea3e(0x178))/0x8)+parseInt(_0x4fea3e(0x165))/0x9;if(_0x4fb881===_0x385664)break;else _0x4dda52['push'](_0x4dda52['shift']());}catch(_0x438d07){_0x4dda52['push'](_0x4dda52['shift']());}}}(a244_0x521a,0x9535b));import a244_0x11705e from'node:fs';import a244_0x52d4b4 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a244_0x521a(){const _0x3c7956=['includes','toDisplayTitle','slice','endsWith','mkdir','3580948ByZiAC','readdir','tableName','YourModel','utf8','extname','template','27017793PPswWa','push','name','formatLocalTimestamp','模板内容替换完成','writeFile','api','info','processDirectory','getDate','now','map','copyFile','.css','name:\x20\x22','.js','datasetCode:\x20\x22','2693997ejUBkT','default','8aegYre','931862vCnSIN','.json','.md','success','alias','\x20},','.ts','2190136wwtQNa','模板内容替换失败','toLowerCase','padStart','alias:\x20\x22','\x0a\x20\x20\x20\x20{\x20','63966hdCwyN','getFullYear','pop','processFile','toISOString','error','join','datasetCode','isFile','toComponentName','message','processTemplate','开始处理模板内容替换','promises','33660GvKIDD','LOVRABET','getHours','replace','split','.tpl','330DzaOuh','pad'];a244_0x521a=function(){return _0x3c7956;};return a244_0x521a();}export class TemplateReplacer{static[a244_0x42481c(0x158)](_0x661514){const _0x5624ca=a244_0x42481c;return String(_0x661514)[_0x5624ca(0x183)](0x2,'0');}static[a244_0x42481c(0x168)](_0x2430b0){const _0x3ccf43=a244_0x42481c,_0x70bb8e=_0x2430b0[_0x3ccf43(0x187)](),_0x5ea89f=this[_0x3ccf43(0x158)](_0x2430b0['getMonth']()+0x1),_0x237bd9=this['pad'](_0x2430b0[_0x3ccf43(0x16e)]()),_0x2cd821=this['pad'](_0x2430b0[_0x3ccf43(0x153)]()),_0x24235e=this[_0x3ccf43(0x158)](_0x2430b0['getMinutes']()),_0x8a048b=this[_0x3ccf43(0x158)](_0x2430b0['getSeconds']());return{'createdAt':_0x70bb8e+'-'+_0x5ea89f+'-'+_0x237bd9+'\x20'+_0x2cd821+':'+_0x24235e+':'+_0x8a048b,'createdDate':_0x70bb8e+'-'+_0x5ea89f+'-'+_0x237bd9,'createdTime':_0x2cd821+':'+_0x24235e+':'+_0x8a048b};}static[a244_0x42481c(0x14c)](_0x53d9bf){const _0x148e20=a244_0x42481c,_0x48eb04=_0x53d9bf['split']('/')[_0x148e20(0x188)]()||_0x53d9bf;return _0x48eb04[_0x148e20(0x155)]('-')['map'](_0x927451=>_0x927451['charAt'](0x0)['toUpperCase']()+_0x927451['slice'](0x1)['toLowerCase']())[_0x148e20(0x149)]('');}static[a244_0x42481c(0x15a)](_0x79d5e){const _0x27f342=a244_0x42481c,_0x106539=_0x79d5e[_0x27f342(0x155)]('/')['pop']()||_0x79d5e;return _0x106539[_0x27f342(0x155)]('-')['map'](_0x2ab38b=>_0x2ab38b['charAt'](0x0)['toUpperCase']()+_0x2ab38b[_0x27f342(0x15b)](0x1)[_0x27f342(0x182)]())[_0x27f342(0x149)]('\x20');}static['replaceContent'](_0x43a2b4,_0xc27e1b,_0x3c1360){const _0x4abb0d=a244_0x42481c,_0x54dcfc=this[_0x4abb0d(0x14c)](_0xc27e1b),_0x24763d=this['toDisplayTitle'](_0xc27e1b),{createdAt:_0x157327,createdDate:_0x37a738,createdTime:_0x2304fc}=this[_0x4abb0d(0x168)](new Date());let _0x5ecbde=_0x43a2b4['replace'](/\{CliVersion\}/g,CLI_VERSION)[_0x4abb0d(0x154)](/\{ComponentName\}/g,_0x54dcfc)[_0x4abb0d(0x154)](/\{DisplayTitle\}/g,_0x24763d)[_0x4abb0d(0x154)](/\{PageName\}/g,_0xc27e1b)[_0x4abb0d(0x154)](/\{TemplateName\}/g,_0x3c1360)[_0x4abb0d(0x154)](/\{CreatedAt\}/g,_0x157327)[_0x4abb0d(0x154)](/\{CreatedDate\}/g,_0x37a738)['replace'](/\{CreatedTime\}/g,_0x2304fc);return _0x5ecbde;}static['replaceApiContent'](_0x50dc8f,_0x257f00,_0x1b5e4c,_0x568725,_0x596707,_0x309b3b,_0x6ecdf6,_0x831bc4){const _0x442c60=a244_0x42481c,_0x983e66=new Date(),_0x4839c6=_0x983e66[_0x442c60(0x18a)](),_0x2816f8=_0x1b5e4c[_0x442c60(0x170)](_0x2f0da6=>{const _0x53eb6d=_0x442c60,_0x1b5c06=[_0x53eb6d(0x175)+_0x2f0da6[_0x53eb6d(0x14a)]+'\x22','tableName:\x20\x22'+_0x2f0da6[_0x53eb6d(0x160)]+'\x22',_0x53eb6d(0x173)+_0x2f0da6[_0x53eb6d(0x167)]+'\x22'];return _0x2f0da6['alias']&&_0x1b5c06[_0x53eb6d(0x166)](_0x53eb6d(0x184)+_0x2f0da6['alias']+'\x22'),_0x53eb6d(0x185)+_0x1b5c06[_0x53eb6d(0x149)](',\x20')+_0x53eb6d(0x17e);})['join'](''),_0x1390a0=_0x568725||_0x1b5e4c[0x0]?.[_0x442c60(0x17d)]||_0x442c60(0x161);let _0x4004a4=_0x50dc8f['replace'](/\{AppCode\}/g,_0x257f00)[_0x442c60(0x154)](/\{ModelConfigs\}/g,_0x2816f8)[_0x442c60(0x154)](/\{ExampleModelName\}/g,_0x1390a0)[_0x442c60(0x154)](/\{ApiFileName\}/g,_0x596707||_0x442c60(0x16b))['replace'](/\{ConfigName\}/g,_0x309b3b||_0x442c60(0x177))['replace'](/\{ClientConfigParam\}/g,_0x6ecdf6||'')[_0x442c60(0x154)](/\{VarPrefix\}/g,_0x831bc4||_0x442c60(0x152))[_0x442c60(0x154)](/\{CreatedAt\}/g,_0x4839c6);return _0x4004a4;}static async[a244_0x42481c(0x14e)](_0x1e5f1f,_0x53e12c,_0x2b650f,_0x36317d,_0x3af2ad=!![]){const _0x3748fc=a244_0x42481c,_0x43a4ac=Date['now']();try{_0x3af2ad&&logger[_0x3748fc(0x16c)]('template',_0x3748fc(0x14f),{'templatePath':_0x1e5f1f,'targetPath':_0x53e12c,'pageName':_0x2b650f,'templateName':_0x36317d});await a244_0x11705e[_0x3748fc(0x150)][_0x3748fc(0x15d)](_0x53e12c,{'recursive':!![]}),await this[_0x3748fc(0x16d)](_0x1e5f1f,_0x53e12c,_0x2b650f,_0x36317d);if(_0x3af2ad){const _0xa1db96=Date[_0x3748fc(0x16f)]()-_0x43a4ac;logger[_0x3748fc(0x17c)]('template',_0x3748fc(0x169),_0xa1db96,{'pageName':_0x2b650f,'templateName':_0x36317d});}}catch(_0x3cf1f8){if(_0x3af2ad){const _0x256142=Date[_0x3748fc(0x16f)]()-_0x43a4ac;logger[_0x3748fc(0x18b)](_0x3748fc(0x164),_0x3748fc(0x181),{'templatePath':_0x1e5f1f,'targetPath':_0x53e12c,'pageName':_0x2b650f,'templateName':_0x36317d,'error':_0x3cf1f8 instanceof Error?_0x3cf1f8[_0x3748fc(0x14d)]:String(_0x3cf1f8),'duration':_0x256142});}throw _0x3cf1f8;}}static async[a244_0x42481c(0x16d)](_0x14e660,_0x3338dd,_0x798ae,_0x3f7739){const _0x50287f=a244_0x42481c,_0x317be0=await a244_0x11705e[_0x50287f(0x150)][_0x50287f(0x15f)](_0x14e660,{'withFileTypes':!![]});for(const _0x1e1810 of _0x317be0){const _0x4e280f=a244_0x52d4b4[_0x50287f(0x149)](_0x14e660,_0x1e1810[_0x50287f(0x167)]);let _0x3a3d71=a244_0x52d4b4['join'](_0x3338dd,_0x1e1810['name']);_0x1e1810[_0x50287f(0x167)][_0x50287f(0x15c)](_0x50287f(0x156))&&(_0x3a3d71=a244_0x52d4b4[_0x50287f(0x149)](_0x3338dd,_0x1e1810[_0x50287f(0x167)]['replace'](/\.tpl$/,'')));if(_0x1e1810['isDirectory']())await a244_0x11705e['promises']['mkdir'](_0x3a3d71,{'recursive':!![]}),await this['processDirectory'](_0x4e280f,_0x3a3d71,_0x798ae,_0x3f7739);else _0x1e1810[_0x50287f(0x14b)]()&&await this[_0x50287f(0x189)](_0x4e280f,_0x3a3d71,_0x798ae,_0x3f7739);}}static async['processFile'](_0x43b9f0,_0x258170,_0x2e4cf0,_0x444944){const _0x493a70=a244_0x42481c,_0x20115f=a244_0x52d4b4[_0x493a70(0x163)](_0x43b9f0)[_0x493a70(0x182)]();_0x43b9f0['endsWith'](_0x493a70(0x156))&&(_0x258170=_0x258170[_0x493a70(0x154)](/\.tpl$/,''));const _0x488a0d=['.tsx',_0x493a70(0x17f),'.jsx',_0x493a70(0x174),_0x493a70(0x17a),_0x493a70(0x17b),_0x493a70(0x172),'.scss',_0x493a70(0x156)];if(_0x488a0d[_0x493a70(0x159)](_0x20115f)||_0x43b9f0[_0x493a70(0x15c)]('.tpl')){const _0x216718=await a244_0x11705e['promises']['readFile'](_0x43b9f0,'utf8'),_0x190070=this['replaceContent'](_0x216718,_0x2e4cf0,_0x444944);await a244_0x11705e['promises'][_0x493a70(0x16a)](_0x258170,_0x190070,_0x493a70(0x162));}else await a244_0x11705e[_0x493a70(0x150)][_0x493a70(0x171)](_0x43b9f0,_0x258170);}}
1
+ const a244_0x168407=a244_0x4ad8;(function(_0x91bb7e,_0x3fc2e6){const _0x5878ea=a244_0x4ad8,_0x5449ce=_0x91bb7e();while(!![]){try{const _0x2c209f=parseInt(_0x5878ea(0x20b))/0x1*(parseInt(_0x5878ea(0x201))/0x2)+-parseInt(_0x5878ea(0x1ef))/0x3+parseInt(_0x5878ea(0x1fb))/0x4+-parseInt(_0x5878ea(0x216))/0x5*(parseInt(_0x5878ea(0x1db))/0x6)+-parseInt(_0x5878ea(0x211))/0x7*(-parseInt(_0x5878ea(0x1e6))/0x8)+parseInt(_0x5878ea(0x204))/0x9+parseInt(_0x5878ea(0x1df))/0xa*(-parseInt(_0x5878ea(0x1ec))/0xb);if(_0x2c209f===_0x3fc2e6)break;else _0x5449ce['push'](_0x5449ce['shift']());}catch(_0x974e64){_0x5449ce['push'](_0x5449ce['shift']());}}}(a244_0x14fe,0xd3673));import a244_0x2f09f1 from'node:fs';function a244_0x14fe(){const _0x47e9fa=['.css','开始处理模板内容替换','error','promises','split','processDirectory','24084lIbMof','padStart','getDate','toComponentName','10JuKeRI','.tpl','getFullYear','alias:\x20\x22','alias','join','slice','304qouGxH','pop','模板内容替换失败','processFile','now','toISOString','2195292qKZoYh','getSeconds','\x0a\x20\x20\x20\x20{\x20','1464810ibabTw','tableName','.json','copyFile','.jsx','name','toLowerCase','datasetCode:\x20\x22','datasetCode','extname','includes','mkdir','218820VviUrU','push','charAt','formatLocalTimestamp','writeFile','replaceApiContent','2pOwJcl','isFile','模板内容替换完成','15158925yYGNIH','readdir','LOVRABET','replace','tableName:\x20\x22','.ts','utf8','443107DjugAr','.js','readFile','endsWith','name:\x20\x22','isDirectory','196280YsNsgh','pad','getMonth','map','template','2110eUmMcP','replaceContent','.tsx'];a244_0x14fe=function(){return _0x47e9fa;};return a244_0x14fe();}import a244_0x50abb6 from'node:path';import{logger}from'../utils/logger.js';function a244_0x4ad8(_0x10def3,_0x545165){_0x10def3=_0x10def3-0x1d3;const _0x14feb8=a244_0x14fe();let _0x4ad8b3=_0x14feb8[_0x10def3];return _0x4ad8b3;}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a244_0x168407(0x212)](_0x56f1fb){const _0x5c6375=a244_0x168407;return String(_0x56f1fb)[_0x5c6375(0x1dc)](0x2,'0');}static['formatLocalTimestamp'](_0x39cdf6){const _0x5dea53=a244_0x168407,_0x1d1ea0=_0x39cdf6[_0x5dea53(0x1e1)](),_0x2958f7=this[_0x5dea53(0x212)](_0x39cdf6[_0x5dea53(0x213)]()+0x1),_0x1e6952=this['pad'](_0x39cdf6[_0x5dea53(0x1dd)]()),_0x404590=this[_0x5dea53(0x212)](_0x39cdf6['getHours']()),_0x30fa91=this[_0x5dea53(0x212)](_0x39cdf6['getMinutes']()),_0x2a0cd3=this['pad'](_0x39cdf6[_0x5dea53(0x1ed)]());return{'createdAt':_0x1d1ea0+'-'+_0x2958f7+'-'+_0x1e6952+'\x20'+_0x404590+':'+_0x30fa91+':'+_0x2a0cd3,'createdDate':_0x1d1ea0+'-'+_0x2958f7+'-'+_0x1e6952,'createdTime':_0x404590+':'+_0x30fa91+':'+_0x2a0cd3};}static[a244_0x168407(0x1de)](_0xa9938e){const _0x4fb7d9=a244_0x168407,_0x488ff=_0xa9938e[_0x4fb7d9(0x1d9)]('/')[_0x4fb7d9(0x1e7)]()||_0xa9938e;return _0x488ff[_0x4fb7d9(0x1d9)]('-')[_0x4fb7d9(0x214)](_0x152fa2=>_0x152fa2['charAt'](0x0)['toUpperCase']()+_0x152fa2[_0x4fb7d9(0x1e5)](0x1)[_0x4fb7d9(0x1f5)]())[_0x4fb7d9(0x1e4)]('');}static['toDisplayTitle'](_0x2a3a13){const _0x4647e2=a244_0x168407,_0x73f3cb=_0x2a3a13[_0x4647e2(0x1d9)]('/')[_0x4647e2(0x1e7)]()||_0x2a3a13;return _0x73f3cb['split']('-')['map'](_0x13b7b1=>_0x13b7b1[_0x4647e2(0x1fd)](0x0)['toUpperCase']()+_0x13b7b1['slice'](0x1)[_0x4647e2(0x1f5)]())[_0x4647e2(0x1e4)]('\x20');}static[a244_0x168407(0x1d3)](_0x6f37a9,_0x255936,_0x28089c){const _0x6e8a26=a244_0x168407,_0x3d01f7=this[_0x6e8a26(0x1de)](_0x255936),_0xbf9143=this['toDisplayTitle'](_0x255936),{createdAt:_0x46a288,createdDate:_0x10500b,createdTime:_0x22add5}=this[_0x6e8a26(0x1fe)](new Date());let _0x4be741=_0x6f37a9[_0x6e8a26(0x207)](/\{CliVersion\}/g,CLI_VERSION)[_0x6e8a26(0x207)](/\{ComponentName\}/g,_0x3d01f7)['replace'](/\{DisplayTitle\}/g,_0xbf9143)[_0x6e8a26(0x207)](/\{PageName\}/g,_0x255936)[_0x6e8a26(0x207)](/\{TemplateName\}/g,_0x28089c)[_0x6e8a26(0x207)](/\{CreatedAt\}/g,_0x46a288)['replace'](/\{CreatedDate\}/g,_0x10500b)['replace'](/\{CreatedTime\}/g,_0x22add5);return _0x4be741;}static[a244_0x168407(0x200)](_0x383838,_0x273c10,_0x50483d,_0xcaaa89,_0x3a14d2,_0x1211df,_0x6d5a69,_0x6683d3){const _0xcbe355=a244_0x168407,_0x3ac077=new Date(),_0x44f525=_0x3ac077[_0xcbe355(0x1eb)](),_0x1bc4e1=_0x50483d[_0xcbe355(0x214)](_0xbbdc97=>{const _0x36c1c5=_0xcbe355,_0x38eecd=[_0x36c1c5(0x1f6)+_0xbbdc97[_0x36c1c5(0x1f7)]+'\x22',_0x36c1c5(0x208)+_0xbbdc97[_0x36c1c5(0x1f0)]+'\x22',_0x36c1c5(0x20f)+_0xbbdc97['name']+'\x22'];return _0xbbdc97[_0x36c1c5(0x1e3)]&&_0x38eecd[_0x36c1c5(0x1fc)](_0x36c1c5(0x1e2)+_0xbbdc97[_0x36c1c5(0x1e3)]+'\x22'),_0x36c1c5(0x1ee)+_0x38eecd[_0x36c1c5(0x1e4)](',\x20')+'\x20},';})[_0xcbe355(0x1e4)](''),_0x59665c=_0xcaaa89||_0x50483d[0x0]?.[_0xcbe355(0x1e3)]||'YourModel';let _0x5ceee3=_0x383838['replace'](/\{AppCode\}/g,_0x273c10)[_0xcbe355(0x207)](/\{ModelConfigs\}/g,_0x1bc4e1)[_0xcbe355(0x207)](/\{ExampleModelName\}/g,_0x59665c)[_0xcbe355(0x207)](/\{ApiFileName\}/g,_0x3a14d2||'api')['replace'](/\{ConfigName\}/g,_0x1211df||'default')[_0xcbe355(0x207)](/\{ClientConfigParam\}/g,_0x6d5a69||'')[_0xcbe355(0x207)](/\{VarPrefix\}/g,_0x6683d3||_0xcbe355(0x206))[_0xcbe355(0x207)](/\{CreatedAt\}/g,_0x44f525);return _0x5ceee3;}static async['processTemplate'](_0x56b8cf,_0x332b41,_0x31becf,_0x56367f,_0x262bfc=!![]){const _0xee5cc0=a244_0x168407,_0x11b75f=Date[_0xee5cc0(0x1ea)]();try{_0x262bfc&&logger['info'](_0xee5cc0(0x215),_0xee5cc0(0x1d6),{'templatePath':_0x56b8cf,'targetPath':_0x332b41,'pageName':_0x31becf,'templateName':_0x56367f});await a244_0x2f09f1[_0xee5cc0(0x1d8)][_0xee5cc0(0x1fa)](_0x332b41,{'recursive':!![]}),await this['processDirectory'](_0x56b8cf,_0x332b41,_0x31becf,_0x56367f);if(_0x262bfc){const _0x42770c=Date[_0xee5cc0(0x1ea)]()-_0x11b75f;logger['success'](_0xee5cc0(0x215),_0xee5cc0(0x203),_0x42770c,{'pageName':_0x31becf,'templateName':_0x56367f});}}catch(_0xe3386a){if(_0x262bfc){const _0x1fb9e5=Date[_0xee5cc0(0x1ea)]()-_0x11b75f;logger[_0xee5cc0(0x1d7)](_0xee5cc0(0x215),_0xee5cc0(0x1e8),{'templatePath':_0x56b8cf,'targetPath':_0x332b41,'pageName':_0x31becf,'templateName':_0x56367f,'error':_0xe3386a instanceof Error?_0xe3386a['message']:String(_0xe3386a),'duration':_0x1fb9e5});}throw _0xe3386a;}}static async[a244_0x168407(0x1da)](_0x5af9fa,_0x314895,_0x5249a8,_0x45db93){const _0x287eba=a244_0x168407,_0x1b70a3=await a244_0x2f09f1[_0x287eba(0x1d8)][_0x287eba(0x205)](_0x5af9fa,{'withFileTypes':!![]});for(const _0x31f422 of _0x1b70a3){const _0x3743fd=a244_0x50abb6[_0x287eba(0x1e4)](_0x5af9fa,_0x31f422[_0x287eba(0x1f4)]);let _0x44768d=a244_0x50abb6[_0x287eba(0x1e4)](_0x314895,_0x31f422[_0x287eba(0x1f4)]);_0x31f422[_0x287eba(0x1f4)][_0x287eba(0x20e)]('.tpl')&&(_0x44768d=a244_0x50abb6['join'](_0x314895,_0x31f422[_0x287eba(0x1f4)]['replace'](/\.tpl$/,'')));if(_0x31f422[_0x287eba(0x210)]())await a244_0x2f09f1[_0x287eba(0x1d8)][_0x287eba(0x1fa)](_0x44768d,{'recursive':!![]}),await this[_0x287eba(0x1da)](_0x3743fd,_0x44768d,_0x5249a8,_0x45db93);else _0x31f422[_0x287eba(0x202)]()&&await this[_0x287eba(0x1e9)](_0x3743fd,_0x44768d,_0x5249a8,_0x45db93);}}static async['processFile'](_0x315cf6,_0x2e90b9,_0x33aba5,_0x51c8ea){const _0x318d2e=a244_0x168407,_0x5db173=a244_0x50abb6[_0x318d2e(0x1f8)](_0x315cf6)[_0x318d2e(0x1f5)]();_0x315cf6[_0x318d2e(0x20e)](_0x318d2e(0x1e0))&&(_0x2e90b9=_0x2e90b9[_0x318d2e(0x207)](/\.tpl$/,''));const _0x3c332e=[_0x318d2e(0x1d4),_0x318d2e(0x209),_0x318d2e(0x1f3),_0x318d2e(0x20c),_0x318d2e(0x1f1),'.md',_0x318d2e(0x1d5),'.scss',_0x318d2e(0x1e0)];if(_0x3c332e[_0x318d2e(0x1f9)](_0x5db173)||_0x315cf6['endsWith'](_0x318d2e(0x1e0))){const _0x15b411=await a244_0x2f09f1['promises'][_0x318d2e(0x20d)](_0x315cf6,_0x318d2e(0x20a)),_0xd15f6f=this[_0x318d2e(0x1d3)](_0x15b411,_0x33aba5,_0x51c8ea);await a244_0x2f09f1[_0x318d2e(0x1d8)][_0x318d2e(0x1ff)](_0x2e90b9,_0xd15f6f,_0x318d2e(0x20a));}else await a244_0x2f09f1['promises'][_0x318d2e(0x1f2)](_0x315cf6,_0x2e90b9);}}
@@ -1 +1 @@
1
- (function(_0x41e760,_0x2f2e29){const _0x1c82ca=a245_0x3ef3,_0x4b2289=_0x41e760();while(!![]){try{const _0x1b53a3=parseInt(_0x1c82ca(0x1fb))/0x1+-parseInt(_0x1c82ca(0x1fe))/0x2*(-parseInt(_0x1c82ca(0x1fd))/0x3)+-parseInt(_0x1c82ca(0x1f7))/0x4*(-parseInt(_0x1c82ca(0x208))/0x5)+parseInt(_0x1c82ca(0x20d))/0x6*(parseInt(_0x1c82ca(0x1f8))/0x7)+parseInt(_0x1c82ca(0x1fa))/0x8*(-parseInt(_0x1c82ca(0x205))/0x9)+parseInt(_0x1c82ca(0x1f6))/0xa+-parseInt(_0x1c82ca(0x203))/0xb;if(_0x1b53a3===_0x2f2e29)break;else _0x4b2289['push'](_0x4b2289['shift']());}catch(_0x27bb0d){_0x4b2289['push'](_0x4b2289['shift']());}}}(a245_0x2040,0x4c692));function a245_0x3ef3(_0x37a5c8,_0x56157b){_0x37a5c8=_0x37a5c8-0x1f3;const _0x2040c9=a245_0x2040();let _0x3ef3ee=_0x2040c9[_0x37a5c8];return _0x3ef3ee;}import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a245_0xe70c20 from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0xeebd1b=a245_0x3ef3,_0x79e283=process.env.RABETBASE_NO_UPDATE_NOTICE?.['trim']()['toLowerCase']();return _0x79e283==='1'||_0x79e283===_0xeebd1b(0x1f5)||_0x79e283==='yes';}function cacheRoot(){const _0x4bd2d2=a245_0x3ef3;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x4bd2d2(0x207));}export function getUpdateNoticeCachePath(){const _0x27fb1f=a245_0x3ef3;return join(cacheRoot(),_0x27fb1f(0x1f4),_0x27fb1f(0x209));}async function readUpdateNoticeCache(){const _0x579333=a245_0x3ef3;try{const _0x5a1c53=await readFile(getUpdateNoticeCachePath(),_0x579333(0x20f)),_0x5e9029=JSON['parse'](_0x5a1c53);if(!_0x5e9029||typeof _0x5e9029!==_0x579333(0x204))return{};return _0x5e9029;}catch{return{};}}async function writeUpdateNoticeCache(_0x557ac5){const _0x42e16b=a245_0x3ef3;try{const _0x159b69=getUpdateNoticeCachePath();await mkdir(dirname(_0x159b69),{'recursive':!![]}),await writeFile(_0x159b69,JSON[_0x42e16b(0x20c)](_0x557ac5,null,0x2)+'\x0a',_0x42e16b(0x20f));}catch{}}function isFreshCheck(_0x5ec8b1,_0x28e927){const _0x126155=a245_0x3ef3;return typeof _0x5ec8b1[_0x126155(0x202)]===_0x126155(0x20e)&&_0x28e927-_0x5ec8b1[_0x126155(0x202)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x7d61a1,_0x42d554,_0x5bd6e1){const _0x19e55c=a245_0x3ef3;return _0x7d61a1[_0x19e55c(0x1fc)]===_0x42d554&&typeof _0x7d61a1['lastNotifiedAt']==='number'&&_0x5bd6e1-_0x7d61a1[_0x19e55c(0x1f9)]<UPDATE_NOTICE_TTL_MS;}function a245_0x2040(){const _0x1967d7=['lastNotifiedAt','8REzvBW','551772OUVHwE','lastNotifiedVersion','25863mPIivW','76uHamFz','trim','now','/v/','checkedAt','9180061Koynpj','object','3137121sccOLv','valid','.cache','5hJGrRP','update-check.json','stableVersion','gte','stringify','24lYGmNI','number','utf8','\x20available,\x20current\x20','rabetbase-cli','true','3614810BKzIPG','855980jfkHAu','72191VnSThJ'];a245_0x2040=function(){return _0x1967d7;};return a245_0x2040();}export function buildNpmVersionUrl(_0x4bcc1f){const _0x5daff7=a245_0x3ef3;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x5daff7(0x201)+_0x4bcc1f;}export async function resolveLatestUpdateNotice(){const _0x1fa228=a245_0x3ef3;if(isUpdateNoticeDisabled())return null;try{const _0x5c8d8c=Date[_0x1fa228(0x200)](),_0x5b7470=getCliVersion(),_0x2463e8=await readUpdateNoticeCache();let _0x47a544=isFreshCheck(_0x2463e8,_0x5c8d8c)?_0x2463e8['latest']?.[_0x1fa228(0x1ff)]():undefined;if(!_0x47a544&&!isFreshCheck(_0x2463e8,_0x5c8d8c)){const _0x9ad7de=await getCliVersionPolicy();_0x47a544=_0x9ad7de?.[_0x1fa228(0x20a)]?.[_0x1fa228(0x1ff)]()||undefined,await writeUpdateNoticeCache({..._0x2463e8,'checkedAt':_0x5c8d8c,'latest':_0x47a544,'failed':!_0x47a544});}if(!_0x47a544||!a245_0xe70c20['valid'](_0x5b7470)||!a245_0xe70c20[_0x1fa228(0x206)](_0x47a544))return null;if(a245_0xe70c20[_0x1fa228(0x20b)](_0x5b7470,_0x47a544))return null;if(isRecentlyNotified(_0x2463e8,_0x47a544,_0x5c8d8c))return null;const _0x1e6a8a=CLI_BIN_NAME+'\x20update';return await writeUpdateNoticeCache({..._0x2463e8,'checkedAt':isFreshCheck(_0x2463e8,_0x5c8d8c)?_0x2463e8['checkedAt']:_0x5c8d8c,'latest':_0x47a544,'failed':![],'lastNotifiedVersion':_0x47a544,'lastNotifiedAt':_0x5c8d8c}),{'command':_0x1e6a8a,'current':_0x5b7470,'latest':_0x47a544,'url':buildNpmVersionUrl(_0x47a544),'message':CLI_BIN_NAME+'\x20'+_0x47a544+_0x1fa228(0x1f3)+_0x5b7470+',\x20run:\x20'+_0x1e6a8a};}catch{return null;}}
1
+ (function(_0x37ff1e,_0x4dc3e2){const _0x5c4ab8=a245_0x302f,_0x4536eb=_0x37ff1e();while(!![]){try{const _0x3cd61e=parseInt(_0x5c4ab8(0x20d))/0x1*(parseInt(_0x5c4ab8(0x1f4))/0x2)+parseInt(_0x5c4ab8(0x1ec))/0x3+-parseInt(_0x5c4ab8(0x1eb))/0x4*(parseInt(_0x5c4ab8(0x1f6))/0x5)+parseInt(_0x5c4ab8(0x1ea))/0x6*(parseInt(_0x5c4ab8(0x203))/0x7)+parseInt(_0x5c4ab8(0x1f8))/0x8*(-parseInt(_0x5c4ab8(0x208))/0x9)+parseInt(_0x5c4ab8(0x206))/0xa*(-parseInt(_0x5c4ab8(0x1f1))/0xb)+-parseInt(_0x5c4ab8(0x1fd))/0xc*(-parseInt(_0x5c4ab8(0x205))/0xd);if(_0x3cd61e===_0x4dc3e2)break;else _0x4536eb['push'](_0x4536eb['shift']());}catch(_0x250af6){_0x4536eb['push'](_0x4536eb['shift']());}}}(a245_0x2ce9,0x28ec8));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a245_0x8847f from'semver';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{getCliVersion}from'../utils/version.js';const UPDATE_CHECK_TTL_MS=0xc*0x3c*0x3c*0x3e8,UPDATE_NOTICE_TTL_MS=0x18*0x3c*0x3c*0x3e8;function isUpdateNoticeDisabled(){const _0x36a4c6=a245_0x302f,_0x431ab2=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x36a4c6(0x20c)]()[_0x36a4c6(0x1fb)]();return _0x431ab2==='1'||_0x431ab2===_0x36a4c6(0x1ee)||_0x431ab2===_0x36a4c6(0x1f3);}function cacheRoot(){const _0x1c1580=a245_0x302f;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x1c1580(0x1fa));}export function getUpdateNoticeCachePath(){const _0x3ed876=a245_0x302f;return join(cacheRoot(),_0x3ed876(0x204),_0x3ed876(0x201));}async function readUpdateNoticeCache(){const _0x5e87a1=a245_0x302f;try{const _0x2d2506=await readFile(getUpdateNoticeCachePath(),_0x5e87a1(0x200)),_0x27032b=JSON[_0x5e87a1(0x20b)](_0x2d2506);if(!_0x27032b||typeof _0x27032b!==_0x5e87a1(0x1f2))return{};return _0x27032b;}catch{return{};}}function a245_0x302f(_0x3358bd,_0x18464c){_0x3358bd=_0x3358bd-0x1ea;const _0x2ce973=a245_0x2ce9();let _0x302fbc=_0x2ce973[_0x3358bd];return _0x302fbc;}async function writeUpdateNoticeCache(_0x2c3d9c){const _0x30354f=a245_0x302f;try{const _0x52ecea=getUpdateNoticeCachePath();await mkdir(dirname(_0x52ecea),{'recursive':!![]}),await writeFile(_0x52ecea,JSON[_0x30354f(0x1fc)](_0x2c3d9c,null,0x2)+'\x0a','utf8');}catch{}}function isFreshCheck(_0x14d434,_0x5e2920){const _0x2b85e2=a245_0x302f;return typeof _0x14d434[_0x2b85e2(0x1f9)]===_0x2b85e2(0x1ff)&&_0x5e2920-_0x14d434[_0x2b85e2(0x1f9)]<UPDATE_CHECK_TTL_MS;}function a245_0x2ce9(){const _0x31ff81=['valid','number','utf8','update-check.json','https://www.npmjs.com/package/','32459ZDOiBz','rabetbase-cli','7283042wkSvHp','45980pdwwHm','now','1944cpVoGH','\x20available,\x20current\x20','gte','parse','trim','163iUApVD','156offyfz','12EYxPWl','405111zoRfwe','lastNotifiedVersion','true','latest','\x20update','550acAIfc','object','yes','1684sfYlYb','lastNotifiedAt','532445drdPyg',',\x20run:\x20','8744OGtSqG','checkedAt','.cache','toLowerCase','stringify','12VGWSht'];a245_0x2ce9=function(){return _0x31ff81;};return a245_0x2ce9();}function isRecentlyNotified(_0x18a043,_0x34fd9f,_0x57b487){const _0x12b257=a245_0x302f;return _0x18a043[_0x12b257(0x1ed)]===_0x34fd9f&&typeof _0x18a043[_0x12b257(0x1f5)]===_0x12b257(0x1ff)&&_0x57b487-_0x18a043[_0x12b257(0x1f5)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x28bfd2){const _0x42ff00=a245_0x302f;return _0x42ff00(0x202)+NPM_PACKAGE_NAME+'/v/'+_0x28bfd2;}export async function resolveLatestUpdateNotice(){const _0x2ee91d=a245_0x302f;if(isUpdateNoticeDisabled())return null;try{const _0x1f2972=Date[_0x2ee91d(0x207)](),_0x3b70d1=getCliVersion(),_0x241328=await readUpdateNoticeCache();let _0x26d6ce=isFreshCheck(_0x241328,_0x1f2972)?_0x241328[_0x2ee91d(0x1ef)]?.[_0x2ee91d(0x20c)]():undefined;if(!_0x26d6ce&&!isFreshCheck(_0x241328,_0x1f2972)){const _0x16087d=await getCliVersionPolicy();_0x26d6ce=_0x16087d?.['stableVersion']?.['trim']()||undefined,await writeUpdateNoticeCache({..._0x241328,'checkedAt':_0x1f2972,'latest':_0x26d6ce,'failed':!_0x26d6ce});}if(!_0x26d6ce||!a245_0x8847f[_0x2ee91d(0x1fe)](_0x3b70d1)||!a245_0x8847f['valid'](_0x26d6ce))return null;if(a245_0x8847f[_0x2ee91d(0x20a)](_0x3b70d1,_0x26d6ce))return null;if(isRecentlyNotified(_0x241328,_0x26d6ce,_0x1f2972))return null;const _0x2f8c8d=CLI_BIN_NAME+_0x2ee91d(0x1f0);return await writeUpdateNoticeCache({..._0x241328,'checkedAt':isFreshCheck(_0x241328,_0x1f2972)?_0x241328['checkedAt']:_0x1f2972,'latest':_0x26d6ce,'failed':![],'lastNotifiedVersion':_0x26d6ce,'lastNotifiedAt':_0x1f2972}),{'command':_0x2f8c8d,'current':_0x3b70d1,'latest':_0x26d6ce,'url':buildNpmVersionUrl(_0x26d6ce),'message':CLI_BIN_NAME+'\x20'+_0x26d6ce+_0x2ee91d(0x209)+_0x3b70d1+_0x2ee91d(0x1f7)+_0x2f8c8d};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x34792b,_0x599766){var _0x4fec19=a246_0x56f5,_0x3520f1=_0x34792b();while(!![]){try{var _0x19b725=-parseInt(_0x4fec19(0x137))/0x1*(parseInt(_0x4fec19(0x13e))/0x2)+-parseInt(_0x4fec19(0x13b))/0x3*(parseInt(_0x4fec19(0x134))/0x4)+-parseInt(_0x4fec19(0x13d))/0x5*(parseInt(_0x4fec19(0x13c))/0x6)+-parseInt(_0x4fec19(0x13a))/0x7*(parseInt(_0x4fec19(0x139))/0x8)+parseInt(_0x4fec19(0x136))/0x9+parseInt(_0x4fec19(0x135))/0xa+parseInt(_0x4fec19(0x138))/0xb;if(_0x19b725===_0x599766)break;else _0x3520f1['push'](_0x3520f1['shift']());}catch(_0x6e14e1){_0x3520f1['push'](_0x3520f1['shift']());}}}(a246_0x3561,0x883a5));import{VERSION}from'../generated/build-info.js';function a246_0x56f5(_0x2e830e,_0x4d40d0){_0x2e830e=_0x2e830e-0x134;var _0x356114=a246_0x3561();var _0x56f5ce=_0x356114[_0x2e830e];return _0x56f5ce;}export function getCliVersion(){return VERSION;}function a246_0x3561(){var _0x144426=['4485082vuTULN','3eHEugO','3077574ldFdjl','5jyqGCw','917552LBqwlL','3963716zjSEwv','5828950QNAxrd','7957269piBxAf','1rpvmzu','18637443bgmDnF','8LETXIg'];a246_0x3561=function(){return _0x144426;};return a246_0x3561();}
1
+ function a246_0xe1ac(){var _0x45cb62=['5oVSVQR','14913680XNfRFI','10PpsHUd','6775692ieRNUa','788094XpJpoC','402482TBmLVg','6157123VhqNLF','2543512gRSGtH','4889196anAZqT','16pubITy','3JtmPkM'];a246_0xe1ac=function(){return _0x45cb62;};return a246_0xe1ac();}function a246_0x214a(_0x16b3df,_0x3c16f4){_0x16b3df=_0x16b3df-0x133;var _0xe1ac3e=a246_0xe1ac();var _0x214ac0=_0xe1ac3e[_0x16b3df];return _0x214ac0;}(function(_0x130b91,_0x2ae8c7){var _0x594cfb=a246_0x214a,_0x5e3626=_0x130b91();while(!![]){try{var _0x130f4f=-parseInt(_0x594cfb(0x13b))/0x1*(-parseInt(_0x594cfb(0x135))/0x2)+-parseInt(_0x594cfb(0x13a))/0x3*(parseInt(_0x594cfb(0x137))/0x4)+parseInt(_0x594cfb(0x13d))/0x5*(parseInt(_0x594cfb(0x134))/0x6)+-parseInt(_0x594cfb(0x136))/0x7+-parseInt(_0x594cfb(0x139))/0x8*(parseInt(_0x594cfb(0x138))/0x9)+parseInt(_0x594cfb(0x13c))/0xa+parseInt(_0x594cfb(0x133))/0xb;if(_0x130f4f===_0x2ae8c7)break;else _0x5e3626['push'](_0x5e3626['shift']());}catch(_0x35761a){_0x5e3626['push'](_0x5e3626['shift']());}}}(a246_0xe1ac,0xbd090));import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x165b1e,_0x3dce52){var _0x18167d=a247_0x4bcb,_0x43e47d=_0x165b1e();while(!![]){try{var _0x57321c=-parseInt(_0x18167d(0x16c))/0x1+-parseInt(_0x18167d(0x16e))/0x2+-parseInt(_0x18167d(0x16a))/0x3+parseInt(_0x18167d(0x16b))/0x4+parseInt(_0x18167d(0x16d))/0x5*(-parseInt(_0x18167d(0x16f))/0x6)+-parseInt(_0x18167d(0x168))/0x7+parseInt(_0x18167d(0x169))/0x8;if(_0x57321c===_0x3dce52)break;else _0x43e47d['push'](_0x43e47d['shift']());}catch(_0x359a6c){_0x43e47d['push'](_0x43e47d['shift']());}}}(a247_0x30b5,0xa75f2));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a247_0x4bcb(_0x39f32d,_0x554789){_0x39f32d=_0x39f32d-0x168;var _0x30b584=a247_0x30b5();var _0x4bcb17=_0x30b584[_0x39f32d];return _0x4bcb17;}export async function withActiveCookie(_0x2624bb,_0x4a55a3){setActiveCookie(_0x2624bb);try{return await _0x4a55a3();}finally{clearActiveCookie();}}function a247_0x30b5(){var _0x26cca6=['5231009EbUyNr','24974672DwoSUd','4070661hDhMQV','4056112YeSssx','164748DKNjSt','5uVyDPV','233182TlnqGi','6388770QykwBa'];a247_0x30b5=function(){return _0x26cca6;};return a247_0x30b5();}
1
+ (function(_0xfd43bf,_0xff3f8){var _0x1462f9=a247_0xf822,_0xcd6f7c=_0xfd43bf();while(!![]){try{var _0x53f77d=parseInt(_0x1462f9(0xb7))/0x1*(parseInt(_0x1462f9(0xb0))/0x2)+-parseInt(_0x1462f9(0xb9))/0x3*(-parseInt(_0x1462f9(0xb2))/0x4)+parseInt(_0x1462f9(0xb8))/0x5*(parseInt(_0x1462f9(0xb6))/0x6)+parseInt(_0x1462f9(0xba))/0x7+parseInt(_0x1462f9(0xb4))/0x8+-parseInt(_0x1462f9(0xb3))/0x9+parseInt(_0x1462f9(0xb1))/0xa*(-parseInt(_0x1462f9(0xb5))/0xb);if(_0x53f77d===_0xff3f8)break;else _0xcd6f7c['push'](_0xcd6f7c['shift']());}catch(_0x9e8d6a){_0xcd6f7c['push'](_0xcd6f7c['shift']());}}}(a247_0x2241,0x47889));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a247_0xf822(_0x3d1944,_0x2ece9c){_0x3d1944=_0x3d1944-0xb0;var _0x224134=a247_0x2241();var _0xf82231=_0x224134[_0x3d1944];return _0xf82231;}export async function withActiveCookie(_0x3ac6ea,_0x38d32e){setActiveCookie(_0x3ac6ea);try{return await _0x38d32e();}finally{clearActiveCookie();}}function a247_0x2241(){var _0x42c6f6=['2313498TURQTL','133153JzGCNe','5rVIicW','129sSezrL','683802hoLepQ','4kaigMb','5045510dnsOWB','31660bcmllF','3295683BOgInq','590552DgNcan','11BBgydr'];a247_0x2241=function(){return _0x42c6f6;};return a247_0x2241();}