@lovrabet/rabetbase-cli 2.5.7-beta.1 → 2.5.8-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.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.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/index.js +1 -1
  151. package/lib/commands/issue/nudge.js +1 -1
  152. package/lib/commands/issue/report.js +1 -1
  153. package/lib/commands/issue/shared.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/kb-search-client.js +1 -1
  301. package/lib/core/page/file-system.js +1 -1
  302. package/lib/core/page/hash.js +1 -1
  303. package/lib/core/page/lock.js +1 -1
  304. package/lib/core/page/lr-smart-jsx.js +1 -1
  305. package/lib/core/sql-index-auditor.js +1 -1
  306. package/lib/core/sql-sync/config.js +1 -1
  307. package/lib/core/sql-sync/file-system.js +1 -1
  308. package/lib/core/sql-sync/hash.js +1 -1
  309. package/lib/core/sql-sync/lock.js +1 -1
  310. package/lib/core/sql-sync/utils.js +1 -1
  311. package/lib/core/sql-validator.js +1 -1
  312. package/lib/errors.js +1 -1
  313. package/lib/framework/build-all-flags.js +1 -1
  314. package/lib/framework/error-output.js +1 -1
  315. package/lib/framework/explicit-yes.js +1 -1
  316. package/lib/framework/flags.js +1 -1
  317. package/lib/framework/help.js +1 -1
  318. package/lib/framework/index.js +1 -1
  319. package/lib/framework/output.js +1 -1
  320. package/lib/framework/response.js +1 -1
  321. package/lib/framework/runner-alias.js +1 -1
  322. package/lib/framework/runner.js +1 -1
  323. package/lib/framework/schema-export.js +1 -1
  324. package/lib/framework/supported-flags.js +1 -1
  325. package/lib/framework/types.js +1 -1
  326. package/lib/generated/build-info.d.ts +4 -4
  327. package/lib/generated/build-info.js +1 -1
  328. package/lib/generated/official-routing.js +1 -1
  329. package/lib/generated/routing-contract.js +1 -1
  330. package/lib/help.js +1 -1
  331. package/lib/postinstall.js +1 -1
  332. package/lib/runtime/confirmation.js +1 -1
  333. package/lib/runtime/event.js +1 -1
  334. package/lib/runtime/index.js +1 -1
  335. package/lib/runtime/queue.js +1 -1
  336. package/lib/runtime/resolve.js +1 -1
  337. package/lib/services/dataset-design/checkpoint.js +1 -1
  338. package/lib/services/dataset-design/commands.js +1 -1
  339. package/lib/services/dataset-design/contract.js +1 -1
  340. package/lib/skills/builtin-skill.js +1 -1
  341. package/lib/skills/main.js +1 -1
  342. package/lib/skills/npx-skills-add.js +1 -1
  343. package/lib/skills/skill-presence.js +1 -1
  344. package/lib/telemetry/cli-command-trace.js +1 -1
  345. package/lib/telemetry/cli-help-trace.js +1 -1
  346. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  347. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  348. package/lib/telemetry/send-cli-trace-log.js +1 -1
  349. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  350. package/lib/utils/ai_config.js +1 -1
  351. package/lib/utils/apply-jq-filter.js +1 -1
  352. package/lib/utils/cdn-config.js +1 -1
  353. package/lib/utils/check-sdk-version.js +1 -1
  354. package/lib/utils/cli-version-check.js +1 -1
  355. package/lib/utils/cli-version-policy.js +1 -1
  356. package/lib/utils/config.js +1 -1
  357. package/lib/utils/entity-with-id.js +1 -1
  358. package/lib/utils/file-utils.js +1 -1
  359. package/lib/utils/guides-cdn.js +1 -1
  360. package/lib/utils/http-client.js +1 -1
  361. package/lib/utils/is-non-interactive.js +1 -1
  362. package/lib/utils/logger.js +1 -1
  363. package/lib/utils/params.js +1 -1
  364. package/lib/utils/platform.js +1 -1
  365. package/lib/utils/sleep.js +1 -1
  366. package/lib/utils/template-replacer.js +1 -1
  367. package/lib/utils/update-notice.js +1 -1
  368. package/lib/utils/version.js +1 -1
  369. package/lib/utils/with-active-cookie.js +1 -1
  370. package/lib/utils/write-cli-side-channel.js +1 -1
  371. package/package.json +1 -1
  372. package/skills/rabetbase/SKILL.md +1 -1
  373. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  374. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  375. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a272_0x594339=a272_0x3f3f;(function(_0x2de3be,_0xb13d7e){const _0x3fd8ff=a272_0x3f3f,_0x1e185a=_0x2de3be();while(!![]){try{const _0x1d5068=parseInt(_0x3fd8ff(0x16d))/0x1*(parseInt(_0x3fd8ff(0x171))/0x2)+parseInt(_0x3fd8ff(0x13e))/0x3+parseInt(_0x3fd8ff(0x164))/0x4+-parseInt(_0x3fd8ff(0x170))/0x5*(parseInt(_0x3fd8ff(0x15f))/0x6)+parseInt(_0x3fd8ff(0x155))/0x7+-parseInt(_0x3fd8ff(0x167))/0x8+-parseInt(_0x3fd8ff(0x13b))/0x9;if(_0x1d5068===_0xb13d7e)break;else _0x1e185a['push'](_0x1e185a['shift']());}catch(_0x10c3be){_0x1e185a['push'](_0x1e185a['shift']());}}}(a272_0x7b22,0x8651b));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';function a272_0x3f3f(_0x5e907f,_0x1174bd){_0x5e907f=_0x5e907f-0x139;const _0x7b2269=a272_0x7b22();let _0x3f3f94=_0x7b2269[_0x5e907f];return _0x3f3f94;}export{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';export const PROJECT_CREATE_INHERITABLE_KEYS=[a272_0x594339(0x15c),a272_0x594339(0x159),'locale',a272_0x594339(0x168),a272_0x594339(0x16f),a272_0x594339(0x13d),a272_0x594339(0x13a),a272_0x594339(0x142),a272_0x594339(0x152),'runtimeDomain',a272_0x594339(0x165),a272_0x594339(0x169),a272_0x594339(0x145),a272_0x594339(0x16e),a272_0x594339(0x15e),a272_0x594339(0x162)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x594339(0x158),a272_0x594339(0x149),a272_0x594339(0x16b),a272_0x594339(0x168),a272_0x594339(0x15c),'accessKey',a272_0x594339(0x146),a272_0x594339(0x13d),a272_0x594339(0x142),a272_0x594339(0x152),a272_0x594339(0x163),a272_0x594339(0x165),a272_0x594339(0x169),a272_0x594339(0x145),a272_0x594339(0x16e),a272_0x594339(0x15e),a272_0x594339(0x162)]);export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x5eef8e){return[..._0x5eef8e]['join'](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0x504d9e){return TOP_LEVEL_CONFIG_KEYS['has'](_0x504d9e);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x281c8e=a272_0x594339;return _0x281c8e(0x16c)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x594339(0x139),'region':a272_0x594339(0x13d),'env':a272_0x594339(0x149),'apiDir':a272_0x594339(0x146),'cookie':a272_0x594339(0x15c),'accessKey':a272_0x594339(0x159),'defaultFormat':a272_0x594339(0x168),'pageSize':a272_0x594339(0x141),'riskLevel':a272_0x594339(0x16f),'locale':a272_0x594339(0x16b)};export function getAppProfileFlagDefs(){const _0x2a4ab8=a272_0x594339;return[{'name':'apiGroup','type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x14a)},{'name':'region','type':'string','description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x2a4ab8(0x149),'type':_0x2a4ab8(0x148),'description':'Target\x20environment','enum':[...RABETBASE_ENV_VALUES]},{'name':_0x2a4ab8(0x146),'type':_0x2a4ab8(0x148),'description':'API\x20directory\x20path'},{'name':_0x2a4ab8(0x15c),'type':'string','description':_0x2a4ab8(0x166),'hidden':!![]},{'name':'accessKey','type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x154),'hidden':!![]},{'name':_0x2a4ab8(0x147),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x15b),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':_0x2a4ab8(0x141),'type':_0x2a4ab8(0x150),'description':_0x2a4ab8(0x13f)},{'name':_0x2a4ab8(0x16f),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x140),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x2a4ab8(0x16b),'type':_0x2a4ab8(0x148),'description':_0x2a4ab8(0x153)}];}export function collectAppProfileOverrides(_0x2c9ff9){const _0x7a1ba1=a272_0x594339,_0x1716bc={};for(const [_0x4817c6,_0x2eaa79]of Object[_0x7a1ba1(0x156)](APP_PROFILE_FLAG_KEY_MAP)){const _0x47a553=_0x2c9ff9(_0x4817c6);if(!_0x47a553)continue;_0x1716bc[_0x2eaa79]=_0x2eaa79==='pageSize'?Number(_0x47a553):_0x47a553;}return _0x1716bc;}export function buildAppProfileListFields(_0x1ae33e){const _0x474f63=a272_0x594339;return{'apiGroup':_0x1ae33e[_0x474f63(0x139)]??null,'region':_0x1ae33e['region']??null,'env':_0x1ae33e['env']??null,'apiDir':_0x1ae33e[_0x474f63(0x146)]??null,'hasCookie':!!_0x1ae33e[_0x474f63(0x15c)],'hasAccessKey':!!_0x1ae33e[_0x474f63(0x159)],'format':_0x1ae33e['format']??null,'pageSize':_0x1ae33e['pageSize']??null,'riskLevel':_0x1ae33e['riskLevel']??null,'locale':_0x1ae33e['locale']??null};}export function buildAppDoctorFields(_0x3c9fdd,_0x15c58f){const _0x293d69=a272_0x594339;return{'region':{'value':_0x3c9fdd[_0x293d69(0x13d)]||_0x15c58f[_0x293d69(0x13d)],'source':_0x3c9fdd[_0x293d69(0x13d)]?_0x293d69(0x143):_0x293d69(0x13c)},'env':{'value':_0x3c9fdd[_0x293d69(0x149)]||_0x15c58f[_0x293d69(0x149)],'source':_0x3c9fdd[_0x293d69(0x149)]?_0x293d69(0x143):_0x293d69(0x13c)},'apiDir':{'value':_0x3c9fdd[_0x293d69(0x146)]||_0x15c58f[_0x293d69(0x146)],'source':_0x3c9fdd[_0x293d69(0x146)]?_0x293d69(0x143):'inherit'},'cookie':{'value':_0x3c9fdd[_0x293d69(0x15c)]||_0x15c58f['cookie'],'source':_0x3c9fdd[_0x293d69(0x15c)]?_0x293d69(0x143):_0x293d69(0x13c)},'accessKey':{'value':_0x3c9fdd[_0x293d69(0x159)]||_0x15c58f[_0x293d69(0x159)],'source':_0x3c9fdd['accessKey']?_0x293d69(0x143):_0x293d69(0x13c)}};}export function buildCanonicalAppConfig(_0x129d54,_0x37df1b){const _0x54e000=a272_0x594339,_0x5d9198=_0x129d54[_0x54e000(0x157)](_0x8a4dc4=>String(_0x8a4dc4||'')[_0x54e000(0x14d)]())[_0x54e000(0x14f)](Boolean);if(_0x5d9198['length']===0x0)return{};const _0x5db888={};for(const _0x2a8aff of _0x5d9198){_0x5db888[_0x2a8aff]=_0x37df1b&&!isProduction(_0x37df1b)?{'appcode':_0x2a8aff,'env':_0x37df1b}:{'appcode':_0x2a8aff};}return _0x5d9198[_0x54e000(0x161)]>0x1?{'apps':_0x5db888,'defaultApp':_0x5d9198[0x0]}:{'apps':_0x5db888};}export function normalizeStoredDefaultApp(_0x37aa0e,_0x481deb){const _0x188de9=a272_0x594339,_0x3875af=_0x37aa0e[_0x188de9(0x151)]&&typeof _0x37aa0e[_0x188de9(0x151)]===_0x188de9(0x14e)?_0x37aa0e['apps']:{},_0x8eff11=Object[_0x188de9(0x14b)](_0x3875af);if(_0x8eff11[_0x188de9(0x161)]<=0x1)return delete _0x37aa0e['defaultApp'],undefined;const _0x1c8eef=typeof _0x37aa0e['defaultApp']===_0x188de9(0x148)&&_0x3875af[_0x37aa0e[_0x188de9(0x15a)]]?_0x37aa0e[_0x188de9(0x15a)]:undefined,_0x3e0baf=_0x481deb&&_0x3875af[_0x481deb]?_0x481deb:_0x1c8eef;if(_0x3e0baf)return _0x37aa0e[_0x188de9(0x15a)]=_0x3e0baf,_0x3e0baf;return delete _0x37aa0e['defaultApp'],undefined;}export function buildCanonicalProjectConfig(_0x3c9c38,_0x3080c2){const _0x3a1caf=a272_0x594339,{appCodes:appCodes=[],env:_0x3108b6,metadata:_0x179490}=_0x3080c2,_0x4d6590={..._0x3c9c38,..._0x179490||{}};delete _0x4d6590[_0x3a1caf(0x158)],delete _0x4d6590[_0x3a1caf(0x143)];const _0x5d7317=_0x3108b6||(typeof _0x4d6590[_0x3a1caf(0x149)]===_0x3a1caf(0x148)?_0x4d6590['env']:'')||DEFAULT_CONFIG_VALUES[_0x3a1caf(0x149)];if(isProduction(_0x5d7317))delete _0x4d6590['env'];else _0x4d6590[_0x3a1caf(0x149)]=_0x5d7317;const _0x100139=buildCanonicalAppConfig(appCodes,_0x5d7317);if(Object[_0x3a1caf(0x14b)](_0x100139)[_0x3a1caf(0x161)]>0x0){_0x4d6590[_0x3a1caf(0x151)]=_0x100139[_0x3a1caf(0x151)];if(_0x100139['defaultApp'])_0x4d6590['defaultApp']=_0x100139[_0x3a1caf(0x15a)];else delete _0x4d6590[_0x3a1caf(0x15a)];}return normalizeConfigForWrite(_0x4d6590);}function isRecord(_0x44a631){const _0x3f2c07=a272_0x594339;return!!_0x44a631&&typeof _0x44a631===_0x3f2c07(0x14e)&&!Array[_0x3f2c07(0x160)](_0x44a631);}export function normalizeConfigForWrite(_0x443d89){const _0x3b1bf6=a272_0x594339,_0x52a373={..._0x443d89},_0x27c4ef=isRecord(_0x443d89[_0x3b1bf6(0x151)])?_0x443d89[_0x3b1bf6(0x151)]:undefined,_0x12202a=_0x27c4ef?Object['fromEntries'](Object[_0x3b1bf6(0x156)](_0x27c4ef)[_0x3b1bf6(0x157)](([_0x240895,_0x1bce7d])=>[_0x240895,isRecord(_0x1bce7d)?{..._0x1bce7d}:_0x1bce7d])):undefined;if(_0x12202a){const _0x44a025=typeof _0x52a373[_0x3b1bf6(0x149)]===_0x3b1bf6(0x148)?_0x52a373['env']:undefined,_0x323cfe=Object[_0x3b1bf6(0x15d)](_0x12202a)[_0x3b1bf6(0x14c)](_0x5c7b41=>isRecord(_0x5c7b41)&&typeof _0x5c7b41['env']===_0x3b1bf6(0x148)&&isProduction(_0x5c7b41['env']));if(_0x44a025&&isDaily(_0x44a025)&&_0x323cfe){for(const _0x344eb9 of Object['values'](_0x12202a)){if(!isRecord(_0x344eb9))continue;if(_0x344eb9[_0x3b1bf6(0x149)]===undefined)_0x344eb9['env']=_0x44a025;}delete _0x52a373[_0x3b1bf6(0x149)];}for(const _0x324e8d of Object[_0x3b1bf6(0x15d)](_0x12202a)){isRecord(_0x324e8d)&&typeof _0x324e8d[_0x3b1bf6(0x149)]==='string'&&isProduction(_0x324e8d[_0x3b1bf6(0x149)])&&delete _0x324e8d['env'];}_0x52a373[_0x3b1bf6(0x151)]=_0x12202a;}return typeof _0x52a373[_0x3b1bf6(0x149)]==='string'&&isProduction(_0x52a373[_0x3b1bf6(0x149)])&&delete _0x52a373['env'],_0x52a373;}function a272_0x7b22(){const _0x121222=['Config\x20key\x20(','817518PebHHG','appDomain','riskLevel','20LzVCxC','2iGpzPj','apiGroup','routing','21986838sxpOGk','inherit','region','2547591JjncZt','Default\x20page\x20size','Risk\x20level','pageSize','userDomain','app','en-US','kbServiceDomain','apiDir','defaultFormat','string','env','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','keys','some','trim','object','filter','number','apps','apiDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','Access\x20key','7044695nHdthR','entries','map','appcode','accessKey','defaultApp','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','cookie','values','localDomain','28812lkFvXL','isArray','length','certificateDomain','runtimeDomain','4182568aEUaBE','skillDomain','Auth\x20cookie','5651048tBvuXq','format','kbDomain','zh-CN','locale'];a272_0x7b22=function(){return _0x121222;};return a272_0x7b22();}const LOCALE_MAP={'zh':a272_0x594339(0x16a),'zh-cn':a272_0x594339(0x16a),'zh_cn':a272_0x594339(0x16a),'en':'en-US','en-us':a272_0x594339(0x144),'en_us':a272_0x594339(0x144)};export function normalizeLocale(_0x59e256){if(!_0x59e256)return null;return LOCALE_MAP[_0x59e256['toLowerCase']()]??null;}
