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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +4 -3
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/api-group.js +1 -1
  4. package/lib/api/fetch-model-list.js +1 -1
  5. package/lib/api/generate-api-file.js +1 -1
  6. package/lib/api/generate-sdk-config-file.js +1 -1
  7. package/lib/api/legacy-api-file.js +1 -1
  8. package/lib/api/model-registry-file.js +1 -1
  9. package/lib/api/model-registry-scaffold.js +1 -1
  10. package/lib/api/model-source.js +1 -1
  11. package/lib/auth/auth-server-ui.js +1 -1
  12. package/lib/auth/auth-server.js +1 -1
  13. package/lib/auth/constant.js +1 -1
  14. package/lib/auth/get-cookie.js +1 -1
  15. package/lib/auth/get-session-user.js +1 -1
  16. package/lib/auth/is-session-valid.js +1 -1
  17. package/lib/auth/login-success-html.js +1 -1
  18. package/lib/auth/logout.js +1 -1
  19. package/lib/cli-flags.js +1 -1
  20. package/lib/cli.js +1 -1
  21. package/lib/commands/api/generate.js +1 -1
  22. package/lib/commands/api/index.js +1 -1
  23. package/lib/commands/api/list.js +1 -1
  24. package/lib/commands/api/pull.js +1 -1
  25. package/lib/commands/api/shared.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.d.ts +1 -1
  63. package/lib/commands/config/init.js +1 -1
  64. package/lib/commands/config/list.js +1 -1
  65. package/lib/commands/config/set.js +1 -1
  66. package/lib/commands/config/shared.js +1 -1
  67. package/lib/commands/dataset/batch-design.js +1 -1
  68. package/lib/commands/dataset/business-group-update.js +1 -1
  69. package/lib/commands/dataset/business-groups.js +1 -1
  70. package/lib/commands/dataset/capability.js +1 -1
  71. package/lib/commands/dataset/cross-relation-create.js +1 -1
  72. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  73. package/lib/commands/dataset/cross-relation-list.js +1 -1
  74. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  75. package/lib/commands/dataset/cross-relation-update.js +1 -1
  76. package/lib/commands/dataset/delete.js +1 -1
  77. package/lib/commands/dataset/detail.js +1 -1
  78. package/lib/commands/dataset/extend-update.js +1 -1
  79. package/lib/commands/dataset/field-restore.js +1 -1
  80. package/lib/commands/dataset/field-update.js +1 -1
  81. package/lib/commands/dataset/generate.js +1 -1
  82. package/lib/commands/dataset/index.js +1 -1
  83. package/lib/commands/dataset/list.js +1 -1
  84. package/lib/commands/dataset/operations.js +1 -1
  85. package/lib/commands/dataset/relation-audit.js +1 -1
  86. package/lib/commands/dataset/relation-create.js +1 -1
  87. package/lib/commands/dataset/relation-delete.js +1 -1
  88. package/lib/commands/dataset/relation-shared.js +1 -1
  89. package/lib/commands/dataset/relation-update.js +1 -1
  90. package/lib/commands/dataset/relations.js +1 -1
  91. package/lib/commands/dataset/rename.js +1 -1
  92. package/lib/commands/dataset/restore.js +1 -1
  93. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  94. package/lib/commands/db/analysis-batching.js +1 -1
  95. package/lib/commands/db/analyze-batch-plan.js +1 -1
  96. package/lib/commands/db/analyze-cancel.js +1 -1
  97. package/lib/commands/db/analyze-start.js +1 -1
  98. package/lib/commands/db/analyze-status.js +1 -1
  99. package/lib/commands/db/create.js +1 -1
  100. package/lib/commands/db/delete.js +1 -1
  101. package/lib/commands/db/detail.js +1 -1
  102. package/lib/commands/db/diff-refresh-start.js +1 -1
  103. package/lib/commands/db/diff-refresh-status.js +1 -1
  104. package/lib/commands/db/diff.js +1 -1
  105. package/lib/commands/db/index.js +1 -1
  106. package/lib/commands/db/list.js +1 -1
  107. package/lib/commands/db/shared.js +1 -1
  108. package/lib/commands/db/table-diff-shared.js +1 -1
  109. package/lib/commands/db/tables.js +1 -1
  110. package/lib/commands/db/test.js +1 -1
  111. package/lib/commands/db/update.js +1 -1
  112. package/lib/commands/deployment/index.js +1 -1
  113. package/lib/commands/deployment/sync-all.js +1 -1
  114. package/lib/commands/deployment/sync-jobs.js +1 -1
  115. package/lib/commands/deployment/sync-status.js +1 -1
  116. package/lib/commands/doctor.js +1 -1
  117. package/lib/commands/file/index.js +1 -1
  118. package/lib/commands/flow/create.js +1 -1
  119. package/lib/commands/flow/detail.js +1 -1
  120. package/lib/commands/flow/index.js +1 -1
  121. package/lib/commands/flow/list.js +1 -1
  122. package/lib/commands/flow/publish.js +1 -1
  123. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  124. package/lib/commands/flow/runtime-role-list.js +1 -1
  125. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  126. package/lib/commands/flow/runtime-user-search.js +1 -1
  127. package/lib/commands/flow/shared.js +1 -1
  128. package/lib/commands/flow/update.js +1 -1
  129. package/lib/commands/flow/validate.js +1 -1
  130. package/lib/commands/instant-api-policy/current.js +1 -1
  131. package/lib/commands/instant-api-policy/index.js +1 -1
  132. package/lib/commands/instant-api-policy/init.js +1 -1
  133. package/lib/commands/instant-api-policy/publish.js +1 -1
  134. package/lib/commands/instant-api-policy/pull.js +1 -1
  135. package/lib/commands/instant-api-policy/revision.js +1 -1
  136. package/lib/commands/instant-api-policy/revisions.js +1 -1
  137. package/lib/commands/instant-api-policy/rollback.js +1 -1
  138. package/lib/commands/instant-api-policy/shared.js +1 -1
  139. package/lib/commands/instant-api-policy/validate.js +1 -1
  140. package/lib/commands/issue/index.js +1 -1
  141. package/lib/commands/issue/nudge.js +1 -1
  142. package/lib/commands/issue/report.js +1 -1
  143. package/lib/commands/issue/shared.js +1 -1
  144. package/lib/commands/kb/create.js +1 -1
  145. package/lib/commands/kb/delete.js +1 -1
  146. package/lib/commands/kb/detail.js +1 -1
  147. package/lib/commands/kb/index.js +1 -1
  148. package/lib/commands/kb/list.js +1 -1
  149. package/lib/commands/kb/search.js +1 -1
  150. package/lib/commands/kb/shared.js +1 -1
  151. package/lib/commands/kb/update.js +1 -1
  152. package/lib/commands/logs/index.js +1 -1
  153. package/lib/commands/menu/asset-update.js +1 -1
  154. package/lib/commands/menu/delete.js +1 -1
  155. package/lib/commands/menu/external-link-create.js +1 -1
  156. package/lib/commands/menu/external-link-update.js +1 -1
  157. package/lib/commands/menu/group-create.js +1 -1
  158. package/lib/commands/menu/group-update.js +1 -1
  159. package/lib/commands/menu/index.js +1 -1
  160. package/lib/commands/menu/list.js +1 -1
  161. package/lib/commands/menu/move.js +1 -1
  162. package/lib/commands/menu/regroup-start.js +1 -1
  163. package/lib/commands/menu/rename.js +1 -1
  164. package/lib/commands/menu/shared/compare-table.js +1 -1
  165. package/lib/commands/menu/shared/delete-plan.js +1 -1
  166. package/lib/commands/menu/shared/facts.js +1 -1
  167. package/lib/commands/menu/shared/index.js +1 -1
  168. package/lib/commands/menu/shared/inquirer.js +1 -1
  169. package/lib/commands/menu/shared/local-pages.js +1 -1
  170. package/lib/commands/menu/shared/logic.js +1 -1
  171. package/lib/commands/menu/shared/mutations.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/sync-core.js +1 -1
  174. package/lib/commands/menu/shared/update-core.js +1 -1
  175. package/lib/commands/menu/shared/valid-url.js +1 -1
  176. package/lib/commands/menu/sync.js +1 -1
  177. package/lib/commands/menu/visibility-update.js +1 -1
  178. package/lib/commands/notification/config-create.js +1 -1
  179. package/lib/commands/notification/config-delete.js +1 -1
  180. package/lib/commands/notification/config-list.js +1 -1
  181. package/lib/commands/notification/config-update.js +1 -1
  182. package/lib/commands/notification/index.js +1 -1
  183. package/lib/commands/notification/shared.js +1 -1
  184. package/lib/commands/ocr/index.js +1 -1
  185. package/lib/commands/page/create.js +1 -1
  186. package/lib/commands/page/custom/detail.js +1 -1
  187. package/lib/commands/page/custom/list.js +1 -1
  188. package/lib/commands/page/custom/publish.js +1 -1
  189. package/lib/commands/page/custom/shared.js +1 -1
  190. package/lib/commands/page/custom/syntax.js +1 -1
  191. package/lib/commands/page/custom/update.js +1 -1
  192. package/lib/commands/page/data-list-status.js +1 -1
  193. package/lib/commands/page/generate-start.js +1 -1
  194. package/lib/commands/page/generate-status.js +1 -1
  195. package/lib/commands/page/index.js +1 -1
  196. package/lib/commands/page/pull.js +1 -1
  197. package/lib/commands/page/push.js +1 -1
  198. package/lib/commands/page/relation-audit.js +1 -1
  199. package/lib/commands/page/restore.js +1 -1
  200. package/lib/commands/page/shared.js +1 -1
  201. package/lib/commands/page/sync.js +1 -1
  202. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  203. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  204. package/lib/commands/project/create/format-elapsed.js +1 -1
  205. package/lib/commands/project/create/main.js +1 -1
  206. package/lib/commands/project/create/materialize-project-template.js +1 -1
  207. package/lib/commands/project/create/project-name.js +1 -1
  208. package/lib/commands/project/create/project-template-archive.js +1 -1
  209. package/lib/commands/project/create/project-template-path.js +1 -1
  210. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  211. package/lib/commands/project/create/use-format-code.js +1 -1
  212. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  213. package/lib/commands/project/domain-routing-sync.js +1 -1
  214. package/lib/commands/project/index.js +1 -1
  215. package/lib/commands/project/upgrade.js +1 -1
  216. package/lib/commands/registry.js +1 -1
  217. package/lib/commands/role/delete.js +1 -1
  218. package/lib/commands/role/detail.js +1 -1
  219. package/lib/commands/role/index.js +1 -1
  220. package/lib/commands/role/list.js +1 -1
  221. package/lib/commands/role/shared.js +1 -1
  222. package/lib/commands/role/update.js +1 -1
  223. package/lib/commands/role/user-add.js +1 -1
  224. package/lib/commands/role/user-remove.js +1 -1
  225. package/lib/commands/role/user-resolve.js +1 -1
  226. package/lib/commands/rule/get.js +1 -1
  227. package/lib/commands/rule/index.js +1 -1
  228. package/lib/commands/rule/list.js +1 -1
  229. package/lib/commands/rule/set.js +1 -1
  230. package/lib/commands/rule/shared.js +1 -1
  231. package/lib/commands/run/index.js +1 -1
  232. package/lib/commands/schema.js +1 -1
  233. package/lib/commands/sql/create.js +1 -1
  234. package/lib/commands/sql/delete.js +1 -1
  235. package/lib/commands/sql/detail.js +1 -1
  236. package/lib/commands/sql/exec.js +1 -1
  237. package/lib/commands/sql/index.js +1 -1
  238. package/lib/commands/sql/list.js +1 -1
  239. package/lib/commands/sql/pull.js +1 -1
  240. package/lib/commands/sql/push.js +1 -1
  241. package/lib/commands/sql/shared.js +1 -1
  242. package/lib/commands/sql/status.js +1 -1
  243. package/lib/commands/sql/validate.js +1 -1
  244. package/lib/commands/task/index.js +1 -1
  245. package/lib/commands/task/status.js +1 -1
  246. package/lib/commands/tenant/index.js +1 -1
  247. package/lib/commands/tenant/members-list.js +1 -1
  248. package/lib/commands/tenant/shared.js +1 -1
  249. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  250. package/lib/commands/user-account/feishu-bind.d.ts +2 -0
  251. package/lib/commands/user-account/feishu-bind.js +1 -0
  252. package/lib/commands/user-account/index.js +1 -1
  253. package/lib/commands/workspace/add.js +1 -1
  254. package/lib/commands/workspace/index.js +1 -1
  255. package/lib/commands/workspace/remove.js +1 -1
  256. package/lib/config/domain-config.d.ts +1 -1
  257. package/lib/config/domain-config.js +1 -1
  258. package/lib/config/project-domain-routing.js +1 -1
  259. package/lib/config/region-config.js +1 -1
  260. package/lib/config/schema.d.ts +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.d.ts +4 -0
  266. package/lib/constant/domain.js +1 -1
  267. package/lib/constant/env.js +1 -1
  268. package/lib/constant/output.js +1 -1
  269. package/lib/constant/paths.js +1 -1
  270. package/lib/constant/region.d.ts +1 -1
  271. package/lib/constant/region.js +1 -1
  272. package/lib/constant/risk.js +1 -1
  273. package/lib/constant/routing-profile.d.ts +14 -1
  274. package/lib/constant/routing-profile.js +1 -1
  275. package/lib/context/app-resolver.d.ts +1 -0
  276. package/lib/context/app-resolver.js +1 -1
  277. package/lib/context/auth-resolver.js +1 -1
  278. package/lib/context/config-loader.js +1 -1
  279. package/lib/context.js +1 -1
  280. package/lib/core/alias-resolver.js +1 -1
  281. package/lib/core/api-client.d.ts +2 -0
  282. package/lib/core/api-client.js +1 -1
  283. package/lib/core/bff/config.js +1 -1
  284. package/lib/core/bff/file-system.js +1 -1
  285. package/lib/core/bff/hash.js +1 -1
  286. package/lib/core/bff/hook-directory.js +1 -1
  287. package/lib/core/bff/lock.js +1 -1
  288. package/lib/core/bff/utils.js +1 -1
  289. package/lib/core/cross-db-relation.js +1 -1
  290. package/lib/core/db-resolver.js +1 -1
  291. package/lib/core/flow-config.js +1 -1
  292. package/lib/core/instant-api-policy/config.js +1 -1
  293. package/lib/core/kb-search-client.js +1 -1
  294. package/lib/core/page/file-system.js +1 -1
  295. package/lib/core/page/hash.js +1 -1
  296. package/lib/core/page/lock.js +1 -1
  297. package/lib/core/page/lr-smart-jsx.js +1 -1
  298. package/lib/core/sql-index-auditor.js +1 -1
  299. package/lib/core/sql-sync/config.js +1 -1
  300. package/lib/core/sql-sync/file-system.js +1 -1
  301. package/lib/core/sql-sync/hash.js +1 -1
  302. package/lib/core/sql-sync/lock.js +1 -1
  303. package/lib/core/sql-sync/utils.js +1 -1
  304. package/lib/core/sql-validator.js +1 -1
  305. package/lib/errors.js +1 -1
  306. package/lib/framework/build-all-flags.js +1 -1
  307. package/lib/framework/error-output.js +1 -1
  308. package/lib/framework/explicit-yes.js +1 -1
  309. package/lib/framework/flags.js +1 -1
  310. package/lib/framework/help.js +1 -1
  311. package/lib/framework/index.js +1 -1
  312. package/lib/framework/output.js +1 -1
  313. package/lib/framework/response.js +1 -1
  314. package/lib/framework/runner-alias.js +1 -1
  315. package/lib/framework/runner.js +1 -1
  316. package/lib/framework/schema-export.js +1 -1
  317. package/lib/framework/supported-flags.js +1 -1
  318. package/lib/framework/types.js +1 -1
  319. package/lib/generated/build-info.d.ts +4 -4
  320. package/lib/generated/build-info.js +1 -1
  321. package/lib/generated/official-routing.d.ts +15 -3
  322. package/lib/generated/official-routing.js +1 -1
  323. package/lib/generated/routing-contract.d.ts +2 -2
  324. package/lib/generated/routing-contract.js +1 -1
  325. package/lib/help.js +1 -1
  326. package/lib/postinstall.js +1 -1
  327. package/lib/runtime/confirmation.js +1 -1
  328. package/lib/runtime/event.js +1 -1
  329. package/lib/runtime/index.js +1 -1
  330. package/lib/runtime/queue.js +1 -1
  331. package/lib/runtime/resolve.js +1 -1
  332. package/lib/skills/builtin-skill.js +1 -1
  333. package/lib/skills/main.js +1 -1
  334. package/lib/skills/npx-skills-add.d.ts +5 -0
  335. package/lib/skills/npx-skills-add.js +1 -1
  336. package/lib/skills/skill-presence.js +1 -1
  337. package/lib/telemetry/cli-command-trace.js +1 -1
  338. package/lib/telemetry/cli-help-trace.js +1 -1
  339. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  340. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  341. package/lib/telemetry/send-cli-trace-log.js +1 -1
  342. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  343. package/lib/utils/ai_config.js +1 -1
  344. package/lib/utils/apply-jq-filter.js +1 -1
  345. package/lib/utils/cdn-config.js +1 -1
  346. package/lib/utils/check-sdk-version.js +1 -1
  347. package/lib/utils/cli-version-check.js +1 -1
  348. package/lib/utils/cli-version-policy.js +1 -1
  349. package/lib/utils/config.js +1 -1
  350. package/lib/utils/entity-with-id.js +1 -1
  351. package/lib/utils/file-utils.js +1 -1
  352. package/lib/utils/guides-cdn.js +1 -1
  353. package/lib/utils/http-client.js +1 -1
  354. package/lib/utils/is-non-interactive.js +1 -1
  355. package/lib/utils/logger.js +1 -1
  356. package/lib/utils/params.js +1 -1
  357. package/lib/utils/platform.js +1 -1
  358. package/lib/utils/sleep.js +1 -1
  359. package/lib/utils/template-replacer.js +1 -1
  360. package/lib/utils/update-notice.js +1 -1
  361. package/lib/utils/version.js +1 -1
  362. package/lib/utils/with-active-cookie.js +1 -1
  363. package/lib/utils/write-cli-side-channel.js +1 -1
  364. package/package.json +1 -1
  365. package/skills/rabetbase/SKILL.md +4 -3
  366. package/skills/rabetbase/guides/sql-creation-workflow.md +1 -1
  367. package/skills/rabetbase/guides/sql-mybatis.md +12 -8
  368. package/skills/rabetbase/references/rabetbase-config.md +6 -4
  369. package/skills/rabetbase/references/rabetbase-init.md +7 -5
  370. package/skills/rabetbase/references/rabetbase-kb.md +8 -6
  371. package/skills/rabetbase/references/rabetbase-user-account.md +20 -2
  372. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a255_0x1f82a3=a255_0x1625;(function(_0x34eb7e,_0x620159){const _0xc0b399=a255_0x1625,_0x315a33=_0x34eb7e();while(!![]){try{const _0x509dc8=-parseInt(_0xc0b399(0x1c0))/0x1+parseInt(_0xc0b399(0x1da))/0x2*(parseInt(_0xc0b399(0x1d7))/0x3)+-parseInt(_0xc0b399(0x1b1))/0x4+parseInt(_0xc0b399(0x1c1))/0x5*(parseInt(_0xc0b399(0x1b8))/0x6)+-parseInt(_0xc0b399(0x1d8))/0x7*(-parseInt(_0xc0b399(0x1db))/0x8)+parseInt(_0xc0b399(0x1ab))/0x9+-parseInt(_0xc0b399(0x1d0))/0xa;if(_0x509dc8===_0x620159)break;else _0x315a33['push'](_0x315a33['shift']());}catch(_0x2b5f5e){_0x315a33['push'](_0x315a33['shift']());}}}(a255_0x19b4,0xd4afd));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';function a255_0x19b4(){const _0x162ac8=['121242BnFYQy','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','certificateDomain','string','object','number','Auth\x20cookie','keys','1106636AMnwPZ','155YQbaqR','values','fromEntries','userDomain','cookie','skillDomain','appcode','inherit','format','Default\x20page\x20size','app','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','zh-CN','trim','defaultApp','5825720tdnpmf','Config\x20key\x20(','apiDomain','apiDir','region','locale','apiGroup','126KXCEHA','10839976cerHbY','isArray','30606BbiAqK','8KQPCCB','localDomain','riskLevel','length','runtimeDomain','API\x20directory\x20path','pageSize','env','join','filter','9405351CXCvND','Risk\x20level','accessKey','defaultFormat','Access\x20key','map','5209508niEPJa','en-US','apps','has','kbDomain','appDomain','Country/region\x20for\x20this\x20app\x20profile'];a255_0x19b4=function(){return _0x162ac8;};return a255_0x19b4();}import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';function a255_0x1625(_0x246a67,_0xe54ae9){_0x246a67=_0x246a67-0x1ab;const _0x19b449=a255_0x19b4();let _0x162538=_0x19b449[_0x246a67];return _0x162538;}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a255_0x1f82a3(0x1c5),'accessKey',a255_0x1f82a3(0x1d5),a255_0x1f82a3(0x1c9),'riskLevel',a255_0x1f82a3(0x1d4),'routing',a255_0x1f82a3(0x1c4),a255_0x1f82a3(0x1d2),a255_0x1f82a3(0x1df),a255_0x1f82a3(0x1c6),'kbDomain',a255_0x1f82a3(0x1b6),'localDomain','certificateDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a255_0x1f82a3(0x1c7),a255_0x1f82a3(0x1e2),a255_0x1f82a3(0x1d5),a255_0x1f82a3(0x1c9),a255_0x1f82a3(0x1c5),a255_0x1f82a3(0x1ad),a255_0x1f82a3(0x1d3),a255_0x1f82a3(0x1d4),a255_0x1f82a3(0x1c4),a255_0x1f82a3(0x1d2),a255_0x1f82a3(0x1df),a255_0x1f82a3(0x1c6),a255_0x1f82a3(0x1b5),a255_0x1f82a3(0x1b6),a255_0x1f82a3(0x1dc),a255_0x1f82a3(0x1ba)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x580eba){const _0x5f279c=a255_0x1f82a3;return[..._0x580eba][_0x5f279c(0x1e3)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xc269fe){const _0x5d919b=a255_0x1f82a3;return TOP_LEVEL_CONFIG_KEYS[_0x5d919b(0x1b4)](_0xc269fe);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x59c05b=a255_0x1f82a3;return _0x59c05b(0x1d1)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a255_0x1f82a3(0x1d6),'region':a255_0x1f82a3(0x1d4),'env':'env','apiDir':a255_0x1f82a3(0x1d3),'cookie':a255_0x1f82a3(0x1c5),'accessKey':a255_0x1f82a3(0x1ad),'defaultFormat':a255_0x1f82a3(0x1c9),'pageSize':a255_0x1f82a3(0x1e1),'riskLevel':a255_0x1f82a3(0x1dd),'locale':a255_0x1f82a3(0x1d5)};export function getAppProfileFlagDefs(){const _0xb35b5d=a255_0x1f82a3;return[{'name':_0xb35b5d(0x1d6),'type':_0xb35b5d(0x1bb),'description':_0xb35b5d(0x1b9)},{'name':_0xb35b5d(0x1d4),'type':'string','description':_0xb35b5d(0x1b7),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':'env','type':_0xb35b5d(0x1bb),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0xb35b5d(0x1e0)},{'name':_0xb35b5d(0x1c5),'type':_0xb35b5d(0x1bb),'description':_0xb35b5d(0x1be),'hidden':!![]},{'name':_0xb35b5d(0x1ad),'type':_0xb35b5d(0x1bb),'description':_0xb35b5d(0x1af),'hidden':!![]},{'name':_0xb35b5d(0x1ae),'type':_0xb35b5d(0x1bb),'description':_0xb35b5d(0x1cc),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0xb35b5d(0x1bd),'description':_0xb35b5d(0x1ca)},{'name':_0xb35b5d(0x1dd),'type':_0xb35b5d(0x1bb),'description':_0xb35b5d(0x1ac),'enum':[...RISK_LEVEL_VALUES]},{'name':_0xb35b5d(0x1d5),'type':_0xb35b5d(0x1bb),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x1c5f86){const _0x2e0e30={};for(const [_0x437efd,_0x4fb5c2]of Object['entries'](APP_PROFILE_FLAG_KEY_MAP)){const _0x4cb028=_0x1c5f86(_0x437efd);if(!_0x4cb028)continue;_0x2e0e30[_0x4fb5c2]=_0x4fb5c2==='pageSize'?Number(_0x4cb028):_0x4cb028;}return _0x2e0e30;}export function buildAppProfileListFields(_0x2bcde7){const _0x21547a=a255_0x1f82a3;return{'apiGroup':_0x2bcde7['apiGroup']??null,'region':_0x2bcde7[_0x21547a(0x1d4)]??null,'env':_0x2bcde7['env']??null,'apiDir':_0x2bcde7['apiDir']??null,'hasCookie':!!_0x2bcde7['cookie'],'hasAccessKey':!!_0x2bcde7[_0x21547a(0x1ad)],'format':_0x2bcde7['format']??null,'pageSize':_0x2bcde7[_0x21547a(0x1e1)]??null,'riskLevel':_0x2bcde7[_0x21547a(0x1dd)]??null,'locale':_0x2bcde7[_0x21547a(0x1d5)]??null};}export function buildAppDoctorFields(_0xc8d237,_0x403a4e){const _0x3ede35=a255_0x1f82a3;return{'region':{'value':_0xc8d237[_0x3ede35(0x1d4)]||_0x403a4e['region'],'source':_0xc8d237[_0x3ede35(0x1d4)]?'app':_0x3ede35(0x1c8)},'env':{'value':_0xc8d237[_0x3ede35(0x1e2)]||_0x403a4e[_0x3ede35(0x1e2)],'source':_0xc8d237[_0x3ede35(0x1e2)]?_0x3ede35(0x1cb):_0x3ede35(0x1c8)},'apiDir':{'value':_0xc8d237[_0x3ede35(0x1d3)]||_0x403a4e['apiDir'],'source':_0xc8d237[_0x3ede35(0x1d3)]?_0x3ede35(0x1cb):_0x3ede35(0x1c8)},'cookie':{'value':_0xc8d237[_0x3ede35(0x1c5)]||_0x403a4e[_0x3ede35(0x1c5)],'source':_0xc8d237[_0x3ede35(0x1c5)]?_0x3ede35(0x1cb):_0x3ede35(0x1c8)},'accessKey':{'value':_0xc8d237[_0x3ede35(0x1ad)]||_0x403a4e[_0x3ede35(0x1ad)],'source':_0xc8d237[_0x3ede35(0x1ad)]?_0x3ede35(0x1cb):'inherit'}};}export function buildCanonicalAppConfig(_0x14d286,_0x37badb){const _0x5c998d=a255_0x1f82a3,_0x5d4099=_0x14d286['map'](_0x1a3127=>String(_0x1a3127||'')[_0x5c998d(0x1ce)]())[_0x5c998d(0x1e4)](Boolean);if(_0x5d4099[_0x5c998d(0x1de)]===0x0)return{};const _0xb2849c={};for(const _0x33e641 of _0x5d4099){_0xb2849c[_0x33e641]=_0x37badb&&!isProduction(_0x37badb)?{'appcode':_0x33e641,'env':_0x37badb}:{'appcode':_0x33e641};}return _0x5d4099[_0x5c998d(0x1de)]>0x1?{'apps':_0xb2849c,'defaultApp':_0x5d4099[0x0]}:{'apps':_0xb2849c};}export function normalizeStoredDefaultApp(_0x31294,_0x1e9bf1){const _0x20e05f=a255_0x1f82a3,_0x427257=_0x31294[_0x20e05f(0x1b3)]&&typeof _0x31294['apps']===_0x20e05f(0x1bc)?_0x31294[_0x20e05f(0x1b3)]:{},_0x3a227c=Object['keys'](_0x427257);if(_0x3a227c[_0x20e05f(0x1de)]<=0x1)return delete _0x31294[_0x20e05f(0x1cf)],undefined;const _0x3d3e36=typeof _0x31294[_0x20e05f(0x1cf)]===_0x20e05f(0x1bb)&&_0x427257[_0x31294[_0x20e05f(0x1cf)]]?_0x31294[_0x20e05f(0x1cf)]:undefined,_0x52698c=_0x1e9bf1&&_0x427257[_0x1e9bf1]?_0x1e9bf1:_0x3d3e36;if(_0x52698c)return _0x31294[_0x20e05f(0x1cf)]=_0x52698c,_0x52698c;return delete _0x31294[_0x20e05f(0x1cf)],undefined;}export function buildCanonicalProjectConfig(_0x366b97,_0x419e89){const _0x1a8510=a255_0x1f82a3,{appCodes:appCodes=[],env:_0xf43677,metadata:_0x55f2b3}=_0x419e89,_0x21f487={..._0x366b97,..._0x55f2b3||{}};delete _0x21f487[_0x1a8510(0x1c7)],delete _0x21f487[_0x1a8510(0x1cb)];const _0x15656a=_0xf43677||(typeof _0x21f487[_0x1a8510(0x1e2)]===_0x1a8510(0x1bb)?_0x21f487[_0x1a8510(0x1e2)]:'')||DEFAULT_CONFIG_VALUES['env'];if(isProduction(_0x15656a))delete _0x21f487[_0x1a8510(0x1e2)];else _0x21f487[_0x1a8510(0x1e2)]=_0x15656a;const _0x599b32=buildCanonicalAppConfig(appCodes,_0x15656a);if(Object[_0x1a8510(0x1bf)](_0x599b32)[_0x1a8510(0x1de)]>0x0){_0x21f487['apps']=_0x599b32['apps'];if(_0x599b32[_0x1a8510(0x1cf)])_0x21f487[_0x1a8510(0x1cf)]=_0x599b32[_0x1a8510(0x1cf)];else delete _0x21f487[_0x1a8510(0x1cf)];}return normalizeConfigForWrite(_0x21f487);}function isRecord(_0x437c84){const _0x3a7d55=a255_0x1f82a3;return!!_0x437c84&&typeof _0x437c84===_0x3a7d55(0x1bc)&&!Array[_0x3a7d55(0x1d9)](_0x437c84);}export function normalizeConfigForWrite(_0x2d2d01){const _0xbb54be=a255_0x1f82a3,_0x43937b={..._0x2d2d01},_0xc99232=isRecord(_0x2d2d01['apps'])?_0x2d2d01[_0xbb54be(0x1b3)]:undefined,_0x503f10=_0xc99232?Object[_0xbb54be(0x1c3)](Object['entries'](_0xc99232)[_0xbb54be(0x1b0)](([_0x1fd2e9,_0x34acc9])=>[_0x1fd2e9,isRecord(_0x34acc9)?{..._0x34acc9}:_0x34acc9])):undefined;if(_0x503f10){const _0x3775c4=typeof _0x43937b[_0xbb54be(0x1e2)]==='string'?_0x43937b['env']:undefined,_0x398b83=Object[_0xbb54be(0x1c2)](_0x503f10)['some'](_0x5ab225=>isRecord(_0x5ab225)&&typeof _0x5ab225['env']===_0xbb54be(0x1bb)&&isProduction(_0x5ab225[_0xbb54be(0x1e2)]));if(_0x3775c4&&isDaily(_0x3775c4)&&_0x398b83){for(const _0x3b1a9c of Object[_0xbb54be(0x1c2)](_0x503f10)){if(!isRecord(_0x3b1a9c))continue;if(_0x3b1a9c[_0xbb54be(0x1e2)]===undefined)_0x3b1a9c[_0xbb54be(0x1e2)]=_0x3775c4;}delete _0x43937b[_0xbb54be(0x1e2)];}for(const _0x23e394 of Object[_0xbb54be(0x1c2)](_0x503f10)){isRecord(_0x23e394)&&typeof _0x23e394[_0xbb54be(0x1e2)]===_0xbb54be(0x1bb)&&isProduction(_0x23e394[_0xbb54be(0x1e2)])&&delete _0x23e394[_0xbb54be(0x1e2)];}_0x43937b[_0xbb54be(0x1b3)]=_0x503f10;}return typeof _0x43937b[_0xbb54be(0x1e2)]==='string'&&isProduction(_0x43937b[_0xbb54be(0x1e2)])&&delete _0x43937b[_0xbb54be(0x1e2)],_0x43937b;}const LOCALE_MAP={'zh':a255_0x1f82a3(0x1cd),'zh-cn':a255_0x1f82a3(0x1cd),'zh_cn':a255_0x1f82a3(0x1cd),'en':'en-US','en-us':a255_0x1f82a3(0x1b2),'en_us':'en-US'};export function normalizeLocale(_0x1c09ff){if(!_0x1c09ff)return null;return LOCALE_MAP[_0x1c09ff['toLowerCase']()]??null;}
