@lovrabet/rabetbase-cli 2.5.0-beta.1 → 2.5.0-beta.3

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 (298) 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.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/members-list.js +1 -1
  23. package/lib/commands/app/remote-directory.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/async-task.js +1 -1
  48. package/lib/commands/common/dry-run.js +1 -1
  49. package/lib/commands/common/flags.js +1 -1
  50. package/lib/commands/common/local-file.js +1 -1
  51. package/lib/commands/common/validate.js +1 -1
  52. package/lib/commands/config/delete.js +1 -1
  53. package/lib/commands/config/get.js +1 -1
  54. package/lib/commands/config/index.js +1 -1
  55. package/lib/commands/config/init.js +1 -1
  56. package/lib/commands/config/list.js +1 -1
  57. package/lib/commands/config/set.js +1 -1
  58. package/lib/commands/config/shared.js +1 -1
  59. package/lib/commands/dataset/business-group-update.js +1 -1
  60. package/lib/commands/dataset/business-groups.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff-refresh-start.js +1 -1
  87. package/lib/commands/db/diff-refresh-status.js +1 -1
  88. package/lib/commands/db/diff.js +1 -1
  89. package/lib/commands/db/index.js +1 -1
  90. package/lib/commands/db/list.js +1 -1
  91. package/lib/commands/db/shared.js +1 -1
  92. package/lib/commands/db/tables.js +1 -1
  93. package/lib/commands/db/test.js +1 -1
  94. package/lib/commands/db/update.js +1 -1
  95. package/lib/commands/doctor.js +1 -1
  96. package/lib/commands/file/index.js +1 -1
  97. package/lib/commands/issue/index.js +1 -1
  98. package/lib/commands/issue/nudge.js +1 -1
  99. package/lib/commands/issue/report.js +1 -1
  100. package/lib/commands/issue/shared.js +1 -1
  101. package/lib/commands/kb/create.js +1 -1
  102. package/lib/commands/kb/delete.js +1 -1
  103. package/lib/commands/kb/detail.js +1 -1
  104. package/lib/commands/kb/index.js +1 -1
  105. package/lib/commands/kb/list.js +1 -1
  106. package/lib/commands/kb/search.js +1 -1
  107. package/lib/commands/kb/shared.js +1 -1
  108. package/lib/commands/kb/update.js +1 -1
  109. package/lib/commands/logs/index.js +1 -1
  110. package/lib/commands/menu/asset-update.js +1 -1
  111. package/lib/commands/menu/delete.js +1 -1
  112. package/lib/commands/menu/external-link-create.js +1 -1
  113. package/lib/commands/menu/external-link-update.js +1 -1
  114. package/lib/commands/menu/group-create.js +1 -1
  115. package/lib/commands/menu/group-update.js +1 -1
  116. package/lib/commands/menu/index.js +1 -1
  117. package/lib/commands/menu/list.js +1 -1
  118. package/lib/commands/menu/move.js +1 -1
  119. package/lib/commands/menu/regroup-start.js +1 -1
  120. package/lib/commands/menu/rename.js +1 -1
  121. package/lib/commands/menu/shared/compare-table.js +1 -1
  122. package/lib/commands/menu/shared/delete-plan.js +1 -1
  123. package/lib/commands/menu/shared/facts.js +1 -1
  124. package/lib/commands/menu/shared/index.js +1 -1
  125. package/lib/commands/menu/shared/inquirer.js +1 -1
  126. package/lib/commands/menu/shared/local-pages.js +1 -1
  127. package/lib/commands/menu/shared/logic.js +1 -1
  128. package/lib/commands/menu/shared/mutations.js +1 -1
  129. package/lib/commands/menu/shared/service.js +1 -1
  130. package/lib/commands/menu/shared/sync-core.js +1 -1
  131. package/lib/commands/menu/shared/update-core.js +1 -1
  132. package/lib/commands/menu/shared/valid-url.js +1 -1
  133. package/lib/commands/menu/sync.js +1 -1
  134. package/lib/commands/menu/visibility-update.js +1 -1
  135. package/lib/commands/notification/config-create.js +1 -1
  136. package/lib/commands/notification/config-delete.js +1 -1
  137. package/lib/commands/notification/config-list.js +1 -1
  138. package/lib/commands/notification/config-update.js +1 -1
  139. package/lib/commands/notification/index.js +1 -1
  140. package/lib/commands/notification/shared.js +1 -1
  141. package/lib/commands/ocr/index.js +1 -1
  142. package/lib/commands/page/create.js +1 -1
  143. package/lib/commands/page/custom/detail.js +1 -1
  144. package/lib/commands/page/custom/list.js +1 -1
  145. package/lib/commands/page/custom/publish.js +1 -1
  146. package/lib/commands/page/custom/shared.js +1 -1
  147. package/lib/commands/page/custom/syntax.js +1 -1
  148. package/lib/commands/page/custom/template.js +1 -1
  149. package/lib/commands/page/custom/update.js +1 -1
  150. package/lib/commands/page/data-list-status.js +1 -1
  151. package/lib/commands/page/generate-start.js +1 -1
  152. package/lib/commands/page/generate-status.js +1 -1
  153. package/lib/commands/page/index.js +1 -1
  154. package/lib/commands/page/pull.js +1 -1
  155. package/lib/commands/page/push.js +1 -1
  156. package/lib/commands/page/relation-audit.js +1 -1
  157. package/lib/commands/page/restore.js +1 -1
  158. package/lib/commands/page/shared.js +1 -1
  159. package/lib/commands/page/sync.js +1 -1
  160. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  161. package/lib/commands/project/create/format-elapsed.js +1 -1
  162. package/lib/commands/project/create/main.js +1 -1
  163. package/lib/commands/project/create/materialize-project-template.js +1 -1
  164. package/lib/commands/project/create/project-name.js +1 -1
  165. package/lib/commands/project/create/project-template-archive.js +1 -1
  166. package/lib/commands/project/create/project-template-path.js +1 -1
  167. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  168. package/lib/commands/project/create/use-format-code.js +1 -1
  169. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  170. package/lib/commands/project/index.js +1 -1
  171. package/lib/commands/project/upgrade.js +1 -1
  172. package/lib/commands/registry.js +1 -1
  173. package/lib/commands/role/delete.js +1 -1
  174. package/lib/commands/role/detail.js +1 -1
  175. package/lib/commands/role/index.js +1 -1
  176. package/lib/commands/role/list.js +1 -1
  177. package/lib/commands/role/shared.js +1 -1
  178. package/lib/commands/role/update.js +1 -1
  179. package/lib/commands/role/user-add.js +1 -1
  180. package/lib/commands/role/user-remove.js +1 -1
  181. package/lib/commands/role/user-resolve.js +1 -1
  182. package/lib/commands/run/index.js +1 -1
  183. package/lib/commands/schema.js +1 -1
  184. package/lib/commands/sql/create.js +1 -1
  185. package/lib/commands/sql/delete.js +1 -1
  186. package/lib/commands/sql/detail.js +1 -1
  187. package/lib/commands/sql/exec.js +1 -1
  188. package/lib/commands/sql/index.js +1 -1
  189. package/lib/commands/sql/list.js +1 -1
  190. package/lib/commands/sql/pull.js +1 -1
  191. package/lib/commands/sql/push.js +1 -1
  192. package/lib/commands/sql/shared.js +1 -1
  193. package/lib/commands/sql/status.js +1 -1
  194. package/lib/commands/sql/validate.js +1 -1
  195. package/lib/commands/task/index.js +1 -1
  196. package/lib/commands/task/status.js +1 -1
  197. package/lib/commands/tenant/index.js +1 -1
  198. package/lib/commands/tenant/members-list.js +1 -1
  199. package/lib/commands/tenant/shared.js +1 -1
  200. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  201. package/lib/commands/user-account/index.js +1 -1
  202. package/lib/commands/workspace/add.js +1 -1
  203. package/lib/commands/workspace/index.js +1 -1
  204. package/lib/commands/workspace/remove.js +1 -1
  205. package/lib/config/domain-config.js +1 -1
  206. package/lib/config/schema.js +1 -1
  207. package/lib/constant/cdn.js +1 -1
  208. package/lib/constant/cli.js +1 -1
  209. package/lib/constant/defaults.js +1 -1
  210. package/lib/constant/domain.js +1 -1
  211. package/lib/constant/env.js +1 -1
  212. package/lib/constant/output.js +1 -1
  213. package/lib/constant/paths.js +1 -1
  214. package/lib/constant/region.js +1 -1
  215. package/lib/constant/risk.js +1 -1
  216. package/lib/context/app-resolver.js +1 -1
  217. package/lib/context/auth-resolver.js +1 -1
  218. package/lib/context/config-loader.js +1 -1
  219. package/lib/context.js +1 -1
  220. package/lib/core/alias-resolver.js +1 -1
  221. package/lib/core/api-client.js +1 -1
  222. package/lib/core/bff/config.js +1 -1
  223. package/lib/core/bff/file-system.js +1 -1
  224. package/lib/core/bff/hash.js +1 -1
  225. package/lib/core/bff/lock.js +1 -1
  226. package/lib/core/bff/utils.js +1 -1
  227. package/lib/core/db-resolver.js +1 -1
  228. package/lib/core/page/file-system.js +1 -1
  229. package/lib/core/page/hash.js +1 -1
  230. package/lib/core/page/lock.js +1 -1
  231. package/lib/core/sql-index-auditor.js +1 -1
  232. package/lib/core/sql-sync/config.js +1 -1
  233. package/lib/core/sql-sync/file-system.js +1 -1
  234. package/lib/core/sql-sync/hash.js +1 -1
  235. package/lib/core/sql-sync/lock.js +1 -1
  236. package/lib/core/sql-sync/utils.js +1 -1
  237. package/lib/core/sql-validator.js +1 -1
  238. package/lib/errors.js +1 -1
  239. package/lib/framework/build-all-flags.js +1 -1
  240. package/lib/framework/error-output.js +1 -1
  241. package/lib/framework/explicit-yes.js +1 -1
  242. package/lib/framework/flags.js +1 -1
  243. package/lib/framework/help.js +1 -1
  244. package/lib/framework/index.js +1 -1
  245. package/lib/framework/output.js +1 -1
  246. package/lib/framework/response.js +1 -1
  247. package/lib/framework/runner-alias.js +1 -1
  248. package/lib/framework/runner.js +1 -1
  249. package/lib/framework/schema-export.js +1 -1
  250. package/lib/framework/types.js +1 -1
  251. package/lib/generated/build-info.d.ts +4 -4
  252. package/lib/generated/build-info.js +1 -1
  253. package/lib/help.js +1 -1
  254. package/lib/postinstall.js +1 -1
  255. package/lib/runtime/confirmation.js +1 -1
  256. package/lib/runtime/event.js +1 -1
  257. package/lib/runtime/index.js +1 -1
  258. package/lib/runtime/queue.js +1 -1
  259. package/lib/runtime/resolve.js +1 -1
  260. package/lib/skills/builtin-skill.js +1 -1
  261. package/lib/skills/main.js +1 -1
  262. package/lib/skills/npx-skills-add.js +1 -1
  263. package/lib/skills/skill-presence.js +1 -1
  264. package/lib/telemetry/cli-command-trace.js +1 -1
  265. package/lib/telemetry/cli-help-trace.js +1 -1
  266. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  267. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  268. package/lib/telemetry/send-cli-trace-log.js +1 -1
  269. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  270. package/lib/utils/ai_config.js +1 -1
  271. package/lib/utils/apply-jq-filter.js +1 -1
  272. package/lib/utils/cdn-config.js +1 -1
  273. package/lib/utils/check-sdk-version.js +1 -1
  274. package/lib/utils/cli-version-check.js +1 -1
  275. package/lib/utils/cli-version-policy.js +1 -1
  276. package/lib/utils/config.js +1 -1
  277. package/lib/utils/entity-with-id.js +1 -1
  278. package/lib/utils/file-utils.js +1 -1
  279. package/lib/utils/guides-cdn.js +1 -1
  280. package/lib/utils/http-client.js +1 -1
  281. package/lib/utils/is-non-interactive.js +1 -1
  282. package/lib/utils/logger.js +1 -1
  283. package/lib/utils/params.js +1 -1
  284. package/lib/utils/platform.js +1 -1
  285. package/lib/utils/sleep.js +1 -1
  286. package/lib/utils/template-replacer.js +1 -1
  287. package/lib/utils/update-notice.js +1 -1
  288. package/lib/utils/version.js +1 -1
  289. package/lib/utils/with-active-cookie.js +1 -1
  290. package/lib/utils/write-cli-side-channel.js +1 -1
  291. package/package.json +1 -1
  292. package/skills/rabetbase/SKILL.md +1 -1
  293. package/skills/rabetbase/guides/custom-page-workflow.md +1 -1
  294. package/skills/rabetbase/references/rabetbase-config.md +1 -1
  295. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +17 -6
  296. package/skills/rabetbase/references/rabetbase-kb.md +1 -1
  297. package/skills/rabetbase/references/rabetbase-page-custom-list.md +5 -2
  298. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- (function(_0x448309,_0x681e25){const _0x1c1e8d=a270_0x3837,_0x39cc9a=_0x448309();while(!![]){try{const _0xe0a55d=-parseInt(_0x1c1e8d(0x89))/0x1+parseInt(_0x1c1e8d(0x88))/0x2+parseInt(_0x1c1e8d(0x87))/0x3*(-parseInt(_0x1c1e8d(0x83))/0x4)+parseInt(_0x1c1e8d(0x86))/0x5*(-parseInt(_0x1c1e8d(0x84))/0x6)+-parseInt(_0x1c1e8d(0x7f))/0x7*(parseInt(_0x1c1e8d(0x7e))/0x8)+-parseInt(_0x1c1e8d(0x80))/0x9*(parseInt(_0x1c1e8d(0x82))/0xa)+parseInt(_0x1c1e8d(0x7b))/0xb;if(_0xe0a55d===_0x681e25)break;else _0x39cc9a['push'](_0x39cc9a['shift']());}catch(_0x1ae4dc){_0x39cc9a['push'](_0x39cc9a['shift']());}}}(a270_0x3dca,0x700ed));function a270_0x3837(_0x1baad0,_0x2dfa45){_0x1baad0=_0x1baad0-0x7a;const _0x3dcae7=a270_0x3dca();let _0x3837e6=_0x3dcae7[_0x1baad0];return _0x3837e6;}function a270_0x3dca(){const _0x355f53=['2983379yLUeKE','9lOtHfJ','then','1176460cQTwDg','24yWAsbx','297798DFvoRE','SIGINT','65cLiGHe','90510DHQyKx','155748fgzEIc','261228iOfnYO','beforeExit','once','26824952cIijni','exit','SIGTERM','16nhBcvM'];a270_0x3dca=function(){return _0x355f53;};return a270_0x3dca();}import{shutdownTraces}from'@lovrabet/otel-logger';let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x249877=a270_0x3837;process[_0x249877(0x7a)](_0x249877(0x8a),()=>{void flushOtelNodeIfUsed();});const _0x5bffbf=()=>{const _0x31c82c=_0x249877;void flushOtelNodeIfUsed()[_0x31c82c(0x81)](()=>process[_0x31c82c(0x7c)](0x0));};process[_0x249877(0x7a)](_0x249877(0x85),_0x5bffbf),process[_0x249877(0x7a)](_0x249877(0x7d),_0x5bffbf);}export async function exitWithOtelShutdown(_0x79497d){const _0x489998=a270_0x3837;await flushOtelNodeIfUsed(),process[_0x489998(0x7c)](_0x79497d);}