1
+ const a272_0x17d927=a272_0x55dd;(function(_0x43eb2f,_0xfdec69){const _0x2be314=a272_0x55dd,_0x1f20a4=_0x43eb2f();while(!![]){try{const _0x5e73e8=-parseInt(_0x2be314(0x199))/0x1+parseInt(_0x2be314(0x1a6))/0x2+-parseInt(_0x2be314(0x1a1))/0x3+-parseInt(_0x2be314(0x18a))/0x4+-parseInt(_0x2be314(0x19b))/0x5*(parseInt(_0x2be314(0x1a3))/0x6)+parseInt(_0x2be314(0x194))/0x7*(parseInt(_0x2be314(0x1ab))/0x8)+-parseInt(_0x2be314(0x1a5))/0x9*(-parseInt(_0x2be314(0x189))/0xa);if(_0x5e73e8===_0xfdec69)break;else _0x1f20a4['push'](_0x1f20a4['shift']());}catch(_0x30de31){_0x1f20a4['push'](_0x1f20a4['shift']());}}}(a272_0x320c,0xc91fd));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';function a272_0x320c(){const _0xe8413d=['Target\x20environment','defaultFormat','some','inherit','join','certificateDomain','10703VGEgGU','Config\x20key\x20(','apiDir','app','cookie','737371KzCxxi','kbDomain','1850rPDnOB','object','apiGroup','Risk\x20level','has','runtimeDomain','3698676IoZAIk','apps','12186ffHXqT','riskLevel','10980amNIdf','419352Fzjjwy','number','appDomain','map','env','6128uteJvW','region','skillDomain','App\x20locale\x20(not\x20CLI\x20language;\x20reserved\x20for\x20later\x20app\x20use)','string','entries','localDomain','locale','format','keys','length','Auth\x20cookie','Join\x20key\x20for\x20app\x20profiles\x20that\x20share\x20one\x20generated\x20API\x20model\x20registry','Access\x20key','kbServiceDomain','trim','defaultApp','appcode','accessKey','fromEntries','userDomain','Default\x20page\x20size','API\x20directory\x20path','values','routing','apiDomain','toLowerCase','23450ceVqsO','2785008hIPbIF','en-US','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','pageSize'];a272_0x320c=function(){return _0xe8413d;};return a272_0x320c();}export const PROJECT_CREATE_INHERITABLE_KEYS=['cookie',a272_0x17d927(0x180),a272_0x17d927(0x1b2),'format','riskLevel','region',a272_0x17d927(0x186),'userDomain',a272_0x17d927(0x187),a272_0x17d927(0x1a0),a272_0x17d927(0x1ad),a272_0x17d927(0x19a),'kbServiceDomain',a272_0x17d927(0x1a8),a272_0x17d927(0x1b1),a272_0x17d927(0x193)];export const TOP_LEVEL_CONFIG_KEYS=new Set([a272_0x17d927(0x17f),a272_0x17d927(0x1aa),'locale',a272_0x17d927(0x1b3),a272_0x17d927(0x198),a272_0x17d927(0x180),'apiDir',a272_0x17d927(0x1ac),a272_0x17d927(0x182),a272_0x17d927(0x187),a272_0x17d927(0x1a0),a272_0x17d927(0x1ad),'kbDomain',a272_0x17d927(0x17c),'appDomain',a272_0x17d927(0x1b1),a272_0x17d927(0x193)]);function a272_0x55dd(_0x5c8bbb,_0x5e171c){_0x5c8bbb=_0x5c8bbb-0x17b;const _0x320cfc=a272_0x320c();let _0x55dd77=_0x320cfc[_0x5c8bbb];return _0x55dd77;}export const CONFIG_ENUM_VALUES={'env':[...RABETBASE_ENV_VALUES],'format':[...RABETBASE_OUTPUT_FORMAT_VALUES],'region':[...ENABLED_LOVRABET_REGION_VALUES]};export function formatConfigKeyList(_0x476949){const _0x52ddef=a272_0x17d927;return[..._0x476949][_0x52ddef(0x192)](',\x20');}export function getTopLevelConfigKeyList(){return[...TOP_LEVEL_CONFIG_KEYS];}export function isTopLevelConfigKey(_0xbbe5ce){const _0x1fb7e6=a272_0x17d927;return TOP_LEVEL_CONFIG_KEYS[_0x1fb7e6(0x19f)](_0xbbe5ce);}export function getTopLevelConfigKeySummary(){return formatConfigKeyList(getTopLevelConfigKeyList());}export function getConfigCommandKeyDescription(){const _0x4da5d2=a272_0x17d927;return _0x4da5d2(0x195)+getTopLevelConfigKeySummary()+')';}export const APP_PROFILE_FLAG_KEY_MAP={'apiGroup':a272_0x17d927(0x19d),'region':a272_0x17d927(0x1ac),'env':a272_0x17d927(0x1aa),'apiDir':a272_0x17d927(0x196),'cookie':a272_0x17d927(0x198),'accessKey':a272_0x17d927(0x180),'defaultFormat':a272_0x17d927(0x1b3),'pageSize':a272_0x17d927(0x18d),'riskLevel':a272_0x17d927(0x1a4),'locale':a272_0x17d927(0x1b2)};export function getAppProfileFlagDefs(){const _0x5a4690=a272_0x17d927;return[{'name':_0x5a4690(0x19d),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x1b7)},{'name':'region','type':'string','description':'Country/region\x20for\x20this\x20app\x20profile','enum':[...ENABLED_LOVRABET_REGION_VALUES]},{'name':_0x5a4690(0x1aa),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x18e),'enum':[...RABETBASE_ENV_VALUES]},{'name':'apiDir','type':_0x5a4690(0x1af),'description':_0x5a4690(0x184)},{'name':'cookie','type':_0x5a4690(0x1af),'description':_0x5a4690(0x1b6),'hidden':!![]},{'name':_0x5a4690(0x180),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x17b),'hidden':!![]},{'name':_0x5a4690(0x18f),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x18c),'enum':[...RABETBASE_OUTPUT_FORMAT_VALUES]},{'name':'pageSize','type':_0x5a4690(0x1a7),'description':_0x5a4690(0x183)},{'name':_0x5a4690(0x1a4),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x19e),'enum':[...RISK_LEVEL_VALUES]},{'name':_0x5a4690(0x1b2),'type':_0x5a4690(0x1af),'description':_0x5a4690(0x1ae)}];}export function collectAppProfileOverrides(_0x2192b4){const _0x518574=a272_0x17d927,_0x1340d0={};for(const [_0x53eda8,_0x125d51]of Object[_0x518574(0x1b0)](APP_PROFILE_FLAG_KEY_MAP)){const _0x23b24e=_0x2192b4(_0x53eda8);if(!_0x23b24e)continue;_0x1340d0[_0x125d51]=_0x125d51===_0x518574(0x18d)?Number(_0x23b24e):_0x23b24e;}return _0x1340d0;}export function buildAppProfileListFields(_0x55d46a){const _0x41b007=a272_0x17d927;return{'apiGroup':_0x55d46a['apiGroup']??null,'region':_0x55d46a['region']??null,'env':_0x55d46a['env']??null,'apiDir':_0x55d46a['apiDir']??null,'hasCookie':!!_0x55d46a[_0x41b007(0x198)],'hasAccessKey':!!_0x55d46a[_0x41b007(0x180)],'format':_0x55d46a[_0x41b007(0x1b3)]??null,'pageSize':_0x55d46a['pageSize']??null,'riskLevel':_0x55d46a[_0x41b007(0x1a4)]??null,'locale':_0x55d46a[_0x41b007(0x1b2)]??null};}export function buildAppDoctorFields(_0x766925,_0x1e2f30){const _0x2bed20=a272_0x17d927;return{'region':{'value':_0x766925[_0x2bed20(0x1ac)]||_0x1e2f30[_0x2bed20(0x1ac)],'source':_0x766925[_0x2bed20(0x1ac)]?_0x2bed20(0x197):_0x2bed20(0x191)},'env':{'value':_0x766925['env']||_0x1e2f30[_0x2bed20(0x1aa)],'source':_0x766925[_0x2bed20(0x1aa)]?_0x2bed20(0x197):_0x2bed20(0x191)},'apiDir':{'value':_0x766925[_0x2bed20(0x196)]||_0x1e2f30[_0x2bed20(0x196)],'source':_0x766925['apiDir']?_0x2bed20(0x197):_0x2bed20(0x191)},'cookie':{'value':_0x766925['cookie']||_0x1e2f30['cookie'],'source':_0x766925[_0x2bed20(0x198)]?_0x2bed20(0x197):_0x2bed20(0x191)},'accessKey':{'value':_0x766925[_0x2bed20(0x180)]||_0x1e2f30['accessKey'],'source':_0x766925[_0x2bed20(0x180)]?'app':_0x2bed20(0x191)}};}export function buildCanonicalAppConfig(_0x59283c,_0xe15fb){const _0x139766=a272_0x17d927,_0x241ab6=_0x59283c[_0x139766(0x1a9)](_0x5d75ab=>String(_0x5d75ab||'')[_0x139766(0x17d)]())['filter'](Boolean);if(_0x241ab6[_0x139766(0x1b5)]===0x0)return{};const _0x11f9a9={};for(const _0x2d44e5 of _0x241ab6){_0x11f9a9[_0x2d44e5]=_0xe15fb&&!isProduction(_0xe15fb)?{'appcode':_0x2d44e5,'env':_0xe15fb}:{'appcode':_0x2d44e5};}return _0x241ab6['length']>0x1?{'apps':_0x11f9a9,'defaultApp':_0x241ab6[0x0]}:{'apps':_0x11f9a9};}export function normalizeStoredDefaultApp(_0x15c889,_0x349433){const _0x1934c9=a272_0x17d927,_0x5d4e13=_0x15c889[_0x1934c9(0x1a2)]&&typeof _0x15c889['apps']==='object'?_0x15c889[_0x1934c9(0x1a2)]:{},_0x36ba71=Object[_0x1934c9(0x1b4)](_0x5d4e13);if(_0x36ba71[_0x1934c9(0x1b5)]<=0x1)return delete _0x15c889[_0x1934c9(0x17e)],undefined;const _0x2df2b8=typeof _0x15c889[_0x1934c9(0x17e)]===_0x1934c9(0x1af)&&_0x5d4e13[_0x15c889[_0x1934c9(0x17e)]]?_0x15c889[_0x1934c9(0x17e)]:undefined,_0x5d9609=_0x349433&&_0x5d4e13[_0x349433]?_0x349433:_0x2df2b8;if(_0x5d9609)return _0x15c889[_0x1934c9(0x17e)]=_0x5d9609,_0x5d9609;return delete _0x15c889[_0x1934c9(0x17e)],undefined;}export function buildCanonicalProjectConfig(_0x4a82a7,_0x32dfed){const _0x4451d3=a272_0x17d927,{appCodes:appCodes=[],env:_0x4b723c,metadata:_0x4de139}=_0x32dfed,_0x35a4d0={..._0x4a82a7,..._0x4de139||{}};delete _0x35a4d0[_0x4451d3(0x17f)],delete _0x35a4d0[_0x4451d3(0x197)];const _0x58106c=_0x4b723c||(typeof _0x35a4d0[_0x4451d3(0x1aa)]===_0x4451d3(0x1af)?_0x35a4d0[_0x4451d3(0x1aa)]:'')||DEFAULT_CONFIG_VALUES[_0x4451d3(0x1aa)];if(isProduction(_0x58106c))delete _0x35a4d0[_0x4451d3(0x1aa)];else _0x35a4d0['env']=_0x58106c;const _0x12c87d=buildCanonicalAppConfig(appCodes,_0x58106c);if(Object[_0x4451d3(0x1b4)](_0x12c87d)['length']>0x0){_0x35a4d0[_0x4451d3(0x1a2)]=_0x12c87d[_0x4451d3(0x1a2)];if(_0x12c87d[_0x4451d3(0x17e)])_0x35a4d0['defaultApp']=_0x12c87d['defaultApp'];else delete _0x35a4d0[_0x4451d3(0x17e)];}return normalizeConfigForWrite(_0x35a4d0);}function isRecord(_0x263504){const _0x59330e=a272_0x17d927;return!!_0x263504&&typeof _0x263504===_0x59330e(0x19c)&&!Array['isArray'](_0x263504);}export function normalizeConfigForWrite(_0x36a1fc){const _0x8a698d=a272_0x17d927,_0x5773b2={..._0x36a1fc},_0x406617=isRecord(_0x36a1fc[_0x8a698d(0x1a2)])?_0x36a1fc[_0x8a698d(0x1a2)]:undefined,_0x106ac5=_0x406617?Object[_0x8a698d(0x181)](Object[_0x8a698d(0x1b0)](_0x406617)['map'](([_0x147fa1,_0x3fd1a8])=>[_0x147fa1,isRecord(_0x3fd1a8)?{..._0x3fd1a8}:_0x3fd1a8])):undefined;if(_0x106ac5){const _0x402b19=typeof _0x5773b2[_0x8a698d(0x1aa)]===_0x8a698d(0x1af)?_0x5773b2['env']:undefined,_0x48358f=Object['values'](_0x106ac5)[_0x8a698d(0x190)](_0x5f32e6=>isRecord(_0x5f32e6)&&typeof _0x5f32e6[_0x8a698d(0x1aa)]===_0x8a698d(0x1af)&&isProduction(_0x5f32e6[_0x8a698d(0x1aa)]));if(_0x402b19&&isDaily(_0x402b19)&&_0x48358f){for(const _0x13eb95 of Object[_0x8a698d(0x185)](_0x106ac5)){if(!isRecord(_0x13eb95))continue;if(_0x13eb95[_0x8a698d(0x1aa)]===undefined)_0x13eb95[_0x8a698d(0x1aa)]=_0x402b19;}delete _0x5773b2[_0x8a698d(0x1aa)];}for(const _0x11f40a of Object[_0x8a698d(0x185)](_0x106ac5)){isRecord(_0x11f40a)&&typeof _0x11f40a['env']===_0x8a698d(0x1af)&&isProduction(_0x11f40a[_0x8a698d(0x1aa)])&&delete _0x11f40a[_0x8a698d(0x1aa)];}_0x5773b2[_0x8a698d(0x1a2)]=_0x106ac5;}return typeof _0x5773b2['env']===_0x8a698d(0x1af)&&isProduction(_0x5773b2[_0x8a698d(0x1aa)])&&delete _0x5773b2[_0x8a698d(0x1aa)],_0x5773b2;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':'zh-CN','zh_cn':'zh-CN','en':a272_0x17d927(0x18b),'en-us':a272_0x17d927(0x18b),'en_us':a272_0x17d927(0x18b)};export function normalizeLocale(_0x3523ac){const _0x1a71ac=a272_0x17d927;if(!_0x3523ac)return null;return LOCALE_MAP[_0x3523ac[_0x1a71ac(0x188)]()]??null;}
@@ -1 +1 @@
1
- const a273_0xfc46ff=a273_0x42e9;function a273_0x1d72(){const _0x2073ca=['https://g.lovrabet.com','630077rSFkDY','lovrabet','3322065OqIvGa','2976273LbOjDu','296371vPKixg','config/index.json','18EKgroE','templates/projects','/dist/','rabetbase-cli','freeze','.zip','4017860JxqmdS','56MSEKgf','153666WwUbPP','1486862yyBRRx'];a273_0x1d72=function(){return _0x2073ca;};return a273_0x1d72();}(function(_0x291cfc,_0x3d61a0){const _0x5078e9=a273_0x42e9,_0x23d2d3=_0x291cfc();while(!![]){try{const _0x4e8ae7=-parseInt(_0x5078e9(0x148))/0x1+-parseInt(_0x5078e9(0x142))/0x2+-parseInt(_0x5078e9(0x141))/0x3+-parseInt(_0x5078e9(0x13f))/0x4+parseInt(_0x5078e9(0x146))/0x5+-parseInt(_0x5078e9(0x14a))/0x6*(parseInt(_0x5078e9(0x144))/0x7)+parseInt(_0x5078e9(0x140))/0x8*(parseInt(_0x5078e9(0x147))/0x9);if(_0x4e8ae7===_0x3d61a0)break;else _0x23d2d3['push'](_0x23d2d3['shift']());}catch(_0x132cca){_0x23d2d3['push'](_0x23d2d3['shift']());}}}(a273_0x1d72,0x95d8a));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0xfc46ff(0x14d),RABETBASE_CDN_CONFIG_ORIGIN=a273_0xfc46ff(0x143),CDN_CONFIG_PATH=a273_0xfc46ff(0x149),PROJECT_TEMPLATE_ASSET_PATH=a273_0xfc46ff(0x14b),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0xfc46ff(0x13d)]({'release':'sub-app-react-demo.zip','beta':'sub-app-react-demo-beta.zip'});function a273_0x42e9(_0x1668b9,_0x1749ae){_0x1668b9=_0x1668b9-0x13d;const _0x1d7286=a273_0x1d72();let _0x42e996=_0x1d7286[_0x1668b9];return _0x42e996;}export const RABETBASE_CDN_PROJECT_PATH=a273_0xfc46ff(0x14c)+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x5f50b5=a273_0xfc46ff;return''+getActiveCdn()[_0x5f50b5(0x145)]+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(_0x44c5ac,_0x2b0e6f){const _0x5b7f4a=a273_0xfc46ff,_0x39c6cf=_0x2b0e6f?'sub-app-react-demo-'+_0x2b0e6f+_0x5b7f4a(0x13e):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x44c5ac];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x39c6cf;}
1
+ function a273_0x350a(){const _0xaef4ba=['8740hQSeeo','sub-app-react-demo.zip','sub-app-react-demo-','2993768AcqaAY','2755SdPPWe','422345TkiiNf','lovrabet','102906PIuTWQ','sub-app-react-demo-beta.zip','https://g.lovrabet.com','3095229fvekCY','769818PiwDzN','config/index.json','templates/projects','freeze','.zip','rabetbase-cli','1sWNNLA','25992963gXkedK'];a273_0x350a=function(){return _0xaef4ba;};return a273_0x350a();}const a273_0x423e0f=a273_0x54a8;(function(_0x1bc440,_0x172790){const _0x57f8c2=a273_0x54a8,_0x2c43aa=_0x1bc440();while(!![]){try{const _0x3b2864=parseInt(_0x57f8c2(0x131))/0x1*(parseInt(_0x57f8c2(0x13e))/0x2)+-parseInt(_0x57f8c2(0x13d))/0x3+-parseInt(_0x57f8c2(0x133))/0x4*(parseInt(_0x57f8c2(0x137))/0x5)+parseInt(_0x57f8c2(0x13a))/0x6+-parseInt(_0x57f8c2(0x138))/0x7+-parseInt(_0x57f8c2(0x136))/0x8+parseInt(_0x57f8c2(0x132))/0x9;if(_0x3b2864===_0x172790)break;else _0x2c43aa['push'](_0x2c43aa['shift']());}catch(_0xb7ed53){_0x2c43aa['push'](_0x2c43aa['shift']());}}}(a273_0x350a,0x9759d));import{getActiveCdn}from'../constant/domain.js';const RABETBASE_CDN_PROJECT=a273_0x423e0f(0x130),RABETBASE_CDN_CONFIG_ORIGIN=a273_0x423e0f(0x13c),CDN_CONFIG_PATH=a273_0x423e0f(0x13f),PROJECT_TEMPLATE_ASSET_PATH=a273_0x423e0f(0x12d),PROJECT_TEMPLATE_ARCHIVE_NAMES=Object[a273_0x423e0f(0x12e)]({'release':a273_0x423e0f(0x134),'beta':a273_0x423e0f(0x13b)});function a273_0x54a8(_0x1b004b,_0x431069){_0x1b004b=_0x1b004b-0x12d;const _0x350a1d=a273_0x350a();let _0x54a824=_0x350a1d[_0x1b004b];return _0x54a824;}export const RABETBASE_CDN_PROJECT_PATH='/dist/'+RABETBASE_CDN_PROJECT;function getRabetbaseCdnBaseUrl(){const _0x1cef96=a273_0x423e0f;return''+getActiveCdn()[_0x1cef96(0x139)]+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(_0x261aa7,_0x4e252b){const _0x3de9e7=a273_0x423e0f,_0x58f21f=_0x4e252b?_0x3de9e7(0x135)+_0x4e252b+_0x3de9e7(0x12f):PROJECT_TEMPLATE_ARCHIVE_NAMES[_0x261aa7];return RABETBASE_CDN_PROJECT_PATH+'/'+PROJECT_TEMPLATE_ASSET_PATH+'/'+_0x58f21f;}
@@ -1 +1 @@
1
- const a274_0x1f295e=a274_0x1c3b;(function(_0x165fd4,_0x2c53cc){const _0x2bbee9=a274_0x1c3b,_0x395d1e=_0x165fd4();while(!![]){try{const _0x272f3d=-parseInt(_0x2bbee9(0x1a1))/0x1*(parseInt(_0x2bbee9(0x1b6))/0x2)+-parseInt(_0x2bbee9(0x19b))/0x3*(parseInt(_0x2bbee9(0x20d))/0x4)+parseInt(_0x2bbee9(0x1a5))/0x5+-parseInt(_0x2bbee9(0x21c))/0x6+parseInt(_0x2bbee9(0x1f8))/0x7*(parseInt(_0x2bbee9(0x20e))/0x8)+-parseInt(_0x2bbee9(0x1a6))/0x9+-parseInt(_0x2bbee9(0x209))/0xa*(-parseInt(_0x2bbee9(0x1e7))/0xb);if(_0x272f3d===_0x2c53cc)break;else _0x395d1e['push'](_0x395d1e['shift']());}catch(_0x2b4817){_0x395d1e['push'](_0x395d1e['shift']());}}}(a274_0x5b62,0x25487));export const CLI_BIN_NAME=a274_0x1f295e(0x1ff);export const CLI_DISPLAY_NAME=a274_0x1f295e(0x194);function a274_0x5b62(){const _0x1d5148=['expected-children-count','yes','Comma-separated\x20menu\x20IDs','tags','Dataset\x20code','enableBffSave','remote','File\x20path','query','Parent\x20menu\x20id','Apply\x20to\x20all','title','Read\x20value\x20from\x20stdin','menu-ids','Comma-separated\x20metadata\x20codes','fromEnv','schemas','pagesize','reveal','codes','Name','Use\x20global\x20config\x20scope','Type\x20filter','Expected\x20current\x20menu\x20path','6105869oXCDEk','sql','string','Menu\x20label','from-env','Operation\x20type','App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','help','stdin','nonInteractive','page','Schemas','label','value','SQL\x20name','expectedChildrenCount','<expr>','41083XnYDss','keyword','key','Skip\x20import\x20generation','description','Config\x20key','Function\x20node','rabetbase','params','flowName','menuIds','dbid','Target\x20path','function-node','Verbose\x20output','Preview\x20operation\x20without\x20executing','production\x20|\x20daily','10HJLkkE','description-file','all','Force\x20overwrite','1101572sBnlXS','96kpRggS','verbose','Search\x20query','dryRun','Maximum\x20search\x20hits','Record\x20ID','datasetcode','output','expect-path','expected-count','global','env','Skip\x20confirmation\x20for\x20high-risk\x20writes','Output\x20format','180630SrpMKg','Output\x20path','Description','Expected\x20current\x20child\x20count','sqlname','Menu\x20sort\x20value','format','@lovrabet/rabetbase-cli','Page\x20size','name','expect-parent-id','Confirm\x20destructive\x20action','dry-run','Read\x20value\x20from\x20environment\x20variable','datasetCode','code','flow-status','Rabetbase\x20CLI','operation','confirm','Environment','Override\x20appcode','force','DB\x20ID','3IwLRet','functionNode','flow-name','Clear','fromEntries','watch','57905tTopRf','JSON\x20params','sqlName','Title','962760yioOWY','2717505aBPBad','expectedCount','zh-CN\x20|\x20en-US','Reveal\x20sensitive\x20value','skip-imports','map','json\x20|\x20pretty\x20|\x20compress','app','Expected\x20current\x20parent\x20menu\x20id','sqlcode','flow-code','file','Config\x20value','appcode','flowStatus','db-id','2PZnaUF','boolean','Flow\x20status','descriptionFile','Select\x20app\x20profile\x20by\x20name','topk','operationType','taskId','Description\x20file','page-size','pageSize','non-interactive','parent-id','<code>','locale','Code\x20filter','expectParentId','SQL\x20code','Tags','dbId','sort','Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','operation-type','Use\x20project\x20config\x20scope','clear'];a274_0x5b62=function(){return _0x1d5148;};return a274_0x5b62();}export const NPM_PACKAGE_NAME=a274_0x1f295e(0x18a);export const GLOBAL_FLAGS=[{'name':'appcode','meowKey':a274_0x1f295e(0x1b3),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x198),'hint':a274_0x1f295e(0x1c3)},{'name':a274_0x1f295e(0x1ad),'meowKey':a274_0x1f295e(0x1ad),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ba),'hint':'<name>'},{'name':'env','meowKey':'env','type':'string','description':a274_0x1f295e(0x197),'hint':a274_0x1f295e(0x208)},{'name':a274_0x1f295e(0x189),'meowKey':a274_0x1f295e(0x189),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21b),'hint':a274_0x1f295e(0x1ac)},{'name':'jq','meowKey':'jq','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1cb),'hint':a274_0x1f295e(0x1f7)},{'name':a274_0x1f295e(0x18f),'meowKey':a274_0x1f295e(0x211),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x207)},{'name':'yes','meowKey':a274_0x1f295e(0x1d0),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x21a)},{'name':a274_0x1f295e(0x1c1),'meowKey':a274_0x1f295e(0x1f0),'type':a274_0x1f295e(0x1b7),'description':'Force\x20non-interactive\x20mode\x20(CI)'},{'name':'global','meowKey':a274_0x1f295e(0x218),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1e4)},{'name':'project','meowKey':'project','type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1cd)},{'name':'ci','meowKey':'ci','type':'boolean','description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a274_0x1f295e(0x1ee),'meowKey':'help','type':'boolean','description':'Show\x20help'},{'name':a274_0x1f295e(0x1c4),'meowKey':'locale','type':'string','description':a274_0x1f295e(0x1ed),'hidden':!![],'hint':a274_0x1f295e(0x1a8)},{'name':'name','meowKey':a274_0x1f295e(0x18c),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e3),'hidden':!![]},{'name':a274_0x1f295e(0x1da),'meowKey':'title','type':'string','description':a274_0x1f295e(0x1a4),'hidden':!![]},{'name':a274_0x1f295e(0x1d7),'meowKey':a274_0x1f295e(0x1d7),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x210),'hidden':!![]},{'name':a274_0x1f295e(0x1bb),'meowKey':'topk','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x212),'hidden':!![]},{'name':a274_0x1f295e(0x1ce),'meowKey':a274_0x1f295e(0x1ce),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x19e),'hidden':!![]},{'name':'watch','meowKey':a274_0x1f295e(0x1a0),'type':a274_0x1f295e(0x1b7),'description':'Watch\x20mode','hidden':!![]},{'name':a274_0x1f295e(0x215),'meowKey':a274_0x1f295e(0x215),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21d),'hidden':!![]},{'name':a274_0x1f295e(0x200),'meowKey':a274_0x1f295e(0x200),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1a2),'hidden':!![]},{'name':a274_0x1f295e(0x214),'meowKey':a274_0x1f295e(0x214),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d3),'hidden':!![]},{'name':a274_0x1f295e(0x20b),'meowKey':a274_0x1f295e(0x20b),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1d9),'hidden':!![]},{'name':'enable-bff-save','meowKey':a274_0x1f295e(0x1d4),'type':a274_0x1f295e(0x1b7),'description':'Enable\x20Backend\x20Function\x20save','hidden':!![]},{'name':'id','meowKey':'id','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x213),'hidden':!![]},{'name':'type','meowKey':'type','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e5),'hidden':!![]},{'name':a274_0x1f295e(0x1b1),'meowKey':'file','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d6),'hidden':!![]},{'name':a274_0x1f295e(0x1b0),'meowKey':'flowCode','type':a274_0x1f295e(0x1e9),'description':'Flow\x20code','hidden':!![]},{'name':a274_0x1f295e(0x19d),'meowKey':a274_0x1f295e(0x201),'type':'string','description':'Flow\x20name','hidden':!![]},{'name':a274_0x1f295e(0x193),'meowKey':a274_0x1f295e(0x1b4),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1b8),'hidden':!![]},{'name':'flow-type','meowKey':'flowType','type':a274_0x1f295e(0x1e9),'description':'Flow\x20type','hidden':!![]},{'name':'dataset-code','meowKey':a274_0x1f295e(0x191),'type':a274_0x1f295e(0x1e9),'description':'Dataset\x20code','hidden':!![]},{'name':a274_0x1f295e(0x1af),'meowKey':'sqlcode','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c7),'hidden':!![]},{'name':'sql-name','meowKey':a274_0x1f295e(0x1a3),'type':'string','description':a274_0x1f295e(0x1f5),'hidden':!![]},{'name':'sqlname','meowKey':a274_0x1f295e(0x187),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1f5),'hidden':!![]},{'name':a274_0x1f295e(0x1b5),'meowKey':a274_0x1f295e(0x1c9),'type':'string','description':'DB\x20ID','hidden':!![]},{'name':a274_0x1f295e(0x203),'meowKey':a274_0x1f295e(0x203),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x19a),'hidden':!![]},{'name':a274_0x1f295e(0x1fc),'meowKey':a274_0x1f295e(0x1fc),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21e),'hidden':!![]},{'name':a274_0x1f295e(0x20a),'meowKey':a274_0x1f295e(0x1b9),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1be),'hidden':!![]},{'name':a274_0x1f295e(0x1f1),'meowKey':a274_0x1f295e(0x1f1),'type':a274_0x1f295e(0x1e9),'description':'Page\x20number','hidden':!![]},{'name':a274_0x1f295e(0x1bf),'meowKey':a274_0x1f295e(0x1c0),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x18b),'hidden':!![]},{'name':a274_0x1f295e(0x1e0),'meowKey':'pagesize','type':'string','description':a274_0x1f295e(0x18b),'hidden':!![]},{'name':a274_0x1f295e(0x1f9),'meowKey':a274_0x1f295e(0x1f9),'type':a274_0x1f295e(0x1e9),'description':'Keyword\x20filter','hidden':!![]},{'name':'code','meowKey':a274_0x1f295e(0x192),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c5),'hidden':!![]},{'name':a274_0x1f295e(0x1e8),'meowKey':a274_0x1f295e(0x1e8),'type':'string','description':'SQL\x20string','hidden':!![]},{'name':a274_0x1f295e(0x1df),'meowKey':a274_0x1f295e(0x1df),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1f2),'hidden':!![]},{'name':'operation','meowKey':a274_0x1f295e(0x195),'type':'string','description':'Operation\x20type','hidden':!![]},{'name':'target','meowKey':'target','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x204),'hidden':!![]},{'name':a274_0x1f295e(0x1aa),'meowKey':'skipImports','type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1fb),'hidden':!![]},{'name':a274_0x1f295e(0x1fa),'meowKey':a274_0x1f295e(0x1fa),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1fd),'hidden':!![]},{'name':a274_0x1f295e(0x1f4),'meowKey':'value','type':'string','description':a274_0x1f295e(0x1b2),'hidden':!![]},{'name':a274_0x1f295e(0x1d2),'meowKey':a274_0x1f295e(0x1d2),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1c8),'hidden':!![]},{'name':'stdin','meowKey':a274_0x1f295e(0x1ef),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1db),'hidden':!![]},{'name':a274_0x1f295e(0x1eb),'meowKey':a274_0x1f295e(0x1de),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x190),'hidden':!![]},{'name':'reveal','meowKey':a274_0x1f295e(0x1e1),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x1a9),'hidden':!![]},{'name':a274_0x1f295e(0x199),'meowKey':a274_0x1f295e(0x199),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x20c),'hidden':!![]},{'name':a274_0x1f295e(0x196),'meowKey':'confirm','type':'boolean','description':a274_0x1f295e(0x18e),'hidden':!![]},{'name':a274_0x1f295e(0x1d5),'meowKey':a274_0x1f295e(0x1d5),'type':a274_0x1f295e(0x1b7),'description':'Use\x20remote','hidden':!![]},{'name':'verbose','meowKey':a274_0x1f295e(0x20f),'type':a274_0x1f295e(0x1b7),'description':a274_0x1f295e(0x206),'hidden':!![]},{'name':a274_0x1f295e(0x217),'meowKey':a274_0x1f295e(0x1a7),'type':'string','description':'Expected\x20affected\x20count','hidden':!![]},{'name':'label','meowKey':a274_0x1f295e(0x1f3),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ea),'hidden':!![]},{'name':a274_0x1f295e(0x1c2),'meowKey':'parentId','type':'string','description':a274_0x1f295e(0x1d8),'hidden':!![]},{'name':a274_0x1f295e(0x1ca),'meowKey':a274_0x1f295e(0x1ca),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x188),'hidden':!![]},{'name':a274_0x1f295e(0x18d),'meowKey':a274_0x1f295e(0x1c6),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ae),'hidden':!![]},{'name':a274_0x1f295e(0x216),'meowKey':'expectPath','type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1e6),'hidden':!![]},{'name':a274_0x1f295e(0x1cf),'meowKey':a274_0x1f295e(0x1f6),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x21f),'hidden':!![]},{'name':a274_0x1f295e(0x1dc),'meowKey':a274_0x1f295e(0x202),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1d1),'hidden':!![]},{'name':'task-id','meowKey':a274_0x1f295e(0x1bd),'type':a274_0x1f295e(0x1e9),'description':'Asynchronous\x20task\x20ID','hidden':!![]},{'name':a274_0x1f295e(0x1cc),'meowKey':a274_0x1f295e(0x1bc),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1ec),'hidden':!![]},{'name':a274_0x1f295e(0x205),'meowKey':a274_0x1f295e(0x19c),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1fe),'hidden':!![]},{'name':a274_0x1f295e(0x1e2),'meowKey':a274_0x1f295e(0x1e2),'type':a274_0x1f295e(0x1e9),'description':a274_0x1f295e(0x1dd),'hidden':!![]}];function a274_0x1c3b(_0x2a9128,_0x44e005){_0x2a9128=_0x2a9128-0x187;const _0x5b62b5=a274_0x5b62();let _0x1c3bee=_0x5b62b5[_0x2a9128];return _0x1c3bee;}export const PIPELINE_FLAG_NAMES=new Set([a274_0x1f295e(0x1b3),a274_0x1f295e(0x1ad),a274_0x1f295e(0x219),'format','jq',a274_0x1f295e(0x18f),a274_0x1f295e(0x1d0),a274_0x1f295e(0x1c1),'ci']);export function buildMeowFlags(){const _0x48bee0=a274_0x1f295e;return Object[_0x48bee0(0x19f)](GLOBAL_FLAGS[_0x48bee0(0x1ab)](_0x3f9968=>[_0x3f9968['meowKey'],{'type':_0x3f9968['type']}]));}
1
+ function a274_0x5d3e(){const _0x128ba8=['query','Keyword\x20filter','flowStatus','Select\x20app\x20profile\x20by\x20name','2652985ZQwhVU','Menu\x20label','string','stdin','Config\x20key','Reveal\x20sensitive\x20value','2943100nIChjr','expectPath','Force\x20non-interactive\x20mode\x20(CI)','description-file','Asynchronous\x20task\x20ID','target','Search\x20query','reveal','sqlcode','operation-type','Skip\x20import\x20generation','operationType','2629467ksQgCP','21733308VQUxPW','tags','Function\x20node','yes','functionNode','confirm','value','function-node','Comma-separated\x20metadata\x20codes','512631xVLHpY','task-id','flowType','expectParentId','appcode','taskId','rabetbase','3325840QGInXw','flow-status','Override\x20appcode','Skip\x20confirmation\x20for\x20high-risk\x20writes','params','sqlname','enable-bff-save','dbId','type','Description\x20file','name','Watch\x20mode','all','Page\x20number','non-interactive','datasetcode','sql','Read\x20value\x20from\x20environment\x20variable','Name','verbose','652062QpMFgl','env','2RSrXAU','production\x20|\x20daily','schemas','global','output','sort','@lovrabet/rabetbase-cli','parentId','expected-count','Type\x20filter','DB\x20ID','Page\x20size','Parent\x20menu\x20id','Menu\x20sort\x20value','JSON\x20params','operation','meowKey','Comma-separated\x20menu\x20IDs','Expected\x20current\x20menu\x20path','Enable\x20Backend\x20Function\x20save','Verbose\x20output','fromEnv','title','Title','enableBffSave','sqlName','keyword','nonInteractive','json\x20|\x20pretty\x20|\x20compress','remote','boolean','Use\x20project\x20config\x20scope','watch','SQL\x20string','Dataset\x20code','flow-type','Output\x20path','help','Expected\x20affected\x20count','7FNmKPL','Use\x20remote','description','flow-code','Code\x20filter','code','dry-run','map','pagesize','topk','Flow\x20name','page','File\x20path','expectedChildrenCount','fromEntries','zh-CN\x20|\x20en-US','menu-ids','expect-parent-id','Flow\x20code','force','key','sql-name','Expected\x20current\x20parent\x20menu\x20id','dbid','flow-name','datasetCode','Maximum\x20search\x20hits','app','menuIds','Environment','Description','label','<code>','Apply\x20to\x20all','Operation\x20type','Clear','Schemas','flowCode','Preview\x20operation\x20without\x20executing','page-size','clear','format','locale','skip-imports','parent-id'];a274_0x5d3e=function(){return _0x128ba8;};return a274_0x5d3e();}const a274_0xbd501b=a274_0x3280;(function(_0x510b36,_0x292bb4){const _0x8caec8=a274_0x3280,_0xfee3bb=_0x510b36();while(!![]){try{const _0x13812f=parseInt(_0x8caec8(0x1c9))/0x1+parseInt(_0x8caec8(0x1e6))/0x2*(-parseInt(_0x8caec8(0x1bf))/0x3)+-parseInt(_0x8caec8(0x1b3))/0x4+-parseInt(_0x8caec8(0x1ad))/0x5+-parseInt(_0x8caec8(0x1e4))/0x6*(-parseInt(_0x8caec8(0x17c))/0x7)+-parseInt(_0x8caec8(0x1d0))/0x8+parseInt(_0x8caec8(0x1c0))/0x9;if(_0x13812f===_0x292bb4)break;else _0xfee3bb['push'](_0xfee3bb['shift']());}catch(_0x126368){_0xfee3bb['push'](_0xfee3bb['shift']());}}}(a274_0x5d3e,0x74959));export const CLI_BIN_NAME=a274_0xbd501b(0x1cf);export const CLI_DISPLAY_NAME='Rabetbase\x20CLI';export const NPM_PACKAGE_NAME=a274_0xbd501b(0x1ec);export const GLOBAL_FLAGS=[{'name':a274_0xbd501b(0x1cd),'meowKey':a274_0xbd501b(0x1cd),'type':'string','description':a274_0xbd501b(0x1d2),'hint':a274_0xbd501b(0x19c)},{'name':a274_0xbd501b(0x197),'meowKey':a274_0xbd501b(0x197),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1ac),'hint':'<name>'},{'name':'env','meowKey':a274_0xbd501b(0x1e5),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x199),'hint':a274_0xbd501b(0x1e7)},{'name':a274_0xbd501b(0x1a5),'meowKey':a274_0xbd501b(0x1a5),'type':'string','description':'Output\x20format','hint':a274_0xbd501b(0x171)},{'name':'jq','meowKey':'jq','type':a274_0xbd501b(0x1af),'description':'Filter\x20JSON\x20output\x20(JQ_PATH\x20>\x20bundled\x20jq\x20>\x20PATH;\x20use\x20with\x20--format\x20json\x20or\x20compress)','hint':'<expr>'},{'name':a274_0xbd501b(0x182),'meowKey':'dryRun','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1a2)},{'name':a274_0xbd501b(0x1c3),'meowKey':'yes','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1d3)},{'name':'non-interactive','meowKey':a274_0xbd501b(0x170),'type':'boolean','description':a274_0xbd501b(0x1b5)},{'name':a274_0xbd501b(0x1e9),'meowKey':a274_0xbd501b(0x1e9),'type':a274_0xbd501b(0x173),'description':'Use\x20global\x20config\x20scope'},{'name':'project','meowKey':'project','type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x174)},{'name':'ci','meowKey':'ci','type':a274_0xbd501b(0x173),'description':'Alias\x20for\x20--non-interactive','hidden':!![]},{'name':a274_0xbd501b(0x17a),'meowKey':a274_0xbd501b(0x17a),'type':a274_0xbd501b(0x173),'description':'Show\x20help'},{'name':a274_0xbd501b(0x1a6),'meowKey':a274_0xbd501b(0x1a6),'type':a274_0xbd501b(0x1af),'description':'App\x20locale\x20(workspace\x20pass-through;\x20not\x20CLI\x20language)','hidden':!![],'hint':a274_0xbd501b(0x18b)},{'name':a274_0xbd501b(0x1da),'meowKey':'name','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1e2),'hidden':!![]},{'name':a274_0xbd501b(0x16b),'meowKey':a274_0xbd501b(0x16b),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x16c),'hidden':!![]},{'name':a274_0xbd501b(0x1a9),'meowKey':a274_0xbd501b(0x1a9),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b9),'hidden':!![]},{'name':a274_0xbd501b(0x185),'meowKey':a274_0xbd501b(0x185),'type':'string','description':a274_0xbd501b(0x196),'hidden':!![]},{'name':'clear','meowKey':a274_0xbd501b(0x1a4),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x19f),'hidden':!![]},{'name':a274_0xbd501b(0x175),'meowKey':a274_0xbd501b(0x175),'type':'boolean','description':a274_0xbd501b(0x1db),'hidden':!![]},{'name':a274_0xbd501b(0x1ea),'meowKey':a274_0xbd501b(0x1ea),'type':'string','description':a274_0xbd501b(0x179),'hidden':!![]},{'name':'params','meowKey':a274_0xbd501b(0x1d4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x163),'hidden':!![]},{'name':'datasetcode','meowKey':a274_0xbd501b(0x1df),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x177),'hidden':!![]},{'name':a274_0xbd501b(0x1dc),'meowKey':a274_0xbd501b(0x1dc),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x19d),'hidden':!![]},{'name':a274_0xbd501b(0x1d6),'meowKey':a274_0xbd501b(0x16d),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x168),'hidden':!![]},{'name':'id','meowKey':'id','type':'string','description':'Record\x20ID','hidden':!![]},{'name':'type','meowKey':a274_0xbd501b(0x1d8),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1ef),'hidden':!![]},{'name':'file','meowKey':'file','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x188),'hidden':!![]},{'name':a274_0xbd501b(0x17f),'meowKey':a274_0xbd501b(0x1a1),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x18e),'hidden':!![]},{'name':a274_0xbd501b(0x194),'meowKey':'flowName','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x186),'hidden':!![]},{'name':a274_0xbd501b(0x1d1),'meowKey':a274_0xbd501b(0x1ab),'type':a274_0xbd501b(0x1af),'description':'Flow\x20status','hidden':!![]},{'name':a274_0xbd501b(0x178),'meowKey':a274_0xbd501b(0x1cb),'type':a274_0xbd501b(0x1af),'description':'Flow\x20type','hidden':!![]},{'name':'dataset-code','meowKey':a274_0xbd501b(0x195),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x177),'hidden':!![]},{'name':a274_0xbd501b(0x1bb),'meowKey':a274_0xbd501b(0x1bb),'type':a274_0xbd501b(0x1af),'description':'SQL\x20code','hidden':!![]},{'name':a274_0xbd501b(0x191),'meowKey':a274_0xbd501b(0x16e),'type':a274_0xbd501b(0x1af),'description':'SQL\x20name','hidden':!![]},{'name':a274_0xbd501b(0x1d5),'meowKey':a274_0xbd501b(0x1d5),'type':a274_0xbd501b(0x1af),'description':'SQL\x20name','hidden':!![]},{'name':'db-id','meowKey':a274_0xbd501b(0x1d7),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f0),'hidden':!![]},{'name':a274_0xbd501b(0x193),'meowKey':a274_0xbd501b(0x193),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f0),'hidden':!![]},{'name':a274_0xbd501b(0x17e),'meowKey':a274_0xbd501b(0x17e),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19a),'hidden':!![]},{'name':a274_0xbd501b(0x1b6),'meowKey':'descriptionFile','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1d9),'hidden':!![]},{'name':a274_0xbd501b(0x187),'meowKey':a274_0xbd501b(0x187),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1dd),'hidden':!![]},{'name':a274_0xbd501b(0x1a3),'meowKey':'pageSize','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f1),'hidden':!![]},{'name':'pagesize','meowKey':a274_0xbd501b(0x184),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f1),'hidden':!![]},{'name':'keyword','meowKey':a274_0xbd501b(0x16f),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1aa),'hidden':!![]},{'name':'code','meowKey':a274_0xbd501b(0x181),'type':'string','description':a274_0xbd501b(0x180),'hidden':!![]},{'name':a274_0xbd501b(0x1e0),'meowKey':'sql','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x176),'hidden':!![]},{'name':a274_0xbd501b(0x1e8),'meowKey':a274_0xbd501b(0x1e8),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1a0),'hidden':!![]},{'name':'operation','meowKey':a274_0xbd501b(0x164),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19e),'hidden':!![]},{'name':a274_0xbd501b(0x1b8),'meowKey':'target','type':a274_0xbd501b(0x1af),'description':'Target\x20path','hidden':!![]},{'name':a274_0xbd501b(0x1a7),'meowKey':'skipImports','type':'boolean','description':a274_0xbd501b(0x1bd),'hidden':!![]},{'name':a274_0xbd501b(0x190),'meowKey':'key','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b1),'hidden':!![]},{'name':a274_0xbd501b(0x1c6),'meowKey':a274_0xbd501b(0x1c6),'type':a274_0xbd501b(0x1af),'description':'Config\x20value','hidden':!![]},{'name':a274_0xbd501b(0x1c1),'meowKey':a274_0xbd501b(0x1c1),'type':a274_0xbd501b(0x1af),'description':'Tags','hidden':!![]},{'name':a274_0xbd501b(0x1b0),'meowKey':a274_0xbd501b(0x1b0),'type':a274_0xbd501b(0x173),'description':'Read\x20value\x20from\x20stdin','hidden':!![]},{'name':'from-env','meowKey':a274_0xbd501b(0x16a),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1e1),'hidden':!![]},{'name':'reveal','meowKey':a274_0xbd501b(0x1ba),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x1b2),'hidden':!![]},{'name':a274_0xbd501b(0x18f),'meowKey':'force','type':a274_0xbd501b(0x173),'description':'Force\x20overwrite','hidden':!![]},{'name':a274_0xbd501b(0x1c5),'meowKey':a274_0xbd501b(0x1c5),'type':a274_0xbd501b(0x173),'description':'Confirm\x20destructive\x20action','hidden':!![]},{'name':'remote','meowKey':a274_0xbd501b(0x172),'type':a274_0xbd501b(0x173),'description':a274_0xbd501b(0x17d),'hidden':!![]},{'name':a274_0xbd501b(0x1e3),'meowKey':a274_0xbd501b(0x1e3),'type':'boolean','description':a274_0xbd501b(0x169),'hidden':!![]},{'name':a274_0xbd501b(0x1ee),'meowKey':'expectedCount','type':'string','description':a274_0xbd501b(0x17b),'hidden':!![]},{'name':a274_0xbd501b(0x19b),'meowKey':a274_0xbd501b(0x19b),'type':'string','description':a274_0xbd501b(0x1ae),'hidden':!![]},{'name':a274_0xbd501b(0x1a8),'meowKey':a274_0xbd501b(0x1ed),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1f2),'hidden':!![]},{'name':a274_0xbd501b(0x1eb),'meowKey':'sort','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x162),'hidden':!![]},{'name':a274_0xbd501b(0x18d),'meowKey':a274_0xbd501b(0x1cc),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x192),'hidden':!![]},{'name':'expect-path','meowKey':a274_0xbd501b(0x1b4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x167),'hidden':!![]},{'name':'expected-children-count','meowKey':a274_0xbd501b(0x189),'type':a274_0xbd501b(0x1af),'description':'Expected\x20current\x20child\x20count','hidden':!![]},{'name':a274_0xbd501b(0x18c),'meowKey':a274_0xbd501b(0x198),'type':'string','description':a274_0xbd501b(0x166),'hidden':!![]},{'name':a274_0xbd501b(0x1ca),'meowKey':a274_0xbd501b(0x1ce),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1b7),'hidden':!![]},{'name':a274_0xbd501b(0x1bc),'meowKey':a274_0xbd501b(0x1be),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x19e),'hidden':!![]},{'name':a274_0xbd501b(0x1c7),'meowKey':a274_0xbd501b(0x1c4),'type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1c2),'hidden':!![]},{'name':'codes','meowKey':'codes','type':a274_0xbd501b(0x1af),'description':a274_0xbd501b(0x1c8),'hidden':!![]}];export const PIPELINE_FLAG_NAMES=new Set(['appcode',a274_0xbd501b(0x197),a274_0xbd501b(0x1e5),a274_0xbd501b(0x1a5),'jq',a274_0xbd501b(0x182),'yes',a274_0xbd501b(0x1de),'ci']);function a274_0x3280(_0x524687,_0x170374){_0x524687=_0x524687-0x162;const _0x5d3ee0=a274_0x5d3e();let _0x3280f4=_0x5d3ee0[_0x524687];return _0x3280f4;}export function buildMeowFlags(){const _0x2d8416=a274_0xbd501b;return Object[_0x2d8416(0x18a)](GLOBAL_FLAGS[_0x2d8416(0x183)](_0x426937=>[_0x426937[_0x2d8416(0x165)],{'type':_0x426937[_0x2d8416(0x1d8)]}]));}
@@ -1 +1 @@
1
- const a275_0x22a0de=a275_0x50a8;(function(_0x1793d9,_0x51b789){const _0x3b1e35=a275_0x50a8,_0xa1e9c1=_0x1793d9();while(!![]){try{const _0x3a9588=parseInt(_0x3b1e35(0x137))/0x1+parseInt(_0x3b1e35(0x132))/0x2+parseInt(_0x3b1e35(0x133))/0x3*(parseInt(_0x3b1e35(0x134))/0x4)+-parseInt(_0x3b1e35(0x139))/0x5*(parseInt(_0x3b1e35(0x13f))/0x6)+-parseInt(_0x3b1e35(0x138))/0x7*(parseInt(_0x3b1e35(0x13d))/0x8)+parseInt(_0x3b1e35(0x136))/0x9*(parseInt(_0x3b1e35(0x13a))/0xa)+-parseInt(_0x3b1e35(0x135))/0xb;if(_0x3a9588===_0x51b789)break;else _0xa1e9c1['push'](_0xa1e9c1['shift']());}catch(_0x1bafa9){_0xa1e9c1['push'](_0xa1e9c1['shift']());}}}(a275_0x401d,0x5d16b));import{DEFAULT_API_DIR}from'../constant/paths.js';function a275_0x50a8(_0x464196,_0x44415a){_0x464196=_0x464196-0x132;const _0x401d33=a275_0x401d();let _0x50a8f3=_0x401d33[_0x464196];return _0x50a8f3;}function a275_0x401d(){const _0x201228=['383925iitEyY','76559oUdFBT','50145TbMXQy','464610KcHxKT','production','write','56gJLZDA','en-US','18kNivQO','58796hePyDX','714882eCqpWV','8MLSMxi','5954927jeyjgr','27NaThbp'];a275_0x401d=function(){return _0x201228;};return a275_0x401d();}export const DEFAULT_CONFIG_VALUES={'env':a275_0x22a0de(0x13b),'format':'compress','locale':a275_0x22a0de(0x13e),'riskLevel':a275_0x22a0de(0x13c),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT='compress';
1
+ function a275_0x4f0e(){const _0x46c804=['en-US','12PEgndQ','4055105iLJIHO','2153253hUtzvt','production','5661208qnawjd','561800cRruXY','634688UQpANx','write','4CvFoGy','531708iFkfoY','compress','31953230ReNmbY','117ZYdtXE'];a275_0x4f0e=function(){return _0x46c804;};return a275_0x4f0e();}const a275_0x99f109=a275_0x2e53;(function(_0x1ea883,_0x5e3ef8){const _0x225ebf=a275_0x2e53,_0x362bd3=_0x1ea883();while(!![]){try{const _0x1aa7b0=-parseInt(_0x225ebf(0x9d))/0x1+-parseInt(_0x225ebf(0x9c))/0x2*(-parseInt(_0x225ebf(0xa4))/0x3)+-parseInt(_0x225ebf(0x9a))/0x4+parseInt(_0x225ebf(0xa3))/0x5+parseInt(_0x225ebf(0xa2))/0x6*(parseInt(_0x225ebf(0xa6))/0x7)+-parseInt(_0x225ebf(0xa7))/0x8*(-parseInt(_0x225ebf(0xa0))/0x9)+-parseInt(_0x225ebf(0x9f))/0xa;if(_0x1aa7b0===_0x5e3ef8)break;else _0x362bd3['push'](_0x362bd3['shift']());}catch(_0x2dfb14){_0x362bd3['push'](_0x362bd3['shift']());}}}(a275_0x4f0e,0xd9961));import{DEFAULT_API_DIR}from'../constant/paths.js';function a275_0x2e53(_0x5c364f,_0x4075f9){_0x5c364f=_0x5c364f-0x9a;const _0x4f0e84=a275_0x4f0e();let _0x2e5355=_0x4f0e84[_0x5c364f];return _0x2e5355;}export const DEFAULT_CONFIG_VALUES={'env':a275_0x99f109(0xa5),'format':a275_0x99f109(0x9e),'locale':a275_0x99f109(0xa1),'riskLevel':a275_0x99f109(0x9b),'apiDir':DEFAULT_API_DIR};export const DEFAULT_COMMAND_OUTPUT_FORMAT=a275_0x99f109(0x9e);
@@ -1 +1 @@
1
- const a276_0x426342=a276_0x543b;(function(_0x1d6117,_0x4ef2a5){const _0x3c89e8=a276_0x543b,_0x2dc071=_0x1d6117();while(!![]){try{const _0x331dc=-parseInt(_0x3c89e8(0x122))/0x1+-parseInt(_0x3c89e8(0x126))/0x2*(-parseInt(_0x3c89e8(0x133))/0x3)+parseInt(_0x3c89e8(0x12f))/0x4*(-parseInt(_0x3c89e8(0x11b))/0x5)+-parseInt(_0x3c89e8(0x11f))/0x6*(parseInt(_0x3c89e8(0x132))/0x7)+parseInt(_0x3c89e8(0x121))/0x8+parseInt(_0x3c89e8(0x125))/0x9+-parseInt(_0x3c89e8(0x134))/0xa;if(_0x331dc===_0x4ef2a5)break;else _0x2dc071['push'](_0x2dc071['shift']());}catch(_0x152426){_0x2dc071['push'](_0x2dc071['shift']());}}}(a276_0x5a25,0x2a13b));import{getEnv,isProduction}from'../constant/env.js';import{DEFAULT_LOVRABET_REGION}from'../constant/region.js';import{getOfficialRoutingCdn,getOfficialRoutingProfile}from'../constant/routing-profile.js';function a276_0x543b(_0x3bbcb5,_0x24ad85){_0x3bbcb5=_0x3bbcb5-0x119;const _0x5a2524=a276_0x5a25();let _0x543bd3=_0x5a2524[_0x3bbcb5];return _0x543bd3;}let customApiDomain,customUserDomain,customRuntimeDomain,customSkillDomain,customKbDomain,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x2e92c5=a276_0x543b,_0x7092c9=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0x7092c9['serviceDomains']['production']:_0x7092c9[_0x2e92c5(0x12a)][_0x2e92c5(0x137)]??_0x7092c9['serviceDomains'][_0x2e92c5(0x124)];}export function initDomains(_0x3073db){const _0x91fe8d=a276_0x543b;customApiDomain=_0x3073db?.['apiDomain'],customUserDomain=_0x3073db?.['userDomain'],customRuntimeDomain=_0x3073db?.['runtimeDomain'],customSkillDomain=_0x3073db?.[_0x91fe8d(0x138)],customKbDomain=_0x3073db?.[_0x91fe8d(0x129)],customKbServiceDomain=_0x3073db?.[_0x91fe8d(0x12d)],allowOfficialKbServiceDefault=_0x3073db?.[_0x91fe8d(0x135)]??!![],customAppDomain=_0x3073db?.[_0x91fe8d(0x11e)],customLocalDomain=_0x3073db?.[_0x91fe8d(0x127)],customCertificateDomain=_0x3073db?.[_0x91fe8d(0x130)],customCdn=_0x3073db?.[_0x91fe8d(0x128)],activeRegion=_0x3073db?.[_0x91fe8d(0x11c)]??DEFAULT_LOVRABET_REGION;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x426342(0x11d)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x426342(0x11a)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x426342(0x131)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0xe2c6cc=a276_0x426342;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0xe2c6cc(0x136)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x426342(0x12e)];export const getActiveRegion=()=>activeRegion;export const getLocalDomain=()=>customLocalDomain;export const getCertificateDomain=()=>customCertificateDomain;export const getActiveCdn=()=>customCdn||getOfficialRoutingCdn(activeRegion);function a276_0x5a25(){const _0x4f3237=['198TFPVnR','origin','1219512gHGAwQ','27917iJxfry','hostname','production','1361232gcovtX','1198kIjiWH','localDomain','cdn','kbDomain','serviceDomains','/app/','trim','kbServiceDomain','app','1005204LOyZgA','certificateDomain','skill','10913ILmrWd','1332sSEYoo','666310svUzuv','allowOfficialKbServiceDefault','kbService','daily','skillDomain','/web-app/app/','runtime','5HGuHYV','region','user','appDomain'];a276_0x5a25=function(){return _0x4f3237;};return a276_0x5a25();}export function isIndependentDeployment(){return!!(customApiDomain||customUserDomain||customRuntimeDomain||customSkillDomain||customKbDomain||customAppDomain||customLocalDomain||customCertificateDomain);}export function getSdkClientRoutingConfig(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}export const getAppBaseUrl=_0x12863d=>{const _0x243663=a276_0x426342,_0x2f3c43=encodeURIComponent(_0x12863d[_0x243663(0x12c)]());return isProduction(getEnv())?getAppDomain()+_0x243663(0x12b)+_0x2f3c43:getAppDomain()+_0x243663(0x119)+_0x2f3c43;};export const getPublishedAppDomain=_0x52baa4=>{const _0xea4388=a276_0x426342,_0x4c7faa=new URL(getAppDomain());return _0x4c7faa['hostname']=_0x52baa4[_0xea4388(0x12c)]()+'.'+_0x4c7faa[_0xea4388(0x123)],_0x4c7faa[_0xea4388(0x120)];};
1
+ const a276_0x3187d7=a276_0x1a21;(function(_0x13039a,_0x8db064){const _0x440738=a276_0x1a21,_0x1cb80e=_0x13039a();while(!![]){try{const _0x4f7126=-parseInt(_0x440738(0xe9))/0x1*(parseInt(_0x440738(0xde))/0x2)+-parseInt(_0x440738(0xf8))/0x3*(-parseInt(_0x440738(0xdc))/0x4)+parseInt(_0x440738(0xfa))/0x5*(-parseInt(_0x440738(0xe8))/0x6)+parseInt(_0x440738(0xe0))/0x7+parseInt(_0x440738(0xf9))/0x8+parseInt(_0x440738(0xe5))/0x9*(-parseInt(_0x440738(0xea))/0xa)+parseInt(_0x440738(0xe7))/0xb;if(_0x4f7126===_0x8db064)break;else _0x1cb80e['push'](_0x1cb80e['shift']());}catch(_0x51c75f){_0x1cb80e['push'](_0x1cb80e['shift']());}}}(a276_0x335f,0xb4475));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,customKbServiceDomain,allowOfficialKbServiceDefault=!![],customAppDomain,customLocalDomain,customCertificateDomain,customCdn,activeRegion=DEFAULT_LOVRABET_REGION;function getActiveRegionDomains(){const _0x3d0a69=a276_0x1a21,_0xed5e0a=getOfficialRoutingProfile(activeRegion);return isProduction(getEnv())?_0xed5e0a[_0x3d0a69(0xee)][_0x3d0a69(0xe1)]:_0xed5e0a['serviceDomains'][_0x3d0a69(0xe4)]??_0xed5e0a[_0x3d0a69(0xee)][_0x3d0a69(0xe1)];}export function initDomains(_0x59b596){const _0x4ace07=a276_0x1a21;customApiDomain=_0x59b596?.['apiDomain'],customUserDomain=_0x59b596?.['userDomain'],customRuntimeDomain=_0x59b596?.[_0x4ace07(0xf7)],customSkillDomain=_0x59b596?.[_0x4ace07(0xf5)],customKbDomain=_0x59b596?.['kbDomain'],customKbServiceDomain=_0x59b596?.['kbServiceDomain'],allowOfficialKbServiceDefault=_0x59b596?.[_0x4ace07(0xf6)]??!![],customAppDomain=_0x59b596?.['appDomain'],customLocalDomain=_0x59b596?.[_0x4ace07(0xf0)],customCertificateDomain=_0x59b596?.[_0x4ace07(0xf4)],customCdn=_0x59b596?.[_0x4ace07(0xef)],activeRegion=_0x59b596?.[_0x4ace07(0xeb)]??DEFAULT_LOVRABET_REGION;}function a276_0x1a21(_0xea68e,_0x3bec41){_0xea68e=_0xea68e-0xdc;const _0x335f4d=a276_0x335f();let _0x1a21e7=_0x335f4d[_0xea68e];return _0x1a21e7;}export const getUserDomain=()=>customUserDomain||getActiveRegionDomains()[a276_0x3187d7(0xf3)];export const getApiDomain=()=>customApiDomain||getActiveRegionDomains()['api'];export const getRuntimeDomain=()=>customRuntimeDomain||getActiveRegionDomains()[a276_0x3187d7(0xdf)];export const getSkillDomain=()=>customSkillDomain||getActiveRegionDomains()[a276_0x3187d7(0xf1)];export const getKbDomain=()=>customKbDomain||customApiDomain||getActiveRegionDomains()['kb'];export const getKbServiceDomain=()=>{const _0x4b4508=a276_0x3187d7;if(customKbServiceDomain)return customKbServiceDomain;if(!allowOfficialKbServiceDefault)return undefined;return getActiveRegionDomains()[_0x4b4508(0xdd)];};export const getAppDomain=()=>customAppDomain||getActiveRegionDomains()[a276_0x3187d7(0xe2)];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(){if(customRuntimeDomain&&customRuntimeDomain!==getActiveRegionDomains()['runtime'])return{'runtimeDomain':customRuntimeDomain};if(activeRegion!==DEFAULT_LOVRABET_REGION)return{'runtimeDomain':getRuntimeDomain()};return{};}function a276_0x335f(){const _0xc86bb9=['app','trim','daily','84141pbuIgC','/web-app/app/','19193724SKKlRW','7546908Ysvlys','289538cgcSmu','1230jXahut','region','origin','hostname','serviceDomains','cdn','localDomain','skill','/app/','user','certificateDomain','skillDomain','allowOfficialKbServiceDefault','runtimeDomain','1770OcsHfB','5150040BDaJUC','5gMwzix','524HSiKcS','kbService','4UkdCkI','runtime','8815191essAkw','production'];a276_0x335f=function(){return _0xc86bb9;};return a276_0x335f();}export const getAppBaseUrl=_0x20f17f=>{const _0x3c6a08=a276_0x3187d7,_0x569116=encodeURIComponent(_0x20f17f[_0x3c6a08(0xe3)]());return isProduction(getEnv())?getAppDomain()+_0x3c6a08(0xf2)+_0x569116:getAppDomain()+_0x3c6a08(0xe6)+_0x569116;};export const getPublishedAppDomain=_0x426d34=>{const _0x1d63ab=a276_0x3187d7,_0x331515=new URL(getAppDomain());return _0x331515[_0x1d63ab(0xed)]=_0x426d34[_0x1d63ab(0xe3)]()+'.'+_0x331515[_0x1d63ab(0xed)],_0x331515[_0x1d63ab(0xec)];};
@@ -1 +1 @@
1
- const a277_0x1ac7a7=a277_0x3e7f;(function(_0x39cf6f,_0x136f16){const _0x5d53c5=a277_0x3e7f,_0x178e7f=_0x39cf6f();while(!![]){try{const _0x799334=parseInt(_0x5d53c5(0x114))/0x1*(-parseInt(_0x5d53c5(0x11c))/0x2)+-parseInt(_0x5d53c5(0x112))/0x3*(parseInt(_0x5d53c5(0x11a))/0x4)+-parseInt(_0x5d53c5(0x118))/0x5+-parseInt(_0x5d53c5(0x117))/0x6+-parseInt(_0x5d53c5(0x11d))/0x7*(parseInt(_0x5d53c5(0x120))/0x8)+parseInt(_0x5d53c5(0x122))/0x9*(-parseInt(_0x5d53c5(0x113))/0xa)+parseInt(_0x5d53c5(0x119))/0xb*(parseInt(_0x5d53c5(0x115))/0xc);if(_0x799334===_0x136f16)break;else _0x178e7f['push'](_0x178e7f['shift']());}catch(_0x1ae3be){_0x178e7f['push'](_0x178e7f['shift']());}}}(a277_0x3e0a,0x43bbb));export const RABETBASE_ENV_VALUES=[a277_0x1ac7a7(0x11e),a277_0x1ac7a7(0x11f)];export function normalizeEnv(_0x546c7c){const _0x1743e3=a277_0x1ac7a7;return _0x546c7c===_0x1743e3(0x11b)?_0x1743e3(0x11e):_0x546c7c;}export function isProduction(_0x5788d1){const _0x5819fa=a277_0x1ac7a7;return normalizeEnv(_0x5788d1)===_0x5819fa(0x11e);}export function isDaily(_0x57d7d5){const _0x2b27e5=a277_0x1ac7a7;return normalizeEnv(_0x57d7d5)===_0x2b27e5(0x11f);}export function isDev(_0x3b7af6){const _0x62f60d=a277_0x1ac7a7,_0x128abf=normalizeEnv(_0x3b7af6);return _0x128abf===_0x62f60d(0x116)||_0x128abf===_0x62f60d(0x121);}function a277_0x3e7f(_0x309613,_0x4268d4){_0x309613=_0x309613-0x112;const _0x3e0a76=a277_0x3e0a();let _0x3e7fb6=_0x3e0a76[_0x309613];return _0x3e7fb6;}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x1ac7a7(0x11e));function a277_0x3e0a(){const _0x162b7f=['dev','18891IPkDZF','61767EGDbyb','1510kCMhwd','1NYoGeM','29628FNrVOr','development','1494438dmDcGU','212770bIowub','7249jtFixC','40yJqRCw','online','753254vYGMhJ','5467jEavxn','production','daily','1624XXoozb'];a277_0x3e0a=function(){return _0x162b7f;};return a277_0x3e0a();}export function getEnv(){return env;}export function initEnv(_0x47de2e){env=normalizeEnv(_0x47de2e);}
1
+ const a277_0x492995=a277_0x285d;(function(_0x203d55,_0x4b6844){const _0x411fcd=a277_0x285d,_0x270200=_0x203d55();while(!![]){try{const _0x58ad21=-parseInt(_0x411fcd(0x1e5))/0x1*(parseInt(_0x411fcd(0x1ea))/0x2)+-parseInt(_0x411fcd(0x1e6))/0x3*(parseInt(_0x411fcd(0x1de))/0x4)+parseInt(_0x411fcd(0x1dd))/0x5+-parseInt(_0x411fcd(0x1df))/0x6+-parseInt(_0x411fcd(0x1e8))/0x7*(parseInt(_0x411fcd(0x1e0))/0x8)+parseInt(_0x411fcd(0x1e7))/0x9*(parseInt(_0x411fcd(0x1dc))/0xa)+-parseInt(_0x411fcd(0x1eb))/0xb*(-parseInt(_0x411fcd(0x1e2))/0xc);if(_0x58ad21===_0x4b6844)break;else _0x270200['push'](_0x270200['shift']());}catch(_0x2ffb9d){_0x270200['push'](_0x270200['shift']());}}}(a277_0x61a4,0x46d31));export const RABETBASE_ENV_VALUES=[a277_0x492995(0x1e3),a277_0x492995(0x1e4)];function a277_0x61a4(){const _0xe0d587=['22980WfgADI','production','daily','105767YRMfkC','3Mtufvk','126BOTWIU','35dJJkjW','online','6DOsxcw','3806RgNXeB','143090KoXbJe','1871175MJcDMm','1342748uWgizl','1692966DaOMhu','19048rkjpCB','development'];a277_0x61a4=function(){return _0xe0d587;};return a277_0x61a4();}export function normalizeEnv(_0x588c73){const _0x2d8bd8=a277_0x492995;return _0x588c73===_0x2d8bd8(0x1e9)?_0x2d8bd8(0x1e3):_0x588c73;}export function isProduction(_0x3c53e9){return normalizeEnv(_0x3c53e9)==='production';}function a277_0x285d(_0x2fb9b1,_0x5013f1){_0x2fb9b1=_0x2fb9b1-0x1dc;const _0x61a4c0=a277_0x61a4();let _0x285d53=_0x61a4c0[_0x2fb9b1];return _0x285d53;}export function isDaily(_0x34f3aa){const _0x486774=a277_0x492995;return normalizeEnv(_0x34f3aa)===_0x486774(0x1e4);}export function isDev(_0x28cc3b){const _0x3f12c8=a277_0x492995,_0x5e90ff=normalizeEnv(_0x28cc3b);return _0x5e90ff===_0x3f12c8(0x1e1)||_0x5e90ff==='dev';}let env=normalizeEnv(process.env.RABETBASE_ENV||process.env.LOVRABET_ENV||a277_0x492995(0x1e3));export function getEnv(){return env;}export function initEnv(_0x2c2285){env=normalizeEnv(_0x2c2285);}
@@ -1 +1 @@
1
- const a278_0x528fc1=a278_0x79e7;(function(_0x53959b,_0x5d976c){const _0x25b4f1=a278_0x79e7,_0x287291=_0x53959b();while(!![]){try{const _0x5685f0=-parseInt(_0x25b4f1(0x192))/0x1*(-parseInt(_0x25b4f1(0x19c))/0x2)+parseInt(_0x25b4f1(0x191))/0x3*(parseInt(_0x25b4f1(0x198))/0x4)+parseInt(_0x25b4f1(0x197))/0x5+parseInt(_0x25b4f1(0x190))/0x6+-parseInt(_0x25b4f1(0x199))/0x7+parseInt(_0x25b4f1(0x194))/0x8*(parseInt(_0x25b4f1(0x19d))/0x9)+parseInt(_0x25b4f1(0x195))/0xa*(-parseInt(_0x25b4f1(0x193))/0xb);if(_0x5685f0===_0x5d976c)break;else _0x287291['push'](_0x287291['shift']());}catch(_0x5ed41a){_0x287291['push'](_0x287291['shift']());}}}(a278_0xf1c4,0xe9ebe));function a278_0x79e7(_0x38358a,_0x1b7d4a){_0x38358a=_0x38358a-0x190;const _0xf1c41b=a278_0xf1c4();let _0x79e799=_0xf1c41b[_0x38358a];return _0x79e799;}export const RABETBASE_OUTPUT_FORMAT_VALUES=[a278_0x528fc1(0x19b),a278_0x528fc1(0x196),a278_0x528fc1(0x19a)];function a278_0xf1c4(){const _0xa01a39=['43348YJorYd','5630485xInZwd','compress','json','625358iDNSea','9mpQWps','743424lmCbVC','507HeMYmr','5vbEqgs','22396nvuOgI','7012856aIuFTl','13170WtKCea','pretty','242750vkRYFR'];a278_0xf1c4=function(){return _0xa01a39;};return a278_0xf1c4();}
1
+ function a278_0x21b9(_0xa41aad,_0x23c956){_0xa41aad=_0xa41aad-0xb1;const _0x5f18b6=a278_0x5f18();let _0x21b995=_0x5f18b6[_0xa41aad];return _0x21b995;}const a278_0x3da53c=a278_0x21b9;(function(_0x36140c,_0x188328){const _0x59c8eb=a278_0x21b9,_0x2b1408=_0x36140c();while(!![]){try{const _0x3c26d4=parseInt(_0x59c8eb(0xb2))/0x1*(-parseInt(_0x59c8eb(0xba))/0x2)+-parseInt(_0x59c8eb(0xbb))/0x3+-parseInt(_0x59c8eb(0xb7))/0x4*(-parseInt(_0x59c8eb(0xb1))/0x5)+parseInt(_0x59c8eb(0xb6))/0x6*(parseInt(_0x59c8eb(0xb9))/0x7)+parseInt(_0x59c8eb(0xb8))/0x8+parseInt(_0x59c8eb(0xb3))/0x9+parseInt(_0x59c8eb(0xb5))/0xa;if(_0x3c26d4===_0x188328)break;else _0x2b1408['push'](_0x2b1408['shift']());}catch(_0x224bf8){_0x2b1408['push'](_0x2b1408['shift']());}}}(a278_0x5f18,0x72748));function a278_0x5f18(){const _0xf123b1=['3044610JWlCYK','569562AbKJST','12YhFkYV','1927008tIsCzC','7dVYUqn','106706KJHjKZ','189924Trptzt','25965blalKo','16TgtVKK','6569289EdhKqd','pretty'];a278_0x5f18=function(){return _0xf123b1;};return a278_0x5f18();}export const RABETBASE_OUTPUT_FORMAT_VALUES=['json',a278_0x3da53c(0xb4),'compress'];
@@ -1 +1 @@
1
- function a279_0x13a6(_0x444e2c,_0x4a533f){_0x444e2c=_0x444e2c-0x86;const _0x5e86c5=a279_0x5e86();let _0x13a63d=_0x5e86c5[_0x444e2c];return _0x13a63d;}const a279_0x3a2977=a279_0x13a6;(function(_0x52bd6d,_0x575e77){const _0x1f9c3d=a279_0x13a6,_0x4e2d58=_0x52bd6d();while(!![]){try{const _0x4d80ba=-parseInt(_0x1f9c3d(0x90))/0x1*(-parseInt(_0x1f9c3d(0x8b))/0x2)+-parseInt(_0x1f9c3d(0x92))/0x3*(-parseInt(_0x1f9c3d(0x8a))/0x4)+parseInt(_0x1f9c3d(0x8d))/0x5*(parseInt(_0x1f9c3d(0x91))/0x6)+-parseInt(_0x1f9c3d(0x8c))/0x7*(parseInt(_0x1f9c3d(0x8f))/0x8)+-parseInt(_0x1f9c3d(0x86))/0x9+-parseInt(_0x1f9c3d(0x89))/0xa+parseInt(_0x1f9c3d(0x87))/0xb*(-parseInt(_0x1f9c3d(0x8e))/0xc);if(_0x4d80ba===_0x575e77)break;else _0x4e2d58['push'](_0x4e2d58['shift']());}catch(_0x2a11a5){_0x4e2d58['push'](_0x4e2d58['shift']());}}}(a279_0x5e86,0xe31fd));function a279_0x5e86(){const _0x4d3ac6=['2526IaVIWh','12aTehny','13552191HpqXPP','22mRFgEN','./src/api','3312220yixehI','201368YyLCGI','12DrlDVI','935431cNnXXW','17845daqZiP','1918308opXUSm','24wwfVjJ','297337BaOghy'];a279_0x5e86=function(){return _0x4d3ac6;};return a279_0x5e86();}export const DEFAULT_API_DIR=a279_0x3a2977(0x88);
1
+ function a279_0x429e(){const _0x25ddae=['19308ACGSYW','2iopZtG','2688684CEvMJp','37074jVQnwm','5PElVcg','1308324WgXDoh','253LNMgLa','2075820QOBIKv','./src/api','360606mQoOep','623SfhmNQ','40329eSOZmY','104BbLmiN'];a279_0x429e=function(){return _0x25ddae;};return a279_0x429e();}const a279_0x39933f=a279_0x33b3;(function(_0x662109,_0x5cd82e){const _0x5dea0d=a279_0x33b3,_0x235626=_0x662109();while(!![]){try{const _0x48c24a=parseInt(_0x5dea0d(0x1c5))/0x1*(parseInt(_0x5dea0d(0x1cd))/0x2)+parseInt(_0x5dea0d(0x1c9))/0x3+-parseInt(_0x5dea0d(0x1c6))/0x4*(parseInt(_0x5dea0d(0x1c8))/0x5)+parseInt(_0x5dea0d(0x1c7))/0x6*(parseInt(_0x5dea0d(0x1c1))/0x7)+parseInt(_0x5dea0d(0x1c3))/0x8*(-parseInt(_0x5dea0d(0x1c2))/0x9)+-parseInt(_0x5dea0d(0x1cb))/0xa+parseInt(_0x5dea0d(0x1ca))/0xb*(-parseInt(_0x5dea0d(0x1c4))/0xc);if(_0x48c24a===_0x5cd82e)break;else _0x235626['push'](_0x235626['shift']());}catch(_0x206ed7){_0x235626['push'](_0x235626['shift']());}}}(a279_0x429e,0x5abb0));function a279_0x33b3(_0x396db7,_0x5051a1){_0x396db7=_0x396db7-0x1c1;const _0x429eb8=a279_0x429e();let _0x33b3e7=_0x429eb8[_0x396db7];return _0x33b3e7;}export const DEFAULT_API_DIR=a279_0x39933f(0x1cc);
@@ -1 +1 @@
1
- (function(_0x47251a,_0x35c52e){const _0xeb6f09=a280_0x3a0b,_0x15055a=_0x47251a();while(!![]){try{const _0x558856=-parseInt(_0xeb6f09(0xb7))/0x1*(-parseInt(_0xeb6f09(0xb4))/0x2)+parseInt(_0xeb6f09(0xb1))/0x3+-parseInt(_0xeb6f09(0xb8))/0x4+-parseInt(_0xeb6f09(0xb3))/0x5+-parseInt(_0xeb6f09(0xb5))/0x6*(parseInt(_0xeb6f09(0xb0))/0x7)+parseInt(_0xeb6f09(0xae))/0x8*(parseInt(_0xeb6f09(0xaf))/0x9)+parseInt(_0xeb6f09(0xb6))/0xa*(parseInt(_0xeb6f09(0xac))/0xb);if(_0x558856===_0x35c52e)break;else _0x15055a['push'](_0x15055a['shift']());}catch(_0x53a195){_0x15055a['push'](_0x15055a['shift']());}}}(a280_0x3f12,0xa66c0));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(_0xd7b424){const _0x1ff006=a280_0x3a0b;return typeof _0xd7b424===_0x1ff006(0xb2)&&LOVRABET_REGION_VALUES[_0x1ff006(0xad)](_0xd7b424);}function a280_0x3f12(){const _0x473b2f=['2LNccrH','2680752WGeOKX','13275590ZBwgGL','416349stiAvA','3274260Xvyucy','22YqQUXe','includes','48DxiaPB','39870ZmPkFM','21aZPqaj','3217245JhiTjs','string','6649285kSFsvW'];a280_0x3f12=function(){return _0x473b2f;};return a280_0x3f12();}export function isEnabledLovrabetRegion(_0x18cf60){const _0x4fdf93=a280_0x3a0b;return typeof _0x18cf60===_0x4fdf93(0xb2)&&ENABLED_LOVRABET_REGION_VALUES[_0x4fdf93(0xad)](_0x18cf60);}function a280_0x3a0b(_0x46cdf5,_0x1d48aa){_0x46cdf5=_0x46cdf5-0xac;const _0x3f1221=a280_0x3f12();let _0x3a0b6e=_0x3f1221[_0x46cdf5];return _0x3a0b6e;}export function normalizeLovrabetRegion(_0x2a7b5d){if(typeof _0x2a7b5d!=='string')return undefined;const _0xd6933f=REGION_ALIASES[_0x2a7b5d]??_0x2a7b5d;return isLovrabetRegion(_0xd6933f)?_0xd6933f:undefined;}export function isInvalidLovrabetRegion(_0x2e102a){return _0x2e102a!==undefined&&_0x2e102a!==null&&_0x2e102a!==''&&normalizeLovrabetRegion(_0x2e102a)===undefined;}
1
+ (function(_0x57081a,_0x3219b3){const _0x251dbb=a280_0x301a,_0x4ec262=_0x57081a();while(!![]){try{const _0x509345=parseInt(_0x251dbb(0x1f0))/0x1+parseInt(_0x251dbb(0x1f3))/0x2+parseInt(_0x251dbb(0x1f7))/0x3+parseInt(_0x251dbb(0x1f8))/0x4+parseInt(_0x251dbb(0x1f6))/0x5+parseInt(_0x251dbb(0x1f1))/0x6+-parseInt(_0x251dbb(0x1f4))/0x7;if(_0x509345===_0x3219b3)break;else _0x4ec262['push'](_0x4ec262['shift']());}catch(_0x33df06){_0x4ec262['push'](_0x4ec262['shift']());}}}(a280_0x1e54,0x1c79e));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';function a280_0x1e54(){const _0x4a2b75=['803508SyQyAt','49402jQPTuZ','169668efcDRa','string','120438lXVxdE','2181410qdXvLP','includes','40255SWQrkJ','244323xXzqEw'];a280_0x1e54=function(){return _0x4a2b75;};return a280_0x1e54();}function a280_0x301a(_0x66d7ed,_0x53c5a4){_0x66d7ed=_0x66d7ed-0x1f0;const _0x1e546e=a280_0x1e54();let _0x301a5d=_0x1e546e[_0x66d7ed];return _0x301a5d;}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(_0x556049){const _0x1bd047=a280_0x301a;return typeof _0x556049===_0x1bd047(0x1f2)&&LOVRABET_REGION_VALUES[_0x1bd047(0x1f5)](_0x556049);}export function isEnabledLovrabetRegion(_0x34ecc1){return typeof _0x34ecc1==='string'&&ENABLED_LOVRABET_REGION_VALUES['includes'](_0x34ecc1);}export function normalizeLovrabetRegion(_0x23d3af){const _0x3a72f1=a280_0x301a;if(typeof _0x23d3af!==_0x3a72f1(0x1f2))return undefined;const _0x240343=REGION_ALIASES[_0x23d3af]??_0x23d3af;return isLovrabetRegion(_0x240343)?_0x240343:undefined;}export function isInvalidLovrabetRegion(_0x2bfeef){return _0x2bfeef!==undefined&&_0x2bfeef!==null&&_0x2bfeef!==''&&normalizeLovrabetRegion(_0x2bfeef)===undefined;}
@@ -1 +1 @@
1
- const a281_0x5490d2=a281_0x8d9d;(function(_0x231f6c,_0x5a9d83){const _0x56e110=a281_0x8d9d,_0x3fccce=_0x231f6c();while(!![]){try{const _0x57d88f=parseInt(_0x56e110(0xd5))/0x1+-parseInt(_0x56e110(0xd8))/0x2+parseInt(_0x56e110(0xda))/0x3*(-parseInt(_0x56e110(0xdf))/0x4)+parseInt(_0x56e110(0xd9))/0x5+-parseInt(_0x56e110(0xdc))/0x6*(parseInt(_0x56e110(0xd4))/0x7)+-parseInt(_0x56e110(0xd6))/0x8+-parseInt(_0x56e110(0xde))/0x9*(-parseInt(_0x56e110(0xdd))/0xa);if(_0x57d88f===_0x5a9d83)break;else _0x3fccce['push'](_0x3fccce['shift']());}catch(_0x5cec9d){_0x3fccce['push'](_0x3fccce['shift']());}}}(a281_0x49b6,0xafdfa));export const RISK_LEVEL_VALUES=['read',a281_0x5490d2(0xdb),a281_0x5490d2(0xd7)];function a281_0x8d9d(_0xa1f332,_0x42adce){_0xa1f332=_0xa1f332-0xd4;const _0x49b6d0=a281_0x49b6();let _0x8d9d1=_0x49b6d0[_0xa1f332];return _0x8d9d1;}function a281_0x49b6(){const _0x3d24d6=['14wOKXbU','792483dwcoaL','7964512FDnJpx','high-risk-write','2122210rAPCjq','2295520kCilAv','4179sNrdgF','write','3057966qfayEu','12690TqVkah','22563anEfNY','1828EEgAfP'];a281_0x49b6=function(){return _0x3d24d6;};return a281_0x49b6();}
1
+ function a281_0x3466(){const _0x3eae62=['548232xBxIPB','99232ymPIMp','write','read','136540QEODgD','792HQpVfI','1727HuhPcV','152406GTNhVF','867542ECOBUs','7QnhzgN','4nFtYWu','4810775JFoGGn','5570346GSTxfn'];a281_0x3466=function(){return _0x3eae62;};return a281_0x3466();}const a281_0x50da80=a281_0x1db2;(function(_0x42bb51,_0x5b88a5){const _0x35655d=a281_0x1db2,_0x2ac07b=_0x42bb51();while(!![]){try{const _0x4752e1=-parseInt(_0x35655d(0x107))/0x1+-parseInt(_0x35655d(0x106))/0x2+parseInt(_0x35655d(0x10c))/0x3+parseInt(_0x35655d(0x109))/0x4*(-parseInt(_0x35655d(0x10a))/0x5)+-parseInt(_0x35655d(0x10b))/0x6*(parseInt(_0x35655d(0x108))/0x7)+-parseInt(_0x35655d(0x10d))/0x8*(-parseInt(_0x35655d(0x104))/0x9)+-parseInt(_0x35655d(0x110))/0xa*(-parseInt(_0x35655d(0x105))/0xb);if(_0x4752e1===_0x5b88a5)break;else _0x2ac07b['push'](_0x2ac07b['shift']());}catch(_0x1744e4){_0x2ac07b['push'](_0x2ac07b['shift']());}}}(a281_0x3466,0x8e803));function a281_0x1db2(_0x2f2783,_0x3fd152){_0x2f2783=_0x2f2783-0x104;const _0x3466fd=a281_0x3466();let _0x1db26e=_0x3466fd[_0x2f2783];return _0x1db26e;}export const RISK_LEVEL_VALUES=[a281_0x50da80(0x10f),a281_0x50da80(0x10e),'high-risk-write'];
@@ -1 +1 @@
1
- function a282_0x4aa6(_0x566a8c,_0x2be307){_0x566a8c=_0x566a8c-0x1be;const _0x263c2e=a282_0x263c();let _0x4aa6dc=_0x263c2e[_0x566a8c];return _0x4aa6dc;}(function(_0x28b5ad,_0x3751d5){const _0x30f0ed=a282_0x4aa6,_0x49f84f=_0x28b5ad();while(!![]){try{const _0x509240=-parseInt(_0x30f0ed(0x1c1))/0x1+-parseInt(_0x30f0ed(0x1c3))/0x2*(-parseInt(_0x30f0ed(0x1c9))/0x3)+-parseInt(_0x30f0ed(0x1cb))/0x4+-parseInt(_0x30f0ed(0x1c2))/0x5*(parseInt(_0x30f0ed(0x1c8))/0x6)+-parseInt(_0x30f0ed(0x1cc))/0x7+-parseInt(_0x30f0ed(0x1c0))/0x8+-parseInt(_0x30f0ed(0x1c7))/0x9*(-parseInt(_0x30f0ed(0x1c4))/0xa);if(_0x509240===_0x3751d5)break;else _0x49f84f['push'](_0x49f84f['shift']());}catch(_0x1eea26){_0x49f84f['push'](_0x49f84f['shift']());}}}(a282_0x263c,0x867ff));import{OFFICIAL_ROUTING_PROFILES as a282_0x3a7872,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x3a7872;export{ROUTING_CATALOG_DIGEST};function a282_0x263c(){const _0x3444e0=['libraries','2656472yniEfk','633847XGZIVM','1936835sAYqqp','179482PuIKXR','10NemNdh','Official\x20routing\x20for\x20region\x20\x22','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','18732969UYOoXN','6QYMCPv','33yhzmjr','cdn','1492432VbaqCh','5539100BLoOJL','lovrabet'];a282_0x263c=function(){return _0x3444e0;};return a282_0x263c();}export function getOfficialRoutingProfile(_0x67e74b){return OFFICIAL_ROUTING_PROFILES[_0x67e74b];}export function getOfficialRoutingCdn(_0x2d1479){const _0x4aa93a=a282_0x4aa6,_0x4eb34a=getOfficialRoutingProfile(_0x2d1479)[_0x4aa93a(0x1ca)];if(!_0x4eb34a[_0x4aa93a(0x1be)])throw new Error(_0x4aa93a(0x1c5)+_0x2d1479+_0x4aa93a(0x1c6));return{'libraries':_0x4eb34a[_0x4aa93a(0x1bf)],'lovrabet':_0x4eb34a[_0x4aa93a(0x1be)]};}
1
+ (function(_0x2eae6c,_0x49b09a){const _0x396c0f=a282_0x39d4,_0x6df51d=_0x2eae6c();while(!![]){try{const _0x5c48d4=parseInt(_0x396c0f(0x67))/0x1*(-parseInt(_0x396c0f(0x6a))/0x2)+-parseInt(_0x396c0f(0x6c))/0x3*(parseInt(_0x396c0f(0x70))/0x4)+-parseInt(_0x396c0f(0x66))/0x5*(parseInt(_0x396c0f(0x6e))/0x6)+parseInt(_0x396c0f(0x6d))/0x7*(parseInt(_0x396c0f(0x65))/0x8)+parseInt(_0x396c0f(0x71))/0x9+-parseInt(_0x396c0f(0x6b))/0xa+parseInt(_0x396c0f(0x72))/0xb*(parseInt(_0x396c0f(0x68))/0xc);if(_0x5c48d4===_0x49b09a)break;else _0x6df51d['push'](_0x6df51d['shift']());}catch(_0x485df4){_0x6df51d['push'](_0x6df51d['shift']());}}}(a282_0x47b4,0xf3667));import{OFFICIAL_ROUTING_PROFILES as a282_0x7b7834,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';function a282_0x39d4(_0x4dcdca,_0x442d97){_0x4dcdca=_0x4dcdca-0x65;const _0x47b484=a282_0x47b4();let _0x39d491=_0x47b484[_0x4dcdca];return _0x39d491;}function a282_0x47b4(){const _0x535ff8=['\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','Official\x20routing\x20for\x20region\x20\x22','cdn','24IBgYza','4536085DpBcTV','1jlYQFO','57048bfreex','libraries','3178594QOPgzy','11410580hclCvK','312159Rdhvck','4396196SKHgZg','6xwFcar','lovrabet','76hgsUka','7633782ZWnBTH','8976PAetaV'];a282_0x47b4=function(){return _0x535ff8;};return a282_0x47b4();}export const OFFICIAL_ROUTING_PROFILES=a282_0x7b7834;export{ROUTING_CATALOG_DIGEST};export function getOfficialRoutingProfile(_0x489957){return OFFICIAL_ROUTING_PROFILES[_0x489957];}export function getOfficialRoutingCdn(_0x43b7e6){const _0x7e07a5=a282_0x39d4,_0x38c878=getOfficialRoutingProfile(_0x43b7e6)[_0x7e07a5(0x75)];if(!_0x38c878[_0x7e07a5(0x6f)])throw new Error(_0x7e07a5(0x74)+_0x43b7e6+_0x7e07a5(0x73));return{'libraries':_0x38c878[_0x7e07a5(0x69)],'lovrabet':_0x38c878[_0x7e07a5(0x6f)]};}
@@ -1 +1 @@
1
- (function(_0x1bc0ca,_0x106b0d){const _0x551fb2=a283_0x1158,_0x116496=_0x1bc0ca();while(!![]){try{const _0x5e0d5a=parseInt(_0x551fb2(0x152))/0x1+-parseInt(_0x551fb2(0x139))/0x2*(-parseInt(_0x551fb2(0x13f))/0x3)+-parseInt(_0x551fb2(0x143))/0x4*(parseInt(_0x551fb2(0x133))/0x5)+-parseInt(_0x551fb2(0x153))/0x6+-parseInt(_0x551fb2(0x137))/0x7*(parseInt(_0x551fb2(0x154))/0x8)+-parseInt(_0x551fb2(0x144))/0x9*(parseInt(_0x551fb2(0x14e))/0xa)+parseInt(_0x551fb2(0x14f))/0xb;if(_0x5e0d5a===_0x106b0d)break;else _0x116496['push'](_0x116496['shift']());}catch(_0x3dd28a){_0x116496['push'](_0x116496['shift']());}}}(a283_0x3bc7,0x4906e));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';function a283_0x1158(_0x15bcd0,_0x536679){_0x15bcd0=_0x15bcd0-0x133;const _0x3bc742=a283_0x3bc7();let _0x115886=_0x3bc742[_0x15bcd0];return _0x115886;}import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0xfaf67e){const _0x14add3=a283_0x1158;return typeof _0xfaf67e===_0x14add3(0x141)&&_0xfaf67e[_0x14add3(0x15b)]()?_0xfaf67e[_0x14add3(0x15b)]():undefined;}function appProfiles(_0x2c67d9){const _0x5814a2=a283_0x1158;return _0x2c67d9[_0x5814a2(0x142)]&&typeof _0x2c67d9[_0x5814a2(0x142)]===_0x5814a2(0x147)?_0x2c67d9[_0x5814a2(0x142)]:{};}function a283_0x3bc7(){const _0x3596b6=['ENV','FORMAT','locale','source','production','703130ooWyay','4096334NOmtuf','projectConfig','accessKey','379299ZQkReT','1483524zmNxUM','312OjuduL','high-risk-write','pageSize','env','appcode','filter','keys','trim','entries','VERBOSE','projectPath','10mCWANA','RISK_LEVEL','riskLevel','globalConfig','105014RqoMxM','app','54576MnBmys','COOKIE','format','apiDir','value','length','51NFdaVD','PAGE_SIZE','string','apps','27652nrzLtY','9gObdlK','APP','cookie','object','region'];a283_0x3bc7=function(){return _0x3596b6;};return a283_0x3bc7();}function resolveDefaultAppName(_0x1b2784){const _0x5dc90e=a283_0x1158,_0x933c7d=stringConfigValue(_0x1b2784['defaultApp']);if(_0x933c7d)return _0x933c7d;const _0x592e8e=Object[_0x5dc90e(0x15a)](appProfiles(_0x1b2784));return _0x592e8e[_0x5dc90e(0x13e)]===0x1?_0x592e8e[0x0]:undefined;}function resolveTopLevelAppCode(_0x24f50f){const _0x139273=a283_0x1158;return stringConfigValue(_0x24f50f['appcode'])||stringConfigValue(_0x24f50f[_0x139273(0x138)]);}function normalizeRiskCeiling(_0x623511){const _0x21a3a8=a283_0x1158;if(_0x623511===undefined||_0x623511===null)return undefined;if(_0x623511==='read'||_0x623511==='write'||_0x623511===_0x21a3a8(0x155))return _0x623511;return'read';}function resolveRiskCeiling(..._0x5f45a5){const _0x173648=a283_0x1158;let _0x498ba5;for(const _0xbc55ec of _0x5f45a5){const _0x36c1d4=normalizeRiskCeiling(_0xbc55ec);_0x36c1d4&&(!_0x498ba5||riskLevelOrder(_0x36c1d4)<riskLevelOrder(_0x498ba5))&&(_0x498ba5=_0x36c1d4);}return _0x498ba5??DEFAULT_CONFIG_VALUES[_0x173648(0x135)];}export function resolveAppConfig({raw:_0x5a296a,flags:_0x4f62dc,layers:_0x538cbb,readEnv:_0x457256}){const _0x4accc7=a283_0x1158,_0xbd546b=_0x538cbb?.[_0x4accc7(0x150)]??{},_0x477d0a=_0x538cbb?.[_0x4accc7(0x136)]??{},_0x42dbec=!!_0x538cbb?.[_0x4accc7(0x15e)]||Object[_0x4accc7(0x15a)](_0xbd546b)['length']>0x0,_0x4797dc=!_0x42dbec,_0x47ff39=_0x42dbec?resolveDefaultAppName(_0xbd546b):undefined,_0x150738=_0x4797dc?resolveDefaultAppName(_0x477d0a):undefined,_0x59543d=stringConfigValue(_0x4f62dc['app']),_0x26f9ff=_0x457256(_0x4accc7(0x145)),_0x4444eb={};if(_0x5a296a[_0x4accc7(0x142)]&&typeof _0x5a296a[_0x4accc7(0x142)]===_0x4accc7(0x147))for(const [_0x34a6b5,_0x3bf424]of Object[_0x4accc7(0x15c)](_0x5a296a[_0x4accc7(0x142)])){_0x3bf424&&typeof _0x3bf424===_0x4accc7(0x147)&&_0x3bf424[_0x4accc7(0x158)]&&(_0x4444eb[_0x34a6b5]=_0x3bf424);}const _0x9eca58=_0x47ff39||_0x150738||resolveDefaultAppName(_0x5a296a),_0x234675=Object['keys'](_0x4444eb)[_0x4accc7(0x13e)]>0x0,_0x5997e1=_0x59543d||_0x47ff39||_0x26f9ff||_0x150738||_0x9eca58||undefined,_0x3cffe9=stringConfigValue(_0x4f62dc['appcode']),_0x3190e8=_0x3cffe9?Object[_0x4accc7(0x15c)](_0x4444eb)[_0x4accc7(0x159)](([,_0x42af97])=>_0x42af97?.[_0x4accc7(0x158)]===_0x3cffe9):[],_0x5decef=_0x59543d&&_0x4444eb[_0x59543d]?.[_0x4accc7(0x158)]===_0x3cffe9?[_0x59543d,_0x4444eb[_0x59543d]]:undefined,_0x46a885=_0x5decef??(_0x3190e8['length']===0x1?_0x3190e8[0x0]:undefined),_0x1e0cfe=_0x46a885?.[0x0],_0x36b52c=_0x46a885?.[0x1],_0x2d2ef9=_0x3cffe9?_0x1e0cfe:_0x5997e1;let _0x4bd904=_0x2d2ef9&&_0x4444eb[_0x2d2ef9]?_0x4444eb[_0x2d2ef9]:undefined;_0x3cffe9&&_0x36b52c&&(_0x4bd904=_0x36b52c);const _0x41ba79=_0x3cffe9?_0x36b52c??_0x4bd904:_0x4bd904,_0x327089=!_0x59543d&&!_0x47ff39&&_0x26f9ff&&_0x2d2ef9===_0x26f9ff,_0x5da1ac=_0x59543d||(_0x327089?_0x26f9ff:undefined)||(_0x3cffe9?_0x1e0cfe:undefined),_0x485df2=_0x41ba79?.[_0x4accc7(0x158)],_0x118855=_0x42dbec?resolveTopLevelAppCode(_0xbd546b):undefined,_0x5e55c4=_0x4797dc?resolveTopLevelAppCode(_0x477d0a):undefined,_0x3df3fe=_0x59543d||_0x47ff39?_0x485df2:undefined,_0x2eefbd=!_0x59543d&&!_0x47ff39?_0x485df2:undefined,_0x3fbfe6=_0x3cffe9||_0x3df3fe||_0x118855||_0x2eefbd||_0x5e55c4||undefined,_0x4fe652=_0x42dbec?stringConfigValue(_0xbd546b[_0x4accc7(0x157)]):undefined,_0x1729c9=_0x4797dc?stringConfigValue(_0x477d0a[_0x4accc7(0x157)]):undefined,_0x4e854b=_0x4f62dc['env']||_0x41ba79?.['env']||_0x4fe652||_0x457256(_0x4accc7(0x149))||_0x1729c9||_0x5a296a['env']||DEFAULT_CONFIG_VALUES['env'],_0x504d36=_0x41ba79?.['locale']||_0x5a296a[_0x4accc7(0x14b)]||DEFAULT_CONFIG_VALUES['locale'],_0x153370=_0x457256(_0x4accc7(0x13a))||_0x41ba79?.['cookie']||_0x5a296a[_0x4accc7(0x146)]||undefined,_0x4b0eb9=_0x457256('ACCESS_KEY')||_0x41ba79?.[_0x4accc7(0x151)]||_0x5a296a[_0x4accc7(0x151)]||undefined,_0x3437df=_0x4f62dc[_0x4accc7(0x13b)]||_0x457256(_0x4accc7(0x14a))||_0x41ba79?.['format']||_0x5a296a['format'],_0x1bb3a2=normalizeLegacyOutputFormat(_0x3437df),_0x9557d7=_0x457256(_0x4accc7(0x140))||_0x41ba79?.[_0x4accc7(0x156)]||_0x5a296a[_0x4accc7(0x156)],_0x17cac0=_0x9557d7?Number(_0x9557d7)||undefined:undefined,_0x3173b1=_0x538cbb?[_0x538cbb['globalConfig'][_0x4accc7(0x135)],_0x538cbb[_0x4accc7(0x150)][_0x4accc7(0x135)]]:[_0x5a296a[_0x4accc7(0x135)]],_0x219d88=resolveRiskCeiling(..._0x3173b1,_0x41ba79?.[_0x4accc7(0x135)]),_0x5b319c=resolveRiskCeiling(_0x219d88,_0x457256(_0x4accc7(0x134))),_0x3823f5=_0x457256(_0x4accc7(0x15d)),_0x3e554b=_0x3823f5==='1'||_0x3823f5==='true',_0xca5b53=_0x41ba79?.[_0x4accc7(0x13c)]||_0x5a296a[_0x4accc7(0x13c)]||DEFAULT_CONFIG_VALUES[_0x4accc7(0x13c)],_0x2ca645=selectConfiguredRegion({'appRegion':_0x41ba79?.[_0x4accc7(0x148)],'projectRegion':_0x42dbec?_0xbd546b[_0x4accc7(0x148)]:undefined,'globalRegion':_0x42dbec||_0x4797dc?_0x477d0a[_0x4accc7(0x148)]:undefined,'mergedRegion':_0x5a296a[_0x4accc7(0x148)]}),_0x1909f2=normalizeLovrabetRegion(_0x2ca645[_0x4accc7(0x13d)])??DEFAULT_LOVRABET_REGION,_0x566259=isDaily(normalizeEnv(String(_0x4e854b)))?'daily':_0x4accc7(0x14d);return{'appCode':typeof _0x3fbfe6===_0x4accc7(0x141)&&_0x3fbfe6[_0x4accc7(0x15b)]()?_0x3fbfe6[_0x4accc7(0x15b)]():undefined,'region':_0x1909f2,'regionConfiguredValue':_0x2ca645['value'],'regionSource':_0x2ca645[_0x4accc7(0x14c)],'env':_0x566259,'locale':_0x504d36,'cookie':_0x153370,'accessKey':_0x4b0eb9,'format':_0x1bb3a2,'pageSize':_0x17cac0,'riskLevel':_0x5b319c,'verbose':_0x3e554b,'apiDir':_0xca5b53,'apps':_0x4444eb,'defaultApp':_0x9eca58,'currentApp':_0x234675?_0x2d2ef9:undefined,'explicitAppName':_0x5da1ac};}
1
+ (function(_0x19a12b,_0x3462e6){const _0x25d31c=a283_0x1a17,_0x1790d4=_0x19a12b();while(!![]){try{const _0x116854=parseInt(_0x25d31c(0x206))/0x1+parseInt(_0x25d31c(0x213))/0x2+parseInt(_0x25d31c(0x20a))/0x3*(parseInt(_0x25d31c(0x1f3))/0x4)+parseInt(_0x25d31c(0x1ff))/0x5*(parseInt(_0x25d31c(0x207))/0x6)+parseInt(_0x25d31c(0x20b))/0x7+-parseInt(_0x25d31c(0x201))/0x8+-parseInt(_0x25d31c(0x208))/0x9;if(_0x116854===_0x3462e6)break;else _0x1790d4['push'](_0x1790d4['shift']());}catch(_0x35c26e){_0x1790d4['push'](_0x1790d4['shift']());}}}(a283_0x3385,0x68310));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';function a283_0x3385(){const _0xb563d0=['trim','riskLevel','cookie','108680SZDJPx','37782BpcmWp','17009127WYtrSn','locale','793794izLPPf','5555368lsdSzT','APP','string','daily','env','value','RISK_LEVEL','format','477280SZwruT','accessKey','PAGE_SIZE','ENV','pageSize','keys','defaultApp','region','COOKIE','12sEkciO','object','length','entries','projectPath','apiDir','high-risk-write','apps','appcode','projectConfig','true','source','565dYstME','globalConfig','2637024TWnfcH','FORMAT'];a283_0x3385=function(){return _0xb563d0;};return a283_0x3385();}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(_0x15260d){const _0x4b920c=a283_0x1a17;return typeof _0x15260d==='string'&&_0x15260d[_0x4b920c(0x203)]()?_0x15260d[_0x4b920c(0x203)]():undefined;}function a283_0x1a17(_0x316607,_0x27e89f){_0x316607=_0x316607-0x1f1;const _0x338567=a283_0x3385();let _0x1a1793=_0x338567[_0x316607];return _0x1a1793;}function appProfiles(_0x1b9eef){const _0x881f91=a283_0x1a17;return _0x1b9eef[_0x881f91(0x1fa)]&&typeof _0x1b9eef[_0x881f91(0x1fa)]===_0x881f91(0x1f4)?_0x1b9eef[_0x881f91(0x1fa)]:{};}function resolveDefaultAppName(_0x18aa2d){const _0xff2075=a283_0x1a17,_0x3d3422=stringConfigValue(_0x18aa2d[_0xff2075(0x219)]);if(_0x3d3422)return _0x3d3422;const _0x80595d=Object[_0xff2075(0x218)](appProfiles(_0x18aa2d));return _0x80595d[_0xff2075(0x1f5)]===0x1?_0x80595d[0x0]:undefined;}function resolveTopLevelAppCode(_0x5693f8){const _0x21932c=a283_0x1a17;return stringConfigValue(_0x5693f8[_0x21932c(0x1fb)])||stringConfigValue(_0x5693f8['app']);}function normalizeRiskCeiling(_0x4700a8){const _0x326e39=a283_0x1a17;if(_0x4700a8===undefined||_0x4700a8===null)return undefined;if(_0x4700a8==='read'||_0x4700a8==='write'||_0x4700a8===_0x326e39(0x1f9))return _0x4700a8;return'read';}function resolveRiskCeiling(..._0x23bb27){const _0x3e5cd6=a283_0x1a17;let _0x10e78d;for(const _0x483773 of _0x23bb27){const _0x372d19=normalizeRiskCeiling(_0x483773);_0x372d19&&(!_0x10e78d||riskLevelOrder(_0x372d19)<riskLevelOrder(_0x10e78d))&&(_0x10e78d=_0x372d19);}return _0x10e78d??DEFAULT_CONFIG_VALUES[_0x3e5cd6(0x204)];}export function resolveAppConfig({raw:_0x1252d1,flags:_0x265f6c,layers:_0x21401c,readEnv:_0x67bbea}){const _0x5a2926=a283_0x1a17,_0x5b8cf0=_0x21401c?.[_0x5a2926(0x1fc)]??{},_0x5a32cb=_0x21401c?.[_0x5a2926(0x200)]??{},_0xe3a99f=!!_0x21401c?.[_0x5a2926(0x1f7)]||Object[_0x5a2926(0x218)](_0x5b8cf0)[_0x5a2926(0x1f5)]>0x0,_0x53aabd=!_0xe3a99f,_0x3badd1=_0xe3a99f?resolveDefaultAppName(_0x5b8cf0):undefined,_0x417486=_0x53aabd?resolveDefaultAppName(_0x5a32cb):undefined,_0xce79c8=stringConfigValue(_0x265f6c['app']),_0x12a0c0=_0x67bbea(_0x5a2926(0x20c)),_0x2cc64a={};if(_0x1252d1[_0x5a2926(0x1fa)]&&typeof _0x1252d1[_0x5a2926(0x1fa)]===_0x5a2926(0x1f4))for(const [_0x9b5f4f,_0x4ae73a]of Object[_0x5a2926(0x1f6)](_0x1252d1[_0x5a2926(0x1fa)])){_0x4ae73a&&typeof _0x4ae73a===_0x5a2926(0x1f4)&&_0x4ae73a[_0x5a2926(0x1fb)]&&(_0x2cc64a[_0x9b5f4f]=_0x4ae73a);}const _0x5408c7=_0x3badd1||_0x417486||resolveDefaultAppName(_0x1252d1),_0x5f0133=Object[_0x5a2926(0x218)](_0x2cc64a)[_0x5a2926(0x1f5)]>0x0,_0x48c06b=_0xce79c8||_0x3badd1||_0x12a0c0||_0x417486||_0x5408c7||undefined,_0x223c0c=stringConfigValue(_0x265f6c[_0x5a2926(0x1fb)]),_0x5833b0=_0x223c0c?Object[_0x5a2926(0x1f6)](_0x2cc64a)['filter'](([,_0x5385d6])=>_0x5385d6?.[_0x5a2926(0x1fb)]===_0x223c0c):[],_0x5b0988=_0xce79c8&&_0x2cc64a[_0xce79c8]?.[_0x5a2926(0x1fb)]===_0x223c0c?[_0xce79c8,_0x2cc64a[_0xce79c8]]:undefined,_0x4a45ad=_0x5b0988??(_0x5833b0[_0x5a2926(0x1f5)]===0x1?_0x5833b0[0x0]:undefined),_0x31f486=_0x4a45ad?.[0x0],_0x3a4b4c=_0x4a45ad?.[0x1],_0x552628=_0x223c0c?_0x31f486:_0x48c06b;let _0x3bcc7f=_0x552628&&_0x2cc64a[_0x552628]?_0x2cc64a[_0x552628]:undefined;_0x223c0c&&_0x3a4b4c&&(_0x3bcc7f=_0x3a4b4c);const _0x349d6c=_0x223c0c?_0x3a4b4c??_0x3bcc7f:_0x3bcc7f,_0x413a24=!_0xce79c8&&!_0x3badd1&&_0x12a0c0&&_0x552628===_0x12a0c0,_0x9ffcdb=_0xce79c8||(_0x413a24?_0x12a0c0:undefined)||(_0x223c0c?_0x31f486:undefined),_0xf0818a=_0x349d6c?.['appcode'],_0x1b7354=_0xe3a99f?resolveTopLevelAppCode(_0x5b8cf0):undefined,_0x10d1cc=_0x53aabd?resolveTopLevelAppCode(_0x5a32cb):undefined,_0x1ac1c9=_0xce79c8||_0x3badd1?_0xf0818a:undefined,_0x3dc671=!_0xce79c8&&!_0x3badd1?_0xf0818a:undefined,_0x574e06=_0x223c0c||_0x1ac1c9||_0x1b7354||_0x3dc671||_0x10d1cc||undefined,_0x3550cc=_0xe3a99f?stringConfigValue(_0x5b8cf0[_0x5a2926(0x20f)]):undefined,_0xb0789c=_0x53aabd?stringConfigValue(_0x5a32cb[_0x5a2926(0x20f)]):undefined,_0x41e532=_0x265f6c[_0x5a2926(0x20f)]||_0x349d6c?.[_0x5a2926(0x20f)]||_0x3550cc||_0x67bbea(_0x5a2926(0x216))||_0xb0789c||_0x1252d1['env']||DEFAULT_CONFIG_VALUES[_0x5a2926(0x20f)],_0x5ea13c=_0x349d6c?.[_0x5a2926(0x209)]||_0x1252d1[_0x5a2926(0x209)]||DEFAULT_CONFIG_VALUES['locale'],_0x2f76d6=_0x67bbea(_0x5a2926(0x1f2))||_0x349d6c?.[_0x5a2926(0x205)]||_0x1252d1[_0x5a2926(0x205)]||undefined,_0x43918c=_0x67bbea('ACCESS_KEY')||_0x349d6c?.[_0x5a2926(0x214)]||_0x1252d1[_0x5a2926(0x214)]||undefined,_0x2370ba=_0x265f6c[_0x5a2926(0x212)]||_0x67bbea(_0x5a2926(0x202))||_0x349d6c?.[_0x5a2926(0x212)]||_0x1252d1[_0x5a2926(0x212)],_0x997c90=normalizeLegacyOutputFormat(_0x2370ba),_0x10129b=_0x67bbea(_0x5a2926(0x215))||_0x349d6c?.['pageSize']||_0x1252d1[_0x5a2926(0x217)],_0x3a724c=_0x10129b?Number(_0x10129b)||undefined:undefined,_0x391143=_0x21401c?[_0x21401c[_0x5a2926(0x200)]['riskLevel'],_0x21401c['projectConfig']['riskLevel']]:[_0x1252d1['riskLevel']],_0x2ba368=resolveRiskCeiling(..._0x391143,_0x349d6c?.[_0x5a2926(0x204)]),_0x215767=resolveRiskCeiling(_0x2ba368,_0x67bbea(_0x5a2926(0x211))),_0x3ddd9f=_0x67bbea('VERBOSE'),_0x15705f=_0x3ddd9f==='1'||_0x3ddd9f===_0x5a2926(0x1fd),_0x29ff4c=_0x349d6c?.[_0x5a2926(0x1f8)]||_0x1252d1[_0x5a2926(0x1f8)]||DEFAULT_CONFIG_VALUES['apiDir'],_0x10534c=selectConfiguredRegion({'appRegion':_0x349d6c?.[_0x5a2926(0x1f1)],'projectRegion':_0xe3a99f?_0x5b8cf0['region']:undefined,'globalRegion':_0xe3a99f||_0x53aabd?_0x5a32cb['region']:undefined,'mergedRegion':_0x1252d1[_0x5a2926(0x1f1)]}),_0x264089=normalizeLovrabetRegion(_0x10534c[_0x5a2926(0x210)])??DEFAULT_LOVRABET_REGION,_0x8be016=isDaily(normalizeEnv(String(_0x41e532)))?_0x5a2926(0x20e):'production';return{'appCode':typeof _0x574e06===_0x5a2926(0x20d)&&_0x574e06[_0x5a2926(0x203)]()?_0x574e06['trim']():undefined,'region':_0x264089,'regionConfiguredValue':_0x10534c['value'],'regionSource':_0x10534c[_0x5a2926(0x1fe)],'env':_0x8be016,'locale':_0x5ea13c,'cookie':_0x2f76d6,'accessKey':_0x43918c,'format':_0x997c90,'pageSize':_0x3a724c,'riskLevel':_0x215767,'verbose':_0x15705f,'apiDir':_0x29ff4c,'apps':_0x2cc64a,'defaultApp':_0x5408c7,'currentApp':_0x5f0133?_0x552628:undefined,'explicitAppName':_0x9ffcdb};}
@@ -1 +1 @@
1
- function a284_0x2756(){const _0x445e5a=['30UkFncw','1420460IevjEo','565980BxIhgZ','5426112ijkMTb','18qtaYqJ','authRequired','cookie','4863330tAXiOR','21mkuyNT','319iMuHZU','../auth/get-cookie.js','4335507DgnFfq','321uAepWN','3130iMAybT','1895144GjuBYU'];a284_0x2756=function(){return _0x445e5a;};return a284_0x2756();}(function(_0x1eaad3,_0x304a50){const _0x4284f2=a284_0x1578,_0x352e9a=_0x1eaad3();while(!![]){try{const _0x3d1c60=parseInt(_0x4284f2(0x75))/0x1*(parseInt(_0x4284f2(0x76))/0x2)+parseInt(_0x4284f2(0x74))/0x3+-parseInt(_0x4284f2(0x7b))/0x4+parseInt(_0x4284f2(0x79))/0x5*(parseInt(_0x4284f2(0x7c))/0x6)+parseInt(_0x4284f2(0x71))/0x7*(-parseInt(_0x4284f2(0x77))/0x8)+parseInt(_0x4284f2(0x70))/0x9*(parseInt(_0x4284f2(0x78))/0xa)+parseInt(_0x4284f2(0x72))/0xb*(-parseInt(_0x4284f2(0x7a))/0xc);if(_0x3d1c60===_0x304a50)break;else _0x352e9a['push'](_0x352e9a['shift']());}catch(_0xc5b91a){_0x352e9a['push'](_0x352e9a['shift']());}}}(a284_0x2756,0xf0b48));import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a284_0x1578(_0x2eb74e,_0x4b1539){_0x2eb74e=_0x2eb74e-0x70;const _0x2756b0=a284_0x2756();let _0x15780e=_0x2756b0[_0x2eb74e];return _0x15780e;}export async function buildAuth(_0x343515){const _0x977be5=a284_0x1578,{getCookie:_0x35d379}=await import(_0x977be5(0x73)),_0x52e06e=_0x343515[_0x977be5(0x7e)]||_0x35d379(),_0x2939f6=_0x52e06e?await getIsSessionValid():![];return{'cookie':_0x52e06e,'isLoggedIn':_0x2939f6,async 'getOrLogin'(){const _0x207c9a=_0x977be5;if(_0x52e06e&&_0x2939f6)return _0x52e06e;throw CliErrors[_0x207c9a(0x7d)]();}};}
1
+ (function(_0x4d0892,_0x37b0d2){const _0x27e449=a284_0xb3c8,_0x5f0e9e=_0x4d0892();while(!![]){try{const _0x17f744=-parseInt(_0x27e449(0x1e1))/0x1+-parseInt(_0x27e449(0x1dc))/0x2+-parseInt(_0x27e449(0x1df))/0x3*(-parseInt(_0x27e449(0x1d9))/0x4)+-parseInt(_0x27e449(0x1e2))/0x5+-parseInt(_0x27e449(0x1e0))/0x6*(-parseInt(_0x27e449(0x1e3))/0x7)+-parseInt(_0x27e449(0x1dd))/0x8+-parseInt(_0x27e449(0x1de))/0x9*(-parseInt(_0x27e449(0x1db))/0xa);if(_0x17f744===_0x37b0d2)break;else _0x5f0e9e['push'](_0x5f0e9e['shift']());}catch(_0x3a85c4){_0x5f0e9e['push'](_0x5f0e9e['shift']());}}}(a284_0x24ca,0xe2677));import{getIsSessionValid}from'../auth/is-session-valid.js';function a284_0x24ca(){const _0x47230b=['10493FnJcHc','authRequired','19192yvGNFr','cookie','25221890PzxPBp','1450986VfFeXj','14787048FZwUxA','9ODzRhZ','789dCaQSZ','3174QDUjVr','632473flgEYJ','2216680cmADKI'];a284_0x24ca=function(){return _0x47230b;};return a284_0x24ca();}function a284_0xb3c8(_0x59f744,_0x9ba60e){_0x59f744=_0x59f744-0x1d9;const _0x24ca37=a284_0x24ca();let _0xb3c819=_0x24ca37[_0x59f744];return _0xb3c819;}import{CliErrors}from'../errors.js';export async function buildAuth(_0x4a854b){const _0x4981da=a284_0xb3c8,{getCookie:_0xd161e4}=await import('../auth/get-cookie.js'),_0x16f5c4=_0x4a854b[_0x4981da(0x1da)]||_0xd161e4(),_0x2b168f=_0x16f5c4?await getIsSessionValid():![];return{'cookie':_0x16f5c4,'isLoggedIn':_0x2b168f,async 'getOrLogin'(){const _0xc069aa=_0x4981da;if(_0x16f5c4&&_0x2b168f)return _0x16f5c4;throw CliErrors[_0xc069aa(0x1e4)]();}};}
@@ -1 +1 @@
1
- const a285_0x21ebf8=a285_0x6349;(function(_0x42816e,_0x368595){const _0x2b1e86=a285_0x6349,_0x406732=_0x42816e();while(!![]){try{const _0x275ac0=parseInt(_0x2b1e86(0x173))/0x1+parseInt(_0x2b1e86(0x16d))/0x2+-parseInt(_0x2b1e86(0x165))/0x3+parseInt(_0x2b1e86(0x14c))/0x4+parseInt(_0x2b1e86(0x159))/0x5+parseInt(_0x2b1e86(0x14e))/0x6*(-parseInt(_0x2b1e86(0x151))/0x7)+-parseInt(_0x2b1e86(0x16a))/0x8;if(_0x275ac0===_0x368595)break;else _0x406732['push'](_0x406732['shift']());}catch(_0x26b885){_0x406732['push'](_0x406732['shift']());}}}(a285_0x1d05,0xbe61d));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=a285_0x21ebf8(0x167);export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();function a285_0x1d05(){const _0x3f32f5=['.rabetbase.json','routing','.tmp','3975616zmxGIO','error','apiDir','2582728mdnBnQ','format','skillDomain','locale','parse','kbServiceDomain','365910eXcVfJ','silent','cwd','utf8','pageSize','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','config','Global','length','set','data','inherit','message','migrated','accessKey','missing','4063616SbhsXD','empty','44868LsGtvs','cookie','apps','161oGsFoB','stringify','warn','localDomain','kbDomain','appDomain','object','riskLevel','1564745lSbWlV','trim','defaultApp','userDomain','appcode','status','\x0a\x20\x20','get','certificateDomain','keys','app','env','4612128regXAv','runtimeDomain'];a285_0x1d05=function(){return _0x3f32f5;};return a285_0x1d05();}export function resolveConfigPath(_0x83ccc8){for(const _0x4d293 of CONFIG_NAMES){const _0x3c6bdc=resolve(_0x83ccc8,_0x4d293);if(existsSync(_0x3c6bdc))return _0x3c6bdc;}return undefined;}export function findProjectRootDirectory(_0x2a26ab=process[a285_0x21ebf8(0x13e)]()){let _0xb704b3=resolve(_0x2a26ab);const {root:_0x4b0fa5}=parse(_0xb704b3),_0x43018f=homedir();while(!![]){if(resolveConfigPath(_0xb704b3)){if(_0xb704b3===_0x43018f)break;return _0xb704b3;}if(_0xb704b3===_0x4b0fa5||_0xb704b3===_0x43018f)break;const _0x25e048=dirname(_0xb704b3);if(_0x25e048===_0xb704b3)break;_0xb704b3=_0x25e048;}return resolve(_0x2a26ab);}export function getProjectConfigPath(){const _0x4d9d73=a285_0x21ebf8;return resolveConfigPath(process[_0x4d9d73(0x13e)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x34b9e4){const _0x33e3fb=a285_0x21ebf8;if(!existsSync(_0x34b9e4))return{'status':_0x33e3fb(0x14b)};try{const _0x3ecd3a=readFileSync(_0x34b9e4,{'encoding':_0x33e3fb(0x13f)});if(!_0x3ecd3a?.['trim']())return{'status':_0x33e3fb(0x14d)};const _0x250702=JSON[_0x33e3fb(0x171)](_0x3ecd3a);return{'status':'ok','data':_0x250702};}catch(_0x4f8c89){return{'status':_0x33e3fb(0x16b),'message':_0x4f8c89 instanceof Error?_0x4f8c89[_0x33e3fb(0x148)]:String(_0x4f8c89)};}}function parseCliConfigJsonFile(_0x5b0b48,_0x1b015f,_0x352c83){const _0x57b81d=a285_0x21ebf8,_0x4e435f=inspectCliConfigJsonFile(_0x5b0b48);if(_0x4e435f[_0x57b81d(0x15e)]===_0x57b81d(0x14b)||_0x4e435f[_0x57b81d(0x15e)]===_0x57b81d(0x14d))return{};if(_0x4e435f['status']==='ok')return _0x4e435f[_0x57b81d(0x146)];return _0x1b015f===_0x57b81d(0x153)&&_0x352c83&&console[_0x57b81d(0x16b)](CLI_BIN_NAME+':\x20'+_0x352c83+_0x57b81d(0x141)+_0x5b0b48+_0x57b81d(0x15f)+_0x4e435f[_0x57b81d(0x148)]),{};}function normalizeLegacyConfigShape(_0x8cc412){const _0x5aae26=a285_0x21ebf8;if(!_0x8cc412||typeof _0x8cc412!==_0x5aae26(0x157))return{'config':{},'migrated':![]};const _0x32c029={..._0x8cc412},_0x296a3c=_0x32c029[_0x5aae26(0x150)]&&typeof _0x32c029[_0x5aae26(0x150)]===_0x5aae26(0x157)?{..._0x32c029[_0x5aae26(0x150)]}:{},_0x5b29b3=Object[_0x5aae26(0x162)](_0x296a3c)['length'],_0x1de1a4=_0x32c029['appcode']||_0x32c029[_0x5aae26(0x163)];let _0x186aa4=![];if(_0x1de1a4&&_0x5b29b3===0x0){const _0x17efa0=typeof _0x32c029[_0x5aae26(0x15b)]==='string'&&_0x32c029[_0x5aae26(0x15b)][_0x5aae26(0x15a)]()?_0x32c029[_0x5aae26(0x15b)]:String(_0x1de1a4)['trim']();_0x296a3c[_0x17efa0]={'appcode':String(_0x1de1a4)[_0x5aae26(0x15a)](),..._0x32c029[_0x5aae26(0x164)]!=null?{'env':_0x32c029[_0x5aae26(0x164)]}:{},..._0x32c029[_0x5aae26(0x16c)]!=null?{'apiDir':_0x32c029[_0x5aae26(0x16c)]}:{},..._0x32c029[_0x5aae26(0x14f)]!=null?{'cookie':_0x32c029[_0x5aae26(0x14f)]}:{},..._0x32c029[_0x5aae26(0x14a)]!=null?{'accessKey':_0x32c029[_0x5aae26(0x14a)]}:{},..._0x32c029[_0x5aae26(0x16e)]!=null?{'format':_0x32c029['format']}:{},..._0x32c029[_0x5aae26(0x140)]!=null?{'pageSize':_0x32c029['pageSize']}:{},..._0x32c029[_0x5aae26(0x158)]!=null?{'riskLevel':_0x32c029[_0x5aae26(0x158)]}:{},..._0x32c029[_0x5aae26(0x170)]!=null?{'locale':_0x32c029[_0x5aae26(0x170)]}:{}},_0x32c029['apps']=_0x296a3c,delete _0x32c029[_0x5aae26(0x15b)],_0x186aa4=!![];}return(_0x5aae26(0x15d)in _0x32c029||_0x5aae26(0x163)in _0x32c029)&&(delete _0x32c029[_0x5aae26(0x15d)],delete _0x32c029[_0x5aae26(0x163)],_0x186aa4=!![]),{'config':_0x32c029,'migrated':_0x186aa4};}function writeNormalizedConfigIfNeeded(_0x4476e3,_0x1cf2c7){const _0x24ed2a=a285_0x21ebf8,_0x35e6e1=JSON[_0x24ed2a(0x152)](normalizeConfigForWrite(_0x1cf2c7),null,0x2)+'\x0a';if(normalizedWriteCache[_0x24ed2a(0x160)](_0x4476e3)===_0x35e6e1)return;writeConfigFile(_0x4476e3,_0x1cf2c7),normalizedWriteCache[_0x24ed2a(0x145)](_0x4476e3,_0x35e6e1);}function parseAndNormalizeConfig(_0x2faabe,_0x9a00fb,_0x5bba60){const _0x307a60=a285_0x21ebf8,_0x16d401=parseCliConfigJsonFile(_0x2faabe,_0x9a00fb,_0x5bba60),_0x187a67=normalizeLegacyConfigShape(_0x16d401);if(_0x187a67[_0x307a60(0x149)])try{writeNormalizedConfigIfNeeded(_0x2faabe,_0x187a67['config']);}catch{}return _0x187a67[_0x307a60(0x142)];}export function loadRawConfigLayers(_0xd0dfa2){const _0x7ac28c=a285_0x21ebf8;let _0x1a3dc0={},_0x6459a4={};const _0x2362c0=resolveConfigPath(homedir());_0x2362c0&&(_0x1a3dc0=parseAndNormalizeConfig(_0x2362c0,_0x7ac28c(0x153),_0x7ac28c(0x143)));const _0x49ef7c=_0xd0dfa2??findProjectRootDirectory(),_0x12f22f=resolveConfigPath(_0x49ef7c);return _0x12f22f&&(_0x6459a4=parseAndNormalizeConfig(_0x12f22f,'warn','Project')),{'globalPath':_0x2362c0,'projectPath':_0x12f22f,'globalConfig':_0x1a3dc0,'projectConfig':_0x6459a4};}const INHERIT_WHITELIST=[a285_0x21ebf8(0x14f),a285_0x21ebf8(0x14a),a285_0x21ebf8(0x170),a285_0x21ebf8(0x16e),a285_0x21ebf8(0x158),a285_0x21ebf8(0x140),'region',a285_0x21ebf8(0x168),a285_0x21ebf8(0x15c),'apiDomain',a285_0x21ebf8(0x166),a285_0x21ebf8(0x16f),a285_0x21ebf8(0x155),a285_0x21ebf8(0x172),a285_0x21ebf8(0x156),a285_0x21ebf8(0x154),a285_0x21ebf8(0x161)];export function mergeRawConfigLayers(_0x32aef2){const _0x2cbcd8=a285_0x21ebf8,{globalConfig:_0x18271a,projectConfig:_0x1aa91f}=_0x32aef2,_0x49daae=!!_0x32aef2['projectPath']||Object['keys'](_0x1aa91f)[_0x2cbcd8(0x144)]>0x0;if(!_0x49daae)return mergeGlobalOnly(_0x18271a);return mergeProjectFirst(_0x18271a,_0x1aa91f);}function mergeGlobalOnly(_0x7eacc7){const _0x49541c=a285_0x21ebf8,_0x4442a0={..._0x7eacc7};delete _0x4442a0[_0x49541c(0x147)];const _0x53511c=_0x7eacc7[_0x49541c(0x150)]&&typeof _0x7eacc7[_0x49541c(0x150)]===_0x49541c(0x157)?_0x7eacc7[_0x49541c(0x150)]:{};if(Object['keys'](_0x53511c)[_0x49541c(0x144)]>0x0)_0x4442a0[_0x49541c(0x150)]=_0x53511c;if(_0x7eacc7[_0x49541c(0x15b)])_0x4442a0[_0x49541c(0x15b)]=_0x7eacc7[_0x49541c(0x15b)];return _0x4442a0;}function mergeProjectFirst(_0x4f781d,_0x48679c){const _0x6d4e46=a285_0x21ebf8,_0xaf8af9={..._0x48679c};delete _0xaf8af9['inherit'];for(const _0x13e2d6 of INHERIT_WHITELIST){!(_0x13e2d6 in _0xaf8af9)&&_0x13e2d6 in _0x4f781d&&(_0xaf8af9[_0x13e2d6]=_0x4f781d[_0x13e2d6]);}const _0x3785ac=_0x48679c[_0x6d4e46(0x150)]&&typeof _0x48679c[_0x6d4e46(0x150)]==='object'?_0x48679c[_0x6d4e46(0x150)]:{};return Object[_0x6d4e46(0x162)](_0x3785ac)[_0x6d4e46(0x144)]>0x0?_0xaf8af9[_0x6d4e46(0x150)]=_0x3785ac:delete _0xaf8af9[_0x6d4e46(0x150)],_0x6d4e46(0x15b)in _0x48679c?_0xaf8af9[_0x6d4e46(0x15b)]=_0x48679c[_0x6d4e46(0x15b)]:delete _0xaf8af9[_0x6d4e46(0x15b)],_0xaf8af9;}function a285_0x6349(_0x42bf76,_0x55d450){_0x42bf76=_0x42bf76-0x13d;const _0x1d0511=a285_0x1d05();let _0x6349a7=_0x1d0511[_0x42bf76];return _0x6349a7;}export function readRawConfigWithLayers(_0x3098f9){const _0x1802d4=loadRawConfigLayers(_0x3098f9);return{'config':mergeRawConfigLayers(_0x1802d4),'layers':_0x1802d4};}export function readRawConfig(_0x3d4168){return mergeRawConfigLayers(loadRawConfigLayers(_0x3d4168));}export function readConfigFile(_0x343649){const _0x1516aa=a285_0x21ebf8;return parseAndNormalizeConfig(_0x343649,_0x1516aa(0x13d));}export function writeConfigFile(_0x37d4ba,_0x57cc31){const _0xe36254=a285_0x21ebf8,_0x42f977=dirname(_0x37d4ba);!existsSync(_0x42f977)&&mkdirSync(_0x42f977,{'recursive':!![]});const _0x940b6e=_0x37d4ba+_0xe36254(0x169);try{const _0xbb4f96=normalizeConfigForWrite(_0x57cc31);writeFileSync(_0x940b6e,JSON['stringify'](_0xbb4f96,null,0x2)+'\x0a',{'encoding':_0xe36254(0x13f),'mode':0x180}),renameSync(_0x940b6e,_0x37d4ba);}catch(_0x3bcd65){try{unlinkSync(_0x940b6e);}catch{}throw _0x3bcd65;}}export function resolveWriteConfigPath(_0x3f35ae){const _0x1af8e4=_0x3f35ae==='project'?process['cwd']():homedir(),_0x32331e=resolveConfigPath(_0x1af8e4);return _0x32331e??resolve(_0x1af8e4,NEW_CONFIG_NAME);}
1
+ const a285_0x2b21f5=a285_0x1404;(function(_0x404192,_0x40d199){const _0x27720b=a285_0x1404,_0x49c4df=_0x404192();while(!![]){try{const _0x533b41=-parseInt(_0x27720b(0x184))/0x1*(parseInt(_0x27720b(0x1a2))/0x2)+-parseInt(_0x27720b(0x183))/0x3*(-parseInt(_0x27720b(0x173))/0x4)+-parseInt(_0x27720b(0x199))/0x5*(-parseInt(_0x27720b(0x19f))/0x6)+parseInt(_0x27720b(0x18e))/0x7+parseInt(_0x27720b(0x172))/0x8*(parseInt(_0x27720b(0x186))/0x9)+-parseInt(_0x27720b(0x19c))/0xa+-parseInt(_0x27720b(0x195))/0xb*(parseInt(_0x27720b(0x18f))/0xc);if(_0x533b41===_0x40d199)break;else _0x49c4df['push'](_0x49c4df['shift']());}catch(_0xb5f468){_0x49c4df['push'](_0x49c4df['shift']());}}}(a285_0x2fbf,0x2f894));function a285_0x2fbf(){const _0x343778=['message','kbServiceDomain','1214245XHOWpb','pageSize','keys','1846850yXSwZb','certificateDomain','warn','6bIXdrb','appcode','data','274QPfsZI','\x0a\x20\x20','env','accessKey','stringify','utf8','runtimeDomain','160CMocgB','552ebvbks','format','set','app','silent','region','trim','appDomain','empty','apiDir','length','locale','config','kbDomain','migrated','object','7377KFJmyq','2689pWnPNJ','apps','70857YwPOdK','status','projectPath','riskLevel','get','cookie','defaultApp','.tmp','1752996sruLiC','2907516HdMfWF','error','apiDomain','inherit','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','cwd','11WPwNmN','parse'];a285_0x2fbf=function(){return _0x343778;};return a285_0x2fbf();}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='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x2bb78f){for(const _0x118d39 of CONFIG_NAMES){const _0x403b80=resolve(_0x2bb78f,_0x118d39);if(existsSync(_0x403b80))return _0x403b80;}return undefined;}export function findProjectRootDirectory(_0xb07b90=process[a285_0x2b21f5(0x194)]()){let _0x941ef2=resolve(_0xb07b90);const {root:_0x507c9e}=parse(_0x941ef2),_0xa14d2=homedir();while(!![]){if(resolveConfigPath(_0x941ef2)){if(_0x941ef2===_0xa14d2)break;return _0x941ef2;}if(_0x941ef2===_0x507c9e||_0x941ef2===_0xa14d2)break;const _0x1644ab=dirname(_0x941ef2);if(_0x1644ab===_0x941ef2)break;_0x941ef2=_0x1644ab;}return resolve(_0xb07b90);}export function getProjectConfigPath(){const _0x37eb4c=a285_0x2b21f5;return resolveConfigPath(process[_0x37eb4c(0x194)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x5e2628){const _0x1a4dbc=a285_0x2b21f5;if(!existsSync(_0x5e2628))return{'status':'missing'};try{const _0x62de8f=readFileSync(_0x5e2628,{'encoding':_0x1a4dbc(0x170)});if(!_0x62de8f?.[_0x1a4dbc(0x179)]())return{'status':_0x1a4dbc(0x17b)};const _0x37b6b3=JSON[_0x1a4dbc(0x196)](_0x62de8f);return{'status':'ok','data':_0x37b6b3};}catch(_0x18bf63){return{'status':_0x1a4dbc(0x190),'message':_0x18bf63 instanceof Error?_0x18bf63[_0x1a4dbc(0x197)]:String(_0x18bf63)};}}function parseCliConfigJsonFile(_0xe01b5b,_0xbe1ad1,_0x40810a){const _0xad60cb=a285_0x2b21f5,_0x30df9e=inspectCliConfigJsonFile(_0xe01b5b);if(_0x30df9e[_0xad60cb(0x187)]==='missing'||_0x30df9e['status']===_0xad60cb(0x17b))return{};if(_0x30df9e['status']==='ok')return _0x30df9e[_0xad60cb(0x1a1)];return _0xbe1ad1===_0xad60cb(0x19e)&&_0x40810a&&console['error'](CLI_BIN_NAME+':\x20'+_0x40810a+_0xad60cb(0x193)+_0xe01b5b+_0xad60cb(0x1a3)+_0x30df9e[_0xad60cb(0x197)]),{};}function normalizeLegacyConfigShape(_0x8f6ae5){const _0x1a0e43=a285_0x2b21f5;if(!_0x8f6ae5||typeof _0x8f6ae5!==_0x1a0e43(0x182))return{'config':{},'migrated':![]};const _0x24c926={..._0x8f6ae5},_0x15a84d=_0x24c926[_0x1a0e43(0x185)]&&typeof _0x24c926[_0x1a0e43(0x185)]==='object'?{..._0x24c926['apps']}:{},_0x1f452f=Object[_0x1a0e43(0x19b)](_0x15a84d)[_0x1a0e43(0x17d)],_0x2bcee2=_0x24c926[_0x1a0e43(0x1a0)]||_0x24c926[_0x1a0e43(0x176)];let _0x1a035c=![];if(_0x2bcee2&&_0x1f452f===0x0){const _0x975fba=typeof _0x24c926[_0x1a0e43(0x18c)]==='string'&&_0x24c926[_0x1a0e43(0x18c)]['trim']()?_0x24c926[_0x1a0e43(0x18c)]:String(_0x2bcee2)[_0x1a0e43(0x179)]();_0x15a84d[_0x975fba]={'appcode':String(_0x2bcee2)[_0x1a0e43(0x179)](),..._0x24c926[_0x1a0e43(0x1a4)]!=null?{'env':_0x24c926['env']}:{},..._0x24c926[_0x1a0e43(0x17c)]!=null?{'apiDir':_0x24c926[_0x1a0e43(0x17c)]}:{},..._0x24c926[_0x1a0e43(0x18b)]!=null?{'cookie':_0x24c926['cookie']}:{},..._0x24c926[_0x1a0e43(0x1a5)]!=null?{'accessKey':_0x24c926['accessKey']}:{},..._0x24c926[_0x1a0e43(0x174)]!=null?{'format':_0x24c926[_0x1a0e43(0x174)]}:{},..._0x24c926[_0x1a0e43(0x19a)]!=null?{'pageSize':_0x24c926[_0x1a0e43(0x19a)]}:{},..._0x24c926[_0x1a0e43(0x189)]!=null?{'riskLevel':_0x24c926['riskLevel']}:{},..._0x24c926[_0x1a0e43(0x17e)]!=null?{'locale':_0x24c926[_0x1a0e43(0x17e)]}:{}},_0x24c926[_0x1a0e43(0x185)]=_0x15a84d,delete _0x24c926[_0x1a0e43(0x18c)],_0x1a035c=!![];}return(_0x1a0e43(0x1a0)in _0x24c926||_0x1a0e43(0x176)in _0x24c926)&&(delete _0x24c926[_0x1a0e43(0x1a0)],delete _0x24c926['app'],_0x1a035c=!![]),{'config':_0x24c926,'migrated':_0x1a035c};}function writeNormalizedConfigIfNeeded(_0x2ad584,_0x583c1b){const _0x25ba62=a285_0x2b21f5,_0x151e0a=JSON[_0x25ba62(0x16f)](normalizeConfigForWrite(_0x583c1b),null,0x2)+'\x0a';if(normalizedWriteCache[_0x25ba62(0x18a)](_0x2ad584)===_0x151e0a)return;writeConfigFile(_0x2ad584,_0x583c1b),normalizedWriteCache[_0x25ba62(0x175)](_0x2ad584,_0x151e0a);}function a285_0x1404(_0x5a0aab,_0x6f7965){_0x5a0aab=_0x5a0aab-0x16f;const _0x2fbf5d=a285_0x2fbf();let _0x14041b=_0x2fbf5d[_0x5a0aab];return _0x14041b;}function parseAndNormalizeConfig(_0x5bd508,_0x574919,_0xbaba11){const _0x4b84e5=a285_0x2b21f5,_0x3d9b91=parseCliConfigJsonFile(_0x5bd508,_0x574919,_0xbaba11),_0x21e0bf=normalizeLegacyConfigShape(_0x3d9b91);if(_0x21e0bf[_0x4b84e5(0x181)])try{writeNormalizedConfigIfNeeded(_0x5bd508,_0x21e0bf[_0x4b84e5(0x17f)]);}catch{}return _0x21e0bf[_0x4b84e5(0x17f)];}export function loadRawConfigLayers(_0x2c01f8){const _0x1424f7=a285_0x2b21f5;let _0x35d12f={},_0x479ca4={};const _0x37564c=resolveConfigPath(homedir());_0x37564c&&(_0x35d12f=parseAndNormalizeConfig(_0x37564c,_0x1424f7(0x19e),'Global'));const _0x73e86f=_0x2c01f8??findProjectRootDirectory(),_0x21dad6=resolveConfigPath(_0x73e86f);return _0x21dad6&&(_0x479ca4=parseAndNormalizeConfig(_0x21dad6,_0x1424f7(0x19e),'Project')),{'globalPath':_0x37564c,'projectPath':_0x21dad6,'globalConfig':_0x35d12f,'projectConfig':_0x479ca4};}const INHERIT_WHITELIST=['cookie',a285_0x2b21f5(0x1a5),a285_0x2b21f5(0x17e),a285_0x2b21f5(0x174),'riskLevel',a285_0x2b21f5(0x19a),a285_0x2b21f5(0x178),'routing','userDomain',a285_0x2b21f5(0x191),a285_0x2b21f5(0x171),'skillDomain',a285_0x2b21f5(0x180),a285_0x2b21f5(0x198),a285_0x2b21f5(0x17a),'localDomain',a285_0x2b21f5(0x19d)];export function mergeRawConfigLayers(_0x15f26e){const _0x3a6a5e=a285_0x2b21f5,{globalConfig:_0xe50c1f,projectConfig:_0x48373f}=_0x15f26e,_0x9490d1=!!_0x15f26e[_0x3a6a5e(0x188)]||Object[_0x3a6a5e(0x19b)](_0x48373f)['length']>0x0;if(!_0x9490d1)return mergeGlobalOnly(_0xe50c1f);return mergeProjectFirst(_0xe50c1f,_0x48373f);}function mergeGlobalOnly(_0x332ec3){const _0x4b46c4=a285_0x2b21f5,_0x1cc604={..._0x332ec3};delete _0x1cc604[_0x4b46c4(0x192)];const _0x190a4b=_0x332ec3['apps']&&typeof _0x332ec3[_0x4b46c4(0x185)]===_0x4b46c4(0x182)?_0x332ec3['apps']:{};if(Object['keys'](_0x190a4b)['length']>0x0)_0x1cc604[_0x4b46c4(0x185)]=_0x190a4b;if(_0x332ec3[_0x4b46c4(0x18c)])_0x1cc604[_0x4b46c4(0x18c)]=_0x332ec3['defaultApp'];return _0x1cc604;}function mergeProjectFirst(_0x1be5d3,_0x151283){const _0x8a60ea=a285_0x2b21f5,_0x456098={..._0x151283};delete _0x456098[_0x8a60ea(0x192)];for(const _0xd4f15c of INHERIT_WHITELIST){!(_0xd4f15c in _0x456098)&&_0xd4f15c in _0x1be5d3&&(_0x456098[_0xd4f15c]=_0x1be5d3[_0xd4f15c]);}const _0x5240fe=_0x151283[_0x8a60ea(0x185)]&&typeof _0x151283[_0x8a60ea(0x185)]===_0x8a60ea(0x182)?_0x151283['apps']:{};return Object[_0x8a60ea(0x19b)](_0x5240fe)['length']>0x0?_0x456098[_0x8a60ea(0x185)]=_0x5240fe:delete _0x456098['apps'],'defaultApp'in _0x151283?_0x456098['defaultApp']=_0x151283[_0x8a60ea(0x18c)]:delete _0x456098[_0x8a60ea(0x18c)],_0x456098;}export function readRawConfigWithLayers(_0xec8f91){const _0x11b879=loadRawConfigLayers(_0xec8f91);return{'config':mergeRawConfigLayers(_0x11b879),'layers':_0x11b879};}export function readRawConfig(_0x498bf9){return mergeRawConfigLayers(loadRawConfigLayers(_0x498bf9));}export function readConfigFile(_0x4f1f94){const _0x2707e5=a285_0x2b21f5;return parseAndNormalizeConfig(_0x4f1f94,_0x2707e5(0x177));}export function writeConfigFile(_0x344d81,_0xcc8070){const _0x24fb2b=a285_0x2b21f5,_0x4a0c51=dirname(_0x344d81);!existsSync(_0x4a0c51)&&mkdirSync(_0x4a0c51,{'recursive':!![]});const _0x28c586=_0x344d81+_0x24fb2b(0x18d);try{const _0x3d8030=normalizeConfigForWrite(_0xcc8070);writeFileSync(_0x28c586,JSON[_0x24fb2b(0x16f)](_0x3d8030,null,0x2)+'\x0a',{'encoding':_0x24fb2b(0x170),'mode':0x180}),renameSync(_0x28c586,_0x344d81);}catch(_0x3cdd6d){try{unlinkSync(_0x28c586);}catch{}throw _0x3cdd6d;}}export function resolveWriteConfigPath(_0xbb3452){const _0x1dc86e=a285_0x2b21f5,_0x8b3b99=_0xbb3452==='project'?process[_0x1dc86e(0x194)]():homedir(),_0x44462c=resolveConfigPath(_0x8b3b99);return _0x44462c??resolve(_0x8b3b99,NEW_CONFIG_NAME);}
package/lib/context.js CHANGED
@@ -1 +1 @@
1
- const a286_0x25fcfd=a286_0x24bc;(function(_0x4e04da,_0x5f20ee){const _0x4f0a3a=a286_0x24bc,_0x48aa56=_0x4e04da();while(!![]){try{const _0x51cf78=-parseInt(_0x4f0a3a(0x83))/0x1*(-parseInt(_0x4f0a3a(0xa3))/0x2)+-parseInt(_0x4f0a3a(0x81))/0x3+parseInt(_0x4f0a3a(0x8a))/0x4*(-parseInt(_0x4f0a3a(0xa6))/0x5)+parseInt(_0x4f0a3a(0x9d))/0x6*(parseInt(_0x4f0a3a(0x8f))/0x7)+-parseInt(_0x4f0a3a(0x6e))/0x8+parseInt(_0x4f0a3a(0x72))/0x9+parseInt(_0x4f0a3a(0xa0))/0xa;if(_0x51cf78===_0x5f20ee)break;else _0x48aa56['push'](_0x48aa56['shift']());}catch(_0x14b949){_0x48aa56['push'](_0x48aa56['shift']());}}}(a286_0x4607,0x66342));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';function a286_0x24bc(_0x224ea9,_0x487a34){_0x224ea9=_0x224ea9-0x69;const _0x460721=a286_0x4607();let _0x24bcf4=_0x460721[_0x224ea9];return _0x24bcf4;}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a286_0x4607(){const _0x29eb29=['routingConfig','cdn','runtimeDomain','setLogPath','3264632wOmgRr','certificateDomain','./constant/env.js','string','5374116ACkrjR','regionLocation','project\x20Rabetbase\x20configuration','project','some','appDomain','kbDomain','currentApp','merged','global','template_base_url','config','region','slice','configuredRegion','1842555MzzgZg','userDomain','2381PoAwJK','replace','entries','keys','appcode','./constant/domain.js','skillDomain','36huzWTH','prototype','argv','domains','Rabetbase\x20configuration','7PUTSSz','raw','map','app','agentDomain','apiDir','doctor','defaultApp','apiDomain','cwd','platformDomain','apiGroup','trim','env','981006VebDhb','cookie','kbServiceDomain','4314230FTfxoM','app\x20profile\x20\x22','projectConfig','346VNFezp','object','apps','90595daqOBk','filter','globalConfig','setRawCommand','call','regionSource','source','skillHubDomain','length','localDomain'];a286_0x4607=function(){return _0x29eb29;};return a286_0x4607();}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x307423){return process.env[`RABETBASE_${_0x307423}`]||process.env[`LOVRABET_${_0x307423}`]||undefined;}function optionalString(_0x300710){const _0x2af6a2=a286_0x24bc;return typeof _0x300710===_0x2af6a2(0x71)&&_0x300710[_0x2af6a2(0x9b)]()?_0x300710[_0x2af6a2(0x9b)]():undefined;}export function isRoutingRecoveryService(_0x40d422){const _0x1c43b3=a286_0x24bc;return _0x40d422===_0x1c43b3(0x7d)||_0x40d422===_0x1c43b3(0x95);}export async function createContext(_0xf2dfdc){const _0x38ae32=a286_0x24bc,{config:_0x567d84,layers:_0x25a63f}=readRawConfigWithLayers(),_0x3a499a=buildConfig(_0x567d84,_0xf2dfdc,_0x25a63f);await initGlobalEnvironment(_0x3a499a);const {getUserDomain:_0x24ec02,getApiDomain:_0x4c1679}=await import(_0x38ae32(0x88)),_0x52bd8d={'apiDomain':_0x4c1679(),'userDomain':_0x24ec02()},_0x18cd2d=await buildAuth(_0x3a499a);logger[_0x38ae32(0x6d)](process[_0x38ae32(0x98)]());const _0x379e36=(CLI_BIN_NAME+'\x20'+process[_0x38ae32(0x8c)][_0x38ae32(0x7f)](0x2)['join']('\x20'))[_0x38ae32(0x9b)]();logger[_0x38ae32(0xa9)](_0x379e36);const {isNonInteractive:_0x21bb70}=await import('./utils/is-non-interactive.js'),_0x37429b=_0x21bb70(_0xf2dfdc);return{'config':_0x3a499a,'auth':_0x18cd2d,'logger':logger,'env':_0x52bd8d,'nonInteractive':_0x37429b};}export function buildConfigFromFlags(_0x5ce853){const {config:_0x45f526,layers:_0x4c527b}=readRawConfigWithLayers();return buildConfig(_0x45f526,_0x5ce853,_0x4c527b);}export async function initGlobalEnvironment(_0x115b66){const _0x5a72ac=a286_0x24bc,_0x59b1ef=_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x92)&&_0x115b66[_0x5a72ac(0x79)]?_0x5a72ac(0xa1)+_0x115b66[_0x5a72ac(0x79)]+'\x22':_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x75)?_0x5a72ac(0x74):_0x115b66[_0x5a72ac(0xab)]===_0x5a72ac(0x7b)?'global\x20Rabetbase\x20configuration':_0x5a72ac(0x8e);await initConfiguredEnvironment({'raw':_0x115b66[_0x5a72ac(0x90)],'configuredRegion':_0x115b66['regionConfiguredValue']??_0x115b66[_0x5a72ac(0x90)]?.[_0x5a72ac(0x7e)]??_0x115b66[_0x5a72ac(0x7e)],'regionLocation':_0x59b1ef,'targetEnv':_0x115b66[_0x5a72ac(0x9c)]});}async function initConfiguredEnvironment(_0x1dbd38){const _0xfcec50=a286_0x24bc,_0x15dfa1=resolveConfiguredRegion(_0x1dbd38[_0xfcec50(0x80)],_0x1dbd38[_0xfcec50(0x73)]),_0x400ca4=resolveEnterpriseRoutingManifest(_0x1dbd38['raw']?.['routing']),_0x462210={'region':_0x15dfa1,'apiDomain':_0x400ca4?_0x400ca4['domains']['apiDomain']:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['apiDomain']),'userDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x82)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['userDomain']),'runtimeDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6c)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x6c)]),'skillDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x89)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x89)])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0xad)])||optionalString(_0x1dbd38['raw']?.['agentDomain'])||optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x99)]),'kbDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)]['kbDomain']:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x78)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x93)])||optionalString(_0x1dbd38[_0xfcec50(0x90)]?.[_0xfcec50(0x99)]),'kbServiceDomain':_0x400ca4?_0x400ca4['domains'][_0xfcec50(0x9f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['kbServiceDomain']),'appDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x77)]:optionalString(_0x1dbd38['raw']?.[_0xfcec50(0x77)]),'localDomain':_0x400ca4?_0x400ca4['domains']['localDomain']:optionalString(_0x1dbd38['raw']?.['localDomain']),'certificateDomain':_0x400ca4?_0x400ca4[_0xfcec50(0x8d)][_0xfcec50(0x6f)]:optionalString(_0x1dbd38[_0xfcec50(0x90)]?.['certificateDomain']),'cdn':_0x400ca4?.[_0xfcec50(0x6b)],'allowOfficialKbServiceDefault':!(_0x400ca4!==undefined||[_0xfcec50(0x97),_0xfcec50(0x82),_0xfcec50(0x6c),_0xfcec50(0x89),_0xfcec50(0xad),_0xfcec50(0x78),_0xfcec50(0x9f),_0xfcec50(0x93),_0xfcec50(0x99),_0xfcec50(0x77),_0xfcec50(0x69),_0xfcec50(0x6f)][_0xfcec50(0x76)](_0x67caf7=>Object[_0xfcec50(0x8b)]['hasOwnProperty'][_0xfcec50(0xaa)](_0x1dbd38[_0xfcec50(0x90)]??{},_0x67caf7)))},{initEnv:_0x15973e}=await import(_0xfcec50(0x70)),{initDomains:_0x5620ad}=await import(_0xfcec50(0x88));_0x15973e(_0x1dbd38['targetEnv']),_0x5620ad(_0x462210);}export async function initMultiAppEnvironment(_0x1ff790){const _0x1788e0=a286_0x24bc;await initConfiguredEnvironment({'raw':_0x1ff790[_0x1788e0(0x6a)],'configuredRegion':_0x1ff790[_0x1788e0(0x7e)],'regionLocation':_0x1788e0(0xa1)+_0x1ff790['name']+'\x22','targetEnv':_0x1ff790[_0x1788e0(0x9c)]==='daily'?'daily':'production'});}export function getConfigAppCode(_0xf03c63){const _0x4f3f04=a286_0x24bc,_0x355f8b=readRawConfig(_0xf03c63);if(_0x355f8b[_0x4f3f04(0xa5)]&&typeof _0x355f8b[_0x4f3f04(0xa5)]===_0x4f3f04(0xa4)){const _0x4ebb1e=_0x355f8b[_0x4f3f04(0x96)];if(_0x4ebb1e)return _0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]?.[_0x4f3f04(0x87)]?String(_0x355f8b[_0x4f3f04(0xa5)][_0x4ebb1e]['appcode'])[_0x4f3f04(0x9b)]():undefined;const _0x3e62c5=Object['values'](_0x355f8b[_0x4f3f04(0xa5)]);if(_0x3e62c5['length']===0x1&&_0x3e62c5[0x0]?.[_0x4f3f04(0x87)])return String(_0x3e62c5[0x0][_0x4f3f04(0x87)])[_0x4f3f04(0x9b)]();}const _0x2bebcf=_0x355f8b[_0x4f3f04(0x87)]||_0x355f8b['app'];if(typeof _0x2bebcf!==_0x4f3f04(0x71)||_0x2bebcf[_0x4f3f04(0x9b)]()==='')return undefined;return _0x2bebcf[_0x4f3f04(0x9b)]();}const CONNECTION_ROUTING_KEYS=['routing','apiDomain',a286_0x25fcfd(0x82),a286_0x25fcfd(0x6c),a286_0x25fcfd(0x89),a286_0x25fcfd(0xad),a286_0x25fcfd(0x78),a286_0x25fcfd(0x9f),a286_0x25fcfd(0x93),a286_0x25fcfd(0x99),a286_0x25fcfd(0x77),a286_0x25fcfd(0x69),a286_0x25fcfd(0x6f)];function withAppProfileRouting(_0x426494,_0x30f749){if(!_0x30f749||_0x30f749['kbServiceDomain']===undefined)return _0x426494;return{..._0x426494,'kbServiceDomain':_0x30f749['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x28c778,_0x2936d9){const _0x4109e4={'region':_0x2936d9};for(const _0x11ceb2 of CONNECTION_ROUTING_KEYS){if(_0x28c778[_0x11ceb2]!==undefined)_0x4109e4[_0x11ceb2]=_0x28c778[_0x11ceb2];}return _0x4109e4;}export function getMultiAppConfigs(_0x3f6d56=a286_0x25fcfd(0x75),_0x2ed209){const _0x3fc407=a286_0x25fcfd,_0x98685e=loadRawConfigLayers(_0x2ed209);let _0x393168,_0x3e0d58;const _0x2b5f8f=mergeRawConfigLayers(_0x98685e),_0x533880=_0x98685e['globalConfig'][_0x3fc407(0xa5)]&&typeof _0x98685e[_0x3fc407(0xa8)][_0x3fc407(0xa5)]===_0x3fc407(0xa4)?_0x98685e[_0x3fc407(0xa8)]['apps']:{},_0x972c6c=_0x98685e['projectConfig']['apps']&&typeof _0x98685e[_0x3fc407(0xa2)][_0x3fc407(0xa5)]==='object'?_0x98685e[_0x3fc407(0xa2)]['apps']:{};_0x3f6d56===_0x3fc407(0x7a)?(_0x393168={..._0x533880,..._0x972c6c},_0x3e0d58=_0x2b5f8f[_0x3fc407(0x96)]):(_0x393168=_0x98685e['projectConfig'][_0x3fc407(0xa5)],_0x3e0d58=_0x98685e[_0x3fc407(0xa2)][_0x3fc407(0x96)]);!_0x3e0d58&&_0x393168&&typeof _0x393168==='object'&&Object[_0x3fc407(0x86)](_0x393168)[_0x3fc407(0xae)]===0x1&&(_0x3e0d58=Object[_0x3fc407(0x86)](_0x393168)[0x0]);if(!_0x393168||typeof _0x393168!=='object'||Object['keys'](_0x393168)['length']===0x0)return null;return Object[_0x3fc407(0x85)](_0x393168)[_0x3fc407(0x91)](([_0x1bcaa2,_0x2a754e])=>{const _0x54fc85=_0x3fc407,_0x361e10=_0x3f6d56==='project'||Object[_0x54fc85(0x8b)]['hasOwnProperty'][_0x54fc85(0xaa)](_0x972c6c,_0x1bcaa2),_0x28dc66=withAppProfileRouting(_0x361e10?_0x2b5f8f:_0x98685e[_0x54fc85(0xa8)],_0x2a754e),_0x39bcce=resolveEffectiveRegion({'appRegion':_0x2a754e?.[_0x54fc85(0x7e)],'projectRegion':_0x361e10?_0x98685e[_0x54fc85(0xa2)][_0x54fc85(0x7e)]:undefined,'globalRegion':_0x98685e['globalConfig'][_0x54fc85(0x7e)],'mergedRegion':_0x28dc66['region'],'appName':_0x1bcaa2});return{'name':_0x1bcaa2,'appcode':_0x2a754e?.[_0x54fc85(0x87)]||'','apiGroup':optionalString(_0x2a754e?.[_0x54fc85(0x9a)]),'isDefault':_0x1bcaa2===_0x3e0d58,'region':_0x39bcce[_0x54fc85(0x7e)],'regionSource':_0x39bcce[_0x54fc85(0xac)],'env':_0x2a754e?.['env'],'apiDir':optionalString(_0x2a754e?.['apiDir'])||optionalString(_0x28dc66[_0x54fc85(0x94)]),'cookie':_0x2a754e?.[_0x54fc85(0x9e)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x28dc66,_0x39bcce['region'])};})[_0x3fc407(0xa7)](_0x2a6836=>_0x2a6836[_0x3fc407(0x87)]);}export function getTemplateBaseUrl(_0x4f4b4f){const _0x170639=a286_0x25fcfd,_0x1d025a=readRawConfig(_0x4f4b4f);if(_0x1d025a['template_base_url']&&typeof _0x1d025a[_0x170639(0x7c)]===_0x170639(0x71))return _0x1d025a['template_base_url'][_0x170639(0x84)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x52abb3,_0xacd321,_0x339597){const _0x2a1f07=a286_0x25fcfd,_0x58d8d9=resolveAppConfig({'raw':_0x52abb3,'flags':_0xacd321,'layers':_0x339597,'readEnv':env}),_0x1c9206=_0x58d8d9[_0x2a1f07(0x79)]?_0x58d8d9[_0x2a1f07(0xa5)][_0x58d8d9['currentApp']]:undefined;return{..._0x58d8d9,'raw':withAppProfileRouting(_0x52abb3,_0x1c9206)};}export function resolveApiFilePath(_0x2b8d29,_0x981f86,_0x2f7def){return resolveApiModelSource(_0x2b8d29,_0x981f86,_0x2f7def)['filePath'];}
1
+ const a286_0x11edda=a286_0x5675;(function(_0x46eb98,_0x5f2630){const _0x1e9699=a286_0x5675,_0x3e28bb=_0x46eb98();while(!![]){try{const _0x5acf39=-parseInt(_0x1e9699(0x95))/0x1*(-parseInt(_0x1e9699(0x9b))/0x2)+parseInt(_0x1e9699(0xc6))/0x3+-parseInt(_0x1e9699(0xc5))/0x4+parseInt(_0x1e9699(0xce))/0x5+parseInt(_0x1e9699(0xb8))/0x6*(-parseInt(_0x1e9699(0xb7))/0x7)+-parseInt(_0x1e9699(0xd1))/0x8*(-parseInt(_0x1e9699(0x9d))/0x9)+-parseInt(_0x1e9699(0xb2))/0xa;if(_0x5acf39===_0x5f2630)break;else _0x3e28bb['push'](_0x3e28bb['shift']());}catch(_0x38b688){_0x3e28bb['push'](_0x3e28bb['shift']());}}}(a286_0x16d5,0x5631b));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';function a286_0x16d5(){const _0x395d91=['kbDomain','https://g.lovrabet.com/dist/lovrabet-skill','./constant/domain.js','config','setRawCommand','182432RHoeJl','575823LLujCi','production','localDomain','apps','merged','defaultApp','global','currentApp','3061235ClLIQH','env','platformDomain','4968EvWYZD','routing','template_base_url','kbServiceDomain','appDomain','Rabetbase\x20configuration','join','name','filter','replace','runtimeDomain','length','hasOwnProperty','agentDomain','setLogPath','1uwLUxX','region','doctor','globalConfig','project\x20Rabetbase\x20configuration','app','178302ilZXtn','./utils/is-non-interactive.js','7524LxZCNl','project','projectConfig','skillHubDomain','string','app\x20profile\x20\x22','configuredRegion','keys','daily','skillDomain','cookie','apiGroup','userDomain','routingConfig','source','raw','filePath','slice','prototype','object','domains','3932720WMRnoP','values','regionSource','cwd','apiDomain','14PnSVDQ','1861692csCAtR','call','trim','certificateDomain','appcode','cdn','map','regionConfiguredValue'];a286_0x16d5=function(){return _0x395d91;};return a286_0x16d5();}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x1e59ac){return process.env[`RABETBASE_${_0x1e59ac}`]||process.env[`LOVRABET_${_0x1e59ac}`]||undefined;}function optionalString(_0x3f729b){const _0x1476cd=a286_0x5675;return typeof _0x3f729b===_0x1476cd(0xa1)&&_0x3f729b[_0x1476cd(0xba)]()?_0x3f729b[_0x1476cd(0xba)]():undefined;}function a286_0x5675(_0x1f223a,_0x580925){_0x1f223a=_0x1f223a-0x8a;const _0x16d559=a286_0x16d5();let _0x5675d2=_0x16d559[_0x1f223a];return _0x5675d2;}export function isRoutingRecoveryService(_0x14fd0c){const _0x1d22e7=a286_0x5675;return _0x14fd0c===_0x1d22e7(0xc3)||_0x14fd0c===_0x1d22e7(0x97);}export async function createContext(_0x3c4a52){const _0x548783=a286_0x5675,{config:_0x364d18,layers:_0x4a2a50}=readRawConfigWithLayers(),_0x40d356=buildConfig(_0x364d18,_0x3c4a52,_0x4a2a50);await initGlobalEnvironment(_0x40d356);const {getUserDomain:_0x26434b,getApiDomain:_0x4cc8a4}=await import(_0x548783(0xc2)),_0x2c7b80={'apiDomain':_0x4cc8a4(),'userDomain':_0x26434b()},_0x1fde8b=await buildAuth(_0x40d356);logger[_0x548783(0x94)](process[_0x548783(0xb5)]());const _0x5f31b7=(CLI_BIN_NAME+'\x20'+process['argv'][_0x548783(0xae)](0x2)[_0x548783(0x8c)]('\x20'))[_0x548783(0xba)]();logger[_0x548783(0xc4)](_0x5f31b7);const {isNonInteractive:_0x1723db}=await import(_0x548783(0x9c)),_0x411930=_0x1723db(_0x3c4a52);return{'config':_0x40d356,'auth':_0x1fde8b,'logger':logger,'env':_0x2c7b80,'nonInteractive':_0x411930};}export function buildConfigFromFlags(_0x3581b4){const {config:_0x419463,layers:_0x5d033c}=readRawConfigWithLayers();return buildConfig(_0x419463,_0x3581b4,_0x5d033c);}export async function initGlobalEnvironment(_0x2f8bda){const _0x4fc19c=a286_0x5675,_0x40c6ea=_0x2f8bda[_0x4fc19c(0xb4)]===_0x4fc19c(0x9a)&&_0x2f8bda['currentApp']?_0x4fc19c(0xa2)+_0x2f8bda[_0x4fc19c(0xcd)]+'\x22':_0x2f8bda[_0x4fc19c(0xb4)]===_0x4fc19c(0x9e)?_0x4fc19c(0x99):_0x2f8bda['regionSource']===_0x4fc19c(0xcc)?'global\x20Rabetbase\x20configuration':_0x4fc19c(0x8b);await initConfiguredEnvironment({'raw':_0x2f8bda[_0x4fc19c(0xac)],'configuredRegion':_0x2f8bda[_0x4fc19c(0xbf)]??_0x2f8bda[_0x4fc19c(0xac)]?.[_0x4fc19c(0x96)]??_0x2f8bda[_0x4fc19c(0x96)],'regionLocation':_0x40c6ea,'targetEnv':_0x2f8bda[_0x4fc19c(0xcf)]});}async function initConfiguredEnvironment(_0x31655c){const _0x20215e=a286_0x5675,_0x56eda5=resolveConfiguredRegion(_0x31655c[_0x20215e(0xa3)],_0x31655c['regionLocation']),_0xc5fbe7=resolveEnterpriseRoutingManifest(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xd2)]),_0x302a33={'region':_0x56eda5,'apiDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0xb6)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xb6)]),'userDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)]['userDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xa9)]),'runtimeDomain':_0xc5fbe7?_0xc5fbe7['domains']['runtimeDomain']:optionalString(_0x31655c['raw']?.['runtimeDomain']),'skillDomain':_0xc5fbe7?_0xc5fbe7['domains'][_0x20215e(0xa6)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xa6)])||optionalString(_0x31655c['raw']?.[_0x20215e(0xa0)])||optionalString(_0x31655c['raw']?.[_0x20215e(0x93)])||optionalString(_0x31655c[_0x20215e(0xac)]?.['platformDomain']),'kbDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)]['kbDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.['kbDomain'])||optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0x93)])||optionalString(_0x31655c['raw']?.[_0x20215e(0xd0)]),'kbServiceDomain':_0xc5fbe7?_0xc5fbe7['domains']['kbServiceDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xd4)]),'appDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0x8a)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0x8a)]),'localDomain':_0xc5fbe7?_0xc5fbe7[_0x20215e(0xb1)][_0x20215e(0xc8)]:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xc8)]),'certificateDomain':_0xc5fbe7?_0xc5fbe7['domains']['certificateDomain']:optionalString(_0x31655c[_0x20215e(0xac)]?.[_0x20215e(0xbb)]),'cdn':_0xc5fbe7?.[_0x20215e(0xbd)],'allowOfficialKbServiceDefault':!(_0xc5fbe7!==undefined||['apiDomain',_0x20215e(0xa9),_0x20215e(0x90),_0x20215e(0xa6),'skillHubDomain',_0x20215e(0xc0),_0x20215e(0xd4),'agentDomain',_0x20215e(0xd0),'appDomain',_0x20215e(0xc8),_0x20215e(0xbb)]['some'](_0x21e46a=>Object[_0x20215e(0xaf)]['hasOwnProperty'][_0x20215e(0xb9)](_0x31655c[_0x20215e(0xac)]??{},_0x21e46a)))},{initEnv:_0x3baeb3}=await import('./constant/env.js'),{initDomains:_0xce917c}=await import(_0x20215e(0xc2));_0x3baeb3(_0x31655c['targetEnv']),_0xce917c(_0x302a33);}export async function initMultiAppEnvironment(_0xb00e2c){const _0x3a86ad=a286_0x5675;await initConfiguredEnvironment({'raw':_0xb00e2c[_0x3a86ad(0xaa)],'configuredRegion':_0xb00e2c[_0x3a86ad(0x96)],'regionLocation':'app\x20profile\x20\x22'+_0xb00e2c[_0x3a86ad(0x8d)]+'\x22','targetEnv':_0xb00e2c[_0x3a86ad(0xcf)]===_0x3a86ad(0xa5)?'daily':_0x3a86ad(0xc7)});}export function getConfigAppCode(_0x285e4a){const _0x10a6ca=a286_0x5675,_0x206efb=readRawConfig(_0x285e4a);if(_0x206efb[_0x10a6ca(0xc9)]&&typeof _0x206efb[_0x10a6ca(0xc9)]===_0x10a6ca(0xb0)){const _0x37e34b=_0x206efb[_0x10a6ca(0xcb)];if(_0x37e34b)return _0x206efb['apps'][_0x37e34b]?.['appcode']?String(_0x206efb[_0x10a6ca(0xc9)][_0x37e34b][_0x10a6ca(0xbc)])[_0x10a6ca(0xba)]():undefined;const _0x2b4a8d=Object[_0x10a6ca(0xb3)](_0x206efb[_0x10a6ca(0xc9)]);if(_0x2b4a8d['length']===0x1&&_0x2b4a8d[0x0]?.[_0x10a6ca(0xbc)])return String(_0x2b4a8d[0x0]['appcode'])[_0x10a6ca(0xba)]();}const _0x546a14=_0x206efb[_0x10a6ca(0xbc)]||_0x206efb[_0x10a6ca(0x9a)];if(typeof _0x546a14!==_0x10a6ca(0xa1)||_0x546a14[_0x10a6ca(0xba)]()==='')return undefined;return _0x546a14[_0x10a6ca(0xba)]();}const CONNECTION_ROUTING_KEYS=[a286_0x11edda(0xd2),a286_0x11edda(0xb6),a286_0x11edda(0xa9),a286_0x11edda(0x90),a286_0x11edda(0xa6),a286_0x11edda(0xa0),a286_0x11edda(0xc0),'kbServiceDomain',a286_0x11edda(0x93),'platformDomain','appDomain',a286_0x11edda(0xc8),'certificateDomain'];function withAppProfileRouting(_0x54860b,_0x2b907c){const _0x2cc621=a286_0x11edda;if(!_0x2b907c||_0x2b907c[_0x2cc621(0xd4)]===undefined)return _0x54860b;return{..._0x54860b,'kbServiceDomain':_0x2b907c['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x1929f2,_0x1d3f3f){const _0x170cdf={'region':_0x1d3f3f};for(const _0x2bb919 of CONNECTION_ROUTING_KEYS){if(_0x1929f2[_0x2bb919]!==undefined)_0x170cdf[_0x2bb919]=_0x1929f2[_0x2bb919];}return _0x170cdf;}export function getMultiAppConfigs(_0x27518e=a286_0x11edda(0x9e),_0x494551){const _0x1d1234=a286_0x11edda,_0x5b0dec=loadRawConfigLayers(_0x494551);let _0x22c1d3,_0x23a4f6;const _0x382c11=mergeRawConfigLayers(_0x5b0dec),_0xce206d=_0x5b0dec['globalConfig'][_0x1d1234(0xc9)]&&typeof _0x5b0dec['globalConfig'][_0x1d1234(0xc9)]===_0x1d1234(0xb0)?_0x5b0dec[_0x1d1234(0x98)][_0x1d1234(0xc9)]:{},_0x1ac85b=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]&&typeof _0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]===_0x1d1234(0xb0)?_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)]:{};_0x27518e===_0x1d1234(0xca)?(_0x22c1d3={..._0xce206d,..._0x1ac85b},_0x23a4f6=_0x382c11[_0x1d1234(0xcb)]):(_0x22c1d3=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xc9)],_0x23a4f6=_0x5b0dec[_0x1d1234(0x9f)][_0x1d1234(0xcb)]);!_0x23a4f6&&_0x22c1d3&&typeof _0x22c1d3==='object'&&Object[_0x1d1234(0xa4)](_0x22c1d3)[_0x1d1234(0x91)]===0x1&&(_0x23a4f6=Object[_0x1d1234(0xa4)](_0x22c1d3)[0x0]);if(!_0x22c1d3||typeof _0x22c1d3!==_0x1d1234(0xb0)||Object[_0x1d1234(0xa4)](_0x22c1d3)[_0x1d1234(0x91)]===0x0)return null;return Object['entries'](_0x22c1d3)[_0x1d1234(0xbe)](([_0x4ce806,_0x31ac50])=>{const _0x28a4f5=_0x1d1234,_0x524890=_0x27518e===_0x28a4f5(0x9e)||Object[_0x28a4f5(0xaf)][_0x28a4f5(0x92)][_0x28a4f5(0xb9)](_0x1ac85b,_0x4ce806),_0x4b3e8a=withAppProfileRouting(_0x524890?_0x382c11:_0x5b0dec[_0x28a4f5(0x98)],_0x31ac50),_0xcb75e9=resolveEffectiveRegion({'appRegion':_0x31ac50?.[_0x28a4f5(0x96)],'projectRegion':_0x524890?_0x5b0dec[_0x28a4f5(0x9f)]['region']:undefined,'globalRegion':_0x5b0dec[_0x28a4f5(0x98)][_0x28a4f5(0x96)],'mergedRegion':_0x4b3e8a[_0x28a4f5(0x96)],'appName':_0x4ce806});return{'name':_0x4ce806,'appcode':_0x31ac50?.[_0x28a4f5(0xbc)]||'','apiGroup':optionalString(_0x31ac50?.[_0x28a4f5(0xa8)]),'isDefault':_0x4ce806===_0x23a4f6,'region':_0xcb75e9['region'],'regionSource':_0xcb75e9[_0x28a4f5(0xab)],'env':_0x31ac50?.['env'],'apiDir':optionalString(_0x31ac50?.['apiDir'])||optionalString(_0x4b3e8a['apiDir']),'cookie':_0x31ac50?.[_0x28a4f5(0xa7)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x4b3e8a,_0xcb75e9[_0x28a4f5(0x96)])};})[_0x1d1234(0x8e)](_0x590153=>_0x590153[_0x1d1234(0xbc)]);}export function getTemplateBaseUrl(_0x233987){const _0x5c6dfd=a286_0x11edda,_0x4eb1e7=readRawConfig(_0x233987);if(_0x4eb1e7[_0x5c6dfd(0xd3)]&&typeof _0x4eb1e7['template_base_url']===_0x5c6dfd(0xa1))return _0x4eb1e7[_0x5c6dfd(0xd3)][_0x5c6dfd(0x8f)](/\/$/,'');return _0x5c6dfd(0xc1);}function buildConfig(_0x14a3c2,_0x3cdd1e,_0x7e37c){const _0x26e23b=a286_0x11edda,_0x503d53=resolveAppConfig({'raw':_0x14a3c2,'flags':_0x3cdd1e,'layers':_0x7e37c,'readEnv':env}),_0x4bfd16=_0x503d53[_0x26e23b(0xcd)]?_0x503d53[_0x26e23b(0xc9)][_0x503d53[_0x26e23b(0xcd)]]:undefined;return{..._0x503d53,'raw':withAppProfileRouting(_0x14a3c2,_0x4bfd16)};}export function resolveApiFilePath(_0xaa13f2,_0x9a333e,_0x21c74a){const _0x47c73f=a286_0x11edda;return resolveApiModelSource(_0xaa13f2,_0x9a333e,_0x21c74a)[_0x47c73f(0xad)];}