1
+ const a256_0x4f83e3=a256_0x13b9;(function(_0x308b42,_0x2076e5){const _0x2fb0f2=a256_0x13b9,_0x19f422=_0x308b42();while(!![]){try{const _0x5d9b2f=parseInt(_0x2fb0f2(0xec))/0x1+parseInt(_0x2fb0f2(0x11e))/0x2+parseInt(_0x2fb0f2(0x117))/0x3+-parseInt(_0x2fb0f2(0x11a))/0x4*(-parseInt(_0x2fb0f2(0x101))/0x5)+-parseInt(_0x2fb0f2(0x102))/0x6*(parseInt(_0x2fb0f2(0xf0))/0x7)+-parseInt(_0x2fb0f2(0x11d))/0x8*(parseInt(_0x2fb0f2(0x11b))/0x9)+parseInt(_0x2fb0f2(0x114))/0xa;if(_0x5d9b2f===_0x2076e5)break;else _0x19f422['push'](_0x19f422['shift']());}catch(_0x2dde5f){_0x19f422['push'](_0x19f422['shift']());}}}(a256_0x3e68,0x6892d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,isProduction,RABETBASE_ENV_VALUES}from'../constant/env.js';import{RABETBASE_OUTPUT_FORMAT_VALUES}from'../constant/output.js';import{RISK_LEVEL_VALUES}from'../constant/risk.js';import{ENABLED_LOVRABET_REGION_VALUES}from'../constant/region.js';export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a256_0x4f83e3(0x107),a256_0x4f83e3(0x103),'format','riskLevel',a256_0x4f83e3(0xe6),a256_0x4f83e3(0xf8),a256_0x4f83e3(0xee),'apiDomain',a256_0x4f83e3(0x119),'skillDomain',a256_0x4f83e3(0xf3),a256_0x4f83e3(0x118),a256_0x4f83e3(0xe5),'localDomain','certificateDomain'];export const TOP_LEVEL_CONFIG_KEYS=new Set([a256_0x4f83e3(0xfb),'env',a256_0x4f83e3(0x103),'format','cookie',a256_0x4f83e3(0x107),a256_0x4f83e3(0xeb),'region',a256_0x4f83e3(0xee),'apiDomain',a256_0x4f83e3(0x119),a256_0x4f83e3(0x10d),a256_0x4f83e3(0xf3),a256_0x4f83e3(0x118),a256_0x4f83e3(0xe5),a256_0x4f83e3(0x11f),a256_0x4f83e3(0xf9)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x552cf1){return[..._0x552cf1]['join'](',\x20');}function a256_0x3e68(){const _0x515720=['apiGroup','appcode','values','inherit','map','length','fromEntries','77080AuTRkZ','4610634cEhDCc','locale','Country/region\x20for\x20this\x20app\x20profile','trim','some','accessKey','cookie','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Auth\x20cookie','entries','has','skillDomain','object','defaultFormat','Config\x20key\x20(','Target\x20environment','apps','pageSize','5057490mDxyqh','Risk\x20level','number','141363tStHyI','kbServiceDomain','runtimeDomain','76TzGyWM','1325601dpqTlg','keys','24ZBvNBQ','418598euMebL','localDomain','defaultApp','appDomain','region','app','Access\x20key','riskLevel','format','apiDir','583566qwcbws','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','userDomain','en-US','7Vdpuju','string','filter','kbDomain','env','zh-CN','Default\x20page\x20size','API\x20directory\x20path','routing','certificateDomain'];a256_0x3e68=function(){return _0x515720;};return a256_0x3e68();}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x530fc8){const _0x3de80a=a256_0x4f83e3;return TOP_LEVEL_CONFIG_KEYS[_0x3de80a(0x10c)](_0x530fc8);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x3917d1=a256_0x4f83e3;return _0x3917d1(0x110)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':'apiGroup','region':'region','env':a256_0x4f83e3(0xf4),'apiDir':'apiDir','cookie':a256_0x4f83e3(0x108),'accessKey':a256_0x4f83e3(0x107),'defaultFormat':'format','pageSize':a256_0x4f83e3(0x113),'riskLevel':a256_0x4f83e3(0xe9),'locale':'locale'};function a256_0x13b9(_0x523e52,_0x29c303){_0x523e52=_0x523e52-0xe4;const _0x3e689e=a256_0x3e68();let _0x13b9eb=_0x3e689e[_0x523e52];return _0x13b9eb;}export function getAppProfileFlagDefs(){const _0x4e9fc8=a256_0x4f83e3;return[{'name':_0x4e9fc8(0xfa),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x109)},{'name':_0x4e9fc8(0xe6),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x104),'enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x4e9fc8(0xf4),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x111),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':'string','description':_0x4e9fc8(0xf7)},{'name':'cookie','type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x10a),'hidden':!![]},{'name':'accessKey','type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0xe8),'hidden':!![]},{'name':_0x4e9fc8(0x10f),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0xed),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x4e9fc8(0x113),'type':_0x4e9fc8(0x116),'description':_0x4e9fc8(0xf6)},{'name':_0x4e9fc8(0xe9),'type':_0x4e9fc8(0xf1),'description':_0x4e9fc8(0x115),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x4e9fc8(0x103),'type':_0x4e9fc8(0xf1),'description':'App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)'}];}export function collectAppProfileOverrides(_0x590048){const _0x50d8f6=a256_0x4f83e3,_0x5d9823={};for(const [_0x19c0e1,_0x171f51]of Object[_0x50d8f6(0x10b)](APP_PROFILE_FLAG_KEY_MAP)){const _0x1b3d7=_0x590048(_0x19c0e1);if(!_0x1b3d7)continue;_0x5d9823[_0x171f51]=_0x171f51===_0x50d8f6(0x113)?Number(_0x1b3d7):_0x1b3d7;}return _0x5d9823;}export function buildAppProfileListFields(_0x435f8d){const _0x2b1ab8=a256_0x4f83e3;return{'apiGroup':_0x435f8d[_0x2b1ab8(0xfa)]??null,'region':_0x435f8d['region']??null,'env':_0x435f8d['env']??null,'apiDir':_0x435f8d[_0x2b1ab8(0xeb)]??null,'hasCookie':!!_0x435f8d['cookie'],'hasAccessKey':!!_0x435f8d[_0x2b1ab8(0x107)],'format':_0x435f8d[_0x2b1ab8(0xea)]??null,'pageSize':_0x435f8d[_0x2b1ab8(0x113)]??null,'riskLevel':_0x435f8d[_0x2b1ab8(0xe9)]??null,'locale':_0x435f8d['locale']??null};}export function buildAppDoctorFields(_0x28b564,_0x4f8b39){const _0x59679e=a256_0x4f83e3;return{'region':{'value':_0x28b564['region']||_0x4f8b39[_0x59679e(0xe6)],'source':_0x28b564[_0x59679e(0xe6)]?_0x59679e(0xe7):'inherit'},'env':{'value':_0x28b564[_0x59679e(0xf4)]||_0x4f8b39[_0x59679e(0xf4)],'source':_0x28b564[_0x59679e(0xf4)]?_0x59679e(0xe7):_0x59679e(0xfd)},'apiDir':{'value':_0x28b564[_0x59679e(0xeb)]||_0x4f8b39[_0x59679e(0xeb)],'source':_0x28b564['apiDir']?_0x59679e(0xe7):_0x59679e(0xfd)},'cookie':{'value':_0x28b564['cookie']||_0x4f8b39['cookie'],'source':_0x28b564[_0x59679e(0x108)]?'app':_0x59679e(0xfd)},'accessKey':{'value':_0x28b564[_0x59679e(0x107)]||_0x4f8b39[_0x59679e(0x107)],'source':_0x28b564[_0x59679e(0x107)]?_0x59679e(0xe7):_0x59679e(0xfd)}};}export function buildCanonicalAppConfig(_0x43d580,_0x2ce379){const _0x520729=a256_0x4f83e3,_0x34b32b=_0x43d580['map'](_0x384079=>String(_0x384079||'')[_0x520729(0x105)]())[_0x520729(0xf2)](Boolean);if(_0x34b32b['length']===0x0)return{};const _0x48f8fd={};for(const _0x52d506 of _0x34b32b){_0x48f8fd[_0x52d506]=_0x2ce379&&!isProduction(_0x2ce379)?{'appcode':_0x52d506,'env':_0x2ce379}:{'appcode':_0x52d506};}return _0x34b32b[_0x520729(0xff)]>0x1?{'apps':_0x48f8fd,'defaultApp':_0x34b32b[0x0]}:{'apps':_0x48f8fd};}export function normalizeStoredDefaultApp(_0x14217f,_0x55982a){const _0x377748=a256_0x4f83e3,_0x3fad2c=_0x14217f[_0x377748(0x112)]&&typeof _0x14217f[_0x377748(0x112)]===_0x377748(0x10e)?_0x14217f[_0x377748(0x112)]:{},_0x1d53a3=Object[_0x377748(0x11c)](_0x3fad2c);if(_0x1d53a3[_0x377748(0xff)]<=0x1)return delete _0x14217f[_0x377748(0xe4)],undefined;const _0x5bcbdd=typeof _0x14217f[_0x377748(0xe4)]==='string'&&_0x3fad2c[_0x14217f[_0x377748(0xe4)]]?_0x14217f[_0x377748(0xe4)]:undefined,_0x76f743=_0x55982a&&_0x3fad2c[_0x55982a]?_0x55982a:_0x5bcbdd;if(_0x76f743)return _0x14217f[_0x377748(0xe4)]=_0x76f743,_0x76f743;return delete _0x14217f[_0x377748(0xe4)],undefined;}export function buildCanonicalProjectConfig(_0x2ed746,_0x3262eb){const _0x2cfe06=a256_0x4f83e3,{appCodes:appCodes=[],env:_0x5a8a55,metadata:_0xf90558}=_0x3262eb,_0x5a5916={..._0x2ed746,..._0xf90558||{}};delete _0x5a5916[_0x2cfe06(0xfb)],delete _0x5a5916[_0x2cfe06(0xe7)];const _0x545111=_0x5a8a55||(typeof _0x5a5916[_0x2cfe06(0xf4)]===_0x2cfe06(0xf1)?_0x5a5916['env']:'')||DEFAULT_CONFIG_VALUES[_0x2cfe06(0xf4)];if(isProduction(_0x545111))delete _0x5a5916['env'];else _0x5a5916[_0x2cfe06(0xf4)]=_0x545111;const _0x340c18=buildCanonicalAppConfig(appCodes,_0x545111);if(Object[_0x2cfe06(0x11c)](_0x340c18)[_0x2cfe06(0xff)]>0x0){_0x5a5916[_0x2cfe06(0x112)]=_0x340c18[_0x2cfe06(0x112)];if(_0x340c18[_0x2cfe06(0xe4)])_0x5a5916['defaultApp']=_0x340c18['defaultApp'];else delete _0x5a5916['defaultApp'];}return normalizeConfigForWrite(_0x5a5916);}function isRecord(_0x756e81){return!!_0x756e81&&typeof _0x756e81==='object'&&!Array['isArray'](_0x756e81);}export function normalizeConfigForWrite(_0x4fa21f){const _0x4a935c=a256_0x4f83e3,_0xd000e6={..._0x4fa21f},_0x74631d=isRecord(_0x4fa21f[_0x4a935c(0x112)])?_0x4fa21f['apps']:undefined,_0x38d135=_0x74631d?Object[_0x4a935c(0x100)](Object[_0x4a935c(0x10b)](_0x74631d)[_0x4a935c(0xfe)](([_0x52d61a,_0x677f6d])=>[_0x52d61a,isRecord(_0x677f6d)?{..._0x677f6d}:_0x677f6d])):undefined;if(_0x38d135){const _0x337d70=typeof _0xd000e6[_0x4a935c(0xf4)]===_0x4a935c(0xf1)?_0xd000e6[_0x4a935c(0xf4)]:undefined,_0x516dfb=Object[_0x4a935c(0xfc)](_0x38d135)[_0x4a935c(0x106)](_0x41bb76=>isRecord(_0x41bb76)&&typeof _0x41bb76[_0x4a935c(0xf4)]===_0x4a935c(0xf1)&&isProduction(_0x41bb76['env']));if(_0x337d70&&isDaily(_0x337d70)&&_0x516dfb){for(const _0x55bde7 of Object[_0x4a935c(0xfc)](_0x38d135)){if(!isRecord(_0x55bde7))continue;if(_0x55bde7['env']===undefined)_0x55bde7[_0x4a935c(0xf4)]=_0x337d70;}delete _0xd000e6[_0x4a935c(0xf4)];}for(const _0x12bfb1 of Object[_0x4a935c(0xfc)](_0x38d135)){isRecord(_0x12bfb1)&&typeof _0x12bfb1[_0x4a935c(0xf4)]===_0x4a935c(0xf1)&&isProduction(_0x12bfb1[_0x4a935c(0xf4)])&&delete _0x12bfb1[_0x4a935c(0xf4)];}_0xd000e6[_0x4a935c(0x112)]=_0x38d135;}return typeof _0xd000e6[_0x4a935c(0xf4)]===_0x4a935c(0xf1)&&isProduction(_0xd000e6[_0x4a935c(0xf4)])&&delete _0xd000e6[_0x4a935c(0xf4)],_0xd000e6;}const LOCALE_MAP={'zh':a256_0x4f83e3(0xf5),'zh-cn':a256_0x4f83e3(0xf5),'zh_cn':'zh-CN','en':'en-US','en-us':'en-US','en_us':a256_0x4f83e3(0xef)};export function normalizeLocale(_0x2e72f8){if(!_0x2e72f8)return null;return LOCALE_MAP[_0x2e72f8['toLowerCase']()]??null;}
@@ -1 +1 @@
1
- const a256_0x377db6=a256_0x6477;(function(_0x11ba97,_0x379b43){const _0x2e6d69=a256_0x6477,_0x3b541f=_0x11ba97();while(!![]){try{const _0x4bd5d8=parseInt(_0x2e6d69(0x184))/0x1+-parseInt(_0x2e6d69(0x175))/0x2*(-parseInt(_0x2e6d69(0x178))/0x3)+parseInt(_0x2e6d69(0x17d))/0x4+-parseInt(_0x2e6d69(0x185))/0x5+parseInt(_0x2e6d69(0x17e))/0x6*(parseInt(_0x2e6d69(0x176))/0x7)+parseInt(_0x2e6d69(0x179))/0x8*(-parseInt(_0x2e6d69(0x17a))/0x9)+parseInt(_0x2e6d69(0x182))/0xa*(parseInt(_0x2e6d69(0x177))/0xb);if(_0x4bd5d8===_0x379b43)break;else _0x3b541f['push'](_0x3b541f['shift']());}catch(_0x41fc13){_0x3b541f['push'](_0x3b541f['shift']());}}}(a256_0x1273,0x9151f));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a256_0x377db6(0x186),RABETBASE_CDN_CONFIG_ORIGIN=a256_0x377db6(0x181),CDN_CONFIG_PATH='config/index.json',PROJECT_TEMPLATE_ASSET_PATH=a256_0x377db6(0x17c),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a256_0x377db6(0x17f)]({'release':'sub-app-react-demo.zip','beta':a256_0x377db6(0x187)});export const RABETBASE_CDN_PROJECT_PATH=a256_0x377db6(0x183)+RABETBASE_CDN_PROJECT;function a256_0x6477(_0x4aea32,_0x412383){_0x4aea32=_0x4aea32-0x175;const _0x1273c4=a256_0x1273();let _0x64771c=_0x1273c4[_0x4aea32];return _0x64771c;}function getRabetbaseCdnBaseUrl(){return''+getActiveCdn()['lovrabet']+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}function a256_0x1273(){const _0x28ed97=['20534oBSPEw','3764090Hyxmqn','rabetbase-cli','sub-app-react-demo-beta.zip','456156Prirct','1351nXomzB','106447UQJkAW','9YIGYRs','16ZjIzrO','2595933seDIBX','sub-app-react-demo-','templates/projects','531024yjiSgj','9738QwUMwD','freeze','.zip','https://g.lovrabet.com','800UjdcDM','/dist/'];a256_0x1273=function(){return _0x28ed97;};return a256_0x1273();}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x5b221e,_0x1c842a){const _0x1ed1b6=a256_0x377db6,_0x56c670=_0x1c842a?_0x1ed1b6(0x17b)+_0x1c842a+_0x1ed1b6(0x180):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x5b221e];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x56c670;}
1
+ function a257_0x4e9e(_0x420065,_0x2e4375){_0x420065=_0x420065-0x16e;const _0x1572db=a257_0x1572();let _0x4e9eed=_0x1572db[_0x420065];return _0x4e9eed;}const a257_0x36044e=a257_0x4e9e;(function(_0x297f3a,_0x431ca4){const _0x444730=a257_0x4e9e,_0x1d975f=_0x297f3a();while(!![]){try{const _0x2f6385=parseInt(_0x444730(0x17a))/0x1*(parseInt(_0x444730(0x16e))/0x2)+parseInt(_0x444730(0x177))/0x3+-parseInt(_0x444730(0x176))/0x4*(parseInt(_0x444730(0x17d))/0x5)+parseInt(_0x444730(0x180))/0x6+-parseInt(_0x444730(0x179))/0x7+-parseInt(_0x444730(0x172))/0x8*(parseInt(_0x444730(0x174))/0x9)+-parseInt(_0x444730(0x173))/0xa*(-parseInt(_0x444730(0x178))/0xb);if(_0x2f6385===_0x431ca4)break;else _0x1d975f['push'](_0x1d975f['shift']());}catch(_0x38a4bc){_0x1d975f['push'](_0x1d975f['shift']());}}}(a257_0x1572,0xcdca0));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a257_0x36044e(0x175),RABETBASE_CDN_CONFIG_ORIGIN=a257_0x36044e(0x17c),CDN_CONFIG_PATH=a257_0x36044e(0x17b),PROJECT_TEMPLATE_ASSET_PATH=a257_0x36044e(0x183),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a257_0x36044e(0x16f)]({'release':a257_0x36044e(0x170),'beta':a257_0x36044e(0x182)});function a257_0x1572(){const _0x12d203=['sub-app-react-demo-beta.zip','templates/projects','8916abNroA','freeze','sub-app-react-demo.zip','lovrabet','136RHbhZj','30EdzsNl','297936ixXyTc','rabetbase-cli','4agIIXr','3645972HHAzSa','2222693LKdLzx','10517570phCNdF','153pIekcb','config/index.json','https://g.lovrabet.com','2411015UvyLjE','/dist/','.zip','5320836CvgCUD','sub-app-react-demo-'];a257_0x1572=function(){return _0x12d203;};return a257_0x1572();}export const RABETBASE_CDN_PROJECT_PATH=a257_0x36044e(0x17e)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x204fd7=a257_0x36044e;return''+getActiveCdn()[_0x204fd7(0x171)]+RABETBASE_CDN_PROJECT_PATH;}export function getCliVersionPolicyUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+CDN_CONFIG_PATH;}export function getProjectTemplateAssetBaseUrl(){return getRabetbaseCdnBaseUrl()+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateLegacyAssetBaseUrl(){return''+RABETBASE_CDN_CONFIG_ORIGIN+RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH;}export function getProjectTemplateRelativeUrl(_0x1effc2,_0xd1f902){const _0x640d87=a257_0x36044e,_0x69e562=_0xd1f902?_0x640d87(0x181)+_0xd1f902+_0x640d87(0x17f):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x1effc2];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x69e562;}
@@ -1 +1 @@
1
- const a257_0x15acfe=a257_0x363e;(function(_0x381350,_0x1a8e0a){const _0x8eab3b=a257_0x363e,_0x215e31=_0x381350();while(!![]){try{const _0x2a7ef3=parseInt(_0x8eab3b(0x11e))/0x1*(-parseInt(_0x8eab3b(0xe5))/0x2)+-parseInt(_0x8eab3b(0xb4))/0x3*(parseInt(_0x8eab3b(0x102))/0x4)+parseInt(_0x8eab3b(0x136))/0x5*(parseInt(_0x8eab3b(0x121))/0x6)+parseInt(_0x8eab3b(0x114))/0x7+parseInt(_0x8eab3b(0xd3))/0x8*(parseInt(_0x8eab3b(0xb9))/0x9)+parseInt(_0x8eab3b(0xfc))/0xa*(parseInt(_0x8eab3b(0xb3))/0xb)+-parseInt(_0x8eab3b(0x12a))/0xc*(parseInt(_0x8eab3b(0x117))/0xd);if(_0x2a7ef3===_0x1a8e0a)break;else _0x215e31['push'](_0x215e31['shift']());}catch(_0x397333){_0x215e31['push'](_0x215e31['shift']());}}}(a257_0x4fbb,0x1ed49));export const CLI_BIN_NAME=a257_0x15acfe(0xc7);function a257_0x363e(_0x11b1af,_0x2e4c9f){_0x11b1af=_0x11b1af-0xb3;const _0x4fbb96=a257_0x4fbb();let _0x363e9b=_0x4fbb96[_0x11b1af];return _0x363e9b;}export const CLI_DISPLAY_NAME=a257_0x15acfe(0xf3);export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':a257_0x15acfe(0x129),'meowKey':a257_0x15acfe(0x129),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x135),'hint':a257_0x15acfe(0xec)},{'name':a257_0x15acfe(0x13c),'meowKey':a257_0x15acfe(0x13c),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x127),'hint':'<name>'},{'name':a257_0x15acfe(0xcd),'meowKey':'env','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x116),'hint':a257_0x15acfe(0x10f)},{'name':a257_0x15acfe(0x12b),'meowKey':a257_0x15acfe(0x12b),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xce),'hint':a257_0x15acfe(0xd1)},{'name':'jq','meowKey':'jq','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x146),'hint':a257_0x15acfe(0x110)},{'name':'dry-run','meowKey':a257_0x15acfe(0xc6),'type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0xc5)},{'name':'yes','meowKey':a257_0x15acfe(0xb7),'type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0x104)},{'name':'non-interactive','meowKey':a257_0x15acfe(0xf8),'type':a257_0x15acfe(0xc2),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':a257_0x15acfe(0xcf),'meowKey':a257_0x15acfe(0xcf),'type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0xf6)},{'name':a257_0x15acfe(0x143),'meowKey':a257_0x15acfe(0x143),'type':'boolean','description':a257_0x15acfe(0x140)},{'name':'ci','meowKey':'ci','type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0x109),'hidden':!![]},{'name':a257_0x15acfe(0xd0),'meowKey':'help','type':'boolean','description':a257_0x15acfe(0xd9)},{'name':a257_0x15acfe(0xc8),'meowKey':'locale','type':'string','description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a257_0x15acfe(0xe0)},{'name':a257_0x15acfe(0xe7),'meowKey':a257_0x15acfe(0xe7),'type':'string','description':a257_0x15acfe(0xe1),'hidden':!![]},{'name':a257_0x15acfe(0x105),'meowKey':a257_0x15acfe(0x105),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x126),'hidden':!![]},{'name':a257_0x15acfe(0xda),'meowKey':a257_0x15acfe(0xda),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x103),'hidden':!![]},{'name':a257_0x15acfe(0x138),'meowKey':'topk','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x119),'hidden':!![]},{'name':a257_0x15acfe(0x101),'meowKey':a257_0x15acfe(0x101),'type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0x13d),'hidden':!![]},{'name':'watch','meowKey':a257_0x15acfe(0x12e),'type':a257_0x15acfe(0xc2),'description':'Watch\x20mode','hidden':!![]},{'name':a257_0x15acfe(0xdb),'meowKey':'output','type':a257_0x15acfe(0xbd),'description':'Output\x20path','hidden':!![]},{'name':a257_0x15acfe(0xc1),'meowKey':a257_0x15acfe(0xc1),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xed),'hidden':!![]},{'name':'datasetcode','meowKey':a257_0x15acfe(0xfa),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xf4),'hidden':!![]},{'name':a257_0x15acfe(0x137),'meowKey':a257_0x15acfe(0x137),'type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0x134),'hidden':!![]},{'name':'enable-bff-save','meowKey':a257_0x15acfe(0x11a),'type':'boolean','description':a257_0x15acfe(0x10d),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':a257_0x15acfe(0xd2),'hidden':!![]},{'name':'type','meowKey':a257_0x15acfe(0x128),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x118),'hidden':!![]},{'name':a257_0x15acfe(0xcc),'meowKey':a257_0x15acfe(0xcc),'type':a257_0x15acfe(0xbd),'description':'File\x20path','hidden':!![]},{'name':a257_0x15acfe(0xdf),'meowKey':'flowCode','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x12c),'hidden':!![]},{'name':a257_0x15acfe(0x11c),'meowKey':a257_0x15acfe(0x132),'type':'string','description':'Flow\x20name','hidden':!![]},{'name':a257_0x15acfe(0x10c),'meowKey':a257_0x15acfe(0x123),'type':a257_0x15acfe(0xbd),'description':'Flow\x20status','hidden':!![]},{'name':'flow-type','meowKey':a257_0x15acfe(0xbe),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x10a),'hidden':!![]},{'name':a257_0x15acfe(0xf7),'meowKey':'datasetCode','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xf4),'hidden':!![]},{'name':'sqlcode','meowKey':'sqlcode','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x124),'hidden':!![]},{'name':'sql-name','meowKey':a257_0x15acfe(0x145),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x100),'hidden':!![]},{'name':a257_0x15acfe(0xe4),'meowKey':a257_0x15acfe(0xe4),'type':'string','description':a257_0x15acfe(0x100),'hidden':!![]},{'name':'db-id','meowKey':'dbId','type':a257_0x15acfe(0xbd),'description':'DB\x20ID','hidden':!![]},{'name':a257_0x15acfe(0xff),'meowKey':a257_0x15acfe(0xff),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x122),'hidden':!![]},{'name':a257_0x15acfe(0xde),'meowKey':a257_0x15acfe(0xde),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xd6),'hidden':!![]},{'name':a257_0x15acfe(0xd7),'meowKey':'descriptionFile','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xe6),'hidden':!![]},{'name':a257_0x15acfe(0x107),'meowKey':a257_0x15acfe(0x107),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x12d),'hidden':!![]},{'name':a257_0x15acfe(0x10e),'meowKey':a257_0x15acfe(0x11b),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xf9),'hidden':!![]},{'name':'pagesize','meowKey':a257_0x15acfe(0x112),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xf9),'hidden':!![]},{'name':a257_0x15acfe(0xd4),'meowKey':a257_0x15acfe(0xd4),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x10b),'hidden':!![]},{'name':'code','meowKey':'code','type':'string','description':a257_0x15acfe(0xf5),'hidden':!![]},{'name':a257_0x15acfe(0xf0),'meowKey':'sql','type':'string','description':a257_0x15acfe(0x130),'hidden':!![]},{'name':a257_0x15acfe(0x142),'meowKey':a257_0x15acfe(0x142),'type':a257_0x15acfe(0xbd),'description':'Schemas','hidden':!![]},{'name':'operation','meowKey':a257_0x15acfe(0xbb),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xca),'hidden':!![]},{'name':a257_0x15acfe(0x125),'meowKey':a257_0x15acfe(0x125),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x144),'hidden':!![]},{'name':a257_0x15acfe(0xe3),'meowKey':a257_0x15acfe(0xe9),'type':a257_0x15acfe(0xc2),'description':'Skip\x20import\x20generation','hidden':!![]},{'name':a257_0x15acfe(0xc9),'meowKey':'key','type':'string','description':a257_0x15acfe(0x11f),'hidden':!![]},{'name':a257_0x15acfe(0xba),'meowKey':a257_0x15acfe(0xba),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x13f),'hidden':!![]},{'name':a257_0x15acfe(0xf2),'meowKey':a257_0x15acfe(0xf2),'type':a257_0x15acfe(0xbd),'description':'Tags','hidden':!![]},{'name':a257_0x15acfe(0xeb),'meowKey':a257_0x15acfe(0xeb),'type':'boolean','description':a257_0x15acfe(0x133),'hidden':!![]},{'name':a257_0x15acfe(0xf1),'meowKey':a257_0x15acfe(0xb8),'type':'string','description':a257_0x15acfe(0x115),'hidden':!![]},{'name':a257_0x15acfe(0x12f),'meowKey':'reveal','type':a257_0x15acfe(0xc2),'description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a257_0x15acfe(0xe8),'meowKey':a257_0x15acfe(0xe8),'type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0xdc),'hidden':!![]},{'name':a257_0x15acfe(0x13e),'meowKey':a257_0x15acfe(0x13e),'type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0x13b),'hidden':!![]},{'name':a257_0x15acfe(0x108),'meowKey':'remote','type':a257_0x15acfe(0xc2),'description':a257_0x15acfe(0xea),'hidden':!![]},{'name':a257_0x15acfe(0xc3),'meowKey':'verbose','type':'boolean','description':a257_0x15acfe(0xee),'hidden':!![]},{'name':'expected-count','meowKey':a257_0x15acfe(0xd8),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xdd),'hidden':!![]},{'name':a257_0x15acfe(0xef),'meowKey':'label','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x141),'hidden':!![]},{'name':'parent-id','meowKey':a257_0x15acfe(0x111),'type':a257_0x15acfe(0xbd),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':a257_0x15acfe(0x13a),'meowKey':'sort','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xd5),'hidden':!![]},{'name':a257_0x15acfe(0xb5),'meowKey':'expectParentId','type':'string','description':'Expected\x20current\x20parent\x20menu\x20id','hidden':!![]},{'name':a257_0x15acfe(0xcb),'meowKey':'expectPath','type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xc4),'hidden':!![]},{'name':a257_0x15acfe(0xb6),'meowKey':'expectedChildrenCount','type':a257_0x15acfe(0xbd),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a257_0x15acfe(0xbf),'meowKey':a257_0x15acfe(0x106),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x139),'hidden':!![]},{'name':a257_0x15acfe(0x113),'meowKey':a257_0x15acfe(0xfb),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0x131),'hidden':!![]},{'name':a257_0x15acfe(0xc0),'meowKey':a257_0x15acfe(0xbc),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xca),'hidden':!![]},{'name':'function-node','meowKey':a257_0x15acfe(0x147),'type':a257_0x15acfe(0xbd),'description':a257_0x15acfe(0xfd),'hidden':!![]},{'name':a257_0x15acfe(0xe2),'meowKey':a257_0x15acfe(0xe2),'type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a257_0x15acfe(0x129),a257_0x15acfe(0x13c),a257_0x15acfe(0xcd),a257_0x15acfe(0x12b),'jq',a257_0x15acfe(0x11d),'yes',a257_0x15acfe(0xfe),'ci']);function a257_0x4fbb(){const _0xf87b01=['dry-run','1IbAqmv','Config\x20key','map','755148yTqcgR','DB\x20ID','flowStatus','SQL\x20code','target','Title','Select\x20app\x20profile\x20by\x20name','type','appcode','31368Nrxddz','format','Flow\x20code','Page\x20number','watch','reveal','SQL\x20string','Asynchronous\x20task\x20ID','flowName','Read\x20value\x20from\x20stdin','Apply\x20to\x20all','Override\x20appcode','10fgioRA','all','topk','Comma-separated\x20menu\x20IDs','sort','Confirm\x20destructive\x20action','app','Clear','confirm','Config\x20value','Use\x20project\x20config\x20scope','Menu\x20label','schemas','project','Target\x20path','sqlName','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','functionNode','77fYUfBd','112962jMbwnO','expect-parent-id','expected-children-count','yes','fromEnv','1728xOXHkF','value','operation','operationType','string','flowType','menu-ids','operation-type','params','boolean','verbose','Expected\x20current\x20menu\x20path','Preview\x20operation\x20without\x20executing','dryRun','rabetbase','locale','key','Operation\x20type','expect-path','file','env','Output\x20format','global','help','json\x20|\x20pretty\x20|\x20compress','Record\x20ID','4056GyIxxQ','keyword','Menu\x20sort\x20value','Description','description-file','expectedCount','Show\x20help','query','output','Force\x20overwrite','Expected\x20affected\x20count','description','flow-code','zh-CN\x20|\x20en-US','Name','codes','skip-imports','sqlname','487598HFEaik','Description\x20file','name','force','skipImports','Use\x20remote','stdin','<code>','JSON\x20params','Verbose\x20output','label','sql','from-env','tags','Rabetbase\x20CLI','Dataset\x20code','Code\x20filter','Use\x20global\x20config\x20scope','dataset-code','nonInteractive','Page\x20size','datasetcode','taskId','351490estnMR','Function\x20node','non-interactive','dbid','SQL\x20name','clear','12GdfVai','Search\x20query','Skip\x20confirmation\x20for\x20high-risk\x20writes','title','menuIds','page','remote','Alias\x20for\x20--non-interactive','Flow\x20type','Keyword\x20filter','flow-status','Enable\x20Backend\x20Function\x20save','page-size','production\x20|\x20daily','<expr>','parentId','pagesize','task-id','514731TyhYCK','Read\x20value\x20from\x20environment\x20variable','Environment','923YUEDsn','Type\x20filter','Maximum\x20search\x20hits','enableBffSave','pageSize','flow-name'];a257_0x4fbb=function(){return _0xf87b01;};return a257_0x4fbb();}export function buildMeowFlags(){const _0x4c4d86=a257_0x15acfe;return Object['fromEntries'](GLOBAL_FLAGS[_0x4c4d86(0x120)](_0xd96c7f=>[_0xd96c7f['meowKey'],{'type':_0xd96c7f[_0x4c4d86(0x128)]}]));}
1
+ const a258_0x1041d5=a258_0xf3f0;function a258_0xf3f0(_0x42bdf5,_0x3832d9){_0x42bdf5=_0x42bdf5-0x113;const _0x335dda=a258_0x335d();let _0xf3f0f7=_0x335dda[_0x42bdf5];return _0xf3f0f7;}(function(_0x2d5ee3,_0x531371){const _0x118e1c=a258_0xf3f0,_0x38242e=_0x2d5ee3();while(!![]){try{const _0x3f03a4=-parseInt(_0x118e1c(0x14f))/0x1*(parseInt(_0x118e1c(0x1a1))/0x2)+-parseInt(_0x118e1c(0x197))/0x3+-parseInt(_0x118e1c(0x114))/0x4*(-parseInt(_0x118e1c(0x17b))/0x5)+-parseInt(_0x118e1c(0x13f))/0x6+parseInt(_0x118e1c(0x11b))/0x7*(parseInt(_0x118e1c(0x11a))/0x8)+parseInt(_0x118e1c(0x17c))/0x9*(-parseInt(_0x118e1c(0x174))/0xa)+parseInt(_0x118e1c(0x19a))/0xb;if(_0x3f03a4===_0x531371)break;else _0x38242e['push'](_0x38242e['shift']());}catch(_0x13f0fe){_0x38242e['push'](_0x38242e['shift']());}}}(a258_0x335d,0xa1927));export const CLI_BIN_NAME=a258_0x1041d5(0x169);export const CLI_DISPLAY_NAME=a258_0x1041d5(0x166);function a258_0x335d(){const _0x39e340=['json\x20|\x20pretty\x20|\x20compress','Description','label','db-id','Expected\x20current\x20child\x20count','Page\x20size','parent-id','skipImports','Function\x20node','Search\x20query','Config\x20value','SQL\x20code','query','Preview\x20operation\x20without\x20executing','string','Verbose\x20output','4656786ShIogJ','parentId','env','codes','fromEnv','Use\x20remote','datasetcode','sort','Operation\x20type','code','Name','description-file','yes','boolean','Code\x20filter','Alias\x20for\x20--non-interactive','49768vxMtIQ','locale','page','operationType','page-size','Expected\x20current\x20menu\x20path','title','dry-run','flow-status','File\x20path','task-id','Expected\x20current\x20parent\x20menu\x20id','expected-children-count','enable-bff-save','Output\x20path','fromEntries','flow-name','non-interactive','Use\x20project\x20config\x20scope','Environment','clear','sql','sqlcode','Rabetbase\x20CLI','function-node','expected-count','rabetbase','Dataset\x20code','Record\x20ID','Flow\x20code','topk','expectPath','nonInteractive','Type\x20filter','taskId','file','Flow\x20status','1582180VJDfKQ','remote','operation','sqlName','Enable\x20Backend\x20Function\x20save','dryRun','params','5MgFtbV','54aNxcIq','meowKey','enableBffSave','Target\x20path','help','descriptionFile','<expr>','dataset-code','Page\x20number','force','Skip\x20confirmation\x20for\x20high-risk\x20writes','global','JSON\x20params','Description\x20file','keyword','stdin','Keyword\x20filter','description','target','Skip\x20import\x20generation','appcode','DB\x20ID','from-env','Show\x20help','flowType','tags','type','2324046BDrmVN','Force\x20overwrite','<name>','32715804cZcjLV','confirm','flowStatus','pagesize','name','Apply\x20to\x20all','watch','50CahTfB','Read\x20value\x20from\x20environment\x20variable','Comma-separated\x20menu\x20IDs','2605472tiZHMR','menu-ids','dbid','operation-type','Schemas','Title','6244704ElQlbX','7cTVWxF','sqlname','Output\x20format','expectedCount','datasetCode','app','reveal','format','Use\x20global\x20config\x20scope','key','expectParentId','Read\x20value\x20from\x20stdin','output','expectedChildrenCount','flow-code','schemas','Force\x20non-interactive\x20mode\x20(CI)','all','value','map'];a258_0x335d=function(){return _0x39e340;};return a258_0x335d();}export const NPM_PACKAGE_NAME='@lovrabet/rabetbase-cli';export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a258_0x1041d5(0x190),'type':a258_0x1041d5(0x13d),'description':'Override\x20appcode','hint':'<code>'},{'name':'app','meowKey':'app','type':'string','description':'Select\x20app\x20profile\x20by\x20name','hint':a258_0x1041d5(0x199)},{'name':a258_0x1041d5(0x141),'meowKey':a258_0x1041d5(0x141),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x162),'hint':'production\x20|\x20daily'},{'name':a258_0x1041d5(0x122),'meowKey':a258_0x1041d5(0x122),'type':'string','description':a258_0x1041d5(0x11d),'hint':a258_0x1041d5(0x12f)},{'name':'jq','meowKey':'jq','type':a258_0x1041d5(0x13d),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':a258_0x1041d5(0x182)},{'name':a258_0x1041d5(0x156),'meowKey':a258_0x1041d5(0x179),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x13c)},{'name':a258_0x1041d5(0x14b),'meowKey':a258_0x1041d5(0x14b),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x186)},{'name':a258_0x1041d5(0x160),'meowKey':a258_0x1041d5(0x16f),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x12b)},{'name':a258_0x1041d5(0x187),'meowKey':'global','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x123)},{'name':'project','meowKey':'project','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x161)},{'name':'ci','meowKey':'ci','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x14e),'hidden':!![]},{'name':a258_0x1041d5(0x180),'meowKey':a258_0x1041d5(0x180),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x193)},{'name':a258_0x1041d5(0x150),'meowKey':a258_0x1041d5(0x150),'type':'string','description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':'zh-CN\x20|\x20en-US'},{'name':a258_0x1041d5(0x19e),'meowKey':a258_0x1041d5(0x19e),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x149),'hidden':!![]},{'name':a258_0x1041d5(0x155),'meowKey':a258_0x1041d5(0x155),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x119),'hidden':!![]},{'name':a258_0x1041d5(0x13b),'meowKey':'query','type':'string','description':a258_0x1041d5(0x138),'hidden':!![]},{'name':a258_0x1041d5(0x16d),'meowKey':'topk','type':'string','description':'Maximum\x20search\x20hits','hidden':!![]},{'name':a258_0x1041d5(0x163),'meowKey':a258_0x1041d5(0x163),'type':'boolean','description':'Clear','hidden':!![]},{'name':'watch','meowKey':a258_0x1041d5(0x1a0),'type':'boolean','description':'Watch\x20mode','hidden':!![]},{'name':a258_0x1041d5(0x127),'meowKey':a258_0x1041d5(0x127),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x15d),'hidden':!![]},{'name':a258_0x1041d5(0x17a),'meowKey':a258_0x1041d5(0x17a),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x188),'hidden':!![]},{'name':a258_0x1041d5(0x145),'meowKey':a258_0x1041d5(0x145),'type':'string','description':a258_0x1041d5(0x16a),'hidden':!![]},{'name':a258_0x1041d5(0x12c),'meowKey':a258_0x1041d5(0x12c),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x19f),'hidden':!![]},{'name':a258_0x1041d5(0x15c),'meowKey':a258_0x1041d5(0x17e),'type':'boolean','description':a258_0x1041d5(0x178),'hidden':!![]},{'name':'id','meowKey':'id','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x16b),'hidden':!![]},{'name':a258_0x1041d5(0x196),'meowKey':'type','type':'string','description':a258_0x1041d5(0x170),'hidden':!![]},{'name':a258_0x1041d5(0x172),'meowKey':a258_0x1041d5(0x172),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x158),'hidden':!![]},{'name':a258_0x1041d5(0x129),'meowKey':'flowCode','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x16c),'hidden':!![]},{'name':a258_0x1041d5(0x15f),'meowKey':'flowName','type':'string','description':'Flow\x20name','hidden':!![]},{'name':a258_0x1041d5(0x157),'meowKey':a258_0x1041d5(0x19c),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x173),'hidden':!![]},{'name':'flow-type','meowKey':a258_0x1041d5(0x194),'type':a258_0x1041d5(0x13d),'description':'Flow\x20type','hidden':!![]},{'name':a258_0x1041d5(0x183),'meowKey':a258_0x1041d5(0x11f),'type':'string','description':a258_0x1041d5(0x16a),'hidden':!![]},{'name':a258_0x1041d5(0x165),'meowKey':a258_0x1041d5(0x165),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x13a),'hidden':!![]},{'name':'sql-name','meowKey':a258_0x1041d5(0x177),'type':a258_0x1041d5(0x13d),'description':'SQL\x20name','hidden':!![]},{'name':a258_0x1041d5(0x11c),'meowKey':'sqlname','type':a258_0x1041d5(0x13d),'description':'SQL\x20name','hidden':!![]},{'name':a258_0x1041d5(0x132),'meowKey':'dbId','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x191),'hidden':!![]},{'name':a258_0x1041d5(0x116),'meowKey':'dbid','type':'string','description':a258_0x1041d5(0x191),'hidden':!![]},{'name':a258_0x1041d5(0x18d),'meowKey':a258_0x1041d5(0x18d),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x130),'hidden':!![]},{'name':a258_0x1041d5(0x14a),'meowKey':a258_0x1041d5(0x181),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x189),'hidden':!![]},{'name':a258_0x1041d5(0x151),'meowKey':a258_0x1041d5(0x151),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x184),'hidden':!![]},{'name':a258_0x1041d5(0x153),'meowKey':'pageSize','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x134),'hidden':!![]},{'name':a258_0x1041d5(0x19d),'meowKey':a258_0x1041d5(0x19d),'type':a258_0x1041d5(0x13d),'description':'Page\x20size','hidden':!![]},{'name':'keyword','meowKey':a258_0x1041d5(0x18a),'type':'string','description':a258_0x1041d5(0x18c),'hidden':!![]},{'name':'code','meowKey':a258_0x1041d5(0x148),'type':'string','description':a258_0x1041d5(0x14d),'hidden':!![]},{'name':a258_0x1041d5(0x164),'meowKey':a258_0x1041d5(0x164),'type':'string','description':'SQL\x20string','hidden':!![]},{'name':'schemas','meowKey':a258_0x1041d5(0x12a),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x118),'hidden':!![]},{'name':a258_0x1041d5(0x176),'meowKey':a258_0x1041d5(0x176),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x147),'hidden':!![]},{'name':a258_0x1041d5(0x18e),'meowKey':a258_0x1041d5(0x18e),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x17f),'hidden':!![]},{'name':'skip-imports','meowKey':a258_0x1041d5(0x136),'type':'boolean','description':a258_0x1041d5(0x18f),'hidden':!![]},{'name':a258_0x1041d5(0x124),'meowKey':a258_0x1041d5(0x124),'type':a258_0x1041d5(0x13d),'description':'Config\x20key','hidden':!![]},{'name':a258_0x1041d5(0x12d),'meowKey':'value','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x139),'hidden':!![]},{'name':'tags','meowKey':a258_0x1041d5(0x195),'type':a258_0x1041d5(0x13d),'description':'Tags','hidden':!![]},{'name':a258_0x1041d5(0x18b),'meowKey':'stdin','type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x126),'hidden':!![]},{'name':a258_0x1041d5(0x192),'meowKey':a258_0x1041d5(0x143),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x1a2),'hidden':!![]},{'name':a258_0x1041d5(0x121),'meowKey':a258_0x1041d5(0x121),'type':'boolean','description':'Reveal\x20sensitive\x20value','hidden':!![]},{'name':a258_0x1041d5(0x185),'meowKey':a258_0x1041d5(0x185),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x198),'hidden':!![]},{'name':a258_0x1041d5(0x19b),'meowKey':a258_0x1041d5(0x19b),'type':'boolean','description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':a258_0x1041d5(0x175),'meowKey':a258_0x1041d5(0x175),'type':a258_0x1041d5(0x14c),'description':a258_0x1041d5(0x144),'hidden':!![]},{'name':'verbose','meowKey':'verbose','type':'boolean','description':a258_0x1041d5(0x13e),'hidden':!![]},{'name':a258_0x1041d5(0x168),'meowKey':a258_0x1041d5(0x11e),'type':a258_0x1041d5(0x13d),'description':'Expected\x20affected\x20count','hidden':!![]},{'name':a258_0x1041d5(0x131),'meowKey':a258_0x1041d5(0x131),'type':'string','description':'Menu\x20label','hidden':!![]},{'name':a258_0x1041d5(0x135),'meowKey':a258_0x1041d5(0x140),'type':a258_0x1041d5(0x13d),'description':'Parent\x20menu\x20id','hidden':!![]},{'name':'sort','meowKey':a258_0x1041d5(0x146),'type':'string','description':'Menu\x20sort\x20value','hidden':!![]},{'name':'expect-parent-id','meowKey':a258_0x1041d5(0x125),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x15a),'hidden':!![]},{'name':'expect-path','meowKey':a258_0x1041d5(0x16e),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x154),'hidden':!![]},{'name':a258_0x1041d5(0x15b),'meowKey':a258_0x1041d5(0x128),'type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x133),'hidden':!![]},{'name':a258_0x1041d5(0x115),'meowKey':'menuIds','type':'string','description':a258_0x1041d5(0x113),'hidden':!![]},{'name':a258_0x1041d5(0x159),'meowKey':a258_0x1041d5(0x171),'type':a258_0x1041d5(0x13d),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a258_0x1041d5(0x117),'meowKey':a258_0x1041d5(0x152),'type':'string','description':a258_0x1041d5(0x147),'hidden':!![]},{'name':a258_0x1041d5(0x167),'meowKey':'functionNode','type':a258_0x1041d5(0x13d),'description':a258_0x1041d5(0x137),'hidden':!![]},{'name':a258_0x1041d5(0x142),'meowKey':a258_0x1041d5(0x142),'type':'string','description':'Comma-separated\x20metadata\x20codes','hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set([a258_0x1041d5(0x190),a258_0x1041d5(0x120),'env','format','jq',a258_0x1041d5(0x156),a258_0x1041d5(0x14b),a258_0x1041d5(0x160),'ci']);export function buildMeowFlags(){const _0x11fb64=a258_0x1041d5;return Object[_0x11fb64(0x15e)](GLOBAL_FLAGS[_0x11fb64(0x12e)](_0x1afa7f=>[_0x1afa7f[_0x11fb64(0x17d)],{'type':_0x1afa7f[_0x11fb64(0x196)]}]));}
@@ -1 +1 @@
1
- const a258_0x12df46=a258_0x5c39;(function(_0x3cc075,_0x4bce05){const _0x2f8588=a258_0x5c39,_0x361861=_0x3cc075();while(!![]){try{const _0xc91b35=-parseInt(_0x2f8588(0x183))/0x1+parseInt(_0x2f8588(0x17f))/0x2*(-parseInt(_0x2f8588(0x17d))/0x3)+parseInt(_0x2f8588(0x181))/0x4+-parseInt(_0x2f8588(0x182))/0x5+-parseInt(_0x2f8588(0x17e))/0x6+parseInt(_0x2f8588(0x184))/0x7*(-parseInt(_0x2f8588(0x187))/0x8)+-parseInt(_0x2f8588(0x180))/0x9*(-parseInt(_0x2f8588(0x185))/0xa);if(_0xc91b35===_0x4bce05)break;else _0x361861['push'](_0x361861['shift']());}catch(_0x3001b7){_0x361861['push'](_0x361861['shift']());}}}(a258_0x273a,0xb43c4));function a258_0x5c39(_0x43a359,_0x31efd1){_0x43a359=_0x43a359-0x17d;const _0x273a1c=a258_0x273a();let _0x5c39e7=_0x273a1c[_0x43a359];return _0x5c39e7;}import{DEFAULT_API_DIR}from'../constant/paths.js';function a258_0x273a(){const _0x24818f=['9584yjGcII','write','compress','333rQyESj','3258402jjxyms','5718wJcKjM','50094bxBiDb','80224LbpHJv','1510565SZmoHG','741565yJjLll','8029XVDugf','7180NTMDjT','production'];a258_0x273a=function(){return _0x24818f;};return a258_0x273a();}export const DEFAULT_CONFIG_VALUES={'env':a258_0x12df46(0x186),'format':'compress','locale':'en-US','riskLevel':a258_0x12df46(0x188),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a258_0x12df46(0x189);
1
+ const a259_0x2dd627=a259_0x28ae;(function(_0x799def,_0x2bb59c){const _0x47fb37=a259_0x28ae,_0x54aa76=_0x799def();while(!![]){try{const _0x52b6f2=parseInt(_0x47fb37(0xcd))/0x1+parseInt(_0x47fb37(0xc9))/0x2*(-parseInt(_0x47fb37(0xc4))/0x3)+parseInt(_0x47fb37(0xc7))/0x4+parseInt(_0x47fb37(0xca))/0x5*(-parseInt(_0x47fb37(0xcc))/0x6)+parseInt(_0x47fb37(0xc3))/0x7*(parseInt(_0x47fb37(0xc5))/0x8)+-parseInt(_0x47fb37(0xc6))/0x9+parseInt(_0x47fb37(0xcb))/0xa;if(_0x52b6f2===_0x2bb59c)break;else _0x54aa76['push'](_0x54aa76['shift']());}catch(_0xb829e1){_0x54aa76['push'](_0x54aa76['shift']());}}}(a259_0x505f,0xda808));function a259_0x28ae(_0xa83ce7,_0x2cfab0){_0xa83ce7=_0xa83ce7-0xc0;const _0x505f47=a259_0x505f();let _0x28ae90=_0x505f47[_0xa83ce7];return _0x28ae90;}import{DEFAULT_API_DIR}from'../constant/paths.js';export const DEFAULT_CONFIG_VALUES={'env':a259_0x2dd627(0xc2),'format':'compress','locale':a259_0x2dd627(0xc0),'riskLevel':a259_0x2dd627(0xc1),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a259_0x2dd627(0xc8);function a259_0x505f(){const _0xa5cf36=['production','5226473BJkyEh','852408wElqFX','8WNybuo','5655321DUxbzO','4836296ccjlQc','compress','12VSeqAW','1217315NfNTiH','23801300NpgFWc','30DiZwgo','109641sGAAyX','en-US','write'];a259_0x505f=function(){return _0xa5cf36;};return a259_0x505f();}
@@ -9,6 +9,8 @@ export declare function initDomains(domains?: {
9
9
  runtimeDomain?: string;
10
10
  skillDomain?: string;
11
11
  kbDomain?: string;
12
+ kbServiceDomain?: string;
13
+ allowOfficialKbServiceDefault?: boolean;
12
14
  appDomain?: string;
13
15
  localDomain?: string;
14
16
  certificateDomain?: string;
@@ -23,6 +25,8 @@ export declare const getApiDomain: () => string;
23
25
  export declare const getRuntimeDomain: () => string;
24
26
  export declare const getSkillDomain: () => string;
25
27
  export declare const getKbDomain: () => string;
28
+ /** Resolve only the dedicated KB search service; never infer it from another service. */
29
+ export declare const getKbServiceDomain: () => string | undefined;
26
30
  export declare const getAppDomain: () => string;
27
31
  export declare const getActiveRegion: () => "global" | "id" | "cn";
28
32
  export declare const getLocalDomain: () => string | undefined;
@@ -1 +1 @@
1
- const a259_0x5bfeaf=a259_0x2ebd;(function(_0x27650c,_0x470d44){const _0x1941d5=a259_0x2ebd,_0x574de7=_0x27650c();while(!![]){try{const _0x4a7d87=parseInt(_0x1941d5(0x164))/0x1+-parseInt(_0x1941d5(0x174))/0x2+-parseInt(_0x1941d5(0x16b))/0x3+parseInt(_0x1941d5(0x171))/0x4*(parseInt(_0x1941d5(0x16a))/0x5)+-parseInt(_0x1941d5(0x170))/0x6*(-parseInt(_0x1941d5(0x15d))/0x7)+-parseInt(_0x1941d5(0x15e))/0x8+-parseInt(_0x1941d5(0x16f))/0x9*(-parseInt(_0x1941d5(0x15b))/0xa);if(_0x4a7d87===_0x470d44)break;else _0x574de7['push'](_0x574de7['shift']());}catch(_0xce110f){_0x574de7['push'](_0x574de7['shift']());}}}(a259_0x5657,0x9c6a3));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x513741=a259_0x2ebd,_0x5ac27c=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x5ac27c[_0x513741(0x161)]['production']:_0x5ac27c[_0x513741(0x161)][_0x513741(0x172)]??_0x5ac27c[_0x513741(0x161)][_0x513741(0x168)];}export function initDomains(_0x4523a4){const _0x327562=a259_0x2ebd;customApiDomain=_0x4523a4?.[_0x327562(0x160)],customUserDomain=_0x4523a4?.[_0x327562(0x165)],customRuntimeDomain=_0x4523a4?.['runtimeDomain'],customSkillDomain=_0x4523a4?.[_0x327562(0x15f)],customKbDomain=_0x4523a4?.[_0x327562(0x167)],customAppDomain=_0x4523a4?.[_0x327562(0x16d)],customLocalDomain=_0x4523a4?.['localDomain'],customCertificateDomain=_0x4523a4?.[_0x327562(0x159)],customCdn=_0x4523a4?.[_0x327562(0x163)],activeRegion=_0x4523a4?.[_0x327562(0x162)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a259_0x5bfeaf(0x173)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a259_0x5bfeaf(0x169)];function a259_0x2ebd(_0x1a2e6f,_0x2dbb39){_0x1a2e6f=_0x1a2e6f-0x159;const _0x56578e=a259_0x5657();let _0x2ebd1d=_0x56578e[_0x1a2e6f];return _0x2ebd1d;}export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a259_0x5bfeaf(0x15c)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a259_0x5bfeaf(0x166)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x43268b=a259_0x5bfeaf;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x43268b(0x169)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}function a259_0x5657(){const _0x44c771=['certificateDomain','origin','20XjzhUr','skill','5042569UdXeBP','3437712XMjFKc','skillDomain','apiDomain','serviceDomains','region','cdn','1017043PBHHgY','userDomain','app','kbDomain','production','runtime','219980lLpWGF','3282309GaEbEY','trim','appDomain','hostname','5665437oIeDap','6IkqHEY','16wXNGjt','daily','user','2015776HbctLy'];a259_0x5657=function(){return _0x44c771;};return a259_0x5657();}export const getAppBaseUrl=_0x387b8b=>{const _0x295658=a259_0x5bfeaf,_0x5e0106=encodeURIComponent(_0x387b8b[_0x295658(0x16c)]());return isProduction(getEnv())?getAppDomain()+'/app/'+_0x5e0106:getAppDomain()+'/web-app/app/'+_0x5e0106;};export const getPublishedAppDomain=_0x352a6c=>{const _0x24cbba=a259_0x5bfeaf,_0x345243=new URL(getAppDomain());return _0x345243[_0x24cbba(0x16e)]=_0x352a6c['trim']()+'.'+_0x345243[_0x24cbba(0x16e)],_0x345243[_0x24cbba(0x15a)];};
1
+ const a260_0x11f93b=a260_0x212c;(function(_0x4fda71,_0x18f7c6){const _0x47db88=a260_0x212c,_0x212a37=_0x4fda71();while(!![]){try{const _0x28a1ff=-parseInt(_0x47db88(0x1fe))/0x1+-parseInt(_0x47db88(0x1f0))/0x2+-parseInt(_0x47db88(0x1fa))/0x3+-parseInt(_0x47db88(0x1ff))/0x4*(parseInt(_0x47db88(0x1f9))/0x5)+parseInt(_0x47db88(0x1eb))/0x6*(-parseInt(_0x47db88(0x205))/0x7)+parseInt(_0x47db88(0x1fc))/0x8*(-parseInt(_0x47db88(0x204))/0x9)+parseInt(_0x47db88(0x200))/0xa*(parseInt(_0x47db88(0x1ea))/0xb);if(_0x28a1ff===_0x18f7c6)break;else _0x212a37['push'](_0x212a37['shift']());}catch(_0x35639d){_0x212a37['push'](_0x212a37['shift']());}}}(a260_0x24e4,0x5bd1a));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';function a260_0x24e4(){const _0x223019=['region','11qcGzjh','141150VUBebJ','api','allowOfficialKbServiceDefault','origin','runtime','652974UtjFKc','daily','kbService','/web-app/app/','trim','app','user','skillDomain','serviceDomains','95BGwhNx','1001340wiSlUv','userDomain','56coBQIb','hostname','132944vuIhCi','89576llzSVC','19988390tNvTqb','production','/app/','appDomain','489249rbdici','7aYauao'];a260_0x24e4=function(){return _0x223019;};return a260_0x24e4();}import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x4b0556=a260_0x212c,_0x2e833d=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x2e833d[_0x4b0556(0x1f8)][_0x4b0556(0x201)]:_0x2e833d[_0x4b0556(0x1f8)][_0x4b0556(0x1f1)]??_0x2e833d[_0x4b0556(0x1f8)][_0x4b0556(0x201)];}export function initDomains(_0x1397d6){const _0x54ca17=a260_0x212c;customApiDomain=_0x1397d6?.['apiDomain'],customUserDomain=_0x1397d6?.[_0x54ca17(0x1fb)],customRuntimeDomain=_0x1397d6?.['runtimeDomain'],customSkillDomain=_0x1397d6?.[_0x54ca17(0x1f7)],customKbDomain=_0x1397d6?.['kbDomain'],customKbServiceDomain=_0x1397d6?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x1397d6?.[_0x54ca17(0x1ed)]??!![],customAppDomain=_0x1397d6?.[_0x54ca17(0x203)],customLocalDomain=_0x1397d6?.['localDomain'],customCertificateDomain=_0x1397d6?.['certificateDomain'],customCdn=_0x1397d6?.['cdn'],activeRegion=_0x1397d6?.[_0x54ca17(0x1e9)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a260_0x11f93b(0x1f6)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()[a260_0x11f93b(0x1ec)];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a260_0x11f93b(0x1ef)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()['skill'];function a260_0x212c(_0x239647,_0x2dc000){_0x239647=_0x239647-0x1e9;const _0x24e443=a260_0x24e4();let _0x212cc0=_0x24e443[_0x239647];return _0x212cc0;}export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x2b55c8=a260_0x11f93b;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x2b55c8(0x1f2)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a260_0x11f93b(0x1f5)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){const _0x4c8ead=a260_0x11f93b;if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()[_0x4c8ead(0x1ef)])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x46e671=>{const _0x294513=a260_0x11f93b,_0x3b86a6=encodeURIComponent(_0x46e671[_0x294513(0x1f4)]());return isProduction(getEnv())?getAppDomain()+_0x294513(0x202)+_0x3b86a6:getAppDomain()+_0x294513(0x1f3)+_0x3b86a6;};export const getPublishedAppDomain=_0xaa6aa5=>{const _0x464097=a260_0x11f93b,_0x5e1cb7=new URL(getAppDomain());return _0x5e1cb7['hostname']=_0xaa6aa5[_0x464097(0x1f4)]()+'.'+_0x5e1cb7[_0x464097(0x1fd)],_0x5e1cb7[_0x464097(0x1ee)];};
@@ -1 +1 @@
1
- const a260_0x3c1aea=a260_0x3897;(function(_0x4bbb21,_0x40d6ab){const _0xed62e0=a260_0x3897,_0x4616a5=_0x4bbb21();while(!![]){try{const _0xeb098c=parseInt(_0xed62e0(0x7b))/0x1*(parseInt(_0xed62e0(0x78))/0x2)+-parseInt(_0xed62e0(0x7d))/0x3+-parseInt(_0xed62e0(0x7e))/0x4+parseInt(_0xed62e0(0x79))/0x5+parseInt(_0xed62e0(0x73))/0x6*(-parseInt(_0xed62e0(0x75))/0x7)+-parseInt(_0xed62e0(0x7c))/0x8+-parseInt(_0xed62e0(0x76))/0x9*(-parseInt(_0xed62e0(0x7f))/0xa);if(_0xeb098c===_0x40d6ab)break;else _0x4616a5['push'](_0x4616a5['shift']());}catch(_0x3ffd57){_0x4616a5['push'](_0x4616a5['shift']());}}}(a260_0x2713,0x54660));export const RABETBASE_ENV_VALUES=[a260_0x3c1aea(0x7a),a260_0x3c1aea(0x77)];export function normalizeEnv(_0x140ede){const _0x19467e=a260_0x3c1aea;return _0x140ede==='online'?_0x19467e(0x7a):_0x140ede;}export function isProduction(_0x51b0ca){const _0xd37662=a260_0x3c1aea;return normalizeEnv(_0x51b0ca)===_0xd37662(0x7a);}function a260_0x3897(_0x5ee6f1,_0x318f9b){_0x5ee6f1=_0x5ee6f1-0x73;const _0x2713c5=a260_0x2713();let _0x3897ae=_0x2713c5[_0x5ee6f1];return _0x3897ae;}export function isDaily(_0x4651e2){const _0x1f56a5=a260_0x3c1aea;return normalizeEnv(_0x4651e2)===_0x1f56a5(0x77);}function a260_0x2713(){const _0x49905b=['2743336yqBvSQ','1867215kHgxNX','2639036OodPRj','530tUSMdE','558LSfFKm','dev','44331OdjyVX','270297prfeyS','daily','274754OQNzhQ','1405560kkQSkI','production','5VNHoIi'];a260_0x2713=function(){return _0x49905b;};return a260_0x2713();}export function isDev(_0x22032f){const _0x12c599=a260_0x3c1aea,_0x4a0738=normalizeEnv(_0x22032f);return _0x4a0738==='development'||_0x4a0738===_0x12c599(0x74);}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||'production');export function getEnv(){return env;}export function initEnv(_0x4d3ad5){env=normalizeEnv(_0x4d3ad5);}
1
+ const a261_0x4dbb1c=a261_0x2166;(function(_0x5c5567,_0x30e041){const _0x16b07b=a261_0x2166,_0x10b6f2=_0x5c5567();while(!![]){try{const _0x247eed=parseInt(_0x16b07b(0xf9))/0x1*(-parseInt(_0x16b07b(0xf4))/0x2)+-parseInt(_0x16b07b(0x102))/0x3*(-parseInt(_0x16b07b(0xfd))/0x4)+-parseInt(_0x16b07b(0xfc))/0x5*(parseInt(_0x16b07b(0xfe))/0x6)+-parseInt(_0x16b07b(0xf8))/0x7*(parseInt(_0x16b07b(0xf6))/0x8)+-parseInt(_0x16b07b(0xf7))/0x9+parseInt(_0x16b07b(0xfa))/0xa+parseInt(_0x16b07b(0x100))/0xb*(parseInt(_0x16b07b(0xf3))/0xc);if(_0x247eed===_0x30e041)break;else _0x10b6f2['push'](_0x10b6f2['shift']());}catch(_0x49c8d6){_0x10b6f2['push'](_0x10b6f2['shift']());}}}(a261_0x5979,0x292a2));export const RABETBASE_ENV_VALUES=[a261_0x4dbb1c(0xff),a261_0x4dbb1c(0xfb)];export function normalizeEnv(_0xfddd00){const _0x4fc378=a261_0x4dbb1c;return _0xfddd00==='online'?_0x4fc378(0xff):_0xfddd00;}export function isProduction(_0x32ec0d){const _0x356204=a261_0x4dbb1c;return normalizeEnv(_0x32ec0d)===_0x356204(0xff);}function a261_0x2166(_0x399568,_0x82a048){_0x399568=_0x399568-0xf3;const _0x5979fb=a261_0x5979();let _0x216689=_0x5979fb[_0x399568];return _0x216689;}export function isDaily(_0x3ca73b){const _0x2e3d64=a261_0x4dbb1c;return normalizeEnv(_0x3ca73b)===_0x2e3d64(0xfb);}export function isDev(_0xb835ab){const _0x33d3f3=a261_0x4dbb1c,_0x256404=normalizeEnv(_0xb835ab);return _0x256404===_0x33d3f3(0x101)||_0x256404===_0x33d3f3(0xf5);}function a261_0x5979(){const _0x5a53b6=['production','77Xwkkvx','development','21267GfRIYb','1305756zeXRLk','4efWzSx','dev','8gEWvFV','1663578qLjKHW','2068402qfuAxc','82323CRhKVB','2237810VJFMvh','daily','91020LgNstR','16UWCwqo','66tbytBa'];a261_0x5979=function(){return _0x5a53b6;};return a261_0x5979();}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a261_0x4dbb1c(0xff));export function getEnv(){return env;}export function initEnv(_0xb6ea37){env=normalizeEnv(_0xb6ea37);}
@@ -1 +1 @@
1
- function a261_0x314e(_0x2da791,_0x4fe08b){_0x2da791=_0x2da791-0x1e6;const _0x80550c=a261_0x8055();let _0x314ee7=_0x80550c[_0x2da791];return _0x314ee7;}const a261_0x9c3647=a261_0x314e;function a261_0x8055(){const _0x5efeff=['55068XtUXFg','66hSxdWg','554lijxLD','3701912EZkKOD','1377490nWYgJO','27avaxhU','3240UHpEaN','261163aNVTxU','json','4970944ZwuEzc','140qAekBR','439882ZBaSFM','compress'];a261_0x8055=function(){return _0x5efeff;};return a261_0x8055();}(function(_0x9550ab,_0x3bacd5){const _0x3140dc=a261_0x314e,_0x4a7d0d=_0x9550ab();while(!![]){try{const _0x27011c=-parseInt(_0x3140dc(0x1f1))/0x1+parseInt(_0x3140dc(0x1e8))/0x2*(parseInt(_0x3140dc(0x1ec))/0x3)+-parseInt(_0x3140dc(0x1e6))/0x4*(-parseInt(_0x3140dc(0x1f0))/0x5)+-parseInt(_0x3140dc(0x1e7))/0x6*(-parseInt(_0x3140dc(0x1ed))/0x7)+parseInt(_0x3140dc(0x1e9))/0x8+parseInt(_0x3140dc(0x1eb))/0x9*(-parseInt(_0x3140dc(0x1ea))/0xa)+-parseInt(_0x3140dc(0x1ef))/0xb;if(_0x27011c===_0x3bacd5)break;else _0x4a7d0d['push'](_0x4a7d0d['shift']());}catch(_0xe7c3ae){_0x4a7d0d['push'](_0x4a7d0d['shift']());}}}(a261_0x8055,0x3db45));export const RABETBASE_OUTPUT_FORMAT_VALUES=[a261_0x9c3647(0x1ee),'pretty',a261_0x9c3647(0x1f2)];
1
+ function a262_0x269a(_0x471385,_0x13fcf0){_0x471385=_0x471385-0x183;const _0x2b5805=a262_0x2b58();let _0x269a4c=_0x2b5805[_0x471385];return _0x269a4c;}const a262_0x1cb948=a262_0x269a;function a262_0x2b58(){const _0x4df202=['pretty','2413710wYILGo','4062258IrgFzc','38VzGxIl','7474032TCMlpb','4XulYIc','6753173QtLQcH','8276984KgnQMJ','82398HbKEfG','4823645xIXwmB'];a262_0x2b58=function(){return _0x4df202;};return a262_0x2b58();}(function(_0x5cd57a,_0x5654a9){const _0x35ce8a=a262_0x269a,_0x45fe1b=_0x5cd57a();while(!![]){try{const _0x17ab67=-parseInt(_0x35ce8a(0x185))/0x1*(-parseInt(_0x35ce8a(0x18a))/0x2)+-parseInt(_0x35ce8a(0x184))/0x3+parseInt(_0x35ce8a(0x187))/0x4*(-parseInt(_0x35ce8a(0x18b))/0x5)+parseInt(_0x35ce8a(0x183))/0x6+parseInt(_0x35ce8a(0x188))/0x7+parseInt(_0x35ce8a(0x189))/0x8+-parseInt(_0x35ce8a(0x186))/0x9;if(_0x17ab67===_0x5654a9)break;else _0x45fe1b['push'](_0x45fe1b['shift']());}catch(_0x5d2229){_0x45fe1b['push'](_0x45fe1b['shift']());}}}(a262_0x2b58,0xc7b1a));export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a262_0x1cb948(0x18c),'compress'];
@@ -1 +1 @@
1
- (function(_0x319ea0,_0x2747b8){const _0x258c02=a262_0x296a,_0x552b93=_0x319ea0();while(!![]){try{const _0x35cbad=parseInt(_0x258c02(0xfb))/0x1+parseInt(_0x258c02(0xfc))/0x2+parseInt(_0x258c02(0xfa))/0x3+parseInt(_0x258c02(0xff))/0x4*(parseInt(_0x258c02(0xfe))/0x5)+-parseInt(_0x258c02(0xfd))/0x6+-parseInt(_0x258c02(0x100))/0x7*(parseInt(_0x258c02(0x101))/0x8)+parseInt(_0x258c02(0xf9))/0x9*(-parseInt(_0x258c02(0x102))/0xa);if(_0x35cbad===_0x2747b8)break;else _0x552b93['push'](_0x552b93['shift']());}catch(_0x2344bf){_0x552b93['push'](_0x552b93['shift']());}}}(a262_0x3965,0x7160f));function a262_0x296a(_0x4a2760,_0x14c58e){_0x4a2760=_0x4a2760-0xf9;const _0x3965ad=a262_0x3965();let _0x296a92=_0x3965ad[_0x4a2760];return _0x296a92;}export const DEFAULT_API_DIR='./src/api';function a262_0x3965(){const _0x56bf16=['68cKLrGj','406FOZceu','26096gZVZlm','340SDcMfs','163359Dfkvtb','1624218zugyjg','714838ZiEHUj','990796VtCJRJ','5339496lMVPNZ','120295NbFteS'];a262_0x3965=function(){return _0x56bf16;};return a262_0x3965();}
1
+ function a263_0x2027(_0xc800c,_0xd9fae0){_0xc800c=_0xc800c-0xb8;const _0x400576=a263_0x4005();let _0x202788=_0x400576[_0xc800c];return _0x202788;}function a263_0x4005(){const _0x1b3617=['43DwCjun','8478081kuWIZP','5CoaIEg','819732SNEogj','5942iKNKwj','1236504yRxzTp','923805XnWPJL','2403709lVCYkk','372150MyNeDz','./src/api'];a263_0x4005=function(){return _0x1b3617;};return a263_0x4005();}const a263_0x456479=a263_0x2027;(function(_0x1c9f63,_0xea08e1){const _0x3579f3=a263_0x2027,_0x158c49=_0x1c9f63();while(!![]){try{const _0x50add1=parseInt(_0x3579f3(0xc0))/0x1*(parseInt(_0x3579f3(0xba))/0x2)+-parseInt(_0x3579f3(0xbc))/0x3+parseInt(_0x3579f3(0xb9))/0x4*(-parseInt(_0x3579f3(0xb8))/0x5)+parseInt(_0x3579f3(0xbe))/0x6+-parseInt(_0x3579f3(0xbd))/0x7+parseInt(_0x3579f3(0xbb))/0x8+parseInt(_0x3579f3(0xc1))/0x9;if(_0x50add1===_0xea08e1)break;else _0x158c49['push'](_0x158c49['shift']());}catch(_0x334065){_0x158c49['push'](_0x158c49['shift']());}}}(a263_0x4005,0x6900f));export const DEFAULT_API_DIR=a263_0x456479(0xbf);
@@ -1,7 +1,7 @@
1
1
  /** Every official routing profile known to this CLI, including reserved profiles. */
2
2
  export declare const LOVRABET_REGION_VALUES: readonly ["cn", "id", "global"];
3
3
  /** Regions currently available for new CLI configuration. */
4
- export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id"];
4
+ export declare const ENABLED_LOVRABET_REGION_VALUES: readonly ["cn", "id", "global"];
5
5
  export type LovrabetRegion = (typeof LOVRABET_REGION_VALUES)[number];
6
6
  export declare const DEFAULT_LOVRABET_REGION: LovrabetRegion;
7
7
  export declare function isLovrabetRegion(value: unknown): value is LovrabetRegion;
@@ -1 +1 @@
1
- (function(_0x214c6f,_0x308d1f){const _0x5a2734=a263_0x1254,_0x58ceff=_0x214c6f();while(!![]){try{const _0x4d548f=parseInt(_0x5a2734(0xd2))/0x1+-parseInt(_0x5a2734(0xd9))/0x2*(parseInt(_0x5a2734(0xd4))/0x3)+-parseInt(_0x5a2734(0xd8))/0x4+parseInt(_0x5a2734(0xda))/0x5*(parseInt(_0x5a2734(0xd7))/0x6)+parseInt(_0x5a2734(0xd0))/0x7+-parseInt(_0x5a2734(0xd5))/0x8+parseInt(_0x5a2734(0xd6))/0x9;if(_0x4d548f===_0x308d1f)break;else _0x58ceff['push'](_0x58ceff['shift']());}catch(_0x2089c4){_0x58ceff['push'](_0x58ceff['shift']());}}}(a263_0x3af4,0xf183a));function a263_0x3af4(){const _0xb4ca69=['861330jPOIaN','string','114gBmjcp','15550064ePYLMt','22410945teViCU','6RBPeGd','3916748lCNcMw','50350YEumPP','420725NsjwPJ','10032799GYGdKX','includes'];a263_0x3af4=function(){return _0xb4ca69;};return a263_0x3af4();}import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x2335fb){const _0x170764=a263_0x1254;return typeof _0x2335fb===_0x170764(0xd3)&&LOVRABET_REGION_VALUES[_0x170764(0xd1)](_0x2335fb);}function a263_0x1254(_0x518eb2,_0x41fc97){_0x518eb2=_0x518eb2-0xd0;const _0x3af430=a263_0x3af4();let _0x125486=_0x3af430[_0x518eb2];return _0x125486;}export function isEnabledLovrabetRegion(_0x374b63){const _0x521e2e=a263_0x1254;return typeof _0x374b63===_0x521e2e(0xd3)&&ENABLED_LOVRABET_REGION_VALUES[_0x521e2e(0xd1)](_0x374b63);}export function normalizeLovrabetRegion(_0x476fb9){if(typeof _0x476fb9!=='string')return undefined;const _0x3e8618=REGION_ALIASES[_0x476fb9]??_0x476fb9;return isLovrabetRegion(_0x3e8618)?_0x3e8618:undefined;}export function isInvalidLovrabetRegion(_0x366351){return _0x366351!==undefined&&_0x366351!==null&&_0x366351!==''&&normalizeLovrabetRegion(_0x366351)===undefined;}
1
+ (function(_0x21fd85,_0x317bad){const _0x552a6d=a264_0x5ac0,_0x23e19f=_0x21fd85();while(!![]){try{const _0x54ab0c=-parseInt(_0x552a6d(0xdf))/0x1*(-parseInt(_0x552a6d(0xde))/0x2)+parseInt(_0x552a6d(0xd9))/0x3*(-parseInt(_0x552a6d(0xdd))/0x4)+parseInt(_0x552a6d(0xda))/0x5+parseInt(_0x552a6d(0xd8))/0x6*(-parseInt(_0x552a6d(0xe0))/0x7)+-parseInt(_0x552a6d(0xdb))/0x8+parseInt(_0x552a6d(0xe3))/0x9+parseInt(_0x552a6d(0xe2))/0xa;if(_0x54ab0c===_0x317bad)break;else _0x23e19f['push'](_0x23e19f['shift']());}catch(_0x32bb2b){_0x23e19f['push'](_0x23e19f['shift']());}}}(a264_0x5ca8,0x8cdee));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;function a264_0x5ac0(_0x139c1f,_0x43280a){_0x139c1f=_0x139c1f-0xd8;const _0x5ca888=a264_0x5ca8();let _0x5ac030=_0x5ca888[_0x139c1f];return _0x5ac030;}export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x3e2a71){return typeof _0x3e2a71==='string'&&LOVRABET_REGION_VALUES['includes'](_0x3e2a71);}export function isEnabledLovrabetRegion(_0x37eaf8){const _0x270791=a264_0x5ac0;return typeof _0x37eaf8===_0x270791(0xdc)&&ENABLED_LOVRABET_REGION_VALUES[_0x270791(0xe1)](_0x37eaf8);}function a264_0x5ca8(){const _0x5aaba6=['1726118wZEHIF','1dLZaqA','12068qQOxNp','includes','7744820SamCxO','928935dEBeWe','276UTeBpn','15CCQKQI','1790190gSuFbs','5705392oBhCRZ','string','583448tuxJLw'];a264_0x5ca8=function(){return _0x5aaba6;};return a264_0x5ca8();}export function normalizeLovrabetRegion(_0x17206a){const _0x163a87=a264_0x5ac0;if(typeof _0x17206a!==_0x163a87(0xdc))return undefined;const _0x3823d8=REGION_ALIASES[_0x17206a]??_0x17206a;return isLovrabetRegion(_0x3823d8)?_0x3823d8:undefined;}export function isInvalidLovrabetRegion(_0x7522d4){return _0x7522d4!==undefined&&_0x7522d4!==null&&_0x7522d4!==''&&normalizeLovrabetRegion(_0x7522d4)===undefined;}
@@ -1 +1 @@
1
- function a264_0x28d4(_0x4a413b,_0x509a82){_0x4a413b=_0x4a413b-0x121;const _0x3db63f=a264_0x3db6();let _0x28d477=_0x3db63f[_0x4a413b];return _0x28d477;}function a264_0x3db6(){const _0x2f6506=['128352nwCdRF','7wfZPxP','1575oKOMNC','18350UTJXzZ','915418RrZDiL','8521096vNQFRQ','5AeoyAJ','7220389YnUKXO','631999zMyuXY','6XSDGHZ','2119892xNodJL'];a264_0x3db6=function(){return _0x2f6506;};return a264_0x3db6();}(function(_0x34cc4f,_0x4b408c){const _0x3fdbdc=a264_0x28d4,_0x4ebba2=_0x34cc4f();while(!![]){try{const _0x55387d=parseInt(_0x3fdbdc(0x125))/0x1+-parseInt(_0x3fdbdc(0x121))/0x2*(parseInt(_0x3fdbdc(0x126))/0x3)+parseInt(_0x3fdbdc(0x127))/0x4*(-parseInt(_0x3fdbdc(0x123))/0x5)+parseInt(_0x3fdbdc(0x128))/0x6+-parseInt(_0x3fdbdc(0x129))/0x7*(-parseInt(_0x3fdbdc(0x122))/0x8)+parseInt(_0x3fdbdc(0x12a))/0x9*(-parseInt(_0x3fdbdc(0x12b))/0xa)+parseInt(_0x3fdbdc(0x124))/0xb;if(_0x55387d===_0x4b408c)break;else _0x4ebba2['push'](_0x4ebba2['shift']());}catch(_0x3f6fef){_0x4ebba2['push'](_0x4ebba2['shift']());}}}(a264_0x3db6,0x9489b));export const RISK_LEVEL_VALUES=['read','write','high-risk-write'];
1
+ function a265_0x1f50(_0x2cdfc1,_0x48d1bc){_0x2cdfc1=_0x2cdfc1-0x141;const _0x285b4e=a265_0x285b();let _0x1f507c=_0x285b4e[_0x2cdfc1];return _0x1f507c;}const a265_0x3df266=a265_0x1f50;(function(_0x4d9e9,_0x464cca){const _0x425b78=a265_0x1f50,_0x114b22=_0x4d9e9();while(!![]){try{const _0x59dc85=-parseInt(_0x425b78(0x14c))/0x1*(parseInt(_0x425b78(0x145))/0x2)+-parseInt(_0x425b78(0x142))/0x3*(parseInt(_0x425b78(0x146))/0x4)+-parseInt(_0x425b78(0x14b))/0x5+-parseInt(_0x425b78(0x147))/0x6+parseInt(_0x425b78(0x148))/0x7*(parseInt(_0x425b78(0x144))/0x8)+-parseInt(_0x425b78(0x143))/0x9+parseInt(_0x425b78(0x149))/0xa*(parseInt(_0x425b78(0x141))/0xb);if(_0x59dc85===_0x464cca)break;else _0x114b22['push'](_0x114b22['shift']());}catch(_0x15803b){_0x114b22['push'](_0x114b22['shift']());}}}(a265_0x285b,0xec89a));export const RISK_LEVEL_VALUES=[a265_0x3df266(0x14a),'write','high-risk-write'];function a265_0x285b(){const _0xca792c=['50009810eEaobF','read','4250825HEYWZj','593PzFRkK','11mZXkmi','3042ljCrKn','10123011cwfpIE','64YGAoGm','6166KZcXpG','3940WfcRBQ','2356140gHKiYU','1017205dTQqiR'];a265_0x285b=function(){return _0xca792c;};return a265_0x285b();}
@@ -6,6 +6,7 @@ export interface LovrabetServiceDomains {
6
6
  readonly runtime: string;
7
7
  readonly skill: string;
8
8
  readonly kb: string;
9
+ readonly kbService?: string;
9
10
  readonly app: string;
10
11
  }
