@lovrabet/rabetbase-cli 2.5.2-beta.7 → 2.5.3-beta.1

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 (348) 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.d.ts +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.d.ts +2 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/auth/auth-server-ui.js +1 -1
  8. package/lib/auth/auth-server.js +1 -1
  9. package/lib/auth/constant.js +1 -1
  10. package/lib/auth/get-cookie.js +1 -1
  11. package/lib/auth/get-session-user.js +1 -1
  12. package/lib/auth/is-session-valid.js +1 -1
  13. package/lib/auth/login-success-html.js +1 -1
  14. package/lib/auth/logout.js +1 -1
  15. package/lib/cli-flags.js +1 -1
  16. package/lib/cli.js +1 -1
  17. package/lib/commands/api/generate.js +1 -1
  18. package/lib/commands/api/index.js +1 -1
  19. package/lib/commands/api/list.js +1 -1
  20. package/lib/commands/api/pull.js +1 -1
  21. package/lib/commands/api/shared.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/members-list.js +1 -1
  25. package/lib/commands/app/remote-directory.js +1 -1
  26. package/lib/commands/app/shared.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -1
  28. package/lib/commands/app-config/get.js +1 -1
  29. package/lib/commands/app-config/index.js +1 -1
  30. package/lib/commands/app-config/list.js +1 -1
  31. package/lib/commands/app-config/set.js +1 -1
  32. package/lib/commands/app-config/shared.js +1 -1
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-skill/index.js +1 -1
  43. package/lib/commands/cli-update.js +1 -1
  44. package/lib/commands/codegen/index.js +1 -1
  45. package/lib/commands/codegen/sdk.js +1 -1
  46. package/lib/commands/codegen/sql.js +1 -1
  47. package/lib/commands/common/app-registry.js +1 -1
  48. package/lib/commands/common/app-selector.js +1 -1
  49. package/lib/commands/common/async-task.js +1 -1
  50. package/lib/commands/common/dry-run.js +1 -1
  51. package/lib/commands/common/flags.js +1 -1
  52. package/lib/commands/common/local-file.js +1 -1
  53. package/lib/commands/common/validate.js +1 -1
  54. package/lib/commands/config/delete.js +1 -1
  55. package/lib/commands/config/get.js +1 -1
  56. package/lib/commands/config/index.js +1 -1
  57. package/lib/commands/config/init.js +1 -1
  58. package/lib/commands/config/list.js +1 -1
  59. package/lib/commands/config/set.js +1 -1
  60. package/lib/commands/config/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/business-groups.js +1 -1
  63. package/lib/commands/dataset/capability.js +1 -1
  64. package/lib/commands/dataset/delete.js +1 -1
  65. package/lib/commands/dataset/detail.js +1 -1
  66. package/lib/commands/dataset/extend-update.js +1 -1
  67. package/lib/commands/dataset/field-restore.js +1 -1
  68. package/lib/commands/dataset/field-update.js +1 -1
  69. package/lib/commands/dataset/generate.js +1 -1
  70. package/lib/commands/dataset/index.js +1 -1
  71. package/lib/commands/dataset/list.js +1 -1
  72. package/lib/commands/dataset/operations.js +1 -1
  73. package/lib/commands/dataset/relation-audit.js +1 -1
  74. package/lib/commands/dataset/relation-create.js +1 -1
  75. package/lib/commands/dataset/relation-delete.js +1 -1
  76. package/lib/commands/dataset/relation-shared.js +1 -1
  77. package/lib/commands/dataset/relation-update.js +1 -1
  78. package/lib/commands/dataset/relations.js +1 -1
  79. package/lib/commands/dataset/rename.js +1 -1
  80. package/lib/commands/dataset/restore.js +1 -1
  81. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  82. package/lib/commands/db/analysis-batching.js +1 -1
  83. package/lib/commands/db/analyze-batch-plan.js +1 -1
  84. package/lib/commands/db/analyze-cancel.js +1 -1
  85. package/lib/commands/db/analyze-start.js +1 -1
  86. package/lib/commands/db/analyze-status.js +1 -1
  87. package/lib/commands/db/create.js +1 -1
  88. package/lib/commands/db/delete.js +1 -1
  89. package/lib/commands/db/detail.js +1 -1
  90. package/lib/commands/db/diff-refresh-start.js +1 -1
  91. package/lib/commands/db/diff-refresh-status.js +1 -1
  92. package/lib/commands/db/diff.js +1 -1
  93. package/lib/commands/db/index.js +1 -1
  94. package/lib/commands/db/list.js +1 -1
  95. package/lib/commands/db/shared.js +1 -1
  96. package/lib/commands/db/table-diff-shared.js +1 -1
  97. package/lib/commands/db/tables.js +1 -1
  98. package/lib/commands/db/test.js +1 -1
  99. package/lib/commands/db/update.js +1 -1
  100. package/lib/commands/deployment/index.js +1 -1
  101. package/lib/commands/deployment/sync-all.js +1 -1
  102. package/lib/commands/deployment/sync-jobs.js +1 -1
  103. package/lib/commands/deployment/sync-status.js +1 -1
  104. package/lib/commands/doctor.js +1 -1
  105. package/lib/commands/file/index.js +1 -1
  106. package/lib/commands/instant-api-policy/current.js +1 -1
  107. package/lib/commands/instant-api-policy/index.js +1 -1
  108. package/lib/commands/instant-api-policy/init.js +1 -1
  109. package/lib/commands/instant-api-policy/publish.js +1 -1
  110. package/lib/commands/instant-api-policy/pull.js +1 -1
  111. package/lib/commands/instant-api-policy/revision.js +1 -1
  112. package/lib/commands/instant-api-policy/revisions.js +1 -1
  113. package/lib/commands/instant-api-policy/rollback.js +1 -1
  114. package/lib/commands/instant-api-policy/shared.js +1 -1
  115. package/lib/commands/instant-api-policy/validate.js +1 -1
  116. package/lib/commands/issue/index.js +1 -1
  117. package/lib/commands/issue/nudge.js +1 -1
  118. package/lib/commands/issue/report.js +1 -1
  119. package/lib/commands/issue/shared.js +1 -1
  120. package/lib/commands/kb/create.js +1 -1
  121. package/lib/commands/kb/delete.js +1 -1
  122. package/lib/commands/kb/detail.js +1 -1
  123. package/lib/commands/kb/index.js +1 -1
  124. package/lib/commands/kb/list.js +1 -1
  125. package/lib/commands/kb/search.js +1 -1
  126. package/lib/commands/kb/shared.js +1 -1
  127. package/lib/commands/kb/update.js +1 -1
  128. package/lib/commands/logs/index.js +1 -1
  129. package/lib/commands/menu/asset-update.js +1 -1
  130. package/lib/commands/menu/delete.js +1 -1
  131. package/lib/commands/menu/external-link-create.js +1 -1
  132. package/lib/commands/menu/external-link-update.js +1 -1
  133. package/lib/commands/menu/group-create.js +1 -1
  134. package/lib/commands/menu/group-update.js +1 -1
  135. package/lib/commands/menu/index.js +1 -1
  136. package/lib/commands/menu/list.js +1 -1
  137. package/lib/commands/menu/move.js +1 -1
  138. package/lib/commands/menu/regroup-start.js +1 -1
  139. package/lib/commands/menu/rename.js +1 -1
  140. package/lib/commands/menu/shared/compare-table.js +1 -1
  141. package/lib/commands/menu/shared/delete-plan.js +1 -1
  142. package/lib/commands/menu/shared/facts.js +1 -1
  143. package/lib/commands/menu/shared/index.js +1 -1
  144. package/lib/commands/menu/shared/inquirer.js +1 -1
  145. package/lib/commands/menu/shared/local-pages.js +1 -1
  146. package/lib/commands/menu/shared/logic.js +1 -1
  147. package/lib/commands/menu/shared/mutations.js +1 -1
  148. package/lib/commands/menu/shared/service.js +1 -1
  149. package/lib/commands/menu/shared/sync-core.js +1 -1
  150. package/lib/commands/menu/shared/update-core.js +1 -1
  151. package/lib/commands/menu/shared/valid-url.js +1 -1
  152. package/lib/commands/menu/sync.js +1 -1
  153. package/lib/commands/menu/visibility-update.js +1 -1
  154. package/lib/commands/notification/config-create.js +1 -1
  155. package/lib/commands/notification/config-delete.js +1 -1
  156. package/lib/commands/notification/config-list.js +1 -1
  157. package/lib/commands/notification/config-update.js +1 -1
  158. package/lib/commands/notification/index.js +1 -1
  159. package/lib/commands/notification/shared.js +1 -1
  160. package/lib/commands/ocr/index.js +1 -1
  161. package/lib/commands/page/create.js +1 -1
  162. package/lib/commands/page/custom/detail.js +1 -1
  163. package/lib/commands/page/custom/list.js +1 -1
  164. package/lib/commands/page/custom/publish.js +1 -1
  165. package/lib/commands/page/custom/shared.js +1 -1
  166. package/lib/commands/page/custom/syntax.js +1 -1
  167. package/lib/commands/page/custom/update.js +1 -1
  168. package/lib/commands/page/data-list-status.js +1 -1
  169. package/lib/commands/page/generate-start.js +1 -1
  170. package/lib/commands/page/generate-status.js +1 -1
  171. package/lib/commands/page/index.js +1 -1
  172. package/lib/commands/page/pull.js +1 -1
  173. package/lib/commands/page/push.js +1 -1
  174. package/lib/commands/page/relation-audit.js +1 -1
  175. package/lib/commands/page/restore.js +1 -1
  176. package/lib/commands/page/shared.js +1 -1
  177. package/lib/commands/page/sync.js +1 -1
  178. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  179. package/lib/commands/project/create/format-elapsed.js +1 -1
  180. package/lib/commands/project/create/main.js +1 -1
  181. package/lib/commands/project/create/materialize-project-template.js +1 -1
  182. package/lib/commands/project/create/project-name.js +1 -1
  183. package/lib/commands/project/create/project-template-archive.js +1 -1
  184. package/lib/commands/project/create/project-template-path.js +1 -1
  185. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  186. package/lib/commands/project/create/use-format-code.js +1 -1
  187. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  188. package/lib/commands/project/domain-routing-sync.js +1 -1
  189. package/lib/commands/project/index.js +1 -1
  190. package/lib/commands/project/upgrade.js +1 -1
  191. package/lib/commands/registry.js +1 -1
  192. package/lib/commands/role/delete.js +1 -1
  193. package/lib/commands/role/detail.js +1 -1
  194. package/lib/commands/role/index.js +1 -1
  195. package/lib/commands/role/list.js +1 -1
  196. package/lib/commands/role/shared.js +1 -1
  197. package/lib/commands/role/update.js +1 -1
  198. package/lib/commands/role/user-add.js +1 -1
  199. package/lib/commands/role/user-remove.js +1 -1
  200. package/lib/commands/role/user-resolve.js +1 -1
  201. package/lib/commands/rule/get.js +1 -1
  202. package/lib/commands/rule/index.js +1 -1
  203. package/lib/commands/rule/list.js +1 -1
  204. package/lib/commands/rule/set.js +1 -1
  205. package/lib/commands/rule/shared.js +1 -1
  206. package/lib/commands/run/index.js +1 -1
  207. package/lib/commands/schema.js +1 -1
  208. package/lib/commands/sql/create.js +1 -1
  209. package/lib/commands/sql/delete.js +1 -1
  210. package/lib/commands/sql/detail.js +1 -1
  211. package/lib/commands/sql/exec.js +1 -1
  212. package/lib/commands/sql/index.js +1 -1
  213. package/lib/commands/sql/list.js +1 -1
  214. package/lib/commands/sql/pull.js +1 -1
  215. package/lib/commands/sql/push.js +1 -1
  216. package/lib/commands/sql/shared.js +1 -1
  217. package/lib/commands/sql/status.js +1 -1
  218. package/lib/commands/sql/validate.js +1 -1
  219. package/lib/commands/task/index.js +1 -1
  220. package/lib/commands/task/status.js +1 -1
  221. package/lib/commands/tenant/index.js +1 -1
  222. package/lib/commands/tenant/members-list.js +1 -1
  223. package/lib/commands/tenant/shared.js +1 -1
  224. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  225. package/lib/commands/user-account/index.js +1 -1
  226. package/lib/commands/workspace/add.js +1 -1
  227. package/lib/commands/workspace/index.js +1 -1
  228. package/lib/commands/workspace/remove.js +1 -1
  229. package/lib/config/domain-config.js +1 -1
  230. package/lib/config/project-domain-routing.js +1 -1
  231. package/lib/config/region-config.d.ts +23 -0
  232. package/lib/config/region-config.js +1 -0
  233. package/lib/config/schema.d.ts +15 -0
  234. package/lib/config/schema.js +1 -1
  235. package/lib/constant/cdn.js +1 -1
  236. package/lib/constant/cli.js +1 -1
  237. package/lib/constant/defaults.js +1 -1
  238. package/lib/constant/domain.js +1 -1
  239. package/lib/constant/env.js +1 -1
  240. package/lib/constant/output.js +1 -1
  241. package/lib/constant/paths.js +1 -1
  242. package/lib/constant/region.js +1 -1
  243. package/lib/constant/risk.js +1 -1
  244. package/lib/constant/routing-profile.js +1 -1
  245. package/lib/context/app-resolver.d.ts +6 -0
  246. package/lib/context/app-resolver.js +1 -1
  247. package/lib/context/auth-resolver.js +1 -1
  248. package/lib/context/config-loader.js +1 -1
  249. package/lib/context.d.ts +13 -0
  250. package/lib/context.js +1 -1
  251. package/lib/core/alias-resolver.js +1 -1
  252. package/lib/core/api-client.d.ts +2 -0
  253. package/lib/core/api-client.js +1 -1
  254. package/lib/core/bff/config.js +1 -1
  255. package/lib/core/bff/file-system.js +1 -1
  256. package/lib/core/bff/hash.js +1 -1
  257. package/lib/core/bff/lock.js +1 -1
  258. package/lib/core/bff/utils.js +1 -1
  259. package/lib/core/db-resolver.js +1 -1
  260. package/lib/core/instant-api-policy/config.js +1 -1
  261. package/lib/core/kb-search-client.js +1 -1
  262. package/lib/core/page/file-system.js +1 -1
  263. package/lib/core/page/hash.js +1 -1
  264. package/lib/core/page/lock.js +1 -1
  265. package/lib/core/page/lr-smart-jsx.d.ts +6 -0
  266. package/lib/core/page/lr-smart-jsx.js +1 -0
  267. package/lib/core/sql-index-auditor.js +1 -1
  268. package/lib/core/sql-sync/config.js +1 -1
  269. package/lib/core/sql-sync/file-system.js +1 -1
  270. package/lib/core/sql-sync/hash.js +1 -1
  271. package/lib/core/sql-sync/lock.js +1 -1
  272. package/lib/core/sql-sync/utils.js +1 -1
  273. package/lib/core/sql-validator.js +1 -1
  274. package/lib/errors.js +1 -1
  275. package/lib/framework/build-all-flags.js +1 -1
  276. package/lib/framework/error-output.js +1 -1
  277. package/lib/framework/explicit-yes.js +1 -1
  278. package/lib/framework/flags.js +1 -1
  279. package/lib/framework/help.js +1 -1
  280. package/lib/framework/index.js +1 -1
  281. package/lib/framework/output.js +1 -1
  282. package/lib/framework/response.js +1 -1
  283. package/lib/framework/runner-alias.js +1 -1
  284. package/lib/framework/runner.js +1 -1
  285. package/lib/framework/schema-export.js +1 -1
  286. package/lib/framework/supported-flags.js +1 -1
  287. package/lib/framework/types.js +1 -1
  288. package/lib/generated/build-info.d.ts +4 -4
  289. package/lib/generated/build-info.js +1 -1
  290. package/lib/generated/official-routing.js +1 -1
  291. package/lib/generated/routing-contract.js +1 -1
  292. package/lib/help.js +1 -1
  293. package/lib/postinstall.js +1 -1
  294. package/lib/runtime/confirmation.js +1 -1
  295. package/lib/runtime/event.js +1 -1
  296. package/lib/runtime/index.js +1 -1
  297. package/lib/runtime/queue.js +1 -1
  298. package/lib/runtime/resolve.js +1 -1
  299. package/lib/skills/builtin-skill.js +1 -1
  300. package/lib/skills/main.js +1 -1
  301. package/lib/skills/npx-skills-add.js +1 -1
  302. package/lib/skills/skill-presence.js +1 -1
  303. package/lib/telemetry/cli-command-trace.js +1 -1
  304. package/lib/telemetry/cli-help-trace.js +1 -1
  305. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  306. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  307. package/lib/telemetry/send-cli-trace-log.js +1 -1
  308. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  309. package/lib/types/index.d.ts +1 -1
  310. package/lib/utils/ai_config.js +1 -1
  311. package/lib/utils/apply-jq-filter.js +1 -1
  312. package/lib/utils/cdn-config.js +1 -1
  313. package/lib/utils/check-sdk-version.js +1 -1
  314. package/lib/utils/cli-version-check.js +1 -1
  315. package/lib/utils/cli-version-policy.js +1 -1
  316. package/lib/utils/config.d.ts +2 -8
  317. package/lib/utils/config.js +1 -1
  318. package/lib/utils/entity-with-id.js +1 -1
  319. package/lib/utils/file-utils.js +1 -1
  320. package/lib/utils/guides-cdn.js +1 -1
  321. package/lib/utils/http-client.js +1 -1
  322. package/lib/utils/is-non-interactive.js +1 -1
  323. package/lib/utils/logger.js +1 -1
  324. package/lib/utils/params.js +1 -1
  325. package/lib/utils/platform.js +1 -1
  326. package/lib/utils/sleep.js +1 -1
  327. package/lib/utils/template-replacer.d.ts +2 -1
  328. package/lib/utils/template-replacer.js +1 -1
  329. package/lib/utils/update-notice.js +1 -1
  330. package/lib/utils/version.js +1 -1
  331. package/lib/utils/with-active-cookie.js +1 -1
  332. package/lib/utils/write-cli-side-channel.js +1 -1
  333. package/package.json +1 -1
  334. package/skills/rabetbase/SKILL.md +6 -5
  335. package/skills/rabetbase/guides/page-development-workflow.md +3 -0
  336. package/skills/rabetbase/guides/sdk-client-generation.md +5 -5
  337. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +11 -3
  338. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -4
  339. package/skills/rabetbase/references/rabetbase-app-list.md +3 -0
  340. package/skills/rabetbase/references/rabetbase-bff-list.md +1 -1
  341. package/skills/rabetbase/references/rabetbase-bff-pull.md +2 -0
  342. package/skills/rabetbase/references/rabetbase-bff-status.md +2 -0
  343. package/skills/rabetbase/references/rabetbase-config.md +10 -9
  344. package/skills/rabetbase/references/rabetbase-doctor.md +2 -2
  345. package/skills/rabetbase/references/rabetbase-page-push.md +5 -1
  346. package/skills/rabetbase/references/rabetbase-workspace.md +4 -2
  347. package/skills/rabetbase.manifest.json +3 -3
  348. package/templates/generate-api/client.ts.tpl +1 -1