1
+ (function(_0x1a494e,_0x87db5e){const _0x5d81c4=a270_0x347f,_0x20332c=_0x1a494e();while(!![]){try{const _0x39cfa0=-parseInt(_0x5d81c4(0x11f))/0x1+parseInt(_0x5d81c4(0x119))/0x2+parseInt(_0x5d81c4(0x11b))/0x3*(parseInt(_0x5d81c4(0x11a))/0x4)+-parseInt(_0x5d81c4(0x122))/0x5*(-parseInt(_0x5d81c4(0x120))/0x6)+parseInt(_0x5d81c4(0x126))/0x7+parseInt(_0x5d81c4(0x123))/0x8+-parseInt(_0x5d81c4(0x118))/0x9;if(_0x39cfa0===_0x87db5e)break;else _0x20332c['push'](_0x20332c['shift']());}catch(_0x3e7476){_0x20332c['push'](_0x20332c['shift']());}}}(a270_0x2485,0x2caa9));import{shutdownTraces}from'@lovrabet/otel-logger';function a270_0x347f(_0x3cd408,_0x53ce9e){_0x3cd408=_0x3cd408-0x118;const _0x248582=a270_0x2485();let _0x347f82=_0x248582[_0x3cd408];return _0x347f82;}let shutdownPromise=null;export async function flushOtelNodeIfUsed(){if(shutdownPromise)return shutdownPromise;return shutdownPromise=((async()=>{try{await shutdownTraces();}catch{}})()),shutdownPromise;}export function registerOtelShutdownOnExit(){const _0x370be3=a270_0x347f;process[_0x370be3(0x124)](_0x370be3(0x11d),()=>{void flushOtelNodeIfUsed();});const _0x536d09=()=>{const _0x2dd518=_0x370be3;void flushOtelNodeIfUsed()[_0x2dd518(0x11c)](()=>process[_0x2dd518(0x121)](0x0));};process[_0x370be3(0x124)](_0x370be3(0x125),_0x536d09),process[_0x370be3(0x124)](_0x370be3(0x11e),_0x536d09);}export async function exitWithOtelShutdown(_0x2e1b7a){const _0x3acc56=a270_0x347f;await flushOtelNodeIfUsed(),process[_0x3acc56(0x121)](_0x2e1b7a);}function a270_0x2485(){const _0x22dddd=['173455sQmvtr','2186056ltOeCt','once','SIGINT','600425NnqloL','5703687NMqScZ','511000XcRBhb','5540RHxjpg','195KTtoEo','then','beforeExit','SIGTERM','96007NystCC','36CBeZTe','exit'];a270_0x2485=function(){return _0x22dddd;};return a270_0x2485();}
@@ -1 +1 @@
1
- const a271_0x3a8715=a271_0x35d9;function a271_0x35d9(_0x2eb07b,_0x2f9830){_0x2eb07b=_0x2eb07b-0xa8;const _0x3e0d8d=a271_0x3e0d();let _0x35d9ea=_0x3e0d8d[_0x2eb07b];return _0x35d9ea;}(function(_0x23393c,_0x581be0){const _0xddce7d=a271_0x35d9,_0x3374ae=_0x23393c();while(!![]){try{const _0x442cf0=-parseInt(_0xddce7d(0xb9))/0x1*(-parseInt(_0xddce7d(0xaf))/0x2)+-parseInt(_0xddce7d(0xb7))/0x3*(-parseInt(_0xddce7d(0xab))/0x4)+-parseInt(_0xddce7d(0xa9))/0x5+parseInt(_0xddce7d(0xad))/0x6*(-parseInt(_0xddce7d(0xac))/0x7)+parseInt(_0xddce7d(0xb5))/0x8*(parseInt(_0xddce7d(0xb1))/0x9)+-parseInt(_0xddce7d(0xb0))/0xa*(-parseInt(_0xddce7d(0xb8))/0xb)+-parseInt(_0xddce7d(0xae))/0xc;if(_0x442cf0===_0x581be0)break;else _0x3374ae['push'](_0x3374ae['shift']());}catch(_0x1b7926){_0x3374ae['push'](_0x3374ae['shift']());}}}(a271_0x3e0d,0xb1f09));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=a271_0x3a8715(0xb2);export async function sendCliTraceLog(_0x37cd59){const _0xf1edc4=a271_0x3a8715;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x37cd59[_0xf1edc4(0xb4)]??DEFAULT_TRACE_NAME,'version':_0x37cd59[_0xf1edc4(0xb3)]??getCliVersion(),'spanName':_0x37cd59[_0xf1edc4(0xb6)],'eventType':'manual','logData':_0x37cd59[_0xf1edc4(0xa8)],..._0x37cd59['traceparent']&&{'traceparent':_0x37cd59[_0xf1edc4(0xaa)]}});}function a271_0x3e0d(){const _0xe4df65=['276CvZTvC','12857424jdHUCz','31814dYJpZV','1679610DEPpxH','9xzbREM','rabetbase-cli','version','traceName','10991408SsySiE','spanName','213yaaMHY','11yMQIUo','73OOofAP','logData','3032460wTfszB','traceparent','8732cNVZBL','68677MhYiiu'];a271_0x3e0d=function(){return _0xe4df65;};return a271_0x3e0d();}
1
+ const a271_0x313bd8=a271_0x171b;(function(_0x42f3ca,_0x35b445){const _0x56eca7=a271_0x171b,_0x32c7dd=_0x42f3ca();while(!![]){try{const _0x3baf3e=-parseInt(_0x56eca7(0x1a6))/0x1*(parseInt(_0x56eca7(0x1a7))/0x2)+-parseInt(_0x56eca7(0x1a8))/0x3*(-parseInt(_0x56eca7(0x1a9))/0x4)+-parseInt(_0x56eca7(0x19e))/0x5+parseInt(_0x56eca7(0x1ac))/0x6+parseInt(_0x56eca7(0x19f))/0x7+parseInt(_0x56eca7(0x1a1))/0x8*(parseInt(_0x56eca7(0x1a5))/0x9)+-parseInt(_0x56eca7(0x1a0))/0xa;if(_0x3baf3e===_0x35b445)break;else _0x32c7dd['push'](_0x32c7dd['shift']());}catch(_0x3580db){_0x32c7dd['push'](_0x32c7dd['shift']());}}}(a271_0x4548,0xf1375));import{sendTraceLog}from'@lovrabet/otel-logger';function a271_0x4548(){const _0x248db8=['manual','9VuBlGv','14DodwcJ','96518whVuEV','3LYesTU','2954284hspPQj','spanName','traceparent','3499284OnTgYU','5738005lqldmT','7693490ROrtRi','9824410SIKNQq','10982672iYkHdL','version','rabetbase-cli'];a271_0x4548=function(){return _0x248db8;};return a271_0x4548();}function a271_0x171b(_0x216fa4,_0x3bf2ea){_0x216fa4=_0x216fa4-0x19e;const _0x454805=a271_0x4548();let _0x171baa=_0x454805[_0x216fa4];return _0x171baa;}import{ensureCliOtelTraceConfig}from'../telemetry/ensure-cli-otel-config.js';import{getCliVersion}from'../utils/version.js';const DEFAULT_TRACE_NAME=a271_0x313bd8(0x1a3);export async function sendCliTraceLog(_0x45919a){const _0x14a17e=a271_0x313bd8;await ensureCliOtelTraceConfig(),sendTraceLog({'traceName':_0x45919a['traceName']??DEFAULT_TRACE_NAME,'version':_0x45919a[_0x14a17e(0x1a2)]??getCliVersion(),'spanName':_0x45919a[_0x14a17e(0x1aa)],'eventType':_0x14a17e(0x1a4),'logData':_0x45919a['logData'],..._0x45919a[_0x14a17e(0x1ab)]&&{'traceparent':_0x45919a['traceparent']}});}
@@ -1 +1 @@
1
- const a272_0x4306bf=a272_0x12d2;function a272_0x3383(){const _0x321c36=['440080caIfup','originalBytes','1083036ikXBZL','9354jrVpVG','91oqZXFi','13402584lNJNjW','redactionCount','18aloHkY','1895965hKiUPK','title','truncated','768368NbeLWM','48ugMUGZ','platform-issue-log-collect','sanitize','43701750eRsDHp'];a272_0x3383=function(){return _0x321c36;};return a272_0x3383();}(function(_0x213a4c,_0x145d21){const _0x515565=a272_0x12d2,_0xf3637=_0x213a4c();while(!![]){try{const _0x26e2a9=parseInt(_0x515565(0x1da))/0x1+parseInt(_0x515565(0x1db))/0x2*(parseInt(_0x515565(0x1e4))/0x3)+parseInt(_0x515565(0x1d8))/0x4+parseInt(_0x515565(0x1e0))/0x5*(parseInt(_0x515565(0x1df))/0x6)+parseInt(_0x515565(0x1dc))/0x7*(parseInt(_0x515565(0x1e3))/0x8)+parseInt(_0x515565(0x1dd))/0x9+-parseInt(_0x515565(0x1d7))/0xa;if(_0x26e2a9===_0x145d21)break;else _0xf3637['push'](_0xf3637['shift']());}catch(_0x190177){_0xf3637['push'](_0xf3637['shift']());}}}(a272_0x3383,0xbcbca));import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';function a272_0x12d2(_0xa63a2a,_0x1b9e9c){_0xa63a2a=_0xa63a2a-0x1d5;const _0x3383de=a272_0x3383();let _0x12d2fe=_0x3383de[_0xa63a2a];return _0x12d2fe;}export const PLATFORM_ISSUE_TRACE_NAME=a272_0x4306bf(0x1d5);export const PLATFORM_ISSUE_SPAN_NAME='issue.log.collect';export async function sendPlatformIssueCollectLog(_0x3d5f59){const _0x452ea1=a272_0x4306bf;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x3d5f59[_0x452ea1(0x1e1)],'issue.description':_0x3d5f59['description'],..._0x3d5f59[_0x452ea1(0x1d6)]?{'issue.description_original_bytes':_0x3d5f59[_0x452ea1(0x1d6)][_0x452ea1(0x1d9)],'issue.description_truncated':_0x3d5f59['sanitize'][_0x452ea1(0x1e2)],'issue.description_redactions':_0x3d5f59['sanitize'][_0x452ea1(0x1de)],'issue.description_redaction_kinds':_0x3d5f59[_0x452ea1(0x1d6)]['redactionKinds']['join'](',')}:{}}});}
1
+ function a272_0x1768(){const _0x3784b4=['99hvCdfM','519194llNmxb','description','734722lsbzlt','132360fRfvcu','redactionKinds','12404mwrNhb','5QQlQcN','458300ugYXdG','redactionCount','486SwAJsz','1780639bklwWK','join','issue.log.collect','sanitize','originalBytes','9VCQtNa','133398FDOSEc'];a272_0x1768=function(){return _0x3784b4;};return a272_0x1768();}const a272_0x1dcfd5=a272_0x1895;(function(_0x23590d,_0x309d2d){const _0x22e62c=a272_0x1895,_0x5076fa=_0x23590d();while(!![]){try{const _0x4a0cf6=parseInt(_0x22e62c(0x140))/0x1+-parseInt(_0x22e62c(0x142))/0x2+-parseInt(_0x22e62c(0x137))/0x3*(parseInt(_0x22e62c(0x145))/0x4)+-parseInt(_0x22e62c(0x146))/0x5*(parseInt(_0x22e62c(0x13e))/0x6)+parseInt(_0x22e62c(0x138))/0x7+-parseInt(_0x22e62c(0x143))/0x8*(parseInt(_0x22e62c(0x13d))/0x9)+parseInt(_0x22e62c(0x147))/0xa*(parseInt(_0x22e62c(0x13f))/0xb);if(_0x4a0cf6===_0x309d2d)break;else _0x5076fa['push'](_0x5076fa['shift']());}catch(_0x3ca17d){_0x5076fa['push'](_0x5076fa['shift']());}}}(a272_0x1768,0x43c24));function a272_0x1895(_0x1b34f7,_0xac89fe){_0x1b34f7=_0x1b34f7-0x136;const _0x17689c=a272_0x1768();let _0x1895db=_0x17689c[_0x1b34f7];return _0x1895db;}import{sendCliTraceLog}from'../telemetry/send-cli-trace-log.js';export const PLATFORM_ISSUE_TRACE_NAME='platform-issue-log-collect';export const PLATFORM_ISSUE_SPAN_NAME=a272_0x1dcfd5(0x13a);export async function sendPlatformIssueCollectLog(_0x55bf72){const _0x344eeb=a272_0x1dcfd5;await sendCliTraceLog({'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x55bf72['title'],'issue.description':_0x55bf72[_0x344eeb(0x141)],..._0x55bf72[_0x344eeb(0x13b)]?{'issue.description_original_bytes':_0x55bf72[_0x344eeb(0x13b)][_0x344eeb(0x13c)],'issue.description_truncated':_0x55bf72['sanitize']['truncated'],'issue.description_redactions':_0x55bf72['sanitize'][_0x344eeb(0x136)],'issue.description_redaction_kinds':_0x55bf72['sanitize'][_0x344eeb(0x144)][_0x344eeb(0x139)](',')}:{}}});}
@@ -1 +1 @@
1
- const a274_0x5212e9=a274_0x1d2e;(function(_0x8ab48d,_0x452f13){const _0x2a5e5b=a274_0x1d2e,_0x89938e=_0x8ab48d();while(!![]){try{const _0x40a1a3=parseInt(_0x2a5e5b(0x203))/0x1+-parseInt(_0x2a5e5b(0x1f3))/0x2+-parseInt(_0x2a5e5b(0x1f1))/0x3*(-parseInt(_0x2a5e5b(0x1f2))/0x4)+-parseInt(_0x2a5e5b(0x1d3))/0x5*(-parseInt(_0x2a5e5b(0x1df))/0x6)+parseInt(_0x2a5e5b(0x1e6))/0x7+parseInt(_0x2a5e5b(0x1f8))/0x8*(parseInt(_0x2a5e5b(0x1e9))/0x9)+parseInt(_0x2a5e5b(0x1fe))/0xa*(-parseInt(_0x2a5e5b(0x1ec))/0xb);if(_0x40a1a3===_0x452f13)break;else _0x89938e['push'](_0x89938e['shift']());}catch(_0x56fec3){_0x89938e['push'](_0x89938e['shift']());}}}(a274_0x46bd,0x7c143));export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x5212e9(0x1d6),'description':a274_0x5212e9(0x1e1),'folders':['.cursorrules',a274_0x5212e9(0x1d5)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1e5)}]},'windsurf':{'name':a274_0x5212e9(0x1f9),'description':a274_0x5212e9(0x1da),'folders':[a274_0x5212e9(0x1fd)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x200)}]},'claude':{'name':'Claude\x20Code','description':a274_0x5212e9(0x202),'folders':[a274_0x5212e9(0x1e7)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1f5)}]},'cline':{'name':a274_0x5212e9(0x205),'description':'Cline\x20IDE','folders':[a274_0x5212e9(0x1e3)],'files':[{'type':'file','path':a274_0x5212e9(0x1e0)}]},'codex':{'name':a274_0x5212e9(0x1d1),'description':a274_0x5212e9(0x1d0),'folders':[a274_0x5212e9(0x1e8)],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.codex/skills/lovrabet/SKILL.md'}]},'opencode':{'name':'OpenCode','description':a274_0x5212e9(0x1f6),'folders':[a274_0x5212e9(0x1d4)],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.opencode/skills/lovrabet/SKILL.md'}]},'qoder':{'name':a274_0x5212e9(0x1ff),'description':a274_0x5212e9(0x1d7),'folders':['.qoder'],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.qoder/rules/rabetbase.md'},{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1d8)}]},'codebuddy':{'name':a274_0x5212e9(0x1dd),'description':a274_0x5212e9(0x1db),'folders':[a274_0x5212e9(0x1fb)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x201)}]},'trae':{'name':a274_0x5212e9(0x1f4),'description':a274_0x5212e9(0x1e4),'folders':[a274_0x5212e9(0x1ed)],'files':[{'type':a274_0x5212e9(0x1f7),'path':'.trae/skills/lovrabet/SKILL.md'}]}};export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':'Other\x20(generic\x20template)','description':a274_0x5212e9(0x1f0),'folders':[a274_0x5212e9(0x1dc)],'files':[{'type':'file','path':a274_0x5212e9(0x1d9)}]},'antigravity':{'name':a274_0x5212e9(0x1ea),'description':a274_0x5212e9(0x1d2),'folders':[a274_0x5212e9(0x1dc)],'files':[{'type':a274_0x5212e9(0x1f7),'path':a274_0x5212e9(0x1d9)}]}};function a274_0x46bd(){const _0x32f754=['.windsurf/workflows/rabetbase.md','.codebuddy/skills/lovrabet/SKILL.md','Claude\x20Code','191533CoYVKw','opencode','Cline','cursor','Codex\x20IDE','Codex','Antigravity\x20IDE','5ntGJkF','.opencode','.cursor','Cursor','Qoder\x20IDE','.qoder/skills/lovrabet/SKILL.md','.agent/skills/lovrabet/SKILL.md','Windsurf\x20IDE','CodeBuddy\x20IDE','.agent','CodeBuddy','agent','4931814MyxDxA','.cline/skills/lovrabet/SKILL.md','Cursor\x20IDE','windsurf','.cline','Trae\x20IDE','.cursor/skills/rabetbase.md','6719573eXLvtH','.claude','.codex','9wJjgLY','Antigravity','cline','8766395LeldOf','.trae','antigravity','codex','Generic\x20template\x20fallback','3GJHJNB','489116AMAKhP','347772bsMfxN','Trae','.claude/skills/lovrabet/SKILL.md','OpenCode\x20IDE','file','1442264tydnPy','Windsurf','trae','.codebuddy','claude','.windsurf','20WnOvdQ','Qoder'];a274_0x46bd=function(){return _0x32f754;};return a274_0x46bd();}export const CORE_IDE_LIST=[a274_0x5212e9(0x1fc),a274_0x5212e9(0x1eb),'codebuddy',a274_0x5212e9(0x1ef),a274_0x5212e9(0x1cf),'opencode','qoder','trae',a274_0x5212e9(0x1e2)];export const IDE_LIST=[a274_0x5212e9(0x1ee),a274_0x5212e9(0x1fc),a274_0x5212e9(0x1eb),'codebuddy','codex',a274_0x5212e9(0x1cf),a274_0x5212e9(0x204),'qoder',a274_0x5212e9(0x1fa),a274_0x5212e9(0x1e2),a274_0x5212e9(0x1de)];function a274_0x1d2e(_0x140073,_0x44c69f){_0x140073=_0x140073-0x1cf;const _0x46bdcd=a274_0x46bd();let _0x1d2e86=_0x46bdcd[_0x140073];return _0x1d2e86;}export const ALL_CORE_IDES=[a274_0x5212e9(0x1cf),'windsurf',a274_0x5212e9(0x1fc),a274_0x5212e9(0x1eb),a274_0x5212e9(0x1ef),a274_0x5212e9(0x204),'qoder','codebuddy',a274_0x5212e9(0x1fa)];
1
+ const a274_0x53e25c=a274_0x4c78;(function(_0x5988b6,_0x3225b1){const _0x30cd4a=a274_0x4c78,_0x13dd77=_0x5988b6();while(!![]){try{const _0x55e725=parseInt(_0x30cd4a(0x16f))/0x1+-parseInt(_0x30cd4a(0x168))/0x2+parseInt(_0x30cd4a(0x15d))/0x3+-parseInt(_0x30cd4a(0x164))/0x4*(parseInt(_0x30cd4a(0x173))/0x5)+parseInt(_0x30cd4a(0x18c))/0x6+-parseInt(_0x30cd4a(0x16b))/0x7*(-parseInt(_0x30cd4a(0x18e))/0x8)+-parseInt(_0x30cd4a(0x172))/0x9*(-parseInt(_0x30cd4a(0x165))/0xa);if(_0x55e725===_0x3225b1)break;else _0x13dd77['push'](_0x13dd77['shift']());}catch(_0x515cf6){_0x13dd77['push'](_0x13dd77['shift']());}}}(a274_0x2a08,0xcb840));export const CORE_IDE_CONFIGS={'cursor':{'name':a274_0x53e25c(0x166),'description':a274_0x53e25c(0x183),'folders':[a274_0x53e25c(0x177),a274_0x53e25c(0x182)],'files':[{'type':'file','path':a274_0x53e25c(0x15e)}]},'windsurf':{'name':'Windsurf','description':a274_0x53e25c(0x17f),'folders':[a274_0x53e25c(0x15c)],'files':[{'type':'file','path':'.windsurf/workflows/rabetbase.md'}]},'claude':{'name':a274_0x53e25c(0x162),'description':'Claude\x20Code','folders':['.claude'],'files':[{'type':'file','path':a274_0x53e25c(0x170)}]},'cline':{'name':a274_0x53e25c(0x17e),'description':'Cline\x20IDE','folders':[a274_0x53e25c(0x169)],'files':[{'type':a274_0x53e25c(0x16a),'path':'.cline/skills/lovrabet/SKILL.md'}]},'codex':{'name':a274_0x53e25c(0x17b),'description':a274_0x53e25c(0x17a),'folders':['.codex'],'files':[{'type':'file','path':a274_0x53e25c(0x16c)}]},'opencode':{'name':a274_0x53e25c(0x180),'description':a274_0x53e25c(0x179),'folders':[a274_0x53e25c(0x160)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x191)}]},'qoder':{'name':a274_0x53e25c(0x176),'description':a274_0x53e25c(0x178),'folders':[a274_0x53e25c(0x15b)],'files':[{'type':'file','path':a274_0x53e25c(0x186)},{'type':a274_0x53e25c(0x16a),'path':'.qoder/skills/lovrabet/SKILL.md'}]},'codebuddy':{'name':a274_0x53e25c(0x161),'description':a274_0x53e25c(0x163),'folders':[a274_0x53e25c(0x171)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x17c)}]},'trae':{'name':a274_0x53e25c(0x18b),'description':'Trae\x20IDE','folders':[a274_0x53e25c(0x18a)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x187)}]}};function a274_0x4c78(_0x5230c2,_0xf3be72){_0x5230c2=_0x5230c2-0x15b;const _0x2a0809=a274_0x2a08();let _0x4c78fd=_0x2a0809[_0x5230c2];return _0x4c78fd;}export const IDE_CONFIGS={...CORE_IDE_CONFIGS,'agent':{'name':a274_0x53e25c(0x184),'description':a274_0x53e25c(0x18d),'folders':[a274_0x53e25c(0x18f)],'files':[{'type':'file','path':a274_0x53e25c(0x181)}]},'antigravity':{'name':a274_0x53e25c(0x174),'description':'Antigravity\x20IDE','folders':[a274_0x53e25c(0x18f)],'files':[{'type':a274_0x53e25c(0x16a),'path':a274_0x53e25c(0x181)}]}};export const CORE_IDE_LIST=[a274_0x53e25c(0x17d),a274_0x53e25c(0x16e),a274_0x53e25c(0x192),a274_0x53e25c(0x167),a274_0x53e25c(0x189),a274_0x53e25c(0x188),'qoder',a274_0x53e25c(0x185),a274_0x53e25c(0x175)];function a274_0x2a08(){const _0x4517e1=['OpenCode\x20IDE','Codex\x20IDE','Codex','.codebuddy/skills/lovrabet/SKILL.md','claude','Cline','Windsurf\x20IDE','OpenCode','.agent/skills/lovrabet/SKILL.md','.cursor','Cursor\x20IDE','Other\x20(generic\x20template)','trae','.qoder/rules/rabetbase.md','.trae/skills/lovrabet/SKILL.md','opencode','cursor','.trae','Trae','9276216AhVxtn','Generic\x20template\x20fallback','16eiCInO','.agent','agent','.opencode/skills/lovrabet/SKILL.md','codebuddy','.qoder','.windsurf','1786803emdzve','.cursor/skills/rabetbase.md','antigravity','.opencode','CodeBuddy','Claude\x20Code','CodeBuddy\x20IDE','136GjEqTo','1210210qHHKVL','Cursor','codex','3147526dEDiID','.cline','file','2479022QPsFGp','.codex/skills/lovrabet/SKILL.md','qoder','cline','641985npibtm','.claude/skills/lovrabet/SKILL.md','.codebuddy','9yclCyZ','177290KkaRyZ','Antigravity','windsurf','Qoder','.cursorrules','Qoder\x20IDE'];a274_0x2a08=function(){return _0x4517e1;};return a274_0x2a08();}export const IDE_LIST=[a274_0x53e25c(0x15f),a274_0x53e25c(0x17d),a274_0x53e25c(0x16e),'codebuddy',a274_0x53e25c(0x167),a274_0x53e25c(0x189),a274_0x53e25c(0x188),a274_0x53e25c(0x16d),'trae',a274_0x53e25c(0x175),a274_0x53e25c(0x190)];export const ALL_CORE_IDES=['cursor',a274_0x53e25c(0x175),a274_0x53e25c(0x17d),a274_0x53e25c(0x16e),a274_0x53e25c(0x167),a274_0x53e25c(0x188),a274_0x53e25c(0x16d),a274_0x53e25c(0x192),'trae'];
@@ -1 +1 @@
1
- (function(_0x4e87f,_0x586d05){const _0x1062b8=a275_0x3bd4,_0x5adbc3=_0x4e87f();while(!![]){try{const _0x32951f=-parseInt(_0x1062b8(0x122))/0x1*(parseInt(_0x1062b8(0x124))/0x2)+parseInt(_0x1062b8(0x127))/0x3*(parseInt(_0x1062b8(0x120))/0x4)+-parseInt(_0x1062b8(0x123))/0x5*(-parseInt(_0x1062b8(0x11e))/0x6)+-parseInt(_0x1062b8(0x121))/0x7+parseInt(_0x1062b8(0x126))/0x8+parseInt(_0x1062b8(0x125))/0x9*(parseInt(_0x1062b8(0x11f))/0xa)+-parseInt(_0x1062b8(0x11c))/0xb*(parseInt(_0x1062b8(0x11d))/0xc);if(_0x32951f===_0x586d05)break;else _0x5adbc3['push'](_0x5adbc3['shift']());}catch(_0x4840e8){_0x5adbc3['push'](_0x5adbc3['shift']());}}}(a275_0x2804,0x5414d));function a275_0x2804(){const _0x4614ee=['19654Irbffe','2189529TWkret','2043392EAVBdh','81JrUGap','764786WOfIKG','12WCeDLv','85866cYdkDa','20fNlqxT','72868bOGgOB','4558015JyOsmW','23JkPRve','20YOTVAr'];a275_0x2804=function(){return _0x4614ee;};return a275_0x2804();}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a275_0x3bd4(_0x50c563,_0x533200){_0x50c563=_0x50c563-0x11c;const _0x2804e2=a275_0x2804();let _0x3bd40c=_0x2804e2[_0x50c563];return _0x3bd40c;}export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});
1
+ (function(_0x544178,_0x1ad049){const _0x577ee4=a275_0x18cc,_0x2c0188=_0x544178();while(!![]){try{const _0x12f2b3=-parseInt(_0x577ee4(0x17b))/0x1+-parseInt(_0x577ee4(0x179))/0x2*(parseInt(_0x577ee4(0x178))/0x3)+-parseInt(_0x577ee4(0x17e))/0x4*(-parseInt(_0x577ee4(0x180))/0x5)+parseInt(_0x577ee4(0x17f))/0x6*(parseInt(_0x577ee4(0x17d))/0x7)+-parseInt(_0x577ee4(0x17c))/0x8*(-parseInt(_0x577ee4(0x17a))/0x9)+-parseInt(_0x577ee4(0x177))/0xa+parseInt(_0x577ee4(0x181))/0xb;if(_0x12f2b3===_0x1ad049)break;else _0x2c0188['push'](_0x2c0188['shift']());}catch(_0x5f40ef){_0x2c0188['push'](_0x2c0188['shift']());}}}(a275_0x3448,0xb16ba));function a275_0x18cc(_0x1ae596,_0x5c730b){_0x1ae596=_0x1ae596-0x177;const _0x344813=a275_0x3448();let _0x18cc59=_0x344813[_0x1ae596];return _0x18cc59;}import{createJqFilter,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';export const applyJqFilter=createJqFilter(CliErrors,{'bundledJqPaths':resolveBundledJqPaths()});function a275_0x3448(){const _0x54b49f=['654715WeiTZh','751784neuXlf','1723290PCCEGz','15rLEUcg','253632EvVRrd','4959vHooFv','561524fjhYgt','11824SMntth','540491AHYRNE','4YClVYd','84HFRvnC'];a275_0x3448=function(){return _0x54b49f;};return a275_0x3448();}
@@ -1 +1 @@
1
- function a276_0x27ae(){const _0x150161=['1630560NHJIkc','1608JnazYK','cli','1847860PNNuxo','4280HuZKIV','/config/index.json','11922345GeWSho','/config.json','json','sdk','813wtPXMa','53057kuvFMD','404198LXuRFd','stableVersion','10ttFCMY','now','node','3448ZAEoUH','application/json'];a276_0x27ae=function(){return _0x150161;};return a276_0x27ae();}function a276_0x28fa(_0x21e71b,_0x16d16e){_0x21e71b=_0x21e71b-0xc7;const _0x27ae5d=a276_0x27ae();let _0x28fa71=_0x27ae5d[_0x21e71b];return _0x28fa71;}(function(_0x188c4e,_0x20e7eb){const _0x470aec=a276_0x28fa,_0x3e366a=_0x188c4e();while(!![]){try{const _0x5df8e8=-parseInt(_0x470aec(0xd0))/0x1+-parseInt(_0x470aec(0xd1))/0x2+-parseInt(_0x470aec(0xcf))/0x3*(parseInt(_0x470aec(0xd6))/0x4)+parseInt(_0x470aec(0xc9))/0x5*(-parseInt(_0x470aec(0xd9))/0x6)+-parseInt(_0x470aec(0xc8))/0x7+-parseInt(_0x470aec(0xd8))/0x8+parseInt(_0x470aec(0xcb))/0x9*(parseInt(_0x470aec(0xd3))/0xa);if(_0x5df8e8===_0x20e7eb)break;else _0x3e366a['push'](_0x3e366a['shift']());}catch(_0x69eeea){_0x3e366a['push'](_0x3e366a['shift']());}}}(a276_0x27ae,0x21df3));import{getTemplateBaseUrl}from'../utils/config.js';export async function fetchCdnConfig(){const _0x5a24cb=a276_0x28fa,_0x9f70d9=getTemplateBaseUrl(),_0x29b1c4=[_0x9f70d9+_0x5a24cb(0xcc),_0x9f70d9+_0x5a24cb(0xca)];for(const _0x23365e of _0x29b1c4){try{const _0x38268f=await fetch(_0x23365e,{'headers':{'Accept':_0x5a24cb(0xd7)}});if(!_0x38268f['ok'])continue;const _0x40567d=await _0x38268f[_0x5a24cb(0xcd)]();if(!_0x40567d[_0x5a24cb(0xc7)]?.[_0x5a24cb(0xd2)]||!_0x40567d[_0x5a24cb(0xce)]?.[_0x5a24cb(0xd5)]?.['stableVersion'])continue;return _0x40567d;}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 _0x6c2fe2=a276_0x28fa,_0x365fc1=Date[_0x6c2fe2(0xd4)]();if(hasCachedConfig){const _0x212060=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x365fc1-cacheTime<_0x212060)return cachedConfig;}const _0x37217c=await fetchCdnConfig();return cachedConfig=_0x37217c,cacheTime=_0x365fc1,hasCachedConfig=!![],_0x37217c;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ function a276_0xad22(_0x4f753d,_0x419405){_0x4f753d=_0x4f753d-0x81;const _0x46489b=a276_0x4648();let _0xad22eb=_0x46489b[_0x4f753d];return _0xad22eb;}(function(_0x4661c3,_0x167dcf){const _0xda19a0=a276_0xad22,_0x2206bf=_0x4661c3();while(!![]){try{const _0x22a8ba=-parseInt(_0xda19a0(0x89))/0x1+parseInt(_0xda19a0(0x85))/0x2+-parseInt(_0xda19a0(0x90))/0x3+-parseInt(_0xda19a0(0x81))/0x4*(-parseInt(_0xda19a0(0x91))/0x5)+-parseInt(_0xda19a0(0x8c))/0x6*(parseInt(_0xda19a0(0x82))/0x7)+-parseInt(_0xda19a0(0x8e))/0x8*(-parseInt(_0xda19a0(0x84))/0x9)+parseInt(_0xda19a0(0x8d))/0xa*(parseInt(_0xda19a0(0x83))/0xb);if(_0x22a8ba===_0x167dcf)break;else _0x2206bf['push'](_0x2206bf['shift']());}catch(_0x9dfd2c){_0x2206bf['push'](_0x2206bf['shift']());}}}(a276_0x4648,0x9aec7));import{getTemplateBaseUrl}from'../utils/config.js';function a276_0x4648(){const _0x457253=['3592674jobIjJ','5RdiSwe','3339796aEmgWf','7OclpSs','2651nhWZSc','224946vudHGL','1356798wBvHSV','/config.json','node','stableVersion','507947iBHtEl','sdk','now','4566738oNHFWl','35810PuIeBs','232MmtBcd','json'];a276_0x4648=function(){return _0x457253;};return a276_0x4648();}export async function fetchCdnConfig(){const _0x54e8b0=a276_0xad22,_0x4372f2=getTemplateBaseUrl(),_0x39062e=[_0x4372f2+_0x54e8b0(0x86),_0x4372f2+'/config/index.json'];for(const _0x3ac05a of _0x39062e){try{const _0x3d6882=await fetch(_0x3ac05a,{'headers':{'Accept':'application/json'}});if(!_0x3d6882['ok'])continue;const _0x2ba07b=await _0x3d6882[_0x54e8b0(0x8f)]();if(!_0x2ba07b['cli']?.[_0x54e8b0(0x88)]||!_0x2ba07b[_0x54e8b0(0x8a)]?.[_0x54e8b0(0x87)]?.['stableVersion'])continue;return _0x2ba07b;}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 _0x336746=a276_0xad22,_0x1800fe=Date[_0x336746(0x8b)]();if(hasCachedConfig){const _0x2df14a=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1800fe-cacheTime<_0x2df14a)return cachedConfig;}const _0x5214d1=await fetchCdnConfig();return cachedConfig=_0x5214d1,cacheTime=_0x1800fe,hasCachedConfig=!![],_0x5214d1;}export function clearCdnConfigCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
@@ -1 +1 @@
1
- function a277_0x5828(){const _0x5e4024=['\x20\x20\x20Current\x20version:\x20','\x20\x20\x20Stable\x20version:\x20','devDependencies','readFileSync','@lovrabet/sdk','895116WouHWh','npm\x20install\x20','\x1b[0m','latest','utf8','existsSync','1.2.0','some','3oDdRjU','node','6Vcrpzs','2101920CIboBJ','18928vTbwgI','↪\x20SDK\x20update\x20available','parse','coerce','2980830NpMbOF','stableVersion','packageName','sdk','1454528ufNSwK','all','1629FVCxSU','\x1b[1m','minVersion','needsUpgrade','5250063Rhwczl','package.json','join','node_modules','log','10072egYzTI'];a277_0x5828=function(){return _0x5e4024;};return a277_0x5828();}const a277_0x5a108b=a277_0x2176;(function(_0x2d595f,_0x4a9a9e){const _0x457e86=a277_0x2176,_0x4db770=_0x2d595f();while(!![]){try{const _0x3e55ea=parseInt(_0x457e86(0x16f))/0x1+-parseInt(_0x457e86(0x15e))/0x2+-parseInt(_0x457e86(0x152))/0x3*(parseInt(_0x457e86(0x169))/0x4)+parseInt(_0x457e86(0x15a))/0x5+parseInt(_0x457e86(0x154))/0x6*(parseInt(_0x457e86(0x164))/0x7)+parseInt(_0x457e86(0x156))/0x8*(-parseInt(_0x457e86(0x160))/0x9)+-parseInt(_0x457e86(0x155))/0xa;if(_0x3e55ea===_0x4a9a9e)break;else _0x4db770['push'](_0x4db770['shift']());}catch(_0x580270){_0x4db770['push'](_0x4db770['shift']());}}}(a277_0x5828,0xd526f));import a277_0x35c533 from'node:fs';import a277_0x3adb06 from'node:path';import a277_0x506743 from'semver';import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION=a277_0x5a108b(0x150);function isNonNumericVersion(_0x2c695b){const _0x12e14b=a277_0x5a108b,_0x23d4cf=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x23d4cf[_0x12e14b(0x151)](_0x113dfd=>_0x113dfd['test'](_0x2c695b));}function getInstalledVersion(_0x176ce2,_0x181cd4){const _0xc0f136=a277_0x5a108b;try{const _0x4e6fb7=a277_0x3adb06[_0xc0f136(0x166)](_0x176ce2,_0xc0f136(0x167),_0x181cd4,_0xc0f136(0x165));if(a277_0x35c533[_0xc0f136(0x14f)](_0x4e6fb7)){const _0x1b8050=JSON[_0xc0f136(0x158)](a277_0x35c533[_0xc0f136(0x16d)](_0x4e6fb7,'utf-8'));return _0x1b8050['version']||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x33019b=a277_0x5a108b;try{const _0xcf319f=await getCdnConfig();return _0xcf319f?.[_0x33019b(0x15d)]?.[_0x33019b(0x153)]?.[_0x33019b(0x15b)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x44e04a=a277_0x5a108b;try{const _0xc66c12=await getCdnConfig();return _0xc66c12?.[_0x44e04a(0x15d)]?.[_0x44e04a(0x153)]?.['packageName']||_0x44e04a(0x16e);}catch{return _0x44e04a(0x16e);}}export async function checkSdkVersion(_0x44242d){const _0x207cf7=a277_0x5a108b,_0x216edb=a277_0x3adb06['join'](_0x44242d,_0x207cf7(0x165)),[_0x1d40f4,_0x1cff4f]=await Promise[_0x207cf7(0x15f)]([getSdkStableVersion(),getSdkPackageName()]),_0x219425=_0x1d40f4||FALLBACK_MIN_SDK_VERSION;if(!a277_0x35c533[_0x207cf7(0x14f)](_0x216edb))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};try{const _0xa54765=JSON[_0x207cf7(0x158)](a277_0x35c533[_0x207cf7(0x16d)](_0x216edb,_0x207cf7(0x14e))),_0x2f4c3e=_0xa54765['dependencies']||{},_0x1135b2=_0xa54765[_0x207cf7(0x16c)]||{},_0x3411e2=_0x2f4c3e[_0x1cff4f]||_0x1135b2[_0x1cff4f];if(!_0x3411e2)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};let _0x5218ba=getInstalledVersion(_0x44242d,_0x1cff4f);!_0x5218ba&&(_0x5218ba=_0x3411e2);if(isNonNumericVersion(_0x3411e2))return{'installed':!![],'version':_0x5218ba,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};const _0x4d1acc=a277_0x506743['coerce'](_0x5218ba),_0x48e97e=a277_0x506743[_0x207cf7(0x159)](_0x219425),_0x3e6d18=_0x4d1acc&&_0x48e97e?a277_0x506743['lt'](_0x4d1acc,_0x48e97e):![];return{'installed':!![],'version':_0x5218ba,'needsUpgrade':_0x3e6d18,'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x219425,'packageName':_0x1cff4f,'stableVersion':_0x1d40f4};}}export function checkSdkVersionSync(_0x4c9a6e){const _0x59af0e=a277_0x5a108b,_0x54e39a=a277_0x3adb06['join'](_0x4c9a6e,_0x59af0e(0x165)),_0x45158d=_0x59af0e(0x16e);if(!a277_0x35c533[_0x59af0e(0x14f)](_0x54e39a))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};try{const _0x1df094=JSON[_0x59af0e(0x158)](a277_0x35c533[_0x59af0e(0x16d)](_0x54e39a,_0x59af0e(0x14e))),_0x3aeea5=_0x1df094['dependencies']||{},_0x2d4d3c=_0x1df094[_0x59af0e(0x16c)]||{},_0x2e1fc9=_0x3aeea5[_0x45158d]||_0x2d4d3c[_0x45158d];if(!_0x2e1fc9)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};let _0x4b9f87=getInstalledVersion(_0x4c9a6e,_0x45158d);!_0x4b9f87&&(_0x4b9f87=_0x2e1fc9);if(isNonNumericVersion(_0x2e1fc9))return{'installed':!![],'version':_0x4b9f87,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};const _0x33c9c3=a277_0x506743[_0x59af0e(0x159)](_0x4b9f87),_0x5a6fd5=_0x33c9c3?a277_0x506743['lt'](_0x33c9c3,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x4b9f87,'needsUpgrade':_0x5a6fd5,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x45158d,'stableVersion':null};}}function a277_0x2176(_0x4f1711,_0x10a053){_0x4f1711=_0x4f1711-0x14b;const _0x582829=a277_0x5828();let _0x21763f=_0x582829[_0x4f1711];return _0x21763f;}export function printSdkUpgradeWarning(_0x4cb9b5){const _0x2b8846=a277_0x5a108b;if(!_0x4cb9b5[_0x2b8846(0x163)])return;const _0x354cef='\x1b[33m',_0x43b07e=_0x2b8846(0x14c),_0x122ab0=_0x2b8846(0x161),_0x580314=_0x4cb9b5[_0x2b8846(0x15c)]||'@lovrabet/sdk',_0x543a92=_0x4cb9b5[_0x2b8846(0x15b)]||_0x4cb9b5[_0x2b8846(0x162)],_0x479f08=_0x2b8846(0x14b)+_0x580314+'@'+(_0x543a92||_0x2b8846(0x14d));console[_0x2b8846(0x168)](),console[_0x2b8846(0x168)](''+_0x354cef+_0x122ab0+_0x2b8846(0x157)+_0x43b07e),console[_0x2b8846(0x168)](_0x354cef+_0x2b8846(0x16a)+_0x580314+'@'+_0x4cb9b5['version']+_0x43b07e),console[_0x2b8846(0x168)](_0x354cef+_0x2b8846(0x16b)+_0x543a92+_0x43b07e),console[_0x2b8846(0x168)](_0x354cef+'\x20\x20\x20Upgrade\x20command:\x20'+_0x479f08+_0x43b07e),console[_0x2b8846(0x168)]();}
1
+ (function(_0x2d5932,_0x2b6912){const _0x52a89d=a277_0xcaf9,_0x88de08=_0x2d5932();while(!![]){try{const _0x34c73a=-parseInt(_0x52a89d(0xbc))/0x1+-parseInt(_0x52a89d(0xc6))/0x2+parseInt(_0x52a89d(0xb7))/0x3+-parseInt(_0x52a89d(0xba))/0x4+parseInt(_0x52a89d(0xad))/0x5+parseInt(_0x52a89d(0xae))/0x6+parseInt(_0x52a89d(0xbf))/0x7;if(_0x34c73a===_0x2b6912)break;else _0x88de08['push'](_0x88de08['shift']());}catch(_0x49370c){_0x88de08['push'](_0x88de08['shift']());}}}(a277_0x317f,0x3c4dd));function a277_0xcaf9(_0x3b956b,_0x389d24){_0x3b956b=_0x3b956b-0xab;const _0x317f4a=a277_0x317f();let _0xcaf954=_0x317f4a[_0x3b956b];return _0xcaf954;}import a277_0x4704cc from'node:fs';import a277_0x132f5c from'node:path';import a277_0x267213 from'semver';function a277_0x317f(){const _0x3206ec=['package.json','log','node_modules','1228629Ujemhj','@lovrabet/sdk','devDependencies','332892pSzRWD','minVersion','472703JBPhTd','coerce','readFileSync','2720557XNpBrW','test','utf-8','\x1b[0m','stableVersion','dependencies','latest','199304gqzSmG','node','some','parse','npm\x20install\x20','version','\x20\x20\x20Upgrade\x20command:\x20','existsSync','\x1b[1m','462280AulGgj','71598kfrgWr','sdk','\x20\x20\x20Stable\x20version:\x20','all','utf8','join'];a277_0x317f=function(){return _0x3206ec;};return a277_0x317f();}import{getCdnConfig}from'../utils/cdn-config.js';const FALLBACK_MIN_SDK_VERSION='1.2.0';function isNonNumericVersion(_0x3cb1da){const _0xf5e7c5=a277_0xcaf9,_0x2ea3f2=[/^latest$/i,/^beta$/i,/^alpha$/i,/^canary$/i,/^\*$/,/^x$/];return _0x2ea3f2[_0xf5e7c5(0xc8)](_0x19a2d9=>_0x19a2d9[_0xf5e7c5(0xc0)](_0x3cb1da));}function getInstalledVersion(_0x34f636,_0x31315a){const _0x56835c=a277_0xcaf9;try{const _0x164cbf=a277_0x132f5c[_0x56835c(0xb3)](_0x34f636,_0x56835c(0xb6),_0x31315a,_0x56835c(0xb4));if(a277_0x4704cc[_0x56835c(0xab)](_0x164cbf)){const _0x5df8cd=JSON[_0x56835c(0xc9)](a277_0x4704cc[_0x56835c(0xbe)](_0x164cbf,_0x56835c(0xc1)));return _0x5df8cd[_0x56835c(0xcb)]||null;}}catch{}return null;}async function getSdkStableVersion(){const _0x262101=a277_0xcaf9;try{const _0xb5f593=await getCdnConfig();return _0xb5f593?.[_0x262101(0xaf)]?.[_0x262101(0xc7)]?.[_0x262101(0xc3)]||null;}catch{return null;}}async function getSdkPackageName(){const _0x4ea017=a277_0xcaf9;try{const _0x5f264e=await getCdnConfig();return _0x5f264e?.[_0x4ea017(0xaf)]?.[_0x4ea017(0xc7)]?.['packageName']||_0x4ea017(0xb8);}catch{return _0x4ea017(0xb8);}}export async function checkSdkVersion(_0xb0f062){const _0x59b9a1=a277_0xcaf9,_0x1607a3=a277_0x132f5c['join'](_0xb0f062,'package.json'),[_0x4081ae,_0x4a0224]=await Promise[_0x59b9a1(0xb1)]([getSdkStableVersion(),getSdkPackageName()]),_0x282ad8=_0x4081ae||FALLBACK_MIN_SDK_VERSION;if(!a277_0x4704cc['existsSync'](_0x1607a3))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};try{const _0x3f2c99=JSON[_0x59b9a1(0xc9)](a277_0x4704cc[_0x59b9a1(0xbe)](_0x1607a3,_0x59b9a1(0xb2))),_0x357339=_0x3f2c99[_0x59b9a1(0xc4)]||{},_0x44894d=_0x3f2c99[_0x59b9a1(0xb9)]||{},_0x4fbbf4=_0x357339[_0x4a0224]||_0x44894d[_0x4a0224];if(!_0x4fbbf4)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};let _0x4bcacf=getInstalledVersion(_0xb0f062,_0x4a0224);!_0x4bcacf&&(_0x4bcacf=_0x4fbbf4);if(isNonNumericVersion(_0x4fbbf4))return{'installed':!![],'version':_0x4bcacf,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};const _0x2cda43=a277_0x267213[_0x59b9a1(0xbd)](_0x4bcacf),_0x2c0f38=a277_0x267213[_0x59b9a1(0xbd)](_0x282ad8),_0x47ba8e=_0x2cda43&&_0x2c0f38?a277_0x267213['lt'](_0x2cda43,_0x2c0f38):![];return{'installed':!![],'version':_0x4bcacf,'needsUpgrade':_0x47ba8e,'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':_0x282ad8,'packageName':_0x4a0224,'stableVersion':_0x4081ae};}}export function checkSdkVersionSync(_0x386214){const _0x56c7b0=a277_0xcaf9,_0x129507=a277_0x132f5c['join'](_0x386214,'package.json'),_0x3ea91e=_0x56c7b0(0xb8);if(!a277_0x4704cc[_0x56c7b0(0xab)](_0x129507))return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};try{const _0x7f44ad=JSON[_0x56c7b0(0xc9)](a277_0x4704cc[_0x56c7b0(0xbe)](_0x129507,_0x56c7b0(0xb2))),_0x2c8934=_0x7f44ad[_0x56c7b0(0xc4)]||{},_0xfbf05b=_0x7f44ad[_0x56c7b0(0xb9)]||{},_0x2828c1=_0x2c8934[_0x3ea91e]||_0xfbf05b[_0x3ea91e];if(!_0x2828c1)return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};let _0x200ff2=getInstalledVersion(_0x386214,_0x3ea91e);!_0x200ff2&&(_0x200ff2=_0x2828c1);if(isNonNumericVersion(_0x2828c1))return{'installed':!![],'version':_0x200ff2,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};const _0x2c627d=a277_0x267213[_0x56c7b0(0xbd)](_0x200ff2),_0x3cb067=_0x2c627d?a277_0x267213['lt'](_0x2c627d,FALLBACK_MIN_SDK_VERSION):![];return{'installed':!![],'version':_0x200ff2,'needsUpgrade':_0x3cb067,'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};}catch{return{'installed':![],'version':null,'needsUpgrade':![],'minVersion':FALLBACK_MIN_SDK_VERSION,'packageName':_0x3ea91e,'stableVersion':null};}}export function printSdkUpgradeWarning(_0x3b4a02){const _0x2811b3=a277_0xcaf9;if(!_0x3b4a02['needsUpgrade'])return;const _0x5ad0ba='\x1b[33m',_0x3aae3a=_0x2811b3(0xc2),_0x4df387=_0x2811b3(0xac),_0x27fe25=_0x3b4a02['packageName']||_0x2811b3(0xb8),_0x50e3cf=_0x3b4a02[_0x2811b3(0xc3)]||_0x3b4a02[_0x2811b3(0xbb)],_0x547eb6=_0x2811b3(0xca)+_0x27fe25+'@'+(_0x50e3cf||_0x2811b3(0xc5));console[_0x2811b3(0xb5)](),console[_0x2811b3(0xb5)](''+_0x5ad0ba+_0x4df387+'↪\x20SDK\x20update\x20available'+_0x3aae3a),console[_0x2811b3(0xb5)](_0x5ad0ba+'\x20\x20\x20Current\x20version:\x20'+_0x27fe25+'@'+_0x3b4a02['version']+_0x3aae3a),console[_0x2811b3(0xb5)](_0x5ad0ba+_0x2811b3(0xb0)+_0x50e3cf+_0x3aae3a),console[_0x2811b3(0xb5)](_0x5ad0ba+_0x2811b3(0xcc)+_0x547eb6+_0x3aae3a),console[_0x2811b3(0xb5)]();}
@@ -1 +1 @@
1
- (function(_0x5dcfaf,_0x2ab1a3){const _0x10177e=a278_0x1eeb,_0x5f558e=_0x5dcfaf();while(!![]){try{const _0x1e6b10=parseInt(_0x10177e(0xbb))/0x1+-parseInt(_0x10177e(0xb9))/0x2*(-parseInt(_0x10177e(0xd1))/0x3)+parseInt(_0x10177e(0xca))/0x4*(parseInt(_0x10177e(0xbc))/0x5)+-parseInt(_0x10177e(0xc8))/0x6*(-parseInt(_0x10177e(0xbd))/0x7)+parseInt(_0x10177e(0xbf))/0x8+parseInt(_0x10177e(0xd8))/0x9+parseInt(_0x10177e(0xce))/0xa*(-parseInt(_0x10177e(0xc7))/0xb);if(_0x1e6b10===_0x2ab1a3)break;else _0x5f558e['push'](_0x5f558e['shift']());}catch(_0x58a523){_0x5f558e['push'](_0x5f558e['shift']());}}}(a278_0x1db6,0x1c509));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import a278_0x35fe3b from'semver';import{getCliVersionPolicy}from'../utils/cli-version-policy.js';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a278_0x1db6(){const _0x120d3a=['318dSHYOI','upgradeMessage','10333mXyLZC','370970UcKnPh','1352890tFqTzc','\x20\x20\x20Upgrade\x20command:\x20','968808BrShMo','join','↪\x20Critical\x20CLI\x20upgrade\x20required','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','parse','\x1b[1m','stableVersion','npm\x20install\x20-g\x20','103763MbaIAU','6ffExOq','\x1b[33m','4bdiIYv','1.0.0','\x20\x20\x20','\x20\x20\x20Current\x20CLI\x20version:\x20','490bWxtue','minimumVersion','log','1896VlCPec','\x1b[31m','coerce','../..','currentVersion','filter','latest','709272sbZnvr','Upgrade\x20command:\x20','minimumVersionMessage','Current\x20version:\x20','belowMinimum','version'];a278_0x1db6=function(){return _0x120d3a;};return a278_0x1db6();}function a278_0x1eeb(_0x2278ee,_0x3e5984){_0x2278ee=_0x2278ee-0xb8;const _0x1db6bf=a278_0x1db6();let _0x1eeb2e=_0x1db6bf[_0x2278ee];return _0x1eeb2e;}import{CliErrors}from'../errors.js';export function getCliUpgradeCommand(_0x32d2a6){const _0xd710be=a278_0x1eeb,_0x12729d=_0x32d2a6['stableVersion']||_0xd710be(0xd7);return _0xd710be(0xc6)+NPM_PACKAGE_NAME+'@'+_0x12729d;}function getCurrentCliVersion(){const _0x40248c=a278_0x1eeb;try{const _0x4d0f98=fileURLToPath(import.meta.url),_0x432dd0=resolve(dirname(_0x4d0f98),_0x40248c(0xd4)),_0x1ee347=resolve(_0x432dd0,'package.json'),_0x1938df=JSON[_0x40248c(0xc3)](readFileSync(_0x1ee347,'utf-8'));return _0x1938df[_0x40248c(0xb8)]||_0x40248c(0xcb);}catch{return _0x40248c(0xcb);}}export async function checkCliVersion(){const _0x330545=a278_0x1eeb,_0x39c393=getCurrentCliVersion(),_0x7bcf0a=await getCliVersionPolicy(),_0x4cfb74=_0x7bcf0a?.[_0x330545(0xc5)]||null,_0x5eabc3=_0x7bcf0a?.[_0x330545(0xcf)]||null;let _0x3250b8=![],_0x435818=![];const _0x1a24f0=a278_0x35fe3b[_0x330545(0xd3)](_0x39c393);if(_0x1a24f0&&_0x4cfb74)try{const _0x1444fb=a278_0x35fe3b[_0x330545(0xd3)](_0x4cfb74);if(_0x1444fb)_0x3250b8=a278_0x35fe3b['lt'](_0x1a24f0,_0x1444fb);}catch{}if(_0x1a24f0&&_0x5eabc3)try{const _0x4cacda=a278_0x35fe3b[_0x330545(0xd3)](_0x5eabc3);if(_0x4cacda)_0x435818=a278_0x35fe3b['lt'](_0x1a24f0,_0x4cacda);}catch{}return _0x435818&&(_0x3250b8=!![]),{'currentVersion':_0x39c393,'stableVersion':_0x4cfb74,'minimumVersion':_0x5eabc3,'needsUpgrade':_0x3250b8,'belowMinimum':_0x435818,'isPreRelease':![],'upgradeMessage':_0x7bcf0a?.[_0x330545(0xba)],'minimumVersionMessage':_0x7bcf0a?.[_0x330545(0xda)]};}export function printCliUpgradeWarning(_0x132cf1){const _0x48d750=a278_0x1eeb;if(!_0x132cf1['needsUpgrade']&&!_0x132cf1[_0x48d750(0xdc)])return;const _0x3ab027=_0x48d750(0xd2),_0x419c01=_0x48d750(0xc9),_0x3bacb5='\x1b[0m',_0x3f5653=_0x48d750(0xc4),_0x154c54=getCliUpgradeCommand(_0x132cf1);console[_0x48d750(0xd0)](),_0x132cf1['belowMinimum']?(console[_0x48d750(0xd0)](''+_0x3ab027+_0x3f5653+_0x48d750(0xc1)+_0x3bacb5),console[_0x48d750(0xd0)](_0x3ab027+'\x20\x20\x20Current\x20CLI\x20version:\x20'+_0x132cf1[_0x48d750(0xd5)]+_0x3bacb5),_0x132cf1[_0x48d750(0xcf)]&&console[_0x48d750(0xd0)](_0x3ab027+'\x20\x20\x20Minimum\x20supported:\x20'+_0x132cf1[_0x48d750(0xcf)]+_0x3bacb5),_0x132cf1['stableVersion']&&_0x132cf1[_0x48d750(0xc5)]!==_0x132cf1[_0x48d750(0xcf)]&&console[_0x48d750(0xd0)](_0x3ab027+'\x20\x20\x20Recommended\x20stable:\x20'+_0x132cf1[_0x48d750(0xc5)]+_0x3bacb5),_0x132cf1[_0x48d750(0xda)]&&console['log'](_0x3ab027+'\x20\x20\x20'+_0x132cf1[_0x48d750(0xda)]+_0x3bacb5),console['log'](_0x3ab027+_0x48d750(0xbe)+_0x154c54+_0x3bacb5)):(console[_0x48d750(0xd0)](''+_0x419c01+_0x3f5653+'↪\x20New\x20version\x20available'+_0x3bacb5),console[_0x48d750(0xd0)](_0x419c01+_0x48d750(0xcd)+_0x132cf1[_0x48d750(0xd5)]+_0x3bacb5),console[_0x48d750(0xd0)](_0x419c01+'\x20\x20\x20Stable\x20version:\x20'+_0x132cf1[_0x48d750(0xc5)]+_0x3bacb5),_0x132cf1[_0x48d750(0xba)]&&console[_0x48d750(0xd0)](_0x419c01+_0x48d750(0xcc)+_0x132cf1[_0x48d750(0xba)]+_0x3bacb5),console[_0x48d750(0xd0)](_0x419c01+'\x20\x20\x20Upgrade\x20command:\x20'+_0x154c54+_0x3bacb5)),console['log']();}export function assertCliVersionSupported(_0x1d4e2b){const _0x52245a=a278_0x1eeb;if(!_0x1d4e2b['belowMinimum'])return;const _0xbefdd4=[_0x1d4e2b[_0x52245a(0xda)],_0x52245a(0xdb)+_0x1d4e2b[_0x52245a(0xd5)],_0x1d4e2b[_0x52245a(0xcf)]?'Minimum\x20supported:\x20'+_0x1d4e2b[_0x52245a(0xcf)]:null,_0x52245a(0xd9)+getCliUpgradeCommand(_0x1d4e2b)][_0x52245a(0xd6)](Boolean)[_0x52245a(0xc0)]('\x0a');throw CliErrors['validation'](_0x52245a(0xc2),_0xbefdd4);}
1
+ (function(_0x41e2e9,_0x20fcff){const _0x4235ce=a278_0x4918,_0x34ee85=_0x41e2e9();while(!![]){try{const _0x51f223=-parseInt(_0x4235ce(0xd1))/0x1+parseInt(_0x4235ce(0xbf))/0x2+parseInt(_0x4235ce(0xd8))/0x3+-parseInt(_0x4235ce(0xc6))/0x4+-parseInt(_0x4235ce(0xd4))/0x5+parseInt(_0x4235ce(0xcc))/0x6*(parseInt(_0x4235ce(0xd9))/0x7)+parseInt(_0x4235ce(0xe1))/0x8;if(_0x51f223===_0x20fcff)break;else _0x34ee85['push'](_0x34ee85['shift']());}catch(_0x1a45a9){_0x34ee85['push'](_0x34ee85['shift']());}}}(a278_0x6e13,0xcbaa0));import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';function a278_0x4918(_0x43bfd0,_0x16ced6){_0x43bfd0=_0x43bfd0-0xbb;const _0x6e13eb=a278_0x6e13();let _0x4918df=_0x6e13eb[_0x43bfd0];return _0x4918df;}import a278_0x1c27dd 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(_0x2af9ab){const _0x44e8bd=a278_0x4918,_0x46b0fd=_0x2af9ab['stableVersion']||_0x44e8bd(0xda);return _0x44e8bd(0xc4)+NPM_PACKAGE_NAME+'@'+_0x46b0fd;}function getCurrentCliVersion(){const _0x2d628d=a278_0x4918;try{const _0x11e6e7=fileURLToPath(import.meta.url),_0x43509b=resolve(dirname(_0x11e6e7),'../..'),_0x5a6a60=resolve(_0x43509b,_0x2d628d(0xce)),_0x1f262e=JSON[_0x2d628d(0xdc)](readFileSync(_0x5a6a60,'utf-8'));return _0x1f262e['version']||_0x2d628d(0xcb);}catch{return _0x2d628d(0xcb);}}export async function checkCliVersion(){const _0x1de2cb=a278_0x4918,_0x21bed1=getCurrentCliVersion(),_0x46da17=await getCliVersionPolicy(),_0x3e64c2=_0x46da17?.[_0x1de2cb(0xcd)]||null,_0x17adb5=_0x46da17?.[_0x1de2cb(0xc5)]||null;let _0x175267=![],_0x237c84=![];const _0x14baee=a278_0x1c27dd['coerce'](_0x21bed1);if(_0x14baee&&_0x3e64c2)try{const _0x3d28ea=a278_0x1c27dd[_0x1de2cb(0xd2)](_0x3e64c2);if(_0x3d28ea)_0x175267=a278_0x1c27dd['lt'](_0x14baee,_0x3d28ea);}catch{}if(_0x14baee&&_0x17adb5)try{const _0x3339e4=a278_0x1c27dd[_0x1de2cb(0xd2)](_0x17adb5);if(_0x3339e4)_0x237c84=a278_0x1c27dd['lt'](_0x14baee,_0x3339e4);}catch{}return _0x237c84&&(_0x175267=!![]),{'currentVersion':_0x21bed1,'stableVersion':_0x3e64c2,'minimumVersion':_0x17adb5,'needsUpgrade':_0x175267,'belowMinimum':_0x237c84,'isPreRelease':![],'upgradeMessage':_0x46da17?.[_0x1de2cb(0xdf)],'minimumVersionMessage':_0x46da17?.[_0x1de2cb(0xbd)]};}function a278_0x6e13(){const _0x49fc9c=['143444wXuiZo','coerce','\x20\x20\x20Current\x20CLI\x20version:\x20','4141440uWwaZr','↪\x20New\x20version\x20available','\x1b[33m','\x1b[1m','1319739STHrjy','14eifuFe','latest','Upgrade\x20command:\x20','parse','\x1b[0m','filter','upgradeMessage','\x20\x20\x20','2194592gXhBoZ','↪\x20Critical\x20CLI\x20upgrade\x20required','currentVersion','minimumVersionMessage','belowMinimum','2006440gojHSo','join','log','Current\x20version:\x20','\x1b[31m','npm\x20install\x20-g\x20','minimumVersion','5471124bopiYI','\x20\x20\x20Stable\x20version:\x20','Minimum\x20supported:\x20','\x20\x20\x20Minimum\x20supported:\x20','needsUpgrade','1.0.0','4368792kQceSl','stableVersion','package.json','Current\x20CLI\x20version\x20is\x20below\x20the\x20service\x20compatibility\x20support\x20line.','validation'];a278_0x6e13=function(){return _0x49fc9c;};return a278_0x6e13();}export function printCliUpgradeWarning(_0x4e4c55){const _0x5ef7a5=a278_0x4918;if(!_0x4e4c55[_0x5ef7a5(0xca)]&&!_0x4e4c55[_0x5ef7a5(0xbe)])return;const _0x196cdf=_0x5ef7a5(0xc3),_0x122ac3=_0x5ef7a5(0xd6),_0x486e3e=_0x5ef7a5(0xdd),_0x52221e=_0x5ef7a5(0xd7),_0x1614ad=getCliUpgradeCommand(_0x4e4c55);console['log'](),_0x4e4c55[_0x5ef7a5(0xbe)]?(console[_0x5ef7a5(0xc1)](''+_0x196cdf+_0x52221e+_0x5ef7a5(0xbb)+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x196cdf+_0x5ef7a5(0xd3)+_0x4e4c55[_0x5ef7a5(0xbc)]+_0x486e3e),_0x4e4c55[_0x5ef7a5(0xc5)]&&console[_0x5ef7a5(0xc1)](_0x196cdf+_0x5ef7a5(0xc9)+_0x4e4c55[_0x5ef7a5(0xc5)]+_0x486e3e),_0x4e4c55[_0x5ef7a5(0xcd)]&&_0x4e4c55[_0x5ef7a5(0xcd)]!==_0x4e4c55[_0x5ef7a5(0xc5)]&&console[_0x5ef7a5(0xc1)](_0x196cdf+'\x20\x20\x20Recommended\x20stable:\x20'+_0x4e4c55[_0x5ef7a5(0xcd)]+_0x486e3e),_0x4e4c55['minimumVersionMessage']&&console['log'](_0x196cdf+_0x5ef7a5(0xe0)+_0x4e4c55[_0x5ef7a5(0xbd)]+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x196cdf+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1614ad+_0x486e3e)):(console[_0x5ef7a5(0xc1)](''+_0x122ac3+_0x52221e+_0x5ef7a5(0xd5)+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x122ac3+_0x5ef7a5(0xd3)+_0x4e4c55[_0x5ef7a5(0xbc)]+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x122ac3+_0x5ef7a5(0xc7)+_0x4e4c55[_0x5ef7a5(0xcd)]+_0x486e3e),_0x4e4c55[_0x5ef7a5(0xdf)]&&console[_0x5ef7a5(0xc1)](_0x122ac3+_0x5ef7a5(0xe0)+_0x4e4c55[_0x5ef7a5(0xdf)]+_0x486e3e),console[_0x5ef7a5(0xc1)](_0x122ac3+'\x20\x20\x20Upgrade\x20command:\x20'+_0x1614ad+_0x486e3e)),console['log']();}export function assertCliVersionSupported(_0x27e615){const _0xbb4017=a278_0x4918;if(!_0x27e615['belowMinimum'])return;const _0x21fa44=[_0x27e615['minimumVersionMessage'],_0xbb4017(0xc2)+_0x27e615['currentVersion'],_0x27e615[_0xbb4017(0xc5)]?_0xbb4017(0xc8)+_0x27e615[_0xbb4017(0xc5)]:null,_0xbb4017(0xdb)+getCliUpgradeCommand(_0x27e615)][_0xbb4017(0xde)](Boolean)[_0xbb4017(0xc0)]('\x0a');throw CliErrors[_0xbb4017(0xd0)](_0xbb4017(0xcf),_0x21fa44);}
@@ -1 +1 @@
1
- (function(_0xa743f2,_0x46d278){const _0xaa8f6=a279_0x2dc9,_0x3bf705=_0xa743f2();while(!![]){try{const _0x2bf867=-parseInt(_0xaa8f6(0xfe))/0x1+parseInt(_0xaa8f6(0x10a))/0x2*(-parseInt(_0xaa8f6(0x101))/0x3)+-parseInt(_0xaa8f6(0x10e))/0x4+-parseInt(_0xaa8f6(0xf7))/0x5+-parseInt(_0xaa8f6(0xff))/0x6+-parseInt(_0xaa8f6(0x102))/0x7*(parseInt(_0xaa8f6(0xf9))/0x8)+-parseInt(_0xaa8f6(0xfb))/0x9*(-parseInt(_0xaa8f6(0x10b))/0xa);if(_0x2bf867===_0x46d278)break;else _0x3bf705['push'](_0x3bf705['shift']());}catch(_0x59f7f3){_0x3bf705['push'](_0x3bf705['shift']());}}}(a279_0x3a60,0x9ec1f));function a279_0x3a60(){const _0x58e285=['15ESsvQE','112LPufHx','minVersion','string','signal','abort','stableVersion','recommendedVersion','minimumVersionMessage','208858ezbeHg','378380mPhPBY','cli','latestVersion','4279336EkDHKD','2519400YgJuDJ','trim','150576XWRQPy','now','1089oiVYUq','object','json','350722zkuDTp','7082364jJXEjc','length'];a279_0x3a60=function(){return _0x58e285;};return a279_0x3a60();}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(_0x4150eb){const _0xd5b5b8=a279_0x2dc9;return typeof _0x4150eb===_0xd5b5b8(0x104)&&_0x4150eb[_0xd5b5b8(0xf8)]()[_0xd5b5b8(0x100)]>0x0?_0x4150eb[_0xd5b5b8(0xf8)]():null;}function normalizeCliVersionPolicy(_0x34eb3d){const _0x52a417=a279_0x2dc9;if(!_0x34eb3d||typeof _0x34eb3d!==_0x52a417(0xfc))return null;const _0xb91482=_0x34eb3d,_0x593821=_0xb91482[_0x52a417(0x10c)]&&typeof _0xb91482[_0x52a417(0x10c)]===_0x52a417(0xfc)?_0xb91482[_0x52a417(0x10c)]:_0xb91482,_0x4c5a0d=pickString(_0x593821[_0x52a417(0x107)])||pickString(_0x593821[_0x52a417(0x10d)])||pickString(_0x593821[_0x52a417(0x108)]),_0x1c3fb=pickString(_0x593821['minimumVersion'])||pickString(_0x593821[_0x52a417(0x103)]);if(!_0x4c5a0d&&!_0x1c3fb)return null;return{'stableVersion':_0x4c5a0d,'minimumVersion':_0x1c3fb,'upgradeMessage':pickString(_0x593821['upgradeMessage'])||undefined,'minimumVersionMessage':pickString(_0x593821[_0x52a417(0x109)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x4622fd=a279_0x2dc9,_0x174585=new AbortController(),_0x77da17=setTimeout(()=>_0x174585[_0x4622fd(0x106)](),FETCH_TIMEOUT_MS);try{const _0x367906=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':'application/json'},'signal':_0x174585[_0x4622fd(0x105)]});if(!_0x367906['ok'])return null;const _0x2117ac=await _0x367906[_0x4622fd(0xfd)]();return _0x2117ac&&typeof _0x2117ac===_0x4622fd(0xfc)?_0x2117ac:null;}catch{return null;}finally{clearTimeout(_0x77da17);}}function a279_0x2dc9(_0x72b0db,_0x596143){_0x72b0db=_0x72b0db-0xf7;const _0x3a6080=a279_0x3a60();let _0x2dc992=_0x3a6080[_0x72b0db];return _0x2dc992;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x425f40=a279_0x2dc9,_0x32843b=Date[_0x425f40(0xfa)]();if(hasCachedConfig){const _0x377355=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x32843b-cacheTime<_0x377355)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x32843b,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}
1
+ (function(_0x2bb477,_0xa43609){const _0x1245c0=a279_0xe203,_0x291e42=_0x2bb477();while(!![]){try{const _0x379cc7=-parseInt(_0x1245c0(0xf4))/0x1+parseInt(_0x1245c0(0x101))/0x2+-parseInt(_0x1245c0(0xf8))/0x3+parseInt(_0x1245c0(0x104))/0x4*(-parseInt(_0x1245c0(0xfa))/0x5)+parseInt(_0x1245c0(0xff))/0x6+parseInt(_0x1245c0(0xf5))/0x7*(parseInt(_0x1245c0(0x109))/0x8)+-parseInt(_0x1245c0(0x102))/0x9*(-parseInt(_0x1245c0(0xf3))/0xa);if(_0x379cc7===_0xa43609)break;else _0x291e42['push'](_0x291e42['shift']());}catch(_0x4d6372){_0x291e42['push'](_0x291e42['shift']());}}}(a279_0x96cb,0xe4850));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(_0x3859e5){const _0xf0c216=a279_0xe203;return typeof _0x3859e5===_0xf0c216(0x100)&&_0x3859e5[_0xf0c216(0x105)]()[_0xf0c216(0x106)]>0x0?_0x3859e5[_0xf0c216(0x105)]():null;}function normalizeCliVersionPolicy(_0x356a33){const _0x4e330d=a279_0xe203;if(!_0x356a33||typeof _0x356a33!=='object')return null;const _0x118e8d=_0x356a33,_0x526698=_0x118e8d['cli']&&typeof _0x118e8d[_0x4e330d(0x108)]==='object'?_0x118e8d[_0x4e330d(0x108)]:_0x118e8d,_0x360cd7=pickString(_0x526698[_0x4e330d(0xf6)])||pickString(_0x526698[_0x4e330d(0xf7)])||pickString(_0x526698[_0x4e330d(0xf1)]),_0x3005bd=pickString(_0x526698[_0x4e330d(0xfe)])||pickString(_0x526698['minVersion']);if(!_0x360cd7&&!_0x3005bd)return null;return{'stableVersion':_0x360cd7,'minimumVersion':_0x3005bd,'upgradeMessage':pickString(_0x526698[_0x4e330d(0xfc)])||undefined,'minimumVersionMessage':pickString(_0x526698[_0x4e330d(0xfd)])||undefined};}export async function fetchRabetbaseCdnConfig(){const _0x56cd88=a279_0xe203,_0x4019e3=new AbortController(),_0x216c82=setTimeout(()=>_0x4019e3[_0x56cd88(0x103)](),FETCH_TIMEOUT_MS);try{const _0x5f1504=await fetch(CLI_VERSION_POLICY_URL,{'headers':{'Accept':_0x56cd88(0xf2)},'signal':_0x4019e3[_0x56cd88(0xf9)]});if(!_0x5f1504['ok'])return null;const _0xe2be62=await _0x5f1504[_0x56cd88(0x107)]();return _0xe2be62&&typeof _0xe2be62==='object'?_0xe2be62:null;}catch{return null;}finally{clearTimeout(_0x216c82);}}function a279_0xe203(_0x412fb2,_0x2e0e81){_0x412fb2=_0x412fb2-0xf1;const _0x96cb36=a279_0x96cb();let _0xe20399=_0x96cb36[_0x412fb2];return _0xe20399;}export async function fetchCliVersionPolicy(){return normalizeCliVersionPolicy(await fetchRabetbaseCdnConfig());}let cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];export async function getRabetbaseCdnConfig(){const _0x52ee93=a279_0xe203,_0x1cfe9d=Date[_0x52ee93(0xfb)]();if(hasCachedConfig){const _0x5633ee=cachedConfig?CACHE_TTL:FAILURE_CACHE_TTL;if(_0x1cfe9d-cacheTime<_0x5633ee)return cachedConfig;}return cachedConfig=await fetchRabetbaseCdnConfig(),cacheTime=_0x1cfe9d,hasCachedConfig=!![],cachedConfig;}export async function getCliVersionPolicy(){return normalizeCliVersionPolicy(await getRabetbaseCdnConfig());}export function clearCliVersionPolicyCache(){cachedConfig=null,cacheTime=0x0,hasCachedConfig=![];}function a279_0x96cb(){const _0x378262=['2088321BrHunV','signal','7765SefZig','now','upgradeMessage','minimumVersionMessage','minimumVersion','1844976zAuYKO','string','2066022iCeImi','9nqqSTD','abort','780VphCDz','trim','length','json','cli','304wXpAmV','recommendedVersion','application/json','7590020gYrwkS','982805mjZAFl','150731jdRQXU','stableVersion','latestVersion'];a279_0x96cb=function(){return _0x378262;};return a279_0x96cb();}
@@ -1 +1 @@
1
- (function(_0x55050a,_0x55dfb5){const _0x38e2ad=a280_0x1f5f,_0x2c53fe=_0x55050a();while(!![]){try{const _0x3a5bd4=parseInt(_0x38e2ad(0x198))/0x1+parseInt(_0x38e2ad(0x190))/0x2*(-parseInt(_0x38e2ad(0x19c))/0x3)+-parseInt(_0x38e2ad(0x193))/0x4*(-parseInt(_0x38e2ad(0x192))/0x5)+parseInt(_0x38e2ad(0x191))/0x6+parseInt(_0x38e2ad(0x195))/0x7*(parseInt(_0x38e2ad(0x19b))/0x8)+-parseInt(_0x38e2ad(0x19a))/0x9*(-parseInt(_0x38e2ad(0x197))/0xa)+parseInt(_0x38e2ad(0x18f))/0xb*(-parseInt(_0x38e2ad(0x196))/0xc);if(_0x3a5bd4===_0x55dfb5)break;else _0x2c53fe['push'](_0x2c53fe['shift']());}catch(_0x3eeb0d){_0x2c53fe['push'](_0x2c53fe['shift']());}}}(a280_0x5bb9,0x6c52f));import{initEnv}from'../constant/env.js';import{readRawConfig,getConfigAppCode as a280_0x54d4c2,getMultiAppConfigs as a280_0x240063,getTemplateBaseUrl as a280_0x22b43c}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x37350e){const _0x56bfc1=a280_0x1f5f,_0x4f1d25=readRawConfig(_0x37350e);return _0x4f1d25[_0x56bfc1(0x199)]&&typeof _0x4f1d25['env']===_0x56bfc1(0x194)&&initEnv(_0x4f1d25['env']),_0x4f1d25;}function a280_0x5bb9(){const _0x5c9a89=['string','116305KJPiFA','12SUMnhd','10LHCths','325893IjlGaF','env','3086613GuKTzX','216GZzfCa','993gqieqJ','17663129vTyscS','1822CVrfcy','4196142abDhgs','4795dIkdLW','2228tCAkaY'];a280_0x5bb9=function(){return _0x5c9a89;};return a280_0x5bb9();}export function getConfigAppCode(){return a280_0x54d4c2();}export function getMultiAppConfigs(_0x1d4ac5='project'){return a280_0x240063(_0x1d4ac5);}function a280_0x1f5f(_0x167325,_0xaef339){_0x167325=_0x167325-0x18f;const _0x5bb90c=a280_0x5bb9();let _0x1f5ff7=_0x5bb90c[_0x167325];return _0x1f5ff7;}export function getTemplateBaseUrl(){return a280_0x22b43c();}
1
+ const a280_0x447558=a280_0x1681;(function(_0x18aac0,_0x50e684){const _0x4d23c7=a280_0x1681,_0x5c3a44=_0x18aac0();while(!![]){try{const _0x543f3a=-parseInt(_0x4d23c7(0x1c0))/0x1*(-parseInt(_0x4d23c7(0x1c3))/0x2)+parseInt(_0x4d23c7(0x1bf))/0x3+parseInt(_0x4d23c7(0x1bd))/0x4*(-parseInt(_0x4d23c7(0x1be))/0x5)+parseInt(_0x4d23c7(0x1ba))/0x6+-parseInt(_0x4d23c7(0x1c2))/0x7*(parseInt(_0x4d23c7(0x1bc))/0x8)+-parseInt(_0x4d23c7(0x1c6))/0x9+parseInt(_0x4d23c7(0x1c5))/0xa;if(_0x543f3a===_0x50e684)break;else _0x5c3a44['push'](_0x5c3a44['shift']());}catch(_0x325c7e){_0x5c3a44['push'](_0x5c3a44['shift']());}}}(a280_0x26ff,0xc6211));import{initEnv}from'../constant/env.js';function a280_0x1681(_0x2a4268,_0x76db51){_0x2a4268=_0x2a4268-0x1ba;const _0x26fff6=a280_0x26ff();let _0x1681e7=_0x26fff6[_0x2a4268];return _0x1681e7;}import{readRawConfig,getConfigAppCode as a280_0x2777f6,getMultiAppConfigs as a280_0x441cc2,getTemplateBaseUrl as a280_0x1e154f}from'../context.js';export{getProjectConfigPath,getGlobalConfigPath}from'../context.js';export{isInProject}from'../context.js';export function readConfig(_0x4a14dc){const _0x555787=a280_0x1681,_0x4d0181=readRawConfig(_0x4a14dc);return _0x4d0181[_0x555787(0x1bb)]&&typeof _0x4d0181[_0x555787(0x1bb)]===_0x555787(0x1c1)&&initEnv(_0x4d0181[_0x555787(0x1bb)]),_0x4d0181;}function a280_0x26ff(){const _0xee47fd=['3631610WWQnhA','1054566PIDzab','4831866CtxDhG','env','1760dduStZ','1348UxTzUz','19955SaQyHp','3923241zuwiFo','7cszrch','string','10591SMtHwK','37234PpdNmT','project'];a280_0x26ff=function(){return _0xee47fd;};return a280_0x26ff();}export function getConfigAppCode(){return a280_0x2777f6();}export function getMultiAppConfigs(_0x757c50=a280_0x447558(0x1c4)){return a280_0x441cc2(_0x757c50);}export function getTemplateBaseUrl(){return a280_0x1e154f();}
@@ -1 +1 @@
1
- (function(_0x9799f1,_0x121913){const _0x555600=a281_0x1c09,_0x49e99a=_0x9799f1();while(!![]){try{const _0x470455=parseInt(_0x555600(0x1ef))/0x1*(-parseInt(_0x555600(0x1f1))/0x2)+parseInt(_0x555600(0x1f4))/0x3*(parseInt(_0x555600(0x1fe))/0x4)+-parseInt(_0x555600(0x1ff))/0x5+-parseInt(_0x555600(0x1f3))/0x6*(-parseInt(_0x555600(0x1f0))/0x7)+parseInt(_0x555600(0x1fc))/0x8+-parseInt(_0x555600(0x1f9))/0x9*(-parseInt(_0x555600(0x1fb))/0xa)+-parseInt(_0x555600(0x1f5))/0xb*(parseInt(_0x555600(0x1f8))/0xc);if(_0x470455===_0x121913)break;else _0x49e99a['push'](_0x49e99a['shift']());}catch(_0x1f2171){_0x49e99a['push'](_0x49e99a['shift']());}}}(a281_0x204c,0x4fcf7));function toFiniteNumber(_0x1afd89){const _0x4f9f9c=a281_0x1c09;if(typeof _0x1afd89===_0x4f9f9c(0x1fa)&&Number[_0x4f9f9c(0x1f7)](_0x1afd89))return _0x1afd89;if(typeof _0x1afd89===_0x4f9f9c(0x1f2)){const _0x46f9e0=_0x1afd89[_0x4f9f9c(0x1fd)]();if(!_0x46f9e0)return undefined;const _0x2b02cb=Number(_0x46f9e0);if(Number[_0x4f9f9c(0x1f7)](_0x2b02cb))return _0x2b02cb;}return undefined;}export function normalizeEntityWithIdResponse(_0x3a4d31){const _0x506246=a281_0x1c09,_0x543791=toFiniteNumber(_0x3a4d31);if(_0x543791!==undefined)return{'id':_0x543791,'entity':{'id':_0x543791}};if(!_0x3a4d31||typeof _0x3a4d31!==_0x506246(0x1f6))return{'id':undefined,'entity':{}};const _0x3e4b84={..._0x3a4d31},_0x5c22d5=toFiniteNumber(_0x3e4b84['id']);return _0x5c22d5!==undefined&&(_0x3e4b84['id']=_0x5c22d5),{'id':_0x5c22d5,'entity':_0x3e4b84};}function a281_0x1c09(_0x4b44b6,_0xf9d974){_0x4b44b6=_0x4b44b6-0x1ef;const _0x204cea=a281_0x204c();let _0x1c09fa=_0x204cea[_0x4b44b6];return _0x1c09fa;}function a281_0x204c(){const _0x22ed6c=['number','594850tHgzEH','5131032dkdOba','trim','348dGgpMT','2283640CDnZAx','3NsohDh','49nETsNR','200406PAPYnR','string','549348wRQiGA','6876bhXkfq','5680609MWJqQk','object','isFinite','12whYYxH','18gxYYUM'];a281_0x204c=function(){return _0x22ed6c;};return a281_0x204c();}
1
+ (function(_0x5c8dba,_0x2c7806){const _0x354bae=a281_0x3206,_0x223d0d=_0x5c8dba();while(!![]){try{const _0x40b99f=parseInt(_0x354bae(0x1e5))/0x1*(-parseInt(_0x354bae(0x1f1))/0x2)+parseInt(_0x354bae(0x1ec))/0x3+-parseInt(_0x354bae(0x1e7))/0x4+-parseInt(_0x354bae(0x1ef))/0x5*(-parseInt(_0x354bae(0x1eb))/0x6)+-parseInt(_0x354bae(0x1ee))/0x7*(-parseInt(_0x354bae(0x1e6))/0x8)+-parseInt(_0x354bae(0x1ed))/0x9+parseInt(_0x354bae(0x1f0))/0xa*(parseInt(_0x354bae(0x1e8))/0xb);if(_0x40b99f===_0x2c7806)break;else _0x223d0d['push'](_0x223d0d['shift']());}catch(_0x32a7d8){_0x223d0d['push'](_0x223d0d['shift']());}}}(a281_0x311e,0x2d583));function a281_0x311e(){const _0x158712=['isFinite','string','12NDluKm','5280ZdctKw','1025874pVBNKl','1494661WQAboM','321085wEToCl','1098730MbPgrR','878iXEUpA','trim','257rPQJHz','8aWKzWy','164200JrJCwd','11UmIqRz'];a281_0x311e=function(){return _0x158712;};return a281_0x311e();}function a281_0x3206(_0x17d69e,_0x5bb147){_0x17d69e=_0x17d69e-0x1e4;const _0x311e64=a281_0x311e();let _0x32068e=_0x311e64[_0x17d69e];return _0x32068e;}function toFiniteNumber(_0x1a8a88){const _0x551e5b=a281_0x3206;if(typeof _0x1a8a88==='number'&&Number['isFinite'](_0x1a8a88))return _0x1a8a88;if(typeof _0x1a8a88===_0x551e5b(0x1ea)){const _0x1de48f=_0x1a8a88[_0x551e5b(0x1e4)]();if(!_0x1de48f)return undefined;const _0x345a1e=Number(_0x1de48f);if(Number[_0x551e5b(0x1e9)](_0x345a1e))return _0x345a1e;}return undefined;}export function normalizeEntityWithIdResponse(_0x241246){const _0x2f935d=toFiniteNumber(_0x241246);if(_0x2f935d!==undefined)return{'id':_0x2f935d,'entity':{'id':_0x2f935d}};if(!_0x241246||typeof _0x241246!=='object')return{'id':undefined,'entity':{}};const _0x175c64={..._0x241246},_0x326711=toFiniteNumber(_0x175c64['id']);return _0x326711!==undefined&&(_0x175c64['id']=_0x326711),{'id':_0x326711,'entity':_0x175c64};}
@@ -1 +1 @@
1
- (function(_0x5c6393,_0x3dc5cf){const _0x46ca4d=a282_0x2b88,_0x1e35cd=_0x5c6393();while(!![]){try{const _0x39003d=parseInt(_0x46ca4d(0xd7))/0x1+parseInt(_0x46ca4d(0xde))/0x2*(-parseInt(_0x46ca4d(0xd9))/0x3)+parseInt(_0x46ca4d(0xdd))/0x4+parseInt(_0x46ca4d(0xdc))/0x5+parseInt(_0x46ca4d(0xdb))/0x6+parseInt(_0x46ca4d(0xdf))/0x7*(-parseInt(_0x46ca4d(0xd8))/0x8)+-parseInt(_0x46ca4d(0xda))/0x9;if(_0x39003d===_0x3dc5cf)break;else _0x1e35cd['push'](_0x1e35cd['shift']());}catch(_0x2b4988){_0x1e35cd['push'](_0x1e35cd['shift']());}}}(a282_0x1a8d,0x37c80));import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';function a282_0x1a8d(){const _0x14fac3=['920125irCXJw','1645120qIZEjm','164yeQSZi','1743NZWRLu','104818CUJXvl','1672FuvOQu','3453mIUxqO','4445631FHdjkM','1012434zeGhvF'];a282_0x1a8d=function(){return _0x14fac3;};return a282_0x1a8d();}import{join}from'node:path';export async function copyDir(_0x45264c,_0x3245b0){const _0x5453fd=statSync(_0x45264c);if(_0x5453fd['isDirectory']()){!existsSync(_0x3245b0)&&mkdirSync(_0x3245b0,{'recursive':!![]});const _0x1e822b=readdirSync(_0x45264c);for(const _0x47f45f of _0x1e822b){await copyDir(join(_0x45264c,_0x47f45f),join(_0x3245b0,_0x47f45f));}}else copyFileSync(_0x45264c,_0x3245b0);}export function ensureDir(_0x547a92){!existsSync(_0x547a92)&&mkdirSync(_0x547a92,{'recursive':!![]});}function a282_0x2b88(_0x1ddf93,_0x50036a){_0x1ddf93=_0x1ddf93-0xd7;const _0x1a8d08=a282_0x1a8d();let _0x2b885d=_0x1a8d08[_0x1ddf93];return _0x2b885d;}export function pathExists(_0xcf35f5){return existsSync(_0xcf35f5);}
1
+ (function(_0x5bc19c,_0x3e79a3){const _0x7baea1=a282_0x2e28,_0x57a930=_0x5bc19c();while(!![]){try{const _0x39fed2=-parseInt(_0x7baea1(0x11b))/0x1+parseInt(_0x7baea1(0x11c))/0x2+parseInt(_0x7baea1(0x11f))/0x3+-parseInt(_0x7baea1(0x121))/0x4+parseInt(_0x7baea1(0x11d))/0x5+parseInt(_0x7baea1(0x122))/0x6+parseInt(_0x7baea1(0x120))/0x7;if(_0x39fed2===_0x3e79a3)break;else _0x57a930['push'](_0x57a930['shift']());}catch(_0x4677b8){_0x57a930['push'](_0x57a930['shift']());}}}(a282_0x46bc,0xea723));function a282_0x2e28(_0x54b41c,_0x24eab1){_0x54b41c=_0x54b41c-0x11b;const _0x46bc2f=a282_0x46bc();let _0x2e280c=_0x46bc2f[_0x54b41c];return _0x2e280c;}import{existsSync,mkdirSync,copyFileSync,readdirSync,statSync}from'node:fs';import{join}from'node:path';export async function copyDir(_0x3fe047,_0x51ac33){const _0x272351=a282_0x2e28,_0x5be501=statSync(_0x3fe047);if(_0x5be501[_0x272351(0x11e)]()){!existsSync(_0x51ac33)&&mkdirSync(_0x51ac33,{'recursive':!![]});const _0x82db5d=readdirSync(_0x3fe047);for(const _0x3b3f7a of _0x82db5d){await copyDir(join(_0x3fe047,_0x3b3f7a),join(_0x51ac33,_0x3b3f7a));}}else copyFileSync(_0x3fe047,_0x51ac33);}export function ensureDir(_0x557346){!existsSync(_0x557346)&&mkdirSync(_0x557346,{'recursive':!![]});}export function pathExists(_0x3b67f9){return existsSync(_0x3b67f9);}function a282_0x46bc(){const _0x3c6d75=['369174OLDIEw','1032419ysZazx','334348GXbeNu','2831870tXFgoS','isDirectory','4062975zBWAVD','3790003YmqUuB','2792484DXrotJ'];a282_0x46bc=function(){return _0x3c6d75;};return a282_0x46bc();}
@@ -1 +1 @@
1
- const a283_0x27a2aa=a283_0x2de9;(function(_0x329523,_0x57ef18){const _0x1135b9=a283_0x2de9,_0x3ca1f8=_0x329523();while(!![]){try{const _0x175d63=parseInt(_0x1135b9(0x203))/0x1+-parseInt(_0x1135b9(0x1f5))/0x2*(-parseInt(_0x1135b9(0x1fa))/0x3)+-parseInt(_0x1135b9(0x1fd))/0x4+parseInt(_0x1135b9(0x1f8))/0x5+-parseInt(_0x1135b9(0x1f2))/0x6*(-parseInt(_0x1135b9(0x210))/0x7)+parseInt(_0x1135b9(0x1f1))/0x8+parseInt(_0x1135b9(0x20c))/0x9*(-parseInt(_0x1135b9(0x1f7))/0xa);if(_0x175d63===_0x57ef18)break;else _0x3ca1f8['push'](_0x3ca1f8['shift']());}catch(_0x487283){_0x3ca1f8['push'](_0x3ca1f8['shift']());}}}(a283_0x5828,0xca28c));function a283_0x2de9(_0x3993eb,_0x4855e4){_0x3993eb=_0x3993eb-0x1f1;const _0x58287b=a283_0x5828();let _0x2de974=_0x58287b[_0x3993eb];return _0x2de974;}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 _0x60d1cb=getTemplateBaseUrl();return _0x60d1cb+'/skills/guides.json';}const CACHE_DIR=join(homedir(),a283_0x27a2aa(0x205),a283_0x27a2aa(0x201));export async function fetchGuidesFromCDN(){const _0x4122c3=a283_0x27a2aa,_0xd0aef8=getGuidesCdnUrl(),_0x3cbe71=await fetch(_0xd0aef8,{'headers':{'Accept':_0x4122c3(0x211)}});if(!_0x3cbe71['ok'])throw new Error('CDN\x20request\x20failed:\x20'+_0x3cbe71[_0x4122c3(0x1ff)]+'\x20'+_0x3cbe71[_0x4122c3(0x1f6)]);const _0x4a6600=await _0x3cbe71[_0x4122c3(0x209)]();if(!_0x4a6600['guides']||typeof _0x4a6600['guides']!==_0x4122c3(0x20d))throw new Error(_0x4122c3(0x1f9));return _0x4a6600;}export function writeGuidesToProject(_0x50762f,_0x1fb52a,_0x19d419='.lovrabet/skill/guides',_0x1340bd){const _0x48a908=a283_0x27a2aa,_0x5013b1=join(_0x1fb52a,_0x19d419);mkdirSync(_0x5013b1,{'recursive':!![]});for(const [_0x4969d6,_0x5da11a]of Object[_0x48a908(0x207)](_0x50762f[_0x48a908(0x20a)])){let _0x4a2010=_0x5da11a[_0x48a908(0x208)];_0x5da11a[_0x48a908(0x1f4)]&&(_0x4a2010=appendUpdateTime(_0x4a2010,_0x5da11a[_0x48a908(0x1f4)])),writeFileSync(join(_0x5013b1,_0x4969d6+'.md'),_0x4a2010,_0x48a908(0x202));}}export function appendUpdateTime(_0x4aa872,_0x4905e5){const _0x222503=a283_0x27a2aa;return _0x4aa872=_0x4aa872['replace'](/\n*>更新时间:.*$/m,''),_0x4aa872[_0x222503(0x1fc)]()+(_0x222503(0x1fe)+_0x4905e5);}function a283_0x5828(){const _0x7cb3e3=['json','guides','title','20135943DcRgCq','object','CDN\x20data\x20is\x20missing\x20skillTemplate','map','7mfqwzB','application/json','extendContent','10660584HYQUYL','580422QAVGqc','skillTemplate','lastUpdated','10Zaouhq','statusText','10FuosTR','1993110rcGJMo','CDN\x20returned\x20invalid\x20data','509697UAuVRa','replace','trimEnd','3390892LRKJcb','\x0a\x0a>更新时间:','status','push','cache','utf-8','1235667qvTkJZ','length','.lovrabet','keys','entries','content'];a283_0x5828=function(){return _0x7cb3e3;};return a283_0x5828();}export function getSkillTemplate(_0x1e21bf){const _0x19262c=a283_0x27a2aa;return _0x1e21bf[_0x19262c(0x1f3)]?.[_0x19262c(0x208)]||'';}export function appendExtendContents(_0x2f01af,_0x44bb7a,_0x565d16){const _0x37c46c=a283_0x27a2aa,_0x2b8fd0=[];for(const [,_0x1175a6]of Object[_0x37c46c(0x207)](_0x44bb7a[_0x37c46c(0x20a)])){_0x1175a6['extendContent']&&_0x2b8fd0[_0x37c46c(0x200)](_0x1175a6[_0x37c46c(0x212)][_0x37c46c(0x1fc)]());}if(_0x2b8fd0[_0x37c46c(0x204)]===0x0)return _0x2f01af;return _0x2f01af[_0x37c46c(0x1fc)]()+'\x0a\x0a'+_0x2b8fd0['join']('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x5c4fe9,_0x53f347,_0x47ce60){const _0x4cd6cb=a283_0x27a2aa,_0xce88e4=getSkillTemplate(_0x5c4fe9);if(!_0xce88e4)throw new Error(_0x4cd6cb(0x20e));const _0x6c6b67=dirname(_0x53f347);mkdirSync(_0x6c6b67,{'recursive':!![]});let _0x3fd437=_0xce88e4[_0x4cd6cb(0x1fb)](/\{\{IDE_NAME\}\}/g,_0x47ce60);_0x3fd437=appendExtendContents(_0x3fd437,_0x5c4fe9),_0x5c4fe9[_0x4cd6cb(0x1f3)][_0x4cd6cb(0x1f4)]&&(_0x3fd437=appendUpdateTime(_0x3fd437,_0x5c4fe9[_0x4cd6cb(0x1f3)][_0x4cd6cb(0x1f4)])),writeFileSync(_0x53f347,_0x3fd437,'utf-8');}export async function installGuides(_0x17bb41){const _0x43cd2c=a283_0x27a2aa,_0x3de8a2=await fetchGuidesFromCDN();return writeGuidesToProject(_0x3de8a2,_0x17bb41),Object[_0x43cd2c(0x206)](_0x3de8a2[_0x43cd2c(0x20a)])['length'];}export function getGuidesSummary(_0x20d2e4){const _0x2f7dc4=a283_0x27a2aa;return Object[_0x2f7dc4(0x207)](_0x20d2e4[_0x2f7dc4(0x20a)])[_0x2f7dc4(0x20f)](([_0x47326b,_0x37e6f4])=>({'key':_0x47326b,'title':_0x37e6f4[_0x2f7dc4(0x20b)],'path':_0x37e6f4['path']}));}
1
+ const a283_0x5b0dcb=a283_0x4b8d;(function(_0x477bd0,_0xaed065){const _0x5a53e3=a283_0x4b8d,_0x4f0e63=_0x477bd0();while(!![]){try{const _0x13bf01=parseInt(_0x5a53e3(0x10a))/0x1*(parseInt(_0x5a53e3(0x116))/0x2)+parseInt(_0x5a53e3(0x11a))/0x3*(parseInt(_0x5a53e3(0x102))/0x4)+-parseInt(_0x5a53e3(0x110))/0x5*(parseInt(_0x5a53e3(0x108))/0x6)+parseInt(_0x5a53e3(0x103))/0x7*(parseInt(_0x5a53e3(0x120))/0x8)+-parseInt(_0x5a53e3(0x112))/0x9+parseInt(_0x5a53e3(0x115))/0xa*(-parseInt(_0x5a53e3(0x104))/0xb)+-parseInt(_0x5a53e3(0x11b))/0xc*(-parseInt(_0x5a53e3(0x122))/0xd);if(_0x13bf01===_0xaed065)break;else _0x4f0e63['push'](_0x4f0e63['shift']());}catch(_0x24c64b){_0x4f0e63['push'](_0x4f0e63['shift']());}}}(a283_0x2282,0xdfcd2));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 _0x55015e=a283_0x4b8d,_0x227ffa=getTemplateBaseUrl();return _0x227ffa+_0x55015e(0x105);}const CACHE_DIR=join(homedir(),a283_0x5b0dcb(0x11f),a283_0x5b0dcb(0x113));function a283_0x2282(){const _0x49b762=['length','statusText','CDN\x20request\x20failed:\x20','lastUpdated','5AMTHWp','entries','5061087DTxkPN','cache','.md','30ewYjJr','2kXOLiP','utf-8','title','.lovrabet/skill/guides','6gsxBEH','28629996ynMqDh','path','CDN\x20data\x20is\x20missing\x20skillTemplate','keys','.lovrabet','64632rmFCYd','guides','13JTKAip','join','content','replace','725776LdefqH','497bZATen','1097547uvesWT','/skills/guides.json','\x0a\x0a>更新时间:','trimEnd','9631494TJTAxl','skillTemplate','61283WXoQAA','json'];a283_0x2282=function(){return _0x49b762;};return a283_0x2282();}function a283_0x4b8d(_0x3fcb7a,_0x387701){_0x3fcb7a=_0x3fcb7a-0x102;const _0x22823b=a283_0x2282();let _0x4b8dc6=_0x22823b[_0x3fcb7a];return _0x4b8dc6;}export async function fetchGuidesFromCDN(){const _0x1f59ad=a283_0x5b0dcb,_0x45d8ff=getGuidesCdnUrl(),_0x2c3e31=await fetch(_0x45d8ff,{'headers':{'Accept':'application/json'}});if(!_0x2c3e31['ok'])throw new Error(_0x1f59ad(0x10e)+_0x2c3e31['status']+'\x20'+_0x2c3e31[_0x1f59ad(0x10d)]);const _0x1224e5=await _0x2c3e31[_0x1f59ad(0x10b)]();if(!_0x1224e5[_0x1f59ad(0x121)]||typeof _0x1224e5[_0x1f59ad(0x121)]!=='object')throw new Error('CDN\x20returned\x20invalid\x20data');return _0x1224e5;}export function writeGuidesToProject(_0x299d2b,_0xfe28f6,_0xd7d681=a283_0x5b0dcb(0x119),_0x1e408f){const _0x2e376b=a283_0x5b0dcb,_0xc90f8c=join(_0xfe28f6,_0xd7d681);mkdirSync(_0xc90f8c,{'recursive':!![]});for(const [_0x4344a2,_0x479ebd]of Object[_0x2e376b(0x111)](_0x299d2b[_0x2e376b(0x121)])){let _0xe43986=_0x479ebd[_0x2e376b(0x124)];_0x479ebd[_0x2e376b(0x10f)]&&(_0xe43986=appendUpdateTime(_0xe43986,_0x479ebd[_0x2e376b(0x10f)])),writeFileSync(join(_0xc90f8c,_0x4344a2+_0x2e376b(0x114)),_0xe43986,_0x2e376b(0x117));}}export function appendUpdateTime(_0x1f4342,_0x5d5350){const _0x976488=a283_0x5b0dcb;return _0x1f4342=_0x1f4342['replace'](/\n*>更新时间:.*$/m,''),_0x1f4342[_0x976488(0x107)]()+(_0x976488(0x106)+_0x5d5350);}export function getSkillTemplate(_0x31d875){const _0x5f274d=a283_0x5b0dcb;return _0x31d875[_0x5f274d(0x109)]?.[_0x5f274d(0x124)]||'';}export function appendExtendContents(_0x4ea615,_0x1ad94b,_0x163dce){const _0x3c45fd=a283_0x5b0dcb,_0x1a9382=[];for(const [,_0x195ab5]of Object[_0x3c45fd(0x111)](_0x1ad94b['guides'])){_0x195ab5['extendContent']&&_0x1a9382['push'](_0x195ab5['extendContent'][_0x3c45fd(0x107)]());}if(_0x1a9382[_0x3c45fd(0x10c)]===0x0)return _0x4ea615;return _0x4ea615[_0x3c45fd(0x107)]()+'\x0a\x0a'+_0x1a9382[_0x3c45fd(0x123)]('\x0a\x0a')+'\x0a';}export function writeSkillFile(_0x45ef23,_0xbc049a,_0x2772b4){const _0x5ddce6=a283_0x5b0dcb,_0x5a755f=getSkillTemplate(_0x45ef23);if(!_0x5a755f)throw new Error(_0x5ddce6(0x11d));const _0x3de2fb=dirname(_0xbc049a);mkdirSync(_0x3de2fb,{'recursive':!![]});let _0x169ce0=_0x5a755f[_0x5ddce6(0x125)](/\{\{IDE_NAME\}\}/g,_0x2772b4);_0x169ce0=appendExtendContents(_0x169ce0,_0x45ef23),_0x45ef23[_0x5ddce6(0x109)][_0x5ddce6(0x10f)]&&(_0x169ce0=appendUpdateTime(_0x169ce0,_0x45ef23[_0x5ddce6(0x109)][_0x5ddce6(0x10f)])),writeFileSync(_0xbc049a,_0x169ce0,_0x5ddce6(0x117));}export async function installGuides(_0x44420d){const _0x3b47f2=a283_0x5b0dcb,_0x56f159=await fetchGuidesFromCDN();return writeGuidesToProject(_0x56f159,_0x44420d),Object[_0x3b47f2(0x11e)](_0x56f159[_0x3b47f2(0x121)])[_0x3b47f2(0x10c)];}export function getGuidesSummary(_0xaa1a9f){const _0x5e177f=a283_0x5b0dcb;return Object[_0x5e177f(0x111)](_0xaa1a9f[_0x5e177f(0x121)])['map'](([_0x589451,_0x566269])=>({'key':_0x589451,'title':_0x566269[_0x5e177f(0x118)],'path':_0x566269[_0x5e177f(0x11c)]}));}
@@ -1 +1 @@
1
- (function(_0x3dd85e,_0x2bea29){const _0x200f12=a284_0xe97b,_0x3b5b57=_0x3dd85e();while(!![]){try{const _0xd2d11d=parseInt(_0x200f12(0x17d))/0x1*(parseInt(_0x200f12(0x17a))/0x2)+parseInt(_0x200f12(0x185))/0x3*(-parseInt(_0x200f12(0x17e))/0x4)+-parseInt(_0x200f12(0x174))/0x5+-parseInt(_0x200f12(0x170))/0x6+parseInt(_0x200f12(0x182))/0x7*(-parseInt(_0x200f12(0x175))/0x8)+parseInt(_0x200f12(0x171))/0x9+-parseInt(_0x200f12(0x17f))/0xa;if(_0xd2d11d===_0x2bea29)break;else _0x3b5b57['push'](_0x3b5b57['shift']());}catch(_0x8c978a){_0x3b5b57['push'](_0x3b5b57['shift']());}}}(a284_0x1927,0x1af4f));export async function httpRequest(_0x17d229,_0x50cb76={}){const _0x2f3654=a284_0xe97b,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x50cb76;let _0x112e6f=null;for(let _0x12a1a0=0x0;_0x12a1a0<=retries;_0x12a1a0++){try{const _0x5c1dce=new AbortController(),_0x16689e=setTimeout(()=>_0x5c1dce[_0x2f3654(0x187)](),timeout),_0x442bea=await fetch(_0x17d229,{'headers':headers,'signal':_0x5c1dce[_0x2f3654(0x189)]});clearTimeout(_0x16689e);let _0x361e45;const _0x19b7f5=_0x442bea[_0x2f3654(0x181)]['get'](_0x2f3654(0x184));return _0x19b7f5?.['includes'](_0x2f3654(0x18a))?_0x361e45=await _0x442bea[_0x2f3654(0x176)]():_0x361e45=await _0x442bea['text'](),{'ok':_0x442bea['ok'],'status':_0x442bea[_0x2f3654(0x180)],'statusText':_0x442bea[_0x2f3654(0x186)],'data':_0x361e45,'headers':_0x442bea[_0x2f3654(0x181)],'url':_0x442bea['url'],'text':()=>_0x442bea['text']()};}catch(_0x314b14){_0x112e6f=_0x314b14 instanceof Error?_0x314b14:new Error(String(_0x314b14));if(_0x12a1a0===retries)break;if(shouldRetry(_0x314b14)){console[_0x2f3654(0x178)](_0x2f3654(0x188)+(_0x12a1a0+0x1)+'\x20in\x20'+retryDelay+_0x2f3654(0x173)),await sleep(retryDelay);continue;}else break;}}throw _0x112e6f||new Error('Request\x20failed');}function a284_0xe97b(_0x41a939,_0x2bdfb4){_0x41a939=_0x41a939-0x16f;const _0x19272b=a284_0x1927();let _0xe97bb3=_0x19272b[_0x41a939];return _0xe97bb3;}function shouldRetry(_0x5beb10){const _0x2d12ce=a284_0xe97b;if(_0x5beb10 instanceof Error){if(_0x5beb10[_0x2d12ce(0x183)]===_0x2d12ce(0x177))return![];if(_0x5beb10['name']===_0x2d12ce(0x17c)&&_0x5beb10[_0x2d12ce(0x172)][_0x2d12ce(0x17b)](_0x2d12ce(0x16f)))return!![];if(_0x5beb10['message'][_0x2d12ce(0x17b)]('ECONNRESET'))return!![];if(_0x5beb10[_0x2d12ce(0x172)][_0x2d12ce(0x17b)](_0x2d12ce(0x179)))return![];}return![];}function sleep(_0x246acf){return new Promise(_0x11afb5=>setTimeout(_0x11afb5,_0x246acf));}export function validateUrl(_0x511a75){try{return new URL(_0x511a75),!![];}catch{return![];}}function a284_0x1927(){const _0x154bda=['application/json','fetch','399072OrdyfM','1673874jcHGBI','message','ms...','373650myvBqr','16WCzkuX','json','AbortError','log','ENOTFOUND','205438BngIGQ','includes','TypeError','1lVOyRb','4436HkdlHE','111230ltuENw','status','headers','55804cLEKOY','name','content-type','27OYduPD','statusText','abort','*\x20Request\x20failed;\x20retry\x20','signal'];a284_0x1927=function(){return _0x154bda;};return a284_0x1927();}
1
+ function a284_0xf211(){const _0x2af53c=['5754024chSzdB','includes','get','log','TypeError','ECONNRESET','statusText','23994256CDnBPk','fetch','ENOTFOUND','text','signal','3324296APwnnB','name','2297916bRDgBm','*\x20Request\x20failed;\x20retry\x20','\x20in\x20','ms...','json','message','1301742jzQode','1LTNgXQ','status','441565XyEMII','application/json','AbortError','content-type','Request\x20failed','6700995cULCAW'];a284_0xf211=function(){return _0x2af53c;};return a284_0xf211();}(function(_0x29244f,_0x2247b2){const _0x1cb2a1=a284_0x1d85,_0x56afe0=_0x29244f();while(!![]){try{const _0x35391a=parseInt(_0x1cb2a1(0x128))/0x1*(-parseInt(_0x1cb2a1(0x121))/0x2)+-parseInt(_0x1cb2a1(0x127))/0x3+-parseInt(_0x1cb2a1(0x11f))/0x4+parseInt(_0x1cb2a1(0x12a))/0x5+-parseInt(_0x1cb2a1(0x113))/0x6+parseInt(_0x1cb2a1(0x112))/0x7+parseInt(_0x1cb2a1(0x11a))/0x8;if(_0x35391a===_0x2247b2)break;else _0x56afe0['push'](_0x56afe0['shift']());}catch(_0x3440c9){_0x56afe0['push'](_0x56afe0['shift']());}}}(a284_0xf211,0xa40ba));export async function httpRequest(_0x422961,_0x486fa5={}){const _0x4245bb=a284_0x1d85,{timeout:timeout=0x7530,retries:retries=0x3,retryDelay:retryDelay=0x3e8,headers:headers={}}=_0x486fa5;let _0x4c9343=null;for(let _0x241596=0x0;_0x241596<=retries;_0x241596++){try{const _0x934b3d=new AbortController(),_0x5a0801=setTimeout(()=>_0x934b3d['abort'](),timeout),_0x25536c=await fetch(_0x422961,{'headers':headers,'signal':_0x934b3d[_0x4245bb(0x11e)]});clearTimeout(_0x5a0801);let _0x285f04;const _0x52b811=_0x25536c['headers'][_0x4245bb(0x115)](_0x4245bb(0x110));return _0x52b811?.[_0x4245bb(0x114)](_0x4245bb(0x12b))?_0x285f04=await _0x25536c[_0x4245bb(0x125)]():_0x285f04=await _0x25536c[_0x4245bb(0x11d)](),{'ok':_0x25536c['ok'],'status':_0x25536c[_0x4245bb(0x129)],'statusText':_0x25536c[_0x4245bb(0x119)],'data':_0x285f04,'headers':_0x25536c['headers'],'url':_0x25536c['url'],'text':()=>_0x25536c[_0x4245bb(0x11d)]()};}catch(_0x29ca2d){_0x4c9343=_0x29ca2d instanceof Error?_0x29ca2d:new Error(String(_0x29ca2d));if(_0x241596===retries)break;if(shouldRetry(_0x29ca2d)){console[_0x4245bb(0x116)](_0x4245bb(0x122)+(_0x241596+0x1)+_0x4245bb(0x123)+retryDelay+_0x4245bb(0x124)),await sleep(retryDelay);continue;}else break;}}throw _0x4c9343||new Error(_0x4245bb(0x111));}function shouldRetry(_0x48981d){const _0x1e32e6=a284_0x1d85;if(_0x48981d instanceof Error){if(_0x48981d[_0x1e32e6(0x120)]===_0x1e32e6(0x12c))return![];if(_0x48981d[_0x1e32e6(0x120)]===_0x1e32e6(0x117)&&_0x48981d[_0x1e32e6(0x126)][_0x1e32e6(0x114)](_0x1e32e6(0x11b)))return!![];if(_0x48981d[_0x1e32e6(0x126)][_0x1e32e6(0x114)](_0x1e32e6(0x118)))return!![];if(_0x48981d['message']['includes'](_0x1e32e6(0x11c)))return![];}return![];}function a284_0x1d85(_0x2a38e4,_0x185b78){_0x2a38e4=_0x2a38e4-0x110;const _0xf21134=a284_0xf211();let _0x1d853b=_0xf21134[_0x2a38e4];return _0x1d853b;}function sleep(_0x189ec4){return new Promise(_0x35ed87=>setTimeout(_0x35ed87,_0x189ec4));}export function validateUrl(_0x39d379){try{return new URL(_0x39d379),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x377aa4,_0x56f6d6){const _0x1d66e7=a285_0x37c1,_0x189df9=_0x377aa4();while(!![]){try{const _0x159070=parseInt(_0x1d66e7(0x180))/0x1*(parseInt(_0x1d66e7(0x182))/0x2)+-parseInt(_0x1d66e7(0x17b))/0x3+-parseInt(_0x1d66e7(0x183))/0x4+-parseInt(_0x1d66e7(0x181))/0x5+parseInt(_0x1d66e7(0x17c))/0x6+-parseInt(_0x1d66e7(0x17d))/0x7*(-parseInt(_0x1d66e7(0x17f))/0x8)+-parseInt(_0x1d66e7(0x17a))/0x9;if(_0x159070===_0x56f6d6)break;else _0x189df9['push'](_0x189df9['shift']());}catch(_0x51f1ec){_0x189df9['push'](_0x189df9['shift']());}}}(a285_0x58e4,0xb26b8));function env(_0x40d977){return process.env[`RABETBASE_${_0x40d977}`]||process.env[`LOVRABET_${_0x40d977}`]||undefined;}function a285_0x37c1(_0x410f3c,_0xfae618){_0x410f3c=_0x410f3c-0x179;const _0x58e405=a285_0x58e4();let _0x37c1f8=_0x58e405[_0x410f3c];return _0x37c1f8;}export function isNonInteractive(_0x50d158){const _0x2a6e8d=a285_0x37c1;return!!(_0x50d158['nonInteractive']||_0x50d158['ci']||env('CI')===_0x2a6e8d(0x186)||process.env.CI==='true'||!process[_0x2a6e8d(0x184)]['isTTY']||!isStdinRawModeSupported());}function a285_0x58e4(){const _0x318c52=['708144AmOCqI','7599420zMmKGX','35wCboPf','isRaw','1741232oIXnvv','4481JYddOd','6247495ZiBnJx','502nvMlwQ','4774784LfTXsP','stdout','setRawMode','true','stdin','625680XkdqvL'];a285_0x58e4=function(){return _0x318c52;};return a285_0x58e4();}function isStdinRawModeSupported(){const _0x42c17d=a285_0x37c1;if(!process[_0x42c17d(0x179)]['isTTY'])return![];try{const _0x46a5b5=process[_0x42c17d(0x179)][_0x42c17d(0x17e)];return process[_0x42c17d(0x179)][_0x42c17d(0x185)](!![]),process['stdin'][_0x42c17d(0x185)](_0x46a5b5??![]),!![];}catch{return![];}}
1
+ (function(_0x510eda,_0x2692c2){const _0x25590d=a285_0x188a,_0x809cfe=_0x510eda();while(!![]){try{const _0x52c419=parseInt(_0x25590d(0x130))/0x1+-parseInt(_0x25590d(0x12a))/0x2*(parseInt(_0x25590d(0x12b))/0x3)+parseInt(_0x25590d(0x131))/0x4+parseInt(_0x25590d(0x12c))/0x5+-parseInt(_0x25590d(0x12d))/0x6*(parseInt(_0x25590d(0x133))/0x7)+-parseInt(_0x25590d(0x138))/0x8*(parseInt(_0x25590d(0x134))/0x9)+parseInt(_0x25590d(0x136))/0xa;if(_0x52c419===_0x2692c2)break;else _0x809cfe['push'](_0x809cfe['shift']());}catch(_0xa77812){_0x809cfe['push'](_0x809cfe['shift']());}}}(a285_0x5617,0x67ef1));function env(_0x2b9413){return process.env[`RABETBASE_${_0x2b9413}`]||process.env[`LOVRABET_${_0x2b9413}`]||undefined;}export function isNonInteractive(_0x332226){const _0x2b36a7=a285_0x188a;return!!(_0x332226[_0x2b36a7(0x135)]||_0x332226['ci']||env('CI')===_0x2b36a7(0x132)||process.env.CI===_0x2b36a7(0x132)||!process['stdout']['isTTY']||!isStdinRawModeSupported());}function a285_0x5617(){const _0xac9515=['494680cvevrx','6KcNGwl','1477230QNeiqP','2451996sPeOMJ','stdin','setRawMode','742309DKRtGW','2510892uIHrUN','true','14KPiMXy','6943995xbgiCq','nonInteractive','8438020hQNSjK','isTTY','8eBnTxJ','isRaw'];a285_0x5617=function(){return _0xac9515;};return a285_0x5617();}function a285_0x188a(_0x989fc7,_0x215b56){_0x989fc7=_0x989fc7-0x129;const _0x561795=a285_0x5617();let _0x188af6=_0x561795[_0x989fc7];return _0x188af6;}function isStdinRawModeSupported(){const _0x5a39b5=a285_0x188a;if(!process['stdin'][_0x5a39b5(0x137)])return![];try{const _0x3bbb95=process[_0x5a39b5(0x12e)][_0x5a39b5(0x129)];return process[_0x5a39b5(0x12e)][_0x5a39b5(0x12f)](!![]),process[_0x5a39b5(0x12e)][_0x5a39b5(0x12f)](_0x3bbb95??![]),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const a286_0x228f31=a286_0x46fe;(function(_0xd4c243,_0x88d05e){const _0x51a751=a286_0x46fe,_0x494892=_0xd4c243();while(!![]){try{const _0x4c90cf=parseInt(_0x51a751(0x1d6))/0x1*(-parseInt(_0x51a751(0x1cd))/0x2)+-parseInt(_0x51a751(0x1dd))/0x3+-parseInt(_0x51a751(0x1db))/0x4+parseInt(_0x51a751(0x1dc))/0x5+-parseInt(_0x51a751(0x1d8))/0x6*(-parseInt(_0x51a751(0x1d9))/0x7)+parseInt(_0x51a751(0x1e1))/0x8+-parseInt(_0x51a751(0x1bf))/0x9;if(_0x4c90cf===_0x88d05e)break;else _0x494892['push'](_0x494892['shift']());}catch(_0x5313c5){_0x494892['push'](_0x494892['shift']());}}}(a286_0x5e89,0x9dfe2));import a286_0x1928a3 from'winston';import a286_0x25a645 from'node:fs';function a286_0x5e89(){const _0x5e282a=['currentRawCommand','warn','addColors','winstonLogger','red','info','readFileSync','logFilePath','setRawCommand','.lovrabet.log','combine','14vQyCXq','success','stringify','File','green','createLogger','dirname','details','error','52593YcLlkC','now','1146OfuMRD','6559eAMfjV','Failed\x20to\x20read\x20logs:','561176UVvUMX','4852680KPchOK','463617qyvMhb','duration','Failed:\x20','errors','9947840mwjBDr','printf','Completed:\x20','existsSync','join','writeFileSync','filter','parse','trim','clearLogs','level','split','timestamp','rawCommand','map','Failed\x20to\x20clear\x20logs:','readLogs','utf8','command','format','Starting:\x20','9745749zkFWGW','blue','message'];a286_0x5e89=function(){return _0x5e282a;};return a286_0x5e89();}import a286_0x1dbb31 from'node:path';function a286_0x46fe(_0xb5c05c,_0xc63be1){_0xb5c05c=_0xb5c05c-0x1af;const _0x5e8954=a286_0x5e89();let _0x46fe6b=_0x5e8954[_0xb5c05c];return _0x46fe6b;}class Logger{[a286_0x228f31(0x1c5)];[a286_0x228f31(0x1c9)];[a286_0x228f31(0x1c2)]='';constructor(){const _0x2a4eb0=a286_0x228f31;this[_0x2a4eb0(0x1c9)]='';}[a286_0x228f31(0x1ca)](_0x5c3c0c){const _0x5a3d34=a286_0x228f31;this[_0x5a3d34(0x1c2)]=_0x5c3c0c;}['initWinstonLogger'](){const _0xeb1577=a286_0x228f31,_0x18a117=a286_0x1dbb31[_0xeb1577(0x1d3)](this['logFilePath']);!a286_0x25a645[_0xeb1577(0x1e4)](_0x18a117)&&a286_0x25a645['mkdirSync'](_0x18a117,{'recursive':!![]});const _0x1a6c17=a286_0x1928a3[_0xeb1577(0x1bd)][_0xeb1577(0x1cc)](a286_0x1928a3[_0xeb1577(0x1bd)][_0xeb1577(0x1b6)](),a286_0x1928a3[_0xeb1577(0x1bd)][_0xeb1577(0x1e0)]({'stack':!![]}),a286_0x1928a3[_0xeb1577(0x1bd)][_0xeb1577(0x1e2)](_0x473764=>{const _0x50c3df=_0xeb1577,_0x1097c8={'timestamp':_0x473764['timestamp']||new Date()['toISOString'](),'level':_0x473764[_0x50c3df(0x1b4)]||_0x50c3df(0x1c7),'command':_0x473764[_0x50c3df(0x1bc)]||'unknown','rawCommand':_0x473764[_0x50c3df(0x1b7)]||this[_0x50c3df(0x1c2)]||undefined,'message':_0x473764[_0x50c3df(0x1c1)]||'','duration':_0x473764[_0x50c3df(0x1de)]||undefined,'details':_0x473764[_0x50c3df(0x1d4)]||undefined};return JSON[_0x50c3df(0x1cf)](_0x1097c8);}));this[_0xeb1577(0x1c5)]=a286_0x1928a3[_0xeb1577(0x1d2)]({'level':_0xeb1577(0x1c7),'format':_0x1a6c17,'transports':[new a286_0x1928a3['transports'][(_0xeb1577(0x1d0))]({'filename':this[_0xeb1577(0x1c9)],'level':_0xeb1577(0x1c7)})],'silent':![]}),a286_0x1928a3[_0xeb1577(0x1c4)]({'success':_0xeb1577(0x1d1),'error':_0xeb1577(0x1c6),'warn':'yellow','info':_0xeb1577(0x1c0)});}['setLogPath'](_0x33caac){const _0x6dbde6=a286_0x228f31;this['logFilePath']=a286_0x1dbb31[_0x6dbde6(0x1e5)](_0x33caac,_0x6dbde6(0x1cb)),this[_0x6dbde6(0x1c5)]&&this[_0x6dbde6(0x1c5)]['clear'](),this['initWinstonLogger']();}[a286_0x228f31(0x1c7)](_0x413008,_0x2cfbc7,_0xeae0fa){const _0x122be0=a286_0x228f31;if(!this[_0x122be0(0x1c9)]||!this[_0x122be0(0x1c5)])return;this[_0x122be0(0x1c5)]['info'](_0x2cfbc7,{'command':_0x413008,'details':_0xeae0fa});}[a286_0x228f31(0x1ce)](_0x553904,_0x3b646e,_0x1612b7,_0x3bd781){const _0x2edc1e=a286_0x228f31;if(!this[_0x2edc1e(0x1c9)]||!this[_0x2edc1e(0x1c5)])return;this[_0x2edc1e(0x1c5)]['log'](_0x2edc1e(0x1c7),_0x3b646e,{'level':'success','command':_0x553904,'duration':_0x1612b7,'details':_0x3bd781});}[a286_0x228f31(0x1d5)](_0x5b7d4a,_0x1eaf80,_0x364544){const _0x37c0a1=a286_0x228f31;if(!this['logFilePath']||!this[_0x37c0a1(0x1c5)])return;this[_0x37c0a1(0x1c5)][_0x37c0a1(0x1d5)](_0x1eaf80,{'command':_0x5b7d4a,'details':_0x364544});}[a286_0x228f31(0x1c3)](_0x56f1c6,_0x447b67,_0x25247f){const _0x3a2b79=a286_0x228f31;if(!this[_0x3a2b79(0x1c9)]||!this['winstonLogger'])return;this[_0x3a2b79(0x1c5)][_0x3a2b79(0x1c3)](_0x447b67,{'command':_0x56f1c6,'details':_0x25247f});}async['logTask'](_0x39f569,_0x24897e,_0x2803f9){const _0x192320=a286_0x228f31,_0x3a050c=Date[_0x192320(0x1d7)]();this['info'](_0x39f569,_0x192320(0x1be)+_0x24897e);try{const _0x19ab34=await _0x2803f9(),_0x2ff6a6=Date[_0x192320(0x1d7)]()-_0x3a050c;return this['success'](_0x39f569,_0x192320(0x1e3)+_0x24897e,_0x2ff6a6),_0x19ab34;}catch(_0x5a3964){const _0x1ff7cc=Date[_0x192320(0x1d7)]()-_0x3a050c;this['error'](_0x39f569,_0x192320(0x1df)+_0x24897e,{'error':_0x5a3964 instanceof Error?_0x5a3964[_0x192320(0x1c1)]:String(_0x5a3964),'duration':_0x1ff7cc});throw _0x5a3964;}}[a286_0x228f31(0x1ba)](){const _0x53a3f0=a286_0x228f31;try{if(!a286_0x25a645['existsSync'](this[_0x53a3f0(0x1c9)]))return[];const _0x31ec13=a286_0x25a645[_0x53a3f0(0x1c8)](this[_0x53a3f0(0x1c9)],'utf8');return _0x31ec13[_0x53a3f0(0x1b5)]('\x0a')[_0x53a3f0(0x1b0)](_0x233d15=>_0x233d15[_0x53a3f0(0x1b2)]())[_0x53a3f0(0x1b8)](_0x373944=>JSON[_0x53a3f0(0x1b1)](_0x373944));}catch(_0x5653fb){return console[_0x53a3f0(0x1c3)](_0x53a3f0(0x1da),_0x5653fb),[];}}[a286_0x228f31(0x1b3)](){const _0x14a7b1=a286_0x228f31;try{a286_0x25a645[_0x14a7b1(0x1e4)](this[_0x14a7b1(0x1c9)])&&a286_0x25a645[_0x14a7b1(0x1af)](this[_0x14a7b1(0x1c9)],'',_0x14a7b1(0x1bb));}catch(_0x51fede){console[_0x14a7b1(0x1c3)](_0x14a7b1(0x1b9),_0x51fede);}}['getWinstonInstance'](){return this['winstonLogger'];}}export const logger=new Logger();
1
+ const a286_0x47556e=a286_0x3e83;function a286_0x2e85(){const _0x1a5909=['red','existsSync','474CbpKuO','logFilePath','duration','error','958022ECKKWy','winstonLogger','mkdirSync','now','toISOString','success','printf','warn','9325OZSmMy','utf8','transports','2188569UalnbA','errors','green','map','format','.lovrabet.log','53896977hiPPgm','combine','readLogs','File','message','clear','blue','2143652aFiUjr','rawCommand','initWinstonLogger','stringify','dirname','getWinstonInstance','info','currentRawCommand','7lESHuu','Failed\x20to\x20read\x20logs:','addColors','12678304knrOlc','Failed\x20to\x20clear\x20logs:','filter','2563564MqdYEp','writeFileSync','yellow','details','Completed:\x20','timestamp','trim'];a286_0x2e85=function(){return _0x1a5909;};return a286_0x2e85();}(function(_0x1ceed5,_0x1f6b17){const _0x545dda=a286_0x3e83,_0x2e10d4=_0x1ceed5();while(!![]){try{const _0x8d2d6d=-parseInt(_0x545dda(0x1a2))/0x1+-parseInt(_0x545dda(0x187))/0x2+-parseInt(_0x545dda(0x17a))/0x3+-parseInt(_0x545dda(0x195))/0x4+-parseInt(_0x545dda(0x177))/0x5*(parseInt(_0x545dda(0x19e))/0x6)+parseInt(_0x545dda(0x18f))/0x7*(-parseInt(_0x545dda(0x192))/0x8)+parseInt(_0x545dda(0x180))/0x9;if(_0x8d2d6d===_0x1f6b17)break;else _0x2e10d4['push'](_0x2e10d4['shift']());}catch(_0x50160){_0x2e10d4['push'](_0x2e10d4['shift']());}}}(a286_0x2e85,0xd1068));import a286_0x2a09ba from'winston';import a286_0xb5dc9c from'node:fs';import a286_0x47bd46 from'node:path';function a286_0x3e83(_0x109311,_0x291334){_0x109311=_0x109311-0x177;const _0x2e85c7=a286_0x2e85();let _0x3e83aa=_0x2e85c7[_0x109311];return _0x3e83aa;}class Logger{['winstonLogger'];[a286_0x47556e(0x19f)];[a286_0x47556e(0x18e)]='';constructor(){const _0x252d6e=a286_0x47556e;this[_0x252d6e(0x19f)]='';}['setRawCommand'](_0x2f1cab){this['currentRawCommand']=_0x2f1cab;}[a286_0x47556e(0x189)](){const _0x513819=a286_0x47556e,_0x3f40b4=a286_0x47bd46[_0x513819(0x18b)](this['logFilePath']);!a286_0xb5dc9c[_0x513819(0x19d)](_0x3f40b4)&&a286_0xb5dc9c[_0x513819(0x1a4)](_0x3f40b4,{'recursive':!![]});const _0x48d3db=a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x181)](a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x19a)](),a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x17b)]({'stack':!![]}),a286_0x2a09ba[_0x513819(0x17e)][_0x513819(0x1a8)](_0x1b538c=>{const _0xf929b0=_0x513819,_0xb5b4f3={'timestamp':_0x1b538c[_0xf929b0(0x19a)]||new Date()[_0xf929b0(0x1a6)](),'level':_0x1b538c['level']||_0xf929b0(0x18d),'command':_0x1b538c['command']||'unknown','rawCommand':_0x1b538c[_0xf929b0(0x188)]||this[_0xf929b0(0x18e)]||undefined,'message':_0x1b538c[_0xf929b0(0x184)]||'','duration':_0x1b538c[_0xf929b0(0x1a0)]||undefined,'details':_0x1b538c[_0xf929b0(0x198)]||undefined};return JSON[_0xf929b0(0x18a)](_0xb5b4f3);}));this['winstonLogger']=a286_0x2a09ba['createLogger']({'level':_0x513819(0x18d),'format':_0x48d3db,'transports':[new a286_0x2a09ba[(_0x513819(0x179))][(_0x513819(0x183))]({'filename':this['logFilePath'],'level':_0x513819(0x18d)})],'silent':![]}),a286_0x2a09ba[_0x513819(0x191)]({'success':_0x513819(0x17c),'error':_0x513819(0x19c),'warn':_0x513819(0x197),'info':_0x513819(0x186)});}['setLogPath'](_0xa2a13a){const _0x3ab1c4=a286_0x47556e;this[_0x3ab1c4(0x19f)]=a286_0x47bd46['join'](_0xa2a13a,_0x3ab1c4(0x17f)),this[_0x3ab1c4(0x1a3)]&&this[_0x3ab1c4(0x1a3)][_0x3ab1c4(0x185)](),this[_0x3ab1c4(0x189)]();}[a286_0x47556e(0x18d)](_0x366456,_0x6eccf2,_0x42c81d){const _0x9d61b7=a286_0x47556e;if(!this[_0x9d61b7(0x19f)]||!this[_0x9d61b7(0x1a3)])return;this[_0x9d61b7(0x1a3)][_0x9d61b7(0x18d)](_0x6eccf2,{'command':_0x366456,'details':_0x42c81d});}[a286_0x47556e(0x1a7)](_0x58e091,_0x59e71f,_0x2a8623,_0x18699d){const _0x3598d0=a286_0x47556e;if(!this['logFilePath']||!this[_0x3598d0(0x1a3)])return;this[_0x3598d0(0x1a3)]['log'](_0x3598d0(0x18d),_0x59e71f,{'level':'success','command':_0x58e091,'duration':_0x2a8623,'details':_0x18699d});}[a286_0x47556e(0x1a1)](_0x21cf4e,_0x48ad0a,_0x2c7986){const _0x24417c=a286_0x47556e;if(!this['logFilePath']||!this[_0x24417c(0x1a3)])return;this[_0x24417c(0x1a3)][_0x24417c(0x1a1)](_0x48ad0a,{'command':_0x21cf4e,'details':_0x2c7986});}[a286_0x47556e(0x1a9)](_0x3a588c,_0x1f30b2,_0x2a783d){const _0x4115ed=a286_0x47556e;if(!this[_0x4115ed(0x19f)]||!this[_0x4115ed(0x1a3)])return;this['winstonLogger'][_0x4115ed(0x1a9)](_0x1f30b2,{'command':_0x3a588c,'details':_0x2a783d});}async['logTask'](_0x216e70,_0x2c4204,_0x1d302){const _0x3fcb4f=a286_0x47556e,_0x15cb9d=Date['now']();this[_0x3fcb4f(0x18d)](_0x216e70,'Starting:\x20'+_0x2c4204);try{const _0x1c59f6=await _0x1d302(),_0xc32e76=Date[_0x3fcb4f(0x1a5)]()-_0x15cb9d;return this[_0x3fcb4f(0x1a7)](_0x216e70,_0x3fcb4f(0x199)+_0x2c4204,_0xc32e76),_0x1c59f6;}catch(_0xd362c6){const _0x513c4a=Date['now']()-_0x15cb9d;this['error'](_0x216e70,'Failed:\x20'+_0x2c4204,{'error':_0xd362c6 instanceof Error?_0xd362c6[_0x3fcb4f(0x184)]:String(_0xd362c6),'duration':_0x513c4a});throw _0xd362c6;}}[a286_0x47556e(0x182)](){const _0x20aab3=a286_0x47556e;try{if(!a286_0xb5dc9c['existsSync'](this[_0x20aab3(0x19f)]))return[];const _0x5d467f=a286_0xb5dc9c['readFileSync'](this[_0x20aab3(0x19f)],_0x20aab3(0x178));return _0x5d467f['split']('\x0a')[_0x20aab3(0x194)](_0x483963=>_0x483963[_0x20aab3(0x19b)]())[_0x20aab3(0x17d)](_0x523374=>JSON['parse'](_0x523374));}catch(_0x49bdb4){return console['warn'](_0x20aab3(0x190),_0x49bdb4),[];}}['clearLogs'](){const _0x3ddcf8=a286_0x47556e;try{a286_0xb5dc9c[_0x3ddcf8(0x19d)](this[_0x3ddcf8(0x19f)])&&a286_0xb5dc9c[_0x3ddcf8(0x196)](this[_0x3ddcf8(0x19f)],'','utf8');}catch(_0x17bc96){console[_0x3ddcf8(0x1a9)](_0x3ddcf8(0x193),_0x17bc96);}}[a286_0x47556e(0x18c)](){const _0x178f83=a286_0x47556e;return this[_0x178f83(0x1a3)];}}export const logger=new Logger();
@@ -1 +1 @@
1
- (function(_0x3b8fa4,_0x181489){const _0x116892=a287_0x1721,_0x156030=_0x3b8fa4();while(!![]){try{const _0xbe6731=-parseInt(_0x116892(0xc1))/0x1*(parseInt(_0x116892(0xb7))/0x2)+parseInt(_0x116892(0xb9))/0x3*(-parseInt(_0x116892(0xb0))/0x4)+-parseInt(_0x116892(0xbe))/0x5*(parseInt(_0x116892(0xb4))/0x6)+-parseInt(_0x116892(0xb2))/0x7*(parseInt(_0x116892(0xb5))/0x8)+-parseInt(_0x116892(0xb6))/0x9+parseInt(_0x116892(0xb1))/0xa+parseInt(_0x116892(0xbd))/0xb;if(_0xbe6731===_0x181489)break;else _0x156030['push'](_0x156030['shift']());}catch(_0x4ac1bf){_0x156030['push'](_0x156030['shift']());}}}(a287_0x4c0a,0x5e6be));function a287_0x1721(_0x3b1fac,_0x5abf8a){_0x3b1fac=_0x3b1fac-0xb0;const _0x4c0a7d=a287_0x4c0a();let _0x172187=_0x4c0a7d[_0x3b1fac];return _0x172187;}import{CliErrors}from'../errors.js';export function parseJsonParams(_0xc1ff4b){const _0x30f75b=a287_0x1721;if(!_0xc1ff4b)return undefined;let _0x53bf6f;try{_0x53bf6f=JSON[_0x30f75b(0xbf)](_0xc1ff4b);}catch{throw CliErrors[_0x30f75b(0xb3)](_0x30f75b(0xc0)+_0xc1ff4b);}if(!_0x53bf6f||typeof _0x53bf6f!==_0x30f75b(0xbb)||Array[_0x30f75b(0xba)](_0x53bf6f))throw CliErrors[_0x30f75b(0xb3)](_0x30f75b(0xb8),_0x30f75b(0xbc));return _0x53bf6f;}function a287_0x4c0a(){const _0x50d047=['1843936igurUj','139761trSJcS','1172578GMziJH','--params\x20must\x20be\x20a\x20JSON\x20object','3oggThU','isArray','object','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','20576919wGyFsd','43435jsjdXZ','parse','Invalid\x20JSON\x20for\x20--params:\x20','1CvkWhM','310324iyBjmJ','867970fkoWuT','21jfHAoW','validation','138tuiICf'];a287_0x4c0a=function(){return _0x50d047;};return a287_0x4c0a();}
1
+ function a287_0x9bd8(_0x134a23,_0x4d219){_0x134a23=_0x134a23-0x1cd;const _0x15735c=a287_0x1573();let _0x9bd894=_0x15735c[_0x134a23];return _0x9bd894;}(function(_0x3e698b,_0x14b6fc){const _0x271faf=a287_0x9bd8,_0x564d4=_0x3e698b();while(!![]){try{const _0x578756=-parseInt(_0x271faf(0x1cd))/0x1*(-parseInt(_0x271faf(0x1cf))/0x2)+-parseInt(_0x271faf(0x1ce))/0x3+-parseInt(_0x271faf(0x1d3))/0x4+parseInt(_0x271faf(0x1d7))/0x5+-parseInt(_0x271faf(0x1d4))/0x6+parseInt(_0x271faf(0x1d0))/0x7+parseInt(_0x271faf(0x1d6))/0x8;if(_0x578756===_0x14b6fc)break;else _0x564d4['push'](_0x564d4['shift']());}catch(_0x265dc4){_0x564d4['push'](_0x564d4['shift']());}}}(a287_0x1573,0x33450));function a287_0x1573(){const _0x3178f8=['4UAGffb','847231OfeUcj','validation','isArray','1348872GhRtiS','1104642UVBlST','object','1776976jTsoGl','889630ZvNziV','--params\x20must\x20be\x20a\x20JSON\x20object','120431tWsBgj','91854NVVYnf'];a287_0x1573=function(){return _0x3178f8;};return a287_0x1573();}import{CliErrors}from'../errors.js';export function parseJsonParams(_0x1b1eab){const _0x227412=a287_0x9bd8;if(!_0x1b1eab)return undefined;let _0x57a55d;try{_0x57a55d=JSON['parse'](_0x1b1eab);}catch{throw CliErrors[_0x227412(0x1d1)]('Invalid\x20JSON\x20for\x20--params:\x20'+_0x1b1eab);}if(!_0x57a55d||typeof _0x57a55d!==_0x227412(0x1d5)||Array[_0x227412(0x1d2)](_0x57a55d))throw CliErrors[_0x227412(0x1d1)](_0x227412(0x1d8),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');return _0x57a55d;}
@@ -1 +1 @@
1
- function a288_0x5c6b(_0x5c66b8,_0x4d63de){_0x5c66b8=_0x5c66b8-0x1c6;const _0x262284=a288_0x2622();let _0x5c6b53=_0x262284[_0x5c66b8];return _0x5c6b53;}const a288_0x200254=a288_0x5c6b;(function(_0x1af1f5,_0x578342){const _0x1ce41f=a288_0x5c6b,_0x287e30=_0x1af1f5();while(!![]){try{const _0x522890=-parseInt(_0x1ce41f(0x1ca))/0x1+parseInt(_0x1ce41f(0x1cf))/0x2*(-parseInt(_0x1ce41f(0x1cd))/0x3)+parseInt(_0x1ce41f(0x1d4))/0x4+-parseInt(_0x1ce41f(0x1c7))/0x5*(-parseInt(_0x1ce41f(0x1cb))/0x6)+parseInt(_0x1ce41f(0x1cc))/0x7*(parseInt(_0x1ce41f(0x1d0))/0x8)+-parseInt(_0x1ce41f(0x1d1))/0x9*(parseInt(_0x1ce41f(0x1c9))/0xa)+parseInt(_0x1ce41f(0x1d2))/0xb*(-parseInt(_0x1ce41f(0x1c8))/0xc);if(_0x522890===_0x578342)break;else _0x287e30['push'](_0x287e30['shift']());}catch(_0x528100){_0x287e30['push'](_0x287e30['shift']());}}}(a288_0x2622,0xa58a4));export const isWindows=process[a288_0x200254(0x1ce)]===a288_0x200254(0x1d3);export function resolveNpmBin(_0x10674c){const _0x2754ff=a288_0x200254;return isWindows?_0x10674c+_0x2754ff(0x1c6):_0x10674c;}function a288_0x2622(){const _0x112393=['3sGTMcC','platform','1619804dkTWFU','8xXpjYx','3600pweHSo','11UYNxFv','win32','246244rYNIOq','.cmd','7170lwmDpE','3661764OTIGSu','1220uKNqil','205404glAqys','3342vuJjTB','8309042cEGqWg'];a288_0x2622=function(){return _0x112393;};return a288_0x2622();}
1
+ const a288_0x18210d=a288_0xa00f;function a288_0xa00f(_0x175b42,_0x3208bb){_0x175b42=_0x175b42-0x110;const _0x17101f=a288_0x1710();let _0xa00f72=_0x17101f[_0x175b42];return _0xa00f72;}(function(_0x3c3d9d,_0x101def){const _0x101364=a288_0xa00f,_0x2fbd20=_0x3c3d9d();while(!![]){try{const _0x4a97cb=-parseInt(_0x101364(0x11a))/0x1+parseInt(_0x101364(0x117))/0x2+-parseInt(_0x101364(0x115))/0x3*(parseInt(_0x101364(0x113))/0x4)+-parseInt(_0x101364(0x118))/0x5+parseInt(_0x101364(0x110))/0x6+parseInt(_0x101364(0x112))/0x7*(-parseInt(_0x101364(0x11b))/0x8)+parseInt(_0x101364(0x119))/0x9;if(_0x4a97cb===_0x101def)break;else _0x2fbd20['push'](_0x2fbd20['shift']());}catch(_0x411cdd){_0x2fbd20['push'](_0x2fbd20['shift']());}}}(a288_0x1710,0x4fa0f));export const isWindows=process[a288_0x18210d(0x111)]===a288_0x18210d(0x114);export function resolveNpmBin(_0x1fd2b1){const _0x56666c=a288_0x18210d;return isWindows?_0x1fd2b1+_0x56666c(0x116):_0x1fd2b1;}function a288_0x1710(){const _0x4a362c=['platform','511kIaMcy','15924wyjJPV','win32','189ZkaMvw','.cmd','469550cUSWey','2566175RAnshF','14390559kmTeGN','565604IRXnkA','63632xPSMGI','2416302MUQtgz'];a288_0x1710=function(){return _0x4a362c;};return a288_0x1710();}
@@ -1 +1 @@
1
- export function sleep(_0x255053){return new Promise(_0x5bb218=>setTimeout(_0x5bb218,_0x255053));}
1
+ export function sleep(_0x8bf30a){return new Promise(_0x5b445d=>setTimeout(_0x5b445d,_0x8bf30a));}
@@ -1 +1 @@
1
- const a290_0x54bf67=a290_0x56ce;function a290_0x56ce(_0x1b1cda,_0x107c45){_0x1b1cda=_0x1b1cda-0x1c6;const _0x2bbe2d=a290_0x2bbe();let _0x56ce65=_0x2bbe2d[_0x1b1cda];return _0x56ce65;}(function(_0x163344,_0x125690){const _0x55b29c=a290_0x56ce,_0x81dc64=_0x163344();while(!![]){try{const _0xbf1e3a=parseInt(_0x55b29c(0x1fe))/0x1*(-parseInt(_0x55b29c(0x1d3))/0x2)+-parseInt(_0x55b29c(0x1e3))/0x3+parseInt(_0x55b29c(0x206))/0x4+parseInt(_0x55b29c(0x1fa))/0x5+-parseInt(_0x55b29c(0x1cc))/0x6*(parseInt(_0x55b29c(0x1e5))/0x7)+parseInt(_0x55b29c(0x204))/0x8*(-parseInt(_0x55b29c(0x1ce))/0x9)+parseInt(_0x55b29c(0x201))/0xa;if(_0xbf1e3a===_0x125690)break;else _0x81dc64['push'](_0x81dc64['shift']());}catch(_0x34dc16){_0x81dc64['push'](_0x81dc64['shift']());}}}(a290_0x2bbe,0x4ce09));function a290_0x2bbe(){const _0x46f54e=['readdir','name','writeFile','toComponentName','readFile','\x0a\x20\x20\x20\x20{\x20','666830RFAQzb','.tpl','alias','isFile','167WKbwPs','.md','Starting\x20template\x20content\x20replacement','12792630lbstZs','join','datasetCode:\x20\x22','2888mGWheT','default','520752AdzWXY','processDirectory','processFile','getMinutes','.js','.ts','promises','formatLocalTimestamp','getDate','endsWith','18WvvLtt','mkdir','5517RmXwAx','extname','Template\x20content\x20replacement\x20completed','padStart','toUpperCase','3730kZmVVp','getHours','getFullYear','datasetCode','slice','.scss','tableName:\x20\x22','pad','toISOString','LOVRABET','toLowerCase','split','alias:\x20\x22','api','tableName','\x20},','830103BgPqVq','name:\x20\x22','976451FmLgHZ','map','push','now','copyFile','toDisplayTitle','.css','replace','replaceApiContent','template','replaceContent','includes','YourModel','charAt','pop'];a290_0x2bbe=function(){return _0x46f54e;};return a290_0x2bbe();}import a290_0x219ca9 from'node:fs';import a290_0x569288 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a290_0x54bf67(0x1da)](_0x5eb184){const _0x5c4a38=a290_0x54bf67;return String(_0x5eb184)[_0x5c4a38(0x1d1)](0x2,'0');}static[a290_0x54bf67(0x1c9)](_0x243bcb){const _0x123c36=a290_0x54bf67,_0x328a0c=_0x243bcb[_0x123c36(0x1d5)](),_0x5d1339=this[_0x123c36(0x1da)](_0x243bcb['getMonth']()+0x1),_0x52087f=this[_0x123c36(0x1da)](_0x243bcb[_0x123c36(0x1ca)]()),_0x1b7e32=this[_0x123c36(0x1da)](_0x243bcb[_0x123c36(0x1d4)]()),_0x52697b=this['pad'](_0x243bcb[_0x123c36(0x209)]()),_0x37aa6a=this[_0x123c36(0x1da)](_0x243bcb['getSeconds']());return{'createdAt':_0x328a0c+'-'+_0x5d1339+'-'+_0x52087f+'\x20'+_0x1b7e32+':'+_0x52697b+':'+_0x37aa6a,'createdDate':_0x328a0c+'-'+_0x5d1339+'-'+_0x52087f,'createdTime':_0x1b7e32+':'+_0x52697b+':'+_0x37aa6a};}static[a290_0x54bf67(0x1f7)](_0x532f81){const _0x1790ef=a290_0x54bf67,_0x40d85d=_0x532f81[_0x1790ef(0x1de)]('/')[_0x1790ef(0x1f3)]()||_0x532f81;return _0x40d85d[_0x1790ef(0x1de)]('-')['map'](_0x20b73a=>_0x20b73a['charAt'](0x0)[_0x1790ef(0x1d2)]()+_0x20b73a[_0x1790ef(0x1d7)](0x1)[_0x1790ef(0x1dd)]())[_0x1790ef(0x202)]('');}static[a290_0x54bf67(0x1ea)](_0x21b755){const _0x1a4fd1=a290_0x54bf67,_0x4a9699=_0x21b755['split']('/')[_0x1a4fd1(0x1f3)]()||_0x21b755;return _0x4a9699[_0x1a4fd1(0x1de)]('-')[_0x1a4fd1(0x1e6)](_0x1da091=>_0x1da091[_0x1a4fd1(0x1f2)](0x0)['toUpperCase']()+_0x1da091['slice'](0x1)[_0x1a4fd1(0x1dd)]())['join']('\x20');}static[a290_0x54bf67(0x1ef)](_0x549cc8,_0x496481,_0xd154e5){const _0x925ff2=a290_0x54bf67,_0x932045=this[_0x925ff2(0x1f7)](_0x496481),_0x6273a3=this[_0x925ff2(0x1ea)](_0x496481),{createdAt:_0x3cc41d,createdDate:_0x6ce231,createdTime:_0x43534a}=this['formatLocalTimestamp'](new Date());let _0x5af553=_0x549cc8[_0x925ff2(0x1ec)](/\{CliVersion\}/g,CLI_VERSION)[_0x925ff2(0x1ec)](/\{ComponentName\}/g,_0x932045)[_0x925ff2(0x1ec)](/\{DisplayTitle\}/g,_0x6273a3)[_0x925ff2(0x1ec)](/\{PageName\}/g,_0x496481)['replace'](/\{TemplateName\}/g,_0xd154e5)['replace'](/\{CreatedAt\}/g,_0x3cc41d)[_0x925ff2(0x1ec)](/\{CreatedDate\}/g,_0x6ce231)['replace'](/\{CreatedTime\}/g,_0x43534a);return _0x5af553;}static[a290_0x54bf67(0x1ed)](_0x228cfd,_0xaa6c9c,_0x3768a6,_0xd467ae,_0x93a7ac,_0x9fa689,_0x38c6ce,_0x45bce5){const _0x2c6ed7=a290_0x54bf67,_0x1da3a2=new Date(),_0x31d6fa=_0x1da3a2[_0x2c6ed7(0x1db)](),_0x2820df=_0x3768a6[_0x2c6ed7(0x1e6)](_0xd2fd51=>{const _0x2bbb3a=_0x2c6ed7,_0x2f9bf5=[_0x2bbb3a(0x203)+_0xd2fd51[_0x2bbb3a(0x1d6)]+'\x22',_0x2bbb3a(0x1d9)+_0xd2fd51[_0x2bbb3a(0x1e1)]+'\x22',_0x2bbb3a(0x1e4)+_0xd2fd51[_0x2bbb3a(0x1f5)]+'\x22'];return _0xd2fd51[_0x2bbb3a(0x1fc)]&&_0x2f9bf5[_0x2bbb3a(0x1e7)](_0x2bbb3a(0x1df)+_0xd2fd51[_0x2bbb3a(0x1fc)]+'\x22'),_0x2bbb3a(0x1f9)+_0x2f9bf5['join'](',\x20')+_0x2bbb3a(0x1e2);})['join'](''),_0x6d8418=_0xd467ae||_0x3768a6[0x0]?.[_0x2c6ed7(0x1fc)]||_0x2c6ed7(0x1f1);let _0x376300=_0x228cfd[_0x2c6ed7(0x1ec)](/\{AppCode\}/g,_0xaa6c9c)[_0x2c6ed7(0x1ec)](/\{ModelConfigs\}/g,_0x2820df)[_0x2c6ed7(0x1ec)](/\{ExampleModelName\}/g,_0x6d8418)['replace'](/\{ApiFileName\}/g,_0x93a7ac||_0x2c6ed7(0x1e0))[_0x2c6ed7(0x1ec)](/\{ConfigName\}/g,_0x9fa689||_0x2c6ed7(0x205))[_0x2c6ed7(0x1ec)](/\{ClientConfigParam\}/g,_0x38c6ce||'')[_0x2c6ed7(0x1ec)](/\{VarPrefix\}/g,_0x45bce5||_0x2c6ed7(0x1dc))[_0x2c6ed7(0x1ec)](/\{CreatedAt\}/g,_0x31d6fa);return _0x376300;}static async['processTemplate'](_0xc7b85b,_0x3ca4e7,_0x3a87aa,_0x10998e,_0x2067ad=!![]){const _0x30e382=a290_0x54bf67,_0x4fdb98=Date[_0x30e382(0x1e8)]();try{_0x2067ad&&logger['info'](_0x30e382(0x1ee),_0x30e382(0x200),{'templatePath':_0xc7b85b,'targetPath':_0x3ca4e7,'pageName':_0x3a87aa,'templateName':_0x10998e});await a290_0x219ca9[_0x30e382(0x1c8)][_0x30e382(0x1cd)](_0x3ca4e7,{'recursive':!![]}),await this[_0x30e382(0x207)](_0xc7b85b,_0x3ca4e7,_0x3a87aa,_0x10998e);if(_0x2067ad){const _0x205cd7=Date[_0x30e382(0x1e8)]()-_0x4fdb98;logger['success'](_0x30e382(0x1ee),_0x30e382(0x1d0),_0x205cd7,{'pageName':_0x3a87aa,'templateName':_0x10998e});}}catch(_0x23958a){if(_0x2067ad){const _0x3787bb=Date[_0x30e382(0x1e8)]()-_0x4fdb98;logger['error'](_0x30e382(0x1ee),'Template\x20content\x20replacement\x20failed',{'templatePath':_0xc7b85b,'targetPath':_0x3ca4e7,'pageName':_0x3a87aa,'templateName':_0x10998e,'error':_0x23958a instanceof Error?_0x23958a['message']:String(_0x23958a),'duration':_0x3787bb});}throw _0x23958a;}}static async[a290_0x54bf67(0x207)](_0x316d96,_0xc531d2,_0x49cce9,_0x1cd512){const _0x4c0213=a290_0x54bf67,_0x2f1073=await a290_0x219ca9[_0x4c0213(0x1c8)][_0x4c0213(0x1f4)](_0x316d96,{'withFileTypes':!![]});for(const _0x2b9395 of _0x2f1073){const _0x3ea506=a290_0x569288[_0x4c0213(0x202)](_0x316d96,_0x2b9395[_0x4c0213(0x1f5)]);let _0x1a24f7=a290_0x569288[_0x4c0213(0x202)](_0xc531d2,_0x2b9395[_0x4c0213(0x1f5)]);_0x2b9395[_0x4c0213(0x1f5)][_0x4c0213(0x1cb)](_0x4c0213(0x1fb))&&(_0x1a24f7=a290_0x569288[_0x4c0213(0x202)](_0xc531d2,_0x2b9395[_0x4c0213(0x1f5)][_0x4c0213(0x1ec)](/\.tpl$/,'')));if(_0x2b9395['isDirectory']())await a290_0x219ca9[_0x4c0213(0x1c8)]['mkdir'](_0x1a24f7,{'recursive':!![]}),await this[_0x4c0213(0x207)](_0x3ea506,_0x1a24f7,_0x49cce9,_0x1cd512);else _0x2b9395[_0x4c0213(0x1fd)]()&&await this[_0x4c0213(0x208)](_0x3ea506,_0x1a24f7,_0x49cce9,_0x1cd512);}}static async[a290_0x54bf67(0x208)](_0x5bcc6b,_0x11e269,_0x450cdf,_0x5668eb){const _0x496adb=a290_0x54bf67,_0x38d180=a290_0x569288[_0x496adb(0x1cf)](_0x5bcc6b)[_0x496adb(0x1dd)]();_0x5bcc6b[_0x496adb(0x1cb)](_0x496adb(0x1fb))&&(_0x11e269=_0x11e269['replace'](/\.tpl$/,''));const _0x340797=['.tsx',_0x496adb(0x1c7),'.jsx',_0x496adb(0x1c6),'.json',_0x496adb(0x1ff),_0x496adb(0x1eb),_0x496adb(0x1d8),_0x496adb(0x1fb)];if(_0x340797[_0x496adb(0x1f0)](_0x38d180)||_0x5bcc6b[_0x496adb(0x1cb)](_0x496adb(0x1fb))){const _0x1039e3=await a290_0x219ca9[_0x496adb(0x1c8)][_0x496adb(0x1f8)](_0x5bcc6b,'utf8'),_0xb46ff5=this[_0x496adb(0x1ef)](_0x1039e3,_0x450cdf,_0x5668eb);await a290_0x219ca9[_0x496adb(0x1c8)][_0x496adb(0x1f6)](_0x11e269,_0xb46ff5,'utf8');}else await a290_0x219ca9[_0x496adb(0x1c8)][_0x496adb(0x1e9)](_0x5bcc6b,_0x11e269);}}
1
+ const a290_0x273bd9=a290_0x2039;function a290_0x4baf(){const _0x4bc3a4=['map','template','replaceContent','.js','4854LHwZQw','.json','toUpperCase','2816128aRKoGg','tableName','error','mkdir','readdir','api','slice','processDirectory','\x20},','getFullYear','message','now','promises','name:\x20\x22','1047wZRhYa','pad','.tsx','.tpl','Template\x20content\x20replacement\x20failed','5bUPqxq','273548UueMuI','1620186paeCJi','toDisplayTitle','.jsx','Starting\x20template\x20content\x20replacement','getMonth','821484LihCTg','Template\x20content\x20replacement\x20completed','padStart','36ADwUfJ','formatLocalTimestamp','.css','datasetCode:\x20\x22','utf8','endsWith','YourModel','push','success','getHours','getSeconds','copyFile','includes','getDate','toLowerCase','\x0a\x20\x20\x20\x20{\x20','readFile','isFile','replace','processTemplate','toComponentName','toISOString','split','.scss','replaceApiContent','1086968CIkvuP','alias','LOVRABET','isDirectory','name','.ts','join','pop','alias:\x20\x22','tableName:\x20\x22','8008YSrYZz','17720YdUdmC','processFile','info','writeFile','charAt'];a290_0x4baf=function(){return _0x4bc3a4;};return a290_0x4baf();}(function(_0x1c9f58,_0x5e50cf){const _0xe552c2=a290_0x2039,_0x2264ef=_0x1c9f58();while(!![]){try{const _0x325389=-parseInt(_0xe552c2(0x154))/0x1+-parseInt(_0xe552c2(0x18a))/0x2*(-parseInt(_0xe552c2(0x14e))/0x3)+-parseInt(_0xe552c2(0x15a))/0x4+parseInt(_0xe552c2(0x153))/0x5*(-parseInt(_0xe552c2(0x155))/0x6)+-parseInt(_0xe552c2(0x18d))/0x7+parseInt(_0xe552c2(0x176))/0x8*(-parseInt(_0xe552c2(0x15d))/0x9)+-parseInt(_0xe552c2(0x181))/0xa*(-parseInt(_0xe552c2(0x180))/0xb);if(_0x325389===_0x5e50cf)break;else _0x2264ef['push'](_0x2264ef['shift']());}catch(_0x275a67){_0x2264ef['push'](_0x2264ef['shift']());}}}(a290_0x4baf,0x6bfbd));function a290_0x2039(_0x5776b7,_0x806325){_0x5776b7=_0x5776b7-0x148;const _0x4baf6f=a290_0x4baf();let _0x203942=_0x4baf6f[_0x5776b7];return _0x203942;}import a290_0x4163c4 from'node:fs';import a290_0x39c877 from'node:path';import{logger}from'../utils/logger.js';import{getCliVersion}from'../utils/version.js';const CLI_VERSION=getCliVersion();export class TemplateReplacer{static[a290_0x273bd9(0x14f)](_0x3d4c9d){const _0x3d5b7a=a290_0x273bd9;return String(_0x3d4c9d)[_0x3d5b7a(0x15c)](0x2,'0');}static[a290_0x273bd9(0x15e)](_0x4af8f8){const _0x311587=a290_0x273bd9,_0x129898=_0x4af8f8[_0x311587(0x149)](),_0x2ee920=this[_0x311587(0x14f)](_0x4af8f8[_0x311587(0x159)]()+0x1),_0x4fa7b9=this['pad'](_0x4af8f8[_0x311587(0x16a)]()),_0x42e33b=this[_0x311587(0x14f)](_0x4af8f8[_0x311587(0x166)]()),_0x5c8708=this[_0x311587(0x14f)](_0x4af8f8['getMinutes']()),_0x55c6d3=this[_0x311587(0x14f)](_0x4af8f8[_0x311587(0x167)]());return{'createdAt':_0x129898+'-'+_0x2ee920+'-'+_0x4fa7b9+'\x20'+_0x42e33b+':'+_0x5c8708+':'+_0x55c6d3,'createdDate':_0x129898+'-'+_0x2ee920+'-'+_0x4fa7b9,'createdTime':_0x42e33b+':'+_0x5c8708+':'+_0x55c6d3};}static[a290_0x273bd9(0x171)](_0x562000){const _0x1522cc=a290_0x273bd9,_0x47a2eb=_0x562000['split']('/')[_0x1522cc(0x17d)]()||_0x562000;return _0x47a2eb[_0x1522cc(0x173)]('-')[_0x1522cc(0x186)](_0x603747=>_0x603747[_0x1522cc(0x185)](0x0)[_0x1522cc(0x18c)]()+_0x603747[_0x1522cc(0x193)](0x1)[_0x1522cc(0x16b)]())[_0x1522cc(0x17c)]('');}static['toDisplayTitle'](_0x2e038b){const _0x17173f=a290_0x273bd9,_0x13c4e7=_0x2e038b['split']('/')['pop']()||_0x2e038b;return _0x13c4e7[_0x17173f(0x173)]('-')[_0x17173f(0x186)](_0x4a7ffe=>_0x4a7ffe['charAt'](0x0)['toUpperCase']()+_0x4a7ffe['slice'](0x1)['toLowerCase']())[_0x17173f(0x17c)]('\x20');}static[a290_0x273bd9(0x188)](_0x40efa5,_0x43d8eb,_0x1d966c){const _0x2ce228=a290_0x273bd9,_0x8d2633=this[_0x2ce228(0x171)](_0x43d8eb),_0x375ced=this[_0x2ce228(0x156)](_0x43d8eb),{createdAt:_0x99141a,createdDate:_0x43deeb,createdTime:_0x3c6f7e}=this[_0x2ce228(0x15e)](new Date());let _0x1bfa2e=_0x40efa5['replace'](/\{CliVersion\}/g,CLI_VERSION)['replace'](/\{ComponentName\}/g,_0x8d2633)[_0x2ce228(0x16f)](/\{DisplayTitle\}/g,_0x375ced)[_0x2ce228(0x16f)](/\{PageName\}/g,_0x43d8eb)[_0x2ce228(0x16f)](/\{TemplateName\}/g,_0x1d966c)['replace'](/\{CreatedAt\}/g,_0x99141a)[_0x2ce228(0x16f)](/\{CreatedDate\}/g,_0x43deeb)[_0x2ce228(0x16f)](/\{CreatedTime\}/g,_0x3c6f7e);return _0x1bfa2e;}static[a290_0x273bd9(0x175)](_0xd213e8,_0x45cab7,_0x5744e3,_0x3816e5,_0x47a48c,_0xa91cca,_0x58c0ec,_0x212dc3){const _0x1c1e96=a290_0x273bd9,_0x59ae71=new Date(),_0x309c5b=_0x59ae71[_0x1c1e96(0x172)](),_0x126135=_0x5744e3[_0x1c1e96(0x186)](_0x538e00=>{const _0x3bd693=_0x1c1e96,_0x48ae07=[_0x3bd693(0x160)+_0x538e00['datasetCode']+'\x22',_0x3bd693(0x17f)+_0x538e00[_0x3bd693(0x18e)]+'\x22',_0x3bd693(0x14d)+_0x538e00[_0x3bd693(0x17a)]+'\x22'];return _0x538e00[_0x3bd693(0x177)]&&_0x48ae07[_0x3bd693(0x164)](_0x3bd693(0x17e)+_0x538e00[_0x3bd693(0x177)]+'\x22'),_0x3bd693(0x16c)+_0x48ae07[_0x3bd693(0x17c)](',\x20')+_0x3bd693(0x148);})['join'](''),_0x163754=_0x3816e5||_0x5744e3[0x0]?.[_0x1c1e96(0x177)]||_0x1c1e96(0x163);let _0x507bd7=_0xd213e8['replace'](/\{AppCode\}/g,_0x45cab7)[_0x1c1e96(0x16f)](/\{ModelConfigs\}/g,_0x126135)[_0x1c1e96(0x16f)](/\{ExampleModelName\}/g,_0x163754)[_0x1c1e96(0x16f)](/\{ApiFileName\}/g,_0x47a48c||_0x1c1e96(0x192))[_0x1c1e96(0x16f)](/\{ConfigName\}/g,_0xa91cca||'default')[_0x1c1e96(0x16f)](/\{ClientConfigParam\}/g,_0x58c0ec||'')[_0x1c1e96(0x16f)](/\{VarPrefix\}/g,_0x212dc3||_0x1c1e96(0x178))[_0x1c1e96(0x16f)](/\{CreatedAt\}/g,_0x309c5b);return _0x507bd7;}static async[a290_0x273bd9(0x170)](_0x34074d,_0x217bad,_0x40250f,_0x3f7029,_0x4d378e=!![]){const _0x4f2859=a290_0x273bd9,_0x534d6b=Date[_0x4f2859(0x14b)]();try{_0x4d378e&&logger[_0x4f2859(0x183)]('template',_0x4f2859(0x158),{'templatePath':_0x34074d,'targetPath':_0x217bad,'pageName':_0x40250f,'templateName':_0x3f7029});await a290_0x4163c4[_0x4f2859(0x14c)][_0x4f2859(0x190)](_0x217bad,{'recursive':!![]}),await this[_0x4f2859(0x194)](_0x34074d,_0x217bad,_0x40250f,_0x3f7029);if(_0x4d378e){const _0x182183=Date[_0x4f2859(0x14b)]()-_0x534d6b;logger[_0x4f2859(0x165)](_0x4f2859(0x187),_0x4f2859(0x15b),_0x182183,{'pageName':_0x40250f,'templateName':_0x3f7029});}}catch(_0x47d5f6){if(_0x4d378e){const _0x2f9b89=Date[_0x4f2859(0x14b)]()-_0x534d6b;logger[_0x4f2859(0x18f)](_0x4f2859(0x187),_0x4f2859(0x152),{'templatePath':_0x34074d,'targetPath':_0x217bad,'pageName':_0x40250f,'templateName':_0x3f7029,'error':_0x47d5f6 instanceof Error?_0x47d5f6[_0x4f2859(0x14a)]:String(_0x47d5f6),'duration':_0x2f9b89});}throw _0x47d5f6;}}static async[a290_0x273bd9(0x194)](_0x1411f3,_0xd088fb,_0x10564e,_0x4c9901){const _0x54baaf=a290_0x273bd9,_0x3da138=await a290_0x4163c4[_0x54baaf(0x14c)][_0x54baaf(0x191)](_0x1411f3,{'withFileTypes':!![]});for(const _0x3884b7 of _0x3da138){const _0x2ac0d1=a290_0x39c877[_0x54baaf(0x17c)](_0x1411f3,_0x3884b7[_0x54baaf(0x17a)]);let _0x38130f=a290_0x39c877[_0x54baaf(0x17c)](_0xd088fb,_0x3884b7[_0x54baaf(0x17a)]);_0x3884b7['name'][_0x54baaf(0x162)](_0x54baaf(0x151))&&(_0x38130f=a290_0x39c877['join'](_0xd088fb,_0x3884b7[_0x54baaf(0x17a)][_0x54baaf(0x16f)](/\.tpl$/,'')));if(_0x3884b7[_0x54baaf(0x179)]())await a290_0x4163c4[_0x54baaf(0x14c)][_0x54baaf(0x190)](_0x38130f,{'recursive':!![]}),await this[_0x54baaf(0x194)](_0x2ac0d1,_0x38130f,_0x10564e,_0x4c9901);else _0x3884b7[_0x54baaf(0x16e)]()&&await this[_0x54baaf(0x182)](_0x2ac0d1,_0x38130f,_0x10564e,_0x4c9901);}}static async[a290_0x273bd9(0x182)](_0x40e491,_0x430739,_0x5cdc9a,_0x356ec1){const _0x3257ea=a290_0x273bd9,_0x3a49fe=a290_0x39c877['extname'](_0x40e491)[_0x3257ea(0x16b)]();_0x40e491['endsWith'](_0x3257ea(0x151))&&(_0x430739=_0x430739['replace'](/\.tpl$/,''));const _0x275a6f=[_0x3257ea(0x150),_0x3257ea(0x17b),_0x3257ea(0x157),_0x3257ea(0x189),_0x3257ea(0x18b),'.md',_0x3257ea(0x15f),_0x3257ea(0x174),_0x3257ea(0x151)];if(_0x275a6f[_0x3257ea(0x169)](_0x3a49fe)||_0x40e491[_0x3257ea(0x162)](_0x3257ea(0x151))){const _0x3699c0=await a290_0x4163c4[_0x3257ea(0x14c)][_0x3257ea(0x16d)](_0x40e491,_0x3257ea(0x161)),_0x3a4819=this[_0x3257ea(0x188)](_0x3699c0,_0x5cdc9a,_0x356ec1);await a290_0x4163c4['promises'][_0x3257ea(0x184)](_0x430739,_0x3a4819,_0x3257ea(0x161));}else await a290_0x4163c4[_0x3257ea(0x14c)][_0x3257ea(0x168)](_0x40e491,_0x430739);}}