@lovrabet/rabetbase-cli 2.3.16-beta.6 → 2.4.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/README.md +4 -10
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-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/get.js +1 -1
  53. package/lib/commands/config/index.js +1 -1
  54. package/lib/commands/config/list.js +1 -1
  55. package/lib/commands/config/set.js +1 -1
  56. package/lib/commands/config/shared.js +1 -1
  57. package/lib/commands/data/filter.js +1 -1
  58. package/lib/commands/data/getOne.js +1 -1
  59. package/lib/commands/data/index.js +1 -1
  60. package/lib/commands/data/shared.js +1 -1
  61. package/lib/commands/dataset/business-group-update.js +1 -1
  62. package/lib/commands/dataset/capability.js +1 -1
  63. package/lib/commands/dataset/delete.js +1 -1
  64. package/lib/commands/dataset/detail.js +1 -1
  65. package/lib/commands/dataset/extend-update.js +1 -1
  66. package/lib/commands/dataset/field-update.js +1 -1
  67. package/lib/commands/dataset/generate.js +1 -1
  68. package/lib/commands/dataset/index.js +1 -1
  69. package/lib/commands/dataset/list.js +1 -1
  70. package/lib/commands/dataset/operations.js +1 -1
  71. package/lib/commands/dataset/relation-audit.js +1 -1
  72. package/lib/commands/dataset/relation-create.js +1 -1
  73. package/lib/commands/dataset/relation-delete.js +1 -1
  74. package/lib/commands/dataset/relation-shared.js +1 -1
  75. package/lib/commands/dataset/relation-update.js +1 -1
  76. package/lib/commands/dataset/relations.js +1 -1
  77. package/lib/commands/dataset/rename.js +1 -1
  78. package/lib/commands/dataset/restore.js +1 -1
  79. package/lib/commands/db/analysis-batching.js +1 -1
  80. package/lib/commands/db/analyze-batch-plan.js +1 -1
  81. package/lib/commands/db/analyze-cancel.js +1 -1
  82. package/lib/commands/db/analyze-start.js +1 -1
  83. package/lib/commands/db/analyze-status.js +1 -1
  84. package/lib/commands/db/create.js +1 -1
  85. package/lib/commands/db/delete.js +1 -1
  86. package/lib/commands/db/detail.js +1 -1
  87. package/lib/commands/db/diff.js +1 -1
  88. package/lib/commands/db/index.js +1 -1
  89. package/lib/commands/db/list.js +1 -1
  90. package/lib/commands/db/shared.js +1 -1
  91. package/lib/commands/db/tables.js +1 -1
  92. package/lib/commands/db/test.js +1 -1
  93. package/lib/commands/db/update.js +1 -1
  94. package/lib/commands/doctor.js +1 -1
  95. package/lib/commands/file/index.js +1 -1
  96. package/lib/commands/init/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/shared.js +1 -1
  107. package/lib/commands/kb/update.js +1 -1
  108. package/lib/commands/logs/index.js +1 -1
  109. package/lib/commands/menu/asset-update.js +1 -1
  110. package/lib/commands/menu/delete.js +1 -1
  111. package/lib/commands/menu/external-link-create.js +1 -1
  112. package/lib/commands/menu/external-link-update.js +1 -1
  113. package/lib/commands/menu/group-create.js +1 -1
  114. package/lib/commands/menu/group-update.js +1 -1
  115. package/lib/commands/menu/index.js +1 -1
  116. package/lib/commands/menu/list.js +1 -1
  117. package/lib/commands/menu/move.js +1 -1
  118. package/lib/commands/menu/regroup-start.js +1 -1
  119. package/lib/commands/menu/rename.js +1 -1
  120. package/lib/commands/menu/shared/compare-table.js +1 -1
  121. package/lib/commands/menu/shared/delete-plan.js +1 -1
  122. package/lib/commands/menu/shared/facts.js +1 -1
  123. package/lib/commands/menu/shared/index.js +1 -1
  124. package/lib/commands/menu/shared/inquirer.js +1 -1
  125. package/lib/commands/menu/shared/local-pages.js +1 -1
  126. package/lib/commands/menu/shared/logic.js +1 -1
  127. package/lib/commands/menu/shared/mutations.js +1 -1
  128. package/lib/commands/menu/shared/service.js +1 -1
  129. package/lib/commands/menu/shared/sync-core.js +1 -1
  130. package/lib/commands/menu/shared/update-core.js +1 -1
  131. package/lib/commands/menu/shared/valid-url.js +1 -1
  132. package/lib/commands/menu/sync.js +1 -1
  133. package/lib/commands/notification/config-list.js +1 -1
  134. package/lib/commands/notification/index.js +1 -1
  135. package/lib/commands/ocr/index.js +1 -1
  136. package/lib/commands/page/generate-start.js +1 -1
  137. package/lib/commands/page/generate-status.js +1 -1
  138. package/lib/commands/page/index.js +1 -1
  139. package/lib/commands/page/pull.js +1 -1
  140. package/lib/commands/page/push.js +1 -1
  141. package/lib/commands/page/react/create.d.ts +2 -0
  142. package/lib/commands/page/react/create.js +1 -0
  143. package/lib/commands/page/react/detail.d.ts +2 -0
  144. package/lib/commands/page/react/detail.js +1 -0
  145. package/lib/commands/page/react/list.d.ts +2 -0
  146. package/lib/commands/page/react/list.js +1 -0
  147. package/lib/commands/page/react/publish.d.ts +2 -0
  148. package/lib/commands/page/react/publish.js +1 -0
  149. package/lib/commands/page/react/shared.d.ts +78 -0
  150. package/lib/commands/page/react/shared.js +1 -0
  151. package/lib/commands/page/react/syntax.d.ts +18 -0
  152. package/lib/commands/page/react/syntax.js +1 -0
  153. package/lib/commands/page/react/template.d.ts +8 -0
  154. package/lib/commands/page/react/template.js +1 -0
  155. package/lib/commands/page/react/update.d.ts +2 -0
  156. package/lib/commands/page/react/update.js +1 -0
  157. package/lib/commands/page/relation-audit.js +1 -1
  158. package/lib/commands/page/restore.js +1 -1
  159. package/lib/commands/page/shared.d.ts +1 -0
  160. package/lib/commands/page/shared.js +1 -1
  161. package/lib/commands/page/standard-page-status.js +1 -1
  162. package/lib/commands/page/sync.js +1 -1
  163. package/lib/commands/permit/index.js +1 -1
  164. package/lib/commands/permit/page-get.js +1 -1
  165. package/lib/commands/permit/page-set.js +1 -1
  166. package/lib/commands/permit/role-apis-set.js +1 -1
  167. package/lib/commands/permit/role-menus-set.js +1 -1
  168. package/lib/commands/permit/role-menus.js +1 -1
  169. package/lib/commands/permit/shared.js +1 -1
  170. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  171. package/lib/commands/project/create/format-elapsed.js +1 -1
  172. package/lib/commands/project/create/main.js +1 -1
  173. package/lib/commands/project/create/non-interactive.js +1 -1
  174. package/lib/commands/project/create/project-template-path.js +1 -1
  175. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  176. package/lib/commands/project/create/use-format-code.js +1 -1
  177. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  178. package/lib/commands/project/index.js +1 -1
  179. package/lib/commands/project/upgrade.js +1 -1
  180. package/lib/commands/registry.js +1 -1
  181. package/lib/commands/role/create.js +1 -1
  182. package/lib/commands/role/delete.js +1 -1
  183. package/lib/commands/role/detail.js +1 -1
  184. package/lib/commands/role/index.js +1 -1
  185. package/lib/commands/role/list.js +1 -1
  186. package/lib/commands/role/shared.js +1 -1
  187. package/lib/commands/role/update.js +1 -1
  188. package/lib/commands/role/user-add.js +1 -1
  189. package/lib/commands/role/user-remove.js +1 -1
  190. package/lib/commands/role/user-resolve.js +1 -1
  191. package/lib/commands/run/index.js +1 -1
  192. package/lib/commands/schema.js +1 -1
  193. package/lib/commands/sql/create.js +1 -1
  194. package/lib/commands/sql/delete.js +1 -1
  195. package/lib/commands/sql/detail.js +1 -1
  196. package/lib/commands/sql/exec.js +1 -1
  197. package/lib/commands/sql/index.js +1 -1
  198. package/lib/commands/sql/list.js +1 -1
  199. package/lib/commands/sql/pull.js +1 -1
  200. package/lib/commands/sql/push.js +1 -1
  201. package/lib/commands/sql/shared.js +1 -1
  202. package/lib/commands/sql/status.js +1 -1
  203. package/lib/commands/sql/validate.js +1 -1
  204. package/lib/commands/task/index.js +1 -1
  205. package/lib/commands/task/status.js +1 -1
  206. package/lib/commands/tenant/index.js +1 -1
  207. package/lib/commands/tenant/members-list.js +1 -1
  208. package/lib/commands/tenant/shared.js +1 -1
  209. package/lib/commands/user-account/dingding-sandbox-bind.d.ts +2 -0
  210. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -0
  211. package/lib/commands/user-account/index.d.ts +2 -0
  212. package/lib/commands/user-account/index.js +1 -0
  213. package/lib/commands/workspace/add.js +1 -1
  214. package/lib/commands/workspace/index.js +1 -1
  215. package/lib/commands/workspace/remove.js +1 -1
  216. package/lib/config/schema.js +1 -1
  217. package/lib/constant/cdn.js +1 -1
  218. package/lib/constant/cli.js +1 -1
  219. package/lib/constant/defaults.js +1 -1
  220. package/lib/constant/domain.js +1 -1
  221. package/lib/constant/env.js +1 -1
  222. package/lib/constant/output.js +1 -1
  223. package/lib/constant/paths.js +1 -1
  224. package/lib/constant/risk.js +1 -1
  225. package/lib/context/app-resolver.js +1 -1
  226. package/lib/context/auth-resolver.js +1 -1
  227. package/lib/context/config-loader.js +1 -1
  228. package/lib/context.d.ts +1 -1
  229. package/lib/context.js +1 -1
  230. package/lib/core/alias-resolver.js +1 -1
  231. package/lib/core/api-client.d.ts +117 -0
  232. package/lib/core/api-client.js +1 -1
  233. package/lib/core/bff/config.js +1 -1
  234. package/lib/core/bff/file-system.js +1 -1
  235. package/lib/core/bff/hash.js +1 -1
  236. package/lib/core/bff/lock.js +1 -1
  237. package/lib/core/bff/utils.js +1 -1
  238. package/lib/core/db-resolver.js +1 -1
  239. package/lib/core/page/file-system.js +1 -1
  240. package/lib/core/page/hash.js +1 -1
  241. package/lib/core/page/lock.js +1 -1
  242. package/lib/core/sql-index-auditor.js +1 -1
  243. package/lib/core/sql-sync/config.js +1 -1
  244. package/lib/core/sql-sync/file-system.js +1 -1
  245. package/lib/core/sql-sync/hash.js +1 -1
  246. package/lib/core/sql-sync/lock.js +1 -1
  247. package/lib/core/sql-sync/utils.js +1 -1
  248. package/lib/core/sql-validator.js +1 -1
  249. package/lib/errors.js +1 -1
  250. package/lib/framework/build-all-flags.js +1 -1
  251. package/lib/framework/error-output.js +1 -1
  252. package/lib/framework/explicit-yes.js +1 -1
  253. package/lib/framework/flags.js +1 -1
  254. package/lib/framework/help.js +1 -1
  255. package/lib/framework/index.js +1 -1
  256. package/lib/framework/output.js +1 -1
  257. package/lib/framework/response.js +1 -1
  258. package/lib/framework/runner-alias.js +1 -1
  259. package/lib/framework/runner.js +1 -1
  260. package/lib/framework/schema-export.js +1 -1
  261. package/lib/framework/types.js +1 -1
  262. package/lib/generated/build-info.d.ts +4 -4
  263. package/lib/generated/build-info.js +1 -1
  264. package/lib/help.js +1 -1
  265. package/lib/postinstall.d.ts +3 -0
  266. package/lib/postinstall.js +1 -0
  267. package/lib/runtime/confirmation.js +1 -1
  268. package/lib/runtime/event.js +1 -1
  269. package/lib/runtime/index.js +1 -1
  270. package/lib/runtime/queue.js +1 -1
  271. package/lib/runtime/resolve.js +1 -1
  272. package/lib/skills/builtin-skill.d.ts +37 -0
  273. package/lib/skills/builtin-skill.js +1 -0
  274. package/lib/skills/main.js +1 -1
  275. package/lib/skills/npx-skills-add.d.ts +4 -2
  276. package/lib/skills/npx-skills-add.js +1 -1
  277. package/lib/skills/skill-presence.js +1 -1
  278. package/lib/telemetry/cli-command-trace.js +1 -1
  279. package/lib/telemetry/cli-help-trace.js +1 -1
  280. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  281. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  282. package/lib/telemetry/send-cli-trace-log.js +1 -1
  283. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  284. package/lib/utils/ai_config.js +1 -1
  285. package/lib/utils/apply-jq-filter.js +1 -1
  286. package/lib/utils/cdn-config.js +1 -1
  287. package/lib/utils/check-sdk-version.js +1 -1
  288. package/lib/utils/cli-version-check.js +1 -1
  289. package/lib/utils/cli-version-policy.js +1 -1
  290. package/lib/utils/config.js +1 -1
  291. package/lib/utils/copy-directory.js +1 -1
  292. package/lib/utils/entity-with-id.js +1 -1
  293. package/lib/utils/file-utils.js +1 -1
  294. package/lib/utils/guides-cdn.js +1 -1
  295. package/lib/utils/http-client.js +1 -1
  296. package/lib/utils/is-non-interactive.js +1 -1
  297. package/lib/utils/logger.js +1 -1
  298. package/lib/utils/params.js +1 -1
  299. package/lib/utils/platform.js +1 -1
  300. package/lib/utils/rules-cdn.js +1 -1
  301. package/lib/utils/sleep.js +1 -1
  302. package/lib/utils/template-replacer.js +1 -1
  303. package/lib/utils/update-notice.js +1 -1
  304. package/lib/utils/version.js +1 -1
  305. package/lib/utils/with-active-cookie.js +1 -1
  306. package/lib/utils/write-cli-side-channel.js +1 -1
  307. package/package.json +9 -3
  308. package/scripts/postinstall.mjs +24 -0
  309. package/skills/rabetbase/SKILL.md +493 -0
  310. package/skills/rabetbase/guides/backend-function.md +835 -0
  311. package/skills/rabetbase/guides/best-practices.md +137 -0
  312. package/skills/rabetbase/guides/bff-creation-workflow.md +148 -0
  313. package/skills/rabetbase/guides/conflict-detection.md +119 -0
  314. package/skills/rabetbase/guides/data-api-guidelines.md +414 -0
  315. package/skills/rabetbase/guides/database-connection-workflow.md +169 -0
  316. package/skills/rabetbase/guides/frontend-development.md +179 -0
  317. package/skills/rabetbase/guides/legacy-application-blueprint-workflow.md +495 -0
  318. package/skills/rabetbase/guides/menu-anomaly-manual-cleanup.md +137 -0
  319. package/skills/rabetbase/guides/page-development-workflow.md +187 -0
  320. package/skills/rabetbase/guides/react-custom-page-workflow.md +184 -0
  321. package/skills/rabetbase/guides/role-permit-workflow.md +127 -0
  322. package/skills/rabetbase/guides/sql-creation-workflow.md +173 -0
  323. package/skills/rabetbase/guides/sql-mybatis.md +126 -0
  324. package/skills/rabetbase/guides/troubleshooting.md +67 -0
  325. package/skills/rabetbase/guides/typescript-sdk.md +227 -0
  326. package/skills/rabetbase/knowledge/page-schema/LrSmartCreate.md +367 -0
  327. package/skills/rabetbase/knowledge/page-schema/LrSmartDetail.md +153 -0
  328. package/skills/rabetbase/knowledge/page-schema/LrSmartEcharts.md +291 -0
  329. package/skills/rabetbase/knowledge/page-schema/LrSmartFilter.md +478 -0
  330. package/skills/rabetbase/knowledge/page-schema/LrSmartJsx.md +119 -0
  331. package/skills/rabetbase/knowledge/page-schema/LrSmartStatistic.md +223 -0
  332. package/skills/rabetbase/knowledge/page-schema/LrSmartTable.md +632 -0
  333. package/skills/rabetbase/knowledge/page-schema/YtPage.md +172 -0
  334. package/skills/rabetbase/knowledge/page-schema/dataset-relations.md +126 -0
  335. package/skills/rabetbase/knowledge/page-schema/external-resources-usage.md +232 -0
  336. package/skills/rabetbase/knowledge/page-schema/field-components.md +312 -0
  337. package/skills/rabetbase/knowledge/page-schema/syntax-reference.md +278 -0
  338. package/skills/rabetbase/knowledge/react-page/components.md +225 -0
  339. package/skills/rabetbase/knowledge/react-page/generation-standards.md +385 -0
  340. package/skills/rabetbase/references/rabetbase-api-list.md +58 -0
  341. package/skills/rabetbase/references/rabetbase-api-pull.md +82 -0
  342. package/skills/rabetbase/references/rabetbase-app-config.md +95 -0
  343. package/skills/rabetbase/references/rabetbase-app-list.md +79 -0
  344. package/skills/rabetbase/references/rabetbase-app-members-list.md +64 -0
  345. package/skills/rabetbase/references/rabetbase-auth-login.md +53 -0
  346. package/skills/rabetbase/references/rabetbase-auth-logout.md +29 -0
  347. package/skills/rabetbase/references/rabetbase-bff-create.md +59 -0
  348. package/skills/rabetbase/references/rabetbase-bff-delete.md +42 -0
  349. package/skills/rabetbase/references/rabetbase-bff-detail.md +38 -0
  350. package/skills/rabetbase/references/rabetbase-bff-list.md +61 -0
  351. package/skills/rabetbase/references/rabetbase-bff-pull.md +42 -0
  352. package/skills/rabetbase/references/rabetbase-bff-push.md +65 -0
  353. package/skills/rabetbase/references/rabetbase-bff-save.md +63 -0
  354. package/skills/rabetbase/references/rabetbase-bff-status.md +37 -0
  355. package/skills/rabetbase/references/rabetbase-cli-skill-install.md +42 -0
  356. package/skills/rabetbase/references/rabetbase-codegen-sdk.md +35 -0
  357. package/skills/rabetbase/references/rabetbase-codegen-sql.md +33 -0
  358. package/skills/rabetbase/references/rabetbase-config.md +296 -0
  359. package/skills/rabetbase/references/rabetbase-dataset-business-group-update.md +84 -0
  360. package/skills/rabetbase/references/rabetbase-dataset-delete.md +54 -0
  361. package/skills/rabetbase/references/rabetbase-dataset-detail.md +106 -0
  362. package/skills/rabetbase/references/rabetbase-dataset-extend-update.md +70 -0
  363. package/skills/rabetbase/references/rabetbase-dataset-field-update.md +117 -0
  364. package/skills/rabetbase/references/rabetbase-dataset-generate.md +206 -0
  365. package/skills/rabetbase/references/rabetbase-dataset-list.md +42 -0
  366. package/skills/rabetbase/references/rabetbase-dataset-operations.md +34 -0
  367. package/skills/rabetbase/references/rabetbase-dataset-relation-audit.md +63 -0
  368. package/skills/rabetbase/references/rabetbase-dataset-relation-mutations.md +141 -0
  369. package/skills/rabetbase/references/rabetbase-dataset-relations.md +71 -0
  370. package/skills/rabetbase/references/rabetbase-dataset-rename.md +107 -0
  371. package/skills/rabetbase/references/rabetbase-dataset-restore.md +54 -0
  372. package/skills/rabetbase/references/rabetbase-db-analyze.md +135 -0
  373. package/skills/rabetbase/references/rabetbase-db-create.md +54 -0
  374. package/skills/rabetbase/references/rabetbase-db-delete.md +26 -0
  375. package/skills/rabetbase/references/rabetbase-db-detail.md +27 -0
  376. package/skills/rabetbase/references/rabetbase-db-diff.md +57 -0
  377. package/skills/rabetbase/references/rabetbase-db-list.md +37 -0
  378. package/skills/rabetbase/references/rabetbase-db-tables.md +25 -0
  379. package/skills/rabetbase/references/rabetbase-db-test.md +29 -0
  380. package/skills/rabetbase/references/rabetbase-db-update.md +29 -0
  381. package/skills/rabetbase/references/rabetbase-doctor.md +62 -0
  382. package/skills/rabetbase/references/rabetbase-file.md +35 -0
  383. package/skills/rabetbase/references/rabetbase-init.md +70 -0
  384. package/skills/rabetbase/references/rabetbase-issue-report.md +132 -0
  385. package/skills/rabetbase/references/rabetbase-kb.md +62 -0
  386. package/skills/rabetbase/references/rabetbase-menu-asset-update.md +135 -0
  387. package/skills/rabetbase/references/rabetbase-menu-delete.md +54 -0
  388. package/skills/rabetbase/references/rabetbase-menu-external-link-create.md +63 -0
  389. package/skills/rabetbase/references/rabetbase-menu-external-link-update.md +74 -0
  390. package/skills/rabetbase/references/rabetbase-menu-group-create.md +33 -0
  391. package/skills/rabetbase/references/rabetbase-menu-group-update.md +38 -0
  392. package/skills/rabetbase/references/rabetbase-menu-list.md +144 -0
  393. package/skills/rabetbase/references/rabetbase-menu-move.md +54 -0
  394. package/skills/rabetbase/references/rabetbase-menu-regroup-start.md +45 -0
  395. package/skills/rabetbase/references/rabetbase-menu-rename.md +48 -0
  396. package/skills/rabetbase/references/rabetbase-menu-sync.md +60 -0
  397. package/skills/rabetbase/references/rabetbase-notification-config-list.md +80 -0
  398. package/skills/rabetbase/references/rabetbase-ocr.md +86 -0
  399. package/skills/rabetbase/references/rabetbase-page-generate-start.md +32 -0
  400. package/skills/rabetbase/references/rabetbase-page-generate-status.md +32 -0
  401. package/skills/rabetbase/references/rabetbase-page-pull.md +47 -0
  402. package/skills/rabetbase/references/rabetbase-page-push.md +45 -0
  403. package/skills/rabetbase/references/rabetbase-page-react-create.md +29 -0
  404. package/skills/rabetbase/references/rabetbase-page-react-detail.md +26 -0
  405. package/skills/rabetbase/references/rabetbase-page-react-list.md +23 -0
  406. package/skills/rabetbase/references/rabetbase-page-react-publish.md +23 -0
  407. package/skills/rabetbase/references/rabetbase-page-react-update.md +24 -0
  408. package/skills/rabetbase/references/rabetbase-page-relation-binding.md +72 -0
  409. package/skills/rabetbase/references/rabetbase-page-restore.md +45 -0
  410. package/skills/rabetbase/references/rabetbase-page-sync.md +36 -0
  411. package/skills/rabetbase/references/rabetbase-permit-page-set.md +69 -0
  412. package/skills/rabetbase/references/rabetbase-permit-role-apis-set.md +53 -0
  413. package/skills/rabetbase/references/rabetbase-permit-role-menus-set.md +57 -0
  414. package/skills/rabetbase/references/rabetbase-project-create.md +46 -0
  415. package/skills/rabetbase/references/rabetbase-project-upgrade.md +57 -0
  416. package/skills/rabetbase/references/rabetbase-role-list.md +68 -0
  417. package/skills/rabetbase/references/rabetbase-role-user-add.md +54 -0
  418. package/skills/rabetbase/references/rabetbase-role-user-resolve.md +27 -0
  419. package/skills/rabetbase/references/rabetbase-run.md +53 -0
  420. package/skills/rabetbase/references/rabetbase-schema.md +22 -0
  421. package/skills/rabetbase/references/rabetbase-sql-create.md +41 -0
  422. package/skills/rabetbase/references/rabetbase-sql-delete.md +37 -0
  423. package/skills/rabetbase/references/rabetbase-sql-detail.md +32 -0
  424. package/skills/rabetbase/references/rabetbase-sql-exec.md +34 -0
  425. package/skills/rabetbase/references/rabetbase-sql-list.md +54 -0
  426. package/skills/rabetbase/references/rabetbase-sql-pull.md +54 -0
  427. package/skills/rabetbase/references/rabetbase-sql-push.md +46 -0
  428. package/skills/rabetbase/references/rabetbase-sql-status.md +39 -0
  429. package/skills/rabetbase/references/rabetbase-sql-validate.md +73 -0
  430. package/skills/rabetbase/references/rabetbase-standard-page-status.md +31 -0
  431. package/skills/rabetbase/references/rabetbase-task-status.md +40 -0
  432. package/skills/rabetbase/references/rabetbase-tenant-members-list.md +69 -0
  433. package/skills/rabetbase/references/rabetbase-update.md +56 -0
  434. package/skills/rabetbase/references/rabetbase-user-account.md +45 -0
  435. package/skills/rabetbase/references/rabetbase-workspace.md +60 -0
  436. package/skills/rabetbase.manifest.json +137 -0
