@lovrabet/rabetbase-cli 2.5.0 → 2.5.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/api/generate-sdk-config-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.d.ts +7 -0
  7. package/lib/auth/auth-server.js +1 -1
  8. package/lib/auth/constant.js +1 -1
  9. package/lib/auth/get-cookie.js +1 -1
  10. package/lib/auth/get-session-user.js +1 -1
  11. package/lib/auth/is-session-valid.js +1 -1
  12. package/lib/auth/login-success-html.js +1 -1
  13. package/lib/auth/logout.js +1 -1
  14. package/lib/cli-flags.js +1 -1
  15. package/lib/cli.js +1 -1
  16. package/lib/commands/api/generate.js +1 -1
  17. package/lib/commands/api/index.js +1 -1
  18. package/lib/commands/api/list.js +1 -1
  19. package/lib/commands/api/pull.js +1 -1
  20. package/lib/commands/api/shared.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/members-list.js +1 -1
  24. package/lib/commands/app/remote-directory.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app-config/delete.js +1 -1
  27. package/lib/commands/app-config/get.js +1 -1
  28. package/lib/commands/app-config/index.js +1 -1
  29. package/lib/commands/app-config/list.js +1 -1
  30. package/lib/commands/app-config/set.js +1 -1
  31. package/lib/commands/app-config/shared.js +1 -1
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-skill/index.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-registry.js +1 -1
  47. package/lib/commands/common/app-selector.js +1 -1
  48. package/lib/commands/common/async-task.js +1 -1
  49. package/lib/commands/common/dry-run.js +1 -1
  50. package/lib/commands/common/flags.js +1 -1
  51. package/lib/commands/common/local-file.js +1 -1
  52. package/lib/commands/common/validate.js +1 -1
  53. package/lib/commands/config/delete.js +1 -1
  54. package/lib/commands/config/get.js +1 -1
  55. package/lib/commands/config/index.js +1 -1
  56. package/lib/commands/config/init.d.ts +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.d.ts +107 -0
  68. package/lib/commands/dataset/field-restore.js +1 -0
  69. package/lib/commands/dataset/field-update.js +1 -1
  70. package/lib/commands/dataset/generate.js +1 -1
  71. package/lib/commands/dataset/index.js +1 -1
  72. package/lib/commands/dataset/list.js +1 -1
  73. package/lib/commands/dataset/operations.js +1 -1
  74. package/lib/commands/dataset/relation-audit.js +1 -1
  75. package/lib/commands/dataset/relation-create.js +1 -1
  76. package/lib/commands/dataset/relation-delete.js +1 -1
  77. package/lib/commands/dataset/relation-shared.js +1 -1
  78. package/lib/commands/dataset/relation-update.js +1 -1
  79. package/lib/commands/dataset/relations.js +1 -1
  80. package/lib/commands/dataset/rename.js +1 -1
  81. package/lib/commands/dataset/restore.js +1 -1
  82. package/lib/commands/dataset/user-deleted-field-list.d.ts +36 -0
  83. package/lib/commands/dataset/user-deleted-field-list.js +1 -0
  84. package/lib/commands/db/analysis-batching.js +1 -1
  85. package/lib/commands/db/analyze-batch-plan.js +1 -1
  86. package/lib/commands/db/analyze-cancel.js +1 -1
  87. package/lib/commands/db/analyze-start.js +1 -1
  88. package/lib/commands/db/analyze-status.js +1 -1
  89. package/lib/commands/db/create.js +1 -1
  90. package/lib/commands/db/delete.js +1 -1
  91. package/lib/commands/db/detail.js +1 -1
  92. package/lib/commands/db/diff-refresh-start.js +1 -1
  93. package/lib/commands/db/diff-refresh-status.js +1 -1
  94. package/lib/commands/db/diff.js +1 -1
  95. package/lib/commands/db/index.js +1 -1
  96. package/lib/commands/db/list.js +1 -1
  97. package/lib/commands/db/shared.js +1 -1
  98. package/lib/commands/db/table-diff-shared.js +1 -1
  99. package/lib/commands/db/tables.js +1 -1
  100. package/lib/commands/db/test.js +1 -1
  101. package/lib/commands/db/update.js +1 -1
  102. package/lib/commands/deployment/auto-sync.d.ts +28 -0
  103. package/lib/commands/deployment/auto-sync.js +1 -0
  104. package/lib/commands/deployment/index.d.ts +2 -0
  105. package/lib/commands/deployment/index.js +1 -0
  106. package/lib/commands/deployment/sync.d.ts +2 -0
  107. package/lib/commands/deployment/sync.js +1 -0
  108. package/lib/commands/doctor.js +1 -1
  109. package/lib/commands/file/index.js +1 -1
  110. package/lib/commands/issue/index.js +1 -1
  111. package/lib/commands/issue/nudge.js +1 -1
  112. package/lib/commands/issue/report.js +1 -1
  113. package/lib/commands/issue/shared.js +1 -1
  114. package/lib/commands/kb/create.js +1 -1
  115. package/lib/commands/kb/delete.js +1 -1
  116. package/lib/commands/kb/detail.js +1 -1
  117. package/lib/commands/kb/index.js +1 -1
  118. package/lib/commands/kb/list.js +1 -1
  119. package/lib/commands/kb/search.js +1 -1
  120. package/lib/commands/kb/shared.js +1 -1
  121. package/lib/commands/kb/update.js +1 -1
  122. package/lib/commands/logs/index.js +1 -1
  123. package/lib/commands/menu/asset-update.js +1 -1
  124. package/lib/commands/menu/delete.js +1 -1
  125. package/lib/commands/menu/external-link-create.js +1 -1
  126. package/lib/commands/menu/external-link-update.js +1 -1
  127. package/lib/commands/menu/group-create.js +1 -1
  128. package/lib/commands/menu/group-update.js +1 -1
  129. package/lib/commands/menu/index.js +1 -1
  130. package/lib/commands/menu/list.js +1 -1
  131. package/lib/commands/menu/move.js +1 -1
  132. package/lib/commands/menu/regroup-start.js +1 -1
  133. package/lib/commands/menu/rename.js +1 -1
  134. package/lib/commands/menu/shared/compare-table.js +1 -1
  135. package/lib/commands/menu/shared/delete-plan.js +1 -1
  136. package/lib/commands/menu/shared/facts.js +1 -1
  137. package/lib/commands/menu/shared/index.js +1 -1
  138. package/lib/commands/menu/shared/inquirer.js +1 -1
  139. package/lib/commands/menu/shared/local-pages.js +1 -1
  140. package/lib/commands/menu/shared/logic.js +1 -1
  141. package/lib/commands/menu/shared/mutations.js +1 -1
  142. package/lib/commands/menu/shared/service.js +1 -1
  143. package/lib/commands/menu/shared/sync-core.js +1 -1
  144. package/lib/commands/menu/shared/update-core.js +1 -1
  145. package/lib/commands/menu/shared/valid-url.js +1 -1
  146. package/lib/commands/menu/sync.js +1 -1
  147. package/lib/commands/menu/visibility-update.js +1 -1
  148. package/lib/commands/notification/config-create.js +1 -1
  149. package/lib/commands/notification/config-delete.js +1 -1
  150. package/lib/commands/notification/config-list.js +1 -1
  151. package/lib/commands/notification/config-update.js +1 -1
  152. package/lib/commands/notification/index.js +1 -1
  153. package/lib/commands/notification/shared.js +1 -1
  154. package/lib/commands/ocr/index.js +1 -1
  155. package/lib/commands/page/create.js +1 -1
  156. package/lib/commands/page/custom/detail.js +1 -1
  157. package/lib/commands/page/custom/list.js +1 -1
  158. package/lib/commands/page/custom/publish.js +1 -1
  159. package/lib/commands/page/custom/shared.js +1 -1
  160. package/lib/commands/page/custom/syntax.js +1 -1
  161. package/lib/commands/page/custom/template.js +1 -1
  162. package/lib/commands/page/custom/update.js +1 -1
  163. package/lib/commands/page/data-list-status.js +1 -1
  164. package/lib/commands/page/generate-start.js +1 -1
  165. package/lib/commands/page/generate-status.js +1 -1
  166. package/lib/commands/page/index.js +1 -1
  167. package/lib/commands/page/pull.js +1 -1
  168. package/lib/commands/page/push.js +1 -1
  169. package/lib/commands/page/relation-audit.js +1 -1
  170. package/lib/commands/page/restore.js +1 -1
  171. package/lib/commands/page/shared.js +1 -1
  172. package/lib/commands/page/sync.js +1 -1
  173. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  174. package/lib/commands/project/create/format-elapsed.js +1 -1
  175. package/lib/commands/project/create/main.js +1 -1
  176. package/lib/commands/project/create/materialize-project-template.js +1 -1
  177. package/lib/commands/project/create/project-name.js +1 -1
  178. package/lib/commands/project/create/project-template-archive.js +1 -1
  179. package/lib/commands/project/create/project-template-path.js +1 -1
  180. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  181. package/lib/commands/project/create/use-format-code.js +1 -1
  182. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  183. package/lib/commands/project/index.js +1 -1
  184. package/lib/commands/project/upgrade.js +1 -1
  185. package/lib/commands/registry.js +1 -1
  186. package/lib/commands/role/delete.js +1 -1
  187. package/lib/commands/role/detail.js +1 -1
  188. package/lib/commands/role/index.js +1 -1
  189. package/lib/commands/role/list.js +1 -1
  190. package/lib/commands/role/shared.js +1 -1
  191. package/lib/commands/role/update.js +1 -1
  192. package/lib/commands/role/user-add.js +1 -1
  193. package/lib/commands/role/user-remove.js +1 -1
  194. package/lib/commands/role/user-resolve.js +1 -1
  195. package/lib/commands/run/index.js +1 -1
  196. package/lib/commands/schema.js +1 -1
  197. package/lib/commands/sql/create.js +1 -1
  198. package/lib/commands/sql/delete.js +1 -1
  199. package/lib/commands/sql/detail.js +1 -1
  200. package/lib/commands/sql/exec.js +1 -1
  201. package/lib/commands/sql/index.js +1 -1
  202. package/lib/commands/sql/list.js +1 -1
  203. package/lib/commands/sql/pull.js +1 -1
  204. package/lib/commands/sql/push.js +1 -1
  205. package/lib/commands/sql/shared.js +1 -1
  206. package/lib/commands/sql/status.js +1 -1
  207. package/lib/commands/sql/validate.js +1 -1
  208. package/lib/commands/task/index.js +1 -1
  209. package/lib/commands/task/status.js +1 -1
  210. package/lib/commands/tenant/index.js +1 -1
  211. package/lib/commands/tenant/members-list.js +1 -1
  212. package/lib/commands/tenant/shared.js +1 -1
  213. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  214. package/lib/commands/user-account/index.js +1 -1
  215. package/lib/commands/workspace/add.js +1 -1
  216. package/lib/commands/workspace/index.js +1 -1
  217. package/lib/commands/workspace/remove.js +1 -1
  218. package/lib/config/deployment-sync.d.ts +10 -0
  219. package/lib/config/deployment-sync.js +1 -0
  220. package/lib/config/domain-config.d.ts +1 -1
  221. package/lib/config/domain-config.js +1 -1
  222. package/lib/config/project-routing.d.ts +30 -0
  223. package/lib/config/project-routing.js +1 -0
  224. package/lib/config/schema.d.ts +1 -1
  225. package/lib/config/schema.js +1 -1
  226. package/lib/constant/cdn.js +1 -1
  227. package/lib/constant/cli.js +1 -1
  228. package/lib/constant/defaults.js +1 -1
  229. package/lib/constant/domain.d.ts +7 -2
  230. package/lib/constant/domain.js +1 -1
  231. package/lib/constant/env.js +1 -1
  232. package/lib/constant/output.js +1 -1
  233. package/lib/constant/paths.js +1 -1
  234. package/lib/constant/region.d.ts +2 -2
  235. package/lib/constant/region.js +1 -1
  236. package/lib/constant/risk.js +1 -1
  237. package/lib/constant/routing-profile.d.ts +115 -0
  238. package/lib/constant/routing-profile.js +1 -0
  239. package/lib/context/app-resolver.d.ts +2 -0
  240. package/lib/context/app-resolver.js +1 -1
  241. package/lib/context/auth-resolver.js +1 -1
  242. package/lib/context/config-loader.js +1 -1
  243. package/lib/context.js +1 -1
  244. package/lib/core/alias-resolver.js +1 -1
  245. package/lib/core/api-client.d.ts +35 -0
  246. package/lib/core/api-client.js +1 -1
  247. package/lib/core/bff/config.js +1 -1
  248. package/lib/core/bff/file-system.js +1 -1
  249. package/lib/core/bff/hash.js +1 -1
  250. package/lib/core/bff/lock.js +1 -1
  251. package/lib/core/bff/utils.js +1 -1
  252. package/lib/core/db-resolver.js +1 -1
  253. package/lib/core/page/file-system.js +1 -1
  254. package/lib/core/page/hash.js +1 -1
  255. package/lib/core/page/lock.js +1 -1
  256. package/lib/core/sql-index-auditor.js +1 -1
  257. package/lib/core/sql-sync/config.js +1 -1
  258. package/lib/core/sql-sync/file-system.js +1 -1
  259. package/lib/core/sql-sync/hash.js +1 -1
  260. package/lib/core/sql-sync/lock.js +1 -1
  261. package/lib/core/sql-sync/utils.js +1 -1
  262. package/lib/core/sql-validator.js +1 -1
  263. package/lib/errors.js +1 -1
  264. package/lib/framework/build-all-flags.js +1 -1
  265. package/lib/framework/error-output.js +1 -1
  266. package/lib/framework/explicit-yes.js +1 -1
  267. package/lib/framework/flags.js +1 -1
  268. package/lib/framework/help.js +1 -1
  269. package/lib/framework/index.js +1 -1
  270. package/lib/framework/output.js +1 -1
  271. package/lib/framework/response.js +1 -1
  272. package/lib/framework/runner-alias.js +1 -1
  273. package/lib/framework/runner.js +1 -1
  274. package/lib/framework/schema-export.js +1 -1
  275. package/lib/framework/types.d.ts +4 -0
  276. package/lib/framework/types.js +1 -1
  277. package/lib/generated/build-info.d.ts +4 -4
  278. package/lib/generated/build-info.js +1 -1
  279. package/lib/help.js +1 -1
  280. package/lib/postinstall.js +1 -1
  281. package/lib/runtime/confirmation.js +1 -1
  282. package/lib/runtime/event.js +1 -1
  283. package/lib/runtime/index.js +1 -1
  284. package/lib/runtime/queue.js +1 -1
  285. package/lib/runtime/resolve.js +1 -1
  286. package/lib/skills/builtin-skill.js +1 -1
  287. package/lib/skills/main.js +1 -1
  288. package/lib/skills/npx-skills-add.js +1 -1
  289. package/lib/skills/skill-presence.js +1 -1
  290. package/lib/telemetry/cli-command-trace.js +1 -1
  291. package/lib/telemetry/cli-help-trace.js +1 -1
  292. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  293. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  294. package/lib/telemetry/send-cli-trace-log.js +1 -1
  295. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  296. package/lib/utils/ai_config.js +1 -1
  297. package/lib/utils/apply-jq-filter.js +1 -1
  298. package/lib/utils/cdn-config.js +1 -1
  299. package/lib/utils/check-sdk-version.js +1 -1
  300. package/lib/utils/cli-version-check.js +1 -1
  301. package/lib/utils/cli-version-policy.js +1 -1
  302. package/lib/utils/config.js +1 -1
  303. package/lib/utils/entity-with-id.js +1 -1
  304. package/lib/utils/file-utils.js +1 -1
  305. package/lib/utils/guides-cdn.js +1 -1
  306. package/lib/utils/http-client.js +1 -1
  307. package/lib/utils/is-non-interactive.js +1 -1
  308. package/lib/utils/logger.js +1 -1
  309. package/lib/utils/params.js +1 -1
  310. package/lib/utils/platform.js +1 -1
  311. package/lib/utils/sleep.js +1 -1
  312. package/lib/utils/template-replacer.js +1 -1
  313. package/lib/utils/update-notice.js +1 -1
  314. package/lib/utils/version.js +1 -1
  315. package/lib/utils/with-active-cookie.js +1 -1
  316. package/lib/utils/write-cli-side-channel.js +1 -1
  317. package/package.json +1 -2
  318. package/skills/rabetbase/SKILL.md +20 -9
  319. package/skills/rabetbase/guides/frontend-development.md +2 -0
  320. package/skills/rabetbase/guides/sdk-client-generation.md +3 -2
  321. package/skills/rabetbase/guides/typescript-sdk.md +42 -0
  322. package/skills/rabetbase/references/rabetbase-api-pull.md +5 -3
  323. package/skills/rabetbase/references/rabetbase-config.md +9 -5
  324. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +9 -9
  325. package/skills/rabetbase/references/rabetbase-dataset-business-groups.md +1 -1
  326. package/skills/rabetbase/references/rabetbase-dataset-field-restore.md +59 -0
  327. package/skills/rabetbase/references/rabetbase-dataset-user-deleted-field-list.md +47 -0
  328. package/skills/rabetbase/references/rabetbase-deployment-sync.md +92 -0
  329. package/skills/rabetbase/references/rabetbase-init.md +11 -5
  330. package/skills/rabetbase/references/rabetbase-project-create.md +6 -5
  331. package/skills/rabetbase.manifest.json +6 -3
  332. package/templates/README.md +13 -17