11
12
  export interface OfficialRoutingProfile {
@@ -37,6 +38,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
37
38
  readonly runtime: "https://runtime.lovrabet.com";
38
39
  readonly skill: "https://skills.lovrabet.com";
39
40
  readonly kb: "https://api.lovrabet.com";
41
+ readonly kbService: "https://kb-service.lovrabet.com";
40
42
  readonly app: "https://app.lovrabet.com";
41
43
  };
42
44
  readonly daily: {
@@ -45,6 +47,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
45
47
  readonly runtime: "https://daily-runtime.lovrabet.com";
46
48
  readonly skill: "https://skills-daily.lovrabet.com";
47
49
  readonly kb: "https://daily-api.lovrabet.com";
50
+ readonly kbService: "https://kb-service-daily.lovrabet.com";
48
51
  readonly app: "https://daily.lovrabet.com";
49
52
  };
50
53
  };
@@ -67,6 +70,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
67
70
  readonly runtime: "https://runtime.lovrabet.id";
68
71
  readonly skill: "https://skills.lovrabet.id";
69
72
  readonly kb: "https://api.lovrabet.id";
73
+ readonly kbService: "https://kb-service.lovrabet.id";
70
74
  readonly app: "https://app.lovrabet.id";
71
75
  };
72
76
  };