@@ -1 +1 @@
1
- const a194_0x1c4218=a194_0x360d;(function(_0x16e12a,_0x143b3f){const _0x270ccc=a194_0x360d,_0x2dfda0=_0x16e12a();while(!![]){try{const _0x29a43b=parseInt(_0x270ccc(0x13d))/0x1*(-parseInt(_0x270ccc(0x118))/0x2)+-parseInt(_0x270ccc(0x131))/0x3+parseInt(_0x270ccc(0x11c))/0x4+-parseInt(_0x270ccc(0x130))/0x5*(-parseInt(_0x270ccc(0x119))/0x6)+-parseInt(_0x270ccc(0x135))/0x7+parseInt(_0x270ccc(0x125))/0x8+parseInt(_0x270ccc(0x11b))/0x9*(-parseInt(_0x270ccc(0x11f))/0xa);if(_0x29a43b===_0x143b3f)break;else _0x2dfda0['push'](_0x2dfda0['shift']());}catch(_0x3639ae){_0x2dfda0['push'](_0x2dfda0['shift']());}}}(a194_0x1d52,0x41cf2));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a194_0x1d52(){const _0x4fd0bf=['100qQjAEg','Access\x20key','appcode','cookie','toLowerCase','map','3332520wgEiIH','apiDir','Locale','API\x20directory\x20path','Config\x20key\x20(','riskLevel','Target\x20environment','accessKey','pageSize','entries','defaultApp','20WnPgHd','256776JmrDFK','locale','has','filter','380933UfqTob','en-US','apps','zh-CN','Auth\x20cookie','Risk\x20level','string','keys','40321EJRLmB','defaultFormat','inherit','trim','app','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','env','26oxebzU','722526uwEazV','number','20322OGWeCv','232276dEWtgx','length','format'];a194_0x1d52=function(){return _0x4fd0bf;};return a194_0x1d52();}import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a194_0x360d(_0x1df372,_0x47093e){_0x1df372=_0x1df372-0x118;const _0x1d52b8=a194_0x1d52();let _0x360dfe=_0x1d52b8[_0x1df372];return _0x360dfe;}import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a194_0x1c4218(0x122),a194_0x1c4218(0x12c),a194_0x1c4218(0x132),'format',a194_0x1c4218(0x12a)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a194_0x1c4218(0x121),'env',a194_0x1c4218(0x132),a194_0x1c4218(0x11e),a194_0x1c4218(0x122),'accessKey',a194_0x1c4218(0x126)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x131172){return[..._0x131172]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x2a288f){const _0x239a25=a194_0x1c4218;return TOP_LEVEL_CONFIG_KEYS[_0x239a25(0x133)](_0x2a288f);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x20e7f0=a194_0x1c4218;return _0x20e7f0(0x129)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':'env','apiDir':a194_0x1c4218(0x126),'cookie':a194_0x1c4218(0x122),'accessKey':a194_0x1c4218(0x12c),'defaultFormat':'format','pageSize':'pageSize','riskLevel':a194_0x1c4218(0x12a),'locale':a194_0x1c4218(0x132)};export function getAppProfileFlagDefs(){const _0x1fe80f=a194_0x1c4218;return[{'name':_0x1fe80f(0x143),'type':'string','description':_0x1fe80f(0x12b),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x128)},{'name':'cookie','type':'string','description':_0x1fe80f(0x139),'hidden':!![]},{'name':_0x1fe80f(0x12c),'type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x120),'hidden':!![]},{'name':_0x1fe80f(0x13e),'type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x142),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x1fe80f(0x12d),'type':_0x1fe80f(0x11a),'description':'Default\x20page\x20size'},{'name':'riskLevel','type':_0x1fe80f(0x13b),'description':_0x1fe80f(0x13a),'enum':[...RISK_LEVEL_VALUES]},{'name':'locale','type':'string','description':_0x1fe80f(0x127)}];}export function collectAppProfileOverrides(_0x4e611f){const _0x2218a4=a194_0x1c4218,_0x2587b6={};for(const [_0x14350a,_0x3b88e8]of Object[_0x2218a4(0x12e)](APP_PROFILE_FLAG_KEY_MAP)){const _0x498623=_0x4e611f(_0x14350a);if(!_0x498623)continue;_0x2587b6[_0x3b88e8]=_0x3b88e8===_0x2218a4(0x12d)?Number(_0x498623):_0x498623;}return _0x2587b6;}export function buildAppProfileListFields(_0x14aa1a){const _0x55878c=a194_0x1c4218;return{'env':_0x14aa1a['env']??null,'apiDir':_0x14aa1a[_0x55878c(0x126)]??null,'hasCookie':!!_0x14aa1a[_0x55878c(0x122)],'hasAccessKey':!!_0x14aa1a['accessKey'],'format':_0x14aa1a[_0x55878c(0x11e)]??null,'pageSize':_0x14aa1a[_0x55878c(0x12d)]??null,'riskLevel':_0x14aa1a[_0x55878c(0x12a)]??null,'locale':_0x14aa1a[_0x55878c(0x132)]??null};}export function buildAppDoctorFields(_0x3df8cc,_0xd4e688){const _0x9ae6d=a194_0x1c4218;return{'env':{'value':_0x3df8cc[_0x9ae6d(0x143)]||_0xd4e688[_0x9ae6d(0x143)],'source':_0x3df8cc['env']?_0x9ae6d(0x141):_0x9ae6d(0x13f)},'apiDir':{'value':_0x3df8cc['apiDir']||_0xd4e688[_0x9ae6d(0x126)],'source':_0x3df8cc[_0x9ae6d(0x126)]?'app':_0x9ae6d(0x13f)},'cookie':{'value':_0x3df8cc[_0x9ae6d(0x122)]||_0xd4e688[_0x9ae6d(0x122)],'source':_0x3df8cc[_0x9ae6d(0x122)]?_0x9ae6d(0x141):_0x9ae6d(0x13f)},'accessKey':{'value':_0x3df8cc[_0x9ae6d(0x12c)]||_0xd4e688[_0x9ae6d(0x12c)],'source':_0x3df8cc[_0x9ae6d(0x12c)]?_0x9ae6d(0x141):_0x9ae6d(0x13f)}};}export function buildCanonicalAppConfig(_0x4d497d,_0x11900f){const _0x1825f8=a194_0x1c4218,_0x4d012=_0x4d497d[_0x1825f8(0x124)](_0x335c76=>String(_0x335c76||'')[_0x1825f8(0x140)]())[_0x1825f8(0x134)](Boolean);if(_0x4d012[_0x1825f8(0x11d)]===0x0)return{};const _0x4d8e8a={};for(const _0x57c7d8 of _0x4d012){_0x4d8e8a[_0x57c7d8]=_0x11900f?{'appcode':_0x57c7d8,'env':_0x11900f}:{'appcode':_0x57c7d8};}return{'apps':_0x4d8e8a,'defaultApp':_0x4d012[0x0]};}export function buildCanonicalProjectConfig(_0x41fc3b,_0x5dbf07){const _0x59a7fd=a194_0x1c4218,{appCodes:appCodes=[],env:_0x36b66c,metadata:_0x46d35e}=_0x5dbf07,_0x53adc2={..._0x41fc3b,..._0x46d35e||{}};delete _0x53adc2[_0x59a7fd(0x121)],delete _0x53adc2[_0x59a7fd(0x141)];if(_0x36b66c)_0x53adc2['env']=_0x36b66c;else!_0x53adc2[_0x59a7fd(0x143)]&&(_0x53adc2[_0x59a7fd(0x143)]=DEFAULT_CONFIG_VALUES[_0x59a7fd(0x143)]);const _0x2294f4=buildCanonicalAppConfig(appCodes,_0x53adc2[_0x59a7fd(0x143)]);return Object[_0x59a7fd(0x13c)](_0x2294f4)[_0x59a7fd(0x11d)]>0x0&&(_0x53adc2[_0x59a7fd(0x137)]=_0x2294f4['apps'],_0x53adc2[_0x59a7fd(0x12f)]=_0x2294f4['defaultApp']),_0x53adc2;}const LOCALE_MAP={'zh':a194_0x1c4218(0x138),'zh-cn':'zh-CN','zh_cn':a194_0x1c4218(0x138),'en':a194_0x1c4218(0x136),'en-us':a194_0x1c4218(0x136),'en_us':a194_0x1c4218(0x136)};export function normalizeLocale(_0x2229b4){const _0x35f67c=a194_0x1c4218;if(!_0x2229b4)return null;return LOCALE_MAP[_0x2229b4[_0x35f67c(0x123)]()]??null;}
1
+ function a204_0x5504(_0x4c079c,_0x16e9e8){_0x4c079c=_0x4c079c-0x15d;const _0x22fb4c=a204_0x22fb();let _0x55044e=_0x22fb4c[_0x4c079c];return _0x55044e;}const a204_0x253076=a204_0x5504;(function(_0x1f633b,_0x1b095c){const _0x130fd1=a204_0x5504,_0x5988b5=_0x1f633b();while(!![]){try{const _0x3183d0=-parseInt(_0x130fd1(0x179))/0x1+-parseInt(_0x130fd1(0x170))/0x2+parseInt(_0x130fd1(0x16a))/0x3*(parseInt(_0x130fd1(0x16b))/0x4)+-parseInt(_0x130fd1(0x162))/0x5+parseInt(_0x130fd1(0x172))/0x6*(parseInt(_0x130fd1(0x173))/0x7)+parseInt(_0x130fd1(0x167))/0x8*(-parseInt(_0x130fd1(0x169))/0x9)+-parseInt(_0x130fd1(0x171))/0xa*(-parseInt(_0x130fd1(0x16f))/0xb);if(_0x3183d0===_0x1b095c)break;else _0x5988b5['push'](_0x5988b5['shift']());}catch(_0x4ee48f){_0x5988b5['push'](_0x5988b5['shift']());}}}(a204_0x22fb,0x47af0));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie','accessKey',a204_0x253076(0x183),a204_0x253076(0x165),a204_0x253076(0x186)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a204_0x253076(0x16d),a204_0x253076(0x174),a204_0x253076(0x183),a204_0x253076(0x165),a204_0x253076(0x181),a204_0x253076(0x17d),a204_0x253076(0x185)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES]};export function formatConfigKeyList(_0x5dc1dd){const _0x143c4f=a204_0x253076;return[..._0x5dc1dd][_0x143c4f(0x16e)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}function a204_0x22fb(){const _0x18cbe2=['entries','app','format','apps','2679184gKrrlj','Risk\x20level','9ifsyyd','873AvliQJ','3164jmDXaz','Auth\x20cookie','appcode','join','77IfhlIt','840902jKHaXg','1412160hhNHnx','6EjkHAl','166271FdLCvO','env','number','Access\x20key','string','zh-CN','44317CdmweH','has','length','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','accessKey','keys','inherit','pageSize','cookie','Config\x20key\x20(','locale','defaultApp','apiDir','riskLevel','map','en-US','API\x20directory\x20path','toLowerCase','Locale','defaultFormat','745820rshiNp'];a204_0x22fb=function(){return _0x18cbe2;};return a204_0x22fb();}export function isTopLevelConfigKey(_0x308dc4){const _0x48cc15=a204_0x253076;return TOP_LEVEL_CONFIG_KEYS[_0x48cc15(0x17a)](_0x308dc4);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x35a128=a204_0x253076;return _0x35a128(0x182)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'env':a204_0x253076(0x174),'apiDir':'apiDir','cookie':a204_0x253076(0x181),'accessKey':a204_0x253076(0x17d),'defaultFormat':'format','pageSize':a204_0x253076(0x180),'riskLevel':a204_0x253076(0x186),'locale':a204_0x253076(0x183)};export function getAppProfileFlagDefs(){const _0x4f2d78=a204_0x253076;return[{'name':'env','type':_0x4f2d78(0x177),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x4f2d78(0x185),'type':'string','description':_0x4f2d78(0x15e)},{'name':_0x4f2d78(0x181),'type':_0x4f2d78(0x177),'description':_0x4f2d78(0x16c),'hidden':!![]},{'name':_0x4f2d78(0x17d),'type':_0x4f2d78(0x177),'description':_0x4f2d78(0x176),'hidden':!![]},{'name':_0x4f2d78(0x161),'type':_0x4f2d78(0x177),'description':_0x4f2d78(0x17c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4f2d78(0x180),'type':_0x4f2d78(0x175),'description':'Default\x20page\x20size'},{'name':_0x4f2d78(0x186),'type':_0x4f2d78(0x177),'description':_0x4f2d78(0x168),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x4f2d78(0x183),'type':'string','description':_0x4f2d78(0x160)}];}export function collectAppProfileOverrides(_0x567e9c){const _0x400202=a204_0x253076,_0x3e95dc={};for(const [_0x3e197a,_0x592efd]of Object[_0x400202(0x163)](APP_PROFILE_FLAG_KEY_MAP)){const _0x448892=_0x567e9c(_0x3e197a);if(!_0x448892)continue;_0x3e95dc[_0x592efd]=_0x592efd===_0x400202(0x180)?Number(_0x448892):_0x448892;}return _0x3e95dc;}export function buildAppProfileListFields(_0x24309d){const _0x4bf305=a204_0x253076;return{'env':_0x24309d[_0x4bf305(0x174)]??null,'apiDir':_0x24309d[_0x4bf305(0x185)]??null,'hasCookie':!!_0x24309d[_0x4bf305(0x181)],'hasAccessKey':!!_0x24309d['accessKey'],'format':_0x24309d[_0x4bf305(0x165)]??null,'pageSize':_0x24309d['pageSize']??null,'riskLevel':_0x24309d[_0x4bf305(0x186)]??null,'locale':_0x24309d[_0x4bf305(0x183)]??null};}export function buildAppDoctorFields(_0x2a90ef,_0x4e34bd){const _0x2650ba=a204_0x253076;return{'env':{'value':_0x2a90ef[_0x2650ba(0x174)]||_0x4e34bd[_0x2650ba(0x174)],'source':_0x2a90ef[_0x2650ba(0x174)]?_0x2650ba(0x164):_0x2650ba(0x17f)},'apiDir':{'value':_0x2a90ef[_0x2650ba(0x185)]||_0x4e34bd[_0x2650ba(0x185)],'source':_0x2a90ef[_0x2650ba(0x185)]?'app':_0x2650ba(0x17f)},'cookie':{'value':_0x2a90ef[_0x2650ba(0x181)]||_0x4e34bd[_0x2650ba(0x181)],'source':_0x2a90ef[_0x2650ba(0x181)]?_0x2650ba(0x164):_0x2650ba(0x17f)},'accessKey':{'value':_0x2a90ef['accessKey']||_0x4e34bd['accessKey'],'source':_0x2a90ef[_0x2650ba(0x17d)]?_0x2650ba(0x164):_0x2650ba(0x17f)}};}export function buildCanonicalAppConfig(_0x17bc98,_0x3e46d8){const _0x4fc8d4=a204_0x253076,_0x3b0409=_0x17bc98[_0x4fc8d4(0x187)](_0x693785=>String(_0x693785||'')['trim']())['filter'](Boolean);if(_0x3b0409[_0x4fc8d4(0x17b)]===0x0)return{};const _0x3d34b9={};for(const _0x5ca853 of _0x3b0409){_0x3d34b9[_0x5ca853]=_0x3e46d8?{'appcode':_0x5ca853,'env':_0x3e46d8}:{'appcode':_0x5ca853};}return{'apps':_0x3d34b9,'defaultApp':_0x3b0409[0x0]};}export function buildCanonicalProjectConfig(_0x49b58d,_0x2ea071){const _0x44bb03=a204_0x253076,{appCodes:appCodes=[],env:_0x14fecb,metadata:_0xe54e69}=_0x2ea071,_0xe5f0ba={..._0x49b58d,..._0xe54e69||{}};delete _0xe5f0ba[_0x44bb03(0x16d)],delete _0xe5f0ba[_0x44bb03(0x164)];if(_0x14fecb)_0xe5f0ba[_0x44bb03(0x174)]=_0x14fecb;else!_0xe5f0ba['env']&&(_0xe5f0ba[_0x44bb03(0x174)]=DEFAULT_CONFIG_VALUES['env']);const _0x1aefdc=buildCanonicalAppConfig(appCodes,_0xe5f0ba[_0x44bb03(0x174)]);return Object[_0x44bb03(0x17e)](_0x1aefdc)[_0x44bb03(0x17b)]>0x0&&(_0xe5f0ba['apps']=_0x1aefdc[_0x44bb03(0x166)],_0xe5f0ba[_0x44bb03(0x184)]=_0x1aefdc['defaultApp']),_0xe5f0ba;}const LOCALE_MAP={'zh':a204_0x253076(0x178),'zh-cn':a204_0x253076(0x178),'zh_cn':a204_0x253076(0x178),'en':a204_0x253076(0x15d),'en-us':'en-US','en_us':a204_0x253076(0x15d)};export function normalizeLocale(_0x17abbd){const _0x2fb2ef=a204_0x253076;if(!_0x17abbd)return null;return LOCALE_MAP[_0x17abbd[_0x2fb2ef(0x15f)]()]??null;}
@@ -1 +1 @@
1
- function a195_0xa022(){const _0x37006e=['4157593LoVBQo','5451180ACzhHu','4373956iRtWVC','1521NbMddQ','11xptZya','56008uDYFdW','1338048KAdQbu','60TCaKGm','36QkwuAI','1398537ihKqVk','11922GYQxLu','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5KYFLGd'];a195_0xa022=function(){return _0x37006e;};return a195_0xa022();}const a195_0x3f239c=a195_0x513a;(function(_0x5f7363,_0x29cc51){const _0x3c1de1=a195_0x513a,_0x1e94be=_0x5f7363();while(!![]){try{const _0x5f5185=-parseInt(_0x3c1de1(0x13d))/0x1*(-parseInt(_0x3c1de1(0x136))/0x2)+-parseInt(_0x3c1de1(0x13f))/0x3+-parseInt(_0x3c1de1(0x13b))/0x4*(-parseInt(_0x3c1de1(0x138))/0x5)+parseInt(_0x3c1de1(0x141))/0x6*(parseInt(_0x3c1de1(0x135))/0x7)+-parseInt(_0x3c1de1(0x13e))/0x8*(-parseInt(_0x3c1de1(0x13c))/0x9)+-parseInt(_0x3c1de1(0x13a))/0xa+parseInt(_0x3c1de1(0x139))/0xb*(-parseInt(_0x3c1de1(0x140))/0xc);if(_0x5f5185===_0x29cc51)break;else _0x1e94be['push'](_0x1e94be['shift']());}catch(_0x13b78b){_0x1e94be['push'](_0x1e94be['shift']());}}}(a195_0xa022,0xa123a));function a195_0x513a(_0x2d7615,_0x36fea5){_0x2d7615=_0x2d7615-0x135;const _0xa022c6=a195_0xa022();let _0x513a5c=_0xa022c6[_0x2d7615];return _0x513a5c;}export const CLI_VERSION_POLICY_URL=a195_0x3f239c(0x137);
1
+ const a205_0x56321d=a205_0x244c;function a205_0x244c(_0x1cb20,_0x50024d){_0x1cb20=_0x1cb20-0xcb;const _0x1adf24=a205_0x1adf();let _0x244c3d=_0x1adf24[_0x1cb20];return _0x244c3d;}(function(_0x4d10e4,_0x4d14ae){const _0xa16f89=a205_0x244c,_0x5ea582=_0x4d10e4();while(!![]){try{const _0x3c6d80=parseInt(_0xa16f89(0xce))/0x1+parseInt(_0xa16f89(0xd1))/0x2*(parseInt(_0xa16f89(0xcc))/0x3)+parseInt(_0xa16f89(0xcb))/0x4+parseInt(_0xa16f89(0xd3))/0x5*(-parseInt(_0xa16f89(0xcd))/0x6)+-parseInt(_0xa16f89(0xd4))/0x7*(parseInt(_0xa16f89(0xd0))/0x8)+parseInt(_0xa16f89(0xd6))/0x9*(-parseInt(_0xa16f89(0xcf))/0xa)+parseInt(_0xa16f89(0xd5))/0xb;if(_0x3c6d80===_0x4d14ae)break;else _0x5ea582['push'](_0x5ea582['shift']());}catch(_0x468042){_0x5ea582['push'](_0x5ea582['shift']());}}}(a205_0x1adf,0xabbab));export const CLI_VERSION_POLICY_URL=a205_0x56321d(0xd2);function a205_0x1adf(){const _0x448ce7=['340440iPEBRS','1746222ivlpRl','1578774OzdYkv','221019pnGgjB','90990sRlrrv','16pnzCBL','4bvLrqT','https://g.lovrabet.com/dist/rabetbase-cli/config/index.json','5zLHLHp','1687399rSKrEQ','9770959IdWxxy','900sTnDTr'];a205_0x1adf=function(){return _0x448ce7;};return a205_0x1adf();}
@@ -1 +1 @@
1
- const a196_0x5257fe=a196_0xac45;function a196_0xac45(_0x3d27bb,_0x27783d){_0x3d27bb=_0x3d27bb-0x7a;const _0x5ec23f=a196_0x5ec2();let _0xac45b7=_0x5ec23f[_0x3d27bb];return _0xac45b7;}(function(_0x5055ce,_0x2fed1c){const _0x29fb4f=a196_0xac45,_0x2335c9=_0x5055ce();while(!![]){try{const _0x2c9411=-parseInt(_0x29fb4f(0xb1))/0x1*(-parseInt(_0x29fb4f(0xf5))/0x2)+-parseInt(_0x29fb4f(0xaf))/0x3+-parseInt(_0x29fb4f(0xea))/0x4*(-parseInt(_0x29fb4f(0xf7))/0x5)+parseInt(_0x29fb4f(0x7d))/0x6*(-parseInt(_0x29fb4f(0xb8))/0x7)+-parseInt(_0x29fb4f(0x92))/0x8+-parseInt(_0x29fb4f(0xcd))/0x9*(-parseInt(_0x29fb4f(0x7a))/0xa)+-parseInt(_0x29fb4f(0xae))/0xb;if(_0x2c9411===_0x2fed1c)break;else _0x2335c9['push'](_0x2335c9['shift']());}catch(_0x30fb9d){_0x2335c9['push'](_0x2335c9['shift']());}}}(a196_0x5ec2,0x89544));export const CLI_BIN_NAME=a196_0x5257fe(0xc0);export const CLI_DISPLAY_NAME=a196_0x5257fe(0xd5);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';function a196_0x5ec2(){const _0x26e46f=['nonInteractive','global','dbId','remote','code','Select\x20app\x20profile\x20by\x20name','Use\x20remote','Menu\x20sort\x20value','Record\x20ID','Name','Environment','SQL\x20code','fromEntries','fromEnv','meowKey','Watch\x20mode','sort','Preview\x20operation\x20without\x20executing','pagesize','Clear','expectPath','key','Config\x20key','Force\x20non-interactive\x20mode\x20(CI)','3552615zxbBvB','314247pYmQmE','description-file','295370RdWuyp','Target\x20path','dbid','datasetcode','Confirm\x20destructive\x20action','<expr>','Page\x20size','119pdNEbF','Code\x20filter','verbose','sql','Read\x20value\x20from\x20stdin','functionNode','confirm','string','rabetbase','tags','parentId','Read\x20value\x20from\x20environment\x20variable','reveal','expected-children-count','help','value','sqlName','sqlname','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','page','label','7578ciMsGK','from-env','taskId','Dataset\x20code','File\x20path','dry-run','Show\x20help','SQL\x20string','Rabetbase\x20CLI','Schemas','DB\x20ID','keyword','task-id','Verbose\x20output','Expected\x20current\x20parent\x20menu\x20id','Menu\x20label','all','file','parent-id','watch','Keyword\x20filter','expect-parent-id','description','type','json\x20|\x20pretty\x20|\x20compress','operationType','function-node','JSON\x20params','env','122860elnjbV','Description\x20file','force','Output\x20path','appcode','Apply\x20to\x20all','Override\x20appcode','Reveal\x20sensitive\x20value','expectedChildrenCount','Expected\x20affected\x20count','Force\x20overwrite','2CquMyD','Config\x20value','145GGUDJO','db-id','clear','name','8490CUjFih','Expected\x20current\x20child\x20count','target','142734BZWpFn','menuIds','expectParentId','<code>','<name>','project','skip-imports','yes','Use\x20global\x20config\x20scope','output','Operation\x20type','sql-name','boolean','title','format','schemas','sqlcode','stdin','SQL\x20name','app','Use\x20project\x20config\x20scope','4050688GBjxRo','params','Alias\x20for\x20--non-interactive','expected-count'];a196_0x5ec2=function(){return _0x26e46f;};return a196_0x5ec2();}export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a196_0x5257fe(0xee),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xf0),'hint':a196_0x5257fe(0x80)},{'name':a196_0x5257fe(0x90),'meowKey':a196_0x5257fe(0x90),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9b),'hint':a196_0x5257fe(0x81)},{'name':a196_0x5257fe(0xe9),'meowKey':'env','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xa0),'hint':'production\x20|\x20daily'},{'name':a196_0x5257fe(0x8b),'meowKey':'format','type':'string','description':'Output\x20format','hint':a196_0x5257fe(0xe5)},{'name':'jq','meowKey':'jq','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xca),'hint':a196_0x5257fe(0xb6)},{'name':'dry-run','meowKey':'dryRun','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa7)},{'name':a196_0x5257fe(0x84),'meowKey':a196_0x5257fe(0x84),'type':a196_0x5257fe(0x89),'description':'Skip\x20confirmation\x20for\x20high-risk\x20writes'},{'name':'non-interactive','meowKey':a196_0x5257fe(0x96),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xad)},{'name':a196_0x5257fe(0x97),'meowKey':a196_0x5257fe(0x97),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x85)},{'name':'project','meowKey':a196_0x5257fe(0x82),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x91)},{'name':'ci','meowKey':'ci','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0x94),'hidden':!![]},{'name':a196_0x5257fe(0xc6),'meowKey':a196_0x5257fe(0xc6),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xd3)},{'name':'name','meowKey':a196_0x5257fe(0xfa),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9f),'hidden':!![]},{'name':a196_0x5257fe(0x8a),'meowKey':a196_0x5257fe(0x8a),'type':'string','description':'Title','hidden':!![]},{'name':a196_0x5257fe(0xf9),'meowKey':'clear','type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa9),'hidden':!![]},{'name':a196_0x5257fe(0xe0),'meowKey':a196_0x5257fe(0xe0),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xa5),'hidden':!![]},{'name':a196_0x5257fe(0x86),'meowKey':a196_0x5257fe(0x86),'type':'string','description':a196_0x5257fe(0xed),'hidden':!![]},{'name':a196_0x5257fe(0x93),'meowKey':a196_0x5257fe(0x93),'type':'string','description':a196_0x5257fe(0xe8),'hidden':!![]},{'name':a196_0x5257fe(0xb4),'meowKey':a196_0x5257fe(0xb4),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd0),'hidden':!![]},{'name':a196_0x5257fe(0xdd),'meowKey':a196_0x5257fe(0xdd),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xef),'hidden':!![]},{'name':'enable-bff-save','meowKey':'enableBffSave','type':a196_0x5257fe(0x89),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9e),'hidden':!![]},{'name':a196_0x5257fe(0xe4),'meowKey':'type','type':a196_0x5257fe(0xbf),'description':'Type\x20filter','hidden':!![]},{'name':'file','meowKey':a196_0x5257fe(0xde),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd1),'hidden':!![]},{'name':a196_0x5257fe(0x8d),'meowKey':a196_0x5257fe(0x8d),'type':'string','description':a196_0x5257fe(0xa1),'hidden':!![]},{'name':a196_0x5257fe(0x88),'meowKey':a196_0x5257fe(0xc8),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x8f),'hidden':!![]},{'name':a196_0x5257fe(0xc9),'meowKey':a196_0x5257fe(0xc9),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x8f),'hidden':!![]},{'name':a196_0x5257fe(0xf8),'meowKey':a196_0x5257fe(0x98),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd7),'hidden':!![]},{'name':a196_0x5257fe(0xb3),'meowKey':'dbid','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd7),'hidden':!![]},{'name':a196_0x5257fe(0xe3),'meowKey':a196_0x5257fe(0xe3),'type':'string','description':'Description','hidden':!![]},{'name':a196_0x5257fe(0xb0),'meowKey':'descriptionFile','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xeb),'hidden':!![]},{'name':'page','meowKey':a196_0x5257fe(0xcb),'type':'string','description':'Page\x20number','hidden':!![]},{'name':'pagesize','meowKey':a196_0x5257fe(0xa8),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb7),'hidden':!![]},{'name':a196_0x5257fe(0xd8),'meowKey':a196_0x5257fe(0xd8),'type':'string','description':a196_0x5257fe(0xe1),'hidden':!![]},{'name':a196_0x5257fe(0x9a),'meowKey':a196_0x5257fe(0x9a),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb9),'hidden':!![]},{'name':a196_0x5257fe(0xbb),'meowKey':'sql','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd4),'hidden':!![]},{'name':a196_0x5257fe(0x8c),'meowKey':a196_0x5257fe(0x8c),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xd6),'hidden':!![]},{'name':'operation','meowKey':'operation','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x87),'hidden':!![]},{'name':a196_0x5257fe(0x7c),'meowKey':a196_0x5257fe(0x7c),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xb2),'hidden':!![]},{'name':a196_0x5257fe(0x83),'meowKey':'skipImports','type':a196_0x5257fe(0x89),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a196_0x5257fe(0xab),'meowKey':a196_0x5257fe(0xab),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xac),'hidden':!![]},{'name':a196_0x5257fe(0xc7),'meowKey':a196_0x5257fe(0xc7),'type':'string','description':a196_0x5257fe(0xf6),'hidden':!![]},{'name':a196_0x5257fe(0xc1),'meowKey':'tags','type':a196_0x5257fe(0xbf),'description':'Tags','hidden':!![]},{'name':a196_0x5257fe(0x8e),'meowKey':a196_0x5257fe(0x8e),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xbc),'hidden':!![]},{'name':a196_0x5257fe(0xce),'meowKey':a196_0x5257fe(0xa3),'type':'string','description':a196_0x5257fe(0xc3),'hidden':!![]},{'name':'reveal','meowKey':a196_0x5257fe(0xc4),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xf1),'hidden':!![]},{'name':a196_0x5257fe(0xec),'meowKey':a196_0x5257fe(0xec),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xf4),'hidden':!![]},{'name':a196_0x5257fe(0xbe),'meowKey':'confirm','type':'boolean','description':a196_0x5257fe(0xb5),'hidden':!![]},{'name':a196_0x5257fe(0x99),'meowKey':a196_0x5257fe(0x99),'type':'boolean','description':a196_0x5257fe(0x9c),'hidden':!![]},{'name':a196_0x5257fe(0xba),'meowKey':a196_0x5257fe(0xba),'type':a196_0x5257fe(0x89),'description':a196_0x5257fe(0xda),'hidden':!![]},{'name':a196_0x5257fe(0x95),'meowKey':'expectedCount','type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xf3),'hidden':!![]},{'name':'label','meowKey':a196_0x5257fe(0xcc),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0xdc),'hidden':!![]},{'name':a196_0x5257fe(0xdf),'meowKey':a196_0x5257fe(0xc2),'type':a196_0x5257fe(0xbf),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a196_0x5257fe(0xa6),'meowKey':a196_0x5257fe(0xa6),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x9d),'hidden':!![]},{'name':a196_0x5257fe(0xe2),'meowKey':a196_0x5257fe(0x7f),'type':'string','description':a196_0x5257fe(0xdb),'hidden':!![]},{'name':'expect-path','meowKey':a196_0x5257fe(0xaa),'type':'string','description':'Expected\x20current\x20menu\x20path','hidden':!![]},{'name':a196_0x5257fe(0xc5),'meowKey':a196_0x5257fe(0xf2),'type':a196_0x5257fe(0xbf),'description':a196_0x5257fe(0x7b),'hidden':!![]},{'name':'menu-ids','meowKey':a196_0x5257fe(0x7e),'type':a196_0x5257fe(0xbf),'description':'Comma-separated\x20menu\x20IDs','hidden':!![]},{'name':a196_0x5257fe(0xd9),'meowKey':a196_0x5257fe(0xcf),'type':a196_0x5257fe(0xbf),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':'operation-type','meowKey':a196_0x5257fe(0xe6),'type':a196_0x5257fe(0xbf),'description':'Operation\x20type','hidden':!![]},{'name':a196_0x5257fe(0xe7),'meowKey':a196_0x5257fe(0xbd),'type':a196_0x5257fe(0xbf),'description':'Function\x20node','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a196_0x5257fe(0xee),a196_0x5257fe(0x90),a196_0x5257fe(0xe9),a196_0x5257fe(0x8b),'jq',a196_0x5257fe(0xd2),a196_0x5257fe(0x84),'non-interactive','ci']);export function buildMeowFlags(){const _0x3b3b7e=a196_0x5257fe;return Object[_0x3b3b7e(0xa2)](GLOBAL_FLAGS['map'](_0x27b78f=>[_0x27b78f[_0x3b3b7e(0xa4)],{'type':_0x27b78f[_0x3b3b7e(0xe4)]}]));}
1
+ const a206_0x2f5825=a206_0x9c94;(function(_0x19d525,_0x44dc85){const _0x44ef1d=a206_0x9c94,_0x5c2d85=_0x19d525();while(!![]){try{const _0x3821a0=-parseInt(_0x44ef1d(0x1af))/0x1+parseInt(_0x44ef1d(0x1c9))/0x2*(parseInt(_0x44ef1d(0x19b))/0x3)+-parseInt(_0x44ef1d(0x20d))/0x4+-parseInt(_0x44ef1d(0x1e2))/0x5*(-parseInt(_0x44ef1d(0x1cf))/0x6)+-parseInt(_0x44ef1d(0x1c5))/0x7*(-parseInt(_0x44ef1d(0x1a2))/0x8)+parseInt(_0x44ef1d(0x1c0))/0x9+parseInt(_0x44ef1d(0x1a7))/0xa*(-parseInt(_0x44ef1d(0x19e))/0xb);if(_0x3821a0===_0x44dc85)break;else _0x5c2d85['push'](_0x5c2d85['shift']());}catch(_0x5dd267){_0x5c2d85['push'](_0x5c2d85['shift']());}}}(a206_0x26ea,0xc4032));export const CLI_BIN_NAME='rabetbase';function a206_0x9c94(_0x639831,_0x44f88a){_0x639831=_0x639831-0x196;const _0x26eaab=a206_0x26ea();let _0x9c9405=_0x26eaab[_0x639831];return _0x9c9405;}export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a206_0x2f5825(0x1b8),'meowKey':a206_0x2f5825(0x1b8),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1aa),'hint':a206_0x2f5825(0x1a3)},{'name':a206_0x2f5825(0x1ee),'meowKey':'app','type':'string','description':a206_0x2f5825(0x215),'hint':'<name>'},{'name':a206_0x2f5825(0x1f9),'meowKey':a206_0x2f5825(0x1f9),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1d1),'hint':a206_0x2f5825(0x19f)},{'name':a206_0x2f5825(0x1c6),'meowKey':a206_0x2f5825(0x1c6),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1a1),'hint':a206_0x2f5825(0x1f7)},{'name':'jq','meowKey':'jq','type':a206_0x2f5825(0x1f2),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a206_0x2f5825(0x1d2)},{'name':a206_0x2f5825(0x1ba),'meowKey':a206_0x2f5825(0x1d0),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x19a)},{'name':a206_0x2f5825(0x213),'meowKey':a206_0x2f5825(0x213),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1a8)},{'name':'non-interactive','meowKey':a206_0x2f5825(0x1b6),'type':'boolean','description':a206_0x2f5825(0x1f5)},{'name':a206_0x2f5825(0x1cc),'meowKey':a206_0x2f5825(0x1cc),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1db)},{'name':a206_0x2f5825(0x211),'meowKey':a206_0x2f5825(0x211),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1fc)},{'name':'ci','meowKey':'ci','type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1a5),'hidden':!![]},{'name':'help','meowKey':a206_0x2f5825(0x20f),'type':a206_0x2f5825(0x1e9),'description':'Show\x20help'},{'name':a206_0x2f5825(0x203),'meowKey':a206_0x2f5825(0x203),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x198),'hidden':!![]},{'name':a206_0x2f5825(0x1b2),'meowKey':a206_0x2f5825(0x1b2),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1bc),'hidden':!![]},{'name':'clear','meowKey':a206_0x2f5825(0x197),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1ed),'hidden':!![]},{'name':a206_0x2f5825(0x1fa),'meowKey':'watch','type':a206_0x2f5825(0x1e9),'description':'Watch\x20mode','hidden':!![]},{'name':'output','meowKey':a206_0x2f5825(0x204),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1b4),'hidden':!![]},{'name':'params','meowKey':a206_0x2f5825(0x212),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x216),'hidden':!![]},{'name':a206_0x2f5825(0x1b3),'meowKey':a206_0x2f5825(0x1b3),'type':'string','description':'Dataset\x20code','hidden':!![]},{'name':a206_0x2f5825(0x1a9),'meowKey':a206_0x2f5825(0x1a9),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1f1),'hidden':!![]},{'name':a206_0x2f5825(0x1c2),'meowKey':a206_0x2f5825(0x1fe),'type':a206_0x2f5825(0x1e9),'description':'Enable\x20BFF\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1cd),'hidden':!![]},{'name':a206_0x2f5825(0x1ef),'meowKey':a206_0x2f5825(0x1ef),'type':a206_0x2f5825(0x1f2),'description':'Type\x20filter','hidden':!![]},{'name':a206_0x2f5825(0x1f8),'meowKey':'file','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1f4),'hidden':!![]},{'name':a206_0x2f5825(0x1d5),'meowKey':a206_0x2f5825(0x1d5),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1a0),'hidden':!![]},{'name':'sql-name','meowKey':a206_0x2f5825(0x1e7),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1c1),'hidden':!![]},{'name':a206_0x2f5825(0x1de),'meowKey':a206_0x2f5825(0x1de),'type':a206_0x2f5825(0x1f2),'description':'SQL\x20name','hidden':!![]},{'name':a206_0x2f5825(0x209),'meowKey':'dbId','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x20b),'hidden':!![]},{'name':a206_0x2f5825(0x1a6),'meowKey':a206_0x2f5825(0x1a6),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x20b),'hidden':!![]},{'name':a206_0x2f5825(0x1ae),'meowKey':'description','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x20c),'hidden':!![]},{'name':a206_0x2f5825(0x1bb),'meowKey':a206_0x2f5825(0x1d4),'type':'string','description':a206_0x2f5825(0x1ea),'hidden':!![]},{'name':a206_0x2f5825(0x208),'meowKey':a206_0x2f5825(0x208),'type':'string','description':a206_0x2f5825(0x205),'hidden':!![]},{'name':a206_0x2f5825(0x201),'meowKey':'pagesize','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x19d),'hidden':!![]},{'name':a206_0x2f5825(0x1f0),'meowKey':a206_0x2f5825(0x1f0),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x196),'hidden':!![]},{'name':a206_0x2f5825(0x20e),'meowKey':a206_0x2f5825(0x20e),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1c7),'hidden':!![]},{'name':a206_0x2f5825(0x1fb),'meowKey':a206_0x2f5825(0x1fb),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1b1),'hidden':!![]},{'name':'schemas','meowKey':'schemas','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1ca),'hidden':!![]},{'name':'operation','meowKey':a206_0x2f5825(0x202),'type':a206_0x2f5825(0x1f2),'description':'Operation\x20type','hidden':!![]},{'name':a206_0x2f5825(0x1d9),'meowKey':a206_0x2f5825(0x1d9),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1ad),'hidden':!![]},{'name':'skip-imports','meowKey':a206_0x2f5825(0x1d7),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1b5),'hidden':!![]},{'name':a206_0x2f5825(0x1fd),'meowKey':a206_0x2f5825(0x1fd),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1e1),'hidden':!![]},{'name':'value','meowKey':a206_0x2f5825(0x1ab),'type':'string','description':a206_0x2f5825(0x206),'hidden':!![]},{'name':a206_0x2f5825(0x1b7),'meowKey':'tags','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1c3),'hidden':!![]},{'name':'stdin','meowKey':'stdin','type':'boolean','description':a206_0x2f5825(0x1d3),'hidden':!![]},{'name':a206_0x2f5825(0x1b0),'meowKey':a206_0x2f5825(0x1d8),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x19c),'hidden':!![]},{'name':a206_0x2f5825(0x1ec),'meowKey':a206_0x2f5825(0x1ec),'type':'boolean','description':a206_0x2f5825(0x210),'hidden':!![]},{'name':a206_0x2f5825(0x200),'meowKey':a206_0x2f5825(0x200),'type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x1c8),'hidden':!![]},{'name':a206_0x2f5825(0x1a4),'meowKey':a206_0x2f5825(0x1a4),'type':a206_0x2f5825(0x1e9),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a206_0x2f5825(0x1e5),'type':'boolean','description':a206_0x2f5825(0x1e6),'hidden':!![]},{'name':a206_0x2f5825(0x207),'meowKey':'verbose','type':a206_0x2f5825(0x1e9),'description':a206_0x2f5825(0x20a),'hidden':!![]},{'name':a206_0x2f5825(0x1bf),'meowKey':a206_0x2f5825(0x1f3),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x214),'hidden':!![]},{'name':a206_0x2f5825(0x1df),'meowKey':a206_0x2f5825(0x1df),'type':'string','description':a206_0x2f5825(0x1ff),'hidden':!![]},{'name':a206_0x2f5825(0x1e0),'meowKey':'parentId','type':'string','description':'Parent\x20menu\x20id','hidden':!![]},{'name':a206_0x2f5825(0x1b9),'meowKey':'sort','type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1e3),'hidden':!![]},{'name':'expect-parent-id','meowKey':a206_0x2f5825(0x1ac),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x199),'hidden':!![]},{'name':'expect-path','meowKey':a206_0x2f5825(0x1cb),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1e8),'hidden':!![]},{'name':a206_0x2f5825(0x1c4),'meowKey':'expectedChildrenCount','type':'string','description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':'menu-ids','meowKey':'menuIds','type':'string','description':a206_0x2f5825(0x1bd),'hidden':!![]},{'name':a206_0x2f5825(0x1dd),'meowKey':a206_0x2f5825(0x1be),'type':a206_0x2f5825(0x1f2),'description':a206_0x2f5825(0x1d6),'hidden':!![]},{'name':a206_0x2f5825(0x1da),'meowKey':a206_0x2f5825(0x1e4),'type':'string','description':a206_0x2f5825(0x1dc),'hidden':!![]},{'name':a206_0x2f5825(0x1f6),'meowKey':a206_0x2f5825(0x1ce),'type':a206_0x2f5825(0x1f2),'description':'Function\x20node','hidden':!![]}];function a206_0x26ea(){const _0xc5c8a9=['nonInteractive','tags','appcode','sort','dry-run','description-file','Title','Comma-separated\x20menu\x20IDs','taskId','expected-count','8905410UBCIUE','SQL\x20name','enable-bff-save','Tags','expected-children-count','7sjhqFp','format','Code\x20filter','Force\x20overwrite','8tDuGXJ','Schemas','expectPath','global','Record\x20ID','functionNode','90COmFDD','dryRun','Environment','<expr>','Read\x20value\x20from\x20stdin','descriptionFile','sqlcode','Asynchronous\x20task\x20ID','skipImports','fromEnv','target','operation-type','Use\x20global\x20config\x20scope','Operation\x20type','task-id','sqlname','label','parent-id','Config\x20key','55090XkMEth','Menu\x20sort\x20value','operationType','remote','Use\x20remote','sqlName','Expected\x20current\x20menu\x20path','boolean','Description\x20file','non-interactive','reveal','Clear','app','type','keyword','Apply\x20to\x20all','string','expectedCount','File\x20path','Force\x20non-interactive\x20mode\x20(CI)','function-node','json\x20|\x20pretty\x20|\x20compress','file','env','watch','sql','Use\x20project\x20config\x20scope','key','enableBffSave','Menu\x20label','force','pagesize','operation','name','output','Page\x20number','Config\x20value','verbose','page','db-id','Verbose\x20output','DB\x20ID','Description','1619444hBzDGN','code','help','Reveal\x20sensitive\x20value','project','params','yes','Expected\x20affected\x20count','Select\x20app\x20profile\x20by\x20name','JSON\x20params','Keyword\x20filter','clear','Name','Expected\x20current\x20parent\x20menu\x20id','Preview\x20operation\x20without\x20executing','469437XgDHos','Read\x20value\x20from\x20environment\x20variable','Page\x20size','11SGXrQR','production\x20|\x20daily','SQL\x20code','Output\x20format','11531320drsLuG','<code>','confirm','Alias\x20for\x20--non-interactive','dbid','11330170vpWOIy','Skip\x20confirmation\x20for\x20high-risk\x20writes','all','Override\x20appcode','value','expectParentId','Target\x20path','description','881347XcUzcE','from-env','SQL\x20string','title','datasetcode','Output\x20path','Skip\x20import\x20generation'];a206_0x26ea=function(){return _0xc5c8a9;};return a206_0x26ea();}export const PIPELINE_FLAG_NAMES=new Set([a206_0x2f5825(0x1b8),'app',a206_0x2f5825(0x1f9),'format','jq',a206_0x2f5825(0x1ba),a206_0x2f5825(0x213),a206_0x2f5825(0x1eb),'ci']);export function buildMeowFlags(){const _0x4e42ff=a206_0x2f5825;return Object['fromEntries'](GLOBAL_FLAGS['map'](_0x5c1c02=>[_0x5c1c02['meowKey'],{'type':_0x5c1c02[_0x4e42ff(0x1ef)]}]));}
@@ -1 +1 @@
1
- const a197_0x5c5d7e=a197_0x17d0;function a197_0x17d0(_0x651da0,_0x4d394c){_0x651da0=_0x651da0-0x1c6;const _0x2518f3=a197_0x2518();let _0x17d0b1=_0x2518f3[_0x651da0];return _0x17d0b1;}(function(_0x4a0d11,_0x3a1bf6){const _0x5870db=a197_0x17d0,_0x2821d6=_0x4a0d11();while(!![]){try{const _0x300a12=-parseInt(_0x5870db(0x1cd))/0x1+parseInt(_0x5870db(0x1cb))/0x2+-parseInt(_0x5870db(0x1d2))/0x3+parseInt(_0x5870db(0x1cc))/0x4*(-parseInt(_0x5870db(0x1ca))/0x5)+parseInt(_0x5870db(0x1c9))/0x6*(parseInt(_0x5870db(0x1ce))/0x7)+-parseInt(_0x5870db(0x1d3))/0x8*(parseInt(_0x5870db(0x1d0))/0x9)+-parseInt(_0x5870db(0x1c8))/0xa*(-parseInt(_0x5870db(0x1d1))/0xb);if(_0x300a12===_0x3a1bf6)break;else _0x2821d6['push'](_0x2821d6['shift']());}catch(_0x5b1d5a){_0x2821d6['push'](_0x2821d6['shift']());}}}(a197_0x2518,0x63c5a));import{DEFAULT_API_DIR}from'../constant/paths.js';function a197_0x2518(){const _0x1c925b=['78HebGfr','45kCNZuU','1393274IrLRQT','191032TDCuJy','553061RnbyaX','10451cxptNS','read','27QPGhAE','6054741dyeeNo','890040UnBjfC','343144dTyDWG','production','en-US','compress','20VtlJAU'];a197_0x2518=function(){return _0x1c925b;};return a197_0x2518();}export const DEFAULT_CONFIG_VALUES={'env':a197_0x5c5d7e(0x1d4),'format':a197_0x5c5d7e(0x1c7),'locale':a197_0x5c5d7e(0x1c6),'riskLevel':a197_0x5c5d7e(0x1cf),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a197_0x5c5d7e(0x1c7);
1
+ const a207_0x5cc9db=a207_0x3e53;(function(_0xddeba6,_0x377cfe){const _0x44af0a=a207_0x3e53,_0x5deee5=_0xddeba6();while(!![]){try{const _0x3e651f=parseInt(_0x44af0a(0x1f3))/0x1*(parseInt(_0x44af0a(0x1ed))/0x2)+parseInt(_0x44af0a(0x1ec))/0x3*(parseInt(_0x44af0a(0x1f5))/0x4)+-parseInt(_0x44af0a(0x1f0))/0x5+-parseInt(_0x44af0a(0x1f4))/0x6+-parseInt(_0x44af0a(0x1eb))/0x7+parseInt(_0x44af0a(0x1f1))/0x8+parseInt(_0x44af0a(0x1ef))/0x9*(parseInt(_0x44af0a(0x1e9))/0xa);if(_0x3e651f===_0x377cfe)break;else _0x5deee5['push'](_0x5deee5['shift']());}catch(_0x22ce10){_0x5deee5['push'](_0x5deee5['shift']());}}}(a207_0x3085,0x56216));function a207_0x3085(){const _0x1875db=['1494087CGFRef','258207IgPxeA','2qaRqbs','high-risk-write','9VEOAMX','1596075mFfwBF','516704gfucsX','compress','391367FNCFrw','4172892KBIqpD','4yCtZpR','10389040dMgdUU','en-US'];a207_0x3085=function(){return _0x1875db;};return a207_0x3085();}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':'production','format':a207_0x5cc9db(0x1f2),'locale':a207_0x5cc9db(0x1ea),'riskLevel':a207_0x5cc9db(0x1ee),'apiDir':DEFAULT_API_DIR};function a207_0x3e53(_0x17292a,_0xf8c966){_0x17292a=_0x17292a-0x1e9;const _0x3085df=a207_0x3085();let _0x3e538d=_0x3085df[_0x17292a];return _0x3e538d;}export const DEFAULT_COMMAND_OUTPUT_FORMAT=a207_0x5cc9db(0x1f2);
@@ -1 +1 @@
1
- const a198_0x19bd25=a198_0x47e0;(function(_0x2d7465,_0x4e2352){const _0xecc014=a198_0x47e0,_0x2ee1f5=_0x2d7465();while(!![]){try{const _0x281646=parseInt(_0xecc014(0x10f))/0x1*(parseInt(_0xecc014(0x115))/0x2)+-parseInt(_0xecc014(0x120))/0x3+parseInt(_0xecc014(0x10e))/0x4*(-parseInt(_0xecc014(0x11d))/0x5)+-parseInt(_0xecc014(0x11b))/0x6*(parseInt(_0xecc014(0x113))/0x7)+parseInt(_0xecc014(0x11e))/0x8+-parseInt(_0xecc014(0x116))/0x9*(parseInt(_0xecc014(0x110))/0xa)+parseInt(_0xecc014(0x121))/0xb*(parseInt(_0xecc014(0x125))/0xc);if(_0x281646===_0x4e2352)break;else _0x2ee1f5['push'](_0x2ee1f5['shift']());}catch(_0x3ff96c){_0x2ee1f5['push'](_0x2ee1f5['shift']());}}}(a198_0x1662,0x5be70));import{getEnv,isProduction}from'../constant/env.js';function a198_0x47e0(_0x75bdd2,_0x58196d){_0x75bdd2=_0x75bdd2-0x10e;const _0x16627b=a198_0x1662();let _0x47e0c1=_0x16627b[_0x75bdd2];return _0x47e0c1;}let customApiDomain,customUserDomain,customRuntimeDomain;function a198_0x1662(){const _0x569a06=['/web-app/app/','12FAofld','711548dYDpQF','8eZpSQd','10Tityxr','trim','runtimeDomain','19432EVwzJO','/app/','168724IMFyxR','5198949aoLIZS','https://daily-api.lovrabet.com','userDomain','https://runtime.lovrabet.com','https://daily-runtime.lovrabet.com','666jPSkTw','https://user.lovrabet.com','5cXqtgW','5731808RNMgvk','https://user-daily.lovrabet.com','315645TiGxNE','1693549wolEOX','https://api.lovrabet.com','https://app.lovrabet.com'];a198_0x1662=function(){return _0x569a06;};return a198_0x1662();}export function initDomains(_0x1bf192){const _0x4aedfd=a198_0x47e0;customApiDomain=_0x1bf192?.['apiDomain'],customUserDomain=_0x1bf192?.[_0x4aedfd(0x118)],customRuntimeDomain=_0x1bf192?.[_0x4aedfd(0x112)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a198_0x19bd25(0x11c):a198_0x19bd25(0x11f));export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a198_0x19bd25(0x122):a198_0x19bd25(0x117));export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?a198_0x19bd25(0x119):a198_0x19bd25(0x11a));export const getAppDomain=()=>isProduction(getEnv())?a198_0x19bd25(0x123):'https://daily.lovrabet.com';export const getAppBaseUrl=_0x13ede9=>{const _0x5ca7bb=a198_0x19bd25,_0x49e6f1=encodeURIComponent(_0x13ede9[_0x5ca7bb(0x111)]());return isProduction(getEnv())?getAppDomain()+_0x5ca7bb(0x114)+_0x49e6f1:getAppDomain()+_0x5ca7bb(0x124)+_0x49e6f1;};
1
+ const a208_0x3874ee=a208_0x33c5;function a208_0x33c5(_0x4a8b3c,_0x23f377){_0x4a8b3c=_0x4a8b3c-0xd9;const _0x5e8c1=a208_0x5e8c();let _0x33c5ca=_0x5e8c1[_0x4a8b3c];return _0x33c5ca;}(function(_0x247fcb,_0x2d0432){const _0x544946=a208_0x33c5,_0x25c083=_0x247fcb();while(!![]){try{const _0x387ad0=parseInt(_0x544946(0xe7))/0x1*(-parseInt(_0x544946(0xe9))/0x2)+-parseInt(_0x544946(0xdb))/0x3+parseInt(_0x544946(0xe6))/0x4+parseInt(_0x544946(0xe0))/0x5*(parseInt(_0x544946(0xe3))/0x6)+parseInt(_0x544946(0xe5))/0x7+-parseInt(_0x544946(0xe8))/0x8+-parseInt(_0x544946(0xe4))/0x9*(-parseInt(_0x544946(0xe1))/0xa);if(_0x387ad0===_0x2d0432)break;else _0x25c083['push'](_0x25c083['shift']());}catch(_0x399ddb){_0x25c083['push'](_0x25c083['shift']());}}}(a208_0x5e8c,0xb7599));function a208_0x5e8c(){const _0x2704d7=['2580716mWizCw','1743cWAczU','11877048sBykRd','580JhJpUX','https://daily-runtime.lovrabet.com','userDomain','https://daily.lovrabet.com','1927137opIFam','/web-app/app/','runtimeDomain','https://app.lovrabet.com','https://user.lovrabet.com','60215rGgtxw','19380wloXPY','https://api.lovrabet.com','192LZmUqa','8433SYVrqq','3759140FadStS'];a208_0x5e8c=function(){return _0x2704d7;};return a208_0x5e8c();}import{getEnv,isProduction}from'../constant/env.js';let customApiDomain,customUserDomain,customRuntimeDomain;export function initDomains(_0x2809a6){const _0x42ee23=a208_0x33c5;customApiDomain=_0x2809a6?.['apiDomain'],customUserDomain=_0x2809a6?.[_0x42ee23(0xd9)],customRuntimeDomain=_0x2809a6?.[_0x42ee23(0xdd)];}export const getUserDomain=()=>customUserDomain||(isProduction(getEnv())?a208_0x3874ee(0xdf):'https://user-daily.lovrabet.com');export const getApiDomain=()=>customApiDomain||(isProduction(getEnv())?a208_0x3874ee(0xe2):'https://daily-api.lovrabet.com');export const getRuntimeDomain=()=>customRuntimeDomain||(isProduction(getEnv())?'https://runtime.lovrabet.com':a208_0x3874ee(0xea));export const getAppDomain=()=>isProduction(getEnv())?a208_0x3874ee(0xde):a208_0x3874ee(0xda);export const getAppBaseUrl=_0x4266ef=>{const _0x776633=a208_0x3874ee,_0x38a165=encodeURIComponent(_0x4266ef['trim']());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x38a165:getAppDomain()+_0x776633(0xdc)+_0x38a165;};
@@ -1 +1 @@
1
- const a199_0x3b800a=a199_0x5eff;function a199_0x5eff(_0x12d111,_0x39bb2e){_0x12d111=_0x12d111-0xa8;const _0x194d5a=a199_0x194d();let _0x5effed=_0x194d5a[_0x12d111];return _0x5effed;}(function(_0x57da12,_0x53a124){const _0x52dc61=a199_0x5eff,_0x156770=_0x57da12();while(!![]){try{const _0x1ecd4a=-parseInt(_0x52dc61(0xad))/0x1*(parseInt(_0x52dc61(0xac))/0x2)+-parseInt(_0x52dc61(0xa8))/0x3+parseInt(_0x52dc61(0xaf))/0x4+-parseInt(_0x52dc61(0xb0))/0x5+parseInt(_0x52dc61(0xb1))/0x6*(-parseInt(_0x52dc61(0xb3))/0x7)+parseInt(_0x52dc61(0xab))/0x8+parseInt(_0x52dc61(0xae))/0x9*(parseInt(_0x52dc61(0xaa))/0xa);if(_0x1ecd4a===_0x53a124)break;else _0x156770['push'](_0x156770['shift']());}catch(_0x4738bc){_0x156770['push'](_0x156770['shift']());}}}(a199_0x194d,0xc3d71));export const RABETBASE_ENV_VALUES=[a199_0x3b800a(0xb4),a199_0x3b800a(0xa9)];export function normalizeEnv(_0x35ce0c){const _0xe99407=a199_0x3b800a;return _0x35ce0c===_0xe99407(0xb2)?_0xe99407(0xb4):_0x35ce0c;}export function isProduction(_0x50d6e5){const _0x14351d=a199_0x3b800a;return normalizeEnv(_0x50d6e5)===_0x14351d(0xb4);}export function isDaily(_0x25c6f3){const _0x5aa270=a199_0x3b800a;return normalizeEnv(_0x25c6f3)===_0x5aa270(0xa9);}export function isDev(_0x3016ec){const _0x2af81a=normalizeEnv(_0x3016ec);return _0x2af81a==='development'||_0x2af81a==='dev';}function a199_0x194d(){const _0x1a0c17=['4619511nCWfma','daily','20466410GeUyYs','8258328ofeDlk','9604tTHPeK','88NglMKc','9VuXuQw','5042756ljPDbj','3941690evJJVg','462bObGtM','online','71519fQuuVd','production'];a199_0x194d=function(){return _0x1a0c17;};return a199_0x194d();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a199_0x3b800a(0xb4));export function getEnv(){return env;}export function initEnv(_0x44df42){env=normalizeEnv(_0x44df42);}
1
+ const a209_0x156342=a209_0x1e83;(function(_0x5b0c86,_0x1969f6){const _0x77c141=a209_0x1e83,_0x2221cc=_0x5b0c86();while(!![]){try{const _0x250d61=-parseInt(_0x77c141(0x13e))/0x1+-parseInt(_0x77c141(0x133))/0x2*(-parseInt(_0x77c141(0x138))/0x3)+parseInt(_0x77c141(0x13a))/0x4+-parseInt(_0x77c141(0x136))/0x5+parseInt(_0x77c141(0x132))/0x6+-parseInt(_0x77c141(0x13c))/0x7*(-parseInt(_0x77c141(0x13d))/0x8)+parseInt(_0x77c141(0x13f))/0x9;if(_0x250d61===_0x1969f6)break;else _0x2221cc['push'](_0x2221cc['shift']());}catch(_0x31958d){_0x2221cc['push'](_0x2221cc['shift']());}}}(a209_0x3134,0xb7446));function a209_0x3134(){const _0xeb6b7c=['dev','4621728RJXMVU','daily','1389626DuiiPH','24zsqKOM','1331253sUWplH','254097qesGRi','2446992wZzjFa','2CxUOhk','online','production','3643790rtHzjR','development','1870866tajbMU'];a209_0x3134=function(){return _0xeb6b7c;};return a209_0x3134();}export const RABETBASE_ENV_VALUES=[a209_0x156342(0x135),a209_0x156342(0x13b)];export function normalizeEnv(_0x31682d){const _0x57aae9=a209_0x156342;return _0x31682d===_0x57aae9(0x134)?_0x57aae9(0x135):_0x31682d;}export function isProduction(_0x1c7f12){return normalizeEnv(_0x1c7f12)==='production';}function a209_0x1e83(_0x44cec7,_0x366aaa){_0x44cec7=_0x44cec7-0x132;const _0x3134b3=a209_0x3134();let _0x1e8314=_0x3134b3[_0x44cec7];return _0x1e8314;}export function isDaily(_0x528b87){const _0x52ecb6=a209_0x156342;return normalizeEnv(_0x528b87)===_0x52ecb6(0x13b);}export function isDev(_0x28ff5f){const _0x1d977f=a209_0x156342,_0x5aa589=normalizeEnv(_0x28ff5f);return _0x5aa589===_0x1d977f(0x137)||_0x5aa589===_0x1d977f(0x139);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a209_0x156342(0x135));export function getEnv(){return env;}export function initEnv(_0x2fb43a){env=normalizeEnv(_0x2fb43a);}
@@ -1 +1 @@
1
- const a200_0x5bfb5d=a200_0x2cc1;function a200_0x5742(){const _0x581688=['6558qckIiz','2715112HXSFJf','913250cvDavE','328428mPqjTT','json','12ojToHP','2321536vJjRYr','999268CFmkiX','3995BvrMCC','36WgvNYe','5342070AEoWiM'];a200_0x5742=function(){return _0x581688;};return a200_0x5742();}(function(_0x511208,_0x182143){const _0x125e10=a200_0x2cc1,_0x5a6384=_0x511208();while(!![]){try{const _0x542c51=parseInt(_0x125e10(0x115))/0x1+parseInt(_0x125e10(0x116))/0x2*(parseInt(_0x125e10(0x118))/0x3)+parseInt(_0x125e10(0x11a))/0x4+parseInt(_0x125e10(0x11b))/0x5*(parseInt(_0x125e10(0x11e))/0x6)+-parseInt(_0x125e10(0x119))/0x7+parseInt(_0x125e10(0x11f))/0x8+parseInt(_0x125e10(0x11c))/0x9*(-parseInt(_0x125e10(0x11d))/0xa);if(_0x542c51===_0x182143)break;else _0x5a6384['push'](_0x5a6384['shift']());}catch(_0x5b938e){_0x5a6384['push'](_0x5a6384['shift']());}}}(a200_0x5742,0x89baf));function a200_0x2cc1(_0x4e99e3,_0x4b0598){_0x4e99e3=_0x4e99e3-0x115;const _0x57421e=a200_0x5742();let _0x2cc15f=_0x57421e[_0x4e99e3];return _0x2cc15f;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a200_0x5bfb5d(0x117),'pretty','compress'];
1
+ const a210_0x431fc5=a210_0x2d93;function a210_0x5003(){const _0x59aca4=['5xpGMxu','41nadzeE','15003MyWisD','7792WJAVch','30828cuOnBB','712986boHdCW','3703932RwwImR','6316wUAQnb','2931753sOuLbd','45UgNWSB','168CCTGLG','13UyJYLt','pretty','1270WtQxsr'];a210_0x5003=function(){return _0x59aca4;};return a210_0x5003();}(function(_0x40f430,_0x43043c){const _0xd93f25=a210_0x2d93,_0x3f2efc=_0x40f430();while(!![]){try{const _0xfad329=parseInt(_0xd93f25(0xa5))/0x1*(parseInt(_0xd93f25(0x9d))/0x2)+-parseInt(_0xd93f25(0x9f))/0x3*(-parseInt(_0xd93f25(0xa8))/0x4)+parseInt(_0xd93f25(0xa4))/0x5*(parseInt(_0xd93f25(0x9b))/0x6)+parseInt(_0xd93f25(0xa0))/0x7*(parseInt(_0xd93f25(0xa7))/0x8)+-parseInt(_0xd93f25(0xa6))/0x9*(parseInt(_0xd93f25(0xa3))/0xa)+parseInt(_0xd93f25(0x9e))/0xb+-parseInt(_0xd93f25(0x9c))/0xc*(parseInt(_0xd93f25(0xa1))/0xd);if(_0xfad329===_0x43043c)break;else _0x3f2efc['push'](_0x3f2efc['shift']());}catch(_0xf1dabe){_0x3f2efc['push'](_0x3f2efc['shift']());}}}(a210_0x5003,0x20943));function a210_0x2d93(_0x550624,_0x17cbef){_0x550624=_0x550624-0x9b;const _0x50034e=a210_0x5003();let _0x2d93c3=_0x50034e[_0x550624];return _0x2d93c3;}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a210_0x431fc5(0xa2),'compress'];
@@ -1 +1 @@
1
- const a201_0x544263=a201_0xe760;function a201_0xe760(_0x37c4d8,_0x19f6d3){_0x37c4d8=_0x37c4d8-0xd8;const _0x2c7b75=a201_0x2c7b();let _0xe7601e=_0x2c7b75[_0x37c4d8];return _0xe7601e;}(function(_0x4a3384,_0x3df17c){const _0x371072=a201_0xe760,_0x4a44fb=_0x4a3384();while(!![]){try{const _0x4b3322=parseInt(_0x371072(0xdc))/0x1+-parseInt(_0x371072(0xd8))/0x2+parseInt(_0x371072(0xe3))/0x3*(-parseInt(_0x371072(0xdd))/0x4)+-parseInt(_0x371072(0xe2))/0x5*(-parseInt(_0x371072(0xde))/0x6)+-parseInt(_0x371072(0xda))/0x7*(parseInt(_0x371072(0xd9))/0x8)+-parseInt(_0x371072(0xe0))/0x9*(parseInt(_0x371072(0xdb))/0xa)+parseInt(_0x371072(0xe1))/0xb;if(_0x4b3322===_0x3df17c)break;else _0x4a44fb['push'](_0x4a44fb['shift']());}catch(_0xef655){_0x4a44fb['push'](_0x4a44fb['shift']());}}}(a201_0x2c7b,0xdf816));export const DEFAULT_API_DIR=a201_0x544263(0xdf);function a201_0x2c7b(){const _0x433460=['./src/api','63YszrBL','16570092WlzBeH','5aEsYTi','2108481pnWcAy','74350uhnRfX','120zwUYgT','456169JKxzbs','635470sfUOHZ','1359368ZFqjZp','4MZHDLG','1272444MvKPpS'];a201_0x2c7b=function(){return _0x433460;};return a201_0x2c7b();}
1
+ function a211_0x3256(_0x53ddac,_0x12c025){_0x53ddac=_0x53ddac-0x1c2;const _0x2eed1d=a211_0x2eed();let _0x32564b=_0x2eed1d[_0x53ddac];return _0x32564b;}function a211_0x2eed(){const _0x2f42d9=['991904eTINHB','52mNISTC','3651597tGgvol','609tJaapl','17562woblBP','111024rHofdR','454310InkuLD','310693bjLvHz','24207oPQoMR'];a211_0x2eed=function(){return _0x2f42d9;};return a211_0x2eed();}(function(_0x396bdf,_0x187289){const _0x56cb57=a211_0x3256,_0x2faca0=_0x396bdf();while(!![]){try{const _0x5db0bf=-parseInt(_0x56cb57(0x1c2))/0x1+-parseInt(_0x56cb57(0x1c9))/0x2+parseInt(_0x56cb57(0x1c3))/0x3*(-parseInt(_0x56cb57(0x1c5))/0x4)+parseInt(_0x56cb57(0x1ca))/0x5+-parseInt(_0x56cb57(0x1c8))/0x6*(-parseInt(_0x56cb57(0x1c7))/0x7)+-parseInt(_0x56cb57(0x1c4))/0x8+parseInt(_0x56cb57(0x1c6))/0x9;if(_0x5db0bf===_0x187289)break;else _0x2faca0['push'](_0x2faca0['shift']());}catch(_0x49aaed){_0x2faca0['push'](_0x2faca0['shift']());}}}(a211_0x2eed,0x261fa));export const DEFAULT_API_DIR='./src/api';
@@ -1 +1 @@
1
- function a202_0x515c(){const _0x4d0cf6=['22305GuGJEd','2gOMKAG','3211065iFqWKx','624XLmPqf','493001sqmuBW','high-risk-write','145624AQffBQ','133bfeYvT','write','5703000JQBbAO','3864IiJvPu','7838772iSkdIN','11eDtOYx','657wEIvYQ'];a202_0x515c=function(){return _0x4d0cf6;};return a202_0x515c();}const a202_0x2cb3c0=a202_0x2298;(function(_0x493645,_0x3532a8){const _0x41d042=a202_0x2298,_0x802c83=_0x493645();while(!![]){try{const _0x2f9385=-parseInt(_0x41d042(0x17e))/0x1*(-parseInt(_0x41d042(0x17b))/0x2)+-parseInt(_0x41d042(0x179))/0x3*(-parseInt(_0x41d042(0x184))/0x4)+parseInt(_0x41d042(0x17a))/0x5*(-parseInt(_0x41d042(0x17d))/0x6)+-parseInt(_0x41d042(0x181))/0x7*(parseInt(_0x41d042(0x180))/0x8)+parseInt(_0x41d042(0x17c))/0x9+-parseInt(_0x41d042(0x183))/0xa+parseInt(_0x41d042(0x178))/0xb*(parseInt(_0x41d042(0x185))/0xc);if(_0x2f9385===_0x3532a8)break;else _0x802c83['push'](_0x802c83['shift']());}catch(_0x225f26){_0x802c83['push'](_0x802c83['shift']());}}}(a202_0x515c,0x51a86));function a202_0x2298(_0x49b1e1,_0x4b678b){_0x49b1e1=_0x49b1e1-0x178;const _0x515ca8=a202_0x515c();let _0x2298b8=_0x515ca8[_0x49b1e1];return _0x2298b8;}export const RISK_LEVEL_VALUES=['read',a202_0x2cb3c0(0x182),a202_0x2cb3c0(0x17f)];
1
+ function a212_0x1c7d(){const _0x5afafc=['614408urhIGe','60836RmkVzO','3503172aULNYz','99Jugsun','high-risk-write','14687000bAiXEe','1IOGVmA','35KSSnkw','57630WAFoFQ','read','6769406avkRWq','1826577nAWzNk'];a212_0x1c7d=function(){return _0x5afafc;};return a212_0x1c7d();}const a212_0x1e1b99=a212_0xdee7;(function(_0x9e9cb3,_0xc04191){const _0x3dc029=a212_0xdee7,_0x2c844e=_0x9e9cb3();while(!![]){try{const _0x268fbf=-parseInt(_0x3dc029(0xc7))/0x1*(parseInt(_0x3dc029(0xc2))/0x2)+-parseInt(_0x3dc029(0xc0))/0x3+parseInt(_0x3dc029(0xc3))/0x4+parseInt(_0x3dc029(0xc8))/0x5*(-parseInt(_0x3dc029(0xc9))/0x6)+parseInt(_0x3dc029(0xcb))/0x7+-parseInt(_0x3dc029(0xc1))/0x8*(-parseInt(_0x3dc029(0xc4))/0x9)+-parseInt(_0x3dc029(0xc6))/0xa;if(_0x268fbf===_0xc04191)break;else _0x2c844e['push'](_0x2c844e['shift']());}catch(_0x2912e7){_0x2c844e['push'](_0x2c844e['shift']());}}}(a212_0x1c7d,0x7d1c2));function a212_0xdee7(_0x3ae12a,_0x48de42){_0x3ae12a=_0x3ae12a-0xc0;const _0x1c7da5=a212_0x1c7d();let _0xdee70c=_0x1c7da5[_0x3ae12a];return _0xdee70c;}export const RISK_LEVEL_VALUES=[a212_0x1e1b99(0xca),'write',a212_0x1e1b99(0xc5)];
@@ -1 +1 @@
1
- (function(_0x596afc,_0x2a3288){const _0x4b9400=a203_0x8f4b,_0x510f91=_0x596afc();while(!![]){try{const _0x18fdcd=-parseInt(_0x4b9400(0xca))/0x1*(-parseInt(_0x4b9400(0xda))/0x2)+parseInt(_0x4b9400(0xd8))/0x3+parseInt(_0x4b9400(0xd3))/0x4+-parseInt(_0x4b9400(0xbe))/0x5*(-parseInt(_0x4b9400(0xc9))/0x6)+-parseInt(_0x4b9400(0xdb))/0x7*(parseInt(_0x4b9400(0xe5))/0x8)+-parseInt(_0x4b9400(0xd6))/0x9+-parseInt(_0x4b9400(0xc5))/0xa;if(_0x18fdcd===_0x2a3288)break;else _0x510f91['push'](_0x510f91['shift']());}catch(_0x2ae483){_0x510f91['push'](_0x510f91['shift']());}}}(a203_0x4a98,0xa0fbc));function a203_0x8f4b(_0x75bbb2,_0x50271b){_0x75bbb2=_0x75bbb2-0xb9;const _0x4a98bb=a203_0x4a98();let _0x8f4b10=_0x4a98bb[_0x75bbb2];return _0x8f4b10;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a203_0x4a98(){const _0x1e7eff=['5756115KSRqww','maxRisk','app','object','PAGE_SIZE','apps','cookie','9111120tMHkiH','APP','true','ACCESS_KEY','6qfaBXn','894442BBmvGf','defaultApp','production','daily','inherit','MAX_RISK','env','entries','keys','2715624aDjhsz','projectConfig','trim','6057666mbbYES','apiDir','1273917RHrGsQ','accessKey','2oHyLOx','6339452MAijFO','high-risk-write','length','format','string','riskLevel','globalConfig','COOKIE','pageSize','read','8sJIuIk','find','prototype','call','appcode','hasOwnProperty','locale'];a203_0x4a98=function(){return _0x1e7eff;};return a203_0x4a98();}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x544384){const _0x2de5af=a203_0x8f4b;return typeof _0x544384===_0x2de5af(0xdf)&&_0x544384[_0x2de5af(0xd5)]()?_0x544384['trim']():undefined;}function appProfiles(_0x1f31d9){const _0x2145a0=a203_0x8f4b;return _0x1f31d9['apps']&&typeof _0x1f31d9[_0x2145a0(0xc3)]==='object'?_0x1f31d9['apps']:{};}function resolveDefaultAppName(_0x38a7be){const _0x2420af=a203_0x8f4b,_0x50d5e0=stringConfigValue(_0x38a7be['defaultApp']);if(_0x50d5e0)return _0x50d5e0;return Object[_0x2420af(0xd2)](appProfiles(_0x38a7be))[0x0];}function resolveTopLevelAppCode(_0x6db06b){const _0x2452c8=a203_0x8f4b;return stringConfigValue(_0x6db06b[_0x2452c8(0xbb)])||stringConfigValue(_0x6db06b[_0x2452c8(0xc0)]);}function normalizeRiskCeiling(_0x37680b){const _0x56a8c8=a203_0x8f4b;if(_0x37680b===undefined||_0x37680b===null)return undefined;if(_0x37680b===_0x56a8c8(0xe4)||_0x37680b==='write'||_0x37680b===_0x56a8c8(0xdc))return _0x37680b;return'read';}function resolveRiskCeiling(_0x711b23,..._0x3410c9){const _0x5ecf3b=a203_0x8f4b;let _0x10c654;for(const _0x96256d of _0x711b23){const _0x598860=normalizeRiskCeiling(_0x96256d);_0x598860&&(!_0x10c654||riskLevelOrder(_0x598860)<riskLevelOrder(_0x10c654))&&(_0x10c654=_0x598860);}let _0x44dc40=_0x10c654??DEFAULT_CONFIG_VALUES[_0x5ecf3b(0xe0)];for(const _0xb3f213 of _0x3410c9){const _0x46c4ec=normalizeRiskCeiling(_0xb3f213);_0x46c4ec&&riskLevelOrder(_0x46c4ec)<riskLevelOrder(_0x44dc40)&&(_0x44dc40=_0x46c4ec);}return _0x44dc40;}function configuredRiskCeilings(_0x23f3b0){const _0x4561b8=a203_0x8f4b;return[...Object['prototype'][_0x4561b8(0xbc)][_0x4561b8(0xba)](_0x23f3b0,_0x4561b8(0xbf))?[_0x23f3b0['maxRisk']]:[],...Object[_0x4561b8(0xb9)][_0x4561b8(0xbc)][_0x4561b8(0xba)](_0x23f3b0,_0x4561b8(0xe0))?[_0x23f3b0[_0x4561b8(0xe0)]]:[]];}export function resolveAppConfig({raw:_0x55b3ee,flags:_0x4a31be,layers:_0x2d041c,readEnv:_0x2d9aab}){const _0x49071b=a203_0x8f4b,_0xb7d0c3=_0x2d041c?.['projectConfig']??{},_0x53e4a1=_0x2d041c?.['globalConfig']??{},_0x517489=Object['keys'](_0xb7d0c3)[_0x49071b(0xdd)]>0x0,_0xe2394b=!_0x517489||_0xb7d0c3[_0x49071b(0xce)]===!![],_0xc2e3a7=_0x517489?resolveDefaultAppName(_0xb7d0c3):undefined,_0x2448a5=_0xe2394b?resolveDefaultAppName(_0x53e4a1):undefined,_0x59e76c=stringConfigValue(_0x4a31be['app']),_0x4d10a0=_0x2d9aab(_0x49071b(0xc6)),_0x3b45e7={};if(_0x55b3ee[_0x49071b(0xc3)]&&typeof _0x55b3ee[_0x49071b(0xc3)]===_0x49071b(0xc1))for(const [_0x4e1a35,_0x36edf5]of Object[_0x49071b(0xd1)](_0x55b3ee['apps'])){_0x36edf5&&typeof _0x36edf5===_0x49071b(0xc1)&&_0x36edf5[_0x49071b(0xbb)]&&(_0x3b45e7[_0x4e1a35]=_0x36edf5);}const _0x5b5d9b=_0x55b3ee[_0x49071b(0xcb)]||undefined,_0x56210f=Object[_0x49071b(0xd2)](_0x3b45e7)[_0x49071b(0xdd)]>0x0,_0x1f85f8=_0x59e76c||_0xc2e3a7||_0x4d10a0||_0x2448a5||_0x5b5d9b||undefined,_0x2c73a8=stringConfigValue(_0x4a31be[_0x49071b(0xbb)]),_0x222276=_0x2c73a8?Object[_0x49071b(0xd1)](_0x3b45e7)[_0x49071b(0xe6)](([,_0xba3696])=>_0xba3696?.['appcode']===_0x2c73a8):undefined,_0x19376f=_0x222276?.[0x0],_0x5e33b5=_0x222276?.[0x1],_0x409b29=_0x2c73a8?_0x19376f:_0x1f85f8;let _0xdb8def=_0x409b29&&_0x3b45e7[_0x409b29]?_0x3b45e7[_0x409b29]:undefined;_0x2c73a8&&_0x5e33b5&&(_0xdb8def=_0x5e33b5);const _0x5afaa4=_0x2c73a8?_0x5e33b5??_0xdb8def:_0xdb8def,_0x5f0d41=!_0x59e76c&&!_0xc2e3a7&&_0x4d10a0&&_0x409b29===_0x4d10a0,_0x25888f=_0x59e76c||(_0x5f0d41?_0x4d10a0:undefined)||(_0x2c73a8?_0x19376f:undefined),_0x4ac5b0=_0x5afaa4?.['appcode'],_0x28427c=_0x517489?resolveTopLevelAppCode(_0xb7d0c3):undefined,_0xd199a3=_0xe2394b?resolveTopLevelAppCode(_0x53e4a1):undefined,_0x132b90=_0x59e76c||_0xc2e3a7?_0x4ac5b0:undefined,_0x5c3d9c=!_0x59e76c&&!_0xc2e3a7?_0x4ac5b0:undefined,_0x21eb78=_0x2c73a8||_0x132b90||_0x28427c||_0x5c3d9c||_0xd199a3||undefined,_0x17d30f=_0x517489?stringConfigValue(_0xb7d0c3[_0x49071b(0xd0)]):undefined,_0x933f4c=_0xe2394b?stringConfigValue(_0x53e4a1['env']):undefined,_0xd4fd3a=_0x4a31be[_0x49071b(0xd0)]||_0x5afaa4?.[_0x49071b(0xd0)]||_0x17d30f||_0x2d9aab('ENV')||_0x933f4c||_0x55b3ee[_0x49071b(0xd0)]||DEFAULT_CONFIG_VALUES['env'],_0xc21c15=_0x5afaa4?.['locale']||_0x55b3ee['locale']||DEFAULT_CONFIG_VALUES[_0x49071b(0xbd)],_0x207543=_0x2d9aab(_0x49071b(0xe2))||_0x5afaa4?.[_0x49071b(0xc4)]||_0x55b3ee[_0x49071b(0xc4)]||undefined,_0x527a5e=_0x2d9aab(_0x49071b(0xc8))||_0x5afaa4?.[_0x49071b(0xd9)]||_0x55b3ee['accessKey']||undefined,_0x5882b5=_0x4a31be[_0x49071b(0xde)]||_0x2d9aab('FORMAT')||_0x5afaa4?.[_0x49071b(0xde)]||_0x55b3ee[_0x49071b(0xde)],_0x393257=normalizeLegacyOutputFormat(_0x5882b5),_0x377baf=_0x2d9aab(_0x49071b(0xc2))||_0x5afaa4?.[_0x49071b(0xe3)]||_0x55b3ee['pageSize'],_0x567174=_0x377baf?Number(_0x377baf)||undefined:undefined,_0x42bb53=_0x2d041c?[...configuredRiskCeilings(_0x2d041c[_0x49071b(0xe1)]),...configuredRiskCeilings(_0x2d041c[_0x49071b(0xd4)])]:configuredRiskCeilings(_0x55b3ee),_0x192273=resolveRiskCeiling(_0x42bb53,_0x5afaa4?.[_0x49071b(0xe0)],_0x2d9aab('RISK_LEVEL'),_0x2d9aab(_0x49071b(0xcf))),_0x544759=_0x2d9aab('VERBOSE'),_0x4bf2ec=_0x544759==='1'||_0x544759===_0x49071b(0xc7),_0x1351d9=_0x5afaa4?.[_0x49071b(0xd7)]||_0x55b3ee[_0x49071b(0xd7)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x2f780a=isDaily(normalizeEnv(String(_0xd4fd3a)))?_0x49071b(0xcd):_0x49071b(0xcc);return{'appCode':typeof _0x21eb78==='string'&&_0x21eb78['trim']()?_0x21eb78[_0x49071b(0xd5)]():undefined,'env':_0x2f780a,'locale':_0xc21c15,'cookie':_0x207543,'accessKey':_0x527a5e,'format':_0x393257,'pageSize':_0x567174,'riskLevel':_0x192273,'verbose':_0x4bf2ec,'apiDir':_0x1351d9,'apps':_0x3b45e7,'defaultApp':_0x5b5d9b,'currentApp':_0x56210f?_0x409b29:undefined,'explicitAppName':_0x25888f};}
1
+ (function(_0x467da2,_0x4ecd48){const _0x19b6e1=a213_0xbf5d,_0x2e462a=_0x467da2();while(!![]){try{const _0x14c7ca=-parseInt(_0x19b6e1(0x150))/0x1+parseInt(_0x19b6e1(0x153))/0x2+-parseInt(_0x19b6e1(0x169))/0x3*(parseInt(_0x19b6e1(0x154))/0x4)+parseInt(_0x19b6e1(0x157))/0x5*(-parseInt(_0x19b6e1(0x168))/0x6)+parseInt(_0x19b6e1(0x151))/0x7+parseInt(_0x19b6e1(0x15f))/0x8+-parseInt(_0x19b6e1(0x171))/0x9*(parseInt(_0x19b6e1(0x173))/0xa);if(_0x14c7ca===_0x4ecd48)break;else _0x2e462a['push'](_0x2e462a['shift']());}catch(_0x18b0e5){_0x2e462a['push'](_0x2e462a['shift']());}}}(a213_0x1b65,0xdc730));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a213_0xbf5d(_0x5d049d,_0x37cfd6){_0x5d049d=_0x5d049d-0x14b;const _0x1b65fd=a213_0x1b65();let _0xbf5d37=_0x1b65fd[_0x5d049d];return _0xbf5d37;}function a213_0x1b65(){const _0x306ac9=['168wnzhat','MAX_RISK','find','153215joPOZd','read','object','globalConfig','apps','app','locale','PAGE_SIZE','7538880vKyVWD','accessKey','prototype','appcode','inherit','APP','maxRisk','length','entries','300EDbzVd','28761lHLYla','format','call','projectConfig','cookie','trim','write','riskLevel','9gQacpN','VERBOSE','3615970GrQvOs','string','env','keys','apiDir','hasOwnProperty','true','954708CXLFzH','12334644mzupdA','ENV','2899234hskoXh'];a213_0x1b65=function(){return _0x306ac9;};return a213_0x1b65();}import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function stringConfigValue(_0x57af28){const _0x16ac6d=a213_0xbf5d;return typeof _0x57af28===_0x16ac6d(0x174)&&_0x57af28[_0x16ac6d(0x16e)]()?_0x57af28[_0x16ac6d(0x16e)]():undefined;}function appProfiles(_0x532158){const _0x508cac=a213_0xbf5d;return _0x532158[_0x508cac(0x15b)]&&typeof _0x532158[_0x508cac(0x15b)]===_0x508cac(0x159)?_0x532158[_0x508cac(0x15b)]:{};}function resolveDefaultAppName(_0x525ac2){const _0x47118c=a213_0xbf5d,_0x59ac28=stringConfigValue(_0x525ac2['defaultApp']);if(_0x59ac28)return _0x59ac28;return Object[_0x47118c(0x14c)](appProfiles(_0x525ac2))[0x0];}function resolveTopLevelAppCode(_0x51a6f7){return stringConfigValue(_0x51a6f7['appcode'])||stringConfigValue(_0x51a6f7['app']);}function normalizeRiskCeiling(_0x191e6a){const _0x5b6e3b=a213_0xbf5d;if(_0x191e6a===undefined||_0x191e6a===null)return undefined;if(_0x191e6a===_0x5b6e3b(0x158)||_0x191e6a===_0x5b6e3b(0x16f)||_0x191e6a==='high-risk-write')return _0x191e6a;return'read';}function resolveRiskCeiling(..._0x317ba3){let _0x1f265f=DEFAULT_CONFIG_VALUES['riskLevel'];for(const _0x5bebd1 of _0x317ba3){const _0x5082b2=normalizeRiskCeiling(_0x5bebd1);_0x5082b2&&riskLevelOrder(_0x5082b2)<riskLevelOrder(_0x1f265f)&&(_0x1f265f=_0x5082b2);}return _0x1f265f;}function configuredRiskCeilings(_0x44369c){const _0x383988=a213_0xbf5d;return[...Object['prototype'][_0x383988(0x14e)][_0x383988(0x16b)](_0x44369c,_0x383988(0x165))?[_0x44369c[_0x383988(0x165)]]:[],...Object[_0x383988(0x161)][_0x383988(0x14e)][_0x383988(0x16b)](_0x44369c,_0x383988(0x170))?[_0x44369c[_0x383988(0x170)]]:[]];}export function resolveAppConfig({raw:_0x5223bb,flags:_0x1d86c2,layers:_0x31df95,readEnv:_0x144526}){const _0x405b6d=a213_0xbf5d,_0x425136=_0x31df95?.[_0x405b6d(0x16c)]??{},_0x59efb0=_0x31df95?.[_0x405b6d(0x15a)]??{},_0x2b7211=Object[_0x405b6d(0x14c)](_0x425136)[_0x405b6d(0x166)]>0x0,_0x535402=!_0x2b7211||_0x425136[_0x405b6d(0x163)]===!![],_0x2e455d=_0x2b7211?resolveDefaultAppName(_0x425136):undefined,_0x495894=_0x535402?resolveDefaultAppName(_0x59efb0):undefined,_0x21f899=stringConfigValue(_0x1d86c2[_0x405b6d(0x15c)]),_0x1e3af5=_0x144526(_0x405b6d(0x164)),_0x1bb864={};if(_0x5223bb['apps']&&typeof _0x5223bb[_0x405b6d(0x15b)]===_0x405b6d(0x159))for(const [_0x196109,_0x177944]of Object[_0x405b6d(0x167)](_0x5223bb[_0x405b6d(0x15b)])){_0x177944&&typeof _0x177944===_0x405b6d(0x159)&&_0x177944[_0x405b6d(0x162)]&&(_0x1bb864[_0x196109]=_0x177944);}const _0x5bde85=_0x5223bb['defaultApp']||undefined,_0x5923d5=Object['keys'](_0x1bb864)[_0x405b6d(0x166)]>0x0,_0x2a3279=_0x21f899||_0x2e455d||_0x1e3af5||_0x495894||_0x5bde85||undefined,_0x1756b6=stringConfigValue(_0x1d86c2[_0x405b6d(0x162)]),_0x3fa20f=_0x1756b6?Object['entries'](_0x1bb864)[_0x405b6d(0x156)](([,_0x9e423])=>_0x9e423?.[_0x405b6d(0x162)]===_0x1756b6):undefined,_0x1708e1=_0x3fa20f?.[0x0],_0x5d19f0=_0x3fa20f?.[0x1],_0x394bb9=_0x1756b6?_0x1708e1:_0x2a3279;let _0x29f560=_0x394bb9&&_0x1bb864[_0x394bb9]?_0x1bb864[_0x394bb9]:undefined;_0x1756b6&&_0x5d19f0&&(_0x29f560=_0x5d19f0);const _0x135528=_0x1756b6?_0x5d19f0??_0x29f560:_0x29f560,_0x5d2e4e=!_0x21f899&&!_0x2e455d&&_0x1e3af5&&_0x394bb9===_0x1e3af5,_0x464ab8=_0x21f899||(_0x5d2e4e?_0x1e3af5:undefined)||(_0x1756b6?_0x1708e1:undefined),_0x4a487d=_0x135528?.[_0x405b6d(0x162)],_0x1c0624=_0x2b7211?resolveTopLevelAppCode(_0x425136):undefined,_0x85df3f=_0x535402?resolveTopLevelAppCode(_0x59efb0):undefined,_0x27f2a2=_0x21f899||_0x2e455d?_0x4a487d:undefined,_0x3558d9=!_0x21f899&&!_0x2e455d?_0x4a487d:undefined,_0x7ced25=_0x1756b6||_0x27f2a2||_0x1c0624||_0x3558d9||_0x85df3f||undefined,_0x2eb8d6=_0x2b7211?stringConfigValue(_0x425136[_0x405b6d(0x14b)]):undefined,_0x408d9d=_0x535402?stringConfigValue(_0x59efb0[_0x405b6d(0x14b)]):undefined,_0xcacb62=_0x1d86c2['env']||_0x135528?.[_0x405b6d(0x14b)]||_0x2eb8d6||_0x144526(_0x405b6d(0x152))||_0x408d9d||_0x5223bb[_0x405b6d(0x14b)]||DEFAULT_CONFIG_VALUES['env'],_0xe2418d=_0x135528?.[_0x405b6d(0x15d)]||_0x5223bb[_0x405b6d(0x15d)]||DEFAULT_CONFIG_VALUES[_0x405b6d(0x15d)],_0x110fcb=_0x144526('COOKIE')||_0x135528?.[_0x405b6d(0x16d)]||_0x5223bb[_0x405b6d(0x16d)]||undefined,_0x5ba51c=_0x144526('ACCESS_KEY')||_0x135528?.[_0x405b6d(0x160)]||_0x5223bb[_0x405b6d(0x160)]||undefined,_0x2c659e=_0x1d86c2[_0x405b6d(0x16a)]||_0x144526('FORMAT')||_0x135528?.[_0x405b6d(0x16a)]||_0x5223bb[_0x405b6d(0x16a)],_0x423808=normalizeLegacyOutputFormat(_0x2c659e),_0x5ea1d6=_0x144526(_0x405b6d(0x15e))||_0x135528?.['pageSize']||_0x5223bb['pageSize'],_0x5eab82=_0x5ea1d6?Number(_0x5ea1d6)||undefined:undefined,_0x2ac2af=_0x31df95?[...configuredRiskCeilings(_0x31df95[_0x405b6d(0x15a)]),...configuredRiskCeilings(_0x31df95[_0x405b6d(0x16c)])]:configuredRiskCeilings(_0x5223bb),_0x24eee2=resolveRiskCeiling(..._0x2ac2af,_0x135528?.[_0x405b6d(0x170)],_0x144526('RISK_LEVEL'),_0x144526(_0x405b6d(0x155))),_0x26ee5e=_0x144526(_0x405b6d(0x172)),_0x51edd2=_0x26ee5e==='1'||_0x26ee5e===_0x405b6d(0x14f),_0xe57f6a=_0x135528?.[_0x405b6d(0x14d)]||_0x5223bb[_0x405b6d(0x14d)]||DEFAULT_CONFIG_VALUES[_0x405b6d(0x14d)],_0x37de59=isDaily(normalizeEnv(String(_0xcacb62)))?'daily':'production';return{'appCode':typeof _0x7ced25===_0x405b6d(0x174)&&_0x7ced25[_0x405b6d(0x16e)]()?_0x7ced25[_0x405b6d(0x16e)]():undefined,'env':_0x37de59,'locale':_0xe2418d,'cookie':_0x110fcb,'accessKey':_0x5ba51c,'format':_0x423808,'pageSize':_0x5eab82,'riskLevel':_0x24eee2,'verbose':_0x51edd2,'apiDir':_0xe57f6a,'apps':_0x1bb864,'defaultApp':_0x5bde85,'currentApp':_0x5923d5?_0x394bb9:undefined,'explicitAppName':_0x464ab8};}
@@ -1 +1 @@
1
- function a204_0x5d4d(){const _0x335915=['430gdVrFH','1782210YpufxP','723239NiviPM','1026xVwhAw','797168FvpLkh','14AYuQpH','15sxNosL','176612IjrEQX','48696KvqjoW','cookie','431610jQwnyE','5247875hKVcvB','authRequired'];a204_0x5d4d=function(){return _0x335915;};return a204_0x5d4d();}(function(_0x9ed410,_0x4effca){const _0x40345b=a204_0x5384,_0x285cef=_0x9ed410();while(!![]){try{const _0x58efbb=parseInt(_0x40345b(0x1f1))/0x1+-parseInt(_0x40345b(0x1eb))/0x2+parseInt(_0x40345b(0x1f0))/0x3*(-parseInt(_0x40345b(0x1ee))/0x4)+-parseInt(_0x40345b(0x1f5))/0x5+-parseInt(_0x40345b(0x1f4))/0x6*(parseInt(_0x40345b(0x1ef))/0x7)+parseInt(_0x40345b(0x1f2))/0x8*(parseInt(_0x40345b(0x1ed))/0x9)+-parseInt(_0x40345b(0x1ea))/0xa*(-parseInt(_0x40345b(0x1ec))/0xb);if(_0x58efbb===_0x4effca)break;else _0x285cef['push'](_0x285cef['shift']());}catch(_0x1983f0){_0x285cef['push'](_0x285cef['shift']());}}}(a204_0x5d4d,0x96917));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a204_0x5384(_0x47d56a,_0xdbe826){_0x47d56a=_0x47d56a-0x1e9;const _0x5d4d7c=a204_0x5d4d();let _0x5384f3=_0x5d4d7c[_0x47d56a];return _0x5384f3;}export async function buildAuth(_0x420712){const _0x4905e5=a204_0x5384,{getCookie:_0x155d3d}=await import('../auth/get-cookie.js'),_0x1529e8=_0x420712[_0x4905e5(0x1f3)]||_0x155d3d(),_0x516452=_0x1529e8?await getIsSessionValid():![];return{'cookie':_0x1529e8,'isLoggedIn':_0x516452,async 'getOrLogin'(){const _0xd41101=_0x4905e5;if(_0x1529e8&&_0x516452)return _0x1529e8;throw CliErrors[_0xd41101(0x1e9)]();}};}
1
+ (function(_0x244055,_0x3465a1){const _0x4eb70a=a214_0x1834,_0xb2aa20=_0x244055();while(!![]){try{const _0x493457=parseInt(_0x4eb70a(0x1e9))/0x1+-parseInt(_0x4eb70a(0x1eb))/0x2*(-parseInt(_0x4eb70a(0x1f1))/0x3)+-parseInt(_0x4eb70a(0x1ea))/0x4*(-parseInt(_0x4eb70a(0x1f5))/0x5)+parseInt(_0x4eb70a(0x1ed))/0x6+-parseInt(_0x4eb70a(0x1f0))/0x7*(-parseInt(_0x4eb70a(0x1ec))/0x8)+-parseInt(_0x4eb70a(0x1f6))/0x9+-parseInt(_0x4eb70a(0x1f4))/0xa*(parseInt(_0x4eb70a(0x1ee))/0xb);if(_0x493457===_0x3465a1)break;else _0xb2aa20['push'](_0xb2aa20['shift']());}catch(_0xafa885){_0xb2aa20['push'](_0xb2aa20['shift']());}}}(a214_0x1fce,0x6a46f));function a214_0x1834(_0x4af58b,_0x13b239){_0x4af58b=_0x4af58b-0x1e9;const _0x1fce57=a214_0x1fce();let _0x18346b=_0x1fce57[_0x4af58b];return _0x18346b;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x262199){const _0x39a587=a214_0x1834,{getCookie:_0x37297f}=await import(_0x39a587(0x1ef)),_0x2de228=_0x262199[_0x39a587(0x1f3)]||_0x37297f(),_0x5b1049=_0x2de228?await getIsSessionValid():![];return{'cookie':_0x2de228,'isLoggedIn':_0x5b1049,async 'getOrLogin'(){const _0x154187=_0x39a587;if(_0x2de228&&_0x5b1049)return _0x2de228;throw CliErrors[_0x154187(0x1f2)]();}};}function a214_0x1fce(){const _0x10b039=['3967515mJPTfb','297ZCTzes','16teObCG','287326jFeVvN','48808mDnMmO','3632646infTMu','2409yAqMgE','../auth/get-cookie.js','42aCPxPZ','6lutxmV','authRequired','cookie','2480rTDVTV','985CTffCF'];a214_0x1fce=function(){return _0x10b039;};return a214_0x1fce();}
@@ -1 +1 @@
1
- const a205_0x5173eb=a205_0xd2c8;(function(_0x4bc055,_0x2efa9b){const _0x1f1fc7=a205_0xd2c8,_0x1fa078=_0x4bc055();while(!![]){try{const _0x173022=-parseInt(_0x1f1fc7(0x133))/0x1*(parseInt(_0x1f1fc7(0x124))/0x2)+parseInt(_0x1f1fc7(0x10f))/0x3*(-parseInt(_0x1f1fc7(0x116))/0x4)+-parseInt(_0x1f1fc7(0x106))/0x5*(parseInt(_0x1f1fc7(0x112))/0x6)+-parseInt(_0x1f1fc7(0x128))/0x7*(parseInt(_0x1f1fc7(0x12f))/0x8)+parseInt(_0x1f1fc7(0x108))/0x9+-parseInt(_0x1f1fc7(0x12c))/0xa*(-parseInt(_0x1f1fc7(0x125))/0xb)+parseInt(_0x1f1fc7(0x111))/0xc;if(_0x173022===_0x2efa9b)break;else _0x1fa078['push'](_0x1fa078['shift']());}catch(_0x36e69e){_0x1fa078['push'](_0x1fa078['shift']());}}}(a205_0x5e9f,0xe4789));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a205_0x5173eb(0x123);export const CONFIG_NAMES=['.rabetbase.json',a205_0x5173eb(0x12a),a205_0x5173eb(0x119)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a205_0x5173eb(0x113)](_0x4c8cac=>_0x4c8cac!==NEW_CONFIG_NAME);const normalizedWriteCache=new Map();export function resolveConfigPath(_0x5ac72f){for(const _0x1c1f16 of CONFIG_NAMES){const _0x44c660=resolve(_0x5ac72f,_0x1c1f16);if(existsSync(_0x44c660))return _0x44c660;}return undefined;}export function findProjectRootDirectory(_0x21c24b=process[a205_0x5173eb(0x115)]()){let _0x3372f7=resolve(_0x21c24b);const {root:_0x1771f2}=parse(_0x3372f7),_0x2ec49f=homedir();while(!![]){if(resolveConfigPath(_0x3372f7)){if(_0x3372f7===_0x2ec49f)break;return _0x3372f7;}if(_0x3372f7===_0x1771f2||_0x3372f7===_0x2ec49f)break;const _0x107665=dirname(_0x3372f7);if(_0x107665===_0x3372f7)break;_0x3372f7=_0x107665;}return resolve(_0x21c24b);}function a205_0xd2c8(_0x43cf31,_0x496e56){_0x43cf31=_0x43cf31-0x100;const _0x5e9fdc=a205_0x5e9f();let _0xd2c895=_0x5e9fdc[_0x43cf31];return _0xd2c895;}export function getProjectConfigPath(){const _0xec550d=a205_0x5173eb;return resolveConfigPath(process[_0xec550d(0x115)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x9021fa){const _0x3fc05b=a205_0x5173eb;if(!existsSync(_0x9021fa))return{'status':_0x3fc05b(0x11a)};try{const _0x5e024b=readFileSync(_0x9021fa,{'encoding':'utf8'});if(!_0x5e024b?.[_0x3fc05b(0x130)]())return{'status':_0x3fc05b(0x134)};const _0x25d64c=JSON[_0x3fc05b(0x129)](_0x5e024b);return{'status':'ok','data':_0x25d64c};}catch(_0x49aa10){return{'status':_0x3fc05b(0x11f),'message':_0x49aa10 instanceof Error?_0x49aa10[_0x3fc05b(0x132)]:String(_0x49aa10)};}}function parseCliConfigJsonFile(_0x176c0e,_0x54742c,_0x31de28){const _0x698a04=a205_0x5173eb,_0x1cd79b=inspectCliConfigJsonFile(_0x176c0e);if(_0x1cd79b[_0x698a04(0x11b)]===_0x698a04(0x11a)||_0x1cd79b[_0x698a04(0x11b)]===_0x698a04(0x134))return{};if(_0x1cd79b[_0x698a04(0x11b)]==='ok')return _0x1cd79b['data'];return _0x54742c===_0x698a04(0x12e)&&_0x31de28&&console[_0x698a04(0x11f)](CLI_BIN_NAME+':\x20'+_0x31de28+_0x698a04(0x107)+_0x176c0e+_0x698a04(0x10d)+_0x1cd79b[_0x698a04(0x132)]),{};}function normalizeLegacyConfigShape(_0x79c830){const _0x3faea4=a205_0x5173eb;if(!_0x79c830||typeof _0x79c830!==_0x3faea4(0x126))return{'config':{},'migrated':![]};const _0x26d228={..._0x79c830},_0x513e38=_0x26d228[_0x3faea4(0x105)]&&typeof _0x26d228[_0x3faea4(0x105)]==='object'?{..._0x26d228[_0x3faea4(0x105)]}:{},_0x5162e4=Object[_0x3faea4(0x118)](_0x513e38)[_0x3faea4(0x11d)],_0x2ce5b5=_0x26d228[_0x3faea4(0x120)]||_0x26d228[_0x3faea4(0x109)];let _0x55bab3=![];if(_0x2ce5b5&&_0x5162e4===0x0){const _0x2d1feb=typeof _0x26d228['defaultApp']===_0x3faea4(0x103)&&_0x26d228[_0x3faea4(0x10e)][_0x3faea4(0x130)]()?_0x26d228['defaultApp']:String(_0x2ce5b5)[_0x3faea4(0x130)]();_0x513e38[_0x2d1feb]={'appcode':String(_0x2ce5b5)[_0x3faea4(0x130)](),..._0x26d228[_0x3faea4(0x10c)]!=null?{'env':_0x26d228[_0x3faea4(0x10c)]}:{},..._0x26d228[_0x3faea4(0x127)]!=null?{'apiDir':_0x26d228['apiDir']}:{},..._0x26d228[_0x3faea4(0x102)]!=null?{'cookie':_0x26d228[_0x3faea4(0x102)]}:{},..._0x26d228['accessKey']!=null?{'accessKey':_0x26d228['accessKey']}:{},..._0x26d228['format']!=null?{'format':_0x26d228[_0x3faea4(0x12b)]}:{},..._0x26d228[_0x3faea4(0x131)]!=null?{'pageSize':_0x26d228[_0x3faea4(0x131)]}:{},..._0x26d228[_0x3faea4(0x11c)]!=null?{'riskLevel':_0x26d228[_0x3faea4(0x11c)]}:{},..._0x26d228[_0x3faea4(0x121)]!=null?{'locale':_0x26d228[_0x3faea4(0x121)]}:{}},_0x26d228['apps']=_0x513e38;if(!_0x26d228[_0x3faea4(0x10e)])_0x26d228['defaultApp']=_0x2d1feb;_0x55bab3=!![];}return(_0x3faea4(0x120)in _0x26d228||_0x3faea4(0x109)in _0x26d228)&&(delete _0x26d228[_0x3faea4(0x120)],delete _0x26d228[_0x3faea4(0x109)],_0x55bab3=!![]),{'config':_0x26d228,'migrated':_0x55bab3};}function writeNormalizedConfigIfNeeded(_0x37d4b9,_0x277c96){const _0x37bbda=a205_0x5173eb,_0x6f6b38=JSON[_0x37bbda(0x10b)](_0x277c96,null,0x2)+'\x0a';if(normalizedWriteCache[_0x37bbda(0x11e)](_0x37d4b9)===_0x6f6b38)return;writeConfigFile(_0x37d4b9,_0x277c96),normalizedWriteCache[_0x37bbda(0x110)](_0x37d4b9,_0x6f6b38);}function parseAndNormalizeConfig(_0x5c0187,_0x4001ed,_0x29e3ee){const _0x1b5ab2=a205_0x5173eb,_0x14efd9=parseCliConfigJsonFile(_0x5c0187,_0x4001ed,_0x29e3ee),_0x4b8020=normalizeLegacyConfigShape(_0x14efd9);if(_0x4b8020[_0x1b5ab2(0x114)])try{writeNormalizedConfigIfNeeded(_0x5c0187,_0x4b8020['config']);}catch{}return _0x4b8020['config'];}export function loadRawConfigLayers(_0x5c3bfd){const _0x2653b0=a205_0x5173eb;let _0x551e95={},_0x2137b7={};const _0x33e57d=resolveConfigPath(homedir());_0x33e57d&&(_0x551e95=parseAndNormalizeConfig(_0x33e57d,'warn',_0x2653b0(0x104)));const _0x4d1d69=_0x5c3bfd??findProjectRootDirectory(),_0x5bb4e6=resolveConfigPath(_0x4d1d69);return _0x5bb4e6&&(_0x2137b7=parseAndNormalizeConfig(_0x5bb4e6,_0x2653b0(0x12e),_0x2653b0(0x122))),{'globalPath':_0x33e57d,'projectPath':_0x5bb4e6,'globalConfig':_0x551e95,'projectConfig':_0x2137b7};}const INHERIT_WHITELIST=['cookie',a205_0x5173eb(0x117),a205_0x5173eb(0x121),a205_0x5173eb(0x12b),a205_0x5173eb(0x11c),a205_0x5173eb(0x131)];export function mergeRawConfigLayers(_0x280e09){const _0x371621=a205_0x5173eb,{globalConfig:_0x59fea5,projectConfig:_0x31713e}=_0x280e09,_0x40038d=Object[_0x371621(0x118)](_0x31713e)[_0x371621(0x11d)]>0x0;if(!_0x40038d)return mergeGlobalOnly(_0x59fea5);if(_0x31713e[_0x371621(0x12d)]===!![])return mergeFullInherit(_0x59fea5,_0x31713e);if(_0x31713e['inherit']===![])return mergeIsolated(_0x31713e);return mergeProjectFirst(_0x59fea5,_0x31713e);}function mergeGlobalOnly(_0x177cda){const _0x39581f=a205_0x5173eb,_0x3c5aa8={..._0x177cda},_0x197cbd=_0x177cda[_0x39581f(0x105)]&&typeof _0x177cda['apps']===_0x39581f(0x126)?_0x177cda[_0x39581f(0x105)]:{};if(Object[_0x39581f(0x118)](_0x197cbd)[_0x39581f(0x11d)]>0x0)_0x3c5aa8[_0x39581f(0x105)]=_0x197cbd;if(_0x177cda[_0x39581f(0x10e)])_0x3c5aa8['defaultApp']=_0x177cda[_0x39581f(0x10e)];else{const _0x1051e5=Object[_0x39581f(0x118)](_0x197cbd);if(_0x1051e5[_0x39581f(0x11d)]>0x0)_0x3c5aa8['defaultApp']=_0x1051e5[0x0];}return _0x3c5aa8;}function mergeIsolated(_0x283629){const _0x33dc18=a205_0x5173eb,_0x29a1ab={..._0x283629};delete _0x29a1ab[_0x33dc18(0x12d)];const _0x4cc473=_0x283629[_0x33dc18(0x105)]&&typeof _0x283629[_0x33dc18(0x105)]===_0x33dc18(0x126)?_0x283629[_0x33dc18(0x105)]:{};Object['keys'](_0x4cc473)['length']>0x0?_0x29a1ab[_0x33dc18(0x105)]=_0x4cc473:delete _0x29a1ab[_0x33dc18(0x105)];if('defaultApp'in _0x283629)_0x29a1ab[_0x33dc18(0x10e)]=_0x283629[_0x33dc18(0x10e)];else Object['keys'](_0x4cc473)[_0x33dc18(0x11d)]>0x0?_0x29a1ab[_0x33dc18(0x10e)]=Object[_0x33dc18(0x118)](_0x4cc473)[0x0]:delete _0x29a1ab['defaultApp'];return _0x29a1ab;}function mergeProjectFirst(_0x51e000,_0x47b8c5){const _0x4bd387=a205_0x5173eb,_0x47721a={..._0x47b8c5};delete _0x47721a[_0x4bd387(0x12d)];for(const _0x2ff370 of INHERIT_WHITELIST){!(_0x2ff370 in _0x47721a)&&_0x2ff370 in _0x51e000&&(_0x47721a[_0x2ff370]=_0x51e000[_0x2ff370]);}const _0x2ea598=_0x47b8c5[_0x4bd387(0x105)]&&typeof _0x47b8c5['apps']===_0x4bd387(0x126)?_0x47b8c5[_0x4bd387(0x105)]:{};Object[_0x4bd387(0x118)](_0x2ea598)['length']>0x0?_0x47721a[_0x4bd387(0x105)]=_0x2ea598:delete _0x47721a['apps'];if(_0x4bd387(0x10e)in _0x47b8c5)_0x47721a[_0x4bd387(0x10e)]=_0x47b8c5['defaultApp'];else Object[_0x4bd387(0x118)](_0x2ea598)[_0x4bd387(0x11d)]>0x0?_0x47721a[_0x4bd387(0x10e)]=Object[_0x4bd387(0x118)](_0x2ea598)[0x0]:delete _0x47721a[_0x4bd387(0x10e)];return _0x47721a;}function mergeFullInherit(_0x2dc5ae,_0x12547d){const _0x1b47b9=a205_0x5173eb,_0x3c39db=_0x2dc5ae[_0x1b47b9(0x105)]&&typeof _0x2dc5ae[_0x1b47b9(0x105)]===_0x1b47b9(0x126)?_0x2dc5ae['apps']:{},_0x391899=_0x12547d['apps']&&typeof _0x12547d[_0x1b47b9(0x105)]==='object'?_0x12547d[_0x1b47b9(0x105)]:{},_0x184f2a={..._0x3c39db,..._0x391899},_0x50de07={..._0x2dc5ae,..._0x12547d};delete _0x50de07[_0x1b47b9(0x12d)];if(Object['keys'](_0x184f2a)[_0x1b47b9(0x11d)]>0x0)_0x50de07['apps']=_0x184f2a;if('defaultApp'in _0x12547d)_0x50de07[_0x1b47b9(0x10e)]=_0x12547d['defaultApp'];else{if(Object[_0x1b47b9(0x118)](_0x391899)['length']>0x0)_0x50de07['defaultApp']=Object[_0x1b47b9(0x118)](_0x391899)[0x0];else{if(_0x2dc5ae[_0x1b47b9(0x10e)])_0x50de07[_0x1b47b9(0x10e)]=_0x2dc5ae[_0x1b47b9(0x10e)];else{const _0x37dabe=Object['keys'](_0x3c39db);if(_0x37dabe[_0x1b47b9(0x11d)]>0x0)_0x50de07['defaultApp']=_0x37dabe[0x0];}}}return _0x50de07;}export function readRawConfigWithLayers(_0x442025){const _0x4b4a50=loadRawConfigLayers(_0x442025);return{'config':mergeRawConfigLayers(_0x4b4a50),'layers':_0x4b4a50};}export function readRawConfig(_0x80449b){return mergeRawConfigLayers(loadRawConfigLayers(_0x80449b));}function a205_0x5e9f(){const _0x2f27ca=['apiDir','35HgSvnO','parse','.lovrabet.json','format','290hwyLqi','inherit','warn','1414024nNSKON','trim','pageSize','message','3AcelaZ','empty','utf8','silent','cookie','string','Global','apps','5axyvmk','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','405216WBajLa','app','.tmp','stringify','env','\x0a\x20\x20','defaultApp','984189ydfzxD','set','36552216hdNXWE','2560734WguisN','filter','migrated','cwd','12iykVCB','accessKey','keys','.lovrabetrc','missing','status','riskLevel','length','get','error','appcode','locale','Project','.rabetbase.json','498530tUFmEy','336567WvZGIK','object'];a205_0x5e9f=function(){return _0x2f27ca;};return a205_0x5e9f();}export function readConfigFile(_0x23e28f){const _0x35de5b=a205_0x5173eb;return parseAndNormalizeConfig(_0x23e28f,_0x35de5b(0x101));}export function writeConfigFile(_0x55ca60,_0x332843){const _0x196049=a205_0x5173eb,_0x247ac1=dirname(_0x55ca60);!existsSync(_0x247ac1)&&mkdirSync(_0x247ac1,{'recursive':!![]});const _0x337111=_0x55ca60+_0x196049(0x10a);try{writeFileSync(_0x337111,JSON[_0x196049(0x10b)](_0x332843,null,0x2)+'\x0a',{'encoding':_0x196049(0x100),'mode':0x180}),renameSync(_0x337111,_0x55ca60);}catch(_0x40448f){try{unlinkSync(_0x337111);}catch{}throw _0x40448f;}}export function resolveWriteConfigPath(_0x381efc){const _0x1a5f18=a205_0x5173eb,_0x24bfa9=_0x381efc==='project'?process[_0x1a5f18(0x115)]():homedir(),_0x488e0b=resolveConfigPath(_0x24bfa9);return _0x488e0b??resolve(_0x24bfa9,NEW_CONFIG_NAME);}
1
+ const a215_0x36861c=a215_0x32cf;(function(_0x50a496,_0x49016e){const _0x3a664c=a215_0x32cf,_0x5ebde3=_0x50a496();while(!![]){try{const _0x5975a6=-parseInt(_0x3a664c(0x9d))/0x1+-parseInt(_0x3a664c(0xbc))/0x2*(-parseInt(_0x3a664c(0xa2))/0x3)+-parseInt(_0x3a664c(0x9a))/0x4*(parseInt(_0x3a664c(0xb7))/0x5)+parseInt(_0x3a664c(0x9e))/0x6+parseInt(_0x3a664c(0x93))/0x7*(parseInt(_0x3a664c(0xb2))/0x8)+-parseInt(_0x3a664c(0xb9))/0x9*(-parseInt(_0x3a664c(0x8a))/0xa)+parseInt(_0x3a664c(0x97))/0xb*(parseInt(_0x3a664c(0xa1))/0xc);if(_0x5975a6===_0x49016e)break;else _0x5ebde3['push'](_0x5ebde3['shift']());}catch(_0x2ea776){_0x5ebde3['push'](_0x5ebde3['shift']());}}}(a215_0x8b3a,0xf1421));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';export const NEW_CONFIG_NAME=a215_0x36861c(0x9b);export const CONFIG_NAMES=['.rabetbase.json',a215_0x36861c(0xb8),a215_0x36861c(0x91)];export const LEGACY_CONFIG_NAMES=CONFIG_NAMES[a215_0x36861c(0xa7)](_0x5a9604=>_0x5a9604!==NEW_CONFIG_NAME);function a215_0x8b3a(){const _0x53b9b1=['cwd','10157qJRBjb','string','parse','.tmp','1110934XNQAoA','error','data','24woTWcG','.rabetbase.json','warn','1424972kRzVry','131034IutIOg','apiDir','stringify','108qHYiBD','3MbjCgn','format','keys','utf8','Global','filter','message','locale','env','apps','appcode','riskLevel','accessKey','project','pageSize','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','3592EfhOqZ','config','object','empty','length','965155OZNiSc','.lovrabet.json','2799450GwZjxL','Project','cookie','2111834qfHlwL','trim','silent','30SHBLza','migrated','defaultApp','app','missing','status','inherit','.lovrabetrc'];a215_0x8b3a=function(){return _0x53b9b1;};return a215_0x8b3a();}const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3d97f4){for(const _0x3c4031 of CONFIG_NAMES){const _0x40c028=resolve(_0x3d97f4,_0x3c4031);if(existsSync(_0x40c028))return _0x40c028;}return undefined;}export function findProjectRootDirectory(_0x16fe9a=process[a215_0x36861c(0x92)]()){let _0x4d14d2=resolve(_0x16fe9a);const {root:_0x499c6d}=parse(_0x4d14d2),_0x2cc7cf=homedir();while(!![]){if(resolveConfigPath(_0x4d14d2)){if(_0x4d14d2===_0x2cc7cf)break;return _0x4d14d2;}if(_0x4d14d2===_0x499c6d||_0x4d14d2===_0x2cc7cf)break;const _0x52f972=dirname(_0x4d14d2);if(_0x52f972===_0x4d14d2)break;_0x4d14d2=_0x52f972;}return resolve(_0x16fe9a);}export function getProjectConfigPath(){const _0x275e76=a215_0x36861c;return resolveConfigPath(process[_0x275e76(0x92)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}function a215_0x32cf(_0x55f0fb,_0x281fa7){_0x55f0fb=_0x55f0fb-0x88;const _0x8b3a0d=a215_0x8b3a();let _0x32cf24=_0x8b3a0d[_0x55f0fb];return _0x32cf24;}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x176a01){const _0x11bb20=a215_0x36861c;if(!existsSync(_0x176a01))return{'status':_0x11bb20(0x8e)};try{const _0xe4f5b7=readFileSync(_0x176a01,{'encoding':_0x11bb20(0xa5)});if(!_0xe4f5b7?.['trim']())return{'status':'empty'};const _0x1b581e=JSON[_0x11bb20(0x95)](_0xe4f5b7);return{'status':'ok','data':_0x1b581e};}catch(_0x8b90cd){return{'status':_0x11bb20(0x98),'message':_0x8b90cd instanceof Error?_0x8b90cd[_0x11bb20(0xa8)]:String(_0x8b90cd)};}}function parseCliConfigJsonFile(_0x5d7a7e,_0x38af4d,_0x2aa855){const _0xf85e9f=a215_0x36861c,_0x48de45=inspectCliConfigJsonFile(_0x5d7a7e);if(_0x48de45[_0xf85e9f(0x8f)]===_0xf85e9f(0x8e)||_0x48de45[_0xf85e9f(0x8f)]===_0xf85e9f(0xb5))return{};if(_0x48de45[_0xf85e9f(0x8f)]==='ok')return _0x48de45[_0xf85e9f(0x99)];return _0x38af4d===_0xf85e9f(0x9c)&&_0x2aa855&&console[_0xf85e9f(0x98)](CLI_BIN_NAME+':\x20'+_0x2aa855+_0xf85e9f(0xb1)+_0x5d7a7e+'\x0a\x20\x20'+_0x48de45[_0xf85e9f(0xa8)]),{};}function normalizeLegacyConfigShape(_0x383fc6){const _0x24c7d4=a215_0x36861c;if(!_0x383fc6||typeof _0x383fc6!=='object')return{'config':{},'migrated':![]};const _0x59864f={..._0x383fc6},_0x3b4648=_0x59864f[_0x24c7d4(0xab)]&&typeof _0x59864f[_0x24c7d4(0xab)]===_0x24c7d4(0xb4)?{..._0x59864f[_0x24c7d4(0xab)]}:{},_0xedc5dd=Object[_0x24c7d4(0xa4)](_0x3b4648)[_0x24c7d4(0xb6)],_0x1732d7=_0x59864f[_0x24c7d4(0xac)]||_0x59864f[_0x24c7d4(0x8d)];let _0x20164a=![];if(_0x1732d7&&_0xedc5dd===0x0){const _0x5bdffa=typeof _0x59864f[_0x24c7d4(0x8c)]===_0x24c7d4(0x94)&&_0x59864f[_0x24c7d4(0x8c)][_0x24c7d4(0x88)]()?_0x59864f[_0x24c7d4(0x8c)]:String(_0x1732d7)[_0x24c7d4(0x88)]();_0x3b4648[_0x5bdffa]={'appcode':String(_0x1732d7)['trim'](),..._0x59864f['env']!=null?{'env':_0x59864f[_0x24c7d4(0xaa)]}:{},..._0x59864f['apiDir']!=null?{'apiDir':_0x59864f[_0x24c7d4(0x9f)]}:{},..._0x59864f['cookie']!=null?{'cookie':_0x59864f[_0x24c7d4(0xbb)]}:{},..._0x59864f[_0x24c7d4(0xae)]!=null?{'accessKey':_0x59864f[_0x24c7d4(0xae)]}:{},..._0x59864f[_0x24c7d4(0xa3)]!=null?{'format':_0x59864f['format']}:{},..._0x59864f[_0x24c7d4(0xb0)]!=null?{'pageSize':_0x59864f[_0x24c7d4(0xb0)]}:{},..._0x59864f[_0x24c7d4(0xad)]!=null?{'riskLevel':_0x59864f['riskLevel']}:{},..._0x59864f[_0x24c7d4(0xa9)]!=null?{'locale':_0x59864f['locale']}:{}},_0x59864f['apps']=_0x3b4648;if(!_0x59864f[_0x24c7d4(0x8c)])_0x59864f[_0x24c7d4(0x8c)]=_0x5bdffa;_0x20164a=!![];}return(_0x24c7d4(0xac)in _0x59864f||_0x24c7d4(0x8d)in _0x59864f)&&(delete _0x59864f[_0x24c7d4(0xac)],delete _0x59864f[_0x24c7d4(0x8d)],_0x20164a=!![]),{'config':_0x59864f,'migrated':_0x20164a};}function writeNormalizedConfigIfNeeded(_0x291589,_0x464925){const _0xf91e3c=a215_0x36861c,_0x1f83a6=JSON[_0xf91e3c(0xa0)](_0x464925,null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x291589)===_0x1f83a6)return;writeConfigFile(_0x291589,_0x464925),normalizedWriteCache['set'](_0x291589,_0x1f83a6);}function parseAndNormalizeConfig(_0x356762,_0x187a5c,_0x64eac){const _0x1ee26d=a215_0x36861c,_0x338fdc=parseCliConfigJsonFile(_0x356762,_0x187a5c,_0x64eac),_0xad1823=normalizeLegacyConfigShape(_0x338fdc);if(_0xad1823[_0x1ee26d(0x8b)])try{writeNormalizedConfigIfNeeded(_0x356762,_0xad1823[_0x1ee26d(0xb3)]);}catch{}return _0xad1823['config'];}export function loadRawConfigLayers(_0x5d9128){const _0x592e39=a215_0x36861c;let _0x16074b={},_0x38294c={};const _0x494db7=resolveConfigPath(homedir());_0x494db7&&(_0x16074b=parseAndNormalizeConfig(_0x494db7,'warn',_0x592e39(0xa6)));const _0x2be44d=_0x5d9128??findProjectRootDirectory(),_0x5ae4c7=resolveConfigPath(_0x2be44d);return _0x5ae4c7&&(_0x38294c=parseAndNormalizeConfig(_0x5ae4c7,_0x592e39(0x9c),_0x592e39(0xba))),{'globalPath':_0x494db7,'projectPath':_0x5ae4c7,'globalConfig':_0x16074b,'projectConfig':_0x38294c};}const INHERIT_WHITELIST=[a215_0x36861c(0xbb),a215_0x36861c(0xae),a215_0x36861c(0xa9),'format',a215_0x36861c(0xad),'pageSize'];export function mergeRawConfigLayers(_0x502bb0){const _0x5650f1=a215_0x36861c,{globalConfig:_0x9088b9,projectConfig:_0x2851b1}=_0x502bb0,_0x5874e7=Object[_0x5650f1(0xa4)](_0x2851b1)[_0x5650f1(0xb6)]>0x0;if(!_0x5874e7)return mergeGlobalOnly(_0x9088b9);if(_0x2851b1[_0x5650f1(0x90)]===!![])return mergeFullInherit(_0x9088b9,_0x2851b1);if(_0x2851b1['inherit']===![])return mergeIsolated(_0x2851b1);return mergeProjectFirst(_0x9088b9,_0x2851b1);}function mergeGlobalOnly(_0x45987f){const _0x5cfe1d=a215_0x36861c,_0x7466b0={..._0x45987f},_0x19b5fd=_0x45987f[_0x5cfe1d(0xab)]&&typeof _0x45987f[_0x5cfe1d(0xab)]==='object'?_0x45987f['apps']:{};if(Object[_0x5cfe1d(0xa4)](_0x19b5fd)[_0x5cfe1d(0xb6)]>0x0)_0x7466b0[_0x5cfe1d(0xab)]=_0x19b5fd;if(_0x45987f[_0x5cfe1d(0x8c)])_0x7466b0[_0x5cfe1d(0x8c)]=_0x45987f[_0x5cfe1d(0x8c)];else{const _0x5ce258=Object[_0x5cfe1d(0xa4)](_0x19b5fd);if(_0x5ce258['length']>0x0)_0x7466b0[_0x5cfe1d(0x8c)]=_0x5ce258[0x0];}return _0x7466b0;}function mergeIsolated(_0x446858){const _0x483459=a215_0x36861c,_0x3b627d={..._0x446858};delete _0x3b627d[_0x483459(0x90)];const _0x2a8a80=_0x446858['apps']&&typeof _0x446858['apps']===_0x483459(0xb4)?_0x446858[_0x483459(0xab)]:{};Object[_0x483459(0xa4)](_0x2a8a80)[_0x483459(0xb6)]>0x0?_0x3b627d[_0x483459(0xab)]=_0x2a8a80:delete _0x3b627d[_0x483459(0xab)];if(_0x483459(0x8c)in _0x446858)_0x3b627d[_0x483459(0x8c)]=_0x446858[_0x483459(0x8c)];else Object[_0x483459(0xa4)](_0x2a8a80)[_0x483459(0xb6)]>0x0?_0x3b627d[_0x483459(0x8c)]=Object['keys'](_0x2a8a80)[0x0]:delete _0x3b627d[_0x483459(0x8c)];return _0x3b627d;}function mergeProjectFirst(_0x2e34fd,_0x21b233){const _0x207e35=a215_0x36861c,_0x7eddee={..._0x21b233};delete _0x7eddee[_0x207e35(0x90)];for(const _0x568159 of INHERIT_WHITELIST){!(_0x568159 in _0x7eddee)&&_0x568159 in _0x2e34fd&&(_0x7eddee[_0x568159]=_0x2e34fd[_0x568159]);}const _0x3cb46e=_0x21b233[_0x207e35(0xab)]&&typeof _0x21b233[_0x207e35(0xab)]===_0x207e35(0xb4)?_0x21b233['apps']:{};Object['keys'](_0x3cb46e)[_0x207e35(0xb6)]>0x0?_0x7eddee['apps']=_0x3cb46e:delete _0x7eddee['apps'];if(_0x207e35(0x8c)in _0x21b233)_0x7eddee[_0x207e35(0x8c)]=_0x21b233[_0x207e35(0x8c)];else Object[_0x207e35(0xa4)](_0x3cb46e)[_0x207e35(0xb6)]>0x0?_0x7eddee[_0x207e35(0x8c)]=Object[_0x207e35(0xa4)](_0x3cb46e)[0x0]:delete _0x7eddee['defaultApp'];return _0x7eddee;}function mergeFullInherit(_0x585208,_0x423c5c){const _0x1713d6=a215_0x36861c,_0x2e7203=_0x585208[_0x1713d6(0xab)]&&typeof _0x585208[_0x1713d6(0xab)]===_0x1713d6(0xb4)?_0x585208[_0x1713d6(0xab)]:{},_0x5db877=_0x423c5c[_0x1713d6(0xab)]&&typeof _0x423c5c[_0x1713d6(0xab)]===_0x1713d6(0xb4)?_0x423c5c[_0x1713d6(0xab)]:{},_0xe29a51={..._0x2e7203,..._0x5db877},_0x9a9fed={..._0x585208,..._0x423c5c};delete _0x9a9fed[_0x1713d6(0x90)];if(Object[_0x1713d6(0xa4)](_0xe29a51)[_0x1713d6(0xb6)]>0x0)_0x9a9fed[_0x1713d6(0xab)]=_0xe29a51;if(_0x1713d6(0x8c)in _0x423c5c)_0x9a9fed[_0x1713d6(0x8c)]=_0x423c5c['defaultApp'];else{if(Object[_0x1713d6(0xa4)](_0x5db877)[_0x1713d6(0xb6)]>0x0)_0x9a9fed[_0x1713d6(0x8c)]=Object[_0x1713d6(0xa4)](_0x5db877)[0x0];else{if(_0x585208['defaultApp'])_0x9a9fed['defaultApp']=_0x585208['defaultApp'];else{const _0x1200dc=Object['keys'](_0x2e7203);if(_0x1200dc[_0x1713d6(0xb6)]>0x0)_0x9a9fed[_0x1713d6(0x8c)]=_0x1200dc[0x0];}}}return _0x9a9fed;}export function readRawConfigWithLayers(_0x366088){const _0x55939c=loadRawConfigLayers(_0x366088);return{'config':mergeRawConfigLayers(_0x55939c),'layers':_0x55939c};}export function readRawConfig(_0x3e2ba0){return mergeRawConfigLayers(loadRawConfigLayers(_0x3e2ba0));}export function readConfigFile(_0x1b95e8){const _0x3e7dcf=a215_0x36861c;return parseAndNormalizeConfig(_0x1b95e8,_0x3e7dcf(0x89));}export function writeConfigFile(_0x1ff9d8,_0x5773eb){const _0x390a43=a215_0x36861c,_0x50905a=dirname(_0x1ff9d8);!existsSync(_0x50905a)&&mkdirSync(_0x50905a,{'recursive':!![]});const _0x5c25aa=_0x1ff9d8+_0x390a43(0x96);try{writeFileSync(_0x5c25aa,JSON['stringify'](_0x5773eb,null,0x2)+'\x0a',{'encoding':_0x390a43(0xa5),'mode':0x180}),renameSync(_0x5c25aa,_0x1ff9d8);}catch(_0x1374ff){try{unlinkSync(_0x5c25aa);}catch{}throw _0x1374ff;}}export function resolveWriteConfigPath(_0x55baa4){const _0x22bce8=a215_0x36861c,_0x54adbb=_0x55baa4===_0x22bce8(0xaf)?process[_0x22bce8(0x92)]():homedir(),_0x24e8c1=resolveConfigPath(_0x54adbb);return _0x24e8c1??resolve(_0x54adbb,NEW_CONFIG_NAME);}
package/lib/context.d.ts CHANGED
@@ -24,7 +24,7 @@ export interface CLIConfig {
24
24
  pageSize: number | undefined;
25
25
  /**
26
26
  * 允许执行的最高风险等级,超出则拒绝执行。
27
- * read < write < high-risk-write(无显式顶层授权时默认 read)
27
+ * read < write < high-risk-write(默认 high-risk-write,即不限制)
28
28
  */
29
29
  riskLevel: Risk;
30
30
  /**
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- (function(_0xf42588,_0x21fce7){const _0x22fc22=a206_0x5036,_0x39e6ee=_0xf42588();while(!![]){try{const _0x4c3fb5=parseInt(_0x22fc22(0xdb))/0x1*(-parseInt(_0x22fc22(0xba))/0x2)+parseInt(_0x22fc22(0xc7))/0x3+-parseInt(_0x22fc22(0xbb))/0x4*(-parseInt(_0x22fc22(0xc3))/0x5)+parseInt(_0x22fc22(0xdc))/0x6+-parseInt(_0x22fc22(0xbf))/0x7*(parseInt(_0x22fc22(0xc8))/0x8)+-parseInt(_0x22fc22(0xdf))/0x9+parseInt(_0x22fc22(0xd0))/0xa*(-parseInt(_0x22fc22(0xd6))/0xb);if(_0x4c3fb5===_0x21fce7)break;else _0x39e6ee['push'](_0x39e6ee['shift']());}catch(_0x40399d){_0x39e6ee['push'](_0x39e6ee['shift']());}}}(a206_0x5d2f,0x80a19));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x575eea){return process.env[`RABETBASE_${_0x575eea}`]||process.env[`LOVRABET_${_0x575eea}`]||undefined;}function optionalString(_0x3fab71){const _0x35111a=a206_0x5036;return typeof _0x3fab71===_0x35111a(0xc6)&&_0x3fab71[_0x35111a(0xc0)]()?_0x3fab71['trim']():undefined;}export async function createContext(_0x100b83){const _0x4cc707=a206_0x5036,{config:_0x25dfbc,layers:_0x34ef9b}=readRawConfigWithLayers(),_0x4aef48=buildConfig(_0x25dfbc,_0x100b83,_0x34ef9b);await initGlobalEnvironment(_0x4aef48);const {getUserDomain:_0xdaf11a,getApiDomain:_0x56c673}=await import('./constant/domain.js'),_0x96df08={'apiDomain':_0x56c673(),'userDomain':_0xdaf11a()},_0x3270c7=await buildAuth(_0x4aef48);logger[_0x4cc707(0xbe)](process['cwd']());const _0x34601e=(CLI_BIN_NAME+'\x20'+process[_0x4cc707(0xc1)][_0x4cc707(0xbc)](0x2)['join']('\x20'))[_0x4cc707(0xc0)]();logger[_0x4cc707(0xc4)](_0x34601e);const {isNonInteractive:_0x2917e3}=await import(_0x4cc707(0xe2)),_0x210390=_0x2917e3(_0x100b83);return{'config':_0x4aef48,'auth':_0x3270c7,'logger':logger,'env':_0x96df08,'nonInteractive':_0x210390};}export function buildConfigFromFlags(_0x29e6ca){const {config:_0x4e2038,layers:_0x1a6b5c}=readRawConfigWithLayers();return buildConfig(_0x4e2038,_0x29e6ca,_0x1a6b5c);}export async function initGlobalEnvironment(_0x41c741){const _0x15ceaf=a206_0x5036,{initEnv:_0x23ba6e}=await import(_0x15ceaf(0xcd));_0x23ba6e(_0x41c741['env']);const {initDomains:_0x3e6840}=await import('./constant/domain.js');_0x3e6840({'apiDomain':optionalString(_0x41c741[_0x15ceaf(0xda)]?.['apiDomain']),'userDomain':optionalString(_0x41c741[_0x15ceaf(0xda)]?.[_0x15ceaf(0xe3)]),'runtimeDomain':optionalString(_0x41c741['raw']?.['runtimeDomain'])});}export function getConfigAppCode(_0x52822f){const _0x23ee24=a206_0x5036,_0xf10936=readRawConfig(_0x52822f);if(_0xf10936['apps']&&typeof _0xf10936[_0x23ee24(0xe0)]==='object'){const _0x5d5d63=_0xf10936[_0x23ee24(0xe1)];if(_0x5d5d63&&_0xf10936[_0x23ee24(0xe0)][_0x5d5d63]?.[_0x23ee24(0xdd)])return String(_0xf10936['apps'][_0x5d5d63][_0x23ee24(0xdd)])['trim']();const _0x458b86=Object[_0x23ee24(0xd9)](_0xf10936[_0x23ee24(0xe0)])[0x0];if(_0x458b86?.[_0x23ee24(0xdd)])return String(_0x458b86[_0x23ee24(0xdd)])[_0x23ee24(0xc0)]();}const _0x593bc1=_0xf10936['appcode']||_0xf10936[_0x23ee24(0xc9)];if(typeof _0x593bc1!==_0x23ee24(0xc6)||_0x593bc1[_0x23ee24(0xc0)]()==='')return undefined;return _0x593bc1[_0x23ee24(0xc0)]();}export function getMultiAppConfigs(_0x284fec='project',_0x11ea0f){const _0x40d854=a206_0x5036,_0x26b72f=loadRawConfigLayers(_0x11ea0f);let _0x3e50d8,_0x548d51;if(_0x284fec===_0x40d854(0xc5)){const _0x538821=_0x26b72f[_0x40d854(0xd8)][_0x40d854(0xe0)]&&typeof _0x26b72f[_0x40d854(0xd8)][_0x40d854(0xe0)]===_0x40d854(0xd3)?_0x26b72f[_0x40d854(0xd8)]['apps']:{},_0x2ecd5f=_0x26b72f[_0x40d854(0xca)][_0x40d854(0xe0)]&&typeof _0x26b72f[_0x40d854(0xca)][_0x40d854(0xe0)]===_0x40d854(0xd3)?_0x26b72f[_0x40d854(0xca)]['apps']:{};_0x3e50d8={..._0x538821,..._0x2ecd5f};const _0x1ec6fb=readRawConfig(_0x11ea0f);_0x548d51=_0x1ec6fb[_0x40d854(0xe1)];}else _0x3e50d8=_0x26b72f[_0x40d854(0xca)]['apps'],_0x548d51=_0x26b72f[_0x40d854(0xca)][_0x40d854(0xe1)];if(!_0x3e50d8||typeof _0x3e50d8!==_0x40d854(0xd3)||Object[_0x40d854(0xcb)](_0x3e50d8)[_0x40d854(0xd1)]===0x0)return null;return Object[_0x40d854(0xd4)](_0x3e50d8)[_0x40d854(0xd2)](([_0x375476,_0x370975])=>({'name':_0x375476,'appcode':_0x370975?.[_0x40d854(0xdd)]||'','isDefault':_0x375476===_0x548d51,'env':_0x370975?.[_0x40d854(0xc2)],'apiDir':_0x370975?.['apiDir'],'cookie':_0x370975?.[_0x40d854(0xce)]||undefined}))['filter'](_0x42bb96=>_0x42bb96['appcode']);}function a206_0x5d2f(){const _0x178a9b=['raw','73WKCrMR','5446464sKhShB','appcode','template_base_url','6587919BQRzwF','apps','defaultApp','./utils/is-non-interactive.js','userDomain','19786SfUuBa','4AmYAuM','slice','cwd','setLogPath','7SOTSRU','trim','argv','env','4894780vyhutW','setRawCommand','merged','string','1789512zJvNxt','2372728SFxsTE','app','projectConfig','keys','-api.ts','./constant/env.js','cookie','https://g.lovrabet.com/dist/lovrabet-skill','900YTcWOY','length','map','object','entries','replace','25124dVNzQP','apiDir','globalConfig','values'];a206_0x5d2f=function(){return _0x178a9b;};return a206_0x5d2f();}export function getTemplateBaseUrl(_0x372f9b){const _0x2f93c4=a206_0x5036,_0x5e1d9b=readRawConfig(_0x372f9b);if(_0x5e1d9b[_0x2f93c4(0xde)]&&typeof _0x5e1d9b[_0x2f93c4(0xde)]===_0x2f93c4(0xc6))return _0x5e1d9b[_0x2f93c4(0xde)][_0x2f93c4(0xd5)](/\/$/,'');return _0x2f93c4(0xcf);}function buildConfig(_0x4ee4e7,_0x31ff5c,_0x2db239){return{...resolveAppConfig({'raw':_0x4ee4e7,'flags':_0x31ff5c,'layers':_0x2db239,'readEnv':env}),'raw':_0x4ee4e7};}function a206_0x5036(_0x38698a,_0x3f67c2){_0x38698a=_0x38698a-0xba;const _0x5d2f3f=a206_0x5d2f();let _0x503683=_0x5d2f3f[_0x38698a];return _0x503683;}export function resolveApiFilePath(_0x3b8606,_0x310130){const _0x411077=a206_0x5036,_0x13546e=resolve(process[_0x411077(0xbd)](),_0x3b8606),_0x51e071=resolve(_0x13546e,'api.ts');if(!_0x310130)return _0x51e071;const _0x370668=readRawConfig(),_0x2bda53=_0x370668['apps']&&typeof _0x370668[_0x411077(0xe0)]===_0x411077(0xd3)?_0x370668[_0x411077(0xe0)]:{},_0x5a2ea7=Object[_0x411077(0xd4)](_0x2bda53)['find'](([,_0x54d9db])=>_0x54d9db?.[_0x411077(0xdd)]===_0x310130);if(!_0x5a2ea7)return _0x51e071;const [_0x5bf382,_0x4544f5]=_0x5a2ea7,_0x172d32=typeof _0x370668[_0x411077(0xe1)]===_0x411077(0xc6)?_0x370668[_0x411077(0xe1)]:undefined;if(_0x4544f5?.[_0x411077(0xd7)])return _0x51e071;if(_0x172d32&&_0x5bf382!==_0x172d32)return resolve(_0x13546e,_0x5bf382+_0x411077(0xcc));return _0x51e071;}
1
+ (function(_0x1db57e,_0x4eb9da){const _0x172077=a216_0x391e,_0x4bdb9b=_0x1db57e();while(!![]){try{const _0x2b16e3=parseInt(_0x172077(0x1c2))/0x1*(-parseInt(_0x172077(0x1bd))/0x2)+-parseInt(_0x172077(0x1b9))/0x3*(parseInt(_0x172077(0x1b7))/0x4)+parseInt(_0x172077(0x1be))/0x5+-parseInt(_0x172077(0x1ac))/0x6*(parseInt(_0x172077(0x1af))/0x7)+-parseInt(_0x172077(0x1b2))/0x8+-parseInt(_0x172077(0x1d5))/0x9+parseInt(_0x172077(0x1c4))/0xa*(parseInt(_0x172077(0x1c3))/0xb);if(_0x2b16e3===_0x4eb9da)break;else _0x4bdb9b['push'](_0x4bdb9b['shift']());}catch(_0x4f74d5){_0x4bdb9b['push'](_0x4bdb9b['shift']());}}}(a216_0x2893,0x3f473));import{resolve}from'node:path';import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';function a216_0x391e(_0x2a16c7,_0x336224){_0x2a16c7=_0x2a16c7-0x1ac;const _0x28931b=a216_0x2893();let _0x391e0a=_0x28931b[_0x2a16c7];return _0x391e0a;}function a216_0x2893(){const _0x36512b=['appcode','setRawCommand','cookie','api.ts','trim','./utils/is-non-interactive.js','2090664jsrtSi','template_base_url','./constant/env.js','22416pzgdHS','userDomain','values','301BBGMDe','entries','raw','378752LPaNHF','./constant/domain.js','slice','apiDir','cwd','5732UofADk','projectConfig','786HRhSZy','env','https://g.lovrabet.com/dist/lovrabet-skill','string','141938ucHQtr','1529335JZKULe','-api.ts','replace','object','3nxIVeM','11AtCRaC','9819610odpVHR','setLogPath','join','map','globalConfig','length','defaultApp','argv','apps','filter','apiDomain'];a216_0x2893=function(){return _0x36512b;};return a216_0x2893();}import{logger}from'./utils/logger.js';export{CONFIG_NAMES,LEGACY_CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x3d4716){return process.env[`RABETBASE_${_0x3d4716}`]||process.env[`LOVRABET_${_0x3d4716}`]||undefined;}function optionalString(_0x5765c3){const _0x313645=a216_0x391e;return typeof _0x5765c3===_0x313645(0x1bc)&&_0x5765c3[_0x313645(0x1d3)]()?_0x5765c3['trim']():undefined;}export async function createContext(_0xb47a3d){const _0x271c9c=a216_0x391e,{config:_0x5de22a,layers:_0x311737}=readRawConfigWithLayers(),_0xe0a350=buildConfig(_0x5de22a,_0xb47a3d,_0x311737);await initGlobalEnvironment(_0xe0a350);const {getUserDomain:_0x41df77,getApiDomain:_0x9a62fa}=await import('./constant/domain.js'),_0x5215fb={'apiDomain':_0x9a62fa(),'userDomain':_0x41df77()},_0x202005=await buildAuth(_0xe0a350);logger[_0x271c9c(0x1c5)](process[_0x271c9c(0x1b6)]());const _0x190117=(CLI_BIN_NAME+'\x20'+process[_0x271c9c(0x1cb)][_0x271c9c(0x1b4)](0x2)[_0x271c9c(0x1c6)]('\x20'))[_0x271c9c(0x1d3)]();logger[_0x271c9c(0x1d0)](_0x190117);const {isNonInteractive:_0x2c6b11}=await import(_0x271c9c(0x1d4)),_0x25be95=_0x2c6b11(_0xb47a3d);return{'config':_0xe0a350,'auth':_0x202005,'logger':logger,'env':_0x5215fb,'nonInteractive':_0x25be95};}export function buildConfigFromFlags(_0x49a919){const {config:_0x375112,layers:_0x398bc9}=readRawConfigWithLayers();return buildConfig(_0x375112,_0x49a919,_0x398bc9);}export async function initGlobalEnvironment(_0x3e98e8){const _0x3f6374=a216_0x391e,{initEnv:_0x29341f}=await import(_0x3f6374(0x1d7));_0x29341f(_0x3e98e8[_0x3f6374(0x1ba)]);const {initDomains:_0x36e43d}=await import(_0x3f6374(0x1b3));_0x36e43d({'apiDomain':optionalString(_0x3e98e8[_0x3f6374(0x1b1)]?.[_0x3f6374(0x1ce)]),'userDomain':optionalString(_0x3e98e8[_0x3f6374(0x1b1)]?.[_0x3f6374(0x1ad)]),'runtimeDomain':optionalString(_0x3e98e8[_0x3f6374(0x1b1)]?.['runtimeDomain'])});}export function getConfigAppCode(_0x16fa95){const _0xd188cf=a216_0x391e,_0x27f6d5=readRawConfig(_0x16fa95);if(_0x27f6d5[_0xd188cf(0x1cc)]&&typeof _0x27f6d5[_0xd188cf(0x1cc)]===_0xd188cf(0x1c1)){const _0x42c61f=_0x27f6d5['defaultApp'];if(_0x42c61f&&_0x27f6d5[_0xd188cf(0x1cc)][_0x42c61f]?.[_0xd188cf(0x1cf)])return String(_0x27f6d5[_0xd188cf(0x1cc)][_0x42c61f]['appcode'])['trim']();const _0x57c3f4=Object[_0xd188cf(0x1ae)](_0x27f6d5[_0xd188cf(0x1cc)])[0x0];if(_0x57c3f4?.[_0xd188cf(0x1cf)])return String(_0x57c3f4[_0xd188cf(0x1cf)])[_0xd188cf(0x1d3)]();}const _0x4af3aa=_0x27f6d5[_0xd188cf(0x1cf)]||_0x27f6d5['app'];if(typeof _0x4af3aa!==_0xd188cf(0x1bc)||_0x4af3aa[_0xd188cf(0x1d3)]()==='')return undefined;return _0x4af3aa[_0xd188cf(0x1d3)]();}export function getMultiAppConfigs(_0x468096='project',_0x16ff9e){const _0x12e08e=a216_0x391e,_0x2758c2=loadRawConfigLayers(_0x16ff9e);let _0x32ef19,_0x2fbe38;if(_0x468096==='merged'){const _0x11ff17=_0x2758c2[_0x12e08e(0x1c8)]['apps']&&typeof _0x2758c2[_0x12e08e(0x1c8)][_0x12e08e(0x1cc)]==='object'?_0x2758c2['globalConfig'][_0x12e08e(0x1cc)]:{},_0x7af6f9=_0x2758c2[_0x12e08e(0x1b8)]['apps']&&typeof _0x2758c2['projectConfig'][_0x12e08e(0x1cc)]===_0x12e08e(0x1c1)?_0x2758c2[_0x12e08e(0x1b8)][_0x12e08e(0x1cc)]:{};_0x32ef19={..._0x11ff17,..._0x7af6f9};const _0x3c3504=readRawConfig(_0x16ff9e);_0x2fbe38=_0x3c3504['defaultApp'];}else _0x32ef19=_0x2758c2[_0x12e08e(0x1b8)][_0x12e08e(0x1cc)],_0x2fbe38=_0x2758c2['projectConfig'][_0x12e08e(0x1ca)];if(!_0x32ef19||typeof _0x32ef19!==_0x12e08e(0x1c1)||Object['keys'](_0x32ef19)[_0x12e08e(0x1c9)]===0x0)return null;return Object[_0x12e08e(0x1b0)](_0x32ef19)[_0x12e08e(0x1c7)](([_0x351fd2,_0x99127f])=>({'name':_0x351fd2,'appcode':_0x99127f?.[_0x12e08e(0x1cf)]||'','isDefault':_0x351fd2===_0x2fbe38,'env':_0x99127f?.[_0x12e08e(0x1ba)],'apiDir':_0x99127f?.['apiDir'],'cookie':_0x99127f?.[_0x12e08e(0x1d1)]||undefined}))[_0x12e08e(0x1cd)](_0x2e904f=>_0x2e904f[_0x12e08e(0x1cf)]);}export function getTemplateBaseUrl(_0x4306fe){const _0x3cfc6e=a216_0x391e,_0x2c42d2=readRawConfig(_0x4306fe);if(_0x2c42d2[_0x3cfc6e(0x1d6)]&&typeof _0x2c42d2[_0x3cfc6e(0x1d6)]==='string')return _0x2c42d2[_0x3cfc6e(0x1d6)][_0x3cfc6e(0x1c0)](/\/$/,'');return _0x3cfc6e(0x1bb);}function buildConfig(_0x2a39d3,_0xd2cfbe,_0xcd53c5){return{...resolveAppConfig({'raw':_0x2a39d3,'flags':_0xd2cfbe,'layers':_0xcd53c5,'readEnv':env}),'raw':_0x2a39d3};}export function resolveApiFilePath(_0x4e39b3,_0x11f5cf){const _0x4e9068=a216_0x391e,_0x176817=resolve(process[_0x4e9068(0x1b6)](),_0x4e39b3),_0xc70233=resolve(_0x176817,_0x4e9068(0x1d2));if(!_0x11f5cf)return _0xc70233;const _0x3fc25e=readRawConfig(),_0x7ced2f=_0x3fc25e['apps']&&typeof _0x3fc25e['apps']===_0x4e9068(0x1c1)?_0x3fc25e['apps']:{},_0x502949=Object[_0x4e9068(0x1b0)](_0x7ced2f)['find'](([,_0x81edf2])=>_0x81edf2?.[_0x4e9068(0x1cf)]===_0x11f5cf);if(!_0x502949)return _0xc70233;const [_0x421d79,_0x43be2e]=_0x502949,_0x47789d=typeof _0x3fc25e[_0x4e9068(0x1ca)]===_0x4e9068(0x1bc)?_0x3fc25e[_0x4e9068(0x1ca)]:undefined;if(_0x43be2e?.[_0x4e9068(0x1b5)])return _0xc70233;if(_0x47789d&&_0x421d79!==_0x47789d)return resolve(_0x176817,_0x421d79+_0x4e9068(0x1bf));return _0xc70233;}
@@ -1 +1 @@
1
- (function(_0x24bf44,_0x59a197){const _0x3aedfd=a207_0x3ec7,_0x20b48e=_0x24bf44();while(!![]){try{const _0x276bf2=-parseInt(_0x3aedfd(0xa5))/0x1+-parseInt(_0x3aedfd(0xaf))/0x2*(-parseInt(_0x3aedfd(0xac))/0x3)+-parseInt(_0x3aedfd(0xb3))/0x4+-parseInt(_0x3aedfd(0xad))/0x5+-parseInt(_0x3aedfd(0xa9))/0x6+-parseInt(_0x3aedfd(0xb0))/0x7*(-parseInt(_0x3aedfd(0xa7))/0x8)+parseInt(_0x3aedfd(0xa4))/0x9;if(_0x276bf2===_0x59a197)break;else _0x20b48e['push'](_0x20b48e['shift']());}catch(_0x83e7d4){_0x20b48e['push'](_0x20b48e['shift']());}}}(a207_0x5093,0x2a75c));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';const cache=new Map();function parseApiFile(_0x26e700){const _0x44a672=a207_0x3ec7,_0x499d28=[],_0x23d8f5=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x6c373e;while((_0x6c373e=_0x23d8f5['exec'](_0x26e700))!==null){_0x499d28[_0x44a672(0xab)]({'datasetCode':_0x6c373e[0x1],'tableName':_0x6c373e[0x2],'name':_0x6c373e[0x3],'alias':_0x6c373e[0x4]});}return _0x499d28;}function a207_0x3ec7(_0x1ec3ba,_0xbc36d8){_0x1ec3ba=_0x1ec3ba-0xa3;const _0x509343=a207_0x5093();let _0x3ec701=_0x509343[_0x1ec3ba];return _0x3ec701;}export function loadAliasMap(_0x429308,_0x557c9f,_0x2dac39){const _0x481c13=a207_0x3ec7,_0x5a20af=_0x2dac39??resolve(process['cwd'](),_0x429308,_0x481c13(0xb2));if(cache[_0x481c13(0xaa)](_0x5a20af))return cache[_0x481c13(0xa6)](_0x5a20af);if(!existsSync(_0x5a20af))return cache[_0x481c13(0xa3)](_0x5a20af,[]),[];try{const _0x120306=readFileSync(_0x5a20af,_0x481c13(0xb1)),_0xee9760=parseApiFile(_0x120306);return cache[_0x481c13(0xa3)](_0x5a20af,_0xee9760),_0xee9760;}catch{return cache[_0x481c13(0xa3)](_0x5a20af,[]),[];}}export function resolveAlias(_0x20958a,_0x4097c6,_0x248202,_0x7f5ae7){const _0x291406=a207_0x3ec7;if(!_0x4097c6)return undefined;const _0x8bcead=loadAliasMap(_0x20958a,_0x248202,_0x7f5ae7),_0x5bba0a=_0x8bcead[_0x291406(0xae)](_0x5d2d4a=>_0x5d2d4a['alias']===_0x4097c6);return _0x5bba0a?.[_0x291406(0xa8)];}function a207_0x5093(){const _0x1d0e2f=['8RmaztP','5803XJvRwm','utf-8','api.ts','1107280wDWuCT','set','5054697pxvMwF','347792yaIxDR','get','872Kjvgok','datasetCode','85776lVupzF','has','push','134598shPapt','93170njqMWZ','find'];a207_0x5093=function(){return _0x1d0e2f;};return a207_0x5093();}export function listAliases(_0xd68588,_0x2578e5,_0x3a5013){return loadAliasMap(_0xd68588,_0x2578e5,_0x3a5013);}
1
+ (function(_0x3f9b64,_0x170e69){const _0x6ab85e=a217_0x3d78,_0x32f010=_0x3f9b64();while(!![]){try{const _0xb67d4a=-parseInt(_0x6ab85e(0x70))/0x1+parseInt(_0x6ab85e(0x74))/0x2+parseInt(_0x6ab85e(0x67))/0x3+-parseInt(_0x6ab85e(0x68))/0x4+parseInt(_0x6ab85e(0x6c))/0x5*(-parseInt(_0x6ab85e(0x71))/0x6)+-parseInt(_0x6ab85e(0x76))/0x7*(parseInt(_0x6ab85e(0x6a))/0x8)+parseInt(_0x6ab85e(0x73))/0x9*(parseInt(_0x6ab85e(0x6d))/0xa);if(_0xb67d4a===_0x170e69)break;else _0x32f010['push'](_0x32f010['shift']());}catch(_0x113d07){_0x32f010['push'](_0x32f010['shift']());}}}(a217_0x41d2,0x658bc));import{readFileSync,existsSync}from'node:fs';import{resolve}from'node:path';function a217_0x41d2(){const _0x1fe5f9=['6142048EQoaxn','find','1176985JfVyhR','40AHdfXk','set','has','26451TvmFyB','6EDmWBE','utf-8','2528118YrNzIr','1125548WtRdoU','alias','7jkUPCm','get','push','datasetCode','582609jNpqLV','1740196XlnVjp','api.ts'];a217_0x41d2=function(){return _0x1fe5f9;};return a217_0x41d2();}const cache=new Map();function parseApiFile(_0x323ae6){const _0x5b4fa7=a217_0x3d78,_0x1c9066=[],_0x1525c6=/\{\s*datasetCode:\s*"([^"]+)"\s*,\s*tableName:\s*"([^"]+)"\s*,\s*name:\s*"([^"]*?)"\s*,\s*alias:\s*"([^"]+)"\s*,?\s*\}/g;let _0x3c9d11;while((_0x3c9d11=_0x1525c6['exec'](_0x323ae6))!==null){_0x1c9066[_0x5b4fa7(0x78)]({'datasetCode':_0x3c9d11[0x1],'tableName':_0x3c9d11[0x2],'name':_0x3c9d11[0x3],'alias':_0x3c9d11[0x4]});}return _0x1c9066;}export function loadAliasMap(_0x544ed4,_0x4461c8,_0x23d976){const _0x32f0c9=a217_0x3d78,_0x1fcfb7=_0x23d976??resolve(process['cwd'](),_0x544ed4,_0x32f0c9(0x69));if(cache[_0x32f0c9(0x6f)](_0x1fcfb7))return cache[_0x32f0c9(0x77)](_0x1fcfb7);if(!existsSync(_0x1fcfb7))return cache[_0x32f0c9(0x6e)](_0x1fcfb7,[]),[];try{const _0x33078e=readFileSync(_0x1fcfb7,_0x32f0c9(0x72)),_0x13c1e9=parseApiFile(_0x33078e);return cache['set'](_0x1fcfb7,_0x13c1e9),_0x13c1e9;}catch{return cache[_0x32f0c9(0x6e)](_0x1fcfb7,[]),[];}}function a217_0x3d78(_0x40bdf6,_0x12f20f){_0x40bdf6=_0x40bdf6-0x67;const _0x41d262=a217_0x41d2();let _0x3d78da=_0x41d262[_0x40bdf6];return _0x3d78da;}export function resolveAlias(_0x3ebd32,_0x468fe8,_0xa56615,_0x34c25d){const _0x511a17=a217_0x3d78;if(!_0x468fe8)return undefined;const _0x54554b=loadAliasMap(_0x3ebd32,_0xa56615,_0x34c25d),_0xa550f2=_0x54554b[_0x511a17(0x6b)](_0x4d546c=>_0x4d546c[_0x511a17(0x75)]===_0x468fe8);return _0xa550f2?.[_0x511a17(0x79)];}export function listAliases(_0x21bbb3,_0x296b4b,_0x3821f4){return loadAliasMap(_0x21bbb3,_0x296b4b,_0x3821f4);}