@@ -1 +1 @@
1
- (function(_0x2662e5,_0xc592da){const _0x5a508e=a271_0x29ec,_0x1d5ddb=_0x2662e5();while(!![]){try{const _0x4cd670=-parseInt(_0x5a508e(0xea))/0x1*(parseInt(_0x5a508e(0xdc))/0x2)+-parseInt(_0x5a508e(0xeb))/0x3*(-parseInt(_0x5a508e(0xe4))/0x4)+parseInt(_0x5a508e(0xe0))/0x5*(-parseInt(_0x5a508e(0xe8))/0x6)+-parseInt(_0x5a508e(0xe5))/0x7+parseInt(_0x5a508e(0xe3))/0x8*(parseInt(_0x5a508e(0xda))/0x9)+parseInt(_0x5a508e(0xdb))/0xa*(parseInt(_0x5a508e(0xe9))/0xb)+-parseInt(_0x5a508e(0xe7))/0xc*(-parseInt(_0x5a508e(0xde))/0xd);if(_0x4cd670===_0xc592da)break;else _0x1d5ddb['push'](_0x1d5ddb['shift']());}catch(_0xfd6ac8){_0x1d5ddb['push'](_0x1d5ddb['shift']());}}}(a271_0x3d07,0x85c00));import{shutdownTraces}from'@lovrabet/otel-logger';function a271_0x29ec(_0x5801d,_0x287bd6){_0x5801d=_0x5801d-0xda;const _0x3d0771=a271_0x3d07();let _0x29ec96=_0x3d0771[_0x5801d];return _0x29ec96;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a271_0x3d07(){const _0x55e592=['46478UQRsIu','SIGTERM','9165rScnAo','exit','1645430GcXkvD','then','beforeExit','1941312sEeUGP','8CSrKPm','6443584xaMCLN','once','25308dccUTw','18hmWzpC','2786333GIhhsO','34PNzLIF','802398qbqslV','SIGINT','36zNoRDy','10lxzPmb'];a271_0x3d07=function(){return _0x55e592;};return a271_0x3d07();}export function registerOtelShutdownOnExit(){const _0x5670f4=a271_0x29ec;process[_0x5670f4(0xe6)](_0x5670f4(0xe2),()=>{void flushOtelNodeIfUsed();});const _0x26ace4=()=>{const _0x1fe9f7=_0x5670f4;void flushOtelNodeIfUsed()[_0x1fe9f7(0xe1)](()=>process[_0x1fe9f7(0xdf)](0x0));};process[_0x5670f4(0xe6)](_0x5670f4(0xec),_0x26ace4),process['once'](_0x5670f4(0xdd),_0x26ace4);}export async function exitWithOtelShutdown(_0x129937){const _0x2b4704=a271_0x29ec;await flushOtelNodeIfUsed(),process[_0x2b4704(0xdf)](_0x129937);}
1
+ (function(_0x58473c,_0x2a4fd9){const _0x5d49b7=a279_0x5982,_0xc25677=_0x58473c();while(!![]){try{const _0x51b197=parseInt(_0x5d49b7(0xa6))/0x1+-parseInt(_0x5d49b7(0xa9))/0x2+parseInt(_0x5d49b7(0xa5))/0x3*(parseInt(_0x5d49b7(0xa7))/0x4)+parseInt(_0x5d49b7(0xad))/0x5*(parseInt(_0x5d49b7(0xa3))/0x6)+-parseInt(_0x5d49b7(0xb1))/0x7*(parseInt(_0x5d49b7(0xae))/0x8)+-parseInt(_0x5d49b7(0xa4))/0x9*(-parseInt(_0x5d49b7(0xaf))/0xa)+parseInt(_0x5d49b7(0xab))/0xb;if(_0x51b197===_0x2a4fd9)break;else _0xc25677['push'](_0xc25677['shift']());}catch(_0x3d49df){_0xc25677['push'](_0xc25677['shift']());}}}(a279_0x5bfa,0xc367b));import{shutdownTraces}from'@lovrabet/otel-logger';function a279_0x5bfa(){const _0x59560e=['6DZAVDA','36VDxuAU','3tvqGzH','584363yArXum','395068DrOiKy','once','1316034QxsYNT','then','7002864SMSyDr','exit','1951415UZqkAA','3946216EeQCJG','604090lFtsYj','SIGINT','7fzmRLW'];a279_0x5bfa=function(){return _0x59560e;};return a279_0x5bfa();}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}function a279_0x5982(_0x290d08,_0x20f2b5){_0x290d08=_0x290d08-0xa3;const _0x5bfaaf=a279_0x5bfa();let _0x598282=_0x5bfaaf[_0x290d08];return _0x598282;}export function registerOtelShutdownOnExit(){const _0x3ba81f=a279_0x5982;process['once']('beforeExit',()=>{void flushOtelNodeIfUsed();});const _0x547e0f=()=>{const _0xf3c1c0=a279_0x5982;void flushOtelNodeIfUsed()[_0xf3c1c0(0xaa)](()=>process['exit'](0x0));};process[_0x3ba81f(0xa8)](_0x3ba81f(0xb0),_0x547e0f),process[_0x3ba81f(0xa8)]('SIGTERM',_0x547e0f);}export async function exitWithOtelShutdown(_0x23be7b){const _0x3c9f59=a279_0x5982;await flushOtelNodeIfUsed(),process[_0x3c9f59(0xac)](_0x23be7b);}
@@ -1 +1 @@
1
- const a272_0x57f1f5=a272_0x5494;(function(_0x15d880,_0x2f5967){const _0x14bc40=a272_0x5494,_0x1cd8bd=_0x15d880();while(!![]){try{const _0x185102=parseInt(_0x14bc40(0x1cd))/0x1+-parseInt(_0x14bc40(0x1da))/0x2*(-parseInt(_0x14bc40(0x1d1))/0x3)+-parseInt(_0x14bc40(0x1d8))/0x4*(-parseInt(_0x14bc40(0x1d7))/0x5)+parseInt(_0x14bc40(0x1d9))/0x6+parseInt(_0x14bc40(0x1cf))/0x7*(-parseInt(_0x14bc40(0x1d2))/0x8)+parseInt(_0x14bc40(0x1db))/0x9+-parseInt(_0x14bc40(0x1d0))/0xa;if(_0x185102===_0x2f5967)break;else _0x1cd8bd['push'](_0x1cd8bd['shift']());}catch(_0x240165){_0x1cd8bd['push'](_0x1cd8bd['shift']());}}}(a272_0x1ada,0xe0192));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';function a272_0x5494(_0x422514,_0x402dac){_0x422514=_0x422514-0x1cd;const _0x1adac8=a272_0x1ada();let _0x5494c9=_0x1adac8[_0x422514];return _0x5494c9;}import{getCliVersion}from'../utils/version.js';function a272_0x1ada(){const _0x3be72d=['35010iGIMCM','380RHWWtc','4513140xFMpVA','29096FUByEv','7400250lbETmK','manual','973375eGIxBK','spanName','54474dMQzlD','34859810BtiXyI','321DSVnJR','376cTmDVf','logData','traceparent','traceName','rabetbase-cli'];a272_0x1ada=function(){return _0x3be72d;};return a272_0x1ada();}const DEFAULT_TRACE_NAME=a272_0x57f1f5(0x1d6);export async function sendCliTraceLog(_0x2c727a){const _0x5a60b8=a272_0x57f1f5;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x2c727a[_0x5a60b8(0x1d5)]??DEFAULT_TRACE_NAME,'version':_0x2c727a['version']??getCliVersion(),'spanName':_0x2c727a[_0x5a60b8(0x1ce)],'eventType':_0x5a60b8(0x1dc),'logData':_0x2c727a[_0x5a60b8(0x1d3)],..._0x2c727a['traceparent']&&{'traceparent':_0x2c727a[_0x5a60b8(0x1d4)]}});}
1
+ function a280_0x3f3e(_0x211906,_0x39bd14){_0x211906=_0x211906-0xfa;const _0x135965=a280_0x1359();let _0x3f3e32=_0x135965[_0x211906];return _0x3f3e32;}(function(_0x2c74ad,_0x59eaff){const _0x314648=a280_0x3f3e,_0x478885=_0x2c74ad();while(!![]){try{const _0x3233e4=-parseInt(_0x314648(0xfb))/0x1*(parseInt(_0x314648(0x103))/0x2)+-parseInt(_0x314648(0xff))/0x3+parseInt(_0x314648(0xfe))/0x4+parseInt(_0x314648(0x106))/0x5+-parseInt(_0x314648(0x100))/0x6+-parseInt(_0x314648(0x102))/0x7+parseInt(_0x314648(0xfa))/0x8;if(_0x3233e4===_0x59eaff)break;else _0x478885['push'](_0x478885['shift']());}catch(_0x390a25){_0x478885['push'](_0x478885['shift']());}}}(a280_0x1359,0x67147));import{sendTraceLog}from'@lovrabet/otel-logger';import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME='rabetbase-cli';export async function sendCliTraceLog(_0x3cb927){const _0x4b1867=a280_0x3f3e;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x3cb927[_0x4b1867(0xfd)]??DEFAULT_TRACE_NAME,'version':_0x3cb927[_0x4b1867(0x105)]??getCliVersion(),'spanName':_0x3cb927[_0x4b1867(0xfc)],'eventType':'manual','logData':_0x3cb927[_0x4b1867(0x101)],..._0x3cb927['traceparent']&&{'traceparent':_0x3cb927[_0x4b1867(0x104)]}});}function a280_0x1359(){const _0x2f7165=['2352260Iushqy','1148259emcSGs','4341378vrEBwc','logData','2201080RoGQxI','1073470TFUHPY','traceparent','version','2927435vpWUeZ','9649232josyvI','1YdFOzs','spanName','traceName'];a280_0x1359=function(){return _0x2f7165;};return a280_0x1359();}
@@ -1 +1 @@
1
- const a273_0x220b25=a273_0xcb85;function a273_0xcb85(_0x335a06,_0x3d0c03){_0x335a06=_0x335a06-0x9c;const _0x16c2cd=a273_0x16c2();let _0xcb85bc=_0x16c2cd[_0x335a06];return _0xcb85bc;}(function(_0xa9f6b8,_0x1dcf9f){const _0x3a3a49=a273_0xcb85,_0x166b02=_0xa9f6b8();while(!![]){try{const _0x7e81ae=-parseInt(_0x3a3a49(0xa8))/0x1*(parseInt(_0x3a3a49(0x9d))/0x2)+parseInt(_0x3a3a49(0x9f))/0x3+-parseInt(_0x3a3a49(0xa3))/0x4+parseInt(_0x3a3a49(0xa7))/0x5+parseInt(_0x3a3a49(0x9e))/0x6+parseInt(_0x3a3a49(0xa1))/0x7+-parseInt(_0x3a3a49(0xa0))/0x8;if(_0x7e81ae===_0x1dcf9f)break;else _0x166b02['push'](_0x166b02['shift']());}catch(_0x17a139){_0x166b02['push'](_0x166b02['shift']());}}}(a273_0x16c2,0x589d2));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a273_0x220b25(0x9c);function a273_0x16c2(){const _0x1b69ab=['2494460cJYkgn','320355gJlusI','platform-issue-log-collect','2GCYyEf','2060892AOsbmu','29100LFIBSS','3856576KIJWBP','4848753wDgIFR','description','1517456XWRkzn','issue.log.collect','sanitize','join'];a273_0x16c2=function(){return _0x1b69ab;};return a273_0x16c2();}export const PLATFORM_ISSUE_SPAN_NAME=a273_0x220b25(0xa4);export async function sendPlatformIssueCollectLog(_0x3d232d){const _0x4f4171=a273_0x220b25;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3d232d['title'],'issue.description':_0x3d232d[_0x4f4171(0xa2)],..._0x3d232d[_0x4f4171(0xa5)]?{'issue.description_original_bytes':_0x3d232d[_0x4f4171(0xa5)]['originalBytes'],'issue.description_truncated':_0x3d232d['sanitize']['truncated'],'issue.description_redactions':_0x3d232d[_0x4f4171(0xa5)]['redactionCount'],'issue.description_redaction_kinds':_0x3d232d['sanitize']['redactionKinds'][_0x4f4171(0xa6)](',')}:{}}});}
1
+ function a281_0x33ee(){const _0x240ee9=['description','truncated','redactionKinds','151449FAfHyA','873624rrbvFM','1453776NBAkgA','7hNYgUo','2008444zLMtFH','title','sanitize','originalBytes','1912230kukWCv','50LOOKCj','1914507yooqOu','platform-issue-log-collect','16pmXmrt','222364MRSeJX'];a281_0x33ee=function(){return _0x240ee9;};return a281_0x33ee();}const a281_0x483359=a281_0x6f91;(function(_0x490b4f,_0x5d9ccf){const _0x5cdfcd=a281_0x6f91,_0x32d5f0=_0x490b4f();while(!![]){try{const _0x1c5684=parseInt(_0x5cdfcd(0xcb))/0x1+parseInt(_0x5cdfcd(0xca))/0x2*(parseInt(_0x5cdfcd(0xcf))/0x3)+-parseInt(_0x5cdfcd(0xd3))/0x4+-parseInt(_0x5cdfcd(0xc6))/0x5+-parseInt(_0x5cdfcd(0xd1))/0x6+parseInt(_0x5cdfcd(0xd2))/0x7*(-parseInt(_0x5cdfcd(0xd0))/0x8)+-parseInt(_0x5cdfcd(0xc8))/0x9*(-parseInt(_0x5cdfcd(0xc7))/0xa);if(_0x1c5684===_0x5d9ccf)break;else _0x32d5f0['push'](_0x32d5f0['shift']());}catch(_0x141219){_0x32d5f0['push'](_0x32d5f0['shift']());}}}(a281_0x33ee,0x6ec9b));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME=a281_0x483359(0xc9);function a281_0x6f91(_0x46fbc8,_0x268c42){_0x46fbc8=_0x46fbc8-0xc3;const _0x33eea6=a281_0x33ee();let _0x6f9138=_0x33eea6[_0x46fbc8];return _0x6f9138;}export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x364507){const _0x5d884a=a281_0x483359;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x364507[_0x5d884a(0xc3)],'issue.description':_0x364507[_0x5d884a(0xcc)],..._0x364507[_0x5d884a(0xc4)]?{'issue.description_original_bytes':_0x364507[_0x5d884a(0xc4)][_0x5d884a(0xc5)],'issue.description_truncated':_0x364507[_0x5d884a(0xc4)][_0x5d884a(0xcd)],'issue.description_redactions':_0x364507['sanitize']['redactionCount'],'issue.description_redaction_kinds':_0x364507['sanitize'][_0x5d884a(0xce)]['join'](',')}:{}}});}
@@ -1 +1 @@
1
- const a275_0x49483d=a275_0x19a0;function a275_0x19a0(_0x137b4,_0x9fe2b7){_0x137b4=_0x137b4-0x92;const _0x38b9e6=a275_0x38b9();let _0x19a06e=_0x38b9e6[_0x137b4];return _0x19a06e;}(function(_0x4e11cd,_0x4cad7c){const _0x43ee04=a275_0x19a0,_0x28468f=_0x4e11cd();while(!![]){try{const _0x4a76fd=-parseInt(_0x43ee04(0xad))/0x1+-parseInt(_0x43ee04(0xb0))/0x2*(parseInt(_0x43ee04(0xbd))/0x3)+-parseInt(_0x43ee04(0x93))/0x4*(-parseInt(_0x43ee04(0xa9))/0x5)+-parseInt(_0x43ee04(0xa7))/0x6*(-parseInt(_0x43ee04(0xc2))/0x7)+-parseInt(_0x43ee04(0x94))/0x8+parseInt(_0x43ee04(0xb3))/0x9*(-parseInt(_0x43ee04(0xb8))/0xa)+-parseInt(_0x43ee04(0x9a))/0xb*(-parseInt(_0x43ee04(0x9e))/0xc);if(_0x4a76fd===_0x4cad7c)break;else _0x28468f['push'](_0x28468f['shift']());}catch(_0x27f378){_0x28468f['push'](_0x28468f['shift']());}}}(a275_0x38b9,0xe6117));export const CORE_IDE_CONFIGS={'cursor':{'name':a275_0x49483d(0xae),'description':a275_0x49483d(0x99),'folders':[a275_0x49483d(0xaa),a275_0x49483d(0xa8)],'files':[{'type':a275_0x49483d(0xc0),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a275_0x49483d(0xb9),'description':a275_0x49483d(0xa5),'folders':['.windsurf'],'files':[{'type':a275_0x49483d(0xc0),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a275_0x49483d(0xa1),'description':a275_0x49483d(0xa1),'folders':[a275_0x49483d(0xc5)],'files':[{'type':'file','path':a275_0x49483d(0xbb)}]},'cline':{'name':'Cline','description':'Cline\x20IDE','folders':['.cline'],'files':[{'type':a275_0x49483d(0xc0),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a275_0x49483d(0xb4),'description':a275_0x49483d(0xa3),'folders':[a275_0x49483d(0x92)],'files':[{'type':a275_0x49483d(0xc0),'path':a275_0x49483d(0xb1)}]},'opencode':{'name':a275_0x49483d(0xac),'description':a275_0x49483d(0xb2),'folders':['.opencode'],'files':[{'type':'file','path':a275_0x49483d(0x95)}]},'qoder':{'name':a275_0x49483d(0xb6),'description':a275_0x49483d(0xc1),'folders':[a275_0x49483d(0x9f)],'files':[{'type':a275_0x49483d(0xc0),'path':a275_0x49483d(0xbe)},{'type':'file','path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':'CodeBuddy','description':a275_0x49483d(0xa2),'folders':['.codebuddy'],'files':[{'type':a275_0x49483d(0xc0),'path':a275_0x49483d(0xc3)}]},'trae':{'name':a275_0x49483d(0xb5),'description':'Trae\x20IDE','folders':[a275_0x49483d(0x96)],'files':[{'type':a275_0x49483d(0xc0),'path':a275_0x49483d(0x9b)}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a275_0x49483d(0xa4),'description':a275_0x49483d(0xaf),'folders':[a275_0x49483d(0x9d)],'files':[{'type':a275_0x49483d(0xc0),'path':a275_0x49483d(0xab)}]},'antigravity':{'name':a275_0x49483d(0xc4),'description':a275_0x49483d(0x97),'folders':[a275_0x49483d(0x9d)],'files':[{'type':a275_0x49483d(0xc0),'path':a275_0x49483d(0xab)}]}};export const CORE_IDE_LIST=[a275_0x49483d(0x9c),a275_0x49483d(0x98),a275_0x49483d(0xba),'codex','cursor',a275_0x49483d(0xb7),'qoder',a275_0x49483d(0xc6),a275_0x49483d(0xa0)];export const IDE_LIST=['antigravity',a275_0x49483d(0x9c),'cline','codebuddy',a275_0x49483d(0xbc),a275_0x49483d(0xbf),a275_0x49483d(0xb7),a275_0x49483d(0xa6),a275_0x49483d(0xc6),a275_0x49483d(0xa0),'agent'];export const ALL_CORE_IDES=[a275_0x49483d(0xbf),a275_0x49483d(0xa0),a275_0x49483d(0x9c),a275_0x49483d(0x98),a275_0x49483d(0xbc),a275_0x49483d(0xb7),'qoder',a275_0x49483d(0xba),a275_0x49483d(0xc6)];function a275_0x38b9(){const _0x56dc92=['.agent/skills/lovrabet/SKILL.md','OpenCode','1223371DHxdcm','Cursor','Generic\x20template\x20fallback','2IxqECn','.codex/skills/lovrabet/SKILL.md','OpenCode\x20IDE','264429nSDZJN','Codex','Trae','Qoder','opencode','270AVmAga','Windsurf','codebuddy','.claude/skills/lovrabet/SKILL.md','codex','1896231coMjGx','.qoder/rules/rabetbase.md','cursor','file','Qoder\x20IDE','31269vhCdUD','.codebuddy/skills/lovrabet/SKILL.md','Antigravity','.claude','trae','.codex','919588tmjLXt','5093880HxNDrr','.opencode/skills/lovrabet/SKILL.md','.trae','Antigravity\x20IDE','cline','Cursor\x20IDE','143GHCcOu','.trae/skills/lovrabet/SKILL.md','claude','.agent','1798332BDJnWy','.qoder','windsurf','Claude\x20Code','CodeBuddy\x20IDE','Codex\x20IDE','Other\x20(generic\x20template)','Windsurf\x20IDE','qoder','1518rdOuDR','.cursor','25tjqfXa','.cursorrules'];a275_0x38b9=function(){return _0x56dc92;};return a275_0x38b9();}
1
+ const a283_0x280965=a283_0x2f8e;(function(_0x5e3f6d,_0x323ef0){const _0x84c1b6=a283_0x2f8e,_0x2526ad=_0x5e3f6d();while(!![]){try{const _0x4daa44=parseInt(_0x84c1b6(0x1ee))/0x1*(parseInt(_0x84c1b6(0x223))/0x2)+parseInt(_0x84c1b6(0x20b))/0x3*(-parseInt(_0x84c1b6(0x1fb))/0x4)+-parseInt(_0x84c1b6(0x1f6))/0x5*(-parseInt(_0x84c1b6(0x204))/0x6)+-parseInt(_0x84c1b6(0x215))/0x7*(parseInt(_0x84c1b6(0x209))/0x8)+parseInt(_0x84c1b6(0x1f8))/0x9*(parseInt(_0x84c1b6(0x1f7))/0xa)+parseInt(_0x84c1b6(0x20d))/0xb+-parseInt(_0x84c1b6(0x211))/0xc;if(_0x4daa44===_0x323ef0)break;else _0x2526ad['push'](_0x2526ad['shift']());}catch(_0x25adfc){_0x2526ad['push'](_0x2526ad['shift']());}}}(a283_0x36ef,0x28ee1));export const CORE_IDE_CONFIGS={'cursor':{'name':a283_0x280965(0x20a),'description':'Cursor\x20IDE','folders':[a283_0x280965(0x224),a283_0x280965(0x20f)],'files':[{'type':a283_0x280965(0x217),'path':'.cursor/skills/rabetbase.md'}]},'windsurf':{'name':a283_0x280965(0x1f3),'description':a283_0x280965(0x216),'folders':[a283_0x280965(0x208)],'files':[{'type':a283_0x280965(0x217),'path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':'Claude\x20Code','description':'Claude\x20Code','folders':[a283_0x280965(0x20c)],'files':[{'type':a283_0x280965(0x217),'path':'.claude/skills/lovrabet/SKILL.md'}]},'cline':{'name':'Cline','description':a283_0x280965(0x214),'folders':[a283_0x280965(0x222)],'files':[{'type':a283_0x280965(0x217),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a283_0x280965(0x200),'description':a283_0x280965(0x1ef),'folders':[a283_0x280965(0x201)],'files':[{'type':a283_0x280965(0x217),'path':a283_0x280965(0x210)}]},'opencode':{'name':a283_0x280965(0x206),'description':a283_0x280965(0x1fc),'folders':[a283_0x280965(0x21d)],'files':[{'type':a283_0x280965(0x217),'path':a283_0x280965(0x207)}]},'qoder':{'name':a283_0x280965(0x202),'description':'Qoder\x20IDE','folders':['.qoder'],'files':[{'type':'file','path':a283_0x280965(0x213)},{'type':'file','path':a283_0x280965(0x1f9)}]},'codebuddy':{'name':a283_0x280965(0x1f0),'description':a283_0x280965(0x21e),'folders':[a283_0x280965(0x1fe)],'files':[{'type':'file','path':a283_0x280965(0x225)}]},'trae':{'name':'Trae','description':a283_0x280965(0x1f4),'folders':['.trae'],'files':[{'type':a283_0x280965(0x217),'path':a283_0x280965(0x203)}]}};function a283_0x36ef(){const _0x11b6af=['claude','.opencode','CodeBuddy\x20IDE','cursor','.agent','Generic\x20template\x20fallback','.cline','262YVmMHo','.cursorrules','.codebuddy/skills/lovrabet/SKILL.md','1723ugiORm','Codex\x20IDE','CodeBuddy','agent','codex','Windsurf','Trae\x20IDE','Antigravity','1575wXIkAH','39150JWHBRS','45mCvNQQ','.qoder/skills/lovrabet/SKILL.md','codebuddy','332SnixOa','OpenCode\x20IDE','Other\x20(generic\x20template)','.codebuddy','.agent/skills/lovrabet/SKILL.md','Codex','.codex','Qoder','.trae/skills/lovrabet/SKILL.md','2100SMznRu','qoder','OpenCode','.opencode/skills/lovrabet/SKILL.md','.windsurf','112eSuOUD','Cursor','1329LUqVqu','.claude','2623181EvNSvz','trae','.cursor','.codex/skills/lovrabet/SKILL.md','4321284BbbbHM','cline','.qoder/rules/rabetbase.md','Cline\x20IDE','14742sTBiem','Windsurf\x20IDE','file','opencode','windsurf','Antigravity\x20IDE','antigravity'];a283_0x36ef=function(){return _0x11b6af;};return a283_0x36ef();}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a283_0x280965(0x1fd),'description':a283_0x280965(0x221),'folders':[a283_0x280965(0x220)],'files':[{'type':a283_0x280965(0x217),'path':a283_0x280965(0x1ff)}]},'antigravity':{'name':a283_0x280965(0x1f5),'description':a283_0x280965(0x21a),'folders':[a283_0x280965(0x220)],'files':[{'type':'file','path':a283_0x280965(0x1ff)}]}};export const CORE_IDE_LIST=['claude',a283_0x280965(0x212),a283_0x280965(0x1fa),a283_0x280965(0x1f2),'cursor',a283_0x280965(0x218),a283_0x280965(0x205),'trae',a283_0x280965(0x219)];export const IDE_LIST=[a283_0x280965(0x21b),a283_0x280965(0x21c),a283_0x280965(0x212),a283_0x280965(0x1fa),a283_0x280965(0x1f2),'cursor',a283_0x280965(0x218),a283_0x280965(0x205),a283_0x280965(0x20e),a283_0x280965(0x219),a283_0x280965(0x1f1)];function a283_0x2f8e(_0x3b1b58,_0x35b0cb){_0x3b1b58=_0x3b1b58-0x1ee;const _0x36efb7=a283_0x36ef();let _0x2f8ec9=_0x36efb7[_0x3b1b58];return _0x2f8ec9;}export const ALL_CORE_IDES=[a283_0x280965(0x21f),'windsurf',a283_0x280965(0x21c),a283_0x280965(0x212),a283_0x280965(0x1f2),a283_0x280965(0x218),a283_0x280965(0x205),a283_0x280965(0x1fa),a283_0x280965(0x20e)];
@@ -1 +1 @@
1
- function a276_0x25a1(_0xd17d53,_0x2a5f87){_0xd17d53=_0xd17d53-0x14a;const _0x59f45b=a276_0x59f4();let _0x25a178=_0x59f45b[_0xd17d53];return _0x25a178;}(function(_0x2a1fed,_0x5a2bbb){const _0x60318d=a276_0x25a1,_0x398afa=_0x2a1fed();while(!![]){try{const _0x10fddc=-parseInt(_0x60318d(0x150))/0x1+parseInt(_0x60318d(0x14a))/0x2*(-parseInt(_0x60318d(0x14e))/0x3)+parseInt(_0x60318d(0x14c))/0x4+parseInt(_0x60318d(0x14b))/0x5+parseInt(_0x60318d(0x14f))/0x6*(parseInt(_0x60318d(0x151))/0x7)+-parseInt(_0x60318d(0x14d))/0x8+-parseInt(_0x60318d(0x152))/0x9;if(_0x10fddc===_0x5a2bbb)break;else _0x398afa['push'](_0x398afa['shift']());}catch(_0x3c6d3b){_0x398afa['push'](_0x398afa['shift']());}}}(a276_0x59f4,0x288f1));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a276_0x59f4(){const _0x5e9214=['554000UHxubf','1174072aYZqjQ','1504392rgiKkt','3KDBxVh','12nEOjFF','56901QTJTpl','816382oUtGWn','1642788jrqMzq','87918mCkLUQ'];a276_0x59f4=function(){return _0x5e9214;};return a276_0x59f4();}
1
+ function a284_0x5de4(_0x3442f4,_0x3130e3){_0x3442f4=_0x3442f4-0x1e6;const _0x27e3c4=a284_0x27e3();let _0x5de41c=_0x27e3c4[_0x3442f4];return _0x5de41c;}function a284_0x27e3(){const _0x41b81d=['3287123WYNaJw','1130000xXDOuK','244725bcBYiK','72830AANSYf','1582144rYMQrv','12165660hLoOhz','60276epQgst','39yLWoFQ','54PIxwZP'];a284_0x27e3=function(){return _0x41b81d;};return a284_0x27e3();}(function(_0x3e21e4,_0x3e7d0c){const _0x21be5a=a284_0x5de4,_0x659195=_0x3e21e4();while(!![]){try{const _0x4f4ac8=-parseInt(_0x21be5a(0x1ed))/0x1+parseInt(_0x21be5a(0x1ea))/0x2*(-parseInt(_0x21be5a(0x1ee))/0x3)+-parseInt(_0x21be5a(0x1eb))/0x4+parseInt(_0x21be5a(0x1e9))/0x5*(parseInt(_0x21be5a(0x1e6))/0x6)+-parseInt(_0x21be5a(0x1e7))/0x7+-parseInt(_0x21be5a(0x1e8))/0x8+parseInt(_0x21be5a(0x1ec))/0x9;if(_0x4f4ac8===_0x3e7d0c)break;else _0x659195['push'](_0x659195['shift']());}catch(_0x46b6c9){_0x659195['push'](_0x659195['shift']());}}}(a284_0x27e3,0x3d927));import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
@@ -1 +1 @@
1
- (function(_0x1d9e74,_0x22f589){const _0x25a38f=a277_0x160c,_0x4c01a8=_0x1d9e74();while(!![]){try{const _0x1d2f94=-parseInt(_0x25a38f(0xa0))/0x1*(parseInt(_0x25a38f(0x9d))/0x2)+-parseInt(_0x25a38f(0x98))/0x3+parseInt(_0x25a38f(0x9f))/0x4*(parseInt(_0x25a38f(0xa2))/0x5)+parseInt(_0x25a38f(0xa1))/0x6*(-parseInt(_0x25a38f(0xa6))/0x7)+-parseInt(_0x25a38f(0xa4))/0x8+-parseInt(_0x25a38f(0x99))/0x9+parseInt(_0x25a38f(0xa3))/0xa*(parseInt(_0x25a38f(0xa7))/0xb);if(_0x1d2f94===_0x22f589)break;else _0x4c01a8['push'](_0x4c01a8['shift']());}catch(_0x42bc92){_0x4c01a8['push'](_0x4c01a8['shift']());}}}(a277_0x5cce,0x8a717));function a277_0x5cce(){const _0x1bfd13=['8409564EyNZxR','node','json','cli','262RorZrx','stableVersion','4yESOOz','519HnlChL','636uMmOsi','5424695vjAIuf','1770lVOhyI','8672064xoralD','/config/index.json','10654vesVLQ','140734yOiEXL','/config.json','1604067TgVHbv'];a277_0x5cce=function(){return _0x1bfd13;};return a277_0x5cce();}import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x2bf95f=a277_0x160c,_0x27aeaf=getTemplateBaseUrl(),_0x1a74c0=[_0x27aeaf+_0x2bf95f(0xa8),_0x27aeaf+_0x2bf95f(0xa5)];for(const _0x2bffb2 of _0x1a74c0){try{const _0x4477a4=await fetch(_0x2bffb2,{'headers':{'Accept':'application/json'}});if(!_0x4477a4['ok'])continue;const _0x15f9c6=await _0x4477a4[_0x2bf95f(0x9b)]();if(!_0x15f9c6[_0x2bf95f(0x9c)]?.[_0x2bf95f(0x9e)]||!_0x15f9c6['sdk']?.[_0x2bf95f(0x9a)]?.[_0x2bf95f(0x9e)])continue;return _0x15f9c6;}catch{}}return null;}function a277_0x160c(_0x3df6e7,_0xa6152){_0x3df6e7=_0x3df6e7-0x98;const _0x5ccecf=a277_0x5cce();let _0x160ceb=_0x5ccecf[_0x3df6e7];return _0x160ceb;}let cachedConfig=null,cacheTime=0x0;const CACHE_TTL=0x5*0x3c*0x3e8,FAILURE_CACHE_TTL=0x3c*0x3e8;let hasCachedConfig=![];export async function getCdnConfig(){const _0x1a5585=Date['now']();if(hasCachedConfig){const _0x447be4=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1a5585-cacheTime<_0x447be4)return cachedConfig;}const _0x47dccb=await fetchCdnConfig();return cachedConfig=_0x47dccb,cacheTime=_0x1a5585,hasCachedConfig=!![],_0x47dccb;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a285_0xf689(){const _0x9352=['/config/index.json','2408153vLdAIS','stableVersion','10LeJkKl','sdk','60DHgNco','application/json','49399nsqtIX','now','json','1015560ezEWIz','1KxWWvC','node','1016682kNFfjE','54xqlxGc','153952wTLqEu','4713397UhMXMc','12hkOifz','/config.json','627465uksifr','186LwXVLq'];a285_0xf689=function(){return _0x9352;};return a285_0xf689();}function a285_0x2645(_0x43f452,_0x3827a3){_0x43f452=_0x43f452-0x8f;const _0xf689a8=a285_0xf689();let _0x2645a1=_0xf689a8[_0x43f452];return _0x2645a1;}(function(_0x37ce9a,_0x38a78a){const _0x3b090a=a285_0x2645,_0x17b366=_0x37ce9a();while(!![]){try{const _0x1978d8=parseInt(_0x3b090a(0x97))/0x1*(-parseInt(_0x3b090a(0x99))/0x2)+parseInt(_0x3b090a(0x9f))/0x3*(-parseInt(_0x3b090a(0x9d))/0x4)+parseInt(_0x3b090a(0x96))/0x5+parseInt(_0x3b090a(0xa0))/0x6*(-parseInt(_0x3b090a(0x93))/0x7)+parseInt(_0x3b090a(0x9b))/0x8*(-parseInt(_0x3b090a(0x9a))/0x9)+-parseInt(_0x3b090a(0x8f))/0xa*(parseInt(_0x3b090a(0xa2))/0xb)+parseInt(_0x3b090a(0x91))/0xc*(parseInt(_0x3b090a(0x9c))/0xd);if(_0x1978d8===_0x38a78a)break;else _0x17b366['push'](_0x17b366['shift']());}catch(_0x5f3220){_0x17b366['push'](_0x17b366['shift']());}}}(a285_0xf689,0x4fd55));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x29f849=a285_0x2645,_0x256745=getTemplateBaseUrl(),_0xc974c0=[_0x256745+_0x29f849(0x9e),_0x256745+_0x29f849(0xa1)];for(const _0x2fe566 of _0xc974c0){try{const _0x2ef787=await fetch(_0x2fe566,{'headers':{'Accept':_0x29f849(0x92)}});if(!_0x2ef787['ok'])continue;const _0x6a9d18=await _0x2ef787[_0x29f849(0x95)]();if(!_0x6a9d18['cli']?.[_0x29f849(0xa3)]||!_0x6a9d18[_0x29f849(0x90)]?.[_0x29f849(0x98)]?.[_0x29f849(0xa3)])continue;return _0x6a9d18;}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 _0x6c2d5c=a285_0x2645,_0x68dc1a=Date[_0x6c2d5c(0x94)]();if(hasCachedConfig){const _0x377e01=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x68dc1a-cacheTime<_0x377e01)return cachedConfig;}const _0x850932=await fetchCdnConfig();return cachedConfig=_0x850932,cacheTime=_0x68dc1a,hasCachedConfig=!![],_0x850932;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- (function(_0x2bccb1,_0x3dd225){const _0x45e175=a278_0x3090,_0x33e87b=_0x2bccb1();while(!![]){try{const _0x59aea5=-parseInt(_0x45e175(0x6b))/0x1+-parseInt(_0x45e175(0x77))/0x2*(parseInt(_0x45e175(0x71))/0x3)+-parseInt(_0x45e175(0x81))/0x4*(-parseInt(_0x45e175(0x83))/0x5)+parseInt(_0x45e175(0x7a))/0x6*(parseInt(_0x45e175(0x73))/0x7)+-parseInt(_0x45e175(0x79))/0x8+-parseInt(_0x45e175(0x6e))/0x9+parseInt(_0x45e175(0x6f))/0xa*(parseInt(_0x45e175(0x7b))/0xb);if(_0x59aea5===_0x3dd225)break;else _0x33e87b['push'](_0x33e87b['shift']());}catch(_0x3fc5ca){_0x33e87b['push'](_0x33e87b['shift']());}}}(a278_0x3178,0x1c28a));import a278_0x3de99b from'node:fs';function a278_0x3178(){const _0x42582e=['28vSMbIW','existsSync','89565tHhPdL','test','npm\x20install\x20','sdk','package.json','join','utf8','node','minVersion','node_modules','version','\x1b[1m','parse','88993AyrOfv','packageName','@lovrabet/sdk','696303kqGbSh','110rUyIYH','needsUpgrade','261591PHoiMI','\x1b[33m','401422NrgDkL','readFileSync','\x20\x20\x20Current\x20version:\x20','\x1b[0m','2GZNqFw','coerce','896528UuUcTZ','12nfVhYN','240878NrsbLJ','log','stableVersion','latest','dependencies','devDependencies'];a278_0x3178=function(){return _0x42582e;};return a278_0x3178();}import a278_0x1d4852 from'node:path';import a278_0x51debd from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x73de10){const _0x279dc5=a278_0x3090,_0x25de24=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x25de24['some'](_0x42c3bc=>_0x42c3bc[_0x279dc5(0x84)](_0x73de10));}function getInstalledVersion(_0x3d21f3,_0x8a6a91){const _0x2d25d3=a278_0x3090;try{const _0x32f9ac=a278_0x1d4852[_0x2d25d3(0x88)](_0x3d21f3,_0x2d25d3(0x8c),_0x8a6a91,_0x2d25d3(0x87));if(a278_0x3de99b[_0x2d25d3(0x82)](_0x32f9ac)){const _0x11fc35=JSON[_0x2d25d3(0x6a)](a278_0x3de99b[_0x2d25d3(0x74)](_0x32f9ac,'utf-8'));return _0x11fc35[_0x2d25d3(0x68)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x36692d=a278_0x3090;try{const _0x33b993=await getCdnConfig();return _0x33b993?.[_0x36692d(0x86)]?.[_0x36692d(0x8a)]?.['stableVersion']||null;}catch{return null;}}function a278_0x3090(_0x3c119e,_0xe0f2d8){_0x3c119e=_0x3c119e-0x68;const _0x317866=a278_0x3178();let _0x3090de=_0x317866[_0x3c119e];return _0x3090de;}async function getSdkPackageName(){const _0x40abde=a278_0x3090;try{const _0x274df1=await getCdnConfig();return _0x274df1?.[_0x40abde(0x86)]?.[_0x40abde(0x8a)]?.[_0x40abde(0x6c)]||_0x40abde(0x6d);}catch{return _0x40abde(0x6d);}}export async function checkSdkVersion(_0x37ce32){const _0x399695=a278_0x3090,_0xf2650a=a278_0x1d4852[_0x399695(0x88)](_0x37ce32,_0x399695(0x87)),[_0x3ca402,_0x440090]=await Promise['all']([getSdkStableVersion(),getSdkPackageName()]),_0x56fa36=_0x3ca402||FALLBACK_MIN_SDK_VERSION;if(!a278_0x3de99b[_0x399695(0x82)](_0xf2650a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56fa36,'packageName':_0x440090,'stableVersion':_0x3ca402};try{const _0x3c3e79=JSON[_0x399695(0x6a)](a278_0x3de99b[_0x399695(0x74)](_0xf2650a,_0x399695(0x89))),_0x37210f=_0x3c3e79[_0x399695(0x7f)]||{},_0x1ffe75=_0x3c3e79[_0x399695(0x80)]||{},_0x55612d=_0x37210f[_0x440090]||_0x1ffe75[_0x440090];if(!_0x55612d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56fa36,'packageName':_0x440090,'stableVersion':_0x3ca402};let _0x3e3d7c=getInstalledVersion(_0x37ce32,_0x440090);!_0x3e3d7c&&(_0x3e3d7c=_0x55612d);if(isNonNumericVersion(_0x55612d))return{'installed':!![],'version':_0x3e3d7c,'needsUpgrade':![],'minVersion':_0x56fa36,'packageName':_0x440090,'stableVersion':_0x3ca402};const _0x5a9031=a278_0x51debd['coerce'](_0x3e3d7c),_0x228171=a278_0x51debd[_0x399695(0x78)](_0x56fa36),_0x20dfd0=_0x5a9031&&_0x228171?a278_0x51debd['lt'](_0x5a9031,_0x228171):![];return{'installed':!![],'version':_0x3e3d7c,'needsUpgrade':_0x20dfd0,'minVersion':_0x56fa36,'packageName':_0x440090,'stableVersion':_0x3ca402};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x56fa36,'packageName':_0x440090,'stableVersion':_0x3ca402};}}export function checkSdkVersionSync(_0x1cf29b){const _0x3abc82=a278_0x3090,_0x279b91=a278_0x1d4852[_0x3abc82(0x88)](_0x1cf29b,_0x3abc82(0x87)),_0x1f71e3='@lovrabet/sdk';if(!a278_0x3de99b['existsSync'](_0x279b91))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f71e3,'stableVersion':null};try{const _0x504d48=JSON[_0x3abc82(0x6a)](a278_0x3de99b['readFileSync'](_0x279b91,_0x3abc82(0x89))),_0x2a855e=_0x504d48[_0x3abc82(0x7f)]||{},_0x9fc7c3=_0x504d48[_0x3abc82(0x80)]||{},_0x32e48e=_0x2a855e[_0x1f71e3]||_0x9fc7c3[_0x1f71e3];if(!_0x32e48e)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f71e3,'stableVersion':null};let _0x450a07=getInstalledVersion(_0x1cf29b,_0x1f71e3);!_0x450a07&&(_0x450a07=_0x32e48e);if(isNonNumericVersion(_0x32e48e))return{'installed':!![],'version':_0x450a07,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f71e3,'stableVersion':null};const _0x4e7589=a278_0x51debd[_0x3abc82(0x78)](_0x450a07),_0x459c4a=_0x4e7589?a278_0x51debd['lt'](_0x4e7589,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x450a07,'needsUpgrade':_0x459c4a,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f71e3,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x1f71e3,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x1684ce){const _0x5de47f=a278_0x3090;if(!_0x1684ce[_0x5de47f(0x70)])return;const _0x1627e5=_0x5de47f(0x72),_0x433418=_0x5de47f(0x76),_0x298dd9=_0x5de47f(0x69),_0x304e06=_0x1684ce[_0x5de47f(0x6c)]||'@lovrabet/sdk',_0x5906bf=_0x1684ce[_0x5de47f(0x7d)]||_0x1684ce[_0x5de47f(0x8b)],_0x8a2f9f=_0x5de47f(0x85)+_0x304e06+'@'+(_0x5906bf||_0x5de47f(0x7e));console[_0x5de47f(0x7c)](),console[_0x5de47f(0x7c)](''+_0x1627e5+_0x298dd9+'↪\x20SDK\x20update\x20available'+_0x433418),console[_0x5de47f(0x7c)](_0x1627e5+_0x5de47f(0x75)+_0x304e06+'@'+_0x1684ce[_0x5de47f(0x68)]+_0x433418),console[_0x5de47f(0x7c)](_0x1627e5+'\x20\x20\x20Stable\x20version:\x20'+_0x5906bf+_0x433418),console[_0x5de47f(0x7c)](_0x1627e5+'\x20\x20\x20Upgrade\x20command:\x20'+_0x8a2f9f+_0x433418),console[_0x5de47f(0x7c)]();}
1
+ const a286_0x236139=a286_0x4711;(function(_0x4a248a,_0x4cff42){const _0x32c5de=a286_0x4711,_0x3d9ed2=_0x4a248a();while(!![]){try{const _0x5d6dca=-parseInt(_0x32c5de(0x8a))/0x1+-parseInt(_0x32c5de(0x70))/0x2*(-parseInt(_0x32c5de(0x69))/0x3)+-parseInt(_0x32c5de(0x82))/0x4+-parseInt(_0x32c5de(0x7d))/0x5+-parseInt(_0x32c5de(0x68))/0x6+-parseInt(_0x32c5de(0x6e))/0x7*(-parseInt(_0x32c5de(0x6b))/0x8)+-parseInt(_0x32c5de(0x65))/0x9*(-parseInt(_0x32c5de(0x75))/0xa);if(_0x5d6dca===_0x4cff42)break;else _0x3d9ed2['push'](_0x3d9ed2['shift']());}catch(_0x30d7d3){_0x3d9ed2['push'](_0x3d9ed2['shift']());}}}(a286_0x1d18,0x96d09));import a286_0x3db318 from'node:fs';import a286_0x4f8731 from'node:path';import a286_0x410705 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a286_0x236139(0x7f);function isNonNumericVersion(_0x15a791){const _0x421698=a286_0x236139,_0x11f009=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x11f009[_0x421698(0x83)](_0x4d5fd4=>_0x4d5fd4[_0x421698(0x79)](_0x15a791));}function getInstalledVersion(_0x24ad48,_0x1bef4f){const _0x2f5a3d=a286_0x236139;try{const _0x9d52ed=a286_0x4f8731['join'](_0x24ad48,'node_modules',_0x1bef4f,'package.json');if(a286_0x3db318[_0x2f5a3d(0x87)](_0x9d52ed)){const _0x18185f=JSON['parse'](a286_0x3db318[_0x2f5a3d(0x80)](_0x9d52ed,_0x2f5a3d(0x7c)));return _0x18185f[_0x2f5a3d(0x81)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x27f25c=a286_0x236139;try{const _0x59df5f=await getCdnConfig();return _0x59df5f?.[_0x27f25c(0x6f)]?.[_0x27f25c(0x64)]?.[_0x27f25c(0x6c)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x441c62=a286_0x236139;try{const _0x4b04ee=await getCdnConfig();return _0x4b04ee?.[_0x441c62(0x6f)]?.['node']?.[_0x441c62(0x7a)]||_0x441c62(0x76);}catch{return'@lovrabet/sdk';}}function a286_0x1d18(){const _0x1daf56=['6006525glWVcr','\x20\x20\x20Upgrade\x20command:\x20','1.2.0','readFileSync','version','2489716pQcSfR','some','all','join','\x1b[0m','existsSync','devDependencies','log','869029PKgJCD','node','234xrIDzE','utf8','parse','4944426GKgvxY','3VdWVpn','\x1b[33m','1118864aNwzEl','stableVersion','\x20\x20\x20Current\x20version:\x20','14bOGSLV','sdk','30662HfdUZU','minVersion','npm\x20install\x20','package.json','dependencies','1476740VKHuGC','@lovrabet/sdk','needsUpgrade','↪\x20SDK\x20update\x20available','test','packageName','coerce','utf-8'];a286_0x1d18=function(){return _0x1daf56;};return a286_0x1d18();}export async function checkSdkVersion(_0x28d6b1){const _0x4c7b46=a286_0x236139,_0x1b1d72=a286_0x4f8731[_0x4c7b46(0x85)](_0x28d6b1,_0x4c7b46(0x73)),[_0x2e91ae,_0x275591]=await Promise[_0x4c7b46(0x84)]([getSdkStableVersion(),getSdkPackageName()]),_0x4dc05f=_0x2e91ae||FALLBACK_MIN_SDK_VERSION;if(!a286_0x3db318[_0x4c7b46(0x87)](_0x1b1d72))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4dc05f,'packageName':_0x275591,'stableVersion':_0x2e91ae};try{const _0x4aa8d2=JSON[_0x4c7b46(0x67)](a286_0x3db318['readFileSync'](_0x1b1d72,_0x4c7b46(0x66))),_0x5244a8=_0x4aa8d2['dependencies']||{},_0x2e4532=_0x4aa8d2[_0x4c7b46(0x88)]||{},_0x3bc1bb=_0x5244a8[_0x275591]||_0x2e4532[_0x275591];if(!_0x3bc1bb)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4dc05f,'packageName':_0x275591,'stableVersion':_0x2e91ae};let _0x5f3362=getInstalledVersion(_0x28d6b1,_0x275591);!_0x5f3362&&(_0x5f3362=_0x3bc1bb);if(isNonNumericVersion(_0x3bc1bb))return{'installed':!![],'version':_0x5f3362,'needsUpgrade':![],'minVersion':_0x4dc05f,'packageName':_0x275591,'stableVersion':_0x2e91ae};const _0x4ca9a3=a286_0x410705[_0x4c7b46(0x7b)](_0x5f3362),_0xbac47e=a286_0x410705[_0x4c7b46(0x7b)](_0x4dc05f),_0x3d2a38=_0x4ca9a3&&_0xbac47e?a286_0x410705['lt'](_0x4ca9a3,_0xbac47e):![];return{'installed':!![],'version':_0x5f3362,'needsUpgrade':_0x3d2a38,'minVersion':_0x4dc05f,'packageName':_0x275591,'stableVersion':_0x2e91ae};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x4dc05f,'packageName':_0x275591,'stableVersion':_0x2e91ae};}}function a286_0x4711(_0x569b7a,_0x40d239){_0x569b7a=_0x569b7a-0x64;const _0x1d1877=a286_0x1d18();let _0x471184=_0x1d1877[_0x569b7a];return _0x471184;}export function checkSdkVersionSync(_0x373f10){const _0x32d85c=a286_0x236139,_0x4fe93b=a286_0x4f8731[_0x32d85c(0x85)](_0x373f10,_0x32d85c(0x73)),_0x19f055='@lovrabet/sdk';if(!a286_0x3db318[_0x32d85c(0x87)](_0x4fe93b))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19f055,'stableVersion':null};try{const _0x3bedae=JSON[_0x32d85c(0x67)](a286_0x3db318[_0x32d85c(0x80)](_0x4fe93b,_0x32d85c(0x66))),_0x12a76b=_0x3bedae[_0x32d85c(0x74)]||{},_0x1a4f32=_0x3bedae['devDependencies']||{},_0xaca62d=_0x12a76b[_0x19f055]||_0x1a4f32[_0x19f055];if(!_0xaca62d)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19f055,'stableVersion':null};let _0x16a45e=getInstalledVersion(_0x373f10,_0x19f055);!_0x16a45e&&(_0x16a45e=_0xaca62d);if(isNonNumericVersion(_0xaca62d))return{'installed':!![],'version':_0x16a45e,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19f055,'stableVersion':null};const _0xe7cd33=a286_0x410705['coerce'](_0x16a45e),_0x2b1118=_0xe7cd33?a286_0x410705['lt'](_0xe7cd33,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x16a45e,'needsUpgrade':_0x2b1118,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19f055,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x19f055,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x4aaa93){const _0x215fa7=a286_0x236139;if(!_0x4aaa93[_0x215fa7(0x77)])return;const _0x53c58f=_0x215fa7(0x6a),_0x448ad5=_0x215fa7(0x86),_0x1c022b='\x1b[1m',_0x4814d2=_0x4aaa93['packageName']||'@lovrabet/sdk',_0x3b9a9e=_0x4aaa93[_0x215fa7(0x6c)]||_0x4aaa93[_0x215fa7(0x71)],_0x4d25c5=_0x215fa7(0x72)+_0x4814d2+'@'+(_0x3b9a9e||'latest');console[_0x215fa7(0x89)](),console['log'](''+_0x53c58f+_0x1c022b+_0x215fa7(0x78)+_0x448ad5),console[_0x215fa7(0x89)](_0x53c58f+_0x215fa7(0x6d)+_0x4814d2+'@'+_0x4aaa93[_0x215fa7(0x81)]+_0x448ad5),console[_0x215fa7(0x89)](_0x53c58f+'\x20\x20\x20Stable\x20version:\x20'+_0x3b9a9e+_0x448ad5),console[_0x215fa7(0x89)](_0x53c58f+_0x215fa7(0x7e)+_0x4d25c5+_0x448ad5),console[_0x215fa7(0x89)]();}
@@ -1 +1 @@
1
- (function(_0x2d8f7c,_0x312a1c){const _0x31d087=a279_0x10b6,_0x3628f6=_0x2d8f7c();while(!![]){try{const _0x3e1ee5=parseInt(_0x31d087(0x1e4))/0x1+-parseInt(_0x31d087(0x1e2))/0x2*(parseInt(_0x31d087(0x1cf))/0x3)+-parseInt(_0x31d087(0x1d4))/0x4*(-parseInt(_0x31d087(0x1db))/0x5)+-parseInt(_0x31d087(0x1ea))/0x6+parseInt(_0x31d087(0x1d0))/0x7+parseInt(_0x31d087(0x1e9))/0x8*(parseInt(_0x31d087(0x1dc))/0x9)+-parseInt(_0x31d087(0x1e5))/0xa;if(_0x3e1ee5===_0x312a1c)break;else _0x3628f6['push'](_0x3628f6['shift']());}catch(_0x52eb28){_0x3628f6['push'](_0x3628f6['shift']());}}}(a279_0x3a59,0x292f7));function a279_0x10b6(_0x5a39ed,_0x3242e7){_0x5a39ed=_0x5a39ed-0x1c9;const _0x3a5931=a279_0x3a59();let _0x10b6cd=_0x3a5931[_0x5a39ed];return _0x10b6cd;}import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a279_0xa930b9 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(_0x517a60){const _0x50b803=a279_0x10b6,_0xb7ff45=_0x517a60[_0x50b803(0x1d8)]||_0x50b803(0x1ce);return _0x50b803(0x1ca)+NPM_PACKAGE_NAME+'@'+_0xb7ff45;}function getCurrentCliVersion(){const _0x5c840e=a279_0x10b6;try{const _0x184b06=fileURLToPath(import.meta.url),_0x255219=resolve(dirname(_0x184b06),_0x5c840e(0x1d3)),_0x3ce394=resolve(_0x255219,'package.json'),_0x26a6eb=JSON[_0x5c840e(0x1ed)](readFileSync(_0x3ce394,_0x5c840e(0x1df)));return _0x26a6eb[_0x5c840e(0x1d2)]||'1.0.0';}catch{return'1.0.0';}}export async function checkCliVersion(){const _0x51fd64=a279_0x10b6,_0xb8cae3=getCurrentCliVersion(),_0x678a4=await getCliVersionPolicy(),_0x5d6650=_0x678a4?.[_0x51fd64(0x1d8)]||null,_0x2c1f42=_0x678a4?.[_0x51fd64(0x1d1)]||null;let _0x2f7090=![],_0x5cf742=![];const _0x616d5=a279_0xa930b9[_0x51fd64(0x1d6)](_0xb8cae3);if(_0x616d5&&_0x5d6650)try{const _0x59bf8e=a279_0xa930b9[_0x51fd64(0x1d6)](_0x5d6650);if(_0x59bf8e)_0x2f7090=a279_0xa930b9['lt'](_0x616d5,_0x59bf8e);}catch{}if(_0x616d5&&_0x2c1f42)try{const _0x56cda4=a279_0xa930b9[_0x51fd64(0x1d6)](_0x2c1f42);if(_0x56cda4)_0x5cf742=a279_0xa930b9['lt'](_0x616d5,_0x56cda4);}catch{}return _0x5cf742&&(_0x2f7090=!![]),{'currentVersion':_0xb8cae3,'stableVersion':_0x5d6650,'minimumVersion':_0x2c1f42,'needsUpgrade':_0x2f7090,'belowMinimum':_0x5cf742,'isPreRelease':![],'upgradeMessage':_0x678a4?.['upgradeMessage'],'minimumVersionMessage':_0x678a4?.[_0x51fd64(0x1dd)]};}function a279_0x3a59(){const _0x455fe7=['↪\x20Critical\x20CLI\x20upgrade\x20required','350672dqdyWy','147630pNXdBt','\x20\x20\x20Minimum\x20supported:\x20','↪\x20New\x20version\x20available','parse','filter','\x1b[1m','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','Upgrade\x20command:\x20','npm\x20install\x20-g\x20','log','\x20\x20\x20Stable\x20version:\x20','\x1b[31m','latest','3yIzKxQ','982975yAfxfK','minimumVersion','version','../..','4yKCgBT','Current\x20version:\x20','coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','stableVersion','belowMinimum','Minimum\x20supported:\x20','1016335cRTIKq','9rVcLMX','minimumVersionMessage','\x20\x20\x20','utf-8','currentVersion','\x20\x20\x20Recommended\x20stable:\x20','346386bpMvod','\x1b[33m','200386zHnexm','2214190fOKJLc','\x20\x20\x20Upgrade\x20command:\x20','join'];a279_0x3a59=function(){return _0x455fe7;};return a279_0x3a59();}export function printCliUpgradeWarning(_0x4d892e){const _0x5d3505=a279_0x10b6;if(!_0x4d892e['needsUpgrade']&&!_0x4d892e[_0x5d3505(0x1d9)])return;const _0x56e7a6=_0x5d3505(0x1cd),_0x6852e=_0x5d3505(0x1e3),_0x39e2f4='\x1b[0m',_0x183434=_0x5d3505(0x1ef),_0x23e37c=getCliUpgradeCommand(_0x4d892e);console[_0x5d3505(0x1cb)](),_0x4d892e[_0x5d3505(0x1d9)]?(console['log'](''+_0x56e7a6+_0x183434+_0x5d3505(0x1e8)+_0x39e2f4),console[_0x5d3505(0x1cb)](_0x56e7a6+_0x5d3505(0x1d7)+_0x4d892e[_0x5d3505(0x1e0)]+_0x39e2f4),_0x4d892e[_0x5d3505(0x1d1)]&&console[_0x5d3505(0x1cb)](_0x56e7a6+_0x5d3505(0x1eb)+_0x4d892e[_0x5d3505(0x1d1)]+_0x39e2f4),_0x4d892e[_0x5d3505(0x1d8)]&&_0x4d892e[_0x5d3505(0x1d8)]!==_0x4d892e[_0x5d3505(0x1d1)]&&console[_0x5d3505(0x1cb)](_0x56e7a6+_0x5d3505(0x1e1)+_0x4d892e[_0x5d3505(0x1d8)]+_0x39e2f4),_0x4d892e[_0x5d3505(0x1dd)]&&console[_0x5d3505(0x1cb)](_0x56e7a6+_0x5d3505(0x1de)+_0x4d892e['minimumVersionMessage']+_0x39e2f4),console[_0x5d3505(0x1cb)](_0x56e7a6+_0x5d3505(0x1e6)+_0x23e37c+_0x39e2f4)):(console[_0x5d3505(0x1cb)](''+_0x6852e+_0x183434+_0x5d3505(0x1ec)+_0x39e2f4),console[_0x5d3505(0x1cb)](_0x6852e+_0x5d3505(0x1d7)+_0x4d892e[_0x5d3505(0x1e0)]+_0x39e2f4),console[_0x5d3505(0x1cb)](_0x6852e+_0x5d3505(0x1cc)+_0x4d892e[_0x5d3505(0x1d8)]+_0x39e2f4),_0x4d892e['upgradeMessage']&&console[_0x5d3505(0x1cb)](_0x6852e+_0x5d3505(0x1de)+_0x4d892e['upgradeMessage']+_0x39e2f4),console[_0x5d3505(0x1cb)](_0x6852e+_0x5d3505(0x1e6)+_0x23e37c+_0x39e2f4)),console[_0x5d3505(0x1cb)]();}export function assertCliVersionSupported(_0x4eb94c){const _0x535381=a279_0x10b6;if(!_0x4eb94c[_0x535381(0x1d9)])return;const _0x2d65a1=[_0x4eb94c['minimumVersionMessage'],_0x535381(0x1d5)+_0x4eb94c[_0x535381(0x1e0)],_0x4eb94c[_0x535381(0x1d1)]?_0x535381(0x1da)+_0x4eb94c[_0x535381(0x1d1)]:null,_0x535381(0x1c9)+getCliUpgradeCommand(_0x4eb94c)][_0x535381(0x1ee)](Boolean)[_0x535381(0x1e7)]('\x0a');throw CliErrors['validation'](_0x535381(0x1f0),_0x2d65a1);}
1
+ (function(_0x33947e,_0x2bd102){const _0x3b5556=a287_0x1ffb,_0x137da8=_0x33947e();while(!![]){try{const _0x2a1f23=parseInt(_0x3b5556(0x155))/0x1*(parseInt(_0x3b5556(0x16c))/0x2)+-parseInt(_0x3b5556(0x15a))/0x3+parseInt(_0x3b5556(0x152))/0x4*(parseInt(_0x3b5556(0x162))/0x5)+-parseInt(_0x3b5556(0x164))/0x6+parseInt(_0x3b5556(0x159))/0x7+parseInt(_0x3b5556(0x16a))/0x8*(-parseInt(_0x3b5556(0x14b))/0x9)+parseInt(_0x3b5556(0x15d))/0xa*(parseInt(_0x3b5556(0x160))/0xb);if(_0x2a1f23===_0x2bd102)break;else _0x137da8['push'](_0x137da8['shift']());}catch(_0x40b92f){_0x137da8['push'](_0x137da8['shift']());}}}(a287_0x26f5,0x8c5db));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a287_0x1ffb(_0x4e3f55,_0x14043a){_0x4e3f55=_0x4e3f55-0x149;const _0x26f523=a287_0x26f5();let _0x1ffb06=_0x26f523[_0x4e3f55];return _0x1ffb06;}import a287_0x2cd6aa 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(_0x26b200){const _0x2abdbf=a287_0x1ffb,_0x207383=_0x26b200['stableVersion']||_0x2abdbf(0x14f);return _0x2abdbf(0x161)+NPM_PACKAGE_NAME+'@'+_0x207383;}function getCurrentCliVersion(){const _0x15e434=a287_0x1ffb;try{const _0x4f2525=fileURLToPath(import.meta.url),_0x51b8e7=resolve(dirname(_0x4f2525),_0x15e434(0x169)),_0x5f47f4=resolve(_0x51b8e7,_0x15e434(0x156)),_0xbbdbe9=JSON[_0x15e434(0x16f)](readFileSync(_0x5f47f4,_0x15e434(0x16b)));return _0xbbdbe9['version']||_0x15e434(0x16d);}catch{return _0x15e434(0x16d);}}export async function checkCliVersion(){const _0x585074=a287_0x1ffb,_0x128b20=getCurrentCliVersion(),_0x4ff768=await getCliVersionPolicy(),_0x55cc2e=_0x4ff768?.[_0x585074(0x15f)]||null,_0x42f843=_0x4ff768?.[_0x585074(0x15e)]||null;let _0x5620ed=![],_0x3a493f=![];const _0x26c693=a287_0x2cd6aa[_0x585074(0x158)](_0x128b20);if(_0x26c693&&_0x55cc2e)try{const _0x4203f1=a287_0x2cd6aa[_0x585074(0x158)](_0x55cc2e);if(_0x4203f1)_0x5620ed=a287_0x2cd6aa['lt'](_0x26c693,_0x4203f1);}catch{}if(_0x26c693&&_0x42f843)try{const _0x35c63a=a287_0x2cd6aa[_0x585074(0x158)](_0x42f843);if(_0x35c63a)_0x3a493f=a287_0x2cd6aa['lt'](_0x26c693,_0x35c63a);}catch{}return _0x3a493f&&(_0x5620ed=!![]),{'currentVersion':_0x128b20,'stableVersion':_0x55cc2e,'minimumVersion':_0x42f843,'needsUpgrade':_0x5620ed,'belowMinimum':_0x3a493f,'isPreRelease':![],'upgradeMessage':_0x4ff768?.[_0x585074(0x153)],'minimumVersionMessage':_0x4ff768?.[_0x585074(0x170)]};}function a287_0x26f5(){const _0x4c388a=['\x20\x20\x20Minimum\x20supported:\x20','18rAiYFR','Current\x20version:\x20','\x1b[33m','\x1b[1m','latest','belowMinimum','log','3230300LyvEpj','upgradeMessage','\x20\x20\x20Current\x20CLI\x20version:\x20','2488FPcefe','package.json','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','coerce','3818850FTAwWw','1724952jUwBTr','Minimum\x20supported:\x20','\x20\x20\x20Upgrade\x20command:\x20','130fLOVFS','minimumVersion','stableVersion','464530MNoJEw','npm\x20install\x20-g\x20','5ekbHlq','currentVersion','1040676ydQULF','filter','\x20\x20\x20','\x1b[31m','↪\x20New\x20version\x20available','../..','2742920MSxicI','utf-8','86prRfox','1.0.0','Upgrade\x20command:\x20','parse','minimumVersionMessage','join'];a287_0x26f5=function(){return _0x4c388a;};return a287_0x26f5();}export function printCliUpgradeWarning(_0x42f9df){const _0x4aa499=a287_0x1ffb;if(!_0x42f9df['needsUpgrade']&&!_0x42f9df[_0x4aa499(0x150)])return;const _0x6929ca=_0x4aa499(0x167),_0x4841f6=_0x4aa499(0x14d),_0x3bd84f='\x1b[0m',_0x590d95=_0x4aa499(0x14e),_0x29015c=getCliUpgradeCommand(_0x42f9df);console[_0x4aa499(0x151)](),_0x42f9df[_0x4aa499(0x150)]?(console[_0x4aa499(0x151)](''+_0x6929ca+_0x590d95+'↪\x20Critical\x20CLI\x20upgrade\x20required'+_0x3bd84f),console['log'](_0x6929ca+_0x4aa499(0x154)+_0x42f9df[_0x4aa499(0x163)]+_0x3bd84f),_0x42f9df[_0x4aa499(0x15e)]&&console['log'](_0x6929ca+_0x4aa499(0x14a)+_0x42f9df[_0x4aa499(0x15e)]+_0x3bd84f),_0x42f9df[_0x4aa499(0x15f)]&&_0x42f9df[_0x4aa499(0x15f)]!==_0x42f9df[_0x4aa499(0x15e)]&&console[_0x4aa499(0x151)](_0x6929ca+'\x20\x20\x20Recommended\x20stable:\x20'+_0x42f9df[_0x4aa499(0x15f)]+_0x3bd84f),_0x42f9df[_0x4aa499(0x170)]&&console[_0x4aa499(0x151)](_0x6929ca+_0x4aa499(0x166)+_0x42f9df[_0x4aa499(0x170)]+_0x3bd84f),console[_0x4aa499(0x151)](_0x6929ca+_0x4aa499(0x15c)+_0x29015c+_0x3bd84f)):(console[_0x4aa499(0x151)](''+_0x4841f6+_0x590d95+_0x4aa499(0x168)+_0x3bd84f),console['log'](_0x4841f6+_0x4aa499(0x154)+_0x42f9df[_0x4aa499(0x163)]+_0x3bd84f),console['log'](_0x4841f6+'\x20\x20\x20Stable\x20version:\x20'+_0x42f9df[_0x4aa499(0x15f)]+_0x3bd84f),_0x42f9df[_0x4aa499(0x153)]&&console[_0x4aa499(0x151)](_0x4841f6+_0x4aa499(0x166)+_0x42f9df['upgradeMessage']+_0x3bd84f),console[_0x4aa499(0x151)](_0x4841f6+_0x4aa499(0x15c)+_0x29015c+_0x3bd84f)),console['log']();}export function assertCliVersionSupported(_0x21e3d8){const _0x2dfe0b=a287_0x1ffb;if(!_0x21e3d8[_0x2dfe0b(0x150)])return;const _0x44d775=[_0x21e3d8[_0x2dfe0b(0x170)],_0x2dfe0b(0x14c)+_0x21e3d8[_0x2dfe0b(0x163)],_0x21e3d8[_0x2dfe0b(0x15e)]?_0x2dfe0b(0x15b)+_0x21e3d8[_0x2dfe0b(0x15e)]:null,_0x2dfe0b(0x16e)+getCliUpgradeCommand(_0x21e3d8)][_0x2dfe0b(0x165)](Boolean)[_0x2dfe0b(0x149)]('\x0a');throw CliErrors['validation'](_0x2dfe0b(0x157),_0x44d775);}
@@ -1 +1 @@
1
- (function(_0x449d7d,_0xaa680a){const _0x36a100=a280_0x17b0,_0x47bb5e=_0x449d7d();while(!![]){try{const _0x5305af=-parseInt(_0x36a100(0xb1))/0x1+-parseInt(_0x36a100(0xae))/0x2+parseInt(_0x36a100(0xbd))/0x3+-parseInt(_0x36a100(0xc0))/0x4+-parseInt(_0x36a100(0xb0))/0x5*(-parseInt(_0x36a100(0xb2))/0x6)+-parseInt(_0x36a100(0xb9))/0x7+parseInt(_0x36a100(0xb5))/0x8;if(_0x5305af===_0xaa680a)break;else _0x47bb5e['push'](_0x47bb5e['shift']());}catch(_0x228403){_0x47bb5e['push'](_0x47bb5e['shift']());}}}(a280_0x2fb6,0x98463));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(_0x52b0ee){const _0x12c503=a280_0x17b0;return typeof _0x52b0ee==='string'&&_0x52b0ee[_0x12c503(0xbe)]()['length']>0x0?_0x52b0ee['trim']():null;}function normalizeCliVersionPolicy(_0x1fa5bc){const _0x19d3df=a280_0x17b0;if(!_0x1fa5bc||typeof _0x1fa5bc!==_0x19d3df(0xc2))return null;const _0x2af92f=_0x1fa5bc,_0x2a6e38=_0x2af92f[_0x19d3df(0xb3)]&&typeof _0x2af92f[_0x19d3df(0xb3)]===_0x19d3df(0xc2)?_0x2af92f[_0x19d3df(0xb3)]:_0x2af92f,_0xa31b35=pickString(_0x2a6e38[_0x19d3df(0xc4)])||pickString(_0x2a6e38[_0x19d3df(0xc3)])||pickString(_0x2a6e38[_0x19d3df(0xb6)]),_0x35af43=pickString(_0x2a6e38[_0x19d3df(0xc1)])||pickString(_0x2a6e38[_0x19d3df(0xbc)]);if(!_0xa31b35&&!_0x35af43)return null;return{'stableVersion':_0xa31b35,'minimumVersion':_0x35af43,'upgradeMessage':pickString(_0x2a6e38[_0x19d3df(0xba)])||undefined,'minimumVersionMessage':pickString(_0x2a6e38[_0x19d3df(0xb4)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x58d43d=a280_0x17b0,_0x640abb=new AbortController(),_0x54eab8=setTimeout(()=>_0x640abb[_0x58d43d(0xbb)](),FETCH_TIMEOUT_MS);try{const _0x2e37c6=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x58d43d(0xb8)},'signal':_0x640abb[_0x58d43d(0xbf)]});if(!_0x2e37c6['ok'])return null;const _0x9612bb=await _0x2e37c6[_0x58d43d(0xb7)]();return _0x9612bb&&typeof _0x9612bb===_0x58d43d(0xc2)?_0x9612bb:null;}catch{return null;}finally{clearTimeout(_0x54eab8);}}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x1c4ea4=a280_0x17b0,_0x5c04b9=Date[_0x1c4ea4(0xaf)]();if(hasCachedConfig){const _0x3f9551=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x5c04b9-cacheTime<_0x3f9551)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x5c04b9,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}function a280_0x2fb6(){const _0x400604=['now','2795FJKMEl','264018lEswYj','2892afEODd','cli','minimumVersionMessage','17176528kcNTxA','recommendedVersion','json','application/json','6135752JZmxfE','upgradeMessage','abort','minVersion','1025127CfFSKN','trim','signal','3883860rksLao','minimumVersion','object','latestVersion','stableVersion','45958gBumDc'];a280_0x2fb6=function(){return _0x400604;};return a280_0x2fb6();}function a280_0x17b0(_0x213577,_0x35c3d1){_0x213577=_0x213577-0xae;const _0x2fb67d=a280_0x2fb6();let _0x17b047=_0x2fb67d[_0x213577];return _0x17b047;}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x174a86,_0x5af0a5){const _0x9af8a1=a288_0x4fb0,_0x1b5dcf=_0x174a86();while(!![]){try{const _0x1b6e39=parseInt(_0x9af8a1(0x159))/0x1+-parseInt(_0x9af8a1(0x14e))/0x2+-parseInt(_0x9af8a1(0x155))/0x3*(parseInt(_0x9af8a1(0x154))/0x4)+parseInt(_0x9af8a1(0x162))/0x5*(parseInt(_0x9af8a1(0x14f))/0x6)+-parseInt(_0x9af8a1(0x15c))/0x7+-parseInt(_0x9af8a1(0x163))/0x8+-parseInt(_0x9af8a1(0x153))/0x9*(-parseInt(_0x9af8a1(0x152))/0xa);if(_0x1b6e39===_0x5af0a5)break;else _0x1b5dcf['push'](_0x1b5dcf['shift']());}catch(_0x350b8a){_0x1b5dcf['push'](_0x1b5dcf['shift']());}}}(a288_0x39c0,0x4cb57));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(_0x514aee){const _0x517296=a288_0x4fb0;return typeof _0x514aee===_0x517296(0x15d)&&_0x514aee[_0x517296(0x151)]()[_0x517296(0x156)]>0x0?_0x514aee[_0x517296(0x151)]():null;}function normalizeCliVersionPolicy(_0x12a791){const _0x95b67b=a288_0x4fb0;if(!_0x12a791||typeof _0x12a791!==_0x95b67b(0x161))return null;const _0x2dddb6=_0x12a791,_0xbe1df1=_0x2dddb6[_0x95b67b(0x15a)]&&typeof _0x2dddb6[_0x95b67b(0x15a)]===_0x95b67b(0x161)?_0x2dddb6['cli']:_0x2dddb6,_0x229e25=pickString(_0xbe1df1['stableVersion'])||pickString(_0xbe1df1['latestVersion'])||pickString(_0xbe1df1[_0x95b67b(0x158)]),_0x3c95f4=pickString(_0xbe1df1[_0x95b67b(0x15f)])||pickString(_0xbe1df1[_0x95b67b(0x150)]);if(!_0x229e25&&!_0x3c95f4)return null;return{'stableVersion':_0x229e25,'minimumVersion':_0x3c95f4,'upgradeMessage':pickString(_0xbe1df1[_0x95b67b(0x157)])||undefined,'minimumVersionMessage':pickString(_0xbe1df1['minimumVersionMessage'])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0xba4067=a288_0x4fb0,_0x2da3aa=new AbortController(),_0x3496c0=setTimeout(()=>_0x2da3aa['abort'](),FETCH_TIMEOUT_MS);try{const _0x3ab37c=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x2da3aa[_0xba4067(0x15b)]});if(!_0x3ab37c['ok'])return null;const _0x48924c=await _0x3ab37c[_0xba4067(0x160)]();return _0x48924c&&typeof _0x48924c==='object'?_0x48924c:null;}catch{return null;}finally{clearTimeout(_0x3496c0);}}function a288_0x39c0(){const _0x16b84b=['15SbCPrS','1287288sZQwnz','535498BdPdeO','779910nSDIeo','minVersion','trim','5915730VjWIIq','9gCYkgt','4JNxSQS','400812hzBYrf','length','upgradeMessage','recommendedVersion','124120zinWHG','cli','signal','1604295rCFHWV','string','now','minimumVersion','json','object'];a288_0x39c0=function(){return _0x16b84b;};return a288_0x39c0();}function a288_0x4fb0(_0x20f2c8,_0xb91544){_0x20f2c8=_0x20f2c8-0x14e;const _0x39c0bf=a288_0x39c0();let _0x4fb007=_0x39c0bf[_0x20f2c8];return _0x4fb007;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x2ba70a=a288_0x4fb0,_0x227cc2=Date[_0x2ba70a(0x15e)]();if(hasCachedConfig){const _0x130d21=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x227cc2-cacheTime<_0x130d21)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x227cc2,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- const a281_0x340d72=a281_0x42e8;(function(_0x5af50a,_0x220f1e){const _0x2154e5=a281_0x42e8,_0x141907=_0x5af50a();while(!![]){try{const _0x5b420b=-parseInt(_0x2154e5(0xaa))/0x1+parseInt(_0x2154e5(0xa8))/0x2+-parseInt(_0x2154e5(0xa9))/0x3+-parseInt(_0x2154e5(0xa2))/0x4*(parseInt(_0x2154e5(0xa7))/0x5)+parseInt(_0x2154e5(0xa0))/0x6*(parseInt(_0x2154e5(0x9f))/0x7)+-parseInt(_0x2154e5(0xa1))/0x8*(-parseInt(_0x2154e5(0xa6))/0x9)+parseInt(_0x2154e5(0xa5))/0xa;if(_0x5b420b===_0x220f1e)break;else _0x141907['push'](_0x141907['shift']());}catch(_0x14c8a9){_0x141907['push'](_0x141907['shift']());}}}(a281_0x1429,0x34d4f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a281_0x5b9d6f,getMultiAppConfigs as a281_0x238a4d,getTemplateBaseUrl as a281_0x197cd3}from'../context.js';function a281_0x42e8(_0x8fe627,_0x4ba649){_0x8fe627=_0x8fe627-0x9f;const _0x14297a=a281_0x1429();let _0x42e888=_0x14297a[_0x8fe627];return _0x42e888;}export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x24506b){const _0x524209=a281_0x42e8,_0x536739=readRawConfig(_0x24506b);return _0x536739[_0x524209(0xa3)]&&typeof _0x536739[_0x524209(0xa3)]==='string'&&initEnv(_0x536739['env']),_0x536739;}function a281_0x1429(){const _0x585a1d=['project','4158890GnTmDn','1491795WqWmKA','165105HDOylL','328312oGNGgL','22815sxILbl','354065XJawOI','42553UdXuZK','30iHQXcQ','8fQsPgD','24FgWbCk','env'];a281_0x1429=function(){return _0x585a1d;};return a281_0x1429();}export function getConfigAppCode(){return a281_0x5b9d6f();}export function getMultiAppConfigs(_0x35ea16=a281_0x340d72(0xa4)){return a281_0x238a4d(_0x35ea16);}export function getTemplateBaseUrl(){return a281_0x197cd3();}
1
+ (function(_0x5cdc19,_0x921ac6){const _0x535f17=a289_0x41a3,_0x30010d=_0x5cdc19();while(!![]){try{const _0x59d87c=parseInt(_0x535f17(0x18f))/0x1+parseInt(_0x535f17(0x189))/0x2+-parseInt(_0x535f17(0x18d))/0x3*(parseInt(_0x535f17(0x18c))/0x4)+parseInt(_0x535f17(0x18e))/0x5*(-parseInt(_0x535f17(0x190))/0x6)+-parseInt(_0x535f17(0x191))/0x7*(parseInt(_0x535f17(0x192))/0x8)+parseInt(_0x535f17(0x18b))/0x9+parseInt(_0x535f17(0x18a))/0xa;if(_0x59d87c===_0x921ac6)break;else _0x30010d['push'](_0x30010d['shift']());}catch(_0x5355d2){_0x30010d['push'](_0x30010d['shift']());}}}(a289_0x1a22,0xb2120));function a289_0x41a3(_0xc8253,_0x381b30){_0xc8253=_0xc8253-0x189;const _0x1a2228=a289_0x1a22();let _0x41a3b6=_0x1a2228[_0xc8253];return _0x41a3b6;}import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a289_0x3ba6da,getMultiAppConfigs as a289_0x4b3f83,getTemplateBaseUrl as a289_0x14904f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';function a289_0x1a22(){const _0x1c7714=['5625772SZNXUC','3uDcAoQ','231205WgzXJS','302771hlamAy','30MqVIxA','1398404NfKQKH','48mpJvUM','env','2765124OpcGGn','9122780CwyPeG','8712405HcUecR'];a289_0x1a22=function(){return _0x1c7714;};return a289_0x1a22();}export{isInProject}from'../context.js';export function readConfig(_0x50e2a7){const _0xc8daa3=a289_0x41a3,_0x4a6faf=readRawConfig(_0x50e2a7);return _0x4a6faf[_0xc8daa3(0x193)]&&typeof _0x4a6faf[_0xc8daa3(0x193)]==='string'&&initEnv(_0x4a6faf['env']),_0x4a6faf;}export function getConfigAppCode(){return a289_0x3ba6da();}export function getMultiAppConfigs(_0x3033c6='project'){return a289_0x4b3f83(_0x3033c6);}export function getTemplateBaseUrl(){return a289_0x14904f();}
@@ -1 +1 @@
1
- (function(_0x45d303,_0x3e9604){const _0x38ed8d=a282_0x32ba,_0x38e4dd=_0x45d303();while(!![]){try{const _0x2d1b2a=-parseInt(_0x38ed8d(0x1be))/0x1+parseInt(_0x38ed8d(0x1b4))/0x2*(parseInt(_0x38ed8d(0x1bb))/0x3)+-parseInt(_0x38ed8d(0x1bd))/0x4+-parseInt(_0x38ed8d(0x1b9))/0x5*(-parseInt(_0x38ed8d(0x1c1))/0x6)+-parseInt(_0x38ed8d(0x1b5))/0x7+-parseInt(_0x38ed8d(0x1ba))/0x8+parseInt(_0x38ed8d(0x1b7))/0x9;if(_0x2d1b2a===_0x3e9604)break;else _0x38e4dd['push'](_0x38e4dd['shift']());}catch(_0x5798a5){_0x38e4dd['push'](_0x38e4dd['shift']());}}}(a282_0x4daf,0x63dec));function a282_0x32ba(_0x518b7b,_0x43fc39){_0x518b7b=_0x518b7b-0x1b4;const _0x4daf4c=a282_0x4daf();let _0x32ba51=_0x4daf4c[_0x518b7b];return _0x32ba51;}function toFiniteNumber(_0x51737d){const _0x1fceda=a282_0x32ba;if(typeof _0x51737d===_0x1fceda(0x1bc)&&Number[_0x1fceda(0x1c0)](_0x51737d))return _0x51737d;if(typeof _0x51737d===_0x1fceda(0x1b8)){const _0x4647ea=_0x51737d[_0x1fceda(0x1bf)]();if(!_0x4647ea)return undefined;const _0x21d68a=Number(_0x4647ea);if(Number[_0x1fceda(0x1c0)](_0x21d68a))return _0x21d68a;}return undefined;}export function normalizeEntityWithIdResponse(_0x16a491){const _0x219bcf=a282_0x32ba,_0x157f61=toFiniteNumber(_0x16a491);if(_0x157f61!==undefined)return{'id':_0x157f61,'entity':{'id':_0x157f61}};if(!_0x16a491||typeof _0x16a491!==_0x219bcf(0x1b6))return{'id':undefined,'entity':{}};const _0x1b829b={..._0x16a491},_0x797c41=toFiniteNumber(_0x1b829b['id']);return _0x797c41!==undefined&&(_0x1b829b['id']=_0x797c41),{'id':_0x797c41,'entity':_0x1b829b};}function a282_0x4daf(){const _0x56e55a=['2eDOQCZ','829528iDyHsf','object','10200294kCoEiN','string','127220klTXmv','5212592sMljen','2219397XzcBDR','number','2374404ZnqkAH','151306HSIbTs','trim','isFinite','12YgJthU'];a282_0x4daf=function(){return _0x56e55a;};return a282_0x4daf();}
1
+ (function(_0xe87679,_0x3e9ef3){const _0x856923=a290_0x4d31,_0x586bc7=_0xe87679();while(!![]){try{const _0x361643=-parseInt(_0x856923(0xc6))/0x1+-parseInt(_0x856923(0xcb))/0x2*(-parseInt(_0x856923(0xc5))/0x3)+-parseInt(_0x856923(0xc3))/0x4*(parseInt(_0x856923(0xc7))/0x5)+parseInt(_0x856923(0xc4))/0x6+parseInt(_0x856923(0xc1))/0x7+parseInt(_0x856923(0xca))/0x8+-parseInt(_0x856923(0xc8))/0x9*(-parseInt(_0x856923(0xcd))/0xa);if(_0x361643===_0x3e9ef3)break;else _0x586bc7['push'](_0x586bc7['shift']());}catch(_0x46e24b){_0x586bc7['push'](_0x586bc7['shift']());}}}(a290_0x3ef5,0xd756f));function toFiniteNumber(_0x43873c){const _0x8b5a56=a290_0x4d31;if(typeof _0x43873c===_0x8b5a56(0xc2)&&Number[_0x8b5a56(0xc9)](_0x43873c))return _0x43873c;if(typeof _0x43873c==='string'){const _0xf66e01=_0x43873c[_0x8b5a56(0xcc)]();if(!_0xf66e01)return undefined;const _0x43ce74=Number(_0xf66e01);if(Number['isFinite'](_0x43ce74))return _0x43ce74;}return undefined;}function a290_0x4d31(_0x36c5d1,_0x5cf1d6){_0x36c5d1=_0x36c5d1-0xc1;const _0x3ef5b8=a290_0x3ef5();let _0x4d31f8=_0x3ef5b8[_0x36c5d1];return _0x4d31f8;}function a290_0x3ef5(){const _0x7bcf2=['2115180KfkIHg','3EBmBGa','829947Wrtktn','10HEEPOf','9054306NASBsY','isFinite','7012520VRkKZZ','44476RaiyvJ','trim','10TDuQot','6573679MHeIxt','number','2968972XFxRzN'];a290_0x3ef5=function(){return _0x7bcf2;};return a290_0x3ef5();}export function normalizeEntityWithIdResponse(_0x1d6f7e){const _0x3216f6=toFiniteNumber(_0x1d6f7e);if(_0x3216f6!==undefined)return{'id':_0x3216f6,'entity':{'id':_0x3216f6}};if(!_0x1d6f7e||typeof _0x1d6f7e!=='object')return{'id':undefined,'entity':{}};const _0xabbb0d={..._0x1d6f7e},_0x2b8db3=toFiniteNumber(_0xabbb0d['id']);return _0x2b8db3!==undefined&&(_0xabbb0d['id']=_0x2b8db3),{'id':_0x2b8db3,'entity':_0xabbb0d};}
@@ -1 +1 @@
1
- (function(_0x41fb75,_0x2a8ad1){const _0x54e024=a283_0x5d95,_0x2b484a=_0x41fb75();while(!![]){try{const _0x147f7c=parseInt(_0x54e024(0x137))/0x1*(-parseInt(_0x54e024(0x13a))/0x2)+parseInt(_0x54e024(0x13e))/0x3+-parseInt(_0x54e024(0x138))/0x4*(parseInt(_0x54e024(0x135))/0x5)+parseInt(_0x54e024(0x13b))/0x6+parseInt(_0x54e024(0x136))/0x7*(parseInt(_0x54e024(0x13c))/0x8)+parseInt(_0x54e024(0x13d))/0x9+-parseInt(_0x54e024(0x139))/0xa;if(_0x147f7c===_0x2a8ad1)break;else _0x2b484a['push'](_0x2b484a['shift']());}catch(_0x1fc51f){_0x2b484a['push'](_0x2b484a['shift']());}}}(a283_0xc81d,0x41946));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a283_0x5d95(_0x132e0f,_0x34b47e){_0x132e0f=_0x132e0f-0x135;const _0xc81de8=a283_0xc81d();let _0x5d9516=_0xc81de8[_0x132e0f];return _0x5d9516;}import{join}from'node:path';function a283_0xc81d(){const _0x448d2d=['6RCBpBd','787362nzoNam','8CMGmiI','2013849shhGkf','1018743lMooTL','5tWVDJU','2506021VyvLqn','21231rJcNyT','112292cpqJzq','6921920iBxBTH'];a283_0xc81d=function(){return _0x448d2d;};return a283_0xc81d();}export async function copyDir(_0x276fda,_0x25dc96){const _0x1e1029=statSync(_0x276fda);if(_0x1e1029['isDirectory']()){!existsSync(_0x25dc96)&&mkdirSync(_0x25dc96,{'recursive':!![]});const _0x56d28d=readdirSync(_0x276fda);for(const _0xca395d of _0x56d28d){await copyDir(join(_0x276fda,_0xca395d),join(_0x25dc96,_0xca395d));}}else copyFileSync(_0x276fda,_0x25dc96);}export function ensureDir(_0x140486){!existsSync(_0x140486)&&mkdirSync(_0x140486,{'recursive':!![]});}export function pathExists(_0x443757){return existsSync(_0x443757);}
1
+ function a291_0x1eff(){const _0x249867=['153eJUJVh','526380RZxTQi','20ujFJqC','509502gXLmBe','692152FYRbhE','468699ZmiRMw','994774SNSrmR','872577BobXad','1838076SXJqHS'];a291_0x1eff=function(){return _0x249867;};return a291_0x1eff();}(function(_0x4fa5bd,_0x170050){const _0x28c9c1=a291_0x54f3,_0x338f36=_0x4fa5bd();while(!![]){try{const _0x5b7e93=-parseInt(_0x28c9c1(0xe9))/0x1+-parseInt(_0x28c9c1(0xe8))/0x2+parseInt(_0x28c9c1(0xe7))/0x3*(parseInt(_0x28c9c1(0xe4))/0x4)+-parseInt(_0x28c9c1(0xe3))/0x5+-parseInt(_0x28c9c1(0xea))/0x6+parseInt(_0x28c9c1(0xe5))/0x7+parseInt(_0x28c9c1(0xe6))/0x8*(parseInt(_0x28c9c1(0xeb))/0x9);if(_0x5b7e93===_0x170050)break;else _0x338f36['push'](_0x338f36['shift']());}catch(_0x5aa455){_0x338f36['push'](_0x338f36['shift']());}}}(a291_0x1eff,0x849d4));function a291_0x54f3(_0x408fb5,_0x2b084f){_0x408fb5=_0x408fb5-0xe3;const _0x1eff45=a291_0x1eff();let _0x54f35f=_0x1eff45[_0x408fb5];return _0x54f35f;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x205f16,_0x4356a1){const _0x5558b2=statSync(_0x205f16);if(_0x5558b2['isDirectory']()){!existsSync(_0x4356a1)&&mkdirSync(_0x4356a1,{'recursive':!![]});const _0x1198a9=readdirSync(_0x205f16);for(const _0x18e1a5 of _0x1198a9){await copyDir(join(_0x205f16,_0x18e1a5),join(_0x4356a1,_0x18e1a5));}}else copyFileSync(_0x205f16,_0x4356a1);}export function ensureDir(_0x3a73b8){!existsSync(_0x3a73b8)&&mkdirSync(_0x3a73b8,{'recursive':!![]});}export function pathExists(_0x125ba4){return existsSync(_0x125ba4);}
@@ -1 +1 @@
1
- const a284_0x2168e2=a284_0x3941;(function(_0x126303,_0xb0db9){const _0x2c0e89=a284_0x3941,_0x5d551b=_0x126303();while(!![]){try{const _0x2afaa3=parseInt(_0x2c0e89(0x90))/0x1*(-parseInt(_0x2c0e89(0x8d))/0x2)+-parseInt(_0x2c0e89(0x87))/0x3*(-parseInt(_0x2c0e89(0x9b))/0x4)+-parseInt(_0x2c0e89(0x92))/0x5+parseInt(_0x2c0e89(0x94))/0x6*(-parseInt(_0x2c0e89(0x98))/0x7)+parseInt(_0x2c0e89(0x95))/0x8*(parseInt(_0x2c0e89(0x9c))/0x9)+-parseInt(_0x2c0e89(0x88))/0xa+parseInt(_0x2c0e89(0x9a))/0xb;if(_0x2afaa3===_0xb0db9)break;else _0x5d551b['push'](_0x5d551b['shift']());}catch(_0x59757b){_0x5d551b['push'](_0x5d551b['shift']());}}}(a284_0x304a,0x8788b));import{mkdirSync,writeFileSync}from'node:fs';import{dirname,join}from'node:path';import{homedir}from'node:os';function a284_0x3941(_0xd07a1b,_0x3e44f2){_0xd07a1b=_0xd07a1b-0x7f;const _0x304aab=a284_0x304a();let _0x3941ae=_0x304aab[_0xd07a1b];return _0x3941ae;}import{getTemplateBaseUrl}from'../utils/config.js';function getGuidesCdnUrl(){const _0x55b5e1=a284_0x3941,_0x43b336=getTemplateBaseUrl();return _0x43b336+_0x55b5e1(0x96);}const CACHE_DIR=join(homedir(),a284_0x2168e2(0x7f),a284_0x2168e2(0xa0));export async function fetchGuidesFromCDN(){const _0x10097b=a284_0x2168e2,_0x5a866e=getGuidesCdnUrl(),_0x143f45=await fetch(_0x5a866e,{'headers':{'Accept':_0x10097b(0xa1)}});if(!_0x143f45['ok'])throw new Error(_0x10097b(0x97)+_0x143f45[_0x10097b(0xa2)]+'\x20'+_0x143f45[_0x10097b(0x9e)]);const _0x3ad6fe=await _0x143f45[_0x10097b(0x86)]();if(!_0x3ad6fe['guides']||typeof _0x3ad6fe[_0x10097b(0x93)]!==_0x10097b(0x81))throw new Error(_0x10097b(0x85));return _0x3ad6fe;}export function writeGuidesToProject(_0x2c47f2,_0x527c7a,_0x3b107e='.lovrabet/skill/guides',_0x567783){const _0x1cf2d9=a284_0x2168e2,_0x55f0e8=join(_0x527c7a,_0x3b107e);mkdirSync(_0x55f0e8,{'recursive':!![]});for(const [_0x232ef1,_0x496039]of Object[_0x1cf2d9(0x9f)](_0x2c47f2[_0x1cf2d9(0x93)])){let _0x2e5b10=_0x496039['content'];_0x496039[_0x1cf2d9(0x8f)]&&(_0x2e5b10=appendUpdateTime(_0x2e5b10,_0x496039['lastUpdated'])),writeFileSync(join(_0x55f0e8,_0x232ef1+_0x1cf2d9(0x9d)),_0x2e5b10,_0x1cf2d9(0x84));}}export function appendUpdateTime(_0x3f5b6d,_0xdeb3cd){const _0x35c382=a284_0x2168e2;return _0x3f5b6d=_0x3f5b6d[_0x35c382(0x8a)](/\n*>更新时间:.*$/m,''),_0x3f5b6d[_0x35c382(0x80)]()+(_0x35c382(0x8b)+_0xdeb3cd);}export function getSkillTemplate(_0x4dc44e){const _0x29bc32=a284_0x2168e2;return _0x4dc44e[_0x29bc32(0x82)]?.['content']||'';}export function appendExtendContents(_0x3ff8b1,_0x56d467,_0x2c85d3){const _0x20c681=a284_0x2168e2,_0x120457=[];for(const [,_0x271eaa]of Object['entries'](_0x56d467[_0x20c681(0x93)])){_0x271eaa[_0x20c681(0x91)]&&_0x120457[_0x20c681(0x89)](_0x271eaa[_0x20c681(0x91)][_0x20c681(0x80)]());}if(_0x120457[_0x20c681(0x8e)]===0x0)return _0x3ff8b1;return _0x3ff8b1[_0x20c681(0x80)]()+'\x0a\x0a'+_0x120457['join']('\x0a\x0a')+'\x0a';}function a284_0x304a(){const _0x3851c=['push','replace','\x0a\x0a>更新时间:','map','12txgjnM','length','lastUpdated','122228vxcpHD','extendContent','3739335ZMMWzo','guides','757446hpdMjo','984VxJmMr','/skills/guides.json','CDN\x20request\x20failed:\x20','35fcEmgv','CDN\x20data\x20is\x20missing\x20skillTemplate','22470954iMLANF','8JZhIFD','57132PlBmqy','.md','statusText','entries','cache','application/json','status','.lovrabet','trimEnd','object','skillTemplate','keys','utf-8','CDN\x20returned\x20invalid\x20data','json','901311KxJAYt','7569050zGhCLa'];a284_0x304a=function(){return _0x3851c;};return a284_0x304a();}export function writeSkillFile(_0x9e102e,_0x48a368,_0x371f47){const _0x22783e=a284_0x2168e2,_0x30aae7=getSkillTemplate(_0x9e102e);if(!_0x30aae7)throw new Error(_0x22783e(0x99));const _0x1bcbb2=dirname(_0x48a368);mkdirSync(_0x1bcbb2,{'recursive':!![]});let _0x4bbdf5=_0x30aae7[_0x22783e(0x8a)](/\{\{IDE_NAME\}\}/g,_0x371f47);_0x4bbdf5=appendExtendContents(_0x4bbdf5,_0x9e102e),_0x9e102e[_0x22783e(0x82)][_0x22783e(0x8f)]&&(_0x4bbdf5=appendUpdateTime(_0x4bbdf5,_0x9e102e['skillTemplate'][_0x22783e(0x8f)])),writeFileSync(_0x48a368,_0x4bbdf5,_0x22783e(0x84));}export async function installGuides(_0x474378){const _0x532ba8=a284_0x2168e2,_0x39a2b0=await fetchGuidesFromCDN();return writeGuidesToProject(_0x39a2b0,_0x474378),Object[_0x532ba8(0x83)](_0x39a2b0[_0x532ba8(0x93)])[_0x532ba8(0x8e)];}export function getGuidesSummary(_0x4ae1de){const _0x36fef6=a284_0x2168e2;return Object['entries'](_0x4ae1de[_0x36fef6(0x93)])[_0x36fef6(0x8c)](([_0x3bf396,_0xb9a807])=>({'key':_0x3bf396,'title':_0xb9a807['title'],'path':_0xb9a807['path']}));}
1
+ const a292_0x3bc79e=a292_0x1d4d;(function(_0x4b91e2,_0x40fb09){const _0x197f6e=a292_0x1d4d,_0x5085dd=_0x4b91e2();while(!![]){try{const _0xd66dd9=parseInt(_0x197f6e(0x19f))/0x1+parseInt(_0x197f6e(0x19c))/0x2+-parseInt(_0x197f6e(0x198))/0x3*(-parseInt(_0x197f6e(0x1b1))/0x4)+-parseInt(_0x197f6e(0x1a6))/0x5+-parseInt(_0x197f6e(0x193))/0x6*(parseInt(_0x197f6e(0x199))/0x7)+-parseInt(_0x197f6e(0x197))/0x8*(parseInt(_0x197f6e(0x196))/0x9)+-parseInt(_0x197f6e(0x1b4))/0xa*(parseInt(_0x197f6e(0x1a5))/0xb);if(_0xd66dd9===_0x40fb09)break;else _0x5085dd['push'](_0x5085dd['shift']());}catch(_0x4a8794){_0x5085dd['push'](_0x5085dd['shift']());}}}(a292_0x356c,0x18756));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 _0x462081=a292_0x1d4d,_0x3c125d=getTemplateBaseUrl();return _0x3c125d+_0x462081(0x19b);}const CACHE_DIR=join(homedir(),a292_0x3bc79e(0x19d),a292_0x3bc79e(0x1a1));export async function fetchGuidesFromCDN(){const _0xeb5749=a292_0x3bc79e,_0x1f8f30=getGuidesCdnUrl(),_0x57126f=await fetch(_0x1f8f30,{'headers':{'Accept':_0xeb5749(0x1a4)}});if(!_0x57126f['ok'])throw new Error(_0xeb5749(0x1b6)+_0x57126f[_0xeb5749(0x19a)]+'\x20'+_0x57126f[_0xeb5749(0x1ae)]);const _0x1211b8=await _0x57126f[_0xeb5749(0x192)]();if(!_0x1211b8[_0xeb5749(0x1ad)]||typeof _0x1211b8[_0xeb5749(0x1ad)]!==_0xeb5749(0x1a8))throw new Error('CDN\x20returned\x20invalid\x20data');return _0x1211b8;}export function writeGuidesToProject(_0x2d0828,_0x311eb8,_0x51ca85=a292_0x3bc79e(0x1a3),_0x577546){const _0x43452e=a292_0x3bc79e,_0x222048=join(_0x311eb8,_0x51ca85);mkdirSync(_0x222048,{'recursive':!![]});for(const [_0x34745d,_0xb8e5]of Object[_0x43452e(0x1b5)](_0x2d0828['guides'])){let _0x523a39=_0xb8e5[_0x43452e(0x1a7)];_0xb8e5[_0x43452e(0x1b7)]&&(_0x523a39=appendUpdateTime(_0x523a39,_0xb8e5[_0x43452e(0x1b7)])),writeFileSync(join(_0x222048,_0x34745d+'.md'),_0x523a39,_0x43452e(0x1a9));}}function a292_0x1d4d(_0x53dfb0,_0x477365){_0x53dfb0=_0x53dfb0-0x192;const _0x356cc4=a292_0x356c();let _0x1d4d02=_0x356cc4[_0x53dfb0];return _0x1d4d02;}export function appendUpdateTime(_0x204d2d,_0x3c4a3c){const _0x377a4b=a292_0x3bc79e;return _0x204d2d=_0x204d2d[_0x377a4b(0x1ab)](/\n*>更新时间:.*$/m,''),_0x204d2d[_0x377a4b(0x1af)]()+(_0x377a4b(0x195)+_0x3c4a3c);}export function getSkillTemplate(_0x388e79){const _0x2a52f3=a292_0x3bc79e;return _0x388e79[_0x2a52f3(0x1ac)]?.[_0x2a52f3(0x1a7)]||'';}export function appendExtendContents(_0x231b94,_0x20d419,_0x4f5533){const _0x534563=a292_0x3bc79e,_0x4d8ceb=[];for(const [,_0x5125f0]of Object[_0x534563(0x1b5)](_0x20d419[_0x534563(0x1ad)])){_0x5125f0[_0x534563(0x1b0)]&&_0x4d8ceb[_0x534563(0x1a2)](_0x5125f0['extendContent'][_0x534563(0x1af)]());}if(_0x4d8ceb[_0x534563(0x19e)]===0x0)return _0x231b94;return _0x231b94[_0x534563(0x1af)]()+'\x0a\x0a'+_0x4d8ceb[_0x534563(0x1a0)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5d74ed,_0x4f312b,_0x46aaed){const _0x143cb4=a292_0x3bc79e,_0x5a5ad3=getSkillTemplate(_0x5d74ed);if(!_0x5a5ad3)throw new Error(_0x143cb4(0x1aa));const _0x214017=dirname(_0x4f312b);mkdirSync(_0x214017,{'recursive':!![]});let _0x1ac1fc=_0x5a5ad3['replace'](/\{\{IDE_NAME\}\}/g,_0x46aaed);_0x1ac1fc=appendExtendContents(_0x1ac1fc,_0x5d74ed),_0x5d74ed[_0x143cb4(0x1ac)][_0x143cb4(0x1b7)]&&(_0x1ac1fc=appendUpdateTime(_0x1ac1fc,_0x5d74ed[_0x143cb4(0x1ac)][_0x143cb4(0x1b7)])),writeFileSync(_0x4f312b,_0x1ac1fc,_0x143cb4(0x1a9));}export async function installGuides(_0x9a84a4){const _0x9f4c22=a292_0x3bc79e,_0x578429=await fetchGuidesFromCDN();return writeGuidesToProject(_0x578429,_0x9a84a4),Object['keys'](_0x578429[_0x9f4c22(0x1ad)])[_0x9f4c22(0x19e)];}function a292_0x356c(){const _0x2d61f7=['path','title','5980OfPYCV','entries','CDN\x20request\x20failed:\x20','lastUpdated','json','444036xTMCzs','map','\x0a\x0a>更新时间:','72ISgmJM','13840FaEnlR','3pCCOwJ','7pXFQCB','status','/skills/guides.json','387452OtcKsc','.lovrabet','length','184814XZiZfH','join','cache','push','.lovrabet/skill/guides','application/json','2189dhhDJX','402340naAYdm','content','object','utf-8','CDN\x20data\x20is\x20missing\x20skillTemplate','replace','skillTemplate','guides','statusText','trimEnd','extendContent','35832WRJnVA'];a292_0x356c=function(){return _0x2d61f7;};return a292_0x356c();}export function getGuidesSummary(_0x1b92e6){const _0x4ffb22=a292_0x3bc79e;return Object[_0x4ffb22(0x1b5)](_0x1b92e6[_0x4ffb22(0x1ad)])[_0x4ffb22(0x194)](([_0xe8efb6,_0x2fb954])=>({'key':_0xe8efb6,'title':_0x2fb954[_0x4ffb22(0x1b3)],'path':_0x2fb954[_0x4ffb22(0x1b2)]}));}
@@ -1 +1 @@
1
- function a285_0x10f4(_0xc49244,_0x3d6178){_0xc49244=_0xc49244-0x6d;const _0x431495=a285_0x4314();let _0x10f424=_0x431495[_0xc49244];return _0x10f424;}(function(_0x524404,_0x2a41e1){const _0x22cf44=a285_0x10f4,_0x3de4d9=_0x524404();while(!![]){try{const _0x4811d4=parseInt(_0x22cf44(0x7a))/0x1+parseInt(_0x22cf44(0x79))/0x2*(-parseInt(_0x22cf44(0x82))/0x3)+parseInt(_0x22cf44(0x81))/0x4*(-parseInt(_0x22cf44(0x74))/0x5)+-parseInt(_0x22cf44(0x83))/0x6*(parseInt(_0x22cf44(0x7b))/0x7)+-parseInt(_0x22cf44(0x75))/0x8+parseInt(_0x22cf44(0x78))/0x9+-parseInt(_0x22cf44(0x7f))/0xa*(-parseInt(_0x22cf44(0x80))/0xb);if(_0x4811d4===_0x2a41e1)break;else _0x3de4d9['push'](_0x3de4d9['shift']());}catch(_0x392c40){_0x3de4d9['push'](_0x3de4d9['shift']());}}}(a285_0x4314,0x80c3b));export async function httpRequest(_0x3b0e87,_0x5bf96d={}){const _0x1f5cd9=a285_0x10f4,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x5bf96d;let _0x2f8ff5=null;for(let _0xc66345=0x0;_0xc66345<=retries;_0xc66345++){try{const _0xb5637b=new AbortController(),_0x31db9c=setTimeout(()=>_0xb5637b[_0x1f5cd9(0x7e)](),timeout),_0x40985c=await fetch(_0x3b0e87,{'headers':headers,'signal':_0xb5637b[_0x1f5cd9(0x84)]});clearTimeout(_0x31db9c);let _0xb07ff0;const _0xedb259=_0x40985c['headers'][_0x1f5cd9(0x76)](_0x1f5cd9(0x6f));return _0xedb259?.[_0x1f5cd9(0x77)](_0x1f5cd9(0x71))?_0xb07ff0=await _0x40985c['json']():_0xb07ff0=await _0x40985c[_0x1f5cd9(0x6d)](),{'ok':_0x40985c['ok'],'status':_0x40985c['status'],'statusText':_0x40985c[_0x1f5cd9(0x73)],'data':_0xb07ff0,'headers':_0x40985c[_0x1f5cd9(0x7c)],'url':_0x40985c[_0x1f5cd9(0x72)],'text':()=>_0x40985c[_0x1f5cd9(0x6d)]()};}catch(_0x307c93){_0x2f8ff5=_0x307c93 instanceof Error?_0x307c93:new Error(String(_0x307c93));if(_0xc66345===retries)break;if(shouldRetry(_0x307c93)){console[_0x1f5cd9(0x7d)]('*\x20Request\x20failed;\x20retry\x20'+(_0xc66345+0x1)+'\x20in\x20'+retryDelay+'ms...'),await sleep(retryDelay);continue;}else break;}}throw _0x2f8ff5||new Error('Request\x20failed');}function shouldRetry(_0x2c64c5){const _0x488d1e=a285_0x10f4;if(_0x2c64c5 instanceof Error){if(_0x2c64c5['name']==='AbortError')return![];if(_0x2c64c5[_0x488d1e(0x6e)]==='TypeError'&&_0x2c64c5[_0x488d1e(0x70)]['includes']('fetch'))return!![];if(_0x2c64c5[_0x488d1e(0x70)][_0x488d1e(0x77)]('ECONNRESET'))return!![];if(_0x2c64c5[_0x488d1e(0x70)]['includes']('ENOTFOUND'))return![];}return![];}function sleep(_0x19b70d){return new Promise(_0x1f1234=>setTimeout(_0x1f1234,_0x19b70d));}export function validateUrl(_0x4d73c4){try{return new URL(_0x4d73c4),!![];}catch{return![];}}function a285_0x4314(){const _0x32fe59=['5415720OJQGGk','signal','text','name','content-type','message','application/json','url','statusText','20480gPTTvI','3644640AaFdby','get','includes','1305756GtRkXo','7346TzPybh','620982iJibfq','7DiPuGT','headers','log','abort','5027500BBTQfa','33cfDGGK','376DLhbnl','3MLCpaJ'];a285_0x4314=function(){return _0x32fe59;};return a285_0x4314();}
1
+ (function(_0x322575,_0x31962e){const _0xd35d0b=a293_0x452d,_0x18d914=_0x322575();while(!![]){try{const _0x326eb9=parseInt(_0xd35d0b(0x72))/0x1+-parseInt(_0xd35d0b(0x75))/0x2+-parseInt(_0xd35d0b(0x87))/0x3*(-parseInt(_0xd35d0b(0x83))/0x4)+-parseInt(_0xd35d0b(0x84))/0x5+parseInt(_0xd35d0b(0x73))/0x6+parseInt(_0xd35d0b(0x82))/0x7*(-parseInt(_0xd35d0b(0x81))/0x8)+parseInt(_0xd35d0b(0x85))/0x9*(parseInt(_0xd35d0b(0x7d))/0xa);if(_0x326eb9===_0x31962e)break;else _0x18d914['push'](_0x18d914['shift']());}catch(_0x586e42){_0x18d914['push'](_0x18d914['shift']());}}}(a293_0x3eda,0x266e1));export async function httpRequest(_0x49e449,_0x2a8e6f={}){const _0x2a7b94=a293_0x452d,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x2a8e6f;let _0x58be3e=null;for(let _0x461713=0x0;_0x461713<=retries;_0x461713++){try{const _0x1471b8=new AbortController(),_0xaf160d=setTimeout(()=>_0x1471b8['abort'](),timeout),_0x474928=await fetch(_0x49e449,{'headers':headers,'signal':_0x1471b8[_0x2a7b94(0x76)]});clearTimeout(_0xaf160d);let _0x39a6da;const _0x5ef4fe=_0x474928[_0x2a7b94(0x86)]['get'](_0x2a7b94(0x8a));return _0x5ef4fe?.[_0x2a7b94(0x88)]('application/json')?_0x39a6da=await _0x474928[_0x2a7b94(0x7c)]():_0x39a6da=await _0x474928[_0x2a7b94(0x7a)](),{'ok':_0x474928['ok'],'status':_0x474928[_0x2a7b94(0x80)],'statusText':_0x474928[_0x2a7b94(0x74)],'data':_0x39a6da,'headers':_0x474928['headers'],'url':_0x474928[_0x2a7b94(0x77)],'text':()=>_0x474928[_0x2a7b94(0x7a)]()};}catch(_0x4b0d3e){_0x58be3e=_0x4b0d3e instanceof Error?_0x4b0d3e:new Error(String(_0x4b0d3e));if(_0x461713===retries)break;if(shouldRetry(_0x4b0d3e)){console['log'](_0x2a7b94(0x8c)+(_0x461713+0x1)+'\x20in\x20'+retryDelay+_0x2a7b94(0x8b)),await sleep(retryDelay);continue;}else break;}}throw _0x58be3e||new Error(_0x2a7b94(0x79));}function shouldRetry(_0x4d61d7){const _0x5657bb=a293_0x452d;if(_0x4d61d7 instanceof Error){if(_0x4d61d7['name']===_0x5657bb(0x89))return![];if(_0x4d61d7[_0x5657bb(0x7e)]===_0x5657bb(0x7b)&&_0x4d61d7[_0x5657bb(0x78)][_0x5657bb(0x88)]('fetch'))return!![];if(_0x4d61d7[_0x5657bb(0x78)][_0x5657bb(0x88)](_0x5657bb(0x71)))return!![];if(_0x4d61d7[_0x5657bb(0x78)][_0x5657bb(0x88)](_0x5657bb(0x7f)))return![];}return![];}function a293_0x3eda(){const _0x48c39d=['AbortError','content-type','ms...','*\x20Request\x20failed;\x20retry\x20','ECONNRESET','116295foyXTR','862920FQWwCM','statusText','391976JUxJSF','signal','url','message','Request\x20failed','text','TypeError','json','6740lYkKlv','name','ENOTFOUND','status','11624rOdHLT','623YEXQge','273172DETQRS','862920mySNNh','4365vfiYcr','headers','3YUuDWL','includes'];a293_0x3eda=function(){return _0x48c39d;};return a293_0x3eda();}function sleep(_0x1a0415){return new Promise(_0x494395=>setTimeout(_0x494395,_0x1a0415));}function a293_0x452d(_0x300731,_0x10d2d1){_0x300731=_0x300731-0x71;const _0x3eda85=a293_0x3eda();let _0x452dc8=_0x3eda85[_0x300731];return _0x452dc8;}export function validateUrl(_0xbb2828){try{return new URL(_0xbb2828),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a286_0x39dd(_0x3e575d,_0x566c3d){_0x3e575d=_0x3e575d-0x1bd;const _0x2b477f=a286_0x2b47();let _0x39dd21=_0x2b477f[_0x3e575d];return _0x39dd21;}(function(_0x26cccc,_0xc1872c){const _0x2bbc9a=a286_0x39dd,_0x5cb929=_0x26cccc();while(!![]){try{const _0x555760=parseInt(_0x2bbc9a(0x1bd))/0x1*(parseInt(_0x2bbc9a(0x1c7))/0x2)+parseInt(_0x2bbc9a(0x1c9))/0x3*(-parseInt(_0x2bbc9a(0x1bf))/0x4)+-parseInt(_0x2bbc9a(0x1ca))/0x5+-parseInt(_0x2bbc9a(0x1c2))/0x6*(-parseInt(_0x2bbc9a(0x1c3))/0x7)+parseInt(_0x2bbc9a(0x1ce))/0x8+parseInt(_0x2bbc9a(0x1be))/0x9*(-parseInt(_0x2bbc9a(0x1c1))/0xa)+-parseInt(_0x2bbc9a(0x1cc))/0xb*(-parseInt(_0x2bbc9a(0x1cb))/0xc);if(_0x555760===_0xc1872c)break;else _0x5cb929['push'](_0x5cb929['shift']());}catch(_0x1fb850){_0x5cb929['push'](_0x5cb929['shift']());}}}(a286_0x2b47,0x8cbc6));function env(_0x5971b7){return process.env[`RABETBASE_${_0x5971b7}`]||process.env[`LOVRABET_${_0x5971b7}`]||undefined;}export function isNonInteractive(_0x582b3b){const _0xec6ca4=a286_0x39dd;return!!(_0x582b3b[_0xec6ca4(0x1c0)]||_0x582b3b['ci']||env('CI')===_0xec6ca4(0x1c8)||process.env.CI===_0xec6ca4(0x1c8)||!process[_0xec6ca4(0x1c6)][_0xec6ca4(0x1cd)]||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0x53cda4=a286_0x39dd;if(!process[_0x53cda4(0x1cf)]['isTTY'])return![];try{const _0x5dcffa=process[_0x53cda4(0x1cf)][_0x53cda4(0x1c5)];return process[_0x53cda4(0x1cf)][_0x53cda4(0x1c4)](!![]),process[_0x53cda4(0x1cf)]['setRawMode'](_0x5dcffa??![]),!![];}catch{return![];}}function a286_0x2b47(){const _0x2b6808=['490XmPtuP','setRawMode','isRaw','stdout','2PCsQwB','true','1659402unmvzI','4775005MMPVFn','4296UxiLhu','28292kWiFFa','isTTY','1630120mBFHde','stdin','218573dfoypQ','225lgLPkb','4pUVNop','nonInteractive','132790KAIMDB','92010sSXwus'];a286_0x2b47=function(){return _0x2b6808;};return a286_0x2b47();}
1
+ (function(_0x5c8b6a,_0x499ef3){const _0x43fb79=a294_0x5efa,_0x4710ac=_0x5c8b6a();while(!![]){try{const _0x9a2fe3=-parseInt(_0x43fb79(0x134))/0x1+parseInt(_0x43fb79(0x13b))/0x2+parseInt(_0x43fb79(0x135))/0x3*(-parseInt(_0x43fb79(0x139))/0x4)+parseInt(_0x43fb79(0x137))/0x5+parseInt(_0x43fb79(0x13e))/0x6+-parseInt(_0x43fb79(0x13a))/0x7*(-parseInt(_0x43fb79(0x13d))/0x8)+-parseInt(_0x43fb79(0x138))/0x9;if(_0x9a2fe3===_0x499ef3)break;else _0x4710ac['push'](_0x4710ac['shift']());}catch(_0x2c3f22){_0x4710ac['push'](_0x4710ac['shift']());}}}(a294_0x50b0,0x1b9a7));function a294_0x50b0(){const _0x46f7d4=['299628zcEaYM','true','1816ljazdS','981942QXpMNu','setRawMode','isRaw','stdin','122385hpxeWp','32745WXMmTU','stdout','258785QMHtZF','2187981IWbdRy','36GeAwIs','6524NuTOqL'];a294_0x50b0=function(){return _0x46f7d4;};return a294_0x50b0();}function a294_0x5efa(_0x57cfe8,_0x49585e){_0x57cfe8=_0x57cfe8-0x134;const _0x50b09f=a294_0x50b0();let _0x5efa1d=_0x50b09f[_0x57cfe8];return _0x5efa1d;}function env(_0x3ef782){return process.env[`RABETBASE_${_0x3ef782}`]||process.env[`LOVRABET_${_0x3ef782}`]||undefined;}export function isNonInteractive(_0x1903eb){const _0x400a6c=a294_0x5efa;return!!(_0x1903eb['nonInteractive']||_0x1903eb['ci']||env('CI')===_0x400a6c(0x13c)||process.env.CI==='true'||!process[_0x400a6c(0x136)]['isTTY']||!isStdinRawModeSupported());}function isStdinRawModeSupported(){const _0xc35404=a294_0x5efa;if(!process[_0xc35404(0x141)]['isTTY'])return![];try{const _0x1b0286=process[_0xc35404(0x141)][_0xc35404(0x140)];return process['stdin'][_0xc35404(0x13f)](!![]),process['stdin']['setRawMode'](_0x1b0286??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a287_0x55f664=a287_0x8c17;(function(_0x543f1c,_0x7a4b1){const _0x43bbe8=a287_0x8c17,_0x13a39f=_0x543f1c();while(!![]){try{const _0x1be6dc=parseInt(_0x43bbe8(0x191))/0x1*(parseInt(_0x43bbe8(0x15e))/0x2)+parseInt(_0x43bbe8(0x185))/0x3*(-parseInt(_0x43bbe8(0x184))/0x4)+-parseInt(_0x43bbe8(0x18a))/0x5*(-parseInt(_0x43bbe8(0x16c))/0x6)+parseInt(_0x43bbe8(0x180))/0x7+-parseInt(_0x43bbe8(0x188))/0x8*(parseInt(_0x43bbe8(0x186))/0x9)+parseInt(_0x43bbe8(0x192))/0xa+parseInt(_0x43bbe8(0x183))/0xb*(-parseInt(_0x43bbe8(0x166))/0xc);if(_0x1be6dc===_0x7a4b1)break;else _0x13a39f['push'](_0x13a39f['shift']());}catch(_0x389481){_0x13a39f['push'](_0x13a39f['shift']());}}}(a287_0x41a1,0xcfa64));import a287_0x1d1900 from'winston';import a287_0x4abc43 from'node:fs';import a287_0x107c1e from'node:path';class Logger{[a287_0x55f664(0x187)];[a287_0x55f664(0x179)];['currentRawCommand']='';constructor(){const _0x48e9b9=a287_0x55f664;this[_0x48e9b9(0x179)]='';}[a287_0x55f664(0x16b)](_0x3ea8eb){const _0x174f31=a287_0x55f664;this[_0x174f31(0x175)]=_0x3ea8eb;}['initWinstonLogger'](){const _0x3f02ef=a287_0x55f664,_0x10fa7e=a287_0x107c1e[_0x3f02ef(0x16e)](this[_0x3f02ef(0x179)]);!a287_0x4abc43[_0x3f02ef(0x181)](_0x10fa7e)&&a287_0x4abc43['mkdirSync'](_0x10fa7e,{'recursive':!![]});const _0x360784=a287_0x1d1900[_0x3f02ef(0x168)]['combine'](a287_0x1d1900[_0x3f02ef(0x168)][_0x3f02ef(0x163)](),a287_0x1d1900[_0x3f02ef(0x168)][_0x3f02ef(0x17b)]({'stack':!![]}),a287_0x1d1900[_0x3f02ef(0x168)][_0x3f02ef(0x176)](_0xc52aef=>{const _0x409b2e=_0x3f02ef,_0x31313b={'timestamp':_0xc52aef['timestamp']||new Date()[_0x409b2e(0x177)](),'level':_0xc52aef[_0x409b2e(0x169)]||_0x409b2e(0x171),'command':_0xc52aef[_0x409b2e(0x18d)]||_0x409b2e(0x16a),'rawCommand':_0xc52aef[_0x409b2e(0x17a)]||this[_0x409b2e(0x175)]||undefined,'message':_0xc52aef[_0x409b2e(0x17d)]||'','duration':_0xc52aef[_0x409b2e(0x18e)]||undefined,'details':_0xc52aef[_0x409b2e(0x160)]||undefined};return JSON[_0x409b2e(0x15d)](_0x31313b);}));this[_0x3f02ef(0x187)]=a287_0x1d1900['createLogger']({'level':_0x3f02ef(0x171),'format':_0x360784,'transports':[new a287_0x1d1900['transports'][(_0x3f02ef(0x18c))]({'filename':this['logFilePath'],'level':'info'})],'silent':![]}),a287_0x1d1900[_0x3f02ef(0x162)]({'success':_0x3f02ef(0x167),'error':'red','warn':_0x3f02ef(0x17e),'info':_0x3f02ef(0x174)});}['setLogPath'](_0x2c9bea){const _0x1e2aa1=a287_0x55f664;this[_0x1e2aa1(0x179)]=a287_0x107c1e[_0x1e2aa1(0x164)](_0x2c9bea,_0x1e2aa1(0x190)),this[_0x1e2aa1(0x187)]&&this[_0x1e2aa1(0x187)][_0x1e2aa1(0x16f)](),this[_0x1e2aa1(0x15f)]();}['info'](_0x5350bc,_0x2085cc,_0x5e16e8){const _0x51960d=a287_0x55f664;if(!this['logFilePath']||!this['winstonLogger'])return;this[_0x51960d(0x187)][_0x51960d(0x171)](_0x2085cc,{'command':_0x5350bc,'details':_0x5e16e8});}[a287_0x55f664(0x18f)](_0x5dc33e,_0x3e27e2,_0x3df52c,_0x2a5b38){const _0x259e7f=a287_0x55f664;if(!this[_0x259e7f(0x179)]||!this['winstonLogger'])return;this[_0x259e7f(0x187)][_0x259e7f(0x170)]('info',_0x3e27e2,{'level':_0x259e7f(0x18f),'command':_0x5dc33e,'duration':_0x3df52c,'details':_0x2a5b38});}[a287_0x55f664(0x193)](_0x1d1cee,_0x2f96bf,_0x2158a6){const _0x3cbb7e=a287_0x55f664;if(!this[_0x3cbb7e(0x179)]||!this[_0x3cbb7e(0x187)])return;this[_0x3cbb7e(0x187)][_0x3cbb7e(0x193)](_0x2f96bf,{'command':_0x1d1cee,'details':_0x2158a6});}[a287_0x55f664(0x16d)](_0x281f3e,_0x138042,_0x4f17f8){const _0x5d1fe3=a287_0x55f664;if(!this[_0x5d1fe3(0x179)]||!this[_0x5d1fe3(0x187)])return;this[_0x5d1fe3(0x187)][_0x5d1fe3(0x16d)](_0x138042,{'command':_0x281f3e,'details':_0x4f17f8});}async[a287_0x55f664(0x165)](_0x31a7f8,_0x44fd29,_0x2ca711){const _0x583c9d=a287_0x55f664,_0x427980=Date[_0x583c9d(0x189)]();this[_0x583c9d(0x171)](_0x31a7f8,'Starting:\x20'+_0x44fd29);try{const _0x260364=await _0x2ca711(),_0x2506c2=Date[_0x583c9d(0x189)]()-_0x427980;return this['success'](_0x31a7f8,'Completed:\x20'+_0x44fd29,_0x2506c2),_0x260364;}catch(_0x1edb51){const _0x3dbd2c=Date[_0x583c9d(0x189)]()-_0x427980;this[_0x583c9d(0x193)](_0x31a7f8,_0x583c9d(0x18b)+_0x44fd29,{'error':_0x1edb51 instanceof Error?_0x1edb51[_0x583c9d(0x17d)]:String(_0x1edb51),'duration':_0x3dbd2c});throw _0x1edb51;}}[a287_0x55f664(0x17c)](){const _0x9244a6=a287_0x55f664;try{if(!a287_0x4abc43[_0x9244a6(0x181)](this[_0x9244a6(0x179)]))return[];const _0x3dd962=a287_0x4abc43[_0x9244a6(0x182)](this[_0x9244a6(0x179)],'utf8');return _0x3dd962[_0x9244a6(0x173)]('\x0a')['filter'](_0x4edebf=>_0x4edebf['trim']())[_0x9244a6(0x172)](_0x48006a=>JSON[_0x9244a6(0x17f)](_0x48006a));}catch(_0x32af71){return console['warn']('Failed\x20to\x20read\x20logs:',_0x32af71),[];}}['clearLogs'](){const _0x4c6427=a287_0x55f664;try{a287_0x4abc43[_0x4c6427(0x181)](this['logFilePath'])&&a287_0x4abc43['writeFileSync'](this[_0x4c6427(0x179)],'','utf8');}catch(_0x5526c5){console[_0x4c6427(0x16d)](_0x4c6427(0x178),_0x5526c5);}}[a287_0x55f664(0x161)](){const _0x16bfc8=a287_0x55f664;return this[_0x16bfc8(0x187)];}}export const logger=new Logger();function a287_0x8c17(_0x46729c,_0x171128){_0x46729c=_0x46729c-0x15d;const _0x41a1f2=a287_0x41a1();let _0x8c17f5=_0x41a1f2[_0x46729c];return _0x8c17f5;}function a287_0x41a1(){const _0x29efc2=['initWinstonLogger','details','getWinstonInstance','addColors','timestamp','join','logTask','444VVDeJj','green','format','level','unknown','setRawCommand','2576922nbdBLa','warn','dirname','clear','log','info','map','split','blue','currentRawCommand','printf','toISOString','Failed\x20to\x20clear\x20logs:','logFilePath','rawCommand','errors','readLogs','message','yellow','parse','9778755BuyMWC','existsSync','readFileSync','255838mbQSsc','476xncSTl','31335xLJnJu','137079ZhDdin','winstonLogger','88nuMEZX','now','5aKprnh','Failed:\x20','File','command','duration','success','.lovrabet.log','319717piMLUq','9754050UVqwOs','error','stringify','2MftFiy'];a287_0x41a1=function(){return _0x29efc2;};return a287_0x41a1();}
1
+ const a295_0x103415=a295_0x258f;(function(_0x3d00ab,_0x38d5fd){const _0x1dd70d=a295_0x258f,_0xd858b6=_0x3d00ab();while(!![]){try{const _0x294941=parseInt(_0x1dd70d(0xb1))/0x1+parseInt(_0x1dd70d(0x90))/0x2+-parseInt(_0x1dd70d(0x94))/0x3*(-parseInt(_0x1dd70d(0x82))/0x4)+-parseInt(_0x1dd70d(0x9f))/0x5+parseInt(_0x1dd70d(0xb5))/0x6+parseInt(_0x1dd70d(0xa5))/0x7*(-parseInt(_0x1dd70d(0x87))/0x8)+-parseInt(_0x1dd70d(0x8f))/0x9*(parseInt(_0x1dd70d(0xb8))/0xa);if(_0x294941===_0x38d5fd)break;else _0xd858b6['push'](_0xd858b6['shift']());}catch(_0x4d6aa8){_0xd858b6['push'](_0xd858b6['shift']());}}}(a295_0xe60b,0x2f17b));import a295_0x4c70c7 from'winston';import a295_0x2d6080 from'node:fs';import a295_0x5acb3c from'node:path';class Logger{[a295_0x103415(0xa4)];[a295_0x103415(0x8a)];[a295_0x103415(0xa3)]='';constructor(){const _0x48a6f1=a295_0x103415;this[_0x48a6f1(0x8a)]='';}['setRawCommand'](_0x3c1622){const _0xa58b25=a295_0x103415;this[_0xa58b25(0xa3)]=_0x3c1622;}[a295_0x103415(0xaf)](){const _0x3714e8=a295_0x103415,_0x1adc9f=a295_0x5acb3c['dirname'](this[_0x3714e8(0x8a)]);!a295_0x2d6080[_0x3714e8(0xb9)](_0x1adc9f)&&a295_0x2d6080['mkdirSync'](_0x1adc9f,{'recursive':!![]});const _0xe292d8=a295_0x4c70c7[_0x3714e8(0xa9)][_0x3714e8(0xb0)](a295_0x4c70c7[_0x3714e8(0xa9)][_0x3714e8(0xb7)](),a295_0x4c70c7[_0x3714e8(0xa9)][_0x3714e8(0xa7)]({'stack':!![]}),a295_0x4c70c7[_0x3714e8(0xa9)][_0x3714e8(0x97)](_0x13ff8d=>{const _0x372935=_0x3714e8,_0x31b228={'timestamp':_0x13ff8d[_0x372935(0xb7)]||new Date()['toISOString'](),'level':_0x13ff8d[_0x372935(0x89)]||_0x372935(0x98),'command':_0x13ff8d[_0x372935(0x8b)]||_0x372935(0xa8),'rawCommand':_0x13ff8d[_0x372935(0x95)]||this[_0x372935(0xa3)]||undefined,'message':_0x13ff8d[_0x372935(0x85)]||'','duration':_0x13ff8d['duration']||undefined,'details':_0x13ff8d[_0x372935(0xa6)]||undefined};return JSON[_0x372935(0x8e)](_0x31b228);}));this['winstonLogger']=a295_0x4c70c7[_0x3714e8(0x8d)]({'level':'info','format':_0xe292d8,'transports':[new a295_0x4c70c7[(_0x3714e8(0x9c))][(_0x3714e8(0x86))]({'filename':this['logFilePath'],'level':_0x3714e8(0x98)})],'silent':![]}),a295_0x4c70c7[_0x3714e8(0x91)]({'success':_0x3714e8(0xae),'error':'red','warn':_0x3714e8(0x9e),'info':_0x3714e8(0xb4)});}[a295_0x103415(0x9b)](_0x3cb936){const _0x464d9a=a295_0x103415;this[_0x464d9a(0x8a)]=a295_0x5acb3c[_0x464d9a(0xa1)](_0x3cb936,_0x464d9a(0x84)),this[_0x464d9a(0xa4)]&&this[_0x464d9a(0xa4)][_0x464d9a(0xb2)](),this[_0x464d9a(0xaf)]();}[a295_0x103415(0x98)](_0x8cc9c8,_0xbff9d8,_0x103993){const _0x2e531a=a295_0x103415;if(!this[_0x2e531a(0x8a)]||!this[_0x2e531a(0xa4)])return;this[_0x2e531a(0xa4)]['info'](_0xbff9d8,{'command':_0x8cc9c8,'details':_0x103993});}[a295_0x103415(0xb3)](_0x4a93b3,_0x3d214b,_0x5a0bd1,_0x4c1a7e){const _0x2114e0=a295_0x103415;if(!this['logFilePath']||!this[_0x2114e0(0xa4)])return;this['winstonLogger'][_0x2114e0(0x9d)](_0x2114e0(0x98),_0x3d214b,{'level':_0x2114e0(0xb3),'command':_0x4a93b3,'duration':_0x5a0bd1,'details':_0x4c1a7e});}['error'](_0x168c2e,_0x51daa6,_0x2c53bb){const _0x3413ae=a295_0x103415;if(!this['logFilePath']||!this[_0x3413ae(0xa4)])return;this[_0x3413ae(0xa4)][_0x3413ae(0xad)](_0x51daa6,{'command':_0x168c2e,'details':_0x2c53bb});}[a295_0x103415(0x81)](_0x6ea2e9,_0x108fbe,_0x2e77d2){const _0x9b7d61=a295_0x103415;if(!this[_0x9b7d61(0x8a)]||!this[_0x9b7d61(0xa4)])return;this[_0x9b7d61(0xa4)][_0x9b7d61(0x81)](_0x108fbe,{'command':_0x6ea2e9,'details':_0x2e77d2});}async[a295_0x103415(0x8c)](_0x2c8185,_0x1a6dc3,_0x41592c){const _0x4c94d5=a295_0x103415,_0x5294e0=Date[_0x4c94d5(0x88)]();this['info'](_0x2c8185,'Starting:\x20'+_0x1a6dc3);try{const _0x574b43=await _0x41592c(),_0x382bfb=Date[_0x4c94d5(0x88)]()-_0x5294e0;return this['success'](_0x2c8185,'Completed:\x20'+_0x1a6dc3,_0x382bfb),_0x574b43;}catch(_0x477323){const _0x50bcc6=Date['now']()-_0x5294e0;this[_0x4c94d5(0xad)](_0x2c8185,_0x4c94d5(0xaa)+_0x1a6dc3,{'error':_0x477323 instanceof Error?_0x477323[_0x4c94d5(0x85)]:String(_0x477323),'duration':_0x50bcc6});throw _0x477323;}}[a295_0x103415(0xab)](){const _0x2cfd37=a295_0x103415;try{if(!a295_0x2d6080[_0x2cfd37(0xb9)](this[_0x2cfd37(0x8a)]))return[];const _0x3193bd=a295_0x2d6080['readFileSync'](this[_0x2cfd37(0x8a)],_0x2cfd37(0x92));return _0x3193bd[_0x2cfd37(0xac)]('\x0a')[_0x2cfd37(0x99)](_0x2798ab=>_0x2798ab[_0x2cfd37(0xa2)]())[_0x2cfd37(0x93)](_0x35024b=>JSON[_0x2cfd37(0x96)](_0x35024b));}catch(_0x420180){return console[_0x2cfd37(0x81)]('Failed\x20to\x20read\x20logs:',_0x420180),[];}}[a295_0x103415(0xa0)](){const _0x3ed994=a295_0x103415;try{a295_0x2d6080[_0x3ed994(0xb9)](this[_0x3ed994(0x8a)])&&a295_0x2d6080[_0x3ed994(0xb6)](this[_0x3ed994(0x8a)],'',_0x3ed994(0x92));}catch(_0x326969){console[_0x3ed994(0x81)](_0x3ed994(0x9a),_0x326969);}}[a295_0x103415(0x83)](){const _0x433af3=a295_0x103415;return this[_0x433af3(0xa4)];}}function a295_0xe60b(){const _0x357c4b=['initWinstonLogger','combine','139088GSbKoD','clear','success','blue','1113918RhGJRT','writeFileSync','timestamp','1480ZjqoMR','existsSync','warn','12VPhBiv','getWinstonInstance','.lovrabet.log','message','File','32dzoLyZ','now','level','logFilePath','command','logTask','createLogger','stringify','945cwoVsh','551464VTQYeT','addColors','utf8','map','113181LGXyLa','rawCommand','parse','printf','info','filter','Failed\x20to\x20clear\x20logs:','setLogPath','transports','log','yellow','1876755fiWeAn','clearLogs','join','trim','currentRawCommand','winstonLogger','227276wuraHm','details','errors','unknown','format','Failed:\x20','readLogs','split','error','green'];a295_0xe60b=function(){return _0x357c4b;};return a295_0xe60b();}function a295_0x258f(_0x59d5e6,_0x37ad94){_0x59d5e6=_0x59d5e6-0x81;const _0xe60b66=a295_0xe60b();let _0x258f8=_0xe60b66[_0x59d5e6];return _0x258f8;}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x2e66c2,_0x613c0d){const _0x1da9db=a288_0xa764,_0x57b634=_0x2e66c2();while(!![]){try{const _0x31277e=parseInt(_0x1da9db(0x12f))/0x1+parseInt(_0x1da9db(0x12e))/0x2+-parseInt(_0x1da9db(0x135))/0x3+parseInt(_0x1da9db(0x12b))/0x4*(parseInt(_0x1da9db(0x130))/0x5)+-parseInt(_0x1da9db(0x137))/0x6+-parseInt(_0x1da9db(0x132))/0x7*(parseInt(_0x1da9db(0x131))/0x8)+-parseInt(_0x1da9db(0x134))/0x9*(-parseInt(_0x1da9db(0x12c))/0xa);if(_0x31277e===_0x613c0d)break;else _0x57b634['push'](_0x57b634['shift']());}catch(_0x19c5d4){_0x57b634['push'](_0x57b634['shift']());}}}(a288_0x49d8,0xdf604));import{CliErrors}from'../errors.js';function a288_0x49d8(){const _0x306b61=['9171PbPzaE','3626961ncwVUJ','parse','10539252FsljXH','--params\x20must\x20be\x20a\x20JSON\x20object','20088LfGoUE','15100MeqzoT','object','2437494cikWfO','1439765jwzuIn','1220pTJuIv','1762392ZpSdBg','49remvip','Invalid\x20JSON\x20for\x20--params:\x20'];a288_0x49d8=function(){return _0x306b61;};return a288_0x49d8();}function a288_0xa764(_0x52d7d2,_0x95ca21){_0x52d7d2=_0x52d7d2-0x12b;const _0x49d873=a288_0x49d8();let _0xa76473=_0x49d873[_0x52d7d2];return _0xa76473;}export function parseJsonParams(_0x31ddaf){const _0x2851c5=a288_0xa764;if(!_0x31ddaf)return undefined;let _0xf9cd40;try{_0xf9cd40=JSON[_0x2851c5(0x136)](_0x31ddaf);}catch{throw CliErrors['validation'](_0x2851c5(0x133)+_0x31ddaf);}if(!_0xf9cd40||typeof _0xf9cd40!==_0x2851c5(0x12d)||Array['isArray'](_0xf9cd40))throw CliErrors['validation'](_0x2851c5(0x138),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0xf9cd40;}
1
+ function a296_0x405c(_0x240207,_0xd45444){_0x240207=_0x240207-0x183;const _0x2cf590=a296_0x2cf5();let _0x405c53=_0x2cf590[_0x240207];return _0x405c53;}(function(_0x48ab63,_0x5dfd8c){const _0x46f6e8=a296_0x405c,_0x19c00f=_0x48ab63();while(!![]){try{const _0x59fd59=-parseInt(_0x46f6e8(0x188))/0x1*(parseInt(_0x46f6e8(0x184))/0x2)+-parseInt(_0x46f6e8(0x192))/0x3*(-parseInt(_0x46f6e8(0x18b))/0x4)+parseInt(_0x46f6e8(0x193))/0x5+parseInt(_0x46f6e8(0x18d))/0x6*(parseInt(_0x46f6e8(0x18c))/0x7)+parseInt(_0x46f6e8(0x18a))/0x8*(-parseInt(_0x46f6e8(0x18e))/0x9)+parseInt(_0x46f6e8(0x183))/0xa+-parseInt(_0x46f6e8(0x187))/0xb*(parseInt(_0x46f6e8(0x190))/0xc);if(_0x59fd59===_0x5dfd8c)break;else _0x19c00f['push'](_0x19c00f['shift']());}catch(_0x455ed3){_0x19c00f['push'](_0x19c00f['shift']());}}}(a296_0x2cf5,0x2c37b));function a296_0x2cf5(){const _0xd03355=['16pdLmxh','1952dihwzA','7xDKlbU','2163006nuUtaR','156483RqPPCw','Invalid\x20JSON\x20for\x20--params:\x20','550452VBNOgB','validation','549TqxMTi','1136740GOxKQd','33850rqlNlR','126282fAlCxu','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','66vrsooW','3UADGca','--params\x20must\x20be\x20a\x20JSON\x20object'];a296_0x2cf5=function(){return _0xd03355;};return a296_0x2cf5();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0xfeb93f){const _0x27dd02=a296_0x405c;if(!_0xfeb93f)return undefined;let _0x32e935;try{_0x32e935=JSON['parse'](_0xfeb93f);}catch{throw CliErrors[_0x27dd02(0x191)](_0x27dd02(0x18f)+_0xfeb93f);}if(!_0x32e935||typeof _0x32e935!==_0x27dd02(0x185)||Array['isArray'](_0x32e935))throw CliErrors['validation'](_0x27dd02(0x189),_0x27dd02(0x186));return _0x32e935;}
@@ -1 +1 @@
1
- (function(_0x15debb,_0x4f8a90){const _0x2c286c=a289_0x3024,_0x5b0c14=_0x15debb();while(!![]){try{const _0x318901=-parseInt(_0x2c286c(0xd0))/0x1+-parseInt(_0x2c286c(0xcd))/0x2*(-parseInt(_0x2c286c(0xcf))/0x3)+parseInt(_0x2c286c(0xc5))/0x4+parseInt(_0x2c286c(0xcc))/0x5+parseInt(_0x2c286c(0xc6))/0x6*(-parseInt(_0x2c286c(0xca))/0x7)+-parseInt(_0x2c286c(0xcb))/0x8*(-parseInt(_0x2c286c(0xc9))/0x9)+-parseInt(_0x2c286c(0xc7))/0xa*(-parseInt(_0x2c286c(0xc8))/0xb);if(_0x318901===_0x4f8a90)break;else _0x5b0c14['push'](_0x5b0c14['shift']());}catch(_0x3c2583){_0x5b0c14['push'](_0x5b0c14['shift']());}}}(a289_0x96a3,0x2973b));export const isWindows=process['platform']==='win32';function a289_0x3024(_0x3ce3fe,_0x2f85b8){_0x3ce3fe=_0x3ce3fe-0xc5;const _0x96a333=a289_0x96a3();let _0x3024cf=_0x96a333[_0x3ce3fe];return _0x3024cf;}function a289_0x96a3(){const _0x31b756=['597115sreKZa','218KZhCEG','.cmd','558tCtdnw','318673txOqdu','594876hIYZHz','6BiqZYB','343020oHdWoT','55XAQPmG','298863hxzVqD','1427405JhdPYp','56nNWCBp'];a289_0x96a3=function(){return _0x31b756;};return a289_0x96a3();}export function resolveNpmBin(_0x4cf3ff){const _0x52aa9d=a289_0x3024;return isWindows?_0x4cf3ff+_0x52aa9d(0xce):_0x4cf3ff;}
1
+ function a297_0x4661(_0x592c6d,_0x16d3b1){_0x592c6d=_0x592c6d-0x12f;const _0x232c85=a297_0x232c();let _0x466190=_0x232c85[_0x592c6d];return _0x466190;}const a297_0x2c8d89=a297_0x4661;(function(_0x58bc90,_0x287bfa){const _0x34fe08=a297_0x4661,_0xcc9f30=_0x58bc90();while(!![]){try{const _0x2858fe=-parseInt(_0x34fe08(0x138))/0x1+-parseInt(_0x34fe08(0x13a))/0x2+-parseInt(_0x34fe08(0x12f))/0x3+parseInt(_0x34fe08(0x137))/0x4*(parseInt(_0x34fe08(0x135))/0x5)+-parseInt(_0x34fe08(0x130))/0x6+-parseInt(_0x34fe08(0x13b))/0x7*(-parseInt(_0x34fe08(0x133))/0x8)+-parseInt(_0x34fe08(0x139))/0x9*(-parseInt(_0x34fe08(0x136))/0xa);if(_0x2858fe===_0x287bfa)break;else _0xcc9f30['push'](_0xcc9f30['shift']());}catch(_0x292101){_0xcc9f30['push'](_0xcc9f30['shift']());}}}(a297_0x232c,0x94d9e));export const isWindows=process[a297_0x2c8d89(0x134)]===a297_0x2c8d89(0x131);function a297_0x232c(){const _0x5bdf4c=['607068AatFUC','997808SOgzQt','101577VoswyP','3476031JdGpmg','2308434XyrlNt','win32','.cmd','48utbZKR','platform','973270toMMje','450bQkdJf','8YcEfhn','859700ANpHBZ'];a297_0x232c=function(){return _0x5bdf4c;};return a297_0x232c();}export function resolveNpmBin(_0x253e86){const _0x1b5ae0=a297_0x2c8d89;return isWindows?_0x253e86+_0x1b5ae0(0x132):_0x253e86;}
@@ -1 +1 @@
1
- export function sleep(_0x111510){return new Promise(_0x5d16c3=>setTimeout(_0x5d16c3,_0x111510));}
1
+ export function sleep(_0x44effa){return new Promise(_0x313bfc=>setTimeout(_0x313bfc,_0x44effa));}
@@ -1 +1 @@
1
- const a291_0x55400f=a291_0x4959;(function(_0x5d838f,_0xa9c78c){const _0x20b13f=a291_0x4959,_0x290944=_0x5d838f();while(!![]){try{const _0x110ba2=-parseInt(_0x20b13f(0x16c))/0x1+-parseInt(_0x20b13f(0x173))/0x2+parseInt(_0x20b13f(0x14b))/0x3*(parseInt(_0x20b13f(0x14f))/0x4)+-parseInt(_0x20b13f(0x135))/0x5+-parseInt(_0x20b13f(0x13b))/0x6*(parseInt(_0x20b13f(0x165))/0x7)+-parseInt(_0x20b13f(0x152))/0x8+parseInt(_0x20b13f(0x150))/0x9;if(_0x110ba2===_0xa9c78c)break;else _0x290944['push'](_0x290944['shift']());}catch(_0x594d92){_0x290944['push'](_0x290944['shift']());}}}(a291_0xfbe5,0xa06f2));import a291_0x445534 from'node:fs';import a291_0x5e5971 from'node:path';import{logger}from'../utils/logger.js';function a291_0xfbe5(){const _0x253268=['getFullYear','2933ekxWpX','mkdir','map','padStart','replaceApiContent','template','datasetCode:\x20\x22','997379pvrKNp','info','readdir','now','join','utf8','pop','324118TiOioC','message','isFile','YourModel','getDate','toLowerCase','Template\x20content\x20replacement\x20failed','4883775PwisUG','writeFile','charAt','Template\x20content\x20replacement\x20completed','.ts','split','366nMpQHa','getHours','error','promises','.tpl','.json','slice','push','datasetCode','name:\x20\x22','.md','.js','replaceContent','isDirectory','endsWith','LOVRABET','2649AMGdub','processFile','tableName','includes','5592TmteEh','25844355ZGXQrE','formatLocalTimestamp','10297112wBKirm','name','alias:\x20\x22','.jsx','toDisplayTitle','toUpperCase','alias','toComponentName','processDirectory','extname','processTemplate','success','.css','default','replace','api','pad','toISOString'];a291_0xfbe5=function(){return _0x253268;};return a291_0xfbe5();}import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a291_0x4959(_0x260a49,_0x16aafa){_0x260a49=_0x260a49-0x131;const _0xfbe59d=a291_0xfbe5();let _0x4959ad=_0xfbe59d[_0x260a49];return _0x4959ad;}export class TemplateReplacer{static[a291_0x55400f(0x162)](_0x1ee965){const _0x27a083=a291_0x55400f;return String(_0x1ee965)[_0x27a083(0x168)](0x2,'0');}static[a291_0x55400f(0x151)](_0x38062d){const _0x174402=a291_0x55400f,_0x4ae494=_0x38062d[_0x174402(0x164)](),_0x3aaae0=this[_0x174402(0x162)](_0x38062d['getMonth']()+0x1),_0x52dd13=this[_0x174402(0x162)](_0x38062d[_0x174402(0x132)]()),_0x296bc8=this[_0x174402(0x162)](_0x38062d[_0x174402(0x13c)]()),_0x1ae71f=this['pad'](_0x38062d['getMinutes']()),_0x37bdf9=this[_0x174402(0x162)](_0x38062d['getSeconds']());return{'createdAt':_0x4ae494+'-'+_0x3aaae0+'-'+_0x52dd13+'\x20'+_0x296bc8+':'+_0x1ae71f+':'+_0x37bdf9,'createdDate':_0x4ae494+'-'+_0x3aaae0+'-'+_0x52dd13,'createdTime':_0x296bc8+':'+_0x1ae71f+':'+_0x37bdf9};}static[a291_0x55400f(0x159)](_0x364953){const _0x5cfc4e=a291_0x55400f,_0x548f28=_0x364953[_0x5cfc4e(0x13a)]('/')[_0x5cfc4e(0x172)]()||_0x364953;return _0x548f28['split']('-')[_0x5cfc4e(0x167)](_0x2dc94c=>_0x2dc94c[_0x5cfc4e(0x137)](0x0)[_0x5cfc4e(0x157)]()+_0x2dc94c['slice'](0x1)[_0x5cfc4e(0x133)]())['join']('');}static[a291_0x55400f(0x156)](_0x5836fc){const _0x45ca1b=a291_0x55400f,_0x31bf99=_0x5836fc['split']('/')[_0x45ca1b(0x172)]()||_0x5836fc;return _0x31bf99[_0x45ca1b(0x13a)]('-')['map'](_0x4cada1=>_0x4cada1[_0x45ca1b(0x137)](0x0)[_0x45ca1b(0x157)]()+_0x4cada1[_0x45ca1b(0x141)](0x1)[_0x45ca1b(0x133)]())['join']('\x20');}static[a291_0x55400f(0x147)](_0x5881b4,_0x2cbca7,_0xd1606d){const _0x3c3742=a291_0x55400f,_0x49d270=this[_0x3c3742(0x159)](_0x2cbca7),_0x1f0e31=this[_0x3c3742(0x156)](_0x2cbca7),{createdAt:_0x8b99bb,createdDate:_0xc9dcfc,createdTime:_0x1910b7}=this[_0x3c3742(0x151)](new Date());let _0x23399a=_0x5881b4[_0x3c3742(0x160)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x49d270)[_0x3c3742(0x160)](/\{DisplayTitle\}/g,_0x1f0e31)['replace'](/\{PageName\}/g,_0x2cbca7)[_0x3c3742(0x160)](/\{TemplateName\}/g,_0xd1606d)[_0x3c3742(0x160)](/\{CreatedAt\}/g,_0x8b99bb)[_0x3c3742(0x160)](/\{CreatedDate\}/g,_0xc9dcfc)[_0x3c3742(0x160)](/\{CreatedTime\}/g,_0x1910b7);return _0x23399a;}static[a291_0x55400f(0x169)](_0x187861,_0x43e3a7,_0x23fc44,_0x304a31,_0x541402,_0x56fe3f,_0x5a3663,_0xd42287){const _0x559d78=a291_0x55400f,_0x59790a=new Date(),_0x22a5b1=_0x59790a[_0x559d78(0x163)](),_0x2e3aea=_0x23fc44[_0x559d78(0x167)](_0x477678=>{const _0x1570f0=_0x559d78,_0x6fd3f4=[_0x1570f0(0x16b)+_0x477678[_0x1570f0(0x143)]+'\x22','tableName:\x20\x22'+_0x477678[_0x1570f0(0x14d)]+'\x22',_0x1570f0(0x144)+_0x477678[_0x1570f0(0x153)]+'\x22'];return _0x477678[_0x1570f0(0x158)]&&_0x6fd3f4[_0x1570f0(0x142)](_0x1570f0(0x154)+_0x477678[_0x1570f0(0x158)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x6fd3f4[_0x1570f0(0x170)](',\x20')+'\x20},';})[_0x559d78(0x170)](''),_0x547ee3=_0x304a31||_0x23fc44[0x0]?.[_0x559d78(0x158)]||_0x559d78(0x131);let _0x1d6914=_0x187861[_0x559d78(0x160)](/\{AppCode\}/g,_0x43e3a7)[_0x559d78(0x160)](/\{ModelConfigs\}/g,_0x2e3aea)[_0x559d78(0x160)](/\{ExampleModelName\}/g,_0x547ee3)['replace'](/\{ApiFileName\}/g,_0x541402||_0x559d78(0x161))[_0x559d78(0x160)](/\{ConfigName\}/g,_0x56fe3f||_0x559d78(0x15f))[_0x559d78(0x160)](/\{ClientConfigParam\}/g,_0x5a3663||'')[_0x559d78(0x160)](/\{VarPrefix\}/g,_0xd42287||_0x559d78(0x14a))[_0x559d78(0x160)](/\{CreatedAt\}/g,_0x22a5b1);return _0x1d6914;}static async[a291_0x55400f(0x15c)](_0x292db8,_0xc9934,_0x27ea85,_0x41a614,_0x1cafb8=!![]){const _0x143d08=a291_0x55400f,_0x456ffe=Date[_0x143d08(0x16f)]();try{_0x1cafb8&&logger[_0x143d08(0x16d)](_0x143d08(0x16a),'Starting\x20template\x20content\x20replacement',{'templatePath':_0x292db8,'targetPath':_0xc9934,'pageName':_0x27ea85,'templateName':_0x41a614});await a291_0x445534[_0x143d08(0x13e)][_0x143d08(0x166)](_0xc9934,{'recursive':!![]}),await this[_0x143d08(0x15a)](_0x292db8,_0xc9934,_0x27ea85,_0x41a614);if(_0x1cafb8){const _0x463eb1=Date[_0x143d08(0x16f)]()-_0x456ffe;logger[_0x143d08(0x15d)](_0x143d08(0x16a),_0x143d08(0x138),_0x463eb1,{'pageName':_0x27ea85,'templateName':_0x41a614});}}catch(_0x201310){if(_0x1cafb8){const _0x31c899=Date[_0x143d08(0x16f)]()-_0x456ffe;logger[_0x143d08(0x13d)](_0x143d08(0x16a),_0x143d08(0x134),{'templatePath':_0x292db8,'targetPath':_0xc9934,'pageName':_0x27ea85,'templateName':_0x41a614,'error':_0x201310 instanceof Error?_0x201310[_0x143d08(0x174)]:String(_0x201310),'duration':_0x31c899});}throw _0x201310;}}static async[a291_0x55400f(0x15a)](_0x31c464,_0x2d6996,_0x443620,_0x3630c1){const _0x4b7b5f=a291_0x55400f,_0x5505c9=await a291_0x445534['promises'][_0x4b7b5f(0x16e)](_0x31c464,{'withFileTypes':!![]});for(const _0x33f7f3 of _0x5505c9){const _0x44e47d=a291_0x5e5971[_0x4b7b5f(0x170)](_0x31c464,_0x33f7f3[_0x4b7b5f(0x153)]);let _0x505c35=a291_0x5e5971[_0x4b7b5f(0x170)](_0x2d6996,_0x33f7f3[_0x4b7b5f(0x153)]);_0x33f7f3['name'][_0x4b7b5f(0x149)](_0x4b7b5f(0x13f))&&(_0x505c35=a291_0x5e5971[_0x4b7b5f(0x170)](_0x2d6996,_0x33f7f3['name'][_0x4b7b5f(0x160)](/\.tpl$/,'')));if(_0x33f7f3[_0x4b7b5f(0x148)]())await a291_0x445534['promises'][_0x4b7b5f(0x166)](_0x505c35,{'recursive':!![]}),await this[_0x4b7b5f(0x15a)](_0x44e47d,_0x505c35,_0x443620,_0x3630c1);else _0x33f7f3[_0x4b7b5f(0x175)]()&&await this[_0x4b7b5f(0x14c)](_0x44e47d,_0x505c35,_0x443620,_0x3630c1);}}static async['processFile'](_0x1cd668,_0x29282c,_0x54efc0,_0x554107){const _0x4ac4cd=a291_0x55400f,_0x488043=a291_0x5e5971[_0x4ac4cd(0x15b)](_0x1cd668)[_0x4ac4cd(0x133)]();_0x1cd668[_0x4ac4cd(0x149)](_0x4ac4cd(0x13f))&&(_0x29282c=_0x29282c['replace'](/\.tpl$/,''));const _0x54938a=['.tsx',_0x4ac4cd(0x139),_0x4ac4cd(0x155),_0x4ac4cd(0x146),_0x4ac4cd(0x140),_0x4ac4cd(0x145),_0x4ac4cd(0x15e),'.scss','.tpl'];if(_0x54938a[_0x4ac4cd(0x14e)](_0x488043)||_0x1cd668['endsWith']('.tpl')){const _0x31eff2=await a291_0x445534[_0x4ac4cd(0x13e)]['readFile'](_0x1cd668,_0x4ac4cd(0x171)),_0x3994dc=this[_0x4ac4cd(0x147)](_0x31eff2,_0x54efc0,_0x554107);await a291_0x445534[_0x4ac4cd(0x13e)][_0x4ac4cd(0x136)](_0x29282c,_0x3994dc,'utf8');}else await a291_0x445534[_0x4ac4cd(0x13e)]['copyFile'](_0x1cd668,_0x29282c);}}
1
+ const a299_0x3d3eeb=a299_0x3040;(function(_0x24548b,_0x4935cc){const _0x2f3c50=a299_0x3040,_0x3e02de=_0x24548b();while(!![]){try{const _0x570d12=parseInt(_0x2f3c50(0x18c))/0x1+parseInt(_0x2f3c50(0x197))/0x2+parseInt(_0x2f3c50(0x17f))/0x3+parseInt(_0x2f3c50(0x18d))/0x4*(-parseInt(_0x2f3c50(0x17c))/0x5)+parseInt(_0x2f3c50(0x199))/0x6*(parseInt(_0x2f3c50(0x170))/0x7)+-parseInt(_0x2f3c50(0x181))/0x8+parseInt(_0x2f3c50(0x19f))/0x9*(-parseInt(_0x2f3c50(0x180))/0xa);if(_0x570d12===_0x4935cc)break;else _0x3e02de['push'](_0x3e02de['shift']());}catch(_0x5caadf){_0x3e02de['push'](_0x3e02de['shift']());}}}(a299_0x339f,0x35bc2));function a299_0x3040(_0x216d54,_0x3f7c08){_0x216d54=_0x216d54-0x15f;const _0x339f62=a299_0x339f();let _0x3040cc=_0x339f62[_0x216d54];return _0x3040cc;}import a299_0x2ee1f9 from'node:fs';import a299_0x253faa from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();function a299_0x339f(){const _0x2e1c55=['pop','.scss','extname','getMonth','.js','getHours','error','datasetCode:\x20\x22','Template\x20content\x20replacement\x20completed','.json','.jsx','isFile','replace','Starting\x20template\x20content\x20replacement','toComponentName','1807932XOIAkg','toLowerCase','push','template','processTemplate','utf8','alias:\x20\x22','alias','join','toUpperCase','charAt','getFullYear','633210sFbDkm','\x20},','.tsx','648981laMaTW','10gkHwgh','1148672LjIsGf','isDirectory','pad','includes','info','split','processFile','copyFile','.md','endsWith','.tpl','388065TsAiHN','4MsTANS','tableName:\x20\x22','toISOString','.ts','name','toDisplayTitle','slice','now','map','tableName','2538Yftzpd','promises','6KanbXK','getDate','message','mkdir','api','readFile','3362517bKaeXZ','processDirectory','success','replaceContent','Template\x20content\x20replacement\x20failed'];a299_0x339f=function(){return _0x2e1c55;};return a299_0x339f();}export class TemplateReplacer{static[a299_0x3d3eeb(0x183)](_0xacb304){return String(_0xacb304)['padStart'](0x2,'0');}static['formatLocalTimestamp'](_0x363163){const _0xc3372f=a299_0x3d3eeb,_0x22c017=_0x363163[_0xc3372f(0x17b)](),_0x2be68c=this[_0xc3372f(0x183)](_0x363163[_0xc3372f(0x164)]()+0x1),_0x500e7a=this[_0xc3372f(0x183)](_0x363163[_0xc3372f(0x19a)]()),_0x4b60e5=this[_0xc3372f(0x183)](_0x363163[_0xc3372f(0x166)]()),_0x46c390=this[_0xc3372f(0x183)](_0x363163['getMinutes']()),_0x355611=this['pad'](_0x363163['getSeconds']());return{'createdAt':_0x22c017+'-'+_0x2be68c+'-'+_0x500e7a+'\x20'+_0x4b60e5+':'+_0x46c390+':'+_0x355611,'createdDate':_0x22c017+'-'+_0x2be68c+'-'+_0x500e7a,'createdTime':_0x4b60e5+':'+_0x46c390+':'+_0x355611};}static[a299_0x3d3eeb(0x16f)](_0xcd1401){const _0x19b398=a299_0x3d3eeb,_0x72831e=_0xcd1401[_0x19b398(0x186)]('/')[_0x19b398(0x161)]()||_0xcd1401;return _0x72831e[_0x19b398(0x186)]('-')[_0x19b398(0x195)](_0x35e725=>_0x35e725['charAt'](0x0)[_0x19b398(0x179)]()+_0x35e725['slice'](0x1)[_0x19b398(0x171)]())['join']('');}static[a299_0x3d3eeb(0x192)](_0x5b6e65){const _0x29c120=a299_0x3d3eeb,_0x48bcd5=_0x5b6e65[_0x29c120(0x186)]('/')[_0x29c120(0x161)]()||_0x5b6e65;return _0x48bcd5[_0x29c120(0x186)]('-')[_0x29c120(0x195)](_0x23673b=>_0x23673b[_0x29c120(0x17a)](0x0)[_0x29c120(0x179)]()+_0x23673b[_0x29c120(0x193)](0x1)['toLowerCase']())[_0x29c120(0x178)]('\x20');}static[a299_0x3d3eeb(0x15f)](_0x17fea5,_0x2c629d,_0x204536){const _0x28c3d7=a299_0x3d3eeb,_0x478356=this['toComponentName'](_0x2c629d),_0x506ca1=this[_0x28c3d7(0x192)](_0x2c629d),{createdAt:_0x4628f6,createdDate:_0x1cbe86,createdTime:_0x48f0fb}=this['formatLocalTimestamp'](new Date());let _0x4fd1b2=_0x17fea5[_0x28c3d7(0x16d)](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x478356)[_0x28c3d7(0x16d)](/\{DisplayTitle\}/g,_0x506ca1)['replace'](/\{PageName\}/g,_0x2c629d)[_0x28c3d7(0x16d)](/\{TemplateName\}/g,_0x204536)[_0x28c3d7(0x16d)](/\{CreatedAt\}/g,_0x4628f6)[_0x28c3d7(0x16d)](/\{CreatedDate\}/g,_0x1cbe86)['replace'](/\{CreatedTime\}/g,_0x48f0fb);return _0x4fd1b2;}static['replaceApiContent'](_0x3b68bf,_0x5273ca,_0x88ef3d,_0x1affab,_0x438e56,_0x278859,_0x50d0d3,_0x463747){const _0x1d5f0e=a299_0x3d3eeb,_0x3c9536=new Date(),_0x2189a4=_0x3c9536[_0x1d5f0e(0x18f)](),_0x132f8b=_0x88ef3d[_0x1d5f0e(0x195)](_0x1b053f=>{const _0x139972=_0x1d5f0e,_0x217384=[_0x139972(0x168)+_0x1b053f['datasetCode']+'\x22',_0x139972(0x18e)+_0x1b053f[_0x139972(0x196)]+'\x22','name:\x20\x22'+_0x1b053f[_0x139972(0x191)]+'\x22'];return _0x1b053f[_0x139972(0x177)]&&_0x217384[_0x139972(0x172)](_0x139972(0x176)+_0x1b053f[_0x139972(0x177)]+'\x22'),'\x0a\x20\x20\x20\x20{\x20'+_0x217384['join'](',\x20')+_0x139972(0x17d);})['join'](''),_0x479922=_0x1affab||_0x88ef3d[0x0]?.[_0x1d5f0e(0x177)]||'YourModel';let _0x461b58=_0x3b68bf[_0x1d5f0e(0x16d)](/\{AppCode\}/g,_0x5273ca)[_0x1d5f0e(0x16d)](/\{ModelConfigs\}/g,_0x132f8b)[_0x1d5f0e(0x16d)](/\{ExampleModelName\}/g,_0x479922)[_0x1d5f0e(0x16d)](/\{ApiFileName\}/g,_0x438e56||_0x1d5f0e(0x19d))[_0x1d5f0e(0x16d)](/\{ConfigName\}/g,_0x278859||'default')[_0x1d5f0e(0x16d)](/\{ClientConfigParam\}/g,_0x50d0d3||'')[_0x1d5f0e(0x16d)](/\{VarPrefix\}/g,_0x463747||'LOVRABET')[_0x1d5f0e(0x16d)](/\{CreatedAt\}/g,_0x2189a4);return _0x461b58;}static async[a299_0x3d3eeb(0x174)](_0x2837ea,_0xddab9d,_0x4026b1,_0x730cab,_0x5c23b7=!![]){const _0x27bf60=a299_0x3d3eeb,_0x98322e=Date[_0x27bf60(0x194)]();try{_0x5c23b7&&logger[_0x27bf60(0x185)](_0x27bf60(0x173),_0x27bf60(0x16e),{'templatePath':_0x2837ea,'targetPath':_0xddab9d,'pageName':_0x4026b1,'templateName':_0x730cab});await a299_0x2ee1f9[_0x27bf60(0x198)]['mkdir'](_0xddab9d,{'recursive':!![]}),await this[_0x27bf60(0x1a0)](_0x2837ea,_0xddab9d,_0x4026b1,_0x730cab);if(_0x5c23b7){const _0x2bdb51=Date[_0x27bf60(0x194)]()-_0x98322e;logger[_0x27bf60(0x1a1)](_0x27bf60(0x173),_0x27bf60(0x169),_0x2bdb51,{'pageName':_0x4026b1,'templateName':_0x730cab});}}catch(_0x4e813d){if(_0x5c23b7){const _0x87d1c5=Date['now']()-_0x98322e;logger[_0x27bf60(0x167)](_0x27bf60(0x173),_0x27bf60(0x160),{'templatePath':_0x2837ea,'targetPath':_0xddab9d,'pageName':_0x4026b1,'templateName':_0x730cab,'error':_0x4e813d instanceof Error?_0x4e813d[_0x27bf60(0x19b)]:String(_0x4e813d),'duration':_0x87d1c5});}throw _0x4e813d;}}static async[a299_0x3d3eeb(0x1a0)](_0x4c3ef0,_0x1375a3,_0x5befb7,_0x5ab7cc){const _0x1612c3=a299_0x3d3eeb,_0x27d206=await a299_0x2ee1f9[_0x1612c3(0x198)]['readdir'](_0x4c3ef0,{'withFileTypes':!![]});for(const _0x4c3edd of _0x27d206){const _0x13cf72=a299_0x253faa[_0x1612c3(0x178)](_0x4c3ef0,_0x4c3edd[_0x1612c3(0x191)]);let _0x4b11d1=a299_0x253faa[_0x1612c3(0x178)](_0x1375a3,_0x4c3edd[_0x1612c3(0x191)]);_0x4c3edd['name'][_0x1612c3(0x18a)](_0x1612c3(0x18b))&&(_0x4b11d1=a299_0x253faa[_0x1612c3(0x178)](_0x1375a3,_0x4c3edd['name']['replace'](/\.tpl$/,'')));if(_0x4c3edd[_0x1612c3(0x182)]())await a299_0x2ee1f9[_0x1612c3(0x198)][_0x1612c3(0x19c)](_0x4b11d1,{'recursive':!![]}),await this[_0x1612c3(0x1a0)](_0x13cf72,_0x4b11d1,_0x5befb7,_0x5ab7cc);else _0x4c3edd[_0x1612c3(0x16c)]()&&await this[_0x1612c3(0x187)](_0x13cf72,_0x4b11d1,_0x5befb7,_0x5ab7cc);}}static async['processFile'](_0x58ded6,_0x1b067e,_0x3f91eb,_0x52d64c){const _0x531f09=a299_0x3d3eeb,_0x56408b=a299_0x253faa[_0x531f09(0x163)](_0x58ded6)['toLowerCase']();_0x58ded6['endsWith']('.tpl')&&(_0x1b067e=_0x1b067e['replace'](/\.tpl$/,''));const _0x9d710f=[_0x531f09(0x17e),_0x531f09(0x190),_0x531f09(0x16b),_0x531f09(0x165),_0x531f09(0x16a),_0x531f09(0x189),'.css',_0x531f09(0x162),_0x531f09(0x18b)];if(_0x9d710f[_0x531f09(0x184)](_0x56408b)||_0x58ded6[_0x531f09(0x18a)](_0x531f09(0x18b))){const _0x4464cd=await a299_0x2ee1f9[_0x531f09(0x198)][_0x531f09(0x19e)](_0x58ded6,'utf8'),_0x1af412=this[_0x531f09(0x15f)](_0x4464cd,_0x3f91eb,_0x52d64c);await a299_0x2ee1f9['promises']['writeFile'](_0x1b067e,_0x1af412,_0x531f09(0x175));}else await a299_0x2ee1f9[_0x531f09(0x198)][_0x531f09(0x188)](_0x58ded6,_0x1b067e);}}