@@ -79,7 +83,7 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
79
83
  };
80
84
  };
81
85
  readonly global: {
82
- readonly enabled: false;
86
+ readonly enabled: true;
83
87
  readonly label: "Global";
84
88
  readonly aliases: readonly [];
85
89
  readonly serviceDomains: {
@@ -91,9 +95,18 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
91
95
  readonly kb: "https://api.lovrabet.ai";
92
96
  readonly app: "https://app.lovrabet.ai";
93
97
  };
98
+ readonly daily: {
99
+ readonly user: "https://user-daily.lovrabet.ai";
100
+ readonly api: "https://daily-api.lovrabet.ai";
101
+ readonly runtime: "https://daily-runtime.lovrabet.ai";
102
+ readonly skill: "https://skills-daily.lovrabet.ai";
103
+ readonly kb: "https://daily-api.lovrabet.ai";
104
+ readonly app: "https://daily.lovrabet.ai";
105
+ };
94
106
  };
95
107
  readonly cdn: {
96
108
  readonly libraries: "https://cdnjs.cloudflare.com/ajax/libs";
109
+ readonly lovrabet: "https://g.lovrabet.ai";
97
110
  };
98
111
  readonly local: {
99
112
  readonly origin: "https://dev.lovrabet.ai";
@@ -1 +1 @@
1
- (function(_0x2df405,_0x29fc01){const _0x49905b=a265_0x492f,_0x2b4fe3=_0x2df405();while(!![]){try{const _0x28ffc0=parseInt(_0x49905b(0xc4))/0x1+-parseInt(_0x49905b(0xc3))/0x2+-parseInt(_0x49905b(0xbc))/0x3+parseInt(_0x49905b(0xc1))/0x4*(-parseInt(_0x49905b(0xba))/0x5)+-parseInt(_0x49905b(0xc0))/0x6+-parseInt(_0x49905b(0xc2))/0x7+parseInt(_0x49905b(0xbe))/0x8*(parseInt(_0x49905b(0xbb))/0x9);if(_0x28ffc0===_0x29fc01)break;else _0x2b4fe3['push'](_0x2b4fe3['shift']());}catch(_0x352f77){_0x2b4fe3['push'](_0x2b4fe3['shift']());}}}(a265_0xa5ab,0x83bda));function a265_0xa5ab(){const _0x2bfa6d=['2970057bcbFeO','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','424qTsKNf','Official\x20routing\x20for\x20region\x20\x22','3026316ZKQvLN','21476iAeTMq','5437922GsVbnz','603160ycFmVv','70407QUuKIx','85TTQjwm','532071PZoRNz'];a265_0xa5ab=function(){return _0x2bfa6d;};return a265_0xa5ab();}import{OFFICIAL_ROUTING_PROFILES as a265_0x45213e,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a265_0x45213e;function a265_0x492f(_0x4d1443,_0x45e83c){_0x4d1443=_0x4d1443-0xba;const _0xa5ab66=a265_0xa5ab();let _0x492f49=_0xa5ab66[_0x4d1443];return _0x492f49;}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x22f62a){return OFFICIAL_ROUTING_PROFILES[_0x22f62a];}export function getOfficialRoutingCdn(_0x1dd850){const _0x5f436f=a265_0x492f,_0x1bdb3c=getOfficialRoutingProfile(_0x1dd850)['cdn'];if(!_0x1bdb3c['lovrabet'])throw new Error(_0x5f436f(0xbf)+_0x1dd850+_0x5f436f(0xbd));return{'libraries':_0x1bdb3c['libraries'],'lovrabet':_0x1bdb3c['lovrabet']};}
1
+ (function(_0x1a2aa1,_0x3bb7ec){const _0xab3385=a266_0x2b5b,_0xbd8e6b=_0x1a2aa1();while(!![]){try{const _0x58a337=-parseInt(_0xab3385(0x14b))/0x1*(parseInt(_0xab3385(0x14d))/0x2)+-parseInt(_0xab3385(0x148))/0x3+parseInt(_0xab3385(0x153))/0x4+parseInt(_0xab3385(0x150))/0x5+parseInt(_0xab3385(0x14e))/0x6*(-parseInt(_0xab3385(0x156))/0x7)+parseInt(_0xab3385(0x154))/0x8*(parseInt(_0xab3385(0x14f))/0x9)+-parseInt(_0xab3385(0x149))/0xa*(-parseInt(_0xab3385(0x14c))/0xb);if(_0x58a337===_0x3bb7ec)break;else _0xbd8e6b['push'](_0xbd8e6b['shift']());}catch(_0x10746c){_0xbd8e6b['push'](_0xbd8e6b['shift']());}}}(a266_0x3b5c,0x8ee21));import{OFFICIAL_ROUTING_PROFILES as a266_0x246cf7,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a266_0x2b5b(_0x4cc970,_0x4f0e0e){_0x4cc970=_0x4cc970-0x147;const _0x3b5c16=a266_0x3b5c();let _0x2b5b19=_0x3b5c16[_0x4cc970];return _0x2b5b19;}export const OFFICIAL_ROUTING_PROFILES=a266_0x246cf7;function a266_0x3b5c(){const _0x41881f=['40PaFIJV','libraries','822msKIpF','2796321yWzrKe','1028UAwDtE','204186wPDFfZ','9eailli','2785555GDsWtG','Official\x20routing\x20for\x20region\x20\x22','lovrabet','1867020GzwHOo','4228088KNmsNK','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','189VIqLPC','cdn','1927881deAvcJ'];a266_0x3b5c=function(){return _0x41881f;};return a266_0x3b5c();}export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x30cce4){return OFFICIAL_ROUTING_PROFILES[_0x30cce4];}export function getOfficialRoutingCdn(_0x41030f){const _0x38246c=a266_0x2b5b,_0x4827eb=getOfficialRoutingProfile(_0x41030f)[_0x38246c(0x147)];if(!_0x4827eb[_0x38246c(0x152)])throw new Error(_0x38246c(0x151)+_0x41030f+_0x38246c(0x155));return{'libraries':_0x4827eb[_0x38246c(0x14a)],'lovrabet':_0x4827eb[_0x38246c(0x152)]};}
@@ -15,6 +15,7 @@ export interface AppProfile {
15
15
  pageSize?: number;
16
16
  riskLevel?: Risk;
17
17
  locale?: string;
18
+ kbServiceDomain?: string;
18
19
  }
19
20
  export interface ResolvedAppConfig {
20
21
  appCode: string | undefined;
@@ -1 +1 @@
1
- (function(_0x11a83e,_0x4809e4){const _0x15a39d=a266_0x2b52,_0x2e3b95=_0x11a83e();while(!![]){try{const _0x2b1620=-parseInt(_0x15a39d(0x1c0))/0x1+-parseInt(_0x15a39d(0x1be))/0x2*(parseInt(_0x15a39d(0x1d3))/0x3)+parseInt(_0x15a39d(0x1c2))/0x4*(parseInt(_0x15a39d(0x1c9))/0x5)+-parseInt(_0x15a39d(0x1dd))/0x6+parseInt(_0x15a39d(0x1bf))/0x7+parseInt(_0x15a39d(0x1e4))/0x8*(parseInt(_0x15a39d(0x1c3))/0x9)+parseInt(_0x15a39d(0x1df))/0xa;if(_0x2b1620===_0x4809e4)break;else _0x2e3b95['push'](_0x2e3b95['shift']());}catch(_0x473d4b){_0x2e3b95['push'](_0x2e3b95['shift']());}}}(a266_0x42af,0x7c831));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a266_0x42af(){const _0x100515=['keys','format','FORMAT','true','242456LijkdW','ACCESS_KEY','trim','value','projectConfig','787558JwciYW','1845095NXeZjt','1015049CcArHh','defaultApp','3922876KyCKNn','297MrBWfe','filter','accessKey','riskLevel','projectPath','cookie','5mRLhMA','region','ENV','pageSize','apps','APP','string','appcode','entries','read','3LUuDAl','app','production','apiDir','env','globalConfig','write','object','locale','RISK_LEVEL','4131252RwjnMJ','length','3629360FHkpIq'];a266_0x42af=function(){return _0x100515;};return a266_0x42af();}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x35cb8c){const _0x2bde3a=a266_0x2b52;return typeof _0x35cb8c===_0x2bde3a(0x1cf)&&_0x35cb8c[_0x2bde3a(0x1bb)]()?_0x35cb8c[_0x2bde3a(0x1bb)]():undefined;}function appProfiles(_0x298a62){const _0x22fa03=a266_0x2b52;return _0x298a62[_0x22fa03(0x1cd)]&&typeof _0x298a62[_0x22fa03(0x1cd)]===_0x22fa03(0x1da)?_0x298a62['apps']:{};}function resolveDefaultAppName(_0x35d8ec){const _0x99f9d=a266_0x2b52,_0x3309e1=stringConfigValue(_0x35d8ec[_0x99f9d(0x1c1)]);if(_0x3309e1)return _0x3309e1;const _0x2c6e15=Object['keys'](appProfiles(_0x35d8ec));return _0x2c6e15['length']===0x1?_0x2c6e15[0x0]:undefined;}function a266_0x2b52(_0x4d1fef,_0x2ccb3a){_0x4d1fef=_0x4d1fef-0x1ba;const _0x42af04=a266_0x42af();let _0x2b52f2=_0x42af04[_0x4d1fef];return _0x2b52f2;}function resolveTopLevelAppCode(_0x153d49){const _0x342d04=a266_0x2b52;return stringConfigValue(_0x153d49[_0x342d04(0x1d0)])||stringConfigValue(_0x153d49[_0x342d04(0x1d4)]);}function normalizeRiskCeiling(_0x19dc50){const _0x182200=a266_0x2b52;if(_0x19dc50===undefined||_0x19dc50===null)return undefined;if(_0x19dc50===_0x182200(0x1d2)||_0x19dc50===_0x182200(0x1d9)||_0x19dc50==='high-risk-write')return _0x19dc50;return _0x182200(0x1d2);}function resolveRiskCeiling(..._0xa08022){const _0x41cb8f=a266_0x2b52;let _0x2859ff;for(const _0x418ac3 of _0xa08022){const _0x2d6c9b=normalizeRiskCeiling(_0x418ac3);_0x2d6c9b&&(!_0x2859ff||riskLevelOrder(_0x2d6c9b)<riskLevelOrder(_0x2859ff))&&(_0x2859ff=_0x2d6c9b);}return _0x2859ff??DEFAULT_CONFIG_VALUES[_0x41cb8f(0x1c6)];}export function resolveAppConfig({raw:_0x404148,flags:_0x595853,layers:_0x20e4c3,readEnv:_0x1689c7}){const _0x47ed8a=a266_0x2b52,_0x24c366=_0x20e4c3?.[_0x47ed8a(0x1bd)]??{},_0x716d7f=_0x20e4c3?.[_0x47ed8a(0x1d8)]??{},_0x2636df=!!_0x20e4c3?.[_0x47ed8a(0x1c7)]||Object[_0x47ed8a(0x1e0)](_0x24c366)[_0x47ed8a(0x1de)]>0x0,_0x2477d8=!_0x2636df,_0x544593=_0x2636df?resolveDefaultAppName(_0x24c366):undefined,_0x2d313d=_0x2477d8?resolveDefaultAppName(_0x716d7f):undefined,_0x30c5e4=stringConfigValue(_0x595853['app']),_0x17de65=_0x1689c7(_0x47ed8a(0x1ce)),_0x10b9f9={};if(_0x404148[_0x47ed8a(0x1cd)]&&typeof _0x404148[_0x47ed8a(0x1cd)]===_0x47ed8a(0x1da))for(const [_0x24101f,_0xbaf31c]of Object[_0x47ed8a(0x1d1)](_0x404148['apps'])){_0xbaf31c&&typeof _0xbaf31c===_0x47ed8a(0x1da)&&_0xbaf31c[_0x47ed8a(0x1d0)]&&(_0x10b9f9[_0x24101f]=_0xbaf31c);}const _0x37cf8a=_0x544593||_0x2d313d||resolveDefaultAppName(_0x404148),_0x2e0411=Object[_0x47ed8a(0x1e0)](_0x10b9f9)[_0x47ed8a(0x1de)]>0x0,_0x3e4f27=_0x30c5e4||_0x544593||_0x17de65||_0x2d313d||_0x37cf8a||undefined,_0x55613d=stringConfigValue(_0x595853[_0x47ed8a(0x1d0)]),_0x6e092d=_0x55613d?Object[_0x47ed8a(0x1d1)](_0x10b9f9)[_0x47ed8a(0x1c4)](([,_0x32951d])=>_0x32951d?.[_0x47ed8a(0x1d0)]===_0x55613d):[],_0xb4870e=_0x30c5e4&&_0x10b9f9[_0x30c5e4]?.[_0x47ed8a(0x1d0)]===_0x55613d?[_0x30c5e4,_0x10b9f9[_0x30c5e4]]:undefined,_0x2a29f3=_0xb4870e??(_0x6e092d[_0x47ed8a(0x1de)]===0x1?_0x6e092d[0x0]:undefined),_0x361b9a=_0x2a29f3?.[0x0],_0x22e104=_0x2a29f3?.[0x1],_0x1b667b=_0x55613d?_0x361b9a:_0x3e4f27;let _0x32d5ed=_0x1b667b&&_0x10b9f9[_0x1b667b]?_0x10b9f9[_0x1b667b]:undefined;_0x55613d&&_0x22e104&&(_0x32d5ed=_0x22e104);const _0xc4df1a=_0x55613d?_0x22e104??_0x32d5ed:_0x32d5ed,_0x4cd73f=!_0x30c5e4&&!_0x544593&&_0x17de65&&_0x1b667b===_0x17de65,_0x35d8bd=_0x30c5e4||(_0x4cd73f?_0x17de65:undefined)||(_0x55613d?_0x361b9a:undefined),_0x52f9ad=_0xc4df1a?.[_0x47ed8a(0x1d0)],_0x30aeb0=_0x2636df?resolveTopLevelAppCode(_0x24c366):undefined,_0x287505=_0x2477d8?resolveTopLevelAppCode(_0x716d7f):undefined,_0x24ac91=_0x30c5e4||_0x544593?_0x52f9ad:undefined,_0x5df9cb=!_0x30c5e4&&!_0x544593?_0x52f9ad:undefined,_0x35a1f4=_0x55613d||_0x24ac91||_0x30aeb0||_0x5df9cb||_0x287505||undefined,_0x34d905=_0x2636df?stringConfigValue(_0x24c366[_0x47ed8a(0x1d7)]):undefined,_0x2e9b24=_0x2477d8?stringConfigValue(_0x716d7f[_0x47ed8a(0x1d7)]):undefined,_0x294449=_0x595853[_0x47ed8a(0x1d7)]||_0xc4df1a?.[_0x47ed8a(0x1d7)]||_0x34d905||_0x1689c7(_0x47ed8a(0x1cb))||_0x2e9b24||_0x404148[_0x47ed8a(0x1d7)]||DEFAULT_CONFIG_VALUES[_0x47ed8a(0x1d7)],_0xf27246=_0xc4df1a?.[_0x47ed8a(0x1db)]||_0x404148[_0x47ed8a(0x1db)]||DEFAULT_CONFIG_VALUES[_0x47ed8a(0x1db)],_0x289466=_0x1689c7('COOKIE')||_0xc4df1a?.['cookie']||_0x404148[_0x47ed8a(0x1c8)]||undefined,_0x2eb34a=_0x1689c7(_0x47ed8a(0x1ba))||_0xc4df1a?.[_0x47ed8a(0x1c5)]||_0x404148[_0x47ed8a(0x1c5)]||undefined,_0x54a202=_0x595853[_0x47ed8a(0x1e1)]||_0x1689c7(_0x47ed8a(0x1e2))||_0xc4df1a?.['format']||_0x404148['format'],_0xeea76d=normalizeLegacyOutputFormat(_0x54a202),_0x4b48d3=_0x1689c7('PAGE_SIZE')||_0xc4df1a?.['pageSize']||_0x404148[_0x47ed8a(0x1cc)],_0x3e6e36=_0x4b48d3?Number(_0x4b48d3)||undefined:undefined,_0x4f3012=_0x20e4c3?[_0x20e4c3['globalConfig']['riskLevel'],_0x20e4c3[_0x47ed8a(0x1bd)]['riskLevel']]:[_0x404148['riskLevel']],_0x54a334=resolveRiskCeiling(..._0x4f3012,_0xc4df1a?.[_0x47ed8a(0x1c6)]),_0x27a786=resolveRiskCeiling(_0x54a334,_0x1689c7(_0x47ed8a(0x1dc))),_0xc853ed=_0x1689c7('VERBOSE'),_0x7e3915=_0xc853ed==='1'||_0xc853ed===_0x47ed8a(0x1e3),_0x420965=_0xc4df1a?.[_0x47ed8a(0x1d6)]||_0x404148[_0x47ed8a(0x1d6)]||DEFAULT_CONFIG_VALUES['apiDir'],_0xb09a1d=selectConfiguredRegion({'appRegion':_0xc4df1a?.['region'],'projectRegion':_0x2636df?_0x24c366[_0x47ed8a(0x1ca)]:undefined,'globalRegion':_0x2636df||_0x2477d8?_0x716d7f[_0x47ed8a(0x1ca)]:undefined,'mergedRegion':_0x404148[_0x47ed8a(0x1ca)]}),_0x1bcdac=normalizeLovrabetRegion(_0xb09a1d['value'])??DEFAULT_LOVRABET_REGION,_0x4bc589=isDaily(normalizeEnv(String(_0x294449)))?'daily':_0x47ed8a(0x1d5);return{'appCode':typeof _0x35a1f4===_0x47ed8a(0x1cf)&&_0x35a1f4['trim']()?_0x35a1f4['trim']():undefined,'region':_0x1bcdac,'regionConfiguredValue':_0xb09a1d[_0x47ed8a(0x1bc)],'regionSource':_0xb09a1d['source'],'env':_0x4bc589,'locale':_0xf27246,'cookie':_0x289466,'accessKey':_0x2eb34a,'format':_0xeea76d,'pageSize':_0x3e6e36,'riskLevel':_0x27a786,'verbose':_0x7e3915,'apiDir':_0x420965,'apps':_0x10b9f9,'defaultApp':_0x37cf8a,'currentApp':_0x2e0411?_0x1b667b:undefined,'explicitAppName':_0x35d8bd};}
1
+ (function(_0x522aff,_0x1cf31d){const _0x36f58c=a267_0x4caf,_0x26e0c1=_0x522aff();while(!![]){try{const _0x5e037f=-parseInt(_0x36f58c(0x1fe))/0x1*(-parseInt(_0x36f58c(0x214))/0x2)+parseInt(_0x36f58c(0x218))/0x3+parseInt(_0x36f58c(0x1fa))/0x4*(parseInt(_0x36f58c(0x204))/0x5)+parseInt(_0x36f58c(0x20b))/0x6+parseInt(_0x36f58c(0x200))/0x7*(parseInt(_0x36f58c(0x21b))/0x8)+-parseInt(_0x36f58c(0x21e))/0x9*(parseInt(_0x36f58c(0x1ff))/0xa)+-parseInt(_0x36f58c(0x216))/0xb*(parseInt(_0x36f58c(0x1f1))/0xc);if(_0x5e037f===_0x1cf31d)break;else _0x26e0c1['push'](_0x26e0c1['shift']());}catch(_0xfd8c87){_0x26e0c1['push'](_0x26e0c1['shift']());}}}(a267_0x32b1,0xca2b8));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a267_0x32b1(){const _0x5a514c=['production','entries','projectConfig','865055OyRTbq','appcode','env','string','filter','daily','ENV','1717026sjnxAR','read','projectPath','object','value','pageSize','write','PAGE_SIZE','RISK_LEVEL','27946hYZXKv','source','1529lCiKDs','ACCESS_KEY','2859417cxJumN','apiDir','apps','18568eMkxAg','locale','keys','918frzSEr','APP','COOKIE','high-risk-write','116196UpqIuk','true','riskLevel','format','globalConfig','trim','FORMAT','length','app','32mHqwEN','accessKey','VERBOSE','region','71dmGsgn','144960iNTxiP','112UshnlN'];a267_0x32b1=function(){return _0x5a514c;};return a267_0x32b1();}import{isDaily,normalizeEnv}from'../constant/env.js';function a267_0x4caf(_0x399f98,_0x521627){_0x399f98=_0x399f98-0x1ef;const _0x32b12b=a267_0x32b1();let _0x4cafb4=_0x32b12b[_0x399f98];return _0x4cafb4;}import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x2131be){const _0x3a16fb=a267_0x4caf;return typeof _0x2131be===_0x3a16fb(0x207)&&_0x2131be[_0x3a16fb(0x1f6)]()?_0x2131be[_0x3a16fb(0x1f6)]():undefined;}function appProfiles(_0x3bd4b9){const _0x2a31ad=a267_0x4caf;return _0x3bd4b9['apps']&&typeof _0x3bd4b9[_0x2a31ad(0x21a)]===_0x2a31ad(0x20e)?_0x3bd4b9[_0x2a31ad(0x21a)]:{};}function resolveDefaultAppName(_0x4f0668){const _0x4595bd=a267_0x4caf,_0x1c8d19=stringConfigValue(_0x4f0668['defaultApp']);if(_0x1c8d19)return _0x1c8d19;const _0x27362c=Object[_0x4595bd(0x21d)](appProfiles(_0x4f0668));return _0x27362c[_0x4595bd(0x1f8)]===0x1?_0x27362c[0x0]:undefined;}function resolveTopLevelAppCode(_0x32291a){const _0x23416d=a267_0x4caf;return stringConfigValue(_0x32291a[_0x23416d(0x205)])||stringConfigValue(_0x32291a[_0x23416d(0x1f9)]);}function normalizeRiskCeiling(_0xe82b7a){const _0xc92188=a267_0x4caf;if(_0xe82b7a===undefined||_0xe82b7a===null)return undefined;if(_0xe82b7a===_0xc92188(0x20c)||_0xe82b7a===_0xc92188(0x211)||_0xe82b7a===_0xc92188(0x1f0))return _0xe82b7a;return _0xc92188(0x20c);}function resolveRiskCeiling(..._0x3b7a37){const _0x297bfa=a267_0x4caf;let _0x3beb0a;for(const _0x5a1ffc of _0x3b7a37){const _0x17d334=normalizeRiskCeiling(_0x5a1ffc);_0x17d334&&(!_0x3beb0a||riskLevelOrder(_0x17d334)<riskLevelOrder(_0x3beb0a))&&(_0x3beb0a=_0x17d334);}return _0x3beb0a??DEFAULT_CONFIG_VALUES[_0x297bfa(0x1f3)];}export function resolveAppConfig({raw:_0x5c51c5,flags:_0x1d1f9f,layers:_0x2b3af1,readEnv:_0x5c5b36}){const _0x2bdb9d=a267_0x4caf,_0x177e08=_0x2b3af1?.[_0x2bdb9d(0x203)]??{},_0x560b74=_0x2b3af1?.[_0x2bdb9d(0x1f5)]??{},_0x36660d=!!_0x2b3af1?.[_0x2bdb9d(0x20d)]||Object[_0x2bdb9d(0x21d)](_0x177e08)[_0x2bdb9d(0x1f8)]>0x0,_0x24c957=!_0x36660d,_0x5cfe9d=_0x36660d?resolveDefaultAppName(_0x177e08):undefined,_0x9f3ed8=_0x24c957?resolveDefaultAppName(_0x560b74):undefined,_0x5e5993=stringConfigValue(_0x1d1f9f[_0x2bdb9d(0x1f9)]),_0x37e2eb=_0x5c5b36(_0x2bdb9d(0x21f)),_0x1f37c1={};if(_0x5c51c5[_0x2bdb9d(0x21a)]&&typeof _0x5c51c5['apps']===_0x2bdb9d(0x20e))for(const [_0x2f0282,_0x592c68]of Object[_0x2bdb9d(0x202)](_0x5c51c5['apps'])){_0x592c68&&typeof _0x592c68===_0x2bdb9d(0x20e)&&_0x592c68[_0x2bdb9d(0x205)]&&(_0x1f37c1[_0x2f0282]=_0x592c68);}const _0x2c94d6=_0x5cfe9d||_0x9f3ed8||resolveDefaultAppName(_0x5c51c5),_0x1213ec=Object[_0x2bdb9d(0x21d)](_0x1f37c1)['length']>0x0,_0x25f1b2=_0x5e5993||_0x5cfe9d||_0x37e2eb||_0x9f3ed8||_0x2c94d6||undefined,_0xf31b44=stringConfigValue(_0x1d1f9f['appcode']),_0x177602=_0xf31b44?Object[_0x2bdb9d(0x202)](_0x1f37c1)[_0x2bdb9d(0x208)](([,_0xa1aab6])=>_0xa1aab6?.[_0x2bdb9d(0x205)]===_0xf31b44):[],_0x2de956=_0x5e5993&&_0x1f37c1[_0x5e5993]?.[_0x2bdb9d(0x205)]===_0xf31b44?[_0x5e5993,_0x1f37c1[_0x5e5993]]:undefined,_0x1c53c8=_0x2de956??(_0x177602[_0x2bdb9d(0x1f8)]===0x1?_0x177602[0x0]:undefined),_0x2a7367=_0x1c53c8?.[0x0],_0x1d621b=_0x1c53c8?.[0x1],_0x159e7c=_0xf31b44?_0x2a7367:_0x25f1b2;let _0x3f0065=_0x159e7c&&_0x1f37c1[_0x159e7c]?_0x1f37c1[_0x159e7c]:undefined;_0xf31b44&&_0x1d621b&&(_0x3f0065=_0x1d621b);const _0x1ae15d=_0xf31b44?_0x1d621b??_0x3f0065:_0x3f0065,_0x85e7a0=!_0x5e5993&&!_0x5cfe9d&&_0x37e2eb&&_0x159e7c===_0x37e2eb,_0x20aace=_0x5e5993||(_0x85e7a0?_0x37e2eb:undefined)||(_0xf31b44?_0x2a7367:undefined),_0x421e3b=_0x1ae15d?.[_0x2bdb9d(0x205)],_0xfdafb3=_0x36660d?resolveTopLevelAppCode(_0x177e08):undefined,_0x21927f=_0x24c957?resolveTopLevelAppCode(_0x560b74):undefined,_0x1aeace=_0x5e5993||_0x5cfe9d?_0x421e3b:undefined,_0x39b1b4=!_0x5e5993&&!_0x5cfe9d?_0x421e3b:undefined,_0x2e43a7=_0xf31b44||_0x1aeace||_0xfdafb3||_0x39b1b4||_0x21927f||undefined,_0x553c7e=_0x36660d?stringConfigValue(_0x177e08[_0x2bdb9d(0x206)]):undefined,_0xcc2237=_0x24c957?stringConfigValue(_0x560b74[_0x2bdb9d(0x206)]):undefined,_0x422ba3=_0x1d1f9f[_0x2bdb9d(0x206)]||_0x1ae15d?.[_0x2bdb9d(0x206)]||_0x553c7e||_0x5c5b36(_0x2bdb9d(0x20a))||_0xcc2237||_0x5c51c5['env']||DEFAULT_CONFIG_VALUES['env'],_0x35a528=_0x1ae15d?.[_0x2bdb9d(0x21c)]||_0x5c51c5['locale']||DEFAULT_CONFIG_VALUES['locale'],_0xce932f=_0x5c5b36(_0x2bdb9d(0x1ef))||_0x1ae15d?.['cookie']||_0x5c51c5['cookie']||undefined,_0x90879=_0x5c5b36(_0x2bdb9d(0x217))||_0x1ae15d?.[_0x2bdb9d(0x1fb)]||_0x5c51c5['accessKey']||undefined,_0x1c368f=_0x1d1f9f[_0x2bdb9d(0x1f4)]||_0x5c5b36(_0x2bdb9d(0x1f7))||_0x1ae15d?.[_0x2bdb9d(0x1f4)]||_0x5c51c5[_0x2bdb9d(0x1f4)],_0x1cba78=normalizeLegacyOutputFormat(_0x1c368f),_0x132059=_0x5c5b36(_0x2bdb9d(0x212))||_0x1ae15d?.[_0x2bdb9d(0x210)]||_0x5c51c5['pageSize'],_0x4b589c=_0x132059?Number(_0x132059)||undefined:undefined,_0x41ab20=_0x2b3af1?[_0x2b3af1[_0x2bdb9d(0x1f5)][_0x2bdb9d(0x1f3)],_0x2b3af1[_0x2bdb9d(0x203)][_0x2bdb9d(0x1f3)]]:[_0x5c51c5[_0x2bdb9d(0x1f3)]],_0x5a5d51=resolveRiskCeiling(..._0x41ab20,_0x1ae15d?.[_0x2bdb9d(0x1f3)]),_0x391ec3=resolveRiskCeiling(_0x5a5d51,_0x5c5b36(_0x2bdb9d(0x213))),_0x328545=_0x5c5b36(_0x2bdb9d(0x1fc)),_0x4a5687=_0x328545==='1'||_0x328545===_0x2bdb9d(0x1f2),_0x324980=_0x1ae15d?.[_0x2bdb9d(0x219)]||_0x5c51c5[_0x2bdb9d(0x219)]||DEFAULT_CONFIG_VALUES[_0x2bdb9d(0x219)],_0x4d5608=selectConfiguredRegion({'appRegion':_0x1ae15d?.[_0x2bdb9d(0x1fd)],'projectRegion':_0x36660d?_0x177e08['region']:undefined,'globalRegion':_0x36660d||_0x24c957?_0x560b74[_0x2bdb9d(0x1fd)]:undefined,'mergedRegion':_0x5c51c5['region']}),_0x362292=normalizeLovrabetRegion(_0x4d5608[_0x2bdb9d(0x20f)])??DEFAULT_LOVRABET_REGION,_0xe036cd=isDaily(normalizeEnv(String(_0x422ba3)))?_0x2bdb9d(0x209):_0x2bdb9d(0x201);return{'appCode':typeof _0x2e43a7===_0x2bdb9d(0x207)&&_0x2e43a7[_0x2bdb9d(0x1f6)]()?_0x2e43a7[_0x2bdb9d(0x1f6)]():undefined,'region':_0x362292,'regionConfiguredValue':_0x4d5608[_0x2bdb9d(0x20f)],'regionSource':_0x4d5608[_0x2bdb9d(0x215)],'env':_0xe036cd,'locale':_0x35a528,'cookie':_0xce932f,'accessKey':_0x90879,'format':_0x1cba78,'pageSize':_0x4b589c,'riskLevel':_0x391ec3,'verbose':_0x4a5687,'apiDir':_0x324980,'apps':_0x1f37c1,'defaultApp':_0x2c94d6,'currentApp':_0x1213ec?_0x159e7c:undefined,'explicitAppName':_0x20aace};}
@@ -1 +1 @@
1
- (function(_0x535efc,_0x1b6490){const _0x1f5320=a267_0x14ca,_0x53e184=_0x535efc();while(!![]){try{const _0x4b1637=-parseInt(_0x1f5320(0x138))/0x1*(-parseInt(_0x1f5320(0x133))/0x2)+parseInt(_0x1f5320(0x139))/0x3+-parseInt(_0x1f5320(0x135))/0x4+parseInt(_0x1f5320(0x134))/0x5*(-parseInt(_0x1f5320(0x13a))/0x6)+-parseInt(_0x1f5320(0x132))/0x7*(-parseInt(_0x1f5320(0x13d))/0x8)+parseInt(_0x1f5320(0x136))/0x9+parseInt(_0x1f5320(0x13c))/0xa*(-parseInt(_0x1f5320(0x13e))/0xb);if(_0x4b1637===_0x1b6490)break;else _0x53e184['push'](_0x53e184['shift']());}catch(_0x150543){_0x53e184['push'](_0x53e184['shift']());}}}(a267_0x343c,0x48fb5));import{getIsSessionValid}from'../auth/is-session-valid.js';function a267_0x343c(){const _0x454bcc=['8486510EheLGy','620104PBRYtC','11AxyNCM','35wmnmyT','242938OMhkCY','1805PWluSO','358588DBtYMy','2124441cNvqVB','../auth/get-cookie.js','1PaTYIX','1598823ZYIoVV','678ucyXoB','cookie'];a267_0x343c=function(){return _0x454bcc;};return a267_0x343c();}import{CliErrors}from'../errors.js';function a267_0x14ca(_0x56eb14,_0x305ff3){_0x56eb14=_0x56eb14-0x132;const _0x343c6d=a267_0x343c();let _0x14caaf=_0x343c6d[_0x56eb14];return _0x14caaf;}export async function buildAuth(_0x1a1e5c){const _0x2dcacb=a267_0x14ca,{getCookie:_0x26e785}=await import(_0x2dcacb(0x137)),_0x25c133=_0x1a1e5c[_0x2dcacb(0x13b)]||_0x26e785(),_0x823b0b=_0x25c133?await getIsSessionValid():![];return{'cookie':_0x25c133,'isLoggedIn':_0x823b0b,async 'getOrLogin'(){if(_0x25c133&&_0x823b0b)return _0x25c133;throw CliErrors['authRequired']();}};}
1
+ function a268_0x4558(){const _0x5e639a=['1632kFCUsg','11MxWsbJ','21061BerhHD','765470IjEzCj','5285080BhLCDM','319190upsmEm','authRequired','12BXwbtt','cookie','58fDNPvo','../auth/get-cookie.js','516942HGtVhc','967644HgDysG','9590cqEOxo'];a268_0x4558=function(){return _0x5e639a;};return a268_0x4558();}function a268_0x168b(_0x358037,_0x2aa016){_0x358037=_0x358037-0x8f;const _0x455885=a268_0x4558();let _0x168b7b=_0x455885[_0x358037];return _0x168b7b;}(function(_0x52ee53,_0x54145c){const _0x1fa641=a268_0x168b,_0x541389=_0x52ee53();while(!![]){try{const _0x199ed8=-parseInt(_0x1fa641(0x93))/0x1*(-parseInt(_0x1fa641(0x9a))/0x2)+-parseInt(_0x1fa641(0x9c))/0x3*(parseInt(_0x1fa641(0x98))/0x4)+parseInt(_0x1fa641(0x96))/0x5+parseInt(_0x1fa641(0x91))/0x6*(-parseInt(_0x1fa641(0x90))/0x7)+parseInt(_0x1fa641(0x95))/0x8+-parseInt(_0x1fa641(0x8f))/0x9+-parseInt(_0x1fa641(0x94))/0xa*(-parseInt(_0x1fa641(0x92))/0xb);if(_0x199ed8===_0x54145c)break;else _0x541389['push'](_0x541389['shift']());}catch(_0xab89a1){_0x541389['push'](_0x541389['shift']());}}}(a268_0x4558,0x653e3));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';export async function buildAuth(_0x2899e1){const _0x11dee7=a268_0x168b,{getCookie:_0x43dfb5}=await import(_0x11dee7(0x9b)),_0x383421=_0x2899e1[_0x11dee7(0x99)]||_0x43dfb5(),_0x5e2506=_0x383421?await getIsSessionValid():![];return{'cookie':_0x383421,'isLoggedIn':_0x5e2506,async 'getOrLogin'(){const _0x49c0fa=_0x11dee7;if(_0x383421&&_0x5e2506)return _0x383421;throw CliErrors[_0x49c0fa(0x97)]();}};}
@@ -1 +1 @@
1
- const a268_0x3c0f20=a268_0x5c28;(function(_0xab8303,_0x444b56){const _0x2d2f0f=a268_0x5c28,_0x5ab48f=_0xab8303();while(!![]){try{const _0x2ff5f1=-parseInt(_0x2d2f0f(0x133))/0x1*(-parseInt(_0x2d2f0f(0x149))/0x2)+parseInt(_0x2d2f0f(0x13e))/0x3+parseInt(_0x2d2f0f(0x146))/0x4+parseInt(_0x2d2f0f(0x154))/0x5*(-parseInt(_0x2d2f0f(0x15e))/0x6)+parseInt(_0x2d2f0f(0x141))/0x7+-parseInt(_0x2d2f0f(0x148))/0x8+-parseInt(_0x2d2f0f(0x15b))/0x9*(-parseInt(_0x2d2f0f(0x12e))/0xa);if(_0x2ff5f1===_0x444b56)break;else _0x5ab48f['push'](_0x5ab48f['shift']());}catch(_0x47f8d6){_0x5ab48f['push'](_0x5ab48f['shift']());}}}(a268_0x3d98,0x93d39));function a268_0x5c28(_0x396352,_0x227427){_0x396352=_0x396352-0x125;const _0x3d989c=a268_0x3d98();let _0x5c287b=_0x3d989c[_0x396352];return _0x5c287b;}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';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a268_0x3c0f20(0x15f);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x214c76){for(const _0x461884 of CONFIG_NAMES){const _0x3fcfba=resolve(_0x214c76,_0x461884);if(existsSync(_0x3fcfba))return _0x3fcfba;}return undefined;}export function findProjectRootDirectory(_0x1a4719=process['cwd']()){let _0x46dbf8=resolve(_0x1a4719);const {root:_0x54a2d8}=parse(_0x46dbf8),_0x465b2e=homedir();while(!![]){if(resolveConfigPath(_0x46dbf8)){if(_0x46dbf8===_0x465b2e)break;return _0x46dbf8;}if(_0x46dbf8===_0x54a2d8||_0x46dbf8===_0x465b2e)break;const _0x30de7c=dirname(_0x46dbf8);if(_0x30de7c===_0x46dbf8)break;_0x46dbf8=_0x30de7c;}return resolve(_0x1a4719);}export function getProjectConfigPath(){const _0x230d87=a268_0x3c0f20;return resolveConfigPath(process[_0x230d87(0x12b)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x157bd3){const _0x5d3039=a268_0x3c0f20;if(!existsSync(_0x157bd3))return{'status':'missing'};try{const _0x118747=readFileSync(_0x157bd3,{'encoding':_0x5d3039(0x13f)});if(!_0x118747?.['trim']())return{'status':_0x5d3039(0x129)};const _0x4ccc6d=JSON[_0x5d3039(0x128)](_0x118747);return{'status':'ok','data':_0x4ccc6d};}catch(_0x26be4a){return{'status':_0x5d3039(0x130),'message':_0x26be4a instanceof Error?_0x26be4a[_0x5d3039(0x136)]:String(_0x26be4a)};}}function parseCliConfigJsonFile(_0x43bd2b,_0xa232d1,_0x3830cd){const _0x4387fe=a268_0x3c0f20,_0xc4e5dc=inspectCliConfigJsonFile(_0x43bd2b);if(_0xc4e5dc[_0x4387fe(0x134)]===_0x4387fe(0x15c)||_0xc4e5dc[_0x4387fe(0x134)]===_0x4387fe(0x129))return{};if(_0xc4e5dc['status']==='ok')return _0xc4e5dc[_0x4387fe(0x13b)];return _0xa232d1==='warn'&&_0x3830cd&&console[_0x4387fe(0x130)](CLI_BIN_NAME+':\x20'+_0x3830cd+_0x4387fe(0x14b)+_0x43bd2b+_0x4387fe(0x155)+_0xc4e5dc[_0x4387fe(0x136)]),{};}function normalizeLegacyConfigShape(_0x3747cd){const _0x553a7f=a268_0x3c0f20;if(!_0x3747cd||typeof _0x3747cd!==_0x553a7f(0x156))return{'config':{},'migrated':![]};const _0x45532={..._0x3747cd},_0x468951=_0x45532[_0x553a7f(0x13d)]&&typeof _0x45532[_0x553a7f(0x13d)]===_0x553a7f(0x156)?{..._0x45532[_0x553a7f(0x13d)]}:{},_0x4f876c=Object[_0x553a7f(0x127)](_0x468951)[_0x553a7f(0x137)],_0x554e3b=_0x45532[_0x553a7f(0x15a)]||_0x45532[_0x553a7f(0x12c)];let _0x21d1d1=![];if(_0x554e3b&&_0x4f876c===0x0){const _0x22f0db=typeof _0x45532[_0x553a7f(0x138)]===_0x553a7f(0x14f)&&_0x45532[_0x553a7f(0x138)][_0x553a7f(0x152)]()?_0x45532['defaultApp']:String(_0x554e3b)[_0x553a7f(0x152)]();_0x468951[_0x22f0db]={'appcode':String(_0x554e3b)[_0x553a7f(0x152)](),..._0x45532[_0x553a7f(0x153)]!=null?{'env':_0x45532['env']}:{},..._0x45532[_0x553a7f(0x142)]!=null?{'apiDir':_0x45532['apiDir']}:{},..._0x45532['cookie']!=null?{'cookie':_0x45532[_0x553a7f(0x14a)]}:{},..._0x45532['accessKey']!=null?{'accessKey':_0x45532[_0x553a7f(0x150)]}:{},..._0x45532['format']!=null?{'format':_0x45532['format']}:{},..._0x45532[_0x553a7f(0x144)]!=null?{'pageSize':_0x45532[_0x553a7f(0x144)]}:{},..._0x45532['riskLevel']!=null?{'riskLevel':_0x45532[_0x553a7f(0x140)]}:{},..._0x45532['locale']!=null?{'locale':_0x45532[_0x553a7f(0x126)]}:{}},_0x45532[_0x553a7f(0x13d)]=_0x468951,delete _0x45532[_0x553a7f(0x138)],_0x21d1d1=!![];}return('appcode'in _0x45532||_0x553a7f(0x12c)in _0x45532)&&(delete _0x45532[_0x553a7f(0x15a)],delete _0x45532[_0x553a7f(0x12c)],_0x21d1d1=!![]),{'config':_0x45532,'migrated':_0x21d1d1};}function writeNormalizedConfigIfNeeded(_0x84d824,_0x57c05d){const _0x4853ba=a268_0x3c0f20,_0xea5ce8=JSON[_0x4853ba(0x12d)](normalizeConfigForWrite(_0x57c05d),null,0x2)+'\x0a';if(normalizedWriteCache[_0x4853ba(0x145)](_0x84d824)===_0xea5ce8)return;writeConfigFile(_0x84d824,_0x57c05d),normalizedWriteCache[_0x4853ba(0x12f)](_0x84d824,_0xea5ce8);}function parseAndNormalizeConfig(_0x1116a3,_0x4a8b09,_0x29a5f2){const _0x1a0ea3=a268_0x3c0f20,_0x502976=parseCliConfigJsonFile(_0x1116a3,_0x4a8b09,_0x29a5f2),_0x54c944=normalizeLegacyConfigShape(_0x502976);if(_0x54c944[_0x1a0ea3(0x159)])try{writeNormalizedConfigIfNeeded(_0x1116a3,_0x54c944[_0x1a0ea3(0x158)]);}catch{}return _0x54c944[_0x1a0ea3(0x158)];}export function loadRawConfigLayers(_0x421e87){const _0x4ae582=a268_0x3c0f20;let _0x350e36={},_0x632a42={};const _0xedca22=resolveConfigPath(homedir());_0xedca22&&(_0x350e36=parseAndNormalizeConfig(_0xedca22,_0x4ae582(0x15d),_0x4ae582(0x14c)));const _0x142edc=_0x421e87??findProjectRootDirectory(),_0x2ec16c=resolveConfigPath(_0x142edc);return _0x2ec16c&&(_0x632a42=parseAndNormalizeConfig(_0x2ec16c,'warn',_0x4ae582(0x14e))),{'globalPath':_0xedca22,'projectPath':_0x2ec16c,'globalConfig':_0x350e36,'projectConfig':_0x632a42};}const INHERIT_WHITELIST=[a268_0x3c0f20(0x14a),a268_0x3c0f20(0x150),a268_0x3c0f20(0x126),a268_0x3c0f20(0x13a),a268_0x3c0f20(0x140),a268_0x3c0f20(0x144),a268_0x3c0f20(0x157),a268_0x3c0f20(0x14d),a268_0x3c0f20(0x12a),a268_0x3c0f20(0x139),'runtimeDomain',a268_0x3c0f20(0x151),a268_0x3c0f20(0x125),a268_0x3c0f20(0x13c),a268_0x3c0f20(0x131),a268_0x3c0f20(0x132)];export function mergeRawConfigLayers(_0x76d2ec){const _0x83c5e0=a268_0x3c0f20,{globalConfig:_0x216127,projectConfig:_0x477796}=_0x76d2ec,_0x59c8e1=!!_0x76d2ec[_0x83c5e0(0x135)]||Object['keys'](_0x477796)[_0x83c5e0(0x137)]>0x0;if(!_0x59c8e1)return mergeGlobalOnly(_0x216127);return mergeProjectFirst(_0x216127,_0x477796);}function mergeGlobalOnly(_0x5b874b){const _0x269b07=a268_0x3c0f20,_0x27f425={..._0x5b874b};delete _0x27f425[_0x269b07(0x143)];const _0x3346f5=_0x5b874b[_0x269b07(0x13d)]&&typeof _0x5b874b[_0x269b07(0x13d)]===_0x269b07(0x156)?_0x5b874b[_0x269b07(0x13d)]:{};if(Object[_0x269b07(0x127)](_0x3346f5)['length']>0x0)_0x27f425[_0x269b07(0x13d)]=_0x3346f5;if(_0x5b874b[_0x269b07(0x138)])_0x27f425[_0x269b07(0x138)]=_0x5b874b[_0x269b07(0x138)];return _0x27f425;}function mergeProjectFirst(_0x30cf29,_0x1df480){const _0x49c7d5=a268_0x3c0f20,_0x114b3e={..._0x1df480};delete _0x114b3e[_0x49c7d5(0x143)];for(const _0x1c9738 of INHERIT_WHITELIST){!(_0x1c9738 in _0x114b3e)&&_0x1c9738 in _0x30cf29&&(_0x114b3e[_0x1c9738]=_0x30cf29[_0x1c9738]);}const _0x3172bc=_0x1df480[_0x49c7d5(0x13d)]&&typeof _0x1df480[_0x49c7d5(0x13d)]===_0x49c7d5(0x156)?_0x1df480[_0x49c7d5(0x13d)]:{};return Object[_0x49c7d5(0x127)](_0x3172bc)[_0x49c7d5(0x137)]>0x0?_0x114b3e['apps']=_0x3172bc:delete _0x114b3e[_0x49c7d5(0x13d)],_0x49c7d5(0x138)in _0x1df480?_0x114b3e[_0x49c7d5(0x138)]=_0x1df480[_0x49c7d5(0x138)]:delete _0x114b3e[_0x49c7d5(0x138)],_0x114b3e;}export function readRawConfigWithLayers(_0x299bb9){const _0x473af5=loadRawConfigLayers(_0x299bb9);return{'config':mergeRawConfigLayers(_0x473af5),'layers':_0x473af5};}export function readRawConfig(_0x3b91a9){return mergeRawConfigLayers(loadRawConfigLayers(_0x3b91a9));}export function readConfigFile(_0x1d07da){return parseAndNormalizeConfig(_0x1d07da,'silent');}export function writeConfigFile(_0x46ede1,_0x52dde5){const _0x16d265=a268_0x3c0f20,_0x2cbb4b=dirname(_0x46ede1);!existsSync(_0x2cbb4b)&&mkdirSync(_0x2cbb4b,{'recursive':!![]});const _0x59eb32=_0x46ede1+'.tmp';try{const _0x4b0673=normalizeConfigForWrite(_0x52dde5);writeFileSync(_0x59eb32,JSON['stringify'](_0x4b0673,null,0x2)+'\x0a',{'encoding':_0x16d265(0x13f),'mode':0x180}),renameSync(_0x59eb32,_0x46ede1);}catch(_0x445ce5){try{unlinkSync(_0x59eb32);}catch{}throw _0x445ce5;}}function a268_0x3d98(){const _0x4d23b7=['error','localDomain','certificateDomain','4RUhCQW','status','projectPath','message','length','defaultApp','apiDomain','format','data','appDomain','apps','1024830KGeBvk','utf8','riskLevel','5133611bpyuIr','apiDir','inherit','pageSize','get','565924DfzaZr','project','984528RILtZE','74506aOuHWV','cookie','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','Global','routing','Project','string','accessKey','skillDomain','trim','env','15SbFEyJ','\x0a\x20\x20','object','region','config','migrated','appcode','1332oSYkbQ','missing','warn','1309938nEjjnx','.rabetbase.json','kbDomain','locale','keys','parse','empty','userDomain','cwd','app','stringify','1220oLfCmP','set'];a268_0x3d98=function(){return _0x4d23b7;};return a268_0x3d98();}export function resolveWriteConfigPath(_0x2e21f6){const _0x394356=a268_0x3c0f20,_0x3c2367=_0x2e21f6===_0x394356(0x147)?process[_0x394356(0x12b)]():homedir(),_0x228731=resolveConfigPath(_0x3c2367);return _0x228731??resolve(_0x3c2367,NEW_CONFIG_NAME);}
1
+ const a269_0x3cbeaa=a269_0x2128;function a269_0x2128(_0x466c1e,_0x57c8ae){_0x466c1e=_0x466c1e-0x1c7;const _0x2b35a5=a269_0x2b35();let _0x212858=_0x2b35a5[_0x466c1e];return _0x212858;}(function(_0x4bb7d0,_0x474c3a){const _0x29e767=a269_0x2128,_0x438133=_0x4bb7d0();while(!![]){try{const _0xaae2eb=-parseInt(_0x29e767(0x1d7))/0x1*(-parseInt(_0x29e767(0x1d9))/0x2)+parseInt(_0x29e767(0x1f1))/0x3+parseInt(_0x29e767(0x1f4))/0x4+-parseInt(_0x29e767(0x1e1))/0x5+-parseInt(_0x29e767(0x1eb))/0x6*(-parseInt(_0x29e767(0x1f3))/0x7)+parseInt(_0x29e767(0x1ed))/0x8+parseInt(_0x29e767(0x1d6))/0x9*(-parseInt(_0x29e767(0x1fa))/0xa);if(_0xaae2eb===_0x474c3a)break;else _0x438133['push'](_0x438133['shift']());}catch(_0x8a03fe){_0x438133['push'](_0x438133['shift']());}}}(a269_0x2b35,0xe4ddb));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';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME=a269_0x3cbeaa(0x1ce);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x3ef544){for(const _0x6c4282 of CONFIG_NAMES){const _0x13791e=resolve(_0x3ef544,_0x6c4282);if(existsSync(_0x13791e))return _0x13791e;}return undefined;}export function findProjectRootDirectory(_0x5def9d=process[a269_0x3cbeaa(0x1e8)]()){let _0x508363=resolve(_0x5def9d);const {root:_0x492842}=parse(_0x508363),_0x120e38=homedir();while(!![]){if(resolveConfigPath(_0x508363)){if(_0x508363===_0x120e38)break;return _0x508363;}if(_0x508363===_0x492842||_0x508363===_0x120e38)break;const _0x28c924=dirname(_0x508363);if(_0x28c924===_0x508363)break;_0x508363=_0x28c924;}return resolve(_0x5def9d);}export function getProjectConfigPath(){return resolveConfigPath(process['cwd']());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x540895){const _0x3a27aa=a269_0x3cbeaa;if(!existsSync(_0x540895))return{'status':_0x3a27aa(0x1f0)};try{const _0x1af6ea=readFileSync(_0x540895,{'encoding':_0x3a27aa(0x1da)});if(!_0x1af6ea?.['trim']())return{'status':'empty'};const _0x109ab0=JSON[_0x3a27aa(0x1d1)](_0x1af6ea);return{'status':'ok','data':_0x109ab0};}catch(_0x40106a){return{'status':'error','message':_0x40106a instanceof Error?_0x40106a['message']:String(_0x40106a)};}}function parseCliConfigJsonFile(_0xb2029,_0xf1e2c4,_0x29faa8){const _0x55cf10=a269_0x3cbeaa,_0x207b89=inspectCliConfigJsonFile(_0xb2029);if(_0x207b89['status']==='missing'||_0x207b89[_0x55cf10(0x1d3)]===_0x55cf10(0x1e7))return{};if(_0x207b89[_0x55cf10(0x1d3)]==='ok')return _0x207b89[_0x55cf10(0x1d4)];return _0xf1e2c4===_0x55cf10(0x1d0)&&_0x29faa8&&console[_0x55cf10(0x1ee)](CLI_BIN_NAME+':\x20'+_0x29faa8+_0x55cf10(0x1e6)+_0xb2029+_0x55cf10(0x1e3)+_0x207b89['message']),{};}function normalizeLegacyConfigShape(_0x4d1e56){const _0x2b3271=a269_0x3cbeaa;if(!_0x4d1e56||typeof _0x4d1e56!==_0x2b3271(0x1ef))return{'config':{},'migrated':![]};const _0x23ce5d={..._0x4d1e56},_0x472ca5=_0x23ce5d['apps']&&typeof _0x23ce5d['apps']===_0x2b3271(0x1ef)?{..._0x23ce5d[_0x2b3271(0x1e9)]}:{},_0x4bea9a=Object[_0x2b3271(0x1ec)](_0x472ca5)['length'],_0x500047=_0x23ce5d[_0x2b3271(0x1f6)]||_0x23ce5d[_0x2b3271(0x1fc)];let _0x273890=![];if(_0x500047&&_0x4bea9a===0x0){const _0x5083c2=typeof _0x23ce5d['defaultApp']===_0x2b3271(0x1c9)&&_0x23ce5d[_0x2b3271(0x1dc)][_0x2b3271(0x1de)]()?_0x23ce5d['defaultApp']:String(_0x500047)[_0x2b3271(0x1de)]();_0x472ca5[_0x5083c2]={'appcode':String(_0x500047)['trim'](),..._0x23ce5d[_0x2b3271(0x1e5)]!=null?{'env':_0x23ce5d[_0x2b3271(0x1e5)]}:{},..._0x23ce5d[_0x2b3271(0x1f9)]!=null?{'apiDir':_0x23ce5d[_0x2b3271(0x1f9)]}:{},..._0x23ce5d[_0x2b3271(0x1f7)]!=null?{'cookie':_0x23ce5d[_0x2b3271(0x1f7)]}:{},..._0x23ce5d[_0x2b3271(0x1c8)]!=null?{'accessKey':_0x23ce5d['accessKey']}:{},..._0x23ce5d[_0x2b3271(0x1f5)]!=null?{'format':_0x23ce5d[_0x2b3271(0x1f5)]}:{},..._0x23ce5d[_0x2b3271(0x1c7)]!=null?{'pageSize':_0x23ce5d[_0x2b3271(0x1c7)]}:{},..._0x23ce5d['riskLevel']!=null?{'riskLevel':_0x23ce5d[_0x2b3271(0x1dd)]}:{},..._0x23ce5d[_0x2b3271(0x1df)]!=null?{'locale':_0x23ce5d[_0x2b3271(0x1df)]}:{}},_0x23ce5d[_0x2b3271(0x1e9)]=_0x472ca5,delete _0x23ce5d[_0x2b3271(0x1dc)],_0x273890=!![];}return(_0x2b3271(0x1f6)in _0x23ce5d||_0x2b3271(0x1fc)in _0x23ce5d)&&(delete _0x23ce5d['appcode'],delete _0x23ce5d['app'],_0x273890=!![]),{'config':_0x23ce5d,'migrated':_0x273890};}function writeNormalizedConfigIfNeeded(_0x22e0b4,_0x5c86a9){const _0x48d40b=a269_0x3cbeaa,_0xab9b8c=JSON[_0x48d40b(0x1fb)](normalizeConfigForWrite(_0x5c86a9),null,0x2)+'\x0a';if(normalizedWriteCache[_0x48d40b(0x1cd)](_0x22e0b4)===_0xab9b8c)return;writeConfigFile(_0x22e0b4,_0x5c86a9),normalizedWriteCache[_0x48d40b(0x1db)](_0x22e0b4,_0xab9b8c);}function parseAndNormalizeConfig(_0x540055,_0x2122e5,_0x362da1){const _0x50e172=a269_0x3cbeaa,_0x37c115=parseCliConfigJsonFile(_0x540055,_0x2122e5,_0x362da1),_0xf212b0=normalizeLegacyConfigShape(_0x37c115);if(_0xf212b0[_0x50e172(0x1cb)])try{writeNormalizedConfigIfNeeded(_0x540055,_0xf212b0[_0x50e172(0x1d8)]);}catch{}return _0xf212b0[_0x50e172(0x1d8)];}export function loadRawConfigLayers(_0x27d741){const _0xc95074=a269_0x3cbeaa;let _0x74cf99={},_0x3994fb={};const _0x3ee6e7=resolveConfigPath(homedir());_0x3ee6e7&&(_0x74cf99=parseAndNormalizeConfig(_0x3ee6e7,_0xc95074(0x1d0),'Global'));const _0x5856f3=_0x27d741??findProjectRootDirectory(),_0x4420ef=resolveConfigPath(_0x5856f3);return _0x4420ef&&(_0x3994fb=parseAndNormalizeConfig(_0x4420ef,_0xc95074(0x1d0),_0xc95074(0x1d5))),{'globalPath':_0x3ee6e7,'projectPath':_0x4420ef,'globalConfig':_0x74cf99,'projectConfig':_0x3994fb};}const INHERIT_WHITELIST=[a269_0x3cbeaa(0x1f7),a269_0x3cbeaa(0x1c8),'locale','format',a269_0x3cbeaa(0x1dd),'pageSize',a269_0x3cbeaa(0x1f2),a269_0x3cbeaa(0x1cf),a269_0x3cbeaa(0x1d2),a269_0x3cbeaa(0x1f8),a269_0x3cbeaa(0x1fe),a269_0x3cbeaa(0x1ea),'kbDomain',a269_0x3cbeaa(0x1e0),a269_0x3cbeaa(0x1e2),'localDomain','certificateDomain'];export function mergeRawConfigLayers(_0x4983ad){const _0x76ed5f=a269_0x3cbeaa,{globalConfig:_0x49a344,projectConfig:_0x4d9a56}=_0x4983ad,_0x16dbed=!!_0x4983ad[_0x76ed5f(0x1fd)]||Object[_0x76ed5f(0x1ec)](_0x4d9a56)[_0x76ed5f(0x1ca)]>0x0;if(!_0x16dbed)return mergeGlobalOnly(_0x49a344);return mergeProjectFirst(_0x49a344,_0x4d9a56);}function mergeGlobalOnly(_0x7eb2be){const _0x4c8e35=a269_0x3cbeaa,_0x42d24b={..._0x7eb2be};delete _0x42d24b[_0x4c8e35(0x1ff)];const _0x523ebb=_0x7eb2be[_0x4c8e35(0x1e9)]&&typeof _0x7eb2be[_0x4c8e35(0x1e9)]===_0x4c8e35(0x1ef)?_0x7eb2be['apps']:{};if(Object[_0x4c8e35(0x1ec)](_0x523ebb)[_0x4c8e35(0x1ca)]>0x0)_0x42d24b[_0x4c8e35(0x1e9)]=_0x523ebb;if(_0x7eb2be[_0x4c8e35(0x1dc)])_0x42d24b[_0x4c8e35(0x1dc)]=_0x7eb2be[_0x4c8e35(0x1dc)];return _0x42d24b;}function mergeProjectFirst(_0xbc257d,_0x143f60){const _0x2de9a9=a269_0x3cbeaa,_0x5c206c={..._0x143f60};delete _0x5c206c[_0x2de9a9(0x1ff)];for(const _0x2bc1f8 of INHERIT_WHITELIST){!(_0x2bc1f8 in _0x5c206c)&&_0x2bc1f8 in _0xbc257d&&(_0x5c206c[_0x2bc1f8]=_0xbc257d[_0x2bc1f8]);}const _0x1ea501=_0x143f60[_0x2de9a9(0x1e9)]&&typeof _0x143f60['apps']==='object'?_0x143f60[_0x2de9a9(0x1e9)]:{};return Object[_0x2de9a9(0x1ec)](_0x1ea501)[_0x2de9a9(0x1ca)]>0x0?_0x5c206c[_0x2de9a9(0x1e9)]=_0x1ea501:delete _0x5c206c[_0x2de9a9(0x1e9)],_0x2de9a9(0x1dc)in _0x143f60?_0x5c206c[_0x2de9a9(0x1dc)]=_0x143f60[_0x2de9a9(0x1dc)]:delete _0x5c206c['defaultApp'],_0x5c206c;}export function readRawConfigWithLayers(_0x13cfa){const _0x203273=loadRawConfigLayers(_0x13cfa);return{'config':mergeRawConfigLayers(_0x203273),'layers':_0x203273};}export function readRawConfig(_0x112306){return mergeRawConfigLayers(loadRawConfigLayers(_0x112306));}export function readConfigFile(_0x4e4673){const _0x1f8159=a269_0x3cbeaa;return parseAndNormalizeConfig(_0x4e4673,_0x1f8159(0x1e4));}function a269_0x2b35(){const _0x4f3127=['pageSize','accessKey','string','length','migrated','.tmp','get','.rabetbase.json','routing','warn','parse','userDomain','status','data','Project','3519maEfbj','24029uUcuxo','config','100FkVNBB','utf8','set','defaultApp','riskLevel','trim','locale','kbServiceDomain','5096720ZYlGrk','appDomain','\x0a\x20\x20','silent','env','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','empty','cwd','apps','skillDomain','6tjZtJT','keys','416720GfMHsS','error','object','missing','3877464exSrlQ','region','5540605zlaQou','3394872RUipja','format','appcode','cookie','apiDomain','apiDir','57020hpadPo','stringify','app','projectPath','runtimeDomain','inherit'];a269_0x2b35=function(){return _0x4f3127;};return a269_0x2b35();}export function writeConfigFile(_0x1cc81b,_0x1b7f59){const _0x173f3a=a269_0x3cbeaa,_0x455d96=dirname(_0x1cc81b);!existsSync(_0x455d96)&&mkdirSync(_0x455d96,{'recursive':!![]});const _0xdd4d9f=_0x1cc81b+_0x173f3a(0x1cc);try{const _0x3b1bfe=normalizeConfigForWrite(_0x1b7f59);writeFileSync(_0xdd4d9f,JSON[_0x173f3a(0x1fb)](_0x3b1bfe,null,0x2)+'\x0a',{'encoding':'utf8','mode':0x180}),renameSync(_0xdd4d9f,_0x1cc81b);}catch(_0x5650ae){try{unlinkSync(_0xdd4d9f);}catch{}throw _0x5650ae;}}export function resolveWriteConfigPath(_0x564f0f){const _0x38b8c4=_0x564f0f==='project'?process['cwd']():homedir(),_0x30bcce=resolveConfigPath(_0x38b8c4);return _0x30bcce??resolve(_0x38b8c4,NEW_CONFIG_NAME);}