@@ -1 +1 @@
1
- (function(_0x549a20,_0x40e448){const _0x1e51aa=a304_0x16c7,_0x4746b1=_0x549a20();while(!![]){try{const _0x105f0b=-parseInt(_0x1e51aa(0x11b))/0x1+parseInt(_0x1e51aa(0x117))/0x2*(-parseInt(_0x1e51aa(0x115))/0x3)+-parseInt(_0x1e51aa(0x11c))/0x4+parseInt(_0x1e51aa(0x113))/0x5*(parseInt(_0x1e51aa(0x116))/0x6)+-parseInt(_0x1e51aa(0x114))/0x7*(parseInt(_0x1e51aa(0x119))/0x8)+parseInt(_0x1e51aa(0x11d))/0x9+-parseInt(_0x1e51aa(0x11a))/0xa*(-parseInt(_0x1e51aa(0x118))/0xb);if(_0x105f0b===_0x40e448)break;else _0x4746b1['push'](_0x4746b1['shift']());}catch(_0x2c6ce1){_0x4746b1['push'](_0x4746b1['shift']());}}}(a304_0x4318,0xa584a));function a304_0x4318(){const _0x37ce92=['4740508OAjKry','4783383NWtvcN','685VUQdgt','176190pmVKrQ','4026369PqlPty','51180PGhSAj','2GIZMhG','33srLmWR','80detGIT','6334070KLcDIb','143406hCQRxf'];a304_0x4318=function(){return _0x37ce92;};return a304_0x4318();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a304_0x16c7(_0x47cd4b,_0x4b7794){_0x47cd4b=_0x47cd4b-0x113;const _0x431817=a304_0x4318();let _0x16c783=_0x431817[_0x47cd4b];return _0x16c783;}import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x2b4f82,_0x4df1ae){const _0x36c3ec=a306_0x3de6,_0x32ab83=_0x2b4f82();while(!![]){try{const _0x3948d7=-parseInt(_0x36c3ec(0x1f9))/0x1+parseInt(_0x36c3ec(0x1f8))/0x2+-parseInt(_0x36c3ec(0x1f4))/0x3*(parseInt(_0x36c3ec(0x1f7))/0x4)+parseInt(_0x36c3ec(0x1fc))/0x5*(parseInt(_0x36c3ec(0x1f5))/0x6)+-parseInt(_0x36c3ec(0x1fa))/0x7+parseInt(_0x36c3ec(0x1f6))/0x8*(-parseInt(_0x36c3ec(0x1fb))/0x9)+parseInt(_0x36c3ec(0x1f3))/0xa;if(_0x3948d7===_0x4df1ae)break;else _0x32ab83['push'](_0x32ab83['shift']());}catch(_0x4f97d1){_0x32ab83['push'](_0x32ab83['shift']());}}}(a306_0x1e55,0x68ba0));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';function a306_0x3de6(_0x36aba7,_0x267fb9){_0x36aba7=_0x36aba7-0x1f3;const _0x1e5598=a306_0x1e55();let _0x3de62e=_0x1e5598[_0x36aba7];return _0x3de62e;}import{CliErrors}from'../errors.js';function a306_0x1e55(){const _0x4b32df=['5139421qffDUt','19827abbNte','405uMfWoo','13859300KNOqKU','1773747XpSFSB','16134CxQiMB','1192pShrfb','4jWhHpy','1433400MGlSDt','237780whoOhs'];a306_0x1e55=function(){return _0x4b32df;};return a306_0x1e55();}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x2e5c4e,_0x560bcb){const _0x3fed84=a305_0x5688,_0x7812f9=_0x2e5c4e();while(!![]){try{const _0x10fbf4=parseInt(_0x3fed84(0xa7))/0x1*(-parseInt(_0x3fed84(0xa3))/0x2)+-parseInt(_0x3fed84(0xa5))/0x3*(-parseInt(_0x3fed84(0xa2))/0x4)+-parseInt(_0x3fed84(0xb0))/0x5*(-parseInt(_0x3fed84(0x9f))/0x6)+parseInt(_0x3fed84(0xa9))/0x7*(-parseInt(_0x3fed84(0xb1))/0x8)+-parseInt(_0x3fed84(0xa4))/0x9*(parseInt(_0x3fed84(0xab))/0xa)+-parseInt(_0x3fed84(0xaa))/0xb+parseInt(_0x3fed84(0xa8))/0xc*(parseInt(_0x3fed84(0xa6))/0xd);if(_0x10fbf4===_0x560bcb)break;else _0x7812f9['push'](_0x7812f9['shift']());}catch(_0x4a617d){_0x7812f9['push'](_0x7812f9['shift']());}}}(a305_0x4c8d,0xec225));import{getTemplateBaseUrl}from'../utils/config.js';function a305_0x4c8d(){const _0x317c46=['2028240BAHxnx','1428216QgEFRc','/config.json','stableVersion','25980hiQmOU','34dTErXS','12103983FlsFjC','156gEvqkQ','7813cCFMOO','88953YXOyQP','79956gohIKs','14kvYeJY','2737746BSdzac','10tyqGHN','json','/config/index.json','now','application/json','5sqIJlN'];a305_0x4c8d=function(){return _0x317c46;};return a305_0x4c8d();}function a305_0x5688(_0x3f2d08,_0x1ce77e){_0x3f2d08=_0x3f2d08-0x9f;const _0x4c8d24=a305_0x4c8d();let _0x56888e=_0x4c8d24[_0x3f2d08];return _0x56888e;}export async function fetchCdnConfig(){const _0x43aa71=a305_0x5688,_0x4e93d8=getTemplateBaseUrl(),_0xad8e21=[_0x4e93d8+_0x43aa71(0xa0),_0x4e93d8+_0x43aa71(0xad)];for(const _0x12dd39 of _0xad8e21){try{const _0x203e61=await fetch(_0x12dd39,{'headers':{'Accept':_0x43aa71(0xaf)}});if(!_0x203e61['ok'])continue;const _0x9751e0=await _0x203e61[_0x43aa71(0xac)]();if(!_0x9751e0['cli']?.[_0x43aa71(0xa1)]||!_0x9751e0['sdk']?.['node']?.[_0x43aa71(0xa1)])continue;return _0x9751e0;}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 _0x13aca4=a305_0x5688,_0xe8f251=Date[_0x13aca4(0xae)]();if(hasCachedConfig){const _0xe05550=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0xe8f251-cacheTime<_0xe05550)return cachedConfig;}const _0x1cc120=await fetchCdnConfig();return cachedConfig=_0x1cc120,cacheTime=_0xe8f251,hasCachedConfig=!![],_0x1cc120;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a307_0x29d9(){const _0x28880f=['/config.json','824292vywyYe','2dbuLfw','now','14009220WvalFk','10gnIKqW','270zUwgGK','6052320jqEfgC','1123178ojNihV','json','2185212etsaDW','/config/index.json','78552SzOFoX','node','application/json','6891850LvLsjA'];a307_0x29d9=function(){return _0x28880f;};return a307_0x29d9();}(function(_0x2417b7,_0x361f8d){const _0x9c32d1=a307_0x41ea,_0x1229f0=_0x2417b7();while(!![]){try{const _0x2a1516=parseInt(_0x9c32d1(0x1b1))/0x1*(-parseInt(_0x9c32d1(0x1bb))/0x2)+-parseInt(_0x9c32d1(0x1ba))/0x3+parseInt(_0x9c32d1(0x1b3))/0x4*(parseInt(_0x9c32d1(0x1be))/0x5)+parseInt(_0x9c32d1(0x1b0))/0x6+parseInt(_0x9c32d1(0x1b8))/0x7+-parseInt(_0x9c32d1(0x1b5))/0x8*(-parseInt(_0x9c32d1(0x1af))/0x9)+-parseInt(_0x9c32d1(0x1bd))/0xa;if(_0x2a1516===_0x361f8d)break;else _0x1229f0['push'](_0x1229f0['shift']());}catch(_0x5ab591){_0x1229f0['push'](_0x1229f0['shift']());}}}(a307_0x29d9,0x8dfce));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x405eda=a307_0x41ea,_0x21e242=getTemplateBaseUrl(),_0x591557=[_0x21e242+_0x405eda(0x1b9),_0x21e242+_0x405eda(0x1b4)];for(const _0x14a291 of _0x591557){try{const _0x55f16f=await fetch(_0x14a291,{'headers':{'Accept':_0x405eda(0x1b7)}});if(!_0x55f16f['ok'])continue;const _0x238aa5=await _0x55f16f[_0x405eda(0x1b2)]();if(!_0x238aa5['cli']?.['stableVersion']||!_0x238aa5['sdk']?.[_0x405eda(0x1b6)]?.['stableVersion'])continue;return _0x238aa5;}catch{}}return null;}function a307_0x41ea(_0x1de22e,_0x136a25){_0x1de22e=_0x1de22e-0x1af;const _0x29d972=a307_0x29d9();let _0x41eae8=_0x29d972[_0x1de22e];return _0x41eae8;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1c6b04=a307_0x41ea,_0x315b04=Date[_0x1c6b04(0x1bc)]();if(hasCachedConfig){const _0x2f11f7=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x315b04-cacheTime<_0x2f11f7)return cachedConfig;}const _0x34e004=await fetchCdnConfig();return cachedConfig=_0x34e004,cacheTime=_0x315b04,hasCachedConfig=!![],_0x34e004;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a306_0x4f4f1d=a306_0x2bb9;(function(_0x4f84fc,_0x5e4495){const _0x4192e3=a306_0x2bb9,_0x590060=_0x4f84fc();while(!![]){try{const _0x1e36f8=parseInt(_0x4192e3(0x193))/0x1*(-parseInt(_0x4192e3(0x1a2))/0x2)+parseInt(_0x4192e3(0x1a7))/0x3+parseInt(_0x4192e3(0x19b))/0x4*(-parseInt(_0x4192e3(0x1b1))/0x5)+parseInt(_0x4192e3(0x1a8))/0x6+parseInt(_0x4192e3(0x18c))/0x7+-parseInt(_0x4192e3(0x190))/0x8*(parseInt(_0x4192e3(0x1ac))/0x9)+parseInt(_0x4192e3(0x1ab))/0xa;if(_0x1e36f8===_0x5e4495)break;else _0x590060['push'](_0x590060['shift']());}catch(_0x4189ae){_0x590060['push'](_0x590060['shift']());}}}(a306_0x2803,0xe8ce4));import a306_0x32bb7b from'node:fs';import a306_0x5b84bd from'node:path';import a306_0xf25d7d from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a306_0x4f4f1d(0x1a3);function isNonNumericVersion(_0x5a5568){const _0x4d3a10=a306_0x4f4f1d,_0x2930c2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2930c2[_0x4d3a10(0x18d)](_0x26ed3b=>_0x26ed3b['test'](_0x5a5568));}function getInstalledVersion(_0x49b0d9,_0x58cfe4){const _0x1eac6f=a306_0x4f4f1d;try{const _0x55b924=a306_0x5b84bd['join'](_0x49b0d9,_0x1eac6f(0x19a),_0x58cfe4,_0x1eac6f(0x19c));if(a306_0x32bb7b[_0x1eac6f(0x18e)](_0x55b924)){const _0x34a948=JSON[_0x1eac6f(0x1a6)](a306_0x32bb7b[_0x1eac6f(0x192)](_0x55b924,_0x1eac6f(0x1ad)));return _0x34a948[_0x1eac6f(0x18f)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x3d330f=a306_0x4f4f1d;try{const _0x5045cc=await getCdnConfig();return _0x5045cc?.[_0x3d330f(0x199)]?.[_0x3d330f(0x191)]?.[_0x3d330f(0x19d)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x49edef=a306_0x4f4f1d;try{const _0x1890f3=await getCdnConfig();return _0x1890f3?.[_0x49edef(0x199)]?.['node']?.[_0x49edef(0x1aa)]||_0x49edef(0x18b);}catch{return _0x49edef(0x18b);}}function a306_0x2803(){const _0x4a0696=['5924580KoqedI','\x20\x20\x20Stable\x20version:\x20','packageName','3931070aBHkBg','981flXFCx','utf-8','↪\x20SDK\x20update\x20available','join','utf8','4175UmUWWK','@lovrabet/sdk','12414647AJmMSf','some','existsSync','version','34928haPTdv','node','readFileSync','1098101SxxjsA','all','\x1b[1m','dependencies','log','\x20\x20\x20Upgrade\x20command:\x20','sdk','node_modules','3128HXPhbX','package.json','stableVersion','needsUpgrade','minVersion','coerce','devDependencies','2HsYdUk','1.2.0','\x20\x20\x20Current\x20version:\x20','latest','parse','79437PCSdQp'];a306_0x2803=function(){return _0x4a0696;};return a306_0x2803();}export async function checkSdkVersion(_0x578325){const _0x1076ba=a306_0x4f4f1d,_0x84cb14=a306_0x5b84bd[_0x1076ba(0x1af)](_0x578325,'package.json'),[_0x387535,_0x1bb297]=await Promise[_0x1076ba(0x194)]([getSdkStableVersion(),getSdkPackageName()]),_0x110430=_0x387535||FALLBACK_MIN_SDK_VERSION;if(!a306_0x32bb7b[_0x1076ba(0x18e)](_0x84cb14))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};try{const _0x1118b1=JSON[_0x1076ba(0x1a6)](a306_0x32bb7b[_0x1076ba(0x192)](_0x84cb14,'utf8')),_0x41c3ea=_0x1118b1['dependencies']||{},_0x186604=_0x1118b1[_0x1076ba(0x1a1)]||{},_0x100bb0=_0x41c3ea[_0x1bb297]||_0x186604[_0x1bb297];if(!_0x100bb0)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};let _0xecb097=getInstalledVersion(_0x578325,_0x1bb297);!_0xecb097&&(_0xecb097=_0x100bb0);if(isNonNumericVersion(_0x100bb0))return{'installed':!![],'version':_0xecb097,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};const _0x46d4bf=a306_0xf25d7d[_0x1076ba(0x1a0)](_0xecb097),_0x4ed189=a306_0xf25d7d[_0x1076ba(0x1a0)](_0x110430),_0x5c4b07=_0x46d4bf&&_0x4ed189?a306_0xf25d7d['lt'](_0x46d4bf,_0x4ed189):![];return{'installed':!![],'version':_0xecb097,'needsUpgrade':_0x5c4b07,'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x110430,'packageName':_0x1bb297,'stableVersion':_0x387535};}}function a306_0x2bb9(_0x2d85cb,_0x5019aa){_0x2d85cb=_0x2d85cb-0x18b;const _0x2803bf=a306_0x2803();let _0x2bb9eb=_0x2803bf[_0x2d85cb];return _0x2bb9eb;}export function checkSdkVersionSync(_0x413f4b){const _0x459049=a306_0x4f4f1d,_0x3b61b5=a306_0x5b84bd[_0x459049(0x1af)](_0x413f4b,_0x459049(0x19c)),_0x13682c=_0x459049(0x18b);if(!a306_0x32bb7b['existsSync'](_0x3b61b5))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};try{const _0x5aaabc=JSON['parse'](a306_0x32bb7b[_0x459049(0x192)](_0x3b61b5,_0x459049(0x1b0))),_0x36120a=_0x5aaabc[_0x459049(0x196)]||{},_0x5c2139=_0x5aaabc['devDependencies']||{},_0x3edb58=_0x36120a[_0x13682c]||_0x5c2139[_0x13682c];if(!_0x3edb58)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};let _0x1c124f=getInstalledVersion(_0x413f4b,_0x13682c);!_0x1c124f&&(_0x1c124f=_0x3edb58);if(isNonNumericVersion(_0x3edb58))return{'installed':!![],'version':_0x1c124f,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};const _0x277958=a306_0xf25d7d[_0x459049(0x1a0)](_0x1c124f),_0x523666=_0x277958?a306_0xf25d7d['lt'](_0x277958,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x1c124f,'needsUpgrade':_0x523666,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x13682c,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x305f84){const _0x57e5b8=a306_0x4f4f1d;if(!_0x305f84[_0x57e5b8(0x19e)])return;const _0x8fd205='\x1b[33m',_0x452d25='\x1b[0m',_0x134c02=_0x57e5b8(0x195),_0x20374c=_0x305f84['packageName']||_0x57e5b8(0x18b),_0x1c984b=_0x305f84[_0x57e5b8(0x19d)]||_0x305f84[_0x57e5b8(0x19f)],_0x2e24af='npm\x20install\x20'+_0x20374c+'@'+(_0x1c984b||_0x57e5b8(0x1a5));console['log'](),console[_0x57e5b8(0x197)](''+_0x8fd205+_0x134c02+_0x57e5b8(0x1ae)+_0x452d25),console['log'](_0x8fd205+_0x57e5b8(0x1a4)+_0x20374c+'@'+_0x305f84[_0x57e5b8(0x18f)]+_0x452d25),console[_0x57e5b8(0x197)](_0x8fd205+_0x57e5b8(0x1a9)+_0x1c984b+_0x452d25),console[_0x57e5b8(0x197)](_0x8fd205+_0x57e5b8(0x198)+_0x2e24af+_0x452d25),console[_0x57e5b8(0x197)]();}
1
+ const a308_0x5748c3=a308_0x38fa;(function(_0x14b6ac,_0xcf8f40){const _0x89ca11=a308_0x38fa,_0x53750e=_0x14b6ac();while(!![]){try{const _0x4e72b1=parseInt(_0x89ca11(0x152))/0x1*(-parseInt(_0x89ca11(0x145))/0x2)+-parseInt(_0x89ca11(0x146))/0x3+-parseInt(_0x89ca11(0x148))/0x4*(-parseInt(_0x89ca11(0x149))/0x5)+-parseInt(_0x89ca11(0x14a))/0x6*(-parseInt(_0x89ca11(0x150))/0x7)+-parseInt(_0x89ca11(0x143))/0x8+parseInt(_0x89ca11(0x14e))/0x9+parseInt(_0x89ca11(0x13e))/0xa*(-parseInt(_0x89ca11(0x154))/0xb);if(_0x4e72b1===_0xcf8f40)break;else _0x53750e['push'](_0x53750e['shift']());}catch(_0xf75a7f){_0x53750e['push'](_0x53750e['shift']());}}}(a308_0xe270,0x2b08d));import a308_0x5380d5 from'node:fs';import a308_0x50d77c from'node:path';import a308_0x4f00b7 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';function a308_0x38fa(_0x38ca45,_0x5fdcaa){_0x38ca45=_0x38ca45-0x134;const _0xe2705c=a308_0xe270();let _0x38faeb=_0xe2705c[_0x38ca45];return _0x38faeb;}const FALLBACK_MIN_SDK_VERSION=a308_0x5748c3(0x155);function isNonNumericVersion(_0x461016){const _0x1da8c8=a308_0x5748c3,_0x5e5540=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x5e5540[_0x1da8c8(0x14d)](_0x5df2ae=>_0x5df2ae[_0x1da8c8(0x138)](_0x461016));}function getInstalledVersion(_0xd40069,_0x5c8f3a){const _0x2fb9b7=a308_0x5748c3;try{const _0xbb20aa=a308_0x50d77c[_0x2fb9b7(0x157)](_0xd40069,_0x2fb9b7(0x158),_0x5c8f3a,_0x2fb9b7(0x14b));if(a308_0x5380d5[_0x2fb9b7(0x137)](_0xbb20aa)){const _0x848d67=JSON['parse'](a308_0x5380d5[_0x2fb9b7(0x135)](_0xbb20aa,'utf-8'));return _0x848d67[_0x2fb9b7(0x144)]||null;}}catch{}return null;}function a308_0xe270(){const _0x198bdc=['coerce','314112ZbxLSo','version','10SBfQVr','743379yfEtoZ','\x1b[0m','436gqfelD','11255TjeNER','17124qfEHzG','package.json','\x1b[33m','some','2654208SvXuCi','utf8','707BXUfXe','log','13183ifhHlB','\x20\x20\x20Upgrade\x20command:\x20','44XjraQK','1.2.0','needsUpgrade','join','node_modules','parse','packageName','devDependencies','\x1b[1m','readFileSync','all','existsSync','test','npm\x20install\x20','@lovrabet/sdk','node','\x20\x20\x20Stable\x20version:\x20','minVersion','748210cEOHup','stableVersion','dependencies','sdk'];a308_0xe270=function(){return _0x198bdc;};return a308_0xe270();}async function getSdkStableVersion(){const _0x5e450c=a308_0x5748c3;try{const _0x332ae0=await getCdnConfig();return _0x332ae0?.[_0x5e450c(0x141)]?.['node']?.[_0x5e450c(0x13f)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x52d405=a308_0x5748c3;try{const _0x1f6752=await getCdnConfig();return _0x1f6752?.[_0x52d405(0x141)]?.[_0x52d405(0x13b)]?.[_0x52d405(0x15a)]||'@lovrabet/sdk';}catch{return _0x52d405(0x13a);}}export async function checkSdkVersion(_0x404627){const _0x13fbe4=a308_0x5748c3,_0x4e63c0=a308_0x50d77c[_0x13fbe4(0x157)](_0x404627,_0x13fbe4(0x14b)),[_0x24847f,_0x1f28fd]=await Promise[_0x13fbe4(0x136)]([getSdkStableVersion(),getSdkPackageName()]),_0x23c101=_0x24847f||FALLBACK_MIN_SDK_VERSION;if(!a308_0x5380d5[_0x13fbe4(0x137)](_0x4e63c0))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x23c101,'packageName':_0x1f28fd,'stableVersion':_0x24847f};try{const _0x351dd6=JSON['parse'](a308_0x5380d5[_0x13fbe4(0x135)](_0x4e63c0,_0x13fbe4(0x14f))),_0x5f5208=_0x351dd6[_0x13fbe4(0x140)]||{},_0x86496c=_0x351dd6[_0x13fbe4(0x15b)]||{},_0xd0aca4=_0x5f5208[_0x1f28fd]||_0x86496c[_0x1f28fd];if(!_0xd0aca4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x23c101,'packageName':_0x1f28fd,'stableVersion':_0x24847f};let _0x29e1b3=getInstalledVersion(_0x404627,_0x1f28fd);!_0x29e1b3&&(_0x29e1b3=_0xd0aca4);if(isNonNumericVersion(_0xd0aca4))return{'installed':!![],'version':_0x29e1b3,'needsUpgrade':![],'minVersion':_0x23c101,'packageName':_0x1f28fd,'stableVersion':_0x24847f};const _0x4404b0=a308_0x4f00b7[_0x13fbe4(0x142)](_0x29e1b3),_0x20e4bd=a308_0x4f00b7[_0x13fbe4(0x142)](_0x23c101),_0x34361b=_0x4404b0&&_0x20e4bd?a308_0x4f00b7['lt'](_0x4404b0,_0x20e4bd):![];return{'installed':!![],'version':_0x29e1b3,'needsUpgrade':_0x34361b,'minVersion':_0x23c101,'packageName':_0x1f28fd,'stableVersion':_0x24847f};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x23c101,'packageName':_0x1f28fd,'stableVersion':_0x24847f};}}export function checkSdkVersionSync(_0x48f501){const _0x3ec9a8=a308_0x5748c3,_0x2c8891=a308_0x50d77c[_0x3ec9a8(0x157)](_0x48f501,_0x3ec9a8(0x14b)),_0x395320='@lovrabet/sdk';if(!a308_0x5380d5['existsSync'](_0x2c8891))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x395320,'stableVersion':null};try{const _0x1d8059=JSON[_0x3ec9a8(0x159)](a308_0x5380d5[_0x3ec9a8(0x135)](_0x2c8891,_0x3ec9a8(0x14f))),_0x4227cf=_0x1d8059[_0x3ec9a8(0x140)]||{},_0x1ec00f=_0x1d8059['devDependencies']||{},_0x2318b1=_0x4227cf[_0x395320]||_0x1ec00f[_0x395320];if(!_0x2318b1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x395320,'stableVersion':null};let _0x12c2dc=getInstalledVersion(_0x48f501,_0x395320);!_0x12c2dc&&(_0x12c2dc=_0x2318b1);if(isNonNumericVersion(_0x2318b1))return{'installed':!![],'version':_0x12c2dc,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x395320,'stableVersion':null};const _0x114ec4=a308_0x4f00b7['coerce'](_0x12c2dc),_0x4fddd9=_0x114ec4?a308_0x4f00b7['lt'](_0x114ec4,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x12c2dc,'needsUpgrade':_0x4fddd9,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x395320,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x395320,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x5f4282){const _0x36e368=a308_0x5748c3;if(!_0x5f4282[_0x36e368(0x156)])return;const _0x37a08a=_0x36e368(0x14c),_0x126136=_0x36e368(0x147),_0x425d3e=_0x36e368(0x134),_0x3b120c=_0x5f4282[_0x36e368(0x15a)]||_0x36e368(0x13a),_0xfcb66f=_0x5f4282[_0x36e368(0x13f)]||_0x5f4282[_0x36e368(0x13d)],_0x467a0c=_0x36e368(0x139)+_0x3b120c+'@'+(_0xfcb66f||'latest');console['log'](),console[_0x36e368(0x151)](''+_0x37a08a+_0x425d3e+'↪\x20SDK\x20update\x20available'+_0x126136),console['log'](_0x37a08a+'\x20\x20\x20Current\x20version:\x20'+_0x3b120c+'@'+_0x5f4282[_0x36e368(0x144)]+_0x126136),console[_0x36e368(0x151)](_0x37a08a+_0x36e368(0x13c)+_0xfcb66f+_0x126136),console['log'](_0x37a08a+_0x36e368(0x153)+_0x467a0c+_0x126136),console['log']();}
@@ -1 +1 @@
1
- (function(_0x2e2b1e,_0x163ea0){const _0x5a06ac=a307_0x5211,_0x281d31=_0x2e2b1e();while(!![]){try{const _0x116abd=-parseInt(_0x5a06ac(0xb4))/0x1*(parseInt(_0x5a06ac(0xa5))/0x2)+-parseInt(_0x5a06ac(0xa6))/0x3+parseInt(_0x5a06ac(0xa9))/0x4+parseInt(_0x5a06ac(0xb1))/0x5*(-parseInt(_0x5a06ac(0xa8))/0x6)+parseInt(_0x5a06ac(0xc6))/0x7*(parseInt(_0x5a06ac(0xb6))/0x8)+parseInt(_0x5a06ac(0xb7))/0x9+parseInt(_0x5a06ac(0xac))/0xa*(-parseInt(_0x5a06ac(0xba))/0xb);if(_0x116abd===_0x163ea0)break;else _0x281d31['push'](_0x281d31['shift']());}catch(_0x28400c){_0x281d31['push'](_0x281d31['shift']());}}}(a307_0x4317,0x8e7aa));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a307_0x36e2d5 from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{CliErrors}from'../errors.js';function a307_0x5211(_0x47788f,_0xbf9a55){_0x47788f=_0x47788f-0xa5;const _0x431735=a307_0x4317();let _0x5211e7=_0x431735[_0x47788f];return _0x5211e7;}export function getCliUpgradeCommand(_0x64a7cf){const _0x13073c=a307_0x5211,_0x1e0f61=_0x64a7cf[_0x13073c(0xb3)]||_0x13073c(0xa7);return _0x13073c(0xc8)+NPM_PACKAGE_NAME+'@'+_0x1e0f61;}function getCurrentCliVersion(){const _0x3a43de=a307_0x5211;try{const _0x20b607=fileURLToPath(import.meta.url),_0x4ebc50=resolve(dirname(_0x20b607),'../..'),_0x32db79=resolve(_0x4ebc50,'package.json'),_0x3317e5=JSON['parse'](readFileSync(_0x32db79,_0x3a43de(0xb8)));return _0x3317e5['version']||'1.0.0';}catch{return _0x3a43de(0xbd);}}export async function checkCliVersion(){const _0x16dd94=a307_0x5211,_0x317784=getCurrentCliVersion(),_0xc2f3fc=await getCliVersionPolicy(),_0x3d695b=_0xc2f3fc?.[_0x16dd94(0xb3)]||null,_0x3e9dd2=_0xc2f3fc?.[_0x16dd94(0xbe)]||null;let _0x321ce9=![],_0x35b14a=![];const _0x4003bf=a307_0x36e2d5[_0x16dd94(0xb0)](_0x317784);if(_0x4003bf&&_0x3d695b)try{const _0x5de7ec=a307_0x36e2d5['coerce'](_0x3d695b);if(_0x5de7ec)_0x321ce9=a307_0x36e2d5['lt'](_0x4003bf,_0x5de7ec);}catch{}if(_0x4003bf&&_0x3e9dd2)try{const _0x34c18d=a307_0x36e2d5[_0x16dd94(0xb0)](_0x3e9dd2);if(_0x34c18d)_0x35b14a=a307_0x36e2d5['lt'](_0x4003bf,_0x34c18d);}catch{}return _0x35b14a&&(_0x321ce9=!![]),{'currentVersion':_0x317784,'stableVersion':_0x3d695b,'minimumVersion':_0x3e9dd2,'needsUpgrade':_0x321ce9,'belowMinimum':_0x35b14a,'isPreRelease':![],'upgradeMessage':_0xc2f3fc?.[_0x16dd94(0xbf)],'minimumVersionMessage':_0xc2f3fc?.[_0x16dd94(0xad)]};}function a307_0x4317(){const _0x2fc011=['7HWQIzu','Minimum\x20supported:\x20','npm\x20install\x20-g\x20','38deMFiq','548427JBehkj','latest','12XRqFGA','1497440wfvogD','log','join','740yvXmLl','minimumVersionMessage','needsUpgrade','\x1b[1m','coerce','309560nugUXv','\x20\x20\x20Stable\x20version:\x20','stableVersion','6619HXcUIC','\x20\x20\x20Upgrade\x20command:\x20','1906768gPtCfo','8290206wMzsLv','utf-8','belowMinimum','76978SlgHTh','\x20\x20\x20Minimum\x20supported:\x20','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','1.0.0','minimumVersion','upgradeMessage','filter','↪\x20Critical\x20CLI\x20upgrade\x20required','\x1b[33m','\x20\x20\x20','Current\x20version:\x20','currentVersion'];a307_0x4317=function(){return _0x2fc011;};return a307_0x4317();}export function printCliUpgradeWarning(_0x2922ac){const _0x597be1=a307_0x5211;if(!_0x2922ac[_0x597be1(0xae)]&&!_0x2922ac[_0x597be1(0xb9)])return;const _0x229ab8='\x1b[31m',_0x56cd66=_0x597be1(0xc2),_0x3ffb96='\x1b[0m',_0x5c32e6=_0x597be1(0xaf),_0x2b3fde=getCliUpgradeCommand(_0x2922ac);console[_0x597be1(0xaa)](),_0x2922ac[_0x597be1(0xb9)]?(console['log'](''+_0x229ab8+_0x5c32e6+_0x597be1(0xc1)+_0x3ffb96),console[_0x597be1(0xaa)](_0x229ab8+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2922ac[_0x597be1(0xc5)]+_0x3ffb96),_0x2922ac['minimumVersion']&&console[_0x597be1(0xaa)](_0x229ab8+_0x597be1(0xbb)+_0x2922ac['minimumVersion']+_0x3ffb96),_0x2922ac[_0x597be1(0xb3)]&&_0x2922ac[_0x597be1(0xb3)]!==_0x2922ac[_0x597be1(0xbe)]&&console[_0x597be1(0xaa)](_0x229ab8+'\x20\x20\x20Recommended\x20stable:\x20'+_0x2922ac['stableVersion']+_0x3ffb96),_0x2922ac['minimumVersionMessage']&&console['log'](_0x229ab8+'\x20\x20\x20'+_0x2922ac[_0x597be1(0xad)]+_0x3ffb96),console[_0x597be1(0xaa)](_0x229ab8+_0x597be1(0xb5)+_0x2b3fde+_0x3ffb96)):(console[_0x597be1(0xaa)](''+_0x56cd66+_0x5c32e6+'↪\x20New\x20version\x20available'+_0x3ffb96),console[_0x597be1(0xaa)](_0x56cd66+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x2922ac['currentVersion']+_0x3ffb96),console[_0x597be1(0xaa)](_0x56cd66+_0x597be1(0xb2)+_0x2922ac[_0x597be1(0xb3)]+_0x3ffb96),_0x2922ac[_0x597be1(0xbf)]&&console['log'](_0x56cd66+_0x597be1(0xc3)+_0x2922ac[_0x597be1(0xbf)]+_0x3ffb96),console['log'](_0x56cd66+_0x597be1(0xb5)+_0x2b3fde+_0x3ffb96)),console['log']();}export function assertCliVersionSupported(_0x52f11b){const _0x2d3c82=a307_0x5211;if(!_0x52f11b['belowMinimum'])return;const _0x2f6868=[_0x52f11b[_0x2d3c82(0xad)],_0x2d3c82(0xc4)+_0x52f11b['currentVersion'],_0x52f11b[_0x2d3c82(0xbe)]?_0x2d3c82(0xc7)+_0x52f11b['minimumVersion']:null,'Upgrade\x20command:\x20'+getCliUpgradeCommand(_0x52f11b)][_0x2d3c82(0xc0)](Boolean)[_0x2d3c82(0xab)]('\x0a');throw CliErrors['validation'](_0x2d3c82(0xbc),_0x2f6868);}
1
+ function a309_0x2044(_0xde91d5,_0x2b4d55){_0xde91d5=_0xde91d5-0x1ed;const _0x38982f=a309_0x3898();let _0x2044a3=_0x38982f[_0xde91d5];return _0x2044a3;}(function(_0x557df,_0xcc7392){const _0x1c4708=a309_0x2044,_0x4c1698=_0x557df();while(!![]){try{const _0x5b246c=parseInt(_0x1c4708(0x1fe))/0x1+parseInt(_0x1c4708(0x1f1))/0x2*(parseInt(_0x1c4708(0x20f))/0x3)+-parseInt(_0x1c4708(0x1fc))/0x4*(-parseInt(_0x1c4708(0x1ee))/0x5)+parseInt(_0x1c4708(0x1ef))/0x6*(-parseInt(_0x1c4708(0x1f9))/0x7)+-parseInt(_0x1c4708(0x1f0))/0x8*(parseInt(_0x1c4708(0x206))/0x9)+-parseInt(_0x1c4708(0x1f6))/0xa+-parseInt(_0x1c4708(0x1f2))/0xb;if(_0x5b246c===_0xcc7392)break;else _0x4c1698['push'](_0x4c1698['shift']());}catch(_0x1bd232){_0x4c1698['push'](_0x4c1698['shift']());}}}(a309_0x3898,0xcec11));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a309_0x3898(){const _0x21a8a7=['1224GsKJMB','belowMinimum','737031gvmWmk','currentVersion','../..','Upgrade\x20command:\x20','latest','log','version','\x20\x20\x20Current\x20CLI\x20version:\x20','18nngLHp','minimumVersionMessage','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','\x1b[1m','minimumVersion','stableVersion','npm\x20install\x20-g\x20','\x20\x20\x20Stable\x20version:\x20','validation','123NPieXX','utf-8','Minimum\x20supported:\x20','\x1b[33m','coerce','↪\x20New\x20version\x20available','filter','↪\x20Critical\x20CLI\x20upgrade\x20required','package.json','\x1b[0m','\x20\x20\x20','25735vVsKLM','18gRygbv','1596584XAfFIY','45394PYHbzq','14674033MXZspH','parse','upgradeMessage','needsUpgrade','5381900zWeifT','\x20\x20\x20Recommended\x20stable:\x20','1.0.0','290234UzlXai','\x20\x20\x20Minimum\x20supported:\x20','Current\x20version:\x20'];a309_0x3898=function(){return _0x21a8a7;};return a309_0x3898();}import a309_0x576376 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(_0x4437ff){const _0x209e05=a309_0x2044,_0x56550f=_0x4437ff[_0x209e05(0x20b)]||_0x209e05(0x202);return _0x209e05(0x20c)+NPM_PACKAGE_NAME+'@'+_0x56550f;}function getCurrentCliVersion(){const _0x53888d=a309_0x2044;try{const _0x2eb159=fileURLToPath(import.meta.url),_0x133125=resolve(dirname(_0x2eb159),_0x53888d(0x200)),_0x41e087=resolve(_0x133125,_0x53888d(0x217)),_0x2b0d9a=JSON[_0x53888d(0x1f3)](readFileSync(_0x41e087,_0x53888d(0x210)));return _0x2b0d9a[_0x53888d(0x204)]||_0x53888d(0x1f8);}catch{return _0x53888d(0x1f8);}}export async function checkCliVersion(){const _0x4309bb=a309_0x2044,_0x510c70=getCurrentCliVersion(),_0x706df3=await getCliVersionPolicy(),_0x44af7f=_0x706df3?.['stableVersion']||null,_0x7f378f=_0x706df3?.[_0x4309bb(0x20a)]||null;let _0x5898f8=![],_0x18617f=![];const _0x1a72c8=a309_0x576376[_0x4309bb(0x213)](_0x510c70);if(_0x1a72c8&&_0x44af7f)try{const _0x5d89fe=a309_0x576376[_0x4309bb(0x213)](_0x44af7f);if(_0x5d89fe)_0x5898f8=a309_0x576376['lt'](_0x1a72c8,_0x5d89fe);}catch{}if(_0x1a72c8&&_0x7f378f)try{const _0x84ce8f=a309_0x576376[_0x4309bb(0x213)](_0x7f378f);if(_0x84ce8f)_0x18617f=a309_0x576376['lt'](_0x1a72c8,_0x84ce8f);}catch{}return _0x18617f&&(_0x5898f8=!![]),{'currentVersion':_0x510c70,'stableVersion':_0x44af7f,'minimumVersion':_0x7f378f,'needsUpgrade':_0x5898f8,'belowMinimum':_0x18617f,'isPreRelease':![],'upgradeMessage':_0x706df3?.[_0x4309bb(0x1f4)],'minimumVersionMessage':_0x706df3?.[_0x4309bb(0x207)]};}export function printCliUpgradeWarning(_0x41a706){const _0x4e8a92=a309_0x2044;if(!_0x41a706[_0x4e8a92(0x1f5)]&&!_0x41a706[_0x4e8a92(0x1fd)])return;const _0x34085c='\x1b[31m',_0x18fdfd=_0x4e8a92(0x212),_0x4efe4a=_0x4e8a92(0x218),_0x1fd835=_0x4e8a92(0x209),_0x3ee099=getCliUpgradeCommand(_0x41a706);console[_0x4e8a92(0x203)](),_0x41a706[_0x4e8a92(0x1fd)]?(console[_0x4e8a92(0x203)](''+_0x34085c+_0x1fd835+_0x4e8a92(0x216)+_0x4efe4a),console[_0x4e8a92(0x203)](_0x34085c+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x41a706['currentVersion']+_0x4efe4a),_0x41a706[_0x4e8a92(0x20a)]&&console[_0x4e8a92(0x203)](_0x34085c+_0x4e8a92(0x1fa)+_0x41a706['minimumVersion']+_0x4efe4a),_0x41a706[_0x4e8a92(0x20b)]&&_0x41a706['stableVersion']!==_0x41a706['minimumVersion']&&console[_0x4e8a92(0x203)](_0x34085c+_0x4e8a92(0x1f7)+_0x41a706['stableVersion']+_0x4efe4a),_0x41a706[_0x4e8a92(0x207)]&&console[_0x4e8a92(0x203)](_0x34085c+_0x4e8a92(0x1ed)+_0x41a706[_0x4e8a92(0x207)]+_0x4efe4a),console[_0x4e8a92(0x203)](_0x34085c+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3ee099+_0x4efe4a)):(console[_0x4e8a92(0x203)](''+_0x18fdfd+_0x1fd835+_0x4e8a92(0x214)+_0x4efe4a),console[_0x4e8a92(0x203)](_0x18fdfd+_0x4e8a92(0x205)+_0x41a706['currentVersion']+_0x4efe4a),console[_0x4e8a92(0x203)](_0x18fdfd+_0x4e8a92(0x20d)+_0x41a706[_0x4e8a92(0x20b)]+_0x4efe4a),_0x41a706[_0x4e8a92(0x1f4)]&&console[_0x4e8a92(0x203)](_0x18fdfd+_0x4e8a92(0x1ed)+_0x41a706[_0x4e8a92(0x1f4)]+_0x4efe4a),console[_0x4e8a92(0x203)](_0x18fdfd+'\x20\x20\x20Upgrade\x20command:\x20'+_0x3ee099+_0x4efe4a)),console[_0x4e8a92(0x203)]();}export function assertCliVersionSupported(_0x27659c){const _0x17618a=a309_0x2044;if(!_0x27659c[_0x17618a(0x1fd)])return;const _0x485013=[_0x27659c['minimumVersionMessage'],_0x17618a(0x1fb)+_0x27659c[_0x17618a(0x1ff)],_0x27659c[_0x17618a(0x20a)]?_0x17618a(0x211)+_0x27659c[_0x17618a(0x20a)]:null,_0x17618a(0x201)+getCliUpgradeCommand(_0x27659c)][_0x17618a(0x215)](Boolean)['join']('\x0a');throw CliErrors[_0x17618a(0x20e)](_0x17618a(0x208),_0x485013);}
@@ -1 +1 @@
1
- (function(_0x369587,_0x202a1e){const _0x3a449b=a308_0x2af3,_0x4a5576=_0x369587();while(!![]){try{const _0x49bac2=-parseInt(_0x3a449b(0x15a))/0x1*(parseInt(_0x3a449b(0x162))/0x2)+-parseInt(_0x3a449b(0x159))/0x3+-parseInt(_0x3a449b(0x160))/0x4*(parseInt(_0x3a449b(0x161))/0x5)+parseInt(_0x3a449b(0x169))/0x6*(parseInt(_0x3a449b(0x15c))/0x7)+parseInt(_0x3a449b(0x163))/0x8*(parseInt(_0x3a449b(0x165))/0x9)+-parseInt(_0x3a449b(0x166))/0xa*(parseInt(_0x3a449b(0x15e))/0xb)+parseInt(_0x3a449b(0x167))/0xc;if(_0x49bac2===_0x202a1e)break;else _0x4a5576['push'](_0x4a5576['shift']());}catch(_0x56ef77){_0x4a5576['push'](_0x4a5576['shift']());}}}(a308_0x16c7,0x1a7f6));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(_0x1e3438){const _0x2576eb=a308_0x2af3;return typeof _0x1e3438===_0x2576eb(0x16d)&&_0x1e3438[_0x2576eb(0x16a)]()[_0x2576eb(0x16f)]>0x0?_0x1e3438[_0x2576eb(0x16a)]():null;}function normalizeCliVersionPolicy(_0x5c679f){const _0x2c281a=a308_0x2af3;if(!_0x5c679f||typeof _0x5c679f!==_0x2c281a(0x16b))return null;const _0x51dc95=_0x5c679f,_0x32501c=_0x51dc95[_0x2c281a(0x171)]&&typeof _0x51dc95[_0x2c281a(0x171)]===_0x2c281a(0x16b)?_0x51dc95[_0x2c281a(0x171)]:_0x51dc95,_0x581b1c=pickString(_0x32501c['stableVersion'])||pickString(_0x32501c[_0x2c281a(0x172)])||pickString(_0x32501c[_0x2c281a(0x168)]),_0x445eac=pickString(_0x32501c['minimumVersion'])||pickString(_0x32501c[_0x2c281a(0x170)]);if(!_0x581b1c&&!_0x445eac)return null;return{'stableVersion':_0x581b1c,'minimumVersion':_0x445eac,'upgradeMessage':pickString(_0x32501c[_0x2c281a(0x15b)])||undefined,'minimumVersionMessage':pickString(_0x32501c[_0x2c281a(0x15d)])||undefined};}function a308_0x16c7(){const _0x1ed774=['530280BPXeej','45DTTBEI','upgradeMessage','21413hYfIac','minimumVersionMessage','134497mUEYFc','application/json','4FKjAza','499715psVfPy','1492tuwkkS','8AhBHuR','abort','97686tQVHVn','30pbkzKp','4124244ZlRJrA','recommendedVersion','198fIsChZ','trim','object','now','string','json','length','minVersion','cli','latestVersion','signal'];a308_0x16c7=function(){return _0x1ed774;};return a308_0x16c7();}export async function fetchRabetbaseCdnConfig(){const _0x4a569d=a308_0x2af3,_0x20a117=new AbortController(),_0x458e55=setTimeout(()=>_0x20a117[_0x4a569d(0x164)](),FETCH_TIMEOUT_MS);try{const _0x487487=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x4a569d(0x15f)},'signal':_0x20a117[_0x4a569d(0x158)]});if(!_0x487487['ok'])return null;const _0x32241c=await _0x487487[_0x4a569d(0x16e)]();return _0x32241c&&typeof _0x32241c===_0x4a569d(0x16b)?_0x32241c:null;}catch{return null;}finally{clearTimeout(_0x458e55);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x5536b8=a308_0x2af3,_0x19427d=Date[_0x5536b8(0x16c)]();if(hasCachedConfig){const _0x3c6e03=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x19427d-cacheTime<_0x3c6e03)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x19427d,hasCachedConfig=!![],cachedConfig;}function a308_0x2af3(_0x1d1a37,_0x1e85ff){_0x1d1a37=_0x1d1a37-0x158;const _0x16c7b4=a308_0x16c7();let _0x2af38b=_0x16c7b4[_0x1d1a37];return _0x2af38b;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x59d6e1,_0x41fb85){const _0x1984f1=a310_0xa7a1,_0x33dadd=_0x59d6e1();while(!![]){try{const _0x3161d7=parseInt(_0x1984f1(0x13c))/0x1+parseInt(_0x1984f1(0x137))/0x2*(parseInt(_0x1984f1(0x12e))/0x3)+-parseInt(_0x1984f1(0x13f))/0x4*(-parseInt(_0x1984f1(0x12f))/0x5)+parseInt(_0x1984f1(0x139))/0x6*(-parseInt(_0x1984f1(0x13b))/0x7)+-parseInt(_0x1984f1(0x135))/0x8+parseInt(_0x1984f1(0x130))/0x9*(parseInt(_0x1984f1(0x131))/0xa)+parseInt(_0x1984f1(0x134))/0xb*(-parseInt(_0x1984f1(0x13d))/0xc);if(_0x3161d7===_0x41fb85)break;else _0x33dadd['push'](_0x33dadd['shift']());}catch(_0x36824c){_0x33dadd['push'](_0x33dadd['shift']());}}}(a310_0xbdd8,0x5b75d));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(_0xebba04){const _0x2ed2be=a310_0xa7a1;return typeof _0xebba04===_0x2ed2be(0x141)&&_0xebba04[_0x2ed2be(0x136)]()['length']>0x0?_0xebba04['trim']():null;}function a310_0xa7a1(_0x3ed0fb,_0x141d41){_0x3ed0fb=_0x3ed0fb-0x12d;const _0xbdd8a8=a310_0xbdd8();let _0xa7a1b2=_0xbdd8a8[_0x3ed0fb];return _0xa7a1b2;}function normalizeCliVersionPolicy(_0x140ece){const _0x25a00b=a310_0xa7a1;if(!_0x140ece||typeof _0x140ece!==_0x25a00b(0x132))return null;const _0x5e558b=_0x140ece,_0xcf7bf1=_0x5e558b[_0x25a00b(0x133)]&&typeof _0x5e558b[_0x25a00b(0x133)]===_0x25a00b(0x132)?_0x5e558b[_0x25a00b(0x133)]:_0x5e558b,_0x251b53=pickString(_0xcf7bf1[_0x25a00b(0x138)])||pickString(_0xcf7bf1['latestVersion'])||pickString(_0xcf7bf1['recommendedVersion']),_0x43bbd8=pickString(_0xcf7bf1[_0x25a00b(0x13a)])||pickString(_0xcf7bf1[_0x25a00b(0x140)]);if(!_0x251b53&&!_0x43bbd8)return null;return{'stableVersion':_0x251b53,'minimumVersion':_0x43bbd8,'upgradeMessage':pickString(_0xcf7bf1[_0x25a00b(0x13e)])||undefined,'minimumVersionMessage':pickString(_0xcf7bf1['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x5d3bcd=a310_0xa7a1,_0x2126f5=new AbortController(),_0x285841=setTimeout(()=>_0x2126f5['abort'](),FETCH_TIMEOUT_MS);try{const _0x492310=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x2126f5[_0x5d3bcd(0x12d)]});if(!_0x492310['ok'])return null;const _0x3512d9=await _0x492310['json']();return _0x3512d9&&typeof _0x3512d9==='object'?_0x3512d9:null;}catch{return null;}finally{clearTimeout(_0x285841);}}function a310_0xbdd8(){const _0x32d998=['object','cli','25157sTRvMV','4387152kvefur','trim','2024QhHnel','stableVersion','2817048FVqGaa','minimumVersion','7XPAeAN','57462ePxlgd','2568rjJtoQ','upgradeMessage','4BYaEAr','minVersion','string','signal','1914eslOAq','3394145NtRXRU','18ttPIua','2499970lTUrud'];a310_0xbdd8=function(){return _0x32d998;};return a310_0xbdd8();}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x508c6f=Date['now']();if(hasCachedConfig){const _0x3c2e45=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x508c6f-cacheTime<_0x3c2e45)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x508c6f,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -4,6 +4,7 @@
4
4
  * 所有配置文件读写的底层实现统一在 context.ts 中。
5
5
  * 本模块保留历史导出接口,供旧命令使用。
6
6
  */
7
+ import { type MultiAppConfig } from "../context.js";
7
8
  export { getProjectConfigPath, getGlobalConfigPath } from "../context.js";
8
9
  export { isInProject } from "../context.js";
9
10
  export declare function readConfig(projectRoot?: string): Record<string, any> & {
@@ -13,14 +14,7 @@ export declare function readConfig(projectRoot?: string): Record<string, any> &
13
14
  template_base_url?: string;
14
15
  locale?: string;
15
16
  };
16
- export interface MultiAppConfig {
17
- name: string;
18
- appcode: string;
19
- isDefault: boolean;
20
- env?: string;
21
- apiDir?: string;
22
- cookie?: string;
23
- }
17
+ export type { MultiAppConfig } from "../context.js";
24
18
  /**
25
19
  * 获取配置的 AppCode
26
20
  * 优先级:多应用 defaultApp > 项目 appcode > 项目 app > 全局 appcode > 全局 app
@@ -1 +1 @@
1
- const a309_0x58f974=a309_0x2469;function a309_0xaa73(){const _0x3c72b5=['project','93861vEUHsm','7620652VycGHK','147ThTUSd','196lWhcwc','env','90072tzcvkT','5rwZFVZ','1390wSiBjO','55YjopVZ','3354684GGuwPN','136uNTpHp','14627VvPPfq','7459836okgVSJ','134556brGgyd'];a309_0xaa73=function(){return _0x3c72b5;};return a309_0xaa73();}(function(_0x25af4a,_0x29eed8){const _0x1d4066=a309_0x2469,_0x144c9f=_0x25af4a();while(!![]){try{const _0x2f1a5b=parseInt(_0x1d4066(0x1e3))/0x1*(-parseInt(_0x1d4066(0x1ea))/0x2)+-parseInt(_0x1d4066(0x1e5))/0x3*(-parseInt(_0x1d4066(0x1e2))/0x4)+-parseInt(_0x1d4066(0x1de))/0x5*(-parseInt(_0x1d4066(0x1e4))/0x6)+parseInt(_0x1d4066(0x1e9))/0x7*(parseInt(_0x1d4066(0x1dd))/0x8)+-parseInt(_0x1d4066(0x1e7))/0x9*(parseInt(_0x1d4066(0x1df))/0xa)+-parseInt(_0x1d4066(0x1e0))/0xb*(-parseInt(_0x1d4066(0x1e1))/0xc)+-parseInt(_0x1d4066(0x1e8))/0xd;if(_0x2f1a5b===_0x29eed8)break;else _0x144c9f['push'](_0x144c9f['shift']());}catch(_0xc43e83){_0x144c9f['push'](_0x144c9f['shift']());}}}(a309_0xaa73,0xe3d61));function a309_0x2469(_0x43384e,_0x35a3dd){_0x43384e=_0x43384e-0x1dd;const _0xaa7302=a309_0xaa73();let _0x246908=_0xaa7302[_0x43384e];return _0x246908;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a309_0x165d72,getMultiAppConfigs as a309_0x928b49,getTemplateBaseUrl as a309_0x142423}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x50318c){const _0x270bcf=a309_0x2469,_0x4df29f=readRawConfig(_0x50318c);return _0x4df29f[_0x270bcf(0x1eb)]&&typeof _0x4df29f[_0x270bcf(0x1eb)]==='string'&&initEnv(_0x4df29f['env']),_0x4df29f;}export function getConfigAppCode(){return a309_0x165d72();}export function getMultiAppConfigs(_0x1325df=a309_0x58f974(0x1e6)){return a309_0x928b49(_0x1325df);}export function getTemplateBaseUrl(){return a309_0x142423();}
1
+ const a311_0x499c63=a311_0xd392;(function(_0x46530a,_0x528017){const _0x332864=a311_0xd392,_0x3aef18=_0x46530a();while(!![]){try{const _0x2cb09d=parseInt(_0x332864(0xf0))/0x1+parseInt(_0x332864(0xef))/0x2+-parseInt(_0x332864(0xf5))/0x3*(parseInt(_0x332864(0xf4))/0x4)+-parseInt(_0x332864(0xec))/0x5+parseInt(_0x332864(0xf3))/0x6*(-parseInt(_0x332864(0xeb))/0x7)+parseInt(_0x332864(0xee))/0x8+-parseInt(_0x332864(0xf1))/0x9*(-parseInt(_0x332864(0xea))/0xa);if(_0x2cb09d===_0x528017)break;else _0x3aef18['push'](_0x3aef18['shift']());}catch(_0x48a150){_0x3aef18['push'](_0x3aef18['shift']());}}}(a311_0x5ef4,0xb55f8));import{initEnv}from'../constant/env.js';function a311_0x5ef4(){const _0x33ab65=['env','1949336XvtnKR','548240nuRrIl','814915dXQTCB','45YeWgKg','string','1011804zlTqjp','12396cJXMxH','435XNEeGt','project','2776420jgeOHJ','7UJBAoF','6800095ahKHwW'];a311_0x5ef4=function(){return _0x33ab65;};return a311_0x5ef4();}import{readRawConfig,getConfigAppCode as a311_0x51ca35,getMultiAppConfigs as a311_0x4ff607,getTemplateBaseUrl as a311_0x30e844}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a311_0xd392(_0x38b90f,_0x41595a){_0x38b90f=_0x38b90f-0xea;const _0x5ef4b1=a311_0x5ef4();let _0xd392ff=_0x5ef4b1[_0x38b90f];return _0xd392ff;}export{isInProject}from'../context.js';export function readConfig(_0x17b66e){const _0x1cc422=a311_0xd392,_0x50dbfd=readRawConfig(_0x17b66e);return _0x50dbfd[_0x1cc422(0xed)]&&typeof _0x50dbfd[_0x1cc422(0xed)]===_0x1cc422(0xf2)&&initEnv(_0x50dbfd['env']),_0x50dbfd;}export function getConfigAppCode(){return a311_0x51ca35();}export function getMultiAppConfigs(_0x59302e=a311_0x499c63(0xf6)){return a311_0x4ff607(_0x59302e);}export function getTemplateBaseUrl(){return a311_0x30e844();}
@@ -1 +1 @@
1
- function a310_0x3f82(_0x564c7b,_0x3569de){_0x564c7b=_0x564c7b-0x1ea;const _0x3c79ae=a310_0x3c79();let _0x3f8278=_0x3c79ae[_0x564c7b];return _0x3f8278;}(function(_0x3dc661,_0x1e7ca6){const _0xb811ec=a310_0x3f82,_0x3c6197=_0x3dc661();while(!![]){try{const _0x496cf2=-parseInt(_0xb811ec(0x1eb))/0x1+-parseInt(_0xb811ec(0x1ed))/0x2+parseInt(_0xb811ec(0x1f4))/0x3*(parseInt(_0xb811ec(0x1ec))/0x4)+-parseInt(_0xb811ec(0x1ea))/0x5+-parseInt(_0xb811ec(0x1f6))/0x6*(parseInt(_0xb811ec(0x1f3))/0x7)+-parseInt(_0xb811ec(0x1f5))/0x8+-parseInt(_0xb811ec(0x1ee))/0x9*(-parseInt(_0xb811ec(0x1f0))/0xa);if(_0x496cf2===_0x1e7ca6)break;else _0x3c6197['push'](_0x3c6197['shift']());}catch(_0x58e4f2){_0x3c6197['push'](_0x3c6197['shift']());}}}(a310_0x3c79,0xe90e0));function a310_0x3c79(){const _0x219ffa=['12Fgpxqq','3790310wymoRp','1426204BVXiZX','2032HLRodB','3302840akkOBl','20187pRlNrg','string','18830rlwmBv','number','isFinite','510839Tjjusq','4998RviDFt','1069320HhSnAk'];a310_0x3c79=function(){return _0x219ffa;};return a310_0x3c79();}function toFiniteNumber(_0x216aa4){const _0x1c2409=a310_0x3f82;if(typeof _0x216aa4===_0x1c2409(0x1f1)&&Number[_0x1c2409(0x1f2)](_0x216aa4))return _0x216aa4;if(typeof _0x216aa4===_0x1c2409(0x1ef)){const _0x3984b2=_0x216aa4['trim']();if(!_0x3984b2)return undefined;const _0x588591=Number(_0x3984b2);if(Number[_0x1c2409(0x1f2)](_0x588591))return _0x588591;}return undefined;}export function normalizeEntityWithIdResponse(_0x688c03){const _0x2d03e4=toFiniteNumber(_0x688c03);if(_0x2d03e4!==undefined)return{'id':_0x2d03e4,'entity':{'id':_0x2d03e4}};if(!_0x688c03||typeof _0x688c03!=='object')return{'id':undefined,'entity':{}};const _0x46ae15={..._0x688c03},_0x4fb77a=toFiniteNumber(_0x46ae15['id']);return _0x4fb77a!==undefined&&(_0x46ae15['id']=_0x4fb77a),{'id':_0x4fb77a,'entity':_0x46ae15};}
1
+ function a312_0xed85(){const _0x499bf1=['37548hdRhZk','1039635iCyBGQ','282808IynJGv','273YNLEpG','object','number','trim','574626atkmkK','403208PQtPrN','isFinite','8FflqQC','420333ZXrTLp','string','11976Czirwi'];a312_0xed85=function(){return _0x499bf1;};return a312_0xed85();}(function(_0x2d4681,_0x40745d){const _0x1d277b=a312_0x4edc,_0x2f8454=_0x2d4681();while(!![]){try{const _0x1dd12e=-parseInt(_0x1d277b(0x18d))/0x1+parseInt(_0x1d277b(0x185))/0x2+-parseInt(_0x1d277b(0x188))/0x3*(-parseInt(_0x1d277b(0x187))/0x4)+-parseInt(_0x1d277b(0x18c))/0x5+parseInt(_0x1d277b(0x184))/0x6+parseInt(_0x1d277b(0x18e))/0x7*(parseInt(_0x1d277b(0x18a))/0x8)+parseInt(_0x1d277b(0x18b))/0x9;if(_0x1dd12e===_0x40745d)break;else _0x2f8454['push'](_0x2f8454['shift']());}catch(_0x578503){_0x2f8454['push'](_0x2f8454['shift']());}}}(a312_0xed85,0x247a9));function toFiniteNumber(_0x31a43a){const _0x2e7eef=a312_0x4edc;if(typeof _0x31a43a===_0x2e7eef(0x190)&&Number[_0x2e7eef(0x186)](_0x31a43a))return _0x31a43a;if(typeof _0x31a43a===_0x2e7eef(0x189)){const _0x1a6dc0=_0x31a43a[_0x2e7eef(0x183)]();if(!_0x1a6dc0)return undefined;const _0x1230a9=Number(_0x1a6dc0);if(Number['isFinite'](_0x1230a9))return _0x1230a9;}return undefined;}function a312_0x4edc(_0x59d712,_0x2bf77c){_0x59d712=_0x59d712-0x183;const _0xed8514=a312_0xed85();let _0x4edc71=_0xed8514[_0x59d712];return _0x4edc71;}export function normalizeEntityWithIdResponse(_0x4007b9){const _0x528bd3=a312_0x4edc,_0x13ace8=toFiniteNumber(_0x4007b9);if(_0x13ace8!==undefined)return{'id':_0x13ace8,'entity':{'id':_0x13ace8}};if(!_0x4007b9||typeof _0x4007b9!==_0x528bd3(0x18f))return{'id':undefined,'entity':{}};const _0x283fe2={..._0x4007b9},_0x567e27=toFiniteNumber(_0x283fe2['id']);return _0x567e27!==undefined&&(_0x283fe2['id']=_0x567e27),{'id':_0x567e27,'entity':_0x283fe2};}
@@ -1 +1 @@
1
- (function(_0x57b129,_0xac5db7){const _0x33be39=a311_0x16fb,_0x105eba=_0x57b129();while(!![]){try{const _0x13cf4f=-parseInt(_0x33be39(0xf6))/0x1*(-parseInt(_0x33be39(0xf2))/0x2)+parseInt(_0x33be39(0xf1))/0x3+parseInt(_0x33be39(0xef))/0x4+parseInt(_0x33be39(0xf0))/0x5*(-parseInt(_0x33be39(0xf5))/0x6)+parseInt(_0x33be39(0xf3))/0x7*(parseInt(_0x33be39(0xf4))/0x8)+parseInt(_0x33be39(0xf7))/0x9*(-parseInt(_0x33be39(0xed))/0xa)+-parseInt(_0x33be39(0xf8))/0xb*(parseInt(_0x33be39(0xee))/0xc);if(_0x13cf4f===_0xac5db7)break;else _0x105eba['push'](_0x105eba['shift']());}catch(_0x589d23){_0x105eba['push'](_0x105eba['shift']());}}}(a311_0x16c1,0xc0f18));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a311_0x16c1(){const _0x55d093=['50OTXAnL','2790672ltoZUD','10AcVOYI','217JAwraa','108504YpQiSz','763380uVRoMW','109093AaZQXx','164268nleXvV','2239391IMUHGh','500iBXSkU','12LYLHvO','5130540SFsLHY'];a311_0x16c1=function(){return _0x55d093;};return a311_0x16c1();}import{join}from'node:path';function a311_0x16fb(_0x5834dc,_0x58b3c6){_0x5834dc=_0x5834dc-0xed;const _0x16c1ff=a311_0x16c1();let _0x16fb6d=_0x16c1ff[_0x5834dc];return _0x16fb6d;}export async function copyDir(_0x9d1b59,_0x788417){const _0x19ef05=statSync(_0x9d1b59);if(_0x19ef05['isDirectory']()){!existsSync(_0x788417)&&mkdirSync(_0x788417,{'recursive':!![]});const _0x4d8fed=readdirSync(_0x9d1b59);for(const _0x2c371e of _0x4d8fed){await copyDir(join(_0x9d1b59,_0x2c371e),join(_0x788417,_0x2c371e));}}else copyFileSync(_0x9d1b59,_0x788417);}export function ensureDir(_0x2e162e){!existsSync(_0x2e162e)&&mkdirSync(_0x2e162e,{'recursive':!![]});}export function pathExists(_0x360a14){return existsSync(_0x360a14);}
1
+ function a313_0x5d9c(){const _0xf354cd=['69772aTfmbm','17796JreADO','4619028TJkofz','isDirectory','470gaIxqM','178154VkgrAV','3108320QNsaCC','4419iMpFiL','3632HJHWVh','3zPchOG','9VBkWOZ','437353TkCwwV','11GBNuVy'];a313_0x5d9c=function(){return _0xf354cd;};return a313_0x5d9c();}(function(_0x402631,_0x1b9c2a){const _0x2b650f=a313_0x7dd5,_0x1890b6=_0x402631();while(!![]){try{const _0xad7dbd=-parseInt(_0x2b650f(0x1e8))/0x1*(parseInt(_0x2b650f(0x1e4))/0x2)+parseInt(_0x2b650f(0x1e9))/0x3*(-parseInt(_0x2b650f(0x1ec))/0x4)+-parseInt(_0x2b650f(0x1e3))/0x5*(-parseInt(_0x2b650f(0x1ed))/0x6)+parseInt(_0x2b650f(0x1ea))/0x7+parseInt(_0x2b650f(0x1e7))/0x8*(parseInt(_0x2b650f(0x1e6))/0x9)+-parseInt(_0x2b650f(0x1e5))/0xa*(-parseInt(_0x2b650f(0x1eb))/0xb)+-parseInt(_0x2b650f(0x1ee))/0xc;if(_0xad7dbd===_0x1b9c2a)break;else _0x1890b6['push'](_0x1890b6['shift']());}catch(_0xb950dd){_0x1890b6['push'](_0x1890b6['shift']());}}}(a313_0x5d9c,0x29a36));function a313_0x7dd5(_0x38b32a,_0x407744){_0x38b32a=_0x38b32a-0x1e2;const _0x5d9c07=a313_0x5d9c();let _0x7dd577=_0x5d9c07[_0x38b32a];return _0x7dd577;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x2617b3,_0x6474a0){const _0x557fac=a313_0x7dd5,_0xbf6195=statSync(_0x2617b3);if(_0xbf6195[_0x557fac(0x1e2)]()){!existsSync(_0x6474a0)&&mkdirSync(_0x6474a0,{'recursive':!![]});const _0x3d3f62=readdirSync(_0x2617b3);for(const _0x482c18 of _0x3d3f62){await copyDir(join(_0x2617b3,_0x482c18),join(_0x6474a0,_0x482c18));}}else copyFileSync(_0x2617b3,_0x6474a0);}export function ensureDir(_0x49c790){!existsSync(_0x49c790)&&mkdirSync(_0x49c790,{'recursive':!![]});}export function pathExists(_0x40d86a){return existsSync(_0x40d86a);}
@@ -1 +1 @@
1
- const a312_0x2145ef=a312_0xec9c;(function(_0x4540bb,_0x51fe0b){const _0x232fb9=a312_0xec9c,_0xf690cc=_0x4540bb();while(!![]){try{const _0x445ce2=-parseInt(_0x232fb9(0x1c8))/0x1+-parseInt(_0x232fb9(0x1ce))/0x2*(parseInt(_0x232fb9(0x1c1))/0x3)+-parseInt(_0x232fb9(0x1c5))/0x4*(parseInt(_0x232fb9(0x1ca))/0x5)+parseInt(_0x232fb9(0x1c7))/0x6*(-parseInt(_0x232fb9(0x1d9))/0x7)+-parseInt(_0x232fb9(0x1e0))/0x8*(-parseInt(_0x232fb9(0x1cb))/0x9)+-parseInt(_0x232fb9(0x1d0))/0xa*(-parseInt(_0x232fb9(0x1db))/0xb)+parseInt(_0x232fb9(0x1e4))/0xc;if(_0x445ce2===_0x51fe0b)break;else _0xf690cc['push'](_0xf690cc['shift']());}catch(_0x2f2c0d){_0xf690cc['push'](_0xf690cc['shift']());}}}(a312_0x3ddf,0x30954));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 _0xce83d8=a312_0xec9c,_0x2ca3d6=getTemplateBaseUrl();return _0x2ca3d6+_0xce83d8(0x1c3);}const CACHE_DIR=join(homedir(),a312_0x2145ef(0x1d2),a312_0x2145ef(0x1dd));export async function fetchGuidesFromCDN(){const _0x4c9a43=a312_0x2145ef,_0x41fc57=getGuidesCdnUrl(),_0x2a044d=await fetch(_0x41fc57,{'headers':{'Accept':_0x4c9a43(0x1d3)}});if(!_0x2a044d['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x2a044d[_0x4c9a43(0x1bf)]+'\x20'+_0x2a044d[_0x4c9a43(0x1d5)]);const _0x47e35a=await _0x2a044d[_0x4c9a43(0x1cc)]();if(!_0x47e35a[_0x4c9a43(0x1c4)]||typeof _0x47e35a[_0x4c9a43(0x1c4)]!==_0x4c9a43(0x1da))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x47e35a;}function a312_0x3ddf(){const _0x480034=['extendContent','320028ajQfzK','49445eRsruW','utf-8','330985EYqSQb','34443qYVpWH','json','lastUpdated','585232xDwZkb','entries','2131430TqvZrx','skillTemplate','.lovrabet','application/json','path','statusText','title','.lovrabet/skill/guides','join','28XLTKcj','object','11LxCznI','replace','cache','\x0a\x0a>更新时间:','content','72vRLyAs','CDN\x20data\x20is\x20missing\x20skillTemplate','map','length','7670604ZqmbKq','trimEnd','status','push','3TvkzGh','keys','/skills/guides.json','guides','8dZdZlR'];a312_0x3ddf=function(){return _0x480034;};return a312_0x3ddf();}export function writeGuidesToProject(_0x402ab1,_0x490954,_0x5090af=a312_0x2145ef(0x1d7),_0x306054){const _0x59fdb3=a312_0x2145ef,_0x4199d6=join(_0x490954,_0x5090af);mkdirSync(_0x4199d6,{'recursive':!![]});for(const [_0x49e9c5,_0x37cbd8]of Object[_0x59fdb3(0x1cf)](_0x402ab1['guides'])){let _0x10a1b6=_0x37cbd8['content'];_0x37cbd8[_0x59fdb3(0x1cd)]&&(_0x10a1b6=appendUpdateTime(_0x10a1b6,_0x37cbd8[_0x59fdb3(0x1cd)])),writeFileSync(join(_0x4199d6,_0x49e9c5+'.md'),_0x10a1b6,'utf-8');}}function a312_0xec9c(_0xe45a99,_0x471620){_0xe45a99=_0xe45a99-0x1be;const _0x3ddf08=a312_0x3ddf();let _0xec9c20=_0x3ddf08[_0xe45a99];return _0xec9c20;}export function appendUpdateTime(_0x3bc8ef,_0x3ffaff){const _0x1bc2fb=a312_0x2145ef;return _0x3bc8ef=_0x3bc8ef[_0x1bc2fb(0x1dc)](/\n*>更新时间:.*$/m,''),_0x3bc8ef[_0x1bc2fb(0x1be)]()+(_0x1bc2fb(0x1de)+_0x3ffaff);}export function getSkillTemplate(_0x5bae2c){const _0x2e46b0=a312_0x2145ef;return _0x5bae2c[_0x2e46b0(0x1d1)]?.[_0x2e46b0(0x1df)]||'';}export function appendExtendContents(_0x55aef0,_0x208ddb,_0x4616f1){const _0x5e1c9c=a312_0x2145ef,_0x482e4f=[];for(const [,_0x270a6f]of Object[_0x5e1c9c(0x1cf)](_0x208ddb['guides'])){_0x270a6f[_0x5e1c9c(0x1c6)]&&_0x482e4f[_0x5e1c9c(0x1c0)](_0x270a6f['extendContent'][_0x5e1c9c(0x1be)]());}if(_0x482e4f[_0x5e1c9c(0x1e3)]===0x0)return _0x55aef0;return _0x55aef0[_0x5e1c9c(0x1be)]()+'\x0a\x0a'+_0x482e4f[_0x5e1c9c(0x1d8)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0xc84865,_0x48c32b,_0x5794a6){const _0x4b3faf=a312_0x2145ef,_0x5b58c0=getSkillTemplate(_0xc84865);if(!_0x5b58c0)throw new Error(_0x4b3faf(0x1e1));const _0x1e9628=dirname(_0x48c32b);mkdirSync(_0x1e9628,{'recursive':!![]});let _0x4e0895=_0x5b58c0[_0x4b3faf(0x1dc)](/\{\{IDE_NAME\}\}/g,_0x5794a6);_0x4e0895=appendExtendContents(_0x4e0895,_0xc84865),_0xc84865[_0x4b3faf(0x1d1)]['lastUpdated']&&(_0x4e0895=appendUpdateTime(_0x4e0895,_0xc84865[_0x4b3faf(0x1d1)][_0x4b3faf(0x1cd)])),writeFileSync(_0x48c32b,_0x4e0895,_0x4b3faf(0x1c9));}export async function installGuides(_0x38ced4){const _0x374358=a312_0x2145ef,_0xe8bc7=await fetchGuidesFromCDN();return writeGuidesToProject(_0xe8bc7,_0x38ced4),Object[_0x374358(0x1c2)](_0xe8bc7[_0x374358(0x1c4)])['length'];}export function getGuidesSummary(_0x332989){const _0x34e9b9=a312_0x2145ef;return Object[_0x34e9b9(0x1cf)](_0x332989[_0x34e9b9(0x1c4)])[_0x34e9b9(0x1e2)](([_0x5c96fa,_0x2094fc])=>({'key':_0x5c96fa,'title':_0x2094fc[_0x34e9b9(0x1d6)],'path':_0x2094fc[_0x34e9b9(0x1d4)]}));}
1
+ function a314_0x50f1(_0x3fe418,_0x27088c){_0x3fe418=_0x3fe418-0x16f;const _0x1e2906=a314_0x1e29();let _0x50f149=_0x1e2906[_0x3fe418];return _0x50f149;}const a314_0x741183=a314_0x50f1;(function(_0x589b23,_0xe8211f){const _0x221ee2=a314_0x50f1,_0x2ad510=_0x589b23();while(!![]){try{const _0x3267cd=-parseInt(_0x221ee2(0x173))/0x1+-parseInt(_0x221ee2(0x18a))/0x2+-parseInt(_0x221ee2(0x177))/0x3+-parseInt(_0x221ee2(0x171))/0x4+-parseInt(_0x221ee2(0x172))/0x5*(parseInt(_0x221ee2(0x190))/0x6)+-parseInt(_0x221ee2(0x179))/0x7*(parseInt(_0x221ee2(0x18d))/0x8)+-parseInt(_0x221ee2(0x180))/0x9*(-parseInt(_0x221ee2(0x178))/0xa);if(_0x3267cd===_0xe8211f)break;else _0x2ad510['push'](_0x2ad510['shift']());}catch(_0x36093f){_0x2ad510['push'](_0x2ad510['shift']());}}}(a314_0x1e29,0x9dab5));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 _0x95a56b=getTemplateBaseUrl();return _0x95a56b+'/skills/guides.json';}const CACHE_DIR=join(homedir(),'.lovrabet',a314_0x741183(0x176));export async function fetchGuidesFromCDN(){const _0x4da087=a314_0x741183,_0x21cb2d=getGuidesCdnUrl(),_0x242b84=await fetch(_0x21cb2d,{'headers':{'Accept':_0x4da087(0x16f)}});if(!_0x242b84['ok'])throw new Error(_0x4da087(0x184)+_0x242b84['status']+'\x20'+_0x242b84[_0x4da087(0x18f)]);const _0x1a5d62=await _0x242b84[_0x4da087(0x18b)]();if(!_0x1a5d62[_0x4da087(0x17c)]||typeof _0x1a5d62[_0x4da087(0x17c)]!==_0x4da087(0x189))throw new Error(_0x4da087(0x187));return _0x1a5d62;}export function writeGuidesToProject(_0x35634d,_0xaa14af,_0x2fe354=a314_0x741183(0x17d),_0x4d1941){const _0x59ddb3=a314_0x741183,_0xeb05b9=join(_0xaa14af,_0x2fe354);mkdirSync(_0xeb05b9,{'recursive':!![]});for(const [_0x2ea63,_0x5919df]of Object[_0x59ddb3(0x18e)](_0x35634d[_0x59ddb3(0x17c)])){let _0x313358=_0x5919df[_0x59ddb3(0x185)];_0x5919df['lastUpdated']&&(_0x313358=appendUpdateTime(_0x313358,_0x5919df[_0x59ddb3(0x188)])),writeFileSync(join(_0xeb05b9,_0x2ea63+_0x59ddb3(0x181)),_0x313358,_0x59ddb3(0x191));}}export function appendUpdateTime(_0x270889,_0x2a13f1){const _0x5b01fb=a314_0x741183;return _0x270889=_0x270889[_0x5b01fb(0x192)](/\n*>更新时间:.*$/m,''),_0x270889[_0x5b01fb(0x17a)]()+(_0x5b01fb(0x183)+_0x2a13f1);}export function getSkillTemplate(_0x32f67a){const _0x22e7d0=a314_0x741183;return _0x32f67a[_0x22e7d0(0x17e)]?.[_0x22e7d0(0x185)]||'';}export function appendExtendContents(_0x313646,_0x573b14,_0x491cbd){const _0x2eb392=a314_0x741183,_0x2f42d6=[];for(const [,_0x5650ee]of Object[_0x2eb392(0x18e)](_0x573b14[_0x2eb392(0x17c)])){_0x5650ee[_0x2eb392(0x18c)]&&_0x2f42d6[_0x2eb392(0x174)](_0x5650ee[_0x2eb392(0x18c)][_0x2eb392(0x17a)]());}if(_0x2f42d6['length']===0x0)return _0x313646;return _0x313646[_0x2eb392(0x17a)]()+'\x0a\x0a'+_0x2f42d6[_0x2eb392(0x17f)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x2400a9,_0x3f56d5,_0x3396b7){const _0xbcb8e5=a314_0x741183,_0x2ca19a=getSkillTemplate(_0x2400a9);if(!_0x2ca19a)throw new Error(_0xbcb8e5(0x175));const _0x33e79a=dirname(_0x3f56d5);mkdirSync(_0x33e79a,{'recursive':!![]});let _0x3665a1=_0x2ca19a[_0xbcb8e5(0x192)](/\{\{IDE_NAME\}\}/g,_0x3396b7);_0x3665a1=appendExtendContents(_0x3665a1,_0x2400a9),_0x2400a9['skillTemplate'][_0xbcb8e5(0x188)]&&(_0x3665a1=appendUpdateTime(_0x3665a1,_0x2400a9[_0xbcb8e5(0x17e)][_0xbcb8e5(0x188)])),writeFileSync(_0x3f56d5,_0x3665a1,'utf-8');}function a314_0x1e29(){const _0x121901=['entries','statusText','385044NylfSs','utf-8','replace','application/json','title','1854992XSIMqP','85jCXhYj','725866Pahjbp','push','CDN\x20data\x20is\x20missing\x20skillTemplate','cache','269958rAYsOF','10YsySuV','1621242soMQWl','trimEnd','length','guides','.lovrabet/skill/guides','skillTemplate','join','38763693ARhzmF','.md','keys','\x0a\x0a>更新时间:','CDN\x20request\x20failed:\x20','content','map','CDN\x20returned\x20invalid\x20data','lastUpdated','object','2118200NMgFQq','json','extendContent','8ygqrtz'];a314_0x1e29=function(){return _0x121901;};return a314_0x1e29();}export async function installGuides(_0x4f90c7){const _0x2a04f9=a314_0x741183,_0x5c3db2=await fetchGuidesFromCDN();return writeGuidesToProject(_0x5c3db2,_0x4f90c7),Object[_0x2a04f9(0x182)](_0x5c3db2[_0x2a04f9(0x17c)])[_0x2a04f9(0x17b)];}export function getGuidesSummary(_0x3eb4ce){const _0x42796e=a314_0x741183;return Object[_0x42796e(0x18e)](_0x3eb4ce[_0x42796e(0x17c)])[_0x42796e(0x186)](([_0x59e714,_0x3e229f])=>({'key':_0x59e714,'title':_0x3e229f[_0x42796e(0x170)],'path':_0x3e229f['path']}));}
@@ -1 +1 @@
1
- function a313_0x2fef(){const _0x428ec2=['17910ZsHFEN','fetch','headers','30236eSQEkn','url','ENOTFOUND','status','statusText','AbortError','abort','22337EgbMQV','Request\x20failed','log','application/json','TypeError','980046eSUzXl','262026dSBciw','312QtuHTV','1042554OTHquM','2jwFdSj','json','920fcwKkf','150nafkUo','75251ZZDgZL','message','includes','signal','content-type','\x20in\x20','get','text','*\x20Request\x20failed;\x20retry\x20','name','25swBTaS'];a313_0x2fef=function(){return _0x428ec2;};return a313_0x2fef();}(function(_0x11cc9c,_0x262a7c){const _0x390073=a313_0x4a9b,_0x154080=_0x11cc9c();while(!![]){try{const _0x2c0e59=-parseInt(_0x390073(0x16f))/0x1*(-parseInt(_0x390073(0x172))/0x2)+parseInt(_0x390073(0x171))/0x3+-parseInt(_0x390073(0x184))/0x4*(parseInt(_0x390073(0x180))/0x5)+-parseInt(_0x390073(0x16e))/0x6+parseInt(_0x390073(0x18b))/0x7*(-parseInt(_0x390073(0x174))/0x8)+-parseInt(_0x390073(0x181))/0x9*(parseInt(_0x390073(0x175))/0xa)+parseInt(_0x390073(0x176))/0xb*(parseInt(_0x390073(0x170))/0xc);if(_0x2c0e59===_0x262a7c)break;else _0x154080['push'](_0x154080['shift']());}catch(_0x325899){_0x154080['push'](_0x154080['shift']());}}}(a313_0x2fef,0x2e413));function a313_0x4a9b(_0x47d2fa,_0x41c1b9){_0x47d2fa=_0x47d2fa-0x16d;const _0x2fef9b=a313_0x2fef();let _0x4a9b03=_0x2fef9b[_0x47d2fa];return _0x4a9b03;}export async function httpRequest(_0x76d284,_0x18bf57={}){const _0x43a87c=a313_0x4a9b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x18bf57;let _0xf56028=null;for(let _0x3bce6f=0x0;_0x3bce6f<=retries;_0x3bce6f++){try{const _0x1936d3=new AbortController(),_0x3bc0ef=setTimeout(()=>_0x1936d3[_0x43a87c(0x18a)](),timeout),_0xcffb4d=await fetch(_0x76d284,{'headers':headers,'signal':_0x1936d3[_0x43a87c(0x179)]});clearTimeout(_0x3bc0ef);let _0x515c0a;const _0x1e7821=_0xcffb4d['headers'][_0x43a87c(0x17c)](_0x43a87c(0x17a));return _0x1e7821?.['includes'](_0x43a87c(0x18e))?_0x515c0a=await _0xcffb4d[_0x43a87c(0x173)]():_0x515c0a=await _0xcffb4d[_0x43a87c(0x17d)](),{'ok':_0xcffb4d['ok'],'status':_0xcffb4d[_0x43a87c(0x187)],'statusText':_0xcffb4d[_0x43a87c(0x188)],'data':_0x515c0a,'headers':_0xcffb4d[_0x43a87c(0x183)],'url':_0xcffb4d[_0x43a87c(0x185)],'text':()=>_0xcffb4d[_0x43a87c(0x17d)]()};}catch(_0x2e388d){_0xf56028=_0x2e388d instanceof Error?_0x2e388d:new Error(String(_0x2e388d));if(_0x3bce6f===retries)break;if(shouldRetry(_0x2e388d)){console[_0x43a87c(0x18d)](_0x43a87c(0x17e)+(_0x3bce6f+0x1)+_0x43a87c(0x17b)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0xf56028||new Error(_0x43a87c(0x18c));}function shouldRetry(_0x96be50){const _0x576922=a313_0x4a9b;if(_0x96be50 instanceof Error){if(_0x96be50[_0x576922(0x17f)]===_0x576922(0x189))return![];if(_0x96be50[_0x576922(0x17f)]===_0x576922(0x16d)&&_0x96be50[_0x576922(0x177)][_0x576922(0x178)](_0x576922(0x182)))return!![];if(_0x96be50[_0x576922(0x177)][_0x576922(0x178)]('ECONNRESET'))return!![];if(_0x96be50[_0x576922(0x177)]['includes'](_0x576922(0x186)))return![];}return![];}function sleep(_0x339c7d){return new Promise(_0x19e3e7=>setTimeout(_0x19e3e7,_0x339c7d));}export function validateUrl(_0x25e8cc){try{return new URL(_0x25e8cc),!![];}catch{return![];}}
1
+ (function(_0x3ea5c2,_0xf0558c){const _0x132c7f=a315_0x5653,_0x41cdb1=_0x3ea5c2();while(!![]){try{const _0x47836e=-parseInt(_0x132c7f(0xdf))/0x1+-parseInt(_0x132c7f(0xd8))/0x2*(parseInt(_0x132c7f(0xd7))/0x3)+parseInt(_0x132c7f(0xdb))/0x4+parseInt(_0x132c7f(0xeb))/0x5+-parseInt(_0x132c7f(0xd3))/0x6+parseInt(_0x132c7f(0xd0))/0x7*(parseInt(_0x132c7f(0xd1))/0x8)+parseInt(_0x132c7f(0xe3))/0x9*(-parseInt(_0x132c7f(0xe7))/0xa);if(_0x47836e===_0xf0558c)break;else _0x41cdb1['push'](_0x41cdb1['shift']());}catch(_0x4eca3a){_0x41cdb1['push'](_0x41cdb1['shift']());}}}(a315_0x336f,0xae3be));function a315_0x5653(_0x5c6360,_0x3384fa){_0x5c6360=_0x5c6360-0xcd;const _0x336f4e=a315_0x336f();let _0x565319=_0x336f4e[_0x5c6360];return _0x565319;}export async function httpRequest(_0x37e102,_0x1eec41={}){const _0x1b7d51=a315_0x5653,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x1eec41;let _0x1f44ae=null;for(let _0x2c5ac0=0x0;_0x2c5ac0<=retries;_0x2c5ac0++){try{const _0x2e0f57=new AbortController(),_0x1abf6c=setTimeout(()=>_0x2e0f57[_0x1b7d51(0xcd)](),timeout),_0x85c95d=await fetch(_0x37e102,{'headers':headers,'signal':_0x2e0f57[_0x1b7d51(0xd2)]});clearTimeout(_0x1abf6c);let _0x25b393;const _0x1c4c6e=_0x85c95d[_0x1b7d51(0xd4)][_0x1b7d51(0xea)](_0x1b7d51(0xe4));return _0x1c4c6e?.[_0x1b7d51(0xe9)](_0x1b7d51(0xd6))?_0x25b393=await _0x85c95d[_0x1b7d51(0xe0)]():_0x25b393=await _0x85c95d[_0x1b7d51(0xe1)](),{'ok':_0x85c95d['ok'],'status':_0x85c95d['status'],'statusText':_0x85c95d[_0x1b7d51(0xe6)],'data':_0x25b393,'headers':_0x85c95d[_0x1b7d51(0xd4)],'url':_0x85c95d[_0x1b7d51(0xde)],'text':()=>_0x85c95d[_0x1b7d51(0xe1)]()};}catch(_0x10e0d8){_0x1f44ae=_0x10e0d8 instanceof Error?_0x10e0d8:new Error(String(_0x10e0d8));if(_0x2c5ac0===retries)break;if(shouldRetry(_0x10e0d8)){console[_0x1b7d51(0xd5)](_0x1b7d51(0xdc)+(_0x2c5ac0+0x1)+_0x1b7d51(0xe8)+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x1f44ae||new Error(_0x1b7d51(0xe5));}function shouldRetry(_0xe28cc8){const _0xc9e8c7=a315_0x5653;if(_0xe28cc8 instanceof Error){if(_0xe28cc8[_0xc9e8c7(0xdd)]===_0xc9e8c7(0xe2))return![];if(_0xe28cc8['name']===_0xc9e8c7(0xcf)&&_0xe28cc8[_0xc9e8c7(0xce)][_0xc9e8c7(0xe9)](_0xc9e8c7(0xd9)))return!![];if(_0xe28cc8[_0xc9e8c7(0xce)]['includes']('ECONNRESET'))return!![];if(_0xe28cc8['message'][_0xc9e8c7(0xe9)](_0xc9e8c7(0xda)))return![];}return![];}function sleep(_0x356b62){return new Promise(_0x39c79d=>setTimeout(_0x39c79d,_0x356b62));}function a315_0x336f(){const _0x414f9f=['url','1104119xnDvlj','json','text','AbortError','1935VZyXSQ','content-type','Request\x20failed','statusText','35170kNntXK','\x20in\x20','includes','get','4721725aKxlCY','abort','message','TypeError','1352225ALKiqD','56CMOgpm','signal','5867160BbxraQ','headers','log','application/json','1509IHzyLW','308MlzEgn','fetch','ENOTFOUND','5330752ZoRcaR','*\x20Request\x20failed;\x20retry\x20','name'];a315_0x336f=function(){return _0x414f9f;};return a315_0x336f();}export function validateUrl(_0x329fe7){try{return new URL(_0x329fe7),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x162a47,_0xac81e9){const _0x3a0f30=a314_0x3896,_0x336eb1=_0x162a47();while(!![]){try{const _0x471f8a=parseInt(_0x3a0f30(0x7f))/0x1+parseInt(_0x3a0f30(0x7a))/0x2*(-parseInt(_0x3a0f30(0x71))/0x3)+-parseInt(_0x3a0f30(0x79))/0x4+parseInt(_0x3a0f30(0x76))/0x5*(-parseInt(_0x3a0f30(0x74))/0x6)+-parseInt(_0x3a0f30(0x7e))/0x7*(parseInt(_0x3a0f30(0x73))/0x8)+parseInt(_0x3a0f30(0x77))/0x9+-parseInt(_0x3a0f30(0x75))/0xa*(-parseInt(_0x3a0f30(0x7c))/0xb);if(_0x471f8a===_0xac81e9)break;else _0x336eb1['push'](_0x336eb1['shift']());}catch(_0x4d8b88){_0x336eb1['push'](_0x336eb1['shift']());}}}(a314_0x3534,0x41f68));function env(_0x196bc5){return process.env[`RABETBASE_${_0x196bc5}`]||process.env[`LOVRABET_${_0x196bc5}`]||undefined;}export function isNonInteractive(_0x155170){const _0x335e4e=a314_0x3896;return!!(_0x155170[_0x335e4e(0x80)]||_0x155170['ci']||env('CI')===_0x335e4e(0x6f)||process.env.CI===_0x335e4e(0x6f)||!process[_0x335e4e(0x78)][_0x335e4e(0x72)]||!isStdinRawModeSupported());}function a314_0x3534(){const _0x7be9d0=['stdin','3NTmZDM','isTTY','9896nLKunO','6kBassS','4992670RxPWFe','785830qivgcF','3421098PFvxNZ','stdout','599532nMHYJC','1069204uqoiIN','isRaw','22hUQPwy','setRawMode','2086tPDGBy','101805XJbdTj','nonInteractive','true'];a314_0x3534=function(){return _0x7be9d0;};return a314_0x3534();}function a314_0x3896(_0x58f3c5,_0x4ad4e7){_0x58f3c5=_0x58f3c5-0x6f;const _0x353437=a314_0x3534();let _0x3896bc=_0x353437[_0x58f3c5];return _0x3896bc;}function isStdinRawModeSupported(){const _0x5b4726=a314_0x3896;if(!process[_0x5b4726(0x70)][_0x5b4726(0x72)])return![];try{const _0xcd9986=process[_0x5b4726(0x70)][_0x5b4726(0x7b)];return process[_0x5b4726(0x70)][_0x5b4726(0x7d)](!![]),process[_0x5b4726(0x70)]['setRawMode'](_0xcd9986??![]),!![];}catch{return![];}}
1
+ (function(_0x106429,_0x5c570f){const _0x1178ab=a316_0x2746,_0x10f75c=_0x106429();while(!![]){try{const _0x54b0a6=-parseInt(_0x1178ab(0x6d))/0x1*(-parseInt(_0x1178ab(0x6c))/0x2)+-parseInt(_0x1178ab(0x6f))/0x3+parseInt(_0x1178ab(0x75))/0x4+parseInt(_0x1178ab(0x71))/0x5+-parseInt(_0x1178ab(0x6a))/0x6+parseInt(_0x1178ab(0x6b))/0x7*(-parseInt(_0x1178ab(0x72))/0x8)+-parseInt(_0x1178ab(0x77))/0x9;if(_0x54b0a6===_0x5c570f)break;else _0x10f75c['push'](_0x10f75c['shift']());}catch(_0x518c17){_0x10f75c['push'](_0x10f75c['shift']());}}}(a316_0x2eb5,0x32220));function env(_0x5c2e33){return process.env[`RABETBASE_${_0x5c2e33}`]||process.env[`LOVRABET_${_0x5c2e33}`]||undefined;}export function isNonInteractive(_0x36e5ab){const _0x3e873a=a316_0x2746;return!!(_0x36e5ab[_0x3e873a(0x79)]||_0x36e5ab['ci']||env('CI')===_0x3e873a(0x74)||process.env.CI===_0x3e873a(0x74)||!process[_0x3e873a(0x78)][_0x3e873a(0x6e)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xbebb2e=a316_0x2746;if(!process[_0xbebb2e(0x70)][_0xbebb2e(0x6e)])return![];try{const _0x27387c=process[_0xbebb2e(0x70)][_0xbebb2e(0x76)];return process[_0xbebb2e(0x70)][_0xbebb2e(0x73)](!![]),process[_0xbebb2e(0x70)][_0xbebb2e(0x73)](_0x27387c??![]),!![];}catch{return![];}}function a316_0x2746(_0x13afbb,_0x554ff8){_0x13afbb=_0x13afbb-0x6a;const _0x2eb5fe=a316_0x2eb5();let _0x27460d=_0x2eb5fe[_0x13afbb];return _0x27460d;}function a316_0x2eb5(){const _0x155009=['1776880xWyBac','1065752zfBLmI','setRawMode','true','1268516TEbKKw','isRaw','1185327nvmYFd','stdout','nonInteractive','844554pWIkUc','14CVvlhr','189346ymAjIR','1LCHgjY','isTTY','68802dgdlBF','stdin'];a316_0x2eb5=function(){return _0x155009;};return a316_0x2eb5();}
@@ -1 +1 @@
1
- const a315_0xcfeb82=a315_0x3e7d;(function(_0x4af04a,_0x2b5e83){const _0x260096=a315_0x3e7d,_0x21c756=_0x4af04a();while(!![]){try{const _0x45e3aa=-parseInt(_0x260096(0x1fa))/0x1*(-parseInt(_0x260096(0x1e6))/0x2)+-parseInt(_0x260096(0x1de))/0x3*(-parseInt(_0x260096(0x20f))/0x4)+parseInt(_0x260096(0x203))/0x5+parseInt(_0x260096(0x1e4))/0x6*(parseInt(_0x260096(0x1fc))/0x7)+-parseInt(_0x260096(0x1f9))/0x8+parseInt(_0x260096(0x1ea))/0x9+-parseInt(_0x260096(0x1e3))/0xa*(parseInt(_0x260096(0x210))/0xb);if(_0x45e3aa===_0x2b5e83)break;else _0x21c756['push'](_0x21c756['shift']());}catch(_0x1b3a25){_0x21c756['push'](_0x21c756['shift']());}}}(a315_0x2581,0xe51d8));import a315_0x43a6d3 from'winston';function a315_0x3e7d(_0x5c30f2,_0x5e0d64){_0x5c30f2=_0x5c30f2-0x1db;const _0x258128=a315_0x2581();let _0x3e7d8d=_0x258128[_0x5c30f2];return _0x3e7d8d;}import a315_0x41ffe8 from'node:fs';import a315_0x42a014 from'node:path';class Logger{[a315_0xcfeb82(0x1fd)];['logFilePath'];[a315_0xcfeb82(0x204)]='';constructor(){const _0xa02300=a315_0xcfeb82;this[_0xa02300(0x1f7)]='';}['setRawCommand'](_0x6dadb){const _0x1299df=a315_0xcfeb82;this[_0x1299df(0x204)]=_0x6dadb;}[a315_0xcfeb82(0x1ec)](){const _0xe5b12a=a315_0xcfeb82,_0xf549d5=a315_0x42a014['dirname'](this['logFilePath']);!a315_0x41ffe8[_0xe5b12a(0x1f0)](_0xf549d5)&&a315_0x41ffe8[_0xe5b12a(0x1eb)](_0xf549d5,{'recursive':!![]});const _0x4aab39=a315_0x43a6d3[_0xe5b12a(0x1dc)][_0xe5b12a(0x1e1)](a315_0x43a6d3[_0xe5b12a(0x1dc)][_0xe5b12a(0x202)](),a315_0x43a6d3[_0xe5b12a(0x1dc)][_0xe5b12a(0x1ff)]({'stack':!![]}),a315_0x43a6d3[_0xe5b12a(0x1dc)]['printf'](_0x22033c=>{const _0x15487a=_0xe5b12a,_0x200832={'timestamp':_0x22033c[_0x15487a(0x202)]||new Date()[_0x15487a(0x201)](),'level':_0x22033c[_0x15487a(0x1fb)]||_0x15487a(0x208),'command':_0x22033c[_0x15487a(0x207)]||_0x15487a(0x1e9),'rawCommand':_0x22033c[_0x15487a(0x1fe)]||this[_0x15487a(0x204)]||undefined,'message':_0x22033c[_0x15487a(0x206)]||'','duration':_0x22033c[_0x15487a(0x1dd)]||undefined,'details':_0x22033c[_0x15487a(0x212)]||undefined};return JSON[_0x15487a(0x20a)](_0x200832);}));this[_0xe5b12a(0x1fd)]=a315_0x43a6d3[_0xe5b12a(0x1f1)]({'level':_0xe5b12a(0x208),'format':_0x4aab39,'transports':[new a315_0x43a6d3[(_0xe5b12a(0x1e2))]['File']({'filename':this[_0xe5b12a(0x1f7)],'level':_0xe5b12a(0x208)})],'silent':![]}),a315_0x43a6d3[_0xe5b12a(0x1f2)]({'success':_0xe5b12a(0x209),'error':_0xe5b12a(0x1db),'warn':'yellow','info':'blue'});}[a315_0xcfeb82(0x1ee)](_0x40aeee){const _0x4d118a=a315_0xcfeb82;this[_0x4d118a(0x1f7)]=a315_0x42a014['join'](_0x40aeee,_0x4d118a(0x205)),this['winstonLogger']&&this[_0x4d118a(0x1fd)][_0x4d118a(0x1f6)](),this[_0x4d118a(0x1ec)]();}[a315_0xcfeb82(0x208)](_0x288022,_0x5555fa,_0x5c1acd){const _0x5bbde0=a315_0xcfeb82;if(!this[_0x5bbde0(0x1f7)]||!this[_0x5bbde0(0x1fd)])return;this[_0x5bbde0(0x1fd)]['info'](_0x5555fa,{'command':_0x288022,'details':_0x5c1acd});}[a315_0xcfeb82(0x20c)](_0x17487e,_0x45433c,_0x3eb15f,_0x3348d9){const _0xaaf314=a315_0xcfeb82;if(!this[_0xaaf314(0x1f7)]||!this['winstonLogger'])return;this['winstonLogger'][_0xaaf314(0x1e7)](_0xaaf314(0x208),_0x45433c,{'level':_0xaaf314(0x20c),'command':_0x17487e,'duration':_0x3eb15f,'details':_0x3348d9});}['error'](_0x1e8e95,_0x5594b6,_0x3cdee0){const _0x45d220=a315_0xcfeb82;if(!this[_0x45d220(0x1f7)]||!this[_0x45d220(0x1fd)])return;this[_0x45d220(0x1fd)]['error'](_0x5594b6,{'command':_0x1e8e95,'details':_0x3cdee0});}[a315_0xcfeb82(0x1f8)](_0x44230e,_0x502eda,_0x27b5ce){const _0x40fc39=a315_0xcfeb82;if(!this['logFilePath']||!this[_0x40fc39(0x1fd)])return;this['winstonLogger'][_0x40fc39(0x1f8)](_0x502eda,{'command':_0x44230e,'details':_0x27b5ce});}async['logTask'](_0x32908f,_0x58b44d,_0x548e2d){const _0x182bfc=a315_0xcfeb82,_0x3b7bb9=Date[_0x182bfc(0x1f4)]();this[_0x182bfc(0x208)](_0x32908f,'Starting:\x20'+_0x58b44d);try{const _0x3e8e9b=await _0x548e2d(),_0xd88107=Date[_0x182bfc(0x1f4)]()-_0x3b7bb9;return this[_0x182bfc(0x20c)](_0x32908f,_0x182bfc(0x1ed)+_0x58b44d,_0xd88107),_0x3e8e9b;}catch(_0x55d9f9){const _0x4a8164=Date['now']()-_0x3b7bb9;this[_0x182bfc(0x213)](_0x32908f,_0x182bfc(0x1f5)+_0x58b44d,{'error':_0x55d9f9 instanceof Error?_0x55d9f9[_0x182bfc(0x206)]:String(_0x55d9f9),'duration':_0x4a8164});throw _0x55d9f9;}}[a315_0xcfeb82(0x1ef)](){const _0x5e66fa=a315_0xcfeb82;try{if(!a315_0x41ffe8[_0x5e66fa(0x1f0)](this['logFilePath']))return[];const _0xa4c44e=a315_0x41ffe8[_0x5e66fa(0x20d)](this['logFilePath'],_0x5e66fa(0x211));return _0xa4c44e[_0x5e66fa(0x1e5)]('\x0a')[_0x5e66fa(0x200)](_0x31c072=>_0x31c072[_0x5e66fa(0x1df)]())[_0x5e66fa(0x1f3)](_0x4b3a45=>JSON[_0x5e66fa(0x20b)](_0x4b3a45));}catch(_0x10b3fa){return console[_0x5e66fa(0x1f8)](_0x5e66fa(0x1e8),_0x10b3fa),[];}}['clearLogs'](){const _0x5eb2e8=a315_0xcfeb82;try{a315_0x41ffe8[_0x5eb2e8(0x1f0)](this[_0x5eb2e8(0x1f7)])&&a315_0x41ffe8[_0x5eb2e8(0x1e0)](this[_0x5eb2e8(0x1f7)],'',_0x5eb2e8(0x211));}catch(_0x31dbac){console['warn'](_0x5eb2e8(0x20e),_0x31dbac);}}['getWinstonInstance'](){const _0x2d30f3=a315_0xcfeb82;return this[_0x2d30f3(0x1fd)];}}export const logger=new Logger();function a315_0x2581(){const _0x2c12a4=['16313NtwEYn','utf8','details','error','red','format','duration','15ahxMmr','trim','writeFileSync','combine','transports','19670mkHnEB','300sQRrIb','split','10VUJqRK','log','Failed\x20to\x20read\x20logs:','unknown','8828784AlDAGO','mkdirSync','initWinstonLogger','Completed:\x20','setLogPath','readLogs','existsSync','createLogger','addColors','map','now','Failed:\x20','clear','logFilePath','warn','8157024sRAeQA','35518TBSqiw','level','40075NavkmZ','winstonLogger','rawCommand','errors','filter','toISOString','timestamp','8749270NbdEog','currentRawCommand','.lovrabet.log','message','command','info','green','stringify','parse','success','readFileSync','Failed\x20to\x20clear\x20logs:','1344380nxuLmy'];a315_0x2581=function(){return _0x2c12a4;};return a315_0x2581();}
1
+ function a317_0x3295(){const _0x55c265=['now','winstonLogger','Failed:\x20','98487RfSDVc','writeFileSync','222134KCooxi','6535ELgzDq','split','details','88ZKCCpa','Starting:\x20','addColors','parse','unknown','transports','combine','1561BUNQcb','File','blue','message','Failed\x20to\x20read\x20logs:','format','command','94563tNWZcZ','red','mkdirSync','setRawCommand','log','readLogs','utf8','initWinstonLogger','stringify','level','dirname','warn','green','rawCommand','setLogPath','duration','currentRawCommand','timestamp','toISOString','trim','logFilePath','readFileSync','success','createLogger','existsSync','error','logTask','252IpBIeD','getWinstonInstance','167461ajleac','3432BIMZrv','Completed:\x20','filter','16TxTiFQ','map','603220pXAIor','info'];a317_0x3295=function(){return _0x55c265;};return a317_0x3295();}const a317_0x15964d=a317_0x63ba;(function(_0x8798e3,_0xaab657){const _0x2a4b6b=a317_0x63ba,_0x2d007d=_0x8798e3();while(!![]){try{const _0x4935d0=-parseInt(_0x2a4b6b(0x1bb))/0x1+-parseInt(_0x2a4b6b(0x1c8))/0x2+-parseInt(_0x2a4b6b(0x1da))/0x3+-parseInt(_0x2a4b6b(0x1b9))/0x4*(-parseInt(_0x2a4b6b(0x1c9))/0x5)+parseInt(_0x2a4b6b(0x1bc))/0x6*(-parseInt(_0x2a4b6b(0x1d3))/0x7)+parseInt(_0x2a4b6b(0x1bf))/0x8*(-parseInt(_0x2a4b6b(0x1c6))/0x9)+parseInt(_0x2a4b6b(0x1c1))/0xa*(parseInt(_0x2a4b6b(0x1cc))/0xb);if(_0x4935d0===_0xaab657)break;else _0x2d007d['push'](_0x2d007d['shift']());}catch(_0x227aa0){_0x2d007d['push'](_0x2d007d['shift']());}}}(a317_0x3295,0x19bd2));import a317_0x3d4c6e from'winston';import a317_0x53b359 from'node:fs';function a317_0x63ba(_0x382dcc,_0x49af0f){_0x382dcc=_0x382dcc-0x1a2;const _0x329570=a317_0x3295();let _0x63ba20=_0x329570[_0x382dcc];return _0x63ba20;}import a317_0x109430 from'node:path';class Logger{['winstonLogger'];[a317_0x15964d(0x1b2)];['currentRawCommand']='';constructor(){const _0x3a7141=a317_0x15964d;this[_0x3a7141(0x1b2)]='';}[a317_0x15964d(0x1dd)](_0x5046cf){const _0x3778c4=a317_0x15964d;this[_0x3778c4(0x1ae)]=_0x5046cf;}[a317_0x15964d(0x1a5)](){const _0x17bb29=a317_0x15964d,_0x4f293e=a317_0x109430[_0x17bb29(0x1a8)](this['logFilePath']);!a317_0x53b359[_0x17bb29(0x1b6)](_0x4f293e)&&a317_0x53b359[_0x17bb29(0x1dc)](_0x4f293e,{'recursive':!![]});const _0x4dceb7=a317_0x3d4c6e[_0x17bb29(0x1d8)][_0x17bb29(0x1d2)](a317_0x3d4c6e[_0x17bb29(0x1d8)][_0x17bb29(0x1af)](),a317_0x3d4c6e['format']['errors']({'stack':!![]}),a317_0x3d4c6e['format']['printf'](_0x1f2512=>{const _0x2c9a5f=_0x17bb29,_0x26a7e6={'timestamp':_0x1f2512[_0x2c9a5f(0x1af)]||new Date()[_0x2c9a5f(0x1b0)](),'level':_0x1f2512[_0x2c9a5f(0x1a7)]||_0x2c9a5f(0x1c2),'command':_0x1f2512[_0x2c9a5f(0x1d9)]||_0x2c9a5f(0x1d0),'rawCommand':_0x1f2512[_0x2c9a5f(0x1ab)]||this[_0x2c9a5f(0x1ae)]||undefined,'message':_0x1f2512[_0x2c9a5f(0x1d6)]||'','duration':_0x1f2512[_0x2c9a5f(0x1ad)]||undefined,'details':_0x1f2512[_0x2c9a5f(0x1cb)]||undefined};return JSON[_0x2c9a5f(0x1a6)](_0x26a7e6);}));this[_0x17bb29(0x1c4)]=a317_0x3d4c6e[_0x17bb29(0x1b5)]({'level':'info','format':_0x4dceb7,'transports':[new a317_0x3d4c6e[(_0x17bb29(0x1d1))][(_0x17bb29(0x1d4))]({'filename':this[_0x17bb29(0x1b2)],'level':_0x17bb29(0x1c2)})],'silent':![]}),a317_0x3d4c6e[_0x17bb29(0x1ce)]({'success':_0x17bb29(0x1aa),'error':_0x17bb29(0x1db),'warn':'yellow','info':_0x17bb29(0x1d5)});}[a317_0x15964d(0x1ac)](_0x2e3416){const _0x530fd4=a317_0x15964d;this['logFilePath']=a317_0x109430['join'](_0x2e3416,'.lovrabet.log'),this[_0x530fd4(0x1c4)]&&this[_0x530fd4(0x1c4)]['clear'](),this[_0x530fd4(0x1a5)]();}[a317_0x15964d(0x1c2)](_0x2ff29d,_0x5ea352,_0x20905a){const _0x41d93e=a317_0x15964d;if(!this['logFilePath']||!this[_0x41d93e(0x1c4)])return;this['winstonLogger'][_0x41d93e(0x1c2)](_0x5ea352,{'command':_0x2ff29d,'details':_0x20905a});}[a317_0x15964d(0x1b4)](_0xe6d8f,_0x125d12,_0x293deb,_0x5edead){const _0x333e7d=a317_0x15964d;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x333e7d(0x1c4)][_0x333e7d(0x1a2)](_0x333e7d(0x1c2),_0x125d12,{'level':_0x333e7d(0x1b4),'command':_0xe6d8f,'duration':_0x293deb,'details':_0x5edead});}['error'](_0x470d9e,_0x9986ba,_0x2ec411){const _0x144615=a317_0x15964d;if(!this[_0x144615(0x1b2)]||!this[_0x144615(0x1c4)])return;this[_0x144615(0x1c4)][_0x144615(0x1b7)](_0x9986ba,{'command':_0x470d9e,'details':_0x2ec411});}[a317_0x15964d(0x1a9)](_0xe103f1,_0x409be9,_0x2e6a36){const _0x3fd35f=a317_0x15964d;if(!this['logFilePath']||!this[_0x3fd35f(0x1c4)])return;this[_0x3fd35f(0x1c4)][_0x3fd35f(0x1a9)](_0x409be9,{'command':_0xe103f1,'details':_0x2e6a36});}async[a317_0x15964d(0x1b8)](_0x950a35,_0x5985df,_0x39c4c4){const _0x4302af=a317_0x15964d,_0x38df80=Date[_0x4302af(0x1c3)]();this[_0x4302af(0x1c2)](_0x950a35,_0x4302af(0x1cd)+_0x5985df);try{const _0x3b665a=await _0x39c4c4(),_0x1565d9=Date['now']()-_0x38df80;return this[_0x4302af(0x1b4)](_0x950a35,_0x4302af(0x1bd)+_0x5985df,_0x1565d9),_0x3b665a;}catch(_0x2f2d3d){const _0x4437ec=Date[_0x4302af(0x1c3)]()-_0x38df80;this['error'](_0x950a35,_0x4302af(0x1c5)+_0x5985df,{'error':_0x2f2d3d instanceof Error?_0x2f2d3d[_0x4302af(0x1d6)]:String(_0x2f2d3d),'duration':_0x4437ec});throw _0x2f2d3d;}}[a317_0x15964d(0x1a3)](){const _0x27597b=a317_0x15964d;try{if(!a317_0x53b359[_0x27597b(0x1b6)](this[_0x27597b(0x1b2)]))return[];const _0x1af163=a317_0x53b359[_0x27597b(0x1b3)](this[_0x27597b(0x1b2)],_0x27597b(0x1a4));return _0x1af163[_0x27597b(0x1ca)]('\x0a')[_0x27597b(0x1be)](_0x3ccda5=>_0x3ccda5[_0x27597b(0x1b1)]())[_0x27597b(0x1c0)](_0x192e60=>JSON[_0x27597b(0x1cf)](_0x192e60));}catch(_0x3d1070){return console['warn'](_0x27597b(0x1d7),_0x3d1070),[];}}['clearLogs'](){const _0x476727=a317_0x15964d;try{a317_0x53b359['existsSync'](this[_0x476727(0x1b2)])&&a317_0x53b359[_0x476727(0x1c7)](this[_0x476727(0x1b2)],'',_0x476727(0x1a4));}catch(_0x263376){console[_0x476727(0x1a9)]('Failed\x20to\x20clear\x20logs:',_0x263376);}}[a317_0x15964d(0x1ba)](){const _0x2433c4=a317_0x15964d;return this[_0x2433c4(0x1c4)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- function a316_0x106a(_0x571aaa,_0x2cc838){_0x571aaa=_0x571aaa-0x15a;const _0x2d4bbf=a316_0x2d4b();let _0x106a8d=_0x2d4bbf[_0x571aaa];return _0x106a8d;}(function(_0x295a86,_0x2915e4){const _0x131a79=a316_0x106a,_0x15c8cb=_0x295a86();while(!![]){try{const _0x2d7ec6=parseInt(_0x131a79(0x163))/0x1*(parseInt(_0x131a79(0x15e))/0x2)+-parseInt(_0x131a79(0x165))/0x3*(parseInt(_0x131a79(0x166))/0x4)+parseInt(_0x131a79(0x15d))/0x5+-parseInt(_0x131a79(0x15c))/0x6+-parseInt(_0x131a79(0x167))/0x7+-parseInt(_0x131a79(0x160))/0x8+parseInt(_0x131a79(0x15f))/0x9*(parseInt(_0x131a79(0x15b))/0xa);if(_0x2d7ec6===_0x2915e4)break;else _0x15c8cb['push'](_0x15c8cb['shift']());}catch(_0x295b46){_0x15c8cb['push'](_0x15c8cb['shift']());}}}(a316_0x2d4b,0xb11b5));import{CliErrors}from'../errors.js';export function parseJsonParams(_0x2dd3b2){const _0x4960bd=a316_0x106a;if(!_0x2dd3b2)return undefined;let _0x1f0d85;try{_0x1f0d85=JSON['parse'](_0x2dd3b2);}catch{throw CliErrors[_0x4960bd(0x15a)](_0x4960bd(0x161)+_0x2dd3b2);}if(!_0x1f0d85||typeof _0x1f0d85!==_0x4960bd(0x162)||Array['isArray'](_0x1f0d85))throw CliErrors[_0x4960bd(0x15a)](_0x4960bd(0x168),_0x4960bd(0x164));return _0x1f0d85;}function a316_0x2d4b(){const _0xf23245=['11546152bvUOOT','Invalid\x20JSON\x20for\x20--params:\x20','object','1TQYbrP','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','33twGjgR','296124ROjTmN','2937200cSxoCl','--params\x20must\x20be\x20a\x20JSON\x20object','validation','1730niQsUS','43806JQyurL','4403375zoGSdS','2647948osfcJj','62703nVDrjT'];a316_0x2d4b=function(){return _0xf23245;};return a316_0x2d4b();}
1
+ (function(_0x3a91c4,_0x33f68f){const _0x1bcc98=a318_0x53b2,_0x3c5cdb=_0x3a91c4();while(!![]){try{const _0x432f11=parseInt(_0x1bcc98(0x11e))/0x1*(-parseInt(_0x1bcc98(0x11a))/0x2)+parseInt(_0x1bcc98(0x122))/0x3*(parseInt(_0x1bcc98(0x11c))/0x4)+-parseInt(_0x1bcc98(0x11f))/0x5*(-parseInt(_0x1bcc98(0x121))/0x6)+-parseInt(_0x1bcc98(0x117))/0x7+parseInt(_0x1bcc98(0x118))/0x8*(-parseInt(_0x1bcc98(0x124))/0x9)+-parseInt(_0x1bcc98(0x11b))/0xa+parseInt(_0x1bcc98(0x120))/0xb;if(_0x432f11===_0x33f68f)break;else _0x3c5cdb['push'](_0x3c5cdb['shift']());}catch(_0x365b63){_0x3c5cdb['push'](_0x3c5cdb['shift']());}}}(a318_0x1ada,0x628b5));import{CliErrors}from'../errors.js';function a318_0x53b2(_0x8ab3df,_0x415a6c){_0x8ab3df=_0x8ab3df-0x116;const _0x1ada74=a318_0x1ada();let _0x53b203=_0x1ada74[_0x8ab3df];return _0x53b203;}export function parseJsonParams(_0x4f4389){const _0x29ad14=a318_0x53b2;if(!_0x4f4389)return undefined;let _0x280d7b;try{_0x280d7b=JSON[_0x29ad14(0x11d)](_0x4f4389);}catch{throw CliErrors[_0x29ad14(0x119)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x4f4389);}if(!_0x280d7b||typeof _0x280d7b!==_0x29ad14(0x116)||Array[_0x29ad14(0x123)](_0x280d7b))throw CliErrors[_0x29ad14(0x119)]('--params\x20must\x20be\x20a\x20JSON\x20object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x280d7b;}function a318_0x1ada(){const _0x2e623b=['3908338QUmeuK','1118840TukKhy','validation','1040126tKVtlo','7604850EKkTLp','84ONKLlK','parse','1nJrHxw','5345KZAVAO','28729404bOWubQ','522RWELWG','33861ZEWHyS','isArray','45wCYiuP','object'];a318_0x1ada=function(){return _0x2e623b;};return a318_0x1ada();}
@@ -1 +1 @@
1
- function a317_0x4a29(){const _0x4896d0=['platform','20XTHApQ','5kNtAZp','696441zzHXVo','127860iHpfXF','66SLWQMW','7417509luTnQg','3764646BpzvGl','2170875vqVEbX','3161637mUcKve','.cmd','win32','8BrleqO','491666yaLQKr'];a317_0x4a29=function(){return _0x4896d0;};return a317_0x4a29();}const a317_0xe6256a=a317_0x2d34;(function(_0x23ca9d,_0x4c7c6d){const _0x294ed8=a317_0x2d34,_0x3cb5c6=_0x23ca9d();while(!![]){try{const _0x5382d3=parseInt(_0x294ed8(0x115))/0x1+-parseInt(_0x294ed8(0x111))/0x2+-parseInt(_0x294ed8(0x117))/0x3*(parseInt(_0x294ed8(0x116))/0x4)+parseInt(_0x294ed8(0x114))/0x5*(-parseInt(_0x294ed8(0x119))/0x6)+parseInt(_0x294ed8(0x11a))/0x7+parseInt(_0x294ed8(0x110))/0x8*(-parseInt(_0x294ed8(0x10d))/0x9)+parseInt(_0x294ed8(0x113))/0xa*(parseInt(_0x294ed8(0x118))/0xb);if(_0x5382d3===_0x4c7c6d)break;else _0x3cb5c6['push'](_0x3cb5c6['shift']());}catch(_0x571d7c){_0x3cb5c6['push'](_0x3cb5c6['shift']());}}}(a317_0x4a29,0x6858f));function a317_0x2d34(_0x1d29f1,_0x56bec8){_0x1d29f1=_0x1d29f1-0x10d;const _0x4a29f5=a317_0x4a29();let _0x2d3469=_0x4a29f5[_0x1d29f1];return _0x2d3469;}export const isWindows=process[a317_0xe6256a(0x112)]===a317_0xe6256a(0x10f);export function resolveNpmBin(_0x3717fc){const _0x38094c=a317_0xe6256a;return isWindows?_0x3717fc+_0x38094c(0x10e):_0x3717fc;}
1
+ const a319_0x1fd271=a319_0x4130;function a319_0x46a1(){const _0x1d48f3=['98698nPeLHC','win32','8godbHQ','341NxIlzY','10089QBwfXb','.cmd','100640ljuiyW','350128YsSbTS','209736zOKcXR','1856813gphDRm','10FLZVnl','606762Kkhtki','3iCjYkr'];a319_0x46a1=function(){return _0x1d48f3;};return a319_0x46a1();}(function(_0x4b013e,_0x23bd12){const _0x160322=a319_0x4130,_0x5e2986=_0x4b013e();while(!![]){try{const _0x57f8c9=parseInt(_0x160322(0x118))/0x1+parseInt(_0x160322(0x110))/0x2*(parseInt(_0x160322(0x10f))/0x3)+-parseInt(_0x160322(0x117))/0x4*(parseInt(_0x160322(0x11a))/0x5)+parseInt(_0x160322(0x11b))/0x6+parseInt(_0x160322(0x119))/0x7+parseInt(_0x160322(0x112))/0x8*(-parseInt(_0x160322(0x114))/0x9)+-parseInt(_0x160322(0x116))/0xa*(parseInt(_0x160322(0x113))/0xb);if(_0x57f8c9===_0x23bd12)break;else _0x5e2986['push'](_0x5e2986['shift']());}catch(_0x119bac){_0x5e2986['push'](_0x5e2986['shift']());}}}(a319_0x46a1,0x21856));export const isWindows=process['platform']===a319_0x1fd271(0x111);function a319_0x4130(_0x595815,_0x5da5e6){_0x595815=_0x595815-0x10f;const _0x46a131=a319_0x46a1();let _0x41308e=_0x46a131[_0x595815];return _0x41308e;}export function resolveNpmBin(_0x2cf22f){const _0xde51eb=a319_0x1fd271;return isWindows?_0x2cf22f+_0xde51eb(0x115):_0x2cf22f;}
@@ -1 +1 @@
1
- export function sleep(_0x3e4ed5){return new Promise(_0x23638e=>setTimeout(_0x23638e,_0x3e4ed5));}
1
+ export function sleep(_0x466f6f){return new Promise(_0x6f3d6e=>setTimeout(_0x6f3d6e,_0x466f6f));}
@@ -37,9 +37,10 @@ export declare class TemplateReplacer {
37
37
  * - {ApiFileName}: API 配置文件名(不含扩展名)
38
38
  * - {ConfigName}: 注册配置名称
39
39
  * - {ClientConfigParam}: createClient 的参数
40
+ * - {SdkConfigFileName}: SDK 路由配置文件名(不含扩展名)
40
41
  * - {CreatedAt}: ISO 时间戳格式
41
42
  */
42
- static replaceApiContent(content: string, appCode: string, modelConfigs: RegisterModelConfig[], exampleModelName?: string, apiFileName?: string, configName?: string, clientConfigParam?: string, varPrefix?: string): string;
43
+ static replaceApiContent(content: string, appCode: string, modelConfigs: RegisterModelConfig[], exampleModelName?: string, apiFileName?: string, configName?: string, clientConfigParam?: string, varPrefix?: string, sdkConfigFileName?: string): string;
43
44
  /**
44
45
  * 处理整个模板目录,复制并替换内容
45
46
  */
@@ -1 +1 @@
1
- const a319_0x1af683=a319_0x4942;(function(_0x11990b,_0x119d67){const _0x5caa7c=a319_0x4942,_0x212899=_0x11990b();while(!![]){try{const _0x3d3c37=-parseInt(_0x5caa7c(0x1d2))/0x1+parseInt(_0x5caa7c(0x1e2))/0x2+parseInt(_0x5caa7c(0x1d0))/0x3*(-parseInt(_0x5caa7c(0x1f1))/0x4)+-parseInt(_0x5caa7c(0x1ef))/0x5*(parseInt(_0x5caa7c(0x1dd))/0x6)+parseInt(_0x5caa7c(0x1e4))/0x7*(-parseInt(_0x5caa7c(0x1cf))/0x8)+parseInt(_0x5caa7c(0x1e3))/0x9*(parseInt(_0x5caa7c(0x1e9))/0xa)+parseInt(_0x5caa7c(0x1cd))/0xb*(parseInt(_0x5caa7c(0x1ff))/0xc);if(_0x3d3c37===_0x119d67)break;else _0x212899['push'](_0x212899['shift']());}catch(_0x103564){_0x212899['push'](_0x212899['shift']());}}}(a319_0x2ba7,0x28ad2));import a319_0xa8f962 from'node:fs';import a319_0x22e31c from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a319_0x4942(_0x5298d3,_0x5d824c){_0x5298d3=_0x5298d3-0x1b8;const _0x2ba7d2=a319_0x2ba7();let _0x49422e=_0x2ba7d2[_0x5298d3];return _0x49422e;}export class TemplateReplacer{static[a319_0x1af683(0x1d1)](_0xb9be77){const _0x575a53=a319_0x1af683;return String(_0xb9be77)[_0x575a53(0x1da)](0x2,'0');}static[a319_0x1af683(0x1d8)](_0x2721ec){const _0x4e9817=a319_0x1af683,_0x3ecd06=_0x2721ec[_0x4e9817(0x1e1)](),_0x1ba46a=this[_0x4e9817(0x1d1)](_0x2721ec[_0x4e9817(0x1bc)]()+0x1),_0x13804f=this['pad'](_0x2721ec[_0x4e9817(0x1f6)]()),_0x2425cd=this[_0x4e9817(0x1d1)](_0x2721ec[_0x4e9817(0x1df)]()),_0x401167=this[_0x4e9817(0x1d1)](_0x2721ec['getMinutes']()),_0x4e4512=this[_0x4e9817(0x1d1)](_0x2721ec[_0x4e9817(0x1fa)]());return{'createdAt':_0x3ecd06+'-'+_0x1ba46a+'-'+_0x13804f+'\x20'+_0x2425cd+':'+_0x401167+':'+_0x4e4512,'createdDate':_0x3ecd06+'-'+_0x1ba46a+'-'+_0x13804f,'createdTime':_0x2425cd+':'+_0x401167+':'+_0x4e4512};}static[a319_0x1af683(0x1d5)](_0x33c3b9){const _0x27c1a6=a319_0x1af683,_0x2d6290=_0x33c3b9[_0x27c1a6(0x1c5)]('/')[_0x27c1a6(0x1e6)]()||_0x33c3b9;return _0x2d6290[_0x27c1a6(0x1c5)]('-')[_0x27c1a6(0x1c9)](_0x527e67=>_0x527e67['charAt'](0x0)[_0x27c1a6(0x1c4)]()+_0x527e67['slice'](0x1)[_0x27c1a6(0x1d6)]())[_0x27c1a6(0x1c1)]('');}static[a319_0x1af683(0x1c6)](_0x507a54){const _0x30b2e8=a319_0x1af683,_0xa7521f=_0x507a54[_0x30b2e8(0x1c5)]('/')[_0x30b2e8(0x1e6)]()||_0x507a54;return _0xa7521f['split']('-')[_0x30b2e8(0x1c9)](_0x231c5c=>_0x231c5c[_0x30b2e8(0x1c3)](0x0)['toUpperCase']()+_0x231c5c[_0x30b2e8(0x1c2)](0x1)[_0x30b2e8(0x1d6)]())[_0x30b2e8(0x1c1)]('\x20');}static[a319_0x1af683(0x1e8)](_0x5f5b43,_0x36e154,_0x437fd8){const _0x45aeba=a319_0x1af683,_0x4ccb21=this[_0x45aeba(0x1d5)](_0x36e154),_0xc350af=this[_0x45aeba(0x1c6)](_0x36e154),{createdAt:_0x486e1c,createdDate:_0x264693,createdTime:_0x5dc067}=this[_0x45aeba(0x1d8)](new Date());let _0x4d35e3=_0x5f5b43[_0x45aeba(0x1ee)](/\{CliVersion\}/g,CLI_VERSION)[_0x45aeba(0x1ee)](/\{ComponentName\}/g,_0x4ccb21)[_0x45aeba(0x1ee)](/\{DisplayTitle\}/g,_0xc350af)[_0x45aeba(0x1ee)](/\{PageName\}/g,_0x36e154)['replace'](/\{TemplateName\}/g,_0x437fd8)[_0x45aeba(0x1ee)](/\{CreatedAt\}/g,_0x486e1c)[_0x45aeba(0x1ee)](/\{CreatedDate\}/g,_0x264693)['replace'](/\{CreatedTime\}/g,_0x5dc067);return _0x4d35e3;}static['replaceApiContent'](_0x2f24c2,_0x179487,_0x1eecb3,_0x347597,_0x1429f6,_0x2600f2,_0x427136,_0x546dd9){const _0x2ca15a=a319_0x1af683,_0xdc4240=new Date(),_0x333189=_0xdc4240[_0x2ca15a(0x1f4)](),_0x5b937d=_0x1eecb3[_0x2ca15a(0x1c9)](_0x26a66f=>{const _0x5cf585=_0x2ca15a,_0x530896=[_0x5cf585(0x1ec)+_0x26a66f['datasetCode']+'\x22',_0x5cf585(0x1d7)+_0x26a66f[_0x5cf585(0x1f9)]+'\x22',_0x5cf585(0x1d3)+_0x26a66f[_0x5cf585(0x1f0)]+'\x22'];return _0x26a66f[_0x5cf585(0x1de)]&&_0x530896[_0x5cf585(0x1bb)](_0x5cf585(0x1fe)+_0x26a66f[_0x5cf585(0x1de)]+'\x22'),_0x5cf585(0x1ce)+_0x530896[_0x5cf585(0x1c1)](',\x20')+_0x5cf585(0x1bf);})[_0x2ca15a(0x1c1)](''),_0x282156=_0x347597||_0x1eecb3[0x0]?.[_0x2ca15a(0x1de)]||_0x2ca15a(0x1b8);let _0x3a8e5a=_0x2f24c2[_0x2ca15a(0x1ee)](/\{AppCode\}/g,_0x179487)[_0x2ca15a(0x1ee)](/\{ModelConfigs\}/g,_0x5b937d)['replace'](/\{ExampleModelName\}/g,_0x282156)[_0x2ca15a(0x1ee)](/\{ApiFileName\}/g,_0x1429f6||'api')[_0x2ca15a(0x1ee)](/\{ConfigName\}/g,_0x2600f2||_0x2ca15a(0x1dc))[_0x2ca15a(0x1ee)](/\{ClientConfigParam\}/g,_0x427136||'')['replace'](/\{VarPrefix\}/g,_0x546dd9||_0x2ca15a(0x1c0))[_0x2ca15a(0x1ee)](/\{CreatedAt\}/g,_0x333189);return _0x3a8e5a;}static async[a319_0x1af683(0x1f7)](_0x181005,_0x1de14d,_0x228d10,_0x14fd02,_0xb1223b=!![]){const _0x21e153=a319_0x1af683,_0x54454b=Date['now']();try{_0xb1223b&&logger[_0x21e153(0x1fc)](_0x21e153(0x1e0),_0x21e153(0x1c7),{'templatePath':_0x181005,'targetPath':_0x1de14d,'pageName':_0x228d10,'templateName':_0x14fd02});await a319_0xa8f962[_0x21e153(0x1e5)][_0x21e153(0x1ed)](_0x1de14d,{'recursive':!![]}),await this[_0x21e153(0x1fd)](_0x181005,_0x1de14d,_0x228d10,_0x14fd02);if(_0xb1223b){const _0x3cc958=Date['now']()-_0x54454b;logger['success']('template',_0x21e153(0x1f8),_0x3cc958,{'pageName':_0x228d10,'templateName':_0x14fd02});}}catch(_0x283529){if(_0xb1223b){const _0x4af710=Date[_0x21e153(0x1e7)]()-_0x54454b;logger[_0x21e153(0x1f2)](_0x21e153(0x1e0),'Template\x20content\x20replacement\x20failed',{'templatePath':_0x181005,'targetPath':_0x1de14d,'pageName':_0x228d10,'templateName':_0x14fd02,'error':_0x283529 instanceof Error?_0x283529[_0x21e153(0x1be)]:String(_0x283529),'duration':_0x4af710});}throw _0x283529;}}static async[a319_0x1af683(0x1fd)](_0xd0f618,_0x5bdd90,_0x28d100,_0x56bb4a){const _0x2f7c57=a319_0x1af683,_0x3df17f=await a319_0xa8f962['promises']['readdir'](_0xd0f618,{'withFileTypes':!![]});for(const _0x44b0b1 of _0x3df17f){const _0x439af2=a319_0x22e31c[_0x2f7c57(0x1c1)](_0xd0f618,_0x44b0b1['name']);let _0x35b71b=a319_0x22e31c[_0x2f7c57(0x1c1)](_0x5bdd90,_0x44b0b1[_0x2f7c57(0x1f0)]);_0x44b0b1['name'][_0x2f7c57(0x1f5)](_0x2f7c57(0x1db))&&(_0x35b71b=a319_0x22e31c[_0x2f7c57(0x1c1)](_0x5bdd90,_0x44b0b1[_0x2f7c57(0x1f0)][_0x2f7c57(0x1ee)](/\.tpl$/,'')));if(_0x44b0b1[_0x2f7c57(0x1eb)]())await a319_0xa8f962[_0x2f7c57(0x1e5)]['mkdir'](_0x35b71b,{'recursive':!![]}),await this[_0x2f7c57(0x1fd)](_0x439af2,_0x35b71b,_0x28d100,_0x56bb4a);else _0x44b0b1[_0x2f7c57(0x1cb)]()&&await this[_0x2f7c57(0x1bd)](_0x439af2,_0x35b71b,_0x28d100,_0x56bb4a);}}static async[a319_0x1af683(0x1bd)](_0x1bf23d,_0x460ce7,_0x52da1a,_0x510d63){const _0x306258=a319_0x1af683,_0x22060a=a319_0x22e31c[_0x306258(0x1ba)](_0x1bf23d)[_0x306258(0x1d6)]();_0x1bf23d['endsWith'](_0x306258(0x1db))&&(_0x460ce7=_0x460ce7[_0x306258(0x1ee)](/\.tpl$/,''));const _0x2a6ea6=[_0x306258(0x1c8),_0x306258(0x1ea),'.jsx','.js',_0x306258(0x1cc),_0x306258(0x1d4),'.css',_0x306258(0x1d9),_0x306258(0x1db)];if(_0x2a6ea6[_0x306258(0x1ca)](_0x22060a)||_0x1bf23d['endsWith'](_0x306258(0x1db))){const _0x1ec47e=await a319_0xa8f962[_0x306258(0x1e5)][_0x306258(0x1f3)](_0x1bf23d,_0x306258(0x1b9)),_0x27a0d4=this[_0x306258(0x1e8)](_0x1ec47e,_0x52da1a,_0x510d63);await a319_0xa8f962[_0x306258(0x1e5)][_0x306258(0x1fb)](_0x460ce7,_0x27a0d4,_0x306258(0x1b9));}else await a319_0xa8f962['promises']['copyFile'](_0x1bf23d,_0x460ce7);}}function a319_0x2ba7(){const _0x2bc7e6=['message','\x20},','LOVRABET','join','slice','charAt','toUpperCase','split','toDisplayTitle','Starting\x20template\x20content\x20replacement','.tsx','map','includes','isFile','.json','3843697tZslFb','\x0a\x20\x20\x20\x20{\x20','696152GtgLzq','144807hwxCrP','pad','57000TekDNK','name:\x20\x22','.md','toComponentName','toLowerCase','tableName:\x20\x22','formatLocalTimestamp','.scss','padStart','.tpl','default','6lUqzxM','alias','getHours','template','getFullYear','343844gCyBAL','6345zfeLpo','21bieBVU','promises','pop','now','replaceContent','970VfgkoL','.ts','isDirectory','datasetCode:\x20\x22','mkdir','replace','1065745ZMEOSp','name','20hMzrqe','error','readFile','toISOString','endsWith','getDate','processTemplate','Template\x20content\x20replacement\x20completed','tableName','getSeconds','writeFile','info','processDirectory','alias:\x20\x22','24nqxhEq','YourModel','utf8','extname','push','getMonth','processFile'];a319_0x2ba7=function(){return _0x2bc7e6;};return a319_0x2ba7();}
1
+ const a321_0x548473=a321_0x5b5a;function a321_0x2ce1(){const _0x2d909a=['524312YwnVcq','success','Template\x20content\x20replacement\x20failed','includes','charAt','sdk-config','.jsx','replaceApiContent','template','promises','45673332VtIIPK','toUpperCase','5190AkoTnc','28eVmXnl','1Prohjx','processDirectory','getSeconds','.md','padStart','alias','split','4399236FPWSfp','tableName:\x20\x22','toLowerCase','name','getHours','.tsx','alias:\x20\x22','2413564xqGPWW','processFile','push','readFile','toDisplayTitle','.json','.scss','api','message','\x0a\x20\x20\x20\x20{\x20','LOVRABET','\x20},','81ohoZBX','313330WlZZBt','toISOString','.tpl','10cYFQdH','join','pad','map','readdir','mkdir','extname','36tbYdvL','.ts','info','copyFile','processTemplate','3818936XAPgxd','now','endsWith','utf8','datasetCode','formatLocalTimestamp','default','isDirectory','replace','getMonth','pop','writeFile','Template\x20content\x20replacement\x20completed','toComponentName','YourModel','name:\x20\x22','replaceContent'];a321_0x2ce1=function(){return _0x2d909a;};return a321_0x2ce1();}(function(_0x50577c,_0x37363f){const _0x2b87fa=a321_0x5b5a,_0xffde26=_0x50577c();while(!![]){try{const _0x20bfcc=parseInt(_0x2b87fa(0xdf))/0x1*(-parseInt(_0x2b87fa(0xed))/0x2)+-parseInt(_0x2b87fa(0xe6))/0x3+-parseInt(_0x2b87fa(0x104))/0x4*(-parseInt(_0x2b87fa(0xfa))/0x5)+-parseInt(_0x2b87fa(0xdd))/0x6*(parseInt(_0x2b87fa(0xde))/0x7)+-parseInt(_0x2b87fa(0x11a))/0x8*(parseInt(_0x2b87fa(0xf9))/0x9)+-parseInt(_0x2b87fa(0xfd))/0xa*(parseInt(_0x2b87fa(0x109))/0xb)+parseInt(_0x2b87fa(0xdb))/0xc;if(_0x20bfcc===_0x37363f)break;else _0xffde26['push'](_0xffde26['shift']());}catch(_0x3271a3){_0xffde26['push'](_0xffde26['shift']());}}}(a321_0x2ce1,0xb8ac8));import a321_0x299cc8 from'node:fs';import a321_0x2a8358 from'node:path';function a321_0x5b5a(_0x2178ba,_0xc3cc6c){_0x2178ba=_0x2178ba-0xd7;const _0x2ce10f=a321_0x2ce1();let _0x5b5a54=_0x2ce10f[_0x2178ba];return _0x5b5a54;}import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a321_0x548473(0xff)](_0x3ba0b6){const _0xa03c51=a321_0x548473;return String(_0x3ba0b6)[_0xa03c51(0xe3)](0x2,'0');}static[a321_0x548473(0x10e)](_0x53dc12){const _0x2b0905=a321_0x548473,_0x9222a6=_0x53dc12['getFullYear'](),_0x503006=this[_0x2b0905(0xff)](_0x53dc12[_0x2b0905(0x112)]()+0x1),_0x5508b0=this[_0x2b0905(0xff)](_0x53dc12['getDate']()),_0x1b4e8f=this[_0x2b0905(0xff)](_0x53dc12[_0x2b0905(0xea)]()),_0x1d8144=this[_0x2b0905(0xff)](_0x53dc12['getMinutes']()),_0x3f04f4=this[_0x2b0905(0xff)](_0x53dc12[_0x2b0905(0xe1)]());return{'createdAt':_0x9222a6+'-'+_0x503006+'-'+_0x5508b0+'\x20'+_0x1b4e8f+':'+_0x1d8144+':'+_0x3f04f4,'createdDate':_0x9222a6+'-'+_0x503006+'-'+_0x5508b0,'createdTime':_0x1b4e8f+':'+_0x1d8144+':'+_0x3f04f4};}static[a321_0x548473(0x116)](_0x2fb007){const _0x26b71f=a321_0x548473,_0x2ff45f=_0x2fb007[_0x26b71f(0xe5)]('/')[_0x26b71f(0x113)]()||_0x2fb007;return _0x2ff45f['split']('-')['map'](_0x2ea5be=>_0x2ea5be[_0x26b71f(0x11e)](0x0)[_0x26b71f(0xdc)]()+_0x2ea5be['slice'](0x1)['toLowerCase']())['join']('');}static['toDisplayTitle'](_0x1012b7){const _0x44753d=a321_0x548473,_0xae36d4=_0x1012b7[_0x44753d(0xe5)]('/')[_0x44753d(0x113)]()||_0x1012b7;return _0xae36d4[_0x44753d(0xe5)]('-')['map'](_0x5de6d9=>_0x5de6d9[_0x44753d(0x11e)](0x0)[_0x44753d(0xdc)]()+_0x5de6d9['slice'](0x1)[_0x44753d(0xe8)]())[_0x44753d(0xfe)]('\x20');}static[a321_0x548473(0x119)](_0x54c44b,_0x70499c,_0x392738){const _0x1b3b42=a321_0x548473,_0x25a38e=this[_0x1b3b42(0x116)](_0x70499c),_0x525bd7=this[_0x1b3b42(0xf1)](_0x70499c),{createdAt:_0x4bc7c9,createdDate:_0x95e483,createdTime:_0x389481}=this[_0x1b3b42(0x10e)](new Date());let _0x83ef96=_0x54c44b[_0x1b3b42(0x111)](/\{CliVersion\}/g,CLI_VERSION)[_0x1b3b42(0x111)](/\{ComponentName\}/g,_0x25a38e)['replace'](/\{DisplayTitle\}/g,_0x525bd7)[_0x1b3b42(0x111)](/\{PageName\}/g,_0x70499c)[_0x1b3b42(0x111)](/\{TemplateName\}/g,_0x392738)[_0x1b3b42(0x111)](/\{CreatedAt\}/g,_0x4bc7c9)[_0x1b3b42(0x111)](/\{CreatedDate\}/g,_0x95e483)[_0x1b3b42(0x111)](/\{CreatedTime\}/g,_0x389481);return _0x83ef96;}static[a321_0x548473(0xd8)](_0x17bda2,_0x16e800,_0x4cf2e1,_0x3a7392,_0x170eb6,_0x593b17,_0x3e28c4,_0x56d451,_0x150ecc){const _0x5b20e9=a321_0x548473,_0x1482d=new Date(),_0xc214f5=_0x1482d[_0x5b20e9(0xfb)](),_0x2804e5=_0x4cf2e1[_0x5b20e9(0x100)](_0x351a71=>{const _0x2ffbdb=_0x5b20e9,_0x1749f0=['datasetCode:\x20\x22'+_0x351a71[_0x2ffbdb(0x10d)]+'\x22',_0x2ffbdb(0xe7)+_0x351a71['tableName']+'\x22',_0x2ffbdb(0x118)+_0x351a71[_0x2ffbdb(0xe9)]+'\x22'];return _0x351a71['alias']&&_0x1749f0[_0x2ffbdb(0xef)](_0x2ffbdb(0xec)+_0x351a71[_0x2ffbdb(0xe4)]+'\x22'),_0x2ffbdb(0xf6)+_0x1749f0[_0x2ffbdb(0xfe)](',\x20')+_0x2ffbdb(0xf8);})[_0x5b20e9(0xfe)](''),_0x5b7c4d=_0x3a7392||_0x4cf2e1[0x0]?.[_0x5b20e9(0xe4)]||_0x5b20e9(0x117);let _0x4f8693=_0x17bda2[_0x5b20e9(0x111)](/\{AppCode\}/g,_0x16e800)['replace'](/\{ModelConfigs\}/g,_0x2804e5)['replace'](/\{ExampleModelName\}/g,_0x5b7c4d)[_0x5b20e9(0x111)](/\{ApiFileName\}/g,_0x170eb6||_0x5b20e9(0xf4))[_0x5b20e9(0x111)](/\{ConfigName\}/g,_0x593b17||_0x5b20e9(0x10f))[_0x5b20e9(0x111)](/\{ClientConfigParam\}/g,_0x3e28c4||'')[_0x5b20e9(0x111)](/\{SdkConfigFileName\}/g,_0x150ecc||_0x5b20e9(0x11f))[_0x5b20e9(0x111)](/\{VarPrefix\}/g,_0x56d451||_0x5b20e9(0xf7))[_0x5b20e9(0x111)](/\{CreatedAt\}/g,_0xc214f5);return _0x4f8693;}static async[a321_0x548473(0x108)](_0x51a00d,_0x10b9f3,_0x26ce31,_0x22775e,_0x4f2316=!![]){const _0x4babc8=a321_0x548473,_0x5c7999=Date[_0x4babc8(0x10a)]();try{_0x4f2316&&logger[_0x4babc8(0x106)](_0x4babc8(0xd9),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x51a00d,'targetPath':_0x10b9f3,'pageName':_0x26ce31,'templateName':_0x22775e});await a321_0x299cc8[_0x4babc8(0xda)][_0x4babc8(0x102)](_0x10b9f3,{'recursive':!![]}),await this[_0x4babc8(0xe0)](_0x51a00d,_0x10b9f3,_0x26ce31,_0x22775e);if(_0x4f2316){const _0x2d060b=Date['now']()-_0x5c7999;logger[_0x4babc8(0x11b)](_0x4babc8(0xd9),_0x4babc8(0x115),_0x2d060b,{'pageName':_0x26ce31,'templateName':_0x22775e});}}catch(_0x3fe995){if(_0x4f2316){const _0x2b59f1=Date[_0x4babc8(0x10a)]()-_0x5c7999;logger['error'](_0x4babc8(0xd9),_0x4babc8(0x11c),{'templatePath':_0x51a00d,'targetPath':_0x10b9f3,'pageName':_0x26ce31,'templateName':_0x22775e,'error':_0x3fe995 instanceof Error?_0x3fe995[_0x4babc8(0xf5)]:String(_0x3fe995),'duration':_0x2b59f1});}throw _0x3fe995;}}static async[a321_0x548473(0xe0)](_0x5a77d4,_0x580539,_0x4a986f,_0x509f50){const _0x5e9eda=a321_0x548473,_0x4ce40f=await a321_0x299cc8[_0x5e9eda(0xda)][_0x5e9eda(0x101)](_0x5a77d4,{'withFileTypes':!![]});for(const _0x12da4b of _0x4ce40f){const _0x451ecc=a321_0x2a8358[_0x5e9eda(0xfe)](_0x5a77d4,_0x12da4b[_0x5e9eda(0xe9)]);let _0x447b7b=a321_0x2a8358[_0x5e9eda(0xfe)](_0x580539,_0x12da4b[_0x5e9eda(0xe9)]);_0x12da4b[_0x5e9eda(0xe9)][_0x5e9eda(0x10b)](_0x5e9eda(0xfc))&&(_0x447b7b=a321_0x2a8358[_0x5e9eda(0xfe)](_0x580539,_0x12da4b[_0x5e9eda(0xe9)][_0x5e9eda(0x111)](/\.tpl$/,'')));if(_0x12da4b[_0x5e9eda(0x110)]())await a321_0x299cc8[_0x5e9eda(0xda)]['mkdir'](_0x447b7b,{'recursive':!![]}),await this[_0x5e9eda(0xe0)](_0x451ecc,_0x447b7b,_0x4a986f,_0x509f50);else _0x12da4b['isFile']()&&await this[_0x5e9eda(0xee)](_0x451ecc,_0x447b7b,_0x4a986f,_0x509f50);}}static async['processFile'](_0x2bc047,_0x5905f1,_0x2614e9,_0x458e0f){const _0x4ace64=a321_0x548473,_0x4eada6=a321_0x2a8358[_0x4ace64(0x103)](_0x2bc047)[_0x4ace64(0xe8)]();_0x2bc047[_0x4ace64(0x10b)]('.tpl')&&(_0x5905f1=_0x5905f1[_0x4ace64(0x111)](/\.tpl$/,''));const _0x1e6884=[_0x4ace64(0xeb),_0x4ace64(0x105),_0x4ace64(0xd7),'.js',_0x4ace64(0xf2),_0x4ace64(0xe2),'.css',_0x4ace64(0xf3),'.tpl'];if(_0x1e6884[_0x4ace64(0x11d)](_0x4eada6)||_0x2bc047[_0x4ace64(0x10b)](_0x4ace64(0xfc))){const _0x3262c9=await a321_0x299cc8[_0x4ace64(0xda)][_0x4ace64(0xf0)](_0x2bc047,_0x4ace64(0x10c)),_0x4c6a09=this['replaceContent'](_0x3262c9,_0x2614e9,_0x458e0f);await a321_0x299cc8[_0x4ace64(0xda)][_0x4ace64(0x114)](_0x5905f1,_0x4c6a09,'utf8');}else await a321_0x299cc8['promises'][_0x4ace64(0x107)](_0x2bc047,_0x5905f1);}}
@@ -1 +1 @@
1
- (function(_0x48947b,_0xbf6959){const _0x56925d=a320_0xc0bb,_0x7686f5=_0x48947b();while(!![]){try{const _0x34b809=parseInt(_0x56925d(0xaf))/0x1*(-parseInt(_0x56925d(0xa7))/0x2)+-parseInt(_0x56925d(0xa4))/0x3*(parseInt(_0x56925d(0xb8))/0x4)+parseInt(_0x56925d(0xb9))/0x5*(-parseInt(_0x56925d(0xbb))/0x6)+-parseInt(_0x56925d(0xb3))/0x7+-parseInt(_0x56925d(0xa8))/0x8+-parseInt(_0x56925d(0xa9))/0x9*(parseInt(_0x56925d(0xb0))/0xa)+-parseInt(_0x56925d(0xba))/0xb*(-parseInt(_0x56925d(0xaa))/0xc);if(_0x34b809===_0xbf6959)break;else _0x7686f5['push'](_0x7686f5['shift']());}catch(_0x40346a){_0x7686f5['push'](_0x7686f5['shift']());}}}(a320_0x1b82,0x80da1));import{mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,join}from'node:path';import a320_0x4362c3 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 _0x37c7d2=a320_0xc0bb,_0x1bdc33=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x37c7d2(0xb7)]()[_0x37c7d2(0xbe)]();return _0x1bdc33==='1'||_0x1bdc33==='true'||_0x1bdc33==='yes';}function cacheRoot(){const _0x2dacc9=a320_0xc0bb;return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),_0x2dacc9(0xbd));}export function getUpdateNoticeCachePath(){return join(cacheRoot(),'rabetbase-cli','update-check.json');}async function readUpdateNoticeCache(){const _0x2c92f5=a320_0xc0bb;try{const _0x156395=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x3b7dc2=JSON[_0x2c92f5(0xb2)](_0x156395);if(!_0x3b7dc2||typeof _0x3b7dc2!=='object')return{};return _0x3b7dc2;}catch{return{};}}async function writeUpdateNoticeCache(_0x3019ce){const _0x5ddb45=a320_0xc0bb;try{const _0x4a3097=getUpdateNoticeCachePath();await mkdir(dirname(_0x4a3097),{'recursive':!![]}),await writeFile(_0x4a3097,JSON[_0x5ddb45(0xab)](_0x3019ce,null,0x2)+'\x0a',_0x5ddb45(0xa5));}catch{}}function isFreshCheck(_0x3a0609,_0x9bc875){const _0x39108a=a320_0xc0bb;return typeof _0x3a0609[_0x39108a(0xae)]===_0x39108a(0xac)&&_0x9bc875-_0x3a0609[_0x39108a(0xae)]<UPDATE_CHECK_TTL_MS;}function a320_0xc0bb(_0x18d0ce,_0xfce855){_0x18d0ce=_0x18d0ce-0xa4;const _0x1b820b=a320_0x1b82();let _0xc0bb80=_0x1b820b[_0x18d0ce];return _0xc0bb80;}function isRecentlyNotified(_0x291f90,_0x2d5e20,_0x386731){const _0x441997=a320_0xc0bb;return _0x291f90[_0x441997(0xb1)]===_0x2d5e20&&typeof _0x291f90[_0x441997(0xb6)]===_0x441997(0xac)&&_0x386731-_0x291f90[_0x441997(0xb6)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x504fdc){const _0x58515b=a320_0xc0bb;return'https://www.npmjs.com/package/'+NPM_PACKAGE_NAME+_0x58515b(0xb4)+_0x504fdc;}export async function resolveLatestUpdateNotice(){const _0xa6fc85=a320_0xc0bb;if(isUpdateNoticeDisabled())return null;try{const _0x5626ca=Date[_0xa6fc85(0xc1)](),_0x51a49b=getCliVersion(),_0x124152=await readUpdateNoticeCache();let _0x2bca59=isFreshCheck(_0x124152,_0x5626ca)?_0x124152[_0xa6fc85(0xbc)]?.[_0xa6fc85(0xb7)]():undefined;if(!_0x2bca59&&!isFreshCheck(_0x124152,_0x5626ca)){const _0x5bd700=await getCliVersionPolicy();_0x2bca59=_0x5bd700?.[_0xa6fc85(0xa6)]?.[_0xa6fc85(0xb7)]()||undefined,await writeUpdateNoticeCache({..._0x124152,'checkedAt':_0x5626ca,'latest':_0x2bca59,'failed':!_0x2bca59});}if(!_0x2bca59||!a320_0x4362c3[_0xa6fc85(0xc0)](_0x51a49b)||!a320_0x4362c3[_0xa6fc85(0xc0)](_0x2bca59))return null;if(a320_0x4362c3[_0xa6fc85(0xad)](_0x51a49b,_0x2bca59))return null;if(isRecentlyNotified(_0x124152,_0x2bca59,_0x5626ca))return null;const _0xe65066=CLI_BIN_NAME+_0xa6fc85(0xb5);return await writeUpdateNoticeCache({..._0x124152,'checkedAt':isFreshCheck(_0x124152,_0x5626ca)?_0x124152[_0xa6fc85(0xae)]:_0x5626ca,'latest':_0x2bca59,'failed':![],'lastNotifiedVersion':_0x2bca59,'lastNotifiedAt':_0x5626ca}),{'command':_0xe65066,'current':_0x51a49b,'latest':_0x2bca59,'url':buildNpmVersionUrl(_0x2bca59),'message':CLI_BIN_NAME+'\x20'+_0x2bca59+_0xa6fc85(0xbf)+_0x51a49b+',\x20run:\x20'+_0xe65066};}catch{return null;}}function a320_0x1b82(){const _0x1ac3d8=['38OktvBa','10XAzIyO','lastNotifiedVersion','parse','2768682qLPMjz','/v/','\x20update','lastNotifiedAt','trim','56kLJnGx','2242525fGHLoA','40792235YHiKOI','12uwdRXV','latest','.cache','toLowerCase','\x20available,\x20current\x20','valid','now','17700vMVKqh','utf8','stableVersion','42088phCDKc','6034160uAsTaw','2263770pNwcks','12hPmAnA','stringify','number','gte','checkedAt'];a320_0x1b82=function(){return _0x1ac3d8;};return a320_0x1b82();}
1
+ (function(_0x3a2e30,_0x35105c){const _0x1b1df7=a322_0x26a0,_0x491424=_0x3a2e30();while(!![]){try{const _0x15db47=-parseInt(_0x1b1df7(0x11c))/0x1+-parseInt(_0x1b1df7(0x127))/0x2+parseInt(_0x1b1df7(0x124))/0x3*(-parseInt(_0x1b1df7(0x113))/0x4)+-parseInt(_0x1b1df7(0x11f))/0x5*(parseInt(_0x1b1df7(0x111))/0x6)+-parseInt(_0x1b1df7(0x11a))/0x7*(parseInt(_0x1b1df7(0x10e))/0x8)+-parseInt(_0x1b1df7(0x114))/0x9*(-parseInt(_0x1b1df7(0x118))/0xa)+parseInt(_0x1b1df7(0x11d))/0xb;if(_0x15db47===_0x35105c)break;else _0x491424['push'](_0x491424['shift']());}catch(_0x5121bc){_0x491424['push'](_0x491424['shift']());}}}(a322_0x56f7,0xcaff1));import{mkdir,readFile,writeFile}from'node:fs/promises';function a322_0x26a0(_0x1ee8d2,_0x5d3d58){_0x1ee8d2=_0x1ee8d2-0x10c;const _0x56f708=a322_0x56f7();let _0x26a005=_0x56f708[_0x1ee8d2];return _0x26a005;}import{homedir}from'node:os';import{dirname,join}from'node:path';import a322_0x3b02f2 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 a322_0x56f7(){const _0x9fbd64=['14659146UrMBxV','latest','checkedAt','stableVersion','10nXxZGA','now','38150ZxOEyZ','trim','265609bCbTlm','16264391DeTJLJ','lastNotifiedVersion','10gOehUx','stringify','parse','toLowerCase','valid','615oJCyYN','update-check.json','utf8','2513820duupgE','https://www.npmjs.com/package/','\x20available,\x20current\x20','number','24oLVVlS','object','lastNotifiedAt','1077654NwBUeE','\x20update','7372mbyzUr'];a322_0x56f7=function(){return _0x9fbd64;};return a322_0x56f7();}function isUpdateNoticeDisabled(){const _0x16409f=a322_0x26a0,_0x188378=process.env.RABETBASE_NO_UPDATE_NOTICE?.[_0x16409f(0x11b)]()[_0x16409f(0x122)]();return _0x188378==='1'||_0x188378==='true'||_0x188378==='yes';}function cacheRoot(){return process.env.XDG_CACHE_HOME||process.env.LOCALAPPDATA||join(homedir(),'.cache');}export function getUpdateNoticeCachePath(){const _0x1ab0e9=a322_0x26a0;return join(cacheRoot(),'rabetbase-cli',_0x1ab0e9(0x125));}async function readUpdateNoticeCache(){const _0x5ea59e=a322_0x26a0;try{const _0x4828d5=await readFile(getUpdateNoticeCachePath(),'utf8'),_0x36e91e=JSON[_0x5ea59e(0x121)](_0x4828d5);if(!_0x36e91e||typeof _0x36e91e!==_0x5ea59e(0x10f))return{};return _0x36e91e;}catch{return{};}}async function writeUpdateNoticeCache(_0x5aba12){const _0x2d5654=a322_0x26a0;try{const _0x1ba0ee=getUpdateNoticeCachePath();await mkdir(dirname(_0x1ba0ee),{'recursive':!![]}),await writeFile(_0x1ba0ee,JSON[_0x2d5654(0x120)](_0x5aba12,null,0x2)+'\x0a',_0x2d5654(0x126));}catch{}}function isFreshCheck(_0x7f2df3,_0x4e0580){const _0x1f0ff3=a322_0x26a0;return typeof _0x7f2df3['checkedAt']==='number'&&_0x4e0580-_0x7f2df3[_0x1f0ff3(0x116)]<UPDATE_CHECK_TTL_MS;}function isRecentlyNotified(_0x5cd044,_0x2a3867,_0x41b66d){const _0xeb9f9=a322_0x26a0;return _0x5cd044[_0xeb9f9(0x11e)]===_0x2a3867&&typeof _0x5cd044[_0xeb9f9(0x110)]===_0xeb9f9(0x10d)&&_0x41b66d-_0x5cd044[_0xeb9f9(0x110)]<UPDATE_NOTICE_TTL_MS;}export function buildNpmVersionUrl(_0x554fb1){const _0x55bf5c=a322_0x26a0;return _0x55bf5c(0x128)+NPM_PACKAGE_NAME+'/v/'+_0x554fb1;}export async function resolveLatestUpdateNotice(){const _0xb2c2f=a322_0x26a0;if(isUpdateNoticeDisabled())return null;try{const _0x55e0ad=Date[_0xb2c2f(0x119)](),_0x1d9111=getCliVersion(),_0x191432=await readUpdateNoticeCache();let _0x29bc34=isFreshCheck(_0x191432,_0x55e0ad)?_0x191432[_0xb2c2f(0x115)]?.[_0xb2c2f(0x11b)]():undefined;if(!_0x29bc34&&!isFreshCheck(_0x191432,_0x55e0ad)){const _0x500d02=await getCliVersionPolicy();_0x29bc34=_0x500d02?.[_0xb2c2f(0x117)]?.[_0xb2c2f(0x11b)]()||undefined,await writeUpdateNoticeCache({..._0x191432,'checkedAt':_0x55e0ad,'latest':_0x29bc34,'failed':!_0x29bc34});}if(!_0x29bc34||!a322_0x3b02f2[_0xb2c2f(0x123)](_0x1d9111)||!a322_0x3b02f2[_0xb2c2f(0x123)](_0x29bc34))return null;if(a322_0x3b02f2['gte'](_0x1d9111,_0x29bc34))return null;if(isRecentlyNotified(_0x191432,_0x29bc34,_0x55e0ad))return null;const _0x4b979c=CLI_BIN_NAME+_0xb2c2f(0x112);return await writeUpdateNoticeCache({..._0x191432,'checkedAt':isFreshCheck(_0x191432,_0x55e0ad)?_0x191432[_0xb2c2f(0x116)]:_0x55e0ad,'latest':_0x29bc34,'failed':![],'lastNotifiedVersion':_0x29bc34,'lastNotifiedAt':_0x55e0ad}),{'command':_0x4b979c,'current':_0x1d9111,'latest':_0x29bc34,'url':buildNpmVersionUrl(_0x29bc34),'message':CLI_BIN_NAME+'\x20'+_0x29bc34+_0xb2c2f(0x10c)+_0x1d9111+',\x20run:\x20'+_0x4b979c};}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x317217,_0x260ce5){var _0x18abd7=a321_0x4fe6,_0x3b4663=_0x317217();while(!![]){try{var _0xe54592=parseInt(_0x18abd7(0xf2))/0x1*(-parseInt(_0x18abd7(0xf1))/0x2)+-parseInt(_0x18abd7(0xed))/0x3*(parseInt(_0x18abd7(0xf0))/0x4)+parseInt(_0x18abd7(0xee))/0x5+-parseInt(_0x18abd7(0xef))/0x6+-parseInt(_0x18abd7(0xeb))/0x7*(-parseInt(_0x18abd7(0xea))/0x8)+-parseInt(_0x18abd7(0xf3))/0x9+parseInt(_0x18abd7(0xec))/0xa;if(_0xe54592===_0x260ce5)break;else _0x3b4663['push'](_0x3b4663['shift']());}catch(_0x5edaf7){_0x3b4663['push'](_0x3b4663['shift']());}}}(a321_0x1871,0xeecfc));import{VERSION}from'../generated/build-info.js';function a321_0x4fe6(_0x131dce,_0xa6b7a5){_0x131dce=_0x131dce-0xea;var _0x18714b=a321_0x1871();var _0x4fe6a3=_0x18714b[_0x131dce];return _0x4fe6a3;}export function getCliVersion(){return VERSION;}function a321_0x1871(){var _0x4213ca=['10616760CcdcoX','2952uymzWn','11053XOzBWo','48040310ggwJQB','9mtHoxb','101630XqaJMu','6196200gQuymA','1736368FOTlZw','6yyNdlz','304740pUDqvQ'];a321_0x1871=function(){return _0x4213ca;};return a321_0x1871();}
1
+ function a323_0x5c3a(_0x32a266,_0x5bef78){_0x32a266=_0x32a266-0xf7;var _0x338af1=a323_0x338a();var _0x5c3adc=_0x338af1[_0x32a266];return _0x5c3adc;}(function(_0x2a65d1,_0x36b28d){var _0x57e1d9=a323_0x5c3a,_0x29b68a=_0x2a65d1();while(!![]){try{var _0x113e51=-parseInt(_0x57e1d9(0x100))/0x1*(parseInt(_0x57e1d9(0xfc))/0x2)+-parseInt(_0x57e1d9(0xfb))/0x3+-parseInt(_0x57e1d9(0xfd))/0x4+-parseInt(_0x57e1d9(0xfe))/0x5+parseInt(_0x57e1d9(0xff))/0x6+-parseInt(_0x57e1d9(0xf7))/0x7*(-parseInt(_0x57e1d9(0xf8))/0x8)+parseInt(_0x57e1d9(0xfa))/0x9*(parseInt(_0x57e1d9(0xf9))/0xa);if(_0x113e51===_0x36b28d)break;else _0x29b68a['push'](_0x29b68a['shift']());}catch(_0x4f7658){_0x29b68a['push'](_0x29b68a['shift']());}}}(a323_0x338a,0x8e6d8));function a323_0x338a(){var _0x58f70f=['3959480wGjWfZ','3302196YzBxma','1076874YqOJCp','7oInVIy','6000328znVkzm','9633160uquJBR','18qrmJzz','919647vfMBel','2izEXck','1873344mUbNuv'];a323_0x338a=function(){return _0x58f70f;};return a323_0x338a();}import{VERSION}from'../generated/build-info.js';export function getCliVersion(){return VERSION;}
@@ -1 +1 @@
1
- (function(_0x3cc2b1,_0x22d2d3){var _0x2776a6=a322_0x4c4f,_0x5938f4=_0x3cc2b1();while(!![]){try{var _0x10700e=-parseInt(_0x2776a6(0xb0))/0x1+-parseInt(_0x2776a6(0xae))/0x2*(-parseInt(_0x2776a6(0xb6))/0x3)+-parseInt(_0x2776a6(0xb3))/0x4*(-parseInt(_0x2776a6(0xb4))/0x5)+parseInt(_0x2776a6(0xb5))/0x6*(-parseInt(_0x2776a6(0xb7))/0x7)+parseInt(_0x2776a6(0xb2))/0x8+parseInt(_0x2776a6(0xb8))/0x9+-parseInt(_0x2776a6(0xb1))/0xa*(parseInt(_0x2776a6(0xaf))/0xb);if(_0x10700e===_0x22d2d3)break;else _0x5938f4['push'](_0x5938f4['shift']());}catch(_0x2c019c){_0x5938f4['push'](_0x5938f4['shift']());}}}(a322_0x41af,0x21556));import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';function a322_0x4c4f(_0x172240,_0x9288be){_0x172240=_0x172240-0xae;var _0x41af4a=a322_0x41af();var _0x4c4f8d=_0x41af4a[_0x172240];return _0x4c4f8d;}export async function withActiveCookie(_0x1b5bbe,_0x2384c5){setActiveCookie(_0x1b5bbe);try{return await _0x2384c5();}finally{clearActiveCookie();}}function a322_0x41af(){var _0x582937=['474862uVWRiR','3179uXfQTY','163938tltAiG','8830vTCpRy','1898888FocVgo','44rfKmfM','87590ooERXz','977034eFLzwx','3ovvQok','7Mqlrtx','459072wXtygB'];a322_0x41af=function(){return _0x582937;};return a322_0x41af();}
1
+ function a324_0x35ad(_0x1e6a91,_0x3702c6){_0x1e6a91=_0x1e6a91-0x188;var _0x1535df=a324_0x1535();var _0x35adb9=_0x1535df[_0x1e6a91];return _0x35adb9;}(function(_0x2228fc,_0x22263e){var _0x51d8e1=a324_0x35ad,_0x4e5994=_0x2228fc();while(!![]){try{var _0x529dec=-parseInt(_0x51d8e1(0x190))/0x1*(parseInt(_0x51d8e1(0x191))/0x2)+parseInt(_0x51d8e1(0x18d))/0x3+parseInt(_0x51d8e1(0x18f))/0x4*(parseInt(_0x51d8e1(0x18a))/0x5)+parseInt(_0x51d8e1(0x18c))/0x6+parseInt(_0x51d8e1(0x18b))/0x7*(parseInt(_0x51d8e1(0x188))/0x8)+parseInt(_0x51d8e1(0x18e))/0x9*(parseInt(_0x51d8e1(0x189))/0xa)+-parseInt(_0x51d8e1(0x192))/0xb;if(_0x529dec===_0x22263e)break;else _0x4e5994['push'](_0x4e5994['shift']());}catch(_0x7d9a8f){_0x4e5994['push'](_0x4e5994['shift']());}}}(a324_0x1535,0x76aef));function a324_0x1535(){var _0x2874d9=['14qxmAPU','2003466xXWAhs','2870727UQGpwt','2067453VyEnlH','28GYXWfq','13355SZxJPq','2SMOUTR','24826549pYYToN','1201480FkfSYl','20Iuuyoa','504155zQCOVT'];a324_0x1535=function(){return _0x2874d9;};return a324_0x1535();}import{setActiveCookie,clearActiveCookie}from'../core/api-client.js';export async function withActiveCookie(_0x2762a0,_0x3af75a){setActiveCookie(_0x2762a0);try{return await _0x3af75a();}finally{clearActiveCookie();}}
@@ -1 +1 @@
1
- function a323_0x1c77(){var _0x551983=['1476eVdqxP','290qPgDpi','11NiugsS','2607SRArcz','6478zjTVUv','7532GaZRWu','217sFtMub','5112510nvAHXH','3903272FloVHq','29748564xyHwlR','14cLYtJS','26glUbfD','1228122ZaGXBV'];a323_0x1c77=function(){return _0x551983;};return a323_0x1c77();}(function(_0x1e083a,_0x1c9565){var _0x560f23=a323_0x3c67,_0x1fe3b7=_0x1e083a();while(!![]){try{var _0x2de087=parseInt(_0x560f23(0xca))/0x1*(-parseInt(_0x560f23(0xd5))/0x2)+parseInt(_0x560f23(0xd4))/0x3*(-parseInt(_0x560f23(0xd6))/0x4)+-parseInt(_0x560f23(0xd2))/0x5*(parseInt(_0x560f23(0xd1))/0x6)+-parseInt(_0x560f23(0xce))/0x7*(parseInt(_0x560f23(0xcc))/0x8)+-parseInt(_0x560f23(0xd0))/0x9+-parseInt(_0x560f23(0xcb))/0xa*(parseInt(_0x560f23(0xd3))/0xb)+-parseInt(_0x560f23(0xcd))/0xc*(-parseInt(_0x560f23(0xcf))/0xd);if(_0x2de087===_0x1c9565)break;else _0x1fe3b7['push'](_0x1fe3b7['shift']());}catch(_0x19b841){_0x1fe3b7['push'](_0x1fe3b7['shift']());}}}(a323_0x1c77,0xef875));function a323_0x3c67(_0x57b6fc,_0x4af8c9){_0x57b6fc=_0x57b6fc-0xca;var _0x1c77f2=a323_0x1c77();var _0x3c670d=_0x1c77f2[_0x57b6fc];return _0x3c670d;}export function writeCliSideChannelLine(_0x4f50d9){process['stderr']['write'](_0x4f50d9+'\x0a');}
1
+ function a325_0x9b7f(){var _0x154e28=['517CLRRfG','3cjVbQN','9071433PGleqa','27XDlRMy','958FtgBxD','stderr','418270NTqPzb','6089965sqKIjN','2196664oXZpuy','264hhARps','2171460YJZWNM','5744800UfdAwe'];a325_0x9b7f=function(){return _0x154e28;};return a325_0x9b7f();}function a325_0x40f2(_0x2dae63,_0x4d4273){_0x2dae63=_0x2dae63-0x1d7;var _0x9b7f61=a325_0x9b7f();var _0x40f2e0=_0x9b7f61[_0x2dae63];return _0x40f2e0;}(function(_0x47aefe,_0x5956e8){var _0x5cf7f1=a325_0x40f2,_0x16ce45=_0x47aefe();while(!![]){try{var _0x21c85b=parseInt(_0x5cf7f1(0x1d7))/0x1*(-parseInt(_0x5cf7f1(0x1de))/0x2)+-parseInt(_0x5cf7f1(0x1db))/0x3*(parseInt(_0x5cf7f1(0x1d9))/0x4)+parseInt(_0x5cf7f1(0x1e1))/0x5+-parseInt(_0x5cf7f1(0x1d8))/0x6+-parseInt(_0x5cf7f1(0x1dc))/0x7+-parseInt(_0x5cf7f1(0x1e2))/0x8*(-parseInt(_0x5cf7f1(0x1dd))/0x9)+-parseInt(_0x5cf7f1(0x1e0))/0xa*(-parseInt(_0x5cf7f1(0x1da))/0xb);if(_0x21c85b===_0x5956e8)break;else _0x16ce45['push'](_0x16ce45['shift']());}catch(_0x1bc4dc){_0x16ce45['push'](_0x16ce45['shift']());}}}(a325_0x9b7f,0xc02b6));export function writeCliSideChannelLine(_0x229f13){var _0x19e6c0=a325_0x40f2;process[_0x19e6c0(0x1df)]['write'](_0x229f13+'\x0a');}